@univerjs-pro/mcp-ui 0.23.0 → 0.24.0
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 +3 -3
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x448f(){const _0x2abb07=['API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connecting...','3258WvNmqk','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Disconnected','Univer\x20AI\x20Console','1268487djZlWA','Enter\x20your\x20API\x20key','651272kUpnyu','API\x20key\x20with\x20Bearer\x20prefix.','48JteBnH','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Copy\x20the\x20JSON\x20configuration\x20below','477GGPzva','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','What\x20is\x20API\x20Key?','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connected','Configuration\x20saved\x20successfully','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Network\x20Error','698480xKDKTU','Session\x20ID','MCP\x20Unknown\x20Status','Enable\x20authentication\x20for\x20secure\x20connections','Enable\x20Authentication','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','exports','8mXrkQs','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Client\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Steps:','33684eJbUOl','Invalid\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connection\x20Failed','12612vzphgG','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Retrying...','Save\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20configure\x20MCP','Max\x20Retries','Get\x20your\x20API\x20key\x20in\x20seconds','60580gNZSAt','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','Saving...','126QMPJaV','MCP\x20Connected'];_0x448f=function(){return _0x2abb07;};return _0x448f();}const _0x7bff9b=_0x2388;(function(_0x13a111,_0x1bfe08){const _0x48174d=_0x2388,_0x2ad570=_0x13a111();while(!![]){try{const _0x1631ad=-parseInt(_0x48174d(0x15f))/0x1+-parseInt(_0x48174d(0x16b))/0x2*(-parseInt(_0x48174d(0x170))/0x3)+parseInt(_0x48174d(0x18a))/0x4*(parseInt(_0x48174d(0x183))/0x5)+-parseInt(_0x48174d(0x178))/0x6*(parseInt(_0x48174d(0x191))/0x7)+parseInt(_0x48174d(0x176))/0x8+-parseInt(_0x48174d(0x17b))/0x9*(parseInt(_0x48174d(0x167))/0xa)+parseInt(_0x48174d(0x174))/0xb;if(_0x1631ad===_0x1bfe08)break;else _0x2ad570['push'](_0x2ad570['shift']());}catch(_0x483cbb){_0x2ad570['push'](_0x2ad570['shift']());}}}(_0x448f,0x2a142));function _0x2388(_0x1024da,_0x434e8a){_0x1024da=_0x1024da-0x15c;const _0x448fd3=_0x448f();let _0x238851=_0x448fd3[_0x1024da];return _0x238851;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x7bff9b(0x16f),'connected':_0x7bff9b(0x16c),'failed':_0x7bff9b(0x15e),'retrying':_0x7bff9b(0x161),'unknown':_0x7bff9b(0x185),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x7bff9b(0x15c),'networkError':_0x7bff9b(0x182),'maxRetriesExceeded':_0x7bff9b(0x15d),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x7bff9b(0x164)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x7bff9b(0x17e),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x7bff9b(0x175),'apiKeyHint':_0x7bff9b(0x18d),'enableAuth':_0x7bff9b(0x187),'enableAuthHint':_0x7bff9b(0x186),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x7bff9b(0x18e),'configInstructions':_0x7bff9b(0x179),'configStepTitle':_0x7bff9b(0x190),'configStep1':_0x7bff9b(0x17a),'configStep2':_0x7bff9b(0x181),'configStep3':_0x7bff9b(0x16e),'sessionId':_0x7bff9b(0x184),'sessionIdDescription':_0x7bff9b(0x18f),'authorizationDescription':_0x7bff9b(0x177),'configParameters':_0x7bff9b(0x169),'maxRetries':_0x7bff9b(0x165),'save':_0x7bff9b(0x162),'saving':_0x7bff9b(0x16a),'note1':_0x7bff9b(0x193),'note2':_0x7bff9b(0x160),'configSaved':_0x7bff9b(0x180),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x7bff9b(0x17d),'description':_0x7bff9b(0x163),'univerAiLabel':_0x7bff9b(0x173),'getStarted':_0x7bff9b(0x166)},'validation':{'apiKeyRequired':_0x7bff9b(0x16d),'apiKeyTooShort':_0x7bff9b(0x17c),'invalidConfig':_0x7bff9b(0x192),'invalidApiKey':_0x7bff9b(0x171)},'connectionStatus':{'disconnected':_0x7bff9b(0x172),'connecting':_0x7bff9b(0x18c),'connected':_0x7bff9b(0x17f),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x7bff9b(0x18b),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x7bff9b(0x168),'maxRetriesExceeded':_0x7bff9b(0x188)}}};module[_0x7bff9b(0x189)]=e;
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2786(_0x3ea3a0,_0x32c46b){_0x3ea3a0=_0x3ea3a0-0x125;const _0x153ba6=_0x153b();let _0x278658=_0x153ba6[_0x3ea3a0];return _0x278658;}function _0x153b(){const _0x86152e=['Čo\x20je\x20API\x20kľúč?','158019ggbHHN','Konfigurácia\x20MCP','API\x20kľúč','Ukladá\x20sa...','Pripojenie\x20MCP\x20zlyhalo','Kliknite\x20na\x20pripojenie\x20MCP','API\x20kľúč\x20je\x20povinný','API\x20kľúč\x20s\x20prefixom\x20Bearer.','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','Kliknite\x20na\x20konfiguráciu\x20MCP','MCP:\x20Neautorizované','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','Univer\x20AI\x20konzola','MCP\x20opakuje\x20pokus...','Pripája\x20sa...','Pripojenie\x20zlyhalo','Zadajte\x20svoj\x20API\x20kľúč','ID\x20relácie','218488suFMsE','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','Konfigurácia\x20klienta\x20MCP','3740SiCGBl','MCP:\x20Prekročený\x20počet\x20pokusov','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','32YVbIHC','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','Odpojené','Parametre\x20konfigurácie:','7571277AYItsz','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','MCP\x20odpojené','MCP:\x20Sieťová\x20chyba','1884XmMScu','7383858ZRpVbY','MCP\x20sa\x20pripája...','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','Maximálny\x20počet\x20pokusov','963918tiPNbv','Pripojené','exports','327492bIWcDj','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','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.','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON'];_0x153b=function(){return _0x86152e;};return _0x153b();}const _0x16f9d6=_0x2786;(function(_0x295882,_0x45fa01){const _0x37354b=_0x2786,_0x339023=_0x295882();while(!![]){try{const _0x4b7386=-parseInt(_0x37354b(0x132))/0x1+parseInt(_0x37354b(0x149))/0x2+parseInt(_0x37354b(0x151))/0x3+parseInt(_0x37354b(0x141))/0x4*(parseInt(_0x37354b(0x135))/0x5)+-parseInt(_0x37354b(0x142))/0x6+parseInt(_0x37354b(0x13c))/0x7+-parseInt(_0x37354b(0x138))/0x8*(-parseInt(_0x37354b(0x146))/0x9);if(_0x4b7386===_0x45fa01)break;else _0x339023['push'](_0x339023['shift']());}catch(_0x5be281){_0x339023['push'](_0x339023['shift']());}}}(_0x153b,0x99b6f));const e={'mcpStatus':{'disconnected':_0x16f9d6(0x13f),'connecting':_0x16f9d6(0x143),'connected':'MCP\x20pripojené','failed':_0x16f9d6(0x155),'retrying':_0x16f9d6(0x12d),'unknown':'MCP\x20neznámy\x20stav','unauthorized':_0x16f9d6(0x12a),'sessionOccupied':'MCP:\x20ID\x20relácie\x20je\x20obsadené','networkError':_0x16f9d6(0x140),'maxRetriesExceeded':_0x16f9d6(0x136),'clickToConnect':_0x16f9d6(0x156),'clickToConfigure':_0x16f9d6(0x129)},'mcpConfig':{'title':_0x16f9d6(0x152),'description':_0x16f9d6(0x14b),'apiKey':_0x16f9d6(0x153),'apiKeyPlaceholder':_0x16f9d6(0x130),'apiKeyHint':_0x16f9d6(0x139),'enableAuth':'Povoliť\x20overenie','enableAuthHint':'Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','connectionInfo':_0x16f9d6(0x134),'mcpClientConfig':_0x16f9d6(0x134),'configInstructions':_0x16f9d6(0x133),'configStepTitle':'Kroky\x20konfigurácie:','configStep1':_0x16f9d6(0x14f),'configStep2':_0x16f9d6(0x13e),'configStep3':_0x16f9d6(0x14c),'sessionId':_0x16f9d6(0x131),'sessionIdDescription':'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.','authorizationDescription':_0x16f9d6(0x126),'configParameters':_0x16f9d6(0x13b),'maxRetries':_0x16f9d6(0x145),'save':'Uložiť\x20konfiguráciu','saving':_0x16f9d6(0x154),'note1':_0x16f9d6(0x128),'note2':_0x16f9d6(0x14a),'configSaved':'Konfigurácia\x20bola\x20úspešne\x20uložená','configError':_0x16f9d6(0x137),'apiApplyInfo':{'title':_0x16f9d6(0x150),'description':_0x16f9d6(0x14d),'univerAiLabel':_0x16f9d6(0x12c),'getStarted':_0x16f9d6(0x127)},'validation':{'apiKeyRequired':_0x16f9d6(0x125),'apiKeyTooShort':_0x16f9d6(0x144),'invalidConfig':'Neplatná\x20konfigurácia','invalidApiKey':'Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny'},'connectionStatus':{'disconnected':_0x16f9d6(0x13a),'connecting':_0x16f9d6(0x12e),'connected':_0x16f9d6(0x147),'failed':_0x16f9d6(0x12f),'retrying':'Skúša\x20sa\x20znova...'},'connectionError':{'unauthorized':_0x16f9d6(0x12b),'sessionOccupied':'ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','networkError':_0x16f9d6(0x14e),'maxRetriesExceeded':_0x16f9d6(0x13d)}}};module[_0x16f9d6(0x148)]=e;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1249(_0x9cc4,_0x202964){_0x9cc4=_0x9cc4-0x67;const _0x3afeec=_0x3afe();let _0x124913=_0x3afeec[_0x9cc4];return _0x124913;}const _0x17de47=_0x1249;(function(_0x2246d3,_0x44a3cf){const _0x2729dd=_0x1249,_0x492153=_0x2246d3();while(!![]){try{const _0x4e381d=parseInt(_0x2729dd(0x9c))/0x1+parseInt(_0x2729dd(0x92))/0x2*(parseInt(_0x2729dd(0x7f))/0x3)+parseInt(_0x2729dd(0x6b))/0x4+parseInt(_0x2729dd(0x89))/0x5*(parseInt(_0x2729dd(0x94))/0x6)+parseInt(_0x2729dd(0x6c))/0x7*(parseInt(_0x2729dd(0x71))/0x8)+-parseInt(_0x2729dd(0x6e))/0x9+parseInt(_0x2729dd(0x67))/0xa*(-parseInt(_0x2729dd(0x6d))/0xb);if(_0x4e381d===_0x44a3cf)break;else _0x492153['push'](_0x492153['shift']());}catch(_0x983fcd){_0x492153['push'](_0x492153['shift']());}}}(_0x3afe,0x983b7));function _0x3afe(){const _0x1fe79c=['Lưu\x20cấu\x20hình','Cấu\x20hình\x20MCP','MCP\x20Đang\x20thử\x20lại...','Đã\x20kết\x20nối','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Tham\x20số\x20cấu\x20hình:','66895JuopQj','Yêu\x20cầu\x20khóa\x20API','MCP:\x20Lỗi\x20mạng','Các\x20bước\x20cấu\x20hình:','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Khóa\x20API','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','Lưu\x20cấu\x20hình\x20thất\x20bại','Đang\x20lưu...','212386PVHsWK','Đã\x20ngắt\x20kết\x20nối','378kahRGl','MCP:\x20Không\x20được\x20phép','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','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\x20Đã\x20kết\x20nối','Bảng\x20điều\x20khiển\x20Univer\x20AI','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','624693GJHtDK','4340mnFogl','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Nhấp\x20để\x20kết\x20nối\x20MCP','36316jOosiG','98OgRkjO','28622sshefm','6701283dLfxfR','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','401240DqMEdF','ID\x20phiên','Nhập\x20khóa\x20API\x20của\x20bạn','Cấu\x20hình\x20máy\x20khách\x20MCP','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','MCP\x20Kết\x20nối\x20thất\x20bại','Đang\x20kết\x20nối...','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Đang\x20thử\x20lại...','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','Nhấp\x20để\x20cấu\x20hình\x20MCP','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','9ruEjrz','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','exports'];_0x3afe=function(){return _0x1fe79c;};return _0x3afe();}const e={'mcpStatus':{'disconnected':'MCP\x20Đã\x20ngắt\x20kết\x20nối','connecting':'MCP\x20Đang\x20kết\x20nối...','connected':_0x17de47(0x98),'failed':_0x17de47(0x78),'retrying':_0x17de47(0x85),'unknown':_0x17de47(0x75),'unauthorized':_0x17de47(0x95),'sessionOccupied':_0x17de47(0x8f),'networkError':_0x17de47(0x8b),'maxRetriesExceeded':_0x17de47(0x77),'clickToConnect':_0x17de47(0x6a),'clickToConfigure':_0x17de47(0x7d)},'mcpConfig':{'title':_0x17de47(0x84),'description':_0x17de47(0x7c),'apiKey':_0x17de47(0x8e),'apiKeyPlaceholder':_0x17de47(0x73),'apiKeyHint':_0x17de47(0x76),'enableAuth':'Bật\x20xác\x20thực','enableAuthHint':_0x17de47(0x7e),'connectionInfo':'Cấu\x20hình\x20máy\x20khách\x20MCP','mcpClientConfig':_0x17de47(0x74),'configInstructions':'Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','configStepTitle':_0x17de47(0x8c),'configStep1':'Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','configStep2':_0x17de47(0x9a),'configStep3':_0x17de47(0x97),'sessionId':_0x17de47(0x72),'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':_0x17de47(0x70),'configParameters':_0x17de47(0x88),'maxRetries':_0x17de47(0x69),'save':_0x17de47(0x83),'saving':_0x17de47(0x91),'note1':_0x17de47(0x96),'note2':_0x17de47(0x6f),'configSaved':_0x17de47(0x8d),'configError':_0x17de47(0x90),'apiApplyInfo':{'title':'Khóa\x20API\x20là\x20gì?','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':_0x17de47(0x99),'getStarted':_0x17de47(0x81)},'validation':{'apiKeyRequired':_0x17de47(0x8a),'apiKeyTooShort':_0x17de47(0x9b),'invalidConfig':'Cấu\x20hình\x20không\x20hợp\x20lệ','invalidApiKey':_0x17de47(0x80)},'connectionStatus':{'disconnected':_0x17de47(0x93),'connecting':_0x17de47(0x79),'connected':_0x17de47(0x86),'failed':'Kết\x20nối\x20thất\x20bại','retrying':_0x17de47(0x7b)},'connectionError':{'unauthorized':'Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','sessionOccupied':_0x17de47(0x7a),'networkError':_0x17de47(0x68),'maxRetriesExceeded':_0x17de47(0x87)}}};module[_0x17de47(0x82)]=e;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x12c9a5=_0x170b;(function(_0x1bed49,_0x11c7b5){const _0x5a179c=_0x170b,_0x15043b=_0x1bed49();while(!![]){try{const _0x274350=-parseInt(_0x5a179c(0x1cc))/0x1+-parseInt(_0x5a179c(0x1d5))/0x2*(-parseInt(_0x5a179c(0x1b4))/0x3)+parseInt(_0x5a179c(0x1bf))/0x4*(parseInt(_0x5a179c(0x1d9))/0x5)+-parseInt(_0x5a179c(0x1d0))/0x6*(-parseInt(_0x5a179c(0x1d2))/0x7)+parseInt(_0x5a179c(0x1d3))/0x8+parseInt(_0x5a179c(0x1da))/0x9+-parseInt(_0x5a179c(0x1c1))/0xa;if(_0x274350===_0x11c7b5)break;else _0x15043b['push'](_0x15043b['shift']());}catch(_0x1bdc47){_0x15043b['push'](_0x15043b['shift']());}}}(_0x1683,0xf067c));function _0x1683(){const _0x4ce261=['15469170jrGJZY','MCP\x20已断开','将配置添加到您的\x20MCP\x20客户端设置文件中','带有\x20Bearer\x20前缀的\x20API\x20密钥。','超出最大重试次数,请稍后再试','将以下配置添加到您的\x20MCP\x20客户端设置中:','会话\x20ID\x20已被占用,请稍后再试','MCP\x20重连中...','API\x20密钥不能为空','会话ID','几秒钟内获取您的\x20API\x20密钥','1259468mkEPne','Univer\x20AI\x20控制台','网络连接错误,请检查您的网络连接','未连接','636JTcZDO','点击连接\x20MCP','53263lKppTF','10052128meJHKm','什么是\x20API\x20密钥?','146DhudmB','保存中...','exports','配置\x20MCP\x20使用\x20AI\x20操作电子表格','6055wQToUA','5730903xYCqhD','配置更改将立即生效','配置保存失败','保存配置','您的\x20API\x20密钥安全存储在本地存储中','启用身份验证','MCP\x20客户端配置','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20配置','MCP:\x20会话\x20ID\x20已被占用','11253DIkYlw','API\x20密钥无效,请检查密钥是否正确','连接中...','配置无效','配置参数:','MCP\x20状态未知','启用身份验证以获得安全连接','配置步骤:','已连接','MCP\x20连接中...','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','2700cCOIVn','MCP\x20连接失败'];_0x1683=function(){return _0x4ce261;};return _0x1683();}const e={'mcpStatus':{'disconnected':_0x12c9a5(0x1c2),'connecting':_0x12c9a5(0x1bd),'connected':'MCP\x20已连接','failed':_0x12c9a5(0x1c0),'retrying':_0x12c9a5(0x1c8),'unknown':_0x12c9a5(0x1b9),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x12c9a5(0x1b3),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x12c9a5(0x1d1),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x12c9a5(0x1b2),'description':_0x12c9a5(0x1d8),'apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x12c9a5(0x1af),'enableAuthHint':_0x12c9a5(0x1ba),'connectionInfo':_0x12c9a5(0x1b0),'mcpClientConfig':_0x12c9a5(0x1b0),'configInstructions':_0x12c9a5(0x1c6),'configStepTitle':_0x12c9a5(0x1bb),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x12c9a5(0x1c3),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x12c9a5(0x1ca),'sessionIdDescription':_0x12c9a5(0x1b1),'authorizationDescription':_0x12c9a5(0x1c4),'configParameters':_0x12c9a5(0x1b8),'maxRetries':'最大重试次数','save':_0x12c9a5(0x1ad),'saving':_0x12c9a5(0x1d6),'note1':_0x12c9a5(0x1db),'note2':_0x12c9a5(0x1ae),'configSaved':'配置保存成功','configError':_0x12c9a5(0x1ac),'apiApplyInfo':{'title':_0x12c9a5(0x1d4),'description':_0x12c9a5(0x1be),'univerAiLabel':_0x12c9a5(0x1cd),'getStarted':_0x12c9a5(0x1cb)},'validation':{'apiKeyRequired':_0x12c9a5(0x1c9),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x12c9a5(0x1b7),'invalidApiKey':_0x12c9a5(0x1b5)},'connectionStatus':{'disconnected':_0x12c9a5(0x1cf),'connecting':_0x12c9a5(0x1b6),'connected':_0x12c9a5(0x1bc),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x12c9a5(0x1c7),'networkError':_0x12c9a5(0x1ce),'maxRetriesExceeded':_0x12c9a5(0x1c5)}}};function _0x170b(_0x1bb5fd,_0x139d65){_0x1bb5fd=_0x1bb5fd-0x1ac;const _0x1683f1=_0x1683();let _0x170b6e=_0x1683f1[_0x1bb5fd];return _0x170b6e;}module[_0x12c9a5(0x1d7)]=e;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x24db46=_0x1d48;function _0x1d48(_0x38b04f,_0x351173){_0x38b04f=_0x38b04f-0x131;const _0xfb6af6=_0xfb6a();let _0x1d48c8=_0xfb6af6[_0x38b04f];return _0x1d48c8;}function _0xfb6a(){const _0x36645d=['MCP\x20Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','750840RjDzVw','Disconnected','2925414gcVgyR','Save\x20Configuration','2AHYYgB','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20key\x20is\x20required','MCP:\x20Session\x20ID\x20Occupied','Max\x20Retries','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Parameters:','MCP\x20Unknown\x20Status','8033487TSofBQ','Connected','911730BYzaJl','Click\x20to\x20configure\x20MCP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Disconnected','Enter\x20your\x20API\x20key','MCP:\x20Unauthorized','exports','2822304zZvYNA','27Zaqptc','Configuration\x20Steps:','MCP\x20Retrying...','What\x20is\x20API\x20Key?','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Saving...','Click\x20to\x20connect\x20MCP','15KucqMK','439991iRHuLj','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','MCP\x20Client\x20Configuration','MCP\x20Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','21606010YUGRMX','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Failed\x20to\x20save\x20configuration','Retrying...','Connecting...','API\x20key\x20with\x20Bearer\x20prefix.'];_0xfb6a=function(){return _0x36645d;};return _0xfb6a();}(function(_0x3e9e6c,_0x5bc410){const _0x33b2e6=_0x1d48,_0x5b3d61=_0x3e9e6c();while(!![]){try{const _0x4cad05=parseInt(_0x33b2e6(0x151))/0x1*(-parseInt(_0x33b2e6(0x133))/0x2)+-parseInt(_0x33b2e6(0x13d))/0x3+-parseInt(_0x33b2e6(0x145))/0x4+-parseInt(_0x33b2e6(0x150))/0x5*(-parseInt(_0x33b2e6(0x131))/0x6)+-parseInt(_0x33b2e6(0x13b))/0x7+parseInt(_0x33b2e6(0x161))/0x8*(-parseInt(_0x33b2e6(0x146))/0x9)+parseInt(_0x33b2e6(0x159))/0xa;if(_0x4cad05===_0x5bc410)break;else _0x5b3d61['push'](_0x5b3d61['shift']());}catch(_0x5170fc){_0x5b3d61['push'](_0x5b3d61['shift']());}}}(_0xfb6a,0xb5cb1));const e={'mcpStatus':{'disconnected':_0x24db46(0x141),'connecting':'MCP\x20Connecting...','connected':_0x24db46(0x15f),'failed':_0x24db46(0x155),'retrying':_0x24db46(0x148),'unknown':_0x24db46(0x13a),'unauthorized':_0x24db46(0x143),'sessionOccupied':_0x24db46(0x136),'networkError':_0x24db46(0x153),'maxRetriesExceeded':_0x24db46(0x138),'clickToConnect':_0x24db46(0x14f),'clickToConfigure':_0x24db46(0x13e)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x24db46(0x152),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x24db46(0x142),'apiKeyHint':_0x24db46(0x13f),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x24db46(0x154),'mcpClientConfig':_0x24db46(0x154),'configInstructions':_0x24db46(0x15a),'configStepTitle':_0x24db46(0x147),'configStep1':_0x24db46(0x14a),'configStep2':_0x24db46(0x14b),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x24db46(0x140),'authorizationDescription':_0x24db46(0x15e),'configParameters':_0x24db46(0x139),'maxRetries':_0x24db46(0x137),'save':_0x24db46(0x132),'saving':_0x24db46(0x14e),'note1':_0x24db46(0x156),'note2':_0x24db46(0x157),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x24db46(0x15b),'apiApplyInfo':{'title':_0x24db46(0x149),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x24db46(0x135),'apiKeyTooShort':_0x24db46(0x134),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x24db46(0x158)},'connectionStatus':{'disconnected':_0x24db46(0x162),'connecting':_0x24db46(0x15d),'connected':_0x24db46(0x13c),'failed':'Connection\x20Failed','retrying':_0x24db46(0x15c)},'connectionError':{'unauthorized':_0x24db46(0x14c),'sessionOccupied':_0x24db46(0x14d),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x24db46(0x160)}}};module[_0x24db46(0x144)]=e;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x24e2fc=_0x1ffc;(function(_0x48e63d,_0x151f61){const _0x15b1ad=_0x1ffc,_0x56663e=_0x48e63d();while(!![]){try{const _0x18c108=parseInt(_0x15b1ad(0x2e2))/0x1+-parseInt(_0x15b1ad(0x2c9))/0x2*(parseInt(_0x15b1ad(0x251))/0x3)+-parseInt(_0x15b1ad(0x2fc))/0x4*(-parseInt(_0x15b1ad(0x29d))/0x5)+parseInt(_0x15b1ad(0x1f9))/0x6+-parseInt(_0x15b1ad(0x21a))/0x7+parseInt(_0x15b1ad(0x246))/0x8*(parseInt(_0x15b1ad(0x2ed))/0x9)+parseInt(_0x15b1ad(0x2bb))/0xa*(-parseInt(_0x15b1ad(0x1f1))/0xb);if(_0x18c108===_0x151f61)break;else _0x56663e['push'](_0x56663e['shift']());}catch(_0x5114cb){_0x56663e['push'](_0x56663e['shift']());}}}(_0x4b3e,0xa2034));import{CommandType as _0x2f411b,DependentOn as _0x55f634,Disposable as _0x553c10,ICommandService as _0x274b3d,IConfigService as _0x16e4b4,ILocalStorageService as _0x5192e1,ILogService as _0x3720d4,Inject as _0x17ef4b,Injector as _0x498a04,LocaleService as _0x58c1f8,Plugin as _0x210a69,merge as _0x5b05be}from'@univerjs/core';import{MCPConnectionController as _0x3a6502,MCPConnectionError as _0x4f8a1c,MCPConnectionStatus as _0x440b2d,MCP_PLUGIN_CONFIG_KEY as _0x15ca7d,UniverMCPPlugin as _0x2ba359}from'@univerjs-pro/mcp';import{Button as _0x979000,Input as _0x17d910,MessageType as _0x4b0c69,Tooltip as _0x48d592,clsx as _0xe696c7}from'@univerjs/design';import{BuiltInUIPart as _0x5d5a0c,ComponentManager as _0x26c3a3,IDialogService as _0x4d970d,IMenuManagerService as _0x2be40c,IMessageService as _0x34758a,IUIPartsService as _0xbb3625,MenuItemType as _0x547bdc,RibbonStartGroup as _0x66f7f3,connectInjector as _0xd78b8b,useDependency as _0x5d46a2,useObservable as _0x12c36e}from'@univerjs/ui';function _0x4b3e(){const _0x5b0d1e=['univer-text-white','MCP:\x20会话\x20ID\x20已被占用','20meFObI','univer-min-w-0\x20univer-flex-1','连接中...','MCP\x20Retrying...','Invalid\x20configuration','未连接','registerComponent','FAILED','_mcpCoreConfig$','value','mcpConfig.connectionInfo','_uiPartsService','mcpConfig.apiKeyPlaceholder','mcpStatus.clickToConnect','1378348byIxEa','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','string','0.23.0','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-text-green-500','MCP\x20连接中...','配置步骤:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','object','add','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer.plus','CONNECTED','warn','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Copy\x20the\x20JSON\x20configuration\x20below','mcp-ui.command.openConfigPanel','setConfig','网络连接错误,请检查您的网络连接','mcpConfig.apiKey','univer-bg-green-500','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','stringify','Success','1040284WKDTjU','Enable\x20Authentication','RETRYING','push','复制以下\x20JSON\x20配置','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','配置参数:','univer-space-y-2','getConfig','sessionId$','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','180594POtpkO','MCP:\x20Network\x20Error','univer-text-red-500','MCP_UI_PLUGIN','setItem','show','mcpServerUrl','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','MCP\x20客户端配置','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.apiApplyInfo.univerAiLabel','univer-text-sm\x20univer-text-gray-500','Max\x20Retries','重连中...','MCP\x20连接失败','1392460HwYfly','version','配置保存成功','getOwnPropertyDescriptor','DISCONNECTED','@univerjs-pro/mcp-ui','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','has','univer-text-gray-400','univer-space-y-3','_loadStoredApiKey','请输入您的\x20API\x20密钥','mcpConfig.connectionError.unauthorized','errorMessage','_handleConfigSave','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','showDeveloperTools','close','mcpConfig.apiApplyInfo.title','enableAutoConnect','几秒钟内获取您的\x20API\x20密钥','Disconnected','Connection\x20Failed','univer-font-medium','univer-text-xs\x20univer-text-gray-500','_localStorageService','_config$','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','API\x20密钥','Session\x20ID','\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','packageName','_configService','_initializeMenus','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','subscribeConfigValue$','univer-bg-blue-500','_menuManagerService','univer-space-y-5','univer-text-yellow-500','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','Get\x20your\x20API\x20key\x20in\x20seconds','6846917UWqTgP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-flex\x20univer-items-center\x20univer-gap-2','__setCustomHeaders','MCP:\x20超出最大重试次数','constructor','MCP\x20Unknown\x20Status','mcpConfig.authorizationDescription','3974802zOWACE','label','forEach','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.note2','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','defineProperty','_validateConfig','Retrying...','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_mcpConnectionController','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpStatus.connecting','connectionError$','_initStatusComponent','https://mcp.univer.ai/mcp/?univer_session_id=','connectionStatus$','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','symbol','https://console.univer.plus','NONE','_commandService','showConfigPanel','mcpConfig.description','toPrimitive','_connectionController','UNAUTHORIZED','getItem','Error','Univer\x20AI\x20Console','Click\x20to\x20configure\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MAX_RETRIES_EXCEEDED','13783znffYC','prototype','error','mcpStatus.maxRetriesExceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpConfig.configStep3','_injector','Connecting...','_loading$','\x20-\x20','_registerComponent','OTHERS','subscribe','mcpStatus.networkError','div','Configuration\x20Steps:','权限验证失败,请检查您的\x20API\x20密钥','next','mcpConfig.validation.apiKeyTooShort','univer-flex\x20univer-gap-3','registerCommand','univer-flex\x20univer-items-center\x20univer-gap-3','SESSION_ID_OCCUPIED','API\x20密钥长度至少需要\x2010\x20位','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','open','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Enter\x20your\x20API\x20key','mcpConfig.configStep1','mcpStatus.connected','mcpConfig.apiKeyHint','会话\x20ID\x20已被占用,请稍后再试','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','text','mcpConfig.configParameters','mcpConfig.connectionStatus.failed','univer-flex-1','_apiKey$','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_localeService','mcpConfig.connectionStatus.connected','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','已连接','80agbRrY','mcpConfig.connectionStatus.connecting','API\x20密钥无效,请检查密钥是否正确','noopener\x20noreferrer','mcpConfig.note1','配置无效','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','_config','mcpConfig.apiApplyInfo.description','register','3dAVUES','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-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','点击配置\x20MCP','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','length','mcpStatus.retrying','includes','mcpConfig.configSaved','mcpStatus.clickToConfigure','univer-bg-red-500','MCP:\x20未授权','showStatus','mcpConfig.configStepTitle','MCPConfigPanel','bottom','decorate','带有\x20Bearer\x20前缀的\x20API\x20密钥。','保存配置','univer-flex\x20univer-items-start\x20univer-gap-3','What\x20is\x20API\x20Key?','mcpStatus.unknown','您的\x20API\x20密钥将在此浏览器中本地存储','univer.ai','_initializeCommands','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Connected','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MCP:\x20Unauthorized','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','pluginName','Configuration\x20saved\x20successfully','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-text-sm\x20univer-font-medium','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','off','mcpConfig.save','http','univer-flex\x20univer-items-start\x20univer-gap-2','Bearer\x20','trim','点击连接\x20MCP','apiKey','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','https://console.univer.ai','iterator','配置保存失败','API\x20Key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcp.apiKey','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','disposeWithMe','span','MCP\x20Disconnected','_logService','univer-text-blue-600','Click\x20to\x20connect\x20MCP','MCP\x20Connecting...','MCP\x20Connected','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.configStep2','function','_dialogService','mcpConfig.connectionError.maxRetriesExceeded','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','<API_KEY>','Saving...','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpStatus.failed','mcpConfig.title','_blank','mergeMenu','连接失败','10qfPWQk','mcpStatus.sessionOccupied','MCP\x20已断开','Univer\x20AI\x20控制台','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Authorization:','mcpConfig.validation.invalidConfig','mcpConfig.apiApplyInfo.getStarted','onStarting','COMMAND','_handleConfigure','Enable\x20authentication\x20for\x20secure\x20connections','get','MCP\x20Configuration','MCP:\x20网络错误','BUTTON','NETWORK_ERROR','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','button','_initConfigSync','univer-bg-gray-500','会话ID','isValid','_createConfigPanelComponent','mcpConfig.saving','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','CONNECTING','_componentManager'];_0x4b3e=function(){return _0x5b0d1e;};return _0x4b3e();}import{BehaviorSubject as _0x4bb220}from'rxjs';function _0x1ffc(_0x38081f,_0x257c3c){_0x38081f=_0x38081f-0x1ed;const _0x4b3e5c=_0x4b3e();let _0x1ffc6a=_0x4b3e5c[_0x38081f];return _0x1ffc6a;}import{CheckMarkIcon as _0x4ed399,CloseIcon as _0x161a36,HelpIcon as _0x347fde,OffLineIcon as _0x619373,OnLineIcon as _0x2e186b}from'@univerjs/icons';import{useCallback as _0x526f6e,useState as _0x39d669}from'react';import{jsx as _0x19478f,jsxs as _0x4ad251}from'react/jsx-runtime';import{ISocketService as _0x184860,WebSocketService as _0x3859a6}from'@univerjs/network';function z(_0x5ec482){const _0x3525a0=_0x1ffc;var _0x38271d,_0x1168d0;let {mcpCoreConfig:_0x5d6c31,onSave:_0x39585b,loading:_0x32c72a=!0x1,config:_0x3a5ba1,connectionStatus$:_0x2dccf7,connectionError$:_0x39ef50,currentApiKey$:_0x2361b0,currentSessionId$:_0x107f2f}=_0x5ec482,_0x271951=_0x5d46a2(_0x58c1f8),_0x4be279=_0x12c36e(_0x2dccf7,_0x440b2d[_0x3525a0(0x300)]),_0x3a42ac=_0x12c36e(_0x39ef50,_0x4f8a1c[_0x3525a0(0x20d)]),_0x321029=_0x12c36e(_0x107f2f,''),[_0x5960a9,_0x2ccefb]=_0x39d669(_0x12c36e(_0x2361b0,'')||''),_0x5cfe5d=_0x3a5ba1[_0x3525a0(0x30e)]&&_0x5d6c31[_0x3525a0(0x2f3)]&&(_0x5d6c31['mcpServerUrl']['includes'](_0x3525a0(0x2d5))||_0x5d6c31['mcpServerUrl'][_0x3525a0(0x259)](_0x3525a0(0x269))),_0x4765f2=(_0x38271d=_0x5d6c31[_0x3525a0(0x2f3)])==null?void 0x0:_0x38271d['includes'](_0x3525a0(0x2d5)),_0x5f2368=(_0x1168d0=_0x5d6c31['mcpServerUrl'])==null?void 0x0:_0x1168d0[_0x3525a0(0x259)]('univer.ai'),_0x1b17d3=_0x4765f2?_0x3525a0(0x20c):_0x3525a0(0x27e),_0x529be5=_0x3a5ba1[_0x3525a0(0x30e)]&&(_0x4765f2||_0x5f2368),[_0x4e266c,_0x27fd24]=_0x39d669(!_0x5960a9[_0x3525a0(0x27a)]()),_0x2bb093=(_0x1617fd,_0x5012fe)=>{const _0x51ea61=_0x3525a0;if(_0x5012fe===_0x4f8a1c[_0x51ea61(0x213)])return _0x51ea61(0x30d);switch(_0x1617fd){case _0x440b2d[_0x51ea61(0x2d6)]:return _0x51ea61(0x2f4);case _0x440b2d['CONNECTING']:case _0x440b2d['RETRYING']:return _0x51ea61(0x26d);case _0x440b2d[_0x51ea61(0x2c2)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x51ea61(0x320);}},_0x25d1b3=(_0x3485e4,_0x3747b6)=>{const _0x5f1a06=_0x3525a0;if(_0x3747b6===_0x4f8a1c['UNAUTHORIZED'])return _0x5f1a06(0x25c);switch(_0x3485e4){case _0x440b2d['CONNECTED']:return _0x5f1a06(0x2de);case _0x440b2d['CONNECTING']:case _0x440b2d['RETRYING']:return _0x5f1a06(0x322);case _0x440b2d['FAILED']:return _0x5f1a06(0x25c);default:return _0x5f1a06(0x2b1);}},_0x128034=_0x489383=>{const _0x3aa6f5=_0x3525a0;switch(_0x489383){case _0x440b2d[_0x3aa6f5(0x2d6)]:return _0x271951['t'](_0x3aa6f5(0x243));case _0x440b2d[_0x3aa6f5(0x2b7)]:return _0x271951['t'](_0x3aa6f5(0x247));case _0x440b2d[_0x3aa6f5(0x2c2)]:return _0x271951['t'](_0x3aa6f5(0x23e));case _0x440b2d[_0x3aa6f5(0x2e4)]:return _0x271951['t']('mcpConfig.connectionStatus.retrying');default:return _0x271951['t']('mcpConfig.connectionStatus.disconnected');}},_0x57ab4b=_0x532ae2=>{const _0x68f161=_0x3525a0;switch(_0x532ae2){case _0x4f8a1c[_0x68f161(0x213)]:return _0x271951['t'](_0x68f161(0x30a));case _0x4f8a1c['SESSION_ID_OCCUPIED']:return _0x271951['t']('mcpConfig.connectionError.sessionOccupied');case _0x4f8a1c[_0x68f161(0x2ad)]:return _0x271951['t']('mcpConfig.connectionError.networkError');case _0x4f8a1c[_0x68f161(0x219)]:return _0x271951['t'](_0x68f161(0x291));default:return'';}},_0x3b6f9b=_0x526f6e(()=>{const _0x41a729=_0x3525a0;_0x39585b({..._0x5d6c31,'apiKey':_0x5960a9[_0x41a729(0x27a)](),'enableAuth':!0x0});},[_0x5d6c31,_0x5960a9,!0x0,_0x39585b]),_0x4ce68d=_0x5960a9[_0x3525a0(0x27a)]()['length']>0x0;return _0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x294),'children':[_0x19478f('div',{'className':_0x3525a0(0x2ca),'children':_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x22f),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x2ae),'children':_0x19478f(_0x3525a0(0x286),{'className':_0x3525a0(0x2b9),'children':'⚙'})}),_0x19478f(_0x3525a0(0x228),{'children':_0x19478f('p',{'className':_0x3525a0(0x2f8),'children':_0x271951['t'](_0x3525a0(0x210))})})]})}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x2d4),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0xe696c7(_0x3525a0(0x1fe),_0x2bb093(_0x4be279,_0x3a42ac)),'children':_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x1f3),'children':[_0x19478f('div',{'className':_0xe696c7('univer-size-2\x20univer-rounded-full',_0x25d1b3(_0x4be279,_0x3a42ac))}),_0x19478f('span',{'className':_0x3525a0(0x273),'children':_0x128034(_0x4be279)})]})}),_0x3a42ac!==_0x4f8a1c[_0x3525a0(0x20d)]&&(_0x4be279===_0x440b2d[_0x3525a0(0x2c2)]||_0x3a42ac===_0x4f8a1c[_0x3525a0(0x213)])&&_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x2ec),'children':_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x278),'children':[_0x19478f(_0x3525a0(0x286),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x19478f('p',{'className':_0x3525a0(0x241),'children':_0x57ab4b(_0x3a42ac)})]})})]}),_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x319),'children':_0x4ad251('div',{'className':_0x3525a0(0x1ed),'children':[_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x2e9),'children':[_0x4ad251(_0x3525a0(0x1fa),{'className':_0x3525a0(0x26b),'children':[_0x19478f(_0x3525a0(0x286),{'children':'🔑'}),'\x20',_0x271951['t'](_0x3525a0(0x2dd)),_0x19478f('span',{'className':'univer-text-red-500','children':'*'}),_0x5cfe5d&&_0x19478f('a',{'className':_0x3525a0(0x2df),'title':_0x271951['t']('mcpConfig.apiApplyInfo.title'),'role':'button','onClick':()=>_0x27fd24(!0x0),'children':_0x19478f(_0x347fde,{})})]}),_0x19478f(_0x17d910,{'type':_0x3525a0(0x23c),'placeholder':_0x271951['t'](_0x3525a0(0x2c7)),'value':_0x5960a9,'disabled':_0x32c72a,'autoComplete':_0x3525a0(0x275),'onChange':_0x2ccefb}),_0x19478f('p',{'className':_0x3525a0(0x316),'children':_0x271951['t'](_0x3525a0(0x238))})]}),_0x5cfe5d&&_0x4e266c&&_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x254),'children':[_0x19478f('a',{'className':_0x3525a0(0x1ef),'role':'button','onClick':()=>_0x27fd24(!0x1),'children':_0x19478f(_0x161a36,{'className':'univer-size-4'})}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x24d),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x256),'children':_0x19478f('span',{'className':_0x3525a0(0x289),'children':'🚀'})}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x23f),'children':[_0x19478f('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x271951['t'](_0x3525a0(0x310))}),_0x19478f('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x271951['t'](_0x3525a0(0x24f))}),_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x297),'children':_0x529be5&&_0x4ad251('a',{'className':_0x3525a0(0x253),'href':_0x1b17d3,'target':_0x3525a0(0x29a),'rel':_0x3525a0(0x249),'children':[_0x19478f(_0x3525a0(0x286),{'children':'🤖'}),_0x271951['t'](_0x3525a0(0x2f7)),_0x19478f(_0x3525a0(0x286),{'className':_0x3525a0(0x306),'children':'↗'})]})}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x2b6),'children':['✨','\x20',_0x271951['t'](_0x3525a0(0x2a4))]})]})]})]}),_0x3a5ba1[_0x3525a0(0x30e)]&&_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x27d),'children':[_0x4ad251('h4',{'className':_0x3525a0(0x23b),'children':[_0x19478f('span',{'children':'🔗'}),'\x20',_0x271951['t'](_0x3525a0(0x2c5))]}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-space-y-4','children':[_0x4ad251('div',{'className':_0x3525a0(0x307),'children':[_0x19478f('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x271951['t']('mcpConfig.configInstructions')}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-space-y-2','children':[_0x19478f('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x271951['t'](_0x3525a0(0x25f))}),_0x4ad251('div',{'className':_0x3525a0(0x2e7),'children':[_0x4ad251(_0x3525a0(0x228),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19478f(_0x3525a0(0x286),{'className':_0x3525a0(0x23a),'children':'1'}),_0x271951['t'](_0x3525a0(0x236))]}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19478f(_0x3525a0(0x286),{'className':_0x3525a0(0x23a),'children':'2'}),_0x271951['t'](_0x3525a0(0x28e))]}),_0x4ad251('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19478f('span',{'className':_0x3525a0(0x23a),'children':'3'}),_0x271951['t'](_0x3525a0(0x21f))]})]})]})]}),_0x4ad251('div',{'className':_0x3525a0(0x2e9),'children':[_0x19478f(_0x3525a0(0x228),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3525a0(0x2aa)}),_0x19478f('div',{'className':_0x3525a0(0x302),'children':_0x19478f('pre',{'className':_0x3525a0(0x204),'children':JSON[_0x3525a0(0x2e0)]({'mcpServers':{'univer':{'url':_0x3525a0(0x208)+(_0x321029||'<SESSION_ID>'),'type':_0x3525a0(0x277),'headers':{'Authorization':_0x3525a0(0x279)+(_0x5960a9||_0x3525a0(0x295))}}}},null,0x2)})})]}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-space-y-3','children':[_0x19478f(_0x3525a0(0x228),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x271951['t'](_0x3525a0(0x23d))}),_0x4ad251(_0x3525a0(0x228),{'className':'univer-space-y-2','children':[_0x4ad251(_0x3525a0(0x228),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x19478f('div',{'className':_0x3525a0(0x2f6)}),_0x4ad251('div',{'className':_0x3525a0(0x2bc),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x2a1),'children':'univer_session_id:'}),_0x19478f('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x271951['t']('mcpConfig.sessionIdDescription')})]})]}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x265),'children':[_0x19478f('div',{'className':_0x3525a0(0x2f6)}),_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x2bc),'children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x2a1),'children':_0x3525a0(0x2a2)}),_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x316),'children':_0x271951['t'](_0x3525a0(0x1f8))})]})]})]})]})]})]}),_0x19478f(_0x979000,{'onClick':_0x3b6f9b,'disabled':!_0x4ce68d||_0x32c72a,'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':_0x32c72a?_0x4ad251(_0x3525a0(0x286),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x19478f('span',{'children':'⟲'}),_0x271951['t'](_0x3525a0(0x2b5))]}):_0x4ad251(_0x3525a0(0x286),{'className':_0x3525a0(0x1f3),'children':[_0x19478f(_0x4ed399,{}),_0x271951['t'](_0x3525a0(0x276))]})}),_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x202),'children':_0x4ad251(_0x3525a0(0x228),{'className':_0x3525a0(0x22d),'children':[_0x19478f('span',{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x4ad251('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x19478f(_0x3525a0(0x228),{'className':_0x3525a0(0x315),'children':'Configuration\x20Notes:'}),_0x4ad251(_0x3525a0(0x228),{'children':['•',_0x271951['t'](_0x3525a0(0x24a))]}),_0x4ad251(_0x3525a0(0x228),{'children':['•',_0x271951['t'](_0x3525a0(0x1fd))]})]})]})})]})})]});}const B='mcp-ui.config';Symbol(B);const V={'showDeveloperTools':!0x1,'showStatus':!0x0};function H(_0x98d677){'@babel/helpers - typeof';const _0x244465=_0x1ffc;return H=typeof Symbol==_0x244465(0x28f)&&typeof Symbol[_0x244465(0x27f)]==_0x244465(0x20b)?function(_0xc6dabe){return typeof _0xc6dabe;}:function(_0x259a3f){const _0x26b283=_0x244465;return _0x259a3f&&typeof Symbol==_0x26b283(0x28f)&&_0x259a3f[_0x26b283(0x1f6)]===Symbol&&_0x259a3f!==Symbol[_0x26b283(0x21b)]?_0x26b283(0x20b):typeof _0x259a3f;},H(_0x98d677);}function oe(_0x3d033d,_0x4b508a){const _0xa3501=_0x1ffc;if(H(_0x3d033d)!=_0xa3501(0x2d2)||!_0x3d033d)return _0x3d033d;var _0x2613a2=_0x3d033d[Symbol[_0xa3501(0x211)]];if(_0x2613a2!==void 0x0){var _0x396eda=_0x2613a2['call'](_0x3d033d,_0x4b508a||'default');if(H(_0x396eda)!=_0xa3501(0x2d2))return _0x396eda;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4b508a===_0xa3501(0x2cb)?String:Number)(_0x3d033d);}function se(_0x23e8f1){const _0x571051=_0x1ffc;var _0xf3e5f3=oe(_0x23e8f1,_0x571051(0x2cb));return H(_0xf3e5f3)==_0x571051(0x20b)?_0xf3e5f3:_0xf3e5f3+'';}function U(_0x346a19,_0x4b0ba3,_0x3cda37){return(_0x4b0ba3=se(_0x4b0ba3))in _0x346a19?Object['defineProperty'](_0x346a19,_0x4b0ba3,{'value':_0x3cda37,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x346a19[_0x4b0ba3]=_0x3cda37,_0x346a19;}function W(_0x3c463a,_0x48436b){return function(_0x589983,_0x27aa5e){_0x48436b(_0x589983,_0x27aa5e,_0x3c463a);};}function G(_0x5bcc7d,_0x18a431,_0x30eb75,_0x1c21ba){const _0x350520=_0x1ffc;var _0x11f209=arguments[_0x350520(0x257)],_0x5859ff=_0x11f209<0x3?_0x18a431:_0x1c21ba===null?_0x1c21ba=Object[_0x350520(0x2ff)](_0x18a431,_0x30eb75):_0x1c21ba,_0x232a1d;if(typeof Reflect==_0x350520(0x2d2)&&typeof Reflect['decorate']=='function')_0x5859ff=Reflect[_0x350520(0x262)](_0x5bcc7d,_0x18a431,_0x30eb75,_0x1c21ba);else{for(var _0x1d6b85=_0x5bcc7d[_0x350520(0x257)]-0x1;_0x1d6b85>=0x0;_0x1d6b85--)(_0x232a1d=_0x5bcc7d[_0x1d6b85])&&(_0x5859ff=(_0x11f209<0x3?_0x232a1d(_0x5859ff):_0x11f209>0x3?_0x232a1d(_0x18a431,_0x30eb75,_0x5859ff):_0x232a1d(_0x18a431,_0x30eb75))||_0x5859ff);}return _0x11f209>0x3&&_0x5859ff&&Object[_0x350520(0x1ff)](_0x18a431,_0x30eb75,_0x5859ff),_0x5859ff;}const K=_0x24e2fc(0x283),q='mcp-config-dialog';let J=class extends _0x553c10{constructor(_0x5e351e,_0x3ab646,_0x42c83e,_0x5e37ec,_0x2767ba,_0x26f814,_0x1c46de,_0x2cbd8c,_0x58387f,_0x358328){const _0x5163a=_0x24e2fc;super(),this[_0x5163a(0x220)]=_0x5e351e,this[_0x5163a(0x2c6)]=_0x3ab646,this[_0x5163a(0x31e)]=_0x42c83e,this[_0x5163a(0x317)]=_0x5e37ec,this[_0x5163a(0x290)]=_0x2767ba,this['_messageService']=_0x26f814,this[_0x5163a(0x2b8)]=_0x1c46de,this[_0x5163a(0x242)]=_0x2cbd8c,this['_logService']=_0x58387f,this[_0x5163a(0x203)]=_0x358328,U(this,_0x5163a(0x222),new _0x4bb220(!0x1)),U(this,'_mcpCoreConfig$',new _0x4bb220({})),U(this,_0x5163a(0x318),new _0x4bb220({})),U(this,_0x5163a(0x240),new _0x4bb220('')),U(this,_0x5163a(0x30c),async _0xd8700f=>{const _0x2f24cf=_0x5163a;this['_loading$'][_0x2f24cf(0x22b)](!0x0);try{var _0x266908,_0x43005a;let _0x1f8280=await this[_0x2f24cf(0x200)](_0xd8700f);if(!_0x1f8280['isValid']){this['_messageService'][_0x2f24cf(0x2f2)]({'type':_0x4b0c69[_0x2f24cf(0x215)],'content':_0x1f8280[_0x2f24cf(0x30b)]||this[_0x2f24cf(0x242)]['t'](_0x2f24cf(0x2a3))});return;}_0xd8700f[_0x2f24cf(0x27c)]?await this[_0x2f24cf(0x317)][_0x2f24cf(0x2f1)](K,_0xd8700f[_0x2f24cf(0x27c)][_0x2f24cf(0x27a)]()):await this[_0x2f24cf(0x317)]['removeItem'](K),this[_0x2f24cf(0x240)]['next'](((_0x266908=_0xd8700f[_0x2f24cf(0x27c)])==null?void 0x0:_0x266908['trim']())||''),this[_0x2f24cf(0x203)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+((_0x43005a=_0xd8700f[_0x2f24cf(0x27c)])==null?void 0x0:_0x43005a[_0x2f24cf(0x27a)]())}),this['_messageService'][_0x2f24cf(0x2f2)]({'type':_0x4b0c69[_0x2f24cf(0x2e1)],'content':this[_0x2f24cf(0x242)]['t'](_0x2f24cf(0x25a))}),setTimeout(()=>{const _0x223e40=_0x2f24cf;this['_dialogService'][_0x223e40(0x30f)](q);},0x320);}catch(_0x2b2c71){this[_0x2f24cf(0x288)][_0x2f24cf(0x21c)](_0x2f24cf(0x274),_0x2b2c71),this['_messageService'][_0x2f24cf(0x2f2)]({'type':_0x4b0c69[_0x2f24cf(0x215)],'content':this[_0x2f24cf(0x242)]['t']('mcpConfig.configError')});}finally{this[_0x2f24cf(0x222)][_0x2f24cf(0x22b)](!0x1);}}),this[_0x5163a(0x2b0)](),this[_0x5163a(0x308)](),this[_0x5163a(0x224)]();}[_0x24e2fc(0x20f)](){const _0x218016=_0x24e2fc;let _0x1a9c76=this[_0x218016(0x31e)][_0x218016(0x2ea)](B);_0x1a9c76!=null&&_0x1a9c76[_0x218016(0x30e)]&&this['_dialogService'][_0x218016(0x233)]({'id':q,'title':{'title':this[_0x218016(0x242)]['t'](_0x218016(0x299))},'children':{'label':_0x218016(0x260)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4b7762=_0x218016;this[_0x4b7762(0x290)][_0x4b7762(0x30f)](q);}});}['getCurrentConfig'](){const _0x50ac9c=_0x24e2fc;return this[_0x50ac9c(0x2c3)][_0x50ac9c(0x2c4)];}[_0x24e2fc(0x224)](){const _0x593179=_0x24e2fc;this['disposeWithMe'](this['_componentManager'][_0x593179(0x250)](_0x593179(0x260),this[_0x593179(0x2b4)]()));}['_createConfigPanelComponent'](){const _0x57a3ce=_0x24e2fc;return _0xd78b8b(()=>{const _0x395199=_0x1ffc;var _0x4c64d6,_0x2ba410,_0x36667b;return _0x19478f(z,{'config':this[_0x395199(0x318)][_0x395199(0x2c4)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x395199(0x2c4)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x395199(0x30c)],'loading':this[_0x395199(0x222)][_0x395199(0x2c4)],'connectionStatus$':(_0x4c64d6=this[_0x395199(0x203)])==null?void 0x0:_0x4c64d6[_0x395199(0x209)],'connectionError$':(_0x2ba410=this['_mcpConnectionController'])==null?void 0x0:_0x2ba410[_0x395199(0x206)],'currentSessionId$':(_0x36667b=this[_0x395199(0x203)])==null?void 0x0:_0x36667b[_0x395199(0x2eb)]});},this[_0x57a3ce(0x220)]);}[_0x24e2fc(0x2b0)](){const _0x44ba0c=_0x24e2fc;this['disposeWithMe'](this[_0x44ba0c(0x31e)][_0x44ba0c(0x321)](_0x15ca7d)[_0x44ba0c(0x226)](_0x5671c5=>{const _0x3e7aa3=_0x44ba0c;this[_0x3e7aa3(0x2c3)]['next'](_0x5671c5||{});}));let _0x423898=this[_0x44ba0c(0x31e)][_0x44ba0c(0x2ea)](_0x15ca7d);this['_mcpCoreConfig$'][_0x44ba0c(0x22b)](_0x423898||{}),this[_0x44ba0c(0x285)](this['_configService'][_0x44ba0c(0x321)](B)[_0x44ba0c(0x226)](_0x102967=>{const _0x3b49d0=_0x44ba0c;this[_0x3b49d0(0x318)]['next'](_0x102967||{});}));let _0x109ac2=this[_0x44ba0c(0x31e)][_0x44ba0c(0x2ea)](B);this[_0x44ba0c(0x318)][_0x44ba0c(0x22b)](_0x109ac2||{});}async[_0x24e2fc(0x308)](){const _0x1e972b=_0x24e2fc;let _0x407bb5=this['_configService']['getConfig'](B);if(!(_0x407bb5!=null&&_0x407bb5['showDeveloperTools']))return;let _0x3896ef=await this[_0x1e972b(0x317)][_0x1e972b(0x214)](K);_0x3896ef&&(this['_mcpConnectionController'][_0x1e972b(0x1f4)]({'Authorization':'Bearer\x20'+_0x3896ef}),this['_apiKey$'][_0x1e972b(0x22b)](_0x3896ef));}async[_0x24e2fc(0x200)](_0x6729e7){const _0x2e975d=_0x24e2fc;if(!_0x6729e7['apiKey']||_0x6729e7[_0x2e975d(0x27c)][_0x2e975d(0x27a)]()[_0x2e975d(0x257)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2e975d(0x242)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x6729e7['apiKey'][_0x2e975d(0x27a)]()[_0x2e975d(0x257)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x2e975d(0x22c))};try{let _0x2edefd=await this[_0x2e975d(0x220)][_0x2e975d(0x2a9)](_0x3a6502)['validateApiKey'](_0x6729e7['apiKey'][_0x2e975d(0x27a)]());return _0x2edefd[_0x2e975d(0x2b3)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2edefd[_0x2e975d(0x21c)]||this['_localeService']['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x261952){return console[_0x2e975d(0x2d7)](_0x2e975d(0x284),_0x261952),{'isValid':!0x0};}}};J=G([W(0x0,_0x17ef4b(_0x498a04)),W(0x1,_0xbb3625),W(0x2,_0x16e4b4),W(0x3,_0x5192e1),W(0x4,_0x4d970d),W(0x5,_0x34758a),W(0x6,_0x17ef4b(_0x26c3a3)),W(0x7,_0x17ef4b(_0x58c1f8)),W(0x8,_0x3720d4),W(0x9,_0x17ef4b(_0x3a6502))],J);const Y={'id':_0x24e2fc(0x2da),'type':_0x2f411b[_0x24e2fc(0x2a6)],'handler':async(_0x3cb36c,_0x176c77)=>(_0x3cb36c[_0x24e2fc(0x2a9)](J)[_0x24e2fc(0x20f)](),!0x0)};function X(_0x471adf,_0x2a2665){const _0x5c23c0=_0x24e2fc;switch(_0x471adf){case _0x440b2d[_0x5c23c0(0x300)]:return'mcpStatus.disconnected';case _0x440b2d[_0x5c23c0(0x2b7)]:return _0x5c23c0(0x205);case _0x440b2d[_0x5c23c0(0x2d6)]:return _0x5c23c0(0x237);case _0x440b2d[_0x5c23c0(0x2c2)]:switch(_0x2a2665){case _0x4f8a1c[_0x5c23c0(0x213)]:return'mcpStatus.unauthorized';case _0x4f8a1c[_0x5c23c0(0x230)]:return _0x5c23c0(0x29e);case _0x4f8a1c['NETWORK_ERROR']:return _0x5c23c0(0x227);case _0x4f8a1c[_0x5c23c0(0x219)]:return _0x5c23c0(0x21d);default:return _0x5c23c0(0x298);}case _0x440b2d[_0x5c23c0(0x2e4)]:return _0x5c23c0(0x258);default:return _0x5c23c0(0x267);}}function ce(_0x376bdb,_0x2768d3,_0x5d850c,_0x33f1de=!0x0){const _0x87c606=_0x24e2fc;let _0x262535=X(_0x376bdb,_0x2768d3),_0x357eaa=_0x5d850c['t'](_0x262535);return _0x33f1de?_0x376bdb===_0x440b2d[_0x87c606(0x300)]&&_0x2768d3===_0x4f8a1c[_0x87c606(0x213)]?_0x357eaa+_0x87c606(0x223)+_0x5d850c['t'](_0x87c606(0x25b)):_0x376bdb===_0x440b2d['CONNECTED']?''+_0x357eaa:_0x376bdb===_0x440b2d[_0x87c606(0x300)]||_0x376bdb===_0x440b2d[_0x87c606(0x2c2)]?_0x357eaa+'\x20-\x20'+_0x5d850c['t'](_0x87c606(0x2c8)):_0x357eaa:_0x357eaa;}function le(_0x179861){const _0x981f21=_0x24e2fc;switch(_0x179861){case _0x440b2d[_0x981f21(0x2d6)]:return _0x981f21(0x2ce);case _0x440b2d[_0x981f21(0x2b7)]:case _0x440b2d[_0x981f21(0x2e4)]:return _0x981f21(0x1ee);case _0x440b2d[_0x981f21(0x2c2)]:case _0x440b2d[_0x981f21(0x300)]:return _0x981f21(0x2ef);default:return'univer-text-gray-500';}}function ue(_0x4665d1){const _0x3a3707=_0x24e2fc;let {status$:_0x875bc4,error$:_0x2caaf8,onConfigure:_0xc225ce,showClickable:_0x154139=!0x0}=_0x4665d1,_0x6f8728=_0x12c36e(_0x875bc4,_0x440b2d[_0x3a3707(0x300)]),_0x443139=_0x12c36e(_0x2caaf8,_0x4f8a1c['NONE']),_0x16edc5=_0x5d46a2(_0x58c1f8),_0x4f148b=_0x6f8728===_0x440b2d[_0x3a3707(0x2d6)];_0x6f8728===_0x440b2d[_0x3a3707(0x2b7)]||_0x440b2d[_0x3a3707(0x2e4)];let _0xc000a0=_0x16edc5['t'](X(_0x6f8728,_0x443139)),_0x3a2a03=ce(_0x6f8728,_0x443139,_0x16edc5,_0x154139),_0xccad93=le(_0x6f8728),_0x5e5561=_0x19478f(_0x4f148b?_0x2e186b:_0x619373,{}),_0x237bcf=_0x526f6e(()=>{_0x154139&&_0xc225ce&&_0xc225ce();},[_0x154139,_0xc225ce]);function _0x2d0590(){const _0x69582e=_0x3a3707;return _0x4ad251('div',{'className':_0xe696c7('univer-flex\x20univer-items-center',_0x154139&&_0xc225ce&&_0x69582e(0x31c)),'role':_0x69582e(0x2af),'onClick':_0x154139&&_0xc225ce?_0x237bcf:void 0x0,'children':[_0x19478f('div',{'className':_0xe696c7('univer-mr-2\x20univer-flex\x20univer-text-xl',_0xccad93),'children':_0x5e5561}),_0x19478f('div',{'className':_0x69582e(0x244),'children':_0xc000a0})]});}return _0x19478f(_0x48d592,{'title':_0x3a2a03,'placement':_0x3a3707(0x261),'children':_0x2d0590()});}let Z=class extends _0x553c10{constructor(_0x45c99d,_0x3f9566,_0x40ce21,_0x40c76f){const _0x411aea=_0x24e2fc;super(),this[_0x411aea(0x220)]=_0x45c99d,this[_0x411aea(0x212)]=_0x3f9566,this['_uiPartsService']=_0x40ce21,this[_0x411aea(0x31e)]=_0x40c76f,this['_initAutoConnect'](),this[_0x411aea(0x207)]();}['_initAutoConnect'](){const _0x272300=_0x24e2fc;let _0x2300fd=this[_0x272300(0x31e)]['getConfig'](B);_0x2300fd!=null&&_0x2300fd[_0x272300(0x30e)]&&(this[_0x272300(0x212)][_0x272300(0x311)]=!0x1);}[_0x24e2fc(0x207)](){const _0x1cd8d9=_0x24e2fc;let _0x122744=this[_0x1cd8d9(0x31e)][_0x1cd8d9(0x2ea)](B);(_0x122744==null?void 0x0:_0x122744[_0x1cd8d9(0x25e)])!==!0x1&&this[_0x1cd8d9(0x285)](this[_0x1cd8d9(0x2c6)][_0x1cd8d9(0x2c1)](_0x5d5a0c['HEADER_MENU'],()=>{const _0x13aa93=_0x1cd8d9;var _0x28c411;return _0xd78b8b(de({'status$':this[_0x13aa93(0x212)]['connectionStatus$'],'error$':this[_0x13aa93(0x212)][_0x13aa93(0x206)],'onConfigure':()=>this[_0x13aa93(0x2a7)](),'showClickable':(_0x28c411=_0x122744==null?void 0x0:_0x122744['showDeveloperTools'])==null?!0x1:_0x28c411}),this[_0x13aa93(0x220)]);}));}[_0x24e2fc(0x2a7)](){const _0x533463=_0x24e2fc;this[_0x533463(0x220)]['get'](J)[_0x533463(0x20f)]();}};Z=G([W(0x0,_0x17ef4b(_0x498a04)),W(0x1,_0x17ef4b(_0x3a6502)),W(0x2,_0xbb3625),W(0x3,_0x16e4b4)],Z);function de(_0x2f20df){let {status$:_0x3461cc,error$:_0xbcf148,onConfigure:_0x53f021,showClickable:_0x1720b5}=_0x2f20df;return function(){return _0x19478f(ue,{'status$':_0x3461cc,'error$':_0xbcf148,'onConfigure':_0x53f021,'showClickable':_0x1720b5});};}function fe(_0x143afe){const _0x3c34d5=_0x24e2fc;return{'id':Y['id'],'type':_0x547bdc[_0x3c34d5(0x2ac)],'icon':'MenuIcon','title':_0x3c34d5(0x299),'tooltip':_0x3c34d5(0x299)};}const pe={[_0x66f7f3[_0x24e2fc(0x225)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0x553c10{constructor(_0x1e18a5,_0x444104){const _0x20c5e9=_0x24e2fc;super(),this[_0x20c5e9(0x20e)]=_0x1e18a5,this[_0x20c5e9(0x323)]=_0x444104,this[_0x20c5e9(0x26a)](),this[_0x20c5e9(0x31f)]();}[_0x24e2fc(0x26a)](){const _0x2670cd=_0x24e2fc;[Y][_0x2670cd(0x1fb)](_0x38abc6=>{const _0x444362=_0x2670cd;this[_0x444362(0x285)](this[_0x444362(0x20e)][_0x444362(0x22e)](_0x38abc6));});}['_initializeMenus'](){const _0x1873b1=_0x24e2fc;this[_0x1873b1(0x323)][_0x1873b1(0x29b)](pe);}};Q=G([W(0x0,_0x274b3d),W(0x1,_0x2be40c)],Q);const me={'mcpStatus':{'disconnected':_0x24e2fc(0x287),'connecting':_0x24e2fc(0x28b),'connected':_0x24e2fc(0x28c),'failed':'MCP\x20Connection\x20Failed','retrying':_0x24e2fc(0x2be),'unknown':_0x24e2fc(0x1f7),'unauthorized':_0x24e2fc(0x26e),'sessionOccupied':_0x24e2fc(0x292),'networkError':_0x24e2fc(0x2ee),'maxRetriesExceeded':_0x24e2fc(0x28d),'clickToConnect':_0x24e2fc(0x28a),'clickToConfigure':_0x24e2fc(0x217)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x24e2fc(0x24c),'apiKey':_0x24e2fc(0x281),'apiKeyPlaceholder':_0x24e2fc(0x235),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x24e2fc(0x2e3),'enableAuthHint':_0x24e2fc(0x2a8),'connectionInfo':_0x24e2fc(0x303),'mcpClientConfig':_0x24e2fc(0x303),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x24e2fc(0x229),'configStep1':_0x24e2fc(0x2d9),'configStep2':_0x24e2fc(0x282),'configStep3':_0x24e2fc(0x2cd),'sessionId':_0x24e2fc(0x31b),'sessionIdDescription':_0x24e2fc(0x218),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x24e2fc(0x2f9),'save':'Save\x20Configuration','saving':_0x24e2fc(0x296),'note1':_0x24e2fc(0x2d1),'note2':_0x24e2fc(0x252),'configSaved':_0x24e2fc(0x271),'configError':_0x24e2fc(0x304),'apiApplyInfo':{'title':_0x24e2fc(0x266),'description':_0x24e2fc(0x1f2),'univerAiLabel':_0x24e2fc(0x216),'getStarted':_0x24e2fc(0x1f0)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x24e2fc(0x2d8),'invalidConfig':_0x24e2fc(0x2bf),'invalidApiKey':_0x24e2fc(0x293)},'connectionStatus':{'disconnected':_0x24e2fc(0x313),'connecting':_0x24e2fc(0x221),'connected':_0x24e2fc(0x26c),'failed':_0x24e2fc(0x314),'retrying':_0x24e2fc(0x201)},'connectionError':{'unauthorized':_0x24e2fc(0x232),'sessionOccupied':_0x24e2fc(0x21e),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x24e2fc(0x26f)}}},he={'mcpStatus':{'disconnected':_0x24e2fc(0x29f),'connecting':_0x24e2fc(0x2cf),'connected':'MCP\x20已连接','failed':_0x24e2fc(0x2fb),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0x24e2fc(0x25d),'sessionOccupied':_0x24e2fc(0x2ba),'networkError':_0x24e2fc(0x2ab),'maxRetriesExceeded':_0x24e2fc(0x1f5),'clickToConnect':_0x24e2fc(0x27b),'clickToConfigure':_0x24e2fc(0x255)},'mcpConfig':{'title':'MCP\x20配置','description':_0x24e2fc(0x1fc),'apiKey':_0x24e2fc(0x31a),'apiKeyPlaceholder':_0x24e2fc(0x309),'apiKeyHint':_0x24e2fc(0x268),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x24e2fc(0x2f5),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x24e2fc(0x2d0),'configStep1':_0x24e2fc(0x2e6),'configStep2':_0x24e2fc(0x272),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x24e2fc(0x2b2),'sessionIdDescription':_0x24e2fc(0x234),'authorizationDescription':_0x24e2fc(0x263),'configParameters':_0x24e2fc(0x2e8),'maxRetries':'最大重试次数','save':_0x24e2fc(0x264),'saving':'保存中...','note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x24e2fc(0x2fe),'configError':_0x24e2fc(0x280),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x24e2fc(0x20a),'univerAiLabel':_0x24e2fc(0x2a0),'getStarted':_0x24e2fc(0x312)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x24e2fc(0x231),'invalidConfig':_0x24e2fc(0x24b),'invalidApiKey':_0x24e2fc(0x248)},'connectionStatus':{'disconnected':_0x24e2fc(0x2c0),'connecting':_0x24e2fc(0x2bd),'connected':_0x24e2fc(0x245),'failed':_0x24e2fc(0x29c),'retrying':_0x24e2fc(0x2fa)},'connectionError':{'unauthorized':_0x24e2fc(0x22a),'sessionOccupied':_0x24e2fc(0x239),'networkError':_0x24e2fc(0x2dc),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var ge=_0x24e2fc(0x301),_e=_0x24e2fc(0x2cc);let $=class extends _0x210a69{constructor(_0x73ee84=V,_0x5d0d4f,_0x308648,_0x1e86ea,_0x2a2491,_0x23d8fa){const _0x1c91fa=_0x24e2fc;super(),this[_0x1c91fa(0x24e)]=_0x73ee84,this['_injector']=_0x5d0d4f,this[_0x1c91fa(0x31e)]=_0x308648,this[_0x1c91fa(0x2c6)]=_0x1e86ea,this['_localStorageService']=_0x2a2491,this[_0x1c91fa(0x242)]=_0x23d8fa;let {..._0x3674b2}=_0x5b05be({},V,this[_0x1c91fa(0x24e)]);this[_0x1c91fa(0x31e)][_0x1c91fa(0x2db)](B,_0x3674b2);}async[_0x24e2fc(0x2a5)](){const _0x272e39=_0x24e2fc;let _0xf72973=[[Z],[J],[Q]];this[_0x272e39(0x220)][_0x272e39(0x305)](_0x184860)||_0xf72973[_0x272e39(0x2e5)]([_0x184860,{'useClass':_0x3859a6}]),_0xf72973[_0x272e39(0x1fb)](_0x19b9e0=>this[_0x272e39(0x220)][_0x272e39(0x2d3)](_0x19b9e0)),this['_injector'][_0x272e39(0x2a9)](Z),this[_0x272e39(0x220)]['get'](J),this[_0x272e39(0x220)][_0x272e39(0x2a9)](Q);}};U($,_0x24e2fc(0x270),_0x24e2fc(0x2f0)),U($,_0x24e2fc(0x31d),ge),U($,_0x24e2fc(0x2fd),_e),$=G([_0x55f634(_0x2ba359),W(0x1,_0x17ef4b(_0x498a04)),W(0x2,_0x16e4b4),W(0x3,_0xbb3625),W(0x4,_0x5192e1),W(0x5,_0x17ef4b(_0x58c1f8))],$);export{z as MCPConfigPanel,J as MCPConfigUIController,Z as MCPConnectionUIController,ue as MCPStatusDisplay,Q as MCPUIMenuController,Y as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,me as enUS,he as zhCN};
|
|
1
|
+
const _0x5afb4f=_0x500b;(function(_0x29110a,_0xbed4c1){const _0x25a13f=_0x500b,_0x34b58f=_0x29110a();while(!![]){try{const _0x337ba4=parseInt(_0x25a13f(0x170))/0x1*(parseInt(_0x25a13f(0x149))/0x2)+-parseInt(_0x25a13f(0x104))/0x3*(-parseInt(_0x25a13f(0xb8))/0x4)+parseInt(_0x25a13f(0x183))/0x5*(parseInt(_0x25a13f(0xd7))/0x6)+parseInt(_0x25a13f(0x180))/0x7+parseInt(_0x25a13f(0x108))/0x8+parseInt(_0x25a13f(0x157))/0x9+parseInt(_0x25a13f(0x77))/0xa*(-parseInt(_0x25a13f(0x106))/0xb);if(_0x337ba4===_0xbed4c1)break;else _0x34b58f['push'](_0x34b58f['shift']());}catch(_0x4db86d){_0x34b58f['push'](_0x34b58f['shift']());}}}(_0x1234,0xc7641));import{CommandType as _0x20dd89,DependentOn as _0x59f6a5,Disposable as _0xd0ff90,ICommandService as _0x195f5d,IConfigService as _0x520faa,ILocalStorageService as _0x104c58,ILogService as _0x45119a,Inject as _0xc54b06,Injector as _0x2a5bb7,LocaleService as _0x3c4182,Plugin as _0xdb1177,merge as _0x9476c9}from'@univerjs/core';import{MCPConnectionController as _0x2c9a1c,MCPConnectionError as _0x54aad6,MCPConnectionStatus as _0x1f5577,MCP_PLUGIN_CONFIG_KEY as _0x346c5f,UniverMCPPlugin as _0xe75a44}from'@univerjs-pro/mcp';import{Button as _0x257f32,Input as _0x4fa1e4,MessageType as _0x28277b,Tooltip as _0x5a455a,clsx as _0x348762}from'@univerjs/design';import{BuiltInUIPart as _0x51161f,ComponentManager as _0x4371f2,IDialogService as _0x445c31,IMenuManagerService as _0x4f6a1a,IMessageService as _0x17b7a7,IUIPartsService as _0x356992,MenuItemType as _0x2bbf5d,RibbonStartGroup as _0x1a0368,connectInjector as _0x522d18,useDependency as _0x1561e6,useObservable as _0x115b3d}from'@univerjs/ui';import{BehaviorSubject as _0x5a1e03}from'rxjs';import{CheckMarkIcon as _0x3527cc,CloseIcon as _0x256334,HelpIcon as _0x560460,OffLineIcon as _0x3c2040,OnLineIcon as _0x2aaacd}from'@univerjs/icons';import{useCallback as _0x3f364b,useState as _0x345559}from'react';import{jsx as _0x4d247a,jsxs as _0x52e889}from'react/jsx-runtime';import{ISocketService as _0x3db57f,WebSocketService as _0xe75e09}from'@univerjs/network';function _0x500b(_0x4d4799,_0x5b412a){_0x4d4799=_0x4d4799-0x74;const _0x123492=_0x1234();let _0x500be8=_0x123492[_0x4d4799];return _0x500be8;}function z(_0x2a3952){const _0x28ebf8=_0x500b;var _0x1dd1de,_0x3c3efb;let {mcpCoreConfig:_0x5ecdf6,onSave:_0x57f0ac,loading:_0x31f06e=!0x1,config:_0x578157,connectionStatus$:_0x20e78f,connectionError$:_0xa13497,currentApiKey$:_0x3e1b5c,currentSessionId$:_0x5e576e}=_0x2a3952,_0x1dd82c=_0x1561e6(_0x3c4182),_0x6c173=_0x115b3d(_0x20e78f,_0x1f5577[_0x28ebf8(0xdb)]),_0x2e9a8e=_0x115b3d(_0xa13497,_0x54aad6[_0x28ebf8(0x14d)]),_0x2bd1ee=_0x115b3d(_0x5e576e,''),[_0x5cb3c8,_0x1dfd4f]=_0x345559(_0x115b3d(_0x3e1b5c,'')||''),_0x2417e8=_0x578157['showDeveloperTools']&&_0x5ecdf6['mcpServerUrl']&&(_0x5ecdf6[_0x28ebf8(0x12e)][_0x28ebf8(0x8c)]('univer.plus')||_0x5ecdf6[_0x28ebf8(0x12e)][_0x28ebf8(0x8c)](_0x28ebf8(0x13b))),_0x2883d6=(_0x1dd1de=_0x5ecdf6['mcpServerUrl'])==null?void 0x0:_0x1dd1de['includes']('univer.plus'),_0x290670=(_0x3c3efb=_0x5ecdf6[_0x28ebf8(0x12e)])==null?void 0x0:_0x3c3efb[_0x28ebf8(0x8c)](_0x28ebf8(0x13b)),_0x435f79=_0x2883d6?_0x28ebf8(0xa3):_0x28ebf8(0x10b),_0x14f6da=_0x578157[_0x28ebf8(0x16d)]&&(_0x2883d6||_0x290670),[_0x5af247,_0x18966d]=_0x345559(!_0x5cb3c8['trim']()),_0x2dc164=(_0x1fc845,_0x249c39)=>{const _0x48704e=_0x28ebf8;if(_0x249c39===_0x54aad6[_0x48704e(0x18b)])return _0x48704e(0x145);switch(_0x1fc845){case _0x1f5577[_0x48704e(0x100)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x1f5577['CONNECTING']:case _0x1f5577[_0x48704e(0x10f)]:return _0x48704e(0xbf);case _0x1f5577[_0x48704e(0x123)]:return _0x48704e(0x145);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x3cdc52=(_0x373654,_0x197c0b)=>{const _0x1e9fe8=_0x28ebf8;if(_0x197c0b===_0x54aad6['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x373654){case _0x1f5577[_0x1e9fe8(0x100)]:return _0x1e9fe8(0x112);case _0x1f5577['CONNECTING']:case _0x1f5577['RETRYING']:return _0x1e9fe8(0x194);case _0x1f5577[_0x1e9fe8(0x123)]:return _0x1e9fe8(0x13a);default:return _0x1e9fe8(0x164);}},_0x3c117f=_0x31b800=>{const _0x2193f7=_0x28ebf8;switch(_0x31b800){case _0x1f5577[_0x2193f7(0x100)]:return _0x1dd82c['t'](_0x2193f7(0xfd));case _0x1f5577[_0x2193f7(0x75)]:return _0x1dd82c['t'](_0x2193f7(0x83));case _0x1f5577['FAILED']:return _0x1dd82c['t'](_0x2193f7(0x7d));case _0x1f5577[_0x2193f7(0x10f)]:return _0x1dd82c['t'](_0x2193f7(0x12b));default:return _0x1dd82c['t'](_0x2193f7(0xc6));}},_0x25acee=_0x14c45b=>{const _0x4e2e87=_0x28ebf8;switch(_0x14c45b){case _0x54aad6[_0x4e2e87(0x18b)]:return _0x1dd82c['t'](_0x4e2e87(0x18d));case _0x54aad6[_0x4e2e87(0x14e)]:return _0x1dd82c['t'](_0x4e2e87(0x8f));case _0x54aad6['NETWORK_ERROR']:return _0x1dd82c['t'](_0x4e2e87(0x14f));case _0x54aad6[_0x4e2e87(0x90)]:return _0x1dd82c['t'](_0x4e2e87(0xcb));default:return'';}},_0x408ad1=_0x3f364b(()=>{_0x57f0ac({..._0x5ecdf6,'apiKey':_0x5cb3c8['trim'](),'enableAuth':!0x0});},[_0x5ecdf6,_0x5cb3c8,!0x0,_0x57f0ac]),_0x1eccac=_0x5cb3c8[_0x28ebf8(0x109)]()[_0x28ebf8(0x10d)]>0x0;return _0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x158),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x52e889('div',{'className':_0x28ebf8(0xab),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xac),'children':_0x4d247a(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0xcd),'children':'⚙'})}),_0x4d247a(_0x28ebf8(0x15d),{'children':_0x4d247a('p',{'className':_0x28ebf8(0x135),'children':_0x1dd82c['t'](_0x28ebf8(0x19f))})})]})}),_0x52e889('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x348762(_0x28ebf8(0x197),_0x2dc164(_0x6c173,_0x2e9a8e)),'children':_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x118),'children':[_0x4d247a('div',{'className':_0x348762(_0x28ebf8(0xcf),_0x3cdc52(_0x6c173,_0x2e9a8e))}),_0x4d247a(_0x28ebf8(0x1a2),{'className':'univer-text-sm\x20univer-font-medium','children':_0x3c117f(_0x6c173)})]})}),_0x2e9a8e!==_0x54aad6[_0x28ebf8(0x14d)]&&(_0x6c173===_0x1f5577['FAILED']||_0x2e9a8e===_0x54aad6['UNAUTHORIZED'])&&_0x4d247a('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x52e889('div',{'className':_0x28ebf8(0x74),'children':[_0x4d247a(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0xbd),'children':'⚠️'}),_0x4d247a('p',{'className':_0x28ebf8(0xe5),'children':_0x25acee(_0x2e9a8e)})]})})]}),_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x15f),'children':_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x113),'children':[_0x52e889(_0x28ebf8(0x15d),{'className':'univer-space-y-2','children':[_0x52e889(_0x28ebf8(0x102),{'className':_0x28ebf8(0x137),'children':[_0x4d247a('span',{'children':'🔑'}),'\x20',_0x1dd82c['t'](_0x28ebf8(0x19a)),_0x4d247a(_0x28ebf8(0x1a2),{'className':'univer-text-red-500','children':'*'}),_0x2417e8&&_0x4d247a('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x1dd82c['t']('mcpConfig.apiApplyInfo.title'),'role':_0x28ebf8(0x139),'onClick':()=>_0x18966d(!0x0),'children':_0x4d247a(_0x560460,{})})]}),_0x4d247a(_0x4fa1e4,{'type':_0x28ebf8(0x169),'placeholder':_0x1dd82c['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x5cb3c8,'disabled':_0x31f06e,'autoComplete':_0x28ebf8(0x99),'onChange':_0x1dfd4f}),_0x4d247a('p',{'className':_0x28ebf8(0x93),'children':_0x1dd82c['t'](_0x28ebf8(0xba))})]}),_0x2417e8&&_0x5af247&&_0x52e889(_0x28ebf8(0x15d),{'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':[_0x4d247a('a',{'className':_0x28ebf8(0x15c),'role':_0x28ebf8(0x139),'onClick':()=>_0x18966d(!0x1),'children':_0x4d247a(_0x256334,{'className':_0x28ebf8(0x182)})}),_0x52e889('div',{'className':_0x28ebf8(0x14b),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x4d247a(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0x101),'children':'🚀'})}),_0x52e889('div',{'className':_0x28ebf8(0x192),'children':[_0x4d247a('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x1dd82c['t']('mcpConfig.apiApplyInfo.title')}),_0x4d247a('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x1dd82c['t'](_0x28ebf8(0x14a))}),_0x4d247a(_0x28ebf8(0x15d),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x14f6da&&_0x52e889('a',{'className':_0x28ebf8(0x150),'href':_0x435f79,'target':_0x28ebf8(0x196),'rel':'noopener\x20noreferrer','children':[_0x4d247a('span',{'children':'🤖'}),_0x1dd82c['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x4d247a('span',{'className':_0x28ebf8(0x8a),'children':'↗'})]})}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x198),'children':['✨','\x20',_0x1dd82c['t'](_0x28ebf8(0xed))]})]})]})]}),_0x578157['showDeveloperTools']&&_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x177),'children':[_0x52e889('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x4d247a(_0x28ebf8(0x1a2),{'children':'🔗'}),'\x20',_0x1dd82c['t'](_0x28ebf8(0xc3))]}),_0x52e889('div',{'className':_0x28ebf8(0x140),'children':[_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xa0),'children':[_0x4d247a('p',{'className':_0x28ebf8(0xce),'children':_0x1dd82c['t']('mcpConfig.configInstructions')}),_0x52e889(_0x28ebf8(0x15d),{'className':'univer-space-y-2','children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xe6),'children':_0x1dd82c['t']('mcpConfig.configStepTitle')}),_0x52e889('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x52e889(_0x28ebf8(0x15d),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x4d247a(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0x178),'children':'1'}),_0x1dd82c['t'](_0x28ebf8(0x9d))]}),_0x52e889('div',{'className':_0x28ebf8(0x118),'children':[_0x4d247a('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':'2'}),_0x1dd82c['t'](_0x28ebf8(0x199))]}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x118),'children':[_0x4d247a(_0x28ebf8(0x1a2),{'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'}),_0x1dd82c['t'](_0x28ebf8(0x147))]})]})]})]}),_0x52e889('div',{'className':_0x28ebf8(0x19b),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xe6),'children':_0x28ebf8(0x141)}),_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x187),'children':_0x4d247a(_0x28ebf8(0x95),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x2bd1ee||'<SESSION_ID>'),'type':'http','headers':{'Authorization':_0x28ebf8(0x18a)+(_0x5cb3c8||_0x28ebf8(0xae))}}}},null,0x2)})})]}),_0x52e889('div',{'className':_0x28ebf8(0xa0),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xe6),'children':_0x1dd82c['t'](_0x28ebf8(0x9c))}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x19b),'children':[_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x142),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x154)}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xd5),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x16e),'children':'univer_session_id:'}),_0x4d247a('div',{'className':_0x28ebf8(0x93),'children':_0x1dd82c['t'](_0x28ebf8(0xb1))})]})]}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x142),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xd5),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x16e),'children':'Authorization:'}),_0x4d247a('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x1dd82c['t'](_0x28ebf8(0x120))})]})]})]})]})]})]}),_0x4d247a(_0x257f32,{'onClick':_0x408ad1,'disabled':!_0x1eccac||_0x31f06e,'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':_0x31f06e?_0x52e889(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0x118),'children':[_0x4d247a(_0x28ebf8(0x1a2),{'children':'⟲'}),_0x1dd82c['t'](_0x28ebf8(0xb0))]}):_0x52e889(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0x118),'children':[_0x4d247a(_0x3527cc,{}),_0x1dd82c['t'](_0x28ebf8(0x96))]})}),_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x155),'children':_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x179),'children':[_0x4d247a(_0x28ebf8(0x1a2),{'className':_0x28ebf8(0xd3),'children':'💡'}),_0x52e889(_0x28ebf8(0x15d),{'className':_0x28ebf8(0x13f),'children':[_0x4d247a(_0x28ebf8(0x15d),{'className':_0x28ebf8(0xa9),'children':_0x28ebf8(0xad)}),_0x52e889(_0x28ebf8(0x15d),{'children':['•',_0x1dd82c['t'](_0x28ebf8(0x116))]}),_0x52e889(_0x28ebf8(0x15d),{'children':['•',_0x1dd82c['t'](_0x28ebf8(0x17d))]})]})]})})]})})]});}const B=_0x5afb4f(0xd9);Symbol(B);const V={'showDeveloperTools':!0x1,'showStatus':!0x0};function H(_0x3826c8){'@babel/helpers - typeof';const _0x115edc=_0x5afb4f;return H=typeof Symbol==_0x115edc(0xef)&&typeof Symbol[_0x115edc(0x185)]==_0x115edc(0xe4)?function(_0x13d519){return typeof _0x13d519;}:function(_0x108671){const _0x377a52=_0x115edc;return _0x108671&&typeof Symbol==_0x377a52(0xef)&&_0x108671[_0x377a52(0xd8)]===Symbol&&_0x108671!==Symbol[_0x377a52(0xf9)]?'symbol':typeof _0x108671;},H(_0x3826c8);}function oe(_0x556f93,_0x33fd95){const _0x443a16=_0x5afb4f;if(H(_0x556f93)!='object'||!_0x556f93)return _0x556f93;var _0x33c5c1=_0x556f93[Symbol[_0x443a16(0xd0)]];if(_0x33c5c1!==void 0x0){var _0x29f102=_0x33c5c1['call'](_0x556f93,_0x33fd95||_0x443a16(0x143));if(H(_0x29f102)!=_0x443a16(0x76))return _0x29f102;throw TypeError(_0x443a16(0x124));}return(_0x33fd95===_0x443a16(0xe2)?String:Number)(_0x556f93);}function se(_0x1d5bc0){const _0x3ec61f=_0x5afb4f;var _0x50f728=oe(_0x1d5bc0,_0x3ec61f(0xe2));return H(_0x50f728)==_0x3ec61f(0xe4)?_0x50f728:_0x50f728+'';}function U(_0x53ad46,_0x3e8b60,_0x58c8b6){const _0x5ed0eb=_0x5afb4f;return(_0x3e8b60=se(_0x3e8b60))in _0x53ad46?Object[_0x5ed0eb(0xb7)](_0x53ad46,_0x3e8b60,{'value':_0x58c8b6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53ad46[_0x3e8b60]=_0x58c8b6,_0x53ad46;}function W(_0x13a232,_0x16ece2){return function(_0x5baa5e,_0x192c0f){_0x16ece2(_0x5baa5e,_0x192c0f,_0x13a232);};}function _0x1234(){const _0x3f47fd=['mcpConfig.connectionError.sessionOccupied','MAX_RETRIES_EXCEEDED','_configService','MCP:\x20Session\x20ID\x20Occupied','univer-text-xs\x20univer-text-gray-500','Connection\x20Failed','pre','mcpConfig.save','version','mcpStatus.clickToConnect','off','Max\x20Retries','Configuration\x20Parameters:','mcpConfig.configParameters','mcpConfig.configStep1','_initConfigSync','Univer\x20AI\x20Console','univer-space-y-3','register','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','https://console.univer.plus','Failed\x20to\x20save\x20configuration','MCP\x20Connecting...','_localStorageService','_injector','mcp-config-dialog','univer-font-medium','errorMessage','univer-flex\x20univer-items-center\x20univer-gap-3','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Configuration\x20Notes:','<API_KEY>','mcpStatus.unknown','mcpConfig.saving','mcpConfig.sessionIdDescription','mcpConfig.validation.apiKeyRequired','showConfigPanel','univer-text-gray-500','mcpConfig.configSaved','MCP\x20连接失败','defineProperty','708WFBSqT','_registerComponent','mcpConfig.apiKeyHint','isValid','close','univer-shrink-0\x20univer-text-red-500','MCP:\x20Unauthorized','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','subscribe','mcpConfig.validation.invalidConfig','_commandService','mcpConfig.connectionInfo','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','__setCustomHeaders','mcpConfig.connectionStatus.disconnected','getConfig','next','univer-text-red-500','最大重试次数','mcpConfig.connectionError.maxRetriesExceeded','_createConfigPanelComponent','univer-text-white','univer-text-xs\x20univer-text-gray-600','univer-size-2\x20univer-rounded-full','toPrimitive','启用身份验证','warn','univer-shrink-0\x20univer-text-blue-500','connectionStatus$','univer-min-w-0\x20univer-flex-1','univer-text-green-500','12NiPvlt','constructor','mcp-ui.config','_config','DISCONNECTED','getCurrentConfig','保存中...','_handleConfigSave','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Client\x20Configuration','MenuIcon','string','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','symbol','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','value','showStatus','API\x20密钥','mcpStatus.unauthorized','registerComponent','add','mcpConfig.apiApplyInfo.getStarted','Invalid\x20configuration','function','Error','MCP:\x20网络错误','_initAutoConnect','MCP\x20Connection\x20Failed','MCP\x20重连中...','会话ID','已连接','mcpStatus.connecting','_initializeCommands','prototype','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','setItem','mcpConfig.connectionStatus.connected','mcpStatus.clickToConfigure','网络连接错误,请检查您的网络连接','CONNECTED','univer-text-blue-600','label','show','19134tYagzF','Disconnected','23298TCrPhN','什么是\x20API\x20密钥?','6177656bgYodj','trim','\x20-\x20','https://console.univer.ai','几秒钟内获取您的\x20API\x20密钥','length','Enter\x20your\x20API\x20key','RETRYING','subscribeConfigValue$','mcpStatus.networkError','univer-bg-green-500','univer-space-y-5','Configuration\x20Steps:','pluginName','mcpConfig.note1','API\x20密钥长度至少需要\x2010\x20位','univer-flex\x20univer-items-center\x20univer-gap-2','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20Disconnected','forEach','MCP:\x20未授权','onStarting','配置无效','未连接','mcpConfig.authorizationDescription','MCP\x20连接中...','MCP\x20Retrying...','FAILED','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_validateConfig','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Success','_apiKey$','MCP\x20配置','点击连接\x20MCP','mcpConfig.connectionStatus.retrying','MCPConfigPanel','_connectionController','mcpServerUrl','What\x20is\x20API\x20Key?','连接失败','OTHERS','Click\x20to\x20connect\x20MCP','setConfig','mcpConfig.validation.apiKeyTooShort','univer-text-sm\x20univer-text-gray-500','get','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','button','univer-bg-red-500','univer.ai','Click\x20to\x20configure\x20MCP','超出最大重试次数,请稍后再试','registerCommand','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-space-y-4','MCP\x20Configuration','univer-flex\x20univer-items-start\x20univer-gap-3','default','getOwnPropertyDescriptor','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.validation.invalidApiKey','mcpConfig.configStep3','_mcpConnectionController','16EiFSxT','mcpConfig.apiApplyInfo.description','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','@univerjs-pro/mcp-ui','NONE','SESSION_ID_OCCUPIED','mcpConfig.connectionError.networkError','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','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Max\x20Retries\x20Exceeded','_loadStoredApiKey','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Enable\x20authentication\x20for\x20secure\x20connections','7803783QBHgBU','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_handleConfigure','会话\x20ID\x20已被占用,请稍后再试','univer-flex\x20univer-items-center','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','div','mcpConfig.configError','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpStatus.maxRetriesExceeded','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_config$','disposeWithMe','univer-bg-gray-500','带有\x20Bearer\x20前缀的\x20API\x20密钥。','_menuManagerService','配置更改将立即生效','decorate','text','启用身份验证以获得安全连接','_uiPartsService','mcpConfig.title','showDeveloperTools','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcp-ui.command.openConfigPanel','89423sSjWpE','保存配置','enableAutoConnect','复制以下\x20JSON\x20配置','_initStatusComponent','apiKey','Configuration\x20saved\x20successfully','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','univer-flex\x20univer-gap-3','BUTTON','removeItem','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.note2','error','MCP:\x20会话\x20ID\x20已被占用','2212665lKbZTx','重连中...','univer-size-4','569785urGMOm','Retrying...','iterator','validateApiKey','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','Enable\x20Authentication','\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','Bearer\x20','UNAUTHORIZED','HEADER_MENU','mcpConfig.connectionError.unauthorized','点击配置\x20MCP','_mcpCoreConfig$','MCP\x20状态未知','mcpStatus.sessionOccupied','univer-flex-1','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-bg-blue-500','_messageService','_blank','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.configStep2','mcpConfig.apiKey','univer-space-y-2','请输入您的\x20API\x20密钥','COMMAND','Session\x20ID','mcpConfig.description','将以下配置添加到您的\x20MCP\x20客户端设置中:','配置步骤:','span','_loading$','MCP\x20客户端配置','univer-flex\x20univer-items-start\x20univer-gap-2','CONNECTING','object','15160OstYpW','API\x20密钥不能为空','connectionError$','API\x20key\x20is\x20required','_logService','配置保存成功','mcpConfig.connectionStatus.failed','push','has','API\x20key\x20with\x20Bearer\x20prefix.','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Save\x20Configuration','mcpConfig.connectionStatus.connecting','MCP\x20Unknown\x20Status','_dialogService','_localeService','MCP:\x20Network\x20Error','_componentManager','重启您的\x20MCP\x20客户端以使配置生效','univer-text-gray-400','NETWORK_ERROR','includes','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpStatus.retrying'];_0x1234=function(){return _0x3f47fd;};return _0x1234();}function G(_0x711e0e,_0x248e2c,_0x5bd9e3,_0x114696){const _0x2330e7=_0x5afb4f;var _0x2c52bc=arguments[_0x2330e7(0x10d)],_0x392f8b=_0x2c52bc<0x3?_0x248e2c:_0x114696===null?_0x114696=Object[_0x2330e7(0x144)](_0x248e2c,_0x5bd9e3):_0x114696,_0x294aff;if(typeof Reflect==_0x2330e7(0x76)&&typeof Reflect[_0x2330e7(0x168)]=='function')_0x392f8b=Reflect[_0x2330e7(0x168)](_0x711e0e,_0x248e2c,_0x5bd9e3,_0x114696);else{for(var _0x4e5e32=_0x711e0e[_0x2330e7(0x10d)]-0x1;_0x4e5e32>=0x0;_0x4e5e32--)(_0x294aff=_0x711e0e[_0x4e5e32])&&(_0x392f8b=(_0x2c52bc<0x3?_0x294aff(_0x392f8b):_0x2c52bc>0x3?_0x294aff(_0x248e2c,_0x5bd9e3,_0x392f8b):_0x294aff(_0x248e2c,_0x5bd9e3))||_0x392f8b);}return _0x2c52bc>0x3&&_0x392f8b&&Object[_0x2330e7(0xb7)](_0x248e2c,_0x5bd9e3,_0x392f8b),_0x392f8b;}const K='mcp.apiKey',q=_0x5afb4f(0xa8);let J=class extends _0xd0ff90{constructor(_0x24b4df,_0x372bcc,_0x2d4712,_0xce40fc,_0x2dba40,_0x4488a2,_0x2af893,_0x4b7bd2,_0x2d0166,_0xf6da89){const _0x5b24f5=_0x5afb4f;super(),this[_0x5b24f5(0xa7)]=_0x24b4df,this[_0x5b24f5(0x16b)]=_0x372bcc,this['_configService']=_0x2d4712,this['_localStorageService']=_0xce40fc,this[_0x5b24f5(0x85)]=_0x2dba40,this[_0x5b24f5(0x195)]=_0x4488a2,this[_0x5b24f5(0x88)]=_0x2af893,this[_0x5b24f5(0x86)]=_0x4b7bd2,this[_0x5b24f5(0x7b)]=_0x2d0166,this[_0x5b24f5(0x148)]=_0xf6da89,U(this,_0x5b24f5(0x1a3),new _0x5a1e03(!0x1)),U(this,'_mcpCoreConfig$',new _0x5a1e03({})),U(this,_0x5b24f5(0x162),new _0x5a1e03({})),U(this,'_apiKey$',new _0x5a1e03('')),U(this,_0x5b24f5(0xde),async _0x45dd50=>{const _0x4e98b0=_0x5b24f5;this['_loading$'][_0x4e98b0(0xc8)](!0x0);try{var _0x5df084,_0x16d26d;let _0x206406=await this['_validateConfig'](_0x45dd50);if(!_0x206406[_0x4e98b0(0xbb)]){this[_0x4e98b0(0x195)][_0x4e98b0(0x103)]({'type':_0x28277b['Error'],'content':_0x206406[_0x4e98b0(0xaa)]||this['_localeService']['t'](_0x4e98b0(0xc1))});return;}_0x45dd50[_0x4e98b0(0x175)]?await this[_0x4e98b0(0xa6)][_0x4e98b0(0xfc)](K,_0x45dd50['apiKey'][_0x4e98b0(0x109)]()):await this['_localStorageService'][_0x4e98b0(0x17b)](K),this['_apiKey$']['next'](((_0x5df084=_0x45dd50[_0x4e98b0(0x175)])==null?void 0x0:_0x5df084['trim']())||''),this['_mcpConnectionController'][_0x4e98b0(0xc5)]({'Authorization':_0x4e98b0(0x18a)+((_0x16d26d=_0x45dd50[_0x4e98b0(0x175)])==null?void 0x0:_0x16d26d[_0x4e98b0(0x109)]())}),this[_0x4e98b0(0x195)][_0x4e98b0(0x103)]({'type':_0x28277b[_0x4e98b0(0x127)],'content':this[_0x4e98b0(0x86)]['t'](_0x4e98b0(0xb5))}),setTimeout(()=>{const _0x19459e=_0x4e98b0;this['_dialogService'][_0x19459e(0xbc)](q);},0x320);}catch(_0xb0e027){this[_0x4e98b0(0x7b)][_0x4e98b0(0x17e)](_0x4e98b0(0x138),_0xb0e027),this[_0x4e98b0(0x195)]['show']({'type':_0x28277b[_0x4e98b0(0xf0)],'content':this[_0x4e98b0(0x86)]['t'](_0x4e98b0(0x15e))});}finally{this[_0x4e98b0(0x1a3)]['next'](!0x1);}}),this[_0x5b24f5(0x9e)](),this[_0x5b24f5(0x153)](),this[_0x5b24f5(0xb9)]();}[_0x5afb4f(0xb3)](){const _0xe03ea9=_0x5afb4f;let _0x2aeeea=this[_0xe03ea9(0x91)][_0xe03ea9(0xc7)](B);_0x2aeeea!=null&&_0x2aeeea[_0xe03ea9(0x16d)]&&this['_dialogService']['open']({'id':q,'title':{'title':this['_localeService']['t'](_0xe03ea9(0x16c))},'children':{'label':_0xe03ea9(0x12c)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4cfa41=_0xe03ea9;this[_0x4cfa41(0x85)][_0x4cfa41(0xbc)](q);}});}[_0x5afb4f(0xdc)](){const _0x41ca26=_0x5afb4f;return this[_0x41ca26(0x18f)][_0x41ca26(0xe7)];}['_registerComponent'](){const _0x374a60=_0x5afb4f;this['disposeWithMe'](this['_componentManager'][_0x374a60(0xa1)](_0x374a60(0x12c),this['_createConfigPanelComponent']()));}[_0x5afb4f(0xcc)](){const _0xfbd820=_0x5afb4f;return _0x522d18(()=>{const _0x5c8268=_0x500b;var _0x1d83c3,_0x181217,_0x445a93;return _0x4d247a(z,{'config':this[_0x5c8268(0x162)][_0x5c8268(0xe7)],'mcpCoreConfig':this[_0x5c8268(0x18f)]['value'],'currentApiKey$':this['_apiKey$'],'onSave':this['_handleConfigSave'],'loading':this[_0x5c8268(0x1a3)][_0x5c8268(0xe7)],'connectionStatus$':(_0x1d83c3=this[_0x5c8268(0x148)])==null?void 0x0:_0x1d83c3[_0x5c8268(0xd4)],'connectionError$':(_0x181217=this['_mcpConnectionController'])==null?void 0x0:_0x181217[_0x5c8268(0x79)],'currentSessionId$':(_0x445a93=this[_0x5c8268(0x148)])==null?void 0x0:_0x445a93['sessionId$']});},this[_0xfbd820(0xa7)]);}['_initConfigSync'](){const _0x4f6758=_0x5afb4f;this[_0x4f6758(0x163)](this[_0x4f6758(0x91)][_0x4f6758(0x110)](_0x346c5f)[_0x4f6758(0xc0)](_0x37c073=>{const _0x3f6b65=_0x4f6758;this['_mcpCoreConfig$'][_0x3f6b65(0xc8)](_0x37c073||{});}));let _0x29eb8c=this['_configService'][_0x4f6758(0xc7)](_0x346c5f);this[_0x4f6758(0x18f)]['next'](_0x29eb8c||{}),this['disposeWithMe'](this[_0x4f6758(0x91)][_0x4f6758(0x110)](B)['subscribe'](_0x3d58ae=>{const _0x8b183c=_0x4f6758;this[_0x8b183c(0x162)]['next'](_0x3d58ae||{});}));let _0x2d66d4=this[_0x4f6758(0x91)][_0x4f6758(0xc7)](B);this[_0x4f6758(0x162)]['next'](_0x2d66d4||{});}async[_0x5afb4f(0x153)](){const _0x3c7cb9=_0x5afb4f;let _0x270b2d=this[_0x3c7cb9(0x91)][_0x3c7cb9(0xc7)](B);if(!(_0x270b2d!=null&&_0x270b2d[_0x3c7cb9(0x16d)]))return;let _0x415348=await this['_localStorageService']['getItem'](K);_0x415348&&(this[_0x3c7cb9(0x148)][_0x3c7cb9(0xc5)]({'Authorization':_0x3c7cb9(0x18a)+_0x415348}),this[_0x3c7cb9(0x128)]['next'](_0x415348));}async[_0x5afb4f(0x125)](_0x349393){const _0x2ac1e2=_0x5afb4f;if(!_0x349393[_0x2ac1e2(0x175)]||_0x349393[_0x2ac1e2(0x175)][_0x2ac1e2(0x109)]()[_0x2ac1e2(0x10d)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2ac1e2(0x86)]['t'](_0x2ac1e2(0xb2))};if(_0x349393['apiKey']['trim']()[_0x2ac1e2(0x10d)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x2ac1e2(0x86)]['t'](_0x2ac1e2(0x134))};try{let _0xc092fe=await this[_0x2ac1e2(0xa7)][_0x2ac1e2(0x136)](_0x2c9a1c)[_0x2ac1e2(0x186)](_0x349393[_0x2ac1e2(0x175)][_0x2ac1e2(0x109)]());return _0xc092fe[_0x2ac1e2(0xbb)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0xc092fe['error']||this[_0x2ac1e2(0x86)]['t'](_0x2ac1e2(0x146))};}catch(_0x40442e){return console[_0x2ac1e2(0xd2)](_0x2ac1e2(0xc4),_0x40442e),{'isValid':!0x0};}}};J=G([W(0x0,_0xc54b06(_0x2a5bb7)),W(0x1,_0x356992),W(0x2,_0x520faa),W(0x3,_0x104c58),W(0x4,_0x445c31),W(0x5,_0x17b7a7),W(0x6,_0xc54b06(_0x4371f2)),W(0x7,_0xc54b06(_0x3c4182)),W(0x8,_0x45119a),W(0x9,_0xc54b06(_0x2c9a1c))],J);const Y={'id':_0x5afb4f(0x16f),'type':_0x20dd89[_0x5afb4f(0x19d)],'handler':async(_0x25db5b,_0x4d79c2)=>(_0x25db5b[_0x5afb4f(0x136)](J)['showConfigPanel'](),!0x0)};function X(_0x5b9334,_0x2a97fb){const _0x1a6f28=_0x5afb4f;switch(_0x5b9334){case _0x1f5577[_0x1a6f28(0xdb)]:return'mcpStatus.disconnected';case _0x1f5577[_0x1a6f28(0x75)]:return _0x1a6f28(0xf7);case _0x1f5577[_0x1a6f28(0x100)]:return'mcpStatus.connected';case _0x1f5577[_0x1a6f28(0x123)]:switch(_0x2a97fb){case _0x54aad6[_0x1a6f28(0x18b)]:return _0x1a6f28(0xea);case _0x54aad6[_0x1a6f28(0x14e)]:return _0x1a6f28(0x191);case _0x54aad6[_0x1a6f28(0x8b)]:return _0x1a6f28(0x111);case _0x54aad6[_0x1a6f28(0x90)]:return _0x1a6f28(0x160);default:return'mcpStatus.failed';}case _0x1f5577[_0x1a6f28(0x10f)]:return _0x1a6f28(0x8e);default:return _0x1a6f28(0xaf);}}function ce(_0x347661,_0x35fa4c,_0x37874f,_0x9e439b=!0x0){const _0x39d270=_0x5afb4f;let _0x39765e=X(_0x347661,_0x35fa4c),_0x3ac947=_0x37874f['t'](_0x39765e);return _0x9e439b?_0x347661===_0x1f5577['DISCONNECTED']&&_0x35fa4c===_0x54aad6[_0x39d270(0x18b)]?_0x3ac947+_0x39d270(0x10a)+_0x37874f['t'](_0x39d270(0xfe)):_0x347661===_0x1f5577['CONNECTED']?''+_0x3ac947:_0x347661===_0x1f5577[_0x39d270(0xdb)]||_0x347661===_0x1f5577['FAILED']?_0x3ac947+'\x20-\x20'+_0x37874f['t'](_0x39d270(0x98)):_0x3ac947:_0x3ac947;}function le(_0x1eedd2){const _0x57db3d=_0x5afb4f;switch(_0x1eedd2){case _0x1f5577['CONNECTED']:return _0x57db3d(0xd6);case _0x1f5577[_0x57db3d(0x75)]:case _0x1f5577[_0x57db3d(0x10f)]:return'univer-text-yellow-500';case _0x1f5577['FAILED']:case _0x1f5577[_0x57db3d(0xdb)]:return _0x57db3d(0xc9);default:return _0x57db3d(0xb4);}}function ue(_0x5dad3c){const _0x5bfaab=_0x5afb4f;let {status$:_0x59724d,error$:_0x65a89f,onConfigure:_0x439200,showClickable:_0x412e21=!0x0}=_0x5dad3c,_0x208132=_0x115b3d(_0x59724d,_0x1f5577[_0x5bfaab(0xdb)]),_0x1c61df=_0x115b3d(_0x65a89f,_0x54aad6[_0x5bfaab(0x14d)]),_0x3c0194=_0x1561e6(_0x3c4182),_0x3a5219=_0x208132===_0x1f5577[_0x5bfaab(0x100)];_0x208132===_0x1f5577[_0x5bfaab(0x75)]||_0x1f5577['RETRYING'];let _0x4f7f63=_0x3c0194['t'](X(_0x208132,_0x1c61df)),_0x1ac409=ce(_0x208132,_0x1c61df,_0x3c0194,_0x412e21),_0x35fd9a=le(_0x208132),_0x93c4df=_0x4d247a(_0x3a5219?_0x2aaacd:_0x3c2040,{}),_0x2e7ea9=_0x3f364b(()=>{_0x412e21&&_0x439200&&_0x439200();},[_0x412e21,_0x439200]);function _0x41fb85(){const _0x509d07=_0x5bfaab;return _0x52e889(_0x509d07(0x15d),{'className':_0x348762(_0x509d07(0x15b),_0x412e21&&_0x439200&&_0x509d07(0x189)),'role':_0x509d07(0x139),'onClick':_0x412e21&&_0x439200?_0x2e7ea9:void 0x0,'children':[_0x4d247a(_0x509d07(0x15d),{'className':_0x348762('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x35fd9a),'children':_0x93c4df}),_0x4d247a(_0x509d07(0x15d),{'className':_0x509d07(0xa2),'children':_0x4f7f63})]});}return _0x4d247a(_0x5a455a,{'title':_0x1ac409,'placement':'bottom','children':_0x41fb85()});}let Z=class extends _0xd0ff90{constructor(_0x5aec9c,_0x416188,_0x32bf38,_0x27dfdf){const _0x596c40=_0x5afb4f;super(),this[_0x596c40(0xa7)]=_0x5aec9c,this['_connectionController']=_0x416188,this[_0x596c40(0x16b)]=_0x32bf38,this['_configService']=_0x27dfdf,this[_0x596c40(0xf2)](),this[_0x596c40(0x174)]();}[_0x5afb4f(0xf2)](){const _0x664d41=_0x5afb4f;let _0x508cb6=this[_0x664d41(0x91)]['getConfig'](B);_0x508cb6!=null&&_0x508cb6[_0x664d41(0x16d)]&&(this['_connectionController'][_0x664d41(0x172)]=!0x1);}[_0x5afb4f(0x174)](){const _0x2e933c=_0x5afb4f;let _0x85dd3d=this[_0x2e933c(0x91)][_0x2e933c(0xc7)](B);(_0x85dd3d==null?void 0x0:_0x85dd3d[_0x2e933c(0xe8)])!==!0x1&&this[_0x2e933c(0x163)](this[_0x2e933c(0x16b)][_0x2e933c(0xeb)](_0x51161f[_0x2e933c(0x18c)],()=>{const _0x49666d=_0x2e933c;var _0x4d9332;return _0x522d18(de({'status$':this[_0x49666d(0x12d)]['connectionStatus$'],'error$':this[_0x49666d(0x12d)][_0x49666d(0x79)],'onConfigure':()=>this[_0x49666d(0x159)](),'showClickable':(_0x4d9332=_0x85dd3d==null?void 0x0:_0x85dd3d['showDeveloperTools'])==null?!0x1:_0x4d9332}),this[_0x49666d(0xa7)]);}));}[_0x5afb4f(0x159)](){const _0x5b04b7=_0x5afb4f;this[_0x5b04b7(0xa7)]['get'](J)[_0x5b04b7(0xb3)]();}};Z=G([W(0x0,_0xc54b06(_0x2a5bb7)),W(0x1,_0xc54b06(_0x2c9a1c)),W(0x2,_0x356992),W(0x3,_0x520faa)],Z);function de(_0x4b33d6){let {status$:_0x40e9fc,error$:_0x407342,onConfigure:_0x4ef4f1,showClickable:_0x292900}=_0x4b33d6;return function(){return _0x4d247a(ue,{'status$':_0x40e9fc,'error$':_0x407342,'onConfigure':_0x4ef4f1,'showClickable':_0x292900});};}function fe(_0x163f1a){const _0x33019f=_0x5afb4f;return{'id':Y['id'],'type':_0x2bbf5d[_0x33019f(0x17a)],'icon':_0x33019f(0xe1),'title':_0x33019f(0x16c),'tooltip':_0x33019f(0x16c)};}const pe={[_0x1a0368[_0x5afb4f(0x131)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0xd0ff90{constructor(_0x3ccfa9,_0x576428){const _0x38d122=_0x5afb4f;super(),this[_0x38d122(0xc2)]=_0x3ccfa9,this[_0x38d122(0x166)]=_0x576428,this[_0x38d122(0xf8)](),this['_initializeMenus']();}['_initializeCommands'](){const _0x3f2ef8=_0x5afb4f;[Y][_0x3f2ef8(0x11b)](_0x5b59b5=>{const _0x157d42=_0x3f2ef8;this[_0x157d42(0x163)](this['_commandService'][_0x157d42(0x13e)](_0x5b59b5));});}['_initializeMenus'](){const _0x3bfef7=_0x5afb4f;this[_0x3bfef7(0x166)]['mergeMenu'](pe);}};Q=G([W(0x0,_0x195f5d),W(0x1,_0x4f6a1a)],Q);const me={'mcpStatus':{'disconnected':_0x5afb4f(0x11a),'connecting':_0x5afb4f(0xa5),'connected':'MCP\x20Connected','failed':_0x5afb4f(0xf3),'retrying':_0x5afb4f(0x122),'unknown':_0x5afb4f(0x84),'unauthorized':_0x5afb4f(0xbe),'sessionOccupied':_0x5afb4f(0x92),'networkError':_0x5afb4f(0x87),'maxRetriesExceeded':_0x5afb4f(0x152),'clickToConnect':_0x5afb4f(0x132),'clickToConfigure':_0x5afb4f(0x13c)},'mcpConfig':{'title':_0x5afb4f(0x141),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x5afb4f(0x10e),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5afb4f(0x188),'enableAuthHint':_0x5afb4f(0x156),'connectionInfo':_0x5afb4f(0xe0),'mcpClientConfig':_0x5afb4f(0xe0),'configInstructions':_0x5afb4f(0x193),'configStepTitle':_0x5afb4f(0x114),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5afb4f(0x151),'configStep3':_0x5afb4f(0xfa),'sessionId':_0x5afb4f(0x19e),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5afb4f(0x80),'configParameters':_0x5afb4f(0x9b),'maxRetries':_0x5afb4f(0x9a),'save':_0x5afb4f(0x82),'saving':_0x5afb4f(0xfb),'note1':_0x5afb4f(0xe3),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5afb4f(0x176),'configError':_0x5afb4f(0xa4),'apiApplyInfo':{'title':_0x5afb4f(0x12f),'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':_0x5afb4f(0x9f),'getStarted':_0x5afb4f(0xdf)},'validation':{'apiKeyRequired':_0x5afb4f(0x7a),'apiKeyTooShort':_0x5afb4f(0x8d),'invalidConfig':_0x5afb4f(0xee),'invalidApiKey':_0x5afb4f(0x17c)},'connectionStatus':{'disconnected':_0x5afb4f(0x105),'connecting':'Connecting...','connected':'Connected','failed':_0x5afb4f(0x94),'retrying':_0x5afb4f(0x184)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x5afb4f(0x126)}}},he={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x5afb4f(0x121),'connected':'MCP\x20已连接','failed':_0x5afb4f(0xb6),'retrying':_0x5afb4f(0xf4),'unknown':_0x5afb4f(0x190),'unauthorized':_0x5afb4f(0x11c),'sessionOccupied':_0x5afb4f(0x17f),'networkError':_0x5afb4f(0xf1),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x5afb4f(0x12a),'clickToConfigure':_0x5afb4f(0x18e)},'mcpConfig':{'title':_0x5afb4f(0x129),'description':_0x5afb4f(0x81),'apiKey':_0x5afb4f(0xe9),'apiKeyPlaceholder':_0x5afb4f(0x19c),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x5afb4f(0xd1),'enableAuthHint':_0x5afb4f(0x16a),'connectionInfo':_0x5afb4f(0x1a4),'mcpClientConfig':_0x5afb4f(0x1a4),'configInstructions':_0x5afb4f(0x1a0),'configStepTitle':_0x5afb4f(0x1a1),'configStep1':_0x5afb4f(0x173),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x5afb4f(0x89),'sessionId':_0x5afb4f(0xf5),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x5afb4f(0x165),'configParameters':'配置参数:','maxRetries':_0x5afb4f(0xca),'save':_0x5afb4f(0x171),'saving':_0x5afb4f(0xdd),'note1':_0x5afb4f(0x167),'note2':_0x5afb4f(0x119),'configSaved':_0x5afb4f(0x7c),'configError':'配置保存失败','apiApplyInfo':{'title':_0x5afb4f(0x107),'description':_0x5afb4f(0x161),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x5afb4f(0x10c)},'validation':{'apiKeyRequired':_0x5afb4f(0x78),'apiKeyTooShort':_0x5afb4f(0x117),'invalidConfig':_0x5afb4f(0x11e),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x5afb4f(0x11f),'connecting':'连接中...','connected':_0x5afb4f(0xf6),'failed':_0x5afb4f(0x130),'retrying':_0x5afb4f(0x181)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x5afb4f(0x15a),'networkError':_0x5afb4f(0xff),'maxRetriesExceeded':_0x5afb4f(0x13d)}}};var ge=_0x5afb4f(0x14c),_e='0.24.0';let $=class extends _0xdb1177{constructor(_0x274417=V,_0xda596c,_0x2de263,_0x1d7c39,_0x4c869b,_0x57be37){const _0x58cb5b=_0x5afb4f;super(),this['_config']=_0x274417,this[_0x58cb5b(0xa7)]=_0xda596c,this[_0x58cb5b(0x91)]=_0x2de263,this[_0x58cb5b(0x16b)]=_0x1d7c39,this[_0x58cb5b(0xa6)]=_0x4c869b,this[_0x58cb5b(0x86)]=_0x57be37;let {..._0x293c51}=_0x9476c9({},V,this[_0x58cb5b(0xda)]);this[_0x58cb5b(0x91)][_0x58cb5b(0x133)](B,_0x293c51);}async[_0x5afb4f(0x11d)](){const _0xaf6578=_0x5afb4f;let _0x363296=[[Z],[J],[Q]];this[_0xaf6578(0xa7)][_0xaf6578(0x7f)](_0x3db57f)||_0x363296[_0xaf6578(0x7e)]([_0x3db57f,{'useClass':_0xe75e09}]),_0x363296[_0xaf6578(0x11b)](_0x109fdf=>this[_0xaf6578(0xa7)][_0xaf6578(0xec)](_0x109fdf)),this['_injector'][_0xaf6578(0x136)](Z),this[_0xaf6578(0xa7)]['get'](J),this[_0xaf6578(0xa7)][_0xaf6578(0x136)](Q);}};U($,_0x5afb4f(0x115),'MCP_UI_PLUGIN'),U($,'packageName',ge),U($,_0x5afb4f(0x97),_e),$=G([_0x59f6a5(_0xe75a44),W(0x1,_0xc54b06(_0x2a5bb7)),W(0x2,_0x520faa),W(0x3,_0x356992),W(0x4,_0x104c58),W(0x5,_0xc54b06(_0x3c4182))],$);export{z as MCPConfigPanel,J as MCPConfigUIController,Z as MCPConnectionUIController,ue as MCPStatusDisplay,Q as MCPUIMenuController,Y as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,me as enUS,he as zhCN};
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2590bd=_0x2b36;(function(_0x1b3a1d,_0x57fcf9){const _0x49fa77=_0x2b36,_0x2fdff8=_0x1b3a1d();while(!![]){try{const _0x2ef767=-parseInt(_0x49fa77(0x1df))/0x1+-parseInt(_0x49fa77(0x1e6))/0x2+parseInt(_0x49fa77(0x1de))/0x3*(parseInt(_0x49fa77(0x1c2))/0x4)+-parseInt(_0x49fa77(0x1c5))/0x5+-parseInt(_0x49fa77(0x1d4))/0x6*(parseInt(_0x49fa77(0x1bf))/0x7)+parseInt(_0x49fa77(0x1c8))/0x8*(-parseInt(_0x49fa77(0x1e4))/0x9)+parseInt(_0x49fa77(0x1e8))/0xa*(parseInt(_0x49fa77(0x1db))/0xb);if(_0x2ef767===_0x57fcf9)break;else _0x2fdff8['push'](_0x2fdff8['shift']());}catch(_0x50a5cc){_0x2fdff8['push'](_0x2fdff8['shift']());}}}(_0x404c,0x2330b));function _0x404c(){const _0x457b15=['Click\x20to\x20configure\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Disconnected','Connection\x20Failed','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Max\x20Retries','Configuration\x20Steps:','MCP\x20Connection\x20Failed','50310yPVaMa','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20connect\x20MCP','MCP:\x20Session\x20ID\x20Occupied','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connected','2453ZQUUMg','API\x20key\x20is\x20required','Configuration\x20saved\x20successfully','3KDGeEe','88842VSUOkM','MCP\x20Connecting...','MCP\x20Configuration','Retrying...','Invalid\x20configuration','9IwlfCo','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','502480MoxGlr','Enable\x20authentication\x20for\x20secure\x20connections','42170RAQguD','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Save\x20Configuration','Connected','MCP:\x20Network\x20Error','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','Enter\x20your\x20API\x20key','MCP\x20Client\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','231KeSiJd','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Disconnected','484204jeFHoA','Connecting...','Get\x20your\x20API\x20key\x20in\x20seconds','416615IDEneH','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Unauthorized','1737544DScDGq','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Failed\x20to\x20save\x20configuration'];_0x404c=function(){return _0x457b15;};return _0x404c();}function _0x2b36(_0xe94f9e,_0x3109d1){_0xe94f9e=_0xe94f9e-0x1b6;const _0x404c0f=_0x404c();let _0x2b3648=_0x404c0f[_0xe94f9e];return _0x2b3648;}const e={'mcpStatus':{'disconnected':_0x2590bd(0x1c1),'connecting':_0x2590bd(0x1e0),'connected':_0x2590bd(0x1da),'failed':_0x2590bd(0x1d3),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x2590bd(0x1c7),'sessionOccupied':_0x2590bd(0x1d8),'networkError':_0x2590bd(0x1b8),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2590bd(0x1d7),'clickToConfigure':_0x2590bd(0x1cb)},'mcpConfig':{'title':_0x2590bd(0x1e1),'description':_0x2590bd(0x1e5),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2590bd(0x1bb),'apiKeyHint':_0x2590bd(0x1c0),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2590bd(0x1e7),'connectionInfo':_0x2590bd(0x1bc),'mcpClientConfig':_0x2590bd(0x1bc),'configInstructions':_0x2590bd(0x1ea),'configStepTitle':_0x2590bd(0x1d2),'configStep1':_0x2590bd(0x1c6),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2590bd(0x1be),'sessionId':_0x2590bd(0x1b9),'sessionIdDescription':_0x2590bd(0x1d9),'authorizationDescription':_0x2590bd(0x1ba),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x2590bd(0x1d1),'save':_0x2590bd(0x1b6),'saving':'Saving...','note1':_0x2590bd(0x1bd),'note2':_0x2590bd(0x1c9),'configSaved':_0x2590bd(0x1dd),'configError':_0x2590bd(0x1ca),'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':_0x2590bd(0x1d5),'getStarted':_0x2590bd(0x1c4)},'validation':{'apiKeyRequired':_0x2590bd(0x1dc),'apiKeyTooShort':_0x2590bd(0x1d6),'invalidConfig':_0x2590bd(0x1e3),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x2590bd(0x1cd),'connecting':_0x2590bd(0x1c3),'connected':_0x2590bd(0x1b7),'failed':_0x2590bd(0x1ce),'retrying':_0x2590bd(0x1e2)},'connectionError':{'unauthorized':_0x2590bd(0x1cf),'sessionOccupied':_0x2590bd(0x1cc),'networkError':_0x2590bd(0x1d0),'maxRetriesExceeded':_0x2590bd(0x1e9)}}};export{e as default};
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3c8b(){const _0x5a099d=['MCP\x20Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20configuration','Configuration\x20Steps:','Get\x20your\x20API\x20key\x20in\x20seconds','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','2745274SSHxPk','8948370QjfrDN','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Unauthorized','Click\x20to\x20connect\x20MCP','Configuration\x20Parameters:','Enter\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20is\x20required','58577WbMLic','MCP\x20Configuration','MCP:\x20Network\x20Error','MCP\x20Retrying...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','3556580KMlLsG','MCP\x20Disconnected','MCP:\x20Session\x20ID\x20Occupied','Saving...','Connected','Disconnected','What\x20is\x20API\x20Key?','MCP\x20Connecting...','Save\x20Configuration','2970960dwslzg','Configuration\x20saved\x20successfully','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20Authentication','MCP:\x20Max\x20Retries\x20Exceeded','437943BSVPoA','40kqnPcM','315252vKRYAR','Click\x20to\x20configure\x20MCP','Connection\x20Failed'];_0x3c8b=function(){return _0x5a099d;};return _0x3c8b();}function _0x2ad4(_0x157069,_0x1c7711){_0x157069=_0x157069-0x1d1;const _0x3c8bc2=_0x3c8b();let _0x2ad484=_0x3c8bc2[_0x157069];return _0x2ad484;}const _0x4fd021=_0x2ad4;(function(_0x1a31df,_0x43cb00){const _0x5d9c32=_0x2ad4,_0x426bc3=_0x1a31df();while(!![]){try{const _0xdc9846=-parseInt(_0x5d9c32(0x1ec))/0x1+parseInt(_0x5d9c32(0x1d7))/0x2+-parseInt(_0x5d9c32(0x1d5))/0x3*(-parseInt(_0x5d9c32(0x1d6))/0x4)+parseInt(_0x5d9c32(0x1f1))/0x5+-parseInt(_0x5d9c32(0x1e2))/0x6+-parseInt(_0x5d9c32(0x1e1))/0x7+parseInt(_0x5d9c32(0x1fa))/0x8;if(_0xdc9846===_0x43cb00)break;else _0x426bc3['push'](_0x426bc3['shift']());}catch(_0x23c9b5){_0x426bc3['push'](_0x426bc3['shift']());}}}(_0x3c8b,0xb90d0));const e={'mcpStatus':{'disconnected':_0x4fd021(0x1f2),'connecting':_0x4fd021(0x1f8),'connected':_0x4fd021(0x1da),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4fd021(0x1ef),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4fd021(0x1e5),'sessionOccupied':_0x4fd021(0x1f3),'networkError':_0x4fd021(0x1ee),'maxRetriesExceeded':_0x4fd021(0x1d4),'clickToConnect':_0x4fd021(0x1e6),'clickToConfigure':_0x4fd021(0x1d8)},'mcpConfig':{'title':_0x4fd021(0x1ed),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x4fd021(0x1e8),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4fd021(0x1d3),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4fd021(0x1e4),'configStepTitle':_0x4fd021(0x1dd),'configStep1':_0x4fd021(0x1e3),'configStep2':_0x4fd021(0x1df),'configStep3':_0x4fd021(0x1f0),'sessionId':_0x4fd021(0x1d1),'sessionIdDescription':_0x4fd021(0x1db),'authorizationDescription':_0x4fd021(0x1d2),'configParameters':_0x4fd021(0x1e7),'maxRetries':'Max\x20Retries','save':_0x4fd021(0x1f9),'saving':_0x4fd021(0x1f4),'note1':_0x4fd021(0x1ea),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x4fd021(0x1fb),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x4fd021(0x1f7),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4fd021(0x1de)},'validation':{'apiKeyRequired':_0x4fd021(0x1eb),'apiKeyTooShort':_0x4fd021(0x1e9),'invalidConfig':_0x4fd021(0x1dc),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4fd021(0x1f6),'connecting':'Connecting...','connected':_0x4fd021(0x1f5),'failed':_0x4fd021(0x1d9),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x4fd021(0x1e0),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};export{e as default};
|