@univerjs-pro/mcp-ui 0.15.0-insiders.20260110-48b77c8 → 0.15.1-insiders.20260117-8ce4a01
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/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/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/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/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x1d55(_0x43e8bd,_0x458a03){_0x43e8bd=_0x43e8bd-0x84;const _0x5902d7=_0x5902();let _0x1d5546=_0x5902d7[_0x43e8bd];return _0x1d5546;}const _0x1bc399=_0x1d55;(function(_0x2b6e98,_0x5abe3f){const _0x51229c=_0x1d55,_0x4ea17f=_0x2b6e98();while(!![]){try{const _0x374649=parseInt(_0x51229c(0x87))/0x1+-parseInt(_0x51229c(0x8e))/0x2+parseInt(_0x51229c(0x99))/0x3+parseInt(_0x51229c(0x8a))/0x4*(parseInt(_0x51229c(0xaf))/0x5)+-parseInt(_0x51229c(0x89))/0x6+-parseInt(_0x51229c(0xb7))/0x7*(parseInt(_0x51229c(0x92))/0x8)+parseInt(_0x51229c(0x9b))/0x9;if(_0x374649===_0x5abe3f)break;else _0x4ea17f['push'](_0x4ea17f['shift']());}catch(_0x500a57){_0x4ea17f['push'](_0x4ea17f['shift']());}}}(_0x5902,0x52e6d));const e={'mcpStatus':{'disconnected':_0x1bc399(0x88),'connecting':'MCP\x20연결\x20중...','connected':_0x1bc399(0xb8),'failed':_0x1bc399(0xa8),'retrying':_0x1bc399(0x98),'unknown':_0x1bc399(0xba),'unauthorized':'MCP:\x20인증되지\x20않음','sessionOccupied':_0x1bc399(0xa2),'networkError':_0x1bc399(0x93),'maxRetriesExceeded':_0x1bc399(0xb3),'clickToConnect':_0x1bc399(0xa1),'clickToConfigure':_0x1bc399(0x95)},'mcpConfig':{'title':'MCP\x20설정','description':'AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','apiKey':_0x1bc399(0xae),'apiKeyPlaceholder':_0x1bc399(0x8b),'apiKeyHint':_0x1bc399(0xab),'enableAuth':_0x1bc399(0xb2),'enableAuthHint':'보안\x20연결을\x20위해\x20인증\x20활성화','connectionInfo':'MCP\x20클라이언트\x20설정','mcpClientConfig':_0x1bc399(0xad),'configInstructions':_0x1bc399(0xb4),'configStepTitle':_0x1bc399(0x91),'configStep1':_0x1bc399(0xb6),'configStep2':_0x1bc399(0xb5),'configStep3':_0x1bc399(0x9d),'sessionId':_0x1bc399(0xaa),'sessionIdDescription':_0x1bc399(0x97),'authorizationDescription':_0x1bc399(0x94),'configParameters':_0x1bc399(0xb9),'maxRetries':'최대\x20재시도\x20횟수','save':_0x1bc399(0x96),'saving':_0x1bc399(0x86),'note1':'설정\x20변경\x20사항은\x20즉시\x20적용됩니다','note2':_0x1bc399(0xa5),'configSaved':_0x1bc399(0x90),'configError':_0x1bc399(0xa9),'apiApplyInfo':{'title':_0x1bc399(0x8d),'description':_0x1bc399(0xa0),'univerAiLabel':_0x1bc399(0xac),'getStarted':_0x1bc399(0x9a)},'validation':{'apiKeyRequired':_0x1bc399(0x84),'apiKeyTooShort':'API\x20키는\x2010자\x20이상이어야\x20합니다','invalidConfig':_0x1bc399(0x85),'invalidApiKey':_0x1bc399(0x8c)},'connectionStatus':{'disconnected':_0x1bc399(0xa4),'connecting':_0x1bc399(0x9f),'connected':_0x1bc399(0x8f),'failed':_0x1bc399(0xa3),'retrying':_0x1bc399(0xb1)},'connectionError':{'unauthorized':_0x1bc399(0x9e),'sessionOccupied':_0x1bc399(0xb0),'networkError':_0x1bc399(0xa7),'maxRetriesExceeded':_0x1bc399(0xa6)}}};function _0x5902(){const _0x4b4717=['1354720dRYckQ','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','재시도\x20중...','인증\x20활성화','MCP:\x20최대\x20재시도\x20횟수\x20초과','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','아래\x20JSON\x20설정\x20복사','483455rJnTFE','MCP\x20연결됨','설정\x20매개변수:','MCP\x20알\x20수\x20없는\x20상태','API\x20키는\x20필수입니다','유효하지\x20않은\x20설정','저장\x20중...','525605NfzIYh','MCP\x20연결\x20끊김','3719478KRCMLU','4qbKOoN','API\x20키를\x20입력하세요','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','API\x20키란\x20무엇인가요?','645348nCJRnZ','연결됨','설정이\x20성공적으로\x20저장되었습니다','설정\x20단계:','56RoIfwQ','MCP:\x20네트워크\x20오류','Bearer\x20접두사가\x20있는\x20API\x20키.','클릭하여\x20MCP\x20설정','설정\x20저장','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','MCP\x20재시도\x20중...','357585VWsezT','몇\x20초\x20만에\x20API\x20키\x20발급받기','7648767qDiKnr','exports','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','인증\x20실패.\x20API\x20키를\x20확인하세요','연결\x20중...','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','클릭하여\x20MCP\x20연결','MCP:\x20세션\x20ID\x20사용\x20중','연결\x20실패','연결\x20끊김','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','MCP\x20연결\x20실패','설정\x20저장\x20실패','세션\x20ID','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','Univer\x20AI\x20콘솔','MCP\x20클라이언트\x20설정','API\x20키'];_0x5902=function(){return _0x4b4717;};return _0x5902();}module[_0x1bc399(0x9c)]=e;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x29f041=_0x12bf;function _0x2d0b(){const _0xe41ffb=['12lWSkWO','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20saved\x20successfully','3201270MKlQnJ','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20connect\x20MCP','428792gFgvqM','Failed\x20to\x20save\x20configuration','exports','4124435CljRCA','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20configure\x20MCP','Retrying...','Saving...','Invalid\x20configuration','2JHaijo','MCP\x20Unknown\x20Status','API\x20Key','1998940OORAZP','MCP:\x20Network\x20Error','MCP\x20Connected','Configuration\x20Parameters:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connection\x20Failed','MCP:\x20Unauthorized','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session\x20ID','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Save\x20Configuration','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Retrying...','558100FCnTCr','MCP:\x20Session\x20ID\x20Occupied','What\x20is\x20API\x20Key?','9qTtEJJ','MCP\x20Connecting...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Configuration','Max\x20Retries','Configuration\x20Steps:','Univer\x20AI\x20Console','Connected','9303bPORdH','3525752HloJTI','Connection\x20Failed'];_0x2d0b=function(){return _0xe41ffb;};return _0x2d0b();}(function(_0x14134f,_0x34b5e5){const _0x157b9c=_0x12bf,_0x326342=_0x14134f();while(!![]){try{const _0x20fa10=parseInt(_0x157b9c(0x1f6))/0x1*(-parseInt(_0x157b9c(0x209))/0x2)+-parseInt(_0x157b9c(0x1f9))/0x3*(parseInt(_0x157b9c(0x200))/0x4)+parseInt(_0x157b9c(0x20c))/0x5+-parseInt(_0x157b9c(0x1fd))/0x6+parseInt(_0x157b9c(0x203))/0x7+parseInt(_0x157b9c(0x1f7))/0x8*(parseInt(_0x157b9c(0x1ee))/0x9)+-parseInt(_0x157b9c(0x1eb))/0xa;if(_0x20fa10===_0x34b5e5)break;else _0x326342['push'](_0x326342['shift']());}catch(_0x479a7b){_0x326342['push'](_0x326342['shift']());}}}(_0x2d0b,0x62356));function _0x12bf(_0x45d8a6,_0x55014f){_0x45d8a6=_0x45d8a6-0x1e2;const _0x2d0b46=_0x2d0b();let _0x12bf9d=_0x2d0b46[_0x45d8a6];return _0x12bf9d;}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x29f041(0x1ef),'connected':_0x29f041(0x20e),'failed':_0x29f041(0x212),'retrying':_0x29f041(0x1ea),'unknown':_0x29f041(0x20a),'unauthorized':_0x29f041(0x213),'sessionOccupied':_0x29f041(0x1ec),'networkError':_0x29f041(0x20d),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x29f041(0x1ff),'clickToConfigure':_0x29f041(0x205)},'mcpConfig':{'title':_0x29f041(0x1f1),'description':_0x29f041(0x1e2),'apiKey':_0x29f041(0x20b),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x29f041(0x1e8),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x29f041(0x1e9),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x29f041(0x1e7),'configInstructions':_0x29f041(0x1fb),'configStepTitle':_0x29f041(0x1f3),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x29f041(0x1f0),'configStep3':_0x29f041(0x214),'sessionId':_0x29f041(0x1e4),'sessionIdDescription':_0x29f041(0x211),'authorizationDescription':_0x29f041(0x204),'configParameters':_0x29f041(0x20f),'maxRetries':_0x29f041(0x1f2),'save':_0x29f041(0x1e6),'saving':_0x29f041(0x207),'note1':_0x29f041(0x1fa),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x29f041(0x1fc),'configError':_0x29f041(0x201),'apiApplyInfo':{'title':_0x29f041(0x1ed),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x29f041(0x1f4),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x29f041(0x1e3),'invalidConfig':_0x29f041(0x208),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x29f041(0x1f5),'failed':_0x29f041(0x1f8),'retrying':_0x29f041(0x206)},'connectionError':{'unauthorized':_0x29f041(0x1fe),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x29f041(0x210),'maxRetriesExceeded':_0x29f041(0x1e5)}}},n=e;module[_0x29f041(0x202)]=n;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x47c5e6=_0x1c86;function _0xa409(){const _0x1ef587=['1174401CIOuWz','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Đã\x20kết\x20nối','5722VTLkNm','4832060OLbZik','Lưu\x20cấu\x20hình\x20thất\x20bại','Cấu\x20hình\x20không\x20hợp\x20lệ','Đang\x20thử\x20lại...','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Nhấp\x20để\x20kết\x20nối\x20MCP','MCP\x20Đã\x20ngắt\x20kết\x20nối','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Nhập\x20khóa\x20API\x20của\x20bạn','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','Đã\x20ngắt\x20kết\x20nối','Đị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.','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','762510VGnZyJ','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.','ID\x20phiên','327UvQGND','Cấu\x20hình\x20máy\x20khách\x20MCP','16020KliZiu','8tzehoC','Cấu\x20hình\x20MCP','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Khóa\x20API','Đang\x20kết\x20nối...','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','1658360qcIODK','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','Bảng\x20điều\x20khiển\x20Univer\x20AI','258246iBtDsm','MCP:\x20Không\x20được\x20phép','Yêu\x20cầu\x20khóa\x20API','Khóa\x20API\x20là\x20gì?','Bật\x20xác\x20thực','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Tham\x20số\x20cấu\x20hình:','Đang\x20lưu...','Nhấp\x20để\x20cấu\x20hình\x20MCP','Các\x20bước\x20cấu\x20hình:','270BieZwg','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','MCP\x20Đã\x20kết\x20nối','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau'];_0xa409=function(){return _0x1ef587;};return _0xa409();}function _0x1c86(_0x332e99,_0x5d4dfc){_0x332e99=_0x332e99-0x14f;const _0xa4099d=_0xa409();let _0x1c860e=_0xa4099d[_0x332e99];return _0x1c860e;}(function(_0x57eaf3,_0x452789){const _0x3c0f7f=_0x1c86,_0x136700=_0x57eaf3();while(!![]){try{const _0x29b35a=-parseInt(_0x3c0f7f(0x150))/0x1+-parseInt(_0x3c0f7f(0x162))/0x2*(-parseInt(_0x3c0f7f(0x175))/0x3)+-parseInt(_0x3c0f7f(0x182))/0x4+-parseInt(_0x3c0f7f(0x15a))/0x5*(-parseInt(_0x3c0f7f(0x177))/0x6)+-parseInt(_0x3c0f7f(0x172))/0x7*(-parseInt(_0x3c0f7f(0x178))/0x8)+-parseInt(_0x3c0f7f(0x15e))/0x9+parseInt(_0x3c0f7f(0x163))/0xa;if(_0x29b35a===_0x452789)break;else _0x136700['push'](_0x136700['shift']());}catch(_0x197054){_0x136700['push'](_0x136700['shift']());}}}(_0xa409,0x3bc68));const n={'mcpStatus':{'disconnected':_0x47c5e6(0x169),'connecting':'MCP\x20Đang\x20kết\x20nối...','connected':_0x47c5e6(0x15c),'failed':'MCP\x20Kết\x20nối\x20thất\x20bại','retrying':'MCP\x20Đang\x20thử\x20lại...','unknown':_0x47c5e6(0x167),'unauthorized':_0x47c5e6(0x151),'sessionOccupied':_0x47c5e6(0x16c),'networkError':'MCP:\x20Lỗi\x20mạng','maxRetriesExceeded':_0x47c5e6(0x17c),'clickToConnect':_0x47c5e6(0x168),'clickToConfigure':_0x47c5e6(0x158)},'mcpConfig':{'title':_0x47c5e6(0x179),'description':_0x47c5e6(0x15f),'apiKey':_0x47c5e6(0x17d),'apiKeyPlaceholder':_0x47c5e6(0x16b),'apiKeyHint':_0x47c5e6(0x181),'enableAuth':_0x47c5e6(0x154),'enableAuthHint':_0x47c5e6(0x15b),'connectionInfo':'Cấu\x20hình\x20máy\x20khách\x20MCP','mcpClientConfig':_0x47c5e6(0x176),'configInstructions':_0x47c5e6(0x180),'configStepTitle':_0x47c5e6(0x159),'configStep1':_0x47c5e6(0x183),'configStep2':_0x47c5e6(0x170),'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':_0x47c5e6(0x174),'sessionIdDescription':_0x47c5e6(0x16e),'authorizationDescription':_0x47c5e6(0x160),'configParameters':_0x47c5e6(0x156),'maxRetries':'Số\x20lần\x20thử\x20lại\x20tối\x20đa','save':'Lưu\x20cấu\x20hình','saving':_0x47c5e6(0x157),'note1':'Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','note2':_0x47c5e6(0x171),'configSaved':'Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','configError':_0x47c5e6(0x164),'apiApplyInfo':{'title':_0x47c5e6(0x153),'description':_0x47c5e6(0x173),'univerAiLabel':_0x47c5e6(0x14f),'getStarted':_0x47c5e6(0x155)},'validation':{'apiKeyRequired':_0x47c5e6(0x152),'apiKeyTooShort':_0x47c5e6(0x16a),'invalidConfig':_0x47c5e6(0x165),'invalidApiKey':_0x47c5e6(0x17a)},'connectionStatus':{'disconnected':_0x47c5e6(0x16d),'connecting':_0x47c5e6(0x17e),'connected':_0x47c5e6(0x161),'failed':'Kết\x20nối\x20thất\x20bại','retrying':_0x47c5e6(0x166)},'connectionError':{'unauthorized':_0x47c5e6(0x17b),'sessionOccupied':_0x47c5e6(0x16f),'networkError':_0x47c5e6(0x17f),'maxRetriesExceeded':_0x47c5e6(0x15d)}}};module['exports']=n;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x2404a9=_0x22ee;(function(_0x340b74,_0x16efed){const _0x285069=_0x22ee,_0x1d866c=_0x340b74();while(!![]){try{const _0x381c7c=-parseInt(_0x285069(0x6c))/0x1+parseInt(_0x285069(0x6d))/0x2*(parseInt(_0x285069(0x7f))/0x3)+parseInt(_0x285069(0x9b))/0x4*(parseInt(_0x285069(0x78))/0x5)+-parseInt(_0x285069(0x71))/0x6+-parseInt(_0x285069(0x73))/0x7*(parseInt(_0x285069(0x74))/0x8)+parseInt(_0x285069(0x75))/0x9*(parseInt(_0x285069(0x9c))/0xa)+-parseInt(_0x285069(0x82))/0xb*(parseInt(_0x285069(0x6f))/0xc);if(_0x381c7c===_0x16efed)break;else _0x1d866c['push'](_0x1d866c['shift']());}catch(_0x5eaf66){_0x1d866c['push'](_0x1d866c['shift']());}}}(_0x45ab,0x21e87));function _0x45ab(){const _0x5847ad=['API\x20密钥不能为空','MCP:\x20未授权','保存配置','MCP\x20客户端配置','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','会话\x20ID\x20已被占用,请稍后再试','请输入您的\x20API\x20密钥','配置保存失败','重启您的\x20MCP\x20客户端以使配置生效','复制以下\x20JSON\x20配置','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP:\x20会话\x20ID\x20已被占用','MCP\x20已连接','权限验证失败,请检查您的\x20API\x20密钥','已连接','什么是\x20API\x20密钥?','exports','最大重试次数','20588KvXOSa','10xYUDIy','MCP\x20已断开','连接失败','MCP\x20配置','配置步骤:','42989IVEmmA','466VKvaBm','MCP\x20重连中...','2592njqxjS','MCP\x20状态未知','754098ILduNy','网络连接错误,请检查您的网络连接','21QrhBrx','235760WwJbeA','866529BkGxNk','将配置添加到您的\x20MCP\x20客户端设置文件中','启用身份验证','235ncycbI','配置更改将立即生效','Univer\x20AI\x20控制台','配置无效','API\x20密钥','点击连接\x20MCP','您的\x20API\x20密钥将在此浏览器中本地存储','2649csSZbM','带有\x20Bearer\x20前缀的\x20API\x20密钥。','连接中...','7535APzNMw','MCP\x20连接失败','会话ID','启用身份验证以获得安全连接','点击配置\x20MCP','将以下配置添加到您的\x20MCP\x20客户端设置中:','保存中...'];_0x45ab=function(){return _0x5847ad;};return _0x45ab();}const e={'mcpStatus':{'disconnected':_0x2404a9(0x9d),'connecting':'MCP\x20连接中...','connected':_0x2404a9(0x95),'failed':_0x2404a9(0x83),'retrying':_0x2404a9(0x6e),'unknown':_0x2404a9(0x70),'unauthorized':_0x2404a9(0x8a),'sessionOccupied':_0x2404a9(0x94),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x2404a9(0x7d),'clickToConfigure':_0x2404a9(0x86)},'mcpConfig':{'title':_0x2404a9(0x9f),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x2404a9(0x7c),'apiKeyPlaceholder':_0x2404a9(0x8f),'apiKeyHint':_0x2404a9(0x7e),'enableAuth':_0x2404a9(0x77),'enableAuthHint':_0x2404a9(0x85),'connectionInfo':_0x2404a9(0x8c),'mcpClientConfig':_0x2404a9(0x8c),'configInstructions':_0x2404a9(0x87),'configStepTitle':_0x2404a9(0xa0),'configStep1':_0x2404a9(0x92),'configStep2':_0x2404a9(0x76),'configStep3':_0x2404a9(0x91),'sessionId':_0x2404a9(0x84),'sessionIdDescription':_0x2404a9(0x8d),'authorizationDescription':_0x2404a9(0x80),'configParameters':'配置参数:','maxRetries':_0x2404a9(0x9a),'save':_0x2404a9(0x8b),'saving':_0x2404a9(0x88),'note1':_0x2404a9(0x79),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x2404a9(0x90),'apiApplyInfo':{'title':_0x2404a9(0x98),'description':_0x2404a9(0x93),'univerAiLabel':_0x2404a9(0x7a),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x2404a9(0x89),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x2404a9(0x7b),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x2404a9(0x81),'connected':_0x2404a9(0x97),'failed':_0x2404a9(0x9e),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x2404a9(0x96),'sessionOccupied':_0x2404a9(0x8e),'networkError':_0x2404a9(0x72),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};function _0x22ee(_0x4a3808,_0x25c712){_0x4a3808=_0x4a3808-0x6c;const _0x45ab1a=_0x45ab();let _0x22ee4b=_0x45ab1a[_0x4a3808];return _0x22ee4b;}module[_0x2404a9(0x99)]=e;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x59e6a9=_0x2452;(function(_0x28002f,_0x2ca74a){const _0x3dc101=_0x2452,_0xd13105=_0x28002f();while(!![]){try{const _0x326b56=parseInt(_0x3dc101(0xe2))/0x1+parseInt(_0x3dc101(0xf9))/0x2+-parseInt(_0x3dc101(0xc8))/0x3*(parseInt(_0x3dc101(0xe5))/0x4)+parseInt(_0x3dc101(0xf7))/0x5*(-parseInt(_0x3dc101(0xca))/0x6)+parseInt(_0x3dc101(0xef))/0x7*(parseInt(_0x3dc101(0xd3))/0x8)+-parseInt(_0x3dc101(0xdc))/0x9+parseInt(_0x3dc101(0xfb))/0xa;if(_0x326b56===_0x2ca74a)break;else _0xd13105['push'](_0xd13105['shift']());}catch(_0x4f9db0){_0xd13105['push'](_0xd13105['shift']());}}}(_0x4a33,0xea2bc));function _0x4a33(){const _0x1478e6=['MCP\x20Unknown\x20Status','410314dnmAff','Connecting...','9691170jkQJwH','What\x20is\x20API\x20Key?','Retrying...','MCP:\x20Unauthorized','11379BcNLra','MCP\x20Disconnected','60AfkOFu','MCP\x20Client\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Steps:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20with\x20Bearer\x20prefix.','exports','Connected','29672AmXTmh','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','MCP:\x20Max\x20Retries\x20Exceeded','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Network\x20Error','MCP\x20Connected','MCP\x20Connection\x20Failed','1754775hbPlbo','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20Authentication','Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','859234rMHQIA','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connecting...','92jpXvVq','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Invalid\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','Save\x20Configuration','Univer\x20AI\x20Console','MCP\x20Retrying...','700kbrWxU','API\x20Key','Enter\x20your\x20API\x20key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session\x20ID','Failed\x20to\x20save\x20configuration','Click\x20to\x20configure\x20MCP','581515YXpVMv'];_0x4a33=function(){return _0x1478e6;};return _0x4a33();}function _0x2452(_0x4ffb2c,_0x4ce64f){_0x4ffb2c=_0x4ffb2c-0xc5;const _0x4a331c=_0x4a33();let _0x245244=_0x4a331c[_0x4ffb2c];return _0x245244;}const e={'mcpStatus':{'disconnected':_0x59e6a9(0xc9),'connecting':_0x59e6a9(0xe4),'connected':_0x59e6a9(0xda),'failed':_0x59e6a9(0xdb),'retrying':_0x59e6a9(0xee),'unknown':_0x59e6a9(0xf8),'unauthorized':_0x59e6a9(0xc7),'sessionOccupied':_0x59e6a9(0xcf),'networkError':_0x59e6a9(0xd9),'maxRetriesExceeded':_0x59e6a9(0xd6),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x59e6a9(0xf6)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x59e6a9(0xf3),'apiKey':_0x59e6a9(0xf0),'apiKeyPlaceholder':_0x59e6a9(0xf1),'apiKeyHint':_0x59e6a9(0xf2),'enableAuth':_0x59e6a9(0xde),'enableAuthHint':_0x59e6a9(0xe0),'connectionInfo':_0x59e6a9(0xcb),'mcpClientConfig':_0x59e6a9(0xcb),'configInstructions':_0x59e6a9(0xe1),'configStepTitle':_0x59e6a9(0xcd),'configStep1':_0x59e6a9(0xeb),'configStep2':_0x59e6a9(0xe3),'configStep3':_0x59e6a9(0xe7),'sessionId':_0x59e6a9(0xf4),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x59e6a9(0xd0),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x59e6a9(0xec),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x59e6a9(0xea),'configSaved':_0x59e6a9(0xd5),'configError':_0x59e6a9(0xf5),'apiApplyInfo':{'title':_0x59e6a9(0xc5),'description':_0x59e6a9(0xdd),'univerAiLabel':_0x59e6a9(0xed),'getStarted':_0x59e6a9(0xd8)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x59e6a9(0xcc),'invalidConfig':_0x59e6a9(0xe9),'invalidApiKey':_0x59e6a9(0xe8)},'connectionStatus':{'disconnected':_0x59e6a9(0xdf),'connecting':_0x59e6a9(0xfa),'connected':_0x59e6a9(0xd2),'failed':'Connection\x20Failed','retrying':_0x59e6a9(0xc6)},'connectionError':{'unauthorized':_0x59e6a9(0xd7),'sessionOccupied':_0x59e6a9(0xe6),'networkError':_0x59e6a9(0xce),'maxRetriesExceeded':_0x59e6a9(0xd4)}}},n=e;module[_0x59e6a9(0xd1)]=n;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1d63d5=_0x3b30;(function(_0x270eb8,_0x50d8bd){const _0x578e30=_0x3b30,_0x24393d=_0x270eb8();while(!![]){try{const _0x134c42=parseInt(_0x578e30(0x264))/0x1+parseInt(_0x578e30(0x19c))/0x2+parseInt(_0x578e30(0x296))/0x3+-parseInt(_0x578e30(0x1d7))/0x4+parseInt(_0x578e30(0x262))/0x5+-parseInt(_0x578e30(0x292))/0x6+-parseInt(_0x578e30(0x239))/0x7;if(_0x134c42===_0x50d8bd)break;else _0x24393d['push'](_0x24393d['shift']());}catch(_0x4132c9){_0x24393d['push'](_0x24393d['shift']());}}}(_0x24fe,0x1dbbc));var Pe=Object[_0x1d63d5(0x1cf)],Ee=(_0x3d32d5,_0xfe6670,_0x5b4076)=>_0xfe6670 in _0x3d32d5?Pe(_0x3d32d5,_0xfe6670,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b4076}):_0x3d32d5[_0xfe6670]=_0x5b4076,x=(_0x52f0f1,_0x5a0b05,_0x4371ad)=>Ee(_0x52f0f1,typeof _0x5a0b05!=_0x1d63d5(0x1c3)?_0x5a0b05+'':_0x5a0b05,_0x4371ad);import{LocaleService as _0x18ea5a,Inject as _0x1bd7cd,Injector as _0x4f7a8c,IConfigService as _0x50f488,ILocalStorageService as _0x34e505,ILogService as _0xab12b7,Disposable as _0x1c7d39,CommandType as _0x74002,ICommandService as _0x23b376,DependentOn as _0x382c3e,Plugin as _0x1bf85c,merge as _0x4cf638}from'@univerjs/core';import{jsxs as _0x412ff6,jsx as _0x1f2abd}from'react/jsx-runtime';import{MCPConnectionStatus as _0x4addaf,MCPConnectionError as _0x2da3be,MCPConnectionController as _0x56cc0c,MCP_PLUGIN_CONFIG_KEY as _0x1dacc9,UniverMCPPlugin as _0x366911}from'@univerjs-pro/mcp';import{clsx as _0xd9c741,Input as _0x4ecea3,Button as _0x1aab3f,MessageType as _0x3a108,Tooltip as _0x1a5250}from'@univerjs/design';import{useDependency as _0xf6a7e3,useObservable as _0x527d97,IUIPartsService as _0x55b040,IDialogService as _0x53b0c7,IMessageService as _0x321c58,ComponentManager as _0x3023e6,connectInjector as _0x11d920,BuiltInUIPart as _0x28880c,MenuItemType as _0x5bb5ca,RibbonStartGroup as _0x1ff55b,IMenuManagerService as _0x3c2a36}from'@univerjs/ui';import{BehaviorSubject as _0x53091a}from'rxjs';import{useRef as _0x3b95a5,createElement as _0x46e596,forwardRef as _0x184141,useState as _0x2f2f3d,useCallback as _0xab09e9}from'react';import{ISocketService as _0xb645cb,WebSocketService as _0x48b6a2}from'@univerjs/network';function b({ref:_0x1130da,..._0xf5873}){const _0x1427e8=_0x1d63d5,{icon:_0x11472b,id:_0x174575,className:_0x460604,extend:_0x1fdf23,..._0x285aec}=_0xf5873,_0x24f719=(_0x1427e8(0x19d)+_0x174575+'\x20'+(_0x460604||''))[_0x1427e8(0x25a)](),_0x5367a9=_0x3b95a5('_'+We());return ae(_0x11472b,''+_0x174575,{'defIds':_0x11472b[_0x1427e8(0x22a)],'idSuffix':_0x5367a9[_0x1427e8(0x253)]},{'ref':_0x1130da,'className':_0x24f719,..._0x285aec},_0x1fdf23);}function ae(_0x252779,_0x2e5fcc,_0x6e74b0,_0x4dd8ec,_0x3147e1){const _0xcfe863=_0x1d63d5;return _0x46e596(_0x252779[_0xcfe863(0x191)],{'key':_0x2e5fcc,...Ye(_0x252779,_0x6e74b0,_0x3147e1),..._0x4dd8ec},(Ze(_0x252779,_0x6e74b0)['children']||[])[_0xcfe863(0x175)]((_0xb59bf2,_0x2a9553)=>ae(_0xb59bf2,_0x2e5fcc+'-'+_0x252779[_0xcfe863(0x191)]+'-'+_0x2a9553,_0x6e74b0,void 0x0,_0x3147e1)));}function Ye(_0x29a9ef,_0x1d634c,_0x2cae40){const _0x16a66e=_0x1d63d5,_0x473339={..._0x29a9ef[_0x16a66e(0x29d)]};_0x2cae40!=null&&_0x2cae40[_0x16a66e(0x23e)]&&_0x473339[_0x16a66e(0x1ba)]===_0x16a66e(0x23e)&&(_0x473339[_0x16a66e(0x1ba)]=_0x2cae40[_0x16a66e(0x23e)]),_0x29a9ef[_0x16a66e(0x191)]===_0x16a66e(0x1e6)&&_0x473339['id']&&(_0x473339['id']=_0x473339['id']+_0x1d634c[_0x16a66e(0x1c9)]),Object[_0x16a66e(0x1f2)](_0x473339)[_0x16a66e(0x21c)](([_0x64d992,_0x26b478])=>{const _0xe2473d=_0x16a66e;_0x64d992===_0xe2473d(0x1e6)&&typeof _0x26b478==_0xe2473d(0x259)&&(_0x473339[_0x64d992]=_0x26b478[_0xe2473d(0x1b4)](/url\(#(.*)\)/,'url(#$1'+_0x1d634c[_0xe2473d(0x1c9)]+')'));});const {defIds:_0x472f0b}=_0x1d634c;return!_0x472f0b||_0x472f0b[_0x16a66e(0x25f)]===0x0||(_0x29a9ef[_0x16a66e(0x191)]===_0x16a66e(0x1ac)&&_0x473339['xlink:href']&&(_0x473339['xlink:href']=_0x473339[_0x16a66e(0x20b)]+_0x1d634c[_0x16a66e(0x1c9)]),Object['entries'](_0x473339)[_0x16a66e(0x21c)](([_0x2fb005,_0x1d60cc])=>{const _0x58b503=_0x16a66e;typeof _0x1d60cc==_0x58b503(0x259)&&(_0x473339[_0x2fb005]=_0x1d60cc[_0x58b503(0x1b4)](/url\(#(.*)\)/,_0x58b503(0x2a7)+_0x1d634c[_0x58b503(0x1c9)]+')'));})),_0x473339;}function _0x3b30(_0x1cc71e,_0x3c8445){_0x1cc71e=_0x1cc71e-0x15e;const _0x24fe35=_0x24fe();let _0x3b30b5=_0x24fe35[_0x1cc71e];return _0x3b30b5;}function _0x24fe(){const _0x50b8a5=['mcpConfig.connectionStatus.retrying','_validateConfig','univer-space-y-4','mcpConfig.connectionError.maxRetriesExceeded','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpConfig.authorizationDescription','FAILED','请输入您的\x20API\x20密钥','Saving...','点击配置\x20MCP','defIds','配置\x20MCP\x20使用\x20AI\x20操作电子表格','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','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','errorMessage','_dialogService','on-line-icon_clip0_910_349','add','_loadStoredApiKey','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.connectionStatus.connected','univer-size-4','权限验证失败,请检查您的\x20API\x20密钥','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Copy\x20the\x20JSON\x20configuration\x20below','2660532oQIHNm','mcpStatus.sessionOccupied','_componentManager','Configuration\x20saved\x20successfully','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','colorChannel1','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','isValid','url(#on-line-icon_clip0_910_349)','M0\x200H16V16H0z','HEADER_MENU','mcpConfig.apiApplyInfo.description','univer-text-green-500','none','http','_localStorageService','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20连接中...','univer-shrink-0\x20univer-text-red-500','_createConfigPanelComponent','API\x20key\x20is\x20required','MCP:\x20Session\x20ID\x20Occupied','OffLineIcon','div','univer_session_id:','stringify','current','check-mark-icon','showDeveloperTools','button','__setCustomHeaders','mcp-ui.config','string','trim','univer-space-y-2','MAX_RETRIES_EXCEEDED','配置保存成功','value','length','MCP:\x20超出最大重试次数','univer-text-xs\x20univer-text-gray-500','435825PcTXZE','univer-text-sm\x20univer-font-medium','195857YlmGCX','重启您的\x20MCP\x20客户端以使配置生效','\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','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer.ai','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','Invalid\x20configuration','http://www.w3.org/2000/svg','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-bg-red-500','svg','Enter\x20your\x20API\x20key','univer-flex\x20univer-gap-3','mcpStatus.connected','Success','RETRYING','mcpConfig.configStep1','0\x200\x2017\x2016','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','DISCONNECTED','带有\x20Bearer\x20前缀的\x20API\x20密钥。','配置步骤:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-flex-1','_initConfigSync','mcpConfig.apiApplyInfo.univerAiLabel','mcpConfig.configStep2','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','点击连接\x20MCP','has','_messageService','children','API\x20密钥','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','CheckMarkIcon','Connecting...','univer-text-blue-600','MCP\x20Connection\x20Failed','error','_uiPartsService','univer-text-white','mcpStatus.retrying','会话ID','mcp.apiKey','next','469596YRNHxm','几秒钟内获取您的\x20API\x20密钥','MCP\x20Client\x20Configuration','clipPath','393840KEhDie','https://console.univer.plus','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.connectionError.sessionOccupied','defs','Get\x20your\x20API\x20key\x20in\x20seconds','将以下配置添加到您的\x20MCP\x20客户端设置中:','attrs','univer-flex\x20univer-items-center\x20univer-gap-3','univer-space-y-3','会话\x20ID\x20已被占用,请稍后再试','univer.plus','网络连接错误,请检查您的网络连接','_handleConfigSave','enableAutoConnect','Session\x20ID','mcpStatus.failed','url(#$1','univer-flex\x20univer-items-center\x20univer-gap-2','pluginName','mcpConfig.configInstructions','配置保存失败','white','_config','MCP:\x20网络错误','connectionError$','启用身份验证以获得安全连接','UniverIcon','MCP:\x20Network\x20Error','SESSION_ID_OCCUPIED','_apiKey$','_injector','复制以下\x20JSON\x20配置','配置无效','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpConfig.description','MCP:\x20未授权','off-line-icon','Univer\x20AI\x20Console','MCP\x20已连接','Error','_mcpConnectionController','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpServerUrl','_logService','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','showConfigPanel','noopener\x20noreferrer','map','includes','重连中...','mcpConfig.title','mcpConfig.sessionIdDescription','showStatus','Configuration\x20Notes:','mcpStatus.maxRetriesExceeded','连接失败','Univer\x20AI\x20控制台','mcpConfig.note1','Connection\x20Failed','univer-bg-green-500','univer-text-gray-500','OnLineIcon','mcpConfig.note2','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','sessionId$','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','CloseIcon','\x20-\x20','off-line-icon_clip0_910_343','Bearer\x20','API\x20Key','univer-shrink-0\x20univer-text-blue-500','setConfig','univer-text-red-500','_localeService','tag','translate(.97)','help-icon','push','0\x200\x2016\x2016','setItem','displayName','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_commandService','未连接','mcpConfig.connectionError.unauthorized','356124wpzkGc','univerjs-icon\x20univerjs-icon-','mcpStatus.unauthorized','subscribeConfigValue$','您的\x20API\x20密钥安全存储在本地存储中','mcpConfig.connectionStatus.connecting','COMMAND','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','超出最大重试次数,请稍后再试','toString','getConfig','_initAutoConnect','getItem','Enable\x20Authentication','<SESSION_ID>','_connectionController','use','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_configService','assign','path','配置更改将立即生效','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpStatus.connecting','replace','1em','_blank','https://mcp.univer.ai/mcp/?univer_session_id=','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','random','fill','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_initializeCommands','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','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','Save\x20Configuration','mcpStatus.clickToConfigure','close','MCP\x20Configuration','symbol','univer-space-y-5','OTHERS','API\x20key\x20with\x20Bearer\x20prefix.','pre','_config$','idSuffix','保存中...','univer-text-gray-400','span','mcpStatus.networkError','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','defineProperty','univer-size-2\x20univer-rounded-full','mcpConfig.apiApplyInfo.title','MCP\x20Retrying...','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','onStarting','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','mcpStatus.clickToConnect','48936rKrWNj','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','NONE','_handleConfigure','show','get','validateApiKey','MCP:\x20会话\x20ID\x20已被占用','Configuration\x20Steps:','apiKey','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','round','MCP\x20状态未知','启用身份验证','mcpConfig.configError','mask','配置参数:','_registerComponent','Failed\x20to\x20save\x20configuration','univer-text-yellow-500','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','evenodd','mcp-config-dialog','univer-flex\x20univer-items-start\x20univer-gap-2','mcpConfig.connectionInfo','mcpConfig.configStep3','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','entries','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','mcpConfig.save','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','API\x20密钥无效,请检查密钥是否正确','_loading$','substring','disposeWithMe','_mcpCoreConfig$','<API_KEY>','HelpIcon','currentColor','MenuIcon','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','连接中...','univer-min-w-0\x20univer-flex-1','mcpConfig.configStepTitle','univer-text-xs\x20univer-text-gray-600','MCP\x20连接失败','mcpConfig.connectionError.networkError','CONNECTING','UNAUTHORIZED','univer-text-sm\x20univer-text-gray-500','保存配置','MCP:\x20Unauthorized','xlink:href','univer-flex\x20univer-items-start\x20univer-gap-3','MCPConfigPanel','什么是\x20API\x20密钥?','removeItem','univer-font-medium','mcpConfig.apiApplyInfo.getStarted','getOwnPropertyDescriptor','CONNECTED','mcpConfig.validation.apiKeyRequired','MCP\x20配置','MCP\x20Connected','MCP\x20客户端配置','getCurrentConfig','univer-flex\x20univer-items-center','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.validation.apiKeyTooShort','forEach','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','registerCommand','_initializeMenus'];_0x24fe=function(){return _0x50b8a5;};return _0x24fe();}function Ze(_0x3b638a,_0x596354){const _0x513665=_0x1d63d5;var _0x526bb4;const {defIds:_0x15b9bd}=_0x596354;return!_0x15b9bd||_0x15b9bd['length']===0x0?_0x3b638a:_0x3b638a[_0x513665(0x191)]===_0x513665(0x29a)&&((_0x526bb4=_0x3b638a[_0x513665(0x284)])!=null&&_0x526bb4[_0x513665(0x25f)])?{..._0x3b638a,'children':_0x3b638a[_0x513665(0x284)][_0x513665(0x175)](_0x1145ad=>typeof _0x1145ad[_0x513665(0x29d)]['id']=='string'&&_0x15b9bd&&_0x15b9bd[_0x513665(0x176)](_0x1145ad[_0x513665(0x29d)]['id'])?{..._0x1145ad,'attrs':{..._0x1145ad['attrs'],'id':_0x1145ad[_0x513665(0x29d)]['id']+_0x596354['idSuffix']}}:_0x1145ad)}:_0x3b638a;}function We(){const _0x517db0=_0x1d63d5;return Math[_0x517db0(0x1b9)]()[_0x517db0(0x1a5)](0x24)[_0x517db0(0x1f8)](0x2,0x8);}b[_0x1d63d5(0x197)]=_0x1d63d5(0x15f);const qe={'tag':'svg','attrs':{'xmlns':_0x1d63d5(0x26c),'fill':_0x1d63d5(0x246),'viewBox':_0x1d63d5(0x195),'width':_0x1d63d5(0x1b5),'height':_0x1d63d5(0x1b5)},'children':[{'tag':_0x1d63d5(0x1b0),'attrs':{'fill':_0x1d63d5(0x1fd),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x1d63d5(0x1ec),'clipRule':'evenodd'}}]},le=_0x184141(function(_0x583a22,_0x5824c3){const _0x50cb91=_0x1d63d5;return _0x46e596(b,Object[_0x50cb91(0x1af)]({},_0x583a22,{'id':_0x50cb91(0x254),'ref':_0x5824c3,'icon':qe}));});le['displayName']=_0x1d63d5(0x287);const Xe={'tag':'svg','attrs':{'xmlns':_0x1d63d5(0x26c),'fill':'none','viewBox':_0x1d63d5(0x195),'width':_0x1d63d5(0x1b5),'height':'1em'},'children':[{'tag':_0x1d63d5(0x1b0),'attrs':{'fill':_0x1d63d5(0x1fd),'d':_0x1d63d5(0x21a)}}]},ue=_0x184141(function(_0x43d521,_0x4b9dae){return _0x46e596(b,Object['assign']({},_0x43d521,{'id':'close-icon','ref':_0x4b9dae,'icon':Xe}));});ue['displayName']=_0x1d63d5(0x188);const Je={'tag':_0x1d63d5(0x26f),'attrs':{'xmlns':_0x1d63d5(0x26c),'fill':_0x1d63d5(0x246),'viewBox':_0x1d63d5(0x195),'width':_0x1d63d5(0x1b5),'height':_0x1d63d5(0x1b5)},'children':[{'tag':_0x1d63d5(0x1b0),'attrs':{'fill':_0x1d63d5(0x1fd),'d':_0x1d63d5(0x1d5)}},{'tag':'path','attrs':{'fill':_0x1d63d5(0x1fd),'d':_0x1d63d5(0x22d)}},{'tag':_0x1d63d5(0x1b0),'attrs':{'fill':_0x1d63d5(0x1fd),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':'evenodd','clipRule':_0x1d63d5(0x1ec)}}]},ve=_0x184141(function(_0x3881f3,_0xa55c39){const _0x4c2764=_0x1d63d5;return _0x46e596(b,Object[_0x4c2764(0x1af)]({},_0x3881f3,{'id':_0x4c2764(0x193),'ref':_0xa55c39,'icon':Je}));});ve[_0x1d63d5(0x197)]=_0x1d63d5(0x1fc);const Qe={'tag':'svg','attrs':{'xmlns':_0x1d63d5(0x26c),'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x1d63d5(0x1b5)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x1d63d5(0x1bd),'strokeLinecap':_0x1d63d5(0x1e2),'strokeLinejoin':_0x1d63d5(0x1e2),'strokeWidth':1.2}}]},{'tag':_0x1d63d5(0x29a),'attrs':{},'children':[{'tag':_0x1d63d5(0x295),'attrs':{'id':_0x1d63d5(0x18a)},'children':[{'tag':_0x1d63d5(0x1b0),'attrs':{'fill':_0x1d63d5(0x2ac),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x1d63d5(0x18a)]},de=_0x184141(function(_0x50afc8,_0x574a58){const _0x3e4300=_0x1d63d5;return _0x46e596(b,Object['assign']({},_0x50afc8,{'id':_0x3e4300(0x169),'ref':_0x574a58,'icon':Qe}));});de['displayName']=_0x1d63d5(0x24f);const en={'tag':_0x1d63d5(0x26f),'attrs':{'xmlns':_0x1d63d5(0x26c),'fill':_0x1d63d5(0x246),'viewBox':_0x1d63d5(0x276),'width':'1em','height':_0x1d63d5(0x1b5)},'children':[{'tag':'g','attrs':{'clipPath':_0x1d63d5(0x241)},'children':[{'tag':_0x1d63d5(0x1b0),'attrs':{'stroke':_0x1d63d5(0x1fd),'d':_0x1d63d5(0x1ff),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1d63d5(0x29a),'attrs':{},'children':[{'tag':_0x1d63d5(0x295),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x1d63d5(0x1b0),'attrs':{'fill':_0x1d63d5(0x2ac),'d':_0x1d63d5(0x242),'transform':_0x1d63d5(0x192)}}]}]}],'defIds':[_0x1d63d5(0x230)]},ge=_0x184141(function(_0x487ef8,_0x40dd10){const _0x4a2336=_0x1d63d5;return _0x46e596(b,Object[_0x4a2336(0x1af)]({},_0x487ef8,{'id':'on-line-icon','ref':_0x40dd10,'icon':en}));});ge[_0x1d63d5(0x197)]=_0x1d63d5(0x183);function nn(_0x3f759b){const _0x31a44b=_0x1d63d5;var _0x364823,_0x2a6273;const {mcpCoreConfig:_0x5ea105,onSave:_0x4c7209,loading:_0x1b7d06=!0x1,config:_0x3de1f9,connectionStatus$:_0x26c454,connectionError$:_0xa2292b,currentApiKey$:_0x227f2d,currentSessionId$:_0xd70d50}=_0x3f759b,_0x4ac551=_0xf6a7e3(_0x18ea5a),_0x44b13c=_0x527d97(_0x26c454,_0x4addaf[_0x31a44b(0x278)]),_0x448b22=_0x527d97(_0xa2292b,_0x2da3be[_0x31a44b(0x1d9)]),_0x4381f3=_0x527d97(_0xd70d50,''),_0x247164=_0x527d97(_0x227f2d,''),[_0x29391d,_0x3b032b]=_0x2f2f3d(_0x247164||''),_0x368455=!0x0,_0x11442a=_0x3de1f9[_0x31a44b(0x255)]&&_0x5ea105[_0x31a44b(0x170)]&&(_0x5ea105[_0x31a44b(0x170)]['includes'](_0x31a44b(0x2a1))||_0x5ea105[_0x31a44b(0x170)][_0x31a44b(0x176)](_0x31a44b(0x268))),_0x58bbbc=(_0x364823=_0x5ea105[_0x31a44b(0x170)])==null?void 0x0:_0x364823['includes']('univer.plus'),_0x2dccda=(_0x2a6273=_0x5ea105[_0x31a44b(0x170)])==null?void 0x0:_0x2a6273[_0x31a44b(0x176)](_0x31a44b(0x268)),_0x423b7a=_0x58bbbc?_0x31a44b(0x297):'https://console.univer.ai',_0x1a6339=_0x3de1f9['showDeveloperTools']&&(_0x58bbbc||_0x2dccda),[_0x434697,_0x525641]=_0x2f2f3d(!_0x29391d['trim']()),_0x45a710=(_0x11bba6,_0x5dd1b4)=>{const _0x4c3507=_0x31a44b;if(_0x5dd1b4===_0x2da3be['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x11bba6){case _0x4addaf['CONNECTED']:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x4addaf[_0x4c3507(0x206)]:case _0x4addaf[_0x4c3507(0x274)]:return _0x4c3507(0x1b8);case _0x4addaf[_0x4c3507(0x226)]:return _0x4c3507(0x267);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x8b1ae1=(_0xf5bdf,_0x8f291d)=>{const _0x2eab99=_0x31a44b;if(_0x8f291d===_0x2da3be[_0x2eab99(0x207)])return'univer-bg-red-500';switch(_0xf5bdf){case _0x4addaf[_0x2eab99(0x213)]:return _0x2eab99(0x181);case _0x4addaf['CONNECTING']:case _0x4addaf[_0x2eab99(0x274)]:return'univer-bg-blue-500';case _0x4addaf['FAILED']:return _0x2eab99(0x26e);default:return'univer-bg-gray-500';}},_0x5c9fb6=_0x145aad=>{const _0x712c7f=_0x31a44b;switch(_0x145aad){case _0x4addaf['CONNECTED']:return _0x4ac551['t'](_0x712c7f(0x234));case _0x4addaf[_0x712c7f(0x206)]:return _0x4ac551['t'](_0x712c7f(0x1a1));case _0x4addaf[_0x712c7f(0x226)]:return _0x4ac551['t']('mcpConfig.connectionStatus.failed');case _0x4addaf[_0x712c7f(0x274)]:return _0x4ac551['t'](_0x712c7f(0x220));default:return _0x4ac551['t']('mcpConfig.connectionStatus.disconnected');}},_0x99bd7a=_0x30906e=>{const _0x180545=_0x31a44b;switch(_0x30906e){case _0x2da3be['UNAUTHORIZED']:return _0x4ac551['t'](_0x180545(0x19b));case _0x2da3be['SESSION_ID_OCCUPIED']:return _0x4ac551['t'](_0x180545(0x299));case _0x2da3be['NETWORK_ERROR']:return _0x4ac551['t'](_0x180545(0x205));case _0x2da3be[_0x180545(0x25c)]:return _0x4ac551['t'](_0x180545(0x223));default:return'';}},_0x112f2a=_0xab09e9(()=>{const _0xa040f8=_0x31a44b,_0x4f0570={..._0x5ea105,'apiKey':_0x29391d[_0xa040f8(0x25a)](),'enableAuth':_0x368455};_0x4c7209(_0x4f0570);},[_0x5ea105,_0x29391d,_0x368455,_0x4c7209]),_0x5e0fc9=_0x29391d[_0x31a44b(0x25a)]()[_0x31a44b(0x25f)]>0x0;return _0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x1d3),'children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x23d),'children':_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x29e),'children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x1e1),'children':_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x28d),'children':'⚙'})}),_0x1f2abd('div',{'children':_0x1f2abd('p',{'className':_0x31a44b(0x208),'children':_0x4ac551['t'](_0x31a44b(0x167))})})]})}),_0x412ff6(_0x31a44b(0x250),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0xd9c741('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x45a710(_0x44b13c,_0x448b22)),'children':_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x2a8),'children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0xd9c741(_0x31a44b(0x1d0),_0x8b1ae1(_0x44b13c,_0x448b22))}),_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x263),'children':_0x5c9fb6(_0x44b13c)})]})}),_0x448b22!==_0x2da3be[_0x31a44b(0x1d9)]&&(_0x44b13c===_0x4addaf[_0x31a44b(0x226)]||_0x448b22===_0x2da3be[_0x31a44b(0x207)])&&_0x1f2abd('div',{'className':_0x31a44b(0x1ce),'children':_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x1ee),'children':[_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x24b),'children':'⚠️'}),_0x1f2abd('p',{'className':_0x31a44b(0x16e),'children':_0x99bd7a(_0x448b22)})]})})]}),_0x1f2abd(_0x31a44b(0x250),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x412ff6('div',{'className':_0x31a44b(0x1c4),'children':[_0x412ff6(_0x31a44b(0x250),{'className':'univer-space-y-2','children':[_0x412ff6('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x1f2abd(_0x31a44b(0x1cc),{'children':'🔑'}),'\x20',_0x4ac551['t']('mcpConfig.apiKey'),_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x18f),'children':'*'}),_0x11442a&&_0x1f2abd('a',{'className':_0x31a44b(0x1eb),'title':_0x4ac551['t'](_0x31a44b(0x1d1)),'role':'button','onClick':()=>_0x525641(!0x0),'children':_0x1f2abd(ve,{})})]}),_0x1f2abd(_0x4ecea3,{'type':'text','placeholder':_0x4ac551['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x29391d,'disabled':_0x1b7d06,'autoComplete':'off','onChange':_0x3b032b}),_0x1f2abd('p',{'className':_0x31a44b(0x261),'children':_0x4ac551['t']('mcpConfig.apiKeyHint')})]}),_0x11442a&&_0x434697&&_0x412ff6('div',{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x1f2abd('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':'button','onClick':()=>_0x525641(!0x1),'children':_0x1f2abd(ue,{'className':_0x31a44b(0x235)})}),_0x412ff6(_0x31a44b(0x250),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x1f2abd(_0x31a44b(0x250),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x289),'children':'🚀'})}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x27c),'children':[_0x1f2abd('h4',{'className':_0x31a44b(0x237),'children':_0x4ac551['t'](_0x31a44b(0x1d1))}),_0x1f2abd('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x4ac551['t'](_0x31a44b(0x244))}),_0x1f2abd(_0x31a44b(0x250),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x1a6339&&_0x412ff6('a',{'className':_0x31a44b(0x1be),'href':_0x423b7a,'target':_0x31a44b(0x1b6),'rel':_0x31a44b(0x174),'children':[_0x1f2abd(_0x31a44b(0x1cc),{'children':'🤖'}),_0x4ac551['t'](_0x31a44b(0x27e)),_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x1cb),'children':'↗'})]})}),_0x412ff6('div',{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x4ac551['t'](_0x31a44b(0x211))]})]})]})]}),_0x3de1f9[_0x31a44b(0x255)]&&_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x26a),'children':[_0x412ff6('h4',{'className':_0x31a44b(0x1d8),'children':[_0x1f2abd(_0x31a44b(0x1cc),{'children':'🔗'}),'\x20',_0x4ac551['t'](_0x31a44b(0x1ef))]}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x222),'children':[_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x29f),'children':[_0x1f2abd('p',{'className':_0x31a44b(0x203),'children':_0x4ac551['t'](_0x31a44b(0x2aa))}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x25b),'children':[_0x1f2abd(_0x31a44b(0x250),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4ac551['t'](_0x31a44b(0x202))}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x1f5),'children':[_0x412ff6('div',{'className':_0x31a44b(0x2a8),'children':[_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x187),'children':'1'}),_0x4ac551['t'](_0x31a44b(0x275))]}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x2a8),'children':[_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x187),'children':'2'}),_0x4ac551['t'](_0x31a44b(0x27f))]}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x2a8),'children':[_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x187),'children':'3'}),_0x4ac551['t'](_0x31a44b(0x1f0))]})]})]})]}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x25b),'children':[_0x1f2abd('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x31a44b(0x1c2)}),_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x185),'children':_0x1f2abd(_0x31a44b(0x1c7),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x31a44b(0x252)]({'mcpServers':{'univer':{'url':_0x31a44b(0x1b7)+(_0x4381f3||_0x31a44b(0x1aa)),'type':_0x31a44b(0x247),'headers':{'Authorization':'Bearer\x20'+(_0x29391d||_0x31a44b(0x1fb))}}}},null,0x2)})})]}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x29f),'children':[_0x1f2abd('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4ac551['t']('mcpConfig.configParameters')}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x25b),'children':[_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x20c),'children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x277)}),_0x412ff6('div',{'className':_0x31a44b(0x201),'children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x286),'children':_0x31a44b(0x251)}),_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x261),'children':_0x4ac551['t'](_0x31a44b(0x179))})]})]}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x20c),'children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x277)}),_0x412ff6(_0x31a44b(0x250),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x286),'children':'Authorization:'}),_0x1f2abd(_0x31a44b(0x250),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4ac551['t'](_0x31a44b(0x225))})]})]})]})]})]})]}),_0x1f2abd(_0x1aab3f,{'onClick':_0x112f2a,'disabled':!_0x5e0fc9||_0x1b7d06,'className':_0x31a44b(0x1f3),'children':_0x1b7d06?_0x412ff6(_0x31a44b(0x1cc),{'className':_0x31a44b(0x2a8),'children':[_0x1f2abd(_0x31a44b(0x1cc),{'children':'⟲'}),_0x4ac551['t']('mcpConfig.saving')]}):_0x412ff6(_0x31a44b(0x1cc),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1f2abd(le,{}),_0x4ac551['t'](_0x31a44b(0x1f4))]})}),_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x1ad),'children':_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x271),'children':[_0x1f2abd(_0x31a44b(0x1cc),{'className':_0x31a44b(0x18d),'children':'💡'}),_0x412ff6(_0x31a44b(0x250),{'className':_0x31a44b(0x166),'children':[_0x1f2abd(_0x31a44b(0x250),{'className':_0x31a44b(0x210),'children':_0x31a44b(0x17b)}),_0x412ff6(_0x31a44b(0x250),{'children':['•',_0x4ac551['t'](_0x31a44b(0x17f))]}),_0x412ff6(_0x31a44b(0x250),{'children':['•',_0x4ac551['t'](_0x31a44b(0x184))]})]})]})})]})})]});}const y=_0x1d63d5(0x258),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x1d63d5(0x212)],tn=(_0x3e0109,_0x27d087,_0x1d2d43,_0x39802d)=>{for(var _0x3819dc=_0x39802d>0x1?void 0x0:_0x39802d?rn(_0x27d087,_0x1d2d43):_0x27d087,_0x51597e=_0x3e0109['length']-0x1,_0x4e869b;_0x51597e>=0x0;_0x51597e--)(_0x4e869b=_0x3e0109[_0x51597e])&&(_0x3819dc=_0x4e869b(_0x3819dc)||_0x3819dc);return _0x3819dc;},d=(_0x593a32,_0x2b7a5b)=>(_0x4c0400,_0xf9e787)=>_0x2b7a5b(_0x4c0400,_0xf9e787,_0x593a32);const U=_0x1d63d5(0x290),L=_0x1d63d5(0x1ed);let I=class extends _0x1c7d39{constructor(_0xb6d45,_0x365339,_0x57a51f,_0x3c9b97,_0x539132,_0x495e47,_0x550d7e,_0x4cb0f0,_0x34f807,_0x36d321){const _0x79f20c=_0x1d63d5;super(),x(this,_0x79f20c(0x1f7),new _0x53091a(!0x1)),x(this,_0x79f20c(0x1fa),new _0x53091a({})),x(this,_0x79f20c(0x1c8),new _0x53091a({})),x(this,_0x79f20c(0x162),new _0x53091a('')),x(this,_0x79f20c(0x2a3),async _0x2e9c68=>{const _0x536fb5=_0x79f20c;var _0x50cae8,_0x5f0231;this[_0x536fb5(0x1f7)]['next'](!0x0);try{const _0xe5fec8=await this[_0x536fb5(0x221)](_0x2e9c68);if(!_0xe5fec8[_0x536fb5(0x240)]){this[_0x536fb5(0x283)][_0x536fb5(0x1db)]({'type':_0x3a108[_0x536fb5(0x16c)],'content':_0xe5fec8[_0x536fb5(0x22e)]||this[_0x536fb5(0x190)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x2e9c68[_0x536fb5(0x1e0)]?await this[_0x536fb5(0x248)][_0x536fb5(0x196)](U,_0x2e9c68[_0x536fb5(0x1e0)]['trim']()):await this[_0x536fb5(0x248)][_0x536fb5(0x20f)](U),this[_0x536fb5(0x162)][_0x536fb5(0x291)](((_0x50cae8=_0x2e9c68[_0x536fb5(0x1e0)])==null?void 0x0:_0x50cae8[_0x536fb5(0x25a)]())||''),this[_0x536fb5(0x16d)][_0x536fb5(0x257)]({'Authorization':_0x536fb5(0x18b)+((_0x5f0231=_0x2e9c68[_0x536fb5(0x1e0)])==null?void 0x0:_0x5f0231[_0x536fb5(0x25a)]())}),this[_0x536fb5(0x283)][_0x536fb5(0x1db)]({'type':_0x3a108[_0x536fb5(0x273)],'content':this[_0x536fb5(0x190)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x20300b=_0x536fb5;this[_0x20300b(0x22f)][_0x20300b(0x1c1)](L);},0x320);}catch(_0x2320e3){this[_0x536fb5(0x171)][_0x536fb5(0x28b)](_0x536fb5(0x23f),_0x2320e3),this[_0x536fb5(0x283)][_0x536fb5(0x1db)]({'type':_0x3a108[_0x536fb5(0x16c)],'content':this[_0x536fb5(0x190)]['t'](_0x536fb5(0x1e5))});}finally{this[_0x536fb5(0x1f7)][_0x536fb5(0x291)](!0x1);}}),(this[_0x79f20c(0x163)]=_0xb6d45,this[_0x79f20c(0x28c)]=_0x365339,this[_0x79f20c(0x1ae)]=_0x57a51f,this[_0x79f20c(0x248)]=_0x3c9b97,this[_0x79f20c(0x22f)]=_0x539132,this[_0x79f20c(0x283)]=_0x495e47,this[_0x79f20c(0x23b)]=_0x550d7e,this[_0x79f20c(0x190)]=_0x4cb0f0,this[_0x79f20c(0x171)]=_0x34f807,this[_0x79f20c(0x16d)]=_0x36d321,this[_0x79f20c(0x27d)](),this['_loadStoredApiKey'](),this[_0x79f20c(0x1e8)]());}['showConfigPanel'](){const _0x358dba=_0x1d63d5,_0x428954=this[_0x358dba(0x1ae)]['getConfig'](y);_0x428954!=null&&_0x428954[_0x358dba(0x255)]&&this['_dialogService']['open']({'id':L,'title':{'title':this['_localeService']['t'](_0x358dba(0x178))},'children':{'label':_0x358dba(0x20d)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x242e4c=_0x358dba;this['_dialogService'][_0x242e4c(0x1c1)](L);}});}[_0x1d63d5(0x218)](){const _0x2bcd2b=_0x1d63d5;return this[_0x2bcd2b(0x1fa)][_0x2bcd2b(0x25e)];}[_0x1d63d5(0x1e8)](){const _0x39b590=_0x1d63d5;this[_0x39b590(0x1f9)](this[_0x39b590(0x23b)]['register'](_0x39b590(0x20d),this['_createConfigPanelComponent']()));}[_0x1d63d5(0x24c)](){const _0x350793=_0x1d63d5;return _0x11d920(()=>{const _0x3fb42d=_0x3b30;var _0x56c77a,_0x1b43b9,_0x2d542b;return _0x1f2abd(nn,{'config':this[_0x3fb42d(0x1c8)][_0x3fb42d(0x25e)],'mcpCoreConfig':this[_0x3fb42d(0x1fa)][_0x3fb42d(0x25e)],'currentApiKey$':this[_0x3fb42d(0x162)],'onSave':this['_handleConfigSave'],'loading':this[_0x3fb42d(0x1f7)][_0x3fb42d(0x25e)],'connectionStatus$':(_0x56c77a=this['_mcpConnectionController'])==null?void 0x0:_0x56c77a['connectionStatus$'],'connectionError$':(_0x1b43b9=this[_0x3fb42d(0x16d)])==null?void 0x0:_0x1b43b9[_0x3fb42d(0x2af)],'currentSessionId$':(_0x2d542b=this[_0x3fb42d(0x16d)])==null?void 0x0:_0x2d542b[_0x3fb42d(0x186)]});},this[_0x350793(0x163)]);}[_0x1d63d5(0x27d)](){const _0x236f7a=_0x1d63d5;this[_0x236f7a(0x1f9)](this[_0x236f7a(0x1ae)][_0x236f7a(0x19f)](_0x1dacc9)['subscribe'](_0x35949b=>{const _0x6df194=_0x236f7a;this[_0x6df194(0x1fa)][_0x6df194(0x291)](_0x35949b||{});}));const _0x1cefe4=this[_0x236f7a(0x1ae)][_0x236f7a(0x1a6)](_0x1dacc9);this['_mcpCoreConfig$'][_0x236f7a(0x291)](_0x1cefe4||{}),this[_0x236f7a(0x1f9)](this[_0x236f7a(0x1ae)]['subscribeConfigValue$'](y)['subscribe'](_0x6dc6fb=>{const _0x420763=_0x236f7a;this[_0x420763(0x1c8)][_0x420763(0x291)](_0x6dc6fb||{});}));const _0x1b6c6b=this[_0x236f7a(0x1ae)][_0x236f7a(0x1a6)](y);this[_0x236f7a(0x1c8)][_0x236f7a(0x291)](_0x1b6c6b||{});}async[_0x1d63d5(0x232)](){const _0x148f1b=_0x1d63d5,_0xc9ab08=this[_0x148f1b(0x1ae)][_0x148f1b(0x1a6)](y);if(!(_0xc9ab08!=null&&_0xc9ab08[_0x148f1b(0x255)]))return;const _0x5efc81=await this[_0x148f1b(0x248)][_0x148f1b(0x1a8)](U);_0x5efc81&&(this[_0x148f1b(0x16d)][_0x148f1b(0x257)]({'Authorization':_0x148f1b(0x18b)+_0x5efc81}),this[_0x148f1b(0x162)][_0x148f1b(0x291)](_0x5efc81));}async[_0x1d63d5(0x221)](_0x18c2f5){const _0x1a9883=_0x1d63d5;if(!_0x18c2f5[_0x1a9883(0x1e0)]||_0x18c2f5[_0x1a9883(0x1e0)][_0x1a9883(0x25a)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x1a9883(0x214))};if(_0x18c2f5[_0x1a9883(0x1e0)]['trim']()[_0x1a9883(0x25f)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1a9883(0x190)]['t'](_0x1a9883(0x21b))};try{const _0x43d28d=await this[_0x1a9883(0x163)][_0x1a9883(0x1dc)](_0x56cc0c)[_0x1a9883(0x1dd)](_0x18c2f5[_0x1a9883(0x1e0)][_0x1a9883(0x25a)]());return _0x43d28d['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x43d28d[_0x1a9883(0x28b)]||this[_0x1a9883(0x190)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0xdf03a8){return console['warn'](_0x1a9883(0x22c),_0xdf03a8),{'isValid':!0x0};}}};I=tn([d(0x0,_0x1bd7cd(_0x4f7a8c)),d(0x1,_0x55b040),d(0x2,_0x50f488),d(0x3,_0x34e505),d(0x4,_0x53b0c7),d(0x5,_0x321c58),d(0x6,_0x1bd7cd(_0x3023e6)),d(0x7,_0x1bd7cd(_0x18ea5a)),d(0x8,_0xab12b7),d(0x9,_0x1bd7cd(_0x56cc0c))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x74002[_0x1d63d5(0x1a2)],'handler':async(_0x3635b9,_0x41ac8f)=>(_0x3635b9[_0x1d63d5(0x1dc)](I)[_0x1d63d5(0x173)](),!0x0)};function pe(_0x35b94a,_0x2b6722){const _0x24133d=_0x1d63d5;switch(_0x35b94a){case _0x4addaf[_0x24133d(0x278)]:return'mcpStatus.disconnected';case _0x4addaf['CONNECTING']:return _0x24133d(0x1b3);case _0x4addaf[_0x24133d(0x213)]:return _0x24133d(0x272);case _0x4addaf[_0x24133d(0x226)]:switch(_0x2b6722){case _0x2da3be[_0x24133d(0x207)]:return _0x24133d(0x19e);case _0x2da3be[_0x24133d(0x161)]:return _0x24133d(0x23a);case _0x2da3be['NETWORK_ERROR']:return _0x24133d(0x1cd);case _0x2da3be[_0x24133d(0x25c)]:return _0x24133d(0x17c);default:return _0x24133d(0x2a6);}case _0x4addaf[_0x24133d(0x274)]:return _0x24133d(0x28e);default:return'mcpStatus.unknown';}}function on(_0x24d29e,_0x5450cb,_0x4990ff,_0x3373a3=!0x0){const _0x528768=_0x1d63d5,_0x3899db=pe(_0x24d29e,_0x5450cb),_0x10f1ac=_0x4990ff['t'](_0x3899db);return _0x3373a3?_0x24d29e===_0x4addaf[_0x528768(0x278)]&&_0x5450cb===_0x2da3be[_0x528768(0x207)]?_0x10f1ac+'\x20-\x20'+_0x4990ff['t'](_0x528768(0x1c0)):_0x24d29e===_0x4addaf['CONNECTED']?''+_0x10f1ac:_0x24d29e===_0x4addaf[_0x528768(0x278)]||_0x24d29e===_0x4addaf[_0x528768(0x226)]?_0x10f1ac+_0x528768(0x189)+_0x4990ff['t'](_0x528768(0x1d6)):_0x10f1ac:_0x10f1ac;}function sn(_0x1930d9){const _0x5a7b30=_0x1d63d5;switch(_0x1930d9){case _0x4addaf['CONNECTED']:return _0x5a7b30(0x245);case _0x4addaf[_0x5a7b30(0x206)]:case _0x4addaf[_0x5a7b30(0x274)]:return _0x5a7b30(0x1ea);case _0x4addaf[_0x5a7b30(0x226)]:case _0x4addaf['DISCONNECTED']:return'univer-text-red-500';default:return _0x5a7b30(0x182);}}function cn(_0x858534){const _0x9c7e47=_0x1d63d5,{status$:_0x3362b2,error$:_0x39cddd,onConfigure:_0x1fe951,showClickable:_0x46a433=!0x0}=_0x858534,_0x28ac84=_0x527d97(_0x3362b2,_0x4addaf[_0x9c7e47(0x278)]),_0x111460=_0x527d97(_0x39cddd,_0x2da3be[_0x9c7e47(0x1d9)]),_0x2d7130=_0xf6a7e3(_0x18ea5a),_0x2e664b=_0x28ac84===_0x4addaf[_0x9c7e47(0x213)];_0x28ac84===_0x4addaf[_0x9c7e47(0x206)]||_0x4addaf[_0x9c7e47(0x274)];const _0x43f8b6=_0x2d7130['t'](pe(_0x28ac84,_0x111460)),_0x22c44c=on(_0x28ac84,_0x111460,_0x2d7130,_0x46a433),_0x1dc64b=sn(_0x28ac84),_0x2c2db8=_0x2e664b?_0x1f2abd(ge,{}):_0x1f2abd(de,{}),_0xe1eaf2=_0xab09e9(()=>{_0x46a433&&_0x1fe951&&_0x1fe951();},[_0x46a433,_0x1fe951]);function _0x1a112a(){const _0x3666e1=_0x9c7e47;return _0x412ff6(_0x3666e1(0x250),{'className':_0xd9c741(_0x3666e1(0x219),_0x46a433&&_0x1fe951&&_0x3666e1(0x266)),'role':_0x3666e1(0x256),'onClick':_0x46a433&&_0x1fe951?_0xe1eaf2:void 0x0,'children':[_0x1f2abd(_0x3666e1(0x250),{'className':_0xd9c741(_0x3666e1(0x224),_0x1dc64b),'children':_0x2c2db8}),_0x1f2abd(_0x3666e1(0x250),{'className':_0x3666e1(0x1f1),'children':_0x43f8b6})]});}return _0x1f2abd(_0x1a5250,{'title':_0x22c44c,'placement':'bottom','children':_0x1a112a()});}var an=Object[_0x1d63d5(0x212)],ln=(_0xec1862,_0x41cae7,_0x21a961,_0x353860)=>{const _0x21fc41=_0x1d63d5;for(var _0x2bdfb0=_0x353860>0x1?void 0x0:_0x353860?an(_0x41cae7,_0x21a961):_0x41cae7,_0x2f1776=_0xec1862[_0x21fc41(0x25f)]-0x1,_0x2ebe19;_0x2f1776>=0x0;_0x2f1776--)(_0x2ebe19=_0xec1862[_0x2f1776])&&(_0x2bdfb0=_0x2ebe19(_0x2bdfb0)||_0x2bdfb0);return _0x2bdfb0;},M=(_0x5b5670,_0x50741c)=>(_0x50d06b,_0x573797)=>_0x50741c(_0x50d06b,_0x573797,_0x5b5670);let O=class extends _0x1c7d39{constructor(_0x99344c,_0x26a748,_0x45fb59,_0x2459db){const _0x180ec4=_0x1d63d5;super(),this[_0x180ec4(0x163)]=_0x99344c,this[_0x180ec4(0x1ab)]=_0x26a748,this['_uiPartsService']=_0x45fb59,this[_0x180ec4(0x1ae)]=_0x2459db,this[_0x180ec4(0x1a7)](),this['_initStatusComponent']();}[_0x1d63d5(0x1a7)](){const _0xfc4a20=_0x1d63d5,_0x4373aa=this[_0xfc4a20(0x1ae)][_0xfc4a20(0x1a6)](y);_0x4373aa!=null&&_0x4373aa[_0xfc4a20(0x255)]&&(this[_0xfc4a20(0x1ab)][_0xfc4a20(0x2a4)]=!0x1);}['_initStatusComponent'](){const _0x154c33=_0x1d63d5,_0x59ea51=this[_0x154c33(0x1ae)][_0x154c33(0x1a6)](y);(_0x59ea51==null?void 0x0:_0x59ea51[_0x154c33(0x17a)])!==!0x1&&this[_0x154c33(0x1f9)](this[_0x154c33(0x28c)]['registerComponent'](_0x28880c[_0x154c33(0x243)],()=>{const _0x4c63d6=_0x154c33;var _0x4d19f0;return _0x11d920(un({'status$':this[_0x4c63d6(0x1ab)]['connectionStatus$'],'error$':this[_0x4c63d6(0x1ab)][_0x4c63d6(0x2af)],'onConfigure':()=>this[_0x4c63d6(0x1da)](),'showClickable':(_0x4d19f0=_0x59ea51==null?void 0x0:_0x59ea51[_0x4c63d6(0x255)])!=null?_0x4d19f0:!0x1}),this[_0x4c63d6(0x163)]);}));}[_0x1d63d5(0x1da)](){const _0x5eefc0=_0x1d63d5;this[_0x5eefc0(0x163)]['get'](I)[_0x5eefc0(0x173)]();}};O=ln([M(0x0,_0x1bd7cd(_0x4f7a8c)),M(0x1,_0x1bd7cd(_0x56cc0c)),M(0x2,_0x55b040),M(0x3,_0x50f488)],O);function un(_0x54b5c6){const {status$:_0x495aae,error$:_0x1b77d4,onConfigure:_0x2f04c7,showClickable:_0x46b116}=_0x54b5c6;return function(){return _0x1f2abd(cn,{'status$':_0x495aae,'error$':_0x1b77d4,'onConfigure':_0x2f04c7,'showClickable':_0x46b116});};}function vn(_0x3fc2f0){const _0x163526=_0x1d63d5;return{'id':V['id'],'type':_0x5bb5ca['BUTTON'],'icon':_0x163526(0x1fe),'title':'mcpConfig.title','tooltip':'mcpConfig.title'};}const dn={[_0x1ff55b[_0x1d63d5(0x1c5)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x1d63d5(0x212)],pn=(_0x1f5686,_0x30399e,_0x2c7ca7,_0x368aa8)=>{const _0x3822ca=_0x1d63d5;for(var _0x1e4b63=_0x368aa8>0x1?void 0x0:_0x368aa8?gn(_0x30399e,_0x2c7ca7):_0x30399e,_0x57f6e0=_0x1f5686[_0x3822ca(0x25f)]-0x1,_0x358417;_0x57f6e0>=0x0;_0x57f6e0--)(_0x358417=_0x1f5686[_0x57f6e0])&&(_0x1e4b63=_0x358417(_0x1e4b63)||_0x1e4b63);return _0x1e4b63;},re=(_0xe55d04,_0x584a19)=>(_0x4c31ba,_0x4eea18)=>_0x584a19(_0x4c31ba,_0x4eea18,_0xe55d04);let D=class extends _0x1c7d39{constructor(_0x4556ce,_0x4d36af){const _0xc7a66=_0x1d63d5;super(),this[_0xc7a66(0x199)]=_0x4556ce,this['_menuManagerService']=_0x4d36af,this[_0xc7a66(0x1bc)](),this[_0xc7a66(0x21f)]();}[_0x1d63d5(0x1bc)](){const _0x5f3b06=_0x1d63d5;[V][_0x5f3b06(0x21c)](_0x874fda=>{const _0xf18e1=_0x5f3b06;this[_0xf18e1(0x1f9)](this['_commandService'][_0xf18e1(0x21e)](_0x874fda));});}[_0x1d63d5(0x21f)](){this['_menuManagerService']['mergeMenu'](dn);}};D=pn([re(0x0,_0x23b376),re(0x1,_0x3c2a36)],D);const Mn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x1d63d5(0x216),'failed':_0x1d63d5(0x28a),'retrying':_0x1d63d5(0x1d2),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x1d63d5(0x20a),'sessionOccupied':_0x1d63d5(0x24e),'networkError':_0x1d63d5(0x160),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1d63d5(0x1c2),'description':_0x1d63d5(0x280),'apiKey':_0x1d63d5(0x18c),'apiKeyPlaceholder':_0x1d63d5(0x270),'apiKeyHint':_0x1d63d5(0x172),'enableAuth':_0x1d63d5(0x1a9),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x1d63d5(0x294),'mcpClientConfig':_0x1d63d5(0x294),'configInstructions':_0x1d63d5(0x26d),'configStepTitle':_0x1d63d5(0x1df),'configStep1':_0x1d63d5(0x238),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x1d63d5(0x249),'sessionId':_0x1d63d5(0x2a5),'sessionIdDescription':_0x1d63d5(0x1a3),'authorizationDescription':_0x1d63d5(0x1c6),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x1d63d5(0x1bf),'saving':_0x1d63d5(0x228),'note1':_0x1d63d5(0x1bb),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x1d63d5(0x23c),'configError':_0x1d63d5(0x1e9),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x1d63d5(0x16f),'univerAiLabel':_0x1d63d5(0x16a),'getStarted':_0x1d63d5(0x29b)},'validation':{'apiKeyRequired':_0x1d63d5(0x24d),'apiKeyTooShort':_0x1d63d5(0x198),'invalidConfig':_0x1d63d5(0x26b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x1d63d5(0x288),'connected':'Connected','failed':_0x1d63d5(0x180),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x1d63d5(0x27b),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x1d63d5(0x21d),'maxRetriesExceeded':_0x1d63d5(0x269)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x1d63d5(0x24a),'connected':_0x1d63d5(0x16b),'failed':_0x1d63d5(0x204),'retrying':'MCP\x20重连中...','unknown':_0x1d63d5(0x1e3),'unauthorized':_0x1d63d5(0x168),'sessionOccupied':_0x1d63d5(0x1de),'networkError':_0x1d63d5(0x2ae),'maxRetriesExceeded':_0x1d63d5(0x260),'clickToConnect':_0x1d63d5(0x281),'clickToConfigure':_0x1d63d5(0x229)},'mcpConfig':{'title':_0x1d63d5(0x215),'description':_0x1d63d5(0x22b),'apiKey':_0x1d63d5(0x285),'apiKeyPlaceholder':_0x1d63d5(0x227),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x1d63d5(0x1e4),'enableAuthHint':_0x1d63d5(0x15e),'connectionInfo':_0x1d63d5(0x217),'mcpClientConfig':_0x1d63d5(0x217),'configInstructions':_0x1d63d5(0x29c),'configStepTitle':_0x1d63d5(0x27a),'configStep1':_0x1d63d5(0x164),'configStep2':_0x1d63d5(0x1b2),'configStep3':_0x1d63d5(0x265),'sessionId':_0x1d63d5(0x28f),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x1d63d5(0x279),'configParameters':_0x1d63d5(0x1e7),'maxRetries':'最大重试次数','save':_0x1d63d5(0x209),'saving':_0x1d63d5(0x1ca),'note1':_0x1d63d5(0x1b1),'note2':_0x1d63d5(0x1a0),'configSaved':_0x1d63d5(0x25d),'configError':_0x1d63d5(0x2ab),'apiApplyInfo':{'title':_0x1d63d5(0x20e),'description':_0x1d63d5(0x233),'univerAiLabel':_0x1d63d5(0x17e),'getStarted':_0x1d63d5(0x293)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x1d63d5(0x298),'invalidConfig':_0x1d63d5(0x165),'invalidApiKey':_0x1d63d5(0x1f6)},'connectionStatus':{'disconnected':_0x1d63d5(0x19a),'connecting':_0x1d63d5(0x200),'connected':'已连接','failed':_0x1d63d5(0x17d),'retrying':_0x1d63d5(0x177)},'connectionError':{'unauthorized':_0x1d63d5(0x236),'sessionOccupied':_0x1d63d5(0x2a0),'networkError':_0x1d63d5(0x2a2),'maxRetriesExceeded':_0x1d63d5(0x1a4)}}};var fn=Object[_0x1d63d5(0x1cf)],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x37fe38,_0x110cad,_0x1ae31c)=>_0x110cad in _0x37fe38?fn(_0x37fe38,_0x110cad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ae31c}):_0x37fe38[_0x110cad]=_0x1ae31c,mn=(_0x56eacb,_0x7c4a3f,_0xe35445,_0x4b5853)=>{const _0x35ea0b=_0x1d63d5;for(var _0x50b809=_0x4b5853>0x1?void 0x0:_0x4b5853?hn(_0x7c4a3f,_0xe35445):_0x7c4a3f,_0xfdf26d=_0x56eacb[_0x35ea0b(0x25f)]-0x1,_0x53bb48;_0xfdf26d>=0x0;_0xfdf26d--)(_0x53bb48=_0x56eacb[_0xfdf26d])&&(_0x50b809=_0x53bb48(_0x50b809)||_0x50b809);return _0x50b809;},P=(_0x1d0066,_0x1c88ce)=>(_0x84da6a,_0x47c119)=>_0x1c88ce(_0x84da6a,_0x47c119,_0x1d0066),_n=(_0x162692,_0x2adbef,_0x492567)=>Cn(_0x162692,_0x2adbef+'',_0x492567);let j=class extends _0x1bf85c{constructor(_0x3b1ce3=ie,_0x30c0aa,_0x5d22f8,_0x5d8135,_0x1a4013,_0x35f5e0){const _0x5ce075=_0x1d63d5;super(),this[_0x5ce075(0x2ad)]=_0x3b1ce3,this[_0x5ce075(0x163)]=_0x30c0aa,this['_configService']=_0x5d22f8,this[_0x5ce075(0x28c)]=_0x5d8135,this[_0x5ce075(0x248)]=_0x1a4013,this[_0x5ce075(0x190)]=_0x35f5e0;const {..._0x4f90d2}=_0x4cf638({},ie,this[_0x5ce075(0x2ad)]);this['_configService'][_0x5ce075(0x18e)](y,_0x4f90d2);}async[_0x1d63d5(0x1d4)](){const _0x25b58a=_0x1d63d5,_0x4a45c5=[[O],[I],[D]];this[_0x25b58a(0x163)][_0x25b58a(0x282)](_0xb645cb)||_0x4a45c5[_0x25b58a(0x194)]([_0xb645cb,{'useClass':_0x48b6a2}]),_0x4a45c5[_0x25b58a(0x21c)](_0x15d3f9=>this[_0x25b58a(0x163)][_0x25b58a(0x231)](_0x15d3f9)),this[_0x25b58a(0x163)][_0x25b58a(0x1dc)](O),this[_0x25b58a(0x163)][_0x25b58a(0x1dc)](I),this[_0x25b58a(0x163)][_0x25b58a(0x1dc)](D);}};_n(j,_0x1d63d5(0x2a9),'MCP_UI_PLUGIN'),j=mn([_0x382c3e(_0x366911),P(0x1,_0x1bd7cd(_0x4f7a8c)),P(0x2,_0x50f488),P(0x3,_0x55b040),P(0x4,_0x34e505),P(0x5,_0x1bd7cd(_0x18ea5a))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
|
1
|
+
const _0x35f985=_0x343f;(function(_0x141cad,_0x39e96f){const _0x597486=_0x343f,_0x59b6d5=_0x141cad();while(!![]){try{const _0x597c4d=-parseInt(_0x597486(0x164))/0x1+parseInt(_0x597486(0xd9))/0x2+parseInt(_0x597486(0x12d))/0x3+-parseInt(_0x597486(0xef))/0x4+-parseInt(_0x597486(0x14e))/0x5*(-parseInt(_0x597486(0x19c))/0x6)+parseInt(_0x597486(0x10e))/0x7*(-parseInt(_0x597486(0xff))/0x8)+parseInt(_0x597486(0x18c))/0x9;if(_0x597c4d===_0x39e96f)break;else _0x59b6d5['push'](_0x59b6d5['shift']());}catch(_0x18e970){_0x59b6d5['push'](_0x59b6d5['shift']());}}}(_0x26ea,0xa8f69));var Pe=Object[_0x35f985(0x138)],Ee=(_0x39bb06,_0x433cd3,_0x33218a)=>_0x433cd3 in _0x39bb06?Pe(_0x39bb06,_0x433cd3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33218a}):_0x39bb06[_0x433cd3]=_0x33218a,x=(_0x5c81d7,_0x568f2b,_0x167166)=>Ee(_0x5c81d7,typeof _0x568f2b!=_0x35f985(0x15e)?_0x568f2b+'':_0x568f2b,_0x167166);import{LocaleService as _0x5c2835,Inject as _0x49af88,Injector as _0x3d8726,IConfigService as _0x482877,ILocalStorageService as _0x315e3d,ILogService as _0x4dd9b0,Disposable as _0xd57a6,CommandType as _0x40000c,ICommandService as _0x4ef675,DependentOn as _0x2d02d9,Plugin as _0x207806,merge as _0x1d5727}from'@univerjs/core';import{jsxs as _0xd9d937,jsx as _0xb8939f}from'react/jsx-runtime';import{MCPConnectionStatus as _0x43f8f4,MCPConnectionError as _0x519a1c,MCPConnectionController as _0x449af0,MCP_PLUGIN_CONFIG_KEY as _0x40b984,UniverMCPPlugin as _0x10caaf}from'@univerjs-pro/mcp';import{clsx as _0x2d758b,Input as _0x1ccfc9,Button as _0x55acef,MessageType as _0x257810,Tooltip as _0x413d7d}from'@univerjs/design';import{useDependency as _0x50b19d,useObservable as _0x9b4ea2,IUIPartsService as _0x289555,IDialogService as _0x2eb18a,IMessageService as _0x118215,ComponentManager as _0x227562,connectInjector as _0x1f5204,BuiltInUIPart as _0x6ae1f6,MenuItemType as _0x30df3b,RibbonStartGroup as _0xa6aee,IMenuManagerService as _0x19c278}from'@univerjs/ui';import{BehaviorSubject as _0x43dd3c}from'rxjs';import{useRef as _0x5cc105,createElement as _0x2dac4d,forwardRef as _0x4f9a81,useState as _0xbb6ab3,useCallback as _0x1ffba4}from'react';import{ISocketService as _0x3ab30f,WebSocketService as _0x5123eb}from'@univerjs/network';function b({ref:_0x3bc49d,..._0x2cd9cd}){const _0x4de138=_0x35f985,{icon:_0x4293ee,id:_0x5306c7,className:_0x4f9b1a,extend:_0x2d7e7d,..._0x45864a}=_0x2cd9cd,_0x2fd9f8=(_0x4de138(0x145)+_0x5306c7+'\x20'+(_0x4f9b1a||''))[_0x4de138(0x17f)](),_0x47c618=_0x5cc105('_'+We());return ae(_0x4293ee,''+_0x5306c7,{'defIds':_0x4293ee[_0x4de138(0x15a)],'idSuffix':_0x47c618[_0x4de138(0x124)]},{'ref':_0x3bc49d,'className':_0x2fd9f8,..._0x45864a},_0x2d7e7d);}function ae(_0x49c4a0,_0x44d1f9,_0x336c89,_0x2a76c0,_0x108ad0){const _0x5ab44b=_0x35f985;return _0x2dac4d(_0x49c4a0['tag'],{'key':_0x44d1f9,...Ye(_0x49c4a0,_0x336c89,_0x108ad0),..._0x2a76c0},(Ze(_0x49c4a0,_0x336c89)[_0x5ab44b(0x1f3)]||[])[_0x5ab44b(0xfd)]((_0x54aeda,_0x1fad06)=>ae(_0x54aeda,_0x44d1f9+'-'+_0x49c4a0['tag']+'-'+_0x1fad06,_0x336c89,void 0x0,_0x108ad0)));}function Ye(_0x36d26a,_0x402975,_0x35fd86){const _0xd2442d=_0x35f985,_0x2c6661={..._0x36d26a[_0xd2442d(0xb9)]};_0x35fd86!=null&&_0x35fd86[_0xd2442d(0x12f)]&&_0x2c6661[_0xd2442d(0xae)]==='colorChannel1'&&(_0x2c6661[_0xd2442d(0xae)]=_0x35fd86[_0xd2442d(0x12f)]),_0x36d26a['tag']===_0xd2442d(0x1f6)&&_0x2c6661['id']&&(_0x2c6661['id']=_0x2c6661['id']+_0x402975['idSuffix']),Object[_0xd2442d(0xf9)](_0x2c6661)[_0xd2442d(0x197)](([_0x1a549f,_0x435bdf])=>{const _0x166825=_0xd2442d;_0x1a549f===_0x166825(0x1f6)&&typeof _0x435bdf==_0x166825(0x1dc)&&(_0x2c6661[_0x1a549f]=_0x435bdf[_0x166825(0x15b)](/url\(#(.*)\)/,_0x166825(0x13e)+_0x402975[_0x166825(0x168)]+')'));});const {defIds:_0x495750}=_0x402975;return!_0x495750||_0x495750[_0xd2442d(0xba)]===0x0||(_0x36d26a['tag']===_0xd2442d(0x155)&&_0x2c6661['xlink:href']&&(_0x2c6661[_0xd2442d(0x173)]=_0x2c6661[_0xd2442d(0x173)]+_0x402975[_0xd2442d(0x168)]),Object[_0xd2442d(0xf9)](_0x2c6661)[_0xd2442d(0x197)](([_0x282374,_0x4243fe])=>{const _0x1edeca=_0xd2442d;typeof _0x4243fe==_0x1edeca(0x1dc)&&(_0x2c6661[_0x282374]=_0x4243fe[_0x1edeca(0x15b)](/url\(#(.*)\)/,_0x1edeca(0x13e)+_0x402975[_0x1edeca(0x168)]+')'));})),_0x2c6661;}function Ze(_0x2fb3ec,_0xfd00ff){const _0xa7728b=_0x35f985;var _0x51558b;const {defIds:_0x5f3acd}=_0xfd00ff;return!_0x5f3acd||_0x5f3acd[_0xa7728b(0xba)]===0x0?_0x2fb3ec:_0x2fb3ec[_0xa7728b(0x174)]==='defs'&&((_0x51558b=_0x2fb3ec[_0xa7728b(0x1f3)])!=null&&_0x51558b[_0xa7728b(0xba)])?{..._0x2fb3ec,'children':_0x2fb3ec[_0xa7728b(0x1f3)][_0xa7728b(0xfd)](_0x1ccd46=>typeof _0x1ccd46[_0xa7728b(0xb9)]['id']==_0xa7728b(0x1dc)&&_0x5f3acd&&_0x5f3acd[_0xa7728b(0xaa)](_0x1ccd46[_0xa7728b(0xb9)]['id'])?{..._0x1ccd46,'attrs':{..._0x1ccd46[_0xa7728b(0xb9)],'id':_0x1ccd46[_0xa7728b(0xb9)]['id']+_0xfd00ff[_0xa7728b(0x168)]}}:_0x1ccd46)}:_0x2fb3ec;}function We(){const _0xd37c24=_0x35f985;return Math[_0xd37c24(0x1ce)]()[_0xd37c24(0xa4)](0x24)['substring'](0x2,0x8);}b[_0x35f985(0x189)]=_0x35f985(0x16d);const qe={'tag':_0x35f985(0xbd),'attrs':{'xmlns':_0x35f985(0x179),'fill':_0x35f985(0x180),'viewBox':_0x35f985(0xee),'width':_0x35f985(0x1af),'height':_0x35f985(0x1af)},'children':[{'tag':_0x35f985(0xac),'attrs':{'fill':_0x35f985(0x111),'d':_0x35f985(0x131),'fillRule':'evenodd','clipRule':_0x35f985(0xe0)}}]},le=_0x4f9a81(function(_0x1f8113,_0x4e41f9){const _0x426b8b=_0x35f985;return _0x2dac4d(b,Object[_0x426b8b(0xcd)]({},_0x1f8113,{'id':'check-mark-icon','ref':_0x4e41f9,'icon':qe}));});le[_0x35f985(0x189)]='CheckMarkIcon';const Xe={'tag':'svg','attrs':{'xmlns':_0x35f985(0x179),'fill':_0x35f985(0x180),'viewBox':_0x35f985(0xee),'width':_0x35f985(0x1af),'height':_0x35f985(0x1af)},'children':[{'tag':_0x35f985(0xac),'attrs':{'fill':'currentColor','d':_0x35f985(0xf1)}}]},ue=_0x4f9a81(function(_0x20201b,_0x560335){const _0x4aba97=_0x35f985;return _0x2dac4d(b,Object[_0x4aba97(0xcd)]({},_0x20201b,{'id':_0x4aba97(0xec),'ref':_0x560335,'icon':Xe}));});ue[_0x35f985(0x189)]=_0x35f985(0x129);const Je={'tag':_0x35f985(0xbd),'attrs':{'xmlns':_0x35f985(0x179),'fill':_0x35f985(0x180),'viewBox':_0x35f985(0xee),'width':_0x35f985(0x1af),'height':_0x35f985(0x1af)},'children':[{'tag':_0x35f985(0xac),'attrs':{'fill':'currentColor','d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x35f985(0xac),'attrs':{'fill':_0x35f985(0x111),'d':_0x35f985(0x1c5)}},{'tag':'path','attrs':{'fill':_0x35f985(0x111),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x35f985(0xe0),'clipRule':_0x35f985(0xe0)}}]},ve=_0x4f9a81(function(_0x126f31,_0x5ee194){const _0x290465=_0x35f985;return _0x2dac4d(b,Object[_0x290465(0xcd)]({},_0x126f31,{'id':'help-icon','ref':_0x5ee194,'icon':Je}));});ve[_0x35f985(0x189)]=_0x35f985(0x110);const Qe={'tag':_0x35f985(0xbd),'attrs':{'xmlns':_0x35f985(0x179),'fill':'none','viewBox':_0x35f985(0xee),'width':_0x35f985(0x1af),'height':_0x35f985(0x1af)},'children':[{'tag':'g','attrs':{'clipPath':_0x35f985(0x119)},'children':[{'tag':_0x35f985(0xac),'attrs':{'stroke':_0x35f985(0x111),'d':_0x35f985(0xd5),'strokeLinecap':_0x35f985(0xda),'strokeLinejoin':_0x35f985(0xda),'strokeWidth':1.2}}]},{'tag':_0x35f985(0x1f0),'attrs':{},'children':[{'tag':_0x35f985(0x146),'attrs':{'id':_0x35f985(0x1c4)},'children':[{'tag':_0x35f985(0xac),'attrs':{'fill':'white','d':_0x35f985(0x1a4)}}]}]}],'defIds':[_0x35f985(0x1c4)]},de=_0x4f9a81(function(_0x27b54e,_0x2cddb6){return _0x2dac4d(b,Object['assign']({},_0x27b54e,{'id':'off-line-icon','ref':_0x2cddb6,'icon':Qe}));});de[_0x35f985(0x189)]=_0x35f985(0x19b);const en={'tag':_0x35f985(0xbd),'attrs':{'xmlns':_0x35f985(0x179),'fill':_0x35f985(0x180),'viewBox':_0x35f985(0x157),'width':_0x35f985(0x1af),'height':_0x35f985(0x1af)},'children':[{'tag':'g','attrs':{'clipPath':_0x35f985(0x156)},'children':[{'tag':_0x35f985(0xac),'attrs':{'stroke':_0x35f985(0x111),'d':_0x35f985(0x1f2),'strokeLinecap':'round','strokeLinejoin':_0x35f985(0xda),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x35f985(0x146),'attrs':{'id':_0x35f985(0x1bf)},'children':[{'tag':_0x35f985(0xac),'attrs':{'fill':_0x35f985(0x18f),'d':_0x35f985(0x1a4),'transform':_0x35f985(0x1e1)}}]}]}],'defIds':[_0x35f985(0x1bf)]},ge=_0x4f9a81(function(_0xc46ce,_0x181188){const _0x3c584e=_0x35f985;return _0x2dac4d(b,Object['assign']({},_0xc46ce,{'id':_0x3c584e(0xf2),'ref':_0x181188,'icon':en}));});ge[_0x35f985(0x189)]=_0x35f985(0x1e7);function nn(_0x82cd02){const _0x45ee6e=_0x35f985;var _0x4072eb,_0x555467;const {mcpCoreConfig:_0x5a2b87,onSave:_0x339e44,loading:_0x419f95=!0x1,config:_0x4fad25,connectionStatus$:_0x4319e5,connectionError$:_0x1a1309,currentApiKey$:_0x4af860,currentSessionId$:_0x68584a}=_0x82cd02,_0x33bf05=_0x50b19d(_0x5c2835),_0x11e946=_0x9b4ea2(_0x4319e5,_0x43f8f4[_0x45ee6e(0x137)]),_0x4f172f=_0x9b4ea2(_0x1a1309,_0x519a1c[_0x45ee6e(0x103)]),_0x4f15fb=_0x9b4ea2(_0x68584a,''),_0x4f4ff3=_0x9b4ea2(_0x4af860,''),[_0x25e351,_0x894212]=_0xbb6ab3(_0x4f4ff3||''),_0x404905=!0x0,_0x169881=_0x4fad25['showDeveloperTools']&&_0x5a2b87[_0x45ee6e(0x1a5)]&&(_0x5a2b87[_0x45ee6e(0x1a5)][_0x45ee6e(0xaa)](_0x45ee6e(0xe5))||_0x5a2b87['mcpServerUrl'][_0x45ee6e(0xaa)]('univer.ai')),_0x3c79b9=(_0x4072eb=_0x5a2b87[_0x45ee6e(0x1a5)])==null?void 0x0:_0x4072eb[_0x45ee6e(0xaa)]('univer.plus'),_0x47b366=(_0x555467=_0x5a2b87['mcpServerUrl'])==null?void 0x0:_0x555467[_0x45ee6e(0xaa)]('univer.ai'),_0x1b70ee=_0x3c79b9?_0x45ee6e(0x134):_0x45ee6e(0x1b1),_0x4da799=_0x4fad25[_0x45ee6e(0x1f8)]&&(_0x3c79b9||_0x47b366),[_0xe08b2,_0x235504]=_0xbb6ab3(!_0x25e351[_0x45ee6e(0x17f)]()),_0x2c8af5=(_0x1223b1,_0x6a71a)=>{const _0x39c3d4=_0x45ee6e;if(_0x6a71a===_0x519a1c[_0x39c3d4(0x120)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x1223b1){case _0x43f8f4[_0x39c3d4(0x130)]:return _0x39c3d4(0xd0);case _0x43f8f4[_0x39c3d4(0x1b0)]:case _0x43f8f4['RETRYING']:return _0x39c3d4(0xa8);case _0x43f8f4[_0x39c3d4(0x11e)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0x39c3d4(0x1b6);}},_0x56b813=(_0x3c861b,_0xd31722)=>{const _0x4b3767=_0x45ee6e;if(_0xd31722===_0x519a1c[_0x4b3767(0x120)])return'univer-bg-red-500';switch(_0x3c861b){case _0x43f8f4[_0x4b3767(0x130)]:return _0x4b3767(0x148);case _0x43f8f4[_0x4b3767(0x1b0)]:case _0x43f8f4['RETRYING']:return _0x4b3767(0x1e4);case _0x43f8f4[_0x4b3767(0x11e)]:return _0x4b3767(0x1d1);default:return _0x4b3767(0x166);}},_0x32d4dd=_0xf0c9cd=>{const _0x191e09=_0x45ee6e;switch(_0xf0c9cd){case _0x43f8f4['CONNECTED']:return _0x33bf05['t']('mcpConfig.connectionStatus.connected');case _0x43f8f4[_0x191e09(0x1b0)]:return _0x33bf05['t'](_0x191e09(0xfb));case _0x43f8f4[_0x191e09(0x11e)]:return _0x33bf05['t'](_0x191e09(0x114));case _0x43f8f4[_0x191e09(0x13a)]:return _0x33bf05['t'](_0x191e09(0x18e));default:return _0x33bf05['t']('mcpConfig.connectionStatus.disconnected');}},_0x36b5ba=_0x1c2462=>{const _0x40d5b6=_0x45ee6e;switch(_0x1c2462){case _0x519a1c['UNAUTHORIZED']:return _0x33bf05['t'](_0x40d5b6(0x13c));case _0x519a1c['SESSION_ID_OCCUPIED']:return _0x33bf05['t'](_0x40d5b6(0x191));case _0x519a1c['NETWORK_ERROR']:return _0x33bf05['t'](_0x40d5b6(0x1d8));case _0x519a1c[_0x40d5b6(0x163)]:return _0x33bf05['t'](_0x40d5b6(0xf4));default:return'';}},_0x425a3e=_0x1ffba4(()=>{const _0x39be93=_0x45ee6e,_0x54e3f5={..._0x5a2b87,'apiKey':_0x25e351[_0x39be93(0x17f)](),'enableAuth':_0x404905};_0x339e44(_0x54e3f5);},[_0x5a2b87,_0x25e351,_0x404905,_0x339e44]),_0xf79a3a=_0x25e351[_0x45ee6e(0x17f)]()[_0x45ee6e(0xba)]>0x0;return _0xd9d937(_0x45ee6e(0x149),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0xb8939f('div',{'className':_0x45ee6e(0x18b),'children':_0xd9d937('div',{'className':_0x45ee6e(0xb4),'children':[_0xb8939f('div',{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0xb8939f(_0x45ee6e(0x12e),{'className':_0x45ee6e(0xea),'children':'⚙'})}),_0xb8939f('div',{'children':_0xb8939f('p',{'className':_0x45ee6e(0x109),'children':_0x33bf05['t'](_0x45ee6e(0x181))})})]})}),_0xd9d937(_0x45ee6e(0x149),{'className':_0x45ee6e(0x118),'children':[_0xb8939f('div',{'className':_0x2d758b(_0x45ee6e(0x112),_0x2c8af5(_0x11e946,_0x4f172f)),'children':_0xd9d937(_0x45ee6e(0x149),{'className':_0x45ee6e(0x1c0),'children':[_0xb8939f(_0x45ee6e(0x149),{'className':_0x2d758b(_0x45ee6e(0xbe),_0x56b813(_0x11e946,_0x4f172f))}),_0xb8939f(_0x45ee6e(0x12e),{'className':_0x45ee6e(0x144),'children':_0x32d4dd(_0x11e946)})]})}),_0x4f172f!==_0x519a1c[_0x45ee6e(0x103)]&&(_0x11e946===_0x43f8f4[_0x45ee6e(0x11e)]||_0x4f172f===_0x519a1c[_0x45ee6e(0x120)])&&_0xb8939f(_0x45ee6e(0x149),{'className':_0x45ee6e(0x13f),'children':_0xd9d937(_0x45ee6e(0x149),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0xb8939f(_0x45ee6e(0x12e),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0xb8939f('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x36b5ba(_0x4f172f)})]})})]}),_0xb8939f(_0x45ee6e(0x149),{'className':_0x45ee6e(0x1d9),'children':_0xd9d937(_0x45ee6e(0x149),{'className':_0x45ee6e(0xdb),'children':[_0xd9d937('div',{'className':_0x45ee6e(0xf6),'children':[_0xd9d937('label',{'className':_0x45ee6e(0x1bc),'children':[_0xb8939f(_0x45ee6e(0x12e),{'children':'🔑'}),'\x20',_0x33bf05['t']('mcpConfig.apiKey'),_0xb8939f(_0x45ee6e(0x12e),{'className':_0x45ee6e(0xc5),'children':'*'}),_0x169881&&_0xb8939f('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x33bf05['t'](_0x45ee6e(0x1bd)),'role':_0x45ee6e(0x1a1),'onClick':()=>_0x235504(!0x0),'children':_0xb8939f(ve,{})})]}),_0xb8939f(_0x1ccfc9,{'type':_0x45ee6e(0x172),'placeholder':_0x33bf05['t'](_0x45ee6e(0x14b)),'value':_0x25e351,'disabled':_0x419f95,'autoComplete':_0x45ee6e(0x150),'onChange':_0x894212}),_0xb8939f('p',{'className':_0x45ee6e(0xa7),'children':_0x33bf05['t'](_0x45ee6e(0x101))})]}),_0x169881&&_0xe08b2&&_0xd9d937(_0x45ee6e(0x149),{'className':_0x45ee6e(0x152),'children':[_0xb8939f('a',{'className':_0x45ee6e(0xb5),'role':'button','onClick':()=>_0x235504(!0x1),'children':_0xb8939f(ue,{'className':_0x45ee6e(0xbc)})}),_0xd9d937(_0x45ee6e(0x149),{'className':_0x45ee6e(0x158),'children':[_0xb8939f('div',{'className':_0x45ee6e(0x107),'children':_0xb8939f('span',{'className':_0x45ee6e(0x1a2),'children':'🚀'})}),_0xd9d937('div',{'className':'univer-flex-1','children':[_0xb8939f('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x33bf05['t'](_0x45ee6e(0x1bd))}),_0xb8939f('p',{'className':_0x45ee6e(0x1e3),'children':_0x33bf05['t'](_0x45ee6e(0x195))}),_0xb8939f(_0x45ee6e(0x149),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x4da799&&_0xd9d937('a',{'className':_0x45ee6e(0x188),'href':_0x1b70ee,'target':_0x45ee6e(0xa5),'rel':_0x45ee6e(0xc7),'children':[_0xb8939f('span',{'children':'🤖'}),_0x33bf05['t'](_0x45ee6e(0x1cd)),_0xb8939f(_0x45ee6e(0x12e),{'className':_0x45ee6e(0x170),'children':'↗'})]})}),_0xd9d937(_0x45ee6e(0x149),{'className':_0x45ee6e(0x1da),'children':['✨','\x20',_0x33bf05['t'](_0x45ee6e(0x17e))]})]})]})]}),_0x4fad25[_0x45ee6e(0x1f8)]&&_0xd9d937(_0x45ee6e(0x149),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0xd9d937('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0xb8939f(_0x45ee6e(0x12e),{'children':'🔗'}),'\x20',_0x33bf05['t'](_0x45ee6e(0xbb))]}),_0xd9d937(_0x45ee6e(0x149),{'className':_0x45ee6e(0x151),'children':[_0xd9d937(_0x45ee6e(0x149),{'className':'univer-space-y-3','children':[_0xb8939f('p',{'className':_0x45ee6e(0x1ef),'children':_0x33bf05['t'](_0x45ee6e(0x199))}),_0xd9d937(_0x45ee6e(0x149),{'className':_0x45ee6e(0xf6),'children':[_0xb8939f(_0x45ee6e(0x149),{'className':_0x45ee6e(0x139),'children':_0x33bf05['t'](_0x45ee6e(0x11a))}),_0xd9d937('div',{'className':_0x45ee6e(0xcb),'children':[_0xd9d937(_0x45ee6e(0x149),{'className':_0x45ee6e(0x1c0),'children':[_0xb8939f('span',{'className':_0x45ee6e(0x12a),'children':'1'}),_0x33bf05['t'](_0x45ee6e(0xb0))]}),_0xd9d937(_0x45ee6e(0x149),{'className':_0x45ee6e(0x1c0),'children':[_0xb8939f('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x33bf05['t'](_0x45ee6e(0x1f7))]}),_0xd9d937(_0x45ee6e(0x149),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0xb8939f(_0x45ee6e(0x12e),{'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'}),_0x33bf05['t'](_0x45ee6e(0xa6))]})]})]})]}),_0xd9d937(_0x45ee6e(0x149),{'className':'univer-space-y-2','children':[_0xb8939f('div',{'className':_0x45ee6e(0x139),'children':_0x45ee6e(0x18d)}),_0xb8939f(_0x45ee6e(0x149),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0xb8939f(_0x45ee6e(0xe2),{'className':_0x45ee6e(0x143),'children':JSON[_0x45ee6e(0x1ae)]({'mcpServers':{'univer':{'url':_0x45ee6e(0x1a9)+(_0x4f15fb||_0x45ee6e(0xe3)),'type':_0x45ee6e(0x182),'headers':{'Authorization':_0x45ee6e(0x1a7)+(_0x25e351||'<API_KEY>')}}}},null,0x2)})})]}),_0xd9d937(_0x45ee6e(0x149),{'className':_0x45ee6e(0xb7),'children':[_0xb8939f(_0x45ee6e(0x149),{'className':_0x45ee6e(0x139),'children':_0x33bf05['t']('mcpConfig.configParameters')}),_0xd9d937(_0x45ee6e(0x149),{'className':_0x45ee6e(0xf6),'children':[_0xd9d937(_0x45ee6e(0x149),{'className':_0x45ee6e(0x1dd),'children':[_0xb8939f(_0x45ee6e(0x149),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0xd9d937(_0x45ee6e(0x149),{'className':_0x45ee6e(0x1b3),'children':[_0xb8939f(_0x45ee6e(0x149),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x45ee6e(0x14a)}),_0xb8939f(_0x45ee6e(0x149),{'className':_0x45ee6e(0xa7),'children':_0x33bf05['t']('mcpConfig.sessionIdDescription')})]})]}),_0xd9d937('div',{'className':_0x45ee6e(0x1dd),'children':[_0xb8939f('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0xd9d937(_0x45ee6e(0x149),{'className':_0x45ee6e(0x1b3),'children':[_0xb8939f(_0x45ee6e(0x149),{'className':_0x45ee6e(0x127),'children':'Authorization:'}),_0xb8939f(_0x45ee6e(0x149),{'className':_0x45ee6e(0xa7),'children':_0x33bf05['t'](_0x45ee6e(0x1b4))})]})]})]})]})]})]}),_0xb8939f(_0x55acef,{'onClick':_0x425a3e,'disabled':!_0xf79a3a||_0x419f95,'className':_0x45ee6e(0x1b5),'children':_0x419f95?_0xd9d937(_0x45ee6e(0x12e),{'className':_0x45ee6e(0x1c0),'children':[_0xb8939f('span',{'children':'⟲'}),_0x33bf05['t'](_0x45ee6e(0xce))]}):_0xd9d937(_0x45ee6e(0x12e),{'className':_0x45ee6e(0x1c0),'children':[_0xb8939f(le,{}),_0x33bf05['t'](_0x45ee6e(0x15f))]})}),_0xb8939f(_0x45ee6e(0x149),{'className':_0x45ee6e(0x192),'children':_0xd9d937('div',{'className':_0x45ee6e(0x1de),'children':[_0xb8939f(_0x45ee6e(0x12e),{'className':_0x45ee6e(0xc8),'children':'💡'}),_0xd9d937(_0x45ee6e(0x149),{'className':_0x45ee6e(0x1e9),'children':[_0xb8939f(_0x45ee6e(0x149),{'className':_0x45ee6e(0x133),'children':_0x45ee6e(0xb1)}),_0xd9d937(_0x45ee6e(0x149),{'children':['•',_0x33bf05['t'](_0x45ee6e(0xbf))]}),_0xd9d937(_0x45ee6e(0x149),{'children':['•',_0x33bf05['t'](_0x45ee6e(0x171))]})]})]})})]})})]});}const y=_0x35f985(0xfc),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object['getOwnPropertyDescriptor'],tn=(_0x35ae59,_0x4d439e,_0x9a6de0,_0xbb4eb7)=>{const _0xa903db=_0x35f985;for(var _0x3762ad=_0xbb4eb7>0x1?void 0x0:_0xbb4eb7?rn(_0x4d439e,_0x9a6de0):_0x4d439e,_0x52505b=_0x35ae59[_0xa903db(0xba)]-0x1,_0x27a3a6;_0x52505b>=0x0;_0x52505b--)(_0x27a3a6=_0x35ae59[_0x52505b])&&(_0x3762ad=_0x27a3a6(_0x3762ad)||_0x3762ad);return _0x3762ad;},d=(_0x2a528c,_0xc04b5e)=>(_0x7907a3,_0x54f9be)=>_0xc04b5e(_0x7907a3,_0x54f9be,_0x2a528c);const U=_0x35f985(0x1a3),L=_0x35f985(0x1f1);function _0x26ea(){const _0x5b7cff=['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','displayName','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','13784913ocwUeO','MCP\x20Configuration','mcpConfig.connectionStatus.retrying','white','Enter\x20your\x20API\x20key','mcpConfig.connectionError.sessionOccupied','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20状态未知','mcpConfig.apiApplyInfo.description','MCP_UI_PLUGIN','forEach','connectionError$','mcpConfig.configInstructions','_initializeCommands','OffLineIcon','3546lIAuVE','将配置添加到您的\x20MCP\x20客户端设置文件中','getItem','What\x20is\x20API\x20Key?','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','button','univer-text-blue-600','mcp.apiKey','M0\x200H16V16H0z','mcpServerUrl','show','Bearer\x20','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','https://mcp.univer.ai/mcp/?univer_session_id=','点击连接\x20MCP','connectionStatus$','registerCommand','__setCustomHeaders','stringify','1em','CONNECTING','https://console.univer.ai','mcpStatus.maxRetriesExceeded','univer-min-w-0\x20univer-flex-1','mcpConfig.authorizationDescription','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','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','配置保存失败','_localeService','您的\x20API\x20密钥安全存储在本地存储中','setItem','最大重试次数','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.apiApplyInfo.title','SESSION_ID_OCCUPIED','on-line-icon_clip0_910_349','univer-flex\x20univer-items-center\x20univer-gap-2','启用身份验证以获得安全连接','MCP\x20客户端配置','MCP\x20Disconnected','off-line-icon_clip0_910_343','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','mcpConfig.configError','_initStatusComponent','apiKey','MCP:\x20网络错误','mcpStatus.connected','_apiKey$','mcpStatus.unauthorized','mcpConfig.apiApplyInfo.univerAiLabel','random','showConfigPanel','API\x20密钥不能为空','univer-bg-red-500','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20密钥','showStatus','open','将以下配置添加到您的\x20MCP\x20客户端设置中:','什么是\x20API\x20密钥?','mcpConfig.connectionError.networkError','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.validation.apiKeyTooShort','string','univer-flex\x20univer-items-start\x20univer-gap-3','univer-flex\x20univer-gap-3','Click\x20to\x20configure\x20MCP','subscribeConfigValue$','translate(.97)','_handleConfigure','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-bg-blue-500','isValid','MCP\x20连接失败','OnLineIcon','Copy\x20the\x20JSON\x20configuration\x20below','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Click\x20to\x20connect\x20MCP','Max\x20Retries','会话\x20ID\x20已被占用,请稍后再试','mergeMenu','已连接','univer-text-xs\x20univer-text-gray-600','defs','mcp-config-dialog','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','children','_messageService','bottom','mask','mcpConfig.configStep2','showDeveloperTools','配置更改将立即生效','toString','_blank','mcpConfig.configStep3','univer-text-xs\x20univer-text-gray-500','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_commandService','includes','error','path','mcpStatus.disconnected','fill','mcpStatus.clickToConnect','mcpConfig.configStep1','Configuration\x20Notes:','_loading$','_connectionController','univer-flex\x20univer-items-center\x20univer-gap-3','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','_loadStoredApiKey','univer-space-y-3','MCP\x20重连中...','attrs','length','mcpConfig.connectionInfo','univer-size-4','svg','univer-size-2\x20univer-rounded-full','mcpConfig.note1','MCP:\x20Session\x20ID\x20Occupied','has','_dialogService','Univer\x20AI\x20控制台','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-text-red-500','MCP\x20已断开','noopener\x20noreferrer','univer-shrink-0\x20univer-text-blue-500','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20Retrying...','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','getConfig','assign','mcpConfig.saving','MCP\x20Connected','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','\x20-\x20','MCP:\x20Max\x20Retries\x20Exceeded','_mcpCoreConfig$','配置保存成功','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','univer-flex\x20univer-items-center','Univer\x20AI\x20Console','close','1593474BomHUn','round','univer-space-y-5','MenuIcon','连接失败','pluginName','_config','evenodd','_uiPartsService','pre','<SESSION_ID>','重连中...','univer.plus','_componentManager','Connected','univer-text-gray-500','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-text-white','_initAutoConnect','close-icon','_initConfigSync','0\x200\x2016\x2016','4776076AdqdZY','next','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','on-line-icon','COMMAND','mcpConfig.connectionError.maxRetriesExceeded','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-space-y-2','subscribe','MCP:\x20超出最大重试次数','entries','连接中...','mcpConfig.connectionStatus.connecting','mcp-ui.config','map','Error','9884752DfbsrE','保存配置','mcpConfig.apiKeyHint','removeItem','NONE','Configuration\x20saved\x20successfully','超出最大重试次数,请稍后再试','disposeWithMe','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','validateApiKey','univer-text-sm\x20univer-text-gray-500','Failed\x20to\x20save\x20configuration','mcpStatus.sessionOccupied','_logService','BUTTON','7faYsMX','Configuration\x20Steps:','HelpIcon','currentColor','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','未连接','mcpConfig.connectionStatus.failed','MCPConfigPanel','_localStorageService','mcpStatus.failed','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','url(#off-line-icon_clip0_910_343)','mcpConfig.configStepTitle','API\x20密钥无效,请检查密钥是否正确','Save\x20Configuration','push','FAILED','add','UNAUTHORIZED','getOwnPropertyDescriptor','MCP:\x20Unauthorized','MCP\x20Connection\x20Failed','current','Get\x20your\x20API\x20key\x20in\x20seconds','register','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_registerComponent','CloseIcon','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','Success','MCP:\x20会话\x20ID\x20已被占用','815400MeDHIx','span','colorChannel1','CONNECTED','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','MCP\x20Connecting...','univer-font-medium','https://console.univer.plus','MCP:\x20未授权','univer-mr-2\x20univer-flex\x20univer-text-xl','DISCONNECTED','defineProperty','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','RETRYING','_injector','mcpConfig.connectionError.unauthorized','sessionId$','url(#$1','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.validation.invalidConfig','MCP\x20已连接','mcpStatus.networkError','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-text-sm\x20univer-font-medium','univerjs-icon\x20univerjs-icon-','clipPath','mcpConfig.title','univer-bg-green-500','div','univer_session_id:','mcpConfig.apiKeyPlaceholder','getCurrentConfig','Invalid\x20configuration','4490cLYohG','setConfig','off','univer-space-y-4','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','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','use','url(#on-line-icon_clip0_910_349)','0\x200\x2017\x2016','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','点击配置\x20MCP','defIds','replace','registerComponent','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','symbol','mcpConfig.save','value','Disconnected','mcpConfig.configSaved','MAX_RETRIES_EXCEEDED','9226iutNFX','配置步骤:','univer-bg-gray-500','配置\x20MCP\x20使用\x20AI\x20操作电子表格','idSuffix','onStarting','_config$','_configService','get','UniverIcon','启用身份验证','Retrying...','univer-text-gray-400','mcpConfig.note2','text','xlink:href','tag','API\x20Key','\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','配置无效','_handleConfigSave','http://www.w3.org/2000/svg','会话ID','_initializeMenus','_validateConfig','_mcpConnectionController','mcpConfig.apiApplyInfo.getStarted','trim','none','mcpConfig.description','http','请输入您的\x20API\x20密钥','Saving...','MCP\x20Client\x20Configuration','Configuration\x20Parameters:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately'];_0x26ea=function(){return _0x5b7cff;};return _0x26ea();}let I=class extends _0xd57a6{constructor(_0xb9ea4b,_0x4111f4,_0x39eaf4,_0x27c22a,_0x4ef9df,_0x12b5bd,_0x14315a,_0x97741d,_0x3d3b9b,_0x571017){const _0x440a9a=_0x35f985;super(),x(this,_0x440a9a(0xb2),new _0x43dd3c(!0x1)),x(this,'_mcpCoreConfig$',new _0x43dd3c({})),x(this,_0x440a9a(0x16a),new _0x43dd3c({})),x(this,'_apiKey$',new _0x43dd3c('')),x(this,_0x440a9a(0x178),async _0x2877c6=>{const _0x280080=_0x440a9a;var _0x378a7f,_0x4321c1;this[_0x280080(0xb2)]['next'](!0x0);try{const _0x4b0607=await this[_0x280080(0x17c)](_0x2877c6);if(!_0x4b0607[_0x280080(0x1e5)]){this['_messageService']['show']({'type':_0x257810[_0x280080(0xfe)],'content':_0x4b0607['errorMessage']||this['_localeService']['t'](_0x280080(0x140))});return;}_0x2877c6['apiKey']?await this[_0x280080(0x116)][_0x280080(0x1ba)](U,_0x2877c6['apiKey']['trim']()):await this[_0x280080(0x116)][_0x280080(0x102)](U),this[_0x280080(0x1cb)][_0x280080(0xf0)](((_0x378a7f=_0x2877c6[_0x280080(0x1c8)])==null?void 0x0:_0x378a7f['trim']())||''),this[_0x280080(0x17d)][_0x280080(0x1ad)]({'Authorization':_0x280080(0x1a7)+((_0x4321c1=_0x2877c6[_0x280080(0x1c8)])==null?void 0x0:_0x4321c1['trim']())}),this[_0x280080(0x1f4)][_0x280080(0x1a6)]({'type':_0x257810[_0x280080(0x12b)],'content':this[_0x280080(0x1b8)]['t'](_0x280080(0x162))}),setTimeout(()=>{const _0x51d1e4=_0x280080;this[_0x51d1e4(0xc2)]['close'](L);},0x320);}catch(_0x5c3412){this[_0x280080(0x10c)][_0x280080(0xab)](_0x280080(0xc4),_0x5c3412),this[_0x280080(0x1f4)]['show']({'type':_0x257810['Error'],'content':this[_0x280080(0x1b8)]['t'](_0x280080(0x1c6))});}finally{this['_loading$'][_0x280080(0xf0)](!0x1);}}),(this[_0x440a9a(0x13b)]=_0xb9ea4b,this['_uiPartsService']=_0x4111f4,this[_0x440a9a(0x16b)]=_0x39eaf4,this[_0x440a9a(0x116)]=_0x27c22a,this['_dialogService']=_0x4ef9df,this[_0x440a9a(0x1f4)]=_0x12b5bd,this[_0x440a9a(0xe6)]=_0x14315a,this[_0x440a9a(0x1b8)]=_0x97741d,this[_0x440a9a(0x10c)]=_0x3d3b9b,this['_mcpConnectionController']=_0x571017,this[_0x440a9a(0xed)](),this[_0x440a9a(0xb6)](),this[_0x440a9a(0x128)]());}[_0x35f985(0x1cf)](){const _0x2ffd9b=_0x35f985,_0x38bb14=this[_0x2ffd9b(0x16b)]['getConfig'](y);_0x38bb14!=null&&_0x38bb14['showDeveloperTools']&&this['_dialogService'][_0x2ffd9b(0x1d5)]({'id':L,'title':{'title':this['_localeService']['t'](_0x2ffd9b(0x147))},'children':{'label':_0x2ffd9b(0x115)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x364964=_0x2ffd9b;this[_0x364964(0xc2)][_0x364964(0xd8)](L);}});}[_0x35f985(0x14c)](){return this['_mcpCoreConfig$']['value'];}[_0x35f985(0x128)](){const _0x24444e=_0x35f985;this[_0x24444e(0x106)](this[_0x24444e(0xe6)][_0x24444e(0x126)]('MCPConfigPanel',this['_createConfigPanelComponent']()));}['_createConfigPanelComponent'](){return _0x1f5204(()=>{const _0x59e2b0=_0x343f;var _0x372aa0,_0x481c01,_0x11879d;return _0xb8939f(nn,{'config':this[_0x59e2b0(0x16a)][_0x59e2b0(0x160)],'mcpCoreConfig':this[_0x59e2b0(0xd3)][_0x59e2b0(0x160)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x59e2b0(0x178)],'loading':this['_loading$'][_0x59e2b0(0x160)],'connectionStatus$':(_0x372aa0=this[_0x59e2b0(0x17d)])==null?void 0x0:_0x372aa0[_0x59e2b0(0x1ab)],'connectionError$':(_0x481c01=this[_0x59e2b0(0x17d)])==null?void 0x0:_0x481c01[_0x59e2b0(0x198)],'currentSessionId$':(_0x11879d=this['_mcpConnectionController'])==null?void 0x0:_0x11879d[_0x59e2b0(0x13d)]});},this['_injector']);}[_0x35f985(0xed)](){const _0x36d267=_0x35f985;this['disposeWithMe'](this[_0x36d267(0x16b)][_0x36d267(0x1e0)](_0x40b984)[_0x36d267(0xf7)](_0x1c745d=>{this['_mcpCoreConfig$']['next'](_0x1c745d||{});}));const _0x10706f=this['_configService'][_0x36d267(0xcc)](_0x40b984);this[_0x36d267(0xd3)][_0x36d267(0xf0)](_0x10706f||{}),this[_0x36d267(0x106)](this[_0x36d267(0x16b)][_0x36d267(0x1e0)](y)[_0x36d267(0xf7)](_0x5c06ac=>{this['_config$']['next'](_0x5c06ac||{});}));const _0x23e4b6=this[_0x36d267(0x16b)][_0x36d267(0xcc)](y);this['_config$'][_0x36d267(0xf0)](_0x23e4b6||{});}async[_0x35f985(0xb6)](){const _0x3f76d5=_0x35f985,_0x51cbd3=this[_0x3f76d5(0x16b)][_0x3f76d5(0xcc)](y);if(!(_0x51cbd3!=null&&_0x51cbd3[_0x3f76d5(0x1f8)]))return;const _0x5a864b=await this[_0x3f76d5(0x116)][_0x3f76d5(0x19e)](U);_0x5a864b&&(this[_0x3f76d5(0x17d)][_0x3f76d5(0x1ad)]({'Authorization':_0x3f76d5(0x1a7)+_0x5a864b}),this[_0x3f76d5(0x1cb)][_0x3f76d5(0xf0)](_0x5a864b));}async['_validateConfig'](_0x3d6613){const _0x175c98=_0x35f985;if(!_0x3d6613[_0x175c98(0x1c8)]||_0x3d6613[_0x175c98(0x1c8)][_0x175c98(0x17f)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x175c98(0x1b8)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x3d6613[_0x175c98(0x1c8)][_0x175c98(0x17f)]()[_0x175c98(0xba)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x175c98(0x1b8)]['t'](_0x175c98(0x1db))};try{const _0x29905b=await this[_0x175c98(0x13b)][_0x175c98(0x16c)](_0x449af0)[_0x175c98(0x108)](_0x3d6613[_0x175c98(0x1c8)][_0x175c98(0x17f)]());return _0x29905b[_0x175c98(0x1e5)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x29905b[_0x175c98(0xab)]||this[_0x175c98(0x1b8)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x159aa6){return console['warn'](_0x175c98(0xf5),_0x159aa6),{'isValid':!0x0};}}};I=tn([d(0x0,_0x49af88(_0x3d8726)),d(0x1,_0x289555),d(0x2,_0x482877),d(0x3,_0x315e3d),d(0x4,_0x2eb18a),d(0x5,_0x118215),d(0x6,_0x49af88(_0x227562)),d(0x7,_0x49af88(_0x5c2835)),d(0x8,_0x4dd9b0),d(0x9,_0x49af88(_0x449af0))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x40000c[_0x35f985(0xf3)],'handler':async(_0x1edf9b,_0x12333f)=>(_0x1edf9b[_0x35f985(0x16c)](I)[_0x35f985(0x1cf)](),!0x0)};function pe(_0x2ecaa0,_0x4ad517){const _0x12b270=_0x35f985;switch(_0x2ecaa0){case _0x43f8f4[_0x12b270(0x137)]:return _0x12b270(0xad);case _0x43f8f4[_0x12b270(0x1b0)]:return'mcpStatus.connecting';case _0x43f8f4[_0x12b270(0x130)]:return _0x12b270(0x1ca);case _0x43f8f4[_0x12b270(0x11e)]:switch(_0x4ad517){case _0x519a1c['UNAUTHORIZED']:return _0x12b270(0x1cc);case _0x519a1c[_0x12b270(0x1be)]:return _0x12b270(0x10b);case _0x519a1c['NETWORK_ERROR']:return _0x12b270(0x142);case _0x519a1c['MAX_RETRIES_EXCEEDED']:return _0x12b270(0x1b2);default:return _0x12b270(0x117);}case _0x43f8f4[_0x12b270(0x13a)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function on(_0x63825a,_0x325b9f,_0x12ee5c,_0x3487be=!0x0){const _0x34f140=_0x35f985,_0x3d72ed=pe(_0x63825a,_0x325b9f),_0x248fc1=_0x12ee5c['t'](_0x3d72ed);return _0x3487be?_0x63825a===_0x43f8f4[_0x34f140(0x137)]&&_0x325b9f===_0x519a1c[_0x34f140(0x120)]?_0x248fc1+_0x34f140(0xd1)+_0x12ee5c['t']('mcpStatus.clickToConfigure'):_0x63825a===_0x43f8f4[_0x34f140(0x130)]?''+_0x248fc1:_0x63825a===_0x43f8f4[_0x34f140(0x137)]||_0x63825a===_0x43f8f4[_0x34f140(0x11e)]?_0x248fc1+_0x34f140(0xd1)+_0x12ee5c['t'](_0x34f140(0xaf)):_0x248fc1:_0x248fc1;}function sn(_0x40f524){const _0x1c4671=_0x35f985;switch(_0x40f524){case _0x43f8f4['CONNECTED']:return'univer-text-green-500';case _0x43f8f4['CONNECTING']:case _0x43f8f4['RETRYING']:return'univer-text-yellow-500';case _0x43f8f4[_0x1c4671(0x11e)]:case _0x43f8f4['DISCONNECTED']:return _0x1c4671(0xc5);default:return _0x1c4671(0xe8);}}function cn(_0xb4e46f){const _0x2e1c2a=_0x35f985,{status$:_0xb14820,error$:_0x46c7a6,onConfigure:_0x5b49a6,showClickable:_0xb8cd4b=!0x0}=_0xb4e46f,_0x5a236c=_0x9b4ea2(_0xb14820,_0x43f8f4[_0x2e1c2a(0x137)]),_0x1c69d3=_0x9b4ea2(_0x46c7a6,_0x519a1c[_0x2e1c2a(0x103)]),_0x126723=_0x50b19d(_0x5c2835),_0x4d2753=_0x5a236c===_0x43f8f4[_0x2e1c2a(0x130)];_0x5a236c===_0x43f8f4[_0x2e1c2a(0x1b0)]||_0x43f8f4[_0x2e1c2a(0x13a)];const _0x2e7577=_0x126723['t'](pe(_0x5a236c,_0x1c69d3)),_0x5c757d=on(_0x5a236c,_0x1c69d3,_0x126723,_0xb8cd4b),_0x569fe5=sn(_0x5a236c),_0x58e7b9=_0x4d2753?_0xb8939f(ge,{}):_0xb8939f(de,{}),_0x1fb0ad=_0x1ffba4(()=>{_0xb8cd4b&&_0x5b49a6&&_0x5b49a6();},[_0xb8cd4b,_0x5b49a6]);function _0x205c82(){const _0x2606fc=_0x2e1c2a;return _0xd9d937(_0x2606fc(0x149),{'className':_0x2d758b(_0x2606fc(0xd6),_0xb8cd4b&&_0x5b49a6&&_0x2606fc(0x176)),'role':_0x2606fc(0x1a1),'onClick':_0xb8cd4b&&_0x5b49a6?_0x1fb0ad:void 0x0,'children':[_0xb8939f(_0x2606fc(0x149),{'className':_0x2d758b(_0x2606fc(0x136),_0x569fe5),'children':_0x58e7b9}),_0xb8939f(_0x2606fc(0x149),{'className':_0x2606fc(0xe9),'children':_0x2e7577})]});}return _0xb8939f(_0x413d7d,{'title':_0x5c757d,'placement':_0x2e1c2a(0x1f5),'children':_0x205c82()});}var an=Object[_0x35f985(0x121)],ln=(_0x1c8116,_0x381f45,_0x224ec3,_0xd14810)=>{const _0x218bdc=_0x35f985;for(var _0x1d3f99=_0xd14810>0x1?void 0x0:_0xd14810?an(_0x381f45,_0x224ec3):_0x381f45,_0x327975=_0x1c8116[_0x218bdc(0xba)]-0x1,_0x3f7655;_0x327975>=0x0;_0x327975--)(_0x3f7655=_0x1c8116[_0x327975])&&(_0x1d3f99=_0x3f7655(_0x1d3f99)||_0x1d3f99);return _0x1d3f99;},M=(_0x7785c9,_0x31e197)=>(_0x171f2a,_0x5dadd4)=>_0x31e197(_0x171f2a,_0x5dadd4,_0x7785c9);let O=class extends _0xd57a6{constructor(_0x46a688,_0x370f84,_0x4e629c,_0x3d8a89){const _0x13e309=_0x35f985;super(),this[_0x13e309(0x13b)]=_0x46a688,this[_0x13e309(0xb3)]=_0x370f84,this['_uiPartsService']=_0x4e629c,this[_0x13e309(0x16b)]=_0x3d8a89,this[_0x13e309(0xeb)](),this[_0x13e309(0x1c7)]();}[_0x35f985(0xeb)](){const _0x38f992=_0x35f985,_0x365020=this[_0x38f992(0x16b)]['getConfig'](y);_0x365020!=null&&_0x365020[_0x38f992(0x1f8)]&&(this[_0x38f992(0xb3)]['enableAutoConnect']=!0x1);}[_0x35f985(0x1c7)](){const _0x436b1e=_0x35f985,_0x478b4c=this['_configService']['getConfig'](y);(_0x478b4c==null?void 0x0:_0x478b4c[_0x436b1e(0x1d4)])!==!0x1&&this[_0x436b1e(0x106)](this[_0x436b1e(0xe1)][_0x436b1e(0x15c)](_0x6ae1f6['HEADER_MENU'],()=>{const _0x26b0d0=_0x436b1e;var _0x91698e;return _0x1f5204(un({'status$':this[_0x26b0d0(0xb3)]['connectionStatus$'],'error$':this[_0x26b0d0(0xb3)]['connectionError$'],'onConfigure':()=>this[_0x26b0d0(0x1e2)](),'showClickable':(_0x91698e=_0x478b4c==null?void 0x0:_0x478b4c[_0x26b0d0(0x1f8)])!=null?_0x91698e:!0x1}),this[_0x26b0d0(0x13b)]);}));}[_0x35f985(0x1e2)](){const _0x346774=_0x35f985;this[_0x346774(0x13b)][_0x346774(0x16c)](I)[_0x346774(0x1cf)]();}};O=ln([M(0x0,_0x49af88(_0x3d8726)),M(0x1,_0x49af88(_0x449af0)),M(0x2,_0x289555),M(0x3,_0x482877)],O);function _0x343f(_0x1842c3,_0x4d6364){_0x1842c3=_0x1842c3-0xa3;const _0x26eaf1=_0x26ea();let _0x343fa9=_0x26eaf1[_0x1842c3];return _0x343fa9;}function un(_0x1ac156){const {status$:_0x211281,error$:_0xf7a79d,onConfigure:_0x2f8a94,showClickable:_0x42cd0d}=_0x1ac156;return function(){return _0xb8939f(cn,{'status$':_0x211281,'error$':_0xf7a79d,'onConfigure':_0x2f8a94,'showClickable':_0x42cd0d});};}function vn(_0x1b9ae5){const _0x8a7207=_0x35f985;return{'id':V['id'],'type':_0x30df3b[_0x8a7207(0x10d)],'icon':_0x8a7207(0xdc),'title':_0x8a7207(0x147),'tooltip':'mcpConfig.title'};}const dn={[_0xa6aee['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x35f985(0x121)],pn=(_0x150967,_0x569740,_0x15554b,_0x2f4daf)=>{const _0x1b0093=_0x35f985;for(var _0x4ecf1e=_0x2f4daf>0x1?void 0x0:_0x2f4daf?gn(_0x569740,_0x15554b):_0x569740,_0xd26673=_0x150967[_0x1b0093(0xba)]-0x1,_0x43faab;_0xd26673>=0x0;_0xd26673--)(_0x43faab=_0x150967[_0xd26673])&&(_0x4ecf1e=_0x43faab(_0x4ecf1e)||_0x4ecf1e);return _0x4ecf1e;},re=(_0x3b07c2,_0x4d973c)=>(_0x4fef8d,_0x31bb25)=>_0x4d973c(_0x4fef8d,_0x31bb25,_0x3b07c2);let D=class extends _0xd57a6{constructor(_0x5d13cb,_0x26b1a4){const _0x5785b2=_0x35f985;super(),this['_commandService']=_0x5d13cb,this['_menuManagerService']=_0x26b1a4,this[_0x5785b2(0x19a)](),this[_0x5785b2(0x17b)]();}[_0x35f985(0x19a)](){const _0x377372=_0x35f985;[V][_0x377372(0x197)](_0x5041b6=>{const _0x4f9744=_0x377372;this['disposeWithMe'](this[_0x4f9744(0xa9)][_0x4f9744(0x1ac)](_0x5041b6));});}[_0x35f985(0x17b)](){const _0x1106eb=_0x35f985;this['_menuManagerService'][_0x1106eb(0x1ed)](dn);}};D=pn([re(0x0,_0x4ef675),re(0x1,_0x19c278)],D);const Mn={'mcpStatus':{'disconnected':_0x35f985(0x1c3),'connecting':_0x35f985(0x132),'connected':_0x35f985(0xcf),'failed':_0x35f985(0x123),'retrying':_0x35f985(0xca),'unknown':_0x35f985(0x154),'unauthorized':_0x35f985(0x122),'sessionOccupied':_0x35f985(0xc0),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x35f985(0xd2),'clickToConnect':_0x35f985(0x1ea),'clickToConfigure':_0x35f985(0x1df)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x35f985(0x1a8),'apiKey':_0x35f985(0x175),'apiKeyPlaceholder':_0x35f985(0x190),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x35f985(0x185),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x35f985(0x10f),'configStep1':_0x35f985(0x1e8),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x35f985(0x1d2),'sessionId':'Session\x20ID','sessionIdDescription':_0x35f985(0x15d),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x35f985(0x186),'maxRetries':_0x35f985(0x1eb),'save':_0x35f985(0x11c),'saving':_0x35f985(0x184),'note1':_0x35f985(0x187),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x35f985(0x104),'configError':_0x35f985(0x10a),'apiApplyInfo':{'title':_0x35f985(0x19f),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x35f985(0xd7),'getStarted':_0x35f985(0x125)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x35f985(0x18a),'invalidConfig':_0x35f985(0x14d),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x35f985(0x161),'connecting':'Connecting...','connected':_0x35f985(0xe7),'failed':'Connection\x20Failed','retrying':_0x35f985(0x16f)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x35f985(0x153)}}},An={'mcpStatus':{'disconnected':_0x35f985(0xc6),'connecting':'MCP\x20连接中...','connected':_0x35f985(0x141),'failed':_0x35f985(0x1e6),'retrying':_0x35f985(0xb8),'unknown':_0x35f985(0x194),'unauthorized':_0x35f985(0x135),'sessionOccupied':_0x35f985(0x12c),'networkError':_0x35f985(0x1c9),'maxRetriesExceeded':_0x35f985(0xf8),'clickToConnect':_0x35f985(0x1aa),'clickToConfigure':_0x35f985(0x159)},'mcpConfig':{'title':'MCP\x20配置','description':_0x35f985(0x167),'apiKey':_0x35f985(0x1d3),'apiKeyPlaceholder':_0x35f985(0x183),'apiKeyHint':_0x35f985(0x193),'enableAuth':_0x35f985(0x16e),'enableAuthHint':_0x35f985(0x1c1),'connectionInfo':_0x35f985(0x1c2),'mcpClientConfig':_0x35f985(0x1c2),'configInstructions':_0x35f985(0x1d6),'configStepTitle':_0x35f985(0x165),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x35f985(0x19d),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x35f985(0x17a),'sessionIdDescription':_0x35f985(0x1a0),'authorizationDescription':_0x35f985(0xc9),'configParameters':'配置参数:','maxRetries':_0x35f985(0x1bb),'save':_0x35f985(0x100),'saving':'保存中...','note1':_0x35f985(0xa3),'note2':_0x35f985(0x1b9),'configSaved':_0x35f985(0xd4),'configError':_0x35f985(0x1b7),'apiApplyInfo':{'title':_0x35f985(0x1d7),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x35f985(0xc3),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x35f985(0x1d0),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x35f985(0x177),'invalidApiKey':_0x35f985(0x11b)},'connectionStatus':{'disconnected':_0x35f985(0x113),'connecting':_0x35f985(0xfa),'connected':_0x35f985(0x1ee),'failed':_0x35f985(0xdd),'retrying':_0x35f985(0xe4)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x35f985(0x1ec),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x35f985(0x105)}}};var fn=Object[_0x35f985(0x138)],hn=Object[_0x35f985(0x121)],Cn=(_0x2aa59a,_0x4cc60c,_0x3c2b57)=>_0x4cc60c in _0x2aa59a?fn(_0x2aa59a,_0x4cc60c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c2b57}):_0x2aa59a[_0x4cc60c]=_0x3c2b57,mn=(_0x557d11,_0xcd5859,_0x2c37ec,_0xac4224)=>{const _0x880d60=_0x35f985;for(var _0x2791f4=_0xac4224>0x1?void 0x0:_0xac4224?hn(_0xcd5859,_0x2c37ec):_0xcd5859,_0x32435c=_0x557d11[_0x880d60(0xba)]-0x1,_0x25642f;_0x32435c>=0x0;_0x32435c--)(_0x25642f=_0x557d11[_0x32435c])&&(_0x2791f4=_0x25642f(_0x2791f4)||_0x2791f4);return _0x2791f4;},P=(_0x22cabe,_0x18f6bb)=>(_0x3278bb,_0x20518e)=>_0x18f6bb(_0x3278bb,_0x20518e,_0x22cabe),_n=(_0x56810e,_0x3c8894,_0x27cafe)=>Cn(_0x56810e,_0x3c8894+'',_0x27cafe);let j=class extends _0x207806{constructor(_0x19ab9e=ie,_0x34d204,_0x5ec0e0,_0x6ca77d,_0xf5250a,_0x57c1c6){const _0x137f27=_0x35f985;super(),this[_0x137f27(0xdf)]=_0x19ab9e,this[_0x137f27(0x13b)]=_0x34d204,this[_0x137f27(0x16b)]=_0x5ec0e0,this[_0x137f27(0xe1)]=_0x6ca77d,this[_0x137f27(0x116)]=_0xf5250a,this[_0x137f27(0x1b8)]=_0x57c1c6;const {..._0x1ea8b6}=_0x1d5727({},ie,this[_0x137f27(0xdf)]);this[_0x137f27(0x16b)][_0x137f27(0x14f)](y,_0x1ea8b6);}async[_0x35f985(0x169)](){const _0x448cec=_0x35f985,_0x34bb10=[[O],[I],[D]];this[_0x448cec(0x13b)][_0x448cec(0xc1)](_0x3ab30f)||_0x34bb10[_0x448cec(0x11d)]([_0x3ab30f,{'useClass':_0x5123eb}]),_0x34bb10[_0x448cec(0x197)](_0x457201=>this[_0x448cec(0x13b)][_0x448cec(0x11f)](_0x457201)),this['_injector'][_0x448cec(0x16c)](O),this[_0x448cec(0x13b)][_0x448cec(0x16c)](I),this['_injector'][_0x448cec(0x16c)](D);}};_n(j,_0x35f985(0xde),_0x35f985(0x196)),j=mn([_0x2d02d9(_0x10caaf),P(0x1,_0x49af88(_0x3d8726)),P(0x2,_0x482877),P(0x3,_0x289555),P(0x4,_0x315e3d),P(0x5,_0x49af88(_0x5c2835))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3539(_0x33d018,_0x3c91fa){_0x33d018=_0x33d018-0x11f;const _0xe425eb=_0xe425();let _0x353927=_0xe425eb[_0x33d018];return _0x353927;}function _0xe425(){const _0x5300d1=['Click\x20to\x20connect\x20MCP','Save\x20Configuration','173185egZvEX','Saving...','MCP:\x20Max\x20Retries\x20Exceeded','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','7590620ADBDxz','MCP\x20Unknown\x20Status','Disconnected','API\x20key\x20is\x20required','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20Parameters:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','5659506Clcqba','MCP\x20Connection\x20Failed','Session\x20ID','MCP\x20Connecting...','Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','7331168HlDrqp','1743607FsZskV','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Disconnected','What\x20is\x20API\x20Key?','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Network\x20Error','Enter\x20your\x20API\x20key','API\x20Key','45sIfpdO','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20saved\x20successfully','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','92jAGUOV','Click\x20to\x20configure\x20MCP','MCP\x20Client\x20Configuration','7263977fyckmY','Connecting...','75OzTdIm','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connected','MCP\x20Configuration','77506YEHeYZ','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20Steps:'];_0xe425=function(){return _0x5300d1;};return _0xe425();}const _0x24ca83=_0x3539;(function(_0x49f639,_0x280509){const _0x1a014b=_0x3539,_0x191ec8=_0x49f639();while(!![]){try{const _0x5b5f83=parseInt(_0x1a014b(0x130))/0x1+parseInt(_0x1a014b(0x14e))/0x2*(-parseInt(_0x1a014b(0x147))/0x3)+-parseInt(_0x1a014b(0x142))/0x4*(parseInt(_0x1a014b(0x153))/0x5)+-parseInt(_0x1a014b(0x129))/0x6+-parseInt(_0x1a014b(0x145))/0x7+-parseInt(_0x1a014b(0x12f))/0x8+parseInt(_0x1a014b(0x13a))/0x9*(parseInt(_0x1a014b(0x122))/0xa);if(_0x5b5f83===_0x280509)break;else _0x191ec8['push'](_0x191ec8['shift']());}catch(_0xd65da){_0x191ec8['push'](_0x191ec8['shift']());}}}(_0xe425,0xd5e33));const e={'mcpStatus':{'disconnected':_0x24ca83(0x132),'connecting':_0x24ca83(0x12c),'connected':_0x24ca83(0x14a),'failed':_0x24ca83(0x12a),'retrying':'MCP\x20Retrying...','unknown':_0x24ca83(0x123),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x24ca83(0x137),'maxRetriesExceeded':_0x24ca83(0x120),'clickToConnect':_0x24ca83(0x151),'clickToConfigure':_0x24ca83(0x143)},'mcpConfig':{'title':_0x24ca83(0x14d),'description':_0x24ca83(0x131),'apiKey':_0x24ca83(0x139),'apiKeyPlaceholder':_0x24ca83(0x138),'apiKeyHint':_0x24ca83(0x148),'enableAuth':_0x24ca83(0x13d),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x24ca83(0x144),'mcpClientConfig':_0x24ca83(0x144),'configInstructions':_0x24ca83(0x128),'configStepTitle':_0x24ca83(0x150),'configStep1':_0x24ca83(0x126),'configStep2':_0x24ca83(0x149),'configStep3':_0x24ca83(0x136),'sessionId':_0x24ca83(0x12b),'sessionIdDescription':_0x24ca83(0x12e),'authorizationDescription':_0x24ca83(0x134),'configParameters':_0x24ca83(0x127),'maxRetries':'Max\x20Retries','save':_0x24ca83(0x152),'saving':_0x24ca83(0x11f),'note1':_0x24ca83(0x141),'note2':_0x24ca83(0x135),'configSaved':_0x24ca83(0x140),'configError':_0x24ca83(0x13c),'apiApplyInfo':{'title':_0x24ca83(0x133),'description':_0x24ca83(0x13f),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x24ca83(0x125),'apiKeyTooShort':_0x24ca83(0x13b),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x24ca83(0x124),'connecting':_0x24ca83(0x146),'connected':_0x24ca83(0x14c),'failed':_0x24ca83(0x12d),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x24ca83(0x121),'sessionOccupied':_0x24ca83(0x14f),'networkError':_0x24ca83(0x14b),'maxRetriesExceeded':_0x24ca83(0x13e)}}},n=e;export{n as default};
|