@univerjs-pro/mcp-ui 0.10.6-nightly.202509060832 → 0.10.7-nightly.202509090319

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 +6 -6
@@ -1 +1 @@
1
- const _0x1adc50=_0x3ff0;(function(_0x1824a4,_0xff834d){const _0xca8fba=_0x3ff0,_0x21dcf3=_0x1824a4();while(!![]){try{const _0x32c131=-parseInt(_0xca8fba(0x10b))/0x1*(-parseInt(_0xca8fba(0xf5))/0x2)+parseInt(_0xca8fba(0x104))/0x3*(-parseInt(_0xca8fba(0xf3))/0x4)+-parseInt(_0xca8fba(0xf1))/0x5+parseInt(_0xca8fba(0xec))/0x6+-parseInt(_0xca8fba(0x107))/0x7+parseInt(_0xca8fba(0xea))/0x8*(-parseInt(_0xca8fba(0xff))/0x9)+parseInt(_0xca8fba(0x105))/0xa;if(_0x32c131===_0xff834d)break;else _0x21dcf3['push'](_0x21dcf3['shift']());}catch(_0x3344f8){_0x21dcf3['push'](_0x21dcf3['shift']());}}}(_0x3e55,0xd1902));const e={'mcpStatus':{'disconnected':_0x1adc50(0xf6),'connecting':_0x1adc50(0xfd),'connected':_0x1adc50(0xfe),'failed':_0x1adc50(0xf0),'retrying':_0x1adc50(0x108),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x1adc50(0x10e),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x1adc50(0xf7),'networkError':_0x1adc50(0xfb),'maxRetriesExceeded':_0x1adc50(0xf4),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x1adc50(0xed),'apiKey':_0x1adc50(0xf8),'apiKeyPlaceholder':_0x1adc50(0xeb),'apiKeyHint':_0x1adc50(0xfc),'enableAuth':_0x1adc50(0x10d),'enableAuthHint':_0x1adc50(0xe4),'connectionInfo':_0x1adc50(0x103),'serverEndpoint':'Server\x20Endpoint','sessionId':'Session\x20ID','maxRetries':'Max\x20Retries','save':_0x1adc50(0xf9),'saving':_0x1adc50(0x101),'note1':_0x1adc50(0xe6),'note2':_0x1adc50(0x102),'configSaved':_0x1adc50(0x106),'configError':_0x1adc50(0x10a),'apiApplyInfo':{'title':_0x1adc50(0x109),'description':_0x1adc50(0xe8),'univerAiLabel':_0x1adc50(0xef),'getStarted':_0x1adc50(0xf2)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x1adc50(0xe7),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x1adc50(0x100)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x1adc50(0xfa),'failed':_0x1adc50(0xee),'retrying':_0x1adc50(0xe5)},'connectionError':{'missingApiKey':_0x1adc50(0x10c),'invalidApiKey':_0x1adc50(0x10f),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x1adc50(0xe9)}}},n=e;function _0x3ff0(_0x45f246,_0x50d42d){const _0x3e5520=_0x3e55();return _0x3ff0=function(_0x3ff088,_0x1f5f33){_0x3ff088=_0x3ff088-0xe4;let _0x35d67e=_0x3e5520[_0x3ff088];return _0x35d67e;},_0x3ff0(_0x45f246,_0x50d42d);}function _0x3e55(){const _0x100171=['4orRYJP','MCP\x20Disconnected','MCP:\x20Session\x20Occupied','API\x20Key','Save\x20Configuration','Connected','MCP:\x20Network\x20Error','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connecting...','MCP\x20Connected','2682weKvKD','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Saving...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connection\x20Information','2403711EswlGQ','28944730lxfctD','Configuration\x20saved\x20successfully','2603797GSMROB','MCP\x20Retrying...','What\x20is\x20API\x20Key?','Failed\x20to\x20save\x20configuration','186972rZalat','API\x20key\x20is\x20required\x20to\x20connect','Enable\x20Authentication','MCP:\x20API\x20Key\x20Missing','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Enable\x20authentication\x20for\x20secure\x20connections','Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','45120qpvXJl','Enter\x20your\x20API\x20key','9641352ZPJqqD','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connection\x20Failed','Univer\x20AI\x20Console','MCP\x20Connection\x20Failed','5815055HJRrMu','Get\x20your\x20API\x20key\x20in\x20seconds','4ZkMYJh','MCP:\x20Max\x20Retries\x20Exceeded'];_0x3e55=function(){return _0x100171;};return _0x3e55();}export{n as default};
1
+ const _0x1c89cc=_0x145f;(function(_0x119631,_0x32f30f){const _0xd6ec4a=_0x145f,_0x567996=_0x119631();while(!![]){try{const _0x293eae=-parseInt(_0xd6ec4a(0x166))/0x1*(parseInt(_0xd6ec4a(0x15e))/0x2)+parseInt(_0xd6ec4a(0x13c))/0x3*(parseInt(_0xd6ec4a(0x141))/0x4)+parseInt(_0xd6ec4a(0x149))/0x5*(-parseInt(_0xd6ec4a(0x134))/0x6)+-parseInt(_0xd6ec4a(0x15a))/0x7*(parseInt(_0xd6ec4a(0x13a))/0x8)+parseInt(_0xd6ec4a(0x139))/0x9+-parseInt(_0xd6ec4a(0x155))/0xa*(-parseInt(_0xd6ec4a(0x162))/0xb)+parseInt(_0xd6ec4a(0x165))/0xc;if(_0x293eae===_0x32f30f)break;else _0x567996['push'](_0x567996['shift']());}catch(_0x366614){_0x567996['push'](_0x567996['shift']());}}}(_0x2b82,0x9e56c));function _0x145f(_0x134a83,_0x2f9471){const _0x2b8274=_0x2b82();return _0x145f=function(_0x145f8c,_0x36e277){_0x145f8c=_0x145f8c-0x134;let _0x299b61=_0x2b8274[_0x145f8c];return _0x299b61;},_0x145f(_0x134a83,_0x2f9471);}const e={'mcpStatus':{'disconnected':_0x1c89cc(0x147),'connecting':_0x1c89cc(0x14e),'connected':_0x1c89cc(0x14a),'failed':_0x1c89cc(0x148),'retrying':_0x1c89cc(0x13b),'unknown':_0x1c89cc(0x142),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x1c89cc(0x14f),'sessionOccupied':_0x1c89cc(0x164),'networkError':_0x1c89cc(0x156),'maxRetriesExceeded':_0x1c89cc(0x158),'clickToConnect':_0x1c89cc(0x15d),'clickToConfigure':_0x1c89cc(0x154)},'mcpConfig':{'title':_0x1c89cc(0x15b),'description':_0x1c89cc(0x136),'apiKey':_0x1c89cc(0x14c),'apiKeyPlaceholder':_0x1c89cc(0x167),'apiKeyHint':_0x1c89cc(0x150),'enableAuth':_0x1c89cc(0x13d),'enableAuthHint':_0x1c89cc(0x137),'connectionInfo':_0x1c89cc(0x145),'serverEndpoint':_0x1c89cc(0x15f),'sessionId':'Session\x20ID','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x1c89cc(0x151),'note1':_0x1c89cc(0x140),'note2':_0x1c89cc(0x138),'configSaved':_0x1c89cc(0x14d),'configError':_0x1c89cc(0x13f),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x1c89cc(0x144),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x1c89cc(0x157),'apiKeyTooShort':_0x1c89cc(0x143),'invalidConfig':_0x1c89cc(0x160),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x1c89cc(0x152),'connecting':_0x1c89cc(0x14b),'connected':_0x1c89cc(0x146),'failed':_0x1c89cc(0x161),'retrying':_0x1c89cc(0x159)},'connectionError':{'missingApiKey':_0x1c89cc(0x163),'invalidApiKey':_0x1c89cc(0x135),'sessionOccupied':_0x1c89cc(0x15c),'networkError':_0x1c89cc(0x153),'maxRetriesExceeded':_0x1c89cc(0x13e)}}},n=e;export{n as default};function _0x2b82(){const _0x45e375=['Invalid\x20configuration','Connection\x20Failed','252857kMvUTL','API\x20key\x20is\x20required\x20to\x20connect','MCP:\x20Session\x20Occupied','28582020dRKOYF','1050186hmBeIe','Enter\x20your\x20API\x20key','6sNQHiF','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20authentication\x20for\x20secure\x20connections','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','797697eUEpOH','8WWdUPx','MCP\x20Retrying...','141krwoEb','Enable\x20Authentication','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','21124bwjCiN','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Information','Connected','MCP\x20Disconnected','MCP\x20Connection\x20Failed','5707465SgXsOi','MCP\x20Connected','Connecting...','API\x20Key','Configuration\x20saved\x20successfully','MCP\x20Connecting...','MCP:\x20Invalid\x20API\x20Key','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Saving...','Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20configure\x20MCP','550GNfydG','MCP:\x20Network\x20Error','API\x20key\x20is\x20required','MCP:\x20Max\x20Retries\x20Exceeded','Retrying...','7999075fycFcL','MCP\x20Configuration','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','2zmWhVZ','Server\x20Endpoint'];_0x2b82=function(){return _0x45e375;};return _0x2b82();}
@@ -1 +1 @@
1
- function _0x4d2d(){const _0x59c79b=['Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','176002UepRzg','169656JtozXu','Save\x20Configuration','MCP\x20Connecting...','MCP:\x20Invalid\x20API\x20Key','6SlaFYz','2eqcQWH','12jpurVf','MCP\x20Connection\x20Failed','Max\x20Retries','662673JhQsLY','MCP:\x20API\x20Key\x20Missing','Disconnected','398665BlANiv','MCP\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.','MCP:\x20Session\x20Occupied','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Server\x20Endpoint','Retrying...','35BXonVO','Enable\x20authentication\x20for\x20secure\x20connections','Univer\x20AI\x20Console','MCP\x20Disconnected','818044NNcBhG','Connecting...','API\x20key\x20is\x20required\x20to\x20connect','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','9jNSeWX','1436396FoZPkH','What\x20is\x20API\x20Key?','API\x20Key','Enable\x20Authentication','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','1315510KQZXkJ','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','3NmMfri','Saving...','Session\x20ID','Click\x20to\x20connect\x20MCP','Connected','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again'];_0x4d2d=function(){return _0x59c79b;};return _0x4d2d();}const _0x691805=_0x194d;(function(_0x2932a8,_0x2cd138){const _0x577cda=_0x194d,_0x2fae01=_0x2932a8();while(!![]){try{const _0x519b39=-parseInt(_0x577cda(0xa3))/0x1*(parseInt(_0x577cda(0xa9))/0x2)+parseInt(_0x577cda(0x9c))/0x3*(parseInt(_0x577cda(0xbc))/0x4)+-parseInt(_0x577cda(0xb0))/0x5*(parseInt(_0x577cda(0xa8))/0x6)+parseInt(_0x577cda(0xb8))/0x7*(parseInt(_0x577cda(0xa4))/0x8)+parseInt(_0x577cda(0x92))/0x9*(parseInt(_0x577cda(0x99))/0xa)+parseInt(_0x577cda(0xad))/0xb+-parseInt(_0x577cda(0xaa))/0xc*(parseInt(_0x577cda(0x93))/0xd);if(_0x519b39===_0x2cd138)break;else _0x2fae01['push'](_0x2fae01['shift']());}catch(_0x54736b){_0x2fae01['push'](_0x2fae01['shift']());}}}(_0x4d2d,0x213b1));const e={'mcpStatus':{'disconnected':_0x691805(0xbb),'connecting':_0x691805(0xa6),'connected':'MCP\x20Connected','failed':_0x691805(0xab),'retrying':_0x691805(0x97),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x691805(0xae),'invalidApiKey':_0x691805(0xa7),'sessionOccupied':_0x691805(0xb3),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x691805(0x9f),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x691805(0xb1),'description':_0x691805(0xb4),'apiKey':_0x691805(0x95),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x691805(0xb5),'enableAuth':_0x691805(0x96),'enableAuthHint':_0x691805(0xb9),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x691805(0xb6),'sessionId':_0x691805(0x9e),'maxRetries':_0x691805(0xac),'save':_0x691805(0xa5),'saving':_0x691805(0x9d),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x691805(0xa2),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x691805(0x94),'description':_0x691805(0xb2),'univerAiLabel':_0x691805(0xba),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x691805(0x91),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x691805(0x9a)},'connectionStatus':{'disconnected':_0x691805(0xaf),'connecting':_0x691805(0xbd),'connected':_0x691805(0xa0),'failed':'Connection\x20Failed','retrying':_0x691805(0xb7)},'connectionError':{'missingApiKey':_0x691805(0xbe),'invalidApiKey':_0x691805(0xa1),'sessionOccupied':_0x691805(0x9b),'networkError':_0x691805(0x98),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x194d(_0x49856f,_0x297bfb){const _0x4d2d26=_0x4d2d();return _0x194d=function(_0x194da7,_0x596d9e){_0x194da7=_0x194da7-0x91;let _0x4a64c0=_0x4d2d26[_0x194da7];return _0x4a64c0;},_0x194d(_0x49856f,_0x297bfb);}export{n as default};
1
+ function _0x5df8(_0x28f4cf,_0x38feaa){const _0x2de537=_0x2de5();return _0x5df8=function(_0x5df827,_0x392f4e){_0x5df827=_0x5df827-0xb7;let _0x1d8e9b=_0x2de537[_0x5df827];return _0x1d8e9b;},_0x5df8(_0x28f4cf,_0x38feaa);}function _0x2de5(){const _0x41506d=['Server\x20Endpoint','API\x20key\x20is\x20required','Click\x20to\x20connect\x20MCP','Max\x20Retries','MCP:\x20Max\x20Retries\x20Exceeded','282896uFIUqF','MCP\x20Unknown\x20Status','2hupUpQ','1375901atnmzW','MCP\x20Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Session\x20Occupied','8093928vYOTtY','395pKWoAP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','510ZukCVz','Configuration\x20saved\x20successfully','API\x20Key','Enable\x20Authentication','Invalid\x20configuration','532665SCIlNm','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connected','4982643XyqMQH','Connected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Save\x20Configuration','Session\x20ID','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','62988DVHjXd','5123937xPexlc','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Network\x20Error','Enter\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connecting...','MCP:\x20API\x20Key\x20Missing','MCP\x20Connection\x20Failed','What\x20is\x20API\x20Key?','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later'];_0x2de5=function(){return _0x41506d;};return _0x2de5();}const _0x120843=_0x5df8;(function(_0x5dc408,_0x3bfa09){const _0x5551f5=_0x5df8,_0x20def7=_0x5dc408();while(!![]){try{const _0x592a9f=-parseInt(_0x5551f5(0xce))/0x1*(-parseInt(_0x5551f5(0xcd))/0x2)+-parseInt(_0x5551f5(0xde))/0x3+parseInt(_0x5551f5(0xbb))/0x4*(-parseInt(_0x5551f5(0xd3))/0x5)+-parseInt(_0x5551f5(0xd2))/0x6+parseInt(_0x5551f5(0xbc))/0x7+-parseInt(_0x5551f5(0xcb))/0x8+-parseInt(_0x5551f5(0xdb))/0x9*(-parseInt(_0x5551f5(0xd6))/0xa);if(_0x592a9f===_0x3bfa09)break;else _0x20def7['push'](_0x20def7['shift']());}catch(_0x568ae3){_0x20def7['push'](_0x20def7['shift']());}}}(_0x2de5,0xcc5db));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x120843(0xcf),'connected':_0x120843(0xdd),'failed':_0x120843(0xc3),'retrying':'MCP\x20Retrying...','unknown':_0x120843(0xcc),'missingApiKey':_0x120843(0xc2),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x120843(0xd1),'networkError':_0x120843(0xbe),'maxRetriesExceeded':_0x120843(0xca),'clickToConnect':_0x120843(0xc8),'clickToConfigure':_0x120843(0xd5)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x120843(0xb9),'apiKey':_0x120843(0xd8),'apiKeyPlaceholder':_0x120843(0xbf),'apiKeyHint':_0x120843(0xd4),'enableAuth':_0x120843(0xd9),'enableAuthHint':_0x120843(0xd0),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x120843(0xc6),'sessionId':_0x120843(0xb8),'maxRetries':_0x120843(0xc9),'save':_0x120843(0xb7),'saving':'Saving...','note1':_0x120843(0xc0),'note2':_0x120843(0xdc),'configSaved':_0x120843(0xd7),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x120843(0xc4),'description':_0x120843(0xe0),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x120843(0xc7),'apiKeyTooShort':_0x120843(0xbd),'invalidConfig':_0x120843(0xda),'invalidApiKey':_0x120843(0xba)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x120843(0xc1),'connected':_0x120843(0xdf),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x120843(0xc5),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x5131a0=_0x2fcd;(function(_0x4c8677,_0x1b81bc){const _0x491c2c=_0x2fcd,_0x3ffd61=_0x4c8677();while(!![]){try{const _0x30548e=parseInt(_0x491c2c(0x12c))/0x1*(parseInt(_0x491c2c(0x12a))/0x2)+-parseInt(_0x491c2c(0x137))/0x3+-parseInt(_0x491c2c(0x13d))/0x4*(parseInt(_0x491c2c(0x116))/0x5)+-parseInt(_0x491c2c(0x121))/0x6+-parseInt(_0x491c2c(0x123))/0x7*(-parseInt(_0x491c2c(0x125))/0x8)+parseInt(_0x491c2c(0x117))/0x9*(-parseInt(_0x491c2c(0x120))/0xa)+parseInt(_0x491c2c(0x11b))/0xb*(parseInt(_0x491c2c(0x115))/0xc);if(_0x30548e===_0x1b81bc)break;else _0x3ffd61['push'](_0x3ffd61['shift']());}catch(_0x43e4a0){_0x3ffd61['push'](_0x3ffd61['shift']());}}}(_0x5589,0xefd6b));const e={'mcpStatus':{'disconnected':_0x5131a0(0x113),'connecting':'MCP\x20Connecting...','connected':_0x5131a0(0x12e),'failed':_0x5131a0(0x11e),'retrying':_0x5131a0(0x134),'unknown':_0x5131a0(0x119),'missingApiKey':_0x5131a0(0x111),'invalidApiKey':_0x5131a0(0x131),'sessionOccupied':_0x5131a0(0x11a),'networkError':_0x5131a0(0x13f),'maxRetriesExceeded':_0x5131a0(0x12f),'clickToConnect':_0x5131a0(0x13c),'clickToConfigure':_0x5131a0(0x110)},'mcpConfig':{'title':_0x5131a0(0x138),'description':_0x5131a0(0x124),'apiKey':_0x5131a0(0x136),'apiKeyPlaceholder':_0x5131a0(0x112),'apiKeyHint':_0x5131a0(0x130),'enableAuth':_0x5131a0(0x141),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5131a0(0x11c),'serverEndpoint':_0x5131a0(0x13b),'sessionId':_0x5131a0(0x13e),'maxRetries':_0x5131a0(0x128),'save':_0x5131a0(0x143),'saving':_0x5131a0(0x129),'note1':_0x5131a0(0x122),'note2':_0x5131a0(0x132),'configSaved':_0x5131a0(0x135),'configError':_0x5131a0(0x140),'apiApplyInfo':{'title':_0x5131a0(0x13a),'description':_0x5131a0(0x12d),'univerAiLabel':_0x5131a0(0x11f),'getStarted':_0x5131a0(0x118)},'validation':{'apiKeyRequired':_0x5131a0(0x133),'apiKeyTooShort':_0x5131a0(0x139),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5131a0(0x127)},'connectionStatus':{'disconnected':_0x5131a0(0x11d),'connecting':'Connecting...','connected':_0x5131a0(0x114),'failed':_0x5131a0(0x10f),'retrying':_0x5131a0(0x142)},'connectionError':{'missingApiKey':_0x5131a0(0x126),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x5131a0(0x12b)}}},n=e;export{n as default};function _0x2fcd(_0x1578d8,_0x2fd524){const _0x5589f5=_0x5589();return _0x2fcd=function(_0x2fcd6d,_0x441d42){_0x2fcd6d=_0x2fcd6d-0x10f;let _0x10187e=_0x5589f5[_0x2fcd6d];return _0x10187e;},_0x2fcd(_0x1578d8,_0x2fd524);}function _0x5589(){const _0x8eda38=['Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Invalid\x20API\x20Key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20is\x20required','MCP\x20Retrying...','Configuration\x20saved\x20successfully','API\x20Key','4034466WgSAGm','MCP\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','What\x20is\x20API\x20Key?','Server\x20Endpoint','Click\x20to\x20connect\x20MCP','4TUcgjI','Session\x20ID','MCP:\x20Network\x20Error','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','Retrying...','Save\x20Configuration','Connection\x20Failed','Click\x20to\x20configure\x20MCP','MCP:\x20API\x20Key\x20Missing','Enter\x20your\x20API\x20key','MCP\x20Disconnected','Connected','3142476ouUwaE','704335fYmcgJ','1025379MZUruy','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Unknown\x20Status','MCP:\x20Session\x20Occupied','99mRRbGr','Connection\x20Information','Disconnected','MCP\x20Connection\x20Failed','Univer\x20AI\x20Console','10DPsbxj','8932350OuMrOE','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','14vleXTt','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','6191720HBktAC','API\x20key\x20is\x20required\x20to\x20connect','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Max\x20Retries','Saving...','7718naKiHc','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','43BcOAkL','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\x20Connected','MCP:\x20Max\x20Retries\x20Exceeded'];_0x5589=function(){return _0x8eda38;};return _0x5589();}
1
+ function _0xfb9d(_0x1f47b6,_0x3532c0){const _0x1c5246=_0x1c52();return _0xfb9d=function(_0xfb9d1d,_0x381024){_0xfb9d1d=_0xfb9d1d-0x71;let _0x5c8084=_0x1c5246[_0xfb9d1d];return _0x5c8084;},_0xfb9d(_0x1f47b6,_0x3532c0);}const _0x772652=_0xfb9d;(function(_0x1f4151,_0x45daa0){const _0x3193fe=_0xfb9d,_0x392f0a=_0x1f4151();while(!![]){try{const _0x4baf4d=-parseInt(_0x3193fe(0x8b))/0x1+-parseInt(_0x3193fe(0x71))/0x2*(parseInt(_0x3193fe(0x73))/0x3)+-parseInt(_0x3193fe(0x95))/0x4+parseInt(_0x3193fe(0x8e))/0x5+parseInt(_0x3193fe(0xa3))/0x6*(-parseInt(_0x3193fe(0x80))/0x7)+parseInt(_0x3193fe(0x76))/0x8+-parseInt(_0x3193fe(0x7f))/0x9*(-parseInt(_0x3193fe(0x99))/0xa);if(_0x4baf4d===_0x45daa0)break;else _0x392f0a['push'](_0x392f0a['shift']());}catch(_0x263f49){_0x392f0a['push'](_0x392f0a['shift']());}}}(_0x1c52,0xe69ba));function _0x1c52(){const _0xd19411=['Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Session\x20ID','153Vfjuhg','7utmJmy','MCP\x20Disconnected','MCP:\x20API\x20Key\x20Missing','Enter\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','Disconnected','Configuration\x20saved\x20successfully','MCP\x20Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Session\x20Occupied','61526EuysTY','Retrying...','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','3060620mqGJzB','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20configuration','MCP\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Save\x20Configuration','5060500lLVtOv','MCP\x20Unknown\x20Status','MCP\x20Connected','Enable\x20Authentication','930380vBEGNG','API\x20key\x20is\x20required\x20to\x20connect','Connecting...','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connected','MCP:\x20Network\x20Error','Get\x20your\x20API\x20key\x20in\x20seconds','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','555402CrespU','API\x20key\x20is\x20required','656578cSHKOP','Univer\x20AI\x20Console','6MZocrZ','Enable\x20authentication\x20for\x20secure\x20connections','Connection\x20Information','6612768logbze','Failed\x20to\x20save\x20configuration','MCP:\x20Invalid\x20API\x20Key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Server\x20Endpoint','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser'];_0x1c52=function(){return _0xd19411;};return _0x1c52();}const e={'mcpStatus':{'disconnected':_0x772652(0x81),'connecting':_0x772652(0x88),'connected':_0x772652(0x97),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x772652(0x96),'missingApiKey':_0x772652(0x82),'invalidApiKey':_0x772652(0x78),'sessionOccupied':_0x772652(0x8a),'networkError':_0x772652(0xa0),'maxRetriesExceeded':_0x772652(0x85),'clickToConnect':_0x772652(0x9c),'clickToConfigure':_0x772652(0x84)},'mcpConfig':{'title':_0x772652(0x91),'description':_0x772652(0x93),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x772652(0x83),'apiKeyHint':_0x772652(0x7c),'enableAuth':_0x772652(0x98),'enableAuthHint':_0x772652(0x74),'connectionInfo':_0x772652(0x75),'serverEndpoint':_0x772652(0x7a),'sessionId':_0x772652(0x7e),'maxRetries':'Max\x20Retries','save':_0x772652(0x94),'saving':'Saving...','note1':_0x772652(0x79),'note2':_0x772652(0x8f),'configSaved':_0x772652(0x87),'configError':_0x772652(0x77),'apiApplyInfo':{'title':_0x772652(0x9d),'description':_0x772652(0x7b),'univerAiLabel':_0x772652(0x72),'getStarted':_0x772652(0xa1)},'validation':{'apiKeyRequired':_0x772652(0xa4),'apiKeyTooShort':_0x772652(0x9e),'invalidConfig':_0x772652(0x90),'invalidApiKey':_0x772652(0x92)},'connectionStatus':{'disconnected':_0x772652(0x86),'connecting':_0x772652(0x9b),'connected':_0x772652(0x9f),'failed':'Connection\x20Failed','retrying':_0x772652(0x8c)},'connectionError':{'missingApiKey':_0x772652(0x9a),'invalidApiKey':_0x772652(0x7d),'sessionOccupied':_0x772652(0x8d),'networkError':_0x772652(0x89),'maxRetriesExceeded':_0x772652(0xa2)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x319f1d=_0x3fb9;function _0x3bdd(){const _0x28a77f=['什么是\x20API\x20密钥?','3IjUHMg','8510lpSMcm','连接失败','保存中...','222LPBWcm','您的\x20API\x20密钥安全存储在本地存储中','28RuXZra','MCP:\x20网络错误','Univer\x20AI\x20控制台','API\x20密钥长度至少需要\x2010\x20位','156uFqNxv','未连接','MCP\x20已连接','MCP:\x20超出最大重试次数','8gMgPry','MCP\x20重连中...','MCP\x20已断开','MCP\x20配置','连接中...','已连接','配置更改将立即生效','640420Zjqdra','API\x20密钥无效,请检查密钥是否正确','启用身份验证','39074WqNjJW','会话ID','12SuEaHE','API\x20密钥','配置保存成功','配置保存失败','网络连接错误,请检查您的网络连接','MCP:\x20无效的\x20API\x20密钥','67isPMVi','API\x20密钥无效,请检查您的密钥后重试','618548ggZisi','重连中...','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP\x20连接中...','303706jTAbji','MCP:\x20缺少\x20API\x20密钥','保存配置','2439KSVBHy','API\x20密钥不能为空','会话当前被占用,请稍后再试','10890EXoFfK','MCP:\x20会话被占用','点击配置\x20MCP','点击连接\x20MCP'];_0x3bdd=function(){return _0x28a77f;};return _0x3bdd();}(function(_0xa8ba47,_0x598201){const _0x34c0f4=_0x3fb9,_0x5bca45=_0xa8ba47();while(!![]){try{const _0x31339b=-parseInt(_0x34c0f4(0x19f))/0x1*(parseInt(_0x34c0f4(0x183))/0x2)+parseInt(_0x34c0f4(0x17f))/0x3*(-parseInt(_0x34c0f4(0x1a1))/0x4)+-parseInt(_0x34c0f4(0x17a))/0x5*(parseInt(_0x34c0f4(0x189))/0x6)+parseInt(_0x34c0f4(0x197))/0x7*(parseInt(_0x34c0f4(0x18d))/0x8)+parseInt(_0x34c0f4(0x177))/0x9*(parseInt(_0x34c0f4(0x180))/0xa)+parseInt(_0x34c0f4(0x194))/0xb*(parseInt(_0x34c0f4(0x199))/0xc)+-parseInt(_0x34c0f4(0x174))/0xd*(-parseInt(_0x34c0f4(0x185))/0xe);if(_0x31339b===_0x598201)break;else _0x5bca45['push'](_0x5bca45['shift']());}catch(_0x360d02){_0x5bca45['push'](_0x5bca45['shift']());}}}(_0x3bdd,0x1de4d));function _0x3fb9(_0x2bf47e,_0x5261dd){const _0x3bdd65=_0x3bdd();return _0x3fb9=function(_0x3fb92d,_0x434ad7){_0x3fb92d=_0x3fb92d-0x170;let _0x3b7481=_0x3bdd65[_0x3fb92d];return _0x3b7481;},_0x3fb9(_0x2bf47e,_0x5261dd);}const e={'mcpStatus':{'disconnected':_0x319f1d(0x18f),'connecting':_0x319f1d(0x173),'connected':_0x319f1d(0x18b),'failed':'MCP\x20连接失败','retrying':_0x319f1d(0x18e),'unknown':'MCP\x20状态未知','missingApiKey':_0x319f1d(0x175),'invalidApiKey':_0x319f1d(0x19e),'sessionOccupied':_0x319f1d(0x17b),'networkError':_0x319f1d(0x186),'maxRetriesExceeded':_0x319f1d(0x18c),'clickToConnect':_0x319f1d(0x17d),'clickToConfigure':_0x319f1d(0x17c)},'mcpConfig':{'title':_0x319f1d(0x190),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x319f1d(0x19a),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x319f1d(0x171),'enableAuth':_0x319f1d(0x196),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'连接信息','serverEndpoint':'服务器端点','sessionId':_0x319f1d(0x198),'maxRetries':'最大重试次数','save':_0x319f1d(0x176),'saving':_0x319f1d(0x182),'note1':_0x319f1d(0x193),'note2':_0x319f1d(0x184),'configSaved':_0x319f1d(0x19b),'configError':_0x319f1d(0x19c),'apiApplyInfo':{'title':_0x319f1d(0x17e),'description':_0x319f1d(0x172),'univerAiLabel':_0x319f1d(0x187),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x319f1d(0x178),'apiKeyTooShort':_0x319f1d(0x188),'invalidConfig':'配置无效','invalidApiKey':_0x319f1d(0x195)},'connectionStatus':{'disconnected':_0x319f1d(0x18a),'connecting':_0x319f1d(0x191),'connected':_0x319f1d(0x192),'failed':_0x319f1d(0x181),'retrying':_0x319f1d(0x170)},'connectionError':{'missingApiKey':'需要\x20API\x20密钥才能连接','invalidApiKey':_0x319f1d(0x1a0),'sessionOccupied':_0x319f1d(0x179),'networkError':_0x319f1d(0x19d),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};export{e as default};
1
+ const _0x3c6354=_0xee65;(function(_0x56eb93,_0x27300f){const _0x5faa9d=_0xee65,_0x11dd72=_0x56eb93();while(!![]){try{const _0x277a22=-parseInt(_0x5faa9d(0x180))/0x1+parseInt(_0x5faa9d(0x186))/0x2+parseInt(_0x5faa9d(0x199))/0x3+parseInt(_0x5faa9d(0x193))/0x4*(-parseInt(_0x5faa9d(0x1a6))/0x5)+parseInt(_0x5faa9d(0x18f))/0x6+-parseInt(_0x5faa9d(0x17c))/0x7*(-parseInt(_0x5faa9d(0x1a5))/0x8)+-parseInt(_0x5faa9d(0x17f))/0x9;if(_0x277a22===_0x27300f)break;else _0x11dd72['push'](_0x11dd72['shift']());}catch(_0x11ba0b){_0x11dd72['push'](_0x11dd72['shift']());}}}(_0x3c82,0xe1943));function _0xee65(_0x4a4abb,_0x270dc9){const _0x3c82b9=_0x3c82();return _0xee65=function(_0xee659d,_0x318ba2){_0xee659d=_0xee659d-0x178;let _0x2b1136=_0x3c82b9[_0xee659d];return _0x2b1136;},_0xee65(_0x4a4abb,_0x270dc9);}const e={'mcpStatus':{'disconnected':_0x3c6354(0x187),'connecting':'MCP\x20连接中...','connected':_0x3c6354(0x185),'failed':_0x3c6354(0x196),'retrying':_0x3c6354(0x19a),'unknown':_0x3c6354(0x19f),'missingApiKey':_0x3c6354(0x191),'invalidApiKey':_0x3c6354(0x181),'sessionOccupied':'MCP:\x20会话被占用','networkError':_0x3c6354(0x19b),'maxRetriesExceeded':_0x3c6354(0x1a3),'clickToConnect':'点击连接\x20MCP','clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x3c6354(0x183),'description':_0x3c6354(0x17b),'apiKey':_0x3c6354(0x1a4),'apiKeyPlaceholder':_0x3c6354(0x188),'apiKeyHint':_0x3c6354(0x19c),'enableAuth':_0x3c6354(0x1a0),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x3c6354(0x18c),'serverEndpoint':_0x3c6354(0x18b),'sessionId':'会话ID','maxRetries':_0x3c6354(0x19d),'save':_0x3c6354(0x18e),'saving':_0x3c6354(0x190),'note1':_0x3c6354(0x182),'note2':_0x3c6354(0x18d),'configSaved':_0x3c6354(0x184),'configError':_0x3c6354(0x1a1),'apiApplyInfo':{'title':_0x3c6354(0x194),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x3c6354(0x179),'getStarted':_0x3c6354(0x198)},'validation':{'apiKeyRequired':_0x3c6354(0x197),'apiKeyTooShort':_0x3c6354(0x1a2),'invalidConfig':_0x3c6354(0x17d),'invalidApiKey':_0x3c6354(0x17e)},'connectionStatus':{'disconnected':_0x3c6354(0x17a),'connecting':_0x3c6354(0x178),'connected':'已连接','failed':_0x3c6354(0x192),'retrying':_0x3c6354(0x19e)},'connectionError':{'missingApiKey':_0x3c6354(0x195),'invalidApiKey':_0x3c6354(0x189),'sessionOccupied':_0x3c6354(0x18a),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};function _0x3c82(){const _0x421151=['MCP\x20已连接','2858816SUCzza','MCP\x20已断开','请输入您的\x20API\x20密钥','API\x20密钥无效,请检查您的密钥后重试','会话当前被占用,请稍后再试','服务器端点','连接信息','您的\x20API\x20密钥安全存储在本地存储中','保存配置','6677610qfaWoP','保存中...','MCP:\x20缺少\x20API\x20密钥','连接失败','3252056vkhmEt','什么是\x20API\x20密钥?','需要\x20API\x20密钥才能连接','MCP\x20连接失败','API\x20密钥不能为空','几秒钟内获取您的\x20API\x20密钥','5352234znocMB','MCP\x20重连中...','MCP:\x20网络错误','您的\x20API\x20密钥将在此浏览器中本地存储','最大重试次数','重连中...','MCP\x20状态未知','启用身份验证','配置保存失败','API\x20密钥长度至少需要\x2010\x20位','MCP:\x20超出最大重试次数','API\x20密钥','4288rpBYWr','5IrvSAW','连接中...','Univer\x20AI\x20控制台','未连接','配置\x20MCP\x20使用\x20AI\x20操作电子表格','14896fuGrxt','配置无效','API\x20密钥无效,请检查密钥是否正确','29896443ECMDLn','408217kPACyL','MCP:\x20无效的\x20API\x20密钥','配置更改将立即生效','MCP\x20配置','配置保存成功'];_0x3c82=function(){return _0x421151;};return _0x3c82();}export{e as default};
@@ -1 +1 @@
1
- const _0x2f4c91=_0x3d59;(function(_0xd3c604,_0x49d4d8){const _0x2fc95a=_0x3d59,_0x3c933b=_0xd3c604();while(!![]){try{const _0x5eb53c=-parseInt(_0x2fc95a(0x1d3))/0x1*(parseInt(_0x2fc95a(0x1d8))/0x2)+-parseInt(_0x2fc95a(0x1f2))/0x3*(-parseInt(_0x2fc95a(0x1d9))/0x4)+parseInt(_0x2fc95a(0x1f3))/0x5*(-parseInt(_0x2fc95a(0x1ed))/0x6)+-parseInt(_0x2fc95a(0x1f8))/0x7+-parseInt(_0x2fc95a(0x1fb))/0x8+parseInt(_0x2fc95a(0x1e2))/0x9*(-parseInt(_0x2fc95a(0x1f4))/0xa)+-parseInt(_0x2fc95a(0x1de))/0xb*(-parseInt(_0x2fc95a(0x1e1))/0xc);if(_0x5eb53c===_0x49d4d8)break;else _0x3c933b['push'](_0x3c933b['shift']());}catch(_0x422a20){_0x3c933b['push'](_0x3c933b['shift']());}}}(_0x424e,0x42a01));const e={'mcpStatus':{'disconnected':_0x2f4c91(0x1da),'connecting':_0x2f4c91(0x1f5),'connected':_0x2f4c91(0x1d2),'failed':_0x2f4c91(0x1e9),'retrying':'MCP\x20Retrying...','unknown':_0x2f4c91(0x202),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x2f4c91(0x1dc),'sessionOccupied':_0x2f4c91(0x1e4),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2f4c91(0x1db),'clickToConnect':_0x2f4c91(0x1ee),'clickToConfigure':_0x2f4c91(0x1d6)},'mcpConfig':{'title':_0x2f4c91(0x200),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x2f4c91(0x1ec),'apiKeyPlaceholder':_0x2f4c91(0x1dd),'apiKeyHint':_0x2f4c91(0x1ea),'enableAuth':_0x2f4c91(0x1f1),'enableAuthHint':_0x2f4c91(0x1fe),'connectionInfo':_0x2f4c91(0x1df),'serverEndpoint':'Server\x20Endpoint','sessionId':_0x2f4c91(0x1fc),'maxRetries':_0x2f4c91(0x1e6),'save':_0x2f4c91(0x1f9),'saving':_0x2f4c91(0x201),'note1':_0x2f4c91(0x1ff),'note2':_0x2f4c91(0x1fd),'configSaved':_0x2f4c91(0x1ef),'configError':_0x2f4c91(0x1e8),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2f4c91(0x1f0),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2f4c91(0x1e7)},'validation':{'apiKeyRequired':_0x2f4c91(0x1d5),'apiKeyTooShort':_0x2f4c91(0x1e5),'invalidConfig':_0x2f4c91(0x1eb),'invalidApiKey':_0x2f4c91(0x1e0)},'connectionStatus':{'disconnected':_0x2f4c91(0x1d7),'connecting':'Connecting...','connected':_0x2f4c91(0x1fa),'failed':'Connection\x20Failed','retrying':_0x2f4c91(0x1e3)},'connectionError':{'missingApiKey':_0x2f4c91(0x1f7),'invalidApiKey':_0x2f4c91(0x1f6),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x2f4c91(0x1d4),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x3d59(_0x4c2cd0,_0x5161ff){const _0x424e06=_0x424e();return _0x3d59=function(_0x3d591d,_0x22afa3){_0x3d591d=_0x3d591d-0x1d2;let _0x4857eb=_0x424e06[_0x3d591d];return _0x4857eb;},_0x3d59(_0x4c2cd0,_0x5161ff);}export{n as default};function _0x424e(){const _0x11fa01=['Connected','2921848cEoJRn','Session\x20ID','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Configuration','Saving...','MCP\x20Unknown\x20Status','MCP\x20Connected','289IcLtYK','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','Disconnected','1246QiQYLn','8gSsvXe','MCP\x20Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Invalid\x20API\x20Key','Enter\x20your\x20API\x20key','22UojRWK','Connection\x20Information','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','7985004xgkKxp','886005djCoUx','Retrying...','MCP:\x20Session\x20Occupied','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Max\x20Retries','Get\x20your\x20API\x20key\x20in\x20seconds','Failed\x20to\x20save\x20configuration','MCP\x20Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20configuration','API\x20Key','24942ZCngkZ','Click\x20to\x20connect\x20MCP','Configuration\x20saved\x20successfully','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','714687wPgFUx','425rPdAOQ','20HwIGAD','MCP\x20Connecting...','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','API\x20key\x20is\x20required\x20to\x20connect','3072174aFTbWx','Save\x20Configuration'];_0x424e=function(){return _0x11fa01;};return _0x424e();}
1
+ function _0x219e(_0x4610b1,_0x213517){const _0x4889f0=_0x4889();return _0x219e=function(_0x219e7f,_0x153099){_0x219e7f=_0x219e7f-0x1a8;let _0x5c1ac9=_0x4889f0[_0x219e7f];return _0x5c1ac9;},_0x219e(_0x4610b1,_0x213517);}const _0x14e2a0=_0x219e;(function(_0x869d91,_0x16e848){const _0x50919c=_0x219e,_0x5c23f0=_0x869d91();while(!![]){try{const _0x421ab4=-parseInt(_0x50919c(0x1d0))/0x1+-parseInt(_0x50919c(0x1b2))/0x2*(-parseInt(_0x50919c(0x1ac))/0x3)+parseInt(_0x50919c(0x1ad))/0x4+parseInt(_0x50919c(0x1ae))/0x5*(-parseInt(_0x50919c(0x1a8))/0x6)+-parseInt(_0x50919c(0x1a9))/0x7+parseInt(_0x50919c(0x1c6))/0x8+parseInt(_0x50919c(0x1bc))/0x9;if(_0x421ab4===_0x16e848)break;else _0x5c23f0['push'](_0x5c23f0['shift']());}catch(_0x4d5b93){_0x5c23f0['push'](_0x5c23f0['shift']());}}}(_0x4889,0xddcfb));function _0x4889(){const _0x29b30b=['API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','What\x20is\x20API\x20Key?','Connection\x20Information','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','API\x20Key','MCP\x20Retrying...','1417241vmqjrG','12330JBHsDK','6265217VKcVEQ','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connected','1627581aLSwiU','3496980fewllE','2885xKqktd','Connected','Click\x20to\x20connect\x20MCP','Disconnected','2EyXwmG','MCP\x20Connecting...','MCP\x20Unknown\x20Status','API\x20key\x20is\x20required\x20to\x20connect','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Connecting...','MCP\x20Connection\x20Failed','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Invalid\x20API\x20Key','14923881XRvYnW','Enter\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Failed','Server\x20Endpoint','Invalid\x20configuration','Univer\x20AI\x20Console','Enable\x20authentication\x20for\x20secure\x20connections','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20Authentication','10652520hSYIoJ','Saving...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20is\x20required'];_0x4889=function(){return _0x29b30b;};return _0x4889();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x14e2a0(0x1b3),'connected':_0x14e2a0(0x1ab),'failed':_0x14e2a0(0x1b8),'retrying':_0x14e2a0(0x1cf),'unknown':_0x14e2a0(0x1b4),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x14e2a0(0x1bb),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x14e2a0(0x1b0),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x14e2a0(0x1b9),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x14e2a0(0x1ce),'apiKeyPlaceholder':_0x14e2a0(0x1bd),'apiKeyHint':_0x14e2a0(0x1c8),'enableAuth':_0x14e2a0(0x1c5),'enableAuthHint':_0x14e2a0(0x1c3),'connectionInfo':_0x14e2a0(0x1cc),'serverEndpoint':_0x14e2a0(0x1c0),'sessionId':'Session\x20ID','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x14e2a0(0x1c7),'note1':_0x14e2a0(0x1ba),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x14e2a0(0x1cb),'description':_0x14e2a0(0x1be),'univerAiLabel':_0x14e2a0(0x1c2),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x14e2a0(0x1c9),'apiKeyTooShort':_0x14e2a0(0x1ca),'invalidConfig':_0x14e2a0(0x1c1),'invalidApiKey':_0x14e2a0(0x1aa)},'connectionStatus':{'disconnected':_0x14e2a0(0x1b1),'connecting':_0x14e2a0(0x1b7),'connected':_0x14e2a0(0x1af),'failed':_0x14e2a0(0x1bf),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x14e2a0(0x1b5),'invalidApiKey':_0x14e2a0(0x1cd),'sessionOccupied':_0x14e2a0(0x1b6),'networkError':_0x14e2a0(0x1c4),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x2a39ed=_0x3af1;(function(_0x35681a,_0x3d50aa){var _0x4760c2=_0x3af1,_0x55320=_0x35681a();while(!![]){try{var _0x15c538=parseInt(_0x4760c2(0x148))/0x1*(parseInt(_0x4760c2(0x89))/0x2)+parseInt(_0x4760c2(0xa5))/0x3+parseInt(_0x4760c2(0xc3))/0x4*(parseInt(_0x4760c2(0xf4))/0x5)+parseInt(_0x4760c2(0x184))/0x6+parseInt(_0x4760c2(0x10f))/0x7+parseInt(_0x4760c2(0x187))/0x8*(-parseInt(_0x4760c2(0xf0))/0x9)+-parseInt(_0x4760c2(0xa1))/0xa*(parseInt(_0x4760c2(0x197))/0xb);if(_0x15c538===_0x3d50aa)break;else _0x55320['push'](_0x55320['shift']());}catch(_0x32c9e7){_0x55320['push'](_0x55320['shift']());}}}(_0x32ce,0x46f4b));var Se=Object[_0x2a39ed(0xcb)],xe=(_0x2267e6,_0x35bf4b,_0x425d08)=>_0x35bf4b in _0x2267e6?Se(_0x2267e6,_0x35bf4b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x425d08}):_0x2267e6[_0x35bf4b]=_0x425d08,N=(_0x2460dc,_0x14271e,_0x63a180)=>xe(_0x2460dc,typeof _0x14271e!='symbol'?_0x14271e+'':_0x14271e,_0x63a180);import{LocaleService as _0x1457f3,Inject as _0x54fe84,Injector as _0x251fc2,IConfigService as _0x2853c3,ILocalStorageService as _0x122f1b,ILogService as _0x49dda7,Disposable as _0x888610,CommandType as _0x215a19,ICommandService as _0x5f404e,DependentOn as _0x4726b7,Plugin as _0x1813e7,merge as _0x2246be}from'@univerjs/core';import{jsxs as _0x2113a0,jsx as _0x3a9243}from'react/jsx-runtime';import{MCPConnectionStatus as _0x465257,MCPConnectionError as _0x331fcf,MCPConnectionController as _0x4601ab,MCP_PLUGIN_CONFIG_KEY as _0x59a440,UniverMCPPlugin as _0x1cef3b}from'@univerjs-pro/mcp';import{Input as _0x5f067c,Button as _0x21f73d,MessageType as _0x53680e,Tooltip as _0x393e3d,clsx as _0x45baf8}from'@univerjs/design';import{useDependency as _0x527b81,useObservable as _0xb9f560,IUIPartsService as _0x4c0dea,IDialogService as _0x543447,IMessageService as _0x54f0a6,ComponentManager as _0xab8ce1,connectInjector as _0x27bd0d,BuiltInUIPart as _0x25f665,MenuItemType as _0x113af3,RibbonStartGroup as _0x38e781,IMenuManagerService as _0x3f1668}from'@univerjs/ui';import{BehaviorSubject as _0x312b71}from'rxjs';import{forwardRef as _0x15ccf8,useRef as _0xa666d2,createElement as _0x171545,useState as _0x2cd47d,useCallback as _0x51bcbf}from'react';var d=function(){var _0x4f627e=_0x2a39ed;return d=Object[_0x4f627e(0x117)]||function(_0x427e3f){var _0x31b8f2=_0x4f627e;for(var _0x19f245,_0x382c0d=0x1,_0x548435=arguments[_0x31b8f2(0x118)];_0x382c0d<_0x548435;_0x382c0d++){_0x19f245=arguments[_0x382c0d];for(var _0x3d73d2 in _0x19f245)Object[_0x31b8f2(0x70)]['hasOwnProperty'][_0x31b8f2(0x1b6)](_0x19f245,_0x3d73d2)&&(_0x427e3f[_0x3d73d2]=_0x19f245[_0x3d73d2]);}return _0x427e3f;},d[_0x4f627e(0xf1)](this,arguments);},Ye=function(_0x5c750d,_0x5672ab){var _0xac25cf=_0x2a39ed,_0x4f5700={};for(var _0xbfbe02 in _0x5c750d)Object['prototype'][_0xac25cf(0x7b)][_0xac25cf(0x1b6)](_0x5c750d,_0xbfbe02)&&_0x5672ab[_0xac25cf(0x12e)](_0xbfbe02)<0x0&&(_0x4f5700[_0xbfbe02]=_0x5c750d[_0xbfbe02]);if(_0x5c750d!=null&&typeof Object[_0xac25cf(0x151)]==_0xac25cf(0x165)){for(var _0x12c846=0x0,_0xbfbe02=Object['getOwnPropertySymbols'](_0x5c750d);_0x12c846<_0xbfbe02[_0xac25cf(0x118)];_0x12c846++)_0x5672ab[_0xac25cf(0x12e)](_0xbfbe02[_0x12c846])<0x0&&Object[_0xac25cf(0x70)][_0xac25cf(0xd4)]['call'](_0x5c750d,_0xbfbe02[_0x12c846])&&(_0x4f5700[_0xbfbe02[_0x12c846]]=_0x5c750d[_0xbfbe02[_0x12c846]]);}return _0x4f5700;},S=_0x15ccf8(function(_0x3cb5bc,_0x188633){var _0x33a164=_0x2a39ed,_0x10d053=_0x3cb5bc[_0x33a164(0xc2)],_0x48748d=_0x3cb5bc['id'],_0x3e3da5=_0x3cb5bc[_0x33a164(0xaa)],_0x4a9b8f=_0x3cb5bc[_0x33a164(0x15a)],_0x17fbee=Ye(_0x3cb5bc,[_0x33a164(0xc2),'id',_0x33a164(0xaa),_0x33a164(0x15a)]),_0x2064cb='univerjs-icon\x20univerjs-icon-'[_0x33a164(0x160)](_0x48748d,'\x20')[_0x33a164(0x160)](_0x3e3da5||'')[_0x33a164(0xce)](),_0x5d948a=_0xa666d2('_'[_0x33a164(0x160)](He()));return oe(_0x10d053,''[_0x33a164(0x160)](_0x48748d),{'defIds':_0x10d053[_0x33a164(0x194)],'idSuffix':_0x5d948a[_0x33a164(0x1a1)]},d({'ref':_0x188633,'className':_0x2064cb},_0x17fbee),_0x4a9b8f);});function oe(_0x97cda8,_0x5d7e91,_0x6791d8,_0x35daaf,_0x5f3ebf){var _0x10a31b=_0x2a39ed;return _0x171545(_0x97cda8['tag'],d(d({'key':_0x5d7e91},Ve(_0x97cda8,_0x6791d8,_0x5f3ebf)),_0x35daaf),(Fe(_0x97cda8,_0x6791d8)[_0x10a31b(0xc8)]||[])[_0x10a31b(0x121)](function(_0x1e80ad,_0x17f0c2){var _0x27428f=_0x10a31b;return oe(_0x1e80ad,''['concat'](_0x5d7e91,'-')['concat'](_0x97cda8[_0x27428f(0x179)],'-')[_0x27428f(0x160)](_0x17f0c2),_0x6791d8,void 0x0,_0x5f3ebf);}));}function Ve(_0x2c640f,_0x243d40,_0x9eebbc){var _0xe8e559=_0x2a39ed,_0x2da70a=d({},_0x2c640f[_0xe8e559(0xdd)]);_0x9eebbc!=null&&_0x9eebbc[_0xe8e559(0x1b9)]&&_0x2da70a[_0xe8e559(0xb2)]==='colorChannel1'&&(_0x2da70a[_0xe8e559(0xb2)]=_0x9eebbc[_0xe8e559(0x1b9)]),_0x2c640f[_0xe8e559(0x179)]===_0xe8e559(0x1ae)&&_0x2da70a['id']&&(_0x2da70a['id']=_0x2da70a['id']+_0x243d40[_0xe8e559(0x72)]),Object[_0xe8e559(0x180)](_0x2da70a)[_0xe8e559(0x113)](function(_0x1a6ef8){var _0x2da632=_0xe8e559,_0x394e75=_0x1a6ef8[0x0],_0x5be8fa=_0x1a6ef8[0x1];_0x394e75===_0x2da632(0x1ae)&&typeof _0x5be8fa==_0x2da632(0xe0)&&(_0x2da70a[_0x394e75]=_0x5be8fa[_0x2da632(0xb8)](/url\(#(.*)\)/,_0x2da632(0x16b)[_0x2da632(0x160)](_0x243d40[_0x2da632(0x72)],')')));});var _0x57894c=_0x243d40[_0xe8e559(0x194)];return!_0x57894c||_0x57894c[_0xe8e559(0x118)]===0x0||(_0x2c640f[_0xe8e559(0x179)]===_0xe8e559(0x120)&&_0x2da70a['xlink:href']&&(_0x2da70a[_0xe8e559(0x1be)]=_0x2da70a[_0xe8e559(0x1be)]+_0x243d40['idSuffix']),Object[_0xe8e559(0x180)](_0x2da70a)[_0xe8e559(0x113)](function(_0xb07a5f){var _0x26f69a=_0xe8e559,_0xb97269=_0xb07a5f[0x0],_0x48eb60=_0xb07a5f[0x1];typeof _0x48eb60==_0x26f69a(0xe0)&&(_0x2da70a[_0xb97269]=_0x48eb60[_0x26f69a(0xb8)](/url\(#(.*)\)/,_0x26f69a(0x16b)[_0x26f69a(0x160)](_0x243d40['idSuffix'],')')));})),_0x2da70a;}function Fe(_0x27f874,_0x5cc39c){var _0x50801b=_0x2a39ed,_0x24ae9e,_0x4b8b3f=_0x5cc39c[_0x50801b(0x194)];return!_0x4b8b3f||_0x4b8b3f[_0x50801b(0x118)]===0x0?_0x27f874:_0x27f874[_0x50801b(0x179)]===_0x50801b(0x9f)&&(!((_0x24ae9e=_0x27f874[_0x50801b(0xc8)])===null||_0x24ae9e===void 0x0)&&_0x24ae9e[_0x50801b(0x118)])?d(d({},_0x27f874),{'children':_0x27f874[_0x50801b(0xc8)][_0x50801b(0x121)](function(_0x375353){var _0x3e7a91=_0x50801b;return typeof _0x375353[_0x3e7a91(0xdd)]['id']==_0x3e7a91(0xe0)&&_0x4b8b3f&&_0x4b8b3f[_0x3e7a91(0x82)](_0x375353[_0x3e7a91(0xdd)]['id'])?d(d({},_0x375353),{'attrs':d(d({},_0x375353[_0x3e7a91(0xdd)]),{'id':_0x375353[_0x3e7a91(0xdd)]['id']+_0x5cc39c[_0x3e7a91(0x72)]})}):_0x375353;})}):_0x27f874;}function He(){var _0x5f1f22=_0x2a39ed;return Math['random']()[_0x5f1f22(0xb7)](0x24)[_0x5f1f22(0x1ab)](0x2,0x8);}function _0x3af1(_0x2594de,_0x4b911a){var _0x32ce98=_0x32ce();return _0x3af1=function(_0x3af167,_0x57a78d){_0x3af167=_0x3af167-0x70;var _0x426733=_0x32ce98[_0x3af167];return _0x426733;},_0x3af1(_0x2594de,_0x4b911a);}S[_0x2a39ed(0x107)]=_0x2a39ed(0x159);var We={'tag':_0x2a39ed(0x14e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2a39ed(0x14f),'viewBox':_0x2a39ed(0xfd),'width':_0x2a39ed(0xb3),'height':'1em'},'children':[{'tag':_0x2a39ed(0x154),'attrs':{'fill':_0x2a39ed(0x11a),'d':_0x2a39ed(0x192),'fillRule':_0x2a39ed(0x8a),'clipRule':_0x2a39ed(0x8a)}}]},ce=_0x15ccf8(function(_0x18420b,_0x1bc8e4){var _0x55aa9d=_0x2a39ed;return _0x171545(S,Object['assign']({},_0x18420b,{'id':_0x55aa9d(0x10d),'ref':_0x1bc8e4,'icon':We}));});ce[_0x2a39ed(0x107)]='CheckMarkIcon';var Be={'tag':_0x2a39ed(0x14e),'attrs':{'xmlns':_0x2a39ed(0x9c),'fill':_0x2a39ed(0x14f),'viewBox':_0x2a39ed(0x75),'width':_0x2a39ed(0xb3),'height':_0x2a39ed(0xb3)},'children':[{'tag':'path','attrs':{'stroke':_0x2a39ed(0x11a),'d':_0x2a39ed(0x196),'strokeLinecap':_0x2a39ed(0x178),'strokeLinejoin':'round','strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':_0x2a39ed(0x11a),'d':_0x2a39ed(0x9e),'strokeLinecap':_0x2a39ed(0x178),'strokeLinejoin':_0x2a39ed(0x178),'strokeWidth':1.33}}]},ae=_0x15ccf8(function(_0x3aaa53,_0x40a777){var _0xd44465=_0x2a39ed;return _0x171545(S,Object[_0xd44465(0x117)]({},_0x3aaa53,{'id':_0xd44465(0x1b5),'ref':_0x40a777,'icon':Be}));});ae[_0x2a39ed(0x107)]='CloseSmallSingle';var ze={'tag':_0x2a39ed(0x14e),'attrs':{'xmlns':_0x2a39ed(0x9c),'fill':_0x2a39ed(0x14f),'viewBox':_0x2a39ed(0xfd),'width':_0x2a39ed(0xb3),'height':_0x2a39ed(0xb3)},'children':[{'tag':_0x2a39ed(0x154),'attrs':{'fill':_0x2a39ed(0x11a),'d':_0x2a39ed(0x12a)}},{'tag':_0x2a39ed(0x154),'attrs':{'fill':'currentColor','d':_0x2a39ed(0x175)}},{'tag':'path','attrs':{'fill':'currentColor','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':'evenodd','clipRule':_0x2a39ed(0x8a)}}]},se=_0x15ccf8(function(_0x1f2242,_0x4778f0){var _0x19c30a=_0x2a39ed;return _0x171545(S,Object[_0x19c30a(0x117)]({},_0x1f2242,{'id':'help-single','ref':_0x4778f0,'icon':ze}));});se[_0x2a39ed(0x107)]=_0x2a39ed(0x166);var qe={'tag':_0x2a39ed(0x14e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2a39ed(0x14f),'viewBox':_0x2a39ed(0xfd),'width':_0x2a39ed(0xb3),'height':_0x2a39ed(0xb3)},'children':[{'tag':'g','attrs':{'clipPath':_0x2a39ed(0xfc)},'children':[{'tag':'path','attrs':{'stroke':_0x2a39ed(0x11a),'d':_0x2a39ed(0xc0),'strokeLinecap':_0x2a39ed(0x178),'strokeLinejoin':_0x2a39ed(0x178),'strokeWidth':1.2}}]},{'tag':_0x2a39ed(0x9f),'attrs':{},'children':[{'tag':_0x2a39ed(0x186),'attrs':{'id':_0x2a39ed(0xb6)},'children':[{'tag':_0x2a39ed(0x154),'attrs':{'fill':'white','d':_0x2a39ed(0x191)}}]}]}],'defIds':[_0x2a39ed(0xb6)]},le=_0x15ccf8(function(_0x188591,_0x2ab5fa){var _0x20010a=_0x2a39ed;return _0x171545(S,Object[_0x20010a(0x117)]({},_0x188591,{'id':_0x20010a(0xa3),'ref':_0x2ab5fa,'icon':qe}));});le[_0x2a39ed(0x107)]=_0x2a39ed(0x100);var Ze={'tag':_0x2a39ed(0x14e),'attrs':{'xmlns':_0x2a39ed(0x9c),'fill':_0x2a39ed(0x14f),'viewBox':_0x2a39ed(0x18c),'width':_0x2a39ed(0xb3),'height':_0x2a39ed(0xb3)},'children':[{'tag':'g','attrs':{'clipPath':_0x2a39ed(0x16e)},'children':[{'tag':_0x2a39ed(0x154),'attrs':{'stroke':_0x2a39ed(0x11a),'d':_0x2a39ed(0x1ad),'strokeLinecap':_0x2a39ed(0x178),'strokeLinejoin':_0x2a39ed(0x178),'strokeWidth':1.2}}]},{'tag':_0x2a39ed(0x9f),'attrs':{},'children':[{'tag':_0x2a39ed(0x186),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x2a39ed(0x1c0),'d':_0x2a39ed(0x191),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2a39ed(0xb4)]},ue=_0x15ccf8(function(_0x5d8d35,_0xc035be){var _0x2d9fe0=_0x2a39ed;return _0x171545(S,Object[_0x2d9fe0(0x117)]({},_0x5d8d35,{'id':_0x2d9fe0(0x142),'ref':_0xc035be,'icon':Ze}));});ue['displayName']=_0x2a39ed(0x10a);function Xe(_0x47273d){var _0x5e7f17=_0x2a39ed,_0x1fc2de,_0x1af37c;const {mcpCoreConfig:_0x5be27b,onSave:_0x4e8e45,loading:_0x952699=!0x1,config:_0x338f38,connectionStatus$:_0x267866,connectionError$:_0x42a143}=_0x47273d,_0x2feb02=_0x527b81(_0x1457f3),_0x2a39ef=_0xb9f560(_0x267866,_0x465257[_0x5e7f17(0xd0)]),_0x2af734=_0xb9f560(_0x42a143,_0x331fcf[_0x5e7f17(0x176)]),[_0x3ea70d,_0x156bd7]=_0x2cd47d(_0x5be27b['apiKey']||''),_0x368997=!0x0,_0x265154=_0x338f38[_0x5e7f17(0xee)]&&_0x5be27b[_0x5e7f17(0x114)]&&(_0x5be27b[_0x5e7f17(0x114)][_0x5e7f17(0x82)]('univer.plus')||_0x5be27b[_0x5e7f17(0x114)]['includes'](_0x5e7f17(0x17e))),_0xd96574=(_0x1fc2de=_0x5be27b[_0x5e7f17(0x114)])==null?void 0x0:_0x1fc2de[_0x5e7f17(0x82)](_0x5e7f17(0xae)),_0x5f423f=(_0x1af37c=_0x5be27b['mcpServerUrl'])==null?void 0x0:_0x1af37c[_0x5e7f17(0x82)]('univer.ai'),_0x2341bd=_0xd96574?_0x5e7f17(0x12d):'https://console.univer.ai',_0x1675ae=_0x338f38[_0x5e7f17(0xee)]&&(_0xd96574||_0x5f423f),[_0x3ae706,_0x2bc86a]=_0x2cd47d(!_0x3ea70d[_0x5e7f17(0xce)]()),_0x3d7d26=(_0x453463,_0x1b5be6)=>{var _0x5534b0=_0x5e7f17;if(_0x1b5be6===_0x331fcf[_0x5534b0(0xcd)]||_0x1b5be6===_0x331fcf['INVALID_API_KEY'])return _0x5534b0(0x15c);switch(_0x453463){case _0x465257[_0x5534b0(0xf5)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x465257['CONNECTING']:case _0x465257['RETRYING']:return _0x5534b0(0x125);case _0x465257['FAILED']:return _0x5534b0(0x15c);default:return _0x5534b0(0x181);}},_0x53c392=(_0x507a41,_0x444add)=>{var _0x2fad07=_0x5e7f17;if(_0x444add===_0x331fcf[_0x2fad07(0xcd)]||_0x444add===_0x331fcf[_0x2fad07(0x167)])return _0x2fad07(0x96);switch(_0x507a41){case _0x465257['CONNECTED']:return _0x2fad07(0x13c);case _0x465257['CONNECTING']:case _0x465257['RETRYING']:return'univer-bg-blue-500';case _0x465257[_0x2fad07(0x11c)]:return _0x2fad07(0x96);default:return'univer-bg-gray-500';}},_0x22fbb6=_0x456f8b=>{var _0x3b3b81=_0x5e7f17;switch(_0x456f8b){case _0x465257[_0x3b3b81(0xf5)]:return _0x2feb02['t'](_0x3b3b81(0xe2));case _0x465257['CONNECTING']:return _0x2feb02['t'](_0x3b3b81(0x188));case _0x465257[_0x3b3b81(0x11c)]:return _0x2feb02['t'](_0x3b3b81(0x8b));case _0x465257[_0x3b3b81(0xd5)]:return _0x2feb02['t'](_0x3b3b81(0xe8));default:return _0x2feb02['t'](_0x3b3b81(0xfe));}},_0x2b9a4e=_0x2575e6=>{var _0x56500f=_0x5e7f17;switch(_0x2575e6){case _0x331fcf[_0x56500f(0xcd)]:return _0x2feb02['t'](_0x56500f(0x1bd));case _0x331fcf[_0x56500f(0x167)]:return _0x2feb02['t'](_0x56500f(0x130));case _0x331fcf[_0x56500f(0xf9)]:return _0x2feb02['t'](_0x56500f(0x131));case _0x331fcf[_0x56500f(0x13e)]:return _0x2feb02['t'](_0x56500f(0x106));case _0x331fcf[_0x56500f(0x170)]:return _0x2feb02['t'](_0x56500f(0xd9));default:return'';}},_0x886ed1=_0x51bcbf(()=>{const _0x823829={..._0x5be27b,'apiKey':_0x3ea70d['trim'](),'enableAuth':_0x368997};_0x4e8e45(_0x823829);},[_0x5be27b,_0x3ea70d,_0x368997,_0x4e8e45]),_0x28b410=_0x3ea70d[_0x5e7f17(0xce)]()[_0x5e7f17(0x118)]>0x0;return _0x2113a0(_0x5e7f17(0x143),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x3a9243(_0x5e7f17(0x143),{'className':_0x5e7f17(0x1b8),'children':_0x2113a0(_0x5e7f17(0x143),{'className':_0x5e7f17(0x1bb),'children':[_0x3a9243(_0x5e7f17(0x143),{'className':'univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':_0x3a9243('span',{'className':_0x5e7f17(0x7c),'children':'⚙'})}),_0x3a9243(_0x5e7f17(0x143),{'children':_0x3a9243('p',{'className':_0x5e7f17(0x162),'children':_0x2feb02['t'](_0x5e7f17(0x111))})})]})}),_0x2113a0(_0x5e7f17(0x143),{'className':_0x5e7f17(0xc1),'children':[_0x3a9243(_0x5e7f17(0x143),{'className':_0x5e7f17(0xe3)+_0x3d7d26(_0x2a39ef,_0x2af734)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x2113a0(_0x5e7f17(0x143),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x3a9243(_0x5e7f17(0x143),{'className':_0x5e7f17(0x141)+_0x53c392(_0x2a39ef,_0x2af734)+_0x5e7f17(0xe5)}),_0x3a9243(_0x5e7f17(0x138),{'className':_0x5e7f17(0x11b),'children':_0x22fbb6(_0x2a39ef)})]})}),_0x2af734!==_0x331fcf['NONE']&&(_0x2a39ef===_0x465257[_0x5e7f17(0x11c)]||_0x2af734===_0x331fcf[_0x5e7f17(0xcd)]||_0x2af734===_0x331fcf[_0x5e7f17(0x167)])&&_0x3a9243(_0x5e7f17(0x143),{'className':_0x5e7f17(0x98),'children':_0x2113a0(_0x5e7f17(0x143),{'className':_0x5e7f17(0x77),'children':[_0x3a9243('span',{'className':_0x5e7f17(0xff),'children':'⚠️'}),_0x3a9243('p',{'className':_0x5e7f17(0x177),'children':_0x2b9a4e(_0x2af734)})]})})]}),_0x3a9243(_0x5e7f17(0x143),{'className':_0x5e7f17(0x123),'children':_0x2113a0(_0x5e7f17(0x143),{'className':_0x5e7f17(0x182),'children':[_0x2113a0(_0x5e7f17(0x143),{'className':_0x5e7f17(0xed),'children':[_0x2113a0(_0x5e7f17(0x137),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x3a9243(_0x5e7f17(0x138),{'children':'🔑'}),'\x20',_0x2feb02['t'](_0x5e7f17(0x12f)),_0x3a9243(_0x5e7f17(0x138),{'className':_0x5e7f17(0x109),'children':'*'}),_0x265154&&_0x3a9243('a',{'href':_0x5e7f17(0x92),'onClick':()=>_0x2bc86a(!0x0),'className':_0x5e7f17(0x198),'title':_0x2feb02['t'](_0x5e7f17(0xda)),'children':_0x3a9243(se,{})})]}),_0x3a9243(_0x5f067c,{'type':_0x5e7f17(0xad),'placeholder':_0x2feb02['t'](_0x5e7f17(0xf2)),'value':_0x3ea70d,'onChange':_0x156bd7,'disabled':_0x952699,'autoComplete':_0x5e7f17(0x7f)}),_0x3a9243('p',{'className':_0x5e7f17(0x88),'children':_0x2feb02['t'](_0x5e7f17(0xaf))})]}),_0x265154&&_0x3ae706&&_0x2113a0(_0x5e7f17(0x143),{'className':_0x5e7f17(0x9d),'children':[_0x3a9243('a',{'href':'javascript:void(0)','onClick':()=>_0x2bc86a(!0x1),'className':_0x5e7f17(0x8d),'title':_0x5e7f17(0x101),'children':_0x3a9243(ae,{})}),_0x2113a0(_0x5e7f17(0x143),{'className':_0x5e7f17(0x1a5),'children':[_0x3a9243(_0x5e7f17(0x143),{'className':'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','children':_0x3a9243(_0x5e7f17(0x138),{'className':_0x5e7f17(0x190),'children':'🚀'})}),_0x2113a0('div',{'className':_0x5e7f17(0x71),'children':[_0x3a9243('h4',{'className':_0x5e7f17(0x10e),'children':_0x2feb02['t']('mcpConfig.apiApplyInfo.title')}),_0x3a9243('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x2feb02['t'](_0x5e7f17(0xcf))}),_0x3a9243(_0x5e7f17(0x143),{'className':_0x5e7f17(0x14c),'children':_0x1675ae&&_0x2113a0('a',{'href':_0x2341bd,'target':_0x5e7f17(0x199),'rel':'noopener\x20noreferrer','className':_0x5e7f17(0x17c),'children':[_0x3a9243(_0x5e7f17(0x138),{'children':'🤖'}),_0x2feb02['t'](_0x5e7f17(0x1a4)),_0x3a9243(_0x5e7f17(0x138),{'className':_0x5e7f17(0x1a8),'children':'↗'})]})}),_0x2113a0('div',{'className':_0x5e7f17(0x17a),'children':['✨','\x20',_0x2feb02['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x338f38[_0x5e7f17(0xee)]&&_0x2113a0(_0x5e7f17(0x143),{'className':_0x5e7f17(0x18e),'children':[_0x2113a0('h4',{'className':_0x5e7f17(0xd3),'children':[_0x3a9243(_0x5e7f17(0x138),{'children':'🔗'}),'\x20',_0x2feb02['t']('mcpConfig.connectionInfo')]}),_0x2113a0(_0x5e7f17(0x143),{'className':_0x5e7f17(0x105),'children':[_0x2113a0(_0x5e7f17(0x143),{'className':_0x5e7f17(0x18b),'children':[_0x3a9243('div',{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x2113a0('div',{'className':_0x5e7f17(0xbf),'children':[_0x3a9243(_0x5e7f17(0x143),{'className':_0x5e7f17(0x110),'children':_0x2feb02['t'](_0x5e7f17(0xeb))}),_0x3a9243(_0x5e7f17(0x169),{'className':_0x5e7f17(0x144),'children':_0x5be27b[_0x5e7f17(0x114)]})]})]}),_0x2113a0(_0x5e7f17(0x143),{'className':_0x5e7f17(0x18b),'children':[_0x3a9243(_0x5e7f17(0x143),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x2113a0(_0x5e7f17(0x143),{'className':_0x5e7f17(0xbf),'children':[_0x3a9243(_0x5e7f17(0x143),{'className':_0x5e7f17(0x110),'children':_0x2feb02['t'](_0x5e7f17(0x1b7))}),_0x3a9243(_0x5e7f17(0x169),{'className':'univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-gray-700','children':_0x5be27b[_0x5e7f17(0x163)]||'default'})]})]})]})]}),_0x3a9243(_0x21f73d,{'onClick':_0x886ed1,'disabled':!_0x28b410||_0x952699,'className':_0x5e7f17(0x127),'children':_0x952699?_0x2113a0(_0x5e7f17(0x138),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x3a9243(_0x5e7f17(0x138),{'children':'⟲'}),_0x2feb02['t'](_0x5e7f17(0xbb))]}):_0x2113a0('span',{'className':_0x5e7f17(0x91),'children':[_0x3a9243(ce,{}),_0x2feb02['t'](_0x5e7f17(0x128))]})}),_0x3a9243(_0x5e7f17(0x143),{'className':_0x5e7f17(0x149),'children':_0x2113a0(_0x5e7f17(0x143),{'className':'univer-flex\x20univer-gap-3','children':[_0x3a9243('span',{'className':_0x5e7f17(0x1bc),'children':'💡'}),_0x2113a0(_0x5e7f17(0x143),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x3a9243(_0x5e7f17(0x143),{'className':_0x5e7f17(0x126),'children':'Configuration\x20Notes:'}),_0x2113a0(_0x5e7f17(0x143),{'children':['•',_0x2feb02['t'](_0x5e7f17(0xbd))]}),_0x2113a0(_0x5e7f17(0x143),{'children':['•',_0x2feb02['t']('mcpConfig.note2')]})]})]})})]})})]});}const U='mcp-ui.config',J={'showDeveloperTools':!0x1};var Je=Object[_0x2a39ed(0x1a0)],Qe=(_0x26c40d,_0x3bd7cd,_0x3dbdff,_0x4034e0)=>{var _0x49252f=_0x2a39ed;for(var _0x45af1c=_0x4034e0>0x1?void 0x0:_0x4034e0?Je(_0x3bd7cd,_0x3dbdff):_0x3bd7cd,_0x43c18c=_0x26c40d[_0x49252f(0x118)]-0x1,_0x3aa525;_0x43c18c>=0x0;_0x43c18c--)(_0x3aa525=_0x26c40d[_0x43c18c])&&(_0x45af1c=_0x3aa525(_0x45af1c)||_0x45af1c);return _0x45af1c;},p=(_0x49fe99,_0x5ece28)=>(_0x18e44f,_0x58d384)=>_0x5ece28(_0x18e44f,_0x58d384,_0x49fe99);function _0x32ce(){var _0x39801f=['Connection\x20Information','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','NONE','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','round','tag','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','会话当前被占用,请稍后再试','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','\x20-\x20','univer.ai','配置保存成功','entries','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-space-y-5','removeItem','2854338gvlNhb','_injector','clipPath','8hDKmGz','mcpConfig.connectionStatus.connecting','next','_dialogService','univer-flex\x20univer-items-start\x20univer-gap-3','0\x200\x2017\x2016','univer-text-yellow-500','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','您的\x20API\x20密钥安全存储在本地存储中','univer-text-blue-600','M0\x200H16V16H0z','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','MenuIcon','defIds','启用身份验证','M5.21243\x205.62036L11.8791\x2012.287','143XIuguE','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','_blank','您的\x20API\x20密钥将在此浏览器中本地存储','add','mcpConfig.validation.apiKeyTooShort','MCP\x20Connection\x20Failed','_uiPartsService','MCP\x20配置','getOwnPropertyDescriptor','current','_initConfigSync','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.apiApplyInfo.univerAiLabel','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','onStarting','保存配置','univer-text-gray-400','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','substring','Enable\x20Authentication','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','mask','mcpConfig.configError','univer-text-green-500','连接中...','_registerComponent','mcpStatus.networkError','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','close-small-single','call','mcpConfig.sessionId','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','colorChannel1','MCP:\x20Network\x20Error','univer-flex\x20univer-items-center\x20univer-gap-3','univer-flex-shrink-0\x20univer-text-blue-500','mcpConfig.connectionError.missingApiKey','xlink:href','API\x20key\x20is\x20required\x20to\x20connect','white','_validateConfig','prototype','univer-flex-1','idSuffix','univer-flex\x20univer-cursor-pointer\x20univer-items-center','Get\x20your\x20API\x20key\x20in\x20seconds','0\x200\x2017\x2017','setItem','univer-flex\x20univer-items-start\x20univer-gap-2','MCP:\x20无效的\x20API\x20密钥','MCP_UI_PLUGIN','点击配置\x20MCP','hasOwnProperty','univer-text-white','最大重试次数','What\x20is\x20API\x20Key?','off','Click\x20to\x20configure\x20MCP','MCP:\x20会话被占用','includes','_handleConfigure','OTHERS','配置更改将立即生效','showConfigPanel','Univer\x20AI\x20Console','univer-text-xs\x20univer-text-gray-500','7186jRaGRr','evenodd','mcpConfig.connectionStatus.failed','_localeService','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','mcpStatus.clickToConfigure','close','apiKey','univer-flex\x20univer-items-center\x20univer-gap-2','javascript:void(0)','重连中...','未连接','_componentManager','univer-bg-red-500','Configuration\x20saved\x20successfully','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','Invalid\x20configuration','mcpConfig.configSaved','配置\x20MCP\x20使用\x20AI\x20操作电子表格','http://www.w3.org/2000/svg','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','M5.21243\x2012.287L11.8791\x205.62036','defs','pluginName','1306810fCJEsO','_messageService','off-line-icon','_menuManagerService','1651530iBlAld','_connectionController','MCP\x20重连中...','registerCommand','error','className','BUTTON','getItem','text','univer.plus','mcpConfig.apiKeyHint','MCP:\x20Session\x20Occupied','_initializeCommands','fill','1em','on-line-icon_clip0_910_349','mcpStatus.invalidApiKey','off-line-icon_clip0_910_343','toString','replace','连接失败','connectionStatus$','mcpConfig.saving','MCP\x20连接中...','mcpConfig.note1','MCP:\x20网络错误','univer-min-w-0\x20univer-flex-1','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-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','icon','44WyqpUm','HEADER_MENU','MCP\x20连接失败','API\x20密钥无效,请检查密钥是否正确','mcpStatus.missingApiKey','children','isValid','errorMessage','defineProperty','什么是\x20API\x20密钥?','MISSING_API_KEY','trim','mcpConfig.apiApplyInfo.description','DISCONNECTED','CONNECTING','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','propertyIsEnumerable','RETRYING','API\x20密钥','bottom','_loadStoredApiKey','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.apiApplyInfo.title','MCP\x20Unknown\x20Status','API\x20密钥长度至少需要\x2010\x20位','attrs','MCP:\x20API\x20Key\x20Missing','服务器端点','string','MCP\x20Retrying...','mcpConfig.connectionStatus.connected','\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','Session\x20ID','\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','网络连接错误,请检查您的网络连接','_localStorageService','mcpConfig.connectionStatus.retrying','setConfig','open','mcpConfig.serverEndpoint','_logService','univer-space-y-2','showDeveloperTools','Retrying...','2820393AxXntk','apply','mcpConfig.apiKeyPlaceholder','_config$','193345oQCLMl','CONNECTED','_commandService','_configService','value','SESSION_ID_OCCUPIED','Error','MCP\x20已断开','url(#off-line-icon_clip0_910_343)','0\x200\x2016\x2016','mcpConfig.connectionStatus.disconnected','univer-flex-shrink-0\x20univer-text-red-500','OffLineIcon','Close','show','mcpStatus.retrying','Save\x20Configuration','univer-space-y-3','mcpConfig.connectionError.networkError','displayName','Enter\x20your\x20API\x20key','univer-text-red-500','OnLineIcon','_handleConfigSave','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','check-mark-icon','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','2664130NISmtW','univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.description','Disconnected','forEach','mcpServerUrl','mcpConfig.title','MCP:\x20Invalid\x20API\x20Key','assign','length','_createConfigPanelComponent','currentColor','univer-text-sm\x20univer-font-medium','FAILED','几秒钟内获取您的\x20API\x20密钥','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','保存中...','use','map','mcp-ui.command.openConfigPanel','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpStatus.connected','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-font-medium','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','mcpConfig.save','MCPConfigPanel','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','disposeWithMe','Failed\x20to\x20save\x20configuration','https://console.univer.plus','indexOf','mcpConfig.apiKey','mcpConfig.connectionError.invalidApiKey','mcpConfig.connectionError.sessionOccupied','mcpConfig.validation.apiKeyRequired','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connection\x20Failed','Connected','getCurrentConfig','label','span','Server\x20Endpoint','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-bg-green-500','MCP\x20Configuration','NETWORK_ERROR','_mcpCoreConfig$','_initStatusComponent','\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','on-line-icon','div','univer-break-all\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-blue-600','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpStatus.clickToConnect','mcp.apiKey','131yEcntJ','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','需要\x20API\x20密钥才能连接','MCP\x20已连接','univer-flex\x20univer-flex-wrap\x20univer-gap-2','_mcpConnectionController','svg','none','mcpStatus.unknown','getOwnPropertySymbols','mergeMenu','univer-text-gray-500','path','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','hover:univer-opacity-80','getConfig','_initializeMenus','UniverIcon','extend','配置保存失败','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','connectionError$','mcpConfig.validation.invalidApiKey','请输入您的\x20API\x20密钥','concat','get','univer-text-sm\x20univer-text-gray-500','sessionId','mcpStatus.disconnected','function','HelpSingle','INVALID_API_KEY','_config','code','API\x20Key','url(#$1','subscribe','_loading$','url(#on-line-icon_clip0_910_349)','validateApiKey','MAX_RETRIES_EXCEEDED','univer-mr-2\x20univer-flex\x20univer-text-xl','subscribeConfigValue$','mcpStatus.connecting'];_0x32ce=function(){return _0x39801f;};return _0x32ce();}const R=_0x2a39ed(0x147),j='mcp-config-dialog';let _=class extends _0x888610{constructor(_0x254d48,_0x48ab71,_0x483e63,_0x453e49,_0x185f28,_0x465c53,_0x3c4547,_0x1cefca,_0xa58d9c,_0x2d0bd3){var _0x2bf7db=_0x2a39ed;super(),N(this,_0x2bf7db(0x16d),new _0x312b71(!0x1)),N(this,_0x2bf7db(0x13f),new _0x312b71({})),N(this,_0x2bf7db(0xf3),new _0x312b71({})),N(this,_0x2bf7db(0x10b),async _0x537795=>{var _0x30b931=_0x2bf7db;this[_0x30b931(0x16d)][_0x30b931(0x189)](!0x0);try{const _0x5ef49c=await this[_0x30b931(0x1c1)](_0x537795);if(!_0x5ef49c[_0x30b931(0xc9)]){this[_0x30b931(0xa2)][_0x30b931(0x102)]({'type':_0x53680e['Error'],'content':_0x5ef49c[_0x30b931(0xca)]||this[_0x30b931(0x8c)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x537795[_0x30b931(0x90)]?await this[_0x30b931(0xe7)][_0x30b931(0x76)](R,_0x537795['apiKey'][_0x30b931(0xce)]()):await this['_localStorageService'][_0x30b931(0x183)](R),this[_0x30b931(0xf7)][_0x30b931(0xe9)](_0x59a440,{..._0x537795,'apiKey':_0x537795[_0x30b931(0x90)]['trim']()}),this[_0x30b931(0x13f)][_0x30b931(0x189)]({..._0x537795,'apiKey':_0x537795['apiKey']['trim']()}),this[_0x30b931(0xa2)]['show']({'type':_0x53680e['Success'],'content':this['_localeService']['t'](_0x30b931(0x9a))}),setTimeout(()=>{var _0xc921ee=_0x30b931;this['_dialogService'][_0xc921ee(0x8f)](j);},0x320);}catch(_0x32b520){this[_0x30b931(0xec)][_0x30b931(0xa9)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x32b520),this[_0x30b931(0xa2)][_0x30b931(0x102)]({'type':_0x53680e[_0x30b931(0xfa)],'content':this[_0x30b931(0x8c)]['t'](_0x30b931(0x1af))});}finally{this[_0x30b931(0x16d)][_0x30b931(0x189)](!0x1);}}),(this['_injector']=_0x254d48,this[_0x2bf7db(0x19e)]=_0x48ab71,this[_0x2bf7db(0xf7)]=_0x483e63,this[_0x2bf7db(0xe7)]=_0x453e49,this[_0x2bf7db(0x18a)]=_0x185f28,this[_0x2bf7db(0xa2)]=_0x465c53,this[_0x2bf7db(0x95)]=_0x3c4547,this['_localeService']=_0x1cefca,this[_0x2bf7db(0xec)]=_0xa58d9c,this[_0x2bf7db(0x14d)]=_0x2d0bd3,this[_0x2bf7db(0x1a2)](),this['_loadStoredApiKey'](),this[_0x2bf7db(0x1b2)]());}[_0x2a39ed(0x86)](){var _0x122cf1=_0x2a39ed;this['_dialogService'][_0x122cf1(0xea)]({'id':j,'title':{'title':this['_localeService']['t'](_0x122cf1(0x115))},'children':{'label':_0x122cf1(0x129)},'width':0x1e0,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x48bcc9=_0x122cf1;this[_0x48bcc9(0x18a)][_0x48bcc9(0x8f)](j);}});}[_0x2a39ed(0x136)](){var _0x118ea8=_0x2a39ed;return this[_0x118ea8(0x13f)][_0x118ea8(0xf8)];}['_registerComponent'](){var _0x33698b=_0x2a39ed;this[_0x33698b(0x12b)](this[_0x33698b(0x95)]['register'](_0x33698b(0x129),this['_createConfigPanelComponent']()));}[_0x2a39ed(0x119)](){var _0x5846b6=_0x2a39ed;return _0x27bd0d(()=>{var _0xd8b7de=_0x3af1,_0x5f1a06,_0x3208c8;return _0x3a9243(Xe,{'config':this[_0xd8b7de(0xf3)][_0xd8b7de(0xf8)],'mcpCoreConfig':this[_0xd8b7de(0x13f)]['value'],'onSave':this[_0xd8b7de(0x10b)],'loading':this['_loading$'][_0xd8b7de(0xf8)],'connectionStatus$':(_0x5f1a06=this['_mcpConnectionController'])==null?void 0x0:_0x5f1a06[_0xd8b7de(0xba)],'connectionError$':(_0x3208c8=this[_0xd8b7de(0x14d)])==null?void 0x0:_0x3208c8[_0xd8b7de(0x15d)]});},this[_0x5846b6(0x185)]);}['_initConfigSync'](){var _0x444108=_0x2a39ed;this[_0x444108(0x12b)](this['_configService'][_0x444108(0x172)](_0x59a440)[_0x444108(0x16c)](_0x5b572a=>{var _0x20cc9f=_0x444108;this['_mcpCoreConfig$'][_0x20cc9f(0x189)](_0x5b572a||{});}));const _0x47dc9a=this[_0x444108(0xf7)][_0x444108(0x157)](_0x59a440);this['_mcpCoreConfig$']['next'](_0x47dc9a||{}),this[_0x444108(0x12b)](this['_configService']['subscribeConfigValue$'](U)[_0x444108(0x16c)](_0x19182d=>{var _0x1d61ed=_0x444108;this['_config$'][_0x1d61ed(0x189)](_0x19182d||{});}));const _0x262eb5=this[_0x444108(0xf7)][_0x444108(0x157)](U);this[_0x444108(0xf3)][_0x444108(0x189)](_0x262eb5||{});}async[_0x2a39ed(0xd8)](){var _0x245ea2=_0x2a39ed;const _0x816f7f=await this[_0x245ea2(0xe7)][_0x245ea2(0xac)](R);if(_0x816f7f){const _0x24dd03={...this[_0x245ea2(0x13f)][_0x245ea2(0xf8)],'apiKey':_0x816f7f};this[_0x245ea2(0xf7)][_0x245ea2(0xe9)](_0x59a440,_0x24dd03),this['_mcpCoreConfig$']['next'](_0x24dd03);}}async[_0x2a39ed(0x1c1)](_0x19a95c){var _0x4a5e53=_0x2a39ed;if(!_0x19a95c[_0x4a5e53(0x90)]||_0x19a95c[_0x4a5e53(0x90)]['trim']()[_0x4a5e53(0x118)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x4a5e53(0x132))};if(_0x19a95c[_0x4a5e53(0x90)][_0x4a5e53(0xce)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x4a5e53(0x8c)]['t'](_0x4a5e53(0x19c))};try{const _0x1e709e=await this['_injector'][_0x4a5e53(0x161)](_0x4601ab)[_0x4a5e53(0x16f)](_0x19a95c[_0x4a5e53(0x90)][_0x4a5e53(0xce)]());return _0x1e709e[_0x4a5e53(0xc9)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x1e709e[_0x4a5e53(0xa9)]||this['_localeService']['t'](_0x4a5e53(0x15e))};}catch(_0x3dbb03){return console['warn'](_0x4a5e53(0x155),_0x3dbb03),{'isValid':!0x0};}}};_=Qe([p(0x0,_0x54fe84(_0x251fc2)),p(0x1,_0x4c0dea),p(0x2,_0x2853c3),p(0x3,_0x122f1b),p(0x4,_0x543447),p(0x5,_0x54f0a6),p(0x6,_0x54fe84(_0xab8ce1)),p(0x7,_0x54fe84(_0x1457f3)),p(0x8,_0x49dda7),p(0x9,_0x54fe84(_0x4601ab))],_);const W={'id':_0x2a39ed(0x122),'type':_0x215a19['COMMAND'],'handler':async(_0x38c80d,_0x48eb1b)=>(_0x38c80d[_0x2a39ed(0x161)](_)[_0x2a39ed(0x86)](),!0x0)};function ve(_0x1b703e,_0x48908f){var _0x3f08ca=_0x2a39ed;switch(_0x1b703e){case _0x465257[_0x3f08ca(0xd0)]:return _0x48908f===_0x331fcf[_0x3f08ca(0xcd)]?_0x3f08ca(0xc7):_0x3f08ca(0x164);case _0x465257[_0x3f08ca(0xd1)]:return _0x3f08ca(0x173);case _0x465257[_0x3f08ca(0xf5)]:return _0x3f08ca(0x124);case _0x465257[_0x3f08ca(0x11c)]:switch(_0x48908f){case _0x331fcf[_0x3f08ca(0x167)]:return _0x3f08ca(0xb5);case _0x331fcf[_0x3f08ca(0xf9)]:return'mcpStatus.sessionOccupied';case _0x331fcf[_0x3f08ca(0x13e)]:return _0x3f08ca(0x1b3);case _0x331fcf[_0x3f08ca(0x170)]:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case _0x465257[_0x3f08ca(0xd5)]:return _0x3f08ca(0x103);default:return _0x3f08ca(0x150);}}function en(_0x3e3161,_0x3c90d6,_0x5082ea){var _0x3c5f73=_0x2a39ed;const _0x5b2305=ve(_0x3e3161,_0x3c90d6),_0x1aab08=_0x5082ea['t'](_0x5b2305);return _0x3e3161===_0x465257[_0x3c5f73(0xd0)]&&_0x3c90d6===_0x331fcf['MISSING_API_KEY']?_0x1aab08+_0x3c5f73(0x17d)+_0x5082ea['t'](_0x3c5f73(0x8e)):_0x3e3161===_0x465257[_0x3c5f73(0xf5)]?''+_0x1aab08:_0x3e3161===_0x465257[_0x3c5f73(0xd0)]||_0x3e3161===_0x465257[_0x3c5f73(0x11c)]?_0x1aab08+_0x3c5f73(0x17d)+_0x5082ea['t'](_0x3c5f73(0x146)):_0x1aab08;}function nn(_0x50df42){var _0xeff6c4=_0x2a39ed;switch(_0x50df42){case _0x465257[_0xeff6c4(0xf5)]:return _0xeff6c4(0x1b0);case _0x465257[_0xeff6c4(0xd1)]:case _0x465257['RETRYING']:return _0xeff6c4(0x18d);case _0x465257[_0xeff6c4(0x11c)]:case _0x465257[_0xeff6c4(0xd0)]:return _0xeff6c4(0x109);default:return _0xeff6c4(0x153);}}function rn(_0xd7c2db){var _0x5eecd6=_0x2a39ed;const {status$:_0x4921fb,error$:_0x1d66a4,onConfigure:_0x4e85e4}=_0xd7c2db,_0x142a2c=_0xb9f560(_0x4921fb,_0x465257['DISCONNECTED']),_0x44b19e=_0xb9f560(_0x1d66a4,_0x331fcf[_0x5eecd6(0x176)]),_0x33c7b0=_0x527b81(_0x1457f3),_0x965268=_0x142a2c===_0x465257['CONNECTED'],_0x21a5d8=_0x142a2c===_0x465257[_0x5eecd6(0xd1)]||_0x142a2c===_0x465257[_0x5eecd6(0xd5)],_0x15122f=_0x33c7b0['t'](ve(_0x142a2c,_0x44b19e)),_0xb379cf=en(_0x142a2c,_0x44b19e,_0x33c7b0),_0x180260=nn(_0x142a2c),_0x374c0a=_0x965268?_0x3a9243(ue,{}):_0x3a9243(le,{}),_0x472c69=_0x51bcbf(()=>{_0x4e85e4&&_0x4e85e4();},[_0x965268,_0x21a5d8,_0x4e85e4]);function _0x1b23b7(){var _0x2ea77e=_0x5eecd6;return _0x2113a0('div',{'className':_0x45baf8(_0x2ea77e(0x73),_0x4e85e4&&_0x2ea77e(0x156)),'onClick':_0x4e85e4?_0x472c69:void 0x0,'children':[_0x3a9243(_0x2ea77e(0x143),{'className':_0x45baf8(_0x2ea77e(0x171),_0x180260),'children':_0x374c0a}),_0x3a9243(_0x2ea77e(0x143),{'className':_0x2ea77e(0x145),'children':_0x15122f})]});}return _0x3a9243(_0x393e3d,{'title':_0xb379cf,'placement':_0x5eecd6(0xd7),'children':_0x1b23b7()});}var tn=Object['getOwnPropertyDescriptor'],on=(_0x162a7d,_0x525fe9,_0x2f698f,_0x282111)=>{for(var _0x5c345c=_0x282111>0x1?void 0x0:_0x282111?tn(_0x525fe9,_0x2f698f):_0x525fe9,_0x2cff3a=_0x162a7d['length']-0x1,_0x16daea;_0x2cff3a>=0x0;_0x2cff3a--)(_0x16daea=_0x162a7d[_0x2cff3a])&&(_0x5c345c=_0x16daea(_0x5c345c)||_0x5c345c);return _0x5c345c;},L=(_0xb0b1a1,_0x415640)=>(_0x3916aa,_0x4c7e99)=>_0x415640(_0x3916aa,_0x4c7e99,_0xb0b1a1);let O=class extends _0x888610{constructor(_0x1799eb,_0x5e3fe3,_0x3f0171){var _0x3736a3=_0x2a39ed;super(),this[_0x3736a3(0x185)]=_0x1799eb,this['_connectionController']=_0x5e3fe3,this[_0x3736a3(0x19e)]=_0x3f0171,this[_0x3736a3(0x140)]();}[_0x2a39ed(0x140)](){var _0x580253=_0x2a39ed;this[_0x580253(0x12b)](this['_uiPartsService']['registerComponent'](_0x25f665[_0x580253(0xc4)],()=>_0x27bd0d(cn({'status$':this['_connectionController']['connectionStatus$'],'error$':this[_0x580253(0xa6)][_0x580253(0x15d)],'onConfigure':()=>this['_handleConfigure']()}),this[_0x580253(0x185)])));}[_0x2a39ed(0x83)](){var _0x3c350b=_0x2a39ed;this[_0x3c350b(0x185)][_0x3c350b(0x161)](_)[_0x3c350b(0x86)]();}};O=on([L(0x0,_0x54fe84(_0x251fc2)),L(0x1,_0x54fe84(_0x4601ab)),L(0x2,_0x4c0dea)],O);function cn(_0x394baf){const {status$:_0x1a25e6,error$:_0x2d3b29,onConfigure:_0x4569d1}=_0x394baf;return function(){return _0x3a9243(rn,{'status$':_0x1a25e6,'error$':_0x2d3b29,'onConfigure':_0x4569d1});};}function an(_0x1b29ff){var _0x5c9af6=_0x2a39ed;return{'id':W['id'],'type':_0x113af3[_0x5c9af6(0xab)],'icon':_0x5c9af6(0x193),'title':'mcpConfig.title','tooltip':'mcpConfig.title'};}const sn={[_0x38e781[_0x2a39ed(0x84)]]:{[W['id']]:{'order':0xa,'menuItemFactory':an}}};var ln=Object[_0x2a39ed(0x1a0)],un=(_0x130a7e,_0x4f420e,_0x5cadbd,_0x93ea7c)=>{var _0x3a6f00=_0x2a39ed;for(var _0x31cc1e=_0x93ea7c>0x1?void 0x0:_0x93ea7c?ln(_0x4f420e,_0x5cadbd):_0x4f420e,_0x443148=_0x130a7e[_0x3a6f00(0x118)]-0x1,_0xdac3f6;_0x443148>=0x0;_0x443148--)(_0xdac3f6=_0x130a7e[_0x443148])&&(_0x31cc1e=_0xdac3f6(_0x31cc1e)||_0x31cc1e);return _0x31cc1e;},Q=(_0x574569,_0x4639b9)=>(_0xb276da,_0x578503)=>_0x4639b9(_0xb276da,_0x578503,_0x574569);let k=class extends _0x888610{constructor(_0x4ec491,_0x4b1b5f){var _0x34a0d0=_0x2a39ed;super(),this[_0x34a0d0(0xf6)]=_0x4ec491,this[_0x34a0d0(0xa4)]=_0x4b1b5f,this[_0x34a0d0(0xb1)](),this['_initializeMenus']();}['_initializeCommands'](){var _0x10805f=_0x2a39ed;[W][_0x10805f(0x113)](_0x5e0791=>{var _0x10260c=_0x10805f;this['disposeWithMe'](this[_0x10260c(0xf6)][_0x10260c(0xa8)](_0x5e0791));});}[_0x2a39ed(0x158)](){var _0x30c58b=_0x2a39ed;this['_menuManagerService'][_0x30c58b(0x152)](sn);}};k=un([Q(0x0,_0x5f404e),Q(0x1,_0x3f1668)],k);const Nn={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x2a39ed(0x19d),'retrying':_0x2a39ed(0xe1),'unknown':_0x2a39ed(0xdb),'missingApiKey':_0x2a39ed(0xde),'invalidApiKey':_0x2a39ed(0x116),'sessionOccupied':_0x2a39ed(0xb0),'networkError':_0x2a39ed(0x1ba),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2a39ed(0x80)},'mcpConfig':{'title':_0x2a39ed(0x13d),'description':_0x2a39ed(0x133),'apiKey':_0x2a39ed(0x16a),'apiKeyPlaceholder':_0x2a39ed(0x108),'apiKeyHint':_0x2a39ed(0x1aa),'enableAuth':_0x2a39ed(0x1ac),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2a39ed(0x174),'serverEndpoint':_0x2a39ed(0x139),'sessionId':_0x2a39ed(0xe4),'maxRetries':'Max\x20Retries','save':_0x2a39ed(0x104),'saving':'Saving...','note1':_0x2a39ed(0x10c),'note2':_0x2a39ed(0x1b4),'configSaved':_0x2a39ed(0x97),'configError':_0x2a39ed(0x12c),'apiApplyInfo':{'title':_0x2a39ed(0x7e),'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':_0x2a39ed(0x87),'getStarted':_0x2a39ed(0x74)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2a39ed(0x11e),'invalidConfig':_0x2a39ed(0x99),'invalidApiKey':_0x2a39ed(0x1a3)},'connectionStatus':{'disconnected':_0x2a39ed(0x112),'connecting':'Connecting...','connected':_0x2a39ed(0x135),'failed':_0x2a39ed(0x134),'retrying':_0x2a39ed(0xef)},'connectionError':{'missingApiKey':_0x2a39ed(0x1bf),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x2a39ed(0xd2),'networkError':_0x2a39ed(0x13b),'maxRetriesExceeded':_0x2a39ed(0x13a)}}},Pn={'mcpStatus':{'disconnected':_0x2a39ed(0xfb),'connecting':_0x2a39ed(0xbc),'connected':_0x2a39ed(0x14b),'failed':_0x2a39ed(0xc5),'retrying':_0x2a39ed(0xa7),'unknown':'MCP\x20状态未知','missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':_0x2a39ed(0x78),'sessionOccupied':_0x2a39ed(0x81),'networkError':_0x2a39ed(0xbe),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x2a39ed(0x7a)},'mcpConfig':{'title':_0x2a39ed(0x19f),'description':_0x2a39ed(0x9b),'apiKey':_0x2a39ed(0xd6),'apiKeyPlaceholder':_0x2a39ed(0x15f),'apiKeyHint':_0x2a39ed(0x19a),'enableAuth':_0x2a39ed(0x195),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'连接信息','serverEndpoint':_0x2a39ed(0xdf),'sessionId':'会话ID','maxRetries':_0x2a39ed(0x7d),'save':_0x2a39ed(0x1a7),'saving':_0x2a39ed(0x11f),'note1':_0x2a39ed(0x85),'note2':_0x2a39ed(0x18f),'configSaved':_0x2a39ed(0x17f),'configError':_0x2a39ed(0x15b),'apiApplyInfo':{'title':_0x2a39ed(0xcc),'description':_0x2a39ed(0x1a9),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x2a39ed(0x11d)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x2a39ed(0xdc),'invalidConfig':'配置无效','invalidApiKey':_0x2a39ed(0xc6)},'connectionStatus':{'disconnected':_0x2a39ed(0x94),'connecting':_0x2a39ed(0x1b1),'connected':'已连接','failed':_0x2a39ed(0xb9),'retrying':_0x2a39ed(0x93)},'connectionError':{'missingApiKey':_0x2a39ed(0x14a),'invalidApiKey':'API\x20密钥无效,请检查您的密钥后重试','sessionOccupied':_0x2a39ed(0x17b),'networkError':_0x2a39ed(0xe6),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var vn=Object['defineProperty'],dn=Object['getOwnPropertyDescriptor'],gn=(_0xdf7aa3,_0x201a65,_0x1baa8d)=>_0x201a65 in _0xdf7aa3?vn(_0xdf7aa3,_0x201a65,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1baa8d}):_0xdf7aa3[_0x201a65]=_0x1baa8d,fn=(_0x479e7d,_0x483b34,_0x2a2fd0,_0x1ed54b)=>{var _0xd1600a=_0x2a39ed;for(var _0x435519=_0x1ed54b>0x1?void 0x0:_0x1ed54b?dn(_0x483b34,_0x2a2fd0):_0x483b34,_0x148778=_0x479e7d[_0xd1600a(0x118)]-0x1,_0x6612ab;_0x148778>=0x0;_0x148778--)(_0x6612ab=_0x479e7d[_0x148778])&&(_0x435519=_0x6612ab(_0x435519)||_0x435519);return _0x435519;},P=(_0x500f55,_0x4d5963)=>(_0x3bf859,_0x2e6b5f)=>_0x4d5963(_0x3bf859,_0x2e6b5f,_0x500f55),pn=(_0x59aeff,_0x29d7d3,_0x1d08be)=>gn(_0x59aeff,_0x29d7d3+'',_0x1d08be);let G=class extends _0x1813e7{constructor(_0x4512b9=J,_0x413857,_0x3293f6,_0x39064d,_0x8bc3a3,_0x2ffc1a){var _0xb0fa35=_0x2a39ed;super(),this[_0xb0fa35(0x168)]=_0x4512b9,this[_0xb0fa35(0x185)]=_0x413857,this['_configService']=_0x3293f6,this[_0xb0fa35(0x19e)]=_0x39064d,this['_localStorageService']=_0x8bc3a3,this[_0xb0fa35(0x8c)]=_0x2ffc1a;const {..._0x4e70d2}=_0x2246be({},J,this[_0xb0fa35(0x168)]);this['_configService'][_0xb0fa35(0xe9)](U,_0x4e70d2);}async[_0x2a39ed(0x1a6)](){var _0x4b1be2=_0x2a39ed;[[O],[_],[k]][_0x4b1be2(0x113)](_0x2e2b02=>this['_injector'][_0x4b1be2(0x19b)](_0x2e2b02)),this['_injector'][_0x4b1be2(0x161)](O),this['_injector']['get'](_),this[_0x4b1be2(0x185)][_0x4b1be2(0x161)](k);}};pn(G,_0x2a39ed(0xa0),_0x2a39ed(0x79)),G=fn([_0x4726b7(_0x1cef3b),P(0x1,_0x54fe84(_0x251fc2)),P(0x2,_0x2853c3),P(0x3,_0x4c0dea),P(0x4,_0x122f1b),P(0x5,_0x54fe84(_0x1457f3))],G);export{Xe as MCPConfigPanel,_ as MCPConfigUIController,O as MCPConnectionUIController,rn as MCPStatusDisplay,k as MCPUIMenuController,W as OpenMCPConfigPanelCommand,G as UniverMCPUIPlugin,Nn as enUS,Pn as zhCN};
1
+ var _0x2bc15e=_0x4a13;(function(_0x1c908d,_0x4af0f1){var _0x1f1219=_0x4a13,_0x1c2afe=_0x1c908d();while(!![]){try{var _0xa5ab1=-parseInt(_0x1f1219(0xe6))/0x1*(-parseInt(_0x1f1219(0x12b))/0x2)+parseInt(_0x1f1219(0x1d5))/0x3*(-parseInt(_0x1f1219(0x163))/0x4)+-parseInt(_0x1f1219(0x1be))/0x5*(parseInt(_0x1f1219(0xf7))/0x6)+-parseInt(_0x1f1219(0x151))/0x7*(parseInt(_0x1f1219(0x158))/0x8)+-parseInt(_0x1f1219(0xf6))/0x9*(-parseInt(_0x1f1219(0xde))/0xa)+parseInt(_0x1f1219(0xb1))/0xb*(-parseInt(_0x1f1219(0x115))/0xc)+parseInt(_0x1f1219(0x1ea))/0xd;if(_0xa5ab1===_0x4af0f1)break;else _0x1c2afe['push'](_0x1c2afe['shift']());}catch(_0x284d85){_0x1c2afe['push'](_0x1c2afe['shift']());}}}(_0xb9a7,0x1ff69));var Se=Object[_0x2bc15e(0x12c)],xe=(_0x3cf1e8,_0x42bed1,_0x28a631)=>_0x42bed1 in _0x3cf1e8?Se(_0x3cf1e8,_0x42bed1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28a631}):_0x3cf1e8[_0x42bed1]=_0x28a631,N=(_0x11356a,_0x5f2c4d,_0x579448)=>xe(_0x11356a,typeof _0x5f2c4d!=_0x2bc15e(0xb0)?_0x5f2c4d+'':_0x5f2c4d,_0x579448);import{LocaleService as _0x42fd01,Inject as _0x696855,Injector as _0x3be1cf,IConfigService as _0x5b375f,ILocalStorageService as _0x4948f7,ILogService as _0x4318dc,Disposable as _0x3a1a4d,CommandType as _0x577139,ICommandService as _0x386a7f,DependentOn as _0x302e6f,Plugin as _0x32b180,merge as _0x2b6653}from'@univerjs/core';import{jsxs as _0x5c6a92,jsx as _0x24230c}from'react/jsx-runtime';import{MCPConnectionStatus as _0x16bf1e,MCPConnectionError as _0x3ee0ac,MCPConnectionController as _0x1c16fa,MCP_PLUGIN_CONFIG_KEY as _0x1bb383,UniverMCPPlugin as _0x313ef9}from'@univerjs-pro/mcp';import{Input as _0x3c0492,Button as _0x105395,MessageType as _0x124ece,Tooltip as _0x1b8685,clsx as _0x2ed97f}from'@univerjs/design';import{useDependency as _0x4faa95,useObservable as _0x1ba95b,IUIPartsService as _0x4c65ee,IDialogService as _0x119553,IMessageService as _0x5b4388,ComponentManager as _0x13aeb6,connectInjector as _0x5d4d25,BuiltInUIPart as _0x2c0def,MenuItemType as _0x21bf04,RibbonStartGroup as _0x2510f1,IMenuManagerService as _0x540f9d}from'@univerjs/ui';import{BehaviorSubject as _0xef7aa5}from'rxjs';import{forwardRef as _0x14a2d8,useRef as _0xd5a7c8,createElement as _0x4eaecd,useState as _0x3b5fec,useCallback as _0x292baa}from'react';var d=function(){var _0x5219f5=_0x2bc15e;return d=Object[_0x5219f5(0x167)]||function(_0x4f1f87){var _0x4044e8=_0x5219f5;for(var _0x5918a5,_0x4d2198=0x1,_0x1ac1d4=arguments[_0x4044e8(0xb3)];_0x4d2198<_0x1ac1d4;_0x4d2198++){_0x5918a5=arguments[_0x4d2198];for(var _0xf71fd1 in _0x5918a5)Object[_0x4044e8(0x160)][_0x4044e8(0xdd)][_0x4044e8(0x1a4)](_0x5918a5,_0xf71fd1)&&(_0x4f1f87[_0xf71fd1]=_0x5918a5[_0xf71fd1]);}return _0x4f1f87;},d[_0x5219f5(0xff)](this,arguments);},Ye=function(_0x482872,_0x5676f9){var _0xd08c8d=_0x2bc15e,_0x284b8a={};for(var _0x58c0a9 in _0x482872)Object[_0xd08c8d(0x160)]['hasOwnProperty'][_0xd08c8d(0x1a4)](_0x482872,_0x58c0a9)&&_0x5676f9[_0xd08c8d(0x1e8)](_0x58c0a9)<0x0&&(_0x284b8a[_0x58c0a9]=_0x482872[_0x58c0a9]);if(_0x482872!=null&&typeof Object[_0xd08c8d(0xc7)]==_0xd08c8d(0x170)){for(var _0x2c5293=0x0,_0x58c0a9=Object[_0xd08c8d(0xc7)](_0x482872);_0x2c5293<_0x58c0a9['length'];_0x2c5293++)_0x5676f9[_0xd08c8d(0x1e8)](_0x58c0a9[_0x2c5293])<0x0&&Object[_0xd08c8d(0x160)][_0xd08c8d(0x197)][_0xd08c8d(0x1a4)](_0x482872,_0x58c0a9[_0x2c5293])&&(_0x284b8a[_0x58c0a9[_0x2c5293]]=_0x482872[_0x58c0a9[_0x2c5293]]);}return _0x284b8a;},S=_0x14a2d8(function(_0x2a6e3c,_0x226be1){var _0x1b8daa=_0x2bc15e,_0x479965=_0x2a6e3c[_0x1b8daa(0x180)],_0x1f02a1=_0x2a6e3c['id'],_0x30fece=_0x2a6e3c['className'],_0x50129a=_0x2a6e3c[_0x1b8daa(0x1cd)],_0x3e143f=Ye(_0x2a6e3c,[_0x1b8daa(0x180),'id',_0x1b8daa(0xdf),_0x1b8daa(0x1cd)]),_0x5c27da=_0x1b8daa(0x1d0)[_0x1b8daa(0x138)](_0x1f02a1,'\x20')[_0x1b8daa(0x138)](_0x30fece||'')[_0x1b8daa(0x16e)](),_0x6a2cde=_0xd5a7c8('_'[_0x1b8daa(0x138)](He()));return oe(_0x479965,''[_0x1b8daa(0x138)](_0x1f02a1),{'defIds':_0x479965['defIds'],'idSuffix':_0x6a2cde[_0x1b8daa(0xf1)]},d({'ref':_0x226be1,'className':_0x5c27da},_0x3e143f),_0x50129a);});function oe(_0x27eb02,_0x265275,_0xb9ae67,_0x526e42,_0xe9ebd9){var _0x46b0ca=_0x2bc15e;return _0x4eaecd(_0x27eb02['tag'],d(d({'key':_0x265275},Ve(_0x27eb02,_0xb9ae67,_0xe9ebd9)),_0x526e42),(Fe(_0x27eb02,_0xb9ae67)[_0x46b0ca(0x1b4)]||[])[_0x46b0ca(0x198)](function(_0x5e016d,_0x4b9220){var _0x3d4442=_0x46b0ca;return oe(_0x5e016d,''[_0x3d4442(0x138)](_0x265275,'-')['concat'](_0x27eb02[_0x3d4442(0xbb)],'-')[_0x3d4442(0x138)](_0x4b9220),_0xb9ae67,void 0x0,_0xe9ebd9);}));}function Ve(_0x34fab0,_0x4d7237,_0x3ac8c1){var _0x166701=_0x2bc15e,_0x3acbbd=d({},_0x34fab0[_0x166701(0x1a3)]);_0x3ac8c1!=null&&_0x3ac8c1['colorChannel1']&&_0x3acbbd[_0x166701(0x114)]===_0x166701(0x19e)&&(_0x3acbbd[_0x166701(0x114)]=_0x3ac8c1[_0x166701(0x19e)]),_0x34fab0[_0x166701(0xbb)]===_0x166701(0xe5)&&_0x3acbbd['id']&&(_0x3acbbd['id']=_0x3acbbd['id']+_0x4d7237[_0x166701(0x140)]),Object[_0x166701(0xc0)](_0x3acbbd)['forEach'](function(_0x3d7c16){var _0x596ee9=_0x166701,_0x37da03=_0x3d7c16[0x0],_0x2ce233=_0x3d7c16[0x1];_0x37da03===_0x596ee9(0xe5)&&typeof _0x2ce233==_0x596ee9(0x1b1)&&(_0x3acbbd[_0x37da03]=_0x2ce233[_0x596ee9(0x14f)](/url\(#(.*)\)/,'url(#$1'[_0x596ee9(0x138)](_0x4d7237['idSuffix'],')')));});var _0x30202e=_0x4d7237[_0x166701(0x130)];return!_0x30202e||_0x30202e[_0x166701(0xb3)]===0x0||(_0x34fab0['tag']==='use'&&_0x3acbbd[_0x166701(0x110)]&&(_0x3acbbd[_0x166701(0x110)]=_0x3acbbd[_0x166701(0x110)]+_0x4d7237['idSuffix']),Object[_0x166701(0xc0)](_0x3acbbd)[_0x166701(0xcc)](function(_0x3c39bf){var _0x366da2=_0x166701,_0x3747bc=_0x3c39bf[0x0],_0x4b4f75=_0x3c39bf[0x1];typeof _0x4b4f75=='string'&&(_0x3acbbd[_0x3747bc]=_0x4b4f75[_0x366da2(0x14f)](/url\(#(.*)\)/,_0x366da2(0x1a0)['concat'](_0x4d7237['idSuffix'],')')));})),_0x3acbbd;}function Fe(_0x3740d6,_0x450690){var _0x5ad9eb=_0x2bc15e,_0xe3c58f,_0x3966bd=_0x450690[_0x5ad9eb(0x130)];return!_0x3966bd||_0x3966bd['length']===0x0?_0x3740d6:_0x3740d6[_0x5ad9eb(0xbb)]===_0x5ad9eb(0xad)&&(!((_0xe3c58f=_0x3740d6[_0x5ad9eb(0x1b4)])===null||_0xe3c58f===void 0x0)&&_0xe3c58f[_0x5ad9eb(0xb3)])?d(d({},_0x3740d6),{'children':_0x3740d6[_0x5ad9eb(0x1b4)][_0x5ad9eb(0x198)](function(_0x2997c9){var _0x768ff5=_0x5ad9eb;return typeof _0x2997c9['attrs']['id']==_0x768ff5(0x1b1)&&_0x3966bd&&_0x3966bd['includes'](_0x2997c9[_0x768ff5(0x1a3)]['id'])?d(d({},_0x2997c9),{'attrs':d(d({},_0x2997c9['attrs']),{'id':_0x2997c9[_0x768ff5(0x1a3)]['id']+_0x450690['idSuffix']})}):_0x2997c9;})}):_0x3740d6;}function _0xb9a7(){var _0x5de150=['univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','toString','univerjs-icon\x20univerjs-icon-','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','onStarting','univer-flex-shrink-0\x20univer-text-blue-500','942iuxxpR','Get\x20your\x20API\x20key\x20in\x20seconds','_commandService','open','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','点击连接\x20MCP','API\x20密钥长度至少需要\x2010\x20位','MenuIcon','getItem','substring','MCP\x20Configuration','_mcpCoreConfig$','M5.21243\x205.62036L11.8791\x2012.287','univer-flex-shrink-0\x20univer-text-red-500','Error','OTHERS','\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','DISCONNECTED','mcpConfig.validation.apiKeyTooShort','indexOf','Connected','4273373sfAgfP','univer-text-xs\x20univer-text-gray-500','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','连接信息','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','evenodd','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_messageService','includes','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP\x20状态未知','启用身份验证以获得安全连接','MCP\x20Disconnected','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','MCP:\x20网络错误','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','M0\x200H16V16H0z','mcpStatus.retrying','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','next','add','off-line-icon_clip0_910_343','MCP\x20重连中...','noopener\x20noreferrer','defs','random','SESSION_ID_OCCUPIED','symbol','22wcJNaQ','univer-font-medium','length','hover:univer-opacity-80','mcpConfig.save','label','\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','FAILED','mcpServerUrl','off-line-icon','tag','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpStatus.maxRetriesExceeded','code','mcp.apiKey','entries','getCurrentConfig','_uiPartsService','mcpStatus.failed','mcpStatus.invalidApiKey','univer-text-gray-500','univer-flex\x20univer-items-start\x20univer-gap-3','getOwnPropertySymbols','MCP\x20已断开','_configService','sessionId','_handleConfigure','forEach','Close','mcpConfig.description','RETRYING','mcp-config-dialog','Univer\x20AI\x20控制台','mcpConfig.connectionStatus.retrying','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.serverEndpoint','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','univer-text-white','连接失败','1em','OnLineIcon','path','on-line-icon_clip0_910_349','univer-text-blue-600','hasOwnProperty','1367320ijfmTj','className','get','_initializeMenus','0\x200\x2017\x2017','_componentManager','univer-text-sm\x20univer-font-medium','mask','1327ccmsBf','_localStorageService','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpStatus.missingApiKey','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-bg-gray-500','Save\x20Configuration','MCP\x20已连接','span','show','What\x20is\x20API\x20Key?','current','您的\x20API\x20密钥安全存储在本地存储中','您的\x20API\x20密钥将在此浏览器中本地存储','univer-flex\x20univer-gap-3','保存中...','9wBQJDS','12iyVwXG','mergeMenu','网络连接错误,请检查您的网络连接','CONNECTING','mcpConfig.connectionError.invalidApiKey','_dialogService','svg','服务器端点','apply','mcpConfig.connectionStatus.connected','CONNECTED','0\x200\x2017\x2016','mcpConfig.connectionError.networkError','Click\x20to\x20configure\x20MCP','mcpStatus.sessionOccupied','_loading$','currentColor','MAX_RETRIES_EXCEEDED','univer-text-sm\x20univer-text-gray-500','showDeveloperTools','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','超出最大重试次数,请稍后再试','点击配置\x20MCP','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','xlink:href','getConfig','close','MCP:\x20Max\x20Retries\x20Exceeded','fill','325824IaYMqU','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','subscribeConfigValue$','validateApiKey','univer-flex\x20univer-items-center\x20univer-gap-2','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','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','INVALID_API_KEY','MCP\x20连接中...','_config$','div','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-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.saving','MCP\x20连接失败','javascript:void(0)','_logService','univer-break-all\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-blue-600','mcpStatus.clickToConnect','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-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_initializeCommands','214auQbXh','defineProperty','NONE','help-single','Success','defIds','univer-text-yellow-500','mcpConfig.validation.apiKeyRequired','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','displayName','round','registerCommand','配置保存失败','concat','Connection\x20Failed','pluginName','API\x20key\x20is\x20required','mcpStatus.connecting','MCP\x20Connected','univer-flex\x20univer-items-start\x20univer-gap-2','_config','idSuffix','white','连接中...','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCP\x20Connecting...','_loadStoredApiKey','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Invalid\x20configuration','mcpConfig.apiKeyHint','OffLineIcon','connectionStatus$','mcpStatus.disconnected','UniverIcon','mcpConfig.apiKeyPlaceholder','replace','_initStatusComponent','455NuOAJa','_validateConfig','CheckMarkIcon','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','请输入您的\x20API\x20密钥','Click\x20to\x20connect\x20MCP','check-mark-icon','4664wlCEYg','_connectionController','BUTTON','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_handleConfigSave','univer-bg-red-500','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','prototype','_injector','univer-text-red-500','1576eFOtaM','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','最大重试次数','http://www.w3.org/2000/svg','assign','error','mcpConfig.sessionId','MCP\x20配置','MCPConfigPanel','getOwnPropertyDescriptor','subscribe','trim','_createConfigPanelComponent','function','univer-min-w-0\x20univer-flex-1','disposeWithMe','MCP:\x20无效的\x20API\x20密钥','univer.plus','translate(.97)','MCP\x20Retrying...','Server\x20Endpoint','_initConfigSync','COMMAND','API\x20Key','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','CloseSmallSingle','mcpConfig.connectionStatus.failed','Disconnected','connectionError$','icon','_localeService','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','close-small-single','重连中...','MCP\x20Unknown\x20Status','0\x200\x2016\x2016','off','mcpStatus.networkError','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','\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','showConfigPanel','mcpConfig.validation.invalidApiKey','isValid','mcpConfig.note1','Session\x20ID','mcpConfig.configSaved','_registerComponent','已连接','API\x20密钥无效,请检查您的密钥后重试','MCP:\x20Network\x20Error','几秒钟内获取您的\x20API\x20密钥','MCP\x20Connection\x20Failed','propertyIsEnumerable','map','apiKey','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpConfig.apiApplyInfo.title','MCP_UI_PLUGIN','colorChannel1','mcpStatus.clickToConfigure','url(#$1','bottom','text','attrs','call','NETWORK_ERROR','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','default','univer-flex\x20univer-items-center\x20univer-gap-3','Configuration\x20saved\x20successfully','setConfig','removeItem','univer.ai','mcpConfig.note2','HEADER_MENU','MISSING_API_KEY','univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','string','会话当前被占用,请稍后再试','Enable\x20Authentication','children','M5.21243\x2012.287L11.8791\x205.62036','none','mcpConfig.apiApplyInfo.getStarted','Max\x20Retries','mcpConfig.title','_mcpConnectionController','setItem','启用身份验证','https://console.univer.plus','651515BavGJW','univer-text-gray-400','_menuManagerService','Saving...','\x20-\x20','mcp-ui.config','value','什么是\x20API\x20密钥?','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-flex-1','univer-space-y-3','univer-space-y-5','Configuration\x20Notes:','会话ID','https://console.univer.ai','extend'];_0xb9a7=function(){return _0x5de150;};return _0xb9a7();}function He(){var _0x2883de=_0x2bc15e;return Math[_0x2883de(0xae)]()[_0x2883de(0x1cf)](0x24)[_0x2883de(0x1de)](0x2,0x8);}S['displayName']=_0x2bc15e(0x14d);var We={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':_0x2bc15e(0x166),'fill':_0x2bc15e(0x1b6),'viewBox':_0x2bc15e(0x186),'width':_0x2bc15e(0xd8),'height':_0x2bc15e(0xd8)},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'fill':'currentColor','d':_0x2bc15e(0x1a6),'fillRule':_0x2bc15e(0x99),'clipRule':_0x2bc15e(0x99)}}]},ce=_0x14a2d8(function(_0x36621c,_0x34c4b0){var _0xdaea21=_0x2bc15e;return _0x4eaecd(S,Object[_0xdaea21(0x167)]({},_0x36621c,{'id':_0xdaea21(0x157),'ref':_0x34c4b0,'icon':We}));});ce['displayName']=_0x2bc15e(0x153);var Be={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2bc15e(0x1b6),'viewBox':_0x2bc15e(0xe2),'width':_0x2bc15e(0xd8),'height':_0x2bc15e(0xd8)},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'stroke':'currentColor','d':_0x2bc15e(0x1e1),'strokeLinecap':_0x2bc15e(0x135),'strokeLinejoin':_0x2bc15e(0x135),'strokeWidth':1.33}},{'tag':_0x2bc15e(0xda),'attrs':{'stroke':_0x2bc15e(0x107),'d':_0x2bc15e(0x1b5),'strokeLinecap':'round','strokeLinejoin':_0x2bc15e(0x135),'strokeWidth':1.33}}]},ae=_0x14a2d8(function(_0x1cc74e,_0x2ed140){var _0x518882=_0x2bc15e;return _0x4eaecd(S,Object[_0x518882(0x167)]({},_0x1cc74e,{'id':_0x518882(0x183),'ref':_0x2ed140,'icon':Be}));});ae[_0x2bc15e(0x134)]=_0x2bc15e(0x17c);var ze={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':_0x2bc15e(0x166),'fill':_0x2bc15e(0x1b6),'viewBox':_0x2bc15e(0x186),'width':_0x2bc15e(0xd8),'height':_0x2bc15e(0xd8)},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'fill':_0x2bc15e(0x107),'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':_0x2bc15e(0xda),'attrs':{'fill':_0x2bc15e(0x107),'d':_0x2bc15e(0x11b)}},{'tag':'path','attrs':{'fill':_0x2bc15e(0x107),'d':_0x2bc15e(0x1d9),'fillRule':_0x2bc15e(0x99),'clipRule':'evenodd'}}]},se=_0x14a2d8(function(_0x2db6d1,_0x45938d){var _0x19fd77=_0x2bc15e;return _0x4eaecd(S,Object[_0x19fd77(0x167)]({},_0x2db6d1,{'id':_0x19fd77(0x12e),'ref':_0x45938d,'icon':ze}));});se['displayName']='HelpSingle';var qe={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':_0x2bc15e(0x166),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2bc15e(0xd8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'stroke':_0x2bc15e(0x107),'d':_0x2bc15e(0x128),'strokeLinecap':'round','strokeLinejoin':_0x2bc15e(0x135),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'fill':_0x2bc15e(0x141),'d':_0x2bc15e(0xa5)}}]}]}],'defIds':[_0x2bc15e(0xaa)]},le=_0x14a2d8(function(_0x59cb7c,_0x1d232f){var _0x33c09d=_0x2bc15e;return _0x4eaecd(S,Object[_0x33c09d(0x167)]({},_0x59cb7c,{'id':_0x33c09d(0xba),'ref':_0x1d232f,'icon':qe}));});le['displayName']=_0x2bc15e(0x14a);var Ze={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':_0x2bc15e(0x166),'fill':_0x2bc15e(0x1b6),'viewBox':_0x2bc15e(0x102),'width':_0x2bc15e(0xd8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'stroke':'currentColor','d':_0x2bc15e(0x120),'strokeLinecap':_0x2bc15e(0x135),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2bc15e(0xad),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2bc15e(0xdb)},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'fill':_0x2bc15e(0x141),'d':_0x2bc15e(0xa5),'transform':_0x2bc15e(0x175)}}]}]}],'defIds':[_0x2bc15e(0xdb)]},ue=_0x14a2d8(function(_0x5c4806,_0x12eb99){var _0x3e0b2d=_0x2bc15e;return _0x4eaecd(S,Object[_0x3e0b2d(0x167)]({},_0x5c4806,{'id':'on-line-icon','ref':_0x12eb99,'icon':Ze}));});ue[_0x2bc15e(0x134)]=_0x2bc15e(0xd9);function Xe(_0x3f231b){var _0x472e20=_0x2bc15e,_0x5b60c3,_0x1216b6;const {mcpCoreConfig:_0x8f1215,onSave:_0x57367c,loading:_0x5e10c3=!0x1,config:_0x33e360,connectionStatus$:_0x2d3990,connectionError$:_0x5971e1}=_0x3f231b,_0x4bc80a=_0x4faa95(_0x42fd01),_0xee6450=_0x1ba95b(_0x2d3990,_0x16bf1e[_0x472e20(0x1e6)]),_0x461d26=_0x1ba95b(_0x5971e1,_0x3ee0ac[_0x472e20(0x12d)]),[_0x3371ae,_0x528388]=_0x3b5fec(_0x8f1215['apiKey']||''),_0x3c8cbd=!0x0,_0x32c700=_0x33e360[_0x472e20(0x10a)]&&_0x8f1215['mcpServerUrl']&&(_0x8f1215['mcpServerUrl'][_0x472e20(0x9d)](_0x472e20(0x174))||_0x8f1215[_0x472e20(0xb9)][_0x472e20(0x9d)](_0x472e20(0x1ac))),_0x542826=(_0x5b60c3=_0x8f1215[_0x472e20(0xb9)])==null?void 0x0:_0x5b60c3[_0x472e20(0x9d)]('univer.plus'),_0x5838d8=(_0x1216b6=_0x8f1215[_0x472e20(0xb9)])==null?void 0x0:_0x1216b6['includes']('univer.ai'),_0x3fef88=_0x542826?_0x472e20(0x1bd):_0x472e20(0x1cc),_0x49b9c7=_0x33e360[_0x472e20(0x10a)]&&(_0x542826||_0x5838d8),[_0x2f3515,_0x488b05]=_0x3b5fec(!_0x3371ae['trim']()),_0x38f958=(_0x294c33,_0x5a8216)=>{var _0x15274c=_0x472e20;if(_0x5a8216===_0x3ee0ac[_0x15274c(0x1af)]||_0x5a8216===_0x3ee0ac[_0x15274c(0x11c)])return _0x15274c(0x1ce);switch(_0x294c33){case _0x16bf1e[_0x15274c(0x101)]:return _0x15274c(0x10b);case _0x16bf1e['CONNECTING']:case _0x16bf1e[_0x15274c(0xcf)]:return _0x15274c(0x1ec);case _0x16bf1e['FAILED']:return _0x15274c(0x1ce);default:return _0x15274c(0x147);}},_0x3eaba7=(_0x30e9dd,_0x2238f5)=>{var _0x3d1369=_0x472e20;if(_0x2238f5===_0x3ee0ac['MISSING_API_KEY']||_0x2238f5===_0x3ee0ac['INVALID_API_KEY'])return _0x3d1369(0x15e);switch(_0x30e9dd){case _0x16bf1e[_0x3d1369(0x101)]:return'univer-bg-green-500';case _0x16bf1e['CONNECTING']:case _0x16bf1e[_0x3d1369(0xcf)]:return'univer-bg-blue-500';case _0x16bf1e['FAILED']:return _0x3d1369(0x15e);default:return _0x3d1369(0xeb);}},_0x2ae430=_0x44b57d=>{var _0x4f92a0=_0x472e20;switch(_0x44b57d){case _0x16bf1e[_0x4f92a0(0x101)]:return _0x4bc80a['t'](_0x4f92a0(0x100));case _0x16bf1e[_0x4f92a0(0xfa)]:return _0x4bc80a['t']('mcpConfig.connectionStatus.connecting');case _0x16bf1e[_0x4f92a0(0xb8)]:return _0x4bc80a['t'](_0x4f92a0(0x17d));case _0x16bf1e[_0x4f92a0(0xcf)]:return _0x4bc80a['t'](_0x4f92a0(0xd2));default:return _0x4bc80a['t']('mcpConfig.connectionStatus.disconnected');}},_0x5e82b5=_0x3cf140=>{var _0x72ea2e=_0x472e20;switch(_0x3cf140){case _0x3ee0ac[_0x72ea2e(0x1af)]:return _0x4bc80a['t']('mcpConfig.connectionError.missingApiKey');case _0x3ee0ac['INVALID_API_KEY']:return _0x4bc80a['t'](_0x72ea2e(0xfb));case _0x3ee0ac[_0x72ea2e(0xaf)]:return _0x4bc80a['t']('mcpConfig.connectionError.sessionOccupied');case _0x3ee0ac[_0x72ea2e(0x1a5)]:return _0x4bc80a['t'](_0x72ea2e(0x103));case _0x3ee0ac['MAX_RETRIES_EXCEEDED']:return _0x4bc80a['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x2a7826=_0x292baa(()=>{var _0x55b713=_0x472e20;const _0x239496={..._0x8f1215,'apiKey':_0x3371ae[_0x55b713(0x16e)](),'enableAuth':_0x3c8cbd};_0x57367c(_0x239496);},[_0x8f1215,_0x3371ae,_0x3c8cbd,_0x57367c]),_0x14515a=_0x3371ae[_0x472e20(0x16e)]()[_0x472e20(0xb3)]>0x0;return _0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x9a),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x143),'children':_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x1a8),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x10c),'children':_0x24230c(_0x472e20(0xee),{'className':_0x472e20(0xd6),'children':'⚙'})}),_0x24230c(_0x472e20(0x11f),{'children':_0x24230c('p',{'className':_0x472e20(0x109),'children':_0x4bc80a['t'](_0x472e20(0xce))})})]})}),_0x5c6a92('div',{'className':_0x472e20(0x116),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x18a)+_0x38f958(_0xee6450,_0x461d26)+_0x472e20(0x1c6),'children':_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x119),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x1e5)+_0x3eaba7(_0xee6450,_0x461d26)+_0x472e20(0xb7)}),_0x24230c('span',{'className':_0x472e20(0xe4),'children':_0x2ae430(_0xee6450)})]})}),_0x461d26!==_0x3ee0ac[_0x472e20(0x12d)]&&(_0xee6450===_0x16bf1e[_0x472e20(0xb8)]||_0x461d26===_0x3ee0ac['MISSING_API_KEY']||_0x461d26===_0x3ee0ac[_0x472e20(0x11c)])&&_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x10f),'children':_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x13e),'children':[_0x24230c(_0x472e20(0xee),{'className':_0x472e20(0x1e2),'children':'⚠️'}),_0x24230c('p',{'className':_0x472e20(0xa7),'children':_0x5e82b5(_0x461d26)})]})})]}),_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x182),'children':_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x1c9),'children':[_0x5c6a92('div',{'className':'univer-space-y-2','children':[_0x5c6a92(_0x472e20(0xb6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x24230c(_0x472e20(0xee),{'children':'🔑'}),'\x20',_0x4bc80a['t']('mcpConfig.apiKey'),_0x24230c(_0x472e20(0xee),{'className':'univer-text-red-500','children':'*'}),_0x32c700&&_0x24230c('a',{'href':_0x472e20(0x124),'onClick':()=>_0x488b05(!0x0),'className':_0x472e20(0xd5),'title':_0x4bc80a['t'](_0x472e20(0x19c)),'children':_0x24230c(se,{})})]}),_0x24230c(_0x3c0492,{'type':_0x472e20(0x1a2),'placeholder':_0x4bc80a['t'](_0x472e20(0x14e)),'value':_0x3371ae,'onChange':_0x528388,'disabled':_0x5e10c3,'autoComplete':_0x472e20(0x187)}),_0x24230c('p',{'className':_0x472e20(0x1eb),'children':_0x4bc80a['t'](_0x472e20(0x149))})]}),_0x32c700&&_0x2f3515&&_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x121),'children':[_0x24230c('a',{'href':_0x472e20(0x124),'onClick':()=>_0x488b05(!0x1),'className':'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','title':_0x472e20(0xcd),'children':_0x24230c(ae,{})}),_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x133),'children':[_0x24230c('div',{'className':_0x472e20(0xea),'children':_0x24230c('span',{'className':_0x472e20(0xdc),'children':'🚀'})}),_0x5c6a92('div',{'className':_0x472e20(0x1c7),'children':[_0x24230c('h4',{'className':_0x472e20(0x129),'children':_0x4bc80a['t'](_0x472e20(0x19c))}),_0x24230c('p',{'className':_0x472e20(0x17b),'children':_0x4bc80a['t']('mcpConfig.apiApplyInfo.description')}),_0x24230c(_0x472e20(0x11f),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x49b9c7&&_0x5c6a92('a',{'href':_0x3fef88,'target':'_blank','rel':_0x472e20(0xac),'className':_0x472e20(0x15f),'children':[_0x24230c('span',{'children':'🤖'}),_0x4bc80a['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x24230c(_0x472e20(0xee),{'className':_0x472e20(0x1bf),'children':'↗'})]})}),_0x5c6a92('div',{'className':_0x472e20(0x164),'children':['✨','\x20',_0x4bc80a['t'](_0x472e20(0x1b7))]})]})]})]}),_0x33e360[_0x472e20(0x10a)]&&_0x5c6a92(_0x472e20(0x11f),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x5c6a92('h4',{'className':_0x472e20(0xa4),'children':[_0x24230c(_0x472e20(0xee),{'children':'🔗'}),'\x20',_0x4bc80a['t']('mcpConfig.connectionInfo')]}),_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x1c8),'children':[_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0xc6),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x15b)}),_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x171),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x1b0),'children':_0x4bc80a['t'](_0x472e20(0xd4))}),_0x24230c(_0x472e20(0xbe),{'className':_0x472e20(0x126),'children':_0x8f1215[_0x472e20(0xb9)]})]})]}),_0x5c6a92(_0x472e20(0x11f),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x24230c('div',{'className':_0x472e20(0x15b)}),_0x5c6a92('div',{'className':_0x472e20(0x171),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x1b0),'children':_0x4bc80a['t'](_0x472e20(0x169))}),_0x24230c(_0x472e20(0xbe),{'className':'univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-gray-700','children':_0x8f1215[_0x472e20(0xca)]||_0x472e20(0x1a7)})]})]})]})]}),_0x24230c(_0x105395,{'onClick':_0x2a7826,'disabled':!_0x14515a||_0x5e10c3,'className':_0x472e20(0xa2),'children':_0x5e10c3?_0x5c6a92(_0x472e20(0xee),{'className':_0x472e20(0x119),'children':[_0x24230c(_0x472e20(0xee),{'children':'⟲'}),_0x4bc80a['t'](_0x472e20(0x122))]}):_0x5c6a92(_0x472e20(0xee),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x24230c(ce,{}),_0x4bc80a['t'](_0x472e20(0xb5))]})}),_0x24230c('div',{'className':_0x472e20(0x19a),'children':_0x5c6a92('div',{'className':_0x472e20(0xf4),'children':[_0x24230c('span',{'className':_0x472e20(0x1d4),'children':'💡'}),_0x5c6a92('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0xb2),'children':_0x472e20(0x1ca)}),_0x5c6a92(_0x472e20(0x11f),{'children':['•',_0x4bc80a['t'](_0x472e20(0x18e))]}),_0x5c6a92(_0x472e20(0x11f),{'children':['•',_0x4bc80a['t'](_0x472e20(0x1ad))]})]})]})})]})})]});}function _0x4a13(_0x3c2c4e,_0x4f53cc){var _0xb9a728=_0xb9a7();return _0x4a13=function(_0x4a136f,_0x4e628d){_0x4a136f=_0x4a136f-0x98;var _0xb77cd=_0xb9a728[_0x4a136f];return _0xb77cd;},_0x4a13(_0x3c2c4e,_0x4f53cc);}const U=_0x2bc15e(0x1c3),J={'showDeveloperTools':!0x1};var Je=Object[_0x2bc15e(0x16c)],Qe=(_0x13b28a,_0x2db675,_0x8803fe,_0xe0a68e)=>{for(var _0x5d7f7b=_0xe0a68e>0x1?void 0x0:_0xe0a68e?Je(_0x2db675,_0x8803fe):_0x2db675,_0x45bb5f=_0x13b28a['length']-0x1,_0x121060;_0x45bb5f>=0x0;_0x45bb5f--)(_0x121060=_0x13b28a[_0x45bb5f])&&(_0x5d7f7b=_0x121060(_0x5d7f7b)||_0x5d7f7b);return _0x5d7f7b;},p=(_0x1c07f9,_0x563778)=>(_0x27d8ce,_0xb2c85b)=>_0x563778(_0x27d8ce,_0xb2c85b,_0x1c07f9);const R=_0x2bc15e(0xbf),j=_0x2bc15e(0xd0);let _=class extends _0x3a1a4d{constructor(_0x54f9d4,_0x47eee0,_0x10cc2c,_0x301dbc,_0x11d41f,_0x4c1803,_0x49964b,_0xe9acb4,_0x42b236,_0x56bfb1){var _0x51ecc9=_0x2bc15e;super(),N(this,_0x51ecc9(0x106),new _0xef7aa5(!0x1)),N(this,_0x51ecc9(0x1e0),new _0xef7aa5({})),N(this,_0x51ecc9(0x11e),new _0xef7aa5({})),N(this,'_handleConfigSave',async _0x17c405=>{var _0x546eee=_0x51ecc9;this[_0x546eee(0x106)]['next'](!0x0);try{const _0x3dba22=await this[_0x546eee(0x152)](_0x17c405);if(!_0x3dba22[_0x546eee(0x18d)]){this[_0x546eee(0x9c)][_0x546eee(0xef)]({'type':_0x124ece[_0x546eee(0x1e3)],'content':_0x3dba22['errorMessage']||this[_0x546eee(0x181)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x17c405[_0x546eee(0x199)]?await this[_0x546eee(0xe7)][_0x546eee(0x1bb)](R,_0x17c405['apiKey'][_0x546eee(0x16e)]()):await this[_0x546eee(0xe7)][_0x546eee(0x1ab)](R),this[_0x546eee(0xc9)]['setConfig'](_0x1bb383,{..._0x17c405,'apiKey':_0x17c405[_0x546eee(0x199)][_0x546eee(0x16e)]()}),this[_0x546eee(0x1e0)][_0x546eee(0xa8)]({..._0x17c405,'apiKey':_0x17c405[_0x546eee(0x199)][_0x546eee(0x16e)]()}),this[_0x546eee(0x9c)][_0x546eee(0xef)]({'type':_0x124ece[_0x546eee(0x12f)],'content':this['_localeService']['t'](_0x546eee(0x190))}),setTimeout(()=>{var _0x1feddb=_0x546eee;this[_0x1feddb(0xfc)]['close'](j);},0x320);}catch(_0x257a10){this['_logService'][_0x546eee(0x168)](_0x546eee(0x19b),_0x257a10),this[_0x546eee(0x9c)][_0x546eee(0xef)]({'type':_0x124ece[_0x546eee(0x1e3)],'content':this[_0x546eee(0x181)]['t']('mcpConfig.configError')});}finally{this[_0x546eee(0x106)]['next'](!0x1);}}),(this[_0x51ecc9(0x161)]=_0x54f9d4,this['_uiPartsService']=_0x47eee0,this[_0x51ecc9(0xc9)]=_0x10cc2c,this[_0x51ecc9(0xe7)]=_0x301dbc,this[_0x51ecc9(0xfc)]=_0x11d41f,this[_0x51ecc9(0x9c)]=_0x4c1803,this[_0x51ecc9(0xe3)]=_0x49964b,this[_0x51ecc9(0x181)]=_0xe9acb4,this[_0x51ecc9(0x125)]=_0x42b236,this[_0x51ecc9(0x1ba)]=_0x56bfb1,this['_initConfigSync'](),this[_0x51ecc9(0x145)](),this['_registerComponent']());}[_0x2bc15e(0x18b)](){var _0x89284=_0x2bc15e;this[_0x89284(0xfc)][_0x89284(0x1d8)]({'id':j,'title':{'title':this[_0x89284(0x181)]['t'](_0x89284(0x1b9))},'children':{'label':_0x89284(0x16b)},'width':0x1e0,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0xb95e39=_0x89284;this[_0xb95e39(0xfc)][_0xb95e39(0x112)](j);}});}[_0x2bc15e(0xc1)](){var _0x4c9dea=_0x2bc15e;return this[_0x4c9dea(0x1e0)][_0x4c9dea(0x1c4)];}[_0x2bc15e(0x191)](){var _0x3c7f01=_0x2bc15e;this[_0x3c7f01(0x172)](this[_0x3c7f01(0xe3)]['register'](_0x3c7f01(0x16b),this['_createConfigPanelComponent']()));}[_0x2bc15e(0x16f)](){var _0xb9f49b=_0x2bc15e;return _0x5d4d25(()=>{var _0x460108=_0x4a13,_0x7bc0bf,_0x4bdcd9;return _0x24230c(Xe,{'config':this[_0x460108(0x11e)][_0x460108(0x1c4)],'mcpCoreConfig':this[_0x460108(0x1e0)][_0x460108(0x1c4)],'onSave':this[_0x460108(0x15d)],'loading':this[_0x460108(0x106)]['value'],'connectionStatus$':(_0x7bc0bf=this[_0x460108(0x1ba)])==null?void 0x0:_0x7bc0bf[_0x460108(0x14b)],'connectionError$':(_0x4bdcd9=this[_0x460108(0x1ba)])==null?void 0x0:_0x4bdcd9[_0x460108(0x17f)]});},this[_0xb9f49b(0x161)]);}[_0x2bc15e(0x178)](){var _0x2a9636=_0x2bc15e;this[_0x2a9636(0x172)](this[_0x2a9636(0xc9)][_0x2a9636(0x117)](_0x1bb383)['subscribe'](_0x7e44dc=>{var _0x2caadc=_0x2a9636;this[_0x2caadc(0x1e0)]['next'](_0x7e44dc||{});}));const _0x577355=this[_0x2a9636(0xc9)]['getConfig'](_0x1bb383);this[_0x2a9636(0x1e0)][_0x2a9636(0xa8)](_0x577355||{}),this[_0x2a9636(0x172)](this[_0x2a9636(0xc9)][_0x2a9636(0x117)](U)[_0x2a9636(0x16d)](_0x395fc5=>{var _0x5ec8a7=_0x2a9636;this[_0x5ec8a7(0x11e)]['next'](_0x395fc5||{});}));const _0x1cbb42=this['_configService'][_0x2a9636(0x111)](U);this[_0x2a9636(0x11e)][_0x2a9636(0xa8)](_0x1cbb42||{});}async[_0x2bc15e(0x145)](){var _0x1b886a=_0x2bc15e;const _0x12035b=await this[_0x1b886a(0xe7)][_0x1b886a(0x1dd)](R);if(_0x12035b){const _0x33a07f={...this[_0x1b886a(0x1e0)][_0x1b886a(0x1c4)],'apiKey':_0x12035b};this[_0x1b886a(0xc9)][_0x1b886a(0x1aa)](_0x1bb383,_0x33a07f),this['_mcpCoreConfig$'][_0x1b886a(0xa8)](_0x33a07f);}}async[_0x2bc15e(0x152)](_0x2004c1){var _0x2a3cbb=_0x2bc15e;if(!_0x2004c1[_0x2a3cbb(0x199)]||_0x2004c1['apiKey'][_0x2a3cbb(0x16e)]()[_0x2a3cbb(0xb3)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2a3cbb(0x181)]['t'](_0x2a3cbb(0x132))};if(_0x2004c1[_0x2a3cbb(0x199)][_0x2a3cbb(0x16e)]()[_0x2a3cbb(0xb3)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x2a3cbb(0x1e7))};try{const _0x5bd7cf=await this[_0x2a3cbb(0x161)][_0x2a3cbb(0xe0)](_0x1c16fa)[_0x2a3cbb(0x118)](_0x2004c1[_0x2a3cbb(0x199)]['trim']());return _0x5bd7cf['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x5bd7cf['error']||this[_0x2a3cbb(0x181)]['t'](_0x2a3cbb(0x18c))};}catch(_0x48e4b3){return console['warn'](_0x2a3cbb(0x154),_0x48e4b3),{'isValid':!0x0};}}};_=Qe([p(0x0,_0x696855(_0x3be1cf)),p(0x1,_0x4c65ee),p(0x2,_0x5b375f),p(0x3,_0x4948f7),p(0x4,_0x119553),p(0x5,_0x5b4388),p(0x6,_0x696855(_0x13aeb6)),p(0x7,_0x696855(_0x42fd01)),p(0x8,_0x4318dc),p(0x9,_0x696855(_0x1c16fa))],_);const W={'id':'mcp-ui.command.openConfigPanel','type':_0x577139[_0x2bc15e(0x179)],'handler':async(_0x2dc279,_0x4eedea)=>(_0x2dc279['get'](_)[_0x2bc15e(0x18b)](),!0x0)};function ve(_0x3a3114,_0x5df4cf){var _0x1cbfb8=_0x2bc15e;switch(_0x3a3114){case _0x16bf1e['DISCONNECTED']:return _0x5df4cf===_0x3ee0ac[_0x1cbfb8(0x1af)]?_0x1cbfb8(0xe9):_0x1cbfb8(0x14c);case _0x16bf1e[_0x1cbfb8(0xfa)]:return _0x1cbfb8(0x13c);case _0x16bf1e[_0x1cbfb8(0x101)]:return'mcpStatus.connected';case _0x16bf1e[_0x1cbfb8(0xb8)]:switch(_0x5df4cf){case _0x3ee0ac[_0x1cbfb8(0x11c)]:return _0x1cbfb8(0xc4);case _0x3ee0ac['SESSION_ID_OCCUPIED']:return _0x1cbfb8(0x105);case _0x3ee0ac[_0x1cbfb8(0x1a5)]:return _0x1cbfb8(0x188);case _0x3ee0ac[_0x1cbfb8(0x108)]:return _0x1cbfb8(0xbd);default:return _0x1cbfb8(0xc3);}case _0x16bf1e['RETRYING']:return _0x1cbfb8(0xa6);default:return'mcpStatus.unknown';}}function en(_0x3d6e00,_0x45cb33,_0x4514ef){var _0x284fda=_0x2bc15e;const _0x3f44a=ve(_0x3d6e00,_0x45cb33),_0x31c6b5=_0x4514ef['t'](_0x3f44a);return _0x3d6e00===_0x16bf1e[_0x284fda(0x1e6)]&&_0x45cb33===_0x3ee0ac[_0x284fda(0x1af)]?_0x31c6b5+'\x20-\x20'+_0x4514ef['t'](_0x284fda(0x19f)):_0x3d6e00===_0x16bf1e[_0x284fda(0x101)]?''+_0x31c6b5:_0x3d6e00===_0x16bf1e['DISCONNECTED']||_0x3d6e00===_0x16bf1e[_0x284fda(0xb8)]?_0x31c6b5+_0x284fda(0x1c2)+_0x4514ef['t'](_0x284fda(0x127)):_0x31c6b5;}function nn(_0x124c3a){var _0xe3b959=_0x2bc15e;switch(_0x124c3a){case _0x16bf1e[_0xe3b959(0x101)]:return'univer-text-green-500';case _0x16bf1e['CONNECTING']:case _0x16bf1e[_0xe3b959(0xcf)]:return _0xe3b959(0x131);case _0x16bf1e[_0xe3b959(0xb8)]:case _0x16bf1e[_0xe3b959(0x1e6)]:return _0xe3b959(0x162);default:return _0xe3b959(0xc5);}}function rn(_0x52f633){var _0x10ff69=_0x2bc15e;const {status$:_0x3e171d,error$:_0x26b3a8,onConfigure:_0x366dd3}=_0x52f633,_0x5b3ea6=_0x1ba95b(_0x3e171d,_0x16bf1e[_0x10ff69(0x1e6)]),_0x3726ae=_0x1ba95b(_0x26b3a8,_0x3ee0ac[_0x10ff69(0x12d)]),_0x442625=_0x4faa95(_0x42fd01),_0x410766=_0x5b3ea6===_0x16bf1e[_0x10ff69(0x101)],_0x172ab0=_0x5b3ea6===_0x16bf1e['CONNECTING']||_0x5b3ea6===_0x16bf1e['RETRYING'],_0x263ed5=_0x442625['t'](ve(_0x5b3ea6,_0x3726ae)),_0x50fa0f=en(_0x5b3ea6,_0x3726ae,_0x442625),_0x35ec1c=nn(_0x5b3ea6),_0x1228c8=_0x410766?_0x24230c(ue,{}):_0x24230c(le,{}),_0x332dcd=_0x292baa(()=>{_0x366dd3&&_0x366dd3();},[_0x410766,_0x172ab0,_0x366dd3]);function _0x5e4aef(){var _0x3e6028=_0x10ff69;return _0x5c6a92('div',{'className':_0x2ed97f('univer-flex\x20univer-cursor-pointer\x20univer-items-center',_0x366dd3&&_0x3e6028(0xb4)),'onClick':_0x366dd3?_0x332dcd:void 0x0,'children':[_0x24230c(_0x3e6028(0x11f),{'className':_0x2ed97f(_0x3e6028(0x146),_0x35ec1c),'children':_0x1228c8}),_0x24230c(_0x3e6028(0x11f),{'className':_0x3e6028(0x9b),'children':_0x263ed5})]});}return _0x24230c(_0x1b8685,{'title':_0x50fa0f,'placement':_0x10ff69(0x1a1),'children':_0x5e4aef()});}var tn=Object[_0x2bc15e(0x16c)],on=(_0x5ec685,_0x21eb4d,_0x2d874f,_0x4aeb20)=>{for(var _0x42fe3b=_0x4aeb20>0x1?void 0x0:_0x4aeb20?tn(_0x21eb4d,_0x2d874f):_0x21eb4d,_0x469424=_0x5ec685['length']-0x1,_0x12ea9b;_0x469424>=0x0;_0x469424--)(_0x12ea9b=_0x5ec685[_0x469424])&&(_0x42fe3b=_0x12ea9b(_0x42fe3b)||_0x42fe3b);return _0x42fe3b;},L=(_0x66acf5,_0x3c5bc4)=>(_0x93f0c7,_0x574090)=>_0x3c5bc4(_0x93f0c7,_0x574090,_0x66acf5);let O=class extends _0x3a1a4d{constructor(_0x1c819b,_0x45b4a3,_0x10db4a){var _0x243697=_0x2bc15e;super(),this[_0x243697(0x161)]=_0x1c819b,this[_0x243697(0x159)]=_0x45b4a3,this['_uiPartsService']=_0x10db4a,this['_initStatusComponent']();}[_0x2bc15e(0x150)](){var _0x3f001d=_0x2bc15e;this[_0x3f001d(0x172)](this[_0x3f001d(0xc2)]['registerComponent'](_0x2c0def[_0x3f001d(0x1ae)],()=>_0x5d4d25(cn({'status$':this[_0x3f001d(0x159)][_0x3f001d(0x14b)],'error$':this[_0x3f001d(0x159)][_0x3f001d(0x17f)],'onConfigure':()=>this[_0x3f001d(0xcb)]()}),this['_injector'])));}[_0x2bc15e(0xcb)](){var _0x43e7ab=_0x2bc15e;this[_0x43e7ab(0x161)][_0x43e7ab(0xe0)](_)[_0x43e7ab(0x18b)]();}};O=on([L(0x0,_0x696855(_0x3be1cf)),L(0x1,_0x696855(_0x1c16fa)),L(0x2,_0x4c65ee)],O);function cn(_0x4cc40f){const {status$:_0x23c6e8,error$:_0x411ba6,onConfigure:_0x12d8ce}=_0x4cc40f;return function(){return _0x24230c(rn,{'status$':_0x23c6e8,'error$':_0x411ba6,'onConfigure':_0x12d8ce});};}function an(_0xc167dc){var _0x566401=_0x2bc15e;return{'id':W['id'],'type':_0x21bf04[_0x566401(0x15a)],'icon':_0x566401(0x1dc),'title':_0x566401(0x1b9),'tooltip':_0x566401(0x1b9)};}const sn={[_0x2510f1[_0x2bc15e(0x1e4)]]:{[W['id']]:{'order':0xa,'menuItemFactory':an}}};var ln=Object[_0x2bc15e(0x16c)],un=(_0xe38c1e,_0x240cb4,_0x2d7844,_0x35e426)=>{var _0x25e83f=_0x2bc15e;for(var _0x3e4827=_0x35e426>0x1?void 0x0:_0x35e426?ln(_0x240cb4,_0x2d7844):_0x240cb4,_0x15a12b=_0xe38c1e[_0x25e83f(0xb3)]-0x1,_0x1323d5;_0x15a12b>=0x0;_0x15a12b--)(_0x1323d5=_0xe38c1e[_0x15a12b])&&(_0x3e4827=_0x1323d5(_0x3e4827)||_0x3e4827);return _0x3e4827;},Q=(_0x49f3be,_0x45cb5a)=>(_0x5601fd,_0x471979)=>_0x45cb5a(_0x5601fd,_0x471979,_0x49f3be);let k=class extends _0x3a1a4d{constructor(_0x171f40,_0x11ada6){var _0x10ef46=_0x2bc15e;super(),this['_commandService']=_0x171f40,this['_menuManagerService']=_0x11ada6,this['_initializeCommands'](),this[_0x10ef46(0xe1)]();}[_0x2bc15e(0x12a)](){var _0x8ea2d6=_0x2bc15e;[W][_0x8ea2d6(0xcc)](_0xe27650=>{var _0x47f6a6=_0x8ea2d6;this[_0x47f6a6(0x172)](this[_0x47f6a6(0x1d7)][_0x47f6a6(0x136)](_0xe27650));});}['_initializeMenus'](){var _0x2dd2ff=_0x2bc15e;this[_0x2dd2ff(0x1c0)][_0x2dd2ff(0xf8)](sn);}};k=un([Q(0x0,_0x386a7f),Q(0x1,_0x540f9d)],k);const Nn={'mcpStatus':{'disconnected':_0x2bc15e(0xa1),'connecting':_0x2bc15e(0x144),'connected':_0x2bc15e(0x13d),'failed':_0x2bc15e(0x196),'retrying':_0x2bc15e(0x176),'unknown':_0x2bc15e(0x185),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x2bc15e(0x194),'maxRetriesExceeded':_0x2bc15e(0x113),'clickToConnect':_0x2bc15e(0x156),'clickToConfigure':_0x2bc15e(0x104)},'mcpConfig':{'title':_0x2bc15e(0x1df),'description':_0x2bc15e(0xe8),'apiKey':_0x2bc15e(0x17a),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2bc15e(0x11a),'enableAuth':_0x2bc15e(0x1b3),'enableAuthHint':_0x2bc15e(0xd3),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x2bc15e(0x177),'sessionId':_0x2bc15e(0x18f),'maxRetries':_0x2bc15e(0x1b8),'save':_0x2bc15e(0xec),'saving':_0x2bc15e(0x1c1),'note1':_0x2bc15e(0x15c),'note2':_0x2bc15e(0x1d1),'configSaved':_0x2bc15e(0x1a9),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x2bc15e(0xf0),'description':_0x2bc15e(0x1d2),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2bc15e(0x1d6)},'validation':{'apiKeyRequired':_0x2bc15e(0x13b),'apiKeyTooShort':_0x2bc15e(0x189),'invalidConfig':_0x2bc15e(0x148),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x2bc15e(0x17e),'connecting':'Connecting...','connected':_0x2bc15e(0x1e9),'failed':_0x2bc15e(0x139),'retrying':'Retrying...'},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x2bc15e(0x98),'maxRetriesExceeded':_0x2bc15e(0xbc)}}},Pn={'mcpStatus':{'disconnected':_0x2bc15e(0xc8),'connecting':_0x2bc15e(0x11d),'connected':_0x2bc15e(0xed),'failed':_0x2bc15e(0x123),'retrying':_0x2bc15e(0xab),'unknown':_0x2bc15e(0x9f),'missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':_0x2bc15e(0x173),'sessionOccupied':'MCP:\x20会话被占用','networkError':_0x2bc15e(0xa3),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x2bc15e(0x1da),'clickToConfigure':_0x2bc15e(0x10e)},'mcpConfig':{'title':_0x2bc15e(0x16a),'description':_0x2bc15e(0x9e),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x2bc15e(0x155),'apiKeyHint':_0x2bc15e(0xf3),'enableAuth':_0x2bc15e(0x1bc),'enableAuthHint':_0x2bc15e(0xa0),'connectionInfo':_0x2bc15e(0x1ed),'serverEndpoint':_0x2bc15e(0xfe),'sessionId':_0x2bc15e(0x1cb),'maxRetries':_0x2bc15e(0x165),'save':'保存配置','saving':_0x2bc15e(0xf5),'note1':'配置更改将立即生效','note2':_0x2bc15e(0xf2),'configSaved':'配置保存成功','configError':_0x2bc15e(0x137),'apiApplyInfo':{'title':_0x2bc15e(0x1c5),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x2bc15e(0xd1),'getStarted':_0x2bc15e(0x195)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x2bc15e(0x1db),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x2bc15e(0x142),'connected':_0x2bc15e(0x192),'failed':_0x2bc15e(0xd7),'retrying':_0x2bc15e(0x184)},'connectionError':{'missingApiKey':'需要\x20API\x20密钥才能连接','invalidApiKey':_0x2bc15e(0x193),'sessionOccupied':_0x2bc15e(0x1b2),'networkError':_0x2bc15e(0xf9),'maxRetriesExceeded':_0x2bc15e(0x10d)}}};var vn=Object[_0x2bc15e(0x12c)],dn=Object[_0x2bc15e(0x16c)],gn=(_0x26084d,_0x41051a,_0x375115)=>_0x41051a in _0x26084d?vn(_0x26084d,_0x41051a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x375115}):_0x26084d[_0x41051a]=_0x375115,fn=(_0x339b79,_0x4dfa09,_0x42e682,_0x27b699)=>{var _0x390f9d=_0x2bc15e;for(var _0x475250=_0x27b699>0x1?void 0x0:_0x27b699?dn(_0x4dfa09,_0x42e682):_0x4dfa09,_0x2f2932=_0x339b79[_0x390f9d(0xb3)]-0x1,_0x4283fe;_0x2f2932>=0x0;_0x2f2932--)(_0x4283fe=_0x339b79[_0x2f2932])&&(_0x475250=_0x4283fe(_0x475250)||_0x475250);return _0x475250;},P=(_0xf847aa,_0x114b14)=>(_0x9da604,_0xffe549)=>_0x114b14(_0x9da604,_0xffe549,_0xf847aa),pn=(_0x1f2992,_0x715050,_0x2a2192)=>gn(_0x1f2992,_0x715050+'',_0x2a2192);let G=class extends _0x32b180{constructor(_0x2e974a=J,_0x3cacae,_0x4db2b0,_0x4efc30,_0x55cf76,_0x1380dc){var _0x2ceaa2=_0x2bc15e;super(),this[_0x2ceaa2(0x13f)]=_0x2e974a,this[_0x2ceaa2(0x161)]=_0x3cacae,this[_0x2ceaa2(0xc9)]=_0x4db2b0,this[_0x2ceaa2(0xc2)]=_0x4efc30,this[_0x2ceaa2(0xe7)]=_0x55cf76,this[_0x2ceaa2(0x181)]=_0x1380dc;const {..._0x498038}=_0x2b6653({},J,this[_0x2ceaa2(0x13f)]);this[_0x2ceaa2(0xc9)][_0x2ceaa2(0x1aa)](U,_0x498038);}async[_0x2bc15e(0x1d3)](){var _0x1c2276=_0x2bc15e;[[O],[_],[k]][_0x1c2276(0xcc)](_0x244deb=>this[_0x1c2276(0x161)][_0x1c2276(0xa9)](_0x244deb)),this[_0x1c2276(0x161)][_0x1c2276(0xe0)](O),this['_injector'][_0x1c2276(0xe0)](_),this[_0x1c2276(0x161)][_0x1c2276(0xe0)](k);}};pn(G,_0x2bc15e(0x13a),_0x2bc15e(0x19d)),G=fn([_0x302e6f(_0x313ef9),P(0x1,_0x696855(_0x3be1cf)),P(0x2,_0x5b375f),P(0x3,_0x4c65ee),P(0x4,_0x4948f7),P(0x5,_0x696855(_0x42fd01))],G);export{Xe as MCPConfigPanel,_ as MCPConfigUIController,O as MCPConnectionUIController,rn as MCPStatusDisplay,k as MCPUIMenuController,W as OpenMCPConfigPanelCommand,G as UniverMCPUIPlugin,Nn as enUS,Pn as zhCN};
@@ -1 +1 @@
1
- function _0x1704(_0x204b72,_0x2d688a){const _0x3adf84=_0x3adf();return _0x1704=function(_0x1704ad,_0xc49438){_0x1704ad=_0x1704ad-0x11c;let _0x420ed9=_0x3adf84[_0x1704ad];return _0x420ed9;},_0x1704(_0x204b72,_0x2d688a);}const _0x39a21b=_0x1704;(function(_0x4fb602,_0x52edc7){const _0x452ea7=_0x1704,_0x5b5322=_0x4fb602();while(!![]){try{const _0x35d789=-parseInt(_0x452ea7(0x124))/0x1*(-parseInt(_0x452ea7(0x11d))/0x2)+parseInt(_0x452ea7(0x142))/0x3*(parseInt(_0x452ea7(0x13e))/0x4)+-parseInt(_0x452ea7(0x141))/0x5*(parseInt(_0x452ea7(0x130))/0x6)+-parseInt(_0x452ea7(0x125))/0x7*(-parseInt(_0x452ea7(0x120))/0x8)+parseInt(_0x452ea7(0x11f))/0x9+parseInt(_0x452ea7(0x122))/0xa+-parseInt(_0x452ea7(0x14a))/0xb*(parseInt(_0x452ea7(0x126))/0xc);if(_0x35d789===_0x52edc7)break;else _0x5b5322['push'](_0x5b5322['shift']());}catch(_0x3af848){_0x5b5322['push'](_0x5b5322['shift']());}}}(_0x3adf,0x6684e));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x39a21b(0x145),'connected':_0x39a21b(0x12a),'failed':'MCP\x20Connection\x20Failed','retrying':_0x39a21b(0x132),'unknown':_0x39a21b(0x12e),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x39a21b(0x134),'sessionOccupied':_0x39a21b(0x12f),'networkError':_0x39a21b(0x133),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x39a21b(0x11c),'clickToConfigure':_0x39a21b(0x12d)},'mcpConfig':{'title':_0x39a21b(0x13c),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x39a21b(0x138),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x39a21b(0x121),'enableAuth':_0x39a21b(0x149),'enableAuthHint':_0x39a21b(0x13d),'connectionInfo':_0x39a21b(0x143),'serverEndpoint':_0x39a21b(0x13f),'sessionId':_0x39a21b(0x140),'maxRetries':_0x39a21b(0x144),'save':'Save\x20Configuration','saving':_0x39a21b(0x146),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x39a21b(0x11e),'configError':_0x39a21b(0x127),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x39a21b(0x147),'univerAiLabel':_0x39a21b(0x13b),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x39a21b(0x128),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x39a21b(0x131),'invalidApiKey':_0x39a21b(0x148)},'connectionStatus':{'disconnected':_0x39a21b(0x137),'connecting':_0x39a21b(0x123),'connected':'Connected','failed':_0x39a21b(0x13a),'retrying':_0x39a21b(0x12b)},'connectionError':{'missingApiKey':_0x39a21b(0x136),'invalidApiKey':_0x39a21b(0x12c),'sessionOccupied':_0x39a21b(0x135),'networkError':_0x39a21b(0x139),'maxRetriesExceeded':_0x39a21b(0x129)}}},n=e;export{n as default};function _0x3adf(){const _0x501029=['Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','API\x20key\x20is\x20required\x20to\x20connect','Disconnected','API\x20Key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connection\x20Failed','Univer\x20AI\x20Console','MCP\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','834468SwJWAw','Server\x20Endpoint','Session\x20ID','85kNRPue','6yjqTLY','Connection\x20Information','Max\x20Retries','MCP\x20Connecting...','Saving...','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','Enable\x20Authentication','121SakjCv','Click\x20to\x20connect\x20MCP','1112EasnBj','Configuration\x20saved\x20successfully','146259tZPjOM','100000oSDbLr','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','3908540AMlwUb','Connecting...','503lzyDri','203xnmgCW','713352kNXxKz','Failed\x20to\x20save\x20configuration','API\x20key\x20is\x20required','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connected','Retrying...','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Click\x20to\x20configure\x20MCP','MCP\x20Unknown\x20Status','MCP:\x20Session\x20Occupied','138594TvXIXD','Invalid\x20configuration','MCP\x20Retrying...','MCP:\x20Network\x20Error','MCP:\x20Invalid\x20API\x20Key'];_0x3adf=function(){return _0x501029;};return _0x3adf();}
1
+ const _0x48e7df=_0x43c6;function _0x43c6(_0x18d380,_0x57289f){const _0xa43804=_0xa438();return _0x43c6=function(_0x43c64b,_0x53f7fd){_0x43c64b=_0x43c64b-0x183;let _0x4d460a=_0xa43804[_0x43c64b];return _0x4d460a;},_0x43c6(_0x18d380,_0x57289f);}(function(_0x33591c,_0x43fb94){const _0x44d81d=_0x43c6,_0x15917e=_0x33591c();while(!![]){try{const _0x2d3daa=-parseInt(_0x44d81d(0x1af))/0x1*(-parseInt(_0x44d81d(0x1ae))/0x2)+-parseInt(_0x44d81d(0x1b2))/0x3*(-parseInt(_0x44d81d(0x1a0))/0x4)+parseInt(_0x44d81d(0x19b))/0x5+parseInt(_0x44d81d(0x184))/0x6+-parseInt(_0x44d81d(0x197))/0x7*(parseInt(_0x44d81d(0x18b))/0x8)+-parseInt(_0x44d81d(0x188))/0x9*(-parseInt(_0x44d81d(0x1ad))/0xa)+-parseInt(_0x44d81d(0x1ab))/0xb;if(_0x2d3daa===_0x43fb94)break;else _0x15917e['push'](_0x15917e['shift']());}catch(_0x36fd41){_0x15917e['push'](_0x15917e['shift']());}}}(_0xa438,0x316be));const e={'mcpStatus':{'disconnected':_0x48e7df(0x192),'connecting':_0x48e7df(0x187),'connected':_0x48e7df(0x191),'failed':_0x48e7df(0x19e),'retrying':_0x48e7df(0x18a),'unknown':_0x48e7df(0x1a5),'missingApiKey':_0x48e7df(0x1a1),'invalidApiKey':_0x48e7df(0x19c),'sessionOccupied':_0x48e7df(0x1b0),'networkError':_0x48e7df(0x18c),'maxRetriesExceeded':_0x48e7df(0x1a4),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x48e7df(0x1b1)},'mcpConfig':{'title':_0x48e7df(0x195),'description':_0x48e7df(0x18e),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x48e7df(0x1a2),'apiKeyHint':_0x48e7df(0x1a9),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x48e7df(0x18f),'connectionInfo':'Connection\x20Information','serverEndpoint':'Server\x20Endpoint','sessionId':_0x48e7df(0x1a3),'maxRetries':'Max\x20Retries','save':_0x48e7df(0x19d),'saving':_0x48e7df(0x183),'note1':_0x48e7df(0x19a),'note2':_0x48e7df(0x193),'configSaved':_0x48e7df(0x18d),'configError':_0x48e7df(0x1b3),'apiApplyInfo':{'title':_0x48e7df(0x198),'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':_0x48e7df(0x185),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x48e7df(0x194),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x48e7df(0x1aa),'invalidApiKey':_0x48e7df(0x190)},'connectionStatus':{'disconnected':_0x48e7df(0x199),'connecting':_0x48e7df(0x186),'connected':_0x48e7df(0x189),'failed':'Connection\x20Failed','retrying':_0x48e7df(0x1ac)},'connectionError':{'missingApiKey':_0x48e7df(0x19f),'invalidApiKey':_0x48e7df(0x1a6),'sessionOccupied':_0x48e7df(0x196),'networkError':_0x48e7df(0x1a7),'maxRetriesExceeded':_0x48e7df(0x1a8)}}},n=e;export{n as default};function _0xa438(){const _0x30aa7f=['Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20configuration','1313587eOSICO','Retrying...','10AZCqxO','88024YgRsHe','4GtTQHl','MCP:\x20Session\x20Occupied','Click\x20to\x20configure\x20MCP','341505XsvvNI','Failed\x20to\x20save\x20configuration','Saving...','1161522nSdLvB','Univer\x20AI\x20Console','Connecting...','MCP\x20Connecting...','961407bbFYYX','Connected','MCP\x20Retrying...','8VGNUqr','MCP:\x20Network\x20Error','Configuration\x20saved\x20successfully','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connected','MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20is\x20required','MCP\x20Configuration','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','2031729Tbcfjn','What\x20is\x20API\x20Key?','Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','109005frBEIq','MCP:\x20Invalid\x20API\x20Key','Save\x20Configuration','MCP\x20Connection\x20Failed','API\x20key\x20is\x20required\x20to\x20connect','4ueDItv','MCP:\x20API\x20Key\x20Missing','Enter\x20your\x20API\x20key','Session\x20ID','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Unknown\x20Status','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again'];_0xa438=function(){return _0x30aa7f;};return _0xa438();}
@@ -1 +1 @@
1
- function _0x2f5d(_0x3b64cd,_0x9e439e){const _0x8d8757=_0x8d87();return _0x2f5d=function(_0x2f5d11,_0x533dd0){_0x2f5d11=_0x2f5d11-0xc1;let _0x404c4f=_0x8d8757[_0x2f5d11];return _0x404c4f;},_0x2f5d(_0x3b64cd,_0x9e439e);}const _0x53427e=_0x2f5d;(function(_0x2d272b,_0x35b2bd){const _0x355356=_0x2f5d,_0x585995=_0x2d272b();while(!![]){try{const _0x53732a=parseInt(_0x355356(0xdd))/0x1*(parseInt(_0x355356(0xe6))/0x2)+-parseInt(_0x355356(0xc4))/0x3+-parseInt(_0x355356(0xc5))/0x4*(-parseInt(_0x355356(0xcd))/0x5)+parseInt(_0x355356(0xe4))/0x6*(-parseInt(_0x355356(0xc7))/0x7)+-parseInt(_0x355356(0xc2))/0x8+parseInt(_0x355356(0xd3))/0x9*(-parseInt(_0x355356(0xe8))/0xa)+parseInt(_0x355356(0xd4))/0xb*(parseInt(_0x355356(0xde))/0xc);if(_0x53732a===_0x35b2bd)break;else _0x585995['push'](_0x585995['shift']());}catch(_0x1ab298){_0x585995['push'](_0x585995['shift']());}}}(_0x8d87,0xbcaa1));const e={'mcpStatus':{'disconnected':_0x53427e(0xeb),'connecting':'MCP\x20Connecting...','connected':_0x53427e(0xd0),'failed':_0x53427e(0xdc),'retrying':_0x53427e(0xc1),'unknown':_0x53427e(0xce),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x53427e(0xdb),'sessionOccupied':_0x53427e(0xc3),'networkError':_0x53427e(0xd8),'maxRetriesExceeded':_0x53427e(0xed),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x53427e(0xf0),'description':_0x53427e(0xe0),'apiKey':_0x53427e(0xd5),'apiKeyPlaceholder':_0x53427e(0xcf),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x53427e(0xee),'enableAuthHint':_0x53427e(0xc6),'connectionInfo':'Connection\x20Information','serverEndpoint':'Server\x20Endpoint','sessionId':_0x53427e(0xe2),'maxRetries':'Max\x20Retries','save':_0x53427e(0xd6),'saving':_0x53427e(0xd9),'note1':_0x53427e(0xd7),'note2':_0x53427e(0xd1),'configSaved':_0x53427e(0xca),'configError':_0x53427e(0xda),'apiApplyInfo':{'title':_0x53427e(0xc8),'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':_0x53427e(0xd2),'getStarted':_0x53427e(0xec)},'validation':{'apiKeyRequired':_0x53427e(0xf1),'apiKeyTooShort':_0x53427e(0xe3),'invalidConfig':_0x53427e(0xef),'invalidApiKey':_0x53427e(0xe9)},'connectionStatus':{'disconnected':_0x53427e(0xea),'connecting':_0x53427e(0xcb),'connected':_0x53427e(0xc9),'failed':'Connection\x20Failed','retrying':_0x53427e(0xe5)},'connectionError':{'missingApiKey':_0x53427e(0xcc),'invalidApiKey':_0x53427e(0xe7),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x53427e(0xe1),'maxRetriesExceeded':_0x53427e(0xdf)}}};function _0x8d87(){const _0x4d7fc3=['Saving...','Failed\x20to\x20save\x20configuration','MCP:\x20Invalid\x20API\x20Key','MCP\x20Connection\x20Failed','4129YfclOy','50197716LujFcE','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session\x20ID','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','60570WNYjAX','Retrying...','212HnqZnG','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','151770zZgWBo','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Disconnected','MCP\x20Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Max\x20Retries\x20Exceeded','Enable\x20Authentication','Invalid\x20configuration','MCP\x20Configuration','API\x20key\x20is\x20required','MCP\x20Retrying...','9415848IHTLtY','MCP:\x20Session\x20Occupied','4587405WLCsuK','452kxPTXg','Enable\x20authentication\x20for\x20secure\x20connections','581KcoBqk','What\x20is\x20API\x20Key?','Connected','Configuration\x20saved\x20successfully','Connecting...','API\x20key\x20is\x20required\x20to\x20connect','33555GJcrLh','MCP\x20Unknown\x20Status','Enter\x20your\x20API\x20key','MCP\x20Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Univer\x20AI\x20Console','630Wyjsbg','11yXExwm','API\x20Key','Save\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Network\x20Error'];_0x8d87=function(){return _0x4d7fc3;};return _0x8d87();}export{e as default};
1
+ const _0x35d79c=_0x56ad;function _0x56ad(_0x118c8b,_0x55c21f){const _0x4644ed=_0x4644();return _0x56ad=function(_0x56ada2,_0x31c732){_0x56ada2=_0x56ada2-0x13f;let _0x52da08=_0x4644ed[_0x56ada2];return _0x52da08;},_0x56ad(_0x118c8b,_0x55c21f);}(function(_0x53366b,_0x4d075b){const _0x51f5c7=_0x56ad,_0x1109f2=_0x53366b();while(!![]){try{const _0x2b1e21=-parseInt(_0x51f5c7(0x143))/0x1*(-parseInt(_0x51f5c7(0x163))/0x2)+parseInt(_0x51f5c7(0x151))/0x3+parseInt(_0x51f5c7(0x15e))/0x4*(-parseInt(_0x51f5c7(0x141))/0x5)+parseInt(_0x51f5c7(0x148))/0x6*(-parseInt(_0x51f5c7(0x164))/0x7)+-parseInt(_0x51f5c7(0x150))/0x8+-parseInt(_0x51f5c7(0x166))/0x9+parseInt(_0x51f5c7(0x15d))/0xa;if(_0x2b1e21===_0x4d075b)break;else _0x1109f2['push'](_0x1109f2['shift']());}catch(_0x35a1a0){_0x1109f2['push'](_0x1109f2['shift']());}}}(_0x4644,0x68e05));const e={'mcpStatus':{'disconnected':_0x35d79c(0x144),'connecting':_0x35d79c(0x14d),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x35d79c(0x142),'missingApiKey':_0x35d79c(0x14e),'invalidApiKey':_0x35d79c(0x158),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x35d79c(0x13f),'clickToConnect':_0x35d79c(0x167),'clickToConfigure':_0x35d79c(0x157)},'mcpConfig':{'title':_0x35d79c(0x14b),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x35d79c(0x161),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x35d79c(0x15a),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x35d79c(0x168),'serverEndpoint':_0x35d79c(0x147),'sessionId':_0x35d79c(0x162),'maxRetries':_0x35d79c(0x165),'save':'Save\x20Configuration','saving':_0x35d79c(0x154),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x35d79c(0x153),'configError':_0x35d79c(0x15b),'apiApplyInfo':{'title':_0x35d79c(0x169),'description':_0x35d79c(0x156),'univerAiLabel':_0x35d79c(0x14a),'getStarted':_0x35d79c(0x145)},'validation':{'apiKeyRequired':_0x35d79c(0x146),'apiKeyTooShort':_0x35d79c(0x14f),'invalidConfig':_0x35d79c(0x160),'invalidApiKey':_0x35d79c(0x15c)},'connectionStatus':{'disconnected':_0x35d79c(0x15f),'connecting':_0x35d79c(0x159),'connected':'Connected','failed':_0x35d79c(0x155),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x35d79c(0x140),'invalidApiKey':_0x35d79c(0x14c),'sessionOccupied':_0x35d79c(0x152),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x35d79c(0x149)}}};export{e as default};function _0x4644(){const _0x5bbc78=['254UEetGh','4971169jNhwju','Max\x20Retries','1809828pAevnq','Click\x20to\x20connect\x20MCP','Connection\x20Information','What\x20is\x20API\x20Key?','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20is\x20required\x20to\x20connect','5FrDLCq','MCP\x20Unknown\x20Status','6028oafFqC','MCP\x20Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20is\x20required','Server\x20Endpoint','6IpGIcR','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Univer\x20AI\x20Console','MCP\x20Configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP\x20Connecting...','MCP:\x20API\x20Key\x20Missing','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','945720uEGNDg','715059VsZPfi','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','Saving...','Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20configure\x20MCP','MCP:\x20Invalid\x20API\x20Key','Connecting...','Enable\x20Authentication','Failed\x20to\x20save\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','11926210FwYWYA','2949932VLxZKG','Disconnected','Invalid\x20configuration','Enter\x20your\x20API\x20key','Session\x20ID'];_0x4644=function(){return _0x5bbc78;};return _0x4644();}