@univerjs-pro/mcp-ui 0.14.0 → 0.15.0-insiders.20251227-453e4ff

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/index.js +1 -1
  14. package/lib/es/locale/ca-ES.js +1 -1
  15. package/lib/es/locale/en-US.js +1 -1
  16. package/lib/es/locale/es-ES.js +1 -1
  17. package/lib/es/locale/fa-IR.js +1 -1
  18. package/lib/es/locale/fr-FR.js +1 -1
  19. package/lib/es/locale/ja-JP.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/index.js +1 -1
  26. package/lib/locale/ca-ES.js +1 -1
  27. package/lib/locale/en-US.js +1 -1
  28. package/lib/locale/es-ES.js +1 -1
  29. package/lib/locale/fa-IR.js +1 -1
  30. package/lib/locale/fr-FR.js +1 -1
  31. package/lib/locale/ja-JP.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/index.js +1 -1
  38. package/lib/umd/locale/ca-ES.js +1 -1
  39. package/lib/umd/locale/en-US.js +1 -1
  40. package/lib/umd/locale/es-ES.js +1 -1
  41. package/lib/umd/locale/fa-IR.js +1 -1
  42. package/lib/umd/locale/fr-FR.js +1 -1
  43. package/lib/umd/locale/ja-JP.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +9 -9
@@ -1 +1 @@
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};
1
+ const _0x3e8ed8=_0x2c29;function _0x2c29(_0x4d0f85,_0xc84aaa){_0x4d0f85=_0x4d0f85-0x178;const _0x2a98b9=_0x2a98();let _0x2c291b=_0x2a98b9[_0x4d0f85];return _0x2c291b;}(function(_0x10ae5d,_0x127db8){const _0x3592cb=_0x2c29,_0x42b0e7=_0x10ae5d();while(!![]){try{const _0xe37369=-parseInt(_0x3592cb(0x185))/0x1*(-parseInt(_0x3592cb(0x19f))/0x2)+-parseInt(_0x3592cb(0x18b))/0x3*(parseInt(_0x3592cb(0x17e))/0x4)+parseInt(_0x3592cb(0x191))/0x5+-parseInt(_0x3592cb(0x195))/0x6*(parseInt(_0x3592cb(0x1a9))/0x7)+-parseInt(_0x3592cb(0x17c))/0x8*(-parseInt(_0x3592cb(0x182))/0x9)+parseInt(_0x3592cb(0x1a3))/0xa+parseInt(_0x3592cb(0x19d))/0xb*(-parseInt(_0x3592cb(0x180))/0xc);if(_0xe37369===_0x127db8)break;else _0x42b0e7['push'](_0x42b0e7['shift']());}catch(_0x18db2d){_0x42b0e7['push'](_0x42b0e7['shift']());}}}(_0x2a98,0xa95eb));const e={'mcpStatus':{'disconnected':_0x3e8ed8(0x18f),'connecting':_0x3e8ed8(0x192),'connected':_0x3e8ed8(0x17b),'failed':_0x3e8ed8(0x1a4),'retrying':'MCP\x20Retrying...','unknown':_0x3e8ed8(0x18d),'unauthorized':_0x3e8ed8(0x199),'sessionOccupied':_0x3e8ed8(0x194),'networkError':_0x3e8ed8(0x193),'maxRetriesExceeded':_0x3e8ed8(0x19c),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x3e8ed8(0x19e),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x3e8ed8(0x197),'apiKeyPlaceholder':_0x3e8ed8(0x1a2),'apiKeyHint':_0x3e8ed8(0x1a1),'enableAuth':_0x3e8ed8(0x189),'enableAuthHint':_0x3e8ed8(0x187),'connectionInfo':_0x3e8ed8(0x186),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3e8ed8(0x1ab),'configStepTitle':_0x3e8ed8(0x1a0),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x3e8ed8(0x17d),'configStep3':_0x3e8ed8(0x19a),'sessionId':_0x3e8ed8(0x1a7),'sessionIdDescription':_0x3e8ed8(0x183),'authorizationDescription':_0x3e8ed8(0x190),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x3e8ed8(0x188),'saving':_0x3e8ed8(0x17f),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x3e8ed8(0x17a),'configSaved':_0x3e8ed8(0x179),'configError':_0x3e8ed8(0x198),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3e8ed8(0x178),'univerAiLabel':_0x3e8ed8(0x1a6),'getStarted':_0x3e8ed8(0x1a8)},'validation':{'apiKeyRequired':_0x3e8ed8(0x181),'apiKeyTooShort':_0x3e8ed8(0x18e),'invalidConfig':_0x3e8ed8(0x196),'invalidApiKey':_0x3e8ed8(0x184)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x3e8ed8(0x19b),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x3e8ed8(0x18a)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x3e8ed8(0x18c),'networkError':_0x3e8ed8(0x1aa),'maxRetriesExceeded':_0x3e8ed8(0x1a5)}}},n=e;function _0x2a98(){const _0x4f5f5b=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','165752qYmVgL','Saving...','8376BHqQKA','API\x20key\x20is\x20required','5559948eFDlpr','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','16753wuHsWl','MCP\x20Client\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','Save\x20Configuration','Enable\x20Authentication','Retrying...','69JQhYMx','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','1928185WnqrWa','MCP\x20Connecting...','MCP:\x20Network\x20Error','MCP:\x20Session\x20ID\x20Occupied','1961754QBeuti','Invalid\x20configuration','API\x20Key','Failed\x20to\x20save\x20configuration','MCP:\x20Unauthorized','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','24233gxYWVi','MCP\x20Configuration','116XcOOxR','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enter\x20your\x20API\x20key','9186110fAgOZk','MCP\x20Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Univer\x20AI\x20Console','Session\x20ID','Get\x20your\x20API\x20key\x20in\x20seconds','7rfkRsP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connected','16SItBiQ'];_0x2a98=function(){return _0x4f5f5b;};return _0x2a98();}export{n as default};
@@ -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};
1
+ function _0x1e11(_0x5bf95c,_0x492034){_0x5bf95c=_0x5bf95c-0x73;const _0x5de452=_0x5de4();let _0x1e11c2=_0x5de452[_0x5bf95c];return _0x1e11c2;}const _0x462b82=_0x1e11;(function(_0x1a9eda,_0x269f5c){const _0x1fb087=_0x1e11,_0x3ecb12=_0x1a9eda();while(!![]){try{const _0x48bfe6=parseInt(_0x1fb087(0x8d))/0x1+-parseInt(_0x1fb087(0x7e))/0x2+-parseInt(_0x1fb087(0x78))/0x3+parseInt(_0x1fb087(0x84))/0x4+parseInt(_0x1fb087(0x88))/0x5+-parseInt(_0x1fb087(0x99))/0x6+parseInt(_0x1fb087(0x85))/0x7*(parseInt(_0x1fb087(0x98))/0x8);if(_0x48bfe6===_0x269f5c)break;else _0x3ecb12['push'](_0x3ecb12['shift']());}catch(_0x21e675){_0x3ecb12['push'](_0x3ecb12['shift']());}}}(_0x5de4,0xef18d));function _0x5de4(){const _0x50c2b4=['Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','Nhập\x20khóa\x20API\x20của\x20bạn','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','MCP\x20Đang\x20thử\x20lại...','Cấu\x20hình\x20không\x20hợp\x20lệ','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Cấu\x20hình\x20MCP','Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','Đã\x20kết\x20nối','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','602130YMvdfx','Khóa\x20API\x20là\x20gì?','Đang\x20lưu...','Đã\x20ngắt\x20kết\x20nối','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','2145100vBWzaG','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Cấu\x20hình\x20máy\x20khách\x20MCP','MCP\x20Đã\x20kết\x20nối','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','2759540JGKCDK','7fTIXaQ','Các\x20bước\x20cấu\x20hình:','MCP\x20Đã\x20ngắt\x20kết\x20nối','6505915NMqvsr','Bật\x20xác\x20thực','Lưu\x20cấu\x20hình','MCP:\x20Không\x20được\x20phép','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','349248ZwmXJA','Tham\x20số\x20cấu\x20hình:','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','Yêu\x20cầu\x20khóa\x20API','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','MCP\x20Kết\x20nối\x20thất\x20bại','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Nhấp\x20để\x20cấu\x20hình\x20MCP','10658968MXQEEI','8520516YsnGmM','Số\x20lần\x20thử\x20lại\x20tối\x20đa','MCP:\x20Lỗi\x20mạng'];_0x5de4=function(){return _0x50c2b4;};return _0x5de4();}const n={'mcpStatus':{'disconnected':_0x462b82(0x87),'connecting':'MCP\x20Đang\x20kết\x20nối...','connected':_0x462b82(0x81),'failed':_0x462b82(0x95),'retrying':_0x462b82(0xa0),'unknown':_0x462b82(0x7f),'unauthorized':_0x462b82(0x8b),'sessionOccupied':_0x462b82(0x8f),'networkError':_0x462b82(0x9b),'maxRetriesExceeded':'MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','clickToConnect':'Nhấp\x20để\x20kết\x20nối\x20MCP','clickToConfigure':_0x462b82(0x97)},'mcpConfig':{'title':_0x462b82(0x74),'description':_0x462b82(0x83),'apiKey':'Khóa\x20API','apiKeyPlaceholder':_0x462b82(0x9e),'apiKeyHint':_0x462b82(0x7c),'enableAuth':_0x462b82(0x89),'enableAuthHint':_0x462b82(0x8c),'connectionInfo':'Cấu\x20hình\x20máy\x20khách\x20MCP','mcpClientConfig':_0x462b82(0x80),'configInstructions':_0x462b82(0x91),'configStepTitle':_0x462b82(0x86),'configStep1':_0x462b82(0x9d),'configStep2':_0x462b82(0x90),'configStep3':_0x462b82(0x92),'sessionId':'ID\x20phiên','sessionIdDescription':_0x462b82(0x9c),'authorizationDescription':'Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','configParameters':_0x462b82(0x8e),'maxRetries':_0x462b82(0x9a),'save':_0x462b82(0x8a),'saving':_0x462b82(0x7a),'note1':_0x462b82(0x7d),'note2':_0x462b82(0x96),'configSaved':_0x462b82(0x73),'configError':'Lưu\x20cấu\x20hình\x20thất\x20bại','apiApplyInfo':{'title':_0x462b82(0x79),'description':_0x462b82(0x75),'univerAiLabel':'Bảng\x20điều\x20khiển\x20Univer\x20AI','getStarted':'Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây'},'validation':{'apiKeyRequired':_0x462b82(0x93),'apiKeyTooShort':_0x462b82(0x82),'invalidConfig':_0x462b82(0xa1),'invalidApiKey':'Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không'},'connectionStatus':{'disconnected':_0x462b82(0x7b),'connecting':'Đang\x20kết\x20nối...','connected':_0x462b82(0x76),'failed':'Kết\x20nối\x20thất\x20bại','retrying':'Đang\x20thử\x20lại...'},'connectionError':{'unauthorized':_0x462b82(0x9f),'sessionOccupied':_0x462b82(0x94),'networkError':_0x462b82(0x77),'maxRetriesExceeded':'Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau'}}};export{n as default};
@@ -1 +1 @@
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();}
1
+ const _0x25374c=_0x24f6;(function(_0x40a52b,_0xff82a1){const _0x49b040=_0x24f6,_0x5246d6=_0x40a52b();while(!![]){try{const _0x46f6df=parseInt(_0x49b040(0x178))/0x1+-parseInt(_0x49b040(0x179))/0x2+-parseInt(_0x49b040(0x189))/0x3+-parseInt(_0x49b040(0x171))/0x4+-parseInt(_0x49b040(0x17b))/0x5*(parseInt(_0x49b040(0x180))/0x6)+-parseInt(_0x49b040(0x181))/0x7+-parseInt(_0x49b040(0x176))/0x8*(-parseInt(_0x49b040(0x17c))/0x9);if(_0x46f6df===_0xff82a1)break;else _0x5246d6['push'](_0x5246d6['shift']());}catch(_0x58854f){_0x5246d6['push'](_0x5246d6['shift']());}}}(_0x506f,0x2e8aa));function _0x24f6(_0x29a166,_0x28236d){_0x29a166=_0x29a166-0x16b;const _0x506fab=_0x506f();let _0x24f6df=_0x506fab[_0x29a166];return _0x24f6df;}const e={'mcpStatus':{'disconnected':_0x25374c(0x174),'connecting':_0x25374c(0x16f),'connected':'MCP\x20已连接','failed':_0x25374c(0x175),'retrying':_0x25374c(0x182),'unknown':_0x25374c(0x19b),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x25374c(0x18f),'networkError':_0x25374c(0x195),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x25374c(0x194),'clickToConfigure':_0x25374c(0x198)},'mcpConfig':{'title':'MCP\x20配置','description':_0x25374c(0x16c),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x25374c(0x17a),'apiKeyHint':_0x25374c(0x18c),'enableAuth':'启用身份验证','enableAuthHint':_0x25374c(0x191),'connectionInfo':_0x25374c(0x190),'mcpClientConfig':_0x25374c(0x190),'configInstructions':_0x25374c(0x192),'configStepTitle':_0x25374c(0x19d),'configStep1':_0x25374c(0x16b),'configStep2':_0x25374c(0x173),'configStep3':_0x25374c(0x170),'sessionId':_0x25374c(0x19a),'sessionIdDescription':_0x25374c(0x186),'authorizationDescription':_0x25374c(0x18a),'configParameters':_0x25374c(0x16d),'maxRetries':'最大重试次数','save':_0x25374c(0x18b),'saving':_0x25374c(0x184),'note1':_0x25374c(0x18d),'note2':_0x25374c(0x18e),'configSaved':_0x25374c(0x17e),'configError':_0x25374c(0x16e),'apiApplyInfo':{'title':_0x25374c(0x185),'description':_0x25374c(0x177),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x25374c(0x17f)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x25374c(0x172),'invalidConfig':'配置无效','invalidApiKey':_0x25374c(0x196)},'connectionStatus':{'disconnected':'未连接','connecting':_0x25374c(0x193),'connected':_0x25374c(0x188),'failed':_0x25374c(0x199),'retrying':_0x25374c(0x17d)},'connectionError':{'unauthorized':_0x25374c(0x197),'sessionOccupied':_0x25374c(0x19c),'networkError':_0x25374c(0x187),'maxRetriesExceeded':_0x25374c(0x183)}}};function _0x506f(){const _0x1fb433=['22390lSiwgH','9tVixls','重连中...','配置保存成功','几秒钟内获取您的\x20API\x20密钥','72yuDFRj','1121764ltYAHe','MCP\x20重连中...','超出最大重试次数,请稍后再试','保存中...','什么是\x20API\x20密钥?','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','网络连接错误,请检查您的网络连接','已连接','696054YtZJJj','带有\x20Bearer\x20前缀的\x20API\x20密钥。','保存配置','您的\x20API\x20密钥将在此浏览器中本地存储','配置更改将立即生效','您的\x20API\x20密钥安全存储在本地存储中','MCP:\x20会话\x20ID\x20已被占用','MCP\x20客户端配置','启用身份验证以获得安全连接','将以下配置添加到您的\x20MCP\x20客户端设置中:','连接中...','点击连接\x20MCP','MCP:\x20网络错误','API\x20密钥无效,请检查密钥是否正确','权限验证失败,请检查您的\x20API\x20密钥','点击配置\x20MCP','连接失败','会话ID','MCP\x20状态未知','会话\x20ID\x20已被占用,请稍后再试','配置步骤:','复制以下\x20JSON\x20配置','配置\x20MCP\x20使用\x20AI\x20操作电子表格','配置参数:','配置保存失败','MCP\x20连接中...','重启您的\x20MCP\x20客户端以使配置生效','439152sAlDUR','API\x20密钥长度至少需要\x2010\x20','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20已断开','MCP\x20连接失败','5337840clwnHj','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','192780GDNdVb','227164JejNAw','请输入您的\x20API\x20密钥'];_0x506f=function(){return _0x1fb433;};return _0x506f();}export{e as default};
@@ -1 +1 @@
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};
1
+ const _0x4c3e0f=_0x43f3;(function(_0x15dd1a,_0x1099b6){const _0x4abd1c=_0x43f3,_0x4cb1aa=_0x15dd1a();while(!![]){try{const _0x2dffd5=-parseInt(_0x4abd1c(0x115))/0x1*(-parseInt(_0x4abd1c(0x11c))/0x2)+-parseInt(_0x4abd1c(0xfe))/0x3*(parseInt(_0x4abd1c(0xfd))/0x4)+-parseInt(_0x4abd1c(0x10d))/0x5*(-parseInt(_0x4abd1c(0x109))/0x6)+parseInt(_0x4abd1c(0xfb))/0x7*(parseInt(_0x4abd1c(0xed))/0x8)+parseInt(_0x4abd1c(0x112))/0x9+parseInt(_0x4abd1c(0x107))/0xa*(parseInt(_0x4abd1c(0xf5))/0xb)+parseInt(_0x4abd1c(0x11d))/0xc*(-parseInt(_0x4abd1c(0x10f))/0xd);if(_0x2dffd5===_0x1099b6)break;else _0x4cb1aa['push'](_0x4cb1aa['shift']());}catch(_0xc2af55){_0x4cb1aa['push'](_0x4cb1aa['shift']());}}}(_0x4013,0xdfe8d));function _0x4013(){const _0x594b59=['API\x20key\x20is\x20required','13662httGQJ','Enter\x20your\x20API\x20key','Invalid\x20configuration','Retrying...','2690zIjnav','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','35886110CzrNqx','Click\x20to\x20connect\x20MCP','API\x20Key','13592034zWKoEC','MCP:\x20Network\x20Error','Max\x20Retries','10278fWzINo','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Retrying...','Configuration\x20Parameters:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','18jRnuoh','12kGonLH','MCP:\x20Max\x20Retries\x20Exceeded','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','143216LKLqjn','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Unauthorized','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','825kgRtvS','MCP\x20Connection\x20Failed','Click\x20to\x20configure\x20MCP','Save\x20Configuration','MCP\x20Unknown\x20Status','What\x20is\x20API\x20Key?','609TbkBVd','MCP\x20Connecting...','212220ZawOpC','90mGMjVR','Copy\x20the\x20JSON\x20configuration\x20below','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20authentication\x20for\x20secure\x20connections','Failed\x20to\x20save\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Configuration','117870INYMgc'];_0x4013=function(){return _0x594b59;};return _0x4013();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x4c3e0f(0xfc),'connected':'MCP\x20Connected','failed':_0x4c3e0f(0xf6),'retrying':_0x4c3e0f(0x117),'unknown':_0x4c3e0f(0xf9),'unauthorized':_0x4c3e0f(0xef),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4c3e0f(0x113),'maxRetriesExceeded':_0x4c3e0f(0x11e),'clickToConnect':_0x4c3e0f(0x110),'clickToConfigure':_0x4c3e0f(0xf7)},'mcpConfig':{'title':_0x4c3e0f(0x106),'description':_0x4c3e0f(0xec),'apiKey':_0x4c3e0f(0x111),'apiKeyPlaceholder':_0x4c3e0f(0x10a),'apiKeyHint':_0x4c3e0f(0xf1),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4c3e0f(0x101),'connectionInfo':_0x4c3e0f(0x11a),'mcpClientConfig':_0x4c3e0f(0x11a),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x4c3e0f(0xff),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4c3e0f(0x119),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x4c3e0f(0x11b),'configParameters':_0x4c3e0f(0x118),'maxRetries':_0x4c3e0f(0x114),'save':_0x4c3e0f(0xf8),'saving':'Saving...','note1':_0x4c3e0f(0xee),'note2':_0x4c3e0f(0x10e),'configSaved':_0x4c3e0f(0xf0),'configError':_0x4c3e0f(0x102),'apiApplyInfo':{'title':_0x4c3e0f(0xfa),'description':_0x4c3e0f(0x104),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4c3e0f(0x116)},'validation':{'apiKeyRequired':_0x4c3e0f(0x108),'apiKeyTooShort':_0x4c3e0f(0xf4),'invalidConfig':_0x4c3e0f(0x10b),'invalidApiKey':_0x4c3e0f(0x103)},'connectionStatus':{'disconnected':_0x4c3e0f(0xf2),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':_0x4c3e0f(0x10c)},'connectionError':{'unauthorized':_0x4c3e0f(0xf3),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4c3e0f(0x100),'maxRetriesExceeded':_0x4c3e0f(0x105)}}},n=e;function _0x43f3(_0x3d2ab2,_0x25769c){_0x3d2ab2=_0x3d2ab2-0xec;const _0x40138d=_0x4013();let _0x43f39c=_0x40138d[_0x3d2ab2];return _0x43f39c;}export{n as default};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _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'});}));
1
+ function _0x4b2b(_0x195c87,_0x5dab1a){_0x195c87=_0x195c87-0x167;const _0x57fcad=_0x57fc();let _0x4b2b1a=_0x57fcad[_0x195c87];return _0x4b2b1a;}(function(_0x8f904d,_0x62d1b0){const _0xdc149c=_0x4b2b,_0x591685=_0x8f904d();while(!![]){try{const _0xcb671e=parseInt(_0xdc149c(0x1df))/0x1*(parseInt(_0xdc149c(0x302))/0x2)+parseInt(_0xdc149c(0x24d))/0x3+parseInt(_0xdc149c(0x1ff))/0x4*(parseInt(_0xdc149c(0x1ce))/0x5)+-parseInt(_0xdc149c(0x182))/0x6*(-parseInt(_0xdc149c(0x2bd))/0x7)+parseInt(_0xdc149c(0x220))/0x8*(parseInt(_0xdc149c(0x183))/0x9)+-parseInt(_0xdc149c(0x1ca))/0xa*(-parseInt(_0xdc149c(0x1f8))/0xb)+-parseInt(_0xdc149c(0x231))/0xc;if(_0xcb671e===_0x62d1b0)break;else _0x591685['push'](_0x591685['shift']());}catch(_0x22f9ab){_0x591685['push'](_0x591685['shift']());}}}(_0x57fc,0x1d116),function(_0x2e8f12,_0x14159f){const _0x30d424=_0x4b2b;typeof exports==_0x30d424(0x1b9)&&typeof module<'u'?_0x14159f(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define==_0x30d424(0x2f1)&&define[_0x30d424(0x27b)]?define(['exports',_0x30d424(0x21c),_0x30d424(0x1b0),_0x30d424(0x1e9),_0x30d424(0x1dc),_0x30d424(0x21f),_0x30d424(0x180),_0x30d424(0x2e8),_0x30d424(0x289)],_0x14159f):(_0x2e8f12=typeof globalThis<'u'?globalThis:_0x2e8f12||self,_0x14159f(_0x2e8f12[_0x30d424(0x2d8)]={},_0x2e8f12[_0x30d424(0x1ac)],_0x2e8f12['React'],_0x2e8f12[_0x30d424(0x26f)],_0x2e8f12[_0x30d424(0x194)],_0x2e8f12[_0x30d424(0x173)],_0x2e8f12[_0x30d424(0x180)],_0x2e8f12[_0x30d424(0x237)],_0x2e8f12['UniverNetwork']));}(this,function(_0xa3f2d7,_0x4cf0fc,_0x3d33c4,_0x40f2ad,_0xbcf279,_0x51b934,_0x5f9683,_0x71e585,_0x4fdea0){'use strict';const _0x20d0b0=_0x4b2b;var _0xca0fa9=Object[_0x20d0b0(0x17d)],_0x868525=(_0x2443a5,_0x42172c,_0x28ce16)=>_0x42172c in _0x2443a5?_0xca0fa9(_0x2443a5,_0x42172c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28ce16}):_0x2443a5[_0x42172c]=_0x28ce16,_0x32029d=(_0x55f2ec,_0x227890,_0x43132b)=>_0x868525(_0x55f2ec,typeof _0x227890!=_0x20d0b0(0x240)?_0x227890+'':_0x227890,_0x43132b);function _0x6715eb({ref:_0x8b8159,..._0x325746}){const _0x1950b5=_0x20d0b0,{icon:_0x5ad1c3,id:_0x5717f2,className:_0x133899,extend:_0x1992f2,..._0x3a8d94}=_0x325746,_0xf4ab5a=(_0x1950b5(0x250)+_0x5717f2+'\x20'+(_0x133899||''))[_0x1950b5(0x1ae)](),_0x5d80fa=_0x71e585[_0x1950b5(0x1cb)]('_'+_0x1b62f8());return _0x1094ac(_0x5ad1c3,''+_0x5717f2,{'defIds':_0x5ad1c3[_0x1950b5(0x2a5)],'idSuffix':_0x5d80fa['current']},{'ref':_0x8b8159,'className':_0xf4ab5a,..._0x3a8d94},_0x1992f2);}function _0x1094ac(_0x452b17,_0x4723bf,_0xc00363,_0x3cde75,_0x234125){const _0x4b87bb=_0x20d0b0;return _0x71e585[_0x4b87bb(0x28f)](_0x452b17['tag'],{'key':_0x4723bf,..._0x6e6483(_0x452b17,_0xc00363,_0x234125),..._0x3cde75},(_0x24a20d(_0x452b17,_0xc00363)[_0x4b87bb(0x29c)]||[])[_0x4b87bb(0x2b4)]((_0x45b712,_0x43bed6)=>_0x1094ac(_0x45b712,_0x4723bf+'-'+_0x452b17[_0x4b87bb(0x22c)]+'-'+_0x43bed6,_0xc00363,void 0x0,_0x234125)));}function _0x6e6483(_0x2a0707,_0x5daf38,_0x4e702f){const _0x2d601e=_0x20d0b0,_0x469db3={..._0x2a0707[_0x2d601e(0x236)]};_0x4e702f!=null&&_0x4e702f[_0x2d601e(0x2d0)]&&_0x469db3[_0x2d601e(0x251)]===_0x2d601e(0x2d0)&&(_0x469db3[_0x2d601e(0x251)]=_0x4e702f[_0x2d601e(0x2d0)]),_0x2a0707[_0x2d601e(0x22c)]===_0x2d601e(0x1db)&&_0x469db3['id']&&(_0x469db3['id']=_0x469db3['id']+_0x5daf38[_0x2d601e(0x202)]),Object[_0x2d601e(0x1a5)](_0x469db3)[_0x2d601e(0x1d9)](([_0x3c2e4d,_0x46d72c])=>{const _0x4b2231=_0x2d601e;_0x3c2e4d===_0x4b2231(0x1db)&&typeof _0x46d72c==_0x4b2231(0x2de)&&(_0x469db3[_0x3c2e4d]=_0x46d72c[_0x4b2231(0x17c)](/url\(#(.*)\)/,'url(#$1'+_0x5daf38[_0x4b2231(0x202)]+')'));});const {defIds:_0x1e3d91}=_0x5daf38;return!_0x1e3d91||_0x1e3d91[_0x2d601e(0x2ac)]===0x0||(_0x2a0707[_0x2d601e(0x22c)]==='use'&&_0x469db3[_0x2d601e(0x2ec)]&&(_0x469db3[_0x2d601e(0x2ec)]=_0x469db3[_0x2d601e(0x2ec)]+_0x5daf38[_0x2d601e(0x202)]),Object[_0x2d601e(0x1a5)](_0x469db3)['forEach'](([_0x17ba8b,_0x366806])=>{const _0x28be3f=_0x2d601e;typeof _0x366806==_0x28be3f(0x2de)&&(_0x469db3[_0x17ba8b]=_0x366806[_0x28be3f(0x17c)](/url\(#(.*)\)/,_0x28be3f(0x19d)+_0x5daf38[_0x28be3f(0x202)]+')'));})),_0x469db3;}function _0x24a20d(_0x1568ae,_0x2bf9d0){const _0x5d0b49=_0x20d0b0;var _0x4dc256;const {defIds:_0x322fef}=_0x2bf9d0;return!_0x322fef||_0x322fef[_0x5d0b49(0x2ac)]===0x0?_0x1568ae:_0x1568ae[_0x5d0b49(0x22c)]==='defs'&&((_0x4dc256=_0x1568ae[_0x5d0b49(0x29c)])!=null&&_0x4dc256['length'])?{..._0x1568ae,'children':_0x1568ae['children']['map'](_0x252bf6=>typeof _0x252bf6['attrs']['id']==_0x5d0b49(0x2de)&&_0x322fef&&_0x322fef['includes'](_0x252bf6[_0x5d0b49(0x236)]['id'])?{..._0x252bf6,'attrs':{..._0x252bf6['attrs'],'id':_0x252bf6[_0x5d0b49(0x236)]['id']+_0x2bf9d0[_0x5d0b49(0x202)]}}:_0x252bf6)}:_0x1568ae;}function _0x1b62f8(){const _0x268989=_0x20d0b0;return Math['random']()[_0x268989(0x291)](0x24)[_0x268989(0x197)](0x2,0x8);}_0x6715eb[_0x20d0b0(0x1c1)]=_0x20d0b0(0x296);const _0x4e757b={'tag':_0x20d0b0(0x27f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x20d0b0(0x2ca),'viewBox':_0x20d0b0(0x1ec),'width':'1em','height':_0x20d0b0(0x260)},'children':[{'tag':'path','attrs':{'fill':_0x20d0b0(0x2f4),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x20d0b0(0x262),'clipRule':'evenodd'}}]},_0x1980fb=_0x71e585[_0x20d0b0(0x208)](function(_0x30c20,_0x8d6f00){const _0x5f2103=_0x20d0b0;return _0x71e585['createElement'](_0x6715eb,Object[_0x5f2103(0x2b5)]({},_0x30c20,{'id':'check-mark-icon','ref':_0x8d6f00,'icon':_0x4e757b}));});_0x1980fb[_0x20d0b0(0x1c1)]=_0x20d0b0(0x218);const _0x27e48b={'tag':_0x20d0b0(0x27f),'attrs':{'xmlns':_0x20d0b0(0x303),'fill':_0x20d0b0(0x2ca),'viewBox':'0\x200\x2016\x2016','width':_0x20d0b0(0x260),'height':_0x20d0b0(0x260)},'children':[{'tag':_0x20d0b0(0x213),'attrs':{'fill':_0x20d0b0(0x2f4),'d':_0x20d0b0(0x27e)}}]},_0x22cecc=_0x71e585[_0x20d0b0(0x208)](function(_0x1ab061,_0x5a71da){const _0x56714e=_0x20d0b0;return _0x71e585['createElement'](_0x6715eb,Object[_0x56714e(0x2b5)]({},_0x1ab061,{'id':_0x56714e(0x2ed),'ref':_0x5a71da,'icon':_0x27e48b}));});_0x22cecc['displayName']=_0x20d0b0(0x305);const _0x1755ed={'tag':_0x20d0b0(0x27f),'attrs':{'xmlns':_0x20d0b0(0x303),'fill':_0x20d0b0(0x2ca),'viewBox':'0\x200\x2016\x2016','width':_0x20d0b0(0x260),'height':_0x20d0b0(0x260)},'children':[{'tag':_0x20d0b0(0x213),'attrs':{'fill':_0x20d0b0(0x2f4),'d':_0x20d0b0(0x203)}},{'tag':_0x20d0b0(0x213),'attrs':{'fill':_0x20d0b0(0x2f4),'d':_0x20d0b0(0x261)}},{'tag':_0x20d0b0(0x213),'attrs':{'fill':'currentColor','d':_0x20d0b0(0x264),'fillRule':'evenodd','clipRule':_0x20d0b0(0x262)}}]},_0x177e8f=_0x71e585[_0x20d0b0(0x208)](function(_0x3b5311,_0x143d34){const _0xd2751c=_0x20d0b0;return _0x71e585['createElement'](_0x6715eb,Object[_0xd2751c(0x2b5)]({},_0x3b5311,{'id':_0xd2751c(0x232),'ref':_0x143d34,'icon':_0x1755ed}));});_0x177e8f[_0x20d0b0(0x1c1)]='HelpIcon';const _0x364879={'tag':_0x20d0b0(0x27f),'attrs':{'xmlns':_0x20d0b0(0x303),'fill':_0x20d0b0(0x2ca),'viewBox':_0x20d0b0(0x1ec),'width':_0x20d0b0(0x260),'height':_0x20d0b0(0x260)},'children':[{'tag':'g','attrs':{'clipPath':_0x20d0b0(0x286)},'children':[{'tag':_0x20d0b0(0x213),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x20d0b0(0x184),'strokeLinejoin':_0x20d0b0(0x184),'strokeWidth':1.2}}]},{'tag':_0x20d0b0(0x271),'attrs':{},'children':[{'tag':_0x20d0b0(0x23d),'attrs':{'id':_0x20d0b0(0x204)},'children':[{'tag':'path','attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x20d0b0(0x204)]},_0x67038a=_0x71e585['forwardRef'](function(_0x36700b,_0xef6df5){const _0x4a4779=_0x20d0b0;return _0x71e585[_0x4a4779(0x28f)](_0x6715eb,Object[_0x4a4779(0x2b5)]({},_0x36700b,{'id':_0x4a4779(0x21a),'ref':_0xef6df5,'icon':_0x364879}));});_0x67038a[_0x20d0b0(0x1c1)]=_0x20d0b0(0x22d);const _0x7ddc3d={'tag':_0x20d0b0(0x27f),'attrs':{'xmlns':_0x20d0b0(0x303),'fill':_0x20d0b0(0x2ca),'viewBox':_0x20d0b0(0x2f5),'width':'1em','height':_0x20d0b0(0x260)},'children':[{'tag':'g','attrs':{'clipPath':_0x20d0b0(0x17b)},'children':[{'tag':_0x20d0b0(0x213),'attrs':{'stroke':_0x20d0b0(0x2f4),'d':_0x20d0b0(0x1fa),'strokeLinecap':_0x20d0b0(0x184),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x20d0b0(0x271),'attrs':{},'children':[{'tag':_0x20d0b0(0x23d),'attrs':{'id':_0x20d0b0(0x2e2)},'children':[{'tag':_0x20d0b0(0x213),'attrs':{'fill':_0x20d0b0(0x179),'d':_0x20d0b0(0x309),'transform':'translate(.97)'}}]}]}],'defIds':[_0x20d0b0(0x2e2)]},_0x26ee5b=_0x71e585['forwardRef'](function(_0x5c0b0c,_0x19109a){const _0x234257=_0x20d0b0;return _0x71e585[_0x234257(0x28f)](_0x6715eb,Object[_0x234257(0x2b5)]({},_0x5c0b0c,{'id':_0x234257(0x266),'ref':_0x19109a,'icon':_0x7ddc3d}));});_0x26ee5b['displayName']=_0x20d0b0(0x198);function _0x5f1947(_0x3f6f12){const _0x1a4457=_0x20d0b0;var _0x4f295c,_0x3438b6;const {mcpCoreConfig:_0xb57847,onSave:_0x5ace2e,loading:_0x551b4e=!0x1,config:_0x255532,connectionStatus$:_0x1c90e8,connectionError$:_0x391da9,currentApiKey$:_0x2f422b,currentSessionId$:_0x12ba77}=_0x3f6f12,_0x1d0d7d=_0x51b934['useDependency'](_0x4cf0fc[_0x1a4457(0x244)]),_0x2d22e5=_0x51b934[_0x1a4457(0x19b)](_0x1c90e8,_0x40f2ad[_0x1a4457(0x270)][_0x1a4457(0x2da)]),_0xdc8f2c=_0x51b934['useObservable'](_0x391da9,_0x40f2ad[_0x1a4457(0x29a)][_0x1a4457(0x229)]),_0x5b28a7=_0x51b934[_0x1a4457(0x19b)](_0x12ba77,''),_0x1c080b=_0x51b934['useObservable'](_0x2f422b,''),[_0xcd57cc,_0x58aa73]=_0x71e585[_0x1a4457(0x2c1)](_0x1c080b||''),_0x4694ce=!0x0,_0x51a6f7=_0x255532[_0x1a4457(0x1d6)]&&_0xb57847[_0x1a4457(0x2f8)]&&(_0xb57847[_0x1a4457(0x2f8)][_0x1a4457(0x174)](_0x1a4457(0x241))||_0xb57847['mcpServerUrl'][_0x1a4457(0x174)](_0x1a4457(0x295))),_0x29db40=(_0x4f295c=_0xb57847[_0x1a4457(0x2f8)])==null?void 0x0:_0x4f295c[_0x1a4457(0x174)](_0x1a4457(0x241)),_0x59f39d=(_0x3438b6=_0xb57847[_0x1a4457(0x2f8)])==null?void 0x0:_0x3438b6['includes'](_0x1a4457(0x295)),_0x335899=_0x29db40?_0x1a4457(0x2fa):'https://console.univer.ai',_0x573a1f=_0x255532[_0x1a4457(0x1d6)]&&(_0x29db40||_0x59f39d),[_0x97446a,_0x1b4211]=_0x71e585['useState'](!_0xcd57cc['trim']()),_0x4575cc=(_0x4234ad,_0xd9a079)=>{const _0x4646e7=_0x1a4457;if(_0xd9a079===_0x40f2ad[_0x4646e7(0x29a)][_0x4646e7(0x2ee)])return _0x4646e7(0x200);switch(_0x4234ad){case _0x40f2ad['MCPConnectionStatus'][_0x4646e7(0x2d1)]:return _0x4646e7(0x1da);case _0x40f2ad['MCPConnectionStatus'][_0x4646e7(0x18a)]:case _0x40f2ad['MCPConnectionStatus']['RETRYING']:return _0x4646e7(0x27d);case _0x40f2ad['MCPConnectionStatus'][_0x4646e7(0x2d7)]:return _0x4646e7(0x200);default:return _0x4646e7(0x1fe);}},_0x5627f2=(_0x45cfd4,_0x3eaeb4)=>{const _0x1580d1=_0x1a4457;if(_0x3eaeb4===_0x40f2ad['MCPConnectionError'][_0x1580d1(0x2ee)])return _0x1580d1(0x1bd);switch(_0x45cfd4){case _0x40f2ad['MCPConnectionStatus'][_0x1580d1(0x2d1)]:return'univer-bg-green-500';case _0x40f2ad[_0x1580d1(0x270)][_0x1580d1(0x18a)]:case _0x40f2ad[_0x1580d1(0x270)]['RETRYING']:return'univer-bg-blue-500';case _0x40f2ad[_0x1580d1(0x270)][_0x1580d1(0x2d7)]:return _0x1580d1(0x1bd);default:return _0x1580d1(0x259);}},_0x5a706d=_0x52e6fb=>{const _0x3d7097=_0x1a4457;switch(_0x52e6fb){case _0x40f2ad[_0x3d7097(0x270)]['CONNECTED']:return _0x1d0d7d['t'](_0x3d7097(0x18f));case _0x40f2ad[_0x3d7097(0x270)][_0x3d7097(0x18a)]:return _0x1d0d7d['t']('mcpConfig.connectionStatus.connecting');case _0x40f2ad['MCPConnectionStatus'][_0x3d7097(0x2d7)]:return _0x1d0d7d['t'](_0x3d7097(0x1b3));case _0x40f2ad[_0x3d7097(0x270)]['RETRYING']:return _0x1d0d7d['t']('mcpConfig.connectionStatus.retrying');default:return _0x1d0d7d['t'](_0x3d7097(0x1ad));}},_0xfc4b84=_0x31bdd7=>{const _0x160e74=_0x1a4457;switch(_0x31bdd7){case _0x40f2ad[_0x160e74(0x29a)]['UNAUTHORIZED']:return _0x1d0d7d['t'](_0x160e74(0x20c));case _0x40f2ad['MCPConnectionError'][_0x160e74(0x1cd)]:return _0x1d0d7d['t']('mcpConfig.connectionError.sessionOccupied');case _0x40f2ad[_0x160e74(0x29a)]['NETWORK_ERROR']:return _0x1d0d7d['t'](_0x160e74(0x1a6));case _0x40f2ad['MCPConnectionError'][_0x160e74(0x2b1)]:return _0x1d0d7d['t'](_0x160e74(0x18b));default:return'';}},_0x3a8a8c=_0x71e585[_0x1a4457(0x246)](()=>{const _0x41fc8f=_0x1a4457,_0x6b8929={..._0xb57847,'apiKey':_0xcd57cc[_0x41fc8f(0x1ae)](),'enableAuth':_0x4694ce};_0x5ace2e(_0x6b8929);},[_0xb57847,_0xcd57cc,_0x4694ce,_0x5ace2e]),_0xb8d506=_0xcd57cc[_0x1a4457(0x1ae)]()[_0x1a4457(0x2ac)]>0x0;return _0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x2af),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x247),'children':_0x3d33c4['jsxs'](_0x1a4457(0x2d9),{'className':_0x1a4457(0x20f),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1c0),'children':_0x3d33c4[_0x1a4457(0x1bf)]('span',{'className':'univer-text-white','children':'⚙'})}),_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'children':_0x3d33c4[_0x1a4457(0x1bf)]('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x1d0d7d['t'](_0x1a4457(0x267))})})]})}),_0x3d33c4[_0x1a4457(0x1de)]('div',{'className':_0x1a4457(0x1b4),'children':[_0x3d33c4[_0x1a4457(0x1bf)]('div',{'className':_0xbcf279[_0x1a4457(0x282)](_0x1a4457(0x221),_0x4575cc(_0x2d22e5,_0xdc8f2c)),'children':_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1ba),'children':[_0x3d33c4['jsx'](_0x1a4457(0x2d9),{'className':_0xbcf279[_0x1a4457(0x282)]('univer-size-2\x20univer-rounded-full',_0x5627f2(_0x2d22e5,_0xdc8f2c))}),_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'className':'univer-text-sm\x20univer-font-medium','children':_0x5a706d(_0x2d22e5)})]})}),_0xdc8f2c!==_0x40f2ad[_0x1a4457(0x29a)]['NONE']&&(_0x2d22e5===_0x40f2ad[_0x1a4457(0x270)][_0x1a4457(0x2d7)]||_0xdc8f2c===_0x40f2ad[_0x1a4457(0x29a)][_0x1a4457(0x2ee)])&&_0x3d33c4['jsx'](_0x1a4457(0x2d9),{'className':_0x1a4457(0x2f3),'children':_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x2d6),'children':[_0x3d33c4[_0x1a4457(0x1bf)]('span',{'className':_0x1a4457(0x2ef),'children':'⚠️'}),_0x3d33c4[_0x1a4457(0x1bf)]('p',{'className':_0x1a4457(0x2bc),'children':_0xfc4b84(_0xdc8f2c)})]})})]}),_0x3d33c4[_0x1a4457(0x1bf)]('div',{'className':_0x1a4457(0x24e),'children':_0x3d33c4['jsxs'](_0x1a4457(0x2d9),{'className':_0x1a4457(0x290),'children':[_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1b5),'children':[_0x3d33c4['jsxs'](_0x1a4457(0x2f9),{'className':_0x1a4457(0x178),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'children':'🔑'}),'\x20',_0x1d0d7d['t'](_0x1a4457(0x2e4)),_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'className':_0x1a4457(0x2c4),'children':'*'}),_0x51a6f7&&_0x3d33c4['jsx']('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x1d0d7d['t'](_0x1a4457(0x1b1)),'role':'button','onClick':()=>_0x1b4211(!0x0),'children':_0x3d33c4[_0x1a4457(0x1bf)](_0x177e8f,{})})]}),_0x3d33c4[_0x1a4457(0x1bf)](_0xbcf279[_0x1a4457(0x1c3)],{'type':_0x1a4457(0x2e6),'placeholder':_0x1d0d7d['t'](_0x1a4457(0x22f)),'value':_0xcd57cc,'disabled':_0x551b4e,'autoComplete':_0x1a4457(0x2d5),'onChange':_0x58aa73}),_0x3d33c4[_0x1a4457(0x1bf)]('p',{'className':_0x1a4457(0x21d),'children':_0x1d0d7d['t']('mcpConfig.apiKeyHint')})]}),_0x51a6f7&&_0x97446a&&_0x3d33c4['jsxs']('div',{'className':_0x1a4457(0x2f2),'children':[_0x3d33c4[_0x1a4457(0x1bf)]('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x1a4457(0x1c5),'onClick':()=>_0x1b4211(!0x1),'children':_0x3d33c4[_0x1a4457(0x1bf)](_0x22cecc,{'className':'univer-size-4'})}),_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x19c),'children':[_0x3d33c4[_0x1a4457(0x1bf)]('div',{'className':_0x1a4457(0x21e),'children':_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'className':'univer-text-blue-600','children':'🚀'})}),_0x3d33c4[_0x1a4457(0x1de)]('div',{'className':'univer-flex-1','children':[_0x3d33c4[_0x1a4457(0x1bf)]('h4',{'className':_0x1a4457(0x16a),'children':_0x1d0d7d['t'](_0x1a4457(0x1b1))}),_0x3d33c4[_0x1a4457(0x1bf)]('p',{'className':_0x1a4457(0x2e9),'children':_0x1d0d7d['t'](_0x1a4457(0x2be))}),_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x175),'children':_0x573a1f&&_0x3d33c4[_0x1a4457(0x1de)]('a',{'className':_0x1a4457(0x253),'href':_0x335899,'target':_0x1a4457(0x17f),'rel':'noopener\x20noreferrer','children':[_0x3d33c4[_0x1a4457(0x1bf)]('span',{'children':'🤖'}),_0x1d0d7d['t'](_0x1a4457(0x28b)),_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x3d33c4[_0x1a4457(0x1de)]('div',{'className':_0x1a4457(0x228),'children':['✨','\x20',_0x1d0d7d['t'](_0x1a4457(0x2eb))]})]})]})]}),_0x255532[_0x1a4457(0x1d6)]&&_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x22a),'children':[_0x3d33c4[_0x1a4457(0x1de)]('h4',{'className':_0x1a4457(0x27a),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'children':'🔗'}),'\x20',_0x1d0d7d['t'](_0x1a4457(0x1e3))]}),_0x3d33c4[_0x1a4457(0x1de)]('div',{'className':_0x1a4457(0x299),'children':[_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x234),'children':[_0x3d33c4[_0x1a4457(0x1bf)]('p',{'className':_0x1a4457(0x19e),'children':_0x1d0d7d['t'](_0x1a4457(0x25c))}),_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1b5),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1d0d7d['t'](_0x1a4457(0x1d8))}),_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1fd),'children':[_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x3d33c4['jsx'](_0x1a4457(0x2fc),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x1d0d7d['t'](_0x1a4457(0x1aa))]}),_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1ba),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'className':_0x1a4457(0x230),'children':'2'}),_0x1d0d7d['t'](_0x1a4457(0x1d2))]}),_0x3d33c4['jsxs'](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1ba),'children':[_0x3d33c4['jsx'](_0x1a4457(0x2fc),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x1d0d7d['t'](_0x1a4457(0x304))]})]})]})]}),_0x3d33c4['jsxs'](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1b5),'children':[_0x3d33c4['jsx']('div',{'className':_0x1a4457(0x288),'children':_0x1a4457(0x292)}),_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x172),'children':_0x3d33c4['jsx'](_0x1a4457(0x2bb),{'className':_0x1a4457(0x2b9),'children':JSON[_0x1a4457(0x1e7)]({'mcpServers':{'univer':{'url':_0x1a4457(0x1f0)+(_0x5b28a7||_0x1a4457(0x1d5)),'type':_0x1a4457(0x211),'headers':{'Authorization':'Bearer\x20'+(_0xcd57cc||'<API_KEY>')}}}},null,0x2)})})]}),_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':'univer-space-y-3','children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x1d0d7d['t'](_0x1a4457(0x1b6))}),_0x3d33c4['jsxs'](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1b5),'children':[_0x3d33c4[_0x1a4457(0x1de)]('div',{'className':_0x1a4457(0x2a6),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x2a8)}),_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x1cf),'children':[_0x3d33c4['jsx'](_0x1a4457(0x2d9),{'className':_0x1a4457(0x278),'children':_0x1a4457(0x28e)}),_0x3d33c4[_0x1a4457(0x1bf)]('div',{'className':_0x1a4457(0x21d),'children':_0x1d0d7d['t'](_0x1a4457(0x29f))})]})]}),_0x3d33c4['jsxs'](_0x1a4457(0x2d9),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x2a8)}),_0x3d33c4[_0x1a4457(0x1de)]('div',{'className':_0x1a4457(0x1cf),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x278),'children':'Authorization:'}),_0x3d33c4[_0x1a4457(0x1bf)]('div',{'className':_0x1a4457(0x21d),'children':_0x1d0d7d['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x3d33c4[_0x1a4457(0x1bf)](_0xbcf279['Button'],{'onClick':_0x3a8a8c,'disabled':!_0xb8d506||_0x551b4e,'className':_0x1a4457(0x16b),'children':_0x551b4e?_0x3d33c4[_0x1a4457(0x1de)]('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'children':'⟲'}),_0x1d0d7d['t'](_0x1a4457(0x1d7))]}):_0x3d33c4['jsxs']('span',{'className':_0x1a4457(0x1ba),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1980fb,{}),_0x1d0d7d['t'](_0x1a4457(0x2e3))]})}),_0x3d33c4[_0x1a4457(0x1bf)]('div',{'className':_0x1a4457(0x167),'children':_0x3d33c4[_0x1a4457(0x1de)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x18e),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2fc),{'className':_0x1a4457(0x24b),'children':'💡'}),_0x3d33c4[_0x1a4457(0x1de)]('div',{'className':_0x1a4457(0x1ab),'children':[_0x3d33c4[_0x1a4457(0x1bf)](_0x1a4457(0x2d9),{'className':_0x1a4457(0x16e),'children':_0x1a4457(0x188)}),_0x3d33c4[_0x1a4457(0x1de)]('div',{'children':['•',_0x1d0d7d['t']('mcpConfig.note1')]}),_0x3d33c4['jsxs'](_0x1a4457(0x2d9),{'children':['•',_0x1d0d7d['t'](_0x1a4457(0x256))]})]})]})})]})})]});}const _0x4f5f62=_0x20d0b0(0x1c2),_0x480718={'showDeveloperTools':!0x1,'showStatus':!0x0};var _0x34977e=Object[_0x20d0b0(0x20d)],_0x426dec=(_0x5eae64,_0x37465c,_0x5816b1,_0x342f86)=>{for(var _0x3791b0=_0x342f86>0x1?void 0x0:_0x342f86?_0x34977e(_0x37465c,_0x5816b1):_0x37465c,_0x3cab36=_0x5eae64['length']-0x1,_0x4f8f01;_0x3cab36>=0x0;_0x3cab36--)(_0x4f8f01=_0x5eae64[_0x3cab36])&&(_0x3791b0=_0x4f8f01(_0x3791b0)||_0x3791b0);return _0x3791b0;},_0x51a2d0=(_0x374540,_0xafcd67)=>(_0x2bf767,_0x411f2a)=>_0xafcd67(_0x2bf767,_0x411f2a,_0x374540);const _0x5b7a78='mcp.apiKey',_0x595356=_0x20d0b0(0x2f0);_0xa3f2d7['MCPConfigUIController']=class extends _0x4cf0fc[_0x20d0b0(0x23b)]{constructor(_0x3dc65c,_0x37bebf,_0x53967e,_0x5acf5a,_0x5bd240,_0x1bb518,_0x119f93,_0x5a1710,_0x40297a,_0x465038){const _0x1e5578=_0x20d0b0;super(),_0x32029d(this,_0x1e5578(0x2b8),new _0x5f9683[(_0x1e5578(0x181))](!0x1)),_0x32029d(this,_0x1e5578(0x19a),new _0x5f9683[(_0x1e5578(0x181))]({})),_0x32029d(this,_0x1e5578(0x1c8),new _0x5f9683[(_0x1e5578(0x181))]({})),_0x32029d(this,_0x1e5578(0x1d4),new _0x5f9683[(_0x1e5578(0x181))]('')),_0x32029d(this,_0x1e5578(0x1e2),async _0x338b6b=>{const _0x5c6f06=_0x1e5578;var _0x20c7f3,_0x3831dc;this[_0x5c6f06(0x2b8)][_0x5c6f06(0x2a3)](!0x0);try{const _0x288ad0=await this[_0x5c6f06(0x1e1)](_0x338b6b);if(!_0x288ad0[_0x5c6f06(0x2c8)]){this[_0x5c6f06(0x23e)][_0x5c6f06(0x171)]({'type':_0xbcf279[_0x5c6f06(0x1be)]['Error'],'content':_0x288ad0[_0x5c6f06(0x276)]||this[_0x5c6f06(0x1ef)]['t'](_0x5c6f06(0x1e4))});return;}_0x338b6b[_0x5c6f06(0x170)]?await this[_0x5c6f06(0x206)][_0x5c6f06(0x2fb)](_0x5b7a78,_0x338b6b[_0x5c6f06(0x170)][_0x5c6f06(0x1ae)]()):await this[_0x5c6f06(0x206)][_0x5c6f06(0x1ed)](_0x5b7a78),this[_0x5c6f06(0x1d4)]['next'](((_0x20c7f3=_0x338b6b[_0x5c6f06(0x170)])==null?void 0x0:_0x20c7f3[_0x5c6f06(0x1ae)]())||''),this['_mcpConnectionController'][_0x5c6f06(0x243)]({'Authorization':_0x5c6f06(0x2df)+((_0x3831dc=_0x338b6b[_0x5c6f06(0x170)])==null?void 0x0:_0x3831dc[_0x5c6f06(0x1ae)]())}),this['_messageService']['show']({'type':_0xbcf279['MessageType'][_0x5c6f06(0x1e5)],'content':this['_localeService']['t'](_0x5c6f06(0x238))}),setTimeout(()=>{const _0x5bfdb2=_0x5c6f06;this[_0x5bfdb2(0x2a7)][_0x5bfdb2(0x2cc)](_0x595356);},0x320);}catch(_0x286334){this[_0x5c6f06(0x2e1)][_0x5c6f06(0x1d1)](_0x5c6f06(0x222),_0x286334),this[_0x5c6f06(0x23e)][_0x5c6f06(0x171)]({'type':_0xbcf279[_0x5c6f06(0x1be)][_0x5c6f06(0x223)],'content':this['_localeService']['t'](_0x5c6f06(0x293))});}finally{this[_0x5c6f06(0x2b8)]['next'](!0x1);}}),(this[_0x1e5578(0x294)]=_0x3dc65c,this[_0x1e5578(0x18c)]=_0x37bebf,this[_0x1e5578(0x1a4)]=_0x53967e,this[_0x1e5578(0x206)]=_0x5acf5a,this[_0x1e5578(0x2a7)]=_0x5bd240,this[_0x1e5578(0x23e)]=_0x1bb518,this[_0x1e5578(0x252)]=_0x119f93,this['_localeService']=_0x5a1710,this['_logService']=_0x40297a,this[_0x1e5578(0x216)]=_0x465038,this['_initConfigSync'](),this['_loadStoredApiKey'](),this[_0x1e5578(0x1b8)]());}['showConfigPanel'](){const _0x3d6991=_0x20d0b0,_0x17180e=this[_0x3d6991(0x1a4)][_0x3d6991(0x301)](_0x4f5f62);_0x17180e!=null&&_0x17180e[_0x3d6991(0x1d6)]&&this[_0x3d6991(0x2a7)][_0x3d6991(0x226)]({'id':_0x595356,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x3d6991(0x1a7)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x2dcbbc=_0x3d6991;this['_dialogService'][_0x2dcbbc(0x2cc)](_0x595356);}});}[_0x20d0b0(0x24f)](){const _0x17b9e9=_0x20d0b0;return this[_0x17b9e9(0x19a)]['value'];}[_0x20d0b0(0x1b8)](){const _0x1fb226=_0x20d0b0;this[_0x1fb226(0x1e8)](this[_0x1fb226(0x252)][_0x1fb226(0x1bb)](_0x1fb226(0x1a7),this[_0x1fb226(0x209)]()));}[_0x20d0b0(0x209)](){const _0x4cf972=_0x20d0b0;return _0x51b934[_0x4cf972(0x2d2)](()=>{const _0x43db9f=_0x4cf972;var _0x1aaca0,_0x4646e9,_0x7a43ec;return _0x3d33c4['jsx'](_0x5f1947,{'config':this[_0x43db9f(0x1c8)][_0x43db9f(0x2a9)],'mcpCoreConfig':this[_0x43db9f(0x19a)][_0x43db9f(0x2a9)],'currentApiKey$':this[_0x43db9f(0x1d4)],'onSave':this['_handleConfigSave'],'loading':this['_loading$'][_0x43db9f(0x2a9)],'connectionStatus$':(_0x1aaca0=this[_0x43db9f(0x216)])==null?void 0x0:_0x1aaca0[_0x43db9f(0x2d3)],'connectionError$':(_0x4646e9=this[_0x43db9f(0x216)])==null?void 0x0:_0x4646e9[_0x43db9f(0x2c3)],'currentSessionId$':(_0x7a43ec=this[_0x43db9f(0x216)])==null?void 0x0:_0x7a43ec[_0x43db9f(0x1c6)]});},this[_0x4cf972(0x294)]);}[_0x20d0b0(0x1c7)](){const _0x33b09e=_0x20d0b0;this[_0x33b09e(0x1e8)](this['_configService'][_0x33b09e(0x285)](_0x40f2ad[_0x33b09e(0x1f3)])[_0x33b09e(0x1b7)](_0x52ea79=>{const _0x5041c0=_0x33b09e;this[_0x5041c0(0x19a)][_0x5041c0(0x2a3)](_0x52ea79||{});}));const _0x28d47b=this[_0x33b09e(0x1a4)][_0x33b09e(0x301)](_0x40f2ad['MCP_PLUGIN_CONFIG_KEY']);this[_0x33b09e(0x19a)][_0x33b09e(0x2a3)](_0x28d47b||{}),this[_0x33b09e(0x1e8)](this[_0x33b09e(0x1a4)]['subscribeConfigValue$'](_0x4f5f62)[_0x33b09e(0x1b7)](_0x30e168=>{const _0x3124ab=_0x33b09e;this[_0x3124ab(0x1c8)][_0x3124ab(0x2a3)](_0x30e168||{});}));const _0x3f4131=this['_configService']['getConfig'](_0x4f5f62);this[_0x33b09e(0x1c8)]['next'](_0x3f4131||{});}async[_0x20d0b0(0x2ea)](){const _0x19c27d=_0x20d0b0,_0x45a744=this[_0x19c27d(0x1a4)][_0x19c27d(0x301)](_0x4f5f62);if(!(_0x45a744!=null&&_0x45a744[_0x19c27d(0x1d6)]))return;const _0xc0b99b=await this[_0x19c27d(0x206)]['getItem'](_0x5b7a78);_0xc0b99b&&(this[_0x19c27d(0x216)][_0x19c27d(0x243)]({'Authorization':'Bearer\x20'+_0xc0b99b}),this[_0x19c27d(0x1d4)]['next'](_0xc0b99b));}async['_validateConfig'](_0x57aba9){const _0x10eee9=_0x20d0b0;if(!_0x57aba9[_0x10eee9(0x170)]||_0x57aba9[_0x10eee9(0x170)][_0x10eee9(0x1ae)]()[_0x10eee9(0x2ac)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x10eee9(0x1ef)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x57aba9['apiKey']['trim']()[_0x10eee9(0x2ac)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x10eee9(0x1ef)]['t'](_0x10eee9(0x2ff))};try{const _0x4e3cfb=await this[_0x10eee9(0x294)]['get'](_0x40f2ad[_0x10eee9(0x1d0)])[_0x10eee9(0x192)](_0x57aba9[_0x10eee9(0x170)][_0x10eee9(0x1ae)]());return _0x4e3cfb[_0x10eee9(0x2c8)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4e3cfb[_0x10eee9(0x1d1)]||this[_0x10eee9(0x1ef)]['t'](_0x10eee9(0x176))};}catch(_0xa6efa6){return console['warn'](_0x10eee9(0x210),_0xa6efa6),{'isValid':!0x0};}}},_0xa3f2d7[_0x20d0b0(0x224)]=_0x426dec([_0x51a2d0(0x0,_0x4cf0fc['Inject'](_0x4cf0fc[_0x20d0b0(0x233)])),_0x51a2d0(0x1,_0x51b934[_0x20d0b0(0x219)]),_0x51a2d0(0x2,_0x4cf0fc[_0x20d0b0(0x225)]),_0x51a2d0(0x3,_0x4cf0fc[_0x20d0b0(0x1e0)]),_0x51a2d0(0x4,_0x51b934[_0x20d0b0(0x199)]),_0x51a2d0(0x5,_0x51b934[_0x20d0b0(0x263)]),_0x51a2d0(0x6,_0x4cf0fc[_0x20d0b0(0x23a)](_0x51b934[_0x20d0b0(0x265)])),_0x51a2d0(0x7,_0x4cf0fc['Inject'](_0x4cf0fc['LocaleService'])),_0x51a2d0(0x8,_0x4cf0fc[_0x20d0b0(0x26e)]),_0x51a2d0(0x9,_0x4cf0fc[_0x20d0b0(0x23a)](_0x40f2ad[_0x20d0b0(0x1d0)]))],_0xa3f2d7[_0x20d0b0(0x224)]);const _0x1ca521={'id':_0x20d0b0(0x2ae),'type':_0x4cf0fc[_0x20d0b0(0x22e)][_0x20d0b0(0x1cc)],'handler':async(_0x5b881a,_0x3af657)=>(_0x5b881a['get'](_0xa3f2d7[_0x20d0b0(0x224)])[_0x20d0b0(0x2aa)](),!0x0)};function _0x5e3b24(_0x2ead45,_0x39c814){const _0x3c71d7=_0x20d0b0;switch(_0x2ead45){case _0x40f2ad[_0x3c71d7(0x270)][_0x3c71d7(0x2da)]:return _0x3c71d7(0x1fc);case _0x40f2ad[_0x3c71d7(0x270)]['CONNECTING']:return _0x3c71d7(0x26c);case _0x40f2ad[_0x3c71d7(0x270)]['CONNECTED']:return _0x3c71d7(0x2e0);case _0x40f2ad[_0x3c71d7(0x270)][_0x3c71d7(0x2d7)]:switch(_0x39c814){case _0x40f2ad[_0x3c71d7(0x29a)][_0x3c71d7(0x2ee)]:return _0x3c71d7(0x214);case _0x40f2ad[_0x3c71d7(0x29a)][_0x3c71d7(0x1cd)]:return _0x3c71d7(0x2fd);case _0x40f2ad['MCPConnectionError'][_0x3c71d7(0x17e)]:return'mcpStatus.networkError';case _0x40f2ad['MCPConnectionError'][_0x3c71d7(0x2b1)]:return _0x3c71d7(0x1ea);default:return _0x3c71d7(0x16d);}case _0x40f2ad[_0x3c71d7(0x270)][_0x3c71d7(0x185)]:return _0x3c71d7(0x1f5);default:return _0x3c71d7(0x281);}}function _0x234732(_0x454bfd,_0x212223,_0x501753,_0x47755d=!0x0){const _0x269918=_0x20d0b0,_0x11c0fc=_0x5e3b24(_0x454bfd,_0x212223),_0x50cf64=_0x501753['t'](_0x11c0fc);return _0x47755d?_0x454bfd===_0x40f2ad[_0x269918(0x270)][_0x269918(0x2da)]&&_0x212223===_0x40f2ad[_0x269918(0x29a)][_0x269918(0x2ee)]?_0x50cf64+_0x269918(0x2cd)+_0x501753['t']('mcpStatus.clickToConfigure'):_0x454bfd===_0x40f2ad[_0x269918(0x270)][_0x269918(0x2d1)]?''+_0x50cf64:_0x454bfd===_0x40f2ad['MCPConnectionStatus'][_0x269918(0x2da)]||_0x454bfd===_0x40f2ad[_0x269918(0x270)][_0x269918(0x2d7)]?_0x50cf64+_0x269918(0x2cd)+_0x501753['t'](_0x269918(0x2c6)):_0x50cf64:_0x50cf64;}function _0x2fbe87(_0x327a9e){const _0x8e8159=_0x20d0b0;switch(_0x327a9e){case _0x40f2ad[_0x8e8159(0x270)][_0x8e8159(0x2d1)]:return _0x8e8159(0x26b);case _0x40f2ad[_0x8e8159(0x270)][_0x8e8159(0x18a)]:case _0x40f2ad[_0x8e8159(0x270)][_0x8e8159(0x185)]:return _0x8e8159(0x2ba);case _0x40f2ad['MCPConnectionStatus'][_0x8e8159(0x2d7)]:case _0x40f2ad[_0x8e8159(0x270)]['DISCONNECTED']:return _0x8e8159(0x2c4);default:return _0x8e8159(0x2cb);}}function _0x70b9f9(_0x1a5aca){const _0x11bef7=_0x20d0b0,{status$:_0x3f5626,error$:_0x57e59e,onConfigure:_0x9bc671,showClickable:_0x26cc74=!0x0}=_0x1a5aca,_0x35c52f=_0x51b934[_0x11bef7(0x19b)](_0x3f5626,_0x40f2ad[_0x11bef7(0x270)][_0x11bef7(0x2da)]),_0x300541=_0x51b934[_0x11bef7(0x19b)](_0x57e59e,_0x40f2ad[_0x11bef7(0x29a)][_0x11bef7(0x229)]),_0x4b8d88=_0x51b934[_0x11bef7(0x169)](_0x4cf0fc['LocaleService']),_0x5ae849=_0x35c52f===_0x40f2ad['MCPConnectionStatus'][_0x11bef7(0x2d1)];_0x35c52f===_0x40f2ad[_0x11bef7(0x270)]['CONNECTING']||_0x40f2ad[_0x11bef7(0x270)][_0x11bef7(0x185)];const _0x3977c0=_0x4b8d88['t'](_0x5e3b24(_0x35c52f,_0x300541)),_0x11bad5=_0x234732(_0x35c52f,_0x300541,_0x4b8d88,_0x26cc74),_0x11453e=_0x2fbe87(_0x35c52f),_0x20447f=_0x5ae849?_0x3d33c4['jsx'](_0x26ee5b,{}):_0x3d33c4[_0x11bef7(0x1bf)](_0x67038a,{}),_0x4a16e9=_0x71e585[_0x11bef7(0x246)](()=>{_0x26cc74&&_0x9bc671&&_0x9bc671();},[_0x26cc74,_0x9bc671]);function _0x3089ee(){const _0x319f9d=_0x11bef7;return _0x3d33c4[_0x319f9d(0x1de)]('div',{'className':_0xbcf279['clsx'](_0x319f9d(0x168),_0x26cc74&&_0x9bc671&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'role':_0x319f9d(0x1c5),'onClick':_0x26cc74&&_0x9bc671?_0x4a16e9:void 0x0,'children':[_0x3d33c4['jsx'](_0x319f9d(0x2d9),{'className':_0xbcf279['clsx'](_0x319f9d(0x2c5),_0x11453e),'children':_0x20447f}),_0x3d33c4['jsx'](_0x319f9d(0x2d9),{'className':_0x319f9d(0x308),'children':_0x3977c0})]});}return _0x3d33c4[_0x11bef7(0x1bf)](_0xbcf279['Tooltip'],{'title':_0x11bad5,'placement':_0x11bef7(0x1a8),'children':_0x3089ee()});}var _0x169c6c=Object['getOwnPropertyDescriptor'],_0x5ac66d=(_0xf868d5,_0x4abc9d,_0x25f603,_0x3c24ad)=>{const _0x50dc71=_0x20d0b0;for(var _0x29abf2=_0x3c24ad>0x1?void 0x0:_0x3c24ad?_0x169c6c(_0x4abc9d,_0x25f603):_0x4abc9d,_0x5f462c=_0xf868d5[_0x50dc71(0x2ac)]-0x1,_0x3e5611;_0x5f462c>=0x0;_0x5f462c--)(_0x3e5611=_0xf868d5[_0x5f462c])&&(_0x29abf2=_0x3e5611(_0x29abf2)||_0x29abf2);return _0x29abf2;},_0x13391e=(_0x3d98dd,_0xc6d4ad)=>(_0x461b02,_0x43489b)=>_0xc6d4ad(_0x461b02,_0x43489b,_0x3d98dd);_0xa3f2d7[_0x20d0b0(0x245)]=class extends _0x4cf0fc[_0x20d0b0(0x23b)]{constructor(_0x282983,_0x36a803,_0x22fc61,_0x18efc1){const _0x3dbbf3=_0x20d0b0;super(),this[_0x3dbbf3(0x294)]=_0x282983,this[_0x3dbbf3(0x1f6)]=_0x36a803,this[_0x3dbbf3(0x18c)]=_0x22fc61,this[_0x3dbbf3(0x1a4)]=_0x18efc1,this[_0x3dbbf3(0x1e6)](),this[_0x3dbbf3(0x2bf)]();}[_0x20d0b0(0x1e6)](){const _0x490f87=_0x20d0b0,_0x6180d1=this[_0x490f87(0x1a4)][_0x490f87(0x301)](_0x4f5f62);_0x6180d1!=null&&_0x6180d1[_0x490f87(0x1d6)]&&(this['_connectionController'][_0x490f87(0x1f4)]=!0x1);}[_0x20d0b0(0x2bf)](){const _0x128986=_0x20d0b0,_0x152936=this[_0x128986(0x1a4)][_0x128986(0x301)](_0x4f5f62);(_0x152936==null?void 0x0:_0x152936['showStatus'])!==!0x1&&this['disposeWithMe'](this['_uiPartsService'][_0x128986(0x2b2)](_0x51b934[_0x128986(0x2ce)][_0x128986(0x248)],()=>{const _0x42617b=_0x128986;var _0x1d2c0b;return _0x51b934[_0x42617b(0x2d2)](_0x464d51({'status$':this[_0x42617b(0x1f6)][_0x42617b(0x2d3)],'error$':this[_0x42617b(0x1f6)][_0x42617b(0x2c3)],'onConfigure':()=>this[_0x42617b(0x18d)](),'showClickable':(_0x1d2c0b=_0x152936==null?void 0x0:_0x152936[_0x42617b(0x1d6)])!=null?_0x1d2c0b:!0x1}),this['_injector']);}));}['_handleConfigure'](){const _0x1152f7=_0x20d0b0;this[_0x1152f7(0x294)][_0x1152f7(0x2c9)](_0xa3f2d7[_0x1152f7(0x224)])[_0x1152f7(0x2aa)]();}},_0xa3f2d7[_0x20d0b0(0x245)]=_0x5ac66d([_0x13391e(0x0,_0x4cf0fc[_0x20d0b0(0x23a)](_0x4cf0fc['Injector'])),_0x13391e(0x1,_0x4cf0fc[_0x20d0b0(0x23a)](_0x40f2ad[_0x20d0b0(0x1d0)])),_0x13391e(0x2,_0x51b934[_0x20d0b0(0x219)]),_0x13391e(0x3,_0x4cf0fc['IConfigService'])],_0xa3f2d7[_0x20d0b0(0x245)]);function _0x464d51(_0x2d95ad){const {status$:_0xa4e104,error$:_0x463271,onConfigure:_0xa5ca5c,showClickable:_0x5b4868}=_0x2d95ad;return function(){const _0x4f32be=_0x4b2b;return _0x3d33c4[_0x4f32be(0x1bf)](_0x70b9f9,{'status$':_0xa4e104,'error$':_0x463271,'onConfigure':_0xa5ca5c,'showClickable':_0x5b4868});};}function _0x29fd89(_0x3c36b2){const _0xd67d09=_0x20d0b0;return{'id':_0x1ca521['id'],'type':_0x51b934[_0xd67d09(0x17a)][_0xd67d09(0x1f2)],'icon':_0xd67d09(0x269),'title':_0xd67d09(0x307),'tooltip':_0xd67d09(0x307)};}const _0x34f12d={[_0x51b934[_0x20d0b0(0x2b7)][_0x20d0b0(0x298)]]:{[_0x1ca521['id']]:{'order':0xa,'menuItemFactory':_0x29fd89}}};var _0x485d60=Object['getOwnPropertyDescriptor'],_0x148bcb=(_0x36f043,_0x3311c6,_0xa84cd4,_0x52f2f1)=>{for(var _0xb078c8=_0x52f2f1>0x1?void 0x0:_0x52f2f1?_0x485d60(_0x3311c6,_0xa84cd4):_0x3311c6,_0x37db93=_0x36f043['length']-0x1,_0xbfdead;_0x37db93>=0x0;_0x37db93--)(_0xbfdead=_0x36f043[_0x37db93])&&(_0xb078c8=_0xbfdead(_0xb078c8)||_0xb078c8);return _0xb078c8;},_0x36b542=(_0x25c379,_0x3e7918)=>(_0x36cbc3,_0x58c484)=>_0x3e7918(_0x36cbc3,_0x58c484,_0x25c379);_0xa3f2d7[_0x20d0b0(0x16f)]=class extends _0x4cf0fc['Disposable']{constructor(_0x41501e,_0x3ad84e){const _0x58d5fa=_0x20d0b0;super(),this[_0x58d5fa(0x193)]=_0x41501e,this[_0x58d5fa(0x23c)]=_0x3ad84e,this[_0x58d5fa(0x29b)](),this[_0x58d5fa(0x2a2)]();}['_initializeCommands'](){const _0x46bdb6=_0x20d0b0;[_0x1ca521][_0x46bdb6(0x1d9)](_0x23ca30=>{const _0x4a2c68=_0x46bdb6;this[_0x4a2c68(0x1e8)](this[_0x4a2c68(0x193)][_0x4a2c68(0x254)](_0x23ca30));});}[_0x20d0b0(0x2a2)](){const _0x200bf7=_0x20d0b0;this[_0x200bf7(0x23c)][_0x200bf7(0x1dd)](_0x34f12d);}},_0xa3f2d7[_0x20d0b0(0x16f)]=_0x148bcb([_0x36b542(0x0,_0x4cf0fc[_0x20d0b0(0x239)]),_0x36b542(0x1,_0x51b934['IMenuManagerService'])],_0xa3f2d7[_0x20d0b0(0x16f)]);const _0x9613e2={'mcpStatus':{'disconnected':_0x20d0b0(0x1f9),'connecting':_0x20d0b0(0x2dc),'connected':'MCP\x20Connected','failed':_0x20d0b0(0x2cf),'retrying':_0x20d0b0(0x235),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x20d0b0(0x16c),'sessionOccupied':_0x20d0b0(0x1eb),'networkError':_0x20d0b0(0x2e5),'maxRetriesExceeded':_0x20d0b0(0x1c4),'clickToConnect':_0x20d0b0(0x19f),'clickToConfigure':_0x20d0b0(0x20e)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x20d0b0(0x201),'apiKeyPlaceholder':_0x20d0b0(0x217),'apiKeyHint':_0x20d0b0(0x277),'enableAuth':_0x20d0b0(0x268),'enableAuthHint':_0x20d0b0(0x20a),'connectionInfo':_0x20d0b0(0x26d),'mcpClientConfig':_0x20d0b0(0x26d),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x20d0b0(0x284),'configStep1':_0x20d0b0(0x2f6),'configStep2':_0x20d0b0(0x1bc),'configStep3':_0x20d0b0(0x2c0),'sessionId':_0x20d0b0(0x24a),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x20d0b0(0x306),'configParameters':_0x20d0b0(0x1b2),'maxRetries':_0x20d0b0(0x1a1),'save':_0x20d0b0(0x242),'saving':_0x20d0b0(0x1f7),'note1':_0x20d0b0(0x2ab),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x20d0b0(0x297),'apiApplyInfo':{'title':_0x20d0b0(0x23f),'description':_0x20d0b0(0x249),'univerAiLabel':_0x20d0b0(0x20b),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x20d0b0(0x1af),'invalidConfig':_0x20d0b0(0x274),'invalidApiKey':_0x20d0b0(0x2b6)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x20d0b0(0x28c),'connected':'Connected','failed':_0x20d0b0(0x187),'retrying':_0x20d0b0(0x257)},'connectionError':{'unauthorized':_0x20d0b0(0x186),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x20d0b0(0x255)}}},_0x376622={'mcpStatus':{'disconnected':_0x20d0b0(0x2ad),'connecting':_0x20d0b0(0x1d3),'connected':'MCP\x20已连接','failed':_0x20d0b0(0x1a0),'retrying':'MCP\x20重连中...','unknown':_0x20d0b0(0x25b),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x20d0b0(0x2a0),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x20d0b0(0x189),'clickToConnect':_0x20d0b0(0x258),'clickToConfigure':_0x20d0b0(0x1a3)},'mcpConfig':{'title':'MCP\x20配置','description':_0x20d0b0(0x2db),'apiKey':_0x20d0b0(0x205),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x20d0b0(0x1a2),'enableAuth':_0x20d0b0(0x273),'enableAuthHint':_0x20d0b0(0x280),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x20d0b0(0x283),'configStepTitle':_0x20d0b0(0x215),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x20d0b0(0x227),'sessionId':_0x20d0b0(0x2b3),'sessionIdDescription':_0x20d0b0(0x1c9),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x20d0b0(0x2e7),'maxRetries':_0x20d0b0(0x29e),'save':_0x20d0b0(0x29d),'saving':_0x20d0b0(0x195),'note1':_0x20d0b0(0x177),'note2':_0x20d0b0(0x196),'configSaved':_0x20d0b0(0x28d),'configError':_0x20d0b0(0x191),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x20d0b0(0x2a1),'univerAiLabel':_0x20d0b0(0x1f1),'getStarted':_0x20d0b0(0x25a)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x20d0b0(0x21b)},'connectionStatus':{'disconnected':'未连接','connecting':_0x20d0b0(0x2b0),'connected':_0x20d0b0(0x28a),'failed':'连接失败','retrying':_0x20d0b0(0x207)},'connectionError':{'unauthorized':_0x20d0b0(0x2fe),'sessionOccupied':_0x20d0b0(0x2d4),'networkError':_0x20d0b0(0x190),'maxRetriesExceeded':_0x20d0b0(0x287)}}};var _0x258943=Object['defineProperty'],_0x1a151f=Object[_0x20d0b0(0x20d)],_0x27ad64=(_0x1c9f32,_0x46a91c,_0x27c16f)=>_0x46a91c in _0x1c9f32?_0x258943(_0x1c9f32,_0x46a91c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27c16f}):_0x1c9f32[_0x46a91c]=_0x27c16f,_0x7878c3=(_0x4c6a86,_0x32ec6b,_0x19bcc0,_0x1e94e6)=>{const _0x23ae7e=_0x20d0b0;for(var _0x5d7197=_0x1e94e6>0x1?void 0x0:_0x1e94e6?_0x1a151f(_0x32ec6b,_0x19bcc0):_0x32ec6b,_0x7c9413=_0x4c6a86[_0x23ae7e(0x2ac)]-0x1,_0x545c7b;_0x7c9413>=0x0;_0x7c9413--)(_0x545c7b=_0x4c6a86[_0x7c9413])&&(_0x5d7197=_0x545c7b(_0x5d7197)||_0x5d7197);return _0x5d7197;},_0xf0b0a4=(_0x2684b1,_0x29853c)=>(_0x373f6f,_0x146d3c)=>_0x29853c(_0x373f6f,_0x146d3c,_0x2684b1),_0x56eeae=(_0x5830e5,_0x73ace7,_0x5ce6bc)=>_0x27ad64(_0x5830e5,_0x73ace7+'',_0x5ce6bc);_0xa3f2d7[_0x20d0b0(0x275)]=class extends _0x4cf0fc['Plugin']{constructor(_0x4be5f1=_0x480718,_0x375994,_0x83a763,_0x153132,_0x4dd18b,_0x4c8a0d){const _0x3e3ec8=_0x20d0b0;super(),this[_0x3e3ec8(0x212)]=_0x4be5f1,this[_0x3e3ec8(0x294)]=_0x375994,this[_0x3e3ec8(0x1a4)]=_0x83a763,this[_0x3e3ec8(0x18c)]=_0x153132,this[_0x3e3ec8(0x206)]=_0x4dd18b,this[_0x3e3ec8(0x1ef)]=_0x4c8a0d;const {..._0x48ea16}=_0x4cf0fc[_0x3e3ec8(0x279)]({},_0x480718,this[_0x3e3ec8(0x212)]);this[_0x3e3ec8(0x1a4)][_0x3e3ec8(0x25e)](_0x4f5f62,_0x48ea16);}async[_0x20d0b0(0x26a)](){const _0x912376=_0x20d0b0,_0x4fe631=[[_0xa3f2d7['MCPConnectionUIController']],[_0xa3f2d7[_0x912376(0x224)]],[_0xa3f2d7[_0x912376(0x16f)]]];this[_0x912376(0x294)][_0x912376(0x25f)](_0x4fdea0[_0x912376(0x272)])||_0x4fe631[_0x912376(0x1a9)]([_0x4fdea0[_0x912376(0x272)],{'useClass':_0x4fdea0[_0x912376(0x22b)]}]),_0x4fe631['forEach'](_0x2f4789=>this[_0x912376(0x294)][_0x912376(0x1fb)](_0x2f4789)),this['_injector'][_0x912376(0x2c9)](_0xa3f2d7[_0x912376(0x245)]),this[_0x912376(0x294)][_0x912376(0x2c9)](_0xa3f2d7['MCPConfigUIController']),this[_0x912376(0x294)][_0x912376(0x2c9)](_0xa3f2d7[_0x912376(0x16f)]);}},_0x56eeae(_0xa3f2d7[_0x20d0b0(0x275)],_0x20d0b0(0x2a4),_0x20d0b0(0x1ee)),_0xa3f2d7[_0x20d0b0(0x275)]=_0x7878c3([_0x4cf0fc[_0x20d0b0(0x2dd)](_0x40f2ad[_0x20d0b0(0x25d)]),_0xf0b0a4(0x1,_0x4cf0fc['Inject'](_0x4cf0fc[_0x20d0b0(0x233)])),_0xf0b0a4(0x2,_0x4cf0fc[_0x20d0b0(0x225)]),_0xf0b0a4(0x3,_0x51b934['IUIPartsService']),_0xf0b0a4(0x4,_0x4cf0fc[_0x20d0b0(0x1e0)]),_0xf0b0a4(0x5,_0x4cf0fc['Inject'](_0x4cf0fc['LocaleService']))],_0xa3f2d7[_0x20d0b0(0x275)]),_0xa3f2d7['MCPConfigPanel']=_0x5f1947,_0xa3f2d7[_0x20d0b0(0x24c)]=_0x70b9f9,_0xa3f2d7[_0x20d0b0(0x2c7)]=_0x1ca521,_0xa3f2d7[_0x20d0b0(0x2f7)]=_0x9613e2,_0xa3f2d7[_0x20d0b0(0x27c)]=_0x376622,Object[_0x20d0b0(0x17d)](_0xa3f2d7,Symbol[_0x20d0b0(0x300)],{'value':_0x20d0b0(0x2c2)});}));function _0x57fc(){const _0x2f0470=['Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','merge','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','amd','zhCN','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','svg','启用身份验证以获得安全连接','mcpStatus.unknown','clsx','将以下配置添加到您的\x20MCP\x20客户端设置中:','Configuration\x20Steps:','subscribeConfigValue$','url(#off-line-icon_clip0_910_343)','超出最大重试次数,请稍后再试','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','@univerjs/network','已连接','mcpConfig.apiApplyInfo.univerAiLabel','Connecting...','配置保存成功','univer_session_id:','createElement','univer-space-y-5','toString','MCP\x20Configuration','mcpConfig.configError','_injector','univer.ai','UniverIcon','Failed\x20to\x20save\x20configuration','OTHERS','univer-space-y-4','MCPConnectionError','_initializeCommands','children','保存配置','最大重试次数','mcpConfig.sessionIdDescription','MCP:\x20会话\x20ID\x20已被占用','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_initializeMenus','next','pluginName','defIds','univer-flex\x20univer-items-start\x20univer-gap-3','_dialogService','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','value','showConfigPanel','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','length','MCP\x20已断开','mcp-ui.command.openConfigPanel','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','连接中...','MAX_RETRIES_EXCEEDED','registerComponent','会话ID','map','assign','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','RibbonStartGroup','_loading$','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-text-yellow-500','pre','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','153097xnihVP','mcpConfig.apiApplyInfo.description','_initStatusComponent','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','useState','Module','connectionError$','univer-text-red-500','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpStatus.clickToConnect','OpenMCPConfigPanelCommand','isValid','get','none','univer-text-gray-500','close','\x20-\x20','BuiltInUIPart','MCP\x20Connection\x20Failed','colorChannel1','CONNECTED','connectInjector','connectionStatus$','会话\x20ID\x20已被占用,请稍后再试','off','univer-flex\x20univer-items-start\x20univer-gap-2','FAILED','UniverProMcpUi','div','DISCONNECTED','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP\x20Connecting...','DependentOn','string','Bearer\x20','mcpStatus.connected','_logService','on-line-icon_clip0_910_349','mcpConfig.save','mcpConfig.apiKey','MCP:\x20Network\x20Error','text','配置参数:','react','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_loadStoredApiKey','mcpConfig.apiApplyInfo.getStarted','xlink:href','close-icon','UNAUTHORIZED','univer-shrink-0\x20univer-text-red-500','mcp-config-dialog','function','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','currentColor','0\x200\x2017\x2016','Copy\x20the\x20JSON\x20configuration\x20below','enUS','mcpServerUrl','label','https://console.univer.plus','setItem','span','mcpStatus.sessionOccupied','权限验证失败,请检查您的\x20API\x20密钥','mcpConfig.validation.apiKeyTooShort','toStringTag','getConfig','18ataplI','http://www.w3.org/2000/svg','mcpConfig.configStep3','CloseIcon','API\x20key\x20with\x20Bearer\x20prefix.','mcpConfig.title','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','M0\x200H16V16H0z','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-flex\x20univer-items-center','useDependency','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','MCP:\x20Unauthorized','mcpStatus.failed','univer-font-medium','MCPUIMenuController','apiKey','show','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','UniverUi','includes','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpConfig.validation.invalidApiKey','配置更改将立即生效','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','white','MenuItemType','url(#on-line-icon_clip0_910_349)','replace','defineProperty','NETWORK_ERROR','_blank','rxjs','BehaviorSubject','6CKuCJF','513RKzHjO','round','RETRYING','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connection\x20Failed','Configuration\x20Notes:','MCP:\x20超出最大重试次数','CONNECTING','mcpConfig.connectionError.maxRetriesExceeded','_uiPartsService','_handleConfigure','univer-flex\x20univer-gap-3','mcpConfig.connectionStatus.connected','网络连接错误,请检查您的网络连接','配置保存失败','validateApiKey','_commandService','UniverDesign','保存中...','您的\x20API\x20密钥安全存储在本地存储中','substring','OnLineIcon','IDialogService','_mcpCoreConfig$','useObservable','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','url(#$1','univer-text-xs\x20univer-text-gray-600','Click\x20to\x20connect\x20MCP','MCP\x20连接失败','Max\x20Retries','您的\x20API\x20密钥将在此浏览器中本地存储','点击配置\x20MCP','_configService','entries','mcpConfig.connectionError.networkError','MCPConfigPanel','bottom','push','mcpConfig.configStep1','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','UniverCore','mcpConfig.connectionStatus.disconnected','trim','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','react/jsx-runtime','mcpConfig.apiApplyInfo.title','Configuration\x20Parameters:','mcpConfig.connectionStatus.failed','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-space-y-2','mcpConfig.configParameters','subscribe','_registerComponent','object','univer-flex\x20univer-items-center\x20univer-gap-2','register','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-bg-red-500','MessageType','jsx','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','displayName','mcp-ui.config','Input','MCP:\x20Max\x20Retries\x20Exceeded','button','sessionId$','_initConfigSync','_config$','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','10QdQhvQ','useRef','COMMAND','SESSION_ID_OCCUPIED','5UZDtCs','univer-min-w-0\x20univer-flex-1','MCPConnectionController','error','mcpConfig.configStep2','MCP\x20连接中...','_apiKey$','<SESSION_ID>','showDeveloperTools','mcpConfig.saving','mcpConfig.configStepTitle','forEach','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mask','@univerjs/design','mergeMenu','jsxs','1238QmmJMR','ILocalStorageService','_validateConfig','_handleConfigSave','mcpConfig.connectionInfo','mcpConfig.validation.invalidConfig','Success','_initAutoConnect','stringify','disposeWithMe','@univerjs-pro/mcp','mcpStatus.maxRetriesExceeded','MCP:\x20Session\x20ID\x20Occupied','0\x200\x2016\x2016','removeItem','MCP_UI_PLUGIN','_localeService','https://mcp.univer.ai/mcp/?univer_session_id=','Univer\x20AI\x20控制台','BUTTON','MCP_PLUGIN_CONFIG_KEY','enableAutoConnect','mcpStatus.retrying','_connectionController','Saving...','1206876kSFJWK','MCP\x20Disconnected','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','add','mcpStatus.disconnected','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','680056yinJHf','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','API\x20Key','idSuffix','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','off-line-icon_clip0_910_343','API\x20密钥','_localStorageService','重连中...','forwardRef','_createConfigPanelComponent','Enable\x20authentication\x20for\x20secure\x20connections','Univer\x20AI\x20Console','mcpConfig.connectionError.unauthorized','getOwnPropertyDescriptor','Click\x20to\x20configure\x20MCP','univer-flex\x20univer-items-center\x20univer-gap-3','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','http','_config','path','mcpStatus.unauthorized','配置步骤:','_mcpConnectionController','Enter\x20your\x20API\x20key','CheckMarkIcon','IUIPartsService','off-line-icon','API\x20密钥无效,请检查密钥是否正确','@univerjs/core','univer-text-xs\x20univer-text-gray-500','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','@univerjs/ui','12368CkZbcZ','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Error','MCPConfigUIController','IConfigService','open','重启您的\x20MCP\x20客户端以使配置生效','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','NONE','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','WebSocketService','tag','OffLineIcon','CommandType','mcpConfig.apiKeyPlaceholder','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','6172140rMpNpl','help-icon','Injector','univer-space-y-3','MCP\x20Retrying...','attrs','React','mcpConfig.configSaved','ICommandService','Inject','Disposable','_menuManagerService','clipPath','_messageService','What\x20is\x20API\x20Key?','symbol','univer.plus','Save\x20Configuration','__setCustomHeaders','LocaleService','MCPConnectionUIController','useCallback','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','HEADER_MENU','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session\x20ID','univer-shrink-0\x20univer-text-blue-500','MCPStatusDisplay','697626JNqTOp','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','getCurrentConfig','univerjs-icon\x20univerjs-icon-','fill','_componentManager','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','registerCommand','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.note2','Retrying...','点击连接\x20MCP','univer-bg-gray-500','几秒钟内获取您的\x20API\x20密钥','MCP\x20状态未知','mcpConfig.configInstructions','UniverMCPPlugin','setConfig','has','1em','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','evenodd','IMessageService','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','ComponentManager','on-line-icon','mcpConfig.description','Enable\x20Authentication','MenuIcon','onStarting','univer-text-green-500','mcpStatus.connecting','MCP\x20Client\x20Configuration','ILogService','UniverProMcp','MCPConnectionStatus','defs','ISocketService','启用身份验证','Invalid\x20configuration','UniverMCPUIPlugin','errorMessage'];_0x57fc=function(){return _0x2f0470;};return _0x57fc();}
@@ -1 +1 @@
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();}
1
+ (function(_0x4e7119,_0x4fa939){var _0x5ec1c6=_0x41d0,_0x3200ee=_0x4e7119();while(!![]){try{var _0x1f5462=parseInt(_0x5ec1c6(0x9f))/0x1+-parseInt(_0x5ec1c6(0xb9))/0x2*(-parseInt(_0x5ec1c6(0xba))/0x3)+parseInt(_0x5ec1c6(0xb7))/0x4+parseInt(_0x5ec1c6(0x90))/0x5+parseInt(_0x5ec1c6(0x94))/0x6*(-parseInt(_0x5ec1c6(0xad))/0x7)+parseInt(_0x5ec1c6(0xb3))/0x8+-parseInt(_0x5ec1c6(0xb8))/0x9;if(_0x1f5462===_0x4fa939)break;else _0x3200ee['push'](_0x3200ee['shift']());}catch(_0x20c084){_0x3200ee['push'](_0x3200ee['shift']());}}}(_0x2280,0x56240),function(_0x5207b9,_0x1a96a5){var _0x557351=_0x41d0;typeof exports==_0x557351(0xbd)&&typeof module<'u'?module[_0x557351(0xbc)]=_0x1a96a5():typeof define=='function'&&define[_0x557351(0xaa)]?define(_0x1a96a5):(_0x5207b9=typeof globalThis<'u'?globalThis:_0x5207b9||self,_0x5207b9[_0x557351(0xa7)]=_0x1a96a5());}(this,function(){'use strict';var _0x5708c6=_0x41d0;return{'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5708c6(0x99),'connected':'MCP\x20Connected','failed':_0x5708c6(0x91),'retrying':'MCP\x20Retrying...','unknown':_0x5708c6(0xa5),'unauthorized':_0x5708c6(0xa8),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x5708c6(0xb4),'clickToConnect':_0x5708c6(0x92),'clickToConfigure':_0x5708c6(0x98)},'mcpConfig':{'title':_0x5708c6(0x8f),'description':_0x5708c6(0xb5),'apiKey':_0x5708c6(0x8e),'apiKeyPlaceholder':_0x5708c6(0xbb),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x5708c6(0xac),'connectionInfo':_0x5708c6(0xa4),'mcpClientConfig':_0x5708c6(0xa4),'configInstructions':_0x5708c6(0x95),'configStepTitle':_0x5708c6(0x9c),'configStep1':_0x5708c6(0xb1),'configStep2':_0x5708c6(0x9b),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x5708c6(0xbe),'authorizationDescription':_0x5708c6(0x97),'configParameters':_0x5708c6(0x9d),'maxRetries':'Max\x20Retries','save':_0x5708c6(0xa0),'saving':_0x5708c6(0xa1),'note1':_0x5708c6(0x93),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5708c6(0xa9),'configError':_0x5708c6(0xa2),'apiApplyInfo':{'title':_0x5708c6(0xa3),'description':_0x5708c6(0xb6),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5708c6(0x96),'apiKeyTooShort':_0x5708c6(0xbf),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5708c6(0xab)},'connectionStatus':{'disconnected':_0x5708c6(0xaf),'connecting':'Connecting...','connected':_0x5708c6(0xae),'failed':_0x5708c6(0xa6),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x5708c6(0x9a),'sessionOccupied':_0x5708c6(0xb0),'networkError':_0x5708c6(0xb2),'maxRetriesExceeded':_0x5708c6(0x9e)}}};}));function _0x41d0(_0x5cbf05,_0xdbc048){_0x5cbf05=_0x5cbf05-0x8e;var _0x2280c8=_0x2280();var _0x41d070=_0x2280c8[_0x5cbf05];return _0x41d070;}function _0x2280(){var _0x15031d=['MCP:\x20Unauthorized','Configuration\x20saved\x20successfully','amd','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20authentication\x20for\x20secure\x20connections','56ifxdjE','Connected','Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','3948560adHapG','MCP:\x20Max\x20Retries\x20Exceeded','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','335432xWKezA','11334447tXeZzR','1259474ztWmBK','3BYpiWY','Enter\x20your\x20API\x20key','exports','object','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key','MCP\x20Configuration','186335iJgxBz','MCP\x20Connection\x20Failed','Click\x20to\x20connect\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','243924AsUiLs','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20key\x20is\x20required','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20configure\x20MCP','MCP\x20Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Steps:','Configuration\x20Parameters:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','693015VBJIpY','Save\x20Configuration','Saving...','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','MCP\x20Unknown\x20Status','Connection\x20Failed','UniverProMcpUiCaES'];_0x2280=function(){return _0x15031d;};return _0x2280();}