@univerjs-pro/mcp-ui 0.22.0 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x30e2a6=_0x5b15;function _0x3c9b(){const _0x413fa4=['580vLppyM','API\x20Key','Configuration\x20Steps:','Univer\x20AI\x20Console','Invalid\x20configuration','MCP\x20Configuration','MCP\x20Unknown\x20Status','MCP:\x20Unauthorized','Save\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','166870BEsngX','Copy\x20the\x20JSON\x20configuration\x20below','8SnDNTA','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20is\x20required','28943jtCDfo','Connecting...','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Max\x20Retries','Failed\x20to\x20save\x20configuration','10JjLuYz','36ooeexW','1817981zLetlW','Enter\x20your\x20API\x20key','288925EwAfXW','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20saved\x20successfully','156XTBfPP','Connection\x20Failed','4190PYirJv','243sjIKJj','3897rjoHzt','MCP\x20Client\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','111564YWuEeh','MCP:\x20Network\x20Error','Retrying...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','Enable\x20Authentication','Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20configure\x20MCP','Configuration\x20Parameters:','Disconnected','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20changes\x20will\x20take\x20effect\x20immediately'];_0x3c9b=function(){return _0x413fa4;};return _0x3c9b();}(function(_0x123eac,_0x29315e){const _0x2c8e06=_0x5b15,_0x34d85e=_0x123eac();while(!![]){try{const _0x1076cc=-parseInt(_0x2c8e06(0x16b))/0x1*(-parseInt(_0x2c8e06(0x171))/0x2)+-parseInt(_0x2c8e06(0x148))/0x3*(parseInt(_0x2c8e06(0x15c))/0x4)+-parseInt(_0x2c8e06(0x166))/0x5*(parseInt(_0x2c8e06(0x172))/0x6)+-parseInt(_0x2c8e06(0x175))/0x7*(-parseInt(_0x2c8e06(0x168))/0x8)+-parseInt(_0x2c8e06(0x149))/0x9*(-parseInt(_0x2c8e06(0x17c))/0xa)+-parseInt(_0x2c8e06(0x173))/0xb+-parseInt(_0x2c8e06(0x14c))/0xc*(-parseInt(_0x2c8e06(0x17a))/0xd);if(_0x1076cc===_0x29315e)break;else _0x34d85e['push'](_0x34d85e['shift']());}catch(_0x53029f){_0x34d85e['push'](_0x34d85e['shift']());}}}(_0x3c9b,0x18d59));const locale$1={'mcpStatus':{'disconnected':_0x30e2a6(0x150),'connecting':'MCP\x20Connecting...','connected':_0x30e2a6(0x158),'failed':_0x30e2a6(0x177),'retrying':_0x30e2a6(0x16d),'unknown':_0x30e2a6(0x162),'unauthorized':_0x30e2a6(0x163),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x30e2a6(0x14d),'maxRetriesExceeded':_0x30e2a6(0x151),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x30e2a6(0x155)},'mcpConfig':{'title':_0x30e2a6(0x161),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x30e2a6(0x15d),'apiKeyPlaceholder':_0x30e2a6(0x174),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x30e2a6(0x152),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x30e2a6(0x14a),'mcpClientConfig':_0x30e2a6(0x14a),'configInstructions':_0x30e2a6(0x14b),'configStepTitle':_0x30e2a6(0x15e),'configStep1':_0x30e2a6(0x167),'configStep2':_0x30e2a6(0x159),'configStep3':_0x30e2a6(0x178),'sessionId':'Session\x20ID','sessionIdDescription':_0x30e2a6(0x14f),'authorizationDescription':_0x30e2a6(0x165),'configParameters':_0x30e2a6(0x156),'maxRetries':_0x30e2a6(0x16f),'save':_0x30e2a6(0x164),'saving':'Saving...','note1':_0x30e2a6(0x15b),'note2':_0x30e2a6(0x176),'configSaved':_0x30e2a6(0x179),'configError':_0x30e2a6(0x170),'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':_0x30e2a6(0x15f),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x30e2a6(0x16a),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x30e2a6(0x160),'invalidApiKey':_0x30e2a6(0x154)},'connectionStatus':{'disconnected':_0x30e2a6(0x157),'connecting':_0x30e2a6(0x16c),'connected':_0x30e2a6(0x153),'failed':_0x30e2a6(0x17b),'retrying':_0x30e2a6(0x14e)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x30e2a6(0x169),'networkError':_0x30e2a6(0x16e),'maxRetriesExceeded':_0x30e2a6(0x15a)}}},locale=locale$1;function _0x5b15(_0x1e5273,_0x5a4325){_0x1e5273=_0x1e5273-0x148;const _0x3c9bb2=_0x3c9b();let _0x5b15b1=_0x3c9bb2[_0x1e5273];return _0x5b15b1;}export{locale as default};
|
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x55cd88=_0x2fb0;(function(_0xeb86d6,_0x3c7605){const _0x12fc54=_0x2fb0,_0x1257a1=_0xeb86d6();while(!![]){try{const _0xf1b688=parseInt(_0x12fc54(0x1c5))/0x1*(parseInt(_0x12fc54(0x1ce))/0x2)+parseInt(_0x12fc54(0x1e8))/0x3*(-parseInt(_0x12fc54(0x1c4))/0x4)+parseInt(_0x12fc54(0x1b9))/0x5+-parseInt(_0x12fc54(0x1ca))/0x6*(-parseInt(_0x12fc54(0x1e1))/0x7)+parseInt(_0x12fc54(0x1c0))/0x8*(-parseInt(_0x12fc54(0x1d3))/0x9)+parseInt(_0x12fc54(0x1dd))/0xa*(-parseInt(_0x12fc54(0x1e0))/0xb)+parseInt(_0x12fc54(0x1da))/0xc;if(_0xf1b688===_0x3c7605)break;else _0x1257a1['push'](_0x1257a1['shift']());}catch(_0x5ae1d6){_0x1257a1['push'](_0x1257a1['shift']());}}}(_0x2eab,0x2dff7));const locale={'mcpStatus':{'disconnected':_0x55cd88(0x1be),'connecting':_0x55cd88(0x1d8),'connected':_0x55cd88(0x1c8),'failed':'Pripojenie\x20MCP\x20zlyhalo','retrying':_0x55cd88(0x1cc),'unknown':_0x55cd88(0x1e7),'unauthorized':'MCP:\x20Neautorizované','sessionOccupied':_0x55cd88(0x1e5),'networkError':_0x55cd88(0x1e4),'maxRetriesExceeded':'MCP:\x20Prekročený\x20počet\x20pokusov','clickToConnect':_0x55cd88(0x1ba),'clickToConfigure':_0x55cd88(0x1c9)},'mcpConfig':{'title':_0x55cd88(0x1e6),'description':_0x55cd88(0x1b6),'apiKey':_0x55cd88(0x1cf),'apiKeyPlaceholder':'Zadajte\x20svoj\x20API\x20kľúč','apiKeyHint':_0x55cd88(0x1c7),'enableAuth':'Povoliť\x20overenie','enableAuthHint':_0x55cd88(0x1c6),'connectionInfo':_0x55cd88(0x1df),'mcpClientConfig':_0x55cd88(0x1df),'configInstructions':'Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','configStepTitle':_0x55cd88(0x1c1),'configStep1':_0x55cd88(0x1b8),'configStep2':_0x55cd88(0x1d1),'configStep3':'Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','sessionId':_0x55cd88(0x1d6),'sessionIdDescription':_0x55cd88(0x1d5),'authorizationDescription':'API\x20kľúč\x20s\x20prefixom\x20Bearer.','configParameters':'Parametre\x20konfigurácie:','maxRetries':_0x55cd88(0x1b7),'save':_0x55cd88(0x1bd),'saving':_0x55cd88(0x1bb),'note1':_0x55cd88(0x1d2),'note2':_0x55cd88(0x1c2),'configSaved':_0x55cd88(0x1dc),'configError':_0x55cd88(0x1d0),'apiApplyInfo':{'title':_0x55cd88(0x1de),'description':_0x55cd88(0x1e2),'univerAiLabel':'Univer\x20AI\x20konzola','getStarted':_0x55cd88(0x1db)},'validation':{'apiKeyRequired':_0x55cd88(0x1d9),'apiKeyTooShort':_0x55cd88(0x1d7),'invalidConfig':_0x55cd88(0x1d4),'invalidApiKey':_0x55cd88(0x1c3)},'connectionStatus':{'disconnected':'Odpojené','connecting':_0x55cd88(0x1cb),'connected':_0x55cd88(0x1bf),'failed':'Pripojenie\x20zlyhalo','retrying':'Skúša\x20sa\x20znova...'},'connectionError':{'unauthorized':_0x55cd88(0x1e3),'sessionOccupied':_0x55cd88(0x1bc),'networkError':'Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','maxRetriesExceeded':_0x55cd88(0x1cd)}}};function _0x2fb0(_0x43984a,_0x37f3cd){_0x43984a=_0x43984a-0x1b6;const _0x2eabb0=_0x2eab();let _0x2fb063=_0x2eabb0[_0x43984a];return _0x2fb063;}export{locale as default};function _0x2eab(){const _0x54696e=['3676277zqEgkA','119427ECEXbN','API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','MCP:\x20Sieťová\x20chyba','MCP:\x20ID\x20relácie\x20je\x20obsadené','Konfigurácia\x20MCP','MCP\x20neznámy\x20stav','3zRfxnX','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','Maximálny\x20počet\x20pokusov','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','1281200ThQjtv','Kliknite\x20na\x20pripojenie\x20MCP','Ukladá\x20sa...','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','Uložiť\x20konfiguráciu','MCP\x20odpojené','Pripojené','826640EJskEE','Kroky\x20konfigurácie:','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','1379884mvvMBE','2zuIyjc','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','MCP\x20pripojené','Kliknite\x20na\x20konfiguráciu\x20MCP','30QlqtJn','Pripája\x20sa...','MCP\x20opakuje\x20pokus...','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','17502NYnlhD','API\x20kľúč','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','27roWzOP','Neplatná\x20konfigurácia','Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','ID\x20relácie','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','MCP\x20sa\x20pripája...','API\x20kľúč\x20je\x20povinný','9822336Amuisd','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','Konfigurácia\x20bola\x20úspešne\x20uložená','10VuLDOD','Čo\x20je\x20API\x20kľúč?','Konfigurácia\x20klienta\x20MCP'];_0x2eab=function(){return _0x54696e;};return _0x2eab();}
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x39816c=_0x26d1;function _0x26d1(_0x5e433b,_0x2cdd19){_0x5e433b=_0x5e433b-0x194;const _0x490149=_0x4901();let _0x26d113=_0x490149[_0x5e433b];return _0x26d113;}(function(_0x2602be,_0x255665){const _0x546ac1=_0x26d1,_0xb0de15=_0x2602be();while(!![]){try{const _0x3729d2=-parseInt(_0x546ac1(0x1b7))/0x1+-parseInt(_0x546ac1(0x1be))/0x2+-parseInt(_0x546ac1(0x1a5))/0x3*(parseInt(_0x546ac1(0x1b3))/0x4)+parseInt(_0x546ac1(0x1b5))/0x5*(parseInt(_0x546ac1(0x1ba))/0x6)+-parseInt(_0x546ac1(0x1b4))/0x7+-parseInt(_0x546ac1(0x1b6))/0x8+parseInt(_0x546ac1(0x1a0))/0x9;if(_0x3729d2===_0x255665)break;else _0xb0de15['push'](_0xb0de15['shift']());}catch(_0x28c433){_0xb0de15['push'](_0xb0de15['shift']());}}}(_0x4901,0x29598));const locale={'mcpStatus':{'disconnected':_0x39816c(0x195),'connecting':_0x39816c(0x1ae),'connected':'MCP\x20Đã\x20kết\x20nối','failed':'MCP\x20Kết\x20nối\x20thất\x20bại','retrying':'MCP\x20Đang\x20thử\x20lại...','unknown':'MCP\x20Trạng\x20thái\x20không\x20xác\x20định','unauthorized':'MCP:\x20Không\x20được\x20phép','sessionOccupied':'MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','networkError':_0x39816c(0x1b8),'maxRetriesExceeded':_0x39816c(0x1a9),'clickToConnect':_0x39816c(0x1a1),'clickToConfigure':'Nhấp\x20để\x20cấu\x20hình\x20MCP'},'mcpConfig':{'title':_0x39816c(0x1b1),'description':'Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','apiKey':'Khóa\x20API','apiKeyPlaceholder':_0x39816c(0x19c),'apiKeyHint':_0x39816c(0x1aa),'enableAuth':_0x39816c(0x19f),'enableAuthHint':_0x39816c(0x196),'connectionInfo':_0x39816c(0x1b2),'mcpClientConfig':'Cấu\x20hình\x20máy\x20khách\x20MCP','configInstructions':_0x39816c(0x1a6),'configStepTitle':_0x39816c(0x1a7),'configStep1':_0x39816c(0x19a),'configStep2':'Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','configStep3':_0x39816c(0x1a8),'sessionId':_0x39816c(0x19b),'sessionIdDescription':'Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','authorizationDescription':_0x39816c(0x194),'configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':'Số\x20lần\x20thử\x20lại\x20tối\x20đa','save':'Lưu\x20cấu\x20hình','saving':_0x39816c(0x199),'note1':_0x39816c(0x19d),'note2':_0x39816c(0x1a2),'configSaved':_0x39816c(0x1bb),'configError':_0x39816c(0x1a3),'apiApplyInfo':{'title':_0x39816c(0x1ac),'description':'Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','univerAiLabel':_0x39816c(0x1ab),'getStarted':_0x39816c(0x1b0)},'validation':{'apiKeyRequired':_0x39816c(0x1ad),'apiKeyTooShort':_0x39816c(0x197),'invalidConfig':'Cấu\x20hình\x20không\x20hợp\x20lệ','invalidApiKey':_0x39816c(0x198)},'connectionStatus':{'disconnected':_0x39816c(0x1af),'connecting':_0x39816c(0x1bd),'connected':'Đã\x20kết\x20nối','failed':'Kết\x20nối\x20thất\x20bại','retrying':_0x39816c(0x1bc)},'connectionError':{'unauthorized':_0x39816c(0x19e),'sessionOccupied':_0x39816c(0x1a4),'networkError':_0x39816c(0x1b9),'maxRetriesExceeded':'Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau'}}};function _0x4901(){const _0x5e0f4f=['Bảng\x20điều\x20khiển\x20Univer\x20AI','Khóa\x20API\x20là\x20gì?','Yêu\x20cầu\x20khóa\x20API','MCP\x20Đang\x20kết\x20nối...','Đã\x20ngắt\x20kết\x20nối','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Cấu\x20hình\x20MCP','Cấu\x20hình\x20máy\x20khách\x20MCP','4PpRgdI','1491630IHSfYz','265gkYovt','887136AOZKJV','249980QJifsi','MCP:\x20Lỗi\x20mạng','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','13554AcRRLV','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Đang\x20thử\x20lại...','Đang\x20kết\x20nối...','145748XHdRjm','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','MCP\x20Đã\x20ngắt\x20kết\x20nối','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Đang\x20lưu...','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','ID\x20phiên','Nhập\x20khóa\x20API\x20của\x20bạn','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Bật\x20xác\x20thực','7855884vRvzIH','Nhấp\x20để\x20kết\x20nối\x20MCP','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Lưu\x20cấu\x20hình\x20thất\x20bại','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','529197IrdpFz','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Các\x20bước\x20cấu\x20hình:','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này'];_0x4901=function(){return _0x5e0f4f;};return _0x4901();}export{locale as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x507ded=_0x11d0;(function(_0x4d19a3,_0x22be98){const _0x74eba4=_0x11d0,_0x11e85e=_0x4d19a3();while(!![]){try{const _0x448469=-parseInt(_0x74eba4(0x1e8))/0x1+parseInt(_0x74eba4(0x210))/0x2+-parseInt(_0x74eba4(0x1fb))/0x3+parseInt(_0x74eba4(0x20f))/0x4+parseInt(_0x74eba4(0x201))/0x5+parseInt(_0x74eba4(0x1e9))/0x6+parseInt(_0x74eba4(0x1e1))/0x7*(-parseInt(_0x74eba4(0x1f8))/0x8);if(_0x448469===_0x22be98)break;else _0x11e85e['push'](_0x11e85e['shift']());}catch(_0xf2a37c){_0x11e85e['push'](_0x11e85e['shift']());}}}(_0x3cf4,0xb4c09));function _0x11d0(_0x493b8d,_0x153632){_0x493b8d=_0x493b8d-0x1e0;const _0x3cf4e7=_0x3cf4();let _0x11d0f9=_0x3cf4e7[_0x493b8d];return _0x11d0f9;}function _0x3cf4(){const _0x3c74f7=['重启您的\x20MCP\x20客户端以使配置生效','配置参数:','未连接','启用身份验证以获得安全连接','MCP\x20重连中...','复制以下\x20JSON\x20配置','MCP:\x20超出最大重试次数','MCP\x20状态未知','API\x20密钥长度至少需要\x2010\x20位','连接中...','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20已断开','MCP\x20连接失败','1389880wOolVG','540758WktNid','API\x20密钥','保存中...','1534946DeYrEY','连接失败','最大重试次数','配置无效','什么是\x20API\x20密钥?','MCP\x20配置','请输入您的\x20API\x20密钥','593476ggvuXE','8590926qudxWl','MCP\x20连接中...','点击配置\x20MCP','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','将以下配置添加到您的\x20MCP\x20客户端设置中:','MCP:\x20未授权','重连中...','API\x20密钥不能为空','MCP\x20客户端配置','会话ID','配置\x20MCP\x20使用\x20AI\x20操作电子表格','超出最大重试次数,请稍后再试','启用身份验证','已连接','权限验证失败,请检查您的\x20API\x20密钥','24PmkFbT','您的\x20API\x20密钥安全存储在本地存储中','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','4308219ePAxJz','保存配置','网络连接错误,请检查您的网络连接','配置步骤:','将配置添加到您的\x20MCP\x20客户端设置文件中','几秒钟内获取您的\x20API\x20密钥','6890370NoWMYw'];_0x3cf4=function(){return _0x3c74f7;};return _0x3cf4();}const locale={'mcpStatus':{'disconnected':_0x507ded(0x20d),'connecting':_0x507ded(0x1ea),'connected':'MCP\x20已连接','failed':_0x507ded(0x20e),'retrying':_0x507ded(0x206),'unknown':_0x507ded(0x209),'unauthorized':_0x507ded(0x1ee),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x507ded(0x208),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x507ded(0x1eb)},'mcpConfig':{'title':_0x507ded(0x1e6),'description':_0x507ded(0x1f3),'apiKey':_0x507ded(0x211),'apiKeyPlaceholder':_0x507ded(0x1e7),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x507ded(0x1f5),'enableAuthHint':_0x507ded(0x205),'connectionInfo':_0x507ded(0x1f1),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x507ded(0x1ed),'configStepTitle':_0x507ded(0x1fe),'configStep1':_0x507ded(0x207),'configStep2':_0x507ded(0x1ff),'configStep3':_0x507ded(0x202),'sessionId':_0x507ded(0x1f2),'sessionIdDescription':_0x507ded(0x1ec),'authorizationDescription':_0x507ded(0x20c),'configParameters':_0x507ded(0x203),'maxRetries':_0x507ded(0x1e3),'save':_0x507ded(0x1fc),'saving':_0x507ded(0x1e0),'note1':'配置更改将立即生效','note2':_0x507ded(0x1f9),'configSaved':'配置保存成功','configError':'配置保存失败','apiApplyInfo':{'title':_0x507ded(0x1e5),'description':_0x507ded(0x1fa),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x507ded(0x200)},'validation':{'apiKeyRequired':_0x507ded(0x1f0),'apiKeyTooShort':_0x507ded(0x20a),'invalidConfig':_0x507ded(0x1e4),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x507ded(0x204),'connecting':_0x507ded(0x20b),'connected':_0x507ded(0x1f6),'failed':_0x507ded(0x1e2),'retrying':_0x507ded(0x1ef)},'connectionError':{'unauthorized':_0x507ded(0x1f7),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x507ded(0x1fd),'maxRetriesExceeded':_0x507ded(0x1f4)}}};export{locale as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x92ba3f=_0x4747;(function(_0x509621,_0x28e410){const _0x446c15=_0x4747,_0x26f8ad=_0x509621();while(!![]){try{const _0xfd1bbd=-parseInt(_0x446c15(0x17b))/0x1+-parseInt(_0x446c15(0x16b))/0x2+parseInt(_0x446c15(0x169))/0x3*(parseInt(_0x446c15(0x162))/0x4)+-parseInt(_0x446c15(0x179))/0x5+-parseInt(_0x446c15(0x17d))/0x6*(parseInt(_0x446c15(0x185))/0x7)+parseInt(_0x446c15(0x159))/0x8*(parseInt(_0x446c15(0x15f))/0x9)+parseInt(_0x446c15(0x15a))/0xa*(parseInt(_0x446c15(0x184))/0xb);if(_0xfd1bbd===_0x28e410)break;else _0x26f8ad['push'](_0x26f8ad['shift']());}catch(_0x27407f){_0x26f8ad['push'](_0x26f8ad['shift']());}}}(_0x3c98,0xcb26f));function _0x4747(_0x1088d6,_0x34fdba){_0x1088d6=_0x1088d6-0x153;const _0x3c982c=_0x3c98();let _0x4747ea=_0x3c982c[_0x1088d6];return _0x4747ea;}function _0x3c98(){const _0x225b88=['MCP\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Unauthorized','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connected','API\x20key\x20is\x20required','Invalid\x20configuration','Configuration\x20saved\x20successfully','Saving...','7333065EICRvJ','Save\x20Configuration','1239222QxCqyw','Session\x20ID','247062xRtAwD','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20Authentication','135619wnbBdE','98fzNSEK','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Network\x20Error','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Max\x20Retries\x20Exceeded','24Hiiiut','1490jHCLew','Retrying...','Univer\x20AI\x20Console','Copy\x20the\x20JSON\x20configuration\x20below','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','4413411opUUJf','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Connected','8KPdfHy','API\x20Key','What\x20is\x20API\x20Key?','MCP\x20Disconnected','Max\x20Retries','Disconnected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1800174DTmpmA','MCP\x20Retrying...','787700zrznXy','Connection\x20Failed','MCP\x20Client\x20Configuration','Configuration\x20Parameters:'];_0x3c98=function(){return _0x225b88;};return _0x3c98();}const locale$1={'mcpStatus':{'disconnected':_0x92ba3f(0x165),'connecting':_0x92ba3f(0x153),'connected':_0x92ba3f(0x161),'failed':'MCP\x20Connection\x20Failed','retrying':_0x92ba3f(0x16a),'unknown':_0x92ba3f(0x17e),'unauthorized':_0x92ba3f(0x172),'sessionOccupied':_0x92ba3f(0x160),'networkError':_0x92ba3f(0x155),'maxRetriesExceeded':_0x92ba3f(0x158),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x92ba3f(0x16f),'description':_0x92ba3f(0x15e),'apiKey':_0x92ba3f(0x163),'apiKeyPlaceholder':_0x92ba3f(0x17f),'apiKeyHint':_0x92ba3f(0x182),'enableAuth':_0x92ba3f(0x183),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x92ba3f(0x16d),'mcpClientConfig':_0x92ba3f(0x16d),'configInstructions':_0x92ba3f(0x168),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x92ba3f(0x15d),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x92ba3f(0x154),'sessionId':_0x92ba3f(0x17c),'sessionIdDescription':_0x92ba3f(0x157),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x92ba3f(0x16e),'maxRetries':_0x92ba3f(0x166),'save':_0x92ba3f(0x17a),'saving':_0x92ba3f(0x178),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x92ba3f(0x177),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x92ba3f(0x164),'description':_0x92ba3f(0x186),'univerAiLabel':_0x92ba3f(0x15c),'getStarted':_0x92ba3f(0x171)},'validation':{'apiKeyRequired':_0x92ba3f(0x175),'apiKeyTooShort':_0x92ba3f(0x170),'invalidConfig':_0x92ba3f(0x176),'invalidApiKey':_0x92ba3f(0x180)},'connectionStatus':{'disconnected':_0x92ba3f(0x167),'connecting':'Connecting...','connected':_0x92ba3f(0x174),'failed':_0x92ba3f(0x16c),'retrying':_0x92ba3f(0x15b)},'connectionError':{'unauthorized':_0x92ba3f(0x181),'sessionOccupied':_0x92ba3f(0x173),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x92ba3f(0x156)}}},locale=locale$1;export{locale as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x514ec7,_0x2694e3){const _0x1dd384=_0x661d,_0x354960=_0x514ec7();while(!![]){try{const _0x42a27e=parseInt(_0x1dd384(0x1d1))/0x1*(-parseInt(_0x1dd384(0x9a))/0x2)+-parseInt(_0x1dd384(0x142))/0x3+parseInt(_0x1dd384(0x1e8))/0x4+-parseInt(_0x1dd384(0x17b))/0x5+-parseInt(_0x1dd384(0x172))/0x6+parseInt(_0x1dd384(0x11c))/0x7+-parseInt(_0x1dd384(0x108))/0x8*(-parseInt(_0x1dd384(0x14c))/0x9);if(_0x42a27e===_0x2694e3)break;else _0x354960['push'](_0x354960['shift']());}catch(_0x4a4ec9){_0x354960['push'](_0x354960['shift']());}}}(_0x42fd,0x34647),function(_0x812180,_0x2f8557){const _0x250adf=_0x661d;typeof exports==_0x250adf(0x1ea)&&typeof module<'u'?_0x2f8557(exports,require(`@univerjs/core`),require(`@univerjs-pro/mcp`),require(`@univerjs/design`),require(`@univerjs/ui`),require(`rxjs`),require(`react`),require(`react/jsx-runtime`),require(`@univerjs/network`)):typeof define==_0x250adf(0xec)&&define[_0x250adf(0x1e2)]?define([_0x250adf(0x116),'@univerjs/core','@univerjs-pro/mcp',_0x250adf(0x1e6),_0x250adf(0x1b6),_0x250adf(0xa0),_0x250adf(0x18f),'react/jsx-runtime',_0x250adf(0xfd)],_0x2f8557):(_0x812180=typeof globalThis<'u'?globalThis:_0x812180||self,_0x2f8557(_0x812180['UniverProMcpUi']={},_0x812180[_0x250adf(0x85)],_0x812180[_0x250adf(0x170)],_0x812180['UniverDesign'],_0x812180[_0x250adf(0x1b8)],_0x812180[_0x250adf(0xa0)],_0x812180[_0x250adf(0xbe)],_0x812180[_0x250adf(0xbe)],_0x812180[_0x250adf(0xb2)]));}(this,function(_0x5eb436,_0x13cad6,_0x23c1f9,_0x4ee172,_0x5b1179,_0x866f4d,_0x557e69,_0x23712e,_0x11d426){const _0x15014b=_0x661d;Object[_0x15014b(0x1a1)](_0x5eb436,Symbol[_0x15014b(0xef)],{'value':'Module'});function _0x32769f({ref:_0x774060,..._0x543e82}){const _0x30f92b=_0x15014b;let {icon:_0x54892d,id:_0x4a5224,className:_0x159cf5,extend:_0x534118,..._0x336794}=_0x543e82,_0x3af229=(_0x30f92b(0x114)+_0x4a5224+'\x20'+(_0x159cf5||''))[_0x30f92b(0xf9)](),_0x5c26cf=(0x0,_0x557e69['useRef'])('_'+_0x4821d1());return _0x566a2f(_0x54892d,''+_0x4a5224,{'defIds':_0x54892d['defIds'],'idSuffix':_0x5c26cf[_0x30f92b(0xfe)]},{'ref':_0x774060,'className':_0x3af229,..._0x336794},_0x534118);}function _0x566a2f(_0x5c8f61,_0xef55d5,_0x52dfa2,_0x465359,_0xca7eab){const _0x310793=_0x15014b;return(0x0,_0x557e69['createElement'])(_0x5c8f61['tag'],{'key':_0xef55d5,..._0x41e6e8(_0x5c8f61,_0x52dfa2,_0xca7eab),..._0x465359},(_0xa84d61(_0x5c8f61,_0x52dfa2)[_0x310793(0x13c)]||[])[_0x310793(0x18c)]((_0x3f445d,_0x89ced3)=>_0x566a2f(_0x3f445d,_0xef55d5+'-'+_0x5c8f61['tag']+'-'+_0x89ced3,_0x52dfa2,void 0x0,_0xca7eab)));}function _0x41e6e8(_0x93517,_0x2a1b9c,_0xe1e9d2){const _0x1cbe18=_0x15014b;let _0x70d0bd={..._0x93517[_0x1cbe18(0x1fd)]};_0xe1e9d2!=null&&_0xe1e9d2[_0x1cbe18(0xc9)]&&_0x70d0bd['fill']==='colorChannel1'&&(_0x70d0bd[_0x1cbe18(0xde)]=_0xe1e9d2[_0x1cbe18(0xc9)]),_0x93517[_0x1cbe18(0x1bc)]===_0x1cbe18(0xd1)&&_0x70d0bd['id']&&(_0x70d0bd['id']+=_0x2a1b9c['idSuffix']),Object['entries'](_0x70d0bd)[_0x1cbe18(0x150)](([_0x20cc8f,_0x39b521])=>{const _0x302223=_0x1cbe18;_0x20cc8f==='mask'&&typeof _0x39b521=='string'&&(_0x70d0bd[_0x20cc8f]=_0x39b521['replace'](/url\(#(.*)\)/,'url(#$1'+_0x2a1b9c[_0x302223(0xf0)]+')'));});let {defIds:_0x5944f0}=_0x2a1b9c;return!_0x5944f0||_0x5944f0[_0x1cbe18(0xd4)]===0x0?_0x70d0bd:(_0x93517[_0x1cbe18(0x1bc)]===_0x1cbe18(0xc4)&&_0x70d0bd[_0x1cbe18(0xaf)]&&(_0x70d0bd['xlink:href']+=_0x2a1b9c[_0x1cbe18(0xf0)]),Object['entries'](_0x70d0bd)[_0x1cbe18(0x150)](([_0x2db437,_0x1f2317])=>{const _0xb32c67=_0x1cbe18;typeof _0x1f2317==_0xb32c67(0x183)&&(_0x70d0bd[_0x2db437]=_0x1f2317[_0xb32c67(0x175)](/url\(#(.*)\)/,'url(#$1'+_0x2a1b9c[_0xb32c67(0xf0)]+')'));}),_0x70d0bd);}function _0xa84d61(_0xb342a9,_0x3c419f){const _0x1ddd2e=_0x15014b;var _0x3edc7a;let {defIds:_0x3a37e3}=_0x3c419f;return!_0x3a37e3||_0x3a37e3[_0x1ddd2e(0xd4)]===0x0?_0xb342a9:_0xb342a9[_0x1ddd2e(0x1bc)]==='defs'&&(_0x3edc7a=_0xb342a9[_0x1ddd2e(0x13c)])!=null&&_0x3edc7a['length']?{..._0xb342a9,'children':_0xb342a9['children'][_0x1ddd2e(0x18c)](_0x8bc998=>typeof _0x8bc998['attrs']['id']==_0x1ddd2e(0x183)&&_0x3a37e3&&_0x3a37e3[_0x1ddd2e(0x16b)](_0x8bc998[_0x1ddd2e(0x1fd)]['id'])?{..._0x8bc998,'attrs':{..._0x8bc998['attrs'],'id':_0x8bc998[_0x1ddd2e(0x1fd)]['id']+_0x3c419f[_0x1ddd2e(0xf0)]}}:_0x8bc998)}:_0xb342a9;}function _0x4821d1(){const _0x18cd44=_0x15014b;return Math['random']()[_0x18cd44(0x99)](0x24)[_0x18cd44(0x120)](0x2,0x8);}_0x32769f[_0x15014b(0x134)]='UniverIcon';let _0x5eecf3={'tag':_0x15014b(0x1d6),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x15014b(0x88),'viewBox':'0\x200\x2016\x2016','width':_0x15014b(0x159),'height':_0x15014b(0x159)},'children':[{'tag':_0x15014b(0x103),'attrs':{'fill':_0x15014b(0x1ce),'d':_0x15014b(0x144),'fillRule':_0x15014b(0x107),'clipRule':_0x15014b(0x107)}}]},_0x15de38=(0x0,_0x557e69[_0x15014b(0x75)])(function(_0x2f854a,_0x4a163e){const _0x454626=_0x15014b;return(0x0,_0x557e69[_0x454626(0x163)])(_0x32769f,Object['assign']({},_0x2f854a,{'id':'check-mark-icon','ref':_0x4a163e,'icon':_0x5eecf3}));});_0x15de38['displayName']=_0x15014b(0xae);let _0x4e92d9={'tag':'svg','attrs':{'xmlns':_0x15014b(0x1b4),'fill':_0x15014b(0x88),'viewBox':_0x15014b(0xda),'width':_0x15014b(0x159),'height':_0x15014b(0x159)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x15014b(0x136)}}]},_0x31efd6=(0x0,_0x557e69[_0x15014b(0x75)])(function(_0x3f5a0b,_0x1cf56d){const _0x275374=_0x15014b;return(0x0,_0x557e69[_0x275374(0x163)])(_0x32769f,Object[_0x275374(0x1a9)]({},_0x3f5a0b,{'id':_0x275374(0x1b9),'ref':_0x1cf56d,'icon':_0x4e92d9}));});_0x31efd6[_0x15014b(0x134)]=_0x15014b(0x80);let _0x569e16={'tag':_0x15014b(0x1d6),'attrs':{'xmlns':_0x15014b(0x1b4),'fill':_0x15014b(0x88),'viewBox':_0x15014b(0xda),'width':_0x15014b(0x159),'height':_0x15014b(0x159)},'children':[{'tag':_0x15014b(0x103),'attrs':{'fill':_0x15014b(0x1ce),'d':_0x15014b(0x90)}},{'tag':'path','attrs':{'fill':_0x15014b(0x1ce),'d':_0x15014b(0xcb)}},{'tag':_0x15014b(0x103),'attrs':{'fill':_0x15014b(0x1ce),'d':_0x15014b(0xac),'fillRule':_0x15014b(0x107),'clipRule':_0x15014b(0x107)}}]},_0x474549=(0x0,_0x557e69[_0x15014b(0x75)])(function(_0x2c3102,_0x26f4a2){const _0x5e2b70=_0x15014b;return(0x0,_0x557e69[_0x5e2b70(0x163)])(_0x32769f,Object[_0x5e2b70(0x1a9)]({},_0x2c3102,{'id':_0x5e2b70(0x19b),'ref':_0x26f4a2,'icon':_0x569e16}));});_0x474549[_0x15014b(0x134)]=_0x15014b(0x16e);let _0x53c6a6={'tag':_0x15014b(0x1d6),'attrs':{'xmlns':_0x15014b(0x1b4),'fill':_0x15014b(0x88),'viewBox':'0\x200\x2016\x2016','width':_0x15014b(0x159),'height':_0x15014b(0x159)},'children':[{'tag':'g','attrs':{'clipPath':_0x15014b(0x1f6)},'children':[{'tag':'path','attrs':{'stroke':_0x15014b(0x1ce),'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':'round','strokeLinejoin':_0x15014b(0xb7),'strokeWidth':1.2}}]},{'tag':_0x15014b(0x10b),'attrs':{},'children':[{'tag':_0x15014b(0xe6),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x15014b(0x103),'attrs':{'fill':_0x15014b(0x13e),'d':_0x15014b(0x1fa)}}]}]}],'defIds':[_0x15014b(0x141)]},_0x5099b1=(0x0,_0x557e69[_0x15014b(0x75)])(function(_0x5d9648,_0x3dcc32){const _0x336795=_0x15014b;return(0x0,_0x557e69[_0x336795(0x163)])(_0x32769f,Object[_0x336795(0x1a9)]({},_0x5d9648,{'id':_0x336795(0x204),'ref':_0x3dcc32,'icon':_0x53c6a6}));});_0x5099b1[_0x15014b(0x134)]=_0x15014b(0x140);let _0x28e5b0={'tag':_0x15014b(0x1d6),'attrs':{'xmlns':_0x15014b(0x1b4),'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x15014b(0x159),'height':_0x15014b(0x159)},'children':[{'tag':'g','attrs':{'clipPath':_0x15014b(0x132)},'children':[{'tag':_0x15014b(0x103),'attrs':{'stroke':_0x15014b(0x1ce),'d':_0x15014b(0xf1),'strokeLinecap':_0x15014b(0xb7),'strokeLinejoin':_0x15014b(0xb7),'strokeWidth':1.2}}]},{'tag':_0x15014b(0x10b),'attrs':{},'children':[{'tag':_0x15014b(0xe6),'attrs':{'id':_0x15014b(0x200)},'children':[{'tag':_0x15014b(0x103),'attrs':{'fill':_0x15014b(0x13e),'d':_0x15014b(0x1fa),'transform':'translate(.97)'}}]}]}],'defIds':[_0x15014b(0x200)]},_0x252d3d=(0x0,_0x557e69[_0x15014b(0x75)])(function(_0x5d3c61,_0xcf958a){const _0x586138=_0x15014b;return(0x0,_0x557e69[_0x586138(0x163)])(_0x32769f,Object[_0x586138(0x1a9)]({},_0x5d3c61,{'id':_0x586138(0x1a7),'ref':_0xcf958a,'icon':_0x28e5b0}));});_0x252d3d[_0x15014b(0x134)]=_0x15014b(0x15e);function _0x13569d(_0x18dd5b){const _0x14a5a8=_0x15014b;var _0x3eaa0b,_0x21ce99;let {mcpCoreConfig:_0x16b3ac,onSave:_0x45db37,loading:_0x4bc868=!0x1,config:_0x340a50,connectionStatus$:_0x344ab8,connectionError$:_0x3b55dd,currentApiKey$:_0x3574db,currentSessionId$:_0x138429}=_0x18dd5b,_0x194580=(0x0,_0x5b1179[_0x14a5a8(0x8f)])(_0x13cad6['LocaleService']),_0x150281=(0x0,_0x5b1179['useObservable'])(_0x344ab8,_0x23c1f9['MCPConnectionStatus'][_0x14a5a8(0x1ab)]),_0x2320b4=(0x0,_0x5b1179[_0x14a5a8(0x16a)])(_0x3b55dd,_0x23c1f9['MCPConnectionError'][_0x14a5a8(0x17c)]),_0x1f3779=(0x0,_0x5b1179[_0x14a5a8(0x16a)])(_0x138429,''),[_0x4108ac,_0x4d66fb]=(0x0,_0x557e69['useState'])((0x0,_0x5b1179[_0x14a5a8(0x16a)])(_0x3574db,'')||''),_0xf74bca=_0x340a50[_0x14a5a8(0x189)]&&_0x16b3ac[_0x14a5a8(0x18d)]&&(_0x16b3ac[_0x14a5a8(0x18d)][_0x14a5a8(0x16b)](_0x14a5a8(0x19f))||_0x16b3ac[_0x14a5a8(0x18d)][_0x14a5a8(0x16b)](_0x14a5a8(0x12a))),_0x4ee4c5=(_0x3eaa0b=_0x16b3ac['mcpServerUrl'])==null?void 0x0:_0x3eaa0b[_0x14a5a8(0x16b)](_0x14a5a8(0x19f)),_0x19c50d=(_0x21ce99=_0x16b3ac[_0x14a5a8(0x18d)])==null?void 0x0:_0x21ce99[_0x14a5a8(0x16b)](_0x14a5a8(0x12a)),_0xbfab1b=_0x4ee4c5?_0x14a5a8(0xab):_0x14a5a8(0x1b0),_0x299e08=_0x340a50[_0x14a5a8(0x189)]&&(_0x4ee4c5||_0x19c50d),[_0x752b4,_0x157112]=(0x0,_0x557e69[_0x14a5a8(0x12c)])(!_0x4108ac[_0x14a5a8(0xf9)]()),_0x3d84ee=(_0x1438b9,_0x572a2c)=>{const _0x2f7f99=_0x14a5a8;if(_0x572a2c===_0x23c1f9['MCPConnectionError']['UNAUTHORIZED'])return _0x2f7f99(0x1df);switch(_0x1438b9){case _0x23c1f9[_0x2f7f99(0xee)][_0x2f7f99(0x10e)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x23c1f9['MCPConnectionStatus'][_0x2f7f99(0xe9)]:case _0x23c1f9['MCPConnectionStatus'][_0x2f7f99(0x10f)]:return _0x2f7f99(0x82);case _0x23c1f9['MCPConnectionStatus'][_0x2f7f99(0x78)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x2309e4=(_0x129d8b,_0x170854)=>{const _0x49eddc=_0x14a5a8;if(_0x170854===_0x23c1f9[_0x49eddc(0x86)]['UNAUTHORIZED'])return _0x49eddc(0x1a3);switch(_0x129d8b){case _0x23c1f9[_0x49eddc(0xee)][_0x49eddc(0x10e)]:return'univer-bg-green-500';case _0x23c1f9['MCPConnectionStatus'][_0x49eddc(0xe9)]:case _0x23c1f9['MCPConnectionStatus'][_0x49eddc(0x10f)]:return _0x49eddc(0x190);case _0x23c1f9[_0x49eddc(0xee)]['FAILED']:return _0x49eddc(0x1a3);default:return _0x49eddc(0x11b);}},_0x4d544a=_0x1e9692=>{const _0x5af625=_0x14a5a8;switch(_0x1e9692){case _0x23c1f9[_0x5af625(0xee)][_0x5af625(0x10e)]:return _0x194580['t']('mcpConfig.connectionStatus.connected');case _0x23c1f9[_0x5af625(0xee)]['CONNECTING']:return _0x194580['t'](_0x5af625(0x123));case _0x23c1f9[_0x5af625(0xee)][_0x5af625(0x78)]:return _0x194580['t']('mcpConfig.connectionStatus.failed');case _0x23c1f9['MCPConnectionStatus'][_0x5af625(0x10f)]:return _0x194580['t'](_0x5af625(0x72));default:return _0x194580['t'](_0x5af625(0x81));}},_0x147c8e=_0x5c94e8=>{const _0x24e59e=_0x14a5a8;switch(_0x5c94e8){case _0x23c1f9[_0x24e59e(0x86)][_0x24e59e(0x1e7)]:return _0x194580['t'](_0x24e59e(0x79));case _0x23c1f9['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x194580['t'](_0x24e59e(0x1c8));case _0x23c1f9['MCPConnectionError'][_0x24e59e(0xd3)]:return _0x194580['t'](_0x24e59e(0x1e5));case _0x23c1f9['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x194580['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x1f9fb9=(0x0,_0x557e69[_0x14a5a8(0x19e)])(()=>{const _0x2c6a17=_0x14a5a8;_0x45db37({..._0x16b3ac,'apiKey':_0x4108ac[_0x2c6a17(0xf9)](),'enableAuth':!0x0});},[_0x16b3ac,_0x4108ac,!0x0,_0x45db37]),_0x50922c=_0x4108ac[_0x14a5a8(0xf9)]()[_0x14a5a8(0xd4)]>0x0;return(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[(0x0,_0x23712e['jsx'])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x154),'children':(0x0,_0x23712e['jsxs'])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x17a),'children':[(0x0,_0x23712e['jsx'])(_0x14a5a8(0x1f8),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':(0x0,_0x23712e[_0x14a5a8(0x1f0)])('span',{'className':_0x14a5a8(0x94),'children':'⚙'})}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])('div',{'children':(0x0,_0x23712e['jsx'])('p',{'className':_0x14a5a8(0xb9),'children':_0x194580['t']('mcpConfig.description')})})]})}),(0x0,_0x23712e[_0x14a5a8(0x168)])('div',{'className':_0x14a5a8(0x1b1),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':(0x0,_0x4ee172[_0x14a5a8(0x14e)])(_0x14a5a8(0x1f9),_0x3d84ee(_0x150281,_0x2320b4)),'children':(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0xbb),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':(0x0,_0x4ee172[_0x14a5a8(0x14e)])(_0x14a5a8(0x93),_0x2309e4(_0x150281,_0x2320b4))}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])('span',{'className':_0x14a5a8(0x17e),'children':_0x4d544a(_0x150281)})]})}),_0x2320b4!==_0x23c1f9[_0x14a5a8(0x86)][_0x14a5a8(0x17c)]&&(_0x150281===_0x23c1f9[_0x14a5a8(0xee)]['FAILED']||_0x2320b4===_0x23c1f9[_0x14a5a8(0x86)][_0x14a5a8(0x1e7)])&&(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x185),'children':(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x13b),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x167),{'className':_0x14a5a8(0xff),'children':'⚠️'}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x147c8e(_0x2320b4)})]})})]}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])('div',{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':(0x0,_0x23712e[_0x14a5a8(0x168)])('div',{'className':_0x14a5a8(0x1e4),'children':[(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x14a),'children':[(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x7b),{'className':_0x14a5a8(0xe4),'children':[(0x0,_0x23712e['jsx'])('span',{'children':'🔑'}),'\x20',_0x194580['t'](_0x14a5a8(0x137)),(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x167),{'className':_0x14a5a8(0xbd),'children':'*'}),_0xf74bca&&(0x0,_0x23712e['jsx'])('a',{'className':_0x14a5a8(0x12b),'title':_0x194580['t'](_0x14a5a8(0x98)),'role':_0x14a5a8(0x92),'onClick':()=>_0x157112(!0x0),'children':(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x474549,{})})]}),(0x0,_0x23712e['jsx'])(_0x4ee172[_0x14a5a8(0x18b)],{'type':_0x14a5a8(0x76),'placeholder':_0x194580['t'](_0x14a5a8(0x9e)),'value':_0x4108ac,'disabled':_0x4bc868,'autoComplete':_0x14a5a8(0xb4),'onChange':_0x4d66fb}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])('p',{'className':_0x14a5a8(0x11e),'children':_0x194580['t'](_0x14a5a8(0x158))})]}),_0xf74bca&&_0x752b4&&(0x0,_0x23712e[_0x14a5a8(0x168)])('div',{'className':_0x14a5a8(0x119),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x14a5a8(0x92),'onClick':()=>_0x157112(!0x1),'children':(0x0,_0x23712e['jsx'])(_0x31efd6,{'className':_0x14a5a8(0x193)})}),(0x0,_0x23712e['jsxs'])(_0x14a5a8(0x1f8),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':(0x0,_0x23712e['jsx'])('span',{'className':_0x14a5a8(0x1c7),'children':'🚀'})}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x7a),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])('h4',{'className':_0x14a5a8(0x203),'children':_0x194580['t'](_0x14a5a8(0x98))}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])('p',{'className':_0x14a5a8(0xdd),'children':_0x194580['t'](_0x14a5a8(0xc8))}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x118),'children':_0x299e08&&(0x0,_0x23712e[_0x14a5a8(0x168)])('a',{'className':_0x14a5a8(0x102),'href':_0xbfab1b,'target':'_blank','rel':_0x14a5a8(0x1b3),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x167),{'children':'🤖'}),_0x194580['t']('mcpConfig.apiApplyInfo.univerAiLabel'),(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x167),{'className':'univer-text-gray-400','children':'↗'})]})}),(0x0,_0x23712e['jsxs'])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x152),'children':['✨','\x20',_0x194580['t'](_0x14a5a8(0x1eb))]})]})]})]}),_0x340a50['showDeveloperTools']&&(0x0,_0x23712e['jsxs'])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x145),'children':[(0x0,_0x23712e[_0x14a5a8(0x168)])('h4',{'className':_0x14a5a8(0x12d),'children':[(0x0,_0x23712e['jsx'])(_0x14a5a8(0x167),{'children':'🔗'}),'\x20',_0x194580['t'](_0x14a5a8(0x176))]}),(0x0,_0x23712e['jsxs'])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x125),'children':[(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x17f),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x194580['t'](_0x14a5a8(0xc1))}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x14a),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x194580['t']('mcpConfig.configStepTitle')}),(0x0,_0x23712e['jsxs'])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x111),'children':[(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,_0x23712e['jsx'])('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x194580['t'](_0x14a5a8(0xe3))]}),(0x0,_0x23712e[_0x14a5a8(0x168)])('div',{'className':_0x14a5a8(0xbb),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])('span',{'className':_0x14a5a8(0xb3),'children':'2'}),_0x194580['t'](_0x14a5a8(0xce))]}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x194580['t'](_0x14a5a8(0x14f))]})]})]})]}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x14a),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x1cd),'children':_0x14a5a8(0xa4)}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])('div',{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0xc3),{'className':_0x14a5a8(0x1c4),'children':JSON[_0x14a5a8(0x1cc)]({'mcpServers':{'univer':{'url':_0x14a5a8(0x198)+(_0x1f3779||'<SESSION_ID>'),'type':_0x14a5a8(0x1c6),'headers':{'Authorization':_0x14a5a8(0x13f)+(_0x4108ac||_0x14a5a8(0x156))}}}},null,0x2)})})]}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x17f),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x1cd),'children':_0x194580['t'](_0x14a5a8(0xc0))}),(0x0,_0x23712e[_0x14a5a8(0x168)])('div',{'className':'univer-space-y-2','children':[(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x8c),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x10a),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])('div',{'className':_0x14a5a8(0x1ef),'children':_0x14a5a8(0x1c0)}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x11e),'children':_0x194580['t'](_0x14a5a8(0x8e))})]})]}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x8d)}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x10a),'children':[(0x0,_0x23712e['jsx'])('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x14a5a8(0xc2)}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x11e),'children':_0x194580['t'](_0x14a5a8(0x1a6))})]})]})]})]})]})]}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x4ee172['Button'],{'onClick':_0x1f9fb9,'disabled':!_0x50922c||_0x4bc868,'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':_0x4bc868?(0x0,_0x23712e[_0x14a5a8(0x168)])('span',{'className':_0x14a5a8(0xbb),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x167),{'children':'⟲'}),_0x194580['t'](_0x14a5a8(0x130))]}):(0x0,_0x23712e['jsxs'])(_0x14a5a8(0x167),{'className':_0x14a5a8(0xbb),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x15de38,{}),_0x194580['t'](_0x14a5a8(0xca))]})}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0xd8),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x167),{'className':_0x14a5a8(0xe1),'children':'💡'}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0xb0),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x121),'children':'Configuration\x20Notes:'}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'children':['•',_0x194580['t']('mcpConfig.note1')]}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'children':['•',_0x194580['t']('mcpConfig.note2')]})]})]})})]})})]});}let _0x14a9a6='mcp-ui.config';Symbol(_0x14a9a6);let _0x16265d={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x3137db(_0x31a45c){'@babel/helpers - typeof';const _0x92cdb6=_0x15014b;return _0x3137db=typeof Symbol==_0x92cdb6(0xec)&&typeof Symbol['iterator']=='symbol'?function(_0x24ee68){return typeof _0x24ee68;}:function(_0x18d70e){const _0x2490cb=_0x92cdb6;return _0x18d70e&&typeof Symbol=='function'&&_0x18d70e[_0x2490cb(0x12f)]===Symbol&&_0x18d70e!==Symbol[_0x2490cb(0x202)]?_0x2490cb(0xe5):typeof _0x18d70e;},_0x3137db(_0x31a45c);}function _0x4a5406(_0x4ee868,_0x27f275){const _0x237314=_0x15014b;if(_0x3137db(_0x4ee868)!=_0x237314(0x1ea)||!_0x4ee868)return _0x4ee868;var _0x2de035=_0x4ee868[Symbol[_0x237314(0x1da)]];if(_0x2de035!==void 0x0){var _0x3c3df3=_0x2de035['call'](_0x4ee868,_0x27f275||_0x237314(0x1db));if(_0x3137db(_0x3c3df3)!=_0x237314(0x1ea))return _0x3c3df3;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x27f275==='string'?String:Number)(_0x4ee868);}function _0x53e5c6(_0x5787ec){const _0x74e3c6=_0x15014b;var _0x224f39=_0x4a5406(_0x5787ec,_0x74e3c6(0x183));return _0x3137db(_0x224f39)==_0x74e3c6(0xe5)?_0x224f39:_0x224f39+'';}function _0x407c35(_0xa8029e,_0x1ba334,_0x5df767){return(_0x1ba334=_0x53e5c6(_0x1ba334))in _0xa8029e?Object['defineProperty'](_0xa8029e,_0x1ba334,{'value':_0x5df767,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xa8029e[_0x1ba334]=_0x5df767,_0xa8029e;}function _0x4df38f(_0x354153,_0x1f9973){return function(_0x56c56c,_0x3f813c){_0x1f9973(_0x56c56c,_0x3f813c,_0x354153);};}function _0x1852b0(_0x461d55,_0x2e65ca,_0x1e3bfc,_0x17fe4f){const _0x56fcd8=_0x15014b;var _0x5523de=arguments['length'],_0x159a15=_0x5523de<0x3?_0x2e65ca:_0x17fe4f===null?_0x17fe4f=Object[_0x56fcd8(0xcd)](_0x2e65ca,_0x1e3bfc):_0x17fe4f,_0x19a83e;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x56fcd8(0xec))_0x159a15=Reflect[_0x56fcd8(0x1a0)](_0x461d55,_0x2e65ca,_0x1e3bfc,_0x17fe4f);else{for(var _0x286f07=_0x461d55[_0x56fcd8(0xd4)]-0x1;_0x286f07>=0x0;_0x286f07--)(_0x19a83e=_0x461d55[_0x286f07])&&(_0x159a15=(_0x5523de<0x3?_0x19a83e(_0x159a15):_0x5523de>0x3?_0x19a83e(_0x2e65ca,_0x1e3bfc,_0x159a15):_0x19a83e(_0x2e65ca,_0x1e3bfc))||_0x159a15);}return _0x5523de>0x3&&_0x159a15&&Object[_0x56fcd8(0x1a1)](_0x2e65ca,_0x1e3bfc,_0x159a15),_0x159a15;}let _0xd5cbaa=_0x15014b(0x179),_0x45096b=_0x15014b(0xcf),_0x5ea3d0=class extends _0x13cad6[_0x15014b(0x113)]{constructor(_0x444e52,_0x245962,_0x4f5cbc,_0x2bf769,_0x40c8a4,_0x2b08cc,_0xd23fa0,_0x3fe701,_0x360e68,_0xfc9b45){const _0x11ca8a=_0x15014b;super(),this['_injector']=_0x444e52,this[_0x11ca8a(0x71)]=_0x245962,this[_0x11ca8a(0xd6)]=_0x4f5cbc,this[_0x11ca8a(0x112)]=_0x2bf769,this['_dialogService']=_0x40c8a4,this[_0x11ca8a(0x171)]=_0x2b08cc,this[_0x11ca8a(0x1b5)]=_0xd23fa0,this[_0x11ca8a(0x1f7)]=_0x3fe701,this['_logService']=_0x360e68,this[_0x11ca8a(0x1f5)]=_0xfc9b45,_0x407c35(this,_0x11ca8a(0x16d),new _0x866f4d[(_0x11ca8a(0x13d))](!0x1)),_0x407c35(this,_0x11ca8a(0x115),new _0x866f4d[(_0x11ca8a(0x13d))]({})),_0x407c35(this,_0x11ca8a(0x162),new _0x866f4d[(_0x11ca8a(0x13d))]({})),_0x407c35(this,'_apiKey$',new _0x866f4d[(_0x11ca8a(0x13d))]('')),_0x407c35(this,'_handleConfigSave',async _0x14a03f=>{const _0x2221b1=_0x11ca8a;this['_loading$'][_0x2221b1(0x9c)](!0x0);try{var _0x1d550b,_0x28d9c5;let _0x298587=await this['_validateConfig'](_0x14a03f);if(!_0x298587[_0x2221b1(0x74)]){this[_0x2221b1(0x171)]['show']({'type':_0x4ee172[_0x2221b1(0x135)][_0x2221b1(0xdf)],'content':_0x298587[_0x2221b1(0x181)]||this[_0x2221b1(0x1f7)]['t'](_0x2221b1(0x15d))});return;}_0x14a03f[_0x2221b1(0x129)]?await this['_localStorageService'][_0x2221b1(0xe0)](_0xd5cbaa,_0x14a03f[_0x2221b1(0x129)][_0x2221b1(0xf9)]()):await this[_0x2221b1(0x112)][_0x2221b1(0x165)](_0xd5cbaa),this[_0x2221b1(0x19d)][_0x2221b1(0x9c)](((_0x1d550b=_0x14a03f[_0x2221b1(0x129)])==null?void 0x0:_0x1d550b['trim']())||''),this[_0x2221b1(0x1f5)][_0x2221b1(0x91)]({'Authorization':_0x2221b1(0x13f)+((_0x28d9c5=_0x14a03f['apiKey'])==null?void 0x0:_0x28d9c5[_0x2221b1(0xf9)]())}),this[_0x2221b1(0x171)][_0x2221b1(0x1f3)]({'type':_0x4ee172[_0x2221b1(0x135)]['Success'],'content':this[_0x2221b1(0x1f7)]['t'](_0x2221b1(0xbf))}),setTimeout(()=>{this['_dialogService']['close'](_0x45096b);},0x320);}catch(_0x45f260){this[_0x2221b1(0x1af)][_0x2221b1(0x8b)](_0x2221b1(0xba),_0x45f260),this[_0x2221b1(0x171)][_0x2221b1(0x1f3)]({'type':_0x4ee172['MessageType'][_0x2221b1(0xdf)],'content':this[_0x2221b1(0x1f7)]['t'](_0x2221b1(0x1de))});}finally{this[_0x2221b1(0x16d)][_0x2221b1(0x9c)](!0x1);}}),this[_0x11ca8a(0x83)](),this[_0x11ca8a(0x7d)](),this['_registerComponent']();}[_0x15014b(0x195)](){const _0x41e2c2=_0x15014b;let _0x1365ed=this[_0x41e2c2(0xd6)][_0x41e2c2(0x77)](_0x14a9a6);_0x1365ed!=null&&_0x1365ed[_0x41e2c2(0x189)]&&this[_0x41e2c2(0x15f)][_0x41e2c2(0x1cb)]({'id':_0x45096b,'title':{'title':this[_0x41e2c2(0x1f7)]['t'](_0x41e2c2(0xdc))},'children':{'label':_0x41e2c2(0x84)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3153f3=_0x41e2c2;this[_0x3153f3(0x15f)][_0x3153f3(0x18e)](_0x45096b);}});}['getCurrentConfig'](){const _0x5f572c=_0x15014b;return this[_0x5f572c(0x115)][_0x5f572c(0x12e)];}[_0x15014b(0x104)](){const _0x385a6e=_0x15014b;this[_0x385a6e(0x9f)](this[_0x385a6e(0x1b5)]['register']('MCPConfigPanel',this[_0x385a6e(0xa2)]()));}['_createConfigPanelComponent'](){const _0x4f5272=_0x15014b;return(0x0,_0x5b1179[_0x4f5272(0x19a)])(()=>{const _0x4ef594=_0x4f5272;var _0x55e814,_0x33e454,_0x2a779f;return(0x0,_0x23712e['jsx'])(_0x13569d,{'config':this[_0x4ef594(0x162)]['value'],'mcpCoreConfig':this[_0x4ef594(0x115)]['value'],'currentApiKey$':this[_0x4ef594(0x19d)],'onSave':this['_handleConfigSave'],'loading':this[_0x4ef594(0x16d)][_0x4ef594(0x12e)],'connectionStatus$':(_0x55e814=this['_mcpConnectionController'])==null?void 0x0:_0x55e814[_0x4ef594(0x1aa)],'connectionError$':(_0x33e454=this['_mcpConnectionController'])==null?void 0x0:_0x33e454[_0x4ef594(0xf3)],'currentSessionId$':(_0x2a779f=this[_0x4ef594(0x1f5)])==null?void 0x0:_0x2a779f[_0x4ef594(0x133)]});},this[_0x4f5272(0x15a)]);}[_0x15014b(0x83)](){const _0x19fb87=_0x15014b;this[_0x19fb87(0x9f)](this['_configService'][_0x19fb87(0xc5)](_0x23c1f9[_0x19fb87(0x148)])[_0x19fb87(0x1be)](_0x336b19=>{const _0x5d75a7=_0x19fb87;this[_0x5d75a7(0x115)][_0x5d75a7(0x9c)](_0x336b19||{});}));let _0x578125=this['_configService'][_0x19fb87(0x77)](_0x23c1f9[_0x19fb87(0x148)]);this[_0x19fb87(0x115)][_0x19fb87(0x9c)](_0x578125||{}),this[_0x19fb87(0x9f)](this[_0x19fb87(0xd6)][_0x19fb87(0xc5)](_0x14a9a6)[_0x19fb87(0x1be)](_0x23307b=>{const _0x3fc342=_0x19fb87;this[_0x3fc342(0x162)][_0x3fc342(0x9c)](_0x23307b||{});}));let _0xae5416=this['_configService'][_0x19fb87(0x77)](_0x14a9a6);this[_0x19fb87(0x162)][_0x19fb87(0x9c)](_0xae5416||{});}async[_0x15014b(0x7d)](){const _0x444847=_0x15014b;let _0x4f0f07=this[_0x444847(0xd6)]['getConfig'](_0x14a9a6);if(!(_0x4f0f07!=null&&_0x4f0f07[_0x444847(0x189)]))return;let _0x239fcc=await this[_0x444847(0x112)][_0x444847(0x127)](_0xd5cbaa);_0x239fcc&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':'Bearer\x20'+_0x239fcc}),this[_0x444847(0x19d)][_0x444847(0x9c)](_0x239fcc));}async['_validateConfig'](_0x92ef4a){const _0x19a1e3=_0x15014b;if(!_0x92ef4a['apiKey']||_0x92ef4a['apiKey'][_0x19a1e3(0xf9)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x19a1e3(0x1f7)]['t'](_0x19a1e3(0x1c1))};if(_0x92ef4a['apiKey']['trim']()[_0x19a1e3(0xd4)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x19a1e3(0x96))};try{let _0x46d165=await this[_0x19a1e3(0x15a)][_0x19a1e3(0xa9)](_0x23c1f9['MCPConnectionController'])['validateApiKey'](_0x92ef4a[_0x19a1e3(0x129)][_0x19a1e3(0xf9)]());return _0x46d165['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x46d165[_0x19a1e3(0x8b)]||this[_0x19a1e3(0x1f7)]['t'](_0x19a1e3(0x10d))};}catch(_0x1b8dbb){return console[_0x19a1e3(0x1ac)](_0x19a1e3(0xfc),_0x1b8dbb),{'isValid':!0x0};}}};_0x5ea3d0=_0x1852b0([_0x4df38f(0x0,(0x0,_0x13cad6[_0x15014b(0x109)])(_0x13cad6[_0x15014b(0xfa)])),_0x4df38f(0x1,_0x5b1179[_0x15014b(0xf7)]),_0x4df38f(0x2,_0x13cad6[_0x15014b(0x1d0)]),_0x4df38f(0x3,_0x13cad6[_0x15014b(0x1dd)]),_0x4df38f(0x4,_0x5b1179[_0x15014b(0x10c)]),_0x4df38f(0x5,_0x5b1179[_0x15014b(0xc6)]),_0x4df38f(0x6,(0x0,_0x13cad6['Inject'])(_0x5b1179['ComponentManager'])),_0x4df38f(0x7,(0x0,_0x13cad6[_0x15014b(0x109)])(_0x13cad6['LocaleService'])),_0x4df38f(0x8,_0x13cad6[_0x15014b(0x19c)]),_0x4df38f(0x9,(0x0,_0x13cad6[_0x15014b(0x109)])(_0x23c1f9[_0x15014b(0x155)]))],_0x5ea3d0);let _0x5eeebf={'id':_0x15014b(0xeb),'type':_0x13cad6['CommandType'][_0x15014b(0x131)],'handler':async(_0x118523,_0x429c6b)=>(_0x118523['get'](_0x5ea3d0)[_0x15014b(0x195)](),!0x0)};function _0x5f0c1c(_0x284471,_0x9027fc){const _0x4a7865=_0x15014b;switch(_0x284471){case _0x23c1f9[_0x4a7865(0xee)]['DISCONNECTED']:return _0x4a7865(0x14b);case _0x23c1f9[_0x4a7865(0xee)][_0x4a7865(0xe9)]:return _0x4a7865(0x126);case _0x23c1f9[_0x4a7865(0xee)][_0x4a7865(0x10e)]:return _0x4a7865(0x1f4);case _0x23c1f9['MCPConnectionStatus'][_0x4a7865(0x78)]:switch(_0x9027fc){case _0x23c1f9['MCPConnectionError']['UNAUTHORIZED']:return'mcpStatus.unauthorized';case _0x23c1f9[_0x4a7865(0x86)][_0x4a7865(0x1e3)]:return _0x4a7865(0xf6);case _0x23c1f9[_0x4a7865(0x86)]['NETWORK_ERROR']:return _0x4a7865(0x197);case _0x23c1f9[_0x4a7865(0x86)]['MAX_RETRIES_EXCEEDED']:return _0x4a7865(0x17d);default:return _0x4a7865(0x1fb);}case _0x23c1f9[_0x4a7865(0xee)][_0x4a7865(0x10f)]:return _0x4a7865(0x11f);default:return _0x4a7865(0x201);}}function _0x30f97b(_0x55d997,_0x259a48,_0x18557f,_0x297a64=!0x0){const _0x76c40b=_0x15014b;let _0x8a6f91=_0x5f0c1c(_0x55d997,_0x259a48),_0x49d18d=_0x18557f['t'](_0x8a6f91);return _0x297a64?_0x55d997===_0x23c1f9[_0x76c40b(0xee)]['DISCONNECTED']&&_0x259a48===_0x23c1f9['MCPConnectionError'][_0x76c40b(0x1e7)]?_0x49d18d+_0x76c40b(0x11d)+_0x18557f['t'](_0x76c40b(0x1bd)):_0x55d997===_0x23c1f9[_0x76c40b(0xee)][_0x76c40b(0x10e)]?''+_0x49d18d:_0x55d997===_0x23c1f9['MCPConnectionStatus']['DISCONNECTED']||_0x55d997===_0x23c1f9['MCPConnectionStatus'][_0x76c40b(0x78)]?_0x49d18d+'\x20-\x20'+_0x18557f['t'](_0x76c40b(0x147)):_0x49d18d:_0x49d18d;}function _0x5579ed(_0x23098b){const _0x5e54fb=_0x15014b;switch(_0x23098b){case _0x23c1f9['MCPConnectionStatus'][_0x5e54fb(0x10e)]:return _0x5e54fb(0xb6);case _0x23c1f9[_0x5e54fb(0xee)][_0x5e54fb(0xe9)]:case _0x23c1f9[_0x5e54fb(0xee)][_0x5e54fb(0x10f)]:return'univer-text-yellow-500';case _0x23c1f9[_0x5e54fb(0xee)][_0x5e54fb(0x78)]:case _0x23c1f9[_0x5e54fb(0xee)]['DISCONNECTED']:return'univer-text-red-500';default:return'univer-text-gray-500';}}function _0x111427(_0x586bf4){const _0xc17d8c=_0x15014b;let {status$:_0x1e8abc,error$:_0x4e50e5,onConfigure:_0x5822dc,showClickable:_0x63d14=!0x0}=_0x586bf4,_0x54f972=(0x0,_0x5b1179[_0xc17d8c(0x16a)])(_0x1e8abc,_0x23c1f9[_0xc17d8c(0xee)][_0xc17d8c(0x1ab)]),_0x242d95=(0x0,_0x5b1179[_0xc17d8c(0x16a)])(_0x4e50e5,_0x23c1f9[_0xc17d8c(0x86)][_0xc17d8c(0x17c)]),_0x5cdc5b=(0x0,_0x5b1179[_0xc17d8c(0x8f)])(_0x13cad6[_0xc17d8c(0x1e9)]),_0x5c756d=_0x54f972===_0x23c1f9[_0xc17d8c(0xee)][_0xc17d8c(0x10e)];_0x54f972===_0x23c1f9[_0xc17d8c(0xee)][_0xc17d8c(0xe9)]||_0x23c1f9['MCPConnectionStatus'][_0xc17d8c(0x10f)];let _0x1292d5=_0x5cdc5b['t'](_0x5f0c1c(_0x54f972,_0x242d95)),_0x2ee9af=_0x30f97b(_0x54f972,_0x242d95,_0x5cdc5b,_0x63d14),_0x372083=_0x5579ed(_0x54f972),_0x2ddc5a=_0x5c756d?(0x0,_0x23712e[_0xc17d8c(0x1f0)])(_0x252d3d,{}):(0x0,_0x23712e[_0xc17d8c(0x1f0)])(_0x5099b1,{}),_0x2d244f=(0x0,_0x557e69['useCallback'])(()=>{_0x63d14&&_0x5822dc&&_0x5822dc();},[_0x63d14,_0x5822dc]);function _0x103ced(){const _0x35944c=_0xc17d8c;return(0x0,_0x23712e[_0x35944c(0x168)])('div',{'className':(0x0,_0x4ee172['clsx'])(_0x35944c(0x122),_0x63d14&&_0x5822dc&&_0x35944c(0x173)),'role':_0x35944c(0x92),'onClick':_0x63d14&&_0x5822dc?_0x2d244f:void 0x0,'children':[(0x0,_0x23712e[_0x35944c(0x1f0)])(_0x35944c(0x1f8),{'className':(0x0,_0x4ee172[_0x35944c(0x14e)])(_0x35944c(0x1ca),_0x372083),'children':_0x2ddc5a}),(0x0,_0x23712e[_0x35944c(0x1f0)])(_0x35944c(0x1f8),{'className':_0x35944c(0x184),'children':_0x1292d5})]});}return(0x0,_0x23712e[_0xc17d8c(0x1f0)])(_0x4ee172[_0xc17d8c(0x7c)],{'title':_0x2ee9af,'placement':_0xc17d8c(0xad),'children':_0x103ced()});}let _0x2c51ca=class extends _0x13cad6[_0x15014b(0x113)]{constructor(_0x3a9bda,_0x435d64,_0x142970,_0x156a5f){const _0x5d2c14=_0x15014b;super(),this[_0x5d2c14(0x15a)]=_0x3a9bda,this['_connectionController']=_0x435d64,this[_0x5d2c14(0x71)]=_0x142970,this[_0x5d2c14(0xd6)]=_0x156a5f,this['_initAutoConnect'](),this[_0x5d2c14(0x1fc)]();}['_initAutoConnect'](){const _0x3fa45e=_0x15014b;let _0x31b8a5=this[_0x3fa45e(0xd6)][_0x3fa45e(0x77)](_0x14a9a6);_0x31b8a5!=null&&_0x31b8a5['showDeveloperTools']&&(this['_connectionController'][_0x3fa45e(0xdb)]=!0x1);}['_initStatusComponent'](){const _0x8cdc9e=_0x15014b;let _0x43b74f=this[_0x8cdc9e(0xd6)]['getConfig'](_0x14a9a6);(_0x43b74f==null?void 0x0:_0x43b74f['showStatus'])!==!0x1&&this[_0x8cdc9e(0x9f)](this[_0x8cdc9e(0x71)][_0x8cdc9e(0x87)](_0x5b1179['BuiltInUIPart'][_0x8cdc9e(0x1f2)],()=>{const _0x5e3e79=_0x8cdc9e;var _0x3bf2e4;return(0x0,_0x5b1179[_0x5e3e79(0x19a)])(_0x3630b2({'status$':this[_0x5e3e79(0xf5)][_0x5e3e79(0x1aa)],'error$':this[_0x5e3e79(0xf5)][_0x5e3e79(0xf3)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x3bf2e4=_0x43b74f==null?void 0x0:_0x43b74f['showDeveloperTools'])==null?!0x1:_0x3bf2e4}),this[_0x5e3e79(0x15a)]);}));}[_0x15014b(0x9d)](){const _0x4f9e7d=_0x15014b;this[_0x4f9e7d(0x15a)][_0x4f9e7d(0xa9)](_0x5ea3d0)[_0x4f9e7d(0x195)]();}};_0x2c51ca=_0x1852b0([_0x4df38f(0x0,(0x0,_0x13cad6[_0x15014b(0x109)])(_0x13cad6[_0x15014b(0xfa)])),_0x4df38f(0x1,(0x0,_0x13cad6[_0x15014b(0x109)])(_0x23c1f9[_0x15014b(0x155)])),_0x4df38f(0x2,_0x5b1179[_0x15014b(0xf7)]),_0x4df38f(0x3,_0x13cad6[_0x15014b(0x1d0)])],_0x2c51ca);function _0x3630b2(_0x899e50){let {status$:_0x3f9774,error$:_0x2fee63,onConfigure:_0x5028e0,showClickable:_0x102d00}=_0x899e50;return function(){return(0x0,_0x23712e['jsx'])(_0x111427,{'status$':_0x3f9774,'error$':_0x2fee63,'onConfigure':_0x5028e0,'showClickable':_0x102d00});};}function _0x13b7eb(_0xa5e12a){const _0x213e96=_0x15014b;return{'id':_0x5eeebf['id'],'type':_0x5b1179[_0x213e96(0x16c)][_0x213e96(0xfb)],'icon':_0x213e96(0x196),'title':_0x213e96(0xdc),'tooltip':_0x213e96(0xdc)};}let _0x47e285={[_0x5b1179[_0x15014b(0xb8)][_0x15014b(0xa7)]]:{[_0x5eeebf['id']]:{'order':0xa,'menuItemFactory':_0x13b7eb}}},_0x17eac9=class extends _0x13cad6['Disposable']{constructor(_0x5e5ae0,_0x1d436a){const _0x28380f=_0x15014b;super(),this[_0x28380f(0xb1)]=_0x5e5ae0,this['_menuManagerService']=_0x1d436a,this[_0x28380f(0x180)](),this[_0x28380f(0x1c3)]();}[_0x15014b(0x180)](){const _0x3c0ebd=_0x15014b;[_0x5eeebf][_0x3c0ebd(0x150)](_0x2a6858=>{const _0x508984=_0x3c0ebd;this[_0x508984(0x9f)](this['_commandService'][_0x508984(0xcc)](_0x2a6858));});}['_initializeMenus'](){const _0x7ce5de=_0x15014b;this[_0x7ce5de(0xd0)][_0x7ce5de(0x106)](_0x47e285);}};_0x17eac9=_0x1852b0([_0x4df38f(0x0,_0x13cad6[_0x15014b(0x1e1)]),_0x4df38f(0x1,_0x5b1179[_0x15014b(0x188)])],_0x17eac9);let _0x49d299={'mcpStatus':{'disconnected':_0x15014b(0x1c2),'connecting':'MCP\x20Connecting...','connected':_0x15014b(0x1f1),'failed':_0x15014b(0xa3),'retrying':'MCP\x20Retrying...','unknown':_0x15014b(0xed),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x15014b(0x1d9),'maxRetriesExceeded':_0x15014b(0x14d),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x15014b(0x160)},'mcpConfig':{'title':_0x15014b(0xa4),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x15014b(0x15c),'apiKeyHint':_0x15014b(0x13a),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x15014b(0xd5),'connectionInfo':_0x15014b(0x89),'mcpClientConfig':_0x15014b(0x89),'configInstructions':_0x15014b(0x95),'configStepTitle':_0x15014b(0x1d7),'configStep1':_0x15014b(0x1ed),'configStep2':_0x15014b(0x1dc),'configStep3':_0x15014b(0x105),'sessionId':_0x15014b(0x192),'sessionIdDescription':_0x15014b(0x15b),'authorizationDescription':_0x15014b(0x97),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x15014b(0x1a2),'save':'Save\x20Configuration','saving':_0x15014b(0x1c9),'note1':_0x15014b(0x1ff),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x15014b(0x128),'configError':_0x15014b(0xf4),'apiApplyInfo':{'title':_0x15014b(0x194),'description':_0x15014b(0x166),'univerAiLabel':_0x15014b(0x1b7),'getStarted':_0x15014b(0x1bb)},'validation':{'apiKeyRequired':_0x15014b(0x177),'apiKeyTooShort':_0x15014b(0x100),'invalidConfig':_0x15014b(0xf8),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x15014b(0x8a),'failed':_0x15014b(0xaa),'retrying':_0x15014b(0x164)},'connectionError':{'unauthorized':_0x15014b(0x7f),'sessionOccupied':_0x15014b(0x182),'networkError':_0x15014b(0x1ad),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},_0x134e7e={'mcpStatus':{'disconnected':_0x15014b(0xd7),'connecting':'MCP\x20连接中...','connected':_0x15014b(0x199),'failed':'MCP\x20连接失败','retrying':_0x15014b(0x1a4),'unknown':_0x15014b(0x186),'unauthorized':_0x15014b(0x110),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x15014b(0xc7),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x15014b(0x1ba),'clickToConfigure':_0x15014b(0x1a8)},'mcpConfig':{'title':_0x15014b(0xa5),'description':_0x15014b(0xe8),'apiKey':_0x15014b(0x178),'apiKeyPlaceholder':_0x15014b(0x1d2),'apiKeyHint':_0x15014b(0x187),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x15014b(0x1d3),'configInstructions':_0x15014b(0x9b),'configStepTitle':_0x15014b(0x151),'configStep1':_0x15014b(0x174),'configStep2':_0x15014b(0xd9),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x15014b(0x143),'sessionIdDescription':_0x15014b(0x18a),'authorizationDescription':_0x15014b(0x73),'configParameters':_0x15014b(0x1a5),'maxRetries':_0x15014b(0x157),'save':_0x15014b(0x1c5),'saving':_0x15014b(0xd2),'note1':_0x15014b(0xf2),'note2':_0x15014b(0x153),'configSaved':'配置保存成功','configError':_0x15014b(0x101),'apiApplyInfo':{'title':_0x15014b(0x1d8),'description':_0x15014b(0x191),'univerAiLabel':_0x15014b(0xa6),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x15014b(0xea),'invalidConfig':_0x15014b(0xa8),'invalidApiKey':_0x15014b(0x1d5)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x15014b(0x124),'failed':'连接失败','retrying':_0x15014b(0x146)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x15014b(0xe2),'networkError':_0x15014b(0x149),'maxRetriesExceeded':_0x15014b(0x7e)}}};var _0x1c51f1=_0x15014b(0x1ec),_0x12fc1c=_0x15014b(0x1fe);let _0x229321=class extends _0x13cad6['Plugin']{constructor(_0x4c58a1=_0x16265d,_0x2c803e,_0x35b374,_0x1fa006,_0x1ec19c,_0x47843d){const _0x14a38c=_0x15014b;super(),this[_0x14a38c(0x16f)]=_0x4c58a1,this[_0x14a38c(0x15a)]=_0x2c803e,this[_0x14a38c(0xd6)]=_0x35b374,this['_uiPartsService']=_0x1fa006,this[_0x14a38c(0x112)]=_0x1ec19c,this[_0x14a38c(0x1f7)]=_0x47843d;let {..._0x883824}=(0x0,_0x13cad6['merge'])({},_0x16265d,this[_0x14a38c(0x16f)]);this[_0x14a38c(0xd6)][_0x14a38c(0x1cf)](_0x14a9a6,_0x883824);}async[_0x15014b(0x1e0)](){const _0x4cf826=_0x15014b;let _0x514571=[[_0x2c51ca],[_0x5ea3d0],[_0x17eac9]];this[_0x4cf826(0x15a)]['has'](_0x11d426[_0x4cf826(0xb5)])||_0x514571['push']([_0x11d426[_0x4cf826(0xb5)],{'useClass':_0x11d426[_0x4cf826(0xbc)]}]),_0x514571[_0x4cf826(0x150)](_0x5dcd8d=>this[_0x4cf826(0x15a)][_0x4cf826(0x1d4)](_0x5dcd8d)),this[_0x4cf826(0x15a)][_0x4cf826(0xa9)](_0x2c51ca),this[_0x4cf826(0x15a)]['get'](_0x5ea3d0),this[_0x4cf826(0x15a)][_0x4cf826(0xa9)](_0x17eac9);}};_0x407c35(_0x229321,_0x15014b(0xe7),_0x15014b(0x139)),_0x407c35(_0x229321,_0x15014b(0x1bf),_0x1c51f1),_0x407c35(_0x229321,_0x15014b(0xa1),_0x12fc1c),_0x229321=_0x1852b0([(0x0,_0x13cad6[_0x15014b(0x1ee)])(_0x23c1f9[_0x15014b(0x1ae)]),_0x4df38f(0x1,(0x0,_0x13cad6['Inject'])(_0x13cad6[_0x15014b(0xfa)])),_0x4df38f(0x2,_0x13cad6[_0x15014b(0x1d0)]),_0x4df38f(0x3,_0x5b1179[_0x15014b(0xf7)]),_0x4df38f(0x4,_0x13cad6[_0x15014b(0x1dd)]),_0x4df38f(0x5,(0x0,_0x13cad6[_0x15014b(0x109)])(_0x13cad6[_0x15014b(0x1e9)]))],_0x229321),_0x5eb436['MCPConfigPanel']=_0x13569d,Object[_0x15014b(0x1a1)](_0x5eb436,_0x15014b(0x11a),{'enumerable':!0x0,'get':function(){return _0x5ea3d0;}}),Object[_0x15014b(0x1a1)](_0x5eb436,_0x15014b(0x1b2),{'enumerable':!0x0,'get':function(){return _0x2c51ca;}}),_0x5eb436[_0x15014b(0x169)]=_0x111427,Object['defineProperty'](_0x5eb436,'MCPUIMenuController',{'enumerable':!0x0,'get':function(){return _0x17eac9;}}),_0x5eb436[_0x15014b(0x117)]=_0x5eeebf,Object[_0x15014b(0x1a1)](_0x5eb436,_0x15014b(0x138),{'enumerable':!0x0,'get':function(){return _0x229321;}}),_0x5eb436[_0x15014b(0x161)]=_0x49d299,_0x5eb436['zhCN']=_0x134e7e;}));function _0x661d(_0x36bf61,_0x51ccc6){_0x36bf61=_0x36bf61-0x71;const _0x42fd11=_0x42fd();let _0x661d10=_0x42fd11[_0x36bf61];return _0x661d10;}function _0x42fd(){const _0x2c33ab=['_componentManager','@univerjs/ui','Univer\x20AI\x20Console','UniverUi','close-icon','点击连接\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','tag','mcpStatus.clickToConfigure','subscribe','packageName','univer_session_id:','mcpConfig.validation.apiKeyRequired','MCP\x20Disconnected','_initializeMenus','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','保存配置','http','univer-text-blue-600','mcpConfig.connectionError.sessionOccupied','Saving...','univer-mr-2\x20univer-flex\x20univer-text-xl','open','stringify','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','currentColor','setConfig','IConfigService','41252MCmIdo','请输入您的\x20API\x20密钥','MCP\x20客户端配置','add','API\x20密钥无效,请检查密钥是否正确','svg','Configuration\x20Steps:','什么是\x20API\x20密钥?','MCP:\x20Network\x20Error','toPrimitive','default','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','ILocalStorageService','mcpConfig.configError','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','onStarting','ICommandService','amd','SESSION_ID_OCCUPIED','univer-space-y-5','mcpConfig.connectionError.networkError','@univerjs/design','UNAUTHORIZED','1097636wzbRyx','LocaleService','object','mcpConfig.apiApplyInfo.getStarted','@univerjs-pro/mcp-ui','Copy\x20the\x20JSON\x20configuration\x20below','DependentOn','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','jsx','MCP\x20Connected','HEADER_MENU','show','mcpStatus.connected','_mcpConnectionController','url(#off-line-icon_clip0_910_343)','_localeService','div','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','M0\x200H16V16H0z','mcpStatus.failed','_initStatusComponent','attrs','0.22.0','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','on-line-icon_clip0_910_349','mcpStatus.unknown','prototype','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','off-line-icon','_uiPartsService','mcpConfig.connectionStatus.retrying','带有\x20Bearer\x20前缀的\x20API\x20密钥。','isValid','forwardRef','text','getConfig','FAILED','mcpConfig.connectionError.unauthorized','univer-flex-1','label','Tooltip','_loadStoredApiKey','超出最大重试次数,请稍后再试','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','CloseIcon','mcpConfig.connectionStatus.disconnected','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_initConfigSync','MCPConfigPanel','UniverCore','MCPConnectionError','registerComponent','none','MCP\x20Client\x20Configuration','Connected','error','univer-flex\x20univer-items-start\x20univer-gap-3','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.sessionIdDescription','useDependency','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','__setCustomHeaders','button','univer-size-2\x20univer-rounded-full','univer-text-white','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.validation.apiKeyTooShort','API\x20key\x20with\x20Bearer\x20prefix.','mcpConfig.apiApplyInfo.title','toString','18XbBYKv','将以下配置添加到您的\x20MCP\x20客户端设置中:','next','_handleConfigure','mcpConfig.apiKeyPlaceholder','disposeWithMe','rxjs','version','_createConfigPanelComponent','MCP\x20Connection\x20Failed','MCP\x20Configuration','MCP\x20配置','Univer\x20AI\x20控制台','OTHERS','配置无效','get','Connection\x20Failed','https://console.univer.plus','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','bottom','CheckMarkIcon','xlink:href','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_commandService','UniverNetwork','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','off','ISocketService','univer-text-green-500','round','RibbonStartGroup','univer-text-sm\x20univer-text-gray-500','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-flex\x20univer-items-center\x20univer-gap-2','WebSocketService','univer-text-red-500','React','mcpConfig.configSaved','mcpConfig.configParameters','mcpConfig.configInstructions','Authorization:','pre','use','subscribeConfigValue$','IMessageService','MCP:\x20网络错误','mcpConfig.apiApplyInfo.description','colorChannel1','mcpConfig.save','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','registerCommand','getOwnPropertyDescriptor','mcpConfig.configStep2','mcp-config-dialog','_menuManagerService','mask','保存中...','NETWORK_ERROR','length','Enable\x20authentication\x20for\x20secure\x20connections','_configService','MCP\x20已断开','univer-flex\x20univer-gap-3','将配置添加到您的\x20MCP\x20客户端设置文件中','0\x200\x2016\x2016','enableAutoConnect','mcpConfig.title','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','fill','Error','setItem','univer-shrink-0\x20univer-text-blue-500','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.configStep1','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','symbol','clipPath','pluginName','配置\x20MCP\x20使用\x20AI\x20操作电子表格','CONNECTING','API\x20密钥长度至少需要\x2010\x20位','mcp-ui.command.openConfigPanel','function','MCP\x20Unknown\x20Status','MCPConnectionStatus','toStringTag','idSuffix','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','配置更改将立即生效','connectionError$','Failed\x20to\x20save\x20configuration','_connectionController','mcpStatus.sessionOccupied','IUIPartsService','Invalid\x20configuration','trim','Injector','BUTTON','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','@univerjs/network','current','univer-shrink-0\x20univer-text-red-500','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','配置保存失败','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','path','_registerComponent','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mergeMenu','evenodd','6949256JmqHTm','Inject','univer-min-w-0\x20univer-flex-1','defs','IDialogService','mcpConfig.validation.invalidApiKey','CONNECTED','RETRYING','MCP:\x20未授权','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','_localStorageService','Disposable','univerjs-icon\x20univerjs-icon-','_mcpCoreConfig$','exports','OpenMCPConfigPanelCommand','univer-flex\x20univer-flex-wrap\x20univer-gap-2','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','MCPConfigUIController','univer-bg-gray-500','1393007QgknVI','\x20-\x20','univer-text-xs\x20univer-text-gray-500','mcpStatus.retrying','substring','univer-font-medium','univer-flex\x20univer-items-center','mcpConfig.connectionStatus.connecting','已连接','univer-space-y-4','mcpStatus.connecting','getItem','Configuration\x20saved\x20successfully','apiKey','univer.ai','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','useState','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','value','constructor','mcpConfig.saving','COMMAND','url(#on-line-icon_clip0_910_349)','sessionId$','displayName','MessageType','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','mcpConfig.apiKey','UniverMCPUIPlugin','MCP_UI_PLUGIN','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-flex\x20univer-items-start\x20univer-gap-2','children','BehaviorSubject','white','Bearer\x20','OffLineIcon','off-line-icon_clip0_910_343','1053390YPxEWe','会话ID','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','重连中...','mcpStatus.clickToConnect','MCP_PLUGIN_CONFIG_KEY','网络连接错误,请检查您的网络连接','univer-space-y-2','mcpStatus.disconnected','9NxtDid','MCP:\x20Max\x20Retries\x20Exceeded','clsx','mcpConfig.configStep3','forEach','配置步骤:','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','您的\x20API\x20密钥安全存储在本地存储中','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCPConnectionController','<API_KEY>','最大重试次数','mcpConfig.apiKeyHint','1em','_injector','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enter\x20your\x20API\x20key','mcpConfig.validation.invalidConfig','OnLineIcon','_dialogService','Click\x20to\x20configure\x20MCP','enUS','_config$','createElement','Retrying...','removeItem','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','span','jsxs','MCPStatusDisplay','useObservable','includes','MenuItemType','_loading$','HelpIcon','_config','UniverProMcp','_messageService','351354fifgiW','\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','复制以下\x20JSON\x20配置','replace','mcpConfig.connectionInfo','API\x20key\x20is\x20required','API\x20密钥','mcp.apiKey','univer-flex\x20univer-items-center\x20univer-gap-3','1732555vGujiM','NONE','mcpStatus.maxRetriesExceeded','univer-text-sm\x20univer-font-medium','univer-space-y-3','_initializeCommands','errorMessage','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','string','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','MCP\x20状态未知','您的\x20API\x20密钥将在此浏览器中本地存储','IMenuManagerService','showDeveloperTools','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Input','map','mcpServerUrl','close','react','univer-bg-blue-500','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','Session\x20ID','univer-size-4','What\x20is\x20API\x20Key?','showConfigPanel','MenuIcon','mcpStatus.networkError','https://mcp.univer.ai/mcp/?univer_session_id=','MCP\x20已连接','connectInjector','help-icon','ILogService','_apiKey$','useCallback','univer.plus','decorate','defineProperty','Max\x20Retries','univer-bg-red-500','MCP\x20重连中...','配置参数:','mcpConfig.authorizationDescription','on-line-icon','点击配置\x20MCP','assign','connectionStatus$','DISCONNECTED','warn','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','UniverMCPPlugin','_logService','https://console.univer.ai','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','MCPConnectionUIController','noopener\x20noreferrer','http://www.w3.org/2000/svg'];_0x42fd=function(){return _0x2c33ab;};return _0x42fd();}
|
|
1
|
+
function _0x3c6f(_0x2634e5,_0x1b4813){_0x2634e5=_0x2634e5-0x180;const _0x12e27f=_0x12e2();let _0x3c6f5d=_0x12e27f[_0x2634e5];return _0x3c6f5d;}function _0x12e2(){const _0x18b03e=['currentColor','mask','connectInjector','mcp.apiKey','univer-bg-green-500','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','includes','mcpConfig.apiApplyInfo.title','HEADER_MENU','univer-text-white','createElement','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','CloseIcon','11TpjDVw','UniverCore','version','配置更改将立即生效','translate(.97)','_createConfigPanelComponent','Invalid\x20configuration','fill','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','symbol','univer-shrink-0\x20univer-text-red-500','1em','MCP\x20客户端配置','@univerjs/ui','NONE','univer-flex\x20univer-items-center\x20univer-gap-2','idSuffix','removeItem','Module','Copy\x20the\x20JSON\x20configuration\x20below','启用身份验证','apiKey','UniverMCPUIPlugin','COMMAND','sessionId$','mcpStatus.clickToConfigure','RETRYING','ILocalStorageService','current','string','useDependency','MCPConnectionError','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','配置保存成功','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20重连中...','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','API\x20密钥','stringify','univerjs-icon\x20univerjs-icon-','function','API\x20key\x20with\x20Bearer\x20prefix.','getItem','tag','您的\x20API\x20密钥安全存储在本地存储中','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','registerComponent','jsxs','error','useState','_injector','univer-flex\x20univer-items-start\x20univer-gap-2','API\x20key\x20is\x20required','mcpConfig.apiApplyInfo.univerAiLabel','univer-flex-1','Disposable','mcpConfig.apiApplyInfo.description','MCPConnectionController','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','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','connectionStatus$','off-line-icon','mcpConfig.connectionStatus.connecting','onStarting','univer-text-red-500','会话\x20ID\x20已被占用,请稍后再试','UniverMCPPlugin','2030wjHjEj','重启您的\x20MCP\x20客户端以使配置生效','add','length','Connection\x20Failed','Enable\x20Authentication','154vNfbOt','MCP\x20Client\x20Configuration','forwardRef','forEach','MCPConnectionStatus','mcpConfig.validation.invalidConfig','round','merge','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','会话ID','has','univer-flex\x20univer-gap-3','UniverProMcpUi','IUIPartsService','isValid','请输入您的\x20API\x20密钥','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','配置步骤:','React','MenuItemType','ComponentManager','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','mcp-config-dialog','@univerjs/core','univer-size-4','几秒钟内获取您的\x20API\x20密钥','close','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','ICommandService','univer-text-gray-400','\x20-\x20','Input','_config$','univer-text-xs\x20univer-text-gray-600','exports','您的\x20API\x20密钥将在此浏览器中本地存储','http','_dialogService','OnLineIcon','Injector','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','API\x20密钥长度至少需要\x2010\x20位','_handleConfigure','univer_session_id:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','url(#on-line-icon_clip0_910_349)','defs','_menuManagerService','noopener\x20noreferrer','subscribe','_config','Button','MCP\x20Connection\x20Failed','<SESSION_ID>','white','重连中...','univer-text-xs\x20univer-text-gray-500','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','mcpConfig.configStep3','SESSION_ID_OCCUPIED','push','mcpStatus.sessionOccupied','mcp-ui.config','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','_localStorageService','Tooltip','DISCONNECTED','mcpConfig.connectionError.unauthorized','MessageType','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-bg-gray-500','mcp-ui.command.openConfigPanel','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','amd','MCPStatusDisplay','_validateConfig','OpenMCPConfigPanelCommand','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','带有\x20Bearer\x20前缀的\x20API\x20密钥。','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCP\x20Configuration','What\x20is\x20API\x20Key?','toStringTag','保存中...','ISocketService','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','IDialogService','map','useRef','Error','MCP:\x20Session\x20ID\x20Occupied','Bearer\x20','clipPath','off-line-icon_clip0_910_343','evenodd','enUS','M0\x200H16V16H0z','HelpIcon','mcpStatus.connecting','div','MCPConfigPanel','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','help-icon','FAILED','useObservable','http://www.w3.org/2000/svg','getCurrentConfig','MCP\x20Retrying...','next','Saving...','MCP\x20Unknown\x20Status','API\x20密钥不能为空','Session\x20ID','mcpConfig.title','mcpConfig.configStep1','_mcpConnectionController','univer-size-2\x20univer-rounded-full','NETWORK_ERROR','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-shrink-0\x20univer-text-blue-500','CONNECTED','306394HAIrGZ','url(#$1','path','配置无效','MCP:\x20超出最大重试次数','mcpStatus.unknown','zhCN','mcpStatus.clickToConnect','_initializeMenus','univer-text-yellow-500','_loadStoredApiKey','_connectionController','MCPUIMenuController','open','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','https://console.univer.ai','Configuration\x20Steps:','mcpConfig.connectionInfo','未连接','_messageService','register','mcpConfig.description','showDeveloperTools','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','CONNECTING','mcpConfig.configStepTitle','什么是\x20API\x20密钥?','univer-text-gray-500','_uiPartsService','toPrimitive','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','_componentManager','Failed\x20to\x20save\x20configuration','prototype','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','mcpServerUrl','decorate','get','UniverUi','mcpConfig.configStep2','mcpConfig.connectionError.sessionOccupied','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','errorMessage','mcpConfig.apiKeyHint','pre','_commandService','MCP:\x20未授权','mcpConfig.configParameters','DependentOn','3096bShBTJ','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','on-line-icon_clip0_910_349','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','5786956SqIZdC','Configuration\x20Parameters:','@univerjs-pro/mcp','API\x20密钥无效,请检查密钥是否正确','univer-font-medium','defineProperty','mcpConfig.validation.invalidApiKey','Disconnected','UniverProMcp','clsx','xlink:href','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','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','_registerComponent','Univer\x20AI\x20控制台','mcpConfig.apiKey','网络连接错误,请检查您的网络连接','setItem','random','_initAutoConnect','mcpStatus.networkError','复制以下\x20JSON\x20配置','disposeWithMe','Univer\x20AI\x20Console','substring','_initializeCommands','MCP:\x20Network\x20Error','mcpConfig.connectionStatus.disconnected','univer.ai','_configService','children','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-text-blue-600','OffLineIcon','Click\x20to\x20configure\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20连接失败','MCP_PLUGIN_CONFIG_KEY','622503SfAXsp','span','Click\x20to\x20connect\x20MCP','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-space-y-2','MAX_RETRIES_EXCEEDED','4577075ZZPMjj','getConfig','constructor','252012stElhG','IConfigService','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','ILogService','0\x200\x2016\x2016','_localeService','Inject','showStatus','text','entries','enableAutoConnect','__setCustomHeaders','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_apiKey$','CommandType','LocaleService','mergeMenu','value','Connected','MCP\x20已连接','0.22.1','配置\x20MCP\x20使用\x20AI\x20操作电子表格','button','replace','connectionError$','use','Retrying...','保存配置','MCP\x20连接中...','IMessageService','Plugin','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','0\x200\x2017\x2016','univer-mr-2\x20univer-flex\x20univer-text-xl','Enter\x20your\x20API\x20key','assign','displayName','API\x20Key','none','univer-min-w-0\x20univer-flex-1','MCPConfigUIController','MCP\x20Connected','react','MCP\x20Connecting...','useCallback','react/jsx-runtime','mcpStatus.disconnected','mcpConfig.apiApplyInfo.getStarted','call','UNAUTHORIZED','CheckMarkIcon','mcpStatus.connected','\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','_initConfigSync','MCPConnectionUIController','14223CAXWmq','mcpConfig.note1','mcpConfig.validation.apiKeyTooShort','https://mcp.univer.ai/mcp/?univer_session_id=','BehaviorSubject','object','_loading$','svg','univer-bg-red-500','5445aEkCju','_mcpCoreConfig$','univer-flex\x20univer-items-center\x20univer-gap-3','UniverDesign','<API_KEY>','univer.plus','univer-bg-blue-500','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','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','MCP\x20配置','attrs','pluginName','mcpStatus.retrying','trim','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','点击连接\x20MCP','showConfigPanel','iterator','Configuration\x20saved\x20successfully','univer-text-green-500','mcpStatus.maxRetriesExceeded','univer-space-y-3','registerCommand','rxjs','colorChannel1','univer-flex\x20univer-flex-wrap\x20univer-gap-2','点击配置\x20MCP','show','univer-space-y-5','RibbonStartGroup','jsx'];_0x12e2=function(){return _0x18b03e;};return _0x12e2();}(function(_0x3df012,_0x1ca032){const _0x3f9285=_0x3c6f,_0x529ad0=_0x3df012();while(!![]){try{const _0x5460fd=-parseInt(_0x3f9285(0x1c5))/0x1*(parseInt(_0x3f9285(0x288))/0x2)+-parseInt(_0x3f9285(0x2e4))/0x3+parseInt(_0x3f9285(0x2be))/0x4+parseInt(_0x3f9285(0x2ea))/0x5+-parseInt(_0x3f9285(0x2ed))/0x6*(-parseInt(_0x3f9285(0x20e))/0x7)+-parseInt(_0x3f9285(0x2ba))/0x8*(parseInt(_0x3f9285(0x199))/0x9)+-parseInt(_0x3f9285(0x208))/0xa*(parseInt(_0x3f9285(0x190))/0xb);if(_0x5460fd===_0x1ca032)break;else _0x529ad0['push'](_0x529ad0['shift']());}catch(_0x2e0c6d){_0x529ad0['push'](_0x529ad0['shift']());}}}(_0x12e2,0xdaf94),function(_0x13018d,_0x4dbb55){const _0x1fab48=_0x3c6f;typeof exports==_0x1fab48(0x195)&&typeof module<'u'?_0x4dbb55(exports,require(`@univerjs/core`),require(`@univerjs-pro/mcp`),require(`@univerjs/design`),require(`@univerjs/ui`),require(`rxjs`),require(`react`),require(`react/jsx-runtime`),require(`@univerjs/network`)):typeof define==_0x1fab48(0x1ed)&&define[_0x1fab48(0x258)]?define([_0x1fab48(0x231),_0x1fab48(0x226),_0x1fab48(0x2c0),'@univerjs/design',_0x1fab48(0x1d2),_0x1fab48(0x1b0),_0x1fab48(0x183),_0x1fab48(0x186),'@univerjs/network'],_0x4dbb55):(_0x13018d=typeof globalThis<'u'?globalThis:_0x13018d||self,_0x4dbb55(_0x13018d[_0x1fab48(0x21a)]={},_0x13018d[_0x1fab48(0x1c6)],_0x13018d[_0x1fab48(0x2c6)],_0x13018d[_0x1fab48(0x19c)],_0x13018d[_0x1fab48(0x2af)],_0x13018d[_0x1fab48(0x1b0)],_0x13018d[_0x1fab48(0x220)],_0x13018d[_0x1fab48(0x220)],_0x13018d['UniverNetwork']));}(this,function(_0x4199ba,_0x321763,_0x43eebc,_0x577a04,_0x4bf02e,_0x2f7a95,_0xe91101,_0x4babf8,_0x4b6c62){const _0x4e837f=_0x3c6f;Object[_0x4e837f(0x2c3)](_0x4199ba,Symbol[_0x4e837f(0x261)],{'value':_0x4e837f(0x1d7)});function _0x38299c({ref:_0x507966,..._0x355cf4}){const _0x946968=_0x4e837f;let {icon:_0x41173a,id:_0x582a53,className:_0x24c890,extend:_0x47226b,..._0x65517c}=_0x355cf4,_0x4735c6=(_0x946968(0x1ec)+_0x582a53+'\x20'+(_0x24c890||''))[_0x946968(0x1a6)](),_0x4a8af7=(0x0,_0xe91101[_0x946968(0x267)])('_'+_0x334c4e());return _0x53b341(_0x41173a,''+_0x582a53,{'defIds':_0x41173a['defIds'],'idSuffix':_0x4a8af7[_0x946968(0x1e1)]},{'ref':_0x507966,'className':_0x4735c6,..._0x65517c},_0x47226b);}function _0x53b341(_0xf1f700,_0x5dbc0b,_0x36a6a9,_0x27bca5,_0x17337a){const _0x3ed925=_0x4e837f;return(0x0,_0xe91101[_0x3ed925(0x1c2)])(_0xf1f700[_0x3ed925(0x1f0)],{'key':_0x5dbc0b,..._0x1e85c1(_0xf1f700,_0x36a6a9,_0x17337a),..._0x27bca5},(_0x39ecc6(_0xf1f700,_0x36a6a9)[_0x3ed925(0x2dc)]||[])[_0x3ed925(0x266)]((_0x2b7f66,_0x54b47b)=>_0x53b341(_0x2b7f66,_0x5dbc0b+'-'+_0xf1f700[_0x3ed925(0x1f0)]+'-'+_0x54b47b,_0x36a6a9,void 0x0,_0x17337a)));}function _0x1e85c1(_0x1a4135,_0x4a83c9,_0x37ddaa){const _0xf372a2=_0x4e837f;let _0x194030={..._0x1a4135['attrs']};_0x37ddaa!=null&&_0x37ddaa['colorChannel1']&&_0x194030[_0xf372a2(0x1cc)]===_0xf372a2(0x1b1)&&(_0x194030[_0xf372a2(0x1cc)]=_0x37ddaa[_0xf372a2(0x1b1)]),_0x1a4135['tag']===_0xf372a2(0x1b9)&&_0x194030['id']&&(_0x194030['id']+=_0x4a83c9[_0xf372a2(0x1d5)]),Object[_0xf372a2(0x2f7)](_0x194030)[_0xf372a2(0x211)](([_0x1bb6e9,_0x15ecf0])=>{const _0x4be4c6=_0xf372a2;_0x1bb6e9===_0x4be4c6(0x1b9)&&typeof _0x15ecf0==_0x4be4c6(0x1e2)&&(_0x194030[_0x1bb6e9]=_0x15ecf0[_0x4be4c6(0x305)](/url\(#(.*)\)/,_0x4be4c6(0x289)+_0x4a83c9[_0x4be4c6(0x1d5)]+')'));});let {defIds:_0x2f5fbe}=_0x4a83c9;return!_0x2f5fbe||_0x2f5fbe[_0xf372a2(0x20b)]===0x0?_0x194030:(_0x1a4135[_0xf372a2(0x1f0)]===_0xf372a2(0x307)&&_0x194030[_0xf372a2(0x2c8)]&&(_0x194030[_0xf372a2(0x2c8)]+=_0x4a83c9[_0xf372a2(0x1d5)]),Object['entries'](_0x194030)['forEach'](([_0x389bab,_0x5e6cb5])=>{const _0x1408bb=_0xf372a2;typeof _0x5e6cb5=='string'&&(_0x194030[_0x389bab]=_0x5e6cb5[_0x1408bb(0x305)](/url\(#(.*)\)/,_0x1408bb(0x289)+_0x4a83c9['idSuffix']+')'));}),_0x194030);}function _0x39ecc6(_0x4f93fe,_0x3f2136){const _0x2ae0be=_0x4e837f;var _0x3f29ed;let {defIds:_0x13bc5e}=_0x3f2136;return!_0x13bc5e||_0x13bc5e['length']===0x0?_0x4f93fe:_0x4f93fe[_0x2ae0be(0x1f0)]===_0x2ae0be(0x23d)&&(_0x3f29ed=_0x4f93fe[_0x2ae0be(0x2dc)])!=null&&_0x3f29ed[_0x2ae0be(0x20b)]?{..._0x4f93fe,'children':_0x4f93fe[_0x2ae0be(0x2dc)][_0x2ae0be(0x266)](_0x4f715a=>typeof _0x4f715a[_0x2ae0be(0x1a3)]['id']==_0x2ae0be(0x1e2)&&_0x13bc5e&&_0x13bc5e[_0x2ae0be(0x1be)](_0x4f715a['attrs']['id'])?{..._0x4f715a,'attrs':{..._0x4f715a[_0x2ae0be(0x1a3)],'id':_0x4f715a[_0x2ae0be(0x1a3)]['id']+_0x3f2136[_0x2ae0be(0x1d5)]}}:_0x4f715a)}:_0x4f93fe;}function _0x334c4e(){const _0x124bab=_0x4e837f;return Math[_0x124bab(0x2d0)]()['toString'](0x24)[_0x124bab(0x2d6)](0x2,0x8);}_0x38299c['displayName']='UniverIcon';let _0x4f2818={'tag':_0x4e837f(0x197),'attrs':{'xmlns':_0x4e837f(0x278),'fill':_0x4e837f(0x314),'viewBox':_0x4e837f(0x2f2),'width':_0x4e837f(0x1d0),'height':_0x4e837f(0x1d0)},'children':[{'tag':_0x4e837f(0x28a),'attrs':{'fill':_0x4e837f(0x1b8),'d':_0x4e837f(0x257),'fillRule':_0x4e837f(0x26d),'clipRule':_0x4e837f(0x26d)}}]},_0x4b6fef=(0x0,_0xe91101[_0x4e837f(0x210)])(function(_0xcf2468,_0x41baf7){const _0xeabcb1=_0x4e837f;return(0x0,_0xe91101[_0xeabcb1(0x1c2)])(_0x38299c,Object[_0xeabcb1(0x311)]({},_0xcf2468,{'id':'check-mark-icon','ref':_0x41baf7,'icon':_0x4f2818}));});_0x4b6fef['displayName']=_0x4e837f(0x18b);let _0x400d5b={'tag':_0x4e837f(0x197),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4e837f(0x314),'viewBox':'0\x200\x2016\x2016','width':_0x4e837f(0x1d0),'height':_0x4e837f(0x1d0)},'children':[{'tag':_0x4e837f(0x28a),'attrs':{'fill':'currentColor','d':_0x4e837f(0x264)}}]},_0x31cfc4=(0x0,_0xe91101['forwardRef'])(function(_0x4232ab,_0x4c41be){const _0x4f78c6=_0x4e837f;return(0x0,_0xe91101[_0x4f78c6(0x1c2)])(_0x38299c,Object[_0x4f78c6(0x311)]({},_0x4232ab,{'id':'close-icon','ref':_0x4c41be,'icon':_0x400d5b}));});_0x31cfc4[_0x4e837f(0x312)]=_0x4e837f(0x1c4);let _0xee03c2={'tag':'svg','attrs':{'xmlns':_0x4e837f(0x278),'fill':_0x4e837f(0x314),'viewBox':'0\x200\x2016\x2016','width':_0x4e837f(0x1d0),'height':_0x4e837f(0x1d0)},'children':[{'tag':_0x4e837f(0x28a),'attrs':{'fill':'currentColor','d':_0x4e837f(0x248)}},{'tag':'path','attrs':{'fill':_0x4e837f(0x1b8),'d':_0x4e837f(0x1a1)}},{'tag':_0x4e837f(0x28a),'attrs':{'fill':_0x4e837f(0x1b8),'d':_0x4e837f(0x2ca),'fillRule':'evenodd','clipRule':_0x4e837f(0x26d)}}]},_0x4c179e=(0x0,_0xe91101[_0x4e837f(0x210)])(function(_0x4c2fbb,_0x415c1c){const _0x555afa=_0x4e837f;return(0x0,_0xe91101['createElement'])(_0x38299c,Object[_0x555afa(0x311)]({},_0x4c2fbb,{'id':_0x555afa(0x275),'ref':_0x415c1c,'icon':_0xee03c2}));});_0x4c179e['displayName']=_0x4e837f(0x270);let _0x54c67b={'tag':_0x4e837f(0x197),'attrs':{'xmlns':_0x4e837f(0x278),'fill':_0x4e837f(0x314),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4e837f(0x1d0)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4e837f(0x28a),'attrs':{'stroke':_0x4e837f(0x1b8),'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':_0x4e837f(0x214),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4e837f(0x23d),'attrs':{},'children':[{'tag':_0x4e837f(0x26b),'attrs':{'id':_0x4e837f(0x26c)},'children':[{'tag':'path','attrs':{'fill':_0x4e837f(0x245),'d':_0x4e837f(0x26f)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},_0xba8e67=(0x0,_0xe91101[_0x4e837f(0x210)])(function(_0x572f47,_0x1ae913){const _0x8575ac=_0x4e837f;return(0x0,_0xe91101['createElement'])(_0x38299c,Object['assign']({},_0x572f47,{'id':_0x8575ac(0x202),'ref':_0x1ae913,'icon':_0x54c67b}));});_0xba8e67[_0x4e837f(0x312)]=_0x4e837f(0x2df);let _0x148329={'tag':_0x4e837f(0x197),'attrs':{'xmlns':_0x4e837f(0x278),'fill':'none','viewBox':_0x4e837f(0x30e),'width':_0x4e837f(0x1d0),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4e837f(0x23c)},'children':[{'tag':_0x4e837f(0x28a),'attrs':{'stroke':'currentColor','d':_0x4e837f(0x21e),'strokeLinecap':'round','strokeLinejoin':_0x4e837f(0x214),'strokeWidth':1.2}}]},{'tag':_0x4e837f(0x23d),'attrs':{},'children':[{'tag':_0x4e837f(0x26b),'attrs':{'id':_0x4e837f(0x2bc)},'children':[{'tag':_0x4e837f(0x28a),'attrs':{'fill':_0x4e837f(0x245),'d':'M0\x200H16V16H0z','transform':_0x4e837f(0x1c9)}}]}]}],'defIds':[_0x4e837f(0x2bc)]},_0x48a5f6=(0x0,_0xe91101[_0x4e837f(0x210)])(function(_0x3c08ea,_0x176046){const _0x4987c7=_0x4e837f;return(0x0,_0xe91101[_0x4987c7(0x1c2)])(_0x38299c,Object[_0x4987c7(0x311)]({},_0x3c08ea,{'id':'on-line-icon','ref':_0x176046,'icon':_0x148329}));});_0x48a5f6[_0x4e837f(0x312)]=_0x4e837f(0x235);function _0xf68cd9(_0x426430){const _0x1882a2=_0x4e837f;var _0x23b84d,_0x592d33;let {mcpCoreConfig:_0x1d0d9d,onSave:_0x6b88a9,loading:_0x167aa6=!0x1,config:_0x5aece8,connectionStatus$:_0x337afc,connectionError$:_0x253c73,currentApiKey$:_0x456421,currentSessionId$:_0x8b62ac}=_0x426430,_0x57dcdc=(0x0,_0x4bf02e[_0x1882a2(0x1e3)])(_0x321763[_0x1882a2(0x2fd)]),_0x40d5e6=(0x0,_0x4bf02e[_0x1882a2(0x277)])(_0x337afc,_0x43eebc['MCPConnectionStatus']['DISCONNECTED']),_0x59d51e=(0x0,_0x4bf02e[_0x1882a2(0x277)])(_0x253c73,_0x43eebc[_0x1882a2(0x1e4)]['NONE']),_0x5d2f47=(0x0,_0x4bf02e['useObservable'])(_0x8b62ac,''),[_0x202153,_0x500022]=(0x0,_0xe91101[_0x1882a2(0x1f6)])((0x0,_0x4bf02e['useObservable'])(_0x456421,'')||''),_0x96a425=_0x5aece8[_0x1882a2(0x29e)]&&_0x1d0d9d[_0x1882a2(0x2ac)]&&(_0x1d0d9d['mcpServerUrl']['includes'](_0x1882a2(0x19e))||_0x1d0d9d[_0x1882a2(0x2ac)][_0x1882a2(0x1be)](_0x1882a2(0x2da))),_0x4d8d54=(_0x23b84d=_0x1d0d9d[_0x1882a2(0x2ac)])==null?void 0x0:_0x23b84d[_0x1882a2(0x1be)]('univer.plus'),_0x4d6859=(_0x592d33=_0x1d0d9d['mcpServerUrl'])==null?void 0x0:_0x592d33['includes'](_0x1882a2(0x2da)),_0x4964ee=_0x4d8d54?'https://console.univer.plus':_0x1882a2(0x297),_0x4d5014=_0x5aece8[_0x1882a2(0x29e)]&&(_0x4d8d54||_0x4d6859),[_0x4cdb6c,_0x3aa61e]=(0x0,_0xe91101['useState'])(!_0x202153[_0x1882a2(0x1a6)]()),_0x1895af=(_0x29552c,_0x26a92c)=>{const _0x528bdf=_0x1882a2;if(_0x26a92c===_0x43eebc[_0x528bdf(0x1e4)]['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x29552c){case _0x43eebc[_0x528bdf(0x212)][_0x528bdf(0x287)]:return _0x528bdf(0x2c9);case _0x43eebc[_0x528bdf(0x212)][_0x528bdf(0x2a0)]:case _0x43eebc[_0x528bdf(0x212)][_0x528bdf(0x1df)]:return _0x528bdf(0x2dd);case _0x43eebc['MCPConnectionStatus'][_0x528bdf(0x276)]:return _0x528bdf(0x29f);default:return _0x528bdf(0x24e);}},_0x44cb57=(_0x53cd8b,_0x2e9bf0)=>{const _0x150c82=_0x1882a2;if(_0x2e9bf0===_0x43eebc['MCPConnectionError']['UNAUTHORIZED'])return _0x150c82(0x198);switch(_0x53cd8b){case _0x43eebc[_0x150c82(0x212)][_0x150c82(0x287)]:return _0x150c82(0x1bc);case _0x43eebc[_0x150c82(0x212)]['CONNECTING']:case _0x43eebc[_0x150c82(0x212)]['RETRYING']:return _0x150c82(0x19f);case _0x43eebc[_0x150c82(0x212)][_0x150c82(0x276)]:return _0x150c82(0x198);default:return _0x150c82(0x255);}},_0xd56395=_0xa9dcf=>{const _0x58558f=_0x1882a2;switch(_0xa9dcf){case _0x43eebc[_0x58558f(0x212)][_0x58558f(0x287)]:return _0x57dcdc['t']('mcpConfig.connectionStatus.connected');case _0x43eebc['MCPConnectionStatus']['CONNECTING']:return _0x57dcdc['t'](_0x58558f(0x203));case _0x43eebc['MCPConnectionStatus'][_0x58558f(0x276)]:return _0x57dcdc['t']('mcpConfig.connectionStatus.failed');case _0x43eebc['MCPConnectionStatus'][_0x58558f(0x1df)]:return _0x57dcdc['t']('mcpConfig.connectionStatus.retrying');default:return _0x57dcdc['t'](_0x58558f(0x2d9));}},_0x1ddcf5=_0x13b598=>{const _0x294f13=_0x1882a2;switch(_0x13b598){case _0x43eebc[_0x294f13(0x1e4)][_0x294f13(0x18a)]:return _0x57dcdc['t'](_0x294f13(0x252));case _0x43eebc[_0x294f13(0x1e4)][_0x294f13(0x24a)]:return _0x57dcdc['t'](_0x294f13(0x2b1));case _0x43eebc[_0x294f13(0x1e4)][_0x294f13(0x284)]:return _0x57dcdc['t']('mcpConfig.connectionError.networkError');case _0x43eebc[_0x294f13(0x1e4)][_0x294f13(0x2e9)]:return _0x57dcdc['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x5adcfd=(0x0,_0xe91101[_0x1882a2(0x185)])(()=>{const _0x137fd1=_0x1882a2;_0x6b88a9({..._0x1d0d9d,'apiKey':_0x202153[_0x137fd1(0x1a6)](),'enableAuth':!0x0});},[_0x1d0d9d,_0x202153,!0x0,_0x6b88a9]),_0x222536=_0x202153['trim']()['length']>0x0;return(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[(0x0,_0x4babf8['jsx'])('div',{'className':_0x1882a2(0x2fa),'children':(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':_0x1882a2(0x19b),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':_0x1882a2(0x2ef),'children':(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2e5),{'className':_0x1882a2(0x1c1),'children':'⚙'})}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'children':(0x0,_0x4babf8['jsx'])('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x57dcdc['t'](_0x1882a2(0x29d))})})]})}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x1e5),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])('div',{'className':(0x0,_0x577a04[_0x1882a2(0x2c7)])('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x1895af(_0x40d5e6,_0x59d51e)),'children':(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x1d4),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':(0x0,_0x577a04[_0x1882a2(0x2c7)])(_0x1882a2(0x283),_0x44cb57(_0x40d5e6,_0x59d51e))}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2e5),{'className':'univer-text-sm\x20univer-font-medium','children':_0xd56395(_0x40d5e6)})]})}),_0x59d51e!==_0x43eebc[_0x1882a2(0x1e4)][_0x1882a2(0x1d3)]&&(_0x40d5e6===_0x43eebc[_0x1882a2(0x212)]['FAILED']||_0x59d51e===_0x43eebc[_0x1882a2(0x1e4)][_0x1882a2(0x18a)])&&(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':_0x1882a2(0x237),'children':(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x1f8),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2e5),{'className':_0x1882a2(0x1cf),'children':'⚠️'}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])('p',{'className':_0x1882a2(0x1bd),'children':_0x1ddcf5(_0x59d51e)})]})})]}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':_0x1882a2(0x216),'children':(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x1b5),'children':[(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x2e8),'children':[(0x0,_0x4babf8[_0x1882a2(0x1f4)])('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2e5),{'children':'🔑'}),'\x20',_0x57dcdc['t'](_0x1882a2(0x2cd)),(0x0,_0x4babf8['jsx'])(_0x1882a2(0x2e5),{'className':_0x1882a2(0x205),'children':'*'}),_0x96a425&&(0x0,_0x4babf8[_0x1882a2(0x1b7)])('a',{'className':_0x1882a2(0x2bb),'title':_0x57dcdc['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x3aa61e(!0x0),'children':(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x4c179e,{})})]}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x577a04[_0x1882a2(0x22e)],{'type':_0x1882a2(0x2f6),'placeholder':_0x57dcdc['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x202153,'disabled':_0x167aa6,'autoComplete':'off','onChange':_0x500022}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])('p',{'className':_0x1882a2(0x247),'children':_0x57dcdc['t'](_0x1882a2(0x2b4))})]}),_0x96a425&&_0x4cdb6c&&(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[(0x0,_0x4babf8['jsx'])('a',{'className':_0x1882a2(0x1f2),'role':'button','onClick':()=>_0x3aa61e(!0x1),'children':(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x31cfc4,{'className':_0x1882a2(0x227)})}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[(0x0,_0x4babf8['jsx'])(_0x1882a2(0x272),{'className':_0x1882a2(0x2a6),'children':(0x0,_0x4babf8['jsx'])(_0x1882a2(0x2e5),{'className':_0x1882a2(0x2de),'children':'🚀'})}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':_0x1882a2(0x1fb),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])('h4',{'className':_0x1882a2(0x254),'children':_0x57dcdc['t'](_0x1882a2(0x1bf))}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])('p',{'className':_0x1882a2(0x274),'children':_0x57dcdc['t'](_0x1882a2(0x1fd))}),(0x0,_0x4babf8['jsx'])('div',{'className':_0x1882a2(0x1b2),'children':_0x4d5014&&(0x0,_0x4babf8[_0x1882a2(0x1f4)])('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x4964ee,'target':'_blank','rel':_0x1882a2(0x23f),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2e5),{'children':'🤖'}),_0x57dcdc['t'](_0x1882a2(0x1fa)),(0x0,_0x4babf8[_0x1882a2(0x1b7)])('span',{'className':_0x1882a2(0x22c),'children':'↗'})]})}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x57dcdc['t'](_0x1882a2(0x188))]})]})]})]}),_0x5aece8[_0x1882a2(0x29e)]&&(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x1ff),'children':[(0x0,_0x4babf8[_0x1882a2(0x1f4)])('h4',{'className':_0x1882a2(0x2f0),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])('span',{'children':'🔗'}),'\x20',_0x57dcdc['t'](_0x1882a2(0x299))]}),(0x0,_0x4babf8['jsxs'])('div',{'className':'univer-space-y-4','children':[(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':'univer-space-y-3','children':[(0x0,_0x4babf8['jsx'])('p',{'className':_0x1882a2(0x230),'children':_0x57dcdc['t']('mcpConfig.configInstructions')}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x2e8),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x57dcdc['t'](_0x1882a2(0x2a1))}),(0x0,_0x4babf8['jsxs'])(_0x1882a2(0x272),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':_0x1882a2(0x1d4),'children':[(0x0,_0x4babf8['jsx'])(_0x1882a2(0x2e5),{'className':_0x1882a2(0x200),'children':'1'}),_0x57dcdc['t'](_0x1882a2(0x281))]}),(0x0,_0x4babf8['jsxs'])(_0x1882a2(0x272),{'className':_0x1882a2(0x1d4),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2e5),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x57dcdc['t'](_0x1882a2(0x2b0))]}),(0x0,_0x4babf8['jsxs'])(_0x1882a2(0x272),{'className':_0x1882a2(0x1d4),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])('span',{'className':_0x1882a2(0x200),'children':'3'}),_0x57dcdc['t'](_0x1882a2(0x249))]})]})]})]}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':'univer-space-y-2','children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1882a2(0x25f)}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':_0x1882a2(0x2e7),'children':(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2b5),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x1882a2(0x1eb)]({'mcpServers':{'univer':{'url':_0x1882a2(0x193)+(_0x5d2f47||_0x1882a2(0x244)),'type':_0x1882a2(0x233),'headers':{'Authorization':_0x1882a2(0x26a)+(_0x202153||_0x1882a2(0x19d))}}}},null,0x2)})})]}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x1ae),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])('div',{'className':_0x1882a2(0x2b2),'children':_0x57dcdc['t'](_0x1882a2(0x2b8))}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':'univer-space-y-2','children':[(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,_0x4babf8['jsx'])('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':_0x1882a2(0x25c),'children':_0x1882a2(0x23a)}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x57dcdc['t']('mcpConfig.sessionIdDescription')})]})]}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':_0x1882a2(0x2aa)}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x180),'children':[(0x0,_0x4babf8['jsx'])('div',{'className':_0x1882a2(0x25c),'children':'Authorization:'}),(0x0,_0x4babf8['jsx'])(_0x1882a2(0x272),{'className':_0x1882a2(0x247),'children':_0x57dcdc['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x577a04[_0x1882a2(0x242)],{'onClick':_0x5adcfd,'disabled':!_0x222536||_0x167aa6,'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':_0x167aa6?(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x2e5),{'className':_0x1882a2(0x1d4),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2e5),{'children':'⟲'}),_0x57dcdc['t']('mcpConfig.saving')]}):(0x0,_0x4babf8[_0x1882a2(0x1f4)])('span',{'className':_0x1882a2(0x1d4),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x4b6fef,{}),_0x57dcdc['t']('mcpConfig.save')]})}),(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x272),{'className':_0x1882a2(0x1e9),'children':(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':_0x1882a2(0x219),'children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])(_0x1882a2(0x2e5),{'className':_0x1882a2(0x286),'children':'💡'}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[(0x0,_0x4babf8[_0x1882a2(0x1b7)])('div',{'className':_0x1882a2(0x2c2),'children':'Configuration\x20Notes:'}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'children':['•',_0x57dcdc['t'](_0x1882a2(0x191))]}),(0x0,_0x4babf8[_0x1882a2(0x1f4)])(_0x1882a2(0x272),{'children':['•',_0x57dcdc['t']('mcpConfig.note2')]})]})]})})]})})]});}let _0x9df88e=_0x4e837f(0x24d);Symbol(_0x9df88e);let _0x10e123={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x4c565c(_0x3b4e92){'@babel/helpers - typeof';const _0xe684af=_0x4e837f;return _0x4c565c=typeof Symbol==_0xe684af(0x1ed)&&typeof Symbol[_0xe684af(0x1aa)]==_0xe684af(0x1ce)?function(_0x5c9a15){return typeof _0x5c9a15;}:function(_0x567eeb){const _0x3d3ab3=_0xe684af;return _0x567eeb&&typeof Symbol==_0x3d3ab3(0x1ed)&&_0x567eeb[_0x3d3ab3(0x2ec)]===Symbol&&_0x567eeb!==Symbol[_0x3d3ab3(0x2a9)]?'symbol':typeof _0x567eeb;},_0x4c565c(_0x3b4e92);}function _0x15d7f3(_0x258770,_0x1d3f23){const _0x34bc64=_0x4e837f;if(_0x4c565c(_0x258770)!=_0x34bc64(0x195)||!_0x258770)return _0x258770;var _0x5cf1c4=_0x258770[Symbol[_0x34bc64(0x2a5)]];if(_0x5cf1c4!==void 0x0){var _0x3e21bc=_0x5cf1c4[_0x34bc64(0x189)](_0x258770,_0x1d3f23||'default');if(_0x4c565c(_0x3e21bc)!=_0x34bc64(0x195))return _0x3e21bc;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1d3f23===_0x34bc64(0x1e2)?String:Number)(_0x258770);}function _0x187d4e(_0x2fe033){const _0x20526d=_0x4e837f;var _0x3394c2=_0x15d7f3(_0x2fe033,_0x20526d(0x1e2));return _0x4c565c(_0x3394c2)==_0x20526d(0x1ce)?_0x3394c2:_0x3394c2+'';}function _0x50d464(_0x5d71d7,_0x1e0727,_0x4784a7){const _0x5e9a65=_0x4e837f;return(_0x1e0727=_0x187d4e(_0x1e0727))in _0x5d71d7?Object[_0x5e9a65(0x2c3)](_0x5d71d7,_0x1e0727,{'value':_0x4784a7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5d71d7[_0x1e0727]=_0x4784a7,_0x5d71d7;}function _0x3ac0c3(_0x1f6da3,_0x4dbf72){return function(_0x113387,_0x3af32a){_0x4dbf72(_0x113387,_0x3af32a,_0x1f6da3);};}function _0x5146d4(_0x33d90e,_0x725c20,_0x3b4280,_0x4d0c1b){const _0x1a926f=_0x4e837f;var _0x5f7a9=arguments[_0x1a926f(0x20b)],_0x2325a3=_0x5f7a9<0x3?_0x725c20:_0x4d0c1b===null?_0x4d0c1b=Object['getOwnPropertyDescriptor'](_0x725c20,_0x3b4280):_0x4d0c1b,_0x880833;if(typeof Reflect==_0x1a926f(0x195)&&typeof Reflect[_0x1a926f(0x2ad)]==_0x1a926f(0x1ed))_0x2325a3=Reflect[_0x1a926f(0x2ad)](_0x33d90e,_0x725c20,_0x3b4280,_0x4d0c1b);else{for(var _0x5cbb8b=_0x33d90e[_0x1a926f(0x20b)]-0x1;_0x5cbb8b>=0x0;_0x5cbb8b--)(_0x880833=_0x33d90e[_0x5cbb8b])&&(_0x2325a3=(_0x5f7a9<0x3?_0x880833(_0x2325a3):_0x5f7a9>0x3?_0x880833(_0x725c20,_0x3b4280,_0x2325a3):_0x880833(_0x725c20,_0x3b4280))||_0x2325a3);}return _0x5f7a9>0x3&&_0x2325a3&&Object[_0x1a926f(0x2c3)](_0x725c20,_0x3b4280,_0x2325a3),_0x2325a3;}let _0x33288b=_0x4e837f(0x1bb),_0xd2cb86=_0x4e837f(0x225),_0x3e69d3=class extends _0x321763[_0x4e837f(0x1fc)]{constructor(_0x27526e,_0x2321f7,_0x3c1606,_0x52f15f,_0x536ee7,_0x5442be,_0x59230a,_0x1da74f,_0x422a56,_0xb3cb64){const _0x46623e=_0x4e837f;super(),this[_0x46623e(0x1f7)]=_0x27526e,this[_0x46623e(0x2a4)]=_0x2321f7,this[_0x46623e(0x2db)]=_0x3c1606,this[_0x46623e(0x24f)]=_0x52f15f,this[_0x46623e(0x234)]=_0x536ee7,this[_0x46623e(0x29b)]=_0x5442be,this[_0x46623e(0x2a7)]=_0x59230a,this[_0x46623e(0x2f3)]=_0x1da74f,this['_logService']=_0x422a56,this[_0x46623e(0x282)]=_0xb3cb64,_0x50d464(this,_0x46623e(0x196),new _0x2f7a95[(_0x46623e(0x194))](!0x1)),_0x50d464(this,_0x46623e(0x19a),new _0x2f7a95['BehaviorSubject']({})),_0x50d464(this,'_config$',new _0x2f7a95[(_0x46623e(0x194))]({})),_0x50d464(this,_0x46623e(0x2fb),new _0x2f7a95[(_0x46623e(0x194))]('')),_0x50d464(this,'_handleConfigSave',async _0x4f72a=>{const _0x2e379c=_0x46623e;this['_loading$']['next'](!0x0);try{var _0x18f2d0,_0x46b8e3;let _0x32512a=await this[_0x2e379c(0x25a)](_0x4f72a);if(!_0x32512a[_0x2e379c(0x21c)]){this[_0x2e379c(0x29b)]['show']({'type':_0x577a04['MessageType']['Error'],'content':_0x32512a[_0x2e379c(0x2b3)]||this[_0x2e379c(0x2f3)]['t'](_0x2e379c(0x213))});return;}_0x4f72a[_0x2e379c(0x1da)]?await this['_localStorageService'][_0x2e379c(0x2cf)](_0x33288b,_0x4f72a[_0x2e379c(0x1da)]['trim']()):await this['_localStorageService'][_0x2e379c(0x1d6)](_0x33288b),this['_apiKey$'][_0x2e379c(0x27b)](((_0x18f2d0=_0x4f72a[_0x2e379c(0x1da)])==null?void 0x0:_0x18f2d0['trim']())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x2e379c(0x26a)+((_0x46b8e3=_0x4f72a[_0x2e379c(0x1da)])==null?void 0x0:_0x46b8e3[_0x2e379c(0x1a6)]())}),this[_0x2e379c(0x29b)][_0x2e379c(0x1b4)]({'type':_0x577a04[_0x2e379c(0x253)]['Success'],'content':this[_0x2e379c(0x2f3)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x4fe9b9=_0x2e379c;this[_0x4fe9b9(0x234)]['close'](_0xd2cb86);},0x320);}catch(_0x94afc4){this['_logService'][_0x2e379c(0x1f5)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x94afc4),this[_0x2e379c(0x29b)]['show']({'type':_0x577a04[_0x2e379c(0x253)][_0x2e379c(0x268)],'content':this[_0x2e379c(0x2f3)]['t']('mcpConfig.configError')});}finally{this[_0x2e379c(0x196)]['next'](!0x1);}}),this[_0x46623e(0x18e)](),this[_0x46623e(0x292)](),this[_0x46623e(0x2cb)]();}[_0x4e837f(0x1a9)](){const _0x13af9d=_0x4e837f;let _0x452ef6=this[_0x13af9d(0x2db)][_0x13af9d(0x2eb)](_0x9df88e);_0x452ef6!=null&&_0x452ef6[_0x13af9d(0x29e)]&&this[_0x13af9d(0x234)][_0x13af9d(0x295)]({'id':_0xd2cb86,'title':{'title':this[_0x13af9d(0x2f3)]['t'](_0x13af9d(0x280))},'children':{'label':_0x13af9d(0x273)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4ac549=_0x13af9d;this[_0x4ac549(0x234)][_0x4ac549(0x229)](_0xd2cb86);}});}[_0x4e837f(0x279)](){const _0xc3a7d1=_0x4e837f;return this[_0xc3a7d1(0x19a)][_0xc3a7d1(0x2ff)];}[_0x4e837f(0x2cb)](){const _0x161472=_0x4e837f;this['disposeWithMe'](this[_0x161472(0x2a7)][_0x161472(0x29c)]('MCPConfigPanel',this[_0x161472(0x1ca)]()));}[_0x4e837f(0x1ca)](){const _0x491d39=_0x4e837f;return(0x0,_0x4bf02e[_0x491d39(0x1ba)])(()=>{const _0x5e52f5=_0x491d39;var _0x497340,_0x5d532c,_0x2ae9dd;return(0x0,_0x4babf8[_0x5e52f5(0x1b7)])(_0xf68cd9,{'config':this[_0x5e52f5(0x22f)][_0x5e52f5(0x2ff)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x5e52f5(0x2ff)],'currentApiKey$':this['_apiKey$'],'onSave':this['_handleConfigSave'],'loading':this[_0x5e52f5(0x196)][_0x5e52f5(0x2ff)],'connectionStatus$':(_0x497340=this[_0x5e52f5(0x282)])==null?void 0x0:_0x497340[_0x5e52f5(0x201)],'connectionError$':(_0x5d532c=this[_0x5e52f5(0x282)])==null?void 0x0:_0x5d532c['connectionError$'],'currentSessionId$':(_0x2ae9dd=this[_0x5e52f5(0x282)])==null?void 0x0:_0x2ae9dd[_0x5e52f5(0x1dd)]});},this['_injector']);}[_0x4e837f(0x18e)](){const _0x23c146=_0x4e837f;this[_0x23c146(0x2d4)](this[_0x23c146(0x2db)]['subscribeConfigValue$'](_0x43eebc[_0x23c146(0x2e3)])[_0x23c146(0x240)](_0x5ec33b=>{const _0xf894e=_0x23c146;this['_mcpCoreConfig$'][_0xf894e(0x27b)](_0x5ec33b||{});}));let _0xabe2f=this[_0x23c146(0x2db)]['getConfig'](_0x43eebc[_0x23c146(0x2e3)]);this['_mcpCoreConfig$']['next'](_0xabe2f||{}),this[_0x23c146(0x2d4)](this[_0x23c146(0x2db)]['subscribeConfigValue$'](_0x9df88e)['subscribe'](_0x342dfc=>{const _0x41dcea=_0x23c146;this[_0x41dcea(0x22f)][_0x41dcea(0x27b)](_0x342dfc||{});}));let _0x5b9f16=this[_0x23c146(0x2db)]['getConfig'](_0x9df88e);this[_0x23c146(0x22f)][_0x23c146(0x27b)](_0x5b9f16||{});}async[_0x4e837f(0x292)](){const _0x128379=_0x4e837f;let _0x45e4e9=this[_0x128379(0x2db)][_0x128379(0x2eb)](_0x9df88e);if(!(_0x45e4e9!=null&&_0x45e4e9[_0x128379(0x29e)]))return;let _0x33cb10=await this[_0x128379(0x24f)][_0x128379(0x1ef)](_0x33288b);_0x33cb10&&(this[_0x128379(0x282)][_0x128379(0x2f9)]({'Authorization':_0x128379(0x26a)+_0x33cb10}),this[_0x128379(0x2fb)][_0x128379(0x27b)](_0x33cb10));}async[_0x4e837f(0x25a)](_0x4af5fe){const _0x18549e=_0x4e837f;if(!_0x4af5fe[_0x18549e(0x1da)]||_0x4af5fe['apiKey'][_0x18549e(0x1a6)]()[_0x18549e(0x20b)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x4af5fe[_0x18549e(0x1da)]['trim']()[_0x18549e(0x20b)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x18549e(0x2f3)]['t'](_0x18549e(0x192))};try{let _0x199fcd=await this[_0x18549e(0x1f7)]['get'](_0x43eebc[_0x18549e(0x1fe)])['validateApiKey'](_0x4af5fe[_0x18549e(0x1da)][_0x18549e(0x1a6)]());return _0x199fcd[_0x18549e(0x21c)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x199fcd[_0x18549e(0x1f5)]||this['_localeService']['t'](_0x18549e(0x2c4))};}catch(_0x52997a){return console['warn'](_0x18549e(0x25e),_0x52997a),{'isValid':!0x0};}}};_0x3e69d3=_0x5146d4([_0x3ac0c3(0x0,(0x0,_0x321763[_0x4e837f(0x2f4)])(_0x321763[_0x4e837f(0x236)])),_0x3ac0c3(0x1,_0x4bf02e['IUIPartsService']),_0x3ac0c3(0x2,_0x321763[_0x4e837f(0x2ee)]),_0x3ac0c3(0x3,_0x321763[_0x4e837f(0x1e0)]),_0x3ac0c3(0x4,_0x4bf02e[_0x4e837f(0x265)]),_0x3ac0c3(0x5,_0x4bf02e[_0x4e837f(0x30b)]),_0x3ac0c3(0x6,(0x0,_0x321763[_0x4e837f(0x2f4)])(_0x4bf02e[_0x4e837f(0x222)])),_0x3ac0c3(0x7,(0x0,_0x321763[_0x4e837f(0x2f4)])(_0x321763['LocaleService'])),_0x3ac0c3(0x8,_0x321763[_0x4e837f(0x2f1)]),_0x3ac0c3(0x9,(0x0,_0x321763[_0x4e837f(0x2f4)])(_0x43eebc[_0x4e837f(0x1fe)]))],_0x3e69d3);let _0x3c90fd={'id':_0x4e837f(0x256),'type':_0x321763[_0x4e837f(0x2fc)][_0x4e837f(0x1dc)],'handler':async(_0x5ed9d3,_0x359ce1)=>(_0x5ed9d3[_0x4e837f(0x2ae)](_0x3e69d3)[_0x4e837f(0x1a9)](),!0x0)};function _0x44adff(_0x538496,_0x5083b9){const _0x1aea07=_0x4e837f;switch(_0x538496){case _0x43eebc[_0x1aea07(0x212)][_0x1aea07(0x251)]:return _0x1aea07(0x187);case _0x43eebc['MCPConnectionStatus'][_0x1aea07(0x2a0)]:return _0x1aea07(0x271);case _0x43eebc['MCPConnectionStatus'][_0x1aea07(0x287)]:return _0x1aea07(0x18c);case _0x43eebc['MCPConnectionStatus']['FAILED']:switch(_0x5083b9){case _0x43eebc[_0x1aea07(0x1e4)][_0x1aea07(0x18a)]:return'mcpStatus.unauthorized';case _0x43eebc[_0x1aea07(0x1e4)]['SESSION_ID_OCCUPIED']:return _0x1aea07(0x24c);case _0x43eebc[_0x1aea07(0x1e4)][_0x1aea07(0x284)]:return _0x1aea07(0x2d2);case _0x43eebc[_0x1aea07(0x1e4)][_0x1aea07(0x2e9)]:return _0x1aea07(0x1ad);default:return'mcpStatus.failed';}case _0x43eebc[_0x1aea07(0x212)][_0x1aea07(0x1df)]:return _0x1aea07(0x1a5);default:return _0x1aea07(0x28d);}}function _0x1e7330(_0x3e996c,_0x1bd0de,_0xed5272,_0x4f907a=!0x0){const _0x2c3d10=_0x4e837f;let _0x1ed0b4=_0x44adff(_0x3e996c,_0x1bd0de),_0x10b818=_0xed5272['t'](_0x1ed0b4);return _0x4f907a?_0x3e996c===_0x43eebc['MCPConnectionStatus']['DISCONNECTED']&&_0x1bd0de===_0x43eebc[_0x2c3d10(0x1e4)]['UNAUTHORIZED']?_0x10b818+_0x2c3d10(0x22d)+_0xed5272['t'](_0x2c3d10(0x1de)):_0x3e996c===_0x43eebc['MCPConnectionStatus'][_0x2c3d10(0x287)]?''+_0x10b818:_0x3e996c===_0x43eebc[_0x2c3d10(0x212)][_0x2c3d10(0x251)]||_0x3e996c===_0x43eebc['MCPConnectionStatus'][_0x2c3d10(0x276)]?_0x10b818+_0x2c3d10(0x22d)+_0xed5272['t'](_0x2c3d10(0x28f)):_0x10b818:_0x10b818;}function _0x175140(_0x14da28){const _0x8bfcd9=_0x4e837f;switch(_0x14da28){case _0x43eebc[_0x8bfcd9(0x212)][_0x8bfcd9(0x287)]:return _0x8bfcd9(0x1ac);case _0x43eebc[_0x8bfcd9(0x212)]['CONNECTING']:case _0x43eebc[_0x8bfcd9(0x212)]['RETRYING']:return _0x8bfcd9(0x291);case _0x43eebc[_0x8bfcd9(0x212)][_0x8bfcd9(0x276)]:case _0x43eebc['MCPConnectionStatus'][_0x8bfcd9(0x251)]:return'univer-text-red-500';default:return _0x8bfcd9(0x2a3);}}function _0x4e7f10(_0xed19da){const _0x3d326b=_0x4e837f;let {status$:_0x1bd95b,error$:_0x18ca4b,onConfigure:_0x356593,showClickable:_0x2f7acf=!0x0}=_0xed19da,_0xc645be=(0x0,_0x4bf02e['useObservable'])(_0x1bd95b,_0x43eebc[_0x3d326b(0x212)][_0x3d326b(0x251)]),_0x445671=(0x0,_0x4bf02e[_0x3d326b(0x277)])(_0x18ca4b,_0x43eebc[_0x3d326b(0x1e4)][_0x3d326b(0x1d3)]),_0x491a2f=(0x0,_0x4bf02e[_0x3d326b(0x1e3)])(_0x321763[_0x3d326b(0x2fd)]),_0x452f9a=_0xc645be===_0x43eebc[_0x3d326b(0x212)][_0x3d326b(0x287)];_0xc645be===_0x43eebc['MCPConnectionStatus'][_0x3d326b(0x2a0)]||_0x43eebc[_0x3d326b(0x212)][_0x3d326b(0x1df)];let _0x101fb6=_0x491a2f['t'](_0x44adff(_0xc645be,_0x445671)),_0x41a997=_0x1e7330(_0xc645be,_0x445671,_0x491a2f,_0x2f7acf),_0x177f0e=_0x175140(_0xc645be),_0x343328=_0x452f9a?(0x0,_0x4babf8[_0x3d326b(0x1b7)])(_0x48a5f6,{}):(0x0,_0x4babf8['jsx'])(_0xba8e67,{}),_0x35b236=(0x0,_0xe91101[_0x3d326b(0x185)])(()=>{_0x2f7acf&&_0x356593&&_0x356593();},[_0x2f7acf,_0x356593]);function _0x12c4cb(){const _0x1241d7=_0x3d326b;return(0x0,_0x4babf8[_0x1241d7(0x1f4)])(_0x1241d7(0x272),{'className':(0x0,_0x577a04[_0x1241d7(0x2c7)])('univer-flex\x20univer-items-center',_0x2f7acf&&_0x356593&&_0x1241d7(0x18d)),'role':_0x1241d7(0x304),'onClick':_0x2f7acf&&_0x356593?_0x35b236:void 0x0,'children':[(0x0,_0x4babf8[_0x1241d7(0x1b7)])(_0x1241d7(0x272),{'className':(0x0,_0x577a04[_0x1241d7(0x2c7)])(_0x1241d7(0x30f),_0x177f0e),'children':_0x343328}),(0x0,_0x4babf8['jsx'])('div',{'className':_0x1241d7(0x1cd),'children':_0x101fb6})]});}return(0x0,_0x4babf8[_0x3d326b(0x1b7)])(_0x577a04[_0x3d326b(0x250)],{'title':_0x41a997,'placement':'bottom','children':_0x12c4cb()});}let _0x9e955e=class extends _0x321763[_0x4e837f(0x1fc)]{constructor(_0x3bedf5,_0x6b2152,_0x35ac84,_0x5bd7f7){const _0x293105=_0x4e837f;super(),this[_0x293105(0x1f7)]=_0x3bedf5,this[_0x293105(0x293)]=_0x6b2152,this[_0x293105(0x2a4)]=_0x35ac84,this[_0x293105(0x2db)]=_0x5bd7f7,this[_0x293105(0x2d1)](),this['_initStatusComponent']();}[_0x4e837f(0x2d1)](){const _0x18968a=_0x4e837f;let _0x172958=this[_0x18968a(0x2db)][_0x18968a(0x2eb)](_0x9df88e);_0x172958!=null&&_0x172958[_0x18968a(0x29e)]&&(this[_0x18968a(0x293)][_0x18968a(0x2f8)]=!0x1);}['_initStatusComponent'](){const _0x5e9682=_0x4e837f;let _0x1f32ec=this[_0x5e9682(0x2db)]['getConfig'](_0x9df88e);(_0x1f32ec==null?void 0x0:_0x1f32ec[_0x5e9682(0x2f5)])!==!0x1&&this['disposeWithMe'](this[_0x5e9682(0x2a4)][_0x5e9682(0x1f3)](_0x4bf02e['BuiltInUIPart'][_0x5e9682(0x1c0)],()=>{const _0x2579fe=_0x5e9682;var _0x5400a1;return(0x0,_0x4bf02e['connectInjector'])(_0x14ddb6({'status$':this[_0x2579fe(0x293)]['connectionStatus$'],'error$':this[_0x2579fe(0x293)][_0x2579fe(0x306)],'onConfigure':()=>this[_0x2579fe(0x239)](),'showClickable':(_0x5400a1=_0x1f32ec==null?void 0x0:_0x1f32ec[_0x2579fe(0x29e)])==null?!0x1:_0x5400a1}),this[_0x2579fe(0x1f7)]);}));}[_0x4e837f(0x239)](){const _0x8c1ab5=_0x4e837f;this[_0x8c1ab5(0x1f7)][_0x8c1ab5(0x2ae)](_0x3e69d3)[_0x8c1ab5(0x1a9)]();}};_0x9e955e=_0x5146d4([_0x3ac0c3(0x0,(0x0,_0x321763[_0x4e837f(0x2f4)])(_0x321763['Injector'])),_0x3ac0c3(0x1,(0x0,_0x321763['Inject'])(_0x43eebc[_0x4e837f(0x1fe)])),_0x3ac0c3(0x2,_0x4bf02e[_0x4e837f(0x21b)]),_0x3ac0c3(0x3,_0x321763[_0x4e837f(0x2ee)])],_0x9e955e);function _0x14ddb6(_0xfc0e28){let {status$:_0x3ae764,error$:_0x2b5ede,onConfigure:_0x8b6cea,showClickable:_0x3fb6a0}=_0xfc0e28;return function(){const _0x378c2e=_0x3c6f;return(0x0,_0x4babf8[_0x378c2e(0x1b7)])(_0x4e7f10,{'status$':_0x3ae764,'error$':_0x2b5ede,'onConfigure':_0x8b6cea,'showClickable':_0x3fb6a0});};}function _0x19ef7e(_0x5e81b2){const _0x5514e9=_0x4e837f;return{'id':_0x3c90fd['id'],'type':_0x4bf02e[_0x5514e9(0x221)]['BUTTON'],'icon':'MenuIcon','title':_0x5514e9(0x280),'tooltip':_0x5514e9(0x280)};}let _0x37c67e={[_0x4bf02e[_0x4e837f(0x1b6)]['OTHERS']]:{[_0x3c90fd['id']]:{'order':0xa,'menuItemFactory':_0x19ef7e}}},_0x488fcd=class extends _0x321763[_0x4e837f(0x1fc)]{constructor(_0x467e44,_0x5dc948){const _0x38a8d6=_0x4e837f;super(),this[_0x38a8d6(0x2b6)]=_0x467e44,this['_menuManagerService']=_0x5dc948,this[_0x38a8d6(0x2d7)](),this['_initializeMenus']();}[_0x4e837f(0x2d7)](){[_0x3c90fd]['forEach'](_0x4bb221=>{const _0x3c8488=_0x3c6f;this[_0x3c8488(0x2d4)](this['_commandService'][_0x3c8488(0x1af)](_0x4bb221));});}[_0x4e837f(0x290)](){const _0x58ff60=_0x4e837f;this[_0x58ff60(0x23e)][_0x58ff60(0x2fe)](_0x37c67e);}};_0x488fcd=_0x5146d4([_0x3ac0c3(0x0,_0x321763[_0x4e837f(0x22b)]),_0x3ac0c3(0x1,_0x4bf02e['IMenuManagerService'])],_0x488fcd);let _0x2c4d01={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4e837f(0x184),'connected':_0x4e837f(0x182),'failed':_0x4e837f(0x243),'retrying':_0x4e837f(0x27a),'unknown':_0x4e837f(0x27d),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x4e837f(0x269),'networkError':_0x4e837f(0x2d8),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x4e837f(0x2e6),'clickToConfigure':_0x4e837f(0x2e0)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4e837f(0x285),'apiKey':_0x4e837f(0x313),'apiKeyPlaceholder':_0x4e837f(0x310),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4e837f(0x20d),'enableAuthHint':_0x4e837f(0x224),'connectionInfo':_0x4e837f(0x20f),'mcpClientConfig':_0x4e837f(0x20f),'configInstructions':_0x4e837f(0x296),'configStepTitle':_0x4e837f(0x298),'configStep1':_0x4e837f(0x1d8),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4e837f(0x223),'sessionId':_0x4e837f(0x27f),'sessionIdDescription':_0x4e837f(0x23b),'authorizationDescription':_0x4e837f(0x1ee),'configParameters':_0x4e837f(0x2bf),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x4e837f(0x27c),'note1':_0x4e837f(0x1a7),'note2':_0x4e837f(0x2ab),'configSaved':_0x4e837f(0x1ab),'configError':_0x4e837f(0x2a8),'apiApplyInfo':{'title':_0x4e837f(0x260),'description':_0x4e837f(0x1e7),'univerAiLabel':_0x4e837f(0x2d5),'getStarted':_0x4e837f(0x2e1)},'validation':{'apiKeyRequired':_0x4e837f(0x1f9),'apiKeyTooShort':_0x4e837f(0x1a0),'invalidConfig':_0x4e837f(0x1cb),'invalidApiKey':_0x4e837f(0x22a)},'connectionStatus':{'disconnected':_0x4e837f(0x2c5),'connecting':'Connecting...','connected':_0x4e837f(0x300),'failed':_0x4e837f(0x20c),'retrying':_0x4e837f(0x308)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4e837f(0x30d),'maxRetriesExceeded':_0x4e837f(0x1c3)}}},_0x4df982={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x4e837f(0x30a),'connected':_0x4e837f(0x301),'failed':_0x4e837f(0x2e2),'retrying':_0x4e837f(0x1e8),'unknown':'MCP\x20状态未知','unauthorized':_0x4e837f(0x2b7),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x4e837f(0x28c),'clickToConnect':_0x4e837f(0x1a8),'clickToConfigure':_0x4e837f(0x1b3)},'mcpConfig':{'title':_0x4e837f(0x1a2),'description':_0x4e837f(0x303),'apiKey':_0x4e837f(0x1ea),'apiKeyPlaceholder':_0x4e837f(0x21d),'apiKeyHint':_0x4e837f(0x232),'enableAuth':_0x4e837f(0x1d9),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x4e837f(0x1d1),'mcpClientConfig':_0x4e837f(0x1d1),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x4e837f(0x21f),'configStep1':_0x4e837f(0x2d3),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x4e837f(0x209),'sessionId':_0x4e837f(0x217),'sessionIdDescription':_0x4e837f(0x2bd),'authorizationDescription':_0x4e837f(0x25d),'configParameters':'配置参数:','maxRetries':'最大重试次数','save':_0x4e837f(0x309),'saving':_0x4e837f(0x262),'note1':_0x4e837f(0x1c8),'note2':_0x4e837f(0x1f1),'configSaved':_0x4e837f(0x1e6),'configError':'配置保存失败','apiApplyInfo':{'title':_0x4e837f(0x2a2),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x4e837f(0x2cc),'getStarted':_0x4e837f(0x228)},'validation':{'apiKeyRequired':_0x4e837f(0x27e),'apiKeyTooShort':_0x4e837f(0x238),'invalidConfig':_0x4e837f(0x28b),'invalidApiKey':_0x4e837f(0x2c1)},'connectionStatus':{'disconnected':_0x4e837f(0x29a),'connecting':'连接中...','connected':'已连接','failed':'连接失败','retrying':_0x4e837f(0x246)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x4e837f(0x206),'networkError':_0x4e837f(0x2ce),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var _0x2b401e='@univerjs-pro/mcp-ui',_0x4a79f7=_0x4e837f(0x302);let _0x1fd321=class extends _0x321763[_0x4e837f(0x30c)]{constructor(_0xf5506b=_0x10e123,_0x5a84fc,_0x4106b4,_0x343f14,_0x187412,_0xbedc90){const _0x367b83=_0x4e837f;super(),this[_0x367b83(0x241)]=_0xf5506b,this[_0x367b83(0x1f7)]=_0x5a84fc,this[_0x367b83(0x2db)]=_0x4106b4,this[_0x367b83(0x2a4)]=_0x343f14,this['_localStorageService']=_0x187412,this[_0x367b83(0x2f3)]=_0xbedc90;let {..._0xd01752}=(0x0,_0x321763[_0x367b83(0x215)])({},_0x10e123,this['_config']);this[_0x367b83(0x2db)]['setConfig'](_0x9df88e,_0xd01752);}async[_0x4e837f(0x204)](){const _0x16d6d4=_0x4e837f;let _0x34c0f5=[[_0x9e955e],[_0x3e69d3],[_0x488fcd]];this[_0x16d6d4(0x1f7)][_0x16d6d4(0x218)](_0x4b6c62[_0x16d6d4(0x263)])||_0x34c0f5[_0x16d6d4(0x24b)]([_0x4b6c62[_0x16d6d4(0x263)],{'useClass':_0x4b6c62['WebSocketService']}]),_0x34c0f5[_0x16d6d4(0x211)](_0x4bf57f=>this[_0x16d6d4(0x1f7)][_0x16d6d4(0x20a)](_0x4bf57f)),this[_0x16d6d4(0x1f7)][_0x16d6d4(0x2ae)](_0x9e955e),this[_0x16d6d4(0x1f7)]['get'](_0x3e69d3),this[_0x16d6d4(0x1f7)][_0x16d6d4(0x2ae)](_0x488fcd);}};_0x50d464(_0x1fd321,_0x4e837f(0x1a4),'MCP_UI_PLUGIN'),_0x50d464(_0x1fd321,'packageName',_0x2b401e),_0x50d464(_0x1fd321,_0x4e837f(0x1c7),_0x4a79f7),_0x1fd321=_0x5146d4([(0x0,_0x321763[_0x4e837f(0x2b9)])(_0x43eebc[_0x4e837f(0x207)]),_0x3ac0c3(0x1,(0x0,_0x321763[_0x4e837f(0x2f4)])(_0x321763[_0x4e837f(0x236)])),_0x3ac0c3(0x2,_0x321763[_0x4e837f(0x2ee)]),_0x3ac0c3(0x3,_0x4bf02e[_0x4e837f(0x21b)]),_0x3ac0c3(0x4,_0x321763[_0x4e837f(0x1e0)]),_0x3ac0c3(0x5,(0x0,_0x321763[_0x4e837f(0x2f4)])(_0x321763['LocaleService']))],_0x1fd321),_0x4199ba[_0x4e837f(0x273)]=_0xf68cd9,Object['defineProperty'](_0x4199ba,_0x4e837f(0x181),{'enumerable':!0x0,'get':function(){return _0x3e69d3;}}),Object[_0x4e837f(0x2c3)](_0x4199ba,_0x4e837f(0x18f),{'enumerable':!0x0,'get':function(){return _0x9e955e;}}),_0x4199ba[_0x4e837f(0x259)]=_0x4e7f10,Object[_0x4e837f(0x2c3)](_0x4199ba,_0x4e837f(0x294),{'enumerable':!0x0,'get':function(){return _0x488fcd;}}),_0x4199ba[_0x4e837f(0x25b)]=_0x3c90fd,Object['defineProperty'](_0x4199ba,_0x4e837f(0x1db),{'enumerable':!0x0,'get':function(){return _0x1fd321;}}),_0x4199ba[_0x4e837f(0x26e)]=_0x2c4d01,_0x4199ba[_0x4e837f(0x28e)]=_0x4df982;}));
|