@univerjs-pro/mcp-ui 0.10.10-experimental.20251010-3f807c5 → 0.10.10-experimental.20251016-33b0941

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 (45) 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/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +1 -1
  13. package/lib/es/locale/ca-ES.js +1 -1
  14. package/lib/es/locale/en-US.js +1 -1
  15. package/lib/es/locale/es-ES.js +1 -1
  16. package/lib/es/locale/fa-IR.js +1 -1
  17. package/lib/es/locale/fr-FR.js +1 -1
  18. package/lib/es/locale/ko-KR.js +1 -1
  19. package/lib/es/locale/ru-RU.js +1 -1
  20. package/lib/es/locale/vi-VN.js +1 -1
  21. package/lib/es/locale/zh-CN.js +1 -1
  22. package/lib/es/locale/zh-TW.js +1 -1
  23. package/lib/index.js +1 -1
  24. package/lib/locale/ca-ES.js +1 -1
  25. package/lib/locale/en-US.js +1 -1
  26. package/lib/locale/es-ES.js +1 -1
  27. package/lib/locale/fa-IR.js +1 -1
  28. package/lib/locale/fr-FR.js +1 -1
  29. package/lib/locale/ko-KR.js +1 -1
  30. package/lib/locale/ru-RU.js +1 -1
  31. package/lib/locale/vi-VN.js +1 -1
  32. package/lib/locale/zh-CN.js +1 -1
  33. package/lib/locale/zh-TW.js +1 -1
  34. package/lib/umd/index.js +1 -1
  35. package/lib/umd/locale/ca-ES.js +1 -1
  36. package/lib/umd/locale/en-US.js +1 -1
  37. package/lib/umd/locale/es-ES.js +1 -1
  38. package/lib/umd/locale/fa-IR.js +1 -1
  39. package/lib/umd/locale/fr-FR.js +1 -1
  40. package/lib/umd/locale/ko-KR.js +1 -1
  41. package/lib/umd/locale/ru-RU.js +1 -1
  42. package/lib/umd/locale/vi-VN.js +1 -1
  43. package/lib/umd/locale/zh-CN.js +1 -1
  44. package/lib/umd/locale/zh-TW.js +1 -1
  45. package/package.json +8 -8
@@ -1 +1 @@
1
- 'use strict';function _0x578c(_0x56c7d7,_0x4a0496){const _0x8a2923=_0x8a29();return _0x578c=function(_0x578c0f,_0x2030cd){_0x578c0f=_0x578c0f-0x91;let _0x5ce6da=_0x8a2923[_0x578c0f];return _0x5ce6da;},_0x578c(_0x56c7d7,_0x4a0496);}function _0x8a29(){const _0x44a822=['Configuration\x20Steps:','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required','API\x20key\x20with\x20Bearer\x20prefix.','1006532HTPHLM','Disconnected','Invalid\x20configuration','Saving...','18yiJhRj','Click\x20to\x20configure\x20MCP','Univer\x20AI\x20Console','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20Authentication','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connected','297tnaoiV','MCP\x20Connection\x20Failed','Connected','Max\x20Retries','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Save\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20saved\x20successfully','MCP\x20Connecting...','62mbmdWE','API\x20Key','MCP:\x20Unauthorized','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','5816ouMybP','198860wQbqev','2833218qPNChb','Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Network\x20Error','Failed\x20to\x20save\x20configuration','exports','Enable\x20authentication\x20for\x20secure\x20connections','7DmxDXL','MCP\x20Unknown\x20Status','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Session\x20ID\x20Occupied','Retrying...','7569580fXdyHn','MCP\x20Client\x20Configuration','9452920lVgFpQ','MCP:\x20Max\x20Retries\x20Exceeded','Session\x20ID','13958739JHUWAs'];_0x8a29=function(){return _0x44a822;};return _0x8a29();}const _0x9d0c59=_0x578c;(function(_0x1f2b22,_0x76c61){const _0xeed2d2=_0x578c,_0x271280=_0x1f2b22();while(!![]){try{const _0x2accc1=-parseInt(_0xeed2d2(0xb2))/0x1*(-parseInt(_0xeed2d2(0xb8))/0x2)+-parseInt(_0xeed2d2(0xa2))/0x3*(parseInt(_0xeed2d2(0x9e))/0x4)+-parseInt(_0xeed2d2(0x92))/0x5+parseInt(_0xeed2d2(0xba))/0x6+-parseInt(_0xeed2d2(0xc1))/0x7*(-parseInt(_0xeed2d2(0x94))/0x8)+parseInt(_0xeed2d2(0x97))/0x9+parseInt(_0xeed2d2(0xb9))/0xa*(parseInt(_0xeed2d2(0xa9))/0xb);if(_0x2accc1===_0x76c61)break;else _0x271280['push'](_0x271280['shift']());}catch(_0x5bb6f9){_0x271280['push'](_0x271280['shift']());}}}(_0x8a29,0xdb4f5));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x9d0c59(0xb1),'connected':_0x9d0c59(0xa8),'failed':_0x9d0c59(0xaa),'retrying':_0x9d0c59(0x99),'unknown':_0x9d0c59(0xc2),'unauthorized':_0x9d0c59(0xb4),'sessionOccupied':_0x9d0c59(0xc4),'networkError':_0x9d0c59(0xbd),'maxRetriesExceeded':_0x9d0c59(0x95),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x9d0c59(0xa3)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x9d0c59(0xc3),'apiKey':_0x9d0c59(0xb3),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x9d0c59(0xbc),'enableAuth':_0x9d0c59(0xa6),'enableAuthHint':_0x9d0c59(0xc0),'connectionInfo':_0x9d0c59(0x93),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x9d0c59(0x98),'configStep1':_0x9d0c59(0xaf),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x9d0c59(0x96),'sessionIdDescription':_0x9d0c59(0xb7),'authorizationDescription':_0x9d0c59(0x9d),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x9d0c59(0xac),'save':_0x9d0c59(0xae),'saving':_0x9d0c59(0xa1),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x9d0c59(0xb6),'configSaved':_0x9d0c59(0xb0),'configError':_0x9d0c59(0xbe),'apiApplyInfo':{'title':_0x9d0c59(0x9b),'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':_0x9d0c59(0xa4),'getStarted':_0x9d0c59(0xa5)},'validation':{'apiKeyRequired':_0x9d0c59(0x9c),'apiKeyTooShort':_0x9d0c59(0xb5),'invalidConfig':_0x9d0c59(0xa0),'invalidApiKey':_0x9d0c59(0xad)},'connectionStatus':{'disconnected':_0x9d0c59(0x9f),'connecting':'Connecting...','connected':_0x9d0c59(0xab),'failed':_0x9d0c59(0xbb),'retrying':_0x9d0c59(0x91)},'connectionError':{'unauthorized':_0x9d0c59(0xa7),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x9d0c59(0x9a),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x9d0c59(0xbf)]=n;
1
+ 'use strict';const _0x7387e=_0x2447;(function(_0x175d1,_0x180fc7){const _0x2ff6bb=_0x2447,_0x2ec346=_0x175d1();while(!![]){try{const _0x24539b=-parseInt(_0x2ff6bb(0xf7))/0x1*(-parseInt(_0x2ff6bb(0xf6))/0x2)+-parseInt(_0x2ff6bb(0x102))/0x3+-parseInt(_0x2ff6bb(0xd2))/0x4*(parseInt(_0x2ff6bb(0xe7))/0x5)+parseInt(_0x2ff6bb(0xee))/0x6+-parseInt(_0x2ff6bb(0xe2))/0x7+parseInt(_0x2ff6bb(0xf9))/0x8*(-parseInt(_0x2ff6bb(0xe0))/0x9)+parseInt(_0x2ff6bb(0xd7))/0xa*(parseInt(_0x2ff6bb(0xeb))/0xb);if(_0x24539b===_0x180fc7)break;else _0x2ec346['push'](_0x2ec346['shift']());}catch(_0x96aaab){_0x2ec346['push'](_0x2ec346['shift']());}}}(_0x361d,0xe8b21));function _0x361d(){const _0x3a0621=['4cpHkdB','Configuration\x20saved\x20successfully','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connecting...','Univer\x20AI\x20Console','650cqtJgA','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Disconnected','Session\x20ID','Disconnected','MCP:\x20Session\x20ID\x20Occupied','Max\x20Retries','637893ScbGdW','Connected','4267872iLFAyP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Network\x20Error','API\x20key\x20is\x20required','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','802330VnWgde','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Client\x20Configuration','MCP\x20Connected','150425WctAME','Configuration\x20Parameters:','MCP\x20Configuration','880434Kyzieo','Enable\x20authentication\x20for\x20secure\x20connections','Connection\x20Failed','MCP\x20Retrying...','API\x20Key','Failed\x20to\x20save\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Save\x20Configuration','116iNIjrj','17386KwkCEu','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','32JDuxbt','MCP\x20Connection\x20Failed','MCP:\x20Unauthorized','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20configure\x20MCP','Connecting...','exports','Invalid\x20configuration','111633zrpdUz','Saving...','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20Authentication'];_0x361d=function(){return _0x3a0621;};return _0x361d();}const e={'mcpStatus':{'disconnected':_0x7387e(0xdb),'connecting':_0x7387e(0xd5),'connected':_0x7387e(0xea),'failed':_0x7387e(0xfa),'retrying':_0x7387e(0xf1),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x7387e(0xfb),'sessionOccupied':_0x7387e(0xde),'networkError':_0x7387e(0xe4),'maxRetriesExceeded':_0x7387e(0xfd),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x7387e(0xfe)},'mcpConfig':{'title':_0x7387e(0xed),'description':_0x7387e(0xd8),'apiKey':_0x7387e(0xf2),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x7387e(0x105),'enableAuthHint':_0x7387e(0xef),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x7387e(0xe9),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x7387e(0xd4),'configStep2':_0x7387e(0xd9),'configStep3':_0x7387e(0xf8),'sessionId':_0x7387e(0xdc),'sessionIdDescription':_0x7387e(0xe8),'authorizationDescription':_0x7387e(0xda),'configParameters':_0x7387e(0xec),'maxRetries':_0x7387e(0xdf),'save':_0x7387e(0xf5),'saving':_0x7387e(0x103),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x7387e(0xe6),'configSaved':_0x7387e(0xd3),'configError':_0x7387e(0xf3),'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':_0x7387e(0xd6),'getStarted':_0x7387e(0x104)},'validation':{'apiKeyRequired':_0x7387e(0xe5),'apiKeyTooShort':_0x7387e(0xfc),'invalidConfig':_0x7387e(0x101),'invalidApiKey':_0x7387e(0xf4)},'connectionStatus':{'disconnected':_0x7387e(0xdd),'connecting':_0x7387e(0xff),'connected':_0x7387e(0xe1),'failed':_0x7387e(0xf0),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x7387e(0xe3),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x2447(_0x5371ef,_0x50c40e){const _0x361d1f=_0x361d();return _0x2447=function(_0x2447e4,_0x2bbedc){_0x2447e4=_0x2447e4-0xd2;let _0x5f4d0d=_0x361d1f[_0x2447e4];return _0x5f4d0d;},_0x2447(_0x5371ef,_0x50c40e);}module[_0x7387e(0x100)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x2161e5=_0x44e3;(function(_0x21676d,_0x2ac256){const _0x2dc192=_0x44e3,_0xe1707c=_0x21676d();while(!![]){try{const _0x19769e=parseInt(_0x2dc192(0x19f))/0x1*(parseInt(_0x2dc192(0x18f))/0x2)+-parseInt(_0x2dc192(0x1b0))/0x3*(-parseInt(_0x2dc192(0x19c))/0x4)+parseInt(_0x2dc192(0x1af))/0x5+-parseInt(_0x2dc192(0x199))/0x6*(parseInt(_0x2dc192(0x18c))/0x7)+parseInt(_0x2dc192(0x191))/0x8+-parseInt(_0x2dc192(0x194))/0x9*(parseInt(_0x2dc192(0x18e))/0xa)+parseInt(_0x2dc192(0x1b1))/0xb*(-parseInt(_0x2dc192(0x19a))/0xc);if(_0x19769e===_0x2ac256)break;else _0xe1707c['push'](_0xe1707c['shift']());}catch(_0x33f083){_0xe1707c['push'](_0xe1707c['shift']());}}}(_0x40df,0x2422c));const e={'mcpStatus':{'disconnected':_0x2161e5(0x19e),'connecting':_0x2161e5(0x1b6),'connected':_0x2161e5(0x1a4),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x2161e5(0x1a7),'unauthorized':_0x2161e5(0x1b7),'sessionOccupied':_0x2161e5(0x1a8),'networkError':_0x2161e5(0x18d),'maxRetriesExceeded':_0x2161e5(0x1ad),'clickToConnect':_0x2161e5(0x186),'clickToConfigure':_0x2161e5(0x182)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2161e5(0x18b),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2161e5(0x195),'apiKeyHint':_0x2161e5(0x198),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2161e5(0x19d),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x2161e5(0x1b3),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2161e5(0x1b5),'configStep2':_0x2161e5(0x19b),'configStep3':_0x2161e5(0x1b8),'sessionId':'Session\x20ID','sessionIdDescription':_0x2161e5(0x196),'authorizationDescription':_0x2161e5(0x185),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x2161e5(0x1ab),'save':_0x2161e5(0x188),'saving':_0x2161e5(0x184),'note1':_0x2161e5(0x1a9),'note2':_0x2161e5(0x1b4),'configSaved':_0x2161e5(0x192),'configError':_0x2161e5(0x190),'apiApplyInfo':{'title':_0x2161e5(0x1b2),'description':_0x2161e5(0x1aa),'univerAiLabel':_0x2161e5(0x193),'getStarted':_0x2161e5(0x1ac)},'validation':{'apiKeyRequired':_0x2161e5(0x1b9),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x2161e5(0x1a1),'invalidApiKey':_0x2161e5(0x1a2)},'connectionStatus':{'disconnected':_0x2161e5(0x187),'connecting':_0x2161e5(0x18a),'connected':_0x2161e5(0x197),'failed':_0x2161e5(0x1a0),'retrying':_0x2161e5(0x1ae)},'connectionError':{'unauthorized':_0x2161e5(0x1a5),'sessionOccupied':_0x2161e5(0x1a3),'networkError':_0x2161e5(0x189),'maxRetriesExceeded':_0x2161e5(0x1a6)}}},n=e;module[_0x2161e5(0x183)]=n;function _0x44e3(_0xf98868,_0x141751){const _0x40df6a=_0x40df();return _0x44e3=function(_0x44e3e1,_0xf5c35c){_0x44e3e1=_0x44e3e1-0x182;let _0x12f4ee=_0x40df6a[_0x44e3e1];return _0x12f4ee;},_0x44e3(_0xf98868,_0x141751);}function _0x40df(){const _0x52d22a=['2hvEURE','Failed\x20to\x20save\x20configuration','929992apGpZf','Configuration\x20saved\x20successfully','Univer\x20AI\x20Console','109206FBLjRn','Enter\x20your\x20API\x20key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','6PuSwbz','12gXziQQ','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','20cxHsLS','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Disconnected','95830loleeH','Connection\x20Failed','Invalid\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','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','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Max\x20Retries\x20Exceeded','Retrying...','367865QjrjSV','130824aRKVOP','1057573xMZlrq','What\x20is\x20API\x20Key?','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connecting...','MCP:\x20Unauthorized','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','exports','Saving...','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20connect\x20MCP','Disconnected','Save\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','1307131KUmgZt','MCP:\x20Network\x20Error','60MjrPsU'];_0x40df=function(){return _0x52d22a;};return _0x40df();}
1
+ 'use strict';const _0x3a0ed2=_0x11df;(function(_0x19f465,_0x3b48d0){const _0x21c7a6=_0x11df,_0x14566c=_0x19f465();while(!![]){try{const _0x37037f=-parseInt(_0x21c7a6(0x11f))/0x1*(-parseInt(_0x21c7a6(0x151))/0x2)+-parseInt(_0x21c7a6(0x136))/0x3+-parseInt(_0x21c7a6(0x146))/0x4+parseInt(_0x21c7a6(0x123))/0x5*(parseInt(_0x21c7a6(0x13d))/0x6)+parseInt(_0x21c7a6(0x127))/0x7+parseInt(_0x21c7a6(0x14e))/0x8*(parseInt(_0x21c7a6(0x120))/0x9)+parseInt(_0x21c7a6(0x14b))/0xa*(-parseInt(_0x21c7a6(0x132))/0xb);if(_0x37037f===_0x3b48d0)break;else _0x14566c['push'](_0x14566c['shift']());}catch(_0x58c3a0){_0x14566c['push'](_0x14566c['shift']());}}}(_0x1f65,0x598e8));function _0x11df(_0x299599,_0x525351){const _0x1f65a9=_0x1f65();return _0x11df=function(_0x11dffc,_0x42b4db){_0x11dffc=_0x11dffc-0x11f;let _0x33640b=_0x1f65a9[_0x11dffc];return _0x33640b;},_0x11df(_0x299599,_0x525351);}const e={'mcpStatus':{'disconnected':_0x3a0ed2(0x13c),'connecting':_0x3a0ed2(0x129),'connected':_0x3a0ed2(0x139),'failed':'MCP\x20Connection\x20Failed','retrying':_0x3a0ed2(0x12b),'unknown':_0x3a0ed2(0x147),'unauthorized':_0x3a0ed2(0x125),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3a0ed2(0x153),'maxRetriesExceeded':_0x3a0ed2(0x130),'clickToConnect':_0x3a0ed2(0x13b),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x3a0ed2(0x137),'description':_0x3a0ed2(0x143),'apiKey':_0x3a0ed2(0x128),'apiKeyPlaceholder':_0x3a0ed2(0x155),'apiKeyHint':_0x3a0ed2(0x12c),'enableAuth':_0x3a0ed2(0x122),'enableAuthHint':_0x3a0ed2(0x152),'connectionInfo':_0x3a0ed2(0x138),'mcpClientConfig':_0x3a0ed2(0x138),'configInstructions':_0x3a0ed2(0x14c),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3a0ed2(0x131),'configStep2':_0x3a0ed2(0x144),'configStep3':_0x3a0ed2(0x150),'sessionId':_0x3a0ed2(0x13e),'sessionIdDescription':_0x3a0ed2(0x154),'authorizationDescription':_0x3a0ed2(0x124),'configParameters':_0x3a0ed2(0x133),'maxRetries':_0x3a0ed2(0x156),'save':_0x3a0ed2(0x12d),'saving':_0x3a0ed2(0x141),'note1':_0x3a0ed2(0x12e),'note2':_0x3a0ed2(0x149),'configSaved':_0x3a0ed2(0x126),'configError':_0x3a0ed2(0x13a),'apiApplyInfo':{'title':_0x3a0ed2(0x142),'description':_0x3a0ed2(0x14d),'univerAiLabel':_0x3a0ed2(0x140),'getStarted':_0x3a0ed2(0x135)},'validation':{'apiKeyRequired':_0x3a0ed2(0x14a),'apiKeyTooShort':_0x3a0ed2(0x148),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3a0ed2(0x14f)},'connectionStatus':{'disconnected':_0x3a0ed2(0x13f),'connecting':'Connecting...','connected':_0x3a0ed2(0x12f),'failed':_0x3a0ed2(0x12a),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x3a0ed2(0x145),'sessionOccupied':_0x3a0ed2(0x121),'networkError':_0x3a0ed2(0x134),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x1f65(){const _0x24956b=['1759VZlsdb','4406859aUUZWo','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20Authentication','5WLWSQU','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Unauthorized','Configuration\x20saved\x20successfully','3506013hgkKXe','API\x20Key','MCP\x20Connecting...','Connection\x20Failed','MCP\x20Retrying...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Save\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connected','MCP:\x20Max\x20Retries\x20Exceeded','Copy\x20the\x20JSON\x20configuration\x20below','145266HgDTZk','Configuration\x20Parameters:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Get\x20your\x20API\x20key\x20in\x20seconds','668292mODTlp','MCP\x20Configuration','MCP\x20Client\x20Configuration','MCP\x20Connected','Failed\x20to\x20save\x20configuration','Click\x20to\x20connect\x20MCP','MCP\x20Disconnected','1480794tWEgUX','Session\x20ID','Disconnected','Univer\x20AI\x20Console','Saving...','What\x20is\x20API\x20Key?','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','1094168DHYlzx','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20is\x20required','290lHFCfI','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','8zKlFLa','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','10zUNsiU','Enable\x20authentication\x20for\x20secure\x20connections','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.','Enter\x20your\x20API\x20key','Max\x20Retries'];_0x1f65=function(){return _0x24956b;};return _0x1f65();}module['exports']=n;
@@ -1 +1 @@
1
- 'use strict';const _0x146c34=_0x3246;(function(_0x5bb070,_0x3ec424){const _0x54e9dd=_0x3246,_0x162b17=_0x5bb070();while(!![]){try{const _0x45d870=-parseInt(_0x54e9dd(0x11e))/0x1*(-parseInt(_0x54e9dd(0x12c))/0x2)+parseInt(_0x54e9dd(0x12b))/0x3*(-parseInt(_0x54e9dd(0x13a))/0x4)+parseInt(_0x54e9dd(0x130))/0x5+-parseInt(_0x54e9dd(0x117))/0x6*(-parseInt(_0x54e9dd(0x115))/0x7)+-parseInt(_0x54e9dd(0x132))/0x8*(parseInt(_0x54e9dd(0x116))/0x9)+-parseInt(_0x54e9dd(0x119))/0xa*(-parseInt(_0x54e9dd(0x125))/0xb)+-parseInt(_0x54e9dd(0x135))/0xc;if(_0x45d870===_0x3ec424)break;else _0x162b17['push'](_0x162b17['shift']());}catch(_0x1b71b8){_0x162b17['push'](_0x162b17['shift']());}}}(_0x5852,0x31440));const e={'mcpStatus':{'disconnected':_0x146c34(0x110),'connecting':'MCP\x20Connecting...','connected':_0x146c34(0x129),'failed':'MCP\x20Connection\x20Failed','retrying':_0x146c34(0x12a),'unknown':_0x146c34(0x12f),'unauthorized':_0x146c34(0x120),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x146c34(0x13b),'clickToConnect':_0x146c34(0x11c),'clickToConfigure':_0x146c34(0x11d)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x146c34(0x13c),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x146c34(0x136),'enableAuth':_0x146c34(0x128),'enableAuthHint':_0x146c34(0x122),'connectionInfo':_0x146c34(0x123),'mcpClientConfig':_0x146c34(0x123),'configInstructions':_0x146c34(0x134),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x146c34(0x111),'configStep2':_0x146c34(0x12e),'configStep3':_0x146c34(0x114),'sessionId':_0x146c34(0x138),'sessionIdDescription':_0x146c34(0x121),'authorizationDescription':_0x146c34(0x126),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x146c34(0x133),'save':_0x146c34(0x13e),'saving':_0x146c34(0x118),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x146c34(0x10f),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x146c34(0x12d),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x146c34(0x11a),'univerAiLabel':_0x146c34(0x131),'getStarted':_0x146c34(0x124)},'validation':{'apiKeyRequired':_0x146c34(0x113),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x146c34(0x112),'invalidApiKey':_0x146c34(0x11b)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x146c34(0x13d),'failed':_0x146c34(0x127),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x146c34(0x139),'networkError':_0x146c34(0x137),'maxRetriesExceeded':_0x146c34(0x11f)}}},n=e;module['exports']=n;function _0x3246(_0x5cf9da,_0x369997){const _0x585252=_0x5852();return _0x3246=function(_0x3246ad,_0x8b51a2){_0x3246ad=_0x3246ad-0x10f;let _0x18ae6a=_0x585252[_0x3246ad];return _0x18ae6a;},_0x3246(_0x5cf9da,_0x369997);}function _0x5852(){const _0x345975=['Click\x20to\x20configure\x20MCP','179kakicJ','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Unauthorized','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','178079eadvVT','API\x20key\x20with\x20Bearer\x20prefix.','Connection\x20Failed','Enable\x20Authentication','MCP\x20Connected','MCP\x20Retrying...','6063YvxVui','112oyEZbK','Failed\x20to\x20save\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Unknown\x20Status','1995520UOmcru','Univer\x20AI\x20Console','8kTQdLr','Max\x20Retries','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','2422200NuGEcc','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session\x20ID','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','356ijQQyP','MCP:\x20Max\x20Retries\x20Exceeded','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connected','Save\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20configuration','API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','21HEojxW','287649SDqiZV','380310NYLVbK','Saving...','10rqrSJL','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20connect\x20MCP'];_0x5852=function(){return _0x345975;};return _0x5852();}
1
+ 'use strict';const _0x469196=_0x25a0;(function(_0x56290d,_0x14c822){const _0x889051=_0x25a0,_0x5bede5=_0x56290d();while(!![]){try{const _0x1e4ed5=-parseInt(_0x889051(0xe6))/0x1+parseInt(_0x889051(0xb6))/0x2+parseInt(_0x889051(0xc9))/0x3+-parseInt(_0x889051(0xc1))/0x4*(parseInt(_0x889051(0xc7))/0x5)+-parseInt(_0x889051(0xe2))/0x6*(parseInt(_0x889051(0xba))/0x7)+parseInt(_0x889051(0xbe))/0x8*(-parseInt(_0x889051(0xcb))/0x9)+parseInt(_0x889051(0xce))/0xa;if(_0x1e4ed5===_0x14c822)break;else _0x5bede5['push'](_0x5bede5['shift']());}catch(_0x549eb8){_0x5bede5['push'](_0x5bede5['shift']());}}}(_0x496b,0xb722f));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x469196(0xd7),'connected':'MCP\x20Connected','failed':_0x469196(0xb5),'retrying':_0x469196(0xd3),'unknown':_0x469196(0xc4),'unauthorized':_0x469196(0xc2),'sessionOccupied':_0x469196(0xb9),'networkError':_0x469196(0xd0),'maxRetriesExceeded':_0x469196(0xbf),'clickToConnect':_0x469196(0xcf),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x469196(0xb8),'description':_0x469196(0xcc),'apiKey':_0x469196(0xb4),'apiKeyPlaceholder':_0x469196(0xbc),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x469196(0xd6),'connectionInfo':_0x469196(0xdd),'mcpClientConfig':_0x469196(0xdd),'configInstructions':_0x469196(0xc0),'configStepTitle':_0x469196(0xd1),'configStep1':_0x469196(0xd4),'configStep2':_0x469196(0xe7),'configStep3':_0x469196(0xc3),'sessionId':_0x469196(0xd9),'sessionIdDescription':_0x469196(0xe0),'authorizationDescription':_0x469196(0xe1),'configParameters':_0x469196(0xdc),'maxRetries':'Max\x20Retries','save':_0x469196(0xcd),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x469196(0xde),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x469196(0xbb),'apiApplyInfo':{'title':_0x469196(0xca),'description':_0x469196(0xdb),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x469196(0xc8)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x469196(0xdf),'invalidConfig':_0x469196(0xd8),'invalidApiKey':_0x469196(0xc6)},'connectionStatus':{'disconnected':_0x469196(0xe3),'connecting':_0x469196(0xbd),'connected':_0x469196(0xe4),'failed':'Connection\x20Failed','retrying':_0x469196(0xe5)},'connectionError':{'unauthorized':_0x469196(0xd2),'sessionOccupied':_0x469196(0xd5),'networkError':_0x469196(0xc5),'maxRetriesExceeded':_0x469196(0xda)}}},n=e;module[_0x469196(0xb7)]=n;function _0x25a0(_0x41397c,_0x4b3526){const _0x496b1c=_0x496b();return _0x25a0=function(_0x25a0f4,_0x134eb1){_0x25a0f4=_0x25a0f4-0xb4;let _0x556573=_0x496b1c[_0x25a0f4];return _0x556573;},_0x25a0(_0x41397c,_0x4b3526);}function _0x496b(){const _0x5c05ed=['exports','MCP\x20Configuration','MCP:\x20Session\x20ID\x20Occupied','118139qdzNdL','Failed\x20to\x20save\x20configuration','Enter\x20your\x20API\x20key','Connecting...','8UMVTly','MCP:\x20Max\x20Retries\x20Exceeded','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','16eqThHf','MCP:\x20Unauthorized','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Unknown\x20Status','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','981355ExLvMC','Get\x20your\x20API\x20key\x20in\x20seconds','2346060xjWLrI','What\x20is\x20API\x20Key?','11060235wTLJGO','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Save\x20Configuration','29963170oYSGwY','Click\x20to\x20connect\x20MCP','MCP:\x20Network\x20Error','Configuration\x20Steps:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Retrying...','Copy\x20the\x20JSON\x20configuration\x20below','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connecting...','Invalid\x20configuration','Session\x20ID','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Parameters:','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20with\x20Bearer\x20prefix.','6oUQUmc','Disconnected','Connected','Retrying...','1243766zMglKj','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key','MCP\x20Connection\x20Failed','492864mkzbMh'];_0x496b=function(){return _0x5c05ed;};return _0x496b();}
@@ -1 +1 @@
1
- 'use strict';const _0x28954d=_0x25b4;(function(_0x585e9d,_0x1a1216){const _0x452017=_0x25b4,_0x5ba475=_0x585e9d();while(!![]){try{const _0x122703=-parseInt(_0x452017(0x174))/0x1*(-parseInt(_0x452017(0x17c))/0x2)+parseInt(_0x452017(0x177))/0x3*(parseInt(_0x452017(0x155))/0x4)+parseInt(_0x452017(0x153))/0x5+-parseInt(_0x452017(0x157))/0x6+-parseInt(_0x452017(0x164))/0x7+-parseInt(_0x452017(0x182))/0x8+-parseInt(_0x452017(0x17b))/0x9;if(_0x122703===_0x1a1216)break;else _0x5ba475['push'](_0x5ba475['shift']());}catch(_0x2f28d8){_0x5ba475['push'](_0x5ba475['shift']());}}}(_0xf774,0xc7879));function _0xf774(){const _0x44f9c4=['请输入您的\x20API\x20密钥','MCP\x20客户端配置','5996416XXtQGd','API\x20密钥','启用身份验证','您的\x20API\x20密钥将在此浏览器中本地存储','5974115uhOoej','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','144916FSRlRy','超出最大重试次数,请稍后再试','6122496kRQKSe','网络连接错误,请检查您的网络连接','重启您的\x20MCP\x20客户端以使配置生效','配置保存失败','配置更改将立即生效','配置无效','您的\x20API\x20密钥安全存储在本地存储中','几秒钟内获取您的\x20API\x20密钥','复制以下\x20JSON\x20配置','保存中...','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','将以下配置添加到您的\x20MCP\x20客户端设置中:','什么是\x20API\x20密钥?','4598405zayCDo','未连接','Univer\x20AI\x20控制台','API\x20密钥无效,请检查密钥是否正确','会话ID','配置参数:','保存配置','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP:\x20超出最大重试次数','MCP\x20配置','连接失败','重连中...','API\x20密钥长度至少需要\x2010\x20位','MCP\x20连接失败','MCP\x20已连接','API\x20密钥不能为空','1117IfApGg','MCP\x20连接中...','MCP:\x20会话\x20ID\x20已被占用','132QmcFvo','已连接','启用身份验证以获得安全连接','将配置添加到您的\x20MCP\x20客户端设置文件中','4719168aSSshX','1754RodnLH','MCP\x20状态未知','最大重试次数','MCP:\x20网络错误'];_0xf774=function(){return _0x44f9c4;};return _0xf774();}function _0x25b4(_0x63728,_0x1dad1e){const _0xf774ae=_0xf774();return _0x25b4=function(_0x25b45e,_0x1a3005){_0x25b45e=_0x25b45e-0x150;let _0x2242c8=_0xf774ae[_0x25b45e];return _0x2242c8;},_0x25b4(_0x63728,_0x1dad1e);}const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x28954d(0x175),'connected':_0x28954d(0x172),'failed':_0x28954d(0x171),'retrying':'MCP\x20重连中...','unknown':_0x28954d(0x17d),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x28954d(0x176),'networkError':_0x28954d(0x17f),'maxRetriesExceeded':_0x28954d(0x16c),'clickToConnect':'点击连接\x20MCP','clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x28954d(0x16d),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x28954d(0x150),'apiKeyPlaceholder':_0x28954d(0x180),'apiKeyHint':_0x28954d(0x152),'enableAuth':_0x28954d(0x151),'enableAuthHint':_0x28954d(0x179),'connectionInfo':_0x28954d(0x181),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x28954d(0x162),'configStepTitle':'配置步骤:','configStep1':_0x28954d(0x15f),'configStep2':_0x28954d(0x17a),'configStep3':_0x28954d(0x159),'sessionId':_0x28954d(0x168),'sessionIdDescription':_0x28954d(0x154),'authorizationDescription':_0x28954d(0x16b),'configParameters':_0x28954d(0x169),'maxRetries':_0x28954d(0x17e),'save':_0x28954d(0x16a),'saving':_0x28954d(0x160),'note1':_0x28954d(0x15b),'note2':_0x28954d(0x15d),'configSaved':'配置保存成功','configError':_0x28954d(0x15a),'apiApplyInfo':{'title':_0x28954d(0x163),'description':_0x28954d(0x161),'univerAiLabel':_0x28954d(0x166),'getStarted':_0x28954d(0x15e)},'validation':{'apiKeyRequired':_0x28954d(0x173),'apiKeyTooShort':_0x28954d(0x170),'invalidConfig':_0x28954d(0x15c),'invalidApiKey':_0x28954d(0x167)},'connectionStatus':{'disconnected':_0x28954d(0x165),'connecting':'连接中...','connected':_0x28954d(0x178),'failed':_0x28954d(0x16e),'retrying':_0x28954d(0x16f)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x28954d(0x158),'maxRetriesExceeded':_0x28954d(0x156)}}};module['exports']=e;
1
+ 'use strict';function _0x39fa(_0x34bbf3,_0x572f49){const _0x266b9e=_0x266b();return _0x39fa=function(_0x39fae3,_0x5a3d7b){_0x39fae3=_0x39fae3-0x10e;let _0x5700be=_0x266b9e[_0x39fae3];return _0x5700be;},_0x39fa(_0x34bbf3,_0x572f49);}const _0x262abc=_0x39fa;function _0x266b(){const _0x38bd84=['API\x20密钥长度至少需要\x2010\x20位','配置无效','网络连接错误,请检查您的网络连接','请输入您的\x20API\x20密钥','MCP\x20连接失败','MCP\x20连接中...','MCP:\x20会话\x20ID\x20已被占用','重启您的\x20MCP\x20客户端以使配置生效','1351872BJHzfy','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','MCP:\x20未授权','启用身份验证以获得安全连接','2027536IwBiNy','MCP\x20状态未知','3tDAOCm','API\x20密钥不能为空','什么是\x20API\x20密钥?','API\x20密钥无效,请检查密钥是否正确','配置\x20MCP\x20使用\x20AI\x20操作电子表格','会话ID','API\x20密钥','MCP\x20已连接','连接中...','1386340mjKiDS','88236zgZMTB','会话\x20ID\x20已被占用,请稍后再试','MCP\x20已断开','启用身份验证','MCP\x20客户端配置','点击连接\x20MCP','配置更改将立即生效','配置步骤:','复制以下\x20JSON\x20配置','exports','5020090BJriBG','979746WDinyF','重连中...','权限验证失败,请检查您的\x20API\x20密钥','252590luPqnI','带有\x20Bearer\x20前缀的\x20API\x20密钥。','已连接','434SNYQiJ','693QkYCKc'];_0x266b=function(){return _0x38bd84;};return _0x266b();}(function(_0x3e86ad,_0x2a5230){const _0x58be39=_0x39fa,_0x1ddf15=_0x3e86ad();while(!![]){try{const _0x7a73d5=parseInt(_0x58be39(0x11d))/0x1+parseInt(_0x58be39(0x131))/0x2*(parseInt(_0x58be39(0x133))/0x3)+parseInt(_0x58be39(0x111))/0x4+parseInt(_0x58be39(0x11c))/0x5+parseInt(_0x58be39(0x112))/0x6*(-parseInt(_0x58be39(0x123))/0x7)+parseInt(_0x58be39(0x12d))/0x8+parseInt(_0x58be39(0x124))/0x9*(-parseInt(_0x58be39(0x120))/0xa);if(_0x7a73d5===_0x2a5230)break;else _0x1ddf15['push'](_0x1ddf15['shift']());}catch(_0x5a85b5){_0x1ddf15['push'](_0x1ddf15['shift']());}}}(_0x266b,0xa0402));const e={'mcpStatus':{'disconnected':_0x262abc(0x114),'connecting':_0x262abc(0x12a),'connected':_0x262abc(0x10f),'failed':_0x262abc(0x129),'retrying':'MCP\x20重连中...','unknown':_0x262abc(0x132),'unauthorized':_0x262abc(0x12f),'sessionOccupied':_0x262abc(0x12b),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x262abc(0x117),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':'MCP\x20配置','description':_0x262abc(0x137),'apiKey':_0x262abc(0x10e),'apiKeyPlaceholder':_0x262abc(0x128),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x262abc(0x115),'enableAuthHint':_0x262abc(0x130),'connectionInfo':_0x262abc(0x116),'mcpClientConfig':_0x262abc(0x116),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x262abc(0x119),'configStep1':_0x262abc(0x11a),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x262abc(0x12c),'sessionId':_0x262abc(0x138),'sessionIdDescription':_0x262abc(0x12e),'authorizationDescription':_0x262abc(0x121),'configParameters':'配置参数:','maxRetries':'最大重试次数','save':'保存配置','saving':'保存中...','note1':_0x262abc(0x118),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':'配置保存失败','apiApplyInfo':{'title':_0x262abc(0x135),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x262abc(0x134),'apiKeyTooShort':_0x262abc(0x125),'invalidConfig':_0x262abc(0x126),'invalidApiKey':_0x262abc(0x136)},'connectionStatus':{'disconnected':'未连接','connecting':_0x262abc(0x110),'connected':_0x262abc(0x122),'failed':'连接失败','retrying':_0x262abc(0x11e)},'connectionError':{'unauthorized':_0x262abc(0x11f),'sessionOccupied':_0x262abc(0x113),'networkError':_0x262abc(0x127),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};module[_0x262abc(0x11b)]=e;
@@ -1 +1 @@
1
- 'use strict';const _0x493536=_0x206d;(function(_0x4d2d68,_0x5add38){const _0x41fa4c=_0x206d,_0x542a8a=_0x4d2d68();while(!![]){try{const _0x411393=parseInt(_0x41fa4c(0xc9))/0x1+parseInt(_0x41fa4c(0xd1))/0x2+parseInt(_0x41fa4c(0xd9))/0x3*(-parseInt(_0x41fa4c(0xe3))/0x4)+parseInt(_0x41fa4c(0xd6))/0x5*(-parseInt(_0x41fa4c(0xdd))/0x6)+parseInt(_0x41fa4c(0xd0))/0x7*(parseInt(_0x41fa4c(0xbb))/0x8)+-parseInt(_0x41fa4c(0xb8))/0x9*(-parseInt(_0x41fa4c(0xcb))/0xa)+-parseInt(_0x41fa4c(0xc5))/0xb*(parseInt(_0x41fa4c(0xdc))/0xc);if(_0x411393===_0x5add38)break;else _0x542a8a['push'](_0x542a8a['shift']());}catch(_0x28550d){_0x542a8a['push'](_0x542a8a['shift']());}}}(_0x2573,0xaabcb));function _0x2573(){const _0x6ed37=['Session\x20ID','193854vruAMp','Failed\x20to\x20save\x20configuration','MCP\x20Retrying...','12uddERl','360DFOLdw','Saving...','Click\x20to\x20connect\x20MCP','API\x20key\x20is\x20required','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connection\x20Failed','28iXJDTk','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20Key','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Network\x20Error','exports','What\x20is\x20API\x20Key?','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','145332GzYmpg','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Unknown\x20Status','10106424KhGlYr','MCP\x20Connected','MCP\x20Client\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Univer\x20AI\x20Console','MCP\x20Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20configure\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','9979618dTfjwK','Configuration\x20Parameters:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Unauthorized','615670TBpnnc','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','380ZUtFgJ','Connecting...','Disconnected','MCP\x20Connection\x20Failed','Configuration\x20saved\x20successfully','7TghYao','29852KITFKY','MCP\x20Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Retrying...','MCP\x20Configuration','37385pCDDSO','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'];_0x2573=function(){return _0x6ed37;};return _0x2573();}function _0x206d(_0x20d968,_0x4065af){const _0x2573af=_0x2573();return _0x206d=function(_0x206df8,_0xcbf202){_0x206df8=_0x206df8-0xb1;let _0x2813a8=_0x2573af[_0x206df8];return _0x2813a8;},_0x206d(_0x20d968,_0x4065af);}const e={'mcpStatus':{'disconnected':_0x493536(0xd2),'connecting':_0x493536(0xc0),'connected':_0x493536(0xbc),'failed':_0x493536(0xce),'retrying':_0x493536(0xdb),'unknown':_0x493536(0xba),'unauthorized':_0x493536(0xc8),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x493536(0xb4),'maxRetriesExceeded':_0x493536(0xbe),'clickToConnect':_0x493536(0xdf),'clickToConfigure':_0x493536(0xc2)},'mcpConfig':{'title':_0x493536(0xd5),'description':_0x493536(0xd3),'apiKey':_0x493536(0xb2),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x493536(0xb3),'connectionInfo':_0x493536(0xbd),'mcpClientConfig':_0x493536(0xbd),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x493536(0xc3),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x493536(0xca),'sessionId':_0x493536(0xd8),'sessionIdDescription':_0x493536(0xc1),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x493536(0xc6),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x493536(0xde),'note1':_0x493536(0xb7),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x493536(0xcf),'configError':_0x493536(0xda),'apiApplyInfo':{'title':_0x493536(0xb6),'description':_0x493536(0xb9),'univerAiLabel':_0x493536(0xbf),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x493536(0xe0),'apiKeyTooShort':_0x493536(0xc4),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x493536(0xd7)},'connectionStatus':{'disconnected':_0x493536(0xcd),'connecting':_0x493536(0xcc),'connected':'Connected','failed':_0x493536(0xe2),'retrying':_0x493536(0xd4)},'connectionError':{'unauthorized':_0x493536(0xb1),'sessionOccupied':_0x493536(0xc7),'networkError':_0x493536(0xe1),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x493536(0xb5)]=n;
1
+ 'use strict';const _0x55863a=_0x179a;(function(_0x916933,_0x1daa34){const _0x2ba4b5=_0x179a,_0xa2d1e=_0x916933();while(!![]){try{const _0x4c6cc7=parseInt(_0x2ba4b5(0xa5))/0x1*(-parseInt(_0x2ba4b5(0xb9))/0x2)+parseInt(_0x2ba4b5(0xab))/0x3+-parseInt(_0x2ba4b5(0x99))/0x4+-parseInt(_0x2ba4b5(0xb1))/0x5*(parseInt(_0x2ba4b5(0xa6))/0x6)+-parseInt(_0x2ba4b5(0xa0))/0x7*(-parseInt(_0x2ba4b5(0x97))/0x8)+-parseInt(_0x2ba4b5(0xaa))/0x9+parseInt(_0x2ba4b5(0xa7))/0xa;if(_0x4c6cc7===_0x1daa34)break;else _0xa2d1e['push'](_0xa2d1e['shift']());}catch(_0x3b0c52){_0xa2d1e['push'](_0xa2d1e['shift']());}}}(_0x5de2,0x64692));function _0x179a(_0x37127c,_0x167d12){const _0x5de263=_0x5de2();return _0x179a=function(_0x179a18,_0x665778){_0x179a18=_0x179a18-0x94;let _0x181526=_0x5de263[_0x179a18];return _0x181526;},_0x179a(_0x37127c,_0x167d12);}function _0x5de2(){const _0x53d24e=['Invalid\x20configuration','Session\x20ID','MCP\x20Connecting...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20Key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','Get\x20your\x20API\x20key\x20in\x20seconds','Enter\x20your\x20API\x20key','8MtOane','Failed\x20to\x20save\x20configuration','674116rPzFTT','Saving...','Configuration\x20saved\x20successfully','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Univer\x20AI\x20Console','Click\x20to\x20configure\x20MCP','Enable\x20authentication\x20for\x20secure\x20connections','5420737ZLtRLk','Click\x20to\x20connect\x20MCP','API\x20key\x20with\x20Bearer\x20prefix.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20Authentication','2473oxILfN','12GvUnPM','16757930IVhkRE','MCP\x20Client\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','3666942qdmcgA','16923AtsWXe','Disconnected','MCP:\x20Unauthorized','Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connecting...','1965070uRtIvu','MCP\x20Disconnected','What\x20is\x20API\x20Key?','Configuration\x20Steps:','Max\x20Retries','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','552ZFQBHr','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:'];_0x5de2=function(){return _0x53d24e;};return _0x5de2();}const e={'mcpStatus':{'disconnected':_0x55863a(0xb2),'connecting':_0x55863a(0xbf),'connected':'MCP\x20Connected','failed':_0x55863a(0xb7),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x55863a(0xad),'sessionOccupied':_0x55863a(0x94),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x55863a(0xa1),'clickToConfigure':_0x55863a(0x9e)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x55863a(0xbb),'apiKey':_0x55863a(0xc1),'apiKeyPlaceholder':_0x55863a(0x96),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x55863a(0xa4),'enableAuthHint':_0x55863a(0x9f),'connectionInfo':_0x55863a(0xa8),'mcpClientConfig':_0x55863a(0xa8),'configInstructions':_0x55863a(0xbc),'configStepTitle':_0x55863a(0xb4),'configStep1':_0x55863a(0xa9),'configStep2':_0x55863a(0xc2),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x55863a(0xbe),'sessionIdDescription':_0x55863a(0xba),'authorizationDescription':_0x55863a(0xa2),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x55863a(0xb5),'save':'Save\x20Configuration','saving':_0x55863a(0x9a),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x55863a(0xb8),'configSaved':_0x55863a(0x9b),'configError':_0x55863a(0x98),'apiApplyInfo':{'title':_0x55863a(0xb3),'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':_0x55863a(0x9d),'getStarted':_0x55863a(0x95)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x55863a(0x9c),'invalidConfig':_0x55863a(0xbd),'invalidApiKey':_0x55863a(0xaf)},'connectionStatus':{'disconnected':_0x55863a(0xac),'connecting':_0x55863a(0xb0),'connected':'Connected','failed':_0x55863a(0xae),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x55863a(0xc0),'sessionOccupied':_0x55863a(0xa3),'networkError':_0x55863a(0xb6),'maxRetriesExceeded':_0x55863a(0xc3)}}},n=e;module['exports']=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x23152a=_0x5160;(function(_0x4f67c5,_0x3f4912){var _0x16d57b=_0x5160,_0x59c410=_0x4f67c5();while(!![]){try{var _0x2088cf=parseInt(_0x16d57b(0x113))/0x1+parseInt(_0x16d57b(0x23a))/0x2*(-parseInt(_0x16d57b(0x1df))/0x3)+-parseInt(_0x16d57b(0x1f4))/0x4+parseInt(_0x16d57b(0x1fa))/0x5+-parseInt(_0x16d57b(0x24f))/0x6*(-parseInt(_0x16d57b(0x12a))/0x7)+-parseInt(_0x16d57b(0x21e))/0x8*(-parseInt(_0x16d57b(0x1cc))/0x9)+-parseInt(_0x16d57b(0x145))/0xa;if(_0x2088cf===_0x3f4912)break;else _0x59c410['push'](_0x59c410['shift']());}catch(_0x59bea3){_0x59c410['push'](_0x59c410['shift']());}}}(_0x27d3,0x1b3b2));var we=Object[_0x23152a(0x1fe)],Ee=(_0x5a159e,_0x5d4acc,_0x4dd671)=>_0x5d4acc in _0x5a159e?we(_0x5a159e,_0x5d4acc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4dd671}):_0x5a159e[_0x5d4acc]=_0x4dd671,S=(_0x5e72be,_0x10d7d2,_0x5d855a)=>Ee(_0x5e72be,typeof _0x10d7d2!='symbol'?_0x10d7d2+'':_0x10d7d2,_0x5d855a);import{LocaleService as _0x29ac55,Inject as _0x10c81c,Injector as _0x5b2e98,IConfigService as _0x1496de,ILocalStorageService as _0x118e2e,ILogService as _0x31a0e3,Disposable as _0x460ffb,CommandType as _0x1911c4,ICommandService as _0xf4c6c0,DependentOn as _0x2f5397,Plugin as _0x3d4f76,merge as _0x16b0a4}from'@univerjs/core';import{jsxs as _0x200cfc,jsx as _0xbc2bc3}from'react/jsx-runtime';import{MCPConnectionStatus as _0x4d5d6a,MCPConnectionError as _0x5b89c7,MCPConnectionController as _0x260dce,MCP_PLUGIN_CONFIG_KEY as _0x10b2f0,UniverMCPPlugin as _0xfd0ba3}from'@univerjs-pro/mcp';import{Input as _0x1cf5dc,Button as _0x3a18fc,MessageType as _0x32a88a,Tooltip as _0x28285f,clsx as _0x1e22a7}from'@univerjs/design';import{useDependency as _0xec9461,useObservable as _0x51a1cc,IUIPartsService as _0x1846c7,IDialogService as _0x382591,IMessageService as _0x43578f,ComponentManager as _0x5a9e01,connectInjector as _0x16db0e,BuiltInUIPart as _0x2fa4e8,MenuItemType as _0xd12530,RibbonStartGroup as _0x529546,IMenuManagerService as _0x1033be}from'@univerjs/ui';import{BehaviorSubject as _0x25ddcd}from'rxjs';import{forwardRef as _0x3cd0b1,useRef as _0x2c9c56,createElement as _0x88ee49,useState as _0x39ca44,useCallback as _0x38eed3}from'react';import{ISocketService as _0x28fc4b,WebSocketService as _0x5e8ef7}from'@univerjs/network';var f=function(){var _0x2161db=_0x23152a;return f=Object['assign']||function(_0x54f32a){var _0x3bcb27=_0x5160;for(var _0xf7f656,_0x30cae2=0x1,_0x57c110=arguments[_0x3bcb27(0x239)];_0x30cae2<_0x57c110;_0x30cae2++){_0xf7f656=arguments[_0x30cae2];for(var _0x1a84d1 in _0xf7f656)Object[_0x3bcb27(0x129)][_0x3bcb27(0x1ab)][_0x3bcb27(0x25b)](_0xf7f656,_0x1a84d1)&&(_0x54f32a[_0x1a84d1]=_0xf7f656[_0x1a84d1]);}return _0x54f32a;},f[_0x2161db(0x154)](this,arguments);},Ye=function(_0x37a530,_0x493666){var _0x5144b0=_0x23152a,_0x2438cd={};for(var _0x49b8a1 in _0x37a530)Object['prototype'][_0x5144b0(0x1ab)][_0x5144b0(0x25b)](_0x37a530,_0x49b8a1)&&_0x493666[_0x5144b0(0x1f2)](_0x49b8a1)<0x0&&(_0x2438cd[_0x49b8a1]=_0x37a530[_0x49b8a1]);if(_0x37a530!=null&&typeof Object[_0x5144b0(0x20e)]=='function'){for(var _0x2dc61c=0x0,_0x49b8a1=Object[_0x5144b0(0x20e)](_0x37a530);_0x2dc61c<_0x49b8a1[_0x5144b0(0x239)];_0x2dc61c++)_0x493666['indexOf'](_0x49b8a1[_0x2dc61c])<0x0&&Object['prototype'][_0x5144b0(0x212)][_0x5144b0(0x25b)](_0x37a530,_0x49b8a1[_0x2dc61c])&&(_0x2438cd[_0x49b8a1[_0x2dc61c]]=_0x37a530[_0x49b8a1[_0x2dc61c]]);}return _0x2438cd;},w=_0x3cd0b1(function(_0x1c43a5,_0x1a4dd9){var _0x36b053=_0x23152a,_0x534a3d=_0x1c43a5[_0x36b053(0x117)],_0x4f52de=_0x1c43a5['id'],_0x31c433=_0x1c43a5[_0x36b053(0x13e)],_0x33ad60=_0x1c43a5[_0x36b053(0x148)],_0x3f4fa9=Ye(_0x1c43a5,['icon','id',_0x36b053(0x13e),'extend']),_0xeab17d=_0x36b053(0x243)[_0x36b053(0x1b0)](_0x4f52de,'\x20')['concat'](_0x31c433||'')[_0x36b053(0x1cd)](),_0x51a64c=_0x2c9c56('_'[_0x36b053(0x1b0)](Xe()));return ue(_0x534a3d,''[_0x36b053(0x1b0)](_0x4f52de),{'defIds':_0x534a3d[_0x36b053(0x1b6)],'idSuffix':_0x51a64c['current']},f({'ref':_0x1a4dd9,'className':_0xeab17d},_0x3f4fa9),_0x33ad60);});function ue(_0xaf2a06,_0x58a108,_0x33531e,_0x25f027,_0x4c81dc){var _0x56bf3e=_0x23152a;return _0x88ee49(_0xaf2a06[_0x56bf3e(0x1e3)],f(f({'key':_0x58a108},Ze(_0xaf2a06,_0x33531e,_0x4c81dc)),_0x25f027),(qe(_0xaf2a06,_0x33531e)['children']||[])[_0x56bf3e(0x1e9)](function(_0x4adb08,_0x31a7c2){var _0x1370b1=_0x56bf3e;return ue(_0x4adb08,''['concat'](_0x58a108,'-')[_0x1370b1(0x1b0)](_0xaf2a06[_0x1370b1(0x1e3)],'-')['concat'](_0x31a7c2),_0x33531e,void 0x0,_0x4c81dc);}));}function Ze(_0x3c912d,_0x42b26c,_0x53b44e){var _0x28326b=_0x23152a,_0x55966d=f({},_0x3c912d[_0x28326b(0x137)]);_0x53b44e!=null&&_0x53b44e[_0x28326b(0x10b)]&&_0x55966d[_0x28326b(0x16d)]==='colorChannel1'&&(_0x55966d[_0x28326b(0x16d)]=_0x53b44e[_0x28326b(0x10b)]),_0x3c912d['tag']===_0x28326b(0x208)&&_0x55966d['id']&&(_0x55966d['id']=_0x55966d['id']+_0x42b26c[_0x28326b(0x1e6)]),Object[_0x28326b(0x122)](_0x55966d)[_0x28326b(0x1e5)](function(_0x4ed912){var _0x3f4399=_0x28326b,_0x95bd23=_0x4ed912[0x0],_0x33870c=_0x4ed912[0x1];_0x95bd23==='mask'&&typeof _0x33870c==_0x3f4399(0x20f)&&(_0x55966d[_0x95bd23]=_0x33870c[_0x3f4399(0x175)](/url\(#(.*)\)/,_0x3f4399(0x260)[_0x3f4399(0x1b0)](_0x42b26c[_0x3f4399(0x1e6)],')')));});var _0x4ac42f=_0x42b26c[_0x28326b(0x1b6)];return!_0x4ac42f||_0x4ac42f['length']===0x0||(_0x3c912d[_0x28326b(0x1e3)]==='use'&&_0x55966d['xlink:href']&&(_0x55966d[_0x28326b(0x1b3)]=_0x55966d[_0x28326b(0x1b3)]+_0x42b26c[_0x28326b(0x1e6)]),Object[_0x28326b(0x122)](_0x55966d)[_0x28326b(0x1e5)](function(_0xfef017){var _0x26079e=_0x28326b,_0x24fff2=_0xfef017[0x0],_0x2feb6d=_0xfef017[0x1];typeof _0x2feb6d=='string'&&(_0x55966d[_0x24fff2]=_0x2feb6d['replace'](/url\(#(.*)\)/,_0x26079e(0x260)[_0x26079e(0x1b0)](_0x42b26c[_0x26079e(0x1e6)],')')));})),_0x55966d;}function qe(_0x26ce21,_0x1cb27d){var _0x5dfefe=_0x23152a,_0x368b81,_0x16def6=_0x1cb27d[_0x5dfefe(0x1b6)];return!_0x16def6||_0x16def6[_0x5dfefe(0x239)]===0x0?_0x26ce21:_0x26ce21[_0x5dfefe(0x1e3)]===_0x5dfefe(0x153)&&(!((_0x368b81=_0x26ce21[_0x5dfefe(0x173)])===null||_0x368b81===void 0x0)&&_0x368b81[_0x5dfefe(0x239)])?f(f({},_0x26ce21),{'children':_0x26ce21['children'][_0x5dfefe(0x1e9)](function(_0x268212){var _0x300e4e=_0x5dfefe;return typeof _0x268212[_0x300e4e(0x137)]['id']==_0x300e4e(0x20f)&&_0x16def6&&_0x16def6[_0x300e4e(0x19c)](_0x268212[_0x300e4e(0x137)]['id'])?f(f({},_0x268212),{'attrs':f(f({},_0x268212[_0x300e4e(0x137)]),{'id':_0x268212['attrs']['id']+_0x1cb27d[_0x300e4e(0x1e6)]})}):_0x268212;})}):_0x26ce21;}function Xe(){var _0x417906=_0x23152a;return Math['random']()[_0x417906(0x1d4)](0x24)['substring'](0x2,0x8);}w[_0x23152a(0x227)]='UniverIcon';var Je={'tag':_0x23152a(0x1da),'attrs':{'xmlns':_0x23152a(0x1e8),'fill':'none','viewBox':_0x23152a(0x240),'width':_0x23152a(0x21b),'height':'1em'},'children':[{'tag':_0x23152a(0x1f6),'attrs':{'fill':_0x23152a(0x1d8),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x23152a(0x123),'clipRule':'evenodd'}}]},le=_0x3cd0b1(function(_0x3825af,_0xfe4203){var _0x50c7f7=_0x23152a;return _0x88ee49(w,Object[_0x50c7f7(0x249)]({},_0x3825af,{'id':_0x50c7f7(0x23e),'ref':_0xfe4203,'icon':Je}));});le[_0x23152a(0x227)]=_0x23152a(0x1eb);var Qe={'tag':_0x23152a(0x1da),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x23152a(0x1fd),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x23152a(0x21b)},'children':[{'tag':_0x23152a(0x1f6),'attrs':{'stroke':_0x23152a(0x1d8),'d':_0x23152a(0x17f),'strokeLinecap':_0x23152a(0x107),'strokeLinejoin':_0x23152a(0x107),'strokeWidth':1.33}},{'tag':_0x23152a(0x1f6),'attrs':{'stroke':_0x23152a(0x1d8),'d':_0x23152a(0x179),'strokeLinecap':_0x23152a(0x107),'strokeLinejoin':_0x23152a(0x107),'strokeWidth':1.33}}]},ve=_0x3cd0b1(function(_0x5e6026,_0x53b410){var _0x3aff35=_0x23152a;return _0x88ee49(w,Object[_0x3aff35(0x249)]({},_0x5e6026,{'id':_0x3aff35(0x182),'ref':_0x53b410,'icon':Qe}));});ve[_0x23152a(0x227)]='CloseSmallSingle';function _0x27d3(){var _0x506a92=['currentColor','mcpConfig.connectionStatus.connected','svg','保存中...','Max\x20Retries','FAILED','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','81aUxriQ','mcpStatus.connecting','连接中...','CONNECTED','tag','_config','forEach','idSuffix','API\x20key\x20with\x20Bearer\x20prefix.','http://www.w3.org/2000/svg','map','MCP:\x20Network\x20Error','CheckMarkIcon','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer.ai','配置无效','MCP\x20Retrying...','mcpStatus.maxRetriesExceeded','_initStatusComponent','indexOf','mcpStatus.clickToConnect','859224mwdoxC','Univer\x20AI\x20控制台','path','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','几秒钟内获取您的\x20API\x20密钥','bottom','1077190yEUyMB','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','none','defineProperty','connectionError$','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.authorizationDescription','mcpConfig.connectionStatus.connecting','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','warn','mcpConfig.connectionError.maxRetriesExceeded','Connection\x20Failed','isValid','mask','MCP\x20连接中...','univer-bg-gray-500','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_injector','MCP:\x20会话\x20ID\x20已被占用','getOwnPropertySymbols','string','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','<API_KEY>','propertyIsEnumerable','_localStorageService','javascript:void(0)','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','span','univer-flex-shrink-0\x20univer-text-red-500','add','on-line-icon_clip0_910_349','MAX_RETRIES_EXCEEDED','1em','pre','mcpConfig.configParameters','274960YnCDjU','mcpConfig.sessionIdDescription','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','BUTTON','mcpConfig.validation.apiKeyTooShort','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_configService','text','univer-flex-1','displayName','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','univer-text-sm\x20univer-text-gray-500','univer-flex\x20univer-items-center\x20univer-gap-2','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-flex\x20univer-items-center','M0\x200H16V16H0z','Enable\x20authentication\x20for\x20secure\x20connections','univer-flex\x20univer-items-start\x20univer-gap-3','univer-space-y-2','mcpConfig.connectionStatus.failed','_initializeMenus','Click\x20to\x20configure\x20MCP','Disconnected','_createConfigPanelComponent','univer-flex\x20univer-flex-wrap\x20univer-gap-2','启用身份验证','mcpConfig.validation.apiKeyRequired','length','2110BNYFUn','What\x20is\x20API\x20Key?','_handleConfigure','on-line-icon','check-mark-icon','MCPConfigPanel','0\x200\x2016\x2016','univer-text-green-500','getConfig','univerjs-icon\x20univerjs-icon-','mcpConfig.save','mcpStatus.failed','_componentManager','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','assign','超出最大重试次数,请稍后再试','value','univer-mr-2\x20univer-flex\x20univer-text-xl','MCP\x20Unknown\x20Status','OffLineIcon','6fXyKML','Enter\x20your\x20API\x20key','get','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','getCurrentConfig','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','带有\x20Bearer\x20前缀的\x20API\x20密钥。','重连中...','open','_logService','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','translate(.97)','call','MCP\x20重连中...','\x20-\x20','启用身份验证以获得安全连接','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','url(#$1','_validateConfig','MCP:\x20超出最大重试次数','Retrying...','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_registerComponent','mcpConfig.apiApplyInfo.getStarted','univer-flex\x20univer-items-start\x20univer-gap-2','round','univer-text-white','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','OnLineIcon','colorChannel1','url(#off-line-icon_clip0_910_343)','pluginName','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.apiApplyInfo.univerAiLabel','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','mcpConfig.connectionStatus.disconnected','MCP\x20已断开','72664mXcqVz','配置保存成功','API\x20key\x20is\x20required','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','icon','setItem','_localeService','label','_messageService','您的\x20API\x20密钥安全存储在本地存储中','_mcpConnectionController','_loading$','mcpConfig.apiKeyHint','Error','mcpConfig.apiKeyPlaceholder','entries','evenodd','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','Configuration\x20Parameters:','mcpStatus.sessionOccupied','univer-flex\x20univer-gap-3','MCP\x20连接失败','prototype','983794yDOKsX','配置更改将立即生效','会话ID','Close','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','off-line-icon_clip0_910_343','mcpConfig.connectionInfo','univer-bg-green-500','univer-text-blue-600','COMMAND','MCP\x20Connection\x20Failed','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','attrs','MCP:\x20网络错误','您的\x20API\x20密钥将在此浏览器中本地存储','mcpConfig.validation.invalidApiKey','https://console.univer.plus','UNAUTHORIZED','clipPath','className','将配置添加到您的\x20MCP\x20客户端设置文件中','mcp-ui.command.openConfigPanel','univer-font-medium','univer-flex\x20univer-items-center\x20univer-gap-3','配置参数:','CONNECTING','1081850UEuPXe','univer-text-xs\x20univer-text-gray-500','getOwnPropertyDescriptor','extend','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Save\x20Configuration','mcpConfig.configStep3','Copy\x20the\x20JSON\x20configuration\x20below','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','subscribe','RETRYING','errorMessage','NETWORK_ERROR','defs','apply','OTHERS','Connected','showConfigPanel','Connecting...','MCP\x20客户端配置','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','div','white','MCP\x20Client\x20Configuration','最大重试次数','mcpStatus.unauthorized','mcp-config-dialog','onStarting','mcpConfig.saving','sessionId$','show','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.apiApplyInfo.title','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.connectionError.networkError','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-text-yellow-500','_initConfigSync','fill','API\x20密钥长度至少需要\x2010\x20位','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','mergeMenu','mcp.apiKey','_initializeCommands','children','mcpConfig.connectionError.unauthorized','replace','未连接','setConfig','univer-space-y-5','M5.21243\x2012.287L11.8791\x205.62036','Get\x20your\x20API\x20key\x20in\x20seconds','_connectionController','\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','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','connectionStatus$','M5.21243\x205.62036L11.8791\x2012.287','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','请输入您的\x20API\x20密钥','close-small-single','close','validateApiKey','复制以下\x20JSON\x20配置','API\x20密钥不能为空','_loadStoredApiKey','_initAutoConnect','DISCONNECTED','已连接','next','_uiPartsService','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','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','mcpConfig.configError','mcpConfig.configSaved','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpServerUrl','enableAutoConnect','univer-text-xs\x20univer-text-gray-600','_mcpCoreConfig$','mcpConfig.note1','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','showDeveloperTools','MCP:\x20Session\x20ID\x20Occupied','网络连接错误,请检查您的网络连接','noopener\x20noreferrer','includes','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','将以下配置添加到您的\x20MCP\x20客户端设置中:','_dialogService','NONE','univer-space-y-3','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20配置','univer-min-w-0\x20univer-flex-1','_handleConfigSave','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','mcpConfig.title','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','hasOwnProperty','API\x20Key','disposeWithMe','mcpConfig.note2','apiKey','concat','mcpConfig.configStep1','点击连接\x20MCP','xlink:href','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','push','defIds','Configuration\x20Steps:','MCP\x20Configuration','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-bg-blue-500','removeItem','__setCustomHeaders','off','univer-text-gray-500','_commandService','什么是\x20API\x20密钥?','_config$','API\x20密钥','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','off-line-icon','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Bearer\x20','_blank','has','MCP\x20Connecting...','mcpStatus.networkError','subscribeConfigValue$','9JaVhLq','trim','univer-text-sm\x20univer-font-medium','register','保存配置','error','mcpConfig.connectionStatus.retrying','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','toString','univer-text-red-500','univer.plus','_apiKey$'];_0x27d3=function(){return _0x506a92;};return _0x27d3();}var en={'tag':_0x23152a(0x1da),'attrs':{'xmlns':_0x23152a(0x1e8),'fill':'none','viewBox':_0x23152a(0x240),'width':_0x23152a(0x21b),'height':_0x23152a(0x21b)},'children':[{'tag':_0x23152a(0x1f6),'attrs':{'fill':_0x23152a(0x1d8),'d':_0x23152a(0x16f)}},{'tag':'path','attrs':{'fill':_0x23152a(0x1d8),'d':_0x23152a(0x124)}},{'tag':_0x23152a(0x1f6),'attrs':{'fill':_0x23152a(0x1d8),'d':_0x23152a(0x180),'fillRule':_0x23152a(0x123),'clipRule':_0x23152a(0x123)}}]},de=_0x3cd0b1(function(_0x39c297,_0x13f688){var _0x30edad=_0x23152a;return _0x88ee49(w,Object[_0x30edad(0x249)]({},_0x39c297,{'id':'help-single','ref':_0x13f688,'icon':en}));});de[_0x23152a(0x227)]='HelpSingle';var nn={'tag':_0x23152a(0x1da),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x23152a(0x1fd),'viewBox':_0x23152a(0x240),'width':_0x23152a(0x21b),'height':_0x23152a(0x21b)},'children':[{'tag':'g','attrs':{'clipPath':_0x23152a(0x10c)},'children':[{'tag':_0x23152a(0x1f6),'attrs':{'stroke':'currentColor','d':_0x23152a(0x228),'strokeLinecap':_0x23152a(0x107),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x23152a(0x153),'attrs':{},'children':[{'tag':_0x23152a(0x13d),'attrs':{'id':_0x23152a(0x12f)},'children':[{'tag':_0x23152a(0x1f6),'attrs':{'fill':_0x23152a(0x15c),'d':_0x23152a(0x22d)}}]}]}],'defIds':[_0x23152a(0x12f)]},fe=_0x3cd0b1(function(_0x2a2bbb,_0x3e142f){var _0x4f7eef=_0x23152a;return _0x88ee49(w,Object[_0x4f7eef(0x249)]({},_0x2a2bbb,{'id':_0x4f7eef(0x1c4),'ref':_0x3e142f,'icon':nn}));});fe[_0x23152a(0x227)]=_0x23152a(0x24e);var rn={'tag':'svg','attrs':{'xmlns':_0x23152a(0x1e8),'fill':_0x23152a(0x1fd),'viewBox':'0\x200\x2017\x2016','width':_0x23152a(0x21b),'height':_0x23152a(0x21b)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x23152a(0x1f6),'attrs':{'stroke':_0x23152a(0x1d8),'d':_0x23152a(0x1d3),'strokeLinecap':'round','strokeLinejoin':_0x23152a(0x107),'strokeWidth':1.2}}]},{'tag':_0x23152a(0x153),'attrs':{},'children':[{'tag':_0x23152a(0x13d),'attrs':{'id':_0x23152a(0x219)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x23152a(0x22d),'transform':_0x23152a(0x25a)}}]}]}],'defIds':[_0x23152a(0x219)]},ge=_0x3cd0b1(function(_0x343912,_0x254b86){var _0x2b7129=_0x23152a;return _0x88ee49(w,Object['assign']({},_0x343912,{'id':_0x2b7129(0x23d),'ref':_0x254b86,'icon':rn}));});ge[_0x23152a(0x227)]=_0x23152a(0x10a);function tn(_0x3bd325){var _0x5d364a=_0x23152a,_0x548af7,_0x4dad3d;const {mcpCoreConfig:_0x3d7b83,onSave:_0x3364c4,loading:_0x16cee9=!0x1,config:_0x75e9cd,connectionStatus$:_0xf99f8d,connectionError$:_0x136e56,currentApiKey$:_0x5a1e2c,currentSessionId$:_0x58f380}=_0x3bd325,_0x5eed29=_0xec9461(_0x29ac55),_0x3e509d=_0x51a1cc(_0xf99f8d,_0x4d5d6a[_0x5d364a(0x189)]),_0x584153=_0x51a1cc(_0x136e56,_0x5b89c7[_0x5d364a(0x1a0)]),_0x23e63f=_0x51a1cc(_0x58f380,''),_0x57380f=_0x51a1cc(_0x5a1e2c,''),[_0x5655b8,_0xefd7e8]=_0x39ca44(_0x57380f||''),_0x3d5357=!0x0,_0x2f4bfa=_0x75e9cd[_0x5d364a(0x198)]&&_0x3d7b83[_0x5d364a(0x192)]&&(_0x3d7b83[_0x5d364a(0x192)][_0x5d364a(0x19c)](_0x5d364a(0x1d6))||_0x3d7b83[_0x5d364a(0x192)][_0x5d364a(0x19c)]('univer.ai')),_0x21dc59=(_0x548af7=_0x3d7b83[_0x5d364a(0x192)])==null?void 0x0:_0x548af7['includes']('univer.plus'),_0x5097e0=(_0x4dad3d=_0x3d7b83[_0x5d364a(0x192)])==null?void 0x0:_0x4dad3d[_0x5d364a(0x19c)](_0x5d364a(0x1ed)),_0x41ce0d=_0x21dc59?_0x5d364a(0x13b):'https://console.univer.ai',_0x3b78c7=_0x75e9cd[_0x5d364a(0x198)]&&(_0x21dc59||_0x5097e0),[_0x5decf7,_0x424704]=_0x39ca44(!_0x5655b8[_0x5d364a(0x1cd)]()),_0x1c4eda=(_0x1800c5,_0x3976c4)=>{var _0x23470b=_0x5d364a;if(_0x3976c4===_0x5b89c7[_0x23470b(0x13c)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x1800c5){case _0x4d5d6a[_0x23470b(0x1e2)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x4d5d6a['CONNECTING']:case _0x4d5d6a[_0x23470b(0x150)]:return _0x23470b(0x1c3);case _0x4d5d6a[_0x23470b(0x1dd)]:return _0x23470b(0x254);default:return _0x23470b(0x15a);}},_0x1f35aa=(_0x4966be,_0x3fca49)=>{var _0x1d3a3a=_0x5d364a;if(_0x3fca49===_0x5b89c7[_0x1d3a3a(0x13c)])return'univer-bg-red-500';switch(_0x4966be){case _0x4d5d6a[_0x1d3a3a(0x1e2)]:return _0x1d3a3a(0x131);case _0x4d5d6a['CONNECTING']:case _0x4d5d6a[_0x1d3a3a(0x150)]:return _0x1d3a3a(0x1ba);case _0x4d5d6a[_0x1d3a3a(0x1dd)]:return'univer-bg-red-500';default:return _0x1d3a3a(0x20a);}},_0x9ce381=_0x491a35=>{var _0x4da750=_0x5d364a;switch(_0x491a35){case _0x4d5d6a[_0x4da750(0x1e2)]:return _0x5eed29['t'](_0x4da750(0x1d9));case _0x4d5d6a[_0x4da750(0x144)]:return _0x5eed29['t'](_0x4da750(0x202));case _0x4d5d6a[_0x4da750(0x1dd)]:return _0x5eed29['t'](_0x4da750(0x231));case _0x4d5d6a[_0x4da750(0x150)]:return _0x5eed29['t'](_0x4da750(0x1d2));default:return _0x5eed29['t'](_0x4da750(0x111));}},_0x23c8f8=_0x514e52=>{var _0x5680e4=_0x5d364a;switch(_0x514e52){case _0x5b89c7[_0x5680e4(0x13c)]:return _0x5eed29['t'](_0x5680e4(0x174));case _0x5b89c7['SESSION_ID_OCCUPIED']:return _0x5eed29['t']('mcpConfig.connectionError.sessionOccupied');case _0x5b89c7[_0x5680e4(0x152)]:return _0x5eed29['t'](_0x5680e4(0x168));case _0x5b89c7[_0x5680e4(0x21a)]:return _0x5eed29['t'](_0x5680e4(0x205));default:return'';}},_0x590a66=_0x38eed3(()=>{var _0x1a27a6=_0x5d364a;const _0x1455b1={..._0x3d7b83,'apiKey':_0x5655b8[_0x1a27a6(0x1cd)](),'enableAuth':_0x3d5357};_0x3364c4(_0x1455b1);},[_0x3d7b83,_0x5655b8,_0x3d5357,_0x3364c4]),_0x343f5a=_0x5655b8['trim']()[_0x5d364a(0x239)]>0x0;return _0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x197),'children':[_0xbc2bc3('div',{'className':_0x5d364a(0x248),'children':_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x142),'children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x14a),'children':_0xbc2bc3(_0x5d364a(0x216),{'className':_0x5d364a(0x108),'children':'⚙'})}),_0xbc2bc3(_0x5d364a(0x15b),{'children':_0xbc2bc3('p',{'className':_0x5d364a(0x229),'children':_0x5eed29['t']('mcpConfig.description')})})]})}),_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x1fc),'children':[_0xbc2bc3('div',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1c4eda(_0x3e509d,_0x584153)+_0x5d364a(0x203),'children':_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x22a),'children':[_0xbc2bc3('div',{'className':_0x5d364a(0x1aa)+_0x1f35aa(_0x3e509d,_0x584153)+_0x5d364a(0x22b)}),_0xbc2bc3(_0x5d364a(0x216),{'className':_0x5d364a(0x1ce),'children':_0x9ce381(_0x3e509d)})]})}),_0x584153!==_0x5b89c7['NONE']&&(_0x3e509d===_0x4d5d6a[_0x5d364a(0x1dd)]||_0x584153===_0x5b89c7[_0x5d364a(0x13c)])&&_0xbc2bc3('div',{'className':_0x5d364a(0x1f7),'children':_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x106),'children':[_0xbc2bc3(_0x5d364a(0x216),{'className':_0x5d364a(0x217),'children':'⚠️'}),_0xbc2bc3('p',{'className':_0x5d364a(0x223),'children':_0x23c8f8(_0x584153)})]})})]}),_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x1a7),'children':_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x178),'children':[_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x230),'children':[_0x200cfc(_0x5d364a(0x11a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0xbc2bc3(_0x5d364a(0x216),{'children':'🔑'}),'\x20',_0x5eed29['t']('mcpConfig.apiKey'),_0xbc2bc3('span',{'className':_0x5d364a(0x1d5),'children':'*'}),_0x2f4bfa&&_0xbc2bc3('a',{'href':_0x5d364a(0x214),'onClick':()=>_0x424704(!0x0),'className':_0x5d364a(0x14e),'title':_0x5eed29['t'](_0x5d364a(0x166)),'children':_0xbc2bc3(de,{})})]}),_0xbc2bc3(_0x1cf5dc,{'type':_0x5d364a(0x225),'placeholder':_0x5eed29['t'](_0x5d364a(0x121)),'value':_0x5655b8,'onChange':_0xefd7e8,'disabled':_0x16cee9,'autoComplete':_0x5d364a(0x1bd)}),_0xbc2bc3('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x5eed29['t'](_0x5d364a(0x11f))})]}),_0x2f4bfa&&_0x5decf7&&_0x200cfc('div',{'className':_0x5d364a(0x18e),'children':[_0xbc2bc3('a',{'href':_0x5d364a(0x214),'onClick':()=>_0x424704(!0x1),'className':_0x5d364a(0x109),'title':_0x5d364a(0x12d),'children':_0xbc2bc3(ve,{})}),_0x200cfc('div',{'className':_0x5d364a(0x1b9),'children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x1a6),'children':_0xbc2bc3(_0x5d364a(0x216),{'className':_0x5d364a(0x132),'children':'🚀'})}),_0x200cfc('div',{'className':_0x5d364a(0x226),'children':[_0xbc2bc3('h4',{'className':_0x5d364a(0x136),'children':_0x5eed29['t'](_0x5d364a(0x166))}),_0xbc2bc3('p',{'className':_0x5d364a(0x20b),'children':_0x5eed29['t']('mcpConfig.apiApplyInfo.description')}),_0xbc2bc3('div',{'className':_0x5d364a(0x236),'children':_0x3b78c7&&_0x200cfc('a',{'href':_0x41ce0d,'target':_0x5d364a(0x1c7),'rel':_0x5d364a(0x19b),'className':_0x5d364a(0x1a8),'children':[_0xbc2bc3(_0x5d364a(0x216),{'children':'🤖'}),_0x5eed29['t'](_0x5d364a(0x10f)),_0xbc2bc3(_0x5d364a(0x216),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x1b4),'children':['✨','\x20',_0x5eed29['t'](_0x5d364a(0x105))]})]})]})]}),_0x75e9cd[_0x5d364a(0x198)]&&_0x200cfc(_0x5d364a(0x15b),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x200cfc('h4',{'className':_0x5d364a(0x165),'children':[_0xbc2bc3(_0x5d364a(0x216),{'children':'🔗'}),'\x20',_0x5eed29['t'](_0x5d364a(0x130))]}),_0x200cfc('div',{'className':'univer-space-y-4','children':[_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x1a1),'children':[_0xbc2bc3('p',{'className':_0x5d364a(0x194),'children':_0x5eed29['t']('mcpConfig.configInstructions')}),_0x200cfc(_0x5d364a(0x15b),{'className':'univer-space-y-2','children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x5eed29['t']('mcpConfig.configStepTitle')}),_0x200cfc(_0x5d364a(0x15b),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x22a),'children':[_0xbc2bc3(_0x5d364a(0x216),{'className':_0x5d364a(0x169),'children':'1'}),_0x5eed29['t'](_0x5d364a(0x1b1))]}),_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x22a),'children':[_0xbc2bc3(_0x5d364a(0x216),{'className':_0x5d364a(0x169),'children':'2'}),_0x5eed29['t']('mcpConfig.configStep2')]}),_0x200cfc('div',{'className':_0x5d364a(0x22a),'children':[_0xbc2bc3('span',{'className':'univer-flex\x20univer-h-4\x20univer-w-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'}),_0x5eed29['t'](_0x5d364a(0x14c))]})]})]})]}),_0x200cfc(_0x5d364a(0x15b),{'className':'univer-space-y-2','children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x5d364a(0x1b8)}),_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x167),'children':_0xbc2bc3(_0x5d364a(0x21c),{'className':_0x5d364a(0x1c5),'children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0x23e63f+_0x5d364a(0x149)+(_0x5655b8||_0x5d364a(0x211))+_0x5d364a(0x215)})})]}),_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x1a1),'children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x135),'children':_0x5eed29['t'](_0x5d364a(0x21d))}),_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x230),'children':[_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x22f),'children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x264)}),_0x200cfc('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x1de),'children':'univer_session_id:'}),_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x146),'children':_0x5eed29['t'](_0x5d364a(0x21f))})]})]}),_0x200cfc('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0xbc2bc3('div',{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x1a4),'children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x1de),'children':'Authorization:'}),_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x146),'children':_0x5eed29['t'](_0x5d364a(0x201))})]})]})]})]})]})]}),_0xbc2bc3(_0x3a18fc,{'onClick':_0x590a66,'disabled':!_0x343f5a||_0x16cee9,'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':_0x16cee9?_0x200cfc(_0x5d364a(0x216),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0xbc2bc3(_0x5d364a(0x216),{'children':'⟲'}),_0x5eed29['t'](_0x5d364a(0x162))]}):_0x200cfc(_0x5d364a(0x216),{'className':_0x5d364a(0x22a),'children':[_0xbc2bc3(le,{}),_0x5eed29['t'](_0x5d364a(0x244))]})}),_0xbc2bc3('div',{'className':_0x5d364a(0x18d),'children':_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x127),'children':[_0xbc2bc3(_0x5d364a(0x216),{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x200cfc('div',{'className':_0x5d364a(0x12e),'children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x141),'children':'Configuration\x20Notes:'}),_0x200cfc(_0x5d364a(0x15b),{'children':['•',_0x5eed29['t'](_0x5d364a(0x196))]}),_0x200cfc(_0x5d364a(0x15b),{'children':['•',_0x5eed29['t'](_0x5d364a(0x1ae))]})]})]})})]})})]});}const x='mcp-ui.config',re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object[_0x23152a(0x147)],sn=(_0x962b6f,_0x2800e8,_0x314e8a,_0x3c8a72)=>{for(var _0xec4582=_0x3c8a72>0x1?void 0x0:_0x3c8a72?on(_0x2800e8,_0x314e8a):_0x2800e8,_0xe7d1bf=_0x962b6f['length']-0x1,_0x5187ad;_0xe7d1bf>=0x0;_0xe7d1bf--)(_0x5187ad=_0x962b6f[_0xe7d1bf])&&(_0xec4582=_0x5187ad(_0xec4582)||_0xec4582);return _0xec4582;},g=(_0xc25a22,_0x155635)=>(_0x355528,_0x10e8fd)=>_0x155635(_0x355528,_0x10e8fd,_0xc25a22);const j=_0x23152a(0x171),U=_0x23152a(0x160);let I=class extends _0x460ffb{constructor(_0x12c510,_0x27078b,_0x4de042,_0x522478,_0x25b867,_0x1f8f86,_0x236ef8,_0x17685e,_0x3a8f33,_0x10f7e3){var _0x759656=_0x23152a;super(),S(this,_0x759656(0x11e),new _0x25ddcd(!0x1)),S(this,_0x759656(0x195),new _0x25ddcd({})),S(this,_0x759656(0x1c1),new _0x25ddcd({})),S(this,'_apiKey$',new _0x25ddcd('')),S(this,_0x759656(0x1a5),async _0x3df58e=>{var _0x10010c=_0x759656,_0x3b8329,_0x43d88d;this[_0x10010c(0x11e)][_0x10010c(0x18b)](!0x0);try{const _0x335097=await this[_0x10010c(0x261)](_0x3df58e);if(!_0x335097[_0x10010c(0x207)]){this['_messageService'][_0x10010c(0x164)]({'type':_0x32a88a[_0x10010c(0x120)],'content':_0x335097[_0x10010c(0x151)]||this[_0x10010c(0x119)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x3df58e[_0x10010c(0x1af)]?await this['_localStorageService'][_0x10010c(0x118)](j,_0x3df58e[_0x10010c(0x1af)][_0x10010c(0x1cd)]()):await this[_0x10010c(0x213)][_0x10010c(0x1bb)](j),this[_0x10010c(0x1d7)][_0x10010c(0x18b)](((_0x3b8329=_0x3df58e['apiKey'])==null?void 0x0:_0x3b8329[_0x10010c(0x1cd)]())||''),this[_0x10010c(0x11d)][_0x10010c(0x1bc)]({'Authorization':_0x10010c(0x1c6)+((_0x43d88d=_0x3df58e[_0x10010c(0x1af)])==null?void 0x0:_0x43d88d[_0x10010c(0x1cd)]())}),this['_messageService']['show']({'type':_0x32a88a['Success'],'content':this[_0x10010c(0x119)]['t'](_0x10010c(0x190))}),setTimeout(()=>{var _0x143fb2=_0x10010c;this[_0x143fb2(0x19f)][_0x143fb2(0x183)](U);},0x320);}catch(_0x2e1556){this[_0x10010c(0x258)][_0x10010c(0x1d1)](_0x10010c(0x191),_0x2e1556),this[_0x10010c(0x11b)]['show']({'type':_0x32a88a['Error'],'content':this['_localeService']['t'](_0x10010c(0x18f))});}finally{this[_0x10010c(0x11e)][_0x10010c(0x18b)](!0x1);}}),(this['_injector']=_0x12c510,this[_0x759656(0x18c)]=_0x27078b,this[_0x759656(0x224)]=_0x4de042,this[_0x759656(0x213)]=_0x522478,this['_dialogService']=_0x25b867,this[_0x759656(0x11b)]=_0x1f8f86,this['_componentManager']=_0x236ef8,this['_localeService']=_0x17685e,this[_0x759656(0x258)]=_0x3a8f33,this[_0x759656(0x11d)]=_0x10f7e3,this['_initConfigSync'](),this[_0x759656(0x187)](),this[_0x759656(0x265)]());}['showConfigPanel'](){var _0x4d0629=_0x23152a;const _0x4ac2af=this[_0x4d0629(0x224)]['getConfig'](x);_0x4ac2af!=null&&_0x4ac2af['showDeveloperTools']&&this[_0x4d0629(0x19f)][_0x4d0629(0x257)]({'id':U,'title':{'title':this['_localeService']['t'](_0x4d0629(0x1a9))},'children':{'label':_0x4d0629(0x23f)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x5919e2=_0x4d0629;this['_dialogService'][_0x5919e2(0x183)](U);}});}[_0x23152a(0x253)](){var _0xe62ade=_0x23152a;return this['_mcpCoreConfig$'][_0xe62ade(0x24b)];}[_0x23152a(0x265)](){var _0x5b3136=_0x23152a;this[_0x5b3136(0x1ad)](this[_0x5b3136(0x246)][_0x5b3136(0x1cf)](_0x5b3136(0x23f),this[_0x5b3136(0x235)]()));}[_0x23152a(0x235)](){var _0x5d7742=_0x23152a;return _0x16db0e(()=>{var _0x58b870=_0x5160,_0x157dc0,_0x51b2e6,_0x168762;return _0xbc2bc3(tn,{'config':this[_0x58b870(0x1c1)]['value'],'mcpCoreConfig':this[_0x58b870(0x195)][_0x58b870(0x24b)],'currentApiKey$':this[_0x58b870(0x1d7)],'onSave':this[_0x58b870(0x1a5)],'loading':this[_0x58b870(0x11e)][_0x58b870(0x24b)],'connectionStatus$':(_0x157dc0=this['_mcpConnectionController'])==null?void 0x0:_0x157dc0['connectionStatus$'],'connectionError$':(_0x51b2e6=this[_0x58b870(0x11d)])==null?void 0x0:_0x51b2e6[_0x58b870(0x1ff)],'currentSessionId$':(_0x168762=this[_0x58b870(0x11d)])==null?void 0x0:_0x168762[_0x58b870(0x163)]});},this[_0x5d7742(0x20c)]);}[_0x23152a(0x16c)](){var _0xef4155=_0x23152a;this['disposeWithMe'](this[_0xef4155(0x224)][_0xef4155(0x1cb)](_0x10b2f0)[_0xef4155(0x14f)](_0x35b6c8=>{var _0x208fe7=_0xef4155;this[_0x208fe7(0x195)]['next'](_0x35b6c8||{});}));const _0xb8cec=this[_0xef4155(0x224)]['getConfig'](_0x10b2f0);this[_0xef4155(0x195)]['next'](_0xb8cec||{}),this['disposeWithMe'](this[_0xef4155(0x224)]['subscribeConfigValue$'](x)[_0xef4155(0x14f)](_0x1a73f9=>{var _0x30b503=_0xef4155;this[_0x30b503(0x1c1)][_0x30b503(0x18b)](_0x1a73f9||{});}));const _0x5823c6=this[_0xef4155(0x224)]['getConfig'](x);this[_0xef4155(0x1c1)]['next'](_0x5823c6||{});}async[_0x23152a(0x187)](){var _0x43e094=_0x23152a;const _0x26f717=this['_configService'][_0x43e094(0x242)](x);if(!(_0x26f717!=null&&_0x26f717['showDeveloperTools']))return;const _0x401ab2=await this['_localStorageService']['getItem'](j);_0x401ab2&&(this[_0x43e094(0x11d)]['__setCustomHeaders']({'Authorization':_0x43e094(0x1c6)+_0x401ab2}),this[_0x43e094(0x1d7)][_0x43e094(0x18b)](_0x401ab2));}async[_0x23152a(0x261)](_0x4a9cbd){var _0x3a8ec9=_0x23152a;if(!_0x4a9cbd[_0x3a8ec9(0x1af)]||_0x4a9cbd[_0x3a8ec9(0x1af)][_0x3a8ec9(0x1cd)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x3a8ec9(0x238))};if(_0x4a9cbd['apiKey'][_0x3a8ec9(0x1cd)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x3a8ec9(0x119)]['t'](_0x3a8ec9(0x222))};try{const _0x54037a=await this['_injector'][_0x3a8ec9(0x251)](_0x260dce)[_0x3a8ec9(0x184)](_0x4a9cbd[_0x3a8ec9(0x1af)][_0x3a8ec9(0x1cd)]());return _0x54037a[_0x3a8ec9(0x207)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x54037a['error']||this['_localeService']['t'](_0x3a8ec9(0x13a))};}catch(_0x365857){return console[_0x3a8ec9(0x204)](_0x3a8ec9(0x220),_0x365857),{'isValid':!0x0};}}};I=sn([g(0x0,_0x10c81c(_0x5b2e98)),g(0x1,_0x1846c7),g(0x2,_0x1496de),g(0x3,_0x118e2e),g(0x4,_0x382591),g(0x5,_0x43578f),g(0x6,_0x10c81c(_0x5a9e01)),g(0x7,_0x10c81c(_0x29ac55)),g(0x8,_0x31a0e3),g(0x9,_0x10c81c(_0x260dce))],I);const V={'id':_0x23152a(0x140),'type':_0x1911c4[_0x23152a(0x133)],'handler':async(_0x39f33a,_0x3cd1be)=>(_0x39f33a[_0x23152a(0x251)](I)[_0x23152a(0x157)](),!0x0)};function pe(_0x201300,_0x3f5f39){var _0xffbf1f=_0x23152a;switch(_0x201300){case _0x4d5d6a[_0xffbf1f(0x189)]:return'mcpStatus.disconnected';case _0x4d5d6a[_0xffbf1f(0x144)]:return _0xffbf1f(0x1e0);case _0x4d5d6a[_0xffbf1f(0x1e2)]:return'mcpStatus.connected';case _0x4d5d6a[_0xffbf1f(0x1dd)]:switch(_0x3f5f39){case _0x5b89c7['UNAUTHORIZED']:return _0xffbf1f(0x15f);case _0x5b89c7['SESSION_ID_OCCUPIED']:return _0xffbf1f(0x126);case _0x5b89c7[_0xffbf1f(0x152)]:return _0xffbf1f(0x1ca);case _0x5b89c7[_0xffbf1f(0x21a)]:return _0xffbf1f(0x1f0);default:return _0xffbf1f(0x245);}case _0x4d5d6a[_0xffbf1f(0x150)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function cn(_0x2cf9d5,_0xd71a77,_0x3efd82,_0x1ed8ff=!0x0){var _0x3977d1=_0x23152a;const _0xa503bd=pe(_0x2cf9d5,_0xd71a77),_0x25daf5=_0x3efd82['t'](_0xa503bd);return _0x1ed8ff?_0x2cf9d5===_0x4d5d6a[_0x3977d1(0x189)]&&_0xd71a77===_0x5b89c7[_0x3977d1(0x13c)]?_0x25daf5+_0x3977d1(0x25d)+_0x3efd82['t']('mcpStatus.clickToConfigure'):_0x2cf9d5===_0x4d5d6a[_0x3977d1(0x1e2)]?''+_0x25daf5:_0x2cf9d5===_0x4d5d6a[_0x3977d1(0x189)]||_0x2cf9d5===_0x4d5d6a[_0x3977d1(0x1dd)]?_0x25daf5+_0x3977d1(0x25d)+_0x3efd82['t'](_0x3977d1(0x1f3)):_0x25daf5:_0x25daf5;}function an(_0x4c65ef){var _0x5339a7=_0x23152a;switch(_0x4c65ef){case _0x4d5d6a[_0x5339a7(0x1e2)]:return _0x5339a7(0x241);case _0x4d5d6a[_0x5339a7(0x144)]:case _0x4d5d6a['RETRYING']:return _0x5339a7(0x16b);case _0x4d5d6a['FAILED']:case _0x4d5d6a['DISCONNECTED']:return _0x5339a7(0x1d5);default:return _0x5339a7(0x1be);}}function un(_0xdddfa){var _0x19af2a=_0x23152a;const {status$:_0x34cced,error$:_0x12f545,onConfigure:_0xc2f149,showClickable:_0x407157=!0x0}=_0xdddfa,_0x3ccc29=_0x51a1cc(_0x34cced,_0x4d5d6a[_0x19af2a(0x189)]),_0x1d177d=_0x51a1cc(_0x12f545,_0x5b89c7[_0x19af2a(0x1a0)]),_0x4178dd=_0xec9461(_0x29ac55),_0x28743c=_0x3ccc29===_0x4d5d6a['CONNECTED'];_0x3ccc29===_0x4d5d6a[_0x19af2a(0x144)]||_0x4d5d6a[_0x19af2a(0x150)];const _0x33f469=_0x4178dd['t'](pe(_0x3ccc29,_0x1d177d)),_0x139f67=cn(_0x3ccc29,_0x1d177d,_0x4178dd,_0x407157),_0x201a8d=an(_0x3ccc29),_0x4c395e=_0x28743c?_0xbc2bc3(ge,{}):_0xbc2bc3(fe,{}),_0x2067e6=_0x38eed3(()=>{_0x407157&&_0xc2f149&&_0xc2f149();},[_0x407157,_0xc2f149]);function _0x495109(){var _0xe14648=_0x19af2a;return _0x200cfc(_0xe14648(0x15b),{'className':_0x1e22a7(_0xe14648(0x22c),_0x407157&&_0xc2f149&&_0xe14648(0x17c)),'onClick':_0x407157&&_0xc2f149?_0x2067e6:void 0x0,'children':[_0xbc2bc3(_0xe14648(0x15b),{'className':_0x1e22a7(_0xe14648(0x24c),_0x201a8d),'children':_0x4c395e}),_0xbc2bc3(_0xe14648(0x15b),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x33f469})]});}return _0xbc2bc3(_0x28285f,{'title':_0x139f67,'placement':_0x19af2a(0x1f9),'children':_0x495109()});}var ln=Object[_0x23152a(0x147)],vn=(_0x59397d,_0x398597,_0x7bf6b7,_0x19b954)=>{var _0x4b4b0b=_0x23152a;for(var _0x33116c=_0x19b954>0x1?void 0x0:_0x19b954?ln(_0x398597,_0x7bf6b7):_0x398597,_0x3a39da=_0x59397d[_0x4b4b0b(0x239)]-0x1,_0x489dcd;_0x3a39da>=0x0;_0x3a39da--)(_0x489dcd=_0x59397d[_0x3a39da])&&(_0x33116c=_0x489dcd(_0x33116c)||_0x33116c);return _0x33116c;},A=(_0x4ccce0,_0x55d0b4)=>(_0x1c80ef,_0x4b3800)=>_0x55d0b4(_0x1c80ef,_0x4b3800,_0x4ccce0);let O=class extends _0x460ffb{constructor(_0xf3f200,_0x167153,_0x50ebb6,_0x403905){var _0x278a1a=_0x23152a;super(),this[_0x278a1a(0x20c)]=_0xf3f200,this[_0x278a1a(0x17b)]=_0x167153,this['_uiPartsService']=_0x50ebb6,this['_configService']=_0x403905,this[_0x278a1a(0x188)](),this['_initStatusComponent']();}[_0x23152a(0x188)](){var _0x3c2597=_0x23152a;const _0xa4e935=this[_0x3c2597(0x224)][_0x3c2597(0x242)](x);_0xa4e935!=null&&_0xa4e935[_0x3c2597(0x198)]&&(this[_0x3c2597(0x17b)][_0x3c2597(0x193)]=!0x1);}[_0x23152a(0x1f1)](){var _0x1f2ecd=_0x23152a;const _0x366bc7=this['_configService'][_0x1f2ecd(0x242)](x);(_0x366bc7==null?void 0x0:_0x366bc7['showStatus'])!==!0x1&&this[_0x1f2ecd(0x1ad)](this['_uiPartsService']['registerComponent'](_0x2fa4e8['HEADER_MENU'],()=>{var _0x222b75=_0x1f2ecd,_0x205332;return _0x16db0e(dn({'status$':this[_0x222b75(0x17b)][_0x222b75(0x17e)],'error$':this['_connectionController'][_0x222b75(0x1ff)],'onConfigure':()=>this[_0x222b75(0x23c)](),'showClickable':(_0x205332=_0x366bc7==null?void 0x0:_0x366bc7[_0x222b75(0x198)])!=null?_0x205332:!0x1}),this['_injector']);}));}[_0x23152a(0x23c)](){var _0x522988=_0x23152a;this[_0x522988(0x20c)][_0x522988(0x251)](I)[_0x522988(0x157)]();}};O=vn([A(0x0,_0x10c81c(_0x5b2e98)),A(0x1,_0x10c81c(_0x260dce)),A(0x2,_0x1846c7),A(0x3,_0x1496de)],O);function dn(_0xdfd7b4){const {status$:_0x12efb1,error$:_0xdc1d0,onConfigure:_0x4fdc6e,showClickable:_0x143437}=_0xdfd7b4;return function(){return _0xbc2bc3(un,{'status$':_0x12efb1,'error$':_0xdc1d0,'onConfigure':_0x4fdc6e,'showClickable':_0x143437});};}function fn(_0x3b576a){var _0x2df986=_0x23152a;return{'id':V['id'],'type':_0xd12530[_0x2df986(0x221)],'icon':'MenuIcon','title':'mcpConfig.title','tooltip':_0x2df986(0x1a9)};}const gn={[_0x529546[_0x23152a(0x155)]]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};var pn=Object[_0x23152a(0x147)],hn=(_0x570482,_0x54cf31,_0x5a704d,_0x3776b7)=>{for(var _0xf5ccc3=_0x3776b7>0x1?void 0x0:_0x3776b7?pn(_0x54cf31,_0x5a704d):_0x54cf31,_0x328e0c=_0x570482['length']-0x1,_0x4a5b95;_0x328e0c>=0x0;_0x328e0c--)(_0x4a5b95=_0x570482[_0x328e0c])&&(_0xf5ccc3=_0x4a5b95(_0xf5ccc3)||_0xf5ccc3);return _0xf5ccc3;},te=(_0x49a669,_0x30f143)=>(_0x766373,_0x56a748)=>_0x30f143(_0x766373,_0x56a748,_0x49a669);function _0x5160(_0x3b1568,_0x5010a0){var _0x27d383=_0x27d3();return _0x5160=function(_0x51609f,_0x5e3b09){_0x51609f=_0x51609f-0x105;var _0x17af16=_0x27d383[_0x51609f];return _0x17af16;},_0x5160(_0x3b1568,_0x5010a0);}let k=class extends _0x460ffb{constructor(_0xca0baf,_0x4ef88e){var _0x241e0f=_0x23152a;super(),this[_0x241e0f(0x1bf)]=_0xca0baf,this['_menuManagerService']=_0x4ef88e,this[_0x241e0f(0x172)](),this[_0x241e0f(0x232)]();}[_0x23152a(0x172)](){var _0x2b359a=_0x23152a;[V][_0x2b359a(0x1e5)](_0xeef7fb=>{var _0x2d1e4d=_0x2b359a;this[_0x2d1e4d(0x1ad)](this[_0x2d1e4d(0x1bf)]['registerCommand'](_0xeef7fb));});}[_0x23152a(0x232)](){var _0x5e9a6f=_0x23152a;this['_menuManagerService'][_0x5e9a6f(0x170)](gn);}};k=hn([te(0x0,_0xf4c6c0),te(0x1,_0x1033be)],k);const On={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x23152a(0x1c9),'connected':'MCP\x20Connected','failed':_0x23152a(0x134),'retrying':_0x23152a(0x1ef),'unknown':_0x23152a(0x24d),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x23152a(0x199),'networkError':_0x23152a(0x1ea),'maxRetriesExceeded':_0x23152a(0x200),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x23152a(0x233)},'mcpConfig':{'title':_0x23152a(0x1b8),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x23152a(0x1ac),'apiKeyPlaceholder':_0x23152a(0x250),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x23152a(0x22e),'connectionInfo':_0x23152a(0x15d),'mcpClientConfig':_0x23152a(0x15d),'configInstructions':_0x23152a(0x1a2),'configStepTitle':_0x23152a(0x1b7),'configStep1':_0x23152a(0x14d),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x23152a(0x1fb),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x23152a(0x1e7),'configParameters':_0x23152a(0x125),'maxRetries':_0x23152a(0x1dc),'save':_0x23152a(0x14b),'saving':'Saving...','note1':_0x23152a(0x1ec),'note2':_0x23152a(0x110),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x23152a(0x23b),'description':_0x23152a(0x247),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x23152a(0x17a)},'validation':{'apiKeyRequired':_0x23152a(0x115),'apiKeyTooShort':_0x23152a(0x17d),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x23152a(0x259)},'connectionStatus':{'disconnected':_0x23152a(0x234),'connecting':_0x23152a(0x158),'connected':_0x23152a(0x156),'failed':_0x23152a(0x206),'retrying':_0x23152a(0x263)},'connectionError':{'unauthorized':_0x23152a(0x116),'sessionOccupied':_0x23152a(0x252),'networkError':_0x23152a(0x210),'maxRetriesExceeded':_0x23152a(0x25f)}}},kn={'mcpStatus':{'disconnected':_0x23152a(0x112),'connecting':_0x23152a(0x209),'connected':'MCP\x20已连接','failed':_0x23152a(0x128),'retrying':_0x23152a(0x25c),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x23152a(0x20d),'networkError':_0x23152a(0x138),'maxRetriesExceeded':_0x23152a(0x262),'clickToConnect':_0x23152a(0x1b2),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x23152a(0x1a3),'description':_0x23152a(0x16a),'apiKey':_0x23152a(0x1c2),'apiKeyPlaceholder':_0x23152a(0x181),'apiKeyHint':_0x23152a(0x139),'enableAuth':_0x23152a(0x237),'enableAuthHint':_0x23152a(0x25e),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x23152a(0x159),'configInstructions':_0x23152a(0x19e),'configStepTitle':'配置步骤:','configStep1':_0x23152a(0x185),'configStep2':_0x23152a(0x13f),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x23152a(0x12c),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x23152a(0x255),'configParameters':_0x23152a(0x143),'maxRetries':_0x23152a(0x15e),'save':_0x23152a(0x1d0),'saving':_0x23152a(0x1db),'note1':_0x23152a(0x12b),'note2':_0x23152a(0x11c),'configSaved':_0x23152a(0x114),'configError':'配置保存失败','apiApplyInfo':{'title':_0x23152a(0x1c0),'description':_0x23152a(0x19d),'univerAiLabel':_0x23152a(0x1f5),'getStarted':_0x23152a(0x1f8)},'validation':{'apiKeyRequired':_0x23152a(0x186),'apiKeyTooShort':_0x23152a(0x16e),'invalidConfig':_0x23152a(0x1ee),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x23152a(0x176),'connecting':_0x23152a(0x1e1),'connected':_0x23152a(0x18a),'failed':'连接失败','retrying':_0x23152a(0x256)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x23152a(0x10e),'networkError':_0x23152a(0x19a),'maxRetriesExceeded':_0x23152a(0x24a)}}};var mn=Object[_0x23152a(0x1fe)],Cn=Object['getOwnPropertyDescriptor'],yn=(_0x53fd87,_0x21e10f,_0x1b78fd)=>_0x21e10f in _0x53fd87?mn(_0x53fd87,_0x21e10f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b78fd}):_0x53fd87[_0x21e10f]=_0x1b78fd,_n=(_0x266c83,_0x523496,_0x2b85da,_0x4098c6)=>{var _0x3dba6c=_0x23152a;for(var _0x540112=_0x4098c6>0x1?void 0x0:_0x4098c6?Cn(_0x523496,_0x2b85da):_0x523496,_0x17daeb=_0x266c83[_0x3dba6c(0x239)]-0x1,_0x1adbaf;_0x17daeb>=0x0;_0x17daeb--)(_0x1adbaf=_0x266c83[_0x17daeb])&&(_0x540112=_0x1adbaf(_0x540112)||_0x540112);return _0x540112;},E=(_0x7f34ae,_0x20eb72)=>(_0x3fb8d4,_0x5f3559)=>_0x20eb72(_0x3fb8d4,_0x5f3559,_0x7f34ae),xn=(_0x503324,_0x289082,_0x3a1f0c)=>yn(_0x503324,_0x289082+'',_0x3a1f0c);let L=class extends _0x3d4f76{constructor(_0x569b02=re,_0xf0024a,_0x43fbf8,_0x14cf29,_0x54b9da,_0x1a4f53){var _0x50a949=_0x23152a;super(),this[_0x50a949(0x1e4)]=_0x569b02,this[_0x50a949(0x20c)]=_0xf0024a,this[_0x50a949(0x224)]=_0x43fbf8,this[_0x50a949(0x18c)]=_0x14cf29,this[_0x50a949(0x213)]=_0x54b9da,this[_0x50a949(0x119)]=_0x1a4f53;const {..._0x413f53}=_0x16b0a4({},re,this[_0x50a949(0x1e4)]);this[_0x50a949(0x224)][_0x50a949(0x177)](x,_0x413f53);}async[_0x23152a(0x161)](){var _0x37dff6=_0x23152a;const _0x510e91=[[O],[I],[k]];this['_injector'][_0x37dff6(0x1c8)](_0x28fc4b)||_0x510e91[_0x37dff6(0x1b5)]([_0x28fc4b,{'useClass':_0x5e8ef7}]),_0x510e91['forEach'](_0x3ad79a=>this[_0x37dff6(0x20c)][_0x37dff6(0x218)](_0x3ad79a)),this[_0x37dff6(0x20c)][_0x37dff6(0x251)](O),this[_0x37dff6(0x20c)]['get'](I),this[_0x37dff6(0x20c)][_0x37dff6(0x251)](k);}};xn(L,_0x23152a(0x10d),'MCP_UI_PLUGIN'),L=_n([_0x2f5397(_0xfd0ba3),E(0x1,_0x10c81c(_0x5b2e98)),E(0x2,_0x1496de),E(0x3,_0x1846c7),E(0x4,_0x118e2e),E(0x5,_0x10c81c(_0x29ac55))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};
1
+ var _0x142c05=_0x5b39;function _0x5b39(_0x326bc2,_0x3b2a6f){var _0x183987=_0x1839();return _0x5b39=function(_0x5b39ea,_0x18e63b){_0x5b39ea=_0x5b39ea-0xf1;var _0x1e1a15=_0x183987[_0x5b39ea];return _0x1e1a15;},_0x5b39(_0x326bc2,_0x3b2a6f);}(function(_0x229832,_0x2ce2c2){var _0x39cb12=_0x5b39,_0x23c165=_0x229832();while(!![]){try{var _0x108ca1=parseInt(_0x39cb12(0x1ee))/0x1*(parseInt(_0x39cb12(0x185))/0x2)+-parseInt(_0x39cb12(0x102))/0x3+parseInt(_0x39cb12(0xfa))/0x4+parseInt(_0x39cb12(0x136))/0x5*(-parseInt(_0x39cb12(0x225))/0x6)+parseInt(_0x39cb12(0x23f))/0x7*(parseInt(_0x39cb12(0x160))/0x8)+-parseInt(_0x39cb12(0x249))/0x9+parseInt(_0x39cb12(0x24a))/0xa*(parseInt(_0x39cb12(0x23e))/0xb);if(_0x108ca1===_0x2ce2c2)break;else _0x23c165['push'](_0x23c165['shift']());}catch(_0x259b18){_0x23c165['push'](_0x23c165['shift']());}}}(_0x1839,0xc18ea));var we=Object[_0x142c05(0x146)],Ee=(_0x32c983,_0x2e3e5f,_0x5f1d98)=>_0x2e3e5f in _0x32c983?we(_0x32c983,_0x2e3e5f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f1d98}):_0x32c983[_0x2e3e5f]=_0x5f1d98,S=(_0x47edaf,_0x1aabff,_0x1445b9)=>Ee(_0x47edaf,typeof _0x1aabff!=_0x142c05(0x1fa)?_0x1aabff+'':_0x1aabff,_0x1445b9);import{LocaleService as _0x2e6f05,Inject as _0x48db02,Injector as _0x5da914,IConfigService as _0x18797f,ILocalStorageService as _0xabbfef,ILogService as _0xe4ba5f,Disposable as _0xae4831,CommandType as _0x19ef8c,ICommandService as _0x30417a,DependentOn as _0x36592e,Plugin as _0xe55845,merge as _0x186d7f}from'@univerjs/core';import{jsxs as _0x2594c0,jsx as _0x6ea082}from'react/jsx-runtime';import{MCPConnectionStatus as _0x2bb2c9,MCPConnectionError as _0xae1da8,MCPConnectionController as _0x25542c,MCP_PLUGIN_CONFIG_KEY as _0x1713db,UniverMCPPlugin as _0x2269e2}from'@univerjs-pro/mcp';import{Input as _0x502db6,Button as _0x25095d,MessageType as _0x569172,Tooltip as _0x903a45,clsx as _0x2eead1}from'@univerjs/design';import{useDependency as _0x4b00df,useObservable as _0x17888a,IUIPartsService as _0x1d186e,IDialogService as _0x24d28a,IMessageService as _0x43b4d4,ComponentManager as _0x348444,connectInjector as _0x46d569,BuiltInUIPart as _0x143d6e,MenuItemType as _0x5e09ee,RibbonStartGroup as _0x4cceec,IMenuManagerService as _0x1a2c0f}from'@univerjs/ui';import{BehaviorSubject as _0x5a5a07}from'rxjs';import{forwardRef as _0x212263,useRef as _0x2c0086,createElement as _0x3c5c4b,useState as _0x3a08dc,useCallback as _0x5e7410}from'react';import{ISocketService as _0x4cfe40,WebSocketService as _0x787a24}from'@univerjs/network';var f=function(){var _0x50a90c=_0x142c05;return f=Object[_0x50a90c(0x210)]||function(_0x51fc7e){var _0x94ae45=_0x50a90c;for(var _0x2d089a,_0x53de9b=0x1,_0x596089=arguments[_0x94ae45(0x235)];_0x53de9b<_0x596089;_0x53de9b++){_0x2d089a=arguments[_0x53de9b];for(var _0x5dd000 in _0x2d089a)Object['prototype'][_0x94ae45(0x214)][_0x94ae45(0x200)](_0x2d089a,_0x5dd000)&&(_0x51fc7e[_0x5dd000]=_0x2d089a[_0x5dd000]);}return _0x51fc7e;},f[_0x50a90c(0x247)](this,arguments);},Ye=function(_0xee6294,_0x3ad022){var _0xb93427=_0x142c05,_0x16f010={};for(var _0x42b180 in _0xee6294)Object['prototype'][_0xb93427(0x214)][_0xb93427(0x200)](_0xee6294,_0x42b180)&&_0x3ad022[_0xb93427(0xf7)](_0x42b180)<0x0&&(_0x16f010[_0x42b180]=_0xee6294[_0x42b180]);if(_0xee6294!=null&&typeof Object[_0xb93427(0x142)]=='function'){for(var _0x2b320a=0x0,_0x42b180=Object[_0xb93427(0x142)](_0xee6294);_0x2b320a<_0x42b180[_0xb93427(0x235)];_0x2b320a++)_0x3ad022[_0xb93427(0xf7)](_0x42b180[_0x2b320a])<0x0&&Object[_0xb93427(0x10e)][_0xb93427(0x145)]['call'](_0xee6294,_0x42b180[_0x2b320a])&&(_0x16f010[_0x42b180[_0x2b320a]]=_0xee6294[_0x42b180[_0x2b320a]]);}return _0x16f010;},w=_0x212263(function(_0x20ea81,_0xeb690){var _0x1f66ee=_0x142c05,_0x2fcc92=_0x20ea81[_0x1f66ee(0x17f)],_0x59228a=_0x20ea81['id'],_0x5b7b29=_0x20ea81[_0x1f66ee(0x20b)],_0x898ae0=_0x20ea81[_0x1f66ee(0x119)],_0x34304e=Ye(_0x20ea81,[_0x1f66ee(0x17f),'id','className',_0x1f66ee(0x119)]),_0x262871=_0x1f66ee(0x158)[_0x1f66ee(0x17d)](_0x59228a,'\x20')[_0x1f66ee(0x17d)](_0x5b7b29||'')[_0x1f66ee(0x111)](),_0x4a6144=_0x2c0086('_'[_0x1f66ee(0x17d)](Xe()));return ue(_0x2fcc92,''['concat'](_0x59228a),{'defIds':_0x2fcc92[_0x1f66ee(0x180)],'idSuffix':_0x4a6144[_0x1f66ee(0x1f9)]},f({'ref':_0xeb690,'className':_0x262871},_0x34304e),_0x898ae0);});function ue(_0x36207d,_0x4b6ddf,_0x41c592,_0x4d7b04,_0x50df8a){return _0x3c5c4b(_0x36207d['tag'],f(f({'key':_0x4b6ddf},Ze(_0x36207d,_0x41c592,_0x50df8a)),_0x4d7b04),(qe(_0x36207d,_0x41c592)['children']||[])['map'](function(_0x492797,_0x27e842){var _0xbc660a=_0x5b39;return ue(_0x492797,''['concat'](_0x4b6ddf,'-')[_0xbc660a(0x17d)](_0x36207d[_0xbc660a(0x1a3)],'-')['concat'](_0x27e842),_0x41c592,void 0x0,_0x50df8a);}));}function Ze(_0x10b953,_0x57c5e6,_0xf590fa){var _0x4efc68=_0x142c05,_0x30a74e=f({},_0x10b953['attrs']);_0xf590fa!=null&&_0xf590fa[_0x4efc68(0x223)]&&_0x30a74e[_0x4efc68(0x21d)]===_0x4efc68(0x223)&&(_0x30a74e[_0x4efc68(0x21d)]=_0xf590fa[_0x4efc68(0x223)]),_0x10b953[_0x4efc68(0x1a3)]===_0x4efc68(0x219)&&_0x30a74e['id']&&(_0x30a74e['id']=_0x30a74e['id']+_0x57c5e6[_0x4efc68(0x15c)]),Object[_0x4efc68(0x14b)](_0x30a74e)['forEach'](function(_0x23e50b){var _0x424b48=_0x4efc68,_0xe742e2=_0x23e50b[0x0],_0x1dec73=_0x23e50b[0x1];_0xe742e2==='mask'&&typeof _0x1dec73==_0x424b48(0x1f1)&&(_0x30a74e[_0xe742e2]=_0x1dec73['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x57c5e6[_0x424b48(0x15c)],')')));});var _0x21d2c6=_0x57c5e6[_0x4efc68(0x180)];return!_0x21d2c6||_0x21d2c6['length']===0x0||(_0x10b953[_0x4efc68(0x1a3)]===_0x4efc68(0x245)&&_0x30a74e['xlink:href']&&(_0x30a74e[_0x4efc68(0x116)]=_0x30a74e['xlink:href']+_0x57c5e6[_0x4efc68(0x15c)]),Object['entries'](_0x30a74e)[_0x4efc68(0x147)](function(_0x5f399e){var _0x316182=_0x4efc68,_0x2323cf=_0x5f399e[0x0],_0x15a6aa=_0x5f399e[0x1];typeof _0x15a6aa==_0x316182(0x1f1)&&(_0x30a74e[_0x2323cf]=_0x15a6aa[_0x316182(0x21c)](/url\(#(.*)\)/,_0x316182(0x230)[_0x316182(0x17d)](_0x57c5e6[_0x316182(0x15c)],')')));})),_0x30a74e;}function qe(_0x145719,_0x33dfd3){var _0x3d5060=_0x142c05,_0x2fa6be,_0x8babb7=_0x33dfd3[_0x3d5060(0x180)];return!_0x8babb7||_0x8babb7[_0x3d5060(0x235)]===0x0?_0x145719:_0x145719[_0x3d5060(0x1a3)]===_0x3d5060(0x19e)&&(!((_0x2fa6be=_0x145719[_0x3d5060(0x132)])===null||_0x2fa6be===void 0x0)&&_0x2fa6be['length'])?f(f({},_0x145719),{'children':_0x145719[_0x3d5060(0x132)][_0x3d5060(0x153)](function(_0x31ae6c){var _0x12b6da=_0x3d5060;return typeof _0x31ae6c[_0x12b6da(0x17a)]['id']==_0x12b6da(0x1f1)&&_0x8babb7&&_0x8babb7[_0x12b6da(0x233)](_0x31ae6c[_0x12b6da(0x17a)]['id'])?f(f({},_0x31ae6c),{'attrs':f(f({},_0x31ae6c[_0x12b6da(0x17a)]),{'id':_0x31ae6c['attrs']['id']+_0x33dfd3[_0x12b6da(0x15c)]})}):_0x31ae6c;})}):_0x145719;}function Xe(){var _0x1ffcec=_0x142c05;return Math['random']()[_0x1ffcec(0x21f)](0x24)[_0x1ffcec(0x21a)](0x2,0x8);}w[_0x142c05(0x1ff)]=_0x142c05(0x16c);var Je={'tag':_0x142c05(0x14f),'attrs':{'xmlns':_0x142c05(0x168),'fill':_0x142c05(0x1d4),'viewBox':_0x142c05(0xf3),'width':_0x142c05(0x1b5),'height':_0x142c05(0x1b5)},'children':[{'tag':_0x142c05(0x117),'attrs':{'fill':_0x142c05(0x10c),'d':_0x142c05(0x129),'fillRule':_0x142c05(0x217),'clipRule':_0x142c05(0x217)}}]},le=_0x212263(function(_0x2a15eb,_0x35e269){var _0x4f8dde=_0x142c05;return _0x3c5c4b(w,Object[_0x4f8dde(0x210)]({},_0x2a15eb,{'id':'check-mark-icon','ref':_0x35e269,'icon':Je}));});le['displayName']=_0x142c05(0x1fc);var Qe={'tag':'svg','attrs':{'xmlns':_0x142c05(0x168),'fill':_0x142c05(0x1d4),'viewBox':_0x142c05(0x128),'width':_0x142c05(0x1b5),'height':_0x142c05(0x1b5)},'children':[{'tag':_0x142c05(0x117),'attrs':{'stroke':_0x142c05(0x10c),'d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x142c05(0x106),'strokeLinejoin':_0x142c05(0x106),'strokeWidth':1.33}},{'tag':_0x142c05(0x117),'attrs':{'stroke':'currentColor','d':_0x142c05(0x250),'strokeLinecap':'round','strokeLinejoin':_0x142c05(0x106),'strokeWidth':1.33}}]},ve=_0x212263(function(_0xd05f2a,_0x42c266){var _0x575919=_0x142c05;return _0x3c5c4b(w,Object[_0x575919(0x210)]({},_0xd05f2a,{'id':'close-small-single','ref':_0x42c266,'icon':Qe}));});ve[_0x142c05(0x1ff)]=_0x142c05(0x227);var en={'tag':_0x142c05(0x14f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x142c05(0x1d4),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':_0x142c05(0x117),'attrs':{'fill':_0x142c05(0x10c),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x142c05(0x117),'attrs':{'fill':_0x142c05(0x10c),'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':_0x142c05(0x117),'attrs':{'fill':_0x142c05(0x10c),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x142c05(0x217),'clipRule':'evenodd'}}]},de=_0x212263(function(_0x358609,_0x28b197){var _0xd1f8f2=_0x142c05;return _0x3c5c4b(w,Object[_0xd1f8f2(0x210)]({},_0x358609,{'id':_0xd1f8f2(0x15a),'ref':_0x28b197,'icon':en}));});de[_0x142c05(0x1ff)]='HelpSingle';var nn={'tag':_0x142c05(0x14f),'attrs':{'xmlns':_0x142c05(0x168),'fill':_0x142c05(0x1d4),'viewBox':_0x142c05(0xf3),'width':_0x142c05(0x1b5),'height':_0x142c05(0x1b5)},'children':[{'tag':'g','attrs':{'clipPath':_0x142c05(0x193)},'children':[{'tag':_0x142c05(0x117),'attrs':{'stroke':_0x142c05(0x10c),'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':_0x142c05(0x106),'strokeLinejoin':_0x142c05(0x106),'strokeWidth':1.2}}]},{'tag':_0x142c05(0x19e),'attrs':{},'children':[{'tag':_0x142c05(0x22b),'attrs':{'id':_0x142c05(0xfc)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x142c05(0x11e)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},fe=_0x212263(function(_0x9458dd,_0x1df062){var _0x4a4f8c=_0x142c05;return _0x3c5c4b(w,Object['assign']({},_0x9458dd,{'id':_0x4a4f8c(0x1d6),'ref':_0x1df062,'icon':nn}));});fe[_0x142c05(0x1ff)]='OffLineIcon';var rn={'tag':'svg','attrs':{'xmlns':_0x142c05(0x168),'fill':_0x142c05(0x1d4),'viewBox':'0\x200\x2017\x2016','width':_0x142c05(0x1b5),'height':_0x142c05(0x1b5)},'children':[{'tag':'g','attrs':{'clipPath':_0x142c05(0x11d)},'children':[{'tag':_0x142c05(0x117),'attrs':{'stroke':'currentColor','d':_0x142c05(0x19a),'strokeLinecap':'round','strokeLinejoin':_0x142c05(0x106),'strokeWidth':1.2}}]},{'tag':_0x142c05(0x19e),'attrs':{},'children':[{'tag':_0x142c05(0x22b),'attrs':{'id':_0x142c05(0x13f)},'children':[{'tag':_0x142c05(0x117),'attrs':{'fill':_0x142c05(0x199),'d':_0x142c05(0x11e),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x212263(function(_0x13568d,_0x5b4ad8){var _0x1b5fcf=_0x142c05;return _0x3c5c4b(w,Object[_0x1b5fcf(0x210)]({},_0x13568d,{'id':'on-line-icon','ref':_0x5b4ad8,'icon':rn}));});ge[_0x142c05(0x1ff)]='OnLineIcon';function tn(_0x186166){var _0x38e33f=_0x142c05,_0x339b8c,_0x3c3466;const {mcpCoreConfig:_0x148233,onSave:_0x25c121,loading:_0x39764e=!0x1,config:_0x6bd562,connectionStatus$:_0x14f62d,connectionError$:_0x155563,currentApiKey$:_0xf44812,currentSessionId$:_0x3c875d}=_0x186166,_0x54d7bf=_0x4b00df(_0x2e6f05),_0x129972=_0x17888a(_0x14f62d,_0x2bb2c9['DISCONNECTED']),_0x2a8273=_0x17888a(_0x155563,_0xae1da8[_0x38e33f(0x1b2)]),_0x120bc9=_0x17888a(_0x3c875d,''),_0x5dd84c=_0x17888a(_0xf44812,''),[_0x3051a4,_0x38a40b]=_0x3a08dc(_0x5dd84c||''),_0x201360=!0x0,_0xce8711=_0x6bd562[_0x38e33f(0x112)]&&_0x148233['mcpServerUrl']&&(_0x148233[_0x38e33f(0x114)][_0x38e33f(0x233)](_0x38e33f(0x134))||_0x148233[_0x38e33f(0x114)]['includes'](_0x38e33f(0x23d))),_0x52b2a4=(_0x339b8c=_0x148233[_0x38e33f(0x114)])==null?void 0x0:_0x339b8c[_0x38e33f(0x233)](_0x38e33f(0x134)),_0x1086f2=(_0x3c3466=_0x148233[_0x38e33f(0x114)])==null?void 0x0:_0x3c3466[_0x38e33f(0x233)](_0x38e33f(0x23d)),_0x519d24=_0x52b2a4?_0x38e33f(0x140):'https://console.univer.ai',_0x5976dd=_0x6bd562[_0x38e33f(0x112)]&&(_0x52b2a4||_0x1086f2),[_0x4c12e6,_0x3aa82b]=_0x3a08dc(!_0x3051a4[_0x38e33f(0x111)]()),_0x474a0a=(_0xea64e1,_0x2ca238)=>{var _0x58d416=_0x38e33f;if(_0x2ca238===_0xae1da8[_0x58d416(0x138)])return _0x58d416(0x150);switch(_0xea64e1){case _0x2bb2c9['CONNECTED']:return _0x58d416(0x213);case _0x2bb2c9[_0x58d416(0x218)]:case _0x2bb2c9[_0x58d416(0x187)]:return _0x58d416(0x130);case _0x2bb2c9[_0x58d416(0x175)]:return _0x58d416(0x150);default:return _0x58d416(0xf4);}},_0x29f185=(_0x320075,_0x11768c)=>{var _0x6a55ec=_0x38e33f;if(_0x11768c===_0xae1da8[_0x6a55ec(0x138)])return _0x6a55ec(0x133);switch(_0x320075){case _0x2bb2c9['CONNECTED']:return _0x6a55ec(0x184);case _0x2bb2c9['CONNECTING']:case _0x2bb2c9[_0x6a55ec(0x187)]:return _0x6a55ec(0x231);case _0x2bb2c9[_0x6a55ec(0x175)]:return'univer-bg-red-500';default:return _0x6a55ec(0x18c);}},_0x29f2ec=_0x4d6cb1=>{var _0x1efa42=_0x38e33f;switch(_0x4d6cb1){case _0x2bb2c9[_0x1efa42(0x1b8)]:return _0x54d7bf['t'](_0x1efa42(0x1c9));case _0x2bb2c9[_0x1efa42(0x218)]:return _0x54d7bf['t'](_0x1efa42(0x239));case _0x2bb2c9['FAILED']:return _0x54d7bf['t'](_0x1efa42(0x16a));case _0x2bb2c9['RETRYING']:return _0x54d7bf['t'](_0x1efa42(0x1d0));default:return _0x54d7bf['t']('mcpConfig.connectionStatus.disconnected');}},_0x5d2920=_0x413359=>{var _0x1eefe9=_0x38e33f;switch(_0x413359){case _0xae1da8[_0x1eefe9(0x138)]:return _0x54d7bf['t'](_0x1eefe9(0x125));case _0xae1da8[_0x1eefe9(0x22f)]:return _0x54d7bf['t'](_0x1eefe9(0x13e));case _0xae1da8[_0x1eefe9(0x1d7)]:return _0x54d7bf['t'](_0x1eefe9(0x209));case _0xae1da8[_0x1eefe9(0x108)]:return _0x54d7bf['t'](_0x1eefe9(0x18b));default:return'';}},_0xdab19c=_0x5e7410(()=>{var _0x55bae4=_0x38e33f;const _0x569ef2={..._0x148233,'apiKey':_0x3051a4[_0x55bae4(0x111)](),'enableAuth':_0x201360};_0x25c121(_0x569ef2);},[_0x148233,_0x3051a4,_0x201360,_0x25c121]),_0xf894b2=_0x3051a4['trim']()[_0x38e33f(0x235)]>0x0;return _0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x122),'children':[_0x6ea082(_0x38e33f(0x1ad),{'className':_0x38e33f(0x24f),'children':_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x1ca),'children':[_0x6ea082(_0x38e33f(0x1ad),{'className':_0x38e33f(0x208),'children':_0x6ea082(_0x38e33f(0x149),{'className':_0x38e33f(0x1f5),'children':'⚙'})}),_0x6ea082(_0x38e33f(0x1ad),{'children':_0x6ea082('p',{'className':_0x38e33f(0x18e),'children':_0x54d7bf['t'](_0x38e33f(0x24e))})})]})}),_0x2594c0('div',{'className':_0x38e33f(0x1f0),'children':[_0x6ea082(_0x38e33f(0x1ad),{'className':_0x38e33f(0x1db)+_0x474a0a(_0x129972,_0x2a8273)+_0x38e33f(0x202),'children':_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x13d),'children':[_0x6ea082(_0x38e33f(0x1ad),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x29f185(_0x129972,_0x2a8273)+_0x38e33f(0x12c)}),_0x6ea082(_0x38e33f(0x149),{'className':_0x38e33f(0x177),'children':_0x29f2ec(_0x129972)})]})}),_0x2a8273!==_0xae1da8[_0x38e33f(0x1b2)]&&(_0x129972===_0x2bb2c9[_0x38e33f(0x175)]||_0x2a8273===_0xae1da8['UNAUTHORIZED'])&&_0x6ea082(_0x38e33f(0x1ad),{'className':_0x38e33f(0x1a7),'children':_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x1bd),'children':[_0x6ea082('span',{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x6ea082('p',{'className':_0x38e33f(0x1b0),'children':_0x5d2920(_0x2a8273)})]})})]}),_0x6ea082(_0x38e33f(0x1ad),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x2594c0('div',{'className':_0x38e33f(0x1e1),'children':[_0x2594c0('div',{'className':_0x38e33f(0x1c3),'children':[_0x2594c0('label',{'className':_0x38e33f(0x135),'children':[_0x6ea082(_0x38e33f(0x149),{'children':'🔑'}),'\x20',_0x54d7bf['t'](_0x38e33f(0x1b9)),_0x6ea082(_0x38e33f(0x149),{'className':'univer-text-red-500','children':'*'}),_0xce8711&&_0x6ea082('a',{'href':_0x38e33f(0x181),'onClick':()=>_0x3aa82b(!0x0),'className':_0x38e33f(0x1d1),'title':_0x54d7bf['t'](_0x38e33f(0x241)),'children':_0x6ea082(de,{})})]}),_0x6ea082(_0x502db6,{'type':_0x38e33f(0x186),'placeholder':_0x54d7bf['t'](_0x38e33f(0x101)),'value':_0x3051a4,'onChange':_0x38a40b,'disabled':_0x39764e,'autoComplete':_0x38e33f(0x22c)}),_0x6ea082('p',{'className':_0x38e33f(0x15e),'children':_0x54d7bf['t'](_0x38e33f(0x1f4))})]}),_0xce8711&&_0x4c12e6&&_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x20a),'children':[_0x6ea082('a',{'href':_0x38e33f(0x181),'onClick':()=>_0x3aa82b(!0x1),'className':_0x38e33f(0x20e),'title':_0x38e33f(0x1ce),'children':_0x6ea082(ve,{})}),_0x2594c0('div',{'className':_0x38e33f(0x109),'children':[_0x6ea082(_0x38e33f(0x1ad),{'className':_0x38e33f(0x11c),'children':_0x6ea082('span',{'className':'univer-text-blue-600','children':'🚀'})}),_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x1ed),'children':[_0x6ea082('h4',{'className':_0x38e33f(0x10a),'children':_0x54d7bf['t'](_0x38e33f(0x241))}),_0x6ea082('p',{'className':_0x38e33f(0x11f),'children':_0x54d7bf['t'](_0x38e33f(0x139))}),_0x6ea082(_0x38e33f(0x1ad),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x5976dd&&_0x2594c0('a',{'href':_0x519d24,'target':'_blank','rel':_0x38e33f(0x1f8),'className':_0x38e33f(0x198),'children':[_0x6ea082('span',{'children':'🤖'}),_0x54d7bf['t'](_0x38e33f(0x248)),_0x6ea082('span',{'className':'univer-text-gray-400','children':'↗'})]})}),_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0xfb),'children':['✨','\x20',_0x54d7bf['t'](_0x38e33f(0x1a8))]})]})]})]}),_0x6bd562[_0x38e33f(0x112)]&&_0x2594c0(_0x38e33f(0x1ad),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x2594c0('h4',{'className':_0x38e33f(0x103),'children':[_0x6ea082(_0x38e33f(0x149),{'children':'🔗'}),'\x20',_0x54d7bf['t'](_0x38e33f(0x1fb))]}),_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x206),'children':[_0x2594c0(_0x38e33f(0x1ad),{'className':'univer-space-y-3','children':[_0x6ea082('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x54d7bf['t'](_0x38e33f(0x243))}),_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x1c3),'children':[_0x6ea082('div',{'className':_0x38e33f(0x1d3),'children':_0x54d7bf['t'](_0x38e33f(0xff))}),_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x155),'children':[_0x2594c0(_0x38e33f(0x1ad),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x6ea082(_0x38e33f(0x149),{'className':_0x38e33f(0x1d8),'children':'1'}),_0x54d7bf['t'](_0x38e33f(0x173))]}),_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x13d),'children':[_0x6ea082(_0x38e33f(0x149),{'className':_0x38e33f(0x1d8),'children':'2'}),_0x54d7bf['t'](_0x38e33f(0x1ef))]}),_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x13d),'children':[_0x6ea082(_0x38e33f(0x149),{'className':'univer-flex\x20univer-h-4\x20univer-w-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'}),_0x54d7bf['t'](_0x38e33f(0x22e))]})]})]})]}),_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x1c3),'children':[_0x6ea082('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x38e33f(0x148)}),_0x6ea082(_0x38e33f(0x1ad),{'className':_0x38e33f(0x1b4),'children':_0x6ea082('pre',{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0x120bc9+_0x38e33f(0x152)+(_0x3051a4||'<API_KEY>')+'\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}'})})]}),_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x14d),'children':[_0x6ea082(_0x38e33f(0x1ad),{'className':_0x38e33f(0x1d3),'children':_0x54d7bf['t'](_0x38e33f(0x12b))}),_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x1c3),'children':[_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x212),'children':[_0x6ea082(_0x38e33f(0x1ad),{'className':_0x38e33f(0x19b)}),_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x1cc),'children':[_0x6ea082('div',{'className':_0x38e33f(0x126),'children':_0x38e33f(0x1dd)}),_0x6ea082('div',{'className':_0x38e33f(0x15e),'children':_0x54d7bf['t']('mcpConfig.sessionIdDescription')})]})]}),_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x212),'children':[_0x6ea082(_0x38e33f(0x1ad),{'className':_0x38e33f(0x19b)}),_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x1cc),'children':[_0x6ea082('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'Authorization:'}),_0x6ea082(_0x38e33f(0x1ad),{'className':_0x38e33f(0x15e),'children':_0x54d7bf['t'](_0x38e33f(0x1c1))})]})]})]})]})]})]}),_0x6ea082(_0x25095d,{'onClick':_0xdab19c,'disabled':!_0xf894b2||_0x39764e,'className':_0x38e33f(0x165),'children':_0x39764e?_0x2594c0(_0x38e33f(0x149),{'className':_0x38e33f(0x13d),'children':[_0x6ea082(_0x38e33f(0x149),{'children':'⟲'}),_0x54d7bf['t'](_0x38e33f(0xf2))]}):_0x2594c0('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x6ea082(le,{}),_0x54d7bf['t']('mcpConfig.save')]})}),_0x6ea082(_0x38e33f(0x1ad),{'className':_0x38e33f(0x1c0),'children':_0x2594c0(_0x38e33f(0x1ad),{'className':_0x38e33f(0x18d),'children':[_0x6ea082(_0x38e33f(0x149),{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x2594c0('div',{'className':_0x38e33f(0x1bf),'children':[_0x6ea082(_0x38e33f(0x1ad),{'className':_0x38e33f(0x1fe),'children':'Configuration\x20Notes:'}),_0x2594c0(_0x38e33f(0x1ad),{'children':['•',_0x54d7bf['t'](_0x38e33f(0x238))]}),_0x2594c0(_0x38e33f(0x1ad),{'children':['•',_0x54d7bf['t']('mcpConfig.note2')]})]})]})})]})})]});}const x=_0x142c05(0x10f),re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object[_0x142c05(0x179)],sn=(_0x4ec7bc,_0x1ada89,_0x532911,_0x4e8e6d)=>{for(var _0x585a5f=_0x4e8e6d>0x1?void 0x0:_0x4e8e6d?on(_0x1ada89,_0x532911):_0x1ada89,_0xabcc51=_0x4ec7bc['length']-0x1,_0x17772c;_0xabcc51>=0x0;_0xabcc51--)(_0x17772c=_0x4ec7bc[_0xabcc51])&&(_0x585a5f=_0x17772c(_0x585a5f)||_0x585a5f);return _0x585a5f;},g=(_0x43a3a6,_0x148597)=>(_0x5d7b6f,_0x2bd1e5)=>_0x148597(_0x5d7b6f,_0x2bd1e5,_0x43a3a6);const j=_0x142c05(0x234),U=_0x142c05(0x207);let I=class extends _0xae4831{constructor(_0x3e58ed,_0x31a764,_0x256ad8,_0x447e9e,_0x21ffc3,_0x80b30f,_0x346cd4,_0x4f2986,_0x4c9417,_0x3745bf){var _0x25cd63=_0x142c05;super(),S(this,_0x25cd63(0x14e),new _0x5a5a07(!0x1)),S(this,'_mcpCoreConfig$',new _0x5a5a07({})),S(this,_0x25cd63(0x197),new _0x5a5a07({})),S(this,_0x25cd63(0x1ba),new _0x5a5a07('')),S(this,_0x25cd63(0x203),async _0x4e54f6=>{var _0x3d611a=_0x25cd63,_0x14ac75,_0x3d71f3;this[_0x3d611a(0x14e)][_0x3d611a(0x229)](!0x0);try{const _0x1a3b0e=await this[_0x3d611a(0x1d5)](_0x4e54f6);if(!_0x1a3b0e[_0x3d611a(0x161)]){this[_0x3d611a(0x1ac)][_0x3d611a(0x137)]({'type':_0x569172[_0x3d611a(0xfe)],'content':_0x1a3b0e['errorMessage']||this[_0x3d611a(0x1a5)]['t'](_0x3d611a(0x16b))});return;}_0x4e54f6[_0x3d611a(0x1a2)]?await this[_0x3d611a(0x169)][_0x3d611a(0x16e)](j,_0x4e54f6[_0x3d611a(0x1a2)]['trim']()):await this['_localStorageService'][_0x3d611a(0x131)](j),this['_apiKey$'][_0x3d611a(0x229)](((_0x14ac75=_0x4e54f6[_0x3d611a(0x1a2)])==null?void 0x0:_0x14ac75[_0x3d611a(0x111)]())||''),this[_0x3d611a(0xf9)][_0x3d611a(0x221)]({'Authorization':_0x3d611a(0x1ae)+((_0x3d71f3=_0x4e54f6[_0x3d611a(0x1a2)])==null?void 0x0:_0x3d71f3[_0x3d611a(0x111)]())}),this[_0x3d611a(0x1ac)][_0x3d611a(0x137)]({'type':_0x569172[_0x3d611a(0x121)],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x12acc8=_0x3d611a;this[_0x12acc8(0x110)][_0x12acc8(0x178)](U);},0x320);}catch(_0x2f8814){this['_logService']['error']('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x2f8814),this['_messageService'][_0x3d611a(0x137)]({'type':_0x569172[_0x3d611a(0xfe)],'content':this[_0x3d611a(0x1a5)]['t'](_0x3d611a(0x240))});}finally{this['_loading$'][_0x3d611a(0x229)](!0x1);}}),(this['_injector']=_0x3e58ed,this[_0x25cd63(0x104)]=_0x31a764,this[_0x25cd63(0x124)]=_0x256ad8,this[_0x25cd63(0x169)]=_0x447e9e,this[_0x25cd63(0x110)]=_0x21ffc3,this[_0x25cd63(0x1ac)]=_0x80b30f,this['_componentManager']=_0x346cd4,this[_0x25cd63(0x1a5)]=_0x4f2986,this[_0x25cd63(0x222)]=_0x4c9417,this[_0x25cd63(0xf9)]=_0x3745bf,this[_0x25cd63(0x13c)](),this['_loadStoredApiKey'](),this[_0x25cd63(0x11b)]());}[_0x142c05(0x16d)](){var _0x128726=_0x142c05;const _0xfb23a8=this[_0x128726(0x124)][_0x128726(0x1a9)](x);_0xfb23a8!=null&&_0xfb23a8[_0x128726(0x112)]&&this[_0x128726(0x110)][_0x128726(0x164)]({'id':U,'title':{'title':this[_0x128726(0x1a5)]['t'](_0x128726(0x244))},'children':{'label':_0x128726(0x144)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x5f2ae5=_0x128726;this[_0x5f2ae5(0x110)][_0x5f2ae5(0x178)](U);}});}['getCurrentConfig'](){var _0x490911=_0x142c05;return this[_0x490911(0x23b)][_0x490911(0x107)];}[_0x142c05(0x11b)](){var _0x27498c=_0x142c05;this[_0x27498c(0x1ea)](this[_0x27498c(0x151)]['register']('MCPConfigPanel',this[_0x27498c(0x10b)]()));}[_0x142c05(0x10b)](){var _0x241723=_0x142c05;return _0x46d569(()=>{var _0x2d58b9=_0x5b39,_0x9bdd10,_0x347375,_0x12160d;return _0x6ea082(tn,{'config':this[_0x2d58b9(0x197)]['value'],'mcpCoreConfig':this[_0x2d58b9(0x23b)]['value'],'currentApiKey$':this[_0x2d58b9(0x1ba)],'onSave':this[_0x2d58b9(0x203)],'loading':this['_loading$'][_0x2d58b9(0x107)],'connectionStatus$':(_0x9bdd10=this[_0x2d58b9(0xf9)])==null?void 0x0:_0x9bdd10[_0x2d58b9(0x190)],'connectionError$':(_0x347375=this[_0x2d58b9(0xf9)])==null?void 0x0:_0x347375[_0x2d58b9(0x13a)],'currentSessionId$':(_0x12160d=this['_mcpConnectionController'])==null?void 0x0:_0x12160d[_0x2d58b9(0x1d2)]});},this[_0x241723(0x143)]);}[_0x142c05(0x13c)](){var _0x2a0f71=_0x142c05;this[_0x2a0f71(0x1ea)](this[_0x2a0f71(0x124)][_0x2a0f71(0x1c2)](_0x1713db)[_0x2a0f71(0x1b3)](_0x2835cd=>{var _0x42d2b0=_0x2a0f71;this[_0x42d2b0(0x23b)][_0x42d2b0(0x229)](_0x2835cd||{});}));const _0x2d92f3=this['_configService']['getConfig'](_0x1713db);this[_0x2a0f71(0x23b)][_0x2a0f71(0x229)](_0x2d92f3||{}),this['disposeWithMe'](this[_0x2a0f71(0x124)][_0x2a0f71(0x1c2)](x)[_0x2a0f71(0x1b3)](_0x5025d7=>{var _0x52c299=_0x2a0f71;this[_0x52c299(0x197)][_0x52c299(0x229)](_0x5025d7||{});}));const _0x1126a5=this['_configService'][_0x2a0f71(0x1a9)](x);this[_0x2a0f71(0x197)][_0x2a0f71(0x229)](_0x1126a5||{});}async[_0x142c05(0x1da)](){var _0x4fcf49=_0x142c05;const _0x15333e=this[_0x4fcf49(0x124)][_0x4fcf49(0x1a9)](x);if(!(_0x15333e!=null&&_0x15333e[_0x4fcf49(0x112)]))return;const _0x4216d1=await this['_localStorageService'][_0x4fcf49(0xf1)](j);_0x4216d1&&(this[_0x4fcf49(0xf9)][_0x4fcf49(0x221)]({'Authorization':_0x4fcf49(0x1ae)+_0x4216d1}),this[_0x4fcf49(0x1ba)][_0x4fcf49(0x229)](_0x4216d1));}async[_0x142c05(0x1d5)](_0x30d4e7){var _0x2df098=_0x142c05;if(!_0x30d4e7[_0x2df098(0x1a2)]||_0x30d4e7[_0x2df098(0x1a2)][_0x2df098(0x111)]()[_0x2df098(0x235)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2df098(0x1a5)]['t'](_0x2df098(0x1e8))};if(_0x30d4e7['apiKey'][_0x2df098(0x111)]()[_0x2df098(0x235)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x6006e4=await this[_0x2df098(0x143)][_0x2df098(0x20f)](_0x25542c)[_0x2df098(0x205)](_0x30d4e7[_0x2df098(0x1a2)]['trim']());return _0x6006e4[_0x2df098(0x161)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x6006e4['error']||this[_0x2df098(0x1a5)]['t'](_0x2df098(0x115))};}catch(_0xa04ce5){return console[_0x2df098(0x191)](_0x2df098(0x228),_0xa04ce5),{'isValid':!0x0};}}};I=sn([g(0x0,_0x48db02(_0x5da914)),g(0x1,_0x1d186e),g(0x2,_0x18797f),g(0x3,_0xabbfef),g(0x4,_0x24d28a),g(0x5,_0x43b4d4),g(0x6,_0x48db02(_0x348444)),g(0x7,_0x48db02(_0x2e6f05)),g(0x8,_0xe4ba5f),g(0x9,_0x48db02(_0x25542c))],I);const V={'id':_0x142c05(0x127),'type':_0x19ef8c['COMMAND'],'handler':async(_0x59fb5b,_0xb8e1ca)=>(_0x59fb5b[_0x142c05(0x20f)](I)[_0x142c05(0x16d)](),!0x0)};function pe(_0x30a95c,_0x14757d){var _0x34fcac=_0x142c05;switch(_0x30a95c){case _0x2bb2c9[_0x34fcac(0x18a)]:return'mcpStatus.disconnected';case _0x2bb2c9['CONNECTING']:return _0x34fcac(0x162);case _0x2bb2c9[_0x34fcac(0x1b8)]:return _0x34fcac(0x1f3);case _0x2bb2c9['FAILED']:switch(_0x14757d){case _0xae1da8[_0x34fcac(0x138)]:return _0x34fcac(0x172);case _0xae1da8[_0x34fcac(0x22f)]:return'mcpStatus.sessionOccupied';case _0xae1da8[_0x34fcac(0x1d7)]:return _0x34fcac(0x1e0);case _0xae1da8['MAX_RETRIES_EXCEEDED']:return _0x34fcac(0x220);default:return _0x34fcac(0x10d);}case _0x2bb2c9[_0x34fcac(0x187)]:return _0x34fcac(0x24c);default:return _0x34fcac(0x232);}}function cn(_0x5f21c1,_0x93e2ea,_0x541d03,_0x6f5ac=!0x0){var _0x22314c=_0x142c05;const _0x213b51=pe(_0x5f21c1,_0x93e2ea),_0x5ba84d=_0x541d03['t'](_0x213b51);return _0x6f5ac?_0x5f21c1===_0x2bb2c9[_0x22314c(0x18a)]&&_0x93e2ea===_0xae1da8[_0x22314c(0x138)]?_0x5ba84d+'\x20-\x20'+_0x541d03['t'](_0x22314c(0x20c)):_0x5f21c1===_0x2bb2c9[_0x22314c(0x1b8)]?''+_0x5ba84d:_0x5f21c1===_0x2bb2c9['DISCONNECTED']||_0x5f21c1===_0x2bb2c9[_0x22314c(0x175)]?_0x5ba84d+'\x20-\x20'+_0x541d03['t'](_0x22314c(0x19f)):_0x5ba84d:_0x5ba84d;}function an(_0x1f6a49){var _0x32db41=_0x142c05;switch(_0x1f6a49){case _0x2bb2c9['CONNECTED']:return _0x32db41(0x1ab);case _0x2bb2c9[_0x32db41(0x218)]:case _0x2bb2c9[_0x32db41(0x187)]:return _0x32db41(0x20d);case _0x2bb2c9[_0x32db41(0x175)]:case _0x2bb2c9[_0x32db41(0x18a)]:return'univer-text-red-500';default:return _0x32db41(0x1e3);}}function un(_0x4ad6f1){var _0x853a9e=_0x142c05;const {status$:_0x4a607d,error$:_0x30e821,onConfigure:_0x56932f,showClickable:_0x2b33a1=!0x0}=_0x4ad6f1,_0x336cd4=_0x17888a(_0x4a607d,_0x2bb2c9['DISCONNECTED']),_0x16dcce=_0x17888a(_0x30e821,_0xae1da8['NONE']),_0x2ea9e3=_0x4b00df(_0x2e6f05),_0x2e9f20=_0x336cd4===_0x2bb2c9[_0x853a9e(0x1b8)];_0x336cd4===_0x2bb2c9[_0x853a9e(0x218)]||_0x2bb2c9[_0x853a9e(0x187)];const _0x458927=_0x2ea9e3['t'](pe(_0x336cd4,_0x16dcce)),_0x3d8558=cn(_0x336cd4,_0x16dcce,_0x2ea9e3,_0x2b33a1),_0x5d2a55=an(_0x336cd4),_0x790dc1=_0x2e9f20?_0x6ea082(ge,{}):_0x6ea082(fe,{}),_0x227ef4=_0x5e7410(()=>{_0x2b33a1&&_0x56932f&&_0x56932f();},[_0x2b33a1,_0x56932f]);function _0x2a7bae(){var _0x3087c9=_0x853a9e;return _0x2594c0(_0x3087c9(0x1ad),{'className':_0x2eead1('univer-flex\x20univer-items-center',_0x2b33a1&&_0x56932f&&'\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'),'onClick':_0x2b33a1&&_0x56932f?_0x227ef4:void 0x0,'children':[_0x6ea082(_0x3087c9(0x1ad),{'className':_0x2eead1('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x5d2a55),'children':_0x790dc1}),_0x6ea082('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x458927})]});}return _0x6ea082(_0x903a45,{'title':_0x3d8558,'placement':_0x853a9e(0x1f6),'children':_0x2a7bae()});}function _0x1839(){var _0x2b69d6=['OTHERS','round','value','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_createConfigPanelComponent','currentColor','mcpStatus.failed','prototype','mcp-ui.config','_dialogService','trim','showDeveloperTools','MCP:\x20网络错误','mcpServerUrl','mcpConfig.validation.invalidApiKey','xlink:href','path','MCP\x20Unknown\x20Status','extend','_initStatusComponent','_registerComponent','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','url(#on-line-icon_clip0_910_349)','M0\x200H16V16H0z','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','API\x20密钥不能为空','Success','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','保存配置','_configService','mcpConfig.connectionError.unauthorized','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcp-ui.command.openConfigPanel','0\x200\x2017\x2017','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','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpConfig.configParameters','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','MCP:\x20Unauthorized','重连中...','HEADER_MENU','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','removeItem','children','univer-bg-red-500','univer.plus','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','6644060dqjFMo','show','UNAUTHORIZED','mcpConfig.apiApplyInfo.description','connectionError$','MCP\x20状态未知','_initConfigSync','univer-flex\x20univer-items-center\x20univer-gap-2','mcpConfig.connectionError.sessionOccupied','on-line-icon_clip0_910_349','https://console.univer.plus','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','getOwnPropertySymbols','_injector','MCPConfigPanel','propertyIsEnumerable','defineProperty','forEach','MCP\x20Configuration','span','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','entries','Univer\x20AI\x20控制台','univer-space-y-3','_loading$','svg','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','_componentManager','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','map','重启您的\x20MCP\x20客户端以使配置生效','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','MCP\x20Retrying...','权限验证失败,请检查您的\x20API\x20密钥','univerjs-icon\x20univerjs-icon-','Connecting...','help-single','_initializeCommands','idSuffix','registerComponent','univer-text-xs\x20univer-text-gray-500','MCP\x20配置','41656fYicIp','isValid','mcpStatus.connecting','连接失败','open','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','请输入您的\x20API\x20密钥','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','http://www.w3.org/2000/svg','_localStorageService','mcpConfig.connectionStatus.failed','mcpConfig.validation.invalidConfig','UniverIcon','showConfigPanel','setItem','配置步骤:','Saving...','Copy\x20the\x20JSON\x20configuration\x20below','mcpStatus.unauthorized','mcpConfig.configStep1','MCP:\x20会话\x20ID\x20已被占用','FAILED','MCP\x20已连接','univer-text-sm\x20univer-font-medium','close','getOwnPropertyDescriptor','attrs','_config','setConfig','concat','onStarting','icon','defIds','javascript:void(0)','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','Max\x20Retries','univer-bg-green-500','3980IgGQuE','text','RETRYING','Enable\x20Authentication','MCP:\x20未授权','DISCONNECTED','mcpConfig.connectionError.maxRetriesExceeded','univer-bg-gray-500','univer-flex\x20univer-gap-3','univer-text-sm\x20univer-text-gray-500','MCP\x20Disconnected','connectionStatus$','warn','Invalid\x20configuration','url(#off-line-icon_clip0_910_343)','add','pluginName','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','_config$','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','white','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','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','配置无效','配置参数:','defs','mcpStatus.clickToConnect','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','最大重试次数','apiKey','tag','MCP:\x20Network\x20Error','_localeService','mergeMenu','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.apiApplyInfo.getStarted','getConfig','MCP\x20连接失败','univer-text-green-500','_messageService','div','Bearer\x20','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','MCP\x20Connection\x20Failed','NONE','subscribe','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','1em','enableAutoConnect','Disconnected','CONNECTED','mcpConfig.apiKey','_apiKey$','Enable\x20authentication\x20for\x20secure\x20connections','会话\x20ID\x20已被占用,请稍后再试','univer-flex\x20univer-items-start\x20univer-gap-2','会话ID','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpConfig.authorizationDescription','subscribeConfigValue$','univer-space-y-2','Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Configuration\x20Steps:','_handleConfigure','mcpConfig.connectionStatus.connected','univer-flex\x20univer-items-center\x20univer-gap-3','启用身份验证','univer-min-w-0\x20univer-flex-1','配置更改将立即生效','Close','MCP\x20Client\x20Configuration','mcpConfig.connectionStatus.retrying','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','sessionId$','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','none','_validateConfig','off-line-icon','NETWORK_ERROR','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','带有\x20Bearer\x20前缀的\x20API\x20密钥。','_loadStoredApiKey','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer_session_id:','Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpStatus.networkError','univer-space-y-5','连接中...','univer-text-gray-500','API\x20密钥无效,请检查密钥是否正确','MCP\x20Connecting...','什么是\x20API\x20密钥?','MCP_UI_PLUGIN','mcpConfig.validation.apiKeyRequired','已连接','disposeWithMe','Configuration\x20Parameters:','启用身份验证以获得安全连接','univer-flex-1','191OkiieQ','mcpConfig.configStep2','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','string','MCP\x20Connected','mcpStatus.connected','mcpConfig.apiKeyHint','univer-text-white','bottom','push','noopener\x20noreferrer','current','symbol','mcpConfig.connectionInfo','CheckMarkIcon','_connectionController','univer-font-medium','displayName','call','Save\x20Configuration','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_handleConfigSave','API\x20密钥','validateApiKey','univer-space-y-4','mcp-config-dialog','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','mcpConfig.connectionError.networkError','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','className','mcpStatus.clickToConfigure','univer-text-yellow-500','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','get','assign','MCP\x20已断开','univer-flex\x20univer-items-start\x20univer-gap-3','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','hasOwnProperty','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Session\x20ID\x20Occupied','evenodd','CONNECTING','mask','substring','MCP:\x20Max\x20Retries\x20Exceeded','replace','fill','将以下配置添加到您的\x20MCP\x20客户端设置中:','toString','mcpStatus.maxRetriesExceeded','__setCustomHeaders','_logService','colorChannel1','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','6uekgJT','Session\x20ID','CloseSmallSingle','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','next','Configuration\x20saved\x20successfully','clipPath','off','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','mcpConfig.configStep3','SESSION_ID_OCCUPIED','url(#$1','univer-bg-blue-500','mcpStatus.unknown','includes','mcp.apiKey','length','您的\x20API\x20密钥安全存储在本地存储中','registerCommand','mcpConfig.note1','mcpConfig.connectionStatus.connecting','保存中...','_mcpCoreConfig$','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer.ai','1222826lsnPXF','1841AigyVm','mcpConfig.configError','mcpConfig.apiApplyInfo.title','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.configInstructions','mcpConfig.title','use','将配置添加到您的\x20MCP\x20客户端设置文件中','apply','mcpConfig.apiApplyInfo.univerAiLabel','3336687qBWxKA','180xSSvnq','未连接','mcpStatus.retrying','Click\x20to\x20configure\x20MCP','mcpConfig.description','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','M5.21243\x2012.287L11.8791\x205.62036','_commandService','Univer\x20AI\x20Console','getItem','mcpConfig.saving','0\x200\x2016\x2016','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20客户端配置','indexOf','Failed\x20to\x20save\x20configuration','_mcpConnectionController','179140YePmCJ','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','off-line-icon_clip0_910_343','API\x20密钥长度至少需要\x2010\x20位','Error','mcpConfig.configStepTitle','API\x20Key','mcpConfig.apiKeyPlaceholder','3908817wRpSrP','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_uiPartsService'];_0x1839=function(){return _0x2b69d6;};return _0x1839();}var ln=Object[_0x142c05(0x179)],vn=(_0x433558,_0x3dac6c,_0x126eac,_0x2eec8b)=>{var _0x3da7c2=_0x142c05;for(var _0x346e9e=_0x2eec8b>0x1?void 0x0:_0x2eec8b?ln(_0x3dac6c,_0x126eac):_0x3dac6c,_0x53528f=_0x433558[_0x3da7c2(0x235)]-0x1,_0x42f3b0;_0x53528f>=0x0;_0x53528f--)(_0x42f3b0=_0x433558[_0x53528f])&&(_0x346e9e=_0x42f3b0(_0x346e9e)||_0x346e9e);return _0x346e9e;},A=(_0x3efd62,_0x2bac94)=>(_0x527874,_0x22715d)=>_0x2bac94(_0x527874,_0x22715d,_0x3efd62);let O=class extends _0xae4831{constructor(_0x3ba8c2,_0x2cfbdb,_0x4d5ca2,_0x4965c8){var _0x3d36cf=_0x142c05;super(),this[_0x3d36cf(0x143)]=_0x3ba8c2,this[_0x3d36cf(0x1fd)]=_0x2cfbdb,this[_0x3d36cf(0x104)]=_0x4d5ca2,this['_configService']=_0x4965c8,this['_initAutoConnect'](),this[_0x3d36cf(0x11a)]();}['_initAutoConnect'](){var _0x581f90=_0x142c05;const _0x35e9a7=this[_0x581f90(0x124)][_0x581f90(0x1a9)](x);_0x35e9a7!=null&&_0x35e9a7[_0x581f90(0x112)]&&(this[_0x581f90(0x1fd)][_0x581f90(0x1b6)]=!0x1);}['_initStatusComponent'](){var _0x135762=_0x142c05;const _0x286c08=this[_0x135762(0x124)][_0x135762(0x1a9)](x);(_0x286c08==null?void 0x0:_0x286c08['showStatus'])!==!0x1&&this[_0x135762(0x1ea)](this[_0x135762(0x104)][_0x135762(0x15d)](_0x143d6e[_0x135762(0x12f)],()=>{var _0xd0f632=_0x135762,_0x3d99d6;return _0x46d569(dn({'status$':this['_connectionController'][_0xd0f632(0x190)],'error$':this['_connectionController'][_0xd0f632(0x13a)],'onConfigure':()=>this[_0xd0f632(0x1c8)](),'showClickable':(_0x3d99d6=_0x286c08==null?void 0x0:_0x286c08[_0xd0f632(0x112)])!=null?_0x3d99d6:!0x1}),this[_0xd0f632(0x143)]);}));}['_handleConfigure'](){var _0x503866=_0x142c05;this['_injector'][_0x503866(0x20f)](I)[_0x503866(0x16d)]();}};O=vn([A(0x0,_0x48db02(_0x5da914)),A(0x1,_0x48db02(_0x25542c)),A(0x2,_0x1d186e),A(0x3,_0x18797f)],O);function dn(_0x3875be){const {status$:_0x43fe81,error$:_0x2c15e7,onConfigure:_0x1f9051,showClickable:_0x19d620}=_0x3875be;return function(){return _0x6ea082(un,{'status$':_0x43fe81,'error$':_0x2c15e7,'onConfigure':_0x1f9051,'showClickable':_0x19d620});};}function fn(_0x301825){var _0x56e192=_0x142c05;return{'id':V['id'],'type':_0x5e09ee['BUTTON'],'icon':'MenuIcon','title':_0x56e192(0x244),'tooltip':_0x56e192(0x244)};}const gn={[_0x4cceec[_0x142c05(0x105)]]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};var pn=Object['getOwnPropertyDescriptor'],hn=(_0x1f5740,_0x8f00bd,_0x356dee,_0x36aa1a)=>{var _0xe3fa=_0x142c05;for(var _0x465202=_0x36aa1a>0x1?void 0x0:_0x36aa1a?pn(_0x8f00bd,_0x356dee):_0x8f00bd,_0x5b8b8c=_0x1f5740[_0xe3fa(0x235)]-0x1,_0x67649b;_0x5b8b8c>=0x0;_0x5b8b8c--)(_0x67649b=_0x1f5740[_0x5b8b8c])&&(_0x465202=_0x67649b(_0x465202)||_0x465202);return _0x465202;},te=(_0x1e8143,_0x27db18)=>(_0x51f2ad,_0x549d07)=>_0x27db18(_0x51f2ad,_0x549d07,_0x1e8143);let k=class extends _0xae4831{constructor(_0x247a0f,_0x8ab982){var _0x48c842=_0x142c05;super(),this[_0x48c842(0x251)]=_0x247a0f,this['_menuManagerService']=_0x8ab982,this[_0x48c842(0x15b)](),this['_initializeMenus']();}[_0x142c05(0x15b)](){var _0x480056=_0x142c05;[V][_0x480056(0x147)](_0x13e726=>{var _0x5ef35b=_0x480056;this[_0x5ef35b(0x1ea)](this[_0x5ef35b(0x251)][_0x5ef35b(0x237)](_0x13e726));});}['_initializeMenus'](){var _0x1ead53=_0x142c05;this['_menuManagerService'][_0x1ead53(0x1a6)](gn);}};k=hn([te(0x0,_0x30417a),te(0x1,_0x1a2c0f)],k);const On={'mcpStatus':{'disconnected':_0x142c05(0x18f),'connecting':_0x142c05(0x1e5),'connected':_0x142c05(0x1f2),'failed':_0x142c05(0x1b1),'retrying':_0x142c05(0x156),'unknown':_0x142c05(0x118),'unauthorized':_0x142c05(0x12d),'sessionOccupied':_0x142c05(0x216),'networkError':_0x142c05(0x1a4),'maxRetriesExceeded':_0x142c05(0x21b),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x142c05(0x24d)},'mcpConfig':{'title':_0x142c05(0x148),'description':_0x142c05(0x14a),'apiKey':_0x142c05(0x100),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x142c05(0x224),'enableAuth':_0x142c05(0x188),'enableAuthHint':_0x142c05(0x1bb),'connectionInfo':_0x142c05(0x1cf),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x142c05(0x242),'configStepTitle':_0x142c05(0x1c7),'configStep1':_0x142c05(0x171),'configStep2':_0x142c05(0x215),'configStep3':_0x142c05(0x22d),'sessionId':_0x142c05(0x226),'sessionIdDescription':_0x142c05(0x1df),'authorizationDescription':_0x142c05(0xf5),'configParameters':_0x142c05(0x1eb),'maxRetries':_0x142c05(0x183),'save':_0x142c05(0x201),'saving':_0x142c05(0x170),'note1':_0x142c05(0x141),'note2':_0x142c05(0x167),'configSaved':_0x142c05(0x22a),'configError':_0x142c05(0xf8),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x142c05(0x1af),'univerAiLabel':_0x142c05(0x252),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x142c05(0x1dc),'invalidConfig':_0x142c05(0x192),'invalidApiKey':_0x142c05(0x1c5)},'connectionStatus':{'disconnected':_0x142c05(0x1b7),'connecting':_0x142c05(0x159),'connected':_0x142c05(0x1de),'failed':_0x142c05(0x1c4),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x142c05(0x1a0),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x142c05(0x23c),'maxRetriesExceeded':_0x142c05(0x12a)}}},kn={'mcpStatus':{'disconnected':_0x142c05(0x211),'connecting':'MCP\x20连接中...','connected':_0x142c05(0x176),'failed':_0x142c05(0x1aa),'retrying':'MCP\x20重连中...','unknown':_0x142c05(0x13b),'unauthorized':_0x142c05(0x189),'sessionOccupied':_0x142c05(0x174),'networkError':_0x142c05(0x113),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x142c05(0x15f),'description':_0x142c05(0x1c6),'apiKey':_0x142c05(0x204),'apiKeyPlaceholder':_0x142c05(0x166),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x142c05(0x1cb),'enableAuthHint':_0x142c05(0x1ec),'connectionInfo':_0x142c05(0xf6),'mcpClientConfig':_0x142c05(0xf6),'configInstructions':_0x142c05(0x21e),'configStepTitle':_0x142c05(0x16f),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x142c05(0x246),'configStep3':_0x142c05(0x154),'sessionId':_0x142c05(0x1be),'sessionIdDescription':_0x142c05(0x196),'authorizationDescription':_0x142c05(0x1d9),'configParameters':_0x142c05(0x19d),'maxRetries':_0x142c05(0x1a1),'save':_0x142c05(0x123),'saving':_0x142c05(0x23a),'note1':_0x142c05(0x1cd),'note2':_0x142c05(0x236),'configSaved':'配置保存成功','configError':'配置保存失败','apiApplyInfo':{'title':_0x142c05(0x1e6),'description':_0x142c05(0x182),'univerAiLabel':_0x142c05(0x14c),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x142c05(0x120),'apiKeyTooShort':_0x142c05(0xfd),'invalidConfig':_0x142c05(0x19c),'invalidApiKey':_0x142c05(0x1e4)},'connectionStatus':{'disconnected':_0x142c05(0x24b),'connecting':_0x142c05(0x1e2),'connected':_0x142c05(0x1e9),'failed':_0x142c05(0x163),'retrying':_0x142c05(0x12e)},'connectionError':{'unauthorized':_0x142c05(0x157),'sessionOccupied':_0x142c05(0x1bc),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var mn=Object['defineProperty'],Cn=Object['getOwnPropertyDescriptor'],yn=(_0x57d255,_0x53365e,_0x28f735)=>_0x53365e in _0x57d255?mn(_0x57d255,_0x53365e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28f735}):_0x57d255[_0x53365e]=_0x28f735,_n=(_0x19c2f2,_0xa836ea,_0x425734,_0x4fcb7e)=>{for(var _0x700a94=_0x4fcb7e>0x1?void 0x0:_0x4fcb7e?Cn(_0xa836ea,_0x425734):_0xa836ea,_0x5c765f=_0x19c2f2['length']-0x1,_0x25904a;_0x5c765f>=0x0;_0x5c765f--)(_0x25904a=_0x19c2f2[_0x5c765f])&&(_0x700a94=_0x25904a(_0x700a94)||_0x700a94);return _0x700a94;},E=(_0x3e561d,_0x19986f)=>(_0x14cde4,_0x1e8cb1)=>_0x19986f(_0x14cde4,_0x1e8cb1,_0x3e561d),xn=(_0x3fbb2c,_0x296f63,_0x4024d0)=>yn(_0x3fbb2c,_0x296f63+'',_0x4024d0);let L=class extends _0xe55845{constructor(_0x486bc2=re,_0x304847,_0x5eed42,_0x5afdaf,_0x547400,_0x2b2101){var _0x490856=_0x142c05;super(),this[_0x490856(0x17b)]=_0x486bc2,this[_0x490856(0x143)]=_0x304847,this[_0x490856(0x124)]=_0x5eed42,this[_0x490856(0x104)]=_0x5afdaf,this[_0x490856(0x169)]=_0x547400,this[_0x490856(0x1a5)]=_0x2b2101;const {..._0x13406b}=_0x186d7f({},re,this[_0x490856(0x17b)]);this['_configService'][_0x490856(0x17c)](x,_0x13406b);}async[_0x142c05(0x17e)](){var _0x279ebc=_0x142c05;const _0x13a81b=[[O],[I],[k]];this['_injector']['has'](_0x4cfe40)||_0x13a81b[_0x279ebc(0x1f7)]([_0x4cfe40,{'useClass':_0x787a24}]),_0x13a81b[_0x279ebc(0x147)](_0x488435=>this[_0x279ebc(0x143)][_0x279ebc(0x194)](_0x488435)),this[_0x279ebc(0x143)]['get'](O),this['_injector']['get'](I),this[_0x279ebc(0x143)][_0x279ebc(0x20f)](k);}};xn(L,_0x142c05(0x195),_0x142c05(0x1e7)),L=_n([_0x36592e(_0x2269e2),E(0x1,_0x48db02(_0x5da914)),E(0x2,_0x18797f),E(0x3,_0x1d186e),E(0x4,_0xabbfef),E(0x5,_0x48db02(_0x2e6f05))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};
@@ -1 +1 @@
1
- const _0x47654a=_0x4df7;(function(_0x3853ee,_0x2baee7){const _0x2038ca=_0x4df7,_0x5231ad=_0x3853ee();while(!![]){try{const _0x7be43=-parseInt(_0x2038ca(0x19e))/0x1+parseInt(_0x2038ca(0x18f))/0x2+parseInt(_0x2038ca(0x193))/0x3*(-parseInt(_0x2038ca(0x18c))/0x4)+parseInt(_0x2038ca(0x18b))/0x5*(parseInt(_0x2038ca(0x196))/0x6)+-parseInt(_0x2038ca(0x19a))/0x7+-parseInt(_0x2038ca(0x1a3))/0x8+parseInt(_0x2038ca(0x1ac))/0x9;if(_0x7be43===_0x2baee7)break;else _0x5231ad['push'](_0x5231ad['shift']());}catch(_0x40261c){_0x5231ad['push'](_0x5231ad['shift']());}}}(_0x65cd,0x3c5b9));function _0x65cd(){const _0x34b446=['Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Retrying...','15639165uVtGOZ','Max\x20Retries','MCP\x20Connecting...','Enter\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Steps:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20connect\x20MCP','MCP\x20Unknown\x20Status','11845kLuYTV','15460GyUORG','Enable\x20Authentication','Connected','320454ThQDKA','MCP\x20Configuration','API\x20Key','Save\x20Configuration','261miYNQL','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20configure\x20MCP','6LjLIbD','MCP\x20Retrying...','MCP\x20Disconnected','Invalid\x20configuration','2645776gnbnDu','Disconnected','Univer\x20AI\x20Console','Connection\x20Failed','480089XnPCCr','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','Configuration\x20saved\x20successfully','3669952yGUzks','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connected','API\x20key\x20is\x20required'];_0x65cd=function(){return _0x34b446;};return _0x65cd();}const e={'mcpStatus':{'disconnected':_0x47654a(0x198),'connecting':_0x47654a(0x1ae),'connected':_0x47654a(0x1a7),'failed':'MCP\x20Connection\x20Failed','retrying':_0x47654a(0x197),'unknown':_0x47654a(0x18a),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x47654a(0x189),'clickToConfigure':_0x47654a(0x195)},'mcpConfig':{'title':_0x47654a(0x190),'description':_0x47654a(0x1b4),'apiKey':_0x47654a(0x191),'apiKeyPlaceholder':_0x47654a(0x1af),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x47654a(0x18d),'enableAuthHint':_0x47654a(0x1a9),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x47654a(0x1a0),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x47654a(0x1b2),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x47654a(0x1a6),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x47654a(0x1b3),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x47654a(0x1ad),'save':_0x47654a(0x192),'saving':'Saving...','note1':_0x47654a(0x194),'note2':_0x47654a(0x1a4),'configSaved':_0x47654a(0x1a2),'configError':_0x47654a(0x1a1),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x47654a(0x19f),'univerAiLabel':_0x47654a(0x19c),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x47654a(0x1a8),'apiKeyTooShort':_0x47654a(0x1aa),'invalidConfig':_0x47654a(0x199),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x47654a(0x19b),'connecting':'Connecting...','connected':_0x47654a(0x18e),'failed':_0x47654a(0x19d),'retrying':_0x47654a(0x1ab)},'connectionError':{'unauthorized':_0x47654a(0x1b1),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x47654a(0x1b0),'maxRetriesExceeded':_0x47654a(0x1a5)}}},n=e;function _0x4df7(_0x4d77af,_0x27549b){const _0x65cdb2=_0x65cd();return _0x4df7=function(_0x4df78f,_0x27532c){_0x4df78f=_0x4df78f-0x189;let _0x4d583d=_0x65cdb2[_0x4df78f];return _0x4d583d;},_0x4df7(_0x4d77af,_0x27549b);}export{n as default};
1
+ const _0xea738f=_0x58f9;(function(_0x50c27c,_0x2ff663){const _0xb4b3b8=_0x58f9,_0x4e786b=_0x50c27c();while(!![]){try{const _0x38cd0d=-parseInt(_0xb4b3b8(0x1f0))/0x1+-parseInt(_0xb4b3b8(0x1f1))/0x2*(parseInt(_0xb4b3b8(0x1e1))/0x3)+parseInt(_0xb4b3b8(0x201))/0x4*(-parseInt(_0xb4b3b8(0x1df))/0x5)+parseInt(_0xb4b3b8(0x1e9))/0x6*(parseInt(_0xb4b3b8(0x204))/0x7)+parseInt(_0xb4b3b8(0x1fe))/0x8*(-parseInt(_0xb4b3b8(0x1da))/0x9)+-parseInt(_0xb4b3b8(0x1db))/0xa*(parseInt(_0xb4b3b8(0x1e5))/0xb)+parseInt(_0xb4b3b8(0x1fc))/0xc*(parseInt(_0xb4b3b8(0x1f3))/0xd);if(_0x38cd0d===_0x2ff663)break;else _0x4e786b['push'](_0x4e786b['shift']());}catch(_0x42519c){_0x4e786b['push'](_0x4e786b['shift']());}}}(_0x3ca6,0x2e0d7));const e={'mcpStatus':{'disconnected':_0xea738f(0x1ed),'connecting':_0xea738f(0x1eb),'connected':_0xea738f(0x1f8),'failed':_0xea738f(0x1e0),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0xea738f(0x1e4),'sessionOccupied':_0xea738f(0x1ee),'networkError':_0xea738f(0x1fa),'maxRetriesExceeded':_0xea738f(0x207),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xea738f(0x1f2)},'mcpConfig':{'title':_0xea738f(0x1f9),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0xea738f(0x1fd),'apiKeyHint':_0xea738f(0x1e3),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0xea738f(0x1f7),'connectionInfo':_0xea738f(0x205),'mcpClientConfig':_0xea738f(0x205),'configInstructions':_0xea738f(0x203),'configStepTitle':_0xea738f(0x208),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0xea738f(0x206),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0xea738f(0x1dd),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0xea738f(0x1dc),'saving':_0xea738f(0x1ec),'note1':_0xea738f(0x1ff),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0xea738f(0x1d8),'configError':_0xea738f(0x1f5),'apiApplyInfo':{'title':_0xea738f(0x1d7),'description':_0xea738f(0x1f6),'univerAiLabel':_0xea738f(0x1e2),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0xea738f(0x1e7),'apiKeyTooShort':_0xea738f(0x1e8),'invalidConfig':_0xea738f(0x1e6),'invalidApiKey':_0xea738f(0x1f4)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0xea738f(0x200),'connected':_0xea738f(0x1d9),'failed':_0xea738f(0x1de),'retrying':_0xea738f(0x1ea)},'connectionError':{'unauthorized':_0xea738f(0x1fb),'sessionOccupied':_0xea738f(0x1ef),'networkError':_0xea738f(0x202),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x58f9(_0xf316dc,_0x5a28a6){const _0x3ca651=_0x3ca6();return _0x58f9=function(_0x58f970,_0x24e196){_0x58f970=_0x58f970-0x1d7;let _0x453986=_0x3ca651[_0x58f970];return _0x453986;},_0x58f9(_0xf316dc,_0x5a28a6);}export{n as default};function _0x3ca6(){const _0x593778=['Configuration\x20Steps:','What\x20is\x20API\x20Key?','Configuration\x20saved\x20successfully','Connected','9lTVTTg','400gIXWSY','Save\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','Connection\x20Failed','12895OtkCdJ','MCP\x20Connection\x20Failed','869772DBWHVJ','Univer\x20AI\x20Console','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Unauthorized','68860OKyPLj','Invalid\x20configuration','API\x20key\x20is\x20required','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','201534dmCBqr','Retrying...','MCP\x20Connecting...','Saving...','MCP\x20Disconnected','MCP:\x20Session\x20ID\x20Occupied','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','170627hfQqkC','2lPdsKr','Click\x20to\x20configure\x20MCP','13xyHnnN','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','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.','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connected','MCP\x20Configuration','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','13374276DoRlKm','Enter\x20your\x20API\x20key','2053112UDbzvW','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connecting...','300WXppye','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','49MhVHHg','MCP\x20Client\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded'];_0x3ca6=function(){return _0x593778;};return _0x3ca6();}