@univerjs-pro/mcp-ui 0.20.1 → 0.22.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 +11 -11
package/lib/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x456b(_0x11cb2a,_0x1e3af7){_0x11cb2a=_0x11cb2a-0x129;const _0x475267=_0x4752();let _0x456b9d=_0x475267[_0x11cb2a];return _0x456b9d;}const _0x338598=_0x456b;(function(_0x1928c4,_0x26b5e9){const _0x10e355=_0x456b,_0x33f0e1=_0x1928c4();while(!![]){try{const _0x269719=-parseInt(_0x10e355(0x159))/0x1*(parseInt(_0x10e355(0x157))/0x2)+-parseInt(_0x10e355(0x146))/0x3+-parseInt(_0x10e355(0x140))/0x4+parseInt(_0x10e355(0x143))/0x5*(parseInt(_0x10e355(0x15a))/0x6)+-parseInt(_0x10e355(0x148))/0x7+-parseInt(_0x10e355(0x134))/0x8+-parseInt(_0x10e355(0x14d))/0x9*(-parseInt(_0x10e355(0x129))/0xa);if(_0x269719===_0x26b5e9)break;else _0x33f0e1['push'](_0x33f0e1['shift']());}catch(_0x302314){_0x33f0e1['push'](_0x33f0e1['shift']());}}}(_0x4752,0xca2b1));const locale={'mcpStatus':{'disconnected':_0x338598(0x154),'connecting':'MCP\x20sa\x20pripája...','connected':_0x338598(0x147),'failed':_0x338598(0x12a),'retrying':_0x338598(0x131),'unknown':_0x338598(0x136),'unauthorized':_0x338598(0x13d),'sessionOccupied':_0x338598(0x13c),'networkError':_0x338598(0x14c),'maxRetriesExceeded':_0x338598(0x13f),'clickToConnect':_0x338598(0x14b),'clickToConfigure':_0x338598(0x138)},'mcpConfig':{'title':_0x338598(0x135),'description':_0x338598(0x12b),'apiKey':_0x338598(0x14f),'apiKeyPlaceholder':_0x338598(0x14e),'apiKeyHint':'Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','enableAuth':'Povoliť\x20overenie','enableAuthHint':_0x338598(0x13e),'connectionInfo':'Konfigurácia\x20klienta\x20MCP','mcpClientConfig':'Konfigurácia\x20klienta\x20MCP','configInstructions':'Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','configStepTitle':'Kroky\x20konfigurácie:','configStep1':'Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','configStep2':_0x338598(0x151),'configStep3':_0x338598(0x150),'sessionId':_0x338598(0x152),'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':'API\x20kľúč\x20s\x20prefixom\x20Bearer.','configParameters':_0x338598(0x139),'maxRetries':_0x338598(0x141),'save':_0x338598(0x156),'saving':_0x338598(0x142),'note1':_0x338598(0x144),'note2':_0x338598(0x145),'configSaved':_0x338598(0x12e),'configError':_0x338598(0x155),'apiApplyInfo':{'title':_0x338598(0x13b),'description':_0x338598(0x12f),'univerAiLabel':'Univer\x20AI\x20konzola','getStarted':_0x338598(0x12c)},'validation':{'apiKeyRequired':_0x338598(0x137),'apiKeyTooShort':_0x338598(0x132),'invalidConfig':_0x338598(0x15b),'invalidApiKey':_0x338598(0x13a)},'connectionStatus':{'disconnected':_0x338598(0x14a),'connecting':_0x338598(0x158),'connected':_0x338598(0x149),'failed':_0x338598(0x12d),'retrying':_0x338598(0x153)},'connectionError':{'unauthorized':_0x338598(0x130),'sessionOccupied':'ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','networkError':_0x338598(0x133),'maxRetriesExceeded':'Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr'}}};function _0x4752(){const _0x30a31d=['MCP:\x20ID\x20relácie\x20je\x20obsadené','MCP:\x20Neautorizované','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','MCP:\x20Prekročený\x20počet\x20pokusov','3623472jVzYzh','Maximálny\x20počet\x20pokusov','Ukladá\x20sa...','10IZEDBv','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','4569882aQFpsN','MCP\x20pripojené','3802274lCXRvr','Pripojené','Odpojené','Kliknite\x20na\x20pripojenie\x20MCP','MCP:\x20Sieťová\x20chyba','13491axmfnR','Zadajte\x20svoj\x20API\x20kľúč','API\x20kľúč','Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','ID\x20relácie','Skúša\x20sa\x20znova...','MCP\x20odpojené','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','Uložiť\x20konfiguráciu','1781618dTbuFG','Pripája\x20sa...','1pceukK','1579884TQyAwD','Neplatná\x20konfigurácia','34020UFouor','Pripojenie\x20MCP\x20zlyhalo','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','Pripojenie\x20zlyhalo','Konfigurácia\x20bola\x20úspešne\x20uložená','API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','MCP\x20opakuje\x20pokus...','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','7479936uDXsXK','Konfigurácia\x20MCP','MCP\x20neznámy\x20stav','API\x20kľúč\x20je\x20povinný','Kliknite\x20na\x20konfiguráciu\x20MCP','Parametre\x20konfigurácie:','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','Čo\x20je\x20API\x20kľúč?'];_0x4752=function(){return _0x30a31d;};return _0x4752();}export{locale as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5d51(){const _0x4dffc1=['Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','Khóa\x20API','18QscODp','MCP\x20Đang\x20kết\x20nối...','Đang\x20lưu...','Cấu\x20hình\x20không\x20hợp\x20lệ','Đang\x20kết\x20nối...','Bảng\x20điều\x20khiển\x20Univer\x20AI','Kết\x20nối\x20thất\x20bại','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.','8187616AngAyC','Đã\x20kết\x20nối','Nhập\x20khóa\x20API\x20của\x20bạn','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','2855052Ngbkug','MCP\x20Đã\x20kết\x20nối','Nhấp\x20để\x20cấu\x20hình\x20MCP','680570GmIBOY','4158895yfRkAK','Lưu\x20cấu\x20hình','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','24YNErnG','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','MCP\x20Đang\x20thử\x20lại...','Nhấp\x20để\x20kết\x20nối\x20MCP','4ehRWyO','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','MCP:\x20Không\x20được\x20phép','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','Cấu\x20hình\x20máy\x20khách\x20MCP','MCP\x20Kết\x20nối\x20thất\x20bại','931669mieKjn','666071gdophx','Các\x20bước\x20cấu\x20hình:','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','13886200LJUaos','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:','Bật\x20xác\x20thực','ID\x20phiên','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Yêu\x20cầu\x20khóa\x20API','Cấu\x20hình\x20MCP','Khóa\x20API\x20là\x20gì?','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn'];_0x5d51=function(){return _0x4dffc1;};return _0x5d51();}const _0x5ac4ff=_0x35af;function _0x35af(_0x91b791,_0x26eb5c){_0x91b791=_0x91b791-0x177;const _0x5d519e=_0x5d51();let _0x35afef=_0x5d519e[_0x91b791];return _0x35afef;}(function(_0x2c2040,_0xe3cd7b){const _0x303b0d=_0x35af,_0x4375b8=_0x2c2040();while(!![]){try{const _0x5125f6=-parseInt(_0x303b0d(0x182))/0x1+-parseInt(_0x303b0d(0x1a5))/0x2+-parseInt(_0x303b0d(0x1a2))/0x3+parseInt(_0x303b0d(0x17c))/0x4*(parseInt(_0x303b0d(0x1a6))/0x5)+parseInt(_0x303b0d(0x178))/0x6*(parseInt(_0x303b0d(0x183))/0x7)+-parseInt(_0x303b0d(0x19d))/0x8+-parseInt(_0x303b0d(0x195))/0x9*(-parseInt(_0x303b0d(0x187))/0xa);if(_0x5125f6===_0xe3cd7b)break;else _0x4375b8['push'](_0x4375b8['shift']());}catch(_0x10c86c){_0x4375b8['push'](_0x4375b8['shift']());}}}(_0x5d51,0xb548d));const locale={'mcpStatus':{'disconnected':'MCP\x20Đã\x20ngắt\x20kết\x20nối','connecting':_0x5ac4ff(0x196),'connected':_0x5ac4ff(0x1a3),'failed':_0x5ac4ff(0x181),'retrying':_0x5ac4ff(0x17a),'unknown':'MCP\x20Trạng\x20thái\x20không\x20xác\x20định','unauthorized':_0x5ac4ff(0x17e),'sessionOccupied':'MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','networkError':'MCP:\x20Lỗi\x20mạng','maxRetriesExceeded':'MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','clickToConnect':_0x5ac4ff(0x17b),'clickToConfigure':_0x5ac4ff(0x1a4)},'mcpConfig':{'title':_0x5ac4ff(0x18f),'description':_0x5ac4ff(0x17f),'apiKey':_0x5ac4ff(0x194),'apiKeyPlaceholder':_0x5ac4ff(0x19f),'apiKeyHint':'Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','enableAuth':_0x5ac4ff(0x18a),'enableAuthHint':_0x5ac4ff(0x17d),'connectionInfo':_0x5ac4ff(0x180),'mcpClientConfig':'Cấu\x20hình\x20máy\x20khách\x20MCP','configInstructions':'Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','configStepTitle':_0x5ac4ff(0x184),'configStep1':_0x5ac4ff(0x192),'configStep2':_0x5ac4ff(0x191),'configStep3':'Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','sessionId':_0x5ac4ff(0x18b),'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':_0x5ac4ff(0x18c),'configParameters':_0x5ac4ff(0x189),'maxRetries':_0x5ac4ff(0x18d),'save':_0x5ac4ff(0x1a7),'saving':_0x5ac4ff(0x197),'note1':_0x5ac4ff(0x1a0),'note2':_0x5ac4ff(0x177),'configSaved':_0x5ac4ff(0x185),'configError':'Lưu\x20cấu\x20hình\x20thất\x20bại','apiApplyInfo':{'title':_0x5ac4ff(0x190),'description':_0x5ac4ff(0x19c),'univerAiLabel':_0x5ac4ff(0x19a),'getStarted':'Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây'},'validation':{'apiKeyRequired':_0x5ac4ff(0x18e),'apiKeyTooShort':'Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','invalidConfig':_0x5ac4ff(0x198),'invalidApiKey':_0x5ac4ff(0x186)},'connectionStatus':{'disconnected':'Đã\x20ngắt\x20kết\x20nối','connecting':_0x5ac4ff(0x199),'connected':_0x5ac4ff(0x19e),'failed':_0x5ac4ff(0x19b),'retrying':'Đang\x20thử\x20lại...'},'connectionError':{'unauthorized':_0x5ac4ff(0x1a1),'sessionOccupied':_0x5ac4ff(0x179),'networkError':_0x5ac4ff(0x193),'maxRetriesExceeded':_0x5ac4ff(0x188)}}};export{locale as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x435012=_0x27d8;function _0x27d8(_0x33a559,_0x47af8a){_0x33a559=_0x33a559-0x113;const _0x32eff2=_0x32ef();let _0x27d84e=_0x32eff2[_0x33a559];return _0x27d84e;}(function(_0x28b8d5,_0x118178){const _0x3cbe1b=_0x27d8,_0x392b2f=_0x28b8d5();while(!![]){try{const _0x27147d=parseInt(_0x3cbe1b(0x137))/0x1*(parseInt(_0x3cbe1b(0x125))/0x2)+parseInt(_0x3cbe1b(0x13a))/0x3+-parseInt(_0x3cbe1b(0x11d))/0x4+-parseInt(_0x3cbe1b(0x13d))/0x5*(parseInt(_0x3cbe1b(0x11f))/0x6)+parseInt(_0x3cbe1b(0x12c))/0x7+-parseInt(_0x3cbe1b(0x135))/0x8+parseInt(_0x3cbe1b(0x13e))/0x9*(-parseInt(_0x3cbe1b(0x121))/0xa);if(_0x27147d===_0x118178)break;else _0x392b2f['push'](_0x392b2f['shift']());}catch(_0x31c4c3){_0x392b2f['push'](_0x392b2f['shift']());}}}(_0x32ef,0xce8ca));const locale={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x435012(0x114),'failed':_0x435012(0x12b),'retrying':_0x435012(0x127),'unknown':_0x435012(0x129),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x435012(0x132),'networkError':_0x435012(0x120),'maxRetriesExceeded':_0x435012(0x131),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x435012(0x119)},'mcpConfig':{'title':'MCP\x20配置','description':_0x435012(0x130),'apiKey':_0x435012(0x116),'apiKeyPlaceholder':_0x435012(0x138),'apiKeyHint':_0x435012(0x12d),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x435012(0x133),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x435012(0x11c),'sessionId':'会话ID','sessionIdDescription':_0x435012(0x113),'authorizationDescription':_0x435012(0x134),'configParameters':_0x435012(0x13c),'maxRetries':_0x435012(0x115),'save':_0x435012(0x136),'saving':_0x435012(0x117),'note1':_0x435012(0x118),'note2':_0x435012(0x11e),'configSaved':_0x435012(0x128),'configError':'配置保存失败','apiApplyInfo':{'title':_0x435012(0x126),'description':_0x435012(0x12e),'univerAiLabel':_0x435012(0x139),'getStarted':_0x435012(0x11a)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x435012(0x123)},'connectionStatus':{'disconnected':_0x435012(0x122),'connecting':_0x435012(0x12f),'connected':'已连接','failed':'连接失败','retrying':_0x435012(0x12a)},'connectionError':{'unauthorized':_0x435012(0x124),'sessionOccupied':_0x435012(0x11b),'networkError':_0x435012(0x13b),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};export{locale as default};function _0x32ef(){const _0xdf7fcd=['权限验证失败,请检查您的\x20API\x20密钥','3016362GOvAfv','什么是\x20API\x20密钥?','MCP\x20重连中...','配置保存成功','MCP\x20状态未知','重连中...','MCP\x20连接失败','3191370yNpRYg','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','连接中...','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP:\x20超出最大重试次数','MCP:\x20会话\x20ID\x20已被占用','配置步骤:','带有\x20Bearer\x20前缀的\x20API\x20密钥。','4447096FaUZMw','保存配置','1Mvomag','请输入您的\x20API\x20密钥','Univer\x20AI\x20控制台','3880602RmFpsB','网络连接错误,请检查您的网络连接','配置参数:','115905mYsdCg','6218001TwBLnS','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20已连接','最大重试次数','API\x20密钥','保存中...','配置更改将立即生效','点击配置\x20MCP','几秒钟内获取您的\x20API\x20密钥','会话\x20ID\x20已被占用,请稍后再试','重启您的\x20MCP\x20客户端以使配置生效','2712088VIYJNc','您的\x20API\x20密钥安全存储在本地存储中','126FjBxCg','MCP:\x20网络错误','10NuqbTu','未连接','API\x20密钥无效,请检查密钥是否正确'];_0x32ef=function(){return _0xdf7fcd;};return _0x32ef();}
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4da3(){const _0x10efa2=['Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Configuration','Enter\x20your\x20API\x20key','What\x20is\x20API\x20Key?','15dHlSpI','214628eaulVp','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Retrying...','Retrying...','Session\x20ID','Connecting...','Failed\x20to\x20save\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20connect\x20MCP','Configuration\x20Steps:','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','585XVqjNx','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Univer\x20AI\x20Console','7yZPbTu','57104JVfTTD','Saving...','MCP\x20Connected','Connected','MCP:\x20Unauthorized','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20saved\x20successfully','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Parameters:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connection\x20Failed','Invalid\x20configuration','2097666trWUgv','Max\x20Retries','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','2043230nmPZZG','215282eSLvHn','2647011IkaPDO','68544VELxah','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0x4da3=function(){return _0x10efa2;};return _0x4da3();}const _0x5a88b2=_0x5e6b;(function(_0x31da5b,_0x307959){const _0x5da06e=_0x5e6b,_0x51050c=_0x31da5b();while(!![]){try{const _0x6b9247=-parseInt(_0x5da06e(0x1cc))/0x1*(-parseInt(_0x5da06e(0x1de))/0x2)+parseInt(_0x5da06e(0x1df))/0x3+parseInt(_0x5da06e(0x1eb))/0x4*(-parseInt(_0x5da06e(0x1ea))/0x5)+-parseInt(_0x5da06e(0x1d9))/0x6+-parseInt(_0x5da06e(0x1e0))/0x7+parseInt(_0x5da06e(0x1cd))/0x8*(-parseInt(_0x5da06e(0x1fa))/0x9)+-parseInt(_0x5da06e(0x1dd))/0xa;if(_0x6b9247===_0x307959)break;else _0x51050c['push'](_0x51050c['shift']());}catch(_0x197989){_0x51050c['push'](_0x51050c['shift']());}}}(_0x4da3,0x6d2b5));const locale$1={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5a88b2(0x1e3),'connected':_0x5a88b2(0x1cf),'failed':_0x5a88b2(0x1d7),'retrying':_0x5a88b2(0x1ed),'unknown':_0x5a88b2(0x1fb),'unauthorized':_0x5a88b2(0x1d1),'sessionOccupied':_0x5a88b2(0x1d2),'networkError':_0x5a88b2(0x1dc),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5a88b2(0x1f5),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x5a88b2(0x1e7),'description':_0x5a88b2(0x1f3),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x5a88b2(0x1e8),'apiKeyHint':_0x5a88b2(0x1e4),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x5a88b2(0x1e2),'connectionInfo':_0x5a88b2(0x1fc),'mcpClientConfig':_0x5a88b2(0x1fc),'configInstructions':_0x5a88b2(0x1fd),'configStepTitle':_0x5a88b2(0x1f6),'configStep1':_0x5a88b2(0x1f7),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x5a88b2(0x1d6),'sessionId':_0x5a88b2(0x1ef),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5a88b2(0x1d4),'configParameters':_0x5a88b2(0x1d5),'maxRetries':_0x5a88b2(0x1da),'save':'Save\x20Configuration','saving':_0x5a88b2(0x1ce),'note1':_0x5a88b2(0x1f2),'note2':_0x5a88b2(0x1e6),'configSaved':_0x5a88b2(0x1d3),'configError':_0x5a88b2(0x1f1),'apiApplyInfo':{'title':_0x5a88b2(0x1e9),'description':_0x5a88b2(0x1f4),'univerAiLabel':_0x5a88b2(0x1fe),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5a88b2(0x1f8),'invalidConfig':_0x5a88b2(0x1d8),'invalidApiKey':_0x5a88b2(0x1ec)},'connectionStatus':{'disconnected':_0x5a88b2(0x1e5),'connecting':_0x5a88b2(0x1f0),'connected':_0x5a88b2(0x1d0),'failed':'Connection\x20Failed','retrying':_0x5a88b2(0x1ee)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5a88b2(0x1f9),'networkError':_0x5a88b2(0x1db),'maxRetriesExceeded':_0x5a88b2(0x1e1)}}},locale=locale$1;function _0x5e6b(_0x2bcded,_0x42e188){_0x2bcded=_0x2bcded-0x1cc;const _0x4da340=_0x4da3();let _0x5e6b1a=_0x4da340[_0x2bcded];return _0x5e6b1a;}export{locale as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5d8a43,_0xf89787){const _0x49f6a6=_0x33a8,_0x593bb8=_0x5d8a43();while(!![]){try{const _0x4507f7=-parseInt(_0x49f6a6(0x343))/0x1*(-parseInt(_0x49f6a6(0x1d9))/0x2)+parseInt(_0x49f6a6(0x314))/0x3*(parseInt(_0x49f6a6(0x25f))/0x4)+parseInt(_0x49f6a6(0x1ff))/0x5*(parseInt(_0x49f6a6(0x336))/0x6)+-parseInt(_0x49f6a6(0x2e4))/0x7+-parseInt(_0x49f6a6(0x293))/0x8+parseInt(_0x49f6a6(0x269))/0x9+-parseInt(_0x49f6a6(0x2eb))/0xa;if(_0x4507f7===_0xf89787)break;else _0x593bb8['push'](_0x593bb8['shift']());}catch(_0x12a7f8){_0x593bb8['push'](_0x593bb8['shift']());}}}(_0x2090,0xb2cbe),function(_0x1afa3e,_0x1eccdd){const _0x131357=_0x33a8;typeof exports==_0x131357(0x2d9)&&typeof module<'u'?_0x1eccdd(exports,require(`@univerjs/core`),require(`@univerjs-pro/mcp`),require(`@univerjs/design`),require(`@univerjs/ui`),require(`rxjs`),require(`react`),require(`react/jsx-runtime`),require(`@univerjs/network`)):typeof define==_0x131357(0x2fe)&&define[_0x131357(0x27a)]?define([_0x131357(0x227),'@univerjs/core',_0x131357(0x308),_0x131357(0x29e),'@univerjs/ui',_0x131357(0x1dc),_0x131357(0x2c2),_0x131357(0x263),'@univerjs/network'],_0x1eccdd):(_0x1afa3e=typeof globalThis<'u'?globalThis:_0x1afa3e||self,_0x1eccdd(_0x1afa3e[_0x131357(0x30f)]={},_0x1afa3e[_0x131357(0x298)],_0x1afa3e['UniverProMcp'],_0x1afa3e[_0x131357(0x288)],_0x1afa3e[_0x131357(0x353)],_0x1afa3e[_0x131357(0x1dc)],_0x1afa3e[_0x131357(0x309)],_0x1afa3e[_0x131357(0x309)],_0x1afa3e[_0x131357(0x284)]));}(this,function(_0x1a3adc,_0x54dd9f,_0x1ff55d,_0x33ab7a,_0x1d4eae,_0x21aaa0,_0x329339,_0x25105e,_0x244de0){const _0x4599df=_0x33a8;Object[_0x4599df(0x1f6)](_0x1a3adc,Symbol[_0x4599df(0x23b)],{'value':'Module'});function _0x2a4bc7({ref:_0x5e9c29,..._0x3d12d8}){const _0x160309=_0x4599df;let {icon:_0x26e915,id:_0x50bcb2,className:_0x180390,extend:_0x3caf49,..._0x29e414}=_0x3d12d8,_0x55f8e8=('univerjs-icon\x20univerjs-icon-'+_0x50bcb2+'\x20'+(_0x180390||''))[_0x160309(0x32e)](),_0x4ce630=(0x0,_0x329339['useRef'])('_'+_0x3ca8d4());return _0x53f61c(_0x26e915,''+_0x50bcb2,{'defIds':_0x26e915['defIds'],'idSuffix':_0x4ce630['current']},{'ref':_0x5e9c29,'className':_0x55f8e8,..._0x29e414},_0x3caf49);}function _0x53f61c(_0x473c6d,_0x393b1a,_0x197951,_0x5cfade,_0x107098){const _0x7312b0=_0x4599df;return(0x0,_0x329339[_0x7312b0(0x2e1)])(_0x473c6d[_0x7312b0(0x1da)],{'key':_0x393b1a,..._0x9cb9a2(_0x473c6d,_0x197951,_0x107098),..._0x5cfade},(_0x473725(_0x473c6d,_0x197951)['children']||[])[_0x7312b0(0x2ab)]((_0x336422,_0x382ee8)=>_0x53f61c(_0x336422,_0x393b1a+'-'+_0x473c6d[_0x7312b0(0x1da)]+'-'+_0x382ee8,_0x197951,void 0x0,_0x107098)));}function _0x9cb9a2(_0x150cc1,_0x3f3041,_0x4629d2){const _0x3ec803=_0x4599df;let _0x2b3e6a={..._0x150cc1['attrs']};_0x4629d2!=null&&_0x4629d2[_0x3ec803(0x206)]&&_0x2b3e6a['fill']===_0x3ec803(0x206)&&(_0x2b3e6a[_0x3ec803(0x22f)]=_0x4629d2[_0x3ec803(0x206)]),_0x150cc1[_0x3ec803(0x1da)]==='mask'&&_0x2b3e6a['id']&&(_0x2b3e6a['id']+=_0x3f3041['idSuffix']),Object[_0x3ec803(0x254)](_0x2b3e6a)[_0x3ec803(0x2db)](([_0x2932b5,_0x2d33b5])=>{const _0x58d6ab=_0x3ec803;_0x2932b5===_0x58d6ab(0x1ca)&&typeof _0x2d33b5==_0x58d6ab(0x1ef)&&(_0x2b3e6a[_0x2932b5]=_0x2d33b5['replace'](/url\(#(.*)\)/,_0x58d6ab(0x1f0)+_0x3f3041[_0x58d6ab(0x1c2)]+')'));});let {defIds:_0x4d2bc6}=_0x3f3041;return!_0x4d2bc6||_0x4d2bc6['length']===0x0?_0x2b3e6a:(_0x150cc1['tag']===_0x3ec803(0x331)&&_0x2b3e6a['xlink:href']&&(_0x2b3e6a[_0x3ec803(0x1f8)]+=_0x3f3041[_0x3ec803(0x1c2)]),Object[_0x3ec803(0x254)](_0x2b3e6a)[_0x3ec803(0x2db)](([_0x4694bb,_0x22c77a])=>{const _0x3984=_0x3ec803;typeof _0x22c77a=='string'&&(_0x2b3e6a[_0x4694bb]=_0x22c77a[_0x3984(0x29c)](/url\(#(.*)\)/,_0x3984(0x1f0)+_0x3f3041[_0x3984(0x1c2)]+')'));}),_0x2b3e6a);}function _0x473725(_0x36e8e3,_0x260433){const _0x43173d=_0x4599df;var _0x3e5c7e;let {defIds:_0x26982d}=_0x260433;return!_0x26982d||_0x26982d['length']===0x0?_0x36e8e3:_0x36e8e3[_0x43173d(0x1da)]==='defs'&&(_0x3e5c7e=_0x36e8e3[_0x43173d(0x301)])!=null&&_0x3e5c7e[_0x43173d(0x25e)]?{..._0x36e8e3,'children':_0x36e8e3[_0x43173d(0x301)][_0x43173d(0x2ab)](_0x693360=>typeof _0x693360[_0x43173d(0x1f1)]['id']==_0x43173d(0x1ef)&&_0x26982d&&_0x26982d[_0x43173d(0x2a9)](_0x693360['attrs']['id'])?{..._0x693360,'attrs':{..._0x693360[_0x43173d(0x1f1)],'id':_0x693360[_0x43173d(0x1f1)]['id']+_0x260433[_0x43173d(0x1c2)]}}:_0x693360)}:_0x36e8e3;}function _0x3ca8d4(){const _0x2446ed=_0x4599df;return Math['random']()[_0x2446ed(0x2ec)](0x24)[_0x2446ed(0x239)](0x2,0x8);}_0x2a4bc7['displayName']='UniverIcon';let _0x2e380c={'tag':_0x4599df(0x21f),'attrs':{'xmlns':_0x4599df(0x229),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x4599df(0x273),'height':_0x4599df(0x273)},'children':[{'tag':'path','attrs':{'fill':_0x4599df(0x1df),'d':_0x4599df(0x339),'fillRule':_0x4599df(0x34a),'clipRule':'evenodd'}}]},_0x249d08=(0x0,_0x329339['forwardRef'])(function(_0x65d9c3,_0x46960f){const _0x19e39e=_0x4599df;return(0x0,_0x329339[_0x19e39e(0x2e1)])(_0x2a4bc7,Object[_0x19e39e(0x312)]({},_0x65d9c3,{'id':'check-mark-icon','ref':_0x46960f,'icon':_0x2e380c}));});_0x249d08[_0x4599df(0x2d4)]=_0x4599df(0x214);let _0x86f752={'tag':_0x4599df(0x21f),'attrs':{'xmlns':_0x4599df(0x229),'fill':_0x4599df(0x23d),'viewBox':_0x4599df(0x350),'width':_0x4599df(0x273),'height':_0x4599df(0x273)},'children':[{'tag':_0x4599df(0x321),'attrs':{'fill':_0x4599df(0x1df),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},_0x47edf2=(0x0,_0x329339[_0x4599df(0x1be)])(function(_0x492352,_0x16cc44){const _0x3c23a=_0x4599df;return(0x0,_0x329339[_0x3c23a(0x2e1)])(_0x2a4bc7,Object[_0x3c23a(0x312)]({},_0x492352,{'id':_0x3c23a(0x1c3),'ref':_0x16cc44,'icon':_0x86f752}));});_0x47edf2[_0x4599df(0x2d4)]=_0x4599df(0x281);let _0x1c0ef4={'tag':'svg','attrs':{'xmlns':_0x4599df(0x229),'fill':_0x4599df(0x23d),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4599df(0x273)},'children':[{'tag':_0x4599df(0x321),'attrs':{'fill':_0x4599df(0x1df),'d':_0x4599df(0x2bc)}},{'tag':_0x4599df(0x321),'attrs':{'fill':_0x4599df(0x1df),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0x4599df(0x321),'attrs':{'fill':_0x4599df(0x1df),'d':_0x4599df(0x204),'fillRule':'evenodd','clipRule':_0x4599df(0x34a)}}]},_0x260221=(0x0,_0x329339['forwardRef'])(function(_0x253f44,_0x31e066){const _0x4a95d0=_0x4599df;return(0x0,_0x329339[_0x4a95d0(0x2e1)])(_0x2a4bc7,Object[_0x4a95d0(0x312)]({},_0x253f44,{'id':_0x4a95d0(0x29f),'ref':_0x31e066,'icon':_0x1c0ef4}));});_0x260221[_0x4599df(0x2d4)]=_0x4599df(0x26a);let _0x1af582={'tag':_0x4599df(0x21f),'attrs':{'xmlns':_0x4599df(0x229),'fill':'none','viewBox':_0x4599df(0x350),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4599df(0x268)},'children':[{'tag':_0x4599df(0x321),'attrs':{'stroke':_0x4599df(0x1df),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x4599df(0x236),'strokeLinejoin':_0x4599df(0x236),'strokeWidth':1.2}}]},{'tag':_0x4599df(0x261),'attrs':{},'children':[{'tag':_0x4599df(0x20b),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x4599df(0x2aa),'d':_0x4599df(0x2a2)}}]}]}],'defIds':[_0x4599df(0x277)]},_0x21be7c=(0x0,_0x329339[_0x4599df(0x1be)])(function(_0x4a8ca2,_0x41b444){const _0x2f2c6d=_0x4599df;return(0x0,_0x329339[_0x2f2c6d(0x2e1)])(_0x2a4bc7,Object[_0x2f2c6d(0x312)]({},_0x4a8ca2,{'id':_0x2f2c6d(0x1cc),'ref':_0x41b444,'icon':_0x1af582}));});_0x21be7c[_0x4599df(0x2d4)]=_0x4599df(0x27f);let _0x533fc0={'tag':'svg','attrs':{'xmlns':_0x4599df(0x229),'fill':_0x4599df(0x23d),'viewBox':_0x4599df(0x1d6),'width':_0x4599df(0x273),'height':_0x4599df(0x273)},'children':[{'tag':'g','attrs':{'clipPath':_0x4599df(0x2d0)},'children':[{'tag':_0x4599df(0x321),'attrs':{'stroke':_0x4599df(0x1df),'d':_0x4599df(0x21c),'strokeLinecap':_0x4599df(0x236),'strokeLinejoin':_0x4599df(0x236),'strokeWidth':1.2}}]},{'tag':_0x4599df(0x261),'attrs':{},'children':[{'tag':_0x4599df(0x20b),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x4599df(0x321),'attrs':{'fill':'white','d':_0x4599df(0x2a2),'transform':'translate(.97)'}}]}]}],'defIds':[_0x4599df(0x2ba)]},_0x36c4d9=(0x0,_0x329339[_0x4599df(0x1be)])(function(_0x4ec104,_0x28d746){const _0xb5336b=_0x4599df;return(0x0,_0x329339[_0xb5336b(0x2e1)])(_0x2a4bc7,Object[_0xb5336b(0x312)]({},_0x4ec104,{'id':_0xb5336b(0x1e9),'ref':_0x28d746,'icon':_0x533fc0}));});_0x36c4d9[_0x4599df(0x2d4)]=_0x4599df(0x30b);function _0x3df486(_0x1e8d95){const _0x56091b=_0x4599df;var _0x36fb7b,_0x48136d;let {mcpCoreConfig:_0x189e8f,onSave:_0xb2200c,loading:_0x57d796=!0x1,config:_0x57122e,connectionStatus$:_0x354c1d,connectionError$:_0x5ca53a,currentApiKey$:_0x384187,currentSessionId$:_0x42f83f}=_0x1e8d95,_0x5d4c28=(0x0,_0x1d4eae[_0x56091b(0x30d)])(_0x54dd9f[_0x56091b(0x20a)]),_0x3a372f=(0x0,_0x1d4eae[_0x56091b(0x32c)])(_0x354c1d,_0x1ff55d[_0x56091b(0x25b)][_0x56091b(0x318)]),_0x292124=(0x0,_0x1d4eae[_0x56091b(0x32c)])(_0x5ca53a,_0x1ff55d[_0x56091b(0x300)][_0x56091b(0x2e8)]),_0x6731de=(0x0,_0x1d4eae['useObservable'])(_0x42f83f,''),[_0x3ca0ff,_0xc90fe3]=(0x0,_0x329339[_0x56091b(0x1ec)])((0x0,_0x1d4eae[_0x56091b(0x32c)])(_0x384187,'')||''),_0xebc38e=_0x57122e[_0x56091b(0x2e5)]&&_0x189e8f[_0x56091b(0x2ac)]&&(_0x189e8f[_0x56091b(0x2ac)][_0x56091b(0x2a9)](_0x56091b(0x1ed))||_0x189e8f['mcpServerUrl'][_0x56091b(0x2a9)](_0x56091b(0x322))),_0x2d91aa=(_0x36fb7b=_0x189e8f[_0x56091b(0x2ac)])==null?void 0x0:_0x36fb7b[_0x56091b(0x2a9)](_0x56091b(0x1ed)),_0x77a858=(_0x48136d=_0x189e8f['mcpServerUrl'])==null?void 0x0:_0x48136d[_0x56091b(0x2a9)](_0x56091b(0x322)),_0x504ffb=_0x2d91aa?_0x56091b(0x21d):_0x56091b(0x334),_0x2f8583=_0x57122e[_0x56091b(0x2e5)]&&(_0x2d91aa||_0x77a858),[_0x445b80,_0x4e6240]=(0x0,_0x329339['useState'])(!_0x3ca0ff[_0x56091b(0x32e)]()),_0x4a0475=(_0x3ffb75,_0xb00f01)=>{const _0x4a2ada=_0x56091b;if(_0xb00f01===_0x1ff55d['MCPConnectionError']['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x3ffb75){case _0x1ff55d['MCPConnectionStatus'][_0x4a2ada(0x226)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x1ff55d[_0x4a2ada(0x25b)][_0x4a2ada(0x278)]:case _0x1ff55d[_0x4a2ada(0x25b)]['RETRYING']:return _0x4a2ada(0x28d);case _0x1ff55d['MCPConnectionStatus'][_0x4a2ada(0x2c1)]:return _0x4a2ada(0x1b8);default:return _0x4a2ada(0x1c5);}},_0x3be165=(_0x4e2143,_0x321cfc)=>{const _0x29ba60=_0x56091b;if(_0x321cfc===_0x1ff55d['MCPConnectionError'][_0x29ba60(0x2fa)])return _0x29ba60(0x20c);switch(_0x4e2143){case _0x1ff55d['MCPConnectionStatus'][_0x29ba60(0x226)]:return _0x29ba60(0x2d5);case _0x1ff55d[_0x29ba60(0x25b)][_0x29ba60(0x278)]:case _0x1ff55d[_0x29ba60(0x25b)][_0x29ba60(0x2de)]:return _0x29ba60(0x280);case _0x1ff55d[_0x29ba60(0x25b)][_0x29ba60(0x2c1)]:return _0x29ba60(0x20c);default:return _0x29ba60(0x22a);}},_0x5eb0ea=_0x5d3850=>{const _0x462e9b=_0x56091b;switch(_0x5d3850){case _0x1ff55d[_0x462e9b(0x25b)]['CONNECTED']:return _0x5d4c28['t'](_0x462e9b(0x1d3));case _0x1ff55d['MCPConnectionStatus']['CONNECTING']:return _0x5d4c28['t'](_0x462e9b(0x313));case _0x1ff55d['MCPConnectionStatus']['FAILED']:return _0x5d4c28['t'](_0x462e9b(0x31c));case _0x1ff55d['MCPConnectionStatus']['RETRYING']:return _0x5d4c28['t'](_0x462e9b(0x2ca));default:return _0x5d4c28['t']('mcpConfig.connectionStatus.disconnected');}},_0x10990c=_0x40ba4e=>{const _0x435e41=_0x56091b;switch(_0x40ba4e){case _0x1ff55d[_0x435e41(0x300)]['UNAUTHORIZED']:return _0x5d4c28['t']('mcpConfig.connectionError.unauthorized');case _0x1ff55d[_0x435e41(0x300)][_0x435e41(0x22c)]:return _0x5d4c28['t']('mcpConfig.connectionError.sessionOccupied');case _0x1ff55d[_0x435e41(0x300)][_0x435e41(0x2cf)]:return _0x5d4c28['t'](_0x435e41(0x200));case _0x1ff55d[_0x435e41(0x300)][_0x435e41(0x325)]:return _0x5d4c28['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x7f469f=(0x0,_0x329339['useCallback'])(()=>{_0xb2200c({..._0x189e8f,'apiKey':_0x3ca0ff['trim'](),'enableAuth':!0x0});},[_0x189e8f,_0x3ca0ff,!0x0,_0xb2200c]),_0x36d3cd=_0x3ca0ff[_0x56091b(0x32e)]()['length']>0x0;return(0x0,_0x25105e[_0x56091b(0x1fe)])('div',{'className':_0x56091b(0x2ea),'children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':_0x56091b(0x2cc),'children':(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x282),'children':[(0x0,_0x25105e[_0x56091b(0x247)])('div',{'className':_0x56091b(0x338),'children':(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'className':'univer-text-white','children':'⚙'})}),(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'children':(0x0,_0x25105e[_0x56091b(0x247)])('p',{'className':_0x56091b(0x310),'children':_0x5d4c28['t'](_0x56091b(0x2cb))})})]})}),(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x23a),'children':[(0x0,_0x25105e[_0x56091b(0x247)])('div',{'className':(0x0,_0x33ab7a[_0x56091b(0x1f4)])(_0x56091b(0x219),_0x4a0475(_0x3a372f,_0x292124)),'children':(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':(0x0,_0x33ab7a['clsx'])(_0x56091b(0x24c),_0x3be165(_0x3a372f,_0x292124))}),(0x0,_0x25105e['jsx'])('span',{'className':_0x56091b(0x2b2),'children':_0x5eb0ea(_0x3a372f)})]})}),_0x292124!==_0x1ff55d[_0x56091b(0x300)][_0x56091b(0x2e8)]&&(_0x3a372f===_0x1ff55d['MCPConnectionStatus'][_0x56091b(0x2c1)]||_0x292124===_0x1ff55d[_0x56091b(0x300)]['UNAUTHORIZED'])&&(0x0,_0x25105e[_0x56091b(0x247)])('div',{'className':_0x56091b(0x246),'children':(0x0,_0x25105e['jsxs'])(_0x56091b(0x251),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[(0x0,_0x25105e['jsx'])('span',{'className':_0x56091b(0x341),'children':'⚠️'}),(0x0,_0x25105e['jsx'])('p',{'className':_0x56091b(0x32d),'children':_0x10990c(_0x292124)})]})})]}),(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':(0x0,_0x25105e[_0x56091b(0x1fe)])('div',{'className':_0x56091b(0x1c9),'children':[(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x1cd),'children':[(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x237),{'className':_0x56091b(0x207),'children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'children':'🔑'}),'\x20',_0x5d4c28['t']('mcpConfig.apiKey'),(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'className':'univer-text-red-500','children':'*'}),_0xebc38e&&(0x0,_0x25105e[_0x56091b(0x247)])('a',{'className':_0x56091b(0x250),'title':_0x5d4c28['t'](_0x56091b(0x2b6)),'role':'button','onClick':()=>_0x4e6240(!0x0),'children':(0x0,_0x25105e['jsx'])(_0x260221,{})})]}),(0x0,_0x25105e['jsx'])(_0x33ab7a[_0x56091b(0x1db)],{'type':_0x56091b(0x24f),'placeholder':_0x5d4c28['t'](_0x56091b(0x324)),'value':_0x3ca0ff,'disabled':_0x57d796,'autoComplete':'off','onChange':_0xc90fe3}),(0x0,_0x25105e[_0x56091b(0x247)])('p',{'className':_0x56091b(0x347),'children':_0x5d4c28['t'](_0x56091b(0x217))})]}),_0xebc38e&&_0x445b80&&(0x0,_0x25105e['jsxs'])(_0x56091b(0x251),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[(0x0,_0x25105e[_0x56091b(0x247)])('a',{'className':_0x56091b(0x2c0),'role':_0x56091b(0x33f),'onClick':()=>_0x4e6240(!0x1),'children':(0x0,_0x25105e[_0x56091b(0x247)])(_0x47edf2,{'className':_0x56091b(0x294)})}),(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x289),'children':[(0x0,_0x25105e[_0x56091b(0x247)])('div',{'className':_0x56091b(0x2bd),'children':(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'className':_0x56091b(0x1fa),'children':'🚀'})}),(0x0,_0x25105e['jsxs'])(_0x56091b(0x251),{'className':_0x56091b(0x295),'children':[(0x0,_0x25105e[_0x56091b(0x247)])('h4',{'className':_0x56091b(0x248),'children':_0x5d4c28['t']('mcpConfig.apiApplyInfo.title')}),(0x0,_0x25105e[_0x56091b(0x247)])('p',{'className':_0x56091b(0x2ad),'children':_0x5d4c28['t'](_0x56091b(0x2d2))}),(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':_0x56091b(0x233),'children':_0x2f8583&&(0x0,_0x25105e[_0x56091b(0x1fe)])('a',{'className':_0x56091b(0x30c),'href':_0x504ffb,'target':_0x56091b(0x1bd),'rel':_0x56091b(0x22e),'children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'children':'🤖'}),_0x5d4c28['t'](_0x56091b(0x1f2)),(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'className':'univer-text-gray-400','children':'↗'})]})}),(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x1d1),'children':['✨','\x20',_0x5d4c28['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x57122e[_0x56091b(0x2e5)]&&(0x0,_0x25105e['jsxs'])(_0x56091b(0x251),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[(0x0,_0x25105e[_0x56091b(0x1fe)])('h4',{'className':_0x56091b(0x2d7),'children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'children':'🔗'}),'\x20',_0x5d4c28['t'](_0x56091b(0x2d3))]}),(0x0,_0x25105e['jsxs'])('div',{'className':_0x56091b(0x2c6),'children':[(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x29b),'children':[(0x0,_0x25105e[_0x56091b(0x247)])('p',{'className':_0x56091b(0x2ce),'children':_0x5d4c28['t'](_0x56091b(0x245))}),(0x0,_0x25105e['jsxs'])('div',{'className':_0x56091b(0x1cd),'children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':_0x56091b(0x31e),'children':_0x5d4c28['t']('mcpConfig.configStepTitle')}),(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x2a1),'children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'className':_0x56091b(0x202),'children':'1'}),_0x5d4c28['t'](_0x56091b(0x2c9))]}),(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x2a1),'children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x1e7),{'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'}),_0x5d4c28['t'](_0x56091b(0x33a))]}),(0x0,_0x25105e[_0x56091b(0x1fe)])('div',{'className':_0x56091b(0x2a1),'children':[(0x0,_0x25105e[_0x56091b(0x247)])('span',{'className':_0x56091b(0x202),'children':'3'}),_0x5d4c28['t']('mcpConfig.configStep3')]})]})]})]}),(0x0,_0x25105e[_0x56091b(0x1fe)])('div',{'className':'univer-space-y-2','children':[(0x0,_0x25105e['jsx'])(_0x56091b(0x251),{'className':_0x56091b(0x31e),'children':_0x56091b(0x342)}),(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':_0x56091b(0x346),'children':(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x26e),{'className':_0x56091b(0x28a),'children':JSON[_0x56091b(0x33d)]({'mcpServers':{'univer':{'url':_0x56091b(0x2f5)+(_0x6731de||_0x56091b(0x1d2)),'type':'http','headers':{'Authorization':_0x56091b(0x2c3)+(_0x3ca0ff||_0x56091b(0x25d))}}}},null,0x2)})})]}),(0x0,_0x25105e['jsxs'])('div',{'className':_0x56091b(0x29b),'children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':_0x56091b(0x31e),'children':_0x5d4c28['t']('mcpConfig.configParameters')}),(0x0,_0x25105e['jsxs'])(_0x56091b(0x251),{'className':'univer-space-y-2','children':[(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,_0x25105e[_0x56091b(0x1fe)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,_0x25105e['jsx'])(_0x56091b(0x251),{'className':_0x56091b(0x315),'children':'univer_session_id:'}),(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':_0x56091b(0x347),'children':_0x5d4c28['t'](_0x56091b(0x208))})]})]}),(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,_0x25105e[_0x56091b(0x1fe)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,_0x25105e['jsx'])(_0x56091b(0x251),{'className':_0x56091b(0x315),'children':_0x56091b(0x25c)}),(0x0,_0x25105e['jsx'])(_0x56091b(0x251),{'className':_0x56091b(0x347),'children':_0x5d4c28['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),(0x0,_0x25105e[_0x56091b(0x247)])(_0x33ab7a[_0x56091b(0x30a)],{'onClick':_0x7f469f,'disabled':!_0x36d3cd||_0x57d796,'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':_0x57d796?(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x1e7),{'className':_0x56091b(0x2a1),'children':[(0x0,_0x25105e['jsx'])('span',{'children':'⟲'}),_0x5d4c28['t'](_0x56091b(0x352))]}):(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x1e7),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x249d08,{}),_0x5d4c28['t'](_0x56091b(0x24b))]})}),(0x0,_0x25105e['jsx'])('div',{'className':_0x56091b(0x1fc),'children':(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'className':_0x56091b(0x257),'children':[(0x0,_0x25105e['jsx'])(_0x56091b(0x1e7),{'className':_0x56091b(0x348),'children':'💡'}),(0x0,_0x25105e['jsxs'])('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[(0x0,_0x25105e[_0x56091b(0x247)])(_0x56091b(0x251),{'className':_0x56091b(0x275),'children':'Configuration\x20Notes:'}),(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'children':['•',_0x5d4c28['t'](_0x56091b(0x1f9))]}),(0x0,_0x25105e[_0x56091b(0x1fe)])(_0x56091b(0x251),{'children':['•',_0x5d4c28['t'](_0x56091b(0x1c1))]})]})]})})]})})]});}let _0x216147=_0x4599df(0x287);Symbol(_0x216147);let _0x23b596={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x12f54c(_0x440bb1){'@babel/helpers - typeof';const _0x4f2c61=_0x4599df;return _0x12f54c=typeof Symbol=='function'&&typeof Symbol[_0x4f2c61(0x28f)]==_0x4f2c61(0x33e)?function(_0x5f478d){return typeof _0x5f478d;}:function(_0x35f152){const _0x3fda7c=_0x4f2c61;return _0x35f152&&typeof Symbol=='function'&&_0x35f152[_0x3fda7c(0x2cd)]===Symbol&&_0x35f152!==Symbol[_0x3fda7c(0x211)]?'symbol':typeof _0x35f152;},_0x12f54c(_0x440bb1);}function _0x57dc46(_0x323153,_0x2ebb99){const _0x2cdaf3=_0x4599df;if(_0x12f54c(_0x323153)!='object'||!_0x323153)return _0x323153;var _0x996061=_0x323153[Symbol[_0x2cdaf3(0x307)]];if(_0x996061!==void 0x0){var _0x4e3de2=_0x996061[_0x2cdaf3(0x2a4)](_0x323153,_0x2ebb99||_0x2cdaf3(0x259));if(_0x12f54c(_0x4e3de2)!='object')return _0x4e3de2;throw TypeError(_0x2cdaf3(0x1ea));}return(_0x2ebb99===_0x2cdaf3(0x1ef)?String:Number)(_0x323153);}function _0x1b442c(_0xd74b62){const _0x4243de=_0x4599df;var _0x46069b=_0x57dc46(_0xd74b62,_0x4243de(0x1ef));return _0x12f54c(_0x46069b)==_0x4243de(0x33e)?_0x46069b:_0x46069b+'';}function _0x46a40f(_0x35abb2,_0x2fed1d,_0x19520f){const _0x4020a3=_0x4599df;return(_0x2fed1d=_0x1b442c(_0x2fed1d))in _0x35abb2?Object[_0x4020a3(0x1f6)](_0x35abb2,_0x2fed1d,{'value':_0x19520f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x35abb2[_0x2fed1d]=_0x19520f,_0x35abb2;}function _0x5713cd(_0x2c3b24,_0x3a03f2){return function(_0x282e79,_0x5ea457){_0x3a03f2(_0x282e79,_0x5ea457,_0x2c3b24);};}function _0x3b964f(_0x3e30f5,_0xaaa597,_0x3a2720,_0x5aafc2){const _0x3f2bd6=_0x4599df;var _0x2bc33e=arguments[_0x3f2bd6(0x25e)],_0x32af9d=_0x2bc33e<0x3?_0xaaa597:_0x5aafc2===null?_0x5aafc2=Object[_0x3f2bd6(0x320)](_0xaaa597,_0x3a2720):_0x5aafc2,_0x2525e8;if(typeof Reflect==_0x3f2bd6(0x2d9)&&typeof Reflect['decorate']==_0x3f2bd6(0x2fe))_0x32af9d=Reflect[_0x3f2bd6(0x1c4)](_0x3e30f5,_0xaaa597,_0x3a2720,_0x5aafc2);else{for(var _0x2c427d=_0x3e30f5[_0x3f2bd6(0x25e)]-0x1;_0x2c427d>=0x0;_0x2c427d--)(_0x2525e8=_0x3e30f5[_0x2c427d])&&(_0x32af9d=(_0x2bc33e<0x3?_0x2525e8(_0x32af9d):_0x2bc33e>0x3?_0x2525e8(_0xaaa597,_0x3a2720,_0x32af9d):_0x2525e8(_0xaaa597,_0x3a2720))||_0x32af9d);}return _0x2bc33e>0x3&&_0x32af9d&&Object['defineProperty'](_0xaaa597,_0x3a2720,_0x32af9d),_0x32af9d;}let _0x2780a9=_0x4599df(0x2fc),_0x3e31a2=_0x4599df(0x26f),_0x1f0c81=class extends _0x54dd9f[_0x4599df(0x1d7)]{constructor(_0x2a1109,_0x960940,_0x18d3dd,_0x261a82,_0x213575,_0x305cc9,_0x5d7cd7,_0x274265,_0x2777d4,_0x38535c){const _0x2264c4=_0x4599df;super(),this[_0x2264c4(0x2f9)]=_0x2a1109,this[_0x2264c4(0x327)]=_0x960940,this[_0x2264c4(0x32f)]=_0x18d3dd,this['_localStorageService']=_0x261a82,this['_dialogService']=_0x213575,this['_messageService']=_0x305cc9,this[_0x2264c4(0x2be)]=_0x5d7cd7,this[_0x2264c4(0x32b)]=_0x274265,this[_0x2264c4(0x21b)]=_0x2777d4,this[_0x2264c4(0x23f)]=_0x38535c,_0x46a40f(this,_0x2264c4(0x34d),new _0x21aaa0[(_0x2264c4(0x31d))](!0x1)),_0x46a40f(this,_0x2264c4(0x2e0),new _0x21aaa0[(_0x2264c4(0x31d))]({})),_0x46a40f(this,_0x2264c4(0x210),new _0x21aaa0[(_0x2264c4(0x31d))]({})),_0x46a40f(this,'_apiKey$',new _0x21aaa0[(_0x2264c4(0x31d))]('')),_0x46a40f(this,'_handleConfigSave',async _0x5392f4=>{const _0x49d1aa=_0x2264c4;this['_loading$']['next'](!0x0);try{var _0x5e2ffe,_0x4f1f09;let _0x4350db=await this['_validateConfig'](_0x5392f4);if(!_0x4350db[_0x49d1aa(0x1d8)]){this[_0x49d1aa(0x2c5)][_0x49d1aa(0x292)]({'type':_0x33ab7a[_0x49d1aa(0x253)][_0x49d1aa(0x223)],'content':_0x4350db[_0x49d1aa(0x244)]||this[_0x49d1aa(0x32b)]['t'](_0x49d1aa(0x20d))});return;}_0x5392f4[_0x49d1aa(0x311)]?await this['_localStorageService'][_0x49d1aa(0x31a)](_0x2780a9,_0x5392f4[_0x49d1aa(0x311)][_0x49d1aa(0x32e)]()):await this[_0x49d1aa(0x2d1)][_0x49d1aa(0x271)](_0x2780a9),this['_apiKey$'][_0x49d1aa(0x297)](((_0x5e2ffe=_0x5392f4[_0x49d1aa(0x311)])==null?void 0x0:_0x5e2ffe[_0x49d1aa(0x32e)]())||''),this[_0x49d1aa(0x23f)][_0x49d1aa(0x1c0)]({'Authorization':'Bearer\x20'+((_0x4f1f09=_0x5392f4[_0x49d1aa(0x311)])==null?void 0x0:_0x4f1f09['trim']())}),this[_0x49d1aa(0x2c5)][_0x49d1aa(0x292)]({'type':_0x33ab7a[_0x49d1aa(0x253)][_0x49d1aa(0x317)],'content':this[_0x49d1aa(0x32b)]['t'](_0x49d1aa(0x221))}),setTimeout(()=>{const _0xcd3c04=_0x49d1aa;this[_0xcd3c04(0x220)]['close'](_0x3e31a2);},0x320);}catch(_0x51c8f2){this['_logService'][_0x49d1aa(0x2d8)](_0x49d1aa(0x1bf),_0x51c8f2),this['_messageService'][_0x49d1aa(0x292)]({'type':_0x33ab7a[_0x49d1aa(0x253)]['Error'],'content':this[_0x49d1aa(0x32b)]['t']('mcpConfig.configError')});}finally{this[_0x49d1aa(0x34d)]['next'](!0x1);}}),this[_0x2264c4(0x323)](),this[_0x2264c4(0x212)](),this[_0x2264c4(0x2e3)]();}[_0x4599df(0x1f3)](){const _0x8b2d30=_0x4599df;let _0x46c57e=this[_0x8b2d30(0x32f)][_0x8b2d30(0x2e7)](_0x216147);_0x46c57e!=null&&_0x46c57e['showDeveloperTools']&&this[_0x8b2d30(0x220)][_0x8b2d30(0x1cf)]({'id':_0x3e31a2,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x8b2d30(0x222)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0xea7f01=_0x8b2d30;this[_0xea7f01(0x220)][_0xea7f01(0x328)](_0x3e31a2);}});}[_0x4599df(0x228)](){const _0x3b2075=_0x4599df;return this[_0x3b2075(0x2e0)][_0x3b2075(0x2a0)];}[_0x4599df(0x2e3)](){const _0x5493ec=_0x4599df;this[_0x5493ec(0x28e)](this[_0x5493ec(0x2be)][_0x5493ec(0x21a)](_0x5493ec(0x222),this['_createConfigPanelComponent']()));}[_0x4599df(0x2dd)](){const _0x5cf124=_0x4599df;return(0x0,_0x1d4eae[_0x5cf124(0x243)])(()=>{const _0x1be897=_0x5cf124;var _0x33a9e5,_0x3f5f5c,_0x18b67f;return(0x0,_0x25105e[_0x1be897(0x247)])(_0x3df486,{'config':this['_config$'][_0x1be897(0x2a0)],'mcpCoreConfig':this[_0x1be897(0x2e0)][_0x1be897(0x2a0)],'currentApiKey$':this[_0x1be897(0x1e5)],'onSave':this[_0x1be897(0x262)],'loading':this[_0x1be897(0x34d)][_0x1be897(0x2a0)],'connectionStatus$':(_0x33a9e5=this[_0x1be897(0x23f)])==null?void 0x0:_0x33a9e5[_0x1be897(0x330)],'connectionError$':(_0x3f5f5c=this[_0x1be897(0x23f)])==null?void 0x0:_0x3f5f5c[_0x1be897(0x25a)],'currentSessionId$':(_0x18b67f=this['_mcpConnectionController'])==null?void 0x0:_0x18b67f[_0x1be897(0x2c8)]});},this['_injector']);}[_0x4599df(0x323)](){const _0x48e848=_0x4599df;this[_0x48e848(0x28e)](this[_0x48e848(0x32f)][_0x48e848(0x20f)](_0x1ff55d[_0x48e848(0x232)])['subscribe'](_0xb3fce=>{const _0x326f0a=_0x48e848;this[_0x326f0a(0x2e0)][_0x326f0a(0x297)](_0xb3fce||{});}));let _0xd8f0a4=this['_configService'][_0x48e848(0x2e7)](_0x1ff55d[_0x48e848(0x232)]);this['_mcpCoreConfig$'][_0x48e848(0x297)](_0xd8f0a4||{}),this[_0x48e848(0x28e)](this[_0x48e848(0x32f)][_0x48e848(0x20f)](_0x216147)[_0x48e848(0x264)](_0x199ac5=>{const _0x4a7108=_0x48e848;this[_0x4a7108(0x210)][_0x4a7108(0x297)](_0x199ac5||{});}));let _0x1b9679=this[_0x48e848(0x32f)]['getConfig'](_0x216147);this['_config$'][_0x48e848(0x297)](_0x1b9679||{});}async[_0x4599df(0x212)](){const _0x1e634d=_0x4599df;let _0x21621f=this[_0x1e634d(0x32f)][_0x1e634d(0x2e7)](_0x216147);if(!(_0x21621f!=null&&_0x21621f[_0x1e634d(0x2e5)]))return;let _0x458450=await this[_0x1e634d(0x2d1)]['getItem'](_0x2780a9);_0x458450&&(this[_0x1e634d(0x23f)][_0x1e634d(0x1c0)]({'Authorization':_0x1e634d(0x2c3)+_0x458450}),this[_0x1e634d(0x1e5)]['next'](_0x458450));}async['_validateConfig'](_0x2e7896){const _0x271743=_0x4599df;if(!_0x2e7896[_0x271743(0x311)]||_0x2e7896[_0x271743(0x311)][_0x271743(0x32e)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x271743(0x32b)]['t'](_0x271743(0x2dc))};if(_0x2e7896[_0x271743(0x311)]['trim']()[_0x271743(0x25e)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x271743(0x1dd))};try{let _0x375ede=await this[_0x271743(0x2f9)]['get'](_0x1ff55d['MCPConnectionController'])[_0x271743(0x234)](_0x2e7896[_0x271743(0x311)]['trim']());return _0x375ede[_0x271743(0x1d8)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x375ede[_0x271743(0x2d8)]||this[_0x271743(0x32b)]['t'](_0x271743(0x27d))};}catch(_0x5d3d02){return console[_0x271743(0x2f8)](_0x271743(0x2ed),_0x5d3d02),{'isValid':!0x0};}}};_0x1f0c81=_0x3b964f([_0x5713cd(0x0,(0x0,_0x54dd9f[_0x4599df(0x224)])(_0x54dd9f['Injector'])),_0x5713cd(0x1,_0x1d4eae[_0x4599df(0x2b7)]),_0x5713cd(0x2,_0x54dd9f[_0x4599df(0x231)]),_0x5713cd(0x3,_0x54dd9f[_0x4599df(0x1ba)]),_0x5713cd(0x4,_0x1d4eae['IDialogService']),_0x5713cd(0x5,_0x1d4eae[_0x4599df(0x34c)]),_0x5713cd(0x6,(0x0,_0x54dd9f[_0x4599df(0x224)])(_0x1d4eae[_0x4599df(0x2ff)])),_0x5713cd(0x7,(0x0,_0x54dd9f[_0x4599df(0x224)])(_0x54dd9f['LocaleService'])),_0x5713cd(0x8,_0x54dd9f[_0x4599df(0x2f2)]),_0x5713cd(0x9,(0x0,_0x54dd9f[_0x4599df(0x224)])(_0x1ff55d[_0x4599df(0x1c6)]))],_0x1f0c81);let _0xe261eb={'id':_0x4599df(0x238),'type':_0x54dd9f[_0x4599df(0x306)]['COMMAND'],'handler':async(_0x4911e0,_0x41ccd9)=>(_0x4911e0['get'](_0x1f0c81)['showConfigPanel'](),!0x0)};function _0x5aab7b(_0x10d4d7,_0x563437){const _0x30183f=_0x4599df;switch(_0x10d4d7){case _0x1ff55d[_0x30183f(0x25b)]['DISCONNECTED']:return'mcpStatus.disconnected';case _0x1ff55d[_0x30183f(0x25b)][_0x30183f(0x278)]:return'mcpStatus.connecting';case _0x1ff55d[_0x30183f(0x25b)][_0x30183f(0x226)]:return'mcpStatus.connected';case _0x1ff55d['MCPConnectionStatus']['FAILED']:switch(_0x563437){case _0x1ff55d['MCPConnectionError'][_0x30183f(0x2fa)]:return _0x30183f(0x27c);case _0x1ff55d[_0x30183f(0x300)][_0x30183f(0x22c)]:return _0x30183f(0x1bc);case _0x1ff55d['MCPConnectionError'][_0x30183f(0x2cf)]:return _0x30183f(0x286);case _0x1ff55d[_0x30183f(0x300)][_0x30183f(0x325)]:return _0x30183f(0x2a8);default:return _0x30183f(0x225);}case _0x1ff55d[_0x30183f(0x25b)][_0x30183f(0x2de)]:return _0x30183f(0x266);default:return _0x30183f(0x267);}}function _0x5142cf(_0x4fe0cd,_0x59d94e,_0x43e347,_0x1b133d=!0x0){const _0xa92fa9=_0x4599df;let _0x5470fc=_0x5aab7b(_0x4fe0cd,_0x59d94e),_0xd4909e=_0x43e347['t'](_0x5470fc);return _0x1b133d?_0x4fe0cd===_0x1ff55d[_0xa92fa9(0x25b)][_0xa92fa9(0x318)]&&_0x59d94e===_0x1ff55d[_0xa92fa9(0x300)][_0xa92fa9(0x2fa)]?_0xd4909e+_0xa92fa9(0x27e)+_0x43e347['t'](_0xa92fa9(0x2d6)):_0x4fe0cd===_0x1ff55d[_0xa92fa9(0x25b)][_0xa92fa9(0x226)]?''+_0xd4909e:_0x4fe0cd===_0x1ff55d['MCPConnectionStatus']['DISCONNECTED']||_0x4fe0cd===_0x1ff55d['MCPConnectionStatus'][_0xa92fa9(0x2c1)]?_0xd4909e+'\x20-\x20'+_0x43e347['t'](_0xa92fa9(0x333)):_0xd4909e:_0xd4909e;}function _0x177c6a(_0x19c9bd){const _0x593345=_0x4599df;switch(_0x19c9bd){case _0x1ff55d[_0x593345(0x25b)][_0x593345(0x226)]:return _0x593345(0x1e2);case _0x1ff55d[_0x593345(0x25b)][_0x593345(0x278)]:case _0x1ff55d[_0x593345(0x25b)]['RETRYING']:return'univer-text-yellow-500';case _0x1ff55d[_0x593345(0x25b)][_0x593345(0x2c1)]:case _0x1ff55d[_0x593345(0x25b)][_0x593345(0x318)]:return'univer-text-red-500';default:return _0x593345(0x2b5);}}function _0x2f7ce7(_0x229090){const _0x5bcd92=_0x4599df;let {status$:_0x3d7883,error$:_0x9fbe40,onConfigure:_0x22a030,showClickable:_0x316a76=!0x0}=_0x229090,_0x4bc3a3=(0x0,_0x1d4eae[_0x5bcd92(0x32c)])(_0x3d7883,_0x1ff55d[_0x5bcd92(0x25b)][_0x5bcd92(0x318)]),_0x45540a=(0x0,_0x1d4eae[_0x5bcd92(0x32c)])(_0x9fbe40,_0x1ff55d[_0x5bcd92(0x300)][_0x5bcd92(0x2e8)]),_0x3d442f=(0x0,_0x1d4eae[_0x5bcd92(0x30d)])(_0x54dd9f[_0x5bcd92(0x20a)]),_0x538799=_0x4bc3a3===_0x1ff55d[_0x5bcd92(0x25b)][_0x5bcd92(0x226)];_0x4bc3a3===_0x1ff55d[_0x5bcd92(0x25b)][_0x5bcd92(0x278)]||_0x1ff55d['MCPConnectionStatus'][_0x5bcd92(0x2de)];let _0x45b704=_0x3d442f['t'](_0x5aab7b(_0x4bc3a3,_0x45540a)),_0x166ed4=_0x5142cf(_0x4bc3a3,_0x45540a,_0x3d442f,_0x316a76),_0x37f8f6=_0x177c6a(_0x4bc3a3),_0x44056a=_0x538799?(0x0,_0x25105e[_0x5bcd92(0x247)])(_0x36c4d9,{}):(0x0,_0x25105e['jsx'])(_0x21be7c,{}),_0x3754e3=(0x0,_0x329339[_0x5bcd92(0x2c4)])(()=>{_0x316a76&&_0x22a030&&_0x22a030();},[_0x316a76,_0x22a030]);function _0x31118e(){const _0x69d150=_0x5bcd92;return(0x0,_0x25105e[_0x69d150(0x1fe)])(_0x69d150(0x251),{'className':(0x0,_0x33ab7a[_0x69d150(0x1f4)])(_0x69d150(0x279),_0x316a76&&_0x22a030&&'\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'),'role':_0x69d150(0x33f),'onClick':_0x316a76&&_0x22a030?_0x3754e3:void 0x0,'children':[(0x0,_0x25105e['jsx'])(_0x69d150(0x251),{'className':(0x0,_0x33ab7a['clsx'])(_0x69d150(0x23c),_0x37f8f6),'children':_0x44056a}),(0x0,_0x25105e[_0x69d150(0x247)])(_0x69d150(0x251),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x45b704})]});}return(0x0,_0x25105e[_0x5bcd92(0x247)])(_0x33ab7a[_0x5bcd92(0x2f7)],{'title':_0x166ed4,'placement':_0x5bcd92(0x291),'children':_0x31118e()});}let _0x311758=class extends _0x54dd9f['Disposable']{constructor(_0x152dbd,_0x4c4cd6,_0x5ad72e,_0xace9fd){const _0x211f26=_0x4599df;super(),this['_injector']=_0x152dbd,this[_0x211f26(0x26b)]=_0x4c4cd6,this[_0x211f26(0x327)]=_0x5ad72e,this[_0x211f26(0x32f)]=_0xace9fd,this[_0x211f26(0x34b)](),this['_initStatusComponent']();}[_0x4599df(0x34b)](){const _0xa739ec=_0x4599df;let _0x11069b=this[_0xa739ec(0x32f)]['getConfig'](_0x216147);_0x11069b!=null&&_0x11069b[_0xa739ec(0x2e5)]&&(this[_0xa739ec(0x26b)][_0xa739ec(0x344)]=!0x1);}[_0x4599df(0x2b9)](){const _0x3717f9=_0x4599df;let _0x1a1422=this[_0x3717f9(0x32f)][_0x3717f9(0x2e7)](_0x216147);(_0x1a1422==null?void 0x0:_0x1a1422[_0x3717f9(0x21e)])!==!0x1&&this[_0x3717f9(0x28e)](this[_0x3717f9(0x327)][_0x3717f9(0x203)](_0x1d4eae[_0x3717f9(0x20e)]['HEADER_MENU'],()=>{const _0x2f0755=_0x3717f9;var _0x2ca367;return(0x0,_0x1d4eae[_0x2f0755(0x243)])(_0x34155d({'status$':this[_0x2f0755(0x26b)][_0x2f0755(0x330)],'error$':this['_connectionController'][_0x2f0755(0x25a)],'onConfigure':()=>this[_0x2f0755(0x249)](),'showClickable':(_0x2ca367=_0x1a1422==null?void 0x0:_0x1a1422[_0x2f0755(0x2e5)])==null?!0x1:_0x2ca367}),this[_0x2f0755(0x2f9)]);}));}[_0x4599df(0x249)](){const _0x55e49e=_0x4599df;this[_0x55e49e(0x2f9)]['get'](_0x1f0c81)[_0x55e49e(0x1f3)]();}};_0x311758=_0x3b964f([_0x5713cd(0x0,(0x0,_0x54dd9f['Inject'])(_0x54dd9f[_0x4599df(0x255)])),_0x5713cd(0x1,(0x0,_0x54dd9f[_0x4599df(0x224)])(_0x1ff55d[_0x4599df(0x1c6)])),_0x5713cd(0x2,_0x1d4eae[_0x4599df(0x2b7)]),_0x5713cd(0x3,_0x54dd9f['IConfigService'])],_0x311758);function _0x34155d(_0x3aba2b){let {status$:_0x55e30d,error$:_0x3933c4,onConfigure:_0x3f4279,showClickable:_0x3c42af}=_0x3aba2b;return function(){return(0x0,_0x25105e['jsx'])(_0x2f7ce7,{'status$':_0x55e30d,'error$':_0x3933c4,'onConfigure':_0x3f4279,'showClickable':_0x3c42af});};}function _0x1b09f6(_0xfa7555){const _0x4f5067=_0x4599df;return{'id':_0xe261eb['id'],'type':_0x1d4eae[_0x4f5067(0x27b)][_0x4f5067(0x1d4)],'icon':_0x4f5067(0x29d),'title':_0x4f5067(0x24e),'tooltip':'mcpConfig.title'};}let _0x1f165d={[_0x1d4eae[_0x4599df(0x31f)][_0x4599df(0x28c)]]:{[_0xe261eb['id']]:{'order':0xa,'menuItemFactory':_0x1b09f6}}},_0x5630da=class extends _0x54dd9f['Disposable']{constructor(_0x397f63,_0x5dab12){const _0xc8e17b=_0x4599df;super(),this['_commandService']=_0x397f63,this[_0xc8e17b(0x2a7)]=_0x5dab12,this[_0xc8e17b(0x209)](),this['_initializeMenus']();}[_0x4599df(0x209)](){const _0x2b5d46=_0x4599df;[_0xe261eb][_0x2b5d46(0x2db)](_0xac1aa7=>{const _0x3179b6=_0x2b5d46;this[_0x3179b6(0x28e)](this[_0x3179b6(0x265)][_0x3179b6(0x252)](_0xac1aa7));});}[_0x4599df(0x1cb)](){const _0x300e37=_0x4599df;this[_0x300e37(0x2a7)]['mergeMenu'](_0x1f165d);}};_0x5630da=_0x3b964f([_0x5713cd(0x0,_0x54dd9f['ICommandService']),_0x5713cd(0x1,_0x1d4eae['IMenuManagerService'])],_0x5630da);let _0x456c42={'mcpStatus':{'disconnected':_0x4599df(0x1c7),'connecting':_0x4599df(0x34f),'connected':_0x4599df(0x302),'failed':_0x4599df(0x316),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4599df(0x258),'clickToConnect':_0x4599df(0x34e),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x4599df(0x218),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x4599df(0x23e),'enableAuth':_0x4599df(0x260),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x4599df(0x329),'configInstructions':_0x4599df(0x1f5),'configStepTitle':_0x4599df(0x332),'configStep1':_0x4599df(0x242),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4599df(0x283),'sessionId':_0x4599df(0x205),'sessionIdDescription':_0x4599df(0x1bb),'authorizationDescription':_0x4599df(0x2af),'configParameters':_0x4599df(0x335),'maxRetries':_0x4599df(0x26c),'save':_0x4599df(0x235),'saving':'Saving...','note1':_0x4599df(0x201),'note2':_0x4599df(0x270),'configSaved':_0x4599df(0x2e9),'configError':_0x4599df(0x1f7),'apiApplyInfo':{'title':_0x4599df(0x2f1),'description':_0x4599df(0x2bb),'univerAiLabel':_0x4599df(0x2fd),'getStarted':_0x4599df(0x276)},'validation':{'apiKeyRequired':_0x4599df(0x1e1),'apiKeyTooShort':_0x4599df(0x32a),'invalidConfig':_0x4599df(0x1e0),'invalidApiKey':_0x4599df(0x2ef)},'connectionStatus':{'disconnected':_0x4599df(0x319),'connecting':_0x4599df(0x1de),'connected':'Connected','failed':_0x4599df(0x2a6),'retrying':_0x4599df(0x1c8)},'connectionError':{'unauthorized':_0x4599df(0x345),'sessionOccupied':_0x4599df(0x326),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x4599df(0x303)}}},_0x390507={'mcpStatus':{'disconnected':_0x4599df(0x1eb),'connecting':'MCP\x20连接中...','connected':_0x4599df(0x2a3),'failed':_0x4599df(0x2a5),'retrying':'MCP\x20重连中...','unknown':_0x4599df(0x24d),'unauthorized':_0x4599df(0x351),'sessionOccupied':_0x4599df(0x1d0),'networkError':_0x4599df(0x349),'maxRetriesExceeded':_0x4599df(0x240),'clickToConnect':_0x4599df(0x1e8),'clickToConfigure':_0x4599df(0x340)},'mcpConfig':{'title':_0x4599df(0x28b),'description':_0x4599df(0x2b8),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x4599df(0x290),'apiKeyHint':_0x4599df(0x241),'enableAuth':_0x4599df(0x33c),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x4599df(0x304),'mcpClientConfig':_0x4599df(0x304),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x4599df(0x1e6),'configStep1':_0x4599df(0x2da),'configStep2':_0x4599df(0x2b3),'configStep3':_0x4599df(0x256),'sessionId':'会话ID','sessionIdDescription':_0x4599df(0x1fb),'authorizationDescription':_0x4599df(0x230),'configParameters':_0x4599df(0x2e2),'maxRetries':_0x4599df(0x213),'save':_0x4599df(0x1ee),'saving':_0x4599df(0x2df),'note1':_0x4599df(0x1b7),'note2':_0x4599df(0x2ae),'configSaved':_0x4599df(0x2f3),'configError':_0x4599df(0x1ce),'apiApplyInfo':{'title':_0x4599df(0x296),'description':_0x4599df(0x30e),'univerAiLabel':_0x4599df(0x33b),'getStarted':_0x4599df(0x305)},'validation':{'apiKeyRequired':_0x4599df(0x31b),'apiKeyTooShort':_0x4599df(0x285),'invalidConfig':_0x4599df(0x274),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x4599df(0x2f0),'connected':_0x4599df(0x1d5),'failed':_0x4599df(0x2bf),'retrying':_0x4599df(0x337)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x4599df(0x2f4),'maxRetriesExceeded':_0x4599df(0x24a)}}};var _0x1a7178='@univerjs-pro/mcp-ui',_0x449ac0=_0x4599df(0x272);let _0x580157=class extends _0x54dd9f[_0x4599df(0x1e3)]{constructor(_0x5077df=_0x23b596,_0x284687,_0xbfa240,_0x1b9e29,_0x3d79ce,_0x278c90){const _0xea701a=_0x4599df;super(),this[_0xea701a(0x29a)]=_0x5077df,this[_0xea701a(0x2f9)]=_0x284687,this[_0xea701a(0x32f)]=_0xbfa240,this[_0xea701a(0x327)]=_0x1b9e29,this['_localStorageService']=_0x3d79ce,this['_localeService']=_0x278c90;let {..._0x379ed9}=(0x0,_0x54dd9f[_0xea701a(0x26d)])({},_0x23b596,this[_0xea701a(0x29a)]);this[_0xea701a(0x32f)][_0xea701a(0x1e4)](_0x216147,_0x379ed9);}async[_0x4599df(0x2b4)](){const _0x50f152=_0x4599df;let _0x3b98b8=[[_0x311758],[_0x1f0c81],[_0x5630da]];this['_injector'][_0x50f152(0x2fb)](_0x244de0['ISocketService'])||_0x3b98b8['push']([_0x244de0['ISocketService'],{'useClass':_0x244de0[_0x50f152(0x2b1)]}]),_0x3b98b8[_0x50f152(0x2db)](_0x4af881=>this[_0x50f152(0x2f9)]['add'](_0x4af881)),this[_0x50f152(0x2f9)]['get'](_0x311758),this[_0x50f152(0x2f9)][_0x50f152(0x22d)](_0x1f0c81),this[_0x50f152(0x2f9)][_0x50f152(0x22d)](_0x5630da);}};_0x46a40f(_0x580157,'pluginName',_0x4599df(0x215)),_0x46a40f(_0x580157,_0x4599df(0x2ee),_0x1a7178),_0x46a40f(_0x580157,_0x4599df(0x1b9),_0x449ac0),_0x580157=_0x3b964f([(0x0,_0x54dd9f[_0x4599df(0x2f6)])(_0x1ff55d['UniverMCPPlugin']),_0x5713cd(0x1,(0x0,_0x54dd9f['Inject'])(_0x54dd9f[_0x4599df(0x255)])),_0x5713cd(0x2,_0x54dd9f['IConfigService']),_0x5713cd(0x3,_0x1d4eae['IUIPartsService']),_0x5713cd(0x4,_0x54dd9f[_0x4599df(0x1ba)]),_0x5713cd(0x5,(0x0,_0x54dd9f[_0x4599df(0x224)])(_0x54dd9f[_0x4599df(0x20a)]))],_0x580157),_0x1a3adc['MCPConfigPanel']=_0x3df486,Object[_0x4599df(0x1f6)](_0x1a3adc,_0x4599df(0x22b),{'enumerable':!0x0,'get':function(){return _0x1f0c81;}}),Object[_0x4599df(0x1f6)](_0x1a3adc,_0x4599df(0x2e6),{'enumerable':!0x0,'get':function(){return _0x311758;}}),_0x1a3adc[_0x4599df(0x216)]=_0x2f7ce7,Object[_0x4599df(0x1f6)](_0x1a3adc,_0x4599df(0x2b0),{'enumerable':!0x0,'get':function(){return _0x5630da;}}),_0x1a3adc[_0x4599df(0x2c7)]=_0xe261eb,Object[_0x4599df(0x1f6)](_0x1a3adc,_0x4599df(0x1fd),{'enumerable':!0x0,'get':function(){return _0x580157;}}),_0x1a3adc[_0x4599df(0x299)]=_0x456c42,_0x1a3adc['zhCN']=_0x390507;}));function _0x33a8(_0x2377fd,_0x2ab8a8){_0x2377fd=_0x2377fd-0x1b7;const _0x20901b=_0x2090();let _0x33a876=_0x20901b[_0x2377fd];return _0x33a876;}function _0x2090(){const _0x17aec0=['showStatus','svg','_dialogService','mcpConfig.configSaved','MCPConfigPanel','Error','Inject','mcpStatus.failed','CONNECTED','exports','getCurrentConfig','http://www.w3.org/2000/svg','univer-bg-gray-500','MCPConfigUIController','SESSION_ID_OCCUPIED','get','noopener\x20noreferrer','fill','带有\x20Bearer\x20前缀的\x20API\x20密钥。','IConfigService','MCP_PLUGIN_CONFIG_KEY','univer-flex\x20univer-flex-wrap\x20univer-gap-2','validateApiKey','Save\x20Configuration','round','label','mcp-ui.command.openConfigPanel','substring','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','toStringTag','univer-mr-2\x20univer-flex\x20univer-text-xl','none','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','_mcpConnectionController','MCP:\x20超出最大重试次数','您的\x20API\x20密钥将在此浏览器中本地存储','Copy\x20the\x20JSON\x20configuration\x20below','connectInjector','errorMessage','mcpConfig.configInstructions','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','jsx','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_handleConfigure','超出最大重试次数,请稍后再试','mcpConfig.save','univer-size-2\x20univer-rounded-full','MCP\x20状态未知','mcpConfig.title','text','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','div','registerCommand','MessageType','entries','Injector','重启您的\x20MCP\x20客户端以使配置生效','univer-flex\x20univer-gap-3','MCP:\x20Max\x20Retries\x20Exceeded','default','connectionError$','MCPConnectionStatus','Authorization:','<API_KEY>','length','875580dNrCRJ','Enable\x20Authentication','defs','_handleConfigSave','react/jsx-runtime','subscribe','_commandService','mcpStatus.retrying','mcpStatus.unknown','url(#off-line-icon_clip0_910_343)','9916632TcRXQX','HelpIcon','_connectionController','Max\x20Retries','merge','pre','mcp-config-dialog','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','removeItem','0.20.1','1em','配置无效','univer-font-medium','Get\x20your\x20API\x20key\x20in\x20seconds','off-line-icon_clip0_910_343','CONNECTING','univer-flex\x20univer-items-center','amd','MenuItemType','mcpStatus.unauthorized','mcpConfig.validation.invalidApiKey','\x20-\x20','OffLineIcon','univer-bg-blue-500','CloseIcon','univer-flex\x20univer-items-center\x20univer-gap-3','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','UniverNetwork','API\x20密钥长度至少需要\x2010\x20位','mcpStatus.networkError','mcp-ui.config','UniverDesign','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','MCP\x20配置','OTHERS','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','disposeWithMe','iterator','请输入您的\x20API\x20密钥','bottom','show','8750488DQqtuT','univer-size-4','univer-flex-1','什么是\x20API\x20密钥?','next','UniverCore','enUS','_config','univer-space-y-3','replace','MenuIcon','@univerjs/design','help-icon','value','univer-flex\x20univer-items-center\x20univer-gap-2','M0\x200H16V16H0z','MCP\x20已连接','call','MCP\x20连接失败','Connection\x20Failed','_menuManagerService','mcpStatus.maxRetriesExceeded','includes','white','map','mcpServerUrl','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','您的\x20API\x20密钥安全存储在本地存储中','API\x20key\x20with\x20Bearer\x20prefix.','MCPUIMenuController','WebSocketService','univer-text-sm\x20univer-font-medium','将配置添加到您的\x20MCP\x20客户端设置文件中','onStarting','univer-text-gray-500','mcpConfig.apiApplyInfo.title','IUIPartsService','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_initStatusComponent','on-line-icon_clip0_910_349','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','_componentManager','连接失败','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','FAILED','react','Bearer\x20','useCallback','_messageService','univer-space-y-4','OpenMCPConfigPanelCommand','sessionId$','mcpConfig.configStep1','mcpConfig.connectionStatus.retrying','mcpConfig.description','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','constructor','univer-text-xs\x20univer-text-gray-600','NETWORK_ERROR','url(#on-line-icon_clip0_910_349)','_localStorageService','mcpConfig.apiApplyInfo.description','mcpConfig.connectionInfo','displayName','univer-bg-green-500','mcpStatus.clickToConfigure','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','error','object','复制以下\x20JSON\x20配置','forEach','mcpConfig.validation.apiKeyRequired','_createConfigPanelComponent','RETRYING','保存中...','_mcpCoreConfig$','createElement','配置参数:','_registerComponent','1647499KUegbo','showDeveloperTools','MCPConnectionUIController','getConfig','NONE','Configuration\x20saved\x20successfully','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','10637030cfDjlg','toString','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','packageName','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','连接中...','What\x20is\x20API\x20Key?','ILogService','配置保存成功','网络连接错误,请检查您的网络连接','https://mcp.univer.ai/mcp/?univer_session_id=','DependentOn','Tooltip','warn','_injector','UNAUTHORIZED','has','mcp.apiKey','Univer\x20AI\x20Console','function','ComponentManager','MCPConnectionError','children','MCP\x20Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20客户端配置','几秒钟内获取您的\x20API\x20密钥','CommandType','toPrimitive','@univerjs-pro/mcp','React','Button','OnLineIcon','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','useDependency','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','UniverProMcpUi','univer-text-sm\x20univer-text-gray-500','apiKey','assign','mcpConfig.connectionStatus.connecting','9ILhqXW','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP\x20Connection\x20Failed','Success','DISCONNECTED','Disconnected','setItem','API\x20密钥不能为空','mcpConfig.connectionStatus.failed','BehaviorSubject','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','RibbonStartGroup','getOwnPropertyDescriptor','path','univer.ai','_initConfigSync','mcpConfig.apiKeyPlaceholder','MAX_RETRIES_EXCEEDED','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','_uiPartsService','close','MCP\x20Client\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_localeService','useObservable','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','trim','_configService','connectionStatus$','use','Configuration\x20Steps:','mcpStatus.clickToConnect','https://console.univer.ai','Configuration\x20Parameters:','165576Syoifm','重连中...','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','mcpConfig.configStep2','Univer\x20AI\x20控制台','启用身份验证','stringify','symbol','button','点击配置\x20MCP','univer-shrink-0\x20univer-text-red-500','MCP\x20Configuration','35810qoNmlE','enableAutoConnect','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-text-xs\x20univer-text-gray-500','univer-shrink-0\x20univer-text-blue-500','MCP:\x20网络错误','evenodd','_initAutoConnect','IMessageService','_loading$','Click\x20to\x20connect\x20MCP','MCP\x20Connecting...','0\x200\x2016\x2016','MCP:\x20未授权','mcpConfig.saving','UniverUi','配置更改将立即生效','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','version','ILocalStorageService','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpStatus.sessionOccupied','_blank','forwardRef','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','__setCustomHeaders','mcpConfig.note2','idSuffix','close-icon','decorate','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','MCPConnectionController','MCP\x20Disconnected','Retrying...','univer-space-y-5','mask','_initializeMenus','off-line-icon','univer-space-y-2','配置保存失败','open','MCP:\x20会话\x20ID\x20已被占用','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','<SESSION_ID>','mcpConfig.connectionStatus.connected','BUTTON','已连接','0\x200\x2017\x2016','Disposable','isValid','64JwRwSJ','tag','Input','rxjs','mcpConfig.validation.apiKeyTooShort','Connecting...','currentColor','Invalid\x20configuration','API\x20key\x20is\x20required','univer-text-green-500','Plugin','setConfig','_apiKey$','配置步骤:','span','点击连接\x20MCP','on-line-icon','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','MCP\x20已断开','useState','univer.plus','保存配置','string','url(#$1','attrs','mcpConfig.apiApplyInfo.univerAiLabel','showConfigPanel','clsx','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','defineProperty','Failed\x20to\x20save\x20configuration','xlink:href','mcpConfig.note1','univer-text-blue-600','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','UniverMCPUIPlugin','jsxs','40swNSLX','mcpConfig.connectionError.networkError','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','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','registerComponent','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','Session\x20ID','colorChannel1','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.sessionIdDescription','_initializeCommands','LocaleService','clipPath','univer-bg-red-500','mcpConfig.validation.invalidConfig','BuiltInUIPart','subscribeConfigValue$','_config$','prototype','_loadStoredApiKey','最大重试次数','CheckMarkIcon','MCP_UI_PLUGIN','MCPStatusDisplay','mcpConfig.apiKeyHint','API\x20Key','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','register','_logService','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','https://console.univer.plus'];_0x2090=function(){return _0x17aec0;};return _0x2090();}
|
|
1
|
+
(function(_0x514ec7,_0x2694e3){const _0x1dd384=_0x661d,_0x354960=_0x514ec7();while(!![]){try{const _0x42a27e=parseInt(_0x1dd384(0x1d1))/0x1*(-parseInt(_0x1dd384(0x9a))/0x2)+-parseInt(_0x1dd384(0x142))/0x3+parseInt(_0x1dd384(0x1e8))/0x4+-parseInt(_0x1dd384(0x17b))/0x5+-parseInt(_0x1dd384(0x172))/0x6+parseInt(_0x1dd384(0x11c))/0x7+-parseInt(_0x1dd384(0x108))/0x8*(-parseInt(_0x1dd384(0x14c))/0x9);if(_0x42a27e===_0x2694e3)break;else _0x354960['push'](_0x354960['shift']());}catch(_0x4a4ec9){_0x354960['push'](_0x354960['shift']());}}}(_0x42fd,0x34647),function(_0x812180,_0x2f8557){const _0x250adf=_0x661d;typeof exports==_0x250adf(0x1ea)&&typeof module<'u'?_0x2f8557(exports,require(`@univerjs/core`),require(`@univerjs-pro/mcp`),require(`@univerjs/design`),require(`@univerjs/ui`),require(`rxjs`),require(`react`),require(`react/jsx-runtime`),require(`@univerjs/network`)):typeof define==_0x250adf(0xec)&&define[_0x250adf(0x1e2)]?define([_0x250adf(0x116),'@univerjs/core','@univerjs-pro/mcp',_0x250adf(0x1e6),_0x250adf(0x1b6),_0x250adf(0xa0),_0x250adf(0x18f),'react/jsx-runtime',_0x250adf(0xfd)],_0x2f8557):(_0x812180=typeof globalThis<'u'?globalThis:_0x812180||self,_0x2f8557(_0x812180['UniverProMcpUi']={},_0x812180[_0x250adf(0x85)],_0x812180[_0x250adf(0x170)],_0x812180['UniverDesign'],_0x812180[_0x250adf(0x1b8)],_0x812180[_0x250adf(0xa0)],_0x812180[_0x250adf(0xbe)],_0x812180[_0x250adf(0xbe)],_0x812180[_0x250adf(0xb2)]));}(this,function(_0x5eb436,_0x13cad6,_0x23c1f9,_0x4ee172,_0x5b1179,_0x866f4d,_0x557e69,_0x23712e,_0x11d426){const _0x15014b=_0x661d;Object[_0x15014b(0x1a1)](_0x5eb436,Symbol[_0x15014b(0xef)],{'value':'Module'});function _0x32769f({ref:_0x774060,..._0x543e82}){const _0x30f92b=_0x15014b;let {icon:_0x54892d,id:_0x4a5224,className:_0x159cf5,extend:_0x534118,..._0x336794}=_0x543e82,_0x3af229=(_0x30f92b(0x114)+_0x4a5224+'\x20'+(_0x159cf5||''))[_0x30f92b(0xf9)](),_0x5c26cf=(0x0,_0x557e69['useRef'])('_'+_0x4821d1());return _0x566a2f(_0x54892d,''+_0x4a5224,{'defIds':_0x54892d['defIds'],'idSuffix':_0x5c26cf[_0x30f92b(0xfe)]},{'ref':_0x774060,'className':_0x3af229,..._0x336794},_0x534118);}function _0x566a2f(_0x5c8f61,_0xef55d5,_0x52dfa2,_0x465359,_0xca7eab){const _0x310793=_0x15014b;return(0x0,_0x557e69['createElement'])(_0x5c8f61['tag'],{'key':_0xef55d5,..._0x41e6e8(_0x5c8f61,_0x52dfa2,_0xca7eab),..._0x465359},(_0xa84d61(_0x5c8f61,_0x52dfa2)[_0x310793(0x13c)]||[])[_0x310793(0x18c)]((_0x3f445d,_0x89ced3)=>_0x566a2f(_0x3f445d,_0xef55d5+'-'+_0x5c8f61['tag']+'-'+_0x89ced3,_0x52dfa2,void 0x0,_0xca7eab)));}function _0x41e6e8(_0x93517,_0x2a1b9c,_0xe1e9d2){const _0x1cbe18=_0x15014b;let _0x70d0bd={..._0x93517[_0x1cbe18(0x1fd)]};_0xe1e9d2!=null&&_0xe1e9d2[_0x1cbe18(0xc9)]&&_0x70d0bd['fill']==='colorChannel1'&&(_0x70d0bd[_0x1cbe18(0xde)]=_0xe1e9d2[_0x1cbe18(0xc9)]),_0x93517[_0x1cbe18(0x1bc)]===_0x1cbe18(0xd1)&&_0x70d0bd['id']&&(_0x70d0bd['id']+=_0x2a1b9c['idSuffix']),Object['entries'](_0x70d0bd)[_0x1cbe18(0x150)](([_0x20cc8f,_0x39b521])=>{const _0x302223=_0x1cbe18;_0x20cc8f==='mask'&&typeof _0x39b521=='string'&&(_0x70d0bd[_0x20cc8f]=_0x39b521['replace'](/url\(#(.*)\)/,'url(#$1'+_0x2a1b9c[_0x302223(0xf0)]+')'));});let {defIds:_0x5944f0}=_0x2a1b9c;return!_0x5944f0||_0x5944f0[_0x1cbe18(0xd4)]===0x0?_0x70d0bd:(_0x93517[_0x1cbe18(0x1bc)]===_0x1cbe18(0xc4)&&_0x70d0bd[_0x1cbe18(0xaf)]&&(_0x70d0bd['xlink:href']+=_0x2a1b9c[_0x1cbe18(0xf0)]),Object['entries'](_0x70d0bd)[_0x1cbe18(0x150)](([_0x2db437,_0x1f2317])=>{const _0xb32c67=_0x1cbe18;typeof _0x1f2317==_0xb32c67(0x183)&&(_0x70d0bd[_0x2db437]=_0x1f2317[_0xb32c67(0x175)](/url\(#(.*)\)/,'url(#$1'+_0x2a1b9c[_0xb32c67(0xf0)]+')'));}),_0x70d0bd);}function _0xa84d61(_0xb342a9,_0x3c419f){const _0x1ddd2e=_0x15014b;var _0x3edc7a;let {defIds:_0x3a37e3}=_0x3c419f;return!_0x3a37e3||_0x3a37e3[_0x1ddd2e(0xd4)]===0x0?_0xb342a9:_0xb342a9[_0x1ddd2e(0x1bc)]==='defs'&&(_0x3edc7a=_0xb342a9[_0x1ddd2e(0x13c)])!=null&&_0x3edc7a['length']?{..._0xb342a9,'children':_0xb342a9['children'][_0x1ddd2e(0x18c)](_0x8bc998=>typeof _0x8bc998['attrs']['id']==_0x1ddd2e(0x183)&&_0x3a37e3&&_0x3a37e3[_0x1ddd2e(0x16b)](_0x8bc998[_0x1ddd2e(0x1fd)]['id'])?{..._0x8bc998,'attrs':{..._0x8bc998['attrs'],'id':_0x8bc998[_0x1ddd2e(0x1fd)]['id']+_0x3c419f[_0x1ddd2e(0xf0)]}}:_0x8bc998)}:_0xb342a9;}function _0x4821d1(){const _0x18cd44=_0x15014b;return Math['random']()[_0x18cd44(0x99)](0x24)[_0x18cd44(0x120)](0x2,0x8);}_0x32769f[_0x15014b(0x134)]='UniverIcon';let _0x5eecf3={'tag':_0x15014b(0x1d6),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x15014b(0x88),'viewBox':'0\x200\x2016\x2016','width':_0x15014b(0x159),'height':_0x15014b(0x159)},'children':[{'tag':_0x15014b(0x103),'attrs':{'fill':_0x15014b(0x1ce),'d':_0x15014b(0x144),'fillRule':_0x15014b(0x107),'clipRule':_0x15014b(0x107)}}]},_0x15de38=(0x0,_0x557e69[_0x15014b(0x75)])(function(_0x2f854a,_0x4a163e){const _0x454626=_0x15014b;return(0x0,_0x557e69[_0x454626(0x163)])(_0x32769f,Object['assign']({},_0x2f854a,{'id':'check-mark-icon','ref':_0x4a163e,'icon':_0x5eecf3}));});_0x15de38['displayName']=_0x15014b(0xae);let _0x4e92d9={'tag':'svg','attrs':{'xmlns':_0x15014b(0x1b4),'fill':_0x15014b(0x88),'viewBox':_0x15014b(0xda),'width':_0x15014b(0x159),'height':_0x15014b(0x159)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x15014b(0x136)}}]},_0x31efd6=(0x0,_0x557e69[_0x15014b(0x75)])(function(_0x3f5a0b,_0x1cf56d){const _0x275374=_0x15014b;return(0x0,_0x557e69[_0x275374(0x163)])(_0x32769f,Object[_0x275374(0x1a9)]({},_0x3f5a0b,{'id':_0x275374(0x1b9),'ref':_0x1cf56d,'icon':_0x4e92d9}));});_0x31efd6[_0x15014b(0x134)]=_0x15014b(0x80);let _0x569e16={'tag':_0x15014b(0x1d6),'attrs':{'xmlns':_0x15014b(0x1b4),'fill':_0x15014b(0x88),'viewBox':_0x15014b(0xda),'width':_0x15014b(0x159),'height':_0x15014b(0x159)},'children':[{'tag':_0x15014b(0x103),'attrs':{'fill':_0x15014b(0x1ce),'d':_0x15014b(0x90)}},{'tag':'path','attrs':{'fill':_0x15014b(0x1ce),'d':_0x15014b(0xcb)}},{'tag':_0x15014b(0x103),'attrs':{'fill':_0x15014b(0x1ce),'d':_0x15014b(0xac),'fillRule':_0x15014b(0x107),'clipRule':_0x15014b(0x107)}}]},_0x474549=(0x0,_0x557e69[_0x15014b(0x75)])(function(_0x2c3102,_0x26f4a2){const _0x5e2b70=_0x15014b;return(0x0,_0x557e69[_0x5e2b70(0x163)])(_0x32769f,Object[_0x5e2b70(0x1a9)]({},_0x2c3102,{'id':_0x5e2b70(0x19b),'ref':_0x26f4a2,'icon':_0x569e16}));});_0x474549[_0x15014b(0x134)]=_0x15014b(0x16e);let _0x53c6a6={'tag':_0x15014b(0x1d6),'attrs':{'xmlns':_0x15014b(0x1b4),'fill':_0x15014b(0x88),'viewBox':'0\x200\x2016\x2016','width':_0x15014b(0x159),'height':_0x15014b(0x159)},'children':[{'tag':'g','attrs':{'clipPath':_0x15014b(0x1f6)},'children':[{'tag':'path','attrs':{'stroke':_0x15014b(0x1ce),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x15014b(0xb7),'strokeWidth':1.2}}]},{'tag':_0x15014b(0x10b),'attrs':{},'children':[{'tag':_0x15014b(0xe6),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x15014b(0x103),'attrs':{'fill':_0x15014b(0x13e),'d':_0x15014b(0x1fa)}}]}]}],'defIds':[_0x15014b(0x141)]},_0x5099b1=(0x0,_0x557e69[_0x15014b(0x75)])(function(_0x5d9648,_0x3dcc32){const _0x336795=_0x15014b;return(0x0,_0x557e69[_0x336795(0x163)])(_0x32769f,Object[_0x336795(0x1a9)]({},_0x5d9648,{'id':_0x336795(0x204),'ref':_0x3dcc32,'icon':_0x53c6a6}));});_0x5099b1[_0x15014b(0x134)]=_0x15014b(0x140);let _0x28e5b0={'tag':_0x15014b(0x1d6),'attrs':{'xmlns':_0x15014b(0x1b4),'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x15014b(0x159),'height':_0x15014b(0x159)},'children':[{'tag':'g','attrs':{'clipPath':_0x15014b(0x132)},'children':[{'tag':_0x15014b(0x103),'attrs':{'stroke':_0x15014b(0x1ce),'d':_0x15014b(0xf1),'strokeLinecap':_0x15014b(0xb7),'strokeLinejoin':_0x15014b(0xb7),'strokeWidth':1.2}}]},{'tag':_0x15014b(0x10b),'attrs':{},'children':[{'tag':_0x15014b(0xe6),'attrs':{'id':_0x15014b(0x200)},'children':[{'tag':_0x15014b(0x103),'attrs':{'fill':_0x15014b(0x13e),'d':_0x15014b(0x1fa),'transform':'translate(.97)'}}]}]}],'defIds':[_0x15014b(0x200)]},_0x252d3d=(0x0,_0x557e69[_0x15014b(0x75)])(function(_0x5d3c61,_0xcf958a){const _0x586138=_0x15014b;return(0x0,_0x557e69[_0x586138(0x163)])(_0x32769f,Object[_0x586138(0x1a9)]({},_0x5d3c61,{'id':_0x586138(0x1a7),'ref':_0xcf958a,'icon':_0x28e5b0}));});_0x252d3d[_0x15014b(0x134)]=_0x15014b(0x15e);function _0x13569d(_0x18dd5b){const _0x14a5a8=_0x15014b;var _0x3eaa0b,_0x21ce99;let {mcpCoreConfig:_0x16b3ac,onSave:_0x45db37,loading:_0x4bc868=!0x1,config:_0x340a50,connectionStatus$:_0x344ab8,connectionError$:_0x3b55dd,currentApiKey$:_0x3574db,currentSessionId$:_0x138429}=_0x18dd5b,_0x194580=(0x0,_0x5b1179[_0x14a5a8(0x8f)])(_0x13cad6['LocaleService']),_0x150281=(0x0,_0x5b1179['useObservable'])(_0x344ab8,_0x23c1f9['MCPConnectionStatus'][_0x14a5a8(0x1ab)]),_0x2320b4=(0x0,_0x5b1179[_0x14a5a8(0x16a)])(_0x3b55dd,_0x23c1f9['MCPConnectionError'][_0x14a5a8(0x17c)]),_0x1f3779=(0x0,_0x5b1179[_0x14a5a8(0x16a)])(_0x138429,''),[_0x4108ac,_0x4d66fb]=(0x0,_0x557e69['useState'])((0x0,_0x5b1179[_0x14a5a8(0x16a)])(_0x3574db,'')||''),_0xf74bca=_0x340a50[_0x14a5a8(0x189)]&&_0x16b3ac[_0x14a5a8(0x18d)]&&(_0x16b3ac[_0x14a5a8(0x18d)][_0x14a5a8(0x16b)](_0x14a5a8(0x19f))||_0x16b3ac[_0x14a5a8(0x18d)][_0x14a5a8(0x16b)](_0x14a5a8(0x12a))),_0x4ee4c5=(_0x3eaa0b=_0x16b3ac['mcpServerUrl'])==null?void 0x0:_0x3eaa0b[_0x14a5a8(0x16b)](_0x14a5a8(0x19f)),_0x19c50d=(_0x21ce99=_0x16b3ac[_0x14a5a8(0x18d)])==null?void 0x0:_0x21ce99[_0x14a5a8(0x16b)](_0x14a5a8(0x12a)),_0xbfab1b=_0x4ee4c5?_0x14a5a8(0xab):_0x14a5a8(0x1b0),_0x299e08=_0x340a50[_0x14a5a8(0x189)]&&(_0x4ee4c5||_0x19c50d),[_0x752b4,_0x157112]=(0x0,_0x557e69[_0x14a5a8(0x12c)])(!_0x4108ac[_0x14a5a8(0xf9)]()),_0x3d84ee=(_0x1438b9,_0x572a2c)=>{const _0x2f7f99=_0x14a5a8;if(_0x572a2c===_0x23c1f9['MCPConnectionError']['UNAUTHORIZED'])return _0x2f7f99(0x1df);switch(_0x1438b9){case _0x23c1f9[_0x2f7f99(0xee)][_0x2f7f99(0x10e)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x23c1f9['MCPConnectionStatus'][_0x2f7f99(0xe9)]:case _0x23c1f9['MCPConnectionStatus'][_0x2f7f99(0x10f)]:return _0x2f7f99(0x82);case _0x23c1f9['MCPConnectionStatus'][_0x2f7f99(0x78)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x2309e4=(_0x129d8b,_0x170854)=>{const _0x49eddc=_0x14a5a8;if(_0x170854===_0x23c1f9[_0x49eddc(0x86)]['UNAUTHORIZED'])return _0x49eddc(0x1a3);switch(_0x129d8b){case _0x23c1f9[_0x49eddc(0xee)][_0x49eddc(0x10e)]:return'univer-bg-green-500';case _0x23c1f9['MCPConnectionStatus'][_0x49eddc(0xe9)]:case _0x23c1f9['MCPConnectionStatus'][_0x49eddc(0x10f)]:return _0x49eddc(0x190);case _0x23c1f9[_0x49eddc(0xee)]['FAILED']:return _0x49eddc(0x1a3);default:return _0x49eddc(0x11b);}},_0x4d544a=_0x1e9692=>{const _0x5af625=_0x14a5a8;switch(_0x1e9692){case _0x23c1f9[_0x5af625(0xee)][_0x5af625(0x10e)]:return _0x194580['t']('mcpConfig.connectionStatus.connected');case _0x23c1f9[_0x5af625(0xee)]['CONNECTING']:return _0x194580['t'](_0x5af625(0x123));case _0x23c1f9[_0x5af625(0xee)][_0x5af625(0x78)]:return _0x194580['t']('mcpConfig.connectionStatus.failed');case _0x23c1f9['MCPConnectionStatus'][_0x5af625(0x10f)]:return _0x194580['t'](_0x5af625(0x72));default:return _0x194580['t'](_0x5af625(0x81));}},_0x147c8e=_0x5c94e8=>{const _0x24e59e=_0x14a5a8;switch(_0x5c94e8){case _0x23c1f9[_0x24e59e(0x86)][_0x24e59e(0x1e7)]:return _0x194580['t'](_0x24e59e(0x79));case _0x23c1f9['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x194580['t'](_0x24e59e(0x1c8));case _0x23c1f9['MCPConnectionError'][_0x24e59e(0xd3)]:return _0x194580['t'](_0x24e59e(0x1e5));case _0x23c1f9['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x194580['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x1f9fb9=(0x0,_0x557e69[_0x14a5a8(0x19e)])(()=>{const _0x2c6a17=_0x14a5a8;_0x45db37({..._0x16b3ac,'apiKey':_0x4108ac[_0x2c6a17(0xf9)](),'enableAuth':!0x0});},[_0x16b3ac,_0x4108ac,!0x0,_0x45db37]),_0x50922c=_0x4108ac[_0x14a5a8(0xf9)]()[_0x14a5a8(0xd4)]>0x0;return(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[(0x0,_0x23712e['jsx'])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x154),'children':(0x0,_0x23712e['jsxs'])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x17a),'children':[(0x0,_0x23712e['jsx'])(_0x14a5a8(0x1f8),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':(0x0,_0x23712e[_0x14a5a8(0x1f0)])('span',{'className':_0x14a5a8(0x94),'children':'⚙'})}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])('div',{'children':(0x0,_0x23712e['jsx'])('p',{'className':_0x14a5a8(0xb9),'children':_0x194580['t']('mcpConfig.description')})})]})}),(0x0,_0x23712e[_0x14a5a8(0x168)])('div',{'className':_0x14a5a8(0x1b1),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':(0x0,_0x4ee172[_0x14a5a8(0x14e)])(_0x14a5a8(0x1f9),_0x3d84ee(_0x150281,_0x2320b4)),'children':(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0xbb),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':(0x0,_0x4ee172[_0x14a5a8(0x14e)])(_0x14a5a8(0x93),_0x2309e4(_0x150281,_0x2320b4))}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])('span',{'className':_0x14a5a8(0x17e),'children':_0x4d544a(_0x150281)})]})}),_0x2320b4!==_0x23c1f9[_0x14a5a8(0x86)][_0x14a5a8(0x17c)]&&(_0x150281===_0x23c1f9[_0x14a5a8(0xee)]['FAILED']||_0x2320b4===_0x23c1f9[_0x14a5a8(0x86)][_0x14a5a8(0x1e7)])&&(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x185),'children':(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x13b),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x167),{'className':_0x14a5a8(0xff),'children':'⚠️'}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x147c8e(_0x2320b4)})]})})]}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])('div',{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':(0x0,_0x23712e[_0x14a5a8(0x168)])('div',{'className':_0x14a5a8(0x1e4),'children':[(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x14a),'children':[(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x7b),{'className':_0x14a5a8(0xe4),'children':[(0x0,_0x23712e['jsx'])('span',{'children':'🔑'}),'\x20',_0x194580['t'](_0x14a5a8(0x137)),(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x167),{'className':_0x14a5a8(0xbd),'children':'*'}),_0xf74bca&&(0x0,_0x23712e['jsx'])('a',{'className':_0x14a5a8(0x12b),'title':_0x194580['t'](_0x14a5a8(0x98)),'role':_0x14a5a8(0x92),'onClick':()=>_0x157112(!0x0),'children':(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x474549,{})})]}),(0x0,_0x23712e['jsx'])(_0x4ee172[_0x14a5a8(0x18b)],{'type':_0x14a5a8(0x76),'placeholder':_0x194580['t'](_0x14a5a8(0x9e)),'value':_0x4108ac,'disabled':_0x4bc868,'autoComplete':_0x14a5a8(0xb4),'onChange':_0x4d66fb}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])('p',{'className':_0x14a5a8(0x11e),'children':_0x194580['t'](_0x14a5a8(0x158))})]}),_0xf74bca&&_0x752b4&&(0x0,_0x23712e[_0x14a5a8(0x168)])('div',{'className':_0x14a5a8(0x119),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x14a5a8(0x92),'onClick':()=>_0x157112(!0x1),'children':(0x0,_0x23712e['jsx'])(_0x31efd6,{'className':_0x14a5a8(0x193)})}),(0x0,_0x23712e['jsxs'])(_0x14a5a8(0x1f8),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':(0x0,_0x23712e['jsx'])('span',{'className':_0x14a5a8(0x1c7),'children':'🚀'})}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x7a),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])('h4',{'className':_0x14a5a8(0x203),'children':_0x194580['t'](_0x14a5a8(0x98))}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])('p',{'className':_0x14a5a8(0xdd),'children':_0x194580['t'](_0x14a5a8(0xc8))}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x118),'children':_0x299e08&&(0x0,_0x23712e[_0x14a5a8(0x168)])('a',{'className':_0x14a5a8(0x102),'href':_0xbfab1b,'target':'_blank','rel':_0x14a5a8(0x1b3),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x167),{'children':'🤖'}),_0x194580['t']('mcpConfig.apiApplyInfo.univerAiLabel'),(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x167),{'className':'univer-text-gray-400','children':'↗'})]})}),(0x0,_0x23712e['jsxs'])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x152),'children':['✨','\x20',_0x194580['t'](_0x14a5a8(0x1eb))]})]})]})]}),_0x340a50['showDeveloperTools']&&(0x0,_0x23712e['jsxs'])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x145),'children':[(0x0,_0x23712e[_0x14a5a8(0x168)])('h4',{'className':_0x14a5a8(0x12d),'children':[(0x0,_0x23712e['jsx'])(_0x14a5a8(0x167),{'children':'🔗'}),'\x20',_0x194580['t'](_0x14a5a8(0x176))]}),(0x0,_0x23712e['jsxs'])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x125),'children':[(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x17f),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x194580['t'](_0x14a5a8(0xc1))}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x14a),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x194580['t']('mcpConfig.configStepTitle')}),(0x0,_0x23712e['jsxs'])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x111),'children':[(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,_0x23712e['jsx'])('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x194580['t'](_0x14a5a8(0xe3))]}),(0x0,_0x23712e[_0x14a5a8(0x168)])('div',{'className':_0x14a5a8(0xbb),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])('span',{'className':_0x14a5a8(0xb3),'children':'2'}),_0x194580['t'](_0x14a5a8(0xce))]}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x194580['t'](_0x14a5a8(0x14f))]})]})]})]}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x14a),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x1cd),'children':_0x14a5a8(0xa4)}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])('div',{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0xc3),{'className':_0x14a5a8(0x1c4),'children':JSON[_0x14a5a8(0x1cc)]({'mcpServers':{'univer':{'url':_0x14a5a8(0x198)+(_0x1f3779||'<SESSION_ID>'),'type':_0x14a5a8(0x1c6),'headers':{'Authorization':_0x14a5a8(0x13f)+(_0x4108ac||_0x14a5a8(0x156))}}}},null,0x2)})})]}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x17f),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x1cd),'children':_0x194580['t'](_0x14a5a8(0xc0))}),(0x0,_0x23712e[_0x14a5a8(0x168)])('div',{'className':'univer-space-y-2','children':[(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x8c),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x10a),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])('div',{'className':_0x14a5a8(0x1ef),'children':_0x14a5a8(0x1c0)}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x11e),'children':_0x194580['t'](_0x14a5a8(0x8e))})]})]}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x8d)}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x10a),'children':[(0x0,_0x23712e['jsx'])('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x14a5a8(0xc2)}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x11e),'children':_0x194580['t'](_0x14a5a8(0x1a6))})]})]})]})]})]})]}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x4ee172['Button'],{'onClick':_0x1f9fb9,'disabled':!_0x50922c||_0x4bc868,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x4bc868?(0x0,_0x23712e[_0x14a5a8(0x168)])('span',{'className':_0x14a5a8(0xbb),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x167),{'children':'⟲'}),_0x194580['t'](_0x14a5a8(0x130))]}):(0x0,_0x23712e['jsxs'])(_0x14a5a8(0x167),{'className':_0x14a5a8(0xbb),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x15de38,{}),_0x194580['t'](_0x14a5a8(0xca))]})}),(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0xd8),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x167),{'className':_0x14a5a8(0xe1),'children':'💡'}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0xb0),'children':[(0x0,_0x23712e[_0x14a5a8(0x1f0)])(_0x14a5a8(0x1f8),{'className':_0x14a5a8(0x121),'children':'Configuration\x20Notes:'}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'children':['•',_0x194580['t']('mcpConfig.note1')]}),(0x0,_0x23712e[_0x14a5a8(0x168)])(_0x14a5a8(0x1f8),{'children':['•',_0x194580['t']('mcpConfig.note2')]})]})]})})]})})]});}let _0x14a9a6='mcp-ui.config';Symbol(_0x14a9a6);let _0x16265d={'showDeveloperTools':!0x1,'showStatus':!0x0};function _0x3137db(_0x31a45c){'@babel/helpers - typeof';const _0x92cdb6=_0x15014b;return _0x3137db=typeof Symbol==_0x92cdb6(0xec)&&typeof Symbol['iterator']=='symbol'?function(_0x24ee68){return typeof _0x24ee68;}:function(_0x18d70e){const _0x2490cb=_0x92cdb6;return _0x18d70e&&typeof Symbol=='function'&&_0x18d70e[_0x2490cb(0x12f)]===Symbol&&_0x18d70e!==Symbol[_0x2490cb(0x202)]?_0x2490cb(0xe5):typeof _0x18d70e;},_0x3137db(_0x31a45c);}function _0x4a5406(_0x4ee868,_0x27f275){const _0x237314=_0x15014b;if(_0x3137db(_0x4ee868)!=_0x237314(0x1ea)||!_0x4ee868)return _0x4ee868;var _0x2de035=_0x4ee868[Symbol[_0x237314(0x1da)]];if(_0x2de035!==void 0x0){var _0x3c3df3=_0x2de035['call'](_0x4ee868,_0x27f275||_0x237314(0x1db));if(_0x3137db(_0x3c3df3)!=_0x237314(0x1ea))return _0x3c3df3;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x27f275==='string'?String:Number)(_0x4ee868);}function _0x53e5c6(_0x5787ec){const _0x74e3c6=_0x15014b;var _0x224f39=_0x4a5406(_0x5787ec,_0x74e3c6(0x183));return _0x3137db(_0x224f39)==_0x74e3c6(0xe5)?_0x224f39:_0x224f39+'';}function _0x407c35(_0xa8029e,_0x1ba334,_0x5df767){return(_0x1ba334=_0x53e5c6(_0x1ba334))in _0xa8029e?Object['defineProperty'](_0xa8029e,_0x1ba334,{'value':_0x5df767,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xa8029e[_0x1ba334]=_0x5df767,_0xa8029e;}function _0x4df38f(_0x354153,_0x1f9973){return function(_0x56c56c,_0x3f813c){_0x1f9973(_0x56c56c,_0x3f813c,_0x354153);};}function _0x1852b0(_0x461d55,_0x2e65ca,_0x1e3bfc,_0x17fe4f){const _0x56fcd8=_0x15014b;var _0x5523de=arguments['length'],_0x159a15=_0x5523de<0x3?_0x2e65ca:_0x17fe4f===null?_0x17fe4f=Object[_0x56fcd8(0xcd)](_0x2e65ca,_0x1e3bfc):_0x17fe4f,_0x19a83e;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x56fcd8(0xec))_0x159a15=Reflect[_0x56fcd8(0x1a0)](_0x461d55,_0x2e65ca,_0x1e3bfc,_0x17fe4f);else{for(var _0x286f07=_0x461d55[_0x56fcd8(0xd4)]-0x1;_0x286f07>=0x0;_0x286f07--)(_0x19a83e=_0x461d55[_0x286f07])&&(_0x159a15=(_0x5523de<0x3?_0x19a83e(_0x159a15):_0x5523de>0x3?_0x19a83e(_0x2e65ca,_0x1e3bfc,_0x159a15):_0x19a83e(_0x2e65ca,_0x1e3bfc))||_0x159a15);}return _0x5523de>0x3&&_0x159a15&&Object[_0x56fcd8(0x1a1)](_0x2e65ca,_0x1e3bfc,_0x159a15),_0x159a15;}let _0xd5cbaa=_0x15014b(0x179),_0x45096b=_0x15014b(0xcf),_0x5ea3d0=class extends _0x13cad6[_0x15014b(0x113)]{constructor(_0x444e52,_0x245962,_0x4f5cbc,_0x2bf769,_0x40c8a4,_0x2b08cc,_0xd23fa0,_0x3fe701,_0x360e68,_0xfc9b45){const _0x11ca8a=_0x15014b;super(),this['_injector']=_0x444e52,this[_0x11ca8a(0x71)]=_0x245962,this[_0x11ca8a(0xd6)]=_0x4f5cbc,this[_0x11ca8a(0x112)]=_0x2bf769,this['_dialogService']=_0x40c8a4,this[_0x11ca8a(0x171)]=_0x2b08cc,this[_0x11ca8a(0x1b5)]=_0xd23fa0,this[_0x11ca8a(0x1f7)]=_0x3fe701,this['_logService']=_0x360e68,this[_0x11ca8a(0x1f5)]=_0xfc9b45,_0x407c35(this,_0x11ca8a(0x16d),new _0x866f4d[(_0x11ca8a(0x13d))](!0x1)),_0x407c35(this,_0x11ca8a(0x115),new _0x866f4d[(_0x11ca8a(0x13d))]({})),_0x407c35(this,_0x11ca8a(0x162),new _0x866f4d[(_0x11ca8a(0x13d))]({})),_0x407c35(this,'_apiKey$',new _0x866f4d[(_0x11ca8a(0x13d))]('')),_0x407c35(this,'_handleConfigSave',async _0x14a03f=>{const _0x2221b1=_0x11ca8a;this['_loading$'][_0x2221b1(0x9c)](!0x0);try{var _0x1d550b,_0x28d9c5;let _0x298587=await this['_validateConfig'](_0x14a03f);if(!_0x298587[_0x2221b1(0x74)]){this[_0x2221b1(0x171)]['show']({'type':_0x4ee172[_0x2221b1(0x135)][_0x2221b1(0xdf)],'content':_0x298587[_0x2221b1(0x181)]||this[_0x2221b1(0x1f7)]['t'](_0x2221b1(0x15d))});return;}_0x14a03f[_0x2221b1(0x129)]?await this['_localStorageService'][_0x2221b1(0xe0)](_0xd5cbaa,_0x14a03f[_0x2221b1(0x129)][_0x2221b1(0xf9)]()):await this[_0x2221b1(0x112)][_0x2221b1(0x165)](_0xd5cbaa),this[_0x2221b1(0x19d)][_0x2221b1(0x9c)](((_0x1d550b=_0x14a03f[_0x2221b1(0x129)])==null?void 0x0:_0x1d550b['trim']())||''),this[_0x2221b1(0x1f5)][_0x2221b1(0x91)]({'Authorization':_0x2221b1(0x13f)+((_0x28d9c5=_0x14a03f['apiKey'])==null?void 0x0:_0x28d9c5[_0x2221b1(0xf9)]())}),this[_0x2221b1(0x171)][_0x2221b1(0x1f3)]({'type':_0x4ee172[_0x2221b1(0x135)]['Success'],'content':this[_0x2221b1(0x1f7)]['t'](_0x2221b1(0xbf))}),setTimeout(()=>{this['_dialogService']['close'](_0x45096b);},0x320);}catch(_0x45f260){this[_0x2221b1(0x1af)][_0x2221b1(0x8b)](_0x2221b1(0xba),_0x45f260),this[_0x2221b1(0x171)][_0x2221b1(0x1f3)]({'type':_0x4ee172['MessageType'][_0x2221b1(0xdf)],'content':this[_0x2221b1(0x1f7)]['t'](_0x2221b1(0x1de))});}finally{this[_0x2221b1(0x16d)][_0x2221b1(0x9c)](!0x1);}}),this[_0x11ca8a(0x83)](),this[_0x11ca8a(0x7d)](),this['_registerComponent']();}[_0x15014b(0x195)](){const _0x41e2c2=_0x15014b;let _0x1365ed=this[_0x41e2c2(0xd6)][_0x41e2c2(0x77)](_0x14a9a6);_0x1365ed!=null&&_0x1365ed[_0x41e2c2(0x189)]&&this[_0x41e2c2(0x15f)][_0x41e2c2(0x1cb)]({'id':_0x45096b,'title':{'title':this[_0x41e2c2(0x1f7)]['t'](_0x41e2c2(0xdc))},'children':{'label':_0x41e2c2(0x84)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3153f3=_0x41e2c2;this[_0x3153f3(0x15f)][_0x3153f3(0x18e)](_0x45096b);}});}['getCurrentConfig'](){const _0x5f572c=_0x15014b;return this[_0x5f572c(0x115)][_0x5f572c(0x12e)];}[_0x15014b(0x104)](){const _0x385a6e=_0x15014b;this[_0x385a6e(0x9f)](this[_0x385a6e(0x1b5)]['register']('MCPConfigPanel',this[_0x385a6e(0xa2)]()));}['_createConfigPanelComponent'](){const _0x4f5272=_0x15014b;return(0x0,_0x5b1179[_0x4f5272(0x19a)])(()=>{const _0x4ef594=_0x4f5272;var _0x55e814,_0x33e454,_0x2a779f;return(0x0,_0x23712e['jsx'])(_0x13569d,{'config':this[_0x4ef594(0x162)]['value'],'mcpCoreConfig':this[_0x4ef594(0x115)]['value'],'currentApiKey$':this[_0x4ef594(0x19d)],'onSave':this['_handleConfigSave'],'loading':this[_0x4ef594(0x16d)][_0x4ef594(0x12e)],'connectionStatus$':(_0x55e814=this['_mcpConnectionController'])==null?void 0x0:_0x55e814[_0x4ef594(0x1aa)],'connectionError$':(_0x33e454=this['_mcpConnectionController'])==null?void 0x0:_0x33e454[_0x4ef594(0xf3)],'currentSessionId$':(_0x2a779f=this[_0x4ef594(0x1f5)])==null?void 0x0:_0x2a779f[_0x4ef594(0x133)]});},this[_0x4f5272(0x15a)]);}[_0x15014b(0x83)](){const _0x19fb87=_0x15014b;this[_0x19fb87(0x9f)](this['_configService'][_0x19fb87(0xc5)](_0x23c1f9[_0x19fb87(0x148)])[_0x19fb87(0x1be)](_0x336b19=>{const _0x5d75a7=_0x19fb87;this[_0x5d75a7(0x115)][_0x5d75a7(0x9c)](_0x336b19||{});}));let _0x578125=this['_configService'][_0x19fb87(0x77)](_0x23c1f9[_0x19fb87(0x148)]);this[_0x19fb87(0x115)][_0x19fb87(0x9c)](_0x578125||{}),this[_0x19fb87(0x9f)](this[_0x19fb87(0xd6)][_0x19fb87(0xc5)](_0x14a9a6)[_0x19fb87(0x1be)](_0x23307b=>{const _0x3fc342=_0x19fb87;this[_0x3fc342(0x162)][_0x3fc342(0x9c)](_0x23307b||{});}));let _0xae5416=this['_configService'][_0x19fb87(0x77)](_0x14a9a6);this[_0x19fb87(0x162)][_0x19fb87(0x9c)](_0xae5416||{});}async[_0x15014b(0x7d)](){const _0x444847=_0x15014b;let _0x4f0f07=this[_0x444847(0xd6)]['getConfig'](_0x14a9a6);if(!(_0x4f0f07!=null&&_0x4f0f07[_0x444847(0x189)]))return;let _0x239fcc=await this[_0x444847(0x112)][_0x444847(0x127)](_0xd5cbaa);_0x239fcc&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':'Bearer\x20'+_0x239fcc}),this[_0x444847(0x19d)][_0x444847(0x9c)](_0x239fcc));}async['_validateConfig'](_0x92ef4a){const _0x19a1e3=_0x15014b;if(!_0x92ef4a['apiKey']||_0x92ef4a['apiKey'][_0x19a1e3(0xf9)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x19a1e3(0x1f7)]['t'](_0x19a1e3(0x1c1))};if(_0x92ef4a['apiKey']['trim']()[_0x19a1e3(0xd4)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x19a1e3(0x96))};try{let _0x46d165=await this[_0x19a1e3(0x15a)][_0x19a1e3(0xa9)](_0x23c1f9['MCPConnectionController'])['validateApiKey'](_0x92ef4a[_0x19a1e3(0x129)][_0x19a1e3(0xf9)]());return _0x46d165['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x46d165[_0x19a1e3(0x8b)]||this[_0x19a1e3(0x1f7)]['t'](_0x19a1e3(0x10d))};}catch(_0x1b8dbb){return console[_0x19a1e3(0x1ac)](_0x19a1e3(0xfc),_0x1b8dbb),{'isValid':!0x0};}}};_0x5ea3d0=_0x1852b0([_0x4df38f(0x0,(0x0,_0x13cad6[_0x15014b(0x109)])(_0x13cad6[_0x15014b(0xfa)])),_0x4df38f(0x1,_0x5b1179[_0x15014b(0xf7)]),_0x4df38f(0x2,_0x13cad6[_0x15014b(0x1d0)]),_0x4df38f(0x3,_0x13cad6[_0x15014b(0x1dd)]),_0x4df38f(0x4,_0x5b1179[_0x15014b(0x10c)]),_0x4df38f(0x5,_0x5b1179[_0x15014b(0xc6)]),_0x4df38f(0x6,(0x0,_0x13cad6['Inject'])(_0x5b1179['ComponentManager'])),_0x4df38f(0x7,(0x0,_0x13cad6[_0x15014b(0x109)])(_0x13cad6['LocaleService'])),_0x4df38f(0x8,_0x13cad6[_0x15014b(0x19c)]),_0x4df38f(0x9,(0x0,_0x13cad6[_0x15014b(0x109)])(_0x23c1f9[_0x15014b(0x155)]))],_0x5ea3d0);let _0x5eeebf={'id':_0x15014b(0xeb),'type':_0x13cad6['CommandType'][_0x15014b(0x131)],'handler':async(_0x118523,_0x429c6b)=>(_0x118523['get'](_0x5ea3d0)[_0x15014b(0x195)](),!0x0)};function _0x5f0c1c(_0x284471,_0x9027fc){const _0x4a7865=_0x15014b;switch(_0x284471){case _0x23c1f9[_0x4a7865(0xee)]['DISCONNECTED']:return _0x4a7865(0x14b);case _0x23c1f9[_0x4a7865(0xee)][_0x4a7865(0xe9)]:return _0x4a7865(0x126);case _0x23c1f9[_0x4a7865(0xee)][_0x4a7865(0x10e)]:return _0x4a7865(0x1f4);case _0x23c1f9['MCPConnectionStatus'][_0x4a7865(0x78)]:switch(_0x9027fc){case _0x23c1f9['MCPConnectionError']['UNAUTHORIZED']:return'mcpStatus.unauthorized';case _0x23c1f9[_0x4a7865(0x86)][_0x4a7865(0x1e3)]:return _0x4a7865(0xf6);case _0x23c1f9[_0x4a7865(0x86)]['NETWORK_ERROR']:return _0x4a7865(0x197);case _0x23c1f9[_0x4a7865(0x86)]['MAX_RETRIES_EXCEEDED']:return _0x4a7865(0x17d);default:return _0x4a7865(0x1fb);}case _0x23c1f9[_0x4a7865(0xee)][_0x4a7865(0x10f)]:return _0x4a7865(0x11f);default:return _0x4a7865(0x201);}}function _0x30f97b(_0x55d997,_0x259a48,_0x18557f,_0x297a64=!0x0){const _0x76c40b=_0x15014b;let _0x8a6f91=_0x5f0c1c(_0x55d997,_0x259a48),_0x49d18d=_0x18557f['t'](_0x8a6f91);return _0x297a64?_0x55d997===_0x23c1f9[_0x76c40b(0xee)]['DISCONNECTED']&&_0x259a48===_0x23c1f9['MCPConnectionError'][_0x76c40b(0x1e7)]?_0x49d18d+_0x76c40b(0x11d)+_0x18557f['t'](_0x76c40b(0x1bd)):_0x55d997===_0x23c1f9[_0x76c40b(0xee)][_0x76c40b(0x10e)]?''+_0x49d18d:_0x55d997===_0x23c1f9['MCPConnectionStatus']['DISCONNECTED']||_0x55d997===_0x23c1f9['MCPConnectionStatus'][_0x76c40b(0x78)]?_0x49d18d+'\x20-\x20'+_0x18557f['t'](_0x76c40b(0x147)):_0x49d18d:_0x49d18d;}function _0x5579ed(_0x23098b){const _0x5e54fb=_0x15014b;switch(_0x23098b){case _0x23c1f9['MCPConnectionStatus'][_0x5e54fb(0x10e)]:return _0x5e54fb(0xb6);case _0x23c1f9[_0x5e54fb(0xee)][_0x5e54fb(0xe9)]:case _0x23c1f9[_0x5e54fb(0xee)][_0x5e54fb(0x10f)]:return'univer-text-yellow-500';case _0x23c1f9[_0x5e54fb(0xee)][_0x5e54fb(0x78)]:case _0x23c1f9[_0x5e54fb(0xee)]['DISCONNECTED']:return'univer-text-red-500';default:return'univer-text-gray-500';}}function _0x111427(_0x586bf4){const _0xc17d8c=_0x15014b;let {status$:_0x1e8abc,error$:_0x4e50e5,onConfigure:_0x5822dc,showClickable:_0x63d14=!0x0}=_0x586bf4,_0x54f972=(0x0,_0x5b1179[_0xc17d8c(0x16a)])(_0x1e8abc,_0x23c1f9[_0xc17d8c(0xee)][_0xc17d8c(0x1ab)]),_0x242d95=(0x0,_0x5b1179[_0xc17d8c(0x16a)])(_0x4e50e5,_0x23c1f9[_0xc17d8c(0x86)][_0xc17d8c(0x17c)]),_0x5cdc5b=(0x0,_0x5b1179[_0xc17d8c(0x8f)])(_0x13cad6[_0xc17d8c(0x1e9)]),_0x5c756d=_0x54f972===_0x23c1f9[_0xc17d8c(0xee)][_0xc17d8c(0x10e)];_0x54f972===_0x23c1f9[_0xc17d8c(0xee)][_0xc17d8c(0xe9)]||_0x23c1f9['MCPConnectionStatus'][_0xc17d8c(0x10f)];let _0x1292d5=_0x5cdc5b['t'](_0x5f0c1c(_0x54f972,_0x242d95)),_0x2ee9af=_0x30f97b(_0x54f972,_0x242d95,_0x5cdc5b,_0x63d14),_0x372083=_0x5579ed(_0x54f972),_0x2ddc5a=_0x5c756d?(0x0,_0x23712e[_0xc17d8c(0x1f0)])(_0x252d3d,{}):(0x0,_0x23712e[_0xc17d8c(0x1f0)])(_0x5099b1,{}),_0x2d244f=(0x0,_0x557e69['useCallback'])(()=>{_0x63d14&&_0x5822dc&&_0x5822dc();},[_0x63d14,_0x5822dc]);function _0x103ced(){const _0x35944c=_0xc17d8c;return(0x0,_0x23712e[_0x35944c(0x168)])('div',{'className':(0x0,_0x4ee172['clsx'])(_0x35944c(0x122),_0x63d14&&_0x5822dc&&_0x35944c(0x173)),'role':_0x35944c(0x92),'onClick':_0x63d14&&_0x5822dc?_0x2d244f:void 0x0,'children':[(0x0,_0x23712e[_0x35944c(0x1f0)])(_0x35944c(0x1f8),{'className':(0x0,_0x4ee172[_0x35944c(0x14e)])(_0x35944c(0x1ca),_0x372083),'children':_0x2ddc5a}),(0x0,_0x23712e[_0x35944c(0x1f0)])(_0x35944c(0x1f8),{'className':_0x35944c(0x184),'children':_0x1292d5})]});}return(0x0,_0x23712e[_0xc17d8c(0x1f0)])(_0x4ee172[_0xc17d8c(0x7c)],{'title':_0x2ee9af,'placement':_0xc17d8c(0xad),'children':_0x103ced()});}let _0x2c51ca=class extends _0x13cad6[_0x15014b(0x113)]{constructor(_0x3a9bda,_0x435d64,_0x142970,_0x156a5f){const _0x5d2c14=_0x15014b;super(),this[_0x5d2c14(0x15a)]=_0x3a9bda,this['_connectionController']=_0x435d64,this[_0x5d2c14(0x71)]=_0x142970,this[_0x5d2c14(0xd6)]=_0x156a5f,this['_initAutoConnect'](),this[_0x5d2c14(0x1fc)]();}['_initAutoConnect'](){const _0x3fa45e=_0x15014b;let _0x31b8a5=this[_0x3fa45e(0xd6)][_0x3fa45e(0x77)](_0x14a9a6);_0x31b8a5!=null&&_0x31b8a5['showDeveloperTools']&&(this['_connectionController'][_0x3fa45e(0xdb)]=!0x1);}['_initStatusComponent'](){const _0x8cdc9e=_0x15014b;let _0x43b74f=this[_0x8cdc9e(0xd6)]['getConfig'](_0x14a9a6);(_0x43b74f==null?void 0x0:_0x43b74f['showStatus'])!==!0x1&&this[_0x8cdc9e(0x9f)](this[_0x8cdc9e(0x71)][_0x8cdc9e(0x87)](_0x5b1179['BuiltInUIPart'][_0x8cdc9e(0x1f2)],()=>{const _0x5e3e79=_0x8cdc9e;var _0x3bf2e4;return(0x0,_0x5b1179[_0x5e3e79(0x19a)])(_0x3630b2({'status$':this[_0x5e3e79(0xf5)][_0x5e3e79(0x1aa)],'error$':this[_0x5e3e79(0xf5)][_0x5e3e79(0xf3)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x3bf2e4=_0x43b74f==null?void 0x0:_0x43b74f['showDeveloperTools'])==null?!0x1:_0x3bf2e4}),this[_0x5e3e79(0x15a)]);}));}[_0x15014b(0x9d)](){const _0x4f9e7d=_0x15014b;this[_0x4f9e7d(0x15a)][_0x4f9e7d(0xa9)](_0x5ea3d0)[_0x4f9e7d(0x195)]();}};_0x2c51ca=_0x1852b0([_0x4df38f(0x0,(0x0,_0x13cad6[_0x15014b(0x109)])(_0x13cad6[_0x15014b(0xfa)])),_0x4df38f(0x1,(0x0,_0x13cad6[_0x15014b(0x109)])(_0x23c1f9[_0x15014b(0x155)])),_0x4df38f(0x2,_0x5b1179[_0x15014b(0xf7)]),_0x4df38f(0x3,_0x13cad6[_0x15014b(0x1d0)])],_0x2c51ca);function _0x3630b2(_0x899e50){let {status$:_0x3f9774,error$:_0x2fee63,onConfigure:_0x5028e0,showClickable:_0x102d00}=_0x899e50;return function(){return(0x0,_0x23712e['jsx'])(_0x111427,{'status$':_0x3f9774,'error$':_0x2fee63,'onConfigure':_0x5028e0,'showClickable':_0x102d00});};}function _0x13b7eb(_0xa5e12a){const _0x213e96=_0x15014b;return{'id':_0x5eeebf['id'],'type':_0x5b1179[_0x213e96(0x16c)][_0x213e96(0xfb)],'icon':_0x213e96(0x196),'title':_0x213e96(0xdc),'tooltip':_0x213e96(0xdc)};}let _0x47e285={[_0x5b1179[_0x15014b(0xb8)][_0x15014b(0xa7)]]:{[_0x5eeebf['id']]:{'order':0xa,'menuItemFactory':_0x13b7eb}}},_0x17eac9=class extends _0x13cad6['Disposable']{constructor(_0x5e5ae0,_0x1d436a){const _0x28380f=_0x15014b;super(),this[_0x28380f(0xb1)]=_0x5e5ae0,this['_menuManagerService']=_0x1d436a,this[_0x28380f(0x180)](),this[_0x28380f(0x1c3)]();}[_0x15014b(0x180)](){const _0x3c0ebd=_0x15014b;[_0x5eeebf][_0x3c0ebd(0x150)](_0x2a6858=>{const _0x508984=_0x3c0ebd;this[_0x508984(0x9f)](this['_commandService'][_0x508984(0xcc)](_0x2a6858));});}['_initializeMenus'](){const _0x7ce5de=_0x15014b;this[_0x7ce5de(0xd0)][_0x7ce5de(0x106)](_0x47e285);}};_0x17eac9=_0x1852b0([_0x4df38f(0x0,_0x13cad6[_0x15014b(0x1e1)]),_0x4df38f(0x1,_0x5b1179[_0x15014b(0x188)])],_0x17eac9);let _0x49d299={'mcpStatus':{'disconnected':_0x15014b(0x1c2),'connecting':'MCP\x20Connecting...','connected':_0x15014b(0x1f1),'failed':_0x15014b(0xa3),'retrying':'MCP\x20Retrying...','unknown':_0x15014b(0xed),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x15014b(0x1d9),'maxRetriesExceeded':_0x15014b(0x14d),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x15014b(0x160)},'mcpConfig':{'title':_0x15014b(0xa4),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x15014b(0x15c),'apiKeyHint':_0x15014b(0x13a),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x15014b(0xd5),'connectionInfo':_0x15014b(0x89),'mcpClientConfig':_0x15014b(0x89),'configInstructions':_0x15014b(0x95),'configStepTitle':_0x15014b(0x1d7),'configStep1':_0x15014b(0x1ed),'configStep2':_0x15014b(0x1dc),'configStep3':_0x15014b(0x105),'sessionId':_0x15014b(0x192),'sessionIdDescription':_0x15014b(0x15b),'authorizationDescription':_0x15014b(0x97),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x15014b(0x1a2),'save':'Save\x20Configuration','saving':_0x15014b(0x1c9),'note1':_0x15014b(0x1ff),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x15014b(0x128),'configError':_0x15014b(0xf4),'apiApplyInfo':{'title':_0x15014b(0x194),'description':_0x15014b(0x166),'univerAiLabel':_0x15014b(0x1b7),'getStarted':_0x15014b(0x1bb)},'validation':{'apiKeyRequired':_0x15014b(0x177),'apiKeyTooShort':_0x15014b(0x100),'invalidConfig':_0x15014b(0xf8),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x15014b(0x8a),'failed':_0x15014b(0xaa),'retrying':_0x15014b(0x164)},'connectionError':{'unauthorized':_0x15014b(0x7f),'sessionOccupied':_0x15014b(0x182),'networkError':_0x15014b(0x1ad),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},_0x134e7e={'mcpStatus':{'disconnected':_0x15014b(0xd7),'connecting':'MCP\x20连接中...','connected':_0x15014b(0x199),'failed':'MCP\x20连接失败','retrying':_0x15014b(0x1a4),'unknown':_0x15014b(0x186),'unauthorized':_0x15014b(0x110),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x15014b(0xc7),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x15014b(0x1ba),'clickToConfigure':_0x15014b(0x1a8)},'mcpConfig':{'title':_0x15014b(0xa5),'description':_0x15014b(0xe8),'apiKey':_0x15014b(0x178),'apiKeyPlaceholder':_0x15014b(0x1d2),'apiKeyHint':_0x15014b(0x187),'enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x15014b(0x1d3),'configInstructions':_0x15014b(0x9b),'configStepTitle':_0x15014b(0x151),'configStep1':_0x15014b(0x174),'configStep2':_0x15014b(0xd9),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x15014b(0x143),'sessionIdDescription':_0x15014b(0x18a),'authorizationDescription':_0x15014b(0x73),'configParameters':_0x15014b(0x1a5),'maxRetries':_0x15014b(0x157),'save':_0x15014b(0x1c5),'saving':_0x15014b(0xd2),'note1':_0x15014b(0xf2),'note2':_0x15014b(0x153),'configSaved':'配置保存成功','configError':_0x15014b(0x101),'apiApplyInfo':{'title':_0x15014b(0x1d8),'description':_0x15014b(0x191),'univerAiLabel':_0x15014b(0xa6),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x15014b(0xea),'invalidConfig':_0x15014b(0xa8),'invalidApiKey':_0x15014b(0x1d5)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x15014b(0x124),'failed':'连接失败','retrying':_0x15014b(0x146)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x15014b(0xe2),'networkError':_0x15014b(0x149),'maxRetriesExceeded':_0x15014b(0x7e)}}};var _0x1c51f1=_0x15014b(0x1ec),_0x12fc1c=_0x15014b(0x1fe);let _0x229321=class extends _0x13cad6['Plugin']{constructor(_0x4c58a1=_0x16265d,_0x2c803e,_0x35b374,_0x1fa006,_0x1ec19c,_0x47843d){const _0x14a38c=_0x15014b;super(),this[_0x14a38c(0x16f)]=_0x4c58a1,this[_0x14a38c(0x15a)]=_0x2c803e,this[_0x14a38c(0xd6)]=_0x35b374,this['_uiPartsService']=_0x1fa006,this[_0x14a38c(0x112)]=_0x1ec19c,this[_0x14a38c(0x1f7)]=_0x47843d;let {..._0x883824}=(0x0,_0x13cad6['merge'])({},_0x16265d,this[_0x14a38c(0x16f)]);this[_0x14a38c(0xd6)][_0x14a38c(0x1cf)](_0x14a9a6,_0x883824);}async[_0x15014b(0x1e0)](){const _0x4cf826=_0x15014b;let _0x514571=[[_0x2c51ca],[_0x5ea3d0],[_0x17eac9]];this[_0x4cf826(0x15a)]['has'](_0x11d426[_0x4cf826(0xb5)])||_0x514571['push']([_0x11d426[_0x4cf826(0xb5)],{'useClass':_0x11d426[_0x4cf826(0xbc)]}]),_0x514571[_0x4cf826(0x150)](_0x5dcd8d=>this[_0x4cf826(0x15a)][_0x4cf826(0x1d4)](_0x5dcd8d)),this[_0x4cf826(0x15a)][_0x4cf826(0xa9)](_0x2c51ca),this[_0x4cf826(0x15a)]['get'](_0x5ea3d0),this[_0x4cf826(0x15a)][_0x4cf826(0xa9)](_0x17eac9);}};_0x407c35(_0x229321,_0x15014b(0xe7),_0x15014b(0x139)),_0x407c35(_0x229321,_0x15014b(0x1bf),_0x1c51f1),_0x407c35(_0x229321,_0x15014b(0xa1),_0x12fc1c),_0x229321=_0x1852b0([(0x0,_0x13cad6[_0x15014b(0x1ee)])(_0x23c1f9[_0x15014b(0x1ae)]),_0x4df38f(0x1,(0x0,_0x13cad6['Inject'])(_0x13cad6[_0x15014b(0xfa)])),_0x4df38f(0x2,_0x13cad6[_0x15014b(0x1d0)]),_0x4df38f(0x3,_0x5b1179[_0x15014b(0xf7)]),_0x4df38f(0x4,_0x13cad6[_0x15014b(0x1dd)]),_0x4df38f(0x5,(0x0,_0x13cad6[_0x15014b(0x109)])(_0x13cad6[_0x15014b(0x1e9)]))],_0x229321),_0x5eb436['MCPConfigPanel']=_0x13569d,Object[_0x15014b(0x1a1)](_0x5eb436,_0x15014b(0x11a),{'enumerable':!0x0,'get':function(){return _0x5ea3d0;}}),Object[_0x15014b(0x1a1)](_0x5eb436,_0x15014b(0x1b2),{'enumerable':!0x0,'get':function(){return _0x2c51ca;}}),_0x5eb436[_0x15014b(0x169)]=_0x111427,Object['defineProperty'](_0x5eb436,'MCPUIMenuController',{'enumerable':!0x0,'get':function(){return _0x17eac9;}}),_0x5eb436[_0x15014b(0x117)]=_0x5eeebf,Object[_0x15014b(0x1a1)](_0x5eb436,_0x15014b(0x138),{'enumerable':!0x0,'get':function(){return _0x229321;}}),_0x5eb436[_0x15014b(0x161)]=_0x49d299,_0x5eb436['zhCN']=_0x134e7e;}));function _0x661d(_0x36bf61,_0x51ccc6){_0x36bf61=_0x36bf61-0x71;const _0x42fd11=_0x42fd();let _0x661d10=_0x42fd11[_0x36bf61];return _0x661d10;}function _0x42fd(){const _0x2c33ab=['_componentManager','@univerjs/ui','Univer\x20AI\x20Console','UniverUi','close-icon','点击连接\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','tag','mcpStatus.clickToConfigure','subscribe','packageName','univer_session_id:','mcpConfig.validation.apiKeyRequired','MCP\x20Disconnected','_initializeMenus','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','保存配置','http','univer-text-blue-600','mcpConfig.connectionError.sessionOccupied','Saving...','univer-mr-2\x20univer-flex\x20univer-text-xl','open','stringify','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','currentColor','setConfig','IConfigService','41252MCmIdo','请输入您的\x20API\x20密钥','MCP\x20客户端配置','add','API\x20密钥无效,请检查密钥是否正确','svg','Configuration\x20Steps:','什么是\x20API\x20密钥?','MCP:\x20Network\x20Error','toPrimitive','default','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','ILocalStorageService','mcpConfig.configError','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','onStarting','ICommandService','amd','SESSION_ID_OCCUPIED','univer-space-y-5','mcpConfig.connectionError.networkError','@univerjs/design','UNAUTHORIZED','1097636wzbRyx','LocaleService','object','mcpConfig.apiApplyInfo.getStarted','@univerjs-pro/mcp-ui','Copy\x20the\x20JSON\x20configuration\x20below','DependentOn','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','jsx','MCP\x20Connected','HEADER_MENU','show','mcpStatus.connected','_mcpConnectionController','url(#off-line-icon_clip0_910_343)','_localeService','div','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','M0\x200H16V16H0z','mcpStatus.failed','_initStatusComponent','attrs','0.22.0','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','on-line-icon_clip0_910_349','mcpStatus.unknown','prototype','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','off-line-icon','_uiPartsService','mcpConfig.connectionStatus.retrying','带有\x20Bearer\x20前缀的\x20API\x20密钥。','isValid','forwardRef','text','getConfig','FAILED','mcpConfig.connectionError.unauthorized','univer-flex-1','label','Tooltip','_loadStoredApiKey','超出最大重试次数,请稍后再试','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','CloseIcon','mcpConfig.connectionStatus.disconnected','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_initConfigSync','MCPConfigPanel','UniverCore','MCPConnectionError','registerComponent','none','MCP\x20Client\x20Configuration','Connected','error','univer-flex\x20univer-items-start\x20univer-gap-3','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.sessionIdDescription','useDependency','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','__setCustomHeaders','button','univer-size-2\x20univer-rounded-full','univer-text-white','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.validation.apiKeyTooShort','API\x20key\x20with\x20Bearer\x20prefix.','mcpConfig.apiApplyInfo.title','toString','18XbBYKv','将以下配置添加到您的\x20MCP\x20客户端设置中:','next','_handleConfigure','mcpConfig.apiKeyPlaceholder','disposeWithMe','rxjs','version','_createConfigPanelComponent','MCP\x20Connection\x20Failed','MCP\x20Configuration','MCP\x20配置','Univer\x20AI\x20控制台','OTHERS','配置无效','get','Connection\x20Failed','https://console.univer.plus','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','bottom','CheckMarkIcon','xlink:href','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_commandService','UniverNetwork','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','off','ISocketService','univer-text-green-500','round','RibbonStartGroup','univer-text-sm\x20univer-text-gray-500','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-flex\x20univer-items-center\x20univer-gap-2','WebSocketService','univer-text-red-500','React','mcpConfig.configSaved','mcpConfig.configParameters','mcpConfig.configInstructions','Authorization:','pre','use','subscribeConfigValue$','IMessageService','MCP:\x20网络错误','mcpConfig.apiApplyInfo.description','colorChannel1','mcpConfig.save','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','registerCommand','getOwnPropertyDescriptor','mcpConfig.configStep2','mcp-config-dialog','_menuManagerService','mask','保存中...','NETWORK_ERROR','length','Enable\x20authentication\x20for\x20secure\x20connections','_configService','MCP\x20已断开','univer-flex\x20univer-gap-3','将配置添加到您的\x20MCP\x20客户端设置文件中','0\x200\x2016\x2016','enableAutoConnect','mcpConfig.title','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','fill','Error','setItem','univer-shrink-0\x20univer-text-blue-500','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.configStep1','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','symbol','clipPath','pluginName','配置\x20MCP\x20使用\x20AI\x20操作电子表格','CONNECTING','API\x20密钥长度至少需要\x2010\x20位','mcp-ui.command.openConfigPanel','function','MCP\x20Unknown\x20Status','MCPConnectionStatus','toStringTag','idSuffix','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','配置更改将立即生效','connectionError$','Failed\x20to\x20save\x20configuration','_connectionController','mcpStatus.sessionOccupied','IUIPartsService','Invalid\x20configuration','trim','Injector','BUTTON','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','@univerjs/network','current','univer-shrink-0\x20univer-text-red-500','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','配置保存失败','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','path','_registerComponent','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mergeMenu','evenodd','6949256JmqHTm','Inject','univer-min-w-0\x20univer-flex-1','defs','IDialogService','mcpConfig.validation.invalidApiKey','CONNECTED','RETRYING','MCP:\x20未授权','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','_localStorageService','Disposable','univerjs-icon\x20univerjs-icon-','_mcpCoreConfig$','exports','OpenMCPConfigPanelCommand','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','MCPConfigUIController','univer-bg-gray-500','1393007QgknVI','\x20-\x20','univer-text-xs\x20univer-text-gray-500','mcpStatus.retrying','substring','univer-font-medium','univer-flex\x20univer-items-center','mcpConfig.connectionStatus.connecting','已连接','univer-space-y-4','mcpStatus.connecting','getItem','Configuration\x20saved\x20successfully','apiKey','univer.ai','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','useState','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','value','constructor','mcpConfig.saving','COMMAND','url(#on-line-icon_clip0_910_349)','sessionId$','displayName','MessageType','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','mcpConfig.apiKey','UniverMCPUIPlugin','MCP_UI_PLUGIN','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-flex\x20univer-items-start\x20univer-gap-2','children','BehaviorSubject','white','Bearer\x20','OffLineIcon','off-line-icon_clip0_910_343','1053390YPxEWe','会话ID','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','重连中...','mcpStatus.clickToConnect','MCP_PLUGIN_CONFIG_KEY','网络连接错误,请检查您的网络连接','univer-space-y-2','mcpStatus.disconnected','9NxtDid','MCP:\x20Max\x20Retries\x20Exceeded','clsx','mcpConfig.configStep3','forEach','配置步骤:','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','您的\x20API\x20密钥安全存储在本地存储中','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCPConnectionController','<API_KEY>','最大重试次数','mcpConfig.apiKeyHint','1em','_injector','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enter\x20your\x20API\x20key','mcpConfig.validation.invalidConfig','OnLineIcon','_dialogService','Click\x20to\x20configure\x20MCP','enUS','_config$','createElement','Retrying...','removeItem','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','span','jsxs','MCPStatusDisplay','useObservable','includes','MenuItemType','_loading$','HelpIcon','_config','UniverProMcp','_messageService','351354fifgiW','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','复制以下\x20JSON\x20配置','replace','mcpConfig.connectionInfo','API\x20key\x20is\x20required','API\x20密钥','mcp.apiKey','univer-flex\x20univer-items-center\x20univer-gap-3','1732555vGujiM','NONE','mcpStatus.maxRetriesExceeded','univer-text-sm\x20univer-font-medium','univer-space-y-3','_initializeCommands','errorMessage','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','string','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','MCP\x20状态未知','您的\x20API\x20密钥将在此浏览器中本地存储','IMenuManagerService','showDeveloperTools','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Input','map','mcpServerUrl','close','react','univer-bg-blue-500','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','Session\x20ID','univer-size-4','What\x20is\x20API\x20Key?','showConfigPanel','MenuIcon','mcpStatus.networkError','https://mcp.univer.ai/mcp/?univer_session_id=','MCP\x20已连接','connectInjector','help-icon','ILogService','_apiKey$','useCallback','univer.plus','decorate','defineProperty','Max\x20Retries','univer-bg-red-500','MCP\x20重连中...','配置参数:','mcpConfig.authorizationDescription','on-line-icon','点击配置\x20MCP','assign','connectionStatus$','DISCONNECTED','warn','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','UniverMCPPlugin','_logService','https://console.univer.ai','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','MCPConnectionUIController','noopener\x20noreferrer','http://www.w3.org/2000/svg'];_0x42fd=function(){return _0x2c33ab;};return _0x42fd();}
|
package/lib/umd/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4ab5(_0x44851f,_0x502168){_0x44851f=_0x44851f-0x113;var _0x4f577b=_0x4f57();var _0x4ab5bc=_0x4f577b[_0x44851f];return _0x4ab5bc;}(function(_0x36b34f,_0x4ef2ba){var _0x3fedc=_0x4ab5,_0x2c5b8b=_0x36b34f();while(!![]){try{var _0x4f3097=-parseInt(_0x3fedc(0x136))/0x1+-parseInt(_0x3fedc(0x118))/0x2+-parseInt(_0x3fedc(0x140))/0x3*(parseInt(_0x3fedc(0x13a))/0x4)+parseInt(_0x3fedc(0x135))/0x5+-parseInt(_0x3fedc(0x128))/0x6*(parseInt(_0x3fedc(0x14b))/0x7)+-parseInt(_0x3fedc(0x11f))/0x8*(-parseInt(_0x3fedc(0x121))/0x9)+-parseInt(_0x3fedc(0x12d))/0xa*(-parseInt(_0x3fedc(0x11e))/0xb);if(_0x4f3097===_0x4ef2ba)break;else _0x2c5b8b['push'](_0x2c5b8b['shift']());}catch(_0x52912c){_0x2c5b8b['push'](_0x2c5b8b['shift']());}}}(_0x4f57,0xafe7c),function(_0x1c4275,_0x1d51a3){var _0x426338=_0x4ab5;typeof exports==_0x426338(0x13b)&&typeof module<'u'?module[_0x426338(0x127)]=_0x1d51a3():typeof define==_0x426338(0x129)&&define['amd']?define([],_0x1d51a3):(_0x1c4275=typeof globalThis<'u'?globalThis:_0x1c4275||self,_0x1c4275[_0x426338(0x145)]=_0x1d51a3());}(this,function(){var _0x40cac8=_0x4ab5;return{'mcpStatus':{'disconnected':_0x40cac8(0x11c),'connecting':_0x40cac8(0x116),'connected':'MCP\x20Connected','failed':_0x40cac8(0x11b),'retrying':_0x40cac8(0x124),'unknown':_0x40cac8(0x12e),'unauthorized':_0x40cac8(0x139),'sessionOccupied':_0x40cac8(0x148),'networkError':_0x40cac8(0x12b),'maxRetriesExceeded':_0x40cac8(0x12f),'clickToConnect':_0x40cac8(0x114),'clickToConfigure':_0x40cac8(0x13e)},'mcpConfig':{'title':_0x40cac8(0x14c),'description':_0x40cac8(0x115),'apiKey':_0x40cac8(0x134),'apiKeyPlaceholder':_0x40cac8(0x12c),'apiKeyHint':_0x40cac8(0x13c),'enableAuth':_0x40cac8(0x12a),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x40cac8(0x137),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x40cac8(0x13f),'configStepTitle':_0x40cac8(0x14a),'configStep1':_0x40cac8(0x117),'configStep2':_0x40cac8(0x138),'configStep3':_0x40cac8(0x132),'sessionId':'Session\x20ID','sessionIdDescription':_0x40cac8(0x123),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x40cac8(0x141),'maxRetries':_0x40cac8(0x122),'save':_0x40cac8(0x144),'saving':_0x40cac8(0x125),'note1':_0x40cac8(0x131),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x40cac8(0x147),'configError':_0x40cac8(0x133),'apiApplyInfo':{'title':_0x40cac8(0x130),'description':_0x40cac8(0x142),'univerAiLabel':_0x40cac8(0x120),'getStarted':_0x40cac8(0x126)},'validation':{'apiKeyRequired':_0x40cac8(0x149),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x40cac8(0x119),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x40cac8(0x146),'connecting':'Connecting...','connected':'Connected','failed':_0x40cac8(0x11d),'retrying':_0x40cac8(0x113)},'connectionError':{'unauthorized':_0x40cac8(0x13d),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x40cac8(0x11a),'maxRetriesExceeded':_0x40cac8(0x143)}}};}));function _0x4f57(){var _0x11650c=['Enter\x20your\x20API\x20key','448870yuImeA','MCP\x20Unknown\x20Status','MCP:\x20Max\x20Retries\x20Exceeded','What\x20is\x20API\x20Key?','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Failed\x20to\x20save\x20configuration','API\x20Key','1398930DDNjPj','654364llOice','MCP\x20Client\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Unauthorized','204tWRnXD','object','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','71037OEoSPI','Configuration\x20Parameters:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Save\x20Configuration','UniverProMcpUiCaES','Disconnected','Configuration\x20saved\x20successfully','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20is\x20required','Configuration\x20Steps:','150696mgdnLO','MCP\x20Configuration','Retrying...','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','2000098CdiKnP','Invalid\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connection\x20Failed','MCP\x20Disconnected','Connection\x20Failed','803siEQAO','1144YTPUpk','Univer\x20AI\x20Console','4347kCUCjs','Max\x20Retries','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','Saving...','Get\x20your\x20API\x20key\x20in\x20seconds','exports','12uOJNVN','function','Enable\x20Authentication','MCP:\x20Network\x20Error'];_0x4f57=function(){return _0x11650c;};return _0x4f57();}
|