@univerjs-pro/mcp-ui 1.0.0-alpha.0 → 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x312fe2=_0x3324;(function(_0x34492b,_0x289b9c){const _0x1ac666=_0x3324,_0x14f562=_0x34492b();while(!![]){try{const _0x414209=parseInt(_0x1ac666(0x245))/0x1+parseInt(_0x1ac666(0x202))/0x2*(-parseInt(_0x1ac666(0x24c))/0x3)+parseInt(_0x1ac666(0x224))/0x4*(parseInt(_0x1ac666(0x173))/0x5)+parseInt(_0x1ac666(0x1a2))/0x6+-parseInt(_0x1ac666(0x162))/0x7*(parseInt(_0x1ac666(0x189))/0x8)+parseInt(_0x1ac666(0x1f2))/0x9*(parseInt(_0x1ac666(0x1c6))/0xa)+parseInt(_0x1ac666(0x21e))/0xb*(-parseInt(_0x1ac666(0x1eb))/0xc);if(_0x414209===_0x289b9c)break;else _0x14f562['push'](_0x14f562['shift']());}catch(_0xb14026){_0x14f562['push'](_0x14f562['shift']());}}}(_0x3530,0x18c16),Object[_0x312fe2(0x1a7)](exports,Symbol[_0x312fe2(0x1d4)],{'value':_0x312fe2(0x1fd)}));const e=require('./locale/en-US.js'),t=require('./locale/zh-CN.js');let n=require('@univerjs/core'),r=require('@univerjs-pro/mcp'),i=require('@univerjs/design'),a=require('@univerjs/ui'),o=require('rxjs'),s=require('@univerjs/icons'),c=require('react'),l=require('react/jsx-runtime'),u=require('@univerjs/network');function d(_0x313220){const _0x5f50e7=_0x312fe2;var _0x483900,_0x27dd3c;let {mcpCoreConfig:_0x11fcc1,onSave:_0x48021f,loading:_0x157336=!0x1,config:_0x1efc06,connectionStatus$:_0x39345e,connectionError$:_0x3d96ae,currentApiKey$:_0x40202e,currentSessionId$:_0x16c628}=_0x313220,_0x393ff7=(0x0,a[_0x5f50e7(0x194)])(n['LocaleService']),_0x4905ca=(0x0,a[_0x5f50e7(0x198)])(_0x39345e,r[_0x5f50e7(0x1f1)][_0x5f50e7(0x1a1)]),_0x35421a=(0x0,a[_0x5f50e7(0x198)])(_0x3d96ae,r[_0x5f50e7(0x1d0)][_0x5f50e7(0x1ba)]),_0x21e84b=(0x0,a[_0x5f50e7(0x198)])(_0x16c628,''),[_0x5e252,_0x26c86a]=(0x0,c[_0x5f50e7(0x1b5)])((0x0,a[_0x5f50e7(0x198)])(_0x40202e,'')||''),_0x3cf35d=_0x1efc06[_0x5f50e7(0x1aa)]&&_0x11fcc1['mcpServerUrl']&&(_0x11fcc1[_0x5f50e7(0x1bb)][_0x5f50e7(0x215)](_0x5f50e7(0x235))||_0x11fcc1[_0x5f50e7(0x1bb)]['includes'](_0x5f50e7(0x251))),_0xa6d40=(_0x483900=_0x11fcc1[_0x5f50e7(0x1bb)])==null?void 0x0:_0x483900['includes'](_0x5f50e7(0x235)),_0x4f095e=(_0x27dd3c=_0x11fcc1[_0x5f50e7(0x1bb)])==null?void 0x0:_0x27dd3c[_0x5f50e7(0x215)](_0x5f50e7(0x251)),_0x55e420=_0xa6d40?_0x5f50e7(0x22b):_0x5f50e7(0x195),_0x4f9285=_0x1efc06['showDeveloperTools']&&(_0xa6d40||_0x4f095e),[_0x6a0e4a,_0x4c0ad0]=(0x0,c[_0x5f50e7(0x1b5)])(!_0x5e252[_0x5f50e7(0x216)]()),_0x1d6975=(_0x612197,_0x230892)=>{const _0x176384=_0x5f50e7;if(_0x230892===r[_0x176384(0x1d0)]['UNAUTHORIZED'])return _0x176384(0x19a);switch(_0x612197){case r[_0x176384(0x1f1)]['CONNECTED']:return _0x176384(0x244);case r['MCPConnectionStatus'][_0x176384(0x1e4)]:case r[_0x176384(0x1f1)]['RETRYING']:return _0x176384(0x14a);case r[_0x176384(0x1f1)][_0x176384(0x18a)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x57f1b4=(_0x4699d8,_0x1dfc14)=>{const _0x432fa3=_0x5f50e7;if(_0x1dfc14===r['MCPConnectionError']['UNAUTHORIZED'])return _0x432fa3(0x18d);switch(_0x4699d8){case r[_0x432fa3(0x1f1)]['CONNECTED']:return _0x432fa3(0x197);case r[_0x432fa3(0x1f1)][_0x432fa3(0x1e4)]:case r['MCPConnectionStatus'][_0x432fa3(0x174)]:return _0x432fa3(0x24f);case r['MCPConnectionStatus']['FAILED']:return _0x432fa3(0x18d);default:return _0x432fa3(0x161);}},_0x283f10=_0x57ed42=>{const _0x38aa7c=_0x5f50e7;switch(_0x57ed42){case r[_0x38aa7c(0x1f1)][_0x38aa7c(0x16b)]:return _0x393ff7['t'](_0x38aa7c(0x1e3));case r[_0x38aa7c(0x1f1)][_0x38aa7c(0x1e4)]:return _0x393ff7['t'](_0x38aa7c(0x1cc));case r[_0x38aa7c(0x1f1)][_0x38aa7c(0x18a)]:return _0x393ff7['t'](_0x38aa7c(0x15a));case r[_0x38aa7c(0x1f1)]['RETRYING']:return _0x393ff7['t']('mcpConfig.connectionStatus.retrying');default:return _0x393ff7['t'](_0x38aa7c(0x15f));}},_0x4ba446=_0x351baa=>{const _0x4c22d5=_0x5f50e7;switch(_0x351baa){case r[_0x4c22d5(0x1d0)][_0x4c22d5(0x16c)]:return _0x393ff7['t']('mcpConfig.connectionError.unauthorized');case r['MCPConnectionError'][_0x4c22d5(0x1bc)]:return _0x393ff7['t'](_0x4c22d5(0x1dd));case r[_0x4c22d5(0x1d0)][_0x4c22d5(0x157)]:return _0x393ff7['t'](_0x4c22d5(0x1ce));case r[_0x4c22d5(0x1d0)][_0x4c22d5(0x1c3)]:return _0x393ff7['t'](_0x4c22d5(0x1c1));default:return'';}},_0x434a96=(0x0,c[_0x5f50e7(0x207)])(()=>{const _0x2819ac=_0x5f50e7;_0x48021f({..._0x11fcc1,'apiKey':_0x5e252[_0x2819ac(0x216)](),'enableAuth':!0x0});},[_0x11fcc1,_0x5e252,!0x0,_0x48021f]),_0x4a0ba8=_0x5e252['trim']()[_0x5f50e7(0x1be)]>0x0;return(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x22c),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x1e9),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x241),'children':(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x179),{'className':'univer-text-white','children':'⚙'})}),(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'children':(0x0,l[_0x5f50e7(0x208)])('p',{'className':_0x5f50e7(0x193),'children':_0x393ff7['t']('mcpConfig.description')})})]})}),(0x0,l['jsxs'])('div',{'className':_0x5f50e7(0x1c5),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':(0x0,i['clsx'])(_0x5f50e7(0x14e),_0x1d6975(_0x4905ca,_0x35421a)),'children':(0x0,l['jsxs'])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x23c),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':(0x0,i[_0x5f50e7(0x1df)])(_0x5f50e7(0x164),_0x57f1b4(_0x4905ca,_0x35421a))}),(0x0,l[_0x5f50e7(0x208)])('span',{'className':_0x5f50e7(0x1fa),'children':_0x283f10(_0x4905ca)})]})}),_0x35421a!==r[_0x5f50e7(0x1d0)][_0x5f50e7(0x1ba)]&&(_0x4905ca===r[_0x5f50e7(0x1f1)]['FAILED']||_0x35421a===r[_0x5f50e7(0x1d0)][_0x5f50e7(0x16c)])&&(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x1fe),'children':(0x0,l[_0x5f50e7(0x1b0)])('div',{'className':_0x5f50e7(0x1c2),'children':[(0x0,l['jsx'])('span',{'className':_0x5f50e7(0x1bf),'children':'⚠️'}),(0x0,l[_0x5f50e7(0x208)])('p',{'className':_0x5f50e7(0x221),'children':_0x4ba446(_0x35421a)})]})})]}),(0x0,l['jsx'])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x238),'children':(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x200),'children':[(0x0,l[_0x5f50e7(0x1b0)])('div',{'className':_0x5f50e7(0x240),'children':[(0x0,l['jsxs'])(_0x5f50e7(0x1e8),{'className':_0x5f50e7(0x1b6),'children':[(0x0,l['jsx'])(_0x5f50e7(0x179),{'children':'🔑'}),'\x20',_0x393ff7['t'](_0x5f50e7(0x175)),(0x0,l['jsx'])('span',{'className':'univer-text-red-500','children':'*'}),_0x3cf35d&&(0x0,l[_0x5f50e7(0x208)])('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x393ff7['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x4c0ad0(!0x0),'children':(0x0,l[_0x5f50e7(0x208)])(s['HelpIcon'],{})})]}),(0x0,l[_0x5f50e7(0x208)])(i[_0x5f50e7(0x22f)],{'type':'text','placeholder':_0x393ff7['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x5e252,'disabled':_0x157336,'autoComplete':_0x5f50e7(0x1dc),'onChange':_0x26c86a}),(0x0,l[_0x5f50e7(0x208)])('p',{'className':_0x5f50e7(0x18f),'children':_0x393ff7['t']('mcpConfig.apiKeyHint')})]}),_0x3cf35d&&_0x6a0e4a&&(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'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,l[_0x5f50e7(0x208)])('a',{'className':_0x5f50e7(0x166),'role':_0x5f50e7(0x1ec),'onClick':()=>_0x4c0ad0(!0x1),'children':(0x0,l[_0x5f50e7(0x208)])(s[_0x5f50e7(0x1ad)],{'className':'univer-size-4'})}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x165),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x179),{'className':_0x5f50e7(0x1d6),'children':'🚀'})}),(0x0,l['jsxs'])(_0x5f50e7(0x1b3),{'className':'univer-flex-1','children':[(0x0,l[_0x5f50e7(0x208)])('h4',{'className':_0x5f50e7(0x1c9),'children':_0x393ff7['t']('mcpConfig.apiApplyInfo.title')}),(0x0,l[_0x5f50e7(0x208)])('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x393ff7['t'](_0x5f50e7(0x186))}),(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x219),'children':_0x4f9285&&(0x0,l[_0x5f50e7(0x1b0)])('a',{'className':_0x5f50e7(0x152),'href':_0x55e420,'target':_0x5f50e7(0x1d2),'rel':_0x5f50e7(0x149),'children':[(0x0,l['jsx'])(_0x5f50e7(0x179),{'children':'🤖'}),_0x393ff7['t'](_0x5f50e7(0x1d1)),(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x179),{'className':_0x5f50e7(0x24d),'children':'↗'})]})}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x18e),'children':['✨','\x20',_0x393ff7['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x1efc06[_0x5f50e7(0x1aa)]&&(0x0,l['jsxs'])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x153),'children':[(0x0,l[_0x5f50e7(0x1b0)])('h4',{'className':_0x5f50e7(0x252),'children':[(0x0,l[_0x5f50e7(0x208)])('span',{'children':'🔗'}),'\x20',_0x393ff7['t'](_0x5f50e7(0x18c))]}),(0x0,l[_0x5f50e7(0x1b0)])('div',{'className':_0x5f50e7(0x1ff),'children':[(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x196),'children':[(0x0,l[_0x5f50e7(0x208)])('p',{'className':_0x5f50e7(0x20e),'children':_0x393ff7['t']('mcpConfig.configInstructions')}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':'univer-space-y-2','children':[(0x0,l[_0x5f50e7(0x208)])('div',{'className':_0x5f50e7(0x160),'children':_0x393ff7['t'](_0x5f50e7(0x1f5))}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x17f),'children':[(0x0,l[_0x5f50e7(0x1b0)])('div',{'className':_0x5f50e7(0x23c),'children':[(0x0,l['jsx'])(_0x5f50e7(0x179),{'className':_0x5f50e7(0x1a8),'children':'1'}),_0x393ff7['t']('mcpConfig.configStep1')]}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x23c),'children':[(0x0,l[_0x5f50e7(0x208)])('span',{'className':_0x5f50e7(0x1a8),'children':'2'}),_0x393ff7['t'](_0x5f50e7(0x1ae))]}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x23c),'children':[(0x0,l['jsx'])('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'}),_0x393ff7['t'](_0x5f50e7(0x17b))]})]})]})]}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':'univer-space-y-2','children':[(0x0,l[_0x5f50e7(0x208)])('div',{'className':_0x5f50e7(0x160),'children':'MCP\x20Configuration'}),(0x0,l['jsx'])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x1cb),'children':(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x14f),{'className':_0x5f50e7(0x21f),'children':JSON['stringify']({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x21e84b||_0x5f50e7(0x250)),'type':_0x5f50e7(0x192),'headers':{'Authorization':_0x5f50e7(0x243)+(_0x5e252||'<API_KEY>')}}}},null,0x2)})})]}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x196),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x160),'children':_0x393ff7['t'](_0x5f50e7(0x1a5))}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x240),'children':[(0x0,l['jsxs'])(_0x5f50e7(0x1b3),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,l['jsx'])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x1a4)}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x1d9),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x1d7),'children':_0x5f50e7(0x172)}),(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x18f),'children':_0x393ff7['t'](_0x5f50e7(0x14b))})]})]}),(0x0,l['jsxs'])('div',{'className':_0x5f50e7(0x206),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x1b3),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,l[_0x5f50e7(0x1b0)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,l['jsx'])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x1d7),'children':_0x5f50e7(0x1ab)}),(0x0,l[_0x5f50e7(0x208)])('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x393ff7['t'](_0x5f50e7(0x20b))})]})]})]})]})]})]}),(0x0,l[_0x5f50e7(0x208)])(i[_0x5f50e7(0x199)],{'onClick':_0x434a96,'disabled':!_0x4a0ba8||_0x157336,'className':_0x5f50e7(0x16d),'children':_0x157336?(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x179),{'className':_0x5f50e7(0x23c),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x179),{'children':'⟲'}),_0x393ff7['t'](_0x5f50e7(0x1cf))]}):(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x179),{'className':_0x5f50e7(0x23c),'children':[(0x0,l[_0x5f50e7(0x208)])(s[_0x5f50e7(0x24a)],{}),_0x393ff7['t'](_0x5f50e7(0x155))]})}),(0x0,l[_0x5f50e7(0x208)])('div',{'className':_0x5f50e7(0x184),'children':(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x17c),'children':[(0x0,l[_0x5f50e7(0x208)])(_0x5f50e7(0x179),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[(0x0,l['jsx'])(_0x5f50e7(0x1b3),{'className':_0x5f50e7(0x16f),'children':'Configuration\x20Notes:'}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'children':['•',_0x393ff7['t'](_0x5f50e7(0x1e2))]}),(0x0,l[_0x5f50e7(0x1b0)])(_0x5f50e7(0x1b3),{'children':['•',_0x393ff7['t']('mcpConfig.note2')]})]})]})})]})})]});}const f=_0x312fe2(0x24e),p={'showDeveloperTools':!0x1,'showStatus':!0x0};function m(_0x29b338){'@babel/helpers - typeof';const _0x45719d=_0x312fe2;return m=typeof Symbol==_0x45719d(0x1e7)&&typeof Symbol[_0x45719d(0x176)]==_0x45719d(0x1fc)?function(_0x1dacf9){return typeof _0x1dacf9;}:function(_0x4a2f4c){const _0x3ba652=_0x45719d;return _0x4a2f4c&&typeof Symbol==_0x3ba652(0x1e7)&&_0x4a2f4c[_0x3ba652(0x20c)]===Symbol&&_0x4a2f4c!==Symbol['prototype']?_0x3ba652(0x1fc):typeof _0x4a2f4c;},m(_0x29b338);}function h(_0x5c534d,_0x35e82d){const _0x1355fe=_0x312fe2;if(m(_0x5c534d)!=_0x1355fe(0x16a)||!_0x5c534d)return _0x5c534d;var _0x5d1f28=_0x5c534d[Symbol[_0x1355fe(0x22a)]];if(_0x5d1f28!==void 0x0){var _0x34a533=_0x5d1f28['call'](_0x5c534d,_0x35e82d||_0x1355fe(0x1da));if(m(_0x34a533)!=_0x1355fe(0x16a))return _0x34a533;throw TypeError(_0x1355fe(0x1b7));}return(_0x35e82d==='string'?String:Number)(_0x5c534d);}function g(_0x2043e4){const _0x2b333b=_0x312fe2;var _0x2c5740=h(_0x2043e4,_0x2b333b(0x222));return m(_0x2c5740)==_0x2b333b(0x1fc)?_0x2c5740:_0x2c5740+'';}function _(_0x29e487,_0x34dfa2,_0xd938d6){const _0x502ada=_0x312fe2;return(_0x34dfa2=g(_0x34dfa2))in _0x29e487?Object[_0x502ada(0x1a7)](_0x29e487,_0x34dfa2,{'value':_0xd938d6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x29e487[_0x34dfa2]=_0xd938d6,_0x29e487;}function v(_0x21c113,_0x1685f6){return function(_0x48c068,_0x5320b5){_0x1685f6(_0x48c068,_0x5320b5,_0x21c113);};}function y(_0x309e1b,_0x266f5a,_0x3cc9b5,_0x2d9339){const _0xcd26ee=_0x312fe2;var _0x3fa2e6=arguments[_0xcd26ee(0x1be)],_0x37c042=_0x3fa2e6<0x3?_0x266f5a:_0x2d9339===null?_0x2d9339=Object['getOwnPropertyDescriptor'](_0x266f5a,_0x3cc9b5):_0x2d9339,_0x41ad44;if(typeof Reflect==_0xcd26ee(0x16a)&&typeof Reflect[_0xcd26ee(0x1af)]==_0xcd26ee(0x1e7))_0x37c042=Reflect[_0xcd26ee(0x1af)](_0x309e1b,_0x266f5a,_0x3cc9b5,_0x2d9339);else{for(var _0xd0ce1c=_0x309e1b[_0xcd26ee(0x1be)]-0x1;_0xd0ce1c>=0x0;_0xd0ce1c--)(_0x41ad44=_0x309e1b[_0xd0ce1c])&&(_0x37c042=(_0x3fa2e6<0x3?_0x41ad44(_0x37c042):_0x3fa2e6>0x3?_0x41ad44(_0x266f5a,_0x3cc9b5,_0x37c042):_0x41ad44(_0x266f5a,_0x3cc9b5))||_0x37c042);}return _0x3fa2e6>0x3&&_0x37c042&&Object[_0xcd26ee(0x1a7)](_0x266f5a,_0x3cc9b5,_0x37c042),_0x37c042;}const b=_0x312fe2(0x156),x=_0x312fe2(0x1a3);let S=class extends n[_0x312fe2(0x1f7)]{constructor(_0x1b13c4,_0x1100ff,_0x5e8b3a,_0x3ae8a1,_0x5e8d43,_0x449f53,_0x180cbb,_0x28a353,_0x481fbb,_0x179db4){const _0x4f4d86=_0x312fe2;super(),this['_injector']=_0x1b13c4,this['_uiPartsService']=_0x1100ff,this[_0x4f4d86(0x23b)]=_0x5e8b3a,this['_localStorageService']=_0x3ae8a1,this[_0x4f4d86(0x187)]=_0x5e8d43,this[_0x4f4d86(0x1c8)]=_0x449f53,this[_0x4f4d86(0x171)]=_0x180cbb,this[_0x4f4d86(0x1d8)]=_0x28a353,this[_0x4f4d86(0x236)]=_0x481fbb,this[_0x4f4d86(0x233)]=_0x179db4,_(this,_0x4f4d86(0x180),new o[(_0x4f4d86(0x21a))](!0x1)),_(this,'_mcpCoreConfig$',new o[(_0x4f4d86(0x21a))]({})),_(this,_0x4f4d86(0x14d),new o[(_0x4f4d86(0x21a))]({})),_(this,_0x4f4d86(0x1d5),new o['BehaviorSubject']('')),_(this,_0x4f4d86(0x1f4),async _0xeed9a8=>{const _0x29ca4f=_0x4f4d86;this[_0x29ca4f(0x180)]['next'](!0x0);try{var _0x38e1e9,_0x2a34d8;let _0x44c4bd=await this[_0x29ca4f(0x1fb)](_0xeed9a8);if(!_0x44c4bd['isValid']){this[_0x29ca4f(0x1c8)][_0x29ca4f(0x1f8)]({'type':i[_0x29ca4f(0x150)][_0x29ca4f(0x170)],'content':_0x44c4bd[_0x29ca4f(0x22d)]||this[_0x29ca4f(0x1d8)]['t'](_0x29ca4f(0x204))});return;}_0xeed9a8[_0x29ca4f(0x226)]?await this[_0x29ca4f(0x15c)][_0x29ca4f(0x201)](b,_0xeed9a8[_0x29ca4f(0x226)][_0x29ca4f(0x216)]()):await this[_0x29ca4f(0x15c)]['removeItem'](b),this[_0x29ca4f(0x1d5)][_0x29ca4f(0x1f3)](((_0x38e1e9=_0xeed9a8[_0x29ca4f(0x226)])==null?void 0x0:_0x38e1e9[_0x29ca4f(0x216)]())||''),this[_0x29ca4f(0x233)]['__setCustomHeaders']({'Authorization':_0x29ca4f(0x243)+((_0x2a34d8=_0xeed9a8[_0x29ca4f(0x226)])==null?void 0x0:_0x2a34d8[_0x29ca4f(0x216)]())}),this['_messageService']['show']({'type':i['MessageType']['Success'],'content':this[_0x29ca4f(0x1d8)]['t'](_0x29ca4f(0x19f))}),setTimeout(()=>{const _0x144472=_0x29ca4f;this[_0x144472(0x187)]['close'](x);},0x320);}catch(_0x49c48f){this['_logService'][_0x29ca4f(0x1e5)](_0x29ca4f(0x1ea),_0x49c48f),this[_0x29ca4f(0x1c8)][_0x29ca4f(0x1f8)]({'type':i[_0x29ca4f(0x150)][_0x29ca4f(0x170)],'content':this[_0x29ca4f(0x1d8)]['t'](_0x29ca4f(0x168))});}finally{this[_0x29ca4f(0x180)][_0x29ca4f(0x1f3)](!0x1);}}),this[_0x4f4d86(0x167)](),this[_0x4f4d86(0x20f)](),this['_registerComponent']();}[_0x312fe2(0x1f9)](){const _0x178c3f=_0x312fe2;let _0xb89859=this['_configService'][_0x178c3f(0x14c)](f);_0xb89859!=null&&_0xb89859['showDeveloperTools']&&this[_0x178c3f(0x187)][_0x178c3f(0x217)]({'id':x,'title':{'title':this[_0x178c3f(0x1d8)]['t'](_0x178c3f(0x191))},'children':{'label':_0x178c3f(0x21b)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x55ce4c=_0x178c3f;this[_0x55ce4c(0x187)][_0x55ce4c(0x1c4)](x);}});}[_0x312fe2(0x220)](){const _0x16a349=_0x312fe2;return this[_0x16a349(0x183)][_0x16a349(0x242)];}[_0x312fe2(0x1de)](){const _0xbf4b70=_0x312fe2;this['disposeWithMe'](this[_0xbf4b70(0x171)][_0xbf4b70(0x1a0)](_0xbf4b70(0x21b),this[_0xbf4b70(0x1b1)]()));}[_0x312fe2(0x1b1)](){const _0x47404f=_0x312fe2;return(0x0,a[_0x47404f(0x1ca)])(()=>{const _0x39a5bb=_0x47404f;var _0x427aae,_0x54e495,_0x4779a5;return(0x0,l['jsx'])(d,{'config':this[_0x39a5bb(0x14d)][_0x39a5bb(0x242)],'mcpCoreConfig':this[_0x39a5bb(0x183)][_0x39a5bb(0x242)],'currentApiKey$':this[_0x39a5bb(0x1d5)],'onSave':this['_handleConfigSave'],'loading':this[_0x39a5bb(0x180)][_0x39a5bb(0x242)],'connectionStatus$':(_0x427aae=this[_0x39a5bb(0x233)])==null?void 0x0:_0x427aae[_0x39a5bb(0x1e1)],'connectionError$':(_0x54e495=this[_0x39a5bb(0x233)])==null?void 0x0:_0x54e495[_0x39a5bb(0x22e)],'currentSessionId$':(_0x4779a5=this[_0x39a5bb(0x233)])==null?void 0x0:_0x4779a5['sessionId$']});},this[_0x47404f(0x1c0)]);}['_initConfigSync'](){const _0x37f3ef=_0x312fe2;this[_0x37f3ef(0x19e)](this[_0x37f3ef(0x23b)][_0x37f3ef(0x1ee)](r[_0x37f3ef(0x229)])[_0x37f3ef(0x159)](_0x4c948f=>{const _0x649b83=_0x37f3ef;this[_0x649b83(0x183)][_0x649b83(0x1f3)](_0x4c948f||{});}));let _0x3f1ddc=this[_0x37f3ef(0x23b)]['getConfig'](r[_0x37f3ef(0x229)]);this['_mcpCoreConfig$'][_0x37f3ef(0x1f3)](_0x3f1ddc||{}),this['disposeWithMe'](this[_0x37f3ef(0x23b)][_0x37f3ef(0x1ee)](f)[_0x37f3ef(0x159)](_0x28deb0=>{const _0x42cb21=_0x37f3ef;this[_0x42cb21(0x14d)][_0x42cb21(0x1f3)](_0x28deb0||{});}));let _0x59e542=this[_0x37f3ef(0x23b)][_0x37f3ef(0x14c)](f);this[_0x37f3ef(0x14d)]['next'](_0x59e542||{});}async[_0x312fe2(0x20f)](){const _0x215b11=_0x312fe2;let _0x283024=this[_0x215b11(0x23b)]['getConfig'](f);if(!(_0x283024!=null&&_0x283024[_0x215b11(0x1aa)]))return;let _0x277a05=await this[_0x215b11(0x15c)][_0x215b11(0x1db)](b);_0x277a05&&(this[_0x215b11(0x233)]['__setCustomHeaders']({'Authorization':_0x215b11(0x243)+_0x277a05}),this[_0x215b11(0x1d5)][_0x215b11(0x1f3)](_0x277a05));}async[_0x312fe2(0x1fb)](_0x136032){const _0x51fce3=_0x312fe2;if(!_0x136032[_0x51fce3(0x226)]||_0x136032['apiKey'][_0x51fce3(0x216)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x51fce3(0x1d8)]['t'](_0x51fce3(0x212))};if(_0x136032['apiKey'][_0x51fce3(0x216)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x51fce3(0x1d8)]['t'](_0x51fce3(0x211))};try{let _0x3e0662=await this[_0x51fce3(0x1c0)][_0x51fce3(0x158)](r[_0x51fce3(0x1a6)])['validateApiKey'](_0x136032[_0x51fce3(0x226)][_0x51fce3(0x216)]());return _0x3e0662[_0x51fce3(0x209)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3e0662[_0x51fce3(0x1e5)]||this[_0x51fce3(0x1d8)]['t'](_0x51fce3(0x223))};}catch(_0x4f1ce5){return console[_0x51fce3(0x16e)](_0x51fce3(0x1b9),_0x4f1ce5),{'isValid':!0x0};}}};S=y([v(0x0,(0x0,n[_0x312fe2(0x231)])(n[_0x312fe2(0x228)])),v(0x1,a[_0x312fe2(0x15e)]),v(0x2,n['IConfigService']),v(0x3,n[_0x312fe2(0x1d3)]),v(0x4,a['IDialogService']),v(0x5,a['IMessageService']),v(0x6,(0x0,n['Inject'])(a[_0x312fe2(0x23a)])),v(0x7,(0x0,n[_0x312fe2(0x231)])(n[_0x312fe2(0x1e6)])),v(0x8,n['ILogService']),v(0x9,(0x0,n['Inject'])(r[_0x312fe2(0x1a6)]))],S);const C={'id':_0x312fe2(0x248),'type':n['CommandType']['COMMAND'],'handler':async(_0x454573,_0x3608b0)=>(_0x454573[_0x312fe2(0x158)](S)['showConfigPanel'](),!0x0)};function w(_0x1d8bb3,_0xa5d501){const _0x30811d=_0x312fe2;switch(_0x1d8bb3){case r[_0x30811d(0x1f1)][_0x30811d(0x1a1)]:return _0x30811d(0x20d);case r[_0x30811d(0x1f1)][_0x30811d(0x1e4)]:return _0x30811d(0x19c);case r['MCPConnectionStatus'][_0x30811d(0x16b)]:return _0x30811d(0x151);case r[_0x30811d(0x1f1)][_0x30811d(0x18a)]:switch(_0xa5d501){case r[_0x30811d(0x1d0)]['UNAUTHORIZED']:return _0x30811d(0x24b);case r[_0x30811d(0x1d0)][_0x30811d(0x1bc)]:return'mcpStatus.sessionOccupied';case r[_0x30811d(0x1d0)][_0x30811d(0x157)]:return _0x30811d(0x17e);case r['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case r[_0x30811d(0x1f1)]['RETRYING']:return _0x30811d(0x17d);default:return _0x30811d(0x23e);}}function T(_0x2f968d,_0x37fb7e,_0x4ce698,_0x43e69b=!0x0){const _0x6370ac=_0x312fe2;let _0x15f7ad=w(_0x2f968d,_0x37fb7e),_0x28dffc=_0x4ce698['t'](_0x15f7ad);return _0x43e69b?_0x2f968d===r[_0x6370ac(0x1f1)][_0x6370ac(0x1a1)]&&_0x37fb7e===r['MCPConnectionError'][_0x6370ac(0x16c)]?_0x28dffc+_0x6370ac(0x227)+_0x4ce698['t'](_0x6370ac(0x19d)):_0x2f968d===r['MCPConnectionStatus'][_0x6370ac(0x16b)]?''+_0x28dffc:_0x2f968d===r[_0x6370ac(0x1f1)]['DISCONNECTED']||_0x2f968d===r[_0x6370ac(0x1f1)]['FAILED']?_0x28dffc+'\x20-\x20'+_0x4ce698['t'](_0x6370ac(0x1b2)):_0x28dffc:_0x28dffc;}function E(_0x570b0c){const _0x166754=_0x312fe2;switch(_0x570b0c){case r[_0x166754(0x1f1)][_0x166754(0x16b)]:return _0x166754(0x218);case r[_0x166754(0x1f1)][_0x166754(0x1e4)]:case r['MCPConnectionStatus'][_0x166754(0x174)]:return _0x166754(0x1ed);case r[_0x166754(0x1f1)][_0x166754(0x18a)]:case r[_0x166754(0x1f1)][_0x166754(0x1a1)]:return'univer-text-red-500';default:return _0x166754(0x214);}}function D(_0x58a405){const _0x27b38c=_0x312fe2;let {status$:_0x242114,error$:_0xc3b89f,onConfigure:_0x1bb896,showClickable:_0x74a67a=!0x0}=_0x58a405,_0x33eaad=(0x0,a[_0x27b38c(0x198)])(_0x242114,r[_0x27b38c(0x1f1)][_0x27b38c(0x1a1)]),_0x4fc9a2=(0x0,a[_0x27b38c(0x198)])(_0xc3b89f,r['MCPConnectionError'][_0x27b38c(0x1ba)]),_0x77c197=(0x0,a['useDependency'])(n[_0x27b38c(0x1e6)]),_0x543622=_0x33eaad===r[_0x27b38c(0x1f1)][_0x27b38c(0x16b)];_0x33eaad===r[_0x27b38c(0x1f1)][_0x27b38c(0x1e4)]||r['MCPConnectionStatus'][_0x27b38c(0x174)];let _0x53a839=_0x77c197['t'](w(_0x33eaad,_0x4fc9a2)),_0x2b09d2=T(_0x33eaad,_0x4fc9a2,_0x77c197,_0x74a67a),_0x254239=E(_0x33eaad),_0x15679f=_0x543622?(0x0,l[_0x27b38c(0x208)])(s[_0x27b38c(0x230)],{}):(0x0,l['jsx'])(s[_0x27b38c(0x18b)],{}),_0x121a2b=(0x0,c[_0x27b38c(0x207)])(()=>{_0x74a67a&&_0x1bb896&&_0x1bb896();},[_0x74a67a,_0x1bb896]);function _0x1dc4cf(){const _0x31b0ad=_0x27b38c;return(0x0,l[_0x31b0ad(0x1b0)])(_0x31b0ad(0x1b3),{'className':(0x0,i[_0x31b0ad(0x1df)])(_0x31b0ad(0x1ef),_0x74a67a&&_0x1bb896&&_0x31b0ad(0x23f)),'role':_0x31b0ad(0x1ec),'onClick':_0x74a67a&&_0x1bb896?_0x121a2b:void 0x0,'children':[(0x0,l[_0x31b0ad(0x208)])(_0x31b0ad(0x1b3),{'className':(0x0,i[_0x31b0ad(0x1df)])('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x254239),'children':_0x15679f}),(0x0,l['jsx'])('div',{'className':_0x31b0ad(0x1ac),'children':_0x53a839})]});}return(0x0,l[_0x27b38c(0x208)])(i[_0x27b38c(0x1cd)],{'title':_0x2b09d2,'placement':_0x27b38c(0x249),'children':_0x1dc4cf()});}function _0x3530(){const _0x1a0621=['mcpConfig.configStepTitle','_initAutoConnect','Disposable','show','showConfigPanel','univer-text-sm\x20univer-font-medium','_validateConfig','symbol','Module','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-space-y-4','univer-space-y-5','setItem','60748lpVULD','ISocketService','mcpConfig.validation.invalidConfig','WebSocketService','univer-flex\x20univer-items-start\x20univer-gap-3','useCallback','jsx','isValid','showStatus','mcpConfig.authorizationDescription','constructor','mcpStatus.disconnected','univer-text-xs\x20univer-text-gray-600','_loadStoredApiKey','BuiltInUIPart','mcpConfig.validation.apiKeyTooShort','mcpConfig.validation.apiKeyRequired','_initializeCommands','univer-text-gray-500','includes','trim','open','univer-text-green-500','univer-flex\x20univer-flex-wrap\x20univer-gap-2','BehaviorSubject','MCPConfigPanel','MCP_UI_PLUGIN','push','3008445xgkutP','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','getCurrentConfig','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','string','mcpConfig.validation.invalidApiKey','12FHjVjE','_initializeMenus','apiKey','\x20-\x20','Injector','MCP_PLUGIN_CONFIG_KEY','toPrimitive','https://console.univer.plus','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','errorMessage','connectionError$','Input','OnLineIcon','Inject','MenuIcon','_mcpConnectionController','_uiPartsService','univer.plus','_logService','HEADER_MENU','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','OTHERS','ComponentManager','_configService','univer-flex\x20univer-items-center\x20univer-gap-2','IMenuManagerService','mcpStatus.unknown','univer-cursor-pointer\x20hover:univer-opacity-80','univer-space-y-2','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','value','Bearer\x20','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','98185Qvcgec','OpenMCPConfigPanelCommand','add','mcp-ui.command.openConfigPanel','bottom','CheckMarkIcon','mcpStatus.unauthorized','12LQWMjU','univer-text-gray-400','mcp-ui.config','univer-bg-blue-500','<SESSION_ID>','univer.ai','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','zhCN','noopener\x20noreferrer','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','mcpConfig.sessionIdDescription','getConfig','_config$','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','pre','MessageType','mcpStatus.connected','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','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','_commandService','mcpConfig.save','mcp.apiKey','NETWORK_ERROR','get','subscribe','mcpConfig.connectionStatus.failed','setConfig','_localStorageService','UniverMCPUIPlugin','IUIPartsService','mcpConfig.connectionStatus.disconnected','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-bg-gray-500','12341aCJTHn','IConfigService','univer-size-2\x20univer-rounded-full','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','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','_initConfigSync','mcpConfig.configError','BUTTON','object','CONNECTED','UNAUTHORIZED','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','warn','univer-font-medium','Error','_componentManager','univer_session_id:','291725sLNwOi','RETRYING','mcpConfig.apiKey','iterator','packageName','_connectionController','span','enUS','mcpConfig.configStep3','univer-flex\x20univer-gap-3','mcpStatus.retrying','mcpStatus.networkError','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','_loading$','@univerjs-pro/mcp-ui','RibbonStartGroup','_mcpCoreConfig$','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Plugin','mcpConfig.apiApplyInfo.description','_dialogService','MCPConnectionUIController','48rvgBPd','FAILED','OffLineIcon','mcpConfig.connectionInfo','univer-bg-red-500','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-text-xs\x20univer-text-gray-500','_initStatusComponent','mcpConfig.title','http','univer-text-sm\x20univer-text-gray-500','useDependency','https://console.univer.ai','univer-space-y-3','univer-bg-green-500','useObservable','Button','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','merge','mcpStatus.connecting','mcpStatus.clickToConfigure','disposeWithMe','mcpConfig.configSaved','register','DISCONNECTED','900492KwfLhM','mcp-config-dialog','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.configParameters','MCPConnectionController','defineProperty','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','_menuManagerService','showDeveloperTools','Authorization:','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','CloseIcon','mcpConfig.configStep2','decorate','jsxs','_createConfigPanelComponent','mcpStatus.clickToConnect','div','ICommandService','useState','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','enableAutoConnect','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','NONE','mcpServerUrl','SESSION_ID_OCCUPIED','1.0.0-alpha.0','length','univer-shrink-0\x20univer-text-red-500','_injector','mcpConfig.connectionError.maxRetriesExceeded','univer-flex\x20univer-items-start\x20univer-gap-2','MAX_RETRIES_EXCEEDED','close','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','167330kxBdAB','forEach','_messageService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','connectInjector','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.connectionStatus.connecting','Tooltip','mcpConfig.connectionError.networkError','mcpConfig.saving','MCPConnectionError','mcpConfig.apiApplyInfo.univerAiLabel','_blank','ILocalStorageService','toStringTag','_apiKey$','univer-text-blue-600','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_localeService','univer-min-w-0\x20univer-flex-1','default','getItem','off','mcpConfig.connectionError.sessionOccupied','_registerComponent','clsx','DependentOn','connectionStatus$','mcpConfig.note1','mcpConfig.connectionStatus.connected','CONNECTING','error','LocaleService','function','label','univer-flex\x20univer-items-center\x20univer-gap-3','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','12uQQzmk','button','univer-text-yellow-500','subscribeConfigValue$','univer-flex\x20univer-items-center','_handleConfigure','MCPConnectionStatus','45ZXfRtR','next','_handleConfigSave'];_0x3530=function(){return _0x1a0621;};return _0x3530();}let O=class extends n[_0x312fe2(0x1f7)]{constructor(_0x4058e2,_0x38b306,_0x550bf7,_0x3f1820){const _0x3073cd=_0x312fe2;super(),this['_injector']=_0x4058e2,this[_0x3073cd(0x178)]=_0x38b306,this[_0x3073cd(0x234)]=_0x550bf7,this[_0x3073cd(0x23b)]=_0x3f1820,this[_0x3073cd(0x1f6)](),this['_initStatusComponent']();}['_initAutoConnect'](){const _0x3f9a91=_0x312fe2;let _0x36b190=this[_0x3f9a91(0x23b)][_0x3f9a91(0x14c)](f);_0x36b190!=null&&_0x36b190[_0x3f9a91(0x1aa)]&&(this['_connectionController'][_0x3f9a91(0x1b8)]=!0x1);}[_0x312fe2(0x190)](){const _0x17286b=_0x312fe2;let _0x22728a=this['_configService']['getConfig'](f);(_0x22728a==null?void 0x0:_0x22728a[_0x17286b(0x20a)])!==!0x1&&this['disposeWithMe'](this[_0x17286b(0x234)]['registerComponent'](a[_0x17286b(0x210)][_0x17286b(0x237)],()=>{const _0x2adc39=_0x17286b;var _0x434971;return(0x0,a[_0x2adc39(0x1ca)])(k({'status$':this[_0x2adc39(0x178)]['connectionStatus$'],'error$':this[_0x2adc39(0x178)]['connectionError$'],'onConfigure':()=>this[_0x2adc39(0x1f0)](),'showClickable':(_0x434971=_0x22728a==null?void 0x0:_0x22728a[_0x2adc39(0x1aa)])==null?!0x1:_0x434971}),this[_0x2adc39(0x1c0)]);}));}[_0x312fe2(0x1f0)](){const _0x12212b=_0x312fe2;this[_0x12212b(0x1c0)][_0x12212b(0x158)](S)[_0x12212b(0x1f9)]();}};O=y([v(0x0,(0x0,n[_0x312fe2(0x231)])(n['Injector'])),v(0x1,(0x0,n[_0x312fe2(0x231)])(r[_0x312fe2(0x1a6)])),v(0x2,a[_0x312fe2(0x15e)]),v(0x3,n['IConfigService'])],O);function k(_0xf18723){let {status$:_0x4574f3,error$:_0x2aa0e7,onConfigure:_0x5613aa,showClickable:_0x5cecc3}=_0xf18723;return function(){const _0x180754=_0x3324;return(0x0,l[_0x180754(0x208)])(D,{'status$':_0x4574f3,'error$':_0x2aa0e7,'onConfigure':_0x5613aa,'showClickable':_0x5cecc3});};}function A(_0x59ebb1){const _0x2b6e91=_0x312fe2;return{'id':C['id'],'type':a['MenuItemType'][_0x2b6e91(0x169)],'icon':_0x2b6e91(0x232),'title':'mcpConfig.title','tooltip':_0x2b6e91(0x191)};}const j={[a[_0x312fe2(0x182)][_0x312fe2(0x239)]]:{[C['id']]:{'order':0xa,'menuItemFactory':A}}};let M=class extends n[_0x312fe2(0x1f7)]{constructor(_0x2281d1,_0x5f2fc1){const _0x5d261c=_0x312fe2;super(),this[_0x5d261c(0x154)]=_0x2281d1,this['_menuManagerService']=_0x5f2fc1,this[_0x5d261c(0x213)](),this[_0x5d261c(0x225)]();}[_0x312fe2(0x213)](){const _0x334f33=_0x312fe2;[C][_0x334f33(0x1c7)](_0x4a1d94=>{const _0x15413a=_0x334f33;this[_0x15413a(0x19e)](this['_commandService']['registerCommand'](_0x4a1d94));});}['_initializeMenus'](){const _0x44f4de=_0x312fe2;this[_0x44f4de(0x1a9)]['mergeMenu'](j);}};function _0x3324(_0x54b3f1,_0x12656e){_0x54b3f1=_0x54b3f1-0x148;const _0x35303d=_0x3530();let _0x332431=_0x35303d[_0x54b3f1];return _0x332431;}M=y([v(0x0,n[_0x312fe2(0x1b4)]),v(0x1,a[_0x312fe2(0x23d)])],M);var N=_0x312fe2(0x181),P=_0x312fe2(0x1bd);let F=class extends n[_0x312fe2(0x185)]{constructor(_0x4677c3=p,_0x311a29,_0x31a238,_0x49e531,_0x527a26,_0x5f4cb1){const _0x5f08bd=_0x312fe2;super(),this['_config']=_0x4677c3,this[_0x5f08bd(0x1c0)]=_0x311a29,this['_configService']=_0x31a238,this[_0x5f08bd(0x234)]=_0x49e531,this[_0x5f08bd(0x15c)]=_0x527a26,this[_0x5f08bd(0x1d8)]=_0x5f4cb1;let {..._0x3821e8}=(0x0,n[_0x5f08bd(0x19b)])({},p,this['_config']);this[_0x5f08bd(0x23b)][_0x5f08bd(0x15b)](f,_0x3821e8);}async['onStarting'](){const _0x2831cc=_0x312fe2;let _0x26af94=[[O],[S],[M]];this[_0x2831cc(0x1c0)]['has'](u['ISocketService'])||_0x26af94[_0x2831cc(0x21d)]([u[_0x2831cc(0x203)],{'useClass':u[_0x2831cc(0x205)]}]),_0x26af94[_0x2831cc(0x1c7)](_0x3dddc4=>this['_injector'][_0x2831cc(0x247)](_0x3dddc4)),this['_injector'][_0x2831cc(0x158)](O),this[_0x2831cc(0x1c0)][_0x2831cc(0x158)](S),this[_0x2831cc(0x1c0)][_0x2831cc(0x158)](M);}};_(F,'pluginName',_0x312fe2(0x21c)),_(F,_0x312fe2(0x177),N),_(F,'version',P),F=y([(0x0,n[_0x312fe2(0x1e0)])(r['UniverMCPPlugin']),v(0x1,(0x0,n[_0x312fe2(0x231)])(n[_0x312fe2(0x228)])),v(0x2,n[_0x312fe2(0x163)]),v(0x3,a[_0x312fe2(0x15e)]),v(0x4,n['ILocalStorageService']),v(0x5,(0x0,n[_0x312fe2(0x231)])(n['LocaleService']))],F),exports[_0x312fe2(0x21b)]=d,Object[_0x312fe2(0x1a7)](exports,'MCPConfigUIController',{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x312fe2(0x1a7)](exports,_0x312fe2(0x188),{'enumerable':!0x0,'get':function(){return O;}}),exports['MCPStatusDisplay']=D,Object['defineProperty'](exports,'MCPUIMenuController',{'enumerable':!0x0,'get':function(){return M;}}),exports[_0x312fe2(0x246)]=C,Object[_0x312fe2(0x1a7)](exports,_0x312fe2(0x15d),{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x312fe2(0x17a)]=e,exports[_0x312fe2(0x148)]=t;
|
|
1
|
+
const _0x26f842=_0x3e41;(function(_0x2a3d55,_0x28a424){const _0x30355c=_0x3e41,_0x1eb6c7=_0x2a3d55();while(!![]){try{const _0x2a6b59=-parseInt(_0x30355c(0x17c))/0x1*(-parseInt(_0x30355c(0x241))/0x2)+parseInt(_0x30355c(0x217))/0x3*(parseInt(_0x30355c(0x23a))/0x4)+parseInt(_0x30355c(0x191))/0x5*(parseInt(_0x30355c(0x1d4))/0x6)+parseInt(_0x30355c(0x21f))/0x7*(-parseInt(_0x30355c(0x1d1))/0x8)+parseInt(_0x30355c(0x21d))/0x9*(parseInt(_0x30355c(0x210))/0xa)+-parseInt(_0x30355c(0x229))/0xb*(-parseInt(_0x30355c(0x221))/0xc)+-parseInt(_0x30355c(0x202))/0xd*(parseInt(_0x30355c(0x1d6))/0xe);if(_0x2a6b59===_0x28a424)break;else _0x1eb6c7['push'](_0x1eb6c7['shift']());}catch(_0x26d85d){_0x1eb6c7['push'](_0x1eb6c7['shift']());}}}(_0x2528,0x56638),Object[_0x26f842(0x193)](exports,Symbol[_0x26f842(0x18a)],{'value':'Module'}));const e=require('./locale/en-US.js'),t=require('./locale/zh-CN.js');let n=require('@univerjs/core'),r=require('@univerjs-pro/mcp'),i=require('@univerjs/design'),a=require('@univerjs/ui'),o=require('rxjs'),s=require('@univerjs/icons'),c=require('react'),l=require('react/jsx-runtime'),u=require('@univerjs/network');function d(_0x2cc193){const _0xbe7dee=_0x26f842;var _0x4e0755,_0x15ea24;let {mcpCoreConfig:_0x10e0f3,onSave:_0x21611f,loading:_0x54523e=!0x1,config:_0x5b9f8b,connectionStatus$:_0x15fe91,connectionError$:_0x50e8f6,currentApiKey$:_0x17e0b7,currentSessionId$:_0x254fc0}=_0x2cc193,_0x3b95d5=(0x0,a[_0xbe7dee(0x1e9)])(n['LocaleService']),_0x37ba1f=(0x0,a[_0xbe7dee(0x160)])(_0x15fe91,r['MCPConnectionStatus'][_0xbe7dee(0x15b)]),_0x566c8b=(0x0,a[_0xbe7dee(0x160)])(_0x50e8f6,r['MCPConnectionError']['NONE']),_0x3f236c=(0x0,a[_0xbe7dee(0x160)])(_0x254fc0,''),[_0x35ae26,_0x228dcf]=(0x0,c[_0xbe7dee(0x1fc)])((0x0,a[_0xbe7dee(0x160)])(_0x17e0b7,'')||''),_0x4284bc=_0x5b9f8b[_0xbe7dee(0x1eb)]&&_0x10e0f3[_0xbe7dee(0x1a2)]&&(_0x10e0f3[_0xbe7dee(0x1a2)][_0xbe7dee(0x255)]('univer.plus')||_0x10e0f3[_0xbe7dee(0x1a2)]['includes'](_0xbe7dee(0x1c2))),_0x9c6cc6=(_0x4e0755=_0x10e0f3[_0xbe7dee(0x1a2)])==null?void 0x0:_0x4e0755[_0xbe7dee(0x255)](_0xbe7dee(0x1a5)),_0x5ab641=(_0x15ea24=_0x10e0f3[_0xbe7dee(0x1a2)])==null?void 0x0:_0x15ea24[_0xbe7dee(0x255)](_0xbe7dee(0x1c2)),_0x1f65b8=_0x9c6cc6?'https://console.univer.plus':'https://console.univer.ai',_0x572c92=_0x5b9f8b[_0xbe7dee(0x1eb)]&&(_0x9c6cc6||_0x5ab641),[_0x16b2bb,_0x3654c2]=(0x0,c[_0xbe7dee(0x1fc)])(!_0x35ae26['trim']()),_0x40568b=(_0x5aab32,_0x2c6576)=>{const _0x32ec75=_0xbe7dee;if(_0x2c6576===r['MCPConnectionError'][_0x32ec75(0x1fd)])return _0x32ec75(0x1b7);switch(_0x5aab32){case r[_0x32ec75(0x1cd)][_0x32ec75(0x21b)]:return _0x32ec75(0x149);case r[_0x32ec75(0x1cd)][_0x32ec75(0x250)]:case r[_0x32ec75(0x1cd)][_0x32ec75(0x242)]:return _0x32ec75(0x213);case r[_0x32ec75(0x1cd)][_0x32ec75(0x197)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x32ec75(0x16f);}},_0x52d9c5=(_0x51657f,_0x4b8e13)=>{const _0x4a8a10=_0xbe7dee;if(_0x4b8e13===r['MCPConnectionError']['UNAUTHORIZED'])return _0x4a8a10(0x186);switch(_0x51657f){case r['MCPConnectionStatus'][_0x4a8a10(0x21b)]:return _0x4a8a10(0x215);case r[_0x4a8a10(0x1cd)][_0x4a8a10(0x250)]:case r['MCPConnectionStatus'][_0x4a8a10(0x242)]:return _0x4a8a10(0x172);case r[_0x4a8a10(0x1cd)][_0x4a8a10(0x197)]:return'univer-bg-red-500';default:return _0x4a8a10(0x25b);}},_0x51abce=_0x5e65c9=>{const _0x13e617=_0xbe7dee;switch(_0x5e65c9){case r['MCPConnectionStatus'][_0x13e617(0x21b)]:return _0x3b95d5['t'](_0x13e617(0x157));case r[_0x13e617(0x1cd)][_0x13e617(0x250)]:return _0x3b95d5['t'](_0x13e617(0x175));case r[_0x13e617(0x1cd)][_0x13e617(0x197)]:return _0x3b95d5['t'](_0x13e617(0x22a));case r[_0x13e617(0x1cd)][_0x13e617(0x242)]:return _0x3b95d5['t'](_0x13e617(0x192));default:return _0x3b95d5['t'](_0x13e617(0x1f0));}},_0x4afa7a=_0x1373db=>{const _0x4f3bac=_0xbe7dee;switch(_0x1373db){case r[_0x4f3bac(0x179)]['UNAUTHORIZED']:return _0x3b95d5['t'](_0x4f3bac(0x1cf));case r[_0x4f3bac(0x179)][_0x4f3bac(0x1c7)]:return _0x3b95d5['t']('mcpConfig.connectionError.sessionOccupied');case r[_0x4f3bac(0x179)][_0x4f3bac(0x169)]:return _0x3b95d5['t'](_0x4f3bac(0x25e));case r['MCPConnectionError'][_0x4f3bac(0x209)]:return _0x3b95d5['t'](_0x4f3bac(0x198));default:return'';}},_0x470bf1=(0x0,c[_0xbe7dee(0x20d)])(()=>{_0x21611f({..._0x10e0f3,'apiKey':_0x35ae26['trim'](),'enableAuth':!0x0});},[_0x10e0f3,_0x35ae26,!0x0,_0x21611f]),_0x923e74=_0x35ae26['trim']()['length']>0x0;return(0x0,l[_0xbe7dee(0x16a)])('div',{'className':_0xbe7dee(0x16c),'children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x146),'children':(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x19c),{'className':'univer-text-white','children':'⚙'})}),(0x0,l[_0xbe7dee(0x243)])('div',{'children':(0x0,l[_0xbe7dee(0x243)])('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x3b95d5['t'](_0xbe7dee(0x19f))})})]})}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x214),'children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':(0x0,i[_0xbe7dee(0x19b)])(_0xbe7dee(0x1fe),_0x40568b(_0x37ba1f,_0x566c8b)),'children':(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x1dc),'children':[(0x0,l[_0xbe7dee(0x243)])('div',{'className':(0x0,i['clsx'])(_0xbe7dee(0x1c9),_0x52d9c5(_0x37ba1f,_0x566c8b))}),(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x19c),{'className':'univer-text-sm\x20univer-font-medium','children':_0x51abce(_0x37ba1f)})]})}),_0x566c8b!==r[_0xbe7dee(0x179)][_0xbe7dee(0x19a)]&&(_0x37ba1f===r['MCPConnectionStatus']['FAILED']||_0x566c8b===r['MCPConnectionError'][_0xbe7dee(0x1fd)])&&(0x0,l['jsx'])(_0xbe7dee(0x1ca),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':(0x0,l['jsxs'])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x253),'children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x19c),{'className':_0xbe7dee(0x21e),'children':'⚠️'}),(0x0,l[_0xbe7dee(0x243)])('p',{'className':_0xbe7dee(0x23c),'children':_0x4afa7a(_0x566c8b)})]})})]}),(0x0,l['jsx'])('div',{'className':_0xbe7dee(0x1ee),'children':(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x252),'children':[(0x0,l[_0xbe7dee(0x16a)])('div',{'className':_0xbe7dee(0x151),'children':[(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x257),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[(0x0,l[_0xbe7dee(0x243)])('span',{'children':'🔑'}),'\x20',_0x3b95d5['t'](_0xbe7dee(0x1fa)),(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x19c),{'className':_0xbe7dee(0x148),'children':'*'}),_0x4284bc&&(0x0,l[_0xbe7dee(0x243)])('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x3b95d5['t']('mcpConfig.apiApplyInfo.title'),'role':_0xbe7dee(0x168),'onClick':()=>_0x3654c2(!0x0),'children':(0x0,l[_0xbe7dee(0x243)])(s[_0xbe7dee(0x205)],{})})]}),(0x0,l[_0xbe7dee(0x243)])(i[_0xbe7dee(0x163)],{'type':_0xbe7dee(0x1d2),'placeholder':_0x3b95d5['t'](_0xbe7dee(0x231)),'value':_0x35ae26,'disabled':_0x54523e,'autoComplete':_0xbe7dee(0x156),'onChange':_0x228dcf}),(0x0,l[_0xbe7dee(0x243)])('p',{'className':_0xbe7dee(0x23e),'children':_0x3b95d5['t']('mcpConfig.apiKeyHint')})]}),_0x4284bc&&_0x16b2bb&&(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x235),'children':[(0x0,l[_0xbe7dee(0x243)])('a',{'className':_0xbe7dee(0x24a),'role':'button','onClick':()=>_0x3654c2(!0x1),'children':(0x0,l[_0xbe7dee(0x243)])(s[_0xbe7dee(0x212)],{'className':_0xbe7dee(0x196)})}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x150),'children':[(0x0,l['jsx'])('div',{'className':_0xbe7dee(0x1dd),'children':(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x19c),{'className':_0xbe7dee(0x206),'children':'🚀'})}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x14f),'children':[(0x0,l[_0xbe7dee(0x243)])('h4',{'className':_0xbe7dee(0x25d),'children':_0x3b95d5['t'](_0xbe7dee(0x18b))}),(0x0,l[_0xbe7dee(0x243)])('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x3b95d5['t'](_0xbe7dee(0x1d9))}),(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x22b),'children':_0x572c92&&(0x0,l[_0xbe7dee(0x16a)])('a',{'className':_0xbe7dee(0x20e),'href':_0x1f65b8,'target':_0xbe7dee(0x16e),'rel':_0xbe7dee(0x1c1),'children':[(0x0,l['jsx'])('span',{'children':'🤖'}),_0x3b95d5['t'](_0xbe7dee(0x17f)),(0x0,l['jsx'])(_0xbe7dee(0x19c),{'className':_0xbe7dee(0x24e),'children':'↗'})]})}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x1f3),'children':['✨','\x20',_0x3b95d5['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x5b9f8b['showDeveloperTools']&&(0x0,l[_0xbe7dee(0x16a)])('div',{'className':_0xbe7dee(0x170),'children':[(0x0,l[_0xbe7dee(0x16a)])('h4',{'className':_0xbe7dee(0x207),'children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x19c),{'children':'🔗'}),'\x20',_0x3b95d5['t'](_0xbe7dee(0x237))]}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x20f),'children':[(0x0,l['jsxs'])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x240),'children':[(0x0,l[_0xbe7dee(0x243)])('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x3b95d5['t']('mcpConfig.configInstructions')}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':'univer-space-y-2','children':[(0x0,l['jsx'])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x1a9),'children':_0x3b95d5['t'](_0xbe7dee(0x1da))}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x176),'children':[(0x0,l['jsxs'])('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,l['jsx'])('span',{'className':_0xbe7dee(0x1db),'children':'1'}),_0x3b95d5['t'](_0xbe7dee(0x249))]}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x1dc),'children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x19c),{'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':'2'}),_0x3b95d5['t'](_0xbe7dee(0x1c3))]}),(0x0,l[_0xbe7dee(0x16a)])('div',{'className':_0xbe7dee(0x1dc),'children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x19c),{'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'}),_0x3b95d5['t'](_0xbe7dee(0x1c0))]})]})]})]}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x151),'children':[(0x0,l['jsx'])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x1a9),'children':'MCP\x20Configuration'}),(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':(0x0,l['jsx'])(_0xbe7dee(0x22f),{'className':_0xbe7dee(0x25c),'children':JSON[_0xbe7dee(0x20b)]({'mcpServers':{'univer':{'url':_0xbe7dee(0x1cb)+(_0x3f236c||_0xbe7dee(0x232)),'type':'http','headers':{'Authorization':_0xbe7dee(0x1e0)+(_0x35ae26||'<API_KEY>')}}}},null,0x2)})})]}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':'univer-space-y-3','children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x1a9),'children':_0x3b95d5['t'](_0xbe7dee(0x224))}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x151),'children':[(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x22d),'children':[(0x0,l['jsx'])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x19e)}),(0x0,l[_0xbe7dee(0x16a)])('div',{'className':_0xbe7dee(0x22e),'children':[(0x0,l[_0xbe7dee(0x243)])('div',{'className':_0xbe7dee(0x1d0),'children':'univer_session_id:'}),(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3b95d5['t']('mcpConfig.sessionIdDescription')})]})]}),(0x0,l['jsxs'])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x22d),'children':[(0x0,l['jsx'])(_0xbe7dee(0x1ca),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x22e),'children':[(0x0,l[_0xbe7dee(0x243)])('div',{'className':_0xbe7dee(0x1d0),'children':_0xbe7dee(0x18f)}),(0x0,l['jsx'])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x23e),'children':_0x3b95d5['t'](_0xbe7dee(0x1b3))})]})]})]})]})]})]}),(0x0,l[_0xbe7dee(0x243)])(i[_0xbe7dee(0x244)],{'onClick':_0x470bf1,'disabled':!_0x923e74||_0x54523e,'className':_0xbe7dee(0x1f6),'children':_0x54523e?(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x19c),{'className':_0xbe7dee(0x1dc),'children':[(0x0,l[_0xbe7dee(0x243)])('span',{'children':'⟲'}),_0x3b95d5['t'](_0xbe7dee(0x15d))]}):(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x19c),{'className':_0xbe7dee(0x1dc),'children':[(0x0,l[_0xbe7dee(0x243)])(s[_0xbe7dee(0x1ec)],{}),_0x3b95d5['t'](_0xbe7dee(0x1c6))]})}),(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x1aa),'children':(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':'univer-flex\x20univer-gap-3','children':[(0x0,l[_0xbe7dee(0x243)])('span',{'className':_0xbe7dee(0x23d),'children':'💡'}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x1e8),'children':[(0x0,l[_0xbe7dee(0x243)])(_0xbe7dee(0x1ca),{'className':_0xbe7dee(0x228),'children':_0xbe7dee(0x19d)}),(0x0,l[_0xbe7dee(0x16a)])(_0xbe7dee(0x1ca),{'children':['•',_0x3b95d5['t'](_0xbe7dee(0x1bc))]}),(0x0,l[_0xbe7dee(0x16a)])('div',{'children':['•',_0x3b95d5['t']('mcpConfig.note2')]})]})]})})]})})]});}const f='mcp-ui.config',p={'showDeveloperTools':!0x1,'showStatus':!0x0};function m(_0x4c12dd){'@babel/helpers - typeof';const _0x38d9a2=_0x26f842;return m=typeof Symbol==_0x38d9a2(0x17e)&&typeof Symbol['iterator']==_0x38d9a2(0x24b)?function(_0x3ec52f){return typeof _0x3ec52f;}:function(_0x5c824f){const _0x19a191=_0x38d9a2;return _0x5c824f&&typeof Symbol==_0x19a191(0x17e)&&_0x5c824f[_0x19a191(0x211)]===Symbol&&_0x5c824f!==Symbol[_0x19a191(0x194)]?'symbol':typeof _0x5c824f;},m(_0x4c12dd);}function h(_0x55d8ce,_0x38119b){const _0xb75304=_0x26f842;if(m(_0x55d8ce)!=_0xb75304(0x223)||!_0x55d8ce)return _0x55d8ce;var _0x378ca4=_0x55d8ce[Symbol['toPrimitive']];if(_0x378ca4!==void 0x0){var _0x407fca=_0x378ca4[_0xb75304(0x1b8)](_0x55d8ce,_0x38119b||_0xb75304(0x1ba));if(m(_0x407fca)!=_0xb75304(0x223))return _0x407fca;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x38119b===_0xb75304(0x1e4)?String:Number)(_0x55d8ce);}function g(_0x336c59){const _0x46c39a=_0x26f842;var _0x360461=h(_0x336c59,_0x46c39a(0x1e4));return m(_0x360461)==_0x46c39a(0x24b)?_0x360461:_0x360461+'';}function _(_0x54a31b,_0x1e0619,_0xc3904e){const _0x179a35=_0x26f842;return(_0x1e0619=g(_0x1e0619))in _0x54a31b?Object[_0x179a35(0x193)](_0x54a31b,_0x1e0619,{'value':_0xc3904e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54a31b[_0x1e0619]=_0xc3904e,_0x54a31b;}function v(_0x23ae4e,_0x1518d5){return function(_0x398d6c,_0x4c6ed0){_0x1518d5(_0x398d6c,_0x4c6ed0,_0x23ae4e);};}function y(_0x581af2,_0x1d24b8,_0x5253a4,_0x63b5a0){const _0x5bca1f=_0x26f842;var _0x44b814=arguments['length'],_0x4bbad0=_0x44b814<0x3?_0x1d24b8:_0x63b5a0===null?_0x63b5a0=Object[_0x5bca1f(0x1bf)](_0x1d24b8,_0x5253a4):_0x63b5a0,_0x5189ef;if(typeof Reflect==_0x5bca1f(0x223)&&typeof Reflect[_0x5bca1f(0x1d3)]==_0x5bca1f(0x17e))_0x4bbad0=Reflect[_0x5bca1f(0x1d3)](_0x581af2,_0x1d24b8,_0x5253a4,_0x63b5a0);else{for(var _0x12f37c=_0x581af2[_0x5bca1f(0x218)]-0x1;_0x12f37c>=0x0;_0x12f37c--)(_0x5189ef=_0x581af2[_0x12f37c])&&(_0x4bbad0=(_0x44b814<0x3?_0x5189ef(_0x4bbad0):_0x44b814>0x3?_0x5189ef(_0x1d24b8,_0x5253a4,_0x4bbad0):_0x5189ef(_0x1d24b8,_0x5253a4))||_0x4bbad0);}return _0x44b814>0x3&&_0x4bbad0&&Object[_0x5bca1f(0x193)](_0x1d24b8,_0x5253a4,_0x4bbad0),_0x4bbad0;}const b=_0x26f842(0x1a0),x=_0x26f842(0x14b);let S=class extends n['Disposable']{constructor(_0x400c32,_0x2ae056,_0x401caf,_0x34765f,_0xa2f6f4,_0xa43987,_0x2f1c7f,_0x11ecb5,_0x1cfae8,_0x10d61a){const _0x55f34a=_0x26f842;super(),this[_0x55f34a(0x1bd)]=_0x400c32,this[_0x55f34a(0x15c)]=_0x2ae056,this[_0x55f34a(0x208)]=_0x401caf,this['_localStorageService']=_0x34765f,this[_0x55f34a(0x203)]=_0xa2f6f4,this[_0x55f34a(0x25a)]=_0xa43987,this[_0x55f34a(0x16b)]=_0x2f1c7f,this['_localeService']=_0x11ecb5,this['_logService']=_0x1cfae8,this['_mcpConnectionController']=_0x10d61a,_(this,'_loading$',new o['BehaviorSubject'](!0x1)),_(this,_0x55f34a(0x158),new o[(_0x55f34a(0x159))]({})),_(this,_0x55f34a(0x1d8),new o['BehaviorSubject']({})),_(this,_0x55f34a(0x154),new o[(_0x55f34a(0x159))]('')),_(this,_0x55f34a(0x181),async _0x5e913f=>{const _0x163af4=_0x55f34a;this[_0x163af4(0x1f2)]['next'](!0x0);try{var _0x307e8d,_0x5b3ab6;let _0x333f0d=await this['_validateConfig'](_0x5e913f);if(!_0x333f0d['isValid']){this[_0x163af4(0x25a)][_0x163af4(0x152)]({'type':i[_0x163af4(0x1de)][_0x163af4(0x1e2)],'content':_0x333f0d[_0x163af4(0x201)]||this['_localeService']['t'](_0x163af4(0x1b4))});return;}_0x5e913f['apiKey']?await this[_0x163af4(0x225)][_0x163af4(0x16d)](b,_0x5e913f['apiKey']['trim']()):await this[_0x163af4(0x225)][_0x163af4(0x153)](b),this[_0x163af4(0x154)][_0x163af4(0x1ff)](((_0x307e8d=_0x5e913f[_0x163af4(0x254)])==null?void 0x0:_0x307e8d[_0x163af4(0x24f)]())||''),this['_mcpConnectionController'][_0x163af4(0x147)]({'Authorization':_0x163af4(0x1e0)+((_0x5b3ab6=_0x5e913f[_0x163af4(0x254)])==null?void 0x0:_0x5b3ab6[_0x163af4(0x24f)]())}),this[_0x163af4(0x25a)][_0x163af4(0x152)]({'type':i[_0x163af4(0x1de)][_0x163af4(0x195)],'content':this[_0x163af4(0x1a3)]['t'](_0x163af4(0x245))}),setTimeout(()=>{const _0x4283eb=_0x163af4;this[_0x4283eb(0x203)]['close'](x);},0x320);}catch(_0x2a83ba){this[_0x163af4(0x236)][_0x163af4(0x1a7)](_0x163af4(0x1b0),_0x2a83ba),this[_0x163af4(0x25a)][_0x163af4(0x152)]({'type':i['MessageType'][_0x163af4(0x1e2)],'content':this[_0x163af4(0x1a3)]['t'](_0x163af4(0x1f8))});}finally{this[_0x163af4(0x1f2)]['next'](!0x1);}}),this['_initConfigSync'](),this[_0x55f34a(0x15f)](),this[_0x55f34a(0x183)]();}[_0x26f842(0x1e7)](){const _0x3c292c=_0x26f842;let _0x38d7df=this[_0x3c292c(0x208)][_0x3c292c(0x238)](f);_0x38d7df!=null&&_0x38d7df[_0x3c292c(0x1eb)]&&this['_dialogService'][_0x3c292c(0x256)]({'id':x,'title':{'title':this[_0x3c292c(0x1a3)]['t'](_0x3c292c(0x258))},'children':{'label':_0x3c292c(0x1f9)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x512004=_0x3c292c;this['_dialogService'][_0x512004(0x171)](x);}});}[_0x26f842(0x17d)](){const _0x1e03f2=_0x26f842;return this[_0x1e03f2(0x158)][_0x1e03f2(0x1f7)];}[_0x26f842(0x183)](){const _0x5559fa=_0x26f842;this[_0x5559fa(0x14d)](this[_0x5559fa(0x16b)][_0x5559fa(0x14e)](_0x5559fa(0x1f9),this[_0x5559fa(0x178)]()));}['_createConfigPanelComponent'](){const _0x588fcb=_0x26f842;return(0x0,a[_0x588fcb(0x22c)])(()=>{const _0x270db5=_0x588fcb;var _0x44b081,_0x3283d3,_0x71a3e2;return(0x0,l[_0x270db5(0x243)])(d,{'config':this[_0x270db5(0x1d8)][_0x270db5(0x1f7)],'mcpCoreConfig':this[_0x270db5(0x158)]['value'],'currentApiKey$':this[_0x270db5(0x154)],'onSave':this['_handleConfigSave'],'loading':this[_0x270db5(0x1f2)]['value'],'connectionStatus$':(_0x44b081=this[_0x270db5(0x25f)])==null?void 0x0:_0x44b081[_0x270db5(0x17a)],'connectionError$':(_0x3283d3=this[_0x270db5(0x25f)])==null?void 0x0:_0x3283d3[_0x270db5(0x166)],'currentSessionId$':(_0x71a3e2=this[_0x270db5(0x25f)])==null?void 0x0:_0x71a3e2[_0x270db5(0x1e6)]});},this['_injector']);}['_initConfigSync'](){const _0xa536af=_0x26f842;this[_0xa536af(0x14d)](this[_0xa536af(0x208)][_0xa536af(0x180)](r[_0xa536af(0x1a4)])[_0xa536af(0x18e)](_0x378c00=>{const _0x24e7f4=_0xa536af;this[_0x24e7f4(0x158)]['next'](_0x378c00||{});}));let _0xd6e444=this[_0xa536af(0x208)]['getConfig'](r[_0xa536af(0x1a4)]);this[_0xa536af(0x158)][_0xa536af(0x1ff)](_0xd6e444||{}),this['disposeWithMe'](this[_0xa536af(0x208)][_0xa536af(0x180)](f)[_0xa536af(0x18e)](_0x4e0b08=>{const _0x1bee32=_0xa536af;this[_0x1bee32(0x1d8)]['next'](_0x4e0b08||{});}));let _0x576159=this[_0xa536af(0x208)][_0xa536af(0x238)](f);this[_0xa536af(0x1d8)][_0xa536af(0x1ff)](_0x576159||{});}async['_loadStoredApiKey'](){const _0x524891=_0x26f842;let _0xcc7f53=this[_0x524891(0x208)]['getConfig'](f);if(!(_0xcc7f53!=null&&_0xcc7f53[_0x524891(0x1eb)]))return;let _0x21adf5=await this[_0x524891(0x225)][_0x524891(0x174)](b);_0x21adf5&&(this[_0x524891(0x25f)][_0x524891(0x147)]({'Authorization':'Bearer\x20'+_0x21adf5}),this[_0x524891(0x154)][_0x524891(0x1ff)](_0x21adf5));}async['_validateConfig'](_0x22f0ff){const _0x4e65d5=_0x26f842;if(!_0x22f0ff[_0x4e65d5(0x254)]||_0x22f0ff[_0x4e65d5(0x254)]['trim']()[_0x4e65d5(0x218)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x4e65d5(0x1a3)]['t'](_0x4e65d5(0x248))};if(_0x22f0ff['apiKey'][_0x4e65d5(0x24f)]()[_0x4e65d5(0x218)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4e65d5(0x1a3)]['t'](_0x4e65d5(0x222))};try{let _0x54db8e=await this['_injector'][_0x4e65d5(0x165)](r['MCPConnectionController'])[_0x4e65d5(0x177)](_0x22f0ff[_0x4e65d5(0x254)][_0x4e65d5(0x24f)]());return _0x54db8e[_0x4e65d5(0x1f4)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x54db8e[_0x4e65d5(0x1a7)]||this[_0x4e65d5(0x1a3)]['t'](_0x4e65d5(0x188))};}catch(_0x2f8ae0){return console[_0x4e65d5(0x24d)](_0x4e65d5(0x182),_0x2f8ae0),{'isValid':!0x0};}}};S=y([v(0x0,(0x0,n[_0x26f842(0x1b9)])(n[_0x26f842(0x1af)])),v(0x1,a['IUIPartsService']),v(0x2,n[_0x26f842(0x18d)]),v(0x3,n[_0x26f842(0x20c)]),v(0x4,a[_0x26f842(0x1e3)]),v(0x5,a[_0x26f842(0x1b6)]),v(0x6,(0x0,n[_0x26f842(0x1b9)])(a[_0x26f842(0x24c)])),v(0x7,(0x0,n[_0x26f842(0x1b9)])(n['LocaleService'])),v(0x8,n[_0x26f842(0x1ae)]),v(0x9,(0x0,n[_0x26f842(0x1b9)])(r[_0x26f842(0x1e1)]))],S);const C={'id':_0x26f842(0x173),'type':n[_0x26f842(0x239)]['COMMAND'],'handler':async(_0x43cda9,_0x5cfc70)=>(_0x43cda9[_0x26f842(0x165)](S)[_0x26f842(0x1e7)](),!0x0)};function w(_0x24511e,_0x474624){const _0x12395f=_0x26f842;switch(_0x24511e){case r[_0x12395f(0x1cd)][_0x12395f(0x15b)]:return _0x12395f(0x1c4);case r[_0x12395f(0x1cd)][_0x12395f(0x250)]:return _0x12395f(0x220);case r['MCPConnectionStatus'][_0x12395f(0x21b)]:return'mcpStatus.connected';case r[_0x12395f(0x1cd)]['FAILED']:switch(_0x474624){case r[_0x12395f(0x179)][_0x12395f(0x1fd)]:return _0x12395f(0x1b2);case r[_0x12395f(0x179)][_0x12395f(0x1c7)]:return _0x12395f(0x189);case r[_0x12395f(0x179)][_0x12395f(0x169)]:return _0x12395f(0x233);case r['MCPConnectionError'][_0x12395f(0x209)]:return _0x12395f(0x1b1);default:return _0x12395f(0x1f5);}case r[_0x12395f(0x1cd)][_0x12395f(0x242)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function T(_0x2b2558,_0x37871c,_0xfeafce,_0x5a1036=!0x0){const _0x146bfe=_0x26f842;let _0x486ab8=w(_0x2b2558,_0x37871c),_0x1f9f31=_0xfeafce['t'](_0x486ab8);return _0x5a1036?_0x2b2558===r['MCPConnectionStatus'][_0x146bfe(0x15b)]&&_0x37871c===r['MCPConnectionError'][_0x146bfe(0x1fd)]?_0x1f9f31+_0x146bfe(0x227)+_0xfeafce['t'](_0x146bfe(0x21c)):_0x2b2558===r[_0x146bfe(0x1cd)][_0x146bfe(0x21b)]?''+_0x1f9f31:_0x2b2558===r[_0x146bfe(0x1cd)][_0x146bfe(0x15b)]||_0x2b2558===r[_0x146bfe(0x1cd)]['FAILED']?_0x1f9f31+'\x20-\x20'+_0xfeafce['t'](_0x146bfe(0x185)):_0x1f9f31:_0x1f9f31;}function _0x2528(){const _0x397b62=['UniverMCPPlugin','NONE','clsx','span','Configuration\x20Notes:','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.description','mcp.apiKey','showStatus','mcpServerUrl','_localeService','MCP_PLUGIN_CONFIG_KEY','univer.plus','MCPStatusDisplay','error','_initializeMenus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MenuIcon','has','pluginName','ILogService','Injector','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpStatus.maxRetriesExceeded','mcpStatus.unauthorized','mcpConfig.authorizationDescription','mcpConfig.validation.invalidConfig','LocaleService','IMessageService','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','call','Inject','default','MCP_UI_PLUGIN','mcpConfig.note1','_injector','_initializeCommands','getOwnPropertyDescriptor','mcpConfig.configStep3','noopener\x20noreferrer','univer.ai','mcpConfig.configStep2','mcpStatus.disconnected','@univerjs-pro/mcp-ui','mcpConfig.save','SESSION_ID_OCCUPIED','BUTTON','univer-size-2\x20univer-rounded-full','div','https://mcp.univer.ai/mcp/?univer_session_id=','Disposable','MCPConnectionStatus','merge','mcpConfig.connectionError.unauthorized','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','465032LXJDiK','text','decorate','258TuTvyP','_connectionController','42mqPTxo','_commandService','_config$','mcpConfig.apiApplyInfo.description','mcpConfig.configStepTitle','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-flex\x20univer-items-center\x20univer-gap-2','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','MessageType','_handleConfigure','Bearer\x20','MCPConnectionController','Error','IDialogService','string','_initAutoConnect','sessionId$','showConfigPanel','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','useDependency','univer-cursor-pointer\x20hover:univer-opacity-80','showDeveloperTools','CheckMarkIcon','MCPUIMenuController','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mergeMenu','mcpConfig.connectionStatus.disconnected','MenuItemType','_loading$','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','isValid','mcpStatus.failed','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','value','mcpConfig.configError','MCPConfigPanel','mcpConfig.apiKey','add','useState','UNAUTHORIZED','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','next','univer-text-yellow-500','errorMessage','2956369kPAxIO','_dialogService','push','HelpIcon','univer-text-blue-600','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_configService','MAX_RETRIES_EXCEEDED','HEADER_MENU','stringify','ILocalStorageService','useCallback','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','univer-space-y-4','3440810XdKkhz','constructor','CloseIcon','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-bg-green-500','WebSocketService','139143HSLEYL','length','registerCommand','IMenuManagerService','CONNECTED','mcpStatus.clickToConfigure','9AvRZYD','univer-shrink-0\x20univer-text-red-500','42mGRzTz','mcpStatus.connecting','132GEhkOR','mcpConfig.validation.apiKeyTooShort','object','mcpConfig.configParameters','_localStorageService','version','\x20-\x20','univer-font-medium','538285dptyzC','mcpConfig.connectionStatus.failed','univer-flex\x20univer-flex-wrap\x20univer-gap-2','connectInjector','univer-flex\x20univer-items-start\x20univer-gap-3','univer-min-w-0\x20univer-flex-1','pre','_menuManagerService','mcpConfig.apiKeyPlaceholder','<SESSION_ID>','mcpStatus.networkError','_config','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','_logService','mcpConfig.connectionInfo','getConfig','CommandType','8joEfQq','OffLineIcon','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-shrink-0\x20univer-text-blue-500','univer-text-xs\x20univer-text-gray-500','forEach','univer-space-y-3','264422oWKFcn','RETRYING','jsx','Button','mcpConfig.configSaved','UniverMCPUIPlugin','univer-text-gray-500','mcpConfig.validation.apiKeyRequired','mcpConfig.configStep1','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','symbol','ComponentManager','warn','univer-text-gray-400','trim','CONNECTING','ISocketService','univer-space-y-5','univer-flex\x20univer-items-start\x20univer-gap-2','apiKey','includes','open','label','mcpConfig.title','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_messageService','univer-bg-gray-500','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.connectionError.networkError','_mcpConnectionController','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','__setCustomHeaders','univer-text-red-500','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_initStatusComponent','mcp-config-dialog','univer-mr-2\x20univer-flex\x20univer-text-xl','disposeWithMe','register','univer-flex-1','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-space-y-2','show','removeItem','_apiKey$','1.0.0-alpha.1','off','mcpConfig.connectionStatus.connected','_mcpCoreConfig$','BehaviorSubject','ICommandService','DISCONNECTED','_uiPartsService','mcpConfig.saving','enUS','_loadStoredApiKey','useObservable','bottom','OnLineIcon','Input','univer-flex\x20univer-items-center','get','connectionError$','MCPConfigUIController','button','NETWORK_ERROR','jsxs','_componentManager','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','setItem','_blank','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','close','univer-bg-blue-500','mcp-ui.command.openConfigPanel','getItem','mcpConfig.connectionStatus.connecting','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','validateApiKey','_createConfigPanelComponent','MCPConnectionError','connectionStatus$','enableAutoConnect','1QdILJv','getCurrentConfig','function','mcpConfig.apiApplyInfo.univerAiLabel','subscribeConfigValue$','_handleConfigSave','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_registerComponent','registerComponent','mcpStatus.clickToConnect','univer-bg-red-500','BuiltInUIPart','mcpConfig.validation.invalidApiKey','mcpStatus.sessionOccupied','toStringTag','mcpConfig.apiApplyInfo.title','onStarting','IConfigService','subscribe','Authorization:','Plugin','32270EptsEU','mcpConfig.connectionStatus.retrying','defineProperty','prototype','Success','univer-size-4','FAILED','mcpConfig.connectionError.maxRetriesExceeded'];_0x2528=function(){return _0x397b62;};return _0x2528();}function E(_0x4e8cea){const _0x580d86=_0x26f842;switch(_0x4e8cea){case r['MCPConnectionStatus'][_0x580d86(0x21b)]:return'univer-text-green-500';case r['MCPConnectionStatus']['CONNECTING']:case r[_0x580d86(0x1cd)]['RETRYING']:return _0x580d86(0x200);case r[_0x580d86(0x1cd)][_0x580d86(0x197)]:case r['MCPConnectionStatus'][_0x580d86(0x15b)]:return _0x580d86(0x148);default:return _0x580d86(0x247);}}function D(_0x10116e){const _0x245df1=_0x26f842;let {status$:_0x425027,error$:_0x5f5bd4,onConfigure:_0x1c19a0,showClickable:_0x4ff345=!0x0}=_0x10116e,_0x5af774=(0x0,a[_0x245df1(0x160)])(_0x425027,r[_0x245df1(0x1cd)][_0x245df1(0x15b)]),_0x2b7d83=(0x0,a[_0x245df1(0x160)])(_0x5f5bd4,r[_0x245df1(0x179)]['NONE']),_0x122196=(0x0,a['useDependency'])(n['LocaleService']),_0x565870=_0x5af774===r['MCPConnectionStatus'][_0x245df1(0x21b)];_0x5af774===r['MCPConnectionStatus'][_0x245df1(0x250)]||r['MCPConnectionStatus'][_0x245df1(0x242)];let _0x10238e=_0x122196['t'](w(_0x5af774,_0x2b7d83)),_0x30e6b6=T(_0x5af774,_0x2b7d83,_0x122196,_0x4ff345),_0x192f47=E(_0x5af774),_0x2a1e2d=_0x565870?(0x0,l[_0x245df1(0x243)])(s[_0x245df1(0x162)],{}):(0x0,l[_0x245df1(0x243)])(s[_0x245df1(0x23b)],{}),_0x5224e4=(0x0,c[_0x245df1(0x20d)])(()=>{_0x4ff345&&_0x1c19a0&&_0x1c19a0();},[_0x4ff345,_0x1c19a0]);function _0x3a5d60(){const _0x156051=_0x245df1;return(0x0,l[_0x156051(0x16a)])('div',{'className':(0x0,i[_0x156051(0x19b)])(_0x156051(0x164),_0x4ff345&&_0x1c19a0&&_0x156051(0x1ea)),'role':'button','onClick':_0x4ff345&&_0x1c19a0?_0x5224e4:void 0x0,'children':[(0x0,l[_0x156051(0x243)])(_0x156051(0x1ca),{'className':(0x0,i[_0x156051(0x19b)])(_0x156051(0x14c),_0x192f47),'children':_0x2a1e2d}),(0x0,l[_0x156051(0x243)])(_0x156051(0x1ca),{'className':_0x156051(0x259),'children':_0x10238e})]});}return(0x0,l['jsx'])(i['Tooltip'],{'title':_0x30e6b6,'placement':_0x245df1(0x161),'children':_0x3a5d60()});}let O=class extends n[_0x26f842(0x1cc)]{constructor(_0x50da42,_0x4b6b90,_0x593296,_0x1fc6f8){const _0x6a2c74=_0x26f842;super(),this[_0x6a2c74(0x1bd)]=_0x50da42,this[_0x6a2c74(0x1d5)]=_0x4b6b90,this[_0x6a2c74(0x15c)]=_0x593296,this[_0x6a2c74(0x208)]=_0x1fc6f8,this[_0x6a2c74(0x1e5)](),this[_0x6a2c74(0x14a)]();}[_0x26f842(0x1e5)](){const _0xd02120=_0x26f842;let _0x38e002=this[_0xd02120(0x208)][_0xd02120(0x238)](f);_0x38e002!=null&&_0x38e002[_0xd02120(0x1eb)]&&(this[_0xd02120(0x1d5)][_0xd02120(0x17b)]=!0x1);}[_0x26f842(0x14a)](){const _0x5bd1cf=_0x26f842;let _0x3cc435=this[_0x5bd1cf(0x208)][_0x5bd1cf(0x238)](f);(_0x3cc435==null?void 0x0:_0x3cc435[_0x5bd1cf(0x1a1)])!==!0x1&&this[_0x5bd1cf(0x14d)](this[_0x5bd1cf(0x15c)][_0x5bd1cf(0x184)](a[_0x5bd1cf(0x187)][_0x5bd1cf(0x20a)],()=>{const _0x24f048=_0x5bd1cf;var _0x2bf4a3;return(0x0,a[_0x24f048(0x22c)])(k({'status$':this[_0x24f048(0x1d5)][_0x24f048(0x17a)],'error$':this[_0x24f048(0x1d5)][_0x24f048(0x166)],'onConfigure':()=>this[_0x24f048(0x1df)](),'showClickable':(_0x2bf4a3=_0x3cc435==null?void 0x0:_0x3cc435[_0x24f048(0x1eb)])==null?!0x1:_0x2bf4a3}),this[_0x24f048(0x1bd)]);}));}[_0x26f842(0x1df)](){const _0x3bed9c=_0x26f842;this['_injector'][_0x3bed9c(0x165)](S)['showConfigPanel']();}};function _0x3e41(_0x5b9284,_0x475383){_0x5b9284=_0x5b9284-0x146;const _0x25281f=_0x2528();let _0x3e41bf=_0x25281f[_0x5b9284];return _0x3e41bf;}O=y([v(0x0,(0x0,n[_0x26f842(0x1b9)])(n[_0x26f842(0x1af)])),v(0x1,(0x0,n[_0x26f842(0x1b9)])(r['MCPConnectionController'])),v(0x2,a['IUIPartsService']),v(0x3,n['IConfigService'])],O);function k(_0x4ba266){let {status$:_0x4cc6ea,error$:_0x107ac0,onConfigure:_0x36e8d1,showClickable:_0x56f64b}=_0x4ba266;return function(){const _0x563667=_0x3e41;return(0x0,l[_0x563667(0x243)])(D,{'status$':_0x4cc6ea,'error$':_0x107ac0,'onConfigure':_0x36e8d1,'showClickable':_0x56f64b});};}function A(_0x2e1828){const _0xaaf57b=_0x26f842;return{'id':C['id'],'type':a[_0xaaf57b(0x1f1)][_0xaaf57b(0x1c8)],'icon':_0xaaf57b(0x1ab),'title':_0xaaf57b(0x258),'tooltip':_0xaaf57b(0x258)};}const j={[a['RibbonStartGroup']['OTHERS']]:{[C['id']]:{'order':0xa,'menuItemFactory':A}}};let M=class extends n[_0x26f842(0x1cc)]{constructor(_0x2ee27f,_0x134938){const _0x5e83c1=_0x26f842;super(),this['_commandService']=_0x2ee27f,this[_0x5e83c1(0x230)]=_0x134938,this[_0x5e83c1(0x1be)](),this[_0x5e83c1(0x1a8)]();}['_initializeCommands'](){const _0x39a70b=_0x26f842;[C][_0x39a70b(0x23f)](_0x5a314d=>{const _0x3992de=_0x39a70b;this['disposeWithMe'](this[_0x3992de(0x1d7)][_0x3992de(0x219)](_0x5a314d));});}['_initializeMenus'](){const _0x1f735c=_0x26f842;this['_menuManagerService'][_0x1f735c(0x1ef)](j);}};M=y([v(0x0,n[_0x26f842(0x15a)]),v(0x1,a[_0x26f842(0x21a)])],M);var N=_0x26f842(0x1c5),P=_0x26f842(0x155);let F=class extends n[_0x26f842(0x190)]{constructor(_0xaa5f05=p,_0x4ebf25,_0x2b383c,_0x39a5a1,_0x5e522f,_0x1c232c){const _0x6949d2=_0x26f842;super(),this[_0x6949d2(0x234)]=_0xaa5f05,this[_0x6949d2(0x1bd)]=_0x4ebf25,this[_0x6949d2(0x208)]=_0x2b383c,this['_uiPartsService']=_0x39a5a1,this[_0x6949d2(0x225)]=_0x5e522f,this[_0x6949d2(0x1a3)]=_0x1c232c;let {..._0xaa9565}=(0x0,n[_0x6949d2(0x1ce)])({},p,this[_0x6949d2(0x234)]);this[_0x6949d2(0x208)]['setConfig'](f,_0xaa9565);}async[_0x26f842(0x18c)](){const _0x446a31=_0x26f842;let _0x4e023d=[[O],[S],[M]];this[_0x446a31(0x1bd)][_0x446a31(0x1ac)](u[_0x446a31(0x251)])||_0x4e023d[_0x446a31(0x204)]([u['ISocketService'],{'useClass':u[_0x446a31(0x216)]}]),_0x4e023d[_0x446a31(0x23f)](_0x396e10=>this[_0x446a31(0x1bd)][_0x446a31(0x1fb)](_0x396e10)),this[_0x446a31(0x1bd)][_0x446a31(0x165)](O),this[_0x446a31(0x1bd)][_0x446a31(0x165)](S),this[_0x446a31(0x1bd)][_0x446a31(0x165)](M);}};_(F,_0x26f842(0x1ad),_0x26f842(0x1bb)),_(F,'packageName',N),_(F,_0x26f842(0x226),P),F=y([(0x0,n['DependentOn'])(r[_0x26f842(0x199)]),v(0x1,(0x0,n[_0x26f842(0x1b9)])(n[_0x26f842(0x1af)])),v(0x2,n[_0x26f842(0x18d)]),v(0x3,a['IUIPartsService']),v(0x4,n[_0x26f842(0x20c)]),v(0x5,(0x0,n[_0x26f842(0x1b9)])(n[_0x26f842(0x1b5)]))],F),exports['MCPConfigPanel']=d,Object['defineProperty'](exports,_0x26f842(0x167),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x26f842(0x193)](exports,'MCPConnectionUIController',{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x26f842(0x1a6)]=D,Object[_0x26f842(0x193)](exports,_0x26f842(0x1ed),{'enumerable':!0x0,'get':function(){return M;}}),exports['OpenMCPConfigPanelCommand']=C,Object[_0x26f842(0x193)](exports,_0x26f842(0x246),{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x26f842(0x15e)]=e,exports['zhCN']=t;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3be766=_0x4d15;function _0x4d15(_0x54a184,_0x686994){_0x54a184=_0x54a184-0xfa;const _0x22f4ac=_0x22f4();let _0x4d15c8=_0x22f4ac[_0x54a184];return _0x4d15c8;}(function(_0x43b29e,_0x466c26){const _0x23bd93=_0x4d15,_0x57e0ac=_0x43b29e();while(!![]){try{const _0x4c748e=parseInt(_0x23bd93(0xff))/0x1+-parseInt(_0x23bd93(0x101))/0x2+-parseInt(_0x23bd93(0x103))/0x3*(-parseInt(_0x23bd93(0x102))/0x4)+-parseInt(_0x23bd93(0x100))/0x5*(-parseInt(_0x23bd93(0x104))/0x6)+-parseInt(_0x23bd93(0xfc))/0x7+parseInt(_0x23bd93(0xfe))/0x8*(parseInt(_0x23bd93(0xfd))/0x9)+-parseInt(_0x23bd93(0xfb))/0xa;if(_0x4c748e===_0x466c26)break;else _0x57e0ac['push'](_0x57e0ac['shift']());}catch(_0x36e4de){_0x57e0ac['push'](_0x57e0ac['shift']());}}}(_0x22f4,0xa305a));function _0x22f4(){const _0xac6dd6=['2715gMZJBE','958340oXMXoA','1162588anuCRr','3kyfdQn','8898qZoNsB','exports','11564240eYCnHD','4470991yMVApg','9mEkbPL','10124408uisTCO','580578zSjPPs'];_0x22f4=function(){return _0xac6dd6;};return _0x22f4();}const e=require('./en-US.js');module[_0x3be766(0xfa)]=e;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x3aac(_0x3d1370,_0x3e5d6f){_0x3d1370=_0x3d1370-0x1be;const _0x47a1b9=_0x47a1();let _0x3aac7f=_0x47a1b9[_0x3d1370];return _0x3aac7f;}const _0x5bff4f=_0x3aac;(function(_0x3937fe,_0x4b3b6b){const _0x2970e3=_0x3aac,_0x25d867=_0x3937fe();while(!![]){try{const _0x35a740=-parseInt(_0x2970e3(0x1e1))/0x1*(parseInt(_0x2970e3(0x1d5))/0x2)+-parseInt(_0x2970e3(0x1d3))/0x3+parseInt(_0x2970e3(0x1d9))/0x4+parseInt(_0x2970e3(0x1d7))/0x5+parseInt(_0x2970e3(0x1d1))/0x6*(-parseInt(_0x2970e3(0x1de))/0x7)+-parseInt(_0x2970e3(0x1e0))/0x8*(parseInt(_0x2970e3(0x1bf))/0x9)+-parseInt(_0x2970e3(0x1e6))/0xa*(-parseInt(_0x2970e3(0x1e9))/0xb);if(_0x35a740===_0x4b3b6b)break;else _0x25d867['push'](_0x25d867['shift']());}catch(_0x38647d){_0x25d867['push'](_0x25d867['shift']());}}}(_0x47a1,0x84b4f));const e={'mcpStatus':{'disconnected':_0x5bff4f(0x1c2),'connecting':'MCP\x20Connecting...','connected':_0x5bff4f(0x1d4),'failed':'MCP\x20Connection\x20Failed','retrying':_0x5bff4f(0x1d0),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5bff4f(0x1d8),'clickToConfigure':_0x5bff4f(0x1ca)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5bff4f(0x1d2),'apiKey':_0x5bff4f(0x1cb),'apiKeyPlaceholder':_0x5bff4f(0x1c8),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x5bff4f(0x1e5),'configInstructions':_0x5bff4f(0x1c0),'configStepTitle':_0x5bff4f(0x1cf),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5bff4f(0x1df),'configStep3':_0x5bff4f(0x1c3),'sessionId':_0x5bff4f(0x1d6),'sessionIdDescription':_0x5bff4f(0x1dc),'authorizationDescription':_0x5bff4f(0x1e8),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x5bff4f(0x1c7),'save':_0x5bff4f(0x1c5),'saving':_0x5bff4f(0x1e7),'note1':_0x5bff4f(0x1ea),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5bff4f(0x1cc),'description':_0x5bff4f(0x1ce),'univerAiLabel':_0x5bff4f(0x1cd),'getStarted':_0x5bff4f(0x1db)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5bff4f(0x1c6),'invalidConfig':_0x5bff4f(0x1da),'invalidApiKey':_0x5bff4f(0x1dd)},'connectionStatus':{'disconnected':_0x5bff4f(0x1e4),'connecting':_0x5bff4f(0x1e3),'connected':_0x5bff4f(0x1c4),'failed':'Connection\x20Failed','retrying':_0x5bff4f(0x1e2)},'connectionError':{'unauthorized':_0x5bff4f(0x1c9),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5bff4f(0x1be),'maxRetriesExceeded':_0x5bff4f(0x1c1)}}};module['exports']=e;function _0x47a1(){const _0x1d6a3f=['Enter\x20your\x20API\x20key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','API\x20Key','What\x20is\x20API\x20Key?','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.','Configuration\x20Steps:','MCP\x20Retrying...','132906YwzlqN','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','1497699zXnTXA','MCP\x20Connected','86074uNACyr','Session\x20ID','341410fAdpLh','Click\x20to\x20connect\x20MCP','836860gItFrx','Invalid\x20configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','70HaJFNH','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1312520PJOJME','6TwJfYp','Retrying...','Connecting...','Disconnected','MCP\x20Client\x20Configuration','102190whqBCz','Saving...','API\x20key\x20with\x20Bearer\x20prefix.','1870oDIQoE','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','27PmbWFJ','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Disconnected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connected','Save\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Max\x20Retries'];_0x47a1=function(){return _0x1d6a3f;};return _0x47a1();}
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4ba9(_0x341799,_0x168672){_0x341799=_0x341799-0x1ea;const _0x42afa7=_0x42af();let _0x4ba901=_0x42afa7[_0x341799];return _0x4ba901;}const _0x350f4b=_0x4ba9;(function(_0x32057f,_0x2c09c5){const _0x100d6e=_0x4ba9,_0x4e2969=_0x32057f();while(!![]){try{const _0x4b7da7=-parseInt(_0x100d6e(0x1f1))/0x1*(parseInt(_0x100d6e(0x1ea))/0x2)+-parseInt(_0x100d6e(0x1eb))/0x3*(parseInt(_0x100d6e(0x1ec))/0x4)+parseInt(_0x100d6e(0x1ef))/0x5+-parseInt(_0x100d6e(0x1f4))/0x6*(parseInt(_0x100d6e(0x1f5))/0x7)+-parseInt(_0x100d6e(0x1f2))/0x8+parseInt(_0x100d6e(0x1ed))/0x9+-parseInt(_0x100d6e(0x1f0))/0xa*(-parseInt(_0x100d6e(0x1ee))/0xb);if(_0x4b7da7===_0x2c09c5)break;else _0x4e2969['push'](_0x4e2969['shift']());}catch(_0x567816){_0x4e2969['push'](_0x4e2969['shift']());}}}(_0x42af,0x54320));function _0x42af(){const _0x5acd0e=['310256AQwnmN','exports','6XGSAdF','75474zlBZjR','4MdcrPN','3hgxCZK','1283188sFKnHy','6177933JwzeWL','76395XHeUAK','435895XwmWyo','690KDkgNa','268798VjYSAt'];_0x42af=function(){return _0x5acd0e;};return _0x42af();}const e=require('./en-US.js');module[_0x350f4b(0x1f3)]=e;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1ebed1=_0x1945;function _0x1945(_0x29b002,_0x335c2d){_0x29b002=_0x29b002-0xf9;const _0x27a95c=_0x27a9();let _0x19452c=_0x27a95c[_0x29b002];return _0x19452c;}(function(_0x418884,_0x2fd043){const _0x2d8845=_0x1945,_0x21cf35=_0x418884();while(!![]){try{const _0x53b543=parseInt(_0x2d8845(0xfc))/0x1*(parseInt(_0x2d8845(0xfd))/0x2)+parseInt(_0x2d8845(0xfe))/0x3+parseInt(_0x2d8845(0xfb))/0x4+-parseInt(_0x2d8845(0x100))/0x5+parseInt(_0x2d8845(0x103))/0x6+-parseInt(_0x2d8845(0x102))/0x7*(parseInt(_0x2d8845(0xfa))/0x8)+-parseInt(_0x2d8845(0xf9))/0x9*(parseInt(_0x2d8845(0xff))/0xa);if(_0x53b543===_0x2fd043)break;else _0x21cf35['push'](_0x21cf35['shift']());}catch(_0x34f357){_0x21cf35['push'](_0x21cf35['shift']());}}}(_0x27a9,0xf3fdc));function _0x27a9(){const _0xc18b37=['1656qNGHIj','1274068UwedBp','765724HCADVB','2YtrzYg','4920939arrdYL','10ThdlPX','6631105KKfrYB','exports','30611IOFSmD','4170564vPWmdS','1699452CLVsdg'];_0x27a9=function(){return _0xc18b37;};return _0x27a9();}const e=require('./en-US.js');module[_0x1ebed1(0x101)]=e;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d8f0e,_0x4ba119){const _0x448d1c=_0x3d1f,_0x31a947=_0x2d8f0e();while(!![]){try{const _0x44f6ae=-parseInt(_0x448d1c(0x11c))/0x1+-parseInt(_0x448d1c(0x11b))/0x2+-parseInt(_0x448d1c(0x11f))/0x3*(-parseInt(_0x448d1c(0x121))/0x4)+-parseInt(_0x448d1c(0x123))/0x5+parseInt(_0x448d1c(0x11d))/0x6+parseInt(_0x448d1c(0x120))/0x7*(-parseInt(_0x448d1c(0x122))/0x8)+parseInt(_0x448d1c(0x11e))/0x9;if(_0x44f6ae===_0x4ba119)break;else _0x31a947['push'](_0x31a947['shift']());}catch(_0x45b061){_0x31a947['push'](_0x31a947['shift']());}}}(_0x137a,0xa4e41));const e=require('./en-US.js');module['exports']=e;function _0x3d1f(_0xcedf7d,_0x821383){_0xcedf7d=_0xcedf7d-0x11b;const _0x137ac5=_0x137a();let _0x3d1f4a=_0x137ac5[_0xcedf7d];return _0x3d1f4a;}function _0x137a(){const _0x563a5e=['658428QnDUOE','714743hKseev','2877318KuKWmR','18968022thUJaM','18kpHdxt','3376163OmEVcp','533328FznpIB','8FBiriR','5927220zbhfek'];_0x137a=function(){return _0x563a5e;};return _0x137a();}
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x9210(_0x273592,_0x222554){_0x273592=_0x273592-0x173;const _0x57e004=_0x57e0();let _0x9210e3=_0x57e004[_0x273592];return _0x9210e3;}function _0x57e0(){const _0x18d045=['未接続','Bearerプレフィックス付きのAPIキー。','MCP:\x20最大再試行回数を超過','接続失敗','7077816nGhRsl','接続済み','MCP設定','クリックしてMCPを設定','APIキーは必須です','45115rYusPK','Univer\x20AIコンソール','894HSvvGf','MCP\x20接続中...','設定の保存に失敗しました','APIキーを入力してください','接続中...','MCP\x20未接続','41804hJPWRq','MCPクライアント設定','393575JQZoRd','MCP\x20接続済み','MCP:\x20認証されていません','MCPクライアントの設定に次の設定を追加してください:','APIキー','セッションIDが現在使用中です。後でもう一度お試しください','MCPを設定してAIでスプレッドシートを操作','13831112XSPatC','APIキーとは?','MCPクライアントの設定ファイルに設定を追加','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','認証に失敗しました。APIキーを確認してください','MCP\x20接続失敗','最大再試行回数','18635058IYYiOt','設定が正常に保存されました','保存中...','APIキーはローカルストレージに安全に保存されます','MCP:\x20セッションIDが使用中','APIキーはこのブラウザのローカルに保存されます','ネットワーク接続エラー。インターネット接続を確認してください','3aGujIN','3784394fIzIXX','セキュアな接続のために認証を有効にする','APIキーは10文字以上である必要があります','MCPクライアントを再起動して設定を適用','MCP:\x20ネットワークエラー','クリックしてMCPに接続','無効な設定'];_0x57e0=function(){return _0x18d045;};return _0x57e0();}const _0x735238=_0x9210;(function(_0x4002b4,_0x5430a5){const _0x34cb13=_0x9210,_0x420900=_0x4002b4();while(!![]){try{const _0x19127d=-parseInt(_0x34cb13(0x176))/0x1+-parseInt(_0x34cb13(0x18c))/0x2*(-parseInt(_0x34cb13(0x18b))/0x3)+-parseInt(_0x34cb13(0x197))/0x4+parseInt(_0x34cb13(0x19c))/0x5+-parseInt(_0x34cb13(0x19e))/0x6*(-parseInt(_0x34cb13(0x174))/0x7)+-parseInt(_0x34cb13(0x17d))/0x8+parseInt(_0x34cb13(0x184))/0x9;if(_0x19127d===_0x5430a5)break;else _0x420900['push'](_0x420900['shift']());}catch(_0x4d91de){_0x420900['push'](_0x420900['shift']());}}}(_0x57e0,0xecbdc));const e={'mcpStatus':{'disconnected':_0x735238(0x173),'connecting':_0x735238(0x19f),'connected':_0x735238(0x177),'failed':_0x735238(0x182),'retrying':'MCP\x20再試行中...','unknown':'MCP\x20不明な状態','unauthorized':_0x735238(0x178),'sessionOccupied':_0x735238(0x188),'networkError':_0x735238(0x190),'maxRetriesExceeded':_0x735238(0x195),'clickToConnect':_0x735238(0x191),'clickToConfigure':_0x735238(0x19a)},'mcpConfig':{'title':_0x735238(0x199),'description':_0x735238(0x17c),'apiKey':_0x735238(0x17a),'apiKeyPlaceholder':_0x735238(0x1a1),'apiKeyHint':_0x735238(0x189),'enableAuth':'認証を有効にする','enableAuthHint':_0x735238(0x18d),'connectionInfo':'MCPクライアント設定','mcpClientConfig':_0x735238(0x175),'configInstructions':_0x735238(0x179),'configStepTitle':'設定手順:','configStep1':'以下のJSON設定をコピー','configStep2':_0x735238(0x17f),'configStep3':_0x735238(0x18f),'sessionId':'セッションID','sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':_0x735238(0x194),'configParameters':'設定パラメータ:','maxRetries':_0x735238(0x183),'save':'設定を保存','saving':_0x735238(0x186),'note1':'設定の変更は直ちに有効になります','note2':_0x735238(0x187),'configSaved':_0x735238(0x185),'configError':_0x735238(0x1a0),'apiApplyInfo':{'title':_0x735238(0x17e),'description':_0x735238(0x180),'univerAiLabel':_0x735238(0x19d),'getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x735238(0x19b),'apiKeyTooShort':_0x735238(0x18e),'invalidConfig':_0x735238(0x192),'invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':_0x735238(0x193),'connecting':_0x735238(0x1a2),'connected':_0x735238(0x198),'failed':_0x735238(0x196),'retrying':'再試行中...'},'connectionError':{'unauthorized':_0x735238(0x181),'sessionOccupied':_0x735238(0x17b),'networkError':_0x735238(0x18a),'maxRetriesExceeded':'最大再試行回数を超過しました。後でもう一度お試しください'}}};module['exports']=e;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x4c5f(_0x103cf3,_0x48d2a0){_0x103cf3=_0x103cf3-0x6f;const _0x1b7f75=_0x1b7f();let _0x4c5f66=_0x1b7f75[_0x103cf3];return _0x4c5f66;}const _0x2268ca=_0x4c5f;(function(_0x40743f,_0x3d48e1){const _0x3af770=_0x4c5f,_0x484024=_0x40743f();while(!![]){try{const _0x17261c=parseInt(_0x3af770(0x9d))/0x1*(-parseInt(_0x3af770(0x85))/0x2)+-parseInt(_0x3af770(0x9f))/0x3+parseInt(_0x3af770(0xa1))/0x4+-parseInt(_0x3af770(0x95))/0x5+-parseInt(_0x3af770(0x70))/0x6+-parseInt(_0x3af770(0xa0))/0x7+parseInt(_0x3af770(0x8d))/0x8;if(_0x17261c===_0x3d48e1)break;else _0x484024['push'](_0x484024['shift']());}catch(_0x308d3f){_0x484024['push'](_0x484024['shift']());}}}(_0x1b7f,0x87f87));function _0x1b7f(){const _0xefd57e=['API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','17QbYqRz','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','588642aAxVkz','7264257pveliM','2972032hcKeyK','MCP\x20알\x20수\x20없는\x20상태','MCP\x20연결\x20중...','MCP:\x20네트워크\x20오류','exports','MCP\x20연결\x20실패','클릭하여\x20MCP\x20연결','API\x20키는\x2010자\x20이상이어야\x20합니다','486738NbGGzK','설정\x20저장','클릭하여\x20MCP\x20설정','인증\x20활성화','MCP:\x20인증되지\x20않음','연결\x20중...','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','세션\x20ID','MCP\x20클라이언트\x20설정','설정\x20저장\x20실패','재시도\x20중...','MCP\x20재시도\x20중...','Univer\x20AI\x20콘솔','설정이\x20성공적으로\x20저장되었습니다','유효하지\x20않은\x20설정','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','설정\x20매개변수:','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','아래\x20JSON\x20설정\x20복사','몇\x20초\x20만에\x20API\x20키\x20발급받기','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','38354MpTLwr','API\x20키란\x20무엇인가요?','MCP\x20연결됨','설정\x20단계:','연결됨','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','Bearer\x20접두사가\x20있는\x20API\x20키.','API\x20키는\x20필수입니다','13614080syUtJk','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','최대\x20재시도\x20횟수','MCP:\x20세션\x20ID\x20사용\x20중','MCP:\x20최대\x20재시도\x20횟수\x20초과','연결\x20끊김','연결\x20실패','1233680jXXyMO','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','MCP\x20연결\x20끊김','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','API\x20키'];_0x1b7f=function(){return _0xefd57e;};return _0x1b7f();}const e={'mcpStatus':{'disconnected':_0x2268ca(0x97),'connecting':_0x2268ca(0xa3),'connected':_0x2268ca(0x87),'failed':_0x2268ca(0xa6),'retrying':_0x2268ca(0x7b),'unknown':_0x2268ca(0xa2),'unauthorized':_0x2268ca(0x74),'sessionOccupied':_0x2268ca(0x91),'networkError':_0x2268ca(0xa4),'maxRetriesExceeded':_0x2268ca(0x92),'clickToConnect':_0x2268ca(0xa7),'clickToConfigure':_0x2268ca(0x72)},'mcpConfig':{'title':'MCP\x20설정','description':_0x2268ca(0x98),'apiKey':_0x2268ca(0x99),'apiKeyPlaceholder':'API\x20키를\x20입력하세요','apiKeyHint':_0x2268ca(0x9c),'enableAuth':_0x2268ca(0x73),'enableAuthHint':'보안\x20연결을\x20위해\x20인증\x20활성화','connectionInfo':_0x2268ca(0x78),'mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':_0x2268ca(0x81),'configStepTitle':_0x2268ca(0x88),'configStep1':_0x2268ca(0x82),'configStep2':_0x2268ca(0x96),'configStep3':_0x2268ca(0x9e),'sessionId':_0x2268ca(0x77),'sessionIdDescription':_0x2268ca(0x8f),'authorizationDescription':_0x2268ca(0x8b),'configParameters':_0x2268ca(0x80),'maxRetries':_0x2268ca(0x90),'save':_0x2268ca(0x71),'saving':'저장\x20중...','note1':_0x2268ca(0x76),'note2':_0x2268ca(0x8a),'configSaved':_0x2268ca(0x7d),'configError':_0x2268ca(0x79),'apiApplyInfo':{'title':_0x2268ca(0x86),'description':_0x2268ca(0x9a),'univerAiLabel':_0x2268ca(0x7c),'getStarted':_0x2268ca(0x83)},'validation':{'apiKeyRequired':_0x2268ca(0x8c),'apiKeyTooShort':_0x2268ca(0x6f),'invalidConfig':_0x2268ca(0x7e),'invalidApiKey':_0x2268ca(0x9b)},'connectionStatus':{'disconnected':_0x2268ca(0x93),'connecting':_0x2268ca(0x75),'connected':_0x2268ca(0x89),'failed':_0x2268ca(0x94),'retrying':_0x2268ca(0x7a)},'connectionError':{'unauthorized':'인증\x20실패.\x20API\x20키를\x20확인하세요','sessionOccupied':_0x2268ca(0x8e),'networkError':_0x2268ca(0x84),'maxRetriesExceeded':_0x2268ca(0x7f)}}};module[_0x2268ca(0xa5)]=e;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x532d37,_0x3c6119){const _0x3c19c0=_0xedc1,_0xa08810=_0x532d37();while(!![]){try{const _0x3ee2dc=parseInt(_0x3c19c0(0x131))/0x1+parseInt(_0x3c19c0(0x12d))/0x2+parseInt(_0x3c19c0(0x134))/0x3*(parseInt(_0x3c19c0(0x135))/0x4)+parseInt(_0x3c19c0(0x12e))/0x5*(parseInt(_0x3c19c0(0x132))/0x6)+-parseInt(_0x3c19c0(0x12f))/0x7*(-parseInt(_0x3c19c0(0x12c))/0x8)+parseInt(_0x3c19c0(0x136))/0x9*(parseInt(_0x3c19c0(0x130))/0xa)+-parseInt(_0x3c19c0(0x133))/0xb;if(_0x3ee2dc===_0x3c6119)break;else _0xa08810['push'](_0xa08810['shift']());}catch(_0xa40907){_0xa08810['push'](_0xa08810['shift']());}}}(_0x5a9a,0xe817b));function _0xedc1(_0x530493,_0x4fa3cd){_0x530493=_0x530493-0x12c;const _0x5a9aad=_0x5a9a();let _0xedc18=_0x5a9aad[_0x530493];return _0xedc18;}const e=require('./en-US.js');module['exports']=e;function _0x5a9a(){const _0x152c71=['906bJwTlS','53820382IaiTul','13557aiNKes','300uhXshp','456957futnja','88wuJYCp','3194958FiAjbz','13600vdfmsE','939547aITPss','320hjLrbl','395122CvZvrm'];_0x5a9a=function(){return _0x152c71;};return _0x5a9a();}
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1b644e=_0x3e5c;function _0x5c83(){const _0x553e98=['Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','Pripojenie\x20zlyhalo','API\x20kľúč\x20s\x20prefixom\x20Bearer.','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','Povoliť\x20overenie','Parametre\x20konfigurácie:','Neplatná\x20konfigurácia','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','24900930lfQQjj','Univer\x20AI\x20konzola','2784764FAQgsG','API\x20kľúč','Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','2888016QNGkRM','69564xyhfqT','Čo\x20je\x20API\x20kľúč?','MCP\x20pripojené','Uložiť\x20konfiguráciu','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','2247XsXbLv','MCP\x20odpojené','Konfigurácia\x20bola\x20úspešne\x20uložená','1290084reYPqA','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','MCP:\x20ID\x20relácie\x20je\x20obsadené','MCP:\x20Neautorizované','Konfigurácia\x20klienta\x20MCP','16792kQmvoZ','Kroky\x20konfigurácie:','ID\x20relácie','API\x20kľúč\x20je\x20povinný','MCP:\x20Sieťová\x20chyba','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','5812515BgIyjB','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','MCP\x20sa\x20pripája...','Kliknite\x20na\x20pripojenie\x20MCP','MCP:\x20Prekročený\x20počet\x20pokusov','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','MCP\x20opakuje\x20pokus...','Kliknite\x20na\x20konfiguráciu\x20MCP','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','Skúša\x20sa\x20znova...','API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','24YbVKOo','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','Konfigurácia\x20MCP'];_0x5c83=function(){return _0x553e98;};return _0x5c83();}function _0x3e5c(_0x2b2aba,_0x56fa3c){_0x2b2aba=_0x2b2aba-0x1a6;const _0x5c8332=_0x5c83();let _0x3e5c4c=_0x5c8332[_0x2b2aba];return _0x3e5c4c;}(function(_0x36b93e,_0x29709a){const _0x11a20e=_0x3e5c,_0x35e314=_0x36b93e();while(!![]){try{const _0x5d7327=parseInt(_0x11a20e(0x1ba))/0x1+parseInt(_0x11a20e(0x1ad))/0x2+parseInt(_0x11a20e(0x1b2))/0x3*(-parseInt(_0x11a20e(0x1d2))/0x4)+parseInt(_0x11a20e(0x1c6))/0x5+parseInt(_0x11a20e(0x1b1))/0x6+-parseInt(_0x11a20e(0x1b7))/0x7*(parseInt(_0x11a20e(0x1bf))/0x8)+-parseInt(_0x11a20e(0x1ab))/0x9;if(_0x5d7327===_0x29709a)break;else _0x35e314['push'](_0x35e314['shift']());}catch(_0x50a942){_0x35e314['push'](_0x35e314['shift']());}}}(_0x5c83,0xb6484));const e={'mcpStatus':{'disconnected':_0x1b644e(0x1b8),'connecting':_0x1b644e(0x1c8),'connected':_0x1b644e(0x1b4),'failed':'Pripojenie\x20MCP\x20zlyhalo','retrying':_0x1b644e(0x1cc),'unknown':'MCP\x20neznámy\x20stav','unauthorized':_0x1b644e(0x1bd),'sessionOccupied':_0x1b644e(0x1bc),'networkError':_0x1b644e(0x1c3),'maxRetriesExceeded':_0x1b644e(0x1ca),'clickToConnect':_0x1b644e(0x1c9),'clickToConfigure':_0x1b644e(0x1cd)},'mcpConfig':{'title':_0x1b644e(0x1d4),'description':_0x1b644e(0x1d3),'apiKey':_0x1b644e(0x1ae),'apiKeyPlaceholder':'Zadajte\x20svoj\x20API\x20kľúč','apiKeyHint':_0x1b644e(0x1cb),'enableAuth':_0x1b644e(0x1a7),'enableAuthHint':_0x1b644e(0x1aa),'connectionInfo':_0x1b644e(0x1be),'mcpClientConfig':_0x1b644e(0x1be),'configInstructions':_0x1b644e(0x1bb),'configStepTitle':_0x1b644e(0x1c0),'configStep1':_0x1b644e(0x1b6),'configStep2':_0x1b644e(0x1d5),'configStep3':'Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','sessionId':_0x1b644e(0x1c1),'sessionIdDescription':_0x1b644e(0x1af),'authorizationDescription':_0x1b644e(0x1d7),'configParameters':_0x1b644e(0x1a8),'maxRetries':'Maximálny\x20počet\x20pokusov','save':_0x1b644e(0x1b5),'saving':'Ukladá\x20sa...','note1':_0x1b644e(0x1ce),'note2':'Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','configSaved':_0x1b644e(0x1b9),'configError':_0x1b644e(0x1a6),'apiApplyInfo':{'title':_0x1b644e(0x1b3),'description':_0x1b644e(0x1d0),'univerAiLabel':_0x1b644e(0x1ac),'getStarted':_0x1b644e(0x1c4)},'validation':{'apiKeyRequired':_0x1b644e(0x1c2),'apiKeyTooShort':_0x1b644e(0x1d1),'invalidConfig':_0x1b644e(0x1a9),'invalidApiKey':'Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny'},'connectionStatus':{'disconnected':'Odpojené','connecting':'Pripája\x20sa...','connected':'Pripojené','failed':_0x1b644e(0x1d6),'retrying':_0x1b644e(0x1cf)},'connectionError':{'unauthorized':_0x1b644e(0x1b0),'sessionOccupied':_0x1b644e(0x1c7),'networkError':_0x1b644e(0x1c5),'maxRetriesExceeded':'Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr'}}};module['exports']=e;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x13c7b5=_0x2d81;(function(_0x3ae6cd,_0x331a3d){const _0x1f87fa=_0x2d81,_0x1f0bdc=_0x3ae6cd();while(!![]){try{const _0x170c5d=-parseInt(_0x1f87fa(0x7b))/0x1*(-parseInt(_0x1f87fa(0x68))/0x2)+-parseInt(_0x1f87fa(0x82))/0x3+-parseInt(_0x1f87fa(0x74))/0x4*(-parseInt(_0x1f87fa(0x95))/0x5)+parseInt(_0x1f87fa(0x8b))/0x6*(-parseInt(_0x1f87fa(0x67))/0x7)+-parseInt(_0x1f87fa(0x75))/0x8+parseInt(_0x1f87fa(0x8d))/0x9*(parseInt(_0x1f87fa(0x96))/0xa)+-parseInt(_0x1f87fa(0x73))/0xb;if(_0x170c5d===_0x331a3d)break;else _0x1f0bdc['push'](_0x1f0bdc['shift']());}catch(_0x457896){_0x1f0bdc['push'](_0x1f0bdc['shift']());}}}(_0x454d,0xa9810));const e={'mcpStatus':{'disconnected':_0x13c7b5(0x72),'connecting':_0x13c7b5(0x9a),'connected':'MCP\x20Đã\x20kết\x20nối','failed':_0x13c7b5(0x6d),'retrying':'MCP\x20Đang\x20thử\x20lại...','unknown':_0x13c7b5(0x76),'unauthorized':_0x13c7b5(0x94),'sessionOccupied':_0x13c7b5(0x71),'networkError':'MCP:\x20Lỗi\x20mạng','maxRetriesExceeded':'MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','clickToConnect':'Nhấp\x20để\x20kết\x20nối\x20MCP','clickToConfigure':_0x13c7b5(0x8a)},'mcpConfig':{'title':_0x13c7b5(0x85),'description':_0x13c7b5(0x6a),'apiKey':_0x13c7b5(0x6c),'apiKeyPlaceholder':'Nhập\x20khóa\x20API\x20của\x20bạn','apiKeyHint':'Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','enableAuth':_0x13c7b5(0x81),'enableAuthHint':_0x13c7b5(0x70),'connectionInfo':'Cấu\x20hình\x20máy\x20khách\x20MCP','mcpClientConfig':_0x13c7b5(0x84),'configInstructions':'Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','configStepTitle':_0x13c7b5(0x77),'configStep1':_0x13c7b5(0x97),'configStep2':_0x13c7b5(0x93),'configStep3':_0x13c7b5(0x98),'sessionId':_0x13c7b5(0x80),'sessionIdDescription':_0x13c7b5(0x86),'authorizationDescription':_0x13c7b5(0x79),'configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':_0x13c7b5(0x8c),'save':_0x13c7b5(0x6e),'saving':'Đang\x20lưu...','note1':_0x13c7b5(0x8e),'note2':_0x13c7b5(0x89),'configSaved':_0x13c7b5(0x6f),'configError':_0x13c7b5(0x88),'apiApplyInfo':{'title':_0x13c7b5(0x7f),'description':'Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','univerAiLabel':_0x13c7b5(0x7c),'getStarted':_0x13c7b5(0x83)},'validation':{'apiKeyRequired':_0x13c7b5(0x90),'apiKeyTooShort':_0x13c7b5(0x6b),'invalidConfig':_0x13c7b5(0x78),'invalidApiKey':_0x13c7b5(0x87)},'connectionStatus':{'disconnected':_0x13c7b5(0x7d),'connecting':_0x13c7b5(0x91),'connected':_0x13c7b5(0x7e),'failed':'Kết\x20nối\x20thất\x20bại','retrying':_0x13c7b5(0x92)},'connectionError':{'unauthorized':_0x13c7b5(0x8f),'sessionOccupied':_0x13c7b5(0x69),'networkError':_0x13c7b5(0x99),'maxRetriesExceeded':_0x13c7b5(0x7a)}}};function _0x2d81(_0xe85766,_0x42f64b){_0xe85766=_0xe85766-0x67;const _0x454d5e=_0x454d();let _0x2d81ab=_0x454d5e[_0xe85766];return _0x2d81ab;}module['exports']=e;function _0x454d(){const _0x1ae205=['Khóa\x20API','MCP\x20Kết\x20nối\x20thất\x20bại','Lưu\x20cấu\x20hình','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','MCP\x20Đã\x20ngắt\x20kết\x20nối','6955586SeSYSg','860ibhxWe','4447512NcecZU','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Các\x20bước\x20cấu\x20hình:','Cấu\x20hình\x20không\x20hợp\x20lệ','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','43418HjiovA','Bảng\x20điều\x20khiển\x20Univer\x20AI','Đã\x20ngắt\x20kết\x20nối','Đã\x20kết\x20nối','Khóa\x20API\x20là\x20gì?','ID\x20phiên','Bật\x20xác\x20thực','755328mUQgtG','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Cấu\x20hình\x20máy\x20khách\x20MCP','Cấu\x20hình\x20MCP','Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Lưu\x20cấu\x20hình\x20thất\x20bại','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Nhấp\x20để\x20cấu\x20hình\x20MCP','270DGnjyl','Số\x20lần\x20thử\x20lại\x20tối\x20đa','135YSOBpY','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Yêu\x20cầu\x20khóa\x20API','Đang\x20kết\x20nối...','Đang\x20thử\x20lại...','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','MCP:\x20Không\x20được\x20phép','20780CuajXd','642460tYWufG','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','MCP\x20Đang\x20kết\x20nối...','10927PBKLKE','16zmuheC','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự'];_0x454d=function(){return _0x1ae205;};return _0x454d();}
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5214(_0x55f227,_0x28285d){_0x55f227=_0x55f227-0x14c;const _0x55da51=_0x55da();let _0x521465=_0x55da51[_0x55f227];return _0x521465;}const _0x581608=_0x5214;(function(_0x2e0a37,_0xec3d3f){const _0x17a12b=_0x5214,_0x3de8dd=_0x2e0a37();while(!![]){try{const _0x375a65=parseInt(_0x17a12b(0x16f))/0x1*(-parseInt(_0x17a12b(0x14c))/0x2)+parseInt(_0x17a12b(0x158))/0x3*(-parseInt(_0x17a12b(0x15d))/0x4)+parseInt(_0x17a12b(0x176))/0x5+parseInt(_0x17a12b(0x175))/0x6+-parseInt(_0x17a12b(0x172))/0x7*(-parseInt(_0x17a12b(0x174))/0x8)+-parseInt(_0x17a12b(0x157))/0x9+-parseInt(_0x17a12b(0x14e))/0xa*(parseInt(_0x17a12b(0x164))/0xb);if(_0x375a65===_0xec3d3f)break;else _0x3de8dd['push'](_0x3de8dd['shift']());}catch(_0x41c936){_0x3de8dd['push'](_0x3de8dd['shift']());}}}(_0x55da,0x59e62));const e={'mcpStatus':{'disconnected':_0x581608(0x16c),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x581608(0x166),'retrying':_0x581608(0x169),'unknown':_0x581608(0x14f),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x581608(0x162),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x581608(0x167),'clickToConfigure':_0x581608(0x161)},'mcpConfig':{'title':_0x581608(0x15e),'description':_0x581608(0x14d),'apiKey':_0x581608(0x178),'apiKeyPlaceholder':_0x581608(0x179),'apiKeyHint':_0x581608(0x165),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x581608(0x156),'mcpClientConfig':_0x581608(0x156),'configInstructions':_0x581608(0x154),'configStepTitle':_0x581608(0x155),'configStep1':_0x581608(0x150),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x581608(0x173),'sessionId':'会话ID','sessionIdDescription':_0x581608(0x16b),'authorizationDescription':_0x581608(0x15f),'configParameters':_0x581608(0x168),'maxRetries':_0x581608(0x16a),'save':_0x581608(0x17d),'saving':_0x581608(0x16d),'note1':'配置更改将立即生效','note2':_0x581608(0x15a),'configSaved':_0x581608(0x151),'configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x581608(0x152),'univerAiLabel':_0x581608(0x15b),'getStarted':_0x581608(0x17a)},'validation':{'apiKeyRequired':_0x581608(0x15c),'apiKeyTooShort':_0x581608(0x163),'invalidConfig':_0x581608(0x160),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x581608(0x153),'connecting':_0x581608(0x177),'connected':_0x581608(0x17c),'failed':_0x581608(0x171),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x581608(0x16e),'sessionOccupied':_0x581608(0x17b),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x581608(0x170)}}};module[_0x581608(0x159)]=e;function _0x55da(){const _0x2a687a=['连接失败','3565730hujIcn','重启您的\x20MCP\x20客户端以使配置生效','8EIVvCM','4407210iskHoV','1929375JMSmyQ','连接中...','API\x20密钥','请输入您的\x20API\x20密钥','几秒钟内获取您的\x20API\x20密钥','会话\x20ID\x20已被占用,请稍后再试','已连接','保存配置','164tTwBpB','配置\x20MCP\x20使用\x20AI\x20操作电子表格','7150CRatQS','MCP\x20状态未知','复制以下\x20JSON\x20配置','配置保存成功','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','未连接','将以下配置添加到您的\x20MCP\x20客户端设置中:','配置步骤:','MCP\x20客户端配置','2151216cRIJuf','30471outAiF','exports','您的\x20API\x20密钥安全存储在本地存储中','Univer\x20AI\x20控制台','API\x20密钥不能为空','172LPlTDy','MCP\x20配置','带有\x20Bearer\x20前缀的\x20API\x20密钥。','配置无效','点击配置\x20MCP','MCP:\x20网络错误','API\x20密钥长度至少需要\x2010\x20位','671lXiuCA','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20连接失败','点击连接\x20MCP','配置参数:','MCP\x20重连中...','最大重试次数','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20已断开','保存中...','权限验证失败,请检查您的\x20API\x20密钥','6612avrPtM','超出最大重试次数,请稍后再试'];_0x55da=function(){return _0x2a687a;};return _0x55da();}
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5240(_0x489895,_0x5e6b93){_0x489895=_0x489895-0xef;const _0x5e8ba5=_0x5e8b();let _0x5240c5=_0x5e8ba5[_0x489895];return _0x5240c5;}const _0x5aba02=_0x5240;(function(_0x53996e,_0x5cce89){const _0x2ae7b1=_0x5240,_0x28b3cc=_0x53996e();while(!![]){try{const _0x4a4772=-parseInt(_0x2ae7b1(0xf0))/0x1*(parseInt(_0x2ae7b1(0xf8))/0x2)+-parseInt(_0x2ae7b1(0xf9))/0x3*(-parseInt(_0x2ae7b1(0xf5))/0x4)+parseInt(_0x2ae7b1(0xf3))/0x5+-parseInt(_0x2ae7b1(0xf4))/0x6+parseInt(_0x2ae7b1(0xf6))/0x7*(parseInt(_0x2ae7b1(0xf1))/0x8)+-parseInt(_0x2ae7b1(0xfa))/0x9*(parseInt(_0x2ae7b1(0xf7))/0xa)+-parseInt(_0x2ae7b1(0xef))/0xb*(parseInt(_0x2ae7b1(0xfb))/0xc);if(_0x4a4772===_0x5cce89)break;else _0x28b3cc['push'](_0x28b3cc['shift']());}catch(_0xbaaa06){_0x28b3cc['push'](_0x28b3cc['shift']());}}}(_0x5e8b,0x46c39));const e=require('./en-US.js');module[_0x5aba02(0xf2)]=e;function _0x5e8b(){const _0x39b638=['22SJOAhZ','2609OrZIHl','32glonxp','exports','1424995PejMiP','240396zhfyHq','4pXpHJP','899731EbTLqN','20KtkELi','358cgQMDz','536427bKngMt','402525gqfzuo','549384iYWdcE'];_0x5e8b=function(){return _0x39b638;};return _0x5e8b();}
|