@univerjs-pro/mcp-ui 0.10.9-nightly.202509260614 → 0.10.10
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.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 +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x16b0a0=_0x3975;(function(_0x4bafbd,_0x1d8e8f){var _0x2bac28=_0x3975,_0x5133c1=_0x4bafbd();while(!![]){try{var _0x57d0cf=-parseInt(_0x2bac28(0x23f))/0x1+parseInt(_0x2bac28(0x318))/0x2+-parseInt(_0x2bac28(0x2f7))/0x3*(-parseInt(_0x2bac28(0x24e))/0x4)+-parseInt(_0x2bac28(0x28e))/0x5*(parseInt(_0x2bac28(0x29a))/0x6)+parseInt(_0x2bac28(0x1f0))/0x7+-parseInt(_0x2bac28(0x2aa))/0x8+parseInt(_0x2bac28(0x2c3))/0x9;if(_0x57d0cf===_0x1d8e8f)break;else _0x5133c1['push'](_0x5133c1['shift']());}catch(_0x2bf67e){_0x5133c1['push'](_0x5133c1['shift']());}}}(_0x2aa2,0xde55c));var ue=Object[_0x16b0a0(0x2f5)],le=(_0x32b457,_0x41dd98,_0x46c826)=>_0x41dd98 in _0x32b457?ue(_0x32b457,_0x41dd98,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46c826}):_0x32b457[_0x41dd98]=_0x46c826,I=(_0x23428f,_0x5333ea,_0x1abcc1)=>le(_0x23428f,typeof _0x5333ea!=_0x16b0a0(0x327)?_0x5333ea+'':_0x5333ea,_0x1abcc1);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const l=require('@univerjs/core'),t=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),S=require('@univerjs/design'),v=require('@univerjs/ui'),N=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _0x3975(_0x41e92e,_0xfdd023){var _0x2aa278=_0x2aa2();return _0x3975=function(_0x3975db,_0x442086){_0x3975db=_0x3975db-0x1a5;var _0x49adbe=_0x2aa278[_0x3975db];return _0x49adbe;},_0x3975(_0x41e92e,_0xfdd023);}var g=function(){var _0x5c59bf=_0x16b0a0;return g=Object[_0x5c59bf(0x243)]||function(_0xdc8030){var _0x2a3426=_0x5c59bf;for(var _0x2417db,_0x2f7627=0x1,_0xde8610=arguments[_0x2a3426(0x281)];_0x2f7627<_0xde8610;_0x2f7627++){_0x2417db=arguments[_0x2f7627];for(var _0x5c6323 in _0x2417db)Object[_0x2a3426(0x319)][_0x2a3426(0x285)]['call'](_0x2417db,_0x5c6323)&&(_0xdc8030[_0x5c6323]=_0x2417db[_0x5c6323]);}return _0xdc8030;},g[_0x5c59bf(0x263)](this,arguments);},ve=function(_0xd8e669,_0x5c6817){var _0x4bee80=_0x16b0a0,_0x3cd727={};for(var _0x2154da in _0xd8e669)Object['prototype'][_0x4bee80(0x285)][_0x4bee80(0x2bf)](_0xd8e669,_0x2154da)&&_0x5c6817['indexOf'](_0x2154da)<0x0&&(_0x3cd727[_0x2154da]=_0xd8e669[_0x2154da]);if(_0xd8e669!=null&&typeof Object[_0x4bee80(0x301)]==_0x4bee80(0x2be)){for(var _0x455743=0x0,_0x2154da=Object['getOwnPropertySymbols'](_0xd8e669);_0x455743<_0x2154da['length'];_0x455743++)_0x5c6817[_0x4bee80(0x20b)](_0x2154da[_0x455743])<0x0&&Object['prototype'][_0x4bee80(0x1cf)]['call'](_0xd8e669,_0x2154da[_0x455743])&&(_0x3cd727[_0x2154da[_0x455743]]=_0xd8e669[_0x2154da[_0x455743]]);}return _0x3cd727;},_=d[_0x16b0a0(0x2f0)](function(_0x6c14e1,_0x2f5148){var _0x4eda8c=_0x16b0a0,_0x430d8b=_0x6c14e1[_0x4eda8c(0x2a5)],_0x2884c6=_0x6c14e1['id'],_0x21efa3=_0x6c14e1[_0x4eda8c(0x1c8)],_0x123991=_0x6c14e1['extend'],_0x421cea=ve(_0x6c14e1,['icon','id','className',_0x4eda8c(0x28b)]),_0x3aa748=_0x4eda8c(0x323)[_0x4eda8c(0x22e)](_0x2884c6,'\x20')[_0x4eda8c(0x22e)](_0x21efa3||'')['trim'](),_0x570482=d[_0x4eda8c(0x2fb)]('_'['concat'](ge()));return H(_0x430d8b,''[_0x4eda8c(0x22e)](_0x2884c6),{'defIds':_0x430d8b[_0x4eda8c(0x2c0)],'idSuffix':_0x570482[_0x4eda8c(0x24d)]},g({'ref':_0x2f5148,'className':_0x3aa748},_0x421cea),_0x123991);});function H(_0x5d307f,_0x112e7e,_0x505a43,_0x5a7511,_0x381a61){var _0x16479d=_0x16b0a0;return d[_0x16479d(0x1e0)](_0x5d307f[_0x16479d(0x2dd)],g(g({'key':_0x112e7e},de(_0x5d307f,_0x505a43,_0x381a61)),_0x5a7511),(Ce(_0x5d307f,_0x505a43)[_0x16479d(0x1b4)]||[])['map'](function(_0x1b72b0,_0x333b8b){var _0xac3617=_0x16479d;return H(_0x1b72b0,''[_0xac3617(0x22e)](_0x112e7e,'-')['concat'](_0x5d307f['tag'],'-')[_0xac3617(0x22e)](_0x333b8b),_0x505a43,void 0x0,_0x381a61);}));}function de(_0x5f31e0,_0x131d85,_0xb809cc){var _0xf2a430=_0x16b0a0,_0x50c9bc=g({},_0x5f31e0[_0xf2a430(0x2f3)]);_0xb809cc!=null&&_0xb809cc[_0xf2a430(0x271)]&&_0x50c9bc['fill']===_0xf2a430(0x271)&&(_0x50c9bc['fill']=_0xb809cc[_0xf2a430(0x271)]),_0x5f31e0[_0xf2a430(0x2dd)]===_0xf2a430(0x1f3)&&_0x50c9bc['id']&&(_0x50c9bc['id']=_0x50c9bc['id']+_0x131d85[_0xf2a430(0x1f6)]),Object['entries'](_0x50c9bc)[_0xf2a430(0x1cc)](function(_0x37dea5){var _0x5ed3fd=_0xf2a430,_0x429f89=_0x37dea5[0x0],_0x8bf977=_0x37dea5[0x1];_0x429f89===_0x5ed3fd(0x1f3)&&typeof _0x8bf977==_0x5ed3fd(0x2ab)&&(_0x50c9bc[_0x429f89]=_0x8bf977[_0x5ed3fd(0x237)](/url\(#(.*)\)/,_0x5ed3fd(0x2c2)['concat'](_0x131d85[_0x5ed3fd(0x1f6)],')')));});var _0x1e3cfd=_0x131d85[_0xf2a430(0x2c0)];return!_0x1e3cfd||_0x1e3cfd[_0xf2a430(0x281)]===0x0||(_0x5f31e0[_0xf2a430(0x2dd)]===_0xf2a430(0x2e6)&&_0x50c9bc[_0xf2a430(0x32f)]&&(_0x50c9bc[_0xf2a430(0x32f)]=_0x50c9bc[_0xf2a430(0x32f)]+_0x131d85[_0xf2a430(0x1f6)]),Object[_0xf2a430(0x27a)](_0x50c9bc)[_0xf2a430(0x1cc)](function(_0x52ba62){var _0x230184=_0xf2a430,_0x2ab56e=_0x52ba62[0x0],_0x1ba69d=_0x52ba62[0x1];typeof _0x1ba69d==_0x230184(0x2ab)&&(_0x50c9bc[_0x2ab56e]=_0x1ba69d['replace'](/url\(#(.*)\)/,'url(#$1'[_0x230184(0x22e)](_0x131d85[_0x230184(0x1f6)],')')));})),_0x50c9bc;}function Ce(_0x2b5a4e,_0x244d67){var _0x101a63=_0x16b0a0,_0x44387f,_0x5587e0=_0x244d67[_0x101a63(0x2c0)];return!_0x5587e0||_0x5587e0[_0x101a63(0x281)]===0x0?_0x2b5a4e:_0x2b5a4e[_0x101a63(0x2dd)]===_0x101a63(0x22f)&&(!((_0x44387f=_0x2b5a4e['children'])===null||_0x44387f===void 0x0)&&_0x44387f['length'])?g(g({},_0x2b5a4e),{'children':_0x2b5a4e[_0x101a63(0x1b4)][_0x101a63(0x1b7)](function(_0x168451){var _0x6757ff=_0x101a63;return typeof _0x168451[_0x6757ff(0x2f3)]['id']==_0x6757ff(0x2ab)&&_0x5587e0&&_0x5587e0[_0x6757ff(0x2bd)](_0x168451[_0x6757ff(0x2f3)]['id'])?g(g({},_0x168451),{'attrs':g(g({},_0x168451[_0x6757ff(0x2f3)]),{'id':_0x168451[_0x6757ff(0x2f3)]['id']+_0x244d67['idSuffix']})}):_0x168451;})}):_0x2b5a4e;}function ge(){var _0x4136fc=_0x16b0a0;return Math[_0x4136fc(0x20f)]()[_0x4136fc(0x26c)](0x24)[_0x4136fc(0x23e)](0x2,0x8);}_[_0x16b0a0(0x264)]=_0x16b0a0(0x279);var fe={'tag':_0x16b0a0(0x1ff),'attrs':{'xmlns':_0x16b0a0(0x2c6),'fill':_0x16b0a0(0x321),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':_0x16b0a0(0x254),'attrs':{'fill':'currentColor','d':_0x16b0a0(0x229),'fillRule':_0x16b0a0(0x302),'clipRule':_0x16b0a0(0x302)}}]},B=d['forwardRef'](function(_0x33cc0b,_0x2165b5){var _0x5d033c=_0x16b0a0;return d[_0x5d033c(0x1e0)](_,Object[_0x5d033c(0x243)]({},_0x33cc0b,{'id':_0x5d033c(0x1fc),'ref':_0x2165b5,'icon':fe}));});B['displayName']=_0x16b0a0(0x1f7);var pe={'tag':_0x16b0a0(0x1ff),'attrs':{'xmlns':_0x16b0a0(0x2c6),'fill':_0x16b0a0(0x321),'viewBox':_0x16b0a0(0x316),'width':_0x16b0a0(0x2f9),'height':_0x16b0a0(0x2f9)},'children':[{'tag':_0x16b0a0(0x254),'attrs':{'stroke':_0x16b0a0(0x1db),'d':_0x16b0a0(0x226),'strokeLinecap':_0x16b0a0(0x23a),'strokeLinejoin':_0x16b0a0(0x23a),'strokeWidth':1.33}},{'tag':_0x16b0a0(0x254),'attrs':{'stroke':_0x16b0a0(0x1db),'d':_0x16b0a0(0x1b9),'strokeLinecap':_0x16b0a0(0x23a),'strokeLinejoin':'round','strokeWidth':1.33}}]},F=d[_0x16b0a0(0x2f0)](function(_0x3c2b56,_0x3347d0){var _0x30e334=_0x16b0a0;return d[_0x30e334(0x1e0)](_,Object[_0x30e334(0x243)]({},_0x3c2b56,{'id':'close-small-single','ref':_0x3347d0,'icon':pe}));});F[_0x16b0a0(0x264)]=_0x16b0a0(0x289);var he={'tag':_0x16b0a0(0x1ff),'attrs':{'xmlns':_0x16b0a0(0x2c6),'fill':_0x16b0a0(0x321),'viewBox':'0\x200\x2016\x2016','width':_0x16b0a0(0x2f9),'height':_0x16b0a0(0x2f9)},'children':[{'tag':_0x16b0a0(0x254),'attrs':{'fill':'currentColor','d':_0x16b0a0(0x1d2)}},{'tag':_0x16b0a0(0x254),'attrs':{'fill':'currentColor','d':_0x16b0a0(0x31c)}},{'tag':_0x16b0a0(0x254),'attrs':{'fill':_0x16b0a0(0x1db),'d':_0x16b0a0(0x252),'fillRule':_0x16b0a0(0x302),'clipRule':_0x16b0a0(0x302)}}]},Y=d[_0x16b0a0(0x2f0)](function(_0x57da94,_0x48b5a5){var _0x5a65a9=_0x16b0a0;return d[_0x5a65a9(0x1e0)](_,Object['assign']({},_0x57da94,{'id':_0x5a65a9(0x1b3),'ref':_0x48b5a5,'icon':he}));});Y[_0x16b0a0(0x264)]=_0x16b0a0(0x1ba);var me={'tag':_0x16b0a0(0x1ff),'attrs':{'xmlns':_0x16b0a0(0x2c6),'fill':_0x16b0a0(0x321),'viewBox':_0x16b0a0(0x2de),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x16b0a0(0x1ed)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x16b0a0(0x23a),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x16b0a0(0x22f),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x16b0a0(0x1c7)},'children':[{'tag':_0x16b0a0(0x254),'attrs':{'fill':_0x16b0a0(0x272),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x16b0a0(0x1c7)]},q=d[_0x16b0a0(0x2f0)](function(_0x3f6529,_0x4db0c4){var _0x538d4a=_0x16b0a0;return d[_0x538d4a(0x1e0)](_,Object['assign']({},_0x3f6529,{'id':_0x538d4a(0x284),'ref':_0x4db0c4,'icon':me}));});q['displayName']=_0x16b0a0(0x333);var xe={'tag':_0x16b0a0(0x1ff),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x16b0a0(0x321),'viewBox':'0\x200\x2017\x2016','width':_0x16b0a0(0x2f9),'height':_0x16b0a0(0x2f9)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x16b0a0(0x254),'attrs':{'stroke':'currentColor','d':_0x16b0a0(0x30f),'strokeLinecap':_0x16b0a0(0x23a),'strokeLinejoin':_0x16b0a0(0x23a),'strokeWidth':1.2}}]},{'tag':_0x16b0a0(0x22f),'attrs':{},'children':[{'tag':_0x16b0a0(0x29d),'attrs':{'id':_0x16b0a0(0x2cf)},'children':[{'tag':_0x16b0a0(0x254),'attrs':{'fill':_0x16b0a0(0x272),'d':_0x16b0a0(0x1c1),'transform':_0x16b0a0(0x324)}}]}]}],'defIds':[_0x16b0a0(0x2cf)]},V=d['forwardRef'](function(_0x16fa37,_0x43717b){var _0x3fed7d=_0x16b0a0;return d['createElement'](_,Object['assign']({},_0x16fa37,{'id':_0x3fed7d(0x290),'ref':_0x43717b,'icon':xe}));});V[_0x16b0a0(0x264)]=_0x16b0a0(0x2fe);function W(_0x2220a7){var _0x1a2508=_0x16b0a0,_0x4c46e7,_0x34d0c2;const {mcpCoreConfig:_0x1cd484,onSave:_0xba94e,loading:_0x501eed=!0x1,config:_0x1802e0,connectionStatus$:_0x1565ff,connectionError$:_0x297b9a,currentApiKey$:_0x58335d,currentSessionId$:_0x20fdff}=_0x2220a7,_0x176232=v[_0x1a2508(0x21d)](l[_0x1a2508(0x24a)]),_0x42ae55=v[_0x1a2508(0x20d)](_0x1565ff,s[_0x1a2508(0x232)][_0x1a2508(0x282)]),_0x290905=v[_0x1a2508(0x20d)](_0x297b9a,s[_0x1a2508(0x2e8)]['NONE']),_0x5c687c=v[_0x1a2508(0x20d)](_0x20fdff,''),_0x3f99d9=v['useObservable'](_0x58335d,''),[_0x52567c,_0x4cee95]=d['useState'](_0x3f99d9||''),_0x2b0d7f=!0x0,_0x56d8de=_0x1802e0['showDeveloperTools']&&_0x1cd484[_0x1a2508(0x204)]&&(_0x1cd484[_0x1a2508(0x204)]['includes'](_0x1a2508(0x2d2))||_0x1cd484[_0x1a2508(0x204)]['includes']('univer.ai')),_0x3002da=(_0x4c46e7=_0x1cd484[_0x1a2508(0x204)])==null?void 0x0:_0x4c46e7[_0x1a2508(0x2bd)]('univer.plus'),_0x28360d=(_0x34d0c2=_0x1cd484[_0x1a2508(0x204)])==null?void 0x0:_0x34d0c2[_0x1a2508(0x2bd)](_0x1a2508(0x2ec)),_0x10c9bf=_0x3002da?_0x1a2508(0x29b):'https://console.univer.ai',_0x12d702=_0x1802e0['showDeveloperTools']&&(_0x3002da||_0x28360d),[_0x9c0a51,_0x423719]=d[_0x1a2508(0x21e)](!_0x52567c[_0x1a2508(0x1a6)]()),_0x7b16be=(_0x3e638b,_0x3472a3)=>{var _0x3083d6=_0x1a2508;if(_0x3472a3===s[_0x3083d6(0x2e8)][_0x3083d6(0x2ca)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x3e638b){case s['MCPConnectionStatus'][_0x3083d6(0x222)]:return _0x3083d6(0x2cc);case s['MCPConnectionStatus'][_0x3083d6(0x1bb)]:case s[_0x3083d6(0x232)][_0x3083d6(0x31b)]:return _0x3083d6(0x269);case s[_0x3083d6(0x232)]['FAILED']:return _0x3083d6(0x2af);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x47d3f0=(_0x260090,_0x52a00f)=>{var _0x3b64e8=_0x1a2508;if(_0x52a00f===s[_0x3b64e8(0x2e8)][_0x3b64e8(0x2ca)])return'univer-bg-red-500';switch(_0x260090){case s[_0x3b64e8(0x232)][_0x3b64e8(0x222)]:return _0x3b64e8(0x2fc);case s['MCPConnectionStatus'][_0x3b64e8(0x1bb)]:case s[_0x3b64e8(0x232)][_0x3b64e8(0x31b)]:return _0x3b64e8(0x1ee);case s[_0x3b64e8(0x232)][_0x3b64e8(0x32c)]:return _0x3b64e8(0x1ca);default:return _0x3b64e8(0x24b);}},_0x528f3f=_0x510873=>{var _0x44bbdc=_0x1a2508;switch(_0x510873){case s[_0x44bbdc(0x232)]['CONNECTED']:return _0x176232['t']('mcpConfig.connectionStatus.connected');case s[_0x44bbdc(0x232)][_0x44bbdc(0x1bb)]:return _0x176232['t'](_0x44bbdc(0x2d0));case s[_0x44bbdc(0x232)]['FAILED']:return _0x176232['t'](_0x44bbdc(0x23b));case s[_0x44bbdc(0x232)][_0x44bbdc(0x31b)]:return _0x176232['t'](_0x44bbdc(0x201));default:return _0x176232['t'](_0x44bbdc(0x1bf));}},_0x4022ad=_0x5f139d=>{var _0x56ea0c=_0x1a2508;switch(_0x5f139d){case s[_0x56ea0c(0x2e8)][_0x56ea0c(0x2ca)]:return _0x176232['t'](_0x56ea0c(0x1eb));case s[_0x56ea0c(0x2e8)][_0x56ea0c(0x1e2)]:return _0x176232['t'](_0x56ea0c(0x24c));case s['MCPConnectionError'][_0x56ea0c(0x1b1)]:return _0x176232['t']('mcpConfig.connectionError.networkError');case s['MCPConnectionError'][_0x56ea0c(0x32e)]:return _0x176232['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x2c4039=d[_0x1a2508(0x1ab)](()=>{var _0x49f575=_0x1a2508;const _0x2fd6c6={..._0x1cd484,'apiKey':_0x52567c[_0x49f575(0x1a6)](),'enableAuth':_0x2b0d7f};_0xba94e(_0x2fd6c6);},[_0x1cd484,_0x52567c,_0x2b0d7f,_0xba94e]),_0x102761=_0x52567c[_0x1a2508(0x1a6)]()[_0x1a2508(0x281)]>0x0;return t[_0x1a2508(0x266)]('div',{'className':_0x1a2508(0x2a9),'children':[t['jsx'](_0x1a2508(0x26f),{'className':_0x1a2508(0x1fa),'children':t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':_0x1a2508(0x205),'children':[t[_0x1a2508(0x21b)](_0x1a2508(0x26f),{'className':_0x1a2508(0x206),'children':t['jsx'](_0x1a2508(0x274),{'className':'univer-text-white','children':'⚙'})}),t[_0x1a2508(0x21b)](_0x1a2508(0x26f),{'children':t['jsx']('p',{'className':_0x1a2508(0x2ef),'children':_0x176232['t']('mcpConfig.description')})})]})}),t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':_0x1a2508(0x1d1),'children':[t[_0x1a2508(0x21b)](_0x1a2508(0x26f),{'className':_0x1a2508(0x28f)+_0x7b16be(_0x42ae55,_0x290905)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':t[_0x1a2508(0x266)]('div',{'className':_0x1a2508(0x230),'children':[t[_0x1a2508(0x21b)](_0x1a2508(0x26f),{'className':_0x1a2508(0x2e5)+_0x47d3f0(_0x42ae55,_0x290905)+_0x1a2508(0x248)}),t[_0x1a2508(0x21b)](_0x1a2508(0x274),{'className':_0x1a2508(0x2ac),'children':_0x528f3f(_0x42ae55)})]})}),_0x290905!==s[_0x1a2508(0x2e8)][_0x1a2508(0x2f8)]&&(_0x42ae55===s[_0x1a2508(0x232)][_0x1a2508(0x32c)]||_0x290905===s[_0x1a2508(0x2e8)][_0x1a2508(0x2ca)])&&t['jsx'](_0x1a2508(0x26f),{'className':_0x1a2508(0x1ea),'children':t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':_0x1a2508(0x1c4),'children':[t['jsx'](_0x1a2508(0x274),{'className':_0x1a2508(0x1dc),'children':'⚠️'}),t['jsx']('p',{'className':_0x1a2508(0x1bc),'children':_0x4022ad(_0x290905)})]})})]}),t[_0x1a2508(0x21b)]('div',{'className':_0x1a2508(0x288),'children':t['jsxs'](_0x1a2508(0x26f),{'className':_0x1a2508(0x1ae),'children':[t[_0x1a2508(0x266)]('div',{'className':'univer-space-y-2','children':[t['jsxs'](_0x1a2508(0x320),{'className':_0x1a2508(0x293),'children':[t[_0x1a2508(0x21b)](_0x1a2508(0x274),{'children':'🔑'}),'\x20',_0x176232['t']('mcpConfig.apiKey'),t[_0x1a2508(0x21b)](_0x1a2508(0x274),{'className':_0x1a2508(0x2c8),'children':'*'}),_0x56d8de&&t[_0x1a2508(0x21b)]('a',{'href':_0x1a2508(0x228),'onClick':()=>_0x423719(!0x0),'className':_0x1a2508(0x265),'title':_0x176232['t']('mcpConfig.apiApplyInfo.title'),'children':t[_0x1a2508(0x21b)](Y,{})})]}),t[_0x1a2508(0x21b)](S[_0x1a2508(0x2b8)],{'type':_0x1a2508(0x32d),'placeholder':_0x176232['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x52567c,'onChange':_0x4cee95,'disabled':_0x501eed,'autoComplete':_0x1a2508(0x225)}),t['jsx']('p',{'className':_0x1a2508(0x1d7),'children':_0x176232['t'](_0x1a2508(0x256))})]}),_0x56d8de&&_0x9c0a51&&t['jsxs'](_0x1a2508(0x26f),{'className':_0x1a2508(0x294),'children':[t[_0x1a2508(0x21b)]('a',{'href':'javascript:void(0)','onClick':()=>_0x423719(!0x1),'className':_0x1a2508(0x328),'title':_0x1a2508(0x2f2),'children':t['jsx'](F,{})}),t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':_0x1a2508(0x311),'children':[t[_0x1a2508(0x21b)](_0x1a2508(0x26f),{'className':_0x1a2508(0x238),'children':t[_0x1a2508(0x21b)](_0x1a2508(0x274),{'className':_0x1a2508(0x287),'children':'🚀'})}),t['jsxs'](_0x1a2508(0x26f),{'className':_0x1a2508(0x220),'children':[t[_0x1a2508(0x21b)]('h4',{'className':_0x1a2508(0x1d5),'children':_0x176232['t'](_0x1a2508(0x2c5))}),t[_0x1a2508(0x21b)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x176232['t'](_0x1a2508(0x1de))}),t[_0x1a2508(0x21b)]('div',{'className':_0x1a2508(0x2b6),'children':_0x12d702&&t[_0x1a2508(0x266)]('a',{'href':_0x10c9bf,'target':_0x1a2508(0x1f2),'rel':'noopener\x20noreferrer','className':_0x1a2508(0x2db),'children':[t[_0x1a2508(0x21b)]('span',{'children':'🤖'}),_0x176232['t'](_0x1a2508(0x200)),t[_0x1a2508(0x21b)](_0x1a2508(0x274),{'className':_0x1a2508(0x27b),'children':'↗'})]})}),t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x176232['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x1802e0[_0x1a2508(0x235)]&&t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[t[_0x1a2508(0x266)]('h4',{'className':_0x1a2508(0x1fb),'children':[t[_0x1a2508(0x21b)](_0x1a2508(0x274),{'children':'🔗'}),'\x20',_0x176232['t'](_0x1a2508(0x2e4))]}),t[_0x1a2508(0x266)]('div',{'className':_0x1a2508(0x1c5),'children':[t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':'univer-space-y-3','children':[t[_0x1a2508(0x21b)]('p',{'className':_0x1a2508(0x1df),'children':_0x176232['t']('mcpConfig.configInstructions')}),t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':'univer-space-y-2','children':[t[_0x1a2508(0x21b)]('div',{'className':_0x1a2508(0x296),'children':_0x176232['t'](_0x1a2508(0x25b))}),t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':_0x1a2508(0x230),'children':[t[_0x1a2508(0x21b)]('span',{'className':_0x1a2508(0x332),'children':'1'}),_0x176232['t'](_0x1a2508(0x203))]}),t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[t[_0x1a2508(0x21b)](_0x1a2508(0x274),{'className':_0x1a2508(0x332),'children':'2'}),_0x176232['t']('mcpConfig.configStep2')]}),t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':_0x1a2508(0x230),'children':[t[_0x1a2508(0x21b)](_0x1a2508(0x274),{'className':_0x1a2508(0x332),'children':'3'}),_0x176232['t'](_0x1a2508(0x1b0))]})]})]})]}),t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':'univer-space-y-2','children':[t[_0x1a2508(0x21b)](_0x1a2508(0x26f),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1a2508(0x1fe)}),t[_0x1a2508(0x21b)](_0x1a2508(0x26f),{'className':_0x1a2508(0x209),'children':t[_0x1a2508(0x21b)](_0x1a2508(0x22d),{'className':_0x1a2508(0x2bc),'children':'{\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='+_0x5c687c+_0x1a2508(0x253)+(_0x52567c||_0x1a2508(0x20e))+'\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}'})})]}),t[_0x1a2508(0x266)]('div',{'className':_0x1a2508(0x1e6),'children':[t[_0x1a2508(0x21b)]('div',{'className':_0x1a2508(0x296),'children':_0x176232['t'](_0x1a2508(0x244))}),t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':_0x1a2508(0x1fd),'children':[t['jsxs'](_0x1a2508(0x26f),{'className':_0x1a2508(0x1f4),'children':[t[_0x1a2508(0x21b)]('div',{'className':_0x1a2508(0x317)}),t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':_0x1a2508(0x20a),'children':[t[_0x1a2508(0x21b)](_0x1a2508(0x26f),{'className':_0x1a2508(0x1c0),'children':'univer_session_id:'}),t['jsx'](_0x1a2508(0x26f),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x176232['t']('mcpConfig.sessionIdDescription')})]})]}),t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':_0x1a2508(0x1f4),'children':[t[_0x1a2508(0x21b)](_0x1a2508(0x26f),{'className':_0x1a2508(0x317)}),t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':'univer-min-w-0\x20univer-flex-1','children':[t[_0x1a2508(0x21b)](_0x1a2508(0x26f),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x1a2508(0x262)}),t[_0x1a2508(0x21b)]('div',{'className':_0x1a2508(0x1d7),'children':_0x176232['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),t['jsx'](S[_0x1a2508(0x280)],{'onClick':_0x2c4039,'disabled':!_0x102761||_0x501eed,'className':_0x1a2508(0x2c7),'children':_0x501eed?t[_0x1a2508(0x266)](_0x1a2508(0x274),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[t['jsx'](_0x1a2508(0x274),{'children':'⟲'}),_0x176232['t']('mcpConfig.saving')]}):t[_0x1a2508(0x266)]('span',{'className':_0x1a2508(0x230),'children':[t['jsx'](B,{}),_0x176232['t']('mcpConfig.save')]})}),t[_0x1a2508(0x21b)](_0x1a2508(0x26f),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'className':_0x1a2508(0x1e3),'children':[t[_0x1a2508(0x21b)](_0x1a2508(0x274),{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),t[_0x1a2508(0x266)]('div',{'className':_0x1a2508(0x2b4),'children':[t[_0x1a2508(0x21b)](_0x1a2508(0x26f),{'className':_0x1a2508(0x2ad),'children':_0x1a2508(0x1ef)}),t['jsxs'](_0x1a2508(0x26f),{'children':['•',_0x176232['t']('mcpConfig.note1')]}),t[_0x1a2508(0x266)](_0x1a2508(0x26f),{'children':['•',_0x176232['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0x16b0a0(0x1d6),G={'showDeveloperTools':!0x1,'showStatus':!0x0};var Se=Object['getOwnPropertyDescriptor'],Pe=(_0x14063d,_0x3e7bac,_0x191d32,_0x566e16)=>{var _0x87a8d2=_0x16b0a0;for(var _0x2abd74=_0x566e16>0x1?void 0x0:_0x566e16?Se(_0x3e7bac,_0x191d32):_0x3e7bac,_0x2c7951=_0x14063d[_0x87a8d2(0x281)]-0x1,_0x4d0d22;_0x2c7951>=0x0;_0x2c7951--)(_0x4d0d22=_0x14063d[_0x2c7951])&&(_0x2abd74=_0x4d0d22(_0x2abd74)||_0x2abd74);return _0x2abd74;},f=(_0x2e7b44,_0x903387)=>(_0x47931b,_0x4cc801)=>_0x903387(_0x47931b,_0x4cc801,_0x2e7b44);const D=_0x16b0a0(0x28a),k=_0x16b0a0(0x26e);function _0x2aa2(){var _0x3ae80f=['MessageType','BehaviorSubject','currentColor','univer-flex-shrink-0\x20univer-text-red-500','点击连接\x20MCP','mcpConfig.apiApplyInfo.description','univer-text-xs\x20univer-text-gray-600','createElement','next','SESSION_ID_OCCUPIED','univer-flex\x20univer-gap-3','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpStatus.connecting','univer-space-y-3','MCP_UI_PLUGIN','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_loadStoredApiKey','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.connectionError.unauthorized','Invalid\x20configuration','url(#off-line-icon_clip0_910_343)','univer-bg-blue-500','Configuration\x20Notes:','1876987OfBkxo','API\x20密钥长度至少需要\x2010\x20位','_blank','mask','univer-flex\x20univer-items-start\x20univer-gap-3','MCP\x20连接失败','idSuffix','CheckMarkIcon','MCPConnectionController','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','check-mark-icon','univer-space-y-2','MCP\x20Configuration','svg','mcpConfig.apiApplyInfo.univerAiLabel','mcpConfig.connectionStatus.retrying','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.configStep1','mcpServerUrl','univer-flex\x20univer-items-center\x20univer-gap-3','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Max\x20Retries','apiKey','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-min-w-0\x20univer-flex-1','indexOf','Univer\x20AI\x20Console','useObservable','<API_KEY>','random','连接中...','connectionStatus$','showConfigPanel','open','IConfigService','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','启用身份验证以获得安全连接','IUIPartsService','Retrying...','merge','jsx','BuiltInUIPart','useDependency','useState','Disposable','univer-flex-1','_injector','CONNECTED','网络连接错误,请检查您的网络连接','_initStatusComponent','off','M5.21243\x205.62036L11.8791\x2012.287','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','javascript:void(0)','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','removeItem','clsx','Bearer\x20','pre','concat','defs','univer-flex\x20univer-items-center\x20univer-gap-2','Click\x20to\x20configure\x20MCP','MCPConnectionStatus','Injector','IDialogService','showDeveloperTools','Plugin','replace','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','_localStorageService','round','mcpConfig.connectionStatus.failed','_menuManagerService','Enter\x20your\x20API\x20key','substring','1343631qydGHY','UniverMCPPlugin','API\x20Key','MCPConfigPanel','assign','mcpConfig.configParameters','BUTTON','点击配置\x20MCP','MCPStatusDisplay','\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','register','LocaleService','univer-bg-gray-500','mcpConfig.connectionError.sessionOccupied','current','873716xBZuOg','MCP\x20Connection\x20Failed','subscribe','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','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','\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','path','_handleConfigure','mcpConfig.apiKeyHint','mcpConfig.validation.invalidConfig','MenuIcon','_apiKey$','MCP\x20重连中...','mcpConfig.configStepTitle','Connecting...','_logService','connectionError$','配置参数:','_validateConfig','配置无效','Authorization:','apply','displayName','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','jsxs','MCP\x20Disconnected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcp-ui.command.openConfigPanel','toString','HEADER_MENU','mcp-config-dialog','div','zhCN','colorChannel1','white','MCP\x20Connected','span','COMMAND','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Saving...','配置步骤:','UniverIcon','entries','univer-text-gray-400','超出最大重试次数,请稍后再试','MCPUIMenuController','MCP\x20Unknown\x20Status','mcpStatus.retrying','Button','length','DISCONNECTED','Copy\x20the\x20JSON\x20configuration\x20below','off-line-icon','hasOwnProperty','UniverMCPUIPlugin','univer-text-blue-600','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','CloseSmallSingle','mcp.apiKey','extend','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','最大重试次数','965eDbvWa','\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','on-line-icon','What\x20is\x20API\x20Key?','MCP:\x20Unauthorized','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','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','\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','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_config$','IMenuManagerService','showStatus','28020neQokf','https://console.univer.plus','_initConfigSync','clipPath','_initializeCommands','pluginName','getCurrentConfig','_mcpConnectionController','mcpStatus.disconnected','enUS','MCP:\x20网络错误','icon','CommandType','_dialogService','MCP\x20Client\x20Configuration','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','5688848axbrRJ','string','univer-text-sm\x20univer-font-medium','univer-font-medium','get','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Tooltip','mcpConfig.configError','MCP\x20已断开','subscribeConfigValue$','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','API\x20密钥不能为空','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCPConnectionUIController','Input','IMessageService','未连接','mcpStatus.unknown','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','includes','function','call','defIds','Configuration\x20Steps:','url(#$1','20872152NEnpzd','MenuItemType','mcpConfig.apiApplyInfo.title','http://www.w3.org/2000/svg','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','univer-text-red-500','_uiPartsService','UNAUTHORIZED','mcpStatus.failed','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_messageService','Enable\x20Authentication','on-line-icon_clip0_910_349','mcpConfig.connectionStatus.connecting','mcpConfig.title','univer.plus','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpConfig.configSaved','请输入您的\x20API\x20密钥','API\x20密钥无效,请检查密钥是否正确','_handleConfigSave','registerCommand','MCP:\x20未授权','value','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','setItem','tag','0\x200\x2016\x2016','univer-flex\x20univer-items-center','API\x20key\x20with\x20Bearer\x20prefix.','将配置添加到您的\x20MCP\x20客户端设置文件中','validateApiKey','Inject','mcpConfig.connectionInfo','\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','use','MCP:\x20超出最大重试次数','MCPConnectionError','Save\x20Configuration','MCP\x20Retrying...','OpenMCPConfigPanelCommand','univer.ai','_config','MCPConfigUIController','univer-text-sm\x20univer-text-gray-500','forwardRef','Get\x20your\x20API\x20key\x20in\x20seconds','Close','attrs','_loading$','defineProperty','push','12OXmImS','NONE','1em','会话ID','useRef','univer-bg-green-500','Disconnected','OnLineIcon','connectInjector','\x20-\x20','getOwnPropertySymbols','evenodd','bottom','_localeService','error','_createConfigPanelComponent','_connectionController','getItem','warn','setConfig','ICommandService','mcpStatus.maxRetriesExceeded','RibbonStartGroup','_componentManager','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-text-gray-500','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','registerComponent','isValid','MCP:\x20Network\x20Error','您的\x20API\x20密钥将在此浏览器中本地存储','0\x200\x2017\x2017','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','811492MqAmgS','prototype','mergeMenu','RETRYING','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','getOwnPropertyDescriptor','_configService','mcpStatus.unauthorized','label','none','_initializeMenus','univerjs-icon\x20univerjs-icon-','translate(.97)','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP:\x20Session\x20ID\x20Occupied','symbol','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','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','重启您的\x20MCP\x20客户端以使配置生效','MCP:\x20会话\x20ID\x20已被占用','FAILED','text','MAX_RETRIES_EXCEEDED','xlink:href','MCP\x20配置','API\x20密钥','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','OffLineIcon','mcpStatus.connected','几秒钟内获取您的\x20API\x20密钥','ILocalStorageService','trim','将以下配置添加到您的\x20MCP\x20客户端设置中:','Success','已连接','Configuration\x20Parameters:','useCallback','配置保存失败','API\x20key\x20is\x20required','univer-space-y-5','Connected','mcpConfig.configStep3','NETWORK_ERROR','ISocketService','help-single','children','_commandService','MCP_PLUGIN_CONFIG_KEY','map','Click\x20to\x20connect\x20MCP','M5.21243\x2012.287L11.8791\x205.62036','HelpSingle','CONNECTING','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','errorMessage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.connectionStatus.disconnected','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','M0\x200H16V16H0z','_mcpCoreConfig$','_registerComponent','univer-flex\x20univer-items-start\x20univer-gap-2','univer-space-y-4','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','off-line-icon_clip0_910_343','className','add','univer-bg-red-500','getConfig','forEach','show','_initAutoConnect','propertyIsEnumerable','__setCustomHeaders','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','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','disposeWithMe','Error','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcp-ui.config','univer-text-xs\x20univer-text-gray-500','会话\x20ID\x20已被占用,请稍后再试'];_0x2aa2=function(){return _0x3ae80f;};return _0x2aa2();}exports[_0x16b0a0(0x2ee)]=class extends l[_0x16b0a0(0x21f)]{constructor(_0x3c5236,_0x1fc71c,_0x388938,_0x339bc9,_0x27f6e5,_0x5c008c,_0x46c0f4,_0x31d406,_0x1edde9,_0x250dc4){var _0x2f2cf0=_0x16b0a0;super(),I(this,_0x2f2cf0(0x2f4),new N[(_0x2f2cf0(0x1da))](!0x1)),I(this,_0x2f2cf0(0x1c2),new N[(_0x2f2cf0(0x1da))]({})),I(this,_0x2f2cf0(0x297),new N[(_0x2f2cf0(0x1da))]({})),I(this,'_apiKey$',new N[(_0x2f2cf0(0x1da))]('')),I(this,_0x2f2cf0(0x2d7),async _0x3be7c3=>{var _0x475563=_0x2f2cf0,_0x5b299a,_0x476fe4;this['_loading$'][_0x475563(0x1e1)](!0x0);try{const _0x3cd7e4=await this[_0x475563(0x260)](_0x3be7c3);if(!_0x3cd7e4['isValid']){this[_0x475563(0x2cd)]['show']({'type':S['MessageType'][_0x475563(0x1d4)],'content':_0x3cd7e4[_0x475563(0x1bd)]||this[_0x475563(0x304)]['t'](_0x475563(0x257))});return;}_0x3be7c3[_0x475563(0x208)]?await this['_localStorageService'][_0x475563(0x2dc)](D,_0x3be7c3['apiKey'][_0x475563(0x1a6)]()):await this[_0x475563(0x239)][_0x475563(0x22a)](D),this[_0x475563(0x259)][_0x475563(0x1e1)](((_0x5b299a=_0x3be7c3[_0x475563(0x208)])==null?void 0x0:_0x5b299a[_0x475563(0x1a6)]())||''),this[_0x475563(0x2a1)]['__setCustomHeaders']({'Authorization':_0x475563(0x22c)+((_0x476fe4=_0x3be7c3['apiKey'])==null?void 0x0:_0x476fe4[_0x475563(0x1a6)]())}),this[_0x475563(0x2cd)][_0x475563(0x1cd)]({'type':S[_0x475563(0x1d9)][_0x475563(0x1a8)],'content':this[_0x475563(0x304)]['t'](_0x475563(0x2d4))}),setTimeout(()=>{var _0x2b663e=_0x475563;this[_0x2b663e(0x2a7)]['close'](k);},0x320);}catch(_0x50ccf7){this[_0x475563(0x25d)][_0x475563(0x305)](_0x475563(0x1e4),_0x50ccf7),this[_0x475563(0x2cd)]['show']({'type':S[_0x475563(0x1d9)][_0x475563(0x1d4)],'content':this[_0x475563(0x304)]['t'](_0x475563(0x2b1))});}finally{this['_loading$'][_0x475563(0x1e1)](!0x1);}}),(this[_0x2f2cf0(0x221)]=_0x3c5236,this[_0x2f2cf0(0x2c9)]=_0x1fc71c,this[_0x2f2cf0(0x31e)]=_0x388938,this[_0x2f2cf0(0x239)]=_0x339bc9,this['_dialogService']=_0x27f6e5,this[_0x2f2cf0(0x2cd)]=_0x5c008c,this[_0x2f2cf0(0x30e)]=_0x46c0f4,this[_0x2f2cf0(0x304)]=_0x31d406,this['_logService']=_0x1edde9,this[_0x2f2cf0(0x2a1)]=_0x250dc4,this[_0x2f2cf0(0x29c)](),this[_0x2f2cf0(0x1e9)](),this[_0x2f2cf0(0x1c3)]());}[_0x16b0a0(0x212)](){var _0x46cdb3=_0x16b0a0;const _0x1a817c=this[_0x46cdb3(0x31e)][_0x46cdb3(0x1cb)](y);_0x1a817c!=null&&_0x1a817c['showDeveloperTools']&&this[_0x46cdb3(0x2a7)][_0x46cdb3(0x213)]({'id':k,'title':{'title':this[_0x46cdb3(0x304)]['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{this['_dialogService']['close'](k);}});}[_0x16b0a0(0x2a0)](){var _0x281d9a=_0x16b0a0;return this[_0x281d9a(0x1c2)]['value'];}[_0x16b0a0(0x1c3)](){var _0x21ca1b=_0x16b0a0;this[_0x21ca1b(0x1d3)](this[_0x21ca1b(0x30e)][_0x21ca1b(0x249)](_0x21ca1b(0x242),this[_0x21ca1b(0x306)]()));}[_0x16b0a0(0x306)](){var _0x50539c=_0x16b0a0;return v[_0x50539c(0x2ff)](()=>{var _0x5f5aca=_0x50539c,_0x4f83a9,_0x41b397,_0x2c1268;return t[_0x5f5aca(0x21b)](W,{'config':this['_config$'][_0x5f5aca(0x2da)],'mcpCoreConfig':this[_0x5f5aca(0x1c2)][_0x5f5aca(0x2da)],'currentApiKey$':this[_0x5f5aca(0x259)],'onSave':this[_0x5f5aca(0x2d7)],'loading':this[_0x5f5aca(0x2f4)][_0x5f5aca(0x2da)],'connectionStatus$':(_0x4f83a9=this[_0x5f5aca(0x2a1)])==null?void 0x0:_0x4f83a9[_0x5f5aca(0x211)],'connectionError$':(_0x41b397=this['_mcpConnectionController'])==null?void 0x0:_0x41b397[_0x5f5aca(0x25e)],'currentSessionId$':(_0x2c1268=this['_mcpConnectionController'])==null?void 0x0:_0x2c1268['sessionId$']});},this['_injector']);}[_0x16b0a0(0x29c)](){var _0x5c3903=_0x16b0a0;this[_0x5c3903(0x1d3)](this[_0x5c3903(0x31e)][_0x5c3903(0x2b3)](s['MCP_PLUGIN_CONFIG_KEY'])['subscribe'](_0x2ad0d3=>{var _0x194d03=_0x5c3903;this[_0x194d03(0x1c2)][_0x194d03(0x1e1)](_0x2ad0d3||{});}));const _0xedb2f0=this['_configService']['getConfig'](s[_0x5c3903(0x1b6)]);this[_0x5c3903(0x1c2)][_0x5c3903(0x1e1)](_0xedb2f0||{}),this['disposeWithMe'](this[_0x5c3903(0x31e)][_0x5c3903(0x2b3)](y)[_0x5c3903(0x250)](_0x7f6298=>{var _0x100172=_0x5c3903;this['_config$'][_0x100172(0x1e1)](_0x7f6298||{});}));const _0x10ceb1=this[_0x5c3903(0x31e)][_0x5c3903(0x1cb)](y);this[_0x5c3903(0x297)][_0x5c3903(0x1e1)](_0x10ceb1||{});}async['_loadStoredApiKey'](){var _0x11e506=_0x16b0a0;const _0x3a9e49=this['_configService']['getConfig'](y);if(!(_0x3a9e49!=null&&_0x3a9e49['showDeveloperTools']))return;const _0x4dff91=await this[_0x11e506(0x239)][_0x11e506(0x308)](D);_0x4dff91&&(this[_0x11e506(0x2a1)][_0x11e506(0x1d0)]({'Authorization':'Bearer\x20'+_0x4dff91}),this[_0x11e506(0x259)][_0x11e506(0x1e1)](_0x4dff91));}async['_validateConfig'](_0x5b0f21){var _0x10ce5d=_0x16b0a0;if(!_0x5b0f21[_0x10ce5d(0x208)]||_0x5b0f21[_0x10ce5d(0x208)][_0x10ce5d(0x1a6)]()[_0x10ce5d(0x281)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x10ce5d(0x304)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x5b0f21[_0x10ce5d(0x208)][_0x10ce5d(0x1a6)]()[_0x10ce5d(0x281)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x10ce5d(0x304)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x1e30c3=await this['_injector'][_0x10ce5d(0x2ae)](s[_0x10ce5d(0x1f8)])[_0x10ce5d(0x2e2)](_0x5b0f21[_0x10ce5d(0x208)][_0x10ce5d(0x1a6)]());return _0x1e30c3[_0x10ce5d(0x313)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1e30c3['error']||this['_localeService']['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x3224bf){return console[_0x10ce5d(0x309)](_0x10ce5d(0x227),_0x3224bf),{'isValid':!0x0};}}},exports[_0x16b0a0(0x2ee)]=Pe([f(0x0,l[_0x16b0a0(0x2e3)](l['Injector'])),f(0x1,v['IUIPartsService']),f(0x2,l[_0x16b0a0(0x214)]),f(0x3,l[_0x16b0a0(0x1a5)]),f(0x4,v[_0x16b0a0(0x234)]),f(0x5,v[_0x16b0a0(0x2b9)]),f(0x6,l['Inject'](v['ComponentManager'])),f(0x7,l[_0x16b0a0(0x2e3)](l['LocaleService'])),f(0x8,l['ILogService']),f(0x9,l[_0x16b0a0(0x2e3)](s[_0x16b0a0(0x1f8)]))],exports['MCPConfigUIController']);const j={'id':_0x16b0a0(0x26b),'type':l[_0x16b0a0(0x2a6)][_0x16b0a0(0x275)],'handler':async(_0x550d24,_0x5c34ee)=>(_0x550d24[_0x16b0a0(0x2ae)](exports[_0x16b0a0(0x2ee)])['showConfigPanel'](),!0x0)};function Z(_0x308997,_0x3b391f){var _0x1e8322=_0x16b0a0;switch(_0x308997){case s[_0x1e8322(0x232)][_0x1e8322(0x282)]:return _0x1e8322(0x2a2);case s[_0x1e8322(0x232)][_0x1e8322(0x1bb)]:return _0x1e8322(0x1e5);case s[_0x1e8322(0x232)][_0x1e8322(0x222)]:return _0x1e8322(0x334);case s[_0x1e8322(0x232)][_0x1e8322(0x32c)]:switch(_0x3b391f){case s[_0x1e8322(0x2e8)][_0x1e8322(0x2ca)]:return _0x1e8322(0x31f);case s[_0x1e8322(0x2e8)][_0x1e8322(0x1e2)]:return'mcpStatus.sessionOccupied';case s[_0x1e8322(0x2e8)]['NETWORK_ERROR']:return'mcpStatus.networkError';case s[_0x1e8322(0x2e8)]['MAX_RETRIES_EXCEEDED']:return _0x1e8322(0x30c);default:return _0x1e8322(0x2cb);}case s['MCPConnectionStatus'][_0x1e8322(0x31b)]:return _0x1e8322(0x27f);default:return _0x1e8322(0x2bb);}}function ye(_0x2bb931,_0x8356eb,_0x1208ae,_0x34c170=!0x0){var _0x19ab20=_0x16b0a0;const _0x239eb0=Z(_0x2bb931,_0x8356eb),_0x5530bb=_0x1208ae['t'](_0x239eb0);return _0x34c170?_0x2bb931===s[_0x19ab20(0x232)]['DISCONNECTED']&&_0x8356eb===s[_0x19ab20(0x2e8)]['UNAUTHORIZED']?_0x5530bb+_0x19ab20(0x300)+_0x1208ae['t']('mcpStatus.clickToConfigure'):_0x2bb931===s['MCPConnectionStatus'][_0x19ab20(0x222)]?''+_0x5530bb:_0x2bb931===s[_0x19ab20(0x232)][_0x19ab20(0x282)]||_0x2bb931===s['MCPConnectionStatus']['FAILED']?_0x5530bb+'\x20-\x20'+_0x1208ae['t']('mcpStatus.clickToConnect'):_0x5530bb:_0x5530bb;}function Ie(_0x3c182f){var _0x3d0c11=_0x16b0a0;switch(_0x3c182f){case s['MCPConnectionStatus'][_0x3d0c11(0x222)]:return'univer-text-green-500';case s['MCPConnectionStatus'][_0x3d0c11(0x1bb)]:case s['MCPConnectionStatus'][_0x3d0c11(0x31b)]:return'univer-text-yellow-500';case s[_0x3d0c11(0x232)][_0x3d0c11(0x32c)]:case s['MCPConnectionStatus'][_0x3d0c11(0x282)]:return'univer-text-red-500';default:return _0x3d0c11(0x310);}}function X(_0x3ddc20){var _0x476f9e=_0x16b0a0;const {status$:_0x3605d1,error$:_0x1ff7c1,onConfigure:_0x38bedc,showClickable:_0x2ed50a=!0x0}=_0x3ddc20,_0xf43e39=v[_0x476f9e(0x20d)](_0x3605d1,s[_0x476f9e(0x232)]['DISCONNECTED']),_0x1339d9=v[_0x476f9e(0x20d)](_0x1ff7c1,s[_0x476f9e(0x2e8)][_0x476f9e(0x2f8)]),_0x3f9035=v[_0x476f9e(0x21d)](l[_0x476f9e(0x24a)]),_0xf47b1=_0xf43e39===s[_0x476f9e(0x232)][_0x476f9e(0x222)];_0xf43e39===s[_0x476f9e(0x232)]['CONNECTING']||s[_0x476f9e(0x232)]['RETRYING'];const _0x47dea5=_0x3f9035['t'](Z(_0xf43e39,_0x1339d9)),_0x52befa=ye(_0xf43e39,_0x1339d9,_0x3f9035,_0x2ed50a),_0x666d43=Ie(_0xf43e39),_0x488300=_0xf47b1?t[_0x476f9e(0x21b)](V,{}):t[_0x476f9e(0x21b)](q,{}),_0xb80719=d[_0x476f9e(0x1ab)](()=>{_0x2ed50a&&_0x38bedc&&_0x38bedc();},[_0x2ed50a,_0x38bedc]);function _0x332d52(){var _0x695770=_0x476f9e;return t[_0x695770(0x266)]('div',{'className':S[_0x695770(0x22b)](_0x695770(0x2df),_0x2ed50a&&_0x38bedc&&_0x695770(0x295)),'onClick':_0x2ed50a&&_0x38bedc?_0xb80719:void 0x0,'children':[t[_0x695770(0x21b)](_0x695770(0x26f),{'className':S[_0x695770(0x22b)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x666d43),'children':_0x488300}),t[_0x695770(0x21b)](_0x695770(0x26f),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x47dea5})]});}return t['jsx'](S[_0x476f9e(0x2b0)],{'title':_0x52befa,'placement':_0x476f9e(0x303),'children':_0x332d52()});}var _e=Object[_0x16b0a0(0x31d)],Me=(_0x22282d,_0xaaf78f,_0x56fb46,_0x42187f)=>{var _0x4ed915=_0x16b0a0;for(var _0x409a67=_0x42187f>0x1?void 0x0:_0x42187f?_e(_0xaaf78f,_0x56fb46):_0xaaf78f,_0x5be5ff=_0x22282d[_0x4ed915(0x281)]-0x1,_0x579c41;_0x5be5ff>=0x0;_0x5be5ff--)(_0x579c41=_0x22282d[_0x5be5ff])&&(_0x409a67=_0x579c41(_0x409a67)||_0x409a67);return _0x409a67;},b=(_0x3ad2a8,_0x1b7585)=>(_0x5c7cf1,_0x3c1735)=>_0x1b7585(_0x5c7cf1,_0x3c1735,_0x3ad2a8);exports[_0x16b0a0(0x2b7)]=class extends l['Disposable']{constructor(_0x1a8430,_0xf7904f,_0x3c044c,_0x3efc1a){var _0x2f24e3=_0x16b0a0;super(),this['_injector']=_0x1a8430,this[_0x2f24e3(0x307)]=_0xf7904f,this[_0x2f24e3(0x2c9)]=_0x3c044c,this[_0x2f24e3(0x31e)]=_0x3efc1a,this[_0x2f24e3(0x1ce)](),this[_0x2f24e3(0x224)]();}[_0x16b0a0(0x1ce)](){var _0x3611c0=_0x16b0a0;const _0x54a803=this[_0x3611c0(0x31e)][_0x3611c0(0x1cb)](y);_0x54a803!=null&&_0x54a803[_0x3611c0(0x235)]&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x16b0a0(0x224)](){var _0x2686f0=_0x16b0a0;const _0x589cb3=this[_0x2686f0(0x31e)][_0x2686f0(0x1cb)](y);(_0x589cb3==null?void 0x0:_0x589cb3[_0x2686f0(0x299)])!==!0x1&&this[_0x2686f0(0x1d3)](this[_0x2686f0(0x2c9)][_0x2686f0(0x312)](v[_0x2686f0(0x21c)][_0x2686f0(0x26d)],()=>{var _0x20b985=_0x2686f0,_0xeba638;return v[_0x20b985(0x2ff)](Ne({'status$':this[_0x20b985(0x307)][_0x20b985(0x211)],'error$':this[_0x20b985(0x307)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0xeba638=_0x589cb3==null?void 0x0:_0x589cb3[_0x20b985(0x235)])!=null?_0xeba638:!0x1}),this[_0x20b985(0x221)]);}));}[_0x16b0a0(0x255)](){var _0x301c64=_0x16b0a0;this[_0x301c64(0x221)][_0x301c64(0x2ae)](exports[_0x301c64(0x2ee)])[_0x301c64(0x212)]();}},exports[_0x16b0a0(0x2b7)]=Me([b(0x0,l[_0x16b0a0(0x2e3)](l[_0x16b0a0(0x233)])),b(0x1,l[_0x16b0a0(0x2e3)](s[_0x16b0a0(0x1f8)])),b(0x2,v[_0x16b0a0(0x218)]),b(0x3,l[_0x16b0a0(0x214)])],exports[_0x16b0a0(0x2b7)]);function Ne(_0x4514b3){const {status$:_0x2e1bba,error$:_0xee0729,onConfigure:_0x219114,showClickable:_0x228720}=_0x4514b3;return function(){return t['jsx'](X,{'status$':_0x2e1bba,'error$':_0xee0729,'onConfigure':_0x219114,'showClickable':_0x228720});};}function be(_0x2e8340){var _0x53004b=_0x16b0a0;return{'id':j['id'],'type':v[_0x53004b(0x2c4)][_0x53004b(0x245)],'icon':_0x53004b(0x258),'title':_0x53004b(0x2d1),'tooltip':_0x53004b(0x2d1)};}const je={[v[_0x16b0a0(0x30d)]['OTHERS']]:{[j['id']]:{'order':0xa,'menuItemFactory':be}}};var Ee=Object[_0x16b0a0(0x31d)],we=(_0x477ae7,_0x244f10,_0x3753c1,_0x544fca)=>{for(var _0x2b21a6=_0x544fca>0x1?void 0x0:_0x544fca?Ee(_0x244f10,_0x3753c1):_0x244f10,_0x1fae89=_0x477ae7['length']-0x1,_0x4d2c0e;_0x1fae89>=0x0;_0x1fae89--)(_0x4d2c0e=_0x477ae7[_0x1fae89])&&(_0x2b21a6=_0x4d2c0e(_0x2b21a6)||_0x2b21a6);return _0x2b21a6;},z=(_0x586ad0,_0x2f5080)=>(_0x948201,_0x579e3d)=>_0x2f5080(_0x948201,_0x579e3d,_0x586ad0);exports[_0x16b0a0(0x27d)]=class extends l[_0x16b0a0(0x21f)]{constructor(_0xea890e,_0x5cc72f){var _0x4f8c44=_0x16b0a0;super(),this[_0x4f8c44(0x1b5)]=_0xea890e,this[_0x4f8c44(0x23c)]=_0x5cc72f,this[_0x4f8c44(0x29e)](),this[_0x4f8c44(0x322)]();}[_0x16b0a0(0x29e)](){var _0x351dd3=_0x16b0a0;[j][_0x351dd3(0x1cc)](_0x549a76=>{var _0x24d38f=_0x351dd3;this['disposeWithMe'](this[_0x24d38f(0x1b5)][_0x24d38f(0x2d8)](_0x549a76));});}['_initializeMenus'](){var _0x535f3e=_0x16b0a0;this[_0x535f3e(0x23c)][_0x535f3e(0x31a)](je);}},exports[_0x16b0a0(0x27d)]=we([z(0x0,l[_0x16b0a0(0x30b)]),z(0x1,v[_0x16b0a0(0x298)])],exports['MCPUIMenuController']);const Oe={'mcpStatus':{'disconnected':_0x16b0a0(0x267),'connecting':'MCP\x20Connecting...','connected':_0x16b0a0(0x273),'failed':_0x16b0a0(0x24f),'retrying':_0x16b0a0(0x2ea),'unknown':_0x16b0a0(0x27e),'unauthorized':_0x16b0a0(0x292),'sessionOccupied':_0x16b0a0(0x326),'networkError':_0x16b0a0(0x314),'maxRetriesExceeded':_0x16b0a0(0x216),'clickToConnect':_0x16b0a0(0x1b8),'clickToConfigure':_0x16b0a0(0x231)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x16b0a0(0x28c),'apiKey':_0x16b0a0(0x241),'apiKeyPlaceholder':_0x16b0a0(0x23d),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x16b0a0(0x2ce),'enableAuthHint':_0x16b0a0(0x202),'connectionInfo':_0x16b0a0(0x2a8),'mcpClientConfig':_0x16b0a0(0x2a8),'configInstructions':_0x16b0a0(0x1c6),'configStepTitle':_0x16b0a0(0x2c1),'configStep1':_0x16b0a0(0x283),'configStep2':_0x16b0a0(0x215),'configStep3':_0x16b0a0(0x268),'sessionId':'Session\x20ID','sessionIdDescription':_0x16b0a0(0x276),'authorizationDescription':_0x16b0a0(0x2e0),'configParameters':_0x16b0a0(0x1aa),'maxRetries':_0x16b0a0(0x207),'save':_0x16b0a0(0x2e9),'saving':_0x16b0a0(0x277),'note1':_0x16b0a0(0x1be),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x16b0a0(0x291),'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':_0x16b0a0(0x20c),'getStarted':_0x16b0a0(0x2f1)},'validation':{'apiKeyRequired':_0x16b0a0(0x1ad),'apiKeyTooShort':_0x16b0a0(0x1e8),'invalidConfig':_0x16b0a0(0x1ec),'invalidApiKey':_0x16b0a0(0x26a)},'connectionStatus':{'disconnected':_0x16b0a0(0x2fd),'connecting':_0x16b0a0(0x25c),'connected':_0x16b0a0(0x1af),'failed':'Connection\x20Failed','retrying':_0x16b0a0(0x219)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x16b0a0(0x2d3),'networkError':_0x16b0a0(0x329),'maxRetriesExceeded':_0x16b0a0(0x251)}}},Ae={'mcpStatus':{'disconnected':_0x16b0a0(0x2b2),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x16b0a0(0x1f5),'retrying':_0x16b0a0(0x25a),'unknown':'MCP\x20状态未知','unauthorized':_0x16b0a0(0x2d9),'sessionOccupied':_0x16b0a0(0x32b),'networkError':_0x16b0a0(0x2a4),'maxRetriesExceeded':_0x16b0a0(0x2e7),'clickToConnect':_0x16b0a0(0x1dd),'clickToConfigure':_0x16b0a0(0x246)},'mcpConfig':{'title':_0x16b0a0(0x330),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x16b0a0(0x331),'apiKeyPlaceholder':_0x16b0a0(0x2d5),'apiKeyHint':_0x16b0a0(0x315),'enableAuth':'启用身份验证','enableAuthHint':_0x16b0a0(0x217),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x16b0a0(0x1a7),'configStepTitle':_0x16b0a0(0x278),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x16b0a0(0x2e1),'configStep3':_0x16b0a0(0x32a),'sessionId':_0x16b0a0(0x2fa),'sessionIdDescription':_0x16b0a0(0x1f9),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x16b0a0(0x25f),'maxRetries':_0x16b0a0(0x28d),'save':'保存配置','saving':'保存中...','note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x16b0a0(0x1ac),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x16b0a0(0x325),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x16b0a0(0x335)},'validation':{'apiKeyRequired':_0x16b0a0(0x2b5),'apiKeyTooShort':_0x16b0a0(0x1f1),'invalidConfig':_0x16b0a0(0x261),'invalidApiKey':_0x16b0a0(0x2d6)},'connectionStatus':{'disconnected':_0x16b0a0(0x2ba),'connecting':_0x16b0a0(0x210),'connected':_0x16b0a0(0x1a9),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x16b0a0(0x1d8),'networkError':_0x16b0a0(0x223),'maxRetriesExceeded':_0x16b0a0(0x27c)}}};var De=Object[_0x16b0a0(0x2f5)],ke=Object[_0x16b0a0(0x31d)],Ue=(_0x5c0b2c,_0x241dc8,_0x3810f1)=>_0x241dc8 in _0x5c0b2c?De(_0x5c0b2c,_0x241dc8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3810f1}):_0x5c0b2c[_0x241dc8]=_0x3810f1,Te=(_0x5b36a0,_0x5477e2,_0x178c86,_0x2a588e)=>{for(var _0x2d52b8=_0x2a588e>0x1?void 0x0:_0x2a588e?ke(_0x5477e2,_0x178c86):_0x5477e2,_0x2ecccc=_0x5b36a0['length']-0x1,_0x4ed093;_0x2ecccc>=0x0;_0x2ecccc--)(_0x4ed093=_0x5b36a0[_0x2ecccc])&&(_0x2d52b8=_0x4ed093(_0x2d52b8)||_0x2d52b8);return _0x2d52b8;},M=(_0x5991c4,_0x36bafe)=>(_0x5eb07f,_0xfa6fa7)=>_0x36bafe(_0x5eb07f,_0xfa6fa7,_0x5991c4),$e=(_0x24fdfb,_0x4e67fb,_0x2df7bf)=>Ue(_0x24fdfb,_0x4e67fb+'',_0x2df7bf);exports[_0x16b0a0(0x286)]=class extends l[_0x16b0a0(0x236)]{constructor(_0x144951=G,_0x226de4,_0x1ddde3,_0x352a4f,_0x16108f,_0x4a7d9f){var _0x36ca8a=_0x16b0a0;super(),this['_config']=_0x144951,this[_0x36ca8a(0x221)]=_0x226de4,this[_0x36ca8a(0x31e)]=_0x1ddde3,this[_0x36ca8a(0x2c9)]=_0x352a4f,this['_localStorageService']=_0x16108f,this[_0x36ca8a(0x304)]=_0x4a7d9f;const {..._0x3cd3d3}=l[_0x36ca8a(0x21a)]({},G,this[_0x36ca8a(0x2ed)]);this[_0x36ca8a(0x31e)][_0x36ca8a(0x30a)](y,_0x3cd3d3);}async['onStarting'](){var _0x22d8a8=_0x16b0a0;const _0x39d627=[[exports[_0x22d8a8(0x2b7)]],[exports[_0x22d8a8(0x2ee)]],[exports[_0x22d8a8(0x27d)]]];this[_0x22d8a8(0x221)]['has'](A[_0x22d8a8(0x1b2)])||_0x39d627[_0x22d8a8(0x2f6)]([A[_0x22d8a8(0x1b2)],{'useClass':A['WebSocketService']}]),_0x39d627['forEach'](_0x565af2=>this[_0x22d8a8(0x221)][_0x22d8a8(0x1c9)](_0x565af2)),this[_0x22d8a8(0x221)][_0x22d8a8(0x2ae)](exports[_0x22d8a8(0x2b7)]),this[_0x22d8a8(0x221)][_0x22d8a8(0x2ae)](exports['MCPConfigUIController']),this['_injector'][_0x22d8a8(0x2ae)](exports[_0x22d8a8(0x27d)]);}},$e(exports[_0x16b0a0(0x286)],_0x16b0a0(0x29f),_0x16b0a0(0x1e7)),exports[_0x16b0a0(0x286)]=Te([l['DependentOn'](s[_0x16b0a0(0x240)]),M(0x1,l[_0x16b0a0(0x2e3)](l[_0x16b0a0(0x233)])),M(0x2,l[_0x16b0a0(0x214)]),M(0x3,v['IUIPartsService']),M(0x4,l[_0x16b0a0(0x1a5)]),M(0x5,l[_0x16b0a0(0x2e3)](l['LocaleService']))],exports[_0x16b0a0(0x286)]),exports['MCPConfigPanel']=W,exports[_0x16b0a0(0x247)]=X,exports[_0x16b0a0(0x2eb)]=j,exports[_0x16b0a0(0x2a3)]=Oe,exports[_0x16b0a0(0x270)]=Ae;
|
|
1
|
+
'use strict';var _0x29a2b1=_0x2919;(function(_0x4897ca,_0x1ab2f0){var _0xb7946b=_0x2919,_0x1eb426=_0x4897ca();while(!![]){try{var _0x1a631e=-parseInt(_0xb7946b(0x224))/0x1*(-parseInt(_0xb7946b(0x2f4))/0x2)+-parseInt(_0xb7946b(0x246))/0x3+-parseInt(_0xb7946b(0x312))/0x4*(parseInt(_0xb7946b(0x33d))/0x5)+-parseInt(_0xb7946b(0x1eb))/0x6*(parseInt(_0xb7946b(0x2f8))/0x7)+parseInt(_0xb7946b(0x25f))/0x8*(-parseInt(_0xb7946b(0x236))/0x9)+-parseInt(_0xb7946b(0x292))/0xa*(-parseInt(_0xb7946b(0x253))/0xb)+parseInt(_0xb7946b(0x2b3))/0xc;if(_0x1a631e===_0x1ab2f0)break;else _0x1eb426['push'](_0x1eb426['shift']());}catch(_0x440f85){_0x1eb426['push'](_0x1eb426['shift']());}}}(_0x28a8,0x81730));var ue=Object[_0x29a2b1(0x267)],le=(_0x273ea3,_0x1f9221,_0x2f5501)=>_0x1f9221 in _0x273ea3?ue(_0x273ea3,_0x1f9221,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f5501}):_0x273ea3[_0x1f9221]=_0x2f5501,I=(_0xe1a622,_0x266cf4,_0x328a88)=>le(_0xe1a622,typeof _0x266cf4!='symbol'?_0x266cf4+'':_0x266cf4,_0x328a88);Object[_0x29a2b1(0x267)](exports,Symbol[_0x29a2b1(0x1b3)],{'value':_0x29a2b1(0x286)});const l=require('@univerjs/core'),t=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),S=require('@univerjs/design'),v=require('@univerjs/ui'),N=require('rxjs'),d=require('react'),A=require('@univerjs/network');var g=function(){var _0x13d474=_0x29a2b1;return g=Object[_0x13d474(0x287)]||function(_0x33598f){var _0x46132b=_0x13d474;for(var _0x54ea74,_0x48a825=0x1,_0x4d1a20=arguments[_0x46132b(0x266)];_0x48a825<_0x4d1a20;_0x48a825++){_0x54ea74=arguments[_0x48a825];for(var _0x44c9a1 in _0x54ea74)Object['prototype'][_0x46132b(0x2a8)][_0x46132b(0x25e)](_0x54ea74,_0x44c9a1)&&(_0x33598f[_0x44c9a1]=_0x54ea74[_0x44c9a1]);}return _0x33598f;},g[_0x13d474(0x233)](this,arguments);},ve=function(_0x5c3e53,_0x2a0e3f){var _0x21ecb7=_0x29a2b1,_0xd2fffa={};for(var _0x154448 in _0x5c3e53)Object[_0x21ecb7(0x207)][_0x21ecb7(0x2a8)][_0x21ecb7(0x25e)](_0x5c3e53,_0x154448)&&_0x2a0e3f['indexOf'](_0x154448)<0x0&&(_0xd2fffa[_0x154448]=_0x5c3e53[_0x154448]);if(_0x5c3e53!=null&&typeof Object[_0x21ecb7(0x226)]==_0x21ecb7(0x203)){for(var _0x173b94=0x0,_0x154448=Object[_0x21ecb7(0x226)](_0x5c3e53);_0x173b94<_0x154448[_0x21ecb7(0x266)];_0x173b94++)_0x2a0e3f[_0x21ecb7(0x260)](_0x154448[_0x173b94])<0x0&&Object[_0x21ecb7(0x207)][_0x21ecb7(0x2cc)][_0x21ecb7(0x25e)](_0x5c3e53,_0x154448[_0x173b94])&&(_0xd2fffa[_0x154448[_0x173b94]]=_0x5c3e53[_0x154448[_0x173b94]]);}return _0xd2fffa;},_=d[_0x29a2b1(0x29c)](function(_0x2f0a62,_0x23eac0){var _0x5c8d7e=_0x29a2b1,_0xaa071b=_0x2f0a62[_0x5c8d7e(0x1c2)],_0x3dccc8=_0x2f0a62['id'],_0x3a8421=_0x2f0a62[_0x5c8d7e(0x210)],_0x481673=_0x2f0a62['extend'],_0x1a9d55=ve(_0x2f0a62,[_0x5c8d7e(0x1c2),'id',_0x5c8d7e(0x210),_0x5c8d7e(0x25d)]),_0xa8575f=_0x5c8d7e(0x214)[_0x5c8d7e(0x1bd)](_0x3dccc8,'\x20')['concat'](_0x3a8421||'')[_0x5c8d7e(0x290)](),_0x464d56=d['useRef']('_'[_0x5c8d7e(0x1bd)](ge()));return H(_0xaa071b,''[_0x5c8d7e(0x1bd)](_0x3dccc8),{'defIds':_0xaa071b[_0x5c8d7e(0x346)],'idSuffix':_0x464d56[_0x5c8d7e(0x261)]},g({'ref':_0x23eac0,'className':_0xa8575f},_0x1a9d55),_0x481673);});function H(_0x515983,_0x17ce34,_0x235bfa,_0xd395e0,_0x378fbf){var _0x26295c=_0x29a2b1;return d[_0x26295c(0x277)](_0x515983[_0x26295c(0x1fe)],g(g({'key':_0x17ce34},de(_0x515983,_0x235bfa,_0x378fbf)),_0xd395e0),(Ce(_0x515983,_0x235bfa)[_0x26295c(0x296)]||[])[_0x26295c(0x308)](function(_0x34f4a7,_0x1feecb){var _0xedb7f=_0x26295c;return H(_0x34f4a7,''['concat'](_0x17ce34,'-')['concat'](_0x515983['tag'],'-')[_0xedb7f(0x1bd)](_0x1feecb),_0x235bfa,void 0x0,_0x378fbf);}));}function de(_0x11b46f,_0x37f3ea,_0x49dbf9){var _0x305b48=_0x29a2b1,_0x320c37=g({},_0x11b46f[_0x305b48(0x30c)]);_0x49dbf9!=null&&_0x49dbf9[_0x305b48(0x29a)]&&_0x320c37[_0x305b48(0x2a7)]===_0x305b48(0x29a)&&(_0x320c37[_0x305b48(0x2a7)]=_0x49dbf9['colorChannel1']),_0x11b46f[_0x305b48(0x1fe)]===_0x305b48(0x248)&&_0x320c37['id']&&(_0x320c37['id']=_0x320c37['id']+_0x37f3ea['idSuffix']),Object[_0x305b48(0x341)](_0x320c37)[_0x305b48(0x343)](function(_0x512ce1){var _0x57d446=_0x305b48,_0x3de47c=_0x512ce1[0x0],_0x958d6c=_0x512ce1[0x1];_0x3de47c==='mask'&&typeof _0x958d6c==_0x57d446(0x337)&&(_0x320c37[_0x3de47c]=_0x958d6c[_0x57d446(0x2a4)](/url\(#(.*)\)/,_0x57d446(0x247)[_0x57d446(0x1bd)](_0x37f3ea[_0x57d446(0x201)],')')));});var _0x411311=_0x37f3ea['defIds'];return!_0x411311||_0x411311[_0x305b48(0x266)]===0x0||(_0x11b46f[_0x305b48(0x1fe)]===_0x305b48(0x1f2)&&_0x320c37[_0x305b48(0x2d3)]&&(_0x320c37[_0x305b48(0x2d3)]=_0x320c37[_0x305b48(0x2d3)]+_0x37f3ea[_0x305b48(0x201)]),Object['entries'](_0x320c37)['forEach'](function(_0x53fae2){var _0x3f1280=_0x305b48,_0x5dd5c1=_0x53fae2[0x0],_0x1a5467=_0x53fae2[0x1];typeof _0x1a5467==_0x3f1280(0x337)&&(_0x320c37[_0x5dd5c1]=_0x1a5467[_0x3f1280(0x2a4)](/url\(#(.*)\)/,_0x3f1280(0x247)[_0x3f1280(0x1bd)](_0x37f3ea[_0x3f1280(0x201)],')')));})),_0x320c37;}function Ce(_0x4d1982,_0x1ae3a6){var _0x4d21ff=_0x29a2b1,_0xc077f9,_0x3ad58b=_0x1ae3a6['defIds'];return!_0x3ad58b||_0x3ad58b['length']===0x0?_0x4d1982:_0x4d1982[_0x4d21ff(0x1fe)]===_0x4d21ff(0x1f9)&&(!((_0xc077f9=_0x4d1982['children'])===null||_0xc077f9===void 0x0)&&_0xc077f9[_0x4d21ff(0x266)])?g(g({},_0x4d1982),{'children':_0x4d1982[_0x4d21ff(0x296)]['map'](function(_0x3b91c7){var _0x4c9026=_0x4d21ff;return typeof _0x3b91c7[_0x4c9026(0x30c)]['id']==_0x4c9026(0x337)&&_0x3ad58b&&_0x3ad58b[_0x4c9026(0x21f)](_0x3b91c7[_0x4c9026(0x30c)]['id'])?g(g({},_0x3b91c7),{'attrs':g(g({},_0x3b91c7[_0x4c9026(0x30c)]),{'id':_0x3b91c7[_0x4c9026(0x30c)]['id']+_0x1ae3a6[_0x4c9026(0x201)]})}):_0x3b91c7;})}):_0x4d1982;}function ge(){var _0x163205=_0x29a2b1;return Math[_0x163205(0x1cc)]()['toString'](0x24)[_0x163205(0x245)](0x2,0x8);}_[_0x29a2b1(0x1e1)]='UniverIcon';var fe={'tag':_0x29a2b1(0x23e),'attrs':{'xmlns':_0x29a2b1(0x282),'fill':_0x29a2b1(0x2f2),'viewBox':_0x29a2b1(0x1d2),'width':'1em','height':_0x29a2b1(0x1fd)},'children':[{'tag':_0x29a2b1(0x1b4),'attrs':{'fill':'currentColor','d':_0x29a2b1(0x300),'fillRule':_0x29a2b1(0x315),'clipRule':_0x29a2b1(0x315)}}]},B=d[_0x29a2b1(0x29c)](function(_0x294ac8,_0x515944){var _0x1de3ae=_0x29a2b1;return d[_0x1de3ae(0x277)](_,Object[_0x1de3ae(0x287)]({},_0x294ac8,{'id':_0x1de3ae(0x1d0),'ref':_0x515944,'icon':fe}));});B[_0x29a2b1(0x1e1)]=_0x29a2b1(0x31c);var pe={'tag':_0x29a2b1(0x23e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x29a2b1(0x2f2),'viewBox':_0x29a2b1(0x1b9),'width':_0x29a2b1(0x1fd),'height':_0x29a2b1(0x1fd)},'children':[{'tag':'path','attrs':{'stroke':_0x29a2b1(0x325),'d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':'round','strokeLinejoin':_0x29a2b1(0x1f5),'strokeWidth':1.33}},{'tag':_0x29a2b1(0x1b4),'attrs':{'stroke':'currentColor','d':'M5.21243\x2012.287L11.8791\x205.62036','strokeLinecap':_0x29a2b1(0x1f5),'strokeLinejoin':'round','strokeWidth':1.33}}]},F=d[_0x29a2b1(0x29c)](function(_0x22f712,_0x3e9cab){var _0xe60c0b=_0x29a2b1;return d[_0xe60c0b(0x277)](_,Object[_0xe60c0b(0x287)]({},_0x22f712,{'id':'close-small-single','ref':_0x3e9cab,'icon':pe}));});F[_0x29a2b1(0x1e1)]=_0x29a2b1(0x20f);var he={'tag':_0x29a2b1(0x23e),'attrs':{'xmlns':_0x29a2b1(0x282),'fill':_0x29a2b1(0x2f2),'viewBox':'0\x200\x2016\x2016','width':_0x29a2b1(0x1fd),'height':_0x29a2b1(0x1fd)},'children':[{'tag':'path','attrs':{'fill':_0x29a2b1(0x325),'d':_0x29a2b1(0x1fb)}},{'tag':_0x29a2b1(0x1b4),'attrs':{'fill':_0x29a2b1(0x325),'d':_0x29a2b1(0x2ff)}},{'tag':_0x29a2b1(0x1b4),'attrs':{'fill':'currentColor','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':_0x29a2b1(0x315),'clipRule':_0x29a2b1(0x315)}}]},Y=d[_0x29a2b1(0x29c)](function(_0x360ff4,_0x27f47a){var _0x31eafb=_0x29a2b1;return d[_0x31eafb(0x277)](_,Object[_0x31eafb(0x287)]({},_0x360ff4,{'id':_0x31eafb(0x2af),'ref':_0x27f47a,'icon':he}));});Y[_0x29a2b1(0x1e1)]='HelpSingle';var me={'tag':_0x29a2b1(0x23e),'attrs':{'xmlns':_0x29a2b1(0x282),'fill':_0x29a2b1(0x2f2),'viewBox':_0x29a2b1(0x1d2),'width':_0x29a2b1(0x1fd),'height':_0x29a2b1(0x1fd)},'children':[{'tag':'g','attrs':{'clipPath':_0x29a2b1(0x324)},'children':[{'tag':_0x29a2b1(0x1b4),'attrs':{'stroke':'currentColor','d':_0x29a2b1(0x21b),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x29a2b1(0x288),'attrs':{'id':_0x29a2b1(0x24a)},'children':[{'tag':_0x29a2b1(0x1b4),'attrs':{'fill':_0x29a2b1(0x305),'d':_0x29a2b1(0x227)}}]}]}],'defIds':[_0x29a2b1(0x24a)]},q=d[_0x29a2b1(0x29c)](function(_0x7504a6,_0x1366ec){var _0x12acf6=_0x29a2b1;return d['createElement'](_,Object[_0x12acf6(0x287)]({},_0x7504a6,{'id':_0x12acf6(0x2c2),'ref':_0x1366ec,'icon':me}));});q['displayName']=_0x29a2b1(0x2ca);var xe={'tag':_0x29a2b1(0x23e),'attrs':{'xmlns':_0x29a2b1(0x282),'fill':_0x29a2b1(0x2f2),'viewBox':_0x29a2b1(0x2e5),'width':_0x29a2b1(0x1fd),'height':_0x29a2b1(0x1fd)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x29a2b1(0x1b4),'attrs':{'stroke':'currentColor','d':_0x29a2b1(0x32f),'strokeLinecap':_0x29a2b1(0x1f5),'strokeLinejoin':_0x29a2b1(0x1f5),'strokeWidth':1.2}}]},{'tag':_0x29a2b1(0x1f9),'attrs':{},'children':[{'tag':_0x29a2b1(0x288),'attrs':{'id':_0x29a2b1(0x329)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x29a2b1(0x227),'transform':_0x29a2b1(0x345)}}]}]}],'defIds':[_0x29a2b1(0x329)]},V=d[_0x29a2b1(0x29c)](function(_0x4f6348,_0x559154){var _0x3593e0=_0x29a2b1;return d[_0x3593e0(0x277)](_,Object[_0x3593e0(0x287)]({},_0x4f6348,{'id':'on-line-icon','ref':_0x559154,'icon':xe}));});V[_0x29a2b1(0x1e1)]=_0x29a2b1(0x26f);function W(_0xe73b48){var _0x26db37=_0x29a2b1,_0x14dbe4,_0x42ba23;const {mcpCoreConfig:_0x3a83e5,onSave:_0x10171f,loading:_0xa84c40=!0x1,config:_0x2b6f0d,connectionStatus$:_0x5ad448,connectionError$:_0x14d4ce,currentApiKey$:_0x5c14fc,currentSessionId$:_0xaf8d6e}=_0xe73b48,_0x1b1510=v['useDependency'](l[_0x26db37(0x232)]),_0x31c272=v[_0x26db37(0x328)](_0x5ad448,s[_0x26db37(0x1b6)][_0x26db37(0x2a5)]),_0xd135d7=v[_0x26db37(0x328)](_0x14d4ce,s[_0x26db37(0x335)]['NONE']),_0x467195=v[_0x26db37(0x328)](_0xaf8d6e,''),_0x4e5523=v[_0x26db37(0x328)](_0x5c14fc,''),[_0x46a5e5,_0x48fd02]=d[_0x26db37(0x333)](_0x4e5523||''),_0x304aba=!0x0,_0xc8a498=_0x2b6f0d[_0x26db37(0x1e0)]&&_0x3a83e5[_0x26db37(0x2b4)]&&(_0x3a83e5['mcpServerUrl'][_0x26db37(0x21f)]('univer.plus')||_0x3a83e5['mcpServerUrl']['includes'](_0x26db37(0x2e2))),_0x5ae5f6=(_0x14dbe4=_0x3a83e5['mcpServerUrl'])==null?void 0x0:_0x14dbe4[_0x26db37(0x21f)]('univer.plus'),_0x146c25=(_0x42ba23=_0x3a83e5['mcpServerUrl'])==null?void 0x0:_0x42ba23[_0x26db37(0x21f)]('univer.ai'),_0x5a6e20=_0x5ae5f6?_0x26db37(0x29e):_0x26db37(0x2b1),_0x2b9f57=_0x2b6f0d[_0x26db37(0x1e0)]&&(_0x5ae5f6||_0x146c25),[_0x3cf477,_0x255856]=d[_0x26db37(0x333)](!_0x46a5e5[_0x26db37(0x290)]()),_0xb783a2=(_0x2bf586,_0x456a1c)=>{var _0x30dd06=_0x26db37;if(_0x456a1c===s[_0x30dd06(0x335)][_0x30dd06(0x271)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x2bf586){case s[_0x30dd06(0x1b6)]['CONNECTED']:return _0x30dd06(0x2dd);case s[_0x30dd06(0x1b6)][_0x30dd06(0x220)]:case s[_0x30dd06(0x1b6)][_0x30dd06(0x250)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case s[_0x30dd06(0x1b6)][_0x30dd06(0x321)]:return _0x30dd06(0x254);default:return _0x30dd06(0x22b);}},_0x8a72bb=(_0x26a5fe,_0x585a6e)=>{var _0x4967ae=_0x26db37;if(_0x585a6e===s['MCPConnectionError']['UNAUTHORIZED'])return _0x4967ae(0x1e9);switch(_0x26a5fe){case s[_0x4967ae(0x1b6)]['CONNECTED']:return _0x4967ae(0x1f8);case s[_0x4967ae(0x1b6)][_0x4967ae(0x220)]:case s[_0x4967ae(0x1b6)][_0x4967ae(0x250)]:return'univer-bg-blue-500';case s[_0x4967ae(0x1b6)][_0x4967ae(0x321)]:return _0x4967ae(0x1e9);default:return _0x4967ae(0x2d1);}},_0xb2e161=_0x54355e=>{var _0x217cd9=_0x26db37;switch(_0x54355e){case s[_0x217cd9(0x1b6)][_0x217cd9(0x1d7)]:return _0x1b1510['t'](_0x217cd9(0x33e));case s[_0x217cd9(0x1b6)][_0x217cd9(0x220)]:return _0x1b1510['t']('mcpConfig.connectionStatus.connecting');case s[_0x217cd9(0x1b6)]['FAILED']:return _0x1b1510['t'](_0x217cd9(0x338));case s[_0x217cd9(0x1b6)][_0x217cd9(0x250)]:return _0x1b1510['t']('mcpConfig.connectionStatus.retrying');default:return _0x1b1510['t'](_0x217cd9(0x1d1));}},_0x26b017=_0x38b316=>{var _0x3d8338=_0x26db37;switch(_0x38b316){case s[_0x3d8338(0x335)][_0x3d8338(0x271)]:return _0x1b1510['t'](_0x3d8338(0x22a));case s[_0x3d8338(0x335)][_0x3d8338(0x1f4)]:return _0x1b1510['t'](_0x3d8338(0x21d));case s['MCPConnectionError']['NETWORK_ERROR']:return _0x1b1510['t']('mcpConfig.connectionError.networkError');case s['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x1b1510['t'](_0x3d8338(0x2cd));default:return'';}},_0x114536=d[_0x26db37(0x303)](()=>{var _0x43b508=_0x26db37;const _0xc75d5={..._0x3a83e5,'apiKey':_0x46a5e5[_0x43b508(0x290)](),'enableAuth':_0x304aba};_0x10171f(_0xc75d5);},[_0x3a83e5,_0x46a5e5,_0x304aba,_0x10171f]),_0x4dfe5c=_0x46a5e5['trim']()['length']>0x0;return t[_0x26db37(0x1e7)]('div',{'className':_0x26db37(0x29f),'children':[t['jsx'](_0x26db37(0x259),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':t[_0x26db37(0x1e7)]('div',{'className':_0x26db37(0x320),'children':[t['jsx'](_0x26db37(0x259),{'className':_0x26db37(0x340),'children':t['jsx'](_0x26db37(0x2ed),{'className':_0x26db37(0x1bb),'children':'⚙'})}),t[_0x26db37(0x304)](_0x26db37(0x259),{'children':t[_0x26db37(0x304)]('p',{'className':_0x26db37(0x2a3),'children':_0x1b1510['t']('mcpConfig.description')})})]})}),t[_0x26db37(0x1e7)](_0x26db37(0x259),{'className':_0x26db37(0x2f9),'children':[t[_0x26db37(0x304)](_0x26db37(0x259),{'className':_0x26db37(0x297)+_0xb783a2(_0x31c272,_0xd135d7)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':t[_0x26db37(0x1e7)](_0x26db37(0x259),{'className':_0x26db37(0x1cd),'children':[t[_0x26db37(0x304)](_0x26db37(0x259),{'className':_0x26db37(0x309)+_0x8a72bb(_0x31c272,_0xd135d7)+_0x26db37(0x270)}),t[_0x26db37(0x304)](_0x26db37(0x2ed),{'className':'univer-text-sm\x20univer-font-medium','children':_0xb2e161(_0x31c272)})]})}),_0xd135d7!==s[_0x26db37(0x335)][_0x26db37(0x2bb)]&&(_0x31c272===s[_0x26db37(0x1b6)][_0x26db37(0x321)]||_0xd135d7===s[_0x26db37(0x335)][_0x26db37(0x271)])&&t[_0x26db37(0x304)](_0x26db37(0x259),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':t[_0x26db37(0x1e7)](_0x26db37(0x259),{'className':_0x26db37(0x27d),'children':[t[_0x26db37(0x304)](_0x26db37(0x2ed),{'className':_0x26db37(0x22f),'children':'⚠️'}),t[_0x26db37(0x304)]('p',{'className':_0x26db37(0x2ae),'children':_0x26b017(_0xd135d7)})]})})]}),t[_0x26db37(0x304)]('div',{'className':_0x26db37(0x219),'children':t[_0x26db37(0x1e7)]('div',{'className':_0x26db37(0x1e2),'children':[t[_0x26db37(0x1e7)](_0x26db37(0x259),{'className':_0x26db37(0x1d5),'children':[t[_0x26db37(0x1e7)]('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[t[_0x26db37(0x304)]('span',{'children':'🔑'}),'\x20',_0x1b1510['t'](_0x26db37(0x1db)),t['jsx']('span',{'className':_0x26db37(0x28f),'children':'*'}),_0xc8a498&&t[_0x26db37(0x304)]('a',{'href':_0x26db37(0x31d),'onClick':()=>_0x255856(!0x0),'className':_0x26db37(0x2c9),'title':_0x1b1510['t'](_0x26db37(0x256)),'children':t[_0x26db37(0x304)](Y,{})})]}),t['jsx'](S[_0x26db37(0x33b)],{'type':_0x26db37(0x240),'placeholder':_0x1b1510['t'](_0x26db37(0x1d4)),'value':_0x46a5e5,'onChange':_0x48fd02,'disabled':_0xa84c40,'autoComplete':_0x26db37(0x347)}),t[_0x26db37(0x304)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1b1510['t'](_0x26db37(0x336))})]}),_0xc8a498&&_0x3cf477&&t[_0x26db37(0x1e7)]('div',{'className':_0x26db37(0x2e3),'children':[t[_0x26db37(0x304)]('a',{'href':'javascript:void(0)','onClick':()=>_0x255856(!0x1),'className':_0x26db37(0x32e),'title':_0x26db37(0x1de),'children':t[_0x26db37(0x304)](F,{})}),t[_0x26db37(0x1e7)](_0x26db37(0x259),{'className':_0x26db37(0x234),'children':[t[_0x26db37(0x304)](_0x26db37(0x259),{'className':_0x26db37(0x28e),'children':t['jsx'](_0x26db37(0x2ed),{'className':_0x26db37(0x30a),'children':'🚀'})}),t[_0x26db37(0x1e7)](_0x26db37(0x259),{'className':_0x26db37(0x32c),'children':[t['jsx']('h4',{'className':_0x26db37(0x24e),'children':_0x1b1510['t'](_0x26db37(0x256))}),t[_0x26db37(0x304)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x1b1510['t'](_0x26db37(0x2f3))}),t[_0x26db37(0x304)](_0x26db37(0x259),{'className':_0x26db37(0x27e),'children':_0x2b9f57&&t[_0x26db37(0x1e7)]('a',{'href':_0x5a6e20,'target':_0x26db37(0x258),'rel':'noopener\x20noreferrer','className':_0x26db37(0x2b8),'children':[t['jsx'](_0x26db37(0x2ed),{'children':'🤖'}),_0x1b1510['t'](_0x26db37(0x25c)),t[_0x26db37(0x304)](_0x26db37(0x2ed),{'className':'univer-text-gray-400','children':'↗'})]})}),t['jsxs'](_0x26db37(0x259),{'className':_0x26db37(0x289),'children':['✨','\x20',_0x1b1510['t'](_0x26db37(0x230))]})]})]})]}),_0x2b6f0d[_0x26db37(0x1e0)]&&t['jsxs'](_0x26db37(0x259),{'className':_0x26db37(0x1c8),'children':[t[_0x26db37(0x1e7)]('h4',{'className':_0x26db37(0x26d),'children':[t[_0x26db37(0x304)](_0x26db37(0x2ed),{'children':'🔗'}),'\x20',_0x1b1510['t']('mcpConfig.connectionInfo')]}),t[_0x26db37(0x1e7)](_0x26db37(0x259),{'className':_0x26db37(0x205),'children':[t[_0x26db37(0x1e7)](_0x26db37(0x259),{'className':_0x26db37(0x33a),'children':[t[_0x26db37(0x304)]('p',{'className':_0x26db37(0x32b),'children':_0x1b1510['t'](_0x26db37(0x1da))}),t['jsxs'](_0x26db37(0x259),{'className':_0x26db37(0x1d5),'children':[t[_0x26db37(0x304)](_0x26db37(0x259),{'className':_0x26db37(0x2e7),'children':_0x1b1510['t']('mcpConfig.configStepTitle')}),t[_0x26db37(0x1e7)]('div',{'className':_0x26db37(0x1b7),'children':[t['jsxs'](_0x26db37(0x259),{'className':_0x26db37(0x1cd),'children':[t[_0x26db37(0x304)](_0x26db37(0x2ed),{'className':_0x26db37(0x2fd),'children':'1'}),_0x1b1510['t'](_0x26db37(0x2bf))]}),t['jsxs'](_0x26db37(0x259),{'className':_0x26db37(0x1cd),'children':[t[_0x26db37(0x304)](_0x26db37(0x2ed),{'className':_0x26db37(0x2fd),'children':'2'}),_0x1b1510['t'](_0x26db37(0x2c6))]}),t[_0x26db37(0x1e7)](_0x26db37(0x259),{'className':_0x26db37(0x1cd),'children':[t[_0x26db37(0x304)](_0x26db37(0x2ed),{'className':_0x26db37(0x2fd),'children':'3'}),_0x1b1510['t'](_0x26db37(0x251))]})]})]})]}),t['jsxs'](_0x26db37(0x259),{'className':_0x26db37(0x1d5),'children':[t[_0x26db37(0x304)](_0x26db37(0x259),{'className':_0x26db37(0x2e7),'children':_0x26db37(0x1f1)}),t[_0x26db37(0x304)]('div',{'className':_0x26db37(0x2be),'children':t['jsx'](_0x26db37(0x317),{'className':_0x26db37(0x31e),'children':_0x26db37(0x268)+_0x467195+'\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'+(_0x46a5e5||_0x26db37(0x27f))+_0x26db37(0x1c3)})})]}),t['jsxs'](_0x26db37(0x259),{'className':_0x26db37(0x33a),'children':[t[_0x26db37(0x304)](_0x26db37(0x259),{'className':_0x26db37(0x2e7),'children':_0x1b1510['t'](_0x26db37(0x1ae))}),t[_0x26db37(0x1e7)](_0x26db37(0x259),{'className':_0x26db37(0x1d5),'children':[t[_0x26db37(0x1e7)](_0x26db37(0x259),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[t[_0x26db37(0x304)](_0x26db37(0x259),{'className':_0x26db37(0x28d)}),t[_0x26db37(0x1e7)](_0x26db37(0x259),{'className':_0x26db37(0x243),'children':[t[_0x26db37(0x304)](_0x26db37(0x259),{'className':_0x26db37(0x30e),'children':_0x26db37(0x1d9)}),t['jsx'](_0x26db37(0x259),{'className':_0x26db37(0x21e),'children':_0x1b1510['t'](_0x26db37(0x318))})]})]}),t[_0x26db37(0x1e7)](_0x26db37(0x259),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[t[_0x26db37(0x304)](_0x26db37(0x259),{'className':_0x26db37(0x28d)}),t[_0x26db37(0x1e7)](_0x26db37(0x259),{'className':'univer-min-w-0\x20univer-flex-1','children':[t[_0x26db37(0x304)]('div',{'className':_0x26db37(0x30e),'children':_0x26db37(0x2d5)}),t['jsx'](_0x26db37(0x259),{'className':_0x26db37(0x21e),'children':_0x1b1510['t'](_0x26db37(0x306))})]})]})]})]})]})]}),t['jsx'](S[_0x26db37(0x2eb)],{'onClick':_0x114536,'disabled':!_0x4dfe5c||_0xa84c40,'className':_0x26db37(0x223),'children':_0xa84c40?t[_0x26db37(0x1e7)](_0x26db37(0x2ed),{'className':_0x26db37(0x1cd),'children':[t['jsx'](_0x26db37(0x2ed),{'children':'⟲'}),_0x1b1510['t'](_0x26db37(0x2db))]}):t[_0x26db37(0x1e7)]('span',{'className':_0x26db37(0x1cd),'children':[t[_0x26db37(0x304)](B,{}),_0x1b1510['t']('mcpConfig.save')]})}),t[_0x26db37(0x304)](_0x26db37(0x259),{'className':_0x26db37(0x275),'children':t[_0x26db37(0x1e7)](_0x26db37(0x259),{'className':'univer-flex\x20univer-gap-3','children':[t[_0x26db37(0x304)](_0x26db37(0x2ed),{'className':_0x26db37(0x1e6),'children':'💡'}),t['jsxs']('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[t[_0x26db37(0x304)](_0x26db37(0x259),{'className':_0x26db37(0x2d0),'children':_0x26db37(0x2e6)}),t[_0x26db37(0x1e7)](_0x26db37(0x259),{'children':['•',_0x1b1510['t'](_0x26db37(0x1b0))]}),t[_0x26db37(0x1e7)](_0x26db37(0x259),{'children':['•',_0x1b1510['t'](_0x26db37(0x316))]})]})]})})]})})]});}const y=_0x29a2b1(0x2a1),G={'showDeveloperTools':!0x1,'showStatus':!0x0};var Se=Object[_0x29a2b1(0x1dc)],Pe=(_0x5c9dd5,_0x55ad44,_0x1db822,_0x149fc4)=>{var _0x1905ec=_0x29a2b1;for(var _0x475d39=_0x149fc4>0x1?void 0x0:_0x149fc4?Se(_0x55ad44,_0x1db822):_0x55ad44,_0x32dfff=_0x5c9dd5[_0x1905ec(0x266)]-0x1,_0x380c42;_0x32dfff>=0x0;_0x32dfff--)(_0x380c42=_0x5c9dd5[_0x32dfff])&&(_0x475d39=_0x380c42(_0x475d39)||_0x475d39);return _0x475d39;},f=(_0x40fb46,_0x1a497b)=>(_0x384c36,_0x1f5f3c)=>_0x1a497b(_0x384c36,_0x1f5f3c,_0x40fb46);const D=_0x29a2b1(0x2a6),k=_0x29a2b1(0x26c);exports['MCPConfigUIController']=class extends l[_0x29a2b1(0x269)]{constructor(_0x3b6143,_0x32aeff,_0x513172,_0x3dd086,_0xae3548,_0x5d713e,_0x4f628a,_0xb751a1,_0x19c784,_0x3d43d1){var _0x8b194f=_0x29a2b1;super(),I(this,_0x8b194f(0x301),new N['BehaviorSubject'](!0x1)),I(this,_0x8b194f(0x2c0),new N[(_0x8b194f(0x1d8))]({})),I(this,_0x8b194f(0x2d9),new N[(_0x8b194f(0x1d8))]({})),I(this,_0x8b194f(0x332),new N['BehaviorSubject']('')),I(this,'_handleConfigSave',async _0x43e48a=>{var _0x5740d0=_0x8b194f,_0x296706,_0x3126f6;this[_0x5740d0(0x301)][_0x5740d0(0x20e)](!0x0);try{const _0xe4e2a3=await this[_0x5740d0(0x211)](_0x43e48a);if(!_0xe4e2a3[_0x5740d0(0x2da)]){this[_0x5740d0(0x326)][_0x5740d0(0x32d)]({'type':S[_0x5740d0(0x1cf)]['Error'],'content':_0xe4e2a3[_0x5740d0(0x33f)]||this[_0x5740d0(0x28a)]['t'](_0x5740d0(0x2a9))});return;}_0x43e48a[_0x5740d0(0x25a)]?await this[_0x5740d0(0x1d3)][_0x5740d0(0x1f6)](D,_0x43e48a[_0x5740d0(0x25a)][_0x5740d0(0x290)]()):await this['_localStorageService'][_0x5740d0(0x27c)](D),this[_0x5740d0(0x332)][_0x5740d0(0x20e)](((_0x296706=_0x43e48a[_0x5740d0(0x25a)])==null?void 0x0:_0x296706['trim']())||''),this['_mcpConnectionController'][_0x5740d0(0x2cf)]({'Authorization':_0x5740d0(0x1cb)+((_0x3126f6=_0x43e48a[_0x5740d0(0x25a)])==null?void 0x0:_0x3126f6[_0x5740d0(0x290)]())}),this['_messageService'][_0x5740d0(0x32d)]({'type':S[_0x5740d0(0x1cf)]['Success'],'content':this[_0x5740d0(0x28a)]['t'](_0x5740d0(0x31f))}),setTimeout(()=>{var _0x4159fe=_0x5740d0;this[_0x4159fe(0x244)]['close'](k);},0x320);}catch(_0x36e347){this[_0x5740d0(0x2c3)]['error'](_0x5740d0(0x1f7),_0x36e347),this[_0x5740d0(0x326)]['show']({'type':S[_0x5740d0(0x1cf)][_0x5740d0(0x2ad)],'content':this[_0x5740d0(0x28a)]['t']('mcpConfig.configError')});}finally{this[_0x5740d0(0x301)]['next'](!0x1);}}),(this[_0x8b194f(0x299)]=_0x3b6143,this['_uiPartsService']=_0x32aeff,this[_0x8b194f(0x330)]=_0x513172,this['_localStorageService']=_0x3dd086,this[_0x8b194f(0x244)]=_0xae3548,this[_0x8b194f(0x326)]=_0x5d713e,this['_componentManager']=_0x4f628a,this[_0x8b194f(0x28a)]=_0xb751a1,this[_0x8b194f(0x2c3)]=_0x19c784,this[_0x8b194f(0x2e8)]=_0x3d43d1,this[_0x8b194f(0x1c9)](),this['_loadStoredApiKey'](),this[_0x8b194f(0x311)]());}[_0x29a2b1(0x2fa)](){var _0x56f2b7=_0x29a2b1;const _0x370036=this['_configService'][_0x56f2b7(0x279)](y);_0x370036!=null&&_0x370036[_0x56f2b7(0x1e0)]&&this[_0x56f2b7(0x244)]['open']({'id':k,'title':{'title':this[_0x56f2b7(0x28a)]['t'](_0x56f2b7(0x2dc))},'children':{'label':_0x56f2b7(0x2df)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x303f5b=_0x56f2b7;this[_0x303f5b(0x244)][_0x303f5b(0x2aa)](k);}});}['getCurrentConfig'](){var _0x3b65fa=_0x29a2b1;return this[_0x3b65fa(0x2c0)]['value'];}[_0x29a2b1(0x311)](){var _0x169a11=_0x29a2b1;this[_0x169a11(0x307)](this[_0x169a11(0x23d)]['register'](_0x169a11(0x2df),this[_0x169a11(0x1e5)]()));}['_createConfigPanelComponent'](){var _0xcd31c2=_0x29a2b1;return v[_0xcd31c2(0x344)](()=>{var _0x56bef5=_0xcd31c2,_0x5a0e7e,_0x4ae8c4,_0x2bb6ec;return t['jsx'](W,{'config':this['_config$'][_0x56bef5(0x28c)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x56bef5(0x28c)],'currentApiKey$':this[_0x56bef5(0x332)],'onSave':this[_0x56bef5(0x25b)],'loading':this[_0x56bef5(0x301)][_0x56bef5(0x28c)],'connectionStatus$':(_0x5a0e7e=this['_mcpConnectionController'])==null?void 0x0:_0x5a0e7e['connectionStatus$'],'connectionError$':(_0x4ae8c4=this[_0x56bef5(0x2e8)])==null?void 0x0:_0x4ae8c4['connectionError$'],'currentSessionId$':(_0x2bb6ec=this['_mcpConnectionController'])==null?void 0x0:_0x2bb6ec[_0x56bef5(0x225)]});},this['_injector']);}[_0x29a2b1(0x1c9)](){var _0x557c23=_0x29a2b1;this[_0x557c23(0x307)](this[_0x557c23(0x330)][_0x557c23(0x323)](s[_0x557c23(0x2ea)])[_0x557c23(0x1b5)](_0xc6c1eb=>{var _0x2ae9ef=_0x557c23;this[_0x2ae9ef(0x2c0)][_0x2ae9ef(0x20e)](_0xc6c1eb||{});}));const _0x3ec544=this[_0x557c23(0x330)][_0x557c23(0x279)](s[_0x557c23(0x2ea)]);this['_mcpCoreConfig$'][_0x557c23(0x20e)](_0x3ec544||{}),this[_0x557c23(0x307)](this[_0x557c23(0x330)][_0x557c23(0x323)](y)[_0x557c23(0x1b5)](_0x1a5756=>{var _0x2938c6=_0x557c23;this[_0x2938c6(0x2d9)][_0x2938c6(0x20e)](_0x1a5756||{});}));const _0x50f41b=this[_0x557c23(0x330)][_0x557c23(0x279)](y);this[_0x557c23(0x2d9)]['next'](_0x50f41b||{});}async[_0x29a2b1(0x30f)](){var _0xec25c3=_0x29a2b1;const _0x15fb62=this['_configService'][_0xec25c3(0x279)](y);if(!(_0x15fb62!=null&&_0x15fb62['showDeveloperTools']))return;const _0x23e82e=await this[_0xec25c3(0x1d3)][_0xec25c3(0x24f)](D);_0x23e82e&&(this['_mcpConnectionController'][_0xec25c3(0x2cf)]({'Authorization':_0xec25c3(0x1cb)+_0x23e82e}),this[_0xec25c3(0x332)][_0xec25c3(0x20e)](_0x23e82e));}async[_0x29a2b1(0x211)](_0x4bcc0a){var _0x399e48=_0x29a2b1;if(!_0x4bcc0a[_0x399e48(0x25a)]||_0x4bcc0a['apiKey'][_0x399e48(0x290)]()[_0x399e48(0x266)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x399e48(0x28a)]['t'](_0x399e48(0x313))};if(_0x4bcc0a['apiKey']['trim']()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x399e48(0x28a)]['t'](_0x399e48(0x2e1))};try{const _0x26590d=await this['_injector'][_0x399e48(0x31a)](s[_0x399e48(0x221)])[_0x399e48(0x30d)](_0x4bcc0a[_0x399e48(0x25a)][_0x399e48(0x290)]());return _0x26590d['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x26590d[_0x399e48(0x294)]||this[_0x399e48(0x28a)]['t'](_0x399e48(0x2e0))};}catch(_0x315523){return console['warn']('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x315523),{'isValid':!0x0};}}},exports[_0x29a2b1(0x249)]=Pe([f(0x0,l[_0x29a2b1(0x2bc)](l[_0x29a2b1(0x1bf)])),f(0x1,v['IUIPartsService']),f(0x2,l['IConfigService']),f(0x3,l['ILocalStorageService']),f(0x4,v[_0x29a2b1(0x1b2)]),f(0x5,v[_0x29a2b1(0x257)]),f(0x6,l[_0x29a2b1(0x2bc)](v[_0x29a2b1(0x339)])),f(0x7,l['Inject'](l['LocaleService'])),f(0x8,l[_0x29a2b1(0x2f5)]),f(0x9,l[_0x29a2b1(0x2bc)](s['MCPConnectionController']))],exports[_0x29a2b1(0x249)]);const j={'id':_0x29a2b1(0x272),'type':l[_0x29a2b1(0x231)]['COMMAND'],'handler':async(_0x424d32,_0x558024)=>(_0x424d32['get'](exports['MCPConfigUIController'])['showConfigPanel'](),!0x0)};function Z(_0x4d2a4d,_0x8416d1){var _0x46268f=_0x29a2b1;switch(_0x4d2a4d){case s[_0x46268f(0x1b6)][_0x46268f(0x2a5)]:return _0x46268f(0x213);case s[_0x46268f(0x1b6)][_0x46268f(0x220)]:return _0x46268f(0x2c5);case s['MCPConnectionStatus']['CONNECTED']:return _0x46268f(0x1bc);case s[_0x46268f(0x1b6)][_0x46268f(0x321)]:switch(_0x8416d1){case s[_0x46268f(0x335)]['UNAUTHORIZED']:return _0x46268f(0x2b7);case s['MCPConnectionError'][_0x46268f(0x1f4)]:return _0x46268f(0x278);case s[_0x46268f(0x335)]['NETWORK_ERROR']:return _0x46268f(0x1f0);case s[_0x46268f(0x335)][_0x46268f(0x21c)]:return _0x46268f(0x2de);default:return _0x46268f(0x295);}case s[_0x46268f(0x1b6)][_0x46268f(0x250)]:return _0x46268f(0x20c);default:return _0x46268f(0x1b1);}}function ye(_0x45b925,_0x262495,_0x5b31e2,_0x444448=!0x0){var _0x1593c8=_0x29a2b1;const _0x166820=Z(_0x45b925,_0x262495),_0xaaa583=_0x5b31e2['t'](_0x166820);return _0x444448?_0x45b925===s['MCPConnectionStatus'][_0x1593c8(0x2a5)]&&_0x262495===s['MCPConnectionError'][_0x1593c8(0x271)]?_0xaaa583+_0x1593c8(0x22d)+_0x5b31e2['t'](_0x1593c8(0x30b)):_0x45b925===s[_0x1593c8(0x1b6)]['CONNECTED']?''+_0xaaa583:_0x45b925===s[_0x1593c8(0x1b6)][_0x1593c8(0x2a5)]||_0x45b925===s[_0x1593c8(0x1b6)][_0x1593c8(0x321)]?_0xaaa583+_0x1593c8(0x22d)+_0x5b31e2['t']('mcpStatus.clickToConnect'):_0xaaa583:_0xaaa583;}function Ie(_0x137d70){var _0x451c2a=_0x29a2b1;switch(_0x137d70){case s[_0x451c2a(0x1b6)][_0x451c2a(0x1d7)]:return _0x451c2a(0x26b);case s[_0x451c2a(0x1b6)]['CONNECTING']:case s[_0x451c2a(0x1b6)][_0x451c2a(0x250)]:return'univer-text-yellow-500';case s[_0x451c2a(0x1b6)]['FAILED']:case s[_0x451c2a(0x1b6)][_0x451c2a(0x2a5)]:return _0x451c2a(0x28f);default:return _0x451c2a(0x2b6);}}function X(_0x429cef){var _0x133c2b=_0x29a2b1;const {status$:_0xd27507,error$:_0xa163bf,onConfigure:_0xbefc81,showClickable:_0x34dffa=!0x0}=_0x429cef,_0x5cf6fa=v[_0x133c2b(0x328)](_0xd27507,s[_0x133c2b(0x1b6)]['DISCONNECTED']),_0x844c42=v[_0x133c2b(0x328)](_0xa163bf,s[_0x133c2b(0x335)]['NONE']),_0x217326=v[_0x133c2b(0x298)](l[_0x133c2b(0x232)]),_0x1968b1=_0x5cf6fa===s[_0x133c2b(0x1b6)][_0x133c2b(0x1d7)];_0x5cf6fa===s[_0x133c2b(0x1b6)]['CONNECTING']||s['MCPConnectionStatus'][_0x133c2b(0x250)];const _0x58c8e1=_0x217326['t'](Z(_0x5cf6fa,_0x844c42)),_0x4d4ae0=ye(_0x5cf6fa,_0x844c42,_0x217326,_0x34dffa),_0x20ba9b=Ie(_0x5cf6fa),_0x4dfe86=_0x1968b1?t[_0x133c2b(0x304)](V,{}):t[_0x133c2b(0x304)](q,{}),_0x3aa428=d[_0x133c2b(0x303)](()=>{_0x34dffa&&_0xbefc81&&_0xbefc81();},[_0x34dffa,_0xbefc81]);function _0x2a37e2(){var _0x2e5317=_0x133c2b;return t[_0x2e5317(0x1e7)](_0x2e5317(0x259),{'className':S[_0x2e5317(0x2e9)](_0x2e5317(0x2fb),_0x34dffa&&_0xbefc81&&_0x2e5317(0x22c)),'onClick':_0x34dffa&&_0xbefc81?_0x3aa428:void 0x0,'children':[t[_0x2e5317(0x304)](_0x2e5317(0x259),{'className':S[_0x2e5317(0x2e9)](_0x2e5317(0x1fa),_0x20ba9b),'children':_0x4dfe86}),t[_0x2e5317(0x304)]('div',{'className':_0x2e5317(0x2a2),'children':_0x58c8e1})]});}return t['jsx'](S[_0x133c2b(0x1ef)],{'title':_0x4d4ae0,'placement':_0x133c2b(0x20b),'children':_0x2a37e2()});}function _0x28a8(){var _0x3866e0=['setItem','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-bg-green-500','defs','univer-mr-2\x20univer-flex\x20univer-text-xl','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','Enable\x20authentication\x20for\x20secure\x20connections','1em','tag','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','OpenMCPConfigPanelCommand','idSuffix','MCP\x20状态未知','function','MenuItemType','univer-space-y-4','几秒钟内获取您的\x20API\x20密钥','prototype','IMenuManagerService','Univer\x20AI\x20控制台','MCP\x20Client\x20Configuration','bottom','mcpStatus.retrying','has','next','CloseSmallSingle','className','_validateConfig','MenuIcon','mcpStatus.disconnected','univerjs-icon\x20univerjs-icon-','Configuration\x20saved\x20successfully','配置更改将立即生效','重启您的\x20MCP\x20客户端以使配置生效','_initAutoConnect','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','MCPUIMenuController','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','MAX_RETRIES_EXCEEDED','mcpConfig.connectionError.sessionOccupied','univer-text-xs\x20univer-text-gray-500','includes','CONNECTING','MCPConnectionController','Max\x20Retries','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','26907PyHdma','sessionId$','getOwnPropertySymbols','M0\x200H16V16H0z','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.connectionError.unauthorized','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20-\x20','配置参数:','univer-flex-shrink-0\x20univer-text-red-500','mcpConfig.apiApplyInfo.getStarted','CommandType','LocaleService','apply','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP:\x20未授权','9hFgiBo','MCP:\x20网络错误','zhCN','连接中...','Disconnected','MCP\x20连接中...','_config','_componentManager','svg','BuiltInUIPart','text','registerComponent','showStatus','univer-min-w-0\x20univer-flex-1','_dialogService','substring','746439PIRydA','url(#$1','mask','MCPConfigUIController','off-line-icon_clip0_910_343','Enable\x20Authentication','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20Steps:','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','getItem','RETRYING','mcpConfig.configStep3','MCPConnectionUIController','11zTcHpJ','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP\x20Unknown\x20Status','mcpConfig.apiApplyInfo.title','IMessageService','_blank','div','apiKey','_handleConfigSave','mcpConfig.apiApplyInfo.univerAiLabel','extend','call','3137656dtxpQf','indexOf','current','启用身份验证','enUS','API\x20密钥不能为空','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','length','defineProperty','{\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=','Disposable','pluginName','univer-text-green-500','mcp-config-dialog','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','push','OnLineIcon','\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','UNAUTHORIZED','mcp-ui.command.openConfigPanel','MCP\x20Connection\x20Failed','_uiPartsService','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','createElement','mcpStatus.sessionOccupied','getConfig','mergeMenu','_initializeCommands','removeItem','univer-flex\x20univer-items-start\x20univer-gap-2','univer-flex\x20univer-flex-wrap\x20univer-gap-2','<API_KEY>','MCP\x20已连接','保存配置','http://www.w3.org/2000/svg','_initializeMenus','Save\x20Configuration','ICommandService','Module','assign','clipPath','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','_localeService','MCP:\x20超出最大重试次数','value','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','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','univer-text-red-500','trim','UniverMCPUIPlugin','8037220OKUKmX','UniverMCPPlugin','error','mcpStatus.failed','children','\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','useDependency','_injector','colorChannel1','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','forwardRef','MCP:\x20Network\x20Error','https://console.univer.plus','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCP:\x20会话\x20ID\x20已被占用','mcp-ui.config','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-text-sm\x20univer-text-gray-500','replace','DISCONNECTED','mcp.apiKey','fill','hasOwnProperty','mcpConfig.validation.invalidConfig','close','会话ID','将以下配置添加到您的\x20MCP\x20客户端设置中:','Error','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','help-single','add','https://console.univer.ai','MCP\x20Retrying...','7243908NMowSD','mcpServerUrl','Saving...','univer-text-gray-500','mcpStatus.unauthorized','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','Click\x20to\x20connect\x20MCP','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','NONE','Inject','Retrying...','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.configStep1','_mcpCoreConfig$','_menuManagerService','off-line-icon','_logService','connectionError$','mcpStatus.connecting','mcpConfig.configStep2','MCP:\x20Unauthorized','点击配置\x20MCP','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','OffLineIcon','IConfigService','propertyIsEnumerable','mcpConfig.connectionError.maxRetriesExceeded','API\x20key\x20with\x20Bearer\x20prefix.','__setCustomHeaders','univer-font-medium','univer-bg-gray-500','带有\x20Bearer\x20前缀的\x20API\x20密钥。','xlink:href','_connectionController','Authorization:','权限验证失败,请检查您的\x20API\x20密钥','将配置添加到您的\x20MCP\x20客户端设置文件中','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','_config$','isValid','mcpConfig.saving','mcpConfig.title','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpStatus.maxRetriesExceeded','MCPConfigPanel','mcpConfig.validation.invalidApiKey','mcpConfig.validation.apiKeyTooShort','univer.ai','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','ILocalStorageService','0\x200\x2017\x2016','Configuration\x20Notes:','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_mcpConnectionController','clsx','MCP_PLUGIN_CONFIG_KEY','Button','请输入您的\x20API\x20密钥','span','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20密钥长度至少需要\x2010\x20位','保存中...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','none','mcpConfig.apiApplyInfo.description','46WUvFYv','ILogService','复制以下\x20JSON\x20配置','WebSocketService','721UXmtWk','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','showConfigPanel','univer-flex\x20univer-items-center','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','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','配置保存成功','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','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','_loading$','网络连接错误,请检查您的网络连接','useCallback','jsx','white','mcpConfig.authorizationDescription','disposeWithMe','map','\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-blue-600','mcpStatus.clickToConfigure','attrs','validateApiKey','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_loadStoredApiKey','配置保存失败','_registerComponent','188mxbPHX','mcpConfig.validation.apiKeyRequired','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','evenodd','mcpConfig.note2','pre','mcpConfig.sessionIdDescription','MCP_UI_PLUGIN','get','Plugin','CheckMarkIcon','javascript:void(0)','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpConfig.configSaved','univer-flex\x20univer-items-center\x20univer-gap-3','FAILED','未连接','subscribeConfigValue$','url(#off-line-icon_clip0_910_343)','currentColor','_messageService','connectionStatus$','useObservable','on-line-icon_clip0_910_349','API\x20密钥无效,请检查密钥是否正确','univer-text-xs\x20univer-text-gray-600','univer-flex-1','show','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','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','_configService','_commandService','_apiKey$','useState','Click\x20to\x20configure\x20MCP','MCPConnectionError','mcpConfig.apiKeyHint','string','mcpConfig.connectionStatus.failed','ComponentManager','univer-space-y-3','Input','Get\x20your\x20API\x20key\x20in\x20seconds','52135BVkSRf','mcpConfig.connectionStatus.connected','errorMessage','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','entries','会话\x20ID\x20已被占用,请稍后再试','forEach','connectInjector','translate(.97)','defIds','off','mcpConfig.configParameters','MCP\x20客户端配置','mcpConfig.note1','mcpStatus.unknown','IDialogService','toStringTag','path','subscribe','MCPConnectionStatus','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','API\x20key\x20is\x20required','0\x200\x2017\x2017','Univer\x20AI\x20Console','univer-text-white','mcpStatus.connected','concat','IUIPartsService','Injector','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','配置\x20MCP\x20使用\x20AI\x20操作电子表格','icon','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','_handleConfigure','API\x20密钥','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','merge','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','_initConfigSync','Connecting...','Bearer\x20','random','univer-flex\x20univer-items-center\x20univer-gap-2','Enter\x20your\x20API\x20key','MessageType','check-mark-icon','mcpConfig.connectionStatus.disconnected','0\x200\x2016\x2016','_localStorageService','mcpConfig.apiKeyPlaceholder','univer-space-y-2','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','CONNECTED','BehaviorSubject','univer_session_id:','mcpConfig.configInstructions','mcpConfig.apiKey','getOwnPropertyDescriptor','最大重试次数','Close','DependentOn','showDeveloperTools','displayName','univer-space-y-5','已连接','HEADER_MENU','_createConfigPanelComponent','univer-flex-shrink-0\x20univer-text-blue-500','jsxs','MCP\x20配置','univer-bg-red-500','OTHERS','21258RAweli','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','ISocketService','Tooltip','mcpStatus.networkError','MCP\x20Configuration','use','_initStatusComponent','SESSION_ID_OCCUPIED','round'];_0x28a8=function(){return _0x3866e0;};return _0x28a8();}var _e=Object[_0x29a2b1(0x1dc)],Me=(_0x39b8ac,_0x22f788,_0x3bfff7,_0x532784)=>{for(var _0x4c3a93=_0x532784>0x1?void 0x0:_0x532784?_e(_0x22f788,_0x3bfff7):_0x22f788,_0x4d2440=_0x39b8ac['length']-0x1,_0x2dd914;_0x4d2440>=0x0;_0x4d2440--)(_0x2dd914=_0x39b8ac[_0x4d2440])&&(_0x4c3a93=_0x2dd914(_0x4c3a93)||_0x4c3a93);return _0x4c3a93;},b=(_0x1d15e5,_0x3e003d)=>(_0x4e0b52,_0x90b10c)=>_0x3e003d(_0x4e0b52,_0x90b10c,_0x1d15e5);exports[_0x29a2b1(0x252)]=class extends l[_0x29a2b1(0x269)]{constructor(_0x4653a2,_0x9d1f0a,_0x5cb38a,_0x1a4e3a){var _0x5c1d7f=_0x29a2b1;super(),this['_injector']=_0x4653a2,this[_0x5c1d7f(0x2d4)]=_0x9d1f0a,this[_0x5c1d7f(0x274)]=_0x5cb38a,this['_configService']=_0x1a4e3a,this[_0x5c1d7f(0x218)](),this[_0x5c1d7f(0x1f3)]();}[_0x29a2b1(0x218)](){var _0x1f1859=_0x29a2b1;const _0x320487=this[_0x1f1859(0x330)][_0x1f1859(0x279)](y);_0x320487!=null&&_0x320487[_0x1f1859(0x1e0)]&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x29a2b1(0x1f3)](){var _0x3f6faa=_0x29a2b1;const _0x1cbb7b=this[_0x3f6faa(0x330)][_0x3f6faa(0x279)](y);(_0x1cbb7b==null?void 0x0:_0x1cbb7b[_0x3f6faa(0x242)])!==!0x1&&this[_0x3f6faa(0x307)](this[_0x3f6faa(0x274)][_0x3f6faa(0x241)](v[_0x3f6faa(0x23f)][_0x3f6faa(0x1e4)],()=>{var _0x2d65ff=_0x3f6faa,_0x268625;return v[_0x2d65ff(0x344)](Ne({'status$':this['_connectionController'][_0x2d65ff(0x327)],'error$':this[_0x2d65ff(0x2d4)][_0x2d65ff(0x2c4)],'onConfigure':()=>this[_0x2d65ff(0x1c4)](),'showClickable':(_0x268625=_0x1cbb7b==null?void 0x0:_0x1cbb7b[_0x2d65ff(0x1e0)])!=null?_0x268625:!0x1}),this[_0x2d65ff(0x299)]);}));}[_0x29a2b1(0x1c4)](){var _0x341458=_0x29a2b1;this[_0x341458(0x299)][_0x341458(0x31a)](exports[_0x341458(0x249)])[_0x341458(0x2fa)]();}},exports['MCPConnectionUIController']=Me([b(0x0,l[_0x29a2b1(0x2bc)](l[_0x29a2b1(0x1bf)])),b(0x1,l['Inject'](s[_0x29a2b1(0x221)])),b(0x2,v[_0x29a2b1(0x1be)]),b(0x3,l[_0x29a2b1(0x2cb)])],exports[_0x29a2b1(0x252)]);function Ne(_0x35936f){const {status$:_0xc79b24,error$:_0x1c1258,onConfigure:_0xce7738,showClickable:_0x1cd479}=_0x35936f;return function(){var _0x5ceb8f=_0x2919;return t[_0x5ceb8f(0x304)](X,{'status$':_0xc79b24,'error$':_0x1c1258,'onConfigure':_0xce7738,'showClickable':_0x1cd479});};}function be(_0x35b528){var _0x331684=_0x29a2b1;return{'id':j['id'],'type':v[_0x331684(0x204)]['BUTTON'],'icon':_0x331684(0x212),'title':_0x331684(0x2dc),'tooltip':_0x331684(0x2dc)};}function _0x2919(_0x29b010,_0x34094d){var _0x28a816=_0x28a8();return _0x2919=function(_0x2919a9,_0xe32c2f){_0x2919a9=_0x2919a9-0x1ae;var _0x30546f=_0x28a816[_0x2919a9];return _0x30546f;},_0x2919(_0x29b010,_0x34094d);}const je={[v['RibbonStartGroup'][_0x29a2b1(0x1ea)]]:{[j['id']]:{'order':0xa,'menuItemFactory':be}}};var Ee=Object[_0x29a2b1(0x1dc)],we=(_0x523a54,_0x4c5e8e,_0x5040d7,_0x25e33c)=>{var _0x76e66c=_0x29a2b1;for(var _0x23a254=_0x25e33c>0x1?void 0x0:_0x25e33c?Ee(_0x4c5e8e,_0x5040d7):_0x4c5e8e,_0x3dd730=_0x523a54[_0x76e66c(0x266)]-0x1,_0x4d4ac5;_0x3dd730>=0x0;_0x3dd730--)(_0x4d4ac5=_0x523a54[_0x3dd730])&&(_0x23a254=_0x4d4ac5(_0x23a254)||_0x23a254);return _0x23a254;},z=(_0x1f87b3,_0x4ef00b)=>(_0x4afefd,_0x54bace)=>_0x4ef00b(_0x4afefd,_0x54bace,_0x1f87b3);exports[_0x29a2b1(0x21a)]=class extends l[_0x29a2b1(0x269)]{constructor(_0x19d8b4,_0x16368b){var _0x3620c2=_0x29a2b1;super(),this[_0x3620c2(0x331)]=_0x19d8b4,this[_0x3620c2(0x2c1)]=_0x16368b,this[_0x3620c2(0x27b)](),this['_initializeMenus']();}['_initializeCommands'](){var _0x382d67=_0x29a2b1;[j][_0x382d67(0x343)](_0x4d0dfa=>{var _0x5ee8f1=_0x382d67;this[_0x5ee8f1(0x307)](this[_0x5ee8f1(0x331)]['registerCommand'](_0x4d0dfa));});}[_0x29a2b1(0x283)](){var _0x194249=_0x29a2b1;this[_0x194249(0x2c1)][_0x194249(0x27a)](je);}},exports[_0x29a2b1(0x21a)]=we([z(0x0,l[_0x29a2b1(0x285)]),z(0x1,v[_0x29a2b1(0x208)])],exports['MCPUIMenuController']);const Oe={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x29a2b1(0x273),'retrying':_0x29a2b1(0x2b2),'unknown':_0x29a2b1(0x255),'unauthorized':_0x29a2b1(0x2c7),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x29a2b1(0x29d),'maxRetriesExceeded':_0x29a2b1(0x229),'clickToConnect':_0x29a2b1(0x2b9),'clickToConfigure':_0x29a2b1(0x334)},'mcpConfig':{'title':_0x29a2b1(0x1f1),'description':_0x29a2b1(0x1ec),'apiKey':_0x29a2b1(0x1ed),'apiKeyPlaceholder':_0x29a2b1(0x1ce),'apiKeyHint':_0x29a2b1(0x24c),'enableAuth':_0x29a2b1(0x24b),'enableAuthHint':_0x29a2b1(0x1fc),'connectionInfo':_0x29a2b1(0x20a),'mcpClientConfig':_0x29a2b1(0x20a),'configInstructions':_0x29a2b1(0x276),'configStepTitle':_0x29a2b1(0x24d),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x29a2b1(0x1c6),'configStep3':_0x29a2b1(0x29b),'sessionId':'Session\x20ID','sessionIdDescription':_0x29a2b1(0x1c0),'authorizationDescription':_0x29a2b1(0x2ce),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x29a2b1(0x222),'save':_0x29a2b1(0x284),'saving':_0x29a2b1(0x2b5),'note1':_0x29a2b1(0x265),'note2':_0x29a2b1(0x2fc),'configSaved':_0x29a2b1(0x215),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','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':_0x29a2b1(0x1ba),'getStarted':_0x29a2b1(0x33c)},'validation':{'apiKeyRequired':_0x29a2b1(0x1b8),'apiKeyTooShort':_0x29a2b1(0x314),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x29a2b1(0x2f1)},'connectionStatus':{'disconnected':_0x29a2b1(0x23a),'connecting':_0x29a2b1(0x1ca),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x29a2b1(0x2bd)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x29a2b1(0x1ff),'networkError':_0x29a2b1(0x2d8),'maxRetriesExceeded':_0x29a2b1(0x228)}}},Ae={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x29a2b1(0x23b),'connected':_0x29a2b1(0x280),'failed':'MCP\x20连接失败','retrying':'MCP\x20重连中...','unknown':_0x29a2b1(0x202),'unauthorized':_0x29a2b1(0x235),'sessionOccupied':_0x29a2b1(0x2a0),'networkError':_0x29a2b1(0x237),'maxRetriesExceeded':_0x29a2b1(0x28b),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x29a2b1(0x2c8)},'mcpConfig':{'title':_0x29a2b1(0x1e8),'description':_0x29a2b1(0x1c1),'apiKey':_0x29a2b1(0x1c5),'apiKeyPlaceholder':_0x29a2b1(0x2ec),'apiKeyHint':_0x29a2b1(0x2ee),'enableAuth':_0x29a2b1(0x262),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x29a2b1(0x1af),'mcpClientConfig':_0x29a2b1(0x1af),'configInstructions':_0x29a2b1(0x2ac),'configStepTitle':'配置步骤:','configStep1':_0x29a2b1(0x2f6),'configStep2':_0x29a2b1(0x2d7),'configStep3':_0x29a2b1(0x217),'sessionId':_0x29a2b1(0x2ab),'sessionIdDescription':_0x29a2b1(0x2ba),'authorizationDescription':_0x29a2b1(0x2d2),'configParameters':_0x29a2b1(0x22e),'maxRetries':_0x29a2b1(0x1dd),'save':_0x29a2b1(0x281),'saving':_0x29a2b1(0x2f0),'note1':_0x29a2b1(0x216),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x29a2b1(0x2fe),'configError':_0x29a2b1(0x310),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x29a2b1(0x1d6),'univerAiLabel':_0x29a2b1(0x209),'getStarted':_0x29a2b1(0x206)},'validation':{'apiKeyRequired':_0x29a2b1(0x264),'apiKeyTooShort':_0x29a2b1(0x2ef),'invalidConfig':'配置无效','invalidApiKey':_0x29a2b1(0x32a)},'connectionStatus':{'disconnected':_0x29a2b1(0x322),'connecting':_0x29a2b1(0x239),'connected':_0x29a2b1(0x1e3),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x29a2b1(0x2d6),'sessionOccupied':_0x29a2b1(0x342),'networkError':_0x29a2b1(0x302),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var De=Object[_0x29a2b1(0x267)],ke=Object[_0x29a2b1(0x1dc)],Ue=(_0x16bd34,_0xb320d1,_0x306e4d)=>_0xb320d1 in _0x16bd34?De(_0x16bd34,_0xb320d1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x306e4d}):_0x16bd34[_0xb320d1]=_0x306e4d,Te=(_0x4e467b,_0xd95969,_0x5dc568,_0x327a19)=>{var _0x134afd=_0x29a2b1;for(var _0xca5d8d=_0x327a19>0x1?void 0x0:_0x327a19?ke(_0xd95969,_0x5dc568):_0xd95969,_0x305ff7=_0x4e467b[_0x134afd(0x266)]-0x1,_0x119b33;_0x305ff7>=0x0;_0x305ff7--)(_0x119b33=_0x4e467b[_0x305ff7])&&(_0xca5d8d=_0x119b33(_0xca5d8d)||_0xca5d8d);return _0xca5d8d;},M=(_0x16143a,_0x39d470)=>(_0x35e289,_0x1b2c6c)=>_0x39d470(_0x35e289,_0x1b2c6c,_0x16143a),$e=(_0x411a4c,_0x2cbb5f,_0x7f6742)=>Ue(_0x411a4c,_0x2cbb5f+'',_0x7f6742);exports[_0x29a2b1(0x291)]=class extends l[_0x29a2b1(0x31b)]{constructor(_0xf61ab8=G,_0x3c9057,_0x29dd0f,_0x37a919,_0x28d051,_0x41f334){var _0x5f2e7c=_0x29a2b1;super(),this[_0x5f2e7c(0x23c)]=_0xf61ab8,this[_0x5f2e7c(0x299)]=_0x3c9057,this[_0x5f2e7c(0x330)]=_0x29dd0f,this[_0x5f2e7c(0x274)]=_0x37a919,this[_0x5f2e7c(0x1d3)]=_0x28d051,this['_localeService']=_0x41f334;const {..._0x2d524d}=l[_0x5f2e7c(0x1c7)]({},G,this['_config']);this[_0x5f2e7c(0x330)]['setConfig'](y,_0x2d524d);}async['onStarting'](){var _0x190f9c=_0x29a2b1;const _0x3105b2=[[exports[_0x190f9c(0x252)]],[exports[_0x190f9c(0x249)]],[exports['MCPUIMenuController']]];this[_0x190f9c(0x299)][_0x190f9c(0x20d)](A['ISocketService'])||_0x3105b2[_0x190f9c(0x26e)]([A[_0x190f9c(0x1ee)],{'useClass':A[_0x190f9c(0x2f7)]}]),_0x3105b2[_0x190f9c(0x343)](_0x8135ac=>this[_0x190f9c(0x299)][_0x190f9c(0x2b0)](_0x8135ac)),this[_0x190f9c(0x299)][_0x190f9c(0x31a)](exports['MCPConnectionUIController']),this[_0x190f9c(0x299)][_0x190f9c(0x31a)](exports[_0x190f9c(0x249)]),this[_0x190f9c(0x299)][_0x190f9c(0x31a)](exports[_0x190f9c(0x21a)]);}},$e(exports[_0x29a2b1(0x291)],_0x29a2b1(0x26a),_0x29a2b1(0x319)),exports[_0x29a2b1(0x291)]=Te([l[_0x29a2b1(0x1df)](s[_0x29a2b1(0x293)]),M(0x1,l[_0x29a2b1(0x2bc)](l[_0x29a2b1(0x1bf)])),M(0x2,l[_0x29a2b1(0x2cb)]),M(0x3,v[_0x29a2b1(0x1be)]),M(0x4,l[_0x29a2b1(0x2e4)]),M(0x5,l[_0x29a2b1(0x2bc)](l['LocaleService']))],exports[_0x29a2b1(0x291)]),exports[_0x29a2b1(0x2df)]=W,exports['MCPStatusDisplay']=X,exports[_0x29a2b1(0x200)]=j,exports[_0x29a2b1(0x263)]=Oe,exports[_0x29a2b1(0x238)]=Ae;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0xb928(_0xf7c3f,_0x3eb854){const _0x1c86c4=_0x1c86();return _0xb928=function(_0xb92876,_0x3dc870){_0xb92876=_0xb92876-0x10e;let _0x5a81e0=_0x1c86c4[_0xb92876];return _0x5a81e0;},_0xb928(_0xf7c3f,_0x3eb854);}function _0x1c86(){const _0x4b972b=['Invalid\x20configuration','1744620mvzJCb','944139oAJQxD','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1166811DAcBEa','Connecting...','Saving...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Configuration','Univer\x20AI\x20Console','MCP\x20Connecting...','2151540FWBIHm','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20is\x20required','Session\x20ID','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Disconnected','MCP\x20Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20configure\x20MCP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Failed\x20to\x20save\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Steps:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','Retrying...','Save\x20Configuration','3415XKJBhY','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','Click\x20to\x20connect\x20MCP','Configuration\x20Parameters:','MCP\x20Unknown\x20Status','MCP:\x20Max\x20Retries\x20Exceeded','Get\x20your\x20API\x20key\x20in\x20seconds','5322EBmocl','MCP:\x20Network\x20Error','Enter\x20your\x20API\x20key','Enable\x20Authentication','Configuration\x20saved\x20successfully','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Disconnected','10907910GOWLGx','8zOnpfj','887704nwemup','exports','MCP\x20Connected'];_0x1c86=function(){return _0x4b972b;};return _0x1c86();}const _0x1e339f=_0xb928;(function(_0x3cca5f,_0xe904b4){const _0x5d0d38=_0xb928,_0x26e3d8=_0x3cca5f();while(!![]){try{const _0x14e565=parseInt(_0x5d0d38(0x133))/0x1+-parseInt(_0x5d0d38(0x137))/0x2+parseInt(_0x5d0d38(0x13a))/0x3+parseInt(_0x5d0d38(0x110))/0x4+-parseInt(_0x5d0d38(0x122))/0x5*(-parseInt(_0x5d0d38(0x12a))/0x6)+parseInt(_0x5d0d38(0x138))/0x7*(parseInt(_0x5d0d38(0x132))/0x8)+-parseInt(_0x5d0d38(0x131))/0x9;if(_0x14e565===_0xe904b4)break;else _0x26e3d8['push'](_0x26e3d8['shift']());}catch(_0x5b58a1){_0x26e3d8['push'](_0x26e3d8['shift']());}}}(_0x1c86,0x72f8c));const e={'mcpStatus':{'disconnected':_0x1e339f(0x115),'connecting':_0x1e339f(0x10f),'connected':_0x1e339f(0x135),'failed':'MCP\x20Connection\x20Failed','retrying':_0x1e339f(0x116),'unknown':_0x1e339f(0x127),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x1e339f(0x11f),'networkError':_0x1e339f(0x12b),'maxRetriesExceeded':_0x1e339f(0x128),'clickToConnect':_0x1e339f(0x125),'clickToConfigure':_0x1e339f(0x118)},'mcpConfig':{'title':_0x1e339f(0x140),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x1e339f(0x12c),'apiKeyHint':_0x1e339f(0x119),'enableAuth':_0x1e339f(0x12d),'enableAuthHint':_0x1e339f(0x114),'connectionInfo':_0x1e339f(0x124),'mcpClientConfig':_0x1e339f(0x124),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1e339f(0x11d),'configStep1':_0x1e339f(0x117),'configStep2':_0x1e339f(0x12f),'configStep3':_0x1e339f(0x111),'sessionId':_0x1e339f(0x113),'sessionIdDescription':_0x1e339f(0x139),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x1e339f(0x126),'maxRetries':'Max\x20Retries','save':_0x1e339f(0x121),'saving':_0x1e339f(0x13c),'note1':_0x1e339f(0x13d),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x1e339f(0x12e),'configError':_0x1e339f(0x11a),'apiApplyInfo':{'title':_0x1e339f(0x123),'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':_0x1e339f(0x10e),'getStarted':_0x1e339f(0x129)},'validation':{'apiKeyRequired':_0x1e339f(0x112),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x1e339f(0x136),'invalidApiKey':_0x1e339f(0x13f)},'connectionStatus':{'disconnected':_0x1e339f(0x130),'connecting':_0x1e339f(0x13b),'connected':'Connected','failed':_0x1e339f(0x13e),'retrying':_0x1e339f(0x120)},'connectionError':{'unauthorized':_0x1e339f(0x11b),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x1e339f(0x11c),'maxRetriesExceeded':_0x1e339f(0x11e)}}},n=e;module[_0x1e339f(0x134)]=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2d5a15=_0x461a;function _0x4d63(){const _0x203d2d=['2303772CFxknQ','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Client\x20Configuration','Configuration\x20Steps:','Invalid\x20configuration','Click\x20to\x20connect\x20MCP','MCP\x20Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key','Enter\x20your\x20API\x20key','Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20saved\x20successfully','Max\x20Retries','Univer\x20AI\x20Console','3987WmkgMC','64WQgmNX','Enable\x20Authentication','MCP\x20Disconnected','58851FoFSOS','MCP\x20Connected','Get\x20your\x20API\x20key\x20in\x20seconds','58395DTMjBi','Click\x20to\x20configure\x20MCP','Connection\x20Failed','20344fSrxyC','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','10813131wFGqNB','372mppapK','MCP\x20Unknown\x20Status','Configuration\x20Parameters:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connected','242394AGVYIS','exports','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20with\x20Bearer\x20prefix.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Configuration','Disconnected','Failed\x20to\x20save\x20configuration','Saving...','22469990RCGaOJ','Session\x20ID','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','11zWOWXq','MCP:\x20Unauthorized','What\x20is\x20API\x20Key?'];_0x4d63=function(){return _0x203d2d;};return _0x4d63();}(function(_0x3345f3,_0xa2b2ab){const _0xe6fed9=_0x461a,_0x753343=_0x3345f3();while(!![]){try{const _0x3e408f=-parseInt(_0xe6fed9(0x174))/0x1+parseInt(_0xe6fed9(0x15d))/0x2+-parseInt(_0xe6fed9(0x184))/0x3*(parseInt(_0xe6fed9(0x171))/0x4)+-parseInt(_0xe6fed9(0x177))/0x5*(-parseInt(_0xe6fed9(0x17f))/0x6)+parseInt(_0xe6fed9(0x17e))/0x7+-parseInt(_0xe6fed9(0x17a))/0x8*(-parseInt(_0xe6fed9(0x170))/0x9)+parseInt(_0xe6fed9(0x18d))/0xa*(-parseInt(_0xe6fed9(0x15a))/0xb);if(_0x3e408f===_0xa2b2ab)break;else _0x753343['push'](_0x753343['shift']());}catch(_0x122d61){_0x753343['push'](_0x753343['shift']());}}}(_0x4d63,0xe79a8));const e={'mcpStatus':{'disconnected':_0x2d5a15(0x173),'connecting':'MCP\x20Connecting...','connected':_0x2d5a15(0x175),'failed':_0x2d5a15(0x16b),'retrying':_0x2d5a15(0x163),'unknown':_0x2d5a15(0x180),'unauthorized':_0x2d5a15(0x15b),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2d5a15(0x15e),'clickToConnect':_0x2d5a15(0x162),'clickToConfigure':_0x2d5a15(0x178)},'mcpConfig':{'title':_0x2d5a15(0x189),'description':_0x2d5a15(0x17c),'apiKey':_0x2d5a15(0x166),'apiKeyPlaceholder':_0x2d5a15(0x167),'apiKeyHint':_0x2d5a15(0x17b),'enableAuth':_0x2d5a15(0x172),'enableAuthHint':_0x2d5a15(0x168),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2d5a15(0x15f),'configInstructions':_0x2d5a15(0x18f),'configStepTitle':_0x2d5a15(0x160),'configStep1':_0x2d5a15(0x164),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2d5a15(0x16c),'sessionId':_0x2d5a15(0x18e),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x2d5a15(0x187),'configParameters':_0x2d5a15(0x181),'maxRetries':_0x2d5a15(0x16e),'save':'Save\x20Configuration','saving':_0x2d5a15(0x18c),'note1':_0x2d5a15(0x16a),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x2d5a15(0x16d),'configError':_0x2d5a15(0x18b),'apiApplyInfo':{'title':_0x2d5a15(0x15c),'description':_0x2d5a15(0x169),'univerAiLabel':_0x2d5a15(0x16f),'getStarted':_0x2d5a15(0x176)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2d5a15(0x165),'invalidConfig':_0x2d5a15(0x161),'invalidApiKey':_0x2d5a15(0x190)},'connectionStatus':{'disconnected':_0x2d5a15(0x18a),'connecting':'Connecting...','connected':_0x2d5a15(0x183),'failed':_0x2d5a15(0x179),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2d5a15(0x17d),'sessionOccupied':_0x2d5a15(0x186),'networkError':_0x2d5a15(0x182),'maxRetriesExceeded':_0x2d5a15(0x188)}}};function _0x461a(_0x25c067,_0x150554){const _0x4d6321=_0x4d63();return _0x461a=function(_0x461aa8,_0x15c80c){_0x461aa8=_0x461aa8-0x15a;let _0x281937=_0x4d6321[_0x461aa8];return _0x281937;},_0x461a(_0x25c067,_0x150554);}module[_0x2d5a15(0x185)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x424f52=_0x4f66;function _0x4f66(_0x158903,_0xdeb931){const _0x45b9ea=_0x45b9();return _0x4f66=function(_0x4f66a6,_0x522216){_0x4f66a6=_0x4f66a6-0x174;let _0x343a5b=_0x45b9ea[_0x4f66a6];return _0x343a5b;},_0x4f66(_0x158903,_0xdeb931);}(function(_0x3abab0,_0x49d446){const _0x346ff8=_0x4f66,_0x1c977d=_0x3abab0();while(!![]){try{const _0x3833db=parseInt(_0x346ff8(0x194))/0x1+-parseInt(_0x346ff8(0x19b))/0x2*(-parseInt(_0x346ff8(0x196))/0x3)+parseInt(_0x346ff8(0x19f))/0x4*(parseInt(_0x346ff8(0x17c))/0x5)+parseInt(_0x346ff8(0x183))/0x6*(parseInt(_0x346ff8(0x1aa))/0x7)+-parseInt(_0x346ff8(0x197))/0x8*(parseInt(_0x346ff8(0x1a5))/0x9)+-parseInt(_0x346ff8(0x189))/0xa*(parseInt(_0x346ff8(0x17f))/0xb)+-parseInt(_0x346ff8(0x18a))/0xc;if(_0x3833db===_0x49d446)break;else _0x1c977d['push'](_0x1c977d['shift']());}catch(_0x594404){_0x1c977d['push'](_0x1c977d['shift']());}}}(_0x45b9,0xc99b8));function _0x45b9(){const _0x5ed98c=['1040068ExjcaY','Saving...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connecting...','Connected','MCP\x20Connected','9CWjEMp','Connecting...','API\x20key\x20with\x20Bearer\x20prefix.','What\x20is\x20API\x20Key?','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','49dzHJFm','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Max\x20Retries','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Client\x20Configuration','MCP\x20Connection\x20Failed','Disconnected','API\x20key\x20is\x20required','10rWzZVN','MCP\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','11462swDAuz','Enable\x20authentication\x20for\x20secure\x20connections','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session\x20ID','1054578zBIKsM','MCP\x20Retrying...','Failed\x20to\x20save\x20configuration','Invalid\x20configuration','MCP:\x20Unauthorized','Click\x20to\x20connect\x20MCP','9410uSjuNM','10516704RVDnnz','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Retrying...','Univer\x20AI\x20Console','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20saved\x20successfully','MCP\x20Disconnected','960789gYazTK','Connection\x20Failed','1052802eCxfuc','5842672mLVvfh','Click\x20to\x20configure\x20MCP','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Network\x20Error','4lxnkKp','Get\x20your\x20API\x20key\x20in\x20seconds','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Steps:'];_0x45b9=function(){return _0x5ed98c;};return _0x45b9();}const e={'mcpStatus':{'disconnected':_0x424f52(0x193),'connecting':_0x424f52(0x1a2),'connected':_0x424f52(0x1a4),'failed':_0x424f52(0x179),'retrying':_0x424f52(0x184),'unknown':_0x424f52(0x18c),'unauthorized':_0x424f52(0x187),'sessionOccupied':_0x424f52(0x199),'networkError':_0x424f52(0x19a),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x424f52(0x188),'clickToConfigure':_0x424f52(0x198)},'mcpConfig':{'title':_0x424f52(0x17d),'description':_0x424f52(0x181),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x424f52(0x180),'connectionInfo':_0x424f52(0x178),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x424f52(0x18b),'configStepTitle':_0x424f52(0x19e),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x424f52(0x1a1),'configStep3':_0x424f52(0x18e),'sessionId':_0x424f52(0x182),'sessionIdDescription':_0x424f52(0x177),'authorizationDescription':_0x424f52(0x1a7),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x424f52(0x176),'save':'Save\x20Configuration','saving':_0x424f52(0x1a0),'note1':_0x424f52(0x191),'note2':_0x424f52(0x17e),'configSaved':_0x424f52(0x192),'configError':_0x424f52(0x185),'apiApplyInfo':{'title':_0x424f52(0x1a8),'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':_0x424f52(0x190),'getStarted':_0x424f52(0x19c)},'validation':{'apiKeyRequired':_0x424f52(0x17b),'apiKeyTooShort':_0x424f52(0x174),'invalidConfig':_0x424f52(0x186),'invalidApiKey':_0x424f52(0x175)},'connectionStatus':{'disconnected':_0x424f52(0x17a),'connecting':_0x424f52(0x1a6),'connected':_0x424f52(0x1a3),'failed':_0x424f52(0x195),'retrying':_0x424f52(0x18f)},'connectionError':{'unauthorized':_0x424f52(0x1a9),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x424f52(0x19d),'maxRetriesExceeded':_0x424f52(0x18d)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0xe132(_0x11b551,_0x24d92d){const _0x87de9f=_0x87de();return _0xe132=function(_0xe13201,_0x3eba46){_0xe13201=_0xe13201-0x10b;let _0x3a1547=_0x87de9f[_0xe13201];return _0x3a1547;},_0xe132(_0x11b551,_0x24d92d);}const _0x498dd0=_0xe132;(function(_0x3c2a0,_0x382f1d){const _0x22fe8d=_0xe132,_0x59e856=_0x3c2a0();while(!![]){try{const _0x40b165=-parseInt(_0x22fe8d(0x12e))/0x1*(-parseInt(_0x22fe8d(0x118))/0x2)+parseInt(_0x22fe8d(0x13c))/0x3*(-parseInt(_0x22fe8d(0x124))/0x4)+-parseInt(_0x22fe8d(0x125))/0x5+-parseInt(_0x22fe8d(0x10d))/0x6+parseInt(_0x22fe8d(0x127))/0x7*(parseInt(_0x22fe8d(0x136))/0x8)+parseInt(_0x22fe8d(0x12a))/0x9+-parseInt(_0x22fe8d(0x135))/0xa;if(_0x40b165===_0x382f1d)break;else _0x59e856['push'](_0x59e856['shift']());}catch(_0x2785f4){_0x59e856['push'](_0x59e856['shift']());}}}(_0x87de,0x1c1dc));function _0x87de(){const _0x2cf82c=['Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20authentication\x20for\x20secure\x20connections','148cjpWbD','701680dHdEzc','Failed\x20to\x20save\x20configuration','5677FfTwaC','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Disconnected','1011645CneUFJ','Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20is\x20required','2AGrBvf','Connecting...','MCP:\x20Session\x20ID\x20Occupied','Session\x20ID','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','Click\x20to\x20connect\x20MCP','1128740aMIpOn','1168cWYxnL','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','API\x20key\x20with\x20Bearer\x20prefix.','Saving...','4191ftHROc','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Connection\x20Failed','187452rVGFKj','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','Connected','MCP\x20Client\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','What\x20is\x20API\x20Key?','220494USIlGO','Configuration\x20Parameters:','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','exports','Enable\x20Authentication','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key','Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long'];_0x87de=function(){return _0x2cf82c;};return _0x87de();}const e={'mcpStatus':{'disconnected':_0x498dd0(0x129),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x498dd0(0x10c),'retrying':_0x498dd0(0x112),'unknown':_0x498dd0(0x11a),'unauthorized':_0x498dd0(0x10f),'sessionOccupied':_0x498dd0(0x130),'networkError':_0x498dd0(0x133),'maxRetriesExceeded':_0x498dd0(0x132),'clickToConnect':_0x498dd0(0x134),'clickToConfigure':_0x498dd0(0x139)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x498dd0(0x11f),'apiKeyPlaceholder':_0x498dd0(0x11b),'apiKeyHint':_0x498dd0(0x138),'enableAuth':_0x498dd0(0x11d),'enableAuthHint':_0x498dd0(0x123),'connectionInfo':_0x498dd0(0x114),'mcpClientConfig':_0x498dd0(0x114),'configInstructions':_0x498dd0(0x11e),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x498dd0(0x137),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x498dd0(0x10e),'sessionId':_0x498dd0(0x131),'sessionIdDescription':_0x498dd0(0x111),'authorizationDescription':_0x498dd0(0x13a),'configParameters':_0x498dd0(0x119),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x498dd0(0x13b),'note1':_0x498dd0(0x12c),'note2':_0x498dd0(0x128),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x498dd0(0x126),'apiApplyInfo':{'title':_0x498dd0(0x117),'description':_0x498dd0(0x10b),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x498dd0(0x110)},'validation':{'apiKeyRequired':_0x498dd0(0x12d),'apiKeyTooShort':_0x498dd0(0x121),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x498dd0(0x12b),'connecting':_0x498dd0(0x12f),'connected':_0x498dd0(0x113),'failed':_0x498dd0(0x120),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x498dd0(0x116),'sessionOccupied':_0x498dd0(0x115),'networkError':_0x498dd0(0x122),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x498dd0(0x11c)]=n;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5bfae3=_0x9a87;(function(_0x1b943e,_0x1104f1){const _0x21069b=_0x9a87,_0xf3d51d=_0x1b943e();while(!![]){try{const _0x2c6e38=-parseInt(_0x21069b(0x95))/0x1+-parseInt(_0x21069b(0x7a))/0x2*(parseInt(_0x21069b(0x7f))/0x3)+parseInt(_0x21069b(0xa0))/0x4*(parseInt(_0x21069b(0x9f))/0x5)+parseInt(_0x21069b(0x82))/0x6+-parseInt(_0x21069b(0xa5))/0x7*(-parseInt(_0x21069b(0x7c))/0x8)+parseInt(_0x21069b(0x84))/0x9+-parseInt(_0x21069b(0x87))/0xa*(parseInt(_0x21069b(0x81))/0xb);if(_0x2c6e38===_0x1104f1)break;else _0xf3d51d['push'](_0xf3d51d['shift']());}catch(_0xc09ee0){_0xf3d51d['push'](_0xf3d51d['shift']());}}}(_0x1474,0x82674));const e={'mcpStatus':{'disconnected':_0x5bfae3(0x86),'connecting':'MCP\x20Connecting...','connected':_0x5bfae3(0xa7),'failed':_0x5bfae3(0x77),'retrying':_0x5bfae3(0x9d),'unknown':_0x5bfae3(0x80),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5bfae3(0xa4),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5bfae3(0x91),'clickToConfigure':_0x5bfae3(0xa6)},'mcpConfig':{'title':_0x5bfae3(0xa8),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5bfae3(0x8b),'apiKeyPlaceholder':_0x5bfae3(0x88),'apiKeyHint':_0x5bfae3(0x93),'enableAuth':_0x5bfae3(0x75),'enableAuthHint':_0x5bfae3(0x76),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x5bfae3(0x7b),'configInstructions':_0x5bfae3(0xa3),'configStepTitle':_0x5bfae3(0x8c),'configStep1':_0x5bfae3(0x97),'configStep2':_0x5bfae3(0x9e),'configStep3':_0x5bfae3(0x99),'sessionId':_0x5bfae3(0xa1),'sessionIdDescription':_0x5bfae3(0x90),'authorizationDescription':_0x5bfae3(0x79),'configParameters':_0x5bfae3(0x78),'maxRetries':_0x5bfae3(0x9c),'save':_0x5bfae3(0x7d),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5bfae3(0xa2),'configSaved':_0x5bfae3(0x94),'configError':_0x5bfae3(0x8e),'apiApplyInfo':{'title':_0x5bfae3(0x9a),'description':_0x5bfae3(0x83),'univerAiLabel':_0x5bfae3(0x8d),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5bfae3(0x98),'apiKeyTooShort':_0x5bfae3(0x89),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5bfae3(0x9b),'connecting':_0x5bfae3(0x96),'connected':_0x5bfae3(0x7e),'failed':'Connection\x20Failed','retrying':_0x5bfae3(0x8a)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5bfae3(0x8f),'maxRetriesExceeded':_0x5bfae3(0x85)}}},n=e;function _0x1474(){const _0x30c02e=['4555386XyUNOj','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','3616389ixvBau','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Disconnected','1730lEnAJR','Enter\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Retrying...','API\x20Key','Configuration\x20Steps:','Univer\x20AI\x20Console','Failed\x20to\x20save\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20connect\x20MCP','exports','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20saved\x20successfully','67938sSxpUu','Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','What\x20is\x20API\x20Key?','Disconnected','Max\x20Retries','MCP\x20Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','611635OxwoGx','24qHABLl','Session\x20ID','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Session\x20ID\x20Occupied','977998kfxnpY','Click\x20to\x20configure\x20MCP','MCP\x20Connected','MCP\x20Configuration','Enable\x20Authentication','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connection\x20Failed','Configuration\x20Parameters:','API\x20key\x20with\x20Bearer\x20prefix.','182eArFVg','MCP\x20Client\x20Configuration','8KjCZoP','Save\x20Configuration','Connected','24942DpzsPn','MCP\x20Unknown\x20Status','42988CeiIlT'];_0x1474=function(){return _0x30c02e;};return _0x1474();}function _0x9a87(_0x1a5dda,_0x275082){const _0x147439=_0x1474();return _0x9a87=function(_0x9a8701,_0x2bc3e3){_0x9a8701=_0x9a8701-0x75;let _0x22cca7=_0x147439[_0x9a8701];return _0x22cca7;},_0x9a87(_0x1a5dda,_0x275082);}module[_0x5bfae3(0x92)]=n;
|