@univerjs-pro/mcp-ui 0.13.0-insiders.20251220-0a5ea4d → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/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/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2dbb96=_0x2029;function _0x2d99(){const _0xd8501b=['Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Unauthorized','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connected','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','Enable\x20Authentication','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','5OdfwzZ','10XGYBGL','MCP\x20Disconnected','Save\x20Configuration','MCP\x20Client\x20Configuration','Enter\x20your\x20API\x20key','1260120NFCvJE','1113623HKpJkk','6539026AfCvUx','3911766yyorNa','API\x20Key','Configuration\x20saved\x20successfully','Configuration\x20Steps:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Max\x20Retries','36JNMtwo','Session\x20ID','Saving...','Connecting...','Click\x20to\x20configure\x20MCP','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Network\x20Error','MCP\x20Unknown\x20Status','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','2225654CiuKYq','MCP\x20Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Retrying...','Failed\x20to\x20save\x20configuration','Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20with\x20Bearer\x20prefix.','4138145TswELb','MCP\x20Retrying...','Connected','API\x20key\x20is\x20required','Invalid\x20configuration','81ipatrC','1tsWdYy','4618996hhEOEt','Get\x20your\x20API\x20key\x20in\x20seconds','6tBpofv','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long'];_0x2d99=function(){return _0xd8501b;};return _0x2d99();}(function(_0xc6cdd2,_0x894d6d){const _0xe6f174=_0x2029,_0xb7a9f8=_0xc6cdd2();while(!![]){try{const _0x1dcde0=parseInt(_0xe6f174(0x8f))/0x1*(-parseInt(_0xe6f174(0xb8))/0x2)+parseInt(_0xe6f174(0xa8))/0x3+-parseInt(_0xe6f174(0x90))/0x4*(-parseInt(_0xe6f174(0x9f))/0x5)+-parseInt(_0xe6f174(0x92))/0x6*(parseInt(_0xe6f174(0xa6))/0x7)+parseInt(_0xe6f174(0xa5))/0x8*(parseInt(_0xe6f174(0x8e))/0x9)+-parseInt(_0xe6f174(0xa0))/0xa*(parseInt(_0xe6f174(0x89))/0xb)+-parseInt(_0xe6f174(0xae))/0xc*(parseInt(_0xe6f174(0xa7))/0xd);if(_0x1dcde0===_0x894d6d)break;else _0xb7a9f8['push'](_0xb7a9f8['shift']());}catch(_0x379f21){_0xb7a9f8['push'](_0xb7a9f8['shift']());}}}(_0x2d99,0xaf955));function _0x2029(_0x4ade96,_0x52a530){_0x4ade96=_0x4ade96-0x83;const _0x2d9981=_0x2d99();let _0x202953=_0x2d9981[_0x4ade96];return _0x202953;}const e={'mcpStatus':{'disconnected':_0x2dbb96(0xa1),'connecting':_0x2dbb96(0xb9),'connected':_0x2dbb96(0x9a),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2dbb96(0x8a),'unknown':_0x2dbb96(0xb5),'unauthorized':_0x2dbb96(0x96),'sessionOccupied':_0x2dbb96(0xb3),'networkError':_0x2dbb96(0xb4),'maxRetriesExceeded':_0x2dbb96(0x85),'clickToConnect':_0x2dbb96(0x86),'clickToConfigure':_0x2dbb96(0xb2)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2dbb96(0x87),'apiKey':_0x2dbb96(0xa9),'apiKeyPlaceholder':_0x2dbb96(0xa4),'apiKeyHint':_0x2dbb96(0xb6),'enableAuth':_0x2dbb96(0x9d),'enableAuthHint':_0x2dbb96(0x9c),'connectionInfo':_0x2dbb96(0xa3),'mcpClientConfig':_0x2dbb96(0xa3),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2dbb96(0xab),'configStep1':_0x2dbb96(0x95),'configStep2':_0x2dbb96(0x98),'configStep3':_0x2dbb96(0x99),'sessionId':_0x2dbb96(0xaf),'sessionIdDescription':_0x2dbb96(0xba),'authorizationDescription':_0x2dbb96(0x88),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x2dbb96(0xad),'save':_0x2dbb96(0xa2),'saving':_0x2dbb96(0xb0),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2dbb96(0x93),'configSaved':_0x2dbb96(0xaa),'configError':_0x2dbb96(0x83),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2dbb96(0x91)},'validation':{'apiKeyRequired':_0x2dbb96(0x8c),'apiKeyTooShort':_0x2dbb96(0x94),'invalidConfig':_0x2dbb96(0x8d),'invalidApiKey':_0x2dbb96(0x9e)},'connectionStatus':{'disconnected':_0x2dbb96(0x84),'connecting':_0x2dbb96(0xb1),'connected':_0x2dbb96(0x8b),'failed':_0x2dbb96(0x9b),'retrying':_0x2dbb96(0xbb)},'connectionError':{'unauthorized':_0x2dbb96(0xac),'sessionOccupied':_0x2dbb96(0x97),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x2dbb96(0xb7)}}},n=e;export{n as default};
|
package/lib/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x58a3(_0x1ab7c8,_0x196f51){_0x1ab7c8=_0x1ab7c8-0x14d;const _0x2f13bd=_0x2f13();let _0x58a31b=_0x2f13bd[_0x1ab7c8];return _0x58a31b;}const _0x128e90=_0x58a3;function _0x2f13(){const _0x4a1cb8=['Đang\x20thử\x20lại...','725784WGafgh','MCP\x20Đang\x20kết\x20nối...','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','7zQuDvz','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Nhập\x20khóa\x20API\x20của\x20bạn','Đang\x20kết\x20nối...','MCP\x20Đang\x20thử\x20lại...','MCP\x20Đã\x20ngắt\x20kết\x20nối','4385050uhTBxk','14132712ifAHFC','MCP\x20Kết\x20nối\x20thất\x20bại','9198uGhYcT','3336mWlAGO','Bật\x20xác\x20thực','Cấu\x20hình\x20không\x20hợp\x20lệ','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','Đang\x20lưu...','52sLFPZa','4891204EaQTVh','Đã\x20ngắt\x20kết\x20nối','Nhấp\x20để\x20kết\x20nối\x20MCP','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Đị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.','MCP:\x20Lỗi\x20mạng','Lưu\x20cấu\x20hình','12sFKCqI','MCP:\x20Không\x20được\x20phép','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','51039EnRPSw','Cấu\x20hình\x20MCP','5vQufGJ','Lưu\x20cấu\x20hình\x20thất\x20bại','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','Kết\x20nối\x20thất\x20bại','Cấu\x20hình\x20máy\x20khách\x20MCP','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','MCP\x20Đã\x20kết\x20nối','540255DAYfsR','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không'];_0x2f13=function(){return _0x4a1cb8;};return _0x2f13();}(function(_0x4b04fe,_0x545d72){const _0xe9b633=_0x58a3,_0x112ded=_0x4b04fe();while(!![]){try{const _0x226a20=parseInt(_0xe9b633(0x16c))/0x1*(parseInt(_0xe9b633(0x161))/0x2)+parseInt(_0xe9b633(0x177))/0x3+parseInt(_0xe9b633(0x162))/0x4*(-parseInt(_0xe9b633(0x16e))/0x5)+parseInt(_0xe9b633(0x17b))/0x6*(parseInt(_0xe9b633(0x151))/0x7)+parseInt(_0xe9b633(0x15c))/0x8*(-parseInt(_0xe9b633(0x15b))/0x9)+-parseInt(_0xe9b633(0x158))/0xa+parseInt(_0xe9b633(0x159))/0xb*(parseInt(_0xe9b633(0x169))/0xc);if(_0x226a20===_0x545d72)break;else _0x112ded['push'](_0x112ded['shift']());}catch(_0x38211f){_0x112ded['push'](_0x112ded['shift']());}}}(_0x2f13,0xc981f));const n={'mcpStatus':{'disconnected':_0x128e90(0x157),'connecting':_0x128e90(0x14d),'connected':_0x128e90(0x176),'failed':_0x128e90(0x15a),'retrying':_0x128e90(0x156),'unknown':'MCP\x20Trạng\x20thái\x20không\x20xác\x20định','unauthorized':_0x128e90(0x16a),'sessionOccupied':_0x128e90(0x15f),'networkError':_0x128e90(0x167),'maxRetriesExceeded':_0x128e90(0x152),'clickToConnect':_0x128e90(0x164),'clickToConfigure':'Nhấp\x20để\x20cấu\x20hình\x20MCP'},'mcpConfig':{'title':_0x128e90(0x16d),'description':_0x128e90(0x171),'apiKey':'Khóa\x20API','apiKeyPlaceholder':_0x128e90(0x154),'apiKeyHint':'Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','enableAuth':_0x128e90(0x15d),'enableAuthHint':'Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','connectionInfo':_0x128e90(0x173),'mcpClientConfig':_0x128e90(0x173),'configInstructions':_0x128e90(0x14e),'configStepTitle':'Các\x20bước\x20cấu\x20hình:','configStep1':_0x128e90(0x14f),'configStep2':_0x128e90(0x175),'configStep3':_0x128e90(0x150),'sessionId':'ID\x20phiên','sessionIdDescription':_0x128e90(0x166),'authorizationDescription':_0x128e90(0x16b),'configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':_0x128e90(0x165),'save':_0x128e90(0x168),'saving':_0x128e90(0x160),'note1':'Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','note2':_0x128e90(0x178),'configSaved':'Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','configError':_0x128e90(0x16f),'apiApplyInfo':{'title':'Khóa\x20API\x20là\x20gì?','description':'Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','univerAiLabel':'Bảng\x20điều\x20khiển\x20Univer\x20AI','getStarted':_0x128e90(0x153)},'validation':{'apiKeyRequired':'Yêu\x20cầu\x20khóa\x20API','apiKeyTooShort':'Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','invalidConfig':_0x128e90(0x15e),'invalidApiKey':_0x128e90(0x179)},'connectionStatus':{'disconnected':_0x128e90(0x163),'connecting':_0x128e90(0x155),'connected':'Đã\x20kết\x20nối','failed':_0x128e90(0x172),'retrying':_0x128e90(0x17a)},'connectionError':{'unauthorized':_0x128e90(0x170),'sessionOccupied':'Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','networkError':'Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','maxRetriesExceeded':_0x128e90(0x174)}}};export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4f7a38=_0x3127;function _0x3127(_0x391887,_0x37186a){_0x391887=_0x391887-0x152;const _0x2514a4=_0x2514();let _0x3127d4=_0x2514a4[_0x391887];return _0x3127d4;}(function(_0x5d4ee8,_0x2df77f){const _0x3408ec=_0x3127,_0x5418d0=_0x5d4ee8();while(!![]){try{const _0x3d679b=parseInt(_0x3408ec(0x17c))/0x1+-parseInt(_0x3408ec(0x161))/0x2*(-parseInt(_0x3408ec(0x156))/0x3)+-parseInt(_0x3408ec(0x179))/0x4+-parseInt(_0x3408ec(0x173))/0x5+parseInt(_0x3408ec(0x17e))/0x6*(-parseInt(_0x3408ec(0x17b))/0x7)+-parseInt(_0x3408ec(0x15b))/0x8*(-parseInt(_0x3408ec(0x157))/0x9)+parseInt(_0x3408ec(0x15d))/0xa;if(_0x3d679b===_0x2df77f)break;else _0x5418d0['push'](_0x5418d0['shift']());}catch(_0x9c3ad8){_0x5418d0['push'](_0x5418d0['shift']());}}}(_0x2514,0xe9021));const e={'mcpStatus':{'disconnected':_0x4f7a38(0x180),'connecting':_0x4f7a38(0x16c),'connected':_0x4f7a38(0x167),'failed':_0x4f7a38(0x16e),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x4f7a38(0x155),'networkError':_0x4f7a38(0x16f),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x4f7a38(0x153),'clickToConfigure':_0x4f7a38(0x159)},'mcpConfig':{'title':'MCP\x20配置','description':_0x4f7a38(0x174),'apiKey':_0x4f7a38(0x168),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x4f7a38(0x154),'enableAuth':'启用身份验证','enableAuthHint':_0x4f7a38(0x15c),'connectionInfo':_0x4f7a38(0x160),'mcpClientConfig':_0x4f7a38(0x160),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':_0x4f7a38(0x171),'configStep2':_0x4f7a38(0x15f),'configStep3':_0x4f7a38(0x176),'sessionId':_0x4f7a38(0x152),'sessionIdDescription':_0x4f7a38(0x170),'authorizationDescription':_0x4f7a38(0x172),'configParameters':_0x4f7a38(0x17f),'maxRetries':_0x4f7a38(0x178),'save':'保存配置','saving':_0x4f7a38(0x177),'note1':_0x4f7a38(0x175),'note2':_0x4f7a38(0x164),'configSaved':_0x4f7a38(0x163),'configError':'配置保存失败','apiApplyInfo':{'title':_0x4f7a38(0x17a),'description':_0x4f7a38(0x165),'univerAiLabel':_0x4f7a38(0x15e),'getStarted':_0x4f7a38(0x15a)},'validation':{'apiKeyRequired':_0x4f7a38(0x181),'apiKeyTooShort':_0x4f7a38(0x162),'invalidConfig':_0x4f7a38(0x166),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x4f7a38(0x17d),'connected':'已连接','failed':_0x4f7a38(0x169),'retrying':_0x4f7a38(0x158)},'connectionError':{'unauthorized':_0x4f7a38(0x16b),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x4f7a38(0x16d),'maxRetriesExceeded':_0x4f7a38(0x16a)}}};export{e as default};function _0x2514(){const _0x314ff0=['MCP\x20连接中...','网络连接错误,请检查您的网络连接','MCP\x20连接失败','MCP:\x20网络错误','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','复制以下\x20JSON\x20配置','带有\x20Bearer\x20前缀的\x20API\x20密钥。','2865330BFltAf','配置\x20MCP\x20使用\x20AI\x20操作电子表格','配置更改将立即生效','重启您的\x20MCP\x20客户端以使配置生效','保存中...','最大重试次数','2172980DBPhoU','什么是\x20API\x20密钥?','150276UmFxBb','539294VpXwQF','连接中...','420zzWdVv','配置参数:','MCP\x20已断开','API\x20密钥不能为空','会话ID','点击连接\x20MCP','您的\x20API\x20密钥将在此浏览器中本地存储','MCP:\x20会话\x20ID\x20已被占用','39IGukGn','15824223OBYQPR','重连中...','点击配置\x20MCP','几秒钟内获取您的\x20API\x20密钥','8PklMjb','启用身份验证以获得安全连接','2504650YcATxD','Univer\x20AI\x20控制台','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20客户端配置','157764gNzUGT','API\x20密钥长度至少需要\x2010\x20位','配置保存成功','您的\x20API\x20密钥安全存储在本地存储中','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','配置无效','MCP\x20已连接','API\x20密钥','连接失败','超出最大重试次数,请稍后再试','权限验证失败,请检查您的\x20API\x20密钥'];_0x2514=function(){return _0x314ff0;};return _0x2514();}
|
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x23a8(){const _0x563db3=['4sorPJq','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Saving...','API\x20key\x20is\x20required','Configuration\x20Parameters:','Disconnected','26530cgBoLk','Click\x20to\x20configure\x20MCP','Configuration\x20saved\x20successfully','1263546BjdYlp','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20Authentication','Invalid\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key','MCP\x20Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','Max\x20Retries','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Disconnected','Click\x20to\x20connect\x20MCP','Session\x20ID','128526PnpYce','MCP\x20Unknown\x20Status','Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','What\x20is\x20API\x20Key?','344317GOZXvU','Univer\x20AI\x20Console','99496FadHyh','70bejLNi','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','260ByYfWE','Configuration\x20Steps:','6251520jmfqYO','MCP\x20Connecting...','1026918SYrzzf'];_0x23a8=function(){return _0x563db3;};return _0x23a8();}const _0x2c68bb=_0x136f;function _0x136f(_0x1791ee,_0x52d2d1){_0x1791ee=_0x1791ee-0x172;const _0x23a89e=_0x23a8();let _0x136f1d=_0x23a89e[_0x1791ee];return _0x136f1d;}(function(_0x2e6cec,_0x125806){const _0x49c163=_0x136f,_0x13c97f=_0x2e6cec();while(!![]){try{const _0x5ece09=parseInt(_0x49c163(0x18b))/0x1+-parseInt(_0x49c163(0x197))/0x2*(parseInt(_0x49c163(0x186))/0x3)+-parseInt(_0x49c163(0x192))/0x4*(-parseInt(_0x49c163(0x1a0))/0x5)+parseInt(_0x49c163(0x1a3))/0x6+parseInt(_0x49c163(0x18e))/0x7*(-parseInt(_0x49c163(0x18d))/0x8)+parseInt(_0x49c163(0x196))/0x9+-parseInt(_0x49c163(0x194))/0xa;if(_0x5ece09===_0x125806)break;else _0x13c97f['push'](_0x13c97f['shift']());}catch(_0xb86f4c){_0x13c97f['push'](_0x13c97f['shift']());}}}(_0x23a8,0x2ba06));const e={'mcpStatus':{'disconnected':_0x2c68bb(0x183),'connecting':_0x2c68bb(0x195),'connected':_0x2c68bb(0x173),'failed':_0x2c68bb(0x17b),'retrying':_0x2c68bb(0x17e),'unknown':_0x2c68bb(0x187),'unauthorized':_0x2c68bb(0x18f),'sessionOccupied':_0x2c68bb(0x182),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2c68bb(0x184),'clickToConfigure':_0x2c68bb(0x1a1)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2c68bb(0x198),'apiKey':_0x2c68bb(0x17a),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2c68bb(0x189),'enableAuth':_0x2c68bb(0x177),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2c68bb(0x190),'mcpClientConfig':_0x2c68bb(0x190),'configInstructions':_0x2c68bb(0x179),'configStepTitle':_0x2c68bb(0x193),'configStep1':_0x2c68bb(0x176),'configStep2':_0x2c68bb(0x180),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2c68bb(0x185),'sessionIdDescription':_0x2c68bb(0x17d),'authorizationDescription':_0x2c68bb(0x17c),'configParameters':_0x2c68bb(0x19e),'maxRetries':_0x2c68bb(0x17f),'save':'Save\x20Configuration','saving':_0x2c68bb(0x19c),'note1':_0x2c68bb(0x174),'note2':_0x2c68bb(0x181),'configSaved':_0x2c68bb(0x1a2),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x2c68bb(0x18a),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x2c68bb(0x18c),'getStarted':_0x2c68bb(0x199)},'validation':{'apiKeyRequired':_0x2c68bb(0x19d),'apiKeyTooShort':_0x2c68bb(0x191),'invalidConfig':_0x2c68bb(0x178),'invalidApiKey':_0x2c68bb(0x19a)},'connectionStatus':{'disconnected':_0x2c68bb(0x19f),'connecting':'Connecting...','connected':'Connected','failed':_0x2c68bb(0x188),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2c68bb(0x1a4),'sessionOccupied':_0x2c68bb(0x172),'networkError':_0x2c68bb(0x19b),'maxRetriesExceeded':_0x2c68bb(0x175)}}},n=e;export{n as default};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1a7a(_0x3d48aa,_0x13631e){_0x3d48aa=_0x3d48aa-0x1b3;const _0x5328b7=_0x5328();let _0x1a7acf=_0x5328b7[_0x3d48aa];return _0x1a7acf;}function _0x5328(){const _0x34e8c6=['amd','http://www.w3.org/2000/svg','on-line-icon','UniverMCPUIPlugin','univer-text-red-500','8962704GkKyiV','errorMessage','MCP\x20Connected','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Failed\x20to\x20save\x20configuration','mcpConfig.save','Saving...','Plugin','MAX_RETRIES_EXCEEDED','mcp.apiKey','UniverNetwork','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','mcpConfig.configParameters','Configuration\x20Notes:','path','连接失败','API\x20key\x20with\x20Bearer\x20prefix.','点击配置\x20MCP','jsxs','label','mcpConfig.configSaved','_localStorageService','启用身份验证','配置步骤:','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','length','error','mcpConfig.apiKeyHint','mcpConfig.connectionError.networkError','MCPConnectionError','IConfigService','224904kkSBoj','_initializeCommands','Save\x20Configuration','defineProperty','mcpConfig.title','UniverMCPPlugin','mcpConfig.validation.apiKeyRequired','univer-text-sm\x20univer-font-medium','idSuffix','white','ILocalStorageService','mcpConfig.connectionError.sessionOccupied','API\x20Key','MCP:\x20超出最大重试次数','API\x20密钥长度至少需要\x2010\x20位','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_commandService','string','entries','warn','includes','DISCONNECTED','MCPUIMenuController','univer-text-white','256128JriAEi','IMessageService','attrs','mcpServerUrl','超出最大重试次数,请稍后再试','FAILED','12712svRrqd','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','close','mcpConfig.connectionError.maxRetriesExceeded','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','add','MCP\x20已连接','mcpConfig.note2','showStatus','IDialogService','UniverCore','未连接','mcpStatus.sessionOccupied','Disconnected','MCP\x20客户端配置','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','_componentManager','MCPConnectionStatus','DependentOn','univer-space-y-2','UNAUTHORIZED','SESSION_ID_OCCUPIED','配置保存失败','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','translate(.97)','mcpConfig.configStepTitle','univer-shrink-0\x20univer-text-blue-500','univerjs-icon\x20univerjs-icon-','您的\x20API\x20密钥安全存储在本地存储中','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-shrink-0\x20univer-text-red-500','assign','MessageType','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','registerComponent','_loading$','MCP\x20Connection\x20Failed','isValid','univer-bg-green-500','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','0\x200\x2016\x2016','UniverUi','_apiKey$','mcpConfig.apiApplyInfo.title','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','CommandType','Error','保存中...','univer-flex\x20univer-items-center\x20univer-gap-2','https://console.univer.ai','\x20-\x20','react','round','RibbonStartGroup','Inject','https://console.univer.plus','defs','Enable\x20Authentication','MCP\x20重连中...','getConfig','zhCN','4138390YXcFgC','mask','CONNECTED','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','_configService','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-text-sm\x20univer-text-gray-500','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Tooltip','API\x20密钥无效,请检查密钥是否正确','univer-text-yellow-500','MCP\x20已断开','subscribe','mcpConfig.connectionStatus.disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Enter\x20your\x20API\x20key','useObservable','mcpStatus.unknown','1em','registerCommand','fill','2933gYQnnA','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','配置无效','@univerjs/ui','mcpConfig.configError','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-space-y-3','MenuItemType','useCallback','ISocketService','mcpConfig.configStep2','CONNECTING','您的\x20API\x20密钥将在此浏览器中本地存储','get','请输入您的\x20API\x20密钥','配置更改将立即生效','启用身份验证以获得安全连接','CloseIcon','push','mcpStatus.failed','_createConfigPanelComponent','univer-text-blue-600','displayName','div','univer-text-xs\x20univer-text-gray-500','connectInjector','_mcpConnectionController','_initAutoConnect','已连接','会话\x20ID\x20已被占用,请稍后再试','什么是\x20API\x20密钥?','univer-bg-gray-500','univer-flex\x20univer-items-center\x20univer-gap-3','COMMAND','4eXVvAn','off-line-icon_clip0_910_343','createElement','_validateConfig','Retrying...','button','mcpConfig.apiApplyInfo.univerAiLabel','MCP:\x20Session\x20ID\x20Occupied','bottom','xlink:href','IUIPartsService','_registerComponent','mcp-ui.config','mcpConfig.validation.apiKeyTooShort','value','_dialogService','BuiltInUIPart','NONE','univer-flex\x20univer-gap-3','HelpIcon','@univerjs-pro/mcp','useState','mcpConfig.saving','ILogService','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','_connectionController','LocaleService','MCPConfigUIController','function','IMenuManagerService','univer-flex-1','Input','React','MCP\x20Disconnected','mcpConfig.configStep1','MCP\x20连接中...','next','mcp-config-dialog','@univerjs/core','MCP:\x20Unauthorized','Max\x20Retries','2585154ERCzoR','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-text-green-500','https://mcp.univer.ai/mcp/?univer_session_id=','toString','ComponentManager','forwardRef','UniverIcon','getCurrentConfig','点击连接\x20MCP','object','useDependency','mcpStatus.connecting','HEADER_MENU','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','NETWORK_ERROR','open','MCP\x20配置','Button','univer-space-y-5','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.apiKey','univer-min-w-0\x20univer-flex-1','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','disposeWithMe','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','apiKey','map','subscribeConfigValue$','mcp-ui.command.openConfigPanel','_handleConfigSave','mcpStatus.retrying','RETRYING','off','url(#off-line-icon_clip0_910_343)','replace','help-icon','mcpConfig.validation.invalidConfig','current','univer.ai','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','Click\x20to\x20configure\x20MCP','Configuration\x20Steps:','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','配置保存成功','_mcpCoreConfig$','Module','MCP_PLUGIN_CONFIG_KEY','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpStatus.connected','setConfig','onStarting','useRef','MCPStatusDisplay','_localeService','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','show','mcpConfig.connectionError.unauthorized','univer-bg-blue-500','mcpStatus.clickToConfigure','What\x20is\x20API\x20Key?','clipPath','Invalid\x20configuration','ICommandService','none','colorChannel1','M0\x200H16V16H0z','MCPConnectionController','<SESSION_ID>','MCP\x20Client\x20Configuration','mcpConfig.apiKeyPlaceholder','MCP:\x20Max\x20Retries\x20Exceeded','API\x20密钥不能为空','mcpConfig.connectionStatus.connecting','Authorization:','_menuManagerService','__setCustomHeaders','mcpConfig.apiApplyInfo.getStarted','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-bg-red-500','Copy\x20the\x20JSON\x20configuration\x20below','Injector','merge','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Success','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','tag','@univerjs/network','Disposable','univer.plus','forEach','http','noopener\x20noreferrer','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Configuration','<API_KEY>','mcpConfig.connectionStatus.connected','_handleConfigure','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_uiPartsService','trim','Connection\x20Failed','MCP\x20Retrying...','Connecting...','连接中...','Configuration\x20saved\x20successfully','showDeveloperTools','MCPConfigPanel','getOwnPropertyDescriptor','_messageService','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP\x20Unknown\x20Status','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','BehaviorSubject','url(#$1','\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','_loadStoredApiKey','Univer\x20AI\x20控制台','on-line-icon_clip0_910_349','_config','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpConfig.authorizationDescription','复制以下\x20JSON\x20配置','jsx','use','MCPConnectionUIController','evenodd','setItem','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Click\x20to\x20connect\x20MCP','connectionStatus$','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpConfig.note1','_injector','OTHERS','几秒钟内获取您的\x20API\x20密钥','span','Enable\x20authentication\x20for\x20secure\x20connections','univer-size-4','_config$','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','url(#on-line-icon_clip0_910_349)','univer-size-2\x20univer-rounded-full','@univerjs/design','Bearer\x20','OffLineIcon','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP:\x20会话\x20ID\x20已被占用','showConfigPanel','_logService','_initStatusComponent','OpenMCPConfigPanelCommand','stringify','MCP:\x20Network\x20Error','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','children','clsx','svg','MCP_UI_PLUGIN','univer-flex\x20univer-items-start\x20univer-gap-3','_initializeMenus','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer_session_id:','OnLineIcon','univer-space-y-4','167361LBiVcb','Connected','close-icon','UniverProMcpUi','currentColor'];_0x5328=function(){return _0x34e8c6;};return _0x5328();}(function(_0x33113e,_0x4f7c2e){const _0xe4b2e9=_0x1a7a,_0xc6edb5=_0x33113e();while(!![]){try{const _0xcfc912=parseInt(_0xe4b2e9(0x21c))/0x1+parseInt(_0xe4b2e9(0x204))/0x2+-parseInt(_0xe4b2e9(0x1db))/0x3*(-parseInt(_0xe4b2e9(0x298))/0x4)+parseInt(_0xe4b2e9(0x260))/0x5+-parseInt(_0xe4b2e9(0x2c2))/0x6+-parseInt(_0xe4b2e9(0x276))/0x7*(-parseInt(_0xe4b2e9(0x222))/0x8)+-parseInt(_0xe4b2e9(0x1e5))/0x9;if(_0xcfc912===_0x4f7c2e)break;else _0xc6edb5['push'](_0xc6edb5['shift']());}catch(_0xd6155d){_0xc6edb5['push'](_0xc6edb5['shift']());}}}(_0x5328,0x77e71),function(_0x177b5b,_0x522d52){const _0x4337bd=_0x1a7a;typeof exports==_0x4337bd(0x2cc)&&typeof module<'u'?_0x522d52(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==_0x4337bd(0x2b5)&&define[_0x4337bd(0x1e0)]?define(['exports',_0x4337bd(0x2bf),'react/jsx-runtime',_0x4337bd(0x2ac),_0x4337bd(0x1c5),_0x4337bd(0x279),'rxjs',_0x4337bd(0x256),_0x4337bd(0x31a)],_0x522d52):(_0x177b5b=typeof globalThis<'u'?globalThis:_0x177b5b||self,_0x522d52(_0x177b5b[_0x4337bd(0x1de)]={},_0x177b5b[_0x4337bd(0x22c)],_0x177b5b[_0x4337bd(0x2b9)],_0x177b5b['UniverProMcp'],_0x177b5b['UniverDesign'],_0x177b5b[_0x4337bd(0x24c)],_0x177b5b['rxjs'],_0x177b5b[_0x4337bd(0x2b9)],_0x177b5b[_0x4337bd(0x1ef)]));}(this,function(_0x50df75,_0x4eec7b,_0x4a7dcc,_0x59ea95,_0x4b24c4,_0x3c9fd4,_0x384b81,_0x3fb8df,_0x6309e8){'use strict';const _0x14c7a4=_0x1a7a;var _0x1de2a7=Object[_0x14c7a4(0x207)],_0x5e72f3=(_0x131212,_0x359f9e,_0x1692ba)=>_0x359f9e in _0x131212?_0x1de2a7(_0x131212,_0x359f9e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1692ba}):_0x131212[_0x359f9e]=_0x1692ba,_0x1e2ad9=(_0x3722ec,_0x1a39e2,_0x4788ff)=>_0x5e72f3(_0x3722ec,typeof _0x1a39e2!='symbol'?_0x1a39e2+'':_0x1a39e2,_0x4788ff);function _0x3c0d3d({ref:_0x1ce621,..._0x1930e6}){const _0xf31ce1=_0x14c7a4,{icon:_0x454ef5,id:_0xbf1863,className:_0x5c94eb,extend:_0x832b90,..._0x172448}=_0x1930e6,_0x2754d7=(_0xf31ce1(0x23e)+_0xbf1863+'\x20'+(_0x5c94eb||''))[_0xf31ce1(0x327)](),_0x3f8d59=_0x3fb8df[_0xf31ce1(0x2f6)]('_'+_0x363e5e());return _0x3709ec(_0x454ef5,''+_0xbf1863,{'defIds':_0x454ef5['defIds'],'idSuffix':_0x3f8d59[_0xf31ce1(0x2e8)]},{'ref':_0x1ce621,'className':_0x2754d7,..._0x172448},_0x832b90);}function _0x3709ec(_0x1f685b,_0x58dde6,_0x5a274a,_0x4cdf12,_0x202943){const _0x36b5fd=_0x14c7a4;return _0x3fb8df[_0x36b5fd(0x29a)](_0x1f685b[_0x36b5fd(0x319)],{'key':_0x58dde6,..._0x3b40e3(_0x1f685b,_0x5a274a,_0x202943),..._0x4cdf12},(_0x264fe3(_0x1f685b,_0x5a274a)['children']||[])[_0x36b5fd(0x2dd)]((_0x3e89fc,_0x2fe650)=>_0x3709ec(_0x3e89fc,_0x58dde6+'-'+_0x1f685b[_0x36b5fd(0x319)]+'-'+_0x2fe650,_0x5a274a,void 0x0,_0x202943)));}function _0x3b40e3(_0x29f5f8,_0x4badb9,_0x483d8b){const _0xd6ad8f=_0x14c7a4,_0x80ef91={..._0x29f5f8[_0xd6ad8f(0x21e)]};_0x483d8b!=null&&_0x483d8b[_0xd6ad8f(0x304)]&&_0x80ef91['fill']==='colorChannel1'&&(_0x80ef91[_0xd6ad8f(0x275)]=_0x483d8b[_0xd6ad8f(0x304)]),_0x29f5f8['tag']===_0xd6ad8f(0x261)&&_0x80ef91['id']&&(_0x80ef91['id']=_0x80ef91['id']+_0x4badb9[_0xd6ad8f(0x20c)]),Object[_0xd6ad8f(0x216)](_0x80ef91)[_0xd6ad8f(0x31d)](([_0xc7f55e,_0x5b44df])=>{const _0x2a210e=_0xd6ad8f;_0xc7f55e===_0x2a210e(0x261)&&typeof _0x5b44df==_0x2a210e(0x215)&&(_0x80ef91[_0xc7f55e]=_0x5b44df['replace'](/url\(#(.*)\)/,_0x2a210e(0x335)+_0x4badb9[_0x2a210e(0x20c)]+')'));});const {defIds:_0x13fef1}=_0x4badb9;return!_0x13fef1||_0x13fef1['length']===0x0||(_0x29f5f8['tag']===_0xd6ad8f(0x33f)&&_0x80ef91['xlink:href']&&(_0x80ef91[_0xd6ad8f(0x2a1)]=_0x80ef91[_0xd6ad8f(0x2a1)]+_0x4badb9[_0xd6ad8f(0x20c)]),Object[_0xd6ad8f(0x216)](_0x80ef91)[_0xd6ad8f(0x31d)](([_0x484b0d,_0x7fb1f])=>{const _0x4e1bb1=_0xd6ad8f;typeof _0x7fb1f==_0x4e1bb1(0x215)&&(_0x80ef91[_0x484b0d]=_0x7fb1f[_0x4e1bb1(0x2e5)](/url\(#(.*)\)/,_0x4e1bb1(0x335)+_0x4badb9[_0x4e1bb1(0x20c)]+')'));})),_0x80ef91;}function _0x264fe3(_0x19bf49,_0x79ebd6){const _0x1d711e=_0x14c7a4;var _0x2c8124;const {defIds:_0x5091d0}=_0x79ebd6;return!_0x5091d0||_0x5091d0[_0x1d711e(0x1fe)]===0x0?_0x19bf49:_0x19bf49['tag']===_0x1d711e(0x25b)&&((_0x2c8124=_0x19bf49[_0x1d711e(0x1d1)])!=null&&_0x2c8124[_0x1d711e(0x1fe)])?{..._0x19bf49,'children':_0x19bf49[_0x1d711e(0x1d1)]['map'](_0xc19e41=>typeof _0xc19e41['attrs']['id']=='string'&&_0x5091d0&&_0x5091d0[_0x1d711e(0x218)](_0xc19e41[_0x1d711e(0x21e)]['id'])?{..._0xc19e41,'attrs':{..._0xc19e41[_0x1d711e(0x21e)],'id':_0xc19e41[_0x1d711e(0x21e)]['id']+_0x79ebd6['idSuffix']}}:_0xc19e41)}:_0x19bf49;}function _0x363e5e(){const _0x3febda=_0x14c7a4;return Math['random']()[_0x3febda(0x2c6)](0x24)['substring'](0x2,0x8);}_0x3c0d3d[_0x14c7a4(0x28c)]=_0x14c7a4(0x2c9);const _0xc31e0d={'tag':'svg','attrs':{'xmlns':_0x14c7a4(0x1e1),'fill':_0x14c7a4(0x303),'viewBox':_0x14c7a4(0x24b),'width':_0x14c7a4(0x273),'height':_0x14c7a4(0x273)},'children':[{'tag':_0x14c7a4(0x1f3),'attrs':{'fill':'currentColor','d':_0x14c7a4(0x1b8),'fillRule':_0x14c7a4(0x1b3),'clipRule':_0x14c7a4(0x1b3)}}]},_0x31dc32=_0x3fb8df[_0x14c7a4(0x2c8)](function(_0x3461b3,_0x2cc66d){const _0x1fcb51=_0x14c7a4;return _0x3fb8df['createElement'](_0x3c0d3d,Object[_0x1fcb51(0x242)]({},_0x3461b3,{'id':'check-mark-icon','ref':_0x2cc66d,'icon':_0xc31e0d}));});_0x31dc32['displayName']='CheckMarkIcon';const _0x4ff299={'tag':_0x14c7a4(0x1d3),'attrs':{'xmlns':_0x14c7a4(0x1e1),'fill':_0x14c7a4(0x303),'viewBox':'0\x200\x2016\x2016','width':_0x14c7a4(0x273),'height':_0x14c7a4(0x273)},'children':[{'tag':_0x14c7a4(0x1f3),'attrs':{'fill':_0x14c7a4(0x1df),'d':_0x14c7a4(0x1fd)}}]},_0x29d120=_0x3fb8df[_0x14c7a4(0x2c8)](function(_0x159719,_0x15008e){const _0x24afcb=_0x14c7a4;return _0x3fb8df[_0x24afcb(0x29a)](_0x3c0d3d,Object[_0x24afcb(0x242)]({},_0x159719,{'id':_0x24afcb(0x1dd),'ref':_0x15008e,'icon':_0x4ff299}));});_0x29d120[_0x14c7a4(0x28c)]=_0x14c7a4(0x287);const _0x523e2f={'tag':_0x14c7a4(0x1d3),'attrs':{'xmlns':_0x14c7a4(0x1e1),'fill':_0x14c7a4(0x303),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':_0x14c7a4(0x1f3),'attrs':{'fill':'currentColor','d':_0x14c7a4(0x2b0)}},{'tag':_0x14c7a4(0x1f3),'attrs':{'fill':_0x14c7a4(0x1df),'d':_0x14c7a4(0x263)}},{'tag':_0x14c7a4(0x1f3),'attrs':{'fill':'currentColor','d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':'evenodd','clipRule':_0x14c7a4(0x1b3)}}]},_0x585361=_0x3fb8df[_0x14c7a4(0x2c8)](function(_0x1878e7,_0x5187ae){const _0x314fd9=_0x14c7a4;return _0x3fb8df[_0x314fd9(0x29a)](_0x3c0d3d,Object[_0x314fd9(0x242)]({},_0x1878e7,{'id':_0x314fd9(0x2e6),'ref':_0x5187ae,'icon':_0x523e2f}));});_0x585361[_0x14c7a4(0x28c)]=_0x14c7a4(0x2ab);const _0x49ad58={'tag':'svg','attrs':{'xmlns':_0x14c7a4(0x1e1),'fill':'none','viewBox':_0x14c7a4(0x24b),'width':_0x14c7a4(0x273),'height':_0x14c7a4(0x273)},'children':[{'tag':'g','attrs':{'clipPath':_0x14c7a4(0x2e4)},'children':[{'tag':_0x14c7a4(0x1f3),'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':_0x14c7a4(0x257),'strokeLinejoin':_0x14c7a4(0x257),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x14c7a4(0x300),'attrs':{'id':_0x14c7a4(0x299)},'children':[{'tag':'path','attrs':{'fill':_0x14c7a4(0x20d),'d':_0x14c7a4(0x305)}}]}]}],'defIds':[_0x14c7a4(0x299)]},_0x363dd5=_0x3fb8df[_0x14c7a4(0x2c8)](function(_0x30923e,_0x33eff3){const _0x587c78=_0x14c7a4;return _0x3fb8df[_0x587c78(0x29a)](_0x3c0d3d,Object['assign']({},_0x30923e,{'id':'off-line-icon','ref':_0x33eff3,'icon':_0x49ad58}));});_0x363dd5['displayName']=_0x14c7a4(0x1c7);const _0x209fe0={'tag':_0x14c7a4(0x1d3),'attrs':{'xmlns':_0x14c7a4(0x1e1),'fill':_0x14c7a4(0x303),'viewBox':'0\x200\x2017\x2016','width':_0x14c7a4(0x273),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x14c7a4(0x1c3)},'children':[{'tag':_0x14c7a4(0x1f3),'attrs':{'stroke':'currentColor','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':'round','strokeLinejoin':_0x14c7a4(0x257),'strokeWidth':1.2}}]},{'tag':_0x14c7a4(0x25b),'attrs':{},'children':[{'tag':_0x14c7a4(0x300),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x14c7a4(0x305),'transform':_0x14c7a4(0x23b)}}]}]}],'defIds':[_0x14c7a4(0x339)]},_0x136870=_0x3fb8df[_0x14c7a4(0x2c8)](function(_0x385b52,_0x5097e1){const _0x118f82=_0x14c7a4;return _0x3fb8df[_0x118f82(0x29a)](_0x3c0d3d,Object['assign']({},_0x385b52,{'id':_0x118f82(0x1e2),'ref':_0x5097e1,'icon':_0x209fe0}));});_0x136870[_0x14c7a4(0x28c)]=_0x14c7a4(0x1d9);function _0x52a822(_0x183598){const _0xef5ba9=_0x14c7a4;var _0x1f00bd,_0x4706c2;const {mcpCoreConfig:_0x423472,onSave:_0x43a88c,loading:_0x27a5c8=!0x1,config:_0x5a2fdb,connectionStatus$:_0x58e6ac,connectionError$:_0x59c452,currentApiKey$:_0x3d18cc,currentSessionId$:_0x442978}=_0x183598,_0x299f6a=_0x3c9fd4[_0xef5ba9(0x2cd)](_0x4eec7b[_0xef5ba9(0x2b3)]),_0x424d0c=_0x3c9fd4[_0xef5ba9(0x271)](_0x58e6ac,_0x59ea95[_0xef5ba9(0x233)][_0xef5ba9(0x219)]),_0x540e57=_0x3c9fd4[_0xef5ba9(0x271)](_0x59c452,_0x59ea95[_0xef5ba9(0x202)][_0xef5ba9(0x2a9)]),_0x436d60=_0x3c9fd4[_0xef5ba9(0x271)](_0x442978,''),_0x434bfc=_0x3c9fd4[_0xef5ba9(0x271)](_0x3d18cc,''),[_0x481281,_0x4cf9c3]=_0x3fb8df[_0xef5ba9(0x2ad)](_0x434bfc||''),_0x330169=!0x0,_0xa7f6d6=_0x5a2fdb[_0xef5ba9(0x32d)]&&_0x423472[_0xef5ba9(0x21f)]&&(_0x423472[_0xef5ba9(0x21f)][_0xef5ba9(0x218)](_0xef5ba9(0x31c))||_0x423472[_0xef5ba9(0x21f)][_0xef5ba9(0x218)](_0xef5ba9(0x2e9))),_0x2f2c98=(_0x1f00bd=_0x423472[_0xef5ba9(0x21f)])==null?void 0x0:_0x1f00bd[_0xef5ba9(0x218)](_0xef5ba9(0x31c)),_0x3b597f=(_0x4706c2=_0x423472['mcpServerUrl'])==null?void 0x0:_0x4706c2[_0xef5ba9(0x218)]('univer.ai'),_0x459ed3=_0x2f2c98?_0xef5ba9(0x25a):_0xef5ba9(0x254),_0x3997a9=_0x5a2fdb[_0xef5ba9(0x32d)]&&(_0x2f2c98||_0x3b597f),[_0x2802c8,_0x5987a5]=_0x3fb8df['useState'](!_0x481281['trim']()),_0x116042=(_0x3b86cb,_0x22a597)=>{const _0x38e1db=_0xef5ba9;if(_0x22a597===_0x59ea95[_0x38e1db(0x202)][_0x38e1db(0x236)])return _0x38e1db(0x1d0);switch(_0x3b86cb){case _0x59ea95[_0x38e1db(0x233)][_0x38e1db(0x262)]:return _0x38e1db(0x240);case _0x59ea95[_0x38e1db(0x233)][_0x38e1db(0x281)]:case _0x59ea95[_0x38e1db(0x233)][_0x38e1db(0x2e2)]:return _0x38e1db(0x239);case _0x59ea95[_0x38e1db(0x233)]['FAILED']:return _0x38e1db(0x1d0);default:return _0x38e1db(0x1e8);}},_0x2b2995=(_0x346a12,_0x3b6ad2)=>{const _0x29875d=_0xef5ba9;if(_0x3b6ad2===_0x59ea95[_0x29875d(0x202)]['UNAUTHORIZED'])return _0x29875d(0x312);switch(_0x346a12){case _0x59ea95[_0x29875d(0x233)][_0x29875d(0x262)]:return _0x29875d(0x249);case _0x59ea95[_0x29875d(0x233)]['CONNECTING']:case _0x59ea95[_0x29875d(0x233)][_0x29875d(0x2e2)]:return _0x29875d(0x2fd);case _0x59ea95[_0x29875d(0x233)]['FAILED']:return _0x29875d(0x312);default:return _0x29875d(0x295);}},_0x4e9253=_0x5e1659=>{const _0x1b6f04=_0xef5ba9;switch(_0x5e1659){case _0x59ea95['MCPConnectionStatus'][_0x1b6f04(0x262)]:return _0x299f6a['t'](_0x1b6f04(0x323));case _0x59ea95[_0x1b6f04(0x233)]['CONNECTING']:return _0x299f6a['t'](_0x1b6f04(0x30c));case _0x59ea95[_0x1b6f04(0x233)]['FAILED']:return _0x299f6a['t']('mcpConfig.connectionStatus.failed');case _0x59ea95[_0x1b6f04(0x233)]['RETRYING']:return _0x299f6a['t']('mcpConfig.connectionStatus.retrying');default:return _0x299f6a['t'](_0x1b6f04(0x26d));}},_0x206183=_0x5826d7=>{const _0x536784=_0xef5ba9;switch(_0x5826d7){case _0x59ea95['MCPConnectionError'][_0x536784(0x236)]:return _0x299f6a['t'](_0x536784(0x2fc));case _0x59ea95[_0x536784(0x202)][_0x536784(0x237)]:return _0x299f6a['t'](_0x536784(0x20f));case _0x59ea95['MCPConnectionError']['NETWORK_ERROR']:return _0x299f6a['t'](_0x536784(0x201));case _0x59ea95['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x299f6a['t'](_0x536784(0x225));default:return'';}},_0xd37d19=_0x3fb8df[_0xef5ba9(0x27e)](()=>{const _0x56a0dd={..._0x423472,'apiKey':_0x481281['trim'](),'enableAuth':_0x330169};_0x43a88c(_0x56a0dd);},[_0x423472,_0x481281,_0x330169,_0x43a88c]),_0x188b8c=_0x481281[_0xef5ba9(0x327)]()[_0xef5ba9(0x1fe)]>0x0;return _0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2d9),'children':_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x296),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2fa),'children':_0x4a7dcc['jsx'](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x21b),'children':'⚙'})}),_0x4a7dcc[_0xef5ba9(0x33e)]('div',{'children':_0x4a7dcc[_0xef5ba9(0x33e)]('p',{'className':_0xef5ba9(0x266),'children':_0x299f6a['t']('mcpConfig.description')})})]})}),_0x4a7dcc[_0xef5ba9(0x1f7)]('div',{'className':_0xef5ba9(0x223),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0x4b24c4['clsx'](_0xef5ba9(0x23a),_0x116042(_0x424d0c,_0x540e57)),'children':_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x253),'children':[_0x4a7dcc['jsx'](_0xef5ba9(0x28d),{'className':_0x4b24c4['clsx'](_0xef5ba9(0x1c4),_0x2b2995(_0x424d0c,_0x540e57))}),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x20b),'children':_0x4e9253(_0x424d0c)})]})}),_0x540e57!==_0x59ea95[_0xef5ba9(0x202)][_0xef5ba9(0x2a9)]&&(_0x424d0c===_0x59ea95[_0xef5ba9(0x233)][_0xef5ba9(0x221)]||_0x540e57===_0x59ea95[_0xef5ba9(0x202)][_0xef5ba9(0x236)])&&_0x4a7dcc['jsx'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x333),'children':_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x4a7dcc['jsx']('span',{'className':_0xef5ba9(0x241),'children':'⚠️'}),_0x4a7dcc[_0xef5ba9(0x33e)]('p',{'className':_0xef5ba9(0x213),'children':_0x206183(_0x540e57)})]})})]}),_0x4a7dcc['jsx'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x318),'children':_0x4a7dcc[_0xef5ba9(0x1f7)]('div',{'className':_0xef5ba9(0x2d5),'children':[_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-space-y-2','children':[_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x1f8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'children':'🔑'}),'\x20',_0x299f6a['t'](_0xef5ba9(0x2d7)),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x1e4),'children':'*'}),_0xa7f6d6&&_0x4a7dcc[_0xef5ba9(0x33e)]('a',{'className':_0xef5ba9(0x2db),'title':_0x299f6a['t'](_0xef5ba9(0x24e)),'role':_0xef5ba9(0x29d),'onClick':()=>_0x5987a5(!0x0),'children':_0x4a7dcc[_0xef5ba9(0x33e)](_0x585361,{})})]}),_0x4a7dcc[_0xef5ba9(0x33e)](_0x4b24c4[_0xef5ba9(0x2b8)],{'type':'text','placeholder':_0x299f6a['t'](_0xef5ba9(0x309)),'value':_0x481281,'disabled':_0x27a5c8,'autoComplete':_0xef5ba9(0x2e3),'onChange':_0x4cf9c3}),_0x4a7dcc['jsx']('p',{'className':_0xef5ba9(0x28e),'children':_0x299f6a['t'](_0xef5ba9(0x200))})]}),_0xa7f6d6&&_0x2802c8&&_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x4a7dcc[_0xef5ba9(0x33e)]('a',{'className':_0xef5ba9(0x2ed),'role':_0xef5ba9(0x29d),'onClick':()=>_0x5987a5(!0x1),'children':_0x4a7dcc[_0xef5ba9(0x33e)](_0x29d120,{'className':_0xef5ba9(0x1c0)})}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x277),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1c2),'children':_0x4a7dcc['jsx'](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x28b),'children':'🚀'})}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2b7),'children':[_0x4a7dcc[_0xef5ba9(0x33e)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x299f6a['t'](_0xef5ba9(0x24e))}),_0x4a7dcc[_0xef5ba9(0x33e)]('p',{'className':_0xef5ba9(0x325),'children':_0x299f6a['t']('mcpConfig.apiApplyInfo.description')}),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x320),'children':_0x3997a9&&_0x4a7dcc[_0xef5ba9(0x1f7)]('a',{'className':_0xef5ba9(0x1f0),'href':_0x459ed3,'target':'_blank','rel':_0xef5ba9(0x31f),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'children':'🤖'}),_0x299f6a['t'](_0xef5ba9(0x29e)),_0x4a7dcc[_0xef5ba9(0x33e)]('span',{'className':'univer-text-gray-400','children':'↗'})]})}),_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x26f),'children':['✨','\x20',_0x299f6a['t'](_0xef5ba9(0x310))]})]})]})]}),_0x5a2fdb['showDeveloperTools']&&_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x4a7dcc['jsxs']('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'children':'🔗'}),'\x20',_0x299f6a['t']('mcpConfig.connectionInfo')]}),_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1da),'children':[_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x27c),'children':[_0x4a7dcc[_0xef5ba9(0x33e)]('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x299f6a['t']('mcpConfig.configInstructions')}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-space-y-2','children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x24f),'children':_0x299f6a['t'](_0xef5ba9(0x23c))}),_0x4a7dcc[_0xef5ba9(0x1f7)]('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x253),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'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'}),_0x299f6a['t'](_0xef5ba9(0x2bb))]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x253),'children':[_0x4a7dcc['jsx'](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x24a),'children':'2'}),_0x299f6a['t'](_0xef5ba9(0x280))]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x24a),'children':'3'}),_0x299f6a['t']('mcpConfig.configStep3')]})]})]})]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':'univer-space-y-2','children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0xef5ba9(0x321)}),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x4a7dcc[_0xef5ba9(0x33e)]('pre',{'className':_0xef5ba9(0x244),'children':JSON[_0xef5ba9(0x1ce)]({'mcpServers':{'univer':{'url':_0xef5ba9(0x2c5)+(_0x436d60||_0xef5ba9(0x307)),'type':_0xef5ba9(0x31e),'headers':{'Authorization':_0xef5ba9(0x1c6)+(_0x481281||_0xef5ba9(0x322))}}}},null,0x2)})})]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x27c),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x24f),'children':_0x299f6a['t'](_0xef5ba9(0x1f1))}),_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x235),'children':[_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1d5),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1b5)}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2d8),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xef5ba9(0x1d8)}),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x299f6a['t']('mcpConfig.sessionIdDescription')})]})]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1d5),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1b5)}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2d8),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x267),'children':_0xef5ba9(0x30d)}),_0x4a7dcc['jsx'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x28e),'children':_0x299f6a['t'](_0xef5ba9(0x33c))})]})]})]})]})]})]}),_0x4a7dcc['jsx'](_0x4b24c4[_0xef5ba9(0x2d4)],{'onClick':_0xd37d19,'disabled':!_0x188b8c||_0x27a5c8,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x27a5c8?_0x4a7dcc['jsxs'](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x253),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'children':'⟲'}),_0x299f6a['t'](_0xef5ba9(0x2ae))]}):_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x253),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0x31dc32,{}),_0x299f6a['t'](_0xef5ba9(0x1ea))]})}),_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2b1),'children':_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x2aa),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x1be),{'className':_0xef5ba9(0x23d),'children':'💡'}),_0x4a7dcc['jsxs'](_0xef5ba9(0x28d),{'className':_0xef5ba9(0x1b9),'children':[_0x4a7dcc[_0xef5ba9(0x33e)](_0xef5ba9(0x28d),{'className':'univer-font-medium','children':_0xef5ba9(0x1f2)}),_0x4a7dcc[_0xef5ba9(0x1f7)]('div',{'children':['•',_0x299f6a['t'](_0xef5ba9(0x1ba))]}),_0x4a7dcc[_0xef5ba9(0x1f7)](_0xef5ba9(0x28d),{'children':['•',_0x299f6a['t'](_0xef5ba9(0x229))]})]})]})})]})})]});}const _0x284dd3=_0x14c7a4(0x2a4),_0x430cf5={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x38515c=Object[_0x14c7a4(0x32f)],_0x2446ee=(_0x891329,_0x38b66d,_0x721b50,_0x4137ad)=>{for(var _0x33a0a0=_0x4137ad>0x1?void 0x0:_0x4137ad?_0x38515c(_0x38b66d,_0x721b50):_0x38b66d,_0x1a75fc=_0x891329['length']-0x1,_0x458c22;_0x1a75fc>=0x0;_0x1a75fc--)(_0x458c22=_0x891329[_0x1a75fc])&&(_0x33a0a0=_0x458c22(_0x33a0a0)||_0x33a0a0);return _0x33a0a0;},_0x296c44=(_0x3e8cc8,_0x146176)=>(_0x3c4bd5,_0x2a7aa6)=>_0x146176(_0x3c4bd5,_0x2a7aa6,_0x3e8cc8);const _0x4b708d=_0x14c7a4(0x1ee),_0x349c8b=_0x14c7a4(0x2be);_0x50df75[_0x14c7a4(0x2b4)]=class extends _0x4eec7b[_0x14c7a4(0x31b)]{constructor(_0x5e1191,_0x8cc591,_0x115789,_0x37f8a0,_0x457275,_0x2cd635,_0x5202d1,_0x6f506,_0x2ca523,_0x17bf4a){const _0x292540=_0x14c7a4;super(),_0x1e2ad9(this,_0x292540(0x246),new _0x384b81[(_0x292540(0x334))](!0x1)),_0x1e2ad9(this,'_mcpCoreConfig$',new _0x384b81['BehaviorSubject']({})),_0x1e2ad9(this,_0x292540(0x1c1),new _0x384b81[(_0x292540(0x334))]({})),_0x1e2ad9(this,_0x292540(0x24d),new _0x384b81[(_0x292540(0x334))]('')),_0x1e2ad9(this,_0x292540(0x2e0),async _0x47ae10=>{const _0x1e2131=_0x292540;var _0x50a0f3,_0x562d65;this[_0x1e2131(0x246)]['next'](!0x0);try{const _0x2a62e9=await this['_validateConfig'](_0x47ae10);if(!_0x2a62e9[_0x1e2131(0x248)]){this[_0x1e2131(0x330)][_0x1e2131(0x2fb)]({'type':_0x4b24c4[_0x1e2131(0x243)][_0x1e2131(0x251)],'content':_0x2a62e9[_0x1e2131(0x1e6)]||this[_0x1e2131(0x2f8)]['t'](_0x1e2131(0x2e7))});return;}_0x47ae10[_0x1e2131(0x2dc)]?await this[_0x1e2131(0x1fa)][_0x1e2131(0x1b4)](_0x4b708d,_0x47ae10[_0x1e2131(0x2dc)][_0x1e2131(0x327)]()):await this[_0x1e2131(0x1fa)]['removeItem'](_0x4b708d),this[_0x1e2131(0x24d)][_0x1e2131(0x2bd)](((_0x50a0f3=_0x47ae10[_0x1e2131(0x2dc)])==null?void 0x0:_0x50a0f3[_0x1e2131(0x327)]())||''),this[_0x1e2131(0x290)][_0x1e2131(0x30f)]({'Authorization':_0x1e2131(0x1c6)+((_0x562d65=_0x47ae10[_0x1e2131(0x2dc)])==null?void 0x0:_0x562d65[_0x1e2131(0x327)]())}),this[_0x1e2131(0x330)][_0x1e2131(0x2fb)]({'type':_0x4b24c4[_0x1e2131(0x243)][_0x1e2131(0x317)],'content':this[_0x1e2131(0x2f8)]['t'](_0x1e2131(0x1f9))}),setTimeout(()=>{const _0x2ee132=_0x1e2131;this['_dialogService'][_0x2ee132(0x224)](_0x349c8b);},0x320);}catch(_0x5b3d56){this[_0x1e2131(0x1cb)][_0x1e2131(0x1ff)](_0x1e2131(0x1c8),_0x5b3d56),this[_0x1e2131(0x330)][_0x1e2131(0x2fb)]({'type':_0x4b24c4[_0x1e2131(0x243)][_0x1e2131(0x251)],'content':this['_localeService']['t'](_0x1e2131(0x27a))});}finally{this[_0x1e2131(0x246)]['next'](!0x1);}}),(this['_injector']=_0x5e1191,this[_0x292540(0x326)]=_0x8cc591,this['_configService']=_0x115789,this[_0x292540(0x1fa)]=_0x37f8a0,this[_0x292540(0x2a7)]=_0x457275,this['_messageService']=_0x2cd635,this[_0x292540(0x232)]=_0x5202d1,this[_0x292540(0x2f8)]=_0x6f506,this['_logService']=_0x2ca523,this['_mcpConnectionController']=_0x17bf4a,this['_initConfigSync'](),this[_0x292540(0x337)](),this[_0x292540(0x2a3)]());}[_0x14c7a4(0x1ca)](){const _0x513ae3=_0x14c7a4,_0x47d6e8=this[_0x513ae3(0x264)][_0x513ae3(0x25e)](_0x284dd3);_0x47d6e8!=null&&_0x47d6e8['showDeveloperTools']&&this[_0x513ae3(0x2a7)][_0x513ae3(0x2d2)]({'id':_0x349c8b,'title':{'title':this[_0x513ae3(0x2f8)]['t'](_0x513ae3(0x208))},'children':{'label':_0x513ae3(0x32e)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x4d64c7=_0x513ae3;this[_0x4d64c7(0x2a7)]['close'](_0x349c8b);}});}[_0x14c7a4(0x2ca)](){const _0x183d02=_0x14c7a4;return this[_0x183d02(0x2ef)][_0x183d02(0x2a6)];}[_0x14c7a4(0x2a3)](){const _0x335cd9=_0x14c7a4;this[_0x335cd9(0x2da)](this[_0x335cd9(0x232)]['register']('MCPConfigPanel',this[_0x335cd9(0x28a)]()));}[_0x14c7a4(0x28a)](){const _0xf5bfa3=_0x14c7a4;return _0x3c9fd4[_0xf5bfa3(0x28f)](()=>{const _0x6c374c=_0xf5bfa3;var _0x45019a,_0x5898f4,_0x1febde;return _0x4a7dcc['jsx'](_0x52a822,{'config':this[_0x6c374c(0x1c1)][_0x6c374c(0x2a6)],'mcpCoreConfig':this['_mcpCoreConfig$']['value'],'currentApiKey$':this[_0x6c374c(0x24d)],'onSave':this[_0x6c374c(0x2e0)],'loading':this[_0x6c374c(0x246)][_0x6c374c(0x2a6)],'connectionStatus$':(_0x45019a=this[_0x6c374c(0x290)])==null?void 0x0:_0x45019a['connectionStatus$'],'connectionError$':(_0x5898f4=this['_mcpConnectionController'])==null?void 0x0:_0x5898f4['connectionError$'],'currentSessionId$':(_0x1febde=this[_0x6c374c(0x290)])==null?void 0x0:_0x1febde['sessionId$']});},this[_0xf5bfa3(0x1bb)]);}['_initConfigSync'](){const _0x487f7f=_0x14c7a4;this[_0x487f7f(0x2da)](this[_0x487f7f(0x264)][_0x487f7f(0x2de)](_0x59ea95[_0x487f7f(0x2f1)])['subscribe'](_0x5e57a7=>{const _0x3b116c=_0x487f7f;this['_mcpCoreConfig$'][_0x3b116c(0x2bd)](_0x5e57a7||{});}));const _0x29bd13=this['_configService'][_0x487f7f(0x25e)](_0x59ea95['MCP_PLUGIN_CONFIG_KEY']);this[_0x487f7f(0x2ef)][_0x487f7f(0x2bd)](_0x29bd13||{}),this[_0x487f7f(0x2da)](this[_0x487f7f(0x264)][_0x487f7f(0x2de)](_0x284dd3)[_0x487f7f(0x26c)](_0x4dbb0d=>{const _0x331bc1=_0x487f7f;this[_0x331bc1(0x1c1)]['next'](_0x4dbb0d||{});}));const _0x33e933=this[_0x487f7f(0x264)][_0x487f7f(0x25e)](_0x284dd3);this[_0x487f7f(0x1c1)]['next'](_0x33e933||{});}async[_0x14c7a4(0x337)](){const _0x1b9d78=_0x14c7a4,_0x4839a8=this[_0x1b9d78(0x264)][_0x1b9d78(0x25e)](_0x284dd3);if(!(_0x4839a8!=null&&_0x4839a8[_0x1b9d78(0x32d)]))return;const _0x161698=await this[_0x1b9d78(0x1fa)]['getItem'](_0x4b708d);_0x161698&&(this[_0x1b9d78(0x290)]['__setCustomHeaders']({'Authorization':_0x1b9d78(0x1c6)+_0x161698}),this[_0x1b9d78(0x24d)][_0x1b9d78(0x2bd)](_0x161698));}async[_0x14c7a4(0x29b)](_0x25f6a4){const _0x17f899=_0x14c7a4;if(!_0x25f6a4['apiKey']||_0x25f6a4[_0x17f899(0x2dc)]['trim']()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x17f899(0x2f8)]['t'](_0x17f899(0x20a))};if(_0x25f6a4['apiKey']['trim']()[_0x17f899(0x1fe)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x17f899(0x2f8)]['t'](_0x17f899(0x2a5))};try{const _0x3fcec6=await this[_0x17f899(0x1bb)][_0x17f899(0x283)](_0x59ea95[_0x17f899(0x306)])['validateApiKey'](_0x25f6a4[_0x17f899(0x2dc)][_0x17f899(0x327)]());return _0x3fcec6['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3fcec6[_0x17f899(0x1ff)]||this['_localeService']['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x2c7556){return console[_0x17f899(0x217)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x2c7556),{'isValid':!0x0};}}},_0x50df75[_0x14c7a4(0x2b4)]=_0x2446ee([_0x296c44(0x0,_0x4eec7b[_0x14c7a4(0x259)](_0x4eec7b[_0x14c7a4(0x314)])),_0x296c44(0x1,_0x3c9fd4[_0x14c7a4(0x2a2)]),_0x296c44(0x2,_0x4eec7b[_0x14c7a4(0x203)]),_0x296c44(0x3,_0x4eec7b['ILocalStorageService']),_0x296c44(0x4,_0x3c9fd4[_0x14c7a4(0x22b)]),_0x296c44(0x5,_0x3c9fd4[_0x14c7a4(0x21d)]),_0x296c44(0x6,_0x4eec7b['Inject'](_0x3c9fd4[_0x14c7a4(0x2c7)])),_0x296c44(0x7,_0x4eec7b[_0x14c7a4(0x259)](_0x4eec7b['LocaleService'])),_0x296c44(0x8,_0x4eec7b[_0x14c7a4(0x2af)]),_0x296c44(0x9,_0x4eec7b[_0x14c7a4(0x259)](_0x59ea95['MCPConnectionController']))],_0x50df75[_0x14c7a4(0x2b4)]);const _0x1f010e={'id':_0x14c7a4(0x2df),'type':_0x4eec7b[_0x14c7a4(0x250)][_0x14c7a4(0x297)],'handler':async(_0x1f68cc,_0x4a2132)=>(_0x1f68cc['get'](_0x50df75[_0x14c7a4(0x2b4)])[_0x14c7a4(0x1ca)](),!0x0)};function _0x43b619(_0x4468b6,_0x23b36c){const _0x32118a=_0x14c7a4;switch(_0x4468b6){case _0x59ea95['MCPConnectionStatus']['DISCONNECTED']:return'mcpStatus.disconnected';case _0x59ea95['MCPConnectionStatus'][_0x32118a(0x281)]:return _0x32118a(0x2ce);case _0x59ea95[_0x32118a(0x233)]['CONNECTED']:return _0x32118a(0x2f3);case _0x59ea95['MCPConnectionStatus']['FAILED']:switch(_0x23b36c){case _0x59ea95[_0x32118a(0x202)][_0x32118a(0x236)]:return'mcpStatus.unauthorized';case _0x59ea95[_0x32118a(0x202)][_0x32118a(0x237)]:return _0x32118a(0x22e);case _0x59ea95['MCPConnectionError'][_0x32118a(0x2d1)]:return'mcpStatus.networkError';case _0x59ea95[_0x32118a(0x202)][_0x32118a(0x1ed)]:return'mcpStatus.maxRetriesExceeded';default:return _0x32118a(0x289);}case _0x59ea95['MCPConnectionStatus'][_0x32118a(0x2e2)]:return _0x32118a(0x2e1);default:return _0x32118a(0x272);}}function _0x3605ac(_0xdf4942,_0x527a4d,_0x29cf42,_0x51343c=!0x0){const _0x2d6c6d=_0x14c7a4,_0x59924b=_0x43b619(_0xdf4942,_0x527a4d),_0xb4f25e=_0x29cf42['t'](_0x59924b);return _0x51343c?_0xdf4942===_0x59ea95[_0x2d6c6d(0x233)][_0x2d6c6d(0x219)]&&_0x527a4d===_0x59ea95[_0x2d6c6d(0x202)]['UNAUTHORIZED']?_0xb4f25e+_0x2d6c6d(0x255)+_0x29cf42['t'](_0x2d6c6d(0x2fe)):_0xdf4942===_0x59ea95[_0x2d6c6d(0x233)][_0x2d6c6d(0x262)]?''+_0xb4f25e:_0xdf4942===_0x59ea95[_0x2d6c6d(0x233)][_0x2d6c6d(0x219)]||_0xdf4942===_0x59ea95['MCPConnectionStatus'][_0x2d6c6d(0x221)]?_0xb4f25e+_0x2d6c6d(0x255)+_0x29cf42['t']('mcpStatus.clickToConnect'):_0xb4f25e:_0xb4f25e;}function _0x14e64b(_0x4789dd){const _0x236df1=_0x14c7a4;switch(_0x4789dd){case _0x59ea95['MCPConnectionStatus']['CONNECTED']:return _0x236df1(0x2c4);case _0x59ea95[_0x236df1(0x233)][_0x236df1(0x281)]:case _0x59ea95[_0x236df1(0x233)]['RETRYING']:return _0x236df1(0x26a);case _0x59ea95[_0x236df1(0x233)][_0x236df1(0x221)]:case _0x59ea95[_0x236df1(0x233)][_0x236df1(0x219)]:return _0x236df1(0x1e4);default:return'univer-text-gray-500';}}function _0x36241c(_0x33361f){const _0x2cc306=_0x14c7a4,{status$:_0x5fd334,error$:_0x149ce4,onConfigure:_0x4d754d,showClickable:_0x1a85e1=!0x0}=_0x33361f,_0x1e2d1f=_0x3c9fd4[_0x2cc306(0x271)](_0x5fd334,_0x59ea95['MCPConnectionStatus'][_0x2cc306(0x219)]),_0x49955e=_0x3c9fd4[_0x2cc306(0x271)](_0x149ce4,_0x59ea95[_0x2cc306(0x202)][_0x2cc306(0x2a9)]),_0x3e3bef=_0x3c9fd4[_0x2cc306(0x2cd)](_0x4eec7b['LocaleService']),_0x21eebb=_0x1e2d1f===_0x59ea95[_0x2cc306(0x233)][_0x2cc306(0x262)];_0x1e2d1f===_0x59ea95[_0x2cc306(0x233)]['CONNECTING']||_0x59ea95[_0x2cc306(0x233)][_0x2cc306(0x2e2)];const _0x2ec174=_0x3e3bef['t'](_0x43b619(_0x1e2d1f,_0x49955e)),_0x51dbbc=_0x3605ac(_0x1e2d1f,_0x49955e,_0x3e3bef,_0x1a85e1),_0x4b57ab=_0x14e64b(_0x1e2d1f),_0x1c0052=_0x21eebb?_0x4a7dcc[_0x2cc306(0x33e)](_0x136870,{}):_0x4a7dcc['jsx'](_0x363dd5,{}),_0x2355b2=_0x3fb8df[_0x2cc306(0x27e)](()=>{_0x1a85e1&&_0x4d754d&&_0x4d754d();},[_0x1a85e1,_0x4d754d]);function _0x217aaa(){const _0x594e33=_0x2cc306;return _0x4a7dcc[_0x594e33(0x1f7)](_0x594e33(0x28d),{'className':_0x4b24c4[_0x594e33(0x1d2)]('univer-flex\x20univer-items-center',_0x1a85e1&&_0x4d754d&&_0x594e33(0x336)),'role':_0x594e33(0x29d),'onClick':_0x1a85e1&&_0x4d754d?_0x2355b2:void 0x0,'children':[_0x4a7dcc[_0x594e33(0x33e)](_0x594e33(0x28d),{'className':_0x4b24c4[_0x594e33(0x1d2)](_0x594e33(0x311),_0x4b57ab),'children':_0x1c0052}),_0x4a7dcc[_0x594e33(0x33e)](_0x594e33(0x28d),{'className':_0x594e33(0x2ea),'children':_0x2ec174})]});}return _0x4a7dcc[_0x2cc306(0x33e)](_0x4b24c4[_0x2cc306(0x268)],{'title':_0x51dbbc,'placement':_0x2cc306(0x2a0),'children':_0x217aaa()});}var _0x4dfe16=Object[_0x14c7a4(0x32f)],_0x1e0df7=(_0x3fae88,_0x5b4070,_0x626005,_0x14fd7e)=>{const _0x31eed2=_0x14c7a4;for(var _0x5942e7=_0x14fd7e>0x1?void 0x0:_0x14fd7e?_0x4dfe16(_0x5b4070,_0x626005):_0x5b4070,_0x38f10e=_0x3fae88[_0x31eed2(0x1fe)]-0x1,_0x2c2327;_0x38f10e>=0x0;_0x38f10e--)(_0x2c2327=_0x3fae88[_0x38f10e])&&(_0x5942e7=_0x2c2327(_0x5942e7)||_0x5942e7);return _0x5942e7;},_0x5c689e=(_0x17ca81,_0x293182)=>(_0xd94227,_0x566e6a)=>_0x293182(_0xd94227,_0x566e6a,_0x17ca81);_0x50df75['MCPConnectionUIController']=class extends _0x4eec7b[_0x14c7a4(0x31b)]{constructor(_0x32df7c,_0x597dd,_0x590300,_0xb0a08e){const _0x18c229=_0x14c7a4;super(),this[_0x18c229(0x1bb)]=_0x32df7c,this[_0x18c229(0x2b2)]=_0x597dd,this[_0x18c229(0x326)]=_0x590300,this[_0x18c229(0x264)]=_0xb0a08e,this['_initAutoConnect'](),this[_0x18c229(0x1cc)]();}[_0x14c7a4(0x291)](){const _0x291c7b=_0x14c7a4,_0x434f7f=this[_0x291c7b(0x264)][_0x291c7b(0x25e)](_0x284dd3);_0x434f7f!=null&&_0x434f7f['showDeveloperTools']&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x14c7a4(0x1cc)](){const _0x50259b=_0x14c7a4,_0x283377=this[_0x50259b(0x264)]['getConfig'](_0x284dd3);(_0x283377==null?void 0x0:_0x283377[_0x50259b(0x22a)])!==!0x1&&this[_0x50259b(0x2da)](this['_uiPartsService'][_0x50259b(0x245)](_0x3c9fd4[_0x50259b(0x2a8)][_0x50259b(0x2cf)],()=>{const _0x45f931=_0x50259b;var _0x17bf9e;return _0x3c9fd4[_0x45f931(0x28f)](_0x18e1bc({'status$':this['_connectionController'][_0x45f931(0x1b7)],'error$':this[_0x45f931(0x2b2)]['connectionError$'],'onConfigure':()=>this[_0x45f931(0x324)](),'showClickable':(_0x17bf9e=_0x283377==null?void 0x0:_0x283377['showDeveloperTools'])!=null?_0x17bf9e:!0x1}),this[_0x45f931(0x1bb)]);}));}[_0x14c7a4(0x324)](){const _0x5c1ce0=_0x14c7a4;this[_0x5c1ce0(0x1bb)][_0x5c1ce0(0x283)](_0x50df75[_0x5c1ce0(0x2b4)])[_0x5c1ce0(0x1ca)]();}},_0x50df75[_0x14c7a4(0x340)]=_0x1e0df7([_0x5c689e(0x0,_0x4eec7b[_0x14c7a4(0x259)](_0x4eec7b[_0x14c7a4(0x314)])),_0x5c689e(0x1,_0x4eec7b[_0x14c7a4(0x259)](_0x59ea95[_0x14c7a4(0x306)])),_0x5c689e(0x2,_0x3c9fd4[_0x14c7a4(0x2a2)]),_0x5c689e(0x3,_0x4eec7b[_0x14c7a4(0x203)])],_0x50df75['MCPConnectionUIController']);function _0x18e1bc(_0x230251){const {status$:_0x40aaed,error$:_0x196581,onConfigure:_0x22311c,showClickable:_0x3fca09}=_0x230251;return function(){const _0x3d85b7=_0x1a7a;return _0x4a7dcc[_0x3d85b7(0x33e)](_0x36241c,{'status$':_0x40aaed,'error$':_0x196581,'onConfigure':_0x22311c,'showClickable':_0x3fca09});};}function _0x5792bd(_0x4e2ee2){const _0x2fa8f5=_0x14c7a4;return{'id':_0x1f010e['id'],'type':_0x3c9fd4[_0x2fa8f5(0x27d)]['BUTTON'],'icon':'MenuIcon','title':_0x2fa8f5(0x208),'tooltip':'mcpConfig.title'};}const _0x134756={[_0x3c9fd4[_0x14c7a4(0x258)][_0x14c7a4(0x1bc)]]:{[_0x1f010e['id']]:{'order':0xa,'menuItemFactory':_0x5792bd}}};var _0x1baacc=Object[_0x14c7a4(0x32f)],_0x2e97ed=(_0x1d08ee,_0xf274ef,_0x16b0ba,_0x8b27c4)=>{const _0x2ba5be=_0x14c7a4;for(var _0xa9dbb9=_0x8b27c4>0x1?void 0x0:_0x8b27c4?_0x1baacc(_0xf274ef,_0x16b0ba):_0xf274ef,_0x40a9b4=_0x1d08ee[_0x2ba5be(0x1fe)]-0x1,_0x5886c8;_0x40a9b4>=0x0;_0x40a9b4--)(_0x5886c8=_0x1d08ee[_0x40a9b4])&&(_0xa9dbb9=_0x5886c8(_0xa9dbb9)||_0xa9dbb9);return _0xa9dbb9;},_0x2cc469=(_0x3c1830,_0x4b491c)=>(_0x1bf45a,_0x3d4f7c)=>_0x4b491c(_0x1bf45a,_0x3d4f7c,_0x3c1830);_0x50df75[_0x14c7a4(0x21a)]=class extends _0x4eec7b['Disposable']{constructor(_0x572548,_0x11e092){const _0x3de157=_0x14c7a4;super(),this[_0x3de157(0x214)]=_0x572548,this[_0x3de157(0x30e)]=_0x11e092,this[_0x3de157(0x205)](),this['_initializeMenus']();}[_0x14c7a4(0x205)](){const _0x22aa60=_0x14c7a4;[_0x1f010e][_0x22aa60(0x31d)](_0x5dd866=>{const _0x1bb600=_0x22aa60;this[_0x1bb600(0x2da)](this['_commandService'][_0x1bb600(0x274)](_0x5dd866));});}[_0x14c7a4(0x1d6)](){this['_menuManagerService']['mergeMenu'](_0x134756);}},_0x50df75['MCPUIMenuController']=_0x2e97ed([_0x2cc469(0x0,_0x4eec7b[_0x14c7a4(0x302)]),_0x2cc469(0x1,_0x3c9fd4[_0x14c7a4(0x2b6)])],_0x50df75[_0x14c7a4(0x21a)]);const _0x3ab36b={'mcpStatus':{'disconnected':_0x14c7a4(0x2ba),'connecting':'MCP\x20Connecting...','connected':_0x14c7a4(0x1e7),'failed':_0x14c7a4(0x247),'retrying':_0x14c7a4(0x329),'unknown':_0x14c7a4(0x332),'unauthorized':_0x14c7a4(0x2c0),'sessionOccupied':_0x14c7a4(0x29f),'networkError':_0x14c7a4(0x1cf),'maxRetriesExceeded':_0x14c7a4(0x30a),'clickToConnect':_0x14c7a4(0x1b6),'clickToConfigure':_0x14c7a4(0x2eb)},'mcpConfig':{'title':_0x14c7a4(0x321),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x14c7a4(0x210),'apiKeyPlaceholder':_0x14c7a4(0x270),'apiKeyHint':_0x14c7a4(0x316),'enableAuth':_0x14c7a4(0x25c),'enableAuthHint':_0x14c7a4(0x1bf),'connectionInfo':_0x14c7a4(0x308),'mcpClientConfig':_0x14c7a4(0x308),'configInstructions':_0x14c7a4(0x2d0),'configStepTitle':_0x14c7a4(0x2ec),'configStep1':_0x14c7a4(0x313),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','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':_0x14c7a4(0x1f5),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x14c7a4(0x2c1),'save':_0x14c7a4(0x206),'saving':_0x14c7a4(0x1eb),'note1':_0x14c7a4(0x2d6),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x14c7a4(0x32c),'configError':_0x14c7a4(0x1e9),'apiApplyInfo':{'title':_0x14c7a4(0x2ff),'description':_0x14c7a4(0x231),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x14c7a4(0x26e)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x14c7a4(0x2f2),'invalidConfig':_0x14c7a4(0x301),'invalidApiKey':_0x14c7a4(0x27b)},'connectionStatus':{'disconnected':_0x14c7a4(0x22f),'connecting':_0x14c7a4(0x32a),'connected':_0x14c7a4(0x1dc),'failed':_0x14c7a4(0x328),'retrying':_0x14c7a4(0x29c)},'connectionError':{'unauthorized':_0x14c7a4(0x33b),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x14c7a4(0x2c3),'maxRetriesExceeded':_0x14c7a4(0x2f9)}}},_0x9e8b4d={'mcpStatus':{'disconnected':_0x14c7a4(0x26b),'connecting':_0x14c7a4(0x2bc),'connected':_0x14c7a4(0x228),'failed':'MCP\x20连接失败','retrying':_0x14c7a4(0x25d),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x14c7a4(0x1c9),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x14c7a4(0x211),'clickToConnect':_0x14c7a4(0x2cb),'clickToConfigure':_0x14c7a4(0x1f6)},'mcpConfig':{'title':_0x14c7a4(0x2d3),'description':_0x14c7a4(0x265),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x14c7a4(0x284),'apiKeyHint':_0x14c7a4(0x282),'enableAuth':_0x14c7a4(0x1fb),'enableAuthHint':_0x14c7a4(0x286),'connectionInfo':_0x14c7a4(0x230),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x14c7a4(0x1fc),'configStep1':_0x14c7a4(0x33d),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x14c7a4(0x226),'authorizationDescription':_0x14c7a4(0x1d7),'configParameters':'配置参数:','maxRetries':'最大重试次数','save':'保存配置','saving':_0x14c7a4(0x252),'note1':_0x14c7a4(0x285),'note2':_0x14c7a4(0x23f),'configSaved':_0x14c7a4(0x2ee),'configError':_0x14c7a4(0x238),'apiApplyInfo':{'title':_0x14c7a4(0x294),'description':_0x14c7a4(0x331),'univerAiLabel':_0x14c7a4(0x338),'getStarted':_0x14c7a4(0x1bd)},'validation':{'apiKeyRequired':_0x14c7a4(0x30b),'apiKeyTooShort':_0x14c7a4(0x212),'invalidConfig':_0x14c7a4(0x278),'invalidApiKey':_0x14c7a4(0x269)},'connectionStatus':{'disconnected':_0x14c7a4(0x22d),'connecting':_0x14c7a4(0x32b),'connected':_0x14c7a4(0x292),'failed':_0x14c7a4(0x1f4),'retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x14c7a4(0x293),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x14c7a4(0x220)}}};var _0x865a5e=Object[_0x14c7a4(0x207)],_0x2cbbcc=Object[_0x14c7a4(0x32f)],_0x59fcb4=(_0x33b431,_0x4173a2,_0x2653c6)=>_0x4173a2 in _0x33b431?_0x865a5e(_0x33b431,_0x4173a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2653c6}):_0x33b431[_0x4173a2]=_0x2653c6,_0xaee567=(_0x25a585,_0x578cc3,_0x1b8025,_0x4a2ee9)=>{for(var _0x46111a=_0x4a2ee9>0x1?void 0x0:_0x4a2ee9?_0x2cbbcc(_0x578cc3,_0x1b8025):_0x578cc3,_0x66cd92=_0x25a585['length']-0x1,_0x57ecd8;_0x66cd92>=0x0;_0x66cd92--)(_0x57ecd8=_0x25a585[_0x66cd92])&&(_0x46111a=_0x57ecd8(_0x46111a)||_0x46111a);return _0x46111a;},_0x22842d=(_0x3c3e69,_0x1a4a53)=>(_0x2a0a53,_0x298de6)=>_0x1a4a53(_0x2a0a53,_0x298de6,_0x3c3e69),_0x2b42f6=(_0x242ce8,_0x4b76ac,_0x42a6b5)=>_0x59fcb4(_0x242ce8,_0x4b76ac+'',_0x42a6b5);_0x50df75[_0x14c7a4(0x1e3)]=class extends _0x4eec7b[_0x14c7a4(0x1ec)]{constructor(_0x3d24cc=_0x430cf5,_0x5ca3e2,_0x59a4f5,_0x4c6c85,_0x465b3b,_0x49a1ae){const _0x4a6049=_0x14c7a4;super(),this[_0x4a6049(0x33a)]=_0x3d24cc,this[_0x4a6049(0x1bb)]=_0x5ca3e2,this[_0x4a6049(0x264)]=_0x59a4f5,this[_0x4a6049(0x326)]=_0x4c6c85,this['_localStorageService']=_0x465b3b,this[_0x4a6049(0x2f8)]=_0x49a1ae;const {..._0x22ed91}=_0x4eec7b[_0x4a6049(0x315)]({},_0x430cf5,this[_0x4a6049(0x33a)]);this[_0x4a6049(0x264)][_0x4a6049(0x2f4)](_0x284dd3,_0x22ed91);}async[_0x14c7a4(0x2f5)](){const _0x5b3916=_0x14c7a4,_0x59e2bc=[[_0x50df75[_0x5b3916(0x340)]],[_0x50df75[_0x5b3916(0x2b4)]],[_0x50df75[_0x5b3916(0x21a)]]];this[_0x5b3916(0x1bb)]['has'](_0x6309e8[_0x5b3916(0x27f)])||_0x59e2bc[_0x5b3916(0x288)]([_0x6309e8['ISocketService'],{'useClass':_0x6309e8['WebSocketService']}]),_0x59e2bc[_0x5b3916(0x31d)](_0x3f9fda=>this[_0x5b3916(0x1bb)][_0x5b3916(0x227)](_0x3f9fda)),this[_0x5b3916(0x1bb)][_0x5b3916(0x283)](_0x50df75[_0x5b3916(0x340)]),this[_0x5b3916(0x1bb)][_0x5b3916(0x283)](_0x50df75['MCPConfigUIController']),this[_0x5b3916(0x1bb)][_0x5b3916(0x283)](_0x50df75[_0x5b3916(0x21a)]);}},_0x2b42f6(_0x50df75[_0x14c7a4(0x1e3)],'pluginName',_0x14c7a4(0x1d4)),_0x50df75[_0x14c7a4(0x1e3)]=_0xaee567([_0x4eec7b[_0x14c7a4(0x234)](_0x59ea95[_0x14c7a4(0x209)]),_0x22842d(0x1,_0x4eec7b['Inject'](_0x4eec7b[_0x14c7a4(0x314)])),_0x22842d(0x2,_0x4eec7b[_0x14c7a4(0x203)]),_0x22842d(0x3,_0x3c9fd4[_0x14c7a4(0x2a2)]),_0x22842d(0x4,_0x4eec7b[_0x14c7a4(0x20e)]),_0x22842d(0x5,_0x4eec7b[_0x14c7a4(0x259)](_0x4eec7b[_0x14c7a4(0x2b3)]))],_0x50df75['UniverMCPUIPlugin']),_0x50df75[_0x14c7a4(0x32e)]=_0x52a822,_0x50df75[_0x14c7a4(0x2f7)]=_0x36241c,_0x50df75[_0x14c7a4(0x1cd)]=_0x1f010e,_0x50df75['enUS']=_0x3ab36b,_0x50df75[_0x14c7a4(0x25f)]=_0x9e8b4d,Object['defineProperty'](_0x50df75,Symbol['toStringTag'],{'value':_0x14c7a4(0x2f0)});}));
|
|
1
|
+
function _0x22e2(){const _0x3c2548=['RETRYING','_connectionController','http','mcp-ui.config','univer-bg-green-500','univer-space-y-2','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20超出最大重试次数','mcpConfig.save','mcpStatus.connecting','mcpConfig.configStep2','0\x200\x2016\x2016','off-line-icon','MCPConnectionStatus','function','几秒钟内获取您的\x20API\x20密钥','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','useDependency','pluginName','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','API\x20密钥','_dialogService','length','clipPath','univer-flex\x20univer-items-start\x20univer-gap-3','showStatus','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.configInstructions','您的\x20API\x20密钥将在此浏览器中本地存储','MCPConnectionController','Tooltip','MCPConnectionUIController','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpConfig.authorizationDescription','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','xlink:href','_blank','@univerjs/network','getCurrentConfig','univer-text-xs\x20univer-text-gray-500','pre','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','配置\x20MCP\x20使用\x20AI\x20操作电子表格','defineProperty','MCPConfigUIController','Enable\x20authentication\x20for\x20secure\x20connections','IMenuManagerService','showConfigPanel','@univerjs-pro/mcp','_initAutoConnect','univer-text-yellow-500','on-line-icon_clip0_910_349','_apiKey$','_injector','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','url(#$1','mcpConfig.connectionInfo','setItem','sessionId$','exports','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','path','mcpStatus.unauthorized','subscribeConfigValue$','mcpConfig.configStepTitle','univer.plus','连接失败','带有\x20Bearer\x20前缀的\x20API\x20密钥。','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connection\x20Failed','MCP\x20状态未知','Copy\x20the\x20JSON\x20configuration\x20below','replace','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','607329tdNnfY','BehaviorSubject','React','_commandService','label','univer-space-y-5','attrs','mcpConfig.configSaved','MCP:\x20Session\x20ID\x20Occupied','会话ID','Get\x20your\x20API\x20key\x20in\x20seconds','univer-flex\x20univer-items-center\x20univer-gap-2','children','CloseIcon','MCP_PLUGIN_CONFIG_KEY','_registerComponent','启用身份验证以获得安全连接','_messageService','What\x20is\x20API\x20Key?','https://mcp.univer.ai/mcp/?univer_session_id=','OnLineIcon','Plugin','https://console.univer.ai','univer-space-y-3','value','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','mcpStatus.clickToConnect','MCPConnectionError','Univer\x20AI\x20控制台','warn','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-bg-red-500','MenuIcon','API\x20key\x20with\x20Bearer\x20prefix.','Max\x20Retries','evenodd','Saving...','\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','IUIPartsService','4460PFGmZT','Configuration\x20Notes:','univer-text-white','div','createElement','univerjs-icon\x20univerjs-icon-','Enable\x20Authentication','Retrying...','Injector','includes','MessageType','_initializeMenus','Failed\x20to\x20save\x20configuration','配置保存失败','isValid','Configuration\x20Steps:','72mzsTgn','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.connectionError.networkError','2402320GnreTp','univer-font-medium','Configuration\x20saved\x20successfully','Save\x20Configuration','MCP\x20Unknown\x20Status','130eOJilp','Configuration\x20Parameters:','univer-text-gray-400','连接中...','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','svg','open','DISCONNECTED','ISocketService','COMMAND','_uiPartsService','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','Connected','UniverMCPUIPlugin','jsxs','CONNECTED','请输入您的\x20API\x20密钥','forEach','API\x20密钥无效,请检查密钥是否正确','MCP\x20Configuration','\x20-\x20','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-flex\x20univer-items-start\x20univer-gap-2','Session\x20ID','register','770265jCWLPx','__setCustomHeaders','mcpServerUrl','trim','mcpConfig.connectionError.sessionOccupied','displayName','push','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_validateConfig','mcpStatus.sessionOccupied','assign','IConfigService','mcpConfig.connectionStatus.failed','button','connectInjector','mcp-ui.command.openConfigPanel','Error','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_localeService','@univerjs/ui','点击配置\x20MCP','API\x20key\x20is\x20required','text','<SESSION_ID>','MCPStatusDisplay','未连接','mcpConfig.sessionIdDescription','univer-text-green-500','univer-bg-blue-500','currentColor','8HoCWPW','已连接','MCP\x20Client\x20Configuration','univer-flex\x20univer-items-center\x20univer-gap-3','mcpStatus.failed','MCP\x20Retrying...','RibbonStartGroup','NETWORK_ERROR','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','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','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','getOwnPropertyDescriptor','object','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','translate(.97)','UniverDesign','mcpConfig.connectionStatus.retrying','forwardRef','useState','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','removeItem','univer-text-gray-500','配置保存成功','NONE','enableAutoConnect','MCP\x20配置','LocaleService','Authorization:','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','MCP\x20重连中...','useObservable','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','jsx','启用身份验证','UniverCore','mcpConfig.connectionStatus.connected','univer.ai','UniverProMcpUi','_initializeCommands','_handleConfigSave','error','https://console.univer.plus','OpenMCPConfigPanelCommand','mcpConfig.apiApplyInfo.getStarted','useCallback','show','mcpConfig.note2','univer-min-w-0\x20univer-flex-1','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','univer-flex-1','431090OhWmUs','mcpStatus.maxRetriesExceeded','UNAUTHORIZED','merge','API\x20密钥长度至少需要\x2010\x20位','entries','white','univer-mr-2\x20univer-flex\x20univer-text-xl','span','2071425GYmRMD','mcpConfig.apiApplyInfo.title','Bearer\x20','292vkaAGr','univer-shrink-0\x20univer-text-red-500','mcpConfig.configStep1','http://www.w3.org/2000/svg','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mask','Click\x20to\x20connect\x20MCP','SESSION_ID_OCCUPIED','Inject','off-line-icon_clip0_910_343','connectionStatus$','showDeveloperTools','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','idSuffix','univer-text-sm\x20univer-font-medium','1em','_initStatusComponent','M0\x200H16V16H0z','get','univer-text-blue-600','univer-space-y-4','bottom','mergeMenu','check-mark-icon','@univerjs/core','Click\x20to\x20configure\x20MCP','connectionError$','amd','_config','Success','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpStatus.retrying','_config$','mcpConfig.apiApplyInfo.univerAiLabel','mcpConfig.description','univer-bg-gray-500','_mcpConnectionController','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','CheckMarkIcon','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-text-red-500','colorChannel1','MCPConfigPanel','_loading$','什么是\x20API\x20密钥?','clsx','rxjs','on-line-icon','API\x20Key','mcpConfig.connectionStatus.connecting','Button','validateApiKey','round','Disposable','mcp.apiKey','IMessageService','MenuItemType','保存配置','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.apiKey','univer-text-xs\x20univer-text-gray-600','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','CONNECTING','BUTTON','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','6ixAgWm','MCP\x20客户端配置','_createConfigPanelComponent','_loadStoredApiKey','MCP:\x20网络错误','_menuManagerService','current','_handleConfigure','mcpConfig.connectionError.maxRetriesExceeded','registerCommand','none','subscribe','MCP:\x20会话\x20ID\x20已被占用','next','Enter\x20your\x20API\x20key','mcpConfig.apiKeyPlaceholder','registerComponent','_localStorageService','mcpConfig.validation.apiKeyTooShort','会话\x20ID\x20已被占用,请稍后再试','tag','WebSocketService','配置步骤:','API\x20密钥不能为空','复制以下\x20JSON\x20配置','MCP:\x20未授权','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','配置更改将立即生效','将配置添加到您的\x20MCP\x20客户端设置文件中','将以下配置添加到您的\x20MCP\x20客户端设置中:','defs','_configService','fill','univer-flex\x20univer-items-center','ILogService','noopener\x20noreferrer','disposeWithMe','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','help-icon','mcpStatus.networkError','ILocalStorageService','string','mcpConfig.connectionError.unauthorized','url(#on-line-icon_clip0_910_349)','mcpStatus.disconnected','@univerjs/design','1906121boGAqo','use','getConfig','MCP:\x20Network\x20Error','FAILED','MCPUIMenuController','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','url(#off-line-icon_clip0_910_343)','0\x200\x2017\x2016','MCP\x20已连接','getItem','Input','OffLineIcon','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','_mcpCoreConfig$','MAX_RETRIES_EXCEEDED','map','_componentManager','apiKey','超出最大重试次数,请稍后再试','Connection\x20Failed','mcpConfig.title','MCP\x20Disconnected','off'];_0x22e2=function(){return _0x3c2548;};return _0x22e2();}function _0x402a(_0x3204d2,_0x5f5306){_0x3204d2=_0x3204d2-0xdf;const _0x22e256=_0x22e2();let _0x402af1=_0x22e256[_0x3204d2];return _0x402af1;}(function(_0x4d7adb,_0x379176){const _0x1ee0f5=_0x402a,_0x1418db=_0x4d7adb();while(!![]){try{const _0x34a5e3=-parseInt(_0x1ee0f5(0x102))/0x1*(parseInt(_0x1ee0f5(0x1fb))/0x2)+-parseInt(_0x1ee0f5(0xff))/0x3+parseInt(_0x1ee0f5(0x20e))/0x4+parseInt(_0x1ee0f5(0x22d))/0x5*(-parseInt(_0x1ee0f5(0x143))/0x6)+-parseInt(_0x1ee0f5(0x171))/0x7*(-parseInt(_0x1ee0f5(0x24c))/0x8)+-parseInt(_0x1ee0f5(0x1d3))/0x9*(-parseInt(_0x1ee0f5(0x213))/0xa)+parseInt(_0x1ee0f5(0xf6))/0xb*(parseInt(_0x1ee0f5(0x20b))/0xc);if(_0x34a5e3===_0x379176)break;else _0x1418db['push'](_0x1418db['shift']());}catch(_0x3475d0){_0x1418db['push'](_0x1418db['shift']());}}}(_0x22e2,0x77874),function(_0x12a786,_0x317b8a){const _0x59e112=_0x402a;typeof exports==_0x59e112(0x259)&&typeof module<'u'?_0x317b8a(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==_0x59e112(0x197)&&define[_0x59e112(0x11d)]?define([_0x59e112(0x1c4),_0x59e112(0x11a),'react/jsx-runtime',_0x59e112(0x1b9),_0x59e112(0x170),_0x59e112(0x241),_0x59e112(0x130),'react',_0x59e112(0x1ae)],_0x317b8a):(_0x12a786=typeof globalThis<'u'?globalThis:_0x12a786||self,_0x317b8a(_0x12a786[_0x59e112(0xe9)]={},_0x12a786[_0x59e112(0xe6)],_0x12a786[_0x59e112(0x1d5)],_0x12a786['UniverProMcp'],_0x12a786[_0x59e112(0x25c)],_0x12a786['UniverUi'],_0x12a786[_0x59e112(0x130)],_0x12a786['React'],_0x12a786['UniverNetwork']));}(this,function(_0x5d6fc9,_0x1daa64,_0x5bdce3,_0x1a6d3e,_0x82cd4a,_0x48a061,_0x21c023,_0x1198b2,_0x5d4447){'use strict';const _0x441f5c=_0x402a;var _0x14a6f5=Object['defineProperty'],_0x1fccad=(_0x2e981c,_0x7ec81c,_0x11f836)=>_0x7ec81c in _0x2e981c?_0x14a6f5(_0x2e981c,_0x7ec81c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11f836}):_0x2e981c[_0x7ec81c]=_0x11f836,_0x3b4ca8=(_0xdf10f6,_0x2c4fd1,_0x1ac6d9)=>_0x1fccad(_0xdf10f6,typeof _0x2c4fd1!='symbol'?_0x2c4fd1+'':_0x2c4fd1,_0x1ac6d9);function _0x2420be({ref:_0x10a2e6,..._0x57f6e2}){const _0x26c572=_0x402a,{icon:_0xdc57f9,id:_0x2dcee0,className:_0x80dc4c,extend:_0x4ba8aa,..._0x42f391}=_0x57f6e2,_0x130435=(_0x26c572(0x200)+_0x2dcee0+'\x20'+(_0x80dc4c||''))[_0x26c572(0x230)](),_0x313bf3=_0x1198b2['useRef']('_'+_0x91f9a0());return _0x419afa(_0xdc57f9,''+_0x2dcee0,{'defIds':_0xdc57f9['defIds'],'idSuffix':_0x313bf3[_0x26c572(0x149)]},{'ref':_0x10a2e6,'className':_0x130435,..._0x42f391},_0x4ba8aa);}function _0x419afa(_0x9dd58,_0x49896f,_0x47fabe,_0x4544ce,_0x228356){const _0x126efa=_0x402a;return _0x1198b2[_0x126efa(0x1ff)](_0x9dd58['tag'],{'key':_0x49896f,..._0x4990bf(_0x9dd58,_0x47fabe,_0x228356),..._0x4544ce},(_0x143b9d(_0x9dd58,_0x47fabe)[_0x126efa(0x1df)]||[])[_0x126efa(0x181)]((_0x83446b,_0x226902)=>_0x419afa(_0x83446b,_0x49896f+'-'+_0x9dd58[_0x126efa(0x157)]+'-'+_0x226902,_0x47fabe,void 0x0,_0x228356)));}function _0x4990bf(_0x5f03bd,_0x182380,_0x314a09){const _0x5a7d92=_0x402a,_0x52b70b={..._0x5f03bd[_0x5a7d92(0x1d9)]};_0x314a09!=null&&_0x314a09[_0x5a7d92(0x12b)]&&_0x52b70b[_0x5a7d92(0x163)]==='colorChannel1'&&(_0x52b70b[_0x5a7d92(0x163)]=_0x314a09['colorChannel1']),_0x5f03bd['tag']===_0x5a7d92(0x107)&&_0x52b70b['id']&&(_0x52b70b['id']=_0x52b70b['id']+_0x182380[_0x5a7d92(0x10f)]),Object[_0x5a7d92(0xfb)](_0x52b70b)['forEach'](([_0x216276,_0x17b9c])=>{const _0x4ce426=_0x5a7d92;_0x216276===_0x4ce426(0x107)&&typeof _0x17b9c==_0x4ce426(0x16c)&&(_0x52b70b[_0x216276]=_0x17b9c[_0x4ce426(0x1d1)](/url\(#(.*)\)/,_0x4ce426(0x1c0)+_0x182380[_0x4ce426(0x10f)]+')'));});const {defIds:_0x14f6db}=_0x182380;return!_0x14f6db||_0x14f6db[_0x5a7d92(0x19f)]===0x0||(_0x5f03bd[_0x5a7d92(0x157)]===_0x5a7d92(0x172)&&_0x52b70b['xlink:href']&&(_0x52b70b[_0x5a7d92(0x1ac)]=_0x52b70b[_0x5a7d92(0x1ac)]+_0x182380[_0x5a7d92(0x10f)]),Object['entries'](_0x52b70b)['forEach'](([_0x527ea7,_0x34ba01])=>{const _0x9d9fd6=_0x5a7d92;typeof _0x34ba01==_0x9d9fd6(0x16c)&&(_0x52b70b[_0x527ea7]=_0x34ba01[_0x9d9fd6(0x1d1)](/url\(#(.*)\)/,_0x9d9fd6(0x1c0)+_0x182380['idSuffix']+')'));})),_0x52b70b;}function _0x143b9d(_0xb72f4b,_0x438f52){const _0x4846f6=_0x402a;var _0xcb288d;const {defIds:_0x50176a}=_0x438f52;return!_0x50176a||_0x50176a[_0x4846f6(0x19f)]===0x0?_0xb72f4b:_0xb72f4b['tag']===_0x4846f6(0x161)&&((_0xcb288d=_0xb72f4b[_0x4846f6(0x1df)])!=null&&_0xcb288d[_0x4846f6(0x19f)])?{..._0xb72f4b,'children':_0xb72f4b['children']['map'](_0x265912=>typeof _0x265912[_0x4846f6(0x1d9)]['id']==_0x4846f6(0x16c)&&_0x50176a&&_0x50176a['includes'](_0x265912[_0x4846f6(0x1d9)]['id'])?{..._0x265912,'attrs':{..._0x265912[_0x4846f6(0x1d9)],'id':_0x265912[_0x4846f6(0x1d9)]['id']+_0x438f52[_0x4846f6(0x10f)]}}:_0x265912)}:_0xb72f4b;}function _0x91f9a0(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x2420be[_0x441f5c(0x232)]='UniverIcon';const _0x545651={'tag':_0x441f5c(0x218),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x441f5c(0x14d),'viewBox':_0x441f5c(0x194),'width':_0x441f5c(0x111),'height':_0x441f5c(0x111)},'children':[{'tag':_0x441f5c(0x1c6),'attrs':{'fill':'currentColor','d':_0x441f5c(0x256),'fillRule':_0x441f5c(0x1f7),'clipRule':_0x441f5c(0x1f7)}}]},_0x114626=_0x1198b2[_0x441f5c(0x25e)](function(_0x4a257d,_0x552943){const _0x463755=_0x441f5c;return _0x1198b2['createElement'](_0x2420be,Object[_0x463755(0x238)]({},_0x4a257d,{'id':_0x463755(0x119),'ref':_0x552943,'icon':_0x545651}));});_0x114626['displayName']=_0x441f5c(0x128);const _0x10715b={'tag':_0x441f5c(0x218),'attrs':{'xmlns':_0x441f5c(0x105),'fill':_0x441f5c(0x14d),'viewBox':_0x441f5c(0x194),'width':_0x441f5c(0x111),'height':_0x441f5c(0x111)},'children':[{'tag':_0x441f5c(0x1c6),'attrs':{'fill':_0x441f5c(0x24b),'d':_0x441f5c(0x1bf)}}]},_0x422ecb=_0x1198b2[_0x441f5c(0x25e)](function(_0x564e4c,_0x2e2daf){return _0x1198b2['createElement'](_0x2420be,Object['assign']({},_0x564e4c,{'id':'close-icon','ref':_0x2e2daf,'icon':_0x10715b}));});_0x422ecb[_0x441f5c(0x232)]=_0x441f5c(0x1e0);const _0x4f8b99={'tag':_0x441f5c(0x218),'attrs':{'xmlns':_0x441f5c(0x105),'fill':_0x441f5c(0x14d),'viewBox':_0x441f5c(0x194),'width':_0x441f5c(0x111),'height':_0x441f5c(0x111)},'children':[{'tag':_0x441f5c(0x1c6),'attrs':{'fill':_0x441f5c(0x24b),'d':_0x441f5c(0x127)}},{'tag':'path','attrs':{'fill':_0x441f5c(0x24b),'d':_0x441f5c(0xe0)}},{'tag':_0x441f5c(0x1c6),'attrs':{'fill':_0x441f5c(0x24b),'d':_0x441f5c(0x1ab),'fillRule':_0x441f5c(0x1f7),'clipRule':_0x441f5c(0x1f7)}}]},_0x26a1fc=_0x1198b2[_0x441f5c(0x25e)](function(_0x50c156,_0x32e040){const _0x5d553c=_0x441f5c;return _0x1198b2[_0x5d553c(0x1ff)](_0x2420be,Object[_0x5d553c(0x238)]({},_0x50c156,{'id':_0x5d553c(0x169),'ref':_0x32e040,'icon':_0x4f8b99}));});_0x26a1fc[_0x441f5c(0x232)]='HelpIcon';const _0x4ec8fc={'tag':_0x441f5c(0x218),'attrs':{'xmlns':_0x441f5c(0x105),'fill':'none','viewBox':_0x441f5c(0x194),'width':_0x441f5c(0x111),'height':_0x441f5c(0x111)},'children':[{'tag':'g','attrs':{'clipPath':_0x441f5c(0x178)},'children':[{'tag':_0x441f5c(0x1c6),'attrs':{'stroke':_0x441f5c(0x24b),'d':_0x441f5c(0xf4),'strokeLinecap':_0x441f5c(0x136),'strokeLinejoin':_0x441f5c(0x136),'strokeWidth':1.2}}]},{'tag':_0x441f5c(0x161),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x441f5c(0x1c6),'attrs':{'fill':_0x441f5c(0xfc),'d':_0x441f5c(0x113)}}]}]}],'defIds':[_0x441f5c(0x10b)]},_0x2f2cd3=_0x1198b2['forwardRef'](function(_0x2c3cc3,_0x215274){const _0x5b8bd=_0x441f5c;return _0x1198b2[_0x5b8bd(0x1ff)](_0x2420be,Object[_0x5b8bd(0x238)]({},_0x2c3cc3,{'id':_0x5b8bd(0x195),'ref':_0x215274,'icon':_0x4ec8fc}));});_0x2f2cd3[_0x441f5c(0x232)]=_0x441f5c(0x17d);const _0x5ebca6={'tag':'svg','attrs':{'xmlns':_0x441f5c(0x105),'fill':_0x441f5c(0x14d),'viewBox':_0x441f5c(0x179),'width':_0x441f5c(0x111),'height':_0x441f5c(0x111)},'children':[{'tag':'g','attrs':{'clipPath':_0x441f5c(0x16e)},'children':[{'tag':_0x441f5c(0x1c6),'attrs':{'stroke':_0x441f5c(0x24b),'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':'round','strokeLinejoin':_0x441f5c(0x136),'strokeWidth':1.2}}]},{'tag':_0x441f5c(0x161),'attrs':{},'children':[{'tag':_0x441f5c(0x1a0),'attrs':{'id':_0x441f5c(0x1bc)},'children':[{'tag':'path','attrs':{'fill':_0x441f5c(0xfc),'d':_0x441f5c(0x113),'transform':_0x441f5c(0x25b)}}]}]}],'defIds':[_0x441f5c(0x1bc)]},_0x5ba228=_0x1198b2[_0x441f5c(0x25e)](function(_0x351c52,_0x3a10cb){const _0x1d0cea=_0x441f5c;return _0x1198b2[_0x1d0cea(0x1ff)](_0x2420be,Object['assign']({},_0x351c52,{'id':_0x1d0cea(0x131),'ref':_0x3a10cb,'icon':_0x5ebca6}));});_0x5ba228[_0x441f5c(0x232)]=_0x441f5c(0x1e7);function _0x1fcdf1(_0x438c99){const _0x10403e=_0x441f5c;var _0x2e44b3,_0x4dd135;const {mcpCoreConfig:_0x4cc833,onSave:_0xc1677b,loading:_0x1a7029=!0x1,config:_0x294e60,connectionStatus$:_0x1e46c4,connectionError$:_0x9b3700,currentApiKey$:_0xe29aa7,currentSessionId$:_0xca94a0}=_0x438c99,_0x3f70e1=_0x48a061[_0x10403e(0x19a)](_0x1daa64[_0x10403e(0x267)]),_0x5d3656=_0x48a061[_0x10403e(0xe2)](_0x1e46c4,_0x1a6d3e[_0x10403e(0x196)]['DISCONNECTED']),_0x5e7d9a=_0x48a061[_0x10403e(0xe2)](_0x9b3700,_0x1a6d3e[_0x10403e(0x1ee)][_0x10403e(0x264)]),_0x5a1129=_0x48a061[_0x10403e(0xe2)](_0xca94a0,''),_0x15ff64=_0x48a061[_0x10403e(0xe2)](_0xe29aa7,''),[_0x3d87fe,_0x5dafda]=_0x1198b2['useState'](_0x15ff64||''),_0x472647=!0x0,_0x229b9b=_0x294e60[_0x10403e(0x10d)]&&_0x4cc833['mcpServerUrl']&&(_0x4cc833[_0x10403e(0x22f)][_0x10403e(0x204)]('univer.plus')||_0x4cc833[_0x10403e(0x22f)][_0x10403e(0x204)](_0x10403e(0xe8))),_0x571a7b=(_0x2e44b3=_0x4cc833[_0x10403e(0x22f)])==null?void 0x0:_0x2e44b3['includes'](_0x10403e(0x1ca)),_0x36eaf5=(_0x4dd135=_0x4cc833[_0x10403e(0x22f)])==null?void 0x0:_0x4dd135['includes'](_0x10403e(0xe8)),_0x64854b=_0x571a7b?_0x10403e(0xed):_0x10403e(0x1e9),_0x252c6f=_0x294e60['showDeveloperTools']&&(_0x571a7b||_0x36eaf5),[_0x5df817,_0x382cfd]=_0x1198b2[_0x10403e(0x25f)](!_0x3d87fe['trim']()),_0x82051e=(_0xc8035b,_0x403bd5)=>{const _0x227a04=_0x10403e;if(_0x403bd5===_0x1a6d3e[_0x227a04(0x1ee)][_0x227a04(0xf8)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0xc8035b){case _0x1a6d3e[_0x227a04(0x196)][_0x227a04(0x222)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x1a6d3e[_0x227a04(0x196)]['CONNECTING']:case _0x1a6d3e[_0x227a04(0x196)][_0x227a04(0x189)]:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x1a6d3e[_0x227a04(0x196)][_0x227a04(0x175)]:return _0x227a04(0x23f);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x266b5b=(_0x5d26e4,_0x747fd)=>{const _0x1643c3=_0x10403e;if(_0x747fd===_0x1a6d3e[_0x1643c3(0x1ee)][_0x1643c3(0xf8)])return _0x1643c3(0x1f3);switch(_0x5d26e4){case _0x1a6d3e[_0x1643c3(0x196)]['CONNECTED']:return _0x1643c3(0x18d);case _0x1a6d3e[_0x1643c3(0x196)]['CONNECTING']:case _0x1a6d3e[_0x1643c3(0x196)]['RETRYING']:return _0x1643c3(0x24a);case _0x1a6d3e['MCPConnectionStatus'][_0x1643c3(0x175)]:return _0x1643c3(0x1f3);default:return _0x1643c3(0x125);}},_0x3dcb33=_0x2ebc0e=>{const _0x4e86f6=_0x10403e;switch(_0x2ebc0e){case _0x1a6d3e[_0x4e86f6(0x196)][_0x4e86f6(0x222)]:return _0x3f70e1['t'](_0x4e86f6(0xe7));case _0x1a6d3e[_0x4e86f6(0x196)]['CONNECTING']:return _0x3f70e1['t'](_0x4e86f6(0x133));case _0x1a6d3e[_0x4e86f6(0x196)][_0x4e86f6(0x175)]:return _0x3f70e1['t'](_0x4e86f6(0x23a));case _0x1a6d3e['MCPConnectionStatus'][_0x4e86f6(0x189)]:return _0x3f70e1['t'](_0x4e86f6(0x25d));default:return _0x3f70e1['t']('mcpConfig.connectionStatus.disconnected');}},_0x39c93c=_0x3c8104=>{const _0x2bd22b=_0x10403e;switch(_0x3c8104){case _0x1a6d3e[_0x2bd22b(0x1ee)][_0x2bd22b(0xf8)]:return _0x3f70e1['t'](_0x2bd22b(0x16d));case _0x1a6d3e[_0x2bd22b(0x1ee)][_0x2bd22b(0x109)]:return _0x3f70e1['t'](_0x2bd22b(0x231));case _0x1a6d3e['MCPConnectionError']['NETWORK_ERROR']:return _0x3f70e1['t'](_0x2bd22b(0x20d));case _0x1a6d3e['MCPConnectionError'][_0x2bd22b(0x180)]:return _0x3f70e1['t'](_0x2bd22b(0x14b));default:return'';}},_0x198be2=_0x1198b2[_0x10403e(0xf0)](()=>{const _0x343469=_0x10403e,_0x176300={..._0x4cc833,'apiKey':_0x3d87fe[_0x343469(0x230)](),'enableAuth':_0x472647};_0xc1677b(_0x176300);},[_0x4cc833,_0x3d87fe,_0x472647,_0xc1677b]),_0x17e4c1=_0x3d87fe[_0x10403e(0x230)]()['length']>0x0;return _0x5bdce3[_0x10403e(0x221)]('div',{'className':_0x10403e(0x13c),'children':[_0x5bdce3[_0x10403e(0xe4)]('div',{'className':_0x10403e(0x235),'children':_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'className':_0x10403e(0x24f),'children':[_0x5bdce3['jsx']('div',{'className':_0x10403e(0x1a3),'children':_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0xfe),{'className':_0x10403e(0x1fd),'children':'⚙'})}),_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0x1fe),{'children':_0x5bdce3['jsx']('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x3f70e1['t'](_0x10403e(0x124))})})]})}),_0x5bdce3['jsxs'](_0x10403e(0x1fe),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0x1fe),{'className':_0x82cd4a[_0x10403e(0x12f)](_0x10403e(0x255),_0x82051e(_0x5d3656,_0x5e7d9a)),'children':_0x5bdce3['jsxs'](_0x10403e(0x1fe),{'className':_0x10403e(0x1de),'children':[_0x5bdce3[_0x10403e(0xe4)]('div',{'className':_0x82cd4a['clsx']('univer-size-2\x20univer-rounded-full',_0x266b5b(_0x5d3656,_0x5e7d9a))}),_0x5bdce3[_0x10403e(0xe4)]('span',{'className':_0x10403e(0x110),'children':_0x3dcb33(_0x5d3656)})]})}),_0x5e7d9a!==_0x1a6d3e[_0x10403e(0x1ee)][_0x10403e(0x264)]&&(_0x5d3656===_0x1a6d3e[_0x10403e(0x196)][_0x10403e(0x175)]||_0x5e7d9a===_0x1a6d3e[_0x10403e(0x1ee)][_0x10403e(0xf8)])&&_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0x1fe),{'className':_0x10403e(0x228),'children':_0x5bdce3['jsxs'](_0x10403e(0x1fe),{'className':_0x10403e(0x22a),'children':[_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0xfe),{'className':_0x10403e(0x103),'children':'⚠️'}),_0x5bdce3[_0x10403e(0xe4)]('p',{'className':_0x10403e(0x129),'children':_0x39c93c(_0x5e7d9a)})]})})]}),_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0x1fe),{'className':_0x10403e(0x234),'children':_0x5bdce3['jsxs'](_0x10403e(0x1fe),{'className':_0x10403e(0x1d8),'children':[_0x5bdce3[_0x10403e(0x221)]('div',{'className':_0x10403e(0x18e),'children':[_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1d7),{'className':_0x10403e(0x106),'children':[_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0xfe),{'children':'🔑'}),'\x20',_0x3f70e1['t'](_0x10403e(0x13d)),_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0xfe),{'className':'univer-text-red-500','children':'*'}),_0x229b9b&&_0x5bdce3[_0x10403e(0xe4)]('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':_0x3f70e1['t'](_0x10403e(0x100)),'role':_0x10403e(0x23b),'onClick':()=>_0x382cfd(!0x0),'children':_0x5bdce3[_0x10403e(0xe4)](_0x26a1fc,{})})]}),_0x5bdce3[_0x10403e(0xe4)](_0x82cd4a[_0x10403e(0x17c)],{'type':_0x10403e(0x244),'placeholder':_0x3f70e1['t'](_0x10403e(0x152)),'value':_0x3d87fe,'disabled':_0x1a7029,'autoComplete':_0x10403e(0x188),'onChange':_0x5dafda}),_0x5bdce3['jsx']('p',{'className':_0x10403e(0x1b0),'children':_0x3f70e1['t']('mcpConfig.apiKeyHint')})]}),_0x229b9b&&_0x5df817&&_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'className':_0x10403e(0x25a),'children':[_0x5bdce3[_0x10403e(0xe4)]('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':_0x10403e(0x23b),'onClick':()=>_0x382cfd(!0x1),'children':_0x5bdce3[_0x10403e(0xe4)](_0x422ecb,{'className':'univer-size-4'})}),_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0x1fe),{'className':_0x10403e(0x1c5),'children':_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0xfe),{'className':_0x10403e(0x115),'children':'🚀'})}),_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'className':_0x10403e(0xf5),'children':[_0x5bdce3['jsx']('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x3f70e1['t'](_0x10403e(0x100))}),_0x5bdce3['jsx']('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x3f70e1['t']('mcpConfig.apiApplyInfo.description')}),_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0x1fe),{'className':_0x10403e(0x254),'children':_0x252c6f&&_0x5bdce3[_0x10403e(0x221)]('a',{'className':_0x10403e(0x17e),'href':_0x64854b,'target':_0x10403e(0x1ad),'rel':_0x10403e(0x166),'children':[_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0xfe),{'children':'🤖'}),_0x3f70e1['t'](_0x10403e(0x123)),_0x5bdce3[_0x10403e(0xe4)]('span',{'className':_0x10403e(0x215),'children':'↗'})]})}),_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'className':_0x10403e(0x1f2),'children':['✨','\x20',_0x3f70e1['t'](_0x10403e(0xef))]})]})]})]}),_0x294e60[_0x10403e(0x10d)]&&_0x5bdce3['jsxs'](_0x10403e(0x1fe),{'className':_0x10403e(0x1b2),'children':[_0x5bdce3[_0x10403e(0x221)]('h4',{'className':_0x10403e(0x168),'children':[_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0xfe),{'children':'🔗'}),'\x20',_0x3f70e1['t'](_0x10403e(0x1c1))]}),_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'className':_0x10403e(0x116),'children':[_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'className':_0x10403e(0x1ea),'children':[_0x5bdce3[_0x10403e(0xe4)]('p',{'className':_0x10403e(0x13e),'children':_0x3f70e1['t'](_0x10403e(0x1a4))}),_0x5bdce3['jsxs'](_0x10403e(0x1fe),{'className':_0x10403e(0x18e),'children':[_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0x1fe),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3f70e1['t'](_0x10403e(0x1c9))}),_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'className':_0x10403e(0x19c),'children':[_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x5bdce3['jsx']('span',{'className':_0x10403e(0x199),'children':'1'}),_0x3f70e1['t'](_0x10403e(0x104))]}),_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'className':_0x10403e(0x1de),'children':[_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0xfe),{'className':_0x10403e(0x199),'children':'2'}),_0x3f70e1['t'](_0x10403e(0x193))]}),_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'className':_0x10403e(0x1de),'children':[_0x5bdce3['jsx'](_0x10403e(0xfe),{'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'}),_0x3f70e1['t']('mcpConfig.configStep3')]})]})]})]}),_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'className':_0x10403e(0x18e),'children':[_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0x1fe),{'className':_0x10403e(0x260),'children':_0x10403e(0x226)}),_0x5bdce3['jsx'](_0x10403e(0x1fe),{'className':_0x10403e(0x1f1),'children':_0x5bdce3['jsx'](_0x10403e(0x1b1),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x10403e(0x1e6)+(_0x5a1129||_0x10403e(0x245)),'type':_0x10403e(0x18b),'headers':{'Authorization':_0x10403e(0x101)+(_0x3d87fe||'<API_KEY>')}}}},null,0x2)})})]}),_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'className':_0x10403e(0x1ea),'children':[_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0x1fe),{'className':_0x10403e(0x260),'children':_0x3f70e1['t']('mcpConfig.configParameters')}),_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'className':_0x10403e(0x18e),'children':[_0x5bdce3['jsxs']('div',{'className':_0x10403e(0x1a1),'children':[_0x5bdce3['jsx'](_0x10403e(0x1fe),{'className':_0x10403e(0x217)}),_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'className':_0x10403e(0xf3),'children':[_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0x1fe),{'className':_0x10403e(0x177),'children':'univer_session_id:'}),_0x5bdce3['jsx'](_0x10403e(0x1fe),{'className':_0x10403e(0x1b0),'children':_0x3f70e1['t'](_0x10403e(0x248))})]})]}),_0x5bdce3['jsxs'](_0x10403e(0x1fe),{'className':_0x10403e(0x1a1),'children':[_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0x1fe),{'className':_0x10403e(0x217)}),_0x5bdce3['jsxs'](_0x10403e(0x1fe),{'className':_0x10403e(0xf3),'children':[_0x5bdce3['jsx'](_0x10403e(0x1fe),{'className':_0x10403e(0x177),'children':_0x10403e(0xdf)}),_0x5bdce3[_0x10403e(0xe4)]('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3f70e1['t'](_0x10403e(0x1aa))})]})]})]})]})]})]}),_0x5bdce3[_0x10403e(0xe4)](_0x82cd4a[_0x10403e(0x134)],{'onClick':_0x198be2,'disabled':!_0x17e4c1||_0x1a7029,'className':_0x10403e(0x21e),'children':_0x1a7029?_0x5bdce3['jsxs'](_0x10403e(0xfe),{'className':_0x10403e(0x1de),'children':[_0x5bdce3['jsx']('span',{'children':'⟲'}),_0x3f70e1['t']('mcpConfig.saving')]}):_0x5bdce3[_0x10403e(0x221)](_0x10403e(0xfe),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x5bdce3[_0x10403e(0xe4)](_0x114626,{}),_0x3f70e1['t'](_0x10403e(0x191))]})}),_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0x1fe),{'className':_0x10403e(0x120),'children':_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'className':'univer-flex\x20univer-gap-3','children':[_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0xfe),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'className':_0x10403e(0x1a9),'children':[_0x5bdce3[_0x10403e(0xe4)](_0x10403e(0x1fe),{'className':_0x10403e(0x20f),'children':_0x10403e(0x1fc)}),_0x5bdce3['jsxs'](_0x10403e(0x1fe),{'children':['•',_0x3f70e1['t']('mcpConfig.note1')]}),_0x5bdce3[_0x10403e(0x221)](_0x10403e(0x1fe),{'children':['•',_0x3f70e1['t'](_0x10403e(0xf2))]})]})]})})]})})]});}const _0x1abb5b=_0x441f5c(0x18c),_0x3c269b={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x3021df=Object[_0x441f5c(0x258)],_0x1c5101=(_0xf40858,_0x476737,_0x49b55a,_0x2566c8)=>{const _0x4ebc36=_0x441f5c;for(var _0x29961a=_0x2566c8>0x1?void 0x0:_0x2566c8?_0x3021df(_0x476737,_0x49b55a):_0x476737,_0x3476a0=_0xf40858[_0x4ebc36(0x19f)]-0x1,_0x1dc0b8;_0x3476a0>=0x0;_0x3476a0--)(_0x1dc0b8=_0xf40858[_0x3476a0])&&(_0x29961a=_0x1dc0b8(_0x29961a)||_0x29961a);return _0x29961a;},_0x23d917=(_0x8636fa,_0x557d78)=>(_0x3e328a,_0x4142c8)=>_0x557d78(_0x3e328a,_0x4142c8,_0x8636fa);const _0x5c080d=_0x441f5c(0x138),_0x34bbf7='mcp-config-dialog';_0x5d6fc9['MCPConfigUIController']=class extends _0x1daa64[_0x441f5c(0x137)]{constructor(_0x18da22,_0x212f08,_0x432266,_0x510ef1,_0x594de3,_0x34ff8a,_0x2bec3a,_0x5605ff,_0x1c1e6c,_0x952aaa){const _0x4aa700=_0x441f5c;super(),_0x3b4ca8(this,_0x4aa700(0x12d),new _0x21c023['BehaviorSubject'](!0x1)),_0x3b4ca8(this,_0x4aa700(0x17f),new _0x21c023[(_0x4aa700(0x1d4))]({})),_0x3b4ca8(this,_0x4aa700(0x122),new _0x21c023[(_0x4aa700(0x1d4))]({})),_0x3b4ca8(this,'_apiKey$',new _0x21c023[(_0x4aa700(0x1d4))]('')),_0x3b4ca8(this,_0x4aa700(0xeb),async _0x5bac7c=>{const _0x33bf03=_0x4aa700;var _0x1ba39d,_0x3e945a;this[_0x33bf03(0x12d)]['next'](!0x0);try{const _0x10d088=await this[_0x33bf03(0x236)](_0x5bac7c);if(!_0x10d088[_0x33bf03(0x209)]){this[_0x33bf03(0x1e4)][_0x33bf03(0xf1)]({'type':_0x82cd4a[_0x33bf03(0x205)][_0x33bf03(0x23e)],'content':_0x10d088['errorMessage']||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0x5bac7c[_0x33bf03(0x183)]?await this[_0x33bf03(0x154)][_0x33bf03(0x1c2)](_0x5c080d,_0x5bac7c[_0x33bf03(0x183)][_0x33bf03(0x230)]()):await this[_0x33bf03(0x154)][_0x33bf03(0x261)](_0x5c080d),this['_apiKey$'][_0x33bf03(0x150)](((_0x1ba39d=_0x5bac7c[_0x33bf03(0x183)])==null?void 0x0:_0x1ba39d[_0x33bf03(0x230)]())||''),this[_0x33bf03(0x126)][_0x33bf03(0x22e)]({'Authorization':_0x33bf03(0x101)+((_0x3e945a=_0x5bac7c['apiKey'])==null?void 0x0:_0x3e945a['trim']())}),this[_0x33bf03(0x1e4)][_0x33bf03(0xf1)]({'type':_0x82cd4a['MessageType'][_0x33bf03(0x11f)],'content':this[_0x33bf03(0x240)]['t'](_0x33bf03(0x1da))}),setTimeout(()=>{this['_dialogService']['close'](_0x34bbf7);},0x320);}catch(_0x192afd){this['_logService']['error']('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x192afd),this[_0x33bf03(0x1e4)][_0x33bf03(0xf1)]({'type':_0x82cd4a['MessageType'][_0x33bf03(0x23e)],'content':this[_0x33bf03(0x240)]['t']('mcpConfig.configError')});}finally{this[_0x33bf03(0x12d)][_0x33bf03(0x150)](!0x1);}}),(this[_0x4aa700(0x1be)]=_0x18da22,this['_uiPartsService']=_0x212f08,this[_0x4aa700(0x162)]=_0x432266,this[_0x4aa700(0x154)]=_0x510ef1,this[_0x4aa700(0x19e)]=_0x594de3,this['_messageService']=_0x34ff8a,this[_0x4aa700(0x182)]=_0x2bec3a,this['_localeService']=_0x5605ff,this['_logService']=_0x1c1e6c,this[_0x4aa700(0x126)]=_0x952aaa,this['_initConfigSync'](),this['_loadStoredApiKey'](),this[_0x4aa700(0x1e2)]());}['showConfigPanel'](){const _0x35f89d=_0x441f5c,_0x591dba=this[_0x35f89d(0x162)]['getConfig'](_0x1abb5b);_0x591dba!=null&&_0x591dba[_0x35f89d(0x10d)]&&this[_0x35f89d(0x19e)][_0x35f89d(0x219)]({'id':_0x34bbf7,'title':{'title':this['_localeService']['t'](_0x35f89d(0x186))},'children':{'label':_0x35f89d(0x12c)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x136ef3=_0x35f89d;this[_0x136ef3(0x19e)]['close'](_0x34bbf7);}});}[_0x441f5c(0x1af)](){const _0x4d17da=_0x441f5c;return this[_0x4d17da(0x17f)][_0x4d17da(0x1eb)];}[_0x441f5c(0x1e2)](){const _0x22fc9f=_0x441f5c;this[_0x22fc9f(0x167)](this[_0x22fc9f(0x182)][_0x22fc9f(0x22c)](_0x22fc9f(0x12c),this[_0x22fc9f(0x145)]()));}['_createConfigPanelComponent'](){const _0x5b83e2=_0x441f5c;return _0x48a061[_0x5b83e2(0x23c)](()=>{const _0x1ff643=_0x5b83e2;var _0x27bedb,_0xf5aff9,_0xa3d2da;return _0x5bdce3[_0x1ff643(0xe4)](_0x1fcdf1,{'config':this['_config$'][_0x1ff643(0x1eb)],'mcpCoreConfig':this['_mcpCoreConfig$']['value'],'currentApiKey$':this[_0x1ff643(0x1bd)],'onSave':this[_0x1ff643(0xeb)],'loading':this[_0x1ff643(0x12d)]['value'],'connectionStatus$':(_0x27bedb=this[_0x1ff643(0x126)])==null?void 0x0:_0x27bedb[_0x1ff643(0x10c)],'connectionError$':(_0xf5aff9=this[_0x1ff643(0x126)])==null?void 0x0:_0xf5aff9[_0x1ff643(0x11c)],'currentSessionId$':(_0xa3d2da=this[_0x1ff643(0x126)])==null?void 0x0:_0xa3d2da[_0x1ff643(0x1c3)]});},this[_0x5b83e2(0x1be)]);}['_initConfigSync'](){const _0x504be5=_0x441f5c;this[_0x504be5(0x167)](this['_configService'][_0x504be5(0x1c8)](_0x1a6d3e[_0x504be5(0x1e1)])['subscribe'](_0x37b0ba=>{const _0x20053b=_0x504be5;this['_mcpCoreConfig$'][_0x20053b(0x150)](_0x37b0ba||{});}));const _0x3dea9e=this['_configService'][_0x504be5(0x173)](_0x1a6d3e[_0x504be5(0x1e1)]);this['_mcpCoreConfig$']['next'](_0x3dea9e||{}),this['disposeWithMe'](this['_configService'][_0x504be5(0x1c8)](_0x1abb5b)[_0x504be5(0x14e)](_0x369cb2=>{const _0x24a0a4=_0x504be5;this[_0x24a0a4(0x122)][_0x24a0a4(0x150)](_0x369cb2||{});}));const _0x4cccf8=this[_0x504be5(0x162)][_0x504be5(0x173)](_0x1abb5b);this[_0x504be5(0x122)][_0x504be5(0x150)](_0x4cccf8||{});}async[_0x441f5c(0x146)](){const _0x2af776=_0x441f5c,_0xfe448c=this[_0x2af776(0x162)][_0x2af776(0x173)](_0x1abb5b);if(!(_0xfe448c!=null&&_0xfe448c[_0x2af776(0x10d)]))return;const _0x3593a8=await this[_0x2af776(0x154)][_0x2af776(0x17b)](_0x5c080d);_0x3593a8&&(this[_0x2af776(0x126)][_0x2af776(0x22e)]({'Authorization':_0x2af776(0x101)+_0x3593a8}),this[_0x2af776(0x1bd)][_0x2af776(0x150)](_0x3593a8));}async['_validateConfig'](_0x5d024c){const _0x194a79=_0x441f5c;if(!_0x5d024c[_0x194a79(0x183)]||_0x5d024c[_0x194a79(0x183)]['trim']()[_0x194a79(0x19f)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x5d024c['apiKey'][_0x194a79(0x230)]()[_0x194a79(0x19f)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x194a79(0x240)]['t'](_0x194a79(0x155))};try{const _0x1d6889=await this[_0x194a79(0x1be)]['get'](_0x1a6d3e[_0x194a79(0x1a6)])[_0x194a79(0x135)](_0x5d024c[_0x194a79(0x183)][_0x194a79(0x230)]());return _0x1d6889[_0x194a79(0x209)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1d6889[_0x194a79(0xec)]||this[_0x194a79(0x240)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x25f637){return console[_0x194a79(0x1f0)](_0x194a79(0x229),_0x25f637),{'isValid':!0x0};}}},_0x5d6fc9[_0x441f5c(0x1b5)]=_0x1c5101([_0x23d917(0x0,_0x1daa64['Inject'](_0x1daa64[_0x441f5c(0x203)])),_0x23d917(0x1,_0x48a061['IUIPartsService']),_0x23d917(0x2,_0x1daa64[_0x441f5c(0x239)]),_0x23d917(0x3,_0x1daa64[_0x441f5c(0x16b)]),_0x23d917(0x4,_0x48a061['IDialogService']),_0x23d917(0x5,_0x48a061[_0x441f5c(0x139)]),_0x23d917(0x6,_0x1daa64[_0x441f5c(0x10a)](_0x48a061['ComponentManager'])),_0x23d917(0x7,_0x1daa64[_0x441f5c(0x10a)](_0x1daa64[_0x441f5c(0x267)])),_0x23d917(0x8,_0x1daa64[_0x441f5c(0x165)]),_0x23d917(0x9,_0x1daa64['Inject'](_0x1a6d3e[_0x441f5c(0x1a6)]))],_0x5d6fc9['MCPConfigUIController']);const _0x4bd55c={'id':_0x441f5c(0x23d),'type':_0x1daa64['CommandType'][_0x441f5c(0x21c)],'handler':async(_0x5fdcdb,_0x5ad2ef)=>(_0x5fdcdb[_0x441f5c(0x114)](_0x5d6fc9[_0x441f5c(0x1b5)])[_0x441f5c(0x1b8)](),!0x0)};function _0x2e1385(_0x177156,_0x49b213){const _0x2e95e1=_0x441f5c;switch(_0x177156){case _0x1a6d3e[_0x2e95e1(0x196)][_0x2e95e1(0x21a)]:return _0x2e95e1(0x16f);case _0x1a6d3e['MCPConnectionStatus'][_0x2e95e1(0x140)]:return _0x2e95e1(0x192);case _0x1a6d3e[_0x2e95e1(0x196)][_0x2e95e1(0x222)]:return'mcpStatus.connected';case _0x1a6d3e['MCPConnectionStatus'][_0x2e95e1(0x175)]:switch(_0x49b213){case _0x1a6d3e[_0x2e95e1(0x1ee)][_0x2e95e1(0xf8)]:return _0x2e95e1(0x1c7);case _0x1a6d3e[_0x2e95e1(0x1ee)][_0x2e95e1(0x109)]:return _0x2e95e1(0x237);case _0x1a6d3e[_0x2e95e1(0x1ee)][_0x2e95e1(0x253)]:return _0x2e95e1(0x16a);case _0x1a6d3e['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x2e95e1(0xf7);default:return _0x2e95e1(0x250);}case _0x1a6d3e['MCPConnectionStatus'][_0x2e95e1(0x189)]:return _0x2e95e1(0x121);default:return'mcpStatus.unknown';}}function _0x28f2cb(_0x5c69ef,_0x43adeb,_0x4a7276,_0x23be1c=!0x0){const _0x197623=_0x441f5c,_0x3adc2a=_0x2e1385(_0x5c69ef,_0x43adeb),_0x41a1fd=_0x4a7276['t'](_0x3adc2a);return _0x23be1c?_0x5c69ef===_0x1a6d3e[_0x197623(0x196)][_0x197623(0x21a)]&&_0x43adeb===_0x1a6d3e[_0x197623(0x1ee)][_0x197623(0xf8)]?_0x41a1fd+'\x20-\x20'+_0x4a7276['t']('mcpStatus.clickToConfigure'):_0x5c69ef===_0x1a6d3e[_0x197623(0x196)][_0x197623(0x222)]?''+_0x41a1fd:_0x5c69ef===_0x1a6d3e[_0x197623(0x196)][_0x197623(0x21a)]||_0x5c69ef===_0x1a6d3e[_0x197623(0x196)][_0x197623(0x175)]?_0x41a1fd+_0x197623(0x227)+_0x4a7276['t'](_0x197623(0x1ed)):_0x41a1fd:_0x41a1fd;}function _0x15beb1(_0x4deb39){const _0x493251=_0x441f5c;switch(_0x4deb39){case _0x1a6d3e['MCPConnectionStatus'][_0x493251(0x222)]:return _0x493251(0x249);case _0x1a6d3e[_0x493251(0x196)][_0x493251(0x140)]:case _0x1a6d3e['MCPConnectionStatus']['RETRYING']:return _0x493251(0x1bb);case _0x1a6d3e['MCPConnectionStatus']['FAILED']:case _0x1a6d3e[_0x493251(0x196)][_0x493251(0x21a)]:return _0x493251(0x12a);default:return _0x493251(0x262);}}function _0x24f350(_0x6c900c){const _0x35465f=_0x441f5c,{status$:_0x3e10ee,error$:_0x11bbec,onConfigure:_0x3c556a,showClickable:_0x130a35=!0x0}=_0x6c900c,_0x759cf2=_0x48a061[_0x35465f(0xe2)](_0x3e10ee,_0x1a6d3e[_0x35465f(0x196)][_0x35465f(0x21a)]),_0x5ed15a=_0x48a061[_0x35465f(0xe2)](_0x11bbec,_0x1a6d3e[_0x35465f(0x1ee)][_0x35465f(0x264)]),_0x2eba05=_0x48a061[_0x35465f(0x19a)](_0x1daa64['LocaleService']),_0x43deae=_0x759cf2===_0x1a6d3e[_0x35465f(0x196)][_0x35465f(0x222)];_0x759cf2===_0x1a6d3e[_0x35465f(0x196)][_0x35465f(0x140)]||_0x1a6d3e['MCPConnectionStatus'][_0x35465f(0x189)];const _0x4ff246=_0x2eba05['t'](_0x2e1385(_0x759cf2,_0x5ed15a)),_0x47641a=_0x28f2cb(_0x759cf2,_0x5ed15a,_0x2eba05,_0x130a35),_0x2e49cf=_0x15beb1(_0x759cf2),_0x448401=_0x43deae?_0x5bdce3[_0x35465f(0xe4)](_0x5ba228,{}):_0x5bdce3[_0x35465f(0xe4)](_0x2f2cd3,{}),_0x3c9c22=_0x1198b2[_0x35465f(0xf0)](()=>{_0x130a35&&_0x3c556a&&_0x3c556a();},[_0x130a35,_0x3c556a]);function _0x14cd11(){const _0x42ae60=_0x35465f;return _0x5bdce3['jsxs'](_0x42ae60(0x1fe),{'className':_0x82cd4a[_0x42ae60(0x12f)](_0x42ae60(0x164),_0x130a35&&_0x3c556a&&_0x42ae60(0x1f9)),'role':_0x42ae60(0x23b),'onClick':_0x130a35&&_0x3c556a?_0x3c9c22:void 0x0,'children':[_0x5bdce3['jsx']('div',{'className':_0x82cd4a[_0x42ae60(0x12f)](_0x42ae60(0xfd),_0x2e49cf),'children':_0x448401}),_0x5bdce3[_0x42ae60(0xe4)](_0x42ae60(0x1fe),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4ff246})]});}return _0x5bdce3[_0x35465f(0xe4)](_0x82cd4a[_0x35465f(0x1a7)],{'title':_0x47641a,'placement':_0x35465f(0x117),'children':_0x14cd11()});}var _0x1c67ac=Object[_0x441f5c(0x258)],_0x39a492=(_0x479e79,_0x5bd154,_0x387379,_0x57b039)=>{for(var _0x133cf3=_0x57b039>0x1?void 0x0:_0x57b039?_0x1c67ac(_0x5bd154,_0x387379):_0x5bd154,_0x16309d=_0x479e79['length']-0x1,_0x2bc0c3;_0x16309d>=0x0;_0x16309d--)(_0x2bc0c3=_0x479e79[_0x16309d])&&(_0x133cf3=_0x2bc0c3(_0x133cf3)||_0x133cf3);return _0x133cf3;},_0x12752e=(_0x41c9c2,_0xb0e8a9)=>(_0x4796da,_0xe79c63)=>_0xb0e8a9(_0x4796da,_0xe79c63,_0x41c9c2);_0x5d6fc9['MCPConnectionUIController']=class extends _0x1daa64['Disposable']{constructor(_0x3554a1,_0x1c28d6,_0x415958,_0x298546){const _0xf7eae7=_0x441f5c;super(),this[_0xf7eae7(0x1be)]=_0x3554a1,this[_0xf7eae7(0x18a)]=_0x1c28d6,this[_0xf7eae7(0x21d)]=_0x415958,this[_0xf7eae7(0x162)]=_0x298546,this[_0xf7eae7(0x1ba)](),this[_0xf7eae7(0x112)]();}[_0x441f5c(0x1ba)](){const _0x20c977=_0x441f5c,_0x1954d2=this[_0x20c977(0x162)][_0x20c977(0x173)](_0x1abb5b);_0x1954d2!=null&&_0x1954d2[_0x20c977(0x10d)]&&(this[_0x20c977(0x18a)][_0x20c977(0x265)]=!0x1);}['_initStatusComponent'](){const _0x21b9bc=_0x441f5c,_0x536a96=this[_0x21b9bc(0x162)][_0x21b9bc(0x173)](_0x1abb5b);(_0x536a96==null?void 0x0:_0x536a96[_0x21b9bc(0x1a2)])!==!0x1&&this[_0x21b9bc(0x167)](this[_0x21b9bc(0x21d)][_0x21b9bc(0x153)](_0x48a061['BuiltInUIPart']['HEADER_MENU'],()=>{const _0x51c7e3=_0x21b9bc;var _0x55e285;return _0x48a061[_0x51c7e3(0x23c)](_0x5fe30c({'status$':this[_0x51c7e3(0x18a)][_0x51c7e3(0x10c)],'error$':this[_0x51c7e3(0x18a)][_0x51c7e3(0x11c)],'onConfigure':()=>this[_0x51c7e3(0x14a)](),'showClickable':(_0x55e285=_0x536a96==null?void 0x0:_0x536a96[_0x51c7e3(0x10d)])!=null?_0x55e285:!0x1}),this[_0x51c7e3(0x1be)]);}));}['_handleConfigure'](){const _0x5e1cff=_0x441f5c;this['_injector'][_0x5e1cff(0x114)](_0x5d6fc9[_0x5e1cff(0x1b5)])[_0x5e1cff(0x1b8)]();}},_0x5d6fc9[_0x441f5c(0x1a8)]=_0x39a492([_0x12752e(0x0,_0x1daa64[_0x441f5c(0x10a)](_0x1daa64[_0x441f5c(0x203)])),_0x12752e(0x1,_0x1daa64[_0x441f5c(0x10a)](_0x1a6d3e[_0x441f5c(0x1a6)])),_0x12752e(0x2,_0x48a061['IUIPartsService']),_0x12752e(0x3,_0x1daa64['IConfigService'])],_0x5d6fc9[_0x441f5c(0x1a8)]);function _0x5fe30c(_0x3c8073){const {status$:_0x5d76c7,error$:_0x2c9823,onConfigure:_0xb1dbb,showClickable:_0x391c08}=_0x3c8073;return function(){return _0x5bdce3['jsx'](_0x24f350,{'status$':_0x5d76c7,'error$':_0x2c9823,'onConfigure':_0xb1dbb,'showClickable':_0x391c08});};}function _0x206f4a(_0x89b639){const _0x3fecde=_0x441f5c;return{'id':_0x4bd55c['id'],'type':_0x48a061[_0x3fecde(0x13a)][_0x3fecde(0x141)],'icon':_0x3fecde(0x1f4),'title':_0x3fecde(0x186),'tooltip':_0x3fecde(0x186)};}const _0x2c8160={[_0x48a061[_0x441f5c(0x252)]['OTHERS']]:{[_0x4bd55c['id']]:{'order':0xa,'menuItemFactory':_0x206f4a}}};var _0x7c6b4c=Object['getOwnPropertyDescriptor'],_0x449b07=(_0x69e9e,_0x193d4f,_0x5bfc17,_0x3f60e9)=>{for(var _0x25e6f9=_0x3f60e9>0x1?void 0x0:_0x3f60e9?_0x7c6b4c(_0x193d4f,_0x5bfc17):_0x193d4f,_0x2a5af9=_0x69e9e['length']-0x1,_0x58490d;_0x2a5af9>=0x0;_0x2a5af9--)(_0x58490d=_0x69e9e[_0x2a5af9])&&(_0x25e6f9=_0x58490d(_0x25e6f9)||_0x25e6f9);return _0x25e6f9;},_0x37b29e=(_0x57dbf0,_0x1cf874)=>(_0x51505a,_0x80b0d7)=>_0x1cf874(_0x51505a,_0x80b0d7,_0x57dbf0);_0x5d6fc9[_0x441f5c(0x176)]=class extends _0x1daa64[_0x441f5c(0x137)]{constructor(_0x3ecd11,_0x2be6b8){const _0x1431f6=_0x441f5c;super(),this[_0x1431f6(0x1d6)]=_0x3ecd11,this['_menuManagerService']=_0x2be6b8,this[_0x1431f6(0xea)](),this['_initializeMenus']();}[_0x441f5c(0xea)](){const _0x48164d=_0x441f5c;[_0x4bd55c][_0x48164d(0x224)](_0x277244=>{const _0x4b207d=_0x48164d;this[_0x4b207d(0x167)](this['_commandService'][_0x4b207d(0x14c)](_0x277244));});}[_0x441f5c(0x206)](){const _0x44475a=_0x441f5c;this[_0x44475a(0x148)][_0x44475a(0x118)](_0x2c8160);}},_0x5d6fc9['MCPUIMenuController']=_0x449b07([_0x37b29e(0x0,_0x1daa64['ICommandService']),_0x37b29e(0x1,_0x48a061[_0x441f5c(0x1b7)])],_0x5d6fc9['MCPUIMenuController']);const _0x2c4bbc={'mcpStatus':{'disconnected':_0x441f5c(0x187),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x441f5c(0x1ce),'retrying':_0x441f5c(0x251),'unknown':_0x441f5c(0x212),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x441f5c(0x1db),'networkError':_0x441f5c(0x174),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x441f5c(0x108),'clickToConfigure':_0x441f5c(0x11b)},'mcpConfig':{'title':_0x441f5c(0x226),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x441f5c(0x132),'apiKeyPlaceholder':_0x441f5c(0x151),'apiKeyHint':_0x441f5c(0x10e),'enableAuth':_0x441f5c(0x201),'enableAuthHint':_0x441f5c(0x1b6),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x441f5c(0x24e),'configInstructions':_0x441f5c(0x142),'configStepTitle':_0x441f5c(0x20a),'configStep1':_0x441f5c(0x1d0),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x441f5c(0x22b),'sessionIdDescription':_0x441f5c(0x1d2),'authorizationDescription':_0x441f5c(0x1f5),'configParameters':_0x441f5c(0x214),'maxRetries':_0x441f5c(0x1f6),'save':_0x441f5c(0x211),'saving':_0x441f5c(0x1f8),'note1':_0x441f5c(0x257),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x441f5c(0x210),'configError':_0x441f5c(0x207),'apiApplyInfo':{'title':_0x441f5c(0x1e5),'description':_0x441f5c(0xe3),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x441f5c(0x1dd)},'validation':{'apiKeyRequired':_0x441f5c(0x243),'apiKeyTooShort':_0x441f5c(0x1cd),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x441f5c(0x20c)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x441f5c(0x21f),'failed':_0x441f5c(0x185),'retrying':_0x441f5c(0x202)},'connectionError':{'unauthorized':_0x441f5c(0x13f),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x441f5c(0x18f)}}},_0x55cae7={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x441f5c(0x17a),'failed':'MCP\x20连接失败','retrying':_0x441f5c(0xe1),'unknown':_0x441f5c(0x1cf),'unauthorized':_0x441f5c(0x15c),'sessionOccupied':_0x441f5c(0x14f),'networkError':_0x441f5c(0x147),'maxRetriesExceeded':_0x441f5c(0x190),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x441f5c(0x242)},'mcpConfig':{'title':_0x441f5c(0x266),'description':_0x441f5c(0x1b3),'apiKey':_0x441f5c(0x19d),'apiKeyPlaceholder':_0x441f5c(0x223),'apiKeyHint':_0x441f5c(0x1a5),'enableAuth':_0x441f5c(0xe5),'enableAuthHint':_0x441f5c(0x1e3),'connectionInfo':_0x441f5c(0x144),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x441f5c(0x160),'configStepTitle':_0x441f5c(0x159),'configStep1':_0x441f5c(0x15b),'configStep2':_0x441f5c(0x15f),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x441f5c(0x1dc),'sessionIdDescription':_0x441f5c(0x1ec),'authorizationDescription':_0x441f5c(0x1cc),'configParameters':'配置参数:','maxRetries':'最大重试次数','save':_0x441f5c(0x13b),'saving':'保存中...','note1':_0x441f5c(0x15e),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x441f5c(0x263),'configError':_0x441f5c(0x208),'apiApplyInfo':{'title':_0x441f5c(0x12e),'description':_0x441f5c(0x15d),'univerAiLabel':_0x441f5c(0x1ef),'getStarted':_0x441f5c(0x198)},'validation':{'apiKeyRequired':_0x441f5c(0x15a),'apiKeyTooShort':_0x441f5c(0xfa),'invalidConfig':'配置无效','invalidApiKey':_0x441f5c(0x225)},'connectionStatus':{'disconnected':_0x441f5c(0x247),'connecting':_0x441f5c(0x216),'connected':_0x441f5c(0x24d),'failed':_0x441f5c(0x1cb),'retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x441f5c(0x156),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x441f5c(0x184)}}};var _0x1c9b39=Object[_0x441f5c(0x1b4)],_0xe06b2c=Object[_0x441f5c(0x258)],_0x18a41a=(_0x43f634,_0x43f814,_0x1d5b75)=>_0x43f814 in _0x43f634?_0x1c9b39(_0x43f634,_0x43f814,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d5b75}):_0x43f634[_0x43f814]=_0x1d5b75,_0x4302f5=(_0x25b8db,_0x313a3e,_0x4c9485,_0x350f01)=>{const _0x5130b5=_0x441f5c;for(var _0x40738e=_0x350f01>0x1?void 0x0:_0x350f01?_0xe06b2c(_0x313a3e,_0x4c9485):_0x313a3e,_0x1225be=_0x25b8db[_0x5130b5(0x19f)]-0x1,_0x49c7c0;_0x1225be>=0x0;_0x1225be--)(_0x49c7c0=_0x25b8db[_0x1225be])&&(_0x40738e=_0x49c7c0(_0x40738e)||_0x40738e);return _0x40738e;},_0x490ba1=(_0x51ef81,_0x216bc0)=>(_0x4d2f68,_0x1e7d6d)=>_0x216bc0(_0x4d2f68,_0x1e7d6d,_0x51ef81),_0x4e93de=(_0x13a298,_0xff4639,_0x49e5a5)=>_0x18a41a(_0x13a298,_0xff4639+'',_0x49e5a5);_0x5d6fc9[_0x441f5c(0x220)]=class extends _0x1daa64[_0x441f5c(0x1e8)]{constructor(_0x4cbae7=_0x3c269b,_0x40961e,_0x2ebda0,_0x152925,_0x146d4b,_0x5b663b){const _0x86a77d=_0x441f5c;super(),this[_0x86a77d(0x11e)]=_0x4cbae7,this['_injector']=_0x40961e,this[_0x86a77d(0x162)]=_0x2ebda0,this['_uiPartsService']=_0x152925,this[_0x86a77d(0x154)]=_0x146d4b,this[_0x86a77d(0x240)]=_0x5b663b;const {..._0x3cfe2e}=_0x1daa64[_0x86a77d(0xf9)]({},_0x3c269b,this[_0x86a77d(0x11e)]);this['_configService']['setConfig'](_0x1abb5b,_0x3cfe2e);}async['onStarting'](){const _0x1f55c5=_0x441f5c,_0x506f20=[[_0x5d6fc9[_0x1f55c5(0x1a8)]],[_0x5d6fc9['MCPConfigUIController']],[_0x5d6fc9[_0x1f55c5(0x176)]]];this[_0x1f55c5(0x1be)]['has'](_0x5d4447[_0x1f55c5(0x21b)])||_0x506f20[_0x1f55c5(0x233)]([_0x5d4447[_0x1f55c5(0x21b)],{'useClass':_0x5d4447[_0x1f55c5(0x158)]}]),_0x506f20[_0x1f55c5(0x224)](_0x4ba795=>this[_0x1f55c5(0x1be)]['add'](_0x4ba795)),this[_0x1f55c5(0x1be)][_0x1f55c5(0x114)](_0x5d6fc9[_0x1f55c5(0x1a8)]),this[_0x1f55c5(0x1be)][_0x1f55c5(0x114)](_0x5d6fc9['MCPConfigUIController']),this[_0x1f55c5(0x1be)][_0x1f55c5(0x114)](_0x5d6fc9[_0x1f55c5(0x176)]);}},_0x4e93de(_0x5d6fc9[_0x441f5c(0x220)],_0x441f5c(0x19b),'MCP_UI_PLUGIN'),_0x5d6fc9['UniverMCPUIPlugin']=_0x4302f5([_0x1daa64['DependentOn'](_0x1a6d3e['UniverMCPPlugin']),_0x490ba1(0x1,_0x1daa64[_0x441f5c(0x10a)](_0x1daa64[_0x441f5c(0x203)])),_0x490ba1(0x2,_0x1daa64['IConfigService']),_0x490ba1(0x3,_0x48a061[_0x441f5c(0x1fa)]),_0x490ba1(0x4,_0x1daa64[_0x441f5c(0x16b)]),_0x490ba1(0x5,_0x1daa64[_0x441f5c(0x10a)](_0x1daa64[_0x441f5c(0x267)]))],_0x5d6fc9[_0x441f5c(0x220)]),_0x5d6fc9[_0x441f5c(0x12c)]=_0x1fcdf1,_0x5d6fc9[_0x441f5c(0x246)]=_0x24f350,_0x5d6fc9[_0x441f5c(0xee)]=_0x4bd55c,_0x5d6fc9['enUS']=_0x2c4bbc,_0x5d6fc9['zhCN']=_0x55cae7,Object[_0x441f5c(0x1b4)](_0x5d6fc9,Symbol['toStringTag'],{'value':'Module'});}));
|
package/lib/umd/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x50d6(_0x142521,_0x4e0037){_0x142521=_0x142521-0x76;var _0x39eef4=_0x39ee();var _0x50d6fd=_0x39eef4[_0x142521];return _0x50d6fd;}(function(_0x594bb6,_0x599a9a){var _0x1d1bb8=_0x50d6,_0x4113bf=_0x594bb6();while(!![]){try{var _0x1f4123=parseInt(_0x1d1bb8(0x9a))/0x1+-parseInt(_0x1d1bb8(0x88))/0x2+parseInt(_0x1d1bb8(0xa5))/0x3+-parseInt(_0x1d1bb8(0x7d))/0x4+parseInt(_0x1d1bb8(0x76))/0x5*(-parseInt(_0x1d1bb8(0x96))/0x6)+-parseInt(_0x1d1bb8(0x97))/0x7*(parseInt(_0x1d1bb8(0x92))/0x8)+parseInt(_0x1d1bb8(0x7a))/0x9;if(_0x1f4123===_0x599a9a)break;else _0x4113bf['push'](_0x4113bf['shift']());}catch(_0x59f0f5){_0x4113bf['push'](_0x4113bf['shift']());}}}(_0x39ee,0x3460a),function(_0x5ac116,_0xcf6dd){var _0x249f44=_0x50d6;typeof exports=='object'&&typeof module<'u'?module['exports']=_0xcf6dd():typeof define==_0x249f44(0xa8)&&define[_0x249f44(0x8d)]?define(_0xcf6dd):(_0x5ac116=typeof globalThis<'u'?globalThis:_0x5ac116||self,_0x5ac116[_0x249f44(0x7b)]=_0xcf6dd());}(this,function(){'use strict';var _0x4e8478=_0x50d6;return{'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4e8478(0x98),'connected':_0x4e8478(0xa7),'failed':_0x4e8478(0x8f),'retrying':_0x4e8478(0x8e),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4e8478(0x87),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4e8478(0x84),'maxRetriesExceeded':_0x4e8478(0x8c),'clickToConnect':_0x4e8478(0x9d),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4e8478(0x90),'description':_0x4e8478(0x78),'apiKey':_0x4e8478(0x85),'apiKeyPlaceholder':_0x4e8478(0x93),'apiKeyHint':_0x4e8478(0x82),'enableAuth':_0x4e8478(0x7c),'enableAuthHint':_0x4e8478(0x89),'connectionInfo':_0x4e8478(0xa1),'mcpClientConfig':_0x4e8478(0xa1),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4e8478(0x9e),'configStep1':_0x4e8478(0x9b),'configStep2':_0x4e8478(0x7f),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','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':_0x4e8478(0x86),'configParameters':_0x4e8478(0x83),'maxRetries':_0x4e8478(0x91),'save':_0x4e8478(0x7e),'saving':_0x4e8478(0x8b),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4e8478(0x99),'configSaved':_0x4e8478(0xa2),'configError':_0x4e8478(0x94),'apiApplyInfo':{'title':_0x4e8478(0xa6),'description':_0x4e8478(0xa4),'univerAiLabel':_0x4e8478(0xa0),'getStarted':_0x4e8478(0x9f)},'validation':{'apiKeyRequired':_0x4e8478(0x81),'apiKeyTooShort':_0x4e8478(0x95),'invalidConfig':_0x4e8478(0xa9),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4e8478(0x80),'connecting':_0x4e8478(0x79),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x4e8478(0x77)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x4e8478(0x9c),'networkError':_0x4e8478(0x8a),'maxRetriesExceeded':_0x4e8478(0xa3)}}};}));function _0x39ee(){var _0x382eff=['Configuration\x20Parameters:','MCP:\x20Network\x20Error','API\x20Key','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Unauthorized','84962fjBKda','Enable\x20authentication\x20for\x20secure\x20connections','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Saving...','MCP:\x20Max\x20Retries\x20Exceeded','amd','MCP\x20Retrying...','MCP\x20Connection\x20Failed','MCP\x20Configuration','Max\x20Retries','2248ozEPfQ','Enter\x20your\x20API\x20key','Failed\x20to\x20save\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1476hyAlKD','3647zcBKfm','MCP\x20Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','8480VYHDbV','Copy\x20the\x20JSON\x20configuration\x20below','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','Configuration\x20Steps:','Get\x20your\x20API\x20key\x20in\x20seconds','Univer\x20AI\x20Console','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','616587dVENNY','What\x20is\x20API\x20Key?','MCP\x20Connected','function','Invalid\x20configuration','2665fFHksm','Retrying...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connecting...','3899286laXrlA','UniverProMcpUiCaES','Enable\x20Authentication','450900kqAHgv','Save\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Disconnected','API\x20key\x20is\x20required','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser'];_0x39ee=function(){return _0x382eff;};return _0x39ee();}
|