@univerjs-pro/mcp-ui 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/sk-SK.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ja-JP.js +1 -1
  21. package/lib/es/locale/ko-KR.js +1 -1
  22. package/lib/es/locale/ru-RU.js +1 -1
  23. package/lib/es/locale/sk-SK.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/index.js +1 -1
  28. package/lib/locale/ca-ES.js +1 -1
  29. package/lib/locale/en-US.js +1 -1
  30. package/lib/locale/es-ES.js +1 -1
  31. package/lib/locale/fa-IR.js +1 -1
  32. package/lib/locale/fr-FR.js +1 -1
  33. package/lib/locale/ja-JP.js +1 -1
  34. package/lib/locale/ko-KR.js +1 -1
  35. package/lib/locale/ru-RU.js +1 -1
  36. package/lib/locale/sk-SK.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/index.js +1 -1
  41. package/lib/umd/locale/ca-ES.js +1 -1
  42. package/lib/umd/locale/en-US.js +1 -1
  43. package/lib/umd/locale/es-ES.js +1 -1
  44. package/lib/umd/locale/fa-IR.js +1 -1
  45. package/lib/umd/locale/fr-FR.js +1 -1
  46. package/lib/umd/locale/ja-JP.js +1 -1
  47. package/lib/umd/locale/ko-KR.js +1 -1
  48. package/lib/umd/locale/ru-RU.js +1 -1
  49. package/lib/umd/locale/sk-SK.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +11 -11
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x370a48=_0x8260;(function(_0x50ae81,_0x54327f){const _0x2fa4ed=_0x8260,_0x36c5ec=_0x50ae81();while(!![]){try{const _0x49faa8=-parseInt(_0x2fa4ed(0x20f))/0x1+-parseInt(_0x2fa4ed(0x241))/0x2*(-parseInt(_0x2fa4ed(0x251))/0x3)+-parseInt(_0x2fa4ed(0x27c))/0x4*(parseInt(_0x2fa4ed(0x307))/0x5)+-parseInt(_0x2fa4ed(0x302))/0x6*(parseInt(_0x2fa4ed(0x2cc))/0x7)+-parseInt(_0x2fa4ed(0x30b))/0x8+-parseInt(_0x2fa4ed(0x278))/0x9*(-parseInt(_0x2fa4ed(0x31f))/0xa)+parseInt(_0x2fa4ed(0x2bf))/0xb;if(_0x49faa8===_0x54327f)break;else _0x36c5ec['push'](_0x36c5ec['shift']());}catch(_0xd7e001){_0x36c5ec['push'](_0x36c5ec['shift']());}}}(_0x2d59,0x85dfd),Object['defineProperty'](exports,Symbol[_0x370a48(0x209)],{'value':_0x370a48(0x2a3)}));let _univerjs_core=require('@univerjs/core'),_univerjs_pro_mcp=require('@univerjs-pro/mcp'),_univerjs_design=require('@univerjs/design'),_univerjs_ui=require('@univerjs/ui'),rxjs=require('rxjs'),_univerjs_icons=require('@univerjs/icons'),react=require('react'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_network=require('@univerjs/network');function MCPConfigPanel(_0x207af3){const _0x46f832=_0x370a48;var _0x449e41,_0x2a6567;const {mcpCoreConfig:_0x1713d2,onSave:_0x5a93e5,loading:loading=![],config:_0x3facc8,connectionStatus$:_0x54d540,connectionError$:_0x642dab,currentApiKey$:_0x51a886,currentSessionId$:_0x5c3aa4}=_0x207af3,_0x4a0362=(0x0,_univerjs_ui[_0x46f832(0x255)])(_univerjs_core[_0x46f832(0x28c)]),_0x49964d=(0x0,_univerjs_ui[_0x46f832(0x282)])(_0x54d540,_univerjs_pro_mcp['MCPConnectionStatus'][_0x46f832(0x308)]),_0x1ac951=(0x0,_univerjs_ui[_0x46f832(0x282)])(_0x642dab,_univerjs_pro_mcp[_0x46f832(0x300)][_0x46f832(0x208)]),_0x1d4004=(0x0,_univerjs_ui[_0x46f832(0x282)])(_0x5c3aa4,''),[_0x20c3f7,_0x50bc33]=(0x0,react[_0x46f832(0x22c)])((0x0,_univerjs_ui['useObservable'])(_0x51a886,'')||''),_0x55f64b=!![],_0x323ee0=_0x3facc8[_0x46f832(0x344)]&&_0x1713d2[_0x46f832(0x211)]&&(_0x1713d2[_0x46f832(0x211)][_0x46f832(0x292)](_0x46f832(0x26c))||_0x1713d2[_0x46f832(0x211)][_0x46f832(0x292)](_0x46f832(0x249))),_0x5ef8f2=(_0x449e41=_0x1713d2['mcpServerUrl'])===null||_0x449e41===void 0x0?void 0x0:_0x449e41['includes']('univer.plus'),_0x2fe8b8=(_0x2a6567=_0x1713d2[_0x46f832(0x211)])===null||_0x2a6567===void 0x0?void 0x0:_0x2a6567['includes']('univer.ai'),_0x15e03b=_0x5ef8f2?_0x46f832(0x319):'https://console.univer.ai',_0x49ade8=_0x3facc8[_0x46f832(0x344)]&&(_0x5ef8f2||_0x2fe8b8),[_0x273614,_0x2f35be]=(0x0,react[_0x46f832(0x22c)])(!_0x20c3f7['trim']()),_0x56f908=(_0x2cf82f,_0x1ae5bb)=>{const _0x3bd652=_0x46f832;if(_0x1ae5bb===_univerjs_pro_mcp['MCPConnectionError'][_0x3bd652(0x23c)])return _0x3bd652(0x210);switch(_0x2cf82f){case _univerjs_pro_mcp[_0x3bd652(0x276)][_0x3bd652(0x2af)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _univerjs_pro_mcp[_0x3bd652(0x276)][_0x3bd652(0x23b)]:case _univerjs_pro_mcp[_0x3bd652(0x276)][_0x3bd652(0x336)]:return _0x3bd652(0x2b4);case _univerjs_pro_mcp[_0x3bd652(0x276)][_0x3bd652(0x2ad)]:return _0x3bd652(0x210);default:return _0x3bd652(0x2dd);}},_0x2985c8=(_0x458aed,_0x255b0a)=>{const _0x4fc756=_0x46f832;if(_0x255b0a===_univerjs_pro_mcp['MCPConnectionError']['UNAUTHORIZED'])return _0x4fc756(0x262);switch(_0x458aed){case _univerjs_pro_mcp[_0x4fc756(0x276)][_0x4fc756(0x2af)]:return _0x4fc756(0x29f);case _univerjs_pro_mcp['MCPConnectionStatus'][_0x4fc756(0x23b)]:case _univerjs_pro_mcp[_0x4fc756(0x276)]['RETRYING']:return _0x4fc756(0x271);case _univerjs_pro_mcp[_0x4fc756(0x276)][_0x4fc756(0x2ad)]:return _0x4fc756(0x262);default:return _0x4fc756(0x21f);}},_0x248e9=_0x3cffaf=>{const _0x4c0e2d=_0x46f832;switch(_0x3cffaf){case _univerjs_pro_mcp[_0x4c0e2d(0x276)][_0x4c0e2d(0x2af)]:return _0x4a0362['t']('mcpConfig.connectionStatus.connected');case _univerjs_pro_mcp[_0x4c0e2d(0x276)][_0x4c0e2d(0x23b)]:return _0x4a0362['t'](_0x4c0e2d(0x2ef));case _univerjs_pro_mcp[_0x4c0e2d(0x276)]['FAILED']:return _0x4a0362['t'](_0x4c0e2d(0x264));case _univerjs_pro_mcp['MCPConnectionStatus'][_0x4c0e2d(0x336)]:return _0x4a0362['t'](_0x4c0e2d(0x216));default:return _0x4a0362['t']('mcpConfig.connectionStatus.disconnected');}},_0x4cd1f6=_0xe5c498=>{const _0x4deb6b=_0x46f832;switch(_0xe5c498){case _univerjs_pro_mcp[_0x4deb6b(0x300)][_0x4deb6b(0x23c)]:return _0x4a0362['t']('mcpConfig.connectionError.unauthorized');case _univerjs_pro_mcp[_0x4deb6b(0x300)][_0x4deb6b(0x346)]:return _0x4a0362['t']('mcpConfig.connectionError.sessionOccupied');case _univerjs_pro_mcp['MCPConnectionError'][_0x4deb6b(0x31e)]:return _0x4a0362['t']('mcpConfig.connectionError.networkError');case _univerjs_pro_mcp[_0x4deb6b(0x300)][_0x4deb6b(0x27b)]:return _0x4a0362['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x439faf=(0x0,react[_0x46f832(0x2cd)])(()=>{const _0x434a8b=_0x46f832;_0x5a93e5({..._0x1713d2,'apiKey':_0x20c3f7[_0x434a8b(0x222)](),'enableAuth':_0x55f64b});},[_0x1713d2,_0x20c3f7,_0x55f64b,_0x5a93e5]),_0x1832f5=_0x20c3f7['trim']()[_0x46f832(0x32b)]>0x0;return(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x46f832(0x334),'children':(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x46f832(0x289),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x311),'children':(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':'univer-text-white','children':'⚙'})}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'children':(0x0,react_jsx_runtime[_0x46f832(0x33e)])('p',{'className':_0x46f832(0x316),'children':_0x4a0362['t'](_0x46f832(0x288))})})]})}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x243),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':(0x0,_univerjs_design[_0x46f832(0x2bc)])(_0x46f832(0x1fe),_0x56f908(_0x49964d,_0x1ac951)),'children':(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x2a6),'children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':(0x0,_univerjs_design[_0x46f832(0x2bc)])(_0x46f832(0x2a7),_0x2985c8(_0x49964d,_0x1ac951))}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':_0x46f832(0x296),'children':_0x248e9(_0x49964d)})]})}),_0x1ac951!==_univerjs_pro_mcp[_0x46f832(0x300)][_0x46f832(0x208)]&&(_0x49964d===_univerjs_pro_mcp[_0x46f832(0x276)]['FAILED']||_0x1ac951===_univerjs_pro_mcp[_0x46f832(0x300)][_0x46f832(0x23c)])&&(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x234),'children':(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x228),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),(0x0,react_jsx_runtime['jsx'])('p',{'className':_0x46f832(0x26b),'children':_0x4cd1f6(_0x1ac951)})]})})]}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x2f5),'children':(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x2a5),'children':[(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x220),'children':[(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x21c),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'children':'🔑'}),'\x20',_0x4a0362['t'](_0x46f832(0x242)),(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':_0x46f832(0x291),'children':'*'}),_0x323ee0&&(0x0,react_jsx_runtime['jsx'])('a',{'className':_0x46f832(0x229),'title':_0x4a0362['t'](_0x46f832(0x225)),'role':_0x46f832(0x2d9),'onClick':()=>_0x2f35be(!![]),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_icons['HelpIcon'],{})})]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x46f832(0x2e1)],{'type':_0x46f832(0x31c),'placeholder':_0x4a0362['t'](_0x46f832(0x2b3)),'value':_0x20c3f7,'disabled':loading,'autoComplete':_0x46f832(0x21e),'onChange':_0x50bc33}),(0x0,react_jsx_runtime['jsx'])('p',{'className':_0x46f832(0x223),'children':_0x4a0362['t'](_0x46f832(0x25e))})]}),_0x323ee0&&_0x273614&&(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[(0x0,react_jsx_runtime['jsx'])('a',{'className':_0x46f832(0x2ac),'role':_0x46f832(0x2d9),'onClick':()=>_0x2f35be(![]),'children':(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_univerjs_icons[_0x46f832(0x348)],{'className':_0x46f832(0x24d)})}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x256),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x244),'children':(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':_0x46f832(0x325),'children':'🚀'})}),(0x0,react_jsx_runtime[_0x46f832(0x212)])('div',{'className':_0x46f832(0x261),'children':[(0x0,react_jsx_runtime['jsx'])('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x4a0362['t'](_0x46f832(0x225))}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])('p',{'className':_0x46f832(0x34b),'children':_0x4a0362['t']('mcpConfig.apiApplyInfo.description')}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x290),'children':_0x49ade8&&(0x0,react_jsx_runtime[_0x46f832(0x212)])('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x15e03b,'target':_0x46f832(0x32a),'rel':'noopener\x20noreferrer','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])('span',{'children':'🤖'}),_0x4a0362['t'](_0x46f832(0x293)),(0x0,react_jsx_runtime['jsx'])(_0x46f832(0x29b),{'className':_0x46f832(0x32c),'children':'↗'})]})}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x4a0362['t'](_0x46f832(0x22b))]})]})]})]}),_0x3facc8[_0x46f832(0x344)]&&(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x1fd),'children':[(0x0,react_jsx_runtime[_0x46f832(0x212)])('h4',{'className':_0x46f832(0x310),'children':[(0x0,react_jsx_runtime['jsx'])(_0x46f832(0x29b),{'children':'🔗'}),'\x20',_0x4a0362['t'](_0x46f832(0x24a))]}),(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x23d),{'className':_0x46f832(0x317),'children':[(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':'univer-space-y-3','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])('p',{'className':_0x46f832(0x2c5),'children':_0x4a0362['t'](_0x46f832(0x2c1))}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x220),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x30f),'children':_0x4a0362['t'](_0x46f832(0x1f2))}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x20b),'children':[(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x46f832(0x2a6),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x4a0362['t'](_0x46f832(0x2eb))]}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])('span',{'className':_0x46f832(0x324),'children':'2'}),_0x4a0362['t'](_0x46f832(0x2fc))]}),(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x23d),{'className':_0x46f832(0x2a6),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x4a0362['t'](_0x46f832(0x32d))]})]})]})]}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':'univer-space-y-2','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])('div',{'className':_0x46f832(0x30f),'children':'MCP\x20Configuration'}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])('div',{'className':_0x46f832(0x23e),'children':(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x207),{'className':_0x46f832(0x2f3),'children':JSON[_0x46f832(0x2ce)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x1d4004||_0x46f832(0x342)),'type':_0x46f832(0x341),'headers':{'Authorization':_0x46f832(0x215)+(_0x20c3f7||_0x46f832(0x2ba))}}}},null,0x2)})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x23d),{'className':_0x46f832(0x2d0),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x30f),'children':_0x4a0362['t'](_0x46f832(0x345))}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x220),'children':[(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x2ec),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x245)}),(0x0,react_jsx_runtime[_0x46f832(0x212)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x1ed),'children':_0x46f832(0x2e2)}),(0x0,react_jsx_runtime['jsx'])(_0x46f832(0x23d),{'className':_0x46f832(0x223),'children':_0x4a0362['t'](_0x46f832(0x33f))})]})]}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x2ec),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x265),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])('div',{'className':_0x46f832(0x1ed),'children':_0x46f832(0x295)}),(0x0,react_jsx_runtime['jsx'])(_0x46f832(0x23d),{'className':_0x46f832(0x223),'children':_0x4a0362['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x46f832(0x298)],{'onClick':_0x439faf,'disabled':!_0x1832f5||loading,'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':loading?(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x29b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'children':'⟲'}),_0x4a0362['t']('mcpConfig.saving')]}):(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x29b),{'className':_0x46f832(0x2a6),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_univerjs_icons[_0x46f832(0x2c2)],{}),_0x4a0362['t'](_0x46f832(0x343))]})}),(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x46f832(0x2b6),'children':(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x23d),{'className':_0x46f832(0x22d),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),(0x0,react_jsx_runtime[_0x46f832(0x212)])('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x46f832(0x1f1),'children':_0x46f832(0x283)}),(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x23d),{'children':['•',_0x4a0362['t'](_0x46f832(0x2e9))]}),(0x0,react_jsx_runtime['jsxs'])('div',{'children':['•',_0x4a0362['t'](_0x46f832(0x309))]})]})]})})]})})]});}const MCP_UI_PLUGIN_CONFIG_KEY=_0x370a48(0x263),configSymbol=Symbol(MCP_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={'showDeveloperTools':![],'showStatus':!![]};function _typeof(_0x17baf2){'@babel/helpers - typeof';const _0x5c330a=_0x370a48;return _typeof=_0x5c330a(0x304)==typeof Symbol&&'symbol'==typeof Symbol['iterator']?function(_0x1f2bbc){return typeof _0x1f2bbc;}:function(_0x515b79){const _0x2163dc=_0x5c330a;return _0x515b79&&_0x2163dc(0x304)==typeof Symbol&&_0x515b79[_0x2163dc(0x2d3)]===Symbol&&_0x515b79!==Symbol['prototype']?'symbol':typeof _0x515b79;},_typeof(_0x17baf2);}function toPrimitive(_0x29daaf,_0x277441){const _0x26081a=_0x370a48;if('object'!=_typeof(_0x29daaf)||!_0x29daaf)return _0x29daaf;var _0x47108e=_0x29daaf[Symbol[_0x26081a(0x27f)]];if(void 0x0!==_0x47108e){var _0x5aa63a=_0x47108e['call'](_0x29daaf,_0x277441||_0x26081a(0x201));if(_0x26081a(0x2cb)!=_typeof(_0x5aa63a))return _0x5aa63a;throw new TypeError(_0x26081a(0x31b));}return(_0x26081a(0x2a8)===_0x277441?String:Number)(_0x29daaf);}function toPropertyKey(_0x3489f9){const _0x33b617=_0x370a48;var _0x221a01=toPrimitive(_0x3489f9,_0x33b617(0x2a8));return _0x33b617(0x301)==_typeof(_0x221a01)?_0x221a01:_0x221a01+'';}function _0x8260(_0x594d59,_0x31cb4e){_0x594d59=_0x594d59-0x1ec;const _0x2d59b0=_0x2d59();let _0x8260e0=_0x2d59b0[_0x594d59];return _0x8260e0;}function _defineProperty(_0x3a4035,_0x18604b,_0x5aad3b){return(_0x18604b=toPropertyKey(_0x18604b))in _0x3a4035?Object['defineProperty'](_0x3a4035,_0x18604b,{'value':_0x5aad3b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a4035[_0x18604b]=_0x5aad3b,_0x3a4035;}function __decorateParam(_0x16cc39,_0x468631){return function(_0x34ca30,_0x5680e2){_0x468631(_0x34ca30,_0x5680e2,_0x16cc39);};}function __decorate(_0x2476ac,_0x3a2595,_0x2afb47,_0x518f50){const _0x2ab298=_0x370a48;var _0x579a35=arguments[_0x2ab298(0x32b)],_0x47c99e=_0x579a35<0x3?_0x3a2595:_0x518f50===null?_0x518f50=Object[_0x2ab298(0x328)](_0x3a2595,_0x2afb47):_0x518f50,_0x39441e;if(typeof Reflect==='object'&&typeof Reflect[_0x2ab298(0x2a2)]===_0x2ab298(0x304))_0x47c99e=Reflect[_0x2ab298(0x2a2)](_0x2476ac,_0x3a2595,_0x2afb47,_0x518f50);else{for(var _0x8cd1da=_0x2476ac[_0x2ab298(0x32b)]-0x1;_0x8cd1da>=0x0;_0x8cd1da--)if(_0x39441e=_0x2476ac[_0x8cd1da])_0x47c99e=(_0x579a35<0x3?_0x39441e(_0x47c99e):_0x579a35>0x3?_0x39441e(_0x3a2595,_0x2afb47,_0x47c99e):_0x39441e(_0x3a2595,_0x2afb47))||_0x47c99e;}return _0x579a35>0x3&&_0x47c99e&&Object[_0x2ab298(0x238)](_0x3a2595,_0x2afb47,_0x47c99e),_0x47c99e;}const MCP_API_KEY_STORAGE_KEY=_0x370a48(0x268),MCP_CONFIG_DIALOG_ID=_0x370a48(0x280);let MCPConfigUIController=class MCPConfigUIController extends _univerjs_core['Disposable']{constructor(_0x34c558,_0x276e45,_0x23eeb3,_0x4fe8bc,_0x4e1bc1,_0x24d2a2,_0x5ae92b,_0x4a842b,_0x17901b,_0x4012da){const _0x265bd7=_0x370a48;super(),this['_injector']=_0x34c558,this['_uiPartsService']=_0x276e45,this[_0x265bd7(0x266)]=_0x23eeb3,this[_0x265bd7(0x30d)]=_0x4fe8bc,this[_0x265bd7(0x27e)]=_0x4e1bc1,this[_0x265bd7(0x2d2)]=_0x24d2a2,this['_componentManager']=_0x5ae92b,this[_0x265bd7(0x24e)]=_0x4a842b,this[_0x265bd7(0x2fa)]=_0x17901b,this[_0x265bd7(0x312)]=_0x4012da,_defineProperty(this,_0x265bd7(0x284),new rxjs[(_0x265bd7(0x2c3))](![])),_defineProperty(this,'_mcpCoreConfig$',new rxjs[(_0x265bd7(0x2c3))]({})),_defineProperty(this,_0x265bd7(0x29c),new rxjs['BehaviorSubject']({})),_defineProperty(this,_0x265bd7(0x200),new rxjs['BehaviorSubject']('')),_defineProperty(this,_0x265bd7(0x318),async _0x2982c3=>{const _0x2cad80=_0x265bd7;this[_0x2cad80(0x284)][_0x2cad80(0x2f6)](!![]);try{var _0x186ec0,_0xeb0cfe;const _0x3cfed7=await this[_0x2cad80(0x2de)](_0x2982c3);if(!_0x3cfed7[_0x2cad80(0x321)]){this[_0x2cad80(0x2d2)][_0x2cad80(0x257)]({'type':_univerjs_design[_0x2cad80(0x1fa)][_0x2cad80(0x2db)],'content':_0x3cfed7[_0x2cad80(0x1f4)]||this[_0x2cad80(0x24e)]['t']('mcpConfig.validation.invalidConfig')});return;}if(_0x2982c3[_0x2cad80(0x204)])await this[_0x2cad80(0x30d)]['setItem'](MCP_API_KEY_STORAGE_KEY,_0x2982c3[_0x2cad80(0x204)][_0x2cad80(0x222)]());else await this[_0x2cad80(0x30d)]['removeItem'](MCP_API_KEY_STORAGE_KEY);this[_0x2cad80(0x200)][_0x2cad80(0x2f6)](((_0x186ec0=_0x2982c3[_0x2cad80(0x204)])===null||_0x186ec0===void 0x0?void 0x0:_0x186ec0[_0x2cad80(0x222)]())||''),this['_mcpConnectionController'][_0x2cad80(0x2cf)]({'Authorization':_0x2cad80(0x215)+((_0xeb0cfe=_0x2982c3[_0x2cad80(0x204)])===null||_0xeb0cfe===void 0x0?void 0x0:_0xeb0cfe['trim']())}),this[_0x2cad80(0x2d2)][_0x2cad80(0x257)]({'type':_univerjs_design[_0x2cad80(0x1fa)][_0x2cad80(0x2ed)],'content':this[_0x2cad80(0x24e)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x36e55f=_0x2cad80;this[_0x36e55f(0x27e)][_0x36e55f(0x287)](MCP_CONFIG_DIALOG_ID);},0x320);}catch(_0x192d3c){this['_logService'][_0x2cad80(0x331)](_0x2cad80(0x2ea),_0x192d3c),this[_0x2cad80(0x2d2)][_0x2cad80(0x257)]({'type':_univerjs_design[_0x2cad80(0x1fa)][_0x2cad80(0x2db)],'content':this[_0x2cad80(0x24e)]['t'](_0x2cad80(0x2fe))});}finally{this[_0x2cad80(0x284)][_0x2cad80(0x2f6)](![]);}}),this[_0x265bd7(0x279)](),this[_0x265bd7(0x273)](),this['_registerComponent']();}[_0x370a48(0x2a0)](){const _0x368367=_0x370a48,_0x20102b=this[_0x368367(0x266)][_0x368367(0x34c)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x20102b===null||_0x20102b===void 0x0?void 0x0:_0x20102b['showDeveloperTools'])this['_dialogService'][_0x368367(0x2a9)]({'id':MCP_CONFIG_DIALOG_ID,'title':{'title':this[_0x368367(0x24e)]['t'](_0x368367(0x335))},'children':{'label':_0x368367(0x2d1)},'width':0x244,'draggable':!![],'destroyOnClose':!![],'onClose':()=>{const _0x203ef6=_0x368367;this[_0x203ef6(0x27e)]['close'](MCP_CONFIG_DIALOG_ID);}});}[_0x370a48(0x349)](){const _0x595bfa=_0x370a48;return this[_0x595bfa(0x21b)][_0x595bfa(0x299)];}['_registerComponent'](){const _0x4d13f9=_0x370a48;this[_0x4d13f9(0x269)](this['_componentManager'][_0x4d13f9(0x30e)](_0x4d13f9(0x2d1),this[_0x4d13f9(0x2a4)]()));}['_createConfigPanelComponent'](){const _0x150b40=_0x370a48;return(0x0,_univerjs_ui[_0x150b40(0x2d5)])(()=>{const _0x2f2674=_0x150b40;var _0x562689,_0x3a01dd,_0x58d808;return(0x0,react_jsx_runtime[_0x2f2674(0x33e)])(MCPConfigPanel,{'config':this[_0x2f2674(0x29c)]['value'],'mcpCoreConfig':this[_0x2f2674(0x21b)][_0x2f2674(0x299)],'currentApiKey$':this[_0x2f2674(0x200)],'onSave':this[_0x2f2674(0x318)],'loading':this['_loading$'][_0x2f2674(0x299)],'connectionStatus$':(_0x562689=this[_0x2f2674(0x312)])===null||_0x562689===void 0x0?void 0x0:_0x562689[_0x2f2674(0x227)],'connectionError$':(_0x3a01dd=this['_mcpConnectionController'])===null||_0x3a01dd===void 0x0?void 0x0:_0x3a01dd[_0x2f2674(0x2ca)],'currentSessionId$':(_0x58d808=this[_0x2f2674(0x312)])===null||_0x58d808===void 0x0?void 0x0:_0x58d808[_0x2f2674(0x272)]});},this['_injector']);}[_0x370a48(0x279)](){const _0x1af531=_0x370a48;this[_0x1af531(0x269)](this['_configService'][_0x1af531(0x20a)](_univerjs_pro_mcp[_0x1af531(0x2f1)])[_0x1af531(0x235)](_0x5c8c0f=>{const _0x5b5600=_0x1af531;this[_0x5b5600(0x21b)][_0x5b5600(0x2f6)](_0x5c8c0f||{});}));const _0x318b46=this[_0x1af531(0x266)][_0x1af531(0x34c)](_univerjs_pro_mcp['MCP_PLUGIN_CONFIG_KEY']);this[_0x1af531(0x21b)][_0x1af531(0x2f6)](_0x318b46||{}),this[_0x1af531(0x269)](this[_0x1af531(0x266)][_0x1af531(0x20a)](MCP_UI_PLUGIN_CONFIG_KEY)[_0x1af531(0x235)](_0x23e7f2=>{const _0x730c19=_0x1af531;this[_0x730c19(0x29c)][_0x730c19(0x2f6)](_0x23e7f2||{});}));const _0x16fad6=this[_0x1af531(0x266)][_0x1af531(0x34c)](MCP_UI_PLUGIN_CONFIG_KEY);this['_config$'][_0x1af531(0x2f6)](_0x16fad6||{});}async['_loadStoredApiKey'](){const _0x4096dd=_0x370a48,_0x13f11b=this[_0x4096dd(0x266)][_0x4096dd(0x34c)](MCP_UI_PLUGIN_CONFIG_KEY);if(!(_0x13f11b===null||_0x13f11b===void 0x0?void 0x0:_0x13f11b[_0x4096dd(0x344)]))return;const _0x4dee95=await this['_localStorageService'][_0x4096dd(0x24b)](MCP_API_KEY_STORAGE_KEY);_0x4dee95&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':'Bearer\x20'+_0x4dee95}),this[_0x4096dd(0x200)][_0x4096dd(0x2f6)](_0x4dee95));}async[_0x370a48(0x2de)](_0x179cca){const _0x148970=_0x370a48;if(!_0x179cca['apiKey']||_0x179cca[_0x148970(0x204)][_0x148970(0x222)]()[_0x148970(0x32b)]===0x0)return{'isValid':![],'errorMessage':this[_0x148970(0x24e)]['t'](_0x148970(0x347))};if(_0x179cca[_0x148970(0x204)]['trim']()[_0x148970(0x32b)]<0xa)return{'isValid':![],'errorMessage':this['_localeService']['t'](_0x148970(0x2b2))};try{const _0x187ec9=await this[_0x148970(0x2da)][_0x148970(0x1f9)](_univerjs_pro_mcp[_0x148970(0x2dc)])['validateApiKey'](_0x179cca[_0x148970(0x204)][_0x148970(0x222)]());if(!_0x187ec9[_0x148970(0x321)])return{'isValid':![],'errorMessage':_0x187ec9[_0x148970(0x331)]||this['_localeService']['t'](_0x148970(0x22e))};return{'isValid':!![]};}catch(_0x2f9b77){return console[_0x148970(0x320)](_0x148970(0x275),_0x2f9b77),{'isValid':!![]};}}};MCPConfigUIController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x370a48(0x2c4)])(_univerjs_core[_0x370a48(0x1f3)])),__decorateParam(0x1,_univerjs_ui['IUIPartsService']),__decorateParam(0x2,_univerjs_core[_0x370a48(0x202)]),__decorateParam(0x3,_univerjs_core[_0x370a48(0x2b5)]),__decorateParam(0x4,_univerjs_ui[_0x370a48(0x315)]),__decorateParam(0x5,_univerjs_ui[_0x370a48(0x203)]),__decorateParam(0x6,(0x0,_univerjs_core['Inject'])(_univerjs_ui[_0x370a48(0x2b8)])),__decorateParam(0x7,(0x0,_univerjs_core['Inject'])(_univerjs_core['LocaleService'])),__decorateParam(0x8,_univerjs_core[_0x370a48(0x27d)]),__decorateParam(0x9,(0x0,_univerjs_core[_0x370a48(0x2c4)])(_univerjs_pro_mcp[_0x370a48(0x2dc)]))],MCPConfigUIController);const OpenMCPConfigPanelCommand={'id':_0x370a48(0x327),'type':_univerjs_core[_0x370a48(0x270)][_0x370a48(0x219)],'handler':async(_0x438b31,_0x1085a8)=>{const _0x13d003=_0x370a48;return _0x438b31[_0x13d003(0x1f9)](MCPConfigUIController)['showConfigPanel'](),!![];}};function mapStatusToI18NKey(_0x4b3b65,_0x1c7a66){const _0x45cf2e=_0x370a48;switch(_0x4b3b65){case _univerjs_pro_mcp['MCPConnectionStatus'][_0x45cf2e(0x308)]:return _0x45cf2e(0x2b0);case _univerjs_pro_mcp[_0x45cf2e(0x276)]['CONNECTING']:return _0x45cf2e(0x24c);case _univerjs_pro_mcp[_0x45cf2e(0x276)][_0x45cf2e(0x2af)]:return _0x45cf2e(0x28d);case _univerjs_pro_mcp[_0x45cf2e(0x276)]['FAILED']:switch(_0x1c7a66){case _univerjs_pro_mcp[_0x45cf2e(0x300)][_0x45cf2e(0x23c)]:return'mcpStatus.unauthorized';case _univerjs_pro_mcp[_0x45cf2e(0x300)][_0x45cf2e(0x346)]:return _0x45cf2e(0x21d);case _univerjs_pro_mcp[_0x45cf2e(0x300)][_0x45cf2e(0x31e)]:return _0x45cf2e(0x29a);case _univerjs_pro_mcp['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return'mcpStatus.maxRetriesExceeded';default:return _0x45cf2e(0x2e6);}case _univerjs_pro_mcp[_0x45cf2e(0x276)][_0x45cf2e(0x336)]:return _0x45cf2e(0x26a);default:return _0x45cf2e(0x1fc);}}function getTooltipText(_0x1c0ed4,_0x3e4b80,_0xc5916d,_0x2d7656=!![]){const _0x506b6d=_0x370a48,_0x56b858=mapStatusToI18NKey(_0x1c0ed4,_0x3e4b80),_0x471a1a=_0xc5916d['t'](_0x56b858);if(!_0x2d7656)return _0x471a1a;if(_0x1c0ed4===_univerjs_pro_mcp[_0x506b6d(0x276)][_0x506b6d(0x308)]&&_0x3e4b80===_univerjs_pro_mcp[_0x506b6d(0x300)][_0x506b6d(0x23c)])return _0x471a1a+'\x20-\x20'+_0xc5916d['t']('mcpStatus.clickToConfigure');else{if(_0x1c0ed4===_univerjs_pro_mcp[_0x506b6d(0x276)][_0x506b6d(0x2af)])return''+_0x471a1a;else{if(_0x1c0ed4===_univerjs_pro_mcp[_0x506b6d(0x276)][_0x506b6d(0x308)]||_0x1c0ed4===_univerjs_pro_mcp[_0x506b6d(0x276)][_0x506b6d(0x2ad)])return _0x471a1a+_0x506b6d(0x329)+_0xc5916d['t'](_0x506b6d(0x297));}}return _0x471a1a;}function getStatusColor(_0x107196){const _0x4ef18e=_0x370a48;switch(_0x107196){case _univerjs_pro_mcp[_0x4ef18e(0x276)][_0x4ef18e(0x2af)]:return'univer-text-green-500';case _univerjs_pro_mcp[_0x4ef18e(0x276)]['CONNECTING']:case _univerjs_pro_mcp[_0x4ef18e(0x276)][_0x4ef18e(0x336)]:return _0x4ef18e(0x2e0);case _univerjs_pro_mcp[_0x4ef18e(0x276)][_0x4ef18e(0x2ad)]:case _univerjs_pro_mcp[_0x4ef18e(0x276)][_0x4ef18e(0x308)]:return _0x4ef18e(0x291);default:return'univer-text-gray-500';}}function MCPStatusDisplay(_0x185fbf){const _0x843b7b=_0x370a48,{status$:_0x37992f,error$:_0x202d2e,onConfigure:_0x30f592,showClickable:showClickable=!![]}=_0x185fbf,_0x576350=(0x0,_univerjs_ui['useObservable'])(_0x37992f,_univerjs_pro_mcp['MCPConnectionStatus'][_0x843b7b(0x308)]),_0x51d787=(0x0,_univerjs_ui[_0x843b7b(0x282)])(_0x202d2e,_univerjs_pro_mcp[_0x843b7b(0x300)][_0x843b7b(0x208)]),_0x162702=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x843b7b(0x28c)]),_0x506379=_0x576350===_univerjs_pro_mcp['MCPConnectionStatus']['CONNECTED'];_0x576350===_univerjs_pro_mcp[_0x843b7b(0x276)][_0x843b7b(0x23b)]||_univerjs_pro_mcp[_0x843b7b(0x276)][_0x843b7b(0x336)];const _0x3eee1a=_0x162702['t'](mapStatusToI18NKey(_0x576350,_0x51d787)),_0xcda869=getTooltipText(_0x576350,_0x51d787,_0x162702,showClickable),_0x5f26f5=getStatusColor(_0x576350),_0x2fcb30=_0x506379?(0x0,react_jsx_runtime[_0x843b7b(0x33e)])(_univerjs_icons['OnLineIcon'],{}):(0x0,react_jsx_runtime[_0x843b7b(0x33e)])(_univerjs_icons[_0x843b7b(0x26f)],{}),_0x5793c7=(0x0,react[_0x843b7b(0x2cd)])(()=>{if(showClickable&&_0x30f592)_0x30f592();},[showClickable,_0x30f592]);function _0x328b9f(){const _0x2e5ef1=_0x843b7b;return(0x0,react_jsx_runtime[_0x2e5ef1(0x212)])(_0x2e5ef1(0x23d),{'className':(0x0,_univerjs_design[_0x2e5ef1(0x2bc)])(_0x2e5ef1(0x2be),showClickable&&_0x30f592&&_0x2e5ef1(0x2f0)),'role':_0x2e5ef1(0x2d9),'onClick':showClickable&&_0x30f592?_0x5793c7:void 0x0,'children':[(0x0,react_jsx_runtime[_0x2e5ef1(0x33e)])(_0x2e5ef1(0x23d),{'className':(0x0,_univerjs_design['clsx'])(_0x2e5ef1(0x2c8),_0x5f26f5),'children':_0x2fcb30}),(0x0,react_jsx_runtime[_0x2e5ef1(0x33e)])(_0x2e5ef1(0x23d),{'className':_0x2e5ef1(0x31a),'children':_0x3eee1a})]});}return(0x0,react_jsx_runtime[_0x843b7b(0x33e)])(_univerjs_design['Tooltip'],{'title':_0xcda869,'placement':_0x843b7b(0x2df),'children':_0x328b9f()});}let MCPConnectionUIController=class MCPConnectionUIController extends _univerjs_core[_0x370a48(0x23a)]{constructor(_0x2b3520,_0x209b93,_0x3c1c37,_0x151412){const _0x10c241=_0x370a48;super(),this['_injector']=_0x2b3520,this[_0x10c241(0x246)]=_0x209b93,this[_0x10c241(0x33d)]=_0x3c1c37,this['_configService']=_0x151412,this[_0x10c241(0x2fd)](),this[_0x10c241(0x2f2)]();}['_initAutoConnect'](){const _0x48403d=_0x370a48,_0x3d7090=this[_0x48403d(0x266)]['getConfig'](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x3d7090===null||_0x3d7090===void 0x0?void 0x0:_0x3d7090['showDeveloperTools'])this[_0x48403d(0x246)][_0x48403d(0x230)]=![];}[_0x370a48(0x2f2)](){const _0x335b84=_0x370a48,_0x34c3ba=this[_0x335b84(0x266)]['getConfig'](MCP_UI_PLUGIN_CONFIG_KEY);if((_0x34c3ba===null||_0x34c3ba===void 0x0?void 0x0:_0x34c3ba['showStatus'])!==![])this[_0x335b84(0x269)](this[_0x335b84(0x33d)][_0x335b84(0x2c9)](_univerjs_ui[_0x335b84(0x2b9)]['HEADER_MENU'],()=>{const _0x1aafe1=_0x335b84;var _0x108fce;return(0x0,_univerjs_ui['connectInjector'])(passProps({'status$':this[_0x1aafe1(0x246)][_0x1aafe1(0x227)],'error$':this['_connectionController'][_0x1aafe1(0x2ca)],'onConfigure':()=>this[_0x1aafe1(0x30a)](),'showClickable':(_0x108fce=_0x34c3ba===null||_0x34c3ba===void 0x0?void 0x0:_0x34c3ba[_0x1aafe1(0x344)])!==null&&_0x108fce!==void 0x0?_0x108fce:![]}),this[_0x1aafe1(0x2da)]);}));}[_0x370a48(0x30a)](){const _0x1c4b13=_0x370a48;this[_0x1c4b13(0x2da)][_0x1c4b13(0x1f9)](MCPConfigUIController)[_0x1c4b13(0x2a0)]();}};MCPConnectionUIController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x370a48(0x2c4)])(_univerjs_core['Injector'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x370a48(0x2c4)])(_univerjs_pro_mcp[_0x370a48(0x2dc)])),__decorateParam(0x2,_univerjs_ui['IUIPartsService']),__decorateParam(0x3,_univerjs_core[_0x370a48(0x202)])],MCPConnectionUIController);function _0x2d59(){const _0x596032=['Enable\x20Authentication','defineProperty','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Disposable','CONNECTING','UNAUTHORIZED','div','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','权限验证失败,请检查您的\x20API\x20密钥','什么是\x20API\x20密钥?','724orBOEN','mcpConfig.apiKey','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_connectionController','保存配置','MCP\x20客户端配置','univer.ai','mcpConfig.connectionInfo','getItem','mcpStatus.connecting','univer-size-4','_localeService','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','8823ccaCWj','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20未授权','MCP\x20Client\x20Configuration','useDependency','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','show','MCP\x20Retrying...','onStarting','配置\x20MCP\x20使用\x20AI\x20操作电子表格','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Click\x20to\x20connect\x20MCP','连接中...','mcpConfig.apiKeyHint','UniverMCPUIPlugin','MCP\x20重连中...','univer-flex-1','univer-bg-red-500','mcp-ui.config','mcpConfig.connectionStatus.failed','univer-min-w-0\x20univer-flex-1','_configService','has','mcp.apiKey','disposeWithMe','mcpStatus.retrying','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer.plus','UniverMCPPlugin','Enter\x20your\x20API\x20key','OffLineIcon','CommandType','univer-bg-blue-500','sessionId$','_loadStoredApiKey','MCP:\x20Session\x20ID\x20Occupied','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCPConnectionStatus','Univer\x20AI\x20控制台','9KWDJAt','_initConfigSync','_menuManagerService','MAX_RETRIES_EXCEEDED','45740Bqjdxj','ILogService','_dialogService','toPrimitive','mcp-config-dialog','OTHERS','useObservable','Configuration\x20Notes:','_loading$','重连中...','API\x20密钥','close','mcpConfig.description','univer-flex\x20univer-items-center\x20univer-gap-3','会话ID','version','LocaleService','mcpStatus.connected','几秒钟内获取您的\x20API\x20密钥','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-text-red-500','includes','mcpConfig.apiApplyInfo.univerAiLabel','MCPConnectionUIController','Authorization:','univer-text-sm\x20univer-font-medium','mcpStatus.clickToConnect','Button','value','mcpStatus.networkError','span','_config$','Save\x20Configuration','_commandService','univer-bg-green-500','showConfigPanel','MCP\x20Connection\x20Failed','decorate','Module','_createConfigPanelComponent','univer-space-y-5','univer-flex\x20univer-items-center\x20univer-gap-2','univer-size-2\x20univer-rounded-full','string','open','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20超出最大重试次数','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','FAILED','会话\x20ID\x20已被占用,请稍后再试','CONNECTED','mcpStatus.disconnected','0.21.0','mcpConfig.validation.apiKeyTooShort','mcpConfig.apiKeyPlaceholder','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','ILocalStorageService','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MCP_UI_PLUGIN','ComponentManager','BuiltInUIPart','<API_KEY>','add','clsx','pluginName','univer-flex\x20univer-items-center','8412844VJwZRO','您的\x20API\x20密钥安全存储在本地存储中','mcpConfig.configInstructions','CheckMarkIcon','BehaviorSubject','Inject','univer-text-xs\x20univer-text-gray-600','OpenMCPConfigPanelCommand','Session\x20ID','univer-mr-2\x20univer-flex\x20univer-text-xl','registerComponent','connectionError$','object','329BlwatE','useCallback','stringify','__setCustomHeaders','univer-space-y-3','MCPConfigPanel','_messageService','constructor','重启您的\x20MCP\x20客户端以使配置生效','connectInjector','MCP\x20Connected','点击配置\x20MCP','MenuIcon','button','_injector','Error','MCPConnectionController','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','_validateConfig','bottom','univer-text-yellow-500','Input','univer_session_id:','merge','MCP\x20连接失败','MCP\x20Unknown\x20Status','mcpStatus.failed','Copy\x20the\x20JSON\x20configuration\x20below','ISocketService','mcpConfig.note1','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpConfig.configStep1','univer-flex\x20univer-items-start\x20univer-gap-3','Success','MenuItemType','mcpConfig.connectionStatus.connecting','\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','MCP_PLUGIN_CONFIG_KEY','_initStatusComponent','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','next','配置更改将立即生效','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','packageName','_logService','MCP\x20Disconnected','mcpConfig.configStep2','_initAutoConnect','mcpConfig.configError','配置参数:','MCPConnectionError','symbol','56766elkNgU','已连接','function','IMenuManagerService','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','125XWnzCM','DISCONNECTED','mcpConfig.note2','_handleConfigure','5616032iQcSRb','网络连接错误,请检查您的网络连接','_localStorageService','register','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_mcpConnectionController','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Plugin','IDialogService','univer-text-sm\x20univer-text-gray-500','univer-space-y-4','_handleConfigSave','https://console.univer.plus','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','text','MCP:\x20会话\x20ID\x20已被占用','NETWORK_ERROR','10371170tVpobY','warn','isValid','您的\x20API\x20密钥将在此浏览器中本地存储','MCPStatusDisplay','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-text-blue-600','registerCommand','mcp-ui.command.openConfigPanel','getOwnPropertyDescriptor','\x20-\x20','_blank','length','univer-text-gray-400','mcpConfig.configStep3','启用身份验证','复制以下\x20JSON\x20配置','forEach','error','_initializeMenus','Configuration\x20Parameters:','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.title','RETRYING','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Univer\x20AI\x20Console','MCP\x20Configuration','点击连接\x20MCP','API\x20密钥无效,请检查密钥是否正确','_uiPartsService','jsx','mcpConfig.sessionIdDescription','启用身份验证以获得安全连接','http','<SESSION_ID>','mcpConfig.save','showDeveloperTools','mcpConfig.configParameters','SESSION_ID_OCCUPIED','mcpConfig.validation.apiKeyRequired','CloseIcon','getCurrentConfig','MCPUIMenuController','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','getConfig','_config','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','请输入您的\x20API\x20密钥','_initializeCommands','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-font-medium','mcpConfig.configStepTitle','Injector','errorMessage','保存中...','DependentOn','Click\x20to\x20configure\x20MCP','Connected','get','MessageType','API\x20密钥不能为空','mcpStatus.unknown','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','Configuration\x20Steps:','_apiKey$','default','IConfigService','IMessageService','apiKey','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20已断开','pre','NONE','toStringTag','subscribeConfigValue$','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','配置无效','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.','885668NPlvcH','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpServerUrl','jsxs','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20网络错误','Bearer\x20','mcpConfig.connectionStatus.retrying','MCP\x20配置','API\x20密钥长度至少需要\x2010\x20位','COMMAND','@univerjs-pro/mcp-ui','_mcpCoreConfig$','label','mcpStatus.sessionOccupied','off','univer-bg-gray-500','univer-space-y-2','enUS','trim','univer-text-xs\x20univer-text-gray-500','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.apiApplyInfo.title','Max\x20Retries','connectionStatus$','univer-flex\x20univer-items-start\x20univer-gap-2','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','Retrying...','mcpConfig.apiApplyInfo.getStarted','useState','univer-flex\x20univer-gap-3','mcpConfig.validation.invalidApiKey','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','enableAutoConnect','超出最大重试次数,请稍后再试','MCP:\x20Unauthorized','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','subscribe','Invalid\x20configuration'];_0x2d59=function(){return _0x596032;};return _0x2d59();}function passProps(_0x1cdb01){const {status$:_0x99a0ff,error$:_0x308af7,onConfigure:_0x27631e,showClickable:_0x96e842}=_0x1cdb01;return function _0xf4deee(){const _0x305f86=_0x8260;return(0x0,react_jsx_runtime[_0x305f86(0x33e)])(MCPStatusDisplay,{'status$':_0x99a0ff,'error$':_0x308af7,'onConfigure':_0x27631e,'showClickable':_0x96e842});};}function MCPConfigMenuItemFactory(_0x56296c){const _0x525394=_0x370a48;return{'id':OpenMCPConfigPanelCommand['id'],'type':_univerjs_ui[_0x525394(0x2ee)]['BUTTON'],'icon':_0x525394(0x2d8),'title':_0x525394(0x335),'tooltip':_0x525394(0x335)};}const menuSchema={[_univerjs_ui['RibbonStartGroup'][_0x370a48(0x281)]]:{[OpenMCPConfigPanelCommand['id']]:{'order':0xa,'menuItemFactory':MCPConfigMenuItemFactory}}};let MCPUIMenuController=class MCPUIMenuController extends _univerjs_core[_0x370a48(0x23a)]{constructor(_0xeceeb5,_0x2853eb){const _0xc9fff8=_0x370a48;super(),this[_0xc9fff8(0x29e)]=_0xeceeb5,this[_0xc9fff8(0x27a)]=_0x2853eb,this[_0xc9fff8(0x1ef)](),this[_0xc9fff8(0x332)]();}[_0x370a48(0x1ef)](){const _0x105298=_0x370a48;[OpenMCPConfigPanelCommand][_0x105298(0x330)](_0x5d2dd6=>{const _0x2f1263=_0x105298;this[_0x2f1263(0x269)](this[_0x2f1263(0x29e)][_0x2f1263(0x326)](_0x5d2dd6));});}[_0x370a48(0x332)](){const _0x432167=_0x370a48;this[_0x432167(0x27a)]['mergeMenu'](menuSchema);}};MCPUIMenuController=__decorate([__decorateParam(0x0,_univerjs_core['ICommandService']),__decorateParam(0x1,_univerjs_ui[_0x370a48(0x305)])],MCPUIMenuController);const locale={'mcpStatus':{'disconnected':_0x370a48(0x2fb),'connecting':'MCP\x20Connecting...','connected':_0x370a48(0x2d6),'failed':_0x370a48(0x2a1),'retrying':_0x370a48(0x258),'unknown':_0x370a48(0x2e5),'unauthorized':_0x370a48(0x232),'sessionOccupied':_0x370a48(0x274),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x370a48(0x205),'clickToConnect':_0x370a48(0x25c),'clickToConfigure':_0x370a48(0x1f7)},'mcpConfig':{'title':_0x370a48(0x33a),'description':_0x370a48(0x306),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x370a48(0x26e),'apiKeyHint':_0x370a48(0x224),'enableAuth':_0x370a48(0x237),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x370a48(0x254),'configInstructions':_0x370a48(0x252),'configStepTitle':_0x370a48(0x1ff),'configStep1':_0x370a48(0x2e7),'configStep2':_0x370a48(0x2f4),'configStep3':_0x370a48(0x28f),'sessionId':_0x370a48(0x2c7),'sessionIdDescription':_0x370a48(0x233),'authorizationDescription':_0x370a48(0x213),'configParameters':_0x370a48(0x333),'maxRetries':_0x370a48(0x226),'save':_0x370a48(0x29d),'saving':'Saving...','note1':_0x370a48(0x2f8),'note2':_0x370a48(0x22f),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x370a48(0x337),'description':_0x370a48(0x20e),'univerAiLabel':_0x370a48(0x339),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x370a48(0x20d),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x370a48(0x236),'invalidApiKey':_0x370a48(0x2aa)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x370a48(0x1f8),'failed':'Connection\x20Failed','retrying':_0x370a48(0x22a)},'connectionError':{'unauthorized':_0x370a48(0x250),'sessionOccupied':_0x370a48(0x239),'networkError':_0x370a48(0x24f),'maxRetriesExceeded':_0x370a48(0x338)}}},locale$1={'mcpStatus':{'disconnected':_0x370a48(0x206),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x370a48(0x2e4),'retrying':_0x370a48(0x260),'unknown':'MCP\x20状态未知','unauthorized':_0x370a48(0x253),'sessionOccupied':_0x370a48(0x31d),'networkError':_0x370a48(0x214),'maxRetriesExceeded':_0x370a48(0x2ab),'clickToConnect':_0x370a48(0x33b),'clickToConfigure':_0x370a48(0x2d7)},'mcpConfig':{'title':_0x370a48(0x217),'description':_0x370a48(0x25a),'apiKey':_0x370a48(0x286),'apiKeyPlaceholder':_0x370a48(0x1ee),'apiKeyHint':_0x370a48(0x322),'enableAuth':_0x370a48(0x32e),'enableAuthHint':_0x370a48(0x340),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x370a48(0x248),'configInstructions':_0x370a48(0x1f0),'configStepTitle':'配置步骤:','configStep1':_0x370a48(0x32f),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x370a48(0x2d4),'sessionId':_0x370a48(0x28a),'sessionIdDescription':_0x370a48(0x313),'authorizationDescription':_0x370a48(0x25b),'configParameters':_0x370a48(0x2ff),'maxRetries':'最大重试次数','save':_0x370a48(0x247),'saving':_0x370a48(0x1f5),'note1':_0x370a48(0x2f7),'note2':_0x370a48(0x2c0),'configSaved':'配置保存成功','configError':'配置保存失败','apiApplyInfo':{'title':_0x370a48(0x240),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x370a48(0x277),'getStarted':_0x370a48(0x28e)},'validation':{'apiKeyRequired':_0x370a48(0x1fb),'apiKeyTooShort':_0x370a48(0x218),'invalidConfig':_0x370a48(0x20c),'invalidApiKey':_0x370a48(0x33c)},'connectionStatus':{'disconnected':'未连接','connecting':_0x370a48(0x25d),'connected':_0x370a48(0x303),'failed':'连接失败','retrying':_0x370a48(0x285)},'connectionError':{'unauthorized':_0x370a48(0x23f),'sessionOccupied':_0x370a48(0x2ae),'networkError':_0x370a48(0x30c),'maxRetriesExceeded':_0x370a48(0x231)}}};var name=_0x370a48(0x21a),version=_0x370a48(0x2b1);let UniverMCPUIPlugin=class UniverMCPUIPlugin extends _univerjs_core[_0x370a48(0x314)]{constructor(_0x4bdc66=defaultPluginConfig,_0xdccb18,_0x4e9798,_0x2ce9ea,_0x5ce173,_0xf2862e){const _0x2dcfc5=_0x370a48;super(),this['_config']=_0x4bdc66,this['_injector']=_0xdccb18,this[_0x2dcfc5(0x266)]=_0x4e9798,this[_0x2dcfc5(0x33d)]=_0x2ce9ea,this[_0x2dcfc5(0x30d)]=_0x5ce173,this[_0x2dcfc5(0x24e)]=_0xf2862e;const {..._0x4e889f}=(0x0,_univerjs_core[_0x2dcfc5(0x2e3)])({},defaultPluginConfig,this[_0x2dcfc5(0x1ec)]);this[_0x2dcfc5(0x266)]['setConfig'](MCP_UI_PLUGIN_CONFIG_KEY,_0x4e889f);}async[_0x370a48(0x259)](){const _0x219164=_0x370a48,_0x419bd4=[[MCPConnectionUIController],[MCPConfigUIController],[MCPUIMenuController]];if(!this['_injector'][_0x219164(0x267)](_univerjs_network['ISocketService']))_0x419bd4['push']([_univerjs_network[_0x219164(0x2e8)],{'useClass':_univerjs_network['WebSocketService']}]);_0x419bd4[_0x219164(0x330)](_0x1fc9d8=>this[_0x219164(0x2da)][_0x219164(0x2bb)](_0x1fc9d8)),this[_0x219164(0x2da)][_0x219164(0x1f9)](MCPConnectionUIController),this[_0x219164(0x2da)][_0x219164(0x1f9)](MCPConfigUIController),this['_injector'][_0x219164(0x1f9)](MCPUIMenuController);}};_defineProperty(UniverMCPUIPlugin,_0x370a48(0x2bd),_0x370a48(0x2b7)),_defineProperty(UniverMCPUIPlugin,_0x370a48(0x2f9),name),_defineProperty(UniverMCPUIPlugin,_0x370a48(0x28b),version),UniverMCPUIPlugin=__decorate([(0x0,_univerjs_core[_0x370a48(0x1f6)])(_univerjs_pro_mcp[_0x370a48(0x26d)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x370a48(0x2c4)])(_univerjs_core[_0x370a48(0x1f3)])),__decorateParam(0x2,_univerjs_core[_0x370a48(0x202)]),__decorateParam(0x3,_univerjs_ui['IUIPartsService']),__decorateParam(0x4,_univerjs_core[_0x370a48(0x2b5)]),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x370a48(0x28c)]))],UniverMCPUIPlugin),exports['MCPConfigPanel']=MCPConfigPanel,Object[_0x370a48(0x238)](exports,'MCPConfigUIController',{'enumerable':!![],'get':function(){return MCPConfigUIController;}}),Object['defineProperty'](exports,_0x370a48(0x294),{'enumerable':!![],'get':function(){return MCPConnectionUIController;}}),exports[_0x370a48(0x323)]=MCPStatusDisplay,Object[_0x370a48(0x238)](exports,_0x370a48(0x34a),{'enumerable':!![],'get':function(){return MCPUIMenuController;}}),exports[_0x370a48(0x2c6)]=OpenMCPConfigPanelCommand,Object['defineProperty'](exports,_0x370a48(0x25f),{'enumerable':!![],'get':function(){return UniverMCPUIPlugin;}}),exports[_0x370a48(0x221)]=locale,exports['zhCN']=locale$1;
1
+ const _0xa52f92=_0x20c4;(function(_0x346db0,_0x138889){const _0x3e2c12=_0x20c4,_0x4d1509=_0x346db0();while(!![]){try{const _0x58f1c7=-parseInt(_0x3e2c12(0x215))/0x1*(-parseInt(_0x3e2c12(0x19c))/0x2)+parseInt(_0x3e2c12(0x223))/0x3*(-parseInt(_0x3e2c12(0x1ed))/0x4)+-parseInt(_0x3e2c12(0x1f7))/0x5*(parseInt(_0x3e2c12(0x1b3))/0x6)+parseInt(_0x3e2c12(0xff))/0x7+parseInt(_0x3e2c12(0x144))/0x8*(parseInt(_0x3e2c12(0x1bb))/0x9)+-parseInt(_0x3e2c12(0x1fe))/0xa*(parseInt(_0x3e2c12(0x10f))/0xb)+parseInt(_0x3e2c12(0x201))/0xc;if(_0x58f1c7===_0x138889)break;else _0x4d1509['push'](_0x4d1509['shift']());}catch(_0x67f1b9){_0x4d1509['push'](_0x4d1509['shift']());}}}(_0x2260,0xd2bdb),Object[_0xa52f92(0x1d7)](exports,Symbol[_0xa52f92(0x1f4)],{'value':'Module'}));let _univerjs_core=require('@univerjs/core'),_univerjs_pro_mcp=require('@univerjs-pro/mcp'),_univerjs_design=require('@univerjs/design'),_univerjs_ui=require('@univerjs/ui'),rxjs=require('rxjs'),_univerjs_icons=require('@univerjs/icons'),react=require('react'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_network=require('@univerjs/network');function MCPConfigPanel(_0x3c3a43){const _0x145b98=_0xa52f92;var _0xed7b3b,_0x1d6d96;const {mcpCoreConfig:_0x528fd2,onSave:_0x3a75b0,loading:loading=![],config:_0x430ae2,connectionStatus$:_0x4093fe,connectionError$:_0x2cdfa1,currentApiKey$:_0x5dce80,currentSessionId$:_0x21e3c6}=_0x3c3a43,_0x462583=(0x0,_univerjs_ui[_0x145b98(0x21a)])(_univerjs_core[_0x145b98(0x189)]),_0x538cc6=(0x0,_univerjs_ui['useObservable'])(_0x4093fe,_univerjs_pro_mcp[_0x145b98(0x180)][_0x145b98(0x235)]),_0x55053e=(0x0,_univerjs_ui['useObservable'])(_0x2cdfa1,_univerjs_pro_mcp['MCPConnectionError'][_0x145b98(0x1dd)]),_0x4f0735=(0x0,_univerjs_ui[_0x145b98(0x17f)])(_0x21e3c6,''),[_0x417b8b,_0x5e8ff7]=(0x0,react[_0x145b98(0x1d6)])((0x0,_univerjs_ui[_0x145b98(0x17f)])(_0x5dce80,'')||''),_0x37dc29=!![],_0x33b04a=_0x430ae2[_0x145b98(0x1eb)]&&_0x528fd2['mcpServerUrl']&&(_0x528fd2['mcpServerUrl'][_0x145b98(0x162)](_0x145b98(0x18a))||_0x528fd2[_0x145b98(0x1b4)][_0x145b98(0x162)](_0x145b98(0x1c9))),_0x20f437=(_0xed7b3b=_0x528fd2['mcpServerUrl'])===null||_0xed7b3b===void 0x0?void 0x0:_0xed7b3b['includes'](_0x145b98(0x18a)),_0x476984=(_0x1d6d96=_0x528fd2[_0x145b98(0x1b4)])===null||_0x1d6d96===void 0x0?void 0x0:_0x1d6d96[_0x145b98(0x162)](_0x145b98(0x1c9)),_0x572676=_0x20f437?'https://console.univer.plus':'https://console.univer.ai',_0x27c954=_0x430ae2[_0x145b98(0x1eb)]&&(_0x20f437||_0x476984),[_0x18be27,_0x477a20]=(0x0,react[_0x145b98(0x1d6)])(!_0x417b8b[_0x145b98(0x18f)]()),_0x2a154e=(_0x27fb19,_0x1c4ec8)=>{const _0x4aa3d2=_0x145b98;if(_0x1c4ec8===_univerjs_pro_mcp[_0x4aa3d2(0x139)][_0x4aa3d2(0x1f2)])return _0x4aa3d2(0x1cd);switch(_0x27fb19){case _univerjs_pro_mcp['MCPConnectionStatus']['CONNECTED']:return _0x4aa3d2(0x200);case _univerjs_pro_mcp[_0x4aa3d2(0x180)][_0x4aa3d2(0xf2)]:case _univerjs_pro_mcp[_0x4aa3d2(0x180)][_0x4aa3d2(0x10b)]:return _0x4aa3d2(0x16d);case _univerjs_pro_mcp[_0x4aa3d2(0x180)][_0x4aa3d2(0x20d)]:return _0x4aa3d2(0x1cd);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x50033c=(_0xdfa631,_0x5eb48c)=>{const _0x536758=_0x145b98;if(_0x5eb48c===_univerjs_pro_mcp[_0x536758(0x139)][_0x536758(0x1f2)])return _0x536758(0x199);switch(_0xdfa631){case _univerjs_pro_mcp[_0x536758(0x180)][_0x536758(0x156)]:return _0x536758(0x1c1);case _univerjs_pro_mcp['MCPConnectionStatus']['CONNECTING']:case _univerjs_pro_mcp['MCPConnectionStatus'][_0x536758(0x10b)]:return'univer-bg-blue-500';case _univerjs_pro_mcp[_0x536758(0x180)][_0x536758(0x20d)]:return _0x536758(0x199);default:return _0x536758(0x23e);}},_0x1a9bb9=_0x4e4568=>{const _0x536fe3=_0x145b98;switch(_0x4e4568){case _univerjs_pro_mcp[_0x536fe3(0x180)][_0x536fe3(0x156)]:return _0x462583['t'](_0x536fe3(0x242));case _univerjs_pro_mcp[_0x536fe3(0x180)][_0x536fe3(0xf2)]:return _0x462583['t']('mcpConfig.connectionStatus.connecting');case _univerjs_pro_mcp[_0x536fe3(0x180)][_0x536fe3(0x20d)]:return _0x462583['t'](_0x536fe3(0x243));case _univerjs_pro_mcp[_0x536fe3(0x180)][_0x536fe3(0x10b)]:return _0x462583['t']('mcpConfig.connectionStatus.retrying');default:return _0x462583['t']('mcpConfig.connectionStatus.disconnected');}},_0xf374eb=_0x50490b=>{const _0x321d49=_0x145b98;switch(_0x50490b){case _univerjs_pro_mcp[_0x321d49(0x139)][_0x321d49(0x1f2)]:return _0x462583['t'](_0x321d49(0x1be));case _univerjs_pro_mcp[_0x321d49(0x139)][_0x321d49(0x121)]:return _0x462583['t'](_0x321d49(0x19a));case _univerjs_pro_mcp['MCPConnectionError']['NETWORK_ERROR']:return _0x462583['t']('mcpConfig.connectionError.networkError');case _univerjs_pro_mcp[_0x321d49(0x139)]['MAX_RETRIES_EXCEEDED']:return _0x462583['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x2d50ed=(0x0,react['useCallback'])(()=>{const _0x50562e=_0x145b98;_0x3a75b0({..._0x528fd2,'apiKey':_0x417b8b[_0x50562e(0x18f)](),'enableAuth':_0x37dc29});},[_0x528fd2,_0x417b8b,_0x37dc29,_0x3a75b0]),_0xf780f2=_0x417b8b[_0x145b98(0x18f)]()['length']>0x0;return(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x1aa),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x1a7),'children':(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'className':_0x145b98(0x1c3),'children':'⚙'})}),(0x0,react_jsx_runtime['jsx'])('div',{'children':(0x0,react_jsx_runtime['jsx'])('p',{'className':_0x145b98(0x14e),'children':_0x462583['t'](_0x145b98(0x1a9))})})]})}),(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':_0x145b98(0x1f5),'children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':(0x0,_univerjs_design[_0x145b98(0x1e3)])(_0x145b98(0x178),_0x2a154e(_0x538cc6,_0x55053e)),'children':(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x236),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('div',{'className':(0x0,_univerjs_design[_0x145b98(0x1e3)])(_0x145b98(0x171),_0x50033c(_0x538cc6,_0x55053e))}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'className':_0x145b98(0x17d),'children':_0x1a9bb9(_0x538cc6)})]})}),_0x55053e!==_univerjs_pro_mcp[_0x145b98(0x139)]['NONE']&&(_0x538cc6===_univerjs_pro_mcp[_0x145b98(0x180)]['FAILED']||_0x55053e===_univerjs_pro_mcp[_0x145b98(0x139)]['UNAUTHORIZED'])&&(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x1a4),'children':(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':_0x145b98(0x149),'children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x176),{'className':_0x145b98(0x1a2),'children':'⚠️'}),(0x0,react_jsx_runtime[_0x145b98(0x100)])('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0xf374eb(_0x55053e)})]})})]}),(0x0,react_jsx_runtime[_0x145b98(0x100)])('div',{'className':_0x145b98(0x112),'children':(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x145),'children':[(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x245),'children':[(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x151),{'className':_0x145b98(0x20f),'children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x176),{'children':'🔑'}),'\x20',_0x462583['t'](_0x145b98(0x173)),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'className':_0x145b98(0x14c),'children':'*'}),_0x33b04a&&(0x0,react_jsx_runtime[_0x145b98(0x100)])('a',{'className':_0x145b98(0xf8),'title':_0x462583['t'](_0x145b98(0x13a)),'role':_0x145b98(0x1a1),'onClick':()=>_0x477a20(!![]),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_icons['HelpIcon'],{})})]}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_univerjs_design['Input'],{'type':'text','placeholder':_0x462583['t'](_0x145b98(0x1af)),'value':_0x417b8b,'disabled':loading,'autoComplete':_0x145b98(0x131),'onChange':_0x5e8ff7}),(0x0,react_jsx_runtime[_0x145b98(0x100)])('p',{'className':_0x145b98(0x225),'children':_0x462583['t'](_0x145b98(0x22d))})]}),_0x33b04a&&_0x18be27&&(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':_0x145b98(0x1d2),'children':[(0x0,react_jsx_runtime['jsx'])('a',{'className':_0x145b98(0x1a8),'role':_0x145b98(0x1a1),'onClick':()=>_0x477a20(![]),'children':(0x0,react_jsx_runtime[_0x145b98(0x100)])(_univerjs_icons[_0x145b98(0x20a)],{'className':_0x145b98(0x154)})}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x145b98(0x219),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x15c),'children':(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x176),{'className':'univer-text-blue-600','children':'🚀'})}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':'univer-flex-1','children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('h4',{'className':_0x145b98(0x1ea),'children':_0x462583['t'](_0x145b98(0x13a))}),(0x0,react_jsx_runtime[_0x145b98(0x100)])('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x462583['t'](_0x145b98(0x1f9))}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x1b2),'children':_0x27c954&&(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('a',{'className':_0x145b98(0x217),'href':_0x572676,'target':_0x145b98(0x118),'rel':_0x145b98(0x125),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'children':'🤖'}),_0x462583['t'](_0x145b98(0x160)),(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x145b98(0x12b),'children':'↗'})]})}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x462583['t'](_0x145b98(0xf6))]})]})]})]}),_0x430ae2[_0x145b98(0x1eb)]&&(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0xf4),'children':[(0x0,react_jsx_runtime['jsxs'])('h4',{'className':_0x145b98(0x240),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'children':'🔗'}),'\x20',_0x462583['t'](_0x145b98(0x1f1))]}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x1f6),'children':[(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x15f),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('p',{'className':_0x145b98(0x210),'children':_0x462583['t'](_0x145b98(0x16f))}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':_0x145b98(0x245),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x462583['t'](_0x145b98(0x205))}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x132),'children':[(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x236),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'className':_0x145b98(0x21b),'children':'1'}),_0x462583['t'](_0x145b98(0x204))]}),(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('span',{'className':_0x145b98(0x21b),'children':'2'}),_0x462583['t'](_0x145b98(0x1fb))]}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':_0x145b98(0x236),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x462583['t'](_0x145b98(0x164))]})]})]})]}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':'univer-space-y-2','children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x145b98(0x117)}),(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':_0x145b98(0x12d),'children':(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x1cf),{'className':_0x145b98(0x198),'children':JSON[_0x145b98(0x22f)]({'mcpServers':{'univer':{'url':_0x145b98(0x1b0)+(_0x4f0735||_0x145b98(0x12f)),'type':_0x145b98(0x227),'headers':{'Authorization':'Bearer\x20'+(_0x417b8b||_0x145b98(0x109))}}}},null,0x2)})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':_0x145b98(0x15f),'children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':_0x145b98(0x15a),'children':_0x462583['t'](_0x145b98(0x1f8))}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x245),'children':[(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':_0x145b98(0x206),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x1ec)}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('div',{'className':_0x145b98(0x238),'children':_0x145b98(0x13d)}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x225),'children':_0x462583['t'](_0x145b98(0x21d))})]})]}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x238),'children':_0x145b98(0x14f)}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x225),'children':_0x462583['t'](_0x145b98(0x213))})]})]})]})]})]})]}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_univerjs_design['Button'],{'onClick':_0x2d50ed,'disabled':!_0xf780f2||loading,'className':_0x145b98(0x16a),'children':loading?(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('span',{'className':_0x145b98(0x236),'children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x176),{'children':'⟲'}),_0x462583['t']('mcpConfig.saving')]}):(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x176),{'className':_0x145b98(0x236),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x145b98(0x18d)],{}),_0x462583['t'](_0x145b98(0x1bf))]})}),(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':'univer-flex\x20univer-gap-3','children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x176),{'className':_0x145b98(0x1f0),'children':'💡'}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':_0x145b98(0x248),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('div',{'className':_0x145b98(0x168),'children':_0x145b98(0x16c)}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'children':['•',_0x462583['t'](_0x145b98(0x20c))]}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'children':['•',_0x462583['t'](_0x145b98(0x104))]})]})]})})]})})]});}const MCP_UI_PLUGIN_CONFIG_KEY='mcp-ui.config',configSymbol=Symbol(MCP_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={'showDeveloperTools':![],'showStatus':!![]};function _typeof(_0x4367a9){'@babel/helpers - typeof';const _0x117c2c=_0xa52f92;return _typeof=_0x117c2c(0x11d)==typeof Symbol&&'symbol'==typeof Symbol[_0x117c2c(0x161)]?function(_0x1deee6){return typeof _0x1deee6;}:function(_0x2d9619){const _0x391f68=_0x117c2c;return _0x2d9619&&_0x391f68(0x11d)==typeof Symbol&&_0x2d9619[_0x391f68(0x174)]===Symbol&&_0x2d9619!==Symbol[_0x391f68(0x239)]?_0x391f68(0x157):typeof _0x2d9619;},_typeof(_0x4367a9);}function toPrimitive(_0x4491ce,_0x30ba4e){const _0xaa7ffd=_0xa52f92;if(_0xaa7ffd(0x23c)!=_typeof(_0x4491ce)||!_0x4491ce)return _0x4491ce;var _0x5abe88=_0x4491ce[Symbol[_0xaa7ffd(0x20e)]];if(void 0x0!==_0x5abe88){var _0x34d980=_0x5abe88['call'](_0x4491ce,_0x30ba4e||_0xaa7ffd(0x218));if(_0xaa7ffd(0x23c)!=_typeof(_0x34d980))return _0x34d980;throw new TypeError(_0xaa7ffd(0x185));}return(_0xaa7ffd(0x1d9)===_0x30ba4e?String:Number)(_0x4491ce);}function toPropertyKey(_0xd89510){const _0x566a08=_0xa52f92;var _0x1307e5=toPrimitive(_0xd89510,_0x566a08(0x1d9));return _0x566a08(0x157)==_typeof(_0x1307e5)?_0x1307e5:_0x1307e5+'';}function _defineProperty(_0x12dad6,_0x5bd2d9,_0x20e8f6){return(_0x5bd2d9=toPropertyKey(_0x5bd2d9))in _0x12dad6?Object['defineProperty'](_0x12dad6,_0x5bd2d9,{'value':_0x20e8f6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12dad6[_0x5bd2d9]=_0x20e8f6,_0x12dad6;}function __decorateParam(_0x11e639,_0x79879f){return function(_0x4215dd,_0x5d8b1e){_0x79879f(_0x4215dd,_0x5d8b1e,_0x11e639);};}function __decorate(_0x4c00e3,_0x2169bd,_0x502f0c,_0x268051){const _0xc2015d=_0xa52f92;var _0x2546d0=arguments[_0xc2015d(0x1d3)],_0xb54c64=_0x2546d0<0x3?_0x2169bd:_0x268051===null?_0x268051=Object[_0xc2015d(0x14b)](_0x2169bd,_0x502f0c):_0x268051,_0x3ae5ff;if(typeof Reflect===_0xc2015d(0x23c)&&typeof Reflect['decorate']===_0xc2015d(0x11d))_0xb54c64=Reflect[_0xc2015d(0x13e)](_0x4c00e3,_0x2169bd,_0x502f0c,_0x268051);else{for(var _0x2725a6=_0x4c00e3[_0xc2015d(0x1d3)]-0x1;_0x2725a6>=0x0;_0x2725a6--)if(_0x3ae5ff=_0x4c00e3[_0x2725a6])_0xb54c64=(_0x2546d0<0x3?_0x3ae5ff(_0xb54c64):_0x2546d0>0x3?_0x3ae5ff(_0x2169bd,_0x502f0c,_0xb54c64):_0x3ae5ff(_0x2169bd,_0x502f0c))||_0xb54c64;}return _0x2546d0>0x3&&_0xb54c64&&Object[_0xc2015d(0x1d7)](_0x2169bd,_0x502f0c,_0xb54c64),_0xb54c64;}const MCP_API_KEY_STORAGE_KEY=_0xa52f92(0x1ae),MCP_CONFIG_DIALOG_ID='mcp-config-dialog';let MCPConfigUIController=class MCPConfigUIController extends _univerjs_core['Disposable']{constructor(_0x41450c,_0x557790,_0x2e811c,_0x291b69,_0x4062fc,_0x253517,_0x4b1c65,_0x36e01f,_0x5e32c9,_0x16f859){const _0x939fe8=_0xa52f92;super(),this[_0x939fe8(0x111)]=_0x41450c,this[_0x939fe8(0x123)]=_0x557790,this['_configService']=_0x2e811c,this[_0x939fe8(0x1ab)]=_0x291b69,this[_0x939fe8(0x105)]=_0x4062fc,this[_0x939fe8(0x195)]=_0x253517,this[_0x939fe8(0x113)]=_0x4b1c65,this['_localeService']=_0x36e01f,this[_0x939fe8(0x202)]=_0x5e32c9,this[_0x939fe8(0x158)]=_0x16f859,_defineProperty(this,'_loading$',new rxjs[(_0x939fe8(0x119))](![])),_defineProperty(this,_0x939fe8(0x1d1),new rxjs[(_0x939fe8(0x119))]({})),_defineProperty(this,_0x939fe8(0x18c),new rxjs[(_0x939fe8(0x119))]({})),_defineProperty(this,_0x939fe8(0x17c),new rxjs[(_0x939fe8(0x119))]('')),_defineProperty(this,_0x939fe8(0x106),async _0x51064=>{const _0x44bba2=_0x939fe8;this[_0x44bba2(0x1ca)][_0x44bba2(0x1dc)](!![]);try{var _0x5f144e,_0x5eb4cb;const _0x49b87e=await this[_0x44bba2(0x1e9)](_0x51064);if(!_0x49b87e[_0x44bba2(0x230)]){this['_messageService'][_0x44bba2(0x221)]({'type':_univerjs_design['MessageType'][_0x44bba2(0x129)],'content':_0x49b87e['errorMessage']||this[_0x44bba2(0x22c)]['t']('mcpConfig.validation.invalidConfig')});return;}if(_0x51064[_0x44bba2(0x170)])await this[_0x44bba2(0x1ab)][_0x44bba2(0x163)](MCP_API_KEY_STORAGE_KEY,_0x51064[_0x44bba2(0x170)][_0x44bba2(0x18f)]());else await this[_0x44bba2(0x1ab)][_0x44bba2(0x234)](MCP_API_KEY_STORAGE_KEY);this[_0x44bba2(0x17c)]['next'](((_0x5f144e=_0x51064[_0x44bba2(0x170)])===null||_0x5f144e===void 0x0?void 0x0:_0x5f144e[_0x44bba2(0x18f)]())||''),this[_0x44bba2(0x158)][_0x44bba2(0x14a)]({'Authorization':_0x44bba2(0x1ce)+((_0x5eb4cb=_0x51064[_0x44bba2(0x170)])===null||_0x5eb4cb===void 0x0?void 0x0:_0x5eb4cb['trim']())}),this[_0x44bba2(0x195)][_0x44bba2(0x221)]({'type':_univerjs_design['MessageType'][_0x44bba2(0x188)],'content':this[_0x44bba2(0x22c)]['t'](_0x44bba2(0x142))}),setTimeout(()=>{const _0x1bdd93=_0x44bba2;this[_0x1bdd93(0x105)][_0x1bdd93(0x15d)](MCP_CONFIG_DIALOG_ID);},0x320);}catch(_0x4249c4){this[_0x44bba2(0x202)][_0x44bba2(0x228)](_0x44bba2(0x246),_0x4249c4),this['_messageService'][_0x44bba2(0x221)]({'type':_univerjs_design[_0x44bba2(0x103)][_0x44bba2(0x129)],'content':this[_0x44bba2(0x22c)]['t'](_0x44bba2(0x138))});}finally{this[_0x44bba2(0x1ca)]['next'](![]);}}),this['_initConfigSync'](),this[_0x939fe8(0x1a6)](),this[_0x939fe8(0x184)]();}[_0xa52f92(0x16e)](){const _0x29be11=_0xa52f92,_0x5373e7=this[_0x29be11(0x10e)][_0x29be11(0x229)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x5373e7===null||_0x5373e7===void 0x0?void 0x0:_0x5373e7[_0x29be11(0x1eb)])this[_0x29be11(0x105)][_0x29be11(0x220)]({'id':MCP_CONFIG_DIALOG_ID,'title':{'title':this[_0x29be11(0x22c)]['t'](_0x29be11(0x222))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!![],'destroyOnClose':!![],'onClose':()=>{const _0x396702=_0x29be11;this[_0x396702(0x105)]['close'](MCP_CONFIG_DIALOG_ID);}});}[_0xa52f92(0x22e)](){const _0x3a7bad=_0xa52f92;return this[_0x3a7bad(0x1d1)][_0x3a7bad(0x11f)];}[_0xa52f92(0x184)](){const _0x303a16=_0xa52f92;this[_0x303a16(0x190)](this[_0x303a16(0x113)][_0x303a16(0x126)](_0x303a16(0x194),this[_0x303a16(0x212)]()));}[_0xa52f92(0x212)](){return(0x0,_univerjs_ui['connectInjector'])(()=>{const _0x5d134d=_0x20c4;var _0x5b97cd,_0x26ce39,_0x125a78;return(0x0,react_jsx_runtime['jsx'])(MCPConfigPanel,{'config':this['_config$'][_0x5d134d(0x11f)],'mcpCoreConfig':this[_0x5d134d(0x1d1)]['value'],'currentApiKey$':this[_0x5d134d(0x17c)],'onSave':this[_0x5d134d(0x106)],'loading':this['_loading$'][_0x5d134d(0x11f)],'connectionStatus$':(_0x5b97cd=this[_0x5d134d(0x158)])===null||_0x5b97cd===void 0x0?void 0x0:_0x5b97cd['connectionStatus$'],'connectionError$':(_0x26ce39=this[_0x5d134d(0x158)])===null||_0x26ce39===void 0x0?void 0x0:_0x26ce39[_0x5d134d(0x12c)],'currentSessionId$':(_0x125a78=this[_0x5d134d(0x158)])===null||_0x125a78===void 0x0?void 0x0:_0x125a78[_0x5d134d(0x1bc)]});},this['_injector']);}[_0xa52f92(0xfb)](){const _0x15e829=_0xa52f92;this[_0x15e829(0x190)](this[_0x15e829(0x10e)][_0x15e829(0x147)](_univerjs_pro_mcp[_0x15e829(0x146)])['subscribe'](_0x1af17b=>{this['_mcpCoreConfig$']['next'](_0x1af17b||{});}));const _0x2d5dc8=this[_0x15e829(0x10e)][_0x15e829(0x229)](_univerjs_pro_mcp[_0x15e829(0x146)]);this['_mcpCoreConfig$']['next'](_0x2d5dc8||{}),this[_0x15e829(0x190)](this[_0x15e829(0x10e)][_0x15e829(0x147)](MCP_UI_PLUGIN_CONFIG_KEY)[_0x15e829(0x150)](_0x3bda78=>{const _0xecb17f=_0x15e829;this[_0xecb17f(0x18c)][_0xecb17f(0x1dc)](_0x3bda78||{});}));const _0x352cc6=this[_0x15e829(0x10e)][_0x15e829(0x229)](MCP_UI_PLUGIN_CONFIG_KEY);this[_0x15e829(0x18c)][_0x15e829(0x1dc)](_0x352cc6||{});}async['_loadStoredApiKey'](){const _0xec0bdf=_0xa52f92,_0x49ad5c=this['_configService'][_0xec0bdf(0x229)](MCP_UI_PLUGIN_CONFIG_KEY);if(!(_0x49ad5c===null||_0x49ad5c===void 0x0?void 0x0:_0x49ad5c[_0xec0bdf(0x1eb)]))return;const _0x264aee=await this['_localStorageService']['getItem'](MCP_API_KEY_STORAGE_KEY);_0x264aee&&(this[_0xec0bdf(0x158)][_0xec0bdf(0x14a)]({'Authorization':_0xec0bdf(0x1ce)+_0x264aee}),this['_apiKey$'][_0xec0bdf(0x1dc)](_0x264aee));}async[_0xa52f92(0x1e9)](_0x2be4bf){const _0x5979d0=_0xa52f92;if(!_0x2be4bf[_0x5979d0(0x170)]||_0x2be4bf['apiKey']['trim']()[_0x5979d0(0x1d3)]===0x0)return{'isValid':![],'errorMessage':this[_0x5979d0(0x22c)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x2be4bf[_0x5979d0(0x170)][_0x5979d0(0x18f)]()[_0x5979d0(0x1d3)]<0xa)return{'isValid':![],'errorMessage':this[_0x5979d0(0x22c)]['t'](_0x5979d0(0x110))};try{const _0x3a21b7=await this[_0x5979d0(0x111)][_0x5979d0(0x1ff)](_univerjs_pro_mcp[_0x5979d0(0x134)])['validateApiKey'](_0x2be4bf['apiKey'][_0x5979d0(0x18f)]());if(!_0x3a21b7[_0x5979d0(0x230)])return{'isValid':![],'errorMessage':_0x3a21b7[_0x5979d0(0x228)]||this[_0x5979d0(0x22c)]['t'](_0x5979d0(0x165))};return{'isValid':!![]};}catch(_0x168402){return console[_0x5979d0(0x18b)](_0x5979d0(0x196),_0x168402),{'isValid':!![]};}}};MCPConfigUIController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0xa52f92(0x1c6)])),__decorateParam(0x1,_univerjs_ui['IUIPartsService']),__decorateParam(0x2,_univerjs_core[_0xa52f92(0x124)]),__decorateParam(0x3,_univerjs_core['ILocalStorageService']),__decorateParam(0x4,_univerjs_ui['IDialogService']),__decorateParam(0x5,_univerjs_ui[_0xa52f92(0x1ad)]),__decorateParam(0x6,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_ui[_0xa52f92(0x1d4)])),__decorateParam(0x7,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_core[_0xa52f92(0x189)])),__decorateParam(0x8,_univerjs_core[_0xa52f92(0x143)]),__decorateParam(0x9,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_pro_mcp[_0xa52f92(0x134)]))],MCPConfigUIController);const OpenMCPConfigPanelCommand={'id':_0xa52f92(0x1db),'type':_univerjs_core[_0xa52f92(0x115)][_0xa52f92(0x10a)],'handler':async(_0x3b23ab,_0x4eea57)=>{const _0x2ba677=_0xa52f92;return _0x3b23ab[_0x2ba677(0x1ff)](MCPConfigUIController)[_0x2ba677(0x16e)](),!![];}};function mapStatusToI18NKey(_0x2bbad5,_0x343457){const _0x229db4=_0xa52f92;switch(_0x2bbad5){case _univerjs_pro_mcp[_0x229db4(0x180)][_0x229db4(0x235)]:return _0x229db4(0x14d);case _univerjs_pro_mcp['MCPConnectionStatus'][_0x229db4(0xf2)]:return _0x229db4(0x177);case _univerjs_pro_mcp['MCPConnectionStatus'][_0x229db4(0x156)]:return _0x229db4(0x191);case _univerjs_pro_mcp[_0x229db4(0x180)]['FAILED']:switch(_0x343457){case _univerjs_pro_mcp['MCPConnectionError'][_0x229db4(0x1f2)]:return _0x229db4(0x1ef);case _univerjs_pro_mcp[_0x229db4(0x139)][_0x229db4(0x121)]:return _0x229db4(0x148);case _univerjs_pro_mcp[_0x229db4(0x139)]['NETWORK_ERROR']:return _0x229db4(0x155);case _univerjs_pro_mcp[_0x229db4(0x139)][_0x229db4(0xfe)]:return _0x229db4(0x102);default:return'mcpStatus.failed';}case _univerjs_pro_mcp[_0x229db4(0x180)][_0x229db4(0x10b)]:return _0x229db4(0x1b8);default:return'mcpStatus.unknown';}}function getTooltipText(_0x1aca41,_0x52698a,_0x4b02d8,_0x3469a9=!![]){const _0x2b486d=_0xa52f92,_0x45e4d0=mapStatusToI18NKey(_0x1aca41,_0x52698a),_0xc94abc=_0x4b02d8['t'](_0x45e4d0);if(!_0x3469a9)return _0xc94abc;if(_0x1aca41===_univerjs_pro_mcp['MCPConnectionStatus']['DISCONNECTED']&&_0x52698a===_univerjs_pro_mcp['MCPConnectionError'][_0x2b486d(0x1f2)])return _0xc94abc+_0x2b486d(0x107)+_0x4b02d8['t'](_0x2b486d(0x153));else{if(_0x1aca41===_univerjs_pro_mcp[_0x2b486d(0x180)][_0x2b486d(0x156)])return''+_0xc94abc;else{if(_0x1aca41===_univerjs_pro_mcp[_0x2b486d(0x180)][_0x2b486d(0x235)]||_0x1aca41===_univerjs_pro_mcp[_0x2b486d(0x180)][_0x2b486d(0x20d)])return _0xc94abc+_0x2b486d(0x107)+_0x4b02d8['t'](_0x2b486d(0x1b7));}}return _0xc94abc;}function getStatusColor(_0x27a292){const _0x454d7f=_0xa52f92;switch(_0x27a292){case _univerjs_pro_mcp[_0x454d7f(0x180)]['CONNECTED']:return _0x454d7f(0x1da);case _univerjs_pro_mcp['MCPConnectionStatus'][_0x454d7f(0xf2)]:case _univerjs_pro_mcp[_0x454d7f(0x180)][_0x454d7f(0x10b)]:return'univer-text-yellow-500';case _univerjs_pro_mcp['MCPConnectionStatus'][_0x454d7f(0x20d)]:case _univerjs_pro_mcp[_0x454d7f(0x180)]['DISCONNECTED']:return _0x454d7f(0x14c);default:return _0x454d7f(0x114);}}function MCPStatusDisplay(_0x1e6e2b){const _0x4b8118=_0xa52f92,{status$:_0x2275d0,error$:_0x23b66,onConfigure:_0x3832ce,showClickable:showClickable=!![]}=_0x1e6e2b,_0x29b9e2=(0x0,_univerjs_ui['useObservable'])(_0x2275d0,_univerjs_pro_mcp[_0x4b8118(0x180)][_0x4b8118(0x235)]),_0x35c6aa=(0x0,_univerjs_ui[_0x4b8118(0x17f)])(_0x23b66,_univerjs_pro_mcp[_0x4b8118(0x139)][_0x4b8118(0x1dd)]),_0xa2912c=(0x0,_univerjs_ui[_0x4b8118(0x21a)])(_univerjs_core[_0x4b8118(0x189)]),_0x4bc5d2=_0x29b9e2===_univerjs_pro_mcp[_0x4b8118(0x180)]['CONNECTED'];_0x29b9e2===_univerjs_pro_mcp[_0x4b8118(0x180)][_0x4b8118(0xf2)]||_univerjs_pro_mcp['MCPConnectionStatus'][_0x4b8118(0x10b)];const _0x338423=_0xa2912c['t'](mapStatusToI18NKey(_0x29b9e2,_0x35c6aa)),_0x4b4723=getTooltipText(_0x29b9e2,_0x35c6aa,_0xa2912c,showClickable),_0xe176a9=getStatusColor(_0x29b9e2),_0x1dbcaa=_0x4bc5d2?(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x4b8118(0x1e0)],{}):(0x0,react_jsx_runtime[_0x4b8118(0x100)])(_univerjs_icons[_0x4b8118(0x187)],{}),_0x3a6cdf=(0x0,react[_0x4b8118(0x193)])(()=>{if(showClickable&&_0x3832ce)_0x3832ce();},[showClickable,_0x3832ce]);function _0x2ccc76(){const _0x3b7c68=_0x4b8118;return(0x0,react_jsx_runtime[_0x3b7c68(0x1cb)])(_0x3b7c68(0x233),{'className':(0x0,_univerjs_design[_0x3b7c68(0x1e3)])(_0x3b7c68(0x1b1),showClickable&&_0x3832ce&&_0x3b7c68(0x1e2)),'role':_0x3b7c68(0x1a1),'onClick':showClickable&&_0x3832ce?_0x3a6cdf:void 0x0,'children':[(0x0,react_jsx_runtime[_0x3b7c68(0x100)])(_0x3b7c68(0x233),{'className':(0x0,_univerjs_design[_0x3b7c68(0x1e3)])('univer-mr-2\x20univer-flex\x20univer-text-xl',_0xe176a9),'children':_0x1dbcaa}),(0x0,react_jsx_runtime[_0x3b7c68(0x100)])('div',{'className':_0x3b7c68(0x1e1),'children':_0x338423})]});}return(0x0,react_jsx_runtime[_0x4b8118(0x100)])(_univerjs_design[_0x4b8118(0x127)],{'title':_0x4b4723,'placement':_0x4b8118(0x21c),'children':_0x2ccc76()});}function _0x2260(){const _0x660881=['mcpStatus.clickToConfigure','univer-size-4','mcpStatus.networkError','CONNECTED','symbol','_mcpConnectionController','Disconnected','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','MCP:\x20Max\x20Retries\x20Exceeded','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','close','Click\x20to\x20configure\x20MCP','univer-space-y-3','mcpConfig.apiApplyInfo.univerAiLabel','iterator','includes','setItem','mcpConfig.configStep3','mcpConfig.validation.invalidApiKey','enableAutoConnect','DependentOn','univer-font-medium','Plugin','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','权限验证失败,请检查您的\x20API\x20密钥','Configuration\x20Notes:','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','showConfigPanel','mcpConfig.configInstructions','apiKey','univer-size-2\x20univer-rounded-full','enUS','mcpConfig.apiKey','constructor','配置步骤:','span','mcpStatus.connecting','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','MCP\x20已断开','setConfig','将以下配置添加到您的\x20MCP\x20客户端设置中:','_apiKey$','univer-text-sm\x20univer-font-medium','MCP\x20Unknown\x20Status','useObservable','MCPConnectionStatus','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','packageName','MCP\x20Client\x20Configuration','_registerComponent','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','What\x20is\x20API\x20Key?','OffLineIcon','Success','LocaleService','univer.plus','warn','_config$','CheckMarkIcon','MCP\x20配置','trim','disposeWithMe','mcpStatus.connected','MCP\x20客户端配置','useCallback','MCPConfigPanel','_messageService','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_config','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-bg-red-500','mcpConfig.connectionError.sessionOccupied','Inject','2mTPKEk','Max\x20Retries','Get\x20your\x20API\x20key\x20in\x20seconds','_menuManagerService','MCP:\x20超出最大重试次数','button','univer-shrink-0\x20univer-text-red-500','什么是\x20API\x20密钥?','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','pluginName','_loadStoredApiKey','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','mcpConfig.description','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_localStorageService','Saving...','IMessageService','mcp.apiKey','mcpConfig.apiKeyPlaceholder','https://mcp.univer.ai/mcp/?univer_session_id=','univer-flex\x20univer-items-center','univer-flex\x20univer-flex-wrap\x20univer-gap-2','5130YzqtCU','mcpServerUrl','0.22.0','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpStatus.clickToConnect','mcpStatus.retrying','网络连接错误,请检查您的网络连接','API\x20Key','1539zQMKoK','sessionId$','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.connectionError.unauthorized','mcpConfig.save','Invalid\x20configuration','univer-bg-green-500','MCPStatusDisplay','univer-text-white','MCP\x20Connected','配置保存失败','Injector','Enable\x20Authentication','MCP\x20连接中...','univer.ai','_loading$','jsxs','超出最大重试次数,请稍后再试','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Bearer\x20','pre','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_mcpCoreConfig$','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','length','ComponentManager','IUIPartsService','useState','defineProperty','Configuration\x20Parameters:','string','univer-text-green-500','mcp-ui.command.openConfigPanel','next','NONE','重启您的\x20MCP\x20客户端以使配置生效','带有\x20Bearer\x20前缀的\x20API\x20密钥。','OnLineIcon','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','\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','clsx','MCP:\x20Unauthorized','MCPConfigUIController','将配置添加到您的\x20MCP\x20客户端设置文件中','会话ID','Univer\x20AI\x20Console','_validateConfig','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','showDeveloperTools','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','130796epkBIm','_handleConfigure','mcpStatus.unauthorized','univer-shrink-0\x20univer-text-blue-500','mcpConfig.connectionInfo','UNAUTHORIZED','ICommandService','toStringTag','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-space-y-4','3805MzubWR','mcpConfig.configParameters','mcpConfig.apiApplyInfo.description','最大重试次数','mcpConfig.configStep2','MCP:\x20会话\x20ID\x20已被占用','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','8002310EcMMMH','get','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','19933680PbVVHH','_logService','Connected','mcpConfig.configStep1','mcpConfig.configStepTitle','univer-flex\x20univer-items-start\x20univer-gap-3','配置更改将立即生效','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20未授权','CloseIcon','MCP_UI_PLUGIN','mcpConfig.note1','FAILED','toPrimitive','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-text-xs\x20univer-text-gray-600','Copy\x20the\x20JSON\x20configuration\x20below','_createConfigPanelComponent','mcpConfig.authorizationDescription','Failed\x20to\x20save\x20configuration','417311KQwfUO','Save\x20Configuration','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','default','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','useDependency','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','bottom','mcpConfig.sessionIdDescription','点击配置\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','open','show','mcpConfig.title','57jgpLSM','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-text-xs\x20univer-text-gray-500','connectInjector','http','error','getConfig','_commandService','几秒钟内获取您的\x20API\x20密钥','_localeService','mcpConfig.apiKeyHint','getCurrentConfig','stringify','isValid','_initializeCommands','mergeMenu','div','removeItem','DISCONNECTED','univer-flex\x20univer-items-center\x20univer-gap-2','registerCommand','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','prototype','_connectionController','Enter\x20your\x20API\x20key','object','HEADER_MENU','univer-bg-gray-500','merge','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','重连中...','mcpConfig.connectionStatus.connected','mcpConfig.connectionStatus.failed','has','univer-space-y-2','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_initializeMenus','ISocketService','CONNECTING','会话\x20ID\x20已被占用,请稍后再试','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MCP\x20Retrying...','mcpConfig.apiApplyInfo.getStarted','connectionStatus$','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','RibbonStartGroup','MCP\x20连接失败','_initConfigSync','API\x20密钥','OpenMCPConfigPanelCommand','MAX_RETRIES_EXCEEDED','5622519DCBczR','jsx','MCP\x20已连接','mcpStatus.maxRetriesExceeded','MessageType','mcpConfig.note2','_dialogService','_handleConfigSave','\x20-\x20','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','<API_KEY>','COMMAND','RETRYING','API\x20key\x20with\x20Bearer\x20prefix.','_initAutoConnect','_configService','11oGYpJA','mcpConfig.validation.apiKeyTooShort','_injector','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','_componentManager','univer-text-gray-500','CommandType','请输入您的\x20API\x20密钥','MCP\x20Configuration','_blank','BehaviorSubject','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','add','未连接','function','连接中...','value','BUTTON','SESSION_ID_OCCUPIED','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_uiPartsService','IConfigService','noopener\x20noreferrer','register','Tooltip','连接失败','Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-text-gray-400','connectionError$','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','API\x20密钥不能为空','<SESSION_ID>','API\x20密钥长度至少需要\x2010\x20位','off','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','复制以下\x20JSON\x20配置','MCPConnectionController','Click\x20to\x20connect\x20MCP','OTHERS','Connecting...','mcpConfig.configError','MCPConnectionError','mcpConfig.apiApplyInfo.title','启用身份验证以获得安全连接','MCP\x20Connection\x20Failed','univer_session_id:','decorate','WebSocketService','BuiltInUIPart','MCP:\x20网络错误','mcpConfig.configSaved','ILogService','2512tvCfWq','univer-space-y-5','MCP_PLUGIN_CONFIG_KEY','subscribeConfigValue$','mcpStatus.sessionOccupied','univer-flex\x20univer-items-start\x20univer-gap-2','__setCustomHeaders','getOwnPropertyDescriptor','univer-text-red-500','mcpStatus.disconnected','univer-text-sm\x20univer-text-gray-500','Authorization:','subscribe','label','registerComponent'];_0x2260=function(){return _0x660881;};return _0x2260();}let MCPConnectionUIController=class MCPConnectionUIController extends _univerjs_core['Disposable']{constructor(_0x270cc4,_0x2a943b,_0x15025f,_0x2b8474){const _0x1e8891=_0xa52f92;super(),this[_0x1e8891(0x111)]=_0x270cc4,this[_0x1e8891(0x23a)]=_0x2a943b,this[_0x1e8891(0x123)]=_0x15025f,this[_0x1e8891(0x10e)]=_0x2b8474,this[_0x1e8891(0x10d)](),this['_initStatusComponent']();}['_initAutoConnect'](){const _0x1b84c6=_0xa52f92,_0x5984f6=this[_0x1b84c6(0x10e)][_0x1b84c6(0x229)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x5984f6===null||_0x5984f6===void 0x0?void 0x0:_0x5984f6[_0x1b84c6(0x1eb)])this['_connectionController'][_0x1b84c6(0x166)]=![];}['_initStatusComponent'](){const _0x48e830=_0xa52f92,_0x307760=this[_0x48e830(0x10e)][_0x48e830(0x229)](MCP_UI_PLUGIN_CONFIG_KEY);if((_0x307760===null||_0x307760===void 0x0?void 0x0:_0x307760['showStatus'])!==![])this[_0x48e830(0x190)](this['_uiPartsService'][_0x48e830(0x152)](_univerjs_ui[_0x48e830(0x140)][_0x48e830(0x23d)],()=>{const _0x168cdd=_0x48e830;var _0x5529b8;return(0x0,_univerjs_ui[_0x168cdd(0x226)])(passProps({'status$':this[_0x168cdd(0x23a)][_0x168cdd(0xf7)],'error$':this[_0x168cdd(0x23a)][_0x168cdd(0x12c)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x5529b8=_0x307760===null||_0x307760===void 0x0?void 0x0:_0x307760[_0x168cdd(0x1eb)])!==null&&_0x5529b8!==void 0x0?_0x5529b8:![]}),this['_injector']);}));}[_0xa52f92(0x1ee)](){const _0x3e1e42=_0xa52f92;this[_0x3e1e42(0x111)][_0x3e1e42(0x1ff)](MCPConfigUIController)[_0x3e1e42(0x16e)]();}};MCPConnectionUIController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0xa52f92(0x1c6)])),__decorateParam(0x1,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_pro_mcp['MCPConnectionController'])),__decorateParam(0x2,_univerjs_ui['IUIPartsService']),__decorateParam(0x3,_univerjs_core[_0xa52f92(0x124)])],MCPConnectionUIController);function passProps(_0x39e5ca){const {status$:_0x3f223f,error$:_0x1b747e,onConfigure:_0x59cb9c,showClickable:_0x295952}=_0x39e5ca;return function _0x506e22(){const _0x10a61c=_0x20c4;return(0x0,react_jsx_runtime[_0x10a61c(0x100)])(MCPStatusDisplay,{'status$':_0x3f223f,'error$':_0x1b747e,'onConfigure':_0x59cb9c,'showClickable':_0x295952});};}function MCPConfigMenuItemFactory(_0xbc56f){const _0x52f091=_0xa52f92;return{'id':OpenMCPConfigPanelCommand['id'],'type':_univerjs_ui['MenuItemType'][_0x52f091(0x120)],'icon':'MenuIcon','title':_0x52f091(0x222),'tooltip':_0x52f091(0x222)};}const menuSchema={[_univerjs_ui[_0xa52f92(0xf9)][_0xa52f92(0x136)]]:{[OpenMCPConfigPanelCommand['id']]:{'order':0xa,'menuItemFactory':MCPConfigMenuItemFactory}}};let MCPUIMenuController=class MCPUIMenuController extends _univerjs_core['Disposable']{constructor(_0x34f006,_0x1d56f1){const _0x474ac2=_0xa52f92;super(),this[_0x474ac2(0x22a)]=_0x34f006,this[_0x474ac2(0x19f)]=_0x1d56f1,this[_0x474ac2(0x231)](),this[_0x474ac2(0xf0)]();}['_initializeCommands'](){[OpenMCPConfigPanelCommand]['forEach'](_0x3290e5=>{const _0x52ddfd=_0x20c4;this[_0x52ddfd(0x190)](this[_0x52ddfd(0x22a)][_0x52ddfd(0x237)](_0x3290e5));});}[_0xa52f92(0xf0)](){const _0x5c2d94=_0xa52f92;this[_0x5c2d94(0x19f)][_0x5c2d94(0x232)](menuSchema);}};MCPUIMenuController=__decorate([__decorateParam(0x0,_univerjs_core[_0xa52f92(0x1f3)]),__decorateParam(0x1,_univerjs_ui['IMenuManagerService'])],MCPUIMenuController);const locale={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0xa52f92(0x1c4),'failed':_0xa52f92(0x13c),'retrying':_0xa52f92(0xf5),'unknown':_0xa52f92(0x17e),'unauthorized':_0xa52f92(0x1e4),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xa52f92(0x15b),'clickToConnect':_0xa52f92(0x135),'clickToConfigure':_0xa52f92(0x15e)},'mcpConfig':{'title':_0xa52f92(0x117),'description':_0xa52f92(0x21f),'apiKey':_0xa52f92(0x1ba),'apiKeyPlaceholder':_0xa52f92(0x23b),'apiKeyHint':_0xa52f92(0x224),'enableAuth':_0xa52f92(0x1c7),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xa52f92(0x183),'mcpClientConfig':_0xa52f92(0x183),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0xa52f92(0x211),'configStep2':_0xa52f92(0x11a),'configStep3':_0xa52f92(0x1fd),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0xa52f92(0x10c),'configParameters':_0xa52f92(0x1d8),'maxRetries':_0xa52f92(0x19d),'save':_0xa52f92(0x216),'saving':_0xa52f92(0x1ac),'note1':_0xa52f92(0x247),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0xa52f92(0x214),'apiApplyInfo':{'title':_0xa52f92(0x186),'description':_0xa52f92(0x181),'univerAiLabel':_0xa52f92(0x1e8),'getStarted':_0xa52f92(0x19e)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xa52f92(0x208),'invalidConfig':_0xa52f92(0x1c0),'invalidApiKey':_0xa52f92(0x1d0)},'connectionStatus':{'disconnected':_0xa52f92(0x159),'connecting':_0xa52f92(0x137),'connected':_0xa52f92(0x203),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0xa52f92(0x12a),'sessionOccupied':_0xa52f92(0x1b6),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xa52f92(0x108)}}},locale$1={'mcpStatus':{'disconnected':_0xa52f92(0x179),'connecting':_0xa52f92(0x1c8),'connected':_0xa52f92(0x101),'failed':_0xa52f92(0xfa),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0xa52f92(0x209),'sessionOccupied':_0xa52f92(0x1fc),'networkError':_0xa52f92(0x141),'maxRetriesExceeded':_0xa52f92(0x1a0),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0xa52f92(0x21e)},'mcpConfig':{'title':_0xa52f92(0x18e),'description':_0xa52f92(0x122),'apiKey':_0xa52f92(0xfc),'apiKeyPlaceholder':_0xa52f92(0x116),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':_0xa52f92(0x13b),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0xa52f92(0x192),'configInstructions':_0xa52f92(0x17b),'configStepTitle':_0xa52f92(0x175),'configStep1':_0xa52f92(0x133),'configStep2':_0xa52f92(0x1e6),'configStep3':_0xa52f92(0x1de),'sessionId':_0xa52f92(0x1e7),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0xa52f92(0x1df),'configParameters':'配置参数:','maxRetries':_0xa52f92(0x1fa),'save':'保存配置','saving':'保存中...','note1':_0xa52f92(0x207),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0xa52f92(0x1c5),'apiApplyInfo':{'title':_0xa52f92(0x1a3),'description':_0xa52f92(0x1bd),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0xa52f92(0x22b)},'validation':{'apiKeyRequired':_0xa52f92(0x12e),'apiKeyTooShort':_0xa52f92(0x130),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0xa52f92(0x11c),'connecting':_0xa52f92(0x11e),'connected':'已连接','failed':_0xa52f92(0x128),'retrying':_0xa52f92(0x241)},'connectionError':{'unauthorized':_0xa52f92(0x16b),'sessionOccupied':_0xa52f92(0xf3),'networkError':_0xa52f92(0x1b9),'maxRetriesExceeded':_0xa52f92(0x1cc)}}};function _0x20c4(_0x313461,_0x453c03){_0x313461=_0x313461-0xf0;const _0x226029=_0x2260();let _0x20c449=_0x226029[_0x313461];return _0x20c449;}var name='@univerjs-pro/mcp-ui',version=_0xa52f92(0x1b5);let UniverMCPUIPlugin=class UniverMCPUIPlugin extends _univerjs_core[_0xa52f92(0x169)]{constructor(_0x59fa88=defaultPluginConfig,_0x6daa76,_0x5359ff,_0x482003,_0x4863f6,_0x419aac){const _0x30c121=_0xa52f92;super(),this['_config']=_0x59fa88,this['_injector']=_0x6daa76,this[_0x30c121(0x10e)]=_0x5359ff,this['_uiPartsService']=_0x482003,this[_0x30c121(0x1ab)]=_0x4863f6,this['_localeService']=_0x419aac;const {..._0x5b5dc1}=(0x0,_univerjs_core[_0x30c121(0x23f)])({},defaultPluginConfig,this[_0x30c121(0x197)]);this[_0x30c121(0x10e)][_0x30c121(0x17a)](MCP_UI_PLUGIN_CONFIG_KEY,_0x5b5dc1);}async['onStarting'](){const _0x3222ee=_0xa52f92,_0x4a995b=[[MCPConnectionUIController],[MCPConfigUIController],[MCPUIMenuController]];if(!this['_injector'][_0x3222ee(0x244)](_univerjs_network[_0x3222ee(0xf1)]))_0x4a995b['push']([_univerjs_network[_0x3222ee(0xf1)],{'useClass':_univerjs_network[_0x3222ee(0x13f)]}]);_0x4a995b['forEach'](_0x2a6210=>this[_0x3222ee(0x111)][_0x3222ee(0x11b)](_0x2a6210)),this['_injector'][_0x3222ee(0x1ff)](MCPConnectionUIController),this[_0x3222ee(0x111)][_0x3222ee(0x1ff)](MCPConfigUIController),this[_0x3222ee(0x111)]['get'](MCPUIMenuController);}};_defineProperty(UniverMCPUIPlugin,_0xa52f92(0x1a5),_0xa52f92(0x20b)),_defineProperty(UniverMCPUIPlugin,_0xa52f92(0x182),name),_defineProperty(UniverMCPUIPlugin,'version',version),UniverMCPUIPlugin=__decorate([(0x0,_univerjs_core[_0xa52f92(0x167)])(_univerjs_pro_mcp['UniverMCPPlugin']),__decorateParam(0x1,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_core[_0xa52f92(0x1c6)])),__decorateParam(0x2,_univerjs_core['IConfigService']),__decorateParam(0x3,_univerjs_ui[_0xa52f92(0x1d5)]),__decorateParam(0x4,_univerjs_core['ILocalStorageService']),__decorateParam(0x5,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_core[_0xa52f92(0x189)]))],UniverMCPUIPlugin),exports['MCPConfigPanel']=MCPConfigPanel,Object[_0xa52f92(0x1d7)](exports,_0xa52f92(0x1e5),{'enumerable':!![],'get':function(){return MCPConfigUIController;}}),Object[_0xa52f92(0x1d7)](exports,'MCPConnectionUIController',{'enumerable':!![],'get':function(){return MCPConnectionUIController;}}),exports[_0xa52f92(0x1c2)]=MCPStatusDisplay,Object['defineProperty'](exports,'MCPUIMenuController',{'enumerable':!![],'get':function(){return MCPUIMenuController;}}),exports[_0xa52f92(0xfd)]=OpenMCPConfigPanelCommand,Object['defineProperty'](exports,'UniverMCPUIPlugin',{'enumerable':!![],'get':function(){return UniverMCPUIPlugin;}}),exports[_0xa52f92(0x172)]=locale,exports['zhCN']=locale$1;
@@ -1 +1 @@
1
- function _0x5eb6(_0x265be6,_0x1aee47){_0x265be6=_0x265be6-0x7f;const _0x3fad6a=_0x3fad();let _0x5eb629=_0x3fad6a[_0x265be6];return _0x5eb629;}const _0x270aa1=_0x5eb6;(function(_0x219b5c,_0x54c6ee){const _0x4c4dac=_0x5eb6,_0x513953=_0x219b5c();while(!![]){try{const _0x20e898=parseInt(_0x4c4dac(0x86))/0x1*(-parseInt(_0x4c4dac(0x9a))/0x2)+parseInt(_0x4c4dac(0x7f))/0x3*(-parseInt(_0x4c4dac(0xad))/0x4)+parseInt(_0x4c4dac(0xa3))/0x5*(parseInt(_0x4c4dac(0x96))/0x6)+-parseInt(_0x4c4dac(0xae))/0x7+-parseInt(_0x4c4dac(0x87))/0x8+parseInt(_0x4c4dac(0x8b))/0x9*(parseInt(_0x4c4dac(0xa6))/0xa)+parseInt(_0x4c4dac(0x83))/0xb;if(_0x20e898===_0x54c6ee)break;else _0x513953['push'](_0x513953['shift']());}catch(_0x465e81){_0x513953['push'](_0x513953['shift']());}}}(_0x3fad,0x83344));const locale$1={'mcpStatus':{'disconnected':_0x270aa1(0xa0),'connecting':_0x270aa1(0x93),'connected':'MCP\x20Connected','failed':_0x270aa1(0x90),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x270aa1(0xa8),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x270aa1(0x9f),'maxRetriesExceeded':_0x270aa1(0x85),'clickToConnect':_0x270aa1(0x84),'clickToConfigure':_0x270aa1(0x8d)},'mcpConfig':{'title':_0x270aa1(0xab),'description':_0x270aa1(0x91),'apiKey':_0x270aa1(0xa7),'apiKeyPlaceholder':_0x270aa1(0xac),'apiKeyHint':_0x270aa1(0x95),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x270aa1(0x89),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x270aa1(0xa2),'configStepTitle':_0x270aa1(0x8f),'configStep1':_0x270aa1(0xaa),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x270aa1(0x9e),'sessionIdDescription':_0x270aa1(0xb2),'authorizationDescription':_0x270aa1(0x94),'configParameters':_0x270aa1(0xa9),'maxRetries':_0x270aa1(0x88),'save':_0x270aa1(0x98),'saving':_0x270aa1(0x9b),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x270aa1(0xa1),'configSaved':_0x270aa1(0x8c),'configError':_0x270aa1(0xa5),'apiApplyInfo':{'title':_0x270aa1(0x8e),'description':_0x270aa1(0x92),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x270aa1(0x82)},'validation':{'apiKeyRequired':_0x270aa1(0x81),'apiKeyTooShort':_0x270aa1(0x8a),'invalidConfig':_0x270aa1(0x9c),'invalidApiKey':_0x270aa1(0x80)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x270aa1(0xb0),'connected':_0x270aa1(0x99),'failed':_0x270aa1(0xb1),'retrying':_0x270aa1(0xaf)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x270aa1(0x9d),'maxRetriesExceeded':_0x270aa1(0x97)}}},locale=locale$1;function _0x3fad(){const _0x2a98cf=['Get\x20your\x20API\x20key\x20in\x20seconds','6098070cVAJKI','Click\x20to\x20connect\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','1RKWRQA','964472afOslC','Max\x20Retries','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','45zHHATY','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','What\x20is\x20API\x20Key?','Configuration\x20Steps:','MCP\x20Connection\x20Failed','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','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\x20Connecting...','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','237684DbtYCQ','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Save\x20Configuration','Connected','1024294xBodRz','Saving...','Invalid\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session\x20ID','MCP:\x20Network\x20Error','MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','135SZfbCL','exports','Failed\x20to\x20save\x20configuration','217130dyWDCH','API\x20Key','MCP:\x20Unauthorized','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','Enter\x20your\x20API\x20key','8WcebIO','3920245wjujZj','Retrying...','Connecting...','Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','3540fLCanv','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20is\x20required'];_0x3fad=function(){return _0x2a98cf;};return _0x3fad();}module[_0x270aa1(0xa4)]=locale;
1
+ const _0xd9bbb=_0x5a2b;(function(_0x2e5de5,_0x5c5580){const _0x2a1d4f=_0x5a2b,_0x1a5bbe=_0x2e5de5();while(!![]){try{const _0x9abfb3=parseInt(_0x2a1d4f(0x151))/0x1*(-parseInt(_0x2a1d4f(0x138))/0x2)+-parseInt(_0x2a1d4f(0x12b))/0x3+-parseInt(_0x2a1d4f(0x149))/0x4*(parseInt(_0x2a1d4f(0x13b))/0x5)+parseInt(_0x2a1d4f(0x14a))/0x6*(-parseInt(_0x2a1d4f(0x133))/0x7)+parseInt(_0x2a1d4f(0x13c))/0x8*(-parseInt(_0x2a1d4f(0x146))/0x9)+-parseInt(_0x2a1d4f(0x14c))/0xa+parseInt(_0x2a1d4f(0x156))/0xb;if(_0x9abfb3===_0x5c5580)break;else _0x1a5bbe['push'](_0x1a5bbe['shift']());}catch(_0x45024f){_0x1a5bbe['push'](_0x1a5bbe['shift']());}}}(_0x112e,0x6acaa));const locale$1={'mcpStatus':{'disconnected':_0xd9bbb(0x152),'connecting':_0xd9bbb(0x136),'connected':'MCP\x20Connected','failed':_0xd9bbb(0x12c),'retrying':_0xd9bbb(0x157),'unknown':_0xd9bbb(0x158),'unauthorized':_0xd9bbb(0x13a),'sessionOccupied':_0xd9bbb(0x13d),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xd9bbb(0x12f),'clickToConnect':_0xd9bbb(0x143),'clickToConfigure':_0xd9bbb(0x12e)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0xd9bbb(0x131),'apiKey':'API\x20Key','apiKeyPlaceholder':_0xd9bbb(0x14b),'apiKeyHint':_0xd9bbb(0x132),'enableAuth':_0xd9bbb(0x140),'enableAuthHint':_0xd9bbb(0x14f),'connectionInfo':_0xd9bbb(0x12d),'mcpClientConfig':_0xd9bbb(0x12d),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xd9bbb(0x155),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0xd9bbb(0x135),'authorizationDescription':_0xd9bbb(0x150),'configParameters':_0xd9bbb(0x130),'maxRetries':_0xd9bbb(0x154),'save':_0xd9bbb(0x134),'saving':'Saving...','note1':_0xd9bbb(0x13f),'note2':_0xd9bbb(0x145),'configSaved':'Configuration\x20saved\x20successfully','configError':_0xd9bbb(0x141),'apiApplyInfo':{'title':_0xd9bbb(0x14e),'description':_0xd9bbb(0x153),'univerAiLabel':_0xd9bbb(0x137),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xd9bbb(0x14d),'invalidConfig':_0xd9bbb(0x148),'invalidApiKey':_0xd9bbb(0x139)},'connectionStatus':{'disconnected':_0xd9bbb(0x142),'connecting':'Connecting...','connected':_0xd9bbb(0x144),'failed':'Connection\x20Failed','retrying':_0xd9bbb(0x12a)},'connectionError':{'unauthorized':_0xd9bbb(0x13e),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xd9bbb(0x129),'maxRetriesExceeded':_0xd9bbb(0x147)}}},locale=locale$1;function _0x112e(){const _0x3a439c=['Configuration\x20Parameters:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','39669TYcBkD','Save\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connecting...','Univer\x20AI\x20Console','2oJjkJI','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Unauthorized','293050wSnRWR','8RuvyGw','MCP:\x20Session\x20ID\x20Occupied','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20Authentication','Failed\x20to\x20save\x20configuration','Disconnected','Click\x20to\x20connect\x20MCP','Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','7753959uBBngH','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20configuration','28kelTJk','582QiYwEn','Enter\x20your\x20API\x20key','100830gxJHuJ','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','What\x20is\x20API\x20Key?','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20with\x20Bearer\x20prefix.','678367TQpGyS','MCP\x20Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Max\x20Retries','Configuration\x20Steps:','38042246EKJLiE','MCP\x20Retrying...','MCP\x20Unknown\x20Status','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Retrying...','1532994oFIxSl','MCP\x20Connection\x20Failed','MCP\x20Client\x20Configuration','Click\x20to\x20configure\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded'];_0x112e=function(){return _0x3a439c;};return _0x112e();}function _0x5a2b(_0x3b1193,_0xc708c5){_0x3b1193=_0x3b1193-0x129;const _0x112e30=_0x112e();let _0x5a2b91=_0x112e30[_0x3b1193];return _0x5a2b91;}module['exports']=locale;
@@ -1 +1 @@
1
- const _0x230de0=_0x3cf3;function _0x2768(){const _0x1bcb04=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','44637GODdno','exports','Disconnected','212oAzuwZ','Click\x20to\x20configure\x20MCP','Save\x20Configuration','541224KOoUKN','1479410HOvKmQ','Enable\x20Authentication','API\x20key\x20is\x20required','Enter\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key','8988588ycPjMQ','What\x20is\x20API\x20Key?','12910324KQNCTl','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Network\x20Error','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connecting...','MCP\x20Disconnected','MCP:\x20Unauthorized','Univer\x20AI\x20Console','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Max\x20Retries\x20Exceeded','6162715FImCLG','27ftycRz','2761128eYxzLM','Failed\x20to\x20save\x20configuration','Saving...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Max\x20Retries','MCP\x20Retrying...','Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Unknown\x20Status','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connection\x20Failed','Session\x20ID'];_0x2768=function(){return _0x1bcb04;};return _0x2768();}(function(_0x46a174,_0xf4e4f9){const _0x2c5de1=_0x3cf3,_0x28abbc=_0x46a174();while(!![]){try{const _0x4c7262=parseInt(_0x2c5de1(0xca))/0x1+-parseInt(_0x2c5de1(0xcb))/0x2+-parseInt(_0x2c5de1(0xc4))/0x3*(parseInt(_0x2c5de1(0xc7))/0x4)+parseInt(_0x2c5de1(0xe3))/0x5+parseInt(_0x2c5de1(0xd1))/0x6+-parseInt(_0x2c5de1(0xd3))/0x7+-parseInt(_0x2c5de1(0xb4))/0x8*(-parseInt(_0x2c5de1(0xe4))/0x9);if(_0x4c7262===_0xf4e4f9)break;else _0x28abbc['push'](_0x28abbc['shift']());}catch(_0x436e50){_0x28abbc['push'](_0x28abbc['shift']());}}}(_0x2768,0xe4308));function _0x3cf3(_0x2c98e8,_0x45450e){_0x2c98e8=_0x2c98e8-0xb4;const _0x27689e=_0x2768();let _0x3cf380=_0x27689e[_0x2c98e8];return _0x3cf380;}const locale={'mcpStatus':{'disconnected':_0x230de0(0xde),'connecting':_0x230de0(0xdd),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x230de0(0xb9),'unknown':_0x230de0(0xbf),'unauthorized':_0x230de0(0xdf),'sessionOccupied':_0x230de0(0xd7),'networkError':_0x230de0(0xd8),'maxRetriesExceeded':_0x230de0(0xe2),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x230de0(0xc8)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x230de0(0xbb),'apiKey':_0x230de0(0xd0),'apiKeyPlaceholder':_0x230de0(0xce),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x230de0(0xcc),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x230de0(0xd5),'mcpClientConfig':_0x230de0(0xd5),'configInstructions':_0x230de0(0xda),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x230de0(0xbe),'configStep2':_0x230de0(0xc3),'configStep3':_0x230de0(0xc0),'sessionId':_0x230de0(0xc2),'sessionIdDescription':_0x230de0(0xd6),'authorizationDescription':_0x230de0(0xcf),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x230de0(0xb8),'save':_0x230de0(0xc9),'saving':_0x230de0(0xb6),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x230de0(0xd4),'configError':_0x230de0(0xb5),'apiApplyInfo':{'title':_0x230de0(0xd2),'description':_0x230de0(0xe1),'univerAiLabel':_0x230de0(0xe0),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x230de0(0xcd),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x230de0(0xbd),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x230de0(0xc6),'connecting':_0x230de0(0xba),'connected':_0x230de0(0xdb),'failed':_0x230de0(0xc1),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x230de0(0xdc),'sessionOccupied':_0x230de0(0xb7),'networkError':_0x230de0(0xbc),'maxRetriesExceeded':_0x230de0(0xd9)}}};module[_0x230de0(0xc5)]=locale;
1
+ const _0x232450=_0x5af7;(function(_0x3d2429,_0x453373){const _0xd30941=_0x5af7,_0x43d7bc=_0x3d2429();while(!![]){try{const _0x548718=parseInt(_0xd30941(0x11b))/0x1+parseInt(_0xd30941(0x137))/0x2+parseInt(_0xd30941(0x11c))/0x3*(-parseInt(_0xd30941(0x123))/0x4)+parseInt(_0xd30941(0x130))/0x5+parseInt(_0xd30941(0x148))/0x6*(parseInt(_0xd30941(0x126))/0x7)+-parseInt(_0xd30941(0x144))/0x8+-parseInt(_0xd30941(0x13f))/0x9*(-parseInt(_0xd30941(0x138))/0xa);if(_0x548718===_0x453373)break;else _0x43d7bc['push'](_0x43d7bc['shift']());}catch(_0x2167af){_0x43d7bc['push'](_0x43d7bc['shift']());}}}(_0x19cf,0x6eff5));function _0x19cf(){const _0x3d4348=['4379215qVhCUS','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.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Network\x20Error','What\x20is\x20API\x20Key?','Enable\x20Authentication','621136lexavj','3816350ETURct','API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key','Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20connect\x20MCP','MCP\x20Configuration','9sBxMzE','MCP\x20Client\x20Configuration','Configuration\x20Steps:','Session\x20ID','Configuration\x20saved\x20successfully','6978216HpyJuV','MCP\x20Unknown\x20Status','Get\x20your\x20API\x20key\x20in\x20seconds','Enter\x20your\x20API\x20key','240qULKfi','API\x20key\x20is\x20required','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections','Connected','85670lWoaoP','1632822JxllLi','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','Save\x20Configuration','Univer\x20AI\x20Console','MCP\x20Connected','Max\x20Retries','4qgEEmP','MCP\x20Retrying...','Invalid\x20configuration','38059evIrwQ','MCP:\x20Unauthorized','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Retrying...','MCP\x20Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connection\x20Failed','Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage'];_0x19cf=function(){return _0x3d4348;};return _0x19cf();}function _0x5af7(_0x16ddd9,_0x19bb41){_0x16ddd9=_0x16ddd9-0x11a;const _0x19cf6e=_0x19cf();let _0x5af747=_0x19cf6e[_0x16ddd9];return _0x5af747;}const locale={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x232450(0x12b),'connected':_0x232450(0x121),'failed':_0x232450(0x12d),'retrying':_0x232450(0x124),'unknown':_0x232450(0x145),'unauthorized':_0x232450(0x127),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x232450(0x134),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x232450(0x13d),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x232450(0x13e),'description':_0x232450(0x12c),'apiKey':_0x232450(0x13a),'apiKeyPlaceholder':_0x232450(0x147),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x232450(0x136),'enableAuthHint':_0x232450(0x14b),'connectionInfo':_0x232450(0x140),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x232450(0x14a),'configStepTitle':_0x232450(0x141),'configStep1':_0x232450(0x131),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x232450(0x11d),'sessionId':_0x232450(0x142),'sessionIdDescription':_0x232450(0x132),'authorizationDescription':_0x232450(0x139),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x232450(0x122),'save':_0x232450(0x11f),'saving':_0x232450(0x11e),'note1':_0x232450(0x133),'note2':_0x232450(0x12f),'configSaved':_0x232450(0x143),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x232450(0x135),'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':_0x232450(0x120),'getStarted':_0x232450(0x146)},'validation':{'apiKeyRequired':_0x232450(0x149),'apiKeyTooShort':_0x232450(0x13c),'invalidConfig':_0x232450(0x125),'invalidApiKey':_0x232450(0x129)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x232450(0x12e),'connected':_0x232450(0x11a),'failed':_0x232450(0x13b),'retrying':_0x232450(0x12a)},'connectionError':{'unauthorized':_0x232450(0x128),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module['exports']=locale;
@@ -1 +1 @@
1
- const _0x17761d=_0x5f22;(function(_0x291a7a,_0x574c48){const _0xf8861b=_0x5f22,_0x4f4bf1=_0x291a7a();while(!![]){try{const _0x3ec8f8=-parseInt(_0xf8861b(0x17b))/0x1*(parseInt(_0xf8861b(0x18a))/0x2)+parseInt(_0xf8861b(0x194))/0x3*(parseInt(_0xf8861b(0x181))/0x4)+-parseInt(_0xf8861b(0x1b1))/0x5+parseInt(_0xf8861b(0x179))/0x6*(parseInt(_0xf8861b(0x19a))/0x7)+parseInt(_0xf8861b(0x1ae))/0x8+parseInt(_0xf8861b(0x1a3))/0x9*(parseInt(_0xf8861b(0x1ad))/0xa)+-parseInt(_0xf8861b(0x17c))/0xb;if(_0x3ec8f8===_0x574c48)break;else _0x4f4bf1['push'](_0x4f4bf1['shift']());}catch(_0x3272a6){_0x4f4bf1['push'](_0x4f4bf1['shift']());}}}(_0x4a01,0x5cb02));const locale$1={'mcpStatus':{'disconnected':_0x17761d(0x17f),'connecting':_0x17761d(0x182),'connected':_0x17761d(0x189),'failed':_0x17761d(0x1a7),'retrying':_0x17761d(0x185),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x17761d(0x196),'sessionOccupied':_0x17761d(0x187),'networkError':_0x17761d(0x178),'maxRetriesExceeded':_0x17761d(0x195),'clickToConnect':_0x17761d(0x19f),'clickToConfigure':_0x17761d(0x191)},'mcpConfig':{'title':_0x17761d(0x184),'description':_0x17761d(0x1a0),'apiKey':_0x17761d(0x1ab),'apiKeyPlaceholder':_0x17761d(0x19d),'apiKeyHint':_0x17761d(0x1b0),'enableAuth':_0x17761d(0x19c),'enableAuthHint':_0x17761d(0x1a9),'connectionInfo':_0x17761d(0x17d),'mcpClientConfig':_0x17761d(0x17d),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x17761d(0x17a),'configStep1':_0x17761d(0x1a8),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x17761d(0x1a6),'sessionIdDescription':_0x17761d(0x1a2),'authorizationDescription':_0x17761d(0x17e),'configParameters':_0x17761d(0x1af),'maxRetries':_0x17761d(0x192),'save':_0x17761d(0x18c),'saving':_0x17761d(0x197),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x17761d(0x18d),'configSaved':_0x17761d(0x183),'configError':_0x17761d(0x18e),'apiApplyInfo':{'title':_0x17761d(0x188),'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':_0x17761d(0x186),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x17761d(0x199),'apiKeyTooShort':_0x17761d(0x1a5),'invalidConfig':_0x17761d(0x18b),'invalidApiKey':_0x17761d(0x190)},'connectionStatus':{'disconnected':_0x17761d(0x18f),'connecting':_0x17761d(0x198),'connected':_0x17761d(0x19b),'failed':_0x17761d(0x1a1),'retrying':_0x17761d(0x19e)},'connectionError':{'unauthorized':_0x17761d(0x1ac),'sessionOccupied':_0x17761d(0x193),'networkError':_0x17761d(0x1a4),'maxRetriesExceeded':_0x17761d(0x180)}}},locale=locale$1;module[_0x17761d(0x1aa)]=locale;function _0x5f22(_0x35a307,_0x2c1a0a){_0x35a307=_0x35a307-0x178;const _0x4a015f=_0x4a01();let _0x5f22bd=_0x4a015f[_0x35a307];return _0x5f22bd;}function _0x4a01(){const _0x2db590=['Univer\x20AI\x20Console','MCP:\x20Session\x20ID\x20Occupied','What\x20is\x20API\x20Key?','MCP\x20Connected','82552MwFdWA','Invalid\x20configuration','Save\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Failed\x20to\x20save\x20configuration','Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20configure\x20MCP','Max\x20Retries','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','49359cJFhLj','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Unauthorized','Saving...','Connecting...','API\x20key\x20is\x20required','27895NrsOHQ','Connected','Enable\x20Authentication','Enter\x20your\x20API\x20key','Retrying...','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','4085604QbKzdd','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session\x20ID','MCP\x20Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20authentication\x20for\x20secure\x20connections','exports','API\x20Key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','10mOSgph','770816fsZVLg','Configuration\x20Parameters:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','304880sMmZQO','MCP:\x20Network\x20Error','1110cizfhZ','Configuration\x20Steps:','1grFxRb','15558312qLVAoM','MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','148MERtaW','MCP\x20Connecting...','Configuration\x20saved\x20successfully','MCP\x20Configuration','MCP\x20Retrying...'];_0x4a01=function(){return _0x2db590;};return _0x4a01();}
1
+ const _0x2c4af0=_0x20c4;(function(_0x43efbb,_0x248723){const _0x3629da=_0x20c4,_0x4d54d8=_0x43efbb();while(!![]){try{const _0x15448a=-parseInt(_0x3629da(0x108))/0x1+parseInt(_0x3629da(0x109))/0x2+-parseInt(_0x3629da(0xe5))/0x3*(-parseInt(_0x3629da(0xf6))/0x4)+-parseInt(_0x3629da(0xd8))/0x5*(parseInt(_0x3629da(0xe1))/0x6)+-parseInt(_0x3629da(0xdd))/0x7+-parseInt(_0x3629da(0xef))/0x8+-parseInt(_0x3629da(0xf3))/0x9*(-parseInt(_0x3629da(0xd9))/0xa);if(_0x15448a===_0x248723)break;else _0x4d54d8['push'](_0x4d54d8['shift']());}catch(_0x24b12f){_0x4d54d8['push'](_0x4d54d8['shift']());}}}(_0x3822,0xa5195));const locale$1={'mcpStatus':{'disconnected':_0x2c4af0(0xfa),'connecting':_0x2c4af0(0xec),'connected':_0x2c4af0(0xfe),'failed':_0x2c4af0(0x10a),'retrying':_0x2c4af0(0xe3),'unknown':_0x2c4af0(0xeb),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x2c4af0(0x101),'networkError':_0x2c4af0(0xe6),'maxRetriesExceeded':_0x2c4af0(0xdc),'clickToConnect':_0x2c4af0(0xfb),'clickToConfigure':_0x2c4af0(0xdf)},'mcpConfig':{'title':_0x2c4af0(0xf7),'description':_0x2c4af0(0x10e),'apiKey':_0x2c4af0(0x104),'apiKeyPlaceholder':_0x2c4af0(0x102),'apiKeyHint':_0x2c4af0(0xde),'enableAuth':_0x2c4af0(0xf9),'enableAuthHint':_0x2c4af0(0xdb),'connectionInfo':_0x2c4af0(0xe4),'mcpClientConfig':_0x2c4af0(0xe4),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2c4af0(0x10b),'sessionId':_0x2c4af0(0xea),'sessionIdDescription':_0x2c4af0(0xf8),'authorizationDescription':_0x2c4af0(0xff),'configParameters':_0x2c4af0(0xf1),'maxRetries':_0x2c4af0(0x105),'save':_0x2c4af0(0x106),'saving':_0x2c4af0(0xee),'note1':_0x2c4af0(0xe8),'note2':_0x2c4af0(0x107),'configSaved':_0x2c4af0(0xf2),'configError':_0x2c4af0(0x10c),'apiApplyInfo':{'title':_0x2c4af0(0x103),'description':_0x2c4af0(0xe9),'univerAiLabel':_0x2c4af0(0xd7),'getStarted':_0x2c4af0(0xfc)},'validation':{'apiKeyRequired':_0x2c4af0(0xda),'apiKeyTooShort':_0x2c4af0(0x100),'invalidConfig':_0x2c4af0(0xf4),'invalidApiKey':_0x2c4af0(0xed)},'connectionStatus':{'disconnected':_0x2c4af0(0xf5),'connecting':_0x2c4af0(0xfd),'connected':_0x2c4af0(0x10d),'failed':'Connection\x20Failed','retrying':_0x2c4af0(0xf0)},'connectionError':{'unauthorized':_0x2c4af0(0xe7),'sessionOccupied':_0x2c4af0(0xe2),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},locale=locale$1;function _0x3822(){const _0x20a9c7=['Retrying...','Configuration\x20Parameters:','Configuration\x20saved\x20successfully','877356lyCUeN','Invalid\x20configuration','Disconnected','4cGfKTI','MCP\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20Authentication','MCP\x20Disconnected','Click\x20to\x20connect\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Connecting...','MCP\x20Connected','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Session\x20ID\x20Occupied','Enter\x20your\x20API\x20key','What\x20is\x20API\x20Key?','API\x20Key','Max\x20Retries','Save\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','630026jxLJwH','1100512BlLqhE','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Failed\x20to\x20save\x20configuration','Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Univer\x20AI\x20Console','5ybuQcE','20OxCkWu','API\x20key\x20is\x20required','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Max\x20Retries\x20Exceeded','1807729GfLHxp','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','exports','1066542CVGHHR','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Retrying...','MCP\x20Client\x20Configuration','3497421vjtIKl','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session\x20ID','MCP\x20Unknown\x20Status','MCP\x20Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Saving...','1350048zPWhon'];_0x3822=function(){return _0x20a9c7;};return _0x3822();}function _0x20c4(_0x17c3ff,_0x28ae6d){_0x17c3ff=_0x17c3ff-0xd7;const _0x38226b=_0x3822();let _0x20c4a1=_0x38226b[_0x17c3ff];return _0x20c4a1;}module[_0x2c4af0(0xe0)]=locale;
@@ -1 +1 @@
1
- function _0x3da8(){const _0x328a1a=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','What\x20is\x20API\x20Key?','Max\x20Retries','807493oZhxaA','API\x20key\x20is\x20required','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Disconnected','Save\x20Configuration','413XiaTIc','API\x20key\x20with\x20Bearer\x20prefix.','Connected','MCP\x20Connection\x20Failed','Session\x20ID','13730BObaKi','API\x20Key','139002eHzmmo','247053MVjRIF','MCP:\x20Max\x20Retries\x20Exceeded','225326hUuxhQ','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Saving...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','4LqKLri','MCP:\x20Session\x20ID\x20Occupied','Failed\x20to\x20save\x20configuration','MCP:\x20Network\x20Error','Configuration\x20Parameters:','Configuration\x20Steps:','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Unknown\x20Status','MCP\x20Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Get\x20your\x20API\x20key\x20in\x20seconds','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Retrying...','MCP\x20Configuration','Invalid\x20configuration','MCP\x20Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Retrying...','4873090CaRSHt','14778jqcbqf','11860224jbZlGO','Click\x20to\x20connect\x20MCP'];_0x3da8=function(){return _0x328a1a;};return _0x3da8();}const _0x50402e=_0x3419;(function(_0x230406,_0x39a08b){const _0x3189d7=_0x3419,_0x1fb3b5=_0x230406();while(!![]){try{const _0x5dc8f2=-parseInt(_0x3189d7(0x1c0))/0x1+parseInt(_0x3189d7(0x1d1))/0x2+-parseInt(_0x3189d7(0x1cf))/0x3*(-parseInt(_0x3189d7(0x1d6))/0x4)+-parseInt(_0x3189d7(0x1b8))/0x5+-parseInt(_0x3189d7(0x1ce))/0x6*(parseInt(_0x3189d7(0x1c7))/0x7)+parseInt(_0x3189d7(0x1ba))/0x8+-parseInt(_0x3189d7(0x1b9))/0x9*(-parseInt(_0x3189d7(0x1cc))/0xa);if(_0x5dc8f2===_0x39a08b)break;else _0x1fb3b5['push'](_0x1fb3b5['shift']());}catch(_0xbd9399){_0x1fb3b5['push'](_0x1fb3b5['shift']());}}}(_0x3da8,0xbf2c4));const locale$1={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x50402e(0x1df),'connected':_0x50402e(0x1b5),'failed':_0x50402e(0x1ca),'retrying':_0x50402e(0x1e8),'unknown':_0x50402e(0x1de),'unauthorized':_0x50402e(0x1bd),'sessionOccupied':_0x50402e(0x1d7),'networkError':_0x50402e(0x1d9),'maxRetriesExceeded':_0x50402e(0x1d0),'clickToConnect':_0x50402e(0x1bb),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x50402e(0x1b3),'description':_0x50402e(0x1e0),'apiKey':_0x50402e(0x1cd),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x50402e(0x1e5),'enableAuthHint':_0x50402e(0x1dd),'connectionInfo':_0x50402e(0x1e3),'mcpClientConfig':_0x50402e(0x1e3),'configInstructions':_0x50402e(0x1d2),'configStepTitle':_0x50402e(0x1db),'configStep1':_0x50402e(0x1e2),'configStep2':_0x50402e(0x1d5),'configStep3':_0x50402e(0x1e4),'sessionId':_0x50402e(0x1cb),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x50402e(0x1c8),'configParameters':_0x50402e(0x1da),'maxRetries':_0x50402e(0x1bf),'save':_0x50402e(0x1c6),'saving':_0x50402e(0x1d4),'note1':_0x50402e(0x1e6),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x50402e(0x1d8),'apiApplyInfo':{'title':_0x50402e(0x1be),'description':_0x50402e(0x1e7),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x50402e(0x1e1)},'validation':{'apiKeyRequired':_0x50402e(0x1c1),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x50402e(0x1b4),'invalidApiKey':_0x50402e(0x1b6)},'connectionStatus':{'disconnected':_0x50402e(0x1c5),'connecting':_0x50402e(0x1c3),'connected':_0x50402e(0x1c9),'failed':_0x50402e(0x1dc),'retrying':_0x50402e(0x1b7)},'connectionError':{'unauthorized':_0x50402e(0x1bc),'sessionOccupied':_0x50402e(0x1c2),'networkError':_0x50402e(0x1d3),'maxRetriesExceeded':_0x50402e(0x1c4)}}},locale=locale$1;function _0x3419(_0x2fec8d,_0x1187fe){_0x2fec8d=_0x2fec8d-0x1b3;const _0x3da89e=_0x3da8();let _0x341904=_0x3da89e[_0x2fec8d];return _0x341904;}module['exports']=locale;
1
+ function _0x2afa(_0x2a6e3,_0x17e733){_0x2a6e3=_0x2a6e3-0x182;const _0x30bde1=_0x30bd();let _0x2afa88=_0x30bde1[_0x2a6e3];return _0x2afa88;}const _0x20d243=_0x2afa;(function(_0x591972,_0x496485){const _0x4c8a3e=_0x2afa,_0x27bc6d=_0x591972();while(!![]){try{const _0x351a6c=-parseInt(_0x4c8a3e(0x1a3))/0x1+-parseInt(_0x4c8a3e(0x19b))/0x2+-parseInt(_0x4c8a3e(0x1a8))/0x3+-parseInt(_0x4c8a3e(0x1ab))/0x4+parseInt(_0x4c8a3e(0x191))/0x5*(parseInt(_0x4c8a3e(0x1a0))/0x6)+parseInt(_0x4c8a3e(0x185))/0x7*(parseInt(_0x4c8a3e(0x188))/0x8)+parseInt(_0x4c8a3e(0x1ac))/0x9;if(_0x351a6c===_0x496485)break;else _0x27bc6d['push'](_0x27bc6d['shift']());}catch(_0xed5a2f){_0x27bc6d['push'](_0x27bc6d['shift']());}}}(_0x30bd,0x80ca6));const locale$1={'mcpStatus':{'disconnected':_0x20d243(0x197),'connecting':'MCP\x20Connecting...','connected':_0x20d243(0x1ae),'failed':'MCP\x20Connection\x20Failed','retrying':_0x20d243(0x1b3),'unknown':_0x20d243(0x1a4),'unauthorized':_0x20d243(0x192),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x20d243(0x182),'maxRetriesExceeded':_0x20d243(0x198),'clickToConnect':_0x20d243(0x1a9),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x20d243(0x196),'description':_0x20d243(0x1b1),'apiKey':_0x20d243(0x186),'apiKeyPlaceholder':_0x20d243(0x19e),'apiKeyHint':_0x20d243(0x194),'enableAuth':_0x20d243(0x18f),'enableAuthHint':_0x20d243(0x19a),'connectionInfo':_0x20d243(0x1b0),'mcpClientConfig':_0x20d243(0x1b0),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x20d243(0x1af),'configStep2':_0x20d243(0x1aa),'configStep3':_0x20d243(0x183),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x20d243(0x195),'configParameters':_0x20d243(0x18c),'maxRetries':_0x20d243(0x189),'save':_0x20d243(0x1a2),'saving':'Saving...','note1':_0x20d243(0x18b),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x20d243(0x184),'configError':_0x20d243(0x1a5),'apiApplyInfo':{'title':_0x20d243(0x18a),'description':_0x20d243(0x1b2),'univerAiLabel':_0x20d243(0x193),'getStarted':_0x20d243(0x1a7)},'validation':{'apiKeyRequired':_0x20d243(0x19d),'apiKeyTooShort':_0x20d243(0x1a1),'invalidConfig':_0x20d243(0x190),'invalidApiKey':_0x20d243(0x18d)},'connectionStatus':{'disconnected':_0x20d243(0x18e),'connecting':'Connecting...','connected':_0x20d243(0x199),'failed':_0x20d243(0x187),'retrying':_0x20d243(0x19c)},'connectionError':{'unauthorized':_0x20d243(0x1ad),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x20d243(0x19f),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},locale=locale$1;module[_0x20d243(0x1a6)]=locale;function _0x30bd(){const _0x1966c7=['API\x20Key','Connection\x20Failed','72SdZABy','Max\x20Retries','What\x20is\x20API\x20Key?','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20Parameters:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Disconnected','Enable\x20Authentication','Invalid\x20configuration','37945gFtYiZ','MCP:\x20Unauthorized','Univer\x20AI\x20Console','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Configuration','MCP\x20Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','Connected','Enable\x20authentication\x20for\x20secure\x20connections','251172hKDzCR','Retrying...','API\x20key\x20is\x20required','Enter\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','804WrOZYB','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Save\x20Configuration','7387QgQUOX','MCP\x20Unknown\x20Status','Failed\x20to\x20save\x20configuration','exports','Get\x20your\x20API\x20key\x20in\x20seconds','2322096MGUzcU','Click\x20to\x20connect\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','576412jIXDlN','163458hSacms','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','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\x20Retrying...','MCP:\x20Network\x20Error','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20saved\x20successfully','422758puKWHQ'];_0x30bd=function(){return _0x1966c7;};return _0x30bd();}
@@ -1 +1 @@
1
- function _0x390d(_0x33ed0d,_0x438c9d){_0x33ed0d=_0x33ed0d-0x187;const _0x41ba57=_0x41ba();let _0x390d85=_0x41ba57[_0x33ed0d];return _0x390d85;}function _0x41ba(){const _0x4be5c6=['MCP\x20Connecting...','Connection\x20Failed','22604tETfaq','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session\x20ID','MCP\x20Connected','Enable\x20Authentication','4741RbgrAL','MCP:\x20Unauthorized','API\x20key\x20with\x20Bearer\x20prefix.','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','exports','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Max\x20Retries\x20Exceeded','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Steps:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connection\x20Failed','17768bzygCa','Saving...','845TUUitf','3006200wFUcyN','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','9YiOTOY','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connected','Click\x20to\x20configure\x20MCP','1543710FFjjMQ','Failed\x20to\x20save\x20configuration','MCP\x20Configuration','Retrying...','Save\x20Configuration','MCP\x20Unknown\x20Status','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Client\x20Configuration','Connecting...','7tHIXui','208069lrTdzZ','Click\x20to\x20connect\x20MCP','Univer\x20AI\x20Console','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','23376UetGuB','MCP:\x20Network\x20Error','Max\x20Retries','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','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','Get\x20your\x20API\x20key\x20in\x20seconds','6831730KURynI','Configuration\x20Parameters:','321UklMQY','MCP\x20Disconnected'];_0x41ba=function(){return _0x4be5c6;};return _0x41ba();}const _0x59eeb0=_0x390d;(function(_0x2806c8,_0x2be32b){const _0x330112=_0x390d,_0x37ef52=_0x2806c8();while(!![]){try{const _0x4ac519=-parseInt(_0x330112(0x1b6))/0x1+parseInt(_0x330112(0x1a0))/0x2*(parseInt(_0x330112(0x189))/0x3)+parseInt(_0x330112(0x18d))/0x4*(-parseInt(_0x330112(0x1a2))/0x5)+-parseInt(_0x330112(0x1ac))/0x6*(-parseInt(_0x330112(0x1b5))/0x7)+parseInt(_0x330112(0x1a3))/0x8+-parseInt(_0x330112(0x1a6))/0x9*(parseInt(_0x330112(0x187))/0xa)+parseInt(_0x330112(0x192))/0xb*(parseInt(_0x330112(0x1ba))/0xc);if(_0x4ac519===_0x2be32b)break;else _0x37ef52['push'](_0x37ef52['shift']());}catch(_0x45f782){_0x37ef52['push'](_0x37ef52['shift']());}}}(_0x41ba,0x8cdcf));const locale$1={'mcpStatus':{'disconnected':_0x59eeb0(0x18a),'connecting':_0x59eeb0(0x18b),'connected':_0x59eeb0(0x190),'failed':_0x59eeb0(0x19f),'retrying':'MCP\x20Retrying...','unknown':_0x59eeb0(0x1b1),'unauthorized':_0x59eeb0(0x193),'sessionOccupied':_0x59eeb0(0x198),'networkError':_0x59eeb0(0x1bb),'maxRetriesExceeded':_0x59eeb0(0x19b),'clickToConnect':_0x59eeb0(0x1b7),'clickToConfigure':_0x59eeb0(0x1ab)},'mcpConfig':{'title':_0x59eeb0(0x1ae),'description':_0x59eeb0(0x1b9),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x59eeb0(0x196),'enableAuth':_0x59eeb0(0x191),'enableAuthHint':_0x59eeb0(0x1a8),'connectionInfo':_0x59eeb0(0x1b3),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x59eeb0(0x19a),'configStepTitle':_0x59eeb0(0x19d),'configStep1':_0x59eeb0(0x1a5),'configStep2':_0x59eeb0(0x1a9),'configStep3':_0x59eeb0(0x1a4),'sessionId':_0x59eeb0(0x18f),'sessionIdDescription':_0x59eeb0(0x1bd),'authorizationDescription':_0x59eeb0(0x194),'configParameters':_0x59eeb0(0x188),'maxRetries':_0x59eeb0(0x1bc),'save':_0x59eeb0(0x1b0),'saving':_0x59eeb0(0x1a1),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x59eeb0(0x1bf),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x59eeb0(0x1ad),'apiApplyInfo':{'title':_0x59eeb0(0x195),'description':_0x59eeb0(0x1be),'univerAiLabel':_0x59eeb0(0x1b8),'getStarted':_0x59eeb0(0x1c0)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x59eeb0(0x199),'invalidApiKey':_0x59eeb0(0x18e)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x59eeb0(0x1b4),'connected':_0x59eeb0(0x1aa),'failed':_0x59eeb0(0x18c),'retrying':_0x59eeb0(0x1af)},'connectionError':{'unauthorized':_0x59eeb0(0x19e),'sessionOccupied':_0x59eeb0(0x1a7),'networkError':_0x59eeb0(0x1b2),'maxRetriesExceeded':_0x59eeb0(0x19c)}}},locale=locale$1;module[_0x59eeb0(0x197)]=locale;
1
+ function _0x1510(_0x2268ae,_0x5c3a0f){_0x2268ae=_0x2268ae-0xbf;const _0x10c97f=_0x10c9();let _0x15100f=_0x10c97f[_0x2268ae];return _0x15100f;}const _0x599fcb=_0x1510;(function(_0x215562,_0x445771){const _0x367eb2=_0x1510,_0xc5bbb9=_0x215562();while(!![]){try{const _0x12a6a9=parseInt(_0x367eb2(0xd4))/0x1*(-parseInt(_0x367eb2(0xe1))/0x2)+parseInt(_0x367eb2(0xda))/0x3+parseInt(_0x367eb2(0xd8))/0x4*(-parseInt(_0x367eb2(0xdf))/0x5)+-parseInt(_0x367eb2(0xd0))/0x6+parseInt(_0x367eb2(0xc8))/0x7+parseInt(_0x367eb2(0xdc))/0x8+-parseInt(_0x367eb2(0xd5))/0x9;if(_0x12a6a9===_0x445771)break;else _0xc5bbb9['push'](_0xc5bbb9['shift']());}catch(_0x1f1bb9){_0xc5bbb9['push'](_0xc5bbb9['shift']());}}}(_0x10c9,0x4df38));const locale$1={'mcpStatus':{'disconnected':_0x599fcb(0xcd),'connecting':_0x599fcb(0xe0),'connected':_0x599fcb(0xe2),'failed':'MCP\x20Connection\x20Failed','retrying':_0x599fcb(0xd7),'unknown':_0x599fcb(0xdb),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x599fcb(0xe3),'networkError':_0x599fcb(0xcb),'maxRetriesExceeded':_0x599fcb(0xdd),'clickToConnect':_0x599fcb(0xec),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x599fcb(0xc9),'apiKey':_0x599fcb(0xc7),'apiKeyPlaceholder':_0x599fcb(0xc4),'apiKeyHint':_0x599fcb(0xd3),'enableAuth':_0x599fcb(0xd1),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x599fcb(0xe5),'mcpClientConfig':_0x599fcb(0xe5),'configInstructions':_0x599fcb(0xcf),'configStepTitle':_0x599fcb(0xf3),'configStep1':_0x599fcb(0xeb),'configStep2':_0x599fcb(0xc3),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x599fcb(0xee),'authorizationDescription':_0x599fcb(0xf2),'configParameters':_0x599fcb(0xbf),'maxRetries':_0x599fcb(0xf4),'save':_0x599fcb(0xef),'saving':_0x599fcb(0xe4),'note1':_0x599fcb(0xd2),'note2':_0x599fcb(0xc0),'configSaved':_0x599fcb(0xd6),'configError':_0x599fcb(0xc6),'apiApplyInfo':{'title':_0x599fcb(0xca),'description':_0x599fcb(0xde),'univerAiLabel':_0x599fcb(0xe7),'getStarted':_0x599fcb(0xe8)},'validation':{'apiKeyRequired':_0x599fcb(0xd9),'apiKeyTooShort':_0x599fcb(0xe9),'invalidConfig':_0x599fcb(0xf0),'invalidApiKey':_0x599fcb(0xe6)},'connectionStatus':{'disconnected':_0x599fcb(0xc1),'connecting':'Connecting...','connected':_0x599fcb(0xc5),'failed':_0x599fcb(0xea),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x599fcb(0xcc),'sessionOccupied':_0x599fcb(0xed),'networkError':_0x599fcb(0xc2),'maxRetriesExceeded':_0x599fcb(0xf1)}}},locale=locale$1;module[_0x599fcb(0xce)]=locale;function _0x10c9(){const _0x1f38cb=['Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','What\x20is\x20API\x20Key?','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Disconnected','exports','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','669054qIhiax','Enable\x20Authentication','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','14RwKjwd','3286359tWwsRh','Configuration\x20saved\x20successfully','MCP\x20Retrying...','2732gVyobb','API\x20key\x20is\x20required','1097787RmDBWe','MCP\x20Unknown\x20Status','4775240Fksbzm','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','3010aGlcLh','MCP\x20Connecting...','17878ROoUvi','MCP\x20Connected','MCP:\x20Session\x20ID\x20Occupied','Saving...','MCP\x20Client\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Univer\x20AI\x20Console','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20connect\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Save\x20Configuration','Invalid\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Steps:','Max\x20Retries','Configuration\x20Parameters:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enter\x20your\x20API\x20key','Connected','Failed\x20to\x20save\x20configuration','API\x20Key','2585982nJAZnA'];_0x10c9=function(){return _0x1f38cb;};return _0x10c9();}
@@ -1 +1 @@
1
- function _0x3d08(){const _0x5c16cb=['認証を有効にする','APIキーとは?','ネットワーク接続エラー。インターネット接続を確認してください','APIキーは必須です','接続失敗','接続済み','MCP:\x20認証されていません','クリックしてMCPに接続','2075KpvmYP','8XxdZyN','セッションID','数秒でAPIキーを取得','無効な設定','exports','108nPDAac','MCP設定','76BRjrov','MCP\x20不明な状態','MCPクライアントを再起動して設定を適用','MCP\x20未接続','最大再試行回数を超過しました。後でもう一度お試しください','未接続','APIキーは10文字以上である必要があります','10107QIKGgu','MCP\x20接続中...','クリックしてMCPを設定','MCP\x20接続済み','Bearerプレフィックス付きのAPIキー。','5380Eazpen','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','Univer\x20AIコンソール','再試行中...','MCP:\x20ネットワークエラー','セッションIDが現在使用中です。後でもう一度お試しください','MCPを設定してAIでスプレッドシートを操作','3098431uNbgps','以下のJSON設定をコピー','認証に失敗しました。APIキーを確認してください','770172QJMNFh','643442gjqMll','APIキーはローカルストレージに安全に保存されます','設定を保存','3228czhDWx','119271JAFMZa','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','保存中...','無効なAPIキーです。キーが正しいか確認してください','497541KxTuIZ'];_0x3d08=function(){return _0x5c16cb;};return _0x3d08();}function _0x5382(_0x2ece62,_0xc6ecdb){_0x2ece62=_0x2ece62-0x172;const _0x3d087d=_0x3d08();let _0x5382f9=_0x3d087d[_0x2ece62];return _0x5382f9;}const _0x40943f=_0x5382;(function(_0x2eaf62,_0x12dd42){const _0x5b694e=_0x5382,_0x535784=_0x2eaf62();while(!![]){try{const _0x6c635a=-parseInt(_0x5b694e(0x184))/0x1+-parseInt(_0x5b694e(0x185))/0x2+parseInt(_0x5b694e(0x189))/0x3*(parseInt(_0x5b694e(0x19e))/0x4)+parseInt(_0x5b694e(0x196))/0x5*(parseInt(_0x5b694e(0x188))/0x6)+-parseInt(_0x5b694e(0x181))/0x7*(parseInt(_0x5b694e(0x197))/0x8)+-parseInt(_0x5b694e(0x175))/0x9*(-parseInt(_0x5b694e(0x17a))/0xa)+parseInt(_0x5b694e(0x18d))/0xb*(parseInt(_0x5b694e(0x19c))/0xc);if(_0x6c635a===_0x12dd42)break;else _0x535784['push'](_0x535784['shift']());}catch(_0x4d0619){_0x535784['push'](_0x535784['shift']());}}}(_0x3d08,0x6f2d4));const locale={'mcpStatus':{'disconnected':_0x40943f(0x1a1),'connecting':_0x40943f(0x176),'connected':_0x40943f(0x178),'failed':'MCP\x20接続失敗','retrying':'MCP\x20再試行中...','unknown':_0x40943f(0x19f),'unauthorized':_0x40943f(0x194),'sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0x40943f(0x17e),'maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':_0x40943f(0x195),'clickToConfigure':_0x40943f(0x177)},'mcpConfig':{'title':_0x40943f(0x19d),'description':_0x40943f(0x180),'apiKey':'APIキー','apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x40943f(0x18e),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':'MCPクライアント設定','mcpClientConfig':'MCPクライアント設定','configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':'設定手順:','configStep1':_0x40943f(0x182),'configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0x40943f(0x1a0),'sessionId':_0x40943f(0x198),'sessionIdDescription':_0x40943f(0x18a),'authorizationDescription':_0x40943f(0x179),'configParameters':'設定パラメータ:','maxRetries':'最大再試行回数','save':_0x40943f(0x187),'saving':_0x40943f(0x18b),'note1':'設定の変更は直ちに有効になります','note2':_0x40943f(0x186),'configSaved':'設定が正常に保存されました','configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x40943f(0x18f),'description':_0x40943f(0x17b),'univerAiLabel':_0x40943f(0x17c),'getStarted':_0x40943f(0x199)},'validation':{'apiKeyRequired':_0x40943f(0x191),'apiKeyTooShort':_0x40943f(0x174),'invalidConfig':_0x40943f(0x19a),'invalidApiKey':_0x40943f(0x18c)},'connectionStatus':{'disconnected':_0x40943f(0x173),'connecting':'接続中...','connected':_0x40943f(0x193),'failed':_0x40943f(0x192),'retrying':_0x40943f(0x17d)},'connectionError':{'unauthorized':_0x40943f(0x183),'sessionOccupied':_0x40943f(0x17f),'networkError':_0x40943f(0x190),'maxRetriesExceeded':_0x40943f(0x172)}}};module[_0x40943f(0x19b)]=locale;
1
+ const _0x29d839=_0xd16a;function _0xd16a(_0x393f7e,_0x46e07a){_0x393f7e=_0x393f7e-0x19a;const _0x51e8bd=_0x51e8();let _0xd16a9=_0x51e8bd[_0x393f7e];return _0xd16a9;}(function(_0x3a250f,_0x2a8a53){const _0x326868=_0xd16a,_0x1f14d3=_0x3a250f();while(!![]){try{const _0x44b9f3=-parseInt(_0x326868(0x1b4))/0x1+parseInt(_0x326868(0x1a1))/0x2*(-parseInt(_0x326868(0x1b7))/0x3)+parseInt(_0x326868(0x1c6))/0x4+-parseInt(_0x326868(0x1a4))/0x5+-parseInt(_0x326868(0x1c0))/0x6*(parseInt(_0x326868(0x1cd))/0x7)+-parseInt(_0x326868(0x1bb))/0x8*(-parseInt(_0x326868(0x19a))/0x9)+parseInt(_0x326868(0x1cc))/0xa;if(_0x44b9f3===_0x2a8a53)break;else _0x1f14d3['push'](_0x1f14d3['shift']());}catch(_0x3ae1f6){_0x1f14d3['push'](_0x1f14d3['shift']());}}}(_0x51e8,0x72488));function _0x51e8(){const _0x15fd04=['MCP:\x20最大再試行回数を超過','MCPクライアントの設定に次の設定を追加してください:','APIキーを入力してください','再試行中...','無効な設定','認証に失敗しました。APIキーを確認してください','設定パラメータ:','881743CPuCvm','設定の変更は直ちに有効になります','数秒でAPIキーを取得','3mmhkKc','セキュアな接続のために認証を有効にする','未接続','セッションID','488SwoAXC','MCPクライアント設定','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','APIキーとは?','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','1794720QLukft','設定手順:','接続失敗','接続中...','MCP\x20接続済み','APIキーはこのブラウザのローカルに保存されます','297984HqvBSW','設定を保存','MCP:\x20ネットワークエラー','MCPを設定してAIでスプレッドシートを操作','最大再試行回数','最大再試行回数を超過しました。後でもう一度お試しください','29599830dBANht','7SYBQwb','17379emNfqm','セッションIDが現在使用中です。後でもう一度お試しください','無効なAPIキーです。キーが正しいか確認してください','MCP\x20不明な状態','MCPクライアントの設定ファイルに設定を追加','接続済み','設定の保存に失敗しました','1459826ZhiFuV','保存中...','設定が正常に保存されました','3866950CWpRpV','MCP\x20再試行中...','MCP設定','MCP\x20接続失敗','MCPクライアントを再起動して設定を適用','APIキー','クリックしてMCPを設定','Univer\x20AIコンソール','認証を有効にする'];_0x51e8=function(){return _0x15fd04;};return _0x51e8();}const locale={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':'MCP\x20接続中...','connected':_0x29d839(0x1c4),'failed':_0x29d839(0x1a7),'retrying':_0x29d839(0x1a5),'unknown':_0x29d839(0x19d),'unauthorized':'MCP:\x20認証されていません','sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0x29d839(0x1c8),'maxRetriesExceeded':_0x29d839(0x1ad),'clickToConnect':'クリックしてMCPに接続','clickToConfigure':_0x29d839(0x1aa)},'mcpConfig':{'title':_0x29d839(0x1a6),'description':_0x29d839(0x1c9),'apiKey':_0x29d839(0x1a9),'apiKeyPlaceholder':_0x29d839(0x1af),'apiKeyHint':_0x29d839(0x1c5),'enableAuth':_0x29d839(0x1ac),'enableAuthHint':_0x29d839(0x1b8),'connectionInfo':_0x29d839(0x1bc),'mcpClientConfig':_0x29d839(0x1bc),'configInstructions':_0x29d839(0x1ae),'configStepTitle':_0x29d839(0x1c1),'configStep1':'以下のJSON設定をコピー','configStep2':_0x29d839(0x19e),'configStep3':_0x29d839(0x1a8),'sessionId':_0x29d839(0x1ba),'sessionIdDescription':_0x29d839(0x1bf),'authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':_0x29d839(0x1b3),'maxRetries':_0x29d839(0x1ca),'save':_0x29d839(0x1c7),'saving':_0x29d839(0x1a2),'note1':_0x29d839(0x1b5),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':_0x29d839(0x1a3),'configError':_0x29d839(0x1a0),'apiApplyInfo':{'title':_0x29d839(0x1be),'description':_0x29d839(0x1bd),'univerAiLabel':_0x29d839(0x1ab),'getStarted':_0x29d839(0x1b6)},'validation':{'apiKeyRequired':'APIキーは必須です','apiKeyTooShort':'APIキーは10文字以上である必要があります','invalidConfig':_0x29d839(0x1b1),'invalidApiKey':_0x29d839(0x19c)},'connectionStatus':{'disconnected':_0x29d839(0x1b9),'connecting':_0x29d839(0x1c3),'connected':_0x29d839(0x19f),'failed':_0x29d839(0x1c2),'retrying':_0x29d839(0x1b0)},'connectionError':{'unauthorized':_0x29d839(0x1b2),'sessionOccupied':_0x29d839(0x19b),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x29d839(0x1cb)}}};module['exports']=locale;
@@ -1 +1 @@
1
- function _0xd141(_0x3119a5,_0x242ae7){_0x3119a5=_0x3119a5-0x140;const _0xab3876=_0xab38();let _0xd141c6=_0xab3876[_0x3119a5];return _0xd141c6;}const _0x479fbe=_0xd141;(function(_0x29f29a,_0x3540ff){const _0x144746=_0xd141,_0x243e0c=_0x29f29a();while(!![]){try{const _0x4fa05b=parseInt(_0x144746(0x160))/0x1*(parseInt(_0x144746(0x141))/0x2)+-parseInt(_0x144746(0x155))/0x3*(parseInt(_0x144746(0x16f))/0x4)+-parseInt(_0x144746(0x16a))/0x5*(-parseInt(_0x144746(0x16d))/0x6)+-parseInt(_0x144746(0x14d))/0x7*(parseInt(_0x144746(0x149))/0x8)+parseInt(_0x144746(0x162))/0x9+-parseInt(_0x144746(0x169))/0xa+parseInt(_0x144746(0x16e))/0xb*(parseInt(_0x144746(0x161))/0xc);if(_0x4fa05b===_0x3540ff)break;else _0x243e0c['push'](_0x243e0c['shift']());}catch(_0x4f2fad){_0x243e0c['push'](_0x243e0c['shift']());}}}(_0xab38,0xc2082));function _0xab38(){const _0x2782e6=['12YfGTou','6973533AzYoNe','연결\x20실패','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','Bearer\x20접두사가\x20있는\x20API\x20키.','API\x20키를\x20입력하세요','MCP:\x20인증되지\x20않음','1293070nMMrVa','5ZxYoVO','인증\x20활성화','연결\x20중...','8659014FBIXHE','8469109beiQWU','20FIOOpM','MCP\x20연결\x20실패','인증\x20실패.\x20API\x20키를\x20확인하세요','클릭하여\x20MCP\x20설정','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','1411162CNCUbZ','보안\x20연결을\x20위해\x20인증\x20활성화','설정\x20저장\x20실패','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','재시도\x20중...','MCP\x20연결됨','설정\x20단계:','연결됨','992YbLWFU','Univer\x20AI\x20콘솔','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','MCP\x20설정','79555nPJwGA','MCP\x20재시도\x20중...','연결\x20끊김','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','최대\x20재시도\x20횟수','아래\x20JSON\x20설정\x20복사','세션\x20ID','MCP:\x20최대\x20재시도\x20횟수\x20초과','816111vwfSvV','MCP\x20클라이언트\x20설정','MCP:\x20세션\x20ID\x20사용\x20중','설정\x20매개변수:','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','설정\x20저장','exports','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','클릭하여\x20MCP\x20연결','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','MCP:\x20네트워크\x20오류','1jauCFr'];_0xab38=function(){return _0x2782e6;};return _0xab38();}const locale={'mcpStatus':{'disconnected':'MCP\x20연결\x20끊김','connecting':'MCP\x20연결\x20중...','connected':_0x479fbe(0x146),'failed':_0x479fbe(0x170),'retrying':_0x479fbe(0x14e),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':_0x479fbe(0x168),'sessionOccupied':_0x479fbe(0x157),'networkError':_0x479fbe(0x15f),'maxRetriesExceeded':_0x479fbe(0x154),'clickToConnect':_0x479fbe(0x15d),'clickToConfigure':_0x479fbe(0x172)},'mcpConfig':{'title':_0x479fbe(0x14c),'description':_0x479fbe(0x14b),'apiKey':'API\x20키','apiKeyPlaceholder':_0x479fbe(0x167),'apiKeyHint':'API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','enableAuth':_0x479fbe(0x16b),'enableAuthHint':_0x479fbe(0x142),'connectionInfo':_0x479fbe(0x156),'mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':_0x479fbe(0x144),'configStepTitle':_0x479fbe(0x147),'configStep1':_0x479fbe(0x152),'configStep2':_0x479fbe(0x165),'configStep3':_0x479fbe(0x150),'sessionId':_0x479fbe(0x153),'sessionIdDescription':_0x479fbe(0x15c),'authorizationDescription':_0x479fbe(0x166),'configParameters':_0x479fbe(0x158),'maxRetries':_0x479fbe(0x151),'save':_0x479fbe(0x15a),'saving':'저장\x20중...','note1':_0x479fbe(0x164),'note2':_0x479fbe(0x159),'configSaved':'설정이\x20성공적으로\x20저장되었습니다','configError':_0x479fbe(0x143),'apiApplyInfo':{'title':'API\x20키란\x20무엇인가요?','description':'API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','univerAiLabel':_0x479fbe(0x14a),'getStarted':'몇\x20초\x20만에\x20API\x20키\x20발급받기'},'validation':{'apiKeyRequired':'API\x20키는\x20필수입니다','apiKeyTooShort':'API\x20키는\x2010자\x20이상이어야\x20합니다','invalidConfig':'유효하지\x20않은\x20설정','invalidApiKey':'유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요'},'connectionStatus':{'disconnected':_0x479fbe(0x14f),'connecting':_0x479fbe(0x16c),'connected':_0x479fbe(0x148),'failed':_0x479fbe(0x163),'retrying':_0x479fbe(0x145)},'connectionError':{'unauthorized':_0x479fbe(0x171),'sessionOccupied':_0x479fbe(0x140),'networkError':'네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','maxRetriesExceeded':_0x479fbe(0x15e)}}};module[_0x479fbe(0x15b)]=locale;
1
+ const _0x5c219b=_0x399d;(function(_0x4b0e42,_0x3813b7){const _0x29257f=_0x399d,_0x192b23=_0x4b0e42();while(!![]){try{const _0x55b394=parseInt(_0x29257f(0xd4))/0x1*(parseInt(_0x29257f(0xb7))/0x2)+-parseInt(_0x29257f(0xdc))/0x3*(-parseInt(_0x29257f(0xbe))/0x4)+-parseInt(_0x29257f(0xe8))/0x5*(-parseInt(_0x29257f(0xb5))/0x6)+parseInt(_0x29257f(0xe3))/0x7+parseInt(_0x29257f(0xe7))/0x8+parseInt(_0x29257f(0xce))/0x9*(-parseInt(_0x29257f(0xd9))/0xa)+-parseInt(_0x29257f(0xd2))/0xb;if(_0x55b394===_0x3813b7)break;else _0x192b23['push'](_0x192b23['shift']());}catch(_0x411de0){_0x192b23['push'](_0x192b23['shift']());}}}(_0x2141,0xd51ef));const locale={'mcpStatus':{'disconnected':_0x5c219b(0xd7),'connecting':_0x5c219b(0xc4),'connected':'MCP\x20연결됨','failed':_0x5c219b(0xd3),'retrying':_0x5c219b(0xd5),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':_0x5c219b(0xca),'sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20중','networkError':_0x5c219b(0xb8),'maxRetriesExceeded':_0x5c219b(0xd1),'clickToConnect':_0x5c219b(0xda),'clickToConfigure':_0x5c219b(0xcc)},'mcpConfig':{'title':_0x5c219b(0xe4),'description':_0x5c219b(0xb6),'apiKey':'API\x20','apiKeyPlaceholder':'API\x20키를\x20입력하세요','apiKeyHint':_0x5c219b(0xbb),'enableAuth':_0x5c219b(0xcd),'enableAuthHint':_0x5c219b(0xcb),'connectionInfo':_0x5c219b(0xc3),'mcpClientConfig':_0x5c219b(0xc3),'configInstructions':_0x5c219b(0xdf),'configStepTitle':_0x5c219b(0xc5),'configStep1':_0x5c219b(0xc8),'configStep2':_0x5c219b(0xbc),'configStep3':'MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','sessionId':_0x5c219b(0xd0),'sessionIdDescription':_0x5c219b(0xbf),'authorizationDescription':_0x5c219b(0xc7),'configParameters':'설정\x20매개변수:','maxRetries':_0x5c219b(0xb4),'save':'설정\x20저장','saving':_0x5c219b(0xe0),'note1':_0x5c219b(0xdd),'note2':'API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','configSaved':'설정이\x20성공적으로\x20저장되었습니다','configError':_0x5c219b(0xba),'apiApplyInfo':{'title':_0x5c219b(0xdb),'description':_0x5c219b(0xbd),'univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':_0x5c219b(0xc6)},'validation':{'apiKeyRequired':_0x5c219b(0xd8),'apiKeyTooShort':_0x5c219b(0xe2),'invalidConfig':_0x5c219b(0xc1),'invalidApiKey':_0x5c219b(0xc2)},'connectionStatus':{'disconnected':_0x5c219b(0xc9),'connecting':_0x5c219b(0xe1),'connected':'연결됨','failed':_0x5c219b(0xe5),'retrying':_0x5c219b(0xcf)},'connectionError':{'unauthorized':_0x5c219b(0xe6),'sessionOccupied':_0x5c219b(0xb9),'networkError':_0x5c219b(0xc0),'maxRetriesExceeded':_0x5c219b(0xd6)}}};function _0x399d(_0x1e78a0,_0x3c2e64){_0x1e78a0=_0x1e78a0-0xb4;const _0x21412c=_0x2141();let _0x399d1b=_0x21412c[_0x1e78a0];return _0x399d1b;}function _0x2141(){const _0x185f8b=['MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','저장\x20중...','연결\x20중...','API\x20키는\x2010자\x20이상이어야\x20합니다','7011802pmWjxH','MCP\x20설정','연결\x20실패','인증\x20실패.\x20API\x20키를\x20확인하세요','5351808NRrqQq','5WqKYhx','최대\x20재시도\x20횟수','2841036tqtZGw','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','3164srVcmY','MCP:\x20네트워크\x20오류','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','설정\x20저장\x20실패','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','296wAUKmr','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','유효하지\x20않은\x20설정','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','MCP\x20클라이언트\x20설정','MCP\x20연결\x20중...','설정\x20단계:','몇\x20초\x20만에\x20API\x20키\x20발급받기','Bearer\x20접두사가\x20있는\x20API\x20키.','아래\x20JSON\x20설정\x20복사','연결\x20끊김','MCP:\x20인증되지\x20않음','보안\x20연결을\x20위해\x20인증\x20활성화','클릭하여\x20MCP\x20설정','인증\x20활성화','865422sZSmPo','재시도\x20중...','세션\x20ID','MCP:\x20최대\x20재시도\x20횟수\x20초과','25056405CYHTqT','MCP\x20연결\x20실패','382IhsWtI','MCP\x20재시도\x20중...','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','MCP\x20연결\x20끊김','API\x20키는\x20필수입니다','10nESotJ','클릭하여\x20MCP\x20연결','API\x20키란\x20무엇인가요?','20208AtNIEt','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','exports'];_0x2141=function(){return _0x185f8b;};return _0x2141();}module[_0x5c219b(0xde)]=locale;