@univerjs-pro/mcp-ui 0.10.12 → 0.10.13-nightly.202510290902
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/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +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/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -9
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x103721=_0x4233;(function(_0x3dcc0e,_0x56c218){var _0x39e297=_0x4233,_0x3a3131=_0x3dcc0e();while(!![]){try{var _0x3f8750=parseInt(_0x39e297(0x250))/0x1+-parseInt(_0x39e297(0x232))/0x2+-parseInt(_0x39e297(0x339))/0x3+-parseInt(_0x39e297(0x236))/0x4+-parseInt(_0x39e297(0x2d5))/0x5+-parseInt(_0x39e297(0x223))/0x6*(-parseInt(_0x39e297(0x2a0))/0x7)+parseInt(_0x39e297(0x2bb))/0x8;if(_0x3f8750===_0x56c218)break;else _0x3a3131['push'](_0x3a3131['shift']());}catch(_0x2ac2cf){_0x3a3131['push'](_0x3a3131['shift']());}}}(_0x210c,0x6f705));var we=Object[_0x103721(0x220)],Ee=(_0x13500c,_0x368a85,_0x1da4db)=>_0x368a85 in _0x13500c?we(_0x13500c,_0x368a85,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1da4db}):_0x13500c[_0x368a85]=_0x1da4db,S=(_0x4d38af,_0x4d1537,_0x1dc24c)=>Ee(_0x4d38af,typeof _0x4d1537!=_0x103721(0x2f0)?_0x4d1537+'':_0x4d1537,_0x1dc24c);import{LocaleService as _0x1cb48f,Inject as _0x2235fd,Injector as _0x40d19b,IConfigService as _0x4d3163,ILocalStorageService as _0xcab0cf,ILogService as _0x3547f4,Disposable as _0x58601d,CommandType as _0x153d32,ICommandService as _0x2dd78e,DependentOn as _0x17438e,Plugin as _0x57747f,merge as _0x16a3ed}from'@univerjs/core';import{jsxs as _0x2678b2,jsx as _0x2108d8}from'react/jsx-runtime';import{MCPConnectionStatus as _0x5cf9aa,MCPConnectionError as _0x2f0c0c,MCPConnectionController as _0x19e8d5,MCP_PLUGIN_CONFIG_KEY as _0x430f8a,UniverMCPPlugin as _0x4538b1}from'@univerjs-pro/mcp';import{Input as _0x3fb065,Button as _0x6e2211,MessageType as _0xa82ba2,Tooltip as _0x171aed,clsx as _0x3c6797}from'@univerjs/design';import{useDependency as _0x850478,useObservable as _0x2f03e5,IUIPartsService as _0x29d968,IDialogService as _0x15a5f5,IMessageService as _0x5abb6a,ComponentManager as _0x59058c,connectInjector as _0x261a19,BuiltInUIPart as _0x3172b9,MenuItemType as _0x49d67f,RibbonStartGroup as _0x1df899,IMenuManagerService as _0x193d79}from'@univerjs/ui';import{BehaviorSubject as _0x226704}from'rxjs';import{forwardRef as _0x46622c,useRef as _0x485ae7,createElement as _0x3809ab,useState as _0x19fdc5,useCallback as _0x37a6dc}from'react';import{ISocketService as _0x2e09fb,WebSocketService as _0x12b718}from'@univerjs/network';var f=function(){var _0x22e8a8=_0x103721;return f=Object[_0x22e8a8(0x308)]||function(_0x3f69b2){var _0x4109c0=_0x22e8a8;for(var _0x58aefd,_0x3ab4f6=0x1,_0x2f3aff=arguments[_0x4109c0(0x2bf)];_0x3ab4f6<_0x2f3aff;_0x3ab4f6++){_0x58aefd=arguments[_0x3ab4f6];for(var _0x390bdf in _0x58aefd)Object[_0x4109c0(0x233)][_0x4109c0(0x27a)][_0x4109c0(0x1f8)](_0x58aefd,_0x390bdf)&&(_0x3f69b2[_0x390bdf]=_0x58aefd[_0x390bdf]);}return _0x3f69b2;},f[_0x22e8a8(0x284)](this,arguments);},Ye=function(_0x5314ed,_0x1a4ea2){var _0x2b021e=_0x103721,_0x3cf48c={};for(var _0x2ae938 in _0x5314ed)Object[_0x2b021e(0x233)][_0x2b021e(0x27a)]['call'](_0x5314ed,_0x2ae938)&&_0x1a4ea2[_0x2b021e(0x245)](_0x2ae938)<0x0&&(_0x3cf48c[_0x2ae938]=_0x5314ed[_0x2ae938]);if(_0x5314ed!=null&&typeof Object[_0x2b021e(0x1f5)]=='function'){for(var _0x5ec160=0x0,_0x2ae938=Object[_0x2b021e(0x1f5)](_0x5314ed);_0x5ec160<_0x2ae938[_0x2b021e(0x2bf)];_0x5ec160++)_0x1a4ea2['indexOf'](_0x2ae938[_0x5ec160])<0x0&&Object[_0x2b021e(0x233)][_0x2b021e(0x283)][_0x2b021e(0x1f8)](_0x5314ed,_0x2ae938[_0x5ec160])&&(_0x3cf48c[_0x2ae938[_0x5ec160]]=_0x5314ed[_0x2ae938[_0x5ec160]]);}return _0x3cf48c;},w=_0x46622c(function(_0x30c01d,_0x1df286){var _0x5c8d4c=_0x103721,_0x1277cc=_0x30c01d[_0x5c8d4c(0x25a)],_0x355f1b=_0x30c01d['id'],_0x3b9612=_0x30c01d[_0x5c8d4c(0x26a)],_0xfb29f7=_0x30c01d[_0x5c8d4c(0x213)],_0x2b31cb=Ye(_0x30c01d,[_0x5c8d4c(0x25a),'id',_0x5c8d4c(0x26a),_0x5c8d4c(0x213)]),_0x5cc171='univerjs-icon\x20univerjs-icon-'[_0x5c8d4c(0x288)](_0x355f1b,'\x20')['concat'](_0x3b9612||'')[_0x5c8d4c(0x20e)](),_0x3eb49f=_0x485ae7('_'[_0x5c8d4c(0x288)](Xe()));return ue(_0x1277cc,''[_0x5c8d4c(0x288)](_0x355f1b),{'defIds':_0x1277cc['defIds'],'idSuffix':_0x3eb49f['current']},f({'ref':_0x1df286,'className':_0x5cc171},_0x2b31cb),_0xfb29f7);});function ue(_0x1f736e,_0x577423,_0x24335,_0x422718,_0x1637d4){var _0x1d1d21=_0x103721;return _0x3809ab(_0x1f736e['tag'],f(f({'key':_0x577423},Ze(_0x1f736e,_0x24335,_0x1637d4)),_0x422718),(qe(_0x1f736e,_0x24335)[_0x1d1d21(0x1f6)]||[])['map'](function(_0x3cf50e,_0x501e25){var _0x25f818=_0x1d1d21;return ue(_0x3cf50e,''[_0x25f818(0x288)](_0x577423,'-')['concat'](_0x1f736e['tag'],'-')['concat'](_0x501e25),_0x24335,void 0x0,_0x1637d4);}));}function Ze(_0x294742,_0x259017,_0x5af284){var _0x4309f0=_0x103721,_0x459650=f({},_0x294742[_0x4309f0(0x2f2)]);_0x5af284!=null&&_0x5af284[_0x4309f0(0x244)]&&_0x459650['fill']==='colorChannel1'&&(_0x459650['fill']=_0x5af284[_0x4309f0(0x244)]),_0x294742['tag']===_0x4309f0(0x327)&&_0x459650['id']&&(_0x459650['id']=_0x459650['id']+_0x259017[_0x4309f0(0x2b1)]),Object[_0x4309f0(0x2a1)](_0x459650)[_0x4309f0(0x2b5)](function(_0x5ad264){var _0x95492=_0x4309f0,_0xec1ba7=_0x5ad264[0x0],_0x11e9fa=_0x5ad264[0x1];_0xec1ba7===_0x95492(0x327)&&typeof _0x11e9fa==_0x95492(0x2e5)&&(_0x459650[_0xec1ba7]=_0x11e9fa[_0x95492(0x312)](/url\(#(.*)\)/,_0x95492(0x22e)[_0x95492(0x288)](_0x259017[_0x95492(0x2b1)],')')));});var _0x3f04b1=_0x259017[_0x4309f0(0x2e1)];return!_0x3f04b1||_0x3f04b1[_0x4309f0(0x2bf)]===0x0||(_0x294742[_0x4309f0(0x2e6)]==='use'&&_0x459650[_0x4309f0(0x22a)]&&(_0x459650[_0x4309f0(0x22a)]=_0x459650[_0x4309f0(0x22a)]+_0x259017['idSuffix']),Object[_0x4309f0(0x2a1)](_0x459650)[_0x4309f0(0x2b5)](function(_0x440f9c){var _0x1578c3=_0x4309f0,_0x1594f0=_0x440f9c[0x0],_0x56b260=_0x440f9c[0x1];typeof _0x56b260=='string'&&(_0x459650[_0x1594f0]=_0x56b260[_0x1578c3(0x312)](/url\(#(.*)\)/,_0x1578c3(0x22e)['concat'](_0x259017['idSuffix'],')')));})),_0x459650;}function qe(_0x227483,_0x1c9578){var _0x235759=_0x103721,_0x2705d3,_0x50679b=_0x1c9578[_0x235759(0x2e1)];return!_0x50679b||_0x50679b[_0x235759(0x2bf)]===0x0?_0x227483:_0x227483[_0x235759(0x2e6)]===_0x235759(0x25f)&&(!((_0x2705d3=_0x227483[_0x235759(0x1f6)])===null||_0x2705d3===void 0x0)&&_0x2705d3[_0x235759(0x2bf)])?f(f({},_0x227483),{'children':_0x227483[_0x235759(0x1f6)][_0x235759(0x209)](function(_0x591c1a){var _0x3f1232=_0x235759;return typeof _0x591c1a[_0x3f1232(0x2f2)]['id']=='string'&&_0x50679b&&_0x50679b[_0x3f1232(0x31b)](_0x591c1a[_0x3f1232(0x2f2)]['id'])?f(f({},_0x591c1a),{'attrs':f(f({},_0x591c1a[_0x3f1232(0x2f2)]),{'id':_0x591c1a['attrs']['id']+_0x1c9578[_0x3f1232(0x2b1)]})}):_0x591c1a;})}):_0x227483;}function Xe(){var _0x2871b1=_0x103721;return Math[_0x2871b1(0x2eb)]()[_0x2871b1(0x350)](0x24)['substring'](0x2,0x8);}w[_0x103721(0x1ed)]=_0x103721(0x1f4);var Je={'tag':'svg','attrs':{'xmlns':_0x103721(0x25c),'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x103721(0x351),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x103721(0x325),'clipRule':'evenodd'}}]},le=_0x46622c(function(_0x40ba22,_0x48c5aa){var _0x1930fa=_0x103721;return _0x3809ab(w,Object[_0x1930fa(0x308)]({},_0x40ba22,{'id':_0x1930fa(0x2c7),'ref':_0x48c5aa,'icon':Je}));});le['displayName']=_0x103721(0x2cc);var Qe={'tag':'svg','attrs':{'xmlns':_0x103721(0x25c),'fill':_0x103721(0x2ef),'viewBox':_0x103721(0x293),'width':'1em','height':_0x103721(0x24e)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x103721(0x28a),'strokeLinecap':_0x103721(0x34f),'strokeLinejoin':_0x103721(0x34f),'strokeWidth':1.33}},{'tag':_0x103721(0x2e0),'attrs':{'stroke':'currentColor','d':_0x103721(0x333),'strokeLinecap':_0x103721(0x34f),'strokeLinejoin':_0x103721(0x34f),'strokeWidth':1.33}}]},ve=_0x46622c(function(_0x304e7d,_0x55cdd9){var _0x4cbf3c=_0x103721;return _0x3809ab(w,Object['assign']({},_0x304e7d,{'id':_0x4cbf3c(0x2c2),'ref':_0x55cdd9,'icon':Qe}));});ve[_0x103721(0x1ed)]=_0x103721(0x29d);var en={'tag':_0x103721(0x2b2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x103721(0x295),'width':'1em','height':_0x103721(0x24e)},'children':[{'tag':_0x103721(0x2e0),'attrs':{'fill':_0x103721(0x351),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x103721(0x2e0),'attrs':{'fill':_0x103721(0x351),'d':_0x103721(0x1f1)}},{'tag':_0x103721(0x2e0),'attrs':{'fill':'currentColor','d':_0x103721(0x2d1),'fillRule':_0x103721(0x325),'clipRule':_0x103721(0x325)}}]},de=_0x46622c(function(_0x2e889c,_0x1a8fc7){var _0x3fd263=_0x103721;return _0x3809ab(w,Object[_0x3fd263(0x308)]({},_0x2e889c,{'id':_0x3fd263(0x2c5),'ref':_0x1a8fc7,'icon':en}));});de['displayName']=_0x103721(0x2cf);var nn={'tag':_0x103721(0x2b2),'attrs':{'xmlns':_0x103721(0x25c),'fill':_0x103721(0x2ef),'viewBox':'0\x200\x2016\x2016','width':_0x103721(0x24e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x103721(0x237)},'children':[{'tag':_0x103721(0x2e0),'attrs':{'stroke':_0x103721(0x351),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x103721(0x34f),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x103721(0x25f),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x103721(0x1fa)},'children':[{'tag':_0x103721(0x2e0),'attrs':{'fill':_0x103721(0x310),'d':_0x103721(0x24b)}}]}]}],'defIds':[_0x103721(0x1fa)]},fe=_0x46622c(function(_0xc03575,_0x579b25){var _0x11e7eb=_0x103721;return _0x3809ab(w,Object[_0x11e7eb(0x308)]({},_0xc03575,{'id':'off-line-icon','ref':_0x579b25,'icon':nn}));});fe[_0x103721(0x1ed)]='OffLineIcon';var rn={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x103721(0x2ef),'viewBox':_0x103721(0x2db),'width':'1em','height':_0x103721(0x24e)},'children':[{'tag':'g','attrs':{'clipPath':_0x103721(0x285)},'children':[{'tag':_0x103721(0x2e0),'attrs':{'stroke':_0x103721(0x351),'d':_0x103721(0x215),'strokeLinecap':'round','strokeLinejoin':_0x103721(0x34f),'strokeWidth':1.2}}]},{'tag':_0x103721(0x25f),'attrs':{},'children':[{'tag':_0x103721(0x31c),'attrs':{'id':_0x103721(0x2bc)},'children':[{'tag':_0x103721(0x2e0),'attrs':{'fill':_0x103721(0x310),'d':_0x103721(0x24b),'transform':_0x103721(0x294)}}]}]}],'defIds':[_0x103721(0x2bc)]},ge=_0x46622c(function(_0x2dd6d1,_0x55a8cf){var _0xa22b66=_0x103721;return _0x3809ab(w,Object[_0xa22b66(0x308)]({},_0x2dd6d1,{'id':'on-line-icon','ref':_0x55a8cf,'icon':rn}));});ge[_0x103721(0x1ed)]=_0x103721(0x23a);function _0x210c(){var _0x27b2ee=['mcpConfig.connectionError.unauthorized','NETWORK_ERROR','Enter\x20your\x20API\x20key','_localStorageService','_messageService','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','启用身份验证','mcpStatus.connecting','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-bg-blue-500','round','toString','currentColor','mcpConfig.configStep3','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','displayName','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','mcp-ui.command.openConfigPanel','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','MCP\x20已断开','MCP\x20连接失败','UniverIcon','getOwnPropertySymbols','children','univer-mr-2\x20univer-flex\x20univer-text-xl','call','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','off-line-icon_clip0_910_343','点击配置\x20MCP','_componentManager','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','bottom','_registerComponent','MAX_RETRIES_EXCEEDED','Configuration\x20Parameters:','MCP\x20Client\x20Configuration','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','\x20-\x20','API\x20密钥不能为空','mcpConfig.title','univer-text-xs\x20univer-text-gray-600','map','mcpConfig.configSaved','mcpConfig.configInstructions','mcpStatus.clickToConfigure','univer-min-w-0\x20univer-flex-1','trim','next','mcpConfig.connectionInfo','mcpConfig.apiApplyInfo.univerAiLabel','MCP\x20Unknown\x20Status','extend','univer-text-xs\x20univer-text-gray-500','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-space-y-2','mcpConfig.save','Failed\x20to\x20save\x20configuration','mcpConfig.configParameters','isValid','univer-flex-shrink-0\x20univer-text-blue-500','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_config$','_logService','MCP\x20Retrying...','defineProperty','mergeMenu','univer-flex\x20univer-flex-wrap\x20univer-gap-2','978TsTxRP','get','_uiPartsService','Retrying...','mcpConfig.validation.invalidApiKey','_localeService','超出最大重试次数,请稍后再试','xlink:href','Click\x20to\x20configure\x20MCP','register','API\x20key\x20is\x20required','url(#$1','mcpConfig.connectionStatus.disconnected','showConfigPanel','univer-flex\x20univer-items-center\x20univer-gap-3','731900ZeISDU','prototype','_config','API\x20密钥','686796WPqcdv','url(#off-line-icon_clip0_910_343)','mcpConfig.description','DISCONNECTED','OnLineIcon','Save\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-flex\x20univer-items-center\x20univer-gap-2','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_initAutoConnect','MCP\x20客户端配置','点击连接\x20MCP','NONE','mcpStatus.connected','colorChannel1','indexOf','univer-text-red-500','validateApiKey','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connection\x20Failed','已连接','M0\x200H16V16H0z','_handleConfigure','univer-text-gray-500','1em','HEADER_MENU','633372VYZNHw','Configuration\x20Steps:','_initStatusComponent','javascript:void(0)','_initializeMenus','UNAUTHORIZED','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.connectionError.networkError','open','保存中...','icon','MCP\x20重连中...','http://www.w3.org/2000/svg','univer-flex\x20univer-gap-3','value','defs','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','showDeveloperTools','_connectionController','univer-text-sm\x20univer-font-medium','mcpStatus.sessionOccupied','MCP\x20Connecting...','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','FAILED','配置更改将立即生效','connectionError$','className','_injector','重连中...','保存配置','__setCustomHeaders','API\x20密钥无效,请检查密钥是否正确','_blank','_dialogService','COMMAND','univer-text-sm\x20univer-text-gray-500','mcpConfig.connectionStatus.failed','_menuManagerService','mcpConfig.note1','https://console.univer.ai','Get\x20your\x20API\x20key\x20in\x20seconds','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','hasOwnProperty','mcpConfig.configError','apiKey','subscribe','Enable\x20Authentication','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','label','将以下配置添加到您的\x20MCP\x20客户端设置中:','Error','propertyIsEnumerable','apply','url(#on-line-icon_clip0_910_349)','off','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','concat','warn','M5.21243\x205.62036L11.8791\x2012.287','MenuIcon','_mcpConnectionController','sessionId$','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.connectionError.sessionOccupied','univer-flex-1','disposeWithMe','connectionStatus$','0\x200\x2017\x2017','translate(.97)','0\x200\x2016\x2016','RETRYING','MCP\x20状态未知','几秒钟内获取您的\x20API\x20密钥','MCP:\x20未授权','mcpConfig.saving','What\x20is\x20API\x20Key?','Authorization:','CloseSmallSingle','_commandService','_createConfigPanelComponent','1939SWaMxj','entries','Max\x20Retries','连接中...','setConfig','mcpStatus.disconnected','网络连接错误,请检查您的网络连接','重启您的\x20MCP\x20客户端以使配置生效','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpConfig.validation.invalidConfig','subscribeConfigValue$','univer-flex\x20univer-items-center','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','show','mcpStatus.clickToConnect','univer.ai','idSuffix','svg','Bearer\x20','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','forEach','Enable\x20authentication\x20for\x20secure\x20connections','mcpStatus.failed','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','API\x20key\x20with\x20Bearer\x20prefix.','has','10682768KbARHE','on-line-icon_clip0_910_349','https://console.univer.plus','MCP:\x20Max\x20Retries\x20Exceeded','length','MCPConfigPanel','MCP:\x20Session\x20ID\x20Occupied','close-small-single','mcp-ui.config','mcpConfig.connectionError.maxRetriesExceeded','help-single','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','check-mark-icon','mcpStatus.unknown','_loading$','getConfig','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','CheckMarkIcon','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-text-yellow-500','HelpSingle','_handleConfigSave','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','univer-bg-red-500','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','CONNECTING','3239510QEjCKv','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Disconnected','Configuration\x20Notes:','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','0\x200\x2017\x2016','配置无效','MCP\x20已连接','getItem','Connection\x20Failed','path','defIds','mcpConfig.apiKey','univer-text-green-500','mcpStatus.retrying','string','tag','mcp.apiKey','_mcpCoreConfig$','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpServerUrl','random','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','pre','none','symbol','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','attrs','close','Saving...','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','mcpConfig.apiKeyHint','复制以下\x20JSON\x20配置','error','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.apiApplyInfo.description','mcpConfig.sessionIdDescription','mcpConfig.connectionStatus.retrying','MCP:\x20Unauthorized','add','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.validation.apiKeyTooShort','mcpConfig.configStepTitle','univer-bg-green-500','配置保存成功','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-flex\x20univer-items-start\x20univer-gap-3','mcpConfig.configStep2','Session\x20ID','assign','配置参数:','API\x20Key','Univer\x20AI\x20控制台','OTHERS','_configService','univer-space-y-4','Connecting...','white','Copy\x20the\x20JSON\x20configuration\x20below','replace','getCurrentConfig','连接失败','CONNECTED','univer-font-medium','MCP:\x20网络错误','MCP\x20配置','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','includes','clipPath','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_loadStoredApiKey','mcpConfig.validation.apiKeyRequired','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP_UI_PLUGIN','mcpConfig.apiApplyInfo.title','您的\x20API\x20密钥安全存储在本地存储中','removeItem','evenodd','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','mask','getOwnPropertyDescriptor','univer.plus','errorMessage','配置步骤:','启用身份验证以获得安全连接','univer-text-blue-600','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','什么是\x20API\x20密钥?','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','div','最大重试次数','M5.21243\x2012.287L11.8791\x205.62036','_apiKey$','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MCP:\x20超出最大重试次数','BUTTON','SESSION_ID_OCCUPIED','1115595kYAwcW','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','univer-space-y-3','_initializeCommands','mcpConfig.apiKeyPlaceholder','API\x20密钥长度至少需要\x2010\x20位','_initConfigSync','您的\x20API\x20密钥将在此浏览器中本地存储','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','span','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600'];_0x210c=function(){return _0x27b2ee;};return _0x210c();}function tn(_0x730be2){var _0x4f7af9=_0x103721,_0x1cfad1,_0x1b3c11;const {mcpCoreConfig:_0x41186e,onSave:_0x32d938,loading:_0x1c5464=!0x1,config:_0x5e45ea,connectionStatus$:_0xf25ddb,connectionError$:_0x318888,currentApiKey$:_0x53dd1c,currentSessionId$:_0x3ba136}=_0x730be2,_0x1cb510=_0x850478(_0x1cb48f),_0x189393=_0x2f03e5(_0xf25ddb,_0x5cf9aa[_0x4f7af9(0x239)]),_0x1c0d39=_0x2f03e5(_0x318888,_0x2f0c0c[_0x4f7af9(0x242)]),_0x38d782=_0x2f03e5(_0x3ba136,''),_0x190f76=_0x2f03e5(_0x53dd1c,''),[_0x3dea7e,_0x9227c9]=_0x19fdc5(_0x190f76||''),_0x57754d=!0x0,_0x2275fe=_0x5e45ea[_0x4f7af9(0x261)]&&_0x41186e['mcpServerUrl']&&(_0x41186e[_0x4f7af9(0x2ea)][_0x4f7af9(0x31b)](_0x4f7af9(0x329))||_0x41186e['mcpServerUrl'][_0x4f7af9(0x31b)]('univer.ai')),_0x1ba57c=(_0x1cfad1=_0x41186e['mcpServerUrl'])==null?void 0x0:_0x1cfad1['includes'](_0x4f7af9(0x329)),_0x44d54e=(_0x1b3c11=_0x41186e['mcpServerUrl'])==null?void 0x0:_0x1b3c11['includes'](_0x4f7af9(0x2b0)),_0x4f549c=_0x1ba57c?_0x4f7af9(0x2bd):_0x4f7af9(0x277),_0xceadd7=_0x5e45ea[_0x4f7af9(0x261)]&&(_0x1ba57c||_0x44d54e),[_0x4a7fd4,_0x2f04f8]=_0x19fdc5(!_0x3dea7e[_0x4f7af9(0x20e)]()),_0x199131=(_0x5752d1,_0x5b4ad2)=>{var _0x4792c2=_0x4f7af9;if(_0x5b4ad2===_0x2f0c0c['UNAUTHORIZED'])return _0x4792c2(0x256);switch(_0x5752d1){case _0x5cf9aa['CONNECTED']:return _0x4792c2(0x342);case _0x5cf9aa['CONNECTING']:case _0x5cf9aa['RETRYING']:return _0x4792c2(0x34d);case _0x5cf9aa['FAILED']:return _0x4792c2(0x256);default:return _0x4792c2(0x2b4);}},_0x3190b7=(_0x1f3e48,_0xf69ec5)=>{var _0xf48682=_0x4f7af9;if(_0xf69ec5===_0x2f0c0c[_0xf48682(0x255)])return _0xf48682(0x2d2);switch(_0x1f3e48){case _0x5cf9aa[_0xf48682(0x315)]:return _0xf48682(0x302);case _0x5cf9aa[_0xf48682(0x2d4)]:case _0x5cf9aa[_0xf48682(0x296)]:return _0xf48682(0x34e);case _0x5cf9aa[_0xf48682(0x267)]:return _0xf48682(0x2d2);default:return'univer-bg-gray-500';}},_0x109887=_0x303fcb=>{var _0x348354=_0x4f7af9;switch(_0x303fcb){case _0x5cf9aa[_0x348354(0x315)]:return _0x1cb510['t']('mcpConfig.connectionStatus.connected');case _0x5cf9aa[_0x348354(0x2d4)]:return _0x1cb510['t']('mcpConfig.connectionStatus.connecting');case _0x5cf9aa[_0x348354(0x267)]:return _0x1cb510['t'](_0x348354(0x274));case _0x5cf9aa[_0x348354(0x296)]:return _0x1cb510['t'](_0x348354(0x2fc));default:return _0x1cb510['t'](_0x348354(0x22f));}},_0x29fa92=_0x4ede1b=>{var _0x13ee1f=_0x4f7af9;switch(_0x4ede1b){case _0x2f0c0c['UNAUTHORIZED']:return _0x1cb510['t'](_0x13ee1f(0x345));case _0x2f0c0c['SESSION_ID_OCCUPIED']:return _0x1cb510['t'](_0x13ee1f(0x28f));case _0x2f0c0c[_0x13ee1f(0x346)]:return _0x1cb510['t'](_0x13ee1f(0x257));case _0x2f0c0c[_0x13ee1f(0x200)]:return _0x1cb510['t'](_0x13ee1f(0x2c4));default:return'';}},_0x470188=_0x37a6dc(()=>{var _0x62492e=_0x4f7af9;const _0x286d11={..._0x41186e,'apiKey':_0x3dea7e[_0x62492e(0x20e)](),'enableAuth':_0x57754d};_0x32d938(_0x286d11);},[_0x41186e,_0x3dea7e,_0x57754d,_0x32d938]),_0x1e4c1c=_0x3dea7e[_0x4f7af9(0x20e)]()[_0x4f7af9(0x2bf)]>0x0;return _0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x28e),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2f1),'children':_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x231),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x279),'children':_0x2108d8(_0x4f7af9(0x343),{'className':'univer-text-white','children':'⚙'})}),_0x2108d8(_0x4f7af9(0x331),{'children':_0x2108d8('p',{'className':_0x4f7af9(0x273),'children':_0x1cb510['t'](_0x4f7af9(0x238))})})]})}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2f5),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x31d)+_0x199131(_0x189393,_0x1c0d39)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x2678b2(_0x4f7af9(0x331),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x341)+_0x3190b7(_0x189393,_0x1c0d39)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),_0x2108d8(_0x4f7af9(0x343),{'className':_0x4f7af9(0x263),'children':_0x109887(_0x189393)})]})}),_0x1c0d39!==_0x2f0c0c['NONE']&&(_0x189393===_0x5cf9aa[_0x4f7af9(0x267)]||_0x1c0d39===_0x2f0c0c[_0x4f7af9(0x255)])&&_0x2108d8(_0x4f7af9(0x331),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x2678b2(_0x4f7af9(0x331),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x2108d8(_0x4f7af9(0x343),{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x2108d8('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x29fa92(_0x1c0d39)})]})})]}),_0x2108d8(_0x4f7af9(0x331),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x2678b2(_0x4f7af9(0x331),{'className':'univer-space-y-5','children':[_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x216),'children':[_0x2678b2(_0x4f7af9(0x280),{'className':_0x4f7af9(0x2e9),'children':[_0x2108d8(_0x4f7af9(0x343),{'children':'🔑'}),'\x20',_0x1cb510['t'](_0x4f7af9(0x2e2)),_0x2108d8('span',{'className':_0x4f7af9(0x246),'children':'*'}),_0x2275fe&&_0x2108d8('a',{'href':_0x4f7af9(0x253),'onClick':()=>_0x2f04f8(!0x0),'className':_0x4f7af9(0x203),'title':_0x1cb510['t'](_0x4f7af9(0x322)),'children':_0x2108d8(de,{})})]}),_0x2108d8(_0x3fb065,{'type':'text','placeholder':_0x1cb510['t'](_0x4f7af9(0x33d)),'value':_0x3dea7e,'onChange':_0x9227c9,'disabled':_0x1c5464,'autoComplete':_0x4f7af9(0x286)}),_0x2108d8('p',{'className':_0x4f7af9(0x214),'children':_0x1cb510['t'](_0x4f7af9(0x2f6))})]}),_0x2275fe&&_0x4a7fd4&&_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x326),'children':[_0x2108d8('a',{'href':_0x4f7af9(0x253),'onClick':()=>_0x2f04f8(!0x1),'className':_0x4f7af9(0x1ec),'title':'Close','children':_0x2108d8(ve,{})}),_0x2678b2('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2b8),'children':_0x2108d8('span',{'className':_0x4f7af9(0x32d),'children':'🚀'})}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x290),'children':[_0x2108d8('h4',{'className':_0x4f7af9(0x1ef),'children':_0x1cb510['t'](_0x4f7af9(0x322))}),_0x2108d8('p',{'className':_0x4f7af9(0x2c6),'children':_0x1cb510['t'](_0x4f7af9(0x2fa))}),_0x2108d8('div',{'className':_0x4f7af9(0x222),'children':_0xceadd7&&_0x2678b2('a',{'href':_0x4f549c,'target':_0x4f7af9(0x270),'rel':'noopener\x20noreferrer','className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','children':[_0x2108d8(_0x4f7af9(0x343),{'children':'🤖'}),_0x1cb510['t'](_0x4f7af9(0x211)),_0x2108d8(_0x4f7af9(0x343),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2ad),'children':['✨','\x20',_0x1cb510['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x5e45ea[_0x4f7af9(0x261)]&&_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x335),'children':[_0x2678b2('h4',{'className':_0x4f7af9(0x2da),'children':[_0x2108d8('span',{'children':'🔗'}),'\x20',_0x1cb510['t'](_0x4f7af9(0x210))]}),_0x2678b2('div',{'className':_0x4f7af9(0x30e),'children':[_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x33b),'children':[_0x2108d8('p',{'className':_0x4f7af9(0x208),'children':_0x1cb510['t'](_0x4f7af9(0x20b))}),_0x2678b2(_0x4f7af9(0x331),{'className':'univer-space-y-2','children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x32e),'children':_0x1cb510['t'](_0x4f7af9(0x301))}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2ed),'children':[_0x2678b2('div',{'className':_0x4f7af9(0x23d),'children':[_0x2108d8(_0x4f7af9(0x343),{'className':_0x4f7af9(0x344),'children':'1'}),_0x1cb510['t']('mcpConfig.configStep1')]}),_0x2678b2('div',{'className':_0x4f7af9(0x23d),'children':[_0x2108d8(_0x4f7af9(0x343),{'className':_0x4f7af9(0x344),'children':'2'}),_0x1cb510['t'](_0x4f7af9(0x306))]}),_0x2678b2('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2108d8(_0x4f7af9(0x343),{'className':_0x4f7af9(0x344),'children':'3'}),_0x1cb510['t'](_0x4f7af9(0x352))]})]})]})]}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x216),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x32e),'children':'MCP\x20Configuration'}),_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x1f9),'children':_0x2108d8(_0x4f7af9(0x2ee),{'className':_0x4f7af9(0x1ee),'children':_0x4f7af9(0x2ff)+_0x38d782+_0x4f7af9(0x266)+(_0x3dea7e||'<API_KEY>')+_0x4f7af9(0x33a)})})]}),_0x2678b2('div',{'className':_0x4f7af9(0x33b),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x32e),'children':_0x1cb510['t'](_0x4f7af9(0x219))}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x216),'children':[_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x305),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2d3)}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x20d),'children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x1fd),'children':'univer_session_id:'}),_0x2108d8(_0x4f7af9(0x331),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1cb510['t'](_0x4f7af9(0x2fb))})]})]}),_0x2678b2(_0x4f7af9(0x331),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2d3)}),_0x2678b2(_0x4f7af9(0x331),{'className':_0x4f7af9(0x20d),'children':[_0x2108d8('div',{'className':_0x4f7af9(0x1fd),'children':_0x4f7af9(0x29c)}),_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x214),'children':_0x1cb510['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x2108d8(_0x6e2211,{'onClick':_0x470188,'disabled':!_0x1e4c1c||_0x1c5464,'className':_0x4f7af9(0x287),'children':_0x1c5464?_0x2678b2('span',{'className':_0x4f7af9(0x23d),'children':[_0x2108d8(_0x4f7af9(0x343),{'children':'⟲'}),_0x1cb510['t'](_0x4f7af9(0x29a))]}):_0x2678b2(_0x4f7af9(0x343),{'className':_0x4f7af9(0x23d),'children':[_0x2108d8(le,{}),_0x1cb510['t'](_0x4f7af9(0x217))]})}),_0x2108d8(_0x4f7af9(0x331),{'className':_0x4f7af9(0x2d9),'children':_0x2678b2('div',{'className':_0x4f7af9(0x25d),'children':[_0x2108d8(_0x4f7af9(0x343),{'className':_0x4f7af9(0x21b),'children':'💡'}),_0x2678b2('div',{'className':_0x4f7af9(0x2cd),'children':[_0x2108d8('div',{'className':_0x4f7af9(0x316),'children':_0x4f7af9(0x2d8)}),_0x2678b2('div',{'children':['•',_0x1cb510['t'](_0x4f7af9(0x276))]}),_0x2678b2(_0x4f7af9(0x331),{'children':['•',_0x1cb510['t']('mcpConfig.note2')]})]})]})})]})})]});}const x=_0x103721(0x2c3),re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object['getOwnPropertyDescriptor'],sn=(_0x1b9043,_0x1474db,_0xbc87df,_0xcd1c37)=>{var _0x208d26=_0x103721;for(var _0x363c58=_0xcd1c37>0x1?void 0x0:_0xcd1c37?on(_0x1474db,_0xbc87df):_0x1474db,_0x1d3df7=_0x1b9043[_0x208d26(0x2bf)]-0x1,_0x4a963e;_0x1d3df7>=0x0;_0x1d3df7--)(_0x4a963e=_0x1b9043[_0x1d3df7])&&(_0x363c58=_0x4a963e(_0x363c58)||_0x363c58);return _0x363c58;},g=(_0x42ef9c,_0x5087c7)=>(_0x269d23,_0x4224a9)=>_0x5087c7(_0x269d23,_0x4224a9,_0x42ef9c);function _0x4233(_0x132230,_0x4b7abe){var _0x210cb9=_0x210c();return _0x4233=function(_0x423350,_0x67fbc5){_0x423350=_0x423350-0x1ec;var _0x225a4e=_0x210cb9[_0x423350];return _0x225a4e;},_0x4233(_0x132230,_0x4b7abe);}const j=_0x103721(0x2e7),U='mcp-config-dialog';let I=class extends _0x58601d{constructor(_0x2c1b01,_0x3ef9e2,_0x5b6887,_0xa60970,_0x567aee,_0x2ee659,_0x96e819,_0x205fcd,_0x2dbfc5,_0x3e53b9){var _0x551e8b=_0x103721;super(),S(this,_0x551e8b(0x2c9),new _0x226704(!0x1)),S(this,_0x551e8b(0x2e8),new _0x226704({})),S(this,_0x551e8b(0x21d),new _0x226704({})),S(this,_0x551e8b(0x334),new _0x226704('')),S(this,_0x551e8b(0x2d0),async _0x5d196e=>{var _0x34d33a=_0x551e8b,_0x5e3c8e,_0x1277d1;this[_0x34d33a(0x2c9)][_0x34d33a(0x20f)](!0x0);try{const _0x3f02bf=await this['_validateConfig'](_0x5d196e);if(!_0x3f02bf[_0x34d33a(0x21a)]){this[_0x34d33a(0x349)][_0x34d33a(0x2ae)]({'type':_0xa82ba2[_0x34d33a(0x282)],'content':_0x3f02bf[_0x34d33a(0x32a)]||this['_localeService']['t'](_0x34d33a(0x2a9))});return;}_0x5d196e[_0x34d33a(0x27c)]?await this[_0x34d33a(0x348)]['setItem'](j,_0x5d196e[_0x34d33a(0x27c)]['trim']()):await this[_0x34d33a(0x348)][_0x34d33a(0x324)](j),this[_0x34d33a(0x334)][_0x34d33a(0x20f)](((_0x5e3c8e=_0x5d196e[_0x34d33a(0x27c)])==null?void 0x0:_0x5e3c8e[_0x34d33a(0x20e)]())||''),this[_0x34d33a(0x28c)][_0x34d33a(0x26e)]({'Authorization':_0x34d33a(0x2b3)+((_0x1277d1=_0x5d196e['apiKey'])==null?void 0x0:_0x1277d1[_0x34d33a(0x20e)]())}),this[_0x34d33a(0x349)][_0x34d33a(0x2ae)]({'type':_0xa82ba2['Success'],'content':this[_0x34d33a(0x228)]['t'](_0x34d33a(0x20a))}),setTimeout(()=>{var _0x5ad4bb=_0x34d33a;this[_0x5ad4bb(0x271)][_0x5ad4bb(0x2f3)](U);},0x320);}catch(_0x3844f9){this[_0x34d33a(0x21e)][_0x34d33a(0x2f8)](_0x34d33a(0x21c),_0x3844f9),this['_messageService']['show']({'type':_0xa82ba2[_0x34d33a(0x282)],'content':this['_localeService']['t'](_0x34d33a(0x27b))});}finally{this[_0x34d33a(0x2c9)]['next'](!0x1);}}),(this[_0x551e8b(0x26b)]=_0x2c1b01,this[_0x551e8b(0x225)]=_0x3ef9e2,this['_configService']=_0x5b6887,this[_0x551e8b(0x348)]=_0xa60970,this[_0x551e8b(0x271)]=_0x567aee,this['_messageService']=_0x2ee659,this[_0x551e8b(0x1fc)]=_0x96e819,this[_0x551e8b(0x228)]=_0x205fcd,this[_0x551e8b(0x21e)]=_0x2dbfc5,this[_0x551e8b(0x28c)]=_0x3e53b9,this[_0x551e8b(0x33f)](),this[_0x551e8b(0x31e)](),this['_registerComponent']());}[_0x103721(0x230)](){var _0x5cf760=_0x103721;const _0x27883e=this[_0x5cf760(0x30d)][_0x5cf760(0x2ca)](x);_0x27883e!=null&&_0x27883e[_0x5cf760(0x261)]&&this[_0x5cf760(0x271)][_0x5cf760(0x258)]({'id':U,'title':{'title':this[_0x5cf760(0x228)]['t'](_0x5cf760(0x207))},'children':{'label':_0x5cf760(0x2c0)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x485339=_0x5cf760;this[_0x485339(0x271)][_0x485339(0x2f3)](U);}});}[_0x103721(0x313)](){var _0x5120df=_0x103721;return this[_0x5120df(0x2e8)][_0x5120df(0x25e)];}[_0x103721(0x1ff)](){var _0x2d0274=_0x103721;this[_0x2d0274(0x291)](this[_0x2d0274(0x1fc)][_0x2d0274(0x22c)](_0x2d0274(0x2c0),this[_0x2d0274(0x29f)]()));}[_0x103721(0x29f)](){var _0x324467=_0x103721;return _0x261a19(()=>{var _0x461e27=_0x4233,_0x239332,_0x337998,_0xe1fe73;return _0x2108d8(tn,{'config':this[_0x461e27(0x21d)][_0x461e27(0x25e)],'mcpCoreConfig':this[_0x461e27(0x2e8)][_0x461e27(0x25e)],'currentApiKey$':this[_0x461e27(0x334)],'onSave':this[_0x461e27(0x2d0)],'loading':this[_0x461e27(0x2c9)][_0x461e27(0x25e)],'connectionStatus$':(_0x239332=this[_0x461e27(0x28c)])==null?void 0x0:_0x239332[_0x461e27(0x292)],'connectionError$':(_0x337998=this[_0x461e27(0x28c)])==null?void 0x0:_0x337998[_0x461e27(0x269)],'currentSessionId$':(_0xe1fe73=this[_0x461e27(0x28c)])==null?void 0x0:_0xe1fe73[_0x461e27(0x28d)]});},this[_0x324467(0x26b)]);}['_initConfigSync'](){var _0x309985=_0x103721;this[_0x309985(0x291)](this['_configService'][_0x309985(0x2aa)](_0x430f8a)[_0x309985(0x27d)](_0x4a4341=>{var _0x365b35=_0x309985;this[_0x365b35(0x2e8)]['next'](_0x4a4341||{});}));const _0x5eac97=this[_0x309985(0x30d)][_0x309985(0x2ca)](_0x430f8a);this['_mcpCoreConfig$'][_0x309985(0x20f)](_0x5eac97||{}),this[_0x309985(0x291)](this[_0x309985(0x30d)][_0x309985(0x2aa)](x)[_0x309985(0x27d)](_0x320887=>{var _0x4dfad5=_0x309985;this[_0x4dfad5(0x21d)]['next'](_0x320887||{});}));const _0x2926fd=this['_configService'][_0x309985(0x2ca)](x);this[_0x309985(0x21d)][_0x309985(0x20f)](_0x2926fd||{});}async['_loadStoredApiKey'](){var _0x529b2b=_0x103721;const _0x41fba6=this[_0x529b2b(0x30d)][_0x529b2b(0x2ca)](x);if(!(_0x41fba6!=null&&_0x41fba6['showDeveloperTools']))return;const _0x5e618e=await this[_0x529b2b(0x348)][_0x529b2b(0x2de)](j);_0x5e618e&&(this[_0x529b2b(0x28c)][_0x529b2b(0x26e)]({'Authorization':_0x529b2b(0x2b3)+_0x5e618e}),this[_0x529b2b(0x334)][_0x529b2b(0x20f)](_0x5e618e));}async['_validateConfig'](_0x48f4e5){var _0x30ba14=_0x103721;if(!_0x48f4e5[_0x30ba14(0x27c)]||_0x48f4e5[_0x30ba14(0x27c)][_0x30ba14(0x20e)]()[_0x30ba14(0x2bf)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x30ba14(0x31f))};if(_0x48f4e5[_0x30ba14(0x27c)]['trim']()['length']<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x30ba14(0x300))};try{const _0x4cfdd8=await this[_0x30ba14(0x26b)]['get'](_0x19e8d5)[_0x30ba14(0x247)](_0x48f4e5[_0x30ba14(0x27c)]['trim']());return _0x4cfdd8[_0x30ba14(0x21a)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4cfdd8[_0x30ba14(0x2f8)]||this[_0x30ba14(0x228)]['t'](_0x30ba14(0x227))};}catch(_0x227dee){return console[_0x30ba14(0x289)](_0x30ba14(0x330),_0x227dee),{'isValid':!0x0};}}};I=sn([g(0x0,_0x2235fd(_0x40d19b)),g(0x1,_0x29d968),g(0x2,_0x4d3163),g(0x3,_0xcab0cf),g(0x4,_0x15a5f5),g(0x5,_0x5abb6a),g(0x6,_0x2235fd(_0x59058c)),g(0x7,_0x2235fd(_0x1cb48f)),g(0x8,_0x3547f4),g(0x9,_0x2235fd(_0x19e8d5))],I);const V={'id':_0x103721(0x1f0),'type':_0x153d32[_0x103721(0x272)],'handler':async(_0x464329,_0x234637)=>(_0x464329[_0x103721(0x224)](I)['showConfigPanel'](),!0x0)};function pe(_0x2c9311,_0x474488){var _0x5c2ad5=_0x103721;switch(_0x2c9311){case _0x5cf9aa[_0x5c2ad5(0x239)]:return _0x5c2ad5(0x2a5);case _0x5cf9aa[_0x5c2ad5(0x2d4)]:return _0x5c2ad5(0x34c);case _0x5cf9aa[_0x5c2ad5(0x315)]:return _0x5c2ad5(0x243);case _0x5cf9aa['FAILED']:switch(_0x474488){case _0x2f0c0c[_0x5c2ad5(0x255)]:return'mcpStatus.unauthorized';case _0x2f0c0c[_0x5c2ad5(0x338)]:return _0x5c2ad5(0x264);case _0x2f0c0c[_0x5c2ad5(0x346)]:return'mcpStatus.networkError';case _0x2f0c0c[_0x5c2ad5(0x200)]:return'mcpStatus.maxRetriesExceeded';default:return _0x5c2ad5(0x2b7);}case _0x5cf9aa[_0x5c2ad5(0x296)]:return _0x5c2ad5(0x2e4);default:return _0x5c2ad5(0x2c8);}}function cn(_0x275b89,_0x4355dd,_0x543590,_0x42f66=!0x0){var _0x30b130=_0x103721;const _0x3641ca=pe(_0x275b89,_0x4355dd),_0x31b1d5=_0x543590['t'](_0x3641ca);return _0x42f66?_0x275b89===_0x5cf9aa[_0x30b130(0x239)]&&_0x4355dd===_0x2f0c0c[_0x30b130(0x255)]?_0x31b1d5+_0x30b130(0x205)+_0x543590['t'](_0x30b130(0x20c)):_0x275b89===_0x5cf9aa[_0x30b130(0x315)]?''+_0x31b1d5:_0x275b89===_0x5cf9aa['DISCONNECTED']||_0x275b89===_0x5cf9aa[_0x30b130(0x267)]?_0x31b1d5+'\x20-\x20'+_0x543590['t'](_0x30b130(0x2af)):_0x31b1d5:_0x31b1d5;}function an(_0x3f40f5){var _0x55c032=_0x103721;switch(_0x3f40f5){case _0x5cf9aa['CONNECTED']:return _0x55c032(0x2e3);case _0x5cf9aa[_0x55c032(0x2d4)]:case _0x5cf9aa[_0x55c032(0x296)]:return _0x55c032(0x2ce);case _0x5cf9aa['FAILED']:case _0x5cf9aa[_0x55c032(0x239)]:return _0x55c032(0x246);default:return _0x55c032(0x24d);}}function un(_0x2d2646){var _0x51d765=_0x103721;const {status$:_0x1b40fa,error$:_0x4aeabd,onConfigure:_0x3d8ac6,showClickable:_0x557bae=!0x0}=_0x2d2646,_0x43606d=_0x2f03e5(_0x1b40fa,_0x5cf9aa[_0x51d765(0x239)]),_0x54118=_0x2f03e5(_0x4aeabd,_0x2f0c0c[_0x51d765(0x242)]),_0x2408ff=_0x850478(_0x1cb48f),_0x4b84ab=_0x43606d===_0x5cf9aa[_0x51d765(0x315)];_0x43606d===_0x5cf9aa[_0x51d765(0x2d4)]||_0x5cf9aa[_0x51d765(0x296)];const _0x3b7e40=_0x2408ff['t'](pe(_0x43606d,_0x54118)),_0x2af719=cn(_0x43606d,_0x54118,_0x2408ff,_0x557bae),_0x3ee373=an(_0x43606d),_0x3a85c1=_0x4b84ab?_0x2108d8(ge,{}):_0x2108d8(fe,{}),_0x25278c=_0x37a6dc(()=>{_0x557bae&&_0x3d8ac6&&_0x3d8ac6();},[_0x557bae,_0x3d8ac6]);function _0x58aa13(){var _0x4dced0=_0x51d765;return _0x2678b2(_0x4dced0(0x331),{'className':_0x3c6797(_0x4dced0(0x2ab),_0x557bae&&_0x3d8ac6&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'onClick':_0x557bae&&_0x3d8ac6?_0x25278c:void 0x0,'children':[_0x2108d8(_0x4dced0(0x331),{'className':_0x3c6797(_0x4dced0(0x1f7),_0x3ee373),'children':_0x3a85c1}),_0x2108d8(_0x4dced0(0x331),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3b7e40})]});}return _0x2108d8(_0x171aed,{'title':_0x2af719,'placement':_0x51d765(0x1fe),'children':_0x58aa13()});}var ln=Object['getOwnPropertyDescriptor'],vn=(_0x2b0a68,_0x1c9261,_0x2e11ef,_0x118b03)=>{for(var _0x572838=_0x118b03>0x1?void 0x0:_0x118b03?ln(_0x1c9261,_0x2e11ef):_0x1c9261,_0x4af9c8=_0x2b0a68['length']-0x1,_0xb7d619;_0x4af9c8>=0x0;_0x4af9c8--)(_0xb7d619=_0x2b0a68[_0x4af9c8])&&(_0x572838=_0xb7d619(_0x572838)||_0x572838);return _0x572838;},A=(_0x1ee585,_0x3d4d1e)=>(_0x1d38cc,_0x7de9a9)=>_0x3d4d1e(_0x1d38cc,_0x7de9a9,_0x1ee585);let O=class extends _0x58601d{constructor(_0xfea851,_0x172c1f,_0x29773c,_0x5e3cf6){var _0x50c510=_0x103721;super(),this['_injector']=_0xfea851,this['_connectionController']=_0x172c1f,this[_0x50c510(0x225)]=_0x29773c,this[_0x50c510(0x30d)]=_0x5e3cf6,this[_0x50c510(0x23f)](),this[_0x50c510(0x252)]();}[_0x103721(0x23f)](){var _0x3b292c=_0x103721;const _0x475196=this[_0x3b292c(0x30d)][_0x3b292c(0x2ca)](x);_0x475196!=null&&_0x475196['showDeveloperTools']&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x103721(0x252)](){var _0xd805d1=_0x103721;const _0x411ba3=this['_configService'][_0xd805d1(0x2ca)](x);(_0x411ba3==null?void 0x0:_0x411ba3['showStatus'])!==!0x1&&this['disposeWithMe'](this[_0xd805d1(0x225)]['registerComponent'](_0x3172b9[_0xd805d1(0x24f)],()=>{var _0x3aed0c=_0xd805d1,_0x40d9f5;return _0x261a19(dn({'status$':this[_0x3aed0c(0x262)]['connectionStatus$'],'error$':this['_connectionController'][_0x3aed0c(0x269)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x40d9f5=_0x411ba3==null?void 0x0:_0x411ba3[_0x3aed0c(0x261)])!=null?_0x40d9f5:!0x1}),this[_0x3aed0c(0x26b)]);}));}[_0x103721(0x24c)](){var _0x4996ff=_0x103721;this[_0x4996ff(0x26b)][_0x4996ff(0x224)](I)[_0x4996ff(0x230)]();}};O=vn([A(0x0,_0x2235fd(_0x40d19b)),A(0x1,_0x2235fd(_0x19e8d5)),A(0x2,_0x29d968),A(0x3,_0x4d3163)],O);function dn(_0x321229){const {status$:_0x196c83,error$:_0x511b73,onConfigure:_0x1a5137,showClickable:_0x11ec3d}=_0x321229;return function(){return _0x2108d8(un,{'status$':_0x196c83,'error$':_0x511b73,'onConfigure':_0x1a5137,'showClickable':_0x11ec3d});};}function fn(_0x24a618){var _0x418f0e=_0x103721;return{'id':V['id'],'type':_0x49d67f[_0x418f0e(0x337)],'icon':_0x418f0e(0x28b),'title':_0x418f0e(0x207),'tooltip':_0x418f0e(0x207)};}const gn={[_0x1df899[_0x103721(0x30c)]]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};var pn=Object['getOwnPropertyDescriptor'],hn=(_0x28b50b,_0x309707,_0x9f7b93,_0x30fd7b)=>{var _0x46cd0e=_0x103721;for(var _0x3b18b9=_0x30fd7b>0x1?void 0x0:_0x30fd7b?pn(_0x309707,_0x9f7b93):_0x309707,_0xc5488b=_0x28b50b[_0x46cd0e(0x2bf)]-0x1,_0x4d74da;_0xc5488b>=0x0;_0xc5488b--)(_0x4d74da=_0x28b50b[_0xc5488b])&&(_0x3b18b9=_0x4d74da(_0x3b18b9)||_0x3b18b9);return _0x3b18b9;},te=(_0x5b2968,_0x1d24b3)=>(_0x3a9c74,_0x1c3465)=>_0x1d24b3(_0x3a9c74,_0x1c3465,_0x5b2968);let k=class extends _0x58601d{constructor(_0x4832e4,_0x2e7da2){var _0x49f1c2=_0x103721;super(),this[_0x49f1c2(0x29e)]=_0x4832e4,this[_0x49f1c2(0x275)]=_0x2e7da2,this['_initializeCommands'](),this[_0x49f1c2(0x254)]();}[_0x103721(0x33c)](){[V]['forEach'](_0x459f3b=>{var _0x40615b=_0x4233;this[_0x40615b(0x291)](this['_commandService']['registerCommand'](_0x459f3b));});}['_initializeMenus'](){var _0xba67ac=_0x103721;this[_0xba67ac(0x275)][_0xba67ac(0x221)](gn);}};k=hn([te(0x0,_0x2dd78e),te(0x1,_0x193d79)],k);const On={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x103721(0x265),'connected':'MCP\x20Connected','failed':_0x103721(0x249),'retrying':_0x103721(0x21f),'unknown':_0x103721(0x212),'unauthorized':_0x103721(0x2fd),'sessionOccupied':_0x103721(0x2c1),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x103721(0x2be),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x103721(0x22b)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x103721(0x260),'apiKey':_0x103721(0x30a),'apiKeyPlaceholder':_0x103721(0x347),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x103721(0x27e),'enableAuthHint':_0x103721(0x2b6),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x103721(0x202),'configInstructions':_0x103721(0x319),'configStepTitle':_0x103721(0x251),'configStep1':_0x103721(0x311),'configStep2':_0x103721(0x248),'configStep3':_0x103721(0x2cb),'sessionId':_0x103721(0x307),'sessionIdDescription':_0x103721(0x2a8),'authorizationDescription':_0x103721(0x2b9),'configParameters':_0x103721(0x201),'maxRetries':_0x103721(0x2a2),'save':_0x103721(0x23b),'saving':_0x103721(0x2f4),'note1':_0x103721(0x304),'note2':_0x103721(0x204),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x103721(0x218),'apiApplyInfo':{'title':_0x103721(0x29b),'description':_0x103721(0x23e),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x103721(0x278)},'validation':{'apiKeyRequired':_0x103721(0x22d),'apiKeyTooShort':_0x103721(0x23c),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x103721(0x2d7),'connecting':_0x103721(0x30f),'connected':'Connected','failed':_0x103721(0x2df),'retrying':_0x103721(0x226)},'connectionError':{'unauthorized':_0x103721(0x34a),'sessionOccupied':_0x103721(0x2ec),'networkError':_0x103721(0x27f),'maxRetriesExceeded':_0x103721(0x320)}}},kn={'mcpStatus':{'disconnected':_0x103721(0x1f2),'connecting':'MCP\x20连接中...','connected':_0x103721(0x2dd),'failed':_0x103721(0x1f3),'retrying':_0x103721(0x25b),'unknown':_0x103721(0x297),'unauthorized':_0x103721(0x299),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x103721(0x317),'maxRetriesExceeded':_0x103721(0x336),'clickToConnect':_0x103721(0x241),'clickToConfigure':_0x103721(0x1fb)},'mcpConfig':{'title':_0x103721(0x318),'description':_0x103721(0x2d6),'apiKey':_0x103721(0x235),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x103721(0x340),'enableAuth':_0x103721(0x34b),'enableAuthHint':_0x103721(0x32c),'connectionInfo':_0x103721(0x240),'mcpClientConfig':_0x103721(0x240),'configInstructions':_0x103721(0x281),'configStepTitle':_0x103721(0x32b),'configStep1':_0x103721(0x2f7),'configStep2':_0x103721(0x2ac),'configStep3':_0x103721(0x2a7),'sessionId':'会话ID','sessionIdDescription':_0x103721(0x31a),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x103721(0x309),'maxRetries':_0x103721(0x332),'save':_0x103721(0x26d),'saving':_0x103721(0x259),'note1':_0x103721(0x268),'note2':_0x103721(0x323),'configSaved':_0x103721(0x303),'configError':'配置保存失败','apiApplyInfo':{'title':_0x103721(0x32f),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x103721(0x30b),'getStarted':_0x103721(0x298)},'validation':{'apiKeyRequired':_0x103721(0x206),'apiKeyTooShort':_0x103721(0x33e),'invalidConfig':_0x103721(0x2dc),'invalidApiKey':_0x103721(0x26f)},'connectionStatus':{'disconnected':'未连接','connecting':_0x103721(0x2a3),'connected':_0x103721(0x24a),'failed':_0x103721(0x314),'retrying':_0x103721(0x26c)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x103721(0x2f9),'networkError':_0x103721(0x2a6),'maxRetriesExceeded':_0x103721(0x229)}}};var mn=Object[_0x103721(0x220)],Cn=Object[_0x103721(0x328)],yn=(_0x970f5d,_0x22f5b8,_0x410547)=>_0x22f5b8 in _0x970f5d?mn(_0x970f5d,_0x22f5b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x410547}):_0x970f5d[_0x22f5b8]=_0x410547,_n=(_0x4a86e8,_0x3c52f5,_0x33d73a,_0x40d8df)=>{var _0x2bca59=_0x103721;for(var _0x2396eb=_0x40d8df>0x1?void 0x0:_0x40d8df?Cn(_0x3c52f5,_0x33d73a):_0x3c52f5,_0x217cd1=_0x4a86e8[_0x2bca59(0x2bf)]-0x1,_0x53d218;_0x217cd1>=0x0;_0x217cd1--)(_0x53d218=_0x4a86e8[_0x217cd1])&&(_0x2396eb=_0x53d218(_0x2396eb)||_0x2396eb);return _0x2396eb;},E=(_0x2fdd76,_0x1632c2)=>(_0x33d649,_0x376967)=>_0x1632c2(_0x33d649,_0x376967,_0x2fdd76),xn=(_0x2fe070,_0xc60af9,_0x3419fe)=>yn(_0x2fe070,_0xc60af9+'',_0x3419fe);let L=class extends _0x57747f{constructor(_0x682aff=re,_0x43f7b8,_0x197710,_0x4922cd,_0x5dcebb,_0x2a899b){var _0x3824d5=_0x103721;super(),this[_0x3824d5(0x234)]=_0x682aff,this['_injector']=_0x43f7b8,this[_0x3824d5(0x30d)]=_0x197710,this['_uiPartsService']=_0x4922cd,this[_0x3824d5(0x348)]=_0x5dcebb,this[_0x3824d5(0x228)]=_0x2a899b;const {..._0x38515d}=_0x16a3ed({},re,this[_0x3824d5(0x234)]);this[_0x3824d5(0x30d)][_0x3824d5(0x2a4)](x,_0x38515d);}async['onStarting'](){var _0x2390c3=_0x103721;const _0x4a0f16=[[O],[I],[k]];this[_0x2390c3(0x26b)][_0x2390c3(0x2ba)](_0x2e09fb)||_0x4a0f16['push']([_0x2e09fb,{'useClass':_0x12b718}]),_0x4a0f16[_0x2390c3(0x2b5)](_0x49ea34=>this[_0x2390c3(0x26b)][_0x2390c3(0x2fe)](_0x49ea34)),this[_0x2390c3(0x26b)][_0x2390c3(0x224)](O),this[_0x2390c3(0x26b)][_0x2390c3(0x224)](I),this[_0x2390c3(0x26b)]['get'](k);}};xn(L,'pluginName',_0x103721(0x321)),L=_n([_0x17438e(_0x4538b1),E(0x1,_0x2235fd(_0x40d19b)),E(0x2,_0x4d3163),E(0x3,_0x29d968),E(0x4,_0xcab0cf),E(0x5,_0x2235fd(_0x1cb48f))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};
|
|
1
|
+
const _0x4d1dd5=_0x593e;(function(_0x5620c6,_0x2077b8){const _0x5b56ff=_0x593e,_0x2f3925=_0x5620c6();while(!![]){try{const _0x37e54c=-parseInt(_0x5b56ff(0x2d1))/0x1*(-parseInt(_0x5b56ff(0x254))/0x2)+-parseInt(_0x5b56ff(0x21f))/0x3*(-parseInt(_0x5b56ff(0x262))/0x4)+-parseInt(_0x5b56ff(0x1fa))/0x5+-parseInt(_0x5b56ff(0x2b0))/0x6*(parseInt(_0x5b56ff(0x1f8))/0x7)+-parseInt(_0x5b56ff(0x24a))/0x8+parseInt(_0x5b56ff(0x2c3))/0x9+-parseInt(_0x5b56ff(0x21c))/0xa;if(_0x37e54c===_0x2077b8)break;else _0x2f3925['push'](_0x2f3925['shift']());}catch(_0x23552c){_0x2f3925['push'](_0x2f3925['shift']());}}}(_0x53df,0x1a379));var Pe=Object[_0x4d1dd5(0x2b9)],Ee=(_0x1cafe6,_0x3ba463,_0x16ffc4)=>_0x3ba463 in _0x1cafe6?Pe(_0x1cafe6,_0x3ba463,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16ffc4}):_0x1cafe6[_0x3ba463]=_0x16ffc4,x=(_0x609ced,_0x5cc3df,_0xa6d65a)=>Ee(_0x609ced,typeof _0x5cc3df!=_0x4d1dd5(0x207)?_0x5cc3df+'':_0x5cc3df,_0xa6d65a);import{LocaleService as _0x408b12,Inject as _0x34e389,Injector as _0x54f8e1,IConfigService as _0x23775e,ILocalStorageService as _0x1ee390,ILogService as _0x37ca18,Disposable as _0x597623,CommandType as _0x391ddb,ICommandService as _0x398280,DependentOn as _0x249ad5,Plugin as _0x300405,merge as _0x7e5e4c}from'@univerjs/core';import{jsxs as _0x3f5fa9,jsx as _0x3769df}from'react/jsx-runtime';import{MCPConnectionStatus as _0x48b73c,MCPConnectionError as _0x35c0c6,MCPConnectionController as _0x267a9e,MCP_PLUGIN_CONFIG_KEY as _0x7b65c8,UniverMCPPlugin as _0x51a3dd}from'@univerjs-pro/mcp';import{clsx as _0x3fcf1e,Input as _0x17e85f,Button as _0x25ca29,MessageType as _0xcd028b,Tooltip as _0x197f74}from'@univerjs/design';import{useDependency as _0x25ce64,useObservable as _0x464025,IUIPartsService as _0x5a2e5c,IDialogService as _0x92f93c,IMessageService as _0x2aa2ba,ComponentManager as _0xe137b3,connectInjector as _0x3ef36b,BuiltInUIPart as _0x36e436,MenuItemType as _0x5b6cd8,RibbonStartGroup as _0x246484,IMenuManagerService as _0x3b3a79}from'@univerjs/ui';import{BehaviorSubject as _0x20d690}from'rxjs';import{useRef as _0x1d5775,createElement as _0x23810,forwardRef as _0x3a4b3a,useState as _0x2c6501,useCallback as _0x12c1e8}from'react';import{ISocketService as _0x43eddd,WebSocketService as _0x3f40b3}from'@univerjs/network';function b({ref:_0xe5a624,..._0x294194}){const _0x521b5b=_0x4d1dd5,{icon:_0x14b07a,id:_0x10d817,className:_0x279cff,extend:_0x326134,..._0x1f3838}=_0x294194,_0x439812=(_0x521b5b(0x1d2)+_0x10d817+'\x20'+(_0x279cff||''))[_0x521b5b(0x2bd)](),_0x4023f0=_0x1d5775('_'+We());return ae(_0x14b07a,''+_0x10d817,{'defIds':_0x14b07a['defIds'],'idSuffix':_0x4023f0[_0x521b5b(0x1b3)]},{'ref':_0xe5a624,'className':_0x439812,..._0x1f3838},_0x326134);}function ae(_0x363a85,_0xc32d03,_0x5af1d2,_0x301776,_0x5b34f0){const _0x3fc120=_0x4d1dd5;return _0x23810(_0x363a85[_0x3fc120(0x21a)],{'key':_0xc32d03,...Ye(_0x363a85,_0x5af1d2,_0x5b34f0),..._0x301776},(Ze(_0x363a85,_0x5af1d2)[_0x3fc120(0x235)]||[])[_0x3fc120(0x256)]((_0x50cebd,_0x2235f7)=>ae(_0x50cebd,_0xc32d03+'-'+_0x363a85['tag']+'-'+_0x2235f7,_0x5af1d2,void 0x0,_0x5b34f0)));}function Ye(_0x2fff4a,_0x2dbe83,_0x4069e9){const _0x4f806f=_0x4d1dd5,_0x2d9e3b={..._0x2fff4a[_0x4f806f(0x2c2)]};_0x4069e9!=null&&_0x4069e9['colorChannel1']&&_0x2d9e3b[_0x4f806f(0x2c9)]===_0x4f806f(0x28c)&&(_0x2d9e3b['fill']=_0x4069e9['colorChannel1']),_0x2fff4a['tag']===_0x4f806f(0x264)&&_0x2d9e3b['id']&&(_0x2d9e3b['id']=_0x2d9e3b['id']+_0x2dbe83[_0x4f806f(0x247)]),Object[_0x4f806f(0x1f7)](_0x2d9e3b)[_0x4f806f(0x2d9)](([_0x55a9fd,_0x1bd28e])=>{const _0x3b9d54=_0x4f806f;_0x55a9fd===_0x3b9d54(0x264)&&typeof _0x1bd28e==_0x3b9d54(0x2bc)&&(_0x2d9e3b[_0x55a9fd]=_0x1bd28e[_0x3b9d54(0x2e7)](/url\(#(.*)\)/,_0x3b9d54(0x270)+_0x2dbe83[_0x3b9d54(0x247)]+')'));});const {defIds:_0x563d69}=_0x2dbe83;return!_0x563d69||_0x563d69['length']===0x0||(_0x2fff4a[_0x4f806f(0x21a)]===_0x4f806f(0x236)&&_0x2d9e3b[_0x4f806f(0x249)]&&(_0x2d9e3b[_0x4f806f(0x249)]=_0x2d9e3b[_0x4f806f(0x249)]+_0x2dbe83[_0x4f806f(0x247)]),Object[_0x4f806f(0x1f7)](_0x2d9e3b)[_0x4f806f(0x2d9)](([_0x4e313e,_0x237767])=>{const _0x38abe0=_0x4f806f;typeof _0x237767==_0x38abe0(0x2bc)&&(_0x2d9e3b[_0x4e313e]=_0x237767[_0x38abe0(0x2e7)](/url\(#(.*)\)/,_0x38abe0(0x270)+_0x2dbe83[_0x38abe0(0x247)]+')'));})),_0x2d9e3b;}function Ze(_0x89de5f,_0x2e0acc){const _0x5ed609=_0x4d1dd5;var _0x47f562;const {defIds:_0x59e9b2}=_0x2e0acc;return!_0x59e9b2||_0x59e9b2['length']===0x0?_0x89de5f:_0x89de5f[_0x5ed609(0x21a)]===_0x5ed609(0x29f)&&((_0x47f562=_0x89de5f[_0x5ed609(0x235)])!=null&&_0x47f562[_0x5ed609(0x255)])?{..._0x89de5f,'children':_0x89de5f[_0x5ed609(0x235)][_0x5ed609(0x256)](_0x1d29fb=>typeof _0x1d29fb[_0x5ed609(0x2c2)]['id']=='string'&&_0x59e9b2&&_0x59e9b2[_0x5ed609(0x2a3)](_0x1d29fb['attrs']['id'])?{..._0x1d29fb,'attrs':{..._0x1d29fb[_0x5ed609(0x2c2)],'id':_0x1d29fb[_0x5ed609(0x2c2)]['id']+_0x2e0acc[_0x5ed609(0x247)]}}:_0x1d29fb)}:_0x89de5f;}function We(){const _0x59c8a2=_0x4d1dd5;return Math[_0x59c8a2(0x20e)]()[_0x59c8a2(0x22a)](0x24)['substring'](0x2,0x8);}b['displayName']=_0x4d1dd5(0x242);const qe={'tag':_0x4d1dd5(0x2db),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4d1dd5(0x1f5),'width':_0x4d1dd5(0x1fe),'height':_0x4d1dd5(0x1fe)},'children':[{'tag':'path','attrs':{'fill':_0x4d1dd5(0x21e),'d':_0x4d1dd5(0x279),'fillRule':_0x4d1dd5(0x2a6),'clipRule':_0x4d1dd5(0x2a6)}}]},le=_0x3a4b3a(function(_0x3ef9b1,_0x2f6290){const _0x3097bc=_0x4d1dd5;return _0x23810(b,Object[_0x3097bc(0x2d7)]({},_0x3ef9b1,{'id':_0x3097bc(0x20c),'ref':_0x2f6290,'icon':qe}));});le[_0x4d1dd5(0x2f1)]=_0x4d1dd5(0x253);const Xe={'tag':_0x4d1dd5(0x2db),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4d1dd5(0x26a),'viewBox':_0x4d1dd5(0x1f5),'width':_0x4d1dd5(0x1fe),'height':'1em'},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'fill':'currentColor','d':_0x4d1dd5(0x219)}}]},ue=_0x3a4b3a(function(_0x3b7e6b,_0x4c8d54){const _0x39a96b=_0x4d1dd5;return _0x23810(b,Object[_0x39a96b(0x2d7)]({},_0x3b7e6b,{'id':_0x39a96b(0x274),'ref':_0x4c8d54,'icon':Xe}));});ue['displayName']=_0x4d1dd5(0x1c7);function _0x593e(_0x3479c7,_0x181a42){const _0x53dfa9=_0x53df();return _0x593e=function(_0x593e9c,_0xf0325){_0x593e9c=_0x593e9c-0x1aa;let _0x3366cc=_0x53dfa9[_0x593e9c];return _0x3366cc;},_0x593e(_0x3479c7,_0x181a42);}const Je={'tag':'svg','attrs':{'xmlns':_0x4d1dd5(0x1e4),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x4d1dd5(0x1fe),'height':_0x4d1dd5(0x1fe)},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'fill':_0x4d1dd5(0x21e),'d':_0x4d1dd5(0x1cb)}},{'tag':'path','attrs':{'fill':_0x4d1dd5(0x21e),'d':_0x4d1dd5(0x1c5)}},{'tag':'path','attrs':{'fill':_0x4d1dd5(0x21e),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x4d1dd5(0x2a6),'clipRule':'evenodd'}}]},ve=_0x3a4b3a(function(_0x4a8c86,_0x50c991){const _0x1b3318=_0x4d1dd5;return _0x23810(b,Object[_0x1b3318(0x2d7)]({},_0x4a8c86,{'id':_0x1b3318(0x1e6),'ref':_0x50c991,'icon':Je}));});ve[_0x4d1dd5(0x2f1)]=_0x4d1dd5(0x2a4);const Qe={'tag':_0x4d1dd5(0x2db),'attrs':{'xmlns':_0x4d1dd5(0x1e4),'fill':_0x4d1dd5(0x26a),'viewBox':_0x4d1dd5(0x1f5),'width':_0x4d1dd5(0x1fe),'height':_0x4d1dd5(0x1fe)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d1dd5(0x1d3)},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'stroke':_0x4d1dd5(0x21e),'d':_0x4d1dd5(0x294),'strokeLinecap':_0x4d1dd5(0x2b2),'strokeLinejoin':_0x4d1dd5(0x2b2),'strokeWidth':1.2}}]},{'tag':_0x4d1dd5(0x29f),'attrs':{},'children':[{'tag':_0x4d1dd5(0x1ce),'attrs':{'id':_0x4d1dd5(0x2f7)},'children':[{'tag':'path','attrs':{'fill':_0x4d1dd5(0x2eb),'d':_0x4d1dd5(0x2c8)}}]}]}],'defIds':[_0x4d1dd5(0x2f7)]},de=_0x3a4b3a(function(_0x36b965,_0x9db2d7){const _0x142199=_0x4d1dd5;return _0x23810(b,Object[_0x142199(0x2d7)]({},_0x36b965,{'id':_0x142199(0x25f),'ref':_0x9db2d7,'icon':Qe}));});de[_0x4d1dd5(0x2f1)]=_0x4d1dd5(0x1af);const en={'tag':_0x4d1dd5(0x2db),'attrs':{'xmlns':_0x4d1dd5(0x1e4),'fill':'none','viewBox':_0x4d1dd5(0x293),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4d1dd5(0x1e1)},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'stroke':'currentColor','d':_0x4d1dd5(0x1ef),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4d1dd5(0x29f),'attrs':{},'children':[{'tag':_0x4d1dd5(0x1ce),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x4d1dd5(0x290)]},ge=_0x3a4b3a(function(_0x3b9ce3,_0x22820c){const _0x20f9e4=_0x4d1dd5;return _0x23810(b,Object['assign']({},_0x3b9ce3,{'id':_0x20f9e4(0x1ba),'ref':_0x22820c,'icon':en}));});ge['displayName']=_0x4d1dd5(0x210);function nn(_0x46f1ae){const _0x320b33=_0x4d1dd5;var _0xc07e75,_0x8190a9;const {mcpCoreConfig:_0xff5682,onSave:_0x45f738,loading:_0x47d791=!0x1,config:_0x3d805a,connectionStatus$:_0x1820e7,connectionError$:_0x5013bf,currentApiKey$:_0x2e95d3,currentSessionId$:_0x2b25c0}=_0x46f1ae,_0x233f96=_0x25ce64(_0x408b12),_0x3edbc2=_0x464025(_0x1820e7,_0x48b73c[_0x320b33(0x2c5)]),_0x1a7c75=_0x464025(_0x5013bf,_0x35c0c6[_0x320b33(0x239)]),_0x2893dc=_0x464025(_0x2b25c0,''),_0x1225d1=_0x464025(_0x2e95d3,''),[_0x51716a,_0x5893be]=_0x2c6501(_0x1225d1||''),_0x161dd9=!0x0,_0x2ef91d=_0x3d805a[_0x320b33(0x2ce)]&&_0xff5682[_0x320b33(0x2ff)]&&(_0xff5682[_0x320b33(0x2ff)]['includes']('univer.plus')||_0xff5682[_0x320b33(0x2ff)]['includes'](_0x320b33(0x27b))),_0x3b0110=(_0xc07e75=_0xff5682[_0x320b33(0x2ff)])==null?void 0x0:_0xc07e75[_0x320b33(0x2a3)](_0x320b33(0x28b)),_0x4a97e4=(_0x8190a9=_0xff5682[_0x320b33(0x2ff)])==null?void 0x0:_0x8190a9[_0x320b33(0x2a3)](_0x320b33(0x27b)),_0x199aee=_0x3b0110?_0x320b33(0x1ac):_0x320b33(0x250),_0x598e64=_0x3d805a[_0x320b33(0x2ce)]&&(_0x3b0110||_0x4a97e4),[_0x112b52,_0x4abfdd]=_0x2c6501(!_0x51716a['trim']()),_0x330892=(_0x19d5ca,_0x4c12ff)=>{const _0x1656f3=_0x320b33;if(_0x4c12ff===_0x35c0c6[_0x1656f3(0x2ad)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x19d5ca){case _0x48b73c[_0x1656f3(0x25c)]:return _0x1656f3(0x271);case _0x48b73c[_0x1656f3(0x23c)]:case _0x48b73c[_0x1656f3(0x288)]:return _0x1656f3(0x1f4);case _0x48b73c[_0x1656f3(0x2e4)]:return _0x1656f3(0x298);default:return _0x1656f3(0x1bf);}},_0x1d4dbb=(_0x16a3b3,_0x27b5c8)=>{const _0x548dc7=_0x320b33;if(_0x27b5c8===_0x35c0c6['UNAUTHORIZED'])return _0x548dc7(0x1ee);switch(_0x16a3b3){case _0x48b73c[_0x548dc7(0x25c)]:return _0x548dc7(0x206);case _0x48b73c['CONNECTING']:case _0x48b73c[_0x548dc7(0x288)]:return _0x548dc7(0x27f);case _0x48b73c[_0x548dc7(0x2e4)]:return _0x548dc7(0x1ee);default:return _0x548dc7(0x1b9);}},_0x39af03=_0x3cb69c=>{const _0x112da8=_0x320b33;switch(_0x3cb69c){case _0x48b73c['CONNECTED']:return _0x233f96['t'](_0x112da8(0x1fd));case _0x48b73c['CONNECTING']:return _0x233f96['t'](_0x112da8(0x226));case _0x48b73c['FAILED']:return _0x233f96['t'](_0x112da8(0x26c));case _0x48b73c[_0x112da8(0x288)]:return _0x233f96['t']('mcpConfig.connectionStatus.retrying');default:return _0x233f96['t'](_0x112da8(0x2be));}},_0x20c556=_0x2af9ce=>{const _0x288f33=_0x320b33;switch(_0x2af9ce){case _0x35c0c6[_0x288f33(0x2ad)]:return _0x233f96['t'](_0x288f33(0x275));case _0x35c0c6[_0x288f33(0x20a)]:return _0x233f96['t'](_0x288f33(0x203));case _0x35c0c6[_0x288f33(0x28a)]:return _0x233f96['t'](_0x288f33(0x246));case _0x35c0c6[_0x288f33(0x269)]:return _0x233f96['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x4f1774=_0x12c1e8(()=>{const _0x2a70a2=_0x320b33,_0xfd2b1a={..._0xff5682,'apiKey':_0x51716a[_0x2a70a2(0x2bd)](),'enableAuth':_0x161dd9};_0x45f738(_0xfd2b1a);},[_0xff5682,_0x51716a,_0x161dd9,_0x45f738]),_0x2e8bfd=_0x51716a['trim']()['length']>0x0;return _0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x2e9),'children':_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x2f9),'children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x233),'children':_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x25d),'children':'⚙'})}),_0x3769df(_0x320b33(0x28d),{'children':_0x3769df('p',{'className':_0x320b33(0x23d),'children':_0x233f96['t'](_0x320b33(0x2c0))})})]})}),_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x3fcf1e(_0x320b33(0x28f),_0x330892(_0x3edbc2,_0x1a7c75)),'children':_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x28d),{'className':_0x3fcf1e(_0x320b33(0x258),_0x1d4dbb(_0x3edbc2,_0x1a7c75))}),_0x3769df('span',{'className':_0x320b33(0x1f1),'children':_0x39af03(_0x3edbc2)})]})}),_0x1a7c75!==_0x35c0c6[_0x320b33(0x239)]&&(_0x3edbc2===_0x48b73c[_0x320b33(0x2e4)]||_0x1a7c75===_0x35c0c6[_0x320b33(0x2ad)])&&_0x3769df('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x1ca),'children':'⚠️'}),_0x3769df('p',{'className':_0x320b33(0x1c2),'children':_0x20c556(_0x1a7c75)})]})})]}),_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x213),'children':_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-space-y-5','children':[_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-space-y-2','children':[_0x3f5fa9(_0x320b33(0x278),{'className':_0x320b33(0x240),'children':[_0x3769df('span',{'children':'🔑'}),'\x20',_0x233f96['t'](_0x320b33(0x20d)),_0x3769df(_0x320b33(0x259),{'className':'univer-text-red-500','children':'*'}),_0x2ef91d&&_0x3769df('a',{'className':_0x320b33(0x1c4),'title':_0x233f96['t']('mcpConfig.apiApplyInfo.title'),'role':_0x320b33(0x1e8),'onClick':()=>_0x4abfdd(!0x0),'children':_0x3769df(ve,{})})]}),_0x3769df(_0x17e85f,{'type':'text','placeholder':_0x233f96['t'](_0x320b33(0x24f)),'value':_0x51716a,'disabled':_0x47d791,'autoComplete':_0x320b33(0x2ef),'onChange':_0x5893be}),_0x3769df('p',{'className':_0x320b33(0x2a7),'children':_0x233f96['t']('mcpConfig.apiKeyHint')})]}),_0x2ef91d&&_0x112b52&&_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x2ac),'children':[_0x3769df('a',{'className':_0x320b33(0x2fa),'role':_0x320b33(0x1e8),'onClick':()=>_0x4abfdd(!0x1),'children':_0x3769df(ue,{'className':'univer-size-4'})}),_0x3f5fa9('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x2c6),'children':_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x21d),'children':'🚀'})}),_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex-1','children':[_0x3769df('h4',{'className':_0x320b33(0x2d4),'children':_0x233f96['t']('mcpConfig.apiApplyInfo.title')}),_0x3769df('p',{'className':_0x320b33(0x237),'children':_0x233f96['t'](_0x320b33(0x1b5))}),_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x22b),'children':_0x598e64&&_0x3f5fa9('a',{'className':_0x320b33(0x29e),'href':_0x199aee,'target':_0x320b33(0x2df),'rel':'noopener\x20noreferrer','children':[_0x3769df(_0x320b33(0x259),{'children':'🤖'}),_0x233f96['t'](_0x320b33(0x252)),_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x1fc),'children':'↗'})]})}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1c6),'children':['✨','\x20',_0x233f96['t'](_0x320b33(0x2dc))]})]})]})]}),_0x3d805a[_0x320b33(0x2ce)]&&_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x248),'children':[_0x3f5fa9('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x3769df(_0x320b33(0x259),{'children':'🔗'}),'\x20',_0x233f96['t']('mcpConfig.connectionInfo')]}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x2d0),'children':[_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1d0),'children':[_0x3769df('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x233f96['t'](_0x320b33(0x2d6))}),_0x3f5fa9('div',{'className':'univer-space-y-2','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x27a),'children':_0x233f96['t'](_0x320b33(0x272))}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x25b),'children':[_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x299),'children':'1'}),_0x233f96['t'](_0x320b33(0x2b3))]}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x259),{'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'}),_0x233f96['t']('mcpConfig.configStep2')]}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x299),'children':'3'}),_0x233f96['t'](_0x320b33(0x28e))]})]})]})]}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x261),'children':[_0x3769df(_0x320b33(0x28d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x320b33(0x263)}),_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x1f9),'children':_0x3769df(_0x320b33(0x1ae),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x320b33(0x2a9)]({'mcpServers':{'univer':{'url':_0x320b33(0x2d3)+(_0x2893dc||'<SESSION_ID>'),'type':_0x320b33(0x265),'headers':{'Authorization':_0x320b33(0x297)+(_0x51716a||_0x320b33(0x251))}}}},null,0x2)})})]}),_0x3f5fa9('div',{'className':'univer-space-y-3','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x27a),'children':_0x233f96['t'](_0x320b33(0x1e3))}),_0x3f5fa9('div',{'className':_0x320b33(0x261),'children':[_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x3769df('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x212),'children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x2cc),'children':_0x320b33(0x1d9)}),_0x3769df(_0x320b33(0x28d),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x233f96['t'](_0x320b33(0x214))})]})]}),_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x283)}),_0x3f5fa9('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x3769df(_0x320b33(0x28d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x320b33(0x243)}),_0x3769df('div',{'className':_0x320b33(0x2a7),'children':_0x233f96['t'](_0x320b33(0x2a8))})]})]})]})]})]})]}),_0x3769df(_0x25ca29,{'onClick':_0x4f1774,'disabled':!_0x2e8bfd||_0x47d791,'className':_0x320b33(0x221),'children':_0x47d791?_0x3f5fa9(_0x320b33(0x259),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x259),{'children':'⟲'}),_0x233f96['t'](_0x320b33(0x23a))]}):_0x3f5fa9(_0x320b33(0x259),{'className':_0x320b33(0x1be),'children':[_0x3769df(le,{}),_0x233f96['t']('mcpConfig.save')]})}),_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x2e3),'children':_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-gap-3','children':[_0x3769df(_0x320b33(0x259),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x3f5fa9('div',{'className':_0x320b33(0x2d8),'children':[_0x3769df('div',{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),_0x3f5fa9(_0x320b33(0x28d),{'children':['•',_0x233f96['t'](_0x320b33(0x23e))]}),_0x3f5fa9(_0x320b33(0x28d),{'children':['•',_0x233f96['t'](_0x320b33(0x2e8))]})]})]})})]})})]});}const y=_0x4d1dd5(0x1c1),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x4d1dd5(0x286)],tn=(_0xc6c6ae,_0x5f3c84,_0x2bcdf4,_0x56654a)=>{const _0x59ccf9=_0x4d1dd5;for(var _0x3cc091=_0x56654a>0x1?void 0x0:_0x56654a?rn(_0x5f3c84,_0x2bcdf4):_0x5f3c84,_0x34387a=_0xc6c6ae[_0x59ccf9(0x255)]-0x1,_0x489e4e;_0x34387a>=0x0;_0x34387a--)(_0x489e4e=_0xc6c6ae[_0x34387a])&&(_0x3cc091=_0x489e4e(_0x3cc091)||_0x3cc091);return _0x3cc091;},d=(_0x14529f,_0x2ca950)=>(_0x52e4b7,_0x1c1aa4)=>_0x2ca950(_0x52e4b7,_0x1c1aa4,_0x14529f);const U=_0x4d1dd5(0x26d),L=_0x4d1dd5(0x1b7);let I=class extends _0x597623{constructor(_0x5240f0,_0x38427c,_0x53e971,_0x4911cd,_0x184ea0,_0x3fa2ca,_0x3c1730,_0x405dc7,_0x162f59,_0x52384a){const _0x371b5c=_0x4d1dd5;super(),x(this,_0x371b5c(0x223),new _0x20d690(!0x1)),x(this,_0x371b5c(0x22f),new _0x20d690({})),x(this,_0x371b5c(0x25a),new _0x20d690({})),x(this,_0x371b5c(0x1cc),new _0x20d690('')),x(this,_0x371b5c(0x2e6),async _0xe62755=>{const _0x28778d=_0x371b5c;var _0x1d179c,_0x30f54e;this['_loading$'][_0x28778d(0x2f2)](!0x0);try{const _0x8866d7=await this[_0x28778d(0x216)](_0xe62755);if(!_0x8866d7['isValid']){this[_0x28778d(0x202)]['show']({'type':_0xcd028b['Error'],'content':_0x8866d7[_0x28778d(0x1de)]||this[_0x28778d(0x2cd)]['t'](_0x28778d(0x1c9))});return;}_0xe62755[_0x28778d(0x22d)]?await this[_0x28778d(0x296)][_0x28778d(0x234)](U,_0xe62755[_0x28778d(0x22d)][_0x28778d(0x2bd)]()):await this[_0x28778d(0x296)]['removeItem'](U),this[_0x28778d(0x1cc)][_0x28778d(0x2f2)](((_0x1d179c=_0xe62755[_0x28778d(0x22d)])==null?void 0x0:_0x1d179c['trim']())||''),this[_0x28778d(0x23b)][_0x28778d(0x2ab)]({'Authorization':_0x28778d(0x297)+((_0x30f54e=_0xe62755[_0x28778d(0x22d)])==null?void 0x0:_0x30f54e['trim']())}),this[_0x28778d(0x202)][_0x28778d(0x266)]({'type':_0xcd028b[_0x28778d(0x1b8)],'content':this['_localeService']['t'](_0x28778d(0x2b8))}),setTimeout(()=>{const _0x15a1ce=_0x28778d;this[_0x15a1ce(0x211)][_0x15a1ce(0x289)](L);},0x320);}catch(_0x12bc90){this[_0x28778d(0x2dd)][_0x28778d(0x26b)](_0x28778d(0x2ba),_0x12bc90),this[_0x28778d(0x202)][_0x28778d(0x266)]({'type':_0xcd028b['Error'],'content':this[_0x28778d(0x2cd)]['t']('mcpConfig.configError')});}finally{this[_0x28778d(0x223)][_0x28778d(0x2f2)](!0x1);}}),(this[_0x371b5c(0x2fb)]=_0x5240f0,this[_0x371b5c(0x1d1)]=_0x38427c,this['_configService']=_0x53e971,this['_localStorageService']=_0x4911cd,this[_0x371b5c(0x211)]=_0x184ea0,this[_0x371b5c(0x202)]=_0x3fa2ca,this['_componentManager']=_0x3c1730,this['_localeService']=_0x405dc7,this[_0x371b5c(0x2dd)]=_0x162f59,this['_mcpConnectionController']=_0x52384a,this['_initConfigSync'](),this[_0x371b5c(0x1dc)](),this['_registerComponent']());}['showConfigPanel'](){const _0x3ef5c7=_0x4d1dd5,_0x465e91=this[_0x3ef5c7(0x2c1)][_0x3ef5c7(0x20f)](y);_0x465e91!=null&&_0x465e91[_0x3ef5c7(0x2ce)]&&this[_0x3ef5c7(0x211)][_0x3ef5c7(0x2da)]({'id':L,'title':{'title':this[_0x3ef5c7(0x2cd)]['t'](_0x3ef5c7(0x20b))},'children':{'label':_0x3ef5c7(0x2e1)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x272583=_0x3ef5c7;this['_dialogService'][_0x272583(0x289)](L);}});}['getCurrentConfig'](){const _0x3c3bce=_0x4d1dd5;return this[_0x3c3bce(0x22f)][_0x3c3bce(0x238)];}['_registerComponent'](){const _0x33370b=_0x4d1dd5;this[_0x33370b(0x2f0)](this[_0x33370b(0x2f5)][_0x33370b(0x205)](_0x33370b(0x2e1),this[_0x33370b(0x292)]()));}[_0x4d1dd5(0x292)](){const _0x3f4861=_0x4d1dd5;return _0x3ef36b(()=>{const _0x58bcd1=_0x593e;var _0x338a21,_0x16edf6,_0x2225ca;return _0x3769df(nn,{'config':this[_0x58bcd1(0x25a)][_0x58bcd1(0x238)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x58bcd1(0x238)],'currentApiKey$':this[_0x58bcd1(0x1cc)],'onSave':this[_0x58bcd1(0x2e6)],'loading':this[_0x58bcd1(0x223)][_0x58bcd1(0x238)],'connectionStatus$':(_0x338a21=this[_0x58bcd1(0x23b)])==null?void 0x0:_0x338a21[_0x58bcd1(0x222)],'connectionError$':(_0x16edf6=this[_0x58bcd1(0x23b)])==null?void 0x0:_0x16edf6[_0x58bcd1(0x2fe)],'currentSessionId$':(_0x2225ca=this['_mcpConnectionController'])==null?void 0x0:_0x2225ca[_0x58bcd1(0x1db)]});},this[_0x3f4861(0x2fb)]);}[_0x4d1dd5(0x268)](){const _0x1698bd=_0x4d1dd5;this[_0x1698bd(0x2f0)](this[_0x1698bd(0x2c1)][_0x1698bd(0x245)](_0x7b65c8)[_0x1698bd(0x287)](_0xc1a274=>{const _0x3acc2d=_0x1698bd;this['_mcpCoreConfig$'][_0x3acc2d(0x2f2)](_0xc1a274||{});}));const _0x217723=this[_0x1698bd(0x2c1)][_0x1698bd(0x20f)](_0x7b65c8);this[_0x1698bd(0x22f)][_0x1698bd(0x2f2)](_0x217723||{}),this[_0x1698bd(0x2f0)](this[_0x1698bd(0x2c1)][_0x1698bd(0x245)](y)['subscribe'](_0x57845c=>{const _0x4a18d1=_0x1698bd;this[_0x4a18d1(0x25a)][_0x4a18d1(0x2f2)](_0x57845c||{});}));const _0x9bff26=this[_0x1698bd(0x2c1)][_0x1698bd(0x20f)](y);this[_0x1698bd(0x25a)][_0x1698bd(0x2f2)](_0x9bff26||{});}async[_0x4d1dd5(0x1dc)](){const _0xa8e201=_0x4d1dd5,_0x4b4e97=this[_0xa8e201(0x2c1)]['getConfig'](y);if(!(_0x4b4e97!=null&&_0x4b4e97[_0xa8e201(0x2ce)]))return;const _0x559c42=await this['_localStorageService'][_0xa8e201(0x1aa)](U);_0x559c42&&(this[_0xa8e201(0x23b)][_0xa8e201(0x2ab)]({'Authorization':_0xa8e201(0x297)+_0x559c42}),this[_0xa8e201(0x1cc)][_0xa8e201(0x2f2)](_0x559c42));}async[_0x4d1dd5(0x216)](_0x53a1ed){const _0xd667a5=_0x4d1dd5;if(!_0x53a1ed[_0xd667a5(0x22d)]||_0x53a1ed['apiKey'][_0xd667a5(0x2bd)]()[_0xd667a5(0x255)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x53a1ed[_0xd667a5(0x22d)][_0xd667a5(0x2bd)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0xd667a5(0x2cd)]['t'](_0xd667a5(0x2c7))};try{const _0x55a76c=await this[_0xd667a5(0x2fb)][_0xd667a5(0x2ca)](_0x267a9e)[_0xd667a5(0x2e0)](_0x53a1ed[_0xd667a5(0x22d)][_0xd667a5(0x2bd)]());return _0x55a76c[_0xd667a5(0x27c)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x55a76c[_0xd667a5(0x26b)]||this[_0xd667a5(0x2cd)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x31af76){return console[_0xd667a5(0x2b7)](_0xd667a5(0x1e2),_0x31af76),{'isValid':!0x0};}}};I=tn([d(0x0,_0x34e389(_0x54f8e1)),d(0x1,_0x5a2e5c),d(0x2,_0x23775e),d(0x3,_0x1ee390),d(0x4,_0x92f93c),d(0x5,_0x2aa2ba),d(0x6,_0x34e389(_0xe137b3)),d(0x7,_0x34e389(_0x408b12)),d(0x8,_0x37ca18),d(0x9,_0x34e389(_0x267a9e))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x391ddb[_0x4d1dd5(0x224)],'handler':async(_0x3fb182,_0xe2fd90)=>(_0x3fb182['get'](I)['showConfigPanel'](),!0x0)};function pe(_0x3fe6d3,_0x53052f){const _0xdc98f6=_0x4d1dd5;switch(_0x3fe6d3){case _0x48b73c[_0xdc98f6(0x2c5)]:return _0xdc98f6(0x26f);case _0x48b73c[_0xdc98f6(0x23c)]:return _0xdc98f6(0x1c3);case _0x48b73c[_0xdc98f6(0x25c)]:return _0xdc98f6(0x1ad);case _0x48b73c[_0xdc98f6(0x2e4)]:switch(_0x53052f){case _0x35c0c6[_0xdc98f6(0x2ad)]:return _0xdc98f6(0x295);case _0x35c0c6[_0xdc98f6(0x20a)]:return'mcpStatus.sessionOccupied';case _0x35c0c6[_0xdc98f6(0x28a)]:return _0xdc98f6(0x1f6);case _0x35c0c6[_0xdc98f6(0x269)]:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case _0x48b73c[_0xdc98f6(0x288)]:return'mcpStatus.retrying';default:return _0xdc98f6(0x2bf);}}function on(_0x24dd44,_0xe7793c,_0x3087fd,_0x17250f=!0x0){const _0x1640bb=_0x4d1dd5,_0xae7032=pe(_0x24dd44,_0xe7793c),_0x2cb3dc=_0x3087fd['t'](_0xae7032);return _0x17250f?_0x24dd44===_0x48b73c[_0x1640bb(0x2c5)]&&_0xe7793c===_0x35c0c6[_0x1640bb(0x2ad)]?_0x2cb3dc+'\x20-\x20'+_0x3087fd['t'](_0x1640bb(0x29a)):_0x24dd44===_0x48b73c['CONNECTED']?''+_0x2cb3dc:_0x24dd44===_0x48b73c[_0x1640bb(0x2c5)]||_0x24dd44===_0x48b73c[_0x1640bb(0x2e4)]?_0x2cb3dc+_0x1640bb(0x2ae)+_0x3087fd['t']('mcpStatus.clickToConnect'):_0x2cb3dc:_0x2cb3dc;}function sn(_0x457f5d){const _0x592798=_0x4d1dd5;switch(_0x457f5d){case _0x48b73c['CONNECTED']:return _0x592798(0x2d2);case _0x48b73c['CONNECTING']:case _0x48b73c[_0x592798(0x288)]:return'univer-text-yellow-500';case _0x48b73c['FAILED']:case _0x48b73c[_0x592798(0x2c5)]:return _0x592798(0x2ea);default:return _0x592798(0x200);}}function cn(_0x4cd746){const _0x2dbb83=_0x4d1dd5,{status$:_0x4ebb53,error$:_0x497b47,onConfigure:_0x3bdd3f,showClickable:_0x43dd7d=!0x0}=_0x4cd746,_0x31d024=_0x464025(_0x4ebb53,_0x48b73c[_0x2dbb83(0x2c5)]),_0x5e46f1=_0x464025(_0x497b47,_0x35c0c6[_0x2dbb83(0x239)]),_0xb712f0=_0x25ce64(_0x408b12),_0x3ab12b=_0x31d024===_0x48b73c['CONNECTED'];_0x31d024===_0x48b73c[_0x2dbb83(0x23c)]||_0x48b73c[_0x2dbb83(0x288)];const _0x346159=_0xb712f0['t'](pe(_0x31d024,_0x5e46f1)),_0x289ab1=on(_0x31d024,_0x5e46f1,_0xb712f0,_0x43dd7d),_0x385e64=sn(_0x31d024),_0x28a70f=_0x3ab12b?_0x3769df(ge,{}):_0x3769df(de,{}),_0x51253f=_0x12c1e8(()=>{_0x43dd7d&&_0x3bdd3f&&_0x3bdd3f();},[_0x43dd7d,_0x3bdd3f]);function _0x3d538f(){const _0x3d3629=_0x2dbb83;return _0x3f5fa9('div',{'className':_0x3fcf1e('univer-flex\x20univer-items-center',_0x43dd7d&&_0x3bdd3f&&_0x3d3629(0x2b6)),'role':_0x3d3629(0x1e8),'onClick':_0x43dd7d&&_0x3bdd3f?_0x51253f:void 0x0,'children':[_0x3769df(_0x3d3629(0x28d),{'className':_0x3fcf1e('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x385e64),'children':_0x28a70f}),_0x3769df(_0x3d3629(0x28d),{'className':_0x3d3629(0x2d5),'children':_0x346159})]});}return _0x3769df(_0x197f74,{'title':_0x289ab1,'placement':_0x2dbb83(0x2b1),'children':_0x3d538f()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x17ac81,_0x1857a5,_0x266c5d,_0x1f1356)=>{const _0x363c0f=_0x4d1dd5;for(var _0x1fe923=_0x1f1356>0x1?void 0x0:_0x1f1356?an(_0x1857a5,_0x266c5d):_0x1857a5,_0x5b2357=_0x17ac81[_0x363c0f(0x255)]-0x1,_0x11ab74;_0x5b2357>=0x0;_0x5b2357--)(_0x11ab74=_0x17ac81[_0x5b2357])&&(_0x1fe923=_0x11ab74(_0x1fe923)||_0x1fe923);return _0x1fe923;},M=(_0x18da6d,_0x315d40)=>(_0x46b144,_0x59b01d)=>_0x315d40(_0x46b144,_0x59b01d,_0x18da6d);function _0x53df(){const _0x4cf681=['MCPConfigPanel','保存中...','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','FAILED','Saving...','_handleConfigSave','replace','mcpConfig.note2','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-text-red-500','white','MCP\x20客户端配置','连接中...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','off','disposeWithMe','displayName','next','连接失败','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_componentManager','MCP\x20Client\x20Configuration','off-line-icon_clip0_910_343','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-flex\x20univer-items-center\x20univer-gap-3','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','_injector','_commandService','push','connectionError$','mcpServerUrl','getItem','_menuManagerService','https://console.univer.plus','mcpStatus.connected','pre','OffLineIcon','_initializeCommands','MCP\x20Connected','MCP\x20状态未知','current','Connected','mcpConfig.apiApplyInfo.description','BUTTON','mcp-config-dialog','Success','univer-bg-gray-500','on-line-icon','registerCommand','_handleConfigure','MCP:\x20会话\x20ID\x20已被占用','univer-flex\x20univer-items-center\x20univer-gap-2','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','未连接','mcp-ui.config','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpStatus.connecting','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','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','CloseIcon','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.validation.invalidConfig','univer-shrink-0\x20univer-text-red-500','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','_apiKey$','Copy\x20the\x20JSON\x20configuration\x20below','clipPath','什么是\x20API\x20密钥?','univer-space-y-3','_uiPartsService','univerjs-icon\x20univerjs-icon-','url(#off-line-icon_clip0_910_343)','MCP\x20连接中...','Configuration\x20saved\x20successfully','pluginName','Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer_session_id:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','sessionId$','_loadStoredApiKey','Configuration\x20Steps:','errorMessage','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20密钥无效,请检查密钥是否正确','url(#on-line-icon_clip0_910_349)','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpConfig.configParameters','http://www.w3.org/2000/svg','API\x20密钥长度至少需要\x2010\x20位','help-icon','Get\x20your\x20API\x20key\x20in\x20seconds','button','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','showConfigPanel','Click\x20to\x20configure\x20MCP','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Unauthorized','univer-bg-red-500','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','Click\x20to\x20connect\x20MCP','univer-text-sm\x20univer-font-medium','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','0\x200\x2016\x2016','mcpStatus.networkError','entries','21srnGpp','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','987200oYBsAc','MCP\x20Connection\x20Failed','univer-text-gray-400','mcpConfig.connectionStatus.connected','1em','Connection\x20Failed','univer-text-gray-500','MCP\x20连接失败','_messageService','mcpConfig.connectionError.sessionOccupied','Invalid\x20configuration','register','univer-bg-green-500','symbol','showStatus','MCP\x20已连接','SESSION_ID_OCCUPIED','mcpConfig.title','check-mark-icon','mcpConfig.apiKey','random','getConfig','OnLineIcon','_dialogService','univer-min-w-0\x20univer-flex-1','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.sessionIdDescription','_connectionController','_validateConfig','What\x20is\x20API\x20Key?','API\x20Key','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','tag','MCP\x20Connecting...','28500fpjwYA','univer-text-blue-600','currentColor','102KUMryU','HEADER_MENU','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','connectionStatus$','_loading$','COMMAND','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.connectionStatus.connecting','MCP:\x20超出最大重试次数','_initStatusComponent','Connecting...','toString','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Disconnected','apiKey','已连接','_mcpCoreConfig$','点击配置\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_config','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','setItem','children','use','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','value','NONE','mcpConfig.saving','_mcpConnectionController','CONNECTING','univer-text-sm\x20univer-text-gray-500','mcpConfig.note1','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Session\x20ID','UniverIcon','Authorization:','最大重试次数','subscribeConfigValue$','mcpConfig.connectionError.networkError','idSuffix','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','xlink:href','132712jEmbDA','您的\x20API\x20密钥安全存储在本地存储中','_initializeMenus','点击连接\x20MCP','重启您的\x20MCP\x20客户端以使配置生效','mcpConfig.apiKeyPlaceholder','https://console.univer.ai','<API_KEY>','mcpConfig.apiApplyInfo.univerAiLabel','CheckMarkIcon','2vTihLg','length','map','Enable\x20Authentication','univer-size-2\x20univer-rounded-full','span','_config$','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','CONNECTED','univer-text-white','MenuIcon','off-line-icon','复制以下\x20JSON\x20配置','univer-space-y-2','6124lonRhx','MCP\x20Configuration','mask','http','show','权限验证失败,请检查您的\x20API\x20密钥','_initConfigSync','MAX_RETRIES_EXCEEDED','none','error','mcpConfig.connectionStatus.failed','mcp.apiKey','MCP\x20Retrying...','mcpStatus.disconnected','url(#$1','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpConfig.configStepTitle','add','close-icon','mcpConfig.connectionError.unauthorized','配置参数:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','label','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer.ai','isValid','Univer\x20AI\x20控制台','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-bg-blue-500','path','配置步骤:','配置保存失败','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Retrying...','Save\x20Configuration','getOwnPropertyDescriptor','subscribe','RETRYING','close','NETWORK_ERROR','univer.plus','colorChannel1','div','mcpConfig.configStep3','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','on-line-icon_clip0_910_349','Enter\x20your\x20API\x20key','_createConfigPanelComponent','0\x200\x2017\x2016','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','mcpStatus.unauthorized','_localStorageService','Bearer\x20','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','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','mcpStatus.clickToConfigure','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP:\x20未授权','会话ID','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','defs','配置更改将立即生效','请输入您的\x20API\x20密钥','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','includes','HelpIcon','enableAutoConnect','evenodd','univer-text-xs\x20univer-text-gray-500','mcpConfig.authorizationDescription','stringify','registerComponent','__setCustomHeaders','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','UNAUTHORIZED','\x20-\x20','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','38346uGIpxi','bottom','round','mcpConfig.configStep1','onStarting','Univer\x20AI\x20Console','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','warn','mcpConfig.configSaved','defineProperty','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Enable\x20authentication\x20for\x20secure\x20connections','string','trim','mcpConfig.connectionStatus.disconnected','mcpStatus.unknown','mcpConfig.description','_configService','attrs','1082133bQUkkI','Failed\x20to\x20save\x20configuration','DISCONNECTED','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.validation.apiKeyTooShort','M0\x200H16V16H0z','fill','get','MCP:\x20网络错误','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_localeService','showDeveloperTools','MCP\x20已断开','univer-space-y-4','171146mpdKib','univer-text-green-500','https://mcp.univer.ai/mcp/?univer_session_id=','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.configInstructions','assign','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','forEach','open','svg','mcpConfig.apiApplyInfo.getStarted','_logService','API\x20key\x20with\x20Bearer\x20prefix.','_blank','validateApiKey'];_0x53df=function(){return _0x4cf681;};return _0x53df();}let O=class extends _0x597623{constructor(_0x5378ff,_0x89d2af,_0x54999d,_0x2a949a){const _0x43bdc3=_0x4d1dd5;super(),this[_0x43bdc3(0x2fb)]=_0x5378ff,this[_0x43bdc3(0x215)]=_0x89d2af,this['_uiPartsService']=_0x54999d,this[_0x43bdc3(0x2c1)]=_0x2a949a,this['_initAutoConnect'](),this[_0x43bdc3(0x228)]();}['_initAutoConnect'](){const _0x414383=_0x4d1dd5,_0x45e63e=this['_configService'][_0x414383(0x20f)](y);_0x45e63e!=null&&_0x45e63e[_0x414383(0x2ce)]&&(this[_0x414383(0x215)][_0x414383(0x2a5)]=!0x1);}[_0x4d1dd5(0x228)](){const _0x43b773=_0x4d1dd5,_0xa6827b=this[_0x43b773(0x2c1)][_0x43b773(0x20f)](y);(_0xa6827b==null?void 0x0:_0xa6827b[_0x43b773(0x208)])!==!0x1&&this[_0x43b773(0x2f0)](this[_0x43b773(0x1d1)][_0x43b773(0x2aa)](_0x36e436[_0x43b773(0x220)],()=>{const _0x35bb4b=_0x43b773;var _0x5ae22d;return _0x3ef36b(un({'status$':this[_0x35bb4b(0x215)][_0x35bb4b(0x222)],'error$':this[_0x35bb4b(0x215)][_0x35bb4b(0x2fe)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x5ae22d=_0xa6827b==null?void 0x0:_0xa6827b[_0x35bb4b(0x2ce)])!=null?_0x5ae22d:!0x1}),this[_0x35bb4b(0x2fb)]);}));}[_0x4d1dd5(0x1bc)](){const _0x450d63=_0x4d1dd5;this['_injector'][_0x450d63(0x2ca)](I)[_0x450d63(0x1ea)]();}};O=ln([M(0x0,_0x34e389(_0x54f8e1)),M(0x1,_0x34e389(_0x267a9e)),M(0x2,_0x5a2e5c),M(0x3,_0x23775e)],O);function un(_0x2920e7){const {status$:_0x478d95,error$:_0x912189,onConfigure:_0x27763a,showClickable:_0x3c5841}=_0x2920e7;return function(){return _0x3769df(cn,{'status$':_0x478d95,'error$':_0x912189,'onConfigure':_0x27763a,'showClickable':_0x3c5841});};}function vn(_0x40d320){const _0x24ad98=_0x4d1dd5;return{'id':V['id'],'type':_0x5b6cd8[_0x24ad98(0x1b6)],'icon':_0x24ad98(0x25e),'title':_0x24ad98(0x20b),'tooltip':_0x24ad98(0x20b)};}const dn={[_0x246484['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x4d1dd5(0x286)],pn=(_0x2aafff,_0x486d65,_0x1bd55b,_0x3b2a38)=>{const _0x51fc13=_0x4d1dd5;for(var _0x41cb73=_0x3b2a38>0x1?void 0x0:_0x3b2a38?gn(_0x486d65,_0x1bd55b):_0x486d65,_0x4ddea8=_0x2aafff[_0x51fc13(0x255)]-0x1,_0x749e7f;_0x4ddea8>=0x0;_0x4ddea8--)(_0x749e7f=_0x2aafff[_0x4ddea8])&&(_0x41cb73=_0x749e7f(_0x41cb73)||_0x41cb73);return _0x41cb73;},re=(_0x60a77a,_0x7323da)=>(_0x5df267,_0x1b41eb)=>_0x7323da(_0x5df267,_0x1b41eb,_0x60a77a);let D=class extends _0x597623{constructor(_0x3976c5,_0x481717){const _0x52efb3=_0x4d1dd5;super(),this['_commandService']=_0x3976c5,this[_0x52efb3(0x1ab)]=_0x481717,this[_0x52efb3(0x1b0)](),this[_0x52efb3(0x24c)]();}[_0x4d1dd5(0x1b0)](){const _0x11b76c=_0x4d1dd5;[V][_0x11b76c(0x2d9)](_0xbf8ca4=>{const _0x518c45=_0x11b76c;this[_0x518c45(0x2f0)](this[_0x518c45(0x2fc)][_0x518c45(0x1bb)](_0xbf8ca4));});}[_0x4d1dd5(0x24c)](){const _0x575573=_0x4d1dd5;this[_0x575573(0x1ab)]['mergeMenu'](dn);}};D=pn([re(0x0,_0x398280),re(0x1,_0x3b3a79)],D);const Mn={'mcpStatus':{'disconnected':_0x4d1dd5(0x22c),'connecting':_0x4d1dd5(0x21b),'connected':_0x4d1dd5(0x1b1),'failed':_0x4d1dd5(0x1fb),'retrying':_0x4d1dd5(0x26e),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4d1dd5(0x1ed),'sessionOccupied':_0x4d1dd5(0x1ec),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4d1dd5(0x1c8),'clickToConnect':_0x4d1dd5(0x1f0),'clickToConfigure':_0x4d1dd5(0x1eb)},'mcpConfig':{'title':_0x4d1dd5(0x263),'description':_0x4d1dd5(0x27e),'apiKey':_0x4d1dd5(0x218),'apiKeyPlaceholder':_0x4d1dd5(0x291),'apiKeyHint':_0x4d1dd5(0x1e9),'enableAuth':_0x4d1dd5(0x257),'enableAuthHint':_0x4d1dd5(0x2bb),'connectionInfo':_0x4d1dd5(0x2f6),'mcpClientConfig':_0x4d1dd5(0x2f6),'configInstructions':_0x4d1dd5(0x1f3),'configStepTitle':_0x4d1dd5(0x1dd),'configStep1':_0x4d1dd5(0x1cd),'configStep2':_0x4d1dd5(0x1f2),'configStep3':_0x4d1dd5(0x2ee),'sessionId':_0x4d1dd5(0x241),'sessionIdDescription':_0x4d1dd5(0x2af),'authorizationDescription':_0x4d1dd5(0x2de),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x4d1dd5(0x285),'saving':_0x4d1dd5(0x2e5),'note1':_0x4d1dd5(0x231),'note2':_0x4d1dd5(0x1da),'configSaved':_0x4d1dd5(0x1d5),'configError':_0x4d1dd5(0x2c4),'apiApplyInfo':{'title':_0x4d1dd5(0x217),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x4d1dd5(0x2b5),'getStarted':_0x4d1dd5(0x1e7)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x4d1dd5(0x2f4),'invalidConfig':_0x4d1dd5(0x204),'invalidApiKey':_0x4d1dd5(0x1d8)},'connectionStatus':{'disconnected':_0x4d1dd5(0x1d7),'connecting':_0x4d1dd5(0x229),'connected':_0x4d1dd5(0x1b4),'failed':_0x4d1dd5(0x1ff),'retrying':_0x4d1dd5(0x284)},'connectionError':{'unauthorized':_0x4d1dd5(0x2f8),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4d1dd5(0x1df),'maxRetriesExceeded':_0x4d1dd5(0x277)}}},An={'mcpStatus':{'disconnected':_0x4d1dd5(0x2cf),'connecting':_0x4d1dd5(0x1d4),'connected':_0x4d1dd5(0x209),'failed':_0x4d1dd5(0x201),'retrying':'MCP\x20重连中...','unknown':_0x4d1dd5(0x1b2),'unauthorized':_0x4d1dd5(0x29c),'sessionOccupied':_0x4d1dd5(0x1bd),'networkError':_0x4d1dd5(0x2cb),'maxRetriesExceeded':_0x4d1dd5(0x227),'clickToConnect':_0x4d1dd5(0x24d),'clickToConfigure':_0x4d1dd5(0x230)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x4d1dd5(0x2a1),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x4d1dd5(0x2ec),'mcpClientConfig':_0x4d1dd5(0x2ec),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x4d1dd5(0x281),'configStep1':_0x4d1dd5(0x260),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x4d1dd5(0x24e),'sessionId':_0x4d1dd5(0x29d),'sessionIdDescription':_0x4d1dd5(0x2a2),'authorizationDescription':_0x4d1dd5(0x29b),'configParameters':_0x4d1dd5(0x276),'maxRetries':_0x4d1dd5(0x244),'save':'保存配置','saving':_0x4d1dd5(0x2e2),'note1':_0x4d1dd5(0x2a0),'note2':_0x4d1dd5(0x24b),'configSaved':'配置保存成功','configError':_0x4d1dd5(0x282),'apiApplyInfo':{'title':_0x4d1dd5(0x1cf),'description':_0x4d1dd5(0x23f),'univerAiLabel':_0x4d1dd5(0x27d),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x4d1dd5(0x1e5),'invalidConfig':'配置无效','invalidApiKey':_0x4d1dd5(0x1e0)},'connectionStatus':{'disconnected':_0x4d1dd5(0x1c0),'connecting':_0x4d1dd5(0x2ed),'connected':_0x4d1dd5(0x22e),'failed':_0x4d1dd5(0x2f3),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x4d1dd5(0x267),'sessionOccupied':_0x4d1dd5(0x225),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x4d1dd5(0x2b9)],hn=Object[_0x4d1dd5(0x286)],Cn=(_0x15db22,_0x4538b4,_0x4f5026)=>_0x4538b4 in _0x15db22?fn(_0x15db22,_0x4538b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f5026}):_0x15db22[_0x4538b4]=_0x4f5026,mn=(_0x5cca55,_0x36f2f9,_0x3c8dc8,_0x2be957)=>{const _0x1f7463=_0x4d1dd5;for(var _0x12c0f0=_0x2be957>0x1?void 0x0:_0x2be957?hn(_0x36f2f9,_0x3c8dc8):_0x36f2f9,_0x1f4e48=_0x5cca55[_0x1f7463(0x255)]-0x1,_0x32340d;_0x1f4e48>=0x0;_0x1f4e48--)(_0x32340d=_0x5cca55[_0x1f4e48])&&(_0x12c0f0=_0x32340d(_0x12c0f0)||_0x12c0f0);return _0x12c0f0;},P=(_0x5e8edb,_0xdac9e5)=>(_0x29453d,_0x3a4d59)=>_0xdac9e5(_0x29453d,_0x3a4d59,_0x5e8edb),_n=(_0x3fa839,_0x14916b,_0x33d75a)=>Cn(_0x3fa839,_0x14916b+'',_0x33d75a);let j=class extends _0x300405{constructor(_0x481092=ie,_0x9b4cd5,_0x50bd7d,_0x6871b9,_0x300ad1,_0x2c59ad){const _0xf86bb3=_0x4d1dd5;super(),this['_config']=_0x481092,this['_injector']=_0x9b4cd5,this['_configService']=_0x50bd7d,this[_0xf86bb3(0x1d1)]=_0x6871b9,this[_0xf86bb3(0x296)]=_0x300ad1,this['_localeService']=_0x2c59ad;const {..._0x584471}=_0x7e5e4c({},ie,this[_0xf86bb3(0x232)]);this['_configService']['setConfig'](y,_0x584471);}async[_0x4d1dd5(0x2b4)](){const _0x48116e=_0x4d1dd5,_0x454b8c=[[O],[I],[D]];this[_0x48116e(0x2fb)]['has'](_0x43eddd)||_0x454b8c[_0x48116e(0x2fd)]([_0x43eddd,{'useClass':_0x3f40b3}]),_0x454b8c['forEach'](_0x438f3f=>this[_0x48116e(0x2fb)][_0x48116e(0x273)](_0x438f3f)),this[_0x48116e(0x2fb)][_0x48116e(0x2ca)](O),this[_0x48116e(0x2fb)][_0x48116e(0x2ca)](I),this[_0x48116e(0x2fb)][_0x48116e(0x2ca)](D);}};_n(j,_0x4d1dd5(0x1d6),'MCP_UI_PLUGIN'),j=mn([_0x249ad5(_0x51a3dd),P(0x1,_0x34e389(_0x54f8e1)),P(0x2,_0x23775e),P(0x3,_0x5a2e5c),P(0x4,_0x1ee390),P(0x5,_0x34e389(_0x408b12))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x5bd502=_0x5eb1;function _0x5eb1(_0x200b18,_0xbe28a3){const _0x3391b8=_0x3391();return _0x5eb1=function(_0x5eb147,_0x16eeea){_0x5eb147=_0x5eb147-0x1a5;let _0x1569c4=_0x3391b8[_0x5eb147];return _0x1569c4;},_0x5eb1(_0x200b18,_0xbe28a3);}function _0x3391(){const _0x47e8d8=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Failed\x20to\x20save\x20configuration','MCP\x20Connecting...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Unauthorized','3434IOlsiu','Univer\x20AI\x20Console','6320816XJrbpc','926325yRaGxd','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1773676VbgQTi','Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','5303745UlvjRY','Retrying...','MCP\x20Connection\x20Failed','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20configuration','Click\x20to\x20connect\x20MCP','MCP\x20Configuration','Enable\x20Authentication','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','7756650cjLIMU','MCP:\x20Network\x20Error','API\x20key\x20with\x20Bearer\x20prefix.','2742oxhIxd','MCP:\x20Max\x20Retries\x20Exceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Parameters:','5929YqIrYi','MCP:\x20Session\x20ID\x20Occupied','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Steps:','Disconnected','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20authentication\x20for\x20secure\x20connections','Enter\x20your\x20API\x20key','Connected','Configuration\x20saved\x20successfully','403hvwBzD'];_0x3391=function(){return _0x47e8d8;};return _0x3391();}(function(_0x4f9a58,_0x5050f7){const _0x117bbd=_0x5eb1,_0x445a82=_0x4f9a58();while(!![]){try{const _0x3b036a=-parseInt(_0x117bbd(0x1af))/0x1*(parseInt(_0x117bbd(0x1b5))/0x2)+-parseInt(_0x117bbd(0x1b8))/0x3+-parseInt(_0x117bbd(0x1bc))/0x4+parseInt(_0x117bbd(0x1bf))/0x5+-parseInt(_0x117bbd(0x1d0))/0x6*(parseInt(_0x117bbd(0x1d5))/0x7)+parseInt(_0x117bbd(0x1b7))/0x8+parseInt(_0x117bbd(0x1cd))/0x9;if(_0x3b036a===_0x5050f7)break;else _0x445a82['push'](_0x445a82['shift']());}catch(_0x23ecb5){_0x445a82['push'](_0x445a82['shift']());}}}(_0x3391,0xd7345));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5bd502(0x1b2),'connected':'MCP\x20Connected','failed':_0x5bd502(0x1c1),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x5bd502(0x1b4),'sessionOccupied':_0x5bd502(0x1a5),'networkError':_0x5bd502(0x1ce),'maxRetriesExceeded':_0x5bd502(0x1d1),'clickToConnect':_0x5bd502(0x1c5),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x5bd502(0x1c6),'description':_0x5bd502(0x1d3),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x5bd502(0x1ac),'apiKeyHint':_0x5bd502(0x1aa),'enableAuth':_0x5bd502(0x1c7),'enableAuthHint':_0x5bd502(0x1ab),'connectionInfo':_0x5bd502(0x1c2),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5bd502(0x1b3),'configStepTitle':_0x5bd502(0x1a7),'configStep1':_0x5bd502(0x1b9),'configStep2':_0x5bd502(0x1b0),'configStep3':_0x5bd502(0x1cc),'sessionId':'Session\x20ID','sessionIdDescription':_0x5bd502(0x1bb),'authorizationDescription':_0x5bd502(0x1cf),'configParameters':_0x5bd502(0x1d4),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0x5bd502(0x1cb),'note2':_0x5bd502(0x1ba),'configSaved':_0x5bd502(0x1ae),'configError':_0x5bd502(0x1b1),'apiApplyInfo':{'title':_0x5bd502(0x1a9),'description':_0x5bd502(0x1c8),'univerAiLabel':_0x5bd502(0x1b6),'getStarted':_0x5bd502(0x1c3)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5bd502(0x1ca),'invalidConfig':_0x5bd502(0x1c4),'invalidApiKey':_0x5bd502(0x1c9)},'connectionStatus':{'disconnected':_0x5bd502(0x1a8),'connecting':_0x5bd502(0x1bd),'connected':_0x5bd502(0x1ad),'failed':'Connection\x20Failed','retrying':_0x5bd502(0x1c0)},'connectionError':{'unauthorized':_0x5bd502(0x1a6),'sessionOccupied':_0x5bd502(0x1d2),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x5bd502(0x1be)}}},n=e;export{n as default};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x250513=_0x2ca3;function _0x5237(){const _0x213704=['MCP\x20Configuration','Invalid\x20configuration','4544883ZaiVMt','MCP:\x20Network\x20Error','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20authentication\x20for\x20secure\x20connections','Univer\x20AI\x20Console','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','453RwohqJ','Click\x20to\x20connect\x20MCP','3190580BMERcX','MCP\x20Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Max\x20Retries','1400694MEiamc','What\x20is\x20API\x20Key?','Retrying...','Configuration\x20Steps:','Configuration\x20Parameters:','MCP\x20Disconnected','Disconnected','Click\x20to\x20configure\x20MCP','MCP\x20Unknown\x20Status','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','454114jzagJi','Connection\x20Failed','Enter\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20with\x20Bearer\x20prefix.','Copy\x20the\x20JSON\x20configuration\x20below','Saving...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session\x20ID','Failed\x20to\x20save\x20configuration','3558560mbPvVq','API\x20key\x20is\x20required','2428vOPdOM','MCP:\x20Max\x20Retries\x20Exceeded','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connecting...','283765qrPeAI','MCP\x20Retrying...','Connecting...','Connected','MCP:\x20Session\x20ID\x20Occupied'];_0x5237=function(){return _0x213704;};return _0x5237();}function _0x2ca3(_0x23aa8b,_0x32bf21){const _0x523733=_0x5237();return _0x2ca3=function(_0x2ca306,_0x416c21){_0x2ca306=_0x2ca306-0x176;let _0x3174f8=_0x523733[_0x2ca306];return _0x3174f8;},_0x2ca3(_0x23aa8b,_0x32bf21);}(function(_0x234713,_0x5a6c4c){const _0x2d2d23=_0x2ca3,_0x2013fc=_0x234713();while(!![]){try{const _0x24081c=parseInt(_0x2d2d23(0x189))/0x1+-parseInt(_0x2d2d23(0x177))/0x2+-parseInt(_0x2d2d23(0x197))/0x3*(-parseInt(_0x2d2d23(0x184))/0x4)+parseInt(_0x2d2d23(0x199))/0x5+-parseInt(_0x2d2d23(0x19e))/0x6+-parseInt(_0x2d2d23(0x190))/0x7+parseInt(_0x2d2d23(0x182))/0x8;if(_0x24081c===_0x5a6c4c)break;else _0x2013fc['push'](_0x2013fc['shift']());}catch(_0x237147){_0x2013fc['push'](_0x2013fc['shift']());}}}(_0x5237,0x551a7));const e={'mcpStatus':{'disconnected':_0x250513(0x1a3),'connecting':_0x250513(0x188),'connected':'MCP\x20Connected','failed':_0x250513(0x19a),'retrying':_0x250513(0x18a),'unknown':_0x250513(0x1a6),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x250513(0x18d),'networkError':_0x250513(0x191),'maxRetriesExceeded':_0x250513(0x185),'clickToConnect':_0x250513(0x198),'clickToConfigure':_0x250513(0x1a5)},'mcpConfig':{'title':_0x250513(0x18e),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x250513(0x179),'apiKeyHint':_0x250513(0x17f),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x250513(0x194),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x250513(0x192),'configInstructions':_0x250513(0x17a),'configStepTitle':_0x250513(0x1a1),'configStep1':_0x250513(0x17c),'configStep2':_0x250513(0x176),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x250513(0x180),'sessionIdDescription':_0x250513(0x17e),'authorizationDescription':_0x250513(0x17b),'configParameters':_0x250513(0x1a2),'maxRetries':_0x250513(0x19d),'save':'Save\x20Configuration','saving':_0x250513(0x17d),'note1':_0x250513(0x19c),'note2':_0x250513(0x193),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x250513(0x181),'apiApplyInfo':{'title':_0x250513(0x19f),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x250513(0x195),'getStarted':_0x250513(0x186)},'validation':{'apiKeyRequired':_0x250513(0x183),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x250513(0x18f),'invalidApiKey':_0x250513(0x187)},'connectionStatus':{'disconnected':_0x250513(0x1a4),'connecting':_0x250513(0x18b),'connected':_0x250513(0x18c),'failed':_0x250513(0x178),'retrying':_0x250513(0x1a0)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x250513(0x1a7),'networkError':_0x250513(0x19b),'maxRetriesExceeded':_0x250513(0x196)}}};export{e as default};
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3b33d6=_0x4ce4;function _0x4ce4(_0x406fb6,_0xf23bf5){const _0x1b8ab6=_0x1b8a();return _0x4ce4=function(_0x4ce45d,_0x3d9500){_0x4ce45d=_0x4ce45d-0x9d;let _0x33b34e=_0x1b8ab6[_0x4ce45d];return _0x33b34e;},_0x4ce4(_0x406fb6,_0xf23bf5);}(function(_0x35650f,_0x44b006){const _0x43a9e8=_0x4ce4,_0x2d3cfd=_0x35650f();while(!![]){try{const _0x1fb434=-parseInt(_0x43a9e8(0xb4))/0x1*(-parseInt(_0x43a9e8(0xc5))/0x2)+-parseInt(_0x43a9e8(0xca))/0x3+-parseInt(_0x43a9e8(0xaa))/0x4+-parseInt(_0x43a9e8(0xc2))/0x5*(parseInt(_0x43a9e8(0xc6))/0x6)+parseInt(_0x43a9e8(0xc1))/0x7*(-parseInt(_0x43a9e8(0xb1))/0x8)+parseInt(_0x43a9e8(0xa6))/0x9+parseInt(_0x43a9e8(0xbf))/0xa;if(_0x1fb434===_0x44b006)break;else _0x2d3cfd['push'](_0x2d3cfd['shift']());}catch(_0x27bd8a){_0x2d3cfd['push'](_0x2d3cfd['shift']());}}}(_0x1b8a,0x25347));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3b33d6(0xa8),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x3b33d6(0xb9),'unknown':_0x3b33d6(0xbe),'unauthorized':_0x3b33d6(0xc0),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x3b33d6(0xa3),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3b33d6(0xa2)},'mcpConfig':{'title':_0x3b33d6(0xb5),'description':_0x3b33d6(0xc4),'apiKey':_0x3b33d6(0xba),'apiKeyPlaceholder':_0x3b33d6(0xbb),'apiKeyHint':_0x3b33d6(0xa9),'enableAuth':_0x3b33d6(0xab),'enableAuthHint':_0x3b33d6(0xc9),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x3b33d6(0xb2),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x3b33d6(0xbd),'configStep1':_0x3b33d6(0xa4),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3b33d6(0xc8),'sessionId':'Session\x20ID','sessionIdDescription':_0x3b33d6(0xb8),'authorizationDescription':_0x3b33d6(0xc7),'configParameters':_0x3b33d6(0xb3),'maxRetries':_0x3b33d6(0xac),'save':_0x3b33d6(0xaf),'saving':'Saving...','note1':_0x3b33d6(0xc3),'note2':_0x3b33d6(0xbc),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x3b33d6(0xa1),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3b33d6(0xb0),'univerAiLabel':_0x3b33d6(0xad),'getStarted':_0x3b33d6(0x9d)},'validation':{'apiKeyRequired':_0x3b33d6(0xae),'apiKeyTooShort':_0x3b33d6(0xa5),'invalidConfig':_0x3b33d6(0xb6),'invalidApiKey':_0x3b33d6(0xa7)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x3b33d6(0xb7),'retrying':_0x3b33d6(0x9f)},'connectionError':{'unauthorized':_0x3b33d6(0xa0),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x3b33d6(0x9e)}}},n=e;export{n as default};function _0x1b8a(){const _0x9f1451=['MCP:\x20Max\x20Retries\x20Exceeded','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','974745qxQywL','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1115532crjpPC','Enable\x20Authentication','Max\x20Retries','Univer\x20AI\x20Console','API\x20key\x20is\x20required','Save\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','112FHewpl','MCP\x20Client\x20Configuration','Configuration\x20Parameters:','185151pyqZuO','MCP\x20Configuration','Invalid\x20configuration','Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','API\x20Key','Enter\x20your\x20API\x20key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20Steps:','MCP\x20Unknown\x20Status','8383850qFUeoF','MCP:\x20Unauthorized','147476UnUfyT','200uiqMlK','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','2RDOLjw','28596AIUear','API\x20key\x20with\x20Bearer\x20prefix.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','644925zCavPP','Get\x20your\x20API\x20key\x20in\x20seconds','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Failed\x20to\x20save\x20configuration','Click\x20to\x20configure\x20MCP'];_0x1b8a=function(){return _0x9f1451;};return _0x1b8a();}
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5ba93b=_0x1dbd;function _0x1dbd(_0x7ba9fe,_0xa654d8){const _0x303463=_0x3034();return _0x1dbd=function(_0x1dbd07,_0x1cba0d){_0x1dbd07=_0x1dbd07-0x12b;let _0x40e2c9=_0x303463[_0x1dbd07];return _0x40e2c9;},_0x1dbd(_0x7ba9fe,_0xa654d8);}(function(_0x344a06,_0x5a750a){const _0x15a300=_0x1dbd,_0x1dbbf1=_0x344a06();while(!![]){try{const _0x47d0f2=-parseInt(_0x15a300(0x15a))/0x1*(parseInt(_0x15a300(0x12d))/0x2)+-parseInt(_0x15a300(0x156))/0x3*(parseInt(_0x15a300(0x136))/0x4)+-parseInt(_0x15a300(0x149))/0x5+-parseInt(_0x15a300(0x138))/0x6*(parseInt(_0x15a300(0x15d))/0x7)+-parseInt(_0x15a300(0x14f))/0x8+-parseInt(_0x15a300(0x14e))/0x9*(-parseInt(_0x15a300(0x13b))/0xa)+parseInt(_0x15a300(0x15f))/0xb;if(_0x47d0f2===_0x5a750a)break;else _0x1dbbf1['push'](_0x1dbbf1['shift']());}catch(_0x2a9c65){_0x1dbbf1['push'](_0x1dbbf1['shift']());}}}(_0x3034,0x3dbf0));const e={'mcpStatus':{'disconnected':_0x5ba93b(0x14a),'connecting':_0x5ba93b(0x154),'connected':_0x5ba93b(0x133),'failed':_0x5ba93b(0x147),'retrying':_0x5ba93b(0x132),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5ba93b(0x151),'networkError':_0x5ba93b(0x134),'maxRetriesExceeded':_0x5ba93b(0x144),'clickToConnect':_0x5ba93b(0x12f),'clickToConfigure':_0x5ba93b(0x152)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5ba93b(0x13d),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x5ba93b(0x13f),'apiKeyHint':_0x5ba93b(0x145),'enableAuth':_0x5ba93b(0x13e),'enableAuthHint':_0x5ba93b(0x139),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x5ba93b(0x153),'configInstructions':_0x5ba93b(0x14b),'configStepTitle':_0x5ba93b(0x140),'configStep1':_0x5ba93b(0x160),'configStep2':_0x5ba93b(0x159),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5ba93b(0x13a),'sessionIdDescription':_0x5ba93b(0x130),'authorizationDescription':_0x5ba93b(0x157),'configParameters':_0x5ba93b(0x131),'maxRetries':_0x5ba93b(0x12c),'save':_0x5ba93b(0x143),'saving':_0x5ba93b(0x148),'note1':_0x5ba93b(0x15e),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5ba93b(0x14d),'configError':_0x5ba93b(0x15c),'apiApplyInfo':{'title':_0x5ba93b(0x142),'description':_0x5ba93b(0x12b),'univerAiLabel':_0x5ba93b(0x161),'getStarted':_0x5ba93b(0x146)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5ba93b(0x15b),'invalidConfig':_0x5ba93b(0x13c),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5ba93b(0x158),'connecting':_0x5ba93b(0x141),'connected':_0x5ba93b(0x155),'failed':_0x5ba93b(0x135),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x5ba93b(0x150),'sessionOccupied':_0x5ba93b(0x137),'networkError':_0x5ba93b(0x12e),'maxRetriesExceeded':_0x5ba93b(0x14c)}}},n=e;function _0x3034(){const _0x193607=['Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connection\x20Failed','Saving...','939785mzKxKz','MCP\x20Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','18FYAkDJ','138736qILBRF','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Session\x20ID\x20Occupied','Click\x20to\x20configure\x20MCP','MCP\x20Client\x20Configuration','MCP\x20Connecting...','Connected','525tiDxqd','API\x20key\x20with\x20Bearer\x20prefix.','Disconnected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','49895LRqHhi','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Failed\x20to\x20save\x20configuration','7TIWxYd','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','7332721voBBsW','Copy\x20the\x20JSON\x20configuration\x20below','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.','Max\x20Retries','2hlgFtC','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20connect\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Parameters:','MCP\x20Retrying...','MCP\x20Connected','MCP:\x20Network\x20Error','Connection\x20Failed','6656iykuFD','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','863814mYfzGL','Enable\x20authentication\x20for\x20secure\x20connections','Session\x20ID','1383320XduxQV','Invalid\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20Authentication','Enter\x20your\x20API\x20key','Configuration\x20Steps:','Connecting...','What\x20is\x20API\x20Key?','Save\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser'];_0x3034=function(){return _0x193607;};return _0x3034();}export{n as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x2772(){const _0x1ce55e=['34MhTyQM','324232imLLUq','API\x20Key','Retrying...','Save\x20Configuration','Univer\x20AI\x20Console','Max\x20Retries','Connected','157020LUaozQ','Enable\x20authentication\x20for\x20secure\x20connections','Enable\x20Authentication','9817654BHkKIY','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Client\x20Configuration','MCP\x20Connection\x20Failed','21917zegoiK','What\x20is\x20API\x20Key?','Disconnected','3252537PXabdy','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','56YNsvtE','Failed\x20to\x20save\x20configuration','1884IgUXpl','Configuration\x20Steps:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connected','1525nHtFgn','MCP:\x20Network\x20Error','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','Invalid\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Max\x20Retries\x20Exceeded','Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','Click\x20to\x20connect\x20MCP','723084oMxMpx','MCP:\x20Unauthorized','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enter\x20your\x20API\x20key','10fBlqbg','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Unknown\x20Status','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Saving...','MCP\x20Disconnected','MCP\x20Configuration','Click\x20to\x20configure\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds'];_0x2772=function(){return _0x1ce55e;};return _0x2772();}const _0xf0b476=_0x1e89;(function(_0x57adc4,_0xe8721b){const _0x15c9d3=_0x1e89,_0x489879=_0x57adc4();while(!![]){try{const _0x468832=parseInt(_0x15c9d3(0xaa))/0x1*(parseInt(_0x15c9d3(0x9b))/0x2)+parseInt(_0x15c9d3(0xa3))/0x3+-parseInt(_0x15c9d3(0x7c))/0x4*(-parseInt(_0x15c9d3(0x80))/0x5)+-parseInt(_0x15c9d3(0x8e))/0x6+-parseInt(_0x15c9d3(0xb0))/0x7*(-parseInt(_0x15c9d3(0x9c))/0x8)+parseInt(_0x15c9d3(0xad))/0x9*(parseInt(_0x15c9d3(0x92))/0xa)+-parseInt(_0x15c9d3(0xa6))/0xb;if(_0x468832===_0xe8721b)break;else _0x489879['push'](_0x489879['shift']());}catch(_0x4a5a18){_0x489879['push'](_0x489879['shift']());}}}(_0x2772,0x3ae1d));function _0x1e89(_0x272d37,_0x7d575f){const _0x27727c=_0x2772();return _0x1e89=function(_0x1e8942,_0x34d668){_0x1e8942=_0x1e8942-0x7b;let _0x179de4=_0x27727c[_0x1e8942];return _0x179de4;},_0x1e89(_0x272d37,_0x7d575f);}const e={'mcpStatus':{'disconnected':_0xf0b476(0x97),'connecting':'MCP\x20Connecting...','connected':_0xf0b476(0x7f),'failed':_0xf0b476(0xa9),'retrying':_0xf0b476(0x83),'unknown':_0xf0b476(0x94),'unauthorized':_0xf0b476(0x8f),'sessionOccupied':_0xf0b476(0xae),'networkError':_0xf0b476(0x81),'maxRetriesExceeded':_0xf0b476(0x89),'clickToConnect':_0xf0b476(0x8d),'clickToConfigure':_0xf0b476(0x99)},'mcpConfig':{'title':_0xf0b476(0x98),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0xf0b476(0x9d),'apiKeyPlaceholder':_0xf0b476(0x91),'apiKeyHint':_0xf0b476(0x95),'enableAuth':_0xf0b476(0xa5),'enableAuthHint':_0xf0b476(0xa4),'connectionInfo':_0xf0b476(0xa8),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xf0b476(0x7d),'configStep1':_0xf0b476(0x85),'configStep2':_0xf0b476(0x8b),'configStep3':_0xf0b476(0x93),'sessionId':'Session\x20ID','sessionIdDescription':_0xf0b476(0x82),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0xf0b476(0x8c),'maxRetries':_0xf0b476(0xa1),'save':_0xf0b476(0x9f),'saving':_0xf0b476(0x96),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0xf0b476(0x7e),'configSaved':_0xf0b476(0x87),'configError':_0xf0b476(0x7b),'apiApplyInfo':{'title':_0xf0b476(0xab),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0xf0b476(0xa0),'getStarted':_0xf0b476(0x9a)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xf0b476(0xaf),'invalidConfig':_0xf0b476(0x84),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0xf0b476(0xac),'connecting':'Connecting...','connected':_0xf0b476(0xa2),'failed':_0xf0b476(0x8a),'retrying':_0xf0b476(0x9e)},'connectionError':{'unauthorized':_0xf0b476(0xa7),'sessionOccupied':_0xf0b476(0x86),'networkError':_0xf0b476(0x88),'maxRetriesExceeded':_0xf0b476(0x90)}}},n=e;export{n as default};
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1c5a(_0x4cf18f,_0x36bc1b){const _0x331249=_0x3312();return _0x1c5a=function(_0x1c5aae,_0x99d74c){_0x1c5aae=_0x1c5aae-0xf4;let _0x240de9=_0x331249[_0x1c5aae];return _0x240de9;},_0x1c5a(_0x4cf18f,_0x36bc1b);}function _0x3312(){const _0xc5d66c=['Univer\x20AI\x20Console','Max\x20Retries','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Unauthorized','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Session\x20ID','9298ExZWyM','Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Disconnected','Click\x20to\x20configure\x20MCP','70CcwgNQ','350YNnZMn','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1998969AdWiWi','402328qCKrfv','3600670VZZlzt','Enter\x20your\x20API\x20key','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20Authentication','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Retrying...','16964XsBRJs','Save\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Network\x20Error','185nISaRu','Configuration\x20Steps:','API\x20Key','Click\x20to\x20connect\x20MCP','API\x20key\x20is\x20required','Failed\x20to\x20save\x20configuration','22231440wSpsvq','9IhaDwO','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Configuration','178176QmXGHB','Connected','MCP\x20Connection\x20Failed'];_0x3312=function(){return _0xc5d66c;};return _0x3312();}const _0x3ec9db=_0x1c5a;(function(_0x588253,_0x48c352){const _0x1761f5=_0x1c5a,_0x15bfe8=_0x588253();while(!![]){try{const _0x2db512=-parseInt(_0x1761f5(0xfc))/0x1*(parseInt(_0x1761f5(0xf6))/0x2)+parseInt(_0x1761f5(0xfe))/0x3+parseInt(_0x1761f5(0x10f))/0x4*(-parseInt(_0x1761f5(0x113))/0x5)+parseInt(_0x1761f5(0x11d))/0x6*(parseInt(_0x1761f5(0xfb))/0x7)+-parseInt(_0x1761f5(0xff))/0x8*(-parseInt(_0x1761f5(0x11a))/0x9)+-parseInt(_0x1761f5(0x100))/0xa+parseInt(_0x1761f5(0x119))/0xb;if(_0x2db512===_0x48c352)break;else _0x15bfe8['push'](_0x15bfe8['shift']());}catch(_0x1caaaf){_0x15bfe8['push'](_0x15bfe8['shift']());}}}(_0x3312,0xd9670));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x3ec9db(0x10c),'failed':_0x3ec9db(0x11f),'retrying':_0x3ec9db(0x10e),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x3ec9db(0x127),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3ec9db(0x112),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3ec9db(0x116),'clickToConfigure':_0x3ec9db(0xfa)},'mcpConfig':{'title':_0x3ec9db(0x11c),'description':_0x3ec9db(0x103),'apiKey':_0x3ec9db(0x115),'apiKeyPlaceholder':_0x3ec9db(0x101),'apiKeyHint':_0x3ec9db(0xf8),'enableAuth':_0x3ec9db(0x104),'enableAuthHint':_0x3ec9db(0x10b),'connectionInfo':_0x3ec9db(0x102),'mcpClientConfig':_0x3ec9db(0x102),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x3ec9db(0x114),'configStep1':_0x3ec9db(0x106),'configStep2':_0x3ec9db(0xf4),'configStep3':_0x3ec9db(0x11b),'sessionId':_0x3ec9db(0xf5),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x3ec9db(0x123),'configParameters':_0x3ec9db(0x105),'maxRetries':_0x3ec9db(0x121),'save':_0x3ec9db(0x110),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3ec9db(0xfd),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x3ec9db(0x118),'apiApplyInfo':{'title':_0x3ec9db(0x125),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x3ec9db(0x120),'getStarted':_0x3ec9db(0x109)},'validation':{'apiKeyRequired':_0x3ec9db(0x117),'apiKeyTooShort':_0x3ec9db(0x124),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3ec9db(0x122)},'connectionStatus':{'disconnected':_0x3ec9db(0xf9),'connecting':_0x3ec9db(0x10a),'connected':_0x3ec9db(0x11e),'failed':_0x3ec9db(0xf7),'retrying':_0x3ec9db(0x107)},'connectionError':{'unauthorized':_0x3ec9db(0x108),'sessionOccupied':_0x3ec9db(0x111),'networkError':_0x3ec9db(0x10d),'maxRetriesExceeded':_0x3ec9db(0x126)}}},n=e;export{n as default};
|