@univerjs-pro/mcp-ui 0.10.14-nightly.202511031023 → 0.10.14-nightly.202511070628
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
|
-
const
|
|
1
|
+
const _0x4cd7df=_0x1fd8;function _0x1fd8(_0x1b239b,_0x3117ac){const _0xb66044=_0xb660();return _0x1fd8=function(_0x1fd85d,_0x119b21){_0x1fd85d=_0x1fd85d-0x143;let _0xd343d2=_0xb66044[_0x1fd85d];return _0xd343d2;},_0x1fd8(_0x1b239b,_0x3117ac);}(function(_0xf6ad7f,_0x4cc159){const _0x5a57d8=_0x1fd8,_0x1706b1=_0xf6ad7f();while(!![]){try{const _0x2a8364=parseInt(_0x5a57d8(0x15c))/0x1*(parseInt(_0x5a57d8(0x158))/0x2)+-parseInt(_0x5a57d8(0x174))/0x3+-parseInt(_0x5a57d8(0x16c))/0x4*(-parseInt(_0x5a57d8(0x175))/0x5)+parseInt(_0x5a57d8(0x16f))/0x6*(-parseInt(_0x5a57d8(0x16d))/0x7)+parseInt(_0x5a57d8(0x16a))/0x8*(parseInt(_0x5a57d8(0x162))/0x9)+-parseInt(_0x5a57d8(0x164))/0xa*(parseInt(_0x5a57d8(0x145))/0xb)+-parseInt(_0x5a57d8(0x14a))/0xc;if(_0x2a8364===_0x4cc159)break;else _0x1706b1['push'](_0x1706b1['shift']());}catch(_0x9f8e41){_0x1706b1['push'](_0x1706b1['shift']());}}}(_0xb660,0xec900));function _0xb660(){const _0x2665e3=['Invalid\x20configuration','Session\x20ID','MCP\x20Connected','Click\x20to\x20connect\x20MCP','MCP\x20Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','92brWlJI','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','28774oFBxDM','Enter\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key','MCP\x20Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','9EgzWKK','Univer\x20AI\x20Console','430DtCONn','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20Authentication','Saving...','10799296dEQcAu','Retrying...','1220RtLGTH','259PSOUDY','Get\x20your\x20API\x20key\x20in\x20seconds','66102KBTDhp','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connecting...','API\x20key\x20is\x20required','MCP:\x20Network\x20Error','1235727QkrZiG','15840bYOiLC','MCP:\x20Unauthorized','Click\x20to\x20configure\x20MCP','Configuration\x20saved\x20successfully','Connecting...','Configuration\x20Parameters:','Connection\x20Failed','210485rEvjCL','Max\x20Retries','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Client\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','12341436lvJDSm','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.'];_0xb660=function(){return _0x2665e3;};return _0xb660();}const e={'mcpStatus':{'disconnected':_0x4cd7df(0x160),'connecting':_0x4cd7df(0x171),'connected':_0x4cd7df(0x154),'failed':_0x4cd7df(0x156),'retrying':_0x4cd7df(0x150),'unknown':_0x4cd7df(0x15b),'unauthorized':_0x4cd7df(0x176),'sessionOccupied':_0x4cd7df(0x159),'networkError':_0x4cd7df(0x173),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x4cd7df(0x155),'clickToConfigure':_0x4cd7df(0x177)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4cd7df(0x14f),'apiKey':_0x4cd7df(0x15f),'apiKeyPlaceholder':_0x4cd7df(0x15d),'apiKeyHint':_0x4cd7df(0x14d),'enableAuth':_0x4cd7df(0x168),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x4cd7df(0x148),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4cd7df(0x15a),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x4cd7df(0x157),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4cd7df(0x149),'sessionId':_0x4cd7df(0x153),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x4cd7df(0x170),'configParameters':_0x4cd7df(0x143),'maxRetries':_0x4cd7df(0x146),'save':'Save\x20Configuration','saving':_0x4cd7df(0x169),'note1':_0x4cd7df(0x15e),'note2':_0x4cd7df(0x167),'configSaved':_0x4cd7df(0x178),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x4cd7df(0x14c),'description':_0x4cd7df(0x151),'univerAiLabel':_0x4cd7df(0x163),'getStarted':_0x4cd7df(0x16e)},'validation':{'apiKeyRequired':_0x4cd7df(0x172),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x4cd7df(0x152),'invalidApiKey':_0x4cd7df(0x165)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4cd7df(0x179),'connected':_0x4cd7df(0x14e),'failed':_0x4cd7df(0x144),'retrying':_0x4cd7df(0x16b)},'connectionError':{'unauthorized':_0x4cd7df(0x147),'sessionOccupied':_0x4cd7df(0x14b),'networkError':_0x4cd7df(0x161),'maxRetriesExceeded':_0x4cd7df(0x166)}}},n=e;export{n as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x4632(){const _0x251779=['1638376HkkHex','Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','53532xmiIiN','26112nqNcpf','Configuration\x20Parameters:','Retrying...','MCP\x20Configuration','Invalid\x20configuration','Configuration\x20saved\x20successfully','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Saving...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections','9DdOsyd','Failed\x20to\x20save\x20configuration','MCP\x20Connected','Session\x20ID','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enter\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','3597jBKxAg','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','1788528NrAWIW','Connection\x20Failed','1UyvFAZ','MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','5qGDLns','4215396rCnaJl','API\x20Key','3553068rHbXxQ','Max\x20Retries','MCP:\x20Network\x20Error','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Univer\x20AI\x20Console','MCP\x20Retrying...','Connecting...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','105FPdYYh','Disconnected','6356140qSrGRm','Enable\x20Authentication'];_0x4632=function(){return _0x251779;};return _0x4632();}function _0xde82(_0x538482,_0x1ac483){const _0x4632f2=_0x4632();return _0xde82=function(_0xde82c0,_0x58b361){_0xde82c0=_0xde82c0-0x171;let _0x5a157a=_0x4632f2[_0xde82c0];return _0x5a157a;},_0xde82(_0x538482,_0x1ac483);}const _0x172c7c=_0xde82;(function(_0x3fedea,_0x17b53b){const _0x1cbae7=_0xde82,_0x407d58=_0x3fedea();while(!![]){try{const _0x34c600=parseInt(_0x1cbae7(0x19f))/0x1*(-parseInt(_0x1cbae7(0x186))/0x2)+parseInt(_0x1cbae7(0x19d))/0x3+-parseInt(_0x1cbae7(0x179))/0x4*(parseInt(_0x1cbae7(0x176))/0x5)+parseInt(_0x1cbae7(0x177))/0x6+parseInt(_0x1cbae7(0x182))/0x7*(parseInt(_0x1cbae7(0x18a))/0x8)+-parseInt(_0x1cbae7(0x194))/0x9*(parseInt(_0x1cbae7(0x184))/0xa)+-parseInt(_0x1cbae7(0x19b))/0xb*(-parseInt(_0x1cbae7(0x189))/0xc);if(_0x34c600===_0x17b53b)break;else _0x407d58['push'](_0x407d58['shift']());}catch(_0x6e49e5){_0x407d58['push'](_0x407d58['shift']());}}}(_0x4632,0x71214));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x172c7c(0x196),'failed':'MCP\x20Connection\x20Failed','retrying':_0x172c7c(0x17e),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x172c7c(0x17b),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x172c7c(0x19a)},'mcpConfig':{'title':_0x172c7c(0x18d),'description':_0x172c7c(0x174),'apiKey':_0x172c7c(0x178),'apiKeyPlaceholder':_0x172c7c(0x199),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x172c7c(0x185),'enableAuthHint':_0x172c7c(0x193),'connectionInfo':_0x172c7c(0x1a0),'mcpClientConfig':_0x172c7c(0x1a0),'configInstructions':_0x172c7c(0x192),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x172c7c(0x17c),'configStep3':_0x172c7c(0x198),'sessionId':_0x172c7c(0x197),'sessionIdDescription':_0x172c7c(0x190),'authorizationDescription':_0x172c7c(0x171),'configParameters':_0x172c7c(0x18b),'maxRetries':_0x172c7c(0x17a),'save':'Save\x20Configuration','saving':_0x172c7c(0x191),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x172c7c(0x188),'configSaved':_0x172c7c(0x18f),'configError':_0x172c7c(0x195),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x172c7c(0x17d),'getStarted':_0x172c7c(0x173)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x172c7c(0x181),'invalidConfig':_0x172c7c(0x18e),'invalidApiKey':_0x172c7c(0x175)},'connectionStatus':{'disconnected':_0x172c7c(0x183),'connecting':_0x172c7c(0x17f),'connected':_0x172c7c(0x187),'failed':_0x172c7c(0x19e),'retrying':_0x172c7c(0x18c)},'connectionError':{'unauthorized':_0x172c7c(0x19c),'sessionOccupied':_0x172c7c(0x180),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x172c7c(0x172)}}},n=e;export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x10b924=_0x13cb;(function(_0x535e5f,_0x4304e3){const _0x85af2a=_0x13cb,_0x4b9568=_0x535e5f();while(!![]){try{const _0x185e6=-parseInt(_0x85af2a(0x11c))/0x1+parseInt(_0x85af2a(0x128))/0x2*(parseInt(_0x85af2a(0x123))/0x3)+parseInt(_0x85af2a(0x122))/0x4*(-parseInt(_0x85af2a(0x145))/0x5)+parseInt(_0x85af2a(0x115))/0x6*(parseInt(_0x85af2a(0x133))/0x7)+-parseInt(_0x85af2a(0x13b))/0x8+parseInt(_0x85af2a(0x140))/0x9+-parseInt(_0x85af2a(0x119))/0xa*(-parseInt(_0x85af2a(0x11a))/0xb);if(_0x185e6===_0x4304e3)break;else _0x4b9568['push'](_0x4b9568['shift']());}catch(_0x17ec46){_0x4b9568['push'](_0x4b9568['shift']());}}}(_0x3875,0xdf058));function _0x3875(){const _0x390538=['14539160UYAWDE','保存配置','MCP:\x20超出最大重试次数','保存中...','配置参数:','14202729NNFIaO','MCP:\x20网络错误','MCP\x20配置','配置更改将立即生效','配置无效','5ABCYGA','MCP\x20重连中...','配置步骤:','582288nTRcBt','MCP:\x20未授权','将配置添加到您的\x20MCP\x20客户端设置文件中','重启您的\x20MCP\x20客户端以使配置生效','290rtcnAG','1277111mOnSEP','最大重试次数','1712815hmXneR','MCP\x20已断开','会话ID','MCP\x20连接失败','会话\x20ID\x20已被占用,请稍后再试','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','6701668WpVMun','3VcpYlc','您的\x20API\x20密钥安全存储在本地存储中','您的\x20API\x20密钥将在此浏览器中本地存储','将以下配置添加到您的\x20MCP\x20客户端设置中:','点击配置\x20MCP','795458vRpXYo','Univer\x20AI\x20控制台','启用身份验证','复制以下\x20JSON\x20配置','配置保存失败','权限验证失败,请检查您的\x20API\x20密钥','MCP\x20连接中...','API\x20密钥不能为空','MCP:\x20会话\x20ID\x20已被占用','连接中...','连接失败','56ugiSXr','MCP\x20客户端配置','已连接','几秒钟内获取您的\x20API\x20密钥','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','配置保存成功','MCP\x20状态未知','MCP\x20已连接'];_0x3875=function(){return _0x390538;};return _0x3875();}const e={'mcpStatus':{'disconnected':_0x10b924(0x11d),'connecting':_0x10b924(0x12e),'connected':_0x10b924(0x13a),'failed':_0x10b924(0x11f),'retrying':_0x10b924(0x113),'unknown':_0x10b924(0x139),'unauthorized':_0x10b924(0x116),'sessionOccupied':_0x10b924(0x130),'networkError':_0x10b924(0x141),'maxRetriesExceeded':_0x10b924(0x13d),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x10b924(0x127)},'mcpConfig':{'title':_0x10b924(0x142),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x10b924(0x125),'enableAuth':_0x10b924(0x12a),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x10b924(0x134),'mcpClientConfig':_0x10b924(0x134),'configInstructions':_0x10b924(0x126),'configStepTitle':_0x10b924(0x114),'configStep1':_0x10b924(0x12b),'configStep2':_0x10b924(0x117),'configStep3':_0x10b924(0x118),'sessionId':_0x10b924(0x11e),'sessionIdDescription':_0x10b924(0x121),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x10b924(0x13f),'maxRetries':_0x10b924(0x11b),'save':_0x10b924(0x13c),'saving':_0x10b924(0x13e),'note1':_0x10b924(0x143),'note2':_0x10b924(0x124),'configSaved':_0x10b924(0x138),'configError':_0x10b924(0x12c),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x10b924(0x137),'univerAiLabel':_0x10b924(0x129),'getStarted':_0x10b924(0x136)},'validation':{'apiKeyRequired':_0x10b924(0x12f),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x10b924(0x144),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x10b924(0x131),'connected':_0x10b924(0x135),'failed':_0x10b924(0x132),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x10b924(0x12d),'sessionOccupied':_0x10b924(0x120),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};function _0x13cb(_0x8f0cd5,_0xb9f544){const _0x387529=_0x3875();return _0x13cb=function(_0x13cbe7,_0x37cf2c){_0x13cbe7=_0x13cbe7-0x113;let _0x61a206=_0x387529[_0x13cbe7];return _0x61a206;},_0x13cb(_0x8f0cd5,_0xb9f544);}export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x408d(){const _0x3a5b83=['API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20saved\x20successfully','2386645OqSHZy','Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connecting...','MCP\x20Disconnected','Click\x20to\x20configure\x20MCP','964554zgMdJE','Copy\x20the\x20JSON\x20configuration\x20below','Retrying...','1926UkgxGS','MCP:\x20Max\x20Retries\x20Exceeded','39970dtlpEq','14021IuouvD','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','2874240ScNjJU','4rVpwqF','MCP\x20Client\x20Configuration','API\x20key\x20is\x20required','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','693HcuYaZ','Disconnected','Save\x20Configuration','5965984HLFwaz','Saving...','MCP:\x20Unauthorized','MCP\x20Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session\x20ID','Click\x20to\x20connect\x20MCP','374445WDUroV','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20Parameters:','Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20Steps:','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','MCP\x20Retrying...','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage'];_0x408d=function(){return _0x3a5b83;};return _0x408d();}const _0x465d2f=_0x158c;function _0x158c(_0x5a890e,_0x2e519e){const _0x408dc7=_0x408d();return _0x158c=function(_0x158cbb,_0x1076d3){_0x158cbb=_0x158cbb-0xf2;let _0xdfd89f=_0x408dc7[_0x158cbb];return _0xdfd89f;},_0x158c(_0x5a890e,_0x2e519e);}(function(_0x18fd8a,_0x43312d){const _0x47b35e=_0x158c,_0x4531c6=_0x18fd8a();while(!![]){try{const _0x8580b2=-parseInt(_0x47b35e(0xfe))/0x1*(-parseInt(_0x47b35e(0x11e))/0x2)+parseInt(_0x47b35e(0x115))/0x3+-parseInt(_0x47b35e(0xf5))/0x4+parseInt(_0x47b35e(0x10e))/0x5+parseInt(_0x47b35e(0x118))/0x6*(parseInt(_0x47b35e(0x11b))/0x7)+parseInt(_0x47b35e(0x11d))/0x8+parseInt(_0x47b35e(0xf2))/0x9*(-parseInt(_0x47b35e(0x11a))/0xa);if(_0x8580b2===_0x43312d)break;else _0x4531c6['push'](_0x4531c6['shift']());}catch(_0x186be2){_0x4531c6['push'](_0x4531c6['shift']());}}}(_0x408d,0xb747b));const e={'mcpStatus':{'disconnected':_0x465d2f(0x113),'connecting':_0x465d2f(0x112),'connected':_0x465d2f(0xf8),'failed':'MCP\x20Connection\x20Failed','retrying':_0x465d2f(0x107),'unknown':_0x465d2f(0x105),'unauthorized':_0x465d2f(0xf7),'sessionOccupied':_0x465d2f(0x103),'networkError':_0x465d2f(0xfa),'maxRetriesExceeded':_0x465d2f(0x119),'clickToConnect':_0x465d2f(0xfd),'clickToConfigure':_0x465d2f(0x114)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x465d2f(0xf9),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x465d2f(0x106),'apiKeyHint':_0x465d2f(0x109),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x465d2f(0x11f),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x465d2f(0x11c),'configStepTitle':_0x465d2f(0x104),'configStep1':_0x465d2f(0x116),'configStep2':_0x465d2f(0x110),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x465d2f(0xfc),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x465d2f(0x10c),'configParameters':_0x465d2f(0x101),'maxRetries':_0x465d2f(0x108),'save':_0x465d2f(0xf4),'saving':_0x465d2f(0xf6),'note1':_0x465d2f(0xfb),'note2':_0x465d2f(0x10b),'configSaved':_0x465d2f(0x10d),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x465d2f(0x100)},'validation':{'apiKeyRequired':_0x465d2f(0x120),'apiKeyTooShort':_0x465d2f(0x111),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x465d2f(0xff)},'connectionStatus':{'disconnected':_0x465d2f(0xf3),'connecting':_0x465d2f(0x10f),'connected':_0x465d2f(0x10a),'failed':_0x465d2f(0x102),'retrying':_0x465d2f(0x117)},'connectionError':{'unauthorized':_0x465d2f(0x121),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x41cd(_0x36b826,_0x1177f9){const _0x566185=_0x5661();return _0x41cd=function(_0x41cdc0,_0x23d1cd){_0x41cdc0=_0x41cdc0-0x1bb;let _0x5190ae=_0x566185[_0x41cdc0];return _0x5190ae;},_0x41cd(_0x36b826,_0x1177f9);}(function(_0x1474b2,_0x299805){const _0x1b616c=_0x41cd,_0x27b8f3=_0x1474b2();while(!![]){try{const _0x5f02dc=-parseInt(_0x1b616c(0x21b))/0x1*(-parseInt(_0x1b616c(0x1f5))/0x2)+parseInt(_0x1b616c(0x26e))/0x3*(parseInt(_0x1b616c(0x2c4))/0x4)+parseInt(_0x1b616c(0x335))/0x5*(parseInt(_0x1b616c(0x327))/0x6)+parseInt(_0x1b616c(0x271))/0x7+parseInt(_0x1b616c(0x2be))/0x8+-parseInt(_0x1b616c(0x263))/0x9+-parseInt(_0x1b616c(0x1ce))/0xa;if(_0x5f02dc===_0x299805)break;else _0x27b8f3['push'](_0x27b8f3['shift']());}catch(_0x49c84f){_0x27b8f3['push'](_0x27b8f3['shift']());}}}(_0x5661,0x4159a),function(_0x346829,_0x34e7e6){const _0x15ddee=_0x41cd;typeof exports=='object'&&typeof module<'u'?_0x34e7e6(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==_0x15ddee(0x32e)&&define[_0x15ddee(0x315)]?define([_0x15ddee(0x216),_0x15ddee(0x2bf),_0x15ddee(0x26c),_0x15ddee(0x34e),_0x15ddee(0x316),_0x15ddee(0x2f6),_0x15ddee(0x257),'react',_0x15ddee(0x236)],_0x34e7e6):(_0x346829=typeof globalThis<'u'?globalThis:_0x346829||self,_0x34e7e6(_0x346829[_0x15ddee(0x2d8)]={},_0x346829['UniverCore'],_0x346829[_0x15ddee(0x2c5)],_0x346829[_0x15ddee(0x1f2)],_0x346829[_0x15ddee(0x23f)],_0x346829[_0x15ddee(0x2b6)],_0x346829[_0x15ddee(0x257)],_0x346829[_0x15ddee(0x2c5)],_0x346829['UniverNetwork']));}(this,function(_0x5f51a7,_0x26d949,_0x38c194,_0x5a7ab6,_0x4e3d9d,_0x3a9868,_0x51cfdc,_0x1db0a6,_0x288fc0){'use strict';const _0x461305=_0x41cd;var _0x98c210=Object['defineProperty'],_0x786bf8=(_0x136824,_0x7234d7,_0x27a0f2)=>_0x7234d7 in _0x136824?_0x98c210(_0x136824,_0x7234d7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27a0f2}):_0x136824[_0x7234d7]=_0x27a0f2,_0x4fdf38=(_0x44fe8a,_0x4826ee,_0x35b1fc)=>_0x786bf8(_0x44fe8a,typeof _0x4826ee!=_0x461305(0x2d5)?_0x4826ee+'':_0x4826ee,_0x35b1fc);function _0x29ff7d({ref:_0x2b01fd,..._0x537d56}){const _0x41b2ae=_0x461305,{icon:_0x3531a1,id:_0x1e6762,className:_0x3145d4,extend:_0x3aeacf,..._0x385f8d}=_0x537d56,_0x40adf6=(_0x41b2ae(0x1ef)+_0x1e6762+'\x20'+(_0x3145d4||''))[_0x41b2ae(0x20b)](),_0x233e7e=_0x1db0a6['useRef']('_'+_0x2257e4());return _0x9ec2e4(_0x3531a1,''+_0x1e6762,{'defIds':_0x3531a1[_0x41b2ae(0x226)],'idSuffix':_0x233e7e[_0x41b2ae(0x1d3)]},{'ref':_0x2b01fd,'className':_0x40adf6,..._0x385f8d},_0x3aeacf);}function _0x9ec2e4(_0x2fc4c7,_0x2527a5,_0x32fd91,_0x56ce7f,_0x37e33c){const _0x40261f=_0x461305;return _0x1db0a6[_0x40261f(0x324)](_0x2fc4c7['tag'],{'key':_0x2527a5,..._0x188eec(_0x2fc4c7,_0x32fd91,_0x37e33c),..._0x56ce7f},(_0x3189e6(_0x2fc4c7,_0x32fd91)[_0x40261f(0x309)]||[])[_0x40261f(0x281)]((_0x5e56ca,_0x4a4224)=>_0x9ec2e4(_0x5e56ca,_0x2527a5+'-'+_0x2fc4c7[_0x40261f(0x213)]+'-'+_0x4a4224,_0x32fd91,void 0x0,_0x37e33c)));}function _0x188eec(_0x4ed7a3,_0x34911a,_0x35a415){const _0x4491dd=_0x461305,_0x157b0b={..._0x4ed7a3[_0x4491dd(0x278)]};_0x35a415!=null&&_0x35a415['colorChannel1']&&_0x157b0b[_0x4491dd(0x2a9)]==='colorChannel1'&&(_0x157b0b['fill']=_0x35a415['colorChannel1']),_0x4ed7a3['tag']==='mask'&&_0x157b0b['id']&&(_0x157b0b['id']=_0x157b0b['id']+_0x34911a[_0x4491dd(0x1d6)]),Object['entries'](_0x157b0b)[_0x4491dd(0x1e7)](([_0x3d909b,_0x399d23])=>{const _0x389c4b=_0x4491dd;_0x3d909b===_0x389c4b(0x29a)&&typeof _0x399d23==_0x389c4b(0x307)&&(_0x157b0b[_0x3d909b]=_0x399d23[_0x389c4b(0x341)](/url\(#(.*)\)/,_0x389c4b(0x242)+_0x34911a[_0x389c4b(0x1d6)]+')'));});const {defIds:_0x2b96d3}=_0x34911a;return!_0x2b96d3||_0x2b96d3[_0x4491dd(0x1f9)]===0x0||(_0x4ed7a3[_0x4491dd(0x213)]==='use'&&_0x157b0b[_0x4491dd(0x34c)]&&(_0x157b0b[_0x4491dd(0x34c)]=_0x157b0b[_0x4491dd(0x34c)]+_0x34911a[_0x4491dd(0x1d6)]),Object[_0x4491dd(0x347)](_0x157b0b)[_0x4491dd(0x1e7)](([_0x9b4bcf,_0x37aa7a])=>{const _0x2ae050=_0x4491dd;typeof _0x37aa7a==_0x2ae050(0x307)&&(_0x157b0b[_0x9b4bcf]=_0x37aa7a[_0x2ae050(0x341)](/url\(#(.*)\)/,_0x2ae050(0x242)+_0x34911a[_0x2ae050(0x1d6)]+')'));})),_0x157b0b;}function _0x3189e6(_0x427915,_0x4a8260){const _0x658074=_0x461305;var _0x19716e;const {defIds:_0x3de53f}=_0x4a8260;return!_0x3de53f||_0x3de53f[_0x658074(0x1f9)]===0x0?_0x427915:_0x427915[_0x658074(0x213)]===_0x658074(0x1be)&&((_0x19716e=_0x427915[_0x658074(0x309)])!=null&&_0x19716e['length'])?{..._0x427915,'children':_0x427915[_0x658074(0x309)][_0x658074(0x281)](_0x31d728=>typeof _0x31d728['attrs']['id']=='string'&&_0x3de53f&&_0x3de53f[_0x658074(0x2c7)](_0x31d728[_0x658074(0x278)]['id'])?{..._0x31d728,'attrs':{..._0x31d728[_0x658074(0x278)],'id':_0x31d728['attrs']['id']+_0x4a8260[_0x658074(0x1d6)]}}:_0x31d728)}:_0x427915;}function _0x2257e4(){const _0x1e54e8=_0x461305;return Math[_0x1e54e8(0x1fd)]()[_0x1e54e8(0x25c)](0x24)[_0x1e54e8(0x1db)](0x2,0x8);}_0x29ff7d[_0x461305(0x276)]=_0x461305(0x288);const _0x2041f5={'tag':'svg','attrs':{'xmlns':_0x461305(0x310),'fill':_0x461305(0x282),'viewBox':_0x461305(0x1c4),'width':'1em','height':_0x461305(0x2f8)},'children':[{'tag':'path','attrs':{'fill':_0x461305(0x2fd),'d':_0x461305(0x319),'fillRule':_0x461305(0x2ff),'clipRule':_0x461305(0x2ff)}}]},_0x1fca24=_0x1db0a6[_0x461305(0x225)](function(_0x2a7205,_0xe41028){const _0x3ea4ff=_0x461305;return _0x1db0a6['createElement'](_0x29ff7d,Object['assign']({},_0x2a7205,{'id':_0x3ea4ff(0x29e),'ref':_0xe41028,'icon':_0x2041f5}));});_0x1fca24[_0x461305(0x276)]=_0x461305(0x286);const _0x35abb4={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x461305(0x282),'viewBox':_0x461305(0x1c4),'width':_0x461305(0x2f8),'height':_0x461305(0x2f8)},'children':[{'tag':_0x461305(0x1e4),'attrs':{'fill':'currentColor','d':_0x461305(0x1c9)}}]},_0x15e3bf=_0x1db0a6[_0x461305(0x225)](function(_0x1339d2,_0x322f6d){const _0x344878=_0x461305;return _0x1db0a6[_0x344878(0x324)](_0x29ff7d,Object[_0x344878(0x27e)]({},_0x1339d2,{'id':_0x344878(0x23a),'ref':_0x322f6d,'icon':_0x35abb4}));});_0x15e3bf['displayName']='CloseIcon';const _0x5ba1b6={'tag':_0x461305(0x215),'attrs':{'xmlns':_0x461305(0x310),'fill':_0x461305(0x282),'viewBox':_0x461305(0x1c4),'width':_0x461305(0x2f8),'height':_0x461305(0x2f8)},'children':[{'tag':_0x461305(0x1e4),'attrs':{'fill':_0x461305(0x2fd),'d':_0x461305(0x2d0)}},{'tag':_0x461305(0x1e4),'attrs':{'fill':_0x461305(0x2fd),'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':_0x461305(0x1e4),'attrs':{'fill':'currentColor','d':_0x461305(0x273),'fillRule':_0x461305(0x2ff),'clipRule':_0x461305(0x2ff)}}]},_0xe180e6=_0x1db0a6['forwardRef'](function(_0x5d7891,_0x59029b){const _0x524159=_0x461305;return _0x1db0a6[_0x524159(0x324)](_0x29ff7d,Object[_0x524159(0x27e)]({},_0x5d7891,{'id':'help-icon','ref':_0x59029b,'icon':_0x5ba1b6}));});_0xe180e6['displayName']=_0x461305(0x223);const _0x3cfccb={'tag':_0x461305(0x215),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x461305(0x282),'viewBox':_0x461305(0x1c4),'width':_0x461305(0x2f8),'height':_0x461305(0x2f8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x461305(0x2fd),'d':_0x461305(0x338),'strokeLinecap':_0x461305(0x22b),'strokeLinejoin':_0x461305(0x22b),'strokeWidth':1.2}}]},{'tag':_0x461305(0x1be),'attrs':{},'children':[{'tag':_0x461305(0x33a),'attrs':{'id':_0x461305(0x30a)},'children':[{'tag':'path','attrs':{'fill':_0x461305(0x33d),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x461305(0x30a)]},_0x57f1c1=_0x1db0a6[_0x461305(0x225)](function(_0x31c88d,_0x12a70e){const _0xa334f8=_0x461305;return _0x1db0a6[_0xa334f8(0x324)](_0x29ff7d,Object[_0xa334f8(0x27e)]({},_0x31c88d,{'id':_0xa334f8(0x1de),'ref':_0x12a70e,'icon':_0x3cfccb}));});_0x57f1c1[_0x461305(0x276)]=_0x461305(0x1d0);const _0x35139a={'tag':_0x461305(0x215),'attrs':{'xmlns':_0x461305(0x310),'fill':_0x461305(0x282),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x461305(0x2f8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x461305(0x1e4),'attrs':{'stroke':_0x461305(0x2fd),'d':_0x461305(0x1f7),'strokeLinecap':'round','strokeLinejoin':_0x461305(0x22b),'strokeWidth':1.2}}]},{'tag':_0x461305(0x1be),'attrs':{},'children':[{'tag':_0x461305(0x33a),'attrs':{'id':_0x461305(0x235)},'children':[{'tag':_0x461305(0x1e4),'attrs':{'fill':_0x461305(0x33d),'d':_0x461305(0x270),'transform':_0x461305(0x314)}}]}]}],'defIds':[_0x461305(0x235)]},_0x4a410a=_0x1db0a6['forwardRef'](function(_0x3d8ca7,_0x397240){const _0x54e1eb=_0x461305;return _0x1db0a6[_0x54e1eb(0x324)](_0x29ff7d,Object[_0x54e1eb(0x27e)]({},_0x3d8ca7,{'id':_0x54e1eb(0x26a),'ref':_0x397240,'icon':_0x35139a}));});_0x4a410a[_0x461305(0x276)]=_0x461305(0x27c);function _0x3d5b84(_0x460a0b){const _0x209c59=_0x461305;var _0x27e513,_0x398837;const {mcpCoreConfig:_0x24aa48,onSave:_0x35a51e,loading:_0x5a6ab4=!0x1,config:_0x3e6979,connectionStatus$:_0x27ce6d,connectionError$:_0x5324fb,currentApiKey$:_0x431dc8,currentSessionId$:_0x57638f}=_0x460a0b,_0x156c82=_0x3a9868[_0x209c59(0x339)](_0x26d949[_0x209c59(0x1d5)]),_0x4666e2=_0x3a9868[_0x209c59(0x253)](_0x27ce6d,_0x5a7ab6[_0x209c59(0x2fb)][_0x209c59(0x219)]),_0x33e2e1=_0x3a9868['useObservable'](_0x5324fb,_0x5a7ab6['MCPConnectionError'][_0x209c59(0x20e)]),_0x5ba41d=_0x3a9868['useObservable'](_0x57638f,''),_0x2e0198=_0x3a9868[_0x209c59(0x253)](_0x431dc8,''),[_0x223dd3,_0x15d814]=_0x1db0a6['useState'](_0x2e0198||''),_0x37ae18=!0x0,_0x157474=_0x3e6979[_0x209c59(0x24e)]&&_0x24aa48[_0x209c59(0x2a4)]&&(_0x24aa48[_0x209c59(0x2a4)][_0x209c59(0x2c7)](_0x209c59(0x1cd))||_0x24aa48[_0x209c59(0x2a4)][_0x209c59(0x2c7)](_0x209c59(0x31f))),_0x320988=(_0x27e513=_0x24aa48[_0x209c59(0x2a4)])==null?void 0x0:_0x27e513[_0x209c59(0x2c7)](_0x209c59(0x1cd)),_0x2a3857=(_0x398837=_0x24aa48[_0x209c59(0x2a4)])==null?void 0x0:_0x398837[_0x209c59(0x2c7)](_0x209c59(0x31f)),_0x27481d=_0x320988?_0x209c59(0x2f5):_0x209c59(0x29c),_0x48bdb8=_0x3e6979['showDeveloperTools']&&(_0x320988||_0x2a3857),[_0x5714bc,_0x1de6c9]=_0x1db0a6['useState'](!_0x223dd3[_0x209c59(0x20b)]()),_0x30411a=(_0x57e1c6,_0x38892f)=>{const _0x2ce227=_0x209c59;if(_0x38892f===_0x5a7ab6[_0x2ce227(0x1d8)][_0x2ce227(0x204)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x57e1c6){case _0x5a7ab6[_0x2ce227(0x2fb)][_0x2ce227(0x2f2)]:return _0x2ce227(0x305);case _0x5a7ab6[_0x2ce227(0x2fb)][_0x2ce227(0x331)]:case _0x5a7ab6[_0x2ce227(0x2fb)][_0x2ce227(0x33b)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x5a7ab6['MCPConnectionStatus']['FAILED']:return _0x2ce227(0x32f);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x1ed1b4=(_0x43510e,_0x225306)=>{const _0xc7f05=_0x209c59;if(_0x225306===_0x5a7ab6[_0xc7f05(0x1d8)][_0xc7f05(0x204)])return _0xc7f05(0x2f3);switch(_0x43510e){case _0x5a7ab6['MCPConnectionStatus']['CONNECTED']:return _0xc7f05(0x240);case _0x5a7ab6[_0xc7f05(0x2fb)][_0xc7f05(0x331)]:case _0x5a7ab6[_0xc7f05(0x2fb)]['RETRYING']:return _0xc7f05(0x251);case _0x5a7ab6[_0xc7f05(0x2fb)][_0xc7f05(0x24f)]:return'univer-bg-red-500';default:return'univer-bg-gray-500';}},_0x4b1d1d=_0x54c4c8=>{const _0x182c8f=_0x209c59;switch(_0x54c4c8){case _0x5a7ab6['MCPConnectionStatus'][_0x182c8f(0x2f2)]:return _0x156c82['t'](_0x182c8f(0x2de));case _0x5a7ab6[_0x182c8f(0x2fb)][_0x182c8f(0x331)]:return _0x156c82['t']('mcpConfig.connectionStatus.connecting');case _0x5a7ab6[_0x182c8f(0x2fb)][_0x182c8f(0x24f)]:return _0x156c82['t'](_0x182c8f(0x22c));case _0x5a7ab6[_0x182c8f(0x2fb)][_0x182c8f(0x33b)]:return _0x156c82['t']('mcpConfig.connectionStatus.retrying');default:return _0x156c82['t'](_0x182c8f(0x2db));}},_0x20968f=_0x3ced72=>{const _0x414ac8=_0x209c59;switch(_0x3ced72){case _0x5a7ab6[_0x414ac8(0x1d8)]['UNAUTHORIZED']:return _0x156c82['t'](_0x414ac8(0x254));case _0x5a7ab6['MCPConnectionError'][_0x414ac8(0x349)]:return _0x156c82['t'](_0x414ac8(0x217));case _0x5a7ab6[_0x414ac8(0x1d8)][_0x414ac8(0x2ab)]:return _0x156c82['t'](_0x414ac8(0x22a));case _0x5a7ab6[_0x414ac8(0x1d8)][_0x414ac8(0x265)]:return _0x156c82['t'](_0x414ac8(0x2da));default:return'';}},_0x2578e3=_0x1db0a6[_0x209c59(0x348)](()=>{const _0x265828=_0x209c59,_0x201e1e={..._0x24aa48,'apiKey':_0x223dd3[_0x265828(0x20b)](),'enableAuth':_0x37ae18};_0x35a51e(_0x201e1e);},[_0x24aa48,_0x223dd3,_0x37ae18,_0x35a51e]),_0x246a6f=_0x223dd3['trim']()[_0x209c59(0x1f9)]>0x0;return _0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x1f8),'children':_0x38c194[_0x209c59(0x2d3)]('div',{'className':_0x209c59(0x28d),'children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x1e1),'children':_0x38c194['jsx'](_0x209c59(0x29d),{'className':'univer-text-white','children':'⚙'})}),_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'children':_0x38c194[_0x209c59(0x31c)]('p',{'className':_0x209c59(0x21c),'children':_0x156c82['t'](_0x209c59(0x1e5))})})]})}),_0x38c194[_0x209c59(0x2d3)]('div',{'className':_0x209c59(0x31e),'children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x4e3d9d['clsx'](_0x209c59(0x26d),_0x30411a(_0x4666e2,_0x33e2e1)),'children':_0x38c194['jsxs'](_0x209c59(0x2f4),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x38c194[_0x209c59(0x31c)]('div',{'className':_0x4e3d9d[_0x209c59(0x221)](_0x209c59(0x1c5),_0x1ed1b4(_0x4666e2,_0x33e2e1))}),_0x38c194[_0x209c59(0x31c)]('span',{'className':_0x209c59(0x33c),'children':_0x4b1d1d(_0x4666e2)})]})}),_0x33e2e1!==_0x5a7ab6[_0x209c59(0x1d8)][_0x209c59(0x20e)]&&(_0x4666e2===_0x5a7ab6[_0x209c59(0x2fb)]['FAILED']||_0x33e2e1===_0x5a7ab6[_0x209c59(0x1d8)][_0x209c59(0x204)])&&_0x38c194['jsx'](_0x209c59(0x2f4),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x38c194['jsxs'](_0x209c59(0x2f4),{'className':_0x209c59(0x328),'children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x29d),{'className':_0x209c59(0x201),'children':'⚠️'}),_0x38c194[_0x209c59(0x31c)]('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x20968f(_0x33e2e1)})]})})]}),_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x2b9),'children':_0x38c194['jsxs'](_0x209c59(0x2f4),{'className':_0x209c59(0x33f),'children':[_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x260),'children':[_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x231),{'className':_0x209c59(0x26b),'children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x29d),{'children':'🔑'}),'\x20',_0x156c82['t'](_0x209c59(0x24d)),_0x38c194[_0x209c59(0x31c)]('span',{'className':_0x209c59(0x2c8),'children':'*'}),_0x157474&&_0x38c194[_0x209c59(0x31c)]('a',{'className':_0x209c59(0x30b),'title':_0x156c82['t'](_0x209c59(0x230)),'role':_0x209c59(0x320),'onClick':()=>_0x1de6c9(!0x0),'children':_0x38c194[_0x209c59(0x31c)](_0xe180e6,{})})]}),_0x38c194[_0x209c59(0x31c)](_0x4e3d9d[_0x209c59(0x2c0)],{'type':_0x209c59(0x2bc),'placeholder':_0x156c82['t'](_0x209c59(0x1df)),'value':_0x223dd3,'disabled':_0x5a6ab4,'autoComplete':_0x209c59(0x34a),'onChange':_0x15d814}),_0x38c194[_0x209c59(0x31c)]('p',{'className':_0x209c59(0x272),'children':_0x156c82['t']('mcpConfig.apiKeyHint')})]}),_0x157474&&_0x5714bc&&_0x38c194['jsxs'](_0x209c59(0x2f4),{'className':_0x209c59(0x266),'children':[_0x38c194[_0x209c59(0x31c)]('a',{'className':_0x209c59(0x2cb),'role':_0x209c59(0x320),'onClick':()=>_0x1de6c9(!0x1),'children':_0x38c194[_0x209c59(0x31c)](_0x15e3bf,{'className':'univer-size-4'})}),_0x38c194['jsxs']('div',{'className':_0x209c59(0x2dd),'children':[_0x38c194[_0x209c59(0x31c)]('div',{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x38c194[_0x209c59(0x31c)](_0x209c59(0x29d),{'className':'univer-text-blue-600','children':'🚀'})}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x261),'children':[_0x38c194[_0x209c59(0x31c)]('h4',{'className':_0x209c59(0x21f),'children':_0x156c82['t'](_0x209c59(0x230))}),_0x38c194[_0x209c59(0x31c)]('p',{'className':_0x209c59(0x238),'children':_0x156c82['t']('mcpConfig.apiApplyInfo.description')}),_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x48bdb8&&_0x38c194[_0x209c59(0x2d3)]('a',{'className':_0x209c59(0x333),'href':_0x27481d,'target':_0x209c59(0x241),'rel':'noopener\x20noreferrer','children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x29d),{'children':'🤖'}),_0x156c82['t'](_0x209c59(0x289)),_0x38c194[_0x209c59(0x31c)](_0x209c59(0x29d),{'className':_0x209c59(0x1f6),'children':'↗'})]})}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x1f3),'children':['✨','\x20',_0x156c82['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x3e6979['showDeveloperTools']&&_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x32b),'children':[_0x38c194[_0x209c59(0x2d3)]('h4',{'className':_0x209c59(0x330),'children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x29d),{'children':'🔗'}),'\x20',_0x156c82['t']('mcpConfig.connectionInfo')]}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x291),'children':[_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x1fe),'children':[_0x38c194[_0x209c59(0x31c)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x156c82['t'](_0x209c59(0x297))}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':'univer-space-y-2','children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x2b3),'children':_0x156c82['t'](_0x209c59(0x264))}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x28b),'children':[_0x38c194['jsxs']('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x38c194['jsx'](_0x209c59(0x29d),{'className':_0x209c59(0x234),'children':'1'}),_0x156c82['t'](_0x209c59(0x256))]}),_0x38c194[_0x209c59(0x2d3)]('div',{'className':_0x209c59(0x1d2),'children':[_0x38c194[_0x209c59(0x31c)]('span',{'className':_0x209c59(0x234),'children':'2'}),_0x156c82['t'](_0x209c59(0x259))]}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x1d2),'children':[_0x38c194[_0x209c59(0x31c)]('span',{'className':_0x209c59(0x234),'children':'3'}),_0x156c82['t'](_0x209c59(0x27a))]})]})]})]}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x260),'children':[_0x38c194[_0x209c59(0x31c)]('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),_0x38c194['jsx'](_0x209c59(0x2f4),{'className':_0x209c59(0x1bd),'children':_0x38c194[_0x209c59(0x31c)](_0x209c59(0x312),{'className':_0x209c59(0x2a2),'children':JSON[_0x209c59(0x1c3)]({'mcpServers':{'univer':{'url':_0x209c59(0x2b8)+(_0x5ba41d||_0x209c59(0x20c)),'type':_0x209c59(0x243),'headers':{'Authorization':_0x209c59(0x250)+(_0x223dd3||_0x209c59(0x1ee))}}}},null,0x2)})})]}),_0x38c194[_0x209c59(0x2d3)]('div',{'className':_0x209c59(0x1fe),'children':[_0x38c194['jsx'](_0x209c59(0x2f4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x156c82['t'](_0x209c59(0x2e6))}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':'univer-space-y-2','children':[_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x2c2),'children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x1da)}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x209c59(0x300)}),_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x272),'children':_0x156c82['t'](_0x209c59(0x1ed))})]})]}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':_0x209c59(0x2c2),'children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x1da)}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x2fa),'children':_0x209c59(0x1e3)}),_0x38c194[_0x209c59(0x31c)](_0x209c59(0x2f4),{'className':_0x209c59(0x272),'children':_0x156c82['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x38c194[_0x209c59(0x31c)](_0x4e3d9d['Button'],{'onClick':_0x2578e3,'disabled':!_0x246a6f||_0x5a6ab4,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x5a6ab4?_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x29d),{'className':_0x209c59(0x1d2),'children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x29d),{'children':'⟲'}),_0x156c82['t']('mcpConfig.saving')]}):_0x38c194[_0x209c59(0x2d3)]('span',{'className':_0x209c59(0x1d2),'children':[_0x38c194[_0x209c59(0x31c)](_0x1fca24,{}),_0x156c82['t'](_0x209c59(0x323))]})}),_0x38c194['jsx']('div',{'className':_0x209c59(0x25a),'children':_0x38c194[_0x209c59(0x2d3)]('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x38c194[_0x209c59(0x31c)](_0x209c59(0x29d),{'className':_0x209c59(0x318),'children':'💡'}),_0x38c194[_0x209c59(0x2d3)]('div',{'className':_0x209c59(0x1f1),'children':[_0x38c194['jsx'](_0x209c59(0x2f4),{'className':'univer-font-medium','children':_0x209c59(0x247)}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'children':['•',_0x156c82['t'](_0x209c59(0x2c1))]}),_0x38c194[_0x209c59(0x2d3)](_0x209c59(0x2f4),{'children':['•',_0x156c82['t'](_0x209c59(0x1e8))]})]})]})})]})})]});}const _0xd37888=_0x461305(0x2ba),_0x45e5af={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x2fd63d=Object['getOwnPropertyDescriptor'],_0x2c110c=(_0x1431e1,_0x412d88,_0x1750aa,_0x5eb3bc)=>{const _0x24174f=_0x461305;for(var _0x3ffd66=_0x5eb3bc>0x1?void 0x0:_0x5eb3bc?_0x2fd63d(_0x412d88,_0x1750aa):_0x412d88,_0x16143c=_0x1431e1[_0x24174f(0x1f9)]-0x1,_0x1cf9bc;_0x16143c>=0x0;_0x16143c--)(_0x1cf9bc=_0x1431e1[_0x16143c])&&(_0x3ffd66=_0x1cf9bc(_0x3ffd66)||_0x3ffd66);return _0x3ffd66;},_0x2a543f=(_0x16b653,_0x2ecc19)=>(_0x540eaf,_0x4226cd)=>_0x2ecc19(_0x540eaf,_0x4226cd,_0x16b653);const _0x363d7d=_0x461305(0x2df),_0x183f93=_0x461305(0x2bd);_0x5f51a7[_0x461305(0x24c)]=class extends _0x26d949[_0x461305(0x30c)]{constructor(_0x462cd6,_0x293e8d,_0x381cf2,_0x3ac407,_0x73ab6e,_0x47d7b7,_0x27ecf9,_0x16d8ba,_0x493201,_0x95e34b){const _0x43d0b=_0x461305;super(),_0x4fdf38(this,_0x43d0b(0x220),new _0x51cfdc[(_0x43d0b(0x21e))](!0x1)),_0x4fdf38(this,_0x43d0b(0x258),new _0x51cfdc['BehaviorSubject']({})),_0x4fdf38(this,'_config$',new _0x51cfdc[(_0x43d0b(0x21e))]({})),_0x4fdf38(this,_0x43d0b(0x1d9),new _0x51cfdc['BehaviorSubject']('')),_0x4fdf38(this,'_handleConfigSave',async _0xc8ce45=>{const _0x3ea544=_0x43d0b;var _0x45918d,_0x52297c;this[_0x3ea544(0x220)]['next'](!0x0);try{const _0x187b50=await this['_validateConfig'](_0xc8ce45);if(!_0x187b50[_0x3ea544(0x2b5)]){this[_0x3ea544(0x301)][_0x3ea544(0x1fb)]({'type':_0x4e3d9d[_0x3ea544(0x334)]['Error'],'content':_0x187b50[_0x3ea544(0x1f4)]||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0xc8ce45[_0x3ea544(0x30e)]?await this[_0x3ea544(0x25b)][_0x3ea544(0x299)](_0x363d7d,_0xc8ce45[_0x3ea544(0x30e)][_0x3ea544(0x20b)]()):await this[_0x3ea544(0x25b)]['removeItem'](_0x363d7d),this[_0x3ea544(0x1d9)][_0x3ea544(0x285)](((_0x45918d=_0xc8ce45[_0x3ea544(0x30e)])==null?void 0x0:_0x45918d[_0x3ea544(0x20b)]())||''),this[_0x3ea544(0x222)]['__setCustomHeaders']({'Authorization':_0x3ea544(0x250)+((_0x52297c=_0xc8ce45[_0x3ea544(0x30e)])==null?void 0x0:_0x52297c['trim']())}),this['_messageService'][_0x3ea544(0x1fb)]({'type':_0x4e3d9d['MessageType'][_0x3ea544(0x2e9)],'content':this[_0x3ea544(0x279)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x1b4268=_0x3ea544;this[_0x1b4268(0x2a0)]['close'](_0x183f93);},0x320);}catch(_0x5859ab){this[_0x3ea544(0x22d)]['error'](_0x3ea544(0x214),_0x5859ab),this['_messageService'][_0x3ea544(0x1fb)]({'type':_0x4e3d9d['MessageType'][_0x3ea544(0x2e3)],'content':this[_0x3ea544(0x279)]['t'](_0x3ea544(0x2c9))});}finally{this[_0x3ea544(0x220)]['next'](!0x1);}}),(this[_0x43d0b(0x23d)]=_0x462cd6,this[_0x43d0b(0x321)]=_0x293e8d,this[_0x43d0b(0x298)]=_0x381cf2,this[_0x43d0b(0x25b)]=_0x3ac407,this[_0x43d0b(0x2a0)]=_0x73ab6e,this['_messageService']=_0x47d7b7,this[_0x43d0b(0x28f)]=_0x27ecf9,this[_0x43d0b(0x279)]=_0x16d8ba,this[_0x43d0b(0x22d)]=_0x493201,this[_0x43d0b(0x222)]=_0x95e34b,this['_initConfigSync'](),this['_loadStoredApiKey'](),this[_0x43d0b(0x302)]());}[_0x461305(0x1dc)](){const _0x19125e=_0x461305,_0x53055b=this[_0x19125e(0x298)][_0x19125e(0x2e7)](_0xd37888);_0x53055b!=null&&_0x53055b[_0x19125e(0x24e)]&&this[_0x19125e(0x2a0)][_0x19125e(0x1c6)]({'id':_0x183f93,'title':{'title':this[_0x19125e(0x279)]['t'](_0x19125e(0x205))},'children':{'label':_0x19125e(0x203)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x2e7cbd=_0x19125e;this[_0x2e7cbd(0x2a0)][_0x2e7cbd(0x2d9)](_0x183f93);}});}[_0x461305(0x31a)](){return this['_mcpCoreConfig$']['value'];}[_0x461305(0x302)](){const _0x549ab0=_0x461305;this['disposeWithMe'](this['_componentManager'][_0x549ab0(0x228)](_0x549ab0(0x203),this['_createConfigPanelComponent']()));}[_0x461305(0x1d4)](){const _0x10ee16=_0x461305;return _0x3a9868[_0x10ee16(0x233)](()=>{const _0x1e7b24=_0x10ee16;var _0x4c00f7,_0x1ac555,_0x5af41e;return _0x38c194[_0x1e7b24(0x31c)](_0x3d5b84,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x1e7b24(0x258)][_0x1e7b24(0x332)],'currentApiKey$':this[_0x1e7b24(0x1d9)],'onSave':this['_handleConfigSave'],'loading':this[_0x1e7b24(0x220)][_0x1e7b24(0x332)],'connectionStatus$':(_0x4c00f7=this[_0x1e7b24(0x222)])==null?void 0x0:_0x4c00f7[_0x1e7b24(0x32c)],'connectionError$':(_0x1ac555=this[_0x1e7b24(0x222)])==null?void 0x0:_0x1ac555['connectionError$'],'currentSessionId$':(_0x5af41e=this[_0x1e7b24(0x222)])==null?void 0x0:_0x5af41e['sessionId$']});},this[_0x10ee16(0x23d)]);}['_initConfigSync'](){const _0xb7ab4d=_0x461305;this[_0xb7ab4d(0x2e1)](this['_configService'][_0xb7ab4d(0x2f0)](_0x5a7ab6[_0xb7ab4d(0x27d)])['subscribe'](_0x437c2a=>{const _0x199e83=_0xb7ab4d;this[_0x199e83(0x258)][_0x199e83(0x285)](_0x437c2a||{});}));const _0x1018d9=this[_0xb7ab4d(0x298)]['getConfig'](_0x5a7ab6[_0xb7ab4d(0x27d)]);this[_0xb7ab4d(0x258)][_0xb7ab4d(0x285)](_0x1018d9||{}),this['disposeWithMe'](this[_0xb7ab4d(0x298)][_0xb7ab4d(0x2f0)](_0xd37888)['subscribe'](_0x35b802=>{const _0x2f84a7=_0xb7ab4d;this[_0x2f84a7(0x1bf)][_0x2f84a7(0x285)](_0x35b802||{});}));const _0x112c82=this[_0xb7ab4d(0x298)][_0xb7ab4d(0x2e7)](_0xd37888);this[_0xb7ab4d(0x1bf)][_0xb7ab4d(0x285)](_0x112c82||{});}async['_loadStoredApiKey'](){const _0x578278=_0x461305,_0x2f4a00=this['_configService'][_0x578278(0x2e7)](_0xd37888);if(!(_0x2f4a00!=null&&_0x2f4a00[_0x578278(0x24e)]))return;const _0x2107cb=await this[_0x578278(0x25b)][_0x578278(0x296)](_0x363d7d);_0x2107cb&&(this['_mcpConnectionController'][_0x578278(0x2cf)]({'Authorization':_0x578278(0x250)+_0x2107cb}),this[_0x578278(0x1d9)]['next'](_0x2107cb));}async[_0x461305(0x303)](_0x39f945){const _0x56cec3=_0x461305;if(!_0x39f945[_0x56cec3(0x30e)]||_0x39f945[_0x56cec3(0x30e)][_0x56cec3(0x20b)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x56cec3(0x279)]['t'](_0x56cec3(0x1fa))};if(_0x39f945[_0x56cec3(0x30e)][_0x56cec3(0x20b)]()[_0x56cec3(0x1f9)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x56cec3(0x2f7))};try{const _0x295582=await this[_0x56cec3(0x23d)][_0x56cec3(0x2c3)](_0x5a7ab6[_0x56cec3(0x2a7)])[_0x56cec3(0x246)](_0x39f945[_0x56cec3(0x30e)][_0x56cec3(0x20b)]());return _0x295582[_0x56cec3(0x2b5)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x295582[_0x56cec3(0x2ca)]||this[_0x56cec3(0x279)]['t'](_0x56cec3(0x306))};}catch(_0x3c65f6){return console[_0x56cec3(0x2b4)](_0x56cec3(0x2af),_0x3c65f6),{'isValid':!0x0};}}},_0x5f51a7[_0x461305(0x24c)]=_0x2c110c([_0x2a543f(0x0,_0x26d949[_0x461305(0x2a5)](_0x26d949[_0x461305(0x2a8)])),_0x2a543f(0x1,_0x3a9868[_0x461305(0x2ee)]),_0x2a543f(0x2,_0x26d949[_0x461305(0x20f)]),_0x2a543f(0x3,_0x26d949[_0x461305(0x206)]),_0x2a543f(0x4,_0x3a9868['IDialogService']),_0x2a543f(0x5,_0x3a9868[_0x461305(0x2ea)]),_0x2a543f(0x6,_0x26d949['Inject'](_0x3a9868[_0x461305(0x26f)])),_0x2a543f(0x7,_0x26d949[_0x461305(0x2a5)](_0x26d949[_0x461305(0x1d5)])),_0x2a543f(0x8,_0x26d949[_0x461305(0x2f1)]),_0x2a543f(0x9,_0x26d949['Inject'](_0x5a7ab6[_0x461305(0x2a7)]))],_0x5f51a7['MCPConfigUIController']);const _0x1acef4={'id':_0x461305(0x2ec),'type':_0x26d949[_0x461305(0x229)][_0x461305(0x29b)],'handler':async(_0x15da68,_0x4bcecd)=>(_0x15da68['get'](_0x5f51a7[_0x461305(0x24c)])[_0x461305(0x1dc)](),!0x0)};function _0x37ea3a(_0x17cafd,_0x15352b){const _0x4891f7=_0x461305;switch(_0x17cafd){case _0x5a7ab6['MCPConnectionStatus']['DISCONNECTED']:return'mcpStatus.disconnected';case _0x5a7ab6[_0x4891f7(0x2fb)][_0x4891f7(0x331)]:return _0x4891f7(0x29f);case _0x5a7ab6['MCPConnectionStatus'][_0x4891f7(0x2f2)]:return'mcpStatus.connected';case _0x5a7ab6[_0x4891f7(0x2fb)][_0x4891f7(0x24f)]:switch(_0x15352b){case _0x5a7ab6['MCPConnectionError']['UNAUTHORIZED']:return _0x4891f7(0x2ef);case _0x5a7ab6[_0x4891f7(0x1d8)][_0x4891f7(0x349)]:return'mcpStatus.sessionOccupied';case _0x5a7ab6['MCPConnectionError'][_0x4891f7(0x2ab)]:return _0x4891f7(0x1bc);case _0x5a7ab6[_0x4891f7(0x1d8)][_0x4891f7(0x265)]:return _0x4891f7(0x2ac);default:return _0x4891f7(0x308);}case _0x5a7ab6['MCPConnectionStatus']['RETRYING']:return _0x4891f7(0x267);default:return'mcpStatus.unknown';}}function _0x464b84(_0x7311f4,_0x5db16f,_0x3dce19,_0xb5a3e3=!0x0){const _0x1fb9e0=_0x461305,_0x21f874=_0x37ea3a(_0x7311f4,_0x5db16f),_0x4cd422=_0x3dce19['t'](_0x21f874);return _0xb5a3e3?_0x7311f4===_0x5a7ab6[_0x1fb9e0(0x2fb)]['DISCONNECTED']&&_0x5db16f===_0x5a7ab6[_0x1fb9e0(0x1d8)]['UNAUTHORIZED']?_0x4cd422+'\x20-\x20'+_0x3dce19['t'](_0x1fb9e0(0x211)):_0x7311f4===_0x5a7ab6[_0x1fb9e0(0x2fb)][_0x1fb9e0(0x2f2)]?''+_0x4cd422:_0x7311f4===_0x5a7ab6[_0x1fb9e0(0x2fb)][_0x1fb9e0(0x219)]||_0x7311f4===_0x5a7ab6[_0x1fb9e0(0x2fb)]['FAILED']?_0x4cd422+_0x1fb9e0(0x237)+_0x3dce19['t'](_0x1fb9e0(0x232)):_0x4cd422:_0x4cd422;}function _0x512d63(_0x30e141){const _0x5423b1=_0x461305;switch(_0x30e141){case _0x5a7ab6[_0x5423b1(0x2fb)][_0x5423b1(0x2f2)]:return _0x5423b1(0x2b1);case _0x5a7ab6[_0x5423b1(0x2fb)][_0x5423b1(0x331)]:case _0x5a7ab6[_0x5423b1(0x2fb)][_0x5423b1(0x33b)]:return _0x5423b1(0x23e);case _0x5a7ab6[_0x5423b1(0x2fb)]['FAILED']:case _0x5a7ab6[_0x5423b1(0x2fb)][_0x5423b1(0x219)]:return'univer-text-red-500';default:return _0x5423b1(0x2cd);}}function _0x315397(_0x5e8c68){const _0xcc416b=_0x461305,{status$:_0x226f8d,error$:_0x5df3a8,onConfigure:_0x353064,showClickable:_0x46b909=!0x0}=_0x5e8c68,_0x5b75d3=_0x3a9868[_0xcc416b(0x253)](_0x226f8d,_0x5a7ab6[_0xcc416b(0x2fb)][_0xcc416b(0x219)]),_0x541779=_0x3a9868['useObservable'](_0x5df3a8,_0x5a7ab6[_0xcc416b(0x1d8)][_0xcc416b(0x20e)]),_0x2a0b2d=_0x3a9868[_0xcc416b(0x339)](_0x26d949[_0xcc416b(0x1d5)]),_0xce4e7d=_0x5b75d3===_0x5a7ab6['MCPConnectionStatus'][_0xcc416b(0x2f2)];_0x5b75d3===_0x5a7ab6['MCPConnectionStatus'][_0xcc416b(0x331)]||_0x5a7ab6[_0xcc416b(0x2fb)]['RETRYING'];const _0x45664e=_0x2a0b2d['t'](_0x37ea3a(_0x5b75d3,_0x541779)),_0xe63a8d=_0x464b84(_0x5b75d3,_0x541779,_0x2a0b2d,_0x46b909),_0x13fe8c=_0x512d63(_0x5b75d3),_0x2e41d9=_0xce4e7d?_0x38c194[_0xcc416b(0x31c)](_0x4a410a,{}):_0x38c194['jsx'](_0x57f1c1,{}),_0x413cac=_0x1db0a6[_0xcc416b(0x348)](()=>{_0x46b909&&_0x353064&&_0x353064();},[_0x46b909,_0x353064]);function _0x11d07e(){const _0x432fcf=_0xcc416b;return _0x38c194[_0x432fcf(0x2d3)](_0x432fcf(0x2f4),{'className':_0x4e3d9d['clsx'](_0x432fcf(0x284),_0x46b909&&_0x353064&&_0x432fcf(0x30d)),'role':_0x432fcf(0x320),'onClick':_0x46b909&&_0x353064?_0x413cac:void 0x0,'children':[_0x38c194[_0x432fcf(0x31c)](_0x432fcf(0x2f4),{'className':_0x4e3d9d[_0x432fcf(0x221)](_0x432fcf(0x329),_0x13fe8c),'children':_0x2e41d9}),_0x38c194[_0x432fcf(0x31c)]('div',{'className':_0x432fcf(0x227),'children':_0x45664e})]});}return _0x38c194[_0xcc416b(0x31c)](_0x4e3d9d[_0xcc416b(0x239)],{'title':_0xe63a8d,'placement':_0xcc416b(0x2e0),'children':_0x11d07e()});}var _0x1d6cd2=Object[_0x461305(0x2b2)],_0x3e90f4=(_0x5b435e,_0x3b6bc7,_0x24e971,_0x420197)=>{const _0x2b8304=_0x461305;for(var _0x915d1b=_0x420197>0x1?void 0x0:_0x420197?_0x1d6cd2(_0x3b6bc7,_0x24e971):_0x3b6bc7,_0x222b45=_0x5b435e[_0x2b8304(0x1f9)]-0x1,_0x33e0dd;_0x222b45>=0x0;_0x222b45--)(_0x33e0dd=_0x5b435e[_0x222b45])&&(_0x915d1b=_0x33e0dd(_0x915d1b)||_0x915d1b);return _0x915d1b;},_0x2d7ebf=(_0xdf607d,_0x1af55f)=>(_0x2b3d70,_0x26f6d4)=>_0x1af55f(_0x2b3d70,_0x26f6d4,_0xdf607d);_0x5f51a7['MCPConnectionUIController']=class extends _0x26d949[_0x461305(0x30c)]{constructor(_0x2c23fa,_0x3b9ae2,_0x4fd556,_0x11bda7){const _0x5c1514=_0x461305;super(),this[_0x5c1514(0x23d)]=_0x2c23fa,this[_0x5c1514(0x252)]=_0x3b9ae2,this[_0x5c1514(0x321)]=_0x4fd556,this['_configService']=_0x11bda7,this[_0x5c1514(0x1bb)](),this[_0x5c1514(0x2a3)]();}['_initAutoConnect'](){const _0x86cf4a=_0x461305,_0x3ccebe=this[_0x86cf4a(0x298)]['getConfig'](_0xd37888);_0x3ccebe!=null&&_0x3ccebe[_0x86cf4a(0x24e)]&&(this[_0x86cf4a(0x252)][_0x86cf4a(0x24b)]=!0x1);}[_0x461305(0x2a3)](){const _0x18e379=_0x461305,_0x5a969e=this[_0x18e379(0x298)][_0x18e379(0x2e7)](_0xd37888);(_0x5a969e==null?void 0x0:_0x5a969e[_0x18e379(0x31d)])!==!0x1&&this[_0x18e379(0x2e1)](this['_uiPartsService'][_0x18e379(0x28a)](_0x3a9868[_0x18e379(0x1ec)]['HEADER_MENU'],()=>{const _0x3d51b2=_0x18e379;var _0x160e2c;return _0x3a9868[_0x3d51b2(0x233)](_0x256520({'status$':this[_0x3d51b2(0x252)][_0x3d51b2(0x32c)],'error$':this[_0x3d51b2(0x252)][_0x3d51b2(0x290)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x160e2c=_0x5a969e==null?void 0x0:_0x5a969e['showDeveloperTools'])!=null?_0x160e2c:!0x1}),this[_0x3d51b2(0x23d)]);}));}['_handleConfigure'](){const _0x1dd3a9=_0x461305;this[_0x1dd3a9(0x23d)][_0x1dd3a9(0x2c3)](_0x5f51a7[_0x1dd3a9(0x24c)])[_0x1dd3a9(0x1dc)]();}},_0x5f51a7[_0x461305(0x22f)]=_0x3e90f4([_0x2d7ebf(0x0,_0x26d949[_0x461305(0x2a5)](_0x26d949[_0x461305(0x2a8)])),_0x2d7ebf(0x1,_0x26d949[_0x461305(0x2a5)](_0x5a7ab6[_0x461305(0x2a7)])),_0x2d7ebf(0x2,_0x3a9868[_0x461305(0x2ee)]),_0x2d7ebf(0x3,_0x26d949[_0x461305(0x20f)])],_0x5f51a7['MCPConnectionUIController']);function _0x256520(_0x118413){const {status$:_0x3687dc,error$:_0x436df7,onConfigure:_0x6db614,showClickable:_0x599bdf}=_0x118413;return function(){const _0x4b9cb4=_0x41cd;return _0x38c194[_0x4b9cb4(0x31c)](_0x315397,{'status$':_0x3687dc,'error$':_0x436df7,'onConfigure':_0x6db614,'showClickable':_0x599bdf});};}function _0x1e35de(_0x173223){const _0x3a2ad3=_0x461305;return{'id':_0x1acef4['id'],'type':_0x3a9868[_0x3a2ad3(0x202)][_0x3a2ad3(0x2e5)],'icon':'MenuIcon','title':_0x3a2ad3(0x205),'tooltip':'mcpConfig.title'};}const _0x312d3d={[_0x3a9868[_0x461305(0x2d7)][_0x461305(0x25e)]]:{[_0x1acef4['id']]:{'order':0xa,'menuItemFactory':_0x1e35de}}};var _0xed92da=Object[_0x461305(0x2b2)],_0x4d7186=(_0x3dba82,_0x38f0c0,_0x276e7e,_0x1f2742)=>{const _0x2d8157=_0x461305;for(var _0x4d10fd=_0x1f2742>0x1?void 0x0:_0x1f2742?_0xed92da(_0x38f0c0,_0x276e7e):_0x38f0c0,_0x3d58a9=_0x3dba82[_0x2d8157(0x1f9)]-0x1,_0x43bdf9;_0x3d58a9>=0x0;_0x3d58a9--)(_0x43bdf9=_0x3dba82[_0x3d58a9])&&(_0x4d10fd=_0x43bdf9(_0x4d10fd)||_0x4d10fd);return _0x4d10fd;},_0x230d19=(_0xff1d17,_0x14bb91)=>(_0x152979,_0x35e270)=>_0x14bb91(_0x152979,_0x35e270,_0xff1d17);_0x5f51a7[_0x461305(0x200)]=class extends _0x26d949['Disposable']{constructor(_0x66abfd,_0x50bb56){const _0x18f479=_0x461305;super(),this[_0x18f479(0x21a)]=_0x66abfd,this[_0x18f479(0x1c2)]=_0x50bb56,this[_0x18f479(0x245)](),this[_0x18f479(0x1cc)]();}[_0x461305(0x245)](){const _0x4d3efb=_0x461305;[_0x1acef4][_0x4d3efb(0x1e7)](_0x190803=>{const _0x5a5a0a=_0x4d3efb;this[_0x5a5a0a(0x2e1)](this[_0x5a5a0a(0x21a)][_0x5a5a0a(0x2dc)](_0x190803));});}[_0x461305(0x1cc)](){const _0xa840c2=_0x461305;this[_0xa840c2(0x1c2)][_0xa840c2(0x1e2)](_0x312d3d);}},_0x5f51a7[_0x461305(0x200)]=_0x4d7186([_0x230d19(0x0,_0x26d949[_0x461305(0x295)]),_0x230d19(0x1,_0x3a9868[_0x461305(0x345)])],_0x5f51a7['MCPUIMenuController']);const _0x2158be={'mcpStatus':{'disconnected':_0x461305(0x249),'connecting':_0x461305(0x1ea),'connected':'MCP\x20Connected','failed':_0x461305(0x1fc),'retrying':_0x461305(0x30f),'unknown':_0x461305(0x2aa),'unauthorized':_0x461305(0x27b),'sessionOccupied':_0x461305(0x346),'networkError':_0x461305(0x2eb),'maxRetriesExceeded':_0x461305(0x224),'clickToConnect':_0x461305(0x32d),'clickToConfigure':_0x461305(0x2f9)},'mcpConfig':{'title':_0x461305(0x32a),'description':_0x461305(0x287),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x461305(0x2cc),'apiKeyHint':_0x461305(0x311),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x461305(0x25d),'connectionInfo':_0x461305(0x2d2),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x461305(0x24a),'configStep1':_0x461305(0x1cb),'configStep2':_0x461305(0x2c6),'configStep3':_0x461305(0x2a1),'sessionId':_0x461305(0x1d7),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x461305(0x34d),'configParameters':_0x461305(0x2fc),'maxRetries':_0x461305(0x313),'save':_0x461305(0x208),'saving':_0x461305(0x262),'note1':_0x461305(0x1eb),'note2':_0x461305(0x317),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x461305(0x34b),'apiApplyInfo':{'title':_0x461305(0x1e0),'description':_0x461305(0x1c8),'univerAiLabel':_0x461305(0x23b),'getStarted':_0x461305(0x2a6)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x461305(0x269)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x461305(0x22e),'retrying':_0x461305(0x304)},'connectionError':{'unauthorized':_0x461305(0x244),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x461305(0x1ca),'maxRetriesExceeded':_0x461305(0x1d1)}}},_0x10bfea={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x461305(0x31b),'connected':_0x461305(0x2ae),'failed':_0x461305(0x1dd),'retrying':'MCP\x20重连中...','unknown':_0x461305(0x268),'unauthorized':_0x461305(0x20a),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x461305(0x33e),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x461305(0x1ff)},'mcpConfig':{'title':_0x461305(0x2e2),'description':_0x461305(0x274),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x461305(0x325),'apiKeyHint':_0x461305(0x1cf),'enableAuth':_0x461305(0x218),'enableAuthHint':_0x461305(0x2b0),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x461305(0x212),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x461305(0x27f),'configStep1':_0x461305(0x255),'configStep2':_0x461305(0x336),'configStep3':_0x461305(0x337),'sessionId':_0x461305(0x343),'sessionIdDescription':_0x461305(0x1e6),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x461305(0x2b7),'maxRetries':_0x461305(0x1c7),'save':_0x461305(0x2ce),'saving':_0x461305(0x1f0),'note1':_0x461305(0x1c0),'note2':_0x461305(0x2d1),'configSaved':_0x461305(0x20d),'configError':'配置保存失败','apiApplyInfo':{'title':_0x461305(0x2d4),'description':_0x461305(0x1c1),'univerAiLabel':_0x461305(0x275),'getStarted':_0x461305(0x21d)},'validation':{'apiKeyRequired':_0x461305(0x25f),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x461305(0x210),'invalidApiKey':_0x461305(0x326)},'connectionStatus':{'disconnected':_0x461305(0x248),'connecting':_0x461305(0x28c),'connected':_0x461305(0x340),'failed':_0x461305(0x23c),'retrying':_0x461305(0x2ad)},'connectionError':{'unauthorized':_0x461305(0x322),'sessionOccupied':_0x461305(0x277),'networkError':_0x461305(0x280),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var _0x5f29a2=Object['defineProperty'],_0x3e78f5=Object[_0x461305(0x2b2)],_0x468bbf=(_0x3f6c36,_0x3a8747,_0xd372ea)=>_0x3a8747 in _0x3f6c36?_0x5f29a2(_0x3f6c36,_0x3a8747,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd372ea}):_0x3f6c36[_0x3a8747]=_0xd372ea,_0x37ffba=(_0x262f37,_0x4afef7,_0x1a8099,_0x11774a)=>{for(var _0x27d436=_0x11774a>0x1?void 0x0:_0x11774a?_0x3e78f5(_0x4afef7,_0x1a8099):_0x4afef7,_0x6d007f=_0x262f37['length']-0x1,_0x1e12fb;_0x6d007f>=0x0;_0x6d007f--)(_0x1e12fb=_0x262f37[_0x6d007f])&&(_0x27d436=_0x1e12fb(_0x27d436)||_0x27d436);return _0x27d436;},_0x39135d=(_0x4571d6,_0x54aa63)=>(_0x2f8a4b,_0x558dfb)=>_0x54aa63(_0x2f8a4b,_0x558dfb,_0x4571d6),_0x5177df=(_0x5695db,_0x3f1139,_0x3fbd99)=>_0x468bbf(_0x5695db,_0x3f1139+'',_0x3fbd99);_0x5f51a7[_0x461305(0x207)]=class extends _0x26d949[_0x461305(0x2e8)]{constructor(_0x308c96=_0x45e5af,_0x56e912,_0x43927b,_0x26c652,_0x463999,_0x3814c5){const _0xbf1c06=_0x461305;super(),this[_0xbf1c06(0x344)]=_0x308c96,this[_0xbf1c06(0x23d)]=_0x56e912,this['_configService']=_0x43927b,this['_uiPartsService']=_0x26c652,this['_localStorageService']=_0x463999,this[_0xbf1c06(0x279)]=_0x3814c5;const {..._0x4b8348}=_0x26d949[_0xbf1c06(0x1e9)]({},_0x45e5af,this['_config']);this[_0xbf1c06(0x298)][_0xbf1c06(0x292)](_0xd37888,_0x4b8348);}async['onStarting'](){const _0x17207d=_0x461305,_0x239cb0=[[_0x5f51a7['MCPConnectionUIController']],[_0x5f51a7[_0x17207d(0x24c)]],[_0x5f51a7[_0x17207d(0x200)]]];this[_0x17207d(0x23d)][_0x17207d(0x283)](_0x288fc0[_0x17207d(0x293)])||_0x239cb0[_0x17207d(0x294)]([_0x288fc0[_0x17207d(0x293)],{'useClass':_0x288fc0[_0x17207d(0x2d6)]}]),_0x239cb0[_0x17207d(0x1e7)](_0x3894b7=>this[_0x17207d(0x23d)][_0x17207d(0x2e4)](_0x3894b7)),this[_0x17207d(0x23d)]['get'](_0x5f51a7[_0x17207d(0x22f)]),this[_0x17207d(0x23d)][_0x17207d(0x2c3)](_0x5f51a7['MCPConfigUIController']),this['_injector'][_0x17207d(0x2c3)](_0x5f51a7[_0x17207d(0x200)]);}},_0x5177df(_0x5f51a7[_0x461305(0x207)],'pluginName',_0x461305(0x2ed)),_0x5f51a7['UniverMCPUIPlugin']=_0x37ffba([_0x26d949[_0x461305(0x342)](_0x5a7ab6['UniverMCPPlugin']),_0x39135d(0x1,_0x26d949[_0x461305(0x2a5)](_0x26d949[_0x461305(0x2a8)])),_0x39135d(0x2,_0x26d949['IConfigService']),_0x39135d(0x3,_0x3a9868[_0x461305(0x2ee)]),_0x39135d(0x4,_0x26d949[_0x461305(0x206)]),_0x39135d(0x5,_0x26d949[_0x461305(0x2a5)](_0x26d949[_0x461305(0x1d5)]))],_0x5f51a7[_0x461305(0x207)]),_0x5f51a7[_0x461305(0x203)]=_0x3d5b84,_0x5f51a7[_0x461305(0x28e)]=_0x315397,_0x5f51a7['OpenMCPConfigPanelCommand']=_0x1acef4,_0x5f51a7[_0x461305(0x2fe)]=_0x2158be,_0x5f51a7[_0x461305(0x2bb)]=_0x10bfea,Object['defineProperty'](_0x5f51a7,Symbol['toStringTag'],{'value':_0x461305(0x209)});}));function _0x5661(){const _0x23f2fe=['NONE','IConfigService','配置无效','mcpStatus.clickToConfigure','MCP\x20客户端配置','tag','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','svg','exports','mcpConfig.connectionError.sessionOccupied','启用身份验证','DISCONNECTED','_commandService','1VWucEY','univer-text-sm\x20univer-text-gray-500','几秒钟内获取您的\x20API\x20密钥','BehaviorSubject','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_loading$','clsx','_mcpConnectionController','HelpIcon','MCP:\x20Max\x20Retries\x20Exceeded','forwardRef','defIds','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','register','CommandType','mcpConfig.connectionError.networkError','round','mcpConfig.connectionStatus.failed','_logService','Connection\x20Failed','MCPConnectionUIController','mcpConfig.apiApplyInfo.title','label','mcpStatus.clickToConnect','connectInjector','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','on-line-icon_clip0_910_349','@univerjs/network','\x20-\x20','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Tooltip','close-icon','Univer\x20AI\x20Console','连接失败','_injector','univer-text-yellow-500','UniverDesign','univer-bg-green-500','_blank','url(#$1','http','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_initializeCommands','validateApiKey','Configuration\x20Notes:','未连接','MCP\x20Disconnected','Configuration\x20Steps:','enableAutoConnect','MCPConfigUIController','mcpConfig.apiKey','showDeveloperTools','FAILED','Bearer\x20','univer-bg-blue-500','_connectionController','useObservable','mcpConfig.connectionError.unauthorized','复制以下\x20JSON\x20配置','mcpConfig.configStep1','rxjs','_mcpCoreConfig$','mcpConfig.configStep2','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_localStorageService','toString','Enable\x20authentication\x20for\x20secure\x20connections','OTHERS','API\x20密钥不能为空','univer-space-y-2','univer-flex-1','Saving...','3314340NXYWWe','mcpConfig.configStepTitle','MAX_RETRIES_EXCEEDED','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','mcpStatus.retrying','MCP\x20状态未知','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','on-line-icon','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','react/jsx-runtime','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','1522422QITRbc','ComponentManager','M0\x200H16V16H0z','3012681JujdSb','univer-text-xs\x20univer-text-gray-500','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','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Univer\x20AI\x20控制台','displayName','会话\x20ID\x20已被占用,请稍后再试','attrs','_localeService','mcpConfig.configStep3','MCP:\x20Unauthorized','OnLineIcon','MCP_PLUGIN_CONFIG_KEY','assign','配置步骤:','网络连接错误,请检查您的网络连接','map','none','has','univer-flex\x20univer-items-center','next','CheckMarkIcon','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','UniverIcon','mcpConfig.apiApplyInfo.univerAiLabel','registerComponent','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','连接中...','univer-flex\x20univer-items-center\x20univer-gap-3','MCPStatusDisplay','_componentManager','connectionError$','univer-space-y-4','setConfig','ISocketService','push','ICommandService','getItem','mcpConfig.configInstructions','_configService','setItem','mask','COMMAND','https://console.univer.ai','span','check-mark-icon','mcpStatus.connecting','_dialogService','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','_initStatusComponent','mcpServerUrl','Inject','Get\x20your\x20API\x20key\x20in\x20seconds','MCPConnectionController','Injector','fill','MCP\x20Unknown\x20Status','NETWORK_ERROR','mcpStatus.maxRetriesExceeded','重连中...','MCP\x20已连接','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','启用身份验证以获得安全连接','univer-text-green-500','getOwnPropertyDescriptor','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','warn','isValid','UniverUi','配置参数:','https://mcp.univer.ai/mcp/?univer_session_id=','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcp-ui.config','zhCN','text','mcp-config-dialog','1265184llLpoy','@univerjs/core','Input','mcpConfig.note1','univer-flex\x20univer-items-start\x20univer-gap-3','get','4vQezze','React','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','includes','univer-text-red-500','mcpConfig.configError','error','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','Enter\x20your\x20API\x20key','univer-text-gray-500','保存配置','__setCustomHeaders','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20Client\x20Configuration','jsxs','什么是\x20API\x20密钥?','symbol','WebSocketService','RibbonStartGroup','UniverProMcpUi','close','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.connectionStatus.disconnected','registerCommand','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcpConfig.connectionStatus.connected','mcp.apiKey','bottom','disposeWithMe','MCP\x20配置','Error','add','BUTTON','mcpConfig.configParameters','getConfig','Plugin','Success','IMessageService','MCP:\x20Network\x20Error','mcp-ui.command.openConfigPanel','MCP_UI_PLUGIN','IUIPartsService','mcpStatus.unauthorized','subscribeConfigValue$','ILogService','CONNECTED','univer-bg-red-500','div','https://console.univer.plus','@univerjs/ui','mcpConfig.validation.apiKeyTooShort','1em','Click\x20to\x20configure\x20MCP','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCPConnectionStatus','Configuration\x20Parameters:','currentColor','enUS','evenodd','univer_session_id:','_messageService','_registerComponent','_validateConfig','Retrying...','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpConfig.validation.invalidApiKey','string','mcpStatus.failed','children','off-line-icon_clip0_910_343','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','Disposable','\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','apiKey','MCP\x20Retrying...','http://www.w3.org/2000/svg','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','pre','Max\x20Retries','translate(.97)','amd','@univerjs/design','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-shrink-0\x20univer-text-blue-500','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','getCurrentConfig','MCP\x20连接中...','jsx','showStatus','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer.ai','button','_uiPartsService','权限验证失败,请检查您的\x20API\x20密钥','mcpConfig.save','createElement','请输入您的\x20API\x20密钥','API\x20密钥无效,请检查密钥是否正确','366rYBLnL','univer-flex\x20univer-items-start\x20univer-gap-2','univer-mr-2\x20univer-flex\x20univer-text-xl','MCP\x20Configuration','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','connectionStatus$','Click\x20to\x20connect\x20MCP','function','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','CONNECTING','value','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','MessageType','530xPYnpQ','将配置添加到您的\x20MCP\x20客户端设置文件中','重启您的\x20MCP\x20客户端以使配置生效','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','useDependency','clipPath','RETRYING','univer-text-sm\x20univer-font-medium','white','MCP:\x20超出最大重试次数','univer-space-y-5','已连接','replace','DependentOn','会话ID','_config','IMenuManagerService','MCP:\x20Session\x20ID\x20Occupied','entries','useCallback','SESSION_ID_OCCUPIED','off','Failed\x20to\x20save\x20configuration','xlink:href','API\x20key\x20with\x20Bearer\x20prefix.','@univerjs-pro/mcp','_initAutoConnect','mcpStatus.networkError','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','defs','_config$','配置更改将立即生效','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_menuManagerService','stringify','0\x200\x2016\x2016','univer-size-2\x20univer-rounded-full','open','最大重试次数','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','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','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Copy\x20the\x20JSON\x20configuration\x20below','_initializeMenus','univer.plus','5569830tWWzcB','您的\x20API\x20密钥将在此浏览器中本地存储','OffLineIcon','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-flex\x20univer-items-center\x20univer-gap-2','current','_createConfigPanelComponent','LocaleService','idSuffix','Session\x20ID','MCPConnectionError','_apiKey$','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','substring','showConfigPanel','MCP\x20连接失败','off-line-icon','mcpConfig.apiKeyPlaceholder','What\x20is\x20API\x20Key?','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mergeMenu','Authorization:','path','mcpConfig.description','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','forEach','mcpConfig.note2','merge','MCP\x20Connecting...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','BuiltInUIPart','mcpConfig.sessionIdDescription','<API_KEY>','univerjs-icon\x20univerjs-icon-','保存中...','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','UniverProMcp','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','errorMessage','180892JiwKqL','univer-text-gray-400','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','length','mcpConfig.validation.apiKeyRequired','show','MCP\x20Connection\x20Failed','random','univer-space-y-3','点击配置\x20MCP','MCPUIMenuController','univer-shrink-0\x20univer-text-red-500','MenuItemType','MCPConfigPanel','UNAUTHORIZED','mcpConfig.title','ILocalStorageService','UniverMCPUIPlugin','Save\x20Configuration','Module','MCP:\x20未授权','trim','<SESSION_ID>','配置保存成功'];_0x5661=function(){return _0x23f2fe;};return _0x5661();}
|
|
1
|
+
function _0x214c(_0x4746ed,_0x2c278e){const _0x55d63c=_0x55d6();return _0x214c=function(_0x214cfa,_0x331530){_0x214cfa=_0x214cfa-0x14d;let _0x5953fb=_0x55d63c[_0x214cfa];return _0x5953fb;},_0x214c(_0x4746ed,_0x2c278e);}(function(_0x18e563,_0x536a41){const _0xf17fdc=_0x214c,_0x375833=_0x18e563();while(!![]){try{const _0x1cbf98=-parseInt(_0xf17fdc(0x255))/0x1*(parseInt(_0xf17fdc(0x1a6))/0x2)+parseInt(_0xf17fdc(0x210))/0x3+-parseInt(_0xf17fdc(0x20f))/0x4*(-parseInt(_0xf17fdc(0x29e))/0x5)+-parseInt(_0xf17fdc(0x194))/0x6+-parseInt(_0xf17fdc(0x1f5))/0x7*(-parseInt(_0xf17fdc(0x2bf))/0x8)+parseInt(_0xf17fdc(0x2da))/0x9*(parseInt(_0xf17fdc(0x184))/0xa)+parseInt(_0xf17fdc(0x25b))/0xb;if(_0x1cbf98===_0x536a41)break;else _0x375833['push'](_0x375833['shift']());}catch(_0x4823da){_0x375833['push'](_0x375833['shift']());}}}(_0x55d6,0xed339),function(_0x5bcdea,_0x4c5519){const _0x5e1176=_0x214c;typeof exports==_0x5e1176(0x1e0)&&typeof module<'u'?_0x4c5519(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==_0x5e1176(0x243)&&define[_0x5e1176(0x276)]?define([_0x5e1176(0x2cb),_0x5e1176(0x14f),_0x5e1176(0x288),_0x5e1176(0x1fa),_0x5e1176(0x1f9),_0x5e1176(0x259),_0x5e1176(0x24e),_0x5e1176(0x1d2),'@univerjs/network'],_0x4c5519):(_0x5bcdea=typeof globalThis<'u'?globalThis:_0x5bcdea||self,_0x4c5519(_0x5bcdea[_0x5e1176(0x23a)]={},_0x5bcdea['UniverCore'],_0x5bcdea[_0x5e1176(0x222)],_0x5bcdea[_0x5e1176(0x151)],_0x5bcdea[_0x5e1176(0x1c7)],_0x5bcdea[_0x5e1176(0x187)],_0x5bcdea[_0x5e1176(0x24e)],_0x5bcdea[_0x5e1176(0x222)],_0x5bcdea['UniverNetwork']));}(this,function(_0x930409,_0x259237,_0x19e04a,_0x1936af,_0x2daca3,_0x310755,_0x446cd8,_0x2f39b7,_0x1c0658){'use strict';const _0x11da79=_0x214c;var _0x486feb=Object[_0x11da79(0x25c)],_0x4e9f3f=(_0x406b8f,_0x356eed,_0x55180b)=>_0x356eed in _0x406b8f?_0x486feb(_0x406b8f,_0x356eed,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55180b}):_0x406b8f[_0x356eed]=_0x55180b,_0x27efc4=(_0xd09384,_0x29b5bf,_0x50c083)=>_0x4e9f3f(_0xd09384,typeof _0x29b5bf!=_0x11da79(0x18e)?_0x29b5bf+'':_0x29b5bf,_0x50c083);function _0x8a85de({ref:_0x526a4b,..._0x1a6067}){const _0x14dc57=_0x11da79,{icon:_0x472db6,id:_0x581bc8,className:_0x32d006,extend:_0x193dae,..._0x116177}=_0x1a6067,_0x338ee4=(_0x14dc57(0x240)+_0x581bc8+'\x20'+(_0x32d006||''))[_0x14dc57(0x23e)](),_0x65e736=_0x2f39b7[_0x14dc57(0x1c2)]('_'+_0x304f5d());return _0x531e31(_0x472db6,''+_0x581bc8,{'defIds':_0x472db6[_0x14dc57(0x1d4)],'idSuffix':_0x65e736['current']},{'ref':_0x526a4b,'className':_0x338ee4,..._0x116177},_0x193dae);}function _0x531e31(_0x283b14,_0x1bc675,_0x3d1888,_0x36060f,_0x54ec2e){const _0x5e3189=_0x11da79;return _0x2f39b7[_0x5e3189(0x2a9)](_0x283b14[_0x5e3189(0x177)],{'key':_0x1bc675,..._0x11a284(_0x283b14,_0x3d1888,_0x54ec2e),..._0x36060f},(_0x31b461(_0x283b14,_0x3d1888)[_0x5e3189(0x158)]||[])[_0x5e3189(0x1bc)]((_0x2dfba4,_0x3700d4)=>_0x531e31(_0x2dfba4,_0x1bc675+'-'+_0x283b14[_0x5e3189(0x177)]+'-'+_0x3700d4,_0x3d1888,void 0x0,_0x54ec2e)));}function _0x11a284(_0xf66716,_0x4a6ed6,_0x559cfa){const _0x2ebd2a=_0x11da79,_0x1072ae={..._0xf66716[_0x2ebd2a(0x200)]};_0x559cfa!=null&&_0x559cfa['colorChannel1']&&_0x1072ae[_0x2ebd2a(0x205)]===_0x2ebd2a(0x224)&&(_0x1072ae['fill']=_0x559cfa[_0x2ebd2a(0x224)]),_0xf66716['tag']===_0x2ebd2a(0x1fb)&&_0x1072ae['id']&&(_0x1072ae['id']=_0x1072ae['id']+_0x4a6ed6['idSuffix']),Object[_0x2ebd2a(0x174)](_0x1072ae)[_0x2ebd2a(0x293)](([_0x1ef53f,_0x65e1cc])=>{const _0x4ffcd4=_0x2ebd2a;_0x1ef53f===_0x4ffcd4(0x1fb)&&typeof _0x65e1cc==_0x4ffcd4(0x1a8)&&(_0x1072ae[_0x1ef53f]=_0x65e1cc[_0x4ffcd4(0x1de)](/url\(#(.*)\)/,_0x4ffcd4(0x2c8)+_0x4a6ed6[_0x4ffcd4(0x163)]+')'));});const {defIds:_0x12873f}=_0x4a6ed6;return!_0x12873f||_0x12873f[_0x2ebd2a(0x1e6)]===0x0||(_0xf66716[_0x2ebd2a(0x177)]===_0x2ebd2a(0x19d)&&_0x1072ae[_0x2ebd2a(0x199)]&&(_0x1072ae[_0x2ebd2a(0x199)]=_0x1072ae[_0x2ebd2a(0x199)]+_0x4a6ed6['idSuffix']),Object['entries'](_0x1072ae)[_0x2ebd2a(0x293)](([_0x4bf568,_0x224610])=>{const _0x5bfb60=_0x2ebd2a;typeof _0x224610==_0x5bfb60(0x1a8)&&(_0x1072ae[_0x4bf568]=_0x224610['replace'](/url\(#(.*)\)/,_0x5bfb60(0x2c8)+_0x4a6ed6[_0x5bfb60(0x163)]+')'));})),_0x1072ae;}function _0x31b461(_0x1862f6,_0x96c86c){const _0x462138=_0x11da79;var _0xd2143d;const {defIds:_0x96398f}=_0x96c86c;return!_0x96398f||_0x96398f['length']===0x0?_0x1862f6:_0x1862f6[_0x462138(0x177)]===_0x462138(0x294)&&((_0xd2143d=_0x1862f6[_0x462138(0x158)])!=null&&_0xd2143d[_0x462138(0x1e6)])?{..._0x1862f6,'children':_0x1862f6['children']['map'](_0x43e233=>typeof _0x43e233[_0x462138(0x200)]['id']==_0x462138(0x1a8)&&_0x96398f&&_0x96398f[_0x462138(0x14d)](_0x43e233[_0x462138(0x200)]['id'])?{..._0x43e233,'attrs':{..._0x43e233[_0x462138(0x200)],'id':_0x43e233[_0x462138(0x200)]['id']+_0x96c86c[_0x462138(0x163)]}}:_0x43e233)}:_0x1862f6;}function _0x304f5d(){const _0x174011=_0x11da79;return Math['random']()['toString'](0x24)[_0x174011(0x1db)](0x2,0x8);}_0x8a85de[_0x11da79(0x2ae)]=_0x11da79(0x161);const _0x5f39da={'tag':_0x11da79(0x1a1),'attrs':{'xmlns':_0x11da79(0x15f),'fill':_0x11da79(0x29c),'viewBox':_0x11da79(0x1ab),'width':_0x11da79(0x268),'height':_0x11da79(0x268)},'children':[{'tag':'path','attrs':{'fill':_0x11da79(0x21b),'d':'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','fillRule':_0x11da79(0x150),'clipRule':_0x11da79(0x150)}}]},_0x161d59=_0x2f39b7[_0x11da79(0x287)](function(_0x563f15,_0x1670b1){return _0x2f39b7['createElement'](_0x8a85de,Object['assign']({},_0x563f15,{'id':'check-mark-icon','ref':_0x1670b1,'icon':_0x5f39da}));});_0x161d59[_0x11da79(0x2ae)]=_0x11da79(0x2d9);const _0x4805f4={'tag':'svg','attrs':{'xmlns':_0x11da79(0x15f),'fill':_0x11da79(0x29c),'viewBox':_0x11da79(0x1ab),'width':'1em','height':_0x11da79(0x268)},'children':[{'tag':'path','attrs':{'fill':_0x11da79(0x21b),'d':_0x11da79(0x162)}}]},_0x2a215f=_0x2f39b7['forwardRef'](function(_0x26ca4a,_0x56c73e){const _0x3f83ff=_0x11da79;return _0x2f39b7[_0x3f83ff(0x2a9)](_0x8a85de,Object[_0x3f83ff(0x21d)]({},_0x26ca4a,{'id':_0x3f83ff(0x16a),'ref':_0x56c73e,'icon':_0x4805f4}));});_0x2a215f[_0x11da79(0x2ae)]=_0x11da79(0x2a0);const _0x17387d={'tag':'svg','attrs':{'xmlns':_0x11da79(0x15f),'fill':'none','viewBox':_0x11da79(0x1ab),'width':'1em','height':'1em'},'children':[{'tag':_0x11da79(0x1fe),'attrs':{'fill':_0x11da79(0x21b),'d':_0x11da79(0x22e)}},{'tag':'path','attrs':{'fill':_0x11da79(0x21b),'d':_0x11da79(0x18d)}},{'tag':_0x11da79(0x1fe),'attrs':{'fill':_0x11da79(0x21b),'d':_0x11da79(0x284),'fillRule':_0x11da79(0x150),'clipRule':'evenodd'}}]},_0x2f0553=_0x2f39b7['forwardRef'](function(_0x289ba2,_0x5d85fe){const _0x29258a=_0x11da79;return _0x2f39b7[_0x29258a(0x2a9)](_0x8a85de,Object[_0x29258a(0x21d)]({},_0x289ba2,{'id':'help-icon','ref':_0x5d85fe,'icon':_0x17387d}));});_0x2f0553[_0x11da79(0x2ae)]=_0x11da79(0x18b);const _0x1fe4c5={'tag':_0x11da79(0x1a1),'attrs':{'xmlns':_0x11da79(0x15f),'fill':_0x11da79(0x29c),'viewBox':'0\x200\x2016\x2016','width':_0x11da79(0x268),'height':_0x11da79(0x268)},'children':[{'tag':'g','attrs':{'clipPath':_0x11da79(0x269)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x11da79(0x18c),'strokeLinejoin':_0x11da79(0x18c),'strokeWidth':1.2}}]},{'tag':_0x11da79(0x294),'attrs':{},'children':[{'tag':_0x11da79(0x167),'attrs':{'id':_0x11da79(0x1ea)},'children':[{'tag':'path','attrs':{'fill':_0x11da79(0x295),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x11da79(0x1ea)]},_0x29b76e=_0x2f39b7[_0x11da79(0x287)](function(_0x10748e,_0x44dac1){const _0x51de1a=_0x11da79;return _0x2f39b7[_0x51de1a(0x2a9)](_0x8a85de,Object[_0x51de1a(0x21d)]({},_0x10748e,{'id':_0x51de1a(0x239),'ref':_0x44dac1,'icon':_0x1fe4c5}));});_0x29b76e[_0x11da79(0x2ae)]='OffLineIcon';const _0x1f669c={'tag':'svg','attrs':{'xmlns':_0x11da79(0x15f),'fill':'none','viewBox':_0x11da79(0x2ce),'width':_0x11da79(0x268),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x11da79(0x1f0)},'children':[{'tag':'path','attrs':{'stroke':_0x11da79(0x21b),'d':_0x11da79(0x198),'strokeLinecap':_0x11da79(0x18c),'strokeLinejoin':_0x11da79(0x18c),'strokeWidth':1.2}}]},{'tag':_0x11da79(0x294),'attrs':{},'children':[{'tag':_0x11da79(0x167),'attrs':{'id':_0x11da79(0x2bd)},'children':[{'tag':_0x11da79(0x1fe),'attrs':{'fill':_0x11da79(0x295),'d':_0x11da79(0x17c),'transform':_0x11da79(0x160)}}]}]}],'defIds':[_0x11da79(0x2bd)]},_0x4c68c4=_0x2f39b7['forwardRef'](function(_0x587e0e,_0x1843d3){const _0x1a371a=_0x11da79;return _0x2f39b7[_0x1a371a(0x2a9)](_0x8a85de,Object[_0x1a371a(0x21d)]({},_0x587e0e,{'id':_0x1a371a(0x2b6),'ref':_0x1843d3,'icon':_0x1f669c}));});_0x4c68c4[_0x11da79(0x2ae)]='OnLineIcon';function _0x266322(_0x57abb2){const _0x3c0aa9=_0x11da79;var _0x2d6147,_0x3efd50;const {mcpCoreConfig:_0x1204e9,onSave:_0x1d626a,loading:_0x4e5c84=!0x1,config:_0x2ee917,connectionStatus$:_0x10e736,connectionError$:_0x1be3f1,currentApiKey$:_0x51256d,currentSessionId$:_0x2cded4}=_0x57abb2,_0x4f3136=_0x310755[_0x3c0aa9(0x257)](_0x259237[_0x3c0aa9(0x2cf)]),_0x1b989a=_0x310755['useObservable'](_0x10e736,_0x1936af[_0x3c0aa9(0x2d1)][_0x3c0aa9(0x25e)]),_0x3075bc=_0x310755['useObservable'](_0x1be3f1,_0x1936af['MCPConnectionError'][_0x3c0aa9(0x2b0)]),_0x4220b4=_0x310755['useObservable'](_0x2cded4,''),_0x4cbbf4=_0x310755[_0x3c0aa9(0x283)](_0x51256d,''),[_0x377dc4,_0x113299]=_0x2f39b7[_0x3c0aa9(0x2a8)](_0x4cbbf4||''),_0x32d5c9=!0x0,_0x400823=_0x2ee917[_0x3c0aa9(0x212)]&&_0x1204e9[_0x3c0aa9(0x189)]&&(_0x1204e9['mcpServerUrl'][_0x3c0aa9(0x14d)](_0x3c0aa9(0x156))||_0x1204e9['mcpServerUrl']['includes']('univer.ai')),_0x163c86=(_0x2d6147=_0x1204e9[_0x3c0aa9(0x189)])==null?void 0x0:_0x2d6147[_0x3c0aa9(0x14d)](_0x3c0aa9(0x156)),_0x511441=(_0x3efd50=_0x1204e9['mcpServerUrl'])==null?void 0x0:_0x3efd50[_0x3c0aa9(0x14d)](_0x3c0aa9(0x227)),_0x5b8947=_0x163c86?_0x3c0aa9(0x169):_0x3c0aa9(0x2a4),_0x18afe6=_0x2ee917[_0x3c0aa9(0x212)]&&(_0x163c86||_0x511441),[_0x491be7,_0x442250]=_0x2f39b7['useState'](!_0x377dc4['trim']()),_0x462b79=(_0x293547,_0x48d52a)=>{const _0x359240=_0x3c0aa9;if(_0x48d52a===_0x1936af[_0x359240(0x192)]['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x293547){case _0x1936af[_0x359240(0x2d1)][_0x359240(0x2ab)]:return _0x359240(0x2cd);case _0x1936af[_0x359240(0x2d1)][_0x359240(0x270)]:case _0x1936af[_0x359240(0x2d1)][_0x359240(0x16b)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x1936af[_0x359240(0x2d1)][_0x359240(0x233)]:return _0x359240(0x1f2);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x3eaeea=(_0x36c424,_0x33e5bb)=>{const _0x1a389a=_0x3c0aa9;if(_0x33e5bb===_0x1936af[_0x1a389a(0x192)][_0x1a389a(0x1c0)])return _0x1a389a(0x19f);switch(_0x36c424){case _0x1936af[_0x1a389a(0x2d1)]['CONNECTED']:return _0x1a389a(0x263);case _0x1936af['MCPConnectionStatus']['CONNECTING']:case _0x1936af[_0x1a389a(0x2d1)][_0x1a389a(0x16b)]:return'univer-bg-blue-500';case _0x1936af[_0x1a389a(0x2d1)][_0x1a389a(0x233)]:return _0x1a389a(0x19f);default:return _0x1a389a(0x1da);}},_0x2f2193=_0x3d3967=>{const _0x48ec4d=_0x3c0aa9;switch(_0x3d3967){case _0x1936af[_0x48ec4d(0x2d1)][_0x48ec4d(0x2ab)]:return _0x4f3136['t'](_0x48ec4d(0x16f));case _0x1936af[_0x48ec4d(0x2d1)]['CONNECTING']:return _0x4f3136['t'](_0x48ec4d(0x19e));case _0x1936af[_0x48ec4d(0x2d1)][_0x48ec4d(0x233)]:return _0x4f3136['t'](_0x48ec4d(0x1d7));case _0x1936af[_0x48ec4d(0x2d1)]['RETRYING']:return _0x4f3136['t']('mcpConfig.connectionStatus.retrying');default:return _0x4f3136['t'](_0x48ec4d(0x24c));}},_0x4c3184=_0x25e3b4=>{const _0x396ac4=_0x3c0aa9;switch(_0x25e3b4){case _0x1936af[_0x396ac4(0x192)]['UNAUTHORIZED']:return _0x4f3136['t'](_0x396ac4(0x251));case _0x1936af[_0x396ac4(0x192)][_0x396ac4(0x171)]:return _0x4f3136['t'](_0x396ac4(0x26f));case _0x1936af['MCPConnectionError'][_0x396ac4(0x26c)]:return _0x4f3136['t']('mcpConfig.connectionError.networkError');case _0x1936af[_0x396ac4(0x192)]['MAX_RETRIES_EXCEEDED']:return _0x4f3136['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x321629=_0x2f39b7['useCallback'](()=>{const _0x26c0a2=_0x3c0aa9,_0x4b6fc3={..._0x1204e9,'apiKey':_0x377dc4[_0x26c0a2(0x23e)](),'enableAuth':_0x32d5c9};_0x1d626a(_0x4b6fc3);},[_0x1204e9,_0x377dc4,_0x32d5c9,_0x1d626a]),_0xcb4863=_0x377dc4[_0x3c0aa9(0x23e)]()[_0x3c0aa9(0x1e6)]>0x0;return _0x19e04a['jsxs'](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x261),'children':[_0x19e04a[_0x3c0aa9(0x2d7)]('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x19e04a['jsxs']('div',{'className':_0x3c0aa9(0x1f1),'children':[_0x19e04a['jsx'](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x2b1),'children':_0x19e04a[_0x3c0aa9(0x2d7)]('span',{'className':_0x3c0aa9(0x21f),'children':'⚙'})}),_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x154),{'children':_0x19e04a[_0x3c0aa9(0x2d7)]('p',{'className':_0x3c0aa9(0x2c1),'children':_0x4f3136['t']('mcpConfig.description')})})]})}),_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x154),{'className':_0x2daca3[_0x3c0aa9(0x2b2)](_0x3c0aa9(0x1a3),_0x462b79(_0x1b989a,_0x3075bc)),'children':_0x19e04a['jsxs'](_0x3c0aa9(0x154),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19e04a['jsx'](_0x3c0aa9(0x154),{'className':_0x2daca3[_0x3c0aa9(0x2b2)](_0x3c0aa9(0x225),_0x3eaeea(_0x1b989a,_0x3075bc))}),_0x19e04a['jsx']('span',{'className':_0x3c0aa9(0x215),'children':_0x2f2193(_0x1b989a)})]})}),_0x3075bc!==_0x1936af[_0x3c0aa9(0x192)][_0x3c0aa9(0x2b0)]&&(_0x1b989a===_0x1936af[_0x3c0aa9(0x2d1)][_0x3c0aa9(0x233)]||_0x3075bc===_0x1936af[_0x3c0aa9(0x192)][_0x3c0aa9(0x1c0)])&&_0x19e04a['jsx'](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x1c5),'children':_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x274),'children':[_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x1ae),{'className':_0x3c0aa9(0x266),'children':'⚠️'}),_0x19e04a[_0x3c0aa9(0x2d7)]('p',{'className':_0x3c0aa9(0x234),'children':_0x4c3184(_0x3075bc)})]})})]}),_0x19e04a['jsx'](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x15c),'children':_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x247),'children':[_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x1f6),'children':[_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x2ad),{'className':_0x3c0aa9(0x1d8),'children':[_0x19e04a['jsx'](_0x3c0aa9(0x1ae),{'children':'🔑'}),'\x20',_0x4f3136['t'](_0x3c0aa9(0x28f)),_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x1ae),{'className':'univer-text-red-500','children':'*'}),_0x400823&&_0x19e04a['jsx']('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':_0x4f3136['t'](_0x3c0aa9(0x279)),'role':'button','onClick':()=>_0x442250(!0x0),'children':_0x19e04a[_0x3c0aa9(0x2d7)](_0x2f0553,{})})]}),_0x19e04a[_0x3c0aa9(0x2d7)](_0x2daca3[_0x3c0aa9(0x17e)],{'type':'text','placeholder':_0x4f3136['t'](_0x3c0aa9(0x213)),'value':_0x377dc4,'disabled':_0x4e5c84,'autoComplete':_0x3c0aa9(0x207),'onChange':_0x113299}),_0x19e04a[_0x3c0aa9(0x2d7)]('p',{'className':_0x3c0aa9(0x1b9),'children':_0x4f3136['t'](_0x3c0aa9(0x2c0))})]}),_0x400823&&_0x491be7&&_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x1f3),'children':[_0x19e04a[_0x3c0aa9(0x2d7)]('a',{'className':_0x3c0aa9(0x18f),'role':'button','onClick':()=>_0x442250(!0x1),'children':_0x19e04a[_0x3c0aa9(0x2d7)](_0x2a215f,{'className':_0x3c0aa9(0x2d0)})}),_0x19e04a[_0x3c0aa9(0x2b7)]('div',{'className':_0x3c0aa9(0x15a),'children':[_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x182),'children':_0x19e04a[_0x3c0aa9(0x2d7)]('span',{'className':_0x3c0aa9(0x282),'children':'🚀'})}),_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x1b6),'children':[_0x19e04a[_0x3c0aa9(0x2d7)]('h4',{'className':_0x3c0aa9(0x1cd),'children':_0x4f3136['t'](_0x3c0aa9(0x279))}),_0x19e04a[_0x3c0aa9(0x2d7)]('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x4f3136['t'](_0x3c0aa9(0x24a))}),_0x19e04a[_0x3c0aa9(0x2d7)]('div',{'className':_0x3c0aa9(0x29a),'children':_0x18afe6&&_0x19e04a['jsxs']('a',{'className':_0x3c0aa9(0x281),'href':_0x5b8947,'target':_0x3c0aa9(0x2bb),'rel':_0x3c0aa9(0x29b),'children':[_0x19e04a['jsx']('span',{'children':'🤖'}),_0x4f3136['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x1ae),{'className':_0x3c0aa9(0x1e5),'children':'↗'})]})}),_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x221),'children':['✨','\x20',_0x4f3136['t'](_0x3c0aa9(0x245))]})]})]})]}),_0x2ee917['showDeveloperTools']&&_0x19e04a['jsxs'](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x20c),'children':[_0x19e04a[_0x3c0aa9(0x2b7)]('h4',{'className':_0x3c0aa9(0x278),'children':[_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x1ae),{'children':'🔗'}),'\x20',_0x4f3136['t'](_0x3c0aa9(0x28b))]}),_0x19e04a[_0x3c0aa9(0x2b7)]('div',{'className':_0x3c0aa9(0x16d),'children':[_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x2b3),'children':[_0x19e04a['jsx']('p',{'className':_0x3c0aa9(0x27f),'children':_0x4f3136['t'](_0x3c0aa9(0x1ba))}),_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'className':'univer-space-y-2','children':[_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x250),'children':_0x4f3136['t'](_0x3c0aa9(0x2aa))}),_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x2bc),'children':[_0x19e04a['jsxs'](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x273),'children':[_0x19e04a[_0x3c0aa9(0x2d7)]('span',{'className':_0x3c0aa9(0x223),'children':'1'}),_0x4f3136['t'](_0x3c0aa9(0x195))]}),_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x273),'children':[_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x1ae),{'className':_0x3c0aa9(0x223),'children':'2'}),_0x4f3136['t'](_0x3c0aa9(0x1c6))]}),_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19e04a['jsx']('span',{'className':_0x3c0aa9(0x223),'children':'3'}),_0x4f3136['t'](_0x3c0aa9(0x23f))]})]})]})]}),_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x1f6),'children':[_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x154),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),_0x19e04a[_0x3c0aa9(0x2d7)]('div',{'className':_0x3c0aa9(0x22d),'children':_0x19e04a[_0x3c0aa9(0x2d7)]('pre',{'className':_0x3c0aa9(0x236),'children':JSON[_0x3c0aa9(0x15e)]({'mcpServers':{'univer':{'url':_0x3c0aa9(0x1bb)+(_0x4220b4||_0x3c0aa9(0x1ce)),'type':_0x3c0aa9(0x2ca),'headers':{'Authorization':_0x3c0aa9(0x20e)+(_0x377dc4||_0x3c0aa9(0x24b))}}}},null,0x2)})})]}),_0x19e04a['jsxs'](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x2b3),'children':[_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x250),'children':_0x4f3136['t'](_0x3c0aa9(0x1b8))}),_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'className':'univer-space-y-2','children':[_0x19e04a[_0x3c0aa9(0x2b7)]('div',{'className':_0x3c0aa9(0x20d),'children':[_0x19e04a[_0x3c0aa9(0x2d7)]('div',{'className':_0x3c0aa9(0x196)}),_0x19e04a[_0x3c0aa9(0x2b7)]('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x1c4),'children':_0x3c0aa9(0x28a)}),_0x19e04a['jsx']('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4f3136['t'](_0x3c0aa9(0x17b))})]})]}),_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x154),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x286),'children':[_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x1c4),'children':'Authorization:'}),_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x1b9),'children':_0x4f3136['t'](_0x3c0aa9(0x1c8))})]})]})]})]})]})]}),_0x19e04a[_0x3c0aa9(0x2d7)](_0x2daca3['Button'],{'onClick':_0x321629,'disabled':!_0xcb4863||_0x4e5c84,'className':_0x3c0aa9(0x1ee),'children':_0x4e5c84?_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x1ae),{'className':_0x3c0aa9(0x273),'children':[_0x19e04a['jsx'](_0x3c0aa9(0x1ae),{'children':'⟲'}),_0x4f3136['t'](_0x3c0aa9(0x1b4))]}):_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x1ae),{'className':_0x3c0aa9(0x273),'children':[_0x19e04a[_0x3c0aa9(0x2d7)](_0x161d59,{}),_0x4f3136['t'](_0x3c0aa9(0x16c))]})}),_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x154),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'className':_0x3c0aa9(0x208),'children':[_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x1ae),{'className':_0x3c0aa9(0x271),'children':'💡'}),_0x19e04a['jsxs']('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x19e04a[_0x3c0aa9(0x2d7)](_0x3c0aa9(0x154),{'className':'univer-font-medium','children':_0x3c0aa9(0x152)}),_0x19e04a[_0x3c0aa9(0x2b7)](_0x3c0aa9(0x154),{'children':['•',_0x4f3136['t']('mcpConfig.note1')]}),_0x19e04a['jsxs'](_0x3c0aa9(0x154),{'children':['•',_0x4f3136['t']('mcpConfig.note2')]})]})]})})]})})]});}const _0x3e7e6b=_0x11da79(0x2b5),_0x355260={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x265621=Object[_0x11da79(0x23d)],_0x2a08b1=(_0x70831e,_0xe6c33c,_0x418986,_0xc24f5f)=>{const _0x5b6b3c=_0x11da79;for(var _0x2d0494=_0xc24f5f>0x1?void 0x0:_0xc24f5f?_0x265621(_0xe6c33c,_0x418986):_0xe6c33c,_0x24b558=_0x70831e[_0x5b6b3c(0x1e6)]-0x1,_0x316ae4;_0x24b558>=0x0;_0x24b558--)(_0x316ae4=_0x70831e[_0x24b558])&&(_0x2d0494=_0x316ae4(_0x2d0494)||_0x2d0494);return _0x2d0494;},_0x2b6e93=(_0x43ddde,_0x4accca)=>(_0x41f70e,_0x374156)=>_0x4accca(_0x41f70e,_0x374156,_0x43ddde);const _0x4332fe=_0x11da79(0x25a),_0x173379='mcp-config-dialog';_0x930409[_0x11da79(0x1b0)]=class extends _0x259237[_0x11da79(0x25d)]{constructor(_0x499a13,_0x5b2a4,_0x1e7425,_0x3acd77,_0x1a5e41,_0x2ca0ec,_0x2a6fbc,_0x267f4c,_0x2b4028,_0x45e00a){const _0x1378bf=_0x11da79;super(),_0x27efc4(this,_0x1378bf(0x242),new _0x446cd8['BehaviorSubject'](!0x1)),_0x27efc4(this,_0x1378bf(0x292),new _0x446cd8['BehaviorSubject']({})),_0x27efc4(this,'_config$',new _0x446cd8[(_0x1378bf(0x1c1))]({})),_0x27efc4(this,_0x1378bf(0x22b),new _0x446cd8[(_0x1378bf(0x1c1))]('')),_0x27efc4(this,'_handleConfigSave',async _0x1631ff=>{const _0xc5f294=_0x1378bf;var _0x20658f,_0x2c9aad;this['_loading$'][_0xc5f294(0x2d8)](!0x0);try{const _0x22475e=await this[_0xc5f294(0x1af)](_0x1631ff);if(!_0x22475e['isValid']){this[_0xc5f294(0x1fc)][_0xc5f294(0x235)]({'type':_0x2daca3[_0xc5f294(0x204)]['Error'],'content':_0x22475e['errorMessage']||this[_0xc5f294(0x21c)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x1631ff[_0xc5f294(0x2a1)]?await this['_localStorageService'][_0xc5f294(0x1e9)](_0x4332fe,_0x1631ff[_0xc5f294(0x2a1)][_0xc5f294(0x23e)]()):await this[_0xc5f294(0x27c)][_0xc5f294(0x1a5)](_0x4332fe),this[_0xc5f294(0x22b)]['next'](((_0x20658f=_0x1631ff[_0xc5f294(0x2a1)])==null?void 0x0:_0x20658f['trim']())||''),this[_0xc5f294(0x186)][_0xc5f294(0x29d)]({'Authorization':_0xc5f294(0x20e)+((_0x2c9aad=_0x1631ff[_0xc5f294(0x2a1)])==null?void 0x0:_0x2c9aad[_0xc5f294(0x23e)]())}),this[_0xc5f294(0x1fc)][_0xc5f294(0x235)]({'type':_0x2daca3['MessageType']['Success'],'content':this['_localeService']['t'](_0xc5f294(0x296))}),setTimeout(()=>{const _0xd066f=_0xc5f294;this[_0xd066f(0x2ba)][_0xd066f(0x258)](_0x173379);},0x320);}catch(_0x4017b7){this[_0xc5f294(0x2a7)][_0xc5f294(0x176)](_0xc5f294(0x252),_0x4017b7),this[_0xc5f294(0x1fc)][_0xc5f294(0x235)]({'type':_0x2daca3[_0xc5f294(0x204)][_0xc5f294(0x193)],'content':this[_0xc5f294(0x21c)]['t'](_0xc5f294(0x1fd))});}finally{this[_0xc5f294(0x242)]['next'](!0x1);}}),(this[_0x1378bf(0x1be)]=_0x499a13,this[_0x1378bf(0x298)]=_0x5b2a4,this['_configService']=_0x1e7425,this[_0x1378bf(0x27c)]=_0x3acd77,this[_0x1378bf(0x2ba)]=_0x1a5e41,this[_0x1378bf(0x1fc)]=_0x2ca0ec,this[_0x1378bf(0x180)]=_0x2a6fbc,this[_0x1378bf(0x21c)]=_0x267f4c,this[_0x1378bf(0x2a7)]=_0x2b4028,this['_mcpConnectionController']=_0x45e00a,this['_initConfigSync'](),this[_0x1378bf(0x17d)](),this[_0x1378bf(0x17f)]());}[_0x11da79(0x280)](){const _0xe6224a=_0x11da79,_0x1f0a7b=this[_0xe6224a(0x267)][_0xe6224a(0x170)](_0x3e7e6b);_0x1f0a7b!=null&&_0x1f0a7b['showDeveloperTools']&&this[_0xe6224a(0x2ba)][_0xe6224a(0x1ef)]({'id':_0x173379,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0xbb2fd0=_0xe6224a;this[_0xbb2fd0(0x2ba)][_0xbb2fd0(0x258)](_0x173379);}});}[_0x11da79(0x185)](){const _0x28f690=_0x11da79;return this['_mcpCoreConfig$'][_0x28f690(0x2a6)];}['_registerComponent'](){const _0x23e3e2=_0x11da79;this['disposeWithMe'](this[_0x23e3e2(0x180)][_0x23e3e2(0x2d6)]('MCPConfigPanel',this[_0x23e3e2(0x1cb)]()));}[_0x11da79(0x1cb)](){const _0x442ad9=_0x11da79;return _0x310755[_0x442ad9(0x209)](()=>{const _0x15b2cf=_0x442ad9;var _0x81496c,_0x370357,_0x2d5a80;return _0x19e04a[_0x15b2cf(0x2d7)](_0x266322,{'config':this[_0x15b2cf(0x262)][_0x15b2cf(0x2a6)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x15b2cf(0x2a6)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x15b2cf(0x2c5)],'loading':this[_0x15b2cf(0x242)][_0x15b2cf(0x2a6)],'connectionStatus$':(_0x81496c=this[_0x15b2cf(0x186)])==null?void 0x0:_0x81496c[_0x15b2cf(0x27b)],'connectionError$':(_0x370357=this[_0x15b2cf(0x186)])==null?void 0x0:_0x370357[_0x15b2cf(0x15b)],'currentSessionId$':(_0x2d5a80=this[_0x15b2cf(0x186)])==null?void 0x0:_0x2d5a80[_0x15b2cf(0x157)]});},this[_0x442ad9(0x1be)]);}['_initConfigSync'](){const _0x3141d5=_0x11da79;this[_0x3141d5(0x15d)](this[_0x3141d5(0x267)]['subscribeConfigValue$'](_0x1936af['MCP_PLUGIN_CONFIG_KEY'])[_0x3141d5(0x1f7)](_0x549d4f=>{const _0x210337=_0x3141d5;this[_0x210337(0x292)]['next'](_0x549d4f||{});}));const _0x5ec0a3=this[_0x3141d5(0x267)][_0x3141d5(0x170)](_0x1936af[_0x3141d5(0x2c9)]);this['_mcpCoreConfig$'][_0x3141d5(0x2d8)](_0x5ec0a3||{}),this['disposeWithMe'](this['_configService']['subscribeConfigValue$'](_0x3e7e6b)['subscribe'](_0x302f8c=>{const _0x238765=_0x3141d5;this[_0x238765(0x262)]['next'](_0x302f8c||{});}));const _0x165d9a=this[_0x3141d5(0x267)][_0x3141d5(0x170)](_0x3e7e6b);this[_0x3141d5(0x262)][_0x3141d5(0x2d8)](_0x165d9a||{});}async['_loadStoredApiKey'](){const _0x59e4bc=_0x11da79,_0x4a0bd4=this[_0x59e4bc(0x267)][_0x59e4bc(0x170)](_0x3e7e6b);if(!(_0x4a0bd4!=null&&_0x4a0bd4[_0x59e4bc(0x212)]))return;const _0x315b64=await this[_0x59e4bc(0x27c)][_0x59e4bc(0x1d0)](_0x4332fe);_0x315b64&&(this[_0x59e4bc(0x186)]['__setCustomHeaders']({'Authorization':_0x59e4bc(0x20e)+_0x315b64}),this['_apiKey$'][_0x59e4bc(0x2d8)](_0x315b64));}async[_0x11da79(0x1af)](_0x1915e3){const _0x311608=_0x11da79;if(!_0x1915e3[_0x311608(0x2a1)]||_0x1915e3[_0x311608(0x2a1)][_0x311608(0x23e)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x311608(0x21c)]['t'](_0x311608(0x1cc))};if(_0x1915e3[_0x311608(0x2a1)][_0x311608(0x23e)]()[_0x311608(0x1e6)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x311608(0x28d))};try{const _0x2af3c5=await this[_0x311608(0x1be)][_0x311608(0x1df)](_0x1936af['MCPConnectionController'])[_0x311608(0x248)](_0x1915e3[_0x311608(0x2a1)][_0x311608(0x23e)]());return _0x2af3c5[_0x311608(0x19b)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2af3c5[_0x311608(0x176)]||this[_0x311608(0x21c)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x3ed043){return console['warn'](_0x311608(0x1a7),_0x3ed043),{'isValid':!0x0};}}},_0x930409[_0x11da79(0x1b0)]=_0x2a08b1([_0x2b6e93(0x0,_0x259237[_0x11da79(0x1d6)](_0x259237[_0x11da79(0x19a)])),_0x2b6e93(0x1,_0x310755[_0x11da79(0x29f)]),_0x2b6e93(0x2,_0x259237[_0x11da79(0x231)]),_0x2b6e93(0x3,_0x259237['ILocalStorageService']),_0x2b6e93(0x4,_0x310755[_0x11da79(0x291)]),_0x2b6e93(0x5,_0x310755[_0x11da79(0x277)]),_0x2b6e93(0x6,_0x259237[_0x11da79(0x1d6)](_0x310755[_0x11da79(0x179)])),_0x2b6e93(0x7,_0x259237[_0x11da79(0x1d6)](_0x259237['LocaleService'])),_0x2b6e93(0x8,_0x259237[_0x11da79(0x14e)]),_0x2b6e93(0x9,_0x259237['Inject'](_0x1936af['MCPConnectionController']))],_0x930409['MCPConfigUIController']);const _0xcb3305={'id':_0x11da79(0x27e),'type':_0x259237[_0x11da79(0x1b7)][_0x11da79(0x28e)],'handler':async(_0x22d4e5,_0x283b65)=>(_0x22d4e5[_0x11da79(0x1df)](_0x930409[_0x11da79(0x1b0)])[_0x11da79(0x280)](),!0x0)};function _0x3d0a6f(_0xe7af7,_0x11a3bb){const _0x4ebb42=_0x11da79;switch(_0xe7af7){case _0x1936af[_0x4ebb42(0x2d1)][_0x4ebb42(0x25e)]:return _0x4ebb42(0x26e);case _0x1936af['MCPConnectionStatus'][_0x4ebb42(0x270)]:return'mcpStatus.connecting';case _0x1936af[_0x4ebb42(0x2d1)][_0x4ebb42(0x2ab)]:return _0x4ebb42(0x172);case _0x1936af[_0x4ebb42(0x2d1)][_0x4ebb42(0x233)]:switch(_0x11a3bb){case _0x1936af[_0x4ebb42(0x192)]['UNAUTHORIZED']:return'mcpStatus.unauthorized';case _0x1936af[_0x4ebb42(0x192)][_0x4ebb42(0x171)]:return'mcpStatus.sessionOccupied';case _0x1936af['MCPConnectionError'][_0x4ebb42(0x26c)]:return'mcpStatus.networkError';case _0x1936af[_0x4ebb42(0x192)][_0x4ebb42(0x2c4)]:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case _0x1936af[_0x4ebb42(0x2d1)][_0x4ebb42(0x16b)]:return _0x4ebb42(0x168);default:return _0x4ebb42(0x2c2);}}function _0x1a8e11(_0x1b62e8,_0x4e9799,_0x2ff798,_0x29f681=!0x0){const _0x2cf514=_0x11da79,_0x59b13b=_0x3d0a6f(_0x1b62e8,_0x4e9799),_0x6adf63=_0x2ff798['t'](_0x59b13b);return _0x29f681?_0x1b62e8===_0x1936af[_0x2cf514(0x2d1)][_0x2cf514(0x25e)]&&_0x4e9799===_0x1936af[_0x2cf514(0x192)][_0x2cf514(0x1c0)]?_0x6adf63+'\x20-\x20'+_0x2ff798['t']('mcpStatus.clickToConfigure'):_0x1b62e8===_0x1936af[_0x2cf514(0x2d1)][_0x2cf514(0x2ab)]?''+_0x6adf63:_0x1b62e8===_0x1936af[_0x2cf514(0x2d1)][_0x2cf514(0x25e)]||_0x1b62e8===_0x1936af[_0x2cf514(0x2d1)]['FAILED']?_0x6adf63+_0x2cf514(0x17a)+_0x2ff798['t'](_0x2cf514(0x211)):_0x6adf63:_0x6adf63;}function _0x7bd150(_0x10003b){const _0x33059a=_0x11da79;switch(_0x10003b){case _0x1936af[_0x33059a(0x2d1)]['CONNECTED']:return'univer-text-green-500';case _0x1936af[_0x33059a(0x2d1)]['CONNECTING']:case _0x1936af[_0x33059a(0x2d1)]['RETRYING']:return _0x33059a(0x155);case _0x1936af[_0x33059a(0x2d1)][_0x33059a(0x233)]:case _0x1936af[_0x33059a(0x2d1)][_0x33059a(0x25e)]:return'univer-text-red-500';default:return _0x33059a(0x1b1);}}function _0xda8de9(_0x47896b){const _0x8b81f7=_0x11da79,{status$:_0x394a61,error$:_0x4991be,onConfigure:_0x36b504,showClickable:_0xb350e2=!0x0}=_0x47896b,_0x19efad=_0x310755[_0x8b81f7(0x283)](_0x394a61,_0x1936af[_0x8b81f7(0x2d1)][_0x8b81f7(0x25e)]),_0xdcdb45=_0x310755[_0x8b81f7(0x283)](_0x4991be,_0x1936af[_0x8b81f7(0x192)][_0x8b81f7(0x2b0)]),_0x44a075=_0x310755[_0x8b81f7(0x257)](_0x259237[_0x8b81f7(0x2cf)]),_0x59b1db=_0x19efad===_0x1936af['MCPConnectionStatus'][_0x8b81f7(0x2ab)];_0x19efad===_0x1936af[_0x8b81f7(0x2d1)][_0x8b81f7(0x270)]||_0x1936af[_0x8b81f7(0x2d1)]['RETRYING'];const _0x27215b=_0x44a075['t'](_0x3d0a6f(_0x19efad,_0xdcdb45)),_0x374153=_0x1a8e11(_0x19efad,_0xdcdb45,_0x44a075,_0xb350e2),_0x1c4708=_0x7bd150(_0x19efad),_0x274e62=_0x59b1db?_0x19e04a[_0x8b81f7(0x2d7)](_0x4c68c4,{}):_0x19e04a[_0x8b81f7(0x2d7)](_0x29b76e,{}),_0x3495f5=_0x2f39b7[_0x8b81f7(0x260)](()=>{_0xb350e2&&_0x36b504&&_0x36b504();},[_0xb350e2,_0x36b504]);function _0x886146(){const _0x3a6cb8=_0x8b81f7;return _0x19e04a[_0x3a6cb8(0x2b7)](_0x3a6cb8(0x154),{'className':_0x2daca3[_0x3a6cb8(0x2b2)](_0x3a6cb8(0x21a),_0xb350e2&&_0x36b504&&_0x3a6cb8(0x1ca)),'role':_0x3a6cb8(0x2c6),'onClick':_0xb350e2&&_0x36b504?_0x3495f5:void 0x0,'children':[_0x19e04a['jsx'](_0x3a6cb8(0x154),{'className':_0x2daca3[_0x3a6cb8(0x2b2)](_0x3a6cb8(0x285),_0x1c4708),'children':_0x274e62}),_0x19e04a[_0x3a6cb8(0x2d7)]('div',{'className':_0x3a6cb8(0x2d2),'children':_0x27215b})]});}return _0x19e04a[_0x8b81f7(0x2d7)](_0x2daca3[_0x8b81f7(0x2c7)],{'title':_0x374153,'placement':_0x8b81f7(0x190),'children':_0x886146()});}var _0x4d604d=Object[_0x11da79(0x23d)],_0x499e9c=(_0x2c1383,_0x289fa7,_0x4c354d,_0x173fb2)=>{const _0x4c7dbc=_0x11da79;for(var _0x1269d9=_0x173fb2>0x1?void 0x0:_0x173fb2?_0x4d604d(_0x289fa7,_0x4c354d):_0x289fa7,_0x5d5a46=_0x2c1383[_0x4c7dbc(0x1e6)]-0x1,_0x42b3a0;_0x5d5a46>=0x0;_0x5d5a46--)(_0x42b3a0=_0x2c1383[_0x5d5a46])&&(_0x1269d9=_0x42b3a0(_0x1269d9)||_0x1269d9);return _0x1269d9;},_0x3eda34=(_0x153f03,_0x2eefc3)=>(_0x4b1f50,_0x4dd67d)=>_0x2eefc3(_0x4b1f50,_0x4dd67d,_0x153f03);_0x930409[_0x11da79(0x241)]=class extends _0x259237[_0x11da79(0x25d)]{constructor(_0x2488e7,_0x31cd34,_0x397943,_0x49f4a4){const _0x4d7c05=_0x11da79;super(),this['_injector']=_0x2488e7,this[_0x4d7c05(0x22c)]=_0x31cd34,this['_uiPartsService']=_0x397943,this[_0x4d7c05(0x267)]=_0x49f4a4,this['_initAutoConnect'](),this[_0x4d7c05(0x264)]();}['_initAutoConnect'](){const _0x3fb46d=_0x11da79,_0x1ffa62=this[_0x3fb46d(0x267)][_0x3fb46d(0x170)](_0x3e7e6b);_0x1ffa62!=null&&_0x1ffa62[_0x3fb46d(0x212)]&&(this['_connectionController'][_0x3fb46d(0x237)]=!0x1);}['_initStatusComponent'](){const _0x30ac8f=_0x11da79,_0x1ee50f=this['_configService'][_0x30ac8f(0x170)](_0x3e7e6b);(_0x1ee50f==null?void 0x0:_0x1ee50f[_0x30ac8f(0x1d9)])!==!0x1&&this[_0x30ac8f(0x15d)](this[_0x30ac8f(0x298)][_0x30ac8f(0x275)](_0x310755[_0x30ac8f(0x23b)][_0x30ac8f(0x2b4)],()=>{const _0x3035b9=_0x30ac8f;var _0x3f42bc;return _0x310755[_0x3035b9(0x209)](_0x562ad2({'status$':this[_0x3035b9(0x22c)][_0x3035b9(0x27b)],'error$':this['_connectionController']['connectionError$'],'onConfigure':()=>this[_0x3035b9(0x2a3)](),'showClickable':(_0x3f42bc=_0x1ee50f==null?void 0x0:_0x1ee50f[_0x3035b9(0x212)])!=null?_0x3f42bc:!0x1}),this['_injector']);}));}[_0x11da79(0x2a3)](){const _0x2eeb8c=_0x11da79;this['_injector'][_0x2eeb8c(0x1df)](_0x930409[_0x2eeb8c(0x1b0)])['showConfigPanel']();}},_0x930409[_0x11da79(0x241)]=_0x499e9c([_0x3eda34(0x0,_0x259237[_0x11da79(0x1d6)](_0x259237[_0x11da79(0x19a)])),_0x3eda34(0x1,_0x259237['Inject'](_0x1936af[_0x11da79(0x24f)])),_0x3eda34(0x2,_0x310755[_0x11da79(0x29f)]),_0x3eda34(0x3,_0x259237[_0x11da79(0x231)])],_0x930409[_0x11da79(0x241)]);function _0x562ad2(_0x228c65){const {status$:_0x566f70,error$:_0x136cfe,onConfigure:_0x5249e1,showClickable:_0x33ae46}=_0x228c65;return function(){const _0x53fdd5=_0x214c;return _0x19e04a[_0x53fdd5(0x2d7)](_0xda8de9,{'status$':_0x566f70,'error$':_0x136cfe,'onConfigure':_0x5249e1,'showClickable':_0x33ae46});};}function _0x50432b(_0x22e1b3){const _0x47940d=_0x11da79;return{'id':_0xcb3305['id'],'type':_0x310755['MenuItemType'][_0x47940d(0x2ac)],'icon':_0x47940d(0x1ed),'title':_0x47940d(0x256),'tooltip':_0x47940d(0x256)};}const _0x5179aa={[_0x310755[_0x11da79(0x218)][_0x11da79(0x27a)]]:{[_0xcb3305['id']]:{'order':0xa,'menuItemFactory':_0x50432b}}};var _0x2b4ce7=Object[_0x11da79(0x23d)],_0x4e7d6f=(_0x339c11,_0x459104,_0x68a2cb,_0x3e70d3)=>{const _0xb4fda2=_0x11da79;for(var _0x4a0bf8=_0x3e70d3>0x1?void 0x0:_0x3e70d3?_0x2b4ce7(_0x459104,_0x68a2cb):_0x459104,_0x3878b5=_0x339c11[_0xb4fda2(0x1e6)]-0x1,_0x305464;_0x3878b5>=0x0;_0x3878b5--)(_0x305464=_0x339c11[_0x3878b5])&&(_0x4a0bf8=_0x305464(_0x4a0bf8)||_0x4a0bf8);return _0x4a0bf8;},_0x34c78a=(_0x24ad10,_0xab4e7a)=>(_0x452519,_0x168914)=>_0xab4e7a(_0x452519,_0x168914,_0x24ad10);_0x930409[_0x11da79(0x249)]=class extends _0x259237[_0x11da79(0x25d)]{constructor(_0x4f4d4d,_0x3ac1db){const _0x34c6a2=_0x11da79;super(),this[_0x34c6a2(0x191)]=_0x4f4d4d,this[_0x34c6a2(0x2af)]=_0x3ac1db,this[_0x34c6a2(0x28c)](),this[_0x34c6a2(0x232)]();}[_0x11da79(0x28c)](){const _0x8ee504=_0x11da79;[_0xcb3305][_0x8ee504(0x293)](_0xad306a=>{const _0x5768b6=_0x8ee504;this[_0x5768b6(0x15d)](this[_0x5768b6(0x191)][_0x5768b6(0x1a4)](_0xad306a));});}[_0x11da79(0x232)](){const _0x117664=_0x11da79;this['_menuManagerService'][_0x117664(0x216)](_0x5179aa);}},_0x930409[_0x11da79(0x249)]=_0x4e7d6f([_0x34c78a(0x0,_0x259237[_0x11da79(0x220)]),_0x34c78a(0x1,_0x310755[_0x11da79(0x217)])],_0x930409['MCPUIMenuController']);const _0x11091d={'mcpStatus':{'disconnected':_0x11da79(0x22a),'connecting':'MCP\x20Connecting...','connected':_0x11da79(0x178),'failed':_0x11da79(0x1cf),'retrying':_0x11da79(0x2d5),'unknown':_0x11da79(0x173),'unauthorized':_0x11da79(0x183),'sessionOccupied':_0x11da79(0x165),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x11da79(0x1e8),'clickToConnect':_0x11da79(0x214),'clickToConfigure':_0x11da79(0x203)},'mcpConfig':{'title':_0x11da79(0x201),'description':_0x11da79(0x26d),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x11da79(0x1b5),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x11da79(0x1f4),'configStepTitle':_0x11da79(0x254),'configStep1':_0x11da79(0x26a),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x11da79(0x226),'authorizationDescription':_0x11da79(0x1e3),'configParameters':_0x11da79(0x272),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x11da79(0x2d3),'configError':_0x11da79(0x1d5),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x11da79(0x297),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x11da79(0x2cc)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x11da79(0x20a),'invalidApiKey':_0x11da79(0x2b9)},'connectionStatus':{'disconnected':_0x11da79(0x230),'connecting':_0x11da79(0x1f8),'connected':_0x11da79(0x2be),'failed':_0x11da79(0x24d),'retrying':_0x11da79(0x1a0)},'connectionError':{'unauthorized':_0x11da79(0x26b),'sessionOccupied':_0x11da79(0x2d4),'networkError':_0x11da79(0x265),'maxRetriesExceeded':_0x11da79(0x1eb)}}},_0x4ef82b={'mcpStatus':{'disconnected':_0x11da79(0x299),'connecting':_0x11da79(0x164),'connected':_0x11da79(0x206),'failed':_0x11da79(0x22f),'retrying':_0x11da79(0x253),'unknown':'MCP\x20状态未知','unauthorized':_0x11da79(0x244),'sessionOccupied':_0x11da79(0x219),'networkError':_0x11da79(0x153),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x11da79(0x2a2),'description':_0x11da79(0x19c),'apiKey':_0x11da79(0x25f),'apiKeyPlaceholder':_0x11da79(0x188),'apiKeyHint':_0x11da79(0x18a),'enableAuth':_0x11da79(0x2c3),'enableAuthHint':_0x11da79(0x197),'connectionInfo':_0x11da79(0x1dc),'mcpClientConfig':_0x11da79(0x1dc),'configInstructions':_0x11da79(0x166),'configStepTitle':_0x11da79(0x1ad),'configStep1':_0x11da79(0x21e),'configStep2':_0x11da79(0x1d1),'configStep3':_0x11da79(0x1ec),'sessionId':_0x11da79(0x1bf),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x11da79(0x16e),'maxRetries':_0x11da79(0x1a2),'save':_0x11da79(0x1e7),'saving':'保存中...','note1':'配置更改将立即生效','note2':_0x11da79(0x1ac),'configSaved':'配置保存成功','configError':'配置保存失败','apiApplyInfo':{'title':_0x11da79(0x1bd),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x11da79(0x1d3)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x11da79(0x1c3),'invalidConfig':_0x11da79(0x238),'invalidApiKey':_0x11da79(0x159)},'connectionStatus':{'disconnected':_0x11da79(0x1e1),'connecting':_0x11da79(0x27d),'connected':_0x11da79(0x229),'failed':_0x11da79(0x289),'retrying':_0x11da79(0x175)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x11da79(0x2b8),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x11da79(0x1e2)}}};var _0x5225ee=Object['defineProperty'],_0x4b59e8=Object[_0x11da79(0x23d)],_0x17745b=(_0x3f48c4,_0x1cd523,_0x27d20c)=>_0x1cd523 in _0x3f48c4?_0x5225ee(_0x3f48c4,_0x1cd523,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27d20c}):_0x3f48c4[_0x1cd523]=_0x27d20c,_0x2b267=(_0x45f99f,_0x2304cc,_0x36a7b8,_0x9e1a3c)=>{for(var _0x32d4f7=_0x9e1a3c>0x1?void 0x0:_0x9e1a3c?_0x4b59e8(_0x2304cc,_0x36a7b8):_0x2304cc,_0x4452ca=_0x45f99f['length']-0x1,_0x5bf6b5;_0x4452ca>=0x0;_0x4452ca--)(_0x5bf6b5=_0x45f99f[_0x4452ca])&&(_0x32d4f7=_0x5bf6b5(_0x32d4f7)||_0x32d4f7);return _0x32d4f7;},_0x3451ee=(_0x5c17e5,_0x2a01be)=>(_0x1bbc9e,_0x1ead30)=>_0x2a01be(_0x1bbc9e,_0x1ead30,_0x5c17e5),_0x51b493=(_0x4ed32f,_0x1b4604,_0x298cdf)=>_0x17745b(_0x4ed32f,_0x1b4604+'',_0x298cdf);_0x930409[_0x11da79(0x1b2)]=class extends _0x259237[_0x11da79(0x20b)]{constructor(_0x2e4cb7=_0x355260,_0x156c90,_0x3dee06,_0x4e5f34,_0x43867c,_0x23a88b){const _0xbe79c8=_0x11da79;super(),this[_0xbe79c8(0x290)]=_0x2e4cb7,this[_0xbe79c8(0x1be)]=_0x156c90,this[_0xbe79c8(0x267)]=_0x3dee06,this[_0xbe79c8(0x298)]=_0x4e5f34,this[_0xbe79c8(0x27c)]=_0x43867c,this[_0xbe79c8(0x21c)]=_0x23a88b;const {..._0x55e061}=_0x259237[_0xbe79c8(0x1ff)]({},_0x355260,this['_config']);this[_0xbe79c8(0x267)][_0xbe79c8(0x202)](_0x3e7e6b,_0x55e061);}async[_0x11da79(0x1aa)](){const _0x5fce78=_0x11da79,_0x3ec323=[[_0x930409[_0x5fce78(0x241)]],[_0x930409['MCPConfigUIController']],[_0x930409[_0x5fce78(0x249)]]];this[_0x5fce78(0x1be)]['has'](_0x1c0658[_0x5fce78(0x1dd)])||_0x3ec323['push']([_0x1c0658[_0x5fce78(0x1dd)],{'useClass':_0x1c0658[_0x5fce78(0x1a9)]}]),_0x3ec323['forEach'](_0x5ccc94=>this[_0x5fce78(0x1be)][_0x5fce78(0x23c)](_0x5ccc94)),this['_injector'][_0x5fce78(0x1df)](_0x930409['MCPConnectionUIController']),this[_0x5fce78(0x1be)][_0x5fce78(0x1df)](_0x930409[_0x5fce78(0x1b0)]),this[_0x5fce78(0x1be)][_0x5fce78(0x1df)](_0x930409['MCPUIMenuController']);}},_0x51b493(_0x930409[_0x11da79(0x1b2)],_0x11da79(0x246),_0x11da79(0x2a5)),_0x930409[_0x11da79(0x1b2)]=_0x2b267([_0x259237[_0x11da79(0x1e4)](_0x1936af[_0x11da79(0x228)]),_0x3451ee(0x1,_0x259237[_0x11da79(0x1d6)](_0x259237[_0x11da79(0x19a)])),_0x3451ee(0x2,_0x259237[_0x11da79(0x231)]),_0x3451ee(0x3,_0x310755[_0x11da79(0x29f)]),_0x3451ee(0x4,_0x259237['ILocalStorageService']),_0x3451ee(0x5,_0x259237[_0x11da79(0x1d6)](_0x259237[_0x11da79(0x2cf)]))],_0x930409[_0x11da79(0x1b2)]),_0x930409['MCPConfigPanel']=_0x266322,_0x930409['MCPStatusDisplay']=_0xda8de9,_0x930409['OpenMCPConfigPanelCommand']=_0xcb3305,_0x930409[_0x11da79(0x1b3)]=_0x11091d,_0x930409[_0x11da79(0x181)]=_0x4ef82b,Object[_0x11da79(0x25c)](_0x930409,Symbol['toStringTag'],{'value':_0x11da79(0x1c9)});}));function _0x55d6(){const _0xd13a40=['label','displayName','_menuManagerService','NONE','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','clsx','univer-space-y-3','HEADER_MENU','mcp-ui.config','on-line-icon','jsxs','会话\x20ID\x20已被占用,请稍后再试','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_dialogService','_blank','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','on-line-icon_clip0_910_349','Connected','56Kzxmzs','mcpConfig.apiKeyHint','univer-text-sm\x20univer-text-gray-500','mcpStatus.unknown','启用身份验证','MAX_RETRIES_EXCEEDED','_handleConfigSave','button','Tooltip','url(#$1','MCP_PLUGIN_CONFIG_KEY','http','exports','Get\x20your\x20API\x20key\x20in\x20seconds','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','0\x200\x2017\x2016','LocaleService','univer-size-4','MCPConnectionStatus','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Configuration\x20saved\x20successfully','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Retrying...','register','jsx','next','CheckMarkIcon','261syEsbW','includes','ILogService','@univerjs/core','evenodd','UniverProMcp','Configuration\x20Notes:','MCP:\x20网络错误','div','univer-text-yellow-500','univer.plus','sessionId$','children','API\x20密钥无效,请检查密钥是否正确','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','connectionError$','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','disposeWithMe','stringify','http://www.w3.org/2000/svg','translate(.97)','UniverIcon','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','idSuffix','MCP\x20连接中...','MCP:\x20Session\x20ID\x20Occupied','将以下配置添加到您的\x20MCP\x20客户端设置中:','clipPath','mcpStatus.retrying','https://console.univer.plus','close-icon','RETRYING','mcpConfig.save','univer-space-y-4','配置参数:','mcpConfig.connectionStatus.connected','getConfig','SESSION_ID_OCCUPIED','mcpStatus.connected','MCP\x20Unknown\x20Status','entries','重连中...','error','tag','MCP\x20Connected','ComponentManager','\x20-\x20','mcpConfig.sessionIdDescription','M0\x200H16V16H0z','_loadStoredApiKey','Input','_registerComponent','_componentManager','zhCN','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','MCP:\x20Unauthorized','373370QeoaHB','getCurrentConfig','_mcpConnectionController','UniverUi','请输入您的\x20API\x20密钥','mcpServerUrl','您的\x20API\x20密钥将在此浏览器中本地存储','HelpIcon','round','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','symbol','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','bottom','_commandService','MCPConnectionError','Error','8883612ETLwBC','mcpConfig.configStep1','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','启用身份验证以获得安全连接','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','xlink:href','Injector','isValid','配置\x20MCP\x20使用\x20AI\x20操作电子表格','use','mcpConfig.connectionStatus.connecting','univer-bg-red-500','Retrying...','svg','最大重试次数','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','registerCommand','removeItem','430702PJPdmy','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','string','WebSocketService','onStarting','0\x200\x2016\x2016','您的\x20API\x20密钥安全存储在本地存储中','配置步骤:','span','_validateConfig','MCPConfigUIController','univer-text-gray-500','UniverMCPUIPlugin','enUS','mcpConfig.saving','Enter\x20your\x20API\x20key','univer-flex-1','CommandType','mcpConfig.configParameters','univer-text-xs\x20univer-text-gray-500','mcpConfig.configInstructions','https://mcp.univer.ai/mcp/?univer_session_id=','map','什么是\x20API\x20密钥?','_injector','会话ID','UNAUTHORIZED','BehaviorSubject','useRef','API\x20密钥长度至少需要\x2010\x20位','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.configStep2','UniverDesign','mcpConfig.authorizationDescription','Module','\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','_createConfigPanelComponent','mcpConfig.validation.apiKeyRequired','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','<SESSION_ID>','MCP\x20Connection\x20Failed','getItem','将配置添加到您的\x20MCP\x20客户端设置文件中','react','几秒钟内获取您的\x20API\x20密钥','defIds','Failed\x20to\x20save\x20configuration','Inject','mcpConfig.connectionStatus.failed','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','showStatus','univer-bg-gray-500','substring','MCP\x20客户端配置','ISocketService','replace','get','object','未连接','超出最大重试次数,请稍后再试','API\x20key\x20with\x20Bearer\x20prefix.','DependentOn','univer-text-gray-400','length','保存配置','MCP:\x20Max\x20Retries\x20Exceeded','setItem','off-line-icon_clip0_910_343','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','重启您的\x20MCP\x20客户端以使配置生效','MenuIcon','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','open','url(#on-line-icon_clip0_910_349)','univer-flex\x20univer-items-center\x20univer-gap-3','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','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','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','385287BqOWCF','univer-space-y-2','subscribe','Connecting...','@univerjs/design','@univerjs-pro/mcp','mask','_messageService','mcpConfig.configError','path','merge','attrs','MCP\x20Configuration','setConfig','Click\x20to\x20configure\x20MCP','MessageType','fill','MCP\x20已连接','off','univer-flex\x20univer-gap-3','connectInjector','Invalid\x20configuration','Plugin','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-flex\x20univer-items-start\x20univer-gap-3','Bearer\x20','4hYKAiF','4600179sMgFQR','mcpStatus.clickToConnect','showDeveloperTools','mcpConfig.apiKeyPlaceholder','Click\x20to\x20connect\x20MCP','univer-text-sm\x20univer-font-medium','mergeMenu','IMenuManagerService','RibbonStartGroup','MCP:\x20会话\x20ID\x20已被占用','univer-flex\x20univer-items-center','currentColor','_localeService','assign','复制以下\x20JSON\x20配置','univer-text-white','ICommandService','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','React','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','colorChannel1','univer-size-2\x20univer-rounded-full','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer.ai','UniverMCPPlugin','已连接','MCP\x20Disconnected','_apiKey$','_connectionController','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','MCP\x20连接失败','Disconnected','IConfigService','_initializeMenus','FAILED','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','show','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','enableAutoConnect','配置无效','off-line-icon','UniverProMcpUi','BuiltInUIPart','add','getOwnPropertyDescriptor','trim','mcpConfig.configStep3','univerjs-icon\x20univerjs-icon-','MCPConnectionUIController','_loading$','function','MCP:\x20未授权','mcpConfig.apiApplyInfo.getStarted','pluginName','univer-space-y-5','validateApiKey','MCPUIMenuController','mcpConfig.apiApplyInfo.description','<API_KEY>','mcpConfig.connectionStatus.disconnected','Connection\x20Failed','rxjs','MCPConnectionController','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.connectionError.unauthorized','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP\x20重连中...','Configuration\x20Steps:','6qNHJin','mcpConfig.title','useDependency','close','@univerjs/ui','mcp.apiKey','6169174eKnCYN','defineProperty','Disposable','DISCONNECTED','API\x20密钥','useCallback','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_config$','univer-bg-green-500','_initStatusComponent','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-shrink-0\x20univer-text-red-500','_configService','1em','url(#off-line-icon_clip0_910_343)','Copy\x20the\x20JSON\x20configuration\x20below','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','NETWORK_ERROR','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpStatus.disconnected','mcpConfig.connectionError.sessionOccupied','CONNECTING','univer-shrink-0\x20univer-text-blue-500','Configuration\x20Parameters:','univer-flex\x20univer-items-center\x20univer-gap-2','univer-flex\x20univer-items-start\x20univer-gap-2','registerComponent','amd','IMessageService','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.apiApplyInfo.title','OTHERS','connectionStatus$','_localStorageService','连接中...','mcp-ui.command.openConfigPanel','univer-text-xs\x20univer-text-gray-600','showConfigPanel','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-blue-600','useObservable','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-min-w-0\x20univer-flex-1','forwardRef','react/jsx-runtime','连接失败','univer_session_id:','mcpConfig.connectionInfo','_initializeCommands','mcpConfig.validation.apiKeyTooShort','COMMAND','mcpConfig.apiKey','_config','IDialogService','_mcpCoreConfig$','forEach','defs','white','mcpConfig.configSaved','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_uiPartsService','MCP\x20已断开','univer-flex\x20univer-flex-wrap\x20univer-gap-2','noopener\x20noreferrer','none','__setCustomHeaders','909990sGnMVo','IUIPartsService','CloseIcon','apiKey','MCP\x20配置','_handleConfigure','https://console.univer.ai','MCP_UI_PLUGIN','value','_logService','useState','createElement','mcpConfig.configStepTitle','CONNECTED','BUTTON'];_0x55d6=function(){return _0xd13a40;};return _0x55d6();}
|
package/lib/umd/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x251f(_0x1280be,_0x5db70a){var _0x338d22=_0x338d();return _0x251f=function(_0x251fb6,_0x18240d){_0x251fb6=_0x251fb6-0x18a;var _0x1789b9=_0x338d22[_0x251fb6];return _0x1789b9;},_0x251f(_0x1280be,_0x5db70a);}(function(_0x398b48,_0x4d12b3){var _0xfeee25=_0x251f,_0x385acc=_0x398b48();while(!![]){try{var _0x42de4f=-parseInt(_0xfeee25(0x191))/0x1+-parseInt(_0xfeee25(0x1a4))/0x2*(-parseInt(_0xfeee25(0x18b))/0x3)+parseInt(_0xfeee25(0x1b5))/0x4+-parseInt(_0xfeee25(0x19e))/0x5*(-parseInt(_0xfeee25(0x1be))/0x6)+parseInt(_0xfeee25(0x1b3))/0x7*(parseInt(_0xfeee25(0x18f))/0x8)+-parseInt(_0xfeee25(0x1b6))/0x9+parseInt(_0xfeee25(0x1aa))/0xa*(-parseInt(_0xfeee25(0x1a8))/0xb);if(_0x42de4f===_0x4d12b3)break;else _0x385acc['push'](_0x385acc['shift']());}catch(_0x2cfdc6){_0x385acc['push'](_0x385acc['shift']());}}}(_0x338d,0xf1174),function(_0x5b582a,_0x5a2768){var _0x4b3bb1=_0x251f;typeof exports=='object'&&typeof module<'u'?module[_0x4b3bb1(0x19f)]=_0x5a2768():typeof define==_0x4b3bb1(0x1b0)&&define[_0x4b3bb1(0x192)]?define(_0x5a2768):(_0x5b582a=typeof globalThis<'u'?globalThis:_0x5b582a||self,_0x5b582a[_0x4b3bb1(0x198)]=_0x5a2768());}(this,function(){'use strict';var _0x449909=_0x251f;return{'mcpStatus':{'disconnected':_0x449909(0x1ad),'connecting':_0x449909(0x1a5),'connected':_0x449909(0x190),'failed':'MCP\x20Connection\x20Failed','retrying':_0x449909(0x1a9),'unknown':_0x449909(0x1ae),'unauthorized':_0x449909(0x1a1),'sessionOccupied':_0x449909(0x1a0),'networkError':_0x449909(0x1a6),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x449909(0x1af),'clickToConfigure':_0x449909(0x1b4)},'mcpConfig':{'title':_0x449909(0x18c),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x449909(0x19c),'apiKeyPlaceholder':_0x449909(0x193),'apiKeyHint':_0x449909(0x19d),'enableAuth':_0x449909(0x18d),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x449909(0x1b2),'mcpClientConfig':_0x449909(0x1b2),'configInstructions':_0x449909(0x18a),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x449909(0x1ba),'configStep3':_0x449909(0x1b9),'sessionId':_0x449909(0x19a),'sessionIdDescription':_0x449909(0x196),'authorizationDescription':_0x449909(0x194),'configParameters':_0x449909(0x18e),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x449909(0x1a2),'note1':_0x449909(0x1ac),'note2':_0x449909(0x1b1),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x449909(0x1bd),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x449909(0x1bb),'getStarted':_0x449909(0x1bc)},'validation':{'apiKeyRequired':_0x449909(0x195),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x449909(0x1a3)},'connectionStatus':{'disconnected':_0x449909(0x197),'connecting':_0x449909(0x199),'connected':_0x449909(0x19b),'failed':'Connection\x20Failed','retrying':_0x449909(0x1b7)},'connectionError':{'unauthorized':_0x449909(0x1a7),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x449909(0x1b8),'maxRetriesExceeded':_0x449909(0x1ab)}}};}));function _0x338d(){var _0x292a1c=['API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20is\x20required','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Disconnected','UniverProMcpUiCaES','Connecting...','Session\x20ID','Connected','API\x20Key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','70iFizlv','exports','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Unauthorized','Saving...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','1517874dpmysh','MCP\x20Connecting...','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','13055889GpIJPx','MCP\x20Retrying...','30VBqrSV','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Disconnected','MCP\x20Unknown\x20Status','Click\x20to\x20connect\x20MCP','function','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Client\x20Configuration','3514651YofLHt','Click\x20to\x20configure\x20MCP','7536428iPzQPf','7546599fxhmcM','Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Univer\x20AI\x20Console','Get\x20your\x20API\x20key\x20in\x20seconds','Failed\x20to\x20save\x20configuration','727314UoNzXO','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','6WWlbpq','MCP\x20Configuration','Enable\x20Authentication','Configuration\x20Parameters:','24xFdzLS','MCP\x20Connected','1218610cwZLTA','amd','Enter\x20your\x20API\x20key'];_0x338d=function(){return _0x292a1c;};return _0x338d();}
|