@univerjs-pro/mcp-ui 0.15.0-insiders.20251227-c108ce3 → 0.15.0-insiders.20260107-3441c7a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/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';function _0x1261(_0x2c0b86,_0xdde69b){_0x2c0b86=_0x2c0b86-0x6e;const _0x2acf6f=_0x2acf();let _0x126130=_0x2acf6f[_0x2c0b86];return _0x126130;}const _0x12d1a6=_0x1261;(function(_0x56a84d,_0x2e10a2){const _0x3997f5=_0x1261,_0x45e3ba=_0x56a84d();while(!![]){try{const _0x1aede6=-parseInt(_0x3997f5(0x175))/0x1+parseInt(_0x3997f5(0x1eb))/0x2+-parseInt(_0x3997f5(0x180))/0x3*(-parseInt(_0x3997f5(0x1a9))/0x4)+parseInt(_0x3997f5(0x7c))/0x5*(-parseInt(_0x3997f5(0xe0))/0x6)+-parseInt(_0x3997f5(0x9a))/0x7*(-parseInt(_0x3997f5(0x81))/0x8)+-parseInt(_0x3997f5(0x165))/0x9+-parseInt(_0x3997f5(0x13c))/0xa;if(_0x1aede6===_0x2e10a2)break;else _0x45e3ba['push'](_0x45e3ba['shift']());}catch(_0x140cb3){_0x45e3ba['push'](_0x45e3ba['shift']());}}}(_0x2acf,0xb3a57));var ae=Object[_0x12d1a6(0x12a)],le=(_0x58717b,_0x4934b2,_0x19188a)=>_0x4934b2 in _0x58717b?ae(_0x58717b,_0x4934b2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19188a}):_0x58717b[_0x4934b2]=_0x19188a,I=(_0x8a7cc,_0x4ab4ba,_0x2318bd)=>le(_0x8a7cc,typeof _0x4ab4ba!='symbol'?_0x4ab4ba+'':_0x4ab4ba,_0x2318bd);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x49a45b,..._0x39d869}){const _0x43e51b=_0x12d1a6,{icon:_0x216d18,id:_0x2923b,className:_0x138924,extend:_0x44b018,..._0x4a5b34}=_0x39d869,_0x59fc17=(_0x43e51b(0xb6)+_0x2923b+'\x20'+(_0x138924||''))[_0x43e51b(0x1e5)](),_0x46c8c2=d['useRef']('_'+de());return G(_0x216d18,''+_0x2923b,{'defIds':_0x216d18['defIds'],'idSuffix':_0x46c8c2[_0x43e51b(0x10a)]},{'ref':_0x49a45b,'className':_0x59fc17,..._0x4a5b34},_0x44b018);}function G(_0x53759e,_0x2e52fa,_0x397fc0,_0x2d517d,_0x4a85c5){const _0x3d5fcd=_0x12d1a6;return d[_0x3d5fcd(0x122)](_0x53759e[_0x3d5fcd(0xe1)],{'key':_0x2e52fa,...ue(_0x53759e,_0x397fc0,_0x4a85c5),..._0x2d517d},(ve(_0x53759e,_0x397fc0)['children']||[])[_0x3d5fcd(0x114)]((_0x266500,_0x2c312)=>G(_0x266500,_0x2e52fa+'-'+_0x53759e['tag']+'-'+_0x2c312,_0x397fc0,void 0x0,_0x4a85c5)));}function ue(_0x4f4210,_0x3e5f21,_0x4bf4eb){const _0x42a008=_0x12d1a6,_0x1b680c={..._0x4f4210[_0x42a008(0x11f)]};_0x4bf4eb!=null&&_0x4bf4eb['colorChannel1']&&_0x1b680c['fill']==='colorChannel1'&&(_0x1b680c[_0x42a008(0x18f)]=_0x4bf4eb[_0x42a008(0x1a5)]),_0x4f4210['tag']===_0x42a008(0x197)&&_0x1b680c['id']&&(_0x1b680c['id']=_0x1b680c['id']+_0x3e5f21[_0x42a008(0x8e)]),Object[_0x42a008(0xea)](_0x1b680c)[_0x42a008(0x7a)](([_0x18472b,_0x304a00])=>{const _0x42fd93=_0x42a008;_0x18472b==='mask'&&typeof _0x304a00==_0x42fd93(0x16d)&&(_0x1b680c[_0x18472b]=_0x304a00[_0x42fd93(0x91)](/url\(#(.*)\)/,'url(#$1'+_0x3e5f21[_0x42fd93(0x8e)]+')'));});const {defIds:_0x4c6bae}=_0x3e5f21;return!_0x4c6bae||_0x4c6bae[_0x42a008(0x8f)]===0x0||(_0x4f4210['tag']===_0x42a008(0x95)&&_0x1b680c[_0x42a008(0xd1)]&&(_0x1b680c['xlink:href']=_0x1b680c[_0x42a008(0xd1)]+_0x3e5f21[_0x42a008(0x8e)]),Object[_0x42a008(0xea)](_0x1b680c)[_0x42a008(0x7a)](([_0x475a2b,_0xb9705d])=>{const _0x338341=_0x42a008;typeof _0xb9705d=='string'&&(_0x1b680c[_0x475a2b]=_0xb9705d['replace'](/url\(#(.*)\)/,_0x338341(0x1d6)+_0x3e5f21[_0x338341(0x8e)]+')'));})),_0x1b680c;}function ve(_0xcc2885,_0x8590ff){const _0x32828a=_0x12d1a6;var _0x2b3f44;const {defIds:_0x3d660a}=_0x8590ff;return!_0x3d660a||_0x3d660a[_0x32828a(0x8f)]===0x0?_0xcc2885:_0xcc2885[_0x32828a(0xe1)]===_0x32828a(0x71)&&((_0x2b3f44=_0xcc2885[_0x32828a(0xfd)])!=null&&_0x2b3f44[_0x32828a(0x8f)])?{..._0xcc2885,'children':_0xcc2885[_0x32828a(0xfd)][_0x32828a(0x114)](_0x225e04=>typeof _0x225e04[_0x32828a(0x11f)]['id']==_0x32828a(0x16d)&&_0x3d660a&&_0x3d660a['includes'](_0x225e04['attrs']['id'])?{..._0x225e04,'attrs':{..._0x225e04[_0x32828a(0x11f)],'id':_0x225e04['attrs']['id']+_0x8590ff[_0x32828a(0x8e)]}}:_0x225e04)}:_0xcc2885;}function de(){const _0x354731=_0x12d1a6;return Math[_0x354731(0x198)]()[_0x354731(0xe6)](0x24)[_0x354731(0x10e)](0x2,0x8);}_[_0x12d1a6(0x1b9)]=_0x12d1a6(0x6e);const Ce={'tag':_0x12d1a6(0xf4),'attrs':{'xmlns':_0x12d1a6(0xf8),'fill':_0x12d1a6(0xda),'viewBox':_0x12d1a6(0x7b),'width':_0x12d1a6(0x1aa),'height':'1em'},'children':[{'tag':_0x12d1a6(0x1a1),'attrs':{'fill':_0x12d1a6(0x88),'d':_0x12d1a6(0x131),'fillRule':_0x12d1a6(0x181),'clipRule':_0x12d1a6(0x181)}}]},H=d[_0x12d1a6(0x12f)](function(_0x1d7bd3,_0x297f63){const _0x590bdd=_0x12d1a6;return d[_0x590bdd(0x122)](_,Object[_0x590bdd(0x1c8)]({},_0x1d7bd3,{'id':_0x590bdd(0x1a7),'ref':_0x297f63,'icon':Ce}));});H[_0x12d1a6(0x1b9)]=_0x12d1a6(0x148);const ge={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x12d1a6(0xda),'viewBox':'0\x200\x2016\x2016','width':_0x12d1a6(0x1aa),'height':_0x12d1a6(0x1aa)},'children':[{'tag':_0x12d1a6(0x1a1),'attrs':{'fill':'currentColor','d':_0x12d1a6(0xb5)}}]},B=d[_0x12d1a6(0x12f)](function(_0x2b5483,_0x358cd0){const _0x3246eb=_0x12d1a6;return d[_0x3246eb(0x122)](_,Object[_0x3246eb(0x1c8)]({},_0x2b5483,{'id':'close-icon','ref':_0x358cd0,'icon':ge}));});B[_0x12d1a6(0x1b9)]=_0x12d1a6(0xde);const fe={'tag':_0x12d1a6(0xf4),'attrs':{'xmlns':_0x12d1a6(0xf8),'fill':'none','viewBox':_0x12d1a6(0x7b),'width':'1em','height':_0x12d1a6(0x1aa)},'children':[{'tag':_0x12d1a6(0x1a1),'attrs':{'fill':'currentColor','d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x12d1a6(0x1a1),'attrs':{'fill':_0x12d1a6(0x88),'d':_0x12d1a6(0x1dc)}},{'tag':'path','attrs':{'fill':_0x12d1a6(0x88),'d':_0x12d1a6(0x163),'fillRule':_0x12d1a6(0x181),'clipRule':_0x12d1a6(0x181)}}]},F=d[_0x12d1a6(0x12f)](function(_0x2abba3,_0x4b2c1c){const _0x2e05ac=_0x12d1a6;return d[_0x2e05ac(0x122)](_,Object[_0x2e05ac(0x1c8)]({},_0x2abba3,{'id':'help-icon','ref':_0x4b2c1c,'icon':fe}));});F['displayName']='HelpIcon';const pe={'tag':_0x12d1a6(0xf4),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x12d1a6(0xcb)},'children':[{'tag':_0x12d1a6(0x1a1),'attrs':{'stroke':_0x12d1a6(0x88),'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':_0x12d1a6(0x1bb),'strokeLinejoin':_0x12d1a6(0x1bb),'strokeWidth':1.2}}]},{'tag':_0x12d1a6(0x71),'attrs':{},'children':[{'tag':_0x12d1a6(0x143),'attrs':{'id':_0x12d1a6(0x101)},'children':[{'tag':_0x12d1a6(0x1a1),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Y=d[_0x12d1a6(0x12f)](function(_0x52aaee,_0x327ef8){const _0x29be5f=_0x12d1a6;return d[_0x29be5f(0x122)](_,Object[_0x29be5f(0x1c8)]({},_0x52aaee,{'id':_0x29be5f(0xb7),'ref':_0x327ef8,'icon':pe}));});Y[_0x12d1a6(0x1b9)]=_0x12d1a6(0x93);const he={'tag':_0x12d1a6(0xf4),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x12d1a6(0xda),'viewBox':_0x12d1a6(0xac),'width':_0x12d1a6(0x1aa),'height':_0x12d1a6(0x1aa)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x12d1a6(0xd0),'strokeLinecap':'round','strokeLinejoin':_0x12d1a6(0x1bb),'strokeWidth':1.2}}]},{'tag':_0x12d1a6(0x71),'attrs':{},'children':[{'tag':_0x12d1a6(0x143),'attrs':{'id':_0x12d1a6(0x18e)},'children':[{'tag':_0x12d1a6(0x1a1),'attrs':{'fill':_0x12d1a6(0xc2),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x12d1a6(0x18e)]},q=d[_0x12d1a6(0x12f)](function(_0x2fd6b0,_0xb72745){const _0x3b98a2=_0x12d1a6;return d[_0x3b98a2(0x122)](_,Object[_0x3b98a2(0x1c8)]({},_0x2fd6b0,{'id':_0x3b98a2(0xfc),'ref':_0xb72745,'icon':he}));});q[_0x12d1a6(0x1b9)]=_0x12d1a6(0xd6);function V(_0x5d7690){const _0x12e32a=_0x12d1a6;var _0x48eeb3,_0xe886cc;const {mcpCoreConfig:_0xa7fee7,onSave:_0x389b99,loading:_0x3b6b46=!0x1,config:_0x2c533b,connectionStatus$:_0x44f153,connectionError$:_0x19ba0a,currentApiKey$:_0xff1b83,currentSessionId$:_0x287b93}=_0x5d7690,_0x575e81=v['useDependency'](u[_0x12e32a(0x1e4)]),_0x926139=v[_0x12e32a(0x14f)](_0x44f153,s[_0x12e32a(0x19a)]['DISCONNECTED']),_0xec4866=v[_0x12e32a(0x14f)](_0x19ba0a,s[_0x12e32a(0x115)]['NONE']),_0x29a39b=v[_0x12e32a(0x14f)](_0x287b93,''),_0x2d1fb4=v['useObservable'](_0xff1b83,''),[_0x5983e7,_0x190417]=d[_0x12e32a(0x90)](_0x2d1fb4||''),_0x708393=!0x0,_0x27812c=_0x2c533b[_0x12e32a(0x109)]&&_0xa7fee7[_0x12e32a(0xee)]&&(_0xa7fee7[_0x12e32a(0xee)][_0x12e32a(0xbb)]('univer.plus')||_0xa7fee7['mcpServerUrl'][_0x12e32a(0xbb)]('univer.ai')),_0x59f29e=(_0x48eeb3=_0xa7fee7[_0x12e32a(0xee)])==null?void 0x0:_0x48eeb3[_0x12e32a(0xbb)](_0x12e32a(0xae)),_0x114f8d=(_0xe886cc=_0xa7fee7[_0x12e32a(0xee)])==null?void 0x0:_0xe886cc['includes'](_0x12e32a(0x1d0)),_0x5946ab=_0x59f29e?'https://console.univer.plus':'https://console.univer.ai',_0x2cf993=_0x2c533b[_0x12e32a(0x109)]&&(_0x59f29e||_0x114f8d),[_0x6ebbc6,_0x472d83]=d[_0x12e32a(0x90)](!_0x5983e7[_0x12e32a(0x1e5)]()),_0x29c241=(_0x4002cd,_0x25e811)=>{const _0x1ea49e=_0x12e32a;if(_0x25e811===s[_0x1ea49e(0x115)]['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x4002cd){case s[_0x1ea49e(0x19a)]['CONNECTED']:return _0x1ea49e(0x125);case s['MCPConnectionStatus'][_0x1ea49e(0x10c)]:case s[_0x1ea49e(0x19a)]['RETRYING']:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case s[_0x1ea49e(0x19a)]['FAILED']:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x1ea49e(0xeb);}},_0x3d0d7a=(_0x535c1a,_0x241077)=>{const _0x3ea4f0=_0x12e32a;if(_0x241077===s[_0x3ea4f0(0x115)][_0x3ea4f0(0x17b)])return'univer-bg-red-500';switch(_0x535c1a){case s[_0x3ea4f0(0x19a)][_0x3ea4f0(0x120)]:return _0x3ea4f0(0xa2);case s[_0x3ea4f0(0x19a)][_0x3ea4f0(0x10c)]:case s[_0x3ea4f0(0x19a)][_0x3ea4f0(0x78)]:return _0x3ea4f0(0x1cf);case s[_0x3ea4f0(0x19a)][_0x3ea4f0(0x192)]:return _0x3ea4f0(0x1cb);default:return'univer-bg-gray-500';}},_0x79eefb=_0x53e0cd=>{const _0x4db494=_0x12e32a;switch(_0x53e0cd){case s[_0x4db494(0x19a)][_0x4db494(0x120)]:return _0x575e81['t'](_0x4db494(0xe2));case s[_0x4db494(0x19a)][_0x4db494(0x10c)]:return _0x575e81['t'](_0x4db494(0x14b));case s[_0x4db494(0x19a)]['FAILED']:return _0x575e81['t'](_0x4db494(0x1e2));case s[_0x4db494(0x19a)]['RETRYING']:return _0x575e81['t']('mcpConfig.connectionStatus.retrying');default:return _0x575e81['t'](_0x4db494(0x133));}},_0x48f0d1=_0x4d765d=>{const _0x5922f1=_0x12e32a;switch(_0x4d765d){case s[_0x5922f1(0x115)][_0x5922f1(0x17b)]:return _0x575e81['t'](_0x5922f1(0x98));case s[_0x5922f1(0x115)][_0x5922f1(0x83)]:return _0x575e81['t'](_0x5922f1(0x9b));case s[_0x5922f1(0x115)][_0x5922f1(0x9c)]:return _0x575e81['t'](_0x5922f1(0x190));case s[_0x5922f1(0x115)][_0x5922f1(0x184)]:return _0x575e81['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x2dba01=d[_0x12e32a(0x1b3)](()=>{const _0x117b03={..._0xa7fee7,'apiKey':_0x5983e7['trim'](),'enableAuth':_0x708393};_0x389b99(_0x117b03);},[_0xa7fee7,_0x5983e7,_0x708393,_0x389b99]),_0x4fe8cf=_0x5983e7[_0x12e32a(0x1e5)]()[_0x12e32a(0x8f)]>0x0;return i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[i[_0x12e32a(0xe4)](_0x12e32a(0x1ad),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':i['jsxs'](_0x12e32a(0x1ad),{'className':_0x12e32a(0x164),'children':[i['jsx'](_0x12e32a(0x1ad),{'className':_0x12e32a(0x154),'children':i[_0x12e32a(0xe4)](_0x12e32a(0x9f),{'className':_0x12e32a(0xfa),'children':'⚙'})}),i[_0x12e32a(0xe4)](_0x12e32a(0x1ad),{'children':i[_0x12e32a(0xe4)]('p',{'className':_0x12e32a(0x1b8),'children':_0x575e81['t'](_0x12e32a(0x18a))})})]})}),i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':_0x12e32a(0x112),'children':[i[_0x12e32a(0xe4)](_0x12e32a(0x1ad),{'className':f[_0x12e32a(0x1d5)](_0x12e32a(0xb9),_0x29c241(_0x926139,_0xec4866)),'children':i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x12e32a(0xe4)](_0x12e32a(0x1ad),{'className':f['clsx'](_0x12e32a(0xc8),_0x3d0d7a(_0x926139,_0xec4866))}),i['jsx'](_0x12e32a(0x9f),{'className':_0x12e32a(0xe3),'children':_0x79eefb(_0x926139)})]})}),_0xec4866!==s['MCPConnectionError']['NONE']&&(_0x926139===s[_0x12e32a(0x19a)][_0x12e32a(0x192)]||_0xec4866===s['MCPConnectionError']['UNAUTHORIZED'])&&i[_0x12e32a(0xe4)](_0x12e32a(0x1ad),{'className':_0x12e32a(0x1b4),'children':i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[i[_0x12e32a(0xe4)](_0x12e32a(0x9f),{'className':_0x12e32a(0xc9),'children':'⚠️'}),i['jsx']('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x48f0d1(_0xec4866)})]})})]}),i[_0x12e32a(0xe4)](_0x12e32a(0x1ad),{'className':_0x12e32a(0xec),'children':i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':_0x12e32a(0x185),'children':[i['jsxs'](_0x12e32a(0x1ad),{'className':_0x12e32a(0xdc),'children':[i[_0x12e32a(0xdb)](_0x12e32a(0x1cd),{'className':_0x12e32a(0xba),'children':[i[_0x12e32a(0xe4)]('span',{'children':'🔑'}),'\x20',_0x575e81['t'](_0x12e32a(0x195)),i[_0x12e32a(0xe4)](_0x12e32a(0x9f),{'className':'univer-text-red-500','children':'*'}),_0x27812c&&i[_0x12e32a(0xe4)]('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x575e81['t'](_0x12e32a(0x11c)),'role':_0x12e32a(0x14a),'onClick':()=>_0x472d83(!0x0),'children':i[_0x12e32a(0xe4)](F,{})})]}),i[_0x12e32a(0xe4)](f[_0x12e32a(0x12d)],{'type':_0x12e32a(0x110),'placeholder':_0x575e81['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x5983e7,'disabled':_0x3b6b46,'autoComplete':_0x12e32a(0x169),'onChange':_0x190417}),i['jsx']('p',{'className':_0x12e32a(0xef),'children':_0x575e81['t'](_0x12e32a(0xe9))})]}),_0x27812c&&_0x6ebbc6&&i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':_0x12e32a(0x158),'children':[i[_0x12e32a(0xe4)]('a',{'className':_0x12e32a(0x1e9),'role':_0x12e32a(0x14a),'onClick':()=>_0x472d83(!0x1),'children':i[_0x12e32a(0xe4)](B,{'className':_0x12e32a(0x18b)})}),i[_0x12e32a(0xdb)]('div',{'className':_0x12e32a(0x162),'children':[i['jsx'](_0x12e32a(0x1ad),{'className':_0x12e32a(0x117),'children':i[_0x12e32a(0xe4)](_0x12e32a(0x9f),{'className':'univer-text-blue-600','children':'🚀'})}),i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':'univer-flex-1','children':[i[_0x12e32a(0xe4)]('h4',{'className':_0x12e32a(0x76),'children':_0x575e81['t']('mcpConfig.apiApplyInfo.title')}),i[_0x12e32a(0xe4)]('p',{'className':_0x12e32a(0xcd),'children':_0x575e81['t'](_0x12e32a(0x74))}),i[_0x12e32a(0xe4)](_0x12e32a(0x1ad),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x2cf993&&i['jsxs']('a',{'className':_0x12e32a(0x77),'href':_0x5946ab,'target':'_blank','rel':_0x12e32a(0x1df),'children':[i[_0x12e32a(0xe4)](_0x12e32a(0x9f),{'children':'🤖'}),_0x575e81['t']('mcpConfig.apiApplyInfo.univerAiLabel'),i[_0x12e32a(0xe4)](_0x12e32a(0x9f),{'className':_0x12e32a(0x97),'children':'↗'})]})}),i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':_0x12e32a(0x172),'children':['✨','\x20',_0x575e81['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x2c533b[_0x12e32a(0x109)]&&i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':_0x12e32a(0x186),'children':[i[_0x12e32a(0xdb)]('h4',{'className':_0x12e32a(0x142),'children':[i[_0x12e32a(0xe4)]('span',{'children':'🔗'}),'\x20',_0x575e81['t'](_0x12e32a(0x11e))]}),i['jsxs'](_0x12e32a(0x1ad),{'className':_0x12e32a(0x85),'children':[i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':'univer-space-y-3','children':[i['jsx']('p',{'className':_0x12e32a(0x106),'children':_0x575e81['t']('mcpConfig.configInstructions')}),i['jsxs'](_0x12e32a(0x1ad),{'className':_0x12e32a(0xdc),'children':[i[_0x12e32a(0xe4)](_0x12e32a(0x1ad),{'className':_0x12e32a(0x87),'children':_0x575e81['t'](_0x12e32a(0xd5))}),i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':_0x12e32a(0x129),'children':[i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':_0x12e32a(0x134),'children':[i[_0x12e32a(0xe4)](_0x12e32a(0x9f),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x575e81['t'](_0x12e32a(0x149))]}),i['jsxs']('div',{'className':_0x12e32a(0x134),'children':[i['jsx']('span',{'className':_0x12e32a(0x13d),'children':'2'}),_0x575e81['t'](_0x12e32a(0x12e))]}),i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':_0x12e32a(0x134),'children':[i['jsx']('span',{'className':_0x12e32a(0x13d),'children':'3'}),_0x575e81['t'](_0x12e32a(0x8d))]})]})]})]}),i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':_0x12e32a(0xdc),'children':[i[_0x12e32a(0xe4)](_0x12e32a(0x1ad),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x12e32a(0x119)}),i[_0x12e32a(0xe4)](_0x12e32a(0x1ad),{'className':_0x12e32a(0xcc),'children':i['jsx'](_0x12e32a(0x1c1),{'className':_0x12e32a(0xf1),'children':JSON[_0x12e32a(0xf0)]({'mcpServers':{'univer':{'url':_0x12e32a(0x152)+(_0x29a39b||_0x12e32a(0xc0)),'type':_0x12e32a(0xa0),'headers':{'Authorization':_0x12e32a(0xd7)+(_0x5983e7||'<API_KEY>')}}}},null,0x2)})})]}),i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':_0x12e32a(0x6f),'children':[i[_0x12e32a(0xe4)](_0x12e32a(0x1ad),{'className':_0x12e32a(0x87),'children':_0x575e81['t'](_0x12e32a(0x160))}),i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':_0x12e32a(0xdc),'children':[i['jsxs']('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[i[_0x12e32a(0xe4)]('div',{'className':_0x12e32a(0x92)}),i[_0x12e32a(0xdb)]('div',{'className':_0x12e32a(0x16e),'children':[i['jsx'](_0x12e32a(0x1ad),{'className':_0x12e32a(0xbf),'children':_0x12e32a(0x178)}),i[_0x12e32a(0xe4)](_0x12e32a(0x1ad),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x575e81['t'](_0x12e32a(0x124))})]})]}),i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':_0x12e32a(0xc7),'children':[i['jsx']('div',{'className':_0x12e32a(0x92)}),i['jsxs'](_0x12e32a(0x1ad),{'className':_0x12e32a(0x16e),'children':[i[_0x12e32a(0xe4)](_0x12e32a(0x1ad),{'className':_0x12e32a(0xbf),'children':_0x12e32a(0x1d4)}),i[_0x12e32a(0xe4)](_0x12e32a(0x1ad),{'className':_0x12e32a(0xef),'children':_0x575e81['t'](_0x12e32a(0x193))})]})]})]})]})]})]}),i[_0x12e32a(0xe4)](f[_0x12e32a(0x16c)],{'onClick':_0x2dba01,'disabled':!_0x4fe8cf||_0x3b6b46,'className':_0x12e32a(0x17e),'children':_0x3b6b46?i[_0x12e32a(0xdb)](_0x12e32a(0x9f),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x12e32a(0xe4)](_0x12e32a(0x9f),{'children':'⟲'}),_0x575e81['t'](_0x12e32a(0xd8))]}):i[_0x12e32a(0xdb)](_0x12e32a(0x9f),{'className':_0x12e32a(0x134),'children':[i[_0x12e32a(0xe4)](H,{}),_0x575e81['t'](_0x12e32a(0x17c))]})}),i[_0x12e32a(0xe4)](_0x12e32a(0x1ad),{'className':_0x12e32a(0xf7),'children':i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':_0x12e32a(0x166),'children':[i[_0x12e32a(0xe4)](_0x12e32a(0x9f),{'className':_0x12e32a(0x1b6),'children':'💡'}),i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'className':_0x12e32a(0x199),'children':[i['jsx'](_0x12e32a(0x1ad),{'className':_0x12e32a(0x1ac),'children':_0x12e32a(0x1b2)}),i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'children':['•',_0x575e81['t']('mcpConfig.note1')]}),i[_0x12e32a(0xdb)](_0x12e32a(0x1ad),{'children':['•',_0x575e81['t'](_0x12e32a(0x15f))]})]})]})})]})})]});}const P=_0x12d1a6(0xb2),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x12d1a6(0x12c)],xe=(_0x40622b,_0xbd9f8c,_0xa4e8b9,_0x1cf762)=>{for(var _0x312355=_0x1cf762>0x1?void 0x0:_0x1cf762?me(_0xbd9f8c,_0xa4e8b9):_0xbd9f8c,_0x294c77=_0x40622b['length']-0x1,_0x536237;_0x294c77>=0x0;_0x294c77--)(_0x536237=_0x40622b[_0x294c77])&&(_0x312355=_0x536237(_0x312355)||_0x312355);return _0x312355;},g=(_0x3acec3,_0x1e4da9)=>(_0x515bb9,_0x2c276f)=>_0x1e4da9(_0x515bb9,_0x2c276f,_0x3acec3);const O=_0x12d1a6(0x147),D=_0x12d1a6(0x15e);exports['MCPConfigUIController']=class extends u['Disposable']{constructor(_0x3eb376,_0x49c2e0,_0x2b5177,_0x2bccf8,_0x5ca3ae,_0x91b192,_0x4b9c24,_0x59f576,_0x1e399d,_0x1a630d){const _0x29bca4=_0x12d1a6;super(),I(this,_0x29bca4(0x15d),new M[(_0x29bca4(0x108))](!0x1)),I(this,_0x29bca4(0x13f),new M['BehaviorSubject']({})),I(this,_0x29bca4(0x12b),new M[(_0x29bca4(0x108))]({})),I(this,_0x29bca4(0x1c7),new M[(_0x29bca4(0x108))]('')),I(this,_0x29bca4(0x19d),async _0x361c02=>{const _0x5be5a0=_0x29bca4;var _0xaac888,_0x43245e;this[_0x5be5a0(0x15d)][_0x5be5a0(0x11b)](!0x0);try{const _0xfd7e24=await this['_validateConfig'](_0x361c02);if(!_0xfd7e24[_0x5be5a0(0xb8)]){this[_0x5be5a0(0x128)][_0x5be5a0(0xe5)]({'type':f['MessageType'][_0x5be5a0(0x72)],'content':_0xfd7e24[_0x5be5a0(0x14e)]||this[_0x5be5a0(0x1d8)]['t'](_0x5be5a0(0x7f))});return;}_0x361c02[_0x5be5a0(0x1b5)]?await this['_localStorageService'][_0x5be5a0(0xa5)](O,_0x361c02[_0x5be5a0(0x1b5)][_0x5be5a0(0x1e5)]()):await this[_0x5be5a0(0xad)][_0x5be5a0(0xa3)](O),this[_0x5be5a0(0x1c7)][_0x5be5a0(0x11b)](((_0xaac888=_0x361c02[_0x5be5a0(0x1b5)])==null?void 0x0:_0xaac888['trim']())||''),this['_mcpConnectionController'][_0x5be5a0(0x156)]({'Authorization':_0x5be5a0(0xd7)+((_0x43245e=_0x361c02[_0x5be5a0(0x1b5)])==null?void 0x0:_0x43245e[_0x5be5a0(0x1e5)]())}),this[_0x5be5a0(0x128)]['show']({'type':f[_0x5be5a0(0x1c9)]['Success'],'content':this[_0x5be5a0(0x1d8)]['t'](_0x5be5a0(0x1db))}),setTimeout(()=>{const _0x1bfd22=_0x5be5a0;this[_0x1bfd22(0xa1)][_0x1bfd22(0x145)](D);},0x320);}catch(_0x12a551){this['_logService'][_0x5be5a0(0x1a3)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x12a551),this[_0x5be5a0(0x128)][_0x5be5a0(0xe5)]({'type':f[_0x5be5a0(0x1c9)][_0x5be5a0(0x72)],'content':this[_0x5be5a0(0x1d8)]['t'](_0x5be5a0(0x151))});}finally{this[_0x5be5a0(0x15d)][_0x5be5a0(0x11b)](!0x1);}}),(this[_0x29bca4(0x1ab)]=_0x3eb376,this['_uiPartsService']=_0x49c2e0,this['_configService']=_0x2b5177,this[_0x29bca4(0xad)]=_0x2bccf8,this['_dialogService']=_0x5ca3ae,this[_0x29bca4(0x128)]=_0x91b192,this[_0x29bca4(0x1c3)]=_0x4b9c24,this[_0x29bca4(0x1d8)]=_0x59f576,this[_0x29bca4(0x179)]=_0x1e399d,this['_mcpConnectionController']=_0x1a630d,this[_0x29bca4(0xaf)](),this[_0x29bca4(0x111)](),this[_0x29bca4(0x189)]());}[_0x12d1a6(0x8c)](){const _0x48e8b4=_0x12d1a6,_0x4cff30=this[_0x48e8b4(0x17d)]['getConfig'](P);_0x4cff30!=null&&_0x4cff30[_0x48e8b4(0x109)]&&this['_dialogService'][_0x48e8b4(0x173)]({'id':D,'title':{'title':this[_0x48e8b4(0x1d8)]['t'](_0x48e8b4(0x1af))},'children':{'label':_0x48e8b4(0x113)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x2db4e3=_0x48e8b4;this[_0x2db4e3(0xa1)][_0x2db4e3(0x145)](D);}});}[_0x12d1a6(0xdd)](){const _0x41220f=_0x12d1a6;return this[_0x41220f(0x13f)][_0x41220f(0x1ce)];}[_0x12d1a6(0x189)](){const _0x5d94a7=_0x12d1a6;this[_0x5d94a7(0x89)](this['_componentManager'][_0x5d94a7(0x144)](_0x5d94a7(0x113),this['_createConfigPanelComponent']()));}[_0x12d1a6(0xe7)](){const _0x55203f=_0x12d1a6;return v[_0x55203f(0x139)](()=>{const _0x204cf3=_0x55203f;var _0x3774a5,_0x349073,_0x5ce6ff;return i[_0x204cf3(0xe4)](V,{'config':this[_0x204cf3(0x12b)][_0x204cf3(0x1ce)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x204cf3(0x1ce)],'currentApiKey$':this[_0x204cf3(0x1c7)],'onSave':this[_0x204cf3(0x19d)],'loading':this[_0x204cf3(0x15d)]['value'],'connectionStatus$':(_0x3774a5=this[_0x204cf3(0x100)])==null?void 0x0:_0x3774a5['connectionStatus$'],'connectionError$':(_0x349073=this[_0x204cf3(0x100)])==null?void 0x0:_0x349073[_0x204cf3(0x1e3)],'currentSessionId$':(_0x5ce6ff=this[_0x204cf3(0x100)])==null?void 0x0:_0x5ce6ff[_0x204cf3(0x1a2)]});},this['_injector']);}[_0x12d1a6(0xaf)](){const _0x5e2886=_0x12d1a6;this['disposeWithMe'](this[_0x5e2886(0x17d)][_0x5e2886(0xcf)](s['MCP_PLUGIN_CONFIG_KEY'])[_0x5e2886(0xc1)](_0x699ce2=>{const _0x203281=_0x5e2886;this['_mcpCoreConfig$'][_0x203281(0x11b)](_0x699ce2||{});}));const _0x5a61b6=this['_configService']['getConfig'](s['MCP_PLUGIN_CONFIG_KEY']);this[_0x5e2886(0x13f)][_0x5e2886(0x11b)](_0x5a61b6||{}),this['disposeWithMe'](this[_0x5e2886(0x17d)][_0x5e2886(0xcf)](P)[_0x5e2886(0xc1)](_0x3553f2=>{const _0x3fa694=_0x5e2886;this[_0x3fa694(0x12b)]['next'](_0x3553f2||{});}));const _0x3c330b=this[_0x5e2886(0x17d)][_0x5e2886(0x18d)](P);this[_0x5e2886(0x12b)][_0x5e2886(0x11b)](_0x3c330b||{});}async['_loadStoredApiKey'](){const _0x3e670c=_0x12d1a6,_0x4f7af5=this[_0x3e670c(0x17d)]['getConfig'](P);if(!(_0x4f7af5!=null&&_0x4f7af5['showDeveloperTools']))return;const _0x159480=await this[_0x3e670c(0xad)][_0x3e670c(0x14d)](O);_0x159480&&(this[_0x3e670c(0x100)][_0x3e670c(0x156)]({'Authorization':_0x3e670c(0xd7)+_0x159480}),this['_apiKey$'][_0x3e670c(0x11b)](_0x159480));}async[_0x12d1a6(0x1a4)](_0xfe846f){const _0x57a656=_0x12d1a6;if(!_0xfe846f['apiKey']||_0xfe846f[_0x57a656(0x1b5)][_0x57a656(0x1e5)]()[_0x57a656(0x8f)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x57a656(0x1d8)]['t'](_0x57a656(0x1e1))};if(_0xfe846f[_0x57a656(0x1b5)][_0x57a656(0x1e5)]()[_0x57a656(0x8f)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x57a656(0x1d8)]['t'](_0x57a656(0x132))};try{const _0x403e44=await this[_0x57a656(0x1ab)]['get'](s[_0x57a656(0x1bc)])['validateApiKey'](_0xfe846f[_0x57a656(0x1b5)][_0x57a656(0x1e5)]());return _0x403e44[_0x57a656(0xb8)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x403e44['error']||this[_0x57a656(0x1d8)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x3f58e7){return console[_0x57a656(0x161)](_0x57a656(0x1de),_0x3f58e7),{'isValid':!0x0};}}},exports['MCPConfigUIController']=xe([g(0x0,u[_0x12d1a6(0x116)](u[_0x12d1a6(0x14c)])),g(0x1,v[_0x12d1a6(0x121)]),g(0x2,u[_0x12d1a6(0x8a)]),g(0x3,u[_0x12d1a6(0xed)]),g(0x4,v[_0x12d1a6(0xca)]),g(0x5,v[_0x12d1a6(0x13e)]),g(0x6,u[_0x12d1a6(0x116)](v['ComponentManager'])),g(0x7,u[_0x12d1a6(0x116)](u['LocaleService'])),g(0x8,u[_0x12d1a6(0x1c2)]),g(0x9,u[_0x12d1a6(0x116)](s[_0x12d1a6(0x1bc)]))],exports[_0x12d1a6(0x82)]);const b={'id':'mcp-ui.command.openConfigPanel','type':u[_0x12d1a6(0xf2)][_0x12d1a6(0x1ea)],'handler':async(_0x2009ae,_0x4a0e20)=>(_0x2009ae[_0x12d1a6(0x1be)](exports['MCPConfigUIController'])[_0x12d1a6(0x8c)](),!0x0)};function Z(_0x44b3bd,_0x41c767){const _0x2ac6af=_0x12d1a6;switch(_0x44b3bd){case s[_0x2ac6af(0x19a)][_0x2ac6af(0x1c0)]:return _0x2ac6af(0x17a);case s[_0x2ac6af(0x19a)][_0x2ac6af(0x10c)]:return'mcpStatus.connecting';case s[_0x2ac6af(0x19a)]['CONNECTED']:return _0x2ac6af(0x13a);case s[_0x2ac6af(0x19a)]['FAILED']:switch(_0x41c767){case s['MCPConnectionError'][_0x2ac6af(0x17b)]:return _0x2ac6af(0xb1);case s['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x2ac6af(0x19c);case s['MCPConnectionError'][_0x2ac6af(0x9c)]:return _0x2ac6af(0xc5);case s['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x2ac6af(0xbe);default:return _0x2ac6af(0xff);}case s[_0x2ac6af(0x19a)][_0x2ac6af(0x78)]:return'mcpStatus.retrying';default:return _0x2ac6af(0x96);}}function Se(_0xb1a180,_0x118d4b,_0x5f1940,_0x5186d3=!0x0){const _0x2a632a=_0x12d1a6,_0x3af43a=Z(_0xb1a180,_0x118d4b),_0x23b7c8=_0x5f1940['t'](_0x3af43a);return _0x5186d3?_0xb1a180===s['MCPConnectionStatus'][_0x2a632a(0x1c0)]&&_0x118d4b===s['MCPConnectionError']['UNAUTHORIZED']?_0x23b7c8+_0x2a632a(0x196)+_0x5f1940['t']('mcpStatus.clickToConfigure'):_0xb1a180===s[_0x2a632a(0x19a)][_0x2a632a(0x120)]?''+_0x23b7c8:_0xb1a180===s[_0x2a632a(0x19a)]['DISCONNECTED']||_0xb1a180===s['MCPConnectionStatus'][_0x2a632a(0x192)]?_0x23b7c8+_0x2a632a(0x196)+_0x5f1940['t'](_0x2a632a(0x1ca)):_0x23b7c8:_0x23b7c8;}function Pe(_0x1dc12a){const _0x3c3797=_0x12d1a6;switch(_0x1dc12a){case s['MCPConnectionStatus'][_0x3c3797(0x120)]:return _0x3c3797(0x191);case s[_0x3c3797(0x19a)][_0x3c3797(0x10c)]:case s['MCPConnectionStatus'][_0x3c3797(0x78)]:return _0x3c3797(0x1cc);case s[_0x3c3797(0x19a)][_0x3c3797(0x192)]:case s[_0x3c3797(0x19a)][_0x3c3797(0x1c0)]:return _0x3c3797(0x10f);default:return _0x3c3797(0x102);}}function W(_0x11e69e){const _0x1a2eb1=_0x12d1a6,{status$:_0x5c5405,error$:_0x4dbe0c,onConfigure:_0x2d2383,showClickable:_0x27ac29=!0x0}=_0x11e69e,_0x169ed7=v[_0x1a2eb1(0x14f)](_0x5c5405,s[_0x1a2eb1(0x19a)][_0x1a2eb1(0x1c0)]),_0x1b6e17=v[_0x1a2eb1(0x14f)](_0x4dbe0c,s[_0x1a2eb1(0x115)][_0x1a2eb1(0x1a0)]),_0x3485da=v['useDependency'](u['LocaleService']),_0x59017f=_0x169ed7===s[_0x1a2eb1(0x19a)]['CONNECTED'];_0x169ed7===s[_0x1a2eb1(0x19a)]['CONNECTING']||s[_0x1a2eb1(0x19a)][_0x1a2eb1(0x78)];const _0x15c847=_0x3485da['t'](Z(_0x169ed7,_0x1b6e17)),_0x23a74e=Se(_0x169ed7,_0x1b6e17,_0x3485da,_0x27ac29),_0x565b4b=Pe(_0x169ed7),_0x56bc8c=_0x59017f?i['jsx'](q,{}):i['jsx'](Y,{}),_0x2ee339=d[_0x1a2eb1(0x1b3)](()=>{_0x27ac29&&_0x2d2383&&_0x2d2383();},[_0x27ac29,_0x2d2383]);function _0x322a9b(){const _0x2b5adf=_0x1a2eb1;return i[_0x2b5adf(0xdb)](_0x2b5adf(0x1ad),{'className':f[_0x2b5adf(0x1d5)](_0x2b5adf(0xa4),_0x27ac29&&_0x2d2383&&_0x2b5adf(0x1b1)),'role':_0x2b5adf(0x14a),'onClick':_0x27ac29&&_0x2d2383?_0x2ee339:void 0x0,'children':[i[_0x2b5adf(0xe4)](_0x2b5adf(0x1ad),{'className':f[_0x2b5adf(0x1d5)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x565b4b),'children':_0x56bc8c}),i['jsx'](_0x2b5adf(0x1ad),{'className':_0x2b5adf(0x123),'children':_0x15c847})]});}return i[_0x1a2eb1(0xe4)](f[_0x1a2eb1(0x15a)],{'title':_0x23a74e,'placement':_0x1a2eb1(0x15b),'children':_0x322a9b()});}var Ie=Object['getOwnPropertyDescriptor'],_e=(_0xd4cec0,_0x45a3c4,_0x503931,_0x663b35)=>{const _0x29987b=_0x12d1a6;for(var _0x21e2d6=_0x663b35>0x1?void 0x0:_0x663b35?Ie(_0x45a3c4,_0x503931):_0x45a3c4,_0x5aeaac=_0xd4cec0[_0x29987b(0x8f)]-0x1,_0x58e33f;_0x5aeaac>=0x0;_0x5aeaac--)(_0x58e33f=_0xd4cec0[_0x5aeaac])&&(_0x21e2d6=_0x58e33f(_0x21e2d6)||_0x21e2d6);return _0x21e2d6;},N=(_0x2fc827,_0xa6cd78)=>(_0x5188a6,_0x556c44)=>_0xa6cd78(_0x5188a6,_0x556c44,_0x2fc827);exports[_0x12d1a6(0x176)]=class extends u[_0x12d1a6(0x183)]{constructor(_0x302817,_0x2fa556,_0x62930,_0x19a1ba){const _0x18b587=_0x12d1a6;super(),this[_0x18b587(0x1ab)]=_0x302817,this[_0x18b587(0x19e)]=_0x2fa556,this[_0x18b587(0x146)]=_0x62930,this[_0x18b587(0x17d)]=_0x19a1ba,this[_0x18b587(0x138)](),this[_0x18b587(0x135)]();}[_0x12d1a6(0x138)](){const _0x2bbbf0=_0x12d1a6,_0x15a596=this[_0x2bbbf0(0x17d)][_0x2bbbf0(0x18d)](P);_0x15a596!=null&&_0x15a596['showDeveloperTools']&&(this[_0x2bbbf0(0x19e)][_0x2bbbf0(0x94)]=!0x1);}[_0x12d1a6(0x135)](){const _0x3a0f4c=_0x12d1a6,_0x35df78=this[_0x3a0f4c(0x17d)][_0x3a0f4c(0x18d)](P);(_0x35df78==null?void 0x0:_0x35df78['showStatus'])!==!0x1&&this['disposeWithMe'](this[_0x3a0f4c(0x146)][_0x3a0f4c(0x171)](v['BuiltInUIPart'][_0x3a0f4c(0xc6)],()=>{const _0x40958c=_0x3a0f4c;var _0x3c37ab;return v[_0x40958c(0x139)](ye({'status$':this[_0x40958c(0x19e)]['connectionStatus$'],'error$':this['_connectionController'][_0x40958c(0x1e3)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x3c37ab=_0x35df78==null?void 0x0:_0x35df78[_0x40958c(0x109)])!=null?_0x3c37ab:!0x1}),this[_0x40958c(0x1ab)]);}));}[_0x12d1a6(0x1e0)](){const _0x231657=_0x12d1a6;this[_0x231657(0x1ab)]['get'](exports[_0x231657(0x82)])[_0x231657(0x8c)]();}},exports['MCPConnectionUIController']=_e([N(0x0,u[_0x12d1a6(0x116)](u['Injector'])),N(0x1,u[_0x12d1a6(0x116)](s['MCPConnectionController'])),N(0x2,v['IUIPartsService']),N(0x3,u[_0x12d1a6(0x8a)])],exports[_0x12d1a6(0x176)]);function ye(_0x2f4d76){const {status$:_0x6dafc0,error$:_0x1b766a,onConfigure:_0x51796a,showClickable:_0x3c32e8}=_0x2f4d76;return function(){const _0x566f3e=_0x1261;return i[_0x566f3e(0xe4)](W,{'status$':_0x6dafc0,'error$':_0x1b766a,'onConfigure':_0x51796a,'showClickable':_0x3c32e8});};}function Me(_0x1ee3de){const _0x3fdbf8=_0x12d1a6;return{'id':b['id'],'type':v[_0x3fdbf8(0xfb)]['BUTTON'],'icon':_0x3fdbf8(0xa9),'title':_0x3fdbf8(0x1af),'tooltip':_0x3fdbf8(0x1af)};}const Ne={[v[_0x12d1a6(0x16f)][_0x12d1a6(0xa8)]]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object['getOwnPropertyDescriptor'],je=(_0x5666ad,_0x41daaf,_0x3b9851,_0x54a8ef)=>{const _0x41f64b=_0x12d1a6;for(var _0x4a8297=_0x54a8ef>0x1?void 0x0:_0x54a8ef?be(_0x41daaf,_0x3b9851):_0x41daaf,_0x14cfe4=_0x5666ad[_0x41f64b(0x8f)]-0x1,_0x58e4ea;_0x14cfe4>=0x0;_0x14cfe4--)(_0x58e4ea=_0x5666ad[_0x14cfe4])&&(_0x4a8297=_0x58e4ea(_0x4a8297)||_0x4a8297);return _0x4a8297;},z=(_0x28025c,_0x454570)=>(_0x36cabc,_0x51b25c)=>_0x454570(_0x36cabc,_0x51b25c,_0x28025c);exports[_0x12d1a6(0xe8)]=class extends u['Disposable']{constructor(_0xd4cac5,_0x471f9e){const _0x1ac653=_0x12d1a6;super(),this[_0x1ac653(0x105)]=_0xd4cac5,this['_menuManagerService']=_0x471f9e,this[_0x1ac653(0x126)](),this[_0x1ac653(0x155)]();}[_0x12d1a6(0x126)](){const _0x27f17e=_0x12d1a6;[b][_0x27f17e(0x7a)](_0x223f4e=>{const _0x9a3579=_0x27f17e;this['disposeWithMe'](this[_0x9a3579(0x105)]['registerCommand'](_0x223f4e));});}[_0x12d1a6(0x155)](){const _0x2e530b=_0x12d1a6;this[_0x2e530b(0x136)][_0x2e530b(0xdf)](Ne);}},exports['MCPUIMenuController']=je([z(0x0,u[_0x12d1a6(0x70)]),z(0x1,v[_0x12d1a6(0x140)])],exports['MCPUIMenuController']);const Ee={'mcpStatus':{'disconnected':_0x12d1a6(0x1a6),'connecting':_0x12d1a6(0xce),'connected':_0x12d1a6(0x1d1),'failed':_0x12d1a6(0xd3),'retrying':_0x12d1a6(0xab),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x12d1a6(0x19b),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x12d1a6(0x1c6),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x12d1a6(0x119),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x12d1a6(0xaa),'apiKeyHint':_0x12d1a6(0x9e),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x12d1a6(0x1bf),'mcpClientConfig':_0x12d1a6(0x1bf),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x12d1a6(0xd4),'configStep1':_0x12d1a6(0x8b),'configStep2':_0x12d1a6(0x99),'configStep3':_0x12d1a6(0x19f),'sessionId':_0x12d1a6(0xf3),'sessionIdDescription':_0x12d1a6(0x1ec),'authorizationDescription':_0x12d1a6(0x177),'configParameters':_0x12d1a6(0xf5),'maxRetries':_0x12d1a6(0x1d2),'save':_0x12d1a6(0x159),'saving':_0x12d1a6(0x1d7),'note1':_0x12d1a6(0xf9),'note2':_0x12d1a6(0x17f),'configSaved':_0x12d1a6(0xa7),'configError':_0x12d1a6(0x18c),'apiApplyInfo':{'title':_0x12d1a6(0x187),'description':_0x12d1a6(0x1a8),'univerAiLabel':_0x12d1a6(0x1ae),'getStarted':_0x12d1a6(0x1d9)},'validation':{'apiKeyRequired':_0x12d1a6(0x11a),'apiKeyTooShort':_0x12d1a6(0x130),'invalidConfig':_0x12d1a6(0x79),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x12d1a6(0x141),'connected':_0x12d1a6(0x84),'failed':'Connection\x20Failed','retrying':_0x12d1a6(0xa6)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x12d1a6(0x11d),'networkError':_0x12d1a6(0x86),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},we={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x12d1a6(0x75),'connected':_0x12d1a6(0x1e6),'failed':_0x12d1a6(0x170),'retrying':'MCP\x20重连中...','unknown':_0x12d1a6(0x1e7),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x12d1a6(0xd9),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x12d1a6(0x10b),'clickToConnect':_0x12d1a6(0xc4),'clickToConfigure':_0x12d1a6(0x107)},'mcpConfig':{'title':_0x12d1a6(0x194),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x12d1a6(0x1c4),'apiKeyPlaceholder':_0x12d1a6(0xb3),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':_0x12d1a6(0x127),'connectionInfo':_0x12d1a6(0x1d3),'mcpClientConfig':_0x12d1a6(0x1d3),'configInstructions':_0x12d1a6(0x137),'configStepTitle':'配置步骤:','configStep1':_0x12d1a6(0x10d),'configStep2':_0x12d1a6(0xf6),'configStep3':_0x12d1a6(0x1dd),'sessionId':'会话ID','sessionIdDescription':_0x12d1a6(0x73),'authorizationDescription':_0x12d1a6(0x182),'configParameters':'配置参数:','maxRetries':_0x12d1a6(0x1b7),'save':'保存配置','saving':'保存中...','note1':_0x12d1a6(0x167),'note2':_0x12d1a6(0x16a),'configSaved':_0x12d1a6(0x1c5),'configError':_0x12d1a6(0xb0),'apiApplyInfo':{'title':_0x12d1a6(0xbd),'description':_0x12d1a6(0x103),'univerAiLabel':_0x12d1a6(0x1ba),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x12d1a6(0x13b),'invalidApiKey':_0x12d1a6(0xbc)},'connectionStatus':{'disconnected':_0x12d1a6(0xfe),'connecting':_0x12d1a6(0x1bd),'connected':_0x12d1a6(0x150),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x12d1a6(0xc3),'sessionOccupied':_0x12d1a6(0x1e8),'networkError':_0x12d1a6(0x153),'maxRetriesExceeded':_0x12d1a6(0x16b)}}};function _0x2acf(){const _0x154dd1=['error','_validateConfig','colorChannel1','MCP\x20Disconnected','check-mark-icon','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','4hJXjkw','1em','_injector','univer-font-medium','div','Univer\x20AI\x20Console','mcpConfig.title','ISocketService','\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','Configuration\x20Notes:','useCallback','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','apiKey','univer-shrink-0\x20univer-text-blue-500','最大重试次数','univer-text-sm\x20univer-text-gray-500','displayName','Univer\x20AI\x20控制台','round','MCPConnectionController','连接中...','get','MCP\x20Client\x20Configuration','DISCONNECTED','pre','ILogService','_componentManager','API\x20密钥','配置保存成功','Click\x20to\x20connect\x20MCP','_apiKey$','assign','MessageType','mcpStatus.clickToConnect','univer-bg-red-500','univer-text-yellow-500','label','value','univer-bg-blue-500','univer.ai','MCP\x20Connected','Max\x20Retries','MCP\x20客户端配置','Authorization:','clsx','url(#$1','Saving...','_localeService','Get\x20your\x20API\x20key\x20in\x20seconds','merge','mcpConfig.configSaved','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','重启您的\x20MCP\x20客户端以使配置生效','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','noopener\x20noreferrer','_handleConfigure','mcpConfig.validation.apiKeyRequired','mcpConfig.connectionStatus.failed','connectionError$','LocaleService','trim','MCP\x20已连接','MCP\x20状态未知','会话\x20ID\x20已被占用,请稍后再试','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','COMMAND','1820636irVYSV','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','UniverIcon','univer-space-y-3','ICommandService','defs','Error','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','mcpConfig.apiApplyInfo.description','MCP\x20连接中...','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','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','RETRYING','Invalid\x20configuration','forEach','0\x200\x2016\x2016','1174545FllCCm','OpenMCPConfigPanelCommand','setConfig','mcpConfig.validation.invalidConfig','DependentOn','808JygGdF','MCPConfigUIController','SESSION_ID_OCCUPIED','Connected','univer-space-y-4','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','currentColor','disposeWithMe','IConfigService','Copy\x20the\x20JSON\x20configuration\x20below','showConfigPanel','mcpConfig.configStep3','idSuffix','length','useState','replace','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','OffLineIcon','enableAutoConnect','use','mcpStatus.unknown','univer-text-gray-400','mcpConfig.connectionError.unauthorized','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','78729roXZlp','mcpConfig.connectionError.sessionOccupied','NETWORK_ERROR','has','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','span','http','_dialogService','univer-bg-green-500','removeItem','univer-flex\x20univer-items-center','setItem','Retrying...','Configuration\x20saved\x20successfully','OTHERS','MenuIcon','Enter\x20your\x20API\x20key','MCP\x20Retrying...','0\x200\x2017\x2016','_localStorageService','univer.plus','_initConfigSync','配置保存失败','mcpStatus.unauthorized','mcp-ui.config','请输入您的\x20API\x20密钥','onStarting','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','univerjs-icon\x20univerjs-icon-','off-line-icon','isValid','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','includes','API\x20密钥无效,请检查密钥是否正确','什么是\x20API\x20密钥?','mcpStatus.maxRetriesExceeded','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','<SESSION_ID>','subscribe','white','权限验证失败,请检查您的\x20API\x20密钥','点击连接\x20MCP','mcpStatus.networkError','HEADER_MENU','univer-flex\x20univer-items-start\x20univer-gap-3','univer-size-2\x20univer-rounded-full','univer-shrink-0\x20univer-text-red-500','IDialogService','url(#off-line-icon_clip0_910_343)','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','MCP\x20Connecting...','subscribeConfigValue$','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','xlink:href','_config','MCP\x20Connection\x20Failed','Configuration\x20Steps:','mcpConfig.configStepTitle','OnLineIcon','Bearer\x20','mcpConfig.saving','MCP:\x20会话\x20ID\x20已被占用','none','jsxs','univer-space-y-2','getCurrentConfig','CloseIcon','mergeMenu','6nyDwho','tag','mcpConfig.connectionStatus.connected','univer-text-sm\x20univer-font-medium','jsx','show','toString','_createConfigPanelComponent','MCPUIMenuController','mcpConfig.apiKeyHint','entries','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','ILocalStorageService','mcpServerUrl','univer-text-xs\x20univer-text-gray-500','stringify','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','CommandType','Session\x20ID','svg','Configuration\x20Parameters:','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','http://www.w3.org/2000/svg','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-text-white','MenuItemType','on-line-icon','children','未连接','mcpStatus.failed','_mcpConnectionController','off-line-icon_clip0_910_343','univer-text-gray-500','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','UniverMCPUIPlugin','_commandService','univer-text-xs\x20univer-text-gray-600','点击配置\x20MCP','BehaviorSubject','showDeveloperTools','current','MCP:\x20超出最大重试次数','CONNECTING','复制以下\x20JSON\x20配置','substring','univer-text-red-500','text','_loadStoredApiKey','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','MCPConfigPanel','map','MCPConnectionError','Inject','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','enUS','MCP\x20Configuration','API\x20key\x20is\x20required','next','mcpConfig.apiApplyInfo.title','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpConfig.connectionInfo','attrs','CONNECTED','IUIPartsService','createElement','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.sessionIdDescription','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_initializeCommands','启用身份验证以获得安全连接','_messageService','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','defineProperty','_config$','getOwnPropertyDescriptor','Input','mcpConfig.configStep2','forwardRef','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','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','mcpConfig.validation.apiKeyTooShort','mcpConfig.connectionStatus.disconnected','univer-flex\x20univer-items-center\x20univer-gap-2','_initStatusComponent','_menuManagerService','将以下配置添加到您的\x20MCP\x20客户端设置中:','_initAutoConnect','connectInjector','mcpStatus.connected','配置无效','6979650tCSHfe','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','IMessageService','_mcpCoreConfig$','IMenuManagerService','Connecting...','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','clipPath','register','close','_uiPartsService','mcp.apiKey','CheckMarkIcon','mcpConfig.configStep1','button','mcpConfig.connectionStatus.connecting','Injector','getItem','errorMessage','useObservable','已连接','mcpConfig.configError','https://mcp.univer.ai/mcp/?univer_session_id=','网络连接错误,请检查您的网络连接','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_initializeMenus','__setCustomHeaders','zhCN','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','Save\x20Configuration','Tooltip','bottom','add','_loading$','mcp-config-dialog','mcpConfig.note2','mcpConfig.configParameters','warn','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','univer-flex\x20univer-items-center\x20univer-gap-3','4468203Fkcbrk','univer-flex\x20univer-gap-3','配置更改将立即生效','MCPStatusDisplay','off','您的\x20API\x20密钥安全存储在本地存储中','超出最大重试次数,请稍后再试','Button','string','univer-min-w-0\x20univer-flex-1','RibbonStartGroup','MCP\x20连接失败','registerComponent','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','open','WebSocketService','901115zNeoSJ','MCPConnectionUIController','API\x20key\x20with\x20Bearer\x20prefix.','univer_session_id:','_logService','mcpStatus.disconnected','UNAUTHORIZED','mcpConfig.save','_configService','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','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3060066UVAAOF','evenodd','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Disposable','MAX_RETRIES_EXCEEDED','univer-space-y-5','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','What\x20is\x20API\x20Key?','MCP_UI_PLUGIN','_registerComponent','mcpConfig.description','univer-size-4','Failed\x20to\x20save\x20configuration','getConfig','on-line-icon_clip0_910_349','fill','mcpConfig.connectionError.networkError','univer-text-green-500','FAILED','mcpConfig.authorizationDescription','MCP\x20配置','mcpConfig.apiKey','\x20-\x20','mask','random','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','MCPConnectionStatus','MCP:\x20Unauthorized','mcpStatus.sessionOccupied','_handleConfigSave','_connectionController','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','NONE','path','sessionId$'];_0x2acf=function(){return _0x154dd1;};return _0x2acf();}var Ae=Object['defineProperty'],Oe=Object['getOwnPropertyDescriptor'],De=(_0xb3b70b,_0x29f3a2,_0x1223d8)=>_0x29f3a2 in _0xb3b70b?Ae(_0xb3b70b,_0x29f3a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1223d8}):_0xb3b70b[_0x29f3a2]=_0x1223d8,Ue=(_0x4f377d,_0x44b210,_0x18e492,_0x369628)=>{const _0x5e9416=_0x12d1a6;for(var _0x233017=_0x369628>0x1?void 0x0:_0x369628?Oe(_0x44b210,_0x18e492):_0x44b210,_0x464781=_0x4f377d[_0x5e9416(0x8f)]-0x1,_0x30512e;_0x464781>=0x0;_0x464781--)(_0x30512e=_0x4f377d[_0x464781])&&(_0x233017=_0x30512e(_0x233017)||_0x233017);return _0x233017;},y=(_0x5d5618,_0x262a3d)=>(_0x31b61c,_0x31df37)=>_0x262a3d(_0x31b61c,_0x31df37,_0x5d5618),$e=(_0x37ce43,_0x2b2ecf,_0x247dcf)=>De(_0x37ce43,_0x2b2ecf+'',_0x247dcf);exports[_0x12d1a6(0x104)]=class extends u['Plugin']{constructor(_0x5f53a7=L,_0x17b745,_0x21f668,_0x100c73,_0x341ed7,_0x1334ba){const _0x5ba3c6=_0x12d1a6;super(),this[_0x5ba3c6(0xd2)]=_0x5f53a7,this['_injector']=_0x17b745,this['_configService']=_0x21f668,this['_uiPartsService']=_0x100c73,this[_0x5ba3c6(0xad)]=_0x341ed7,this[_0x5ba3c6(0x1d8)]=_0x1334ba;const {..._0x5ec98d}=u[_0x5ba3c6(0x1da)]({},L,this[_0x5ba3c6(0xd2)]);this[_0x5ba3c6(0x17d)][_0x5ba3c6(0x7e)](P,_0x5ec98d);}async[_0x12d1a6(0xb4)](){const _0x527b0e=_0x12d1a6,_0x577021=[[exports[_0x527b0e(0x176)]],[exports['MCPConfigUIController']],[exports[_0x527b0e(0xe8)]]];this['_injector'][_0x527b0e(0x9d)](A['ISocketService'])||_0x577021['push']([A[_0x527b0e(0x1b0)],{'useClass':A[_0x527b0e(0x174)]}]),_0x577021[_0x527b0e(0x7a)](_0x3a37c4=>this[_0x527b0e(0x1ab)][_0x527b0e(0x15c)](_0x3a37c4)),this[_0x527b0e(0x1ab)]['get'](exports[_0x527b0e(0x176)]),this['_injector'][_0x527b0e(0x1be)](exports[_0x527b0e(0x82)]),this[_0x527b0e(0x1ab)][_0x527b0e(0x1be)](exports['MCPUIMenuController']);}},$e(exports[_0x12d1a6(0x104)],'pluginName',_0x12d1a6(0x188)),exports[_0x12d1a6(0x104)]=Ue([u[_0x12d1a6(0x80)](s['UniverMCPPlugin']),y(0x1,u['Inject'](u[_0x12d1a6(0x14c)])),y(0x2,u[_0x12d1a6(0x8a)]),y(0x3,v[_0x12d1a6(0x121)]),y(0x4,u[_0x12d1a6(0xed)]),y(0x5,u['Inject'](u['LocaleService']))],exports['UniverMCPUIPlugin']),exports[_0x12d1a6(0x113)]=V,exports[_0x12d1a6(0x168)]=W,exports[_0x12d1a6(0x7d)]=b,exports[_0x12d1a6(0x118)]=Ee,exports[_0x12d1a6(0x157)]=we;
|
|
1
|
+
'use strict';const _0x172c65=_0x1a3f;(function(_0x3a7d85,_0x28ac7a){const _0x1c7d09=_0x1a3f,_0x37d6bc=_0x3a7d85();while(!![]){try{const _0x21b19e=-parseInt(_0x1c7d09(0xe5))/0x1+parseInt(_0x1c7d09(0x147))/0x2+-parseInt(_0x1c7d09(0x15e))/0x3+parseInt(_0x1c7d09(0x11b))/0x4+parseInt(_0x1c7d09(0x1b8))/0x5*(-parseInt(_0x1c7d09(0x108))/0x6)+parseInt(_0x1c7d09(0x1c6))/0x7*(-parseInt(_0x1c7d09(0x109))/0x8)+parseInt(_0x1c7d09(0x15c))/0x9;if(_0x21b19e===_0x28ac7a)break;else _0x37d6bc['push'](_0x37d6bc['shift']());}catch(_0x3e0722){_0x37d6bc['push'](_0x37d6bc['shift']());}}}(_0x32c6,0x334ea));var ae=Object[_0x172c65(0x128)],le=(_0x1f1346,_0x5ac7a7,_0x382614)=>_0x5ac7a7 in _0x1f1346?ae(_0x1f1346,_0x5ac7a7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x382614}):_0x1f1346[_0x5ac7a7]=_0x382614,I=(_0x548572,_0x4e3463,_0x5c4fba)=>le(_0x548572,typeof _0x4e3463!='symbol'?_0x4e3463+'':_0x4e3463,_0x5c4fba);Object[_0x172c65(0x128)](exports,Symbol[_0x172c65(0x245)],{'value':'Module'});const u=require('@univerjs/core'),i=require('react/jsx-runtime'),s=require('@univerjs-pro/mcp'),f=require('@univerjs/design'),v=require('@univerjs/ui'),M=require('rxjs'),d=require('react'),A=require('@univerjs/network');function _({ref:_0x165825,..._0x3ee52b}){const _0x5518f9=_0x172c65,{icon:_0x2e9ecf,id:_0x3f1121,className:_0x5129d8,extend:_0x40d49c,..._0x3afd7b}=_0x3ee52b,_0x56c602=('univerjs-icon\x20univerjs-icon-'+_0x3f1121+'\x20'+(_0x5129d8||''))[_0x5518f9(0x156)](),_0x2d4579=d[_0x5518f9(0x25a)]('_'+de());return G(_0x2e9ecf,''+_0x3f1121,{'defIds':_0x2e9ecf[_0x5518f9(0x25d)],'idSuffix':_0x2d4579[_0x5518f9(0x1ce)]},{'ref':_0x165825,'className':_0x56c602,..._0x3afd7b},_0x40d49c);}function G(_0x4e5570,_0x188cf6,_0x1ac0f9,_0x1113ea,_0x3941c2){const _0x372728=_0x172c65;return d[_0x372728(0x167)](_0x4e5570[_0x372728(0x16b)],{'key':_0x188cf6,...ue(_0x4e5570,_0x1ac0f9,_0x3941c2),..._0x1113ea},(ve(_0x4e5570,_0x1ac0f9)[_0x372728(0x19d)]||[])[_0x372728(0x1d1)]((_0x1133e3,_0xa67746)=>G(_0x1133e3,_0x188cf6+'-'+_0x4e5570[_0x372728(0x16b)]+'-'+_0xa67746,_0x1ac0f9,void 0x0,_0x3941c2)));}function ue(_0x52711a,_0x1799a4,_0x54f795){const _0x34020e=_0x172c65,_0x17852d={..._0x52711a[_0x34020e(0x154)]};_0x54f795!=null&&_0x54f795['colorChannel1']&&_0x17852d[_0x34020e(0x242)]==='colorChannel1'&&(_0x17852d[_0x34020e(0x242)]=_0x54f795[_0x34020e(0x205)]),_0x52711a[_0x34020e(0x16b)]===_0x34020e(0xe7)&&_0x17852d['id']&&(_0x17852d['id']=_0x17852d['id']+_0x1799a4['idSuffix']),Object['entries'](_0x17852d)['forEach'](([_0x59866b,_0x21e169])=>{const _0x1ed634=_0x34020e;_0x59866b===_0x1ed634(0xe7)&&typeof _0x21e169==_0x1ed634(0x148)&&(_0x17852d[_0x59866b]=_0x21e169[_0x1ed634(0x232)](/url\(#(.*)\)/,'url(#$1'+_0x1799a4[_0x1ed634(0x1cb)]+')'));});const {defIds:_0x15efee}=_0x1799a4;return!_0x15efee||_0x15efee[_0x34020e(0x12d)]===0x0||(_0x52711a[_0x34020e(0x16b)]==='use'&&_0x17852d['xlink:href']&&(_0x17852d[_0x34020e(0x204)]=_0x17852d[_0x34020e(0x204)]+_0x1799a4['idSuffix']),Object['entries'](_0x17852d)[_0x34020e(0x13e)](([_0x239fb2,_0x671d17])=>{const _0x36fa80=_0x34020e;typeof _0x671d17==_0x36fa80(0x148)&&(_0x17852d[_0x239fb2]=_0x671d17[_0x36fa80(0x232)](/url\(#(.*)\)/,_0x36fa80(0x14c)+_0x1799a4[_0x36fa80(0x1cb)]+')'));})),_0x17852d;}function ve(_0x48933c,_0x39c3b2){const _0x340752=_0x172c65;var _0x3c775d;const {defIds:_0x4f1fc3}=_0x39c3b2;return!_0x4f1fc3||_0x4f1fc3[_0x340752(0x12d)]===0x0?_0x48933c:_0x48933c[_0x340752(0x16b)]===_0x340752(0x1f7)&&((_0x3c775d=_0x48933c['children'])!=null&&_0x3c775d[_0x340752(0x12d)])?{..._0x48933c,'children':_0x48933c['children'][_0x340752(0x1d1)](_0x38f2b5=>typeof _0x38f2b5[_0x340752(0x154)]['id']==_0x340752(0x148)&&_0x4f1fc3&&_0x4f1fc3['includes'](_0x38f2b5[_0x340752(0x154)]['id'])?{..._0x38f2b5,'attrs':{..._0x38f2b5[_0x340752(0x154)],'id':_0x38f2b5['attrs']['id']+_0x39c3b2[_0x340752(0x1cb)]}}:_0x38f2b5)}:_0x48933c;}function de(){const _0x23d7d9=_0x172c65;return Math[_0x23d7d9(0x18b)]()[_0x23d7d9(0x101)](0x24)[_0x23d7d9(0x105)](0x2,0x8);}_[_0x172c65(0x1de)]=_0x172c65(0x1e9);const Ce={'tag':_0x172c65(0xfa),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x172c65(0x239),'viewBox':'0\x200\x2016\x2016','width':_0x172c65(0x18f),'height':'1em'},'children':[{'tag':_0x172c65(0x185),'attrs':{'fill':_0x172c65(0x1e6),'d':_0x172c65(0x222),'fillRule':'evenodd','clipRule':_0x172c65(0x263)}}]},H=d[_0x172c65(0x1e5)](function(_0x5e9b56,_0xe6ea8e){const _0x297064=_0x172c65;return d[_0x297064(0x167)](_,Object['assign']({},_0x5e9b56,{'id':'check-mark-icon','ref':_0xe6ea8e,'icon':Ce}));});function _0x32c6(){const _0x1993f9=['_configService','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','重连中...','mcpConfig.connectionStatus.retrying','UNAUTHORIZED','univer-min-w-0\x20univer-flex-1','配置步骤:','BehaviorSubject','Univer\x20AI\x20控制台','svg','MCP\x20Retrying...','mcpConfig.connectionInfo','next','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_connectionController','MCP_UI_PLUGIN','toString','Retrying...','showConfigPanel','连接中...','substring','MCPConnectionStatus','mcpConfig.saving','361386KRUmbc','3784oKkcVY','show','connectionError$','add','Enable\x20Authentication','univer-bg-blue-500','超出最大重试次数,请稍后再试','MCP\x20Connecting...','_uiPartsService','_handleConfigure','mcpConfig.description','IDialogService','<SESSION_ID>','label','MCP\x20连接中...','_messageService','univer-flex\x20univer-flex-wrap\x20univer-gap-2','useDependency','613428VcDNUZ','OnLineIcon','Disconnected','NONE','subscribe','Connection\x20Failed','ComponentManager','univer-flex\x20univer-items-start\x20univer-gap-2','isValid','mcpStatus.clickToConfigure','univer-space-y-3','mcpConfig.connectionStatus.failed','showStatus','defineProperty','mcpStatus.clickToConnect','merge','noopener\x20noreferrer','M0\x200H16V16H0z','length','translate(.97)','mcpStatus.connected','OffLineIcon','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-bg-red-500','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-text-blue-600','Error','mcpStatus.disconnected','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCPConnectionController','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','mcpConfig.title','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpConfig.configStep1','univer-font-medium','forEach','ILogService','mcpStatus.failed','http://www.w3.org/2000/svg','getItem','mcpConfig.configStep3','univer-text-sm\x20univer-text-gray-500','getConfig','IUIPartsService','267342YBCaZz','string','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','\x20-\x20','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','url(#$1','What\x20is\x20API\x20Key?','Inject','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','subscribeConfigValue$','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','connectInjector','_loadStoredApiKey','attrs','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','trim','网络连接错误,请检查您的网络连接','mcpStatus.maxRetriesExceeded','univer-shrink-0\x20univer-text-blue-500','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','has','6140394bUvJBE','mcpConfig.note2','165162QABhYe','error','div','mcpConfig.connectionError.unauthorized','mcpConfig.apiKey','_localStorageService','enableAutoConnect','_initConfigSync','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','createElement','<API_KEY>','mcpConfig.validation.invalidConfig','配置保存失败','tag','MCP:\x20会话\x20ID\x20已被占用','open','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','重启您的\x20MCP\x20客户端以使配置生效','_config$','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.plus','MAX_RETRIES_EXCEEDED','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-text-red-500','univer-text-gray-500','启用身份验证以获得安全连接','univer-flex\x20univer-items-center','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','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','Session\x20ID','CheckMarkIcon','mcpConfig.validation.invalidApiKey','MCP\x20重连中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','API\x20密钥长度至少需要\x2010\x20位','showDeveloperTools','univer-shrink-0\x20univer-text-red-500','univer-text-xs\x20univer-text-gray-600','univer-space-y-4','path','_initAutoConnect','mcpConfig.connectionStatus.connected','useCallback','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-space-y-5','random','什么是\x20API\x20密钥?','HEADER_MENU','COMMAND','1em','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','MCPConfigPanel','_validateConfig','clsx','bottom','_config','disposeWithMe','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','connectionStatus$','Bearer\x20','round','MCP\x20状态未知','_handleConfigSave','children','BuiltInUIPart','DependentOn','Enter\x20your\x20API\x20key','univer-text-green-500','univer_session_id:','mcpConfig.apiApplyInfo.getStarted','MCP\x20Disconnected','WebSocketService','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','warn','setItem','点击连接\x20MCP','MCP:\x20网络错误','useState','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','NETWORK_ERROR','univer-bg-green-500','Authorization:','mcpConfig.configSaved','help-icon','includes','univer-flex\x20univer-items-center\x20univer-gap-3','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','保存配置','jsx','useObservable','25sdyZPN','mcpStatus.sessionOccupied','_initializeCommands','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','white','mcpConfig.apiApplyInfo.univerAiLabel','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','registerComponent','text','mcpConfig.connectionStatus.disconnected','MenuItemType','_componentManager','配置保存成功','button','5579aqidZZ','HelpIcon','mcpStatus.retrying','Button','mcpConfig.save','idSuffix','配置无效','Click\x20to\x20connect\x20MCP','current','zhCN','权限验证失败,请检查您的\x20API\x20密钥','map','mcpStatus.networkError','univer-flex\x20univer-items-center\x20univer-gap-2','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','off-line-icon_clip0_910_343','push','univer.ai','univer-size-4','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.note1','MCPStatusDisplay','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Disposable','displayName','启用身份验证','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','会话ID','配置\x20MCP\x20使用\x20AI\x20操作电子表格','点击配置\x20MCP','forwardRef','currentColor','Get\x20your\x20API\x20key\x20in\x20seconds','close','UniverIcon','https://console.univer.ai','CloseIcon','mcp-ui.command.openConfigPanel','Input','最大重试次数','MCP\x20Client\x20Configuration','removeItem','ILocalStorageService','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','ICommandService','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_apiKey$','BUTTON','defs','univer-text-xs\x20univer-text-gray-500','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20Connected','ISocketService','IConfigService','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MenuIcon','FAILED','on-line-icon','off-line-icon','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','xlink:href','colorChannel1','mcpConfig.configInstructions','span','mcp-ui.config','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-size-2\x20univer-rounded-full','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','配置更改将立即生效','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','\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','UniverMCPUIPlugin','mcpServerUrl','MCP:\x20Max\x20Retries\x20Exceeded','MCPConnectionUIController','mcpConfig.validation.apiKeyTooShort','mcpConfig.connectionError.sessionOccupied','_createConfigPanelComponent','Copy\x20the\x20JSON\x20configuration\x20below','_initializeMenus','pluginName','RETRYING','_injector','Plugin','_mcpConnectionController','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','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','IMessageService','get','MCP\x20连接失败','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpStatus.connecting','DISCONNECTED','MessageType','validateApiKey','mcpConfig.apiApplyInfo.title','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','_mcpCoreConfig$','mcp-config-dialog','API\x20密钥无效,请检查密钥是否正确','off','univer-text-white','univer-flex\x20univer-items-start\x20univer-gap-3','mcpStatus.unknown','Save\x20Configuration','replace','带有\x20Bearer\x20前缀的\x20API\x20密钥。','_localeService','Click\x20to\x20configure\x20MCP','univer-space-y-2','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcpConfig.connectionStatus.connecting','none','CONNECTING','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','Configuration\x20saved\x20successfully','RibbonStartGroup','Univer\x20AI\x20Console','mergeMenu','univer-bg-gray-500','MCP\x20Configuration','fill','stringify','mcpConfig.connectionError.maxRetriesExceeded','toStringTag','jsxs','已连接','mcpConfig.apiApplyInfo.description','MCPUIMenuController','_dialogService','mcpConfig.authorizationDescription','clipPath','apiKey','Injector','univer-flex\x20univer-gap-3','保存中...','API\x20key\x20is\x20required','http','__setCustomHeaders','getOwnPropertyDescriptor','MCP\x20客户端配置','LocaleService','close-icon','MCPConnectionError','_commandService','useRef','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connecting...','defIds','assign','CONNECTED','mcpConfig.sessionIdDescription','mcpConfig.configStep2','_loading$','evenodd','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','Configuration\x20Parameters:','SESSION_ID_OCCUPIED','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','_initStatusComponent','MCP_PLUGIN_CONFIG_KEY','https://mcp.univer.ai/mcp/?univer_session_id=','url(#off-line-icon_clip0_910_343)','0\x200\x2016\x2016','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','25950pOkSAv','register','mask','value','onStarting','MCPConfigUIController','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_registerComponent','_menuManagerService','univer-flex-1','univer-text-yellow-500','https://console.univer.plus'];_0x32c6=function(){return _0x1993f9;};return _0x32c6();}H['displayName']=_0x172c65(0x17c);const ge={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x172c65(0x239),'viewBox':_0x172c65(0xe3),'width':_0x172c65(0x18f),'height':_0x172c65(0x18f)},'children':[{'tag':'path','attrs':{'fill':_0x172c65(0x1e6),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},B=d[_0x172c65(0x1e5)](function(_0x3655f0,_0x3040ea){const _0x4b9ca2=_0x172c65;return d[_0x4b9ca2(0x167)](_,Object[_0x4b9ca2(0x25e)]({},_0x3655f0,{'id':_0x4b9ca2(0x257),'ref':_0x3040ea,'icon':ge}));});B[_0x172c65(0x1de)]=_0x172c65(0x1eb);const fe={'tag':_0x172c65(0xfa),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x172c65(0x18f),'height':_0x172c65(0x18f)},'children':[{'tag':_0x172c65(0x185),'attrs':{'fill':'currentColor','d':_0x172c65(0x190)}},{'tag':'path','attrs':{'fill':'currentColor','d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0x172c65(0x185),'attrs':{'fill':_0x172c65(0x1e6),'d':_0x172c65(0x1a6),'fillRule':'evenodd','clipRule':'evenodd'}}]},F=d[_0x172c65(0x1e5)](function(_0x5b8d12,_0x3d14a3){const _0x4079f0=_0x172c65;return d[_0x4079f0(0x167)](_,Object[_0x4079f0(0x25e)]({},_0x5b8d12,{'id':_0x4079f0(0x1b1),'ref':_0x3d14a3,'icon':fe}));});F[_0x172c65(0x1de)]=_0x172c65(0x1c7);const pe={'tag':_0x172c65(0xfa),'attrs':{'xmlns':_0x172c65(0x141),'fill':_0x172c65(0x239),'viewBox':_0x172c65(0xe3),'width':_0x172c65(0x18f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x172c65(0xe2)},'children':[{'tag':'path','attrs':{'stroke':_0x172c65(0x1e6),'d':_0x172c65(0x21e),'strokeLinecap':_0x172c65(0x19a),'strokeLinejoin':_0x172c65(0x19a),'strokeWidth':1.2}}]},{'tag':_0x172c65(0x1f7),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x172c65(0x185),'attrs':{'fill':_0x172c65(0x1bc),'d':_0x172c65(0x12c)}}]}]}],'defIds':[_0x172c65(0x1d5)]},Y=d[_0x172c65(0x1e5)](function(_0x3aead0,_0xb554d8){const _0x1d1cc8=_0x172c65;return d['createElement'](_,Object[_0x1d1cc8(0x25e)]({},_0x3aead0,{'id':_0x1d1cc8(0x202),'ref':_0xb554d8,'icon':pe}));});Y['displayName']=_0x172c65(0x130);const he={'tag':_0x172c65(0xfa),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x172c65(0x239),'viewBox':'0\x200\x2017\x2016','width':_0x172c65(0x18f),'height':_0x172c65(0x18f)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x172c65(0x185),'attrs':{'stroke':'currentColor','d':_0x172c65(0x17a),'strokeLinecap':_0x172c65(0x19a),'strokeLinejoin':_0x172c65(0x19a),'strokeWidth':1.2}}]},{'tag':_0x172c65(0x1f7),'attrs':{},'children':[{'tag':_0x172c65(0x24c),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x172c65(0x185),'attrs':{'fill':_0x172c65(0x1bc),'d':_0x172c65(0x12c),'transform':_0x172c65(0x12e)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},q=d[_0x172c65(0x1e5)](function(_0xbe9073,_0x46cebd){const _0x21dbf5=_0x172c65;return d['createElement'](_,Object[_0x21dbf5(0x25e)]({},_0xbe9073,{'id':_0x21dbf5(0x201),'ref':_0x46cebd,'icon':he}));});q['displayName']=_0x172c65(0x11c);function V(_0x20427e){const _0x2a7f7e=_0x172c65;var _0x2e1edf,_0x1c8d09;const {mcpCoreConfig:_0x25cbac,onSave:_0x1bffa,loading:_0x3264c3=!0x1,config:_0x347224,connectionStatus$:_0x2c809a,connectionError$:_0x5b8fb0,currentApiKey$:_0x130763,currentSessionId$:_0x372b08}=_0x20427e,_0x4f5c4a=v[_0x2a7f7e(0x11a)](u[_0x2a7f7e(0x256)]),_0x4ffad8=v['useObservable'](_0x2c809a,s[_0x2a7f7e(0x106)][_0x2a7f7e(0x225)]),_0x9a0236=v[_0x2a7f7e(0x1b7)](_0x5b8fb0,s[_0x2a7f7e(0x258)][_0x2a7f7e(0x11e)]),_0x36b0c0=v['useObservable'](_0x372b08,''),_0x167825=v['useObservable'](_0x130763,''),[_0xf6e794,_0x5c9bb9]=d['useState'](_0x167825||''),_0x4c0e2e=!0x0,_0xd524c0=_0x347224[_0x2a7f7e(0x181)]&&_0x25cbac[_0x2a7f7e(0x210)]&&(_0x25cbac['mcpServerUrl']['includes'](_0x2a7f7e(0x172))||_0x25cbac[_0x2a7f7e(0x210)][_0x2a7f7e(0x1b2)](_0x2a7f7e(0x1d7))),_0x237d73=(_0x2e1edf=_0x25cbac[_0x2a7f7e(0x210)])==null?void 0x0:_0x2e1edf[_0x2a7f7e(0x1b2)]('univer.plus'),_0x1219a6=(_0x1c8d09=_0x25cbac[_0x2a7f7e(0x210)])==null?void 0x0:_0x1c8d09[_0x2a7f7e(0x1b2)](_0x2a7f7e(0x1d7)),_0x2ecf3c=_0x237d73?_0x2a7f7e(0xf0):_0x2a7f7e(0x1ea),_0x3bfb11=_0x347224[_0x2a7f7e(0x181)]&&(_0x237d73||_0x1219a6),[_0x186e0e,_0x4984a5]=d[_0x2a7f7e(0x1ab)](!_0xf6e794['trim']()),_0x49511e=(_0x381349,_0xfcce8d)=>{const _0x53f391=_0x2a7f7e;if(_0xfcce8d===s[_0x53f391(0x258)][_0x53f391(0xf5)])return _0x53f391(0x137);switch(_0x381349){case s[_0x53f391(0x106)]['CONNECTED']:return _0x53f391(0x1ac);case s[_0x53f391(0x106)][_0x53f391(0x23a)]:case s[_0x53f391(0x106)][_0x53f391(0x219)]:return _0x53f391(0x174);case s[_0x53f391(0x106)][_0x53f391(0x200)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x53f391(0x1e1);}},_0x4df89f=(_0x13a99b,_0x4ee5a8)=>{const _0x29572f=_0x2a7f7e;if(_0x4ee5a8===s[_0x29572f(0x258)]['UNAUTHORIZED'])return _0x29572f(0x132);switch(_0x13a99b){case s['MCPConnectionStatus'][_0x29572f(0x25f)]:return _0x29572f(0x1ae);case s[_0x29572f(0x106)]['CONNECTING']:case s[_0x29572f(0x106)]['RETRYING']:return _0x29572f(0x10e);case s[_0x29572f(0x106)][_0x29572f(0x200)]:return _0x29572f(0x132);default:return _0x29572f(0x240);}},_0x20cf0c=_0x54ea53=>{const _0x3809b8=_0x2a7f7e;switch(_0x54ea53){case s[_0x3809b8(0x106)][_0x3809b8(0x25f)]:return _0x4f5c4a['t'](_0x3809b8(0x187));case s[_0x3809b8(0x106)]['CONNECTING']:return _0x4f5c4a['t'](_0x3809b8(0x238));case s['MCPConnectionStatus'][_0x3809b8(0x200)]:return _0x4f5c4a['t'](_0x3809b8(0x126));case s[_0x3809b8(0x106)]['RETRYING']:return _0x4f5c4a['t'](_0x3809b8(0xf4));default:return _0x4f5c4a['t'](_0x3809b8(0x1c1));}},_0x3238a3=_0x5bf7f0=>{const _0x3b42f2=_0x2a7f7e;switch(_0x5bf7f0){case s[_0x3b42f2(0x258)][_0x3b42f2(0xf5)]:return _0x4f5c4a['t'](_0x3b42f2(0x161));case s['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x4f5c4a['t'](_0x3b42f2(0x214));case s['MCPConnectionError'][_0x3b42f2(0x1ad)]:return _0x4f5c4a['t']('mcpConfig.connectionError.networkError');case s[_0x3b42f2(0x258)]['MAX_RETRIES_EXCEEDED']:return _0x4f5c4a['t'](_0x3b42f2(0x244));default:return'';}},_0x1f0bf1=d[_0x2a7f7e(0x188)](()=>{const _0x2ebbdb=_0x2a7f7e,_0x44bcf5={..._0x25cbac,'apiKey':_0xf6e794[_0x2ebbdb(0x156)](),'enableAuth':_0x4c0e2e};_0x1bffa(_0x44bcf5);},[_0x25cbac,_0xf6e794,_0x4c0e2e,_0x1bffa]),_0x1392aa=_0xf6e794[_0x2a7f7e(0x156)]()[_0x2a7f7e(0x12d)]>0x0;return i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x189),'children':[i[_0x2a7f7e(0x1b6)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x151),'children':i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x1b3),'children':[i[_0x2a7f7e(0x1b6)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0xfe),'children':i[_0x2a7f7e(0x1b6)](_0x2a7f7e(0x207),{'className':_0x2a7f7e(0x22e),'children':'⚙'})}),i[_0x2a7f7e(0x1b6)](_0x2a7f7e(0x160),{'children':i[_0x2a7f7e(0x1b6)]('p',{'className':_0x2a7f7e(0x144),'children':_0x4f5c4a['t'](_0x2a7f7e(0x113))})})]})}),i['jsxs']('div',{'className':_0x2a7f7e(0x20d),'children':[i[_0x2a7f7e(0x1b6)]('div',{'className':f[_0x2a7f7e(0x193)](_0x2a7f7e(0x16e),_0x49511e(_0x4ffad8,_0x9a0236)),'children':i[_0x2a7f7e(0x246)]('div',{'className':_0x2a7f7e(0x1d3),'children':[i['jsx'](_0x2a7f7e(0x160),{'className':f['clsx'](_0x2a7f7e(0x20a),_0x4df89f(_0x4ffad8,_0x9a0236))}),i[_0x2a7f7e(0x1b6)](_0x2a7f7e(0x207),{'className':'univer-text-sm\x20univer-font-medium','children':_0x20cf0c(_0x4ffad8)})]})}),_0x9a0236!==s[_0x2a7f7e(0x258)][_0x2a7f7e(0x11e)]&&(_0x4ffad8===s[_0x2a7f7e(0x106)][_0x2a7f7e(0x200)]||_0x9a0236===s[_0x2a7f7e(0x258)][_0x2a7f7e(0xf5)])&&i[_0x2a7f7e(0x1b6)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0xeb),'children':i['jsxs'](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x122),'children':[i['jsx'](_0x2a7f7e(0x207),{'className':_0x2a7f7e(0x182),'children':'⚠️'}),i['jsx']('p',{'className':_0x2a7f7e(0x133),'children':_0x3238a3(_0x9a0236)})]})})]}),i[_0x2a7f7e(0x1b6)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x1bb),'children':i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x18a),'children':[i[_0x2a7f7e(0x246)]('div',{'className':_0x2a7f7e(0x236),'children':[i[_0x2a7f7e(0x246)](_0x2a7f7e(0x116),{'className':_0x2a7f7e(0x149),'children':[i[_0x2a7f7e(0x1b6)](_0x2a7f7e(0x207),{'children':'🔑'}),'\x20',_0x4f5c4a['t'](_0x2a7f7e(0x162)),i[_0x2a7f7e(0x1b6)](_0x2a7f7e(0x207),{'className':_0x2a7f7e(0x175),'children':'*'}),_0xd524c0&&i[_0x2a7f7e(0x1b6)]('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x4f5c4a['t'](_0x2a7f7e(0x228)),'role':_0x2a7f7e(0x1c5),'onClick':()=>_0x4984a5(!0x0),'children':i[_0x2a7f7e(0x1b6)](F,{})})]}),i[_0x2a7f7e(0x1b6)](f[_0x2a7f7e(0x1ed)],{'type':_0x2a7f7e(0x1c0),'placeholder':_0x4f5c4a['t']('mcpConfig.apiKeyPlaceholder'),'value':_0xf6e794,'disabled':_0x3264c3,'autoComplete':_0x2a7f7e(0x22d),'onChange':_0x5c9bb9}),i[_0x2a7f7e(0x1b6)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4f5c4a['t']('mcpConfig.apiKeyHint')})]}),_0xd524c0&&_0x186e0e&&i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x264),'children':[i[_0x2a7f7e(0x1b6)]('a',{'className':_0x2a7f7e(0x15a),'role':_0x2a7f7e(0x1c5),'onClick':()=>_0x4984a5(!0x1),'children':i[_0x2a7f7e(0x1b6)](B,{'className':_0x2a7f7e(0x1d8)})}),i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x237),'children':[i[_0x2a7f7e(0x1b6)]('div',{'className':_0x2a7f7e(0x166),'children':i[_0x2a7f7e(0x1b6)]('span',{'className':_0x2a7f7e(0x134),'children':'🚀'})}),i['jsxs'](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0xee),'children':[i[_0x2a7f7e(0x1b6)]('h4',{'className':_0x2a7f7e(0x155),'children':_0x4f5c4a['t'](_0x2a7f7e(0x228))}),i[_0x2a7f7e(0x1b6)]('p',{'className':_0x2a7f7e(0x203),'children':_0x4f5c4a['t'](_0x2a7f7e(0x248))}),i['jsx'](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x119),'children':_0x3bfb11&&i[_0x2a7f7e(0x246)]('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x2ecf3c,'target':'_blank','rel':_0x2a7f7e(0x12b),'children':[i['jsx'](_0x2a7f7e(0x207),{'children':'🤖'}),_0x4f5c4a['t'](_0x2a7f7e(0x1bd)),i['jsx']('span',{'className':'univer-text-gray-400','children':'↗'})]})}),i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x14f),'children':['✨','\x20',_0x4f5c4a['t'](_0x2a7f7e(0x1a3))]})]})]})]}),_0x347224[_0x2a7f7e(0x181)]&&i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x139),'children':[i[_0x2a7f7e(0x246)]('h4',{'className':_0x2a7f7e(0x209),'children':[i[_0x2a7f7e(0x1b6)](_0x2a7f7e(0x207),{'children':'🔗'}),'\x20',_0x4f5c4a['t'](_0x2a7f7e(0xfc))]}),i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x184),'children':[i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x125),'children':[i[_0x2a7f7e(0x1b6)]('p',{'className':_0x2a7f7e(0x183),'children':_0x4f5c4a['t'](_0x2a7f7e(0x206))}),i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x236),'children':[i[_0x2a7f7e(0x1b6)]('div',{'className':_0x2a7f7e(0x131),'children':_0x4f5c4a['t']('mcpConfig.configStepTitle')}),i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x267),'children':[i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x2a7f7e(0x1b6)]('span',{'className':_0x2a7f7e(0x23b),'children':'1'}),_0x4f5c4a['t'](_0x2a7f7e(0x13c))]}),i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x2a7f7e(0x1b6)](_0x2a7f7e(0x207),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x4f5c4a['t'](_0x2a7f7e(0x261))]}),i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i['jsx'](_0x2a7f7e(0x207),{'className':_0x2a7f7e(0x23b),'children':'3'}),_0x4f5c4a['t'](_0x2a7f7e(0x143))]})]})]})]}),i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':'univer-space-y-2','children':[i[_0x2a7f7e(0x1b6)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2a7f7e(0x241)}),i[_0x2a7f7e(0x1b6)](_0x2a7f7e(0x160),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':i[_0x2a7f7e(0x1b6)]('pre',{'className':_0x2a7f7e(0x1b4),'children':JSON[_0x2a7f7e(0x243)]({'mcpServers':{'univer':{'url':_0x2a7f7e(0xe1)+(_0x36b0c0||_0x2a7f7e(0x115)),'type':_0x2a7f7e(0x252),'headers':{'Authorization':_0x2a7f7e(0x199)+(_0xf6e794||_0x2a7f7e(0x168))}}}},null,0x2)})})]}),i[_0x2a7f7e(0x246)]('div',{'className':'univer-space-y-3','children':[i['jsx'](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x131),'children':_0x4f5c4a['t']('mcpConfig.configParameters')}),i['jsxs'](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x236),'children':[i[_0x2a7f7e(0x246)]('div',{'className':_0x2a7f7e(0x22f),'children':[i['jsx'](_0x2a7f7e(0x160),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0xf6),'children':[i[_0x2a7f7e(0x1b6)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x223),'children':_0x2a7f7e(0x1a2)}),i[_0x2a7f7e(0x1b6)]('div',{'className':_0x2a7f7e(0x1f8),'children':_0x4f5c4a['t'](_0x2a7f7e(0x260))})]})]}),i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x22f),'children':[i[_0x2a7f7e(0x1b6)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x1f9)}),i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0xf6),'children':[i[_0x2a7f7e(0x1b6)]('div',{'className':_0x2a7f7e(0x223),'children':_0x2a7f7e(0x1af)}),i[_0x2a7f7e(0x1b6)]('div',{'className':_0x2a7f7e(0x1f8),'children':_0x4f5c4a['t'](_0x2a7f7e(0x24b))})]})]})]})]})]})]}),i[_0x2a7f7e(0x1b6)](f[_0x2a7f7e(0x1c9)],{'onClick':_0x1f0bf1,'disabled':!_0x1392aa||_0x3264c3,'className':_0x2a7f7e(0x171),'children':_0x3264c3?i['jsxs'](_0x2a7f7e(0x207),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i['jsx']('span',{'children':'⟲'}),_0x4f5c4a['t'](_0x2a7f7e(0x107))]}):i['jsxs'](_0x2a7f7e(0x207),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[i[_0x2a7f7e(0x1b6)](H,{}),_0x4f5c4a['t'](_0x2a7f7e(0x1ca))]})}),i[_0x2a7f7e(0x1b6)](_0x2a7f7e(0x160),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':i[_0x2a7f7e(0x246)]('div',{'className':_0x2a7f7e(0x24f),'children':[i[_0x2a7f7e(0x1b6)](_0x2a7f7e(0x207),{'className':_0x2a7f7e(0x159),'children':'💡'}),i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x14b),'children':[i[_0x2a7f7e(0x1b6)](_0x2a7f7e(0x160),{'className':_0x2a7f7e(0x13d),'children':'Configuration\x20Notes:'}),i['jsxs'](_0x2a7f7e(0x160),{'children':['•',_0x4f5c4a['t'](_0x2a7f7e(0x1da))]}),i[_0x2a7f7e(0x246)](_0x2a7f7e(0x160),{'children':['•',_0x4f5c4a['t'](_0x2a7f7e(0x15d))]})]})]})})]})})]});}const P=_0x172c65(0x208),L={'showDeveloperTools':!0x1,'showStatus':!0x0};var me=Object[_0x172c65(0x254)],xe=(_0x33f7a1,_0xd05386,_0x12b776,_0x36359d)=>{for(var _0x5cdeff=_0x36359d>0x1?void 0x0:_0x36359d?me(_0xd05386,_0x12b776):_0xd05386,_0x35359f=_0x33f7a1['length']-0x1,_0x3c8631;_0x35359f>=0x0;_0x35359f--)(_0x3c8631=_0x33f7a1[_0x35359f])&&(_0x5cdeff=_0x3c8631(_0x5cdeff)||_0x5cdeff);return _0x5cdeff;},g=(_0x9b9544,_0x3edb95)=>(_0x5b8bcc,_0x2d1611)=>_0x3edb95(_0x5b8bcc,_0x2d1611,_0x9b9544);const O='mcp.apiKey',D=_0x172c65(0x22b);exports[_0x172c65(0xea)]=class extends u[_0x172c65(0x1dd)]{constructor(_0x44e053,_0x20f790,_0x48efbb,_0x50a065,_0x2afd0f,_0x450b00,_0x4d5035,_0x44c947,_0x33fa76,_0x284114){const _0x4a8122=_0x172c65;super(),I(this,'_loading$',new M[(_0x4a8122(0xf8))](!0x1)),I(this,_0x4a8122(0x22a),new M[(_0x4a8122(0xf8))]({})),I(this,'_config$',new M[(_0x4a8122(0xf8))]({})),I(this,'_apiKey$',new M[(_0x4a8122(0xf8))]('')),I(this,_0x4a8122(0x19c),async _0xa6ddfc=>{const _0x4bd321=_0x4a8122;var _0x157bc1,_0x5c235e;this[_0x4bd321(0x262)]['next'](!0x0);try{const _0x47e043=await this[_0x4bd321(0x192)](_0xa6ddfc);if(!_0x47e043['isValid']){this[_0x4bd321(0x118)][_0x4bd321(0x10a)]({'type':f['MessageType'][_0x4bd321(0x135)],'content':_0x47e043['errorMessage']||this[_0x4bd321(0x234)]['t'](_0x4bd321(0x169))});return;}_0xa6ddfc[_0x4bd321(0x24d)]?await this[_0x4bd321(0x163)][_0x4bd321(0x1a8)](O,_0xa6ddfc[_0x4bd321(0x24d)][_0x4bd321(0x156)]()):await this[_0x4bd321(0x163)][_0x4bd321(0x1f0)](O),this[_0x4bd321(0x1f5)][_0x4bd321(0xfd)](((_0x157bc1=_0xa6ddfc['apiKey'])==null?void 0x0:_0x157bc1[_0x4bd321(0x156)]())||''),this[_0x4bd321(0x21c)][_0x4bd321(0x253)]({'Authorization':'Bearer\x20'+((_0x5c235e=_0xa6ddfc['apiKey'])==null?void 0x0:_0x5c235e[_0x4bd321(0x156)]())}),this[_0x4bd321(0x118)][_0x4bd321(0x10a)]({'type':f['MessageType']['Success'],'content':this[_0x4bd321(0x234)]['t'](_0x4bd321(0x1b0))}),setTimeout(()=>{const _0x3fb77d=_0x4bd321;this[_0x3fb77d(0x24a)][_0x3fb77d(0x1e8)](D);},0x320);}catch(_0x19caed){this['_logService'][_0x4bd321(0x15f)](_0x4bd321(0xf2),_0x19caed),this['_messageService']['show']({'type':f[_0x4bd321(0x226)][_0x4bd321(0x135)],'content':this[_0x4bd321(0x234)]['t']('mcpConfig.configError')});}finally{this['_loading$'][_0x4bd321(0xfd)](!0x1);}}),(this['_injector']=_0x44e053,this['_uiPartsService']=_0x20f790,this[_0x4a8122(0xf1)]=_0x48efbb,this[_0x4a8122(0x163)]=_0x50a065,this[_0x4a8122(0x24a)]=_0x2afd0f,this['_messageService']=_0x450b00,this[_0x4a8122(0x1c3)]=_0x4d5035,this[_0x4a8122(0x234)]=_0x44c947,this['_logService']=_0x33fa76,this[_0x4a8122(0x21c)]=_0x284114,this['_initConfigSync'](),this[_0x4a8122(0x153)](),this[_0x4a8122(0xec)]());}[_0x172c65(0x103)](){const _0x198470=_0x172c65,_0x8268fa=this[_0x198470(0xf1)][_0x198470(0x145)](P);_0x8268fa!=null&&_0x8268fa[_0x198470(0x181)]&&this[_0x198470(0x24a)][_0x198470(0x16d)]({'id':D,'title':{'title':this[_0x198470(0x234)]['t']('mcpConfig.title')},'children':{'label':_0x198470(0x191)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x2a36a4=_0x198470;this[_0x2a36a4(0x24a)][_0x2a36a4(0x1e8)](D);}});}['getCurrentConfig'](){const _0x449193=_0x172c65;return this[_0x449193(0x22a)][_0x449193(0xe8)];}['_registerComponent'](){const _0x2cce3f=_0x172c65;this[_0x2cce3f(0x196)](this[_0x2cce3f(0x1c3)][_0x2cce3f(0xe6)]('MCPConfigPanel',this[_0x2cce3f(0x215)]()));}[_0x172c65(0x215)](){const _0x58dcc3=_0x172c65;return v[_0x58dcc3(0x152)](()=>{const _0x1f2278=_0x58dcc3;var _0x1784b8,_0x10a79c,_0x420ccb;return i[_0x1f2278(0x1b6)](V,{'config':this[_0x1f2278(0x170)][_0x1f2278(0xe8)],'mcpCoreConfig':this[_0x1f2278(0x22a)][_0x1f2278(0xe8)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x1f2278(0x19c)],'loading':this[_0x1f2278(0x262)]['value'],'connectionStatus$':(_0x1784b8=this['_mcpConnectionController'])==null?void 0x0:_0x1784b8[_0x1f2278(0x198)],'connectionError$':(_0x10a79c=this[_0x1f2278(0x21c)])==null?void 0x0:_0x10a79c[_0x1f2278(0x10b)],'currentSessionId$':(_0x420ccb=this['_mcpConnectionController'])==null?void 0x0:_0x420ccb['sessionId$']});},this[_0x58dcc3(0x21a)]);}[_0x172c65(0x165)](){const _0x382f09=_0x172c65;this[_0x382f09(0x196)](this[_0x382f09(0xf1)]['subscribeConfigValue$'](s[_0x382f09(0xe0)])[_0x382f09(0x11f)](_0x5e8c33=>{const _0x37a67d=_0x382f09;this[_0x37a67d(0x22a)][_0x37a67d(0xfd)](_0x5e8c33||{});}));const _0x1fb33a=this[_0x382f09(0xf1)][_0x382f09(0x145)](s[_0x382f09(0xe0)]);this[_0x382f09(0x22a)][_0x382f09(0xfd)](_0x1fb33a||{}),this[_0x382f09(0x196)](this[_0x382f09(0xf1)][_0x382f09(0x150)](P)[_0x382f09(0x11f)](_0x2dee47=>{const _0x364dba=_0x382f09;this[_0x364dba(0x170)][_0x364dba(0xfd)](_0x2dee47||{});}));const _0x3109e1=this['_configService']['getConfig'](P);this[_0x382f09(0x170)][_0x382f09(0xfd)](_0x3109e1||{});}async[_0x172c65(0x153)](){const _0x5f4fb2=_0x172c65,_0x1d0efe=this[_0x5f4fb2(0xf1)]['getConfig'](P);if(!(_0x1d0efe!=null&&_0x1d0efe[_0x5f4fb2(0x181)]))return;const _0x5c3600=await this[_0x5f4fb2(0x163)][_0x5f4fb2(0x142)](O);_0x5c3600&&(this[_0x5f4fb2(0x21c)][_0x5f4fb2(0x253)]({'Authorization':_0x5f4fb2(0x199)+_0x5c3600}),this['_apiKey$'][_0x5f4fb2(0xfd)](_0x5c3600));}async[_0x172c65(0x192)](_0x9ceda8){const _0x3da92b=_0x172c65;if(!_0x9ceda8[_0x3da92b(0x24d)]||_0x9ceda8[_0x3da92b(0x24d)][_0x3da92b(0x156)]()[_0x3da92b(0x12d)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x3da92b(0x234)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x9ceda8[_0x3da92b(0x24d)][_0x3da92b(0x156)]()[_0x3da92b(0x12d)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x3da92b(0x234)]['t'](_0x3da92b(0x213))};try{const _0x2ee4c8=await this[_0x3da92b(0x21a)][_0x3da92b(0x220)](s[_0x3da92b(0x138)])[_0x3da92b(0x227)](_0x9ceda8[_0x3da92b(0x24d)][_0x3da92b(0x156)]());return _0x2ee4c8[_0x3da92b(0x123)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2ee4c8[_0x3da92b(0x15f)]||this[_0x3da92b(0x234)]['t'](_0x3da92b(0x17d))};}catch(_0x4f54bd){return console[_0x3da92b(0x1a7)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x4f54bd),{'isValid':!0x0};}}},exports[_0x172c65(0xea)]=xe([g(0x0,u[_0x172c65(0x14e)](u[_0x172c65(0x24e)])),g(0x1,v[_0x172c65(0x146)]),g(0x2,u[_0x172c65(0x1fd)]),g(0x3,u['ILocalStorageService']),g(0x4,v[_0x172c65(0x114)]),g(0x5,v[_0x172c65(0x21f)]),g(0x6,u[_0x172c65(0x14e)](v[_0x172c65(0x121)])),g(0x7,u['Inject'](u['LocaleService'])),g(0x8,u[_0x172c65(0x13f)]),g(0x9,u[_0x172c65(0x14e)](s['MCPConnectionController']))],exports[_0x172c65(0xea)]);const b={'id':_0x172c65(0x1ec),'type':u['CommandType'][_0x172c65(0x18e)],'handler':async(_0x5e880b,_0x16433d)=>(_0x5e880b[_0x172c65(0x220)](exports[_0x172c65(0xea)])['showConfigPanel'](),!0x0)};function Z(_0x157f8c,_0x28a470){const _0x1fd42d=_0x172c65;switch(_0x157f8c){case s[_0x1fd42d(0x106)][_0x1fd42d(0x225)]:return _0x1fd42d(0x136);case s['MCPConnectionStatus'][_0x1fd42d(0x23a)]:return _0x1fd42d(0x224);case s[_0x1fd42d(0x106)]['CONNECTED']:return _0x1fd42d(0x12f);case s[_0x1fd42d(0x106)]['FAILED']:switch(_0x28a470){case s[_0x1fd42d(0x258)][_0x1fd42d(0xf5)]:return'mcpStatus.unauthorized';case s[_0x1fd42d(0x258)][_0x1fd42d(0x266)]:return _0x1fd42d(0x1b9);case s[_0x1fd42d(0x258)][_0x1fd42d(0x1ad)]:return _0x1fd42d(0x1d2);case s[_0x1fd42d(0x258)][_0x1fd42d(0x173)]:return _0x1fd42d(0x158);default:return _0x1fd42d(0x140);}case s['MCPConnectionStatus'][_0x1fd42d(0x219)]:return _0x1fd42d(0x1c8);default:return _0x1fd42d(0x230);}}function Se(_0x4aa43d,_0x4de9e,_0x1efcab,_0x240551=!0x0){const _0x4c0815=_0x172c65,_0xb7e7a1=Z(_0x4aa43d,_0x4de9e),_0x17e2b0=_0x1efcab['t'](_0xb7e7a1);return _0x240551?_0x4aa43d===s[_0x4c0815(0x106)]['DISCONNECTED']&&_0x4de9e===s[_0x4c0815(0x258)][_0x4c0815(0xf5)]?_0x17e2b0+_0x4c0815(0x14a)+_0x1efcab['t'](_0x4c0815(0x124)):_0x4aa43d===s[_0x4c0815(0x106)]['CONNECTED']?''+_0x17e2b0:_0x4aa43d===s[_0x4c0815(0x106)][_0x4c0815(0x225)]||_0x4aa43d===s['MCPConnectionStatus'][_0x4c0815(0x200)]?_0x17e2b0+_0x4c0815(0x14a)+_0x1efcab['t'](_0x4c0815(0x129)):_0x17e2b0:_0x17e2b0;}function Pe(_0x53f408){const _0x5a6fcc=_0x172c65;switch(_0x53f408){case s[_0x5a6fcc(0x106)][_0x5a6fcc(0x25f)]:return _0x5a6fcc(0x1a1);case s[_0x5a6fcc(0x106)][_0x5a6fcc(0x23a)]:case s[_0x5a6fcc(0x106)][_0x5a6fcc(0x219)]:return _0x5a6fcc(0xef);case s[_0x5a6fcc(0x106)][_0x5a6fcc(0x200)]:case s['MCPConnectionStatus'][_0x5a6fcc(0x225)]:return _0x5a6fcc(0x175);default:return _0x5a6fcc(0x176);}}function W(_0x489f32){const _0x2ffb67=_0x172c65,{status$:_0x370140,error$:_0x29a8b3,onConfigure:_0x15d93c,showClickable:_0xc69725=!0x0}=_0x489f32,_0x46a40d=v[_0x2ffb67(0x1b7)](_0x370140,s['MCPConnectionStatus']['DISCONNECTED']),_0x343f83=v[_0x2ffb67(0x1b7)](_0x29a8b3,s[_0x2ffb67(0x258)][_0x2ffb67(0x11e)]),_0x653ad7=v[_0x2ffb67(0x11a)](u['LocaleService']),_0x663620=_0x46a40d===s[_0x2ffb67(0x106)]['CONNECTED'];_0x46a40d===s[_0x2ffb67(0x106)][_0x2ffb67(0x23a)]||s[_0x2ffb67(0x106)][_0x2ffb67(0x219)];const _0x3aa095=_0x653ad7['t'](Z(_0x46a40d,_0x343f83)),_0x380e54=Se(_0x46a40d,_0x343f83,_0x653ad7,_0xc69725),_0x1f5d59=Pe(_0x46a40d),_0x1ace12=_0x663620?i[_0x2ffb67(0x1b6)](q,{}):i[_0x2ffb67(0x1b6)](Y,{}),_0x1f9452=d[_0x2ffb67(0x188)](()=>{_0xc69725&&_0x15d93c&&_0x15d93c();},[_0xc69725,_0x15d93c]);function _0x295f2a(){const _0x4187d1=_0x2ffb67;return i[_0x4187d1(0x246)]('div',{'className':f[_0x4187d1(0x193)](_0x4187d1(0x178),_0xc69725&&_0x15d93c&&_0x4187d1(0x20e)),'role':_0x4187d1(0x1c5),'onClick':_0xc69725&&_0x15d93c?_0x1f9452:void 0x0,'children':[i[_0x4187d1(0x1b6)](_0x4187d1(0x160),{'className':f[_0x4187d1(0x193)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x1f5d59),'children':_0x1ace12}),i[_0x4187d1(0x1b6)](_0x4187d1(0x160),{'className':_0x4187d1(0xe4),'children':_0x3aa095})]});}return i[_0x2ffb67(0x1b6)](f['Tooltip'],{'title':_0x380e54,'placement':_0x2ffb67(0x194),'children':_0x295f2a()});}var Ie=Object[_0x172c65(0x254)],_e=(_0xff62dd,_0x2c04a4,_0x12fc84,_0x213b8a)=>{const _0x190f94=_0x172c65;for(var _0x316bf6=_0x213b8a>0x1?void 0x0:_0x213b8a?Ie(_0x2c04a4,_0x12fc84):_0x2c04a4,_0x113f13=_0xff62dd[_0x190f94(0x12d)]-0x1,_0x317860;_0x113f13>=0x0;_0x113f13--)(_0x317860=_0xff62dd[_0x113f13])&&(_0x316bf6=_0x317860(_0x316bf6)||_0x316bf6);return _0x316bf6;},N=(_0x2c524,_0x1cbc50)=>(_0x4bfc53,_0x421242)=>_0x1cbc50(_0x4bfc53,_0x421242,_0x2c524);exports[_0x172c65(0x212)]=class extends u['Disposable']{constructor(_0x2241be,_0x5d4013,_0x35b89f,_0x443aa1){const _0x3de072=_0x172c65;super(),this[_0x3de072(0x21a)]=_0x2241be,this['_connectionController']=_0x5d4013,this[_0x3de072(0x111)]=_0x35b89f,this[_0x3de072(0xf1)]=_0x443aa1,this[_0x3de072(0x186)](),this[_0x3de072(0xdf)]();}[_0x172c65(0x186)](){const _0x1c7737=_0x172c65,_0x51616d=this[_0x1c7737(0xf1)][_0x1c7737(0x145)](P);_0x51616d!=null&&_0x51616d[_0x1c7737(0x181)]&&(this[_0x1c7737(0xff)][_0x1c7737(0x164)]=!0x1);}[_0x172c65(0xdf)](){const _0x23bf83=_0x172c65,_0x162808=this[_0x23bf83(0xf1)]['getConfig'](P);(_0x162808==null?void 0x0:_0x162808[_0x23bf83(0x127)])!==!0x1&&this[_0x23bf83(0x196)](this['_uiPartsService'][_0x23bf83(0x1bf)](v[_0x23bf83(0x19e)][_0x23bf83(0x18d)],()=>{const _0x28e634=_0x23bf83;var _0x1b12ed;return v['connectInjector'](ye({'status$':this[_0x28e634(0xff)][_0x28e634(0x198)],'error$':this['_connectionController'][_0x28e634(0x10b)],'onConfigure':()=>this[_0x28e634(0x112)](),'showClickable':(_0x1b12ed=_0x162808==null?void 0x0:_0x162808[_0x28e634(0x181)])!=null?_0x1b12ed:!0x1}),this[_0x28e634(0x21a)]);}));}[_0x172c65(0x112)](){const _0x4dbab1=_0x172c65;this[_0x4dbab1(0x21a)][_0x4dbab1(0x220)](exports['MCPConfigUIController'])[_0x4dbab1(0x103)]();}},exports[_0x172c65(0x212)]=_e([N(0x0,u[_0x172c65(0x14e)](u[_0x172c65(0x24e)])),N(0x1,u['Inject'](s[_0x172c65(0x138)])),N(0x2,v['IUIPartsService']),N(0x3,u[_0x172c65(0x1fd)])],exports[_0x172c65(0x212)]);function ye(_0x41c86d){const {status$:_0x1f434c,error$:_0x352092,onConfigure:_0x15ae7c,showClickable:_0x3cd612}=_0x41c86d;return function(){const _0x34923a=_0x1a3f;return i[_0x34923a(0x1b6)](W,{'status$':_0x1f434c,'error$':_0x352092,'onConfigure':_0x15ae7c,'showClickable':_0x3cd612});};}function Me(_0xcc4ea8){const _0x2f641c=_0x172c65;return{'id':b['id'],'type':v[_0x2f641c(0x1c2)][_0x2f641c(0x1f6)],'icon':_0x2f641c(0x1ff),'title':_0x2f641c(0x13a),'tooltip':_0x2f641c(0x13a)};}const Ne={[v[_0x172c65(0x23d)]['OTHERS']]:{[b['id']]:{'order':0xa,'menuItemFactory':Me}}};var be=Object[_0x172c65(0x254)],je=(_0x3b60e7,_0xdb0c46,_0x5c9de0,_0x4de284)=>{for(var _0x222f79=_0x4de284>0x1?void 0x0:_0x4de284?be(_0xdb0c46,_0x5c9de0):_0xdb0c46,_0x32656c=_0x3b60e7['length']-0x1,_0x49c8ec;_0x32656c>=0x0;_0x32656c--)(_0x49c8ec=_0x3b60e7[_0x32656c])&&(_0x222f79=_0x49c8ec(_0x222f79)||_0x222f79);return _0x222f79;},z=(_0x4016bb,_0x2f7d8a)=>(_0x1f8677,_0xedb636)=>_0x2f7d8a(_0x1f8677,_0xedb636,_0x4016bb);exports[_0x172c65(0x249)]=class extends u[_0x172c65(0x1dd)]{constructor(_0x370d5a,_0x535628){const _0x18d18f=_0x172c65;super(),this[_0x18d18f(0x259)]=_0x370d5a,this['_menuManagerService']=_0x535628,this[_0x18d18f(0x1ba)](),this[_0x18d18f(0x217)]();}['_initializeCommands'](){const _0x3a29cb=_0x172c65;[b][_0x3a29cb(0x13e)](_0x21ac9c=>{const _0x4ef88f=_0x3a29cb;this[_0x4ef88f(0x196)](this[_0x4ef88f(0x259)]['registerCommand'](_0x21ac9c));});}[_0x172c65(0x217)](){const _0x29e98c=_0x172c65;this[_0x29e98c(0xed)][_0x29e98c(0x23f)](Ne);}},exports['MCPUIMenuController']=je([z(0x0,u[_0x172c65(0x1f3)]),z(0x1,v['IMenuManagerService'])],exports[_0x172c65(0x249)]);const Ee={'mcpStatus':{'disconnected':_0x172c65(0x1a4),'connecting':_0x172c65(0x110),'connected':_0x172c65(0x1fb),'failed':'MCP\x20Connection\x20Failed','retrying':_0x172c65(0xfb),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x172c65(0x1d9),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x172c65(0x211),'clickToConnect':_0x172c65(0x1cd),'clickToConfigure':_0x172c65(0x235)},'mcpConfig':{'title':_0x172c65(0x241),'description':_0x172c65(0x1f2),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x172c65(0x1a0),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x172c65(0x10d),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x172c65(0x1ef),'mcpClientConfig':_0x172c65(0x1ef),'configInstructions':_0x172c65(0x20b),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x172c65(0x216),'configStep2':_0x172c65(0x197),'configStep3':_0x172c65(0x1fe),'sessionId':_0x172c65(0x17b),'sessionIdDescription':_0x172c65(0x1be),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x172c65(0x265),'maxRetries':'Max\x20Retries','save':_0x172c65(0x231),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x172c65(0x229),'configSaved':_0x172c65(0x23c),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x172c65(0x14d),'description':_0x172c65(0x25b),'univerAiLabel':_0x172c65(0x23e),'getStarted':_0x172c65(0x1e7)},'validation':{'apiKeyRequired':_0x172c65(0x251),'apiKeyTooShort':_0x172c65(0x1dc),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x172c65(0x179)},'connectionStatus':{'disconnected':_0x172c65(0x11d),'connecting':_0x172c65(0x25c),'connected':'Connected','failed':_0x172c65(0x120),'retrying':_0x172c65(0x102)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x172c65(0x13b),'networkError':_0x172c65(0x1d4),'maxRetriesExceeded':_0x172c65(0x1f4)}}},we={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x172c65(0x117),'connected':'MCP\x20已连接','failed':_0x172c65(0x221),'retrying':_0x172c65(0x17e),'unknown':_0x172c65(0x19b),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x172c65(0x16c),'networkError':_0x172c65(0x1aa),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x172c65(0x1a9),'clickToConfigure':_0x172c65(0x1e4)},'mcpConfig':{'title':'MCP\x20配置','description':_0x172c65(0x1e3),'apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x172c65(0x1fa),'enableAuth':_0x172c65(0x1df),'enableAuthHint':_0x172c65(0x177),'connectionInfo':_0x172c65(0x255),'mcpClientConfig':_0x172c65(0x255),'configInstructions':_0x172c65(0x1e0),'configStepTitle':_0x172c65(0xf7),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x172c65(0x16f),'sessionId':_0x172c65(0x1e2),'sessionIdDescription':_0x172c65(0x17f),'authorizationDescription':_0x172c65(0x233),'configParameters':'配置参数:','maxRetries':_0x172c65(0x1ee),'save':_0x172c65(0x1b5),'saving':_0x172c65(0x250),'note1':_0x172c65(0x20c),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x172c65(0x1c4),'configError':_0x172c65(0x16a),'apiApplyInfo':{'title':_0x172c65(0x18c),'description':_0x172c65(0x21d),'univerAiLabel':_0x172c65(0xf9),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x172c65(0x180),'invalidConfig':_0x172c65(0x1cc),'invalidApiKey':_0x172c65(0x22c)},'connectionStatus':{'disconnected':'未连接','connecting':_0x172c65(0x104),'connected':_0x172c65(0x247),'failed':'连接失败','retrying':_0x172c65(0xf3)},'connectionError':{'unauthorized':_0x172c65(0x1d0),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x172c65(0x157),'maxRetriesExceeded':_0x172c65(0x10f)}}};function _0x1a3f(_0x34886e,_0x1f51f4){_0x34886e=_0x34886e-0xdf;const _0x32c6f5=_0x32c6();let _0x1a3f85=_0x32c6f5[_0x34886e];return _0x1a3f85;}var Ae=Object['defineProperty'],Oe=Object[_0x172c65(0x254)],De=(_0x354ccb,_0x51f0a5,_0xac5a9b)=>_0x51f0a5 in _0x354ccb?Ae(_0x354ccb,_0x51f0a5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xac5a9b}):_0x354ccb[_0x51f0a5]=_0xac5a9b,Ue=(_0x315ff5,_0x3f8e87,_0x501f38,_0x275f44)=>{for(var _0x11c52d=_0x275f44>0x1?void 0x0:_0x275f44?Oe(_0x3f8e87,_0x501f38):_0x3f8e87,_0x45cb3=_0x315ff5['length']-0x1,_0x5bd3e1;_0x45cb3>=0x0;_0x45cb3--)(_0x5bd3e1=_0x315ff5[_0x45cb3])&&(_0x11c52d=_0x5bd3e1(_0x11c52d)||_0x11c52d);return _0x11c52d;},y=(_0x130247,_0x5e58d2)=>(_0x45baa0,_0xbb637b)=>_0x5e58d2(_0x45baa0,_0xbb637b,_0x130247),$e=(_0x177ae6,_0x15aa3a,_0x12816b)=>De(_0x177ae6,_0x15aa3a+'',_0x12816b);exports[_0x172c65(0x20f)]=class extends u[_0x172c65(0x21b)]{constructor(_0x11755e=L,_0x3577bd,_0x48611b,_0x4bea14,_0xa62627,_0x170369){const _0x8e9284=_0x172c65;super(),this[_0x8e9284(0x195)]=_0x11755e,this[_0x8e9284(0x21a)]=_0x3577bd,this[_0x8e9284(0xf1)]=_0x48611b,this[_0x8e9284(0x111)]=_0x4bea14,this[_0x8e9284(0x163)]=_0xa62627,this[_0x8e9284(0x234)]=_0x170369;const {..._0x91fd30}=u[_0x8e9284(0x12a)]({},L,this['_config']);this['_configService']['setConfig'](P,_0x91fd30);}async[_0x172c65(0xe9)](){const _0xe96018=_0x172c65,_0x5b9bf2=[[exports[_0xe96018(0x212)]],[exports[_0xe96018(0xea)]],[exports[_0xe96018(0x249)]]];this['_injector'][_0xe96018(0x15b)](A[_0xe96018(0x1fc)])||_0x5b9bf2[_0xe96018(0x1d6)]([A[_0xe96018(0x1fc)],{'useClass':A[_0xe96018(0x1a5)]}]),_0x5b9bf2[_0xe96018(0x13e)](_0x4e48ce=>this[_0xe96018(0x21a)][_0xe96018(0x10c)](_0x4e48ce)),this[_0xe96018(0x21a)][_0xe96018(0x220)](exports[_0xe96018(0x212)]),this[_0xe96018(0x21a)][_0xe96018(0x220)](exports[_0xe96018(0xea)]),this[_0xe96018(0x21a)][_0xe96018(0x220)](exports[_0xe96018(0x249)]);}},$e(exports[_0x172c65(0x20f)],_0x172c65(0x218),_0x172c65(0x100)),exports[_0x172c65(0x20f)]=Ue([u[_0x172c65(0x19f)](s['UniverMCPPlugin']),y(0x1,u[_0x172c65(0x14e)](u[_0x172c65(0x24e)])),y(0x2,u[_0x172c65(0x1fd)]),y(0x3,v[_0x172c65(0x146)]),y(0x4,u[_0x172c65(0x1f1)]),y(0x5,u[_0x172c65(0x14e)](u['LocaleService']))],exports[_0x172c65(0x20f)]),exports[_0x172c65(0x191)]=V,exports[_0x172c65(0x1db)]=W,exports['OpenMCPConfigPanelCommand']=b,exports['enUS']=Ee,exports[_0x172c65(0x1cf)]=we;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x59ad61=_0x3790;(function(_0x407303,_0x2d6674){const _0x404c43=_0x3790,_0x524fa9=_0x407303();while(!![]){try{const _0x1188f4=parseInt(_0x404c43(0xc4))/0x1+parseInt(_0x404c43(0xed))/0x2+-parseInt(_0x404c43(0xd8))/0x3+-parseInt(_0x404c43(0xd6))/0x4*(-parseInt(_0x404c43(0xe8))/0x5)+parseInt(_0x404c43(0xd0))/0x6+parseInt(_0x404c43(0xcf))/0x7*(parseInt(_0x404c43(0xc8))/0x8)+parseInt(_0x404c43(0xee))/0x9*(-parseInt(_0x404c43(0xe4))/0xa);if(_0x1188f4===_0x2d6674)break;else _0x524fa9['push'](_0x524fa9['shift']());}catch(_0x3a3bab){_0x524fa9['push'](_0x524fa9['shift']());}}}(_0x4d99,0x6279b));function _0x3790(_0x1f62c3,_0x30c7b7){_0x1f62c3=_0x1f62c3-0xc4;const _0x4d992b=_0x4d99();let _0x37903e=_0x4d992b[_0x1f62c3];return _0x37903e;}function _0x4d99(){const _0x53ec68=['Univer\x20AI\x20Console','604424KKgOth','15237edMtXF','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','Enter\x20your\x20API\x20key','363814eWcCVU','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20saved\x20successfully','MCP:\x20Unauthorized','5246008zkHMci','Click\x20to\x20connect\x20MCP','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Session\x20ID\x20Occupied','API\x20Key','Get\x20your\x20API\x20key\x20in\x20seconds','Connecting...','7DBXReE','4552440ASswzv','Max\x20Retries','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','20yhwmTj','MCP\x20Client\x20Configuration','1410954GTyHkU','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Save\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Unknown\x20Status','API\x20key\x20is\x20required','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Retrying...','Configuration\x20Steps:','10730JJsbxe','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Saving...','MCP\x20Connected','609745QczqAU','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20configure\x20MCP','Session\x20ID'];_0x4d99=function(){return _0x53ec68;};return _0x4d99();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x59ad61(0xe7),'failed':'MCP\x20Connection\x20Failed','retrying':_0x59ad61(0xe2),'unknown':_0x59ad61(0xde),'unauthorized':_0x59ad61(0xc7),'sessionOccupied':_0x59ad61(0xcb),'networkError':_0x59ad61(0xf1),'maxRetriesExceeded':_0x59ad61(0xf0),'clickToConnect':_0x59ad61(0xc9),'clickToConfigure':_0x59ad61(0xea)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x59ad61(0xd3),'apiKey':_0x59ad61(0xcc),'apiKeyPlaceholder':_0x59ad61(0xf2),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x59ad61(0xd7),'mcpClientConfig':_0x59ad61(0xd7),'configInstructions':_0x59ad61(0xe1),'configStepTitle':_0x59ad61(0xe3),'configStep1':_0x59ad61(0xe9),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x59ad61(0xc5),'sessionId':_0x59ad61(0xeb),'sessionIdDescription':_0x59ad61(0xdb),'authorizationDescription':_0x59ad61(0xca),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x59ad61(0xd1),'save':_0x59ad61(0xda),'saving':_0x59ad61(0xe6),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x59ad61(0xe0),'configSaved':_0x59ad61(0xc6),'configError':_0x59ad61(0xd4),'apiApplyInfo':{'title':_0x59ad61(0xd5),'description':_0x59ad61(0xd2),'univerAiLabel':_0x59ad61(0xec),'getStarted':_0x59ad61(0xcd)},'validation':{'apiKeyRequired':_0x59ad61(0xdf),'apiKeyTooShort':_0x59ad61(0xef),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x59ad61(0xce),'connected':'Connected','failed':_0x59ad61(0xdc),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x59ad61(0xe5),'networkError':_0x59ad61(0xdd),'maxRetriesExceeded':_0x59ad61(0xd9)}}},n=e;module['exports']=n;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x2a6524=_0x194e;(function(_0x327827,_0x39e5ad){const _0x7e97ca=_0x194e,_0x2b82f5=_0x327827();while(!![]){try{const _0x3634ed=-parseInt(_0x7e97ca(0x1a9))/0x1+-parseInt(_0x7e97ca(0x18c))/0x2+-parseInt(_0x7e97ca(0x192))/0x3*(parseInt(_0x7e97ca(0x17d))/0x4)+-parseInt(_0x7e97ca(0x18f))/0x5+-parseInt(_0x7e97ca(0x1a0))/0x6+-parseInt(_0x7e97ca(0x185))/0x7*(-parseInt(_0x7e97ca(0x17a))/0x8)+parseInt(_0x7e97ca(0x189))/0x9;if(_0x3634ed===_0x39e5ad)break;else _0x2b82f5['push'](_0x2b82f5['shift']());}catch(_0x4442ee){_0x2b82f5['push'](_0x2b82f5['shift']());}}}(_0x3216,0xe1501));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2a6524(0x180),'connected':_0x2a6524(0x1a5),'failed':_0x2a6524(0x19e),'retrying':_0x2a6524(0x19d),'unknown':_0x2a6524(0x183),'unauthorized':_0x2a6524(0x19f),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2a6524(0x18d),'clickToConnect':_0x2a6524(0x19a),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2a6524(0x194),'apiKey':_0x2a6524(0x195),'apiKeyPlaceholder':_0x2a6524(0x19c),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x2a6524(0x184),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2a6524(0x199),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x2a6524(0x1a2),'configStepTitle':_0x2a6524(0x186),'configStep1':_0x2a6524(0x1a4),'configStep2':_0x2a6524(0x190),'configStep3':_0x2a6524(0x188),'sessionId':_0x2a6524(0x1a6),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2a6524(0x198),'maxRetries':_0x2a6524(0x17f),'save':_0x2a6524(0x17b),'saving':_0x2a6524(0x18b),'note1':_0x2a6524(0x187),'note2':_0x2a6524(0x193),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x2a6524(0x1a7),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2a6524(0x197),'univerAiLabel':_0x2a6524(0x1a1),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x2a6524(0x1a3),'apiKeyTooShort':_0x2a6524(0x19b),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2a6524(0x181)},'connectionStatus':{'disconnected':_0x2a6524(0x1a8),'connecting':'Connecting...','connected':_0x2a6524(0x191),'failed':_0x2a6524(0x18a),'retrying':_0x2a6524(0x196)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x2a6524(0x17c),'networkError':_0x2a6524(0x18e),'maxRetriesExceeded':_0x2a6524(0x17e)}}};function _0x194e(_0x4c34cc,_0x504c57){_0x4c34cc=_0x4c34cc-0x17a;const _0x321631=_0x3216();let _0x194e4d=_0x321631[_0x4c34cc];return _0x194e4d;}module[_0x2a6524(0x182)]=e;function _0x3216(){const _0x4691e1=['MCP\x20Unknown\x20Status','Enable\x20Authentication','7QvTHoz','Configuration\x20Steps:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','38234025jXJbDF','Connection\x20Failed','Saving...','94254ZlkXTj','MCP:\x20Max\x20Retries\x20Exceeded','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','1577740ETDRsz','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connected','5037873yiDxoV','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','Retrying...','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\x20Parameters:','MCP\x20Client\x20Configuration','Click\x20to\x20connect\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enter\x20your\x20API\x20key','MCP\x20Retrying...','MCP\x20Connection\x20Failed','MCP:\x20Unauthorized','3236388crllSa','Univer\x20AI\x20Console','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20is\x20required','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connected','Session\x20ID','Failed\x20to\x20save\x20configuration','Disconnected','1701275fdHUMX','7658360azQKmL','Save\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','4IzBPlo','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Max\x20Retries','MCP\x20Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','exports'];_0x3216=function(){return _0x4691e1;};return _0x3216();}
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x4999(_0x2de0c2,_0xb7654f){_0x2de0c2=_0x2de0c2-0x85;const _0x4dc522=_0x4dc5();let _0x4999ab=_0x4dc522[_0x2de0c2];return _0x4999ab;}const _0x1e6d7e=_0x4999;(function(_0x249cf0,_0x25540a){const _0x1a91a6=_0x4999,_0x3d2950=_0x249cf0();while(!![]){try{const _0xe33fe=parseInt(_0x1a91a6(0x8c))/0x1*(-parseInt(_0x1a91a6(0xa9))/0x2)+parseInt(_0x1a91a6(0x98))/0x3*(-parseInt(_0x1a91a6(0x8e))/0x4)+parseInt(_0x1a91a6(0x9e))/0x5+parseInt(_0x1a91a6(0x8b))/0x6+parseInt(_0x1a91a6(0xb7))/0x7+-parseInt(_0x1a91a6(0x95))/0x8+parseInt(_0x1a91a6(0xb6))/0x9;if(_0xe33fe===_0x25540a)break;else _0x3d2950['push'](_0x3d2950['shift']());}catch(_0x429968){_0x3d2950['push'](_0x3d2950['shift']());}}}(_0x4dc5,0xb4562));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x1e6d7e(0xac),'connected':_0x1e6d7e(0xa5),'failed':_0x1e6d7e(0xab),'retrying':_0x1e6d7e(0xb1),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x1e6d7e(0x9f),'sessionOccupied':_0x1e6d7e(0xaa),'networkError':_0x1e6d7e(0xa1),'maxRetriesExceeded':_0x1e6d7e(0xb4),'clickToConnect':_0x1e6d7e(0x9c),'clickToConfigure':_0x1e6d7e(0xa6)},'mcpConfig':{'title':_0x1e6d7e(0xb3),'description':_0x1e6d7e(0xad),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x1e6d7e(0x8f),'enableAuth':_0x1e6d7e(0x88),'enableAuthHint':_0x1e6d7e(0x8a),'connectionInfo':_0x1e6d7e(0x89),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1e6d7e(0x99),'configStepTitle':_0x1e6d7e(0xb9),'configStep1':_0x1e6d7e(0x92),'configStep2':_0x1e6d7e(0xaf),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x1e6d7e(0x90),'sessionIdDescription':_0x1e6d7e(0x85),'authorizationDescription':_0x1e6d7e(0x93),'configParameters':_0x1e6d7e(0xa8),'maxRetries':'Max\x20Retries','save':_0x1e6d7e(0xa3),'saving':_0x1e6d7e(0xb8),'note1':_0x1e6d7e(0x94),'note2':_0x1e6d7e(0xa7),'configSaved':_0x1e6d7e(0xa0),'configError':_0x1e6d7e(0x8d),'apiApplyInfo':{'title':_0x1e6d7e(0x9a),'description':_0x1e6d7e(0xb5),'univerAiLabel':_0x1e6d7e(0x96),'getStarted':_0x1e6d7e(0xa2)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x1e6d7e(0x9d),'invalidApiKey':_0x1e6d7e(0x86)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x1e6d7e(0xa4),'connected':_0x1e6d7e(0x87),'failed':_0x1e6d7e(0xb2),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x1e6d7e(0x9b),'sessionOccupied':_0x1e6d7e(0x97),'networkError':_0x1e6d7e(0xae),'maxRetriesExceeded':_0x1e6d7e(0xb0)}}},n=e;module[_0x1e6d7e(0x91)]=n;function _0x4dc5(){const _0x32c8d5=['Enable\x20authentication\x20for\x20secure\x20connections','4140426NdjGVO','1086284dxtbOD','Failed\x20to\x20save\x20configuration','3212QNOmcD','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session\x20ID','exports','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','8832928GcTMvU','Univer\x20AI\x20Console','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','381qLVYbF','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','What\x20is\x20API\x20Key?','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20connect\x20MCP','Invalid\x20configuration','4739415HhhUcw','MCP:\x20Unauthorized','Configuration\x20saved\x20successfully','MCP:\x20Network\x20Error','Get\x20your\x20API\x20key\x20in\x20seconds','Save\x20Configuration','Connecting...','MCP\x20Connected','Click\x20to\x20configure\x20MCP','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20Parameters:','2ReRtsb','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connection\x20Failed','MCP\x20Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Retrying...','Connection\x20Failed','MCP\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','237645flNEuH','9566760tYYwvT','Saving...','Configuration\x20Steps:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connected','Enable\x20Authentication','MCP\x20Client\x20Configuration'];_0x4dc5=function(){return _0x32c8d5;};return _0x4dc5();}
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xe1d0f7=_0x3bd7;(function(_0x3d3581,_0xe2ef22){const _0xcb472e=_0x3bd7,_0x50fc50=_0x3d3581();while(!![]){try{const _0x84413d=parseInt(_0xcb472e(0x84))/0x1+parseInt(_0xcb472e(0x80))/0x2*(parseInt(_0xcb472e(0x77))/0x3)+-parseInt(_0xcb472e(0x7c))/0x4*(-parseInt(_0xcb472e(0x90))/0x5)+parseInt(_0xcb472e(0x9a))/0x6+parseInt(_0xcb472e(0x7b))/0x7+-parseInt(_0xcb472e(0x73))/0x8+-parseInt(_0xcb472e(0x88))/0x9;if(_0x84413d===_0xe2ef22)break;else _0x50fc50['push'](_0x50fc50['shift']());}catch(_0x3470e5){_0x50fc50['push'](_0x50fc50['shift']());}}}(_0x5a10,0x37995));const e={'mcpStatus':{'disconnected':_0xe1d0f7(0x7f),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0xe1d0f7(0x8f),'retrying':_0xe1d0f7(0xa0),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0xe1d0f7(0x79),'sessionOccupied':_0xe1d0f7(0x93),'networkError':_0xe1d0f7(0x9e),'maxRetriesExceeded':_0xe1d0f7(0x95),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xe1d0f7(0x6e)},'mcpConfig':{'title':_0xe1d0f7(0x81),'description':_0xe1d0f7(0x91),'apiKey':_0xe1d0f7(0x74),'apiKeyPlaceholder':_0xe1d0f7(0x7e),'apiKeyHint':_0xe1d0f7(0x72),'enableAuth':_0xe1d0f7(0x96),'enableAuthHint':_0xe1d0f7(0x9d),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0xe1d0f7(0x99),'configInstructions':_0xe1d0f7(0x7a),'configStepTitle':_0xe1d0f7(0x8b),'configStep1':_0xe1d0f7(0x9c),'configStep2':_0xe1d0f7(0x8c),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0xe1d0f7(0x94),'sessionIdDescription':_0xe1d0f7(0x70),'authorizationDescription':_0xe1d0f7(0x7d),'configParameters':'Configuration\x20Parameters:','maxRetries':_0xe1d0f7(0x86),'save':_0xe1d0f7(0x75),'saving':_0xe1d0f7(0x8e),'note1':_0xe1d0f7(0x76),'note2':_0xe1d0f7(0x92),'configSaved':_0xe1d0f7(0x82),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0xe1d0f7(0x9b),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xe1d0f7(0x97)},'validation':{'apiKeyRequired':_0xe1d0f7(0x8a),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0xe1d0f7(0x87),'invalidApiKey':_0xe1d0f7(0x83)},'connectionStatus':{'disconnected':_0xe1d0f7(0x9f),'connecting':_0xe1d0f7(0x8d),'connected':_0xe1d0f7(0x6f),'failed':'Connection\x20Failed','retrying':_0xe1d0f7(0x89)},'connectionError':{'unauthorized':_0xe1d0f7(0x78),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xe1d0f7(0x71),'maxRetriesExceeded':_0xe1d0f7(0x85)}}},n=e;function _0x3bd7(_0x54c635,_0x48d733){_0x54c635=_0x54c635-0x6e;const _0x5a10e8=_0x5a10();let _0x3bd7cd=_0x5a10e8[_0x54c635];return _0x3bd7cd;}module[_0xe1d0f7(0x98)]=n;function _0x5a10(){const _0x5bc626=['MCP\x20Configuration','Configuration\x20saved\x20successfully','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','236770dOGSuF','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Max\x20Retries','Invalid\x20configuration','2034369ZLJUVL','Retrying...','API\x20key\x20is\x20required','Configuration\x20Steps:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connecting...','Saving...','MCP\x20Connection\x20Failed','75RetUxh','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Session\x20ID\x20Occupied','Session\x20ID','MCP:\x20Max\x20Retries\x20Exceeded','Enable\x20Authentication','Get\x20your\x20API\x20key\x20in\x20seconds','exports','MCP\x20Client\x20Configuration','1665426YGBPSH','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Network\x20Error','Disconnected','MCP\x20Retrying...','Click\x20to\x20configure\x20MCP','Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','3404096XGBsCI','API\x20Key','Save\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','18GopfoR','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','116452Vprfkl','92836qFvWsV','API\x20key\x20with\x20Bearer\x20prefix.','Enter\x20your\x20API\x20key','MCP\x20Disconnected','58bURKzd'];_0x5a10=function(){return _0x5bc626;};return _0x5a10();}
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x3414f2=_0x2696;(function(_0x55b00d,_0x2fb6ca){const _0x598803=_0x2696,_0x3ef0ee=_0x55b00d();while(!![]){try{const _0x5b0ac9=parseInt(_0x598803(0x1ab))/0x1+-parseInt(_0x598803(0x19d))/0x2*(-parseInt(_0x598803(0x196))/0x3)+parseInt(_0x598803(0x1ae))/0x4+-parseInt(_0x598803(0x1b6))/0x5*(parseInt(_0x598803(0x1a2))/0x6)+parseInt(_0x598803(0x1a4))/0x7+-parseInt(_0x598803(0x1aa))/0x8+parseInt(_0x598803(0x188))/0x9*(-parseInt(_0x598803(0x197))/0xa);if(_0x5b0ac9===_0x2fb6ca)break;else _0x3ef0ee['push'](_0x3ef0ee['shift']());}catch(_0x4e413f){_0x3ef0ee['push'](_0x3ef0ee['shift']());}}}(_0x5b51,0x4dc6f));function _0x5b51(){const _0x34bb8f=['Connected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20is\x20required','21QZrOoP','4730RVIklm','MCP\x20Connected','Disconnected','Click\x20to\x20configure\x20MCP','Max\x20Retries','Enter\x20your\x20API\x20key','104500KfRrsF','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Session\x20ID\x20Occupied','Save\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','12OOJQYp','MCP\x20Disconnected','3673558rWWUYu','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connecting...','What\x20is\x20API\x20Key?','832136tTdtIj','476922xmNWEI','Configuration\x20Parameters:','Enable\x20authentication\x20for\x20secure\x20connections','1123036HMRpOd','MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','14415expHiq','Configuration\x20saved\x20successfully','23211QyfrNJ','API\x20Key','exports','Click\x20to\x20connect\x20MCP','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20Authentication','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Configuration','MCP:\x20Unauthorized','Configuration\x20Steps:'];_0x5b51=function(){return _0x34bb8f;};return _0x5b51();}const e={'mcpStatus':{'disconnected':_0x3414f2(0x1a3),'connecting':_0x3414f2(0x1a8),'connected':_0x3414f2(0x198),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x3414f2(0x190),'sessionOccupied':_0x3414f2(0x19f),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x3414f2(0x1b4),'clickToConnect':_0x3414f2(0x18b),'clickToConfigure':_0x3414f2(0x19a)},'mcpConfig':{'title':_0x3414f2(0x18f),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x3414f2(0x189),'apiKeyPlaceholder':_0x3414f2(0x19c),'apiKeyHint':_0x3414f2(0x1b5),'enableAuth':_0x3414f2(0x18d),'enableAuthHint':_0x3414f2(0x1ad),'connectionInfo':_0x3414f2(0x1af),'mcpClientConfig':_0x3414f2(0x1af),'configInstructions':_0x3414f2(0x1b3),'configStepTitle':_0x3414f2(0x191),'configStep1':_0x3414f2(0x1a1),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3414f2(0x1b1),'sessionId':'Session\x20ID','sessionIdDescription':_0x3414f2(0x18e),'authorizationDescription':_0x3414f2(0x1b0),'configParameters':_0x3414f2(0x1ac),'maxRetries':_0x3414f2(0x19b),'save':_0x3414f2(0x1a0),'saving':'Saving...','note1':_0x3414f2(0x1a5),'note2':_0x3414f2(0x18c),'configSaved':_0x3414f2(0x1b7),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3414f2(0x1a9),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x3414f2(0x195),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3414f2(0x19e)},'connectionStatus':{'disconnected':_0x3414f2(0x199),'connecting':'Connecting...','connected':_0x3414f2(0x192),'failed':'Connection\x20Failed','retrying':_0x3414f2(0x1a6)},'connectionError':{'unauthorized':_0x3414f2(0x1b2),'sessionOccupied':_0x3414f2(0x193),'networkError':_0x3414f2(0x1a7),'maxRetriesExceeded':_0x3414f2(0x194)}}},n=e;function _0x2696(_0x1e1a61,_0x7e78b8){_0x1e1a61=_0x1e1a61-0x188;const _0x5b51bf=_0x5b51();let _0x269608=_0x5b51bf[_0x1e1a61];return _0x269608;}module[_0x3414f2(0x18a)]=n;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5e0c4a=_0x1220;function _0x1220(_0x46162e,_0x4808a3){_0x46162e=_0x46162e-0xab;const _0x5db129=_0x5db1();let _0x122043=_0x5db129[_0x46162e];return _0x122043;}(function(_0x4e1648,_0x10481d){const _0x3864ce=_0x1220,_0x36b80e=_0x4e1648();while(!![]){try{const _0x3839c3=parseInt(_0x3864ce(0xd5))/0x1*(parseInt(_0x3864ce(0xbb))/0x2)+-parseInt(_0x3864ce(0xce))/0x3*(-parseInt(_0x3864ce(0xb7))/0x4)+parseInt(_0x3864ce(0xd7))/0x5+parseInt(_0x3864ce(0xcd))/0x6*(parseInt(_0x3864ce(0xb2))/0x7)+parseInt(_0x3864ce(0xd4))/0x8*(-parseInt(_0x3864ce(0xb8))/0x9)+parseInt(_0x3864ce(0xd1))/0xa+parseInt(_0x3864ce(0xcc))/0xb*(-parseInt(_0x3864ce(0xc9))/0xc);if(_0x3839c3===_0x10481d)break;else _0x36b80e['push'](_0x36b80e['shift']());}catch(_0x2583ed){_0x36b80e['push'](_0x36b80e['shift']());}}}(_0x5db1,0x788f7));const e={'mcpStatus':{'disconnected':_0x5e0c4a(0xaf),'connecting':_0x5e0c4a(0xbe),'connected':'MCP\x20接続済み','failed':_0x5e0c4a(0xb3),'retrying':_0x5e0c4a(0xc2),'unknown':'MCP\x20不明な状態','unauthorized':'MCP:\x20認証されていません','sessionOccupied':_0x5e0c4a(0xc3),'networkError':_0x5e0c4a(0xc1),'maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':_0x5e0c4a(0xab),'clickToConfigure':'クリックしてMCPを設定'},'mcpConfig':{'title':_0x5e0c4a(0xae),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0x5e0c4a(0xd9),'apiKeyPlaceholder':_0x5e0c4a(0xd8),'apiKeyHint':_0x5e0c4a(0xb0),'enableAuth':_0x5e0c4a(0xca),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':_0x5e0c4a(0xba),'mcpClientConfig':_0x5e0c4a(0xba),'configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':'設定手順:','configStep1':_0x5e0c4a(0xcf),'configStep2':_0x5e0c4a(0xb4),'configStep3':_0x5e0c4a(0xd6),'sessionId':_0x5e0c4a(0xb6),'sessionIdDescription':_0x5e0c4a(0xcb),'authorizationDescription':_0x5e0c4a(0xc6),'configParameters':_0x5e0c4a(0xb9),'maxRetries':_0x5e0c4a(0xbf),'save':_0x5e0c4a(0xad),'saving':_0x5e0c4a(0xbd),'note1':_0x5e0c4a(0xb5),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':_0x5e0c4a(0xc8),'configError':_0x5e0c4a(0xd0),'apiApplyInfo':{'title':'APIキーとは?','description':_0x5e0c4a(0xd3),'univerAiLabel':_0x5e0c4a(0xbc),'getStarted':_0x5e0c4a(0xc0)},'validation':{'apiKeyRequired':'APIキーは必須です','apiKeyTooShort':'APIキーは10文字以上である必要があります','invalidConfig':_0x5e0c4a(0xc7),'invalidApiKey':_0x5e0c4a(0xac)},'connectionStatus':{'disconnected':_0x5e0c4a(0xc5),'connecting':'接続中...','connected':'接続済み','failed':'接続失敗','retrying':_0x5e0c4a(0xda)},'connectionError':{'unauthorized':'認証に失敗しました。APIキーを確認してください','sessionOccupied':_0x5e0c4a(0xb1),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x5e0c4a(0xc4)}}};function _0x5db1(){const _0x16235b=['11964RVpzNM','認証を有効にする','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','6842WUvnHe','18762bBOSHm','45zkxFCb','以下のJSON設定をコピー','設定の保存に失敗しました','2583610xcjrVV','exports','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','63496zbTrQV','672DmHTmH','MCPクライアントを再起動して設定を適用','759010WNIkMe','APIキーを入力してください','APIキー','再試行中...','クリックしてMCPに接続','無効なAPIキーです。キーが正しいか確認してください','設定を保存','MCP設定','MCP\x20未接続','APIキーはこのブラウザのローカルに保存されます','セッションIDが現在使用中です。後でもう一度お試しください','1477LtMHXf','MCP\x20接続失敗','MCPクライアントの設定ファイルに設定を追加','設定の変更は直ちに有効になります','セッションID','28352hMloNg','1107bjnMGN','設定パラメータ:','MCPクライアント設定','2720fktwZi','Univer\x20AIコンソール','保存中...','MCP\x20接続中...','最大再試行回数','数秒でAPIキーを取得','MCP:\x20ネットワークエラー','MCP\x20再試行中...','MCP:\x20セッションIDが使用中','最大再試行回数を超過しました。後でもう一度お試しください','未接続','Bearerプレフィックス付きのAPIキー。','無効な設定','設定が正常に保存されました'];_0x5db1=function(){return _0x16235b;};return _0x5db1();}module[_0x5e0c4a(0xd2)]=e;
|