@univerjs-pro/mcp-ui 0.15.5 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) 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/sk-SK.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ja-JP.js +1 -1
  21. package/lib/es/locale/ko-KR.js +1 -1
  22. package/lib/es/locale/ru-RU.js +1 -1
  23. package/lib/es/locale/sk-SK.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/index.js +1 -1
  28. package/lib/locale/ca-ES.js +1 -1
  29. package/lib/locale/en-US.js +1 -1
  30. package/lib/locale/es-ES.js +1 -1
  31. package/lib/locale/fa-IR.js +1 -1
  32. package/lib/locale/fr-FR.js +1 -1
  33. package/lib/locale/ja-JP.js +1 -1
  34. package/lib/locale/ko-KR.js +1 -1
  35. package/lib/locale/ru-RU.js +1 -1
  36. package/lib/locale/sk-SK.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/index.js +1 -1
  41. package/lib/umd/locale/ca-ES.js +1 -1
  42. package/lib/umd/locale/en-US.js +1 -1
  43. package/lib/umd/locale/es-ES.js +1 -1
  44. package/lib/umd/locale/fa-IR.js +1 -1
  45. package/lib/umd/locale/fr-FR.js +1 -1
  46. package/lib/umd/locale/ja-JP.js +1 -1
  47. package/lib/umd/locale/ko-KR.js +1 -1
  48. package/lib/umd/locale/ru-RU.js +1 -1
  49. package/lib/umd/locale/sk-SK.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +7 -7
@@ -1 +1 @@
1
- 'use strict';const _0x4667ec=_0x1747;function _0x1747(_0x55e49b,_0x2508bc){_0x55e49b=_0x55e49b-0x115;const _0x511362=_0x5113();let _0x1747be=_0x511362[_0x55e49b];return _0x1747be;}(function(_0x21c25f,_0x2826f6){const _0x40cae4=_0x1747,_0x4af06f=_0x21c25f();while(!![]){try{const _0xf1efcf=parseInt(_0x40cae4(0x132))/0x1*(-parseInt(_0x40cae4(0x11d))/0x2)+-parseInt(_0x40cae4(0x128))/0x3*(parseInt(_0x40cae4(0x12e))/0x4)+-parseInt(_0x40cae4(0x12f))/0x5*(-parseInt(_0x40cae4(0x125))/0x6)+-parseInt(_0x40cae4(0x14a))/0x7+parseInt(_0x40cae4(0x144))/0x8*(-parseInt(_0x40cae4(0x119))/0x9)+parseInt(_0x40cae4(0x13e))/0xa*(-parseInt(_0x40cae4(0x13f))/0xb)+-parseInt(_0x40cae4(0x117))/0xc*(-parseInt(_0x40cae4(0x135))/0xd);if(_0xf1efcf===_0x2826f6)break;else _0x4af06f['push'](_0x4af06f['shift']());}catch(_0x49f2ef){_0x4af06f['push'](_0x4af06f['shift']());}}}(_0x5113,0x40e75));function _0x5113(){const _0x2a3790=['6ehNqbs','MCP\x20재시도\x20중...','설정\x20단계:','유효하지\x20않은\x20설정','최대\x20재시도\x20횟수','세션\x20ID','853288kBYusI','2125925AAdCXu','API\x20키란\x20무엇인가요?','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','2FavmvT','인증\x20활성화','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','4143061ogoUTV','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','설정\x20저장\x20실패','인증\x20실패.\x20API\x20키를\x20확인하세요','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','보안\x20연결을\x20위해\x20인증\x20활성화','API\x20키를\x20입력하세요','MCP\x20연결\x20중...','설정\x20매개변수:','1020yclOBR','42328OeJnSS','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','클릭하여\x20MCP\x20연결','MCP\x20연결\x20실패','MCP:\x20최대\x20재시도\x20횟수\x20초과','16YsyXcE','재시도\x20중...','연결\x20끊김','연결\x20중...','저장\x20중...','MCP\x20클라이언트\x20설정','745479VBqxoA','클릭하여\x20MCP\x20설정','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','36XWKhEf','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','69147CPHVCW','MCP:\x20인증되지\x20않음','연결됨','MCP:\x20세션\x20ID\x20사용\x20','174428FzqpDW','Bearer\x20접두사가\x20있는\x20API\x20키.','API\x20키는\x20필수입니다','MCP\x20연결됨','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','API\x20','API\x20키는\x2010자\x20이상이어야\x20합니다','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','6HViKjI','MCP\x20설정','exports'];_0x5113=function(){return _0x2a3790;};return _0x5113();}const e={'mcpStatus':{'disconnected':'MCP\x20연결\x20끊김','connecting':_0x4667ec(0x13c),'connected':_0x4667ec(0x120),'failed':_0x4667ec(0x142),'retrying':_0x4667ec(0x129),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':_0x4667ec(0x11a),'sessionOccupied':_0x4667ec(0x11c),'networkError':'MCP:\x20네트워크\x20오류','maxRetriesExceeded':_0x4667ec(0x143),'clickToConnect':_0x4667ec(0x141),'clickToConfigure':_0x4667ec(0x115)},'mcpConfig':{'title':_0x4667ec(0x126),'description':_0x4667ec(0x118),'apiKey':_0x4667ec(0x122),'apiKeyPlaceholder':_0x4667ec(0x13b),'apiKeyHint':_0x4667ec(0x116),'enableAuth':_0x4667ec(0x133),'enableAuthHint':_0x4667ec(0x13a),'connectionInfo':_0x4667ec(0x149),'mcpClientConfig':_0x4667ec(0x149),'configInstructions':_0x4667ec(0x124),'configStepTitle':_0x4667ec(0x12a),'configStep1':'아래\x20JSON\x20설정\x20복사','configStep2':_0x4667ec(0x134),'configStep3':_0x4667ec(0x139),'sessionId':_0x4667ec(0x12d),'sessionIdDescription':_0x4667ec(0x121),'authorizationDescription':_0x4667ec(0x11e),'configParameters':_0x4667ec(0x13d),'maxRetries':_0x4667ec(0x12c),'save':'설정\x20저장','saving':_0x4667ec(0x148),'note1':_0x4667ec(0x131),'note2':_0x4667ec(0x136),'configSaved':'설정이\x20성공적으로\x20저장되었습니다','configError':_0x4667ec(0x137),'apiApplyInfo':{'title':_0x4667ec(0x130),'description':_0x4667ec(0x140),'univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':'몇\x20초\x20만에\x20API\x20키\x20발급받기'},'validation':{'apiKeyRequired':_0x4667ec(0x11f),'apiKeyTooShort':_0x4667ec(0x123),'invalidConfig':_0x4667ec(0x12b),'invalidApiKey':'유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요'},'connectionStatus':{'disconnected':_0x4667ec(0x146),'connecting':_0x4667ec(0x147),'connected':_0x4667ec(0x11b),'failed':'연결\x20실패','retrying':_0x4667ec(0x145)},'connectionError':{'unauthorized':_0x4667ec(0x138),'sessionOccupied':'세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','networkError':'네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','maxRetriesExceeded':'최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요'}}};module[_0x4667ec(0x127)]=e;
1
+ 'use strict';function _0x3443(_0x211814,_0x316e86){_0x211814=_0x211814-0x1e1;const _0xe3d4e4=_0xe3d4();let _0x344363=_0xe3d4e4[_0x211814];return _0x344363;}const _0x496db3=_0x3443;(function(_0x4fa2fe,_0x16e8b0){const _0x1bd37c=_0x3443,_0x573ebc=_0x4fa2fe();while(!![]){try{const _0x87c6ad=parseInt(_0x1bd37c(0x215))/0x1*(-parseInt(_0x1bd37c(0x1f4))/0x2)+parseInt(_0x1bd37c(0x1f9))/0x3+-parseInt(_0x1bd37c(0x1e2))/0x4*(parseInt(_0x1bd37c(0x200))/0x5)+parseInt(_0x1bd37c(0x20a))/0x6*(-parseInt(_0x1bd37c(0x205))/0x7)+parseInt(_0x1bd37c(0x1f7))/0x8*(-parseInt(_0x1bd37c(0x207))/0x9)+-parseInt(_0x1bd37c(0x1e6))/0xa+-parseInt(_0x1bd37c(0x1e5))/0xb*(-parseInt(_0x1bd37c(0x1f6))/0xc);if(_0x87c6ad===_0x16e8b0)break;else _0x573ebc['push'](_0x573ebc['shift']());}catch(_0x229073){_0x573ebc['push'](_0x573ebc['shift']());}}}(_0xe3d4,0xc7cd4));function _0xe3d4(){const _0xcf28c=['API\x20키란\x20무엇인가요?','세션\x20ID','API\x20키는\x2010자\x20이상이어야\x20합니다','383653WwbMnd','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','32PydEpg','인증\x20실패.\x20API\x20키를\x20확인하세요','API\x20키는\x20필수입니다','11386364vmdEdw','5428990OHIczv','설정\x20저장','설정\x20매개변수:','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','설정\x20단계:','저장\x20중...','MCP\x20연결\x20끊김','MCP\x20재시도\x20중...','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','API\x20','설정\x20저장\x20실패','API\x20키를\x20입력하세요','보안\x20연결을\x20위해\x20인증\x20활성화','최대\x20재시도\x20횟수','2XdQPIA','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','24IEbFMy','8zDmUbQ','인증\x20활성화','2691066GCLbvy','MCP:\x20네트워크\x20오류','exports','MCP:\x20세션\x20ID\x20사용\x20중','MCP\x20알\x20수\x20없는\x20상태','MCP\x20설정','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','148865HAeYfb','클릭하여\x20MCP\x20연결','연결\x20중...','MCP\x20클라이언트\x20설정','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','1212841VeJdBd','Univer\x20AI\x20콘솔','4179213VbViJk','연결됨','클릭하여\x20MCP\x20설정','18NOTNyB','아래\x20JSON\x20설정\x20복사','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','연결\x20끊김','MCP\x20연결\x20실패','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','MCP\x20연결\x20중...','재시도\x20중...'];_0xe3d4=function(){return _0xcf28c;};return _0xe3d4();}const e={'mcpStatus':{'disconnected':_0x496db3(0x1ec),'connecting':_0x496db3(0x210),'connected':'MCP\x20연결됨','failed':_0x496db3(0x20e),'retrying':_0x496db3(0x1ed),'unknown':_0x496db3(0x1fd),'unauthorized':'MCP:\x20인증되지\x20않음','sessionOccupied':_0x496db3(0x1fc),'networkError':_0x496db3(0x1fa),'maxRetriesExceeded':'MCP:\x20최대\x20재시도\x20횟수\x20초과','clickToConnect':_0x496db3(0x201),'clickToConfigure':_0x496db3(0x209)},'mcpConfig':{'title':_0x496db3(0x1fe),'description':'AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','apiKey':_0x496db3(0x1ef),'apiKeyPlaceholder':_0x496db3(0x1f1),'apiKeyHint':_0x496db3(0x20f),'enableAuth':_0x496db3(0x1f8),'enableAuthHint':_0x496db3(0x1f2),'connectionInfo':_0x496db3(0x203),'mcpClientConfig':_0x496db3(0x203),'configInstructions':_0x496db3(0x1f5),'configStepTitle':_0x496db3(0x1ea),'configStep1':_0x496db3(0x20b),'configStep2':'MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','configStep3':_0x496db3(0x20c),'sessionId':_0x496db3(0x213),'sessionIdDescription':_0x496db3(0x1e9),'authorizationDescription':'Bearer\x20접두사가\x20있는\x20API\x20키.','configParameters':_0x496db3(0x1e8),'maxRetries':_0x496db3(0x1f3),'save':_0x496db3(0x1e7),'saving':_0x496db3(0x1eb),'note1':'설정\x20변경\x20사항은\x20즉시\x20적용됩니다','note2':_0x496db3(0x204),'configSaved':'설정이\x20성공적으로\x20저장되었습니다','configError':_0x496db3(0x1f0),'apiApplyInfo':{'title':_0x496db3(0x212),'description':_0x496db3(0x1ee),'univerAiLabel':_0x496db3(0x206),'getStarted':'몇\x20초\x20만에\x20API\x20키\x20발급받기'},'validation':{'apiKeyRequired':_0x496db3(0x1e4),'apiKeyTooShort':_0x496db3(0x214),'invalidConfig':'유효하지\x20않은\x20설정','invalidApiKey':_0x496db3(0x1e1)},'connectionStatus':{'disconnected':_0x496db3(0x20d),'connecting':_0x496db3(0x202),'connected':_0x496db3(0x208),'failed':'연결\x20실패','retrying':_0x496db3(0x211)},'connectionError':{'unauthorized':_0x496db3(0x1e3),'sessionOccupied':'세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','networkError':_0x496db3(0x1ff),'maxRetriesExceeded':'최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요'}}};module[_0x496db3(0x1fb)]=e;
@@ -1 +1 @@
1
- 'use strict';const _0x26db83=_0x5032;function _0x5032(_0x2e4804,_0x19fa7f){_0x2e4804=_0x2e4804-0x1f1;const _0x2d428e=_0x2d42();let _0x5032a4=_0x2d428e[_0x2e4804];return _0x5032a4;}(function(_0x24fef0,_0x2cc8f1){const _0x594330=_0x5032,_0x545689=_0x24fef0();while(!![]){try{const _0x385fa0=parseInt(_0x594330(0x227))/0x1+-parseInt(_0x594330(0x222))/0x2*(-parseInt(_0x594330(0x1f4))/0x3)+-parseInt(_0x594330(0x220))/0x4*(-parseInt(_0x594330(0x20a))/0x5)+parseInt(_0x594330(0x1f6))/0x6*(-parseInt(_0x594330(0x214))/0x7)+parseInt(_0x594330(0x228))/0x8*(parseInt(_0x594330(0x205))/0x9)+-parseInt(_0x594330(0x221))/0xa*(parseInt(_0x594330(0x200))/0xb)+-parseInt(_0x594330(0x1f8))/0xc*(parseInt(_0x594330(0x206))/0xd);if(_0x385fa0===_0x2cc8f1)break;else _0x545689['push'](_0x545689['shift']());}catch(_0x2e64bd){_0x545689['push'](_0x545689['shift']());}}}(_0x2d42,0x9e667));const e={'mcpStatus':{'disconnected':_0x26db83(0x207),'connecting':_0x26db83(0x1fe),'connected':_0x26db83(0x217),'failed':_0x26db83(0x212),'retrying':_0x26db83(0x224),'unknown':_0x26db83(0x1fa),'unauthorized':_0x26db83(0x20e),'sessionOccupied':_0x26db83(0x21b),'networkError':_0x26db83(0x21e),'maxRetriesExceeded':_0x26db83(0x225),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x26db83(0x1f7)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x26db83(0x21d),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x26db83(0x21c),'apiKeyHint':_0x26db83(0x1f1),'enableAuth':_0x26db83(0x219),'enableAuthHint':_0x26db83(0x218),'connectionInfo':_0x26db83(0x216),'mcpClientConfig':_0x26db83(0x216),'configInstructions':_0x26db83(0x203),'configStepTitle':_0x26db83(0x21a),'configStep1':_0x26db83(0x202),'configStep2':_0x26db83(0x204),'configStep3':_0x26db83(0x201),'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':_0x26db83(0x211),'configParameters':_0x26db83(0x1f3),'maxRetries':_0x26db83(0x213),'save':_0x26db83(0x20d),'saving':_0x26db83(0x1fb),'note1':_0x26db83(0x223),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x26db83(0x215),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x26db83(0x209),'description':_0x26db83(0x1f2),'univerAiLabel':_0x26db83(0x20c),'getStarted':_0x26db83(0x210)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x26db83(0x20f),'invalidConfig':_0x26db83(0x20b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x26db83(0x21f),'connecting':'Connecting...','connected':_0x26db83(0x1fd),'failed':'Connection\x20Failed','retrying':_0x26db83(0x1f9)},'connectionError':{'unauthorized':_0x26db83(0x208),'sessionOccupied':_0x26db83(0x1fc),'networkError':_0x26db83(0x226),'maxRetriesExceeded':_0x26db83(0x1ff)}}},n=e;function _0x2d42(){const _0x4b968f=['Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','135qBUtjR','169RHLmgL','MCP\x20Disconnected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','What\x20is\x20API\x20Key?','844685JqJhID','Invalid\x20configuration','Univer\x20AI\x20Console','Save\x20Configuration','MCP:\x20Unauthorized','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connection\x20Failed','Max\x20Retries','21602GtAKBl','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','MCP\x20Connected','Enable\x20authentication\x20for\x20secure\x20connections','Enable\x20Authentication','Configuration\x20Steps:','MCP:\x20Session\x20ID\x20Occupied','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','Disconnected','28zJdovo','424750qboTHK','42192nTOrpF','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Retrying...','MCP:\x20Max\x20Retries\x20Exceeded','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','15282rLJPKg','284888LsXpjS','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','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\x20Parameters:','51eABwjV','exports','150qXwiGe','Click\x20to\x20configure\x20MCP','946044PzPABh','Retrying...','MCP\x20Unknown\x20Status','Saving...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connected','MCP\x20Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','88sWAepU','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration'];_0x2d42=function(){return _0x4b968f;};return _0x2d42();}module[_0x26db83(0x1f5)]=n;
1
+ 'use strict';const _0x5bb02e=_0x2693;(function(_0x4e7485,_0x25e585){const _0x1c5d59=_0x2693,_0x334fb4=_0x4e7485();while(!![]){try{const _0x3c3b60=parseInt(_0x1c5d59(0xa4))/0x1*(-parseInt(_0x1c5d59(0xa0))/0x2)+-parseInt(_0x1c5d59(0xb2))/0x3*(parseInt(_0x1c5d59(0xab))/0x4)+parseInt(_0x1c5d59(0xad))/0x5*(-parseInt(_0x1c5d59(0xa7))/0x6)+parseInt(_0x1c5d59(0x9f))/0x7+parseInt(_0x1c5d59(0xb7))/0x8+-parseInt(_0x1c5d59(0xc5))/0x9+parseInt(_0x1c5d59(0xb5))/0xa;if(_0x3c3b60===_0x25e585)break;else _0x334fb4['push'](_0x334fb4['shift']());}catch(_0x2f2da9){_0x334fb4['push'](_0x334fb4['shift']());}}}(_0x353d,0xb4b56));const e={'mcpStatus':{'disconnected':_0x5bb02e(0xa9),'connecting':_0x5bb02e(0xc3),'connected':'MCP\x20Connected','failed':_0x5bb02e(0xbf),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5bb02e(0xaf),'networkError':_0x5bb02e(0xcb),'maxRetriesExceeded':_0x5bb02e(0xc1),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x5bb02e(0xc7)},'mcpConfig':{'title':_0x5bb02e(0xc2),'description':_0x5bb02e(0xb9),'apiKey':_0x5bb02e(0xa5),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x5bb02e(0xc6),'enableAuth':_0x5bb02e(0xc0),'enableAuthHint':_0x5bb02e(0xba),'connectionInfo':_0x5bb02e(0xca),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x5bb02e(0xaa),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x5bb02e(0xbe),'sessionId':'Session\x20ID','sessionIdDescription':_0x5bb02e(0xa8),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5bb02e(0xa3),'maxRetries':_0x5bb02e(0xb4),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x5bb02e(0xae),'note2':_0x5bb02e(0xb0),'configSaved':_0x5bb02e(0xa6),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5bb02e(0xc8),'description':_0x5bb02e(0xb3),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x5bb02e(0xb6)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5bb02e(0xac),'invalidApiKey':_0x5bb02e(0xb8)},'connectionStatus':{'disconnected':_0x5bb02e(0xbb),'connecting':_0x5bb02e(0xa1),'connected':_0x5bb02e(0xc4),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x5bb02e(0xa2),'sessionOccupied':_0x5bb02e(0xb1),'networkError':_0x5bb02e(0xbd),'maxRetriesExceeded':_0x5bb02e(0xc9)}}},n=e;function _0x2693(_0x1834de,_0xa67b50){_0x1834de=_0x1834de-0x9f;const _0x353d2a=_0x353d();let _0x26933f=_0x353d2a[_0x1834de];return _0x26933f;}module[_0x5bb02e(0xbc)]=n;function _0x353d(){const _0x524e68=['Get\x20your\x20API\x20key\x20in\x20seconds','976104wjMCkM','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20authentication\x20for\x20secure\x20connections','Disconnected','exports','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connection\x20Failed','Enable\x20Authentication','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Configuration','MCP\x20Connecting...','Connected','6669270yPzgqO','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','MCP:\x20Network\x20Error','2272298nGSBVL','13154YPKYzw','Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Parameters:','87dsxXfJ','API\x20Key','Configuration\x20saved\x20successfully','9648ghTDWG','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','44GDgmgR','Invalid\x20configuration','4220IXKzKo','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','289677qwcFno','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Max\x20Retries','40260850RaLwpw'];_0x353d=function(){return _0x524e68;};return _0x353d();}
@@ -1 +1 @@
1
- 'use strict';const _0x5d0f9e=_0x3101;function _0x3101(_0x5558fa,_0x9cb119){_0x5558fa=_0x5558fa-0x18e;const _0x36a60b=_0x36a6();let _0x3101a5=_0x36a60b[_0x5558fa];return _0x3101a5;}function _0x36a6(){const _0x2a9b66=['Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','Neplatná\x20konfigurácia','9432451eLxvtM','Kliknite\x20na\x20konfiguráciu\x20MCP','Konfigurácia\x20MCP','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','Uložiť\x20konfiguráciu','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','8IcAKUm','Parametre\x20konfigurácie:','Pripojenie\x20MCP\x20zlyhalo','MCP:\x20Neautorizované','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','119719fngPcm','96338PtYwzF','Maximálny\x20počet\x20pokusov','Ukladá\x20sa...','Kliknite\x20na\x20pripojenie\x20MCP','Konfigurácia\x20bola\x20úspešne\x20uložená','Pripája\x20sa...','API\x20kľúč','8198976fbnmfH','Konfigurácia\x20klienta\x20MCP','Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','Pripojené','MCP\x20neznámy\x20stav','Skúša\x20sa\x20znova...','MCP:\x20Sieťová\x20chyba','MCP\x20odpojené','Povoliť\x20overenie','Čo\x20je\x20API\x20kľúč?','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','4eXklSk','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','5686585Ykopdf','MCP:\x20Prekročený\x20počet\x20pokusov','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','ID\x20relácie','exports','100HIUUWz','Pripojenie\x20zlyhalo','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','MCP\x20pripojené','2116204YgQZKL','Kroky\x20konfigurácie:','3PDNudS','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','14289318xXafVF'];_0x36a6=function(){return _0x2a9b66;};return _0x36a6();}(function(_0x365e77,_0x2d4fd4){const _0x5f9f6e=_0x3101,_0x5a967f=_0x365e77();while(!![]){try{const _0x5b6038=-parseInt(_0x5f9f6e(0x19d))/0x1*(parseInt(_0x5f9f6e(0x1b0))/0x2)+parseInt(_0x5f9f6e(0x1be))/0x3*(parseInt(_0x5f9f6e(0x1bc))/0x4)+-parseInt(_0x5f9f6e(0x1b2))/0x5+-parseInt(_0x5f9f6e(0x1a5))/0x6+parseInt(_0x5f9f6e(0x1c3))/0x7*(parseInt(_0x5f9f6e(0x198))/0x8)+parseInt(_0x5f9f6e(0x1c0))/0x9+parseInt(_0x5f9f6e(0x1b8))/0xa*(parseInt(_0x5f9f6e(0x19e))/0xb);if(_0x5b6038===_0x2d4fd4)break;else _0x5a967f['push'](_0x5a967f['shift']());}catch(_0x26dc52){_0x5a967f['push'](_0x5a967f['shift']());}}}(_0x36a6,0xc567f));const e={'mcpStatus':{'disconnected':_0x5d0f9e(0x1ac),'connecting':'MCP\x20sa\x20pripája...','connected':_0x5d0f9e(0x1bb),'failed':_0x5d0f9e(0x19a),'retrying':'MCP\x20opakuje\x20pokus...','unknown':_0x5d0f9e(0x1a9),'unauthorized':_0x5d0f9e(0x19b),'sessionOccupied':'MCP:\x20ID\x20relácie\x20je\x20obsadené','networkError':_0x5d0f9e(0x1ab),'maxRetriesExceeded':_0x5d0f9e(0x1b3),'clickToConnect':_0x5d0f9e(0x1a1),'clickToConfigure':_0x5d0f9e(0x18e)},'mcpConfig':{'title':_0x5d0f9e(0x18f),'description':'Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','apiKey':_0x5d0f9e(0x1a4),'apiKeyPlaceholder':'Zadajte\x20svoj\x20API\x20kľúč','apiKeyHint':_0x5d0f9e(0x192),'enableAuth':_0x5d0f9e(0x1ad),'enableAuthHint':_0x5d0f9e(0x1b5),'connectionInfo':_0x5d0f9e(0x1a6),'mcpClientConfig':_0x5d0f9e(0x1a6),'configInstructions':_0x5d0f9e(0x1c1),'configStepTitle':_0x5d0f9e(0x1bd),'configStep1':'Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','configStep2':_0x5d0f9e(0x190),'configStep3':_0x5d0f9e(0x191),'sessionId':_0x5d0f9e(0x1b6),'sessionIdDescription':_0x5d0f9e(0x1a7),'authorizationDescription':'API\x20kľúč\x20s\x20prefixom\x20Bearer.','configParameters':_0x5d0f9e(0x199),'maxRetries':_0x5d0f9e(0x19f),'save':_0x5d0f9e(0x194),'saving':_0x5d0f9e(0x1a0),'note1':_0x5d0f9e(0x195),'note2':_0x5d0f9e(0x197),'configSaved':_0x5d0f9e(0x1a2),'configError':_0x5d0f9e(0x196),'apiApplyInfo':{'title':_0x5d0f9e(0x1ae),'description':'API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','univerAiLabel':'Univer\x20AI\x20konzola','getStarted':_0x5d0f9e(0x193)},'validation':{'apiKeyRequired':'API\x20kľúč\x20je\x20povinný','apiKeyTooShort':_0x5d0f9e(0x1bf),'invalidConfig':_0x5d0f9e(0x1c2),'invalidApiKey':_0x5d0f9e(0x19c)},'connectionStatus':{'disconnected':'Odpojené','connecting':_0x5d0f9e(0x1a3),'connected':_0x5d0f9e(0x1a8),'failed':_0x5d0f9e(0x1b9),'retrying':_0x5d0f9e(0x1aa)},'connectionError':{'unauthorized':_0x5d0f9e(0x1b1),'sessionOccupied':_0x5d0f9e(0x1af),'networkError':_0x5d0f9e(0x1b4),'maxRetriesExceeded':_0x5d0f9e(0x1ba)}}};module[_0x5d0f9e(0x1b7)]=e;
1
+ 'use strict';const _0x18aa33=_0xb80e;function _0x509d(){const _0x5c8deb=['14928ZJOMrS','MCP:\x20Neautorizované','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','MCP\x20sa\x20pripája...','2895PnDqYI','MCP:\x20Prekročený\x20počet\x20pokusov','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','Pripojené','353736kNTRIV','Zadajte\x20svoj\x20API\x20kľúč','API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','422768drFaBr','Pripojenie\x20zlyhalo','1484652SDsljz','44UwpSPH','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','API\x20kľúč\x20je\x20povinný','1572YJLZGp','Čo\x20je\x20API\x20kľúč?','Ukladá\x20sa...','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','Pripojenie\x20MCP\x20zlyhalo','834SBwYRz','MCP\x20opakuje\x20pokus...','API\x20kľúč','MCP\x20pripojené','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','Konfigurácia\x20MCP','58bbRmTD','Pripája\x20sa...','Skúša\x20sa\x20znova...','4396399IFAcMY','API\x20kľúč\x20s\x20prefixom\x20Bearer.','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','Kroky\x20konfigurácie:','Univer\x20AI\x20konzola','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','Neplatná\x20konfigurácia','MCP\x20neznámy\x20stav','Kliknite\x20na\x20konfiguráciu\x20MCP','Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','MCP:\x20Sieťová\x20chyba','exports','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','Povoliť\x20overenie','Odpojené','160uLycoU','MCP\x20odpojené','ID\x20relácie','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','Konfigurácia\x20klienta\x20MCP','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','4868sLVRGm'];_0x509d=function(){return _0x5c8deb;};return _0x509d();}(function(_0x2b99be,_0x15db57){const _0x5af995=_0xb80e,_0x24ab79=_0x2b99be();while(!![]){try{const _0x367c00=parseInt(_0x5af995(0xc1))/0x1*(parseInt(_0x5af995(0xda))/0x2)+parseInt(_0x5af995(0xb5))/0x3*(-parseInt(_0x5af995(0xd9))/0x4)+parseInt(_0x5af995(0xde))/0x5*(parseInt(_0x5af995(0xba))/0x6)+parseInt(_0x5af995(0xc4))/0x7+parseInt(_0x5af995(0xaf))/0x8+parseInt(_0x5af995(0xac))/0x9*(-parseInt(_0x5af995(0xd3))/0xa)+parseInt(_0x5af995(0xb2))/0xb*(parseInt(_0x5af995(0xb1))/0xc);if(_0x367c00===_0x15db57)break;else _0x24ab79['push'](_0x24ab79['shift']());}catch(_0x260eff){_0x24ab79['push'](_0x24ab79['shift']());}}}(_0x509d,0x672d0));function _0xb80e(_0x5442e5,_0x33a245){_0x5442e5=_0x5442e5-0xaa;const _0x509dcd=_0x509d();let _0xb80e97=_0x509dcd[_0x5442e5];return _0xb80e97;}const e={'mcpStatus':{'disconnected':_0x18aa33(0xd4),'connecting':_0x18aa33(0xdd),'connected':_0x18aa33(0xbd),'failed':_0x18aa33(0xb9),'retrying':_0x18aa33(0xbb),'unknown':_0x18aa33(0xcb),'unauthorized':_0x18aa33(0xdb),'sessionOccupied':'MCP:\x20ID\x20relácie\x20je\x20obsadené','networkError':_0x18aa33(0xce),'maxRetriesExceeded':_0x18aa33(0xdf),'clickToConnect':'Kliknite\x20na\x20pripojenie\x20MCP','clickToConfigure':_0x18aa33(0xcc)},'mcpConfig':{'title':_0x18aa33(0xc0),'description':_0x18aa33(0xd6),'apiKey':_0x18aa33(0xbc),'apiKeyPlaceholder':_0x18aa33(0xad),'apiKeyHint':'Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','enableAuth':_0x18aa33(0xd1),'enableAuthHint':_0x18aa33(0xc6),'connectionInfo':_0x18aa33(0xd7),'mcpClientConfig':_0x18aa33(0xd7),'configInstructions':_0x18aa33(0xc9),'configStepTitle':_0x18aa33(0xc7),'configStep1':'Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','configStep2':'Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','configStep3':_0x18aa33(0xcd),'sessionId':_0x18aa33(0xd5),'sessionIdDescription':'Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','authorizationDescription':_0x18aa33(0xc5),'configParameters':'Parametre\x20konfigurácie:','maxRetries':'Maximálny\x20počet\x20pokusov','save':'Uložiť\x20konfiguráciu','saving':_0x18aa33(0xb7),'note1':'Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','note2':_0x18aa33(0xaa),'configSaved':'Konfigurácia\x20bola\x20úspešne\x20uložená','configError':'Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','apiApplyInfo':{'title':_0x18aa33(0xb6),'description':_0x18aa33(0xae),'univerAiLabel':_0x18aa33(0xc8),'getStarted':_0x18aa33(0xb3)},'validation':{'apiKeyRequired':_0x18aa33(0xb4),'apiKeyTooShort':_0x18aa33(0xd0),'invalidConfig':_0x18aa33(0xca),'invalidApiKey':_0x18aa33(0xbf)},'connectionStatus':{'disconnected':_0x18aa33(0xd2),'connecting':_0x18aa33(0xc2),'connected':_0x18aa33(0xab),'failed':_0x18aa33(0xb0),'retrying':_0x18aa33(0xc3)},'connectionError':{'unauthorized':_0x18aa33(0xd8),'sessionOccupied':_0x18aa33(0xb8),'networkError':_0x18aa33(0xbe),'maxRetriesExceeded':_0x18aa33(0xdc)}}};module[_0x18aa33(0xcf)]=e;
@@ -1 +1 @@
1
- 'use strict';function _0x10d1(_0x565ebc,_0x21a203){_0x565ebc=_0x565ebc-0x69;const _0x49f208=_0x49f2();let _0x10d1a0=_0x49f208[_0x565ebc];return _0x10d1a0;}const _0x1b91cc=_0x10d1;(function(_0xfd0ea6,_0xa123d9){const _0x19a435=_0x10d1,_0x128b51=_0xfd0ea6();while(!![]){try{const _0x782734=-parseInt(_0x19a435(0x8a))/0x1*(parseInt(_0x19a435(0x7c))/0x2)+-parseInt(_0x19a435(0x8c))/0x3+-parseInt(_0x19a435(0x89))/0x4*(-parseInt(_0x19a435(0x71))/0x5)+-parseInt(_0x19a435(0x80))/0x6*(-parseInt(_0x19a435(0x93))/0x7)+parseInt(_0x19a435(0x82))/0x8+-parseInt(_0x19a435(0x8b))/0x9+parseInt(_0x19a435(0x95))/0xa;if(_0x782734===_0xa123d9)break;else _0x128b51['push'](_0x128b51['shift']());}catch(_0x4a1662){_0x128b51['push'](_0x128b51['shift']());}}}(_0x49f2,0xa2bd4));function _0x49f2(){const _0x1ac8f4=['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.','Cấu\x20hình\x20MCP','1191724xzVgik','25717QWtchc','10736883sUPgaK','1632972fzgFOv','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Khóa\x20API','Lưu\x20cấu\x20hình','MCP\x20Đã\x20kết\x20nối','Cấu\x20hình\x20không\x20hợp\x20lệ','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','931nuZKIF','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','4491700EgiGDc','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','Nhấp\x20để\x20kết\x20nối\x20MCP','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Yêu\x20cầu\x20khóa\x20API','Đị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','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','15LWGChf','MCP\x20Kết\x20nối\x20thất\x20bại','Lưu\x20cấu\x20hình\x20thất\x20bại','Đã\x20kết\x20nối','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Các\x20bước\x20cấu\x20hình:','Bật\x20xác\x20thực','Nhập\x20khóa\x20API\x20của\x20bạn','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','MCP:\x20Không\x20được\x20phép','92rqGqiZ','Khóa\x20API\x20là\x20gì?','Đang\x20kết\x20nối...','Đang\x20thử\x20lại...','48156NSCNxy','Đã\x20ngắt\x20kết\x20nối','9411616npNSYw','MCP\x20Đã\x20ngắt\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:','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','Đang\x20lưu...'];_0x49f2=function(){return _0x1ac8f4;};return _0x49f2();}const n={'mcpStatus':{'disconnected':_0x1b91cc(0x83),'connecting':'MCP\x20Đang\x20kết\x20nối...','connected':_0x1b91cc(0x90),'failed':_0x1b91cc(0x72),'retrying':'MCP\x20Đang\x20thử\x20lại...','unknown':_0x1b91cc(0x6e),'unauthorized':_0x1b91cc(0x7b),'sessionOccupied':'MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','networkError':_0x1b91cc(0x6b),'maxRetriesExceeded':_0x1b91cc(0x79),'clickToConnect':_0x1b91cc(0x97),'clickToConfigure':'Nhấp\x20để\x20cấu\x20hình\x20MCP'},'mcpConfig':{'title':_0x1b91cc(0x88),'description':'Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','apiKey':_0x1b91cc(0x8e),'apiKeyPlaceholder':_0x1b91cc(0x78),'apiKeyHint':_0x1b91cc(0x92),'enableAuth':_0x1b91cc(0x77),'enableAuthHint':_0x1b91cc(0x85),'connectionInfo':'Cấu\x20hình\x20máy\x20khách\x20MCP','mcpClientConfig':'Cấu\x20hình\x20máy\x20khách\x20MCP','configInstructions':_0x1b91cc(0x84),'configStepTitle':_0x1b91cc(0x76),'configStep1':_0x1b91cc(0x70),'configStep2':_0x1b91cc(0x6c),'configStep3':_0x1b91cc(0x96),'sessionId':'ID\x20phiên','sessionIdDescription':_0x1b91cc(0x6a),'authorizationDescription':'Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':_0x1b91cc(0x98),'save':_0x1b91cc(0x8f),'saving':_0x1b91cc(0x86),'note1':_0x1b91cc(0x7a),'note2':_0x1b91cc(0x6d),'configSaved':_0x1b91cc(0x94),'configError':_0x1b91cc(0x73),'apiApplyInfo':{'title':_0x1b91cc(0x7d),'description':_0x1b91cc(0x87),'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':_0x1b91cc(0x69),'apiKeyTooShort':'Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','invalidConfig':_0x1b91cc(0x91),'invalidApiKey':_0x1b91cc(0x8d)},'connectionStatus':{'disconnected':_0x1b91cc(0x81),'connecting':_0x1b91cc(0x7e),'connected':_0x1b91cc(0x74),'failed':'Kết\x20nối\x20thất\x20bại','retrying':_0x1b91cc(0x7f)},'connectionError':{'unauthorized':'Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','sessionOccupied':_0x1b91cc(0x75),'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':_0x1b91cc(0x6f)}}};module['exports']=n;
1
+ 'use strict';const _0x5d65bc=_0x49a8;(function(_0x40ab30,_0x7138be){const _0x18ce8b=_0x49a8,_0x1b03b6=_0x40ab30();while(!![]){try{const _0x309152=-parseInt(_0x18ce8b(0x88))/0x1+-parseInt(_0x18ce8b(0x83))/0x2+-parseInt(_0x18ce8b(0xa2))/0x3+-parseInt(_0x18ce8b(0x89))/0x4+-parseInt(_0x18ce8b(0x9b))/0x5*(-parseInt(_0x18ce8b(0xa1))/0x6)+-parseInt(_0x18ce8b(0xa0))/0x7*(-parseInt(_0x18ce8b(0x9f))/0x8)+parseInt(_0x18ce8b(0x84))/0x9;if(_0x309152===_0x7138be)break;else _0x1b03b6['push'](_0x1b03b6['shift']());}catch(_0x10b559){_0x1b03b6['push'](_0x1b03b6['shift']());}}}(_0x5937,0x7d74a));function _0x5937(){const _0x480be3=['Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Khóa\x20API\x20là\x20gì?','Bảng\x20điều\x20khiển\x20Univer\x20AI','Cấu\x20hình\x20máy\x20khách\x20MCP','Lưu\x20cấu\x20hình','exports','MCP:\x20Lỗi\x20mạng','Các\x20bước\x20cấu\x20hình:','Kết\x20nối\x20thất\x20bại','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','135DsTGdm','MCP:\x20Không\x20được\x20phép','Đị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.','Nhấp\x20để\x20cấu\x20hình\x20MCP','472368KNeahh','49gOxzRc','121596nvVeIe','748383QCYeNC','Nhập\x20khóa\x20API\x20của\x20bạn','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Nhấp\x20để\x20kết\x20nối\x20MCP','Cấu\x20hình\x20không\x20hợp\x20lệ','Tham\x20số\x20cấu\x20hình:','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','Khóa\x20API\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','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','Lưu\x20cấu\x20hình\x20thất\x20bại','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','672208GAhGzR','7622631uPXjOj','Khóa\x20API','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','517654yNIfEB','761512pNlFtJ','MCP\x20Đang\x20kết\x20nối...','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','Yêu\x20cầu\x20khóa\x20API','Cấu\x20hình\x20MCP'];_0x5937=function(){return _0x480be3;};return _0x5937();}function _0x49a8(_0x1fcc22,_0x539d15){_0x1fcc22=_0x1fcc22-0x7f;const _0x5937b8=_0x5937();let _0x49a833=_0x5937b8[_0x1fcc22];return _0x49a833;}const n={'mcpStatus':{'disconnected':'MCP\x20Đã\x20ngắt\x20kết\x20nối','connecting':_0x5d65bc(0x8a),'connected':'MCP\x20Đã\x20kết\x20nối','failed':'MCP\x20Kết\x20nối\x20thất\x20bại','retrying':'MCP\x20Đang\x20thử\x20lại...','unknown':_0x5d65bc(0x90),'unauthorized':_0x5d65bc(0x9c),'sessionOccupied':'MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','networkError':_0x5d65bc(0x96),'maxRetriesExceeded':_0x5d65bc(0x99),'clickToConnect':_0x5d65bc(0xa5),'clickToConfigure':_0x5d65bc(0x9e)},'mcpConfig':{'title':_0x5d65bc(0x8e),'description':_0x5d65bc(0x7f),'apiKey':_0x5d65bc(0x85),'apiKeyPlaceholder':_0x5d65bc(0xa3),'apiKeyHint':_0x5d65bc(0xa4),'enableAuth':'Bật\x20xác\x20thực','enableAuthHint':_0x5d65bc(0x8c),'connectionInfo':_0x5d65bc(0x93),'mcpClientConfig':_0x5d65bc(0x93),'configInstructions':_0x5d65bc(0x86),'configStepTitle':_0x5d65bc(0x97),'configStep1':'Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','configStep2':_0x5d65bc(0x9a),'configStep3':_0x5d65bc(0x80),'sessionId':'ID\x20phiên','sessionIdDescription':_0x5d65bc(0x9d),'authorizationDescription':'Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','configParameters':_0x5d65bc(0xa7),'maxRetries':'Số\x20lần\x20thử\x20lại\x20tối\x20đa','save':_0x5d65bc(0x94),'saving':'Đang\x20lưu...','note1':_0x5d65bc(0x87),'note2':_0x5d65bc(0x8f),'configSaved':_0x5d65bc(0xa9),'configError':_0x5d65bc(0x81),'apiApplyInfo':{'title':_0x5d65bc(0x91),'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':_0x5d65bc(0x92),'getStarted':_0x5d65bc(0x82)},'validation':{'apiKeyRequired':_0x5d65bc(0x8d),'apiKeyTooShort':_0x5d65bc(0xab),'invalidConfig':_0x5d65bc(0xa6),'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':'Đã\x20ngắt\x20kết\x20nối','connecting':'Đang\x20kết\x20nối...','connected':'Đã\x20kết\x20nối','failed':_0x5d65bc(0x98),'retrying':'Đang\x20thử\x20lại...'},'connectionError':{'unauthorized':_0x5d65bc(0x8b),'sessionOccupied':_0x5d65bc(0xa8),'networkError':_0x5d65bc(0xaa),'maxRetriesExceeded':'Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau'}}};module[_0x5d65bc(0x95)]=n;
@@ -1 +1 @@
1
- 'use strict';function _0x1bf1(_0x2a9a17,_0x5d7f81){_0x2a9a17=_0x2a9a17-0xaf;const _0x31930f=_0x3193();let _0x1bf165=_0x31930f[_0x2a9a17];return _0x1bf165;}function _0x3193(){const _0xad7a65=['连接失败','108XArZLK','MCP\x20连接失败','API\x20密钥长度至少需要\x2010\x20位','配置参数:','几秒钟内获取您的\x20API\x20密钥','4306742hnqzNW','196296IChWjk','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','1118VHAZvs','20lKMMYR','117veIcfx','配置保存成功','MCP:\x20超出最大重试次数','MCP:\x20会话\x20ID\x20已被占用','910RawOzO','重连中...','API\x20密钥无效,请检查密钥是否正确','MCP\x20已连接','最大重试次数','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Univer\x20AI\x20控制台','配置保存失败','MCP\x20已断开','您的\x20API\x20密钥安全存储在本地存储中','启用身份验证以获得安全连接','网络连接错误,请检查您的网络连接','MCP:\x20网络错误','权限验证失败,请检查您的\x20API\x20密钥','点击配置\x20MCP','10664kPbhJr','将配置添加到您的\x20MCP\x20客户端设置文件中','带有\x20Bearer\x20前缀的\x20API\x20密钥。','258488RxFIns','MCP\x20配置','复制以下\x20JSON\x20配置','4jRJuiR','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20客户端配置','1735360XZgmVB','超出最大重试次数,请稍后再试','保存配置','23370WHUITD','1161723VGvepC','MCP:\x20未授权','启用身份验证','MCP\x20状态未知','exports','已连接','请输入您的\x20API\x20密钥','MCP\x20连接中...','保存中...','API\x20密钥','会话ID','会话\x20ID\x20已被占用,请稍后再试'];_0x3193=function(){return _0xad7a65;};return _0x3193();}const _0x4b019d=_0x1bf1;(function(_0x344ce2,_0x97eafb){const _0x37656d=_0x1bf1,_0x4c406b=_0x344ce2();while(!![]){try{const _0x218311=parseInt(_0x37656d(0xdb))/0x1*(-parseInt(_0x37656d(0xb7))/0x2)+-parseInt(_0x37656d(0xc4))/0x3*(-parseInt(_0x37656d(0xbd))/0x4)+parseInt(_0x37656d(0xc0))/0x5+parseInt(_0x37656d(0xc3))/0x6*(-parseInt(_0x37656d(0xdf))/0x7)+-parseInt(_0x37656d(0xba))/0x8*(-parseInt(_0x37656d(0xd1))/0x9)+parseInt(_0x37656d(0xda))/0xa*(-parseInt(_0x37656d(0xd6))/0xb)+-parseInt(_0x37656d(0xd7))/0xc*(-parseInt(_0x37656d(0xd9))/0xd);if(_0x218311===_0x97eafb)break;else _0x4c406b['push'](_0x4c406b['shift']());}catch(_0x308480){_0x4c406b['push'](_0x4c406b['shift']());}}}(_0x3193,0x964ab));const e={'mcpStatus':{'disconnected':_0x4b019d(0xb0),'connecting':_0x4b019d(0xcb),'connected':_0x4b019d(0xe2),'failed':_0x4b019d(0xd2),'retrying':'MCP\x20重连中...','unknown':_0x4b019d(0xc7),'unauthorized':_0x4b019d(0xc5),'sessionOccupied':_0x4b019d(0xde),'networkError':_0x4b019d(0xb4),'maxRetriesExceeded':_0x4b019d(0xdd),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x4b019d(0xb6)},'mcpConfig':{'title':_0x4b019d(0xbb),'description':_0x4b019d(0xe4),'apiKey':_0x4b019d(0xcd),'apiKeyPlaceholder':_0x4b019d(0xca),'apiKeyHint':_0x4b019d(0xbe),'enableAuth':_0x4b019d(0xc6),'enableAuthHint':_0x4b019d(0xb2),'connectionInfo':_0x4b019d(0xbf),'mcpClientConfig':_0x4b019d(0xbf),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':_0x4b019d(0xbc),'configStep2':_0x4b019d(0xb8),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x4b019d(0xce),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x4b019d(0xb9),'configParameters':_0x4b019d(0xd4),'maxRetries':_0x4b019d(0xe3),'save':_0x4b019d(0xc2),'saving':_0x4b019d(0xcc),'note1':'配置更改将立即生效','note2':_0x4b019d(0xb1),'configSaved':_0x4b019d(0xdc),'configError':_0x4b019d(0xaf),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x4b019d(0xd8),'univerAiLabel':_0x4b019d(0xe5),'getStarted':_0x4b019d(0xd5)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x4b019d(0xd3),'invalidConfig':'配置无效','invalidApiKey':_0x4b019d(0xe1)},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x4b019d(0xc9),'failed':_0x4b019d(0xd0),'retrying':_0x4b019d(0xe0)},'connectionError':{'unauthorized':_0x4b019d(0xb5),'sessionOccupied':_0x4b019d(0xcf),'networkError':_0x4b019d(0xb3),'maxRetriesExceeded':_0x4b019d(0xc1)}}};module[_0x4b019d(0xc8)]=e;
1
+ 'use strict';const _0x43caad=_0x2996;(function(_0x38e7ed,_0x52700b){const _0x499068=_0x2996,_0xdf13d3=_0x38e7ed();while(!![]){try{const _0x4a8815=parseInt(_0x499068(0xb5))/0x1+-parseInt(_0x499068(0xc2))/0x2+parseInt(_0x499068(0xc1))/0x3*(-parseInt(_0x499068(0xdf))/0x4)+parseInt(_0x499068(0xbc))/0x5+parseInt(_0x499068(0xde))/0x6+parseInt(_0x499068(0xb6))/0x7+parseInt(_0x499068(0xb7))/0x8;if(_0x4a8815===_0x52700b)break;else _0xdf13d3['push'](_0xdf13d3['shift']());}catch(_0x23ba52){_0xdf13d3['push'](_0xdf13d3['shift']());}}}(_0x163a,0x47da4));function _0x2996(_0x3aaf61,_0x25bc0f){_0x3aaf61=_0x3aaf61-0xb4;const _0x163ad6=_0x163a();let _0x2996c1=_0x163ad6[_0x3aaf61];return _0x2996c1;}const e={'mcpStatus':{'disconnected':_0x43caad(0xb9),'connecting':'MCP\x20连接中...','connected':_0x43caad(0xcc),'failed':_0x43caad(0xcb),'retrying':_0x43caad(0xdc),'unknown':_0x43caad(0xd7),'unauthorized':_0x43caad(0xe1),'sessionOccupied':_0x43caad(0xdb),'networkError':_0x43caad(0xda),'maxRetriesExceeded':_0x43caad(0xcd),'clickToConnect':_0x43caad(0xca),'clickToConfigure':_0x43caad(0xd9)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x43caad(0xcf),'enableAuth':'启用身份验证','enableAuthHint':_0x43caad(0xe0),'connectionInfo':_0x43caad(0xbe),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':'配置步骤:','configStep1':_0x43caad(0xb4),'configStep2':_0x43caad(0xc8),'configStep3':_0x43caad(0xd1),'sessionId':_0x43caad(0xd8),'sessionIdDescription':_0x43caad(0xd5),'authorizationDescription':_0x43caad(0xc7),'configParameters':_0x43caad(0xc5),'maxRetries':_0x43caad(0xc6),'save':_0x43caad(0xc3),'saving':_0x43caad(0xba),'note1':_0x43caad(0xd0),'note2':_0x43caad(0xd6),'configSaved':'配置保存成功','configError':_0x43caad(0xd2),'apiApplyInfo':{'title':_0x43caad(0xb8),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x43caad(0xbf),'getStarted':_0x43caad(0xbb)},'validation':{'apiKeyRequired':_0x43caad(0xc9),'apiKeyTooShort':_0x43caad(0xc0),'invalidConfig':_0x43caad(0xce),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x43caad(0xd4),'connected':_0x43caad(0xbd),'failed':_0x43caad(0xc4),'retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x43caad(0xdd),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};module[_0x43caad(0xd3)]=e;function _0x163a(){const _0x420bf4=['带有\x20Bearer\x20前缀的\x20API\x20密钥。','将配置添加到您的\x20MCP\x20客户端设置文件中','API\x20密钥不能为空','点击连接\x20MCP','MCP\x20连接失败','MCP\x20已连接','MCP:\x20超出最大重试次数','配置无效','您的\x20API\x20密钥将在此浏览器中本地存储','配置更改将立即生效','重启您的\x20MCP\x20客户端以使配置生效','配置保存失败','exports','连接中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20状态未知','会话ID','点击配置\x20MCP','MCP:\x20网络错误','MCP:\x20会话\x20ID\x20已被占用','MCP\x20重连中...','会话\x20ID\x20已被占用,请稍后再试','395412YCJRsf','52tqWdrG','启用身份验证以获得安全连接','MCP:\x20未授权','复制以下\x20JSON\x20配置','30577YyulSJ','3631670bhXJNf','331112QtrkJy','什么是\x20API\x20密钥?','MCP\x20已断开','保存中...','几秒钟内获取您的\x20API\x20密钥','710360CqlPag','已连接','MCP\x20客户端配置','Univer\x20AI\x20控制台','API\x20密钥长度至少需要\x2010\x20位','67629qagJpf','422766SvTqYa','保存配置','连接失败','配置参数:','最大重试次数'];_0x163a=function(){return _0x420bf4;};return _0x163a();}
@@ -1 +1 @@
1
- 'use strict';function _0x5d97(_0x499c41,_0x17ddef){_0x499c41=_0x499c41-0x180;const _0x353b08=_0x353b();let _0x5d9767=_0x353b08[_0x499c41];return _0x5d9767;}const _0x2dacdc=_0x5d97;(function(_0x4bfb3e,_0x1fbf4e){const _0x3b5849=_0x5d97,_0x43784f=_0x4bfb3e();while(!![]){try{const _0x51a08a=parseInt(_0x3b5849(0x182))/0x1*(parseInt(_0x3b5849(0x19c))/0x2)+-parseInt(_0x3b5849(0x195))/0x3+-parseInt(_0x3b5849(0x1a7))/0x4+parseInt(_0x3b5849(0x189))/0x5*(parseInt(_0x3b5849(0x198))/0x6)+parseInt(_0x3b5849(0x18c))/0x7*(-parseInt(_0x3b5849(0x1a5))/0x8)+-parseInt(_0x3b5849(0x194))/0x9+parseInt(_0x3b5849(0x18d))/0xa;if(_0x51a08a===_0x1fbf4e)break;else _0x43784f['push'](_0x43784f['shift']());}catch(_0x3c85c7){_0x43784f['push'](_0x43784f['shift']());}}}(_0x353b,0x8201a));function _0x353b(){const _0x4a95ce=['MCP\x20Retrying...','53864DhagiQ','MCP\x20Configuration','141272fupZXB','MCP\x20Unknown\x20Status','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','94879JutSlK','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','Univer\x20AI\x20Console','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','5TCZwKi','Failed\x20to\x20save\x20configuration','Connection\x20Failed','329wdTaTs','9594130PcMwDp','Max\x20Retries','Session\x20ID','Click\x20to\x20connect\x20MCP','API\x20Key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Get\x20your\x20API\x20key\x20in\x20seconds','30897WkhvTR','2862753EETuwN','Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','2448906CbWmLV','Copy\x20the\x20JSON\x20configuration\x20below','Save\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','10yDqSTR','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','Configuration\x20Steps:','API\x20key\x20is\x20required','Enter\x20your\x20API\x20key','exports','MCP:\x20Network\x20Error'];_0x353b=function(){return _0x4a95ce;};return _0x353b();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x2dacdc(0x1a4),'unknown':_0x2dacdc(0x1a8),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2dacdc(0x1a3),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2dacdc(0x190),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2dacdc(0x1a6),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x2dacdc(0x191),'apiKeyPlaceholder':_0x2dacdc(0x1a1),'apiKeyHint':_0x2dacdc(0x188),'enableAuth':_0x2dacdc(0x186),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2dacdc(0x19e),'mcpClientConfig':_0x2dacdc(0x19e),'configInstructions':_0x2dacdc(0x192),'configStepTitle':_0x2dacdc(0x19f),'configStep1':_0x2dacdc(0x199),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2dacdc(0x18f),'sessionIdDescription':_0x2dacdc(0x197),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x2dacdc(0x18e),'save':_0x2dacdc(0x19a),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2dacdc(0x180),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x2dacdc(0x18a),'apiApplyInfo':{'title':_0x2dacdc(0x19d),'description':_0x2dacdc(0x181),'univerAiLabel':_0x2dacdc(0x187),'getStarted':_0x2dacdc(0x193)},'validation':{'apiKeyRequired':_0x2dacdc(0x1a0),'apiKeyTooShort':_0x2dacdc(0x19b),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2dacdc(0x185)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2dacdc(0x196),'connected':'Connected','failed':_0x2dacdc(0x18b),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x2dacdc(0x184),'networkError':_0x2dacdc(0x183),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x2dacdc(0x1a2)]=n;
1
+ 'use strict';function _0x1aa1(){const _0x4b2419=['Failed\x20to\x20save\x20configuration','Connecting...','Save\x20Configuration','58023AKneTL','MCP\x20Connecting...','Enter\x20your\x20API\x20key','21Wrywif','Retrying...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','244396FMtwrf','exports','45456raJOsl','Session\x20ID','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20Steps:','48InftzD','API\x20key\x20with\x20Bearer\x20prefix.','Get\x20your\x20API\x20key\x20in\x20seconds','24EmAYPS','MCP\x20Unknown\x20Status','What\x20is\x20API\x20Key?','351175swQRHj','420071oKUUGX','Invalid\x20configuration','MCP\x20Disconnected','2070387EIhZxB','Click\x20to\x20configure\x20MCP','Click\x20to\x20connect\x20MCP','API\x20key\x20is\x20required','Copy\x20the\x20JSON\x20configuration\x20below','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20Authentication','MCP\x20Retrying...','10WrJGbu','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Disconnected','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','Univer\x20AI\x20Console','2284299FaDgeU','MCP\x20Configuration','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key'];_0x1aa1=function(){return _0x4b2419;};return _0x1aa1();}function _0x3f87(_0x3a07f8,_0xc8866a){_0x3a07f8=_0x3a07f8-0x15a;const _0x1aa1f5=_0x1aa1();let _0x3f872e=_0x1aa1f5[_0x3a07f8];return _0x3f872e;}const _0x52a948=_0x3f87;(function(_0x3f5bff,_0x5c06f2){const _0x40a90e=_0x3f87,_0x58dacc=_0x3f5bff();while(!![]){try{const _0x22a35e=parseInt(_0x40a90e(0x177))/0x1+-parseInt(_0x40a90e(0x169))/0x2+-parseInt(_0x40a90e(0x164))/0x3*(parseInt(_0x40a90e(0x167))/0x4)+parseInt(_0x40a90e(0x176))/0x5*(parseInt(_0x40a90e(0x173))/0x6)+-parseInt(_0x40a90e(0x161))/0x7*(-parseInt(_0x40a90e(0x170))/0x8)+parseInt(_0x40a90e(0x18d))/0x9*(-parseInt(_0x40a90e(0x184))/0xa)+parseInt(_0x40a90e(0x17a))/0xb;if(_0x22a35e===_0x5c06f2)break;else _0x58dacc['push'](_0x58dacc['shift']());}catch(_0x37e570){_0x58dacc['push'](_0x58dacc['shift']());}}}(_0x1aa1,0x394ea));const e={'mcpStatus':{'disconnected':_0x52a948(0x179),'connecting':_0x52a948(0x162),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x52a948(0x183),'unknown':_0x52a948(0x174),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x52a948(0x186),'clickToConnect':_0x52a948(0x17c),'clickToConfigure':_0x52a948(0x17b)},'mcpConfig':{'title':_0x52a948(0x18e),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x52a948(0x187),'apiKeyPlaceholder':_0x52a948(0x163),'apiKeyHint':_0x52a948(0x15b),'enableAuth':_0x52a948(0x182),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x52a948(0x18a),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x52a948(0x16b),'configStepTitle':_0x52a948(0x16f),'configStep1':_0x52a948(0x17e),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x52a948(0x15c),'sessionId':_0x52a948(0x16a),'sessionIdDescription':_0x52a948(0x16c),'authorizationDescription':_0x52a948(0x171),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x52a948(0x15a),'save':_0x52a948(0x160),'saving':'Saving...','note1':_0x52a948(0x181),'note2':_0x52a948(0x166),'configSaved':_0x52a948(0x18b),'configError':_0x52a948(0x15e),'apiApplyInfo':{'title':_0x52a948(0x175),'description':_0x52a948(0x188),'univerAiLabel':_0x52a948(0x18c),'getStarted':_0x52a948(0x172)},'validation':{'apiKeyRequired':_0x52a948(0x17d),'apiKeyTooShort':_0x52a948(0x185),'invalidConfig':_0x52a948(0x178),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x52a948(0x189),'connecting':_0x52a948(0x15f),'connected':_0x52a948(0x16d),'failed':_0x52a948(0x180),'retrying':_0x52a948(0x165)},'connectionError':{'unauthorized':_0x52a948(0x15d),'sessionOccupied':_0x52a948(0x16e),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x52a948(0x17f)}}},n=e;module[_0x52a948(0x168)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xc1882f=_0x2b73;(function(_0x27aedd,_0x5aa6b3){const _0x3d4f33=_0x2b73,_0x5f211f=_0x27aedd();while(!![]){try{const _0x4295c5=parseInt(_0x3d4f33(0x1ab))/0x1*(-parseInt(_0x3d4f33(0x1dc))/0x2)+-parseInt(_0x3d4f33(0x130))/0x3+parseInt(_0x3d4f33(0x129))/0x4+-parseInt(_0x3d4f33(0x1cf))/0x5*(-parseInt(_0x3d4f33(0x147))/0x6)+-parseInt(_0x3d4f33(0x1ee))/0x7+-parseInt(_0x3d4f33(0x23b))/0x8+parseInt(_0x3d4f33(0x194))/0x9;if(_0x4295c5===_0x5aa6b3)break;else _0x5f211f['push'](_0x5f211f['shift']());}catch(_0x66d560){_0x5f211f['push'](_0x5f211f['shift']());}}}(_0x4918,0x33f7a));var Pe=Object['defineProperty'],Ee=(_0x45addc,_0x66245b,_0x10fbf1)=>_0x66245b in _0x45addc?Pe(_0x45addc,_0x66245b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10fbf1}):_0x45addc[_0x66245b]=_0x10fbf1,x=(_0x27f3a8,_0xdd03ff,_0x57911e)=>Ee(_0x27f3a8,typeof _0xdd03ff!=_0xc1882f(0x269)?_0xdd03ff+'':_0xdd03ff,_0x57911e);import{LocaleService as _0x1e89fe,Inject as _0xc0b699,Injector as _0x3b274d,Disposable as _0x2595b1,IConfigService as _0x27ee87,ILocalStorageService as _0x1c57e0,ILogService as _0x30322e,CommandType as _0x4ccdae,ICommandService as _0x5911d4,DependentOn as _0x28f4fc,Plugin as _0x59c2b1,merge as _0x4d7e38}from'@univerjs/core';import{jsxs as _0x4c6a3d,jsx as _0x28c207}from'react/jsx-runtime';import{MCPConnectionStatus as _0x4b36b6,MCPConnectionError as _0x1d2c28,MCPConnectionController as _0x14ed3b,MCP_PLUGIN_CONFIG_KEY as _0x10d630,UniverMCPPlugin as _0x4a0391}from'@univerjs-pro/mcp';import{clsx as _0x3a12a5,Input as _0x33ea26,Button as _0x45b7b7,MessageType as _0x284621,Tooltip as _0x1cb187}from'@univerjs/design';import{useDependency as _0x2ca0d6,useObservable as _0xdb40c8,ComponentManager as _0x849cd3,connectInjector as _0x176dad,IUIPartsService as _0x3377e8,IDialogService as _0x58dfdb,IMessageService as _0x3b7f20,BuiltInUIPart as _0x3ffd53,MenuItemType as _0x393433,RibbonStartGroup as _0xf870d5,IMenuManagerService as _0x3db316}from'@univerjs/ui';function _0x4918(){const _0x22a675=['univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_config$','MCP\x20连接失败','univer.ai','idSuffix','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','UniverIcon','mask','1720656vHWceb','has','网络连接错误,请检查您的网络连接','mcpStatus.unauthorized','assign','MCP\x20配置','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-bg-blue-500','mcpConfig.note2','url(#$1','mcpConfig.connectionStatus.failed','disposeWithMe','mcpStatus.clickToConnect','enableAutoConnect','API\x20密钥不能为空','univer-space-y-3','off','UNAUTHORIZED','mcpStatus.retrying','children','MCP\x20Retrying...','mcpConfig.apiApplyInfo.description','mcpConfig.apiKey','CheckMarkIcon','defs','NETWORK_ERROR','Authorization:','_commandService','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','mcp-ui.config','mcpConfig.apiApplyInfo.title','重启您的\x20MCP\x20客户端以使配置生效','Save\x20Configuration','_loadStoredApiKey','<SESSION_ID>','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','https://mcp.univer.ai/mcp/?univer_session_id=','_initializeCommands','connectionStatus$','path','univer-text-red-500','_apiKey$','univer-flex\x20univer-gap-3','_mcpCoreConfig$','mcpStatus.disconnected','_localStorageService','symbol','currentColor','mcpConfig.connectionInfo','Max\x20Retries','MCP\x20客户端配置','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-flex\x20univer-items-start\x20univer-gap-2','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','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','MAX_RETRIES_EXCEEDED','MCP:\x20Max\x20Retries\x20Exceeded','配置步骤:','length','univer-text-yellow-500','add','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','API\x20key\x20is\x20required','univer-text-blue-600','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.connectionStatus.retrying','MenuIcon','close-icon','59084ISGLlc','trim','DISCONNECTED','Copy\x20the\x20JSON\x20configuration\x20below','您的\x20API\x20密钥安全存储在本地存储中','univer-flex\x20univer-items-center','string','1140039mdkMzY','mcpConfig.authorizationDescription','mcpConfig.apiApplyInfo.getStarted','error','mcpStatus.unknown','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpConfig.configStep3','mcpConfig.validation.invalidApiKey','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-space-y-4','点击连接\x20MCP','univerjs-icon\x20univerjs-icon-','1em','Univer\x20AI\x20Console','univer-space-y-5','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_uiPartsService','mcp.apiKey','_injector','setItem','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','6vyUOuz','复制以下\x20JSON\x20配置','round','MCP\x20Disconnected','mcpConfig.note1','MCPConfigPanel','use','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-text-sm\x20univer-text-gray-500','div','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','您的\x20API\x20密钥将在此浏览器中本地存储','univer-shrink-0\x20univer-text-red-500','forEach','univer-flex-1','_componentManager','mcpConfig.connectionStatus.connecting','启用身份验证以获得安全连接','defIds','mcpConfig.apiApplyInfo.univerAiLabel','on-line-icon','sessionId$','OnLineIcon','RETRYING','_initStatusComponent','getConfig','COMMAND','open','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_dialogService','_messageService','mcpConfig.configStep1','点击配置\x20MCP','next','evenodd','_loading$','_menuManagerService','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','check-mark-icon','__setCustomHeaders','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MCP\x20状态未知','https://console.univer.plus','univer-text-xs\x20univer-text-gray-500','_config','NONE','会话\x20ID\x20已被占用,请稍后再试','_connectionController','MCP\x20Connected','close','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','mcpStatus.maxRetriesExceeded','univer_session_id:','MCP\x20连接中...','mcpConfig.saving','0\x200\x2016\x2016','BUTTON','API\x20密钥无效,请检查密钥是否正确','mcpConfig.description','bottom','univer-flex\x20univer-items-start\x20univer-gap-3','label','mcpConfig.configParameters','_initConfigSync','subscribeConfigValue$','displayName','配置无效','保存中...','univer-font-medium','Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Saving...','mcpConfig.connectionError.maxRetriesExceeded','_handleConfigSave','保存配置','includes','univer-shrink-0\x20univer-text-blue-500','5964327SElGjq','off-line-icon_clip0_910_343','Failed\x20to\x20save\x20configuration','CloseIcon','MCP\x20已连接','MCP\x20Client\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpConfig.configError','substring','show','xlink:href','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','请输入您的\x20API\x20密钥','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','apiKey','CONNECTED','univer-text-green-500','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','removeItem','Get\x20your\x20API\x20key\x20in\x20seconds','_logService','svg','123926cQJyax','errorMessage','mcpConfig.apiKeyPlaceholder','OffLineIcon','mcpConfig.apiKeyHint','CONNECTING','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','已连接','mcp-ui.command.openConfigPanel','mcp-config-dialog','univer-min-w-0\x20univer-flex-1','Click\x20to\x20configure\x20MCP','mcpStatus.connecting','最大重试次数','_registerComponent','register','span','registerComponent','MCP\x20已断开','mergeMenu','Bearer\x20','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','replace','Invalid\x20configuration','getOwnPropertyDescriptor','mcpStatus.sessionOccupied','showStatus','mcpStatus.connected','subscribe','FAILED','pre','_mcpConnectionController','entries','What\x20is\x20API\x20Key?','univer-text-gray-400','\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','1397465SmbJPu','univer.plus','none','Success','isValid','Configuration\x20Steps:','push','权限验证失败,请检查您的\x20API\x20密钥','connectionError$','mcpConfig.validation.apiKeyRequired','MCP\x20Configuration','<API_KEY>','http://www.w3.org/2000/svg','2idjrdD','Error','registerCommand','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.title','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','mcpConfig.connectionError.unauthorized','0\x200\x2017\x2016','fill','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','重连中...','univer-size-2\x20univer-rounded-full','colorChannel1','http','几秒钟内获取您的\x20API\x20密钥','Click\x20to\x20connect\x20MCP','\x20-\x20','MCP\x20Unknown\x20Status','175616eeHtWy','showDeveloperTools','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionStatus.connected','_createConfigPanelComponent','MCP:\x20超出最大重试次数','univer-size-4','getCurrentConfig','Retrying...','MCP\x20Connection\x20Failed','mcpStatus.networkError','连接失败','_initializeMenus','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP_UI_PLUGIN','M0\x200H16V16H0z','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','tag','univer-bg-gray-500','配置保存失败','get','clipPath','MCP:\x20网络错误','_blank','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','univer-flex\x20univer-items-center\x20univer-gap-2','连接中...','mcpConfig.connectionError.sessionOccupied','univer-space-y-2','mcpConfig.sessionIdDescription','attrs','Configuration\x20Parameters:','off-line-icon','mcpServerUrl','_configService','SESSION_ID_OCCUPIED','translate(.97)','univer-text-sm\x20univer-font-medium','white','配置更改将立即生效','mcpConfig.configStepTitle','Univer\x20AI\x20控制台','map','setConfig','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','showConfigPanel','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_handleConfigure','value','Configuration\x20Notes:','noopener\x20noreferrer','HelpIcon','onStarting','超出最大重试次数,请稍后再试','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.validation.apiKeyTooShort','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','text','univer-bg-red-500','_localeService','univer-flex\x20univer-flex-wrap\x20univer-gap-2','mcpConfig.validation.invalidConfig','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','button','未连接','mcpConfig.configSaved','random','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:'];_0x4918=function(){return _0x22a675;};return _0x4918();}import{BehaviorSubject as _0x5e871f}from'rxjs';import{useRef as _0x59237c,createElement as _0x439406,forwardRef as _0x8e738c,useState as _0x47f360,useCallback as _0x3300f8}from'react';import{ISocketService as _0x50d983,WebSocketService as _0x3a96fd}from'@univerjs/network';function b({ref:_0x1d7443,..._0x512420}){const _0x13c918=_0xc1882f,{icon:_0x2ffcec,id:_0x3c5223,className:_0x2ed273,extend:_0x72e4e1,..._0x57bc60}=_0x512420,_0x1318d7=(_0x13c918(0x13c)+_0x3c5223+'\x20'+(_0x2ed273||''))[_0x13c918(0x12a)](),_0x2c198c=_0x59237c('_'+We());return ae(_0x2ffcec,''+_0x3c5223,{'defIds':_0x2ffcec[_0x13c918(0x159)],'idSuffix':_0x2c198c['current']},{'ref':_0x1d7443,'className':_0x1318d7,..._0x57bc60},_0x72e4e1);}function ae(_0xcf7f72,_0x58ab49,_0x25c14c,_0x5abb01,_0x3b231d){const _0x5da8fe=_0xc1882f;return _0x439406(_0xcf7f72[_0x5da8fe(0x1ff)],{'key':_0x58ab49,...Ye(_0xcf7f72,_0x25c14c,_0x3b231d),..._0x5abb01},(Ze(_0xcf7f72,_0x25c14c)[_0x5da8fe(0x24e)]||[])['map']((_0x2c132c,_0x78002c)=>ae(_0x2c132c,_0x58ab49+'-'+_0xcf7f72['tag']+'-'+_0x78002c,_0x25c14c,void 0x0,_0x3b231d)));}function Ye(_0x72ac8b,_0xf5cde,_0x3909e8){const _0x22be0c=_0xc1882f,_0x4fc469={..._0x72ac8b[_0x22be0c(0x20c)]};_0x3909e8!=null&&_0x3909e8[_0x22be0c(0x1e8)]&&_0x4fc469['fill']===_0x22be0c(0x1e8)&&(_0x4fc469[_0x22be0c(0x1e4)]=_0x3909e8[_0x22be0c(0x1e8)]),_0x72ac8b['tag']===_0x22be0c(0x23a)&&_0x4fc469['id']&&(_0x4fc469['id']=_0x4fc469['id']+_0xf5cde[_0x22be0c(0x236)]),Object[_0x22be0c(0x1cb)](_0x4fc469)['forEach'](([_0x189e8f,_0x58d452])=>{const _0x126041=_0x22be0c;_0x189e8f===_0x126041(0x23a)&&typeof _0x58d452==_0x126041(0x12f)&&(_0x4fc469[_0x189e8f]=_0x58d452[_0x126041(0x1c1)](/url\(#(.*)\)/,_0x126041(0x244)+_0xf5cde['idSuffix']+')'));});const {defIds:_0x4795ba}=_0xf5cde;return!_0x4795ba||_0x4795ba[_0x22be0c(0x275)]===0x0||(_0x72ac8b[_0x22be0c(0x1ff)]===_0x22be0c(0x14d)&&_0x4fc469[_0x22be0c(0x19e)]&&(_0x4fc469[_0x22be0c(0x19e)]=_0x4fc469[_0x22be0c(0x19e)]+_0xf5cde['idSuffix']),Object[_0x22be0c(0x1cb)](_0x4fc469)[_0x22be0c(0x154)](([_0x59071f,_0x3d859f])=>{const _0x3cbea7=_0x22be0c;typeof _0x3d859f==_0x3cbea7(0x12f)&&(_0x4fc469[_0x59071f]=_0x3d859f[_0x3cbea7(0x1c1)](/url\(#(.*)\)/,_0x3cbea7(0x244)+_0xf5cde['idSuffix']+')'));})),_0x4fc469;}function Ze(_0x20be2b,_0x3b6942){const _0xc7a401=_0xc1882f;var _0x335468;const {defIds:_0xbb473a}=_0x3b6942;return!_0xbb473a||_0xbb473a[_0xc7a401(0x275)]===0x0?_0x20be2b:_0x20be2b[_0xc7a401(0x1ff)]===_0xc7a401(0x253)&&((_0x335468=_0x20be2b[_0xc7a401(0x24e)])!=null&&_0x335468[_0xc7a401(0x275)])?{..._0x20be2b,'children':_0x20be2b[_0xc7a401(0x24e)][_0xc7a401(0x218)](_0x46254d=>typeof _0x46254d[_0xc7a401(0x20c)]['id']==_0xc7a401(0x12f)&&_0xbb473a&&_0xbb473a[_0xc7a401(0x192)](_0x46254d['attrs']['id'])?{..._0x46254d,'attrs':{..._0x46254d[_0xc7a401(0x20c)],'id':_0x46254d['attrs']['id']+_0x3b6942[_0xc7a401(0x236)]}}:_0x46254d)}:_0x20be2b;}function We(){const _0x8ae4ee=_0xc1882f;return Math[_0x8ae4ee(0x230)]()['toString'](0x24)[_0x8ae4ee(0x19c)](0x2,0x8);}b[_0xc1882f(0x188)]=_0xc1882f(0x239);const qe={'tag':_0xc1882f(0x1aa),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xc1882f(0x1d1),'viewBox':_0xc1882f(0x17e),'width':_0xc1882f(0x13d),'height':_0xc1882f(0x13d)},'children':[{'tag':'path','attrs':{'fill':'currentColor','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':'evenodd','clipRule':'evenodd'}}]},le=_0x8e738c(function(_0x3ee43d,_0x350f43){const _0x4846bc=_0xc1882f;return _0x439406(b,Object[_0x4846bc(0x23f)]({},_0x3ee43d,{'id':_0x4846bc(0x16d),'ref':_0x350f43,'icon':qe}));});le[_0xc1882f(0x188)]=_0xc1882f(0x252);const Xe={'tag':_0xc1882f(0x1aa),'attrs':{'xmlns':_0xc1882f(0x1db),'fill':'none','viewBox':_0xc1882f(0x17e),'width':'1em','height':_0xc1882f(0x13d)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},ue=_0x8e738c(function(_0x5717c0,_0xacab94){const _0x4d1803=_0xc1882f;return _0x439406(b,Object[_0x4d1803(0x23f)]({},_0x5717c0,{'id':_0x4d1803(0x27f),'ref':_0xacab94,'icon':Xe}));});ue[_0xc1882f(0x188)]=_0xc1882f(0x197);const Je={'tag':_0xc1882f(0x1aa),'attrs':{'xmlns':_0xc1882f(0x1db),'fill':_0xc1882f(0x1d1),'viewBox':_0xc1882f(0x17e),'width':_0xc1882f(0x13d),'height':_0xc1882f(0x13d)},'children':[{'tag':_0xc1882f(0x262),'attrs':{'fill':_0xc1882f(0x26a),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0xc1882f(0x262),'attrs':{'fill':_0xc1882f(0x26a),'d':_0xc1882f(0x1e1)}},{'tag':_0xc1882f(0x262),'attrs':{'fill':'currentColor','d':_0xc1882f(0x25e),'fillRule':'evenodd','clipRule':_0xc1882f(0x169)}}]},ve=_0x8e738c(function(_0x50d59e,_0x2416a7){return _0x439406(b,Object['assign']({},_0x50d59e,{'id':'help-icon','ref':_0x2416a7,'icon':Je}));});ve['displayName']=_0xc1882f(0x221);const Qe={'tag':_0xc1882f(0x1aa),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xc1882f(0x1d1),'viewBox':_0xc1882f(0x17e),'width':_0xc1882f(0x13d),'height':_0xc1882f(0x13d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0xc1882f(0x262),'attrs':{'stroke':_0xc1882f(0x26a),'d':_0xc1882f(0x21a),'strokeLinecap':_0xc1882f(0x149),'strokeLinejoin':_0xc1882f(0x149),'strokeWidth':1.2}}]},{'tag':_0xc1882f(0x253),'attrs':{},'children':[{'tag':_0xc1882f(0x203),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0xc1882f(0x262),'attrs':{'fill':_0xc1882f(0x214),'d':_0xc1882f(0x1fd)}}]}]}],'defIds':[_0xc1882f(0x195)]},de=_0x8e738c(function(_0x2a3d77,_0x44cc16){const _0x4caa9f=_0xc1882f;return _0x439406(b,Object['assign']({},_0x2a3d77,{'id':_0x4caa9f(0x20e),'ref':_0x44cc16,'icon':Qe}));});de[_0xc1882f(0x188)]=_0xc1882f(0x1ae);const en={'tag':_0xc1882f(0x1aa),'attrs':{'xmlns':_0xc1882f(0x1db),'fill':_0xc1882f(0x1d1),'viewBox':_0xc1882f(0x1e3),'width':_0xc1882f(0x13d),'height':_0xc1882f(0x13d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0xc1882f(0x262),'attrs':{'stroke':'currentColor','d':_0xc1882f(0x1a6),'strokeLinecap':_0xc1882f(0x149),'strokeLinejoin':_0xc1882f(0x149),'strokeWidth':1.2}}]},{'tag':_0xc1882f(0x253),'attrs':{},'children':[{'tag':_0xc1882f(0x203),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0xc1882f(0x262),'attrs':{'fill':_0xc1882f(0x214),'d':_0xc1882f(0x1fd),'transform':_0xc1882f(0x212)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x8e738c(function(_0x36f6e8,_0x29f4e6){const _0x559e49=_0xc1882f;return _0x439406(b,Object[_0x559e49(0x23f)]({},_0x36f6e8,{'id':_0x559e49(0x15b),'ref':_0x29f4e6,'icon':en}));});ge[_0xc1882f(0x188)]=_0xc1882f(0x15d);function nn(_0xfb0a8e){const _0xfa9459=_0xc1882f;var _0x175e75,_0x175fe4;const {mcpCoreConfig:_0x58bec3,onSave:_0x3b9778,loading:_0x5d3034=!0x1,config:_0x10c721,connectionStatus$:_0x3ad27d,connectionError$:_0x57826d,currentApiKey$:_0xbb4358,currentSessionId$:_0x720bea}=_0xfb0a8e,_0x2fd2c3=_0x2ca0d6(_0x1e89fe),_0x568121=_0xdb40c8(_0x3ad27d,_0x4b36b6[_0xfa9459(0x12b)]),_0x46cfa5=_0xdb40c8(_0x57826d,_0x1d2c28[_0xfa9459(0x174)]),_0x29e8a2=_0xdb40c8(_0x720bea,''),_0xba196e=_0xdb40c8(_0xbb4358,''),[_0x4af113,_0x157a17]=_0x47f360(_0xba196e||''),_0x433556=!0x0,_0x56fd9f=_0x10c721[_0xfa9459(0x1ef)]&&_0x58bec3['mcpServerUrl']&&(_0x58bec3['mcpServerUrl']['includes'](_0xfa9459(0x1d0))||_0x58bec3[_0xfa9459(0x20f)][_0xfa9459(0x192)](_0xfa9459(0x235))),_0x53723c=(_0x175e75=_0x58bec3['mcpServerUrl'])==null?void 0x0:_0x175e75['includes'](_0xfa9459(0x1d0)),_0x55291a=(_0x175fe4=_0x58bec3[_0xfa9459(0x20f)])==null?void 0x0:_0x175fe4[_0xfa9459(0x192)](_0xfa9459(0x235)),_0x4bc47a=_0x53723c?_0xfa9459(0x171):'https://console.univer.ai',_0x32f209=_0x10c721[_0xfa9459(0x1ef)]&&(_0x53723c||_0x55291a),[_0xa1afb0,_0xa80a14]=_0x47f360(!_0x4af113[_0xfa9459(0x12a)]()),_0x31684e=(_0x16bb3d,_0x1dd5f1)=>{const _0x2f34e9=_0xfa9459;if(_0x1dd5f1===_0x1d2c28[_0x2f34e9(0x24c)])return _0x2f34e9(0x270);switch(_0x16bb3d){case _0x4b36b6['CONNECTED']:return _0x2f34e9(0x146);case _0x4b36b6['CONNECTING']:case _0x4b36b6[_0x2f34e9(0x15e)]:return _0x2f34e9(0x16f);case _0x4b36b6[_0x2f34e9(0x1c8)]:return _0x2f34e9(0x270);default:return _0x2f34e9(0x27b);}},_0x1aedee=(_0x59f965,_0x1f1f4b)=>{const _0x22784a=_0xfa9459;if(_0x1f1f4b===_0x1d2c28['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x59f965){case _0x4b36b6[_0x22784a(0x1a4)]:return'univer-bg-green-500';case _0x4b36b6[_0x22784a(0x1b0)]:case _0x4b36b6[_0x22784a(0x15e)]:return _0x22784a(0x242);case _0x4b36b6[_0x22784a(0x1c8)]:return _0x22784a(0x228);default:return _0x22784a(0x200);}},_0x1efb93=_0x1135a2=>{const _0x525072=_0xfa9459;switch(_0x1135a2){case _0x4b36b6[_0x525072(0x1a4)]:return _0x2fd2c3['t'](_0x525072(0x1f1));case _0x4b36b6[_0x525072(0x1b0)]:return _0x2fd2c3['t'](_0x525072(0x157));case _0x4b36b6[_0x525072(0x1c8)]:return _0x2fd2c3['t'](_0x525072(0x245));case _0x4b36b6[_0x525072(0x15e)]:return _0x2fd2c3['t'](_0x525072(0x27d));default:return _0x2fd2c3['t']('mcpConfig.connectionStatus.disconnected');}},_0x1c3f1b=_0x1b81a2=>{const _0x33c6ce=_0xfa9459;switch(_0x1b81a2){case _0x1d2c28[_0x33c6ce(0x24c)]:return _0x2fd2c3['t'](_0x33c6ce(0x1e2));case _0x1d2c28[_0x33c6ce(0x211)]:return _0x2fd2c3['t'](_0x33c6ce(0x209));case _0x1d2c28['NETWORK_ERROR']:return _0x2fd2c3['t']('mcpConfig.connectionError.networkError');case _0x1d2c28['MAX_RETRIES_EXCEEDED']:return _0x2fd2c3['t'](_0x33c6ce(0x18f));default:return'';}},_0x2192cf=_0x3300f8(()=>{const _0x281934={..._0x58bec3,'apiKey':_0x4af113['trim'](),'enableAuth':_0x433556};_0x3b9778(_0x281934);},[_0x58bec3,_0x4af113,_0x433556,_0x3b9778]),_0x51ada3=_0x4af113[_0xfa9459(0x12a)]()[_0xfa9459(0x275)]>0x0;return _0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x1b1),'children':[_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x26e),'children':_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x232),'children':_0x28c207(_0xfa9459(0x1bb),{'className':'univer-text-white','children':'⚙'})}),_0x28c207(_0xfa9459(0x150),{'children':_0x28c207('p',{'className':_0xfa9459(0x14f),'children':_0x2fd2c3['t'](_0xfa9459(0x181))})})]})}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x140),'children':[_0x28c207('div',{'className':_0x3a12a5('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x31684e(_0x568121,_0x46cfa5)),'children':_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x28c207(_0xfa9459(0x150),{'className':_0x3a12a5(_0xfa9459(0x1e7),_0x1aedee(_0x568121,_0x46cfa5))}),_0x28c207(_0xfa9459(0x1bb),{'className':_0xfa9459(0x213),'children':_0x1efb93(_0x568121)})]})}),_0x46cfa5!==_0x1d2c28['NONE']&&(_0x568121===_0x4b36b6[_0xfa9459(0x1c8)]||_0x46cfa5===_0x1d2c28[_0xfa9459(0x24c)])&&_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x163),'children':_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x26f),'children':[_0x28c207(_0xfa9459(0x1bb),{'className':_0xfa9459(0x153),'children':'⚠️'}),_0x28c207('p',{'className':_0xfa9459(0x21c),'children':_0x1c3f1b(_0x46cfa5)})]})})]}),_0x28c207(_0xfa9459(0x150),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x13f),'children':[_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x20a),'children':[_0x4c6a3d(_0xfa9459(0x184),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x28c207('span',{'children':'🔑'}),'\x20',_0x2fd2c3['t'](_0xfa9459(0x251)),_0x28c207('span',{'className':'univer-text-red-500','children':'*'}),_0x56fd9f&&_0x28c207('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':_0x2fd2c3['t'](_0xfa9459(0x259)),'role':'button','onClick':()=>_0xa80a14(!0x0),'children':_0x28c207(ve,{})})]}),_0x28c207(_0x33ea26,{'type':_0xfa9459(0x227),'placeholder':_0x2fd2c3['t'](_0xfa9459(0x1ad)),'value':_0x4af113,'disabled':_0x5d3034,'autoComplete':_0xfa9459(0x24b),'onChange':_0x157a17}),_0x28c207('p',{'className':_0xfa9459(0x172),'children':_0x2fd2c3['t'](_0xfa9459(0x1af))})]}),_0x56fd9f&&_0xa1afb0&&_0x4c6a3d('div',{'className':_0xfa9459(0x271),'children':[_0x28c207('a',{'className':_0xfa9459(0x257),'role':'button','onClick':()=>_0xa80a14(!0x1),'children':_0x28c207(ue,{'className':_0xfa9459(0x1f4)})}),_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x28c207(_0xfa9459(0x150),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x28c207(_0xfa9459(0x1bb),{'className':_0xfa9459(0x27a),'children':'🚀'})}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x155),'children':[_0x28c207('h4',{'className':_0xfa9459(0x141),'children':_0x2fd2c3['t'](_0xfa9459(0x259))}),_0x28c207('p',{'className':_0xfa9459(0x135),'children':_0x2fd2c3['t'](_0xfa9459(0x250))}),_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x22a),'children':_0x32f209&&_0x4c6a3d('a',{'className':'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','href':_0x4bc47a,'target':_0xfa9459(0x205),'rel':_0xfa9459(0x220),'children':[_0x28c207('span',{'children':'🤖'}),_0x2fd2c3['t'](_0xfa9459(0x15a)),_0x28c207('span',{'className':_0xfa9459(0x1cd),'children':'↗'})]})}),_0x4c6a3d('div',{'className':_0xfa9459(0x27c),'children':['✨','\x20',_0x2fd2c3['t'](_0xfa9459(0x132))]})]})]})]}),_0x10c721[_0xfa9459(0x1ef)]&&_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x4c6a3d('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x28c207(_0xfa9459(0x1bb),{'children':'🔗'}),'\x20',_0x2fd2c3['t'](_0xfa9459(0x26b))]}),_0x4c6a3d('div',{'className':_0xfa9459(0x13a),'children':[_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x24a),'children':[_0x28c207('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x2fd2c3['t']('mcpConfig.configInstructions')}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x20a),'children':[_0x28c207('div',{'className':_0xfa9459(0x22c),'children':_0x2fd2c3['t'](_0xfa9459(0x216))}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x1f0),'children':[_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x207),'children':[_0x28c207(_0xfa9459(0x1bb),{'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'}),_0x2fd2c3['t'](_0xfa9459(0x166))]}),_0x4c6a3d('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x28c207('span',{'className':_0xfa9459(0x206),'children':'2'}),_0x2fd2c3['t']('mcpConfig.configStep2')]}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x207),'children':[_0x28c207('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x2fd2c3['t'](_0xfa9459(0x137))]})]})]})]}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x20a),'children':[_0x28c207(_0xfa9459(0x150),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),_0x28c207('div',{'className':_0xfa9459(0x241),'children':_0x28c207(_0xfa9459(0x1c9),{'className':_0xfa9459(0x278),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0xfa9459(0x25f)+(_0x29e8a2||_0xfa9459(0x25d)),'type':_0xfa9459(0x1e9),'headers':{'Authorization':'Bearer\x20'+(_0x4af113||_0xfa9459(0x1da))}}}},null,0x2)})})]}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x24a),'children':[_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x22c),'children':_0x2fd2c3['t'](_0xfa9459(0x185))}),_0x4c6a3d('div',{'className':_0xfa9459(0x20a),'children':[_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x28c207('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x4c6a3d(_0xfa9459(0x150),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x1fb),'children':_0xfa9459(0x17b)}),_0x28c207('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x2fd2c3['t'](_0xfa9459(0x20b))})]})]}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x183),'children':[_0x28c207(_0xfa9459(0x150),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x1b5),'children':[_0x28c207(_0xfa9459(0x150),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xfa9459(0x255)}),_0x28c207('div',{'className':_0xfa9459(0x172),'children':_0x2fd2c3['t'](_0xfa9459(0x131))})]})]})]})]})]})]}),_0x28c207(_0x45b7b7,{'onClick':_0x2192cf,'disabled':!_0x51ada3||_0x5d3034,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x5d3034?_0x4c6a3d(_0xfa9459(0x1bb),{'className':_0xfa9459(0x207),'children':[_0x28c207(_0xfa9459(0x1bb),{'children':'⟲'}),_0x2fd2c3['t'](_0xfa9459(0x17d))]}):_0x4c6a3d(_0xfa9459(0x1bb),{'className':_0xfa9459(0x207),'children':[_0x28c207(le,{}),_0x2fd2c3['t']('mcpConfig.save')]})}),_0x28c207(_0xfa9459(0x150),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x265),'children':[_0x28c207(_0xfa9459(0x1bb),{'className':_0xfa9459(0x193),'children':'💡'}),_0x4c6a3d(_0xfa9459(0x150),{'className':_0xfa9459(0x179),'children':[_0x28c207(_0xfa9459(0x150),{'className':_0xfa9459(0x18b),'children':_0xfa9459(0x21f)}),_0x4c6a3d(_0xfa9459(0x150),{'children':['•',_0x2fd2c3['t'](_0xfa9459(0x14b))]}),_0x4c6a3d(_0xfa9459(0x150),{'children':['•',_0x2fd2c3['t'](_0xfa9459(0x243))]})]})]})})]})})]});}const y=_0xc1882f(0x258),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0xc1882f(0x1c3)],tn=(_0x328e23,_0x351438,_0x1d7d22,_0x4d3c98)=>{const _0x561155=_0xc1882f;for(var _0x4bf5f4=_0x4d3c98>0x1?void 0x0:_0x4d3c98?rn(_0x351438,_0x1d7d22):_0x351438,_0x55925b=_0x328e23[_0x561155(0x275)]-0x1,_0x48f9da;_0x55925b>=0x0;_0x55925b--)(_0x48f9da=_0x328e23[_0x55925b])&&(_0x4bf5f4=_0x48f9da(_0x4bf5f4)||_0x4bf5f4);return _0x4bf5f4;},d=(_0x3b99b9,_0x18a9bd)=>(_0x384a9f,_0x1a0ead)=>_0x18a9bd(_0x384a9f,_0x1a0ead,_0x3b99b9);const U=_0xc1882f(0x143),L=_0xc1882f(0x1b4);let I=class extends _0x2595b1{constructor(_0x360f95,_0x4806b0,_0x4c4a13,_0x22ee49,_0x2a223f,_0x1a8a65,_0x26a76d,_0x4f2769,_0x191c67,_0x2f492a){const _0x48c98d=_0xc1882f;super(),x(this,_0x48c98d(0x16a),new _0x5e871f(!0x1)),x(this,_0x48c98d(0x266),new _0x5e871f({})),x(this,_0x48c98d(0x233),new _0x5e871f({})),x(this,_0x48c98d(0x264),new _0x5e871f('')),x(this,_0x48c98d(0x190),async _0x492bd2=>{const _0x523a51=_0x48c98d;var _0x1d5172,_0x5757fa;this[_0x523a51(0x16a)]['next'](!0x0);try{const _0x2877af=await this['_validateConfig'](_0x492bd2);if(!_0x2877af[_0x523a51(0x1d3)]){this[_0x523a51(0x165)][_0x523a51(0x19d)]({'type':_0x284621[_0x523a51(0x1dd)],'content':_0x2877af[_0x523a51(0x1ac)]||this[_0x523a51(0x229)]['t'](_0x523a51(0x22b))});return;}_0x492bd2[_0x523a51(0x1a3)]?await this[_0x523a51(0x268)][_0x523a51(0x145)](U,_0x492bd2[_0x523a51(0x1a3)][_0x523a51(0x12a)]()):await this[_0x523a51(0x268)][_0x523a51(0x1a7)](U),this[_0x523a51(0x264)]['next'](((_0x1d5172=_0x492bd2[_0x523a51(0x1a3)])==null?void 0x0:_0x1d5172[_0x523a51(0x12a)]())||''),this['_mcpConnectionController'][_0x523a51(0x16e)]({'Authorization':_0x523a51(0x1bf)+((_0x5757fa=_0x492bd2[_0x523a51(0x1a3)])==null?void 0x0:_0x5757fa[_0x523a51(0x12a)]())}),this[_0x523a51(0x165)][_0x523a51(0x19d)]({'type':_0x284621[_0x523a51(0x1d2)],'content':this['_localeService']['t'](_0x523a51(0x22f))}),setTimeout(()=>{const _0x1c4b5d=_0x523a51;this['_dialogService'][_0x1c4b5d(0x178)](L);},0x320);}catch(_0x5ab084){this[_0x523a51(0x1a9)][_0x523a51(0x133)](_0x523a51(0x231),_0x5ab084),this[_0x523a51(0x165)]['show']({'type':_0x284621[_0x523a51(0x1dd)],'content':this[_0x523a51(0x229)]['t'](_0x523a51(0x19b))});}finally{this[_0x523a51(0x16a)]['next'](!0x1);}}),(this['_injector']=_0x360f95,this['_uiPartsService']=_0x4806b0,this[_0x48c98d(0x210)]=_0x4c4a13,this[_0x48c98d(0x268)]=_0x22ee49,this[_0x48c98d(0x164)]=_0x2a223f,this[_0x48c98d(0x165)]=_0x1a8a65,this[_0x48c98d(0x156)]=_0x26a76d,this[_0x48c98d(0x229)]=_0x4f2769,this['_logService']=_0x191c67,this['_mcpConnectionController']=_0x2f492a,this[_0x48c98d(0x186)](),this[_0x48c98d(0x25c)](),this[_0x48c98d(0x1b9)]());}[_0xc1882f(0x21b)](){const _0x43e149=_0xc1882f,_0x5c6c10=this[_0x43e149(0x210)][_0x43e149(0x160)](y);_0x5c6c10!=null&&_0x5c6c10[_0x43e149(0x1ef)]&&this[_0x43e149(0x164)][_0x43e149(0x162)]({'id':L,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':_0x43e149(0x14c)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3cd214=_0x43e149;this[_0x3cd214(0x164)][_0x3cd214(0x178)](L);}});}[_0xc1882f(0x1f5)](){const _0x2279e5=_0xc1882f;return this[_0x2279e5(0x266)]['value'];}[_0xc1882f(0x1b9)](){const _0x8b657f=_0xc1882f;this[_0x8b657f(0x246)](this[_0x8b657f(0x156)][_0x8b657f(0x1ba)](_0x8b657f(0x14c),this['_createConfigPanelComponent']()));}[_0xc1882f(0x1f2)](){const _0x299bbf=_0xc1882f;return _0x176dad(()=>{const _0x196bf6=_0x2b73;var _0x1c97f0,_0x299ecb,_0x7d304b;return _0x28c207(nn,{'config':this[_0x196bf6(0x233)][_0x196bf6(0x21e)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x196bf6(0x21e)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x196bf6(0x190)],'loading':this[_0x196bf6(0x16a)]['value'],'connectionStatus$':(_0x1c97f0=this['_mcpConnectionController'])==null?void 0x0:_0x1c97f0[_0x196bf6(0x261)],'connectionError$':(_0x299ecb=this[_0x196bf6(0x1ca)])==null?void 0x0:_0x299ecb[_0x196bf6(0x1d7)],'currentSessionId$':(_0x7d304b=this['_mcpConnectionController'])==null?void 0x0:_0x7d304b[_0x196bf6(0x15c)]});},this[_0x299bbf(0x144)]);}[_0xc1882f(0x186)](){const _0x239eaf=_0xc1882f;this['disposeWithMe'](this[_0x239eaf(0x210)][_0x239eaf(0x187)](_0x10d630)[_0x239eaf(0x1c7)](_0x4c952=>{const _0x1237ca=_0x239eaf;this[_0x1237ca(0x266)][_0x1237ca(0x168)](_0x4c952||{});}));const _0x152e73=this[_0x239eaf(0x210)][_0x239eaf(0x160)](_0x10d630);this[_0x239eaf(0x266)][_0x239eaf(0x168)](_0x152e73||{}),this['disposeWithMe'](this['_configService'][_0x239eaf(0x187)](y)['subscribe'](_0x57d93d=>{const _0x4f5873=_0x239eaf;this[_0x4f5873(0x233)]['next'](_0x57d93d||{});}));const _0x5bb2c1=this[_0x239eaf(0x210)][_0x239eaf(0x160)](y);this[_0x239eaf(0x233)][_0x239eaf(0x168)](_0x5bb2c1||{});}async[_0xc1882f(0x25c)](){const _0x1162e9=_0xc1882f,_0x35b3a5=this[_0x1162e9(0x210)]['getConfig'](y);if(!(_0x35b3a5!=null&&_0x35b3a5['showDeveloperTools']))return;const _0x5f0e92=await this[_0x1162e9(0x268)]['getItem'](U);_0x5f0e92&&(this[_0x1162e9(0x1ca)][_0x1162e9(0x16e)]({'Authorization':'Bearer\x20'+_0x5f0e92}),this[_0x1162e9(0x264)]['next'](_0x5f0e92));}async['_validateConfig'](_0x34ef57){const _0x128bbd=_0xc1882f;if(!_0x34ef57[_0x128bbd(0x1a3)]||_0x34ef57['apiKey'][_0x128bbd(0x12a)]()[_0x128bbd(0x275)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x128bbd(0x229)]['t'](_0x128bbd(0x1d8))};if(_0x34ef57[_0x128bbd(0x1a3)][_0x128bbd(0x12a)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x128bbd(0x229)]['t'](_0x128bbd(0x225))};try{const _0x328b8e=await this['_injector']['get'](_0x14ed3b)['validateApiKey'](_0x34ef57[_0x128bbd(0x1a3)][_0x128bbd(0x12a)]());return _0x328b8e[_0x128bbd(0x1d3)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x328b8e[_0x128bbd(0x133)]||this['_localeService']['t'](_0x128bbd(0x138))};}catch(_0x2e51b9){return console['warn'](_0x128bbd(0x19f),_0x2e51b9),{'isValid':!0x0};}}};I=tn([d(0x0,_0xc0b699(_0x3b274d)),d(0x1,_0x3377e8),d(0x2,_0x27ee87),d(0x3,_0x1c57e0),d(0x4,_0x58dfdb),d(0x5,_0x3b7f20),d(0x6,_0xc0b699(_0x849cd3)),d(0x7,_0xc0b699(_0x1e89fe)),d(0x8,_0x30322e),d(0x9,_0xc0b699(_0x14ed3b))],I);const V={'id':_0xc1882f(0x1b3),'type':_0x4ccdae[_0xc1882f(0x161)],'handler':async(_0x50bb48,_0x4db04e)=>(_0x50bb48['get'](I)['showConfigPanel'](),!0x0)};function pe(_0x4707d5,_0x26e1c1){const _0xa0a408=_0xc1882f;switch(_0x4707d5){case _0x4b36b6['DISCONNECTED']:return _0xa0a408(0x267);case _0x4b36b6[_0xa0a408(0x1b0)]:return _0xa0a408(0x1b7);case _0x4b36b6[_0xa0a408(0x1a4)]:return _0xa0a408(0x1c6);case _0x4b36b6[_0xa0a408(0x1c8)]:switch(_0x26e1c1){case _0x1d2c28[_0xa0a408(0x24c)]:return _0xa0a408(0x23e);case _0x1d2c28[_0xa0a408(0x211)]:return _0xa0a408(0x1c4);case _0x1d2c28[_0xa0a408(0x254)]:return _0xa0a408(0x1f8);case _0x1d2c28[_0xa0a408(0x272)]:return _0xa0a408(0x17a);default:return'mcpStatus.failed';}case _0x4b36b6[_0xa0a408(0x15e)]:return _0xa0a408(0x24d);default:return _0xa0a408(0x134);}}function on(_0x358b2e,_0x231a67,_0x369783,_0x421968=!0x0){const _0x21079c=_0xc1882f,_0x31b0d3=pe(_0x358b2e,_0x231a67),_0x45ccf0=_0x369783['t'](_0x31b0d3);return _0x421968?_0x358b2e===_0x4b36b6[_0x21079c(0x12b)]&&_0x231a67===_0x1d2c28[_0x21079c(0x24c)]?_0x45ccf0+_0x21079c(0x1ec)+_0x369783['t']('mcpStatus.clickToConfigure'):_0x358b2e===_0x4b36b6[_0x21079c(0x1a4)]?''+_0x45ccf0:_0x358b2e===_0x4b36b6[_0x21079c(0x12b)]||_0x358b2e===_0x4b36b6['FAILED']?_0x45ccf0+_0x21079c(0x1ec)+_0x369783['t'](_0x21079c(0x247)):_0x45ccf0:_0x45ccf0;}function sn(_0x22fb1b){const _0x12cc34=_0xc1882f;switch(_0x22fb1b){case _0x4b36b6[_0x12cc34(0x1a4)]:return _0x12cc34(0x1a5);case _0x4b36b6['CONNECTING']:case _0x4b36b6[_0x12cc34(0x15e)]:return _0x12cc34(0x276);case _0x4b36b6[_0x12cc34(0x1c8)]:case _0x4b36b6[_0x12cc34(0x12b)]:return _0x12cc34(0x263);default:return'univer-text-gray-500';}}function cn(_0x16b680){const _0x5e568b=_0xc1882f,{status$:_0x5017d3,error$:_0x85225f,onConfigure:_0x2538bb,showClickable:_0x4f3c49=!0x0}=_0x16b680,_0x27bded=_0xdb40c8(_0x5017d3,_0x4b36b6[_0x5e568b(0x12b)]),_0xe7e660=_0xdb40c8(_0x85225f,_0x1d2c28['NONE']),_0x3e7153=_0x2ca0d6(_0x1e89fe),_0x20fa68=_0x27bded===_0x4b36b6[_0x5e568b(0x1a4)];_0x27bded===_0x4b36b6['CONNECTING']||_0x4b36b6[_0x5e568b(0x15e)];const _0x127f06=_0x3e7153['t'](pe(_0x27bded,_0xe7e660)),_0x48b086=on(_0x27bded,_0xe7e660,_0x3e7153,_0x4f3c49),_0x4e8b4f=sn(_0x27bded),_0x2ca821=_0x20fa68?_0x28c207(ge,{}):_0x28c207(de,{}),_0x16c3a0=_0x3300f8(()=>{_0x4f3c49&&_0x2538bb&&_0x2538bb();},[_0x4f3c49,_0x2538bb]);function _0x5e0636(){const _0x5ab5dd=_0x5e568b;return _0x4c6a3d(_0x5ab5dd(0x150),{'className':_0x3a12a5(_0x5ab5dd(0x12e),_0x4f3c49&&_0x2538bb&&_0x5ab5dd(0x1ce)),'role':_0x5ab5dd(0x22d),'onClick':_0x4f3c49&&_0x2538bb?_0x16c3a0:void 0x0,'children':[_0x28c207(_0x5ab5dd(0x150),{'className':_0x3a12a5(_0x5ab5dd(0x14e),_0x4e8b4f),'children':_0x2ca821}),_0x28c207(_0x5ab5dd(0x150),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x127f06})]});}return _0x28c207(_0x1cb187,{'title':_0x48b086,'placement':_0x5e568b(0x182),'children':_0x5e0636()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x409cbb,_0x42b852,_0x209a66,_0x3a2f27)=>{const _0xeade54=_0xc1882f;for(var _0xfbe352=_0x3a2f27>0x1?void 0x0:_0x3a2f27?an(_0x42b852,_0x209a66):_0x42b852,_0x9e4bf=_0x409cbb[_0xeade54(0x275)]-0x1,_0x593138;_0x9e4bf>=0x0;_0x9e4bf--)(_0x593138=_0x409cbb[_0x9e4bf])&&(_0xfbe352=_0x593138(_0xfbe352)||_0xfbe352);return _0xfbe352;},M=(_0x120bfa,_0x45ef6f)=>(_0x2b3334,_0x390043)=>_0x45ef6f(_0x2b3334,_0x390043,_0x120bfa);let O=class extends _0x2595b1{constructor(_0x41fd68,_0x4af2aa,_0x371d90,_0x2283ef){const _0x425931=_0xc1882f;super(),this[_0x425931(0x144)]=_0x41fd68,this[_0x425931(0x176)]=_0x4af2aa,this[_0x425931(0x142)]=_0x371d90,this[_0x425931(0x210)]=_0x2283ef,this['_initAutoConnect'](),this[_0x425931(0x15f)]();}['_initAutoConnect'](){const _0x48f041=_0xc1882f,_0x46b88e=this[_0x48f041(0x210)][_0x48f041(0x160)](y);_0x46b88e!=null&&_0x46b88e[_0x48f041(0x1ef)]&&(this['_connectionController'][_0x48f041(0x248)]=!0x1);}[_0xc1882f(0x15f)](){const _0x132e58=_0xc1882f,_0x9bb0ca=this['_configService']['getConfig'](y);(_0x9bb0ca==null?void 0x0:_0x9bb0ca[_0x132e58(0x1c5)])!==!0x1&&this[_0x132e58(0x246)](this['_uiPartsService'][_0x132e58(0x1bc)](_0x3ffd53['HEADER_MENU'],()=>{const _0xcd344f=_0x132e58;var _0x4eaa6a;return _0x176dad(un({'status$':this['_connectionController'][_0xcd344f(0x261)],'error$':this[_0xcd344f(0x176)]['connectionError$'],'onConfigure':()=>this[_0xcd344f(0x21d)](),'showClickable':(_0x4eaa6a=_0x9bb0ca==null?void 0x0:_0x9bb0ca[_0xcd344f(0x1ef)])!=null?_0x4eaa6a:!0x1}),this[_0xcd344f(0x144)]);}));}[_0xc1882f(0x21d)](){const _0x3440e8=_0xc1882f;this[_0x3440e8(0x144)][_0x3440e8(0x202)](I)[_0x3440e8(0x21b)]();}};O=ln([M(0x0,_0xc0b699(_0x3b274d)),M(0x1,_0xc0b699(_0x14ed3b)),M(0x2,_0x3377e8),M(0x3,_0x27ee87)],O);function un(_0x3aac29){const {status$:_0x5d5e2c,error$:_0xe1fa67,onConfigure:_0x3ae0df,showClickable:_0x38b1e1}=_0x3aac29;return function(){return _0x28c207(cn,{'status$':_0x5d5e2c,'error$':_0xe1fa67,'onConfigure':_0x3ae0df,'showClickable':_0x38b1e1});};}function vn(_0x11e8f4){const _0x1bb919=_0xc1882f;return{'id':V['id'],'type':_0x393433[_0x1bb919(0x17f)],'icon':_0x1bb919(0x27e),'title':_0x1bb919(0x1e0),'tooltip':_0x1bb919(0x1e0)};}const dn={[_0xf870d5['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x5ae9fb,_0x32de9e,_0x556d81,_0x32c8cb)=>{for(var _0x24f236=_0x32c8cb>0x1?void 0x0:_0x32c8cb?gn(_0x32de9e,_0x556d81):_0x32de9e,_0x15a076=_0x5ae9fb['length']-0x1,_0xb563eb;_0x15a076>=0x0;_0x15a076--)(_0xb563eb=_0x5ae9fb[_0x15a076])&&(_0x24f236=_0xb563eb(_0x24f236)||_0x24f236);return _0x24f236;},re=(_0x51ef73,_0x1240b9)=>(_0x18adea,_0x2ddf8e)=>_0x1240b9(_0x18adea,_0x2ddf8e,_0x51ef73);let D=class extends _0x2595b1{constructor(_0x6ec3c5,_0x2366d0){const _0x4c9841=_0xc1882f;super(),this[_0x4c9841(0x256)]=_0x6ec3c5,this['_menuManagerService']=_0x2366d0,this['_initializeCommands'](),this[_0x4c9841(0x1fa)]();}[_0xc1882f(0x260)](){const _0x2cfb05=_0xc1882f;[V][_0x2cfb05(0x154)](_0x305083=>{const _0x4295e5=_0x2cfb05;this[_0x4295e5(0x246)](this[_0x4295e5(0x256)][_0x4295e5(0x1de)](_0x305083));});}[_0xc1882f(0x1fa)](){const _0x3cbfd7=_0xc1882f;this[_0x3cbfd7(0x16b)][_0x3cbfd7(0x1be)](dn);}};D=pn([re(0x0,_0x5911d4),re(0x1,_0x3db316)],D);const Mn={'mcpStatus':{'disconnected':_0xc1882f(0x14a),'connecting':'MCP\x20Connecting...','connected':_0xc1882f(0x177),'failed':_0xc1882f(0x1f7),'retrying':_0xc1882f(0x24f),'unknown':_0xc1882f(0x1ed),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0xc1882f(0x224),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xc1882f(0x273),'clickToConnect':_0xc1882f(0x1eb),'clickToConfigure':_0xc1882f(0x1b6)},'mcpConfig':{'title':_0xc1882f(0x1d9),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0xc1882f(0x226),'enableAuth':_0xc1882f(0x238),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xc1882f(0x199),'mcpClientConfig':_0xc1882f(0x199),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xc1882f(0x1d4),'configStep1':_0xc1882f(0x12c),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0xc1882f(0x237),'sessionId':_0xc1882f(0x1a1),'sessionIdDescription':_0xc1882f(0x19a),'authorizationDescription':_0xc1882f(0x1a2),'configParameters':_0xc1882f(0x20d),'maxRetries':_0xc1882f(0x26c),'save':_0xc1882f(0x25b),'saving':_0xc1882f(0x18e),'note1':_0xc1882f(0x1e5),'note2':_0xc1882f(0x1c0),'configSaved':'Configuration\x20saved\x20successfully','configError':_0xc1882f(0x196),'apiApplyInfo':{'title':_0xc1882f(0x1cc),'description':_0xc1882f(0x16c),'univerAiLabel':_0xc1882f(0x13e),'getStarted':_0xc1882f(0x1a8)},'validation':{'apiKeyRequired':_0xc1882f(0x279),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0xc1882f(0x1c2),'invalidApiKey':_0xc1882f(0x139)},'connectionStatus':{'disconnected':_0xc1882f(0x18c),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':_0xc1882f(0x1f6)},'connectionError':{'unauthorized':_0xc1882f(0x151),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xc1882f(0x18d)}}},An={'mcpStatus':{'disconnected':_0xc1882f(0x1bd),'connecting':_0xc1882f(0x17c),'connected':_0xc1882f(0x198),'failed':_0xc1882f(0x234),'retrying':'MCP\x20重连中...','unknown':_0xc1882f(0x170),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0xc1882f(0x204),'maxRetriesExceeded':_0xc1882f(0x1f3),'clickToConnect':_0xc1882f(0x13b),'clickToConfigure':_0xc1882f(0x167)},'mcpConfig':{'title':_0xc1882f(0x240),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0xc1882f(0x1a0),'apiKeyHint':_0xc1882f(0x152),'enableAuth':'启用身份验证','enableAuthHint':_0xc1882f(0x158),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0xc1882f(0x26d),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0xc1882f(0x274),'configStep1':_0xc1882f(0x148),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0xc1882f(0x25a),'sessionId':'会话ID','sessionIdDescription':_0xc1882f(0x1fe),'authorizationDescription':_0xc1882f(0x136),'configParameters':'配置参数:','maxRetries':_0xc1882f(0x1b8),'save':_0xc1882f(0x191),'saving':_0xc1882f(0x18a),'note1':_0xc1882f(0x215),'note2':_0xc1882f(0x12d),'configSaved':'配置保存成功','configError':_0xc1882f(0x201),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0xc1882f(0x217),'getStarted':_0xc1882f(0x1ea)},'validation':{'apiKeyRequired':_0xc1882f(0x249),'apiKeyTooShort':_0xc1882f(0x1df),'invalidConfig':_0xc1882f(0x189),'invalidApiKey':_0xc1882f(0x180)},'connectionStatus':{'disconnected':_0xc1882f(0x22e),'connecting':_0xc1882f(0x208),'connected':_0xc1882f(0x1b2),'failed':_0xc1882f(0x1f9),'retrying':_0xc1882f(0x1e6)},'connectionError':{'unauthorized':_0xc1882f(0x1d6),'sessionOccupied':_0xc1882f(0x175),'networkError':_0xc1882f(0x23d),'maxRetriesExceeded':_0xc1882f(0x223)}}};var fn=Object['defineProperty'],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x3e9f0a,_0x3a8fdb,_0x1c980d)=>_0x3a8fdb in _0x3e9f0a?fn(_0x3e9f0a,_0x3a8fdb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c980d}):_0x3e9f0a[_0x3a8fdb]=_0x1c980d,mn=(_0x35fec3,_0x265eeb,_0x39efa4,_0x3bdd26)=>{const _0x12eeb8=_0xc1882f;for(var _0x1b48b5=_0x3bdd26>0x1?void 0x0:_0x3bdd26?hn(_0x265eeb,_0x39efa4):_0x265eeb,_0x47624f=_0x35fec3[_0x12eeb8(0x275)]-0x1,_0x7e8575;_0x47624f>=0x0;_0x47624f--)(_0x7e8575=_0x35fec3[_0x47624f])&&(_0x1b48b5=_0x7e8575(_0x1b48b5)||_0x1b48b5);return _0x1b48b5;},P=(_0x435430,_0x2afb2a)=>(_0x4a59b8,_0x2ff6ce)=>_0x2afb2a(_0x4a59b8,_0x2ff6ce,_0x435430),_n=(_0xbd3c01,_0x350559,_0x536bbe)=>Cn(_0xbd3c01,_0x350559+'',_0x536bbe);function _0x2b73(_0x4cd2a5,_0x47a36b){_0x4cd2a5=_0x4cd2a5-0x129;const _0x4918f8=_0x4918();let _0x2b7328=_0x4918f8[_0x4cd2a5];return _0x2b7328;}let j=class extends _0x59c2b1{constructor(_0x15d8b5=ie,_0xaaafc3,_0x2735de,_0x469a78,_0x593208,_0x348abc){const _0x270948=_0xc1882f;super(),this[_0x270948(0x173)]=_0x15d8b5,this['_injector']=_0xaaafc3,this[_0x270948(0x210)]=_0x2735de,this['_uiPartsService']=_0x469a78,this['_localStorageService']=_0x593208,this['_localeService']=_0x348abc;const {..._0x341112}=_0x4d7e38({},ie,this[_0x270948(0x173)]);this[_0x270948(0x210)][_0x270948(0x219)](y,_0x341112);}async[_0xc1882f(0x222)](){const _0x280286=_0xc1882f,_0x3d7bfc=[[O],[I],[D]];this[_0x280286(0x144)][_0x280286(0x23c)](_0x50d983)||_0x3d7bfc[_0x280286(0x1d5)]([_0x50d983,{'useClass':_0x3a96fd}]),_0x3d7bfc['forEach'](_0x49577e=>this[_0x280286(0x144)][_0x280286(0x277)](_0x49577e)),this[_0x280286(0x144)]['get'](O),this[_0x280286(0x144)][_0x280286(0x202)](I),this[_0x280286(0x144)][_0x280286(0x202)](D);}};_n(j,'pluginName',_0xc1882f(0x1fc)),j=mn([_0x28f4fc(_0x4a0391),P(0x1,_0xc0b699(_0x3b274d)),P(0x2,_0x27ee87),P(0x3,_0x3377e8),P(0x4,_0x1c57e0),P(0x5,_0xc0b699(_0x1e89fe))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
1
+ const _0x38e032=_0x5162;(function(_0x607294,_0x2650df){const _0x580169=_0x5162,_0x222e49=_0x607294();while(!![]){try{const _0x3c5dea=parseInt(_0x580169(0x170))/0x1+parseInt(_0x580169(0x1b9))/0x2+parseInt(_0x580169(0x137))/0x3*(-parseInt(_0x580169(0x169))/0x4)+parseInt(_0x580169(0x22d))/0x5*(parseInt(_0x580169(0x22b))/0x6)+-parseInt(_0x580169(0x188))/0x7*(-parseInt(_0x580169(0x140))/0x8)+parseInt(_0x580169(0x234))/0x9*(-parseInt(_0x580169(0x237))/0xa)+parseInt(_0x580169(0x193))/0xb*(-parseInt(_0x580169(0x1c6))/0xc);if(_0x3c5dea===_0x2650df)break;else _0x222e49['push'](_0x222e49['shift']());}catch(_0x18e184){_0x222e49['push'](_0x222e49['shift']());}}}(_0x592d,0x2cfc1));var Pe=Object[_0x38e032(0x129)],Ee=(_0x231409,_0x3313d5,_0x5aaf1c)=>_0x3313d5 in _0x231409?Pe(_0x231409,_0x3313d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5aaf1c}):_0x231409[_0x3313d5]=_0x5aaf1c,x=(_0xf7184b,_0x1477a8,_0x2f5d3f)=>Ee(_0xf7184b,typeof _0x1477a8!=_0x38e032(0x147)?_0x1477a8+'':_0x1477a8,_0x2f5d3f);import{LocaleService as _0x2cd658,Inject as _0x2dc60e,Injector as _0x57c3fd,Disposable as _0x5b9a6f,IConfigService as _0x1d0ad6,ILocalStorageService as _0x3c915b,ILogService as _0x1d31a2,CommandType as _0x5ae180,ICommandService as _0x2c4476,DependentOn as _0x3841bd,Plugin as _0x147660,merge as _0x505fa9}from'@univerjs/core';import{jsxs as _0x310502,jsx as _0xd8d81b}from'react/jsx-runtime';import{MCPConnectionStatus as _0x2ac4f3,MCPConnectionError as _0x4b8d84,MCPConnectionController as _0xafd2ed,MCP_PLUGIN_CONFIG_KEY as _0x2471aa,UniverMCPPlugin as _0xa5a329}from'@univerjs-pro/mcp';import{clsx as _0xa1e1e9,Input as _0x4583e1,Button as _0x53a0df,MessageType as _0x5edd10,Tooltip as _0x5ec2c7}from'@univerjs/design';function _0x5162(_0x35a0d6,_0x5e50a2){_0x35a0d6=_0x35a0d6-0x121;const _0x592dc1=_0x592d();let _0x516206=_0x592dc1[_0x35a0d6];return _0x516206;}import{useDependency as _0x58672d,useObservable as _0x2de466,ComponentManager as _0x111deb,connectInjector as _0x597448,IUIPartsService as _0x21b0fa,IDialogService as _0x12f11f,IMessageService as _0x2069f9,BuiltInUIPart as _0xea10c4,MenuItemType as _0x23d8b1,RibbonStartGroup as _0x433100,IMenuManagerService as _0x36e5d4}from'@univerjs/ui';import{BehaviorSubject as _0xbfc369}from'rxjs';import{useRef as _0x5e2456,createElement as _0x210398,forwardRef as _0x30bdc3,useState as _0x1698f1,useCallback as _0x1ff9c2}from'react';function _0x592d(){const _0x5e0b13=['univer-space-y-5','mcpConfig.connectionStatus.failed','replace','mcpConfig.connectionStatus.connecting','_initAutoConnect','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','您的\x20API\x20密钥将在此浏览器中本地存储','Save\x20Configuration','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','mcpStatus.networkError','mcpConfig.save','14AuCxRy','value','mcpConfig.validation.apiKeyTooShort','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','colorChannel1','xlink:href','mcpStatus.unknown','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','配置步骤:','CONNECTED','idSuffix','165594YyGIHE','保存配置','mcpConfig.configStepTitle','_loading$','pluginName','univer-text-blue-600','会话ID','RETRYING','mcp.apiKey','getCurrentConfig','MCPConfigPanel','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_logService','univer-bg-gray-500','mcpStatus.unauthorized','mcpStatus.connecting','mcp-ui.command.openConfigPanel','add','mcpConfig.configStep1','Copy\x20the\x20JSON\x20configuration\x20below','_apiKey$','_mcpConnectionController','MCP\x20状态未知','Failed\x20to\x20save\x20configuration','HEADER_MENU','\x20-\x20','您的\x20API\x20密钥安全存储在本地存储中','entries','register','保存中...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','mcpStatus.failed','网络连接错误,请检查您的网络连接','MCP\x20Connection\x20Failed','mcpStatus.retrying','univer-shrink-0\x20univer-text-red-500','univer-flex\x20univer-items-start\x20univer-gap-3','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','695372GYlgzo','translate(.97)','span','defs','MCP:\x20未授权','mcpConfig.configStep2','close-icon','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','isValid','mcpConfig.connectionError.unauthorized','_injector','pre','MCP\x20Unknown\x20Status','408dArEhV','warn','label','NETWORK_ERROR','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','show','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','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-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer-flex\x20univer-items-center','连接失败','enableAutoConnect','univer-flex\x20univer-items-center\x20univer-gap-2','round','MCP\x20连接失败','Error','connectionStatus$','MCP:\x20会话\x20ID\x20已被占用','setItem','mcp-ui.config','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','_validateConfig','mcpConfig.connectionStatus.connected','url(#$1','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.apiApplyInfo.univerAiLabel','univer-text-gray-500','_localStorageService','mcpConfig.sessionIdDescription','push','权限验证失败,请检查您的\x20API\x20密钥','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','_mcpCoreConfig$','点击连接\x20MCP','_initializeCommands','errorMessage','url(#off-line-icon_clip0_910_343)','MCP\x20Retrying...','Session\x20ID','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.note1','Saving...','https://console.univer.plus','path','Connecting...','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','最大重试次数','univer-mr-2\x20univer-flex\x20univer-text-xl','_configService','getOwnPropertyDescriptor','未连接','mcp-config-dialog','showConfigPanel','univer-min-w-0\x20univer-flex-1','MCP_UI_PLUGIN','error','none','MCP:\x20Network\x20Error','disposeWithMe','https://mcp.univer.ai/mcp/?univer_session_id=','<SESSION_ID>','\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','配置保存成功','mcpConfig.apiApplyInfo.title','div','mcpConfig.title','什么是\x20API\x20密钥?','CONNECTING','Max\x20Retries','mcpConfig.connectionInfo','Disconnected','univer-bg-red-500','onStarting','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','off','连接中...','mcpStatus.maxRetriesExceeded','univer-space-y-3','DISCONNECTED','MCP:\x20Session\x20ID\x20Occupied','current','CloseIcon','svg','getConfig','mcpConfig.apiApplyInfo.getStarted','has','MCP:\x20超出最大重试次数','univer-text-gray-400','assign','启用身份验证以获得安全连接','会话\x20ID\x20已被占用,请稍后再试','_config$','0\x200\x2016\x2016','tag','children','displayName','NONE','MCP\x20Configuration','API\x20Key','MCP\x20连接中...','1434silknw','MCP\x20Disconnected','4245vDzNDG','map','_localeService','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20connect\x20MCP','MCP\x20已断开','带有\x20Bearer\x20前缀的\x20API\x20密钥。','504ZAihTr','_loadStoredApiKey','配置保存失败','62030JgwVEM','length','配置参数:','Connected','_createConfigPanelComponent','noopener\x20noreferrer','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-space-y-4','forEach','_initializeMenus','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20重连中...','配置更改将立即生效','CheckMarkIcon','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Configuration\x20saved\x20successfully','showDeveloperTools','_blank','univer-text-green-500','univer-bg-blue-500','clipPath','toString','_commandService','mcpConfig.connectionError.maxRetriesExceeded','OTHERS','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','Configuration\x20Steps:','button','registerComponent','M0\x200H16V16H0z','mcpStatus.connected','Invalid\x20configuration','http://www.w3.org/2000/svg','将配置添加到您的\x20MCP\x20客户端设置文件中','connectionError$','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','UniverIcon','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP:\x20Max\x20Retries\x20Exceeded','_connectionController','mcpStatus.sessionOccupied','includes','currentColor','univer.plus','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','API\x20密钥不能为空','MenuIcon','_uiPartsService','univer-text-white','substring','Configuration\x20Parameters:','mcpConfig.configError','trim','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','use','mergeMenu','sessionId$','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','超出最大重试次数,请稍后再试','text','_messageService','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-space-y-2','open','Bearer\x20','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.connectionError.sessionOccupied','random','univer.ai','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','请输入您的\x20API\x20密钥','defineProperty','apiKey','__setCustomHeaders','MCP\x20配置','stringify','启用身份验证','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','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','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.validation.invalidConfig','Retrying...','mcpConfig.description','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','75237RcZVjt','MCP:\x20网络错误','Univer\x20AI\x20控制台','mcpConfig.authorizationDescription','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','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','on-line-icon','_registerComponent','1370032gyAEuP','subscribeConfigValue$','mcpConfig.connectionStatus.retrying','attrs','OnLineIcon','_handleConfigSave','univer-font-medium','symbol','univer-text-red-500','mcpServerUrl','MAX_RETRIES_EXCEEDED','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MCP\x20Connecting...','mcpConfig.apiApplyInfo.description','UNAUTHORIZED','_componentManager','string','getItem','on-line-icon_clip0_910_349','defIds','off-line-icon_clip0_910_343','mcpConfig.connectionError.networkError','close','get','check-mark-icon','FAILED','fill','univer-text-xs\x20univer-text-gray-500','subscribe','_dialogService','univer-flex\x20univer-gap-3','0\x200\x2017\x2016','Authorization:','API\x20密钥无效,请检查密钥是否正确','mcpConfig.connectionStatus.disconnected','What\x20is\x20API\x20Key?','evenodd','API\x20key\x20with\x20Bearer\x20prefix.','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','MCP\x20客户端配置','Connection\x20Failed','20mohMqt','next','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCP\x20Client\x20Configuration','mcpStatus.clickToConnect','_initStatusComponent','_menuManagerService','275751cTFMHJ','univer-size-4','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','univer-shrink-0\x20univer-text-blue-500','_handleConfigure','1em','复制以下\x20JSON\x20配置','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','API\x20key\x20is\x20required','重连中...','mcpConfig.configSaved'];_0x592d=function(){return _0x5e0b13;};return _0x592d();}import{ISocketService as _0x2bd910,WebSocketService as _0x4ad1da}from'@univerjs/network';function b({ref:_0x568ac4,..._0x22c4c3}){const _0x44c388=_0x38e032,{icon:_0x4335d9,id:_0x484308,className:_0x7ca7be,extend:_0x333502,..._0x3677f6}=_0x22c4c3,_0x8b4e24=('univerjs-icon\x20univerjs-icon-'+_0x484308+'\x20'+(_0x7ca7be||''))['trim'](),_0x5696d6=_0x5e2456('_'+We());return ae(_0x4335d9,''+_0x484308,{'defIds':_0x4335d9[_0x44c388(0x153)],'idSuffix':_0x5696d6[_0x44c388(0x217)]},{'ref':_0x568ac4,'className':_0x8b4e24,..._0x3677f6},_0x333502);}function ae(_0x5f0134,_0x5e4871,_0x5e8d60,_0x5e76f3,_0x4c4e7b){const _0x150ba9=_0x38e032;return _0x210398(_0x5f0134[_0x150ba9(0x224)],{'key':_0x5e4871,...Ye(_0x5f0134,_0x5e8d60,_0x4c4e7b),..._0x5e76f3},(Ze(_0x5f0134,_0x5e8d60)['children']||[])[_0x150ba9(0x22e)]((_0x301466,_0x29d421)=>ae(_0x301466,_0x5e4871+'-'+_0x5f0134['tag']+'-'+_0x29d421,_0x5e8d60,void 0x0,_0x4c4e7b)));}function Ye(_0x3a9ef1,_0x187933,_0x4025ed){const _0x76e3bf=_0x38e032,_0x523111={..._0x3a9ef1[_0x76e3bf(0x143)]};_0x4025ed!=null&&_0x4025ed[_0x76e3bf(0x18c)]&&_0x523111['fill']===_0x76e3bf(0x18c)&&(_0x523111[_0x76e3bf(0x15a)]=_0x4025ed[_0x76e3bf(0x18c)]),_0x3a9ef1['tag']==='mask'&&_0x523111['id']&&(_0x523111['id']=_0x523111['id']+_0x187933[_0x76e3bf(0x192)]),Object[_0x76e3bf(0x1ae)](_0x523111)[_0x76e3bf(0x23f)](([_0x4cd2a9,_0x1d2c46])=>{const _0x3d8977=_0x76e3bf;_0x4cd2a9==='mask'&&typeof _0x1d2c46==_0x3d8977(0x150)&&(_0x523111[_0x4cd2a9]=_0x1d2c46['replace'](/url\(#(.*)\)/,'url(#$1'+_0x187933['idSuffix']+')'));});const {defIds:_0x34d5a2}=_0x187933;return!_0x34d5a2||_0x34d5a2['length']===0x0||(_0x3a9ef1['tag']===_0x76e3bf(0x26d)&&_0x523111[_0x76e3bf(0x18d)]&&(_0x523111[_0x76e3bf(0x18d)]=_0x523111['xlink:href']+_0x187933['idSuffix']),Object[_0x76e3bf(0x1ae)](_0x523111)[_0x76e3bf(0x23f)](([_0x3f3a80,_0x91fa66])=>{const _0x27bb51=_0x76e3bf;typeof _0x91fa66=='string'&&(_0x523111[_0x3f3a80]=_0x91fa66[_0x27bb51(0x17e)](/url\(#(.*)\)/,_0x27bb51(0x1de)+_0x187933[_0x27bb51(0x192)]+')'));})),_0x523111;}function Ze(_0xd6168a,_0x1b9ebd){const _0x5dbe20=_0x38e032;var _0x2ec40f;const {defIds:_0x36cb08}=_0x1b9ebd;return!_0x36cb08||_0x36cb08[_0x5dbe20(0x238)]===0x0?_0xd6168a:_0xd6168a[_0x5dbe20(0x224)]==='defs'&&((_0x2ec40f=_0xd6168a[_0x5dbe20(0x225)])!=null&&_0x2ec40f['length'])?{..._0xd6168a,'children':_0xd6168a[_0x5dbe20(0x225)]['map'](_0xd40404=>typeof _0xd40404[_0x5dbe20(0x143)]['id']==_0x5dbe20(0x150)&&_0x36cb08&&_0x36cb08[_0x5dbe20(0x260)](_0xd40404['attrs']['id'])?{..._0xd40404,'attrs':{..._0xd40404[_0x5dbe20(0x143)],'id':_0xd40404['attrs']['id']+_0x1b9ebd[_0x5dbe20(0x192)]}}:_0xd40404)}:_0xd6168a;}function We(){const _0x249758=_0x38e032;return Math[_0x249758(0x125)]()[_0x249758(0x24c)](0x24)[_0x249758(0x268)](0x2,0x8);}b[_0x38e032(0x226)]=_0x38e032(0x25b);const qe={'tag':'svg','attrs':{'xmlns':_0x38e032(0x257),'fill':_0x38e032(0x1ff),'viewBox':_0x38e032(0x223),'width':'1em','height':_0x38e032(0x176)},'children':[{'tag':_0x38e032(0x1f2),'attrs':{'fill':_0x38e032(0x261),'d':_0x38e032(0x1c0),'fillRule':'evenodd','clipRule':_0x38e032(0x164)}}]},le=_0x30bdc3(function(_0x5a8d56,_0x2da3f2){const _0x30540a=_0x38e032;return _0x210398(b,Object[_0x30540a(0x21f)]({},_0x5a8d56,{'id':_0x30540a(0x158),'ref':_0x2da3f2,'icon':qe}));});le['displayName']=_0x38e032(0x244);const Xe={'tag':_0x38e032(0x219),'attrs':{'xmlns':_0x38e032(0x257),'fill':_0x38e032(0x1ff),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x38e032(0x176)},'children':[{'tag':'path','attrs':{'fill':_0x38e032(0x261),'d':_0x38e032(0x13b)}}]},ue=_0x30bdc3(function(_0x3ca71e,_0x3e37ac){const _0x29e268=_0x38e032;return _0x210398(b,Object[_0x29e268(0x21f)]({},_0x3ca71e,{'id':_0x29e268(0x1bf),'ref':_0x3e37ac,'icon':Xe}));});ue['displayName']=_0x38e032(0x218);const Je={'tag':_0x38e032(0x219),'attrs':{'xmlns':_0x38e032(0x257),'fill':_0x38e032(0x1ff),'viewBox':_0x38e032(0x223),'width':_0x38e032(0x176),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x38e032(0x261),'d':_0x38e032(0x166)}},{'tag':_0x38e032(0x1f2),'attrs':{'fill':_0x38e032(0x261),'d':_0x38e032(0x127)}},{'tag':_0x38e032(0x1f2),'attrs':{'fill':_0x38e032(0x261),'d':_0x38e032(0x130),'fillRule':'evenodd','clipRule':_0x38e032(0x164)}}]},ve=_0x30bdc3(function(_0x57e432,_0x429917){const _0x10677b=_0x38e032;return _0x210398(b,Object[_0x10677b(0x21f)]({},_0x57e432,{'id':'help-icon','ref':_0x429917,'icon':Je}));});ve[_0x38e032(0x226)]='HelpIcon';const Qe={'tag':_0x38e032(0x219),'attrs':{'xmlns':_0x38e032(0x257),'fill':_0x38e032(0x1ff),'viewBox':_0x38e032(0x223),'width':_0x38e032(0x176),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x38e032(0x1eb)},'children':[{'tag':'path','attrs':{'stroke':_0x38e032(0x261),'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':_0x38e032(0x1d4),'strokeLinejoin':_0x38e032(0x1d4),'strokeWidth':1.2}}]},{'tag':_0x38e032(0x1bc),'attrs':{},'children':[{'tag':_0x38e032(0x24b),'attrs':{'id':_0x38e032(0x154)},'children':[{'tag':_0x38e032(0x1f2),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x38e032(0x154)]},de=_0x30bdc3(function(_0xc7bf29,_0x2c591b){const _0x1521ed=_0x38e032;return _0x210398(b,Object[_0x1521ed(0x21f)]({},_0xc7bf29,{'id':'off-line-icon','ref':_0x2c591b,'icon':Qe}));});de[_0x38e032(0x226)]='OffLineIcon';const en={'tag':_0x38e032(0x219),'attrs':{'xmlns':_0x38e032(0x257),'fill':'none','viewBox':_0x38e032(0x15f),'width':_0x38e032(0x176),'height':_0x38e032(0x176)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x38e032(0x1f2),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x38e032(0x1d4),'strokeLinejoin':_0x38e032(0x1d4),'strokeWidth':1.2}}]},{'tag':_0x38e032(0x1bc),'attrs':{},'children':[{'tag':_0x38e032(0x24b),'attrs':{'id':_0x38e032(0x152)},'children':[{'tag':_0x38e032(0x1f2),'attrs':{'fill':'white','d':_0x38e032(0x254),'transform':_0x38e032(0x1ba)}}]}]}],'defIds':[_0x38e032(0x152)]},ge=_0x30bdc3(function(_0x579e55,_0x4cecb0){const _0xb5b334=_0x38e032;return _0x210398(b,Object[_0xb5b334(0x21f)]({},_0x579e55,{'id':_0xb5b334(0x13e),'ref':_0x4cecb0,'icon':en}));});ge[_0x38e032(0x226)]=_0x38e032(0x144);function nn(_0x1b348f){const _0x3c039e=_0x38e032;var _0x5735a0,_0x16104c;const {mcpCoreConfig:_0x54e357,onSave:_0xcaecae,loading:_0xfcbd30=!0x1,config:_0x950fa9,connectionStatus$:_0x4d20ee,connectionError$:_0x113bc9,currentApiKey$:_0x5961d7,currentSessionId$:_0x12f279}=_0x1b348f,_0xef4894=_0x58672d(_0x2cd658),_0x1845f3=_0x2de466(_0x4d20ee,_0x2ac4f3[_0x3c039e(0x215)]),_0x12d856=_0x2de466(_0x113bc9,_0x4b8d84[_0x3c039e(0x227)]),_0x1dee0d=_0x2de466(_0x12f279,''),_0x4f297b=_0x2de466(_0x5961d7,''),[_0x2f3b51,_0x55a3db]=_0x1698f1(_0x4f297b||''),_0x7f206a=!0x0,_0x49751f=_0x950fa9['showDeveloperTools']&&_0x54e357['mcpServerUrl']&&(_0x54e357[_0x3c039e(0x149)][_0x3c039e(0x260)]('univer.plus')||_0x54e357[_0x3c039e(0x149)]['includes'](_0x3c039e(0x126))),_0x154735=(_0x5735a0=_0x54e357[_0x3c039e(0x149)])==null?void 0x0:_0x5735a0[_0x3c039e(0x260)](_0x3c039e(0x262)),_0x4454d8=(_0x16104c=_0x54e357['mcpServerUrl'])==null?void 0x0:_0x16104c[_0x3c039e(0x260)](_0x3c039e(0x126)),_0x113a40=_0x154735?_0x3c039e(0x1f1):'https://console.univer.ai',_0x5c0dd0=_0x950fa9[_0x3c039e(0x247)]&&(_0x154735||_0x4454d8),[_0x1066fe,_0x2befd8]=_0x1698f1(!_0x2f3b51['trim']()),_0xceba64=(_0x43eb3b,_0x144f0d)=>{const _0x53e0a3=_0x3c039e;if(_0x144f0d===_0x4b8d84['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x43eb3b){case _0x2ac4f3[_0x53e0a3(0x191)]:return _0x53e0a3(0x18f);case _0x2ac4f3[_0x53e0a3(0x20a)]:case _0x2ac4f3['RETRYING']:return _0x53e0a3(0x23d);case _0x2ac4f3[_0x53e0a3(0x159)]:return _0x53e0a3(0x270);default:return _0x53e0a3(0x210);}},_0x1a3135=(_0x121fb3,_0x49e197)=>{const _0x3dd8b9=_0x3c039e;if(_0x49e197===_0x4b8d84[_0x3dd8b9(0x14e)])return'univer-bg-red-500';switch(_0x121fb3){case _0x2ac4f3[_0x3dd8b9(0x191)]:return'univer-bg-green-500';case _0x2ac4f3[_0x3dd8b9(0x20a)]:case _0x2ac4f3['RETRYING']:return _0x3dd8b9(0x24a);case _0x2ac4f3[_0x3dd8b9(0x159)]:return _0x3dd8b9(0x20e);default:return _0x3dd8b9(0x1a0);}},_0x1825e4=_0x4de8b3=>{const _0x50fa1e=_0x3c039e;switch(_0x4de8b3){case _0x2ac4f3[_0x50fa1e(0x191)]:return _0xef4894['t'](_0x50fa1e(0x1dd));case _0x2ac4f3[_0x50fa1e(0x20a)]:return _0xef4894['t'](_0x50fa1e(0x17f));case _0x2ac4f3[_0x50fa1e(0x159)]:return _0xef4894['t'](_0x50fa1e(0x17d));case _0x2ac4f3[_0x50fa1e(0x19a)]:return _0xef4894['t'](_0x50fa1e(0x142));default:return _0xef4894['t'](_0x50fa1e(0x162));}},_0x57cdcd=_0x54ea18=>{const _0x2468dd=_0x3c039e;switch(_0x54ea18){case _0x4b8d84[_0x2468dd(0x14e)]:return _0xef4894['t'](_0x2468dd(0x1c2));case _0x4b8d84['SESSION_ID_OCCUPIED']:return _0xef4894['t'](_0x2468dd(0x124));case _0x4b8d84['NETWORK_ERROR']:return _0xef4894['t'](_0x2468dd(0x155));case _0x4b8d84[_0x2468dd(0x14a)]:return _0xef4894['t'](_0x2468dd(0x24e));default:return'';}},_0x4adc4f=_0x1ff9c2(()=>{const _0x38b31c=_0x3c039e,_0x17b38a={..._0x54e357,'apiKey':_0x2f3b51[_0x38b31c(0x26b)](),'enableAuth':_0x7f206a};_0xcaecae(_0x17b38a);},[_0x54e357,_0x2f3b51,_0x7f206a,_0xcaecae]),_0x165a7c=_0x2f3b51[_0x3c039e(0x26b)]()[_0x3c039e(0x238)]>0x0;return _0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x1f4),'children':[_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x16b),'children':_0x310502('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0xd8d81b(_0x3c039e(0x207),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0xd8d81b(_0x3c039e(0x1bb),{'className':_0x3c039e(0x267),'children':'⚙'})}),_0xd8d81b('div',{'children':_0xd8d81b('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0xef4894['t'](_0x3c039e(0x134))})})]})}),_0x310502(_0x3c039e(0x207),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0xd8d81b('div',{'className':_0xa1e1e9(_0x3c039e(0x185),_0xceba64(_0x1845f3,_0x12d856)),'children':_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x1d3),'children':[_0xd8d81b(_0x3c039e(0x207),{'className':_0xa1e1e9('univer-size-2\x20univer-rounded-full',_0x1a3135(_0x1845f3,_0x12d856))}),_0xd8d81b(_0x3c039e(0x1bb),{'className':'univer-text-sm\x20univer-font-medium','children':_0x1825e4(_0x1845f3)})]})}),_0x12d856!==_0x4b8d84['NONE']&&(_0x1845f3===_0x2ac4f3[_0x3c039e(0x159)]||_0x12d856===_0x4b8d84[_0x3c039e(0x14e)])&&_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x250),'children':_0x310502(_0x3c039e(0x207),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0xd8d81b(_0x3c039e(0x1bb),{'className':_0x3c039e(0x1b6),'children':'⚠️'}),_0xd8d81b('p',{'className':_0x3c039e(0x13c),'children':_0x57cdcd(_0x12d856)})]})})]}),_0xd8d81b(_0x3c039e(0x207),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x310502('div',{'className':_0x3c039e(0x17c),'children':[_0x310502(_0x3c039e(0x207),{'className':'univer-space-y-2','children':[_0x310502(_0x3c039e(0x1c8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0xd8d81b(_0x3c039e(0x1bb),{'children':'🔑'}),'\x20',_0xef4894['t']('mcpConfig.apiKey'),_0xd8d81b(_0x3c039e(0x1bb),{'className':_0x3c039e(0x148),'children':'*'}),_0x49751f&&_0xd8d81b('a',{'className':_0x3c039e(0x274),'title':_0xef4894['t'](_0x3c039e(0x206)),'role':_0x3c039e(0x252),'onClick':()=>_0x2befd8(!0x0),'children':_0xd8d81b(ve,{})})]}),_0xd8d81b(_0x4583e1,{'type':_0x3c039e(0x272),'placeholder':_0xef4894['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x2f3b51,'disabled':_0xfcbd30,'autoComplete':_0x3c039e(0x211),'onChange':_0x55a3db}),_0xd8d81b('p',{'className':_0x3c039e(0x15b),'children':_0xef4894['t']('mcpConfig.apiKeyHint')})]}),_0x49751f&&_0x1066fe&&_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x1ce),'children':[_0xd8d81b('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':_0x3c039e(0x252),'onClick':()=>_0x2befd8(!0x1),'children':_0xd8d81b(ue,{'className':_0x3c039e(0x171)})}),_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x13d),'children':[_0xd8d81b(_0x3c039e(0x207),{'className':'univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0xd8d81b('span',{'className':_0x3c039e(0x198),'children':'🚀'})}),_0x310502('div',{'className':'univer-flex-1','children':[_0xd8d81b('h4',{'className':_0x3c039e(0x1ee),'children':_0xef4894['t']('mcpConfig.apiApplyInfo.title')}),_0xd8d81b('p',{'className':_0x3c039e(0x123),'children':_0xef4894['t'](_0x3c039e(0x14d))}),_0xd8d81b(_0x3c039e(0x207),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x5c0dd0&&_0x310502('a',{'className':'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','href':_0x113a40,'target':_0x3c039e(0x248),'rel':_0x3c039e(0x23c),'children':[_0xd8d81b(_0x3c039e(0x1bb),{'children':'🤖'}),_0xef4894['t'](_0x3c039e(0x1e0)),_0xd8d81b(_0x3c039e(0x1bb),{'className':_0x3c039e(0x21e),'children':'↗'})]})}),_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x1df),'children':['✨','\x20',_0xef4894['t'](_0x3c039e(0x21b))]})]})]})]}),_0x950fa9[_0x3c039e(0x247)]&&_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x14b),'children':[_0x310502('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0xd8d81b(_0x3c039e(0x1bb),{'children':'🔗'}),'\x20',_0xef4894['t'](_0x3c039e(0x20c))]}),_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x23e),'children':[_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x214),'children':[_0xd8d81b('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0xef4894['t']('mcpConfig.configInstructions')}),_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x275),'children':[_0xd8d81b('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0xef4894['t'](_0x3c039e(0x195))}),_0x310502(_0x3c039e(0x207),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x1d3),'children':[_0xd8d81b(_0x3c039e(0x1bb),{'className':_0x3c039e(0x1b8),'children':'1'}),_0xef4894['t'](_0x3c039e(0x1a5))]}),_0x310502('div',{'className':_0x3c039e(0x1d3),'children':[_0xd8d81b('span',{'className':_0x3c039e(0x1b8),'children':'2'}),_0xef4894['t'](_0x3c039e(0x1be))]}),_0x310502('div',{'className':_0x3c039e(0x1d3),'children':[_0xd8d81b('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0xef4894['t']('mcpConfig.configStep3')]})]})]})]}),_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x275),'children':[_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x12f),'children':'MCP\x20Configuration'}),_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x1db),'children':_0xd8d81b(_0x3c039e(0x1c4),{'className':_0x3c039e(0x245),'children':JSON[_0x3c039e(0x12d)]({'mcpServers':{'univer':{'url':_0x3c039e(0x202)+(_0x1dee0d||_0x3c039e(0x203)),'type':'http','headers':{'Authorization':_0x3c039e(0x122)+(_0x2f3b51||'<API_KEY>')}}}},null,0x2)})})]}),_0x310502('div',{'className':'univer-space-y-3','children':[_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x12f),'children':_0xef4894['t']('mcpConfig.configParameters')}),_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x275),'children':[_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x1b7),'children':[_0xd8d81b('div',{'className':_0x3c039e(0x135)}),_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x1fc),'children':[_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x18b),'children':'univer_session_id:'}),_0xd8d81b('div',{'className':_0x3c039e(0x15b),'children':_0xef4894['t'](_0x3c039e(0x1e3))})]})]}),_0x310502('div',{'className':_0x3c039e(0x1b7),'children':[_0xd8d81b('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x310502('div',{'className':_0x3c039e(0x1fc),'children':[_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x18b),'children':_0x3c039e(0x160)}),_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x15b),'children':_0xef4894['t'](_0x3c039e(0x13a))})]})]})]})]})]})]}),_0xd8d81b(_0x53a0df,{'onClick':_0x4adc4f,'disabled':!_0x165a7c||_0xfcbd30,'className':_0x3c039e(0x1cf),'children':_0xfcbd30?_0x310502(_0x3c039e(0x1bb),{'className':_0x3c039e(0x1d3),'children':[_0xd8d81b(_0x3c039e(0x1bb),{'children':'⟲'}),_0xef4894['t']('mcpConfig.saving')]}):_0x310502(_0x3c039e(0x1bb),{'className':_0x3c039e(0x1d3),'children':[_0xd8d81b(le,{}),_0xef4894['t'](_0x3c039e(0x187))]})}),_0xd8d81b('div',{'className':_0x3c039e(0x1cc),'children':_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x15e),'children':[_0xd8d81b(_0x3c039e(0x1bb),{'className':_0x3c039e(0x174),'children':'💡'}),_0x310502(_0x3c039e(0x207),{'className':_0x3c039e(0x178),'children':[_0xd8d81b(_0x3c039e(0x207),{'className':_0x3c039e(0x146),'children':'Configuration\x20Notes:'}),_0x310502(_0x3c039e(0x207),{'children':['•',_0xef4894['t'](_0x3c039e(0x1ef))]}),_0x310502('div',{'children':['•',_0xef4894['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0x38e032(0x1da),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x38e032(0x1f8)],tn=(_0x410935,_0x186492,_0x4b0328,_0x68f682)=>{for(var _0x5dfda6=_0x68f682>0x1?void 0x0:_0x68f682?rn(_0x186492,_0x4b0328):_0x186492,_0x498550=_0x410935['length']-0x1,_0x435940;_0x498550>=0x0;_0x498550--)(_0x435940=_0x410935[_0x498550])&&(_0x5dfda6=_0x435940(_0x5dfda6)||_0x5dfda6);return _0x5dfda6;},d=(_0x2a3dd7,_0x1725de)=>(_0x54e99d,_0x1400ba)=>_0x1725de(_0x54e99d,_0x1400ba,_0x2a3dd7);const U=_0x38e032(0x19b),L=_0x38e032(0x1fa);let I=class extends _0x5b9a6f{constructor(_0x4f4292,_0x19aac5,_0x24d122,_0x16667d,_0x1d139a,_0x26c3df,_0x40665,_0x36354f,_0x4eacf9,_0x4911d){const _0x58b19a=_0x38e032;super(),x(this,'_loading$',new _0xbfc369(!0x1)),x(this,_0x58b19a(0x1e7),new _0xbfc369({})),x(this,_0x58b19a(0x222),new _0xbfc369({})),x(this,'_apiKey$',new _0xbfc369('')),x(this,_0x58b19a(0x145),async _0x22ec33=>{const _0x9e09b=_0x58b19a;var _0x12c81b,_0xbd101a;this[_0x9e09b(0x196)][_0x9e09b(0x16a)](!0x0);try{const _0x324587=await this['_validateConfig'](_0x22ec33);if(!_0x324587[_0x9e09b(0x1c1)]){this[_0x9e09b(0x273)][_0x9e09b(0x1cb)]({'type':_0x5edd10[_0x9e09b(0x1d6)],'content':_0x324587[_0x9e09b(0x1ea)]||this[_0x9e09b(0x22f)]['t'](_0x9e09b(0x132))});return;}_0x22ec33[_0x9e09b(0x12a)]?await this[_0x9e09b(0x1e2)][_0x9e09b(0x1d9)](U,_0x22ec33[_0x9e09b(0x12a)][_0x9e09b(0x26b)]()):await this[_0x9e09b(0x1e2)]['removeItem'](U),this[_0x9e09b(0x1a7)][_0x9e09b(0x16a)](((_0x12c81b=_0x22ec33[_0x9e09b(0x12a)])==null?void 0x0:_0x12c81b[_0x9e09b(0x26b)]())||''),this['_mcpConnectionController'][_0x9e09b(0x12b)]({'Authorization':'Bearer\x20'+((_0xbd101a=_0x22ec33[_0x9e09b(0x12a)])==null?void 0x0:_0xbd101a[_0x9e09b(0x26b)]())}),this[_0x9e09b(0x273)]['show']({'type':_0x5edd10['Success'],'content':this[_0x9e09b(0x22f)]['t'](_0x9e09b(0x17b))}),setTimeout(()=>{const _0x38d499=_0x9e09b;this[_0x38d499(0x15d)][_0x38d499(0x156)](L);},0x320);}catch(_0x205c93){this[_0x9e09b(0x19f)]['error'](_0x9e09b(0x19e),_0x205c93),this[_0x9e09b(0x273)]['show']({'type':_0x5edd10[_0x9e09b(0x1d6)],'content':this[_0x9e09b(0x22f)]['t'](_0x9e09b(0x26a))});}finally{this[_0x9e09b(0x196)]['next'](!0x1);}}),(this[_0x58b19a(0x1c3)]=_0x4f4292,this['_uiPartsService']=_0x19aac5,this['_configService']=_0x24d122,this[_0x58b19a(0x1e2)]=_0x16667d,this[_0x58b19a(0x15d)]=_0x1d139a,this[_0x58b19a(0x273)]=_0x26c3df,this[_0x58b19a(0x14f)]=_0x40665,this[_0x58b19a(0x22f)]=_0x36354f,this[_0x58b19a(0x19f)]=_0x4eacf9,this['_mcpConnectionController']=_0x4911d,this['_initConfigSync'](),this['_loadStoredApiKey'](),this[_0x58b19a(0x13f)]());}['showConfigPanel'](){const _0x41a2a=_0x38e032,_0x59c8cc=this['_configService'][_0x41a2a(0x21a)](y);_0x59c8cc!=null&&_0x59c8cc[_0x41a2a(0x247)]&&this[_0x41a2a(0x15d)][_0x41a2a(0x121)]({'id':L,'title':{'title':this[_0x41a2a(0x22f)]['t'](_0x41a2a(0x208))},'children':{'label':_0x41a2a(0x19d)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x2d8fea=_0x41a2a;this[_0x2d8fea(0x15d)]['close'](L);}});}[_0x38e032(0x19c)](){const _0x13add6=_0x38e032;return this['_mcpCoreConfig$'][_0x13add6(0x189)];}[_0x38e032(0x13f)](){const _0x1de449=_0x38e032;this[_0x1de449(0x201)](this['_componentManager'][_0x1de449(0x1af)](_0x1de449(0x19d),this['_createConfigPanelComponent']()));}[_0x38e032(0x23b)](){const _0x17080d=_0x38e032;return _0x597448(()=>{const _0x44e3c5=_0x5162;var _0x4cd21b,_0x185468,_0x280a90;return _0xd8d81b(nn,{'config':this['_config$'][_0x44e3c5(0x189)],'mcpCoreConfig':this[_0x44e3c5(0x1e7)]['value'],'currentApiKey$':this[_0x44e3c5(0x1a7)],'onSave':this[_0x44e3c5(0x145)],'loading':this[_0x44e3c5(0x196)][_0x44e3c5(0x189)],'connectionStatus$':(_0x4cd21b=this['_mcpConnectionController'])==null?void 0x0:_0x4cd21b[_0x44e3c5(0x1d7)],'connectionError$':(_0x185468=this['_mcpConnectionController'])==null?void 0x0:_0x185468[_0x44e3c5(0x259)],'currentSessionId$':(_0x280a90=this[_0x44e3c5(0x1a8)])==null?void 0x0:_0x280a90[_0x44e3c5(0x26f)]});},this[_0x17080d(0x1c3)]);}['_initConfigSync'](){const _0x14a1d4=_0x38e032;this[_0x14a1d4(0x201)](this[_0x14a1d4(0x1f7)][_0x14a1d4(0x141)](_0x2471aa)[_0x14a1d4(0x15c)](_0x456ccd=>{const _0x5e451b=_0x14a1d4;this[_0x5e451b(0x1e7)][_0x5e451b(0x16a)](_0x456ccd||{});}));const _0x52064c=this[_0x14a1d4(0x1f7)]['getConfig'](_0x2471aa);this[_0x14a1d4(0x1e7)]['next'](_0x52064c||{}),this['disposeWithMe'](this['_configService'][_0x14a1d4(0x141)](y)['subscribe'](_0x48d8b0=>{const _0xd107c5=_0x14a1d4;this['_config$'][_0xd107c5(0x16a)](_0x48d8b0||{});}));const _0x2771e5=this[_0x14a1d4(0x1f7)]['getConfig'](y);this[_0x14a1d4(0x222)]['next'](_0x2771e5||{});}async[_0x38e032(0x235)](){const _0x26c572=_0x38e032,_0xdb5f05=this[_0x26c572(0x1f7)][_0x26c572(0x21a)](y);if(!(_0xdb5f05!=null&&_0xdb5f05[_0x26c572(0x247)]))return;const _0x2180d0=await this[_0x26c572(0x1e2)][_0x26c572(0x151)](U);_0x2180d0&&(this[_0x26c572(0x1a8)]['__setCustomHeaders']({'Authorization':'Bearer\x20'+_0x2180d0}),this[_0x26c572(0x1a7)]['next'](_0x2180d0));}async[_0x38e032(0x1dc)](_0x45f4b6){const _0x240152=_0x38e032;if(!_0x45f4b6[_0x240152(0x12a)]||_0x45f4b6[_0x240152(0x12a)][_0x240152(0x26b)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x240152(0x22f)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x45f4b6['apiKey'][_0x240152(0x26b)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x240152(0x22f)]['t'](_0x240152(0x18a))};try{const _0x1f5691=await this[_0x240152(0x1c3)][_0x240152(0x157)](_0xafd2ed)['validateApiKey'](_0x45f4b6[_0x240152(0x12a)]['trim']());return _0x1f5691['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1f5691[_0x240152(0x1fe)]||this[_0x240152(0x22f)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x2ddf0a){return console[_0x240152(0x1c7)](_0x240152(0x182),_0x2ddf0a),{'isValid':!0x0};}}};I=tn([d(0x0,_0x2dc60e(_0x57c3fd)),d(0x1,_0x21b0fa),d(0x2,_0x1d0ad6),d(0x3,_0x3c915b),d(0x4,_0x12f11f),d(0x5,_0x2069f9),d(0x6,_0x2dc60e(_0x111deb)),d(0x7,_0x2dc60e(_0x2cd658)),d(0x8,_0x1d31a2),d(0x9,_0x2dc60e(_0xafd2ed))],I);const V={'id':_0x38e032(0x1a3),'type':_0x5ae180['COMMAND'],'handler':async(_0x239956,_0x567c80)=>(_0x239956[_0x38e032(0x157)](I)['showConfigPanel'](),!0x0)};function pe(_0x3810df,_0x25bf16){const _0x39c4b5=_0x38e032;switch(_0x3810df){case _0x2ac4f3[_0x39c4b5(0x215)]:return'mcpStatus.disconnected';case _0x2ac4f3['CONNECTING']:return _0x39c4b5(0x1a2);case _0x2ac4f3[_0x39c4b5(0x191)]:return _0x39c4b5(0x255);case _0x2ac4f3[_0x39c4b5(0x159)]:switch(_0x25bf16){case _0x4b8d84[_0x39c4b5(0x14e)]:return _0x39c4b5(0x1a1);case _0x4b8d84['SESSION_ID_OCCUPIED']:return _0x39c4b5(0x25f);case _0x4b8d84[_0x39c4b5(0x1c9)]:return _0x39c4b5(0x186);case _0x4b8d84[_0x39c4b5(0x14a)]:return _0x39c4b5(0x213);default:return _0x39c4b5(0x1b2);}case _0x2ac4f3['RETRYING']:return _0x39c4b5(0x1b5);default:return _0x39c4b5(0x18e);}}function on(_0x243126,_0x270517,_0x354635,_0x5bae68=!0x0){const _0x835944=_0x38e032,_0x4b108d=pe(_0x243126,_0x270517),_0x4358a9=_0x354635['t'](_0x4b108d);return _0x5bae68?_0x243126===_0x2ac4f3['DISCONNECTED']&&_0x270517===_0x4b8d84['UNAUTHORIZED']?_0x4358a9+_0x835944(0x1ac)+_0x354635['t']('mcpStatus.clickToConfigure'):_0x243126===_0x2ac4f3[_0x835944(0x191)]?''+_0x4358a9:_0x243126===_0x2ac4f3[_0x835944(0x215)]||_0x243126===_0x2ac4f3[_0x835944(0x159)]?_0x4358a9+_0x835944(0x1ac)+_0x354635['t'](_0x835944(0x16d)):_0x4358a9:_0x4358a9;}function sn(_0x399c9d){const _0x8ecb2f=_0x38e032;switch(_0x399c9d){case _0x2ac4f3[_0x8ecb2f(0x191)]:return _0x8ecb2f(0x249);case _0x2ac4f3['CONNECTING']:case _0x2ac4f3['RETRYING']:return'univer-text-yellow-500';case _0x2ac4f3[_0x8ecb2f(0x159)]:case _0x2ac4f3['DISCONNECTED']:return _0x8ecb2f(0x148);default:return _0x8ecb2f(0x1e1);}}function cn(_0x4c6515){const _0x4f28da=_0x38e032,{status$:_0x10ad5e,error$:_0x564fd6,onConfigure:_0x3824b6,showClickable:_0x37e3cf=!0x0}=_0x4c6515,_0x1cce47=_0x2de466(_0x10ad5e,_0x2ac4f3[_0x4f28da(0x215)]),_0x59cdc0=_0x2de466(_0x564fd6,_0x4b8d84[_0x4f28da(0x227)]),_0x1f5857=_0x58672d(_0x2cd658),_0x47e578=_0x1cce47===_0x2ac4f3['CONNECTED'];_0x1cce47===_0x2ac4f3['CONNECTING']||_0x2ac4f3['RETRYING'];const _0x1a0809=_0x1f5857['t'](pe(_0x1cce47,_0x59cdc0)),_0xfa368c=on(_0x1cce47,_0x59cdc0,_0x1f5857,_0x37e3cf),_0x38c9b7=sn(_0x1cce47),_0x48d62d=_0x47e578?_0xd8d81b(ge,{}):_0xd8d81b(de,{}),_0x1196e4=_0x1ff9c2(()=>{_0x37e3cf&&_0x3824b6&&_0x3824b6();},[_0x37e3cf,_0x3824b6]);function _0x64ce6f(){const _0x534658=_0x4f28da;return _0x310502(_0x534658(0x207),{'className':_0xa1e1e9(_0x534658(0x1d0),_0x37e3cf&&_0x3824b6&&_0x534658(0x204)),'role':_0x534658(0x252),'onClick':_0x37e3cf&&_0x3824b6?_0x1196e4:void 0x0,'children':[_0xd8d81b(_0x534658(0x207),{'className':_0xa1e1e9(_0x534658(0x1f6),_0x38c9b7),'children':_0x48d62d}),_0xd8d81b(_0x534658(0x207),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1a0809})]});}return _0xd8d81b(_0x5ec2c7,{'title':_0xfa368c,'placement':'bottom','children':_0x64ce6f()});}var an=Object[_0x38e032(0x1f8)],ln=(_0x2b8ac8,_0x5b8c80,_0x1cb834,_0x21c8e1)=>{const _0x413aca=_0x38e032;for(var _0x422edc=_0x21c8e1>0x1?void 0x0:_0x21c8e1?an(_0x5b8c80,_0x1cb834):_0x5b8c80,_0x17e061=_0x2b8ac8[_0x413aca(0x238)]-0x1,_0x295caf;_0x17e061>=0x0;_0x17e061--)(_0x295caf=_0x2b8ac8[_0x17e061])&&(_0x422edc=_0x295caf(_0x422edc)||_0x422edc);return _0x422edc;},M=(_0x11700c,_0x51160e)=>(_0x158e2f,_0x2a3286)=>_0x51160e(_0x158e2f,_0x2a3286,_0x11700c);let O=class extends _0x5b9a6f{constructor(_0x3de368,_0x534861,_0x2e4cd2,_0x382308){const _0x2225e1=_0x38e032;super(),this['_injector']=_0x3de368,this['_connectionController']=_0x534861,this[_0x2225e1(0x266)]=_0x2e4cd2,this[_0x2225e1(0x1f7)]=_0x382308,this[_0x2225e1(0x180)](),this['_initStatusComponent']();}[_0x38e032(0x180)](){const _0x21d1c3=_0x38e032,_0x41614d=this['_configService'][_0x21d1c3(0x21a)](y);_0x41614d!=null&&_0x41614d[_0x21d1c3(0x247)]&&(this['_connectionController'][_0x21d1c3(0x1d2)]=!0x1);}[_0x38e032(0x16e)](){const _0x3fb0e1=_0x38e032,_0x287952=this[_0x3fb0e1(0x1f7)][_0x3fb0e1(0x21a)](y);(_0x287952==null?void 0x0:_0x287952['showStatus'])!==!0x1&&this[_0x3fb0e1(0x201)](this[_0x3fb0e1(0x266)][_0x3fb0e1(0x253)](_0xea10c4[_0x3fb0e1(0x1ab)],()=>{const _0x3e044a=_0x3fb0e1;var _0x58073a;return _0x597448(un({'status$':this[_0x3e044a(0x25e)]['connectionStatus$'],'error$':this[_0x3e044a(0x25e)][_0x3e044a(0x259)],'onConfigure':()=>this[_0x3e044a(0x175)](),'showClickable':(_0x58073a=_0x287952==null?void 0x0:_0x287952[_0x3e044a(0x247)])!=null?_0x58073a:!0x1}),this[_0x3e044a(0x1c3)]);}));}[_0x38e032(0x175)](){const _0x2dccb7=_0x38e032;this['_injector'][_0x2dccb7(0x157)](I)[_0x2dccb7(0x1fb)]();}};O=ln([M(0x0,_0x2dc60e(_0x57c3fd)),M(0x1,_0x2dc60e(_0xafd2ed)),M(0x2,_0x21b0fa),M(0x3,_0x1d0ad6)],O);function un(_0x3c6c76){const {status$:_0x1b3477,error$:_0x44e004,onConfigure:_0x4ca46a,showClickable:_0x5e3b7c}=_0x3c6c76;return function(){return _0xd8d81b(cn,{'status$':_0x1b3477,'error$':_0x44e004,'onConfigure':_0x4ca46a,'showClickable':_0x5e3b7c});};}function vn(_0x133fd2){const _0x39aebc=_0x38e032;return{'id':V['id'],'type':_0x23d8b1['BUTTON'],'icon':_0x39aebc(0x265),'title':_0x39aebc(0x208),'tooltip':_0x39aebc(0x208)};}const dn={[_0x433100[_0x38e032(0x24f)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x38e032(0x1f8)],pn=(_0x4c97ea,_0x51de1e,_0x1576e7,_0x31754b)=>{for(var _0x151345=_0x31754b>0x1?void 0x0:_0x31754b?gn(_0x51de1e,_0x1576e7):_0x51de1e,_0x5a764e=_0x4c97ea['length']-0x1,_0x113812;_0x5a764e>=0x0;_0x5a764e--)(_0x113812=_0x4c97ea[_0x5a764e])&&(_0x151345=_0x113812(_0x151345)||_0x151345);return _0x151345;},re=(_0x221ec2,_0xd9459a)=>(_0x53accb,_0x51d649)=>_0xd9459a(_0x53accb,_0x51d649,_0x221ec2);let D=class extends _0x5b9a6f{constructor(_0x171ad7,_0x4a095f){const _0x4dee3c=_0x38e032;super(),this[_0x4dee3c(0x24d)]=_0x171ad7,this[_0x4dee3c(0x16f)]=_0x4a095f,this[_0x4dee3c(0x1e9)](),this['_initializeMenus']();}[_0x38e032(0x1e9)](){const _0x46ca35=_0x38e032;[V][_0x46ca35(0x23f)](_0x508e2e=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x508e2e));});}[_0x38e032(0x240)](){const _0x6c3098=_0x38e032;this[_0x6c3098(0x16f)][_0x6c3098(0x26e)](dn);}};D=pn([re(0x0,_0x2c4476),re(0x1,_0x36e5d4)],D);const Mn={'mcpStatus':{'disconnected':_0x38e032(0x22c),'connecting':_0x38e032(0x14c),'connected':'MCP\x20Connected','failed':_0x38e032(0x1b4),'retrying':_0x38e032(0x1ec),'unknown':_0x38e032(0x1c5),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x38e032(0x216),'networkError':_0x38e032(0x200),'maxRetriesExceeded':_0x38e032(0x25d),'clickToConnect':_0x38e032(0x231),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x38e032(0x228),'description':_0x38e032(0x241),'apiKey':_0x38e032(0x229),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x38e032(0x26c),'enableAuth':_0x38e032(0x173),'enableAuthHint':_0x38e032(0x230),'connectionInfo':_0x38e032(0x16c),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x38e032(0x25a),'configStepTitle':_0x38e032(0x251),'configStep1':_0x38e032(0x1a6),'configStep2':_0x38e032(0x136),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x38e032(0x1ed),'sessionIdDescription':_0x38e032(0x1ca),'authorizationDescription':_0x38e032(0x165),'configParameters':_0x38e032(0x269),'maxRetries':_0x38e032(0x20b),'save':_0x38e032(0x184),'saving':_0x38e032(0x1f0),'note1':_0x38e032(0x131),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x38e032(0x246),'configError':_0x38e032(0x1aa),'apiApplyInfo':{'title':_0x38e032(0x163),'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':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x38e032(0x179),'apiKeyTooShort':_0x38e032(0x181),'invalidConfig':_0x38e032(0x256),'invalidApiKey':_0x38e032(0x172)},'connectionStatus':{'disconnected':_0x38e032(0x20d),'connecting':_0x38e032(0x1f3),'connected':_0x38e032(0x23a),'failed':_0x38e032(0x168),'retrying':_0x38e032(0x133)},'connectionError':{'unauthorized':_0x38e032(0x1b1),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x38e032(0x1e6),'maxRetriesExceeded':_0x38e032(0x1cd)}}},An={'mcpStatus':{'disconnected':_0x38e032(0x232),'connecting':_0x38e032(0x22a),'connected':'MCP\x20已连接','failed':_0x38e032(0x1d5),'retrying':_0x38e032(0x242),'unknown':_0x38e032(0x1a9),'unauthorized':_0x38e032(0x1bd),'sessionOccupied':_0x38e032(0x1d8),'networkError':_0x38e032(0x138),'maxRetriesExceeded':_0x38e032(0x21d),'clickToConnect':_0x38e032(0x1e8),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x38e032(0x12c),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x38e032(0x128),'apiKeyHint':_0x38e032(0x183),'enableAuth':_0x38e032(0x12e),'enableAuthHint':_0x38e032(0x220),'connectionInfo':_0x38e032(0x167),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x38e032(0x190),'configStep1':_0x38e032(0x177),'configStep2':_0x38e032(0x258),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x38e032(0x199),'sessionIdDescription':_0x38e032(0x263),'authorizationDescription':_0x38e032(0x233),'configParameters':_0x38e032(0x239),'maxRetries':_0x38e032(0x1f5),'save':_0x38e032(0x194),'saving':_0x38e032(0x1b0),'note1':_0x38e032(0x243),'note2':_0x38e032(0x1ad),'configSaved':_0x38e032(0x205),'configError':_0x38e032(0x236),'apiApplyInfo':{'title':_0x38e032(0x209),'description':_0x38e032(0x25c),'univerAiLabel':_0x38e032(0x139),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x38e032(0x264),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':'配置无效','invalidApiKey':_0x38e032(0x161)},'connectionStatus':{'disconnected':_0x38e032(0x1f9),'connecting':_0x38e032(0x212),'connected':'已连接','failed':_0x38e032(0x1d1),'retrying':_0x38e032(0x17a)},'connectionError':{'unauthorized':_0x38e032(0x1e5),'sessionOccupied':_0x38e032(0x221),'networkError':_0x38e032(0x1b3),'maxRetriesExceeded':_0x38e032(0x271)}}};var fn=Object[_0x38e032(0x129)],hn=Object[_0x38e032(0x1f8)],Cn=(_0x39b704,_0x31ec3a,_0x5d46ce)=>_0x31ec3a in _0x39b704?fn(_0x39b704,_0x31ec3a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d46ce}):_0x39b704[_0x31ec3a]=_0x5d46ce,mn=(_0x3b0c2a,_0x3e211e,_0x55ee08,_0x407ea9)=>{for(var _0x1dcc35=_0x407ea9>0x1?void 0x0:_0x407ea9?hn(_0x3e211e,_0x55ee08):_0x3e211e,_0x483ba6=_0x3b0c2a['length']-0x1,_0x2508f3;_0x483ba6>=0x0;_0x483ba6--)(_0x2508f3=_0x3b0c2a[_0x483ba6])&&(_0x1dcc35=_0x2508f3(_0x1dcc35)||_0x1dcc35);return _0x1dcc35;},P=(_0x25683c,_0x4eaed1)=>(_0x49157f,_0x3a4864)=>_0x4eaed1(_0x49157f,_0x3a4864,_0x25683c),_n=(_0x553497,_0x3d0481,_0x266afd)=>Cn(_0x553497,_0x3d0481+'',_0x266afd);let j=class extends _0x147660{constructor(_0x31bb6f=ie,_0x102db6,_0x25813d,_0xc39d3b,_0x2c91e7,_0xb2fab6){const _0x465864=_0x38e032;super(),this['_config']=_0x31bb6f,this[_0x465864(0x1c3)]=_0x102db6,this[_0x465864(0x1f7)]=_0x25813d,this['_uiPartsService']=_0xc39d3b,this[_0x465864(0x1e2)]=_0x2c91e7,this[_0x465864(0x22f)]=_0xb2fab6;const {..._0x2ae088}=_0x505fa9({},ie,this['_config']);this['_configService']['setConfig'](y,_0x2ae088);}async[_0x38e032(0x20f)](){const _0x2349be=_0x38e032,_0x46e494=[[O],[I],[D]];this[_0x2349be(0x1c3)][_0x2349be(0x21c)](_0x2bd910)||_0x46e494[_0x2349be(0x1e4)]([_0x2bd910,{'useClass':_0x4ad1da}]),_0x46e494[_0x2349be(0x23f)](_0x1e9e52=>this[_0x2349be(0x1c3)][_0x2349be(0x1a4)](_0x1e9e52)),this['_injector'][_0x2349be(0x157)](O),this[_0x2349be(0x1c3)][_0x2349be(0x157)](I),this[_0x2349be(0x1c3)][_0x2349be(0x157)](D);}};_n(j,_0x38e032(0x197),_0x38e032(0x1fd)),j=mn([_0x3841bd(_0xa5a329),P(0x1,_0x2dc60e(_0x57c3fd)),P(0x2,_0x1d0ad6),P(0x3,_0x21b0fa),P(0x4,_0x3c915b),P(0x5,_0x2dc60e(_0x2cd658))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};