@univerjs-pro/mcp-ui 0.10.14-nightly.202511070939 → 0.10.14-nightly.202511080715
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
|
-
function
|
|
1
|
+
function _0x20e3(_0xeaf258,_0x47fbc1){const _0x32882f=_0x3288();return _0x20e3=function(_0x20e3af,_0xafdd64){_0x20e3af=_0x20e3af-0x193;let _0x5c05f1=_0x32882f[_0x20e3af];return _0x5c05f1;},_0x20e3(_0xeaf258,_0x47fbc1);}const _0x22d051=_0x20e3;(function(_0x3f792f,_0x47ee38){const _0x2f2b60=_0x20e3,_0x2e8946=_0x3f792f();while(!![]){try{const _0x37804e=-parseInt(_0x2f2b60(0x1a2))/0x1+-parseInt(_0x2f2b60(0x1a1))/0x2*(parseInt(_0x2f2b60(0x1c1))/0x3)+-parseInt(_0x2f2b60(0x19e))/0x4*(parseInt(_0x2f2b60(0x1c3))/0x5)+parseInt(_0x2f2b60(0x19a))/0x6+-parseInt(_0x2f2b60(0x1a6))/0x7+-parseInt(_0x2f2b60(0x1b1))/0x8*(-parseInt(_0x2f2b60(0x19d))/0x9)+parseInt(_0x2f2b60(0x1ad))/0xa;if(_0x37804e===_0x47ee38)break;else _0x2e8946['push'](_0x2e8946['shift']());}catch(_0x22fd09){_0x2e8946['push'](_0x2e8946['shift']());}}}(_0x3288,0x66b7e));const e={'mcpStatus':{'disconnected':_0x22d051(0x1a9),'connecting':'MCP\x20Connecting...','connected':_0x22d051(0x1b9),'failed':_0x22d051(0x1b6),'retrying':_0x22d051(0x1a8),'unknown':_0x22d051(0x1c6),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x22d051(0x19f),'networkError':_0x22d051(0x1a7),'maxRetriesExceeded':_0x22d051(0x1bc),'clickToConnect':_0x22d051(0x1ba),'clickToConfigure':_0x22d051(0x193)},'mcpConfig':{'title':_0x22d051(0x1a4),'description':_0x22d051(0x1bb),'apiKey':_0x22d051(0x1af),'apiKeyPlaceholder':_0x22d051(0x1b8),'apiKeyHint':_0x22d051(0x1b5),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x22d051(0x1a3),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x22d051(0x197),'configInstructions':_0x22d051(0x199),'configStepTitle':_0x22d051(0x1b4),'configStep1':_0x22d051(0x196),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x22d051(0x1bd),'sessionId':_0x22d051(0x1be),'sessionIdDescription':_0x22d051(0x19b),'authorizationDescription':_0x22d051(0x1b3),'configParameters':_0x22d051(0x1b7),'maxRetries':_0x22d051(0x1ab),'save':_0x22d051(0x1b2),'saving':_0x22d051(0x1c4),'note1':_0x22d051(0x1c0),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x22d051(0x19c),'configError':_0x22d051(0x1b0),'apiApplyInfo':{'title':_0x22d051(0x1aa),'description':_0x22d051(0x198),'univerAiLabel':_0x22d051(0x1ac),'getStarted':_0x22d051(0x1a5)},'validation':{'apiKeyRequired':_0x22d051(0x1ae),'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':_0x22d051(0x1a0),'connecting':_0x22d051(0x195),'connected':_0x22d051(0x194),'failed':'Connection\x20Failed','retrying':_0x22d051(0x1bf)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x22d051(0x1c2),'maxRetriesExceeded':_0x22d051(0x1c5)}}},n=e;export{n as default};function _0x3288(){const _0x1fe24b=['Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','100JFqTib','Saving...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','Click\x20to\x20configure\x20MCP','Connected','Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','4146342QTskli','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20saved\x20successfully','968958VaZjzq','127220ZxEaWO','MCP:\x20Session\x20ID\x20Occupied','Disconnected','989132nwPrBa','355036zqmSVM','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','5418644kOghQG','MCP:\x20Network\x20Error','MCP\x20Retrying...','MCP\x20Disconnected','What\x20is\x20API\x20Key?','Max\x20Retries','Univer\x20AI\x20Console','15588230hAkTuz','API\x20key\x20is\x20required','API\x20Key','Failed\x20to\x20save\x20configuration','32eyLNRX','Save\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connection\x20Failed','Configuration\x20Parameters:','Enter\x20your\x20API\x20key','MCP\x20Connected','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Max\x20Retries\x20Exceeded','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session\x20ID','Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','3ukTzgc'];_0x3288=function(){return _0x1fe24b;};return _0x3288();}
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x22c8(){const _0x343201=['Max\x20Retries','API\x20Key','130WfLsqr','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Client\x20Configuration','18725Phswdv','API\x20key\x20with\x20Bearer\x20prefix.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connection\x20Failed','MCP\x20Unknown\x20Status','3347712JVQWTn','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','3279221hLMMRL','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','MCP\x20Connecting...','MCP:\x20Network\x20Error','MCP\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Retrying...','2810992mvArWz','1803730vpjAxw','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20connect\x20MCP','Session\x20ID','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','Save\x20Configuration','1ZzUgBS','Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','Connecting...','Failed\x20to\x20save\x20configuration','Enter\x20your\x20API\x20key','Retrying...','2334LNzHgn','MCP:\x20Unauthorized','3518019uhuLVo','MCP:\x20Session\x20ID\x20Occupied','What\x20is\x20API\x20Key?','Get\x20your\x20API\x20key\x20in\x20seconds','Disconnected','Univer\x20AI\x20Console','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','18WgrrOW','Invalid\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','1340650PBBITU'];_0x22c8=function(){return _0x343201;};return _0x22c8();}function _0x5272(_0x181f10,_0x2f8ea4){const _0x22c8da=_0x22c8();return _0x5272=function(_0x52727d,_0x59ec23){_0x52727d=_0x52727d-0x1ee;let _0xd5dc3c=_0x22c8da[_0x52727d];return _0xd5dc3c;},_0x5272(_0x181f10,_0x2f8ea4);}const _0x5a6927=_0x5272;(function(_0x566443,_0x927379){const _0xdd3dca=_0x5272,_0x4f2e77=_0x566443();while(!![]){try{const _0x35f8f9=-parseInt(_0xdd3dca(0x200))/0x1*(parseInt(_0xdd3dca(0x1f9))/0x2)+-parseInt(_0xdd3dca(0x20a))/0x3+parseInt(_0xdd3dca(0x21f))/0x4+-parseInt(_0xdd3dca(0x214))/0x5+parseInt(_0xdd3dca(0x208))/0x6*(-parseInt(_0xdd3dca(0x21a))/0x7)+parseInt(_0xdd3dca(0x1f8))/0x8*(-parseInt(_0xdd3dca(0x211))/0x9)+-parseInt(_0xdd3dca(0x217))/0xa*(-parseInt(_0xdd3dca(0x1ef))/0xb);if(_0x35f8f9===_0x927379)break;else _0x4f2e77['push'](_0x4f2e77['shift']());}catch(_0x58b282){_0x4f2e77['push'](_0x4f2e77['shift']());}}}(_0x22c8,0x98ecc));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5a6927(0x1f2),'connected':'MCP\x20Connected','failed':_0x5a6927(0x1fe),'retrying':_0x5a6927(0x1f7),'unknown':_0x5a6927(0x21e),'unauthorized':_0x5a6927(0x209),'sessionOccupied':_0x5a6927(0x20b),'networkError':_0x5a6927(0x1f3),'maxRetriesExceeded':_0x5a6927(0x1f6),'clickToConnect':_0x5a6927(0x1fb),'clickToConfigure':_0x5a6927(0x1f1)},'mcpConfig':{'title':_0x5a6927(0x1f4),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x5a6927(0x216),'apiKeyPlaceholder':_0x5a6927(0x206),'apiKeyHint':_0x5a6927(0x1ee),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5a6927(0x219),'mcpClientConfig':_0x5a6927(0x219),'configInstructions':_0x5a6927(0x220),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5a6927(0x218),'configStep3':_0x5a6927(0x21c),'sessionId':_0x5a6927(0x1fc),'sessionIdDescription':_0x5a6927(0x210),'authorizationDescription':_0x5a6927(0x21b),'configParameters':_0x5a6927(0x203),'maxRetries':_0x5a6927(0x215),'save':_0x5a6927(0x1ff),'saving':'Saving...','note1':_0x5a6927(0x213),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x5a6927(0x205),'apiApplyInfo':{'title':_0x5a6927(0x20c),'description':_0x5a6927(0x1fa),'univerAiLabel':_0x5a6927(0x20f),'getStarted':_0x5a6927(0x20d)},'validation':{'apiKeyRequired':_0x5a6927(0x1f0),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5a6927(0x212),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5a6927(0x20e),'connecting':_0x5a6927(0x204),'connected':_0x5a6927(0x201),'failed':_0x5a6927(0x21d),'retrying':_0x5a6927(0x207)},'connectionError':{'unauthorized':_0x5a6927(0x1f5),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5a6927(0x202),'maxRetriesExceeded':_0x5a6927(0x1fd)}}},n=e;export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x5ab3(_0x1e8397,_0x5de135){const _0x4beba6=_0x4beb();return _0x5ab3=function(_0x5ab3a0,_0x3545ed){_0x5ab3a0=_0x5ab3a0-0x168;let _0x480d21=_0x4beba6[_0x5ab3a0];return _0x480d21;},_0x5ab3(_0x1e8397,_0x5de135);}const _0x118023=_0x5ab3;(function(_0xcec824,_0x4dbe94){const _0x146493=_0x5ab3,_0x55994b=_0xcec824();while(!![]){try{const _0x48aba9=parseInt(_0x146493(0x17d))/0x1+parseInt(_0x146493(0x17f))/0x2*(parseInt(_0x146493(0x17c))/0x3)+-parseInt(_0x146493(0x190))/0x4*(parseInt(_0x146493(0x199))/0x5)+-parseInt(_0x146493(0x16c))/0x6+-parseInt(_0x146493(0x176))/0x7*(-parseInt(_0x146493(0x179))/0x8)+parseInt(_0x146493(0x173))/0x9*(-parseInt(_0x146493(0x16d))/0xa)+parseInt(_0x146493(0x18f))/0xb;if(_0x48aba9===_0x4dbe94)break;else _0x55994b['push'](_0x55994b['shift']());}catch(_0x45f0ff){_0x55994b['push'](_0x55994b['shift']());}}}(_0x4beb,0x4caa7));function _0x4beb(){const _0x70e1c3=['什么是\x20API\x20密钥?','配置保存失败','配置\x20MCP\x20使用\x20AI\x20操作电子表格','几秒钟内获取您的\x20API\x20密钥','请输入您的\x20API\x20密钥','3511362aicXWj','321280xPukhu','启用身份验证','MCP\x20连接中...','MCP:\x20超出最大重试次数','重连中...','您的\x20API\x20密钥将在此浏览器中本地存储','162NnOaew','配置保存成功','配置无效','13538ZvqOsJ','MCP\x20客户端配置','保存配置','712Hqbzez','MCP\x20配置','MCP\x20连接失败','15213QPJVJo','495554zCFtjm','Univer\x20AI\x20控制台','46AbLRdG','连接中...','配置参数:','带有\x20Bearer\x20前缀的\x20API\x20密钥。','会话\x20ID\x20已被占用,请稍后再试','网络连接错误,请检查您的网络连接','会话ID','MCP:\x20未授权','MCP\x20状态未知','保存中...','启用身份验证以获得安全连接','API\x20密钥无效,请检查密钥是否正确','已连接','API\x20密钥','配置步骤:','连接失败','14253844ZRMxiI','4qkRXHU','复制以下\x20JSON\x20配置','最大重试次数','MCP\x20重连中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','权限验证失败,请检查您的\x20API\x20密钥','配置更改将立即生效','MCP\x20已连接','3012815mNhFAD','重启您的\x20MCP\x20客户端以使配置生效','API\x20密钥不能为空','MCP:\x20会话\x20ID\x20已被占用','点击连接\x20MCP'];_0x4beb=function(){return _0x70e1c3;};return _0x4beb();}const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x118023(0x16f),'connected':_0x118023(0x198),'failed':_0x118023(0x17b),'retrying':_0x118023(0x193),'unknown':_0x118023(0x187),'unauthorized':_0x118023(0x186),'sessionOccupied':_0x118023(0x19c),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x118023(0x170),'clickToConnect':_0x118023(0x19d),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x118023(0x17a),'description':_0x118023(0x169),'apiKey':_0x118023(0x18c),'apiKeyPlaceholder':_0x118023(0x16b),'apiKeyHint':_0x118023(0x172),'enableAuth':_0x118023(0x16e),'enableAuthHint':_0x118023(0x189),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x118023(0x177),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x118023(0x18d),'configStep1':_0x118023(0x191),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x118023(0x19a),'sessionId':_0x118023(0x185),'sessionIdDescription':_0x118023(0x194),'authorizationDescription':_0x118023(0x182),'configParameters':_0x118023(0x181),'maxRetries':_0x118023(0x192),'save':_0x118023(0x178),'saving':_0x118023(0x188),'note1':_0x118023(0x197),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x118023(0x174),'configError':_0x118023(0x168),'apiApplyInfo':{'title':_0x118023(0x19e),'description':_0x118023(0x195),'univerAiLabel':_0x118023(0x17e),'getStarted':_0x118023(0x16a)},'validation':{'apiKeyRequired':_0x118023(0x19b),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x118023(0x175),'invalidApiKey':_0x118023(0x18a)},'connectionStatus':{'disconnected':'未连接','connecting':_0x118023(0x180),'connected':_0x118023(0x18b),'failed':_0x118023(0x18e),'retrying':_0x118023(0x171)},'connectionError':{'unauthorized':_0x118023(0x196),'sessionOccupied':_0x118023(0x183),'networkError':_0x118023(0x184),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1a3a(){const _0x268bc9=['588224SACFDx','867027BlFPUh','Univer\x20AI\x20Console','Saving...','31856DUdZRC','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','Session\x20ID','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.','MCP\x20Client\x20Configuration','API\x20Key','Max\x20Retries','MCP\x20Connection\x20Failed','Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Configuration','1047Ccegfi','Invalid\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20is\x20required','MCP\x20Unknown\x20Status','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','2528365eRsgSR','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','Save\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connected','9096072iwUHiJ','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','5121522aCesnR','Enable\x20Authentication','MCP:\x20Session\x20ID\x20Occupied','4790ZRMEwv','MCP:\x20Unauthorized','MCP\x20Retrying...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later'];_0x1a3a=function(){return _0x268bc9;};return _0x1a3a();}const _0x4bd2e9=_0xd892;function _0xd892(_0x38811c,_0x38cf88){const _0x1a3a1e=_0x1a3a();return _0xd892=function(_0xd89208,_0x32be9b){_0xd89208=_0xd89208-0x19b;let _0x20db0d=_0x1a3a1e[_0xd89208];return _0x20db0d;},_0xd892(_0x38811c,_0x38cf88);}(function(_0x57b7d6,_0x941395){const _0x4b5c16=_0xd892,_0xdbe217=_0x57b7d6();while(!![]){try{const _0x1ec32e=-parseInt(_0x4b5c16(0x1b1))/0x1+-parseInt(_0x4b5c16(0x1a9))/0x2*(-parseInt(_0x4b5c16(0x1bf))/0x3)+-parseInt(_0x4b5c16(0x1ad))/0x4+-parseInt(_0x4b5c16(0x19d))/0x5+-parseInt(_0x4b5c16(0x1a6))/0x6+parseInt(_0x4b5c16(0x1ae))/0x7+parseInt(_0x4b5c16(0x1a4))/0x8;if(_0x1ec32e===_0x941395)break;else _0xdbe217['push'](_0xdbe217['shift']());}catch(_0x135bcf){_0xdbe217['push'](_0xdbe217['shift']());}}}(_0x1a3a,0x885d9));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x4bd2e9(0x1a3),'failed':_0x4bd2e9(0x1ba),'retrying':_0x4bd2e9(0x1ab),'unknown':_0x4bd2e9(0x19b),'unauthorized':_0x4bd2e9(0x1aa),'sessionOccupied':_0x4bd2e9(0x1a8),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4bd2e9(0x1be),'description':_0x4bd2e9(0x1c5),'apiKey':_0x4bd2e9(0x1b8),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x4bd2e9(0x1c1),'enableAuth':_0x4bd2e9(0x1a7),'enableAuthHint':_0x4bd2e9(0x1a0),'connectionInfo':_0x4bd2e9(0x1b7),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4bd2e9(0x1c2),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4bd2e9(0x1a5),'sessionId':_0x4bd2e9(0x1b4),'sessionIdDescription':_0x4bd2e9(0x1c3),'authorizationDescription':_0x4bd2e9(0x1bd),'configParameters':_0x4bd2e9(0x1b3),'maxRetries':_0x4bd2e9(0x1b9),'save':_0x4bd2e9(0x1a1),'saving':_0x4bd2e9(0x1b0),'note1':_0x4bd2e9(0x19c),'note2':_0x4bd2e9(0x1a2),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x4bd2e9(0x1b6),'univerAiLabel':_0x4bd2e9(0x1af),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4bd2e9(0x1c6),'apiKeyTooShort':_0x4bd2e9(0x1b5),'invalidConfig':_0x4bd2e9(0x1c0),'invalidApiKey':_0x4bd2e9(0x1c4)},'connectionStatus':{'disconnected':_0x4bd2e9(0x1bb),'connecting':'Connecting...','connected':'Connected','failed':_0x4bd2e9(0x19f),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x4bd2e9(0x1bc),'sessionOccupied':_0x4bd2e9(0x1ac),'networkError':_0x4bd2e9(0x1b2),'maxRetriesExceeded':_0x4bd2e9(0x19e)}}},n=e;export{n as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x242d(_0x126791,_0x588546){const _0x32e292=_0x32e2();return _0x242d=function(_0x242d80,_0x140294){_0x242d80=_0x242d80-0x1ad;let _0x261af6=_0x32e292[_0x242d80];return _0x261af6;},_0x242d(_0x126791,_0x588546);}function _0x32e2(){const _0x4dae88=['\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','Connecting...','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','function','error','重启您的\x20MCP\x20客户端以使配置生效','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','mcpConfig.configStep2','_validateConfig','Enable\x20Authentication','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1387016stMSIC','open','What\x20is\x20API\x20Key?','MCP\x20连接失败','重连中...','attrs','removeItem','showConfigPanel','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.connectionStatus.disconnected','Univer\x20AI\x20Console','MCP\x20Disconnected','@univerjs/design','CheckMarkIcon','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.configInstructions','univer-text-xs\x20univer-text-gray-500','MCP\x20Connection\x20Failed','string','_mcpConnectionController','univer-flex\x20univer-items-center','会话\x20ID\x20已被占用,请稍后再试','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpStatus.failed','div','_connectionController','symbol','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_config$','univer-flex\x20univer-items-start\x20univer-gap-3','M0\x200H16V16H0z','next','univer.ai','API\x20密钥无效,请检查密钥是否正确','_initStatusComponent','evenodd','mcpStatus.maxRetriesExceeded','current','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MAX_RETRIES_EXCEEDED','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','点击连接\x20MCP','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','HelpIcon','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','round','Connected','CONNECTED','__setCustomHeaders','mcpConfig.note2','请输入您的\x20API\x20密钥','mcpConfig.connectionError.networkError','mcpServerUrl','React','off','配置步骤:','FAILED','MCP_PLUGIN_CONFIG_KEY','mcpStatus.clickToConfigure','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','MCP:\x20会话\x20ID\x20已被占用','mcpConfig.configSaved','_createConfigPanelComponent','validateApiKey','rxjs','useObservable','close','univer-text-sm\x20univer-font-medium','registerCommand','_blank','_uiPartsService','defIds','off-line-icon_clip0_910_343','map','length','show','配置保存成功','Configuration\x20saved\x20successfully','MCP:\x20Max\x20Retries\x20Exceeded','Authorization:','univer-text-gray-500','<SESSION_ID>','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','subscribeConfigValue$','isValid','Click\x20to\x20configure\x20MCP','amd','Saving...','_config','mcpStatus.connecting','mcpConfig.configStep1','超出最大重试次数,请稍后再试','NONE','mcpConfig.connectionStatus.connected','connectionError$','add','mcpStatus.connected','NETWORK_ERROR','univer-text-gray-400','1220274uXMvHl','Copy\x20the\x20JSON\x20configuration\x20below','object','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','close-icon','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','displayName','assign','MCPUIMenuController','forwardRef','getCurrentConfig','MCP\x20Unknown\x20Status','path','get','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','includes','连接失败','705944eALQxq','API\x20key\x20is\x20required','MCP\x20状态未知','您的\x20API\x20密钥将在此浏览器中本地存储','mcpConfig.apiApplyInfo.univerAiLabel','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpStatus.disconnected','186814VteuIf','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20configuration','API\x20key\x20with\x20Bearer\x20prefix.','mcp-config-dialog','_initAutoConnect','getOwnPropertyDescriptor','连接中...','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Failed\x20to\x20save\x20configuration','Tooltip','MCP:\x20未授权','0\x200\x2016\x2016','_loading$','mcpConfig.title','zhCN','OTHERS','_commandService','on-line-icon_clip0_910_349','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpStatus.networkError','merge','RETRYING','_initializeMenus','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','@univerjs-pro/mcp','_mcpCoreConfig$','toString','xlink:href','750eRpjpD','CONNECTING','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_apiKey$','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','showStatus','LocaleService','RibbonStartGroup','\x20-\x20','univer-space-y-4','MCP:\x20Session\x20ID\x20Occupied','会话ID','配置无效','getConfig','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCPConnectionUIController','MCPConnectionError','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','BuiltInUIPart','univer.plus','Click\x20to\x20connect\x20MCP','useCallback','mcpConfig.sessionIdDescription','_initializeCommands','83347xxxMVO','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-flex\x20univer-items-center\x20univer-gap-2','_localeService','UniverMCPPlugin','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','API\x20Key','mcpConfig.connectionError.sessionOccupied','univer-space-y-2','mcpConfig.apiApplyInfo.title','mcpStatus.unknown','OnLineIcon','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','DISCONNECTED','univer-flex\x20univer-gap-3','mcpConfig.description','什么是\x20API\x20密钥?','getItem','MCPConnectionController','http://www.w3.org/2000/svg','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','jsx','jsxs','univer-mr-2\x20univer-flex\x20univer-text-xl','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','svg','mcpConfig.apiApplyInfo.description','forEach','SESSION_ID_OCCUPIED','_messageService','substring','5UNSZmn','Configuration\x20Parameters:','MCP:\x20Network\x20Error','IUIPartsService','apiKey','Get\x20your\x20API\x20key\x20in\x20seconds','disposeWithMe','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','warn','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-text-red-500','mask','mcpConfig.connectionInfo','defs','univer-min-w-0\x20univer-flex-1','mcpStatus.unauthorized','clsx','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Configuration','register','UniverProMcpUi','univer-size-2\x20univer-rounded-full','UNAUTHORIZED','mcpConfig.apiKey','Retrying...','univer-flex\x20univer-items-start\x20univer-gap-2','connectInjector','Univer\x20AI\x20控制台','将配置添加到您的\x20MCP\x20客户端设置文件中','Module','univer-text-white','MCPConfigPanel','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-space-y-3','_dialogService','useRef','fill','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','IDialogService','url(#on-line-icon_clip0_910_349)','_configService','mcpConfig.save','univer-text-xs\x20univer-text-gray-600','mcpStatus.retrying','UniverNetwork','pre','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','_loadStoredApiKey','_handleConfigSave','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','idSuffix','MCP_UI_PLUGIN','MCPConfigUIController','enableAutoConnect','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCP:\x20网络错误','Injector','text','none','9dwNzIn','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','CloseIcon','IMessageService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','181751dRWrcb','Enable\x20authentication\x20for\x20secure\x20connections','MessageType','url(#$1','Save\x20Configuration','sessionId$','MCP:\x20Unauthorized','MCP\x20重连中...','API\x20密钥不能为空','entries','off-line-icon','https://console.univer.ai','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','OpenMCPConfigPanelCommand','_localStorageService','MCPConnectionStatus','children','MCP:\x20超出最大重试次数','MCP\x20已断开','connectionStatus$','Button','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','noopener\x20noreferrer','配置保存失败','MCP\x20Client\x20Configuration','mcpConfig.apiKeyHint','1em','registerComponent','tag','mcpConfig.note1','@univerjs/ui','colorChannel1','已连接','UniverMCPUIPlugin','enUS','mcpConfig.connectionStatus.failed','BehaviorSubject','_handleConfigure','https://console.univer.plus','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','_initConfigSync','Success','权限验证失败,请检查您的\x20API\x20密钥','点击配置\x20MCP','MCP\x20客户端配置','MCP\x20Retrying...','white','MenuIcon','button','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','Bearer\x20','WebSocketService','mcp-ui.command.openConfigPanel','Error','_logService','span','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','ISocketService','useDependency','IConfigService','Inject','_registerComponent','trim','mcpConfig.validation.apiKeyTooShort','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mergeMenu','mcpConfig.connectionStatus.connecting','createElement','BUTTON','CommandType','ILogService','_injector','最大重试次数','ILocalStorageService','OffLineIcon','mcpConfig.connectionError.unauthorized','Disposable','Configuration\x20Steps:','mcpConfig.authorizationDescription','几秒钟内获取您的\x20API\x20密钥','mcpConfig.validation.invalidApiKey','Plugin','MCPStatusDisplay','currentColor','1081482FMsyug','url(#off-line-icon_clip0_910_343)','check-mark-icon','https://mcp.univer.ai/mcp/?univer_session_id=','mcpConfig.configStep3','COMMAND','_componentManager','API\x20密钥','defineProperty','7kejjAN','showDeveloperTools','value','Max\x20Retries','label','API\x20密钥长度至少需要\x2010\x20位','clipPath','将以下配置添加到您的\x20MCP\x20客户端设置中:','_menuManagerService','Enter\x20your\x20API\x20key'];_0x32e2=function(){return _0x4dae88;};return _0x32e2();}(function(_0xc023f8,_0x53ecf8){const _0x3a1b87=_0x242d,_0x3946b7=_0xc023f8();while(!![]){try{const _0x524ae1=-parseInt(_0x3a1b87(0x1b9))/0x1+parseInt(_0x3a1b87(0x2a8))/0x2*(-parseInt(_0x3a1b87(0x1b4))/0x3)+parseInt(_0x3a1b87(0x22b))/0x4+-parseInt(_0x3a1b87(0x2fe))/0x5*(parseInt(_0x3a1b87(0x20d))/0x6)+-parseInt(_0x3a1b87(0x216))/0x7*(-parseInt(_0x3a1b87(0x2a1))/0x8)+-parseInt(_0x3a1b87(0x290))/0x9+-parseInt(_0x3a1b87(0x2c5))/0xa*(-parseInt(_0x3a1b87(0x2dd))/0xb);if(_0x524ae1===_0x53ecf8)break;else _0x3946b7['push'](_0x3946b7['shift']());}catch(_0x52d8b5){_0x3946b7['push'](_0x3946b7['shift']());}}}(_0x32e2,0x370bb),function(_0x69e678,_0x18dcd9){const _0x336314=_0x242d;typeof exports==_0x336314(0x292)&&typeof module<'u'?_0x18dcd9(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==_0x336314(0x223)&&define[_0x336314(0x283)]?define(['exports','@univerjs/core','react/jsx-runtime',_0x336314(0x2c1),_0x336314(0x239),_0x336314(0x1d7),_0x336314(0x26d),'react','@univerjs/network'],_0x18dcd9):(_0x69e678=typeof globalThis<'u'?globalThis:_0x69e678||self,_0x18dcd9(_0x69e678[_0x336314(0x312)]={},_0x69e678['UniverCore'],_0x69e678[_0x336314(0x262)],_0x69e678['UniverProMcp'],_0x69e678['UniverDesign'],_0x69e678['UniverUi'],_0x69e678[_0x336314(0x26d)],_0x69e678['React'],_0x69e678[_0x336314(0x32c)]));}(this,function(_0x2b6d99,_0x312e57,_0x2aeb90,_0x418a08,_0x42198d,_0x2de5ed,_0x110352,_0x39fca9,_0x5c6a22){'use strict';const _0x3832a3=_0x242d;var _0x3a20c3=Object[_0x3832a3(0x215)],_0x4b788c=(_0x1011c8,_0x51a352,_0x217195)=>_0x51a352 in _0x1011c8?_0x3a20c3(_0x1011c8,_0x51a352,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x217195}):_0x1011c8[_0x51a352]=_0x217195,_0x3f0fad=(_0x5ae805,_0xe63d7b,_0x4b60b1)=>_0x4b788c(_0x5ae805,typeof _0xe63d7b!=_0x3832a3(0x247)?_0xe63d7b+'':_0xe63d7b,_0x4b60b1);function _0x5096f9({ref:_0x200d5d,..._0x432948}){const _0x773419=_0x3832a3,{icon:_0x47a37d,id:_0x4754d3,className:_0x1dfea4,extend:_0x2cce9a,..._0x581c68}=_0x432948,_0x9c9ccc=('univerjs-icon\x20univerjs-icon-'+_0x4754d3+'\x20'+(_0x1dfea4||''))['trim'](),_0x3ae93a=_0x39fca9[_0x773419(0x323)]('_'+_0x3e2c20());return _0xc596e1(_0x47a37d,''+_0x4754d3,{'defIds':_0x47a37d[_0x773419(0x274)],'idSuffix':_0x3ae93a[_0x773419(0x252)]},{'ref':_0x200d5d,'className':_0x9c9ccc,..._0x581c68},_0x2cce9a);}function _0xc596e1(_0x10664b,_0x5edc5f,_0x575227,_0x17c4cd,_0x237b05){const _0x2cb139=_0x3832a3;return _0x39fca9[_0x2cb139(0x1fc)](_0x10664b[_0x2cb139(0x1d5)],{'key':_0x5edc5f,..._0x3ff009(_0x10664b,_0x575227,_0x237b05),..._0x17c4cd},(_0x13d50e(_0x10664b,_0x575227)[_0x2cb139(0x1c9)]||[])['map']((_0x2a3742,_0x31c914)=>_0xc596e1(_0x2a3742,_0x5edc5f+'-'+_0x10664b[_0x2cb139(0x1d5)]+'-'+_0x31c914,_0x575227,void 0x0,_0x237b05)));}function _0x3ff009(_0x2d3f7a,_0x199b1c,_0x5d063c){const _0x4ca550=_0x3832a3,_0x4b14c8={..._0x2d3f7a[_0x4ca550(0x230)]};_0x5d063c!=null&&_0x5d063c[_0x4ca550(0x1d8)]&&_0x4b14c8['fill']===_0x4ca550(0x1d8)&&(_0x4b14c8[_0x4ca550(0x324)]=_0x5d063c[_0x4ca550(0x1d8)]),_0x2d3f7a[_0x4ca550(0x1d5)]===_0x4ca550(0x309)&&_0x4b14c8['id']&&(_0x4b14c8['id']=_0x4b14c8['id']+_0x199b1c['idSuffix']),Object[_0x4ca550(0x1c2)](_0x4b14c8)['forEach'](([_0x3b9751,_0x3cc6ca])=>{const _0x59f0ec=_0x4ca550;_0x3b9751===_0x59f0ec(0x309)&&typeof _0x3cc6ca==_0x59f0ec(0x23f)&&(_0x4b14c8[_0x3b9751]=_0x3cc6ca['replace'](/url\(#(.*)\)/,_0x59f0ec(0x1bc)+_0x199b1c['idSuffix']+')'));});const {defIds:_0x1ef9f7}=_0x199b1c;return!_0x1ef9f7||_0x1ef9f7[_0x4ca550(0x277)]===0x0||(_0x2d3f7a[_0x4ca550(0x1d5)]==='use'&&_0x4b14c8[_0x4ca550(0x2c4)]&&(_0x4b14c8[_0x4ca550(0x2c4)]=_0x4b14c8[_0x4ca550(0x2c4)]+_0x199b1c[_0x4ca550(0x332)]),Object['entries'](_0x4b14c8)[_0x4ca550(0x2fa)](([_0x348101,_0x1e5bf1])=>{const _0x3f4687=_0x4ca550;typeof _0x1e5bf1==_0x3f4687(0x23f)&&(_0x4b14c8[_0x348101]=_0x1e5bf1['replace'](/url\(#(.*)\)/,'url(#$1'+_0x199b1c[_0x3f4687(0x332)]+')'));})),_0x4b14c8;}function _0x13d50e(_0x59eb3c,_0x438815){const _0x2fdf36=_0x3832a3;var _0x465aa6;const {defIds:_0x3778db}=_0x438815;return!_0x3778db||_0x3778db['length']===0x0?_0x59eb3c:_0x59eb3c[_0x2fdf36(0x1d5)]===_0x2fdf36(0x30b)&&((_0x465aa6=_0x59eb3c[_0x2fdf36(0x1c9)])!=null&&_0x465aa6[_0x2fdf36(0x277)])?{..._0x59eb3c,'children':_0x59eb3c[_0x2fdf36(0x1c9)][_0x2fdf36(0x276)](_0x1fbaaa=>typeof _0x1fbaaa[_0x2fdf36(0x230)]['id']==_0x2fdf36(0x23f)&&_0x3778db&&_0x3778db['includes'](_0x1fbaaa[_0x2fdf36(0x230)]['id'])?{..._0x1fbaaa,'attrs':{..._0x1fbaaa[_0x2fdf36(0x230)],'id':_0x1fbaaa[_0x2fdf36(0x230)]['id']+_0x438815[_0x2fdf36(0x332)]}}:_0x1fbaaa)}:_0x59eb3c;}function _0x3e2c20(){const _0x1ae7b0=_0x3832a3;return Math['random']()[_0x1ae7b0(0x2c3)](0x24)[_0x1ae7b0(0x2fd)](0x2,0x8);}_0x5096f9[_0x3832a3(0x296)]='UniverIcon';const _0x29dee7={'tag':_0x3832a3(0x2f8),'attrs':{'xmlns':_0x3832a3(0x2f1),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x3832a3(0x1d3),'height':_0x3832a3(0x1d3)},'children':[{'tag':_0x3832a3(0x29c),'attrs':{'fill':_0x3832a3(0x20c),'d':_0x3832a3(0x2ea),'fillRule':'evenodd','clipRule':_0x3832a3(0x250)}}]},_0x108ba2=_0x39fca9[_0x3832a3(0x299)](function(_0x50760f,_0x1c0eaf){const _0x143cb9=_0x3832a3;return _0x39fca9['createElement'](_0x5096f9,Object[_0x143cb9(0x297)]({},_0x50760f,{'id':_0x143cb9(0x20f),'ref':_0x1c0eaf,'icon':_0x29dee7}));});_0x108ba2[_0x3832a3(0x296)]=_0x3832a3(0x23a);const _0x54b384={'tag':_0x3832a3(0x2f8),'attrs':{'xmlns':_0x3832a3(0x2f1),'fill':_0x3832a3(0x1b3),'viewBox':_0x3832a3(0x2b4),'width':'1em','height':_0x3832a3(0x1d3)},'children':[{'tag':_0x3832a3(0x29c),'attrs':{'fill':_0x3832a3(0x20c),'d':_0x3832a3(0x325)}}]},_0x4047fa=_0x39fca9[_0x3832a3(0x299)](function(_0xe4d592,_0x157e86){const _0x12dabf=_0x3832a3;return _0x39fca9[_0x12dabf(0x1fc)](_0x5096f9,Object['assign']({},_0xe4d592,{'id':_0x12dabf(0x294),'ref':_0x157e86,'icon':_0x54b384}));});_0x4047fa['displayName']=_0x3832a3(0x1b6);const _0x2cc309={'tag':'svg','attrs':{'xmlns':_0x3832a3(0x2f1),'fill':_0x3832a3(0x1b3),'viewBox':_0x3832a3(0x2b4),'width':'1em','height':'1em'},'children':[{'tag':_0x3832a3(0x29c),'attrs':{'fill':_0x3832a3(0x20c),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x3832a3(0x29c),'attrs':{'fill':_0x3832a3(0x20c),'d':_0x3832a3(0x1ea)}},{'tag':_0x3832a3(0x29c),'attrs':{'fill':_0x3832a3(0x20c),'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':_0x3832a3(0x250),'clipRule':_0x3832a3(0x250)}}]},_0x580080=_0x39fca9[_0x3832a3(0x299)](function(_0x8ffc53,_0x4704a1){const _0x56fb0c=_0x3832a3;return _0x39fca9[_0x56fb0c(0x1fc)](_0x5096f9,Object['assign']({},_0x8ffc53,{'id':'help-icon','ref':_0x4704a1,'icon':_0x2cc309}));});_0x580080[_0x3832a3(0x296)]=_0x3832a3(0x258);const _0x45c5bc={'tag':_0x3832a3(0x2f8),'attrs':{'xmlns':_0x3832a3(0x2f1),'fill':_0x3832a3(0x1b3),'viewBox':_0x3832a3(0x2b4),'width':_0x3832a3(0x1d3),'height':_0x3832a3(0x1d3)},'children':[{'tag':'g','attrs':{'clipPath':_0x3832a3(0x20e)},'children':[{'tag':_0x3832a3(0x29c),'attrs':{'stroke':_0x3832a3(0x20c),'d':_0x3832a3(0x293),'strokeLinecap':_0x3832a3(0x25a),'strokeLinejoin':_0x3832a3(0x25a),'strokeWidth':1.2}}]},{'tag':_0x3832a3(0x30b),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x3832a3(0x29c),'attrs':{'fill':_0x3832a3(0x1e7),'d':_0x3832a3(0x24b)}}]}]}],'defIds':[_0x3832a3(0x275)]},_0x31d142=_0x39fca9['forwardRef'](function(_0x35567,_0x455301){const _0x3faf96=_0x3832a3;return _0x39fca9[_0x3faf96(0x1fc)](_0x5096f9,Object['assign']({},_0x35567,{'id':_0x3faf96(0x1c3),'ref':_0x455301,'icon':_0x45c5bc}));});_0x31d142['displayName']=_0x3832a3(0x203);const _0x18933={'tag':_0x3832a3(0x2f8),'attrs':{'xmlns':_0x3832a3(0x2f1),'fill':_0x3832a3(0x1b3),'viewBox':'0\x200\x2017\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3832a3(0x327)},'children':[{'tag':_0x3832a3(0x29c),'attrs':{'stroke':_0x3832a3(0x20c),'d':_0x3832a3(0x32e),'strokeLinecap':'round','strokeLinejoin':_0x3832a3(0x25a),'strokeWidth':1.2}}]},{'tag':_0x3832a3(0x30b),'attrs':{},'children':[{'tag':_0x3832a3(0x21c),'attrs':{'id':_0x3832a3(0x2ba)},'children':[{'tag':_0x3832a3(0x29c),'attrs':{'fill':'white','d':_0x3832a3(0x24b),'transform':'translate(.97)'}}]}]}],'defIds':[_0x3832a3(0x2ba)]},_0x595029=_0x39fca9['forwardRef'](function(_0xb50e5b,_0x8079b2){return _0x39fca9['createElement'](_0x5096f9,Object['assign']({},_0xb50e5b,{'id':'on-line-icon','ref':_0x8079b2,'icon':_0x18933}));});_0x595029[_0x3832a3(0x296)]=_0x3832a3(0x2e9);function _0xf77188(_0xff38e4){const _0x1d7c27=_0x3832a3;var _0x28e600,_0x4ed214;const {mcpCoreConfig:_0x5c2cc6,onSave:_0x312cfa,loading:_0x548c6c=!0x1,config:_0x10d1a0,connectionStatus$:_0x248170,connectionError$:_0x49ca45,currentApiKey$:_0x100d68,currentSessionId$:_0x2ff197}=_0xff38e4,_0x5d2f54=_0x2de5ed[_0x1d7c27(0x1f3)](_0x312e57[_0x1d7c27(0x2cb)]),_0x1c2972=_0x2de5ed[_0x1d7c27(0x26e)](_0x248170,_0x418a08[_0x1d7c27(0x1c8)][_0x1d7c27(0x2eb)]),_0xdca8d0=_0x2de5ed['useObservable'](_0x49ca45,_0x418a08[_0x1d7c27(0x2d5)][_0x1d7c27(0x289)]),_0x426ee9=_0x2de5ed[_0x1d7c27(0x26e)](_0x2ff197,''),_0x4207a8=_0x2de5ed[_0x1d7c27(0x26e)](_0x100d68,''),[_0x57a168,_0x4a573e]=_0x39fca9['useState'](_0x4207a8||''),_0x426c97=!0x0,_0x53f623=_0x10d1a0['showDeveloperTools']&&_0x5c2cc6[_0x1d7c27(0x261)]&&(_0x5c2cc6[_0x1d7c27(0x261)]['includes'](_0x1d7c27(0x2d8))||_0x5c2cc6[_0x1d7c27(0x261)][_0x1d7c27(0x29f)]('univer.ai')),_0x9eef88=(_0x28e600=_0x5c2cc6[_0x1d7c27(0x261)])==null?void 0x0:_0x28e600[_0x1d7c27(0x29f)](_0x1d7c27(0x2d8)),_0x48eaa1=(_0x4ed214=_0x5c2cc6[_0x1d7c27(0x261)])==null?void 0x0:_0x4ed214[_0x1d7c27(0x29f)](_0x1d7c27(0x24d)),_0x22ef18=_0x9eef88?_0x1d7c27(0x1df):_0x1d7c27(0x1c4),_0x51f0bd=_0x10d1a0['showDeveloperTools']&&(_0x9eef88||_0x48eaa1),[_0x1376a4,_0x54b7a9]=_0x39fca9['useState'](!_0x57a168[_0x1d7c27(0x1f7)]()),_0x88b792=(_0x227f9f,_0x1ac1a7)=>{const _0x1c9124=_0x1d7c27;if(_0x1ac1a7===_0x418a08[_0x1c9124(0x2d5)][_0x1c9124(0x314)])return _0x1c9124(0x2e3);switch(_0x227f9f){case _0x418a08[_0x1c9124(0x1c8)]['CONNECTED']:return _0x1c9124(0x2bb);case _0x418a08[_0x1c9124(0x1c8)][_0x1c9124(0x2c6)]:case _0x418a08[_0x1c9124(0x1c8)][_0x1c9124(0x2be)]:return _0x1c9124(0x295);case _0x418a08[_0x1c9124(0x1c8)][_0x1c9124(0x265)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x1c9124(0x1ce);}},_0x513f5a=(_0x54a34e,_0x44fd58)=>{const _0x2a174b=_0x1d7c27;if(_0x44fd58===_0x418a08[_0x2a174b(0x2d5)]['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x54a34e){case _0x418a08[_0x2a174b(0x1c8)][_0x2a174b(0x25c)]:return'univer-bg-green-500';case _0x418a08['MCPConnectionStatus'][_0x2a174b(0x2c6)]:case _0x418a08[_0x2a174b(0x1c8)][_0x2a174b(0x2be)]:return'univer-bg-blue-500';case _0x418a08['MCPConnectionStatus'][_0x2a174b(0x265)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x265604=_0x33d5ad=>{const _0x2f9843=_0x1d7c27;switch(_0x33d5ad){case _0x418a08[_0x2f9843(0x1c8)][_0x2f9843(0x25c)]:return _0x5d2f54['t'](_0x2f9843(0x28a));case _0x418a08[_0x2f9843(0x1c8)][_0x2f9843(0x2c6)]:return _0x5d2f54['t'](_0x2f9843(0x1fb));case _0x418a08[_0x2f9843(0x1c8)]['FAILED']:return _0x5d2f54['t'](_0x2f9843(0x1dc));case _0x418a08[_0x2f9843(0x1c8)][_0x2f9843(0x2be)]:return _0x5d2f54['t']('mcpConfig.connectionStatus.retrying');default:return _0x5d2f54['t'](_0x2f9843(0x236));}},_0x39711f=_0x6387fc=>{const _0x34a849=_0x1d7c27;switch(_0x6387fc){case _0x418a08[_0x34a849(0x2d5)][_0x34a849(0x314)]:return _0x5d2f54['t'](_0x34a849(0x204));case _0x418a08[_0x34a849(0x2d5)]['SESSION_ID_OCCUPIED']:return _0x5d2f54['t'](_0x34a849(0x2e5));case _0x418a08[_0x34a849(0x2d5)][_0x34a849(0x28e)]:return _0x5d2f54['t'](_0x34a849(0x260));case _0x418a08['MCPConnectionError'][_0x34a849(0x254)]:return _0x5d2f54['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x41c2e8=_0x39fca9[_0x1d7c27(0x2da)](()=>{const _0x5a2dde=_0x1d7c27,_0x7b7a57={..._0x5c2cc6,'apiKey':_0x57a168[_0x5a2dde(0x1f7)](),'enableAuth':_0x426c97};_0x312cfa(_0x7b7a57);},[_0x5c2cc6,_0x57a168,_0x426c97,_0x312cfa]),_0x148e0c=_0x57a168['trim']()[_0x1d7c27(0x277)]>0x0;return _0x2aeb90[_0x1d7c27(0x2f5)](_0x1d7c27(0x245),{'className':_0x1d7c27(0x1b5),'children':[_0x2aeb90['jsx'](_0x1d7c27(0x245),{'className':_0x1d7c27(0x253),'children':_0x2aeb90[_0x1d7c27(0x2f5)](_0x1d7c27(0x245),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x245),{'className':_0x1d7c27(0x234),'children':_0x2aeb90[_0x1d7c27(0x2f4)]('span',{'className':_0x1d7c27(0x31c),'children':'⚙'})}),_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x245),{'children':_0x2aeb90['jsx']('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x5d2f54['t'](_0x1d7c27(0x2ed))})})]})}),_0x2aeb90[_0x1d7c27(0x2f5)](_0x1d7c27(0x245),{'className':_0x1d7c27(0x233),'children':[_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x245),{'className':_0x42198d['clsx'](_0x1d7c27(0x2c0),_0x88b792(_0x1c2972,_0xdca8d0)),'children':_0x2aeb90[_0x1d7c27(0x2f5)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x245),{'className':_0x42198d[_0x1d7c27(0x30e)](_0x1d7c27(0x313),_0x513f5a(_0x1c2972,_0xdca8d0))}),_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x1f0),{'className':_0x1d7c27(0x270),'children':_0x265604(_0x1c2972)})]})}),_0xdca8d0!==_0x418a08[_0x1d7c27(0x2d5)][_0x1d7c27(0x289)]&&(_0x1c2972===_0x418a08[_0x1d7c27(0x1c8)]['FAILED']||_0xdca8d0===_0x418a08[_0x1d7c27(0x2d5)][_0x1d7c27(0x314)])&&_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x245),{'className':_0x1d7c27(0x2a6),'children':_0x2aeb90[_0x1d7c27(0x2f5)](_0x1d7c27(0x245),{'className':_0x1d7c27(0x317),'children':[_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x1f0),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x2aeb90[_0x1d7c27(0x2f4)]('p',{'className':_0x1d7c27(0x31e),'children':_0x39711f(_0xdca8d0)})]})})]}),_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x245),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x2aeb90[_0x1d7c27(0x2f5)](_0x1d7c27(0x245),{'className':'univer-space-y-5','children':[_0x2aeb90[_0x1d7c27(0x2f5)](_0x1d7c27(0x245),{'className':'univer-space-y-2','children':[_0x2aeb90[_0x1d7c27(0x2f5)](_0x1d7c27(0x21a),{'className':_0x1d7c27(0x29e),'children':[_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x1f0),{'children':'🔑'}),'\x20',_0x5d2f54['t'](_0x1d7c27(0x315)),_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x1f0),{'className':'univer-text-red-500','children':'*'}),_0x53f623&&_0x2aeb90[_0x1d7c27(0x2f4)]('a',{'className':_0x1d7c27(0x27f),'title':_0x5d2f54['t'](_0x1d7c27(0x2e7)),'role':_0x1d7c27(0x1e9),'onClick':()=>_0x54b7a9(!0x0),'children':_0x2aeb90[_0x1d7c27(0x2f4)](_0x580080,{})})]}),_0x2aeb90[_0x1d7c27(0x2f4)](_0x42198d['Input'],{'type':_0x1d7c27(0x1b2),'placeholder':_0x5d2f54['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x57a168,'disabled':_0x548c6c,'autoComplete':_0x1d7c27(0x263),'onChange':_0x4a573e}),_0x2aeb90[_0x1d7c27(0x2f4)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x5d2f54['t'](_0x1d7c27(0x1d2))})]}),_0x53f623&&_0x1376a4&&_0x2aeb90['jsxs'](_0x1d7c27(0x245),{'className':_0x1d7c27(0x257),'children':[_0x2aeb90[_0x1d7c27(0x2f4)]('a',{'className':_0x1d7c27(0x226),'role':'button','onClick':()=>_0x54b7a9(!0x1),'children':_0x2aeb90[_0x1d7c27(0x2f4)](_0x4047fa,{'className':'univer-size-4'})}),_0x2aeb90[_0x1d7c27(0x2f5)]('div',{'className':_0x1d7c27(0x259),'children':[_0x2aeb90[_0x1d7c27(0x2f4)]('div',{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x2aeb90['jsx'](_0x1d7c27(0x1f0),{'className':'univer-text-blue-600','children':'🚀'})}),_0x2aeb90[_0x1d7c27(0x2f5)]('div',{'className':'univer-flex-1','children':[_0x2aeb90[_0x1d7c27(0x2f4)]('h4',{'className':_0x1d7c27(0x1b8),'children':_0x5d2f54['t'](_0x1d7c27(0x2e7))}),_0x2aeb90[_0x1d7c27(0x2f4)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x5d2f54['t'](_0x1d7c27(0x2f9))}),_0x2aeb90[_0x1d7c27(0x2f4)]('div',{'className':_0x1d7c27(0x243),'children':_0x51f0bd&&_0x2aeb90['jsxs']('a',{'className':_0x1d7c27(0x31f),'href':_0x22ef18,'target':_0x1d7c27(0x272),'rel':_0x1d7c27(0x1cf),'children':[_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x1f0),{'children':'🤖'}),_0x5d2f54['t'](_0x1d7c27(0x2a5)),_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x1f0),{'className':_0x1d7c27(0x28f),'children':'↗'})]})}),_0x2aeb90['jsxs']('div',{'className':_0x1d7c27(0x2f3),'children':['✨','\x20',_0x5d2f54['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x10d1a0[_0x1d7c27(0x217)]&&_0x2aeb90[_0x1d7c27(0x2f5)]('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x2aeb90[_0x1d7c27(0x2f5)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x2aeb90['jsx'](_0x1d7c27(0x1f0),{'children':'🔗'}),'\x20',_0x5d2f54['t'](_0x1d7c27(0x30a))]}),_0x2aeb90[_0x1d7c27(0x2f5)]('div',{'className':_0x1d7c27(0x2ce),'children':[_0x2aeb90['jsxs']('div',{'className':_0x1d7c27(0x321),'children':[_0x2aeb90[_0x1d7c27(0x2f4)]('p',{'className':_0x1d7c27(0x32a),'children':_0x5d2f54['t'](_0x1d7c27(0x23c))}),_0x2aeb90['jsxs']('div',{'className':_0x1d7c27(0x2e6),'children':[_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x245),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x5d2f54['t']('mcpConfig.configStepTitle')}),_0x2aeb90[_0x1d7c27(0x2f5)]('div',{'className':_0x1d7c27(0x1e0),'children':[_0x2aeb90[_0x1d7c27(0x2f5)](_0x1d7c27(0x245),{'className':_0x1d7c27(0x2df),'children':[_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x1f0),{'className':_0x1d7c27(0x1f1),'children':'1'}),_0x5d2f54['t'](_0x1d7c27(0x287))]}),_0x2aeb90[_0x1d7c27(0x2f5)](_0x1d7c27(0x245),{'className':_0x1d7c27(0x2df),'children':[_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x1f0),{'className':_0x1d7c27(0x1f1),'children':'2'}),_0x5d2f54['t'](_0x1d7c27(0x227))]}),_0x2aeb90[_0x1d7c27(0x2f5)](_0x1d7c27(0x245),{'className':_0x1d7c27(0x2df),'children':[_0x2aeb90['jsx']('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x5d2f54['t'](_0x1d7c27(0x211))]})]})]})]}),_0x2aeb90[_0x1d7c27(0x2f5)](_0x1d7c27(0x245),{'className':_0x1d7c27(0x2e6),'children':[_0x2aeb90[_0x1d7c27(0x2f4)]('div',{'className':_0x1d7c27(0x320),'children':'MCP\x20Configuration'}),_0x2aeb90['jsx'](_0x1d7c27(0x245),{'className':_0x1d7c27(0x1af),'children':_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x32d),{'className':_0x1d7c27(0x222),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x1d7c27(0x210)+(_0x426ee9||_0x1d7c27(0x27e)),'type':'http','headers':{'Authorization':'Bearer\x20'+(_0x57a168||'<API_KEY>')}}}},null,0x2)})})]}),_0x2aeb90['jsxs']('div',{'className':'univer-space-y-3','children':[_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x245),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x5d2f54['t']('mcpConfig.configParameters')}),_0x2aeb90[_0x1d7c27(0x2f5)](_0x1d7c27(0x245),{'className':'univer-space-y-2','children':[_0x2aeb90['jsxs'](_0x1d7c27(0x245),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x245),{'className':_0x1d7c27(0x255)}),_0x2aeb90['jsxs']('div',{'className':_0x1d7c27(0x30c),'children':[_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x245),{'className':_0x1d7c27(0x2c7),'children':'univer_session_id:'}),_0x2aeb90[_0x1d7c27(0x2f4)]('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x5d2f54['t'](_0x1d7c27(0x2db))})]})]}),_0x2aeb90[_0x1d7c27(0x2f5)](_0x1d7c27(0x245),{'className':_0x1d7c27(0x24a),'children':[_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x245),{'className':_0x1d7c27(0x255)}),_0x2aeb90[_0x1d7c27(0x2f5)](_0x1d7c27(0x245),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x2aeb90['jsx']('div',{'className':_0x1d7c27(0x2c7),'children':_0x1d7c27(0x27c)}),_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x245),{'className':_0x1d7c27(0x23d),'children':_0x5d2f54['t'](_0x1d7c27(0x207))})]})]})]})]})]})]}),_0x2aeb90[_0x1d7c27(0x2f4)](_0x42198d[_0x1d7c27(0x1cd)],{'onClick':_0x41c2e8,'disabled':!_0x148e0c||_0x548c6c,'className':_0x1d7c27(0x268),'children':_0x548c6c?_0x2aeb90[_0x1d7c27(0x2f5)]('span',{'className':_0x1d7c27(0x2df),'children':[_0x2aeb90['jsx'](_0x1d7c27(0x1f0),{'children':'⟲'}),_0x5d2f54['t']('mcpConfig.saving')]}):_0x2aeb90['jsxs']('span',{'className':_0x1d7c27(0x2df),'children':[_0x2aeb90[_0x1d7c27(0x2f4)](_0x108ba2,{}),_0x5d2f54['t'](_0x1d7c27(0x329))]})}),_0x2aeb90[_0x1d7c27(0x2f4)](_0x1d7c27(0x245),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x2aeb90[_0x1d7c27(0x2f5)](_0x1d7c27(0x245),{'className':_0x1d7c27(0x2ec),'children':[_0x2aeb90['jsx'](_0x1d7c27(0x1f0),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x2aeb90[_0x1d7c27(0x2f5)](_0x1d7c27(0x245),{'className':_0x1d7c27(0x305),'children':[_0x2aeb90['jsx'](_0x1d7c27(0x245),{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),_0x2aeb90['jsxs'](_0x1d7c27(0x245),{'children':['•',_0x5d2f54['t'](_0x1d7c27(0x1d6))]}),_0x2aeb90['jsxs'](_0x1d7c27(0x245),{'children':['•',_0x5d2f54['t'](_0x1d7c27(0x25e))]})]})]})})]})})]});}const _0x2a22ac='mcp-ui.config',_0x506e56={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x8021db=Object['getOwnPropertyDescriptor'],_0x3eb92e=(_0x3b5089,_0x39ef35,_0x48a356,_0x324fc2)=>{for(var _0x5d7c41=_0x324fc2>0x1?void 0x0:_0x324fc2?_0x8021db(_0x39ef35,_0x48a356):_0x39ef35,_0x23037b=_0x3b5089['length']-0x1,_0x1d0819;_0x23037b>=0x0;_0x23037b--)(_0x1d0819=_0x3b5089[_0x23037b])&&(_0x5d7c41=_0x1d0819(_0x5d7c41)||_0x5d7c41);return _0x5d7c41;},_0x5afd13=(_0x2e781c,_0x448356)=>(_0x391c27,_0x427b7a)=>_0x448356(_0x391c27,_0x427b7a,_0x2e781c);const _0x3ea1f2='mcp.apiKey',_0x13accb=_0x3832a3(0x2ac);_0x2b6d99[_0x3832a3(0x1ad)]=class extends _0x312e57[_0x3832a3(0x205)]{constructor(_0x404a4a,_0x2a9bea,_0x1ce48c,_0x5dd862,_0x43a900,_0x46e51f,_0x12d4d5,_0x1fa976,_0x4530b6,_0x264426){const _0x15fb85=_0x3832a3;super(),_0x3f0fad(this,_0x15fb85(0x2b5),new _0x110352[(_0x15fb85(0x1dd))](!0x1)),_0x3f0fad(this,_0x15fb85(0x2c2),new _0x110352[(_0x15fb85(0x1dd))]({})),_0x3f0fad(this,'_config$',new _0x110352['BehaviorSubject']({})),_0x3f0fad(this,_0x15fb85(0x2c8),new _0x110352[(_0x15fb85(0x1dd))]('')),_0x3f0fad(this,_0x15fb85(0x330),async _0x57862a=>{const _0x237096=_0x15fb85;var _0x2d4cd6,_0x29074c;this[_0x237096(0x2b5)]['next'](!0x0);try{const _0x2c22f9=await this[_0x237096(0x228)](_0x57862a);if(!_0x2c22f9[_0x237096(0x281)]){this[_0x237096(0x2fc)][_0x237096(0x278)]({'type':_0x42198d[_0x237096(0x1bb)][_0x237096(0x1ee)],'content':_0x2c22f9['errorMessage']||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0x57862a[_0x237096(0x302)]?await this[_0x237096(0x1c7)]['setItem'](_0x3ea1f2,_0x57862a[_0x237096(0x302)]['trim']()):await this[_0x237096(0x1c7)][_0x237096(0x231)](_0x3ea1f2),this[_0x237096(0x2c8)][_0x237096(0x24c)](((_0x2d4cd6=_0x57862a[_0x237096(0x302)])==null?void 0x0:_0x2d4cd6[_0x237096(0x1f7)]())||''),this[_0x237096(0x240)][_0x237096(0x25d)]({'Authorization':_0x237096(0x1eb)+((_0x29074c=_0x57862a[_0x237096(0x302)])==null?void 0x0:_0x29074c[_0x237096(0x1f7)]())}),this['_messageService'][_0x237096(0x278)]({'type':_0x42198d[_0x237096(0x1bb)][_0x237096(0x1e2)],'content':this['_localeService']['t'](_0x237096(0x26a))}),setTimeout(()=>{const _0x55955b=_0x237096;this[_0x55955b(0x322)]['close'](_0x13accb);},0x320);}catch(_0x1eebd5){this[_0x237096(0x1ef)][_0x237096(0x224)](_0x237096(0x248),_0x1eebd5),this[_0x237096(0x2fc)][_0x237096(0x278)]({'type':_0x42198d[_0x237096(0x1bb)]['Error'],'content':this[_0x237096(0x2e0)]['t']('mcpConfig.configError')});}finally{this[_0x237096(0x2b5)][_0x237096(0x24c)](!0x1);}}),(this[_0x15fb85(0x200)]=_0x404a4a,this[_0x15fb85(0x273)]=_0x2a9bea,this[_0x15fb85(0x328)]=_0x1ce48c,this[_0x15fb85(0x1c7)]=_0x5dd862,this[_0x15fb85(0x322)]=_0x43a900,this[_0x15fb85(0x2fc)]=_0x46e51f,this[_0x15fb85(0x213)]=_0x12d4d5,this[_0x15fb85(0x2e0)]=_0x1fa976,this[_0x15fb85(0x1ef)]=_0x4530b6,this[_0x15fb85(0x240)]=_0x264426,this[_0x15fb85(0x1e1)](),this[_0x15fb85(0x32f)](),this[_0x15fb85(0x1f6)]());}[_0x3832a3(0x232)](){const _0x2ab9b9=_0x3832a3,_0x3a7592=this[_0x2ab9b9(0x328)][_0x2ab9b9(0x2d2)](_0x2a22ac);_0x3a7592!=null&&_0x3a7592[_0x2ab9b9(0x217)]&&this[_0x2ab9b9(0x322)][_0x2ab9b9(0x22c)]({'id':_0x13accb,'title':{'title':this[_0x2ab9b9(0x2e0)]['t'](_0x2ab9b9(0x2b6))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x55ab95=_0x2ab9b9;this['_dialogService'][_0x55ab95(0x26f)](_0x13accb);}});}[_0x3832a3(0x29a)](){const _0x252622=_0x3832a3;return this[_0x252622(0x2c2)][_0x252622(0x218)];}[_0x3832a3(0x1f6)](){const _0xa5667f=_0x3832a3;this[_0xa5667f(0x304)](this['_componentManager'][_0xa5667f(0x311)](_0xa5667f(0x31d),this['_createConfigPanelComponent']()));}[_0x3832a3(0x26b)](){const _0x4b6b61=_0x3832a3;return _0x2de5ed['connectInjector'](()=>{const _0x3e34a7=_0x242d;var _0xecb19b,_0x37a34d,_0x1a1a5d;return _0x2aeb90['jsx'](_0xf77188,{'config':this[_0x3e34a7(0x249)][_0x3e34a7(0x218)],'mcpCoreConfig':this[_0x3e34a7(0x2c2)]['value'],'currentApiKey$':this[_0x3e34a7(0x2c8)],'onSave':this['_handleConfigSave'],'loading':this[_0x3e34a7(0x2b5)][_0x3e34a7(0x218)],'connectionStatus$':(_0xecb19b=this[_0x3e34a7(0x240)])==null?void 0x0:_0xecb19b[_0x3e34a7(0x1cc)],'connectionError$':(_0x37a34d=this[_0x3e34a7(0x240)])==null?void 0x0:_0x37a34d[_0x3e34a7(0x28b)],'currentSessionId$':(_0x1a1a5d=this[_0x3e34a7(0x240)])==null?void 0x0:_0x1a1a5d[_0x3e34a7(0x1be)]});},this[_0x4b6b61(0x200)]);}[_0x3832a3(0x1e1)](){const _0x3e3a49=_0x3832a3;this[_0x3e3a49(0x304)](this[_0x3e3a49(0x328)][_0x3e3a49(0x280)](_0x418a08['MCP_PLUGIN_CONFIG_KEY'])['subscribe'](_0x2eaa98=>{this['_mcpCoreConfig$']['next'](_0x2eaa98||{});}));const _0x1c2381=this[_0x3e3a49(0x328)][_0x3e3a49(0x2d2)](_0x418a08[_0x3e3a49(0x266)]);this[_0x3e3a49(0x2c2)][_0x3e3a49(0x24c)](_0x1c2381||{}),this['disposeWithMe'](this[_0x3e3a49(0x328)][_0x3e3a49(0x280)](_0x2a22ac)['subscribe'](_0x26279e=>{const _0x3d2389=_0x3e3a49;this[_0x3d2389(0x249)][_0x3d2389(0x24c)](_0x26279e||{});}));const _0x5cfb58=this['_configService'][_0x3e3a49(0x2d2)](_0x2a22ac);this[_0x3e3a49(0x249)][_0x3e3a49(0x24c)](_0x5cfb58||{});}async[_0x3832a3(0x32f)](){const _0x4adebc=_0x3832a3,_0x5bde74=this['_configService'][_0x4adebc(0x2d2)](_0x2a22ac);if(!(_0x5bde74!=null&&_0x5bde74[_0x4adebc(0x217)]))return;const _0x18f519=await this[_0x4adebc(0x1c7)][_0x4adebc(0x2ef)](_0x3ea1f2);_0x18f519&&(this[_0x4adebc(0x240)][_0x4adebc(0x25d)]({'Authorization':_0x4adebc(0x1eb)+_0x18f519}),this['_apiKey$'][_0x4adebc(0x24c)](_0x18f519));}async[_0x3832a3(0x228)](_0x2a6db0){const _0x5db0a8=_0x3832a3;if(!_0x2a6db0[_0x5db0a8(0x302)]||_0x2a6db0[_0x5db0a8(0x302)][_0x5db0a8(0x1f7)]()[_0x5db0a8(0x277)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x5db0a8(0x2e0)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x2a6db0['apiKey'][_0x5db0a8(0x1f7)]()[_0x5db0a8(0x277)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x5db0a8(0x1f8))};try{const _0x430798=await this[_0x5db0a8(0x200)]['get'](_0x418a08[_0x5db0a8(0x2f0)])[_0x5db0a8(0x26c)](_0x2a6db0['apiKey'][_0x5db0a8(0x1f7)]());return _0x430798[_0x5db0a8(0x281)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x430798['error']||this[_0x5db0a8(0x2e0)]['t'](_0x5db0a8(0x209))};}catch(_0xaf4d91){return console[_0x5db0a8(0x306)](_0x5db0a8(0x2c9),_0xaf4d91),{'isValid':!0x0};}}},_0x2b6d99[_0x3832a3(0x1ad)]=_0x3eb92e([_0x5afd13(0x0,_0x312e57[_0x3832a3(0x1f5)](_0x312e57[_0x3832a3(0x1b1)])),_0x5afd13(0x1,_0x2de5ed[_0x3832a3(0x301)]),_0x5afd13(0x2,_0x312e57[_0x3832a3(0x1f4)]),_0x5afd13(0x3,_0x312e57[_0x3832a3(0x202)]),_0x5afd13(0x4,_0x2de5ed[_0x3832a3(0x326)]),_0x5afd13(0x5,_0x2de5ed[_0x3832a3(0x1b7)]),_0x5afd13(0x6,_0x312e57[_0x3832a3(0x1f5)](_0x2de5ed['ComponentManager'])),_0x5afd13(0x7,_0x312e57[_0x3832a3(0x1f5)](_0x312e57['LocaleService'])),_0x5afd13(0x8,_0x312e57[_0x3832a3(0x1ff)]),_0x5afd13(0x9,_0x312e57[_0x3832a3(0x1f5)](_0x418a08[_0x3832a3(0x2f0)]))],_0x2b6d99[_0x3832a3(0x1ad)]);const _0x4ca33f={'id':_0x3832a3(0x1ed),'type':_0x312e57[_0x3832a3(0x1fe)][_0x3832a3(0x212)],'handler':async(_0x5e8e74,_0x4e31e1)=>(_0x5e8e74[_0x3832a3(0x29d)](_0x2b6d99['MCPConfigUIController'])[_0x3832a3(0x232)](),!0x0)};function _0x48f0c2(_0x403d18,_0x20cea7){const _0x5dd7f6=_0x3832a3;switch(_0x403d18){case _0x418a08[_0x5dd7f6(0x1c8)][_0x5dd7f6(0x2eb)]:return _0x5dd7f6(0x2a7);case _0x418a08['MCPConnectionStatus'][_0x5dd7f6(0x2c6)]:return _0x5dd7f6(0x286);case _0x418a08[_0x5dd7f6(0x1c8)][_0x5dd7f6(0x25c)]:return _0x5dd7f6(0x28d);case _0x418a08[_0x5dd7f6(0x1c8)][_0x5dd7f6(0x265)]:switch(_0x20cea7){case _0x418a08[_0x5dd7f6(0x2d5)]['UNAUTHORIZED']:return _0x5dd7f6(0x30d);case _0x418a08[_0x5dd7f6(0x2d5)][_0x5dd7f6(0x2fb)]:return'mcpStatus.sessionOccupied';case _0x418a08[_0x5dd7f6(0x2d5)][_0x5dd7f6(0x28e)]:return _0x5dd7f6(0x2bc);case _0x418a08[_0x5dd7f6(0x2d5)][_0x5dd7f6(0x254)]:return _0x5dd7f6(0x251);default:return _0x5dd7f6(0x244);}case _0x418a08[_0x5dd7f6(0x1c8)][_0x5dd7f6(0x2be)]:return _0x5dd7f6(0x32b);default:return _0x5dd7f6(0x2e8);}}function _0x398dec(_0x5e6027,_0x419eaf,_0x268c3d,_0x124632=!0x0){const _0x32c9c1=_0x3832a3,_0x411d92=_0x48f0c2(_0x5e6027,_0x419eaf),_0x275e3c=_0x268c3d['t'](_0x411d92);return _0x124632?_0x5e6027===_0x418a08[_0x32c9c1(0x1c8)][_0x32c9c1(0x2eb)]&&_0x419eaf===_0x418a08[_0x32c9c1(0x2d5)][_0x32c9c1(0x314)]?_0x275e3c+_0x32c9c1(0x2cd)+_0x268c3d['t'](_0x32c9c1(0x267)):_0x5e6027===_0x418a08['MCPConnectionStatus'][_0x32c9c1(0x25c)]?''+_0x275e3c:_0x5e6027===_0x418a08['MCPConnectionStatus'][_0x32c9c1(0x2eb)]||_0x5e6027===_0x418a08['MCPConnectionStatus'][_0x32c9c1(0x265)]?_0x275e3c+'\x20-\x20'+_0x268c3d['t']('mcpStatus.clickToConnect'):_0x275e3c:_0x275e3c;}function _0x126f83(_0x21913b){const _0xef96c3=_0x3832a3;switch(_0x21913b){case _0x418a08['MCPConnectionStatus']['CONNECTED']:return'univer-text-green-500';case _0x418a08[_0xef96c3(0x1c8)][_0xef96c3(0x2c6)]:case _0x418a08[_0xef96c3(0x1c8)][_0xef96c3(0x2be)]:return'univer-text-yellow-500';case _0x418a08['MCPConnectionStatus']['FAILED']:case _0x418a08['MCPConnectionStatus']['DISCONNECTED']:return _0xef96c3(0x308);default:return _0xef96c3(0x27d);}}function _0x4b7bc2(_0x2f3faa){const _0x216106=_0x3832a3,{status$:_0x46efe2,error$:_0x101ece,onConfigure:_0x1742d6,showClickable:_0x189299=!0x0}=_0x2f3faa,_0x5bac3c=_0x2de5ed[_0x216106(0x26e)](_0x46efe2,_0x418a08[_0x216106(0x1c8)]['DISCONNECTED']),_0x33de16=_0x2de5ed[_0x216106(0x26e)](_0x101ece,_0x418a08[_0x216106(0x2d5)]['NONE']),_0x33ddc4=_0x2de5ed['useDependency'](_0x312e57[_0x216106(0x2cb)]),_0x4a523a=_0x5bac3c===_0x418a08[_0x216106(0x1c8)]['CONNECTED'];_0x5bac3c===_0x418a08[_0x216106(0x1c8)][_0x216106(0x2c6)]||_0x418a08[_0x216106(0x1c8)]['RETRYING'];const _0x42acbd=_0x33ddc4['t'](_0x48f0c2(_0x5bac3c,_0x33de16)),_0x2276f9=_0x398dec(_0x5bac3c,_0x33de16,_0x33ddc4,_0x189299),_0x3b5906=_0x126f83(_0x5bac3c),_0x57ef39=_0x4a523a?_0x2aeb90[_0x216106(0x2f4)](_0x595029,{}):_0x2aeb90[_0x216106(0x2f4)](_0x31d142,{}),_0x5a813a=_0x39fca9['useCallback'](()=>{_0x189299&&_0x1742d6&&_0x1742d6();},[_0x189299,_0x1742d6]);function _0xe18c30(){const _0x543672=_0x216106;return _0x2aeb90[_0x543672(0x2f5)]('div',{'className':_0x42198d['clsx'](_0x543672(0x241),_0x189299&&_0x1742d6&&_0x543672(0x220)),'role':'button','onClick':_0x189299&&_0x1742d6?_0x5a813a:void 0x0,'children':[_0x2aeb90[_0x543672(0x2f4)](_0x543672(0x245),{'className':_0x42198d[_0x543672(0x30e)](_0x543672(0x2f6),_0x3b5906),'children':_0x57ef39}),_0x2aeb90[_0x543672(0x2f4)]('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x42acbd})]});}return _0x2aeb90['jsx'](_0x42198d[_0x216106(0x2b2)],{'title':_0x2276f9,'placement':'bottom','children':_0xe18c30()});}var _0x15b56d=Object[_0x3832a3(0x2ae)],_0x2d2584=(_0x2983c0,_0x135a3a,_0x7b840e,_0x33579d)=>{const _0x5dbfe6=_0x3832a3;for(var _0x3b8c25=_0x33579d>0x1?void 0x0:_0x33579d?_0x15b56d(_0x135a3a,_0x7b840e):_0x135a3a,_0x4aa6fd=_0x2983c0[_0x5dbfe6(0x277)]-0x1,_0x463841;_0x4aa6fd>=0x0;_0x4aa6fd--)(_0x463841=_0x2983c0[_0x4aa6fd])&&(_0x3b8c25=_0x463841(_0x3b8c25)||_0x3b8c25);return _0x3b8c25;},_0xd90c3a=(_0x13dad,_0x8f55f1)=>(_0x40f438,_0x473230)=>_0x8f55f1(_0x40f438,_0x473230,_0x13dad);_0x2b6d99[_0x3832a3(0x2d4)]=class extends _0x312e57[_0x3832a3(0x205)]{constructor(_0xf3aaa,_0x458387,_0x3c5137,_0x1e5e3e){const _0x22267e=_0x3832a3;super(),this[_0x22267e(0x200)]=_0xf3aaa,this[_0x22267e(0x246)]=_0x458387,this['_uiPartsService']=_0x3c5137,this[_0x22267e(0x328)]=_0x1e5e3e,this[_0x22267e(0x2ad)](),this[_0x22267e(0x24f)]();}[_0x3832a3(0x2ad)](){const _0x10c69f=_0x3832a3,_0x4b4376=this[_0x10c69f(0x328)][_0x10c69f(0x2d2)](_0x2a22ac);_0x4b4376!=null&&_0x4b4376['showDeveloperTools']&&(this[_0x10c69f(0x246)][_0x10c69f(0x1ae)]=!0x1);}[_0x3832a3(0x24f)](){const _0x20c8d5=_0x3832a3,_0x23b7b3=this[_0x20c8d5(0x328)][_0x20c8d5(0x2d2)](_0x2a22ac);(_0x23b7b3==null?void 0x0:_0x23b7b3[_0x20c8d5(0x2ca)])!==!0x1&&this['disposeWithMe'](this[_0x20c8d5(0x273)][_0x20c8d5(0x1d4)](_0x2de5ed[_0x20c8d5(0x2d7)]['HEADER_MENU'],()=>{const _0x3bf8c1=_0x20c8d5;var _0x43f6dd;return _0x2de5ed[_0x3bf8c1(0x318)](_0x242965({'status$':this[_0x3bf8c1(0x246)][_0x3bf8c1(0x1cc)],'error$':this[_0x3bf8c1(0x246)][_0x3bf8c1(0x28b)],'onConfigure':()=>this[_0x3bf8c1(0x1de)](),'showClickable':(_0x43f6dd=_0x23b7b3==null?void 0x0:_0x23b7b3[_0x3bf8c1(0x217)])!=null?_0x43f6dd:!0x1}),this[_0x3bf8c1(0x200)]);}));}[_0x3832a3(0x1de)](){const _0x2b324a=_0x3832a3;this['_injector'][_0x2b324a(0x29d)](_0x2b6d99['MCPConfigUIController'])[_0x2b324a(0x232)]();}},_0x2b6d99[_0x3832a3(0x2d4)]=_0x2d2584([_0xd90c3a(0x0,_0x312e57[_0x3832a3(0x1f5)](_0x312e57[_0x3832a3(0x1b1)])),_0xd90c3a(0x1,_0x312e57['Inject'](_0x418a08['MCPConnectionController'])),_0xd90c3a(0x2,_0x2de5ed[_0x3832a3(0x301)]),_0xd90c3a(0x3,_0x312e57[_0x3832a3(0x1f4)])],_0x2b6d99[_0x3832a3(0x2d4)]);function _0x242965(_0x395f70){const {status$:_0x119616,error$:_0x530a1a,onConfigure:_0x4c2f1b,showClickable:_0x452701}=_0x395f70;return function(){const _0x5ed9a0=_0x242d;return _0x2aeb90[_0x5ed9a0(0x2f4)](_0x4b7bc2,{'status$':_0x119616,'error$':_0x530a1a,'onConfigure':_0x4c2f1b,'showClickable':_0x452701});};}function _0x52d72f(_0x2c3eaa){const _0x530bac=_0x3832a3;return{'id':_0x4ca33f['id'],'type':_0x2de5ed['MenuItemType'][_0x530bac(0x1fd)],'icon':_0x530bac(0x1e8),'title':_0x530bac(0x2b6),'tooltip':_0x530bac(0x2b6)};}const _0xca4220={[_0x2de5ed[_0x3832a3(0x2cc)][_0x3832a3(0x2b8)]]:{[_0x4ca33f['id']]:{'order':0xa,'menuItemFactory':_0x52d72f}}};var _0x26a2a7=Object[_0x3832a3(0x2ae)],_0x649e52=(_0x4da768,_0x220737,_0x5cc39b,_0x1a8d75)=>{const _0x159d9c=_0x3832a3;for(var _0x1d3592=_0x1a8d75>0x1?void 0x0:_0x1a8d75?_0x26a2a7(_0x220737,_0x5cc39b):_0x220737,_0x1db74a=_0x4da768[_0x159d9c(0x277)]-0x1,_0x441f63;_0x1db74a>=0x0;_0x1db74a--)(_0x441f63=_0x4da768[_0x1db74a])&&(_0x1d3592=_0x441f63(_0x1d3592)||_0x1d3592);return _0x1d3592;},_0x2b7043=(_0x1ab1f,_0x34aea1)=>(_0x4347e1,_0x103ccb)=>_0x34aea1(_0x4347e1,_0x103ccb,_0x1ab1f);_0x2b6d99[_0x3832a3(0x298)]=class extends _0x312e57[_0x3832a3(0x205)]{constructor(_0x201565,_0x2c7d53){const _0xf3bceb=_0x3832a3;super(),this[_0xf3bceb(0x2b9)]=_0x201565,this[_0xf3bceb(0x21e)]=_0x2c7d53,this[_0xf3bceb(0x2dc)](),this[_0xf3bceb(0x2bf)]();}['_initializeCommands'](){const _0x48fa85=_0x3832a3;[_0x4ca33f][_0x48fa85(0x2fa)](_0x385486=>{const _0x475459=_0x48fa85;this[_0x475459(0x304)](this[_0x475459(0x2b9)][_0x475459(0x271)](_0x385486));});}[_0x3832a3(0x2bf)](){const _0x2e8692=_0x3832a3;this[_0x2e8692(0x21e)][_0x2e8692(0x1fa)](_0xca4220);}},_0x2b6d99[_0x3832a3(0x298)]=_0x649e52([_0x2b7043(0x0,_0x312e57['ICommandService']),_0x2b7043(0x1,_0x2de5ed['IMenuManagerService'])],_0x2b6d99[_0x3832a3(0x298)]);const _0x19fd54={'mcpStatus':{'disconnected':_0x3832a3(0x238),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x3832a3(0x23e),'retrying':_0x3832a3(0x1e6),'unknown':_0x3832a3(0x29b),'unauthorized':_0x3832a3(0x1bf),'sessionOccupied':_0x3832a3(0x2cf),'networkError':_0x3832a3(0x300),'maxRetriesExceeded':_0x3832a3(0x27b),'clickToConnect':_0x3832a3(0x2d9),'clickToConfigure':_0x3832a3(0x282)},'mcpConfig':{'title':_0x3832a3(0x310),'description':_0x3832a3(0x30f),'apiKey':_0x3832a3(0x2e4),'apiKeyPlaceholder':_0x3832a3(0x21f),'apiKeyHint':_0x3832a3(0x22a),'enableAuth':_0x3832a3(0x229),'enableAuthHint':_0x3832a3(0x1ba),'connectionInfo':_0x3832a3(0x1d1),'mcpClientConfig':_0x3832a3(0x1d1),'configInstructions':_0x3832a3(0x1c5),'configStepTitle':_0x3832a3(0x206),'configStep1':_0x3832a3(0x291),'configStep2':_0x3832a3(0x307),'configStep3':_0x3832a3(0x2d6),'sessionId':'Session\x20ID','sessionIdDescription':_0x3832a3(0x331),'authorizationDescription':_0x3832a3(0x2ab),'configParameters':_0x3832a3(0x2ff),'maxRetries':_0x3832a3(0x219),'save':_0x3832a3(0x1bd),'saving':_0x3832a3(0x284),'note1':_0x3832a3(0x235),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x3832a3(0x27a),'configError':_0x3832a3(0x2b1),'apiApplyInfo':{'title':_0x3832a3(0x22d),'description':_0x3832a3(0x2f7),'univerAiLabel':_0x3832a3(0x237),'getStarted':_0x3832a3(0x303)},'validation':{'apiKeyRequired':_0x3832a3(0x2a2),'apiKeyTooShort':_0x3832a3(0x2a9),'invalidConfig':_0x3832a3(0x2aa),'invalidApiKey':_0x3832a3(0x1f9)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x3832a3(0x221),'connected':_0x3832a3(0x25b),'failed':'Connection\x20Failed','retrying':_0x3832a3(0x316)},'connectionError':{'unauthorized':_0x3832a3(0x2d3),'sessionOccupied':_0x3832a3(0x2de),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},_0x271cbf={'mcpStatus':{'disconnected':_0x3832a3(0x1cb),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x3832a3(0x22e),'retrying':_0x3832a3(0x1c0),'unknown':_0x3832a3(0x2a3),'unauthorized':_0x3832a3(0x2b3),'sessionOccupied':_0x3832a3(0x269),'networkError':_0x3832a3(0x1b0),'maxRetriesExceeded':_0x3832a3(0x1ca),'clickToConnect':_0x3832a3(0x256),'clickToConfigure':_0x3832a3(0x1e4)},'mcpConfig':{'title':'MCP\x20配置','description':_0x3832a3(0x2b0),'apiKey':_0x3832a3(0x214),'apiKeyPlaceholder':_0x3832a3(0x25f),'apiKeyHint':_0x3832a3(0x2a4),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x3832a3(0x1e5),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x3832a3(0x21d),'configStepTitle':_0x3832a3(0x264),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x3832a3(0x31a),'configStep3':_0x3832a3(0x225),'sessionId':_0x3832a3(0x2d0),'sessionIdDescription':_0x3832a3(0x2f2),'authorizationDescription':_0x3832a3(0x2e2),'configParameters':'配置参数:','maxRetries':_0x3832a3(0x201),'save':'保存配置','saving':'保存中...','note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x3832a3(0x279),'configError':_0x3832a3(0x1d0),'apiApplyInfo':{'title':_0x3832a3(0x2ee),'description':_0x3832a3(0x23b),'univerAiLabel':_0x3832a3(0x319),'getStarted':_0x3832a3(0x208)},'validation':{'apiKeyRequired':_0x3832a3(0x1c1),'apiKeyTooShort':_0x3832a3(0x21b),'invalidConfig':_0x3832a3(0x2d1),'invalidApiKey':_0x3832a3(0x24e)},'connectionStatus':{'disconnected':'未连接','connecting':_0x3832a3(0x2af),'connected':_0x3832a3(0x1d9),'failed':_0x3832a3(0x2a0),'retrying':_0x3832a3(0x22f)},'connectionError':{'unauthorized':_0x3832a3(0x1e3),'sessionOccupied':_0x3832a3(0x242),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x3832a3(0x288)}}};var _0x449c10=Object[_0x3832a3(0x215)],_0x219e4e=Object[_0x3832a3(0x2ae)],_0x7efe89=(_0x2b8676,_0x5b94cd,_0x4832d2)=>_0x5b94cd in _0x2b8676?_0x449c10(_0x2b8676,_0x5b94cd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4832d2}):_0x2b8676[_0x5b94cd]=_0x4832d2,_0x3fa3c8=(_0x2e5997,_0x37ec82,_0x487ced,_0x525642)=>{const _0x3c55dd=_0x3832a3;for(var _0x4d4231=_0x525642>0x1?void 0x0:_0x525642?_0x219e4e(_0x37ec82,_0x487ced):_0x37ec82,_0x109054=_0x2e5997[_0x3c55dd(0x277)]-0x1,_0x11e34d;_0x109054>=0x0;_0x109054--)(_0x11e34d=_0x2e5997[_0x109054])&&(_0x4d4231=_0x11e34d(_0x4d4231)||_0x4d4231);return _0x4d4231;},_0x1e47f2=(_0xe4ee7b,_0x180350)=>(_0x3df8e3,_0x37c3f8)=>_0x180350(_0x3df8e3,_0x37c3f8,_0xe4ee7b),_0xf127c3=(_0x11060b,_0x2b5b06,_0x1e2916)=>_0x7efe89(_0x11060b,_0x2b5b06+'',_0x1e2916);_0x2b6d99['UniverMCPUIPlugin']=class extends _0x312e57[_0x3832a3(0x20a)]{constructor(_0x5e7e3b=_0x506e56,_0x149dbc,_0x16be92,_0x51b33d,_0x2c4187,_0x266de7){const _0x255e82=_0x3832a3;super(),this[_0x255e82(0x285)]=_0x5e7e3b,this['_injector']=_0x149dbc,this['_configService']=_0x16be92,this[_0x255e82(0x273)]=_0x51b33d,this[_0x255e82(0x1c7)]=_0x2c4187,this['_localeService']=_0x266de7;const {..._0x13d83d}=_0x312e57[_0x255e82(0x2bd)]({},_0x506e56,this['_config']);this['_configService']['setConfig'](_0x2a22ac,_0x13d83d);}async['onStarting'](){const _0xe9853=_0x3832a3,_0x652e38=[[_0x2b6d99[_0xe9853(0x2d4)]],[_0x2b6d99['MCPConfigUIController']],[_0x2b6d99['MCPUIMenuController']]];this[_0xe9853(0x200)]['has'](_0x5c6a22[_0xe9853(0x1f2)])||_0x652e38['push']([_0x5c6a22[_0xe9853(0x1f2)],{'useClass':_0x5c6a22[_0xe9853(0x1ec)]}]),_0x652e38[_0xe9853(0x2fa)](_0x3cc888=>this['_injector'][_0xe9853(0x28c)](_0x3cc888)),this['_injector'][_0xe9853(0x29d)](_0x2b6d99[_0xe9853(0x2d4)]),this['_injector'][_0xe9853(0x29d)](_0x2b6d99['MCPConfigUIController']),this['_injector'][_0xe9853(0x29d)](_0x2b6d99['MCPUIMenuController']);}},_0xf127c3(_0x2b6d99['UniverMCPUIPlugin'],'pluginName',_0x3832a3(0x333)),_0x2b6d99[_0x3832a3(0x1da)]=_0x3fa3c8([_0x312e57['DependentOn'](_0x418a08[_0x3832a3(0x2e1)]),_0x1e47f2(0x1,_0x312e57[_0x3832a3(0x1f5)](_0x312e57['Injector'])),_0x1e47f2(0x2,_0x312e57[_0x3832a3(0x1f4)]),_0x1e47f2(0x3,_0x2de5ed[_0x3832a3(0x301)]),_0x1e47f2(0x4,_0x312e57[_0x3832a3(0x202)]),_0x1e47f2(0x5,_0x312e57['Inject'](_0x312e57['LocaleService']))],_0x2b6d99[_0x3832a3(0x1da)]),_0x2b6d99[_0x3832a3(0x31d)]=_0xf77188,_0x2b6d99[_0x3832a3(0x20b)]=_0x4b7bc2,_0x2b6d99[_0x3832a3(0x1c6)]=_0x4ca33f,_0x2b6d99[_0x3832a3(0x1db)]=_0x19fd54,_0x2b6d99[_0x3832a3(0x2b7)]=_0x271cbf,Object[_0x3832a3(0x215)](_0x2b6d99,Symbol['toStringTag'],{'value':_0x3832a3(0x31b)});}));
|
|
1
|
+
function _0xfaa3(){const _0x532b40=['merge','showStatus','mcpConfig.configStep1','ComponentManager','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','has','univer-space-y-3','请输入您的\x20API\x20密钥','Univer\x20AI\x20Console','将以下配置添加到您的\x20MCP\x20客户端设置中:','CommandType','colorChannel1','univer-text-gray-500','mcpConfig.configParameters','mcpConfig.configError','attrs','on-line-icon','button','FAILED','clipPath','createElement','connectionStatus$','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCPConfigPanel','getCurrentConfig','_handleConfigure','getItem','univer-text-sm\x20univer-font-medium','open','_connectionController','UniverUi','启用身份验证以获得安全连接','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_mcpCoreConfig$','_apiKey$','4393314dHRaqD','MCP\x20已连接','Error','univer-flex\x20univer-items-center\x20univer-gap-2','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCPConnectionUIController','https://console.univer.ai','MCP\x20连接失败','mcp-config-dialog','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcp-ui.command.openConfigPanel','mcpStatus.disconnected','symbol','mcpConfig.connectionStatus.failed','off-line-icon_clip0_910_343','8yqqMGp','on-line-icon_clip0_910_349','MAX_RETRIES_EXCEEDED','2688160hFnCMr','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','What\x20is\x20API\x20Key?','API\x20密钥不能为空','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','\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','showConfigPanel','BehaviorSubject','LocaleService','重连中...','1em','univer-shrink-0\x20univer-text-red-500','pre','MCP\x20Configuration','path','univer-flex\x20univer-flex-wrap\x20univer-gap-2','_localeService','启用身份验证','会话ID','_validateConfig','UniverMCPPlugin','Connecting...','CheckMarkIcon','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','forEach','_localStorageService','univer.plus','getOwnPropertyDescriptor','API\x20Key','univer-bg-gray-500','useDependency','mcpConfig.connectionError.maxRetriesExceeded','Get\x20your\x20API\x20key\x20in\x20seconds','COMMAND','mcpConfig.configSaved','10eGVIGc','MCP_UI_PLUGIN','get','未连接','<SESSION_ID>','_initStatusComponent','univer-text-sm\x20univer-text-gray-500','1zCGKVq','univer-space-y-2','bottom','mcpConfig.note1','mcpConfig.connectionStatus.connecting','Injector','mcpStatus.clickToConfigure','带有\x20Bearer\x20前缀的\x20API\x20密钥。','http://www.w3.org/2000/svg','Max\x20Retries','mcpConfig.validation.apiKeyTooShort','xlink:href','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','UNAUTHORIZED','保存配置','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.connectionStatus.retrying','currentColor','DependentOn','MenuIcon','0\x200\x2016\x2016','<API_KEY>','amd','mcpConfig.title','会话\x20ID\x20已被占用,请稍后再试','OffLineIcon','_commandService','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','配置步骤:','Failed\x20to\x20save\x20configuration','MCP\x20状态未知','warn','univer-bg-red-500','subscribe','url(#on-line-icon_clip0_910_349)','univer-flex-1','univer-text-blue-600','mcpStatus.maxRetriesExceeded','点击配置\x20MCP','UniverNetwork','Input','您的\x20API\x20密钥安全存储在本地存储中','https://mcp.univer.ai/mcp/?univer_session_id=','MCP\x20重连中...','MCPUIMenuController','MCPConnectionStatus','_handleConfigSave','defIds','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','exports','8599401JtvhTB','toStringTag','defs','substring','UniverIcon','univer-text-green-500','_logService','length','mcpConfig.saving','add','ICommandService','0\x200\x2017\x2016','mcpConfig.configStep3','_initializeCommands','配置无效','univer-text-xs\x20univer-text-gray-500','mcpConfig.configInstructions','round','MCP:\x20超出最大重试次数','univer-flex\x20univer-gap-3','defineProperty','@univerjs/core','errorMessage','_dialogService','MCP:\x20未授权','removeItem','clsx','BuiltInUIPart','random','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpStatus.connected','复制以下\x20JSON\x20配置','univer-flex\x20univer-items-center\x20univer-gap-3','MCP\x20Connecting...','ILogService','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.apiKeyPlaceholder','重启您的\x20MCP\x20客户端以使配置生效','span','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20Authentication','svg','MCP\x20Unknown\x20Status','配置保存成功','您的\x20API\x20密钥将在此浏览器中本地存储','object','univer-min-w-0\x20univer-flex-1','mcpConfig.connectionError.networkError','SESSION_ID_OCCUPIED','MCP\x20Retrying...','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer.ai','idSuffix','NONE','1551102DsRvtY','map','useRef','MCPConfigUIController','@univerjs/ui','_config$','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_loadStoredApiKey','UniverProMcp','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','IDialogService','ISocketService','Plugin','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','text','react/jsx-runtime','validateApiKey','配置保存失败','value','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','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','univer-text-white','current','MCP:\x20Unauthorized','_loading$','网络连接错误,请检查您的网络连接','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','assign','ILocalStorageService','label','div','114132ZSvxXm','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','权限验证失败,请检查您的\x20API\x20密钥','Connection\x20Failed','RETRYING','CloseIcon','连接失败','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','BUTTON','getConfig','Inject','children','isValid','API\x20密钥无效,请检查密钥是否正确','API\x20密钥','mcpStatus.sessionOccupied','useObservable','univer-text-red-500','MessageType','IMessageService','fill','几秒钟内获取您的\x20API\x20密钥','Authorization:','Button','MenuItemType','next','10wiFUDP','mergeMenu','mcpStatus.connecting','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_initializeMenus','registerCommand','toString','Module','UniverMCPUIPlugin','register','mcp-ui.config','jsxs','translate(.97)','_registerComponent','_blank','_uiPartsService','IConfigService','Disconnected','close','MCP:\x20会话\x20ID\x20已被占用','@univerjs/network','__setCustomHeaders','setItem','mcpConfig.connectionInfo','mcpConfig.connectionStatus.disconnected','univer-size-2\x20univer-rounded-full','IMenuManagerService','MCPConnectionController','showDeveloperTools','mcpConfig.configStep2','error','MCP\x20Client\x20Configuration','mcpConfig.apiKey','MCP:\x20Network\x20Error','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','20519609zDOQEO','useCallback','apiKey','mcpServerUrl','univer-bg-blue-500','Saving...','Success','_injector','CONNECTED','entries','MCP\x20客户端配置','useState','check-mark-icon','close-icon','UniverDesign','_configService','@univerjs/design','mcpConfig.note2','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','_initConfigSync','mcpStatus.unknown','includes','none','_messageService','_menuManagerService','1343601EThoUV','mcpStatus.clickToConnect','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCP\x20配置','mcpConfig.connectionError.unauthorized','zhCN','\x20-\x20','M0\x200H16V16H0z','HEADER_MENU','CONNECTING','UniverProMcpUi','univer-space-y-4','mcpStatus.failed','_initAutoConnect','OpenMCPConfigPanelCommand','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','Tooltip','Click\x20to\x20connect\x20MCP','mcpConfig.save','tag','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Disposable','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','show','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpConfig.validation.invalidConfig','onStarting','_mcpConnectionController','mcpConfig.apiApplyInfo.univerAiLabel','univer-flex\x20univer-items-start\x20univer-gap-3','jsx','Invalid\x20configuration','Univer\x20AI\x20控制台','univer_session_id:','react','MCPConnectionError','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Parameters:','string','push','DISCONNECTED','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-text-gray-400','@univerjs-pro/mcp','Connected','超出最大重试次数,请稍后再试','white','displayName','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','subscribeConfigValue$','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','sessionId$','univer-text-yellow-500','mcpStatus.unauthorized','连接中...','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','_config','univer-flex\x20univer-items-start\x20univer-gap-2','配置更改将立即生效','trim','NETWORK_ERROR','mcpConfig.apiKeyHint','mcpConfig.authorizationDescription','_componentManager','Bearer\x20','noopener\x20noreferrer','univer-flex\x20univer-items-center','Session\x20ID','mcpConfig.validation.invalidApiKey','MCP:\x20Max\x20Retries\x20Exceeded','Retrying...','_createConfigPanelComponent','forwardRef','disposeWithMe','mcpStatus.networkError','MCP_PLUGIN_CONFIG_KEY','connectInjector','WebSocketService','OnLineIcon','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','connectionError$','UniverCore','mcp.apiKey','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','HelpIcon','rxjs','MCP:\x20网络错误','off','React','RibbonStartGroup','mask','pluginName','use','什么是\x20API\x20密钥?','http','https://console.univer.plus','evenodd'];_0xfaa3=function(){return _0x532b40;};return _0xfaa3();}function _0x41a7(_0x541504,_0x38e3aa){const _0xfaa386=_0xfaa3();return _0x41a7=function(_0x41a75f,_0x32b381){_0x41a75f=_0x41a75f-0x199;let _0x1b6e1a=_0xfaa386[_0x41a75f];return _0x1b6e1a;},_0x41a7(_0x541504,_0x38e3aa);}(function(_0x477252,_0x3f9340){const _0x11c401=_0x41a7,_0x5266bf=_0x477252();while(!![]){try{const _0x3e2bc6=-parseInt(_0x11c401(0x25e))/0x1*(-parseInt(_0x11c401(0x2c6))/0x2)+-parseInt(_0x11c401(0x220))/0x3+parseInt(_0x11c401(0x232))/0x4+parseInt(_0x11c401(0x2ff))/0x5*(parseInt(_0x11c401(0x2e5))/0x6)+-parseInt(_0x11c401(0x19a))/0x7*(parseInt(_0x11c401(0x22f))/0x8)+-parseInt(_0x11c401(0x290))/0x9+-parseInt(_0x11c401(0x257))/0xa*(-parseInt(_0x11c401(0x322))/0xb);if(_0x3e2bc6===_0x3f9340)break;else _0x5266bf['push'](_0x5266bf['shift']());}catch(_0x2d8911){_0x5266bf['push'](_0x5266bf['shift']());}}}(_0xfaa3,0xb4770),function(_0x5875bd,_0x1bca27){const _0x2493b2=_0x41a7;typeof exports==_0x2493b2(0x2bd)&&typeof module<'u'?_0x1bca27(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[_0x2493b2(0x274)]?define([_0x2493b2(0x28f),_0x2493b2(0x2a5),_0x2493b2(0x2d5),_0x2493b2(0x1c6),_0x2493b2(0x332),_0x2493b2(0x2ca),_0x2493b2(0x1f1),_0x2493b2(0x1bd),_0x2493b2(0x313)],_0x1bca27):(_0x5875bd=typeof globalThis<'u'?globalThis:_0x5875bd||self,_0x1bca27(_0x5875bd[_0x2493b2(0x1a4)]={},_0x5875bd[_0x2493b2(0x1ed)],_0x5875bd['React'],_0x5875bd[_0x2493b2(0x2ce)],_0x5875bd[_0x2493b2(0x330)],_0x5875bd[_0x2493b2(0x21b)],_0x5875bd[_0x2493b2(0x1f1)],_0x5875bd[_0x2493b2(0x1f4)],_0x5875bd[_0x2493b2(0x285)]));}(this,function(_0x1764fb,_0x59774c,_0x3caf40,_0x526990,_0x19ed03,_0x193043,_0x3a8d92,_0x3bb5c1,_0x44f18e){'use strict';const _0x30c379=_0x41a7;var _0x420ea0=Object[_0x30c379(0x2a4)],_0x38572c=(_0x59fcb6,_0x5f1a18,_0x34f0dc)=>_0x5f1a18 in _0x59fcb6?_0x420ea0(_0x59fcb6,_0x5f1a18,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34f0dc}):_0x59fcb6[_0x5f1a18]=_0x34f0dc,_0x1c3207=(_0xb278d7,_0x2fcf74,_0xa61dc2)=>_0x38572c(_0xb278d7,typeof _0x2fcf74!=_0x30c379(0x22c)?_0x2fcf74+'':_0x2fcf74,_0xa61dc2);function _0x3decbc({ref:_0xd2edb5,..._0x9b601d}){const _0x229005=_0x30c379,{icon:_0x840515,id:_0x27beb9,className:_0x22fffa,extend:_0x2a5109,..._0x5010a7}=_0x9b601d,_0x223b88=('univerjs-icon\x20univerjs-icon-'+_0x27beb9+'\x20'+(_0x22fffa||''))[_0x229005(0x1d7)](),_0x4673fd=_0x3bb5c1[_0x229005(0x2c8)]('_'+_0x1abd08());return _0xae067a(_0x840515,''+_0x27beb9,{'defIds':_0x840515[_0x229005(0x28d)],'idSuffix':_0x4673fd[_0x229005(0x2dc)]},{'ref':_0xd2edb5,'className':_0x223b88,..._0x5010a7},_0x2a5109);}function _0xae067a(_0x5c945c,_0xe691a6,_0x27e317,_0x1b9e13,_0x553e35){const _0x4b489f=_0x30c379;return _0x3bb5c1[_0x4b489f(0x211)](_0x5c945c['tag'],{'key':_0xe691a6,..._0x16cc8c(_0x5c945c,_0x27e317,_0x553e35),..._0x1b9e13},(_0x4e359e(_0x5c945c,_0x27e317)[_0x4b489f(0x2f0)]||[])[_0x4b489f(0x2c7)]((_0x491dfe,_0x344185)=>_0xae067a(_0x491dfe,_0xe691a6+'-'+_0x5c945c[_0x4b489f(0x1ad)]+'-'+_0x344185,_0x27e317,void 0x0,_0x553e35)));}function _0x16cc8c(_0x3714a4,_0x365852,_0x2d48ce){const _0xfdcac2=_0x30c379,_0x11cae0={..._0x3714a4[_0xfdcac2(0x20c)]};_0x2d48ce!=null&&_0x2d48ce[_0xfdcac2(0x208)]&&_0x11cae0['fill']==='colorChannel1'&&(_0x11cae0[_0xfdcac2(0x2f9)]=_0x2d48ce[_0xfdcac2(0x208)]),_0x3714a4[_0xfdcac2(0x1ad)]===_0xfdcac2(0x1f6)&&_0x11cae0['id']&&(_0x11cae0['id']=_0x11cae0['id']+_0x365852[_0xfdcac2(0x2c4)]),Object[_0xfdcac2(0x32b)](_0x11cae0)[_0xfdcac2(0x24c)](([_0x4c6924,_0x4c4c77])=>{_0x4c6924==='mask'&&typeof _0x4c4c77=='string'&&(_0x11cae0[_0x4c6924]=_0x4c4c77['replace'](/url\(#(.*)\)/,'url(#$1'+_0x365852['idSuffix']+')'));});const {defIds:_0x77407b}=_0x365852;return!_0x77407b||_0x77407b[_0xfdcac2(0x297)]===0x0||(_0x3714a4[_0xfdcac2(0x1ad)]===_0xfdcac2(0x1f8)&&_0x11cae0[_0xfdcac2(0x269)]&&(_0x11cae0[_0xfdcac2(0x269)]=_0x11cae0[_0xfdcac2(0x269)]+_0x365852[_0xfdcac2(0x2c4)]),Object['entries'](_0x11cae0)[_0xfdcac2(0x24c)](([_0x567fbb,_0x2f68ab])=>{const _0x303040=_0xfdcac2;typeof _0x2f68ab==_0x303040(0x1c1)&&(_0x11cae0[_0x567fbb]=_0x2f68ab['replace'](/url\(#(.*)\)/,'url(#$1'+_0x365852[_0x303040(0x2c4)]+')'));})),_0x11cae0;}function _0x4e359e(_0x1d414c,_0x4c9f2c){const _0x4eea6b=_0x30c379;var _0x4e30e0;const {defIds:_0x3669a8}=_0x4c9f2c;return!_0x3669a8||_0x3669a8['length']===0x0?_0x1d414c:_0x1d414c[_0x4eea6b(0x1ad)]===_0x4eea6b(0x292)&&((_0x4e30e0=_0x1d414c[_0x4eea6b(0x2f0)])!=null&&_0x4e30e0[_0x4eea6b(0x297)])?{..._0x1d414c,'children':_0x1d414c[_0x4eea6b(0x2f0)]['map'](_0x15f7bf=>typeof _0x15f7bf[_0x4eea6b(0x20c)]['id']==_0x4eea6b(0x1c1)&&_0x3669a8&&_0x3669a8[_0x4eea6b(0x337)](_0x15f7bf[_0x4eea6b(0x20c)]['id'])?{..._0x15f7bf,'attrs':{..._0x15f7bf['attrs'],'id':_0x15f7bf[_0x4eea6b(0x20c)]['id']+_0x4c9f2c[_0x4eea6b(0x2c4)]}}:_0x15f7bf)}:_0x1d414c;}function _0x1abd08(){const _0x2cd2ca=_0x30c379;return Math[_0x2cd2ca(0x2ac)]()[_0x2cd2ca(0x305)](0x24)[_0x2cd2ca(0x293)](0x2,0x8);}_0x3decbc[_0x30c379(0x1ca)]=_0x30c379(0x294);const _0x24ee46={'tag':_0x30c379(0x2b9),'attrs':{'xmlns':_0x30c379(0x266),'fill':'none','viewBox':_0x30c379(0x272),'width':'1em','height':_0x30c379(0x23c)},'children':[{'tag':'path','attrs':{'fill':_0x30c379(0x26f),'d':_0x30c379(0x334),'fillRule':'evenodd','clipRule':_0x30c379(0x1fc)}}]},_0xbc09fe=_0x3bb5c1[_0x30c379(0x1e4)](function(_0x5f13c4,_0x412e19){const _0x2d6b2b=_0x30c379;return _0x3bb5c1[_0x2d6b2b(0x211)](_0x3decbc,Object[_0x2d6b2b(0x2e1)]({},_0x5f13c4,{'id':_0x2d6b2b(0x32e),'ref':_0x412e19,'icon':_0x24ee46}));});_0xbc09fe['displayName']=_0x30c379(0x248);const _0x3a0635={'tag':'svg','attrs':{'xmlns':_0x30c379(0x266),'fill':_0x30c379(0x338),'viewBox':_0x30c379(0x272),'width':_0x30c379(0x23c),'height':_0x30c379(0x23c)},'children':[{'tag':_0x30c379(0x240),'attrs':{'fill':_0x30c379(0x26f),'d':_0x30c379(0x233)}}]},_0x34e770=_0x3bb5c1['forwardRef'](function(_0x15add7,_0x285bd8){const _0x34ce5c=_0x30c379;return _0x3bb5c1[_0x34ce5c(0x211)](_0x3decbc,Object['assign']({},_0x15add7,{'id':_0x34ce5c(0x32f),'ref':_0x285bd8,'icon':_0x3a0635}));});_0x34e770[_0x30c379(0x1ca)]=_0x30c379(0x2ea);const _0x5bda68={'tag':_0x30c379(0x2b9),'attrs':{'xmlns':_0x30c379(0x266),'fill':_0x30c379(0x338),'viewBox':_0x30c379(0x272),'width':_0x30c379(0x23c),'height':_0x30c379(0x23c)},'children':[{'tag':_0x30c379(0x240),'attrs':{'fill':_0x30c379(0x26f),'d':_0x30c379(0x1b1)}},{'tag':_0x30c379(0x240),'attrs':{'fill':_0x30c379(0x26f),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0x30c379(0x240),'attrs':{'fill':_0x30c379(0x26f),'d':_0x30c379(0x201),'fillRule':_0x30c379(0x1fc),'clipRule':'evenodd'}}]},_0x4968b8=_0x3bb5c1[_0x30c379(0x1e4)](function(_0x32f09d,_0x1ce71a){const _0xa2eb1c=_0x30c379;return _0x3bb5c1[_0xa2eb1c(0x211)](_0x3decbc,Object[_0xa2eb1c(0x2e1)]({},_0x32f09d,{'id':'help-icon','ref':_0x1ce71a,'icon':_0x5bda68}));});_0x4968b8['displayName']=_0x30c379(0x1f0);const _0x5d0703={'tag':_0x30c379(0x2b9),'attrs':{'xmlns':_0x30c379(0x266),'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x30c379(0x23c)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x30c379(0x240),'attrs':{'stroke':'currentColor','d':_0x30c379(0x26a),'strokeLinecap':_0x30c379(0x2a1),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x30c379(0x210),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x30c379(0x1a1)}}]}]}],'defIds':[_0x30c379(0x22e)]},_0x331947=_0x3bb5c1[_0x30c379(0x1e4)](function(_0x1578df,_0x2a12ef){const _0x356c58=_0x30c379;return _0x3bb5c1[_0x356c58(0x211)](_0x3decbc,Object[_0x356c58(0x2e1)]({},_0x1578df,{'id':'off-line-icon','ref':_0x2a12ef,'icon':_0x5d0703}));});_0x331947[_0x30c379(0x1ca)]=_0x30c379(0x277);const _0x414dd5={'tag':_0x30c379(0x2b9),'attrs':{'xmlns':_0x30c379(0x266),'fill':_0x30c379(0x338),'viewBox':_0x30c379(0x29b),'width':_0x30c379(0x23c),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x30c379(0x280)},'children':[{'tag':_0x30c379(0x240),'attrs':{'stroke':'currentColor','d':_0x30c379(0x1d3),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x30c379(0x292),'attrs':{},'children':[{'tag':_0x30c379(0x210),'attrs':{'id':_0x30c379(0x230)},'children':[{'tag':_0x30c379(0x240),'attrs':{'fill':_0x30c379(0x1c9),'d':_0x30c379(0x1a1),'transform':_0x30c379(0x30b)}}]}]}],'defIds':[_0x30c379(0x230)]},_0x126149=_0x3bb5c1[_0x30c379(0x1e4)](function(_0x229058,_0x4488e9){const _0x89d937=_0x30c379;return _0x3bb5c1[_0x89d937(0x211)](_0x3decbc,Object[_0x89d937(0x2e1)]({},_0x229058,{'id':_0x89d937(0x20d),'ref':_0x4488e9,'icon':_0x414dd5}));});_0x126149[_0x30c379(0x1ca)]=_0x30c379(0x1ea);function _0x863e4f(_0x528396){const _0xcc9dc=_0x30c379;var _0x28a0c1,_0x28ebc5;const {mcpCoreConfig:_0x5750cd,onSave:_0x3dee85,loading:_0x316ac6=!0x1,config:_0x2b4156,connectionStatus$:_0x3eeee6,connectionError$:_0x4bc463,currentApiKey$:_0x4dc38b,currentSessionId$:_0x4f7c8a}=_0x528396,_0x4ebeda=_0x193043['useDependency'](_0x59774c[_0xcc9dc(0x23a)]),_0x46141=_0x193043[_0xcc9dc(0x2f5)](_0x3eeee6,_0x526990['MCPConnectionStatus'][_0xcc9dc(0x1c3)]),_0x18ee03=_0x193043['useObservable'](_0x4bc463,_0x526990[_0xcc9dc(0x1be)]['NONE']),_0x5c62fc=_0x193043[_0xcc9dc(0x2f5)](_0x4f7c8a,''),_0x2da515=_0x193043[_0xcc9dc(0x2f5)](_0x4dc38b,''),[_0x94055e,_0xfa2737]=_0x3bb5c1[_0xcc9dc(0x32d)](_0x2da515||''),_0x2ad1fb=!0x0,_0x4fd13b=_0x2b4156[_0xcc9dc(0x31b)]&&_0x5750cd['mcpServerUrl']&&(_0x5750cd[_0xcc9dc(0x325)]['includes'](_0xcc9dc(0x24e))||_0x5750cd[_0xcc9dc(0x325)][_0xcc9dc(0x337)]('univer.ai')),_0x39c080=(_0x28a0c1=_0x5750cd[_0xcc9dc(0x325)])==null?void 0x0:_0x28a0c1[_0xcc9dc(0x337)](_0xcc9dc(0x24e)),_0xd95988=(_0x28ebc5=_0x5750cd[_0xcc9dc(0x325)])==null?void 0x0:_0x28ebc5[_0xcc9dc(0x337)](_0xcc9dc(0x2c3)),_0x3dc11c=_0x39c080?_0xcc9dc(0x1fb):_0xcc9dc(0x226),_0x48b975=_0x2b4156[_0xcc9dc(0x31b)]&&(_0x39c080||_0xd95988),[_0x1f4d4d,_0x59448d]=_0x3bb5c1['useState'](!_0x94055e[_0xcc9dc(0x1d7)]()),_0x2549d0=(_0x152894,_0x253cb9)=>{const _0x55db84=_0xcc9dc;if(_0x253cb9===_0x526990[_0x55db84(0x1be)][_0x55db84(0x26b)])return _0x55db84(0x229);switch(_0x152894){case _0x526990[_0x55db84(0x28b)][_0x55db84(0x32a)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x526990[_0x55db84(0x28b)][_0x55db84(0x1a3)]:case _0x526990[_0x55db84(0x28b)][_0x55db84(0x2e9)]:return _0x55db84(0x21d);case _0x526990[_0x55db84(0x28b)][_0x55db84(0x20f)]:return _0x55db84(0x229);default:return _0x55db84(0x1eb);}},_0x23748=(_0x330f1e,_0x84f7f3)=>{const _0x50d718=_0xcc9dc;if(_0x84f7f3===_0x526990[_0x50d718(0x1be)][_0x50d718(0x26b)])return _0x50d718(0x27e);switch(_0x330f1e){case _0x526990['MCPConnectionStatus']['CONNECTED']:return'univer-bg-green-500';case _0x526990[_0x50d718(0x28b)][_0x50d718(0x1a3)]:case _0x526990[_0x50d718(0x28b)][_0x50d718(0x2e9)]:return _0x50d718(0x326);case _0x526990[_0x50d718(0x28b)]['FAILED']:return _0x50d718(0x27e);default:return _0x50d718(0x251);}},_0x4b410f=_0x1fd530=>{const _0x38d8a2=_0xcc9dc;switch(_0x1fd530){case _0x526990['MCPConnectionStatus'][_0x38d8a2(0x32a)]:return _0x4ebeda['t']('mcpConfig.connectionStatus.connected');case _0x526990['MCPConnectionStatus']['CONNECTING']:return _0x4ebeda['t'](_0x38d8a2(0x262));case _0x526990[_0x38d8a2(0x28b)][_0x38d8a2(0x20f)]:return _0x4ebeda['t'](_0x38d8a2(0x22d));case _0x526990[_0x38d8a2(0x28b)]['RETRYING']:return _0x4ebeda['t'](_0x38d8a2(0x26e));default:return _0x4ebeda['t'](_0x38d8a2(0x317));}},_0x47b48a=_0x5c4475=>{const _0x289a15=_0xcc9dc;switch(_0x5c4475){case _0x526990['MCPConnectionError'][_0x289a15(0x26b)]:return _0x4ebeda['t'](_0x289a15(0x19e));case _0x526990[_0x289a15(0x1be)][_0x289a15(0x2c0)]:return _0x4ebeda['t']('mcpConfig.connectionError.sessionOccupied');case _0x526990['MCPConnectionError']['NETWORK_ERROR']:return _0x4ebeda['t'](_0x289a15(0x2bf));case _0x526990[_0x289a15(0x1be)][_0x289a15(0x231)]:return _0x4ebeda['t'](_0x289a15(0x253));default:return'';}},_0x2cfdd3=_0x3bb5c1[_0xcc9dc(0x323)](()=>{const _0x28bfda={..._0x5750cd,'apiKey':_0x94055e['trim'](),'enableAuth':_0x2ad1fb};_0x3dee85(_0x28bfda);},[_0x5750cd,_0x94055e,_0x2ad1fb,_0x3dee85]),_0x472de6=_0x94055e['trim']()[_0xcc9dc(0x297)]>0x0;return _0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2cf),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x1ef),'children':_0x3caf40['jsxs'](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2b0),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2d3),'children':_0x3caf40['jsx'](_0xcc9dc(0x2b6),{'className':_0xcc9dc(0x2db),'children':'⚙'})}),_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'children':_0x3caf40[_0xcc9dc(0x1b9)]('p',{'className':_0xcc9dc(0x25d),'children':_0x4ebeda['t']('mcpConfig.description')})})]})}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0x19ed03[_0xcc9dc(0x2aa)]('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x2549d0(_0x46141,_0x18ee03)),'children':_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x223),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0x19ed03['clsx'](_0xcc9dc(0x318),_0x23748(_0x46141,_0x18ee03))}),_0x3caf40['jsx'](_0xcc9dc(0x2b6),{'className':_0xcc9dc(0x218),'children':_0x4b410f(_0x46141)})]})}),_0x18ee03!==_0x526990[_0xcc9dc(0x1be)][_0xcc9dc(0x2c5)]&&(_0x46141===_0x526990[_0xcc9dc(0x28b)][_0xcc9dc(0x20f)]||_0x18ee03===_0x526990['MCPConnectionError'][_0xcc9dc(0x26b)])&&_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x3caf40[_0xcc9dc(0x30a)]('div',{'className':_0xcc9dc(0x1d5),'children':[_0x3caf40['jsx'](_0xcc9dc(0x2b6),{'className':_0xcc9dc(0x23d),'children':'⚠️'}),_0x3caf40[_0xcc9dc(0x1b9)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x47b48a(_0x18ee03)})]})})]}),_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2e6),'children':_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':'univer-space-y-5','children':[_0x3caf40['jsxs']('div',{'className':_0xcc9dc(0x25f),'children':[_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e3),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2b6),{'children':'🔑'}),'\x20',_0x4ebeda['t'](_0xcc9dc(0x31f)),_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2b6),{'className':_0xcc9dc(0x2f6),'children':'*'}),_0x4fd13b&&_0x3caf40[_0xcc9dc(0x1b9)]('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x4ebeda['t']('mcpConfig.apiApplyInfo.title'),'role':_0xcc9dc(0x20e),'onClick':()=>_0x59448d(!0x0),'children':_0x3caf40[_0xcc9dc(0x1b9)](_0x4968b8,{})})]}),_0x3caf40['jsx'](_0x19ed03[_0xcc9dc(0x286)],{'type':_0xcc9dc(0x2d4),'placeholder':_0x4ebeda['t'](_0xcc9dc(0x2b4)),'value':_0x94055e,'disabled':_0x316ac6,'autoComplete':_0xcc9dc(0x1f3),'onChange':_0xfa2737}),_0x3caf40[_0xcc9dc(0x1b9)]('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4ebeda['t'](_0xcc9dc(0x1d9))})]}),_0x4fd13b&&_0x1f4d4d&&_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'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':[_0x3caf40[_0xcc9dc(0x1b9)]('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0xcc9dc(0x20e),'onClick':()=>_0x59448d(!0x1),'children':_0x3caf40['jsx'](_0x34e770,{'className':'univer-size-4'})}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x3caf40['jsx']('span',{'className':_0xcc9dc(0x282),'children':'🚀'})}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x281),'children':[_0x3caf40['jsx']('h4',{'className':_0xcc9dc(0x2cc),'children':_0x4ebeda['t']('mcpConfig.apiApplyInfo.title')}),_0x3caf40['jsx']('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x4ebeda['t']('mcpConfig.apiApplyInfo.description')}),_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x241),'children':_0x48b975&&_0x3caf40[_0xcc9dc(0x30a)]('a',{'className':_0xcc9dc(0x2da),'href':_0x3dc11c,'target':_0xcc9dc(0x30d),'rel':_0xcc9dc(0x1dd),'children':[_0x3caf40[_0xcc9dc(0x1b9)]('span',{'children':'🤖'}),_0x4ebeda['t'](_0xcc9dc(0x1b7)),_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2b6),{'className':_0xcc9dc(0x1c5),'children':'↗'})]})}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2ec),'children':['✨','\x20',_0x4ebeda['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x2b4156[_0xcc9dc(0x31b)]&&_0x3caf40['jsxs'](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2c2),'children':[_0x3caf40[_0xcc9dc(0x30a)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x3caf40['jsx'](_0xcc9dc(0x2b6),{'children':'🔗'}),'\x20',_0x4ebeda['t'](_0xcc9dc(0x316))]}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x1a5),'children':[_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x203),'children':[_0x3caf40['jsx']('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x4ebeda['t'](_0xcc9dc(0x2a0))}),_0x3caf40[_0xcc9dc(0x30a)]('div',{'className':_0xcc9dc(0x25f),'children':[_0x3caf40[_0xcc9dc(0x1b9)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4ebeda['t']('mcpConfig.configStepTitle')}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2b3),'children':[_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x223),'children':[_0x3caf40[_0xcc9dc(0x1b9)]('span',{'className':_0xcc9dc(0x1c4),'children':'1'}),_0x4ebeda['t'](_0xcc9dc(0x1ff))]}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2b6),{'className':_0xcc9dc(0x1c4),'children':'2'}),_0x4ebeda['t'](_0xcc9dc(0x31c))]}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x223),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2b6),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x4ebeda['t'](_0xcc9dc(0x29c))]})]})]})]}),_0x3caf40[_0xcc9dc(0x30a)]('div',{'className':_0xcc9dc(0x25f),'children':[_0x3caf40['jsx'](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x26d),'children':_0xcc9dc(0x23f)}),_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x321),'children':_0x3caf40['jsx'](_0xcc9dc(0x23e),{'className':_0xcc9dc(0x2e0),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0xcc9dc(0x288)+(_0x5c62fc||_0xcc9dc(0x25b)),'type':_0xcc9dc(0x1fa),'headers':{'Authorization':_0xcc9dc(0x1dc)+(_0x94055e||_0xcc9dc(0x273))}}}},null,0x2)})})]}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x203),'children':[_0x3caf40[_0xcc9dc(0x1b9)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4ebeda['t'](_0xcc9dc(0x20a))}),_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x25f),'children':[_0x3caf40['jsxs'](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x1b8),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x3caf40['jsxs'](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2be),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xcc9dc(0x1bc)}),_0x3caf40[_0xcc9dc(0x1b9)]('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4ebeda['t']('mcpConfig.sessionIdDescription')})]})]}),_0x3caf40[_0xcc9dc(0x30a)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x279)}),_0x3caf40['jsxs']('div',{'className':_0xcc9dc(0x2be),'children':[_0x3caf40['jsx'](_0xcc9dc(0x2e4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xcc9dc(0x2fb)}),_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x29f),'children':_0x4ebeda['t'](_0xcc9dc(0x1da))})]})]})]})]})]})]}),_0x3caf40[_0xcc9dc(0x1b9)](_0x19ed03[_0xcc9dc(0x2fc)],{'onClick':_0x2cfdd3,'disabled':!_0x472de6||_0x316ac6,'className':_0xcc9dc(0x1a9),'children':_0x316ac6?_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2b6),{'className':_0xcc9dc(0x223),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2b6),{'children':'⟲'}),_0x4ebeda['t'](_0xcc9dc(0x298))]}):_0x3caf40['jsxs'](_0xcc9dc(0x2b6),{'className':_0xcc9dc(0x223),'children':[_0x3caf40['jsx'](_0xbc09fe,{}),_0x4ebeda['t'](_0xcc9dc(0x1ac))]})}),_0x3caf40['jsx'](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x28e),'children':_0x3caf40[_0xcc9dc(0x30a)](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x2a3),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2b6),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x3caf40['jsxs'](_0xcc9dc(0x2e4),{'className':_0xcc9dc(0x1d2),'children':[_0x3caf40[_0xcc9dc(0x1b9)](_0xcc9dc(0x2e4),{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),_0x3caf40['jsxs'](_0xcc9dc(0x2e4),{'children':['•',_0x4ebeda['t'](_0xcc9dc(0x261))]}),_0x3caf40['jsxs'](_0xcc9dc(0x2e4),{'children':['•',_0x4ebeda['t'](_0xcc9dc(0x333))]})]})]})})]})})]});}const _0x4f5e71=_0x30c379(0x309),_0x5f500c={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x267a69=Object[_0x30c379(0x24f)],_0x2fb0cb=(_0x16b616,_0x1f6abf,_0x28751e,_0x1fafd4)=>{for(var _0x2dee00=_0x1fafd4>0x1?void 0x0:_0x1fafd4?_0x267a69(_0x1f6abf,_0x28751e):_0x1f6abf,_0x4e85b1=_0x16b616['length']-0x1,_0x4416d2;_0x4e85b1>=0x0;_0x4e85b1--)(_0x4416d2=_0x16b616[_0x4e85b1])&&(_0x2dee00=_0x4416d2(_0x2dee00)||_0x2dee00);return _0x2dee00;},_0x5d600f=(_0x50bbe1,_0x3f4c04)=>(_0x51a013,_0x117075)=>_0x3f4c04(_0x51a013,_0x117075,_0x50bbe1);const _0x2c54f9=_0x30c379(0x1ee),_0x36681f=_0x30c379(0x228);_0x1764fb[_0x30c379(0x2c9)]=class extends _0x59774c[_0x30c379(0x1b0)]{constructor(_0x47721d,_0x3599c2,_0x1d38f3,_0x1df3bb,_0x52029a,_0x3180d6,_0x3205dc,_0x39a1b2,_0x24af68,_0x188f76){const _0x18b98b=_0x30c379;super(),_0x1c3207(this,'_loading$',new _0x3a8d92[(_0x18b98b(0x239))](!0x1)),_0x1c3207(this,_0x18b98b(0x21e),new _0x3a8d92[(_0x18b98b(0x239))]({})),_0x1c3207(this,_0x18b98b(0x2cb),new _0x3a8d92[(_0x18b98b(0x239))]({})),_0x1c3207(this,_0x18b98b(0x21f),new _0x3a8d92['BehaviorSubject']('')),_0x1c3207(this,'_handleConfigSave',async _0x35494a=>{const _0x3103cd=_0x18b98b;var _0x1a1684,_0xff236b;this[_0x3103cd(0x2de)][_0x3103cd(0x2fe)](!0x0);try{const _0x57bdce=await this[_0x3103cd(0x245)](_0x35494a);if(!_0x57bdce[_0x3103cd(0x2f1)]){this[_0x3103cd(0x339)][_0x3103cd(0x1b2)]({'type':_0x19ed03[_0x3103cd(0x2f7)][_0x3103cd(0x222)],'content':_0x57bdce[_0x3103cd(0x2a6)]||this[_0x3103cd(0x242)]['t'](_0x3103cd(0x1b4))});return;}_0x35494a[_0x3103cd(0x324)]?await this[_0x3103cd(0x24d)][_0x3103cd(0x315)](_0x2c54f9,_0x35494a[_0x3103cd(0x324)]['trim']()):await this[_0x3103cd(0x24d)][_0x3103cd(0x2a9)](_0x2c54f9),this['_apiKey$'][_0x3103cd(0x2fe)](((_0x1a1684=_0x35494a[_0x3103cd(0x324)])==null?void 0x0:_0x1a1684[_0x3103cd(0x1d7)]())||''),this[_0x3103cd(0x1b6)][_0x3103cd(0x314)]({'Authorization':_0x3103cd(0x1dc)+((_0xff236b=_0x35494a[_0x3103cd(0x324)])==null?void 0x0:_0xff236b[_0x3103cd(0x1d7)]())}),this[_0x3103cd(0x339)][_0x3103cd(0x1b2)]({'type':_0x19ed03['MessageType'][_0x3103cd(0x328)],'content':this[_0x3103cd(0x242)]['t'](_0x3103cd(0x256))}),setTimeout(()=>{const _0x381c0f=_0x3103cd;this[_0x381c0f(0x2a7)][_0x381c0f(0x311)](_0x36681f);},0x320);}catch(_0x1c3442){this[_0x3103cd(0x296)][_0x3103cd(0x31d)](_0x3103cd(0x224),_0x1c3442),this['_messageService'][_0x3103cd(0x1b2)]({'type':_0x19ed03[_0x3103cd(0x2f7)][_0x3103cd(0x222)],'content':this[_0x3103cd(0x242)]['t'](_0x3103cd(0x20b))});}finally{this[_0x3103cd(0x2de)][_0x3103cd(0x2fe)](!0x1);}}),(this[_0x18b98b(0x329)]=_0x47721d,this[_0x18b98b(0x30e)]=_0x3599c2,this[_0x18b98b(0x331)]=_0x1d38f3,this[_0x18b98b(0x24d)]=_0x1df3bb,this[_0x18b98b(0x2a7)]=_0x52029a,this[_0x18b98b(0x339)]=_0x3180d6,this['_componentManager']=_0x3205dc,this[_0x18b98b(0x242)]=_0x39a1b2,this[_0x18b98b(0x296)]=_0x24af68,this[_0x18b98b(0x1b6)]=_0x188f76,this[_0x18b98b(0x335)](),this[_0x18b98b(0x2cd)](),this[_0x18b98b(0x30c)]());}[_0x30c379(0x238)](){const _0x24b03c=_0x30c379,_0x1bc371=this[_0x24b03c(0x331)][_0x24b03c(0x2ee)](_0x4f5e71);_0x1bc371!=null&&_0x1bc371[_0x24b03c(0x31b)]&&this['_dialogService'][_0x24b03c(0x219)]({'id':_0x36681f,'title':{'title':this[_0x24b03c(0x242)]['t'](_0x24b03c(0x275))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x27d2c9=_0x24b03c;this[_0x27d2c9(0x2a7)]['close'](_0x36681f);}});}[_0x30c379(0x215)](){return this['_mcpCoreConfig$']['value'];}[_0x30c379(0x30c)](){const _0x1cf5f4=_0x30c379;this['disposeWithMe'](this[_0x1cf5f4(0x1db)][_0x1cf5f4(0x308)](_0x1cf5f4(0x214),this['_createConfigPanelComponent']()));}[_0x30c379(0x1e3)](){const _0x21d8ac=_0x30c379;return _0x193043[_0x21d8ac(0x1e8)](()=>{const _0x5df8be=_0x21d8ac;var _0x1a363c,_0x26b0eb,_0x1f937c;return _0x3caf40[_0x5df8be(0x1b9)](_0x863e4f,{'config':this[_0x5df8be(0x2cb)]['value'],'mcpCoreConfig':this[_0x5df8be(0x21e)][_0x5df8be(0x2d8)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x5df8be(0x28c)],'loading':this[_0x5df8be(0x2de)][_0x5df8be(0x2d8)],'connectionStatus$':(_0x1a363c=this[_0x5df8be(0x1b6)])==null?void 0x0:_0x1a363c[_0x5df8be(0x212)],'connectionError$':(_0x26b0eb=this[_0x5df8be(0x1b6)])==null?void 0x0:_0x26b0eb[_0x5df8be(0x1ec)],'currentSessionId$':(_0x1f937c=this[_0x5df8be(0x1b6)])==null?void 0x0:_0x1f937c[_0x5df8be(0x1ce)]});},this[_0x21d8ac(0x329)]);}[_0x30c379(0x335)](){const _0x5a605a=_0x30c379;this['disposeWithMe'](this['_configService'][_0x5a605a(0x1cc)](_0x526990[_0x5a605a(0x1e7)])[_0x5a605a(0x27f)](_0x465b12=>{const _0x154b5a=_0x5a605a;this[_0x154b5a(0x21e)][_0x154b5a(0x2fe)](_0x465b12||{});}));const _0x5353c6=this[_0x5a605a(0x331)][_0x5a605a(0x2ee)](_0x526990[_0x5a605a(0x1e7)]);this['_mcpCoreConfig$'][_0x5a605a(0x2fe)](_0x5353c6||{}),this[_0x5a605a(0x1e5)](this[_0x5a605a(0x331)][_0x5a605a(0x1cc)](_0x4f5e71)[_0x5a605a(0x27f)](_0x4779a5=>{this['_config$']['next'](_0x4779a5||{});}));const _0x4c17c9=this[_0x5a605a(0x331)]['getConfig'](_0x4f5e71);this[_0x5a605a(0x2cb)]['next'](_0x4c17c9||{});}async[_0x30c379(0x2cd)](){const _0x4f750d=_0x30c379,_0x5455b7=this[_0x4f750d(0x331)][_0x4f750d(0x2ee)](_0x4f5e71);if(!(_0x5455b7!=null&&_0x5455b7[_0x4f750d(0x31b)]))return;const _0x11e6d3=await this['_localStorageService'][_0x4f750d(0x217)](_0x2c54f9);_0x11e6d3&&(this[_0x4f750d(0x1b6)][_0x4f750d(0x314)]({'Authorization':_0x4f750d(0x1dc)+_0x11e6d3}),this['_apiKey$']['next'](_0x11e6d3));}async[_0x30c379(0x245)](_0x35707c){const _0x380443=_0x30c379;if(!_0x35707c[_0x380443(0x324)]||_0x35707c[_0x380443(0x324)][_0x380443(0x1d7)]()[_0x380443(0x297)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x35707c['apiKey'][_0x380443(0x1d7)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x380443(0x242)]['t'](_0x380443(0x268))};try{const _0x5259ac=await this[_0x380443(0x329)][_0x380443(0x259)](_0x526990['MCPConnectionController'])[_0x380443(0x2d6)](_0x35707c['apiKey'][_0x380443(0x1d7)]());return _0x5259ac['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x5259ac[_0x380443(0x31d)]||this[_0x380443(0x242)]['t'](_0x380443(0x1e0))};}catch(_0x6e86dc){return console[_0x380443(0x27d)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x6e86dc),{'isValid':!0x0};}}},_0x1764fb[_0x30c379(0x2c9)]=_0x2fb0cb([_0x5d600f(0x0,_0x59774c[_0x30c379(0x2ef)](_0x59774c[_0x30c379(0x263)])),_0x5d600f(0x1,_0x193043['IUIPartsService']),_0x5d600f(0x2,_0x59774c[_0x30c379(0x30f)]),_0x5d600f(0x3,_0x59774c['ILocalStorageService']),_0x5d600f(0x4,_0x193043[_0x30c379(0x2d0)]),_0x5d600f(0x5,_0x193043[_0x30c379(0x2f8)]),_0x5d600f(0x6,_0x59774c[_0x30c379(0x2ef)](_0x193043[_0x30c379(0x200)])),_0x5d600f(0x7,_0x59774c[_0x30c379(0x2ef)](_0x59774c[_0x30c379(0x23a)])),_0x5d600f(0x8,_0x59774c[_0x30c379(0x2b2)]),_0x5d600f(0x9,_0x59774c[_0x30c379(0x2ef)](_0x526990[_0x30c379(0x31a)]))],_0x1764fb[_0x30c379(0x2c9)]);const _0x25084e={'id':_0x30c379(0x22a),'type':_0x59774c[_0x30c379(0x207)][_0x30c379(0x255)],'handler':async(_0x235285,_0x57327b)=>(_0x235285['get'](_0x1764fb['MCPConfigUIController'])[_0x30c379(0x238)](),!0x0)};function _0x562c11(_0x3c40ec,_0x4a5919){const _0x3ac224=_0x30c379;switch(_0x3c40ec){case _0x526990['MCPConnectionStatus'][_0x3ac224(0x1c3)]:return _0x3ac224(0x22b);case _0x526990[_0x3ac224(0x28b)]['CONNECTING']:return _0x3ac224(0x301);case _0x526990[_0x3ac224(0x28b)][_0x3ac224(0x32a)]:return _0x3ac224(0x2ae);case _0x526990[_0x3ac224(0x28b)][_0x3ac224(0x20f)]:switch(_0x4a5919){case _0x526990[_0x3ac224(0x1be)]['UNAUTHORIZED']:return _0x3ac224(0x1d0);case _0x526990['MCPConnectionError'][_0x3ac224(0x2c0)]:return _0x3ac224(0x2f4);case _0x526990[_0x3ac224(0x1be)][_0x3ac224(0x1d8)]:return _0x3ac224(0x1e6);case _0x526990['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x3ac224(0x283);default:return _0x3ac224(0x1a6);}case _0x526990[_0x3ac224(0x28b)][_0x3ac224(0x2e9)]:return'mcpStatus.retrying';default:return _0x3ac224(0x336);}}function _0x2ccf39(_0x10160a,_0x1c9281,_0x58feb8,_0x15a08d=!0x0){const _0x3f2235=_0x30c379,_0x57bc6b=_0x562c11(_0x10160a,_0x1c9281),_0x509646=_0x58feb8['t'](_0x57bc6b);return _0x15a08d?_0x10160a===_0x526990['MCPConnectionStatus'][_0x3f2235(0x1c3)]&&_0x1c9281===_0x526990[_0x3f2235(0x1be)]['UNAUTHORIZED']?_0x509646+_0x3f2235(0x1a0)+_0x58feb8['t'](_0x3f2235(0x264)):_0x10160a===_0x526990[_0x3f2235(0x28b)][_0x3f2235(0x32a)]?''+_0x509646:_0x10160a===_0x526990[_0x3f2235(0x28b)][_0x3f2235(0x1c3)]||_0x10160a===_0x526990[_0x3f2235(0x28b)][_0x3f2235(0x20f)]?_0x509646+'\x20-\x20'+_0x58feb8['t'](_0x3f2235(0x19b)):_0x509646:_0x509646;}function _0x155048(_0x558535){const _0x918744=_0x30c379;switch(_0x558535){case _0x526990[_0x918744(0x28b)]['CONNECTED']:return _0x918744(0x295);case _0x526990[_0x918744(0x28b)][_0x918744(0x1a3)]:case _0x526990[_0x918744(0x28b)]['RETRYING']:return _0x918744(0x1cf);case _0x526990['MCPConnectionStatus'][_0x918744(0x20f)]:case _0x526990[_0x918744(0x28b)][_0x918744(0x1c3)]:return _0x918744(0x2f6);default:return _0x918744(0x209);}}function _0x10cc74(_0x10fbe3){const _0x45a3e0=_0x30c379,{status$:_0x280159,error$:_0x3eba38,onConfigure:_0x5ac3cf,showClickable:_0x571b1d=!0x0}=_0x10fbe3,_0x49376b=_0x193043[_0x45a3e0(0x2f5)](_0x280159,_0x526990['MCPConnectionStatus']['DISCONNECTED']),_0xe4b9fc=_0x193043[_0x45a3e0(0x2f5)](_0x3eba38,_0x526990[_0x45a3e0(0x1be)]['NONE']),_0x276256=_0x193043[_0x45a3e0(0x252)](_0x59774c[_0x45a3e0(0x23a)]),_0x4b6676=_0x49376b===_0x526990[_0x45a3e0(0x28b)][_0x45a3e0(0x32a)];_0x49376b===_0x526990[_0x45a3e0(0x28b)][_0x45a3e0(0x1a3)]||_0x526990[_0x45a3e0(0x28b)][_0x45a3e0(0x2e9)];const _0x269279=_0x276256['t'](_0x562c11(_0x49376b,_0xe4b9fc)),_0x1385ad=_0x2ccf39(_0x49376b,_0xe4b9fc,_0x276256,_0x571b1d),_0x53231c=_0x155048(_0x49376b),_0x4bc1ee=_0x4b6676?_0x3caf40['jsx'](_0x126149,{}):_0x3caf40[_0x45a3e0(0x1b9)](_0x331947,{}),_0x156367=_0x3bb5c1['useCallback'](()=>{_0x571b1d&&_0x5ac3cf&&_0x5ac3cf();},[_0x571b1d,_0x5ac3cf]);function _0x3f58bb(){const _0x3be1f2=_0x45a3e0;return _0x3caf40['jsxs'](_0x3be1f2(0x2e4),{'className':_0x19ed03[_0x3be1f2(0x2aa)](_0x3be1f2(0x1de),_0x571b1d&&_0x5ac3cf&&_0x3be1f2(0x237)),'role':_0x3be1f2(0x20e),'onClick':_0x571b1d&&_0x5ac3cf?_0x156367:void 0x0,'children':[_0x3caf40['jsx'](_0x3be1f2(0x2e4),{'className':_0x19ed03['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x53231c),'children':_0x4bc1ee}),_0x3caf40[_0x3be1f2(0x1b9)](_0x3be1f2(0x2e4),{'className':_0x3be1f2(0x19c),'children':_0x269279})]});}return _0x3caf40[_0x45a3e0(0x1b9)](_0x19ed03[_0x45a3e0(0x1aa)],{'title':_0x1385ad,'placement':_0x45a3e0(0x260),'children':_0x3f58bb()});}var _0x66525c=Object[_0x30c379(0x24f)],_0x2a1e49=(_0x27b088,_0x46ffca,_0x55b95d,_0x4fddd8)=>{for(var _0x4051db=_0x4fddd8>0x1?void 0x0:_0x4fddd8?_0x66525c(_0x46ffca,_0x55b95d):_0x46ffca,_0x471b71=_0x27b088['length']-0x1,_0x623b79;_0x471b71>=0x0;_0x471b71--)(_0x623b79=_0x27b088[_0x471b71])&&(_0x4051db=_0x623b79(_0x4051db)||_0x4051db);return _0x4051db;},_0x5a596e=(_0x590555,_0x32d0bb)=>(_0x3dea2e,_0x2fa3e4)=>_0x32d0bb(_0x3dea2e,_0x2fa3e4,_0x590555);_0x1764fb[_0x30c379(0x225)]=class extends _0x59774c['Disposable']{constructor(_0x595c9f,_0x24cc5e,_0x24c323,_0x53dc0b){const _0x40c86c=_0x30c379;super(),this['_injector']=_0x595c9f,this[_0x40c86c(0x21a)]=_0x24cc5e,this['_uiPartsService']=_0x24c323,this[_0x40c86c(0x331)]=_0x53dc0b,this['_initAutoConnect'](),this[_0x40c86c(0x25c)]();}[_0x30c379(0x1a7)](){const _0x254453=_0x30c379,_0x163c27=this[_0x254453(0x331)][_0x254453(0x2ee)](_0x4f5e71);_0x163c27!=null&&_0x163c27[_0x254453(0x31b)]&&(this[_0x254453(0x21a)]['enableAutoConnect']=!0x1);}[_0x30c379(0x25c)](){const _0x3822a5=_0x30c379,_0x1205ca=this[_0x3822a5(0x331)][_0x3822a5(0x2ee)](_0x4f5e71);(_0x1205ca==null?void 0x0:_0x1205ca[_0x3822a5(0x1fe)])!==!0x1&&this[_0x3822a5(0x1e5)](this[_0x3822a5(0x30e)]['registerComponent'](_0x193043[_0x3822a5(0x2ab)][_0x3822a5(0x1a2)],()=>{const _0x448bf2=_0x3822a5;var _0x21fc92;return _0x193043[_0x448bf2(0x1e8)](_0x129028({'status$':this[_0x448bf2(0x21a)]['connectionStatus$'],'error$':this['_connectionController'][_0x448bf2(0x1ec)],'onConfigure':()=>this[_0x448bf2(0x216)](),'showClickable':(_0x21fc92=_0x1205ca==null?void 0x0:_0x1205ca['showDeveloperTools'])!=null?_0x21fc92:!0x1}),this[_0x448bf2(0x329)]);}));}[_0x30c379(0x216)](){const _0x12709f=_0x30c379;this[_0x12709f(0x329)][_0x12709f(0x259)](_0x1764fb[_0x12709f(0x2c9)])['showConfigPanel']();}},_0x1764fb[_0x30c379(0x225)]=_0x2a1e49([_0x5a596e(0x0,_0x59774c[_0x30c379(0x2ef)](_0x59774c['Injector'])),_0x5a596e(0x1,_0x59774c[_0x30c379(0x2ef)](_0x526990[_0x30c379(0x31a)])),_0x5a596e(0x2,_0x193043['IUIPartsService']),_0x5a596e(0x3,_0x59774c['IConfigService'])],_0x1764fb[_0x30c379(0x225)]);function _0x129028(_0x20edf5){const {status$:_0x2f2839,error$:_0x99d141,onConfigure:_0xeb5010,showClickable:_0x53e8cb}=_0x20edf5;return function(){const _0x64dabb=_0x41a7;return _0x3caf40[_0x64dabb(0x1b9)](_0x10cc74,{'status$':_0x2f2839,'error$':_0x99d141,'onConfigure':_0xeb5010,'showClickable':_0x53e8cb});};}function _0x262afc(_0x6b951c){const _0x151592=_0x30c379;return{'id':_0x25084e['id'],'type':_0x193043[_0x151592(0x2fd)][_0x151592(0x2ed)],'icon':_0x151592(0x271),'title':_0x151592(0x275),'tooltip':_0x151592(0x275)};}const _0x53c060={[_0x193043[_0x30c379(0x1f5)]['OTHERS']]:{[_0x25084e['id']]:{'order':0xa,'menuItemFactory':_0x262afc}}};var _0x165863=Object['getOwnPropertyDescriptor'],_0x439259=(_0x45b03d,_0x1c869c,_0x58925c,_0x4c8bb1)=>{for(var _0x374fa4=_0x4c8bb1>0x1?void 0x0:_0x4c8bb1?_0x165863(_0x1c869c,_0x58925c):_0x1c869c,_0x53f6e6=_0x45b03d['length']-0x1,_0x2c44b5;_0x53f6e6>=0x0;_0x53f6e6--)(_0x2c44b5=_0x45b03d[_0x53f6e6])&&(_0x374fa4=_0x2c44b5(_0x374fa4)||_0x374fa4);return _0x374fa4;},_0x54736a=(_0x5b3b19,_0x2cae23)=>(_0xd8ca67,_0x3f33f1)=>_0x2cae23(_0xd8ca67,_0x3f33f1,_0x5b3b19);_0x1764fb[_0x30c379(0x28a)]=class extends _0x59774c[_0x30c379(0x1b0)]{constructor(_0x5ce68f,_0x213654){const _0x5528e2=_0x30c379;super(),this[_0x5528e2(0x278)]=_0x5ce68f,this[_0x5528e2(0x199)]=_0x213654,this[_0x5528e2(0x29d)](),this[_0x5528e2(0x303)]();}['_initializeCommands'](){[_0x25084e]['forEach'](_0x2d9479=>{const _0x2c04d1=_0x41a7;this[_0x2c04d1(0x1e5)](this[_0x2c04d1(0x278)][_0x2c04d1(0x304)](_0x2d9479));});}[_0x30c379(0x303)](){const _0x4da804=_0x30c379;this[_0x4da804(0x199)][_0x4da804(0x300)](_0x53c060);}},_0x1764fb[_0x30c379(0x28a)]=_0x439259([_0x54736a(0x0,_0x59774c[_0x30c379(0x29a)]),_0x54736a(0x1,_0x193043[_0x30c379(0x319)])],_0x1764fb['MCPUIMenuController']);const _0x4465fc={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x30c379(0x2b1),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x30c379(0x2c1),'unknown':_0x30c379(0x2ba),'unauthorized':_0x30c379(0x2dd),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x30c379(0x320),'maxRetriesExceeded':_0x30c379(0x1e1),'clickToConnect':_0x30c379(0x1ab),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x30c379(0x23f),'description':_0x30c379(0x236),'apiKey':_0x30c379(0x250),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x30c379(0x249),'enableAuth':_0x30c379(0x2b8),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x30c379(0x31e),'mcpClientConfig':_0x30c379(0x31e),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x30c379(0x302),'configStep3':_0x30c379(0x24b),'sessionId':_0x30c379(0x1df),'sessionIdDescription':_0x30c379(0x1bf),'authorizationDescription':_0x30c379(0x1ae),'configParameters':_0x30c379(0x1c0),'maxRetries':_0x30c379(0x267),'save':'Save\x20Configuration','saving':_0x30c379(0x327),'note1':_0x30c379(0x1af),'note2':_0x30c379(0x24a),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x30c379(0x27b),'apiApplyInfo':{'title':_0x30c379(0x234),'description':_0x30c379(0x2ad),'univerAiLabel':_0x30c379(0x205),'getStarted':_0x30c379(0x254)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x30c379(0x1ba),'invalidApiKey':_0x30c379(0x2d9)},'connectionStatus':{'disconnected':_0x30c379(0x310),'connecting':_0x30c379(0x247),'connected':_0x30c379(0x1c7),'failed':_0x30c379(0x2e8),'retrying':_0x30c379(0x1e2)},'connectionError':{'unauthorized':_0x30c379(0x1b3),'sessionOccupied':_0x30c379(0x1cb),'networkError':_0x30c379(0x2b7),'maxRetriesExceeded':_0x30c379(0x1cd)}}},_0x5c54b3={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x30c379(0x221),'failed':_0x30c379(0x227),'retrying':_0x30c379(0x289),'unknown':_0x30c379(0x27c),'unauthorized':_0x30c379(0x2a8),'sessionOccupied':_0x30c379(0x312),'networkError':_0x30c379(0x1f2),'maxRetriesExceeded':_0x30c379(0x2a2),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x30c379(0x284)},'mcpConfig':{'title':_0x30c379(0x19d),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x30c379(0x2f3),'apiKeyPlaceholder':_0x30c379(0x204),'apiKeyHint':_0x30c379(0x2bc),'enableAuth':_0x30c379(0x243),'enableAuthHint':_0x30c379(0x21c),'connectionInfo':_0x30c379(0x32c),'mcpClientConfig':_0x30c379(0x32c),'configInstructions':_0x30c379(0x206),'configStepTitle':_0x30c379(0x27a),'configStep1':_0x30c379(0x2af),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x30c379(0x2b5),'sessionId':_0x30c379(0x244),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x30c379(0x265),'configParameters':'配置参数:','maxRetries':'最大重试次数','save':_0x30c379(0x26c),'saving':'保存中...','note1':_0x30c379(0x1d6),'note2':_0x30c379(0x287),'configSaved':_0x30c379(0x2bb),'configError':_0x30c379(0x2d7),'apiApplyInfo':{'title':_0x30c379(0x1f9),'description':_0x30c379(0x213),'univerAiLabel':_0x30c379(0x1bb),'getStarted':_0x30c379(0x2fa)},'validation':{'apiKeyRequired':_0x30c379(0x235),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x30c379(0x29e),'invalidApiKey':_0x30c379(0x2f2)},'connectionStatus':{'disconnected':_0x30c379(0x25a),'connecting':_0x30c379(0x1d1),'connected':'已连接','failed':_0x30c379(0x2eb),'retrying':_0x30c379(0x23b)},'connectionError':{'unauthorized':_0x30c379(0x2e7),'sessionOccupied':_0x30c379(0x276),'networkError':_0x30c379(0x2df),'maxRetriesExceeded':_0x30c379(0x1c8)}}};var _0x3cb06c=Object[_0x30c379(0x2a4)],_0x184d46=Object['getOwnPropertyDescriptor'],_0x11b9d5=(_0x5cd947,_0x59a698,_0x2bf5d0)=>_0x59a698 in _0x5cd947?_0x3cb06c(_0x5cd947,_0x59a698,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bf5d0}):_0x5cd947[_0x59a698]=_0x2bf5d0,_0x3fa9a2=(_0x4048e6,_0x264549,_0x32ea96,_0x146bed)=>{const _0x26a647=_0x30c379;for(var _0x3aee5d=_0x146bed>0x1?void 0x0:_0x146bed?_0x184d46(_0x264549,_0x32ea96):_0x264549,_0x187aa4=_0x4048e6[_0x26a647(0x297)]-0x1,_0x5e612a;_0x187aa4>=0x0;_0x187aa4--)(_0x5e612a=_0x4048e6[_0x187aa4])&&(_0x3aee5d=_0x5e612a(_0x3aee5d)||_0x3aee5d);return _0x3aee5d;},_0x17f5b7=(_0x2d875d,_0x51a577)=>(_0x40106d,_0x5abfb0)=>_0x51a577(_0x40106d,_0x5abfb0,_0x2d875d),_0x2ad66a=(_0x38b0db,_0x2a5f93,_0x5b6497)=>_0x11b9d5(_0x38b0db,_0x2a5f93+'',_0x5b6497);_0x1764fb[_0x30c379(0x307)]=class extends _0x59774c[_0x30c379(0x2d2)]{constructor(_0x226839=_0x5f500c,_0x1193a5,_0x5c2db4,_0x5258f6,_0x3727e7,_0x527032){const _0x463adf=_0x30c379;super(),this[_0x463adf(0x1d4)]=_0x226839,this[_0x463adf(0x329)]=_0x1193a5,this[_0x463adf(0x331)]=_0x5c2db4,this[_0x463adf(0x30e)]=_0x5258f6,this['_localStorageService']=_0x3727e7,this[_0x463adf(0x242)]=_0x527032;const {..._0x36978c}=_0x59774c[_0x463adf(0x1fd)]({},_0x5f500c,this[_0x463adf(0x1d4)]);this[_0x463adf(0x331)]['setConfig'](_0x4f5e71,_0x36978c);}async[_0x30c379(0x1b5)](){const _0x404353=_0x30c379,_0x39c2f4=[[_0x1764fb[_0x404353(0x225)]],[_0x1764fb[_0x404353(0x2c9)]],[_0x1764fb['MCPUIMenuController']]];this[_0x404353(0x329)][_0x404353(0x202)](_0x44f18e[_0x404353(0x2d1)])||_0x39c2f4[_0x404353(0x1c2)]([_0x44f18e[_0x404353(0x2d1)],{'useClass':_0x44f18e[_0x404353(0x1e9)]}]),_0x39c2f4[_0x404353(0x24c)](_0xa2fb4e=>this[_0x404353(0x329)][_0x404353(0x299)](_0xa2fb4e)),this[_0x404353(0x329)][_0x404353(0x259)](_0x1764fb[_0x404353(0x225)]),this[_0x404353(0x329)]['get'](_0x1764fb[_0x404353(0x2c9)]),this[_0x404353(0x329)]['get'](_0x1764fb[_0x404353(0x28a)]);}},_0x2ad66a(_0x1764fb[_0x30c379(0x307)],_0x30c379(0x1f7),_0x30c379(0x258)),_0x1764fb[_0x30c379(0x307)]=_0x3fa9a2([_0x59774c[_0x30c379(0x270)](_0x526990[_0x30c379(0x246)]),_0x17f5b7(0x1,_0x59774c['Inject'](_0x59774c[_0x30c379(0x263)])),_0x17f5b7(0x2,_0x59774c['IConfigService']),_0x17f5b7(0x3,_0x193043['IUIPartsService']),_0x17f5b7(0x4,_0x59774c[_0x30c379(0x2e2)]),_0x17f5b7(0x5,_0x59774c[_0x30c379(0x2ef)](_0x59774c[_0x30c379(0x23a)]))],_0x1764fb[_0x30c379(0x307)]),_0x1764fb[_0x30c379(0x214)]=_0x863e4f,_0x1764fb['MCPStatusDisplay']=_0x10cc74,_0x1764fb[_0x30c379(0x1a8)]=_0x25084e,_0x1764fb['enUS']=_0x4465fc,_0x1764fb[_0x30c379(0x19f)]=_0x5c54b3,Object['defineProperty'](_0x1764fb,Symbol[_0x30c379(0x291)],{'value':_0x30c379(0x306)});}));
|
package/lib/umd/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x6246(){var _0x20ae47=['Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20saved\x20successfully','1374412UwFexR','exports','Max\x20Retries','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2226JeOOJd','Saving...','3131997qoecNn','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connection\x20Failed','Invalid\x20configuration','MCP:\x20Unauthorized','API\x20Key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','12BvcSML','MCP\x20Client\x20Configuration','What\x20is\x20API\x20Key?','MCP\x20Retrying...','6140UdtJJP','Click\x20to\x20configure\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Connection\x20Failed','UniverProMcpUiCaES','Enable\x20authentication\x20for\x20secure\x20connections','Disconnected','MCP:\x20Network\x20Error','Retrying...','Failed\x20to\x20save\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Session\x20ID\x20Occupied','amd','176505mFsMzr','Enter\x20your\x20API\x20key','330GRwAAl','Click\x20to\x20connect\x20MCP','4144qPdGHt','1368XpXTBT','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','Univer\x20AI\x20Console','Connected','object','Configuration\x20Parameters:','2GjYwbd','685sOSALh','199790DeBhCK'];_0x6246=function(){return _0x20ae47;};return _0x6246();}function _0xc501(_0x1e9947,_0xff2358){var _0x6246c4=_0x6246();return _0xc501=function(_0xc501b6,_0xd209f6){_0xc501b6=_0xc501b6-0x136;var _0x566377=_0x6246c4[_0xc501b6];return _0x566377;},_0xc501(_0x1e9947,_0xff2358);}(function(_0x5dd379,_0x477edb){var _0x14e24d=_0xc501,_0xd881a3=_0x5dd379();while(!![]){try{var _0x54d502=-parseInt(_0x14e24d(0x14e))/0x1*(-parseInt(_0x14e24d(0x14c))/0x2)+parseInt(_0x14e24d(0x13f))/0x3+parseInt(_0x14e24d(0x155))/0x4+-parseInt(_0x14e24d(0x14d))/0x5*(parseInt(_0x14e24d(0x141))/0x6)+-parseInt(_0x14e24d(0x159))/0x7*(parseInt(_0x14e24d(0x143))/0x8)+parseInt(_0x14e24d(0x144))/0x9*(parseInt(_0x14e24d(0x166))/0xa)+-parseInt(_0x14e24d(0x15b))/0xb*(parseInt(_0x14e24d(0x162))/0xc);if(_0x54d502===_0x477edb)break;else _0xd881a3['push'](_0xd881a3['shift']());}catch(_0x51a49b){_0xd881a3['push'](_0xd881a3['shift']());}}}(_0x6246,0x3a3ea),function(_0x3c5d8e,_0x18f19){var _0x445b31=_0xc501;typeof exports==_0x445b31(0x14a)&&typeof module<'u'?module[_0x445b31(0x156)]=_0x18f19():typeof define=='function'&&define[_0x445b31(0x13e)]?define(_0x18f19):(_0x3c5d8e=typeof globalThis<'u'?globalThis:_0x3c5d8e||self,_0x3c5d8e[_0x445b31(0x136)]=_0x18f19());}(this,function(){'use strict';var _0x35cbe6=_0xc501;return{'mcpStatus':{'disconnected':_0x35cbe6(0x145),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x35cbe6(0x15d),'retrying':_0x35cbe6(0x165),'unknown':_0x35cbe6(0x147),'unauthorized':_0x35cbe6(0x15f),'sessionOccupied':_0x35cbe6(0x13d),'networkError':_0x35cbe6(0x139),'maxRetriesExceeded':_0x35cbe6(0x151),'clickToConnect':_0x35cbe6(0x142),'clickToConfigure':_0x35cbe6(0x167)},'mcpConfig':{'title':_0x35cbe6(0x150),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x35cbe6(0x160),'apiKeyPlaceholder':_0x35cbe6(0x140),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x35cbe6(0x137),'connectionInfo':_0x35cbe6(0x163),'mcpClientConfig':_0x35cbe6(0x163),'configInstructions':_0x35cbe6(0x13c),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x35cbe6(0x161),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x35cbe6(0x14b),'maxRetries':_0x35cbe6(0x157),'save':'Save\x20Configuration','saving':_0x35cbe6(0x15a),'note1':_0x35cbe6(0x14f),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x35cbe6(0x154),'configError':_0x35cbe6(0x13b),'apiApplyInfo':{'title':_0x35cbe6(0x164),'description':_0x35cbe6(0x153),'univerAiLabel':_0x35cbe6(0x148),'getStarted':_0x35cbe6(0x168)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x35cbe6(0x15e),'invalidApiKey':_0x35cbe6(0x15c)},'connectionStatus':{'disconnected':_0x35cbe6(0x138),'connecting':'Connecting...','connected':_0x35cbe6(0x149),'failed':_0x35cbe6(0x169),'retrying':_0x35cbe6(0x13a)},'connectionError':{'unauthorized':_0x35cbe6(0x152),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x35cbe6(0x158),'maxRetriesExceeded':_0x35cbe6(0x146)}}};}));
|