@univerjs-pro/mcp-ui 0.10.6-experimental.20250903-f52e3bf → 0.10.6-experimental.20250904-9591d16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +1 -0
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/mcp-config-ui.controller.d.ts +3 -1
- package/lib/types/controllers/mcp-connection-ui.controller.d.ts +4 -36
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +20 -1
- package/lib/types/locale/zh-CN.d.ts +20 -1
- package/lib/types/plugin.d.ts +0 -16
- package/lib/types/views/components/mcp-config.d.ts +7 -2
- package/lib/types/views/components/mcp-status.d.ts +0 -4
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +5 -5
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x58f7(_0x2369b6,_0x4d0add){const _0x23b049=_0x23b0();return _0x58f7=function(_0x58f761,_0x3ff803){_0x58f761=_0x58f761-0x114;let _0x2db236=_0x23b049[_0x58f761];return _0x2db236;},_0x58f7(_0x2369b6,_0x4d0add);}const _0x400807=_0x58f7;function _0x23b0(){const _0x18e862=['Connecting...','Max\x20Retries','Connection\x20Information','API\x20key\x20is\x20required','Invalid\x20configuration','MCP:\x20API\x20Key\x20Missing','Enable\x20authentication\x20for\x20secure\x20connections','11712FHbWIB','Click\x20to\x20configure\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','116zuuZEm','What\x20is\x20API\x20Key?','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','MCP\x20Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Save\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','4395XapvSE','5VLVtGc','1414878rkdpcV','API\x20Key','1767864XfQVtN','MCP:\x20Invalid\x20API\x20Key','MCP:\x20Session\x20Occupied','Univer\x20AI\x20Console','299090PExhik','193380PQrChz','MCP\x20Connection\x20Failed','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','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\x20saved\x20successfully','MCP\x20Unknown\x20Status','Enable\x20Authentication','MCP:\x20Network\x20Error','Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connected','1330008oEKjAm','Click\x20to\x20connect\x20MCP','Saving...','Connection\x20Failed','API\x20key\x20is\x20required\x20to\x20connect','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connecting...','36ieleiU','110PiEKDF','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long'];_0x23b0=function(){return _0x18e862;};return _0x23b0();}(function(_0x661de5,_0x1d4745){const _0x478c14=_0x58f7,_0x51876d=_0x661de5();while(!![]){try{const _0x4926ed=-parseInt(_0x478c14(0x136))/0x1*(-parseInt(_0x478c14(0x120))/0x2)+parseInt(_0x478c14(0x129))/0x3*(-parseInt(_0x478c14(0x12e))/0x4)+parseInt(_0x478c14(0x137))/0x5*(parseInt(_0x478c14(0x138))/0x6)+-parseInt(_0x478c14(0x13a))/0x7+parseInt(_0x478c14(0x118))/0x8+parseInt(_0x478c14(0x11f))/0x9*(-parseInt(_0x478c14(0x13e))/0xa)+parseInt(_0x478c14(0x13f))/0xb;if(_0x4926ed===_0x1d4745)break;else _0x51876d['push'](_0x51876d['shift']());}catch(_0x2304f5){_0x51876d['push'](_0x51876d['shift']());}}}(_0x23b0,0x2af5d));const e={'mcpStatus':{'disconnected':_0x400807(0x131),'connecting':_0x400807(0x11e),'connected':_0x400807(0x132),'failed':_0x400807(0x140),'retrying':'MCP\x20Retrying...','unknown':_0x400807(0x144),'missingApiKey':_0x400807(0x127),'invalidApiKey':_0x400807(0x13b),'sessionOccupied':_0x400807(0x13c),'networkError':_0x400807(0x114),'maxRetriesExceeded':_0x400807(0x135),'clickToConnect':_0x400807(0x119),'clickToConfigure':_0x400807(0x12a)},'mcpConfig':{'title':_0x400807(0x12c),'description':_0x400807(0x12b),'apiKey':_0x400807(0x139),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x400807(0x145),'enableAuthHint':_0x400807(0x128),'connectionInfo':_0x400807(0x124),'serverEndpoint':'Server\x20Endpoint','sessionId':'Session\x20ID','maxRetries':_0x400807(0x123),'save':_0x400807(0x134),'saving':_0x400807(0x11a),'note1':_0x400807(0x12d),'note2':_0x400807(0x133),'configSaved':_0x400807(0x143),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x400807(0x12f),'description':_0x400807(0x142),'univerAiLabel':_0x400807(0x13d),'getStarted':_0x400807(0x130)},'validation':{'apiKeyRequired':_0x400807(0x125),'apiKeyTooShort':_0x400807(0x121),'invalidConfig':_0x400807(0x126),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x400807(0x122),'connected':_0x400807(0x117),'failed':_0x400807(0x11b),'retrying':_0x400807(0x115)},'connectionError':{'missingApiKey':_0x400807(0x11c),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x400807(0x141),'networkError':_0x400807(0x116),'maxRetriesExceeded':_0x400807(0x11d)}}},n=e;export{n as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2d93de=_0x3b17;function _0x3b17(_0x5daea8,_0x1fd912){const _0x2f5ebd=_0x2f5e();return _0x3b17=function(_0x3b17b6,_0x11323b){_0x3b17b6=_0x3b17b6-0x14b;let _0xcf32de=_0x2f5ebd[_0x3b17b6];return _0xcf32de;},_0x3b17(_0x5daea8,_0x1fd912);}function _0x2f5e(){const _0x187589=['12zncNCR','配置保存失败','点击连接\x20MCP','最大重试次数','会话当前被占用,请稍后再试','服务器端点','请输入您的\x20API\x20密钥','MCP\x20连接失败','14ZSXrjF','681424hsbYOH','连接信息','5555310tjNVWv','MCP:\x20会话被占用','16497844ZQSVIJ','网络连接错误,请检查您的网络连接','配置无效','API\x20密钥长度至少需要\x2010\x20位','点击配置\x20MCP','MCP:\x20网络错误','MCP\x20已断开','10407708JLzvnP','21CMVDYz','需要\x20API\x20密钥才能连接','MCP\x20重连中...','API\x20密钥无效,请检查您的密钥后重试','连接失败','10hKSJcE','连接中...','MCP\x20配置','160004iHxyLl','MCP\x20状态未知','MCP:\x20缺少\x20API\x20密钥','配置\x20MCP\x20使用\x20AI\x20操作电子表格','重连中...','39801xMnxlK','会话ID','超出最大重试次数,请稍后再试','70GmbIBg','未连接','已连接','API\x20密钥不能为空','MCP\x20已连接','API\x20密钥无效,请检查密钥是否正确','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20连接中...','几秒钟内获取您的\x20API\x20密钥','保存中...','配置更改将立即生效','2570875UQdDhM'];_0x2f5e=function(){return _0x187589;};return _0x2f5e();}(function(_0x150648,_0x32716e){const _0x2f26dc=_0x3b17,_0x2bb18a=_0x150648();while(!![]){try{const _0x16609c=parseInt(_0x2f26dc(0x155))/0x1*(-parseInt(_0x2f26dc(0x16c))/0x2)+parseInt(_0x2f26dc(0x179))/0x3*(parseInt(_0x2f26dc(0x150))/0x4)+parseInt(_0x2f26dc(0x163))/0x5+parseInt(_0x2f26dc(0x16f))/0x6+parseInt(_0x2f26dc(0x158))/0x7*(-parseInt(_0x2f26dc(0x16d))/0x8)+-parseInt(_0x2f26dc(0x178))/0x9*(parseInt(_0x2f26dc(0x14d))/0xa)+-parseInt(_0x2f26dc(0x171))/0xb*(-parseInt(_0x2f26dc(0x164))/0xc);if(_0x16609c===_0x32716e)break;else _0x2bb18a['push'](_0x2bb18a['shift']());}catch(_0x4779fd){_0x2bb18a['push'](_0x2bb18a['shift']());}}}(_0x2f5e,0xe3cd0));const e={'mcpStatus':{'disconnected':_0x2d93de(0x177),'connecting':_0x2d93de(0x15f),'connected':_0x2d93de(0x15c),'failed':_0x2d93de(0x16b),'retrying':_0x2d93de(0x17b),'unknown':_0x2d93de(0x151),'missingApiKey':_0x2d93de(0x152),'invalidApiKey':'MCP:\x20无效的\x20API\x20密钥','sessionOccupied':_0x2d93de(0x170),'networkError':_0x2d93de(0x176),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x2d93de(0x166),'clickToConfigure':_0x2d93de(0x175)},'mcpConfig':{'title':_0x2d93de(0x14f),'description':_0x2d93de(0x153),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x2d93de(0x16a),'apiKeyHint':_0x2d93de(0x15e),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x2d93de(0x16e),'serverEndpoint':_0x2d93de(0x169),'sessionId':_0x2d93de(0x156),'maxRetries':_0x2d93de(0x167),'save':'保存配置','saving':_0x2d93de(0x161),'note1':_0x2d93de(0x162),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x2d93de(0x165),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x2d93de(0x160)},'validation':{'apiKeyRequired':_0x2d93de(0x15b),'apiKeyTooShort':_0x2d93de(0x174),'invalidConfig':_0x2d93de(0x173),'invalidApiKey':_0x2d93de(0x15d)},'connectionStatus':{'disconnected':_0x2d93de(0x159),'connecting':_0x2d93de(0x14e),'connected':_0x2d93de(0x15a),'failed':_0x2d93de(0x14c),'retrying':_0x2d93de(0x154)},'connectionError':{'missingApiKey':_0x2d93de(0x17a),'invalidApiKey':_0x2d93de(0x14b),'sessionOccupied':_0x2d93de(0x168),'networkError':_0x2d93de(0x172),'maxRetriesExceeded':_0x2d93de(0x157)}}};export{e as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x33ba23=_0x4ef7;(function(_0x3614a2,_0x6c1ae4){const _0x1538a5=_0x4ef7,_0x5c6730=_0x3614a2();while(!![]){try{const _0x5d758c=parseInt(_0x1538a5(0x1e4))/0x1+parseInt(_0x1538a5(0x1f0))/0x2+-parseInt(_0x1538a5(0x1da))/0x3+parseInt(_0x1538a5(0x1f5))/0x4*(-parseInt(_0x1538a5(0x1ec))/0x5)+-parseInt(_0x1538a5(0x1fe))/0x6*(-parseInt(_0x1538a5(0x1ff))/0x7)+parseInt(_0x1538a5(0x1d8))/0x8+-parseInt(_0x1538a5(0x1eb))/0x9;if(_0x5d758c===_0x6c1ae4)break;else _0x5c6730['push'](_0x5c6730['shift']());}catch(_0x53f9ad){_0x5c6730['push'](_0x5c6730['shift']());}}}(_0xa883,0x661b1));const e={'mcpStatus':{'disconnected':_0x33ba23(0x1d9),'connecting':_0x33ba23(0x1e0),'connected':_0x33ba23(0x1e9),'failed':_0x33ba23(0x1d2),'retrying':_0x33ba23(0x1ea),'unknown':_0x33ba23(0x1e8),'missingApiKey':_0x33ba23(0x1d3),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x33ba23(0x1f2),'maxRetriesExceeded':_0x33ba23(0x1d6),'clickToConnect':_0x33ba23(0x1de),'clickToConfigure':_0x33ba23(0x1fa)},'mcpConfig':{'title':_0x33ba23(0x1ee),'description':_0x33ba23(0x1ed),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x33ba23(0x1d1),'apiKeyHint':_0x33ba23(0x1e2),'enableAuth':_0x33ba23(0x1d7),'enableAuthHint':_0x33ba23(0x1f3),'connectionInfo':_0x33ba23(0x1dd),'serverEndpoint':_0x33ba23(0x1dc),'sessionId':_0x33ba23(0x1e6),'maxRetries':_0x33ba23(0x1e1),'save':_0x33ba23(0x1fb),'saving':_0x33ba23(0x200),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x33ba23(0x1db),'configSaved':_0x33ba23(0x1f1),'configError':_0x33ba23(0x201),'apiApplyInfo':{'title':_0x33ba23(0x1df),'description':_0x33ba23(0x1d4),'univerAiLabel':_0x33ba23(0x1e3),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x33ba23(0x1d5),'invalidConfig':_0x33ba23(0x1f6),'invalidApiKey':_0x33ba23(0x1e5)},'connectionStatus':{'disconnected':_0x33ba23(0x1f8),'connecting':_0x33ba23(0x1fd),'connected':'Connected','failed':_0x33ba23(0x1f9),'retrying':_0x33ba23(0x1f4)},'connectionError':{'missingApiKey':_0x33ba23(0x1f7),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x33ba23(0x1ef),'networkError':_0x33ba23(0x1fc),'maxRetriesExceeded':_0x33ba23(0x1e7)}}},n=e;function _0x4ef7(_0x2310f9,_0x389f54){const _0xa8836b=_0xa883();return _0x4ef7=function(_0x4ef712,_0x15b8bf){_0x4ef712=_0x4ef712-0x1d1;let _0x3ab2a7=_0xa8836b[_0x4ef712];return _0x3ab2a7;},_0x4ef7(_0x2310f9,_0x389f54);}function _0xa883(){const _0x164e87=['Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','420342lzkenK','Configuration\x20saved\x20successfully','MCP:\x20Network\x20Error','Enable\x20authentication\x20for\x20secure\x20connections','Retrying...','118188UqfDBk','Invalid\x20configuration','API\x20key\x20is\x20required\x20to\x20connect','Disconnected','Connection\x20Failed','Click\x20to\x20configure\x20MCP','Save\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connecting...','6JuwJaK','2989MxDmsK','Saving...','Failed\x20to\x20save\x20configuration','Enter\x20your\x20API\x20key','MCP\x20Connection\x20Failed','MCP:\x20API\x20Key\x20Missing','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Max\x20Retries\x20Exceeded','Enable\x20Authentication','3231024RHuDFm','MCP\x20Disconnected','1187886trhiql','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Server\x20Endpoint','Connection\x20Information','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','MCP\x20Connecting...','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Univer\x20AI\x20Console','758837VFvBvt','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session\x20ID','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','MCP\x20Connected','MCP\x20Retrying...','1841058uFFlht','60HqpRyB','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Configuration'];_0xa883=function(){return _0x164e87;};return _0xa883();}export{n as default};
|
package/lib/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.univer-absolute{position:absolute}.univer-relative{position:relative}.univer-right-3{right:.75rem}.univer-top-3{top:.75rem}.univer-m-0{margin:0}.univer-mb-1{margin-bottom:.25rem}.univer-mb-2{margin-bottom:.5rem}.univer-mb-3{margin-bottom:.75rem}.univer-ml-1{margin-left:.25rem}.univer-mr-2{margin-right:.5rem}.univer-mt-1\.5{margin-top:.375rem}.univer-mt-2{margin-top:.5rem}.univer-flex{display:flex}.univer-inline-flex{display:inline-flex}.univer-h-10{height:2.5rem}.univer-h-2{height:.5rem}.univer-h-4{height:1rem}.univer-h-6{height:1.5rem}.univer-h-8{height:2rem}.univer-max-h-\[80vh\]{max-height:80vh}.univer-min-h-\[320px\]{min-height:320px}.univer-w-10{width:2.5rem}.univer-w-2{width:.5rem}.univer-w-4{width:1rem}.univer-w-6{width:1.5rem}.univer-w-8{width:2rem}.univer-w-full{width:100%}.univer-min-w-0{min-width:0px}.univer-flex-1{flex:1 1 0%}.univer-flex-shrink-0{flex-shrink:0}.univer-cursor-pointer{cursor:pointer}.univer-flex-col{flex-direction:column}.univer-flex-wrap{flex-wrap:wrap}.univer-items-start{align-items:flex-start}.univer-items-center{align-items:center}.univer-justify-center{justify-content:center}.univer-justify-between{justify-content:space-between}.univer-gap-1{gap:.25rem}.univer-gap-2{gap:.5rem}.univer-gap-3{gap:.75rem}.univer-space-y-1>:not([hidden])~:not([hidden]){--univer-tw-space-y-reverse: 0;margin-top:calc(.25rem * (1 - var(--univer-tw-space-y-reverse)));margin-top:.25rem;margin-top:calc(.25rem * calc(1 - var(--univer-tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(.25rem * var(--univer-tw-space-y-reverse))}.univer-space-y-2>:not([hidden])~:not([hidden]){--univer-tw-space-y-reverse: 0;margin-top:calc(.5rem * (1 - var(--univer-tw-space-y-reverse)));margin-top:.5rem;margin-top:calc(.5rem * calc(1 - var(--univer-tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(.5rem * var(--univer-tw-space-y-reverse))}.univer-space-y-3>:not([hidden])~:not([hidden]){--univer-tw-space-y-reverse: 0;margin-top:calc(.75rem * (1 - var(--univer-tw-space-y-reverse)));margin-top:.75rem;margin-top:calc(.75rem * calc(1 - var(--univer-tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(.75rem * var(--univer-tw-space-y-reverse))}.univer-space-y-5>:not([hidden])~:not([hidden]){--univer-tw-space-y-reverse: 0;margin-top:calc(1.25rem * (1 - var(--univer-tw-space-y-reverse)));margin-top:1.25rem;margin-top:calc(1.25rem * calc(1 - var(--univer-tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(1.25rem * var(--univer-tw-space-y-reverse))}.univer-overflow-auto{overflow:auto}.univer-break-all{word-break:break-all}.univer-rounded{border-radius:.25rem}.univer-rounded-full{border-radius:9999px}.univer-rounded-lg{border-radius:.5rem}.univer-rounded-md{border-radius:.375rem}.univer-border{border-width:1px}.univer-border-b{border-bottom-width:1px}.\!univer-border-green-600{border-color:var(--univer-green-600)!important}.univer-border-blue-200{border-color:var(--univer-blue-200)}.univer-border-gray-100{border-color:var(--univer-gray-100)}.univer-border-gray-200{border-color:var(--univer-gray-200)}.univer-border-green-200{border-color:var(--univer-green-200)}.univer-border-purple-300{border-color:var(--univer-purple-300)}.univer-border-red-200{border-color:var(--univer-red-200)}.\!univer-bg-green-600{background-color:var(--univer-green-600)!important}.univer-bg-blue-100{background-color:var(--univer-blue-100)}.univer-bg-blue-50{background-color:var(--univer-blue-50)}.univer-bg-blue-500{background-color:var(--univer-blue-500)}.univer-bg-gray-50{background-color:var(--univer-gray-50)}.univer-bg-gray-500{background-color:var(--univer-gray-500)}.univer-bg-green-50{background-color:var(--univer-green-50)}.univer-bg-green-500{background-color:var(--univer-green-500)}.univer-bg-red-50{background-color:var(--univer-red-50)}.univer-bg-red-500{background-color:var(--univer-red-500)}.univer-bg-white{background-color:var(--univer-white)}.univer-bg-gradient-to-r{background-image:linear-gradient(to right,var(--univer-tw-gradient-stops))}.univer-from-blue-50{--univer-tw-gradient-from: var(--univer-blue-50) var(--univer-tw-gradient-from-position);--univer-tw-gradient-to: rgba(255, 255, 255, 0) var(--univer-tw-gradient-to-position);--univer-tw-gradient-stops: var(--univer-tw-gradient-from), var(--univer-tw-gradient-to) }.univer-to-indigo-50{--univer-tw-gradient-to: var(--univer-indigo-50) var(--univer-tw-gradient-to-position) }.univer-p-3{padding:.75rem}.univer-p-4{padding:1rem}.univer-px-2{padding-left:.5rem;padding-right:.5rem}.univer-px-3{padding-left:.75rem;padding-right:.75rem}.univer-px-6{padding-left:1.5rem;padding-right:1.5rem}.univer-py-1{padding-top:.25rem;padding-bottom:.25rem}.univer-py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.univer-py-2{padding-top:.5rem;padding-bottom:.5rem}.univer-py-3{padding-top:.75rem;padding-bottom:.75rem}.univer-py-4{padding-top:1rem;padding-bottom:1rem}.univer-py-5{padding-top:1.25rem;padding-bottom:1.25rem}.univer-pr-8{padding-right:2rem}.univer-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.univer-text-sm{font-size:.875rem;line-height:1.25rem}.univer-text-xl{font-size:1.25rem;line-height:1.75rem}.univer-text-xs{font-size:.75rem;line-height:1rem}.univer-font-medium{font-weight:500}.univer-font-semibold{font-weight:600}.univer-leading-8{line-height:2rem}.\!univer-text-white{color:var(--univer-white)!important}.univer-text-blue-500{color:var(--univer-blue-500)}.univer-text-blue-600{color:var(--univer-blue-600)}.univer-text-blue-700{color:var(--univer-blue-700)}.univer-text-gray-400{color:var(--univer-gray-400)}.univer-text-gray-500{color:var(--univer-gray-500)}.univer-text-gray-600{color:var(--univer-gray-600)}.univer-text-gray-700{color:var(--univer-gray-700)}.univer-text-gray-800{color:var(--univer-gray-800)}.univer-text-green-500{color:var(--univer-green-500)}.univer-text-green-600{color:var(--univer-green-600)}.univer-text-purple-600{color:var(--univer-purple-600)}.univer-text-red-500{color:var(--univer-red-500)}.univer-text-red-600{color:var(--univer-red-600)}.univer-text-red-800{color:var(--univer-red-800)}.univer-text-white{color:var(--univer-white)}.univer-text-yellow-500{color:var(--univer-yellow-500)}.univer-shadow-sm{--univer-tw-shadow: 0px 1px 2px 0px rgba(30, 40, 77, .08);--univer-tw-shadow-colored: 0px 1px 2px 0px var(--univer-tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 1px 2px #1e284d14;box-shadow:var(--univer-tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--univer-tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--univer-tw-shadow)}.univer-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.univer-duration-200{transition-duration:.2s}.hover\:univer-scale-110:hover{--univer-tw-scale-x: 1.1;--univer-tw-scale-y: 1.1;transform:translate(var(--univer-tw-translate-x),var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skew(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(1.1) scaleY(1.1);transform:translate(var(--univer-tw-translate-x),var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skew(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y))}.hover\:\!univer-border-green-700:hover{border-color:var(--univer-green-700)!important}.hover\:univer-border-purple-400:hover{border-color:var(--univer-purple-400)}.hover\:\!univer-bg-green-700:hover{background-color:var(--univer-green-700)!important}.hover\:univer-bg-purple-50:hover{background-color:var(--univer-purple-50)}.hover\:univer-text-blue-800:hover{color:var(--univer-blue-800)}.hover\:univer-text-gray-700:hover{color:var(--univer-gray-700)}.hover\:univer-opacity-80:hover{opacity:.8}.hover\:univer-shadow-md:hover{--univer-tw-shadow: 0px 1px 6px -2px rgba(30, 40, 77, .08), 0px 2px 6px -1px rgba(30, 40, 77, .1);--univer-tw-shadow-colored: 0px 1px 6px -2px var(--univer-tw-shadow-color), 0px 2px 6px -1px var(--univer-tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 1px 6px -2px #1e284d14,0 2px 6px -1px #1e284d1a;box-shadow:var(--univer-tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)),var(--univer-tw-ring-shadow, 0 0 rgba(0,0,0,0)),var(--univer-tw-shadow)}.disabled\:\!univer-border-gray-300:disabled{border-color:var(--univer-gray-300)!important}.disabled\:\!univer-bg-gray-300:disabled{background-color:var(--univer-gray-300)!important}.disabled\:\!univer-text-gray-500:disabled{color:var(--univer-gray-500)!important}.dark\:\!univer-text-gray-200:where(.univer-dark,.univer-dark *){color:var(--univer-gray-200)!important}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x18b954=_0x29ae;(function(_0x33312e,_0x500309){var _0x3ace69=_0x29ae,_0x431c6d=_0x33312e();while(!![]){try{var _0x38a235=-parseInt(_0x3ace69(0x12a))/0x1+parseInt(_0x3ace69(0x109))/0x2+-parseInt(_0x3ace69(0xdc))/0x3+-parseInt(_0x3ace69(0x16f))/0x4+parseInt(_0x3ace69(0x108))/0x5*(-parseInt(_0x3ace69(0xc9))/0x6)+-parseInt(_0x3ace69(0x8b))/0x7*(-parseInt(_0x3ace69(0xaa))/0x8)+parseInt(_0x3ace69(0x137))/0x9*(parseInt(_0x3ace69(0x118))/0xa);if(_0x38a235===_0x500309)break;else _0x431c6d['push'](_0x431c6d['shift']());}catch(_0x4dfd47){_0x431c6d['push'](_0x431c6d['shift']());}}}(_0x3f04,0x204b4));var oe=Object[_0x18b954(0x13e)],se=(_0x1b6a2c,_0x4a3984,_0x2961ce)=>_0x4a3984 in _0x1b6a2c?oe(_0x1b6a2c,_0x4a3984,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2961ce}):_0x1b6a2c[_0x4a3984]=_0x2961ce,C=(_0x1284fa,_0x350a52,_0x48abcb)=>se(_0x1284fa,typeof _0x350a52!=_0x18b954(0x77)?_0x350a52+'':_0x350a52,_0x48abcb);import{LocaleService as _0x1cc567,Inject as _0x10bf36,Injector as _0x48abb6,IConfigService as _0x3aa9b6,ILocalStorageService as _0xaed26f,ILogService as _0x1ed053,Disposable as _0x1d7a10,CommandType as _0x289b76,ICommandService as _0x110d41,DependentOn as _0x597ce7,Plugin as _0x48b334,merge as _0x121b24}from'@univerjs/core';import{jsxs as _0x14e4ab,jsx as _0x42796a}from'react/jsx-runtime';import{MCP_PLUGIN_CONFIG_KEY as _0x4973a4,MCPConnectionController as _0x4be806,MCPConnectionStatus as _0x3261f5,MCPConnectionError as _0x4270eb,UniverMCPPlugin as _0xe91f0c}from'@univerjs-pro/mcp';import{Input as _0x3490da,Button as _0xd5cb7a,MessageType as _0x5a09c0,Tooltip as _0x75055,clsx as _0x137af3}from'@univerjs/design';import{useDependency as _0x44da42,IUIPartsService as _0x37c99c,IDialogService as _0x3a9698,IMessageService as _0x2fb0f5,ComponentManager as _0x59e7bf,connectInjector as _0x26e18f,useObservable as _0x2b82ce,BuiltInUIPart as _0x1fa0bb,MenuItemType as _0x21d199,RibbonStartGroup as _0x2b2294,IMenuManagerService as _0x4effab}from'@univerjs/ui';import{BehaviorSubject as _0x1c6526}from'rxjs';import{useState as _0x40e668,useCallback as _0x4dad47,forwardRef as _0x523c89,useRef as _0x21626b,createElement as _0x3eeede}from'react';function be(_0x3dde29){var _0x4b87a8=_0x18b954;const {mcpCoreConfig:_0xc2685a,onSave:_0x325201,loading:_0x4bba86=!0x1,config:_0x28e9a5}=_0x3dde29,_0xbcb16f=_0x44da42(_0x1cc567),[_0x2c70a9,_0x3b1246]=_0x40e668(_0xc2685a[_0x4b87a8(0x10d)]||''),_0x354ec9=!0x0,_0x28ce1e=_0x4dad47(()=>{var _0x2da29d=_0x4b87a8;const _0x15d66e={..._0xc2685a,'apiKey':_0x2c70a9[_0x2da29d(0x154)](),'enableAuth':_0x354ec9};_0x325201(_0x15d66e);},[_0xc2685a,_0x2c70a9,_0x354ec9,_0x325201]),_0x26b8b3=_0x2c70a9[_0x4b87a8(0x154)]()['length']>0x0;return _0x14e4ab(_0x4b87a8(0x7f),{'className':_0x4b87a8(0x14f),'children':[_0x42796a(_0x4b87a8(0x7f),{'className':_0x4b87a8(0x11d),'children':_0x14e4ab(_0x4b87a8(0x7f),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x42796a(_0x4b87a8(0x7f),{'className':_0x4b87a8(0x100),'children':_0x42796a(_0x4b87a8(0x120),{'className':_0x4b87a8(0x139),'children':'⚙'})}),_0x42796a(_0x4b87a8(0x7f),{'children':_0x42796a('p',{'className':_0x4b87a8(0xbb),'children':_0xbcb16f['t']('mcpConfig.description')})})]})}),_0x42796a(_0x4b87a8(0x7f),{'className':_0x4b87a8(0xb7),'children':_0x14e4ab(_0x4b87a8(0x7f),{'className':_0x4b87a8(0xb4),'children':[_0x14e4ab(_0x4b87a8(0x7f),{'className':'univer-space-y-2','children':[_0x14e4ab('label',{'className':_0x4b87a8(0x175),'children':[_0x42796a(_0x4b87a8(0x120),{'children':'🔑'}),'\x20',_0xbcb16f['t']('mcpConfig.apiKey'),_0x42796a(_0x4b87a8(0x120),{'className':_0x4b87a8(0xe9),'children':'*'})]}),_0x42796a(_0x3490da,{'type':_0x4b87a8(0xe7),'placeholder':_0xbcb16f['t'](_0x4b87a8(0xea)),'value':_0x2c70a9,'onChange':_0x3b1246,'disabled':_0x4bba86,'autoComplete':_0x4b87a8(0x163)}),_0x42796a('p',{'className':_0x4b87a8(0xec),'children':_0xbcb16f['t']('mcpConfig.apiKeyHint')})]}),_0x28e9a5[_0x4b87a8(0x15a)]&&_0x14e4ab('div',{'className':_0x4b87a8(0xce),'children':[_0x14e4ab('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x42796a('span',{'children':'🔗'}),'\x20',_0xbcb16f['t'](_0x4b87a8(0x15f))]}),_0x14e4ab('div',{'className':_0x4b87a8(0xbf),'children':[_0x14e4ab('div',{'className':_0x4b87a8(0x7b),'children':[_0x42796a(_0x4b87a8(0x7f),{'className':_0x4b87a8(0xe6)}),_0x14e4ab(_0x4b87a8(0x7f),{'className':_0x4b87a8(0xc5),'children':[_0x42796a(_0x4b87a8(0x7f),{'className':_0x4b87a8(0xb9),'children':_0xbcb16f['t'](_0x4b87a8(0x11c))}),_0x42796a(_0x4b87a8(0x151),{'className':'univer-break-all\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-blue-600','children':_0xc2685a[_0x4b87a8(0x144)]||_0x4b87a8(0xc2)})]})]}),_0x14e4ab(_0x4b87a8(0x7f),{'className':_0x4b87a8(0x7b),'children':[_0x42796a('div',{'className':_0x4b87a8(0x138)}),_0x14e4ab(_0x4b87a8(0x7f),{'className':_0x4b87a8(0xc5),'children':[_0x42796a(_0x4b87a8(0x7f),{'className':'univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xbcb16f['t'](_0x4b87a8(0x91))}),_0x42796a(_0x4b87a8(0x151),{'className':'univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-gray-700','children':_0xc2685a[_0x4b87a8(0xcf)]||'default'})]})]})]})]}),_0x42796a(_0xd5cb7a,{'onClick':_0x28ce1e,'disabled':!_0x26b8b3||_0x4bba86,'className':_0x4b87a8(0x15d),'children':_0x4bba86?_0x14e4ab(_0x4b87a8(0x120),{'children':['⟲',_0xbcb16f['t']('mcpConfig.saving')]}):_0x14e4ab('span',{'children':['✓',_0xbcb16f['t']('mcpConfig.save')]})}),_0x42796a(_0x4b87a8(0x7f),{'className':_0x4b87a8(0x8f),'children':_0x14e4ab(_0x4b87a8(0x7f),{'className':_0x4b87a8(0x80),'children':[_0x42796a('span',{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x14e4ab(_0x4b87a8(0x7f),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x42796a(_0x4b87a8(0x7f),{'className':_0x4b87a8(0x147),'children':'Configuration\x20Notes:'}),_0x14e4ab(_0x4b87a8(0x7f),{'children':['•',_0xbcb16f['t'](_0x4b87a8(0xe0))]}),_0x14e4ab(_0x4b87a8(0x7f),{'children':['•',_0xbcb16f['t'](_0x4b87a8(0x174))]})]})]})})]})})]});}const K=_0x18b954(0xac),H={'showDeveloperTools':!0x1};var Me=Object['getOwnPropertyDescriptor'],Ee=(_0x2bf0b2,_0x445c33,_0x1fa28d,_0x1b4cbd)=>{var _0x4af1c1=_0x18b954;for(var _0x5e7a80=_0x1b4cbd>0x1?void 0x0:_0x1b4cbd?Me(_0x445c33,_0x1fa28d):_0x445c33,_0x102828=_0x2bf0b2[_0x4af1c1(0x11b)]-0x1,_0x52928f;_0x102828>=0x0;_0x102828--)(_0x52928f=_0x2bf0b2[_0x102828])&&(_0x5e7a80=_0x52928f(_0x5e7a80)||_0x5e7a80);return _0x5e7a80;},f=(_0x56059a,_0x360fee)=>(_0x2dcc5c,_0xea4ece)=>_0x360fee(_0x2dcc5c,_0xea4ece,_0x56059a);const w='mcp.apiKey',D=_0x18b954(0xe2);let S=class extends _0x1d7a10{constructor(_0x495e97,_0x6957e0,_0x53f79e,_0x2c63bf,_0x53168d,_0x298f13,_0x5076dd,_0xc6b56d,_0x15d983){var _0x5870f8=_0x18b954;super(),C(this,_0x5870f8(0x135),new _0x1c6526(!0x1)),C(this,'_mcpCoreConfig$',new _0x1c6526({})),C(this,_0x5870f8(0xd7),new _0x1c6526({})),C(this,_0x5870f8(0x14c),async _0x4000ab=>{var _0x13e999=_0x5870f8;this[_0x13e999(0x135)]['next'](!0x0);try{const _0x183ed9=await this[_0x13e999(0xbd)](_0x4000ab);if(!_0x183ed9[_0x13e999(0x136)]){this[_0x13e999(0x126)][_0x13e999(0x165)]({'type':_0x5a09c0[_0x13e999(0x143)],'content':_0x183ed9[_0x13e999(0xdd)]||this[_0x13e999(0xe5)]['t'](_0x13e999(0xba))});return;}_0x4000ab[_0x13e999(0x10d)]?await this[_0x13e999(0x78)][_0x13e999(0x79)](w,_0x4000ab[_0x13e999(0x10d)][_0x13e999(0x154)]()):await this[_0x13e999(0x78)]['removeItem'](w),this[_0x13e999(0xaf)][_0x13e999(0x16d)](_0x4973a4,{..._0x4000ab,'apiKey':_0x4000ab['apiKey'][_0x13e999(0x154)]()}),this[_0x13e999(0x103)][_0x13e999(0x101)]({..._0x4000ab,'apiKey':_0x4000ab[_0x13e999(0x10d)][_0x13e999(0x154)]()}),this[_0x13e999(0x126)][_0x13e999(0x165)]({'type':_0x5a09c0[_0x13e999(0x146)],'content':this[_0x13e999(0xe5)]['t'](_0x13e999(0x16c))}),setTimeout(()=>{var _0x31db83=_0x13e999;this[_0x31db83(0x112)][_0x31db83(0xd2)](D);},0x320);}catch(_0x29831a){this[_0x13e999(0x9b)][_0x13e999(0x16a)](_0x13e999(0x149),_0x29831a),this[_0x13e999(0x126)][_0x13e999(0x165)]({'type':_0x5a09c0['Error'],'content':this[_0x13e999(0xe5)]['t'](_0x13e999(0x98))});}finally{this[_0x13e999(0x135)][_0x13e999(0x101)](!0x1);}}),(this[_0x5870f8(0xca)]=_0x495e97,this[_0x5870f8(0xad)]=_0x6957e0,this[_0x5870f8(0xaf)]=_0x53f79e,this['_localStorageService']=_0x2c63bf,this['_dialogService']=_0x53168d,this[_0x5870f8(0x126)]=_0x298f13,this[_0x5870f8(0x86)]=_0x5076dd,this[_0x5870f8(0xe5)]=_0xc6b56d,this[_0x5870f8(0x9b)]=_0x15d983,this[_0x5870f8(0x13d)](),this[_0x5870f8(0x122)](),this[_0x5870f8(0x10f)]());}['showConfigPanel'](){var _0x92b3c9=_0x18b954;this[_0x92b3c9(0x112)]['open']({'id':D,'title':{'title':this['_localeService']['t'](_0x92b3c9(0x15c))},'children':{'label':_0x92b3c9(0x7d)},'width':0x1e0,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x592ab2=_0x92b3c9;this[_0x592ab2(0x112)][_0x592ab2(0xd2)](D);}});}['getCurrentConfig'](){var _0x5728fc=_0x18b954;return this[_0x5728fc(0x103)]['value'];}[_0x18b954(0x10f)](){var _0x322a83=_0x18b954;this[_0x322a83(0x92)](this[_0x322a83(0x86)][_0x322a83(0xc1)](_0x322a83(0x7d),this[_0x322a83(0x107)]()));}[_0x18b954(0x107)](){var _0x1459fc=_0x18b954;return _0x26e18f(()=>_0x42796a(be,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x1459fc(0x103)][_0x1459fc(0xc0)],'onSave':this[_0x1459fc(0x14c)],'loading':this[_0x1459fc(0x135)]['value']}),this[_0x1459fc(0xca)]);}[_0x18b954(0x13d)](){var _0x288262=_0x18b954;this[_0x288262(0x92)](this[_0x288262(0xaf)][_0x288262(0xfd)](_0x4973a4)[_0x288262(0x16e)](_0x4e46c3=>{var _0x511920=_0x288262;this[_0x511920(0x103)][_0x511920(0x101)](_0x4e46c3||{});}));const _0x69794b=this[_0x288262(0xaf)][_0x288262(0x155)](_0x4973a4);this[_0x288262(0x103)][_0x288262(0x101)](_0x69794b||{}),this[_0x288262(0x92)](this[_0x288262(0xaf)][_0x288262(0xfd)](K)[_0x288262(0x16e)](_0x59833a=>{var _0x7047b4=_0x288262;this['_config$'][_0x7047b4(0x101)](_0x59833a||{});}));const _0x1090f3=this[_0x288262(0xaf)][_0x288262(0x155)](K);this[_0x288262(0xd7)]['next'](_0x1090f3||{});}async[_0x18b954(0x122)](){var _0x2c34ec=_0x18b954;const _0x218786=await this[_0x2c34ec(0x78)][_0x2c34ec(0xf5)](w);if(_0x218786){const _0x552745={...this[_0x2c34ec(0x103)][_0x2c34ec(0xc0)],'apiKey':_0x218786};this[_0x2c34ec(0xaf)][_0x2c34ec(0x16d)](_0x4973a4,_0x552745),this[_0x2c34ec(0x103)][_0x2c34ec(0x101)](_0x552745);}}async[_0x18b954(0xbd)](_0x52d73c){var _0x1048f5=_0x18b954;if(!_0x52d73c[_0x1048f5(0x10d)]||_0x52d73c[_0x1048f5(0x10d)][_0x1048f5(0x154)]()[_0x1048f5(0x11b)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x52d73c['apiKey'][_0x1048f5(0x154)]()[_0x1048f5(0x11b)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1048f5(0xe5)]['t'](_0x1048f5(0x171))};try{const _0x1ff94f=await this[_0x1048f5(0xca)][_0x1048f5(0xc6)](_0x4be806)[_0x1048f5(0x10a)](_0x52d73c[_0x1048f5(0x10d)]['trim']());return _0x1ff94f['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1ff94f[_0x1048f5(0x16a)]||this['_localeService']['t'](_0x1048f5(0x152))};}catch(_0x4d20a8){return console[_0x1048f5(0x15b)](_0x1048f5(0xd0),_0x4d20a8),{'isValid':!0x0};}}};S=Ee([f(0x0,_0x10bf36(_0x48abb6)),f(0x1,_0x37c99c),f(0x2,_0x3aa9b6),f(0x3,_0xaed26f),f(0x4,_0x3a9698),f(0x5,_0x2fb0f5),f(0x6,_0x10bf36(_0x59e7bf)),f(0x7,_0x10bf36(_0x1cc567)),f(0x8,_0x1ed053)],S);const G={'id':'mcp-ui.command.openConfigPanel','type':_0x289b76[_0x18b954(0xc3)],'handler':async(_0x4ad38a,_0x4977c7)=>(_0x4ad38a[_0x18b954(0xc6)](S)[_0x18b954(0x14b)](),!0x0)};var v=function(){var _0x338a19=_0x18b954;return v=Object[_0x338a19(0x7a)]||function(_0x1bc342){var _0x4a504a=_0x338a19;for(var _0x4d4bbf,_0xc07da6=0x1,_0x2e46fc=arguments['length'];_0xc07da6<_0x2e46fc;_0xc07da6++){_0x4d4bbf=arguments[_0xc07da6];for(var _0xa49dd5 in _0x4d4bbf)Object['prototype']['hasOwnProperty'][_0x4a504a(0x12c)](_0x4d4bbf,_0xa49dd5)&&(_0x1bc342[_0xa49dd5]=_0x4d4bbf[_0xa49dd5]);}return _0x1bc342;},v[_0x338a19(0xf0)](this,arguments);},Oe=function(_0x30e2a7,_0x55b603){var _0x5c1982=_0x18b954,_0x45c69a={};for(var _0x79b2d0 in _0x30e2a7)Object[_0x5c1982(0x9d)][_0x5c1982(0x14d)][_0x5c1982(0x12c)](_0x30e2a7,_0x79b2d0)&&_0x55b603[_0x5c1982(0xfc)](_0x79b2d0)<0x0&&(_0x45c69a[_0x79b2d0]=_0x30e2a7[_0x79b2d0]);if(_0x30e2a7!=null&&typeof Object[_0x5c1982(0x83)]==_0x5c1982(0x14a)){for(var _0x408eae=0x0,_0x79b2d0=Object['getOwnPropertySymbols'](_0x30e2a7);_0x408eae<_0x79b2d0[_0x5c1982(0x11b)];_0x408eae++)_0x55b603[_0x5c1982(0xfc)](_0x79b2d0[_0x408eae])<0x0&&Object[_0x5c1982(0x9d)][_0x5c1982(0x167)][_0x5c1982(0x12c)](_0x30e2a7,_0x79b2d0[_0x408eae])&&(_0x45c69a[_0x79b2d0[_0x408eae]]=_0x30e2a7[_0x79b2d0[_0x408eae]]);}return _0x45c69a;},F=_0x523c89(function(_0x28b882,_0x35f769){var _0x140c02=_0x18b954,_0x52c83c=_0x28b882[_0x140c02(0xcd)],_0x1be505=_0x28b882['id'],_0x27750e=_0x28b882['className'],_0x3ffa9e=_0x28b882['extend'],_0x32b699=Oe(_0x28b882,['icon','id',_0x140c02(0xf2),_0x140c02(0xa3)]),_0x36224e='univerjs-icon\x20univerjs-icon-'[_0x140c02(0x72)](_0x1be505,'\x20')['concat'](_0x27750e||'')[_0x140c02(0x154)](),_0x36e060=_0x21626b('_'[_0x140c02(0x72)](Ke()));return Q(_0x52c83c,''[_0x140c02(0x72)](_0x1be505),{'defIds':_0x52c83c[_0x140c02(0x10e)],'idSuffix':_0x36e060[_0x140c02(0xa9)]},v({'ref':_0x35f769,'className':_0x36224e},_0x32b699),_0x3ffa9e);});function Q(_0x47cc60,_0x12cd9b,_0x73a555,_0x508235,_0x4c4d3d){var _0x1a0652=_0x18b954;return _0x3eeede(_0x47cc60[_0x1a0652(0x162)],v(v({'key':_0x12cd9b},we(_0x47cc60,_0x73a555,_0x4c4d3d)),_0x508235),(De(_0x47cc60,_0x73a555)[_0x1a0652(0x97)]||[])['map'](function(_0x31fe24,_0x3f816a){var _0x35f089=_0x1a0652;return Q(_0x31fe24,''[_0x35f089(0x72)](_0x12cd9b,'-')[_0x35f089(0x72)](_0x47cc60['tag'],'-')['concat'](_0x3f816a),_0x73a555,void 0x0,_0x4c4d3d);}));}function we(_0x2afd6f,_0x26f9d9,_0x9adf95){var _0x325ee7=_0x18b954,_0x2a47c4=v({},_0x2afd6f['attrs']);_0x9adf95!=null&&_0x9adf95[_0x325ee7(0xa4)]&&_0x2a47c4[_0x325ee7(0x12b)]===_0x325ee7(0xa4)&&(_0x2a47c4['fill']=_0x9adf95['colorChannel1']),_0x2afd6f[_0x325ee7(0x162)]===_0x325ee7(0x102)&&_0x2a47c4['id']&&(_0x2a47c4['id']=_0x2a47c4['id']+_0x26f9d9[_0x325ee7(0xa5)]),Object['entries'](_0x2a47c4)['forEach'](function(_0x4c4cdf){var _0x15b44c=_0x325ee7,_0x1cf7aa=_0x4c4cdf[0x0],_0x4a9bd7=_0x4c4cdf[0x1];_0x1cf7aa==='mask'&&typeof _0x4a9bd7=='string'&&(_0x2a47c4[_0x1cf7aa]=_0x4a9bd7[_0x15b44c(0xab)](/url\(#(.*)\)/,_0x15b44c(0xfe)[_0x15b44c(0x72)](_0x26f9d9[_0x15b44c(0xa5)],')')));});var _0x48d1cd=_0x26f9d9[_0x325ee7(0x10e)];return!_0x48d1cd||_0x48d1cd['length']===0x0||(_0x2afd6f[_0x325ee7(0x162)]===_0x325ee7(0x88)&&_0x2a47c4[_0x325ee7(0xda)]&&(_0x2a47c4[_0x325ee7(0xda)]=_0x2a47c4[_0x325ee7(0xda)]+_0x26f9d9['idSuffix']),Object['entries'](_0x2a47c4)[_0x325ee7(0xb2)](function(_0x2f3427){var _0x467377=_0x325ee7,_0x57c504=_0x2f3427[0x0],_0x1c95f2=_0x2f3427[0x1];typeof _0x1c95f2==_0x467377(0x9c)&&(_0x2a47c4[_0x57c504]=_0x1c95f2[_0x467377(0xab)](/url\(#(.*)\)/,_0x467377(0xfe)[_0x467377(0x72)](_0x26f9d9[_0x467377(0xa5)],')')));})),_0x2a47c4;}function De(_0x114c3e,_0x5bde3f){var _0x4d8065=_0x18b954,_0x1b46d1,_0x639495=_0x5bde3f[_0x4d8065(0x10e)];return!_0x639495||_0x639495[_0x4d8065(0x11b)]===0x0?_0x114c3e:_0x114c3e[_0x4d8065(0x162)]===_0x4d8065(0xa8)&&(!((_0x1b46d1=_0x114c3e[_0x4d8065(0x97)])===null||_0x1b46d1===void 0x0)&&_0x1b46d1[_0x4d8065(0x11b)])?v(v({},_0x114c3e),{'children':_0x114c3e[_0x4d8065(0x97)]['map'](function(_0x406112){var _0x88fcb5=_0x4d8065;return typeof _0x406112['attrs']['id']==_0x88fcb5(0x9c)&&_0x639495&&_0x639495[_0x88fcb5(0x170)](_0x406112[_0x88fcb5(0xb6)]['id'])?v(v({},_0x406112),{'attrs':v(v({},_0x406112[_0x88fcb5(0xb6)]),{'id':_0x406112[_0x88fcb5(0xb6)]['id']+_0x5bde3f[_0x88fcb5(0xa5)]})}):_0x406112;})}):_0x114c3e;}function Ke(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}F['displayName']=_0x18b954(0x156);var $e={'tag':_0x18b954(0x11f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x18b954(0xa2)},'children':[{'tag':'g','attrs':{'clipPath':_0x18b954(0x12d)},'children':[{'tag':_0x18b954(0x16b),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x18b954(0x94),'strokeLinejoin':_0x18b954(0x94),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x18b954(0x140)},'children':[{'tag':_0x18b954(0x16b),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Z=_0x523c89(function(_0x32c6e0,_0x27cbd9){var _0x5c55c0=_0x18b954;return _0x3eeede(F,Object['assign']({},_0x32c6e0,{'id':_0x5c55c0(0xff),'ref':_0x27cbd9,'icon':$e}));});Z[_0x18b954(0x115)]=_0x18b954(0xb5);var Ae={'tag':'svg','attrs':{'xmlns':_0x18b954(0xd8),'fill':_0x18b954(0x73),'viewBox':_0x18b954(0x75),'width':_0x18b954(0xa2),'height':_0x18b954(0xa2)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x18b954(0x157),'d':_0x18b954(0xd3),'strokeLinecap':_0x18b954(0x94),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x18b954(0xa8),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x18b954(0x113)},'children':[{'tag':_0x18b954(0x16b),'attrs':{'fill':_0x18b954(0xbe),'d':'M0\x200H16V16H0z','transform':_0x18b954(0x105)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$=_0x523c89(function(_0x3bede9,_0x325c32){var _0x173fb8=_0x18b954;return _0x3eeede(F,Object['assign']({},_0x3bede9,{'id':_0x173fb8(0x81),'ref':_0x325c32,'icon':Ae}));});$[_0x18b954(0x115)]=_0x18b954(0x8e);function ee(_0x5b07fb,_0x51ab73){var _0x4def0a=_0x18b954;switch(_0x5b07fb){case _0x3261f5[_0x4def0a(0xed)]:return _0x51ab73===_0x4270eb['MISSING_API_KEY']?_0x4def0a(0xf8):_0x4def0a(0x114);case _0x3261f5['CONNECTING']:return'mcpStatus.connecting';case _0x3261f5[_0x4def0a(0x134)]:return _0x4def0a(0x153);case _0x3261f5[_0x4def0a(0x13a)]:switch(_0x51ab73){case _0x4270eb[_0x4def0a(0xb1)]:return _0x4def0a(0x104);case _0x4270eb['SESSION_ID_OCCUPIED']:return'mcpStatus.sessionOccupied';case _0x4270eb['NETWORK_ERROR']:return _0x4def0a(0xd5);case _0x4270eb[_0x4def0a(0x12f)]:return _0x4def0a(0x173);default:return'mcpStatus.failed';}case _0x3261f5[_0x4def0a(0xde)]:return'mcpStatus.retrying';default:return _0x4def0a(0xd4);}}function Te(_0x1c0c2d,_0x28aa2a,_0x39dbf2){var _0x43a689=_0x18b954;const _0x188e9e=ee(_0x1c0c2d,_0x28aa2a),_0x41f7da=_0x39dbf2['t'](_0x188e9e);return _0x1c0c2d===_0x3261f5['DISCONNECTED']&&_0x28aa2a===_0x4270eb[_0x43a689(0xa0)]?_0x41f7da+_0x43a689(0xb8)+_0x39dbf2['t'](_0x43a689(0x89)):_0x1c0c2d===_0x3261f5[_0x43a689(0x134)]?_0x41f7da+_0x43a689(0xb8)+_0x39dbf2['t'](_0x43a689(0xe1)):_0x1c0c2d===_0x3261f5[_0x43a689(0xed)]||_0x1c0c2d===_0x3261f5[_0x43a689(0x13a)]?_0x41f7da+_0x43a689(0xb8)+_0x39dbf2['t'](_0x43a689(0x159)):_0x41f7da;}function ke(_0x3e61f3){var _0x541ca7=_0x18b954;switch(_0x3e61f3){case _0x3261f5[_0x541ca7(0x134)]:return _0x541ca7(0x8d);case _0x3261f5[_0x541ca7(0xe4)]:case _0x3261f5['RETRYING']:return'univer-text-yellow-500';case _0x3261f5[_0x541ca7(0x13a)]:case _0x3261f5[_0x541ca7(0xed)]:return _0x541ca7(0xe9);default:return _0x541ca7(0xcc);}}function je(_0x2d9bcb){var _0x30a8ff=_0x18b954;const {status$:_0x195e82,error$:_0x2744d0,onConnect:_0x440b99,onDisconnect:_0x5bdc67,onConfigure:_0x40bf55}=_0x2d9bcb,_0x1d3f27=_0x2b82ce(_0x195e82,_0x3261f5['DISCONNECTED']),_0x4da1f6=_0x2b82ce(_0x2744d0,_0x4270eb['NONE']),_0x1645dc=_0x44da42(_0x1cc567),_0x2432c1=_0x1d3f27===_0x3261f5[_0x30a8ff(0x134)],_0x5b4b74=_0x1d3f27===_0x3261f5[_0x30a8ff(0xe4)]||_0x1d3f27===_0x3261f5['RETRYING'],_0x1c2855=_0x1645dc['t'](ee(_0x1d3f27,_0x4da1f6)),_0x943a39=Te(_0x1d3f27,_0x4da1f6,_0x1645dc),_0x5409d2=ke(_0x1d3f27),_0x3a05cf=_0x2432c1?_0x42796a($,{}):_0x5b4b74?_0x42796a($,{'className':_0x30a8ff(0x130)}):_0x42796a(Z,{}),_0x2382e0=_0x4dad47(()=>{_0x40bf55?_0x40bf55():_0x2432c1&&_0x5bdc67?_0x5bdc67():!_0x5b4b74&&_0x440b99&&_0x440b99();},[_0x2432c1,_0x5b4b74,_0x440b99,_0x5bdc67,_0x40bf55]),_0x45dde2=_0x40bf55||_0x2432c1&&_0x5bdc67||!_0x5b4b74&&_0x440b99;return _0x42796a(_0x75055,{'title':_0x943a39,'placement':'bottom','children':_0x14e4ab(_0x30a8ff(0x7f),{'className':_0x137af3(_0x30a8ff(0x9e),_0x5409d2,_0x45dde2&&_0x30a8ff(0x87)),'onClick':_0x45dde2?_0x2382e0:void 0x0,'children':[_0x3a05cf,_0x42796a(_0x30a8ff(0x120),{'className':'univer-hidden\x20sm:univer-inline','children':_0x1c2855})]})});}function _0x3f04(){var _0x314f2e=['Enter\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','asObservable','CONNECTED','_loading$','isValid','9DYxtdm','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-text-white','FAILED','保存配置','Save\x20Configuration','_initConfigSync','defineProperty','Configure\x20your\x20MCP\x20connection\x20settings','off-line-icon_clip0_910_343','Configuration\x20saved\x20successfully','MCP\x20Disconnected','Error','mcpServerEndpoint','点击断开\x20MCP','Success','univer-font-medium','connectionStatus$','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','function','showConfigPanel','_handleConfigSave','hasOwnProperty','_initRealConnectionListener','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','updateStatus','code','mcpConfig.validation.invalidApiKey','mcpStatus.connected','trim','getConfig','UniverIcon','currentColor','MCP\x20Connecting...','mcpStatus.clickToConnect','showDeveloperTools','warn','mcpConfig.title','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','connect','mcpConfig.connectionInfo','_initializeCommands','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','tag','off','MCP\x20Unknown\x20Status','show','MCP\x20Connected','propertyIsEnumerable','MCP\x20状态未知','MCP\x20Configuration','error','path','mcpConfig.configSaved','setConfig','subscribe','515540VPIaNB','includes','mcpConfig.validation.apiKeyTooShort','MCP\x20Retrying...','mcpStatus.maxRetriesExceeded','mcpConfig.note2','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','concat','none','add','0\x200\x2017\x2016','_menuManagerService','symbol','_localStorageService','setItem','assign','univer-flex\x20univer-items-start\x20univer-gap-3','Click\x20to\x20disconnect\x20MCP','MCPConfigPanel','_commandService','div','univer-flex\x20univer-gap-3','on-line-icon','MCP:\x20无效的\x20API\x20密钥','getOwnPropertySymbols','OTHERS','Max\x20Retries','_componentManager','\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','use','mcpStatus.clickToConfigure','配置更改将立即生效','161YgoFdB','请输入您的\x20API\x20密钥','univer-text-green-500','OnLineIcon','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MCP:\x20Network\x20Error','mcpConfig.sessionId','disposeWithMe','API\x20密钥无效,请检查密钥是否正确','round','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20重连中...','children','mcpConfig.configError','Enable\x20authentication\x20for\x20secure\x20connections','load','_logService','string','prototype','univer-flex\x20univer-items-center\x20univer-gap-1\x20univer-px-2\x20univer-py-1\x20univer-text-sm','_handleDisconnect','MISSING_API_KEY','MCP\x20已断开','1em','extend','colorChannel1','idSuffix','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','最大重试次数','defs','current','53224xxRKaT','replace','mcp-ui.config','_uiPartsService','MCP\x20连接失败','_configService','registerComponent','INVALID_API_KEY','forEach','API\x20key\x20is\x20required','univer-space-y-5','OffLineIcon','attrs','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','\x20-\x20','univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.validation.invalidConfig','univer-text-sm\x20univer-text-gray-500','[MCPConnectionUI]\x20Failed\x20to\x20get\x20connection\x20controller:','_validateConfig','white','univer-space-y-3','value','register','ws://127.0.0.1:5001/mcp-server-api/ws','COMMAND','_initializeMenus','univer-min-w-0\x20univer-flex-1','get','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','_status$','102HtfVKV','_injector','Click\x20to\x20configure\x20MCP','univer-text-gray-500','icon','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','sessionId','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','getOwnPropertyDescriptor','close','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','mcpStatus.unknown','mcpStatus.networkError','Connection\x20Information','_config$','http://www.w3.org/2000/svg','Session\x20ID','xlink:href','MCP:\x20缺少\x20API\x20密钥','134628ZimlKJ','errorMessage','RETRYING','_config','mcpConfig.note1','mcpStatus.clickToDisconnect','mcp-config-dialog','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','CONNECTING','_localeService','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-green-500','text','getStatus$','univer-text-red-500','mcpConfig.apiKeyPlaceholder','Click\x20to\x20connect\x20MCP','univer-text-xs\x20univer-text-gray-500','DISCONNECTED','配置您的\x20MCP\x20连接设置','disconnect','apply','MCP\x20连接中...','className','Saving...','API\x20Key','getItem','配置保存失败','Invalid\x20configuration','mcpStatus.missingApiKey','_initFallbackEventListener','_error$','getConnectionError','indexOf','subscribeConfigValue$','url(#$1','off-line-icon','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','next','mask','_mcpCoreConfig$','mcpStatus.invalidApiKey','translate(.97)','您的\x20API\x20密钥安全存储在本地存储中','_createConfigPanelComponent','34400baQnid','315248ZPKxpx','validateApiKey','API\x20密钥','连接信息','apiKey','defIds','_registerComponent','getError$','pluginName','_dialogService','on-line-icon_clip0_910_349','mcpStatus.disconnected','displayName','_handleConnect','BUTTON','3322070CXnSnd','registerCommand','NONE','length','mcpConfig.serverEndpoint','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','connectionError$','svg','span','[MCPConnectionUI]\x20Could\x20not\x20connect\x20to\x20MCP\x20core\x20plugin,\x20falling\x20back\x20to\x20config\x20monitoring:','_loadStoredApiKey','_handleConfigure','点击连接\x20MCP','MCP:\x20网络错误','_messageService','配置保存成功','mergeMenu','MCP:\x20Session\x20Occupied','219853myWBvT','fill','call','url(#off-line-icon_clip0_910_343)','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MAX_RETRIES_EXCEEDED','univer-animate-spin\x20univer-opacity-60'];_0x3f04=function(){return _0x314f2e;};return _0x3f04();}var Re=Object[_0x18b954(0xd1)],Le=(_0x330432,_0x1efa14,_0x5731ae,_0x2265c4)=>{var _0x30215a=_0x18b954;for(var _0x235f2d=_0x2265c4>0x1?void 0x0:_0x2265c4?Re(_0x1efa14,_0x5731ae):_0x1efa14,_0x2ea0b8=_0x330432[_0x30215a(0x11b)]-0x1,_0x76f238;_0x2ea0b8>=0x0;_0x2ea0b8--)(_0x76f238=_0x330432[_0x2ea0b8])&&(_0x235f2d=_0x76f238(_0x235f2d)||_0x235f2d);return _0x235f2d;},P=(_0x1f2052,_0x8098b3)=>(_0x40da8e,_0x5a058a)=>_0x8098b3(_0x40da8e,_0x5a058a,_0x1f2052);let x=class extends _0x1d7a10{constructor(_0x491740,_0x19a921,_0x50d26e,_0x5465ea){var _0x2e07a9=_0x18b954;super(),C(this,_0x2e07a9(0xc8),new _0x1c6526(_0x3261f5[_0x2e07a9(0xed)])),C(this,_0x2e07a9(0xfa),new _0x1c6526(_0x4270eb['NONE'])),(this[_0x2e07a9(0xca)]=_0x491740,this[_0x2e07a9(0xad)]=_0x19a921,this[_0x2e07a9(0xaf)]=_0x50d26e,this['_logService']=_0x5465ea,this['_initStatusComponent'](),this[_0x2e07a9(0x14e)]());}[_0x18b954(0xe8)](){var _0x1907d9=_0x18b954;return this['_status$'][_0x1907d9(0x133)]();}[_0x18b954(0x110)](){var _0x4336b9=_0x18b954;return this[_0x4336b9(0xfa)][_0x4336b9(0x133)]();}[_0x18b954(0x150)](_0x505091,_0x2505d0=_0x4270eb[_0x18b954(0x11a)]){var _0x1819d2=_0x18b954;this[_0x1819d2(0xc8)][_0x1819d2(0xc0)]!==_0x505091&&this[_0x1819d2(0xc8)][_0x1819d2(0x101)](_0x505091),this['_error$'][_0x1819d2(0xc0)]!==_0x2505d0&&this['_error$'][_0x1819d2(0x101)](_0x2505d0);}['_initStatusComponent'](){var _0x383d7a=_0x18b954;this['disposeWithMe'](this['_uiPartsService'][_0x383d7a(0xb0)](_0x1fa0bb['HEADER_MENU'],()=>_0x26e18f(Ue({'status$':this[_0x383d7a(0xc8)]['asObservable'](),'error$':this[_0x383d7a(0xfa)][_0x383d7a(0x133)](),'onConnect':()=>this['_handleConnect'](),'onDisconnect':()=>this[_0x383d7a(0x9f)](),'onConfigure':()=>this['_handleConfigure']()}),this[_0x383d7a(0xca)])));}[_0x18b954(0x14e)](){var _0x5bd70e=_0x18b954;try{const _0x3a5862=this[_0x5bd70e(0xca)]['get'](_0x4be806);this[_0x5bd70e(0x92)](_0x3a5862[_0x5bd70e(0x148)][_0x5bd70e(0x16e)](_0x23be41=>{var _0x2cfea9=_0x5bd70e;this[_0x2cfea9(0xc8)][_0x2cfea9(0x101)](_0x23be41);})),this[_0x5bd70e(0x92)](_0x3a5862[_0x5bd70e(0x11e)]['subscribe'](_0x1678f9=>{var _0x32890c=_0x5bd70e;this['_error$'][_0x32890c(0x101)](_0x1678f9);})),this['_status$'][_0x5bd70e(0x101)](_0x3a5862['getConnectionStatus']()),this[_0x5bd70e(0xfa)][_0x5bd70e(0x101)](_0x3a5862[_0x5bd70e(0xfb)]());}catch(_0x1805e5){this[_0x5bd70e(0x9b)][_0x5bd70e(0x15b)](_0x5bd70e(0x121),_0x1805e5),this['_initFallbackEventListener']();}}[_0x18b954(0xf9)](){var _0x1b1367=_0x18b954;this['disposeWithMe'](this[_0x1b1367(0xaf)][_0x1b1367(0xfd)](_0x4973a4)['subscribe'](_0xd3d71b=>{var _0x11b306=_0x1b1367;_0xd3d71b!=null&&_0xd3d71b[_0x11b306(0x10d)]?this['_status$'][_0x11b306(0xc0)]===_0x3261f5[_0x11b306(0xed)]&&this[_0x11b306(0xfa)][_0x11b306(0xc0)]===_0x4270eb[_0x11b306(0xa0)]&&this[_0x11b306(0x150)](_0x3261f5[_0x11b306(0xed)],_0x4270eb[_0x11b306(0x11a)]):this[_0x11b306(0x150)](_0x3261f5['DISCONNECTED'],_0x4270eb[_0x11b306(0xa0)]);}));const _0x1f8abc=this[_0x1b1367(0xaf)]['getConfig'](_0x4973a4);_0x1f8abc!=null&&_0x1f8abc['apiKey']||this[_0x1b1367(0x150)](_0x3261f5['DISCONNECTED'],_0x4270eb[_0x1b1367(0xa0)]);}[_0x18b954(0x116)](){var _0x5abc0e=_0x18b954;try{this[_0x5abc0e(0xca)][_0x5abc0e(0xc6)](_0x4be806)[_0x5abc0e(0x15e)]();}catch(_0x2fe368){this[_0x5abc0e(0x9b)]['error'](_0x5abc0e(0xbc),_0x2fe368);const _0x20a9cd=this[_0x5abc0e(0xaf)][_0x5abc0e(0x155)](_0x4973a4);if(!_0x20a9cd||!_0x20a9cd[_0x5abc0e(0x10d)]){this[_0x5abc0e(0x150)](_0x3261f5[_0x5abc0e(0xed)],_0x4270eb[_0x5abc0e(0xa0)]);return;}this[_0x5abc0e(0x150)](_0x3261f5['CONNECTING']);}}[_0x18b954(0x9f)](){var _0x45cef9=_0x18b954;try{this[_0x45cef9(0xca)][_0x45cef9(0xc6)](_0x4be806)[_0x45cef9(0xef)]();}catch(_0x573807){this[_0x45cef9(0x9b)]['error'](_0x45cef9(0xbc),_0x573807),this[_0x45cef9(0x150)](_0x3261f5[_0x45cef9(0xed)]);}}[_0x18b954(0x123)](){var _0x14f338=_0x18b954;this[_0x14f338(0xca)][_0x14f338(0xc6)](S)[_0x14f338(0x14b)]();}};x=Le([P(0x0,_0x10bf36(_0x48abb6)),P(0x1,_0x37c99c),P(0x2,_0x3aa9b6),P(0x3,_0x1ed053)],x);function Ue(_0x31d52b){const {status$:_0x39c6ff,error$:_0x4e157b,onConnect:_0x157452,onDisconnect:_0x3a811a,onConfigure:_0xd8e18a}=_0x31d52b;return function(){return _0x42796a(je,{'status$':_0x39c6ff,'error$':_0x4e157b,'onConnect':_0x157452,'onDisconnect':_0x3a811a,'onConfigure':_0xd8e18a});};}function Ge(_0x25c34a){var _0x14f2dc=_0x18b954;return{'id':G['id'],'type':_0x21d199[_0x14f2dc(0x117)],'icon':'MenuIcon','title':_0x14f2dc(0x15c),'tooltip':_0x14f2dc(0x15c)};}const Fe={[_0x2b2294[_0x18b954(0x84)]]:{[G['id']]:{'order':0xa,'menuItemFactory':Ge}}};var Ye=Object[_0x18b954(0xd1)],Ve=(_0x1715a6,_0x3ff90a,_0x2a6fa9,_0x46dd79)=>{var _0x25c9ee=_0x18b954;for(var _0x4aa066=_0x46dd79>0x1?void 0x0:_0x46dd79?Ye(_0x3ff90a,_0x2a6fa9):_0x3ff90a,_0x199c71=_0x1715a6[_0x25c9ee(0x11b)]-0x1,_0x30a02b;_0x199c71>=0x0;_0x199c71--)(_0x30a02b=_0x1715a6[_0x199c71])&&(_0x4aa066=_0x30a02b(_0x4aa066)||_0x4aa066);return _0x4aa066;},W=(_0x104656,_0x3f2cd3)=>(_0x6c6e3c,_0xecae4d)=>_0x3f2cd3(_0x6c6e3c,_0xecae4d,_0x104656);let b=class extends _0x1d7a10{constructor(_0xcab506,_0x291ddf){var _0x58e142=_0x18b954;super(),this[_0x58e142(0x7e)]=_0xcab506,this[_0x58e142(0x76)]=_0x291ddf,this[_0x58e142(0x160)](),this[_0x58e142(0xc4)]();}[_0x18b954(0x160)](){[G]['forEach'](_0x1098cb=>{var _0x406228=_0x29ae;this['disposeWithMe'](this[_0x406228(0x7e)][_0x406228(0x119)](_0x1098cb));});}[_0x18b954(0xc4)](){var _0x4ebec7=_0x18b954;this[_0x4ebec7(0x76)][_0x4ebec7(0x128)](Fe);}};b=Ve([W(0x0,_0x110d41),W(0x1,_0x4effab)],b);const He={'mcpStatus':{'disconnected':_0x18b954(0x142),'connecting':_0x18b954(0x158),'connected':_0x18b954(0x166),'failed':'MCP\x20Connection\x20Failed','retrying':_0x18b954(0x172),'unknown':_0x18b954(0x164),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x18b954(0x129),'networkError':_0x18b954(0x90),'maxRetriesExceeded':_0x18b954(0x132),'clickToConnect':_0x18b954(0xeb),'clickToDisconnect':_0x18b954(0x7c),'clickToConfigure':_0x18b954(0xcb)},'mcpConfig':{'title':_0x18b954(0x169),'description':_0x18b954(0x13f),'apiKey':_0x18b954(0xf4),'apiKeyPlaceholder':_0x18b954(0x131),'apiKeyHint':_0x18b954(0x12e),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x18b954(0x99),'connectionInfo':_0x18b954(0xd6),'serverEndpoint':'Server\x20Endpoint','sessionId':_0x18b954(0xd9),'maxRetries':_0x18b954(0x85),'save':_0x18b954(0x13c),'saving':_0x18b954(0xf3),'note1':_0x18b954(0xa6),'note2':_0x18b954(0xc7),'configSaved':_0x18b954(0x141),'configError':'Failed\x20to\x20save\x20configuration','validation':{'apiKeyRequired':_0x18b954(0xb3),'apiKeyTooShort':_0x18b954(0xe3),'invalidConfig':_0x18b954(0xf7),'invalidApiKey':_0x18b954(0x161)}}},We={'mcpStatus':{'disconnected':_0x18b954(0xa1),'connecting':_0x18b954(0xf1),'connected':'MCP\x20已连接','failed':_0x18b954(0xae),'retrying':_0x18b954(0x96),'unknown':_0x18b954(0x168),'missingApiKey':_0x18b954(0xdb),'invalidApiKey':_0x18b954(0x82),'sessionOccupied':'MCP:\x20会话被占用','networkError':_0x18b954(0x125),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x18b954(0x124),'clickToDisconnect':_0x18b954(0x145),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':'MCP\x20配置','description':_0x18b954(0xee),'apiKey':_0x18b954(0x10b),'apiKeyPlaceholder':_0x18b954(0x8c),'apiKeyHint':_0x18b954(0x95),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x18b954(0x10c),'serverEndpoint':'服务器端点','sessionId':'会话ID','maxRetries':_0x18b954(0xa7),'save':_0x18b954(0x13b),'saving':'保存中...','note1':_0x18b954(0x8a),'note2':_0x18b954(0x106),'configSaved':_0x18b954(0x127),'configError':_0x18b954(0xf6),'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x18b954(0x93)}}};function _0x29ae(_0xfaae88,_0x403e35){var _0x3f04b5=_0x3f04();return _0x29ae=function(_0x29ae7d,_0x28e227){_0x29ae7d=_0x29ae7d-0x72;var _0x44bf17=_0x3f04b5[_0x29ae7d];return _0x44bf17;},_0x29ae(_0xfaae88,_0x403e35);}var ze=Object[_0x18b954(0x13e)],Be=Object[_0x18b954(0xd1)],qe=(_0x16d48b,_0x26cac5,_0x556000)=>_0x26cac5 in _0x16d48b?ze(_0x16d48b,_0x26cac5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x556000}):_0x16d48b[_0x26cac5]=_0x556000,Xe=(_0x4f5ca8,_0x4d26e1,_0x1aae52,_0x91f8cb)=>{var _0x2ccd69=_0x18b954;for(var _0x5e4b9a=_0x91f8cb>0x1?void 0x0:_0x91f8cb?Be(_0x4d26e1,_0x1aae52):_0x4d26e1,_0xe8641e=_0x4f5ca8[_0x2ccd69(0x11b)]-0x1,_0x481d71;_0xe8641e>=0x0;_0xe8641e--)(_0x481d71=_0x4f5ca8[_0xe8641e])&&(_0x5e4b9a=_0x481d71(_0x5e4b9a)||_0x5e4b9a);return _0x5e4b9a;},y=(_0x24f47d,_0x59f98c)=>(_0x173aa5,_0x271336)=>_0x59f98c(_0x173aa5,_0x271336,_0x24f47d),Je=(_0x139bcc,_0x45394b,_0x7905ac)=>qe(_0x139bcc,_0x45394b+'',_0x7905ac);let A=class extends _0x48b334{constructor(_0x323d58=H,_0x4545d1,_0x110fa8,_0x6538ce,_0x2e1fbf,_0x2b74b6){var _0x13fca0=_0x18b954;super(),this['_config']=_0x323d58,this[_0x13fca0(0xca)]=_0x4545d1,this['_configService']=_0x110fa8,this['_uiPartsService']=_0x6538ce,this['_localStorageService']=_0x2e1fbf,this['_localeService']=_0x2b74b6;const {..._0x159eca}=_0x121b24({},H,this[_0x13fca0(0xdf)]);this['_configService']['setConfig'](K,_0x159eca),this[_0x13fca0(0xe5)][_0x13fca0(0x9a)]({'zhCN':We,'enUS':He});}async['onStarting'](){var _0x12d1e5=_0x18b954;[[x],[S],[b]][_0x12d1e5(0xb2)](_0x1ecdb5=>this[_0x12d1e5(0xca)][_0x12d1e5(0x74)](_0x1ecdb5)),this['_injector']['get'](x),this[_0x12d1e5(0xca)][_0x12d1e5(0xc6)](S),this[_0x12d1e5(0xca)][_0x12d1e5(0xc6)](b);}};Je(A,_0x18b954(0x111),'MCP_UI_PLUGIN'),A=Xe([_0x597ce7(_0xe91f0c),y(0x1,_0x10bf36(_0x48abb6)),y(0x2,_0x3aa9b6),y(0x3,_0x37c99c),y(0x4,_0xaed26f),y(0x5,_0x10bf36(_0x1cc567))],A);export{be as MCPConfigPanel,S as MCPConfigUIController,x as MCPConnectionUIController,je as MCPStatusDisplay,b as MCPUIMenuController,G as OpenMCPConfigPanelCommand,A as UniverMCPUIPlugin,He as enUS,We as zhCN};
|
|
1
|
+
var _0x104917=_0x4fa4;(function(_0x12a5cc,_0x934db3){var _0x4ad69c=_0x4fa4,_0x4f0431=_0x12a5cc();while(!![]){try{var _0x2d8e6d=parseInt(_0x4ad69c(0x319))/0x1*(-parseInt(_0x4ad69c(0x311))/0x2)+-parseInt(_0x4ad69c(0x28e))/0x3*(parseInt(_0x4ad69c(0x254))/0x4)+-parseInt(_0x4ad69c(0x21c))/0x5*(parseInt(_0x4ad69c(0x317))/0x6)+-parseInt(_0x4ad69c(0x314))/0x7+parseInt(_0x4ad69c(0x2a9))/0x8*(parseInt(_0x4ad69c(0x22c))/0x9)+parseInt(_0x4ad69c(0x235))/0xa+parseInt(_0x4ad69c(0x2cd))/0xb*(-parseInt(_0x4ad69c(0x2d1))/0xc);if(_0x2d8e6d===_0x934db3)break;else _0x4f0431['push'](_0x4f0431['shift']());}catch(_0x1e8153){_0x4f0431['push'](_0x4f0431['shift']());}}}(_0x5602,0xbeda1));var Se=Object['defineProperty'],xe=(_0x7c4be3,_0x4401a1,_0x90316c)=>_0x4401a1 in _0x7c4be3?Se(_0x7c4be3,_0x4401a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x90316c}):_0x7c4be3[_0x4401a1]=_0x90316c,N=(_0x3f0e26,_0x5ef583,_0x16ef82)=>xe(_0x3f0e26,typeof _0x5ef583!='symbol'?_0x5ef583+'':_0x5ef583,_0x16ef82);import{LocaleService as _0x5c61a2,Inject as _0x12258b,Injector as _0x3fc366,IConfigService as _0x3c59b2,ILocalStorageService as _0x138d28,ILogService as _0x1f3797,Disposable as _0x1f6052,CommandType as _0x2f1f5a,ICommandService as _0x41a972,DependentOn as _0x1978e2,Plugin as _0x253140,merge as _0x2046f9}from'@univerjs/core';import{jsxs as _0x35ca60,jsx as _0x3233e4}from'react/jsx-runtime';import{MCPConnectionStatus as _0x39d3c2,MCPConnectionError as _0x1229ee,MCPConnectionController as _0x5bf030,MCP_PLUGIN_CONFIG_KEY as _0x2e0691,UniverMCPPlugin as _0xe314d4}from'@univerjs-pro/mcp';import{Input as _0x510a3d,Button as _0x11ef2d,MessageType as _0x27a715,Tooltip as _0x2383e2,clsx as _0x2aa71f}from'@univerjs/design';import{useDependency as _0x4a3a80,useObservable as _0x28baf0,IUIPartsService as _0x392d05,IDialogService as _0x28e8fd,IMessageService as _0x28f6c6,ComponentManager as _0x1c0e80,connectInjector as _0x59d864,BuiltInUIPart as _0x364e98,MenuItemType as _0x5e1548,RibbonStartGroup as _0x30db9b,IMenuManagerService as _0x3a8e3c}from'@univerjs/ui';import{BehaviorSubject as _0x5ee1a3}from'rxjs';import{forwardRef as _0x4daaf1,useRef as _0x1860ad,createElement as _0x40f6da,useState as _0xa0c0eb,useCallback as _0x38e2b7}from'react';var d=function(){var _0x3188b1=_0x4fa4;return d=Object[_0x3188b1(0x283)]||function(_0x41246e){var _0x88dbba=_0x3188b1;for(var _0x971bc4,_0xb93825=0x1,_0x5d3207=arguments[_0x88dbba(0x233)];_0xb93825<_0x5d3207;_0xb93825++){_0x971bc4=arguments[_0xb93825];for(var _0x4b4228 in _0x971bc4)Object['prototype']['hasOwnProperty']['call'](_0x971bc4,_0x4b4228)&&(_0x41246e[_0x4b4228]=_0x971bc4[_0x4b4228]);}return _0x41246e;},d[_0x3188b1(0x29a)](this,arguments);},Ye=function(_0x30dd8f,_0x217dcc){var _0x4ab78a=_0x4fa4,_0x5e7985={};for(var _0xc35152 in _0x30dd8f)Object[_0x4ab78a(0x25a)][_0x4ab78a(0x23a)]['call'](_0x30dd8f,_0xc35152)&&_0x217dcc[_0x4ab78a(0x300)](_0xc35152)<0x0&&(_0x5e7985[_0xc35152]=_0x30dd8f[_0xc35152]);if(_0x30dd8f!=null&&typeof Object[_0x4ab78a(0x26c)]==_0x4ab78a(0x278)){for(var _0x16ec61=0x0,_0xc35152=Object[_0x4ab78a(0x26c)](_0x30dd8f);_0x16ec61<_0xc35152[_0x4ab78a(0x233)];_0x16ec61++)_0x217dcc[_0x4ab78a(0x300)](_0xc35152[_0x16ec61])<0x0&&Object[_0x4ab78a(0x25a)][_0x4ab78a(0x21b)]['call'](_0x30dd8f,_0xc35152[_0x16ec61])&&(_0x5e7985[_0xc35152[_0x16ec61]]=_0x30dd8f[_0xc35152[_0x16ec61]]);}return _0x5e7985;},S=_0x4daaf1(function(_0xb142b,_0x228fa1){var _0x1fa816=_0x4fa4,_0x8f1c27=_0xb142b[_0x1fa816(0x323)],_0x2112a3=_0xb142b['id'],_0x499200=_0xb142b['className'],_0x51295f=_0xb142b[_0x1fa816(0x2e9)],_0x34a779=Ye(_0xb142b,[_0x1fa816(0x323),'id',_0x1fa816(0x22f),_0x1fa816(0x2e9)]),_0xad8ab0=_0x1fa816(0x2f5)[_0x1fa816(0x32b)](_0x2112a3,'\x20')[_0x1fa816(0x32b)](_0x499200||'')['trim'](),_0x45bb01=_0x1860ad('_'[_0x1fa816(0x32b)](He()));return oe(_0x8f1c27,''['concat'](_0x2112a3),{'defIds':_0x8f1c27[_0x1fa816(0x266)],'idSuffix':_0x45bb01['current']},d({'ref':_0x228fa1,'className':_0xad8ab0},_0x34a779),_0x51295f);});function oe(_0x2110ec,_0x3749fa,_0x497a38,_0x4f8d7a,_0x4797fc){var _0x487e6a=_0x4fa4;return _0x40f6da(_0x2110ec['tag'],d(d({'key':_0x3749fa},Ve(_0x2110ec,_0x497a38,_0x4797fc)),_0x4f8d7a),(Fe(_0x2110ec,_0x497a38)[_0x487e6a(0x2c8)]||[])[_0x487e6a(0x236)](function(_0x27e8e4,_0x539499){var _0x189c6d=_0x487e6a;return oe(_0x27e8e4,''[_0x189c6d(0x32b)](_0x3749fa,'-')[_0x189c6d(0x32b)](_0x2110ec[_0x189c6d(0x30b)],'-')[_0x189c6d(0x32b)](_0x539499),_0x497a38,void 0x0,_0x4797fc);}));}function Ve(_0x109b4a,_0x365a90,_0xb91967){var _0x395889=_0x4fa4,_0x381d35=d({},_0x109b4a[_0x395889(0x24d)]);_0xb91967!=null&&_0xb91967[_0x395889(0x307)]&&_0x381d35[_0x395889(0x22b)]===_0x395889(0x307)&&(_0x381d35[_0x395889(0x22b)]=_0xb91967[_0x395889(0x307)]),_0x109b4a[_0x395889(0x30b)]===_0x395889(0x321)&&_0x381d35['id']&&(_0x381d35['id']=_0x381d35['id']+_0x365a90[_0x395889(0x223)]),Object[_0x395889(0x226)](_0x381d35)['forEach'](function(_0x2aab3e){var _0x595dea=_0x395889,_0x460c22=_0x2aab3e[0x0],_0x523663=_0x2aab3e[0x1];_0x460c22===_0x595dea(0x321)&&typeof _0x523663=='string'&&(_0x381d35[_0x460c22]=_0x523663[_0x595dea(0x32c)](/url\(#(.*)\)/,_0x595dea(0x30c)['concat'](_0x365a90[_0x595dea(0x223)],')')));});var _0x176aed=_0x365a90['defIds'];return!_0x176aed||_0x176aed[_0x395889(0x233)]===0x0||(_0x109b4a[_0x395889(0x30b)]===_0x395889(0x318)&&_0x381d35[_0x395889(0x252)]&&(_0x381d35[_0x395889(0x252)]=_0x381d35[_0x395889(0x252)]+_0x365a90[_0x395889(0x223)]),Object['entries'](_0x381d35)[_0x395889(0x2a1)](function(_0x320f2d){var _0x217b5d=_0x395889,_0x44d741=_0x320f2d[0x0],_0x270c1b=_0x320f2d[0x1];typeof _0x270c1b==_0x217b5d(0x329)&&(_0x381d35[_0x44d741]=_0x270c1b[_0x217b5d(0x32c)](/url\(#(.*)\)/,_0x217b5d(0x30c)[_0x217b5d(0x32b)](_0x365a90['idSuffix'],')')));})),_0x381d35;}function Fe(_0x1c5580,_0x4f6dc5){var _0x4cac3b=_0x4fa4,_0x5394dc,_0x55bd38=_0x4f6dc5[_0x4cac3b(0x266)];return!_0x55bd38||_0x55bd38[_0x4cac3b(0x233)]===0x0?_0x1c5580:_0x1c5580[_0x4cac3b(0x30b)]===_0x4cac3b(0x248)&&(!((_0x5394dc=_0x1c5580[_0x4cac3b(0x2c8)])===null||_0x5394dc===void 0x0)&&_0x5394dc['length'])?d(d({},_0x1c5580),{'children':_0x1c5580['children']['map'](function(_0x37befe){var _0x3a4b79=_0x4cac3b;return typeof _0x37befe[_0x3a4b79(0x24d)]['id']==_0x3a4b79(0x329)&&_0x55bd38&&_0x55bd38[_0x3a4b79(0x2ae)](_0x37befe[_0x3a4b79(0x24d)]['id'])?d(d({},_0x37befe),{'attrs':d(d({},_0x37befe['attrs']),{'id':_0x37befe[_0x3a4b79(0x24d)]['id']+_0x4f6dc5[_0x3a4b79(0x223)]})}):_0x37befe;})}):_0x1c5580;}function He(){var _0x2a5913=_0x4fa4;return Math[_0x2a5913(0x2a8)]()[_0x2a5913(0x240)](0x24)['substring'](0x2,0x8);}S[_0x104917(0x214)]=_0x104917(0x25f);var We={'tag':_0x104917(0x328),'attrs':{'xmlns':_0x104917(0x281),'fill':'none','viewBox':_0x104917(0x22e),'width':'1em','height':_0x104917(0x247)},'children':[{'tag':_0x104917(0x271),'attrs':{'fill':'currentColor','d':_0x104917(0x205),'fillRule':_0x104917(0x202),'clipRule':_0x104917(0x202)}}]},ce=_0x4daaf1(function(_0x3052a0,_0x2bea04){var _0x3e4161=_0x104917;return _0x40f6da(S,Object[_0x3e4161(0x283)]({},_0x3052a0,{'id':'check-mark-icon','ref':_0x2bea04,'icon':We}));});ce[_0x104917(0x214)]=_0x104917(0x25d);var Be={'tag':_0x104917(0x328),'attrs':{'xmlns':_0x104917(0x281),'fill':_0x104917(0x292),'viewBox':_0x104917(0x1f0),'width':_0x104917(0x247),'height':'1em'},'children':[{'tag':_0x104917(0x271),'attrs':{'stroke':_0x104917(0x250),'d':_0x104917(0x2bf),'strokeLinecap':_0x104917(0x2d0),'strokeLinejoin':'round','strokeWidth':1.33}},{'tag':_0x104917(0x271),'attrs':{'stroke':'currentColor','d':_0x104917(0x2b4),'strokeLinecap':_0x104917(0x2d0),'strokeLinejoin':_0x104917(0x2d0),'strokeWidth':1.33}}]},ae=_0x4daaf1(function(_0x4f9de7,_0x2c42b2){var _0x5db5a5=_0x104917;return _0x40f6da(S,Object[_0x5db5a5(0x283)]({},_0x4f9de7,{'id':'close-small-single','ref':_0x2c42b2,'icon':Be}));});ae[_0x104917(0x214)]=_0x104917(0x31d);var ze={'tag':_0x104917(0x328),'attrs':{'xmlns':_0x104917(0x281),'fill':_0x104917(0x292),'viewBox':_0x104917(0x22e),'width':_0x104917(0x247),'height':_0x104917(0x247)},'children':[{'tag':_0x104917(0x271),'attrs':{'fill':_0x104917(0x250),'d':_0x104917(0x208)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x104917(0x20c)}},{'tag':_0x104917(0x271),'attrs':{'fill':_0x104917(0x250),'d':_0x104917(0x229),'fillRule':_0x104917(0x202),'clipRule':_0x104917(0x202)}}]},se=_0x4daaf1(function(_0x486192,_0x3e2096){var _0x3a20ce=_0x104917;return _0x40f6da(S,Object['assign']({},_0x486192,{'id':_0x3a20ce(0x272),'ref':_0x3e2096,'icon':ze}));});se['displayName']=_0x104917(0x203);var qe={'tag':_0x104917(0x328),'attrs':{'xmlns':_0x104917(0x281),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x104917(0x247),'height':_0x104917(0x247)},'children':[{'tag':'g','attrs':{'clipPath':_0x104917(0x2ba)},'children':[{'tag':_0x104917(0x271),'attrs':{'stroke':'currentColor','d':_0x104917(0x220),'strokeLinecap':_0x104917(0x2d0),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x104917(0x248),'attrs':{},'children':[{'tag':_0x104917(0x2ce),'attrs':{'id':_0x104917(0x31b)},'children':[{'tag':_0x104917(0x271),'attrs':{'fill':_0x104917(0x265),'d':_0x104917(0x242)}}]}]}],'defIds':[_0x104917(0x31b)]},le=_0x4daaf1(function(_0xeb39f7,_0x187c95){var _0x4ce19d=_0x104917;return _0x40f6da(S,Object[_0x4ce19d(0x283)]({},_0xeb39f7,{'id':'off-line-icon','ref':_0x187c95,'icon':qe}));});function _0x4fa4(_0x59f334,_0x46bd68){var _0x56020c=_0x5602();return _0x4fa4=function(_0x4fa4ba,_0x446a30){_0x4fa4ba=_0x4fa4ba-0x1ee;var _0x2d23b0=_0x56020c[_0x4fa4ba];return _0x2d23b0;},_0x4fa4(_0x59f334,_0x46bd68);}le[_0x104917(0x214)]=_0x104917(0x29d);var Ze={'tag':_0x104917(0x328),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x104917(0x292),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x104917(0x247)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x104917(0x271),'attrs':{'stroke':_0x104917(0x250),'d':'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','strokeLinecap':_0x104917(0x2d0),'strokeLinejoin':_0x104917(0x2d0),'strokeWidth':1.2}}]},{'tag':_0x104917(0x248),'attrs':{},'children':[{'tag':_0x104917(0x2ce),'attrs':{'id':_0x104917(0x2a6)},'children':[{'tag':_0x104917(0x271),'attrs':{'fill':_0x104917(0x265),'d':_0x104917(0x242),'transform':_0x104917(0x31e)}}]}]}],'defIds':[_0x104917(0x2a6)]},ue=_0x4daaf1(function(_0x3d2562,_0x308c77){var _0x3867d1=_0x104917;return _0x40f6da(S,Object['assign']({},_0x3d2562,{'id':_0x3867d1(0x262),'ref':_0x308c77,'icon':Ze}));});ue[_0x104917(0x214)]='OnLineIcon';function Xe(_0x38e53e){var _0x11d36e=_0x104917,_0x4a135f,_0x4a4f98;const {mcpCoreConfig:_0x194fcf,onSave:_0x3b199b,loading:_0x3fd9ca=!0x1,config:_0x79d570,connectionStatus$:_0x572eed,connectionError$:_0x3bbef4}=_0x38e53e,_0x10d124=_0x4a3a80(_0x5c61a2),_0x6d545=_0x28baf0(_0x572eed,_0x39d3c2['DISCONNECTED']),_0x27a44b=_0x28baf0(_0x3bbef4,_0x1229ee[_0x11d36e(0x2f4)]),[_0x4564d3,_0x15fec6]=_0xa0c0eb(_0x194fcf['apiKey']||''),_0x3e8e10=!0x0,_0x3b91d7=_0x79d570['showDeveloperTools']&&_0x194fcf[_0x11d36e(0x304)]&&(_0x194fcf[_0x11d36e(0x304)][_0x11d36e(0x2ae)](_0x11d36e(0x2c2))||_0x194fcf[_0x11d36e(0x304)]['includes'](_0x11d36e(0x277))),_0x4fc8e1=(_0x4a135f=_0x194fcf[_0x11d36e(0x304)])==null?void 0x0:_0x4a135f['includes'](_0x11d36e(0x2c2)),_0x17d434=(_0x4a4f98=_0x194fcf['mcpServerUrl'])==null?void 0x0:_0x4a4f98[_0x11d36e(0x2ae)]('univer.ai'),_0x46b20c=_0x4fc8e1?_0x11d36e(0x27d):'https://console.univer.ai',_0x148db6=_0x79d570['showDeveloperTools']&&(_0x4fc8e1||_0x17d434),[_0x4dbb6f,_0x54f0af]=_0xa0c0eb(!_0x4564d3[_0x11d36e(0x2a5)]()),_0x112c5f=(_0x56b86f,_0x63b3ac)=>{var _0x31fe8c=_0x11d36e;if(_0x63b3ac===_0x1229ee[_0x31fe8c(0x2fd)]||_0x63b3ac===_0x1229ee[_0x31fe8c(0x275)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x56b86f){case _0x39d3c2[_0x31fe8c(0x1fa)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x39d3c2['CONNECTING']:case _0x39d3c2[_0x31fe8c(0x243)]:return _0x31fe8c(0x27e);case _0x39d3c2[_0x31fe8c(0x2b0)]:return _0x31fe8c(0x23b);default:return _0x31fe8c(0x2e6);}},_0x4163e8=(_0x5f1ebd,_0xe5057)=>{var _0x5216a9=_0x11d36e;if(_0xe5057===_0x1229ee['MISSING_API_KEY']||_0xe5057===_0x1229ee['INVALID_API_KEY'])return _0x5216a9(0x27a);switch(_0x5f1ebd){case _0x39d3c2[_0x5216a9(0x1fa)]:return _0x5216a9(0x1ef);case _0x39d3c2[_0x5216a9(0x30f)]:case _0x39d3c2['RETRYING']:return _0x5216a9(0x246);case _0x39d3c2[_0x5216a9(0x2b0)]:return _0x5216a9(0x27a);default:return'univer-bg-gray-500';}},_0xbbcc53=_0x208c8d=>{var _0x1028d0=_0x11d36e;switch(_0x208c8d){case _0x39d3c2['CONNECTED']:return _0x10d124['t'](_0x1028d0(0x1f1));case _0x39d3c2[_0x1028d0(0x30f)]:return _0x10d124['t']('mcpConfig.connectionStatus.connecting');case _0x39d3c2[_0x1028d0(0x2b0)]:return _0x10d124['t'](_0x1028d0(0x2d7));case _0x39d3c2[_0x1028d0(0x243)]:return _0x10d124['t'](_0x1028d0(0x320));default:return _0x10d124['t']('mcpConfig.connectionStatus.disconnected');}},_0x5d2d1e=_0x28f0d6=>{var _0x4b5826=_0x11d36e;switch(_0x28f0d6){case _0x1229ee[_0x4b5826(0x2fd)]:return _0x10d124['t'](_0x4b5826(0x20e));case _0x1229ee[_0x4b5826(0x275)]:return _0x10d124['t'](_0x4b5826(0x2d6));case _0x1229ee['SESSION_ID_OCCUPIED']:return _0x10d124['t'](_0x4b5826(0x2ac));case _0x1229ee[_0x4b5826(0x2cf)]:return _0x10d124['t'](_0x4b5826(0x2ed));case _0x1229ee['MAX_RETRIES_EXCEEDED']:return _0x10d124['t'](_0x4b5826(0x305));default:return'';}},_0x76f740=_0x38e2b7(()=>{const _0x59b544={..._0x194fcf,'apiKey':_0x4564d3['trim'](),'enableAuth':_0x3e8e10};_0x3b199b(_0x59b544);},[_0x194fcf,_0x4564d3,_0x3e8e10,_0x3b199b]),_0x4590b5=_0x4564d3[_0x11d36e(0x2a5)]()[_0x11d36e(0x233)]>0x0;return _0x35ca60(_0x11d36e(0x32a),{'className':_0x11d36e(0x216),'children':[_0x3233e4(_0x11d36e(0x32a),{'className':_0x11d36e(0x2c0),'children':_0x35ca60(_0x11d36e(0x32a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x3233e4(_0x11d36e(0x32a),{'className':'univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x3233e4(_0x11d36e(0x2e3),{'className':_0x11d36e(0x1fb),'children':'⚙'})}),_0x3233e4(_0x11d36e(0x32a),{'children':_0x3233e4('p',{'className':_0x11d36e(0x2fb),'children':_0x10d124['t'](_0x11d36e(0x257))})})]})}),_0x35ca60(_0x11d36e(0x32a),{'className':_0x11d36e(0x2c6),'children':[_0x3233e4(_0x11d36e(0x32a),{'className':_0x11d36e(0x2e4)+_0x112c5f(_0x6d545,_0x27a44b)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x35ca60(_0x11d36e(0x32a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x3233e4('div',{'className':_0x11d36e(0x2c3)+_0x4163e8(_0x6d545,_0x27a44b)+_0x11d36e(0x2a3)}),_0x3233e4(_0x11d36e(0x2e3),{'className':_0x11d36e(0x2eb),'children':_0xbbcc53(_0x6d545)})]})}),_0x27a44b!==_0x1229ee[_0x11d36e(0x2f4)]&&(_0x6d545===_0x39d3c2['FAILED']||_0x27a44b===_0x1229ee[_0x11d36e(0x2fd)]||_0x27a44b===_0x1229ee['INVALID_API_KEY'])&&_0x3233e4('div',{'className':_0x11d36e(0x204),'children':_0x35ca60(_0x11d36e(0x32a),{'className':_0x11d36e(0x290),'children':[_0x3233e4('span',{'className':_0x11d36e(0x295),'children':'⚠️'}),_0x3233e4('p',{'className':_0x11d36e(0x2f3),'children':_0x5d2d1e(_0x27a44b)})]})})]}),_0x3233e4('div',{'className':_0x11d36e(0x26b),'children':_0x35ca60('div',{'className':_0x11d36e(0x1fd),'children':[_0x35ca60(_0x11d36e(0x32a),{'className':_0x11d36e(0x29e),'children':[_0x35ca60('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x3233e4(_0x11d36e(0x2e3),{'children':'🔑'}),'\x20',_0x10d124['t'](_0x11d36e(0x2ea)),_0x3233e4(_0x11d36e(0x2e3),{'className':'univer-text-red-500','children':'*'}),_0x3b91d7&&_0x3233e4('a',{'href':_0x11d36e(0x264),'onClick':()=>_0x54f0af(!0x0),'className':_0x11d36e(0x269),'title':_0x10d124['t'](_0x11d36e(0x2be)),'children':_0x3233e4(se,{})})]}),_0x3233e4(_0x510a3d,{'type':_0x11d36e(0x310),'placeholder':_0x10d124['t'](_0x11d36e(0x30d)),'value':_0x4564d3,'onChange':_0x15fec6,'disabled':_0x3fd9ca,'autoComplete':_0x11d36e(0x1f3)}),_0x3233e4('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x10d124['t'](_0x11d36e(0x219))})]}),_0x3b91d7&&_0x4dbb6f&&_0x35ca60(_0x11d36e(0x32a),{'className':_0x11d36e(0x28a),'children':[_0x3233e4('a',{'href':_0x11d36e(0x264),'onClick':()=>_0x54f0af(!0x1),'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','title':_0x11d36e(0x273),'children':_0x3233e4(ae,{})}),_0x35ca60(_0x11d36e(0x32a),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x3233e4(_0x11d36e(0x32a),{'className':'univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x3233e4(_0x11d36e(0x2e3),{'className':_0x11d36e(0x280),'children':'🚀'})}),_0x35ca60('div',{'className':_0x11d36e(0x2d9),'children':[_0x3233e4('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x10d124['t']('mcpConfig.apiApplyInfo.title')}),_0x3233e4('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x10d124['t'](_0x11d36e(0x291))}),_0x3233e4(_0x11d36e(0x32a),{'className':_0x11d36e(0x215),'children':_0x148db6&&_0x35ca60('a',{'href':_0x46b20c,'target':'_blank','rel':_0x11d36e(0x2ef),'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','children':[_0x3233e4(_0x11d36e(0x2e3),{'children':'🤖'}),_0x10d124['t'](_0x11d36e(0x206)),_0x3233e4(_0x11d36e(0x2e3),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x35ca60(_0x11d36e(0x32a),{'className':_0x11d36e(0x224),'children':['✨','\x20',_0x10d124['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x79d570['showDeveloperTools']&&_0x35ca60(_0x11d36e(0x32a),{'className':_0x11d36e(0x2e5),'children':[_0x35ca60('h4',{'className':_0x11d36e(0x2e7),'children':[_0x3233e4('span',{'children':'🔗'}),'\x20',_0x10d124['t'](_0x11d36e(0x1fc))]}),_0x35ca60(_0x11d36e(0x32a),{'className':_0x11d36e(0x301),'children':[_0x35ca60(_0x11d36e(0x32a),{'className':_0x11d36e(0x2ca),'children':[_0x3233e4(_0x11d36e(0x32a),{'className':_0x11d36e(0x302)}),_0x35ca60('div',{'className':_0x11d36e(0x2fa),'children':[_0x3233e4(_0x11d36e(0x32a),{'className':_0x11d36e(0x1f5),'children':_0x10d124['t'](_0x11d36e(0x28b))}),_0x3233e4(_0x11d36e(0x222),{'className':_0x11d36e(0x2b8),'children':_0x194fcf[_0x11d36e(0x304)]})]})]}),_0x35ca60(_0x11d36e(0x32a),{'className':_0x11d36e(0x2ca),'children':[_0x3233e4(_0x11d36e(0x32a),{'className':_0x11d36e(0x302)}),_0x35ca60(_0x11d36e(0x32a),{'className':_0x11d36e(0x2fa),'children':[_0x3233e4(_0x11d36e(0x32a),{'className':_0x11d36e(0x1f5),'children':_0x10d124['t']('mcpConfig.sessionId')}),_0x3233e4(_0x11d36e(0x222),{'className':_0x11d36e(0x31f),'children':_0x194fcf[_0x11d36e(0x237)]||'default'})]})]})]})]}),_0x3233e4(_0x11ef2d,{'onClick':_0x76f740,'disabled':!_0x4590b5||_0x3fd9ca,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x3fd9ca?_0x35ca60(_0x11d36e(0x2e3),{'className':_0x11d36e(0x2c9),'children':[_0x3233e4('span',{'children':'⟲'}),_0x10d124['t'](_0x11d36e(0x1f7))]}):_0x35ca60(_0x11d36e(0x2e3),{'className':_0x11d36e(0x2c9),'children':[_0x3233e4(ce,{}),_0x10d124['t'](_0x11d36e(0x308))]})}),_0x3233e4(_0x11d36e(0x32a),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x35ca60('div',{'className':_0x11d36e(0x255),'children':[_0x3233e4('span',{'className':_0x11d36e(0x2d2),'children':'💡'}),_0x35ca60('div',{'className':_0x11d36e(0x26a),'children':[_0x3233e4(_0x11d36e(0x32a),{'className':_0x11d36e(0x288),'children':_0x11d36e(0x2c5)}),_0x35ca60('div',{'children':['•',_0x10d124['t'](_0x11d36e(0x322))]}),_0x35ca60(_0x11d36e(0x32a),{'children':['•',_0x10d124['t'](_0x11d36e(0x297))]})]})]})})]})})]});}const U='mcp-ui.config',J={'showDeveloperTools':!0x1};var Je=Object['getOwnPropertyDescriptor'],Qe=(_0x840562,_0x3b7a77,_0x113ed3,_0x5e859c)=>{for(var _0x1715dd=_0x5e859c>0x1?void 0x0:_0x5e859c?Je(_0x3b7a77,_0x113ed3):_0x3b7a77,_0x881579=_0x840562['length']-0x1,_0x234069;_0x881579>=0x0;_0x881579--)(_0x234069=_0x840562[_0x881579])&&(_0x1715dd=_0x234069(_0x1715dd)||_0x1715dd);return _0x1715dd;},p=(_0xc3d71c,_0x394468)=>(_0x3024f5,_0x24567d)=>_0x394468(_0x3024f5,_0x24567d,_0xc3d71c);const R=_0x104917(0x2df),j=_0x104917(0x2a0);let _=class extends _0x1f6052{constructor(_0x1f788c,_0x2b34d1,_0x481f7d,_0x3f7087,_0x2fdbf9,_0x3a2109,_0x18a133,_0x2309a6,_0x123e08,_0x202434){var _0x3a1d26=_0x104917;super(),N(this,_0x3a1d26(0x298),new _0x5ee1a3(!0x1)),N(this,_0x3a1d26(0x253),new _0x5ee1a3({})),N(this,_0x3a1d26(0x282),new _0x5ee1a3({})),N(this,_0x3a1d26(0x2f7),async _0x23668a=>{var _0x475d4d=_0x3a1d26;this[_0x475d4d(0x298)][_0x475d4d(0x256)](!0x0);try{const _0x450583=await this[_0x475d4d(0x24b)](_0x23668a);if(!_0x450583[_0x475d4d(0x312)]){this[_0x475d4d(0x2f2)][_0x475d4d(0x26d)]({'type':_0x27a715[_0x475d4d(0x2b9)],'content':_0x450583[_0x475d4d(0x287)]||this[_0x475d4d(0x2fc)]['t'](_0x475d4d(0x316))});return;}_0x23668a[_0x475d4d(0x2b2)]?await this['_localStorageService']['setItem'](R,_0x23668a[_0x475d4d(0x2b2)][_0x475d4d(0x2a5)]()):await this['_localStorageService'][_0x475d4d(0x2f6)](R),this['_configService']['setConfig'](_0x2e0691,{..._0x23668a,'apiKey':_0x23668a[_0x475d4d(0x2b2)][_0x475d4d(0x2a5)]()}),this['_mcpCoreConfig$'][_0x475d4d(0x256)]({..._0x23668a,'apiKey':_0x23668a['apiKey'][_0x475d4d(0x2a5)]()}),this[_0x475d4d(0x2f2)][_0x475d4d(0x26d)]({'type':_0x27a715[_0x475d4d(0x1f6)],'content':this[_0x475d4d(0x2fc)]['t'](_0x475d4d(0x2ff))}),setTimeout(()=>{var _0x45d852=_0x475d4d;this[_0x45d852(0x26e)]['close'](j);},0x320);}catch(_0x44acf6){this[_0x475d4d(0x309)][_0x475d4d(0x23f)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x44acf6),this[_0x475d4d(0x2f2)][_0x475d4d(0x26d)]({'type':_0x27a715[_0x475d4d(0x2b9)],'content':this[_0x475d4d(0x2fc)]['t']('mcpConfig.configError')});}finally{this[_0x475d4d(0x298)][_0x475d4d(0x256)](!0x1);}}),(this[_0x3a1d26(0x325)]=_0x1f788c,this[_0x3a1d26(0x279)]=_0x2b34d1,this[_0x3a1d26(0x2ee)]=_0x481f7d,this[_0x3a1d26(0x22d)]=_0x3f7087,this[_0x3a1d26(0x26e)]=_0x2fdbf9,this[_0x3a1d26(0x2f2)]=_0x3a2109,this['_componentManager']=_0x18a133,this[_0x3a1d26(0x2fc)]=_0x2309a6,this[_0x3a1d26(0x309)]=_0x123e08,this[_0x3a1d26(0x228)]=_0x202434,this[_0x3a1d26(0x258)](),this['_loadStoredApiKey'](),this[_0x3a1d26(0x2d5)]());}[_0x104917(0x2cc)](){var _0x214dcc=_0x104917;this[_0x214dcc(0x26e)][_0x214dcc(0x22a)]({'id':j,'title':{'title':this[_0x214dcc(0x2fc)]['t'](_0x214dcc(0x238))},'children':{'label':_0x214dcc(0x227)},'width':0x1e0,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x532144=_0x214dcc;this[_0x532144(0x26e)][_0x532144(0x2aa)](j);}});}[_0x104917(0x2f9)](){var _0x28182d=_0x104917;return this[_0x28182d(0x253)][_0x28182d(0x1f2)];}[_0x104917(0x2d5)](){var _0x3a876c=_0x104917;this[_0x3a876c(0x27b)](this[_0x3a876c(0x268)]['register'](_0x3a876c(0x227),this['_createConfigPanelComponent']()));}[_0x104917(0x24a)](){var _0x163902=_0x104917;return _0x59d864(()=>{var _0x5bfe14=_0x4fa4,_0x5271f9,_0x502d70;return _0x3233e4(Xe,{'config':this[_0x5bfe14(0x282)][_0x5bfe14(0x1f2)],'mcpCoreConfig':this[_0x5bfe14(0x253)]['value'],'onSave':this[_0x5bfe14(0x2f7)],'loading':this[_0x5bfe14(0x298)][_0x5bfe14(0x1f2)],'connectionStatus$':(_0x5271f9=this[_0x5bfe14(0x228)])==null?void 0x0:_0x5271f9[_0x5bfe14(0x2de)],'connectionError$':(_0x502d70=this[_0x5bfe14(0x228)])==null?void 0x0:_0x502d70[_0x5bfe14(0x285)]});},this[_0x163902(0x325)]);}[_0x104917(0x258)](){var _0x576e23=_0x104917;this[_0x576e23(0x27b)](this[_0x576e23(0x2ee)][_0x576e23(0x21f)](_0x2e0691)['subscribe'](_0x19b12a=>{var _0x13a645=_0x576e23;this['_mcpCoreConfig$'][_0x13a645(0x256)](_0x19b12a||{});}));const _0x10939b=this['_configService']['getConfig'](_0x2e0691);this[_0x576e23(0x253)][_0x576e23(0x256)](_0x10939b||{}),this[_0x576e23(0x27b)](this[_0x576e23(0x2ee)]['subscribeConfigValue$'](U)[_0x576e23(0x23e)](_0xc4bee8=>{var _0x420dc0=_0x576e23;this[_0x420dc0(0x282)][_0x420dc0(0x256)](_0xc4bee8||{});}));const _0x2c9a37=this[_0x576e23(0x2ee)][_0x576e23(0x20a)](U);this['_config$'][_0x576e23(0x256)](_0x2c9a37||{});}async[_0x104917(0x221)](){var _0x53473d=_0x104917;const _0x3961af=await this[_0x53473d(0x22d)]['getItem'](R);if(_0x3961af){const _0x593bc4={...this[_0x53473d(0x253)][_0x53473d(0x1f2)],'apiKey':_0x3961af};this[_0x53473d(0x2ee)]['setConfig'](_0x2e0691,_0x593bc4),this['_mcpCoreConfig$'][_0x53473d(0x256)](_0x593bc4);}}async['_validateConfig'](_0x4c62db){var _0x2c3e76=_0x104917;if(!_0x4c62db['apiKey']||_0x4c62db[_0x2c3e76(0x2b2)][_0x2c3e76(0x2a5)]()[_0x2c3e76(0x233)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2c3e76(0x2fc)]['t'](_0x2c3e76(0x259))};if(_0x4c62db[_0x2c3e76(0x2b2)][_0x2c3e76(0x2a5)]()[_0x2c3e76(0x233)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x2c3e76(0x2fc)]['t'](_0x2c3e76(0x294))};try{const _0x1e41db=await this[_0x2c3e76(0x325)]['get'](_0x5bf030)[_0x2c3e76(0x31c)](_0x4c62db[_0x2c3e76(0x2b2)][_0x2c3e76(0x2a5)]());return _0x1e41db[_0x2c3e76(0x312)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1e41db[_0x2c3e76(0x23f)]||this['_localeService']['t'](_0x2c3e76(0x28f))};}catch(_0x563be1){return console[_0x2c3e76(0x274)](_0x2c3e76(0x27f),_0x563be1),{'isValid':!0x0};}}};_=Qe([p(0x0,_0x12258b(_0x3fc366)),p(0x1,_0x392d05),p(0x2,_0x3c59b2),p(0x3,_0x138d28),p(0x4,_0x28e8fd),p(0x5,_0x28f6c6),p(0x6,_0x12258b(_0x1c0e80)),p(0x7,_0x12258b(_0x5c61a2)),p(0x8,_0x1f3797),p(0x9,_0x12258b(_0x5bf030))],_);const W={'id':'mcp-ui.command.openConfigPanel','type':_0x2f1f5a['COMMAND'],'handler':async(_0x3523b5,_0x254fea)=>(_0x3523b5['get'](_)[_0x104917(0x2cc)](),!0x0)};function ve(_0x53e5aa,_0x337b87){var _0x56f5f8=_0x104917;switch(_0x53e5aa){case _0x39d3c2[_0x56f5f8(0x2c4)]:return _0x337b87===_0x1229ee[_0x56f5f8(0x2fd)]?'mcpStatus.missingApiKey':_0x56f5f8(0x201);case _0x39d3c2[_0x56f5f8(0x30f)]:return _0x56f5f8(0x25c);case _0x39d3c2[_0x56f5f8(0x1fa)]:return _0x56f5f8(0x2ad);case _0x39d3c2['FAILED']:switch(_0x337b87){case _0x1229ee[_0x56f5f8(0x275)]:return _0x56f5f8(0x276);case _0x1229ee[_0x56f5f8(0x2bc)]:return _0x56f5f8(0x239);case _0x1229ee[_0x56f5f8(0x2cf)]:return _0x56f5f8(0x2bd);case _0x1229ee[_0x56f5f8(0x24e)]:return _0x56f5f8(0x232);default:return _0x56f5f8(0x2b7);}case _0x39d3c2[_0x56f5f8(0x243)]:return'mcpStatus.retrying';default:return _0x56f5f8(0x245);}}function en(_0x1039fc,_0x2b6718,_0x5b082e){var _0x47920f=_0x104917;const _0x6b5961=ve(_0x1039fc,_0x2b6718),_0x52f1bb=_0x5b082e['t'](_0x6b5961);return _0x1039fc===_0x39d3c2[_0x47920f(0x2c4)]&&_0x2b6718===_0x1229ee[_0x47920f(0x2fd)]?_0x52f1bb+'\x20-\x20'+_0x5b082e['t']('mcpStatus.clickToConfigure'):_0x1039fc===_0x39d3c2[_0x47920f(0x1fa)]?''+_0x52f1bb:_0x1039fc===_0x39d3c2[_0x47920f(0x2c4)]||_0x1039fc===_0x39d3c2[_0x47920f(0x2b0)]?_0x52f1bb+_0x47920f(0x2b5)+_0x5b082e['t'](_0x47920f(0x217)):_0x52f1bb;}function nn(_0x326515){var _0x3df8cd=_0x104917;switch(_0x326515){case _0x39d3c2[_0x3df8cd(0x1fa)]:return _0x3df8cd(0x1ff);case _0x39d3c2['CONNECTING']:case _0x39d3c2[_0x3df8cd(0x243)]:return _0x3df8cd(0x1f8);case _0x39d3c2[_0x3df8cd(0x2b0)]:case _0x39d3c2[_0x3df8cd(0x2c4)]:return'univer-text-red-500';default:return _0x3df8cd(0x2b3);}}function rn(_0x295d4f){var _0x7a4e9d=_0x104917;const {status$:_0x28a2c8,error$:_0x3e4b3b,onConfigure:_0x13683a}=_0x295d4f,_0x1c2ee1=_0x28baf0(_0x28a2c8,_0x39d3c2['DISCONNECTED']),_0x1aff89=_0x28baf0(_0x3e4b3b,_0x1229ee[_0x7a4e9d(0x2f4)]),_0x3c40ca=_0x4a3a80(_0x5c61a2),_0x29919c=_0x1c2ee1===_0x39d3c2[_0x7a4e9d(0x1fa)],_0x2d4ec2=_0x1c2ee1===_0x39d3c2['CONNECTING']||_0x1c2ee1===_0x39d3c2[_0x7a4e9d(0x243)],_0x3be884=_0x3c40ca['t'](ve(_0x1c2ee1,_0x1aff89)),_0x36f8ee=en(_0x1c2ee1,_0x1aff89,_0x3c40ca),_0x1e8b2b=nn(_0x1c2ee1),_0x850553=_0x29919c?_0x3233e4(ue,{}):_0x3233e4(le,{}),_0x4ca632=_0x38e2b7(()=>{_0x13683a&&_0x13683a();},[_0x29919c,_0x2d4ec2,_0x13683a]);function _0x46df58(){var _0x2bddf8=_0x7a4e9d;return _0x35ca60(_0x2bddf8(0x32a),{'className':_0x2aa71f(_0x2bddf8(0x315),_0x13683a&&'hover:univer-opacity-80'),'onClick':_0x13683a?_0x4ca632:void 0x0,'children':[_0x3233e4('div',{'className':_0x2aa71f(_0x2bddf8(0x2d8),_0x1e8b2b),'children':_0x850553}),_0x3233e4(_0x2bddf8(0x32a),{'className':_0x2bddf8(0x284),'children':_0x3be884})]});}return _0x3233e4(_0x2383e2,{'title':_0x36f8ee,'placement':'bottom','children':_0x46df58()});}var tn=Object[_0x104917(0x267)],on=(_0x926b67,_0x29f20e,_0x5bd8da,_0x506a3a)=>{var _0x391d22=_0x104917;for(var _0x24f85d=_0x506a3a>0x1?void 0x0:_0x506a3a?tn(_0x29f20e,_0x5bd8da):_0x29f20e,_0x3913bd=_0x926b67[_0x391d22(0x233)]-0x1,_0x56e9ca;_0x3913bd>=0x0;_0x3913bd--)(_0x56e9ca=_0x926b67[_0x3913bd])&&(_0x24f85d=_0x56e9ca(_0x24f85d)||_0x24f85d);return _0x24f85d;},L=(_0x1dafea,_0x488a03)=>(_0x25176b,_0x48dfcd)=>_0x488a03(_0x25176b,_0x48dfcd,_0x1dafea);let O=class extends _0x1f6052{constructor(_0x53fdff,_0x124ef9,_0x20126e){var _0x2cb513=_0x104917;super(),this[_0x2cb513(0x325)]=_0x53fdff,this['_connectionController']=_0x124ef9,this['_uiPartsService']=_0x20126e,this[_0x2cb513(0x2cb)]();}[_0x104917(0x2cb)](){var _0x54829b=_0x104917;this[_0x54829b(0x27b)](this['_uiPartsService'][_0x54829b(0x225)](_0x364e98[_0x54829b(0x30a)],()=>_0x59d864(cn({'status$':this[_0x54829b(0x2e0)][_0x54829b(0x2de)],'error$':this['_connectionController'][_0x54829b(0x285)],'onConfigure':()=>this['_handleConfigure']()}),this[_0x54829b(0x325)])));}[_0x104917(0x2e2)](){var _0x585590=_0x104917;this[_0x585590(0x325)][_0x585590(0x2dc)](_)[_0x585590(0x2cc)]();}};O=on([L(0x0,_0x12258b(_0x3fc366)),L(0x1,_0x12258b(_0x5bf030)),L(0x2,_0x392d05)],O);function cn(_0x1e890a){const {status$:_0x2447cc,error$:_0x3cccb5,onConfigure:_0x24a4a3}=_0x1e890a;return function(){return _0x3233e4(rn,{'status$':_0x2447cc,'error$':_0x3cccb5,'onConfigure':_0x24a4a3});};}function an(_0x3ae16c){var _0x4f90be=_0x104917;return{'id':W['id'],'type':_0x5e1548[_0x4f90be(0x21e)],'icon':'MenuIcon','title':'mcpConfig.title','tooltip':_0x4f90be(0x238)};}const sn={[_0x30db9b[_0x104917(0x2db)]]:{[W['id']]:{'order':0xa,'menuItemFactory':an}}};var ln=Object['getOwnPropertyDescriptor'],un=(_0x44a5e5,_0x35ab17,_0x32808e,_0x2274d3)=>{var _0x4e7a87=_0x104917;for(var _0x4fb994=_0x2274d3>0x1?void 0x0:_0x2274d3?ln(_0x35ab17,_0x32808e):_0x35ab17,_0x2c3e81=_0x44a5e5[_0x4e7a87(0x233)]-0x1,_0x47433d;_0x2c3e81>=0x0;_0x2c3e81--)(_0x47433d=_0x44a5e5[_0x2c3e81])&&(_0x4fb994=_0x47433d(_0x4fb994)||_0x4fb994);return _0x4fb994;},Q=(_0xdee6b9,_0x2b23db)=>(_0x34e6fb,_0x1bb1f4)=>_0x2b23db(_0x34e6fb,_0x1bb1f4,_0xdee6b9);let k=class extends _0x1f6052{constructor(_0x216cc9,_0x2ba30d){var _0x52db33=_0x104917;super(),this['_commandService']=_0x216cc9,this[_0x52db33(0x2c1)]=_0x2ba30d,this['_initializeCommands'](),this[_0x52db33(0x296)]();}[_0x104917(0x2f0)](){var _0x55512c=_0x104917;[W][_0x55512c(0x2a1)](_0x20055a=>{var _0x17264d=_0x55512c;this['disposeWithMe'](this[_0x17264d(0x27c)][_0x17264d(0x234)](_0x20055a));});}[_0x104917(0x296)](){var _0x1f8275=_0x104917;this[_0x1f8275(0x2c1)][_0x1f8275(0x261)](sn);}};k=un([Q(0x0,_0x41a972),Q(0x1,_0x3a8e3c)],k);const Nn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x104917(0x2ab),'connected':_0x104917(0x24f),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x104917(0x23c),'invalidApiKey':_0x104917(0x210),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x104917(0x2c7),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x104917(0x2d3),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x104917(0x24c),'enableAuth':_0x104917(0x1f9),'enableAuthHint':_0x104917(0x218),'connectionInfo':_0x104917(0x231),'serverEndpoint':_0x104917(0x20f),'sessionId':_0x104917(0x213),'maxRetries':'Max\x20Retries','save':_0x104917(0x270),'saving':_0x104917(0x26f),'note1':_0x104917(0x241),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x104917(0x1f4),'apiApplyInfo':{'title':_0x104917(0x2fe),'description':_0x104917(0x244),'univerAiLabel':_0x104917(0x2bb),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x104917(0x1ee),'invalidConfig':_0x104917(0x2ec),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x104917(0x200),'connected':'Connected','failed':_0x104917(0x29c),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x104917(0x31a),'invalidApiKey':_0x104917(0x260),'sessionOccupied':_0x104917(0x2e8),'networkError':_0x104917(0x2f8),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},Pn={'mcpStatus':{'disconnected':_0x104917(0x29f),'connecting':_0x104917(0x299),'connected':_0x104917(0x313),'failed':'MCP\x20连接失败','retrying':_0x104917(0x25b),'unknown':_0x104917(0x211),'missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':_0x104917(0x2da),'sessionOccupied':_0x104917(0x2a2),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x104917(0x324),'clickToConnect':_0x104917(0x293),'clickToConfigure':_0x104917(0x2a7)},'mcpConfig':{'title':_0x104917(0x327),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x104917(0x21a),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x104917(0x20d),'enableAuth':_0x104917(0x286),'enableAuthHint':_0x104917(0x2a4),'connectionInfo':'连接信息','serverEndpoint':_0x104917(0x2af),'sessionId':'会话ID','maxRetries':_0x104917(0x207),'save':_0x104917(0x263),'saving':'保存中...','note1':_0x104917(0x25e),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x104917(0x30e),'configError':_0x104917(0x28c),'apiApplyInfo':{'title':_0x104917(0x289),'description':_0x104917(0x1fe),'univerAiLabel':_0x104917(0x23d),'getStarted':_0x104917(0x28d)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x104917(0x249),'invalidConfig':_0x104917(0x306),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x104917(0x326),'connecting':'连接中...','connected':_0x104917(0x251),'failed':_0x104917(0x2e1),'retrying':'重连中...'},'connectionError':{'missingApiKey':_0x104917(0x209),'invalidApiKey':_0x104917(0x2dd),'sessionOccupied':_0x104917(0x2b1),'networkError':_0x104917(0x2f1),'maxRetriesExceeded':_0x104917(0x230)}}};function _0x5602(){var _0x5cf54a=['Enable\x20Authentication','CONNECTED','univer-text-white','mcpConfig.connectionInfo','univer-space-y-5','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-text-green-500','Connecting...','mcpStatus.disconnected','evenodd','HelpSingle','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','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.apiApplyInfo.univerAiLabel','最大重试次数','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','需要\x20API\x20密钥才能连接','getConfig','MCP_UI_PLUGIN','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','您的\x20API\x20密钥将在此浏览器中本地存储','mcpConfig.connectionError.missingApiKey','Server\x20Endpoint','MCP:\x20Invalid\x20API\x20Key','MCP\x20状态未知','setConfig','Session\x20ID','displayName','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpStatus.clickToConnect','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.apiKeyHint','API\x20密钥','propertyIsEnumerable','1485TPIUcn','_config','BUTTON','subscribeConfigValue$','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','_loadStoredApiKey','code','idSuffix','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','registerComponent','entries','MCPConfigPanel','_mcpConnectionController','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','open','fill','747YUNjzw','_localStorageService','0\x200\x2016\x2016','className','超出最大重试次数,请稍后再试','Connection\x20Information','mcpStatus.maxRetriesExceeded','length','registerCommand','11432060oPyhor','map','sessionId','mcpConfig.title','mcpStatus.sessionOccupied','hasOwnProperty','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP:\x20API\x20Key\x20Missing','Univer\x20AI\x20控制台','subscribe','error','toString','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','M0\x200H16V16H0z','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.','mcpStatus.unknown','univer-bg-blue-500','1em','defs','API\x20密钥长度至少需要\x2010\x20位','_createConfigPanelComponent','_validateConfig','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','attrs','MAX_RETRIES_EXCEEDED','MCP\x20Connected','currentColor','已连接','xlink:href','_mcpCoreConfig$','113196zTwOZZ','univer-flex\x20univer-gap-3','next','mcpConfig.description','_initConfigSync','mcpConfig.validation.apiKeyRequired','prototype','MCP\x20重连中...','mcpStatus.connecting','CheckMarkIcon','配置更改将立即生效','UniverIcon','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','mergeMenu','on-line-icon','保存配置','javascript:void(0)','white','defIds','getOwnPropertyDescriptor','_componentManager','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','getOwnPropertySymbols','show','_dialogService','Saving...','Save\x20Configuration','path','help-single','Close','warn','INVALID_API_KEY','mcpStatus.invalidApiKey','univer.ai','function','_uiPartsService','univer-bg-red-500','disposeWithMe','_commandService','https://console.univer.plus','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-text-blue-600','http://www.w3.org/2000/svg','_config$','assign','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','connectionError$','启用身份验证','errorMessage','univer-font-medium','什么是\x20API\x20密钥?','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','mcpConfig.serverEndpoint','配置保存失败','几秒钟内获取您的\x20API\x20密钥','45rQTZbF','mcpConfig.validation.invalidApiKey','univer-flex\x20univer-items-start\x20univer-gap-2','mcpConfig.apiApplyInfo.description','none','点击连接\x20MCP','mcpConfig.validation.apiKeyTooShort','univer-flex-shrink-0\x20univer-text-red-500','_initializeMenus','mcpConfig.note2','_loading$','MCP\x20连接中...','apply','onStarting','Connection\x20Failed','OffLineIcon','univer-space-y-2','MCP\x20已断开','mcp-config-dialog','forEach','MCP:\x20会话被占用','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','启用身份验证以获得安全连接','trim','on-line-icon_clip0_910_349','点击配置\x20MCP','random','109072XWFMUr','close','MCP\x20Connecting...','mcpConfig.connectionError.sessionOccupied','mcpStatus.connected','includes','服务器端点','FAILED','会话当前被占用,请稍后再试','apiKey','univer-text-gray-500','M5.21243\x2012.287L11.8791\x205.62036','\x20-\x20','pluginName','mcpStatus.failed','univer-break-all\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-blue-600','Error','url(#off-line-icon_clip0_910_343)','Univer\x20AI\x20Console','SESSION_ID_OCCUPIED','mcpStatus.networkError','mcpConfig.apiApplyInfo.title','M5.21243\x205.62036L11.8791\x2012.287','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_menuManagerService','univer.plus','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','DISCONNECTED','Configuration\x20Notes:','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','MCP:\x20Network\x20Error','children','univer-flex\x20univer-items-center\x20univer-gap-2','univer-flex\x20univer-items-start\x20univer-gap-3','_initStatusComponent','showConfigPanel','1398892NjCKez','clipPath','NETWORK_ERROR','round','12oRoMKT','univer-flex-shrink-0\x20univer-text-blue-500','MCP\x20Configuration','defineProperty','_registerComponent','mcpConfig.connectionError.invalidApiKey','mcpConfig.connectionStatus.failed','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-flex-1','MCP:\x20无效的\x20API\x20密钥','OTHERS','get','API\x20密钥无效,请检查您的密钥后重试','connectionStatus$','mcp.apiKey','_connectionController','连接失败','_handleConfigure','span','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','extend','mcpConfig.apiKey','univer-text-sm\x20univer-font-medium','Invalid\x20configuration','mcpConfig.connectionError.networkError','_configService','noopener\x20noreferrer','_initializeCommands','网络连接错误,请检查您的网络连接','_messageService','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','NONE','univerjs-icon\x20univerjs-icon-','removeItem','_handleConfigSave','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','getCurrentConfig','univer-min-w-0\x20univer-flex-1','univer-text-sm\x20univer-text-gray-500','_localeService','MISSING_API_KEY','What\x20is\x20API\x20Key?','mcpConfig.configSaved','indexOf','univer-space-y-3','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','add','mcpServerUrl','mcpConfig.connectionError.maxRetriesExceeded','配置无效','colorChannel1','mcpConfig.save','_logService','HEADER_MENU','tag','url(#$1','mcpConfig.apiKeyPlaceholder','配置保存成功','CONNECTING','text','25804qKxJSw','isValid','MCP\x20已连接','401646XLljgH','univer-flex\x20univer-cursor-pointer\x20univer-items-center','mcpConfig.validation.invalidConfig','16296SeDsXn','use','6SSegPg','API\x20key\x20is\x20required\x20to\x20connect','off-line-icon_clip0_910_343','validateApiKey','CloseSmallSingle','translate(.97)','univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-gray-700','mcpConfig.connectionStatus.retrying','mask','mcpConfig.note1','icon','MCP:\x20超出最大重试次数','_injector','未连接','MCP\x20配置','svg','string','div','concat','replace','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-bg-green-500','0\x200\x2017\x2017','mcpConfig.connectionStatus.connected','value','off','Failed\x20to\x20save\x20configuration','univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Success','mcpConfig.saving','univer-text-yellow-500'];_0x5602=function(){return _0x5cf54a;};return _0x5602();}var vn=Object[_0x104917(0x2d4)],dn=Object[_0x104917(0x267)],gn=(_0x4ec7fe,_0x518aa3,_0x84ffc6)=>_0x518aa3 in _0x4ec7fe?vn(_0x4ec7fe,_0x518aa3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x84ffc6}):_0x4ec7fe[_0x518aa3]=_0x84ffc6,fn=(_0x8866f2,_0x1167ef,_0x4cf117,_0x45dc56)=>{for(var _0x4e4fe3=_0x45dc56>0x1?void 0x0:_0x45dc56?dn(_0x1167ef,_0x4cf117):_0x1167ef,_0x1959e2=_0x8866f2['length']-0x1,_0x3ecf5b;_0x1959e2>=0x0;_0x1959e2--)(_0x3ecf5b=_0x8866f2[_0x1959e2])&&(_0x4e4fe3=_0x3ecf5b(_0x4e4fe3)||_0x4e4fe3);return _0x4e4fe3;},P=(_0x1aed59,_0x271db0)=>(_0x4ca1fa,_0x28fae8)=>_0x271db0(_0x4ca1fa,_0x28fae8,_0x1aed59),pn=(_0x5296f3,_0xad43d3,_0x1780c5)=>gn(_0x5296f3,_0xad43d3+'',_0x1780c5);let G=class extends _0x253140{constructor(_0x482648=J,_0x4b6626,_0x1e1a7e,_0x44e49a,_0x52343e,_0x668ca7){var _0x1825f2=_0x104917;super(),this[_0x1825f2(0x21d)]=_0x482648,this[_0x1825f2(0x325)]=_0x4b6626,this[_0x1825f2(0x2ee)]=_0x1e1a7e,this[_0x1825f2(0x279)]=_0x44e49a,this[_0x1825f2(0x22d)]=_0x52343e,this[_0x1825f2(0x2fc)]=_0x668ca7;const {..._0x28b634}=_0x2046f9({},J,this[_0x1825f2(0x21d)]);this[_0x1825f2(0x2ee)][_0x1825f2(0x212)](U,_0x28b634);}async[_0x104917(0x29b)](){var _0x463504=_0x104917;[[O],[_],[k]][_0x463504(0x2a1)](_0x4c4734=>this[_0x463504(0x325)][_0x463504(0x303)](_0x4c4734)),this[_0x463504(0x325)][_0x463504(0x2dc)](O),this[_0x463504(0x325)]['get'](_),this[_0x463504(0x325)]['get'](k);}};pn(G,_0x104917(0x2b6),_0x104917(0x20b)),G=fn([_0x1978e2(_0xe314d4),P(0x1,_0x12258b(_0x3fc366)),P(0x2,_0x3c59b2),P(0x3,_0x392d05),P(0x4,_0x138d28),P(0x5,_0x12258b(_0x5c61a2))],G);export{Xe as MCPConfigPanel,_ as MCPConfigUIController,O as MCPConnectionUIController,rn as MCPStatusDisplay,k as MCPUIMenuController,W as OpenMCPConfigPanelCommand,G as UniverMCPUIPlugin,Nn as enUS,Pn as zhCN};
|
package/lib/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x19d8(){const _0xb902f1=['Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Max\x20Retries','API\x20Key','MCP:\x20Invalid\x20API\x20Key','952295iXJnlA','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Server\x20Endpoint','1092231NnySeV','Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connecting...','MCP\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connecting...','1141055dvwfdo','Connection\x20Information','6139021bEcrqy','Enable\x20Authentication','MCP\x20Unknown\x20Status','2111214BizpbA','Click\x20to\x20configure\x20MCP','4663304bPmZfX','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connection\x20Failed','Univer\x20AI\x20Console','Save\x20Configuration','Enter\x20your\x20API\x20key','MCP\x20Retrying...','890274wCxRuH','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','6BLTBDh','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','8KdzeOE','MCP:\x20Network\x20Error','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Session\x20Occupied','Failed\x20to\x20save\x20configuration','Disconnected','Session\x20ID','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later'];_0x19d8=function(){return _0xb902f1;};return _0x19d8();}const _0x14c6c8=_0x5e76;(function(_0x321284,_0x34d15a){const _0x291980=_0x5e76,_0x4aaf9b=_0x321284();while(!![]){try{const _0x2cc471=parseInt(_0x291980(0x16a))/0x1+-parseInt(_0x291980(0x157))/0x2+-parseInt(_0x291980(0x17a))/0x3+-parseInt(_0x291980(0x15d))/0x4*(parseInt(_0x291980(0x175))/0x5)+parseInt(_0x291980(0x15b))/0x6*(parseInt(_0x291980(0x177))/0x7)+parseInt(_0x291980(0x17c))/0x8+-parseInt(_0x291980(0x16e))/0x9;if(_0x2cc471===_0x34d15a)break;else _0x4aaf9b['push'](_0x4aaf9b['shift']());}catch(_0x2f90fe){_0x4aaf9b['push'](_0x4aaf9b['shift']());}}}(_0x19d8,0xa75f3));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x14c6c8(0x174),'connected':'MCP\x20Connected','failed':_0x14c6c8(0x17e),'retrying':_0x14c6c8(0x156),'unknown':_0x14c6c8(0x179),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x14c6c8(0x169),'sessionOccupied':_0x14c6c8(0x161),'networkError':_0x14c6c8(0x15e),'maxRetriesExceeded':_0x14c6c8(0x17d),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x14c6c8(0x17b)},'mcpConfig':{'title':_0x14c6c8(0x172),'description':_0x14c6c8(0x173),'apiKey':_0x14c6c8(0x168),'apiKeyPlaceholder':_0x14c6c8(0x155),'apiKeyHint':_0x14c6c8(0x15a),'enableAuth':_0x14c6c8(0x178),'enableAuthHint':_0x14c6c8(0x160),'connectionInfo':_0x14c6c8(0x176),'serverEndpoint':_0x14c6c8(0x16d),'sessionId':_0x14c6c8(0x164),'maxRetries':_0x14c6c8(0x167),'save':_0x14c6c8(0x154),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x14c6c8(0x162),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x14c6c8(0x16c),'univerAiLabel':_0x14c6c8(0x17f),'getStarted':_0x14c6c8(0x16b)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x14c6c8(0x170),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x14c6c8(0x166)},'connectionStatus':{'disconnected':_0x14c6c8(0x163),'connecting':_0x14c6c8(0x171),'connected':_0x14c6c8(0x159),'failed':_0x14c6c8(0x16f),'retrying':'Retrying...'},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x14c6c8(0x15c),'sessionOccupied':_0x14c6c8(0x165),'networkError':_0x14c6c8(0x15f),'maxRetriesExceeded':_0x14c6c8(0x158)}}},n=e;function _0x5e76(_0x16007c,_0x435677){const _0x19d80a=_0x19d8();return _0x5e76=function(_0x5e76d3,_0x1f7cc7){_0x5e76d3=_0x5e76d3-0x154;let _0xe7de72=_0x19d80a[_0x5e76d3];return _0xe7de72;},_0x5e76(_0x16007c,_0x435677);}export{n as default};
|
package/lib/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1198a6=_0x22d4;function _0x22d4(_0x25c204,_0x28b231){const _0x90dda3=_0x90dd();return _0x22d4=function(_0x22d434,_0x3b2a6e){_0x22d434=_0x22d434-0xc6;let _0x1c89b5=_0x90dda3[_0x22d434];return _0x1c89b5;},_0x22d4(_0x25c204,_0x28b231);}(function(_0x5273f8,_0x10a41b){const _0x1cba43=_0x22d4,_0x2506c8=_0x5273f8();while(!![]){try{const _0x443c8a=parseInt(_0x1cba43(0xcb))/0x1*(-parseInt(_0x1cba43(0xc9))/0x2)+parseInt(_0x1cba43(0xd3))/0x3+-parseInt(_0x1cba43(0xd9))/0x4+-parseInt(_0x1cba43(0xe1))/0x5*(parseInt(_0x1cba43(0xd7))/0x6)+-parseInt(_0x1cba43(0xd8))/0x7+-parseInt(_0x1cba43(0xec))/0x8+parseInt(_0x1cba43(0xd1))/0x9;if(_0x443c8a===_0x10a41b)break;else _0x2506c8['push'](_0x2506c8['shift']());}catch(_0x4a75ad){_0x2506c8['push'](_0x2506c8['shift']());}}}(_0x90dd,0xb1d29));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x1198a6(0xef),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x1198a6(0xd4),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x1198a6(0xd0),'invalidApiKey':_0x1198a6(0xd6),'sessionOccupied':_0x1198a6(0xf0),'networkError':_0x1198a6(0xee),'maxRetriesExceeded':_0x1198a6(0xdf),'clickToConnect':_0x1198a6(0xca),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1198a6(0xdd),'description':_0x1198a6(0xda),'apiKey':_0x1198a6(0xc8),'apiKeyPlaceholder':_0x1198a6(0xde),'apiKeyHint':_0x1198a6(0xe8),'enableAuth':_0x1198a6(0xcf),'enableAuthHint':_0x1198a6(0xce),'connectionInfo':_0x1198a6(0xe0),'serverEndpoint':_0x1198a6(0xe2),'sessionId':_0x1198a6(0xf1),'maxRetries':_0x1198a6(0xe4),'save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1198a6(0xe5),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x1198a6(0xe6),'apiApplyInfo':{'title':_0x1198a6(0xed),'description':_0x1198a6(0xe3),'univerAiLabel':_0x1198a6(0xcd),'getStarted':_0x1198a6(0xe7)},'validation':{'apiKeyRequired':_0x1198a6(0xcc),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x1198a6(0xc7),'invalidApiKey':_0x1198a6(0xea)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x1198a6(0xc6),'failed':_0x1198a6(0xdc),'retrying':_0x1198a6(0xe9)},'connectionError':{'missingApiKey':_0x1198a6(0xeb),'invalidApiKey':_0x1198a6(0xd2),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x1198a6(0xdb),'maxRetriesExceeded':_0x1198a6(0xd5)}}};export{e as default};function _0x90dd(){const _0x53fc60=['MCP:\x20API\x20Key\x20Missing','32366871JedhbE','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','1111242ILFiIJ','MCP\x20Retrying...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Invalid\x20API\x20Key','30urhUjg','7975317mlHzuz','704428UfGNJS','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connection\x20Failed','MCP\x20Configuration','Enter\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','Connection\x20Information','385015TDVpsk','Server\x20Endpoint','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Max\x20Retries','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Failed\x20to\x20save\x20configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20is\x20required\x20to\x20connect','5999040GPCZZz','What\x20is\x20API\x20Key?','MCP:\x20Network\x20Error','MCP\x20Connecting...','MCP:\x20Session\x20Occupied','Session\x20ID','Connected','Invalid\x20configuration','API\x20Key','1576078TtASys','Click\x20to\x20connect\x20MCP','1gsaUnu','API\x20key\x20is\x20required','Univer\x20AI\x20Console','Enable\x20authentication\x20for\x20secure\x20connections','Enable\x20Authentication'];_0x90dd=function(){return _0x53fc60;};return _0x90dd();}
|
package/lib/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0xea43bd=_0x1607;function _0x1323(){const _0x1dbb5d=['Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Session\x20Occupied','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Connection\x20Failed','764266rKDeEU','8489019vXgrKI','Invalid\x20configuration','MCP\x20Unknown\x20Status','1077104eMpwgQ','MCP:\x20Network\x20Error','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','2225005yVVBva','Saving...','Click\x20to\x20connect\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connected','MCP\x20Connection\x20Failed','10XBePZq','12QZCVBV','1183512QlouLF','Configuration\x20saved\x20successfully','Disconnected','Connecting...','Max\x20Retries','Retrying...','18ESzsVw','Session\x20ID','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20API\x20Key\x20Missing','Save\x20Configuration','1923952LAlnzK','API\x20key\x20is\x20required\x20to\x20connect','MCP\x20Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Max\x20Retries\x20Exceeded','447896DyqIhU','MCP:\x20Invalid\x20API\x20Key','MCP\x20Configuration','MCP\x20Retrying...','Click\x20to\x20configure\x20MCP','API\x20Key','What\x20is\x20API\x20Key?','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Enter\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','1VdbRSc','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20Authentication','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0x1323=function(){return _0x1dbb5d;};return _0x1323();}(function(_0x3bd9fd,_0x2b7db4){const _0x5aeb22=_0x1607,_0x485664=_0x3bd9fd();while(!![]){try{const _0x393bd5=parseInt(_0x5aeb22(0x15d))/0x1*(parseInt(_0x5aeb22(0x166))/0x2)+parseInt(_0x5aeb22(0x141))/0x3+-parseInt(_0x5aeb22(0x151))/0x4+-parseInt(_0x5aeb22(0x16d))/0x5*(-parseInt(_0x5aeb22(0x140))/0x6)+parseInt(_0x5aeb22(0x16a))/0x7+parseInt(_0x5aeb22(0x14c))/0x8*(-parseInt(_0x5aeb22(0x147))/0x9)+-parseInt(_0x5aeb22(0x13f))/0xa*(parseInt(_0x5aeb22(0x167))/0xb);if(_0x393bd5===_0x2b7db4)break;else _0x485664['push'](_0x485664['shift']());}catch(_0x500c2d){_0x485664['push'](_0x485664['shift']());}}}(_0x1323,0x6f48c));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0xea43bd(0x14e),'failed':_0xea43bd(0x172),'retrying':_0xea43bd(0x154),'unknown':_0xea43bd(0x169),'missingApiKey':_0xea43bd(0x14a),'invalidApiKey':_0xea43bd(0x152),'sessionOccupied':_0xea43bd(0x162),'networkError':_0xea43bd(0x16b),'maxRetriesExceeded':_0xea43bd(0x150),'clickToConnect':_0xea43bd(0x16f),'clickToConfigure':_0xea43bd(0x155)},'mcpConfig':{'title':_0xea43bd(0x153),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0xea43bd(0x156),'apiKeyPlaceholder':_0xea43bd(0x159),'apiKeyHint':_0xea43bd(0x16c),'enableAuth':_0xea43bd(0x15f),'enableAuthHint':_0xea43bd(0x161),'connectionInfo':'Connection\x20Information','serverEndpoint':'Server\x20Endpoint','sessionId':_0xea43bd(0x148),'maxRetries':_0xea43bd(0x145),'save':_0xea43bd(0x14b),'saving':_0xea43bd(0x16e),'note1':_0xea43bd(0x170),'note2':_0xea43bd(0x14f),'configSaved':_0xea43bd(0x142),'configError':_0xea43bd(0x15c),'apiApplyInfo':{'title':_0xea43bd(0x157),'description':_0xea43bd(0x15a),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xea43bd(0x149)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xea43bd(0x163),'invalidConfig':_0xea43bd(0x168),'invalidApiKey':_0xea43bd(0x15b)},'connectionStatus':{'disconnected':_0xea43bd(0x143),'connecting':_0xea43bd(0x144),'connected':_0xea43bd(0x171),'failed':_0xea43bd(0x165),'retrying':_0xea43bd(0x146)},'connectionError':{'missingApiKey':_0xea43bd(0x14d),'invalidApiKey':_0xea43bd(0x164),'sessionOccupied':_0xea43bd(0x158),'networkError':_0xea43bd(0x15e),'maxRetriesExceeded':_0xea43bd(0x160)}}},n=e;function _0x1607(_0x160793,_0x455c02){const _0x13236f=_0x1323();return _0x1607=function(_0x16075b,_0x39e34c){_0x16075b=_0x16075b-0x13f;let _0x4d9e97=_0x13236f[_0x16075b];return _0x4d9e97;},_0x1607(_0x160793,_0x455c02);}export{n as default};
|
package/lib/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x144820=_0x47c9;(function(_0x16ea96,_0x27eea3){const _0x3ad46f=_0x47c9,_0x4b9bf5=_0x16ea96();while(!![]){try{const _0x402f11=parseInt(_0x3ad46f(0x107))/0x1+parseInt(_0x3ad46f(0x109))/0x2*(parseInt(_0x3ad46f(0x11a))/0x3)+-parseInt(_0x3ad46f(0x128))/0x4*(-parseInt(_0x3ad46f(0x118))/0x5)+parseInt(_0x3ad46f(0x116))/0x6*(parseInt(_0x3ad46f(0xfd))/0x7)+-parseInt(_0x3ad46f(0x129))/0x8*(parseInt(_0x3ad46f(0xfb))/0x9)+-parseInt(_0x3ad46f(0x113))/0xa*(parseInt(_0x3ad46f(0x114))/0xb)+parseInt(_0x3ad46f(0x112))/0xc*(parseInt(_0x3ad46f(0x123))/0xd);if(_0x402f11===_0x27eea3)break;else _0x4b9bf5['push'](_0x4b9bf5['shift']());}catch(_0x2f8698){_0x4b9bf5['push'](_0x4b9bf5['shift']());}}}(_0x5cc8,0x3da6a));function _0x47c9(_0x26d215,_0x4e7f63){const _0x5cc801=_0x5cc8();return _0x47c9=function(_0x47c939,_0x25127b){_0x47c939=_0x47c939-0xfb;let _0x4e6874=_0x5cc801[_0x47c939];return _0x4e6874;},_0x47c9(_0x26d215,_0x4e7f63);}function _0x5cc8(){const _0x5d5eec=['Enable\x20Authentication','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20configure\x20MCP','Failed\x20to\x20save\x20configuration','Configuration\x20saved\x20successfully','Invalid\x20configuration','MCP:\x20Session\x20Occupied','Connected','528axPzSW','16710KVlamt','2145TonPkO','Connection\x20Failed','2831448IoXIcp','Univer\x20AI\x20Console','10otvADy','API\x20Key','306wIBRsf','Session\x20ID','API\x20key\x20is\x20required','What\x20is\x20API\x20Key?','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20authentication\x20for\x20secure\x20connections','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20is\x20required\x20to\x20connect','MCP:\x20Invalid\x20API\x20Key','24518dLWONZ','Connection\x20Information','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connecting...','147956weNvai','266296IlOsCr','18ixTFnI','MCP\x20Connecting...','7EqrEzj','MCP:\x20API\x20Key\x20Missing','Save\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Retrying...','MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Saving...','MCP\x20Unknown\x20Status','Server\x20Endpoint','10053OlhFhn','Max\x20Retries','118EhDexS'];_0x5cc8=function(){return _0x5d5eec;};return _0x5cc8();}const e={'mcpStatus':{'disconnected':_0x144820(0x102),'connecting':_0x144820(0xfc),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x144820(0x101),'unknown':_0x144820(0x105),'missingApiKey':_0x144820(0xfe),'invalidApiKey':_0x144820(0x122),'sessionOccupied':_0x144820(0x110),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x144820(0x100),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x144820(0x10c)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x144820(0x119),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x144820(0x10a),'enableAuthHint':_0x144820(0x11f),'connectionInfo':_0x144820(0x124),'serverEndpoint':_0x144820(0x106),'sessionId':_0x144820(0x11b),'maxRetries':_0x144820(0x108),'save':_0x144820(0xff),'saving':_0x144820(0x104),'note1':_0x144820(0x10b),'note2':_0x144820(0x103),'configSaved':_0x144820(0x10e),'configError':_0x144820(0x10d),'apiApplyInfo':{'title':_0x144820(0x11d),'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':_0x144820(0x117),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x144820(0x11c),'apiKeyTooShort':_0x144820(0x126),'invalidConfig':_0x144820(0x10f),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x144820(0x127),'connected':_0x144820(0x111),'failed':_0x144820(0x115),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x144820(0x121),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x144820(0x125),'networkError':_0x144820(0x11e),'maxRetriesExceeded':_0x144820(0x120)}}},n=e;export{n as default};
|
package/lib/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4ee945=_0xf5a1;(function(_0x56ed67,_0x3f6862){const _0x20126d=_0xf5a1,_0x151ada=_0x56ed67();while(!![]){try{const _0xa6a63d=-parseInt(_0x20126d(0x141))/0x1+parseInt(_0x20126d(0x149))/0x2+-parseInt(_0x20126d(0x14a))/0x3+-parseInt(_0x20126d(0x151))/0x4+-parseInt(_0x20126d(0x14d))/0x5+-parseInt(_0x20126d(0x128))/0x6*(parseInt(_0x20126d(0x14c))/0x7)+-parseInt(_0x20126d(0x12a))/0x8*(-parseInt(_0x20126d(0x129))/0x9);if(_0xa6a63d===_0x3f6862)break;else _0x151ada['push'](_0x151ada['shift']());}catch(_0x2e6165){_0x151ada['push'](_0x151ada['shift']());}}}(_0xb89a,0x942b3));const e={'mcpStatus':{'disconnected':_0x4ee945(0x13e),'connecting':_0x4ee945(0x131),'connected':_0x4ee945(0x148),'failed':_0x4ee945(0x125),'retrying':'MCP\x20Retrying...','unknown':_0x4ee945(0x144),'missingApiKey':_0x4ee945(0x12d),'invalidApiKey':_0x4ee945(0x127),'sessionOccupied':_0x4ee945(0x133),'networkError':_0x4ee945(0x143),'maxRetriesExceeded':_0x4ee945(0x13d),'clickToConnect':_0x4ee945(0x145),'clickToConfigure':_0x4ee945(0x146)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4ee945(0x14b),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x4ee945(0x142),'enableAuth':_0x4ee945(0x136),'enableAuthHint':_0x4ee945(0x150),'connectionInfo':_0x4ee945(0x13c),'serverEndpoint':_0x4ee945(0x126),'sessionId':_0x4ee945(0x134),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0x4ee945(0x12b),'note2':_0x4ee945(0x12e),'configSaved':_0x4ee945(0x14e),'configError':_0x4ee945(0x14f),'apiApplyInfo':{'title':_0x4ee945(0x147),'description':_0x4ee945(0x12c),'univerAiLabel':_0x4ee945(0x13f),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4ee945(0x12f),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x4ee945(0x138),'invalidApiKey':_0x4ee945(0x140)},'connectionStatus':{'disconnected':_0x4ee945(0x13a),'connecting':_0x4ee945(0x152),'connected':_0x4ee945(0x130),'failed':_0x4ee945(0x135),'retrying':_0x4ee945(0x139)},'connectionError':{'missingApiKey':_0x4ee945(0x137),'invalidApiKey':_0x4ee945(0x153),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x4ee945(0x13b),'maxRetriesExceeded':_0x4ee945(0x132)}}},n=e;function _0xf5a1(_0xcaf129,_0x151ed8){const _0xb89ab=_0xb89a();return _0xf5a1=function(_0xf5a139,_0x47579f){_0xf5a139=_0xf5a139-0x125;let _0x19b6f0=_0xb89ab[_0xf5a139];return _0x19b6f0;},_0xf5a1(_0xcaf129,_0x151ed8);}function _0xb89a(){const _0x360074=['MCP:\x20API\x20Key\x20Missing','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20is\x20required','Connected','MCP\x20Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Session\x20Occupied','Session\x20ID','Connection\x20Failed','Enable\x20Authentication','API\x20key\x20is\x20required\x20to\x20connect','Invalid\x20configuration','Retrying...','Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connection\x20Information','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Disconnected','Univer\x20AI\x20Console','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','266208GESQHH','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Network\x20Error','MCP\x20Unknown\x20Status','Click\x20to\x20connect\x20MCP','Click\x20to\x20configure\x20MCP','What\x20is\x20API\x20Key?','MCP\x20Connected','998774ZJaWNC','27291keOdTO','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','420fQfgmH','5243445rcjREW','Configuration\x20saved\x20successfully','Failed\x20to\x20save\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','860104xSErrv','Connecting...','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP\x20Connection\x20Failed','Server\x20Endpoint','MCP:\x20Invalid\x20API\x20Key','83274jdricV','1174392SBPiRi','152eeEEJd','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.'];_0xb89a=function(){return _0x360074;};return _0xb89a();}export{n as default};
|
package/lib/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3d2c(){const _0x304479=['1352955BcDVGs','Retrying...','Failed\x20to\x20save\x20configuration','Connected','MCP\x20Retrying...','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Connection\x20Failed','2369375KjzEue','API\x20key\x20is\x20required\x20to\x20connect','MCP\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','2527zGqIIP','Connection\x20Information','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key','MCP:\x20Invalid\x20API\x20Key','Click\x20to\x20configure\x20MCP','MCP:\x20Network\x20Error','Saving...','API\x20key\x20is\x20required','325737xFMTPZ','Server\x20Endpoint','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','15000YLFdVI','Enable\x20authentication\x20for\x20secure\x20connections','1717356StRGik','Max\x20Retries','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Enable\x20Authentication','260ABileg','MCP:\x20Max\x20Retries\x20Exceeded','Get\x20your\x20API\x20key\x20in\x20seconds','Session\x20ID','MCP:\x20API\x20Key\x20Missing','MCP\x20Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connection\x20Failed','Save\x20Configuration','Configuration\x20saved\x20successfully','861922XLhiTO','MCP:\x20Session\x20Occupied','Univer\x20AI\x20Console','2UIelqg','MCP\x20Connected','MCP\x20Unknown\x20Status','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','7550480ecvyYI','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection'];_0x3d2c=function(){return _0x304479;};return _0x3d2c();}function _0x48be(_0x59c66b,_0x2a3ad3){const _0x3d2cef=_0x3d2c();return _0x48be=function(_0x48bec4,_0x18af1a){_0x48bec4=_0x48bec4-0xd9;let _0x67e57c=_0x3d2cef[_0x48bec4];return _0x67e57c;},_0x48be(_0x59c66b,_0x2a3ad3);}const _0x4b47c5=_0x48be;(function(_0x50d484,_0x5083c0){const _0x72ee0a=_0x48be,_0x4f1452=_0x50d484();while(!![]){try{const _0x58b70c=-parseInt(_0x72ee0a(0x105))/0x1+parseInt(_0x72ee0a(0x108))/0x2*(parseInt(_0x72ee0a(0xde))/0x3)+-parseInt(_0x72ee0a(0xf7))/0x4+parseInt(_0x72ee0a(0xe5))/0x5+-parseInt(_0x72ee0a(0xf5))/0x6*(-parseInt(_0x72ee0a(0xe9))/0x7)+parseInt(_0x72ee0a(0xdc))/0x8+-parseInt(_0x72ee0a(0xf2))/0x9*(parseInt(_0x72ee0a(0xfb))/0xa);if(_0x58b70c===_0x5083c0)break;else _0x4f1452['push'](_0x4f1452['shift']());}catch(_0x2222de){_0x4f1452['push'](_0x4f1452['shift']());}}}(_0x3d2c,0x8390b));const e={'mcpStatus':{'disconnected':_0x4b47c5(0x100),'connecting':'MCP\x20Connecting...','connected':_0x4b47c5(0xd9),'failed':_0x4b47c5(0x102),'retrying':_0x4b47c5(0xe2),'unknown':_0x4b47c5(0xda),'missingApiKey':_0x4b47c5(0xff),'invalidApiKey':_0x4b47c5(0xed),'sessionOccupied':_0x4b47c5(0x106),'networkError':_0x4b47c5(0xef),'maxRetriesExceeded':_0x4b47c5(0xfc),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x4b47c5(0xee)},'mcpConfig':{'title':_0x4b47c5(0xe7),'description':_0x4b47c5(0xe8),'apiKey':_0x4b47c5(0xec),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4b47c5(0xfa),'enableAuthHint':_0x4b47c5(0xf6),'connectionInfo':_0x4b47c5(0xea),'serverEndpoint':_0x4b47c5(0xf3),'sessionId':_0x4b47c5(0xfe),'maxRetries':_0x4b47c5(0xf8),'save':_0x4b47c5(0x103),'saving':_0x4b47c5(0xf0),'note1':_0x4b47c5(0x101),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x4b47c5(0x104),'configError':_0x4b47c5(0xe0),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x4b47c5(0xf4),'univerAiLabel':_0x4b47c5(0x107),'getStarted':_0x4b47c5(0xfd)},'validation':{'apiKeyRequired':_0x4b47c5(0xf1),'apiKeyTooShort':_0x4b47c5(0xeb),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x4b47c5(0xe1),'failed':_0x4b47c5(0xe4),'retrying':_0x4b47c5(0xdf)},'connectionError':{'missingApiKey':_0x4b47c5(0xe6),'invalidApiKey':_0x4b47c5(0xe3),'sessionOccupied':_0x4b47c5(0xf9),'networkError':_0x4b47c5(0xdd),'maxRetriesExceeded':_0x4b47c5(0xdb)}}},n=e;export{n as default};
|