@univerjs-pro/mcp-ui 0.18.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/sk-SK.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ja-JP.js +1 -1
  21. package/lib/es/locale/ko-KR.js +1 -1
  22. package/lib/es/locale/ru-RU.js +1 -1
  23. package/lib/es/locale/sk-SK.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/index.js +1 -1
  28. package/lib/locale/ca-ES.js +1 -1
  29. package/lib/locale/en-US.js +1 -1
  30. package/lib/locale/es-ES.js +1 -1
  31. package/lib/locale/fa-IR.js +1 -1
  32. package/lib/locale/fr-FR.js +1 -1
  33. package/lib/locale/ja-JP.js +1 -1
  34. package/lib/locale/ko-KR.js +1 -1
  35. package/lib/locale/ru-RU.js +1 -1
  36. package/lib/locale/sk-SK.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/index.js +1 -1
  41. package/lib/umd/locale/ca-ES.js +1 -1
  42. package/lib/umd/locale/en-US.js +1 -1
  43. package/lib/umd/locale/es-ES.js +1 -1
  44. package/lib/umd/locale/fa-IR.js +1 -1
  45. package/lib/umd/locale/fr-FR.js +1 -1
  46. package/lib/umd/locale/ja-JP.js +1 -1
  47. package/lib/umd/locale/ko-KR.js +1 -1
  48. package/lib/umd/locale/ru-RU.js +1 -1
  49. package/lib/umd/locale/sk-SK.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +9 -9
@@ -1 +1 @@
1
- const _0x379a52=_0x5204;(function(_0x467305,_0x4e371b){const _0xcd96ad=_0x5204,_0x34fc65=_0x467305();while(!![]){try{const _0x11b9d3=-parseInt(_0xcd96ad(0xe9))/0x1*(-parseInt(_0xcd96ad(0xdd))/0x2)+parseInt(_0xcd96ad(0xe3))/0x3+-parseInt(_0xcd96ad(0xba))/0x4+parseInt(_0xcd96ad(0xb6))/0x5+-parseInt(_0xcd96ad(0xe5))/0x6*(parseInt(_0xcd96ad(0xb9))/0x7)+parseInt(_0xcd96ad(0xde))/0x8*(parseInt(_0xcd96ad(0xcc))/0x9)+-parseInt(_0xcd96ad(0xd7))/0xa*(parseInt(_0xcd96ad(0xbc))/0xb);if(_0x11b9d3===_0x4e371b)break;else _0x34fc65['push'](_0x34fc65['shift']());}catch(_0x108e2a){_0x34fc65['push'](_0x34fc65['shift']());}}}(_0x299c,0xe05e5));function _0x299c(){const _0x1a2cad=['설정\x20저장','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','보안\x20연결을\x20위해\x20인증\x20활성화','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','MCP:\x20네트워크\x20오류','API\x20키를\x20입력하세요','API\x20키','클릭하여\x20MCP\x20연결','설정이\x20성공적으로\x20저장되었습니다','저장\x20중...','MCP\x20클라이언트\x20설정','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','MCP:\x20인증되지\x20않음','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','연결\x20실패','1911447dsnuGt','인증\x20실패.\x20API\x20키를\x20확인하세요','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','설정\x20단계:','API\x20키는\x20필수입니다','MCP:\x20최대\x20재시도\x20횟수\x20초과','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','연결\x20중...','아래\x20JSON\x20설정\x20복사','설정\x20저장\x20실패','몇\x20초\x20만에\x20API\x20키\x20발급받기','119480KwbZEA','MCP\x20연결\x20끊김','API\x20키는\x2010자\x20이상이어야\x20합니다','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','연결됨','2595442BMkPVC','8SPpFKL','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','최대\x20재시도\x20횟수','설정\x20매개변수:','MCP\x20알\x20수\x20없는\x20상태','4583076WlowUZ','세션\x20ID','1098CfSlSt','API\x20키란\x20무엇인가요?','인증\x20활성화','MCP\x20연결\x20중...','1AJUqJM','유효하지\x20않은\x20설정','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','exports','재시도\x20중...','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','MCP\x20재시도\x20중...','4463380pKermG','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','연결\x20끊김','42980yttgAw','5209548rWjJRJ','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','539AhDnNa'];_0x299c=function(){return _0x1a2cad;};return _0x299c();}const e={'mcpStatus':{'disconnected':_0x379a52(0xd8),'connecting':_0x379a52(0xe8),'connected':'MCP\x20연결됨','failed':'MCP\x20연결\x20실패','retrying':_0x379a52(0xb5),'unknown':_0x379a52(0xe2),'unauthorized':_0x379a52(0xc9),'sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20중','networkError':_0x379a52(0xc1),'maxRetriesExceeded':_0x379a52(0xd1),'clickToConnect':_0x379a52(0xc4),'clickToConfigure':'클릭하여\x20MCP\x20설정'},'mcpConfig':{'title':'MCP\x20설정','description':_0x379a52(0xb7),'apiKey':_0x379a52(0xc3),'apiKeyPlaceholder':_0x379a52(0xc2),'apiKeyHint':_0x379a52(0xb4),'enableAuth':_0x379a52(0xe7),'enableAuthHint':_0x379a52(0xbf),'connectionInfo':_0x379a52(0xc7),'mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':_0x379a52(0xeb),'configStepTitle':_0x379a52(0xcf),'configStep1':_0x379a52(0xd4),'configStep2':_0x379a52(0xc0),'configStep3':_0x379a52(0xce),'sessionId':_0x379a52(0xe4),'sessionIdDescription':_0x379a52(0xdb),'authorizationDescription':'Bearer\x20접두사가\x20있는\x20API\x20키.','configParameters':_0x379a52(0xe1),'maxRetries':_0x379a52(0xe0),'save':_0x379a52(0xbd),'saving':_0x379a52(0xc6),'note1':_0x379a52(0xca),'note2':_0x379a52(0xbb),'configSaved':_0x379a52(0xc5),'configError':_0x379a52(0xd5),'apiApplyInfo':{'title':_0x379a52(0xe6),'description':_0x379a52(0xc8),'univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':_0x379a52(0xd6)},'validation':{'apiKeyRequired':_0x379a52(0xd0),'apiKeyTooShort':_0x379a52(0xd9),'invalidConfig':_0x379a52(0xea),'invalidApiKey':_0x379a52(0xbe)},'connectionStatus':{'disconnected':_0x379a52(0xb8),'connecting':_0x379a52(0xd3),'connected':_0x379a52(0xdc),'failed':_0x379a52(0xcb),'retrying':_0x379a52(0xb3)},'connectionError':{'unauthorized':_0x379a52(0xcd),'sessionOccupied':_0x379a52(0xd2),'networkError':_0x379a52(0xdf),'maxRetriesExceeded':_0x379a52(0xda)}}};function _0x5204(_0x3916ab,_0x533825){_0x3916ab=_0x3916ab-0xb2;const _0x299c2f=_0x299c();let _0x52049a=_0x299c2f[_0x3916ab];return _0x52049a;}module[_0x379a52(0xb2)]=e;
1
+ function _0x1be6(){const _0x4a5f23=['772xFrhpD','세션\x20ID','MCP\x20재시도\x20중...','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','연결\x20끊김','1295310IFCBjs','254583mrxgDq','exports','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','5PpsfGX','연결\x20중...','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','최대\x20재시도\x20횟수','재시도\x20중...','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','API\x20키는\x2010자\x20이상이어야\x20합니다','연결\x20실패','5467BSGYgs','8SSFzRv','보안\x20연결을\x20위해\x20인증\x20활성화','API\x20','저장\x20중...','인증\x20활성화','MCP\x20설정','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP\x20클라이언트\x20설정','1611999qrBaMU','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','MCP:\x20인증되지\x20않음','인증\x20실패.\x20API\x20키를\x20확인하세요','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','연결됨','2091qMDLTj','설정이\x20성공적으로\x20저장되었습니다','클릭하여\x20MCP\x20연결','715256lfRbPy','클릭하여\x20MCP\x20설정','2700xPiLJr','60062inIPbR','몇\x20초\x20만에\x20API\x20키\x20발급받기','MCP:\x20최대\x20재시도\x20횟수\x20초과','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','설정\x20저장','MCP\x20연결\x20끊김','MCP\x20연결\x20실패','API\x20키를\x20입력하세요'];_0x1be6=function(){return _0x4a5f23;};return _0x1be6();}const _0x10345b=_0x4255;(function(_0x59fda3,_0x32e3b0){const _0x5e8ddf=_0x4255,_0x1ee633=_0x59fda3();while(!![]){try{const _0x216acd=-parseInt(_0x5e8ddf(0x156))/0x1+parseInt(_0x5e8ddf(0x15f))/0x2*(parseInt(_0x5e8ddf(0x150))/0x3)+parseInt(_0x5e8ddf(0x153))/0x4+parseInt(_0x5e8ddf(0x168))/0x5*(-parseInt(_0x5e8ddf(0x164))/0x6)+-parseInt(_0x5e8ddf(0x165))/0x7+-parseInt(_0x5e8ddf(0x171))/0x8*(-parseInt(_0x5e8ddf(0x14a))/0x9)+parseInt(_0x5e8ddf(0x155))/0xa*(-parseInt(_0x5e8ddf(0x170))/0xb);if(_0x216acd===_0x32e3b0)break;else _0x1ee633['push'](_0x1ee633['shift']());}catch(_0x31b0cb){_0x1ee633['push'](_0x1ee633['shift']());}}}(_0x1be6,0x2c0ed));const e={'mcpStatus':{'disconnected':_0x10345b(0x15c),'connecting':'MCP\x20연결\x20중...','connected':'MCP\x20연결됨','failed':_0x10345b(0x15d),'retrying':_0x10345b(0x161),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':_0x10345b(0x14c),'sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20중','networkError':'MCP:\x20네트워크\x20오류','maxRetriesExceeded':_0x10345b(0x158),'clickToConnect':_0x10345b(0x152),'clickToConfigure':_0x10345b(0x154)},'mcpConfig':{'title':_0x10345b(0x176),'description':_0x10345b(0x14b),'apiKey':_0x10345b(0x173),'apiKeyPlaceholder':_0x10345b(0x15e),'apiKeyHint':'API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','enableAuth':_0x10345b(0x175),'enableAuthHint':_0x10345b(0x172),'connectionInfo':_0x10345b(0x149),'mcpClientConfig':_0x10345b(0x149),'configInstructions':_0x10345b(0x16a),'configStepTitle':'설정\x20단계:','configStep1':'아래\x20JSON\x20설정\x20복사','configStep2':_0x10345b(0x15a),'configStep3':'MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','sessionId':_0x10345b(0x160),'sessionIdDescription':'고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','authorizationDescription':'Bearer\x20접두사가\x20있는\x20API\x20키.','configParameters':'설정\x20매개변수:','maxRetries':_0x10345b(0x16b),'save':_0x10345b(0x15b),'saving':_0x10345b(0x174),'note1':_0x10345b(0x148),'note2':_0x10345b(0x167),'configSaved':_0x10345b(0x151),'configError':'설정\x20저장\x20실패','apiApplyInfo':{'title':'API\x20키란\x20무엇인가요?','description':_0x10345b(0x159),'univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':_0x10345b(0x157)},'validation':{'apiKeyRequired':'API\x20키는\x20필수입니다','apiKeyTooShort':_0x10345b(0x16e),'invalidConfig':'유효하지\x20않은\x20설정','invalidApiKey':_0x10345b(0x16d)},'connectionStatus':{'disconnected':_0x10345b(0x163),'connecting':_0x10345b(0x169),'connected':_0x10345b(0x14f),'failed':_0x10345b(0x16f),'retrying':_0x10345b(0x16c)},'connectionError':{'unauthorized':_0x10345b(0x14d),'sessionOccupied':_0x10345b(0x162),'networkError':_0x10345b(0x14e),'maxRetriesExceeded':'최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요'}}};function _0x4255(_0x3c92ef,_0x1eb623){_0x3c92ef=_0x3c92ef-0x148;const _0x1be6df=_0x1be6();let _0x425553=_0x1be6df[_0x3c92ef];return _0x425553;}module[_0x10345b(0x166)]=e;
@@ -1 +1 @@
1
- function _0x4d35(){const _0x32bfa7=['1018394iYtjXF','Retrying...','Univer\x20AI\x20Console','MCP\x20Configuration','MCP\x20Unknown\x20Status','20tVlYIO','193833WhGFRx','MCP:\x20Network\x20Error','4007796lEgTvJ','1010588ALWKAv','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','9170631JeJLsq','Click\x20to\x20connect\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','29868040lsIOIr','MCP:\x20Unauthorized','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','20uSGDJP','Enable\x20Authentication','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20saved\x20successfully','Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','exports','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enter\x20your\x20API\x20key','86933ppFKoF','Max\x20Retries','API\x20key\x20is\x20required','Save\x20Configuration','Session\x20ID','Get\x20your\x20API\x20key\x20in\x20seconds','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','MCP\x20Disconnected','MCP\x20Retrying...','72UtQMmF','Invalid\x20configuration','MCP\x20Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Failed\x20to\x20save\x20configuration','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded'];_0x4d35=function(){return _0x32bfa7;};return _0x4d35();}function _0x28f5(_0x419382,_0x208b9e){_0x419382=_0x419382-0xb8;const _0x4d35cf=_0x4d35();let _0x28f5c0=_0x4d35cf[_0x419382];return _0x28f5c0;}const _0x56c1c7=_0x28f5;(function(_0xcde248,_0x455108){const _0x1fff6e=_0x28f5,_0x4ce1b8=_0xcde248();while(!![]){try{const _0x570200=parseInt(_0x1fff6e(0xc3))/0x1+parseInt(_0x1fff6e(0xc8))/0x2*(-parseInt(_0x1fff6e(0xc9))/0x3)+-parseInt(_0x1fff6e(0xcc))/0x4*(parseInt(_0x1fff6e(0xd6))/0x5)+-parseInt(_0x1fff6e(0xcb))/0x6+-parseInt(_0x1fff6e(0xe1))/0x7*(parseInt(_0x1fff6e(0xba))/0x8)+-parseInt(_0x1fff6e(0xce))/0x9+parseInt(_0x1fff6e(0xd2))/0xa;if(_0x570200===_0x455108)break;else _0x4ce1b8['push'](_0x4ce1b8['shift']());}catch(_0x374945){_0x4ce1b8['push'](_0x4ce1b8['shift']());}}}(_0x4d35,0x863ac));const e={'mcpStatus':{'disconnected':_0x56c1c7(0xb8),'connecting':'MCP\x20Connecting...','connected':_0x56c1c7(0xdc),'failed':_0x56c1c7(0xbc),'retrying':_0x56c1c7(0xb9),'unknown':_0x56c1c7(0xc7),'unauthorized':_0x56c1c7(0xd3),'sessionOccupied':_0x56c1c7(0xd8),'networkError':_0x56c1c7(0xca),'maxRetriesExceeded':_0x56c1c7(0xc2),'clickToConnect':_0x56c1c7(0xcf),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x56c1c7(0xc6),'description':_0x56c1c7(0xe7),'apiKey':_0x56c1c7(0xe8),'apiKeyPlaceholder':_0x56c1c7(0xe0),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x56c1c7(0xd7),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x56c1c7(0xc1),'mcpClientConfig':_0x56c1c7(0xc1),'configInstructions':_0x56c1c7(0xdf),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x56c1c7(0xc0),'configStep2':_0x56c1c7(0xd1),'configStep3':_0x56c1c7(0xcd),'sessionId':_0x56c1c7(0xe5),'sessionIdDescription':_0x56c1c7(0xd4),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x56c1c7(0xbf),'maxRetries':_0x56c1c7(0xe2),'save':_0x56c1c7(0xe4),'saving':'Saving...','note1':_0x56c1c7(0xd0),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x56c1c7(0xd9),'configError':_0x56c1c7(0xbe),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x56c1c7(0xbd),'univerAiLabel':_0x56c1c7(0xc5),'getStarted':_0x56c1c7(0xe6)},'validation':{'apiKeyRequired':_0x56c1c7(0xe3),'apiKeyTooShort':_0x56c1c7(0xdd),'invalidConfig':_0x56c1c7(0xbb),'invalidApiKey':_0x56c1c7(0xd5)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x56c1c7(0xda),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x56c1c7(0xc4)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x56c1c7(0xdb),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0x56c1c7(0xde)]=e;
1
+ function _0x49de(_0x23fbfa,_0x40fb16){_0x23fbfa=_0x23fbfa-0x129;const _0x21019b=_0x2101();let _0x49dee0=_0x21019b[_0x23fbfa];return _0x49dee0;}function _0x2101(){const _0x172f9c=['Retrying...','5oTfKzV','6939hEWUtj','Session\x20ID','API\x20key\x20is\x20required','Saving...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','exports','MCP\x20Retrying...','20IpfOGH','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20connect\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','2560OQFePj','MCP:\x20Network\x20Error','17292rNIJJe','7133aVngyj','Invalid\x20configuration','Get\x20your\x20API\x20key\x20in\x20seconds','1626781ccNapI','Configuration\x20saved\x20successfully','Enable\x20authentication\x20for\x20secure\x20connections','2334VIAtUY','API\x20key\x20with\x20Bearer\x20prefix.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20Authentication','MCP\x20Disconnected','MCP\x20Connecting...','4544BIHiHQ','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','12qRUDiy','Univer\x20AI\x20Console','44900ffmhlS','API\x20Key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Steps:','MCP:\x20Session\x20ID\x20Occupied','21093RmvqgQ','MCP\x20Client\x20Configuration','MCP\x20Unknown\x20Status','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enter\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connecting...','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','What\x20is\x20API\x20Key?','Save\x20Configuration','4dFOEfO','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','MCP\x20Connected','Connected'];_0x2101=function(){return _0x172f9c;};return _0x2101();}const _0x4b839e=_0x49de;(function(_0x34e7d1,_0x54478c){const _0x691fe1=_0x49de,_0x2b4773=_0x34e7d1();while(!![]){try{const _0x3af702=-parseInt(_0x691fe1(0x13c))/0x1+-parseInt(_0x691fe1(0x155))/0x2*(parseInt(_0x691fe1(0x145))/0x3)+parseInt(_0x691fe1(0x140))/0x4*(-parseInt(_0x691fe1(0x15d))/0x5)+-parseInt(_0x691fe1(0x136))/0x6*(-parseInt(_0x691fe1(0x130))/0x7)+-parseInt(_0x691fe1(0x12d))/0x8*(parseInt(_0x691fe1(0x15e))/0x9)+-parseInt(_0x691fe1(0x129))/0xa*(parseInt(_0x691fe1(0x12f))/0xb)+parseInt(_0x691fe1(0x13e))/0xc*(parseInt(_0x691fe1(0x133))/0xd);if(_0x3af702===_0x54478c)break;else _0x2b4773['push'](_0x2b4773['shift']());}catch(_0x3e1312){_0x2b4773['push'](_0x2b4773['shift']());}}}(_0x2101,0x3b0a9));const e={'mcpStatus':{'disconnected':_0x4b839e(0x13a),'connecting':_0x4b839e(0x13b),'connected':_0x4b839e(0x15a),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4b839e(0x164),'unknown':_0x4b839e(0x147),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x4b839e(0x144),'networkError':_0x4b839e(0x12e),'maxRetriesExceeded':_0x4b839e(0x152),'clickToConnect':_0x4b839e(0x12b),'clickToConfigure':_0x4b839e(0x14a)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4b839e(0x156),'apiKey':_0x4b839e(0x141),'apiKeyPlaceholder':_0x4b839e(0x149),'apiKeyHint':_0x4b839e(0x12a),'enableAuth':_0x4b839e(0x139),'enableAuthHint':_0x4b839e(0x135),'connectionInfo':_0x4b839e(0x146),'mcpClientConfig':_0x4b839e(0x146),'configInstructions':_0x4b839e(0x13d),'configStepTitle':_0x4b839e(0x143),'configStep1':_0x4b839e(0x150),'configStep2':_0x4b839e(0x148),'configStep3':_0x4b839e(0x151),'sessionId':_0x4b839e(0x15f),'sessionIdDescription':_0x4b839e(0x157),'authorizationDescription':_0x4b839e(0x137),'configParameters':_0x4b839e(0x14f),'maxRetries':'Max\x20Retries','save':_0x4b839e(0x154),'saving':_0x4b839e(0x161),'note1':_0x4b839e(0x14b),'note2':_0x4b839e(0x14c),'configSaved':_0x4b839e(0x134),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x4b839e(0x153),'description':_0x4b839e(0x142),'univerAiLabel':_0x4b839e(0x13f),'getStarted':_0x4b839e(0x132)},'validation':{'apiKeyRequired':_0x4b839e(0x160),'apiKeyTooShort':_0x4b839e(0x162),'invalidConfig':_0x4b839e(0x131),'invalidApiKey':_0x4b839e(0x14d)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4b839e(0x14e),'connected':_0x4b839e(0x15b),'failed':_0x4b839e(0x159),'retrying':_0x4b839e(0x15c)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x4b839e(0x12c),'networkError':_0x4b839e(0x138),'maxRetriesExceeded':_0x4b839e(0x158)}}};module[_0x4b839e(0x163)]=e;
@@ -1 +1 @@
1
- const _0x5c9c33=_0x4a16;function _0xe56f(){const _0x5040b8=['Povoliť\x20overenie','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','3818214yLOsuO','Pripája\x20sa...','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','Ukladá\x20sa...','Maximálny\x20počet\x20pokusov','3990996GrXmAo','Kliknite\x20na\x20konfiguráciu\x20MCP','MCP\x20neznámy\x20stav','MCP:\x20Prekročený\x20počet\x20pokusov','849TZCLLa','MCP:\x20Sieťová\x20chyba','Parametre\x20konfigurácie:','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','MCP\x20pripojené','3FIVmJL','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','exports','Konfigurácia\x20bola\x20úspešne\x20uložená','Kliknite\x20na\x20pripojenie\x20MCP','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','Konfigurácia\x20klienta\x20MCP','API\x20kľúč\x20je\x20povinný','Pripojenie\x20MCP\x20zlyhalo','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','10HfZTNs','5uOPqOG','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','Konfigurácia\x20MCP','176ZKqbhk','MCP:\x20Neautorizované','API\x20kľúč','8201752jZPgKz','Kroky\x20konfigurácie:','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','10684Qidvda','API\x20kľúč\x20s\x20prefixom\x20Bearer.','Univer\x20AI\x20konzola','Čo\x20je\x20API\x20kľúč?','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','Skúša\x20sa\x20znova...','277193PsSfks','48244FMEBgh','24rutIjt','ID\x20relácie','Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','MCP:\x20ID\x20relácie\x20je\x20obsadené','Pripojenie\x20zlyhalo','6011753apUDSH','MCP\x20sa\x20pripája...','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','Zadajte\x20svoj\x20API\x20kľúč','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd'];_0xe56f=function(){return _0x5040b8;};return _0xe56f();}(function(_0x1bf5fa,_0x9569a5){const _0x4a9f94=_0x4a16,_0x3ea672=_0x1bf5fa();while(!![]){try{const _0x2c481e=parseInt(_0x4a9f94(0x1dd))/0x1*(-parseInt(_0x4a9f94(0x1c2))/0x2)+parseInt(_0x4a9f94(0x1d8))/0x3*(parseInt(_0x4a9f94(0x1bb))/0x4)+-parseInt(_0x4a9f94(0x1ea))/0x5*(parseInt(_0x4a9f94(0x1cf))/0x6)+-parseInt(_0x4a9f94(0x1c1))/0x7*(parseInt(_0x4a9f94(0x1b5))/0x8)+-parseInt(_0x4a9f94(0x1d4))/0x9+parseInt(_0x4a9f94(0x1e9))/0xa*(parseInt(_0x4a9f94(0x1c8))/0xb)+parseInt(_0x4a9f94(0x1c3))/0xc*(parseInt(_0x4a9f94(0x1b8))/0xd);if(_0x2c481e===_0x9569a5)break;else _0x3ea672['push'](_0x3ea672['shift']());}catch(_0x4e84b4){_0x3ea672['push'](_0x3ea672['shift']());}}}(_0xe56f,0x840c3));function _0x4a16(_0x556af3,_0x1520e8){_0x556af3=_0x556af3-0x1b4;const _0xe56f58=_0xe56f();let _0x4a16f5=_0xe56f58[_0x556af3];return _0x4a16f5;}const e={'mcpStatus':{'disconnected':'MCP\x20odpojené','connecting':_0x5c9c33(0x1c9),'connected':_0x5c9c33(0x1dc),'failed':_0x5c9c33(0x1e7),'retrying':'MCP\x20opakuje\x20pokus...','unknown':_0x5c9c33(0x1d6),'unauthorized':_0x5c9c33(0x1b6),'sessionOccupied':_0x5c9c33(0x1c6),'networkError':_0x5c9c33(0x1d9),'maxRetriesExceeded':_0x5c9c33(0x1d7),'clickToConnect':_0x5c9c33(0x1e1),'clickToConfigure':_0x5c9c33(0x1d5)},'mcpConfig':{'title':_0x5c9c33(0x1b4),'description':_0x5c9c33(0x1e4),'apiKey':_0x5c9c33(0x1b7),'apiKeyPlaceholder':_0x5c9c33(0x1cb),'apiKeyHint':_0x5c9c33(0x1de),'enableAuth':_0x5c9c33(0x1cd),'enableAuthHint':_0x5c9c33(0x1ce),'connectionInfo':_0x5c9c33(0x1e5),'mcpClientConfig':_0x5c9c33(0x1e5),'configInstructions':'Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','configStepTitle':_0x5c9c33(0x1b9),'configStep1':_0x5c9c33(0x1ca),'configStep2':'Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','configStep3':'Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','sessionId':_0x5c9c33(0x1c4),'sessionIdDescription':_0x5c9c33(0x1c5),'authorizationDescription':_0x5c9c33(0x1bc),'configParameters':_0x5c9c33(0x1da),'maxRetries':_0x5c9c33(0x1d3),'save':'Uložiť\x20konfiguráciu','saving':_0x5c9c33(0x1d2),'note1':_0x5c9c33(0x1e2),'note2':_0x5c9c33(0x1e3),'configSaved':_0x5c9c33(0x1e0),'configError':_0x5c9c33(0x1bf),'apiApplyInfo':{'title':_0x5c9c33(0x1be),'description':'API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','univerAiLabel':_0x5c9c33(0x1bd),'getStarted':_0x5c9c33(0x1cc)},'validation':{'apiKeyRequired':_0x5c9c33(0x1e6),'apiKeyTooShort':'API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','invalidConfig':'Neplatná\x20konfigurácia','invalidApiKey':_0x5c9c33(0x1db)},'connectionStatus':{'disconnected':'Odpojené','connecting':_0x5c9c33(0x1d0),'connected':'Pripojené','failed':_0x5c9c33(0x1c7),'retrying':_0x5c9c33(0x1c0)},'connectionError':{'unauthorized':_0x5c9c33(0x1e8),'sessionOccupied':_0x5c9c33(0x1d1),'networkError':_0x5c9c33(0x1eb),'maxRetriesExceeded':_0x5c9c33(0x1ba)}}};module[_0x5c9c33(0x1df)]=e;
1
+ const _0x47753e=_0x4555;function _0x239a(){const _0x41fd49=['204336koPlFs','Pripojenie\x20zlyhalo','40lAurEx','MCP:\x20ID\x20relácie\x20je\x20obsadené','Skúša\x20sa\x20znova...','Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','86175eGqwxK','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','Povoliť\x20overenie','383696louExo','130rkfqmU','Odpojené','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','MCP:\x20Sieťová\x20chyba','90JvaoPl','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','MCP\x20neznámy\x20stav','API\x20kľúč\x20je\x20povinný','API\x20kľúč\x20s\x20prefixom\x20Bearer.','Konfigurácia\x20klienta\x20MCP','12594516vCpyBN','Maximálny\x20počet\x20pokusov','Ukladá\x20sa...','MCP\x20pripojené','Pripojené','Zadajte\x20svoj\x20API\x20kľúč','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','Kliknite\x20na\x20konfiguráciu\x20MCP','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','Čo\x20je\x20API\x20kľúč?','Kliknite\x20na\x20pripojenie\x20MCP','Uložiť\x20konfiguráciu','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','Kroky\x20konfigurácie:','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','MCP\x20odpojené','Konfigurácia\x20bola\x20úspešne\x20uložená','MCP\x20sa\x20pripája...','Pripojenie\x20MCP\x20zlyhalo','321565CPfLkQ','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','175FWTNFf','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','MCP\x20opakuje\x20pokus...','880614RUqOsy','10236QDOwlL'];_0x239a=function(){return _0x41fd49;};return _0x239a();}function _0x4555(_0x13fa02,_0x4eec46){_0x13fa02=_0x13fa02-0x108;const _0x239ab6=_0x239a();let _0x4555e3=_0x239ab6[_0x13fa02];return _0x4555e3;}(function(_0x485b2c,_0x489f73){const _0x30d2c3=_0x4555,_0xa13c7f=_0x485b2c();while(!![]){try{const _0x3dab69=parseInt(_0x30d2c3(0x11e))/0x1+-parseInt(_0x30d2c3(0x114))/0x2*(parseInt(_0x30d2c3(0x124))/0x3)+-parseInt(_0x30d2c3(0x117))/0x4*(parseInt(_0x30d2c3(0x10e))/0x5)+parseInt(_0x30d2c3(0x113))/0x6+-parseInt(_0x30d2c3(0x110))/0x7*(parseInt(_0x30d2c3(0x115))/0x8)+parseInt(_0x30d2c3(0x11b))/0x9*(parseInt(_0x30d2c3(0x11f))/0xa)+parseInt(_0x30d2c3(0x12a))/0xb;if(_0x3dab69===_0x489f73)break;else _0xa13c7f['push'](_0xa13c7f['shift']());}catch(_0x1f994e){_0xa13c7f['push'](_0xa13c7f['shift']());}}}(_0x239a,0x59084));const e={'mcpStatus':{'disconnected':_0x47753e(0x10a),'connecting':_0x47753e(0x10c),'connected':_0x47753e(0x12d),'failed':_0x47753e(0x10d),'retrying':_0x47753e(0x112),'unknown':_0x47753e(0x126),'unauthorized':'MCP:\x20Neautorizované','sessionOccupied':_0x47753e(0x118),'networkError':_0x47753e(0x123),'maxRetriesExceeded':'MCP:\x20Prekročený\x20počet\x20pokusov','clickToConnect':_0x47753e(0x134),'clickToConfigure':_0x47753e(0x131)},'mcpConfig':{'title':'Konfigurácia\x20MCP','description':'Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','apiKey':'API\x20kľúč','apiKeyPlaceholder':_0x47753e(0x12f),'apiKeyHint':_0x47753e(0x125),'enableAuth':_0x47753e(0x11d),'enableAuthHint':_0x47753e(0x11c),'connectionInfo':'Konfigurácia\x20klienta\x20MCP','mcpClientConfig':_0x47753e(0x129),'configInstructions':'Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','configStepTitle':_0x47753e(0x108),'configStep1':'Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','configStep2':'Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','configStep3':'Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','sessionId':'ID\x20relácie','sessionIdDescription':_0x47753e(0x11a),'authorizationDescription':_0x47753e(0x128),'configParameters':'Parametre\x20konfigurácie:','maxRetries':_0x47753e(0x12b),'save':_0x47753e(0x135),'saving':_0x47753e(0x12c),'note1':_0x47753e(0x109),'note2':'Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','configSaved':_0x47753e(0x10b),'configError':_0x47753e(0x130),'apiApplyInfo':{'title':_0x47753e(0x133),'description':'API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','univerAiLabel':'Univer\x20AI\x20konzola','getStarted':_0x47753e(0x122)},'validation':{'apiKeyRequired':_0x47753e(0x127),'apiKeyTooShort':_0x47753e(0x132),'invalidConfig':'Neplatná\x20konfigurácia','invalidApiKey':_0x47753e(0x121)},'connectionStatus':{'disconnected':_0x47753e(0x120),'connecting':'Pripája\x20sa...','connected':_0x47753e(0x12e),'failed':_0x47753e(0x116),'retrying':_0x47753e(0x119)},'connectionError':{'unauthorized':'Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','sessionOccupied':_0x47753e(0x136),'networkError':_0x47753e(0x10f),'maxRetriesExceeded':_0x47753e(0x111)}}};module['exports']=e;
@@ -1 +1 @@
1
- const _0x5c0353=_0x1919;(function(_0x481307,_0x526b97){const _0xe21bea=_0x1919,_0x3fa07f=_0x481307();while(!![]){try{const _0x11eb93=-parseInt(_0xe21bea(0xf2))/0x1*(parseInt(_0xe21bea(0x117))/0x2)+parseInt(_0xe21bea(0x11e))/0x3+parseInt(_0xe21bea(0x107))/0x4+-parseInt(_0xe21bea(0x104))/0x5*(parseInt(_0xe21bea(0x110))/0x6)+parseInt(_0xe21bea(0x11f))/0x7*(-parseInt(_0xe21bea(0xfa))/0x8)+-parseInt(_0xe21bea(0x113))/0x9*(-parseInt(_0xe21bea(0x106))/0xa)+parseInt(_0xe21bea(0x10a))/0xb;if(_0x11eb93===_0x526b97)break;else _0x3fa07f['push'](_0x3fa07f['shift']());}catch(_0x4d275b){_0x3fa07f['push'](_0x3fa07f['shift']());}}}(_0x19fe,0xa3b1d));const e={'mcpStatus':{'disconnected':_0x5c0353(0x111),'connecting':_0x5c0353(0x100),'connected':_0x5c0353(0xfd),'failed':_0x5c0353(0x122),'retrying':_0x5c0353(0x124),'unknown':_0x5c0353(0x10d),'unauthorized':_0x5c0353(0x10b),'sessionOccupied':'MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','networkError':_0x5c0353(0x119),'maxRetriesExceeded':_0x5c0353(0x103),'clickToConnect':_0x5c0353(0x11d),'clickToConfigure':_0x5c0353(0x108)},'mcpConfig':{'title':'Cấu\x20hình\x20MCP','description':'Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','apiKey':'Khóa\x20API','apiKeyPlaceholder':_0x5c0353(0x118),'apiKeyHint':_0x5c0353(0xf7),'enableAuth':'Bật\x20xác\x20thực','enableAuthHint':'Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','connectionInfo':'Cấu\x20hình\x20máy\x20khách\x20MCP','mcpClientConfig':_0x5c0353(0x105),'configInstructions':_0x5c0353(0xff),'configStepTitle':'Các\x20bước\x20cấu\x20hình:','configStep1':_0x5c0353(0x10c),'configStep2':'Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','configStep3':_0x5c0353(0x102),'sessionId':_0x5c0353(0x109),'sessionIdDescription':_0x5c0353(0xf4),'authorizationDescription':_0x5c0353(0x11c),'configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':_0x5c0353(0x123),'save':_0x5c0353(0x11a),'saving':_0x5c0353(0x116),'note1':_0x5c0353(0x10e),'note2':'Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','configSaved':_0x5c0353(0xf5),'configError':_0x5c0353(0xfe),'apiApplyInfo':{'title':_0x5c0353(0xf1),'description':_0x5c0353(0xfb),'univerAiLabel':_0x5c0353(0x101),'getStarted':_0x5c0353(0x120)},'validation':{'apiKeyRequired':'Yêu\x20cầu\x20khóa\x20API','apiKeyTooShort':_0x5c0353(0x112),'invalidConfig':'Cấu\x20hình\x20không\x20hợp\x20lệ','invalidApiKey':_0x5c0353(0x121)},'connectionStatus':{'disconnected':_0x5c0353(0xfc),'connecting':_0x5c0353(0x115),'connected':_0x5c0353(0xf8),'failed':_0x5c0353(0xf6),'retrying':'Đang\x20thử\x20lại...'},'connectionError':{'unauthorized':_0x5c0353(0xf3),'sessionOccupied':_0x5c0353(0xf9),'networkError':_0x5c0353(0x11b),'maxRetriesExceeded':_0x5c0353(0x10f)}}};function _0x19fe(){const _0x33e5e9=['2460VkheEG','345116vwPxAK','Nhấp\x20để\x20cấu\x20hình\x20MCP','ID\x20phiên','14777774LxlSMH','MCP:\x20Không\x20được\x20phép','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','3331392ZaPjpb','MCP\x20Đã\x20ngắt\x20kết\x20nối','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','17667nTJJBT','exports','Đang\x20kết\x20nối...','Đang\x20lưu...','262BqcqMJ','Nhập\x20khóa\x20API\x20của\x20bạn','MCP:\x20Lỗi\x20mạng','Lưu\x20cấu\x20hình','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Nhấp\x20để\x20kết\x20nối\x20MCP','1757799pFnmTr','7tsHrPg','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','MCP\x20Kết\x20nối\x20thất\x20bại','Số\x20lần\x20thử\x20lại\x20tối\x20đa','MCP\x20Đang\x20thử\x20lại...','Khóa\x20API\x20là\x20gì?','9067zvmKTG','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Đị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.','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Kết\x20nối\x20thất\x20bại','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Đã\x20kết\x20nối','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','680336BJSILQ','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.','Đã\x20ngắt\x20kết\x20nối','MCP\x20Đã\x20kết\x20nối','Lưu\x20cấu\x20hình\x20thất\x20bại','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','MCP\x20Đang\x20kết\x20nối...','Bảng\x20điều\x20khiển\x20Univer\x20AI','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:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','5YKBLfd','Cấu\x20hình\x20máy\x20khách\x20MCP'];_0x19fe=function(){return _0x33e5e9;};return _0x19fe();}function _0x1919(_0x26a464,_0x32bc25){_0x26a464=_0x26a464-0xf1;const _0x19fef8=_0x19fe();let _0x191983=_0x19fef8[_0x26a464];return _0x191983;}module[_0x5c0353(0x114)]=e;
1
+ function _0x39b9(_0x5dee51,_0x3ec569){_0x5dee51=_0x5dee51-0xb5;const _0x37f2f1=_0x37f2();let _0x39b9b0=_0x37f2f1[_0x5dee51];return _0x39b9b0;}const _0x2f65f5=_0x39b9;(function(_0x350eb8,_0x89905b){const _0x320264=_0x39b9,_0x36ead1=_0x350eb8();while(!![]){try{const _0x14747f=parseInt(_0x320264(0xc1))/0x1*(parseInt(_0x320264(0xcc))/0x2)+-parseInt(_0x320264(0xd8))/0x3*(-parseInt(_0x320264(0xbd))/0x4)+-parseInt(_0x320264(0xba))/0x5+-parseInt(_0x320264(0xde))/0x6+parseInt(_0x320264(0xdf))/0x7+parseInt(_0x320264(0xe6))/0x8+-parseInt(_0x320264(0xd6))/0x9;if(_0x14747f===_0x89905b)break;else _0x36ead1['push'](_0x36ead1['shift']());}catch(_0x4ebb74){_0x36ead1['push'](_0x36ead1['shift']());}}}(_0x37f2,0x603fa));const e={'mcpStatus':{'disconnected':_0x2f65f5(0xcd),'connecting':_0x2f65f5(0xcf),'connected':'MCP\x20Đã\x20kết\x20nối','failed':'MCP\x20Kết\x20nối\x20thất\x20bại','retrying':_0x2f65f5(0xc0),'unknown':_0x2f65f5(0xe3),'unauthorized':'MCP:\x20Không\x20được\x20phép','sessionOccupied':_0x2f65f5(0xe2),'networkError':_0x2f65f5(0xe1),'maxRetriesExceeded':_0x2f65f5(0xce),'clickToConnect':_0x2f65f5(0xd2),'clickToConfigure':_0x2f65f5(0xe4)},'mcpConfig':{'title':_0x2f65f5(0xd0),'description':_0x2f65f5(0xc3),'apiKey':_0x2f65f5(0xdd),'apiKeyPlaceholder':_0x2f65f5(0xdc),'apiKeyHint':_0x2f65f5(0xd5),'enableAuth':_0x2f65f5(0xc2),'enableAuthHint':_0x2f65f5(0xbf),'connectionInfo':_0x2f65f5(0xd9),'mcpClientConfig':'Cấu\x20hình\x20máy\x20khách\x20MCP','configInstructions':_0x2f65f5(0xd1),'configStepTitle':'Các\x20bước\x20cấu\x20hình:','configStep1':_0x2f65f5(0xbb),'configStep2':_0x2f65f5(0xbe),'configStep3':_0x2f65f5(0xe0),'sessionId':_0x2f65f5(0xc4),'sessionIdDescription':'Đị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.','authorizationDescription':'Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':_0x2f65f5(0xc9),'save':_0x2f65f5(0xc6),'saving':'Đang\x20lưu...','note1':'Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','note2':_0x2f65f5(0xca),'configSaved':'Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','configError':_0x2f65f5(0xc7),'apiApplyInfo':{'title':_0x2f65f5(0xd7),'description':_0x2f65f5(0xb7),'univerAiLabel':_0x2f65f5(0xc8),'getStarted':_0x2f65f5(0xb8)},'validation':{'apiKeyRequired':_0x2f65f5(0xda),'apiKeyTooShort':_0x2f65f5(0xc5),'invalidConfig':_0x2f65f5(0xd4),'invalidApiKey':_0x2f65f5(0xcb)},'connectionStatus':{'disconnected':_0x2f65f5(0xdb),'connecting':_0x2f65f5(0xb6),'connected':_0x2f65f5(0xbc),'failed':_0x2f65f5(0xb9),'retrying':_0x2f65f5(0xe7)},'connectionError':{'unauthorized':_0x2f65f5(0xd3),'sessionOccupied':'Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','networkError':_0x2f65f5(0xb5),'maxRetriesExceeded':'Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau'}}};function _0x37f2(){const _0x1905b3=['730901AkRSlk','Bật\x20xác\x20thực','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','ID\x20phiên','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','Lưu\x20cấu\x20hình','Lưu\x20cấu\x20hình\x20thất\x20bại','Bảng\x20điều\x20khiển\x20Univer\x20AI','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','2rnQTLF','MCP\x20Đã\x20ngắt\x20kết\x20nối','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','MCP\x20Đang\x20kết\x20nối...','Cấu\x20hình\x20MCP','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Nhấp\x20để\x20kết\x20nối\x20MCP','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Cấu\x20hình\x20không\x20hợp\x20lệ','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','11176434gLTtEC','Khóa\x20API\x20là\x20gì?','165dBhRRu','Cấu\x20hình\x20máy\x20khách\x20MCP','Yêu\x20cầu\x20khóa\x20API','Đã\x20ngắt\x20kết\x20nối','Nhập\x20khóa\x20API\x20của\x20bạn','Khóa\x20API','239346XZNSzd','1161307gsbMoX','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:\x20Lỗi\x20mạng','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Nhấp\x20để\x20cấu\x20hình\x20MCP','exports','4332528sxcMlu','Đang\x20thử\x20lại...','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','Đang\x20kết\x20nối...','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','Kết\x20nối\x20thất\x20bại','1207610qQgEZW','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','Đã\x20kết\x20nối','34844spMnUr','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','MCP\x20Đang\x20thử\x20lại...'];_0x37f2=function(){return _0x1905b3;};return _0x37f2();}module[_0x2f65f5(0xe5)]=e;
@@ -1 +1 @@
1
- function _0x2c82(){const _0x1cfadc=['复制以下\x20JSON\x20配置','您的\x20API\x20密钥将在此浏览器中本地存储','exports','8EcPhKt','MCP\x20连接失败','点击连接\x20MCP','MCP:\x20未授权','MCP\x20客户端配置','1344417FMRejh','27oIEpWm','MCP:\x20会话\x20ID\x20已被占用','1741672pFOsPH','MCP\x20已连接','5394760goAhgO','2853290OrZWHa','638130siJSfi','MCP\x20已断开','权限验证失败,请检查您的\x20API\x20密钥','API\x20密钥不能为空','连接失败','什么是\x20API\x20密钥?','配置更改将立即生效','最大重试次数','网络连接错误,请检查您的网络连接','API\x20密钥无效,请检查密钥是否正确','已连接','36PjgirV','8219911krqmmA','配置保存失败','配置无效','配置保存成功','MCP:\x20超出最大重试次数','重连中...','1089845SEmkxx','点击配置\x20MCP','MCP\x20状态未知','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP\x20配置','重启您的\x20MCP\x20客户端以使配置生效','会话\x20ID\x20已被占用,请稍后再试','启用身份验证','保存中...','16ZNEYaT','请输入您的\x20API\x20密钥','MCP\x20连接中...','MCP:\x20网络错误','MCP\x20重连中...','几秒钟内获取您的\x20API\x20密钥','Univer\x20AI\x20控制台','将以下配置添加到您的\x20MCP\x20客户端设置中:','启用身份验证以获得安全连接','连接中...','配置\x20MCP\x20使用\x20AI\x20操作电子表格'];_0x2c82=function(){return _0x1cfadc;};return _0x2c82();}const _0x131f47=_0x590b;function _0x590b(_0x2c2fec,_0xc23311){_0x2c2fec=_0x2c2fec-0xb0;const _0x2c8264=_0x2c82();let _0x590bd2=_0x2c8264[_0x2c2fec];return _0x590bd2;}(function(_0x57bf06,_0x2cd581){const _0x5865f0=_0x590b,_0x28dfa7=_0x57bf06();while(!![]){try{const _0x4cdc74=parseInt(_0x5865f0(0xc9))/0x1+parseInt(_0x5865f0(0xc5))/0x2+parseInt(_0x5865f0(0xc2))/0x3*(-parseInt(_0x5865f0(0xe4))/0x4)+parseInt(_0x5865f0(0xdb))/0x5*(-parseInt(_0x5865f0(0xd4))/0x6)+parseInt(_0x5865f0(0xd5))/0x7*(parseInt(_0x5865f0(0xbd))/0x8)+-parseInt(_0x5865f0(0xc3))/0x9*(-parseInt(_0x5865f0(0xc7))/0xa)+-parseInt(_0x5865f0(0xc8))/0xb;if(_0x4cdc74===_0x2cd581)break;else _0x28dfa7['push'](_0x28dfa7['shift']());}catch(_0x7ebe3b){_0x28dfa7['push'](_0x28dfa7['shift']());}}}(_0x2c82,0xe5f53));const e={'mcpStatus':{'disconnected':_0x131f47(0xca),'connecting':_0x131f47(0xb1),'connected':_0x131f47(0xc6),'failed':_0x131f47(0xbe),'retrying':_0x131f47(0xb3),'unknown':_0x131f47(0xdd),'unauthorized':_0x131f47(0xc0),'sessionOccupied':_0x131f47(0xc4),'networkError':_0x131f47(0xb2),'maxRetriesExceeded':_0x131f47(0xd9),'clickToConnect':_0x131f47(0xbf),'clickToConfigure':_0x131f47(0xdc)},'mcpConfig':{'title':_0x131f47(0xdf),'description':_0x131f47(0xb9),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x131f47(0xb0),'apiKeyHint':_0x131f47(0xbb),'enableAuth':_0x131f47(0xe2),'enableAuthHint':_0x131f47(0xb7),'connectionInfo':_0x131f47(0xc1),'mcpClientConfig':_0x131f47(0xc1),'configInstructions':_0x131f47(0xb6),'configStepTitle':'配置步骤:','configStep1':_0x131f47(0xba),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x131f47(0xe0),'sessionId':'会话ID','sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':_0x131f47(0xd0),'save':'保存配置','saving':_0x131f47(0xe3),'note1':_0x131f47(0xcf),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x131f47(0xd8),'configError':_0x131f47(0xd6),'apiApplyInfo':{'title':_0x131f47(0xce),'description':_0x131f47(0xde),'univerAiLabel':_0x131f47(0xb5),'getStarted':_0x131f47(0xb4)},'validation':{'apiKeyRequired':_0x131f47(0xcc),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x131f47(0xd7),'invalidApiKey':_0x131f47(0xd2)},'connectionStatus':{'disconnected':'未连接','connecting':_0x131f47(0xb8),'connected':_0x131f47(0xd3),'failed':_0x131f47(0xcd),'retrying':_0x131f47(0xda)},'connectionError':{'unauthorized':_0x131f47(0xcb),'sessionOccupied':_0x131f47(0xe1),'networkError':_0x131f47(0xd1),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};module[_0x131f47(0xbc)]=e;
1
+ function _0x2b26(_0x5a9c39,_0x33f467){_0x5a9c39=_0x5a9c39-0x6e;const _0xa9d94a=_0xa9d9();let _0x2b26d0=_0xa9d94a[_0x5a9c39];return _0x2b26d0;}const _0xc90c6c=_0x2b26;function _0xa9d9(){const _0x3c30c3=['点击连接\x20MCP','API\x20密钥长度至少需要\x2010\x20位','启用身份验证','API\x20密钥','配置保存失败','启用身份验证以获得安全连接','已连接','配置更改将立即生效','6GKpxcW','点击配置\x20MCP','配置无效','连接失败','保存中...','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','exports','2jvslIi','几秒钟内获取您的\x20API\x20密钥','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20客户端配置','348657spvZIu','API\x20密钥无效,请检查密钥是否正确','10PPtYOR','MCP\x20重连中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置步骤:','会话\x20ID\x20已被占用,请稍后再试','2860316behdVS','保存配置','770740EffZPk','65853BPoeoe','请输入您的\x20API\x20密钥','MCP:\x20超出最大重试次数','未连接','202506KWpvjD','MCP:\x20网络错误','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20状态未知','配置保存成功','您的\x20API\x20密钥安全存储在本地存储中','复制以下\x20JSON\x20配置','配置参数:','重连中...','API\x20密钥不能为空','4866757WLfMtu','6801685fsVrUP','将以下配置添加到您的\x20MCP\x20客户端设置中:','792UPGYAg','MCP\x20连接失败'];_0xa9d9=function(){return _0x3c30c3;};return _0xa9d9();}(function(_0x1d427e,_0x30afd0){const _0x3f6065=_0x2b26,_0x5042a6=_0x1d427e();while(!![]){try{const _0x5823e3=parseInt(_0x3f6065(0x9c))/0x1+parseInt(_0x3f6065(0x98))/0x2*(-parseInt(_0x3f6065(0x7a))/0x3)+parseInt(_0x3f6065(0x73))/0x4+-parseInt(_0x3f6065(0x75))/0x5*(-parseInt(_0x3f6065(0x91))/0x6)+parseInt(_0x3f6065(0x84))/0x7+-parseInt(_0x3f6065(0x87))/0x8*(parseInt(_0x3f6065(0x76))/0x9)+parseInt(_0x3f6065(0x6e))/0xa*(-parseInt(_0x3f6065(0x85))/0xb);if(_0x5823e3===_0x30afd0)break;else _0x5042a6['push'](_0x5042a6['shift']());}catch(_0x23a1bc){_0x5042a6['push'](_0x5042a6['shift']());}}}(_0xa9d9,0x7ac83));const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0xc90c6c(0x88),'retrying':_0xc90c6c(0x6f),'unknown':_0xc90c6c(0x7d),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0xc90c6c(0x7b),'maxRetriesExceeded':_0xc90c6c(0x78),'clickToConnect':_0xc90c6c(0x89),'clickToConfigure':_0xc90c6c(0x92)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0xc90c6c(0x8c),'apiKeyPlaceholder':_0xc90c6c(0x77),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0xc90c6c(0x8b),'enableAuthHint':_0xc90c6c(0x8e),'connectionInfo':_0xc90c6c(0x9b),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0xc90c6c(0x86),'configStepTitle':_0xc90c6c(0x71),'configStep1':_0xc90c6c(0x80),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0xc90c6c(0x7c),'sessionId':'会话ID','sessionIdDescription':_0xc90c6c(0x70),'authorizationDescription':_0xc90c6c(0x9a),'configParameters':_0xc90c6c(0x81),'maxRetries':'最大重试次数','save':_0xc90c6c(0x74),'saving':_0xc90c6c(0x95),'note1':_0xc90c6c(0x90),'note2':_0xc90c6c(0x7f),'configSaved':_0xc90c6c(0x7e),'configError':_0xc90c6c(0x8d),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0xc90c6c(0x96),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0xc90c6c(0x99)},'validation':{'apiKeyRequired':_0xc90c6c(0x83),'apiKeyTooShort':_0xc90c6c(0x8a),'invalidConfig':_0xc90c6c(0x93),'invalidApiKey':_0xc90c6c(0x9d)},'connectionStatus':{'disconnected':_0xc90c6c(0x79),'connecting':'连接中...','connected':_0xc90c6c(0x8f),'failed':_0xc90c6c(0x94),'retrying':_0xc90c6c(0x82)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0xc90c6c(0x72),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};module[_0xc90c6c(0x97)]=e;
@@ -1 +1 @@
1
- const _0x172e8c=_0x1c49;(function(_0xc0a5b5,_0x37b2f6){const _0x5001aa=_0x1c49,_0x28923f=_0xc0a5b5();while(!![]){try{const _0x405488=parseInt(_0x5001aa(0x11d))/0x1*(-parseInt(_0x5001aa(0x136))/0x2)+parseInt(_0x5001aa(0x149))/0x3+-parseInt(_0x5001aa(0x13c))/0x4*(parseInt(_0x5001aa(0x121))/0x5)+parseInt(_0x5001aa(0x129))/0x6*(-parseInt(_0x5001aa(0x142))/0x7)+-parseInt(_0x5001aa(0x11f))/0x8*(parseInt(_0x5001aa(0x141))/0x9)+-parseInt(_0x5001aa(0x139))/0xa+-parseInt(_0x5001aa(0x126))/0xb*(-parseInt(_0x5001aa(0x144))/0xc);if(_0x405488===_0x37b2f6)break;else _0x28923f['push'](_0x28923f['shift']());}catch(_0x48d28e){_0x28923f['push'](_0x28923f['shift']());}}}(_0x27d6,0xec161));function _0x1c49(_0x557662,_0x1740db){_0x557662=_0x557662-0x11c;const _0x27d6e3=_0x27d6();let _0x1c49ee=_0x27d6e3[_0x557662];return _0x1c49ee;}const e={'mcpStatus':{'disconnected':_0x172e8c(0x147),'connecting':_0x172e8c(0x14b),'connected':_0x172e8c(0x123),'failed':_0x172e8c(0x12d),'retrying':_0x172e8c(0x13d),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x172e8c(0x124),'sessionOccupied':_0x172e8c(0x148),'networkError':_0x172e8c(0x132),'maxRetriesExceeded':_0x172e8c(0x146),'clickToConnect':_0x172e8c(0x122),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x172e8c(0x13a),'description':_0x172e8c(0x143),'apiKey':_0x172e8c(0x14e),'apiKeyPlaceholder':_0x172e8c(0x133),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x172e8c(0x14a),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x172e8c(0x131),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x172e8c(0x12c),'configStep2':_0x172e8c(0x11c),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x172e8c(0x11e),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x172e8c(0x134),'configParameters':_0x172e8c(0x14c),'maxRetries':_0x172e8c(0x13f),'save':_0x172e8c(0x127),'saving':_0x172e8c(0x137),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x172e8c(0x135),'configSaved':_0x172e8c(0x14f),'configError':_0x172e8c(0x12b),'apiApplyInfo':{'title':_0x172e8c(0x128),'description':_0x172e8c(0x120),'univerAiLabel':_0x172e8c(0x12e),'getStarted':_0x172e8c(0x138)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x172e8c(0x12f),'invalidConfig':_0x172e8c(0x145),'invalidApiKey':_0x172e8c(0x130)},'connectionStatus':{'disconnected':_0x172e8c(0x14d),'connecting':_0x172e8c(0x125),'connected':'Connected','failed':_0x172e8c(0x13b),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x172e8c(0x140),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x172e8c(0x12a)}}};function _0x27d6(){const _0x1c1090=['Connecting...','1474vUTzLW','Save\x20Configuration','What\x20is\x20API\x20Key?','6cYSYWA','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connection\x20Failed','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Client\x20Configuration','MCP:\x20Network\x20Error','Enter\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','77334xDgLtm','Saving...','Get\x20your\x20API\x20key\x20in\x20seconds','16854830RJuHtp','MCP\x20Configuration','Connection\x20Failed','2863292hyCUgs','MCP\x20Retrying...','exports','Max\x20Retries','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','207LQSqqd','9546145YMdHWh','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','587196qjLeSf','Invalid\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Disconnected','MCP:\x20Session\x20ID\x20Occupied','884295FkkDpq','Enable\x20Authentication','MCP\x20Connecting...','Configuration\x20Parameters:','Disconnected','API\x20Key','Configuration\x20saved\x20successfully','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','33LRmCKZ','Session\x20ID','44488FGetmY','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','10MdKWgy','Click\x20to\x20connect\x20MCP','MCP\x20Connected','MCP:\x20Unauthorized'];_0x27d6=function(){return _0x1c1090;};return _0x27d6();}module[_0x172e8c(0x13e)]=e;
1
+ const _0x4018a5=_0x4fd5;function _0x2c6b(){const _0x505150=['Configuration\x20saved\x20successfully','Failed\x20to\x20save\x20configuration','MCP\x20Client\x20Configuration','Retrying...','MCP\x20Retrying...','54564bXpcfW','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1274YGJtrp','API\x20Key','45455mIiMGV','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Unauthorized','Connecting...','Univer\x20AI\x20Console','Disconnected','Enter\x20your\x20API\x20key','493238nzQmsA','Configuration\x20Steps:','Enable\x20authentication\x20for\x20secure\x20connections','9wnYtzT','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','896054bmdHpe','680ucuixh','11ulESHe','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20is\x20required','MCP\x20Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','What\x20is\x20API\x20Key?','Enable\x20Authentication','Invalid\x20configuration','Connection\x20Failed','MCP\x20Unknown\x20Status','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','Saving...','4756980clJmtW','Click\x20to\x20connect\x20MCP','15487816jEfmwa','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','13056381wVcByN','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session\x20ID','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'];_0x2c6b=function(){return _0x505150;};return _0x2c6b();}(function(_0x1046de,_0x2dac2f){const _0x10bfd8=_0x4fd5,_0x593e64=_0x1046de();while(!![]){try{const _0x944f50=-parseInt(_0x10bfd8(0x157))/0x1+-parseInt(_0x10bfd8(0x15c))/0x2*(-parseInt(_0x10bfd8(0x15a))/0x3)+parseInt(_0x10bfd8(0x129))/0x4*(-parseInt(_0x10bfd8(0x14f))/0x5)+parseInt(_0x10bfd8(0x14a))/0x6*(parseInt(_0x10bfd8(0x14d))/0x7)+parseInt(_0x10bfd8(0x13b))/0x8+-parseInt(_0x10bfd8(0x13e))/0x9+-parseInt(_0x10bfd8(0x139))/0xa*(parseInt(_0x10bfd8(0x12a))/0xb);if(_0x944f50===_0x2dac2f)break;else _0x593e64['push'](_0x593e64['shift']());}catch(_0x510aad){_0x593e64['push'](_0x593e64['shift']());}}}(_0x2c6b,0xecd43));function _0x4fd5(_0x9f966f,_0x56c07b){_0x9f966f=_0x9f966f-0x129;const _0x2c6b40=_0x2c6b();let _0x4fd558=_0x2c6b40[_0x9f966f];return _0x4fd558;}const e={'mcpStatus':{'disconnected':_0x4018a5(0x137),'connecting':'MCP\x20Connecting...','connected':_0x4018a5(0x12e),'failed':'MCP\x20Connection\x20Failed','retrying':_0x4018a5(0x149),'unknown':_0x4018a5(0x135),'unauthorized':_0x4018a5(0x152),'sessionOccupied':_0x4018a5(0x151),'networkError':_0x4018a5(0x143),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x4018a5(0x13a),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x4018a5(0x13d),'apiKey':_0x4018a5(0x14e),'apiKeyPlaceholder':_0x4018a5(0x156),'apiKeyHint':_0x4018a5(0x12c),'enableAuth':_0x4018a5(0x132),'enableAuthHint':_0x4018a5(0x159),'connectionInfo':_0x4018a5(0x147),'mcpClientConfig':_0x4018a5(0x147),'configInstructions':_0x4018a5(0x140),'configStepTitle':_0x4018a5(0x158),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4018a5(0x15b),'sessionId':_0x4018a5(0x141),'sessionIdDescription':_0x4018a5(0x12f),'authorizationDescription':_0x4018a5(0x150),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x4018a5(0x12b),'save':'Save\x20Configuration','saving':_0x4018a5(0x138),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x4018a5(0x145),'configError':_0x4018a5(0x146),'apiApplyInfo':{'title':_0x4018a5(0x131),'description':_0x4018a5(0x13f),'univerAiLabel':_0x4018a5(0x154),'getStarted':_0x4018a5(0x136)},'validation':{'apiKeyRequired':_0x4018a5(0x12d),'apiKeyTooShort':_0x4018a5(0x14c),'invalidConfig':_0x4018a5(0x133),'invalidApiKey':_0x4018a5(0x13c)},'connectionStatus':{'disconnected':_0x4018a5(0x155),'connecting':_0x4018a5(0x153),'connected':'Connected','failed':_0x4018a5(0x134),'retrying':_0x4018a5(0x148)},'connectionError':{'unauthorized':_0x4018a5(0x130),'sessionOccupied':_0x4018a5(0x14b),'networkError':_0x4018a5(0x142),'maxRetriesExceeded':_0x4018a5(0x144)}}};module['exports']=e;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1cd625=_0x2936;(function(_0x4582e7,_0x15ecbf){const _0x39bc67=_0x2936,_0x5d2600=_0x4582e7();while(!![]){try{const _0xf97a5f=parseInt(_0x39bc67(0x213))/0x1+parseInt(_0x39bc67(0x2b9))/0x2*(-parseInt(_0x39bc67(0x1e6))/0x3)+-parseInt(_0x39bc67(0x25a))/0x4+-parseInt(_0x39bc67(0x21c))/0x5+-parseInt(_0x39bc67(0x24d))/0x6+-parseInt(_0x39bc67(0x23b))/0x7*(-parseInt(_0x39bc67(0x24e))/0x8)+parseInt(_0x39bc67(0x26d))/0x9*(parseInt(_0x39bc67(0x289))/0xa);if(_0xf97a5f===_0x15ecbf)break;else _0x5d2600['push'](_0x5d2600['shift']());}catch(_0x4dd733){_0x5d2600['push'](_0x5d2600['shift']());}}}(_0x401f,0x9e656));import{CommandType as _0x51acc,DependentOn as _0x177445,Disposable as _0x22b46c,ICommandService as _0x80a00c,IConfigService as _0x1394fc,ILocalStorageService as _0x2994a8,ILogService as _0xdcc11c,Inject as _0x33a2db,Injector as _0x2a6ad2,LocaleService as _0x33ba30,Plugin as _0x1590a1,merge as _0x3995b0}from'@univerjs/core';import{MCPConnectionController as _0x48fbcb,MCPConnectionError as _0x10e4ac,MCPConnectionStatus as _0x4bd71b,MCP_PLUGIN_CONFIG_KEY as _0x32eb5e,UniverMCPPlugin as _0x4362ff}from'@univerjs-pro/mcp';import{Button as _0x41630d,Input as _0x3b1f10,MessageType as _0x559393,Tooltip as _0x1b9f41,clsx as _0x16e411}from'@univerjs/design';import{BuiltInUIPart as _0x136998,ComponentManager as _0x5cee40,IDialogService as _0x34b195,IMenuManagerService as _0x1fb40c,IMessageService as _0xd34a62,IUIPartsService as _0x3b943c,MenuItemType as _0x57509d,RibbonStartGroup as _0x399ff1,connectInjector as _0x502440,useDependency as _0x5c7789,useObservable as _0x5ae267}from'@univerjs/ui';import{BehaviorSubject as _0x34a1cf}from'rxjs';import{CheckMarkIcon as _0x3098ad,CloseIcon as _0x3213cd,HelpIcon as _0x2256a3,OffLineIcon as _0x2a313c,OnLineIcon as _0x22e2f7}from'@univerjs/icons';import{useCallback as _0x515ef7,useState as _0x49f8ed}from'react';import{jsx as _0x2a2e78,jsxs as _0x537292}from'react/jsx-runtime';function _0x401f(){const _0x522c37=['mcpConfig.validation.invalidApiKey','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','connectionStatus$','5916869CTCGcZ','symbol','univer-space-y-2','setConfig','点击连接\x20MCP','mcpConfig.apiApplyInfo.getStarted','_createConfigPanelComponent','prototype','MenuIcon','MCPConfigPanel','API\x20key\x20is\x20required','配置保存成功','MCP\x20配置','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','version','_config','function','univer-text-red-500','2445264AiattA','8cUSrXl','show','_uiPartsService','sessionId$','off','mcpConfig.authorizationDescription','API\x20Key','_logService','MCP\x20连接中...','pluginName','mcpConfig.configError','配置步骤:','2339364AvTISC','mcpStatus.disconnected','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','register','showDeveloperTools','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','配置\x20MCP\x20使用\x20AI\x20操作电子表格','RETRYING','mcpConfig.connectionStatus.failed','univer-bg-red-500','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP:\x20未授权','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_localeService','univer-flex-1','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','\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','配置更改将立即生效','18794583FTRTyj','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-shadow-md\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_dialogService','mcpConfig.apiKeyHint','mcpConfig.configInstructions','请输入您的\x20API\x20密钥','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-scale-110\x20hover:univer-text-blue-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','网络连接错误,请检查您的网络连接','_blank','Click\x20to\x20configure\x20MCP','MCP:\x20Session\x20ID\x20Occupied','__setCustomHeaders','mcpConfig.configSaved','length','push','MCP\x20重连中...','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-size-4\x20univer-items-center\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','MCP\x20Connection\x20Failed','mcpConfig.connectionInfo','UNAUTHORIZED','mcpStatus.unknown','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','未连接','subscribeConfigValue$','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','_initStatusComponent','10SHmaCl','mcpStatus.networkError','CONNECTING','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','几秒钟内获取您的\x20API\x20密钥','\x20-\x20','_validateConfig','mcpConfig.note1','SESSION_ID_OCCUPIED','复制以下\x20JSON\x20配置','setItem','_messageService','mergeMenu','What\x20is\x20API\x20Key?','univer-flex\x20univer-items-start\x20univer-gap-3','noopener\x20noreferrer','univer-shrink-0\x20univer-text-red-500','MCP:\x20网络错误','连接失败','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','MCP\x20已连接','API\x20密钥不能为空','OTHERS','mcp.apiKey','MCP\x20Disconnected','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-xs\x20univer-text-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcpConfig.apiApplyInfo.title','Enter\x20your\x20API\x20key','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpStatus.failed','decorate','connectionError$','_commandService','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','保存中...','span','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP\x20Connecting...','MCP\x20Configuration','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_handleConfigure','div','_mcpCoreConfig$','Session\x20ID','_menuManagerService','68372NrqGSF','univer-mr-2\x20univer-flex\x20univer-text-xl','Bearer\x20','Error','univer-text-gray-400','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcpConfig.connectionStatus.retrying','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','subscribe','_config$','_initializeMenus','call','pre','_configService','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcp-ui.config','https://mcp.univer.ai/mcp/?univer_session_id=','MCP\x20Unknown\x20Status','univer-text-blue-600','mcpConfig.description','univer.plus','mcpStatus.retrying','open','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Success','mcpConfig.connectionError.networkError','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Authorization:','trim','showStatus','mcpConfig.configStepTitle','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_apiKey$','mcpServerUrl','Univer\x20AI\x20控制台','mcpConfig.apiApplyInfo.description','配置无效','Enable\x20authentication\x20for\x20secure\x20connections','_connectionController','errorMessage','univer-space-y-4','isValid','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-bg-blue-500','mcpConfig.configStep1','点击配置\x20MCP','API\x20key\x20with\x20Bearer\x20prefix.','将以下配置添加到您的\x20MCP\x20客户端设置中:','MCP:\x20Unauthorized','univer-bg-gray-500','MCP\x20Retrying...','mcpConfig.configParameters','权限验证失败,请检查您的\x20API\x20密钥','univer-flex\x20univer-flex-wrap\x20univer-gap-2','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-blue-500\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcpConfig.connectionStatus.disconnected','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-duration-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-scale-110\x20hover:univer-text-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcpConfig.saving','error','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20密钥','_initializeCommands','registerCommand','_loading$','mcpConfig.apiApplyInfo.univerAiLabel','最大重试次数','Connected','mcpStatus.unauthorized','_initConfigSync','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20Connected','_handleConfigSave','MCP:\x20会话\x20ID\x20已被占用','object','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-blue-500\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','HEADER_MENU','add','什么是\x20API\x20密钥?','_initAutoConnect','_loadStoredApiKey','MCP\x20连接失败','启用身份验证','univer-min-w-0\x20univer-flex-1','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','includes','Copy\x20the\x20JSON\x20configuration\x20below','default','mcpStatus.connecting','mcpConfig.configStep3','removeItem','39PveZWJ','enableAutoConnect','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','iterator','univer-size-4','Enable\x20Authentication','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-size-2\x20univer-rounded-full','mcpConfig.apiKeyPlaceholder','_localStorageService','univer-space-y-3','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-font-semibold\x20univer-text-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcpConfig.validation.apiKeyTooShort','Save\x20Configuration','NETWORK_ERROR','MCP:\x20Max\x20Retries\x20Exceeded','BUTTON','启用身份验证以获得安全连接','mcpConfig.sessionIdDescription','next','univer.ai','mcpConfig.connectionStatus.connected','button','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-text-gray-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','NONE','mcpConfig.title','保存配置','MCP\x20状态未知','MAX_RETRIES_EXCEEDED','has','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','string','warn','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','您的\x20API\x20密钥安全存储在本地存储中','univer-flex\x20univer-items-center\x20univer-gap-2','_componentManager','会话\x20ID\x20已被占用,请稍后再试','MCP\x20已断开','Retrying...','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','text','_injector','385341fhDMzT','_mcpConnectionController','https://console.univer.plus','apiKey','mcpConfig.configStep2','close','univer-text-yellow-500','mcpConfig.save','CONNECTED','6166510hcSIrR','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','getConfig','mcpConfig.validation.invalidConfig','showConfigPanel','univer-text-xs\x20univer-text-gray-500','univer-text-xs\x20univer-text-gray-600','MCP:\x20Network\x20Error','univer-bg-green-500','_registerComponent','disposeWithMe','mcpConfig.validation.apiKeyRequired','MCP:\x20超出最大重试次数','Configuration\x20Notes:','mcpConfig.note2','mcpStatus.connected','bottom','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','toPrimitive','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCP\x20客户端配置','value','univer-shrink-0\x20univer-text-blue-500','DISCONNECTED','get','https://console.univer.ai','Failed\x20to\x20save\x20configuration','FAILED'];_0x401f=function(){return _0x522c37;};return _0x401f();}import{ISocketService as _0xd38423,WebSocketService as _0x45b3ca}from'@univerjs/network';function z(_0x2cc88b){const _0x581836=_0x2936;var _0x3742c0,_0x25e211;let {mcpCoreConfig:_0x5971ca,onSave:_0x2c13f8,loading:_0x33ce2a=!0x1,config:_0x31c2ab,connectionStatus$:_0x592713,connectionError$:_0x2968ce,currentApiKey$:_0x1c6c96,currentSessionId$:_0x30db45}=_0x2cc88b,_0x3343f=_0x5c7789(_0x33ba30),_0x1c9393=_0x5ae267(_0x592713,_0x4bd71b[_0x581836(0x233)]),_0x28e0f7=_0x5ae267(_0x2968ce,_0x10e4ac[_0x581836(0x1ff)]),_0x34ce47=_0x5ae267(_0x30db45,''),[_0x447d91,_0x2db7bc]=_0x49f8ed(_0x5ae267(_0x1c6c96,'')||''),_0x2c3d61=_0x31c2ab[_0x581836(0x25e)]&&_0x5971ca[_0x581836(0x2da)]&&(_0x5971ca[_0x581836(0x2da)]['includes'](_0x581836(0x2cd))||_0x5971ca[_0x581836(0x2da)]['includes']('univer.ai')),_0x85d49a=(_0x3742c0=_0x5971ca[_0x581836(0x2da)])==null?void 0x0:_0x3742c0[_0x581836(0x1e0)](_0x581836(0x2cd)),_0x5c375a=(_0x25e211=_0x5971ca[_0x581836(0x2da)])==null?void 0x0:_0x25e211[_0x581836(0x1e0)](_0x581836(0x1fb)),_0x39fb78=_0x85d49a?_0x581836(0x215):_0x581836(0x235),_0x152580=_0x31c2ab[_0x581836(0x25e)]&&(_0x85d49a||_0x5c375a),[_0x41d728,_0x566027]=_0x49f8ed(!_0x447d91[_0x581836(0x2d5)]()),_0x2e5b8f=(_0xfd58a2,_0x329d5a)=>{const _0x3c7756=_0x581836;if(_0x329d5a===_0x10e4ac[_0x3c7756(0x282)])return _0x3c7756(0x2a7);switch(_0xfd58a2){case _0x4bd71b['CONNECTED']:return _0x3c7756(0x2ad);case _0x4bd71b[_0x3c7756(0x28b)]:case _0x4bd71b[_0x3c7756(0x262)]:return _0x3c7756(0x2e3);case _0x4bd71b[_0x3c7756(0x237)]:return _0x3c7756(0x2a7);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x2926b3=(_0x59fcfd,_0x3663b3)=>{const _0x4bb5c2=_0x581836;if(_0x3663b3===_0x10e4ac[_0x4bb5c2(0x282)])return _0x4bb5c2(0x264);switch(_0x59fcfd){case _0x4bd71b[_0x4bb5c2(0x21b)]:return _0x4bb5c2(0x224);case _0x4bd71b[_0x4bb5c2(0x28b)]:case _0x4bd71b[_0x4bb5c2(0x262)]:return _0x4bb5c2(0x2e4);case _0x4bd71b[_0x4bb5c2(0x237)]:return'univer-bg-red-500';default:return _0x4bb5c2(0x2ea);}},_0x191e78=_0x40e1e7=>{const _0x30a85a=_0x581836;switch(_0x40e1e7){case _0x4bd71b[_0x30a85a(0x21b)]:return _0x3343f['t'](_0x30a85a(0x1fc));case _0x4bd71b[_0x30a85a(0x28b)]:return _0x3343f['t']('mcpConfig.connectionStatus.connecting');case _0x4bd71b[_0x30a85a(0x237)]:return _0x3343f['t'](_0x30a85a(0x263));case _0x4bd71b[_0x30a85a(0x262)]:return _0x3343f['t'](_0x30a85a(0x2bf));default:return _0x3343f['t'](_0x30a85a(0x2f0));}},_0x4aafec=_0x441070=>{const _0x1aaf09=_0x581836;switch(_0x441070){case _0x10e4ac['UNAUTHORIZED']:return _0x3343f['t']('mcpConfig.connectionError.unauthorized');case _0x10e4ac[_0x1aaf09(0x291)]:return _0x3343f['t']('mcpConfig.connectionError.sessionOccupied');case _0x10e4ac[_0x1aaf09(0x1f5)]:return _0x3343f['t'](_0x1aaf09(0x2d2));case _0x10e4ac[_0x1aaf09(0x203)]:return _0x3343f['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x2eb580=_0x515ef7(()=>{_0x2c13f8({..._0x5971ca,'apiKey':_0x447d91['trim'](),'enableAuth':!0x0});},[_0x5971ca,_0x447d91,!0x0,_0x2c13f8]),_0x50aeae=_0x447d91[_0x581836(0x2d5)]()['length']>0x0;return _0x537292('div',{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x22f),'children':_0x537292(_0x581836(0x2b5),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x303),'children':_0x2a2e78('span',{'className':'univer-text-white','children':'⚙'})}),_0x2a2e78(_0x581836(0x2b5),{'children':_0x2a2e78('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x3343f['t'](_0x581836(0x2cc))})})]})}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x2a2),'children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x16e411(_0x581836(0x208),_0x2e5b8f(_0x1c9393,_0x28e0f7)),'children':_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x20b),'children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x16e411(_0x581836(0x1ed),_0x2926b3(_0x1c9393,_0x28e0f7))}),_0x2a2e78(_0x581836(0x2af),{'className':'univer-text-sm\x20univer-font-medium','children':_0x191e78(_0x1c9393)})]})}),_0x28e0f7!==_0x10e4ac[_0x581836(0x1ff)]&&(_0x1c9393===_0x4bd71b[_0x581836(0x237)]||_0x28e0f7===_0x10e4ac[_0x581836(0x282)])&&_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x2be),'children':_0x537292(_0x581836(0x2b5),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x2a2e78(_0x581836(0x2af),{'className':_0x581836(0x299),'children':'⚠️'}),_0x2a2e78('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x4aafec(_0x28e0f7)})]})})]}),_0x2a2e78('div',{'className':_0x581836(0x29c),'children':_0x537292(_0x581836(0x2b5),{'className':'univer-space-y-5','children':[_0x537292('div',{'className':_0x581836(0x23d),'children':[_0x537292('label',{'className':_0x581836(0x25c),'children':[_0x2a2e78(_0x581836(0x2af),{'children':'🔑'}),'\x20',_0x3343f['t']('mcpConfig.apiKey'),_0x2a2e78(_0x581836(0x2af),{'className':_0x581836(0x24c),'children':'*'}),_0x2c3d61&&_0x2a2e78('a',{'className':_0x581836(0x273),'title':_0x3343f['t'](_0x581836(0x2a5)),'role':_0x581836(0x1fd),'onClick':()=>_0x566027(!0x0),'children':_0x2a2e78(_0x2256a3,{})})]}),_0x2a2e78(_0x3b1f10,{'type':_0x581836(0x211),'placeholder':_0x3343f['t'](_0x581836(0x1ee)),'value':_0x447d91,'disabled':_0x33ce2a,'autoComplete':_0x581836(0x252),'onChange':_0x2db7bc}),_0x2a2e78('p',{'className':_0x581836(0x221),'children':_0x3343f['t'](_0x581836(0x270))})]}),_0x2c3d61&&_0x41d728&&_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x210),'children':[_0x2a2e78('a',{'className':_0x581836(0x2f1),'role':_0x581836(0x1fd),'onClick':()=>_0x566027(!0x1),'children':_0x2a2e78(_0x3213cd,{'className':_0x581836(0x1ea)})}),_0x537292('div',{'className':_0x581836(0x265),'children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x25f),'children':_0x2a2e78('span',{'className':_0x581836(0x2cb),'children':'🚀'})}),_0x537292('div',{'className':_0x581836(0x269),'children':[_0x2a2e78('h4',{'className':_0x581836(0x2c0),'children':_0x3343f['t']('mcpConfig.apiApplyInfo.title')}),_0x2a2e78('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x3343f['t'](_0x581836(0x2dc))}),_0x2a2e78('div',{'className':_0x581836(0x2ee),'children':_0x152580&&_0x537292('a',{'className':_0x581836(0x26e),'href':_0x39fb78,'target':_0x581836(0x275),'rel':_0x581836(0x298),'children':[_0x2a2e78('span',{'children':'🤖'}),_0x3343f['t'](_0x581836(0x2f9)),_0x2a2e78(_0x581836(0x2af),{'className':_0x581836(0x2bd),'children':'↗'})]})}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x205),'children':['✨','\x20',_0x3343f['t'](_0x581836(0x240))]})]})]})]}),_0x31c2ab[_0x581836(0x25e)]&&_0x537292(_0x581836(0x2b5),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[_0x537292('h4',{'className':_0x581836(0x1f2),'children':[_0x2a2e78(_0x581836(0x2af),{'children':'🔗'}),'\x20',_0x3343f['t'](_0x581836(0x281))]}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x2e1),'children':[_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x1f0),'children':[_0x2a2e78('p',{'className':_0x581836(0x222),'children':_0x3343f['t'](_0x581836(0x271))}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x23d),'children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x209),'children':_0x3343f['t'](_0x581836(0x2d7))}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x2a3),'children':[_0x537292('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2a2e78(_0x581836(0x2af),{'className':_0x581836(0x27f),'children':'1'}),_0x3343f['t'](_0x581836(0x2e5))]}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x20b),'children':[_0x2a2e78(_0x581836(0x2af),{'className':_0x581836(0x27f),'children':'2'}),_0x3343f['t'](_0x581836(0x217))]}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x20b),'children':[_0x2a2e78(_0x581836(0x2af),{'className':_0x581836(0x27f),'children':'3'}),_0x3343f['t'](_0x581836(0x1e4))]})]})]})]}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x23d),'children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x209),'children':_0x581836(0x2b2)}),_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x2d3),'children':_0x2a2e78(_0x581836(0x2c5),{'className':_0x581836(0x2a4),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x581836(0x2c9)+(_0x34ce47||'<SESSION_ID>'),'type':'http','headers':{'Authorization':_0x581836(0x2bb)+(_0x447d91||'<API_KEY>')}}}},null,0x2)})})]}),_0x537292('div',{'className':_0x581836(0x1f0),'children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x209),'children':_0x3343f['t'](_0x581836(0x2ec))}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x23d),'children':[_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x297),'children':[_0x2a2e78('div',{'className':_0x581836(0x2ef)}),_0x537292('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x2a2e78(_0x581836(0x2b5),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'univer_session_id:'}),_0x2a2e78('div',{'className':_0x581836(0x221),'children':_0x3343f['t'](_0x581836(0x1f9))})]})]}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x297),'children':[_0x2a2e78('div',{'className':_0x581836(0x2ef)}),_0x537292('div',{'className':_0x581836(0x1de),'children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x2b0),'children':_0x581836(0x2d4)}),_0x2a2e78(_0x581836(0x2b5),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3343f['t'](_0x581836(0x253))})]})]})]})]})]})]}),_0x2a2e78(_0x41630d,{'onClick':_0x2eb580,'disabled':!_0x50aeae||_0x33ce2a,'className':_0x581836(0x239),'children':_0x33ce2a?_0x537292(_0x581836(0x2af),{'className':_0x581836(0x20b),'children':[_0x2a2e78(_0x581836(0x2af),{'children':'⟲'}),_0x3343f['t'](_0x581836(0x2f2))]}):_0x537292('span',{'className':_0x581836(0x20b),'children':[_0x2a2e78(_0x3098ad,{}),_0x3343f['t'](_0x581836(0x21a))]})}),_0x2a2e78('div',{'className':_0x581836(0x2d0),'children':_0x537292('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x2a2e78(_0x581836(0x2af),{'className':_0x581836(0x232),'children':'💡'}),_0x537292(_0x581836(0x2b5),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x2a2e78(_0x581836(0x2b5),{'className':'univer-font-medium','children':_0x581836(0x229)}),_0x537292('div',{'children':['•',_0x3343f['t'](_0x581836(0x290))]}),_0x537292('div',{'children':['•',_0x3343f['t'](_0x581836(0x22a))]})]})]})})]})})]});}const B=_0x1cd625(0x2c8);Symbol(B);const V={'showDeveloperTools':!0x1,'showStatus':!0x0};function H(_0x1b37bf){'@babel/helpers - typeof';const _0x4891e9=_0x1cd625;return H=typeof Symbol==_0x4891e9(0x24b)&&typeof Symbol[_0x4891e9(0x1e9)]=='symbol'?function(_0x3c0fa6){return typeof _0x3c0fa6;}:function(_0xb1ab51){const _0x436dc7=_0x4891e9;return _0xb1ab51&&typeof Symbol==_0x436dc7(0x24b)&&_0xb1ab51['constructor']===Symbol&&_0xb1ab51!==Symbol[_0x436dc7(0x242)]?_0x436dc7(0x23c):typeof _0xb1ab51;},H(_0x1b37bf);}function oe(_0x282d9e,_0xc65165){const _0x4af70c=_0x1cd625;if(H(_0x282d9e)!=_0x4af70c(0x302)||!_0x282d9e)return _0x282d9e;var _0x4a0938=_0x282d9e[Symbol[_0x4af70c(0x22e)]];if(_0x4a0938!==void 0x0){var _0x36dae2=_0x4a0938[_0x4af70c(0x2c4)](_0x282d9e,_0xc65165||_0x4af70c(0x1e2));if(H(_0x36dae2)!=_0x4af70c(0x302))return _0x36dae2;throw TypeError(_0x4af70c(0x1df));}return(_0xc65165===_0x4af70c(0x206)?String:Number)(_0x282d9e);}function se(_0x1777aa){const _0x2714fd=_0x1cd625;var _0x451c72=oe(_0x1777aa,_0x2714fd(0x206));return H(_0x451c72)=='symbol'?_0x451c72:_0x451c72+'';}function U(_0xf27a58,_0x485dd9,_0x561f24){return(_0x485dd9=se(_0x485dd9))in _0xf27a58?Object['defineProperty'](_0xf27a58,_0x485dd9,{'value':_0x561f24,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xf27a58[_0x485dd9]=_0x561f24,_0xf27a58;}function W(_0x1ca578,_0x28db96){return function(_0x5455d4,_0x1b1baf){_0x28db96(_0x5455d4,_0x1b1baf,_0x1ca578);};}function G(_0x1faff1,_0x2859a4,_0x217a9d,_0x1bbd95){const _0x326bf4=_0x1cd625;var _0x3dc649=arguments['length'],_0x37f88d=_0x3dc649<0x3?_0x2859a4:_0x1bbd95===null?_0x1bbd95=Object['getOwnPropertyDescriptor'](_0x2859a4,_0x217a9d):_0x1bbd95,_0x34b14a;if(typeof Reflect==_0x326bf4(0x302)&&typeof Reflect['decorate']==_0x326bf4(0x24b))_0x37f88d=Reflect[_0x326bf4(0x2a9)](_0x1faff1,_0x2859a4,_0x217a9d,_0x1bbd95);else{for(var _0x55ef81=_0x1faff1[_0x326bf4(0x27a)]-0x1;_0x55ef81>=0x0;_0x55ef81--)(_0x34b14a=_0x1faff1[_0x55ef81])&&(_0x37f88d=(_0x3dc649<0x3?_0x34b14a(_0x37f88d):_0x3dc649>0x3?_0x34b14a(_0x2859a4,_0x217a9d,_0x37f88d):_0x34b14a(_0x2859a4,_0x217a9d))||_0x37f88d);}return _0x3dc649>0x3&&_0x37f88d&&Object['defineProperty'](_0x2859a4,_0x217a9d,_0x37f88d),_0x37f88d;}const K=_0x1cd625(0x2a0),q='mcp-config-dialog';let J=class extends _0x22b46c{constructor(_0x3ff7e2,_0x3183fc,_0x2d426f,_0x2853c5,_0x218dd3,_0x3961d3,_0x8e9f87,_0x35f389,_0x3c5529,_0x5ccbb0){const _0x3b6abf=_0x1cd625;super(),this[_0x3b6abf(0x212)]=_0x3ff7e2,this[_0x3b6abf(0x250)]=_0x3183fc,this[_0x3b6abf(0x2c6)]=_0x2d426f,this[_0x3b6abf(0x1ef)]=_0x2853c5,this[_0x3b6abf(0x26f)]=_0x218dd3,this[_0x3b6abf(0x294)]=_0x3961d3,this['_componentManager']=_0x8e9f87,this['_localeService']=_0x35f389,this[_0x3b6abf(0x255)]=_0x3c5529,this['_mcpConnectionController']=_0x5ccbb0,U(this,_0x3b6abf(0x2f8),new _0x34a1cf(!0x1)),U(this,_0x3b6abf(0x2b6),new _0x34a1cf({})),U(this,_0x3b6abf(0x2c2),new _0x34a1cf({})),U(this,_0x3b6abf(0x2d9),new _0x34a1cf('')),U(this,_0x3b6abf(0x300),async _0x49041b=>{const _0x436bce=_0x3b6abf;this[_0x436bce(0x2f8)]['next'](!0x0);try{var _0xbf66f1,_0xebbfad;let _0x4be46f=await this[_0x436bce(0x28f)](_0x49041b);if(!_0x4be46f[_0x436bce(0x2e2)]){this[_0x436bce(0x294)][_0x436bce(0x24f)]({'type':_0x559393[_0x436bce(0x2bc)],'content':_0x4be46f[_0x436bce(0x2e0)]||this[_0x436bce(0x268)]['t'](_0x436bce(0x21f))});return;}_0x49041b[_0x436bce(0x216)]?await this[_0x436bce(0x1ef)][_0x436bce(0x293)](K,_0x49041b[_0x436bce(0x216)][_0x436bce(0x2d5)]()):await this[_0x436bce(0x1ef)][_0x436bce(0x1e5)](K),this['_apiKey$'][_0x436bce(0x1fa)](((_0xbf66f1=_0x49041b[_0x436bce(0x216)])==null?void 0x0:_0xbf66f1['trim']())||''),this[_0x436bce(0x214)][_0x436bce(0x278)]({'Authorization':_0x436bce(0x2bb)+((_0xebbfad=_0x49041b[_0x436bce(0x216)])==null?void 0x0:_0xebbfad['trim']())}),this[_0x436bce(0x294)][_0x436bce(0x24f)]({'type':_0x559393[_0x436bce(0x2d1)],'content':this[_0x436bce(0x268)]['t'](_0x436bce(0x279))}),setTimeout(()=>{const _0x3f745f=_0x436bce;this[_0x3f745f(0x26f)][_0x3f745f(0x218)](q);},0x320);}catch(_0x2adb21){this[_0x436bce(0x255)]['error'](_0x436bce(0x28c),_0x2adb21),this[_0x436bce(0x294)][_0x436bce(0x24f)]({'type':_0x559393[_0x436bce(0x2bc)],'content':this[_0x436bce(0x268)]['t'](_0x436bce(0x258))});}finally{this['_loading$'][_0x436bce(0x1fa)](!0x1);}}),this[_0x3b6abf(0x2fd)](),this[_0x3b6abf(0x1db)](),this[_0x3b6abf(0x225)]();}[_0x1cd625(0x220)](){const _0x21ac46=_0x1cd625;let _0x2caf24=this[_0x21ac46(0x2c6)][_0x21ac46(0x21e)](B);_0x2caf24!=null&&_0x2caf24[_0x21ac46(0x25e)]&&this[_0x21ac46(0x26f)][_0x21ac46(0x2cf)]({'id':q,'title':{'title':this[_0x21ac46(0x268)]['t'](_0x21ac46(0x200))},'children':{'label':_0x21ac46(0x244)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0xc5fb53=_0x21ac46;this[_0xc5fb53(0x26f)][_0xc5fb53(0x218)](q);}});}['getCurrentConfig'](){const _0x353199=_0x1cd625;return this[_0x353199(0x2b6)][_0x353199(0x231)];}['_registerComponent'](){const _0x233bb6=_0x1cd625;this[_0x233bb6(0x226)](this[_0x233bb6(0x20c)][_0x233bb6(0x25d)](_0x233bb6(0x244),this[_0x233bb6(0x241)]()));}[_0x1cd625(0x241)](){const _0x5b8a02=_0x1cd625;return _0x502440(()=>{const _0x27dccf=_0x2936;var _0x4d1697,_0x25c20e,_0x154b59;return _0x2a2e78(z,{'config':this[_0x27dccf(0x2c2)][_0x27dccf(0x231)],'mcpCoreConfig':this[_0x27dccf(0x2b6)][_0x27dccf(0x231)],'currentApiKey$':this[_0x27dccf(0x2d9)],'onSave':this['_handleConfigSave'],'loading':this[_0x27dccf(0x2f8)][_0x27dccf(0x231)],'connectionStatus$':(_0x4d1697=this[_0x27dccf(0x214)])==null?void 0x0:_0x4d1697[_0x27dccf(0x23a)],'connectionError$':(_0x25c20e=this['_mcpConnectionController'])==null?void 0x0:_0x25c20e[_0x27dccf(0x2aa)],'currentSessionId$':(_0x154b59=this['_mcpConnectionController'])==null?void 0x0:_0x154b59[_0x27dccf(0x251)]});},this[_0x5b8a02(0x212)]);}[_0x1cd625(0x2fd)](){const _0x15fe7f=_0x1cd625;this[_0x15fe7f(0x226)](this[_0x15fe7f(0x2c6)][_0x15fe7f(0x286)](_0x32eb5e)[_0x15fe7f(0x2c1)](_0x16d164=>{const _0xce613a=_0x15fe7f;this[_0xce613a(0x2b6)][_0xce613a(0x1fa)](_0x16d164||{});}));let _0x381fd0=this[_0x15fe7f(0x2c6)]['getConfig'](_0x32eb5e);this[_0x15fe7f(0x2b6)][_0x15fe7f(0x1fa)](_0x381fd0||{}),this['disposeWithMe'](this[_0x15fe7f(0x2c6)][_0x15fe7f(0x286)](B)[_0x15fe7f(0x2c1)](_0xf2e01c=>{const _0x273b8c=_0x15fe7f;this[_0x273b8c(0x2c2)][_0x273b8c(0x1fa)](_0xf2e01c||{});}));let _0x5a8a80=this['_configService']['getConfig'](B);this[_0x15fe7f(0x2c2)]['next'](_0x5a8a80||{});}async[_0x1cd625(0x1db)](){const _0x4104ce=_0x1cd625;let _0x5cf3cd=this['_configService'][_0x4104ce(0x21e)](B);if(!(_0x5cf3cd!=null&&_0x5cf3cd[_0x4104ce(0x25e)]))return;let _0x381b0d=await this[_0x4104ce(0x1ef)]['getItem'](K);_0x381b0d&&(this[_0x4104ce(0x214)][_0x4104ce(0x278)]({'Authorization':_0x4104ce(0x2bb)+_0x381b0d}),this[_0x4104ce(0x2d9)][_0x4104ce(0x1fa)](_0x381b0d));}async['_validateConfig'](_0x1c56b2){const _0x349671=_0x1cd625;if(!_0x1c56b2['apiKey']||_0x1c56b2[_0x349671(0x216)][_0x349671(0x2d5)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x349671(0x268)]['t'](_0x349671(0x227))};if(_0x1c56b2[_0x349671(0x216)][_0x349671(0x2d5)]()[_0x349671(0x27a)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x349671(0x1f3))};try{let _0x56b4ac=await this['_injector'][_0x349671(0x234)](_0x48fbcb)['validateApiKey'](_0x1c56b2[_0x349671(0x216)][_0x349671(0x2d5)]());return _0x56b4ac[_0x349671(0x2e2)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x56b4ac[_0x349671(0x2f3)]||this[_0x349671(0x268)]['t'](_0x349671(0x238))};}catch(_0x1bcbba){return console[_0x349671(0x207)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x1bcbba),{'isValid':!0x0};}}};J=G([W(0x0,_0x33a2db(_0x2a6ad2)),W(0x1,_0x3b943c),W(0x2,_0x1394fc),W(0x3,_0x2994a8),W(0x4,_0x34b195),W(0x5,_0xd34a62),W(0x6,_0x33a2db(_0x5cee40)),W(0x7,_0x33a2db(_0x33ba30)),W(0x8,_0xdcc11c),W(0x9,_0x33a2db(_0x48fbcb))],J);const Y={'id':'mcp-ui.command.openConfigPanel','type':_0x51acc['COMMAND'],'handler':async(_0x1c428e,_0x3e9ff8)=>(_0x1c428e[_0x1cd625(0x234)](J)['showConfigPanel'](),!0x0)};function X(_0x4e44c2,_0x59548d){const _0x29fcd8=_0x1cd625;switch(_0x4e44c2){case _0x4bd71b[_0x29fcd8(0x233)]:return _0x29fcd8(0x25b);case _0x4bd71b[_0x29fcd8(0x28b)]:return _0x29fcd8(0x1e3);case _0x4bd71b[_0x29fcd8(0x21b)]:return _0x29fcd8(0x22b);case _0x4bd71b['FAILED']:switch(_0x59548d){case _0x10e4ac[_0x29fcd8(0x282)]:return _0x29fcd8(0x2fc);case _0x10e4ac[_0x29fcd8(0x291)]:return'mcpStatus.sessionOccupied';case _0x10e4ac[_0x29fcd8(0x1f5)]:return _0x29fcd8(0x28a);case _0x10e4ac[_0x29fcd8(0x203)]:return'mcpStatus.maxRetriesExceeded';default:return _0x29fcd8(0x2a8);}case _0x4bd71b[_0x29fcd8(0x262)]:return _0x29fcd8(0x2ce);default:return _0x29fcd8(0x283);}}function ce(_0x5535f3,_0x56af02,_0x12d55e,_0x3f31c8=!0x0){const _0x27a457=_0x1cd625;let _0x45a3f8=X(_0x5535f3,_0x56af02),_0x3de941=_0x12d55e['t'](_0x45a3f8);return _0x3f31c8?_0x5535f3===_0x4bd71b['DISCONNECTED']&&_0x56af02===_0x10e4ac[_0x27a457(0x282)]?_0x3de941+_0x27a457(0x28e)+_0x12d55e['t']('mcpStatus.clickToConfigure'):_0x5535f3===_0x4bd71b[_0x27a457(0x21b)]?''+_0x3de941:_0x5535f3===_0x4bd71b[_0x27a457(0x233)]||_0x5535f3===_0x4bd71b[_0x27a457(0x237)]?_0x3de941+_0x27a457(0x28e)+_0x12d55e['t']('mcpStatus.clickToConnect'):_0x3de941:_0x3de941;}function le(_0xaee1c1){const _0x4255b5=_0x1cd625;switch(_0xaee1c1){case _0x4bd71b['CONNECTED']:return'univer-text-green-500';case _0x4bd71b[_0x4255b5(0x28b)]:case _0x4bd71b[_0x4255b5(0x262)]:return _0x4255b5(0x219);case _0x4bd71b[_0x4255b5(0x237)]:case _0x4bd71b['DISCONNECTED']:return _0x4255b5(0x24c);default:return'univer-text-gray-500';}}function ue(_0x318300){const _0x5b7916=_0x1cd625;let {status$:_0x2e42fd,error$:_0x20b81c,onConfigure:_0xd9e898,showClickable:_0x3c4359=!0x0}=_0x318300,_0x4a9e2a=_0x5ae267(_0x2e42fd,_0x4bd71b[_0x5b7916(0x233)]),_0x34388a=_0x5ae267(_0x20b81c,_0x10e4ac[_0x5b7916(0x1ff)]),_0x13abf0=_0x5c7789(_0x33ba30),_0x14d42a=_0x4a9e2a===_0x4bd71b['CONNECTED'];_0x4a9e2a===_0x4bd71b[_0x5b7916(0x28b)]||_0x4bd71b[_0x5b7916(0x262)];let _0xe300e4=_0x13abf0['t'](X(_0x4a9e2a,_0x34388a)),_0x189317=ce(_0x4a9e2a,_0x34388a,_0x13abf0,_0x3c4359),_0x5a9045=le(_0x4a9e2a),_0x83f9a2=_0x2a2e78(_0x14d42a?_0x22e2f7:_0x2a313c,{}),_0x20489e=_0x515ef7(()=>{_0x3c4359&&_0xd9e898&&_0xd9e898();},[_0x3c4359,_0xd9e898]);function _0x582f33(){const _0x40ec17=_0x5b7916;return _0x537292('div',{'className':_0x16e411('univer-flex\x20univer-items-center',_0x3c4359&&_0xd9e898&&_0x40ec17(0x26b)),'role':_0x40ec17(0x1fd),'onClick':_0x3c4359&&_0xd9e898?_0x20489e:void 0x0,'children':[_0x2a2e78(_0x40ec17(0x2b5),{'className':_0x16e411(_0x40ec17(0x2ba),_0x5a9045),'children':_0x83f9a2}),_0x2a2e78('div',{'className':_0x40ec17(0x1fe),'children':_0xe300e4})]});}return _0x2a2e78(_0x1b9f41,{'title':_0x189317,'placement':_0x5b7916(0x22c),'children':_0x582f33()});}let Z=class extends _0x22b46c{constructor(_0x5098ed,_0xac1ea3,_0x449776,_0xd93cbc){const _0x31d0f1=_0x1cd625;super(),this[_0x31d0f1(0x212)]=_0x5098ed,this[_0x31d0f1(0x2df)]=_0xac1ea3,this[_0x31d0f1(0x250)]=_0x449776,this[_0x31d0f1(0x2c6)]=_0xd93cbc,this[_0x31d0f1(0x1da)](),this[_0x31d0f1(0x288)]();}[_0x1cd625(0x1da)](){const _0x4c0a1f=_0x1cd625;let _0x27b1f1=this[_0x4c0a1f(0x2c6)][_0x4c0a1f(0x21e)](B);_0x27b1f1!=null&&_0x27b1f1[_0x4c0a1f(0x25e)]&&(this['_connectionController'][_0x4c0a1f(0x1e7)]=!0x1);}[_0x1cd625(0x288)](){const _0x66fb9=_0x1cd625;let _0x5c3469=this[_0x66fb9(0x2c6)][_0x66fb9(0x21e)](B);(_0x5c3469==null?void 0x0:_0x5c3469[_0x66fb9(0x2d6)])!==!0x1&&this['disposeWithMe'](this[_0x66fb9(0x250)]['registerComponent'](_0x136998[_0x66fb9(0x304)],()=>{const _0x1eeaa6=_0x66fb9;var _0x47a7df;return _0x502440(de({'status$':this[_0x1eeaa6(0x2df)][_0x1eeaa6(0x23a)],'error$':this[_0x1eeaa6(0x2df)][_0x1eeaa6(0x2aa)],'onConfigure':()=>this[_0x1eeaa6(0x2b4)](),'showClickable':(_0x47a7df=_0x5c3469==null?void 0x0:_0x5c3469[_0x1eeaa6(0x25e)])==null?!0x1:_0x47a7df}),this[_0x1eeaa6(0x212)]);}));}[_0x1cd625(0x2b4)](){const _0x3d5e73=_0x1cd625;this[_0x3d5e73(0x212)][_0x3d5e73(0x234)](J)[_0x3d5e73(0x220)]();}};Z=G([W(0x0,_0x33a2db(_0x2a6ad2)),W(0x1,_0x33a2db(_0x48fbcb)),W(0x2,_0x3b943c),W(0x3,_0x1394fc)],Z);function de(_0x43d0f6){let {status$:_0x50a0f7,error$:_0x10f2a7,onConfigure:_0x255f1e,showClickable:_0x7492df}=_0x43d0f6;return function(){return _0x2a2e78(ue,{'status$':_0x50a0f7,'error$':_0x10f2a7,'onConfigure':_0x255f1e,'showClickable':_0x7492df});};}function fe(_0x41af9e){const _0x213aba=_0x1cd625;return{'id':Y['id'],'type':_0x57509d[_0x213aba(0x1f7)],'icon':_0x213aba(0x243),'title':_0x213aba(0x200),'tooltip':_0x213aba(0x200)};}const pe={[_0x399ff1[_0x1cd625(0x29f)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0x22b46c{constructor(_0x33e1ae,_0x2ffecc){const _0x902b52=_0x1cd625;super(),this[_0x902b52(0x2ab)]=_0x33e1ae,this[_0x902b52(0x2b8)]=_0x2ffecc,this[_0x902b52(0x2f6)](),this[_0x902b52(0x2c3)]();}[_0x1cd625(0x2f6)](){[Y]['forEach'](_0x1feef1=>{const _0x2ebcd0=_0x2936;this['disposeWithMe'](this[_0x2ebcd0(0x2ab)][_0x2ebcd0(0x2f7)](_0x1feef1));});}[_0x1cd625(0x2c3)](){const _0x5c63e4=_0x1cd625;this[_0x5c63e4(0x2b8)][_0x5c63e4(0x295)](pe);}};function _0x2936(_0x37ac36,_0x293ccd){_0x37ac36=_0x37ac36-0x1d9;const _0x401f75=_0x401f();let _0x29363d=_0x401f75[_0x37ac36];return _0x29363d;}Q=G([W(0x0,_0x80a00c),W(0x1,_0x1fb40c)],Q);const me={'mcpStatus':{'disconnected':_0x1cd625(0x2a1),'connecting':_0x1cd625(0x2b1),'connected':_0x1cd625(0x2ff),'failed':_0x1cd625(0x280),'retrying':_0x1cd625(0x2eb),'unknown':_0x1cd625(0x2ca),'unauthorized':_0x1cd625(0x2e9),'sessionOccupied':_0x1cd625(0x277),'networkError':_0x1cd625(0x223),'maxRetriesExceeded':_0x1cd625(0x1f6),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1cd625(0x276)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1cd625(0x254),'apiKeyPlaceholder':_0x1cd625(0x2a6),'apiKeyHint':_0x1cd625(0x22d),'enableAuth':_0x1cd625(0x1eb),'enableAuthHint':_0x1cd625(0x2de),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1cd625(0x2ac),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x1cd625(0x1e1),'configStep2':_0x1cd625(0x248),'configStep3':_0x1cd625(0x260),'sessionId':_0x1cd625(0x2b7),'sessionIdDescription':_0x1cd625(0x1f1),'authorizationDescription':_0x1cd625(0x2e7),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x1cd625(0x1f4),'saving':'Saving...','note1':_0x1cd625(0x27e),'note2':_0x1cd625(0x21d),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x1cd625(0x236),'apiApplyInfo':{'title':_0x1cd625(0x296),'description':_0x1cd625(0x26a),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x1cd625(0x27d)},'validation':{'apiKeyRequired':_0x1cd625(0x245),'apiKeyTooShort':_0x1cd625(0x2d8),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x1cd625(0x267)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x1cd625(0x2fb),'failed':'Connection\x20Failed','retrying':_0x1cd625(0x20f)},'connectionError':{'unauthorized':_0x1cd625(0x284),'sessionOccupied':_0x1cd625(0x287),'networkError':_0x1cd625(0x1e8),'maxRetriesExceeded':_0x1cd625(0x2c7)}}},he={'mcpStatus':{'disconnected':_0x1cd625(0x20e),'connecting':_0x1cd625(0x256),'connected':_0x1cd625(0x29d),'failed':_0x1cd625(0x1dc),'retrying':_0x1cd625(0x27c),'unknown':_0x1cd625(0x202),'unauthorized':_0x1cd625(0x266),'sessionOccupied':_0x1cd625(0x301),'networkError':_0x1cd625(0x29a),'maxRetriesExceeded':_0x1cd625(0x228),'clickToConnect':_0x1cd625(0x23f),'clickToConfigure':_0x1cd625(0x2e6)},'mcpConfig':{'title':_0x1cd625(0x247),'description':_0x1cd625(0x261),'apiKey':_0x1cd625(0x2f5),'apiKeyPlaceholder':_0x1cd625(0x272),'apiKeyHint':_0x1cd625(0x2f4),'enableAuth':_0x1cd625(0x1dd),'enableAuthHint':_0x1cd625(0x1f8),'connectionInfo':_0x1cd625(0x230),'mcpClientConfig':_0x1cd625(0x230),'configInstructions':_0x1cd625(0x2e8),'configStepTitle':_0x1cd625(0x259),'configStep1':_0x1cd625(0x292),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x1cd625(0x1ec),'authorizationDescription':_0x1cd625(0x2fe),'configParameters':'配置参数:','maxRetries':_0x1cd625(0x2fa),'save':_0x1cd625(0x201),'saving':_0x1cd625(0x2ae),'note1':_0x1cd625(0x26c),'note2':_0x1cd625(0x20a),'configSaved':_0x1cd625(0x246),'configError':'配置保存失败','apiApplyInfo':{'title':_0x1cd625(0x1d9),'description':_0x1cd625(0x2b3),'univerAiLabel':_0x1cd625(0x2db),'getStarted':_0x1cd625(0x28d)},'validation':{'apiKeyRequired':_0x1cd625(0x29e),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x1cd625(0x2dd),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x1cd625(0x285),'connecting':'连接中...','connected':'已连接','failed':_0x1cd625(0x29b),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x1cd625(0x2ed),'sessionOccupied':_0x1cd625(0x20d),'networkError':_0x1cd625(0x274),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var ge='@univerjs-pro/mcp-ui',_e='0.18.0';let $=class extends _0x1590a1{constructor(_0x3ea3f4=V,_0x2c358e,_0x277215,_0x363b75,_0x27c687,_0x2b584e){const _0x43f0ef=_0x1cd625;super(),this[_0x43f0ef(0x24a)]=_0x3ea3f4,this[_0x43f0ef(0x212)]=_0x2c358e,this[_0x43f0ef(0x2c6)]=_0x277215,this[_0x43f0ef(0x250)]=_0x363b75,this[_0x43f0ef(0x1ef)]=_0x27c687,this['_localeService']=_0x2b584e;let {..._0x3c4097}=_0x3995b0({},V,this[_0x43f0ef(0x24a)]);this[_0x43f0ef(0x2c6)][_0x43f0ef(0x23e)](B,_0x3c4097);}async['onStarting'](){const _0x452116=_0x1cd625;let _0x357409=[[Z],[J],[Q]];this['_injector'][_0x452116(0x204)](_0xd38423)||_0x357409[_0x452116(0x27b)]([_0xd38423,{'useClass':_0x45b3ca}]),_0x357409['forEach'](_0x20491f=>this['_injector'][_0x452116(0x305)](_0x20491f)),this['_injector'][_0x452116(0x234)](Z),this[_0x452116(0x212)][_0x452116(0x234)](J),this[_0x452116(0x212)]['get'](Q);}};U($,_0x1cd625(0x257),'MCP_UI_PLUGIN'),U($,'packageName',ge),U($,_0x1cd625(0x249),_e),$=G([_0x177445(_0x4362ff),W(0x1,_0x33a2db(_0x2a6ad2)),W(0x2,_0x1394fc),W(0x3,_0x3b943c),W(0x4,_0x2994a8),W(0x5,_0x33a2db(_0x33ba30))],$);export{z as MCPConfigPanel,J as MCPConfigUIController,Z as MCPConnectionUIController,ue as MCPStatusDisplay,Q as MCPUIMenuController,Y as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,me as enUS,he as zhCN};
1
+ function _0x5244(_0x4a6e48,_0x4ca01c){_0x4a6e48=_0x4a6e48-0x1da;const _0x4b1ffe=_0x4b1f();let _0x524445=_0x4b1ffe[_0x4a6e48];return _0x524445;}function _0x4b1f(){const _0x5d79a6=['univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','UNAUTHORIZED','button','56PMJqtY','_uiPartsService','_apiKey$','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_handleConfigSave','_validateConfig','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','0.20.1','decorate','mcpConfig.connectionStatus.disconnected','COMMAND','MCP_UI_PLUGIN','API\x20密钥不能为空','mcpConfig.sessionIdDescription','subscribeConfigValue$','Disconnected','会话\x20ID\x20已被占用,请稍后再试','什么是\x20API\x20密钥?','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer_session_id:','点击连接\x20MCP','connectionStatus$','已连接','_registerComponent','Configuration\x20saved\x20successfully','What\x20is\x20API\x20Key?','MCP\x20重连中...','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','@univerjs-pro/mcp-ui','mergeMenu','_createConfigPanelComponent','606pBHEGj','MCP\x20Configuration','Enter\x20your\x20API\x20key','mcpConfig.configStep2','启用身份验证','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','_initializeCommands','univer-bg-green-500','将以下配置添加到您的\x20MCP\x20客户端设置中:','连接失败','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP:\x20超出最大重试次数','univer-flex\x20univer-items-center\x20univer-gap-2','Configuration\x20Parameters:','univer-flex-1','next','univer-text-yellow-500','Saving...','mcpConfig.configStep3','配置保存成功','showConfigPanel','_initConfigSync','MCP:\x20会话\x20ID\x20已被占用','length','MCP\x20Connected','HEADER_MENU','warn','mcpConfig.connectionError.maxRetriesExceeded','Retrying...','未连接','univer-flex\x20univer-gap-3','MCPConfigPanel','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','errorMessage','mcpConfig.configStepTitle','noopener\x20noreferrer','Configuration\x20Steps:','_componentManager','网络连接错误,请检查您的网络连接','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpStatus.retrying','mcpConfig.connectionStatus.connecting','bottom','https://mcp.univer.ai/mcp/?univer_session_id=','packageName','univer-space-y-5','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','121892SCvAfk','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','onStarting','includes','CONNECTED','58115bEGrcM','_menuManagerService','_connectionController','univer-text-gray-400','732205DhVNvX','getItem','default','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','push','Save\x20Configuration','mcpServerUrl','univer-text-sm\x20univer-font-medium','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','add','show','\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','Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','mcp.apiKey','Success','_mcpCoreConfig$','univer-bg-red-500','constructor','权限验证失败,请检查您的\x20API\x20密钥','mcpConfig.connectionStatus.failed','span','stringify','symbol','mcpConfig.note2','_injector','_configService','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP\x20Client\x20Configuration','defineProperty','mcpStatus.disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','mcpConfig.connectionStatus.connected','API\x20密钥无效,请检查密钥是否正确','mcpStatus.maxRetriesExceeded','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','apiKey','mcpConfig.apiKeyHint','off','_initStatusComponent','mcpConfig.authorizationDescription','_handleConfigure','__setCustomHeaders','mcpStatus.clickToConnect','_messageService','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','14087646MjmVPb','univer-text-xs\x20univer-text-gray-500','mcp-ui.command.openConfigPanel','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-text-red-500','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','最大重试次数','MCP:\x20Max\x20Retries\x20Exceeded','NONE','\x20-\x20','connectionError$','univer-size-2\x20univer-rounded-full','MAX_RETRIES_EXCEEDED','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_initializeMenus','MCP\x20客户端配置','保存配置','MCP\x20Unknown\x20Status','mcpConfig.title','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.configParameters','_loadStoredApiKey','_localeService','univer-bg-gray-500','278803weOgMY','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','重启您的\x20MCP\x20客户端以使配置生效','setConfig','univer-flex\x20univer-items-start\x20univer-gap-3','配置步骤:','sessionId$','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','subscribe','MCP\x20已连接','registerCommand','univer-space-y-2','mcpStatus.networkError','close','_loading$','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.configSaved','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-flex\x20univer-items-center\x20univer-gap-3','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','SESSION_ID_OCCUPIED','Connected','showDeveloperTools','配置无效','API\x20key\x20is\x20required','error','forEach','univer-shrink-0\x20univer-text-red-500','mcpConfig.connectionError.networkError','_logService','toPrimitive','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer.ai','mcpConfig.apiKeyPlaceholder','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20configure\x20MCP','mcpConfig.configInstructions','setItem','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20密钥','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Session\x20ID','get','MCP:\x20网络错误','配置更改将立即生效','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','重连中...','getConfig','FAILED','version','RETRYING','mcpConfig.configStep1','<API_KEY>','mcpConfig.description','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','univer-flex\x20univer-flex-wrap\x20univer-gap-2','prototype','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpStatus.connecting','mcpConfig.apiApplyInfo.getStarted','univer-min-w-0\x20univer-flex-1','univer-text-sm\x20univer-text-gray-500','https://console.univer.plus','string','Click\x20to\x20connect\x20MCP','http','object','OTHERS','mcpConfig.validation.invalidApiKey','univer-font-medium','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','value','会话ID','isValid','Bearer\x20','enableAutoConnect','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-flex\x20univer-items-start\x20univer-gap-2','disposeWithMe','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','mcpStatus.clickToConfigure','MCP:\x20Network\x20Error','mcpConfig.connectionError.sessionOccupied','配置参数:','univer.plus','univer-size-4','MCP:\x20Unauthorized','Authorization:','mcpConfig.validation.invalidConfig','mcpConfig.connectionInfo','_dialogService','MCP:\x20Session\x20ID\x20Occupied','BUTTON','Error','univer-space-y-3','validateApiKey','Invalid\x20configuration','MCP\x20连接失败','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','_config$','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Configuration\x20Notes:','_blank','mcpConfig.apiApplyInfo.title','DISCONNECTED','MCP\x20Connection\x20Failed','label','配置保存失败','NETWORK_ERROR','Univer\x20AI\x20控制台','Copy\x20the\x20JSON\x20configuration\x20below','univer-text-white','div','getCurrentConfig','_commandService','call','mcpConfig.validation.apiKeyTooShort','univer-text-blue-600','2394752gPfvAr','_initAutoConnect','API\x20Key','mcp-config-dialog','CONNECTING','_mcpConnectionController','trim','_localStorageService','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','请输入您的\x20API\x20密钥','3478347uSJIsX','text'];_0x4b1f=function(){return _0x5d79a6;};return _0x4b1f();}const _0x28ce8a=_0x5244;(function(_0x3f9b30,_0xee6bae){const _0x4c8448=_0x5244,_0x2b08fd=_0x3f9b30();while(!![]){try{const _0xe89643=parseInt(_0x4c8448(0x2ef))/0x1+parseInt(_0x4c8448(0x287))/0x2+-parseInt(_0x4c8448(0x291))/0x3+parseInt(_0x4c8448(0x2e5))/0x4+parseInt(_0x4c8448(0x2eb))/0x5*(parseInt(_0x4c8448(0x2b5))/0x6)+-parseInt(_0x4c8448(0x20d))/0x7*(-parseInt(_0x4c8448(0x296))/0x8)+-parseInt(_0x4c8448(0x1f3))/0x9;if(_0xe89643===_0xee6bae)break;else _0x2b08fd['push'](_0x2b08fd['shift']());}catch(_0x130388){_0x2b08fd['push'](_0x2b08fd['shift']());}}}(_0x4b1f,0xa7fa5));import{CommandType as _0x8810a8,DependentOn as _0x5a9818,Disposable as _0x3b8284,ICommandService as _0x17d690,IConfigService as _0x23bc82,ILocalStorageService as _0x5f22c6,ILogService as _0x3bb11f,Inject as _0x53c2f0,Injector as _0x61c00e,LocaleService as _0x34569a,Plugin as _0x1be01a,merge as _0x4ed231}from'@univerjs/core';import{MCPConnectionController as _0x722788,MCPConnectionError as _0x31c95a,MCPConnectionStatus as _0x5b38e1,MCP_PLUGIN_CONFIG_KEY as _0x2da9b3,UniverMCPPlugin as _0x11a395}from'@univerjs-pro/mcp';import{Button as _0xbd5d2c,Input as _0x5dc7f1,MessageType as _0x261752,Tooltip as _0x3d1bb2,clsx as _0xf6b5fa}from'@univerjs/design';import{BuiltInUIPart as _0x3600f0,ComponentManager as _0x45d10a,IDialogService as _0x2d156b,IMenuManagerService as _0x3652e0,IMessageService as _0x28ad13,IUIPartsService as _0x2871fb,MenuItemType as _0x1d06c6,RibbonStartGroup as _0x532d5f,connectInjector as _0x3381fc,useDependency as _0xaaf771,useObservable as _0x5b245a}from'@univerjs/ui';import{BehaviorSubject as _0x6bc32f}from'rxjs';import{CheckMarkIcon as _0x25a51b,CloseIcon as _0x2df2cc,HelpIcon as _0xfc3388,OffLineIcon as _0x8d9fde,OnLineIcon as _0x3c55cc}from'@univerjs/icons';import{useCallback as _0x1eb342,useState as _0x28277a}from'react';import{jsx as _0x1add3b,jsxs as _0x520df6}from'react/jsx-runtime';import{ISocketService as _0x2abfd5,WebSocketService as _0x16689d}from'@univerjs/network';function z(_0x1322f6){const _0x27e1e0=_0x5244;var _0x1c2f28,_0x365968;let {mcpCoreConfig:_0x1b8519,onSave:_0x9204b5,loading:_0xec9afb=!0x1,config:_0x29c0d2,connectionStatus$:_0x270808,connectionError$:_0x4e55f4,currentApiKey$:_0x263088,currentSessionId$:_0x542fa3}=_0x1322f6,_0x49c05f=_0xaaf771(_0x34569a),_0x3e4f54=_0x5b245a(_0x270808,_0x5b38e1[_0x27e1e0(0x279)]),_0x5466cb=_0x5b245a(_0x4e55f4,_0x31c95a['NONE']),_0x25dd20=_0x5b245a(_0x542fa3,''),[_0x46a1cb,_0x5ab4ae]=_0x28277a(_0x5b245a(_0x263088,'')||''),_0x110b13=_0x29c0d2[_0x27e1e0(0x227)]&&_0x1b8519[_0x27e1e0(0x2f5)]&&(_0x1b8519['mcpServerUrl'][_0x27e1e0(0x2e9)](_0x27e1e0(0x265))||_0x1b8519[_0x27e1e0(0x2f5)][_0x27e1e0(0x2e9)]('univer.ai')),_0x1a7ff4=(_0x1c2f28=_0x1b8519[_0x27e1e0(0x2f5)])==null?void 0x0:_0x1c2f28['includes']('univer.plus'),_0x4321b1=(_0x365968=_0x1b8519['mcpServerUrl'])==null?void 0x0:_0x365968[_0x27e1e0(0x2e9)](_0x27e1e0(0x231)),_0x3964fa=_0x1a7ff4?_0x27e1e0(0x24f):'https://console.univer.ai',_0x1ab8a6=_0x29c0d2[_0x27e1e0(0x227)]&&(_0x1a7ff4||_0x4321b1),[_0x50554e,_0x2beb72]=_0x28277a(!_0x46a1cb[_0x27e1e0(0x28d)]()),_0x34bdb4=(_0xe9b691,_0x51f177)=>{const _0x4841f7=_0x27e1e0;if(_0x51f177===_0x31c95a[_0x4841f7(0x294)])return _0x4841f7(0x2b1);switch(_0xe9b691){case _0x5b38e1[_0x4841f7(0x2ea)]:return _0x4841f7(0x20e);case _0x5b38e1['CONNECTING']:case _0x5b38e1[_0x4841f7(0x243)]:return _0x4841f7(0x260);case _0x5b38e1[_0x4841f7(0x241)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x514455=(_0x377daa,_0xf9de09)=>{const _0x4c5132=_0x27e1e0;if(_0xf9de09===_0x31c95a['UNAUTHORIZED'])return'univer-bg-red-500';switch(_0x377daa){case _0x5b38e1['CONNECTED']:return _0x4c5132(0x2bc);case _0x5b38e1[_0x4c5132(0x28b)]:case _0x5b38e1[_0x4c5132(0x243)]:return'univer-bg-blue-500';case _0x5b38e1[_0x4c5132(0x241)]:return _0x4c5132(0x301);default:return _0x4c5132(0x20c);}},_0x3da5a6=_0x4f2b24=>{const _0x5190d1=_0x27e1e0;switch(_0x4f2b24){case _0x5b38e1['CONNECTED']:return _0x49c05f['t'](_0x5190d1(0x1e5));case _0x5b38e1[_0x5190d1(0x28b)]:return _0x49c05f['t'](_0x5190d1(0x2df));case _0x5b38e1[_0x5190d1(0x241)]:return _0x49c05f['t'](_0x5190d1(0x304));case _0x5b38e1[_0x5190d1(0x243)]:return _0x49c05f['t']('mcpConfig.connectionStatus.retrying');default:return _0x49c05f['t'](_0x5190d1(0x29f));}},_0x143172=_0x10f9a4=>{const _0x2157eb=_0x27e1e0;switch(_0x10f9a4){case _0x31c95a[_0x2157eb(0x294)]:return _0x49c05f['t']('mcpConfig.connectionError.unauthorized');case _0x31c95a[_0x2157eb(0x225)]:return _0x49c05f['t'](_0x2157eb(0x263));case _0x31c95a['NETWORK_ERROR']:return _0x49c05f['t'](_0x2157eb(0x22d));case _0x31c95a[_0x2157eb(0x201)]:return _0x49c05f['t'](_0x2157eb(0x2d0));default:return'';}},_0x243933=_0x1eb342(()=>{const _0x236fbf=_0x27e1e0;_0x9204b5({..._0x1b8519,'apiKey':_0x46a1cb[_0x236fbf(0x28d)](),'enableAuth':!0x0});},[_0x1b8519,_0x46a1cb,!0x0,_0x9204b5]),_0x1f980d=_0x46a1cb[_0x27e1e0(0x28d)]()['length']>0x0;return _0x520df6(_0x27e1e0(0x281),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x1add3b(_0x27e1e0(0x281),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x222),'children':[_0x1add3b(_0x27e1e0(0x281),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x1add3b(_0x27e1e0(0x1da),{'className':_0x27e1e0(0x280),'children':'⚙'})}),_0x1add3b(_0x27e1e0(0x281),{'children':_0x1add3b('p',{'className':_0x27e1e0(0x24e),'children':_0x49c05f['t'](_0x27e1e0(0x246))})})]})}),_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x2f2),'children':[_0x1add3b(_0x27e1e0(0x281),{'className':_0xf6b5fa(_0x27e1e0(0x23e),_0x34bdb4(_0x3e4f54,_0x5466cb)),'children':_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x2c1),'children':[_0x1add3b('div',{'className':_0xf6b5fa(_0x27e1e0(0x200),_0x514455(_0x3e4f54,_0x5466cb))}),_0x1add3b('span',{'className':_0x27e1e0(0x2f6),'children':_0x3da5a6(_0x3e4f54)})]})}),_0x5466cb!==_0x31c95a['NONE']&&(_0x3e4f54===_0x5b38e1[_0x27e1e0(0x241)]||_0x5466cb===_0x31c95a[_0x27e1e0(0x294)])&&_0x1add3b(_0x27e1e0(0x281),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x520df6('div',{'className':_0x27e1e0(0x25e),'children':[_0x1add3b(_0x27e1e0(0x1da),{'className':_0x27e1e0(0x22c),'children':'⚠️'}),_0x1add3b('p',{'className':_0x27e1e0(0x214),'children':_0x143172(_0x5466cb)})]})})]}),_0x1add3b('div',{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x520df6('div',{'className':_0x27e1e0(0x2e3),'children':[_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x21a),'children':[_0x520df6(_0x27e1e0(0x27b),{'className':_0x27e1e0(0x1fa),'children':[_0x1add3b(_0x27e1e0(0x1da),{'children':'🔑'}),'\x20',_0x49c05f['t']('mcpConfig.apiKey'),_0x1add3b(_0x27e1e0(0x1da),{'className':'univer-text-red-500','children':'*'}),_0x110b13&&_0x1add3b('a',{'className':_0x27e1e0(0x25d),'title':_0x49c05f['t'](_0x27e1e0(0x278)),'role':_0x27e1e0(0x295),'onClick':()=>_0x2beb72(!0x0),'children':_0x1add3b(_0xfc3388,{})})]}),_0x1add3b(_0x5dc7f1,{'type':_0x27e1e0(0x292),'placeholder':_0x49c05f['t'](_0x27e1e0(0x232)),'value':_0x46a1cb,'disabled':_0xec9afb,'autoComplete':_0x27e1e0(0x1eb),'onChange':_0x5ab4ae}),_0x1add3b('p',{'className':_0x27e1e0(0x1f4),'children':_0x49c05f['t'](_0x27e1e0(0x1ea))})]}),_0x110b13&&_0x50554e&&_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x2f7),'children':[_0x1add3b('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x27e1e0(0x295),'onClick':()=>_0x2beb72(!0x1),'children':_0x1add3b(_0x2df2cc,{'className':_0x27e1e0(0x266)})}),_0x520df6(_0x27e1e0(0x281),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x1add3b(_0x27e1e0(0x281),{'className':_0x27e1e0(0x293),'children':_0x1add3b(_0x27e1e0(0x1da),{'className':_0x27e1e0(0x286),'children':'🚀'})}),_0x520df6('div',{'className':_0x27e1e0(0x2c3),'children':[_0x1add3b('h4',{'className':_0x27e1e0(0x215),'children':_0x49c05f['t'](_0x27e1e0(0x278))}),_0x1add3b('p',{'className':_0x27e1e0(0x28f),'children':_0x49c05f['t']('mcpConfig.apiApplyInfo.description')}),_0x1add3b(_0x27e1e0(0x281),{'className':_0x27e1e0(0x248),'children':_0x1ab8a6&&_0x520df6('a',{'className':_0x27e1e0(0x247),'href':_0x3964fa,'target':_0x27e1e0(0x277),'rel':_0x27e1e0(0x2d8),'children':[_0x1add3b(_0x27e1e0(0x1da),{'children':'🤖'}),_0x49c05f['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x1add3b(_0x27e1e0(0x1da),{'className':_0x27e1e0(0x2ee),'children':'↗'})]})}),_0x520df6('div',{'className':_0x27e1e0(0x224),'children':['✨','\x20',_0x49c05f['t'](_0x27e1e0(0x24c))]})]})]})]}),_0x29c0d2['showDeveloperTools']&&_0x520df6('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x520df6('h4',{'className':_0x27e1e0(0x1f6),'children':[_0x1add3b(_0x27e1e0(0x1da),{'children':'🔗'}),'\x20',_0x49c05f['t'](_0x27e1e0(0x26a))]}),_0x520df6(_0x27e1e0(0x281),{'className':'univer-space-y-4','children':[_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x26f),'children':[_0x1add3b('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x49c05f['t'](_0x27e1e0(0x235))}),_0x520df6(_0x27e1e0(0x281),{'className':'univer-space-y-2','children':[_0x1add3b('div',{'className':_0x27e1e0(0x2e4),'children':_0x49c05f['t'](_0x27e1e0(0x2d7))}),_0x520df6('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x2c1),'children':[_0x1add3b(_0x27e1e0(0x1da),{'className':_0x27e1e0(0x2d5),'children':'1'}),_0x49c05f['t'](_0x27e1e0(0x244))]}),_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x2c1),'children':[_0x1add3b(_0x27e1e0(0x1da),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x49c05f['t'](_0x27e1e0(0x2b8))]}),_0x520df6(_0x27e1e0(0x281),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1add3b(_0x27e1e0(0x1da),{'className':_0x27e1e0(0x2d5),'children':'3'}),_0x49c05f['t'](_0x27e1e0(0x2c7))]})]})]})]}),_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x21a),'children':[_0x1add3b(_0x27e1e0(0x281),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x27e1e0(0x2b6)}),_0x1add3b('div',{'className':_0x27e1e0(0x2ba),'children':_0x1add3b('pre',{'className':_0x27e1e0(0x2f8),'children':JSON[_0x27e1e0(0x1db)]({'mcpServers':{'univer':{'url':_0x27e1e0(0x2e1)+(_0x25dd20||'<SESSION_ID>'),'type':_0x27e1e0(0x252),'headers':{'Authorization':'Bearer\x20'+(_0x46a1cb||_0x27e1e0(0x245))}}}},null,0x2)})})]}),_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x26f),'children':[_0x1add3b(_0x27e1e0(0x281),{'className':_0x27e1e0(0x2e4),'children':_0x49c05f['t'](_0x27e1e0(0x209))}),_0x520df6('div',{'className':_0x27e1e0(0x21a),'children':[_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x211),'children':[_0x1add3b(_0x27e1e0(0x281),{'className':_0x27e1e0(0x1e8)}),_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x24d),'children':[_0x1add3b(_0x27e1e0(0x281),{'className':_0x27e1e0(0x1e0),'children':_0x27e1e0(0x2a9)}),_0x1add3b('div',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x49c05f['t'](_0x27e1e0(0x2a3))})]})]}),_0x520df6('div',{'className':_0x27e1e0(0x211),'children':[_0x1add3b(_0x27e1e0(0x281),{'className':_0x27e1e0(0x1e8)}),_0x520df6(_0x27e1e0(0x281),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x1add3b('div',{'className':_0x27e1e0(0x1e0),'children':_0x27e1e0(0x268)}),_0x1add3b(_0x27e1e0(0x281),{'className':_0x27e1e0(0x1f4),'children':_0x49c05f['t'](_0x27e1e0(0x1ed))})]})]})]})]})]})]}),_0x1add3b(_0xbd5d2c,{'onClick':_0x243933,'disabled':!_0x1f980d||_0xec9afb,'className':_0x27e1e0(0x230),'children':_0xec9afb?_0x520df6(_0x27e1e0(0x1da),{'className':_0x27e1e0(0x2c1),'children':[_0x1add3b(_0x27e1e0(0x1da),{'children':'⟲'}),_0x49c05f['t']('mcpConfig.saving')]}):_0x520df6('span',{'className':_0x27e1e0(0x2c1),'children':[_0x1add3b(_0x25a51b,{}),_0x49c05f['t']('mcpConfig.save')]})}),_0x1add3b(_0x27e1e0(0x281),{'className':_0x27e1e0(0x24a),'children':_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x2d3),'children':[_0x1add3b('span',{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x520df6(_0x27e1e0(0x281),{'className':_0x27e1e0(0x2a8),'children':[_0x1add3b('div',{'className':_0x27e1e0(0x256),'children':_0x27e1e0(0x276)}),_0x520df6(_0x27e1e0(0x281),{'children':['•',_0x49c05f['t']('mcpConfig.note1')]}),_0x520df6(_0x27e1e0(0x281),{'children':['•',_0x49c05f['t'](_0x27e1e0(0x1dd))]})]})]})})]})})]});}const B='mcp-ui.config';Symbol(B);const V={'showDeveloperTools':!0x1,'showStatus':!0x0};function H(_0xa6699a){'@babel/helpers - typeof';const _0x179020=_0x5244;return H=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x179020(0x1dc)?function(_0x38736f){return typeof _0x38736f;}:function(_0x2d5027){const _0x5b9fad=_0x179020;return _0x2d5027&&typeof Symbol=='function'&&_0x2d5027[_0x5b9fad(0x302)]===Symbol&&_0x2d5027!==Symbol[_0x5b9fad(0x249)]?_0x5b9fad(0x1dc):typeof _0x2d5027;},H(_0xa6699a);}function oe(_0x3d6f6f,_0x30e8dd){const _0x2bd82d=_0x5244;if(H(_0x3d6f6f)!='object'||!_0x3d6f6f)return _0x3d6f6f;var _0x222ab7=_0x3d6f6f[Symbol[_0x2bd82d(0x22f)]];if(_0x222ab7!==void 0x0){var _0x12c91f=_0x222ab7[_0x2bd82d(0x284)](_0x3d6f6f,_0x30e8dd||_0x2bd82d(0x2f1));if(H(_0x12c91f)!=_0x2bd82d(0x253))return _0x12c91f;throw TypeError(_0x2bd82d(0x1f8));}return(_0x30e8dd===_0x2bd82d(0x250)?String:Number)(_0x3d6f6f);}function se(_0x4aa9d9){const _0x536b3c=_0x5244;var _0x1218cd=oe(_0x4aa9d9,_0x536b3c(0x250));return H(_0x1218cd)=='symbol'?_0x1218cd:_0x1218cd+'';}function U(_0x49f9c8,_0x5e989a,_0x35b096){const _0xc567fc=_0x5244;return(_0x5e989a=se(_0x5e989a))in _0x49f9c8?Object[_0xc567fc(0x1e2)](_0x49f9c8,_0x5e989a,{'value':_0x35b096,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x49f9c8[_0x5e989a]=_0x35b096,_0x49f9c8;}function W(_0x20d8b9,_0x51ee06){return function(_0x360189,_0x5f3cac){_0x51ee06(_0x360189,_0x5f3cac,_0x20d8b9);};}function G(_0x3835e,_0x5d50bc,_0x392679,_0x43dffc){const _0xfc10fa=_0x5244;var _0xcef57a=arguments['length'],_0x19579c=_0xcef57a<0x3?_0x5d50bc:_0x43dffc===null?_0x43dffc=Object['getOwnPropertyDescriptor'](_0x5d50bc,_0x392679):_0x43dffc,_0x3ae89e;if(typeof Reflect=='object'&&typeof Reflect[_0xfc10fa(0x29e)]=='function')_0x19579c=Reflect[_0xfc10fa(0x29e)](_0x3835e,_0x5d50bc,_0x392679,_0x43dffc);else{for(var _0x381962=_0x3835e[_0xfc10fa(0x2cc)]-0x1;_0x381962>=0x0;_0x381962--)(_0x3ae89e=_0x3835e[_0x381962])&&(_0x19579c=(_0xcef57a<0x3?_0x3ae89e(_0x19579c):_0xcef57a>0x3?_0x3ae89e(_0x5d50bc,_0x392679,_0x19579c):_0x3ae89e(_0x5d50bc,_0x392679))||_0x19579c);}return _0xcef57a>0x3&&_0x19579c&&Object['defineProperty'](_0x5d50bc,_0x392679,_0x19579c),_0x19579c;}const K=_0x28ce8a(0x2fe),q=_0x28ce8a(0x28a);let J=class extends _0x3b8284{constructor(_0x5bdc5c,_0x856972,_0x531fea,_0x32f0d5,_0x35280c,_0x487ae6,_0x395338,_0x588355,_0x51680f,_0x436620){const _0x48e56e=_0x28ce8a;super(),this[_0x48e56e(0x1de)]=_0x5bdc5c,this['_uiPartsService']=_0x856972,this['_configService']=_0x531fea,this[_0x48e56e(0x28e)]=_0x32f0d5,this['_dialogService']=_0x35280c,this[_0x48e56e(0x1f1)]=_0x487ae6,this[_0x48e56e(0x2da)]=_0x395338,this[_0x48e56e(0x20b)]=_0x588355,this['_logService']=_0x51680f,this[_0x48e56e(0x28c)]=_0x436620,U(this,_0x48e56e(0x21d),new _0x6bc32f(!0x1)),U(this,_0x48e56e(0x300),new _0x6bc32f({})),U(this,_0x48e56e(0x274),new _0x6bc32f({})),U(this,_0x48e56e(0x298),new _0x6bc32f('')),U(this,_0x48e56e(0x29a),async _0x20fec8=>{const _0x1885aa=_0x48e56e;this[_0x1885aa(0x21d)][_0x1885aa(0x2c4)](!0x0);try{var _0x1b4a6d,_0x149440;let _0x4f862a=await this['_validateConfig'](_0x20fec8);if(!_0x4f862a[_0x1885aa(0x25a)]){this[_0x1885aa(0x1f1)]['show']({'type':_0x261752[_0x1885aa(0x26e)],'content':_0x4f862a[_0x1885aa(0x2d6)]||this[_0x1885aa(0x20b)]['t'](_0x1885aa(0x269))});return;}_0x20fec8[_0x1885aa(0x1e9)]?await this[_0x1885aa(0x28e)][_0x1885aa(0x236)](K,_0x20fec8['apiKey'][_0x1885aa(0x28d)]()):await this[_0x1885aa(0x28e)]['removeItem'](K),this[_0x1885aa(0x298)][_0x1885aa(0x2c4)](((_0x1b4a6d=_0x20fec8[_0x1885aa(0x1e9)])==null?void 0x0:_0x1b4a6d[_0x1885aa(0x28d)]())||''),this[_0x1885aa(0x28c)][_0x1885aa(0x1ef)]({'Authorization':_0x1885aa(0x25b)+((_0x149440=_0x20fec8[_0x1885aa(0x1e9)])==null?void 0x0:_0x149440[_0x1885aa(0x28d)]())}),this[_0x1885aa(0x1f1)][_0x1885aa(0x2fa)]({'type':_0x261752[_0x1885aa(0x2ff)],'content':this[_0x1885aa(0x20b)]['t'](_0x1885aa(0x21f))}),setTimeout(()=>{const _0x1b9ace=_0x1885aa;this['_dialogService'][_0x1b9ace(0x21c)](q);},0x320);}catch(_0x7891a4){this[_0x1885aa(0x22e)][_0x1885aa(0x22a)](_0x1885aa(0x1f9),_0x7891a4),this[_0x1885aa(0x1f1)]['show']({'type':_0x261752[_0x1885aa(0x26e)],'content':this[_0x1885aa(0x20b)]['t']('mcpConfig.configError')});}finally{this['_loading$'][_0x1885aa(0x2c4)](!0x1);}}),this[_0x48e56e(0x2ca)](),this[_0x48e56e(0x20a)](),this[_0x48e56e(0x2ad)]();}[_0x28ce8a(0x2c9)](){const _0x3885ef=_0x28ce8a;let _0x40bcbb=this[_0x3885ef(0x1df)][_0x3885ef(0x240)](B);_0x40bcbb!=null&&_0x40bcbb[_0x3885ef(0x227)]&&this['_dialogService']['open']({'id':q,'title':{'title':this[_0x3885ef(0x20b)]['t'](_0x3885ef(0x207))},'children':{'label':_0x3885ef(0x2d4)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x517658=_0x3885ef;this[_0x517658(0x26b)][_0x517658(0x21c)](q);}});}[_0x28ce8a(0x282)](){const _0x1c8ab2=_0x28ce8a;return this['_mcpCoreConfig$'][_0x1c8ab2(0x258)];}[_0x28ce8a(0x2ad)](){const _0x4f2dcf=_0x28ce8a;this[_0x4f2dcf(0x25f)](this[_0x4f2dcf(0x2da)]['register']('MCPConfigPanel',this[_0x4f2dcf(0x2b4)]()));}[_0x28ce8a(0x2b4)](){return _0x3381fc(()=>{const _0x1a9f96=_0x5244;var _0x954773,_0x21feff,_0x27111c;return _0x1add3b(z,{'config':this['_config$']['value'],'mcpCoreConfig':this[_0x1a9f96(0x300)]['value'],'currentApiKey$':this[_0x1a9f96(0x298)],'onSave':this['_handleConfigSave'],'loading':this[_0x1a9f96(0x21d)][_0x1a9f96(0x258)],'connectionStatus$':(_0x954773=this[_0x1a9f96(0x28c)])==null?void 0x0:_0x954773['connectionStatus$'],'connectionError$':(_0x21feff=this[_0x1a9f96(0x28c)])==null?void 0x0:_0x21feff[_0x1a9f96(0x1ff)],'currentSessionId$':(_0x27111c=this[_0x1a9f96(0x28c)])==null?void 0x0:_0x27111c[_0x1a9f96(0x213)]});},this['_injector']);}[_0x28ce8a(0x2ca)](){const _0x5e4093=_0x28ce8a;this[_0x5e4093(0x25f)](this[_0x5e4093(0x1df)][_0x5e4093(0x2a4)](_0x2da9b3)[_0x5e4093(0x217)](_0x4f867c=>{const _0x105670=_0x5e4093;this[_0x105670(0x300)][_0x105670(0x2c4)](_0x4f867c||{});}));let _0x3ad8b3=this[_0x5e4093(0x1df)][_0x5e4093(0x240)](_0x2da9b3);this['_mcpCoreConfig$'][_0x5e4093(0x2c4)](_0x3ad8b3||{}),this[_0x5e4093(0x25f)](this[_0x5e4093(0x1df)][_0x5e4093(0x2a4)](B)[_0x5e4093(0x217)](_0x2aa100=>{const _0x17640f=_0x5e4093;this[_0x17640f(0x274)][_0x17640f(0x2c4)](_0x2aa100||{});}));let _0x3a3239=this[_0x5e4093(0x1df)][_0x5e4093(0x240)](B);this[_0x5e4093(0x274)]['next'](_0x3a3239||{});}async['_loadStoredApiKey'](){const _0x42100b=_0x28ce8a;let _0x33744a=this[_0x42100b(0x1df)]['getConfig'](B);if(!(_0x33744a!=null&&_0x33744a[_0x42100b(0x227)]))return;let _0x3bdc21=await this[_0x42100b(0x28e)][_0x42100b(0x2f0)](K);_0x3bdc21&&(this['_mcpConnectionController'][_0x42100b(0x1ef)]({'Authorization':_0x42100b(0x25b)+_0x3bdc21}),this[_0x42100b(0x298)][_0x42100b(0x2c4)](_0x3bdc21));}async[_0x28ce8a(0x29b)](_0x274e2a){const _0x29558a=_0x28ce8a;if(!_0x274e2a[_0x29558a(0x1e9)]||_0x274e2a[_0x29558a(0x1e9)][_0x29558a(0x28d)]()[_0x29558a(0x2cc)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x29558a(0x20b)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x274e2a[_0x29558a(0x1e9)]['trim']()[_0x29558a(0x2cc)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x29558a(0x20b)]['t'](_0x29558a(0x285))};try{let _0xf29511=await this['_injector']['get'](_0x722788)[_0x29558a(0x270)](_0x274e2a[_0x29558a(0x1e9)][_0x29558a(0x28d)]());return _0xf29511[_0x29558a(0x25a)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0xf29511['error']||this[_0x29558a(0x20b)]['t'](_0x29558a(0x255))};}catch(_0x28b0b9){return console[_0x29558a(0x2cf)](_0x29558a(0x202),_0x28b0b9),{'isValid':!0x0};}}};J=G([W(0x0,_0x53c2f0(_0x61c00e)),W(0x1,_0x2871fb),W(0x2,_0x23bc82),W(0x3,_0x5f22c6),W(0x4,_0x2d156b),W(0x5,_0x28ad13),W(0x6,_0x53c2f0(_0x45d10a)),W(0x7,_0x53c2f0(_0x34569a)),W(0x8,_0x3bb11f),W(0x9,_0x53c2f0(_0x722788))],J);const Y={'id':_0x28ce8a(0x1f5),'type':_0x8810a8[_0x28ce8a(0x2a0)],'handler':async(_0x283b03,_0x58443b)=>(_0x283b03[_0x28ce8a(0x23b)](J)[_0x28ce8a(0x2c9)](),!0x0)};function X(_0x37f489,_0x15d73c){const _0x5f325c=_0x28ce8a;switch(_0x37f489){case _0x5b38e1[_0x5f325c(0x279)]:return _0x5f325c(0x1e3);case _0x5b38e1[_0x5f325c(0x28b)]:return _0x5f325c(0x24b);case _0x5b38e1['CONNECTED']:return'mcpStatus.connected';case _0x5b38e1[_0x5f325c(0x241)]:switch(_0x15d73c){case _0x31c95a[_0x5f325c(0x294)]:return'mcpStatus.unauthorized';case _0x31c95a['SESSION_ID_OCCUPIED']:return'mcpStatus.sessionOccupied';case _0x31c95a[_0x5f325c(0x27d)]:return _0x5f325c(0x21b);case _0x31c95a[_0x5f325c(0x201)]:return _0x5f325c(0x1e7);default:return'mcpStatus.failed';}case _0x5b38e1[_0x5f325c(0x243)]:return _0x5f325c(0x2de);default:return'mcpStatus.unknown';}}function ce(_0x54b1af,_0x139d5f,_0x7dbe4c,_0xa97ba5=!0x0){const _0x37fcbb=_0x28ce8a;let _0x13702e=X(_0x54b1af,_0x139d5f),_0x97d5=_0x7dbe4c['t'](_0x13702e);return _0xa97ba5?_0x54b1af===_0x5b38e1[_0x37fcbb(0x279)]&&_0x139d5f===_0x31c95a[_0x37fcbb(0x294)]?_0x97d5+_0x37fcbb(0x1fe)+_0x7dbe4c['t'](_0x37fcbb(0x261)):_0x54b1af===_0x5b38e1[_0x37fcbb(0x2ea)]?''+_0x97d5:_0x54b1af===_0x5b38e1[_0x37fcbb(0x279)]||_0x54b1af===_0x5b38e1[_0x37fcbb(0x241)]?_0x97d5+_0x37fcbb(0x1fe)+_0x7dbe4c['t'](_0x37fcbb(0x1f0)):_0x97d5:_0x97d5;}function le(_0x2582b9){const _0x275c80=_0x28ce8a;switch(_0x2582b9){case _0x5b38e1[_0x275c80(0x2ea)]:return'univer-text-green-500';case _0x5b38e1[_0x275c80(0x28b)]:case _0x5b38e1[_0x275c80(0x243)]:return _0x275c80(0x2c5);case _0x5b38e1['FAILED']:case _0x5b38e1[_0x275c80(0x279)]:return _0x275c80(0x1f7);default:return'univer-text-gray-500';}}function ue(_0x3762dc){const _0x59741f=_0x28ce8a;let {status$:_0x2b776d,error$:_0x14268d,onConfigure:_0x4fda2d,showClickable:_0x115c49=!0x0}=_0x3762dc,_0x3b73de=_0x5b245a(_0x2b776d,_0x5b38e1[_0x59741f(0x279)]),_0x480951=_0x5b245a(_0x14268d,_0x31c95a[_0x59741f(0x1fd)]),_0x679e77=_0xaaf771(_0x34569a),_0xe80bb6=_0x3b73de===_0x5b38e1[_0x59741f(0x2ea)];_0x3b73de===_0x5b38e1['CONNECTING']||_0x5b38e1[_0x59741f(0x243)];let _0x19554e=_0x679e77['t'](X(_0x3b73de,_0x480951)),_0x495dd2=ce(_0x3b73de,_0x480951,_0x679e77,_0x115c49),_0x5dbd16=le(_0x3b73de),_0xdf70ac=_0x1add3b(_0xe80bb6?_0x3c55cc:_0x8d9fde,{}),_0x321a14=_0x1eb342(()=>{_0x115c49&&_0x4fda2d&&_0x4fda2d();},[_0x115c49,_0x4fda2d]);function _0x125415(){const _0x452b5f=_0x59741f;return _0x520df6(_0x452b5f(0x281),{'className':_0xf6b5fa('univer-flex\x20univer-items-center',_0x115c49&&_0x4fda2d&&_0x452b5f(0x2fb)),'role':_0x452b5f(0x295),'onClick':_0x115c49&&_0x4fda2d?_0x321a14:void 0x0,'children':[_0x1add3b('div',{'className':_0xf6b5fa(_0x452b5f(0x221),_0x5dbd16),'children':_0xdf70ac}),_0x1add3b('div',{'className':_0x452b5f(0x220),'children':_0x19554e})]});}return _0x1add3b(_0x3d1bb2,{'title':_0x495dd2,'placement':_0x59741f(0x2e0),'children':_0x125415()});}let Z=class extends _0x3b8284{constructor(_0x543c9f,_0x2f9d81,_0xf0268e,_0x16a194){const _0x43081a=_0x28ce8a;super(),this[_0x43081a(0x1de)]=_0x543c9f,this[_0x43081a(0x2ed)]=_0x2f9d81,this[_0x43081a(0x297)]=_0xf0268e,this['_configService']=_0x16a194,this['_initAutoConnect'](),this[_0x43081a(0x1ec)]();}[_0x28ce8a(0x288)](){const _0x4627c7=_0x28ce8a;let _0x2ed4d8=this[_0x4627c7(0x1df)][_0x4627c7(0x240)](B);_0x2ed4d8!=null&&_0x2ed4d8[_0x4627c7(0x227)]&&(this['_connectionController'][_0x4627c7(0x25c)]=!0x1);}['_initStatusComponent'](){const _0x12ee06=_0x28ce8a;let _0x232327=this['_configService'][_0x12ee06(0x240)](B);(_0x232327==null?void 0x0:_0x232327['showStatus'])!==!0x1&&this['disposeWithMe'](this[_0x12ee06(0x297)]['registerComponent'](_0x3600f0[_0x12ee06(0x2ce)],()=>{const _0x10fe15=_0x12ee06;var _0x5539bf;return _0x3381fc(de({'status$':this[_0x10fe15(0x2ed)][_0x10fe15(0x2ab)],'error$':this[_0x10fe15(0x2ed)][_0x10fe15(0x1ff)],'onConfigure':()=>this[_0x10fe15(0x1ee)](),'showClickable':(_0x5539bf=_0x232327==null?void 0x0:_0x232327[_0x10fe15(0x227)])==null?!0x1:_0x5539bf}),this[_0x10fe15(0x1de)]);}));}[_0x28ce8a(0x1ee)](){const _0x36e59c=_0x28ce8a;this[_0x36e59c(0x1de)][_0x36e59c(0x23b)](J)['showConfigPanel']();}};Z=G([W(0x0,_0x53c2f0(_0x61c00e)),W(0x1,_0x53c2f0(_0x722788)),W(0x2,_0x2871fb),W(0x3,_0x23bc82)],Z);function de(_0x37484c){let {status$:_0x310cda,error$:_0x2e3117,onConfigure:_0x3d0b39,showClickable:_0x580afc}=_0x37484c;return function(){return _0x1add3b(ue,{'status$':_0x310cda,'error$':_0x2e3117,'onConfigure':_0x3d0b39,'showClickable':_0x580afc});};}function fe(_0x56e4eb){const _0x49f778=_0x28ce8a;return{'id':Y['id'],'type':_0x1d06c6[_0x49f778(0x26d)],'icon':'MenuIcon','title':_0x49f778(0x207),'tooltip':_0x49f778(0x207)};}const pe={[_0x532d5f[_0x28ce8a(0x254)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0x3b8284{constructor(_0x3e88bb,_0x3c7147){const _0x374214=_0x28ce8a;super(),this['_commandService']=_0x3e88bb,this[_0x374214(0x2ec)]=_0x3c7147,this[_0x374214(0x2bb)](),this[_0x374214(0x203)]();}['_initializeCommands'](){const _0xf5b13b=_0x28ce8a;[Y][_0xf5b13b(0x22b)](_0x1c4cf5=>{const _0x5a3640=_0xf5b13b;this[_0x5a3640(0x25f)](this[_0x5a3640(0x283)][_0x5a3640(0x219)](_0x1c4cf5));});}[_0x28ce8a(0x203)](){const _0x170630=_0x28ce8a;this[_0x170630(0x2ec)][_0x170630(0x2b3)](pe);}};Q=G([W(0x0,_0x17d690),W(0x1,_0x3652e0)],Q);const me={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x28ce8a(0x2cd),'failed':_0x28ce8a(0x27a),'retrying':'MCP\x20Retrying...','unknown':_0x28ce8a(0x206),'unauthorized':_0x28ce8a(0x267),'sessionOccupied':_0x28ce8a(0x26c),'networkError':_0x28ce8a(0x262),'maxRetriesExceeded':_0x28ce8a(0x1fc),'clickToConnect':_0x28ce8a(0x251),'clickToConfigure':_0x28ce8a(0x234)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x28ce8a(0x237),'apiKey':_0x28ce8a(0x289),'apiKeyPlaceholder':_0x28ce8a(0x2b7),'apiKeyHint':_0x28ce8a(0x273),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x28ce8a(0x2e7),'connectionInfo':_0x28ce8a(0x1e1),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x28ce8a(0x29c),'configStepTitle':_0x28ce8a(0x2d9),'configStep1':_0x28ce8a(0x27f),'configStep2':_0x28ce8a(0x299),'configStep3':_0x28ce8a(0x223),'sessionId':_0x28ce8a(0x23a),'sessionIdDescription':_0x28ce8a(0x233),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x28ce8a(0x2c2),'maxRetries':'Max\x20Retries','save':_0x28ce8a(0x2f4),'saving':_0x28ce8a(0x2c6),'note1':_0x28ce8a(0x2fd),'note2':_0x28ce8a(0x257),'configSaved':_0x28ce8a(0x2ae),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x28ce8a(0x2af),'description':_0x28ce8a(0x2e6),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x28ce8a(0x1e4)},'validation':{'apiKeyRequired':_0x28ce8a(0x229),'apiKeyTooShort':_0x28ce8a(0x2dd),'invalidConfig':_0x28ce8a(0x271),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x28ce8a(0x2a5),'connecting':'Connecting...','connected':_0x28ce8a(0x226),'failed':_0x28ce8a(0x2fc),'retrying':_0x28ce8a(0x2d1)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x28ce8a(0x1f2),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x28ce8a(0x21e)}}},he={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x28ce8a(0x218),'failed':_0x28ce8a(0x272),'retrying':_0x28ce8a(0x2b0),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x28ce8a(0x2cb),'networkError':_0x28ce8a(0x23c),'maxRetriesExceeded':_0x28ce8a(0x2c0),'clickToConnect':_0x28ce8a(0x2aa),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':'MCP\x20配置','description':_0x28ce8a(0x239),'apiKey':_0x28ce8a(0x238),'apiKeyPlaceholder':_0x28ce8a(0x290),'apiKeyHint':_0x28ce8a(0x2dc),'enableAuth':_0x28ce8a(0x2b9),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x28ce8a(0x204),'mcpClientConfig':_0x28ce8a(0x204),'configInstructions':_0x28ce8a(0x2bd),'configStepTitle':_0x28ce8a(0x212),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x28ce8a(0x20f),'sessionId':_0x28ce8a(0x259),'sessionIdDescription':_0x28ce8a(0x275),'authorizationDescription':_0x28ce8a(0x2bf),'configParameters':_0x28ce8a(0x264),'maxRetries':_0x28ce8a(0x1fb),'save':_0x28ce8a(0x205),'saving':'保存中...','note1':_0x28ce8a(0x23d),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x28ce8a(0x2c8),'configError':_0x28ce8a(0x27c),'apiApplyInfo':{'title':_0x28ce8a(0x2a7),'description':_0x28ce8a(0x216),'univerAiLabel':_0x28ce8a(0x27e),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x28ce8a(0x2a2),'apiKeyTooShort':_0x28ce8a(0x208),'invalidConfig':_0x28ce8a(0x228),'invalidApiKey':_0x28ce8a(0x1e6)},'connectionStatus':{'disconnected':_0x28ce8a(0x2d2),'connecting':'连接中...','connected':_0x28ce8a(0x2ac),'failed':_0x28ce8a(0x2be),'retrying':_0x28ce8a(0x23f)},'connectionError':{'unauthorized':_0x28ce8a(0x303),'sessionOccupied':_0x28ce8a(0x2a6),'networkError':_0x28ce8a(0x2db),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var ge=_0x28ce8a(0x2b2),_e=_0x28ce8a(0x29d);let $=class extends _0x1be01a{constructor(_0x28b939=V,_0x28c4e5,_0x50cf58,_0x552d05,_0x3abe93,_0x1e5d9a){const _0x321338=_0x28ce8a;super(),this['_config']=_0x28b939,this[_0x321338(0x1de)]=_0x28c4e5,this[_0x321338(0x1df)]=_0x50cf58,this[_0x321338(0x297)]=_0x552d05,this[_0x321338(0x28e)]=_0x3abe93,this[_0x321338(0x20b)]=_0x1e5d9a;let {..._0x4d4537}=_0x4ed231({},V,this['_config']);this[_0x321338(0x1df)][_0x321338(0x210)](B,_0x4d4537);}async[_0x28ce8a(0x2e8)](){const _0x1f28c7=_0x28ce8a;let _0x4c24e6=[[Z],[J],[Q]];this[_0x1f28c7(0x1de)]['has'](_0x2abfd5)||_0x4c24e6[_0x1f28c7(0x2f3)]([_0x2abfd5,{'useClass':_0x16689d}]),_0x4c24e6[_0x1f28c7(0x22b)](_0x2e5279=>this[_0x1f28c7(0x1de)][_0x1f28c7(0x2f9)](_0x2e5279)),this[_0x1f28c7(0x1de)][_0x1f28c7(0x23b)](Z),this[_0x1f28c7(0x1de)][_0x1f28c7(0x23b)](J),this[_0x1f28c7(0x1de)]['get'](Q);}};U($,'pluginName',_0x28ce8a(0x2a1)),U($,_0x28ce8a(0x2e2),ge),U($,_0x28ce8a(0x242),_e),$=G([_0x5a9818(_0x11a395),W(0x1,_0x53c2f0(_0x61c00e)),W(0x2,_0x23bc82),W(0x3,_0x2871fb),W(0x4,_0x5f22c6),W(0x5,_0x53c2f0(_0x34569a))],$);export{z as MCPConfigPanel,J as MCPConfigUIController,Z as MCPConnectionUIController,ue as MCPStatusDisplay,Q as MCPUIMenuController,Y as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,me as enUS,he as zhCN};
@@ -1 +1 @@
1
- const _0x42dd9f=_0x1cc1;(function(_0x5467d5,_0x4af7a3){const _0x3e57d4=_0x1cc1,_0x190782=_0x5467d5();while(!![]){try{const _0xd35bdd=-parseInt(_0x3e57d4(0xc4))/0x1*(parseInt(_0x3e57d4(0xc0))/0x2)+parseInt(_0x3e57d4(0xed))/0x3*(-parseInt(_0x3e57d4(0xd5))/0x4)+-parseInt(_0x3e57d4(0xd8))/0x5+-parseInt(_0x3e57d4(0xd2))/0x6+parseInt(_0x3e57d4(0xd1))/0x7*(-parseInt(_0x3e57d4(0xc8))/0x8)+-parseInt(_0x3e57d4(0xca))/0x9+parseInt(_0x3e57d4(0xdf))/0xa;if(_0xd35bdd===_0x4af7a3)break;else _0x190782['push'](_0x190782['shift']());}catch(_0x22e190){_0x190782['push'](_0x190782['shift']());}}}(_0x3b7d,0x23fef));const e={'mcpStatus':{'disconnected':_0x42dd9f(0xcf),'connecting':_0x42dd9f(0xe0),'connected':_0x42dd9f(0xcb),'failed':_0x42dd9f(0xc9),'retrying':_0x42dd9f(0xc6),'unknown':_0x42dd9f(0xc5),'unauthorized':_0x42dd9f(0xd7),'sessionOccupied':_0x42dd9f(0xdc),'networkError':_0x42dd9f(0xe2),'maxRetriesExceeded':_0x42dd9f(0xef),'clickToConnect':_0x42dd9f(0xc7),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x42dd9f(0xee),'description':_0x42dd9f(0xe3),'apiKey':_0x42dd9f(0xd9),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x42dd9f(0xe5),'enableAuth':_0x42dd9f(0xdd),'enableAuthHint':_0x42dd9f(0xde),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x42dd9f(0xeb),'configStepTitle':_0x42dd9f(0xe8),'configStep1':_0x42dd9f(0xd4),'configStep2':_0x42dd9f(0xc1),'configStep3':_0x42dd9f(0xe1),'sessionId':_0x42dd9f(0xce),'sessionIdDescription':_0x42dd9f(0xbf),'authorizationDescription':_0x42dd9f(0xe9),'configParameters':_0x42dd9f(0xc2),'maxRetries':_0x42dd9f(0xc3),'save':'Save\x20Configuration','saving':_0x42dd9f(0xf1),'note1':_0x42dd9f(0xdb),'note2':_0x42dd9f(0xd3),'configSaved':_0x42dd9f(0xe6),'configError':_0x42dd9f(0xcc),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x42dd9f(0xd6),'univerAiLabel':_0x42dd9f(0xcd),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x42dd9f(0xf2),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x42dd9f(0xd0),'connecting':_0x42dd9f(0xec),'connected':_0x42dd9f(0xda),'failed':_0x42dd9f(0xf3),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x42dd9f(0xe7),'sessionOccupied':_0x42dd9f(0xe4),'networkError':_0x42dd9f(0xea),'maxRetriesExceeded':_0x42dd9f(0xf0)}}};function _0x1cc1(_0x3283a4,_0x63e17f){_0x3283a4=_0x3283a4-0xbf;const _0x3b7d67=_0x3b7d();let _0x1cc159=_0x3b7d67[_0x3283a4];return _0x1cc159;}function _0x3b7d(){const _0x3bd3f2=['Enable\x20authentication\x20for\x20secure\x20connections','10085990XZioYE','MCP\x20Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Network\x20Error','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20saved\x20successfully','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Steps:','API\x20key\x20with\x20Bearer\x20prefix.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connecting...','73551CiUlkE','MCP\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Saving...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','449378SkpWZw','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','Max\x20Retries','1GavKBJ','MCP\x20Unknown\x20Status','MCP\x20Retrying...','Click\x20to\x20connect\x20MCP','656nvcVUw','MCP\x20Connection\x20Failed','1681884CiobWZ','MCP\x20Connected','Failed\x20to\x20save\x20configuration','Univer\x20AI\x20Console','Session\x20ID','MCP\x20Disconnected','Disconnected','11781PNTyKS','259398LgbOLk','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','36XRcxFu','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:\x20Unauthorized','238515eSPNFF','API\x20Key','Connected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Session\x20ID\x20Occupied','Enable\x20Authentication'];_0x3b7d=function(){return _0x3bd3f2;};return _0x3b7d();}export{e as default};
1
+ const _0x158b48=_0x5e31;(function(_0x281c77,_0x18229d){const _0xe796e1=_0x5e31,_0x19b6b=_0x281c77();while(!![]){try{const _0x14ca6e=-parseInt(_0xe796e1(0x180))/0x1*(parseInt(_0xe796e1(0x191))/0x2)+-parseInt(_0xe796e1(0x19f))/0x3+parseInt(_0xe796e1(0x17d))/0x4*(parseInt(_0xe796e1(0x195))/0x5)+parseInt(_0xe796e1(0x177))/0x6*(parseInt(_0xe796e1(0x19d))/0x7)+parseInt(_0xe796e1(0x19e))/0x8*(-parseInt(_0xe796e1(0x176))/0x9)+parseInt(_0xe796e1(0x18f))/0xa*(parseInt(_0xe796e1(0x1a0))/0xb)+parseInt(_0xe796e1(0x193))/0xc*(-parseInt(_0xe796e1(0x17a))/0xd);if(_0x14ca6e===_0x18229d)break;else _0x19b6b['push'](_0x19b6b['shift']());}catch(_0xdaa9d6){_0x19b6b['push'](_0x19b6b['shift']());}}}(_0x44df,0xde237));const e={'mcpStatus':{'disconnected':_0x158b48(0x17c),'connecting':_0x158b48(0x197),'connected':_0x158b48(0x17b),'failed':_0x158b48(0x181),'retrying':_0x158b48(0x1a5),'unknown':_0x158b48(0x1a1),'unauthorized':_0x158b48(0x19a),'sessionOccupied':_0x158b48(0x19c),'networkError':_0x158b48(0x18e),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x158b48(0x196),'clickToConfigure':_0x158b48(0x185)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x158b48(0x1a2),'apiKey':_0x158b48(0x1a8),'apiKeyPlaceholder':_0x158b48(0x184),'apiKeyHint':_0x158b48(0x1aa),'enableAuth':_0x158b48(0x199),'enableAuthHint':_0x158b48(0x18b),'connectionInfo':_0x158b48(0x1a3),'mcpClientConfig':_0x158b48(0x1a3),'configInstructions':_0x158b48(0x1a6),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x158b48(0x18a),'configStep2':_0x158b48(0x187),'configStep3':_0x158b48(0x19b),'sessionId':_0x158b48(0x186),'sessionIdDescription':_0x158b48(0x18d),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x158b48(0x17e),'maxRetries':_0x158b48(0x182),'save':_0x158b48(0x1a7),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x158b48(0x1a9),'configSaved':_0x158b48(0x17f),'configError':_0x158b48(0x1ad),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x158b48(0x198),'univerAiLabel':_0x158b48(0x189),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x158b48(0x1a4),'apiKeyTooShort':_0x158b48(0x18c),'invalidConfig':_0x158b48(0x179),'invalidApiKey':_0x158b48(0x190)},'connectionStatus':{'disconnected':_0x158b48(0x192),'connecting':_0x158b48(0x183),'connected':_0x158b48(0x1ab),'failed':'Connection\x20Failed','retrying':_0x158b48(0x178)},'connectionError':{'unauthorized':_0x158b48(0x188),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x158b48(0x1ac),'maxRetriesExceeded':_0x158b48(0x194)}}};function _0x5e31(_0x27a35a,_0x1c3f59){_0x27a35a=_0x27a35a-0x176;const _0x44dfb0=_0x44df();let _0x5e31c8=_0x44dfb0[_0x27a35a];return _0x5e31c8;}export{e as default};function _0x44df(){const _0x1b2882=['Configuration\x20Parameters:','Configuration\x20saved\x20successfully','2wYFGJs','MCP\x20Connection\x20Failed','Max\x20Retries','Connecting...','Enter\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','Session\x20ID','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Univer\x20AI\x20Console','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Network\x20Error','9186830FIhJsm','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','808072zhINgk','Disconnected','8343276FDiIfD','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','9094700iUzSge','Click\x20to\x20connect\x20MCP','MCP\x20Connecting...','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','MCP:\x20Unauthorized','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Session\x20ID\x20Occupied','7861fOuLuo','226856IkXiUS','1146165KXPPoA','11MXOrMl','MCP\x20Unknown\x20Status','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Client\x20Configuration','API\x20key\x20is\x20required','MCP\x20Retrying...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Save\x20Configuration','API\x20Key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Failed\x20to\x20save\x20configuration','306egymOC','9174mZTQtv','Retrying...','Invalid\x20configuration','26oTLyNb','MCP\x20Connected','MCP\x20Disconnected','4PFeHjp'];_0x44df=function(){return _0x1b2882;};return _0x44df();}