@univerjs-pro/mcp-ui 0.15.0-insiders.20251227-dafc157 → 0.15.0-insiders.20251227-453e4ff
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/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xe7bbec=_0x3d9f;(function(_0x41f6a6,_0x20f145){const _0x91154e=_0x3d9f,_0x4c5ed2=_0x41f6a6();while(!![]){try{const _0x1ba227=parseInt(_0x91154e(0x1b2))/0x1+-parseInt(_0x91154e(0x1d9))/0x2+-parseInt(_0x91154e(0x1b7))/0x3+parseInt(_0x91154e(0x1dc))/0x4*(-parseInt(_0x91154e(0x1bf))/0x5)+-parseInt(_0x91154e(0x1b4))/0x6+-parseInt(_0x91154e(0x1ba))/0x7*(-parseInt(_0x91154e(0x1be))/0x8)+parseInt(_0x91154e(0x1b6))/0x9;if(_0x1ba227===_0x20f145)break;else _0x4c5ed2['push'](_0x4c5ed2['shift']());}catch(_0x290f0e){_0x4c5ed2['push'](_0x4c5ed2['shift']());}}}(_0x1bcf,0x19491));function _0x1bcf(){const _0x205d15=['API\x20키란\x20무엇인가요?','84561ywbYGc','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','248496ofBTRu','MCP:\x20네트워크\x20오류','1899225KzoAYd','422946IVAvUC','최대\x20재시도\x20횟수','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','301wJRLJr','MCP\x20연결\x20끊김','세션\x20ID','보안\x20연결을\x20위해\x20인증\x20활성화','37384iRpYOh','1625yTmFUd','연결\x20실패','클릭하여\x20MCP\x20설정','클릭하여\x20MCP\x20연결','MCP:\x20세션\x20ID\x20사용\x20중','설정\x20단계:','유효하지\x20않은\x20설정','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','저장\x20중...','MCP\x20연결됨','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','API\x20키','MCP\x20재시도\x20중...','MCP\x20클라이언트\x20설정','Univer\x20AI\x20콘솔','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','설정\x20매개변수:','API\x20키는\x20필수입니다','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','몇\x20초\x20만에\x20API\x20키\x20발급받기','연결됨','API\x20키를\x20입력하세요','인증\x20활성화','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','연결\x20중...','116266KsRoZt','MCP\x20연결\x20중...','재시도\x20중...','1876cDxFjM','인증\x20실패.\x20API\x20키를\x20확인하세요','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','MCP\x20알\x20수\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않음','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','MCP\x20설정','설정이\x20성공적으로\x20저장되었습니다'];_0x1bcf=function(){return _0x205d15;};return _0x1bcf();}function _0x3d9f(_0xb051a1,_0x59999a){_0xb051a1=_0xb051a1-0x1b0;const _0x1bcf46=_0x1bcf();let _0x3d9ff2=_0x1bcf46[_0xb051a1];return _0x3d9ff2;}const e={'mcpStatus':{'disconnected':_0xe7bbec(0x1bb),'connecting':_0xe7bbec(0x1da),'connected':_0xe7bbec(0x1c8),'failed':'MCP\x20연결\x20실패','retrying':_0xe7bbec(0x1cc),'unknown':_0xe7bbec(0x1df),'unauthorized':_0xe7bbec(0x1e1),'sessionOccupied':_0xe7bbec(0x1c3),'networkError':_0xe7bbec(0x1b5),'maxRetriesExceeded':'MCP:\x20최대\x20재시도\x20횟수\x20초과','clickToConnect':_0xe7bbec(0x1c2),'clickToConfigure':_0xe7bbec(0x1c1)},'mcpConfig':{'title':_0xe7bbec(0x1e3),'description':_0xe7bbec(0x1c9),'apiKey':_0xe7bbec(0x1cb),'apiKeyPlaceholder':_0xe7bbec(0x1d5),'apiKeyHint':_0xe7bbec(0x1d2),'enableAuth':_0xe7bbec(0x1d6),'enableAuthHint':_0xe7bbec(0x1bd),'connectionInfo':_0xe7bbec(0x1cd),'mcpClientConfig':_0xe7bbec(0x1cd),'configInstructions':_0xe7bbec(0x1cf),'configStepTitle':_0xe7bbec(0x1c4),'configStep1':'아래\x20JSON\x20설정\x20복사','configStep2':'MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','configStep3':_0xe7bbec(0x1b9),'sessionId':_0xe7bbec(0x1bc),'sessionIdDescription':_0xe7bbec(0x1e0),'authorizationDescription':'Bearer\x20접두사가\x20있는\x20API\x20키.','configParameters':_0xe7bbec(0x1d0),'maxRetries':_0xe7bbec(0x1b8),'save':'설정\x20저장','saving':_0xe7bbec(0x1c7),'note1':_0xe7bbec(0x1b3),'note2':_0xe7bbec(0x1c6),'configSaved':_0xe7bbec(0x1b0),'configError':'설정\x20저장\x20실패','apiApplyInfo':{'title':_0xe7bbec(0x1b1),'description':_0xe7bbec(0x1d7),'univerAiLabel':_0xe7bbec(0x1ce),'getStarted':_0xe7bbec(0x1d3)},'validation':{'apiKeyRequired':_0xe7bbec(0x1d1),'apiKeyTooShort':'API\x20키는\x2010자\x20이상이어야\x20합니다','invalidConfig':_0xe7bbec(0x1c5),'invalidApiKey':_0xe7bbec(0x1de)},'connectionStatus':{'disconnected':'연결\x20끊김','connecting':_0xe7bbec(0x1d8),'connected':_0xe7bbec(0x1d4),'failed':_0xe7bbec(0x1c0),'retrying':_0xe7bbec(0x1db)},'connectionError':{'unauthorized':_0xe7bbec(0x1dd),'sessionOccupied':_0xe7bbec(0x1e2),'networkError':'네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','maxRetriesExceeded':_0xe7bbec(0x1ca)}}};export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3e8ed8=_0x2c29;function _0x2c29(_0x4d0f85,_0xc84aaa){_0x4d0f85=_0x4d0f85-0x178;const _0x2a98b9=_0x2a98();let _0x2c291b=_0x2a98b9[_0x4d0f85];return _0x2c291b;}(function(_0x10ae5d,_0x127db8){const _0x3592cb=_0x2c29,_0x42b0e7=_0x10ae5d();while(!![]){try{const _0xe37369=-parseInt(_0x3592cb(0x185))/0x1*(-parseInt(_0x3592cb(0x19f))/0x2)+-parseInt(_0x3592cb(0x18b))/0x3*(parseInt(_0x3592cb(0x17e))/0x4)+parseInt(_0x3592cb(0x191))/0x5+-parseInt(_0x3592cb(0x195))/0x6*(parseInt(_0x3592cb(0x1a9))/0x7)+-parseInt(_0x3592cb(0x17c))/0x8*(-parseInt(_0x3592cb(0x182))/0x9)+parseInt(_0x3592cb(0x1a3))/0xa+parseInt(_0x3592cb(0x19d))/0xb*(-parseInt(_0x3592cb(0x180))/0xc);if(_0xe37369===_0x127db8)break;else _0x42b0e7['push'](_0x42b0e7['shift']());}catch(_0x18db2d){_0x42b0e7['push'](_0x42b0e7['shift']());}}}(_0x2a98,0xa95eb));const e={'mcpStatus':{'disconnected':_0x3e8ed8(0x18f),'connecting':_0x3e8ed8(0x192),'connected':_0x3e8ed8(0x17b),'failed':_0x3e8ed8(0x1a4),'retrying':'MCP\x20Retrying...','unknown':_0x3e8ed8(0x18d),'unauthorized':_0x3e8ed8(0x199),'sessionOccupied':_0x3e8ed8(0x194),'networkError':_0x3e8ed8(0x193),'maxRetriesExceeded':_0x3e8ed8(0x19c),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x3e8ed8(0x19e),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x3e8ed8(0x197),'apiKeyPlaceholder':_0x3e8ed8(0x1a2),'apiKeyHint':_0x3e8ed8(0x1a1),'enableAuth':_0x3e8ed8(0x189),'enableAuthHint':_0x3e8ed8(0x187),'connectionInfo':_0x3e8ed8(0x186),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3e8ed8(0x1ab),'configStepTitle':_0x3e8ed8(0x1a0),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x3e8ed8(0x17d),'configStep3':_0x3e8ed8(0x19a),'sessionId':_0x3e8ed8(0x1a7),'sessionIdDescription':_0x3e8ed8(0x183),'authorizationDescription':_0x3e8ed8(0x190),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x3e8ed8(0x188),'saving':_0x3e8ed8(0x17f),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3e8ed8(0x17a),'configSaved':_0x3e8ed8(0x179),'configError':_0x3e8ed8(0x198),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3e8ed8(0x178),'univerAiLabel':_0x3e8ed8(0x1a6),'getStarted':_0x3e8ed8(0x1a8)},'validation':{'apiKeyRequired':_0x3e8ed8(0x181),'apiKeyTooShort':_0x3e8ed8(0x18e),'invalidConfig':_0x3e8ed8(0x196),'invalidApiKey':_0x3e8ed8(0x184)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x3e8ed8(0x19b),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x3e8ed8(0x18a)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x3e8ed8(0x18c),'networkError':_0x3e8ed8(0x1aa),'maxRetriesExceeded':_0x3e8ed8(0x1a5)}}},n=e;function _0x2a98(){const _0x4f5f5b=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','165752qYmVgL','Saving...','8376BHqQKA','API\x20key\x20is\x20required','5559948eFDlpr','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','16753wuHsWl','MCP\x20Client\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','Save\x20Configuration','Enable\x20Authentication','Retrying...','69JQhYMx','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','1928185WnqrWa','MCP\x20Connecting...','MCP:\x20Network\x20Error','MCP:\x20Session\x20ID\x20Occupied','1961754QBeuti','Invalid\x20configuration','API\x20Key','Failed\x20to\x20save\x20configuration','MCP:\x20Unauthorized','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','24233gxYWVi','MCP\x20Configuration','116XcOOxR','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enter\x20your\x20API\x20key','9186110fAgOZk','MCP\x20Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Univer\x20AI\x20Console','Session\x20ID','Get\x20your\x20API\x20key\x20in\x20seconds','7rfkRsP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','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','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connected','16SItBiQ'];_0x2a98=function(){return _0x4f5f5b;};return _0x2a98();}export{n as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1e11(_0x5bf95c,_0x492034){_0x5bf95c=_0x5bf95c-0x73;const _0x5de452=_0x5de4();let _0x1e11c2=_0x5de452[_0x5bf95c];return _0x1e11c2;}const _0x462b82=_0x1e11;(function(_0x1a9eda,_0x269f5c){const _0x1fb087=_0x1e11,_0x3ecb12=_0x1a9eda();while(!![]){try{const _0x48bfe6=parseInt(_0x1fb087(0x8d))/0x1+-parseInt(_0x1fb087(0x7e))/0x2+-parseInt(_0x1fb087(0x78))/0x3+parseInt(_0x1fb087(0x84))/0x4+parseInt(_0x1fb087(0x88))/0x5+-parseInt(_0x1fb087(0x99))/0x6+parseInt(_0x1fb087(0x85))/0x7*(parseInt(_0x1fb087(0x98))/0x8);if(_0x48bfe6===_0x269f5c)break;else _0x3ecb12['push'](_0x3ecb12['shift']());}catch(_0x21e675){_0x3ecb12['push'](_0x3ecb12['shift']());}}}(_0x5de4,0xef18d));function _0x5de4(){const _0x50c2b4=['Đị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.','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','Nhập\x20khóa\x20API\x20của\x20bạn','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','MCP\x20Đang\x20thử\x20lại...','Cấu\x20hình\x20không\x20hợp\x20lệ','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Cấu\x20hình\x20MCP','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.','Đã\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','602130YMvdfx','Khóa\x20API\x20là\x20gì?','Đang\x20lưu...','Đã\x20ngắt\x20kết\x20nối','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','2145100vBWzaG','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Cấu\x20hình\x20máy\x20khách\x20MCP','MCP\x20Đã\x20kết\x20nối','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','2759540JGKCDK','7fTIXaQ','Các\x20bước\x20cấu\x20hình:','MCP\x20Đã\x20ngắt\x20kết\x20nối','6505915NMqvsr','Bật\x20xác\x20thực','Lưu\x20cấu\x20hình','MCP:\x20Không\x20được\x20phép','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','349248ZwmXJA','Tham\x20số\x20cấu\x20hình:','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\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ởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','Yêu\x20cầu\x20khóa\x20API','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','MCP\x20Kết\x20nối\x20thất\x20bại','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Nhấp\x20để\x20cấu\x20hình\x20MCP','10658968MXQEEI','8520516YsnGmM','Số\x20lần\x20thử\x20lại\x20tối\x20đa','MCP:\x20Lỗi\x20mạng'];_0x5de4=function(){return _0x50c2b4;};return _0x5de4();}const n={'mcpStatus':{'disconnected':_0x462b82(0x87),'connecting':'MCP\x20Đang\x20kết\x20nối...','connected':_0x462b82(0x81),'failed':_0x462b82(0x95),'retrying':_0x462b82(0xa0),'unknown':_0x462b82(0x7f),'unauthorized':_0x462b82(0x8b),'sessionOccupied':_0x462b82(0x8f),'networkError':_0x462b82(0x9b),'maxRetriesExceeded':'MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','clickToConnect':'Nhấp\x20để\x20kết\x20nối\x20MCP','clickToConfigure':_0x462b82(0x97)},'mcpConfig':{'title':_0x462b82(0x74),'description':_0x462b82(0x83),'apiKey':'Khóa\x20API','apiKeyPlaceholder':_0x462b82(0x9e),'apiKeyHint':_0x462b82(0x7c),'enableAuth':_0x462b82(0x89),'enableAuthHint':_0x462b82(0x8c),'connectionInfo':'Cấu\x20hình\x20máy\x20khách\x20MCP','mcpClientConfig':_0x462b82(0x80),'configInstructions':_0x462b82(0x91),'configStepTitle':_0x462b82(0x86),'configStep1':_0x462b82(0x9d),'configStep2':_0x462b82(0x90),'configStep3':_0x462b82(0x92),'sessionId':'ID\x20phiên','sessionIdDescription':_0x462b82(0x9c),'authorizationDescription':'Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','configParameters':_0x462b82(0x8e),'maxRetries':_0x462b82(0x9a),'save':_0x462b82(0x8a),'saving':_0x462b82(0x7a),'note1':_0x462b82(0x7d),'note2':_0x462b82(0x96),'configSaved':_0x462b82(0x73),'configError':'Lưu\x20cấu\x20hình\x20thất\x20bại','apiApplyInfo':{'title':_0x462b82(0x79),'description':_0x462b82(0x75),'univerAiLabel':'Bảng\x20điều\x20khiển\x20Univer\x20AI','getStarted':'Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây'},'validation':{'apiKeyRequired':_0x462b82(0x93),'apiKeyTooShort':_0x462b82(0x82),'invalidConfig':_0x462b82(0xa1),'invalidApiKey':'Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không'},'connectionStatus':{'disconnected':_0x462b82(0x7b),'connecting':'Đang\x20kết\x20nối...','connected':_0x462b82(0x76),'failed':'Kết\x20nối\x20thất\x20bại','retrying':'Đang\x20thử\x20lại...'},'connectionError':{'unauthorized':_0x462b82(0x9f),'sessionOccupied':_0x462b82(0x94),'networkError':_0x462b82(0x77),'maxRetriesExceeded':'Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau'}}};export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x25374c=_0x24f6;(function(_0x40a52b,_0xff82a1){const _0x49b040=_0x24f6,_0x5246d6=_0x40a52b();while(!![]){try{const _0x46f6df=parseInt(_0x49b040(0x178))/0x1+-parseInt(_0x49b040(0x179))/0x2+-parseInt(_0x49b040(0x189))/0x3+-parseInt(_0x49b040(0x171))/0x4+-parseInt(_0x49b040(0x17b))/0x5*(parseInt(_0x49b040(0x180))/0x6)+-parseInt(_0x49b040(0x181))/0x7+-parseInt(_0x49b040(0x176))/0x8*(-parseInt(_0x49b040(0x17c))/0x9);if(_0x46f6df===_0xff82a1)break;else _0x5246d6['push'](_0x5246d6['shift']());}catch(_0x58854f){_0x5246d6['push'](_0x5246d6['shift']());}}}(_0x506f,0x2e8aa));function _0x24f6(_0x29a166,_0x28236d){_0x29a166=_0x29a166-0x16b;const _0x506fab=_0x506f();let _0x24f6df=_0x506fab[_0x29a166];return _0x24f6df;}const e={'mcpStatus':{'disconnected':_0x25374c(0x174),'connecting':_0x25374c(0x16f),'connected':'MCP\x20已连接','failed':_0x25374c(0x175),'retrying':_0x25374c(0x182),'unknown':_0x25374c(0x19b),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x25374c(0x18f),'networkError':_0x25374c(0x195),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x25374c(0x194),'clickToConfigure':_0x25374c(0x198)},'mcpConfig':{'title':'MCP\x20配置','description':_0x25374c(0x16c),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x25374c(0x17a),'apiKeyHint':_0x25374c(0x18c),'enableAuth':'启用身份验证','enableAuthHint':_0x25374c(0x191),'connectionInfo':_0x25374c(0x190),'mcpClientConfig':_0x25374c(0x190),'configInstructions':_0x25374c(0x192),'configStepTitle':_0x25374c(0x19d),'configStep1':_0x25374c(0x16b),'configStep2':_0x25374c(0x173),'configStep3':_0x25374c(0x170),'sessionId':_0x25374c(0x19a),'sessionIdDescription':_0x25374c(0x186),'authorizationDescription':_0x25374c(0x18a),'configParameters':_0x25374c(0x16d),'maxRetries':'最大重试次数','save':_0x25374c(0x18b),'saving':_0x25374c(0x184),'note1':_0x25374c(0x18d),'note2':_0x25374c(0x18e),'configSaved':_0x25374c(0x17e),'configError':_0x25374c(0x16e),'apiApplyInfo':{'title':_0x25374c(0x185),'description':_0x25374c(0x177),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x25374c(0x17f)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x25374c(0x172),'invalidConfig':'配置无效','invalidApiKey':_0x25374c(0x196)},'connectionStatus':{'disconnected':'未连接','connecting':_0x25374c(0x193),'connected':_0x25374c(0x188),'failed':_0x25374c(0x199),'retrying':_0x25374c(0x17d)},'connectionError':{'unauthorized':_0x25374c(0x197),'sessionOccupied':_0x25374c(0x19c),'networkError':_0x25374c(0x187),'maxRetriesExceeded':_0x25374c(0x183)}}};function _0x506f(){const _0x1fb433=['22390lSiwgH','9tVixls','重连中...','配置保存成功','几秒钟内获取您的\x20API\x20密钥','72yuDFRj','1121764ltYAHe','MCP\x20重连中...','超出最大重试次数,请稍后再试','保存中...','什么是\x20API\x20密钥?','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','网络连接错误,请检查您的网络连接','已连接','696054YtZJJj','带有\x20Bearer\x20前缀的\x20API\x20密钥。','保存配置','您的\x20API\x20密钥将在此浏览器中本地存储','配置更改将立即生效','您的\x20API\x20密钥安全存储在本地存储中','MCP:\x20会话\x20ID\x20已被占用','MCP\x20客户端配置','启用身份验证以获得安全连接','将以下配置添加到您的\x20MCP\x20客户端设置中:','连接中...','点击连接\x20MCP','MCP:\x20网络错误','API\x20密钥无效,请检查密钥是否正确','权限验证失败,请检查您的\x20API\x20密钥','点击配置\x20MCP','连接失败','会话ID','MCP\x20状态未知','会话\x20ID\x20已被占用,请稍后再试','配置步骤:','复制以下\x20JSON\x20配置','配置\x20MCP\x20使用\x20AI\x20操作电子表格','配置参数:','配置保存失败','MCP\x20连接中...','重启您的\x20MCP\x20客户端以使配置生效','439152sAlDUR','API\x20密钥长度至少需要\x2010\x20位','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20已断开','MCP\x20连接失败','5337840clwnHj','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','192780GDNdVb','227164JejNAw','请输入您的\x20API\x20密钥'];_0x506f=function(){return _0x1fb433;};return _0x506f();}export{e as default};
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4c3e0f=_0x43f3;(function(_0x15dd1a,_0x1099b6){const _0x4abd1c=_0x43f3,_0x4cb1aa=_0x15dd1a();while(!![]){try{const _0x2dffd5=-parseInt(_0x4abd1c(0x115))/0x1*(-parseInt(_0x4abd1c(0x11c))/0x2)+-parseInt(_0x4abd1c(0xfe))/0x3*(parseInt(_0x4abd1c(0xfd))/0x4)+-parseInt(_0x4abd1c(0x10d))/0x5*(-parseInt(_0x4abd1c(0x109))/0x6)+parseInt(_0x4abd1c(0xfb))/0x7*(parseInt(_0x4abd1c(0xed))/0x8)+parseInt(_0x4abd1c(0x112))/0x9+parseInt(_0x4abd1c(0x107))/0xa*(parseInt(_0x4abd1c(0xf5))/0xb)+parseInt(_0x4abd1c(0x11d))/0xc*(-parseInt(_0x4abd1c(0x10f))/0xd);if(_0x2dffd5===_0x1099b6)break;else _0x4cb1aa['push'](_0x4cb1aa['shift']());}catch(_0xc2af55){_0x4cb1aa['push'](_0x4cb1aa['shift']());}}}(_0x4013,0xdfe8d));function _0x4013(){const _0x594b59=['API\x20key\x20is\x20required','13662httGQJ','Enter\x20your\x20API\x20key','Invalid\x20configuration','Retrying...','2690zIjnav','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','35886110CzrNqx','Click\x20to\x20connect\x20MCP','API\x20Key','13592034zWKoEC','MCP:\x20Network\x20Error','Max\x20Retries','10278fWzINo','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Retrying...','Configuration\x20Parameters:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','18jRnuoh','12kGonLH','MCP:\x20Max\x20Retries\x20Exceeded','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','143216LKLqjn','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Unauthorized','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','825kgRtvS','MCP\x20Connection\x20Failed','Click\x20to\x20configure\x20MCP','Save\x20Configuration','MCP\x20Unknown\x20Status','What\x20is\x20API\x20Key?','609TbkBVd','MCP\x20Connecting...','212220ZawOpC','90mGMjVR','Copy\x20the\x20JSON\x20configuration\x20below','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20authentication\x20for\x20secure\x20connections','Failed\x20to\x20save\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Configuration','117870INYMgc'];_0x4013=function(){return _0x594b59;};return _0x4013();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4c3e0f(0xfc),'connected':'MCP\x20Connected','failed':_0x4c3e0f(0xf6),'retrying':_0x4c3e0f(0x117),'unknown':_0x4c3e0f(0xf9),'unauthorized':_0x4c3e0f(0xef),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4c3e0f(0x113),'maxRetriesExceeded':_0x4c3e0f(0x11e),'clickToConnect':_0x4c3e0f(0x110),'clickToConfigure':_0x4c3e0f(0xf7)},'mcpConfig':{'title':_0x4c3e0f(0x106),'description':_0x4c3e0f(0xec),'apiKey':_0x4c3e0f(0x111),'apiKeyPlaceholder':_0x4c3e0f(0x10a),'apiKeyHint':_0x4c3e0f(0xf1),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4c3e0f(0x101),'connectionInfo':_0x4c3e0f(0x11a),'mcpClientConfig':_0x4c3e0f(0x11a),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x4c3e0f(0xff),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4c3e0f(0x119),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x4c3e0f(0x11b),'configParameters':_0x4c3e0f(0x118),'maxRetries':_0x4c3e0f(0x114),'save':_0x4c3e0f(0xf8),'saving':'Saving...','note1':_0x4c3e0f(0xee),'note2':_0x4c3e0f(0x10e),'configSaved':_0x4c3e0f(0xf0),'configError':_0x4c3e0f(0x102),'apiApplyInfo':{'title':_0x4c3e0f(0xfa),'description':_0x4c3e0f(0x104),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4c3e0f(0x116)},'validation':{'apiKeyRequired':_0x4c3e0f(0x108),'apiKeyTooShort':_0x4c3e0f(0xf4),'invalidConfig':_0x4c3e0f(0x10b),'invalidApiKey':_0x4c3e0f(0x103)},'connectionStatus':{'disconnected':_0x4c3e0f(0xf2),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':_0x4c3e0f(0x10c)},'connectionError':{'unauthorized':_0x4c3e0f(0xf3),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4c3e0f(0x100),'maxRetriesExceeded':_0x4c3e0f(0x105)}}},n=e;function _0x43f3(_0x3d2ab2,_0x25769c){_0x3d2ab2=_0x3d2ab2-0xec;const _0x40138d=_0x4013();let _0x43f39c=_0x40138d[_0x3d2ab2];return _0x43f39c;}export{n as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2c3e(_0x4b82f3,_0xcb6ab8){_0x4b82f3=_0x4b82f3-0x120;const _0x3749a3=_0x3749();let _0x2c3e24=_0x3749a3[_0x4b82f3];return _0x2c3e24;}(function(_0x3e8349,_0x556fd9){const _0x534e70=_0x2c3e,_0x536823=_0x3e8349();while(!![]){try{const _0x58a1ce=-parseInt(_0x534e70(0x156))/0x1+-parseInt(_0x534e70(0x179))/0x2+-parseInt(_0x534e70(0x142))/0x3+parseInt(_0x534e70(0x1fb))/0x4*(parseInt(_0x534e70(0x29e))/0x5)+-parseInt(_0x534e70(0x27a))/0x6+-parseInt(_0x534e70(0x28d))/0x7*(parseInt(_0x534e70(0x1ff))/0x8)+-parseInt(_0x534e70(0x18d))/0x9*(-parseInt(_0x534e70(0x296))/0xa);if(_0x58a1ce===_0x556fd9)break;else _0x536823['push'](_0x536823['shift']());}catch(_0x5f4e9c){_0x536823['push'](_0x536823['shift']());}}}(_0x3749,0x19246),function(_0x3ad33e,_0x4e15e5){const _0x183dfa=_0x2c3e;typeof exports==_0x183dfa(0x27f)&&typeof module<'u'?_0x4e15e5(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define=='function'&&define[_0x183dfa(0x1dd)]?define([_0x183dfa(0x26c),_0x183dfa(0x269),_0x183dfa(0x121),_0x183dfa(0x1b3),'@univerjs/design',_0x183dfa(0x181),_0x183dfa(0x138),_0x183dfa(0x240),'@univerjs/network'],_0x4e15e5):(_0x3ad33e=typeof globalThis<'u'?globalThis:_0x3ad33e||self,_0x4e15e5(_0x3ad33e[_0x183dfa(0x208)]={},_0x3ad33e[_0x183dfa(0x29b)],_0x3ad33e[_0x183dfa(0x1f5)],_0x3ad33e[_0x183dfa(0x12d)],_0x3ad33e[_0x183dfa(0x150)],_0x3ad33e[_0x183dfa(0x1e6)],_0x3ad33e[_0x183dfa(0x138)],_0x3ad33e[_0x183dfa(0x1f5)],_0x3ad33e[_0x183dfa(0x162)]));}(this,function(_0x4c9298,_0x2b20d3,_0x262b48,_0x575e6c,_0x47fe66,_0x18c4b7,_0x29d232,_0x4400e4,_0x121883){'use strict';const _0x1a91c3=_0x2c3e;var _0x35193a=Object[_0x1a91c3(0x152)],_0x3a0a93=(_0x7f12c3,_0xf968a,_0x18b903)=>_0xf968a in _0x7f12c3?_0x35193a(_0x7f12c3,_0xf968a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18b903}):_0x7f12c3[_0xf968a]=_0x18b903,_0x2a2485=(_0x2afc0c,_0x28931e,_0x381963)=>_0x3a0a93(_0x2afc0c,typeof _0x28931e!=_0x1a91c3(0x1dc)?_0x28931e+'':_0x28931e,_0x381963);function _0x4df5a7({ref:_0x148d99,..._0x22a397}){const _0x1551d2=_0x1a91c3,{icon:_0x1cbfa3,id:_0x10679d,className:_0x24b7b7,extend:_0x417e04,..._0xced70d}=_0x22a397,_0x3ad874=(_0x1551d2(0x1c8)+_0x10679d+'\x20'+(_0x24b7b7||''))[_0x1551d2(0x29a)](),_0x32ebed=_0x4400e4[_0x1551d2(0x13b)]('_'+_0x41bdac());return _0x127ffc(_0x1cbfa3,''+_0x10679d,{'defIds':_0x1cbfa3[_0x1551d2(0x26b)],'idSuffix':_0x32ebed[_0x1551d2(0x23e)]},{'ref':_0x148d99,'className':_0x3ad874,..._0xced70d},_0x417e04);}function _0x127ffc(_0xfed103,_0x600fa5,_0x17b4ec,_0x3d4705,_0x1b5631){const _0x20ec04=_0x1a91c3;return _0x4400e4[_0x20ec04(0x29c)](_0xfed103[_0x20ec04(0x1f4)],{'key':_0x600fa5,..._0xf166c2(_0xfed103,_0x17b4ec,_0x1b5631),..._0x3d4705},(_0x16e0a8(_0xfed103,_0x17b4ec)[_0x20ec04(0x1b5)]||[])[_0x20ec04(0x15c)]((_0x186120,_0x1ceb68)=>_0x127ffc(_0x186120,_0x600fa5+'-'+_0xfed103[_0x20ec04(0x1f4)]+'-'+_0x1ceb68,_0x17b4ec,void 0x0,_0x1b5631)));}function _0xf166c2(_0xc6e894,_0x1fd113,_0x43c065){const _0x594efb=_0x1a91c3,_0x3b189b={..._0xc6e894[_0x594efb(0x1d0)]};_0x43c065!=null&&_0x43c065[_0x594efb(0x17d)]&&_0x3b189b[_0x594efb(0x200)]===_0x594efb(0x17d)&&(_0x3b189b[_0x594efb(0x200)]=_0x43c065[_0x594efb(0x17d)]),_0xc6e894[_0x594efb(0x1f4)]===_0x594efb(0x201)&&_0x3b189b['id']&&(_0x3b189b['id']=_0x3b189b['id']+_0x1fd113['idSuffix']),Object[_0x594efb(0x2b6)](_0x3b189b)[_0x594efb(0x191)](([_0x23ad66,_0x11f70f])=>{const _0x4a7057=_0x594efb;_0x23ad66==='mask'&&typeof _0x11f70f==_0x4a7057(0x17c)&&(_0x3b189b[_0x23ad66]=_0x11f70f[_0x4a7057(0x227)](/url\(#(.*)\)/,_0x4a7057(0x14f)+_0x1fd113['idSuffix']+')'));});const {defIds:_0x3fda09}=_0x1fd113;return!_0x3fda09||_0x3fda09[_0x594efb(0x1ae)]===0x0||(_0xc6e894['tag']===_0x594efb(0x1c7)&&_0x3b189b[_0x594efb(0x2ab)]&&(_0x3b189b[_0x594efb(0x2ab)]=_0x3b189b[_0x594efb(0x2ab)]+_0x1fd113[_0x594efb(0x14c)]),Object[_0x594efb(0x2b6)](_0x3b189b)[_0x594efb(0x191)](([_0x1ed97f,_0x4ce0c5])=>{const _0xe0cfee=_0x594efb;typeof _0x4ce0c5=='string'&&(_0x3b189b[_0x1ed97f]=_0x4ce0c5[_0xe0cfee(0x227)](/url\(#(.*)\)/,_0xe0cfee(0x14f)+_0x1fd113[_0xe0cfee(0x14c)]+')'));})),_0x3b189b;}function _0x16e0a8(_0x12651b,_0x403d41){const _0x43d5de=_0x1a91c3;var _0x2f1e74;const {defIds:_0x587bbd}=_0x403d41;return!_0x587bbd||_0x587bbd[_0x43d5de(0x1ae)]===0x0?_0x12651b:_0x12651b[_0x43d5de(0x1f4)]==='defs'&&((_0x2f1e74=_0x12651b['children'])!=null&&_0x2f1e74['length'])?{..._0x12651b,'children':_0x12651b[_0x43d5de(0x1b5)][_0x43d5de(0x15c)](_0x4d427b=>typeof _0x4d427b['attrs']['id']==_0x43d5de(0x17c)&&_0x587bbd&&_0x587bbd['includes'](_0x4d427b[_0x43d5de(0x1d0)]['id'])?{..._0x4d427b,'attrs':{..._0x4d427b['attrs'],'id':_0x4d427b[_0x43d5de(0x1d0)]['id']+_0x403d41[_0x43d5de(0x14c)]}}:_0x4d427b)}:_0x12651b;}function _0x41bdac(){const _0x5ae672=_0x1a91c3;return Math[_0x5ae672(0x24d)]()['toString'](0x24)[_0x5ae672(0x27d)](0x2,0x8);}_0x4df5a7['displayName']=_0x1a91c3(0x15b);const _0x29f747={'tag':_0x1a91c3(0x1e9),'attrs':{'xmlns':_0x1a91c3(0x21c),'fill':_0x1a91c3(0x1ab),'viewBox':_0x1a91c3(0x230),'width':'1em','height':_0x1a91c3(0x26e)},'children':[{'tag':_0x1a91c3(0x14b),'attrs':{'fill':_0x1a91c3(0x1c0),'d':_0x1a91c3(0x26d),'fillRule':_0x1a91c3(0x1d1),'clipRule':_0x1a91c3(0x1d1)}}]},_0xa17919=_0x4400e4[_0x1a91c3(0x25c)](function(_0x18ec30,_0x467a5b){const _0x568d3e=_0x1a91c3;return _0x4400e4[_0x568d3e(0x29c)](_0x4df5a7,Object[_0x568d3e(0x274)]({},_0x18ec30,{'id':_0x568d3e(0x190),'ref':_0x467a5b,'icon':_0x29f747}));});_0xa17919['displayName']='CheckMarkIcon';const _0x49dd48={'tag':'svg','attrs':{'xmlns':_0x1a91c3(0x21c),'fill':_0x1a91c3(0x1ab),'viewBox':'0\x200\x2016\x2016','width':_0x1a91c3(0x26e),'height':'1em'},'children':[{'tag':_0x1a91c3(0x14b),'attrs':{'fill':_0x1a91c3(0x1c0),'d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},_0x314ed1=_0x4400e4[_0x1a91c3(0x25c)](function(_0x557a05,_0x1504d3){const _0x262b8d=_0x1a91c3;return _0x4400e4[_0x262b8d(0x29c)](_0x4df5a7,Object[_0x262b8d(0x274)]({},_0x557a05,{'id':'close-icon','ref':_0x1504d3,'icon':_0x49dd48}));});_0x314ed1[_0x1a91c3(0x1ce)]=_0x1a91c3(0x222);const _0x562012={'tag':_0x1a91c3(0x1e9),'attrs':{'xmlns':_0x1a91c3(0x21c),'fill':_0x1a91c3(0x1ab),'viewBox':'0\x200\x2016\x2016','width':_0x1a91c3(0x26e),'height':_0x1a91c3(0x26e)},'children':[{'tag':_0x1a91c3(0x14b),'attrs':{'fill':'currentColor','d':_0x1a91c3(0x2a0)}},{'tag':_0x1a91c3(0x14b),'attrs':{'fill':'currentColor','d':_0x1a91c3(0x254)}},{'tag':_0x1a91c3(0x14b),'attrs':{'fill':_0x1a91c3(0x1c0),'d':_0x1a91c3(0x1ec),'fillRule':_0x1a91c3(0x1d1),'clipRule':'evenodd'}}]},_0x599c9e=_0x4400e4[_0x1a91c3(0x25c)](function(_0xc58e49,_0x4a6ac0){const _0x5bcdf9=_0x1a91c3;return _0x4400e4[_0x5bcdf9(0x29c)](_0x4df5a7,Object[_0x5bcdf9(0x274)]({},_0xc58e49,{'id':'help-icon','ref':_0x4a6ac0,'icon':_0x562012}));});_0x599c9e['displayName']=_0x1a91c3(0x187);const _0x3cbea1={'tag':_0x1a91c3(0x1e9),'attrs':{'xmlns':_0x1a91c3(0x21c),'fill':_0x1a91c3(0x1ab),'viewBox':'0\x200\x2016\x2016','width':_0x1a91c3(0x26e),'height':_0x1a91c3(0x26e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x1a91c3(0x14b),'attrs':{'stroke':_0x1a91c3(0x1c0),'d':_0x1a91c3(0x22a),'strokeLinecap':_0x1a91c3(0x29f),'strokeLinejoin':_0x1a91c3(0x29f),'strokeWidth':1.2}}]},{'tag':_0x1a91c3(0x188),'attrs':{},'children':[{'tag':_0x1a91c3(0x20c),'attrs':{'id':_0x1a91c3(0x1ed)},'children':[{'tag':_0x1a91c3(0x14b),'attrs':{'fill':_0x1a91c3(0x267),'d':_0x1a91c3(0x1a4)}}]}]}],'defIds':[_0x1a91c3(0x1ed)]},_0x6b3ea5=_0x4400e4[_0x1a91c3(0x25c)](function(_0x4c5333,_0x24af68){const _0x14fb04=_0x1a91c3;return _0x4400e4[_0x14fb04(0x29c)](_0x4df5a7,Object[_0x14fb04(0x274)]({},_0x4c5333,{'id':_0x14fb04(0x1be),'ref':_0x24af68,'icon':_0x3cbea1}));});_0x6b3ea5[_0x1a91c3(0x1ce)]=_0x1a91c3(0x1da);const _0x343a16={'tag':_0x1a91c3(0x1e9),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x1a91c3(0x26e),'height':_0x1a91c3(0x26e)},'children':[{'tag':'g','attrs':{'clipPath':_0x1a91c3(0x20e)},'children':[{'tag':'path','attrs':{'stroke':_0x1a91c3(0x1c0),'d':'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','strokeLinecap':_0x1a91c3(0x29f),'strokeLinejoin':_0x1a91c3(0x29f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1a91c3(0x20c),'attrs':{'id':_0x1a91c3(0x174)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x1a91c3(0x1a4),'transform':_0x1a91c3(0x25b)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x196304=_0x4400e4[_0x1a91c3(0x25c)](function(_0x73c4da,_0x54648a){const _0x8a3813=_0x1a91c3;return _0x4400e4[_0x8a3813(0x29c)](_0x4df5a7,Object['assign']({},_0x73c4da,{'id':_0x8a3813(0x1f8),'ref':_0x54648a,'icon':_0x343a16}));});_0x196304[_0x1a91c3(0x1ce)]='OnLineIcon';function _0x31ca05(_0x54d44e){const _0x59fbec=_0x1a91c3;var _0x50a6a3,_0x2cdb4b;const {mcpCoreConfig:_0x348d88,onSave:_0x3188a7,loading:_0x1b86b3=!0x1,config:_0x351a4c,connectionStatus$:_0x1d8a6d,connectionError$:_0x1b1cb8,currentApiKey$:_0x27c3d0,currentSessionId$:_0x5c2e2e}=_0x54d44e,_0x2168e0=_0x18c4b7[_0x59fbec(0x134)](_0x2b20d3[_0x59fbec(0x1c4)]),_0x51ab56=_0x18c4b7[_0x59fbec(0x297)](_0x1d8a6d,_0x575e6c[_0x59fbec(0x265)][_0x59fbec(0x1c5)]),_0x149a2e=_0x18c4b7['useObservable'](_0x1b1cb8,_0x575e6c[_0x59fbec(0x18c)][_0x59fbec(0x27c)]),_0x4945ca=_0x18c4b7[_0x59fbec(0x297)](_0x5c2e2e,''),_0x23edbf=_0x18c4b7['useObservable'](_0x27c3d0,''),[_0x4f2eb9,_0x226022]=_0x4400e4['useState'](_0x23edbf||''),_0xf2211b=!0x0,_0x3fe8a6=_0x351a4c[_0x59fbec(0x1b4)]&&_0x348d88[_0x59fbec(0x1cb)]&&(_0x348d88[_0x59fbec(0x1cb)][_0x59fbec(0x1aa)](_0x59fbec(0x286))||_0x348d88['mcpServerUrl'][_0x59fbec(0x1aa)](_0x59fbec(0x139))),_0xb8f52b=(_0x50a6a3=_0x348d88[_0x59fbec(0x1cb)])==null?void 0x0:_0x50a6a3[_0x59fbec(0x1aa)](_0x59fbec(0x286)),_0x567121=(_0x2cdb4b=_0x348d88[_0x59fbec(0x1cb)])==null?void 0x0:_0x2cdb4b[_0x59fbec(0x1aa)](_0x59fbec(0x139)),_0x1376ae=_0xb8f52b?'https://console.univer.plus':_0x59fbec(0x1e4),_0x1a30df=_0x351a4c['showDeveloperTools']&&(_0xb8f52b||_0x567121),[_0x47fac3,_0xbe9199]=_0x4400e4[_0x59fbec(0x1eb)](!_0x4f2eb9['trim']()),_0x475c82=(_0x10964d,_0x3de9b7)=>{const _0x2ea5c0=_0x59fbec;if(_0x3de9b7===_0x575e6c[_0x2ea5c0(0x18c)][_0x2ea5c0(0x14d)])return _0x2ea5c0(0x219);switch(_0x10964d){case _0x575e6c[_0x2ea5c0(0x265)][_0x2ea5c0(0x146)]:return _0x2ea5c0(0x235);case _0x575e6c[_0x2ea5c0(0x265)][_0x2ea5c0(0x19f)]:case _0x575e6c[_0x2ea5c0(0x265)][_0x2ea5c0(0x1a9)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x575e6c[_0x2ea5c0(0x265)]['FAILED']:return _0x2ea5c0(0x219);default:return _0x2ea5c0(0x1c1);}},_0x57c60b=(_0x1b5f23,_0x41e385)=>{const _0x31a015=_0x59fbec;if(_0x41e385===_0x575e6c[_0x31a015(0x18c)]['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x1b5f23){case _0x575e6c['MCPConnectionStatus']['CONNECTED']:return _0x31a015(0x15a);case _0x575e6c[_0x31a015(0x265)][_0x31a015(0x19f)]:case _0x575e6c['MCPConnectionStatus'][_0x31a015(0x1a9)]:return _0x31a015(0x1d3);case _0x575e6c[_0x31a015(0x265)][_0x31a015(0x270)]:return _0x31a015(0x1f0);default:return _0x31a015(0x197);}},_0x1bb9e1=_0x395fba=>{const _0x59687e=_0x59fbec;switch(_0x395fba){case _0x575e6c[_0x59687e(0x265)][_0x59687e(0x146)]:return _0x2168e0['t'](_0x59687e(0x19d));case _0x575e6c[_0x59687e(0x265)]['CONNECTING']:return _0x2168e0['t']('mcpConfig.connectionStatus.connecting');case _0x575e6c[_0x59687e(0x265)][_0x59687e(0x270)]:return _0x2168e0['t'](_0x59687e(0x1bc));case _0x575e6c[_0x59687e(0x265)][_0x59687e(0x1a9)]:return _0x2168e0['t'](_0x59687e(0x238));default:return _0x2168e0['t'](_0x59687e(0x155));}},_0x293499=_0x4ad4da=>{const _0x3e03dc=_0x59fbec;switch(_0x4ad4da){case _0x575e6c['MCPConnectionError'][_0x3e03dc(0x14d)]:return _0x2168e0['t']('mcpConfig.connectionError.unauthorized');case _0x575e6c[_0x3e03dc(0x18c)][_0x3e03dc(0x1f6)]:return _0x2168e0['t'](_0x3e03dc(0x17f));case _0x575e6c[_0x3e03dc(0x18c)][_0x3e03dc(0x27e)]:return _0x2168e0['t']('mcpConfig.connectionError.networkError');case _0x575e6c[_0x3e03dc(0x18c)][_0x3e03dc(0x25d)]:return _0x2168e0['t'](_0x3e03dc(0x2a6));default:return'';}},_0x219f05=_0x4400e4['useCallback'](()=>{const _0xc265f0=_0x59fbec,_0x6d385f={..._0x348d88,'apiKey':_0x4f2eb9[_0xc265f0(0x29a)](),'enableAuth':_0xf2211b};_0x3188a7(_0x6d385f);},[_0x348d88,_0x4f2eb9,_0xf2211b,_0x3188a7]),_0x4b08dc=_0x4f2eb9['trim']()[_0x59fbec(0x1ae)]>0x0;return _0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x133),'children':_0x262b48[_0x59fbec(0x25a)]('div',{'className':_0x59fbec(0x170),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x1af),'children':_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x1b7),{'className':_0x59fbec(0x2ac),'children':'⚙'})}),_0x262b48['jsx'](_0x59fbec(0x144),{'children':_0x262b48[_0x59fbec(0x1f3)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x2168e0['t'](_0x59fbec(0x291))})})]})}),_0x262b48[_0x59fbec(0x25a)]('div',{'className':_0x59fbec(0x18f),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x47fe66['clsx'](_0x59fbec(0x19e),_0x475c82(_0x51ab56,_0x149a2e)),'children':_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':_0x59fbec(0x186),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x47fe66[_0x59fbec(0x12e)]('univer-size-2\x20univer-rounded-full',_0x57c60b(_0x51ab56,_0x149a2e))}),_0x262b48[_0x59fbec(0x1f3)]('span',{'className':_0x59fbec(0x2ad),'children':_0x1bb9e1(_0x51ab56)})]})}),_0x149a2e!==_0x575e6c[_0x59fbec(0x18c)]['NONE']&&(_0x51ab56===_0x575e6c['MCPConnectionStatus']['FAILED']||_0x149a2e===_0x575e6c['MCPConnectionError'][_0x59fbec(0x14d)])&&_0x262b48['jsx'](_0x59fbec(0x144),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x262b48[_0x59fbec(0x25a)]('div',{'className':_0x59fbec(0x1a3),'children':[_0x262b48['jsx']('span',{'className':_0x59fbec(0x23a),'children':'⚠️'}),_0x262b48[_0x59fbec(0x1f3)]('p',{'className':_0x59fbec(0x13f),'children':_0x293499(_0x149a2e)})]})})]}),_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x131),'children':_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':_0x59fbec(0x1fc),'children':[_0x262b48['jsxs'](_0x59fbec(0x144),{'className':_0x59fbec(0x237),'children':[_0x262b48[_0x59fbec(0x25a)]('label',{'className':_0x59fbec(0x1a1),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x1b7),{'children':'🔑'}),'\x20',_0x2168e0['t'](_0x59fbec(0x135)),_0x262b48['jsx']('span',{'className':_0x59fbec(0x151),'children':'*'}),_0x3fe8a6&&_0x262b48[_0x59fbec(0x1f3)]('a',{'className':_0x59fbec(0x159),'title':_0x2168e0['t']('mcpConfig.apiApplyInfo.title'),'role':_0x59fbec(0x1ee),'onClick':()=>_0xbe9199(!0x0),'children':_0x262b48[_0x59fbec(0x1f3)](_0x599c9e,{})})]}),_0x262b48[_0x59fbec(0x1f3)](_0x47fe66[_0x59fbec(0x20b)],{'type':'text','placeholder':_0x2168e0['t'](_0x59fbec(0x214)),'value':_0x4f2eb9,'disabled':_0x1b86b3,'autoComplete':'off','onChange':_0x226022}),_0x262b48['jsx']('p',{'className':_0x59fbec(0x1c6),'children':_0x2168e0['t']('mcpConfig.apiKeyHint')})]}),_0x3fe8a6&&_0x47fac3&&_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':_0x59fbec(0x298),'children':[_0x262b48[_0x59fbec(0x1f3)]('a',{'className':_0x59fbec(0x2a4),'role':_0x59fbec(0x1ee),'onClick':()=>_0xbe9199(!0x1),'children':_0x262b48['jsx'](_0x314ed1,{'className':_0x59fbec(0x1a0)})}),_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':_0x59fbec(0x189),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x2a2),'children':_0x262b48[_0x59fbec(0x1f3)]('span',{'className':_0x59fbec(0x1c3),'children':'🚀'})}),_0x262b48['jsxs'](_0x59fbec(0x144),{'className':'univer-flex-1','children':[_0x262b48['jsx']('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x2168e0['t'](_0x59fbec(0x250))}),_0x262b48['jsx']('p',{'className':_0x59fbec(0x125),'children':_0x2168e0['t'](_0x59fbec(0x169))}),_0x262b48['jsx'](_0x59fbec(0x144),{'className':_0x59fbec(0x2b0),'children':_0x1a30df&&_0x262b48[_0x59fbec(0x25a)]('a',{'className':_0x59fbec(0x258),'href':_0x1376ae,'target':_0x59fbec(0x165),'rel':_0x59fbec(0x14a),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x1b7),{'children':'🤖'}),_0x2168e0['t'](_0x59fbec(0x28c)),_0x262b48['jsx'](_0x59fbec(0x1b7),{'className':_0x59fbec(0x1c2),'children':'↗'})]})}),_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x2168e0['t'](_0x59fbec(0x122))]})]})]})]}),_0x351a4c['showDeveloperTools']&&_0x262b48['jsxs']('div',{'className':_0x59fbec(0x1df),'children':[_0x262b48[_0x59fbec(0x25a)]('h4',{'className':_0x59fbec(0x154),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x1b7),{'children':'🔗'}),'\x20',_0x2168e0['t'](_0x59fbec(0x280))]}),_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':'univer-space-y-4','children':[_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':_0x59fbec(0x1b2),'children':[_0x262b48[_0x59fbec(0x1f3)]('p',{'className':_0x59fbec(0x282),'children':_0x2168e0['t']('mcpConfig.configInstructions')}),_0x262b48['jsxs'](_0x59fbec(0x144),{'className':_0x59fbec(0x237),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x287),'children':_0x2168e0['t'](_0x59fbec(0x1d9))}),_0x262b48['jsxs'](_0x59fbec(0x144),{'className':_0x59fbec(0x217),'children':[_0x262b48['jsxs'](_0x59fbec(0x144),{'className':_0x59fbec(0x186),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x1b7),{'className':_0x59fbec(0x262),'children':'1'}),_0x2168e0['t']('mcpConfig.configStep1')]}),_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':_0x59fbec(0x186),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x1b7),{'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'}),_0x2168e0['t']('mcpConfig.configStep2')]}),_0x262b48['jsxs']('div',{'className':_0x59fbec(0x186),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x1b7),{'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'}),_0x2168e0['t'](_0x59fbec(0x1e3))]})]})]})]}),_0x262b48['jsxs'](_0x59fbec(0x144),{'className':'univer-space-y-2','children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x59fbec(0x1bf)}),_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x221),'children':_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x263),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x59fbec(0x128)]({'mcpServers':{'univer':{'url':_0x59fbec(0x257)+(_0x4945ca||_0x59fbec(0x212)),'type':_0x59fbec(0x28b),'headers':{'Authorization':_0x59fbec(0x1b9)+(_0x4f2eb9||_0x59fbec(0x12a))}}}},null,0x2)})})]}),_0x262b48['jsxs'](_0x59fbec(0x144),{'className':_0x59fbec(0x1b2),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x2168e0['t']('mcpConfig.configParameters')}),_0x262b48[_0x59fbec(0x25a)]('div',{'className':_0x59fbec(0x237),'children':[_0x262b48[_0x59fbec(0x25a)]('div',{'className':_0x59fbec(0x244),'children':[_0x262b48['jsx']('div',{'className':_0x59fbec(0x1fd)}),_0x262b48['jsxs'](_0x59fbec(0x144),{'className':_0x59fbec(0x137),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x288),'children':'univer_session_id:'}),_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x1c6),'children':_0x2168e0['t'](_0x59fbec(0x299))})]})]}),_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':_0x59fbec(0x244),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x1fd)}),_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':_0x59fbec(0x137),'children':[_0x262b48[_0x59fbec(0x1f3)]('div',{'className':_0x59fbec(0x288),'children':_0x59fbec(0x22b)}),_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x1c6),'children':_0x2168e0['t'](_0x59fbec(0x268))})]})]})]})]})]})]}),_0x262b48['jsx'](_0x47fe66[_0x59fbec(0x176)],{'onClick':_0x219f05,'disabled':!_0x4b08dc||_0x1b86b3,'className':_0x59fbec(0x1d5),'children':_0x1b86b3?_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x1b7),{'className':_0x59fbec(0x186),'children':[_0x262b48['jsx'](_0x59fbec(0x1b7),{'children':'⟲'}),_0x2168e0['t'](_0x59fbec(0x255))]}):_0x262b48[_0x59fbec(0x25a)]('span',{'className':_0x59fbec(0x186),'children':[_0x262b48[_0x59fbec(0x1f3)](_0xa17919,{}),_0x2168e0['t'](_0x59fbec(0x27b))]})}),_0x262b48['jsx']('div',{'className':_0x59fbec(0x178),'children':_0x262b48['jsxs'](_0x59fbec(0x144),{'className':_0x59fbec(0x185),'children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x1b7),{'className':_0x59fbec(0x223),'children':'💡'}),_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x262b48[_0x59fbec(0x1f3)](_0x59fbec(0x144),{'className':_0x59fbec(0x229),'children':_0x59fbec(0x14e)}),_0x262b48['jsxs']('div',{'children':['•',_0x2168e0['t'](_0x59fbec(0x13e))]}),_0x262b48[_0x59fbec(0x25a)](_0x59fbec(0x144),{'children':['•',_0x2168e0['t'](_0x59fbec(0x17e))]})]})]})})]})})]});}const _0x249622='mcp-ui.config',_0x5d86d9={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x56eb3c=Object['getOwnPropertyDescriptor'],_0x39c4f7=(_0x2ff056,_0x143beb,_0x39ac7f,_0x5acae0)=>{for(var _0x53a4bf=_0x5acae0>0x1?void 0x0:_0x5acae0?_0x56eb3c(_0x143beb,_0x39ac7f):_0x143beb,_0x38a153=_0x2ff056['length']-0x1,_0x2156be;_0x38a153>=0x0;_0x38a153--)(_0x2156be=_0x2ff056[_0x38a153])&&(_0x53a4bf=_0x2156be(_0x53a4bf)||_0x53a4bf);return _0x53a4bf;},_0x577745=(_0xd72f82,_0x30f6f9)=>(_0x258a28,_0x14e92c)=>_0x30f6f9(_0x258a28,_0x14e92c,_0xd72f82);const _0x16fb22='mcp.apiKey',_0xdd14a8=_0x1a91c3(0x2b8);_0x4c9298[_0x1a91c3(0x2a1)]=class extends _0x2b20d3['Disposable']{constructor(_0x503842,_0x51110d,_0x4fb0b3,_0x578890,_0x409bfe,_0x3e9e16,_0x181f64,_0x18d20c,_0x1a63ba,_0x2f6b07){const _0x3f179a=_0x1a91c3;super(),_0x2a2485(this,_0x3f179a(0x26f),new _0x29d232[(_0x3f179a(0x209))](!0x1)),_0x2a2485(this,_0x3f179a(0x158),new _0x29d232[(_0x3f179a(0x209))]({})),_0x2a2485(this,_0x3f179a(0x193),new _0x29d232[(_0x3f179a(0x209))]({})),_0x2a2485(this,_0x3f179a(0x166),new _0x29d232[(_0x3f179a(0x209))]('')),_0x2a2485(this,_0x3f179a(0x164),async _0x3505f8=>{const _0x2d6ec2=_0x3f179a;var _0x2ca36c,_0x3a3efe;this[_0x2d6ec2(0x26f)][_0x2d6ec2(0x1e2)](!0x0);try{const _0x5e6de0=await this[_0x2d6ec2(0x1e8)](_0x3505f8);if(!_0x5e6de0['isValid']){this['_messageService'][_0x2d6ec2(0x175)]({'type':_0x47fe66[_0x2d6ec2(0x276)]['Error'],'content':_0x5e6de0[_0x2d6ec2(0x284)]||this[_0x2d6ec2(0x241)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x3505f8[_0x2d6ec2(0x1c9)]?await this['_localStorageService'][_0x2d6ec2(0x207)](_0x16fb22,_0x3505f8[_0x2d6ec2(0x1c9)][_0x2d6ec2(0x29a)]()):await this[_0x2d6ec2(0x2b4)][_0x2d6ec2(0x182)](_0x16fb22),this[_0x2d6ec2(0x166)][_0x2d6ec2(0x1e2)](((_0x2ca36c=_0x3505f8[_0x2d6ec2(0x1c9)])==null?void 0x0:_0x2ca36c['trim']())||''),this[_0x2d6ec2(0x213)]['__setCustomHeaders']({'Authorization':_0x2d6ec2(0x1b9)+((_0x3a3efe=_0x3505f8[_0x2d6ec2(0x1c9)])==null?void 0x0:_0x3a3efe[_0x2d6ec2(0x29a)]())}),this[_0x2d6ec2(0x281)][_0x2d6ec2(0x175)]({'type':_0x47fe66['MessageType'][_0x2d6ec2(0x226)],'content':this[_0x2d6ec2(0x241)]['t'](_0x2d6ec2(0x16e))}),setTimeout(()=>{const _0x15e461=_0x2d6ec2;this[_0x15e461(0x2a8)][_0x15e461(0x285)](_0xdd14a8);},0x320);}catch(_0x42e750){this[_0x2d6ec2(0x28e)][_0x2d6ec2(0x195)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x42e750),this['_messageService'][_0x2d6ec2(0x175)]({'type':_0x47fe66[_0x2d6ec2(0x276)][_0x2d6ec2(0x1de)],'content':this[_0x2d6ec2(0x241)]['t'](_0x2d6ec2(0x1ad))});}finally{this[_0x2d6ec2(0x26f)]['next'](!0x1);}}),(this[_0x3f179a(0x247)]=_0x503842,this[_0x3f179a(0x2ae)]=_0x51110d,this[_0x3f179a(0x216)]=_0x4fb0b3,this['_localStorageService']=_0x578890,this[_0x3f179a(0x2a8)]=_0x409bfe,this['_messageService']=_0x3e9e16,this[_0x3f179a(0x19b)]=_0x181f64,this[_0x3f179a(0x241)]=_0x18d20c,this[_0x3f179a(0x28e)]=_0x1a63ba,this[_0x3f179a(0x213)]=_0x2f6b07,this[_0x3f179a(0x147)](),this[_0x3f179a(0x256)](),this[_0x3f179a(0x24f)]());}[_0x1a91c3(0x17a)](){const _0x2afb2b=_0x1a91c3,_0x241f74=this[_0x2afb2b(0x216)][_0x2afb2b(0x261)](_0x249622);_0x241f74!=null&&_0x241f74['showDeveloperTools']&&this[_0x2afb2b(0x2a8)][_0x2afb2b(0x239)]({'id':_0xdd14a8,'title':{'title':this[_0x2afb2b(0x241)]['t']('mcpConfig.title')},'children':{'label':_0x2afb2b(0x23d)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x47ce18=_0x2afb2b;this[_0x47ce18(0x2a8)]['close'](_0xdd14a8);}});}[_0x1a91c3(0x1e0)](){const _0x296966=_0x1a91c3;return this['_mcpCoreConfig$'][_0x296966(0x225)];}['_registerComponent'](){const _0x44b317=_0x1a91c3;this[_0x44b317(0x1ef)](this[_0x44b317(0x19b)][_0x44b317(0x1fe)](_0x44b317(0x23d),this['_createConfigPanelComponent']()));}[_0x1a91c3(0x205)](){const _0x33b711=_0x1a91c3;return _0x18c4b7[_0x33b711(0x172)](()=>{const _0x575a4f=_0x33b711;var _0x452e60,_0x13a066,_0x38f1dc;return _0x262b48[_0x575a4f(0x1f3)](_0x31ca05,{'config':this[_0x575a4f(0x193)][_0x575a4f(0x225)],'mcpCoreConfig':this[_0x575a4f(0x158)]['value'],'currentApiKey$':this[_0x575a4f(0x166)],'onSave':this[_0x575a4f(0x164)],'loading':this[_0x575a4f(0x26f)][_0x575a4f(0x225)],'connectionStatus$':(_0x452e60=this[_0x575a4f(0x213)])==null?void 0x0:_0x452e60[_0x575a4f(0x2a9)],'connectionError$':(_0x13a066=this[_0x575a4f(0x213)])==null?void 0x0:_0x13a066['connectionError$'],'currentSessionId$':(_0x38f1dc=this[_0x575a4f(0x213)])==null?void 0x0:_0x38f1dc[_0x575a4f(0x26a)]});},this[_0x33b711(0x247)]);}[_0x1a91c3(0x147)](){const _0xffd0dd=_0x1a91c3;this[_0xffd0dd(0x1ef)](this['_configService'][_0xffd0dd(0x1ac)](_0x575e6c[_0xffd0dd(0x1b6)])[_0xffd0dd(0x16f)](_0x4a301b=>{const _0x3ee65a=_0xffd0dd;this[_0x3ee65a(0x158)]['next'](_0x4a301b||{});}));const _0x11a53c=this[_0xffd0dd(0x216)]['getConfig'](_0x575e6c['MCP_PLUGIN_CONFIG_KEY']);this['_mcpCoreConfig$'][_0xffd0dd(0x1e2)](_0x11a53c||{}),this[_0xffd0dd(0x1ef)](this[_0xffd0dd(0x216)][_0xffd0dd(0x1ac)](_0x249622)[_0xffd0dd(0x16f)](_0x105f59=>{const _0x1fbd21=_0xffd0dd;this[_0x1fbd21(0x193)][_0x1fbd21(0x1e2)](_0x105f59||{});}));const _0x411d60=this[_0xffd0dd(0x216)][_0xffd0dd(0x261)](_0x249622);this[_0xffd0dd(0x193)][_0xffd0dd(0x1e2)](_0x411d60||{});}async[_0x1a91c3(0x256)](){const _0x30beed=_0x1a91c3,_0x2c7303=this[_0x30beed(0x216)]['getConfig'](_0x249622);if(!(_0x2c7303!=null&&_0x2c7303['showDeveloperTools']))return;const _0x2189cb=await this[_0x30beed(0x2b4)][_0x30beed(0x1d8)](_0x16fb22);_0x2189cb&&(this[_0x30beed(0x213)][_0x30beed(0x198)]({'Authorization':_0x30beed(0x1b9)+_0x2189cb}),this[_0x30beed(0x166)]['next'](_0x2189cb));}async['_validateConfig'](_0xa9f3b5){const _0x1c8195=_0x1a91c3;if(!_0xa9f3b5[_0x1c8195(0x1c9)]||_0xa9f3b5[_0x1c8195(0x1c9)][_0x1c8195(0x29a)]()[_0x1c8195(0x1ae)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x1c8195(0x12c))};if(_0xa9f3b5[_0x1c8195(0x1c9)][_0x1c8195(0x29a)]()[_0x1c8195(0x1ae)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x1c8195(0x241)]['t'](_0x1c8195(0x293))};try{const _0x116c22=await this[_0x1c8195(0x247)][_0x1c8195(0x24e)](_0x575e6c[_0x1c8195(0x24c)])[_0x1c8195(0x1a5)](_0xa9f3b5[_0x1c8195(0x1c9)][_0x1c8195(0x29a)]());return _0x116c22[_0x1c8195(0x1d2)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x116c22[_0x1c8195(0x195)]||this[_0x1c8195(0x241)]['t'](_0x1c8195(0x1e7))};}catch(_0x1bae86){return console['warn'](_0x1c8195(0x220),_0x1bae86),{'isValid':!0x0};}}},_0x4c9298[_0x1a91c3(0x2a1)]=_0x39c4f7([_0x577745(0x0,_0x2b20d3[_0x1a91c3(0x2b2)](_0x2b20d3[_0x1a91c3(0x283)])),_0x577745(0x1,_0x18c4b7[_0x1a91c3(0x141)]),_0x577745(0x2,_0x2b20d3[_0x1a91c3(0x192)]),_0x577745(0x3,_0x2b20d3[_0x1a91c3(0x17b)]),_0x577745(0x4,_0x18c4b7[_0x1a91c3(0x1d4)]),_0x577745(0x5,_0x18c4b7['IMessageService']),_0x577745(0x6,_0x2b20d3[_0x1a91c3(0x2b2)](_0x18c4b7[_0x1a91c3(0x2af)])),_0x577745(0x7,_0x2b20d3['Inject'](_0x2b20d3[_0x1a91c3(0x1c4)])),_0x577745(0x8,_0x2b20d3[_0x1a91c3(0x252)]),_0x577745(0x9,_0x2b20d3[_0x1a91c3(0x2b2)](_0x575e6c[_0x1a91c3(0x24c)]))],_0x4c9298['MCPConfigUIController']);const _0x407eb0={'id':'mcp-ui.command.openConfigPanel','type':_0x2b20d3[_0x1a91c3(0x231)][_0x1a91c3(0x215)],'handler':async(_0x33fe87,_0x18c21b)=>(_0x33fe87['get'](_0x4c9298[_0x1a91c3(0x2a1)])[_0x1a91c3(0x17a)](),!0x0)};function _0x2a67e8(_0x4da8f0,_0xce159e){const _0x104613=_0x1a91c3;switch(_0x4da8f0){case _0x575e6c[_0x104613(0x265)]['DISCONNECTED']:return _0x104613(0x183);case _0x575e6c[_0x104613(0x265)][_0x104613(0x19f)]:return _0x104613(0x245);case _0x575e6c[_0x104613(0x265)][_0x104613(0x146)]:return _0x104613(0x16b);case _0x575e6c[_0x104613(0x265)][_0x104613(0x270)]:switch(_0xce159e){case _0x575e6c['MCPConnectionError'][_0x104613(0x14d)]:return'mcpStatus.unauthorized';case _0x575e6c['MCPConnectionError']['SESSION_ID_OCCUPIED']:return _0x104613(0x25f);case _0x575e6c[_0x104613(0x18c)][_0x104613(0x27e)]:return'mcpStatus.networkError';case _0x575e6c[_0x104613(0x18c)][_0x104613(0x25d)]:return'mcpStatus.maxRetriesExceeded';default:return _0x104613(0x289);}case _0x575e6c[_0x104613(0x265)][_0x104613(0x1a9)]:return _0x104613(0x295);default:return _0x104613(0x28a);}}function _0x3a9a11(_0x272f42,_0x36437a,_0x51bfe1,_0x13408f=!0x0){const _0x322080=_0x1a91c3,_0xcc76c2=_0x2a67e8(_0x272f42,_0x36437a),_0x508ea6=_0x51bfe1['t'](_0xcc76c2);return _0x13408f?_0x272f42===_0x575e6c[_0x322080(0x265)][_0x322080(0x1c5)]&&_0x36437a===_0x575e6c[_0x322080(0x18c)][_0x322080(0x14d)]?_0x508ea6+_0x322080(0x196)+_0x51bfe1['t']('mcpStatus.clickToConfigure'):_0x272f42===_0x575e6c[_0x322080(0x265)][_0x322080(0x146)]?''+_0x508ea6:_0x272f42===_0x575e6c['MCPConnectionStatus'][_0x322080(0x1c5)]||_0x272f42===_0x575e6c[_0x322080(0x265)][_0x322080(0x270)]?_0x508ea6+_0x322080(0x196)+_0x51bfe1['t'](_0x322080(0x124)):_0x508ea6:_0x508ea6;}function _0x287ca1(_0x555e67){const _0xa0ddd0=_0x1a91c3;switch(_0x555e67){case _0x575e6c['MCPConnectionStatus'][_0xa0ddd0(0x146)]:return _0xa0ddd0(0x21d);case _0x575e6c[_0xa0ddd0(0x265)]['CONNECTING']:case _0x575e6c['MCPConnectionStatus']['RETRYING']:return _0xa0ddd0(0x249);case _0x575e6c['MCPConnectionStatus'][_0xa0ddd0(0x270)]:case _0x575e6c[_0xa0ddd0(0x265)]['DISCONNECTED']:return _0xa0ddd0(0x151);default:return _0xa0ddd0(0x1fa);}}function _0x350634(_0x384525){const _0x16bd39=_0x1a91c3,{status$:_0x14cd27,error$:_0x80adee,onConfigure:_0x3aa228,showClickable:_0x52b8cf=!0x0}=_0x384525,_0x447211=_0x18c4b7[_0x16bd39(0x297)](_0x14cd27,_0x575e6c[_0x16bd39(0x265)][_0x16bd39(0x1c5)]),_0x534e73=_0x18c4b7[_0x16bd39(0x297)](_0x80adee,_0x575e6c[_0x16bd39(0x18c)][_0x16bd39(0x27c)]),_0x34d704=_0x18c4b7[_0x16bd39(0x134)](_0x2b20d3[_0x16bd39(0x1c4)]),_0x571618=_0x447211===_0x575e6c['MCPConnectionStatus'][_0x16bd39(0x146)];_0x447211===_0x575e6c['MCPConnectionStatus'][_0x16bd39(0x19f)]||_0x575e6c[_0x16bd39(0x265)]['RETRYING'];const _0x452b76=_0x34d704['t'](_0x2a67e8(_0x447211,_0x534e73)),_0x287ee6=_0x3a9a11(_0x447211,_0x534e73,_0x34d704,_0x52b8cf),_0x25f359=_0x287ca1(_0x447211),_0x351b35=_0x571618?_0x262b48[_0x16bd39(0x1f3)](_0x196304,{}):_0x262b48[_0x16bd39(0x1f3)](_0x6b3ea5,{}),_0x15080e=_0x4400e4[_0x16bd39(0x18a)](()=>{_0x52b8cf&&_0x3aa228&&_0x3aa228();},[_0x52b8cf,_0x3aa228]);function _0x51247f(){const _0x2f5ae3=_0x16bd39;return _0x262b48[_0x2f5ae3(0x25a)](_0x2f5ae3(0x144),{'className':_0x47fe66[_0x2f5ae3(0x12e)](_0x2f5ae3(0x130),_0x52b8cf&&_0x3aa228&&_0x2f5ae3(0x273)),'role':'button','onClick':_0x52b8cf&&_0x3aa228?_0x15080e:void 0x0,'children':[_0x262b48[_0x2f5ae3(0x1f3)]('div',{'className':_0x47fe66['clsx'](_0x2f5ae3(0x277),_0x25f359),'children':_0x351b35}),_0x262b48[_0x2f5ae3(0x1f3)](_0x2f5ae3(0x144),{'className':_0x2f5ae3(0x211),'children':_0x452b76})]});}return _0x262b48[_0x16bd39(0x1f3)](_0x47fe66[_0x16bd39(0x1a8)],{'title':_0x287ee6,'placement':_0x16bd39(0x2a3),'children':_0x51247f()});}var _0x6e1de7=Object[_0x1a91c3(0x24a)],_0x16137d=(_0x82c197,_0x34badc,_0x2c81df,_0x1f9571)=>{const _0xbdae2a=_0x1a91c3;for(var _0x4e317f=_0x1f9571>0x1?void 0x0:_0x1f9571?_0x6e1de7(_0x34badc,_0x2c81df):_0x34badc,_0x201e6e=_0x82c197[_0xbdae2a(0x1ae)]-0x1,_0x2b998a;_0x201e6e>=0x0;_0x201e6e--)(_0x2b998a=_0x82c197[_0x201e6e])&&(_0x4e317f=_0x2b998a(_0x4e317f)||_0x4e317f);return _0x4e317f;},_0x30654c=(_0x1fd77d,_0x1da053)=>(_0x2c369b,_0x1ee217)=>_0x1da053(_0x2c369b,_0x1ee217,_0x1fd77d);_0x4c9298['MCPConnectionUIController']=class extends _0x2b20d3['Disposable']{constructor(_0x27493b,_0x322b09,_0x5408ed,_0xee987e){const _0x56ec2e=_0x1a91c3;super(),this[_0x56ec2e(0x247)]=_0x27493b,this['_connectionController']=_0x322b09,this[_0x56ec2e(0x2ae)]=_0x5408ed,this[_0x56ec2e(0x216)]=_0xee987e,this[_0x56ec2e(0x140)](),this[_0x56ec2e(0x1b1)]();}[_0x1a91c3(0x140)](){const _0x31f3cc=_0x1a91c3,_0x5cf73c=this[_0x31f3cc(0x216)][_0x31f3cc(0x261)](_0x249622);_0x5cf73c!=null&&_0x5cf73c[_0x31f3cc(0x1b4)]&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x1a91c3(0x1b1)](){const _0x1f27a2=_0x1a91c3,_0x587bf9=this[_0x1f27a2(0x216)][_0x1f27a2(0x261)](_0x249622);(_0x587bf9==null?void 0x0:_0x587bf9[_0x1f27a2(0x168)])!==!0x1&&this[_0x1f27a2(0x1ef)](this['_uiPartsService'][_0x1f27a2(0x20d)](_0x18c4b7[_0x1f27a2(0x292)][_0x1f27a2(0x1f9)],()=>{const _0x10174=_0x1f27a2;var _0x22ebcd;return _0x18c4b7[_0x10174(0x172)](_0x117ca2({'status$':this['_connectionController']['connectionStatus$'],'error$':this['_connectionController'][_0x10174(0x1f7)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x22ebcd=_0x587bf9==null?void 0x0:_0x587bf9[_0x10174(0x1b4)])!=null?_0x22ebcd:!0x1}),this[_0x10174(0x247)]);}));}[_0x1a91c3(0x29d)](){const _0x4f550d=_0x1a91c3;this[_0x4f550d(0x247)][_0x4f550d(0x24e)](_0x4c9298[_0x4f550d(0x2a1)])[_0x4f550d(0x17a)]();}},_0x4c9298[_0x1a91c3(0x120)]=_0x16137d([_0x30654c(0x0,_0x2b20d3[_0x1a91c3(0x2b2)](_0x2b20d3[_0x1a91c3(0x283)])),_0x30654c(0x1,_0x2b20d3[_0x1a91c3(0x2b2)](_0x575e6c[_0x1a91c3(0x24c)])),_0x30654c(0x2,_0x18c4b7['IUIPartsService']),_0x30654c(0x3,_0x2b20d3[_0x1a91c3(0x192)])],_0x4c9298[_0x1a91c3(0x120)]);function _0x117ca2(_0x34eebc){const {status$:_0x3d5451,error$:_0xd3eb1b,onConfigure:_0x1de548,showClickable:_0x411871}=_0x34eebc;return function(){const _0x2b7457=_0x2c3e;return _0x262b48[_0x2b7457(0x1f3)](_0x350634,{'status$':_0x3d5451,'error$':_0xd3eb1b,'onConfigure':_0x1de548,'showClickable':_0x411871});};}function _0x780f40(_0x3828fa){const _0x4316bf=_0x1a91c3;return{'id':_0x407eb0['id'],'type':_0x18c4b7[_0x4316bf(0x23b)]['BUTTON'],'icon':_0x4316bf(0x271),'title':_0x4316bf(0x15d),'tooltip':'mcpConfig.title'};}const _0x4d809e={[_0x18c4b7['RibbonStartGroup'][_0x1a91c3(0x1e1)]]:{[_0x407eb0['id']]:{'order':0xa,'menuItemFactory':_0x780f40}}};var _0x3c8054=Object[_0x1a91c3(0x24a)],_0x2a3a89=(_0x9f6b94,_0x456cb3,_0x458b8f,_0x4901ed)=>{const _0x564d63=_0x1a91c3;for(var _0x5c1050=_0x4901ed>0x1?void 0x0:_0x4901ed?_0x3c8054(_0x456cb3,_0x458b8f):_0x456cb3,_0x3d8733=_0x9f6b94[_0x564d63(0x1ae)]-0x1,_0xeecf6e;_0x3d8733>=0x0;_0x3d8733--)(_0xeecf6e=_0x9f6b94[_0x3d8733])&&(_0x5c1050=_0xeecf6e(_0x5c1050)||_0x5c1050);return _0x5c1050;},_0x2e3a3a=(_0x3f682e,_0x267300)=>(_0x57e875,_0x454a3f)=>_0x267300(_0x57e875,_0x454a3f,_0x3f682e);_0x4c9298['MCPUIMenuController']=class extends _0x2b20d3[_0x1a91c3(0x13a)]{constructor(_0x481f6a,_0x10abfc){const _0x5deef0=_0x1a91c3;super(),this[_0x5deef0(0x20f)]=_0x481f6a,this[_0x5deef0(0x153)]=_0x10abfc,this[_0x5deef0(0x1b8)](),this['_initializeMenus']();}[_0x1a91c3(0x1b8)](){const _0x5be486=_0x1a91c3;[_0x407eb0][_0x5be486(0x191)](_0x21d8f5=>{const _0x5618a4=_0x5be486;this['disposeWithMe'](this[_0x5618a4(0x20f)]['registerCommand'](_0x21d8f5));});}[_0x1a91c3(0x194)](){const _0x505a33=_0x1a91c3;this[_0x505a33(0x153)]['mergeMenu'](_0x4d809e);}},_0x4c9298[_0x1a91c3(0x1cf)]=_0x2a3a89([_0x2e3a3a(0x0,_0x2b20d3[_0x1a91c3(0x1a7)]),_0x2e3a3a(0x1,_0x18c4b7[_0x1a91c3(0x232)])],_0x4c9298[_0x1a91c3(0x1cf)]);const _0x25ee66={'mcpStatus':{'disconnected':_0x1a91c3(0x15f),'connecting':_0x1a91c3(0x278),'connected':_0x1a91c3(0x272),'failed':_0x1a91c3(0x2b5),'retrying':_0x1a91c3(0x19c),'unknown':_0x1a91c3(0x1e5),'unauthorized':_0x1a91c3(0x233),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x1a91c3(0x248),'maxRetriesExceeded':_0x1a91c3(0x1bb),'clickToConnect':_0x1a91c3(0x132),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1a91c3(0x1bf),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1a91c3(0x167),'apiKeyPlaceholder':_0x1a91c3(0x1f1),'apiKeyHint':_0x1a91c3(0x184),'enableAuth':_0x1a91c3(0x12b),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x1a91c3(0x23c),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1a91c3(0x20a),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x1a91c3(0x1f2),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x1a91c3(0x290),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x1a91c3(0x21f),'configParameters':_0x1a91c3(0x13d),'maxRetries':_0x1a91c3(0x228),'save':_0x1a91c3(0x2b3),'saving':'Saving...','note1':_0x1a91c3(0x127),'note2':_0x1a91c3(0x266),'configSaved':_0x1a91c3(0x171),'configError':_0x1a91c3(0x28f),'apiApplyInfo':{'title':_0x1a91c3(0x13c),'description':_0x1a91c3(0x16c),'univerAiLabel':_0x1a91c3(0x1cd),'getStarted':_0x1a91c3(0x224)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x1a91c3(0x2a7),'invalidConfig':_0x1a91c3(0x2aa),'invalidApiKey':_0x1a91c3(0x202)},'connectionStatus':{'disconnected':_0x1a91c3(0x1bd),'connecting':_0x1a91c3(0x199),'connected':_0x1a91c3(0x22f),'failed':'Connection\x20Failed','retrying':_0x1a91c3(0x149)},'connectionError':{'unauthorized':_0x1a91c3(0x204),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},_0x1a0622={'mcpStatus':{'disconnected':_0x1a91c3(0x157),'connecting':_0x1a91c3(0x1b0),'connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x1a91c3(0x22d),'unknown':_0x1a91c3(0x210),'unauthorized':_0x1a91c3(0x21b),'sessionOccupied':_0x1a91c3(0x24b),'networkError':_0x1a91c3(0x15e),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x1a91c3(0x136),'clickToConfigure':_0x1a91c3(0x145)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x1a91c3(0x2a5),'apiKeyPlaceholder':_0x1a91c3(0x275),'apiKeyHint':_0x1a91c3(0x16d),'enableAuth':_0x1a91c3(0x264),'enableAuthHint':_0x1a91c3(0x161),'connectionInfo':_0x1a91c3(0x12f),'mcpClientConfig':_0x1a91c3(0x12f),'configInstructions':_0x1a91c3(0x279),'configStepTitle':'配置步骤:','configStep1':_0x1a91c3(0x206),'configStep2':_0x1a91c3(0x1d6),'configStep3':_0x1a91c3(0x18e),'sessionId':_0x1a91c3(0x1db),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x1a91c3(0x251),'configParameters':_0x1a91c3(0x23f),'maxRetries':_0x1a91c3(0x22c),'save':_0x1a91c3(0x21a),'saving':_0x1a91c3(0x246),'note1':_0x1a91c3(0x25e),'note2':_0x1a91c3(0x22e),'configSaved':_0x1a91c3(0x2b7),'configError':_0x1a91c3(0x1ca),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x1a91c3(0x18b),'univerAiLabel':_0x1a91c3(0x242),'getStarted':_0x1a91c3(0x163)},'validation':{'apiKeyRequired':_0x1a91c3(0x177),'apiKeyTooShort':_0x1a91c3(0x203),'invalidConfig':_0x1a91c3(0x259),'invalidApiKey':_0x1a91c3(0x218)},'connectionStatus':{'disconnected':_0x1a91c3(0x2b1),'connecting':'连接中...','connected':_0x1a91c3(0x173),'failed':_0x1a91c3(0x16a),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x1a91c3(0x1ea),'sessionOccupied':_0x1a91c3(0x294),'networkError':_0x1a91c3(0x126),'maxRetriesExceeded':_0x1a91c3(0x1ba)}}};var _0x1301e3=Object[_0x1a91c3(0x152)],_0xd6b100=Object[_0x1a91c3(0x24a)],_0x4bc02f=(_0x4596f4,_0x52afed,_0x3d75a0)=>_0x52afed in _0x4596f4?_0x1301e3(_0x4596f4,_0x52afed,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d75a0}):_0x4596f4[_0x52afed]=_0x3d75a0,_0x5d0c16=(_0x14f903,_0x3bf6c9,_0x320775,_0x73cb57)=>{const _0xf9a9a5=_0x1a91c3;for(var _0xaa561a=_0x73cb57>0x1?void 0x0:_0x73cb57?_0xd6b100(_0x3bf6c9,_0x320775):_0x3bf6c9,_0x31c9c1=_0x14f903[_0xf9a9a5(0x1ae)]-0x1,_0x1625bf;_0x31c9c1>=0x0;_0x31c9c1--)(_0x1625bf=_0x14f903[_0x31c9c1])&&(_0xaa561a=_0x1625bf(_0xaa561a)||_0xaa561a);return _0xaa561a;},_0xbfb791=(_0x3aef3c,_0xa995a)=>(_0x4d0d74,_0x7f723e)=>_0xa995a(_0x4d0d74,_0x7f723e,_0x3aef3c),_0x4bbdf9=(_0x37864a,_0x40c33d,_0x3dc402)=>_0x4bc02f(_0x37864a,_0x40c33d+'',_0x3dc402);_0x4c9298[_0x1a91c3(0x236)]=class extends _0x2b20d3[_0x1a91c3(0x123)]{constructor(_0x1a4a51=_0x5d86d9,_0x117bb0,_0x133b78,_0x5d82b5,_0x2fdf9e,_0x3f94b2){const _0x47b9e4=_0x1a91c3;super(),this[_0x47b9e4(0x243)]=_0x1a4a51,this[_0x47b9e4(0x247)]=_0x117bb0,this[_0x47b9e4(0x216)]=_0x133b78,this['_uiPartsService']=_0x5d82b5,this[_0x47b9e4(0x2b4)]=_0x2fdf9e,this[_0x47b9e4(0x241)]=_0x3f94b2;const {..._0x2bbbca}=_0x2b20d3[_0x47b9e4(0x160)]({},_0x5d86d9,this[_0x47b9e4(0x243)]);this[_0x47b9e4(0x216)][_0x47b9e4(0x253)](_0x249622,_0x2bbbca);}async[_0x1a91c3(0x143)](){const _0x2aac95=_0x1a91c3,_0x3e17f5=[[_0x4c9298[_0x2aac95(0x120)]],[_0x4c9298['MCPConfigUIController']],[_0x4c9298[_0x2aac95(0x1cf)]]];this[_0x2aac95(0x247)]['has'](_0x121883['ISocketService'])||_0x3e17f5[_0x2aac95(0x129)]([_0x121883[_0x2aac95(0x1d7)],{'useClass':_0x121883[_0x2aac95(0x1a6)]}]),_0x3e17f5[_0x2aac95(0x191)](_0x108581=>this['_injector'][_0x2aac95(0x234)](_0x108581)),this['_injector'][_0x2aac95(0x24e)](_0x4c9298[_0x2aac95(0x120)]),this[_0x2aac95(0x247)][_0x2aac95(0x24e)](_0x4c9298[_0x2aac95(0x2a1)]),this[_0x2aac95(0x247)]['get'](_0x4c9298['MCPUIMenuController']);}},_0x4bbdf9(_0x4c9298['UniverMCPUIPlugin'],'pluginName','MCP_UI_PLUGIN'),_0x4c9298[_0x1a91c3(0x236)]=_0x5d0c16([_0x2b20d3[_0x1a91c3(0x180)](_0x575e6c[_0x1a91c3(0x1cc)]),_0xbfb791(0x1,_0x2b20d3[_0x1a91c3(0x2b2)](_0x2b20d3[_0x1a91c3(0x283)])),_0xbfb791(0x2,_0x2b20d3[_0x1a91c3(0x192)]),_0xbfb791(0x3,_0x18c4b7[_0x1a91c3(0x141)]),_0xbfb791(0x4,_0x2b20d3['ILocalStorageService']),_0xbfb791(0x5,_0x2b20d3[_0x1a91c3(0x2b2)](_0x2b20d3[_0x1a91c3(0x1c4)]))],_0x4c9298[_0x1a91c3(0x236)]),_0x4c9298['MCPConfigPanel']=_0x31ca05,_0x4c9298[_0x1a91c3(0x21e)]=_0x350634,_0x4c9298[_0x1a91c3(0x260)]=_0x407eb0,_0x4c9298[_0x1a91c3(0x1a2)]=_0x25ee66,_0x4c9298['zhCN']=_0x1a0622,Object[_0x1a91c3(0x152)](_0x4c9298,Symbol[_0x1a91c3(0x148)],{'value':_0x1a91c3(0x19a)});}));function _0x3749(){const _0x252e7=['univer-text-yellow-500','getOwnPropertyDescriptor','MCP:\x20会话\x20ID\x20已被占用','MCPConnectionController','random','get','_registerComponent','mcpConfig.apiApplyInfo.title','带有\x20Bearer\x20前缀的\x20API\x20密钥。','ILogService','setConfig','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.saving','_loadStoredApiKey','https://mcp.univer.ai/mcp/?univer_session_id=','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','配置无效','jsxs','translate(.97)','forwardRef','MAX_RETRIES_EXCEEDED','配置更改将立即生效','mcpStatus.sessionOccupied','OpenMCPConfigPanelCommand','getConfig','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','pre','启用身份验证','MCPConnectionStatus','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','white','mcpConfig.authorizationDescription','@univerjs/core','sessionId$','defIds','exports','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','1em','_loading$','FAILED','MenuIcon','MCP\x20Connected','\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','assign','请输入您的\x20API\x20密钥','MessageType','univer-mr-2\x20univer-flex\x20univer-text-xl','MCP\x20Connecting...','将以下配置添加到您的\x20MCP\x20客户端设置中:','1036452OfIKnr','mcpConfig.save','NONE','substring','NETWORK_ERROR','object','mcpConfig.connectionInfo','_messageService','univer-text-xs\x20univer-text-gray-600','Injector','errorMessage','close','univer.plus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpStatus.failed','mcpStatus.unknown','http','mcpConfig.apiApplyInfo.univerAiLabel','14xgWGPn','_logService','Failed\x20to\x20save\x20configuration','Session\x20ID','mcpConfig.description','BuiltInUIPart','mcpConfig.validation.apiKeyTooShort','会话\x20ID\x20已被占用,请稍后再试','mcpStatus.retrying','230wfDhrm','useObservable','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','mcpConfig.sessionIdDescription','trim','UniverCore','createElement','_handleConfigure','2615dmnIFx','round','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','MCPConfigUIController','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','bottom','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','API\x20密钥','mcpConfig.connectionError.maxRetriesExceeded','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_dialogService','connectionStatus$','Invalid\x20configuration','xlink:href','univer-text-white','univer-text-sm\x20univer-font-medium','_uiPartsService','ComponentManager','univer-flex\x20univer-flex-wrap\x20univer-gap-2','未连接','Inject','Save\x20Configuration','_localStorageService','MCP\x20Connection\x20Failed','entries','配置保存成功','mcp-config-dialog','MCPConnectionUIController','react/jsx-runtime','mcpConfig.apiApplyInfo.getStarted','Plugin','mcpStatus.clickToConnect','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','网络连接错误,请检查您的网络连接','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','stringify','push','<API_KEY>','Enable\x20Authentication','mcpConfig.validation.apiKeyRequired','UniverProMcp','clsx','MCP\x20客户端配置','univer-flex\x20univer-items-center','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Click\x20to\x20connect\x20MCP','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','useDependency','mcpConfig.apiKey','点击连接\x20MCP','univer-min-w-0\x20univer-flex-1','rxjs','univer.ai','Disposable','useRef','What\x20is\x20API\x20Key?','Configuration\x20Parameters:','mcpConfig.note1','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_initAutoConnect','IUIPartsService','587814WMHKtX','onStarting','div','点击配置\x20MCP','CONNECTED','_initConfigSync','toStringTag','Retrying...','noopener\x20noreferrer','path','idSuffix','UNAUTHORIZED','Configuration\x20Notes:','url(#$1','UniverDesign','univer-text-red-500','defineProperty','_menuManagerService','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.connectionStatus.disconnected','149179RsyBNA','MCP\x20已断开','_mcpCoreConfig$','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','univer-bg-green-500','UniverIcon','map','mcpConfig.title','MCP:\x20网络错误','MCP\x20Disconnected','merge','启用身份验证以获得安全连接','UniverNetwork','几秒钟内获取您的\x20API\x20密钥','_handleConfigSave','_blank','_apiKey$','API\x20Key','showStatus','mcpConfig.apiApplyInfo.description','连接失败','mcpStatus.connected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','您的\x20API\x20密钥将在此浏览器中本地存储','mcpConfig.configSaved','subscribe','univer-flex\x20univer-items-center\x20univer-gap-3','Configuration\x20saved\x20successfully','connectInjector','已连接','on-line-icon_clip0_910_349','show','Button','API\x20密钥不能为空','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','395776VYLBWe','showConfigPanel','ILocalStorageService','string','colorChannel1','mcpConfig.note2','mcpConfig.connectionError.sessionOccupied','DependentOn','@univerjs/ui','removeItem','mcpStatus.disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-flex\x20univer-gap-3','univer-flex\x20univer-items-center\x20univer-gap-2','HelpIcon','defs','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','useCallback','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCPConnectionError','393453QqKYeT','重启您的\x20MCP\x20客户端以使配置生效','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','check-mark-icon','forEach','IConfigService','_config$','_initializeMenus','error','\x20-\x20','univer-bg-gray-500','__setCustomHeaders','Connecting...','Module','_componentManager','MCP\x20Retrying...','mcpConfig.connectionStatus.connected','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','CONNECTING','univer-size-4','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','enUS','univer-flex\x20univer-items-start\x20univer-gap-2','M0\x200H16V16H0z','validateApiKey','WebSocketService','ICommandService','Tooltip','RETRYING','includes','none','subscribeConfigValue$','mcpConfig.configError','length','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCP\x20连接中...','_initStatusComponent','univer-space-y-3','@univerjs-pro/mcp','showDeveloperTools','children','MCP_PLUGIN_CONFIG_KEY','span','_initializeCommands','Bearer\x20','超出最大重试次数,请稍后再试','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.connectionStatus.failed','Disconnected','off-line-icon','MCP\x20Configuration','currentColor','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-text-gray-400','univer-text-blue-600','LocaleService','DISCONNECTED','univer-text-xs\x20univer-text-gray-500','use','univerjs-icon\x20univerjs-icon-','apiKey','配置保存失败','mcpServerUrl','UniverMCPPlugin','Univer\x20AI\x20Console','displayName','MCPUIMenuController','attrs','evenodd','isValid','univer-bg-blue-500','IDialogService','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','将配置添加到您的\x20MCP\x20客户端设置文件中','ISocketService','getItem','mcpConfig.configStepTitle','OffLineIcon','会话ID','symbol','amd','Error','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','getCurrentConfig','OTHERS','next','mcpConfig.configStep3','https://console.univer.ai','MCP\x20Unknown\x20Status','UniverUi','mcpConfig.validation.invalidApiKey','_validateConfig','svg','权限验证失败,请检查您的\x20API\x20密钥','useState','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','off-line-icon_clip0_910_343','button','disposeWithMe','univer-bg-red-500','Enter\x20your\x20API\x20key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','jsx','tag','React','SESSION_ID_OCCUPIED','connectionError$','on-line-icon','HEADER_MENU','univer-text-gray-500','104cyXyte','univer-space-y-5','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','register','801440tTyiJF','fill','mask','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20密钥长度至少需要\x2010\x20位','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_createConfigPanelComponent','复制以下\x20JSON\x20配置','setItem','UniverProMcpUi','BehaviorSubject','Configuration\x20Steps:','Input','clipPath','registerComponent','url(#on-line-icon_clip0_910_349)','_commandService','MCP\x20状态未知','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','<SESSION_ID>','_mcpConnectionController','mcpConfig.apiKeyPlaceholder','COMMAND','_configService','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','API\x20密钥无效,请检查密钥是否正确','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','保存配置','MCP:\x20未授权','http://www.w3.org/2000/svg','univer-text-green-500','MCPStatusDisplay','API\x20key\x20with\x20Bearer\x20prefix.','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','CloseIcon','univer-shrink-0\x20univer-text-blue-500','Get\x20your\x20API\x20key\x20in\x20seconds','value','Success','replace','Max\x20Retries','univer-font-medium','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','Authorization:','最大重试次数','MCP\x20重连中...','您的\x20API\x20密钥安全存储在本地存储中','Connected','0\x200\x2016\x2016','CommandType','IMenuManagerService','MCP:\x20Unauthorized','add','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','UniverMCPUIPlugin','univer-space-y-2','mcpConfig.connectionStatus.retrying','open','univer-shrink-0\x20univer-text-red-500','MenuItemType','MCP\x20Client\x20Configuration','MCPConfigPanel','current','配置参数:','react','_localeService','Univer\x20AI\x20控制台','_config','univer-flex\x20univer-items-start\x20univer-gap-3','mcpStatus.connecting','保存中...','_injector','MCP:\x20Network\x20Error'];_0x3749=function(){return _0x252e7;};return _0x3749();}
|
|
1
|
+
function _0x4b2b(_0x195c87,_0x5dab1a){_0x195c87=_0x195c87-0x167;const _0x57fcad=_0x57fc();let _0x4b2b1a=_0x57fcad[_0x195c87];return _0x4b2b1a;}(function(_0x8f904d,_0x62d1b0){const _0xdc149c=_0x4b2b,_0x591685=_0x8f904d();while(!![]){try{const _0xcb671e=parseInt(_0xdc149c(0x1df))/0x1*(parseInt(_0xdc149c(0x302))/0x2)+parseInt(_0xdc149c(0x24d))/0x3+parseInt(_0xdc149c(0x1ff))/0x4*(parseInt(_0xdc149c(0x1ce))/0x5)+-parseInt(_0xdc149c(0x182))/0x6*(-parseInt(_0xdc149c(0x2bd))/0x7)+parseInt(_0xdc149c(0x220))/0x8*(parseInt(_0xdc149c(0x183))/0x9)+-parseInt(_0xdc149c(0x1ca))/0xa*(-parseInt(_0xdc149c(0x1f8))/0xb)+-parseInt(_0xdc149c(0x231))/0xc;if(_0xcb671e===_0x62d1b0)break;else _0x591685['push'](_0x591685['shift']());}catch(_0x22f9ab){_0x591685['push'](_0x591685['shift']());}}}(_0x57fc,0x1d116),function(_0x2e8f12,_0x14159f){const _0x30d424=_0x4b2b;typeof exports==_0x30d424(0x1b9)&&typeof module<'u'?_0x14159f(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define==_0x30d424(0x2f1)&&define[_0x30d424(0x27b)]?define(['exports',_0x30d424(0x21c),_0x30d424(0x1b0),_0x30d424(0x1e9),_0x30d424(0x1dc),_0x30d424(0x21f),_0x30d424(0x180),_0x30d424(0x2e8),_0x30d424(0x289)],_0x14159f):(_0x2e8f12=typeof globalThis<'u'?globalThis:_0x2e8f12||self,_0x14159f(_0x2e8f12[_0x30d424(0x2d8)]={},_0x2e8f12[_0x30d424(0x1ac)],_0x2e8f12['React'],_0x2e8f12[_0x30d424(0x26f)],_0x2e8f12[_0x30d424(0x194)],_0x2e8f12[_0x30d424(0x173)],_0x2e8f12[_0x30d424(0x180)],_0x2e8f12[_0x30d424(0x237)],_0x2e8f12['UniverNetwork']));}(this,function(_0xa3f2d7,_0x4cf0fc,_0x3d33c4,_0x40f2ad,_0xbcf279,_0x51b934,_0x5f9683,_0x71e585,_0x4fdea0){'use strict';const _0x20d0b0=_0x4b2b;var _0xca0fa9=Object[_0x20d0b0(0x17d)],_0x868525=(_0x2443a5,_0x42172c,_0x28ce16)=>_0x42172c in _0x2443a5?_0xca0fa9(_0x2443a5,_0x42172c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28ce16}):_0x2443a5[_0x42172c]=_0x28ce16,_0x32029d=(_0x55f2ec,_0x227890,_0x43132b)=>_0x868525(_0x55f2ec,typeof _0x227890!=_0x20d0b0(0x240)?_0x227890+'':_0x227890,_0x43132b);function _0x6715eb({ref:_0x8b8159,..._0x325746}){const _0x1950b5=_0x20d0b0,{icon:_0x5ad1c3,id:_0x5717f2,className:_0x133899,extend:_0x1992f2,..._0x3a8d94}=_0x325746,_0xf4ab5a=(_0x1950b5(0x250)+_0x5717f2+'\x20'+(_0x133899||''))[_0x1950b5(0x1ae)](),_0x5d80fa=_0x71e585[_0x1950b5(0x1cb)]('_'+_0x1b62f8());return _0x1094ac(_0x5ad1c3,''+_0x5717f2,{'defIds':_0x5ad1c3[_0x1950b5(0x2a5)],'idSuffix':_0x5d80fa['current']},{'ref':_0x8b8159,'className':_0xf4ab5a,..._0x3a8d94},_0x1992f2);}function _0x1094ac(_0x452b17,_0x4723bf,_0xc00363,_0x3cde75,_0x234125){const _0x4b87bb=_0x20d0b0;return _0x71e585[_0x4b87bb(0x28f)](_0x452b17['tag'],{'key':_0x4723bf,..._0x6e6483(_0x452b17,_0xc00363,_0x234125),..._0x3cde75},(_0x24a20d(_0x452b17,_0xc00363)[_0x4b87bb(0x29c)]||[])[_0x4b87bb(0x2b4)]((_0x45b712,_0x43bed6)=>_0x1094ac(_0x45b712,_0x4723bf+'-'+_0x452b17[_0x4b87bb(0x22c)]+'-'+_0x43bed6,_0xc00363,void 0x0,_0x234125)));}function _0x6e6483(_0x2a0707,_0x5daf38,_0x4e702f){const _0x2d601e=_0x20d0b0,_0x469db3={..._0x2a0707[_0x2d601e(0x236)]};_0x4e702f!=null&&_0x4e702f[_0x2d601e(0x2d0)]&&_0x469db3[_0x2d601e(0x251)]===_0x2d601e(0x2d0)&&(_0x469db3[_0x2d601e(0x251)]=_0x4e702f[_0x2d601e(0x2d0)]),_0x2a0707[_0x2d601e(0x22c)]===_0x2d601e(0x1db)&&_0x469db3['id']&&(_0x469db3['id']=_0x469db3['id']+_0x5daf38[_0x2d601e(0x202)]),Object[_0x2d601e(0x1a5)](_0x469db3)[_0x2d601e(0x1d9)](([_0x3c2e4d,_0x46d72c])=>{const _0x4b2231=_0x2d601e;_0x3c2e4d===_0x4b2231(0x1db)&&typeof _0x46d72c==_0x4b2231(0x2de)&&(_0x469db3[_0x3c2e4d]=_0x46d72c[_0x4b2231(0x17c)](/url\(#(.*)\)/,'url(#$1'+_0x5daf38[_0x4b2231(0x202)]+')'));});const {defIds:_0x1e3d91}=_0x5daf38;return!_0x1e3d91||_0x1e3d91[_0x2d601e(0x2ac)]===0x0||(_0x2a0707[_0x2d601e(0x22c)]==='use'&&_0x469db3[_0x2d601e(0x2ec)]&&(_0x469db3[_0x2d601e(0x2ec)]=_0x469db3[_0x2d601e(0x2ec)]+_0x5daf38[_0x2d601e(0x202)]),Object[_0x2d601e(0x1a5)](_0x469db3)['forEach'](([_0x17ba8b,_0x366806])=>{const _0x28be3f=_0x2d601e;typeof _0x366806==_0x28be3f(0x2de)&&(_0x469db3[_0x17ba8b]=_0x366806[_0x28be3f(0x17c)](/url\(#(.*)\)/,_0x28be3f(0x19d)+_0x5daf38[_0x28be3f(0x202)]+')'));})),_0x469db3;}function _0x24a20d(_0x1568ae,_0x2bf9d0){const _0x5d0b49=_0x20d0b0;var _0x4dc256;const {defIds:_0x322fef}=_0x2bf9d0;return!_0x322fef||_0x322fef[_0x5d0b49(0x2ac)]===0x0?_0x1568ae:_0x1568ae[_0x5d0b49(0x22c)]==='defs'&&((_0x4dc256=_0x1568ae[_0x5d0b49(0x29c)])!=null&&_0x4dc256['length'])?{..._0x1568ae,'children':_0x1568ae['children']['map'](_0x252bf6=>typeof _0x252bf6['attrs']['id']==_0x5d0b49(0x2de)&&_0x322fef&&_0x322fef['includes'](_0x252bf6[_0x5d0b49(0x236)]['id'])?{..._0x252bf6,'attrs':{..._0x252bf6['attrs'],'id':_0x252bf6[_0x5d0b49(0x236)]['id']+_0x2bf9d0[_0x5d0b49(0x202)]}}:_0x252bf6)}:_0x1568ae;}function _0x1b62f8(){const _0x268989=_0x20d0b0;return Math['random']()[_0x268989(0x291)](0x24)[_0x268989(0x197)](0x2,0x8);}_0x6715eb[_0x20d0b0(0x1c1)]=_0x20d0b0(0x296);const _0x4e757b={'tag':_0x20d0b0(0x27f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x20d0b0(0x2ca),'viewBox':_0x20d0b0(0x1ec),'width':'1em','height':_0x20d0b0(0x260)},'children':[{'tag':'path','attrs':{'fill':_0x20d0b0(0x2f4),'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':_0x20d0b0(0x262),'clipRule':'evenodd'}}]},_0x1980fb=_0x71e585[_0x20d0b0(0x208)](function(_0x30c20,_0x8d6f00){const _0x5f2103=_0x20d0b0;return _0x71e585['createElement'](_0x6715eb,Object[_0x5f2103(0x2b5)]({},_0x30c20,{'id':'check-mark-icon','ref':_0x8d6f00,'icon':_0x4e757b}));});_0x1980fb[_0x20d0b0(0x1c1)]=_0x20d0b0(0x218);const _0x27e48b={'tag':_0x20d0b0(0x27f),'attrs':{'xmlns':_0x20d0b0(0x303),'fill':_0x20d0b0(0x2ca),'viewBox':'0\x200\x2016\x2016','width':_0x20d0b0(0x260),'height':_0x20d0b0(0x260)},'children':[{'tag':_0x20d0b0(0x213),'attrs':{'fill':_0x20d0b0(0x2f4),'d':_0x20d0b0(0x27e)}}]},_0x22cecc=_0x71e585[_0x20d0b0(0x208)](function(_0x1ab061,_0x5a71da){const _0x56714e=_0x20d0b0;return _0x71e585['createElement'](_0x6715eb,Object[_0x56714e(0x2b5)]({},_0x1ab061,{'id':_0x56714e(0x2ed),'ref':_0x5a71da,'icon':_0x27e48b}));});_0x22cecc['displayName']=_0x20d0b0(0x305);const _0x1755ed={'tag':_0x20d0b0(0x27f),'attrs':{'xmlns':_0x20d0b0(0x303),'fill':_0x20d0b0(0x2ca),'viewBox':'0\x200\x2016\x2016','width':_0x20d0b0(0x260),'height':_0x20d0b0(0x260)},'children':[{'tag':_0x20d0b0(0x213),'attrs':{'fill':_0x20d0b0(0x2f4),'d':_0x20d0b0(0x203)}},{'tag':_0x20d0b0(0x213),'attrs':{'fill':_0x20d0b0(0x2f4),'d':_0x20d0b0(0x261)}},{'tag':_0x20d0b0(0x213),'attrs':{'fill':'currentColor','d':_0x20d0b0(0x264),'fillRule':'evenodd','clipRule':_0x20d0b0(0x262)}}]},_0x177e8f=_0x71e585[_0x20d0b0(0x208)](function(_0x3b5311,_0x143d34){const _0xd2751c=_0x20d0b0;return _0x71e585['createElement'](_0x6715eb,Object[_0xd2751c(0x2b5)]({},_0x3b5311,{'id':_0xd2751c(0x232),'ref':_0x143d34,'icon':_0x1755ed}));});_0x177e8f[_0x20d0b0(0x1c1)]='HelpIcon';const _0x364879={'tag':_0x20d0b0(0x27f),'attrs':{'xmlns':_0x20d0b0(0x303),'fill':_0x20d0b0(0x2ca),'viewBox':_0x20d0b0(0x1ec),'width':_0x20d0b0(0x260),'height':_0x20d0b0(0x260)},'children':[{'tag':'g','attrs':{'clipPath':_0x20d0b0(0x286)},'children':[{'tag':_0x20d0b0(0x213),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x20d0b0(0x184),'strokeLinejoin':_0x20d0b0(0x184),'strokeWidth':1.2}}]},{'tag':_0x20d0b0(0x271),'attrs':{},'children':[{'tag':_0x20d0b0(0x23d),'attrs':{'id':_0x20d0b0(0x204)},'children':[{'tag':'path','attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x20d0b0(0x204)]},_0x67038a=_0x71e585['forwardRef'](function(_0x36700b,_0xef6df5){const _0x4a4779=_0x20d0b0;return _0x71e585[_0x4a4779(0x28f)](_0x6715eb,Object[_0x4a4779(0x2b5)]({},_0x36700b,{'id':_0x4a4779(0x21a),'ref':_0xef6df5,'icon':_0x364879}));});_0x67038a[_0x20d0b0(0x1c1)]=_0x20d0b0(0x22d);const _0x7ddc3d={'tag':_0x20d0b0(0x27f),'attrs':{'xmlns':_0x20d0b0(0x303),'fill':_0x20d0b0(0x2ca),'viewBox':_0x20d0b0(0x2f5),'width':'1em','height':_0x20d0b0(0x260)},'children':[{'tag':'g','attrs':{'clipPath':_0x20d0b0(0x17b)},'children':[{'tag':_0x20d0b0(0x213),'attrs':{'stroke':_0x20d0b0(0x2f4),'d':_0x20d0b0(0x1fa),'strokeLinecap':_0x20d0b0(0x184),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x20d0b0(0x271),'attrs':{},'children':[{'tag':_0x20d0b0(0x23d),'attrs':{'id':_0x20d0b0(0x2e2)},'children':[{'tag':_0x20d0b0(0x213),'attrs':{'fill':_0x20d0b0(0x179),'d':_0x20d0b0(0x309),'transform':'translate(.97)'}}]}]}],'defIds':[_0x20d0b0(0x2e2)]},_0x26ee5b=_0x71e585['forwardRef'](function(_0x5c0b0c,_0x19109a){const _0x234257=_0x20d0b0;return _0x71e585[_0x234257(0x28f)](_0x6715eb,Object[_0x234257(0x2b5)]({},_0x5c0b0c,{'id':_0x234257(0x266),'ref':_0x19109a,'icon':_0x7ddc3d}));});_0x26ee5b['displayName']=_0x20d0b0(0x198);function _0x5f1947(_0x3f6f12){const _0x1a4457=_0x20d0b0;var _0x4f295c,_0x3438b6;const {mcpCoreConfig:_0xb57847,onSave:_0x5ace2e,loading:_0x551b4e=!0x1,config:_0x255532,connectionStatus$:_0x1c90e8,connectionError$:_0x391da9,currentApiKey$:_0x2f422b,currentSessionId$:_0x12ba77}=_0x3f6f12,_0x1d0d7d=_0x51b934['useDependency'](_0x4cf0fc[_0x1a4457(0x244)]),_0x2d22e5=_0x51b934[_0x1a4457(0x19b)](_0x1c90e8,_0x40f2ad[_0x1a4457(0x270)][_0x1a4457(0x2da)]),_0xdc8f2c=_0x51b934['useObservable'](_0x391da9,_0x40f2ad[_0x1a4457(0x29a)][_0x1a4457(0x229)]),_0x5b28a7=_0x51b934[_0x1a4457(0x19b)](_0x12ba77,''),_0x1c080b=_0x51b934['useObservable'](_0x2f422b,''),[_0xcd57cc,_0x58aa73]=_0x71e585[_0x1a4457(0x2c1)](_0x1c080b||''),_0x4694ce=!0x0,_0x51a6f7=_0x255532[_0x1a4457(0x1d6)]&&_0xb57847[_0x1a4457(0x2f8)]&&(_0xb57847[_0x1a4457(0x2f8)][_0x1a4457(0x174)](_0x1a4457(0x241))||_0xb57847['mcpServerUrl'][_0x1a4457(0x174)](_0x1a4457(0x295))),_0x29db40=(_0x4f295c=_0xb57847[_0x1a4457(0x2f8)])==null?void 0x0:_0x4f295c[_0x1a4457(0x174)](_0x1a4457(0x241)),_0x59f39d=(_0x3438b6=_0xb57847[_0x1a4457(0x2f8)])==null?void 0x0:_0x3438b6['includes'](_0x1a4457(0x295)),_0x335899=_0x29db40?_0x1a4457(0x2fa):'https://console.univer.ai',_0x573a1f=_0x255532[_0x1a4457(0x1d6)]&&(_0x29db40||_0x59f39d),[_0x97446a,_0x1b4211]=_0x71e585['useState'](!_0xcd57cc['trim']()),_0x4575cc=(_0x4234ad,_0xd9a079)=>{const _0x4646e7=_0x1a4457;if(_0xd9a079===_0x40f2ad[_0x4646e7(0x29a)][_0x4646e7(0x2ee)])return _0x4646e7(0x200);switch(_0x4234ad){case _0x40f2ad['MCPConnectionStatus'][_0x4646e7(0x2d1)]:return _0x4646e7(0x1da);case _0x40f2ad['MCPConnectionStatus'][_0x4646e7(0x18a)]:case _0x40f2ad['MCPConnectionStatus']['RETRYING']:return _0x4646e7(0x27d);case _0x40f2ad['MCPConnectionStatus'][_0x4646e7(0x2d7)]:return _0x4646e7(0x200);default:return _0x4646e7(0x1fe);}},_0x5627f2=(_0x45cfd4,_0x3eaeb4)=>{const _0x1580d1=_0x1a4457;if(_0x3eaeb4===_0x40f2ad['MCPConnectionError'][_0x1580d1(0x2ee)])return _0x1580d1(0x1bd);switch(_0x45cfd4){case _0x40f2ad['MCPConnectionStatus'][_0x1580d1(0x2d1)]:return'univer-bg-green-500';case _0x40f2ad[_0x1580d1(0x270)][_0x1580d1(0x18a)]:case _0x40f2ad[_0x1580d1(0x270)]['RETRYING']:return'univer-bg-blue-500';case _0x40f2ad[_0x1580d1(0x270)][_0x1580d1(0x2d7)]:return _0x1580d1(0x1bd);default:return _0x1580d1(0x259);}},_0x5a706d=_0x52e6fb=>{const _0x3d7097=_0x1a4457;switch(_0x52e6fb){case _0x40f2ad[_0x3d7097(0x270)]['CONNECTED']:return _0x1d0d7d['t'](_0x3d7097(0x18f));case _0x40f2ad[_0x3d7097(0x270)][_0x3d7097(0x18a)]:return _0x1d0d7d['t']('mcpConfig.connectionStatus.connecting');case _0x40f2ad['MCPConnectionStatus'][_0x3d7097(0x2d7)]:return _0x1d0d7d['t'](_0x3d7097(0x1b3));case _0x40f2ad[_0x3d7097(0x270)]['RETRYING']:return _0x1d0d7d['t']('mcpConfig.connectionStatus.retrying');default:return _0x1d0d7d['t'](_0x3d7097(0x1ad));}},_0xfc4b84=_0x31bdd7=>{const _0x160e74=_0x1a4457;switch(_0x31bdd7){case _0x40f2ad[_0x160e74(0x29a)]['UNAUTHORIZED']:return _0x1d0d7d['t'](_0x160e74(0x20c));case _0x40f2ad['MCPConnectionError'][_0x160e74(0x1cd)]:return _0x1d0d7d['t']('mcpConfig.connectionError.sessionOccupied');case _0x40f2ad[_0x160e74(0x29a)]['NETWORK_ERROR']:return _0x1d0d7d['t'](_0x160e74(0x1a6));case _0x40f2ad['MCPConnectionError'][_0x160e74(0x2b1)]:return _0x1d0d7d['t'](_0x160e74(0x18b));default:return'';}},_0x3a8a8c=_0x71e585[_0x1a4457(0x246)](()=>{const _0x41fc8f=_0x1a4457,_0x6b8929={..._0xb57847,'apiKey':_0xcd57cc[_0x41fc8f(0x1ae)](),'enableAuth':_0x4694ce};_0x5ace2e(_0x6b8929);},[_0xb57847,_0xcd57cc,_0x4694ce,_0x5ace2e]),_0xb8d506=_0xcd57cc[_0x1a4457(0x1ae)]()[_0x1a4457(0x2ac)]>0x0;return _0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x2af),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x247),'children':_0x3d33c4['jsxs'](_0x1a4457(0x2d9),{'className':_0x1a4457(0x20f),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1c0),'children':_0x3d33c4[_0x1a4457(0x1bf)]('span',{'className':'univer-text-white','children':'⚙'})}),_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'children':_0x3d33c4[_0x1a4457(0x1bf)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x1d0d7d['t'](_0x1a4457(0x267))})})]})}),_0x3d33c4[_0x1a4457(0x1de)]('div',{'className':_0x1a4457(0x1b4),'children':[_0x3d33c4[_0x1a4457(0x1bf)]('div',{'className':_0xbcf279[_0x1a4457(0x282)](_0x1a4457(0x221),_0x4575cc(_0x2d22e5,_0xdc8f2c)),'children':_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1ba),'children':[_0x3d33c4['jsx'](_0x1a4457(0x2d9),{'className':_0xbcf279[_0x1a4457(0x282)]('univer-size-2\x20univer-rounded-full',_0x5627f2(_0x2d22e5,_0xdc8f2c))}),_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'className':'univer-text-sm\x20univer-font-medium','children':_0x5a706d(_0x2d22e5)})]})}),_0xdc8f2c!==_0x40f2ad[_0x1a4457(0x29a)]['NONE']&&(_0x2d22e5===_0x40f2ad[_0x1a4457(0x270)][_0x1a4457(0x2d7)]||_0xdc8f2c===_0x40f2ad[_0x1a4457(0x29a)][_0x1a4457(0x2ee)])&&_0x3d33c4['jsx'](_0x1a4457(0x2d9),{'className':_0x1a4457(0x2f3),'children':_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x2d6),'children':[_0x3d33c4[_0x1a4457(0x1bf)]('span',{'className':_0x1a4457(0x2ef),'children':'⚠️'}),_0x3d33c4[_0x1a4457(0x1bf)]('p',{'className':_0x1a4457(0x2bc),'children':_0xfc4b84(_0xdc8f2c)})]})})]}),_0x3d33c4[_0x1a4457(0x1bf)]('div',{'className':_0x1a4457(0x24e),'children':_0x3d33c4['jsxs'](_0x1a4457(0x2d9),{'className':_0x1a4457(0x290),'children':[_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1b5),'children':[_0x3d33c4['jsxs'](_0x1a4457(0x2f9),{'className':_0x1a4457(0x178),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'children':'🔑'}),'\x20',_0x1d0d7d['t'](_0x1a4457(0x2e4)),_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'className':_0x1a4457(0x2c4),'children':'*'}),_0x51a6f7&&_0x3d33c4['jsx']('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x1d0d7d['t'](_0x1a4457(0x1b1)),'role':'button','onClick':()=>_0x1b4211(!0x0),'children':_0x3d33c4[_0x1a4457(0x1bf)](_0x177e8f,{})})]}),_0x3d33c4[_0x1a4457(0x1bf)](_0xbcf279[_0x1a4457(0x1c3)],{'type':_0x1a4457(0x2e6),'placeholder':_0x1d0d7d['t'](_0x1a4457(0x22f)),'value':_0xcd57cc,'disabled':_0x551b4e,'autoComplete':_0x1a4457(0x2d5),'onChange':_0x58aa73}),_0x3d33c4[_0x1a4457(0x1bf)]('p',{'className':_0x1a4457(0x21d),'children':_0x1d0d7d['t']('mcpConfig.apiKeyHint')})]}),_0x51a6f7&&_0x97446a&&_0x3d33c4['jsxs']('div',{'className':_0x1a4457(0x2f2),'children':[_0x3d33c4[_0x1a4457(0x1bf)]('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':_0x1a4457(0x1c5),'onClick':()=>_0x1b4211(!0x1),'children':_0x3d33c4[_0x1a4457(0x1bf)](_0x22cecc,{'className':'univer-size-4'})}),_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x19c),'children':[_0x3d33c4[_0x1a4457(0x1bf)]('div',{'className':_0x1a4457(0x21e),'children':_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'className':'univer-text-blue-600','children':'🚀'})}),_0x3d33c4[_0x1a4457(0x1de)]('div',{'className':'univer-flex-1','children':[_0x3d33c4[_0x1a4457(0x1bf)]('h4',{'className':_0x1a4457(0x16a),'children':_0x1d0d7d['t'](_0x1a4457(0x1b1))}),_0x3d33c4[_0x1a4457(0x1bf)]('p',{'className':_0x1a4457(0x2e9),'children':_0x1d0d7d['t'](_0x1a4457(0x2be))}),_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x175),'children':_0x573a1f&&_0x3d33c4[_0x1a4457(0x1de)]('a',{'className':_0x1a4457(0x253),'href':_0x335899,'target':_0x1a4457(0x17f),'rel':'noopener\x20noreferrer','children':[_0x3d33c4[_0x1a4457(0x1bf)]('span',{'children':'🤖'}),_0x1d0d7d['t'](_0x1a4457(0x28b)),_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x3d33c4[_0x1a4457(0x1de)]('div',{'className':_0x1a4457(0x228),'children':['✨','\x20',_0x1d0d7d['t'](_0x1a4457(0x2eb))]})]})]})]}),_0x255532[_0x1a4457(0x1d6)]&&_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x22a),'children':[_0x3d33c4[_0x1a4457(0x1de)]('h4',{'className':_0x1a4457(0x27a),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'children':'🔗'}),'\x20',_0x1d0d7d['t'](_0x1a4457(0x1e3))]}),_0x3d33c4[_0x1a4457(0x1de)]('div',{'className':_0x1a4457(0x299),'children':[_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x234),'children':[_0x3d33c4[_0x1a4457(0x1bf)]('p',{'className':_0x1a4457(0x19e),'children':_0x1d0d7d['t'](_0x1a4457(0x25c))}),_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1b5),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1d0d7d['t'](_0x1a4457(0x1d8))}),_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1fd),'children':[_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x3d33c4['jsx'](_0x1a4457(0x2fc),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x1d0d7d['t'](_0x1a4457(0x1aa))]}),_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1ba),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'className':_0x1a4457(0x230),'children':'2'}),_0x1d0d7d['t'](_0x1a4457(0x1d2))]}),_0x3d33c4['jsxs'](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1ba),'children':[_0x3d33c4['jsx'](_0x1a4457(0x2fc),{'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'}),_0x1d0d7d['t'](_0x1a4457(0x304))]})]})]})]}),_0x3d33c4['jsxs'](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1b5),'children':[_0x3d33c4['jsx']('div',{'className':_0x1a4457(0x288),'children':_0x1a4457(0x292)}),_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x172),'children':_0x3d33c4['jsx'](_0x1a4457(0x2bb),{'className':_0x1a4457(0x2b9),'children':JSON[_0x1a4457(0x1e7)]({'mcpServers':{'univer':{'url':_0x1a4457(0x1f0)+(_0x5b28a7||_0x1a4457(0x1d5)),'type':_0x1a4457(0x211),'headers':{'Authorization':'Bearer\x20'+(_0xcd57cc||'<API_KEY>')}}}},null,0x2)})})]}),_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':'univer-space-y-3','children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1d0d7d['t'](_0x1a4457(0x1b6))}),_0x3d33c4['jsxs'](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1b5),'children':[_0x3d33c4[_0x1a4457(0x1de)]('div',{'className':_0x1a4457(0x2a6),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x2a8)}),_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1cf),'children':[_0x3d33c4['jsx'](_0x1a4457(0x2d9),{'className':_0x1a4457(0x278),'children':_0x1a4457(0x28e)}),_0x3d33c4[_0x1a4457(0x1bf)]('div',{'className':_0x1a4457(0x21d),'children':_0x1d0d7d['t'](_0x1a4457(0x29f))})]})]}),_0x3d33c4['jsxs'](_0x1a4457(0x2d9),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x2a8)}),_0x3d33c4[_0x1a4457(0x1de)]('div',{'className':_0x1a4457(0x1cf),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x278),'children':'Authorization:'}),_0x3d33c4[_0x1a4457(0x1bf)]('div',{'className':_0x1a4457(0x21d),'children':_0x1d0d7d['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x3d33c4[_0x1a4457(0x1bf)](_0xbcf279['Button'],{'onClick':_0x3a8a8c,'disabled':!_0xb8d506||_0x551b4e,'className':_0x1a4457(0x16b),'children':_0x551b4e?_0x3d33c4[_0x1a4457(0x1de)]('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'children':'⟲'}),_0x1d0d7d['t'](_0x1a4457(0x1d7))]}):_0x3d33c4['jsxs']('span',{'className':_0x1a4457(0x1ba),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1980fb,{}),_0x1d0d7d['t'](_0x1a4457(0x2e3))]})}),_0x3d33c4[_0x1a4457(0x1bf)]('div',{'className':_0x1a4457(0x167),'children':_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x18e),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'className':_0x1a4457(0x24b),'children':'💡'}),_0x3d33c4[_0x1a4457(0x1de)]('div',{'className':_0x1a4457(0x1ab),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x16e),'children':_0x1a4457(0x188)}),_0x3d33c4[_0x1a4457(0x1de)]('div',{'children':['•',_0x1d0d7d['t']('mcpConfig.note1')]}),_0x3d33c4['jsxs'](_0x1a4457(0x2d9),{'children':['•',_0x1d0d7d['t'](_0x1a4457(0x256))]})]})]})})]})})]});}const _0x4f5f62=_0x20d0b0(0x1c2),_0x480718={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x34977e=Object[_0x20d0b0(0x20d)],_0x426dec=(_0x5eae64,_0x37465c,_0x5816b1,_0x342f86)=>{for(var _0x3791b0=_0x342f86>0x1?void 0x0:_0x342f86?_0x34977e(_0x37465c,_0x5816b1):_0x37465c,_0x3cab36=_0x5eae64['length']-0x1,_0x4f8f01;_0x3cab36>=0x0;_0x3cab36--)(_0x4f8f01=_0x5eae64[_0x3cab36])&&(_0x3791b0=_0x4f8f01(_0x3791b0)||_0x3791b0);return _0x3791b0;},_0x51a2d0=(_0x374540,_0xafcd67)=>(_0x2bf767,_0x411f2a)=>_0xafcd67(_0x2bf767,_0x411f2a,_0x374540);const _0x5b7a78='mcp.apiKey',_0x595356=_0x20d0b0(0x2f0);_0xa3f2d7['MCPConfigUIController']=class extends _0x4cf0fc[_0x20d0b0(0x23b)]{constructor(_0x3dc65c,_0x37bebf,_0x53967e,_0x5acf5a,_0x5bd240,_0x1bb518,_0x119f93,_0x5a1710,_0x40297a,_0x465038){const _0x1e5578=_0x20d0b0;super(),_0x32029d(this,_0x1e5578(0x2b8),new _0x5f9683[(_0x1e5578(0x181))](!0x1)),_0x32029d(this,_0x1e5578(0x19a),new _0x5f9683[(_0x1e5578(0x181))]({})),_0x32029d(this,_0x1e5578(0x1c8),new _0x5f9683[(_0x1e5578(0x181))]({})),_0x32029d(this,_0x1e5578(0x1d4),new _0x5f9683[(_0x1e5578(0x181))]('')),_0x32029d(this,_0x1e5578(0x1e2),async _0x338b6b=>{const _0x5c6f06=_0x1e5578;var _0x20c7f3,_0x3831dc;this[_0x5c6f06(0x2b8)][_0x5c6f06(0x2a3)](!0x0);try{const _0x288ad0=await this[_0x5c6f06(0x1e1)](_0x338b6b);if(!_0x288ad0[_0x5c6f06(0x2c8)]){this[_0x5c6f06(0x23e)][_0x5c6f06(0x171)]({'type':_0xbcf279[_0x5c6f06(0x1be)]['Error'],'content':_0x288ad0[_0x5c6f06(0x276)]||this[_0x5c6f06(0x1ef)]['t'](_0x5c6f06(0x1e4))});return;}_0x338b6b[_0x5c6f06(0x170)]?await this[_0x5c6f06(0x206)][_0x5c6f06(0x2fb)](_0x5b7a78,_0x338b6b[_0x5c6f06(0x170)][_0x5c6f06(0x1ae)]()):await this[_0x5c6f06(0x206)][_0x5c6f06(0x1ed)](_0x5b7a78),this[_0x5c6f06(0x1d4)]['next'](((_0x20c7f3=_0x338b6b[_0x5c6f06(0x170)])==null?void 0x0:_0x20c7f3[_0x5c6f06(0x1ae)]())||''),this['_mcpConnectionController'][_0x5c6f06(0x243)]({'Authorization':_0x5c6f06(0x2df)+((_0x3831dc=_0x338b6b[_0x5c6f06(0x170)])==null?void 0x0:_0x3831dc[_0x5c6f06(0x1ae)]())}),this['_messageService']['show']({'type':_0xbcf279['MessageType'][_0x5c6f06(0x1e5)],'content':this['_localeService']['t'](_0x5c6f06(0x238))}),setTimeout(()=>{const _0x5bfdb2=_0x5c6f06;this[_0x5bfdb2(0x2a7)][_0x5bfdb2(0x2cc)](_0x595356);},0x320);}catch(_0x286334){this[_0x5c6f06(0x2e1)][_0x5c6f06(0x1d1)](_0x5c6f06(0x222),_0x286334),this[_0x5c6f06(0x23e)][_0x5c6f06(0x171)]({'type':_0xbcf279[_0x5c6f06(0x1be)][_0x5c6f06(0x223)],'content':this['_localeService']['t'](_0x5c6f06(0x293))});}finally{this[_0x5c6f06(0x2b8)]['next'](!0x1);}}),(this[_0x1e5578(0x294)]=_0x3dc65c,this[_0x1e5578(0x18c)]=_0x37bebf,this[_0x1e5578(0x1a4)]=_0x53967e,this[_0x1e5578(0x206)]=_0x5acf5a,this[_0x1e5578(0x2a7)]=_0x5bd240,this[_0x1e5578(0x23e)]=_0x1bb518,this[_0x1e5578(0x252)]=_0x119f93,this['_localeService']=_0x5a1710,this['_logService']=_0x40297a,this[_0x1e5578(0x216)]=_0x465038,this['_initConfigSync'](),this['_loadStoredApiKey'](),this[_0x1e5578(0x1b8)]());}['showConfigPanel'](){const _0x3d6991=_0x20d0b0,_0x17180e=this[_0x3d6991(0x1a4)][_0x3d6991(0x301)](_0x4f5f62);_0x17180e!=null&&_0x17180e[_0x3d6991(0x1d6)]&&this[_0x3d6991(0x2a7)][_0x3d6991(0x226)]({'id':_0x595356,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x3d6991(0x1a7)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x2dcbbc=_0x3d6991;this['_dialogService'][_0x2dcbbc(0x2cc)](_0x595356);}});}[_0x20d0b0(0x24f)](){const _0x17b9e9=_0x20d0b0;return this[_0x17b9e9(0x19a)]['value'];}[_0x20d0b0(0x1b8)](){const _0x1fb226=_0x20d0b0;this[_0x1fb226(0x1e8)](this[_0x1fb226(0x252)][_0x1fb226(0x1bb)](_0x1fb226(0x1a7),this[_0x1fb226(0x209)]()));}[_0x20d0b0(0x209)](){const _0x4cf972=_0x20d0b0;return _0x51b934[_0x4cf972(0x2d2)](()=>{const _0x43db9f=_0x4cf972;var _0x1aaca0,_0x4646e9,_0x7a43ec;return _0x3d33c4['jsx'](_0x5f1947,{'config':this[_0x43db9f(0x1c8)][_0x43db9f(0x2a9)],'mcpCoreConfig':this[_0x43db9f(0x19a)][_0x43db9f(0x2a9)],'currentApiKey$':this[_0x43db9f(0x1d4)],'onSave':this['_handleConfigSave'],'loading':this['_loading$'][_0x43db9f(0x2a9)],'connectionStatus$':(_0x1aaca0=this[_0x43db9f(0x216)])==null?void 0x0:_0x1aaca0[_0x43db9f(0x2d3)],'connectionError$':(_0x4646e9=this[_0x43db9f(0x216)])==null?void 0x0:_0x4646e9[_0x43db9f(0x2c3)],'currentSessionId$':(_0x7a43ec=this[_0x43db9f(0x216)])==null?void 0x0:_0x7a43ec[_0x43db9f(0x1c6)]});},this[_0x4cf972(0x294)]);}[_0x20d0b0(0x1c7)](){const _0x33b09e=_0x20d0b0;this[_0x33b09e(0x1e8)](this['_configService'][_0x33b09e(0x285)](_0x40f2ad[_0x33b09e(0x1f3)])[_0x33b09e(0x1b7)](_0x52ea79=>{const _0x5041c0=_0x33b09e;this[_0x5041c0(0x19a)][_0x5041c0(0x2a3)](_0x52ea79||{});}));const _0x28d47b=this[_0x33b09e(0x1a4)][_0x33b09e(0x301)](_0x40f2ad['MCP_PLUGIN_CONFIG_KEY']);this[_0x33b09e(0x19a)][_0x33b09e(0x2a3)](_0x28d47b||{}),this[_0x33b09e(0x1e8)](this[_0x33b09e(0x1a4)]['subscribeConfigValue$'](_0x4f5f62)[_0x33b09e(0x1b7)](_0x30e168=>{const _0x3124ab=_0x33b09e;this[_0x3124ab(0x1c8)][_0x3124ab(0x2a3)](_0x30e168||{});}));const _0x3f4131=this['_configService']['getConfig'](_0x4f5f62);this[_0x33b09e(0x1c8)]['next'](_0x3f4131||{});}async[_0x20d0b0(0x2ea)](){const _0x19c27d=_0x20d0b0,_0x45a744=this[_0x19c27d(0x1a4)][_0x19c27d(0x301)](_0x4f5f62);if(!(_0x45a744!=null&&_0x45a744[_0x19c27d(0x1d6)]))return;const _0xc0b99b=await this[_0x19c27d(0x206)]['getItem'](_0x5b7a78);_0xc0b99b&&(this[_0x19c27d(0x216)][_0x19c27d(0x243)]({'Authorization':'Bearer\x20'+_0xc0b99b}),this[_0x19c27d(0x1d4)]['next'](_0xc0b99b));}async['_validateConfig'](_0x57aba9){const _0x10eee9=_0x20d0b0;if(!_0x57aba9[_0x10eee9(0x170)]||_0x57aba9[_0x10eee9(0x170)][_0x10eee9(0x1ae)]()[_0x10eee9(0x2ac)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x10eee9(0x1ef)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x57aba9['apiKey']['trim']()[_0x10eee9(0x2ac)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x10eee9(0x1ef)]['t'](_0x10eee9(0x2ff))};try{const _0x4e3cfb=await this[_0x10eee9(0x294)]['get'](_0x40f2ad[_0x10eee9(0x1d0)])[_0x10eee9(0x192)](_0x57aba9[_0x10eee9(0x170)][_0x10eee9(0x1ae)]());return _0x4e3cfb[_0x10eee9(0x2c8)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4e3cfb[_0x10eee9(0x1d1)]||this[_0x10eee9(0x1ef)]['t'](_0x10eee9(0x176))};}catch(_0xa6efa6){return console['warn'](_0x10eee9(0x210),_0xa6efa6),{'isValid':!0x0};}}},_0xa3f2d7[_0x20d0b0(0x224)]=_0x426dec([_0x51a2d0(0x0,_0x4cf0fc['Inject'](_0x4cf0fc[_0x20d0b0(0x233)])),_0x51a2d0(0x1,_0x51b934[_0x20d0b0(0x219)]),_0x51a2d0(0x2,_0x4cf0fc[_0x20d0b0(0x225)]),_0x51a2d0(0x3,_0x4cf0fc[_0x20d0b0(0x1e0)]),_0x51a2d0(0x4,_0x51b934[_0x20d0b0(0x199)]),_0x51a2d0(0x5,_0x51b934[_0x20d0b0(0x263)]),_0x51a2d0(0x6,_0x4cf0fc[_0x20d0b0(0x23a)](_0x51b934[_0x20d0b0(0x265)])),_0x51a2d0(0x7,_0x4cf0fc['Inject'](_0x4cf0fc['LocaleService'])),_0x51a2d0(0x8,_0x4cf0fc[_0x20d0b0(0x26e)]),_0x51a2d0(0x9,_0x4cf0fc[_0x20d0b0(0x23a)](_0x40f2ad[_0x20d0b0(0x1d0)]))],_0xa3f2d7[_0x20d0b0(0x224)]);const _0x1ca521={'id':_0x20d0b0(0x2ae),'type':_0x4cf0fc[_0x20d0b0(0x22e)][_0x20d0b0(0x1cc)],'handler':async(_0x5b881a,_0x3af657)=>(_0x5b881a['get'](_0xa3f2d7[_0x20d0b0(0x224)])[_0x20d0b0(0x2aa)](),!0x0)};function _0x5e3b24(_0x2ead45,_0x39c814){const _0x3c71d7=_0x20d0b0;switch(_0x2ead45){case _0x40f2ad[_0x3c71d7(0x270)][_0x3c71d7(0x2da)]:return _0x3c71d7(0x1fc);case _0x40f2ad[_0x3c71d7(0x270)]['CONNECTING']:return _0x3c71d7(0x26c);case _0x40f2ad[_0x3c71d7(0x270)]['CONNECTED']:return _0x3c71d7(0x2e0);case _0x40f2ad[_0x3c71d7(0x270)][_0x3c71d7(0x2d7)]:switch(_0x39c814){case _0x40f2ad[_0x3c71d7(0x29a)][_0x3c71d7(0x2ee)]:return _0x3c71d7(0x214);case _0x40f2ad[_0x3c71d7(0x29a)][_0x3c71d7(0x1cd)]:return _0x3c71d7(0x2fd);case _0x40f2ad['MCPConnectionError'][_0x3c71d7(0x17e)]:return'mcpStatus.networkError';case _0x40f2ad['MCPConnectionError'][_0x3c71d7(0x2b1)]:return _0x3c71d7(0x1ea);default:return _0x3c71d7(0x16d);}case _0x40f2ad[_0x3c71d7(0x270)][_0x3c71d7(0x185)]:return _0x3c71d7(0x1f5);default:return _0x3c71d7(0x281);}}function _0x234732(_0x454bfd,_0x212223,_0x501753,_0x47755d=!0x0){const _0x269918=_0x20d0b0,_0x11c0fc=_0x5e3b24(_0x454bfd,_0x212223),_0x50cf64=_0x501753['t'](_0x11c0fc);return _0x47755d?_0x454bfd===_0x40f2ad[_0x269918(0x270)][_0x269918(0x2da)]&&_0x212223===_0x40f2ad[_0x269918(0x29a)][_0x269918(0x2ee)]?_0x50cf64+_0x269918(0x2cd)+_0x501753['t']('mcpStatus.clickToConfigure'):_0x454bfd===_0x40f2ad[_0x269918(0x270)][_0x269918(0x2d1)]?''+_0x50cf64:_0x454bfd===_0x40f2ad['MCPConnectionStatus'][_0x269918(0x2da)]||_0x454bfd===_0x40f2ad[_0x269918(0x270)][_0x269918(0x2d7)]?_0x50cf64+_0x269918(0x2cd)+_0x501753['t'](_0x269918(0x2c6)):_0x50cf64:_0x50cf64;}function _0x2fbe87(_0x327a9e){const _0x8e8159=_0x20d0b0;switch(_0x327a9e){case _0x40f2ad[_0x8e8159(0x270)][_0x8e8159(0x2d1)]:return _0x8e8159(0x26b);case _0x40f2ad[_0x8e8159(0x270)][_0x8e8159(0x18a)]:case _0x40f2ad[_0x8e8159(0x270)][_0x8e8159(0x185)]:return _0x8e8159(0x2ba);case _0x40f2ad['MCPConnectionStatus'][_0x8e8159(0x2d7)]:case _0x40f2ad[_0x8e8159(0x270)]['DISCONNECTED']:return _0x8e8159(0x2c4);default:return _0x8e8159(0x2cb);}}function _0x70b9f9(_0x1a5aca){const _0x11bef7=_0x20d0b0,{status$:_0x3f5626,error$:_0x57e59e,onConfigure:_0x9bc671,showClickable:_0x26cc74=!0x0}=_0x1a5aca,_0x35c52f=_0x51b934[_0x11bef7(0x19b)](_0x3f5626,_0x40f2ad[_0x11bef7(0x270)][_0x11bef7(0x2da)]),_0x300541=_0x51b934[_0x11bef7(0x19b)](_0x57e59e,_0x40f2ad[_0x11bef7(0x29a)][_0x11bef7(0x229)]),_0x4b8d88=_0x51b934[_0x11bef7(0x169)](_0x4cf0fc['LocaleService']),_0x5ae849=_0x35c52f===_0x40f2ad['MCPConnectionStatus'][_0x11bef7(0x2d1)];_0x35c52f===_0x40f2ad[_0x11bef7(0x270)]['CONNECTING']||_0x40f2ad[_0x11bef7(0x270)][_0x11bef7(0x185)];const _0x3977c0=_0x4b8d88['t'](_0x5e3b24(_0x35c52f,_0x300541)),_0x11bad5=_0x234732(_0x35c52f,_0x300541,_0x4b8d88,_0x26cc74),_0x11453e=_0x2fbe87(_0x35c52f),_0x20447f=_0x5ae849?_0x3d33c4['jsx'](_0x26ee5b,{}):_0x3d33c4[_0x11bef7(0x1bf)](_0x67038a,{}),_0x4a16e9=_0x71e585[_0x11bef7(0x246)](()=>{_0x26cc74&&_0x9bc671&&_0x9bc671();},[_0x26cc74,_0x9bc671]);function _0x3089ee(){const _0x319f9d=_0x11bef7;return _0x3d33c4[_0x319f9d(0x1de)]('div',{'className':_0xbcf279['clsx'](_0x319f9d(0x168),_0x26cc74&&_0x9bc671&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':_0x319f9d(0x1c5),'onClick':_0x26cc74&&_0x9bc671?_0x4a16e9:void 0x0,'children':[_0x3d33c4['jsx'](_0x319f9d(0x2d9),{'className':_0xbcf279['clsx'](_0x319f9d(0x2c5),_0x11453e),'children':_0x20447f}),_0x3d33c4['jsx'](_0x319f9d(0x2d9),{'className':_0x319f9d(0x308),'children':_0x3977c0})]});}return _0x3d33c4[_0x11bef7(0x1bf)](_0xbcf279['Tooltip'],{'title':_0x11bad5,'placement':_0x11bef7(0x1a8),'children':_0x3089ee()});}var _0x169c6c=Object['getOwnPropertyDescriptor'],_0x5ac66d=(_0xf868d5,_0x4abc9d,_0x25f603,_0x3c24ad)=>{const _0x50dc71=_0x20d0b0;for(var _0x29abf2=_0x3c24ad>0x1?void 0x0:_0x3c24ad?_0x169c6c(_0x4abc9d,_0x25f603):_0x4abc9d,_0x5f462c=_0xf868d5[_0x50dc71(0x2ac)]-0x1,_0x3e5611;_0x5f462c>=0x0;_0x5f462c--)(_0x3e5611=_0xf868d5[_0x5f462c])&&(_0x29abf2=_0x3e5611(_0x29abf2)||_0x29abf2);return _0x29abf2;},_0x13391e=(_0x3d98dd,_0xc6d4ad)=>(_0x461b02,_0x43489b)=>_0xc6d4ad(_0x461b02,_0x43489b,_0x3d98dd);_0xa3f2d7[_0x20d0b0(0x245)]=class extends _0x4cf0fc[_0x20d0b0(0x23b)]{constructor(_0x282983,_0x36a803,_0x22fc61,_0x18efc1){const _0x3dbbf3=_0x20d0b0;super(),this[_0x3dbbf3(0x294)]=_0x282983,this[_0x3dbbf3(0x1f6)]=_0x36a803,this[_0x3dbbf3(0x18c)]=_0x22fc61,this[_0x3dbbf3(0x1a4)]=_0x18efc1,this[_0x3dbbf3(0x1e6)](),this[_0x3dbbf3(0x2bf)]();}[_0x20d0b0(0x1e6)](){const _0x490f87=_0x20d0b0,_0x6180d1=this[_0x490f87(0x1a4)][_0x490f87(0x301)](_0x4f5f62);_0x6180d1!=null&&_0x6180d1[_0x490f87(0x1d6)]&&(this['_connectionController'][_0x490f87(0x1f4)]=!0x1);}[_0x20d0b0(0x2bf)](){const _0x128986=_0x20d0b0,_0x152936=this[_0x128986(0x1a4)][_0x128986(0x301)](_0x4f5f62);(_0x152936==null?void 0x0:_0x152936['showStatus'])!==!0x1&&this['disposeWithMe'](this['_uiPartsService'][_0x128986(0x2b2)](_0x51b934[_0x128986(0x2ce)][_0x128986(0x248)],()=>{const _0x42617b=_0x128986;var _0x1d2c0b;return _0x51b934[_0x42617b(0x2d2)](_0x464d51({'status$':this[_0x42617b(0x1f6)][_0x42617b(0x2d3)],'error$':this[_0x42617b(0x1f6)][_0x42617b(0x2c3)],'onConfigure':()=>this[_0x42617b(0x18d)](),'showClickable':(_0x1d2c0b=_0x152936==null?void 0x0:_0x152936[_0x42617b(0x1d6)])!=null?_0x1d2c0b:!0x1}),this['_injector']);}));}['_handleConfigure'](){const _0x1152f7=_0x20d0b0;this[_0x1152f7(0x294)][_0x1152f7(0x2c9)](_0xa3f2d7[_0x1152f7(0x224)])[_0x1152f7(0x2aa)]();}},_0xa3f2d7[_0x20d0b0(0x245)]=_0x5ac66d([_0x13391e(0x0,_0x4cf0fc[_0x20d0b0(0x23a)](_0x4cf0fc['Injector'])),_0x13391e(0x1,_0x4cf0fc[_0x20d0b0(0x23a)](_0x40f2ad[_0x20d0b0(0x1d0)])),_0x13391e(0x2,_0x51b934[_0x20d0b0(0x219)]),_0x13391e(0x3,_0x4cf0fc['IConfigService'])],_0xa3f2d7[_0x20d0b0(0x245)]);function _0x464d51(_0x2d95ad){const {status$:_0xa4e104,error$:_0x463271,onConfigure:_0xa5ca5c,showClickable:_0x5b4868}=_0x2d95ad;return function(){const _0x4f32be=_0x4b2b;return _0x3d33c4[_0x4f32be(0x1bf)](_0x70b9f9,{'status$':_0xa4e104,'error$':_0x463271,'onConfigure':_0xa5ca5c,'showClickable':_0x5b4868});};}function _0x29fd89(_0x3c36b2){const _0xd67d09=_0x20d0b0;return{'id':_0x1ca521['id'],'type':_0x51b934[_0xd67d09(0x17a)][_0xd67d09(0x1f2)],'icon':_0xd67d09(0x269),'title':_0xd67d09(0x307),'tooltip':_0xd67d09(0x307)};}const _0x34f12d={[_0x51b934[_0x20d0b0(0x2b7)][_0x20d0b0(0x298)]]:{[_0x1ca521['id']]:{'order':0xa,'menuItemFactory':_0x29fd89}}};var _0x485d60=Object['getOwnPropertyDescriptor'],_0x148bcb=(_0x36f043,_0x3311c6,_0xa84cd4,_0x52f2f1)=>{for(var _0xb078c8=_0x52f2f1>0x1?void 0x0:_0x52f2f1?_0x485d60(_0x3311c6,_0xa84cd4):_0x3311c6,_0x37db93=_0x36f043['length']-0x1,_0xbfdead;_0x37db93>=0x0;_0x37db93--)(_0xbfdead=_0x36f043[_0x37db93])&&(_0xb078c8=_0xbfdead(_0xb078c8)||_0xb078c8);return _0xb078c8;},_0x36b542=(_0x25c379,_0x3e7918)=>(_0x36cbc3,_0x58c484)=>_0x3e7918(_0x36cbc3,_0x58c484,_0x25c379);_0xa3f2d7[_0x20d0b0(0x16f)]=class extends _0x4cf0fc['Disposable']{constructor(_0x41501e,_0x3ad84e){const _0x58d5fa=_0x20d0b0;super(),this[_0x58d5fa(0x193)]=_0x41501e,this[_0x58d5fa(0x23c)]=_0x3ad84e,this[_0x58d5fa(0x29b)](),this[_0x58d5fa(0x2a2)]();}['_initializeCommands'](){const _0x46bdb6=_0x20d0b0;[_0x1ca521][_0x46bdb6(0x1d9)](_0x23ca30=>{const _0x4a2c68=_0x46bdb6;this[_0x4a2c68(0x1e8)](this[_0x4a2c68(0x193)][_0x4a2c68(0x254)](_0x23ca30));});}[_0x20d0b0(0x2a2)](){const _0x200bf7=_0x20d0b0;this[_0x200bf7(0x23c)][_0x200bf7(0x1dd)](_0x34f12d);}},_0xa3f2d7[_0x20d0b0(0x16f)]=_0x148bcb([_0x36b542(0x0,_0x4cf0fc[_0x20d0b0(0x239)]),_0x36b542(0x1,_0x51b934['IMenuManagerService'])],_0xa3f2d7[_0x20d0b0(0x16f)]);const _0x9613e2={'mcpStatus':{'disconnected':_0x20d0b0(0x1f9),'connecting':_0x20d0b0(0x2dc),'connected':'MCP\x20Connected','failed':_0x20d0b0(0x2cf),'retrying':_0x20d0b0(0x235),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x20d0b0(0x16c),'sessionOccupied':_0x20d0b0(0x1eb),'networkError':_0x20d0b0(0x2e5),'maxRetriesExceeded':_0x20d0b0(0x1c4),'clickToConnect':_0x20d0b0(0x19f),'clickToConfigure':_0x20d0b0(0x20e)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x20d0b0(0x201),'apiKeyPlaceholder':_0x20d0b0(0x217),'apiKeyHint':_0x20d0b0(0x277),'enableAuth':_0x20d0b0(0x268),'enableAuthHint':_0x20d0b0(0x20a),'connectionInfo':_0x20d0b0(0x26d),'mcpClientConfig':_0x20d0b0(0x26d),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x20d0b0(0x284),'configStep1':_0x20d0b0(0x2f6),'configStep2':_0x20d0b0(0x1bc),'configStep3':_0x20d0b0(0x2c0),'sessionId':_0x20d0b0(0x24a),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x20d0b0(0x306),'configParameters':_0x20d0b0(0x1b2),'maxRetries':_0x20d0b0(0x1a1),'save':_0x20d0b0(0x242),'saving':_0x20d0b0(0x1f7),'note1':_0x20d0b0(0x2ab),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x20d0b0(0x297),'apiApplyInfo':{'title':_0x20d0b0(0x23f),'description':_0x20d0b0(0x249),'univerAiLabel':_0x20d0b0(0x20b),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x20d0b0(0x1af),'invalidConfig':_0x20d0b0(0x274),'invalidApiKey':_0x20d0b0(0x2b6)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x20d0b0(0x28c),'connected':'Connected','failed':_0x20d0b0(0x187),'retrying':_0x20d0b0(0x257)},'connectionError':{'unauthorized':_0x20d0b0(0x186),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x20d0b0(0x255)}}},_0x376622={'mcpStatus':{'disconnected':_0x20d0b0(0x2ad),'connecting':_0x20d0b0(0x1d3),'connected':'MCP\x20已连接','failed':_0x20d0b0(0x1a0),'retrying':'MCP\x20重连中...','unknown':_0x20d0b0(0x25b),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x20d0b0(0x2a0),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x20d0b0(0x189),'clickToConnect':_0x20d0b0(0x258),'clickToConfigure':_0x20d0b0(0x1a3)},'mcpConfig':{'title':'MCP\x20配置','description':_0x20d0b0(0x2db),'apiKey':_0x20d0b0(0x205),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x20d0b0(0x1a2),'enableAuth':_0x20d0b0(0x273),'enableAuthHint':_0x20d0b0(0x280),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x20d0b0(0x283),'configStepTitle':_0x20d0b0(0x215),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x20d0b0(0x227),'sessionId':_0x20d0b0(0x2b3),'sessionIdDescription':_0x20d0b0(0x1c9),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x20d0b0(0x2e7),'maxRetries':_0x20d0b0(0x29e),'save':_0x20d0b0(0x29d),'saving':_0x20d0b0(0x195),'note1':_0x20d0b0(0x177),'note2':_0x20d0b0(0x196),'configSaved':_0x20d0b0(0x28d),'configError':_0x20d0b0(0x191),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x20d0b0(0x2a1),'univerAiLabel':_0x20d0b0(0x1f1),'getStarted':_0x20d0b0(0x25a)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x20d0b0(0x21b)},'connectionStatus':{'disconnected':'未连接','connecting':_0x20d0b0(0x2b0),'connected':_0x20d0b0(0x28a),'failed':'连接失败','retrying':_0x20d0b0(0x207)},'connectionError':{'unauthorized':_0x20d0b0(0x2fe),'sessionOccupied':_0x20d0b0(0x2d4),'networkError':_0x20d0b0(0x190),'maxRetriesExceeded':_0x20d0b0(0x287)}}};var _0x258943=Object['defineProperty'],_0x1a151f=Object[_0x20d0b0(0x20d)],_0x27ad64=(_0x1c9f32,_0x46a91c,_0x27c16f)=>_0x46a91c in _0x1c9f32?_0x258943(_0x1c9f32,_0x46a91c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27c16f}):_0x1c9f32[_0x46a91c]=_0x27c16f,_0x7878c3=(_0x4c6a86,_0x32ec6b,_0x19bcc0,_0x1e94e6)=>{const _0x23ae7e=_0x20d0b0;for(var _0x5d7197=_0x1e94e6>0x1?void 0x0:_0x1e94e6?_0x1a151f(_0x32ec6b,_0x19bcc0):_0x32ec6b,_0x7c9413=_0x4c6a86[_0x23ae7e(0x2ac)]-0x1,_0x545c7b;_0x7c9413>=0x0;_0x7c9413--)(_0x545c7b=_0x4c6a86[_0x7c9413])&&(_0x5d7197=_0x545c7b(_0x5d7197)||_0x5d7197);return _0x5d7197;},_0xf0b0a4=(_0x2684b1,_0x29853c)=>(_0x373f6f,_0x146d3c)=>_0x29853c(_0x373f6f,_0x146d3c,_0x2684b1),_0x56eeae=(_0x5830e5,_0x73ace7,_0x5ce6bc)=>_0x27ad64(_0x5830e5,_0x73ace7+'',_0x5ce6bc);_0xa3f2d7[_0x20d0b0(0x275)]=class extends _0x4cf0fc['Plugin']{constructor(_0x4be5f1=_0x480718,_0x375994,_0x83a763,_0x153132,_0x4dd18b,_0x4c8a0d){const _0x3e3ec8=_0x20d0b0;super(),this[_0x3e3ec8(0x212)]=_0x4be5f1,this[_0x3e3ec8(0x294)]=_0x375994,this[_0x3e3ec8(0x1a4)]=_0x83a763,this[_0x3e3ec8(0x18c)]=_0x153132,this[_0x3e3ec8(0x206)]=_0x4dd18b,this[_0x3e3ec8(0x1ef)]=_0x4c8a0d;const {..._0x48ea16}=_0x4cf0fc[_0x3e3ec8(0x279)]({},_0x480718,this[_0x3e3ec8(0x212)]);this[_0x3e3ec8(0x1a4)][_0x3e3ec8(0x25e)](_0x4f5f62,_0x48ea16);}async[_0x20d0b0(0x26a)](){const _0x912376=_0x20d0b0,_0x4fe631=[[_0xa3f2d7['MCPConnectionUIController']],[_0xa3f2d7[_0x912376(0x224)]],[_0xa3f2d7[_0x912376(0x16f)]]];this[_0x912376(0x294)][_0x912376(0x25f)](_0x4fdea0[_0x912376(0x272)])||_0x4fe631[_0x912376(0x1a9)]([_0x4fdea0[_0x912376(0x272)],{'useClass':_0x4fdea0[_0x912376(0x22b)]}]),_0x4fe631['forEach'](_0x2f4789=>this[_0x912376(0x294)][_0x912376(0x1fb)](_0x2f4789)),this['_injector'][_0x912376(0x2c9)](_0xa3f2d7[_0x912376(0x245)]),this[_0x912376(0x294)][_0x912376(0x2c9)](_0xa3f2d7['MCPConfigUIController']),this[_0x912376(0x294)][_0x912376(0x2c9)](_0xa3f2d7[_0x912376(0x16f)]);}},_0x56eeae(_0xa3f2d7[_0x20d0b0(0x275)],_0x20d0b0(0x2a4),_0x20d0b0(0x1ee)),_0xa3f2d7[_0x20d0b0(0x275)]=_0x7878c3([_0x4cf0fc[_0x20d0b0(0x2dd)](_0x40f2ad[_0x20d0b0(0x25d)]),_0xf0b0a4(0x1,_0x4cf0fc['Inject'](_0x4cf0fc[_0x20d0b0(0x233)])),_0xf0b0a4(0x2,_0x4cf0fc[_0x20d0b0(0x225)]),_0xf0b0a4(0x3,_0x51b934['IUIPartsService']),_0xf0b0a4(0x4,_0x4cf0fc[_0x20d0b0(0x1e0)]),_0xf0b0a4(0x5,_0x4cf0fc['Inject'](_0x4cf0fc['LocaleService']))],_0xa3f2d7[_0x20d0b0(0x275)]),_0xa3f2d7['MCPConfigPanel']=_0x5f1947,_0xa3f2d7[_0x20d0b0(0x24c)]=_0x70b9f9,_0xa3f2d7[_0x20d0b0(0x2c7)]=_0x1ca521,_0xa3f2d7[_0x20d0b0(0x2f7)]=_0x9613e2,_0xa3f2d7[_0x20d0b0(0x27c)]=_0x376622,Object[_0x20d0b0(0x17d)](_0xa3f2d7,Symbol[_0x20d0b0(0x300)],{'value':_0x20d0b0(0x2c2)});}));function _0x57fc(){const _0x2f0470=['Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','merge','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','amd','zhCN','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','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','svg','启用身份验证以获得安全连接','mcpStatus.unknown','clsx','将以下配置添加到您的\x20MCP\x20客户端设置中:','Configuration\x20Steps:','subscribeConfigValue$','url(#off-line-icon_clip0_910_343)','超出最大重试次数,请稍后再试','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','@univerjs/network','已连接','mcpConfig.apiApplyInfo.univerAiLabel','Connecting...','配置保存成功','univer_session_id:','createElement','univer-space-y-5','toString','MCP\x20Configuration','mcpConfig.configError','_injector','univer.ai','UniverIcon','Failed\x20to\x20save\x20configuration','OTHERS','univer-space-y-4','MCPConnectionError','_initializeCommands','children','保存配置','最大重试次数','mcpConfig.sessionIdDescription','MCP:\x20会话\x20ID\x20已被占用','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_initializeMenus','next','pluginName','defIds','univer-flex\x20univer-items-start\x20univer-gap-3','_dialogService','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','value','showConfigPanel','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','length','MCP\x20已断开','mcp-ui.command.openConfigPanel','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','连接中...','MAX_RETRIES_EXCEEDED','registerComponent','会话ID','map','assign','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','RibbonStartGroup','_loading$','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-text-yellow-500','pre','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','153097xnihVP','mcpConfig.apiApplyInfo.description','_initStatusComponent','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','useState','Module','connectionError$','univer-text-red-500','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpStatus.clickToConnect','OpenMCPConfigPanelCommand','isValid','get','none','univer-text-gray-500','close','\x20-\x20','BuiltInUIPart','MCP\x20Connection\x20Failed','colorChannel1','CONNECTED','connectInjector','connectionStatus$','会话\x20ID\x20已被占用,请稍后再试','off','univer-flex\x20univer-items-start\x20univer-gap-2','FAILED','UniverProMcpUi','div','DISCONNECTED','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP\x20Connecting...','DependentOn','string','Bearer\x20','mcpStatus.connected','_logService','on-line-icon_clip0_910_349','mcpConfig.save','mcpConfig.apiKey','MCP:\x20Network\x20Error','text','配置参数:','react','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_loadStoredApiKey','mcpConfig.apiApplyInfo.getStarted','xlink:href','close-icon','UNAUTHORIZED','univer-shrink-0\x20univer-text-red-500','mcp-config-dialog','function','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','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','currentColor','0\x200\x2017\x2016','Copy\x20the\x20JSON\x20configuration\x20below','enUS','mcpServerUrl','label','https://console.univer.plus','setItem','span','mcpStatus.sessionOccupied','权限验证失败,请检查您的\x20API\x20密钥','mcpConfig.validation.apiKeyTooShort','toStringTag','getConfig','18ataplI','http://www.w3.org/2000/svg','mcpConfig.configStep3','CloseIcon','API\x20key\x20with\x20Bearer\x20prefix.','mcpConfig.title','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','M0\x200H16V16H0z','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-flex\x20univer-items-center','useDependency','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','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','MCP:\x20Unauthorized','mcpStatus.failed','univer-font-medium','MCPUIMenuController','apiKey','show','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','UniverUi','includes','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpConfig.validation.invalidApiKey','配置更改将立即生效','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','white','MenuItemType','url(#on-line-icon_clip0_910_349)','replace','defineProperty','NETWORK_ERROR','_blank','rxjs','BehaviorSubject','6CKuCJF','513RKzHjO','round','RETRYING','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connection\x20Failed','Configuration\x20Notes:','MCP:\x20超出最大重试次数','CONNECTING','mcpConfig.connectionError.maxRetriesExceeded','_uiPartsService','_handleConfigure','univer-flex\x20univer-gap-3','mcpConfig.connectionStatus.connected','网络连接错误,请检查您的网络连接','配置保存失败','validateApiKey','_commandService','UniverDesign','保存中...','您的\x20API\x20密钥安全存储在本地存储中','substring','OnLineIcon','IDialogService','_mcpCoreConfig$','useObservable','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','url(#$1','univer-text-xs\x20univer-text-gray-600','Click\x20to\x20connect\x20MCP','MCP\x20连接失败','Max\x20Retries','您的\x20API\x20密钥将在此浏览器中本地存储','点击配置\x20MCP','_configService','entries','mcpConfig.connectionError.networkError','MCPConfigPanel','bottom','push','mcpConfig.configStep1','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','UniverCore','mcpConfig.connectionStatus.disconnected','trim','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','react/jsx-runtime','mcpConfig.apiApplyInfo.title','Configuration\x20Parameters:','mcpConfig.connectionStatus.failed','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-space-y-2','mcpConfig.configParameters','subscribe','_registerComponent','object','univer-flex\x20univer-items-center\x20univer-gap-2','register','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-bg-red-500','MessageType','jsx','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','displayName','mcp-ui.config','Input','MCP:\x20Max\x20Retries\x20Exceeded','button','sessionId$','_initConfigSync','_config$','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','10QdQhvQ','useRef','COMMAND','SESSION_ID_OCCUPIED','5UZDtCs','univer-min-w-0\x20univer-flex-1','MCPConnectionController','error','mcpConfig.configStep2','MCP\x20连接中...','_apiKey$','<SESSION_ID>','showDeveloperTools','mcpConfig.saving','mcpConfig.configStepTitle','forEach','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mask','@univerjs/design','mergeMenu','jsxs','1238QmmJMR','ILocalStorageService','_validateConfig','_handleConfigSave','mcpConfig.connectionInfo','mcpConfig.validation.invalidConfig','Success','_initAutoConnect','stringify','disposeWithMe','@univerjs-pro/mcp','mcpStatus.maxRetriesExceeded','MCP:\x20Session\x20ID\x20Occupied','0\x200\x2016\x2016','removeItem','MCP_UI_PLUGIN','_localeService','https://mcp.univer.ai/mcp/?univer_session_id=','Univer\x20AI\x20控制台','BUTTON','MCP_PLUGIN_CONFIG_KEY','enableAutoConnect','mcpStatus.retrying','_connectionController','Saving...','1206876kSFJWK','MCP\x20Disconnected','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','add','mcpStatus.disconnected','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','680056yinJHf','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','API\x20Key','idSuffix','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','off-line-icon_clip0_910_343','API\x20密钥','_localStorageService','重连中...','forwardRef','_createConfigPanelComponent','Enable\x20authentication\x20for\x20secure\x20connections','Univer\x20AI\x20Console','mcpConfig.connectionError.unauthorized','getOwnPropertyDescriptor','Click\x20to\x20configure\x20MCP','univer-flex\x20univer-items-center\x20univer-gap-3','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','http','_config','path','mcpStatus.unauthorized','配置步骤:','_mcpConnectionController','Enter\x20your\x20API\x20key','CheckMarkIcon','IUIPartsService','off-line-icon','API\x20密钥无效,请检查密钥是否正确','@univerjs/core','univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','@univerjs/ui','12368CkZbcZ','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Error','MCPConfigUIController','IConfigService','open','重启您的\x20MCP\x20客户端以使配置生效','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','NONE','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','WebSocketService','tag','OffLineIcon','CommandType','mcpConfig.apiKeyPlaceholder','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','6172140rMpNpl','help-icon','Injector','univer-space-y-3','MCP\x20Retrying...','attrs','React','mcpConfig.configSaved','ICommandService','Inject','Disposable','_menuManagerService','clipPath','_messageService','What\x20is\x20API\x20Key?','symbol','univer.plus','Save\x20Configuration','__setCustomHeaders','LocaleService','MCPConnectionUIController','useCallback','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','HEADER_MENU','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session\x20ID','univer-shrink-0\x20univer-text-blue-500','MCPStatusDisplay','697626JNqTOp','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','getCurrentConfig','univerjs-icon\x20univerjs-icon-','fill','_componentManager','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','registerCommand','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.note2','Retrying...','点击连接\x20MCP','univer-bg-gray-500','几秒钟内获取您的\x20API\x20密钥','MCP\x20状态未知','mcpConfig.configInstructions','UniverMCPPlugin','setConfig','has','1em','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','evenodd','IMessageService','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','ComponentManager','on-line-icon','mcpConfig.description','Enable\x20Authentication','MenuIcon','onStarting','univer-text-green-500','mcpStatus.connecting','MCP\x20Client\x20Configuration','ILogService','UniverProMcp','MCPConnectionStatus','defs','ISocketService','启用身份验证','Invalid\x20configuration','UniverMCPUIPlugin','errorMessage'];_0x57fc=function(){return _0x2f0470;};return _0x57fc();}
|