@univerjs-pro/mcp-ui 0.10.10-nightly.202510170942 → 0.10.10-nightly.202510180256
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +6 -6
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x1cdf2b=_0x11c5;function _0x149a(){const _0x5a26f9=['Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20Parameters:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2dQbuhU','Click\x20to\x20connect\x20MCP','Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Save\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connection\x20Failed','8709756UHnILN','Saving...','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20Authentication','MCP\x20Retrying...','Invalid\x20configuration','6DAUpBm','API\x20key\x20is\x20required','Univer\x20AI\x20Console','20pRrMri','MCP:\x20Unauthorized','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Steps:','MCP:\x20Network\x20Error','3ySQmJS','MCP:\x20Max\x20Retries\x20Exceeded','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','1610260eRiHxp','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Unknown\x20Status','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20with\x20Bearer\x20prefix.','8893NhYQIh','8tJmSII','MCP\x20Disconnected','Click\x20to\x20configure\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','622539nSJLbh','Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','2114750cYuCtk','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Client\x20Configuration','MCP\x20Configuration','Configuration\x20saved\x20successfully','280063TaXAsg','817340mbSRql'];_0x149a=function(){return _0x5a26f9;};return _0x149a();}function _0x11c5(_0x25f3c6,_0x5aa4d1){const _0x149ad3=_0x149a();return _0x11c5=function(_0x11c581,_0x2a1a8d){_0x11c581=_0x11c581-0x91;let _0x3016ae=_0x149ad3[_0x11c581];return _0x3016ae;},_0x11c5(_0x25f3c6,_0x5aa4d1);}(function(_0x40ec4b,_0x1cf7fa){const _0x5ed1e9=_0x11c5,_0x5e653a=_0x40ec4b();while(!![]){try{const _0x2f6427=-parseInt(_0x5ed1e9(0xbd))/0x1*(parseInt(_0x5ed1e9(0x9a))/0x2)+-parseInt(_0x5ed1e9(0xb4))/0x3*(parseInt(_0x5ed1e9(0xb8))/0x4)+parseInt(_0x5ed1e9(0x96))/0x5+-parseInt(_0x5ed1e9(0xa9))/0x6*(-parseInt(_0x5ed1e9(0x95))/0x7)+-parseInt(_0x5ed1e9(0xbe))/0x8*(-parseInt(_0x5ed1e9(0xc2))/0x9)+-parseInt(_0x5ed1e9(0xac))/0xa*(parseInt(_0x5ed1e9(0xc6))/0xb)+parseInt(_0x5ed1e9(0xa2))/0xc;if(_0x2f6427===_0x1cf7fa)break;else _0x5e653a['push'](_0x5e653a['shift']());}catch(_0x531547){_0x5e653a['push'](_0x5e653a['shift']());}}}(_0x149a,0x31707));const e={'mcpStatus':{'disconnected':_0x1cdf2b(0xbf),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x1cdf2b(0xa1),'retrying':_0x1cdf2b(0xa7),'unknown':_0x1cdf2b(0xba),'unauthorized':_0x1cdf2b(0xad),'sessionOccupied':_0x1cdf2b(0xb1),'networkError':_0x1cdf2b(0xb3),'maxRetriesExceeded':_0x1cdf2b(0xb5),'clickToConnect':_0x1cdf2b(0x9b),'clickToConfigure':_0x1cdf2b(0xc0)},'mcpConfig':{'title':_0x1cdf2b(0x93),'description':_0x1cdf2b(0x9d),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x1cdf2b(0xa5),'enableAuth':_0x1cdf2b(0xa6),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x1cdf2b(0x92),'configInstructions':_0x1cdf2b(0xb6),'configStepTitle':_0x1cdf2b(0xb2),'configStep1':_0x1cdf2b(0xa4),'configStep2':_0x1cdf2b(0xa0),'configStep3':_0x1cdf2b(0xb7),'sessionId':_0x1cdf2b(0xc7),'sessionIdDescription':_0x1cdf2b(0xb9),'authorizationDescription':_0x1cdf2b(0xbc),'configParameters':_0x1cdf2b(0x98),'maxRetries':'Max\x20Retries','save':_0x1cdf2b(0x9f),'saving':_0x1cdf2b(0xa3),'note1':_0x1cdf2b(0x97),'note2':_0x1cdf2b(0xaf),'configSaved':_0x1cdf2b(0x94),'configError':_0x1cdf2b(0xae),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x1cdf2b(0x99),'univerAiLabel':_0x1cdf2b(0xab),'getStarted':_0x1cdf2b(0xb0)},'validation':{'apiKeyRequired':_0x1cdf2b(0xaa),'apiKeyTooShort':_0x1cdf2b(0xc4),'invalidConfig':_0x1cdf2b(0xa8),'invalidApiKey':_0x1cdf2b(0x91)},'connectionStatus':{'disconnected':_0x1cdf2b(0x9c),'connecting':'Connecting...','connected':'Connected','failed':_0x1cdf2b(0xc3),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x1cdf2b(0x9e),'sessionOccupied':_0x1cdf2b(0xc1),'networkError':_0x1cdf2b(0xbb),'maxRetriesExceeded':_0x1cdf2b(0xc5)}}},n=e;export{n as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x43b228=_0x8fc3;(function(_0x517e25,_0x167949){const _0x2e0529=_0x8fc3,_0x4580d6=_0x517e25();while(!![]){try{const _0x1bae0c=-parseInt(_0x2e0529(0xf3))/0x1+parseInt(_0x2e0529(0xdf))/0x2+-parseInt(_0x2e0529(0xe3))/0x3*(parseInt(_0x2e0529(0x104))/0x4)+parseInt(_0x2e0529(0x106))/0x5+-parseInt(_0x2e0529(0x10a))/0x6*(parseInt(_0x2e0529(0x103))/0x7)+parseInt(_0x2e0529(0xf9))/0x8*(parseInt(_0x2e0529(0xef))/0x9)+parseInt(_0x2e0529(0xf4))/0xa;if(_0x1bae0c===_0x167949)break;else _0x4580d6['push'](_0x4580d6['shift']());}catch(_0x20d555){_0x4580d6['push'](_0x4580d6['shift']());}}}(_0x1895,0xc0a36));function _0x8fc3(_0xf8d3a,_0x44ae18){const _0x18951f=_0x1895();return _0x8fc3=function(_0x8fc359,_0x5b3fc8){_0x8fc359=_0x8fc359-0xde;let _0x34b3be=_0x18951f[_0x8fc359];return _0x34b3be;},_0x8fc3(_0xf8d3a,_0x44ae18);}const e={'mcpStatus':{'disconnected':_0x43b228(0xe6),'connecting':_0x43b228(0x102),'connected':_0x43b228(0xe1),'failed':_0x43b228(0xf2),'retrying':_0x43b228(0xeb),'unknown':_0x43b228(0xec),'unauthorized':_0x43b228(0xf6),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x43b228(0xf7),'clickToConfigure':_0x43b228(0x100)},'mcpConfig':{'title':_0x43b228(0xfc),'description':_0x43b228(0xed),'apiKey':_0x43b228(0xea),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x43b228(0xf0),'enableAuth':_0x43b228(0xe2),'enableAuthHint':_0x43b228(0xf8),'connectionInfo':_0x43b228(0xfa),'mcpClientConfig':_0x43b228(0xfa),'configInstructions':_0x43b228(0xfb),'configStepTitle':_0x43b228(0xe7),'configStep1':_0x43b228(0xe0),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x43b228(0x10b),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x43b228(0xe5),'configParameters':_0x43b228(0x105),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x43b228(0xfd),'note1':_0x43b228(0xfe),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x43b228(0x107),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x43b228(0x109),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x43b228(0xf5)},'validation':{'apiKeyRequired':_0x43b228(0xe4),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x43b228(0xde),'connecting':_0x43b228(0xe8),'connected':'Connected','failed':_0x43b228(0x101),'retrying':_0x43b228(0xe9)},'connectionError':{'unauthorized':_0x43b228(0xf1),'sessionOccupied':_0x43b228(0xff),'networkError':_0x43b228(0x108),'maxRetriesExceeded':_0x43b228(0xee)}}},n=e;export{n as default};function _0x1895(){const _0x270b09=['Click\x20to\x20configure\x20MCP','Connection\x20Failed','MCP\x20Connecting...','10637893XtiYhx','40kLhoLB','Configuration\x20Parameters:','2872415pRDaER','Failed\x20to\x20save\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','6fSsVwm','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Disconnected','1572996nTDRzc','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connected','Enable\x20Authentication','376698nqRHig','API\x20key\x20is\x20required','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Disconnected','Configuration\x20Steps:','Connecting...','Retrying...','API\x20Key','MCP\x20Retrying...','MCP\x20Unknown\x20Status','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','4522257NAIMnG','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connection\x20Failed','1471910ETvyEV','31728610xFrbqk','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Unauthorized','Click\x20to\x20connect\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','8mrUfNX','MCP\x20Client\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Configuration','Saving...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later'];_0x1895=function(){return _0x270b09;};return _0x1895();}
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2c6a(){const _0x231787=['复制以下\x20JSON\x20配置','启用身份验证','配置保存成功','Univer\x20AI\x20控制台','您的\x20API\x20密钥安全存储在本地存储中','78090yaxGtX','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP:\x20会话\x20ID\x20已被占用','API\x20密钥不能为空','点击配置\x20MCP','未连接','187284EZttra','配置步骤:','什么是\x20API\x20密钥?','配置参数:','连接失败','567XdIFff','435MzISHO','MCP\x20重连中...','您的\x20API\x20密钥将在此浏览器中本地存储','会话ID','保存配置','将配置添加到您的\x20MCP\x20客户端设置文件中','请输入您的\x20API\x20密钥','5514pmMCAK','带有\x20Bearer\x20前缀的\x20API\x20密钥。','重连中...','2589769GHIsQx','MCP:\x20超出最大重试次数','15990rXumRe','最大重试次数','MCP\x20客户端配置','配置更改将立即生效','MCP\x20配置','1474fYBQKW','连接中...','配置无效','59552iOFJcc','81252GSKUmd','API\x20密钥无效,请检查密钥是否正确','MCP\x20已断开','316pxXUGo','启用身份验证以获得安全连接','权限验证失败,请检查您的\x20API\x20密钥','API\x20密钥','MCP\x20连接失败','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','已连接','超出最大重试次数,请稍后再试'];_0x2c6a=function(){return _0x231787;};return _0x2c6a();}const _0x43b3b7=_0xf2bf;(function(_0x36f0bb,_0x1f100c){const _0x169825=_0xf2bf,_0x5835d4=_0x36f0bb();while(!![]){try{const _0x2a434a=-parseInt(_0x169825(0x186))/0x1+parseInt(_0x169825(0x178))/0x2*(parseInt(_0x169825(0x171))/0x3)+-parseInt(_0x169825(0x189))/0x4*(parseInt(_0x169825(0x17d))/0x5)+parseInt(_0x169825(0x16b))/0x6+-parseInt(_0x169825(0x17b))/0x7+parseInt(_0x169825(0x185))/0x8*(-parseInt(_0x169825(0x170))/0x9)+parseInt(_0x169825(0x165))/0xa*(parseInt(_0x169825(0x182))/0xb);if(_0x2a434a===_0x1f100c)break;else _0x5835d4['push'](_0x5835d4['shift']());}catch(_0x5d9fdf){_0x5835d4['push'](_0x5835d4['shift']());}}}(_0x2c6a,0x4a5a8));function _0xf2bf(_0x1962d5,_0x12bd63){const _0x2c6a37=_0x2c6a();return _0xf2bf=function(_0xf2bf2,_0x504ce9){_0xf2bf2=_0xf2bf2-0x164;let _0x213ea3=_0x2c6a37[_0xf2bf2];return _0x213ea3;},_0xf2bf(_0x1962d5,_0x12bd63);}const e={'mcpStatus':{'disconnected':_0x43b3b7(0x188),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x43b3b7(0x18d),'retrying':_0x43b3b7(0x172),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x43b3b7(0x167),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x43b3b7(0x17c),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x43b3b7(0x169)},'mcpConfig':{'title':_0x43b3b7(0x181),'description':_0x43b3b7(0x166),'apiKey':_0x43b3b7(0x18c),'apiKeyPlaceholder':_0x43b3b7(0x177),'apiKeyHint':_0x43b3b7(0x173),'enableAuth':_0x43b3b7(0x192),'enableAuthHint':_0x43b3b7(0x18a),'connectionInfo':_0x43b3b7(0x17f),'mcpClientConfig':_0x43b3b7(0x17f),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x43b3b7(0x16c),'configStep1':_0x43b3b7(0x191),'configStep2':_0x43b3b7(0x176),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x43b3b7(0x174),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x43b3b7(0x179),'configParameters':_0x43b3b7(0x16e),'maxRetries':_0x43b3b7(0x17e),'save':_0x43b3b7(0x175),'saving':'保存中...','note1':_0x43b3b7(0x180),'note2':_0x43b3b7(0x164),'configSaved':_0x43b3b7(0x193),'configError':'配置保存失败','apiApplyInfo':{'title':_0x43b3b7(0x16d),'description':_0x43b3b7(0x18e),'univerAiLabel':_0x43b3b7(0x194),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x43b3b7(0x168),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x43b3b7(0x184),'invalidApiKey':_0x43b3b7(0x187)},'connectionStatus':{'disconnected':_0x43b3b7(0x16a),'connecting':_0x43b3b7(0x183),'connected':_0x43b3b7(0x18f),'failed':_0x43b3b7(0x16f),'retrying':_0x43b3b7(0x17a)},'connectionError':{'unauthorized':_0x43b3b7(0x18b),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x43b3b7(0x190)}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2b20e4=_0x515f;function _0x140c(){const _0xea19e2=['Click\x20to\x20connect\x20MCP','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connection\x20Failed','2439608RccahP','MCP\x20Client\x20Configuration','2440046SLVday','Click\x20to\x20configure\x20MCP','3ElEHkI','MCP\x20Unknown\x20Status','API\x20key\x20is\x20required','9440cDbqse','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Steps:','Configuration\x20Parameters:','Configuration\x20saved\x20successfully','MCP\x20Connected','MCP\x20Configuration','Retrying...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20configuration','MCP\x20Retrying...','MCP:\x20Session\x20ID\x20Occupied','Enable\x20authentication\x20for\x20secure\x20connections','5763956vCfDWg','Connected','Disconnected','Univer\x20AI\x20Console','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Saving...','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Unauthorized','3859814iVMGvh','Session\x20ID','MCP:\x20Max\x20Retries\x20Exceeded','4346380sWxgqZ','Failed\x20to\x20save\x20configuration','36vqnlxW','Max\x20Retries','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','3600912ikuFIy'];_0x140c=function(){return _0xea19e2;};return _0x140c();}(function(_0x3d091a,_0x41eaff){const _0x57c116=_0x515f,_0x1ee721=_0x3d091a();while(!![]){try{const _0x3574f9=parseInt(_0x57c116(0x1e2))/0x1+-parseInt(_0x57c116(0x1dd))/0x2*(-parseInt(_0x57c116(0x1df))/0x3)+-parseInt(_0x57c116(0x1f4))/0x4+parseInt(_0x57c116(0x1d0))/0x5+-parseInt(_0x57c116(0x1d5))/0x6+-parseInt(_0x57c116(0x1cd))/0x7+-parseInt(_0x57c116(0x1db))/0x8*(-parseInt(_0x57c116(0x1d2))/0x9);if(_0x3574f9===_0x41eaff)break;else _0x1ee721['push'](_0x1ee721['shift']());}catch(_0x350d3f){_0x1ee721['push'](_0x1ee721['shift']());}}}(_0x140c,0xb13f0));const e={'mcpStatus':{'disconnected':_0x2b20e4(0x1d7),'connecting':'MCP\x20Connecting...','connected':_0x2b20e4(0x1ec),'failed':_0x2b20e4(0x1da),'retrying':_0x2b20e4(0x1f1),'unknown':_0x2b20e4(0x1e0),'unauthorized':_0x2b20e4(0x1cc),'sessionOccupied':_0x2b20e4(0x1f2),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2b20e4(0x1cf),'clickToConnect':_0x2b20e4(0x1d6),'clickToConfigure':_0x2b20e4(0x1de)},'mcpConfig':{'title':_0x2b20e4(0x1ed),'description':_0x2b20e4(0x1f8),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2b20e4(0x1f3),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2b20e4(0x1dc),'configInstructions':_0x2b20e4(0x1ef),'configStepTitle':_0x2b20e4(0x1e9),'configStep1':_0x2b20e4(0x1e4),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2b20e4(0x1e6),'sessionId':_0x2b20e4(0x1ce),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x2b20e4(0x1cb),'configParameters':_0x2b20e4(0x1ea),'maxRetries':_0x2b20e4(0x1d3),'save':'Save\x20Configuration','saving':_0x2b20e4(0x1c9),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2b20e4(0x1e5),'configSaved':_0x2b20e4(0x1eb),'configError':_0x2b20e4(0x1d1),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2b20e4(0x1e8),'univerAiLabel':_0x2b20e4(0x1f7),'getStarted':_0x2b20e4(0x1ca)},'validation':{'apiKeyRequired':_0x2b20e4(0x1e1),'apiKeyTooShort':_0x2b20e4(0x1e7),'invalidConfig':_0x2b20e4(0x1f0),'invalidApiKey':_0x2b20e4(0x1d4)},'connectionStatus':{'disconnected':_0x2b20e4(0x1f6),'connecting':'Connecting...','connected':_0x2b20e4(0x1f5),'failed':'Connection\x20Failed','retrying':_0x2b20e4(0x1ee)},'connectionError':{'unauthorized':_0x2b20e4(0x1d9),'sessionOccupied':_0x2b20e4(0x1e3),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x2b20e4(0x1d8)}}},n=e;function _0x515f(_0x43daf4,_0x4af351){const _0x140ce8=_0x140c();return _0x515f=function(_0x515f42,_0x4f9f73){_0x515f42=_0x515f42-0x1c9;let _0x535671=_0x140ce8[_0x515f42];return _0x535671;},_0x515f(_0x43daf4,_0x4af351);}export{n as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1c8c(_0x4fb6a3,_0x1f9364){var _0x2c94bd=_0x2c94();return _0x1c8c=function(_0x1c8ca4,_0x33917a){_0x1c8ca4=_0x1c8ca4-0x13e;var _0x4a3c3b=_0x2c94bd[_0x1c8ca4];return _0x4a3c3b;},_0x1c8c(_0x4fb6a3,_0x1f9364);}(function(_0x28b43d,_0x38fd91){var _0x37d7c4=_0x1c8c,_0xebada1=_0x28b43d();while(!![]){try{var _0x18062a=parseInt(_0x37d7c4(0x292))/0x1+-parseInt(_0x37d7c4(0x1c8))/0x2*(parseInt(_0x37d7c4(0x259))/0x3)+parseInt(_0x37d7c4(0x2d5))/0x4*(-parseInt(_0x37d7c4(0x2a4))/0x5)+-parseInt(_0x37d7c4(0x1a4))/0x6*(-parseInt(_0x37d7c4(0x1f0))/0x7)+parseInt(_0x37d7c4(0x1b4))/0x8+parseInt(_0x37d7c4(0x182))/0x9+-parseInt(_0x37d7c4(0x1d5))/0xa*(parseInt(_0x37d7c4(0x16c))/0xb);if(_0x18062a===_0x38fd91)break;else _0xebada1['push'](_0xebada1['shift']());}catch(_0x152d80){_0xebada1['push'](_0xebada1['shift']());}}}(_0x2c94,0x4782b),function(_0x24cb8a,_0x46ed2){var _0x34dfd8=_0x1c8c;typeof exports==_0x34dfd8(0x18c)&&typeof module<'u'?_0x46ed2(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define=='function'&&define[_0x34dfd8(0x204)]?define(['exports',_0x34dfd8(0x218),'react/jsx-runtime',_0x34dfd8(0x223),_0x34dfd8(0x289),_0x34dfd8(0x1d2),_0x34dfd8(0x170),_0x34dfd8(0x26e),_0x34dfd8(0x1bb)],_0x46ed2):(_0x24cb8a=typeof globalThis<'u'?globalThis:_0x24cb8a||self,_0x46ed2(_0x24cb8a[_0x34dfd8(0x169)]={},_0x24cb8a[_0x34dfd8(0x24f)],_0x24cb8a['React'],_0x24cb8a[_0x34dfd8(0x21d)],_0x24cb8a[_0x34dfd8(0x196)],_0x24cb8a[_0x34dfd8(0x26f)],_0x24cb8a[_0x34dfd8(0x170)],_0x24cb8a[_0x34dfd8(0x230)],_0x24cb8a[_0x34dfd8(0x2b2)]));}(this,function(_0x44d561,_0x49000b,_0x54c16e,_0x1f49aa,_0x23fa2f,_0x245ec2,_0x4d1ab4,_0x438a15,_0x546f84){'use strict';var _0x274847=_0x1c8c;var _0x42135c=Object[_0x274847(0x1ee)],_0x4aa3aa=(_0x2f17d0,_0x1d7846,_0x151b22)=>_0x1d7846 in _0x2f17d0?_0x42135c(_0x2f17d0,_0x1d7846,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x151b22}):_0x2f17d0[_0x1d7846]=_0x151b22,_0xe254a5=(_0x5e082e,_0x214574,_0x7fa066)=>_0x4aa3aa(_0x5e082e,typeof _0x214574!='symbol'?_0x214574+'':_0x214574,_0x7fa066),_0x4c35de=function(){var _0x2a20b8=_0x274847;return _0x4c35de=Object[_0x2a20b8(0x2c9)]||function(_0x3a404f){var _0x33669b=_0x2a20b8;for(var _0x2dd77e,_0x44bb2c=0x1,_0x1ce514=arguments[_0x33669b(0x248)];_0x44bb2c<_0x1ce514;_0x44bb2c++){_0x2dd77e=arguments[_0x44bb2c];for(var _0x453f67 in _0x2dd77e)Object[_0x33669b(0x201)]['hasOwnProperty'][_0x33669b(0x20a)](_0x2dd77e,_0x453f67)&&(_0x3a404f[_0x453f67]=_0x2dd77e[_0x453f67]);}return _0x3a404f;},_0x4c35de[_0x2a20b8(0x19b)](this,arguments);},_0x3e187f=function(_0x583259,_0x34e7be){var _0x43d5a2=_0x274847,_0x1fdb92={};for(var _0x3aa617 in _0x583259)Object['prototype'][_0x43d5a2(0x26d)]['call'](_0x583259,_0x3aa617)&&_0x34e7be[_0x43d5a2(0x1ae)](_0x3aa617)<0x0&&(_0x1fdb92[_0x3aa617]=_0x583259[_0x3aa617]);if(_0x583259!=null&&typeof Object[_0x43d5a2(0x1c0)]=='function'){for(var _0x2ace4f=0x0,_0x3aa617=Object[_0x43d5a2(0x1c0)](_0x583259);_0x2ace4f<_0x3aa617[_0x43d5a2(0x248)];_0x2ace4f++)_0x34e7be[_0x43d5a2(0x1ae)](_0x3aa617[_0x2ace4f])<0x0&&Object[_0x43d5a2(0x201)]['propertyIsEnumerable'][_0x43d5a2(0x20a)](_0x583259,_0x3aa617[_0x2ace4f])&&(_0x1fdb92[_0x3aa617[_0x2ace4f]]=_0x583259[_0x3aa617[_0x2ace4f]]);}return _0x1fdb92;},_0x3fcce2=_0x438a15['forwardRef'](function(_0x438f81,_0x3a5b1f){var _0x50b7b4=_0x274847,_0x59f63e=_0x438f81[_0x50b7b4(0x2da)],_0x34d055=_0x438f81['id'],_0x23f66a=_0x438f81[_0x50b7b4(0x2cf)],_0x45eb43=_0x438f81[_0x50b7b4(0x237)],_0x54ddce=_0x3e187f(_0x438f81,[_0x50b7b4(0x2da),'id',_0x50b7b4(0x2cf),'extend']),_0xa7cdba=_0x50b7b4(0x151)['concat'](_0x34d055,'\x20')[_0x50b7b4(0x282)](_0x23f66a||'')[_0x50b7b4(0x2cb)](),_0x583780=_0x438a15[_0x50b7b4(0x1db)]('_'['concat'](_0x2650c9()));return _0x478333(_0x59f63e,''[_0x50b7b4(0x282)](_0x34d055),{'defIds':_0x59f63e['defIds'],'idSuffix':_0x583780[_0x50b7b4(0x1ef)]},_0x4c35de({'ref':_0x3a5b1f,'className':_0xa7cdba},_0x54ddce),_0x45eb43);});function _0x478333(_0x5ab11b,_0x2632db,_0x5d1ac8,_0x4d00de,_0x455944){var _0xda9154=_0x274847;return _0x438a15[_0xda9154(0x261)](_0x5ab11b[_0xda9154(0x171)],_0x4c35de(_0x4c35de({'key':_0x2632db},_0x2532ca(_0x5ab11b,_0x5d1ac8,_0x455944)),_0x4d00de),(_0x37a4b7(_0x5ab11b,_0x5d1ac8)[_0xda9154(0x158)]||[])['map'](function(_0x37fa72,_0x566f8e){var _0x561481=_0xda9154;return _0x478333(_0x37fa72,''[_0x561481(0x282)](_0x2632db,'-')['concat'](_0x5ab11b[_0x561481(0x171)],'-')[_0x561481(0x282)](_0x566f8e),_0x5d1ac8,void 0x0,_0x455944);}));}function _0x2532ca(_0x4dafc3,_0x1d51bb,_0x3b1c1f){var _0x4b280b=_0x274847,_0x446c18=_0x4c35de({},_0x4dafc3[_0x4b280b(0x1e2)]);_0x3b1c1f!=null&&_0x3b1c1f[_0x4b280b(0x1cc)]&&_0x446c18[_0x4b280b(0x278)]===_0x4b280b(0x1cc)&&(_0x446c18[_0x4b280b(0x278)]=_0x3b1c1f[_0x4b280b(0x1cc)]),_0x4dafc3[_0x4b280b(0x171)]===_0x4b280b(0x2dc)&&_0x446c18['id']&&(_0x446c18['id']=_0x446c18['id']+_0x1d51bb['idSuffix']),Object['entries'](_0x446c18)[_0x4b280b(0x202)](function(_0x34b015){var _0x432bb7=_0x4b280b,_0x24546b=_0x34b015[0x0],_0x4c93db=_0x34b015[0x1];_0x24546b===_0x432bb7(0x2dc)&&typeof _0x4c93db==_0x432bb7(0x20e)&&(_0x446c18[_0x24546b]=_0x4c93db[_0x432bb7(0x1fb)](/url\(#(.*)\)/,_0x432bb7(0x2b1)[_0x432bb7(0x282)](_0x1d51bb[_0x432bb7(0x23a)],')')));});var _0x1b024a=_0x1d51bb[_0x4b280b(0x1d6)];return!_0x1b024a||_0x1b024a[_0x4b280b(0x248)]===0x0||(_0x4dafc3[_0x4b280b(0x171)]===_0x4b280b(0x238)&&_0x446c18[_0x4b280b(0x21a)]&&(_0x446c18[_0x4b280b(0x21a)]=_0x446c18['xlink:href']+_0x1d51bb[_0x4b280b(0x23a)]),Object[_0x4b280b(0x19f)](_0x446c18)['forEach'](function(_0x47a9d1){var _0x22643f=_0x4b280b,_0x38efb7=_0x47a9d1[0x0],_0x5cf0eb=_0x47a9d1[0x1];typeof _0x5cf0eb==_0x22643f(0x20e)&&(_0x446c18[_0x38efb7]=_0x5cf0eb[_0x22643f(0x1fb)](/url\(#(.*)\)/,'url(#$1'[_0x22643f(0x282)](_0x1d51bb[_0x22643f(0x23a)],')')));})),_0x446c18;}function _0x37a4b7(_0x3b2837,_0x2ec4fc){var _0x49ea35=_0x274847,_0x2dceab,_0x517974=_0x2ec4fc[_0x49ea35(0x1d6)];return!_0x517974||_0x517974[_0x49ea35(0x248)]===0x0?_0x3b2837:_0x3b2837[_0x49ea35(0x171)]===_0x49ea35(0x17c)&&(!((_0x2dceab=_0x3b2837[_0x49ea35(0x158)])===null||_0x2dceab===void 0x0)&&_0x2dceab[_0x49ea35(0x248)])?_0x4c35de(_0x4c35de({},_0x3b2837),{'children':_0x3b2837[_0x49ea35(0x158)]['map'](function(_0x27490b){var _0x583dd5=_0x49ea35;return typeof _0x27490b[_0x583dd5(0x1e2)]['id']=='string'&&_0x517974&&_0x517974[_0x583dd5(0x2b4)](_0x27490b['attrs']['id'])?_0x4c35de(_0x4c35de({},_0x27490b),{'attrs':_0x4c35de(_0x4c35de({},_0x27490b['attrs']),{'id':_0x27490b['attrs']['id']+_0x2ec4fc[_0x583dd5(0x23a)]})}):_0x27490b;})}):_0x3b2837;}function _0x2650c9(){var _0x4bd4c6=_0x274847;return Math[_0x4bd4c6(0x20d)]()[_0x4bd4c6(0x22d)](0x24)[_0x4bd4c6(0x22a)](0x2,0x8);}_0x3fcce2[_0x274847(0x1c3)]=_0x274847(0x2ab);var _0x35beee={'tag':_0x274847(0x1eb),'attrs':{'xmlns':_0x274847(0x291),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x274847(0x141),'height':_0x274847(0x141)},'children':[{'tag':_0x274847(0x2d9),'attrs':{'fill':_0x274847(0x245),'d':_0x274847(0x29e),'fillRule':_0x274847(0x14b),'clipRule':_0x274847(0x14b)}}]},_0x5a25ab=_0x438a15[_0x274847(0x210)](function(_0x37c757,_0x401bc8){var _0x36e1cf=_0x274847;return _0x438a15[_0x36e1cf(0x261)](_0x3fcce2,Object[_0x36e1cf(0x2c9)]({},_0x37c757,{'id':_0x36e1cf(0x2c4),'ref':_0x401bc8,'icon':_0x35beee}));});_0x5a25ab[_0x274847(0x1c3)]=_0x274847(0x203);var _0x36aa64={'tag':_0x274847(0x1eb),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x274847(0x251),'viewBox':_0x274847(0x16f),'width':'1em','height':_0x274847(0x141)},'children':[{'tag':'path','attrs':{'stroke':_0x274847(0x245),'d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x274847(0x214),'strokeLinejoin':_0x274847(0x214),'strokeWidth':1.33}},{'tag':_0x274847(0x2d9),'attrs':{'stroke':_0x274847(0x245),'d':'M5.21243\x2012.287L11.8791\x205.62036','strokeLinecap':'round','strokeLinejoin':_0x274847(0x214),'strokeWidth':1.33}}]},_0x31bf01=_0x438a15[_0x274847(0x210)](function(_0x21f62a,_0x4afb66){var _0x32c964=_0x274847;return _0x438a15[_0x32c964(0x261)](_0x3fcce2,Object[_0x32c964(0x2c9)]({},_0x21f62a,{'id':_0x32c964(0x276),'ref':_0x4afb66,'icon':_0x36aa64}));});_0x31bf01[_0x274847(0x1c3)]=_0x274847(0x25c);var _0x3a5b78={'tag':_0x274847(0x1eb),'attrs':{'xmlns':_0x274847(0x291),'fill':'none','viewBox':_0x274847(0x1b3),'width':'1em','height':_0x274847(0x141)},'children':[{'tag':_0x274847(0x2d9),'attrs':{'fill':_0x274847(0x245),'d':_0x274847(0x216)}},{'tag':_0x274847(0x2d9),'attrs':{'fill':_0x274847(0x245),'d':_0x274847(0x281)}},{'tag':_0x274847(0x2d9),'attrs':{'fill':_0x274847(0x245),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x274847(0x14b),'clipRule':_0x274847(0x14b)}}]},_0x1e4dd1=_0x438a15[_0x274847(0x210)](function(_0x5ade9a,_0x5557a9){var _0x5970aa=_0x274847;return _0x438a15[_0x5970aa(0x261)](_0x3fcce2,Object['assign']({},_0x5ade9a,{'id':_0x5970aa(0x24a),'ref':_0x5557a9,'icon':_0x3a5b78}));});_0x1e4dd1[_0x274847(0x1c3)]=_0x274847(0x269);var _0x3a2c67={'tag':_0x274847(0x1eb),'attrs':{'xmlns':_0x274847(0x291),'fill':_0x274847(0x251),'viewBox':_0x274847(0x1b3),'width':_0x274847(0x141),'height':_0x274847(0x141)},'children':[{'tag':'g','attrs':{'clipPath':_0x274847(0x1f4)},'children':[{'tag':_0x274847(0x2d9),'attrs':{'stroke':'currentColor','d':_0x274847(0x2dd),'strokeLinecap':_0x274847(0x214),'strokeLinejoin':_0x274847(0x214),'strokeWidth':1.2}}]},{'tag':_0x274847(0x17c),'attrs':{},'children':[{'tag':_0x274847(0x26b),'attrs':{'id':_0x274847(0x208)},'children':[{'tag':'path','attrs':{'fill':_0x274847(0x187),'d':_0x274847(0x21b)}}]}]}],'defIds':[_0x274847(0x208)]},_0x485531=_0x438a15[_0x274847(0x210)](function(_0x1ca0e0,_0x6dc86a){var _0x3c0128=_0x274847;return _0x438a15[_0x3c0128(0x261)](_0x3fcce2,Object[_0x3c0128(0x2c9)]({},_0x1ca0e0,{'id':_0x3c0128(0x1e5),'ref':_0x6dc86a,'icon':_0x3a2c67}));});_0x485531[_0x274847(0x1c3)]=_0x274847(0x1f6);var _0x45aded={'tag':'svg','attrs':{'xmlns':_0x274847(0x291),'fill':_0x274847(0x251),'viewBox':_0x274847(0x249),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x274847(0x20c)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x274847(0x23f),'strokeLinecap':_0x274847(0x214),'strokeLinejoin':_0x274847(0x214),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x274847(0x26b),'attrs':{'id':_0x274847(0x284)},'children':[{'tag':_0x274847(0x2d9),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x274847(0x166)}}]}]}],'defIds':[_0x274847(0x284)]},_0x37ce2e=_0x438a15['forwardRef'](function(_0xd82b60,_0x4df3d8){var _0x402f9a=_0x274847;return _0x438a15[_0x402f9a(0x261)](_0x3fcce2,Object[_0x402f9a(0x2c9)]({},_0xd82b60,{'id':_0x402f9a(0x1f1),'ref':_0x4df3d8,'icon':_0x45aded}));});_0x37ce2e['displayName']=_0x274847(0x228);function _0x36ac82(_0x2a13bf){var _0x582c58=_0x274847,_0x39f6b7,_0x1bbce2;const {mcpCoreConfig:_0x5474e4,onSave:_0x49def9,loading:_0x5b3348=!0x1,config:_0x4dcb28,connectionStatus$:_0x44b52c,connectionError$:_0x1e3f84,currentApiKey$:_0x2df589,currentSessionId$:_0x1b4deb}=_0x2a13bf,_0x415b98=_0x245ec2['useDependency'](_0x49000b['LocaleService']),_0x28ccf7=_0x245ec2[_0x582c58(0x2d4)](_0x44b52c,_0x1f49aa[_0x582c58(0x28e)]['DISCONNECTED']),_0x554fd0=_0x245ec2[_0x582c58(0x2d4)](_0x1e3f84,_0x1f49aa[_0x582c58(0x2c1)][_0x582c58(0x15d)]),_0x1fcdaf=_0x245ec2[_0x582c58(0x2d4)](_0x1b4deb,''),_0x3751cd=_0x245ec2[_0x582c58(0x2d4)](_0x2df589,''),[_0x35dfeb,_0x4862ea]=_0x438a15['useState'](_0x3751cd||''),_0x498470=!0x0,_0x316691=_0x4dcb28['showDeveloperTools']&&_0x5474e4[_0x582c58(0x1bc)]&&(_0x5474e4[_0x582c58(0x1bc)][_0x582c58(0x2b4)]('univer.plus')||_0x5474e4[_0x582c58(0x1bc)]['includes']('univer.ai')),_0x46f274=(_0x39f6b7=_0x5474e4[_0x582c58(0x1bc)])==null?void 0x0:_0x39f6b7[_0x582c58(0x2b4)]('univer.plus'),_0x5c091a=(_0x1bbce2=_0x5474e4[_0x582c58(0x1bc)])==null?void 0x0:_0x1bbce2[_0x582c58(0x2b4)](_0x582c58(0x1f8)),_0x24ddaf=_0x46f274?_0x582c58(0x1f2):_0x582c58(0x25a),_0x3c5c1b=_0x4dcb28['showDeveloperTools']&&(_0x46f274||_0x5c091a),[_0x462cd3,_0x543089]=_0x438a15['useState'](!_0x35dfeb['trim']()),_0x3c5431=(_0x17df16,_0x471e3e)=>{var _0x5cb444=_0x582c58;if(_0x471e3e===_0x1f49aa[_0x5cb444(0x2c1)][_0x5cb444(0x231)])return _0x5cb444(0x148);switch(_0x17df16){case _0x1f49aa[_0x5cb444(0x28e)]['CONNECTED']:return _0x5cb444(0x1ea);case _0x1f49aa['MCPConnectionStatus']['CONNECTING']:case _0x1f49aa[_0x5cb444(0x28e)][_0x5cb444(0x24e)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x1f49aa[_0x5cb444(0x28e)][_0x5cb444(0x164)]:return _0x5cb444(0x148);default:return _0x5cb444(0x28f);}},_0x5b15b1=(_0x91e3b0,_0x35c2b9)=>{var _0x40db66=_0x582c58;if(_0x35c2b9===_0x1f49aa[_0x40db66(0x2c1)][_0x40db66(0x231)])return _0x40db66(0x2cc);switch(_0x91e3b0){case _0x1f49aa[_0x40db66(0x28e)][_0x40db66(0x21f)]:return'univer-bg-green-500';case _0x1f49aa['MCPConnectionStatus'][_0x40db66(0x293)]:case _0x1f49aa[_0x40db66(0x28e)][_0x40db66(0x24e)]:return _0x40db66(0x1c4);case _0x1f49aa[_0x40db66(0x28e)][_0x40db66(0x164)]:return'univer-bg-red-500';default:return _0x40db66(0x181);}},_0x489cd8=_0xdf677b=>{var _0x1b783e=_0x582c58;switch(_0xdf677b){case _0x1f49aa[_0x1b783e(0x28e)][_0x1b783e(0x21f)]:return _0x415b98['t'](_0x1b783e(0x1aa));case _0x1f49aa[_0x1b783e(0x28e)]['CONNECTING']:return _0x415b98['t'](_0x1b783e(0x2aa));case _0x1f49aa[_0x1b783e(0x28e)][_0x1b783e(0x164)]:return _0x415b98['t'](_0x1b783e(0x18d));case _0x1f49aa[_0x1b783e(0x28e)][_0x1b783e(0x24e)]:return _0x415b98['t'](_0x1b783e(0x2a5));default:return _0x415b98['t']('mcpConfig.connectionStatus.disconnected');}},_0x577caa=_0x37195e=>{var _0x3967fa=_0x582c58;switch(_0x37195e){case _0x1f49aa[_0x3967fa(0x2c1)][_0x3967fa(0x231)]:return _0x415b98['t'](_0x3967fa(0x298));case _0x1f49aa[_0x3967fa(0x2c1)][_0x3967fa(0x29f)]:return _0x415b98['t'](_0x3967fa(0x156));case _0x1f49aa[_0x3967fa(0x2c1)][_0x3967fa(0x15a)]:return _0x415b98['t'](_0x3967fa(0x184));case _0x1f49aa[_0x3967fa(0x2c1)][_0x3967fa(0x2be)]:return _0x415b98['t'](_0x3967fa(0x1df));default:return'';}},_0x3bb052=_0x438a15['useCallback'](()=>{var _0x3b636f=_0x582c58;const _0x55ba63={..._0x5474e4,'apiKey':_0x35dfeb[_0x3b636f(0x2cb)](),'enableAuth':_0x498470};_0x49def9(_0x55ba63);},[_0x5474e4,_0x35dfeb,_0x498470,_0x49def9]),_0x51f606=_0x35dfeb[_0x582c58(0x2cb)]()[_0x582c58(0x248)]>0x0;return _0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':_0x582c58(0x17a),'children':[_0x54c16e[_0x582c58(0x212)](_0x582c58(0x197),{'className':_0x582c58(0x206),'children':_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':_0x582c58(0x1b5),'children':[_0x54c16e[_0x582c58(0x212)]('div',{'className':'univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x54c16e[_0x582c58(0x212)](_0x582c58(0x264),{'className':_0x582c58(0x1b1),'children':'⚙'})}),_0x54c16e[_0x582c58(0x212)](_0x582c58(0x197),{'children':_0x54c16e['jsx']('p',{'className':_0x582c58(0x1cb),'children':_0x415b98['t'](_0x582c58(0x190))})})]})}),_0x54c16e['jsxs'](_0x582c58(0x197),{'className':_0x582c58(0x1af),'children':[_0x54c16e[_0x582c58(0x212)](_0x582c58(0x197),{'className':_0x582c58(0x1da)+_0x3c5431(_0x28ccf7,_0x554fd0)+_0x582c58(0x2e0),'children':_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':_0x582c58(0x28a),'children':[_0x54c16e[_0x582c58(0x212)](_0x582c58(0x197),{'className':_0x582c58(0x1ec)+_0x5b15b1(_0x28ccf7,_0x554fd0)+_0x582c58(0x159)}),_0x54c16e[_0x582c58(0x212)]('span',{'className':_0x582c58(0x2bc),'children':_0x489cd8(_0x28ccf7)})]})}),_0x554fd0!==_0x1f49aa[_0x582c58(0x2c1)][_0x582c58(0x15d)]&&(_0x28ccf7===_0x1f49aa['MCPConnectionStatus'][_0x582c58(0x164)]||_0x554fd0===_0x1f49aa[_0x582c58(0x2c1)][_0x582c58(0x231)])&&_0x54c16e[_0x582c58(0x212)](_0x582c58(0x197),{'className':_0x582c58(0x241),'children':_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':_0x582c58(0x1e9),'children':[_0x54c16e['jsx']('span',{'className':_0x582c58(0x1d9),'children':'⚠️'}),_0x54c16e['jsx']('p',{'className':_0x582c58(0x232),'children':_0x577caa(_0x554fd0)})]})})]}),_0x54c16e['jsx'](_0x582c58(0x197),{'className':_0x582c58(0x1d8),'children':_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':_0x582c58(0x22f),'children':[_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':_0x582c58(0x23d),'children':[_0x54c16e['jsxs'](_0x582c58(0x168),{'className':_0x582c58(0x24c),'children':[_0x54c16e[_0x582c58(0x212)](_0x582c58(0x264),{'children':'🔑'}),'\x20',_0x415b98['t']('mcpConfig.apiKey'),_0x54c16e[_0x582c58(0x212)](_0x582c58(0x264),{'className':_0x582c58(0x258),'children':'*'}),_0x316691&&_0x54c16e['jsx']('a',{'href':'javascript:void(0)','onClick':()=>_0x543089(!0x0),'className':_0x582c58(0x143),'title':_0x415b98['t']('mcpConfig.apiApplyInfo.title'),'children':_0x54c16e[_0x582c58(0x212)](_0x1e4dd1,{})})]}),_0x54c16e[_0x582c58(0x212)](_0x23fa2f[_0x582c58(0x25f)],{'type':_0x582c58(0x1dd),'placeholder':_0x415b98['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x35dfeb,'onChange':_0x4862ea,'disabled':_0x5b3348,'autoComplete':_0x582c58(0x2b3)}),_0x54c16e[_0x582c58(0x212)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x415b98['t']('mcpConfig.apiKeyHint')})]}),_0x316691&&_0x462cd3&&_0x54c16e[_0x582c58(0x1ff)]('div',{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x54c16e[_0x582c58(0x212)]('a',{'href':'javascript:void(0)','onClick':()=>_0x543089(!0x1),'className':_0x582c58(0x2b5),'title':_0x582c58(0x1a7),'children':_0x54c16e['jsx'](_0x31bf01,{})}),_0x54c16e['jsxs'](_0x582c58(0x197),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x54c16e[_0x582c58(0x212)]('div',{'className':_0x582c58(0x1b0),'children':_0x54c16e[_0x582c58(0x212)]('span',{'className':_0x582c58(0x176),'children':'🚀'})}),_0x54c16e['jsxs'](_0x582c58(0x197),{'className':_0x582c58(0x260),'children':[_0x54c16e[_0x582c58(0x212)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x415b98['t'](_0x582c58(0x250))}),_0x54c16e[_0x582c58(0x212)]('p',{'className':_0x582c58(0x14a),'children':_0x415b98['t'](_0x582c58(0x19a))}),_0x54c16e['jsx'](_0x582c58(0x197),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x3c5c1b&&_0x54c16e[_0x582c58(0x1ff)]('a',{'href':_0x24ddaf,'target':_0x582c58(0x227),'rel':'noopener\x20noreferrer','className':_0x582c58(0x13f),'children':[_0x54c16e[_0x582c58(0x212)]('span',{'children':'🤖'}),_0x415b98['t'](_0x582c58(0x191)),_0x54c16e[_0x582c58(0x212)]('span',{'className':_0x582c58(0x266),'children':'↗'})]})}),_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':_0x582c58(0x198),'children':['✨','\x20',_0x415b98['t'](_0x582c58(0x262))]})]})]})]}),_0x4dcb28['showDeveloperTools']&&_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':_0x582c58(0x155),'children':[_0x54c16e[_0x582c58(0x1ff)]('h4',{'className':_0x582c58(0x27c),'children':[_0x54c16e['jsx'](_0x582c58(0x264),{'children':'🔗'}),'\x20',_0x415b98['t'](_0x582c58(0x220))]}),_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':_0x582c58(0x217),'children':[_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':_0x582c58(0x2a7),'children':[_0x54c16e[_0x582c58(0x212)]('p',{'className':_0x582c58(0x222),'children':_0x415b98['t'](_0x582c58(0x16d))}),_0x54c16e[_0x582c58(0x1ff)]('div',{'className':_0x582c58(0x23d),'children':[_0x54c16e[_0x582c58(0x212)](_0x582c58(0x197),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x415b98['t'](_0x582c58(0x1bd))}),_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':_0x582c58(0x13e),'children':[_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x54c16e[_0x582c58(0x212)](_0x582c58(0x264),{'className':_0x582c58(0x1dc),'children':'1'}),_0x415b98['t'](_0x582c58(0x2df))]}),_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x54c16e[_0x582c58(0x212)]('span',{'className':_0x582c58(0x1dc),'children':'2'}),_0x415b98['t']('mcpConfig.configStep2')]}),_0x54c16e[_0x582c58(0x1ff)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x54c16e['jsx'](_0x582c58(0x264),{'className':_0x582c58(0x1dc),'children':'3'}),_0x415b98['t']('mcpConfig.configStep3')]})]})]})]}),_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':_0x582c58(0x23d),'children':[_0x54c16e[_0x582c58(0x212)](_0x582c58(0x197),{'className':_0x582c58(0x2b8),'children':_0x582c58(0x2b9)}),_0x54c16e[_0x582c58(0x212)](_0x582c58(0x197),{'className':_0x582c58(0x2a2),'children':_0x54c16e[_0x582c58(0x212)](_0x582c58(0x1cd),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0x1fcdaf+'\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20'+(_0x35dfeb||_0x582c58(0x2a6))+_0x582c58(0x1a1)})})]}),_0x54c16e['jsxs'](_0x582c58(0x197),{'className':_0x582c58(0x2a7),'children':[_0x54c16e['jsx'](_0x582c58(0x197),{'className':_0x582c58(0x2b8),'children':_0x415b98['t'](_0x582c58(0x1e3))}),_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':_0x582c58(0x23d),'children':[_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':_0x582c58(0x275),'children':[_0x54c16e[_0x582c58(0x212)](_0x582c58(0x197),{'className':_0x582c58(0x243)}),_0x54c16e['jsxs']('div',{'className':_0x582c58(0x219),'children':[_0x54c16e['jsx'](_0x582c58(0x197),{'className':_0x582c58(0x186),'children':_0x582c58(0x2ad)}),_0x54c16e['jsx'](_0x582c58(0x197),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x415b98['t'](_0x582c58(0x2ca))})]})]}),_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':_0x582c58(0x275),'children':[_0x54c16e['jsx'](_0x582c58(0x197),{'className':_0x582c58(0x243)}),_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':_0x582c58(0x219),'children':[_0x54c16e['jsx'](_0x582c58(0x197),{'className':_0x582c58(0x186),'children':_0x582c58(0x246)}),_0x54c16e[_0x582c58(0x212)](_0x582c58(0x197),{'className':_0x582c58(0x1c7),'children':_0x415b98['t'](_0x582c58(0x18a))})]})]})]})]})]})]}),_0x54c16e[_0x582c58(0x212)](_0x23fa2f[_0x582c58(0x299)],{'onClick':_0x3bb052,'disabled':!_0x51f606||_0x5b3348,'className':_0x582c58(0x22b),'children':_0x5b3348?_0x54c16e['jsxs']('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x54c16e[_0x582c58(0x212)](_0x582c58(0x264),{'children':'⟲'}),_0x415b98['t'](_0x582c58(0x1ab))]}):_0x54c16e['jsxs'](_0x582c58(0x264),{'className':_0x582c58(0x28a),'children':[_0x54c16e['jsx'](_0x5a25ab,{}),_0x415b98['t'](_0x582c58(0x1d4))]})}),_0x54c16e[_0x582c58(0x212)](_0x582c58(0x197),{'className':_0x582c58(0x265),'children':_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'className':_0x582c58(0x290),'children':[_0x54c16e[_0x582c58(0x212)]('span',{'className':_0x582c58(0x1a2),'children':'💡'}),_0x54c16e['jsxs'](_0x582c58(0x197),{'className':_0x582c58(0x2d1),'children':[_0x54c16e[_0x582c58(0x212)](_0x582c58(0x197),{'className':'univer-font-medium','children':_0x582c58(0x1be)}),_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'children':['•',_0x415b98['t'](_0x582c58(0x145))]}),_0x54c16e[_0x582c58(0x1ff)](_0x582c58(0x197),{'children':['•',_0x415b98['t'](_0x582c58(0x1ad))]})]})]})})]})})]});}const _0x16660e=_0x274847(0x1bf),_0x26a069={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x1faf26=Object[_0x274847(0x272)],_0x269566=(_0x20a6d9,_0x5bb228,_0x513689,_0x1d4d07)=>{var _0x2cd37f=_0x274847;for(var _0xf4a6e3=_0x1d4d07>0x1?void 0x0:_0x1d4d07?_0x1faf26(_0x5bb228,_0x513689):_0x5bb228,_0x1da106=_0x20a6d9[_0x2cd37f(0x248)]-0x1,_0x2af2fb;_0x1da106>=0x0;_0x1da106--)(_0x2af2fb=_0x20a6d9[_0x1da106])&&(_0xf4a6e3=_0x2af2fb(_0xf4a6e3)||_0xf4a6e3);return _0xf4a6e3;},_0x2eec58=(_0x4db418,_0x4cd9d8)=>(_0x1dfcca,_0x54318d)=>_0x4cd9d8(_0x1dfcca,_0x54318d,_0x4db418);const _0x3c98a5=_0x274847(0x180),_0x10ec80=_0x274847(0x295);_0x44d561[_0x274847(0x239)]=class extends _0x49000b['Disposable']{constructor(_0x436a8b,_0x54f46b,_0x2ef602,_0x3a0569,_0x3a3546,_0x58c5d7,_0x3da32b,_0x3356ff,_0x8d7b90,_0x4579e3){var _0x104b94=_0x274847;super(),_0xe254a5(this,_0x104b94(0x1d7),new _0x4d1ab4['BehaviorSubject'](!0x1)),_0xe254a5(this,'_mcpCoreConfig$',new _0x4d1ab4[(_0x104b94(0x1b7))]({})),_0xe254a5(this,_0x104b94(0x162),new _0x4d1ab4[(_0x104b94(0x1b7))]({})),_0xe254a5(this,_0x104b94(0x27e),new _0x4d1ab4[(_0x104b94(0x1b7))]('')),_0xe254a5(this,'_handleConfigSave',async _0x3fa7a3=>{var _0x3af620=_0x104b94,_0x4fe2d7,_0x11f8d6;this['_loading$'][_0x3af620(0x28c)](!0x0);try{const _0x3aeb73=await this[_0x3af620(0x1a6)](_0x3fa7a3);if(!_0x3aeb73[_0x3af620(0x280)]){this[_0x3af620(0x1f5)][_0x3af620(0x1e4)]({'type':_0x23fa2f['MessageType'][_0x3af620(0x2de)],'content':_0x3aeb73[_0x3af620(0x277)]||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0x3fa7a3[_0x3af620(0x296)]?await this[_0x3af620(0x2b6)]['setItem'](_0x3c98a5,_0x3fa7a3[_0x3af620(0x296)][_0x3af620(0x2cb)]()):await this[_0x3af620(0x2b6)]['removeItem'](_0x3c98a5),this['_apiKey$'][_0x3af620(0x28c)](((_0x4fe2d7=_0x3fa7a3[_0x3af620(0x296)])==null?void 0x0:_0x4fe2d7[_0x3af620(0x2cb)]())||''),this['_mcpConnectionController'][_0x3af620(0x1ca)]({'Authorization':_0x3af620(0x240)+((_0x11f8d6=_0x3fa7a3[_0x3af620(0x296)])==null?void 0x0:_0x11f8d6[_0x3af620(0x2cb)]())}),this[_0x3af620(0x1f5)][_0x3af620(0x1e4)]({'type':_0x23fa2f[_0x3af620(0x1f3)][_0x3af620(0x288)],'content':this[_0x3af620(0x270)]['t'](_0x3af620(0x195))}),setTimeout(()=>{this['_dialogService']['close'](_0x10ec80);},0x320);}catch(_0xe13187){this[_0x3af620(0x28b)][_0x3af620(0x14f)](_0x3af620(0x283),_0xe13187),this[_0x3af620(0x1f5)][_0x3af620(0x1e4)]({'type':_0x23fa2f[_0x3af620(0x1f3)][_0x3af620(0x2de)],'content':this[_0x3af620(0x270)]['t'](_0x3af620(0x1a8))});}finally{this[_0x3af620(0x1d7)][_0x3af620(0x28c)](!0x1);}}),(this[_0x104b94(0x29d)]=_0x436a8b,this[_0x104b94(0x2b7)]=_0x54f46b,this[_0x104b94(0x179)]=_0x2ef602,this['_localStorageService']=_0x3a0569,this[_0x104b94(0x2c2)]=_0x3a3546,this[_0x104b94(0x1f5)]=_0x58c5d7,this[_0x104b94(0x1cf)]=_0x3da32b,this['_localeService']=_0x3356ff,this[_0x104b94(0x28b)]=_0x8d7b90,this[_0x104b94(0x226)]=_0x4579e3,this[_0x104b94(0x23e)](),this['_loadStoredApiKey'](),this['_registerComponent']());}[_0x274847(0x27d)](){var _0x16c9ed=_0x274847;const _0x5836bd=this[_0x16c9ed(0x179)][_0x16c9ed(0x2a9)](_0x16660e);_0x5836bd!=null&&_0x5836bd[_0x16c9ed(0x253)]&&this[_0x16c9ed(0x2c2)][_0x16c9ed(0x2ac)]({'id':_0x10ec80,'title':{'title':this[_0x16c9ed(0x270)]['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x4208e9=_0x16c9ed;this['_dialogService'][_0x4208e9(0x140)](_0x10ec80);}});}[_0x274847(0x157)](){var _0x4e7c69=_0x274847;return this[_0x4e7c69(0x1e8)][_0x4e7c69(0x19c)];}[_0x274847(0x2a8)](){var _0x34974f=_0x274847;this[_0x34974f(0x16e)](this[_0x34974f(0x1cf)]['register'](_0x34974f(0x2c6),this[_0x34974f(0x1e7)]()));}[_0x274847(0x1e7)](){var _0xa2e5de=_0x274847;return _0x245ec2[_0xa2e5de(0x26a)](()=>{var _0x110560=_0xa2e5de,_0x30fa3b,_0xb09b59,_0x56d829;return _0x54c16e['jsx'](_0x36ac82,{'config':this[_0x110560(0x162)]['value'],'mcpCoreConfig':this[_0x110560(0x1e8)][_0x110560(0x19c)],'currentApiKey$':this[_0x110560(0x27e)],'onSave':this[_0x110560(0x1e6)],'loading':this[_0x110560(0x1d7)][_0x110560(0x19c)],'connectionStatus$':(_0x30fa3b=this['_mcpConnectionController'])==null?void 0x0:_0x30fa3b[_0x110560(0x163)],'connectionError$':(_0xb09b59=this[_0x110560(0x226)])==null?void 0x0:_0xb09b59['connectionError$'],'currentSessionId$':(_0x56d829=this['_mcpConnectionController'])==null?void 0x0:_0x56d829[_0x110560(0x154)]});},this['_injector']);}['_initConfigSync'](){var _0x47b021=_0x274847;this['disposeWithMe'](this[_0x47b021(0x179)][_0x47b021(0x1c2)](_0x1f49aa[_0x47b021(0x17b)])[_0x47b021(0x167)](_0x3022be=>{var _0x5d13ab=_0x47b021;this[_0x5d13ab(0x1e8)][_0x5d13ab(0x28c)](_0x3022be||{});}));const _0x26b276=this[_0x47b021(0x179)][_0x47b021(0x2a9)](_0x1f49aa['MCP_PLUGIN_CONFIG_KEY']);this[_0x47b021(0x1e8)][_0x47b021(0x28c)](_0x26b276||{}),this[_0x47b021(0x16e)](this[_0x47b021(0x179)][_0x47b021(0x1c2)](_0x16660e)['subscribe'](_0x41b812=>{var _0x34aaf2=_0x47b021;this['_config$'][_0x34aaf2(0x28c)](_0x41b812||{});}));const _0x5f2e9a=this[_0x47b021(0x179)][_0x47b021(0x2a9)](_0x16660e);this[_0x47b021(0x162)]['next'](_0x5f2e9a||{});}async[_0x274847(0x2c7)](){var _0x2c6419=_0x274847;const _0x1b0b82=this[_0x2c6419(0x179)][_0x2c6419(0x2a9)](_0x16660e);if(!(_0x1b0b82!=null&&_0x1b0b82[_0x2c6419(0x253)]))return;const _0x4c91a9=await this[_0x2c6419(0x2b6)]['getItem'](_0x3c98a5);_0x4c91a9&&(this[_0x2c6419(0x226)][_0x2c6419(0x1ca)]({'Authorization':_0x2c6419(0x240)+_0x4c91a9}),this[_0x2c6419(0x27e)][_0x2c6419(0x28c)](_0x4c91a9));}async['_validateConfig'](_0x1a9471){var _0x15e1e1=_0x274847;if(!_0x1a9471[_0x15e1e1(0x296)]||_0x1a9471[_0x15e1e1(0x296)][_0x15e1e1(0x2cb)]()[_0x15e1e1(0x248)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x15e1e1(0x297))};if(_0x1a9471[_0x15e1e1(0x296)]['trim']()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x15e1e1(0x270)]['t'](_0x15e1e1(0x25e))};try{const _0x391b38=await this[_0x15e1e1(0x29d)][_0x15e1e1(0x1f9)](_0x1f49aa[_0x15e1e1(0x267)])['validateApiKey'](_0x1a9471[_0x15e1e1(0x296)][_0x15e1e1(0x2cb)]());return _0x391b38[_0x15e1e1(0x280)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x391b38[_0x15e1e1(0x14f)]||this['_localeService']['t'](_0x15e1e1(0x2c5))};}catch(_0x53f4e5){return console[_0x15e1e1(0x18b)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x53f4e5),{'isValid':!0x0};}}},_0x44d561['MCPConfigUIController']=_0x269566([_0x2eec58(0x0,_0x49000b['Inject'](_0x49000b[_0x274847(0x263)])),_0x2eec58(0x1,_0x245ec2[_0x274847(0x233)]),_0x2eec58(0x2,_0x49000b[_0x274847(0x25b)]),_0x2eec58(0x3,_0x49000b[_0x274847(0x1a0)]),_0x2eec58(0x4,_0x245ec2[_0x274847(0x1a9)]),_0x2eec58(0x5,_0x245ec2[_0x274847(0x1e0)]),_0x2eec58(0x6,_0x49000b['Inject'](_0x245ec2['ComponentManager'])),_0x2eec58(0x7,_0x49000b[_0x274847(0x1c9)](_0x49000b[_0x274847(0x22e)])),_0x2eec58(0x8,_0x49000b[_0x274847(0x213)]),_0x2eec58(0x9,_0x49000b[_0x274847(0x1c9)](_0x1f49aa[_0x274847(0x267)]))],_0x44d561[_0x274847(0x239)]);const _0x16da25={'id':_0x274847(0x1ed),'type':_0x49000b[_0x274847(0x2d6)]['COMMAND'],'handler':async(_0xfa2b81,_0x31bd30)=>(_0xfa2b81[_0x274847(0x1f9)](_0x44d561[_0x274847(0x239)])[_0x274847(0x27d)](),!0x0)};function _0xad7cb7(_0x15e4a6,_0x602be6){var _0x2986af=_0x274847;switch(_0x15e4a6){case _0x1f49aa[_0x2986af(0x28e)][_0x2986af(0x2bb)]:return'mcpStatus.disconnected';case _0x1f49aa[_0x2986af(0x28e)][_0x2986af(0x293)]:return'mcpStatus.connecting';case _0x1f49aa[_0x2986af(0x28e)][_0x2986af(0x21f)]:return _0x2986af(0x1d0);case _0x1f49aa[_0x2986af(0x28e)][_0x2986af(0x164)]:switch(_0x602be6){case _0x1f49aa[_0x2986af(0x2c1)][_0x2986af(0x231)]:return _0x2986af(0x29a);case _0x1f49aa[_0x2986af(0x2c1)][_0x2986af(0x29f)]:return _0x2986af(0x15b);case _0x1f49aa[_0x2986af(0x2c1)][_0x2986af(0x15a)]:return _0x2986af(0x2d8);case _0x1f49aa[_0x2986af(0x2c1)]['MAX_RETRIES_EXCEEDED']:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case _0x1f49aa[_0x2986af(0x28e)][_0x2986af(0x24e)]:return _0x2986af(0x177);default:return _0x2986af(0x2d7);}}function _0x418d7a(_0x2e0e63,_0x29388e,_0x166f0e,_0x1b9ef3=!0x0){var _0x1e74c0=_0x274847;const _0x48d5b8=_0xad7cb7(_0x2e0e63,_0x29388e),_0x5d1028=_0x166f0e['t'](_0x48d5b8);return _0x1b9ef3?_0x2e0e63===_0x1f49aa[_0x1e74c0(0x28e)][_0x1e74c0(0x2bb)]&&_0x29388e===_0x1f49aa[_0x1e74c0(0x2c1)]['UNAUTHORIZED']?_0x5d1028+_0x1e74c0(0x23c)+_0x166f0e['t']('mcpStatus.clickToConfigure'):_0x2e0e63===_0x1f49aa[_0x1e74c0(0x28e)][_0x1e74c0(0x21f)]?''+_0x5d1028:_0x2e0e63===_0x1f49aa[_0x1e74c0(0x28e)][_0x1e74c0(0x2bb)]||_0x2e0e63===_0x1f49aa[_0x1e74c0(0x28e)][_0x1e74c0(0x164)]?_0x5d1028+'\x20-\x20'+_0x166f0e['t']('mcpStatus.clickToConnect'):_0x5d1028:_0x5d1028;}function _0x21b639(_0x2f20bb){var _0x389310=_0x274847;switch(_0x2f20bb){case _0x1f49aa[_0x389310(0x28e)][_0x389310(0x21f)]:return _0x389310(0x2ce);case _0x1f49aa[_0x389310(0x28e)]['CONNECTING']:case _0x1f49aa[_0x389310(0x28e)]['RETRYING']:return'univer-text-yellow-500';case _0x1f49aa[_0x389310(0x28e)][_0x389310(0x164)]:case _0x1f49aa[_0x389310(0x28e)]['DISCONNECTED']:return _0x389310(0x258);default:return _0x389310(0x1c1);}}function _0xad68ab(_0x1a77b4){var _0x507bef=_0x274847;const {status$:_0x310cba,error$:_0x3683d6,onConfigure:_0x5e3536,showClickable:_0x2666ad=!0x0}=_0x1a77b4,_0x339972=_0x245ec2[_0x507bef(0x2d4)](_0x310cba,_0x1f49aa[_0x507bef(0x28e)][_0x507bef(0x2bb)]),_0x808d6f=_0x245ec2['useObservable'](_0x3683d6,_0x1f49aa['MCPConnectionError']['NONE']),_0xe518c2=_0x245ec2[_0x507bef(0x21e)](_0x49000b[_0x507bef(0x22e)]),_0x1cc3d1=_0x339972===_0x1f49aa[_0x507bef(0x28e)][_0x507bef(0x21f)];_0x339972===_0x1f49aa[_0x507bef(0x28e)]['CONNECTING']||_0x1f49aa[_0x507bef(0x28e)]['RETRYING'];const _0x512a4b=_0xe518c2['t'](_0xad7cb7(_0x339972,_0x808d6f)),_0x4a5677=_0x418d7a(_0x339972,_0x808d6f,_0xe518c2,_0x2666ad),_0x12b557=_0x21b639(_0x339972),_0x7b0060=_0x1cc3d1?_0x54c16e['jsx'](_0x37ce2e,{}):_0x54c16e['jsx'](_0x485531,{}),_0x5b2b0a=_0x438a15[_0x507bef(0x1b2)](()=>{_0x2666ad&&_0x5e3536&&_0x5e3536();},[_0x2666ad,_0x5e3536]);function _0x3737ab(){var _0x1bb838=_0x507bef;return _0x54c16e['jsxs'](_0x1bb838(0x197),{'className':_0x23fa2f[_0x1bb838(0x1c6)]('univer-flex\x20univer-items-center',_0x2666ad&&_0x5e3536&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'onClick':_0x2666ad&&_0x5e3536?_0x5b2b0a:void 0x0,'children':[_0x54c16e[_0x1bb838(0x212)](_0x1bb838(0x197),{'className':_0x23fa2f[_0x1bb838(0x1c6)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x12b557),'children':_0x7b0060}),_0x54c16e[_0x1bb838(0x212)](_0x1bb838(0x197),{'className':_0x1bb838(0x29b),'children':_0x512a4b})]});}return _0x54c16e[_0x507bef(0x212)](_0x23fa2f[_0x507bef(0x144)],{'title':_0x4a5677,'placement':_0x507bef(0x25d),'children':_0x3737ab()});}var _0x248f02=Object[_0x274847(0x272)],_0x569367=(_0x1ff7db,_0x10b800,_0x248eb9,_0x229b6)=>{for(var _0x1cc58a=_0x229b6>0x1?void 0x0:_0x229b6?_0x248f02(_0x10b800,_0x248eb9):_0x10b800,_0x3bb7d2=_0x1ff7db['length']-0x1,_0x1db1e0;_0x3bb7d2>=0x0;_0x3bb7d2--)(_0x1db1e0=_0x1ff7db[_0x3bb7d2])&&(_0x1cc58a=_0x1db1e0(_0x1cc58a)||_0x1cc58a);return _0x1cc58a;},_0xae838a=(_0x532dc1,_0x12930e)=>(_0x4b3922,_0x43424f)=>_0x12930e(_0x4b3922,_0x43424f,_0x532dc1);_0x44d561[_0x274847(0x19d)]=class extends _0x49000b['Disposable']{constructor(_0x5e9d37,_0x4dffe1,_0x51abe8,_0x3ab375){var _0x4055e4=_0x274847;super(),this['_injector']=_0x5e9d37,this[_0x4055e4(0x200)]=_0x4dffe1,this[_0x4055e4(0x2b7)]=_0x51abe8,this[_0x4055e4(0x179)]=_0x3ab375,this[_0x4055e4(0x1b9)](),this['_initStatusComponent']();}['_initAutoConnect'](){var _0x2e153d=_0x274847;const _0x139062=this['_configService'][_0x2e153d(0x2a9)](_0x16660e);_0x139062!=null&&_0x139062['showDeveloperTools']&&(this[_0x2e153d(0x200)]['enableAutoConnect']=!0x1);}['_initStatusComponent'](){var _0x42c4de=_0x274847;const _0x4355fa=this[_0x42c4de(0x179)][_0x42c4de(0x2a9)](_0x16660e);(_0x4355fa==null?void 0x0:_0x4355fa[_0x42c4de(0x273)])!==!0x1&&this[_0x42c4de(0x16e)](this['_uiPartsService'][_0x42c4de(0x27f)](_0x245ec2[_0x42c4de(0x152)]['HEADER_MENU'],()=>{var _0x277cd7=_0x42c4de,_0x12d727;return _0x245ec2['connectInjector'](_0x335cef({'status$':this[_0x277cd7(0x200)][_0x277cd7(0x163)],'error$':this[_0x277cd7(0x200)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x12d727=_0x4355fa==null?void 0x0:_0x4355fa[_0x277cd7(0x253)])!=null?_0x12d727:!0x1}),this[_0x277cd7(0x29d)]);}));}['_handleConfigure'](){var _0x8c7d13=_0x274847;this[_0x8c7d13(0x29d)][_0x8c7d13(0x1f9)](_0x44d561[_0x8c7d13(0x239)])[_0x8c7d13(0x27d)]();}},_0x44d561['MCPConnectionUIController']=_0x569367([_0xae838a(0x0,_0x49000b[_0x274847(0x1c9)](_0x49000b[_0x274847(0x263)])),_0xae838a(0x1,_0x49000b[_0x274847(0x1c9)](_0x1f49aa[_0x274847(0x267)])),_0xae838a(0x2,_0x245ec2['IUIPartsService']),_0xae838a(0x3,_0x49000b[_0x274847(0x25b)])],_0x44d561['MCPConnectionUIController']);function _0x335cef(_0x58cb45){const {status$:_0x57e9d3,error$:_0xaa1020,onConfigure:_0x161e16,showClickable:_0x155ce3}=_0x58cb45;return function(){var _0x191720=_0x1c8c;return _0x54c16e[_0x191720(0x212)](_0xad68ab,{'status$':_0x57e9d3,'error$':_0xaa1020,'onConfigure':_0x161e16,'showClickable':_0x155ce3});};}function _0x5cda4c(_0x1104c3){var _0x4aa3de=_0x274847;return{'id':_0x16da25['id'],'type':_0x245ec2[_0x4aa3de(0x221)][_0x4aa3de(0x286)],'icon':_0x4aa3de(0x153),'title':'mcpConfig.title','tooltip':'mcpConfig.title'};}const _0x52133a={[_0x245ec2[_0x274847(0x256)][_0x274847(0x146)]]:{[_0x16da25['id']]:{'order':0xa,'menuItemFactory':_0x5cda4c}}};var _0x52d9ed=Object[_0x274847(0x272)],_0x5e1887=(_0x11c157,_0x3eb690,_0x2f622f,_0x2e96b6)=>{for(var _0x2890cf=_0x2e96b6>0x1?void 0x0:_0x2e96b6?_0x52d9ed(_0x3eb690,_0x2f622f):_0x3eb690,_0x12543e=_0x11c157['length']-0x1,_0x4923c6;_0x12543e>=0x0;_0x12543e--)(_0x4923c6=_0x11c157[_0x12543e])&&(_0x2890cf=_0x4923c6(_0x2890cf)||_0x2890cf);return _0x2890cf;},_0x51f6aa=(_0x10841c,_0x271ade)=>(_0x55006f,_0x4558ab)=>_0x271ade(_0x55006f,_0x4558ab,_0x10841c);_0x44d561['MCPUIMenuController']=class extends _0x49000b[_0x274847(0x174)]{constructor(_0x5e189a,_0x3f647d){var _0xe4521f=_0x274847;super(),this[_0xe4521f(0x1fe)]=_0x5e189a,this['_menuManagerService']=_0x3f647d,this[_0xe4521f(0x1ac)](),this[_0xe4521f(0x161)]();}[_0x274847(0x1ac)](){[_0x16da25]['forEach'](_0x3bc91d=>{var _0x3a0971=_0x1c8c;this[_0x3a0971(0x16e)](this[_0x3a0971(0x1fe)]['registerCommand'](_0x3bc91d));});}[_0x274847(0x161)](){var _0x509b18=_0x274847;this[_0x509b18(0x173)][_0x509b18(0x17f)](_0x52133a);}},_0x44d561['MCPUIMenuController']=_0x5e1887([_0x51f6aa(0x0,_0x49000b[_0x274847(0x188)]),_0x51f6aa(0x1,_0x245ec2[_0x274847(0x2c0)])],_0x44d561[_0x274847(0x255)]);const _0x1e0a8b={'mcpStatus':{'disconnected':_0x274847(0x1fc),'connecting':_0x274847(0x15e),'connected':'MCP\x20Connected','failed':_0x274847(0x147),'retrying':_0x274847(0x16b),'unknown':_0x274847(0x235),'unauthorized':_0x274847(0x14c),'sessionOccupied':_0x274847(0x199),'networkError':_0x274847(0x165),'maxRetriesExceeded':_0x274847(0x2a0),'clickToConnect':_0x274847(0x1c5),'clickToConfigure':_0x274847(0x1f7)},'mcpConfig':{'title':_0x274847(0x2b9),'description':_0x274847(0x2d0),'apiKey':_0x274847(0x274),'apiKeyPlaceholder':_0x274847(0x285),'apiKeyHint':_0x274847(0x268),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x274847(0x2a3),'connectionInfo':_0x274847(0x1b8),'mcpClientConfig':_0x274847(0x1b8),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x274847(0x279),'configStep2':_0x274847(0x150),'configStep3':_0x274847(0x1ba),'sessionId':'Session\x20ID','sessionIdDescription':_0x274847(0x215),'authorizationDescription':_0x274847(0x14d),'configParameters':_0x274847(0x20b),'maxRetries':_0x274847(0x22c),'save':_0x274847(0x27a),'saving':_0x274847(0x2ae),'note1':_0x274847(0x185),'note2':_0x274847(0x1ce),'configSaved':_0x274847(0x19e),'configError':_0x274847(0x175),'apiApplyInfo':{'title':_0x274847(0x1a3),'description':_0x274847(0x244),'univerAiLabel':_0x274847(0x26c),'getStarted':_0x274847(0x194)},'validation':{'apiKeyRequired':_0x274847(0x1e1),'apiKeyTooShort':_0x274847(0x15f),'invalidConfig':_0x274847(0x160),'invalidApiKey':_0x274847(0x234)},'connectionStatus':{'disconnected':_0x274847(0x21c),'connecting':_0x274847(0x294),'connected':_0x274847(0x23b),'failed':_0x274847(0x15c),'retrying':_0x274847(0x18f)},'connectionError':{'unauthorized':_0x274847(0x17e),'sessionOccupied':_0x274847(0x242),'networkError':_0x274847(0x247),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},_0x5784a9={'mcpStatus':{'disconnected':_0x274847(0x252),'connecting':'MCP\x20连接中...','connected':_0x274847(0x17d),'failed':_0x274847(0x1fd),'retrying':'MCP\x20重连中...','unknown':_0x274847(0x1b6),'unauthorized':_0x274847(0x1a5),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x274847(0x2af),'clickToConnect':'点击连接\x20MCP','clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x274847(0x178),'description':_0x274847(0x1de),'apiKey':_0x274847(0x14e),'apiKeyPlaceholder':_0x274847(0x28d),'apiKeyHint':_0x274847(0x2c3),'enableAuth':_0x274847(0x142),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x274847(0x211),'mcpClientConfig':_0x274847(0x211),'configInstructions':_0x274847(0x2d3),'configStepTitle':_0x274847(0x225),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x274847(0x18e),'sessionId':_0x274847(0x29c),'sessionIdDescription':_0x274847(0x2d2),'authorizationDescription':_0x274847(0x229),'configParameters':'配置参数:','maxRetries':_0x274847(0x27b),'save':_0x274847(0x257),'saving':'保存中...','note1':'配置更改将立即生效','note2':_0x274847(0x2db),'configSaved':_0x274847(0x2c8),'configError':'配置保存失败','apiApplyInfo':{'title':_0x274847(0x172),'description':_0x274847(0x2bd),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x274847(0x2b0)},'validation':{'apiKeyRequired':_0x274847(0x205),'apiKeyTooShort':_0x274847(0x16a),'invalidConfig':_0x274847(0x192),'invalidApiKey':_0x274847(0x1d1)},'connectionStatus':{'disconnected':_0x274847(0x271),'connecting':_0x274847(0x20f),'connected':_0x274847(0x189),'failed':_0x274847(0x183),'retrying':_0x274847(0x1fa)},'connectionError':{'unauthorized':_0x274847(0x24d),'sessionOccupied':_0x274847(0x2cd),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var _0x4c69bb=Object[_0x274847(0x1ee)],_0x20822f=Object[_0x274847(0x272)],_0x45e9c3=(_0x33408d,_0x4b1be9,_0xf46dde)=>_0x4b1be9 in _0x33408d?_0x4c69bb(_0x33408d,_0x4b1be9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf46dde}):_0x33408d[_0x4b1be9]=_0xf46dde,_0x262e17=(_0x2cb338,_0xdbdb48,_0x48d599,_0x41950a)=>{var _0x40d822=_0x274847;for(var _0x494f84=_0x41950a>0x1?void 0x0:_0x41950a?_0x20822f(_0xdbdb48,_0x48d599):_0xdbdb48,_0x58cc53=_0x2cb338[_0x40d822(0x248)]-0x1,_0x501ca5;_0x58cc53>=0x0;_0x58cc53--)(_0x501ca5=_0x2cb338[_0x58cc53])&&(_0x494f84=_0x501ca5(_0x494f84)||_0x494f84);return _0x494f84;},_0x504855=(_0x16a602,_0xe55f53)=>(_0x18fa1a,_0x2efa28)=>_0xe55f53(_0x18fa1a,_0x2efa28,_0x16a602),_0x3808ee=(_0x534188,_0xe20f90,_0x5f1547)=>_0x45e9c3(_0x534188,_0xe20f90+'',_0x5f1547);_0x44d561[_0x274847(0x2ba)]=class extends _0x49000b[_0x274847(0x209)]{constructor(_0x5c63f2=_0x26a069,_0x3f946f,_0x3271cc,_0x19e980,_0x16b97c,_0x42f090){var _0x219f5c=_0x274847;super(),this[_0x219f5c(0x2bf)]=_0x5c63f2,this[_0x219f5c(0x29d)]=_0x3f946f,this[_0x219f5c(0x179)]=_0x3271cc,this[_0x219f5c(0x2b7)]=_0x19e980,this[_0x219f5c(0x2b6)]=_0x16b97c,this[_0x219f5c(0x270)]=_0x42f090;const {..._0x4def75}=_0x49000b['merge']({},_0x26a069,this[_0x219f5c(0x2bf)]);this[_0x219f5c(0x179)]['setConfig'](_0x16660e,_0x4def75);}async[_0x274847(0x236)](){var _0x5e0980=_0x274847;const _0x420e21=[[_0x44d561[_0x5e0980(0x19d)]],[_0x44d561['MCPConfigUIController']],[_0x44d561[_0x5e0980(0x255)]]];this['_injector'][_0x5e0980(0x287)](_0x546f84['ISocketService'])||_0x420e21['push']([_0x546f84[_0x5e0980(0x2a1)],{'useClass':_0x546f84[_0x5e0980(0x254)]}]),_0x420e21[_0x5e0980(0x202)](_0x862b57=>this[_0x5e0980(0x29d)][_0x5e0980(0x224)](_0x862b57)),this[_0x5e0980(0x29d)][_0x5e0980(0x1f9)](_0x44d561['MCPConnectionUIController']),this[_0x5e0980(0x29d)][_0x5e0980(0x1f9)](_0x44d561[_0x5e0980(0x239)]),this[_0x5e0980(0x29d)]['get'](_0x44d561[_0x5e0980(0x255)]);}},_0x3808ee(_0x44d561['UniverMCPUIPlugin'],_0x274847(0x24b),_0x274847(0x193)),_0x44d561['UniverMCPUIPlugin']=_0x262e17([_0x49000b['DependentOn'](_0x1f49aa['UniverMCPPlugin']),_0x504855(0x1,_0x49000b[_0x274847(0x1c9)](_0x49000b[_0x274847(0x263)])),_0x504855(0x2,_0x49000b[_0x274847(0x25b)]),_0x504855(0x3,_0x245ec2[_0x274847(0x233)]),_0x504855(0x4,_0x49000b[_0x274847(0x1a0)]),_0x504855(0x5,_0x49000b[_0x274847(0x1c9)](_0x49000b[_0x274847(0x22e)]))],_0x44d561[_0x274847(0x2ba)]),_0x44d561[_0x274847(0x2c6)]=_0x36ac82,_0x44d561['MCPStatusDisplay']=_0xad68ab,_0x44d561['OpenMCPConfigPanelCommand']=_0x16da25,_0x44d561['enUS']=_0x1e0a8b,_0x44d561[_0x274847(0x1d3)]=_0x5784a9,Object[_0x274847(0x1ee)](_0x44d561,Symbol[_0x274847(0x149)],{'value':_0x274847(0x207)});}));function _0x2c94(){var _0x2e7a44=['white','ICommandService','已连接','mcpConfig.authorizationDescription','warn','object','mcpConfig.connectionStatus.failed','重启您的\x20MCP\x20客户端以使配置生效','Retrying...','mcpConfig.description','mcpConfig.apiApplyInfo.univerAiLabel','配置无效','MCP_UI_PLUGIN','Get\x20your\x20API\x20key\x20in\x20seconds','mcpConfig.configSaved','UniverDesign','div','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.apiApplyInfo.description','apply','value','MCPConnectionUIController','Configuration\x20saved\x20successfully','entries','ILocalStorageService','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','univer-flex-shrink-0\x20univer-text-blue-500','What\x20is\x20API\x20Key?','23550CVjCUO','MCP:\x20未授权','_validateConfig','Close','mcpConfig.configError','IDialogService','mcpConfig.connectionStatus.connected','mcpConfig.saving','_initializeCommands','mcpConfig.note2','indexOf','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-text-white','useCallback','0\x200\x2016\x2016','3508400LHqEFz','univer-flex\x20univer-items-center\x20univer-gap-3','MCP\x20状态未知','BehaviorSubject','MCP\x20Client\x20Configuration','_initAutoConnect','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','@univerjs/network','mcpServerUrl','mcpConfig.configStepTitle','Configuration\x20Notes:','mcp-ui.config','getOwnPropertySymbols','univer-text-gray-500','subscribeConfigValue$','displayName','univer-bg-blue-500','Click\x20to\x20connect\x20MCP','clsx','univer-text-xs\x20univer-text-gray-500','58vmqlCb','Inject','__setCustomHeaders','univer-text-sm\x20univer-text-gray-500','colorChannel1','pre','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','_componentManager','mcpStatus.connected','API\x20密钥无效,请检查密钥是否正确','@univerjs/ui','zhCN','mcpConfig.save','10kMkHZl','defIds','_loading$','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-flex-shrink-0\x20univer-text-red-500','\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','useRef','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','text','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.connectionError.maxRetriesExceeded','IMessageService','API\x20key\x20is\x20required','attrs','mcpConfig.configParameters','show','off-line-icon','_handleConfigSave','_createConfigPanelComponent','_mcpCoreConfig$','univer-flex\x20univer-items-start\x20univer-gap-2','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','svg','\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','mcp-ui.command.openConfigPanel','defineProperty','current','441bqPuaR','on-line-icon','https://console.univer.plus','MessageType','url(#off-line-icon_clip0_910_343)','_messageService','OffLineIcon','Click\x20to\x20configure\x20MCP','univer.ai','get','重连中...','replace','MCP\x20Disconnected','MCP\x20连接失败','_commandService','jsxs','_connectionController','prototype','forEach','CheckMarkIcon','amd','API\x20密钥不能为空','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','Module','off-line-icon_clip0_910_343','Plugin','call','Configuration\x20Parameters:','url(#on-line-icon_clip0_910_349)','random','string','连接中...','forwardRef','MCP\x20客户端配置','jsx','ILogService','round','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','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','univer-space-y-4','@univerjs/core','univer-min-w-0\x20univer-flex-1','xlink:href','M0\x200H16V16H0z','Disconnected','UniverProMcp','useDependency','CONNECTED','mcpConfig.connectionInfo','MenuItemType','univer-text-xs\x20univer-text-gray-600','@univerjs-pro/mcp','add','配置步骤:','_mcpConnectionController','_blank','OnLineIcon','带有\x20Bearer\x20前缀的\x20API\x20密钥。','substring','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','Max\x20Retries','toString','LocaleService','univer-space-y-5','React','UNAUTHORIZED','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','IUIPartsService','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Unknown\x20Status','onStarting','extend','use','MCPConfigUIController','idSuffix','Connected','\x20-\x20','univer-space-y-2','_initConfigSync','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','Bearer\x20','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','currentColor','Authorization:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','length','0\x200\x2017\x2016','help-single','pluginName','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','权限验证失败,请检查您的\x20API\x20密钥','RETRYING','UniverCore','mcpConfig.apiApplyInfo.title','none','MCP\x20已断开','showDeveloperTools','WebSocketService','MCPUIMenuController','RibbonStartGroup','保存配置','univer-text-red-500','58278hCPJkD','https://console.univer.ai','IConfigService','CloseSmallSingle','bottom','mcpConfig.validation.apiKeyTooShort','Input','univer-flex-1','createElement','mcpConfig.apiApplyInfo.getStarted','Injector','span','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-text-gray-400','MCPConnectionController','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','HelpSingle','connectInjector','clipPath','Univer\x20AI\x20Console','hasOwnProperty','react','UniverUi','_localeService','未连接','getOwnPropertyDescriptor','showStatus','API\x20Key','univer-flex\x20univer-items-start\x20univer-gap-3','close-small-single','errorMessage','fill','Copy\x20the\x20JSON\x20configuration\x20below','Save\x20Configuration','最大重试次数','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','showConfigPanel','_apiKey$','registerComponent','isValid','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','concat','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','on-line-icon_clip0_910_349','Enter\x20your\x20API\x20key','BUTTON','has','Success','@univerjs/design','univer-flex\x20univer-items-center\x20univer-gap-2','_logService','next','请输入您的\x20API\x20密钥','MCPConnectionStatus','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-flex\x20univer-gap-3','http://www.w3.org/2000/svg','193342XXlxUP','CONNECTING','Connecting...','mcp-config-dialog','apiKey','mcpConfig.validation.apiKeyRequired','mcpConfig.connectionError.unauthorized','Button','mcpStatus.unauthorized','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','会话ID','_injector','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','SESSION_ID_OCCUPIED','MCP:\x20Max\x20Retries\x20Exceeded','ISocketService','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Enable\x20authentication\x20for\x20secure\x20connections','1169340eJNGzj','mcpConfig.connectionStatus.retrying','<API_KEY>','univer-space-y-3','_registerComponent','getConfig','mcpConfig.connectionStatus.connecting','UniverIcon','open','univer_session_id:','Saving...','MCP:\x20超出最大重试次数','几秒钟内获取您的\x20API\x20密钥','url(#$1','UniverNetwork','off','includes','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','_localStorageService','_uiPartsService','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','MCP\x20Configuration','UniverMCPUIPlugin','DISCONNECTED','univer-text-sm\x20univer-font-medium','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MAX_RETRIES_EXCEEDED','_config','IMenuManagerService','MCPConnectionError','_dialogService','您的\x20API\x20密钥将在此浏览器中本地存储','check-mark-icon','mcpConfig.validation.invalidApiKey','MCPConfigPanel','_loadStoredApiKey','配置保存成功','assign','mcpConfig.sessionIdDescription','trim','univer-bg-red-500','会话\x20ID\x20已被占用,请稍后再试','univer-text-green-500','className','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','将以下配置添加到您的\x20MCP\x20客户端设置中:','useObservable','4DGiHdc','CommandType','mcpStatus.unknown','mcpStatus.networkError','path','icon','您的\x20API\x20密钥安全存储在本地存储中','mask','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','Error','mcpConfig.configStep1','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','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','close','1em','启用身份验证','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','Tooltip','mcpConfig.note1','OTHERS','MCP\x20Connection\x20Failed','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','toStringTag','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','evenodd','MCP:\x20Unauthorized','API\x20key\x20with\x20Bearer\x20prefix.','API\x20密钥','error','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univerjs-icon\x20univerjs-icon-','BuiltInUIPart','MenuIcon','sessionId$','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','mcpConfig.connectionError.sessionOccupied','getCurrentConfig','children','\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','NETWORK_ERROR','mcpStatus.sessionOccupied','Connection\x20Failed','NONE','MCP\x20Connecting...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20configuration','_initializeMenus','_config$','connectionStatus$','FAILED','MCP:\x20Network\x20Error','translate(.97)','subscribe','label','UniverProMcpUi','API\x20密钥长度至少需要\x2010\x20位','MCP\x20Retrying...','1876699XcXChn','mcpConfig.configInstructions','disposeWithMe','0\x200\x2017\x2017','rxjs','tag','什么是\x20API\x20密钥?','_menuManagerService','Disposable','Failed\x20to\x20save\x20configuration','univer-text-blue-600','mcpStatus.retrying','MCP\x20配置','_configService','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','MCP_PLUGIN_CONFIG_KEY','defs','MCP\x20已连接','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mergeMenu','mcp.apiKey','univer-bg-gray-500','3434139XEkUkS','连接失败','mcpConfig.connectionError.networkError','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600'];_0x2c94=function(){return _0x2e7a44;};return _0x2c94();}
|
|
1
|
+
function _0x590d(_0x454cbe,_0x473f47){var _0x4b3148=_0x4b31();return _0x590d=function(_0x590d2d,_0x1f797c){_0x590d2d=_0x590d2d-0x125;var _0x5bf514=_0x4b3148[_0x590d2d];return _0x5bf514;},_0x590d(_0x454cbe,_0x473f47);}(function(_0x4d33fa,_0x456fbe){var _0x135f09=_0x590d,_0x55bde9=_0x4d33fa();while(!![]){try{var _0x32042d=-parseInt(_0x135f09(0x282))/0x1+-parseInt(_0x135f09(0x180))/0x2+-parseInt(_0x135f09(0x1a6))/0x3*(parseInt(_0x135f09(0x172))/0x4)+-parseInt(_0x135f09(0x23c))/0x5*(parseInt(_0x135f09(0x1b8))/0x6)+-parseInt(_0x135f09(0x164))/0x7*(parseInt(_0x135f09(0x280))/0x8)+-parseInt(_0x135f09(0x203))/0x9+parseInt(_0x135f09(0x19a))/0xa;if(_0x32042d===_0x456fbe)break;else _0x55bde9['push'](_0x55bde9['shift']());}catch(_0x316286){_0x55bde9['push'](_0x55bde9['shift']());}}}(_0x4b31,0xee1f5),function(_0x5888c6,_0x2e9524){var _0x378602=_0x590d;typeof exports==_0x378602(0x251)&&typeof module<'u'?_0x2e9524(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define=='function'&&define[_0x378602(0x2ac)]?define([_0x378602(0x1d7),_0x378602(0x20b),'react/jsx-runtime',_0x378602(0x25b),_0x378602(0x236),_0x378602(0x233),_0x378602(0x28c),_0x378602(0x151),_0x378602(0x17d)],_0x2e9524):(_0x5888c6=typeof globalThis<'u'?globalThis:_0x5888c6||self,_0x2e9524(_0x5888c6[_0x378602(0x1dd)]={},_0x5888c6['UniverCore'],_0x5888c6['React'],_0x5888c6[_0x378602(0x1f1)],_0x5888c6[_0x378602(0x24f)],_0x5888c6[_0x378602(0x2a6)],_0x5888c6[_0x378602(0x28c)],_0x5888c6[_0x378602(0x17e)],_0x5888c6[_0x378602(0x157)]));}(this,function(_0x34fc26,_0x1e644d,_0x5ab4b8,_0x772097,_0x37c5aa,_0x146876,_0x331adf,_0xed4c50,_0x54dff2){'use strict';var _0x303884=_0x590d;var _0x2ae62f=Object['defineProperty'],_0x489bce=(_0x1f4ce3,_0x16064a,_0x40f17b)=>_0x16064a in _0x1f4ce3?_0x2ae62f(_0x1f4ce3,_0x16064a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40f17b}):_0x1f4ce3[_0x16064a]=_0x40f17b,_0xb1a834=(_0x53b551,_0x13f679,_0x1b7ade)=>_0x489bce(_0x53b551,typeof _0x13f679!=_0x303884(0x190)?_0x13f679+'':_0x13f679,_0x1b7ade),_0x560e03=function(){var _0x36142c=_0x303884;return _0x560e03=Object[_0x36142c(0x290)]||function(_0x2378f5){var _0x4da104=_0x36142c;for(var _0x542ac2,_0x549ee6=0x1,_0x4d6b47=arguments[_0x4da104(0x134)];_0x549ee6<_0x4d6b47;_0x549ee6++){_0x542ac2=arguments[_0x549ee6];for(var _0x1d969c in _0x542ac2)Object['prototype']['hasOwnProperty'][_0x4da104(0x15c)](_0x542ac2,_0x1d969c)&&(_0x2378f5[_0x1d969c]=_0x542ac2[_0x1d969c]);}return _0x2378f5;},_0x560e03[_0x36142c(0x2a3)](this,arguments);},_0x43edf6=function(_0x26a854,_0x41806f){var _0x32452e=_0x303884,_0xb078e9={};for(var _0x52b41d in _0x26a854)Object['prototype'][_0x32452e(0x14a)]['call'](_0x26a854,_0x52b41d)&&_0x41806f[_0x32452e(0x1d0)](_0x52b41d)<0x0&&(_0xb078e9[_0x52b41d]=_0x26a854[_0x52b41d]);if(_0x26a854!=null&&typeof Object['getOwnPropertySymbols']==_0x32452e(0x1ad)){for(var _0x14b972=0x0,_0x52b41d=Object['getOwnPropertySymbols'](_0x26a854);_0x14b972<_0x52b41d[_0x32452e(0x134)];_0x14b972++)_0x41806f[_0x32452e(0x1d0)](_0x52b41d[_0x14b972])<0x0&&Object[_0x32452e(0x1a5)][_0x32452e(0x1a1)][_0x32452e(0x15c)](_0x26a854,_0x52b41d[_0x14b972])&&(_0xb078e9[_0x52b41d[_0x14b972]]=_0x26a854[_0x52b41d[_0x14b972]]);}return _0xb078e9;},_0x24d39d=_0xed4c50[_0x303884(0x240)](function(_0x23345b,_0xd4c308){var _0x389fcd=_0x303884,_0x3733a8=_0x23345b[_0x389fcd(0x1b6)],_0xdec3f1=_0x23345b['id'],_0x288ce1=_0x23345b[_0x389fcd(0x15f)],_0x1d09d6=_0x23345b[_0x389fcd(0x298)],_0x3123cc=_0x43edf6(_0x23345b,[_0x389fcd(0x1b6),'id',_0x389fcd(0x15f),_0x389fcd(0x298)]),_0xa43289='univerjs-icon\x20univerjs-icon-'['concat'](_0xdec3f1,'\x20')[_0x389fcd(0x28a)](_0x288ce1||'')[_0x389fcd(0x293)](),_0x305c60=_0xed4c50[_0x389fcd(0x1e0)]('_'[_0x389fcd(0x28a)](_0xfc180b()));return _0x565d01(_0x3733a8,''[_0x389fcd(0x28a)](_0xdec3f1),{'defIds':_0x3733a8[_0x389fcd(0x152)],'idSuffix':_0x305c60[_0x389fcd(0x1c1)]},_0x560e03({'ref':_0xd4c308,'className':_0xa43289},_0x3123cc),_0x1d09d6);});function _0x565d01(_0x3fc3ca,_0x1555a5,_0x1316d5,_0x22607f,_0x318f9b){var _0x6b4c43=_0x303884;return _0xed4c50['createElement'](_0x3fc3ca['tag'],_0x560e03(_0x560e03({'key':_0x1555a5},_0x3ec3d3(_0x3fc3ca,_0x1316d5,_0x318f9b)),_0x22607f),(_0x278f48(_0x3fc3ca,_0x1316d5)[_0x6b4c43(0x21a)]||[])[_0x6b4c43(0x2aa)](function(_0x4e745d,_0x38358a){var _0x8d0f8e=_0x6b4c43;return _0x565d01(_0x4e745d,''[_0x8d0f8e(0x28a)](_0x1555a5,'-')[_0x8d0f8e(0x28a)](_0x3fc3ca[_0x8d0f8e(0x1f6)],'-')['concat'](_0x38358a),_0x1316d5,void 0x0,_0x318f9b);}));}function _0x3ec3d3(_0x461102,_0x4edf88,_0x4eccdd){var _0x2b3338=_0x303884,_0x1cc93b=_0x560e03({},_0x461102[_0x2b3338(0x1e9)]);_0x4eccdd!=null&&_0x4eccdd[_0x2b3338(0x217)]&&_0x1cc93b[_0x2b3338(0x1d3)]===_0x2b3338(0x217)&&(_0x1cc93b['fill']=_0x4eccdd[_0x2b3338(0x217)]),_0x461102[_0x2b3338(0x1f6)]===_0x2b3338(0x1e5)&&_0x1cc93b['id']&&(_0x1cc93b['id']=_0x1cc93b['id']+_0x4edf88['idSuffix']),Object['entries'](_0x1cc93b)[_0x2b3338(0x196)](function(_0x2cf977){var _0x4fa8b7=_0x2b3338,_0x507fcc=_0x2cf977[0x0],_0x536c3d=_0x2cf977[0x1];_0x507fcc==='mask'&&typeof _0x536c3d==_0x4fa8b7(0x17f)&&(_0x1cc93b[_0x507fcc]=_0x536c3d[_0x4fa8b7(0x246)](/url\(#(.*)\)/,_0x4fa8b7(0x12c)['concat'](_0x4edf88['idSuffix'],')')));});var _0x3ea3ca=_0x4edf88[_0x2b3338(0x152)];return!_0x3ea3ca||_0x3ea3ca[_0x2b3338(0x134)]===0x0||(_0x461102[_0x2b3338(0x1f6)]===_0x2b3338(0x2be)&&_0x1cc93b['xlink:href']&&(_0x1cc93b[_0x2b3338(0x182)]=_0x1cc93b[_0x2b3338(0x182)]+_0x4edf88['idSuffix']),Object['entries'](_0x1cc93b)[_0x2b3338(0x196)](function(_0x3bc1d0){var _0xeca43e=_0x2b3338,_0x5c5fb4=_0x3bc1d0[0x0],_0x2e08bd=_0x3bc1d0[0x1];typeof _0x2e08bd==_0xeca43e(0x17f)&&(_0x1cc93b[_0x5c5fb4]=_0x2e08bd[_0xeca43e(0x246)](/url\(#(.*)\)/,_0xeca43e(0x12c)['concat'](_0x4edf88['idSuffix'],')')));})),_0x1cc93b;}function _0x278f48(_0x533a26,_0x349454){var _0x3290c2=_0x303884,_0x3031fe,_0x5ecd71=_0x349454['defIds'];return!_0x5ecd71||_0x5ecd71[_0x3290c2(0x134)]===0x0?_0x533a26:_0x533a26[_0x3290c2(0x1f6)]===_0x3290c2(0x29e)&&(!((_0x3031fe=_0x533a26[_0x3290c2(0x21a)])===null||_0x3031fe===void 0x0)&&_0x3031fe['length'])?_0x560e03(_0x560e03({},_0x533a26),{'children':_0x533a26['children'][_0x3290c2(0x2aa)](function(_0x2d079c){var _0x4b49d4=_0x3290c2;return typeof _0x2d079c[_0x4b49d4(0x1e9)]['id']==_0x4b49d4(0x17f)&&_0x5ecd71&&_0x5ecd71[_0x4b49d4(0x29c)](_0x2d079c['attrs']['id'])?_0x560e03(_0x560e03({},_0x2d079c),{'attrs':_0x560e03(_0x560e03({},_0x2d079c[_0x4b49d4(0x1e9)]),{'id':_0x2d079c[_0x4b49d4(0x1e9)]['id']+_0x349454['idSuffix']})}):_0x2d079c;})}):_0x533a26;}function _0xfc180b(){var _0x52b295=_0x303884;return Math['random']()['toString'](0x24)[_0x52b295(0x178)](0x2,0x8);}_0x24d39d[_0x303884(0x24c)]=_0x303884(0x1d5);var _0x51d749={'tag':'svg','attrs':{'xmlns':_0x303884(0x2bd),'fill':'none','viewBox':_0x303884(0x210),'width':_0x303884(0x18c),'height':_0x303884(0x18c)},'children':[{'tag':'path','attrs':{'fill':_0x303884(0x2b0),'d':_0x303884(0x25c),'fillRule':_0x303884(0x28b),'clipRule':_0x303884(0x28b)}}]},_0x58d827=_0xed4c50['forwardRef'](function(_0x8d8bda,_0x182afb){var _0x519050=_0x303884;return _0xed4c50[_0x519050(0x2a0)](_0x24d39d,Object[_0x519050(0x290)]({},_0x8d8bda,{'id':_0x519050(0x1c5),'ref':_0x182afb,'icon':_0x51d749}));});_0x58d827[_0x303884(0x24c)]='CheckMarkIcon';var _0xa84732={'tag':_0x303884(0x20c),'attrs':{'xmlns':_0x303884(0x2bd),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x303884(0x18c),'height':_0x303884(0x18c)},'children':[{'tag':_0x303884(0x15e),'attrs':{'stroke':_0x303884(0x2b0),'d':_0x303884(0x142),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.33}},{'tag':_0x303884(0x15e),'attrs':{'stroke':'currentColor','d':_0x303884(0x2a7),'strokeLinecap':_0x303884(0x296),'strokeLinejoin':'round','strokeWidth':1.33}}]},_0x449a17=_0xed4c50[_0x303884(0x240)](function(_0x41d140,_0xd98198){var _0x103526=_0x303884;return _0xed4c50[_0x103526(0x2a0)](_0x24d39d,Object['assign']({},_0x41d140,{'id':_0x103526(0x26f),'ref':_0xd98198,'icon':_0xa84732}));});_0x449a17[_0x303884(0x24c)]=_0x303884(0x183);var _0x4a40d4={'tag':_0x303884(0x20c),'attrs':{'xmlns':_0x303884(0x2bd),'fill':_0x303884(0x176),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x303884(0x18c)},'children':[{'tag':_0x303884(0x15e),'attrs':{'fill':_0x303884(0x2b0),'d':_0x303884(0x1b7)}},{'tag':_0x303884(0x15e),'attrs':{'fill':'currentColor','d':_0x303884(0x299)}},{'tag':'path','attrs':{'fill':_0x303884(0x2b0),'d':_0x303884(0x242),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x24823a=_0xed4c50[_0x303884(0x240)](function(_0x472f8c,_0x27d30d){var _0x292315=_0x303884;return _0xed4c50[_0x292315(0x2a0)](_0x24d39d,Object['assign']({},_0x472f8c,{'id':_0x292315(0x229),'ref':_0x27d30d,'icon':_0x4a40d4}));});_0x24823a[_0x303884(0x24c)]=_0x303884(0x1f8);var _0x522205={'tag':_0x303884(0x20c),'attrs':{'xmlns':_0x303884(0x2bd),'fill':_0x303884(0x176),'viewBox':'0\x200\x2016\x2016','width':_0x303884(0x18c),'height':_0x303884(0x18c)},'children':[{'tag':'g','attrs':{'clipPath':_0x303884(0x1ce)},'children':[{'tag':_0x303884(0x15e),'attrs':{'stroke':_0x303884(0x2b0),'d':_0x303884(0x269),'strokeLinecap':'round','strokeLinejoin':_0x303884(0x296),'strokeWidth':1.2}}]},{'tag':_0x303884(0x29e),'attrs':{},'children':[{'tag':_0x303884(0x256),'attrs':{'id':_0x303884(0x1a8)},'children':[{'tag':_0x303884(0x15e),'attrs':{'fill':'white','d':_0x303884(0x279)}}]}]}],'defIds':[_0x303884(0x1a8)]},_0xd1560b=_0xed4c50[_0x303884(0x240)](function(_0x39c955,_0x3a6174){var _0x3c4fe5=_0x303884;return _0xed4c50[_0x3c4fe5(0x2a0)](_0x24d39d,Object[_0x3c4fe5(0x290)]({},_0x39c955,{'id':_0x3c4fe5(0x2ab),'ref':_0x3a6174,'icon':_0x522205}));});_0xd1560b['displayName']=_0x303884(0x14b);var _0x50b376={'tag':_0x303884(0x20c),'attrs':{'xmlns':_0x303884(0x2bd),'fill':_0x303884(0x176),'viewBox':_0x303884(0x146),'width':_0x303884(0x18c),'height':_0x303884(0x18c)},'children':[{'tag':'g','attrs':{'clipPath':_0x303884(0x156)},'children':[{'tag':_0x303884(0x15e),'attrs':{'stroke':'currentColor','d':_0x303884(0x147),'strokeLinecap':_0x303884(0x296),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x303884(0x29e),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x303884(0x15e),'attrs':{'fill':'white','d':_0x303884(0x279),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x50883b=_0xed4c50['forwardRef'](function(_0x4ccdbf,_0x5851ff){var _0x266517=_0x303884;return _0xed4c50[_0x266517(0x2a0)](_0x24d39d,Object['assign']({},_0x4ccdbf,{'id':_0x266517(0x1c7),'ref':_0x5851ff,'icon':_0x50b376}));});_0x50883b[_0x303884(0x24c)]='OnLineIcon';function _0x902359(_0x5c8dbf){var _0x29365f=_0x303884,_0x56a5bf,_0x54ddf3;const {mcpCoreConfig:_0x167082,onSave:_0xe91270,loading:_0x512777=!0x1,config:_0x384a15,connectionStatus$:_0x4c5eb3,connectionError$:_0x43955e,currentApiKey$:_0x1c5c5f,currentSessionId$:_0x4c9e78}=_0x5c8dbf,_0xc0dd20=_0x146876[_0x29365f(0x13f)](_0x1e644d[_0x29365f(0x1a0)]),_0x185e5d=_0x146876[_0x29365f(0x15a)](_0x4c5eb3,_0x772097[_0x29365f(0x264)][_0x29365f(0x16d)]),_0x1d1db8=_0x146876[_0x29365f(0x15a)](_0x43955e,_0x772097['MCPConnectionError'][_0x29365f(0x169)]),_0x48226a=_0x146876[_0x29365f(0x15a)](_0x4c9e78,''),_0x4466b0=_0x146876[_0x29365f(0x15a)](_0x1c5c5f,''),[_0x5888c7,_0x18a0cc]=_0xed4c50['useState'](_0x4466b0||''),_0x2b9961=!0x0,_0xc11501=_0x384a15[_0x29365f(0x270)]&&_0x167082[_0x29365f(0x195)]&&(_0x167082['mcpServerUrl']['includes'](_0x29365f(0x14c))||_0x167082[_0x29365f(0x195)][_0x29365f(0x29c)](_0x29365f(0x243))),_0x1d6511=(_0x56a5bf=_0x167082[_0x29365f(0x195)])==null?void 0x0:_0x56a5bf[_0x29365f(0x29c)]('univer.plus'),_0x130beb=(_0x54ddf3=_0x167082[_0x29365f(0x195)])==null?void 0x0:_0x54ddf3['includes'](_0x29365f(0x243)),_0x46880d=_0x1d6511?_0x29365f(0x288):_0x29365f(0x1c3),_0x10a5eb=_0x384a15[_0x29365f(0x270)]&&(_0x1d6511||_0x130beb),[_0x3b7be8,_0x592451]=_0xed4c50['useState'](!_0x5888c7[_0x29365f(0x293)]()),_0x4189ed=(_0x57829e,_0x4a8df3)=>{var _0x598b99=_0x29365f;if(_0x4a8df3===_0x772097[_0x598b99(0x179)][_0x598b99(0x167)])return _0x598b99(0x1ea);switch(_0x57829e){case _0x772097[_0x598b99(0x264)][_0x598b99(0x1ed)]:return _0x598b99(0x170);case _0x772097['MCPConnectionStatus']['CONNECTING']:case _0x772097[_0x598b99(0x264)][_0x598b99(0x1c2)]:return _0x598b99(0x1d8);case _0x772097[_0x598b99(0x264)]['FAILED']:return _0x598b99(0x1ea);default:return _0x598b99(0x18e);}},_0x46f57e=(_0x806e74,_0x520639)=>{var _0x116354=_0x29365f;if(_0x520639===_0x772097[_0x116354(0x179)]['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x806e74){case _0x772097[_0x116354(0x264)]['CONNECTED']:return'univer-bg-green-500';case _0x772097[_0x116354(0x264)][_0x116354(0x26b)]:case _0x772097[_0x116354(0x264)][_0x116354(0x1c2)]:return'univer-bg-blue-500';case _0x772097['MCPConnectionStatus'][_0x116354(0x127)]:return _0x116354(0x159);default:return _0x116354(0x1ba);}},_0x12a543=_0x216517=>{var _0x51d53f=_0x29365f;switch(_0x216517){case _0x772097[_0x51d53f(0x264)]['CONNECTED']:return _0xc0dd20['t'](_0x51d53f(0x163));case _0x772097[_0x51d53f(0x264)][_0x51d53f(0x26b)]:return _0xc0dd20['t']('mcpConfig.connectionStatus.connecting');case _0x772097['MCPConnectionStatus'][_0x51d53f(0x127)]:return _0xc0dd20['t'](_0x51d53f(0x21f));case _0x772097[_0x51d53f(0x264)][_0x51d53f(0x1c2)]:return _0xc0dd20['t'](_0x51d53f(0x177));default:return _0xc0dd20['t'](_0x51d53f(0x1ff));}},_0x35e166=_0x33a98e=>{var _0x388f01=_0x29365f;switch(_0x33a98e){case _0x772097['MCPConnectionError']['UNAUTHORIZED']:return _0xc0dd20['t'](_0x388f01(0x291));case _0x772097[_0x388f01(0x179)][_0x388f01(0x29b)]:return _0xc0dd20['t']('mcpConfig.connectionError.sessionOccupied');case _0x772097[_0x388f01(0x179)][_0x388f01(0x18f)]:return _0xc0dd20['t'](_0x388f01(0x1c0));case _0x772097[_0x388f01(0x179)][_0x388f01(0x231)]:return _0xc0dd20['t'](_0x388f01(0x1e2));default:return'';}},_0x409507=_0xed4c50[_0x29365f(0x1cc)](()=>{const _0x5ef3e2={..._0x167082,'apiKey':_0x5888c7['trim'](),'enableAuth':_0x2b9961};_0xe91270(_0x5ef3e2);},[_0x167082,_0x5888c7,_0x2b9961,_0xe91270]),_0x2114e7=_0x5888c7['trim']()[_0x29365f(0x134)]>0x0;return _0x5ab4b8['jsxs'](_0x29365f(0x1b0),{'className':_0x29365f(0x267),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x131),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':_0x29365f(0x263),'children':_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'className':_0x29365f(0x237),'children':'⚙'})}),_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'children':_0x5ab4b8['jsx']('p',{'className':_0x29365f(0x192),'children':_0xc0dd20['t'](_0x29365f(0x22d))})})]})}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x15d),'children':[_0x5ab4b8['jsx'](_0x29365f(0x1b0),{'className':_0x29365f(0x1bc)+_0x4189ed(_0x185e5d,_0x1d1db8)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x5ab4b8['jsx'](_0x29365f(0x1b0),{'className':'\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'+_0x46f57e(_0x185e5d,_0x1d1db8)+_0x29365f(0x26e)}),_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'className':_0x29365f(0x21c),'children':_0x12a543(_0x185e5d)})]})}),_0x1d1db8!==_0x772097[_0x29365f(0x179)]['NONE']&&(_0x185e5d===_0x772097[_0x29365f(0x264)][_0x29365f(0x127)]||_0x1d1db8===_0x772097['MCPConnectionError']['UNAUTHORIZED'])&&_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x13a),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'className':_0x29365f(0x274),'children':'⚠️'}),_0x5ab4b8[_0x29365f(0x129)]('p',{'className':_0x29365f(0x20f),'children':_0x35e166(_0x1d1db8)})]})})]}),_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':_0x29365f(0x174),'children':_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':'univer-space-y-5','children':[_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x25a),'children':[_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x228),{'className':_0x29365f(0x2a2),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'children':'🔑'}),'\x20',_0xc0dd20['t'](_0x29365f(0x19d)),_0x5ab4b8[_0x29365f(0x129)]('span',{'className':_0x29365f(0x2ba),'children':'*'}),_0xc11501&&_0x5ab4b8[_0x29365f(0x129)]('a',{'href':_0x29365f(0x238),'onClick':()=>_0x592451(!0x0),'className':_0x29365f(0x26a),'title':_0xc0dd20['t'](_0x29365f(0x215)),'children':_0x5ab4b8['jsx'](_0x24823a,{})})]}),_0x5ab4b8[_0x29365f(0x129)](_0x37c5aa[_0x29365f(0x278)],{'type':_0x29365f(0x1a7),'placeholder':_0xc0dd20['t'](_0x29365f(0x1f5)),'value':_0x5888c7,'onChange':_0x18a0cc,'disabled':_0x512777,'autoComplete':'off'}),_0x5ab4b8[_0x29365f(0x129)]('p',{'className':_0x29365f(0x20a),'children':_0xc0dd20['t'](_0x29365f(0x187))})]}),_0xc11501&&_0x3b7be8&&_0x5ab4b8['jsxs'](_0x29365f(0x1b0),{'className':_0x29365f(0x297),'children':[_0x5ab4b8[_0x29365f(0x129)]('a',{'href':_0x29365f(0x238),'onClick':()=>_0x592451(!0x1),'className':_0x29365f(0x22f),'title':_0x29365f(0x292),'children':_0x5ab4b8['jsx'](_0x449a17,{})}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'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':_0x5ab4b8['jsx'](_0x29365f(0x27f),{'className':_0x29365f(0x281),'children':'🚀'})}),_0x5ab4b8['jsxs']('div',{'className':_0x29365f(0x1b4),'children':[_0x5ab4b8['jsx']('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0xc0dd20['t'](_0x29365f(0x215))}),_0x5ab4b8[_0x29365f(0x129)]('p',{'className':_0x29365f(0x24b),'children':_0xc0dd20['t'](_0x29365f(0x2b1))}),_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':_0x29365f(0x224),'children':_0x10a5eb&&_0x5ab4b8[_0x29365f(0x213)]('a',{'href':_0x46880d,'target':'_blank','rel':_0x29365f(0x16e),'className':_0x29365f(0x1bb),'children':[_0x5ab4b8[_0x29365f(0x129)]('span',{'children':'🤖'}),_0xc0dd20['t'](_0x29365f(0x191)),_0x5ab4b8['jsx'](_0x29365f(0x27f),{'className':_0x29365f(0x2b9),'children':'↗'})]})}),_0x5ab4b8['jsxs'](_0x29365f(0x1b0),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0xc0dd20['t'](_0x29365f(0x2a5))]})]})]})]}),_0x384a15[_0x29365f(0x270)]&&_0x5ab4b8[_0x29365f(0x213)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x5ab4b8[_0x29365f(0x213)]('h4',{'className':_0x29365f(0x265),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'children':'🔗'}),'\x20',_0xc0dd20['t'](_0x29365f(0x211))]}),_0x5ab4b8[_0x29365f(0x213)]('div',{'className':_0x29365f(0x139),'children':[_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x166),'children':[_0x5ab4b8[_0x29365f(0x129)]('p',{'className':_0x29365f(0x1cf),'children':_0xc0dd20['t']('mcpConfig.configInstructions')}),_0x5ab4b8[_0x29365f(0x213)]('div',{'className':_0x29365f(0x25a),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':_0x29365f(0x214),'children':_0xc0dd20['t'](_0x29365f(0x253))}),_0x5ab4b8[_0x29365f(0x213)]('div',{'className':_0x29365f(0x1bf),'children':[_0x5ab4b8['jsxs'](_0x29365f(0x1b0),{'className':_0x29365f(0x2a9),'children':[_0x5ab4b8[_0x29365f(0x129)]('span',{'className':_0x29365f(0x13e),'children':'1'}),_0xc0dd20['t'](_0x29365f(0x1e1))]}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x2a9),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'className':_0x29365f(0x13e),'children':'2'}),_0xc0dd20['t']('mcpConfig.configStep2')]}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x2a9),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'className':_0x29365f(0x13e),'children':'3'}),_0xc0dd20['t'](_0x29365f(0x25e))]})]})]})]}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':'univer-space-y-2','children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':_0x29365f(0x214),'children':_0x29365f(0x1f3)}),_0x5ab4b8['jsx'](_0x29365f(0x1b0),{'className':_0x29365f(0x244),'children':_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x199),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':_0x29365f(0x202)+_0x48226a+_0x29365f(0x1b2)+(_0x5888c7||_0x29365f(0x1fd))+_0x29365f(0x27e)})})]}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x166),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':_0x29365f(0x214),'children':_0xc0dd20['t'](_0x29365f(0x247))}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x25a),'children':[_0x5ab4b8[_0x29365f(0x213)]('div',{'className':_0x29365f(0x13b),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x1a9),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':_0x29365f(0x24e),'children':_0x29365f(0x23b)}),_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0xc0dd20['t']('mcpConfig.sessionIdDescription')})]})]}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x5ab4b8['jsx']('div',{'className':_0x29365f(0x252)}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x1a9),'children':[_0x5ab4b8['jsx'](_0x29365f(0x1b0),{'className':_0x29365f(0x24e),'children':_0x29365f(0x126)}),_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x1b0),{'className':_0x29365f(0x20a),'children':_0xc0dd20['t'](_0x29365f(0x21d))})]})]})]})]})]})]}),_0x5ab4b8[_0x29365f(0x129)](_0x37c5aa[_0x29365f(0x1b1)],{'onClick':_0x409507,'disabled':!_0x2114e7||_0x512777,'className':_0x29365f(0x268),'children':_0x512777?_0x5ab4b8[_0x29365f(0x213)]('span',{'className':_0x29365f(0x2a9),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'children':'⟲'}),_0xc0dd20['t'](_0x29365f(0x1fb))]}):_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x27f),{'className':_0x29365f(0x2a9),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x58d827,{}),_0xc0dd20['t'](_0x29365f(0x2ad))]})}),_0x5ab4b8['jsx']('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x287),'children':[_0x5ab4b8[_0x29365f(0x129)](_0x29365f(0x27f),{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'className':_0x29365f(0x16f),'children':[_0x5ab4b8[_0x29365f(0x129)]('div',{'className':_0x29365f(0x160),'children':_0x29365f(0x24a)}),_0x5ab4b8['jsxs'](_0x29365f(0x1b0),{'children':['•',_0xc0dd20['t']('mcpConfig.note1')]}),_0x5ab4b8[_0x29365f(0x213)](_0x29365f(0x1b0),{'children':['•',_0xc0dd20['t'](_0x29365f(0x200))]})]})]})})]})})]});}const _0x46e45b='mcp-ui.config',_0x5899c4={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x4aebd2=Object[_0x303884(0x248)],_0x4399b9=(_0x29294c,_0x501183,_0x50be95,_0x54a77e)=>{var _0x1e3710=_0x303884;for(var _0x4d4747=_0x54a77e>0x1?void 0x0:_0x54a77e?_0x4aebd2(_0x501183,_0x50be95):_0x501183,_0xba2250=_0x29294c[_0x1e3710(0x134)]-0x1,_0x3a1f4a;_0xba2250>=0x0;_0xba2250--)(_0x3a1f4a=_0x29294c[_0xba2250])&&(_0x4d4747=_0x3a1f4a(_0x4d4747)||_0x4d4747);return _0x4d4747;},_0x2eab09=(_0x354b6d,_0x514e1a)=>(_0x3c54a9,_0x2b1d29)=>_0x514e1a(_0x3c54a9,_0x2b1d29,_0x354b6d);const _0x1b2602=_0x303884(0x29d),_0x7f5062=_0x303884(0x21e);_0x34fc26[_0x303884(0x1da)]=class extends _0x1e644d[_0x303884(0x1a2)]{constructor(_0x3c34f6,_0x5d243b,_0x1d3de2,_0x3411bc,_0x402701,_0x2a9a6f,_0x2d7663,_0x20ea42,_0x5dc3f7,_0x2f4582){var _0x5d87c8=_0x303884;super(),_0xb1a834(this,_0x5d87c8(0x19e),new _0x331adf[(_0x5d87c8(0x275))](!0x1)),_0xb1a834(this,_0x5d87c8(0x250),new _0x331adf[(_0x5d87c8(0x275))]({})),_0xb1a834(this,_0x5d87c8(0x12f),new _0x331adf[(_0x5d87c8(0x275))]({})),_0xb1a834(this,_0x5d87c8(0x257),new _0x331adf[(_0x5d87c8(0x275))]('')),_0xb1a834(this,_0x5d87c8(0x16c),async _0x701f64=>{var _0x13f4d4=_0x5d87c8,_0x459535,_0x49b3d7;this[_0x13f4d4(0x19e)][_0x13f4d4(0x137)](!0x0);try{const _0x162779=await this['_validateConfig'](_0x701f64);if(!_0x162779[_0x13f4d4(0x14f)]){this[_0x13f4d4(0x171)][_0x13f4d4(0x155)]({'type':_0x37c5aa['MessageType']['Error'],'content':_0x162779[_0x13f4d4(0x15b)]||this[_0x13f4d4(0x283)]['t'](_0x13f4d4(0x23a))});return;}_0x701f64[_0x13f4d4(0x185)]?await this[_0x13f4d4(0x21b)]['setItem'](_0x1b2602,_0x701f64['apiKey'][_0x13f4d4(0x293)]()):await this[_0x13f4d4(0x21b)]['removeItem'](_0x1b2602),this[_0x13f4d4(0x257)][_0x13f4d4(0x137)](((_0x459535=_0x701f64['apiKey'])==null?void 0x0:_0x459535['trim']())||''),this['_mcpConnectionController'][_0x13f4d4(0x150)]({'Authorization':_0x13f4d4(0x2b8)+((_0x49b3d7=_0x701f64[_0x13f4d4(0x185)])==null?void 0x0:_0x49b3d7['trim']())}),this['_messageService']['show']({'type':_0x37c5aa['MessageType']['Success'],'content':this[_0x13f4d4(0x283)]['t'](_0x13f4d4(0x1bd))}),setTimeout(()=>{var _0x161269=_0x13f4d4;this[_0x161269(0x1aa)][_0x161269(0x28d)](_0x7f5062);},0x320);}catch(_0x3afd7f){this[_0x13f4d4(0x26c)][_0x13f4d4(0x197)](_0x13f4d4(0x1ee),_0x3afd7f),this[_0x13f4d4(0x171)][_0x13f4d4(0x155)]({'type':_0x37c5aa['MessageType'][_0x13f4d4(0x1fe)],'content':this[_0x13f4d4(0x283)]['t'](_0x13f4d4(0x260))});}finally{this[_0x13f4d4(0x19e)]['next'](!0x1);}}),(this[_0x5d87c8(0x205)]=_0x3c34f6,this[_0x5d87c8(0x1d1)]=_0x5d243b,this[_0x5d87c8(0x1cd)]=_0x1d3de2,this[_0x5d87c8(0x21b)]=_0x3411bc,this['_dialogService']=_0x402701,this[_0x5d87c8(0x171)]=_0x2a9a6f,this[_0x5d87c8(0x219)]=_0x2d7663,this[_0x5d87c8(0x283)]=_0x20ea42,this['_logService']=_0x5dc3f7,this[_0x5d87c8(0x20e)]=_0x2f4582,this[_0x5d87c8(0x181)](),this[_0x5d87c8(0x128)](),this[_0x5d87c8(0x1db)]());}['showConfigPanel'](){var _0x1083ec=_0x303884;const _0x5a19e1=this['_configService'][_0x1083ec(0x1a4)](_0x46e45b);_0x5a19e1!=null&&_0x5a19e1[_0x1083ec(0x270)]&&this[_0x1083ec(0x1aa)][_0x1083ec(0x189)]({'id':_0x7f5062,'title':{'title':this[_0x1083ec(0x283)]['t'](_0x1083ec(0x221))},'children':{'label':_0x1083ec(0x225)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x5058b9=_0x1083ec;this[_0x5058b9(0x1aa)]['close'](_0x7f5062);}});}[_0x303884(0x18a)](){var _0x2cc4df=_0x303884;return this[_0x2cc4df(0x250)][_0x2cc4df(0x206)];}[_0x303884(0x1db)](){var _0x14959b=_0x303884;this[_0x14959b(0x1ac)](this['_componentManager'][_0x14959b(0x277)]('MCPConfigPanel',this['_createConfigPanelComponent']()));}[_0x303884(0x2bb)](){var _0x3a21b5=_0x303884;return _0x146876[_0x3a21b5(0x2b6)](()=>{var _0x17de66=_0x3a21b5,_0x599b6e,_0x19a976,_0x426d19;return _0x5ab4b8[_0x17de66(0x129)](_0x902359,{'config':this[_0x17de66(0x12f)][_0x17de66(0x206)],'mcpCoreConfig':this[_0x17de66(0x250)][_0x17de66(0x206)],'currentApiKey$':this[_0x17de66(0x257)],'onSave':this[_0x17de66(0x16c)],'loading':this[_0x17de66(0x19e)][_0x17de66(0x206)],'connectionStatus$':(_0x599b6e=this['_mcpConnectionController'])==null?void 0x0:_0x599b6e[_0x17de66(0x239)],'connectionError$':(_0x19a976=this['_mcpConnectionController'])==null?void 0x0:_0x19a976[_0x17de66(0x18d)],'currentSessionId$':(_0x426d19=this[_0x17de66(0x20e)])==null?void 0x0:_0x426d19[_0x17de66(0x28f)]});},this[_0x3a21b5(0x205)]);}['_initConfigSync'](){var _0x28bd60=_0x303884;this['disposeWithMe'](this[_0x28bd60(0x1cd)]['subscribeConfigValue$'](_0x772097['MCP_PLUGIN_CONFIG_KEY'])['subscribe'](_0x1364f7=>{var _0x6cc14c=_0x28bd60;this['_mcpCoreConfig$'][_0x6cc14c(0x137)](_0x1364f7||{});}));const _0x1b3a5e=this[_0x28bd60(0x1cd)][_0x28bd60(0x1a4)](_0x772097[_0x28bd60(0x2a1)]);this[_0x28bd60(0x250)]['next'](_0x1b3a5e||{}),this['disposeWithMe'](this[_0x28bd60(0x1cd)][_0x28bd60(0x241)](_0x46e45b)['subscribe'](_0x1c5e15=>{var _0x346a39=_0x28bd60;this[_0x346a39(0x12f)][_0x346a39(0x137)](_0x1c5e15||{});}));const _0x4b1245=this[_0x28bd60(0x1cd)]['getConfig'](_0x46e45b);this['_config$']['next'](_0x4b1245||{});}async[_0x303884(0x128)](){var _0x572f0a=_0x303884;const _0x68f5b8=this[_0x572f0a(0x1cd)][_0x572f0a(0x1a4)](_0x46e45b);if(!(_0x68f5b8!=null&&_0x68f5b8[_0x572f0a(0x270)]))return;const _0x25369c=await this[_0x572f0a(0x21b)][_0x572f0a(0x294)](_0x1b2602);_0x25369c&&(this[_0x572f0a(0x20e)][_0x572f0a(0x150)]({'Authorization':_0x572f0a(0x2b8)+_0x25369c}),this[_0x572f0a(0x257)]['next'](_0x25369c));}async[_0x303884(0x1be)](_0x29c797){var _0x2aec76=_0x303884;if(!_0x29c797[_0x2aec76(0x185)]||_0x29c797[_0x2aec76(0x185)][_0x2aec76(0x293)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x2aec76(0x153))};if(_0x29c797[_0x2aec76(0x185)]['trim']()[_0x2aec76(0x134)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x2aec76(0x283)]['t'](_0x2aec76(0x162))};try{const _0x11d5ba=await this['_injector'][_0x2aec76(0x1af)](_0x772097[_0x2aec76(0x154)])[_0x2aec76(0x2a4)](_0x29c797[_0x2aec76(0x185)][_0x2aec76(0x293)]());return _0x11d5ba[_0x2aec76(0x14f)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x11d5ba['error']||this[_0x2aec76(0x283)]['t'](_0x2aec76(0x1a3))};}catch(_0x432d27){return console[_0x2aec76(0x144)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x432d27),{'isValid':!0x0};}}},_0x34fc26[_0x303884(0x1da)]=_0x4399b9([_0x2eab09(0x0,_0x1e644d[_0x303884(0x1c6)](_0x1e644d[_0x303884(0x255)])),_0x2eab09(0x1,_0x146876['IUIPartsService']),_0x2eab09(0x2,_0x1e644d[_0x303884(0x12a)]),_0x2eab09(0x3,_0x1e644d[_0x303884(0x1d2)]),_0x2eab09(0x4,_0x146876[_0x303884(0x29a)]),_0x2eab09(0x5,_0x146876[_0x303884(0x27b)]),_0x2eab09(0x6,_0x1e644d[_0x303884(0x1c6)](_0x146876['ComponentManager'])),_0x2eab09(0x7,_0x1e644d[_0x303884(0x1c6)](_0x1e644d[_0x303884(0x1a0)])),_0x2eab09(0x8,_0x1e644d[_0x303884(0x22c)]),_0x2eab09(0x9,_0x1e644d[_0x303884(0x1c6)](_0x772097[_0x303884(0x154)]))],_0x34fc26['MCPConfigUIController']);const _0x3fc30e={'id':'mcp-ui.command.openConfigPanel','type':_0x1e644d[_0x303884(0x27d)][_0x303884(0x1e6)],'handler':async(_0x5728a2,_0x103891)=>(_0x5728a2['get'](_0x34fc26[_0x303884(0x1da)])[_0x303884(0x184)](),!0x0)};function _0x504afd(_0x1be311,_0x423bdc){var _0x40bd23=_0x303884;switch(_0x1be311){case _0x772097[_0x40bd23(0x264)]['DISCONNECTED']:return _0x40bd23(0x143);case _0x772097['MCPConnectionStatus'][_0x40bd23(0x26b)]:return'mcpStatus.connecting';case _0x772097[_0x40bd23(0x264)][_0x40bd23(0x1ed)]:return _0x40bd23(0x1ec);case _0x772097[_0x40bd23(0x264)][_0x40bd23(0x127)]:switch(_0x423bdc){case _0x772097[_0x40bd23(0x179)]['UNAUTHORIZED']:return _0x40bd23(0x14e);case _0x772097[_0x40bd23(0x179)]['SESSION_ID_OCCUPIED']:return _0x40bd23(0x232);case _0x772097[_0x40bd23(0x179)]['NETWORK_ERROR']:return _0x40bd23(0x141);case _0x772097[_0x40bd23(0x179)]['MAX_RETRIES_EXCEEDED']:return _0x40bd23(0x1ca);default:return _0x40bd23(0x2bf);}case _0x772097[_0x40bd23(0x264)][_0x40bd23(0x1c2)]:return _0x40bd23(0x2bc);default:return _0x40bd23(0x1f0);}}function _0x4cb72e(_0x51f3ca,_0x56c0fa,_0x2bbbd0,_0x30ae66=!0x0){var _0x2d4c29=_0x303884;const _0x2026ce=_0x504afd(_0x51f3ca,_0x56c0fa),_0x2b62b8=_0x2bbbd0['t'](_0x2026ce);return _0x30ae66?_0x51f3ca===_0x772097[_0x2d4c29(0x264)][_0x2d4c29(0x16d)]&&_0x56c0fa===_0x772097['MCPConnectionError'][_0x2d4c29(0x167)]?_0x2b62b8+_0x2d4c29(0x1ab)+_0x2bbbd0['t'](_0x2d4c29(0x24d)):_0x51f3ca===_0x772097[_0x2d4c29(0x264)][_0x2d4c29(0x1ed)]?''+_0x2b62b8:_0x51f3ca===_0x772097['MCPConnectionStatus'][_0x2d4c29(0x16d)]||_0x51f3ca===_0x772097[_0x2d4c29(0x264)]['FAILED']?_0x2b62b8+'\x20-\x20'+_0x2bbbd0['t']('mcpStatus.clickToConnect'):_0x2b62b8:_0x2b62b8;}function _0x4c48ff(_0x265072){var _0x53ebcd=_0x303884;switch(_0x265072){case _0x772097[_0x53ebcd(0x264)][_0x53ebcd(0x1ed)]:return'univer-text-green-500';case _0x772097[_0x53ebcd(0x264)][_0x53ebcd(0x26b)]:case _0x772097[_0x53ebcd(0x264)][_0x53ebcd(0x1c2)]:return _0x53ebcd(0x140);case _0x772097[_0x53ebcd(0x264)]['FAILED']:case _0x772097[_0x53ebcd(0x264)][_0x53ebcd(0x16d)]:return _0x53ebcd(0x2ba);default:return'univer-text-gray-500';}}function _0x532093(_0x318f5a){var _0x5333da=_0x303884;const {status$:_0x2e73da,error$:_0x2a6770,onConfigure:_0x3ac1c9,showClickable:_0x33ca8e=!0x0}=_0x318f5a,_0x164e9b=_0x146876['useObservable'](_0x2e73da,_0x772097[_0x5333da(0x264)][_0x5333da(0x16d)]),_0x3eac4b=_0x146876[_0x5333da(0x15a)](_0x2a6770,_0x772097['MCPConnectionError'][_0x5333da(0x169)]),_0x3e3c93=_0x146876[_0x5333da(0x13f)](_0x1e644d[_0x5333da(0x1a0)]),_0x536448=_0x164e9b===_0x772097[_0x5333da(0x264)][_0x5333da(0x1ed)];_0x164e9b===_0x772097[_0x5333da(0x264)]['CONNECTING']||_0x772097[_0x5333da(0x264)][_0x5333da(0x1c2)];const _0x4697e=_0x3e3c93['t'](_0x504afd(_0x164e9b,_0x3eac4b)),_0x4030b5=_0x4cb72e(_0x164e9b,_0x3eac4b,_0x3e3c93,_0x33ca8e),_0xb1962=_0x4c48ff(_0x164e9b),_0x2168f1=_0x536448?_0x5ab4b8['jsx'](_0x50883b,{}):_0x5ab4b8[_0x5333da(0x129)](_0xd1560b,{}),_0xb2d712=_0xed4c50['useCallback'](()=>{_0x33ca8e&&_0x3ac1c9&&_0x3ac1c9();},[_0x33ca8e,_0x3ac1c9]);function _0x99d1ef(){var _0x49e18c=_0x5333da;return _0x5ab4b8['jsxs'](_0x49e18c(0x1b0),{'className':_0x37c5aa[_0x49e18c(0x272)](_0x49e18c(0x161),_0x33ca8e&&_0x3ac1c9&&_0x49e18c(0x2ae)),'onClick':_0x33ca8e&&_0x3ac1c9?_0xb2d712:void 0x0,'children':[_0x5ab4b8[_0x49e18c(0x129)](_0x49e18c(0x1b0),{'className':_0x37c5aa[_0x49e18c(0x272)]('univer-mr-2\x20univer-flex\x20univer-text-xl',_0xb1962),'children':_0x2168f1}),_0x5ab4b8['jsx'](_0x49e18c(0x1b0),{'className':_0x49e18c(0x262),'children':_0x4697e})]});}return _0x5ab4b8['jsx'](_0x37c5aa[_0x5333da(0x13d)],{'title':_0x4030b5,'placement':'bottom','children':_0x99d1ef()});}var _0xe27d39=Object[_0x303884(0x248)],_0xc1a2f7=(_0x530adf,_0xa46672,_0x38005c,_0x12db67)=>{var _0x28f343=_0x303884;for(var _0x27badf=_0x12db67>0x1?void 0x0:_0x12db67?_0xe27d39(_0xa46672,_0x38005c):_0xa46672,_0x53c0da=_0x530adf[_0x28f343(0x134)]-0x1,_0xc3d113;_0x53c0da>=0x0;_0x53c0da--)(_0xc3d113=_0x530adf[_0x53c0da])&&(_0x27badf=_0xc3d113(_0x27badf)||_0x27badf);return _0x27badf;},_0x41f5df=(_0x2b0ffb,_0x281dbc)=>(_0x285dad,_0x3353a4)=>_0x281dbc(_0x285dad,_0x3353a4,_0x2b0ffb);_0x34fc26[_0x303884(0x216)]=class extends _0x1e644d[_0x303884(0x1a2)]{constructor(_0x188f30,_0x13c217,_0xfa7d27,_0x2fc124){var _0x574333=_0x303884;super(),this[_0x574333(0x205)]=_0x188f30,this[_0x574333(0x2af)]=_0x13c217,this[_0x574333(0x1d1)]=_0xfa7d27,this[_0x574333(0x1cd)]=_0x2fc124,this[_0x574333(0x138)](),this[_0x574333(0x273)]();}[_0x303884(0x138)](){var _0x3b84be=_0x303884;const _0x54a723=this[_0x3b84be(0x1cd)][_0x3b84be(0x1a4)](_0x46e45b);_0x54a723!=null&&_0x54a723['showDeveloperTools']&&(this[_0x3b84be(0x2af)][_0x3b84be(0x28e)]=!0x1);}['_initStatusComponent'](){var _0x5dd6e3=_0x303884;const _0xcc47a5=this[_0x5dd6e3(0x1cd)][_0x5dd6e3(0x1a4)](_0x46e45b);(_0xcc47a5==null?void 0x0:_0xcc47a5[_0x5dd6e3(0x1c8)])!==!0x1&&this[_0x5dd6e3(0x1ac)](this[_0x5dd6e3(0x1d1)]['registerComponent'](_0x146876['BuiltInUIPart'][_0x5dd6e3(0x2b3)],()=>{var _0x5ae478=_0x5dd6e3,_0x49860c;return _0x146876[_0x5ae478(0x2b6)](_0x4a56cf({'status$':this['_connectionController'][_0x5ae478(0x239)],'error$':this[_0x5ae478(0x2af)][_0x5ae478(0x18d)],'onConfigure':()=>this[_0x5ae478(0x175)](),'showClickable':(_0x49860c=_0xcc47a5==null?void 0x0:_0xcc47a5[_0x5ae478(0x270)])!=null?_0x49860c:!0x1}),this['_injector']);}));}[_0x303884(0x175)](){var _0x590108=_0x303884;this['_injector'][_0x590108(0x1af)](_0x34fc26[_0x590108(0x1da)])[_0x590108(0x184)]();}},_0x34fc26[_0x303884(0x216)]=_0xc1a2f7([_0x41f5df(0x0,_0x1e644d['Inject'](_0x1e644d['Injector'])),_0x41f5df(0x1,_0x1e644d['Inject'](_0x772097[_0x303884(0x154)])),_0x41f5df(0x2,_0x146876[_0x303884(0x193)]),_0x41f5df(0x3,_0x1e644d['IConfigService'])],_0x34fc26[_0x303884(0x216)]);function _0x4a56cf(_0x3e4ac0){const {status$:_0x42ef92,error$:_0x5a22f9,onConfigure:_0xc98246,showClickable:_0x5201a3}=_0x3e4ac0;return function(){return _0x5ab4b8['jsx'](_0x532093,{'status$':_0x42ef92,'error$':_0x5a22f9,'onConfigure':_0xc98246,'showClickable':_0x5201a3});};}function _0x5bafbc(_0x526a68){var _0x47b5e5=_0x303884;return{'id':_0x3fc30e['id'],'type':_0x146876[_0x47b5e5(0x1ae)]['BUTTON'],'icon':_0x47b5e5(0x209),'title':_0x47b5e5(0x221),'tooltip':_0x47b5e5(0x221)};}const _0x318956={[_0x146876['RibbonStartGroup']['OTHERS']]:{[_0x3fc30e['id']]:{'order':0xa,'menuItemFactory':_0x5bafbc}}};var _0x45aee6=Object['getOwnPropertyDescriptor'],_0x207f8d=(_0x448665,_0x20ccd1,_0x3e27de,_0xda37af)=>{for(var _0x4a16f3=_0xda37af>0x1?void 0x0:_0xda37af?_0x45aee6(_0x20ccd1,_0x3e27de):_0x20ccd1,_0x5896b3=_0x448665['length']-0x1,_0x4a2c01;_0x5896b3>=0x0;_0x5896b3--)(_0x4a2c01=_0x448665[_0x5896b3])&&(_0x4a16f3=_0x4a2c01(_0x4a16f3)||_0x4a16f3);return _0x4a16f3;},_0x4b2e31=(_0x2b8195,_0x1f1205)=>(_0x492451,_0x690c8d)=>_0x1f1205(_0x492451,_0x690c8d,_0x2b8195);_0x34fc26[_0x303884(0x295)]=class extends _0x1e644d[_0x303884(0x1a2)]{constructor(_0x4ea128,_0x18a0b3){var _0x372de7=_0x303884;super(),this['_commandService']=_0x4ea128,this[_0x372de7(0x136)]=_0x18a0b3,this[_0x372de7(0x17c)](),this['_initializeMenus']();}[_0x303884(0x17c)](){var _0x24139d=_0x303884;[_0x3fc30e][_0x24139d(0x196)](_0x1fff9e=>{var _0x2b983a=_0x24139d;this[_0x2b983a(0x1ac)](this[_0x2b983a(0x186)][_0x2b983a(0x165)](_0x1fff9e));});}['_initializeMenus'](){var _0x4b04e4=_0x303884;this[_0x4b04e4(0x136)][_0x4b04e4(0x1fa)](_0x318956);}},_0x34fc26['MCPUIMenuController']=_0x207f8d([_0x4b2e31(0x0,_0x1e644d['ICommandService']),_0x4b2e31(0x1,_0x146876[_0x303884(0x198)])],_0x34fc26[_0x303884(0x295)]);const _0x57e94b={'mcpStatus':{'disconnected':_0x303884(0x201),'connecting':'MCP\x20Connecting...','connected':_0x303884(0x234),'failed':_0x303884(0x1fc),'retrying':'MCP\x20Retrying...','unknown':_0x303884(0x12d),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x303884(0x271),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x303884(0x245),'clickToConfigure':_0x303884(0x284)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x303884(0x2b2),'apiKey':_0x303884(0x223),'apiKeyPlaceholder':_0x303884(0x22b),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x303884(0x1e3),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x303884(0x220),'mcpClientConfig':_0x303884(0x220),'configInstructions':_0x303884(0x207),'configStepTitle':_0x303884(0x1b3),'configStep1':_0x303884(0x149),'configStep2':_0x303884(0x14d),'configStep3':_0x303884(0x218),'sessionId':_0x303884(0x132),'sessionIdDescription':_0x303884(0x1ef),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x303884(0x133),'maxRetries':_0x303884(0x1d6),'save':'Save\x20Configuration','saving':_0x303884(0x222),'note1':_0x303884(0x22a),'note2':_0x303884(0x259),'configSaved':_0x303884(0x194),'configError':_0x303884(0x1b9),'apiApplyInfo':{'title':_0x303884(0x16a),'description':_0x303884(0x20d),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x303884(0x13c)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x303884(0x25d),'invalidConfig':_0x303884(0x23e),'invalidApiKey':_0x303884(0x158)},'connectionStatus':{'disconnected':_0x303884(0x1cb),'connecting':_0x303884(0x1f7),'connected':'Connected','failed':_0x303884(0x19f),'retrying':_0x303884(0x19c)},'connectionError':{'unauthorized':_0x303884(0x2b4),'sessionOccupied':_0x303884(0x227),'networkError':_0x303884(0x188),'maxRetriesExceeded':_0x303884(0x12b)}}},_0x7253a7={'mcpStatus':{'disconnected':_0x303884(0x235),'connecting':_0x303884(0x1f2),'connected':_0x303884(0x1b5),'failed':'MCP\x20连接失败','retrying':_0x303884(0x2b5),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x303884(0x204),'maxRetriesExceeded':_0x303884(0x22e),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x303884(0x16b)},'mcpConfig':{'title':_0x303884(0x135),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x303884(0x23d),'apiKeyPlaceholder':_0x303884(0x145),'apiKeyHint':_0x303884(0x261),'enableAuth':_0x303884(0x1e7),'enableAuthHint':_0x303884(0x1e8),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x303884(0x1e4),'configInstructions':_0x303884(0x1df),'configStepTitle':_0x303884(0x1dc),'configStep1':_0x303884(0x17a),'configStep2':_0x303884(0x23f),'configStep3':_0x303884(0x254),'sessionId':_0x303884(0x1f4),'sessionIdDescription':_0x303884(0x27a),'authorizationDescription':_0x303884(0x18b),'configParameters':'配置参数:','maxRetries':_0x303884(0x226),'save':'保存配置','saving':'保存中...','note1':'配置更改将立即生效','note2':_0x303884(0x1d9),'configSaved':'配置保存成功','configError':_0x303884(0x266),'apiApplyInfo':{'title':_0x303884(0x130),'description':_0x303884(0x29f),'univerAiLabel':_0x303884(0x125),'getStarted':_0x303884(0x289)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x303884(0x25f),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x303884(0x286),'connecting':_0x303884(0x285),'connected':_0x303884(0x258),'failed':_0x303884(0x148),'retrying':_0x303884(0x1f9)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x303884(0x212),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x303884(0x208)}}};var _0xa98f4c=Object[_0x303884(0x27c)],_0x2acf24=Object[_0x303884(0x248)],_0x335ae7=(_0x58990c,_0x1fad9a,_0x101338)=>_0x1fad9a in _0x58990c?_0xa98f4c(_0x58990c,_0x1fad9a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x101338}):_0x58990c[_0x1fad9a]=_0x101338,_0x37a1d8=(_0x31eb72,_0x117c9a,_0x4717e1,_0x3b4f49)=>{for(var _0x452237=_0x3b4f49>0x1?void 0x0:_0x3b4f49?_0x2acf24(_0x117c9a,_0x4717e1):_0x117c9a,_0x20fc9b=_0x31eb72['length']-0x1,_0x44c9d8;_0x20fc9b>=0x0;_0x20fc9b--)(_0x44c9d8=_0x31eb72[_0x20fc9b])&&(_0x452237=_0x44c9d8(_0x452237)||_0x452237);return _0x452237;},_0xdf73b7=(_0xc27f6b,_0x5ac9be)=>(_0x2cdb57,_0x40b4fd)=>_0x5ac9be(_0x2cdb57,_0x40b4fd,_0xc27f6b),_0x3f2d18=(_0x16d5d2,_0x2c692f,_0x2d26ce)=>_0x335ae7(_0x16d5d2,_0x2c692f+'',_0x2d26ce);_0x34fc26[_0x303884(0x12e)]=class extends _0x1e644d['Plugin']{constructor(_0x5ad35b=_0x5899c4,_0x48364d,_0xc102f6,_0x211f8c,_0x1138fe,_0x58a234){var _0x2605d9=_0x303884;super(),this['_config']=_0x5ad35b,this['_injector']=_0x48364d,this['_configService']=_0xc102f6,this['_uiPartsService']=_0x211f8c,this[_0x2605d9(0x21b)]=_0x1138fe,this[_0x2605d9(0x283)]=_0x58a234;const {..._0x1cb332}=_0x1e644d[_0x2605d9(0x2c0)]({},_0x5899c4,this[_0x2605d9(0x2b7)]);this[_0x2605d9(0x1cd)][_0x2605d9(0x1d4)](_0x46e45b,_0x1cb332);}async[_0x303884(0x168)](){var _0x38a69e=_0x303884;const _0x24f956=[[_0x34fc26[_0x38a69e(0x216)]],[_0x34fc26[_0x38a69e(0x1da)]],[_0x34fc26[_0x38a69e(0x295)]]];this[_0x38a69e(0x205)][_0x38a69e(0x1eb)](_0x54dff2[_0x38a69e(0x1de)])||_0x24f956[_0x38a69e(0x1c4)]([_0x54dff2[_0x38a69e(0x1de)],{'useClass':_0x54dff2[_0x38a69e(0x2a8)]}]),_0x24f956['forEach'](_0x4b0046=>this[_0x38a69e(0x205)][_0x38a69e(0x230)](_0x4b0046)),this[_0x38a69e(0x205)][_0x38a69e(0x1af)](_0x34fc26[_0x38a69e(0x216)]),this[_0x38a69e(0x205)]['get'](_0x34fc26[_0x38a69e(0x1da)]),this[_0x38a69e(0x205)][_0x38a69e(0x1af)](_0x34fc26[_0x38a69e(0x295)]);}},_0x3f2d18(_0x34fc26['UniverMCPUIPlugin'],'pluginName',_0x303884(0x17b)),_0x34fc26[_0x303884(0x12e)]=_0x37a1d8([_0x1e644d[_0x303884(0x173)](_0x772097[_0x303884(0x26d)]),_0xdf73b7(0x1,_0x1e644d[_0x303884(0x1c6)](_0x1e644d[_0x303884(0x255)])),_0xdf73b7(0x2,_0x1e644d[_0x303884(0x12a)]),_0xdf73b7(0x3,_0x146876[_0x303884(0x193)]),_0xdf73b7(0x4,_0x1e644d[_0x303884(0x1d2)]),_0xdf73b7(0x5,_0x1e644d[_0x303884(0x1c6)](_0x1e644d[_0x303884(0x1a0)]))],_0x34fc26['UniverMCPUIPlugin']),_0x34fc26[_0x303884(0x225)]=_0x902359,_0x34fc26[_0x303884(0x249)]=_0x532093,_0x34fc26[_0x303884(0x19b)]=_0x3fc30e,_0x34fc26[_0x303884(0x276)]=_0x57e94b,_0x34fc26['zhCN']=_0x7253a7,Object['defineProperty'](_0x34fc26,Symbol['toStringTag'],{'value':_0x303884(0x1c9)});}));function _0x4b31(){var _0x3e7a98=['https://console.univer.ai','push','check-mark-icon','Inject','on-line-icon','showStatus','Module','mcpStatus.maxRetriesExceeded','Disconnected','useCallback','_configService','url(#off-line-icon_clip0_910_343)','univer-text-xs\x20univer-text-gray-600','indexOf','_uiPartsService','ILocalStorageService','fill','setConfig','UniverIcon','Max\x20Retries','exports','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','您的\x20API\x20密钥安全存储在本地存储中','MCPConfigUIController','_registerComponent','配置步骤:','UniverProMcpUi','ISocketService','将以下配置添加到您的\x20MCP\x20客户端设置中:','useRef','mcpConfig.configStep1','mcpConfig.connectionError.maxRetriesExceeded','Enable\x20Authentication','MCP\x20客户端配置','mask','COMMAND','启用身份验证','启用身份验证以获得安全连接','attrs','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','has','mcpStatus.connected','CONNECTED','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpStatus.unknown','UniverProMcp','MCP\x20连接中...','MCP\x20Configuration','会话ID','mcpConfig.apiKeyPlaceholder','tag','Connecting...','HelpSingle','重连中...','mergeMenu','mcpConfig.saving','MCP\x20Connection\x20Failed','<API_KEY>','Error','mcpConfig.connectionStatus.disconnected','mcpConfig.note2','MCP\x20Disconnected','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','9733653fnlPut','MCP:\x20网络错误','_injector','value','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','超出最大重试次数,请稍后再试','MenuIcon','univer-text-xs\x20univer-text-gray-500','@univerjs/core','svg','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_mcpConnectionController','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','0\x200\x2016\x2016','mcpConfig.connectionInfo','会话\x20ID\x20已被占用,请稍后再试','jsxs','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.apiApplyInfo.title','MCPConnectionUIController','colorChannel1','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','_componentManager','children','_localStorageService','univer-text-sm\x20univer-font-medium','mcpConfig.authorizationDescription','mcp-config-dialog','mcpConfig.connectionStatus.failed','MCP\x20Client\x20Configuration','mcpConfig.title','Saving...','API\x20Key','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCPConfigPanel','最大重试次数','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','label','help-single','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enter\x20your\x20API\x20key','ILogService','mcpConfig.description','MCP:\x20超出最大重试次数','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','add','MAX_RETRIES_EXCEEDED','mcpStatus.sessionOccupied','@univerjs/ui','MCP\x20Connected','MCP\x20已断开','@univerjs/design','univer-text-white','javascript:void(0)','connectionStatus$','mcpConfig.validation.invalidConfig','univer_session_id:','29725VPkqBr','API\x20密钥','Invalid\x20configuration','将配置添加到您的\x20MCP\x20客户端设置文件中','forwardRef','subscribeConfigValue$','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','univer.ai','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Click\x20to\x20connect\x20MCP','replace','mcpConfig.configParameters','getOwnPropertyDescriptor','MCPStatusDisplay','Configuration\x20Notes:','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','displayName','mcpStatus.clickToConfigure','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','UniverDesign','_mcpCoreConfig$','object','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.configStepTitle','重启您的\x20MCP\x20客户端以使配置生效','Injector','clipPath','_apiKey$','已连接','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-space-y-2','@univerjs-pro/mcp','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','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpConfig.configStep3','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.configError','您的\x20API\x20密钥将在此浏览器中本地存储','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCPConnectionStatus','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','配置保存失败','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','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','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','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','CONNECTING','_logService','UniverMCPPlugin','\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','close-small-single','showDeveloperTools','MCP:\x20Session\x20ID\x20Occupied','clsx','_initStatusComponent','univer-flex-shrink-0\x20univer-text-red-500','BehaviorSubject','enUS','register','Input','M0\x200H16V16H0z','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','IMessageService','defineProperty','CommandType','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','span','72xgWjpO','univer-text-blue-600','1376480Bpwmgf','_localeService','Click\x20to\x20configure\x20MCP','连接中...','未连接','univer-flex\x20univer-gap-3','https://console.univer.plus','几秒钟内获取您的\x20API\x20密钥','concat','evenodd','rxjs','close','enableAutoConnect','sessionId$','assign','mcpConfig.connectionError.unauthorized','Close','trim','getItem','MCPUIMenuController','round','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','extend','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','IDialogService','SESSION_ID_OCCUPIED','includes','mcp.apiKey','defs','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','createElement','MCP_PLUGIN_CONFIG_KEY','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','apply','validateApiKey','mcpConfig.apiApplyInfo.getStarted','UniverUi','M5.21243\x2012.287L11.8791\x205.62036','WebSocketService','univer-flex\x20univer-items-center\x20univer-gap-2','map','off-line-icon','amd','mcpConfig.save','\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','_connectionController','currentColor','mcpConfig.apiApplyInfo.description','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','HEADER_MENU','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20重连中...','connectInjector','_config','Bearer\x20','univer-text-gray-400','univer-text-red-500','_createConfigPanelComponent','mcpStatus.retrying','http://www.w3.org/2000/svg','use','mcpStatus.failed','merge','Univer\x20AI\x20控制台','Authorization:','FAILED','_loadStoredApiKey','jsx','IConfigService','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','url(#$1','MCP\x20Unknown\x20Status','UniverMCPUIPlugin','_config$','什么是\x20API\x20密钥?','univer-flex\x20univer-items-center\x20univer-gap-3','Session\x20ID','Configuration\x20Parameters:','length','MCP\x20配置','_menuManagerService','next','_initAutoConnect','univer-space-y-4','univer-flex\x20univer-items-start\x20univer-gap-2','univer-flex\x20univer-items-start\x20univer-gap-3','Get\x20your\x20API\x20key\x20in\x20seconds','Tooltip','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','useDependency','univer-text-yellow-500','mcpStatus.networkError','M5.21243\x205.62036L11.8791\x2012.287','mcpStatus.disconnected','warn','请输入您的\x20API\x20密钥','0\x200\x2017\x2016','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','连接失败','Copy\x20the\x20JSON\x20configuration\x20below','hasOwnProperty','OffLineIcon','univer.plus','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcpStatus.unauthorized','isValid','__setCustomHeaders','react','defIds','mcpConfig.validation.apiKeyRequired','MCPConnectionController','show','url(#on-line-icon_clip0_910_349)','UniverNetwork','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-bg-red-500','useObservable','errorMessage','call','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','path','className','univer-font-medium','univer-flex\x20univer-items-center','mcpConfig.validation.apiKeyTooShort','mcpConfig.connectionStatus.connected','854406JzvxFJ','registerCommand','univer-space-y-3','UNAUTHORIZED','onStarting','NONE','What\x20is\x20API\x20Key?','点击配置\x20MCP','_handleConfigSave','DISCONNECTED','noopener\x20noreferrer','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','_messageService','4DJDgeY','DependentOn','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','_handleConfigure','none','mcpConfig.connectionStatus.retrying','substring','MCPConnectionError','复制以下\x20JSON\x20配置','MCP_UI_PLUGIN','_initializeCommands','@univerjs/network','React','string','3619220aQMuLZ','_initConfigSync','xlink:href','CloseSmallSingle','showConfigPanel','apiKey','_commandService','mcpConfig.apiKeyHint','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','open','getCurrentConfig','带有\x20Bearer\x20前缀的\x20API\x20密钥。','1em','connectionError$','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','NETWORK_ERROR','symbol','mcpConfig.apiApplyInfo.univerAiLabel','univer-text-sm\x20univer-text-gray-500','IUIPartsService','Configuration\x20saved\x20successfully','mcpServerUrl','forEach','error','IMenuManagerService','pre','90633440RmFszE','OpenMCPConfigPanelCommand','Retrying...','mcpConfig.apiKey','_loading$','Connection\x20Failed','LocaleService','propertyIsEnumerable','Disposable','mcpConfig.validation.invalidApiKey','getConfig','prototype','5508183vuXeQb','text','off-line-icon_clip0_910_343','univer-min-w-0\x20univer-flex-1','_dialogService','\x20-\x20','disposeWithMe','function','MenuItemType','get','div','Button','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','Configuration\x20Steps:','univer-flex-1','MCP\x20已连接','icon','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','894cIxcpG','Failed\x20to\x20save\x20configuration','univer-bg-gray-500','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','\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','mcpConfig.configSaved','_validateConfig','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionError.networkError','current','RETRYING'];_0x4b31=function(){return _0x3e7a98;};return _0x4b31();}
|
package/lib/umd/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x27c99e,_0x2bb690){var _0x187333=_0x578d,_0x290f8a=_0x27c99e();while(!![]){try{var _0x478808=-parseInt(_0x187333(0x201))/0x1+parseInt(_0x187333(0x202))/0x2*(-parseInt(_0x187333(0x1f5))/0x3)+parseInt(_0x187333(0x1fd))/0x4+-parseInt(_0x187333(0x1f1))/0x5*(-parseInt(_0x187333(0x217))/0x6)+-parseInt(_0x187333(0x200))/0x7*(parseInt(_0x187333(0x1f2))/0x8)+parseInt(_0x187333(0x1f9))/0x9*(-parseInt(_0x187333(0x21b))/0xa)+parseInt(_0x187333(0x1f8))/0xb;if(_0x478808===_0x2bb690)break;else _0x290f8a['push'](_0x290f8a['shift']());}catch(_0x5bb339){_0x290f8a['push'](_0x290f8a['shift']());}}}(_0x7c56,0x96b30),function(_0x1241f1,_0x30bdc1){var _0x4d16cd=_0x578d;typeof exports==_0x4d16cd(0x1fb)&&typeof module<'u'?module[_0x4d16cd(0x208)]=_0x30bdc1():typeof define=='function'&&define['amd']?define(_0x30bdc1):(_0x1241f1=typeof globalThis<'u'?globalThis:_0x1241f1||self,_0x1241f1['UniverProMcpUiCaES']=_0x30bdc1());}(this,function(){'use strict';var _0x5c8f0f=_0x578d;return{'mcpStatus':{'disconnected':_0x5c8f0f(0x21c),'connecting':'MCP\x20Connecting...','connected':_0x5c8f0f(0x1ed),'failed':'MCP\x20Connection\x20Failed','retrying':_0x5c8f0f(0x218),'unknown':_0x5c8f0f(0x1e8),'unauthorized':_0x5c8f0f(0x1f3),'sessionOccupied':_0x5c8f0f(0x1ef),'networkError':_0x5c8f0f(0x219),'maxRetriesExceeded':_0x5c8f0f(0x20d),'clickToConnect':_0x5c8f0f(0x1e5),'clickToConfigure':_0x5c8f0f(0x1e6)},'mcpConfig':{'title':_0x5c8f0f(0x20c),'description':_0x5c8f0f(0x209),'apiKey':_0x5c8f0f(0x213),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x5c8f0f(0x1ff),'connectionInfo':_0x5c8f0f(0x216),'mcpClientConfig':_0x5c8f0f(0x216),'configInstructions':_0x5c8f0f(0x1ea),'configStepTitle':_0x5c8f0f(0x1e7),'configStep1':_0x5c8f0f(0x205),'configStep2':_0x5c8f0f(0x211),'configStep3':_0x5c8f0f(0x20e),'sessionId':_0x5c8f0f(0x1e9),'sessionIdDescription':_0x5c8f0f(0x1f4),'authorizationDescription':_0x5c8f0f(0x20a),'configParameters':_0x5c8f0f(0x1ec),'maxRetries':_0x5c8f0f(0x210),'save':'Save\x20Configuration','saving':_0x5c8f0f(0x20f),'note1':_0x5c8f0f(0x1fa),'note2':_0x5c8f0f(0x206),'configSaved':_0x5c8f0f(0x1fc),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5c8f0f(0x215),'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':_0x5c8f0f(0x1f6),'getStarted':_0x5c8f0f(0x204)},'validation':{'apiKeyRequired':_0x5c8f0f(0x1f0),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5c8f0f(0x1f7),'invalidApiKey':_0x5c8f0f(0x1eb)},'connectionStatus':{'disconnected':_0x5c8f0f(0x1fe),'connecting':_0x5c8f0f(0x1ee),'connected':_0x5c8f0f(0x20b),'failed':_0x5c8f0f(0x203),'retrying':_0x5c8f0f(0x207)},'connectionError':{'unauthorized':_0x5c8f0f(0x214),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5c8f0f(0x21a),'maxRetriesExceeded':_0x5c8f0f(0x212)}}};}));function _0x578d(_0x409b59,_0x2018a6){var _0x7c5692=_0x7c56();return _0x578d=function(_0x578dad,_0x33bebe){_0x578dad=_0x578dad-0x1e5;var _0x57bde5=_0x7c5692[_0x578dad];return _0x57bde5;},_0x578d(_0x409b59,_0x2018a6);}function _0x7c56(){var _0x5daa31=['Configuration\x20saved\x20successfully','1742852FyYyfT','Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','7XiMICB','374610jWuBXB','4UBiZKg','Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Retrying...','exports','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20with\x20Bearer\x20prefix.','Connected','MCP\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','Max\x20Retries','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','6vcFaYl','MCP\x20Retrying...','MCP:\x20Network\x20Error','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','10hAIAtZ','MCP\x20Disconnected','Click\x20to\x20connect\x20MCP','Click\x20to\x20configure\x20MCP','Configuration\x20Steps:','MCP\x20Unknown\x20Status','Session\x20ID','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20Parameters:','MCP\x20Connected','Connecting...','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20is\x20required','4828610gtRefo','1426040LlwpzM','MCP:\x20Unauthorized','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1454298UmaaRO','Univer\x20AI\x20Console','Invalid\x20configuration','14737745kRRaAn','5414121ehbMux','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','object'];_0x7c56=function(){return _0x5daa31;};return _0x7c56();}
|