@univerjs-pro/mcp-ui 0.15.3 → 0.15.4

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 (54) 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 -0
  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 -0
  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 -0
  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/types/locale/sk-SK.d.ts +3 -0
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/sk-SK.js +1 -0
  51. package/lib/umd/locale/vi-VN.js +1 -1
  52. package/lib/umd/locale/zh-CN.js +1 -1
  53. package/lib/umd/locale/zh-TW.js +1 -1
  54. package/package.json +8 -8
@@ -1 +1 @@
1
- 'use strict';const _0x32f08c=_0x3406;function _0x3406(_0x289928,_0x1bb7d0){_0x289928=_0x289928-0x12f;const _0x1b7f6=_0x1b7f();let _0x340677=_0x1b7f6[_0x289928];return _0x340677;}function _0x1b7f(){const _0x4e1932=['4005354Vukbua','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','저장\x20중...','5761608dJpoIR','클릭하여\x20MCP\x20설정','세션\x20ID','7525092hpNvUz','클릭하여\x20MCP\x20연결','API\x20키란\x20무엇인가요?','재시도\x20중...','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','MCP\x20알\x20수\x20없는\x20상태','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','설정\x20저장\x20실패','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','설정\x20매개변수:','인증\x20활성화','API\x20키는\x20필수입니다','연결됨','아래\x20JSON\x20설정\x20복사','API\x20키를\x20입력하세요','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','340535eDLLZi','MCP\x20재시도\x20중...','MCP:\x20인증되지\x20않음','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','82130heCYGp','설정이\x20성공적으로\x20저장되었습니다','5632150pWgEaJ','MCP:\x20네트워크\x20오류','API\x20키는\x2010자\x20이상이어야\x20합니다','MCP\x20클라이언트\x20설정','보안\x20연결을\x20위해\x20인증\x20활성화','연결\x20실패','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','인증\x20실패.\x20API\x20키를\x20확인하세요','17255609bYEraH','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','연결\x20중...','API\x20','MCP\x20연결\x20중...','몇\x20초\x20만에\x20API\x20키\x20발급받기','MCP\x20연결\x20끊김','exports','유효하지\x20않은\x20설정','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','설정\x20저장','MCP:\x20최대\x20재시도\x20횟수\x20초과','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정'];_0x1b7f=function(){return _0x4e1932;};return _0x1b7f();}(function(_0x4a5391,_0x229735){const _0x40c4ef=_0x3406,_0x57bd6e=_0x4a5391();while(!![]){try{const _0x2518b5=parseInt(_0x40c4ef(0x158))/0x1+-parseInt(_0x40c4ef(0x15c))/0x2+parseInt(_0x40c4ef(0x142))/0x3+parseInt(_0x40c4ef(0x145))/0x4+-parseInt(_0x40c4ef(0x15e))/0x5+parseInt(_0x40c4ef(0x148))/0x6+-parseInt(_0x40c4ef(0x134))/0x7;if(_0x2518b5===_0x229735)break;else _0x57bd6e['push'](_0x57bd6e['shift']());}catch(_0x479dbe){_0x57bd6e['push'](_0x57bd6e['shift']());}}}(_0x1b7f,0xb4177));const e={'mcpStatus':{'disconnected':_0x32f08c(0x13a),'connecting':_0x32f08c(0x138),'connected':'MCP\x20연결됨','failed':'MCP\x20연결\x20실패','retrying':_0x32f08c(0x159),'unknown':_0x32f08c(0x14d),'unauthorized':_0x32f08c(0x15a),'sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20중','networkError':_0x32f08c(0x15f),'maxRetriesExceeded':_0x32f08c(0x13f),'clickToConnect':_0x32f08c(0x149),'clickToConfigure':_0x32f08c(0x146)},'mcpConfig':{'title':'MCP\x20설정','description':_0x32f08c(0x141),'apiKey':_0x32f08c(0x137),'apiKeyPlaceholder':_0x32f08c(0x156),'apiKeyHint':_0x32f08c(0x14c),'enableAuth':_0x32f08c(0x152),'enableAuthHint':_0x32f08c(0x130),'connectionInfo':_0x32f08c(0x12f),'mcpClientConfig':_0x32f08c(0x12f),'configInstructions':_0x32f08c(0x140),'configStepTitle':'설정\x20단계:','configStep1':_0x32f08c(0x155),'configStep2':_0x32f08c(0x13d),'configStep3':_0x32f08c(0x14e),'sessionId':_0x32f08c(0x147),'sessionIdDescription':_0x32f08c(0x157),'authorizationDescription':'Bearer\x20접두사가\x20있는\x20API\x20키.','configParameters':_0x32f08c(0x151),'maxRetries':'최대\x20재시도\x20횟수','save':_0x32f08c(0x13e),'saving':_0x32f08c(0x144),'note1':'설정\x20변경\x20사항은\x20즉시\x20적용됩니다','note2':_0x32f08c(0x132),'configSaved':_0x32f08c(0x15d),'configError':_0x32f08c(0x14f),'apiApplyInfo':{'title':_0x32f08c(0x14a),'description':_0x32f08c(0x143),'univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':_0x32f08c(0x139)},'validation':{'apiKeyRequired':_0x32f08c(0x153),'apiKeyTooShort':_0x32f08c(0x160),'invalidConfig':_0x32f08c(0x13c),'invalidApiKey':_0x32f08c(0x135)},'connectionStatus':{'disconnected':'연결\x20끊김','connecting':_0x32f08c(0x136),'connected':_0x32f08c(0x154),'failed':_0x32f08c(0x131),'retrying':_0x32f08c(0x14b)},'connectionError':{'unauthorized':_0x32f08c(0x133),'sessionOccupied':_0x32f08c(0x15b),'networkError':_0x32f08c(0x150),'maxRetriesExceeded':'최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요'}}};module[_0x32f08c(0x13b)]=e;
1
+ 'use strict';const _0x5f545a=_0x30ee;(function(_0x40ee90,_0x1f363b){const _0x172270=_0x30ee,_0x275e45=_0x40ee90();while(!![]){try{const _0x42217c=-parseInt(_0x172270(0x1d0))/0x1+parseInt(_0x172270(0x1c3))/0x2*(-parseInt(_0x172270(0x1b9))/0x3)+-parseInt(_0x172270(0x1be))/0x4*(parseInt(_0x172270(0x1c2))/0x5)+-parseInt(_0x172270(0x1df))/0x6+parseInt(_0x172270(0x1af))/0x7+-parseInt(_0x172270(0x1e1))/0x8+parseInt(_0x172270(0x1ce))/0x9;if(_0x42217c===_0x1f363b)break;else _0x275e45['push'](_0x275e45['shift']());}catch(_0x5d5a3f){_0x275e45['push'](_0x275e45['shift']());}}}(_0x2ba3,0xba7f5));function _0x2ba3(){const _0x8481e5=['설정\x20저장\x20실패','33806691wnqBGe','Bearer\x20접두사가\x20있는\x20API\x20키.','993942yoSwaP','인증\x20활성화','MCP\x20알\x20수\x20없는\x20상태','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','연결\x20실패','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','MCP:\x20네트워크\x20오류','유효하지\x20않은\x20설정','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','세션\x20ID','MCP\x20연결\x20중...','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','연결\x20중...','몇\x20초\x20만에\x20API\x20키\x20발급받기','499638dBOxgt','MCP:\x20최대\x20재시도\x20횟수\x20초과','3600216dNHeEe','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','설정\x20단계:','289989HKxcDp','API\x20키는\x2010자\x20이상이어야\x20합니다','MCP:\x20인증되지\x20않음','API\x20키를\x20입력하세요','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','MCP:\x20세션\x20ID\x20사용\x20','Univer\x20AI\x20콘솔','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','클릭하여\x20MCP\x20연결','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','5715Veyvck','MCP\x20재시도\x20중...','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','인증\x20실패.\x20API\x20키를\x20확인하세요','MCP\x20클라이언트\x20설정','217716SsGYrZ','저장\x20중...','MCP\x20연결\x20실패','API\x20키는\x20필수입니다','95mWXQEH','496OQxROx','MCP\x20설정','연결됨','API\x20','MCP\x20연결\x20끊김','재시도\x20중...','아래\x20JSON\x20설정\x20복사','보안\x20연결을\x20위해\x20인증\x20활성화','API\x20키란\x20무엇인가요?','클릭하여\x20MCP\x20설정'];_0x2ba3=function(){return _0x8481e5;};return _0x2ba3();}const e={'mcpStatus':{'disconnected':_0x5f545a(0x1c7),'connecting':_0x5f545a(0x1db),'connected':'MCP\x20연결됨','failed':_0x5f545a(0x1c0),'retrying':_0x5f545a(0x1ba),'unknown':_0x5f545a(0x1d2),'unauthorized':_0x5f545a(0x1b1),'sessionOccupied':_0x5f545a(0x1b4),'networkError':_0x5f545a(0x1d7),'maxRetriesExceeded':_0x5f545a(0x1e0),'clickToConnect':_0x5f545a(0x1b7),'clickToConfigure':_0x5f545a(0x1cc)},'mcpConfig':{'title':_0x5f545a(0x1c4),'description':_0x5f545a(0x1b8),'apiKey':_0x5f545a(0x1c6),'apiKeyPlaceholder':_0x5f545a(0x1b2),'apiKeyHint':_0x5f545a(0x1d3),'enableAuth':_0x5f545a(0x1d1),'enableAuthHint':_0x5f545a(0x1ca),'connectionInfo':_0x5f545a(0x1bd),'mcpClientConfig':_0x5f545a(0x1bd),'configInstructions':'MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','configStepTitle':_0x5f545a(0x1ae),'configStep1':_0x5f545a(0x1c9),'configStep2':'MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','configStep3':_0x5f545a(0x1dc),'sessionId':_0x5f545a(0x1da),'sessionIdDescription':_0x5f545a(0x1b3),'authorizationDescription':_0x5f545a(0x1cf),'configParameters':'설정\x20매개변수:','maxRetries':'최대\x20재시도\x20횟수','save':'설정\x20저장','saving':_0x5f545a(0x1bf),'note1':'설정\x20변경\x20사항은\x20즉시\x20적용됩니다','note2':_0x5f545a(0x1d9),'configSaved':'설정이\x20성공적으로\x20저장되었습니다','configError':_0x5f545a(0x1cd),'apiApplyInfo':{'title':_0x5f545a(0x1cb),'description':_0x5f545a(0x1d4),'univerAiLabel':_0x5f545a(0x1b5),'getStarted':_0x5f545a(0x1de)},'validation':{'apiKeyRequired':_0x5f545a(0x1c1),'apiKeyTooShort':_0x5f545a(0x1b0),'invalidConfig':_0x5f545a(0x1d8),'invalidApiKey':_0x5f545a(0x1bb)},'connectionStatus':{'disconnected':'연결\x20끊김','connecting':_0x5f545a(0x1dd),'connected':_0x5f545a(0x1c5),'failed':_0x5f545a(0x1d5),'retrying':_0x5f545a(0x1c8)},'connectionError':{'unauthorized':_0x5f545a(0x1bc),'sessionOccupied':_0x5f545a(0x1b6),'networkError':_0x5f545a(0x1d6),'maxRetriesExceeded':_0x5f545a(0x1e2)}}};function _0x30ee(_0x23203a,_0x4caab3){_0x23203a=_0x23203a-0x1ae;const _0x2ba30d=_0x2ba3();let _0x30eec3=_0x2ba30d[_0x23203a];return _0x30eec3;}module['exports']=e;
@@ -1 +1 @@
1
- 'use strict';const _0x502b8d=_0x2ea1;(function(_0x14ece4,_0x53d076){const _0x262c57=_0x2ea1,_0x55f6f4=_0x14ece4();while(!![]){try{const _0x2afd4a=-parseInt(_0x262c57(0xa5))/0x1+parseInt(_0x262c57(0xc2))/0x2+-parseInt(_0x262c57(0xa1))/0x3*(-parseInt(_0x262c57(0xb7))/0x4)+parseInt(_0x262c57(0xb1))/0x5+-parseInt(_0x262c57(0xb6))/0x6+-parseInt(_0x262c57(0xb2))/0x7+parseInt(_0x262c57(0xc6))/0x8*(-parseInt(_0x262c57(0xcc))/0x9);if(_0x2afd4a===_0x53d076)break;else _0x55f6f4['push'](_0x55f6f4['shift']());}catch(_0x2f3f30){_0x55f6f4['push'](_0x55f6f4['shift']());}}}(_0x4eb6,0x73339));function _0x2ea1(_0x28f3f7,_0x168939){_0x28f3f7=_0x28f3f7-0x9d;const _0x4eb668=_0x4eb6();let _0x2ea1cb=_0x4eb668[_0x28f3f7];return _0x2ea1cb;}const e={'mcpStatus':{'disconnected':_0x502b8d(0xbc),'connecting':_0x502b8d(0xaa),'connected':'MCP\x20Connected','failed':_0x502b8d(0xc1),'retrying':_0x502b8d(0xa9),'unknown':_0x502b8d(0x9f),'unauthorized':_0x502b8d(0xc3),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x502b8d(0xae),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x502b8d(0xcb),'clickToConfigure':_0x502b8d(0xa4)},'mcpConfig':{'title':_0x502b8d(0x9d),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x502b8d(0xce),'apiKeyPlaceholder':_0x502b8d(0xa8),'apiKeyHint':_0x502b8d(0xb5),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x502b8d(0xa6),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x502b8d(0xb3),'configStepTitle':_0x502b8d(0xb9),'configStep1':_0x502b8d(0xaf),'configStep2':_0x502b8d(0xb4),'configStep3':_0x502b8d(0xca),'sessionId':_0x502b8d(0xbd),'sessionIdDescription':_0x502b8d(0xcf),'authorizationDescription':_0x502b8d(0xba),'configParameters':_0x502b8d(0xa3),'maxRetries':_0x502b8d(0xc7),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x502b8d(0xc5),'note2':_0x502b8d(0xa7),'configSaved':_0x502b8d(0xa0),'configError':_0x502b8d(0xa2),'apiApplyInfo':{'title':_0x502b8d(0xab),'description':_0x502b8d(0xb0),'univerAiLabel':_0x502b8d(0xd0),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x502b8d(0xbf),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x502b8d(0xc9),'invalidApiKey':_0x502b8d(0xbb)},'connectionStatus':{'disconnected':_0x502b8d(0xc0),'connecting':_0x502b8d(0xc4),'connected':_0x502b8d(0xb8),'failed':_0x502b8d(0xac),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x502b8d(0xc8),'sessionOccupied':_0x502b8d(0x9e),'networkError':_0x502b8d(0xcd),'maxRetriesExceeded':_0x502b8d(0xad)}}},n=e;module[_0x502b8d(0xbe)]=n;function _0x4eb6(){const _0x356f1c=['exports','API\x20key\x20is\x20required','Disconnected','MCP\x20Connection\x20Failed','1473036FxOOOj','MCP:\x20Unauthorized','Connecting...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','218520xxCsyl','Max\x20Retries','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Click\x20to\x20connect\x20MCP','108WhVsKc','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20Key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Univer\x20AI\x20Console','MCP\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','Configuration\x20saved\x20successfully','3ehKbAr','Failed\x20to\x20save\x20configuration','Configuration\x20Parameters:','Click\x20to\x20configure\x20MCP','625793tSEpAd','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enter\x20your\x20API\x20key','MCP\x20Retrying...','MCP\x20Connecting...','What\x20is\x20API\x20Key?','Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Network\x20Error','Copy\x20the\x20JSON\x20configuration\x20below','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','4142525UYIppU','1218945ezXDaL','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1847226nlOuGL','1369684dOsYnE','Connected','Configuration\x20Steps:','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Disconnected','Session\x20ID'];_0x4eb6=function(){return _0x356f1c;};return _0x4eb6();}
1
+ 'use strict';const _0x2cba9b=_0x26a7;(function(_0x31a793,_0xe39a91){const _0x12bca3=_0x26a7,_0xcdbd01=_0x31a793();while(!![]){try{const _0x54a30e=-parseInt(_0x12bca3(0x1f9))/0x1+-parseInt(_0x12bca3(0x1e8))/0x2+parseInt(_0x12bca3(0x211))/0x3*(-parseInt(_0x12bca3(0x214))/0x4)+parseInt(_0x12bca3(0x1ee))/0x5+-parseInt(_0x12bca3(0x200))/0x6*(-parseInt(_0x12bca3(0x1e9))/0x7)+parseInt(_0x12bca3(0x215))/0x8+-parseInt(_0x12bca3(0x1fe))/0x9;if(_0x54a30e===_0xe39a91)break;else _0xcdbd01['push'](_0xcdbd01['shift']());}catch(_0xdbbc93){_0xcdbd01['push'](_0xcdbd01['shift']());}}}(_0x38d2,0x5092f));const e={'mcpStatus':{'disconnected':_0x2cba9b(0x209),'connecting':_0x2cba9b(0x203),'connected':'MCP\x20Connected','failed':_0x2cba9b(0x1f2),'retrying':'MCP\x20Retrying...','unknown':_0x2cba9b(0x1fd),'unauthorized':_0x2cba9b(0x1f4),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2cba9b(0x207),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2cba9b(0x1fa),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2cba9b(0x201),'description':_0x2cba9b(0x1f3),'apiKey':_0x2cba9b(0x210),'apiKeyPlaceholder':_0x2cba9b(0x1ff),'apiKeyHint':_0x2cba9b(0x1ed),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2cba9b(0x20b),'mcpClientConfig':_0x2cba9b(0x20b),'configInstructions':_0x2cba9b(0x206),'configStepTitle':_0x2cba9b(0x216),'configStep1':_0x2cba9b(0x1ec),'configStep2':_0x2cba9b(0x20a),'configStep3':_0x2cba9b(0x20c),'sessionId':_0x2cba9b(0x20f),'sessionIdDescription':_0x2cba9b(0x1e6),'authorizationDescription':_0x2cba9b(0x1fb),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x2cba9b(0x1fc),'save':'Save\x20Configuration','saving':_0x2cba9b(0x1eb),'note1':_0x2cba9b(0x202),'note2':_0x2cba9b(0x1f6),'configSaved':_0x2cba9b(0x213),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x2cba9b(0x20e),'description':_0x2cba9b(0x1f8),'univerAiLabel':_0x2cba9b(0x1f0),'getStarted':_0x2cba9b(0x208)},'validation':{'apiKeyRequired':_0x2cba9b(0x20d),'apiKeyTooShort':_0x2cba9b(0x212),'invalidConfig':_0x2cba9b(0x1ea),'invalidApiKey':_0x2cba9b(0x1e5)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2cba9b(0x1f5),'connected':_0x2cba9b(0x1e7),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2cba9b(0x204),'sessionOccupied':_0x2cba9b(0x1f7),'networkError':_0x2cba9b(0x1f1),'maxRetriesExceeded':_0x2cba9b(0x205)}}},n=e;function _0x38d2(){const _0xb7d678=['127183lnPpmc','Invalid\x20configuration','Saving...','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','2134545DkynFC','exports','Univer\x20AI\x20Console','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connection\x20Failed','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Unauthorized','Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','61090LEMMot','Click\x20to\x20connect\x20MCP','API\x20key\x20with\x20Bearer\x20prefix.','Max\x20Retries','MCP\x20Unknown\x20Status','2092869ogkLSH','Enter\x20your\x20API\x20key','66GatMfd','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Network\x20Error','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Client\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20is\x20required','What\x20is\x20API\x20Key?','Session\x20ID','API\x20Key','18xAllHG','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20saved\x20successfully','69508VwKDFw','4847016CUhIEA','Configuration\x20Steps:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connected','1009442MnHhuT'];_0x38d2=function(){return _0xb7d678;};return _0x38d2();}function _0x26a7(_0x3d7e09,_0x249298){_0x3d7e09=_0x3d7e09-0x1e5;const _0x38d2ef=_0x38d2();let _0x26a7fe=_0x38d2ef[_0x3d7e09];return _0x26a7fe;}module[_0x2cba9b(0x1ef)]=n;
@@ -0,0 +1 @@
1
+ 'use strict';function _0x31dc(){const _0x501842=['API\x20kľúč\x20je\x20povinný','75PMZWSf','Pripája\x20sa...','Odpojené','API\x20kľúč\x20s\x20prefixom\x20Bearer.','Kroky\x20konfigurácie:','MCP:\x20ID\x20relácie\x20je\x20obsadené','59894uitRCa','MCP:\x20Sieťová\x20chyba','Univer\x20AI\x20konzola','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd','Maximálny\x20počet\x20pokusov','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','2505745DlCFjt','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','MCP\x20odpojené','Pripojenie\x20MCP\x20zlyhalo','13jakLws','Konfigurácia\x20MCP','363450rmTOXp','76396kaPosk','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.','MCP\x20neznámy\x20stav','Skúša\x20sa\x20znova...','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','MCP\x20opakuje\x20pokus...','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','Parametre\x20konfigurácie:','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','Zadajte\x20svoj\x20API\x20kľúč','API\x20kľúč','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','Kliknite\x20na\x20pripojenie\x20MCP','2660910DovMAT','MCP:\x20Prekročený\x20počet\x20pokusov','Uložiť\x20konfiguráciu','Čo\x20je\x20API\x20kľúč?','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','4915449VZnaXQ','Konfigurácia\x20klienta\x20MCP','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','Konfigurácia\x20bola\x20úspešne\x20uložená','Pripojené','exports','1894632PJGGuF','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','MCP\x20pripojené','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.','ID\x20relácie'];_0x31dc=function(){return _0x501842;};return _0x31dc();}const _0x2fda69=_0x4927;(function(_0x3af887,_0x495ad7){const _0x4bffc2=_0x4927,_0x3de2cd=_0x3af887();while(!![]){try{const _0x20049f=-parseInt(_0x4bffc2(0x1ea))/0x1*(parseInt(_0x4bffc2(0x1e0))/0x2)+parseInt(_0x4bffc2(0x20e))/0x3*(-parseInt(_0x4bffc2(0x1ed))/0x4)+parseInt(_0x4bffc2(0x1e6))/0x5+-parseInt(_0x4bffc2(0x1ec))/0x6+parseInt(_0x4bffc2(0x1fc))/0x7+-parseInt(_0x4bffc2(0x207))/0x8+parseInt(_0x4bffc2(0x201))/0x9;if(_0x20049f===_0x495ad7)break;else _0x3de2cd['push'](_0x3de2cd['shift']());}catch(_0x51d183){_0x3de2cd['push'](_0x3de2cd['shift']());}}}(_0x31dc,0x40452));const e={'mcpStatus':{'disconnected':_0x2fda69(0x1e8),'connecting':'MCP\x20sa\x20pripája...','connected':_0x2fda69(0x20a),'failed':_0x2fda69(0x1e9),'retrying':_0x2fda69(0x1f3),'unknown':_0x2fda69(0x1ef),'unauthorized':'MCP:\x20Neautorizované','sessionOccupied':_0x2fda69(0x1df),'networkError':_0x2fda69(0x1e1),'maxRetriesExceeded':_0x2fda69(0x1fd),'clickToConnect':_0x2fda69(0x1fb),'clickToConfigure':'Kliknite\x20na\x20konfiguráciu\x20MCP'},'mcpConfig':{'title':_0x2fda69(0x1eb),'description':'Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','apiKey':_0x2fda69(0x1f9),'apiKeyPlaceholder':_0x2fda69(0x1f8),'apiKeyHint':_0x2fda69(0x1fa),'enableAuth':'Povoliť\x20overenie','enableAuthHint':_0x2fda69(0x200),'connectionInfo':_0x2fda69(0x202),'mcpClientConfig':'Konfigurácia\x20klienta\x20MCP','configInstructions':_0x2fda69(0x203),'configStepTitle':_0x2fda69(0x1de),'configStep1':_0x2fda69(0x1f4),'configStep2':'Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','configStep3':_0x2fda69(0x1f7),'sessionId':_0x2fda69(0x20c),'sessionIdDescription':_0x2fda69(0x20b),'authorizationDescription':_0x2fda69(0x211),'configParameters':_0x2fda69(0x1f5),'maxRetries':_0x2fda69(0x1e4),'save':_0x2fda69(0x1fe),'saving':'Ukladá\x20sa...','note1':_0x2fda69(0x1f2),'note2':_0x2fda69(0x1f1),'configSaved':_0x2fda69(0x204),'configError':_0x2fda69(0x1e5),'apiApplyInfo':{'title':_0x2fda69(0x1ff),'description':_0x2fda69(0x1ee),'univerAiLabel':_0x2fda69(0x1e2),'getStarted':_0x2fda69(0x1e3)},'validation':{'apiKeyRequired':_0x2fda69(0x20d),'apiKeyTooShort':'API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','invalidConfig':'Neplatná\x20konfigurácia','invalidApiKey':'Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny'},'connectionStatus':{'disconnected':_0x2fda69(0x210),'connecting':_0x2fda69(0x20f),'connected':_0x2fda69(0x205),'failed':'Pripojenie\x20zlyhalo','retrying':_0x2fda69(0x1f0)},'connectionError':{'unauthorized':_0x2fda69(0x1f6),'sessionOccupied':_0x2fda69(0x209),'networkError':_0x2fda69(0x1e7),'maxRetriesExceeded':_0x2fda69(0x208)}}};function _0x4927(_0x596071,_0x1b896a){_0x596071=_0x596071-0x1de;const _0x31dcce=_0x31dc();let _0x4927a5=_0x31dcce[_0x596071];return _0x4927a5;}module[_0x2fda69(0x206)]=e;
@@ -1 +1 @@
1
- 'use strict';function _0x38e8(){const _0x2f3da4=['129973eeeeBc','MCP\x20Đã\x20kết\x20nối','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','MCP\x20Đang\x20kết\x20nối...','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Đã\x20ngắt\x20kết\x20nối','MCP\x20Kết\x20nối\x20thất\x20bại','Đang\x20lưu...','Đang\x20kết\x20nối...','989008kHGmxa','Cấu\x20hình\x20máy\x20khách\x20MCP','Khóa\x20API\x20là\x20gì?','Cấu\x20hình\x20MCP','4260501Puzguy','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','Đã\x20kết\x20nối','355817pZLERk','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','6193226sCkrQc','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','MCP\x20Đã\x20ngắt\x20kết\x20nối','36EgEsAl','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','70hnTRQd','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','8AEkaAU','780405EdOJGa','MCP:\x20Lỗi\x20mạng','6ivKgiF','9OTQpoa','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Bảng\x20điều\x20khiển\x20Univer\x20AI','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','MCP\x20Đang\x20thử\x20lại...','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','exports','4834971GGrgzA','Cấu\x20hình\x20không\x20hợp\x20lệ','Nhấp\x20để\x20kết\x20nối\x20MCP','2aAPkZi','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Số\x20lần\x20thử\x20lại\x20tối\x20đa','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính'];_0x38e8=function(){return _0x2f3da4;};return _0x38e8();}const _0x51eb3b=_0x1d45;(function(_0x40e7e8,_0xdb1db1){const _0xf641bb=_0x1d45,_0x3d8372=_0x40e7e8();while(!![]){try{const _0x3a18ec=-parseInt(_0xf641bb(0xa3))/0x1*(parseInt(_0xf641bb(0x9f))/0x2)+parseInt(_0xf641bb(0x93))/0x3*(parseInt(_0xf641bb(0xac))/0x4)+parseInt(_0xf641bb(0x90))/0x5*(-parseInt(_0xf641bb(0x92))/0x6)+parseInt(_0xf641bb(0x83))/0x7*(-parseInt(_0xf641bb(0x8f))/0x8)+-parseInt(_0xf641bb(0x9c))/0x9+parseInt(_0xf641bb(0x8d))/0xa*(-parseInt(_0xf641bb(0x86))/0xb)+parseInt(_0xf641bb(0x8b))/0xc*(parseInt(_0xf641bb(0x88))/0xd);if(_0x3a18ec===_0xdb1db1)break;else _0x3d8372['push'](_0x3d8372['shift']());}catch(_0x2a872c){_0x3d8372['push'](_0x3d8372['shift']());}}}(_0x38e8,0x7d269));function _0x1d45(_0x2eaa3d,_0x414394){_0x2eaa3d=_0x2eaa3d-0x81;const _0x38e8fa=_0x38e8();let _0x1d4509=_0x38e8fa[_0x2eaa3d];return _0x1d4509;}const n={'mcpStatus':{'disconnected':_0x51eb3b(0x8a),'connecting':_0x51eb3b(0xa6),'connected':_0x51eb3b(0xa4),'failed':_0x51eb3b(0xa9),'retrying':_0x51eb3b(0x98),'unknown':_0x51eb3b(0xa0),'unauthorized':'MCP:\x20Không\x20được\x20phép','sessionOccupied':_0x51eb3b(0x89),'networkError':_0x51eb3b(0x91),'maxRetriesExceeded':_0x51eb3b(0x8e),'clickToConnect':_0x51eb3b(0x9e),'clickToConfigure':'Nhấp\x20để\x20cấu\x20hình\x20MCP'},'mcpConfig':{'title':_0x51eb3b(0x82),'description':_0x51eb3b(0xa2),'apiKey':'Khóa\x20API','apiKeyPlaceholder':'Nhập\x20khóa\x20API\x20của\x20bạn','apiKeyHint':_0x51eb3b(0x99),'enableAuth':'Bật\x20xác\x20thực','enableAuthHint':_0x51eb3b(0x9a),'connectionInfo':_0x51eb3b(0xad),'mcpClientConfig':_0x51eb3b(0xad),'configInstructions':_0x51eb3b(0x8c),'configStepTitle':'Các\x20bước\x20cấu\x20hình:','configStep1':_0x51eb3b(0x84),'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':_0x51eb3b(0x94),'sessionId':'ID\x20phiên','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':_0x51eb3b(0xa1),'save':'Lưu\x20cấu\x20hình','saving':_0x51eb3b(0xaa),'note1':_0x51eb3b(0xa7),'note2':_0x51eb3b(0x97),'configSaved':_0x51eb3b(0x95),'configError':'Lưu\x20cấu\x20hình\x20thất\x20bại','apiApplyInfo':{'title':_0x51eb3b(0x81),'description':'Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','univerAiLabel':_0x51eb3b(0x96),'getStarted':'Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây'},'validation':{'apiKeyRequired':'Yêu\x20cầu\x20khóa\x20API','apiKeyTooShort':_0x51eb3b(0xa5),'invalidConfig':_0x51eb3b(0x9d),'invalidApiKey':_0x51eb3b(0x87)},'connectionStatus':{'disconnected':_0x51eb3b(0xa8),'connecting':_0x51eb3b(0xab),'connected':_0x51eb3b(0x85),'failed':'Kết\x20nối\x20thất\x20bại','retrying':'Đang\x20thử\x20lại...'},'connectionError':{'unauthorized':'Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','sessionOccupied':'Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','networkError':'Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','maxRetriesExceeded':'Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau'}}};module[_0x51eb3b(0x9b)]=n;
1
+ 'use strict';const _0x1a9d59=_0x5099;function _0x5099(_0x335e42,_0x379687){_0x335e42=_0x335e42-0x1a0;const _0x38b5c1=_0x38b5();let _0x509995=_0x38b5c1[_0x335e42];return _0x509995;}(function(_0x22886b,_0x4a31d8){const _0x468cdb=_0x5099,_0x299c5e=_0x22886b();while(!![]){try{const _0x107a83=parseInt(_0x468cdb(0x1be))/0x1*(parseInt(_0x468cdb(0x1bb))/0x2)+parseInt(_0x468cdb(0x1a2))/0x3+parseInt(_0x468cdb(0x1ba))/0x4*(parseInt(_0x468cdb(0x1d3))/0x5)+parseInt(_0x468cdb(0x1b0))/0x6*(parseInt(_0x468cdb(0x1b8))/0x7)+-parseInt(_0x468cdb(0x1b4))/0x8+parseInt(_0x468cdb(0x1aa))/0x9*(-parseInt(_0x468cdb(0x1a7))/0xa)+parseInt(_0x468cdb(0x1c0))/0xb*(parseInt(_0x468cdb(0x1b7))/0xc);if(_0x107a83===_0x4a31d8)break;else _0x299c5e['push'](_0x299c5e['shift']());}catch(_0x28bf6){_0x299c5e['push'](_0x299c5e['shift']());}}}(_0x38b5,0x96647));const n={'mcpStatus':{'disconnected':_0x1a9d59(0x1b5),'connecting':_0x1a9d59(0x1a8),'connected':'MCP\x20Đã\x20kết\x20nối','failed':_0x1a9d59(0x1a3),'retrying':'MCP\x20Đang\x20thử\x20lại...','unknown':_0x1a9d59(0x1b3),'unauthorized':'MCP:\x20Không\x20được\x20phép','sessionOccupied':_0x1a9d59(0x1c5),'networkError':_0x1a9d59(0x1c7),'maxRetriesExceeded':_0x1a9d59(0x1c4),'clickToConnect':_0x1a9d59(0x1a5),'clickToConfigure':'Nhấp\x20để\x20cấu\x20hình\x20MCP'},'mcpConfig':{'title':_0x1a9d59(0x1cc),'description':_0x1a9d59(0x1a9),'apiKey':'Khóa\x20API','apiKeyPlaceholder':_0x1a9d59(0x1bd),'apiKeyHint':_0x1a9d59(0x1ce),'enableAuth':_0x1a9d59(0x1c3),'enableAuthHint':'Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','connectionInfo':_0x1a9d59(0x1bf),'mcpClientConfig':'Cấu\x20hình\x20máy\x20khách\x20MCP','configInstructions':_0x1a9d59(0x1cf),'configStepTitle':_0x1a9d59(0x1ad),'configStep1':'Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','configStep2':_0x1a9d59(0x1a1),'configStep3':_0x1a9d59(0x1b2),'sessionId':_0x1a9d59(0x1d2),'sessionIdDescription':_0x1a9d59(0x1c9),'authorizationDescription':_0x1a9d59(0x1ca),'configParameters':_0x1a9d59(0x1c2),'maxRetries':_0x1a9d59(0x1b6),'save':_0x1a9d59(0x1bc),'saving':_0x1a9d59(0x1ac),'note1':'Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','note2':_0x1a9d59(0x1d1),'configSaved':_0x1a9d59(0x1c1),'configError':_0x1a9d59(0x1a4),'apiApplyInfo':{'title':'Khóa\x20API\x20là\x20gì?','description':'Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','univerAiLabel':_0x1a9d59(0x1ab),'getStarted':_0x1a9d59(0x1c8)},'validation':{'apiKeyRequired':_0x1a9d59(0x1b1),'apiKeyTooShort':'Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','invalidConfig':'Cấu\x20hình\x20không\x20hợp\x20lệ','invalidApiKey':_0x1a9d59(0x1cd)},'connectionStatus':{'disconnected':_0x1a9d59(0x1d0),'connecting':'Đang\x20kết\x20nối...','connected':_0x1a9d59(0x1a6),'failed':_0x1a9d59(0x1b9),'retrying':_0x1a9d59(0x1af)},'connectionError':{'unauthorized':'Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','sessionOccupied':_0x1a9d59(0x1a0),'networkError':_0x1a9d59(0x1c6),'maxRetriesExceeded':_0x1a9d59(0x1ae)}}};module[_0x1a9d59(0x1cb)]=n;function _0x38b5(){const _0x306c70=['Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','MCP:\x20Lỗi\x20mạng','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Đị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.','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','exports','Cấu\x20hình\x20MCP','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','Đã\x20ngắt\x20kết\x20nối','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','ID\x20phiên','45yNcbGD','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','7296pQtLLT','MCP\x20Kết\x20nối\x20thất\x20bại','Lưu\x20cấu\x20hình\x20thất\x20bại','Nhấp\x20để\x20kết\x20nối\x20MCP','Đã\x20kết\x20nối','40lpppsS','MCP\x20Đang\x20kết\x20nối...','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','2476584vjdQzw','Bảng\x20điều\x20khiển\x20Univer\x20AI','Đang\x20lưu...','Các\x20bước\x20cấu\x20hình:','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','Đang\x20thử\x20lại...','1018632wSPtws','Yêu\x20cầu\x20khóa\x20API','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','348856ZQFlVi','MCP\x20Đã\x20ngắt\x20kết\x20nối','Số\x20lần\x20thử\x20lại\x20tối\x20đa','562908iPfIPn','28gekWRd','Kết\x20nối\x20thất\x20bại','368036qAWXty','313798QXKjXD','Lưu\x20cấu\x20hình','Nhập\x20khóa\x20API\x20của\x20bạn','1sNxpIQ','Cấu\x20hình\x20máy\x20khách\x20MCP','22SiONRx','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Tham\x20số\x20cấu\x20hình:','Bật\x20xác\x20thực','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng'];_0x38b5=function(){return _0x306c70;};return _0x38b5();}
@@ -1 +1 @@
1
- 'use strict';function _0x170e(){const _0xa124cb=['重连中...','启用身份验证','MCP\x20客户端配置','会话\x20ID\x20已被占用,请稍后再试','将配置添加到您的\x20MCP\x20客户端设置文件中','网络连接错误,请检查您的网络连接','请输入您的\x20API\x20密钥','重启您的\x20MCP\x20客户端以使配置生效','371765eXJaBp','2854083iTexXt','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP\x20已断开','什么是\x20API\x20密钥?','最大重试次数','几秒钟内获取您的\x20API\x20密钥','连接中...','配置保存成功','复制以下\x20JSON\x20配置','MCP:\x20超出最大重试次数','6281568NcSAWH','权限验证失败,请检查您的\x20API\x20密钥','1477917FXQbhC','您的\x20API\x20密钥将在此浏览器中本地存储','超出最大重试次数,请稍后再试','配置无效','连接失败','2kjnZsy','MCP\x20状态未知','配置参数:','点击配置\x20MCP','MCP:\x20未授权','配置步骤:','Univer\x20AI\x20控制台','9dXteTM','533588ufSLsS','将以下配置添加到您的\x20MCP\x20客户端设置中:','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP:\x20会话\x20ID\x20已被占用','API\x20密钥不能为空','未连接','API\x20密钥长度至少需要\x2010\x20位','6070029JjqSyo','会话ID','MCP\x20重连中...','exports','带有\x20Bearer\x20前缀的\x20API\x20密钥。','配置保存失败','API\x20密钥','点击连接\x20MCP','配置更改将立即生效','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','26269832lDZtwp'];_0x170e=function(){return _0xa124cb;};return _0x170e();}const _0x462fd0=_0x31cc;(function(_0x1a5b48,_0x47d42c){const _0x1885ed=_0x31cc,_0x14a89a=_0x1a5b48();while(!![]){try{const _0x20578a=-parseInt(_0x1885ed(0x1db))/0x1+parseInt(_0x1885ed(0x1e0))/0x2*(-parseInt(_0x1885ed(0x1cf))/0x3)+-parseInt(_0x1885ed(0x1e8))/0x4+-parseInt(_0x1885ed(0x1ce))/0x5+parseInt(_0x1885ed(0x1d9))/0x6+-parseInt(_0x1885ed(0x1ef))/0x7+-parseInt(_0x1885ed(0x1c5))/0x8*(-parseInt(_0x1885ed(0x1e7))/0x9);if(_0x20578a===_0x47d42c)break;else _0x14a89a['push'](_0x14a89a['shift']());}catch(_0x1da3de){_0x14a89a['push'](_0x14a89a['shift']());}}}(_0x170e,0xc9c72));function _0x31cc(_0x4a94b8,_0x4b178c){_0x4a94b8=_0x4a94b8-0x1c5;const _0x170e78=_0x170e();let _0x31cc81=_0x170e78[_0x4a94b8];return _0x31cc81;}const e={'mcpStatus':{'disconnected':_0x462fd0(0x1d1),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':'MCP\x20连接失败','retrying':_0x462fd0(0x1f1),'unknown':_0x462fd0(0x1e1),'unauthorized':_0x462fd0(0x1e4),'sessionOccupied':_0x462fd0(0x1eb),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x462fd0(0x1d8),'clickToConnect':_0x462fd0(0x1f6),'clickToConfigure':_0x462fd0(0x1e3)},'mcpConfig':{'title':'MCP\x20配置','description':_0x462fd0(0x1ea),'apiKey':_0x462fd0(0x1f5),'apiKeyPlaceholder':_0x462fd0(0x1cc),'apiKeyHint':_0x462fd0(0x1dc),'enableAuth':_0x462fd0(0x1c7),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x462fd0(0x1c8),'mcpClientConfig':_0x462fd0(0x1c8),'configInstructions':_0x462fd0(0x1e9),'configStepTitle':_0x462fd0(0x1e5),'configStep1':_0x462fd0(0x1d7),'configStep2':_0x462fd0(0x1ca),'configStep3':_0x462fd0(0x1cd),'sessionId':_0x462fd0(0x1f0),'sessionIdDescription':_0x462fd0(0x1d0),'authorizationDescription':_0x462fd0(0x1f3),'configParameters':_0x462fd0(0x1e2),'maxRetries':_0x462fd0(0x1d3),'save':'保存配置','saving':'保存中...','note1':_0x462fd0(0x1f7),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x462fd0(0x1d6),'configError':_0x462fd0(0x1f4),'apiApplyInfo':{'title':_0x462fd0(0x1d2),'description':_0x462fd0(0x1f8),'univerAiLabel':_0x462fd0(0x1e6),'getStarted':_0x462fd0(0x1d4)},'validation':{'apiKeyRequired':_0x462fd0(0x1ec),'apiKeyTooShort':_0x462fd0(0x1ee),'invalidConfig':_0x462fd0(0x1de),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x462fd0(0x1ed),'connecting':_0x462fd0(0x1d5),'connected':'已连接','failed':_0x462fd0(0x1df),'retrying':_0x462fd0(0x1c6)},'connectionError':{'unauthorized':_0x462fd0(0x1da),'sessionOccupied':_0x462fd0(0x1c9),'networkError':_0x462fd0(0x1cb),'maxRetriesExceeded':_0x462fd0(0x1dd)}}};module[_0x462fd0(0x1f2)]=e;
1
+ 'use strict';const _0x2e5f56=_0x5808;function _0x5808(_0x2e0320,_0x5c544b){_0x2e0320=_0x2e0320-0x18f;const _0x3d0f82=_0x3d0f();let _0x580851=_0x3d0f82[_0x2e0320];return _0x580851;}(function(_0x22365d,_0x1f49f3){const _0x1f0e90=_0x5808,_0xbab257=_0x22365d();while(!![]){try{const _0x5c977a=parseInt(_0x1f0e90(0x199))/0x1+parseInt(_0x1f0e90(0x1bc))/0x2+parseInt(_0x1f0e90(0x19d))/0x3+parseInt(_0x1f0e90(0x19a))/0x4+-parseInt(_0x1f0e90(0x18f))/0x5*(-parseInt(_0x1f0e90(0x19c))/0x6)+-parseInt(_0x1f0e90(0x1b6))/0x7+-parseInt(_0x1f0e90(0x19e))/0x8*(parseInt(_0x1f0e90(0x1aa))/0x9);if(_0x5c977a===_0x1f49f3)break;else _0xbab257['push'](_0xbab257['shift']());}catch(_0x141098){_0xbab257['push'](_0xbab257['shift']());}}}(_0x3d0f,0x9f684));function _0x3d0f(){const _0x2dd2f1=['网络连接错误,请检查您的网络连接','权限验证失败,请检查您的\x20API\x20密钥','配置\x20MCP\x20使用\x20AI\x20操作电子表格','1252188uKqlyE','MCP\x20连接中...','exports','几秒钟内获取您的\x20API\x20密钥','复制以下\x20JSON\x20配置','配置更改将立即生效','点击配置\x20MCP','MCP:\x20超出最大重试次数','API\x20密钥无效,请检查密钥是否正确','MCP\x20已连接','MCP:\x20会话\x20ID\x20已被占用','配置参数:','249886rDBJBz','MCP:\x20未授权','超出最大重试次数,请稍后再试','API\x20密钥','您的\x20API\x20密钥将在此浏览器中本地存储','已连接','134798sibYZg','保存中...','点击连接\x20MCP','73955fJhwJA','会话\x20ID\x20已被占用,请稍后再试','配置保存成功','您的\x20API\x20密钥安全存储在本地存储中','保存配置','启用身份验证','API\x20密钥长度至少需要\x2010\x20','MCP\x20客户端配置','配置步骤:','将配置添加到您的\x20MCP\x20客户端设置文件中','303867vhicSc','1389792HAsKKp','MCP:\x20网络错误','264veSqvz','2548692BcOxOT','88rhabrX','连接失败','什么是\x20API\x20密钥?','MCP\x20重连中...','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20已断开','未连接','会话ID','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。'];_0x3d0f=function(){return _0x2dd2f1;};return _0x3d0f();}const e={'mcpStatus':{'disconnected':_0x2e5f56(0x1a3),'connecting':_0x2e5f56(0x1ab),'connected':_0x2e5f56(0x1b3),'failed':'MCP\x20连接失败','retrying':_0x2e5f56(0x1a1),'unknown':'MCP\x20状态未知','unauthorized':_0x2e5f56(0x1b7),'sessionOccupied':_0x2e5f56(0x1b4),'networkError':_0x2e5f56(0x19b),'maxRetriesExceeded':_0x2e5f56(0x1b1),'clickToConnect':_0x2e5f56(0x1be),'clickToConfigure':_0x2e5f56(0x1b0)},'mcpConfig':{'title':'MCP\x20配置','description':_0x2e5f56(0x1a9),'apiKey':_0x2e5f56(0x1b9),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x2e5f56(0x1ba),'enableAuth':_0x2e5f56(0x194),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x2e5f56(0x196),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x2e5f56(0x197),'configStep1':_0x2e5f56(0x1ae),'configStep2':_0x2e5f56(0x198),'configStep3':_0x2e5f56(0x1a2),'sessionId':_0x2e5f56(0x1a5),'sessionIdDescription':_0x2e5f56(0x1a6),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x2e5f56(0x1b5),'maxRetries':'最大重试次数','save':_0x2e5f56(0x193),'saving':_0x2e5f56(0x1bd),'note1':_0x2e5f56(0x1af),'note2':_0x2e5f56(0x192),'configSaved':_0x2e5f56(0x191),'configError':'配置保存失败','apiApplyInfo':{'title':_0x2e5f56(0x1a0),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x2e5f56(0x1ad)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x2e5f56(0x195),'invalidConfig':'配置无效','invalidApiKey':_0x2e5f56(0x1b2)},'connectionStatus':{'disconnected':_0x2e5f56(0x1a4),'connecting':'连接中...','connected':_0x2e5f56(0x1bb),'failed':_0x2e5f56(0x19f),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x2e5f56(0x1a8),'sessionOccupied':_0x2e5f56(0x190),'networkError':_0x2e5f56(0x1a7),'maxRetriesExceeded':_0x2e5f56(0x1b8)}}};module[_0x2e5f56(0x1ac)]=e;
@@ -1 +1 @@
1
- 'use strict';const _0x385ef4=_0x1514;(function(_0x40cb80,_0x2ef889){const _0x1cb656=_0x1514,_0x50dc47=_0x40cb80();while(!![]){try{const _0x47eaad=parseInt(_0x1cb656(0x12b))/0x1+parseInt(_0x1cb656(0x13e))/0x2+-parseInt(_0x1cb656(0x138))/0x3*(-parseInt(_0x1cb656(0x130))/0x4)+-parseInt(_0x1cb656(0x112))/0x5+-parseInt(_0x1cb656(0x127))/0x6*(parseInt(_0x1cb656(0x11b))/0x7)+-parseInt(_0x1cb656(0x131))/0x8*(parseInt(_0x1cb656(0x128))/0x9)+-parseInt(_0x1cb656(0x136))/0xa;if(_0x47eaad===_0x2ef889)break;else _0x50dc47['push'](_0x50dc47['shift']());}catch(_0x1259eb){_0x50dc47['push'](_0x50dc47['shift']());}}}(_0x1543,0x33a7a));function _0x1543(){const _0x37ba7f=['Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Retrying...','Connection\x20Failed','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Network\x20Error','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Max\x20Retries','Failed\x20to\x20save\x20configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','414gwlqCD','9ljdjbT','MCP:\x20Unauthorized','MCP\x20Configuration','305230BlLVmP','Configuration\x20saved\x20successfully','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Retrying...','MCP\x20Client\x20Configuration','1828FQhQSe','608408iKGFrI','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','What\x20is\x20API\x20Key?','Invalid\x20configuration','Enable\x20Authentication','5643550KRbetz','MCP\x20Connecting...','2559WkGFYZ','API\x20key\x20with\x20Bearer\x20prefix.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connection\x20Failed','MCP\x20Connected','732130hjVwjB','Session\x20ID','Get\x20your\x20API\x20key\x20in\x20seconds','Save\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','344965GnZpfi','Configuration\x20Parameters:','Univer\x20AI\x20Console','exports','Configuration\x20Steps:','Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','Enter\x20your\x20API\x20key','MCP\x20Disconnected','14217ZIDcXV','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20configure\x20MCP'];_0x1543=function(){return _0x37ba7f;};return _0x1543();}function _0x1514(_0x53d747,_0x36c909){_0x53d747=_0x53d747-0x10d;const _0x15435e=_0x1543();let _0x15146a=_0x15435e[_0x53d747];return _0x15146a;}const e={'mcpStatus':{'disconnected':_0x385ef4(0x11a),'connecting':_0x385ef4(0x137),'connected':_0x385ef4(0x13d),'failed':_0x385ef4(0x13c),'retrying':_0x385ef4(0x11f),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x385ef4(0x129),'sessionOccupied':_0x385ef4(0x121),'networkError':_0x385ef4(0x122),'maxRetriesExceeded':_0x385ef4(0x118),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x385ef4(0x11d)},'mcpConfig':{'title':_0x385ef4(0x12a),'description':_0x385ef4(0x13a),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x385ef4(0x119),'apiKeyHint':_0x385ef4(0x132),'enableAuth':_0x385ef4(0x135),'enableAuthHint':_0x385ef4(0x11e),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x385ef4(0x12f),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x385ef4(0x116),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x385ef4(0x13b),'sessionId':_0x385ef4(0x10d),'sessionIdDescription':_0x385ef4(0x123),'authorizationDescription':_0x385ef4(0x139),'configParameters':_0x385ef4(0x113),'maxRetries':_0x385ef4(0x124),'save':_0x385ef4(0x10f),'saving':'Saving...','note1':_0x385ef4(0x111),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x385ef4(0x12c),'configError':_0x385ef4(0x125),'apiApplyInfo':{'title':_0x385ef4(0x133),'description':_0x385ef4(0x126),'univerAiLabel':_0x385ef4(0x114),'getStarted':_0x385ef4(0x10e)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x385ef4(0x134),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x385ef4(0x117),'connecting':'Connecting...','connected':'Connected','failed':_0x385ef4(0x120),'retrying':_0x385ef4(0x12e)},'connectionError':{'unauthorized':_0x385ef4(0x110),'sessionOccupied':_0x385ef4(0x12d),'networkError':_0x385ef4(0x11c),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x385ef4(0x115)]=n;
1
+ 'use strict';const _0x39c1ad=_0x32f0;function _0x32f0(_0x3c1a3c,_0x1d92a8){_0x3c1a3c=_0x3c1a3c-0x86;const _0x488b0f=_0x488b();let _0x32f056=_0x488b0f[_0x3c1a3c];return _0x32f056;}(function(_0x183b6c,_0x2cbbef){const _0x5dbf32=_0x32f0,_0x54f791=_0x183b6c();while(!![]){try{const _0x8f6d52=parseInt(_0x5dbf32(0x90))/0x1+-parseInt(_0x5dbf32(0x9e))/0x2+-parseInt(_0x5dbf32(0x86))/0x3+parseInt(_0x5dbf32(0x95))/0x4+parseInt(_0x5dbf32(0x9b))/0x5+-parseInt(_0x5dbf32(0x97))/0x6+parseInt(_0x5dbf32(0x89))/0x7;if(_0x8f6d52===_0x2cbbef)break;else _0x54f791['push'](_0x54f791['shift']());}catch(_0x1dd007){_0x54f791['push'](_0x54f791['shift']());}}}(_0x488b,0xefe1f));const e={'mcpStatus':{'disconnected':_0x39c1ad(0xa0),'connecting':_0x39c1ad(0x88),'connected':_0x39c1ad(0xa9),'failed':_0x39c1ad(0xab),'retrying':_0x39c1ad(0xae),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x39c1ad(0xb5),'sessionOccupied':_0x39c1ad(0x96),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x39c1ad(0xb0),'clickToConnect':_0x39c1ad(0x92),'clickToConfigure':_0x39c1ad(0xb1)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x39c1ad(0xa2),'apiKey':_0x39c1ad(0x8b),'apiKeyPlaceholder':_0x39c1ad(0x8f),'apiKeyHint':_0x39c1ad(0xb8),'enableAuth':_0x39c1ad(0xa6),'enableAuthHint':_0x39c1ad(0xb4),'connectionInfo':_0x39c1ad(0xb6),'mcpClientConfig':_0x39c1ad(0xb6),'configInstructions':_0x39c1ad(0x87),'configStepTitle':_0x39c1ad(0xb3),'configStep1':_0x39c1ad(0x9f),'configStep2':_0x39c1ad(0xb7),'configStep3':_0x39c1ad(0x9d),'sessionId':_0x39c1ad(0xa1),'sessionIdDescription':_0x39c1ad(0x8e),'authorizationDescription':_0x39c1ad(0xaf),'configParameters':_0x39c1ad(0xad),'maxRetries':'Max\x20Retries','save':_0x39c1ad(0xb2),'saving':'Saving...','note1':_0x39c1ad(0x91),'note2':_0x39c1ad(0x99),'configSaved':_0x39c1ad(0x98),'configError':_0x39c1ad(0x8d),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x39c1ad(0xa4),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x39c1ad(0xaa),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x39c1ad(0x8c)},'connectionStatus':{'disconnected':_0x39c1ad(0x8a),'connecting':_0x39c1ad(0x94),'connected':_0x39c1ad(0xa8),'failed':_0x39c1ad(0xa5),'retrying':_0x39c1ad(0xa7)},'connectionError':{'unauthorized':_0x39c1ad(0x93),'sessionOccupied':_0x39c1ad(0x9a),'networkError':_0x39c1ad(0xac),'maxRetriesExceeded':_0x39c1ad(0x9c)}}},n=e;function _0x488b(){const _0x130026=['Connecting...','2093636ooqhOg','MCP:\x20Session\x20ID\x20Occupied','11239908cixmkp','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','7010760bffpGo','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','2634602ScRqeo','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Disconnected','Session\x20ID','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','exports','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Failed','Enable\x20Authentication','Retrying...','Connected','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Parameters:','MCP\x20Retrying...','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20configure\x20MCP','Save\x20Configuration','Configuration\x20Steps:','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','3616995gTrDdu','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connecting...','10464279lkqqsD','Disconnected','API\x20Key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enter\x20your\x20API\x20key','1958385Esdzug','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20connect\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key'];_0x488b=function(){return _0x130026;};return _0x488b();}module[_0x39c1ad(0xa3)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1681d0=_0x7f9e;(function(_0x4b5109,_0x27f4e9){const _0x3e1d41=_0x7f9e,_0x17e2de=_0x4b5109();while(!![]){try{const _0xeaf983=parseInt(_0x3e1d41(0x139))/0x1*(parseInt(_0x3e1d41(0x13e))/0x2)+-parseInt(_0x3e1d41(0x114))/0x3*(parseInt(_0x3e1d41(0x185))/0x4)+parseInt(_0x3e1d41(0x186))/0x5+parseInt(_0x3e1d41(0x183))/0x6+-parseInt(_0x3e1d41(0x19c))/0x7*(-parseInt(_0x3e1d41(0x19a))/0x8)+-parseInt(_0x3e1d41(0xf4))/0x9*(-parseInt(_0x3e1d41(0x1e4))/0xa)+-parseInt(_0x3e1d41(0x13c))/0xb;if(_0xeaf983===_0x27f4e9)break;else _0x17e2de['push'](_0x17e2de['shift']());}catch(_0x53ceb6){_0x17e2de['push'](_0x17e2de['shift']());}}}(_0x4c93,0xd6ff0));var Pe=Object[_0x1681d0(0x145)],Ee=(_0x35621a,_0x1c9b1f,_0x321651)=>_0x1c9b1f in _0x35621a?Pe(_0x35621a,_0x1c9b1f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x321651}):_0x35621a[_0x1c9b1f]=_0x321651,x=(_0x3125b2,_0x442363,_0x2b42d4)=>Ee(_0x3125b2,typeof _0x442363!='symbol'?_0x442363+'':_0x442363,_0x2b42d4);function _0x4c93(){const _0x4678cf=['118372SybaMQ','6868535SOvoiE','register','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','RETRYING','_config$','Max\x20Retries','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP\x20Client\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','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\x20AI\x20Console','univer-bg-red-500','defs','Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','API\x20密钥不能为空','点击配置\x20MCP','MCP\x20Connection\x20Failed','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','MCP\x20Connecting...','308496uynXGs','mcpConfig.title','203KgbQos','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','_initializeCommands','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcp-config-dialog','Enable\x20Authentication','MCP:\x20网络错误','on-line-icon','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','请输入您的\x20API\x20密钥','BUTTON','连接失败','push','Saving...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置步骤:','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-min-w-0\x20univer-flex-1','启用身份验证以获得安全连接','univer-text-blue-600','Success','点击连接\x20MCP','mcpConfig.connectionStatus.disconnected','MenuIcon','use','attrs','带有\x20Bearer\x20前缀的\x20API\x20密钥。','mcpStatus.unknown','show','validateApiKey','\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','Session\x20ID','Click\x20to\x20connect\x20MCP','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','CloseIcon','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.validation.invalidApiKey','__setCustomHeaders','forEach','https://console.univer.ai','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','setItem','What\x20is\x20API\x20Key?','noopener\x20noreferrer','univer-text-gray-500','_logService','_loading$','mcpStatus.sessionOccupied','_dialogService','Connected','mcpStatus.failed','几秒钟内获取您的\x20API\x20密钥','univer-space-y-4','showConfigPanel','mcpConfig.note1','_uiPartsService','currentColor','_initAutoConnect','Invalid\x20configuration','mcpConfig.saving','<SESSION_ID>','has','CONNECTING','getConfig','MCP\x20Unknown\x20Status','mask','mcpConfig.note2','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','未连接','univer-shrink-0\x20univer-text-blue-500','MCP\x20Retrying...','19330iTPBTI','_mcpCoreConfig$','_menuManagerService','mcpConfig.description','Click\x20to\x20configure\x20MCP','mcpConfig.apiKeyHint','http://www.w3.org/2000/svg','univer-text-xs\x20univer-text-gray-500','connectionError$','mcpConfig.connectionStatus.connected','_apiKey$','mcp.apiKey','MCP\x20Disconnected','<API_KEY>','超出最大重试次数,请稍后再试','重连中...','HEADER_MENU','MCP\x20已连接','fill','mcpConfig.configParameters','univer-bg-green-500','MCP:\x20会话\x20ID\x20已被占用','HelpIcon','MCP\x20配置','univerjs-icon\x20univerjs-icon-','mcpStatus.disconnected','path','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','1em','showDeveloperTools','OffLineIcon','round','apiKey','xlink:href','Connection\x20Failed','value','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','_componentManager','Save\x20Configuration','toString','assign','error','errorMessage','Connecting...','disposeWithMe','MCP\x20连接失败','tag','NONE','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','stringify','substring','0\x200\x2016\x2016','random','_localStorageService','close','mcpConfig.configSaved','getItem','MCP:\x20Network\x20Error','idSuffix','button','API\x20Key','SESSION_ID_OCCUPIED','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-bg-blue-500','MCP\x20Connected','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_initStatusComponent','_connectionController','pluginName','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','UniverIcon','div','map','setConfig','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-bg-gray-500','replace','Configuration\x20Parameters:','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','_registerComponent','FAILED','MCPConfigPanel','univer-flex\x20univer-items-center\x20univer-gap-2','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','MCP\x20连接中...','https://console.univer.plus','univer-size-4','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','entries','Configuration\x20saved\x20successfully','subscribeConfigValue$','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_createConfigPanelComponent','children','url(#on-line-icon_clip0_910_349)','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','mcpStatus.retrying','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','MCP:\x20超出最大重试次数','mcpConfig.connectionStatus.retrying','getOwnPropertyDescriptor','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer_session_id:','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','3141uxfSkb','_initConfigSync','_messageService','_config','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.connectionError.networkError','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpStatus.connected','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','mcpConfig.apiKeyPlaceholder','配置保存失败','univer-text-green-500','重启您的\x20MCP\x20客户端以使配置生效','defIds','mcpConfig.apiApplyInfo.getStarted','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','DISCONNECTED','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','COMMAND','open','add','Get\x20your\x20API\x20key\x20in\x20seconds','mcpServerUrl','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','close-icon','_loadStoredApiKey','MCP\x20客户端配置','Bearer\x20','univer-shrink-0\x20univer-text-red-500','getCurrentConfig','univer-mr-2\x20univer-flex\x20univer-text-xl','81oSkLAE','mcpConfig.configError','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.connectionError.sessionOccupied','NETWORK_ERROR','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','subscribe','_configService','\x20-\x20','mcpConfig.apiApplyInfo.univerAiLabel','removeItem','配置保存成功','mcpStatus.unauthorized','evenodd','会话ID','span','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20密钥无效,请检查密钥是否正确','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','warn','配置无效','https://mcp.univer.ai/mcp/?univer_session_id=','univer-size-2\x20univer-rounded-full','mcpConfig.configStepTitle','get','mcpConfig.validation.apiKeyTooShort','string','univer-text-xs\x20univer-text-gray-600','mcpConfig.sessionIdDescription','univer-text-sm\x20univer-text-gray-500','univer-space-y-3','将配置添加到您的\x20MCP\x20客户端设置文件中','url(#$1','trim','clipPath','white','next','593522xDIrbl','mcpConfig.apiApplyInfo.description','univer-text-white','29712100uVxdfW','mcpStatus.clickToConnect','4ygnrey','_localeService','displayName','MCP:\x20Unauthorized','Enter\x20your\x20API\x20key','MCP\x20Configuration','您的\x20API\x20密钥安全存储在本地存储中','defineProperty','univer-text-yellow-500','mcpConfig.connectionStatus.failed','启用身份验证','univer-space-y-5','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','_mcpConnectionController','univer-text-red-500','_handleConfigSave','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','UNAUTHORIZED','univer-flex\x20univer-items-center\x20univer-gap-3','mcpConfig.connectionInfo','_validateConfig','连接中...','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','Configuration\x20Notes:','none','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','on-line-icon_clip0_910_349','length','M0\x200H16V16H0z','includes','OnLineIcon','translate(.97)','mcpConfig.apiKey','colorChannel1','check-mark-icon','API\x20key\x20is\x20required','API\x20密钥长度至少需要\x2010\x20位','isValid','showStatus','Error','_injector','_commandService','配置更改将立即生效','onStarting','mcpStatus.maxRetriesExceeded','_initializeMenus','univer-font-medium','registerComponent','connectionStatus$','mcpStatus.networkError','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','mcpStatus.clickToConfigure','mcpConfig.connectionStatus.connecting','保存中...','svg','_handleConfigure','pre','univer-space-y-2','MCP\x20重连中...','univer-flex-1','您的\x20API\x20密钥将在此浏览器中本地存储','OTHERS','sessionId$','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Disconnected','CONNECTED','CheckMarkIcon','univer-flex\x20univer-items-start\x20univer-gap-3','最大重试次数','162414hWqhvX','univer.ai'];_0x4c93=function(){return _0x4678cf;};return _0x4c93();}import{LocaleService as _0x47faab,Inject as _0x299932,Injector as _0x4bc841,IConfigService as _0x565a2d,ILocalStorageService as _0x429692,ILogService as _0x1b4414,Disposable as _0x54c83b,CommandType as _0x5877f6,ICommandService as _0x19c6f9,DependentOn as _0x13d30f,Plugin as _0xf9d8dd,merge as _0x27bee6}from'@univerjs/core';import{jsxs as _0x2721d6,jsx as _0x3c3529}from'react/jsx-runtime';import{MCPConnectionStatus as _0x466718,MCPConnectionError as _0x501a8f,MCPConnectionController as _0x1423db,MCP_PLUGIN_CONFIG_KEY as _0x5866c4,UniverMCPPlugin as _0x5d3e04}from'@univerjs-pro/mcp';import{clsx as _0x18b9b4,Input as _0x4b0942,Button as _0x42f9b8,MessageType as _0xeb652a,Tooltip as _0x1b89e8}from'@univerjs/design';import{useDependency as _0x4d7014,useObservable as _0x4dd3cc,IUIPartsService as _0x1ec66f,IDialogService as _0x334f21,IMessageService as _0x1f1d7a,ComponentManager as _0x415279,connectInjector as _0xf88177,BuiltInUIPart as _0x591b87,MenuItemType as _0x145960,RibbonStartGroup as _0x264be0,IMenuManagerService as _0x586d6a}from'@univerjs/ui';import{BehaviorSubject as _0x40756f}from'rxjs';import{useRef as _0x53ab49,createElement as _0x19d727,forwardRef as _0xd80221,useState as _0x316cec,useCallback as _0x4c9118}from'react';import{ISocketService as _0x3d7dd1,WebSocketService as _0x573e0f}from'@univerjs/network';function b({ref:_0x16cb73,..._0x35f234}){const _0x5d7fb0=_0x1681d0,{icon:_0x4534a9,id:_0x17be55,className:_0x463c84,extend:_0x114f2b,..._0x32ad69}=_0x35f234,_0x4f6be2=(_0x5d7fb0(0x1fc)+_0x17be55+'\x20'+(_0x463c84||''))['trim'](),_0x39cf7a=_0x53ab49('_'+We());return ae(_0x4534a9,''+_0x17be55,{'defIds':_0x4534a9[_0x5d7fb0(0x101)],'idSuffix':_0x39cf7a['current']},{'ref':_0x16cb73,'className':_0x4f6be2,..._0x32ad69},_0x114f2b);}function ae(_0x31f228,_0x4e1429,_0x5054a9,_0xb327ed,_0x1f3dd8){const _0xd2d979=_0x1681d0;return _0x19d727(_0x31f228[_0xd2d979(0xb6)],{'key':_0x4e1429,...Ye(_0x31f228,_0x5054a9,_0x1f3dd8),..._0xb327ed},(Ze(_0x31f228,_0x5054a9)[_0xd2d979(0xe9)]||[])[_0xd2d979(0xd4)]((_0x475c99,_0x1ec0a3)=>ae(_0x475c99,_0x4e1429+'-'+_0x31f228[_0xd2d979(0xb6)]+'-'+_0x1ec0a3,_0x5054a9,void 0x0,_0x1f3dd8)));}function Ye(_0x994d1c,_0x377745,_0xb6cbb8){const _0x10dc0e=_0x1681d0,_0x42eee9={..._0x994d1c[_0x10dc0e(0x1b5)]};_0xb6cbb8!=null&&_0xb6cbb8[_0x10dc0e(0x15f)]&&_0x42eee9['fill']===_0x10dc0e(0x15f)&&(_0x42eee9[_0x10dc0e(0x1f6)]=_0xb6cbb8[_0x10dc0e(0x15f)]),_0x994d1c[_0x10dc0e(0xb6)]===_0x10dc0e(0x1de)&&_0x42eee9['id']&&(_0x42eee9['id']=_0x42eee9['id']+_0x377745[_0x10dc0e(0xc3)]),Object[_0x10dc0e(0xe4)](_0x42eee9)[_0x10dc0e(0x1c3)](([_0x3d1c5b,_0x23a7b5])=>{const _0x4d2ca4=_0x10dc0e;_0x3d1c5b===_0x4d2ca4(0x1de)&&typeof _0x23a7b5==_0x4d2ca4(0x12e)&&(_0x42eee9[_0x3d1c5b]=_0x23a7b5['replace'](/url\(#(.*)\)/,'url(#$1'+_0x377745[_0x4d2ca4(0xc3)]+')'));});const {defIds:_0x3afa06}=_0x377745;return!_0x3afa06||_0x3afa06[_0x10dc0e(0x159)]===0x0||(_0x994d1c['tag']===_0x10dc0e(0x1b4)&&_0x42eee9['xlink:href']&&(_0x42eee9[_0x10dc0e(0xa9)]=_0x42eee9[_0x10dc0e(0xa9)]+_0x377745[_0x10dc0e(0xc3)]),Object['entries'](_0x42eee9)[_0x10dc0e(0x1c3)](([_0x59ae3c,_0x14c63f])=>{const _0x305924=_0x10dc0e;typeof _0x14c63f=='string'&&(_0x42eee9[_0x59ae3c]=_0x14c63f[_0x305924(0xd8)](/url\(#(.*)\)/,_0x305924(0x134)+_0x377745[_0x305924(0xc3)]+')'));})),_0x42eee9;}function Ze(_0x50f272,_0x6841c4){const _0x1efb68=_0x1681d0;var _0x36e81b;const {defIds:_0x3dce54}=_0x6841c4;return!_0x3dce54||_0x3dce54[_0x1efb68(0x159)]===0x0?_0x50f272:_0x50f272[_0x1efb68(0xb6)]===_0x1efb68(0x192)&&((_0x36e81b=_0x50f272[_0x1efb68(0xe9)])!=null&&_0x36e81b[_0x1efb68(0x159)])?{..._0x50f272,'children':_0x50f272['children'][_0x1efb68(0xd4)](_0x23f0b5=>typeof _0x23f0b5['attrs']['id']==_0x1efb68(0x12e)&&_0x3dce54&&_0x3dce54[_0x1efb68(0x15b)](_0x23f0b5[_0x1efb68(0x1b5)]['id'])?{..._0x23f0b5,'attrs':{..._0x23f0b5['attrs'],'id':_0x23f0b5[_0x1efb68(0x1b5)]['id']+_0x6841c4[_0x1efb68(0xc3)]}}:_0x23f0b5)}:_0x50f272;}function We(){const _0x459624=_0x1681d0;return Math[_0x459624(0xbd)]()[_0x459624(0xaf)](0x24)[_0x459624(0xbb)](0x2,0x8);}b[_0x1681d0(0x140)]=_0x1681d0(0xd2);const qe={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1681d0(0x156),'viewBox':'0\x200\x2016\x2016','width':_0x1681d0(0x201),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x1681d0(0x1d5),'d':_0x1681d0(0x19d),'fillRule':_0x1681d0(0x121),'clipRule':_0x1681d0(0x121)}}]},le=_0xd80221(function(_0x7a1d93,_0x3f9e03){const _0x44b01c=_0x1681d0;return _0x19d727(b,Object[_0x44b01c(0xb0)]({},_0x7a1d93,{'id':_0x44b01c(0x160),'ref':_0x3f9e03,'icon':qe}));});le[_0x1681d0(0x140)]=_0x1681d0(0x180);const Xe={'tag':_0x1681d0(0x174),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1681d0(0x156),'viewBox':_0x1681d0(0xbc),'width':_0x1681d0(0x201),'height':_0x1681d0(0x201)},'children':[{'tag':_0x1681d0(0x1fe),'attrs':{'fill':'currentColor','d':_0x1681d0(0xe3)}}]},ue=_0xd80221(function(_0x206e26,_0x5ec509){const _0x74198f=_0x1681d0;return _0x19d727(b,Object['assign']({},_0x206e26,{'id':_0x74198f(0x10d),'ref':_0x5ec509,'icon':Xe}));});ue[_0x1681d0(0x140)]=_0x1681d0(0x1bf);const Je={'tag':_0x1681d0(0x174),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1681d0(0x156),'viewBox':_0x1681d0(0xbc),'width':'1em','height':_0x1681d0(0x201)},'children':[{'tag':_0x1681d0(0x1fe),'attrs':{'fill':_0x1681d0(0x1d5),'d':_0x1681d0(0xd1)}},{'tag':_0x1681d0(0x1fe),'attrs':{'fill':_0x1681d0(0x1d5),'d':_0x1681d0(0xac)}},{'tag':_0x1681d0(0x1fe),'attrs':{'fill':_0x1681d0(0x1d5),'d':_0x1681d0(0x126),'fillRule':'evenodd','clipRule':'evenodd'}}]},ve=_0xd80221(function(_0x5df54d,_0x24375e){return _0x19d727(b,Object['assign']({},_0x5df54d,{'id':'help-icon','ref':_0x24375e,'icon':Je}));});ve[_0x1681d0(0x140)]=_0x1681d0(0x1fa);const Qe={'tag':_0x1681d0(0x174),'attrs':{'xmlns':_0x1681d0(0x1ea),'fill':_0x1681d0(0x156),'viewBox':_0x1681d0(0xbc),'width':_0x1681d0(0x201),'height':_0x1681d0(0x201)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x1681d0(0x1d5),'d':_0x1681d0(0xdf),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1681d0(0x192),'attrs':{},'children':[{'tag':_0x1681d0(0x136),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x1681d0(0x1fe),'attrs':{'fill':_0x1681d0(0x137),'d':_0x1681d0(0x15a)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},de=_0xd80221(function(_0x782fbb,_0x53deee){return _0x19d727(b,Object['assign']({},_0x782fbb,{'id':'off-line-icon','ref':_0x53deee,'icon':Qe}));});de[_0x1681d0(0x140)]=_0x1681d0(0xa6);const en={'tag':_0x1681d0(0x174),'attrs':{'xmlns':_0x1681d0(0x1ea),'fill':_0x1681d0(0x156),'viewBox':'0\x200\x2017\x2016','width':_0x1681d0(0x201),'height':_0x1681d0(0x201)},'children':[{'tag':'g','attrs':{'clipPath':_0x1681d0(0xea)},'children':[{'tag':'path','attrs':{'stroke':_0x1681d0(0x1d5),'d':_0x1681d0(0x198),'strokeLinecap':'round','strokeLinejoin':_0x1681d0(0xa7),'strokeWidth':1.2}}]},{'tag':_0x1681d0(0x192),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x1681d0(0x158)},'children':[{'tag':'path','attrs':{'fill':_0x1681d0(0x137),'d':_0x1681d0(0x15a),'transform':_0x1681d0(0x15d)}}]}]}],'defIds':[_0x1681d0(0x158)]},ge=_0xd80221(function(_0x54d2cc,_0x5a5734){const _0x39ad8e=_0x1681d0;return _0x19d727(b,Object[_0x39ad8e(0xb0)]({},_0x54d2cc,{'id':_0x39ad8e(0x1a3),'ref':_0x5a5734,'icon':en}));});ge[_0x1681d0(0x140)]=_0x1681d0(0x15c);function nn(_0x2693cc){const _0x5b6ccb=_0x1681d0;var _0x581f76,_0x3d942e;const {mcpCoreConfig:_0x31ddcf,onSave:_0x3f5774,loading:_0x5a33c3=!0x1,config:_0x11adb0,connectionStatus$:_0x225cc9,connectionError$:_0x5aaae9,currentApiKey$:_0x156e07,currentSessionId$:_0x528b01}=_0x2693cc,_0x47836d=_0x4d7014(_0x47faab),_0x32d0e4=_0x4dd3cc(_0x225cc9,_0x466718[_0x5b6ccb(0x104)]),_0x1388cd=_0x4dd3cc(_0x5aaae9,_0x501a8f[_0x5b6ccb(0xb7)]),_0x706427=_0x4dd3cc(_0x528b01,''),_0x5a88fa=_0x4dd3cc(_0x156e07,''),[_0x59f021,_0x341573]=_0x316cec(_0x5a88fa||''),_0x143e40=!0x0,_0x36c0db=_0x11adb0['showDeveloperTools']&&_0x31ddcf[_0x5b6ccb(0x10a)]&&(_0x31ddcf['mcpServerUrl'][_0x5b6ccb(0x15b)]('univer.plus')||_0x31ddcf[_0x5b6ccb(0x10a)][_0x5b6ccb(0x15b)](_0x5b6ccb(0x184))),_0x353103=(_0x581f76=_0x31ddcf[_0x5b6ccb(0x10a)])==null?void 0x0:_0x581f76[_0x5b6ccb(0x15b)]('univer.plus'),_0x4cddbd=(_0x3d942e=_0x31ddcf[_0x5b6ccb(0x10a)])==null?void 0x0:_0x3d942e[_0x5b6ccb(0x15b)](_0x5b6ccb(0x184)),_0x177051=_0x353103?_0x5b6ccb(0xe1):_0x5b6ccb(0x1c4),_0x572eb7=_0x11adb0['showDeveloperTools']&&(_0x353103||_0x4cddbd),[_0x3ff4bd,_0x1440e6]=_0x316cec(!_0x59f021[_0x5b6ccb(0x135)]()),_0x3edbf3=(_0x147c2b,_0x44a93c)=>{const _0x1a2210=_0x5b6ccb;if(_0x44a93c===_0x501a8f[_0x1a2210(0x14f)])return _0x1a2210(0x1ff);switch(_0x147c2b){case _0x466718[_0x1a2210(0x17f)]:return _0x1a2210(0x1be);case _0x466718[_0x1a2210(0x1db)]:case _0x466718[_0x1a2210(0x189)]:return _0x1a2210(0x170);case _0x466718['FAILED']:return _0x1a2210(0x1ff);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x1cf86d=(_0x475b5c,_0x566bda)=>{const _0x1e5eb2=_0x5b6ccb;if(_0x566bda===_0x501a8f['UNAUTHORIZED'])return _0x1e5eb2(0x191);switch(_0x475b5c){case _0x466718[_0x1e5eb2(0x17f)]:return _0x1e5eb2(0x1f8);case _0x466718[_0x1e5eb2(0x1db)]:case _0x466718['RETRYING']:return _0x1e5eb2(0xc8);case _0x466718[_0x1e5eb2(0xdc)]:return _0x1e5eb2(0x191);default:return _0x1e5eb2(0xd7);}},_0x383990=_0x46adf1=>{const _0x3b0ea1=_0x5b6ccb;switch(_0x46adf1){case _0x466718[_0x3b0ea1(0x17f)]:return _0x47836d['t'](_0x3b0ea1(0x1ed));case _0x466718[_0x3b0ea1(0x1db)]:return _0x47836d['t'](_0x3b0ea1(0x172));case _0x466718[_0x3b0ea1(0xdc)]:return _0x47836d['t'](_0x3b0ea1(0x147));case _0x466718[_0x3b0ea1(0x189)]:return _0x47836d['t'](_0x3b0ea1(0xef));default:return _0x47836d['t'](_0x3b0ea1(0x1b2));}},_0x55c1fc=_0x3ec7d5=>{const _0x40da17=_0x5b6ccb;switch(_0x3ec7d5){case _0x501a8f[_0x40da17(0x14f)]:return _0x47836d['t']('mcpConfig.connectionError.unauthorized');case _0x501a8f[_0x40da17(0xc6)]:return _0x47836d['t'](_0x40da17(0x117));case _0x501a8f[_0x40da17(0x118)]:return _0x47836d['t'](_0x40da17(0xf9));case _0x501a8f['MAX_RETRIES_EXCEEDED']:return _0x47836d['t'](_0x40da17(0x116));default:return'';}},_0xdc40c=_0x4c9118(()=>{const _0x422c1f=_0x5b6ccb,_0x5568aa={..._0x31ddcf,'apiKey':_0x59f021[_0x422c1f(0x135)](),'enableAuth':_0x143e40};_0x3f5774(_0x5568aa);},[_0x31ddcf,_0x59f021,_0x143e40,_0x3f5774]),_0x568262=_0x59f021['trim']()[_0x5b6ccb(0x159)]>0x0;return _0x2721d6('div',{'className':_0x5b6ccb(0x17d),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x10b),'children':_0x2721d6('div',{'className':_0x5b6ccb(0x150),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xf3),'children':_0x3c3529(_0x5b6ccb(0x123),{'className':_0x5b6ccb(0x13b),'children':'⚙'})}),_0x3c3529(_0x5b6ccb(0xd3),{'children':_0x3c3529('p',{'className':_0x5b6ccb(0x131),'children':_0x47836d['t'](_0x5b6ccb(0x1e7))})})]})}),_0x2721d6('div',{'className':_0x5b6ccb(0xcb),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x18b9b4(_0x5b6ccb(0x1ac),_0x3edbf3(_0x32d0e4,_0x1388cd)),'children':_0x2721d6('div',{'className':_0x5b6ccb(0xde),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x18b9b4(_0x5b6ccb(0x12a),_0x1cf86d(_0x32d0e4,_0x1388cd))}),_0x3c3529(_0x5b6ccb(0x123),{'className':'univer-text-sm\x20univer-font-medium','children':_0x383990(_0x32d0e4)})]})}),_0x1388cd!==_0x501a8f[_0x5b6ccb(0xb7)]&&(_0x32d0e4===_0x466718[_0x5b6ccb(0xdc)]||_0x1388cd===_0x501a8f[_0x5b6ccb(0x14f)])&&_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x14e),'children':_0x2721d6(_0x5b6ccb(0xd3),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x3c3529(_0x5b6ccb(0x123),{'className':_0x5b6ccb(0x111),'children':'⚠️'}),_0x3c3529('p',{'className':_0x5b6ccb(0xe7),'children':_0x55c1fc(_0x1388cd)})]})})]}),_0x3c3529(_0x5b6ccb(0xd3),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x2721d6('div',{'className':_0x5b6ccb(0x149),'children':[_0x2721d6(_0x5b6ccb(0xd3),{'className':'univer-space-y-2','children':[_0x2721d6('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x3c3529(_0x5b6ccb(0x123),{'children':'🔑'}),'\x20',_0x47836d['t'](_0x5b6ccb(0x15e)),_0x3c3529(_0x5b6ccb(0x123),{'className':_0x5b6ccb(0x14c),'children':'*'}),_0x36c0db&&_0x3c3529('a',{'className':_0x5b6ccb(0xeb),'title':_0x47836d['t']('mcpConfig.apiApplyInfo.title'),'role':_0x5b6ccb(0xc4),'onClick':()=>_0x1440e6(!0x0),'children':_0x3c3529(ve,{})})]}),_0x3c3529(_0x4b0942,{'type':'text','placeholder':_0x47836d['t'](_0x5b6ccb(0xfd)),'value':_0x59f021,'disabled':_0x5a33c3,'autoComplete':'off','onChange':_0x341573}),_0x3c3529('p',{'className':_0x5b6ccb(0x1eb),'children':_0x47836d['t'](_0x5b6ccb(0x1e9))})]}),_0x36c0db&&_0x3ff4bd&&_0x2721d6('div',{'className':_0x5b6ccb(0x119),'children':[_0x3c3529('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':'button','onClick':()=>_0x1440e6(!0x1),'children':_0x3c3529(ue,{'className':_0x5b6ccb(0xe2)})}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x1e0),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xda),'children':_0x3c3529(_0x5b6ccb(0x123),{'className':_0x5b6ccb(0x1af),'children':'🚀'})}),_0x2721d6('div',{'className':_0x5b6ccb(0x179),'children':[_0x3c3529('h4',{'className':_0x5b6ccb(0x1c5),'children':_0x47836d['t']('mcpConfig.apiApplyInfo.title')}),_0x3c3529('p',{'className':_0x5b6ccb(0xd6),'children':_0x47836d['t'](_0x5b6ccb(0x13a))}),_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xca),'children':_0x572eb7&&_0x2721d6('a',{'className':_0x5b6ccb(0x18f),'href':_0x177051,'target':'_blank','rel':_0x5b6ccb(0x1c8),'children':[_0x3c3529('span',{'children':'🤖'}),_0x47836d['t'](_0x5b6ccb(0x11d)),_0x3c3529(_0x5b6ccb(0x123),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xd0),'children':['✨','\x20',_0x47836d['t'](_0x5b6ccb(0x102))]})]})]})]}),_0x11adb0[_0x5b6ccb(0x202)]&&_0x2721d6(_0x5b6ccb(0xd3),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x2721d6('h4',{'className':_0x5b6ccb(0xb9),'children':[_0x3c3529(_0x5b6ccb(0x123),{'children':'🔗'}),'\x20',_0x47836d['t'](_0x5b6ccb(0x151))]}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x1d1),'children':[_0x2721d6('div',{'className':_0x5b6ccb(0x132),'children':[_0x3c3529('p',{'className':_0x5b6ccb(0x12f),'children':_0x47836d['t']('mcpConfig.configInstructions')}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x177),'children':[_0x3c3529('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x47836d['t'](_0x5b6ccb(0x12b))}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x103),'children':[_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xde),'children':[_0x3c3529(_0x5b6ccb(0x123),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x47836d['t']('mcpConfig.configStep1')]}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xde),'children':[_0x3c3529(_0x5b6ccb(0x123),{'className':_0x5b6ccb(0x154),'children':'2'}),_0x47836d['t']('mcpConfig.configStep2')]}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xde),'children':[_0x3c3529(_0x5b6ccb(0x123),{'className':_0x5b6ccb(0x154),'children':'3'}),_0x47836d['t']('mcpConfig.configStep3')]})]})]})]}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x177),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x14a),'children':_0x5b6ccb(0x143)}),_0x3c3529('div',{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x3c3529(_0x5b6ccb(0x176),{'className':_0x5b6ccb(0xfa),'children':JSON[_0x5b6ccb(0xba)]({'mcpServers':{'univer':{'url':_0x5b6ccb(0x129)+(_0x706427||_0x5b6ccb(0x1d9)),'type':'http','headers':{'Authorization':_0x5b6ccb(0x110)+(_0x59f021||_0x5b6ccb(0x1f1))}}}},null,0x2)})})]}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x132),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x47836d['t'](_0x5b6ccb(0x1f7))}),_0x2721d6(_0x5b6ccb(0xd3),{'className':'univer-space-y-2','children':[_0x2721d6('div',{'className':_0x5b6ccb(0x181),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x1ad),'children':[_0x3c3529('div',{'className':_0x5b6ccb(0x1c0),'children':_0x5b6ccb(0xf2)}),_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x1eb),'children':_0x47836d['t'](_0x5b6ccb(0x130))})]})]}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x181),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xb8)}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x1ad),'children':[_0x3c3529('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'Authorization:'}),_0x3c3529(_0x5b6ccb(0xd3),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x47836d['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x3c3529(_0x42f9b8,{'onClick':_0xdc40c,'disabled':!_0x568262||_0x5a33c3,'className':_0x5b6ccb(0xfc),'children':_0x5a33c3?_0x2721d6(_0x5b6ccb(0x123),{'className':_0x5b6ccb(0xde),'children':[_0x3c3529(_0x5b6ccb(0x123),{'children':'⟲'}),_0x47836d['t'](_0x5b6ccb(0x1d8))]}):_0x2721d6('span',{'className':_0x5b6ccb(0xde),'children':[_0x3c3529(le,{}),_0x47836d['t']('mcpConfig.save')]})}),_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xc7),'children':_0x2721d6(_0x5b6ccb(0xd3),{'className':'univer-flex\x20univer-gap-3','children':[_0x3c3529(_0x5b6ccb(0x123),{'className':_0x5b6ccb(0x1e2),'children':'💡'}),_0x2721d6(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0xed),'children':[_0x3c3529(_0x5b6ccb(0xd3),{'className':_0x5b6ccb(0x16c),'children':_0x5b6ccb(0x155)}),_0x2721d6(_0x5b6ccb(0xd3),{'children':['•',_0x47836d['t'](_0x5b6ccb(0x1d3))]}),_0x2721d6(_0x5b6ccb(0xd3),{'children':['•',_0x47836d['t'](_0x5b6ccb(0x1df))]})]})]})})]})})]});}const y='mcp-ui.config',ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object['getOwnPropertyDescriptor'],tn=(_0x5d8db7,_0x29eca7,_0x23c7fd,_0x560403)=>{const _0x352a07=_0x1681d0;for(var _0x1eda90=_0x560403>0x1?void 0x0:_0x560403?rn(_0x29eca7,_0x23c7fd):_0x29eca7,_0x183af3=_0x5d8db7[_0x352a07(0x159)]-0x1,_0x4adb74;_0x183af3>=0x0;_0x183af3--)(_0x4adb74=_0x5d8db7[_0x183af3])&&(_0x1eda90=_0x4adb74(_0x1eda90)||_0x1eda90);return _0x1eda90;},d=(_0x54c3bd,_0x5852bf)=>(_0x58289c,_0x4f0f2d)=>_0x5852bf(_0x58289c,_0x4f0f2d,_0x54c3bd);const U=_0x1681d0(0x1ef),L=_0x1681d0(0x1a0);let I=class extends _0x54c83b{constructor(_0x7d2c39,_0x1f4559,_0x273a7d,_0x3ca06f,_0x253a77,_0xe01053,_0x3ff566,_0xc856cc,_0x3e7104,_0x51d659){const _0x183e0d=_0x1681d0;super(),x(this,_0x183e0d(0x1cb),new _0x40756f(!0x1)),x(this,'_mcpCoreConfig$',new _0x40756f({})),x(this,_0x183e0d(0x18a),new _0x40756f({})),x(this,_0x183e0d(0x1ee),new _0x40756f('')),x(this,_0x183e0d(0x14d),async _0x27da9f=>{const _0x589c2b=_0x183e0d;var _0x4830b9,_0x909c07;this['_loading$']['next'](!0x0);try{const _0x30e36d=await this['_validateConfig'](_0x27da9f);if(!_0x30e36d[_0x589c2b(0x163)]){this['_messageService'][_0x589c2b(0x1b8)]({'type':_0xeb652a[_0x589c2b(0x165)],'content':_0x30e36d[_0x589c2b(0xb2)]||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0x27da9f[_0x589c2b(0xa8)]?await this[_0x589c2b(0xbe)][_0x589c2b(0x1c6)](U,_0x27da9f[_0x589c2b(0xa8)]['trim']()):await this[_0x589c2b(0xbe)][_0x589c2b(0x11e)](U),this['_apiKey$'][_0x589c2b(0x138)](((_0x4830b9=_0x27da9f[_0x589c2b(0xa8)])==null?void 0x0:_0x4830b9[_0x589c2b(0x135)]())||''),this[_0x589c2b(0x14b)]['__setCustomHeaders']({'Authorization':_0x589c2b(0x110)+((_0x909c07=_0x27da9f['apiKey'])==null?void 0x0:_0x909c07[_0x589c2b(0x135)]())}),this['_messageService']['show']({'type':_0xeb652a[_0x589c2b(0x1b0)],'content':this['_localeService']['t'](_0x589c2b(0xc0))}),setTimeout(()=>{const _0x23575d=_0x589c2b;this[_0x23575d(0x1cd)][_0x23575d(0xbf)](L);},0x320);}catch(_0xe05b46){this[_0x589c2b(0x1ca)][_0x589c2b(0xb1)](_0x589c2b(0x18c),_0xe05b46),this[_0x589c2b(0xf6)]['show']({'type':_0xeb652a['Error'],'content':this[_0x589c2b(0x13f)]['t'](_0x589c2b(0x115))});}finally{this[_0x589c2b(0x1cb)]['next'](!0x1);}}),(this[_0x183e0d(0x166)]=_0x7d2c39,this['_uiPartsService']=_0x1f4559,this[_0x183e0d(0x11b)]=_0x273a7d,this[_0x183e0d(0xbe)]=_0x3ca06f,this[_0x183e0d(0x1cd)]=_0x253a77,this['_messageService']=_0xe01053,this[_0x183e0d(0xad)]=_0x3ff566,this[_0x183e0d(0x13f)]=_0xc856cc,this[_0x183e0d(0x1ca)]=_0x3e7104,this[_0x183e0d(0x14b)]=_0x51d659,this[_0x183e0d(0xf5)](),this[_0x183e0d(0x10e)](),this[_0x183e0d(0xdb)]());}['showConfigPanel'](){const _0x134aa7=_0x1681d0,_0x2ecb24=this['_configService'][_0x134aa7(0x1dc)](y);_0x2ecb24!=null&&_0x2ecb24[_0x134aa7(0x202)]&&this[_0x134aa7(0x1cd)][_0x134aa7(0x107)]({'id':L,'title':{'title':this[_0x134aa7(0x13f)]['t'](_0x134aa7(0x19b))},'children':{'label':_0x134aa7(0xdd)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x57dc00=_0x134aa7;this[_0x57dc00(0x1cd)]['close'](L);}});}[_0x1681d0(0x112)](){const _0x19374d=_0x1681d0;return this[_0x19374d(0x1e5)][_0x19374d(0xab)];}[_0x1681d0(0xdb)](){const _0x1e5185=_0x1681d0;this[_0x1e5185(0xb4)](this[_0x1e5185(0xad)][_0x1e5185(0x187)](_0x1e5185(0xdd),this[_0x1e5185(0xe8)]()));}[_0x1681d0(0xe8)](){const _0x250b60=_0x1681d0;return _0xf88177(()=>{const _0x5f531b=_0x7f9e;var _0x3939de,_0x59ba86,_0x7b78b0;return _0x3c3529(nn,{'config':this['_config$'][_0x5f531b(0xab)],'mcpCoreConfig':this[_0x5f531b(0x1e5)]['value'],'currentApiKey$':this[_0x5f531b(0x1ee)],'onSave':this['_handleConfigSave'],'loading':this[_0x5f531b(0x1cb)]['value'],'connectionStatus$':(_0x3939de=this['_mcpConnectionController'])==null?void 0x0:_0x3939de[_0x5f531b(0x16e)],'connectionError$':(_0x59ba86=this['_mcpConnectionController'])==null?void 0x0:_0x59ba86[_0x5f531b(0x1ec)],'currentSessionId$':(_0x7b78b0=this[_0x5f531b(0x14b)])==null?void 0x0:_0x7b78b0[_0x5f531b(0x17c)]});},this[_0x250b60(0x166)]);}['_initConfigSync'](){const _0x27ab4e=_0x1681d0;this[_0x27ab4e(0xb4)](this['_configService'][_0x27ab4e(0xe6)](_0x5866c4)[_0x27ab4e(0x11a)](_0x2b87a4=>{const _0x1e0f99=_0x27ab4e;this[_0x1e0f99(0x1e5)][_0x1e0f99(0x138)](_0x2b87a4||{});}));const _0x19238b=this[_0x27ab4e(0x11b)]['getConfig'](_0x5866c4);this[_0x27ab4e(0x1e5)][_0x27ab4e(0x138)](_0x19238b||{}),this[_0x27ab4e(0xb4)](this[_0x27ab4e(0x11b)][_0x27ab4e(0xe6)](y)[_0x27ab4e(0x11a)](_0x5b747b=>{const _0x519292=_0x27ab4e;this['_config$'][_0x519292(0x138)](_0x5b747b||{});}));const _0x279e25=this[_0x27ab4e(0x11b)][_0x27ab4e(0x1dc)](y);this['_config$']['next'](_0x279e25||{});}async[_0x1681d0(0x10e)](){const _0x59c4f2=_0x1681d0,_0x31482a=this[_0x59c4f2(0x11b)]['getConfig'](y);if(!(_0x31482a!=null&&_0x31482a[_0x59c4f2(0x202)]))return;const _0x171eec=await this[_0x59c4f2(0xbe)][_0x59c4f2(0xc1)](U);_0x171eec&&(this['_mcpConnectionController'][_0x59c4f2(0x1c2)]({'Authorization':_0x59c4f2(0x110)+_0x171eec}),this[_0x59c4f2(0x1ee)][_0x59c4f2(0x138)](_0x171eec));}async[_0x1681d0(0x152)](_0x54e321){const _0x469190=_0x1681d0;if(!_0x54e321[_0x469190(0xa8)]||_0x54e321[_0x469190(0xa8)]['trim']()[_0x469190(0x159)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x469190(0x13f)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x54e321[_0x469190(0xa8)][_0x469190(0x135)]()[_0x469190(0x159)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x469190(0x13f)]['t'](_0x469190(0x12d))};try{const _0x5a122c=await this[_0x469190(0x166)][_0x469190(0x12c)](_0x1423db)[_0x469190(0x1b9)](_0x54e321['apiKey'][_0x469190(0x135)]());return _0x5a122c[_0x469190(0x163)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x5a122c[_0x469190(0xb1)]||this['_localeService']['t'](_0x469190(0x1c1))};}catch(_0x2bbd63){return console[_0x469190(0x127)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x2bbd63),{'isValid':!0x0};}}};I=tn([d(0x0,_0x299932(_0x4bc841)),d(0x1,_0x1ec66f),d(0x2,_0x565a2d),d(0x3,_0x429692),d(0x4,_0x334f21),d(0x5,_0x1f1d7a),d(0x6,_0x299932(_0x415279)),d(0x7,_0x299932(_0x47faab)),d(0x8,_0x1b4414),d(0x9,_0x299932(_0x1423db))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x5877f6[_0x1681d0(0x106)],'handler':async(_0x22872e,_0x25566f)=>(_0x22872e[_0x1681d0(0x12c)](I)['showConfigPanel'](),!0x0)};function pe(_0x222ae8,_0x533094){const _0x1256d8=_0x1681d0;switch(_0x222ae8){case _0x466718[_0x1256d8(0x104)]:return _0x1256d8(0x1fd);case _0x466718['CONNECTING']:return'mcpStatus.connecting';case _0x466718[_0x1256d8(0x17f)]:return _0x1256d8(0xfb);case _0x466718['FAILED']:switch(_0x533094){case _0x501a8f[_0x1256d8(0x14f)]:return _0x1256d8(0x120);case _0x501a8f[_0x1256d8(0xc6)]:return _0x1256d8(0x1cc);case _0x501a8f[_0x1256d8(0x118)]:return _0x1256d8(0x16f);case _0x501a8f['MAX_RETRIES_EXCEEDED']:return _0x1256d8(0x16a);default:return _0x1256d8(0x1cf);}case _0x466718['RETRYING']:return _0x1256d8(0xec);default:return _0x1256d8(0x1b7);}}function on(_0x434dae,_0x3887cb,_0x32b460,_0x77aa0b=!0x0){const _0x57924d=_0x1681d0,_0x2de79d=pe(_0x434dae,_0x3887cb),_0x2139bd=_0x32b460['t'](_0x2de79d);return _0x77aa0b?_0x434dae===_0x466718[_0x57924d(0x104)]&&_0x3887cb===_0x501a8f['UNAUTHORIZED']?_0x2139bd+_0x57924d(0x11c)+_0x32b460['t'](_0x57924d(0x171)):_0x434dae===_0x466718['CONNECTED']?''+_0x2139bd:_0x434dae===_0x466718['DISCONNECTED']||_0x434dae===_0x466718[_0x57924d(0xdc)]?_0x2139bd+_0x57924d(0x11c)+_0x32b460['t'](_0x57924d(0x13d)):_0x2139bd:_0x2139bd;}function sn(_0x3780dd){const _0x3183c4=_0x1681d0;switch(_0x3780dd){case _0x466718['CONNECTED']:return _0x3183c4(0xff);case _0x466718[_0x3183c4(0x1db)]:case _0x466718[_0x3183c4(0x189)]:return _0x3183c4(0x146);case _0x466718[_0x3183c4(0xdc)]:case _0x466718[_0x3183c4(0x104)]:return _0x3183c4(0x14c);default:return _0x3183c4(0x1c9);}}function cn(_0x45f876){const _0x10c149=_0x1681d0,{status$:_0x1f7c75,error$:_0x1ebe15,onConfigure:_0x1d3577,showClickable:_0x37ef04=!0x0}=_0x45f876,_0x2e5492=_0x4dd3cc(_0x1f7c75,_0x466718[_0x10c149(0x104)]),_0x33ed66=_0x4dd3cc(_0x1ebe15,_0x501a8f[_0x10c149(0xb7)]),_0x154251=_0x4d7014(_0x47faab),_0x5a2e3b=_0x2e5492===_0x466718[_0x10c149(0x17f)];_0x2e5492===_0x466718['CONNECTING']||_0x466718[_0x10c149(0x189)];const _0x5d7746=_0x154251['t'](pe(_0x2e5492,_0x33ed66)),_0x51f007=on(_0x2e5492,_0x33ed66,_0x154251,_0x37ef04),_0x274f3c=sn(_0x2e5492),_0x354e91=_0x5a2e3b?_0x3c3529(ge,{}):_0x3c3529(de,{}),_0x3d5d94=_0x4c9118(()=>{_0x37ef04&&_0x1d3577&&_0x1d3577();},[_0x37ef04,_0x1d3577]);function _0xe705b(){const _0x51b069=_0x10c149;return _0x2721d6(_0x51b069(0xd3),{'className':_0x18b9b4('univer-flex\x20univer-items-center',_0x37ef04&&_0x1d3577&&_0x51b069(0x1ba)),'role':_0x51b069(0xc4),'onClick':_0x37ef04&&_0x1d3577?_0x3d5d94:void 0x0,'children':[_0x3c3529(_0x51b069(0xd3),{'className':_0x18b9b4(_0x51b069(0x113),_0x274f3c),'children':_0x354e91}),_0x3c3529(_0x51b069(0xd3),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x5d7746})]});}return _0x3c3529(_0x1b89e8,{'title':_0x51f007,'placement':'bottom','children':_0xe705b()});}function _0x7f9e(_0x30aae2,_0x508583){_0x30aae2=_0x30aae2-0xa6;const _0x4c93c8=_0x4c93();let _0x7f9e6b=_0x4c93c8[_0x30aae2];return _0x7f9e6b;}var an=Object['getOwnPropertyDescriptor'],ln=(_0x4f6eda,_0x5de69b,_0x55f768,_0x475513)=>{const _0x49da6f=_0x1681d0;for(var _0x226160=_0x475513>0x1?void 0x0:_0x475513?an(_0x5de69b,_0x55f768):_0x5de69b,_0x43d2cf=_0x4f6eda[_0x49da6f(0x159)]-0x1,_0x54e3f2;_0x43d2cf>=0x0;_0x43d2cf--)(_0x54e3f2=_0x4f6eda[_0x43d2cf])&&(_0x226160=_0x54e3f2(_0x226160)||_0x226160);return _0x226160;},M=(_0x589672,_0x1ff97f)=>(_0x38be7a,_0x5c9395)=>_0x1ff97f(_0x38be7a,_0x5c9395,_0x589672);let O=class extends _0x54c83b{constructor(_0x5ec192,_0x55a3e9,_0x527656,_0x39aada){const _0x336cbc=_0x1681d0;super(),this['_injector']=_0x5ec192,this['_connectionController']=_0x55a3e9,this[_0x336cbc(0x1d4)]=_0x527656,this[_0x336cbc(0x11b)]=_0x39aada,this[_0x336cbc(0x1d6)](),this[_0x336cbc(0xcd)]();}[_0x1681d0(0x1d6)](){const _0x16f90d=_0x1681d0,_0xa69a28=this[_0x16f90d(0x11b)][_0x16f90d(0x1dc)](y);_0xa69a28!=null&&_0xa69a28[_0x16f90d(0x202)]&&(this['_connectionController']['enableAutoConnect']=!0x1);}[_0x1681d0(0xcd)](){const _0x2b135f=_0x1681d0,_0x41d8c9=this['_configService'][_0x2b135f(0x1dc)](y);(_0x41d8c9==null?void 0x0:_0x41d8c9[_0x2b135f(0x164)])!==!0x1&&this[_0x2b135f(0xb4)](this['_uiPartsService'][_0x2b135f(0x16d)](_0x591b87[_0x2b135f(0x1f4)],()=>{const _0x26ccc4=_0x2b135f;var _0x1ed87c;return _0xf88177(un({'status$':this[_0x26ccc4(0xce)][_0x26ccc4(0x16e)],'error$':this[_0x26ccc4(0xce)][_0x26ccc4(0x1ec)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x1ed87c=_0x41d8c9==null?void 0x0:_0x41d8c9[_0x26ccc4(0x202)])!=null?_0x1ed87c:!0x1}),this[_0x26ccc4(0x166)]);}));}[_0x1681d0(0x175)](){const _0x54ff87=_0x1681d0;this['_injector'][_0x54ff87(0x12c)](I)[_0x54ff87(0x1d2)]();}};O=ln([M(0x0,_0x299932(_0x4bc841)),M(0x1,_0x299932(_0x1423db)),M(0x2,_0x1ec66f),M(0x3,_0x565a2d)],O);function un(_0x235951){const {status$:_0x412919,error$:_0x2695b2,onConfigure:_0x52dca6,showClickable:_0x4b4025}=_0x235951;return function(){return _0x3c3529(cn,{'status$':_0x412919,'error$':_0x2695b2,'onConfigure':_0x52dca6,'showClickable':_0x4b4025});};}function vn(_0x15df22){const _0x4219c9=_0x1681d0;return{'id':V['id'],'type':_0x145960[_0x4219c9(0x1a6)],'icon':_0x4219c9(0x1b3),'title':_0x4219c9(0x19b),'tooltip':_0x4219c9(0x19b)};}const dn={[_0x264be0[_0x1681d0(0x17b)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object['getOwnPropertyDescriptor'],pn=(_0x27cf05,_0x5cee05,_0x2941ec,_0x478a44)=>{const _0x332dca=_0x1681d0;for(var _0xbde8ec=_0x478a44>0x1?void 0x0:_0x478a44?gn(_0x5cee05,_0x2941ec):_0x5cee05,_0x543606=_0x27cf05[_0x332dca(0x159)]-0x1,_0x44d338;_0x543606>=0x0;_0x543606--)(_0x44d338=_0x27cf05[_0x543606])&&(_0xbde8ec=_0x44d338(_0xbde8ec)||_0xbde8ec);return _0xbde8ec;},re=(_0x2299c8,_0xf0c965)=>(_0x540523,_0x1f41bf)=>_0xf0c965(_0x540523,_0x1f41bf,_0x2299c8);let D=class extends _0x54c83b{constructor(_0x52a59d,_0x2003d0){const _0x5084cd=_0x1681d0;super(),this[_0x5084cd(0x167)]=_0x52a59d,this['_menuManagerService']=_0x2003d0,this[_0x5084cd(0x19e)](),this['_initializeMenus']();}[_0x1681d0(0x19e)](){[V]['forEach'](_0x463e8c=>{const _0x2eb458=_0x7f9e;this[_0x2eb458(0xb4)](this[_0x2eb458(0x167)]['registerCommand'](_0x463e8c));});}[_0x1681d0(0x16b)](){const _0x2619b5=_0x1681d0;this[_0x2619b5(0x1e6)]['mergeMenu'](dn);}};D=pn([re(0x0,_0x19c6f9),re(0x1,_0x586d6a)],D);const Mn={'mcpStatus':{'disconnected':_0x1681d0(0x1f0),'connecting':_0x1681d0(0x199),'connected':_0x1681d0(0xc9),'failed':_0x1681d0(0x197),'retrying':_0x1681d0(0x1e3),'unknown':_0x1681d0(0x1dd),'unauthorized':_0x1681d0(0x141),'sessionOccupied':_0x1681d0(0x18e),'networkError':_0x1681d0(0xc2),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x1681d0(0x1bc),'clickToConfigure':_0x1681d0(0x1e8)},'mcpConfig':{'title':_0x1681d0(0x143),'description':_0x1681d0(0x1a4),'apiKey':_0x1681d0(0xc5),'apiKeyPlaceholder':_0x1681d0(0x142),'apiKeyHint':_0x1681d0(0xf8),'enableAuth':_0x1681d0(0x1a1),'enableAuthHint':_0x1681d0(0x194),'connectionInfo':_0x1681d0(0x18d),'mcpClientConfig':_0x1681d0(0x18d),'configInstructions':_0x1681d0(0x157),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x1681d0(0x1bb),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x1681d0(0xd9),'maxRetries':_0x1681d0(0x18b),'save':_0x1681d0(0xae),'saving':_0x1681d0(0x1a9),'note1':_0x1681d0(0xcc),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x1681d0(0xe5),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x1681d0(0x1c7),'description':_0x1681d0(0x200),'univerAiLabel':_0x1681d0(0x190),'getStarted':_0x1681d0(0x109)},'validation':{'apiKeyRequired':_0x1681d0(0x161),'apiKeyTooShort':_0x1681d0(0x188),'invalidConfig':_0x1681d0(0x1d7),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x1681d0(0x17e),'connecting':_0x1681d0(0xb3),'connected':_0x1681d0(0x1ce),'failed':_0x1681d0(0xaa),'retrying':_0x1681d0(0x193)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1681d0(0x124),'networkError':_0x1681d0(0xf1),'maxRetriesExceeded':_0x1681d0(0x105)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x1681d0(0xe0),'connected':_0x1681d0(0x1f5),'failed':_0x1681d0(0xb5),'retrying':_0x1681d0(0x178),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x1681d0(0x1f9),'networkError':_0x1681d0(0x1a2),'maxRetriesExceeded':_0x1681d0(0xee),'clickToConnect':_0x1681d0(0x1b1),'clickToConfigure':_0x1681d0(0x196)},'mcpConfig':{'title':_0x1681d0(0x1fb),'description':_0x1681d0(0x19f),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x1681d0(0x1a5),'apiKeyHint':_0x1681d0(0x17a),'enableAuth':_0x1681d0(0x148),'enableAuthHint':_0x1681d0(0x1ae),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x1681d0(0x10f),'configInstructions':_0x1681d0(0x1bd),'configStepTitle':_0x1681d0(0x1ab),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x1681d0(0x133),'configStep3':_0x1681d0(0x100),'sessionId':_0x1681d0(0x122),'sessionIdDescription':_0x1681d0(0x1aa),'authorizationDescription':_0x1681d0(0x1b6),'configParameters':'配置参数:','maxRetries':_0x1681d0(0x182),'save':'保存配置','saving':_0x1681d0(0x173),'note1':_0x1681d0(0x168),'note2':_0x1681d0(0x144),'configSaved':_0x1681d0(0x11f),'configError':_0x1681d0(0xfe),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x1681d0(0x10c),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x1681d0(0x1d0)},'validation':{'apiKeyRequired':_0x1681d0(0x195),'apiKeyTooShort':_0x1681d0(0x162),'invalidConfig':_0x1681d0(0x128),'invalidApiKey':_0x1681d0(0x125)},'connectionStatus':{'disconnected':_0x1681d0(0x1e1),'connecting':_0x1681d0(0x153),'connected':'已连接','failed':_0x1681d0(0x1a7),'retrying':_0x1681d0(0x1f3)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x1681d0(0x1f2)}}};var fn=Object[_0x1681d0(0x145)],hn=Object[_0x1681d0(0xf0)],Cn=(_0x344592,_0xa0bdfe,_0x1935bf)=>_0xa0bdfe in _0x344592?fn(_0x344592,_0xa0bdfe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1935bf}):_0x344592[_0xa0bdfe]=_0x1935bf,mn=(_0x360ebb,_0x12a6d3,_0x2f5f48,_0x57205a)=>{const _0xe91b38=_0x1681d0;for(var _0x450d0e=_0x57205a>0x1?void 0x0:_0x57205a?hn(_0x12a6d3,_0x2f5f48):_0x12a6d3,_0x172965=_0x360ebb[_0xe91b38(0x159)]-0x1,_0x47b3e7;_0x172965>=0x0;_0x172965--)(_0x47b3e7=_0x360ebb[_0x172965])&&(_0x450d0e=_0x47b3e7(_0x450d0e)||_0x450d0e);return _0x450d0e;},P=(_0x280311,_0x1cf1b5)=>(_0x21fe3e,_0x4352a1)=>_0x1cf1b5(_0x21fe3e,_0x4352a1,_0x280311),_n=(_0x231417,_0x1b3a0f,_0x2b2908)=>Cn(_0x231417,_0x1b3a0f+'',_0x2b2908);let j=class extends _0xf9d8dd{constructor(_0x1e09d7=ie,_0x23d5e8,_0xff6786,_0x35651a,_0x5a7fc1,_0x364d7a){const _0x4ec11b=_0x1681d0;super(),this['_config']=_0x1e09d7,this[_0x4ec11b(0x166)]=_0x23d5e8,this[_0x4ec11b(0x11b)]=_0xff6786,this[_0x4ec11b(0x1d4)]=_0x35651a,this['_localStorageService']=_0x5a7fc1,this[_0x4ec11b(0x13f)]=_0x364d7a;const {..._0x489189}=_0x27bee6({},ie,this[_0x4ec11b(0xf7)]);this['_configService'][_0x4ec11b(0xd5)](y,_0x489189);}async[_0x1681d0(0x169)](){const _0x262ffe=_0x1681d0,_0x6545b9=[[O],[I],[D]];this[_0x262ffe(0x166)][_0x262ffe(0x1da)](_0x3d7dd1)||_0x6545b9[_0x262ffe(0x1a8)]([_0x3d7dd1,{'useClass':_0x573e0f}]),_0x6545b9[_0x262ffe(0x1c3)](_0x35a052=>this[_0x262ffe(0x166)][_0x262ffe(0x108)](_0x35a052)),this[_0x262ffe(0x166)][_0x262ffe(0x12c)](O),this[_0x262ffe(0x166)][_0x262ffe(0x12c)](I),this[_0x262ffe(0x166)][_0x262ffe(0x12c)](D);}};_n(j,_0x1681d0(0xcf),'MCP_UI_PLUGIN'),j=mn([_0x13d30f(_0x5d3e04),P(0x1,_0x299932(_0x4bc841)),P(0x2,_0x565a2d),P(0x3,_0x1ec66f),P(0x4,_0x429692),P(0x5,_0x299932(_0x47faab))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
1
+ const _0x3d1f73=_0x1a3e;(function(_0x353957,_0x1279a3){const _0x36a1d9=_0x1a3e,_0x5030f8=_0x353957();while(!![]){try{const _0x5254ff=-parseInt(_0x36a1d9(0x27b))/0x1*(-parseInt(_0x36a1d9(0x235))/0x2)+-parseInt(_0x36a1d9(0x17b))/0x3*(-parseInt(_0x36a1d9(0x1fb))/0x4)+-parseInt(_0x36a1d9(0x230))/0x5+-parseInt(_0x36a1d9(0x1bd))/0x6+parseInt(_0x36a1d9(0x224))/0x7*(-parseInt(_0x36a1d9(0x24b))/0x8)+-parseInt(_0x36a1d9(0x1ac))/0x9*(-parseInt(_0x36a1d9(0x247))/0xa)+parseInt(_0x36a1d9(0x1ec))/0xb;if(_0x5254ff===_0x1279a3)break;else _0x5030f8['push'](_0x5030f8['shift']());}catch(_0x250d6c){_0x5030f8['push'](_0x5030f8['shift']());}}}(_0x4331,0x6c9ab));var Pe=Object['defineProperty'],Ee=(_0x7f2a3e,_0x546c66,_0x558ea7)=>_0x546c66 in _0x7f2a3e?Pe(_0x7f2a3e,_0x546c66,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x558ea7}):_0x7f2a3e[_0x546c66]=_0x558ea7,x=(_0x3f8e5a,_0x384ffd,_0x588a1c)=>Ee(_0x3f8e5a,typeof _0x384ffd!=_0x3d1f73(0x250)?_0x384ffd+'':_0x384ffd,_0x588a1c);import{LocaleService as _0x59138c,Inject as _0x239ee7,Injector as _0x53009c,Disposable as _0x2a5236,IConfigService as _0x47eded,ILocalStorageService as _0x8ee795,ILogService as _0x4b764d,CommandType as _0xf974da,ICommandService as _0x17a58e,DependentOn as _0x3951f0,Plugin as _0x5bf17b,merge as _0x2d62e4}from'@univerjs/core';import{jsxs as _0x4b442f,jsx as _0x20a6ac}from'react/jsx-runtime';import{MCPConnectionStatus as _0x291e3f,MCPConnectionError as _0x19f996,MCPConnectionController as _0x5bc65c,MCP_PLUGIN_CONFIG_KEY as _0x3d4e37,UniverMCPPlugin as _0x38e135}from'@univerjs-pro/mcp';import{clsx as _0x52a931,Input as _0x55acfd,Button as _0x553381,MessageType as _0x1f5a43,Tooltip as _0x47833d}from'@univerjs/design';import{useDependency as _0x1671ca,useObservable as _0x1d42f3,ComponentManager as _0x2f2c61,connectInjector as _0x2e489a,IUIPartsService as _0x436320,IDialogService as _0x41daf9,IMessageService as _0x5d1b2b,BuiltInUIPart as _0x5cc78a,MenuItemType as _0xc76b71,RibbonStartGroup as _0x47099c,IMenuManagerService as _0x10488c}from'@univerjs/ui';import{BehaviorSubject as _0x109788}from'rxjs';import{useRef as _0x4f5dd4,createElement as _0x17eed1,forwardRef as _0x8d23ab,useState as _0x2889e0,useCallback as _0x2be0fd}from'react';import{ISocketService as _0x33978c,WebSocketService as _0x15ecd1}from'@univerjs/network';function b({ref:_0xfc59b5,..._0x42cefd}){const _0x5137e4=_0x3d1f73,{icon:_0x5813bd,id:_0x1e084f,className:_0x48ab86,extend:_0x22d72c,..._0x48cc21}=_0x42cefd,_0x45c966=(_0x5137e4(0x201)+_0x1e084f+'\x20'+(_0x48ab86||''))[_0x5137e4(0x1e8)](),_0x18cc15=_0x4f5dd4('_'+We());return ae(_0x5813bd,''+_0x1e084f,{'defIds':_0x5813bd[_0x5137e4(0x1dc)],'idSuffix':_0x18cc15[_0x5137e4(0x282)]},{'ref':_0xfc59b5,'className':_0x45c966,..._0x48cc21},_0x22d72c);}function ae(_0x59dc7d,_0xd13404,_0x19183c,_0x5b883f,_0x25926b){const _0x1cf8f0=_0x3d1f73;return _0x17eed1(_0x59dc7d['tag'],{'key':_0xd13404,...Ye(_0x59dc7d,_0x19183c,_0x25926b),..._0x5b883f},(Ze(_0x59dc7d,_0x19183c)['children']||[])[_0x1cf8f0(0x25f)]((_0x110942,_0x3d23d9)=>ae(_0x110942,_0xd13404+'-'+_0x59dc7d[_0x1cf8f0(0x1d6)]+'-'+_0x3d23d9,_0x19183c,void 0x0,_0x25926b)));}function Ye(_0x41f14a,_0xe353f9,_0x3f7cbf){const _0xebfe55=_0x3d1f73,_0x5342fd={..._0x41f14a[_0xebfe55(0x1d5)]};_0x3f7cbf!=null&&_0x3f7cbf[_0xebfe55(0x21f)]&&_0x5342fd['fill']===_0xebfe55(0x21f)&&(_0x5342fd[_0xebfe55(0x1af)]=_0x3f7cbf['colorChannel1']),_0x41f14a[_0xebfe55(0x1d6)]==='mask'&&_0x5342fd['id']&&(_0x5342fd['id']=_0x5342fd['id']+_0xe353f9[_0xebfe55(0x1b4)]),Object[_0xebfe55(0x23a)](_0x5342fd)[_0xebfe55(0x182)](([_0x4d82f1,_0x1a110a])=>{const _0x38d387=_0xebfe55;_0x4d82f1===_0x38d387(0x192)&&typeof _0x1a110a==_0x38d387(0x243)&&(_0x5342fd[_0x4d82f1]=_0x1a110a['replace'](/url\(#(.*)\)/,_0x38d387(0x295)+_0xe353f9[_0x38d387(0x1b4)]+')'));});const {defIds:_0x1a64ab}=_0xe353f9;return!_0x1a64ab||_0x1a64ab[_0xebfe55(0x2b5)]===0x0||(_0x41f14a[_0xebfe55(0x1d6)]==='use'&&_0x5342fd[_0xebfe55(0x195)]&&(_0x5342fd[_0xebfe55(0x195)]=_0x5342fd['xlink:href']+_0xe353f9[_0xebfe55(0x1b4)]),Object[_0xebfe55(0x23a)](_0x5342fd)[_0xebfe55(0x182)](([_0xce46c8,_0x4769f2])=>{const _0x411de1=_0xebfe55;typeof _0x4769f2==_0x411de1(0x243)&&(_0x5342fd[_0xce46c8]=_0x4769f2[_0x411de1(0x1e1)](/url\(#(.*)\)/,'url(#$1'+_0xe353f9[_0x411de1(0x1b4)]+')'));})),_0x5342fd;}function Ze(_0xde389a,_0x41b40b){const _0x1c7d28=_0x3d1f73;var _0xd7b66c;const {defIds:_0x39631b}=_0x41b40b;return!_0x39631b||_0x39631b[_0x1c7d28(0x2b5)]===0x0?_0xde389a:_0xde389a[_0x1c7d28(0x1d6)]===_0x1c7d28(0x1bf)&&((_0xd7b66c=_0xde389a[_0x1c7d28(0x25b)])!=null&&_0xd7b66c[_0x1c7d28(0x2b5)])?{..._0xde389a,'children':_0xde389a[_0x1c7d28(0x25b)][_0x1c7d28(0x25f)](_0x3894be=>typeof _0x3894be['attrs']['id']==_0x1c7d28(0x243)&&_0x39631b&&_0x39631b[_0x1c7d28(0x1ff)](_0x3894be[_0x1c7d28(0x1d5)]['id'])?{..._0x3894be,'attrs':{..._0x3894be['attrs'],'id':_0x3894be[_0x1c7d28(0x1d5)]['id']+_0x41b40b[_0x1c7d28(0x1b4)]}}:_0x3894be)}:_0xde389a;}function We(){const _0x3f5ca7=_0x3d1f73;return Math[_0x3f5ca7(0x28d)]()[_0x3f5ca7(0x20e)](0x24)['substring'](0x2,0x8);}b[_0x3d1f73(0x173)]='UniverIcon';const qe={'tag':'svg','attrs':{'xmlns':_0x3d1f73(0x263),'fill':_0x3d1f73(0x175),'viewBox':'0\x200\x2016\x2016','width':_0x3d1f73(0x21c),'height':'1em'},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':_0x3d1f73(0x1be),'d':_0x3d1f73(0x17a),'fillRule':_0x3d1f73(0x20b),'clipRule':_0x3d1f73(0x20b)}}]},le=_0x8d23ab(function(_0xb746eb,_0x4db213){const _0x472adb=_0x3d1f73;return _0x17eed1(b,Object[_0x472adb(0x29e)]({},_0xb746eb,{'id':_0x472adb(0x264),'ref':_0x4db213,'icon':qe}));});le[_0x3d1f73(0x173)]=_0x3d1f73(0x268);const Xe={'tag':_0x3d1f73(0x278),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x3d1f73(0x283),'width':_0x3d1f73(0x21c),'height':_0x3d1f73(0x21c)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':'currentColor','d':_0x3d1f73(0x212)}}]},ue=_0x8d23ab(function(_0x2bafd5,_0x206ac1){const _0x18a97f=_0x3d1f73;return _0x17eed1(b,Object[_0x18a97f(0x29e)]({},_0x2bafd5,{'id':'close-icon','ref':_0x206ac1,'icon':Xe}));});ue[_0x3d1f73(0x173)]=_0x3d1f73(0x1cd);const Je={'tag':'svg','attrs':{'xmlns':_0x3d1f73(0x263),'fill':'none','viewBox':_0x3d1f73(0x283),'width':_0x3d1f73(0x21c),'height':_0x3d1f73(0x21c)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':'currentColor','d':_0x3d1f73(0x190)}},{'tag':_0x3d1f73(0x216),'attrs':{'fill':_0x3d1f73(0x1be),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':'path','attrs':{'fill':_0x3d1f73(0x1be),'d':_0x3d1f73(0x28c),'fillRule':_0x3d1f73(0x20b),'clipRule':_0x3d1f73(0x20b)}}]},ve=_0x8d23ab(function(_0x9cd70,_0x37b108){return _0x17eed1(b,Object['assign']({},_0x9cd70,{'id':'help-icon','ref':_0x37b108,'icon':Je}));});ve[_0x3d1f73(0x173)]='HelpIcon';const Qe={'tag':_0x3d1f73(0x278),'attrs':{'xmlns':_0x3d1f73(0x263),'fill':'none','viewBox':_0x3d1f73(0x283),'width':_0x3d1f73(0x21c),'height':_0x3d1f73(0x21c)},'children':[{'tag':'g','attrs':{'clipPath':_0x3d1f73(0x21e)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'stroke':_0x3d1f73(0x1be),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x3d1f73(0x1cf),'strokeLinejoin':_0x3d1f73(0x1cf),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3d1f73(0x1ad),'attrs':{'id':_0x3d1f73(0x1fe)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3d1f73(0x1fe)]},de=_0x8d23ab(function(_0x570725,_0x5121c7){const _0x182568=_0x3d1f73;return _0x17eed1(b,Object[_0x182568(0x29e)]({},_0x570725,{'id':_0x182568(0x2b4),'ref':_0x5121c7,'icon':Qe}));});de[_0x3d1f73(0x173)]=_0x3d1f73(0x29c);const en={'tag':_0x3d1f73(0x278),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3d1f73(0x175),'viewBox':_0x3d1f73(0x27e),'width':_0x3d1f73(0x21c),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3d1f73(0x16e)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'stroke':_0x3d1f73(0x1be),'d':_0x3d1f73(0x237),'strokeLinecap':_0x3d1f73(0x1cf),'strokeLinejoin':_0x3d1f73(0x1cf),'strokeWidth':1.2}}]},{'tag':_0x3d1f73(0x1bf),'attrs':{},'children':[{'tag':_0x3d1f73(0x1ad),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':_0x3d1f73(0x211),'d':_0x3d1f73(0x206),'transform':'translate(.97)'}}]}]}],'defIds':[_0x3d1f73(0x286)]},ge=_0x8d23ab(function(_0x11c3c6,_0x54fbc4){const _0x36278b=_0x3d1f73;return _0x17eed1(b,Object[_0x36278b(0x29e)]({},_0x11c3c6,{'id':_0x36278b(0x2bf),'ref':_0x54fbc4,'icon':en}));});ge[_0x3d1f73(0x173)]=_0x3d1f73(0x219);function nn(_0x2f1851){const _0xf7ee9=_0x3d1f73;var _0x8d553,_0x168a5a;const {mcpCoreConfig:_0x1a35f3,onSave:_0xbfe02f,loading:_0x4214aa=!0x1,config:_0xb99a9c,connectionStatus$:_0x2900d7,connectionError$:_0x1c8369,currentApiKey$:_0x3450a5,currentSessionId$:_0x32b681}=_0x2f1851,_0x3cae8c=_0x1671ca(_0x59138c),_0x3a99de=_0x1d42f3(_0x2900d7,_0x291e3f[_0xf7ee9(0x2b8)]),_0x28836c=_0x1d42f3(_0x1c8369,_0x19f996['NONE']),_0x54c4bb=_0x1d42f3(_0x32b681,''),_0x2316a3=_0x1d42f3(_0x3450a5,''),[_0x426336,_0x3b49ea]=_0x2889e0(_0x2316a3||''),_0x2c075c=!0x0,_0x5221f9=_0xb99a9c['showDeveloperTools']&&_0x1a35f3[_0xf7ee9(0x258)]&&(_0x1a35f3[_0xf7ee9(0x258)]['includes'](_0xf7ee9(0x1cc))||_0x1a35f3['mcpServerUrl']['includes'](_0xf7ee9(0x1c9))),_0x5d43e9=(_0x8d553=_0x1a35f3[_0xf7ee9(0x258)])==null?void 0x0:_0x8d553['includes'](_0xf7ee9(0x1cc)),_0x2f2ad6=(_0x168a5a=_0x1a35f3[_0xf7ee9(0x258)])==null?void 0x0:_0x168a5a[_0xf7ee9(0x1ff)](_0xf7ee9(0x1c9)),_0x1a7004=_0x5d43e9?'https://console.univer.plus':_0xf7ee9(0x270),_0x1a40a9=_0xb99a9c['showDeveloperTools']&&(_0x5d43e9||_0x2f2ad6),[_0x2f2602,_0x331754]=_0x2889e0(!_0x426336[_0xf7ee9(0x1e8)]()),_0x143b83=(_0x562724,_0x62f2e4)=>{const _0x86f0ac=_0xf7ee9;if(_0x62f2e4===_0x19f996[_0x86f0ac(0x234)])return _0x86f0ac(0x240);switch(_0x562724){case _0x291e3f['CONNECTED']:return _0x86f0ac(0x25a);case _0x291e3f[_0x86f0ac(0x21b)]:case _0x291e3f[_0x86f0ac(0x261)]:return _0x86f0ac(0x1c8);case _0x291e3f[_0x86f0ac(0x18e)]:return _0x86f0ac(0x240);default:return _0x86f0ac(0x2c4);}},_0x482bcf=(_0x4fa2fd,_0x1e986d)=>{const _0x226868=_0xf7ee9;if(_0x1e986d===_0x19f996[_0x226868(0x234)])return _0x226868(0x210);switch(_0x4fa2fd){case _0x291e3f[_0x226868(0x280)]:return _0x226868(0x1d7);case _0x291e3f[_0x226868(0x21b)]:case _0x291e3f['RETRYING']:return _0x226868(0x225);case _0x291e3f[_0x226868(0x18e)]:return _0x226868(0x210);default:return _0x226868(0x1d9);}},_0xd9fa4e=_0x12bac8=>{const _0x2fb572=_0xf7ee9;switch(_0x12bac8){case _0x291e3f['CONNECTED']:return _0x3cae8c['t']('mcpConfig.connectionStatus.connected');case _0x291e3f[_0x2fb572(0x21b)]:return _0x3cae8c['t'](_0x2fb572(0x1ce));case _0x291e3f[_0x2fb572(0x18e)]:return _0x3cae8c['t']('mcpConfig.connectionStatus.failed');case _0x291e3f['RETRYING']:return _0x3cae8c['t']('mcpConfig.connectionStatus.retrying');default:return _0x3cae8c['t'](_0x2fb572(0x256));}},_0x42cb84=_0x426ca2=>{const _0x42fbee=_0xf7ee9;switch(_0x426ca2){case _0x19f996[_0x42fbee(0x234)]:return _0x3cae8c['t'](_0x42fbee(0x267));case _0x19f996[_0x42fbee(0x24e)]:return _0x3cae8c['t'](_0x42fbee(0x194));case _0x19f996[_0x42fbee(0x244)]:return _0x3cae8c['t'](_0x42fbee(0x2b1));case _0x19f996[_0x42fbee(0x2ab)]:return _0x3cae8c['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x1824c7=_0x2be0fd(()=>{const _0xcebef4=_0xf7ee9,_0x2a7073={..._0x1a35f3,'apiKey':_0x426336[_0xcebef4(0x1e8)](),'enableAuth':_0x2c075c};_0xbfe02f(_0x2a7073);},[_0x1a35f3,_0x426336,_0x2c075c,_0xbfe02f]),_0xe4a366=_0x426336['trim']()['length']>0x0;return _0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x20a6ac('div',{'className':_0xf7ee9(0x254),'children':_0x4b442f('div',{'className':_0xf7ee9(0x220),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x16d),'children':_0x20a6ac(_0xf7ee9(0x1b8),{'className':_0xf7ee9(0x1d2),'children':'⚙'})}),_0x20a6ac(_0xf7ee9(0x1c2),{'children':_0x20a6ac('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x3cae8c['t'](_0xf7ee9(0x1e9))})})]})}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x21d),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0x52a931(_0xf7ee9(0x1f7),_0x143b83(_0x3a99de,_0x28836c)),'children':_0x4b442f('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0x52a931(_0xf7ee9(0x171),_0x482bcf(_0x3a99de,_0x28836c))}),_0x20a6ac('span',{'className':_0xf7ee9(0x20f),'children':_0xd9fa4e(_0x3a99de)})]})}),_0x28836c!==_0x19f996['NONE']&&(_0x3a99de===_0x291e3f[_0xf7ee9(0x18e)]||_0x28836c===_0x19f996['UNAUTHORIZED'])&&_0x20a6ac('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x222),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'className':_0xf7ee9(0x24c),'children':'⚠️'}),_0x20a6ac('p',{'className':_0xf7ee9(0x19c),'children':_0x42cb84(_0x28836c)})]})})]}),_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1c7),'children':_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x260),'children':[_0x4b442f('div',{'className':_0xf7ee9(0x189),'children':[_0x4b442f(_0xf7ee9(0x292),{'className':_0xf7ee9(0x253),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'children':'🔑'}),'\x20',_0x3cae8c['t'](_0xf7ee9(0x1c4)),_0x20a6ac(_0xf7ee9(0x1b8),{'className':'univer-text-red-500','children':'*'}),_0x5221f9&&_0x20a6ac('a',{'className':_0xf7ee9(0x203),'title':_0x3cae8c['t'](_0xf7ee9(0x1f4)),'role':_0xf7ee9(0x2b6),'onClick':()=>_0x331754(!0x0),'children':_0x20a6ac(ve,{})})]}),_0x20a6ac(_0x55acfd,{'type':_0xf7ee9(0x1a6),'placeholder':_0x3cae8c['t'](_0xf7ee9(0x2be)),'value':_0x426336,'disabled':_0x4214aa,'autoComplete':_0xf7ee9(0x2c1),'onChange':_0x3b49ea}),_0x20a6ac('p',{'className':_0xf7ee9(0x177),'children':_0x3cae8c['t']('mcpConfig.apiKeyHint')})]}),_0x5221f9&&_0x2f2602&&_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1a8),'children':[_0x20a6ac('a',{'className':_0xf7ee9(0x2bc),'role':'button','onClick':()=>_0x331754(!0x1),'children':_0x20a6ac(ue,{'className':_0xf7ee9(0x298)})}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1e6),'children':[_0x20a6ac('div',{'className':_0xf7ee9(0x191),'children':_0x20a6ac('span',{'className':'univer-text-blue-600','children':'🚀'})}),_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-flex-1','children':[_0x20a6ac('h4',{'className':_0xf7ee9(0x200),'children':_0x3cae8c['t']('mcpConfig.apiApplyInfo.title')}),_0x20a6ac('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x3cae8c['t']('mcpConfig.apiApplyInfo.description')}),_0x20a6ac('div',{'className':_0xf7ee9(0x2a1),'children':_0x1a40a9&&_0x4b442f('a',{'className':_0xf7ee9(0x2a6),'href':_0x1a7004,'target':_0xf7ee9(0x213),'rel':_0xf7ee9(0x26b),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'children':'🤖'}),_0x3cae8c['t'](_0xf7ee9(0x2a0)),_0x20a6ac(_0xf7ee9(0x1b8),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x22a),'children':['✨','\x20',_0x3cae8c['t'](_0xf7ee9(0x1a1))]})]})]})]}),_0xb99a9c[_0xf7ee9(0x27d)]&&_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x25e),'children':[_0x4b442f('h4',{'className':_0xf7ee9(0x1b2),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'children':'🔗'}),'\x20',_0x3cae8c['t'](_0xf7ee9(0x205))]}),_0x4b442f('div',{'className':'univer-space-y-4','children':[_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x2aa),'children':[_0x20a6ac('p',{'className':_0xf7ee9(0x2b2),'children':_0x3cae8c['t'](_0xf7ee9(0x2c3))}),_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-space-y-2','children':[_0x20a6ac('div',{'className':_0xf7ee9(0x275),'children':_0x3cae8c['t'](_0xf7ee9(0x281))}),_0x4b442f('div',{'className':_0xf7ee9(0x289),'children':[_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a6ac('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x3cae8c['t'](_0xf7ee9(0x1f0))]}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1b1),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'className':_0xf7ee9(0x1de),'children':'2'}),_0x3cae8c['t'](_0xf7ee9(0x287))]}),_0x4b442f('div',{'className':_0xf7ee9(0x1b1),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x3cae8c['t'](_0xf7ee9(0x23b))]})]})]})]}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x189),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x275),'children':'MCP\x20Configuration'}),_0x20a6ac(_0xf7ee9(0x1c2),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x20a6ac(_0xf7ee9(0x2bb),{'className':_0xf7ee9(0x269),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0xf7ee9(0x23c)+(_0x54c4bb||_0xf7ee9(0x1a3)),'type':_0xf7ee9(0x242),'headers':{'Authorization':_0xf7ee9(0x1e7)+(_0x426336||_0xf7ee9(0x2a3))}}}},null,0x2)})})]}),_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-space-y-3','children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x275),'children':_0x3cae8c['t'](_0xf7ee9(0x29f))}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x189),'children':[_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x2a7),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1c1)}),_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xf7ee9(0x193)}),_0x20a6ac('div',{'className':_0xf7ee9(0x177),'children':_0x3cae8c['t']('mcpConfig.sessionIdDescription')})]})]}),_0x4b442f('div',{'className':_0xf7ee9(0x2a7),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1c1)}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x178),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1b0),'children':_0xf7ee9(0x285)}),_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x177),'children':_0x3cae8c['t'](_0xf7ee9(0x27f))})]})]})]})]})]})]}),_0x20a6ac(_0x553381,{'onClick':_0x1824c7,'disabled':!_0xe4a366||_0x4214aa,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x4214aa?_0x4b442f('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a6ac(_0xf7ee9(0x1b8),{'children':'⟲'}),_0x3cae8c['t'](_0xf7ee9(0x262))]}):_0x4b442f(_0xf7ee9(0x1b8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a6ac(le,{}),_0x3cae8c['t'](_0xf7ee9(0x184))]})}),_0x20a6ac('div',{'className':_0xf7ee9(0x26a),'children':_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-flex\x20univer-gap-3','children':[_0x20a6ac(_0xf7ee9(0x1b8),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x4b442f('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x296),'children':'Configuration\x20Notes:'}),_0x4b442f(_0xf7ee9(0x1c2),{'children':['•',_0x3cae8c['t'](_0xf7ee9(0x1b7))]}),_0x4b442f(_0xf7ee9(0x1c2),{'children':['•',_0x3cae8c['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0x3d1f73(0x2b9),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x3d1f73(0x1ee)],tn=(_0x5bc31d,_0x349ccc,_0x4e676b,_0x42ff6b)=>{const _0x3bf606=_0x3d1f73;for(var _0x2a7c32=_0x42ff6b>0x1?void 0x0:_0x42ff6b?rn(_0x349ccc,_0x4e676b):_0x349ccc,_0x5ed067=_0x5bc31d[_0x3bf606(0x2b5)]-0x1,_0x23143f;_0x5ed067>=0x0;_0x5ed067--)(_0x23143f=_0x5bc31d[_0x5ed067])&&(_0x2a7c32=_0x23143f(_0x2a7c32)||_0x2a7c32);return _0x2a7c32;},d=(_0x1d9e1b,_0x27bf53)=>(_0x2216df,_0x3d6f63)=>_0x27bf53(_0x2216df,_0x3d6f63,_0x1d9e1b);const U=_0x3d1f73(0x16f),L=_0x3d1f73(0x2b3);let I=class extends _0x2a5236{constructor(_0x1a1ebc,_0x408a2e,_0x1626a1,_0x3129ea,_0x3d742c,_0x4ee375,_0x23861d,_0x160740,_0x12b67b,_0x151bb5){const _0x2d87bc=_0x3d1f73;super(),x(this,_0x2d87bc(0x23f),new _0x109788(!0x1)),x(this,_0x2d87bc(0x1b5),new _0x109788({})),x(this,_0x2d87bc(0x2ad),new _0x109788({})),x(this,_0x2d87bc(0x2ac),new _0x109788('')),x(this,_0x2d87bc(0x1ba),async _0x21f6be=>{const _0x3a72e4=_0x2d87bc;var _0x52f734,_0x38be29;this[_0x3a72e4(0x23f)][_0x3a72e4(0x2a8)](!0x0);try{const _0x37f087=await this[_0x3a72e4(0x28e)](_0x21f6be);if(!_0x37f087[_0x3a72e4(0x233)]){this['_messageService']['show']({'type':_0x1f5a43[_0x3a72e4(0x22f)],'content':_0x37f087[_0x3a72e4(0x1fa)]||this['_localeService']['t'](_0x3a72e4(0x239))});return;}_0x21f6be[_0x3a72e4(0x1ca)]?await this[_0x3a72e4(0x2ba)][_0x3a72e4(0x183)](U,_0x21f6be[_0x3a72e4(0x1ca)][_0x3a72e4(0x1e8)]()):await this[_0x3a72e4(0x2ba)][_0x3a72e4(0x1d8)](U),this[_0x3a72e4(0x2ac)]['next'](((_0x52f734=_0x21f6be['apiKey'])==null?void 0x0:_0x52f734[_0x3a72e4(0x1e8)]())||''),this['_mcpConnectionController'][_0x3a72e4(0x2c2)]({'Authorization':_0x3a72e4(0x1e7)+((_0x38be29=_0x21f6be[_0x3a72e4(0x1ca)])==null?void 0x0:_0x38be29['trim']())}),this['_messageService'][_0x3a72e4(0x1a4)]({'type':_0x1f5a43[_0x3a72e4(0x19e)],'content':this[_0x3a72e4(0x251)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x95ffbb=_0x3a72e4;this[_0x95ffbb(0x1d4)][_0x95ffbb(0x1c6)](L);},0x320);}catch(_0x39e925){this[_0x3a72e4(0x284)][_0x3a72e4(0x227)](_0x3a72e4(0x19a),_0x39e925),this['_messageService'][_0x3a72e4(0x1a4)]({'type':_0x1f5a43['Error'],'content':this[_0x3a72e4(0x251)]['t'](_0x3a72e4(0x21a))});}finally{this[_0x3a72e4(0x23f)][_0x3a72e4(0x2a8)](!0x1);}}),(this[_0x2d87bc(0x1f8)]=_0x1a1ebc,this[_0x2d87bc(0x24a)]=_0x408a2e,this[_0x2d87bc(0x1e4)]=_0x1626a1,this[_0x2d87bc(0x2ba)]=_0x3129ea,this[_0x2d87bc(0x1d4)]=_0x3d742c,this['_messageService']=_0x4ee375,this['_componentManager']=_0x23861d,this[_0x2d87bc(0x251)]=_0x160740,this['_logService']=_0x12b67b,this[_0x2d87bc(0x299)]=_0x151bb5,this[_0x2d87bc(0x186)](),this[_0x2d87bc(0x1a0)](),this[_0x2d87bc(0x2b0)]());}[_0x3d1f73(0x22e)](){const _0xa26563=_0x3d1f73,_0x185615=this['_configService'][_0xa26563(0x185)](y);_0x185615!=null&&_0x185615[_0xa26563(0x27d)]&&this[_0xa26563(0x1d4)][_0xa26563(0x1db)]({'id':L,'title':{'title':this['_localeService']['t'](_0xa26563(0x272))},'children':{'label':_0xa26563(0x1e2)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x171873=_0xa26563;this[_0x171873(0x1d4)][_0x171873(0x1c6)](L);}});}['getCurrentConfig'](){const _0x49fc50=_0x3d1f73;return this[_0x49fc50(0x1b5)]['value'];}['_registerComponent'](){const _0x13c3e3=_0x3d1f73;this['disposeWithMe'](this[_0x13c3e3(0x188)][_0x13c3e3(0x273)](_0x13c3e3(0x1e2),this['_createConfigPanelComponent']()));}[_0x3d1f73(0x187)](){return _0x2e489a(()=>{const _0x4289a9=_0x1a3e;var _0x51b745,_0x46b609,_0xd27838;return _0x20a6ac(nn,{'config':this[_0x4289a9(0x2ad)][_0x4289a9(0x23d)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x4289a9(0x23d)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x4289a9(0x1ba)],'loading':this['_loading$']['value'],'connectionStatus$':(_0x51b745=this[_0x4289a9(0x299)])==null?void 0x0:_0x51b745[_0x4289a9(0x17f)],'connectionError$':(_0x46b609=this['_mcpConnectionController'])==null?void 0x0:_0x46b609[_0x4289a9(0x27c)],'currentSessionId$':(_0xd27838=this['_mcpConnectionController'])==null?void 0x0:_0xd27838[_0x4289a9(0x2b7)]});},this['_injector']);}[_0x3d1f73(0x186)](){const _0x49dfe8=_0x3d1f73;this['disposeWithMe'](this[_0x49dfe8(0x1e4)][_0x49dfe8(0x1a5)](_0x3d4e37)[_0x49dfe8(0x26f)](_0x397b45=>{this['_mcpCoreConfig$']['next'](_0x397b45||{});}));const _0x4cd795=this[_0x49dfe8(0x1e4)][_0x49dfe8(0x185)](_0x3d4e37);this[_0x49dfe8(0x1b5)]['next'](_0x4cd795||{}),this['disposeWithMe'](this['_configService'][_0x49dfe8(0x1a5)](y)['subscribe'](_0x3c4845=>{const _0x3f81eb=_0x49dfe8;this[_0x3f81eb(0x2ad)][_0x3f81eb(0x2a8)](_0x3c4845||{});}));const _0xabb4ad=this[_0x49dfe8(0x1e4)][_0x49dfe8(0x185)](y);this['_config$']['next'](_0xabb4ad||{});}async['_loadStoredApiKey'](){const _0x37eb9d=_0x3d1f73,_0x462aaa=this[_0x37eb9d(0x1e4)][_0x37eb9d(0x185)](y);if(!(_0x462aaa!=null&&_0x462aaa[_0x37eb9d(0x27d)]))return;const _0x426adf=await this['_localStorageService'][_0x37eb9d(0x2c0)](U);_0x426adf&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x37eb9d(0x1e7)+_0x426adf}),this[_0x37eb9d(0x2ac)][_0x37eb9d(0x2a8)](_0x426adf));}async[_0x3d1f73(0x28e)](_0x1378c9){const _0x2fd501=_0x3d1f73;if(!_0x1378c9['apiKey']||_0x1378c9['apiKey'][_0x2fd501(0x1e8)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2fd501(0x251)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x1378c9[_0x2fd501(0x1ca)][_0x2fd501(0x1e8)]()[_0x2fd501(0x2b5)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x2fd501(0x251)]['t'](_0x2fd501(0x1e3))};try{const _0x495f38=await this[_0x2fd501(0x1f8)]['get'](_0x5bc65c)[_0x2fd501(0x23e)](_0x1378c9['apiKey']['trim']());return _0x495f38[_0x2fd501(0x233)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x495f38[_0x2fd501(0x227)]||this[_0x2fd501(0x251)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x35dbd3){return console[_0x2fd501(0x1a7)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x35dbd3),{'isValid':!0x0};}}};I=tn([d(0x0,_0x239ee7(_0x53009c)),d(0x1,_0x436320),d(0x2,_0x47eded),d(0x3,_0x8ee795),d(0x4,_0x41daf9),d(0x5,_0x5d1b2b),d(0x6,_0x239ee7(_0x2f2c61)),d(0x7,_0x239ee7(_0x59138c)),d(0x8,_0x4b764d),d(0x9,_0x239ee7(_0x5bc65c))],I);function _0x4331(){const _0x1689dd=['Enable\x20Authentication','mcpStatus.clickToConnect','_uiPartsService','14032gGaOrZ','univer-shrink-0\x20univer-text-red-500','push','SESSION_ID_OCCUPIED','已连接','symbol','_localeService','mcpStatus.connecting','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','配置无效','mcpConfig.connectionStatus.disconnected','Retrying...','mcpServerUrl','Max\x20Retries','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','children','MCP\x20配置','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','map','univer-space-y-5','RETRYING','mcpConfig.saving','http://www.w3.org/2000/svg','check-mark-icon','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.connectionError.unauthorized','CheckMarkIcon','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','noopener\x20noreferrer','API\x20key\x20is\x20required','_initAutoConnect','registerCommand','subscribe','https://console.univer.ai','disposeWithMe','mcpConfig.title','register','Copy\x20the\x20JSON\x20configuration\x20below','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','BUTTON','配置参数:','svg','MCP:\x20Max\x20Retries\x20Exceeded','最大重试次数','530WPPWWt','connectionError$','showDeveloperTools','0\x200\x2017\x2016','mcpConfig.authorizationDescription','CONNECTED','mcpConfig.configStepTitle','current','0\x200\x2016\x2016','_logService','Authorization:','on-line-icon_clip0_910_349','mcpConfig.configStep2','您的\x20API\x20密钥安全存储在本地存储中','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','您的\x20API\x20密钥将在此浏览器中本地存储','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','random','_validateConfig','OTHERS','几秒钟内获取您的\x20API\x20密钥','重启您的\x20MCP\x20客户端以使配置生效','label','What\x20is\x20API\x20Key?','MCP\x20Retrying...','url(#$1','univer-font-medium','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-size-4','_mcpConnectionController','Enable\x20authentication\x20for\x20secure\x20connections','mergeMenu','OffLineIcon','MCP\x20重连中...','assign','mcpConfig.configParameters','mcpConfig.apiApplyInfo.univerAiLabel','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Client\x20Configuration','<API_KEY>','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','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-items-start\x20univer-gap-3','next','mcpStatus.networkError','univer-space-y-3','MAX_RETRIES_EXCEEDED','_apiKey$','_config$','请输入您的\x20API\x20密钥','mcpStatus.maxRetriesExceeded','_registerComponent','mcpConfig.connectionError.networkError','univer-text-xs\x20univer-text-gray-600','mcp-config-dialog','off-line-icon','length','button','sessionId$','DISCONNECTED','mcp-ui.config','_localStorageService','pre','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','连接失败','mcpConfig.apiKeyPlaceholder','on-line-icon','getItem','off','__setCustomHeaders','mcpConfig.configInstructions','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','url(#on-line-icon_clip0_910_349)','mcp.apiKey','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-size-2\x20univer-rounded-full','MCP\x20已断开','displayName','会话\x20ID\x20已被占用,请稍后再试','none','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-text-xs\x20univer-text-gray-500','univer-min-w-0\x20univer-flex-1','网络连接错误,请检查您的网络连接','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','138zYswXt','API\x20密钥长度至少需要\x2010\x20位','Univer\x20AI\x20Console','API\x20密钥不能为空','connectionStatus$','Configuration\x20Parameters:','保存中...','forEach','setItem','mcpConfig.save','getConfig','_initConfigSync','_createConfigPanelComponent','_componentManager','univer-space-y-2','enableAutoConnect','mcp-ui.command.openConfigPanel','get','API\x20Key','FAILED','MCP\x20Connection\x20Failed','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mask','univer_session_id:','mcpConfig.connectionError.sessionOccupied','xlink:href','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','保存配置','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connection\x20Failed','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_commandService','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','复制以下\x20JSON\x20配置','Success','_connectionController','_loadStoredApiKey','mcpConfig.apiApplyInfo.getStarted','mcpStatus.sessionOccupied','<SESSION_ID>','show','subscribeConfigValue$','text','warn','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','API\x20密钥','MCP:\x20未授权','MCP\x20Configuration','7660377WbhpxZ','clipPath','mcpStatus.retrying','fill','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-flex\x20univer-items-center\x20univer-gap-2','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','配置步骤:','idSuffix','_mcpCoreConfig$','_handleConfigure','mcpConfig.note1','span','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','_handleConfigSave','API\x20密钥无效,请检查密钥是否正确','pluginName','4915884rtGHuK','currentColor','defs','启用身份验证以获得安全连接','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','div','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpConfig.apiKey','_initStatusComponent','close','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer.ai','apiKey','点击连接\x20MCP','univer.plus','CloseIcon','mcpConfig.connectionStatus.connecting','round','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','univer-text-white','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','_dialogService','attrs','tag','univer-bg-green-500','removeItem','univer-bg-gray-500','onStarting','open','defIds','\x20-\x20','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','_initializeMenus','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','replace','MCPConfigPanel','mcpConfig.validation.apiKeyTooShort','_configService','Click\x20to\x20connect\x20MCP','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Bearer\x20','trim','mcpConfig.description','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-text-red-500','12536667OkDyja','mcpStatus.unauthorized','getOwnPropertyDescriptor','重连中...','mcpConfig.configStep1','API\x20key\x20with\x20Bearer\x20prefix.','mcpStatus.failed','MCP\x20Disconnected','mcpConfig.apiApplyInfo.title','启用身份验证','未连接','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','_injector','MCP\x20已连接','errorMessage','35268WlZHBa','showStatus','\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','off-line-icon_clip0_910_343','includes','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univerjs-icon\x20univerjs-icon-','Configuration\x20saved\x20successfully','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','Invalid\x20configuration','mcpConfig.connectionInfo','M0\x200H16V16H0z','MCP\x20客户端配置','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_config','evenodd','Connecting...','HEADER_MENU','toString','univer-text-sm\x20univer-font-medium','univer-bg-red-500','white','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','_blank','MCP\x20Connected','univer-text-yellow-500','path','点击配置\x20MCP','Univer\x20AI\x20控制台','OnLineIcon','mcpConfig.configError','CONNECTING','1em','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','url(#off-line-icon_clip0_910_343)','colorChannel1','univer-flex\x20univer-items-center\x20univer-gap-3','NONE','univer-flex\x20univer-items-start\x20univer-gap-2','配置保存失败','1883uJqbJF','univer-bg-blue-500','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','error','_menuManagerService','MCP:\x20会话\x20ID\x20已被占用','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','MCP\x20连接失败','Disconnected','univer-text-gray-500','showConfigPanel','Error','4036295qeWRwk','超出最大重试次数,请稍后再试','MCP\x20连接中...','isValid','UNAUTHORIZED','554RlZytX','MCP:\x20Session\x20ID\x20Occupied','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpConfig.validation.invalidConfig','entries','mcpConfig.configStep3','https://mcp.univer.ai/mcp/?univer_session_id=','value','validateApiKey','_loading$','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','defineProperty','http','string','NETWORK_ERROR','配置更改将立即生效','MCP:\x20网络错误','10alzHnw'];_0x4331=function(){return _0x1689dd;};return _0x4331();}function _0x1a3e(_0x1159a7,_0x2225f0){_0x1159a7=_0x1159a7-0x16d;const _0x4331bc=_0x4331();let _0x1a3eed=_0x4331bc[_0x1159a7];return _0x1a3eed;}const V={'id':_0x3d1f73(0x18b),'type':_0xf974da['COMMAND'],'handler':async(_0x33e629,_0x4c0347)=>(_0x33e629[_0x3d1f73(0x18c)](I)[_0x3d1f73(0x22e)](),!0x0)};function pe(_0x431f28,_0x2b3bc0){const _0x586aa0=_0x3d1f73;switch(_0x431f28){case _0x291e3f[_0x586aa0(0x2b8)]:return'mcpStatus.disconnected';case _0x291e3f[_0x586aa0(0x21b)]:return _0x586aa0(0x252);case _0x291e3f['CONNECTED']:return'mcpStatus.connected';case _0x291e3f[_0x586aa0(0x18e)]:switch(_0x2b3bc0){case _0x19f996['UNAUTHORIZED']:return _0x586aa0(0x1ed);case _0x19f996[_0x586aa0(0x24e)]:return _0x586aa0(0x1a2);case _0x19f996['NETWORK_ERROR']:return _0x586aa0(0x2a9);case _0x19f996[_0x586aa0(0x2ab)]:return _0x586aa0(0x2af);default:return _0x586aa0(0x1f2);}case _0x291e3f[_0x586aa0(0x261)]:return _0x586aa0(0x1ae);default:return'mcpStatus.unknown';}}function on(_0x784ae1,_0x1514ab,_0x33a05c,_0x4773a7=!0x0){const _0x5b7a19=_0x3d1f73,_0x81235a=pe(_0x784ae1,_0x1514ab),_0x52c052=_0x33a05c['t'](_0x81235a);return _0x4773a7?_0x784ae1===_0x291e3f[_0x5b7a19(0x2b8)]&&_0x1514ab===_0x19f996[_0x5b7a19(0x234)]?_0x52c052+_0x5b7a19(0x1dd)+_0x33a05c['t']('mcpStatus.clickToConfigure'):_0x784ae1===_0x291e3f['CONNECTED']?''+_0x52c052:_0x784ae1===_0x291e3f['DISCONNECTED']||_0x784ae1===_0x291e3f[_0x5b7a19(0x18e)]?_0x52c052+'\x20-\x20'+_0x33a05c['t'](_0x5b7a19(0x249)):_0x52c052:_0x52c052;}function sn(_0x174c6a){const _0x2b4f22=_0x3d1f73;switch(_0x174c6a){case _0x291e3f['CONNECTED']:return'univer-text-green-500';case _0x291e3f[_0x2b4f22(0x21b)]:case _0x291e3f['RETRYING']:return _0x2b4f22(0x215);case _0x291e3f[_0x2b4f22(0x18e)]:case _0x291e3f[_0x2b4f22(0x2b8)]:return _0x2b4f22(0x1eb);default:return _0x2b4f22(0x22d);}}function cn(_0x36728e){const _0x2c36af=_0x3d1f73,{status$:_0x3184c4,error$:_0x33ea99,onConfigure:_0xebe26a,showClickable:_0x50f0de=!0x0}=_0x36728e,_0x27a9c3=_0x1d42f3(_0x3184c4,_0x291e3f[_0x2c36af(0x2b8)]),_0x21b908=_0x1d42f3(_0x33ea99,_0x19f996[_0x2c36af(0x221)]),_0x338c7e=_0x1671ca(_0x59138c),_0xd8ecd1=_0x27a9c3===_0x291e3f[_0x2c36af(0x280)];_0x27a9c3===_0x291e3f['CONNECTING']||_0x291e3f[_0x2c36af(0x261)];const _0x56c13f=_0x338c7e['t'](pe(_0x27a9c3,_0x21b908)),_0x1bb650=on(_0x27a9c3,_0x21b908,_0x338c7e,_0x50f0de),_0x14cbb8=sn(_0x27a9c3),_0x4f86b4=_0xd8ecd1?_0x20a6ac(ge,{}):_0x20a6ac(de,{}),_0x11f25b=_0x2be0fd(()=>{_0x50f0de&&_0xebe26a&&_0xebe26a();},[_0x50f0de,_0xebe26a]);function _0x562bd4(){const _0x17be3c=_0x2c36af;return _0x4b442f(_0x17be3c(0x1c2),{'className':_0x52a931('univer-flex\x20univer-items-center',_0x50f0de&&_0xebe26a&&_0x17be3c(0x1fd)),'role':_0x17be3c(0x2b6),'onClick':_0x50f0de&&_0xebe26a?_0x11f25b:void 0x0,'children':[_0x20a6ac(_0x17be3c(0x1c2),{'className':_0x52a931(_0x17be3c(0x1c3),_0x14cbb8),'children':_0x4f86b4}),_0x20a6ac(_0x17be3c(0x1c2),{'className':_0x17be3c(0x196),'children':_0x56c13f})]});}return _0x20a6ac(_0x47833d,{'title':_0x1bb650,'placement':'bottom','children':_0x562bd4()});}var an=Object[_0x3d1f73(0x1ee)],ln=(_0x5dc1da,_0x349303,_0x488f55,_0x22dfc9)=>{const _0x3d6504=_0x3d1f73;for(var _0x156a7b=_0x22dfc9>0x1?void 0x0:_0x22dfc9?an(_0x349303,_0x488f55):_0x349303,_0x682a48=_0x5dc1da[_0x3d6504(0x2b5)]-0x1,_0x10b69e;_0x682a48>=0x0;_0x682a48--)(_0x10b69e=_0x5dc1da[_0x682a48])&&(_0x156a7b=_0x10b69e(_0x156a7b)||_0x156a7b);return _0x156a7b;},M=(_0x204959,_0x57bc2c)=>(_0x1506f5,_0x55b280)=>_0x57bc2c(_0x1506f5,_0x55b280,_0x204959);let O=class extends _0x2a5236{constructor(_0x3be0ee,_0x1d7c7f,_0xc8a729,_0x302c7e){const _0x1d4406=_0x3d1f73;super(),this['_injector']=_0x3be0ee,this[_0x1d4406(0x19f)]=_0x1d7c7f,this[_0x1d4406(0x24a)]=_0xc8a729,this[_0x1d4406(0x1e4)]=_0x302c7e,this[_0x1d4406(0x26d)](),this[_0x1d4406(0x1c5)]();}[_0x3d1f73(0x26d)](){const _0x5c93fc=_0x3d1f73,_0x4b4281=this['_configService'][_0x5c93fc(0x185)](y);_0x4b4281!=null&&_0x4b4281[_0x5c93fc(0x27d)]&&(this['_connectionController'][_0x5c93fc(0x18a)]=!0x1);}['_initStatusComponent'](){const _0x3a7f0c=_0x3d1f73,_0x3d4141=this['_configService'][_0x3a7f0c(0x185)](y);(_0x3d4141==null?void 0x0:_0x3d4141[_0x3a7f0c(0x1fc)])!==!0x1&&this[_0x3a7f0c(0x271)](this[_0x3a7f0c(0x24a)]['registerComponent'](_0x5cc78a[_0x3a7f0c(0x20d)],()=>{const _0x3c6309=_0x3a7f0c;var _0x1d18b8;return _0x2e489a(un({'status$':this[_0x3c6309(0x19f)]['connectionStatus$'],'error$':this[_0x3c6309(0x19f)][_0x3c6309(0x27c)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x1d18b8=_0x3d4141==null?void 0x0:_0x3d4141['showDeveloperTools'])!=null?_0x1d18b8:!0x1}),this['_injector']);}));}[_0x3d1f73(0x1b6)](){const _0x4234d3=_0x3d1f73;this[_0x4234d3(0x1f8)][_0x4234d3(0x18c)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x239ee7(_0x53009c)),M(0x1,_0x239ee7(_0x5bc65c)),M(0x2,_0x436320),M(0x3,_0x47eded)],O);function un(_0x1471a2){const {status$:_0x311ec3,error$:_0x1baee1,onConfigure:_0x2fa392,showClickable:_0x57e6ea}=_0x1471a2;return function(){return _0x20a6ac(cn,{'status$':_0x311ec3,'error$':_0x1baee1,'onConfigure':_0x2fa392,'showClickable':_0x57e6ea});};}function vn(_0x54660d){const _0x301763=_0x3d1f73;return{'id':V['id'],'type':_0xc76b71[_0x301763(0x276)],'icon':'MenuIcon','title':_0x301763(0x272),'tooltip':_0x301763(0x272)};}const dn={[_0x47099c[_0x3d1f73(0x28f)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x3d1f73(0x1ee)],pn=(_0x99891f,_0x473c05,_0x2243c5,_0x1aba29)=>{const _0x34c562=_0x3d1f73;for(var _0x4dd756=_0x1aba29>0x1?void 0x0:_0x1aba29?gn(_0x473c05,_0x2243c5):_0x473c05,_0x154b30=_0x99891f[_0x34c562(0x2b5)]-0x1,_0x4ab761;_0x154b30>=0x0;_0x154b30--)(_0x4ab761=_0x99891f[_0x154b30])&&(_0x4dd756=_0x4ab761(_0x4dd756)||_0x4dd756);return _0x4dd756;},re=(_0x11a3c7,_0x2aba66)=>(_0x237969,_0x372b88)=>_0x2aba66(_0x237969,_0x372b88,_0x11a3c7);let D=class extends _0x2a5236{constructor(_0x34c922,_0x20985c){const _0xdcefa9=_0x3d1f73;super(),this[_0xdcefa9(0x19b)]=_0x34c922,this[_0xdcefa9(0x228)]=_0x20985c,this['_initializeCommands'](),this['_initializeMenus']();}['_initializeCommands'](){const _0x155187=_0x3d1f73;[V][_0x155187(0x182)](_0x18082f=>{const _0x307aca=_0x155187;this[_0x307aca(0x271)](this['_commandService'][_0x307aca(0x26e)](_0x18082f));});}[_0x3d1f73(0x1df)](){const _0x37c04f=_0x3d1f73;this[_0x37c04f(0x228)][_0x37c04f(0x29b)](dn);}};D=pn([re(0x0,_0x17a58e),re(0x1,_0x10488c)],D);const Mn={'mcpStatus':{'disconnected':_0x3d1f73(0x1f3),'connecting':'MCP\x20Connecting...','connected':_0x3d1f73(0x214),'failed':_0x3d1f73(0x18f),'retrying':_0x3d1f73(0x294),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x3d1f73(0x236),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x3d1f73(0x279),'clickToConnect':_0x3d1f73(0x1e5),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x3d1f73(0x1ab),'description':_0x3d1f73(0x297),'apiKey':_0x3d1f73(0x18d),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3d1f73(0x1b9),'enableAuth':_0x3d1f73(0x248),'enableAuthHint':_0x3d1f73(0x29a),'connectionInfo':_0x3d1f73(0x2a2),'mcpClientConfig':_0x3d1f73(0x2a2),'configInstructions':_0x3d1f73(0x1e0),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3d1f73(0x274),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3d1f73(0x265),'sessionId':'Session\x20ID','sessionIdDescription':_0x3d1f73(0x2a5),'authorizationDescription':_0x3d1f73(0x1f1),'configParameters':_0x3d1f73(0x180),'maxRetries':_0x3d1f73(0x259),'save':'Save\x20Configuration','saving':_0x3d1f73(0x208),'note1':_0x3d1f73(0x2a4),'note2':_0x3d1f73(0x1d3),'configSaved':_0x3d1f73(0x202),'configError':_0x3d1f73(0x1d1),'apiApplyInfo':{'title':_0x3d1f73(0x293),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x3d1f73(0x17d),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x3d1f73(0x26c),'apiKeyTooShort':_0x3d1f73(0x170),'invalidConfig':_0x3d1f73(0x204),'invalidApiKey':_0x3d1f73(0x1d0)},'connectionStatus':{'disconnected':_0x3d1f73(0x22c),'connecting':_0x3d1f73(0x20c),'connected':'Connected','failed':_0x3d1f73(0x199),'retrying':_0x3d1f73(0x257)},'connectionError':{'unauthorized':_0x3d1f73(0x209),'sessionOccupied':_0x3d1f73(0x226),'networkError':_0x3d1f73(0x198),'maxRetriesExceeded':_0x3d1f73(0x28a)}}},An={'mcpStatus':{'disconnected':_0x3d1f73(0x172),'connecting':_0x3d1f73(0x232),'connected':_0x3d1f73(0x1f9),'failed':_0x3d1f73(0x22b),'retrying':_0x3d1f73(0x29d),'unknown':'MCP\x20状态未知','unauthorized':_0x3d1f73(0x1aa),'sessionOccupied':_0x3d1f73(0x229),'networkError':_0x3d1f73(0x246),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x3d1f73(0x1cb),'clickToConfigure':_0x3d1f73(0x217)},'mcpConfig':{'title':_0x3d1f73(0x25c),'description':_0x3d1f73(0x176),'apiKey':_0x3d1f73(0x1a9),'apiKeyPlaceholder':_0x3d1f73(0x2ae),'apiKeyHint':_0x3d1f73(0x28b),'enableAuth':_0x3d1f73(0x1f5),'enableAuthHint':_0x3d1f73(0x1c0),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x3d1f73(0x207),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x3d1f73(0x1b3),'configStep1':_0x3d1f73(0x19d),'configStep2':_0x3d1f73(0x238),'configStep3':_0x3d1f73(0x291),'sessionId':'会话ID','sessionIdDescription':_0x3d1f73(0x25d),'authorizationDescription':_0x3d1f73(0x1ea),'configParameters':_0x3d1f73(0x277),'maxRetries':_0x3d1f73(0x27a),'save':_0x3d1f73(0x197),'saving':_0x3d1f73(0x181),'note1':_0x3d1f73(0x245),'note2':_0x3d1f73(0x288),'configSaved':'配置保存成功','configError':_0x3d1f73(0x223),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x3d1f73(0x266),'univerAiLabel':_0x3d1f73(0x218),'getStarted':_0x3d1f73(0x290)},'validation':{'apiKeyRequired':_0x3d1f73(0x17e),'apiKeyTooShort':_0x3d1f73(0x17c),'invalidConfig':_0x3d1f73(0x255),'invalidApiKey':_0x3d1f73(0x1bb)},'connectionStatus':{'disconnected':_0x3d1f73(0x1f6),'connecting':'连接中...','connected':_0x3d1f73(0x24f),'failed':_0x3d1f73(0x2bd),'retrying':_0x3d1f73(0x1ef)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x3d1f73(0x174),'networkError':_0x3d1f73(0x179),'maxRetriesExceeded':_0x3d1f73(0x231)}}};var fn=Object[_0x3d1f73(0x241)],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x40a645,_0xe4a032,_0x42c177)=>_0xe4a032 in _0x40a645?fn(_0x40a645,_0xe4a032,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42c177}):_0x40a645[_0xe4a032]=_0x42c177,mn=(_0x2be425,_0x1e739e,_0x28c91e,_0x5248d1)=>{const _0x10d2fa=_0x3d1f73;for(var _0x58c36a=_0x5248d1>0x1?void 0x0:_0x5248d1?hn(_0x1e739e,_0x28c91e):_0x1e739e,_0x44d4d9=_0x2be425[_0x10d2fa(0x2b5)]-0x1,_0x138a3d;_0x44d4d9>=0x0;_0x44d4d9--)(_0x138a3d=_0x2be425[_0x44d4d9])&&(_0x58c36a=_0x138a3d(_0x58c36a)||_0x58c36a);return _0x58c36a;},P=(_0x582a2e,_0x26e751)=>(_0x564970,_0x4e6077)=>_0x26e751(_0x564970,_0x4e6077,_0x582a2e),_n=(_0x1fbfcc,_0x1098d2,_0x56d432)=>Cn(_0x1fbfcc,_0x1098d2+'',_0x56d432);let j=class extends _0x5bf17b{constructor(_0x2fc2cb=ie,_0x1a9aee,_0x25ca7b,_0x35ef71,_0x723f67,_0x3beb59){const _0x3f3588=_0x3d1f73;super(),this['_config']=_0x2fc2cb,this[_0x3f3588(0x1f8)]=_0x1a9aee,this['_configService']=_0x25ca7b,this[_0x3f3588(0x24a)]=_0x35ef71,this['_localStorageService']=_0x723f67,this['_localeService']=_0x3beb59;const {..._0x332faa}=_0x2d62e4({},ie,this[_0x3f3588(0x20a)]);this[_0x3f3588(0x1e4)]['setConfig'](y,_0x332faa);}async[_0x3d1f73(0x1da)](){const _0x142c83=_0x3d1f73,_0x39a90e=[[O],[I],[D]];this['_injector']['has'](_0x33978c)||_0x39a90e[_0x142c83(0x24d)]([_0x33978c,{'useClass':_0x15ecd1}]),_0x39a90e[_0x142c83(0x182)](_0x4d96d8=>this[_0x142c83(0x1f8)]['add'](_0x4d96d8)),this[_0x142c83(0x1f8)][_0x142c83(0x18c)](O),this['_injector']['get'](I),this[_0x142c83(0x1f8)][_0x142c83(0x18c)](D);}};_n(j,_0x3d1f73(0x1bc),'MCP_UI_PLUGIN'),j=mn([_0x3951f0(_0x38e135),P(0x1,_0x239ee7(_0x53009c)),P(0x2,_0x47eded),P(0x3,_0x436320),P(0x4,_0x8ee795),P(0x5,_0x239ee7(_0x59138c))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
@@ -1 +1 @@
1
- const _0x16511d=_0x2085;(function(_0x6bdd51,_0x187f32){const _0x8e0eb5=_0x2085,_0x180b5f=_0x6bdd51();while(!![]){try{const _0x453dcc=-parseInt(_0x8e0eb5(0x1d4))/0x1+-parseInt(_0x8e0eb5(0x1ed))/0x2+parseInt(_0x8e0eb5(0x1c4))/0x3*(parseInt(_0x8e0eb5(0x1e1))/0x4)+-parseInt(_0x8e0eb5(0x1ec))/0x5+parseInt(_0x8e0eb5(0x1c7))/0x6+-parseInt(_0x8e0eb5(0x1dc))/0x7*(-parseInt(_0x8e0eb5(0x1c8))/0x8)+-parseInt(_0x8e0eb5(0x1db))/0x9;if(_0x453dcc===_0x187f32)break;else _0x180b5f['push'](_0x180b5f['shift']());}catch(_0x51861c){_0x180b5f['push'](_0x180b5f['shift']());}}}(_0x144b,0x776b2));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x16511d(0x1e8),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x16511d(0x1d6),'unknown':_0x16511d(0x1c6),'unauthorized':_0x16511d(0x1d2),'sessionOccupied':_0x16511d(0x1cc),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x16511d(0x1e2),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x16511d(0x1de)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x16511d(0x1cd),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x16511d(0x1e4),'configInstructions':_0x16511d(0x1c5),'configStepTitle':_0x16511d(0x1cb),'configStep1':_0x16511d(0x1d8),'configStep2':_0x16511d(0x1df),'configStep3':_0x16511d(0x1e0),'sessionId':_0x16511d(0x1e9),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x16511d(0x1e6),'configParameters':_0x16511d(0x1d3),'maxRetries':_0x16511d(0x1e7),'save':_0x16511d(0x1d1),'saving':_0x16511d(0x1eb),'note1':_0x16511d(0x1dd),'note2':_0x16511d(0x1d7),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x16511d(0x1ea),'getStarted':_0x16511d(0x1ce)},'validation':{'apiKeyRequired':_0x16511d(0x1c9),'apiKeyTooShort':_0x16511d(0x1da),'invalidConfig':_0x16511d(0x1c3),'invalidApiKey':_0x16511d(0x1e5)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x16511d(0x1cf),'connected':_0x16511d(0x1e3),'failed':_0x16511d(0x1d5),'retrying':_0x16511d(0x1d0)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x16511d(0x1ca),'maxRetriesExceeded':_0x16511d(0x1d9)}}},n=e;export{n as default};function _0x2085(_0x19bf31,_0x57ddce){_0x19bf31=_0x19bf31-0x1c3;const _0x144b5e=_0x144b();let _0x2085a7=_0x144b5e[_0x19bf31];return _0x2085a7;}function _0x144b(){const _0x48dad7=['Univer\x20AI\x20Console','Saving...','3902585xidFRJ','1164352dQaRfV','Invalid\x20configuration','6CXchbP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','5221830nuuJIv','810808mrvuEd','API\x20key\x20is\x20required','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Steps:','MCP:\x20Session\x20ID\x20Occupied','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','Connecting...','Retrying...','Save\x20Configuration','MCP:\x20Unauthorized','Configuration\x20Parameters:','121093AQhdVT','Connection\x20Failed','MCP\x20Retrying...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1952901TUAwpo','28cknwQy','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20configure\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','1828408luVYIX','MCP:\x20Max\x20Retries\x20Exceeded','Connected','MCP\x20Client\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20with\x20Bearer\x20prefix.','Max\x20Retries','MCP\x20Connecting...','Session\x20ID'];_0x144b=function(){return _0x48dad7;};return _0x144b();}
1
+ function _0x3c6d(_0x59f7ca,_0x289e27){_0x59f7ca=_0x59f7ca-0x17c;const _0x725e77=_0x725e();let _0x3c6d36=_0x725e77[_0x59f7ca];return _0x3c6d36;}const _0x581bf4=_0x3c6d;function _0x725e(){const _0x364ee9=['Failed\x20to\x20save\x20configuration','Invalid\x20configuration','Saving...','44EBHWlP','Click\x20to\x20configure\x20MCP','MCP:\x20Session\x20ID\x20Occupied','Get\x20your\x20API\x20key\x20in\x20seconds','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Copy\x20the\x20JSON\x20configuration\x20below','Session\x20ID','Configuration\x20Steps:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Unauthorized','Enter\x20your\x20API\x20key','299916JzIpDo','Configuration\x20Parameters:','Retrying...','MCP\x20Client\x20Configuration','3318990hDtZHu','369ymlIif','API\x20key\x20with\x20Bearer\x20prefix.','43959320pDUMSO','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','5190685IWuXGX','448302vVPFQK','API\x20Key','126ztALLE','Disconnected','126424AnJgYt','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','283293BAqUHR','Save\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration'];_0x725e=function(){return _0x364ee9;};return _0x725e();}(function(_0x261939,_0x24e453){const _0x207f1a=_0x3c6d,_0x36d7fd=_0x261939();while(!![]){try{const _0x446ef4=parseInt(_0x207f1a(0x18a))/0x1+-parseInt(_0x207f1a(0x17d))/0x2+-parseInt(_0x207f1a(0x184))/0x3*(parseInt(_0x207f1a(0x190))/0x4)+parseInt(_0x207f1a(0x183))/0x5+-parseInt(_0x207f1a(0x1a5))/0x6*(parseInt(_0x207f1a(0x186))/0x7)+parseInt(_0x207f1a(0x188))/0x8*(-parseInt(_0x207f1a(0x17e))/0x9)+parseInt(_0x207f1a(0x180))/0xa;if(_0x446ef4===_0x24e453)break;else _0x36d7fd['push'](_0x36d7fd['shift']());}catch(_0x4cdd56){_0x36d7fd['push'](_0x36d7fd['shift']());}}}(_0x725e,0xd3876));const e={'mcpStatus':{'disconnected':_0x581bf4(0x19a),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x581bf4(0x181),'retrying':_0x581bf4(0x198),'unknown':_0x581bf4(0x182),'unauthorized':_0x581bf4(0x1a3),'sessionOccupied':_0x581bf4(0x192),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x581bf4(0x191)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x581bf4(0x19b),'apiKey':_0x581bf4(0x185),'apiKeyPlaceholder':_0x581bf4(0x1a4),'apiKeyHint':_0x581bf4(0x189),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x581bf4(0x1a2),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x581bf4(0x17c),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x581bf4(0x19e),'configStep1':_0x581bf4(0x19c),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x581bf4(0x18c),'sessionId':_0x581bf4(0x19d),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x581bf4(0x17f),'configParameters':_0x581bf4(0x1a6),'maxRetries':_0x581bf4(0x1a0),'save':_0x581bf4(0x18b),'saving':_0x581bf4(0x18f),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x581bf4(0x18d),'apiApplyInfo':{'title':_0x581bf4(0x195),'description':_0x581bf4(0x19f),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x581bf4(0x193)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x581bf4(0x1a1),'invalidConfig':_0x581bf4(0x18e),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x581bf4(0x187),'connecting':'Connecting...','connected':'Connected','failed':_0x581bf4(0x196),'retrying':_0x581bf4(0x1a7)},'connectionError':{'unauthorized':_0x581bf4(0x199),'sessionOccupied':_0x581bf4(0x197),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x581bf4(0x194)}}},n=e;export{n as default};