@univerjs-pro/mcp-ui 0.15.2-insiders.20260119-edc718c → 0.15.2-insiders.20260124-12fc7f0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/index.js +1 -1
  14. package/lib/es/locale/ca-ES.js +1 -1
  15. package/lib/es/locale/en-US.js +1 -1
  16. package/lib/es/locale/es-ES.js +1 -1
  17. package/lib/es/locale/fa-IR.js +1 -1
  18. package/lib/es/locale/fr-FR.js +1 -1
  19. package/lib/es/locale/ja-JP.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/index.js +1 -1
  26. package/lib/locale/ca-ES.js +1 -1
  27. package/lib/locale/en-US.js +1 -1
  28. package/lib/locale/es-ES.js +1 -1
  29. package/lib/locale/fa-IR.js +1 -1
  30. package/lib/locale/fr-FR.js +1 -1
  31. package/lib/locale/ja-JP.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/index.js +1 -1
  38. package/lib/umd/locale/ca-ES.js +1 -1
  39. package/lib/umd/locale/en-US.js +1 -1
  40. package/lib/umd/locale/es-ES.js +1 -1
  41. package/lib/umd/locale/fa-IR.js +1 -1
  42. package/lib/umd/locale/fr-FR.js +1 -1
  43. package/lib/umd/locale/ja-JP.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +6 -6
@@ -1 +1 @@
1
- 'use strict';const _0x4196a7=_0x4285;(function(_0x16e7d9,_0x4d6a7c){const _0x279ed4=_0x4285,_0xba4f8f=_0x16e7d9();while(!![]){try{const _0x4587f0=parseInt(_0x279ed4(0x98))/0x1*(-parseInt(_0x279ed4(0x6a))/0x2)+parseInt(_0x279ed4(0x86))/0x3+parseInt(_0x279ed4(0x71))/0x4+parseInt(_0x279ed4(0x75))/0x5*(-parseInt(_0x279ed4(0x87))/0x6)+parseInt(_0x279ed4(0x7e))/0x7*(-parseInt(_0x279ed4(0x8d))/0x8)+parseInt(_0x279ed4(0x8b))/0x9+-parseInt(_0x279ed4(0x83))/0xa;if(_0x4587f0===_0x4d6a7c)break;else _0xba4f8f['push'](_0xba4f8f['shift']());}catch(_0x5ca834){_0xba4f8f['push'](_0xba4f8f['shift']());}}}(_0x2da4,0x8dd3b));function _0x4285(_0x15cc7c,_0x2d3cea){_0x15cc7c=_0x15cc7c-0x6a;const _0x2da4f2=_0x2da4();let _0x4285c2=_0x2da4f2[_0x15cc7c];return _0x4285c2;}function _0x2da4(){const _0xc44566=['설정\x20저장','289762dRzQBf','아래\x20JSON\x20설정\x20복사','Bearer\x20접두사가\x20있는\x20API\x20키.','MCP\x20재시도\x20중...','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','API\x20','MCP\x20클라이언트\x20설정','2548344xtlNqF','몇\x20초\x20만에\x20API\x20키\x20발급받기','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','연결됨','245235ohjKew','MCP\x20연결\x20실패','MCP:\x20최대\x20재시도\x20횟수\x20초과','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','설정\x20저장\x20실패','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','최대\x20재시도\x20횟수','MCP\x20연결\x20중...','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','98IGNgJC','API\x20키란\x20무엇인가요?','저장\x20중...','클릭하여\x20MCP\x20설정','연결\x20중...','2575210IJQJYJ','인증\x20실패.\x20API\x20키를\x20확인하세요','설정\x20단계:','3153405wDHZOz','36zXQLoq','연결\x20실패','설정\x20매개변수:','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','4964274NMqSoO','MCP:\x20네트워크\x20오류','218672yqTlJq','유효하지\x20않은\x20설정','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','API\x20키를\x20입력하세요','MCP\x20연결됨','MCP\x20설정','MCP:\x20세션\x20ID\x20사용\x20중','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','5eIMCuL','재시도\x20중...'];_0x2da4=function(){return _0xc44566;};return _0x2da4();}const e={'mcpStatus':{'disconnected':'MCP\x20연결\x20끊김','connecting':_0x4196a7(0x7c),'connected':_0x4196a7(0x94),'failed':_0x4196a7(0x76),'retrying':_0x4196a7(0x6d),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':'MCP:\x20인증되지\x20않음','sessionOccupied':_0x4196a7(0x96),'networkError':_0x4196a7(0x8c),'maxRetriesExceeded':_0x4196a7(0x77),'clickToConnect':'클릭하여\x20MCP\x20연결','clickToConfigure':_0x4196a7(0x81)},'mcpConfig':{'title':_0x4196a7(0x95),'description':_0x4196a7(0x8f),'apiKey':_0x4196a7(0x6f),'apiKeyPlaceholder':_0x4196a7(0x93),'apiKeyHint':_0x4196a7(0x6e),'enableAuth':'인증\x20활성화','enableAuthHint':'보안\x20연결을\x20위해\x20인증\x20활성화','connectionInfo':'MCP\x20클라이언트\x20설정','mcpClientConfig':_0x4196a7(0x70),'configInstructions':_0x4196a7(0x97),'configStepTitle':_0x4196a7(0x85),'configStep1':_0x4196a7(0x6b),'configStep2':_0x4196a7(0x78),'configStep3':_0x4196a7(0x7a),'sessionId':'세션\x20ID','sessionIdDescription':_0x4196a7(0x73),'authorizationDescription':_0x4196a7(0x6c),'configParameters':_0x4196a7(0x89),'maxRetries':_0x4196a7(0x7b),'save':_0x4196a7(0x9a),'saving':_0x4196a7(0x80),'note1':'설정\x20변경\x20사항은\x20즉시\x20적용됩니다','note2':_0x4196a7(0x8a),'configSaved':'설정이\x20성공적으로\x20저장되었습니다','configError':_0x4196a7(0x79),'apiApplyInfo':{'title':_0x4196a7(0x7f),'description':_0x4196a7(0x91),'univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':_0x4196a7(0x72)},'validation':{'apiKeyRequired':'API\x20키는\x20필수입니다','apiKeyTooShort':'API\x20키는\x2010자\x20이상이어야\x20합니다','invalidConfig':_0x4196a7(0x8e),'invalidApiKey':_0x4196a7(0x92)},'connectionStatus':{'disconnected':'연결\x20끊김','connecting':_0x4196a7(0x82),'connected':_0x4196a7(0x74),'failed':_0x4196a7(0x88),'retrying':_0x4196a7(0x99)},'connectionError':{'unauthorized':_0x4196a7(0x84),'sessionOccupied':_0x4196a7(0x90),'networkError':'네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','maxRetriesExceeded':_0x4196a7(0x7d)}}};module['exports']=e;
1
+ 'use strict';const _0x4a8073=_0x22f1;(function(_0x2deca2,_0x19621a){const _0x1a684d=_0x22f1,_0x35bdf3=_0x2deca2();while(!![]){try{const _0x4df9e5=parseInt(_0x1a684d(0x1e6))/0x1*(-parseInt(_0x1a684d(0x1f4))/0x2)+-parseInt(_0x1a684d(0x1fd))/0x3*(-parseInt(_0x1a684d(0x1e8))/0x4)+parseInt(_0x1a684d(0x200))/0x5*(parseInt(_0x1a684d(0x1fa))/0x6)+-parseInt(_0x1a684d(0x1de))/0x7+-parseInt(_0x1a684d(0x20a))/0x8*(parseInt(_0x1a684d(0x205))/0x9)+parseInt(_0x1a684d(0x202))/0xa+parseInt(_0x1a684d(0x1f5))/0xb;if(_0x4df9e5===_0x19621a)break;else _0x35bdf3['push'](_0x35bdf3['shift']());}catch(_0x15d447){_0x35bdf3['push'](_0x35bdf3['shift']());}}}(_0x4166,0x9f458));function _0x22f1(_0x1d8350,_0x45d075){_0x1d8350=_0x1d8350-0x1de;const _0x4166bb=_0x4166();let _0x22f184=_0x4166bb[_0x1d8350];return _0x22f184;}function _0x4166(){const _0x31158a=['MCP:\x20세션\x20ID\x20사용\x20중','3565401uxRdaj','설정\x20저장\x20실패','API\x20키는\x2010자\x20이상이어야\x20합니다','MCP:\x20인증되지\x20않음','저장\x20중...','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','Univer\x20AI\x20콘솔','7KNehxD','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','564gnqbHw','클릭하여\x20MCP\x20연결','MCP\x20설정','인증\x20활성화','유효하지\x20않은\x20설정','보안\x20연결을\x20위해\x20인증\x20활성화','MCP\x20클라이언트\x20설정','API\x20키란\x20무엇인가요?','MCP\x20연결\x20끊김','MCP\x20연결\x20중...','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','Bearer\x20접두사가\x20있는\x20API\x20키.','556LTYKwn','566951wyZByV','설정\x20저장','API\x20','MCP\x20재시도\x20중...','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','781098twMYOq','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','설정이\x20성공적으로\x20저장되었습니다','12645lKhCul','MCP\x20연결\x20실패','아래\x20JSON\x20설정\x20복사','15KlJxPK','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','9812300lYjqpT','MCP\x20연결됨','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','18gylmTJ','재시도\x20중...','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','연결\x20끊김','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','3415880mwdZXt','API\x20키를\x20입력하세요','MCP\x20알\x20수\x20없는\x20상태','MCP:\x20네트워크\x20오류','클릭하여\x20MCP\x20설정'];_0x4166=function(){return _0x31158a;};return _0x4166();}const e={'mcpStatus':{'disconnected':_0x4a8073(0x1f0),'connecting':_0x4a8073(0x1f1),'connected':_0x4a8073(0x203),'failed':_0x4a8073(0x1fe),'retrying':_0x4a8073(0x1f8),'unknown':_0x4a8073(0x20c),'unauthorized':_0x4a8073(0x1e1),'sessionOccupied':_0x4a8073(0x20f),'networkError':_0x4a8073(0x20d),'maxRetriesExceeded':'MCP:\x20최대\x20재시도\x20횟수\x20초과','clickToConnect':_0x4a8073(0x1e9),'clickToConfigure':_0x4a8073(0x20e)},'mcpConfig':{'title':_0x4a8073(0x1ea),'description':_0x4a8073(0x1f2),'apiKey':_0x4a8073(0x1f7),'apiKeyPlaceholder':_0x4a8073(0x20b),'apiKeyHint':_0x4a8073(0x1fb),'enableAuth':_0x4a8073(0x1eb),'enableAuthHint':_0x4a8073(0x1ed),'connectionInfo':_0x4a8073(0x1ee),'mcpClientConfig':_0x4a8073(0x1ee),'configInstructions':_0x4a8073(0x204),'configStepTitle':'설정\x20단계:','configStep1':_0x4a8073(0x1ff),'configStep2':_0x4a8073(0x1e3),'configStep3':_0x4a8073(0x201),'sessionId':'세션\x20ID','sessionIdDescription':_0x4a8073(0x207),'authorizationDescription':_0x4a8073(0x1f3),'configParameters':'설정\x20매개변수:','maxRetries':'최대\x20재시도\x20횟수','save':_0x4a8073(0x1f6),'saving':_0x4a8073(0x1e2),'note1':_0x4a8073(0x1f9),'note2':_0x4a8073(0x209),'configSaved':_0x4a8073(0x1fc),'configError':_0x4a8073(0x1df),'apiApplyInfo':{'title':_0x4a8073(0x1ef),'description':_0x4a8073(0x1e7),'univerAiLabel':_0x4a8073(0x1e5),'getStarted':'몇\x20초\x20만에\x20API\x20키\x20발급받기'},'validation':{'apiKeyRequired':'API\x20키는\x20필수입니다','apiKeyTooShort':_0x4a8073(0x1e0),'invalidConfig':_0x4a8073(0x1ec),'invalidApiKey':_0x4a8073(0x1e4)},'connectionStatus':{'disconnected':_0x4a8073(0x208),'connecting':'연결\x20중...','connected':'연결됨','failed':'연결\x20실패','retrying':_0x4a8073(0x206)},'connectionError':{'unauthorized':'인증\x20실패.\x20API\x20키를\x20확인하세요','sessionOccupied':'세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','networkError':'네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','maxRetriesExceeded':'최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요'}}};module['exports']=e;
@@ -1 +1 @@
1
- 'use strict';const _0x1710bc=_0x2b25;(function(_0xf32fa8,_0x2e5791){const _0x38f298=_0x2b25,_0x7072e7=_0xf32fa8();while(!![]){try{const _0x1bbec6=parseInt(_0x38f298(0x187))/0x1*(-parseInt(_0x38f298(0x17d))/0x2)+parseInt(_0x38f298(0x182))/0x3+-parseInt(_0x38f298(0x164))/0x4+parseInt(_0x38f298(0x18d))/0x5+-parseInt(_0x38f298(0x180))/0x6+-parseInt(_0x38f298(0x171))/0x7+parseInt(_0x38f298(0x16d))/0x8;if(_0x1bbec6===_0x2e5791)break;else _0x7072e7['push'](_0x7072e7['shift']());}catch(_0x586933){_0x7072e7['push'](_0x7072e7['shift']());}}}(_0x39c8,0x621d2));function _0x39c8(){const _0x38c930=['Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20is\x20required','MCP\x20Retrying...','Click\x20to\x20connect\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Session\x20ID\x20Occupied','2XvnjAH','MCP:\x20Max\x20Retries\x20Exceeded','Invalid\x20configuration','3173928AIHHNS','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','157833PNRsom','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','exports','13409ScYeQC','MCP\x20Unknown\x20Status','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Configuration','Configuration\x20Parameters:','MCP\x20Disconnected','2048330MzYBEo','Configuration\x20saved\x20successfully','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connection\x20Failed','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP:\x20Network\x20Error','Saving...','2101148ZTFYPz','Save\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enable\x20Authentication','What\x20is\x20API\x20Key?','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','14409376nHyArn','Connected','Failed\x20to\x20save\x20configuration','API\x20Key','5557237ZUbFgr','Connecting...','Disconnected','Enter\x20your\x20API\x20key','Configuration\x20Steps:'];_0x39c8=function(){return _0x38c930;};return _0x39c8();}function _0x2b25(_0x5d0df,_0x3f7118){_0x5d0df=_0x5d0df-0x15e;const _0x39c8f5=_0x39c8();let _0x2b2574=_0x39c8f5[_0x5d0df];return _0x2b2574;}const e={'mcpStatus':{'disconnected':_0x1710bc(0x18c),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x1710bc(0x191),'retrying':_0x1710bc(0x179),'unknown':_0x1710bc(0x188),'unauthorized':_0x1710bc(0x167),'sessionOccupied':_0x1710bc(0x17c),'networkError':_0x1710bc(0x162),'maxRetriesExceeded':_0x1710bc(0x17e),'clickToConnect':_0x1710bc(0x17a),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1710bc(0x18a),'description':_0x1710bc(0x160),'apiKey':_0x1710bc(0x170),'apiKeyPlaceholder':_0x1710bc(0x174),'apiKeyHint':_0x1710bc(0x184),'enableAuth':_0x1710bc(0x169),'enableAuthHint':_0x1710bc(0x17b),'connectionInfo':_0x1710bc(0x15f),'mcpClientConfig':_0x1710bc(0x15f),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1710bc(0x175),'configStep1':_0x1710bc(0x16c),'configStep2':_0x1710bc(0x168),'configStep3':_0x1710bc(0x16b),'sessionId':'Session\x20ID','sessionIdDescription':_0x1710bc(0x185),'authorizationDescription':_0x1710bc(0x189),'configParameters':_0x1710bc(0x18b),'maxRetries':_0x1710bc(0x192),'save':_0x1710bc(0x165),'saving':_0x1710bc(0x163),'note1':_0x1710bc(0x18f),'note2':_0x1710bc(0x181),'configSaved':_0x1710bc(0x18e),'configError':_0x1710bc(0x16f),'apiApplyInfo':{'title':_0x1710bc(0x16a),'description':_0x1710bc(0x161),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x1710bc(0x178),'apiKeyTooShort':_0x1710bc(0x15e),'invalidConfig':_0x1710bc(0x17f),'invalidApiKey':_0x1710bc(0x190)},'connectionStatus':{'disconnected':_0x1710bc(0x173),'connecting':_0x1710bc(0x172),'connected':_0x1710bc(0x16e),'failed':_0x1710bc(0x176),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x1710bc(0x166),'sessionOccupied':_0x1710bc(0x177),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x1710bc(0x183)}}},n=e;module[_0x1710bc(0x186)]=n;
1
+ 'use strict';const _0x48aba0=_0x44f4;(function(_0x368b25,_0xf05c18){const _0x15a940=_0x44f4,_0x89e572=_0x368b25();while(!![]){try{const _0x36f16a=-parseInt(_0x15a940(0x13c))/0x1+parseInt(_0x15a940(0x157))/0x2*(parseInt(_0x15a940(0x14b))/0x3)+parseInt(_0x15a940(0x16d))/0x4+parseInt(_0x15a940(0x15f))/0x5+-parseInt(_0x15a940(0x159))/0x6*(parseInt(_0x15a940(0x16e))/0x7)+-parseInt(_0x15a940(0x143))/0x8+parseInt(_0x15a940(0x16f))/0x9;if(_0x36f16a===_0xf05c18)break;else _0x89e572['push'](_0x89e572['shift']());}catch(_0x4b55d1){_0x89e572['push'](_0x89e572['shift']());}}}(_0x26aa,0xe377c));function _0x44f4(_0x267f1b,_0x378a0b){_0x267f1b=_0x267f1b-0x13c;const _0x26aa1e=_0x26aa();let _0x44f4f6=_0x26aa1e[_0x267f1b];return _0x44f4f6;}const e={'mcpStatus':{'disconnected':_0x48aba0(0x140),'connecting':_0x48aba0(0x142),'connected':_0x48aba0(0x163),'failed':_0x48aba0(0x160),'retrying':'MCP\x20Retrying...','unknown':_0x48aba0(0x148),'unauthorized':_0x48aba0(0x168),'sessionOccupied':_0x48aba0(0x161),'networkError':_0x48aba0(0x169),'maxRetriesExceeded':_0x48aba0(0x15a),'clickToConnect':_0x48aba0(0x170),'clickToConfigure':_0x48aba0(0x16b)},'mcpConfig':{'title':_0x48aba0(0x14a),'description':_0x48aba0(0x149),'apiKey':_0x48aba0(0x13f),'apiKeyPlaceholder':_0x48aba0(0x141),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x48aba0(0x167),'enableAuthHint':_0x48aba0(0x158),'connectionInfo':_0x48aba0(0x154),'mcpClientConfig':_0x48aba0(0x154),'configInstructions':_0x48aba0(0x162),'configStepTitle':_0x48aba0(0x13e),'configStep1':_0x48aba0(0x16a),'configStep2':_0x48aba0(0x144),'configStep3':_0x48aba0(0x146),'sessionId':_0x48aba0(0x15b),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x48aba0(0x14d),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x48aba0(0x16c),'save':'Save\x20Configuration','saving':_0x48aba0(0x156),'note1':_0x48aba0(0x151),'note2':_0x48aba0(0x15e),'configSaved':_0x48aba0(0x152),'configError':_0x48aba0(0x14f),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x48aba0(0x165),'getStarted':_0x48aba0(0x155)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x48aba0(0x14c),'invalidConfig':_0x48aba0(0x153),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x48aba0(0x14e),'connecting':'Connecting...','connected':_0x48aba0(0x145),'failed':_0x48aba0(0x166),'retrying':_0x48aba0(0x150)},'connectionError':{'unauthorized':_0x48aba0(0x164),'sessionOccupied':_0x48aba0(0x15d),'networkError':_0x48aba0(0x147),'maxRetriesExceeded':_0x48aba0(0x15c)}}},n=e;module[_0x48aba0(0x13d)]=n;function _0x26aa(){const _0x1a9d37=['Configuration\x20Steps:','API\x20Key','MCP\x20Disconnected','Enter\x20your\x20API\x20key','MCP\x20Connecting...','1830704cTtOmu','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Unknown\x20Status','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Configuration','3NaKDLC','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20key\x20with\x20Bearer\x20prefix.','Disconnected','Failed\x20to\x20save\x20configuration','Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20saved\x20successfully','Invalid\x20configuration','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Saving...','2993286TStHCb','Enable\x20authentication\x20for\x20secure\x20connections','66XiIyus','MCP:\x20Max\x20Retries\x20Exceeded','Session\x20ID','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1485475souQkU','MCP\x20Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Univer\x20AI\x20Console','Connection\x20Failed','Enable\x20Authentication','MCP:\x20Unauthorized','MCP:\x20Network\x20Error','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20configure\x20MCP','Max\x20Retries','746220sJDytj','571991IVNtVi','5350302pdNHZR','Click\x20to\x20connect\x20MCP','515382vFORFT','exports'];_0x26aa=function(){return _0x1a9d37;};return _0x26aa();}
@@ -1 +1 @@
1
- 'use strict';const _0x1377ae=_0x1c05;(function(_0x565e41,_0x1893df){const _0x7ad5d0=_0x1c05,_0x59ae80=_0x565e41();while(!![]){try{const _0x11d23b=parseInt(_0x7ad5d0(0xfd))/0x1*(-parseInt(_0x7ad5d0(0xee))/0x2)+-parseInt(_0x7ad5d0(0x10b))/0x3*(-parseInt(_0x7ad5d0(0xf3))/0x4)+-parseInt(_0x7ad5d0(0x103))/0x5+parseInt(_0x7ad5d0(0x10f))/0x6+-parseInt(_0x7ad5d0(0xe0))/0x7*(parseInt(_0x7ad5d0(0xf6))/0x8)+-parseInt(_0x7ad5d0(0xf5))/0x9+-parseInt(_0x7ad5d0(0x100))/0xa*(-parseInt(_0x7ad5d0(0xe1))/0xb);if(_0x11d23b===_0x1893df)break;else _0x59ae80['push'](_0x59ae80['shift']());}catch(_0x4d7979){_0x59ae80['push'](_0x59ae80['shift']());}}}(_0x3459,0xae8f9));function _0x1c05(_0x143be3,_0x4799b0){_0x143be3=_0x143be3-0xdd;const _0x34596c=_0x3459();let _0x1c050f=_0x34596c[_0x143be3];return _0x1c050f;}const n={'mcpStatus':{'disconnected':'MCP\x20Đã\x20ngắt\x20kết\x20nối','connecting':_0x1377ae(0x111),'connected':_0x1377ae(0xea),'failed':_0x1377ae(0x10e),'retrying':_0x1377ae(0x109),'unknown':_0x1377ae(0xe9),'unauthorized':_0x1377ae(0x104),'sessionOccupied':'MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','networkError':'MCP:\x20Lỗi\x20mạng','maxRetriesExceeded':_0x1377ae(0xfb),'clickToConnect':_0x1377ae(0xe5),'clickToConfigure':_0x1377ae(0xdf)},'mcpConfig':{'title':_0x1377ae(0xe8),'description':_0x1377ae(0xed),'apiKey':_0x1377ae(0xfc),'apiKeyPlaceholder':'Nhập\x20khóa\x20API\x20của\x20bạn','apiKeyHint':_0x1377ae(0xdd),'enableAuth':'Bật\x20xác\x20thực','enableAuthHint':_0x1377ae(0xe4),'connectionInfo':_0x1377ae(0xe7),'mcpClientConfig':_0x1377ae(0xe7),'configInstructions':_0x1377ae(0xf0),'configStepTitle':_0x1377ae(0xf9),'configStep1':'Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','configStep2':_0x1377ae(0xf8),'configStep3':_0x1377ae(0xde),'sessionId':_0x1377ae(0x102),'sessionIdDescription':_0x1377ae(0x10c),'authorizationDescription':_0x1377ae(0xec),'configParameters':_0x1377ae(0x10a),'maxRetries':_0x1377ae(0xf4),'save':_0x1377ae(0x10d),'saving':'Đang\x20lưu...','note1':'Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','note2':_0x1377ae(0xf7),'configSaved':_0x1377ae(0x107),'configError':_0x1377ae(0x108),'apiApplyInfo':{'title':_0x1377ae(0xf1),'description':_0x1377ae(0xe2),'univerAiLabel':'Bảng\x20điều\x20khiển\x20Univer\x20AI','getStarted':_0x1377ae(0xe3)},'validation':{'apiKeyRequired':_0x1377ae(0xf2),'apiKeyTooShort':_0x1377ae(0xff),'invalidConfig':_0x1377ae(0xeb),'invalidApiKey':_0x1377ae(0x106)},'connectionStatus':{'disconnected':'Đã\x20ngắt\x20kết\x20nối','connecting':_0x1377ae(0xfe),'connected':'Đã\x20kết\x20nối','failed':_0x1377ae(0x101),'retrying':'Đang\x20thử\x20lại...'},'connectionError':{'unauthorized':_0x1377ae(0xfa),'sessionOccupied':_0x1377ae(0x110),'networkError':_0x1377ae(0xe6),'maxRetriesExceeded':_0x1377ae(0x105)}}};module[_0x1377ae(0xef)]=n;function _0x3459(){const _0x40c90c=['exports','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Khóa\x20API\x20là\x20gì?','Yêu\x20cầu\x20khóa\x20API','4nkouPu','Số\x20lần\x20thử\x20lại\x20tối\x20đa','4187538cSEdtM','4799664umsUFO','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','Các\x20bước\x20cấu\x20hình:','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Khóa\x20API','26HKPYSO','Đang\x20kết\x20nối...','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20t','31901910cAMgbx','Kết\x20nối\x20thất\x20bại','ID\x20phiên','4388335HhnTZH','MCP:\x20Không\x20được\x20phép','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Lưu\x20cấu\x20hình\x20thất\x20bại','MCP\x20Đang\x20thử\x20lại...','Tham\x20số\x20cấu\x20hình:','826797VKPcBc','Đị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.','Lưu\x20cấu\x20hình','MCP\x20Kết\x20nối\x20thất\x20bại','3118224SmocbW','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','MCP\x20Đang\x20kết\x20nối...','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','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để\x20cấu\x20hình\x20MCP','7YBUjJR','11QDsPLC','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.','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','Nhấp\x20để\x20kết\x20nối\x20MCP','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','Cấu\x20hình\x20máy\x20khách\x20MCP','Cấu\x20hình\x20MCP','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','MCP\x20Đã\x20kết\x20nối','Cấu\x20hình\x20không\x20hợp\x20lệ','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','102122gDMzQH'];_0x3459=function(){return _0x40c90c;};return _0x3459();}
1
+ 'use strict';function _0x3d20(_0x2ae56f,_0x4a6984){_0x2ae56f=_0x2ae56f-0x169;const _0x1794f3=_0x1794();let _0x3d204f=_0x1794f3[_0x2ae56f];return _0x3d204f;}const _0x272c4b=_0x3d20;(function(_0x464e72,_0xb7aca7){const _0x2e15d9=_0x3d20,_0x44c3e8=_0x464e72();while(!![]){try{const _0x4e6a6c=parseInt(_0x2e15d9(0x179))/0x1*(parseInt(_0x2e15d9(0x17a))/0x2)+parseInt(_0x2e15d9(0x184))/0x3*(parseInt(_0x2e15d9(0x180))/0x4)+-parseInt(_0x2e15d9(0x185))/0x5*(-parseInt(_0x2e15d9(0x19a))/0x6)+parseInt(_0x2e15d9(0x1a2))/0x7+-parseInt(_0x2e15d9(0x16c))/0x8*(-parseInt(_0x2e15d9(0x19e))/0x9)+parseInt(_0x2e15d9(0x18e))/0xa*(parseInt(_0x2e15d9(0x16f))/0xb)+parseInt(_0x2e15d9(0x195))/0xc*(-parseInt(_0x2e15d9(0x170))/0xd);if(_0x4e6a6c===_0xb7aca7)break;else _0x44c3e8['push'](_0x44c3e8['shift']());}catch(_0x9fe149){_0x44c3e8['push'](_0x44c3e8['shift']());}}}(_0x1794,0x5142c));const n={'mcpStatus':{'disconnected':_0x272c4b(0x192),'connecting':_0x272c4b(0x182),'connected':_0x272c4b(0x171),'failed':_0x272c4b(0x198),'retrying':_0x272c4b(0x18a),'unknown':_0x272c4b(0x19d),'unauthorized':_0x272c4b(0x17f),'sessionOccupied':_0x272c4b(0x173),'networkError':'MCP:\x20Lỗi\x20mạng','maxRetriesExceeded':'MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','clickToConnect':_0x272c4b(0x16a),'clickToConfigure':'Nhấp\x20để\x20cấu\x20hình\x20MCP'},'mcpConfig':{'title':_0x272c4b(0x172),'description':'Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','apiKey':_0x272c4b(0x196),'apiKeyPlaceholder':_0x272c4b(0x17b),'apiKeyHint':_0x272c4b(0x19f),'enableAuth':_0x272c4b(0x177),'enableAuthHint':_0x272c4b(0x199),'connectionInfo':'Cấu\x20hình\x20máy\x20khách\x20MCP','mcpClientConfig':_0x272c4b(0x187),'configInstructions':_0x272c4b(0x176),'configStepTitle':_0x272c4b(0x197),'configStep1':_0x272c4b(0x191),'configStep2':_0x272c4b(0x17c),'configStep3':_0x272c4b(0x19c),'sessionId':_0x272c4b(0x19b),'sessionIdDescription':_0x272c4b(0x175),'authorizationDescription':_0x272c4b(0x186),'configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':'Số\x20lần\x20thử\x20lại\x20tối\x20đa','save':_0x272c4b(0x17e),'saving':_0x272c4b(0x189),'note1':_0x272c4b(0x18b),'note2':_0x272c4b(0x178),'configSaved':_0x272c4b(0x190),'configError':_0x272c4b(0x1a0),'apiApplyInfo':{'title':_0x272c4b(0x174),'description':_0x272c4b(0x169),'univerAiLabel':_0x272c4b(0x16e),'getStarted':_0x272c4b(0x193)},'validation':{'apiKeyRequired':_0x272c4b(0x18f),'apiKeyTooShort':_0x272c4b(0x1a1),'invalidConfig':'Cấu\x20hình\x20không\x20hợp\x20lệ','invalidApiKey':_0x272c4b(0x17d)},'connectionStatus':{'disconnected':_0x272c4b(0x18c),'connecting':_0x272c4b(0x16b),'connected':_0x272c4b(0x16d),'failed':_0x272c4b(0x194),'retrying':'Đang\x20thử\x20lại...'},'connectionError':{'unauthorized':_0x272c4b(0x188),'sessionOccupied':_0x272c4b(0x181),'networkError':_0x272c4b(0x18d),'maxRetriesExceeded':'Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau'}}};module[_0x272c4b(0x183)]=n;function _0x1794(){const _0x2ba700=['Đang\x20kết\x20nối...','451560BEpugX','Đã\x20kết\x20nối','Bảng\x20điều\x20khiển\x20Univer\x20AI','22gxeniD','2220699gbfqNI','MCP\x20Đã\x20kết\x20nối','Cấu\x20hình\x20MCP','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','Khóa\x20API\x20là\x20gì?','Đị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.','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','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','3413AuPoHh','188GGMDFt','Nhập\x20khóa\x20API\x20của\x20bạn','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\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Lưu\x20cấu\x20hình','MCP:\x20Không\x20được\x20phép','1016ZQTtvo','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','MCP\x20Đang\x20kết\x20nối...','exports','1191BqWsHj','2699485pgJweT','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Cấu\x20hình\x20máy\x20khách\x20MCP','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Đang\x20lưu...','MCP\x20Đang\x20thử\x20lại...','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Đã\x20ngắt\x20kết\x20nối','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','2867200CWpRWh','Yêu\x20cầu\x20khóa\x20API','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','MCP\x20Đã\x20ngắt\x20kết\x20nối','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Kết\x20nối\x20thất\x20bại','108IrfGRV','Khóa\x20API','Các\x20bước\x20cấu\x20hình:','MCP\x20Kết\x20nối\x20thất\x20bại','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','6ZQXTrd','ID\x20phiên','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','36TtawfM','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Lưu\x20cấu\x20hình\x20thất\x20bại','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','766318oCdZHc','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.','Nhấp\x20để\x20kết\x20nối\x20MCP'];_0x1794=function(){return _0x2ba700;};return _0x1794();}
@@ -1 +1 @@
1
- 'use strict';function _0x2966(){const _0x4f64fa=['网络连接错误,请检查您的网络连接','MCP\x20重连中...','2488044lZHBGT','Univer\x20AI\x20控制台','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20状态未知','保存配置','MCP:\x20会话\x20ID\x20已被占用','API\x20密钥不能为空','109641hDtFkR','什么是\x20API\x20密钥?','带有\x20Bearer\x20前缀的\x20API\x20密钥。','连接失败','182661SldiDl','配置参数:','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置无效','启用身份验证以获得安全连接','配置\x20MCP\x20使用\x20AI\x20操作电子表格','将以下配置添加到您的\x20MCP\x20客户端设置中:','API\x20密钥无效,请检查密钥是否正确','865403LJjfHC','MCP:\x20网络错误','点击配置\x20MCP','连接中...','您的\x20API\x20密钥安全存储在本地存储中','启用身份验证','您的\x20API\x20密钥将在此浏览器中本地存储','超出最大重试次数,请稍后再试','1691576DELkkl','MCP\x20已断开','MCP\x20客户端配置','最大重试次数','会话\x20ID\x20已被占用,请稍后再试','配置步骤:','几秒钟内获取您的\x20API\x20密钥','72ahKqkC','1039386PndphV','5Ycyodg','配置保存成功','点击连接\x20MCP','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20连接中...','复制以下\x20JSON\x20配置','权限验证失败,请检查您的\x20API\x20密钥','exports','配置更改将立即生效','3357536fDQuXP'];_0x2966=function(){return _0x4f64fa;};return _0x2966();}function _0x5347(_0x5ab042,_0x2ce184){_0x5ab042=_0x5ab042-0x187;const _0x296626=_0x2966();let _0x5347ad=_0x296626[_0x5ab042];return _0x5347ad;}const _0x36a4be=_0x5347;(function(_0x21df4b,_0x542333){const _0x2ce2b9=_0x5347,_0x1f8b23=_0x21df4b();while(!![]){try{const _0x354083=-parseInt(_0x2ce2b9(0x19e))/0x1+-parseInt(_0x2ce2b9(0x193))/0x2+parseInt(_0x2ce2b9(0x19a))/0x3+parseInt(_0x2ce2b9(0x190))/0x4+-parseInt(_0x2ce2b9(0x1b7))/0x5*(parseInt(_0x2ce2b9(0x1b6))/0x6)+-parseInt(_0x2ce2b9(0x1a6))/0x7+parseInt(_0x2ce2b9(0x1ae))/0x8*(parseInt(_0x2ce2b9(0x1b5))/0x9);if(_0x354083===_0x542333)break;else _0x1f8b23['push'](_0x1f8b23['shift']());}catch(_0x3e5253){_0x1f8b23['push'](_0x1f8b23['shift']());}}}(_0x2966,0xce0bc));const e={'mcpStatus':{'disconnected':_0x36a4be(0x1af),'connecting':_0x36a4be(0x18b),'connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x36a4be(0x192),'unknown':_0x36a4be(0x196),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x36a4be(0x198),'networkError':_0x36a4be(0x1a7),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x36a4be(0x188),'clickToConfigure':_0x36a4be(0x1a8)},'mcpConfig':{'title':'MCP\x20配置','description':_0x36a4be(0x1a3),'apiKey':'API\x20密钥','apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x36a4be(0x1ac),'enableAuth':_0x36a4be(0x1ab),'enableAuthHint':_0x36a4be(0x1a2),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x36a4be(0x1b0),'configInstructions':_0x36a4be(0x1a4),'configStepTitle':_0x36a4be(0x1b3),'configStep1':_0x36a4be(0x18c),'configStep2':_0x36a4be(0x195),'configStep3':_0x36a4be(0x18a),'sessionId':'会话ID','sessionIdDescription':_0x36a4be(0x1a0),'authorizationDescription':_0x36a4be(0x19c),'configParameters':_0x36a4be(0x19f),'maxRetries':_0x36a4be(0x1b1),'save':_0x36a4be(0x197),'saving':'保存中...','note1':_0x36a4be(0x18f),'note2':_0x36a4be(0x1aa),'configSaved':_0x36a4be(0x187),'configError':'配置保存失败','apiApplyInfo':{'title':_0x36a4be(0x19b),'description':_0x36a4be(0x189),'univerAiLabel':_0x36a4be(0x194),'getStarted':_0x36a4be(0x1b4)},'validation':{'apiKeyRequired':_0x36a4be(0x199),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x36a4be(0x1a1),'invalidApiKey':_0x36a4be(0x1a5)},'connectionStatus':{'disconnected':'未连接','connecting':_0x36a4be(0x1a9),'connected':'已连接','failed':_0x36a4be(0x19d),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x36a4be(0x18d),'sessionOccupied':_0x36a4be(0x1b2),'networkError':_0x36a4be(0x191),'maxRetriesExceeded':_0x36a4be(0x1ad)}}};module[_0x36a4be(0x18e)]=e;
1
+ 'use strict';const _0x5b3bd7=_0x2af5;function _0x2af5(_0x12067a,_0x40d4a7){_0x12067a=_0x12067a-0xfd;const _0x132e30=_0x132e();let _0x2af541=_0x132e30[_0x12067a];return _0x2af541;}(function(_0x63277b,_0xb980ef){const _0x2b49aa=_0x2af5,_0x44571c=_0x63277b();while(!![]){try{const _0x2bc54a=-parseInt(_0x2b49aa(0x111))/0x1+-parseInt(_0x2b49aa(0x117))/0x2+parseInt(_0x2b49aa(0x12a))/0x3+parseInt(_0x2b49aa(0x100))/0x4+parseInt(_0x2b49aa(0x128))/0x5*(-parseInt(_0x2b49aa(0xfe))/0x6)+-parseInt(_0x2b49aa(0x10c))/0x7*(-parseInt(_0x2b49aa(0x12c))/0x8)+parseInt(_0x2b49aa(0x120))/0x9*(parseInt(_0x2b49aa(0x12d))/0xa);if(_0x2bc54a===_0xb980ef)break;else _0x44571c['push'](_0x44571c['shift']());}catch(_0x1dd81f){_0x44571c['push'](_0x44571c['shift']());}}}(_0x132e,0x7e108));function _0x132e(){const _0x56dc24=['带有\x20Bearer\x20前缀的\x20API\x20密钥。','启用身份验证以获得安全连接','复制以下\x20JSON\x20配置','MCP\x20客户端配置','将以下配置添加到您的\x20MCP\x20客户端设置中:','9togImq','连接失败','MCP:\x20未授权','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','API\x20密钥','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20重连中...','将配置添加到您的\x20MCP\x20客户端设置文件中','45PTtiNu','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','2023557AMpqds','您的\x20API\x20密钥安全存储在本地存储中','2881400hvxYht','2112550cPcGUa','MCP:\x20网络错误','207054MOVmYz','最大重试次数','3986940JBDJxi','未连接','exports','API\x20密钥长度至少需要\x2010\x20位','Univer\x20AI\x20控制台','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP:\x20超出最大重试次数','API\x20密钥不能为空','配置参数:','MCP\x20已断开','超出最大重试次数,请稍后再试','会话ID','7bLKnAf','请输入您的\x20API\x20密钥','配置无效','什么是\x20API\x20密钥?','几秒钟内获取您的\x20API\x20密钥','539144DwsShk','连接中...','会话\x20ID\x20已被占用,请稍后再试','MCP:\x20会话\x20ID\x20已被占用','MCP\x20配置','启用身份验证','1753198dhcFyF','配置保存失败','保存配置','重连中...'];_0x132e=function(){return _0x56dc24;};return _0x132e();}const e={'mcpStatus':{'disconnected':_0x5b3bd7(0x109),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x5b3bd7(0x126),'unknown':'MCP\x20状态未知','unauthorized':_0x5b3bd7(0x122),'sessionOccupied':_0x5b3bd7(0x114),'networkError':_0x5b3bd7(0xfd),'maxRetriesExceeded':_0x5b3bd7(0x106),'clickToConnect':'点击连接\x20MCP','clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x5b3bd7(0x115),'description':_0x5b3bd7(0x105),'apiKey':_0x5b3bd7(0x124),'apiKeyPlaceholder':_0x5b3bd7(0x10d),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x5b3bd7(0x116),'enableAuthHint':_0x5b3bd7(0x11c),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x5b3bd7(0x11e),'configInstructions':_0x5b3bd7(0x11f),'configStepTitle':'配置步骤:','configStep1':_0x5b3bd7(0x11d),'configStep2':_0x5b3bd7(0x127),'configStep3':_0x5b3bd7(0x125),'sessionId':_0x5b3bd7(0x10b),'sessionIdDescription':_0x5b3bd7(0x129),'authorizationDescription':_0x5b3bd7(0x11b),'configParameters':_0x5b3bd7(0x108),'maxRetries':_0x5b3bd7(0xff),'save':_0x5b3bd7(0x119),'saving':'保存中...','note1':'配置更改将立即生效','note2':_0x5b3bd7(0x12b),'configSaved':'配置保存成功','configError':_0x5b3bd7(0x118),'apiApplyInfo':{'title':_0x5b3bd7(0x10f),'description':_0x5b3bd7(0x123),'univerAiLabel':_0x5b3bd7(0x104),'getStarted':_0x5b3bd7(0x110)},'validation':{'apiKeyRequired':_0x5b3bd7(0x107),'apiKeyTooShort':_0x5b3bd7(0x103),'invalidConfig':_0x5b3bd7(0x10e),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x5b3bd7(0x101),'connecting':_0x5b3bd7(0x112),'connected':'已连接','failed':_0x5b3bd7(0x121),'retrying':_0x5b3bd7(0x11a)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x5b3bd7(0x113),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x5b3bd7(0x10a)}}};module[_0x5b3bd7(0x102)]=e;
@@ -1 +1 @@
1
- 'use strict';const _0x282b1a=_0x3762;(function(_0x1d0a6a,_0x39d8f6){const _0x1a0424=_0x3762,_0x1a57fe=_0x1d0a6a();while(!![]){try{const _0x12c9be=parseInt(_0x1a0424(0x15f))/0x1+-parseInt(_0x1a0424(0x165))/0x2*(-parseInt(_0x1a0424(0x15d))/0x3)+-parseInt(_0x1a0424(0x183))/0x4*(parseInt(_0x1a0424(0x15e))/0x5)+parseInt(_0x1a0424(0x184))/0x6*(-parseInt(_0x1a0424(0x186))/0x7)+parseInt(_0x1a0424(0x16f))/0x8*(parseInt(_0x1a0424(0x178))/0x9)+parseInt(_0x1a0424(0x163))/0xa*(parseInt(_0x1a0424(0x173))/0xb)+-parseInt(_0x1a0424(0x168))/0xc;if(_0x12c9be===_0x39d8f6)break;else _0x1a57fe['push'](_0x1a57fe['shift']());}catch(_0x3d8046){_0x1a57fe['push'](_0x1a57fe['shift']());}}}(_0x2b66,0x27e73));const e={'mcpStatus':{'disconnected':_0x282b1a(0x17f),'connecting':'MCP\x20Connecting...','connected':_0x282b1a(0x179),'failed':'MCP\x20Connection\x20Failed','retrying':_0x282b1a(0x187),'unknown':_0x282b1a(0x188),'unauthorized':_0x282b1a(0x16e),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x282b1a(0x174),'maxRetriesExceeded':_0x282b1a(0x16b),'clickToConnect':_0x282b1a(0x182),'clickToConfigure':_0x282b1a(0x162)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x282b1a(0x189),'apiKeyPlaceholder':_0x282b1a(0x17a),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x282b1a(0x18d),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x282b1a(0x176),'configStepTitle':_0x282b1a(0x17c),'configStep1':_0x282b1a(0x17d),'configStep2':_0x282b1a(0x166),'configStep3':_0x282b1a(0x177),'sessionId':'Session\x20ID','sessionIdDescription':_0x282b1a(0x180),'authorizationDescription':_0x282b1a(0x170),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x282b1a(0x16d),'saving':_0x282b1a(0x18c),'note1':_0x282b1a(0x160),'note2':_0x282b1a(0x18e),'configSaved':_0x282b1a(0x18f),'configError':_0x282b1a(0x17e),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x282b1a(0x169),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x282b1a(0x161),'apiKeyTooShort':_0x282b1a(0x185),'invalidConfig':_0x282b1a(0x16a),'invalidApiKey':_0x282b1a(0x164)},'connectionStatus':{'disconnected':_0x282b1a(0x18a),'connecting':'Connecting...','connected':_0x282b1a(0x18b),'failed':_0x282b1a(0x167),'retrying':_0x282b1a(0x171)},'connectionError':{'unauthorized':_0x282b1a(0x172),'sessionOccupied':_0x282b1a(0x17b),'networkError':_0x282b1a(0x16c),'maxRetriesExceeded':_0x282b1a(0x175)}}},n=e;function _0x3762(_0x44436d,_0xecb4d8){_0x44436d=_0x44436d-0x15d;const _0x2b66f7=_0x2b66();let _0x3762ca=_0x2b66f7[_0x44436d];return _0x3762ca;}function _0x2b66(){const _0x206d07=['Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','exports','Click\x20to\x20connect\x20MCP','73688VSINMC','1173138fSBBWB','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','7GmclUf','MCP\x20Retrying...','MCP\x20Unknown\x20Status','API\x20Key','Disconnected','Connected','Saving...','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20saved\x20successfully','26349QZIgsm','40YiGhyG','91309vWiler','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','10ZuiyOe','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','68aAzrXJ','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connection\x20Failed','4547268ShAUgz','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Save\x20Configuration','MCP:\x20Unauthorized','1348968yRgBib','API\x20key\x20with\x20Bearer\x20prefix.','Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','3594019RfAsfR','MCP:\x20Network\x20Error','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','9ZSYlvk','MCP\x20Connected','Enter\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20Steps:','Copy\x20the\x20JSON\x20configuration\x20below','Failed\x20to\x20save\x20configuration','MCP\x20Disconnected'];_0x2b66=function(){return _0x206d07;};return _0x2b66();}module[_0x282b1a(0x181)]=n;
1
+ 'use strict';const _0x22d4f7=_0x3582;(function(_0x336eef,_0x155aea){const _0x4a37a6=_0x3582,_0x1a7f32=_0x336eef();while(!![]){try{const _0x1606c9=parseInt(_0x4a37a6(0x17d))/0x1+-parseInt(_0x4a37a6(0x194))/0x2+parseInt(_0x4a37a6(0x1a5))/0x3*(-parseInt(_0x4a37a6(0x187))/0x4)+-parseInt(_0x4a37a6(0x1a2))/0x5*(parseInt(_0x4a37a6(0x17b))/0x6)+parseInt(_0x4a37a6(0x180))/0x7+parseInt(_0x4a37a6(0x1a1))/0x8*(parseInt(_0x4a37a6(0x1a4))/0x9)+parseInt(_0x4a37a6(0x17a))/0xa;if(_0x1606c9===_0x155aea)break;else _0x1a7f32['push'](_0x1a7f32['shift']());}catch(_0xcc3b3e){_0x1a7f32['push'](_0x1a7f32['shift']());}}}(_0xf7ca,0x9a2de));function _0x3582(_0x39c5f9,_0x1ec986){_0x39c5f9=_0x39c5f9-0x177;const _0xf7caf2=_0xf7ca();let _0x358256=_0xf7caf2[_0x39c5f9];return _0x358256;}function _0xf7ca(){const _0x454178=['exports','252MReXgr','Connected','Max\x20Retries','Univer\x20AI\x20Console','MCP\x20Disconnected','Save\x20Configuration','Configuration\x20Parameters:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','Failed\x20to\x20save\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','1099450uyYgog','Invalid\x20configuration','Configuration\x20saved\x20successfully','Connection\x20Failed','MCP\x20Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session\x20ID','Click\x20to\x20connect\x20MCP','Disconnected','2143984QiqPCr','28235ArrPEq','Saving...','27nxVmqy','2658XAjytj','MCP:\x20Network\x20Error','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Configuration','MCP\x20Connecting...','MCP\x20Client\x20Configuration','API\x20Key','5482820sxQhHz','1146IbkmlA','MCP\x20Unknown\x20Status','234160iaDBJv','Enable\x20Authentication','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','5104414PnfpPt','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20is\x20required','MCP\x20Retrying...'];_0xf7ca=function(){return _0x454178;};return _0xf7ca();}const e={'mcpStatus':{'disconnected':_0x22d4f7(0x18b),'connecting':_0x22d4f7(0x177),'connected':_0x22d4f7(0x198),'failed':'MCP\x20Connection\x20Failed','retrying':_0x22d4f7(0x185),'unknown':_0x22d4f7(0x17c),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x22d4f7(0x19a),'networkError':_0x22d4f7(0x1a6),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x22d4f7(0x19f),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x22d4f7(0x1a9),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x22d4f7(0x179),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x22d4f7(0x182),'enableAuth':_0x22d4f7(0x17e),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x22d4f7(0x178),'mcpClientConfig':_0x22d4f7(0x178),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x22d4f7(0x181),'configStep1':_0x22d4f7(0x190),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x22d4f7(0x183),'sessionId':_0x22d4f7(0x19e),'sessionIdDescription':_0x22d4f7(0x199),'authorizationDescription':_0x22d4f7(0x1a7),'configParameters':_0x22d4f7(0x18d),'maxRetries':_0x22d4f7(0x189),'save':_0x22d4f7(0x18c),'saving':_0x22d4f7(0x1a3),'note1':_0x22d4f7(0x1a8),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x22d4f7(0x196),'configError':_0x22d4f7(0x191),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x22d4f7(0x18e),'univerAiLabel':_0x22d4f7(0x18a),'getStarted':_0x22d4f7(0x193)},'validation':{'apiKeyRequired':_0x22d4f7(0x184),'apiKeyTooShort':_0x22d4f7(0x17f),'invalidConfig':_0x22d4f7(0x195),'invalidApiKey':_0x22d4f7(0x19b)},'connectionStatus':{'disconnected':_0x22d4f7(0x1a0),'connecting':'Connecting...','connected':_0x22d4f7(0x188),'failed':_0x22d4f7(0x197),'retrying':_0x22d4f7(0x19c)},'connectionError':{'unauthorized':_0x22d4f7(0x19d),'sessionOccupied':_0x22d4f7(0x192),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x22d4f7(0x18f)}}},n=e;module[_0x22d4f7(0x186)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x558f55=_0x294f;(function(_0x18df5a,_0x302900){const _0x17ef3d=_0x294f,_0x1965bd=_0x18df5a();while(!![]){try{const _0x20fdf5=parseInt(_0x17ef3d(0x1b4))/0x1+-parseInt(_0x17ef3d(0xe6))/0x2*(parseInt(_0x17ef3d(0xff))/0x3)+-parseInt(_0x17ef3d(0x177))/0x4+parseInt(_0x17ef3d(0x158))/0x5*(-parseInt(_0x17ef3d(0x150))/0x6)+parseInt(_0x17ef3d(0x11e))/0x7+parseInt(_0x17ef3d(0x17c))/0x8*(parseInt(_0x17ef3d(0x1ab))/0x9)+-parseInt(_0x17ef3d(0x141))/0xa;if(_0x20fdf5===_0x302900)break;else _0x1965bd['push'](_0x1965bd['shift']());}catch(_0x3dc407){_0x1965bd['push'](_0x1965bd['shift']());}}}(_0x560f,0xa6904));var Pe=Object[_0x558f55(0x123)],Ee=(_0x14739b,_0x13398a,_0x33ff39)=>_0x13398a in _0x14739b?Pe(_0x14739b,_0x13398a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33ff39}):_0x14739b[_0x13398a]=_0x33ff39,x=(_0x4751d3,_0x13e81b,_0x5c647b)=>Ee(_0x4751d3,typeof _0x13e81b!='symbol'?_0x13e81b+'':_0x13e81b,_0x5c647b);import{LocaleService as _0x273534,Inject as _0x3315f7,Injector as _0x435606,IConfigService as _0x7da071,ILocalStorageService as _0x12cbba,ILogService as _0x455acc,Disposable as _0x4cdc5b,CommandType as _0x5e7004,ICommandService as _0xe14675,DependentOn as _0x33f517,Plugin as _0x372ece,merge as _0x3b1109}from'@univerjs/core';import{jsxs as _0x36e757,jsx as _0x27bfa9}from'react/jsx-runtime';import{MCPConnectionStatus as _0x3f09ea,MCPConnectionError as _0x25c6b5,MCPConnectionController as _0x1eede4,MCP_PLUGIN_CONFIG_KEY as _0x470c2b,UniverMCPPlugin as _0x385702}from'@univerjs-pro/mcp';import{clsx as _0x1b798e,Input as _0xef237d,Button as _0x4d22c1,MessageType as _0x90164d,Tooltip as _0x380876}from'@univerjs/design';import{useDependency as _0x7d0c3e,useObservable as _0x5403c9,IUIPartsService as _0x5537a7,IDialogService as _0x45f456,IMessageService as _0x35098f,ComponentManager as _0x2c0d67,connectInjector as _0x510a8f,BuiltInUIPart as _0x534a3e,MenuItemType as _0x855c7,RibbonStartGroup as _0x577d0c,IMenuManagerService as _0x9ece4}from'@univerjs/ui';import{BehaviorSubject as _0x42503e}from'rxjs';import{useRef as _0x44c1cf,createElement as _0x171191,forwardRef as _0x54d61b,useState as _0x1a5eb2,useCallback as _0x5a84f6}from'react';import{ISocketService as _0x8a3f06,WebSocketService as _0x5b6021}from'@univerjs/network';function b({ref:_0x4a4ef9,..._0x43cde8}){const _0xc7bc5=_0x558f55,{icon:_0x2d6ce3,id:_0x2bf44f,className:_0x218409,extend:_0x3cb76b,..._0x4d4fbf}=_0x43cde8,_0x3fc863=(_0xc7bc5(0x1ad)+_0x2bf44f+'\x20'+(_0x218409||''))[_0xc7bc5(0xfb)](),_0x5c7a7e=_0x44c1cf('_'+We());return ae(_0x2d6ce3,''+_0x2bf44f,{'defIds':_0x2d6ce3['defIds'],'idSuffix':_0x5c7a7e['current']},{'ref':_0x4a4ef9,'className':_0x3fc863,..._0x4d4fbf},_0x3cb76b);}function ae(_0x1cb688,_0x463e80,_0xe8f786,_0x260dc5,_0x5277bd){const _0x4b0dce=_0x558f55;return _0x171191(_0x1cb688[_0x4b0dce(0x1f4)],{'key':_0x463e80,...Ye(_0x1cb688,_0xe8f786,_0x5277bd),..._0x260dc5},(Ze(_0x1cb688,_0xe8f786)[_0x4b0dce(0x16e)]||[])[_0x4b0dce(0x179)]((_0x54cfd8,_0x288e7f)=>ae(_0x54cfd8,_0x463e80+'-'+_0x1cb688[_0x4b0dce(0x1f4)]+'-'+_0x288e7f,_0xe8f786,void 0x0,_0x5277bd)));}function Ye(_0x3acb1d,_0x469958,_0x1ed7cb){const _0x7d8089=_0x558f55,_0xfd31d1={..._0x3acb1d[_0x7d8089(0x10d)]};_0x1ed7cb!=null&&_0x1ed7cb[_0x7d8089(0x195)]&&_0xfd31d1[_0x7d8089(0x14b)]===_0x7d8089(0x195)&&(_0xfd31d1[_0x7d8089(0x14b)]=_0x1ed7cb['colorChannel1']),_0x3acb1d[_0x7d8089(0x1f4)]===_0x7d8089(0x1fe)&&_0xfd31d1['id']&&(_0xfd31d1['id']=_0xfd31d1['id']+_0x469958['idSuffix']),Object[_0x7d8089(0xd0)](_0xfd31d1)[_0x7d8089(0x18e)](([_0x3cf652,_0x265f9b])=>{const _0x220acf=_0x7d8089;_0x3cf652===_0x220acf(0x1fe)&&typeof _0x265f9b==_0x220acf(0x19d)&&(_0xfd31d1[_0x3cf652]=_0x265f9b[_0x220acf(0x19f)](/url\(#(.*)\)/,_0x220acf(0xb9)+_0x469958[_0x220acf(0x168)]+')'));});const {defIds:_0x51ee31}=_0x469958;return!_0x51ee31||_0x51ee31[_0x7d8089(0x125)]===0x0||(_0x3acb1d[_0x7d8089(0x1f4)]==='use'&&_0xfd31d1['xlink:href']&&(_0xfd31d1[_0x7d8089(0x1c4)]=_0xfd31d1[_0x7d8089(0x1c4)]+_0x469958[_0x7d8089(0x168)]),Object[_0x7d8089(0xd0)](_0xfd31d1)[_0x7d8089(0x18e)](([_0x5acb30,_0x33a476])=>{const _0x574d26=_0x7d8089;typeof _0x33a476==_0x574d26(0x19d)&&(_0xfd31d1[_0x5acb30]=_0x33a476['replace'](/url\(#(.*)\)/,_0x574d26(0xb9)+_0x469958[_0x574d26(0x168)]+')'));})),_0xfd31d1;}function Ze(_0x18b7ea,_0x456754){const _0x522975=_0x558f55;var _0x1887b8;const {defIds:_0x3bf142}=_0x456754;return!_0x3bf142||_0x3bf142[_0x522975(0x125)]===0x0?_0x18b7ea:_0x18b7ea[_0x522975(0x1f4)]===_0x522975(0x1fb)&&((_0x1887b8=_0x18b7ea[_0x522975(0x16e)])!=null&&_0x1887b8[_0x522975(0x125)])?{..._0x18b7ea,'children':_0x18b7ea[_0x522975(0x16e)][_0x522975(0x179)](_0x538440=>typeof _0x538440[_0x522975(0x10d)]['id']==_0x522975(0x19d)&&_0x3bf142&&_0x3bf142[_0x522975(0x18a)](_0x538440[_0x522975(0x10d)]['id'])?{..._0x538440,'attrs':{..._0x538440[_0x522975(0x10d)],'id':_0x538440[_0x522975(0x10d)]['id']+_0x456754[_0x522975(0x168)]}}:_0x538440)}:_0x18b7ea;}function We(){const _0x13dc6d=_0x558f55;return Math[_0x13dc6d(0x185)]()[_0x13dc6d(0x17d)](0x24)[_0x13dc6d(0x1e1)](0x2,0x8);}b[_0x558f55(0xfc)]=_0x558f55(0x153);const qe={'tag':_0x558f55(0xe4),'attrs':{'xmlns':_0x558f55(0x113),'fill':_0x558f55(0x148),'viewBox':_0x558f55(0x1fc),'width':_0x558f55(0x19c),'height':_0x558f55(0x19c)},'children':[{'tag':_0x558f55(0xc5),'attrs':{'fill':_0x558f55(0x1e9),'d':_0x558f55(0x13c),'fillRule':_0x558f55(0x191),'clipRule':'evenodd'}}]},le=_0x54d61b(function(_0x2799f7,_0x35d5b0){const _0x1f388c=_0x558f55;return _0x171191(b,Object[_0x1f388c(0x1b2)]({},_0x2799f7,{'id':_0x1f388c(0x1e5),'ref':_0x35d5b0,'icon':qe}));});function _0x294f(_0x328d5e,_0x37a853){_0x328d5e=_0x328d5e-0xae;const _0x560f56=_0x560f();let _0x294f4b=_0x560f56[_0x328d5e];return _0x294f4b;}le[_0x558f55(0xfc)]=_0x558f55(0xc1);const Xe={'tag':'svg','attrs':{'xmlns':_0x558f55(0x113),'fill':_0x558f55(0x148),'viewBox':_0x558f55(0x1fc),'width':_0x558f55(0x19c),'height':_0x558f55(0x19c)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x558f55(0xb0)}}]},ue=_0x54d61b(function(_0x31bf49,_0x4e5e24){const _0x37f141=_0x558f55;return _0x171191(b,Object[_0x37f141(0x1b2)]({},_0x31bf49,{'id':'close-icon','ref':_0x4e5e24,'icon':Xe}));});ue[_0x558f55(0xfc)]='CloseIcon';const Je={'tag':_0x558f55(0xe4),'attrs':{'xmlns':_0x558f55(0x113),'fill':_0x558f55(0x148),'viewBox':'0\x200\x2016\x2016','width':_0x558f55(0x19c),'height':_0x558f55(0x19c)},'children':[{'tag':_0x558f55(0xc5),'attrs':{'fill':'currentColor','d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':'path','attrs':{'fill':_0x558f55(0x1e9),'d':_0x558f55(0x10c)}},{'tag':'path','attrs':{'fill':_0x558f55(0x1e9),'d':_0x558f55(0xd7),'fillRule':_0x558f55(0x191),'clipRule':_0x558f55(0x191)}}]},ve=_0x54d61b(function(_0xc77a37,_0x285641){const _0x203cc1=_0x558f55;return _0x171191(b,Object[_0x203cc1(0x1b2)]({},_0xc77a37,{'id':_0x203cc1(0x1f5),'ref':_0x285641,'icon':Je}));});ve[_0x558f55(0xfc)]='HelpIcon';const Qe={'tag':_0x558f55(0xe4),'attrs':{'xmlns':_0x558f55(0x113),'fill':_0x558f55(0x148),'viewBox':_0x558f55(0x1fc),'width':_0x558f55(0x19c),'height':_0x558f55(0x19c)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x558f55(0xc5),'attrs':{'stroke':_0x558f55(0x1e9),'d':_0x558f55(0xcf),'strokeLinecap':_0x558f55(0x1fd),'strokeLinejoin':_0x558f55(0x1fd),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x558f55(0x1e8),'attrs':{'id':_0x558f55(0xae)},'children':[{'tag':'path','attrs':{'fill':_0x558f55(0x1a6),'d':_0x558f55(0x19a)}}]}]}],'defIds':[_0x558f55(0xae)]},de=_0x54d61b(function(_0x48f2c0,_0xf45081){const _0x359331=_0x558f55;return _0x171191(b,Object['assign']({},_0x48f2c0,{'id':_0x359331(0x1f2),'ref':_0xf45081,'icon':Qe}));});de[_0x558f55(0xfc)]=_0x558f55(0x1dc);const en={'tag':_0x558f55(0xe4),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x558f55(0x148),'viewBox':_0x558f55(0x181),'width':_0x558f55(0x19c),'height':_0x558f55(0x19c)},'children':[{'tag':'g','attrs':{'clipPath':_0x558f55(0x1b6)},'children':[{'tag':_0x558f55(0xc5),'attrs':{'stroke':'currentColor','d':_0x558f55(0xd9),'strokeLinecap':'round','strokeLinejoin':_0x558f55(0x1fd),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x558f55(0x1e8),'attrs':{'id':_0x558f55(0x16d)},'children':[{'tag':_0x558f55(0xc5),'attrs':{'fill':'white','d':_0x558f55(0x19a),'transform':_0x558f55(0xfd)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x54d61b(function(_0x436f68,_0x137744){const _0x1edf20=_0x558f55;return _0x171191(b,Object[_0x1edf20(0x1b2)]({},_0x436f68,{'id':_0x1edf20(0x163),'ref':_0x137744,'icon':en}));});ge[_0x558f55(0xfc)]=_0x558f55(0xaf);function nn(_0xa6f07c){const _0x3b9ff1=_0x558f55;var _0x1143ae,_0x546e23;const {mcpCoreConfig:_0xf62895,onSave:_0x54524a,loading:_0xee9e1e=!0x1,config:_0x2fecaf,connectionStatus$:_0x4ad044,connectionError$:_0x2db15d,currentApiKey$:_0x5a1368,currentSessionId$:_0x328e39}=_0xa6f07c,_0x545c7b=_0x7d0c3e(_0x273534),_0x5b290c=_0x5403c9(_0x4ad044,_0x3f09ea['DISCONNECTED']),_0x5d041d=_0x5403c9(_0x2db15d,_0x25c6b5['NONE']),_0x196c3f=_0x5403c9(_0x328e39,''),_0x402702=_0x5403c9(_0x5a1368,''),[_0x26cf65,_0x173f25]=_0x1a5eb2(_0x402702||''),_0x436f1e=!0x0,_0x17c46c=_0x2fecaf[_0x3b9ff1(0x1e3)]&&_0xf62895[_0x3b9ff1(0x1d3)]&&(_0xf62895[_0x3b9ff1(0x1d3)][_0x3b9ff1(0x18a)](_0x3b9ff1(0xb2))||_0xf62895[_0x3b9ff1(0x1d3)]['includes'](_0x3b9ff1(0xec))),_0x487a9e=(_0x1143ae=_0xf62895['mcpServerUrl'])==null?void 0x0:_0x1143ae[_0x3b9ff1(0x18a)](_0x3b9ff1(0xb2)),_0x2aa390=(_0x546e23=_0xf62895['mcpServerUrl'])==null?void 0x0:_0x546e23[_0x3b9ff1(0x18a)]('univer.ai'),_0x593e48=_0x487a9e?_0x3b9ff1(0x119):_0x3b9ff1(0x15d),_0x30b6a3=_0x2fecaf[_0x3b9ff1(0x1e3)]&&(_0x487a9e||_0x2aa390),[_0x375981,_0x42dd95]=_0x1a5eb2(!_0x26cf65[_0x3b9ff1(0xfb)]()),_0x46abce=(_0x432f81,_0x35ecd4)=>{const _0x1e7079=_0x3b9ff1;if(_0x35ecd4===_0x25c6b5[_0x1e7079(0x17b)])return _0x1e7079(0x143);switch(_0x432f81){case _0x3f09ea[_0x1e7079(0xb1)]:return _0x1e7079(0x169);case _0x3f09ea[_0x1e7079(0x194)]:case _0x3f09ea['RETRYING']:return _0x1e7079(0x137);case _0x3f09ea[_0x1e7079(0x164)]:return _0x1e7079(0x143);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x4e699a=(_0x5dd47a,_0xad69f1)=>{const _0x15db68=_0x3b9ff1;if(_0xad69f1===_0x25c6b5['UNAUTHORIZED'])return _0x15db68(0x1f9);switch(_0x5dd47a){case _0x3f09ea['CONNECTED']:return _0x15db68(0x14a);case _0x3f09ea[_0x15db68(0x194)]:case _0x3f09ea[_0x15db68(0xc4)]:return'univer-bg-blue-500';case _0x3f09ea[_0x15db68(0x164)]:return _0x15db68(0x1f9);default:return _0x15db68(0xed);}},_0x4fd7c2=_0x6ff742=>{const _0x2f4e09=_0x3b9ff1;switch(_0x6ff742){case _0x3f09ea[_0x2f4e09(0xb1)]:return _0x545c7b['t'](_0x2f4e09(0xc7));case _0x3f09ea[_0x2f4e09(0x194)]:return _0x545c7b['t']('mcpConfig.connectionStatus.connecting');case _0x3f09ea['FAILED']:return _0x545c7b['t']('mcpConfig.connectionStatus.failed');case _0x3f09ea[_0x2f4e09(0xc4)]:return _0x545c7b['t'](_0x2f4e09(0x1b5));default:return _0x545c7b['t']('mcpConfig.connectionStatus.disconnected');}},_0x3c6d57=_0x1d4e56=>{const _0x6057cd=_0x3b9ff1;switch(_0x1d4e56){case _0x25c6b5[_0x6057cd(0x17b)]:return _0x545c7b['t'](_0x6057cd(0x178));case _0x25c6b5['SESSION_ID_OCCUPIED']:return _0x545c7b['t'](_0x6057cd(0x117));case _0x25c6b5[_0x6057cd(0xb3)]:return _0x545c7b['t'](_0x6057cd(0x1e0));case _0x25c6b5['MAX_RETRIES_EXCEEDED']:return _0x545c7b['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x2cc651=_0x5a84f6(()=>{const _0x6047a6=_0x3b9ff1,_0x19c240={..._0xf62895,'apiKey':_0x26cf65[_0x6047a6(0xfb)](),'enableAuth':_0x436f1e};_0x54524a(_0x19c240);},[_0xf62895,_0x26cf65,_0x436f1e,_0x54524a]),_0x340c07=_0x26cf65[_0x3b9ff1(0xfb)]()[_0x3b9ff1(0x125)]>0x0;return _0x36e757(_0x3b9ff1(0x11a),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x131),'children':_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x193),'children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x1e7),'children':_0x27bfa9(_0x3b9ff1(0x11f),{'className':_0x3b9ff1(0x105),'children':'⚙'})}),_0x27bfa9('div',{'children':_0x27bfa9('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x545c7b['t'](_0x3b9ff1(0x1a9))})})]})}),_0x36e757('div',{'className':_0x3b9ff1(0x1b8),'children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x1b798e(_0x3b9ff1(0x162),_0x46abce(_0x5b290c,_0x5d041d)),'children':_0x36e757('div',{'className':_0x3b9ff1(0xc9),'children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x1b798e(_0x3b9ff1(0xe0),_0x4e699a(_0x5b290c,_0x5d041d))}),_0x27bfa9(_0x3b9ff1(0x11f),{'className':_0x3b9ff1(0x114),'children':_0x4fd7c2(_0x5b290c)})]})}),_0x5d041d!==_0x25c6b5['NONE']&&(_0x5b290c===_0x3f09ea['FAILED']||_0x5d041d===_0x25c6b5[_0x3b9ff1(0x17b)])&&_0x27bfa9(_0x3b9ff1(0x11a),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x36e757('div',{'className':_0x3b9ff1(0x151),'children':[_0x27bfa9('span',{'className':_0x3b9ff1(0xde),'children':'⚠️'}),_0x27bfa9('p',{'className':_0x3b9ff1(0x102),'children':_0x3c6d57(_0x5d041d)})]})})]}),_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x1a1),'children':_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x100),'children':[_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0xc2),'children':[_0x36e757('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x27bfa9(_0x3b9ff1(0x11f),{'children':'🔑'}),'\x20',_0x545c7b['t'](_0x3b9ff1(0x14d)),_0x27bfa9(_0x3b9ff1(0x11f),{'className':_0x3b9ff1(0x1c2),'children':'*'}),_0x17c46c&&_0x27bfa9('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':_0x545c7b['t'](_0x3b9ff1(0x129)),'role':'button','onClick':()=>_0x42dd95(!0x0),'children':_0x27bfa9(ve,{})})]}),_0x27bfa9(_0xef237d,{'type':'text','placeholder':_0x545c7b['t'](_0x3b9ff1(0x156)),'value':_0x26cf65,'disabled':_0xee9e1e,'autoComplete':_0x3b9ff1(0x198),'onChange':_0x173f25}),_0x27bfa9('p',{'className':_0x3b9ff1(0x19e),'children':_0x545c7b['t']('mcpConfig.apiKeyHint')})]}),_0x17c46c&&_0x375981&&_0x36e757('div',{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x27bfa9('a',{'className':_0x3b9ff1(0x1d9),'role':_0x3b9ff1(0x13a),'onClick':()=>_0x42dd95(!0x1),'children':_0x27bfa9(ue,{'className':_0x3b9ff1(0xef)})}),_0x36e757(_0x3b9ff1(0x11a),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x13f),'children':_0x27bfa9('span',{'className':_0x3b9ff1(0xe9),'children':'🚀'})}),_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0xf2),'children':[_0x27bfa9('h4',{'className':_0x3b9ff1(0xe8),'children':_0x545c7b['t'](_0x3b9ff1(0x129))}),_0x27bfa9('p',{'className':_0x3b9ff1(0x103),'children':_0x545c7b['t'](_0x3b9ff1(0x197))}),_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x12f),'children':_0x30b6a3&&_0x36e757('a',{'className':_0x3b9ff1(0x196),'href':_0x593e48,'target':_0x3b9ff1(0xdd),'rel':_0x3b9ff1(0x15b),'children':[_0x27bfa9('span',{'children':'🤖'}),_0x545c7b['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x27bfa9(_0x3b9ff1(0x11f),{'className':_0x3b9ff1(0x139),'children':'↗'})]})}),_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x1ac),'children':['✨','\x20',_0x545c7b['t'](_0x3b9ff1(0xc8))]})]})]})]}),_0x2fecaf[_0x3b9ff1(0x1e3)]&&_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x192),'children':[_0x36e757('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x27bfa9('span',{'children':'🔗'}),'\x20',_0x545c7b['t']('mcpConfig.connectionInfo')]}),_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x175),'children':[_0x36e757('div',{'className':_0x3b9ff1(0x1a7),'children':[_0x27bfa9('p',{'className':_0x3b9ff1(0x1a8),'children':_0x545c7b['t'](_0x3b9ff1(0x136))}),_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0xc2),'children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x545c7b['t']('mcpConfig.configStepTitle')}),_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x1d4),'children':[_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0xc9),'children':[_0x27bfa9(_0x3b9ff1(0x11f),{'className':_0x3b9ff1(0x106),'children':'1'}),_0x545c7b['t'](_0x3b9ff1(0x15e))]}),_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0xc9),'children':[_0x27bfa9(_0x3b9ff1(0x11f),{'className':_0x3b9ff1(0x106),'children':'2'}),_0x545c7b['t'](_0x3b9ff1(0x138))]}),_0x36e757(_0x3b9ff1(0x11a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x27bfa9(_0x3b9ff1(0x11f),{'className':_0x3b9ff1(0x106),'children':'3'}),_0x545c7b['t']('mcpConfig.configStep3')]})]})]})]}),_0x36e757(_0x3b9ff1(0x11a),{'className':'univer-space-y-2','children':[_0x27bfa9('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3b9ff1(0xe1)}),_0x27bfa9('div',{'className':_0x3b9ff1(0xf1),'children':_0x27bfa9(_0x3b9ff1(0x16a),{'className':_0x3b9ff1(0x132),'children':JSON[_0x3b9ff1(0x157)]({'mcpServers':{'univer':{'url':_0x3b9ff1(0x15c)+(_0x196c3f||_0x3b9ff1(0x1f0)),'type':'http','headers':{'Authorization':_0x3b9ff1(0x186)+(_0x26cf65||_0x3b9ff1(0xf0))}}}},null,0x2)})})]}),_0x36e757('div',{'className':'univer-space-y-3','children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0xbd),'children':_0x545c7b['t']('mcpConfig.configParameters')}),_0x36e757(_0x3b9ff1(0x11a),{'className':'univer-space-y-2','children':[_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x149),'children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x1ae)}),_0x36e757('div',{'className':_0x3b9ff1(0x180),'children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x1db),'children':'univer_session_id:'}),_0x27bfa9(_0x3b9ff1(0x11a),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x545c7b['t'](_0x3b9ff1(0x160))})]})]}),_0x36e757(_0x3b9ff1(0x11a),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x180),'children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x3b9ff1(0xbc)}),_0x27bfa9('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x545c7b['t'](_0x3b9ff1(0x1ca))})]})]})]})]})]})]}),_0x27bfa9(_0x4d22c1,{'onClick':_0x2cc651,'disabled':!_0x340c07||_0xee9e1e,'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':_0xee9e1e?_0x36e757('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x27bfa9(_0x3b9ff1(0x11f),{'children':'⟲'}),_0x545c7b['t'](_0x3b9ff1(0xce))]}):_0x36e757('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x27bfa9(le,{}),_0x545c7b['t'](_0x3b9ff1(0x1d2))]})}),_0x27bfa9('div',{'className':_0x3b9ff1(0x10a),'children':_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x1c7),'children':[_0x27bfa9(_0x3b9ff1(0x11f),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x36e757(_0x3b9ff1(0x11a),{'className':_0x3b9ff1(0x13e),'children':[_0x27bfa9(_0x3b9ff1(0x11a),{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),_0x36e757(_0x3b9ff1(0x11a),{'children':['•',_0x545c7b['t'](_0x3b9ff1(0x189))]}),_0x36e757(_0x3b9ff1(0x11a),{'children':['•',_0x545c7b['t'](_0x3b9ff1(0x1f1))]})]})]})})]})})]});}const y=_0x558f55(0x1c9),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object['getOwnPropertyDescriptor'],tn=(_0x4f1ec9,_0x520d6e,_0x412028,_0xff014c)=>{const _0x1d801a=_0x558f55;for(var _0x5cdd54=_0xff014c>0x1?void 0x0:_0xff014c?rn(_0x520d6e,_0x412028):_0x520d6e,_0x3b1010=_0x4f1ec9[_0x1d801a(0x125)]-0x1,_0x3a918e;_0x3b1010>=0x0;_0x3b1010--)(_0x3a918e=_0x4f1ec9[_0x3b1010])&&(_0x5cdd54=_0x3a918e(_0x5cdd54)||_0x5cdd54);return _0x5cdd54;},d=(_0x46e55b,_0x1e4f4d)=>(_0x128468,_0x2032a6)=>_0x1e4f4d(_0x128468,_0x2032a6,_0x46e55b);function _0x560f(){const _0xe786cf=['mcpConfig.connectionError.unauthorized','map','MCP\x20客户端配置','UNAUTHORIZED','23528UFXnJh','toString','配置无效','保存配置','univer-min-w-0\x20univer-flex-1','0\x200\x2017\x2016','API\x20密钥','register','\x20-\x20','random','Bearer\x20','Connecting...','MCP\x20连接中...','mcpConfig.note1','includes','mcpStatus.disconnected','配置参数:','_initializeCommands','forEach','超出最大重试次数,请稍后再试','已连接','evenodd','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-flex\x20univer-items-center\x20univer-gap-3','CONNECTING','colorChannel1','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','mcpConfig.apiApplyInfo.description','off','mcpStatus.connecting','M0\x200H16V16H0z','最大重试次数','1em','string','univer-text-xs\x20univer-text-gray-500','replace','_mcpCoreConfig$','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Success','getConfig','validateApiKey','重连中...','white','univer-space-y-3','univer-text-xs\x20univer-text-gray-600','mcpConfig.description','MCP:\x20Unauthorized','2538GpQOPs','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univerjs-icon\x20univerjs-icon-','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','connectionStatus$','removeItem','_configService','assign','mergeMenu','1280363byYKMi','mcpConfig.connectionStatus.retrying','url(#on-line-icon_clip0_910_349)','Configuration\x20Parameters:','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','_initializeMenus','_createConfigPanelComponent','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20密钥无效,请检查密钥是否正确','_apiKey$','启用身份验证以获得安全连接','open','bottom','getOwnPropertyDescriptor','univer-text-red-500','Enable\x20Authentication','xlink:href','MCP\x20状态未知','MCP\x20Retrying...','univer-flex\x20univer-gap-3','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcp-ui.config','mcpConfig.authorizationDescription','mcpStatus.maxRetriesExceeded','errorMessage','show','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','点击配置\x20MCP','启用身份验证','_commandService','mcpConfig.save','mcpServerUrl','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','mcpStatus.networkError','MCPConfigPanel','_registerComponent','MCP\x20已连接','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','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','OffLineIcon','_messageService','BUTTON','几秒钟内获取您的\x20API\x20密钥','mcpConfig.connectionError.networkError','substring','配置步骤:','showDeveloperTools','MCP:\x20未授权','check-mark-icon','_connectionController','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','clipPath','currentColor','mcpStatus.unauthorized','mcpConfig.title','mcpStatus.retrying','What\x20is\x20API\x20Key?','MAX_RETRIES_EXCEEDED','Disconnected','<SESSION_ID>','mcpConfig.note2','off-line-icon','_loadStoredApiKey','tag','help-icon','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Enter\x20your\x20API\x20key','MCP:\x20会话\x20ID\x20已被占用','univer-bg-red-500','__setCustomHeaders','defs','0\x200\x2016\x2016','round','mask','off-line-icon_clip0_910_343','OnLineIcon','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','CONNECTED','univer.plus','NETWORK_ERROR','配置更改将立即生效','MCP\x20重连中...','value','showConfigPanel','mcpStatus.sessionOccupied','url(#$1','Failed\x20to\x20save\x20configuration','warn','Authorization:','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','API\x20密钥长度至少需要\x2010\x20位','univer-text-yellow-500','API\x20key\x20is\x20required','CheckMarkIcon','univer-space-y-2','subscribe','RETRYING','path','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcpConfig.connectionStatus.connected','mcpConfig.apiApplyInfo.getStarted','univer-flex\x20univer-items-center\x20univer-gap-2','has','mcpStatus.unknown','_uiPartsService','_handleConfigure','mcpConfig.saving','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','entries','_initConfigSync','带有\x20Bearer\x20前缀的\x20API\x20密钥。','API\x20密钥不能为空','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20Key','_menuManagerService','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','mcpConfig.validation.invalidApiKey','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','_localeService','subscribeConfigValue$','mcpConfig.validation.apiKeyRequired','_blank','univer-shrink-0\x20univer-text-red-500','MCP:\x20Max\x20Retries\x20Exceeded','univer-size-2\x20univer-rounded-full','MCP\x20Configuration','setItem','_dialogService','svg','univer-mr-2\x20univer-flex\x20univer-text-xl','1242YSpNMo','将配置添加到您的\x20MCP\x20客户端设置文件中','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-text-blue-600','保存中...','MCP:\x20网络错误','univer.ai','univer-bg-gray-500','会话\x20ID\x20已被占用,请稍后再试','univer-size-4','<API_KEY>','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-flex-1','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','add','_logService','_componentManager','_config','MenuIcon','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','trim','displayName','translate(.97)','error','3543cZyBxm','univer-space-y-5','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','disposeWithMe','univer-text-white','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','请输入您的\x20API\x20密钥','Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','setConfig','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','attrs','registerComponent','Configuration\x20Steps:','univer-text-green-500','HEADER_MENU','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','http://www.w3.org/2000/svg','univer-text-sm\x20univer-font-medium','MCP\x20Connecting...','Univer\x20AI\x20控制台','mcpConfig.connectionError.sessionOccupied','会话ID','https://console.univer.plus','div','_initStatusComponent','next','isValid','4169886yYuIAq','span','COMMAND','连接失败','pluginName','defineProperty','_mcpConnectionController','length','MCP\x20Disconnected','DISCONNECTED','mcp-config-dialog','mcpConfig.apiApplyInfo.title','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','apiKey','重启您的\x20MCP\x20客户端以使配置生效','Click\x20to\x20connect\x20MCP','_handleConfigSave','univer-flex\x20univer-flex-wrap\x20univer-gap-2','registerCommand','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Error','点击连接\x20MCP','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.configInstructions','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','mcpConfig.configStep2','univer-text-gray-400','button','_config$','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','MCP\x20Client\x20Configuration','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','连接中...','4600210ciEihl','mcpStatus.clickToConnect','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_validateConfig','Save\x20Configuration','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_loading$','none','univer-flex\x20univer-items-start\x20univer-gap-3','univer-bg-green-500','fill','配置保存成功','mcpConfig.apiKey','Saving...','mcpStatus.failed','192180bqdLrp','univer-flex\x20univer-items-start\x20univer-gap-2','sessionId$','UniverIcon','_injector','Click\x20to\x20configure\x20MCP','mcpConfig.apiKeyPlaceholder','stringify','15uQPsEW','\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','connectionError$','noopener\x20noreferrer','https://mcp.univer.ai/mcp/?univer_session_id=','https://console.univer.ai','mcpConfig.configStep1','mcpConfig.configError','mcpConfig.sessionIdDescription','Configuration\x20saved\x20successfully','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','on-line-icon','FAILED','mcpConfig.validation.invalidConfig','API\x20key\x20with\x20Bearer\x20prefix.','SESSION_ID_OCCUPIED','idSuffix','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','pre','_localStorageService','showStatus','on-line-icon_clip0_910_349','children','mcpConfig.validation.apiKeyTooShort','Invalid\x20configuration','_initAutoConnect','enableAutoConnect','get','未连接','univer-space-y-4','MCP\x20Connection\x20Failed','2934668mJQoBb'];_0x560f=function(){return _0xe786cf;};return _0x560f();}const U='mcp.apiKey',L=_0x558f55(0x128);let I=class extends _0x4cdc5b{constructor(_0x2fa3f1,_0x163318,_0x2e53b4,_0x24a50f,_0xb49d79,_0x17c27f,_0x1426be,_0x10934a,_0x55a13c,_0x23a91b){const _0x40f2a0=_0x558f55;super(),x(this,_0x40f2a0(0x147),new _0x42503e(!0x1)),x(this,_0x40f2a0(0x1a0),new _0x42503e({})),x(this,_0x40f2a0(0x13b),new _0x42503e({})),x(this,_0x40f2a0(0x1bd),new _0x42503e('')),x(this,_0x40f2a0(0x12e),async _0x90a6ba=>{const _0xa0ac00=_0x40f2a0;var _0x46c7d2,_0x50f0ac;this[_0xa0ac00(0x147)][_0xa0ac00(0x11c)](!0x0);try{const _0x10a1d0=await this[_0xa0ac00(0x144)](_0x90a6ba);if(!_0x10a1d0[_0xa0ac00(0x11d)]){this[_0xa0ac00(0x1dd)][_0xa0ac00(0x1cd)]({'type':_0x90164d[_0xa0ac00(0x133)],'content':_0x10a1d0[_0xa0ac00(0x1cc)]||this['_localeService']['t'](_0xa0ac00(0x165))});return;}_0x90a6ba['apiKey']?await this[_0xa0ac00(0x16b)][_0xa0ac00(0xe2)](U,_0x90a6ba['apiKey'][_0xa0ac00(0xfb)]()):await this[_0xa0ac00(0x16b)][_0xa0ac00(0x1b0)](U),this[_0xa0ac00(0x1bd)][_0xa0ac00(0x11c)](((_0x46c7d2=_0x90a6ba[_0xa0ac00(0x12b)])==null?void 0x0:_0x46c7d2[_0xa0ac00(0xfb)]())||''),this[_0xa0ac00(0x124)][_0xa0ac00(0x1fa)]({'Authorization':_0xa0ac00(0x186)+((_0x50f0ac=_0x90a6ba[_0xa0ac00(0x12b)])==null?void 0x0:_0x50f0ac[_0xa0ac00(0xfb)]())}),this[_0xa0ac00(0x1dd)]['show']({'type':_0x90164d[_0xa0ac00(0x1a2)],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x150592=_0xa0ac00;this[_0x150592(0xe3)]['close'](L);},0x320);}catch(_0x56a04c){this[_0xa0ac00(0xf5)][_0xa0ac00(0xfe)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x56a04c),this['_messageService'][_0xa0ac00(0x1cd)]({'type':_0x90164d['Error'],'content':this['_localeService']['t'](_0xa0ac00(0x15f))});}finally{this['_loading$'][_0xa0ac00(0x11c)](!0x1);}}),(this[_0x40f2a0(0x154)]=_0x2fa3f1,this[_0x40f2a0(0xcc)]=_0x163318,this[_0x40f2a0(0x1b1)]=_0x2e53b4,this['_localStorageService']=_0x24a50f,this[_0x40f2a0(0xe3)]=_0xb49d79,this[_0x40f2a0(0x1dd)]=_0x17c27f,this['_componentManager']=_0x1426be,this[_0x40f2a0(0xda)]=_0x10934a,this['_logService']=_0x55a13c,this[_0x40f2a0(0x124)]=_0x23a91b,this[_0x40f2a0(0xd1)](),this[_0x40f2a0(0x1f3)](),this[_0x40f2a0(0x1d7)]());}[_0x558f55(0xb7)](){const _0x53ba1b=_0x558f55,_0x9e279f=this[_0x53ba1b(0x1b1)][_0x53ba1b(0x1a3)](y);_0x9e279f!=null&&_0x9e279f[_0x53ba1b(0x1e3)]&&this[_0x53ba1b(0xe3)][_0x53ba1b(0x1bf)]({'id':L,'title':{'title':this['_localeService']['t'](_0x53ba1b(0x1eb))},'children':{'label':_0x53ba1b(0x1d6)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{this['_dialogService']['close'](L);}});}['getCurrentConfig'](){const _0x1d9989=_0x558f55;return this['_mcpCoreConfig$'][_0x1d9989(0xb6)];}[_0x558f55(0x1d7)](){const _0x219e17=_0x558f55;this[_0x219e17(0x104)](this[_0x219e17(0xf6)][_0x219e17(0x183)](_0x219e17(0x1d6),this[_0x219e17(0x1ba)]()));}[_0x558f55(0x1ba)](){const _0x33904c=_0x558f55;return _0x510a8f(()=>{const _0x40982f=_0x294f;var _0x8ec069,_0x5a7aaa,_0x4e9a61;return _0x27bfa9(nn,{'config':this[_0x40982f(0x13b)][_0x40982f(0xb6)],'mcpCoreConfig':this[_0x40982f(0x1a0)][_0x40982f(0xb6)],'currentApiKey$':this[_0x40982f(0x1bd)],'onSave':this[_0x40982f(0x12e)],'loading':this['_loading$'][_0x40982f(0xb6)],'connectionStatus$':(_0x8ec069=this[_0x40982f(0x124)])==null?void 0x0:_0x8ec069[_0x40982f(0x1af)],'connectionError$':(_0x5a7aaa=this['_mcpConnectionController'])==null?void 0x0:_0x5a7aaa[_0x40982f(0x15a)],'currentSessionId$':(_0x4e9a61=this[_0x40982f(0x124)])==null?void 0x0:_0x4e9a61[_0x40982f(0x152)]});},this[_0x33904c(0x154)]);}[_0x558f55(0xd1)](){const _0x2bf3f4=_0x558f55;this[_0x2bf3f4(0x104)](this[_0x2bf3f4(0x1b1)]['subscribeConfigValue$'](_0x470c2b)[_0x2bf3f4(0xc3)](_0x2560fc=>{const _0x57e2ce=_0x2bf3f4;this[_0x57e2ce(0x1a0)][_0x57e2ce(0x11c)](_0x2560fc||{});}));const _0x2a3ccc=this[_0x2bf3f4(0x1b1)][_0x2bf3f4(0x1a3)](_0x470c2b);this['_mcpCoreConfig$']['next'](_0x2a3ccc||{}),this[_0x2bf3f4(0x104)](this[_0x2bf3f4(0x1b1)][_0x2bf3f4(0xdb)](y)[_0x2bf3f4(0xc3)](_0x1f71b4=>{const _0x5b4619=_0x2bf3f4;this[_0x5b4619(0x13b)]['next'](_0x1f71b4||{});}));const _0x491eda=this[_0x2bf3f4(0x1b1)][_0x2bf3f4(0x1a3)](y);this[_0x2bf3f4(0x13b)]['next'](_0x491eda||{});}async['_loadStoredApiKey'](){const _0x5303c3=_0x558f55,_0x1a9cfc=this[_0x5303c3(0x1b1)][_0x5303c3(0x1a3)](y);if(!(_0x1a9cfc!=null&&_0x1a9cfc[_0x5303c3(0x1e3)]))return;const _0x15ccea=await this[_0x5303c3(0x16b)]['getItem'](U);_0x15ccea&&(this[_0x5303c3(0x124)]['__setCustomHeaders']({'Authorization':_0x5303c3(0x186)+_0x15ccea}),this[_0x5303c3(0x1bd)][_0x5303c3(0x11c)](_0x15ccea));}async[_0x558f55(0x144)](_0x323e2f){const _0x51f824=_0x558f55;if(!_0x323e2f[_0x51f824(0x12b)]||_0x323e2f[_0x51f824(0x12b)]['trim']()[_0x51f824(0x125)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x51f824(0xda)]['t'](_0x51f824(0xdc))};if(_0x323e2f[_0x51f824(0x12b)]['trim']()[_0x51f824(0x125)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x51f824(0xda)]['t'](_0x51f824(0x16f))};try{const _0x2b0721=await this[_0x51f824(0x154)][_0x51f824(0x173)](_0x1eede4)[_0x51f824(0x1a4)](_0x323e2f[_0x51f824(0x12b)][_0x51f824(0xfb)]());return _0x2b0721['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2b0721[_0x51f824(0xfe)]||this[_0x51f824(0xda)]['t'](_0x51f824(0xd8))};}catch(_0x187ccc){return console[_0x51f824(0xbb)](_0x51f824(0xf3),_0x187ccc),{'isValid':!0x0};}}};I=tn([d(0x0,_0x3315f7(_0x435606)),d(0x1,_0x5537a7),d(0x2,_0x7da071),d(0x3,_0x12cbba),d(0x4,_0x45f456),d(0x5,_0x35098f),d(0x6,_0x3315f7(_0x2c0d67)),d(0x7,_0x3315f7(_0x273534)),d(0x8,_0x455acc),d(0x9,_0x3315f7(_0x1eede4))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x5e7004[_0x558f55(0x120)],'handler':async(_0x2d822e,_0x15480d)=>(_0x2d822e[_0x558f55(0x173)](I)[_0x558f55(0xb7)](),!0x0)};function pe(_0x30a9f1,_0x3dd557){const _0x2f9e52=_0x558f55;switch(_0x30a9f1){case _0x3f09ea[_0x2f9e52(0x127)]:return _0x2f9e52(0x18b);case _0x3f09ea[_0x2f9e52(0x194)]:return _0x2f9e52(0x199);case _0x3f09ea[_0x2f9e52(0xb1)]:return'mcpStatus.connected';case _0x3f09ea[_0x2f9e52(0x164)]:switch(_0x3dd557){case _0x25c6b5[_0x2f9e52(0x17b)]:return _0x2f9e52(0x1ea);case _0x25c6b5[_0x2f9e52(0x167)]:return _0x2f9e52(0xb8);case _0x25c6b5[_0x2f9e52(0xb3)]:return _0x2f9e52(0x1d5);case _0x25c6b5[_0x2f9e52(0x1ee)]:return _0x2f9e52(0x1cb);default:return _0x2f9e52(0x14f);}case _0x3f09ea[_0x2f9e52(0xc4)]:return _0x2f9e52(0x1ec);default:return _0x2f9e52(0xcb);}}function on(_0xb4cdd8,_0x296230,_0x3f30d8,_0x1b0206=!0x0){const _0x136120=_0x558f55,_0x119fe2=pe(_0xb4cdd8,_0x296230),_0x52c42c=_0x3f30d8['t'](_0x119fe2);return _0x1b0206?_0xb4cdd8===_0x3f09ea['DISCONNECTED']&&_0x296230===_0x25c6b5[_0x136120(0x17b)]?_0x52c42c+_0x136120(0x184)+_0x3f30d8['t']('mcpStatus.clickToConfigure'):_0xb4cdd8===_0x3f09ea[_0x136120(0xb1)]?''+_0x52c42c:_0xb4cdd8===_0x3f09ea[_0x136120(0x127)]||_0xb4cdd8===_0x3f09ea[_0x136120(0x164)]?_0x52c42c+'\x20-\x20'+_0x3f30d8['t'](_0x136120(0x142)):_0x52c42c:_0x52c42c;}function sn(_0x9f8d26){const _0x47de55=_0x558f55;switch(_0x9f8d26){case _0x3f09ea[_0x47de55(0xb1)]:return _0x47de55(0x110);case _0x3f09ea[_0x47de55(0x194)]:case _0x3f09ea[_0x47de55(0xc4)]:return _0x47de55(0xbf);case _0x3f09ea[_0x47de55(0x164)]:case _0x3f09ea[_0x47de55(0x127)]:return'univer-text-red-500';default:return'univer-text-gray-500';}}function cn(_0x1c60b9){const _0x456ba7=_0x558f55,{status$:_0x44b60f,error$:_0x3bed87,onConfigure:_0x145d79,showClickable:_0x3e23f6=!0x0}=_0x1c60b9,_0x564412=_0x5403c9(_0x44b60f,_0x3f09ea[_0x456ba7(0x127)]),_0x53c3b7=_0x5403c9(_0x3bed87,_0x25c6b5['NONE']),_0x3569a1=_0x7d0c3e(_0x273534),_0x51083c=_0x564412===_0x3f09ea[_0x456ba7(0xb1)];_0x564412===_0x3f09ea['CONNECTING']||_0x3f09ea[_0x456ba7(0xc4)];const _0x2fd98d=_0x3569a1['t'](pe(_0x564412,_0x53c3b7)),_0x1e873c=on(_0x564412,_0x53c3b7,_0x3569a1,_0x3e23f6),_0x45fa12=sn(_0x564412),_0x5cf15f=_0x51083c?_0x27bfa9(ge,{}):_0x27bfa9(de,{}),_0xd5a1a0=_0x5a84f6(()=>{_0x3e23f6&&_0x145d79&&_0x145d79();},[_0x3e23f6,_0x145d79]);function _0x4b50b8(){const _0x28c29b=_0x456ba7;return _0x36e757('div',{'className':_0x1b798e('univer-flex\x20univer-items-center',_0x3e23f6&&_0x145d79&&_0x28c29b(0x159)),'role':'button','onClick':_0x3e23f6&&_0x145d79?_0xd5a1a0:void 0x0,'children':[_0x27bfa9(_0x28c29b(0x11a),{'className':_0x1b798e(_0x28c29b(0xe5),_0x45fa12),'children':_0x5cf15f}),_0x27bfa9(_0x28c29b(0x11a),{'className':_0x28c29b(0x112),'children':_0x2fd98d})]});}return _0x27bfa9(_0x380876,{'title':_0x1e873c,'placement':_0x456ba7(0x1c0),'children':_0x4b50b8()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x39148a,_0x2dedf0,_0x5925ed,_0x5c452d)=>{for(var _0x368ffd=_0x5c452d>0x1?void 0x0:_0x5c452d?an(_0x2dedf0,_0x5925ed):_0x2dedf0,_0x151dac=_0x39148a['length']-0x1,_0x2441cc;_0x151dac>=0x0;_0x151dac--)(_0x2441cc=_0x39148a[_0x151dac])&&(_0x368ffd=_0x2441cc(_0x368ffd)||_0x368ffd);return _0x368ffd;},M=(_0x13452a,_0x2d4588)=>(_0x5844ed,_0x41f6de)=>_0x2d4588(_0x5844ed,_0x41f6de,_0x13452a);let O=class extends _0x4cdc5b{constructor(_0x4e834e,_0x184adc,_0x55079f,_0x2b9723){const _0x475e78=_0x558f55;super(),this[_0x475e78(0x154)]=_0x4e834e,this[_0x475e78(0x1e6)]=_0x184adc,this[_0x475e78(0xcc)]=_0x55079f,this[_0x475e78(0x1b1)]=_0x2b9723,this[_0x475e78(0x171)](),this[_0x475e78(0x11b)]();}[_0x558f55(0x171)](){const _0x1a95f0=_0x558f55,_0x29236a=this[_0x1a95f0(0x1b1)][_0x1a95f0(0x1a3)](y);_0x29236a!=null&&_0x29236a[_0x1a95f0(0x1e3)]&&(this[_0x1a95f0(0x1e6)][_0x1a95f0(0x172)]=!0x1);}['_initStatusComponent'](){const _0xdc2da7=_0x558f55,_0x592d5f=this[_0xdc2da7(0x1b1)][_0xdc2da7(0x1a3)](y);(_0x592d5f==null?void 0x0:_0x592d5f[_0xdc2da7(0x16c)])!==!0x1&&this[_0xdc2da7(0x104)](this[_0xdc2da7(0xcc)][_0xdc2da7(0x10e)](_0x534a3e[_0xdc2da7(0x111)],()=>{const _0x390224=_0xdc2da7;var _0x41f680;return _0x510a8f(un({'status$':this[_0x390224(0x1e6)][_0x390224(0x1af)],'error$':this[_0x390224(0x1e6)][_0x390224(0x15a)],'onConfigure':()=>this[_0x390224(0xcd)](),'showClickable':(_0x41f680=_0x592d5f==null?void 0x0:_0x592d5f[_0x390224(0x1e3)])!=null?_0x41f680:!0x1}),this[_0x390224(0x154)]);}));}[_0x558f55(0xcd)](){const _0x18332c=_0x558f55;this[_0x18332c(0x154)]['get'](I)[_0x18332c(0xb7)]();}};O=ln([M(0x0,_0x3315f7(_0x435606)),M(0x1,_0x3315f7(_0x1eede4)),M(0x2,_0x5537a7),M(0x3,_0x7da071)],O);function un(_0x7d8a30){const {status$:_0x391038,error$:_0x5339f6,onConfigure:_0x38c8e2,showClickable:_0x955d5e}=_0x7d8a30;return function(){return _0x27bfa9(cn,{'status$':_0x391038,'error$':_0x5339f6,'onConfigure':_0x38c8e2,'showClickable':_0x955d5e});};}function vn(_0x2cb81b){const _0x4eee3a=_0x558f55;return{'id':V['id'],'type':_0x855c7[_0x4eee3a(0x1de)],'icon':_0x4eee3a(0xf8),'title':_0x4eee3a(0x1eb),'tooltip':_0x4eee3a(0x1eb)};}const dn={[_0x577d0c['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x558f55(0x1c1)],pn=(_0x36b5c,_0x9164b6,_0x4d7f39,_0x25a2fa)=>{const _0x33e647=_0x558f55;for(var _0x456b66=_0x25a2fa>0x1?void 0x0:_0x25a2fa?gn(_0x9164b6,_0x4d7f39):_0x9164b6,_0x277bee=_0x36b5c[_0x33e647(0x125)]-0x1,_0x17c47c;_0x277bee>=0x0;_0x277bee--)(_0x17c47c=_0x36b5c[_0x277bee])&&(_0x456b66=_0x17c47c(_0x456b66)||_0x456b66);return _0x456b66;},re=(_0x2a55db,_0xa85fda)=>(_0xf3d5a6,_0x63fe7)=>_0xa85fda(_0xf3d5a6,_0x63fe7,_0x2a55db);let D=class extends _0x4cdc5b{constructor(_0x184118,_0x239317){const _0x48ca72=_0x558f55;super(),this[_0x48ca72(0x1d1)]=_0x184118,this[_0x48ca72(0xd6)]=_0x239317,this['_initializeCommands'](),this[_0x48ca72(0x1b9)]();}[_0x558f55(0x18d)](){const _0x4a8481=_0x558f55;[V][_0x4a8481(0x18e)](_0xf2f577=>{const _0x152156=_0x4a8481;this['disposeWithMe'](this[_0x152156(0x1d1)][_0x152156(0x130)](_0xf2f577));});}[_0x558f55(0x1b9)](){const _0x3d4448=_0x558f55;this['_menuManagerService'][_0x3d4448(0x1b3)](dn);}};D=pn([re(0x0,_0xe14675),re(0x1,_0x9ece4)],D);const Mn={'mcpStatus':{'disconnected':_0x558f55(0x126),'connecting':_0x558f55(0x115),'connected':'MCP\x20Connected','failed':_0x558f55(0x176),'retrying':_0x558f55(0x1c6),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x558f55(0x1aa),'sessionOccupied':_0x558f55(0x135),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x558f55(0xdf),'clickToConnect':_0x558f55(0x12d),'clickToConfigure':_0x558f55(0x155)},'mcpConfig':{'title':_0x558f55(0xe1),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x558f55(0xd5),'apiKeyPlaceholder':_0x558f55(0x1f7),'apiKeyHint':_0x558f55(0x1bb),'enableAuth':_0x558f55(0x1c3),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x558f55(0x13d),'mcpClientConfig':_0x558f55(0x13d),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x558f55(0x10f),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x558f55(0x12a),'sessionId':'Session\x20ID','sessionIdDescription':_0x558f55(0x1ce),'authorizationDescription':_0x558f55(0x166),'configParameters':_0x558f55(0x1b7),'maxRetries':'Max\x20Retries','save':_0x558f55(0x145),'saving':_0x558f55(0x14e),'note1':_0x558f55(0xc6),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x558f55(0x161),'configError':_0x558f55(0xba),'apiApplyInfo':{'title':_0x558f55(0x1ed),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x558f55(0xfa)},'validation':{'apiKeyRequired':_0x558f55(0xc0),'apiKeyTooShort':_0x558f55(0x101),'invalidConfig':_0x558f55(0x170),'invalidApiKey':_0x558f55(0x109)},'connectionStatus':{'disconnected':_0x558f55(0x1ef),'connecting':_0x558f55(0x187),'connected':'Connected','failed':_0x558f55(0x108),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x558f55(0x1da),'sessionOccupied':_0x558f55(0xf9),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x558f55(0x188),'connected':_0x558f55(0x1d8),'failed':'MCP\x20连接失败','retrying':_0x558f55(0xb5),'unknown':_0x558f55(0x1c5),'unauthorized':_0x558f55(0x1e4),'sessionOccupied':_0x558f55(0x1f8),'networkError':_0x558f55(0xeb),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x558f55(0x134),'clickToConfigure':_0x558f55(0x1cf)},'mcpConfig':{'title':'MCP\x20配置','description':_0x558f55(0x1c8),'apiKey':_0x558f55(0x182),'apiKeyPlaceholder':_0x558f55(0x107),'apiKeyHint':_0x558f55(0xd4),'enableAuth':_0x558f55(0x1d0),'enableAuthHint':_0x558f55(0x1be),'connectionInfo':_0x558f55(0x17a),'mcpClientConfig':_0x558f55(0x17a),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x558f55(0x1e2),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x558f55(0xe7),'configStep3':_0x558f55(0x12c),'sessionId':_0x558f55(0x118),'sessionIdDescription':_0x558f55(0x1f6),'authorizationDescription':_0x558f55(0xd2),'configParameters':_0x558f55(0x18c),'maxRetries':_0x558f55(0x19b),'save':_0x558f55(0x17f),'saving':_0x558f55(0xea),'note1':_0x558f55(0xb4),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x558f55(0x14c),'configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x558f55(0x146),'univerAiLabel':_0x558f55(0x116),'getStarted':_0x558f55(0x1df)},'validation':{'apiKeyRequired':_0x558f55(0xd3),'apiKeyTooShort':_0x558f55(0xbe),'invalidConfig':_0x558f55(0x17e),'invalidApiKey':_0x558f55(0x1bc)},'connectionStatus':{'disconnected':_0x558f55(0x174),'connecting':_0x558f55(0x140),'connected':_0x558f55(0x190),'failed':_0x558f55(0x121),'retrying':_0x558f55(0x1a5)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x558f55(0xee),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x558f55(0x18f)}}};var fn=Object[_0x558f55(0x123)],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x2ea4e5,_0xa55e8a,_0x9fc2fb)=>_0xa55e8a in _0x2ea4e5?fn(_0x2ea4e5,_0xa55e8a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x9fc2fb}):_0x2ea4e5[_0xa55e8a]=_0x9fc2fb,mn=(_0x558ea4,_0x220150,_0x2ff405,_0x15ca23)=>{for(var _0x10b4ae=_0x15ca23>0x1?void 0x0:_0x15ca23?hn(_0x220150,_0x2ff405):_0x220150,_0x4360e6=_0x558ea4['length']-0x1,_0xc79270;_0x4360e6>=0x0;_0x4360e6--)(_0xc79270=_0x558ea4[_0x4360e6])&&(_0x10b4ae=_0xc79270(_0x10b4ae)||_0x10b4ae);return _0x10b4ae;},P=(_0xa899ae,_0x50975f)=>(_0x2db398,_0x2f0dbe)=>_0x50975f(_0x2db398,_0x2f0dbe,_0xa899ae),_n=(_0x2922ff,_0x44b5e1,_0x4ebb8b)=>Cn(_0x2922ff,_0x44b5e1+'',_0x4ebb8b);let j=class extends _0x372ece{constructor(_0x314095=ie,_0x5d760e,_0x338059,_0x5e89da,_0x3d2272,_0x5546e8){const _0x51e15d=_0x558f55;super(),this[_0x51e15d(0xf7)]=_0x314095,this[_0x51e15d(0x154)]=_0x5d760e,this[_0x51e15d(0x1b1)]=_0x338059,this[_0x51e15d(0xcc)]=_0x5e89da,this[_0x51e15d(0x16b)]=_0x3d2272,this['_localeService']=_0x5546e8;const {..._0x2b7988}=_0x3b1109({},ie,this[_0x51e15d(0xf7)]);this['_configService'][_0x51e15d(0x10b)](y,_0x2b7988);}async['onStarting'](){const _0x191d56=_0x558f55,_0x3359e2=[[O],[I],[D]];this[_0x191d56(0x154)][_0x191d56(0xca)](_0x8a3f06)||_0x3359e2['push']([_0x8a3f06,{'useClass':_0x5b6021}]),_0x3359e2[_0x191d56(0x18e)](_0x1dc07c=>this['_injector'][_0x191d56(0xf4)](_0x1dc07c)),this[_0x191d56(0x154)][_0x191d56(0x173)](O),this[_0x191d56(0x154)][_0x191d56(0x173)](I),this[_0x191d56(0x154)][_0x191d56(0x173)](D);}};_n(j,_0x558f55(0x122),'MCP_UI_PLUGIN'),j=mn([_0x33f517(_0x385702),P(0x1,_0x3315f7(_0x435606)),P(0x2,_0x7da071),P(0x3,_0x5537a7),P(0x4,_0x12cbba),P(0x5,_0x3315f7(_0x273534))],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 _0xc70430=_0x2fba;(function(_0x21c83b,_0x205346){const _0x1dac2d=_0x2fba,_0x3290ca=_0x21c83b();while(!![]){try{const _0x4e411f=-parseInt(_0x1dac2d(0x295))/0x1*(-parseInt(_0x1dac2d(0x247))/0x2)+parseInt(_0x1dac2d(0x2ba))/0x3+parseInt(_0x1dac2d(0x1af))/0x4+-parseInt(_0x1dac2d(0x1cb))/0x5+parseInt(_0x1dac2d(0x272))/0x6*(parseInt(_0x1dac2d(0x1f0))/0x7)+parseInt(_0x1dac2d(0x2dd))/0x8*(-parseInt(_0x1dac2d(0x28b))/0x9)+parseInt(_0x1dac2d(0x1b8))/0xa*(parseInt(_0x1dac2d(0x2c1))/0xb);if(_0x4e411f===_0x205346)break;else _0x3290ca['push'](_0x3290ca['shift']());}catch(_0x551a05){_0x3290ca['push'](_0x3290ca['shift']());}}}(_0x22b3,0xed671));var Pe=Object[_0xc70430(0x2c5)],Ee=(_0x14ff4b,_0x1f830d,_0xd51d78)=>_0x1f830d in _0x14ff4b?Pe(_0x14ff4b,_0x1f830d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd51d78}):_0x14ff4b[_0x1f830d]=_0xd51d78,x=(_0x27ee51,_0x5c9c46,_0x47e9e7)=>Ee(_0x27ee51,typeof _0x5c9c46!=_0xc70430(0x2b9)?_0x5c9c46+'':_0x5c9c46,_0x47e9e7);import{LocaleService as _0x3ca3c0,Inject as _0x4ec27f,Injector as _0x2ea9cd,IConfigService as _0x1b1405,ILocalStorageService as _0x119742,ILogService as _0x3e3adb,Disposable as _0xa23c43,CommandType as _0x24bcf0,ICommandService as _0x46583b,DependentOn as _0x370e16,Plugin as _0x366cc9,merge as _0x3c61f2}from'@univerjs/core';import{jsxs as _0x30d051,jsx as _0x2bee5c}from'react/jsx-runtime';function _0x2fba(_0x461b43,_0x349801){_0x461b43=_0x461b43-0x194;const _0x22b31e=_0x22b3();let _0x2fba11=_0x22b31e[_0x461b43];return _0x2fba11;}import{MCPConnectionStatus as _0x1fd146,MCPConnectionError as _0x37cda4,MCPConnectionController as _0x4ccb5d,MCP_PLUGIN_CONFIG_KEY as _0x1aec7d,UniverMCPPlugin as _0x23c55e}from'@univerjs-pro/mcp';import{clsx as _0x29c14e,Input as _0x20ebf9,Button as _0x297c10,MessageType as _0x46b581,Tooltip as _0x315236}from'@univerjs/design';import{useDependency as _0x424c48,useObservable as _0xaeeec6,IUIPartsService as _0xcca592,IDialogService as _0x2d458a,IMessageService as _0x46ab61,ComponentManager as _0x5479c5,connectInjector as _0x2902af,BuiltInUIPart as _0x184ac4,MenuItemType as _0x3968d8,RibbonStartGroup as _0xc7b462,IMenuManagerService as _0x57aeeb}from'@univerjs/ui';import{BehaviorSubject as _0x2b5af2}from'rxjs';import{useRef as _0x3c6c11,createElement as _0x294b23,forwardRef as _0x426ac9,useState as _0x4c231f,useCallback as _0x48e070}from'react';import{ISocketService as _0x1e64d4,WebSocketService as _0x897e1b}from'@univerjs/network';function b({ref:_0x5034ec,..._0x5f10fd}){const _0x456aa1=_0xc70430,{icon:_0x54a2df,id:_0x401f88,className:_0x1775a6,extend:_0x156991,..._0x53662e}=_0x5f10fd,_0x13e5a9=(_0x456aa1(0x1a7)+_0x401f88+'\x20'+(_0x1775a6||''))[_0x456aa1(0x27d)](),_0x85cf97=_0x3c6c11('_'+We());return ae(_0x54a2df,''+_0x401f88,{'defIds':_0x54a2df[_0x456aa1(0x1d1)],'idSuffix':_0x85cf97[_0x456aa1(0x1f8)]},{'ref':_0x5034ec,'className':_0x13e5a9,..._0x53662e},_0x156991);}function ae(_0x142752,_0x251bb5,_0x2569bf,_0x2e35de,_0xffff0b){const _0x4802c3=_0xc70430;return _0x294b23(_0x142752['tag'],{'key':_0x251bb5,...Ye(_0x142752,_0x2569bf,_0xffff0b),..._0x2e35de},(Ze(_0x142752,_0x2569bf)[_0x4802c3(0x2cd)]||[])[_0x4802c3(0x1b0)]((_0x12322c,_0x4482bc)=>ae(_0x12322c,_0x251bb5+'-'+_0x142752[_0x4802c3(0x28f)]+'-'+_0x4482bc,_0x2569bf,void 0x0,_0xffff0b)));}function Ye(_0x1afd1a,_0x224b1d,_0xbb9469){const _0x38f610=_0xc70430,_0x31401f={..._0x1afd1a['attrs']};_0xbb9469!=null&&_0xbb9469[_0x38f610(0x209)]&&_0x31401f[_0x38f610(0x2be)]===_0x38f610(0x209)&&(_0x31401f['fill']=_0xbb9469[_0x38f610(0x209)]),_0x1afd1a[_0x38f610(0x28f)]===_0x38f610(0x1f9)&&_0x31401f['id']&&(_0x31401f['id']=_0x31401f['id']+_0x224b1d[_0x38f610(0x2ca)]),Object[_0x38f610(0x1b4)](_0x31401f)[_0x38f610(0x2c7)](([_0x223b9e,_0x291216])=>{const _0x1ba610=_0x38f610;_0x223b9e===_0x1ba610(0x1f9)&&typeof _0x291216==_0x1ba610(0x280)&&(_0x31401f[_0x223b9e]=_0x291216[_0x1ba610(0x28d)](/url\(#(.*)\)/,_0x1ba610(0x2cb)+_0x224b1d['idSuffix']+')'));});const {defIds:_0x2ec99a}=_0x224b1d;return!_0x2ec99a||_0x2ec99a[_0x38f610(0x1f1)]===0x0||(_0x1afd1a[_0x38f610(0x28f)]===_0x38f610(0x1cc)&&_0x31401f[_0x38f610(0x1fa)]&&(_0x31401f[_0x38f610(0x1fa)]=_0x31401f['xlink:href']+_0x224b1d[_0x38f610(0x2ca)]),Object[_0x38f610(0x1b4)](_0x31401f)['forEach'](([_0x8b7e7e,_0x3c06a6])=>{const _0x436d18=_0x38f610;typeof _0x3c06a6==_0x436d18(0x280)&&(_0x31401f[_0x8b7e7e]=_0x3c06a6[_0x436d18(0x28d)](/url\(#(.*)\)/,_0x436d18(0x2cb)+_0x224b1d[_0x436d18(0x2ca)]+')'));})),_0x31401f;}function Ze(_0x553988,_0x471b6a){const _0x2a011a=_0xc70430;var _0x3a1a0f;const {defIds:_0x5f43dd}=_0x471b6a;return!_0x5f43dd||_0x5f43dd[_0x2a011a(0x1f1)]===0x0?_0x553988:_0x553988[_0x2a011a(0x28f)]===_0x2a011a(0x2db)&&((_0x3a1a0f=_0x553988[_0x2a011a(0x2cd)])!=null&&_0x3a1a0f['length'])?{..._0x553988,'children':_0x553988[_0x2a011a(0x2cd)][_0x2a011a(0x1b0)](_0x1a3d41=>typeof _0x1a3d41[_0x2a011a(0x1c7)]['id']==_0x2a011a(0x280)&&_0x5f43dd&&_0x5f43dd[_0x2a011a(0x223)](_0x1a3d41[_0x2a011a(0x1c7)]['id'])?{..._0x1a3d41,'attrs':{..._0x1a3d41[_0x2a011a(0x1c7)],'id':_0x1a3d41[_0x2a011a(0x1c7)]['id']+_0x471b6a['idSuffix']}}:_0x1a3d41)}:_0x553988;}function We(){const _0x311aba=_0xc70430;return Math['random']()[_0x311aba(0x26e)](0x24)[_0x311aba(0x2bd)](0x2,0x8);}b[_0xc70430(0x2a6)]=_0xc70430(0x229);const qe={'tag':_0xc70430(0x29f),'attrs':{'xmlns':_0xc70430(0x213),'fill':_0xc70430(0x1e2),'viewBox':_0xc70430(0x1ac),'width':_0xc70430(0x2b0),'height':_0xc70430(0x2b0)},'children':[{'tag':_0xc70430(0x256),'attrs':{'fill':_0xc70430(0x29c),'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=_0x426ac9(function(_0x84308d,_0x3eb561){const _0x3a3b71=_0xc70430;return _0x294b23(b,Object[_0x3a3b71(0x262)]({},_0x84308d,{'id':_0x3a3b71(0x1db),'ref':_0x3eb561,'icon':qe}));});le[_0xc70430(0x2a6)]=_0xc70430(0x2c3);const Xe={'tag':_0xc70430(0x29f),'attrs':{'xmlns':_0xc70430(0x213),'fill':_0xc70430(0x1e2),'viewBox':_0xc70430(0x1ac),'width':'1em','height':_0xc70430(0x2b0)},'children':[{'tag':_0xc70430(0x256),'attrs':{'fill':_0xc70430(0x29c),'d':_0xc70430(0x1bc)}}]},ue=_0x426ac9(function(_0x24a3c0,_0x11738d){return _0x294b23(b,Object['assign']({},_0x24a3c0,{'id':'close-icon','ref':_0x11738d,'icon':Xe}));});ue[_0xc70430(0x2a6)]=_0xc70430(0x27c);const Je={'tag':_0xc70430(0x29f),'attrs':{'xmlns':_0xc70430(0x213),'fill':_0xc70430(0x1e2),'viewBox':_0xc70430(0x1ac),'width':_0xc70430(0x2b0),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0xc70430(0x29c),'d':_0xc70430(0x2d7)}},{'tag':_0xc70430(0x256),'attrs':{'fill':_0xc70430(0x29c),'d':'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'}},{'tag':_0xc70430(0x256),'attrs':{'fill':_0xc70430(0x29c),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0xc70430(0x1b5),'clipRule':_0xc70430(0x1b5)}}]},ve=_0x426ac9(function(_0x104906,_0x2bdefc){const _0x55df6d=_0xc70430;return _0x294b23(b,Object['assign']({},_0x104906,{'id':_0x55df6d(0x227),'ref':_0x2bdefc,'icon':Je}));});ve[_0xc70430(0x2a6)]='HelpIcon';const Qe={'tag':_0xc70430(0x29f),'attrs':{'xmlns':_0xc70430(0x213),'fill':_0xc70430(0x1e2),'viewBox':_0xc70430(0x1ac),'width':_0xc70430(0x2b0),'height':_0xc70430(0x2b0)},'children':[{'tag':'g','attrs':{'clipPath':_0xc70430(0x194)},'children':[{'tag':_0xc70430(0x256),'attrs':{'stroke':'currentColor','d':_0xc70430(0x28a),'strokeLinecap':_0xc70430(0x258),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xc70430(0x232),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0xc70430(0x256),'attrs':{'fill':_0xc70430(0x207),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0xc70430(0x2ee)]},de=_0x426ac9(function(_0x4bf6c2,_0x13aa10){const _0x16e8a3=_0xc70430;return _0x294b23(b,Object['assign']({},_0x4bf6c2,{'id':_0x16e8a3(0x241),'ref':_0x13aa10,'icon':Qe}));});de[_0xc70430(0x2a6)]=_0xc70430(0x25a);const en={'tag':_0xc70430(0x29f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xc70430(0x1e2),'viewBox':_0xc70430(0x245),'width':'1em','height':_0xc70430(0x2b0)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0xc70430(0x256),'attrs':{'stroke':_0xc70430(0x29c),'d':_0xc70430(0x1a6),'strokeLinecap':_0xc70430(0x258),'strokeLinejoin':_0xc70430(0x258),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0xc70430(0x256),'attrs':{'fill':'white','d':_0xc70430(0x1d2),'transform':_0xc70430(0x1b9)}}]}]}],'defIds':[_0xc70430(0x230)]},ge=_0x426ac9(function(_0x5f4778,_0x269b0a){const _0x1b8060=_0xc70430;return _0x294b23(b,Object[_0x1b8060(0x262)]({},_0x5f4778,{'id':'on-line-icon','ref':_0x269b0a,'icon':en}));});ge[_0xc70430(0x2a6)]='OnLineIcon';function nn(_0x1b2f4d){const _0x27b78b=_0xc70430;var _0x109552,_0x5efbb1;const {mcpCoreConfig:_0x772468,onSave:_0xad4bb0,loading:_0x46bcf4=!0x1,config:_0x5613eb,connectionStatus$:_0x5ee0a8,connectionError$:_0x41d782,currentApiKey$:_0x495036,currentSessionId$:_0x204a5d}=_0x1b2f4d,_0x3fe769=_0x424c48(_0x3ca3c0),_0x21315c=_0xaeeec6(_0x5ee0a8,_0x1fd146[_0x27b78b(0x2e8)]),_0x519298=_0xaeeec6(_0x41d782,_0x37cda4['NONE']),_0x5d2b3d=_0xaeeec6(_0x204a5d,''),_0x486bcb=_0xaeeec6(_0x495036,''),[_0x37dd77,_0x4eeced]=_0x4c231f(_0x486bcb||''),_0x4fd668=!0x0,_0xa82e72=_0x5613eb[_0x27b78b(0x1ab)]&&_0x772468[_0x27b78b(0x1e0)]&&(_0x772468[_0x27b78b(0x1e0)][_0x27b78b(0x223)](_0x27b78b(0x1a1))||_0x772468[_0x27b78b(0x1e0)][_0x27b78b(0x223)](_0x27b78b(0x2e5))),_0x484b11=(_0x109552=_0x772468[_0x27b78b(0x1e0)])==null?void 0x0:_0x109552[_0x27b78b(0x223)](_0x27b78b(0x1a1)),_0x2ab238=(_0x5efbb1=_0x772468['mcpServerUrl'])==null?void 0x0:_0x5efbb1[_0x27b78b(0x223)]('univer.ai'),_0x12f83a=_0x484b11?_0x27b78b(0x1f4):_0x27b78b(0x23a),_0x4d85ad=_0x5613eb[_0x27b78b(0x1ab)]&&(_0x484b11||_0x2ab238),[_0x3abf41,_0x2b9fa6]=_0x4c231f(!_0x37dd77['trim']()),_0x118262=(_0x5cc2fb,_0x3ad01e)=>{const _0x547acf=_0x27b78b;if(_0x3ad01e===_0x37cda4[_0x547acf(0x1c3)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x5cc2fb){case _0x1fd146['CONNECTED']:return _0x547acf(0x251);case _0x1fd146[_0x547acf(0x1d8)]:case _0x1fd146[_0x547acf(0x1e6)]:return _0x547acf(0x266);case _0x1fd146['FAILED']:return _0x547acf(0x294);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x3dbbc3=(_0x48442d,_0x302f7f)=>{const _0x441a7d=_0x27b78b;if(_0x302f7f===_0x37cda4[_0x441a7d(0x1c3)])return _0x441a7d(0x1cf);switch(_0x48442d){case _0x1fd146['CONNECTED']:return'univer-bg-green-500';case _0x1fd146['CONNECTING']:case _0x1fd146['RETRYING']:return _0x441a7d(0x20b);case _0x1fd146[_0x441a7d(0x20c)]:return _0x441a7d(0x1cf);default:return'univer-bg-gray-500';}},_0x46478a=_0x38b55c=>{const _0x4433f1=_0x27b78b;switch(_0x38b55c){case _0x1fd146['CONNECTED']:return _0x3fe769['t'](_0x4433f1(0x260));case _0x1fd146['CONNECTING']:return _0x3fe769['t'](_0x4433f1(0x228));case _0x1fd146[_0x4433f1(0x20c)]:return _0x3fe769['t'](_0x4433f1(0x276));case _0x1fd146['RETRYING']:return _0x3fe769['t']('mcpConfig.connectionStatus.retrying');default:return _0x3fe769['t']('mcpConfig.connectionStatus.disconnected');}},_0x61bc3c=_0x3bd597=>{const _0x4d26e0=_0x27b78b;switch(_0x3bd597){case _0x37cda4[_0x4d26e0(0x1c3)]:return _0x3fe769['t'](_0x4d26e0(0x2d0));case _0x37cda4[_0x4d26e0(0x19f)]:return _0x3fe769['t'](_0x4d26e0(0x1e5));case _0x37cda4['NETWORK_ERROR']:return _0x3fe769['t'](_0x4d26e0(0x208));case _0x37cda4[_0x4d26e0(0x1fb)]:return _0x3fe769['t'](_0x4d26e0(0x242));default:return'';}},_0x11afb4=_0x48e070(()=>{const _0x20d68f=_0x27b78b,_0x4412e4={..._0x772468,'apiKey':_0x37dd77[_0x20d68f(0x27d)](),'enableAuth':_0x4fd668};_0xad4bb0(_0x4412e4);},[_0x772468,_0x37dd77,_0x4fd668,_0xad4bb0]),_0x4a003d=_0x37dd77[_0x27b78b(0x27d)]()['length']>0x0;return _0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x1fc),'children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x246),'children':_0x30d051(_0x27b78b(0x1eb),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x2bee5c('div',{'className':_0x27b78b(0x275),'children':_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x255),'children':'⚙'})}),_0x2bee5c(_0x27b78b(0x1eb),{'children':_0x2bee5c('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x3fe769['t'](_0x27b78b(0x291))})})]})}),_0x30d051('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x29c14e(_0x27b78b(0x19c),_0x118262(_0x21315c,_0x519298)),'children':_0x30d051(_0x27b78b(0x1eb),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x29c14e(_0x27b78b(0x1c1),_0x3dbbc3(_0x21315c,_0x519298))}),_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x20f),'children':_0x46478a(_0x21315c)})]})}),_0x519298!==_0x37cda4['NONE']&&(_0x21315c===_0x1fd146[_0x27b78b(0x20c)]||_0x519298===_0x37cda4['UNAUTHORIZED'])&&_0x2bee5c('div',{'className':_0x27b78b(0x21e),'children':_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x219),'children':[_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x2a5),'children':'⚠️'}),_0x2bee5c('p',{'className':_0x27b78b(0x22b),'children':_0x61bc3c(_0x519298)})]})})]}),_0x2bee5c('div',{'className':_0x27b78b(0x1d9),'children':_0x30d051('div',{'className':_0x27b78b(0x1cd),'children':[_0x30d051('div',{'className':'univer-space-y-2','children':[_0x30d051('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x2bee5c(_0x27b78b(0x1a4),{'children':'🔑'}),'\x20',_0x3fe769['t']('mcpConfig.apiKey'),_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x23f),'children':'*'}),_0xa82e72&&_0x2bee5c('a',{'className':_0x27b78b(0x25c),'title':_0x3fe769['t'](_0x27b78b(0x29b)),'role':_0x27b78b(0x24c),'onClick':()=>_0x2b9fa6(!0x0),'children':_0x2bee5c(ve,{})})]}),_0x2bee5c(_0x20ebf9,{'type':_0x27b78b(0x210),'placeholder':_0x3fe769['t'](_0x27b78b(0x2f0)),'value':_0x37dd77,'disabled':_0x46bcf4,'autoComplete':_0x27b78b(0x220),'onChange':_0x4eeced}),_0x2bee5c('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3fe769['t'](_0x27b78b(0x2f1))})]}),_0xa82e72&&_0x3abf41&&_0x30d051('div',{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[_0x2bee5c('a',{'className':_0x27b78b(0x2e7),'role':_0x27b78b(0x24c),'onClick':()=>_0x2b9fa6(!0x1),'children':_0x2bee5c(ue,{'className':_0x27b78b(0x1ca)})}),_0x30d051('div',{'className':_0x27b78b(0x1ff),'children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x1bd),'children':_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x27a),'children':'🚀'})}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x216),'children':[_0x2bee5c('h4',{'className':_0x27b78b(0x26a),'children':_0x3fe769['t'](_0x27b78b(0x29b))}),_0x2bee5c('p',{'className':_0x27b78b(0x274),'children':_0x3fe769['t']('mcpConfig.apiApplyInfo.description')}),_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x287),'children':_0x4d85ad&&_0x30d051('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':_0x12f83a,'target':_0x27b78b(0x268),'rel':_0x27b78b(0x1ce),'children':[_0x2bee5c('span',{'children':'🤖'}),_0x3fe769['t'](_0x27b78b(0x293)),_0x2bee5c('span',{'className':_0x27b78b(0x19a),'children':'↗'})]})}),_0x30d051('div',{'className':_0x27b78b(0x271),'children':['✨','\x20',_0x3fe769['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x5613eb['showDeveloperTools']&&_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x27f),'children':[_0x30d051('h4',{'className':_0x27b78b(0x298),'children':[_0x2bee5c(_0x27b78b(0x1a4),{'children':'🔗'}),'\x20',_0x3fe769['t'](_0x27b78b(0x217))]}),_0x30d051('div',{'className':_0x27b78b(0x21c),'children':[_0x30d051('div',{'className':_0x27b78b(0x2a7),'children':[_0x2bee5c('p',{'className':_0x27b78b(0x2c0),'children':_0x3fe769['t']('mcpConfig.configInstructions')}),_0x30d051('div',{'className':_0x27b78b(0x224),'children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x22d),'children':_0x3fe769['t']('mcpConfig.configStepTitle')}),_0x30d051('div',{'className':_0x27b78b(0x26d),'children':[_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x26b),'children':[_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x253),'children':'1'}),_0x3fe769['t']('mcpConfig.configStep1')]}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x26b),'children':[_0x2bee5c('span',{'className':_0x27b78b(0x253),'children':'2'}),_0x3fe769['t'](_0x27b78b(0x20d))]}),_0x30d051(_0x27b78b(0x1eb),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x253),'children':'3'}),_0x3fe769['t'](_0x27b78b(0x22f))]})]})]})]}),_0x30d051(_0x27b78b(0x1eb),{'className':'univer-space-y-2','children':[_0x2bee5c('div',{'className':_0x27b78b(0x22d),'children':'MCP\x20Configuration'}),_0x2bee5c('div',{'className':_0x27b78b(0x2c2),'children':_0x2bee5c(_0x27b78b(0x1e7),{'className':_0x27b78b(0x2ef),'children':JSON[_0x27b78b(0x2ab)]({'mcpServers':{'univer':{'url':_0x27b78b(0x2d3)+(_0x5d2b3d||'<SESSION_ID>'),'type':_0x27b78b(0x24a),'headers':{'Authorization':'Bearer\x20'+(_0x37dd77||'<API_KEY>')}}}},null,0x2)})})]}),_0x30d051(_0x27b78b(0x1eb),{'className':'univer-space-y-3','children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x3fe769['t'](_0x27b78b(0x1b3))}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x224),'children':[_0x30d051(_0x27b78b(0x1eb),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x2bee5c('div',{'className':_0x27b78b(0x285)}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x1c8),'children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x2dc),'children':_0x27b78b(0x1ad)}),_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x25b),'children':_0x3fe769['t'](_0x27b78b(0x2b2))})]})]}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x233),'children':[_0x2bee5c(_0x27b78b(0x1eb),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x30d051(_0x27b78b(0x1eb),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x2bee5c('div',{'className':_0x27b78b(0x2dc),'children':_0x27b78b(0x261)}),_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x25b),'children':_0x3fe769['t'](_0x27b78b(0x281))})]})]})]})]})]})]}),_0x2bee5c(_0x297c10,{'onClick':_0x11afb4,'disabled':!_0x4a003d||_0x46bcf4,'className':_0x27b78b(0x2d2),'children':_0x46bcf4?_0x30d051('span',{'className':_0x27b78b(0x26b),'children':[_0x2bee5c(_0x27b78b(0x1a4),{'children':'⟲'}),_0x3fe769['t']('mcpConfig.saving')]}):_0x30d051(_0x27b78b(0x1a4),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2bee5c(le,{}),_0x3fe769['t'](_0x27b78b(0x2bf))]})}),_0x2bee5c(_0x27b78b(0x1eb),{'className':_0x27b78b(0x252),'children':_0x30d051('div',{'className':_0x27b78b(0x198),'children':[_0x2bee5c(_0x27b78b(0x1a4),{'className':_0x27b78b(0x2b7),'children':'💡'}),_0x30d051(_0x27b78b(0x1eb),{'className':_0x27b78b(0x2d1),'children':[_0x2bee5c('div',{'className':'univer-font-medium','children':_0x27b78b(0x27e)}),_0x30d051('div',{'children':['•',_0x3fe769['t']('mcpConfig.note1')]}),_0x30d051(_0x27b78b(0x1eb),{'children':['•',_0x3fe769['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0xc70430(0x284),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0xc70430(0x23e)],tn=(_0x383523,_0x58fc7b,_0x10451c,_0x3b76f1)=>{const _0x1cd3c0=_0xc70430;for(var _0x580269=_0x3b76f1>0x1?void 0x0:_0x3b76f1?rn(_0x58fc7b,_0x10451c):_0x58fc7b,_0x4c2770=_0x383523[_0x1cd3c0(0x1f1)]-0x1,_0xf1447c;_0x4c2770>=0x0;_0x4c2770--)(_0xf1447c=_0x383523[_0x4c2770])&&(_0x580269=_0xf1447c(_0x580269)||_0x580269);return _0x580269;},d=(_0x3440e9,_0x1c56fc)=>(_0x419f86,_0x1f1b9c)=>_0x1c56fc(_0x419f86,_0x1f1b9c,_0x3440e9);const U=_0xc70430(0x2bc),L='mcp-config-dialog';let I=class extends _0xa23c43{constructor(_0x7c03a,_0x2da6bf,_0x1e8194,_0x4aa54f,_0x38913f,_0x5a3110,_0x44a2b8,_0x303b28,_0x4150bc,_0x28e31d){const _0x43694d=_0xc70430;super(),x(this,_0x43694d(0x1a3),new _0x2b5af2(!0x1)),x(this,'_mcpCoreConfig$',new _0x2b5af2({})),x(this,_0x43694d(0x1e9),new _0x2b5af2({})),x(this,'_apiKey$',new _0x2b5af2('')),x(this,_0x43694d(0x25e),async _0x49d703=>{const _0x571a5d=_0x43694d;var _0x2fcb55,_0xd22f36;this['_loading$'][_0x571a5d(0x19e)](!0x0);try{const _0x53a032=await this[_0x571a5d(0x2e0)](_0x49d703);if(!_0x53a032[_0x571a5d(0x2d9)]){this[_0x571a5d(0x21f)][_0x571a5d(0x2d6)]({'type':_0x46b581[_0x571a5d(0x202)],'content':_0x53a032[_0x571a5d(0x243)]||this[_0x571a5d(0x1c9)]['t'](_0x571a5d(0x1df))});return;}_0x49d703[_0x571a5d(0x240)]?await this['_localStorageService'][_0x571a5d(0x2c8)](U,_0x49d703[_0x571a5d(0x240)][_0x571a5d(0x27d)]()):await this[_0x571a5d(0x2ed)][_0x571a5d(0x264)](U),this[_0x571a5d(0x2df)]['next'](((_0x2fcb55=_0x49d703[_0x571a5d(0x240)])==null?void 0x0:_0x2fcb55['trim']())||''),this[_0x571a5d(0x24f)][_0x571a5d(0x267)]({'Authorization':_0x571a5d(0x2a9)+((_0xd22f36=_0x49d703[_0x571a5d(0x240)])==null?void 0x0:_0xd22f36[_0x571a5d(0x27d)]())}),this[_0x571a5d(0x21f)][_0x571a5d(0x2d6)]({'type':_0x46b581[_0x571a5d(0x289)],'content':this[_0x571a5d(0x1c9)]['t'](_0x571a5d(0x1ea))}),setTimeout(()=>{const _0xd38f3=_0x571a5d;this[_0xd38f3(0x1da)]['close'](L);},0x320);}catch(_0x1afc5e){this['_logService']['error'](_0x571a5d(0x1ba),_0x1afc5e),this['_messageService'][_0x571a5d(0x2d6)]({'type':_0x46b581[_0x571a5d(0x202)],'content':this[_0x571a5d(0x1c9)]['t'](_0x571a5d(0x2b4))});}finally{this['_loading$']['next'](!0x1);}}),(this[_0x43694d(0x2a2)]=_0x7c03a,this['_uiPartsService']=_0x2da6bf,this['_configService']=_0x1e8194,this['_localStorageService']=_0x4aa54f,this[_0x43694d(0x1da)]=_0x38913f,this['_messageService']=_0x5a3110,this[_0x43694d(0x1fd)]=_0x44a2b8,this[_0x43694d(0x1c9)]=_0x303b28,this[_0x43694d(0x1f7)]=_0x4150bc,this['_mcpConnectionController']=_0x28e31d,this['_initConfigSync'](),this['_loadStoredApiKey'](),this['_registerComponent']());}[_0xc70430(0x1ef)](){const _0x53c8ff=_0xc70430,_0x447d6a=this['_configService'][_0x53c8ff(0x1b1)](y);_0x447d6a!=null&&_0x447d6a['showDeveloperTools']&&this[_0x53c8ff(0x1da)][_0x53c8ff(0x21b)]({'id':L,'title':{'title':this['_localeService']['t'](_0x53c8ff(0x235))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x47896c=_0x53c8ff;this['_dialogService'][_0x47896c(0x1c4)](L);}});}[_0xc70430(0x21d)](){const _0x2218e5=_0xc70430;return this['_mcpCoreConfig$'][_0x2218e5(0x2b6)];}[_0xc70430(0x2e3)](){const _0x25b8a9=_0xc70430;this[_0x25b8a9(0x29e)](this[_0x25b8a9(0x1fd)][_0x25b8a9(0x2eb)](_0x25b8a9(0x218),this[_0x25b8a9(0x249)]()));}[_0xc70430(0x249)](){const _0x3a83b4=_0xc70430;return _0x2902af(()=>{const _0x114ceb=_0x2fba;var _0x23f496,_0x591529,_0x2927f2;return _0x2bee5c(nn,{'config':this[_0x114ceb(0x1e9)][_0x114ceb(0x2b6)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x114ceb(0x2b6)],'currentApiKey$':this[_0x114ceb(0x2df)],'onSave':this['_handleConfigSave'],'loading':this[_0x114ceb(0x1a3)][_0x114ceb(0x2b6)],'connectionStatus$':(_0x23f496=this['_mcpConnectionController'])==null?void 0x0:_0x23f496[_0x114ceb(0x1a2)],'connectionError$':(_0x591529=this[_0x114ceb(0x24f)])==null?void 0x0:_0x591529['connectionError$'],'currentSessionId$':(_0x2927f2=this[_0x114ceb(0x24f)])==null?void 0x0:_0x2927f2[_0x114ceb(0x259)]});},this[_0x3a83b4(0x2a2)]);}[_0xc70430(0x296)](){const _0x4107cf=_0xc70430;this[_0x4107cf(0x29e)](this[_0x4107cf(0x1e4)][_0x4107cf(0x1ec)](_0x1aec7d)[_0x4107cf(0x283)](_0xbbae7f=>{const _0x41d70d=_0x4107cf;this[_0x41d70d(0x1c0)][_0x41d70d(0x19e)](_0xbbae7f||{});}));const _0x59380b=this[_0x4107cf(0x1e4)][_0x4107cf(0x1b1)](_0x1aec7d);this['_mcpCoreConfig$']['next'](_0x59380b||{}),this[_0x4107cf(0x29e)](this[_0x4107cf(0x1e4)][_0x4107cf(0x1ec)](y)[_0x4107cf(0x283)](_0x22d207=>{const _0x415253=_0x4107cf;this[_0x415253(0x1e9)][_0x415253(0x19e)](_0x22d207||{});}));const _0x4a7320=this[_0x4107cf(0x1e4)][_0x4107cf(0x1b1)](y);this['_config$'][_0x4107cf(0x19e)](_0x4a7320||{});}async[_0xc70430(0x279)](){const _0x2cbd0d=_0xc70430,_0x3cbf5b=this[_0x2cbd0d(0x1e4)][_0x2cbd0d(0x1b1)](y);if(!(_0x3cbf5b!=null&&_0x3cbf5b['showDeveloperTools']))return;const _0xf83c8b=await this[_0x2cbd0d(0x2ed)][_0x2cbd0d(0x2b3)](U);_0xf83c8b&&(this[_0x2cbd0d(0x24f)][_0x2cbd0d(0x267)]({'Authorization':_0x2cbd0d(0x2a9)+_0xf83c8b}),this[_0x2cbd0d(0x2df)][_0x2cbd0d(0x19e)](_0xf83c8b));}async[_0xc70430(0x2e0)](_0x35c8b7){const _0x13fd8a=_0xc70430;if(!_0x35c8b7[_0x13fd8a(0x240)]||_0x35c8b7[_0x13fd8a(0x240)][_0x13fd8a(0x27d)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x13fd8a(0x1c9)]['t'](_0x13fd8a(0x2e1))};if(_0x35c8b7['apiKey'][_0x13fd8a(0x27d)]()[_0x13fd8a(0x1f1)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x13fd8a(0x1c9)]['t'](_0x13fd8a(0x1dc))};try{const _0x2c4814=await this[_0x13fd8a(0x2a2)]['get'](_0x4ccb5d)[_0x13fd8a(0x22a)](_0x35c8b7[_0x13fd8a(0x240)][_0x13fd8a(0x27d)]());return _0x2c4814[_0x13fd8a(0x2d9)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2c4814[_0x13fd8a(0x28c)]||this[_0x13fd8a(0x1c9)]['t'](_0x13fd8a(0x19b))};}catch(_0x2ee456){return console[_0x13fd8a(0x2ea)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x2ee456),{'isValid':!0x0};}}};I=tn([d(0x0,_0x4ec27f(_0x2ea9cd)),d(0x1,_0xcca592),d(0x2,_0x1b1405),d(0x3,_0x119742),d(0x4,_0x2d458a),d(0x5,_0x46ab61),d(0x6,_0x4ec27f(_0x5479c5)),d(0x7,_0x4ec27f(_0x3ca3c0)),d(0x8,_0x3e3adb),d(0x9,_0x4ec27f(_0x4ccb5d))],I);const V={'id':_0xc70430(0x24b),'type':_0x24bcf0['COMMAND'],'handler':async(_0x1e5c9d,_0x3f3f4b)=>(_0x1e5c9d[_0xc70430(0x20e)](I)[_0xc70430(0x1ef)](),!0x0)};function pe(_0x34734e,_0x1790e5){const _0x345c48=_0xc70430;switch(_0x34734e){case _0x1fd146[_0x345c48(0x2e8)]:return _0x345c48(0x1fe);case _0x1fd146['CONNECTING']:return _0x345c48(0x1b2);case _0x1fd146[_0x345c48(0x2c9)]:return _0x345c48(0x1a8);case _0x1fd146['FAILED']:switch(_0x1790e5){case _0x37cda4['UNAUTHORIZED']:return _0x345c48(0x28e);case _0x37cda4[_0x345c48(0x19f)]:return'mcpStatus.sessionOccupied';case _0x37cda4[_0x345c48(0x1de)]:return'mcpStatus.networkError';case _0x37cda4[_0x345c48(0x1fb)]:return'mcpStatus.maxRetriesExceeded';default:return _0x345c48(0x2e2);}case _0x1fd146[_0x345c48(0x1e6)]:return _0x345c48(0x1a9);default:return'mcpStatus.unknown';}}function on(_0x539fde,_0xffe4cf,_0x5add93,_0x2c0f0d=!0x0){const _0x3b27f3=_0xc70430,_0x5ddf5d=pe(_0x539fde,_0xffe4cf),_0x4598bf=_0x5add93['t'](_0x5ddf5d);return _0x2c0f0d?_0x539fde===_0x1fd146['DISCONNECTED']&&_0xffe4cf===_0x37cda4[_0x3b27f3(0x1c3)]?_0x4598bf+_0x3b27f3(0x22e)+_0x5add93['t'](_0x3b27f3(0x2e9)):_0x539fde===_0x1fd146[_0x3b27f3(0x2c9)]?''+_0x4598bf:_0x539fde===_0x1fd146[_0x3b27f3(0x2e8)]||_0x539fde===_0x1fd146[_0x3b27f3(0x20c)]?_0x4598bf+_0x3b27f3(0x22e)+_0x5add93['t']('mcpStatus.clickToConnect'):_0x4598bf:_0x4598bf;}function _0x22b3(){const _0x3d4272=['univer-text-xs\x20univer-text-gray-500','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','Save\x20Configuration','_handleConfigSave','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.connectionStatus.connected','Authorization:','assign','Connected','removeItem','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','__setCustomHeaders','_blank','重连中...','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-items-center\x20univer-gap-2','几秒钟内获取您的\x20API\x20密钥','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','toString','MCP\x20Configuration','Univer\x20AI\x20控制台','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','18GeNgIr','启用身份验证','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.connectionStatus.failed','registerCommand','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_loadStoredApiKey','univer-text-blue-600','MCP\x20连接中...','CloseIcon','trim','Configuration\x20Notes:','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','string','mcpConfig.authorizationDescription','MCP\x20状态未知','subscribe','mcp-ui.config','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-flex\x20univer-items-center','univer-flex\x20univer-flex-wrap\x20univer-gap-2','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Success','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','306GXdneA','error','replace','mcpStatus.unauthorized','tag','MCP\x20Disconnected','mcpConfig.description','onStarting','mcpConfig.apiApplyInfo.univerAiLabel','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','348fYrwnr','_initConfigSync','setConfig','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','连接失败','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.apiApplyInfo.title','currentColor','配置\x20MCP\x20使用\x20AI\x20操作电子表格','disposeWithMe','svg','push','MCP_UI_PLUGIN','_injector','_initAutoConnect','MCP:\x20Max\x20Retries\x20Exceeded','univer-shrink-0\x20univer-text-red-500','displayName','univer-space-y-3','网络连接错误,请检查您的网络连接','Bearer\x20','MCP\x20Connection\x20Failed','stringify','MCP\x20Unknown\x20Status','HEADER_MENU','API\x20密钥无效,请检查密钥是否正确','univer-text-gray-500','1em','bottom','mcpConfig.sessionIdDescription','getItem','mcpConfig.configError','配置保存成功','value','univer-shrink-0\x20univer-text-blue-500','Saving...','symbol','2315013gRsZVF','什么是\x20API\x20密钥?','mcp.apiKey','substring','fill','mcpConfig.save','univer-text-xs\x20univer-text-gray-600','77LflUZs','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','CheckMarkIcon','您的\x20API\x20密钥将在此浏览器中本地存储','defineProperty','API\x20密钥长度至少需要\x2010\x20位','forEach','setItem','CONNECTED','idSuffix','url(#$1','What\x20is\x20API\x20Key?','children','您的\x20API\x20密钥安全存储在本地存储中','OTHERS','mcpConfig.connectionError.unauthorized','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','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','https://mcp.univer.ai/mcp/?univer_session_id=','点击配置\x20MCP','最大重试次数','show','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','_initStatusComponent','isValid','会话ID','defs','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','124088tZqCkZ','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','_apiKey$','_validateConfig','mcpConfig.validation.apiKeyRequired','mcpStatus.failed','_registerComponent','_uiPartsService','univer.ai','Session\x20ID','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','DISCONNECTED','mcpStatus.clickToConfigure','warn','register','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','_localStorageService','off-line-icon_clip0_910_343','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpConfig.apiKeyPlaceholder','mcpConfig.apiKeyHint','Retrying...','url(#off-line-icon_clip0_910_343)','配置保存失败','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20configuration','univer-flex\x20univer-gap-3','MCP\x20Connected','univer-text-gray-400','mcpConfig.validation.invalidApiKey','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','MCP\x20Connecting...','next','SESSION_ID_OCCUPIED','NONE','univer.plus','connectionStatus$','_loading$','span','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','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','univerjs-icon\x20univerjs-icon-','mcpStatus.connected','mcpStatus.retrying','MCP:\x20Unauthorized','showDeveloperTools','0\x200\x2016\x2016','univer_session_id:','带有\x20Bearer\x20前缀的\x20API\x20密钥。','612776yOrNyz','map','getConfig','mcpStatus.connecting','mcpConfig.configParameters','entries','evenodd','Enable\x20Authentication','MCP:\x20Network\x20Error','2140460aeFzvL','translate(.97)','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP:\x20超出最大重试次数','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-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_mcpCoreConfig$','univer-size-2\x20univer-rounded-full','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','UNAUTHORIZED','close','MCP\x20已连接','MCP:\x20未授权','attrs','univer-min-w-0\x20univer-flex-1','_localeService','univer-size-4','7756425BqHeDT','use','univer-space-y-5','noopener\x20noreferrer','univer-bg-red-500','_connectionController','defIds','M0\x200H16V16H0z','MCP\x20Client\x20Configuration','enableAutoConnect','MCP\x20连接失败','权限验证失败,请检查您的\x20API\x20密钥','univer-text-yellow-500','CONNECTING','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','_dialogService','check-mark-icon','mcpConfig.validation.apiKeyTooShort','已连接','NETWORK_ERROR','mcpConfig.validation.invalidConfig','mcpServerUrl','未连接','none','_handleConfigure','_configService','mcpConfig.connectionError.sessionOccupied','RETRYING','pre','重启您的\x20MCP\x20客户端以使配置生效','_config$','mcpConfig.configSaved','div','subscribeConfigValue$','Configuration\x20saved\x20successfully','Copy\x20the\x20JSON\x20configuration\x20below','showConfigPanel','938861PnWzyP','length','_config','_commandService','https://console.univer.plus','Configuration\x20Steps:','Configuration\x20Parameters:','_logService','current','mask','xlink:href','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_componentManager','mcpStatus.disconnected','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','启用身份验证以获得安全连接','connectionError$','Error','超出最大重试次数,请稍后再试','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','将以下配置添加到您的\x20MCP\x20客户端设置中:','API\x20密钥不能为空','white','mcpConfig.connectionError.networkError','colorChannel1','配置无效','univer-bg-blue-500','FAILED','mcpConfig.configStep2','get','univer-text-sm\x20univer-font-medium','text','MCP\x20重连中...','保存中...','http://www.w3.org/2000/svg','has','MenuIcon','univer-flex-1','mcpConfig.connectionInfo','MCPConfigPanel','univer-flex\x20univer-items-start\x20univer-gap-2','API\x20key\x20with\x20Bearer\x20prefix.','open','univer-space-y-4','getCurrentConfig','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_messageService','off','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20配置','includes','univer-space-y-2','配置步骤:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','help-icon','mcpConfig.connectionStatus.connecting','UniverIcon','validateApiKey','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','BUTTON','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','\x20-\x20','mcpConfig.configStep3','on-line-icon_clip0_910_349','_menuManagerService','clipPath','univer-flex\x20univer-items-start\x20univer-gap-3','API\x20密钥','mcpConfig.title','Failed\x20to\x20save\x20configuration','_initializeCommands','Disconnected','add','https://console.univer.ai','请输入您的\x20API\x20密钥','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Univer\x20AI\x20Console','getOwnPropertyDescriptor','univer-text-red-500','apiKey','off-line-icon','mcpConfig.connectionError.maxRetriesExceeded','errorMessage','API\x20key\x20is\x20required','0\x200\x2017\x2016','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','1296feupro','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','_createConfigPanelComponent','http','mcp-ui.command.openConfigPanel','button','Connection\x20Failed','配置更改将立即生效','_mcpConnectionController','_initializeMenus','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-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','Click\x20to\x20connect\x20MCP','univer-text-white','path','MCP:\x20网络错误','round','sessionId$','OffLineIcon'];_0x22b3=function(){return _0x3d4272;};return _0x22b3();}function sn(_0x88798a){const _0x7e0530=_0xc70430;switch(_0x88798a){case _0x1fd146[_0x7e0530(0x2c9)]:return'univer-text-green-500';case _0x1fd146['CONNECTING']:case _0x1fd146[_0x7e0530(0x1e6)]:return _0x7e0530(0x1d7);case _0x1fd146[_0x7e0530(0x20c)]:case _0x1fd146['DISCONNECTED']:return'univer-text-red-500';default:return _0x7e0530(0x2af);}}function cn(_0x195878){const _0x11a583=_0xc70430,{status$:_0x1ae3ac,error$:_0x4f9ebd,onConfigure:_0x35c9c8,showClickable:_0x1b6449=!0x0}=_0x195878,_0x1eacd8=_0xaeeec6(_0x1ae3ac,_0x1fd146[_0x11a583(0x2e8)]),_0x1ea81a=_0xaeeec6(_0x4f9ebd,_0x37cda4[_0x11a583(0x1a0)]),_0x121a1d=_0x424c48(_0x3ca3c0),_0x122a31=_0x1eacd8===_0x1fd146['CONNECTED'];_0x1eacd8===_0x1fd146[_0x11a583(0x1d8)]||_0x1fd146[_0x11a583(0x1e6)];const _0x206a8b=_0x121a1d['t'](pe(_0x1eacd8,_0x1ea81a)),_0x389f44=on(_0x1eacd8,_0x1ea81a,_0x121a1d,_0x1b6449),_0x2aeb9e=sn(_0x1eacd8),_0x219194=_0x122a31?_0x2bee5c(ge,{}):_0x2bee5c(de,{}),_0x8ff7=_0x48e070(()=>{_0x1b6449&&_0x35c9c8&&_0x35c9c8();},[_0x1b6449,_0x35c9c8]);function _0x35d98a(){const _0x482357=_0x11a583;return _0x30d051(_0x482357(0x1eb),{'className':_0x29c14e(_0x482357(0x286),_0x1b6449&&_0x35c9c8&&_0x482357(0x23c)),'role':_0x482357(0x24c),'onClick':_0x1b6449&&_0x35c9c8?_0x8ff7:void 0x0,'children':[_0x2bee5c(_0x482357(0x1eb),{'className':_0x29c14e('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x2aeb9e),'children':_0x219194}),_0x2bee5c(_0x482357(0x1eb),{'className':_0x482357(0x278),'children':_0x206a8b})]});}return _0x2bee5c(_0x315236,{'title':_0x389f44,'placement':_0x11a583(0x2b1),'children':_0x35d98a()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x257aaf,_0x2baa32,_0x5a9b84,_0x189982)=>{const _0x2f53a7=_0xc70430;for(var _0x33bc12=_0x189982>0x1?void 0x0:_0x189982?an(_0x2baa32,_0x5a9b84):_0x2baa32,_0x341a13=_0x257aaf[_0x2f53a7(0x1f1)]-0x1,_0x3f1de2;_0x341a13>=0x0;_0x341a13--)(_0x3f1de2=_0x257aaf[_0x341a13])&&(_0x33bc12=_0x3f1de2(_0x33bc12)||_0x33bc12);return _0x33bc12;},M=(_0x539000,_0xb306fb)=>(_0xbe93d1,_0x3acab2)=>_0xb306fb(_0xbe93d1,_0x3acab2,_0x539000);let O=class extends _0xa23c43{constructor(_0x13abd7,_0x57742a,_0x5e26e2,_0x544e61){const _0x25cbb5=_0xc70430;super(),this['_injector']=_0x13abd7,this[_0x25cbb5(0x1d0)]=_0x57742a,this[_0x25cbb5(0x2e4)]=_0x5e26e2,this['_configService']=_0x544e61,this[_0x25cbb5(0x2a3)](),this[_0x25cbb5(0x2d8)]();}['_initAutoConnect'](){const _0x169607=_0xc70430,_0x31dfba=this[_0x169607(0x1e4)][_0x169607(0x1b1)](y);_0x31dfba!=null&&_0x31dfba[_0x169607(0x1ab)]&&(this[_0x169607(0x1d0)][_0x169607(0x1d4)]=!0x1);}[_0xc70430(0x2d8)](){const _0x31fcc9=_0xc70430,_0x5b7793=this[_0x31fcc9(0x1e4)][_0x31fcc9(0x1b1)](y);(_0x5b7793==null?void 0x0:_0x5b7793['showStatus'])!==!0x1&&this[_0x31fcc9(0x29e)](this[_0x31fcc9(0x2e4)]['registerComponent'](_0x184ac4[_0x31fcc9(0x2ad)],()=>{const _0xecd3c1=_0x31fcc9;var _0x317f8e;return _0x2902af(un({'status$':this[_0xecd3c1(0x1d0)][_0xecd3c1(0x1a2)],'error$':this['_connectionController'][_0xecd3c1(0x201)],'onConfigure':()=>this[_0xecd3c1(0x1e3)](),'showClickable':(_0x317f8e=_0x5b7793==null?void 0x0:_0x5b7793[_0xecd3c1(0x1ab)])!=null?_0x317f8e:!0x1}),this['_injector']);}));}[_0xc70430(0x1e3)](){const _0x13ae28=_0xc70430;this[_0x13ae28(0x2a2)][_0x13ae28(0x20e)](I)[_0x13ae28(0x1ef)]();}};O=ln([M(0x0,_0x4ec27f(_0x2ea9cd)),M(0x1,_0x4ec27f(_0x4ccb5d)),M(0x2,_0xcca592),M(0x3,_0x1b1405)],O);function un(_0x14a322){const {status$:_0x568e8f,error$:_0x2e1b96,onConfigure:_0x1c1ded,showClickable:_0x323c6a}=_0x14a322;return function(){return _0x2bee5c(cn,{'status$':_0x568e8f,'error$':_0x2e1b96,'onConfigure':_0x1c1ded,'showClickable':_0x323c6a});};}function vn(_0x3cac03){const _0x45fb0d=_0xc70430;return{'id':V['id'],'type':_0x3968d8[_0x45fb0d(0x22c)],'icon':_0x45fb0d(0x215),'title':_0x45fb0d(0x235),'tooltip':_0x45fb0d(0x235)};}const dn={[_0xc7b462[_0xc70430(0x2cf)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0xc70430(0x23e)],pn=(_0x1ca75d,_0x389b9e,_0x569bd1,_0x4c8775)=>{const _0x463c6a=_0xc70430;for(var _0x4d663b=_0x4c8775>0x1?void 0x0:_0x4c8775?gn(_0x389b9e,_0x569bd1):_0x389b9e,_0x47a75c=_0x1ca75d[_0x463c6a(0x1f1)]-0x1,_0x3f5a99;_0x47a75c>=0x0;_0x47a75c--)(_0x3f5a99=_0x1ca75d[_0x47a75c])&&(_0x4d663b=_0x3f5a99(_0x4d663b)||_0x4d663b);return _0x4d663b;},re=(_0xa5984e,_0xd41b36)=>(_0x37698c,_0xafa282)=>_0xd41b36(_0x37698c,_0xafa282,_0xa5984e);let D=class extends _0xa23c43{constructor(_0x37543d,_0x200028){const _0x184d87=_0xc70430;super(),this[_0x184d87(0x1f3)]=_0x37543d,this[_0x184d87(0x231)]=_0x200028,this[_0x184d87(0x237)](),this[_0x184d87(0x250)]();}['_initializeCommands'](){const _0x152ae5=_0xc70430;[V][_0x152ae5(0x2c7)](_0x3c310d=>{const _0x37727a=_0x152ae5;this[_0x37727a(0x29e)](this['_commandService'][_0x37727a(0x277)](_0x3c310d));});}[_0xc70430(0x250)](){const _0xbc0ed7=_0xc70430;this[_0xbc0ed7(0x231)]['mergeMenu'](dn);}};D=pn([re(0x0,_0x46583b),re(0x1,_0x57aeeb)],D);const Mn={'mcpStatus':{'disconnected':_0xc70430(0x290),'connecting':_0xc70430(0x19d),'connected':_0xc70430(0x199),'failed':_0xc70430(0x2aa),'retrying':'MCP\x20Retrying...','unknown':_0xc70430(0x2ac),'unauthorized':_0xc70430(0x1aa),'sessionOccupied':_0xc70430(0x29a),'networkError':_0xc70430(0x1b7),'maxRetriesExceeded':_0xc70430(0x2a4),'clickToConnect':_0xc70430(0x254),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0xc70430(0x26f),'description':_0xc70430(0x226),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0xc70430(0x25f),'enableAuth':_0xc70430(0x1b6),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xc70430(0x1d3),'mcpClientConfig':_0xc70430(0x1d3),'configInstructions':_0xc70430(0x204),'configStepTitle':_0xc70430(0x1f5),'configStep1':_0xc70430(0x1ee),'configStep2':_0xc70430(0x265),'configStep3':_0xc70430(0x2ec),'sessionId':_0xc70430(0x2e6),'sessionIdDescription':_0xc70430(0x2de),'authorizationDescription':_0xc70430(0x21a),'configParameters':_0xc70430(0x1f6),'maxRetries':'Max\x20Retries','save':_0xc70430(0x25d),'saving':_0xc70430(0x2b8),'note1':_0xc70430(0x221),'note2':_0xc70430(0x1a5),'configSaved':_0xc70430(0x1ed),'configError':_0xc70430(0x236),'apiApplyInfo':{'title':_0xc70430(0x2cc),'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':_0xc70430(0x23d),'getStarted':_0xc70430(0x196)},'validation':{'apiKeyRequired':_0xc70430(0x244),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0xc70430(0x197),'invalidApiKey':_0xc70430(0x1be)},'connectionStatus':{'disconnected':_0xc70430(0x238),'connecting':'Connecting...','connected':_0xc70430(0x263),'failed':_0xc70430(0x24d),'retrying':_0xc70430(0x2f2)},'connectionError':{'unauthorized':_0xc70430(0x1bf),'sessionOccupied':_0xc70430(0x248),'networkError':_0xc70430(0x1c2),'maxRetriesExceeded':_0xc70430(0x288)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0xc70430(0x27b),'connected':_0xc70430(0x1c5),'failed':_0xc70430(0x1d5),'retrying':_0xc70430(0x211),'unknown':_0xc70430(0x282),'unauthorized':_0xc70430(0x1c6),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0xc70430(0x257),'maxRetriesExceeded':_0xc70430(0x1bb),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0xc70430(0x2d4)},'mcpConfig':{'title':_0xc70430(0x222),'description':_0xc70430(0x29d),'apiKey':_0xc70430(0x234),'apiKeyPlaceholder':_0xc70430(0x23b),'apiKeyHint':_0xc70430(0x2c4),'enableAuth':_0xc70430(0x273),'enableAuthHint':_0xc70430(0x200),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0xc70430(0x205),'configStepTitle':_0xc70430(0x225),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0xc70430(0x1e8),'sessionId':_0xc70430(0x2da),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0xc70430(0x1ae),'configParameters':'配置参数:','maxRetries':_0xc70430(0x2d5),'save':'保存配置','saving':_0xc70430(0x212),'note1':_0xc70430(0x24e),'note2':_0xc70430(0x2ce),'configSaved':_0xc70430(0x2b5),'configError':_0xc70430(0x195),'apiApplyInfo':{'title':_0xc70430(0x2bb),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0xc70430(0x270),'getStarted':_0xc70430(0x26c)},'validation':{'apiKeyRequired':_0xc70430(0x206),'apiKeyTooShort':_0xc70430(0x2c6),'invalidConfig':_0xc70430(0x20a),'invalidApiKey':_0xc70430(0x2ae)},'connectionStatus':{'disconnected':_0xc70430(0x1e1),'connecting':'连接中...','connected':_0xc70430(0x1dd),'failed':_0xc70430(0x299),'retrying':_0xc70430(0x269)},'connectionError':{'unauthorized':_0xc70430(0x1d6),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0xc70430(0x2a8),'maxRetriesExceeded':_0xc70430(0x203)}}};var fn=Object[_0xc70430(0x2c5)],hn=Object[_0xc70430(0x23e)],Cn=(_0x51864a,_0x1e31b6,_0x357538)=>_0x1e31b6 in _0x51864a?fn(_0x51864a,_0x1e31b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x357538}):_0x51864a[_0x1e31b6]=_0x357538,mn=(_0x4c53f8,_0x4a8d73,_0x18d015,_0x5ad376)=>{for(var _0x34a2dc=_0x5ad376>0x1?void 0x0:_0x5ad376?hn(_0x4a8d73,_0x18d015):_0x4a8d73,_0x14339e=_0x4c53f8['length']-0x1,_0x230803;_0x14339e>=0x0;_0x14339e--)(_0x230803=_0x4c53f8[_0x14339e])&&(_0x34a2dc=_0x230803(_0x34a2dc)||_0x34a2dc);return _0x34a2dc;},P=(_0x462e50,_0x706166)=>(_0x201ff3,_0x22bb80)=>_0x706166(_0x201ff3,_0x22bb80,_0x462e50),_n=(_0x1696a5,_0x51afad,_0x2caeb9)=>Cn(_0x1696a5,_0x51afad+'',_0x2caeb9);let j=class extends _0x366cc9{constructor(_0x738661=ie,_0x4cd9cc,_0x585803,_0x576c0b,_0x130061,_0x44083e){const _0x2ea431=_0xc70430;super(),this['_config']=_0x738661,this['_injector']=_0x4cd9cc,this[_0x2ea431(0x1e4)]=_0x585803,this[_0x2ea431(0x2e4)]=_0x576c0b,this[_0x2ea431(0x2ed)]=_0x130061,this[_0x2ea431(0x1c9)]=_0x44083e;const {..._0x5050d6}=_0x3c61f2({},ie,this[_0x2ea431(0x1f2)]);this[_0x2ea431(0x1e4)][_0x2ea431(0x297)](y,_0x5050d6);}async[_0xc70430(0x292)](){const _0x4039ab=_0xc70430,_0x113de4=[[O],[I],[D]];this[_0x4039ab(0x2a2)][_0x4039ab(0x214)](_0x1e64d4)||_0x113de4[_0x4039ab(0x2a0)]([_0x1e64d4,{'useClass':_0x897e1b}]),_0x113de4[_0x4039ab(0x2c7)](_0x1e13fd=>this[_0x4039ab(0x2a2)][_0x4039ab(0x239)](_0x1e13fd)),this['_injector'][_0x4039ab(0x20e)](O),this[_0x4039ab(0x2a2)][_0x4039ab(0x20e)](I),this[_0x4039ab(0x2a2)][_0x4039ab(0x20e)](D);}};_n(j,'pluginName',_0xc70430(0x2a1)),j=mn([_0x370e16(_0x23c55e),P(0x1,_0x4ec27f(_0x2ea9cd)),P(0x2,_0x1b1405),P(0x3,_0xcca592),P(0x4,_0x119742),P(0x5,_0x4ec27f(_0x3ca3c0))],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 +1 @@
1
- const _0x16c437=_0x24f5;(function(_0x4897f2,_0x59bc31){const _0xfa24a7=_0x24f5,_0xf8933=_0x4897f2();while(!![]){try{const _0x276880=parseInt(_0xfa24a7(0x1f3))/0x1+parseInt(_0xfa24a7(0x205))/0x2+parseInt(_0xfa24a7(0x20b))/0x3*(parseInt(_0xfa24a7(0x1ec))/0x4)+parseInt(_0xfa24a7(0x209))/0x5+parseInt(_0xfa24a7(0x1ed))/0x6+parseInt(_0xfa24a7(0x207))/0x7*(parseInt(_0xfa24a7(0x206))/0x8)+-parseInt(_0xfa24a7(0x20e))/0x9;if(_0x276880===_0x59bc31)break;else _0xf8933['push'](_0xf8933['shift']());}catch(_0x4fc3e6){_0xf8933['push'](_0xf8933['shift']());}}}(_0x4f87,0x2c5b3));function _0x4f87(){const _0x1ed50b=['MCP\x20Connecting...','9894519yGhfQN','What\x20is\x20API\x20Key?','Invalid\x20configuration','Configuration\x20Steps:','Click\x20to\x20configure\x20MCP','Univer\x20AI\x20Console','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Network\x20Error','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Unauthorized','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Disconnected','MCP\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','10532qvHHwL','2146032TxUnYo','Enable\x20Authentication','MCP:\x20Session\x20ID\x20Occupied','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connected','Connecting...','198300EeJpBv','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20connect\x20MCP','Saving...','Retrying...','Configuration\x20Parameters:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Max\x20Retries','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enter\x20your\x20API\x20key','Failed\x20to\x20save\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','258326RLgtjN','24zhADzd','308203wXPYuH','Disconnected','950100yQbhos','MCP\x20Retrying...','312RDKjBM','Get\x20your\x20API\x20key\x20in\x20seconds'];_0x4f87=function(){return _0x1ed50b;};return _0x4f87();}function _0x24f5(_0x4c62f6,_0x4f0e8b){_0x4c62f6=_0x4c62f6-0x1e5;const _0x4f877f=_0x4f87();let _0x24f507=_0x4f877f[_0x4c62f6];return _0x24f507;}const e={'mcpStatus':{'disconnected':_0x16c437(0x1e9),'connecting':_0x16c437(0x20d),'connected':_0x16c437(0x1f1),'failed':'MCP\x20Connection\x20Failed','retrying':_0x16c437(0x20a),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x16c437(0x1e7),'sessionOccupied':_0x16c437(0x1ef),'networkError':_0x16c437(0x1e5),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x16c437(0x1f8),'clickToConfigure':_0x16c437(0x212)},'mcpConfig':{'title':_0x16c437(0x1ea),'description':_0x16c437(0x1f4),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x16c437(0x200),'apiKeyHint':_0x16c437(0x215),'enableAuth':_0x16c437(0x1ee),'enableAuthHint':_0x16c437(0x1fe),'connectionInfo':_0x16c437(0x1f5),'mcpClientConfig':_0x16c437(0x1f5),'configInstructions':_0x16c437(0x1e8),'configStepTitle':_0x16c437(0x211),'configStep1':_0x16c437(0x1f0),'configStep2':_0x16c437(0x203),'configStep3':_0x16c437(0x1e6),'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':_0x16c437(0x1f7),'configParameters':_0x16c437(0x1fb),'maxRetries':_0x16c437(0x1fd),'save':'Save\x20Configuration','saving':_0x16c437(0x1f9),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x16c437(0x204),'configSaved':_0x16c437(0x1f6),'configError':_0x16c437(0x201),'apiApplyInfo':{'title':_0x16c437(0x20f),'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':_0x16c437(0x213),'getStarted':_0x16c437(0x20c)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x16c437(0x1ff),'invalidConfig':_0x16c437(0x210),'invalidApiKey':_0x16c437(0x214)},'connectionStatus':{'disconnected':_0x16c437(0x208),'connecting':_0x16c437(0x1f2),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x16c437(0x1fa)},'connectionError':{'unauthorized':_0x16c437(0x1eb),'sessionOccupied':_0x16c437(0x202),'networkError':_0x16c437(0x1fc),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
1
+ const _0x1642b8=_0x3a9f;(function(_0xce2bb6,_0x41409a){const _0x4709cd=_0x3a9f,_0x19f4dd=_0xce2bb6();while(!![]){try{const _0x45f566=parseInt(_0x4709cd(0xa6))/0x1+parseInt(_0x4709cd(0x9f))/0x2+-parseInt(_0x4709cd(0xa5))/0x3+parseInt(_0x4709cd(0xbc))/0x4*(parseInt(_0x4709cd(0xa0))/0x5)+parseInt(_0x4709cd(0xaf))/0x6+parseInt(_0x4709cd(0xa9))/0x7*(-parseInt(_0x4709cd(0xcb))/0x8)+-parseInt(_0x4709cd(0xb9))/0x9*(parseInt(_0x4709cd(0xc5))/0xa);if(_0x45f566===_0x41409a)break;else _0x19f4dd['push'](_0x19f4dd['shift']());}catch(_0x1938f1){_0x19f4dd['push'](_0x19f4dd['shift']());}}}(_0x2f25,0xef190));function _0x2f25(){const _0x408a56=['Failed\x20to\x20save\x20configuration','15356061TbudtX','Configuration\x20saved\x20successfully','Retrying...','172zRMSil','MCP:\x20Unauthorized','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20is\x20required','Invalid\x20configuration','10ScHDHv','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','8669288IorLWZ','MCP\x20Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connected','Click\x20to\x20connect\x20MCP','Click\x20to\x20configure\x20MCP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Unknown\x20Status','Connecting...','MCP:\x20Network\x20Error','Max\x20Retries','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1469438KZczYa','125695CKmyeT','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Save\x20Configuration','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','4241565NFSxNs','1649045jZDdXU','MCP\x20Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','7SXfqri','Enter\x20your\x20API\x20key','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key','10310088XCmGtp','Configuration\x20Parameters:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Univer\x20AI\x20Console','MCP\x20Retrying...','MCP\x20Connection\x20Failed','Configuration\x20Steps:','Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds'];_0x2f25=function(){return _0x408a56;};return _0x2f25();}function _0x3a9f(_0xfd3bb1,_0xe7909d){_0xfd3bb1=_0xfd3bb1-0x9d;const _0x2f25fe=_0x2f25();let _0x3a9ffd=_0x2f25fe[_0xfd3bb1];return _0x3a9ffd;}const e={'mcpStatus':{'disconnected':_0x1642b8(0xcc),'connecting':_0x1642b8(0xa7),'connected':_0x1642b8(0xab),'failed':_0x1642b8(0xb4),'retrying':_0x1642b8(0xb3),'unknown':_0x1642b8(0xd2),'unauthorized':_0x1642b8(0xbd),'sessionOccupied':_0x1642b8(0xca),'networkError':_0x1642b8(0xd4),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x1642b8(0xcf),'clickToConfigure':_0x1642b8(0xd0)},'mcpConfig':{'title':_0x1642b8(0xc9),'description':_0x1642b8(0xc6),'apiKey':_0x1642b8(0xae),'apiKeyPlaceholder':_0x1642b8(0xaa),'apiKeyHint':_0x1642b8(0xd1),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x1642b8(0xc8),'connectionInfo':_0x1642b8(0xc1),'mcpClientConfig':_0x1642b8(0xc1),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1642b8(0xb5),'configStep1':_0x1642b8(0xad),'configStep2':_0x1642b8(0xac),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x1642b8(0x9e),'authorizationDescription':_0x1642b8(0xbe),'configParameters':_0x1642b8(0xb0),'maxRetries':_0x1642b8(0x9d),'save':_0x1642b8(0xa2),'saving':'Saving...','note1':_0x1642b8(0xbf),'note2':_0x1642b8(0xc2),'configSaved':_0x1642b8(0xba),'configError':_0x1642b8(0xb8),'apiApplyInfo':{'title':_0x1642b8(0xa3),'description':_0x1642b8(0xc7),'univerAiLabel':_0x1642b8(0xb2),'getStarted':_0x1642b8(0xb7)},'validation':{'apiKeyRequired':_0x1642b8(0xc3),'apiKeyTooShort':_0x1642b8(0xc0),'invalidConfig':_0x1642b8(0xc4),'invalidApiKey':_0x1642b8(0xa1)},'connectionStatus':{'disconnected':_0x1642b8(0xb6),'connecting':_0x1642b8(0xd3),'connected':_0x1642b8(0xce),'failed':'Connection\x20Failed','retrying':_0x1642b8(0xbb)},'connectionError':{'unauthorized':_0x1642b8(0xa8),'sessionOccupied':_0x1642b8(0xcd),'networkError':_0x1642b8(0xb1),'maxRetriesExceeded':_0x1642b8(0xa4)}}},n=e;export{n as default};