@univerjs-pro/mcp-ui 0.10.9-nightly.202509260614 → 0.10.10-experimental.20251010-3f807c5

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 +9 -9
@@ -1 +1 @@
1
- 'use strict';const _0x314b87=_0x3ed9;(function(_0x4e1e8a,_0x2ddcda){const _0x11e217=_0x3ed9,_0x2b3a5f=_0x4e1e8a();while(!![]){try{const _0x264f00=parseInt(_0x11e217(0x20f))/0x1*(parseInt(_0x11e217(0x206))/0x2)+-parseInt(_0x11e217(0x20b))/0x3+parseInt(_0x11e217(0x1fa))/0x4+parseInt(_0x11e217(0x21f))/0x5+-parseInt(_0x11e217(0x21a))/0x6*(parseInt(_0x11e217(0x1f4))/0x7)+-parseInt(_0x11e217(0x209))/0x8+parseInt(_0x11e217(0x20c))/0x9;if(_0x264f00===_0x2ddcda)break;else _0x2b3a5f['push'](_0x2b3a5f['shift']());}catch(_0x9e91a){_0x2b3a5f['push'](_0x2b3a5f['shift']());}}}(_0x4db1,0xe3ee7));function _0x4db1(){const _0x17832e=['What\x20is\x20API\x20Key?','518RzXESv','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connecting...','API\x20key\x20is\x20required','1418496kWYxDy','Click\x20to\x20connect\x20MCP','exports','Connected','Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Network\x20Error','MCP\x20Client\x20Configuration','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','Invalid\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','1140086cRsCQT','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','5583600CrkUEB','MCP\x20Configuration','3152442yEizUw','28471518qqgYdG','API\x20Key','MCP:\x20Session\x20ID\x20Occupied','1laFSvy','Saving...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Unauthorized','Univer\x20AI\x20Console','Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Copy\x20the\x20JSON\x20configuration\x20below','147474igQxTF','Click\x20to\x20configure\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connecting...','Enable\x20Authentication','2065240TXBtNn','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Failed\x20to\x20save\x20configuration'];_0x4db1=function(){return _0x17832e;};return _0x4db1();}function _0x3ed9(_0x5530a7,_0x482335){const _0x4db1f7=_0x4db1();return _0x3ed9=function(_0x3ed907,_0x44ac2c){_0x3ed907=_0x3ed907-0x1f2;let _0x424550=_0x4db1f7[_0x3ed907];return _0x424550;},_0x3ed9(_0x5530a7,_0x482335);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x314b87(0x21d),'connected':_0x314b87(0x1f5),'failed':_0x314b87(0x208),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x314b87(0x214),'sessionOccupied':_0x314b87(0x20e),'networkError':_0x314b87(0x200),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x314b87(0x1fb),'clickToConfigure':_0x314b87(0x21b)},'mcpConfig':{'title':_0x314b87(0x20a),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x314b87(0x20d),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x314b87(0x21e),'enableAuthHint':_0x314b87(0x213),'connectionInfo':_0x314b87(0x201),'mcpClientConfig':_0x314b87(0x201),'configInstructions':_0x314b87(0x211),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x314b87(0x219),'configStep2':_0x314b87(0x1ff),'configStep3':_0x314b87(0x1f7),'sessionId':_0x314b87(0x202),'sessionIdDescription':_0x314b87(0x212),'authorizationDescription':_0x314b87(0x203),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x314b87(0x210),'note1':_0x314b87(0x218),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x314b87(0x1f2),'apiApplyInfo':{'title':_0x314b87(0x1f3),'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':_0x314b87(0x215),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x314b87(0x1f9),'apiKeyTooShort':_0x314b87(0x1f6),'invalidConfig':_0x314b87(0x204),'invalidApiKey':_0x314b87(0x205)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x314b87(0x1f8),'connected':_0x314b87(0x1fd),'failed':_0x314b87(0x1fe),'retrying':_0x314b87(0x216)},'connectionError':{'unauthorized':_0x314b87(0x217),'sessionOccupied':_0x314b87(0x21c),'networkError':_0x314b87(0x220),'maxRetriesExceeded':_0x314b87(0x207)}}},n=e;module[_0x314b87(0x1fc)]=n;
1
+ 'use strict';function _0x578c(_0x56c7d7,_0x4a0496){const _0x8a2923=_0x8a29();return _0x578c=function(_0x578c0f,_0x2030cd){_0x578c0f=_0x578c0f-0x91;let _0x5ce6da=_0x8a2923[_0x578c0f];return _0x5ce6da;},_0x578c(_0x56c7d7,_0x4a0496);}function _0x8a29(){const _0x44a822=['Configuration\x20Steps:','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','What\x20is\x20API\x20Key?','API\x20key\x20is\x20required','API\x20key\x20with\x20Bearer\x20prefix.','1006532HTPHLM','Disconnected','Invalid\x20configuration','Saving...','18yiJhRj','Click\x20to\x20configure\x20MCP','Univer\x20AI\x20Console','Get\x20your\x20API\x20key\x20in\x20seconds','Enable\x20Authentication','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connected','297tnaoiV','MCP\x20Connection\x20Failed','Connected','Max\x20Retries','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Save\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20saved\x20successfully','MCP\x20Connecting...','62mbmdWE','API\x20Key','MCP:\x20Unauthorized','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','5816ouMybP','198860wQbqev','2833218qPNChb','Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Network\x20Error','Failed\x20to\x20save\x20configuration','exports','Enable\x20authentication\x20for\x20secure\x20connections','7DmxDXL','MCP\x20Unknown\x20Status','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Session\x20ID\x20Occupied','Retrying...','7569580fXdyHn','MCP\x20Client\x20Configuration','9452920lVgFpQ','MCP:\x20Max\x20Retries\x20Exceeded','Session\x20ID','13958739JHUWAs'];_0x8a29=function(){return _0x44a822;};return _0x8a29();}const _0x9d0c59=_0x578c;(function(_0x1f2b22,_0x76c61){const _0xeed2d2=_0x578c,_0x271280=_0x1f2b22();while(!![]){try{const _0x2accc1=-parseInt(_0xeed2d2(0xb2))/0x1*(-parseInt(_0xeed2d2(0xb8))/0x2)+-parseInt(_0xeed2d2(0xa2))/0x3*(parseInt(_0xeed2d2(0x9e))/0x4)+-parseInt(_0xeed2d2(0x92))/0x5+parseInt(_0xeed2d2(0xba))/0x6+-parseInt(_0xeed2d2(0xc1))/0x7*(-parseInt(_0xeed2d2(0x94))/0x8)+parseInt(_0xeed2d2(0x97))/0x9+parseInt(_0xeed2d2(0xb9))/0xa*(parseInt(_0xeed2d2(0xa9))/0xb);if(_0x2accc1===_0x76c61)break;else _0x271280['push'](_0x271280['shift']());}catch(_0x5bb6f9){_0x271280['push'](_0x271280['shift']());}}}(_0x8a29,0xdb4f5));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x9d0c59(0xb1),'connected':_0x9d0c59(0xa8),'failed':_0x9d0c59(0xaa),'retrying':_0x9d0c59(0x99),'unknown':_0x9d0c59(0xc2),'unauthorized':_0x9d0c59(0xb4),'sessionOccupied':_0x9d0c59(0xc4),'networkError':_0x9d0c59(0xbd),'maxRetriesExceeded':_0x9d0c59(0x95),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x9d0c59(0xa3)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x9d0c59(0xc3),'apiKey':_0x9d0c59(0xb3),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x9d0c59(0xbc),'enableAuth':_0x9d0c59(0xa6),'enableAuthHint':_0x9d0c59(0xc0),'connectionInfo':_0x9d0c59(0x93),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x9d0c59(0x98),'configStep1':_0x9d0c59(0xaf),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x9d0c59(0x96),'sessionIdDescription':_0x9d0c59(0xb7),'authorizationDescription':_0x9d0c59(0x9d),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x9d0c59(0xac),'save':_0x9d0c59(0xae),'saving':_0x9d0c59(0xa1),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x9d0c59(0xb6),'configSaved':_0x9d0c59(0xb0),'configError':_0x9d0c59(0xbe),'apiApplyInfo':{'title':_0x9d0c59(0x9b),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x9d0c59(0xa4),'getStarted':_0x9d0c59(0xa5)},'validation':{'apiKeyRequired':_0x9d0c59(0x9c),'apiKeyTooShort':_0x9d0c59(0xb5),'invalidConfig':_0x9d0c59(0xa0),'invalidApiKey':_0x9d0c59(0xad)},'connectionStatus':{'disconnected':_0x9d0c59(0x9f),'connecting':'Connecting...','connected':_0x9d0c59(0xab),'failed':_0x9d0c59(0xbb),'retrying':_0x9d0c59(0x91)},'connectionError':{'unauthorized':_0x9d0c59(0xa7),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x9d0c59(0x9a),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x9d0c59(0xbf)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x23c14b=_0x34ab;function _0x34ab(_0x4193c8,_0x498ebe){const _0xc2927e=_0xc292();return _0x34ab=function(_0x34ab54,_0x39bf12){_0x34ab54=_0x34ab54-0x112;let _0x50cd6e=_0xc2927e[_0x34ab54];return _0x50cd6e;},_0x34ab(_0x4193c8,_0x498ebe);}(function(_0x2ff52c,_0x363fa3){const _0x47a127=_0x34ab,_0x3519ce=_0x2ff52c();while(!![]){try{const _0x181b4a=-parseInt(_0x47a127(0x132))/0x1*(-parseInt(_0x47a127(0x125))/0x2)+parseInt(_0x47a127(0x128))/0x3*(parseInt(_0x47a127(0x116))/0x4)+parseInt(_0x47a127(0x119))/0x5*(-parseInt(_0x47a127(0x139))/0x6)+-parseInt(_0x47a127(0x13b))/0x7*(-parseInt(_0x47a127(0x124))/0x8)+parseInt(_0x47a127(0x117))/0x9+parseInt(_0x47a127(0x140))/0xa*(parseInt(_0x47a127(0x12a))/0xb)+parseInt(_0x47a127(0x12e))/0xc*(-parseInt(_0x47a127(0x141))/0xd);if(_0x181b4a===_0x363fa3)break;else _0x3519ce['push'](_0x3519ce['shift']());}catch(_0x1e02e4){_0x3519ce['push'](_0x3519ce['shift']());}}}(_0xc292,0x50d66));function _0xc292(){const _0x1a1bc9=['MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20configure\x20MCP','Failed\x20to\x20save\x20configuration','6VXFPRn','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','15176kIlMRx','Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20configuration','MCP\x20Disconnected','20QHgxfs','65xADjSt','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Steps:','API\x20key\x20is\x20required','Configuration\x20saved\x20successfully','MCP\x20Connecting...','Enter\x20your\x20API\x20key','Connection\x20Failed','Configuration\x20Parameters:','What\x20is\x20API\x20Key?','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','746792XCZSjV','3452373XWKRBf','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','188990FxsZMk','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','exports','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Client\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','Max\x20Retries','Saving...','MCP:\x20Network\x20Error','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','1576xmYOtp','12dZnpHs','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','6vxPlfh','Univer\x20AI\x20Console','29095TZnSTv','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20with\x20Bearer\x20prefix.','Connected','2194188yeHLGI','Click\x20to\x20connect\x20MCP','Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','15629nqKxYO','MCP\x20Retrying...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'];_0xc292=function(){return _0x1a1bc9;};return _0xc292();}const e={'mcpStatus':{'disconnected':_0x23c14b(0x13f),'connecting':_0x23c14b(0x146),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x23c14b(0x133),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x23c14b(0x135),'networkError':_0x23c14b(0x122),'maxRetriesExceeded':_0x23c14b(0x136),'clickToConnect':_0x23c14b(0x12f),'clickToConfigure':_0x23c14b(0x137)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x23c14b(0x147),'apiKeyHint':_0x23c14b(0x123),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x23c14b(0x126),'connectionInfo':_0x23c14b(0x11e),'mcpClientConfig':_0x23c14b(0x11e),'configInstructions':_0x23c14b(0x11b),'configStepTitle':_0x23c14b(0x143),'configStep1':_0x23c14b(0x11f),'configStep2':_0x23c14b(0x11d),'configStep3':_0x23c14b(0x11a),'sessionId':'Session\x20ID','sessionIdDescription':_0x23c14b(0x131),'authorizationDescription':_0x23c14b(0x12c),'configParameters':_0x23c14b(0x113),'maxRetries':_0x23c14b(0x120),'save':'Save\x20Configuration','saving':_0x23c14b(0x121),'note1':_0x23c14b(0x127),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x23c14b(0x145),'configError':_0x23c14b(0x138),'apiApplyInfo':{'title':_0x23c14b(0x114),'description':_0x23c14b(0x142),'univerAiLabel':_0x23c14b(0x129),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x23c14b(0x144),'apiKeyTooShort':_0x23c14b(0x118),'invalidConfig':_0x23c14b(0x13e),'invalidApiKey':_0x23c14b(0x134)},'connectionStatus':{'disconnected':_0x23c14b(0x130),'connecting':'Connecting...','connected':_0x23c14b(0x12d),'failed':_0x23c14b(0x112),'retrying':_0x23c14b(0x13c)},'connectionError':{'unauthorized':_0x23c14b(0x13a),'sessionOccupied':_0x23c14b(0x115),'networkError':_0x23c14b(0x13d),'maxRetriesExceeded':_0x23c14b(0x12b)}}},n=e;module[_0x23c14b(0x11c)]=n;
1
+ 'use strict';const _0x2161e5=_0x44e3;(function(_0x21676d,_0x2ac256){const _0x2dc192=_0x44e3,_0xe1707c=_0x21676d();while(!![]){try{const _0x19769e=parseInt(_0x2dc192(0x19f))/0x1*(parseInt(_0x2dc192(0x18f))/0x2)+-parseInt(_0x2dc192(0x1b0))/0x3*(-parseInt(_0x2dc192(0x19c))/0x4)+parseInt(_0x2dc192(0x1af))/0x5+-parseInt(_0x2dc192(0x199))/0x6*(parseInt(_0x2dc192(0x18c))/0x7)+parseInt(_0x2dc192(0x191))/0x8+-parseInt(_0x2dc192(0x194))/0x9*(parseInt(_0x2dc192(0x18e))/0xa)+parseInt(_0x2dc192(0x1b1))/0xb*(-parseInt(_0x2dc192(0x19a))/0xc);if(_0x19769e===_0x2ac256)break;else _0xe1707c['push'](_0xe1707c['shift']());}catch(_0x33f083){_0xe1707c['push'](_0xe1707c['shift']());}}}(_0x40df,0x2422c));const e={'mcpStatus':{'disconnected':_0x2161e5(0x19e),'connecting':_0x2161e5(0x1b6),'connected':_0x2161e5(0x1a4),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x2161e5(0x1a7),'unauthorized':_0x2161e5(0x1b7),'sessionOccupied':_0x2161e5(0x1a8),'networkError':_0x2161e5(0x18d),'maxRetriesExceeded':_0x2161e5(0x1ad),'clickToConnect':_0x2161e5(0x186),'clickToConfigure':_0x2161e5(0x182)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2161e5(0x18b),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2161e5(0x195),'apiKeyHint':_0x2161e5(0x198),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x2161e5(0x19d),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x2161e5(0x1b3),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x2161e5(0x1b5),'configStep2':_0x2161e5(0x19b),'configStep3':_0x2161e5(0x1b8),'sessionId':'Session\x20ID','sessionIdDescription':_0x2161e5(0x196),'authorizationDescription':_0x2161e5(0x185),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x2161e5(0x1ab),'save':_0x2161e5(0x188),'saving':_0x2161e5(0x184),'note1':_0x2161e5(0x1a9),'note2':_0x2161e5(0x1b4),'configSaved':_0x2161e5(0x192),'configError':_0x2161e5(0x190),'apiApplyInfo':{'title':_0x2161e5(0x1b2),'description':_0x2161e5(0x1aa),'univerAiLabel':_0x2161e5(0x193),'getStarted':_0x2161e5(0x1ac)},'validation':{'apiKeyRequired':_0x2161e5(0x1b9),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x2161e5(0x1a1),'invalidApiKey':_0x2161e5(0x1a2)},'connectionStatus':{'disconnected':_0x2161e5(0x187),'connecting':_0x2161e5(0x18a),'connected':_0x2161e5(0x197),'failed':_0x2161e5(0x1a0),'retrying':_0x2161e5(0x1ae)},'connectionError':{'unauthorized':_0x2161e5(0x1a5),'sessionOccupied':_0x2161e5(0x1a3),'networkError':_0x2161e5(0x189),'maxRetriesExceeded':_0x2161e5(0x1a6)}}},n=e;module[_0x2161e5(0x183)]=n;function _0x44e3(_0xf98868,_0x141751){const _0x40df6a=_0x40df();return _0x44e3=function(_0x44e3e1,_0xf5c35c){_0x44e3e1=_0x44e3e1-0x182;let _0x12f4ee=_0x40df6a[_0x44e3e1];return _0x12f4ee;},_0x44e3(_0xf98868,_0x141751);}function _0x40df(){const _0x52d22a=['2hvEURE','Failed\x20to\x20save\x20configuration','929992apGpZf','Configuration\x20saved\x20successfully','Univer\x20AI\x20Console','109206FBLjRn','Enter\x20your\x20API\x20key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','6PuSwbz','12gXziQQ','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','20cxHsLS','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Disconnected','95830loleeH','Connection\x20Failed','Invalid\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Max\x20Retries','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Max\x20Retries\x20Exceeded','Retrying...','367865QjrjSV','130824aRKVOP','1057573xMZlrq','What\x20is\x20API\x20Key?','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connecting...','MCP:\x20Unauthorized','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','exports','Saving...','API\x20key\x20with\x20Bearer\x20prefix.','Click\x20to\x20connect\x20MCP','Disconnected','Save\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','1307131KUmgZt','MCP:\x20Network\x20Error','60MjrPsU'];_0x40df=function(){return _0x52d22a;};return _0x40df();}
@@ -1 +1 @@
1
- 'use strict';const _0x4248e8=_0x141d;(function(_0x378e8f,_0x716612){const _0x3c420e=_0x141d,_0x1f4f9b=_0x378e8f();while(!![]){try{const _0xe0f7e6=-parseInt(_0x3c420e(0x9f))/0x1*(-parseInt(_0x3c420e(0xbd))/0x2)+-parseInt(_0x3c420e(0xaa))/0x3+-parseInt(_0x3c420e(0xa0))/0x4+-parseInt(_0x3c420e(0xab))/0x5+-parseInt(_0x3c420e(0xc5))/0x6+parseInt(_0x3c420e(0xbe))/0x7*(-parseInt(_0x3c420e(0xc6))/0x8)+parseInt(_0x3c420e(0xaf))/0x9*(parseInt(_0x3c420e(0xa6))/0xa);if(_0xe0f7e6===_0x716612)break;else _0x1f4f9b['push'](_0x1f4f9b['shift']());}catch(_0x479369){_0x1f4f9b['push'](_0x1f4f9b['shift']());}}}(_0x2310,0x3042a));function _0x2310(){const _0x5107b6=['MCP\x20Retrying...','MCP\x20Unknown\x20Status','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','What\x20is\x20API\x20Key?','MCP\x20Disconnected','Enable\x20Authentication','184073YpMbDX','895516QSmKGk','Configuration\x20Steps:','Connecting...','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','50UpDOXa','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','892224NtgmfK','1956940XHijGB','Get\x20your\x20API\x20key\x20in\x20seconds','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','2338047hAyNcs','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key','Connection\x20Failed','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','Click\x20to\x20connect\x20MCP','Saving...','Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','2aIRzeo','19803vUSgmx','Save\x20Configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connected','API\x20key\x20is\x20required','1862406vpcPEZ','176ZucYaz','Copy\x20the\x20JSON\x20configuration\x20below','Univer\x20AI\x20Console'];_0x2310=function(){return _0x5107b6;};return _0x2310();}const e={'mcpStatus':{'disconnected':_0x4248e8(0x9d),'connecting':'MCP\x20Connecting...','connected':_0x4248e8(0xc3),'failed':_0x4248e8(0xc1),'retrying':_0x4248e8(0xc9),'unknown':_0x4248e8(0xca),'unauthorized':_0x4248e8(0xb1),'sessionOccupied':_0x4248e8(0xa3),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4248e8(0xcb),'clickToConnect':_0x4248e8(0xb8),'clickToConfigure':_0x4248e8(0xa9)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x4248e8(0xb3),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x4248e8(0xa8),'enableAuth':_0x4248e8(0x9e),'enableAuthHint':_0x4248e8(0xb2),'connectionInfo':_0x4248e8(0xa4),'mcpClientConfig':_0x4248e8(0xa4),'configInstructions':_0x4248e8(0xc0),'configStepTitle':_0x4248e8(0xa1),'configStep1':_0x4248e8(0xc7),'configStep2':_0x4248e8(0xbb),'configStep3':_0x4248e8(0xae),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4248e8(0xbc),'maxRetries':'Max\x20Retries','save':_0x4248e8(0xbf),'saving':_0x4248e8(0xb9),'note1':_0x4248e8(0xb5),'note2':_0x4248e8(0xcc),'configSaved':_0x4248e8(0xa5),'configError':_0x4248e8(0xb7),'apiApplyInfo':{'title':_0x4248e8(0xcd),'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':_0x4248e8(0xc8),'getStarted':_0x4248e8(0xac)},'validation':{'apiKeyRequired':_0x4248e8(0xc4),'apiKeyTooShort':_0x4248e8(0xc2),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x4248e8(0xb6)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4248e8(0xa2),'connected':_0x4248e8(0xba),'failed':_0x4248e8(0xb4),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x4248e8(0xb0),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4248e8(0xa7),'maxRetriesExceeded':_0x4248e8(0xad)}}},n=e;function _0x141d(_0x56bf9b,_0x151617){const _0x23100e=_0x2310();return _0x141d=function(_0x141dd0,_0x16d1bd){_0x141dd0=_0x141dd0-0x9d;let _0x381316=_0x23100e[_0x141dd0];return _0x381316;},_0x141d(_0x56bf9b,_0x151617);}module['exports']=n;
1
+ 'use strict';const _0x146c34=_0x3246;(function(_0x5bb070,_0x3ec424){const _0x54e9dd=_0x3246,_0x162b17=_0x5bb070();while(!![]){try{const _0x45d870=-parseInt(_0x54e9dd(0x11e))/0x1*(-parseInt(_0x54e9dd(0x12c))/0x2)+parseInt(_0x54e9dd(0x12b))/0x3*(-parseInt(_0x54e9dd(0x13a))/0x4)+parseInt(_0x54e9dd(0x130))/0x5+-parseInt(_0x54e9dd(0x117))/0x6*(-parseInt(_0x54e9dd(0x115))/0x7)+-parseInt(_0x54e9dd(0x132))/0x8*(parseInt(_0x54e9dd(0x116))/0x9)+-parseInt(_0x54e9dd(0x119))/0xa*(-parseInt(_0x54e9dd(0x125))/0xb)+-parseInt(_0x54e9dd(0x135))/0xc;if(_0x45d870===_0x3ec424)break;else _0x162b17['push'](_0x162b17['shift']());}catch(_0x1b71b8){_0x162b17['push'](_0x162b17['shift']());}}}(_0x5852,0x31440));const e={'mcpStatus':{'disconnected':_0x146c34(0x110),'connecting':'MCP\x20Connecting...','connected':_0x146c34(0x129),'failed':'MCP\x20Connection\x20Failed','retrying':_0x146c34(0x12a),'unknown':_0x146c34(0x12f),'unauthorized':_0x146c34(0x120),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x146c34(0x13b),'clickToConnect':_0x146c34(0x11c),'clickToConfigure':_0x146c34(0x11d)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x146c34(0x13c),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x146c34(0x136),'enableAuth':_0x146c34(0x128),'enableAuthHint':_0x146c34(0x122),'connectionInfo':_0x146c34(0x123),'mcpClientConfig':_0x146c34(0x123),'configInstructions':_0x146c34(0x134),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x146c34(0x111),'configStep2':_0x146c34(0x12e),'configStep3':_0x146c34(0x114),'sessionId':_0x146c34(0x138),'sessionIdDescription':_0x146c34(0x121),'authorizationDescription':_0x146c34(0x126),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x146c34(0x133),'save':_0x146c34(0x13e),'saving':_0x146c34(0x118),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x146c34(0x10f),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x146c34(0x12d),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x146c34(0x11a),'univerAiLabel':_0x146c34(0x131),'getStarted':_0x146c34(0x124)},'validation':{'apiKeyRequired':_0x146c34(0x113),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x146c34(0x112),'invalidApiKey':_0x146c34(0x11b)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x146c34(0x13d),'failed':_0x146c34(0x127),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x146c34(0x139),'networkError':_0x146c34(0x137),'maxRetriesExceeded':_0x146c34(0x11f)}}},n=e;module['exports']=n;function _0x3246(_0x5cf9da,_0x369997){const _0x585252=_0x5852();return _0x3246=function(_0x3246ad,_0x8b51a2){_0x3246ad=_0x3246ad-0x10f;let _0x18ae6a=_0x585252[_0x3246ad];return _0x18ae6a;},_0x3246(_0x5cf9da,_0x369997);}function _0x5852(){const _0x345975=['Click\x20to\x20configure\x20MCP','179kakicJ','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Unauthorized','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','178079eadvVT','API\x20key\x20with\x20Bearer\x20prefix.','Connection\x20Failed','Enable\x20Authentication','MCP\x20Connected','MCP\x20Retrying...','6063YvxVui','112oyEZbK','Failed\x20to\x20save\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Unknown\x20Status','1995520UOmcru','Univer\x20AI\x20Console','8kTQdLr','Max\x20Retries','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','2422200NuGEcc','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session\x20ID','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','356ijQQyP','MCP:\x20Max\x20Retries\x20Exceeded','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connected','Save\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Disconnected','Copy\x20the\x20JSON\x20configuration\x20below','Invalid\x20configuration','API\x20key\x20is\x20required','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','21HEojxW','287649SDqiZV','380310NYLVbK','Saving...','10rqrSJL','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20connect\x20MCP'];_0x5852=function(){return _0x345975;};return _0x5852();}
@@ -1 +1 @@
1
- 'use strict';const _0x27cbe1=_0x10dd;(function(_0x28dbe1,_0x3d3c80){const _0x397693=_0x10dd,_0x2e9a53=_0x28dbe1();while(!![]){try{const _0x199db5=parseInt(_0x397693(0xb5))/0x1+-parseInt(_0x397693(0xb0))/0x2+-parseInt(_0x397693(0xcf))/0x3*(-parseInt(_0x397693(0xbe))/0x4)+parseInt(_0x397693(0xc4))/0x5*(parseInt(_0x397693(0xd2))/0x6)+-parseInt(_0x397693(0xcb))/0x7*(parseInt(_0x397693(0xbb))/0x8)+parseInt(_0x397693(0xaa))/0x9*(parseInt(_0x397693(0xd0))/0xa)+parseInt(_0x397693(0xcd))/0xb*(parseInt(_0x397693(0xcc))/0xc);if(_0x199db5===_0x3d3c80)break;else _0x2e9a53['push'](_0x2e9a53['shift']());}catch(_0xbb6eda){_0x2e9a53['push'](_0x2e9a53['shift']());}}}(_0x4915,0x932fe));function _0x10dd(_0x473caf,_0x2cccc2){const _0x491503=_0x4915();return _0x10dd=function(_0x10dde9,_0x220a6e){_0x10dde9=_0x10dde9-0xa3;let _0x3902d6=_0x491503[_0x10dde9];return _0x3902d6;},_0x10dd(_0x473caf,_0x2cccc2);}const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x27cbe1(0xbf),'failed':'MCP\x20连接失败','retrying':'MCP\x20重连中...','unknown':_0x27cbe1(0xc7),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x27cbe1(0xb9),'networkError':_0x27cbe1(0xad),'maxRetriesExceeded':_0x27cbe1(0xd3),'clickToConnect':_0x27cbe1(0xd4),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x27cbe1(0xa4),'description':_0x27cbe1(0xbd),'apiKey':_0x27cbe1(0xc1),'apiKeyPlaceholder':_0x27cbe1(0xc8),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x27cbe1(0xa9),'enableAuthHint':_0x27cbe1(0xa3),'connectionInfo':_0x27cbe1(0xa7),'mcpClientConfig':_0x27cbe1(0xa7),'configInstructions':_0x27cbe1(0xb3),'configStepTitle':'配置步骤:','configStep1':_0x27cbe1(0xb8),'configStep2':_0x27cbe1(0xca),'configStep3':_0x27cbe1(0xac),'sessionId':'会话ID','sessionIdDescription':_0x27cbe1(0xb2),'authorizationDescription':_0x27cbe1(0xa5),'configParameters':_0x27cbe1(0xbc),'maxRetries':'最大重试次数','save':'保存配置','saving':_0x27cbe1(0xc2),'note1':_0x27cbe1(0xab),'note2':_0x27cbe1(0xb6),'configSaved':_0x27cbe1(0xc6),'configError':_0x27cbe1(0xa8),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x27cbe1(0xc9),'univerAiLabel':_0x27cbe1(0xae),'getStarted':_0x27cbe1(0xb7)},'validation':{'apiKeyRequired':_0x27cbe1(0xc5),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x27cbe1(0xd1),'invalidApiKey':_0x27cbe1(0xb4)},'connectionStatus':{'disconnected':'未连接','connecting':_0x27cbe1(0xb1),'connected':_0x27cbe1(0xaf),'failed':_0x27cbe1(0xc0),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x27cbe1(0xc3),'sessionOccupied':_0x27cbe1(0xa6),'networkError':_0x27cbe1(0xba),'maxRetriesExceeded':_0x27cbe1(0xce)}}};function _0x4915(){const _0x8c60f=['API\x20密钥不能为空','配置保存成功','MCP\x20状态未知','请输入您的\x20API\x20密钥','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','将配置添加到您的\x20MCP\x20客户端设置文件中','42154NjrDEo','9507516irIQCo','11ZugNSL','超出最大重试次数,请稍后再试','6786gABxWf','3030bcyqai','配置无效','18SbIbBv','MCP:\x20超出最大重试次数','点击连接\x20MCP','启用身份验证以获得安全连接','MCP\x20配置','带有\x20Bearer\x20前缀的\x20API\x20密钥。','会话\x20ID\x20已被占用,请稍后再试','MCP\x20客户端配置','配置保存失败','启用身份验证','4761OuVPvs','配置更改将立即生效','重启您的\x20MCP\x20客户端以使配置生效','MCP:\x20网络错误','Univer\x20AI\x20控制台','已连接','1975960fPLnnG','连接中...','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','将以下配置添加到您的\x20MCP\x20客户端设置中:','API\x20密钥无效,请检查密钥是否正确','1110924ClYtTD','您的\x20API\x20密钥安全存储在本地存储中','几秒钟内获取您的\x20API\x20密钥','复制以下\x20JSON\x20配置','MCP:\x20会话\x20ID\x20已被占用','网络连接错误,请检查您的网络连接','1576MzUsrf','配置参数:','配置\x20MCP\x20使用\x20AI\x20操作电子表格','140lKJDPh','MCP\x20已连接','连接失败','API\x20密钥','保存中...','权限验证失败,请检查您的\x20API\x20密钥','1057530QdYBly'];_0x4915=function(){return _0x8c60f;};return _0x4915();}module['exports']=e;
1
+ 'use strict';const _0x28954d=_0x25b4;(function(_0x585e9d,_0x1a1216){const _0x452017=_0x25b4,_0x5ba475=_0x585e9d();while(!![]){try{const _0x122703=-parseInt(_0x452017(0x174))/0x1*(-parseInt(_0x452017(0x17c))/0x2)+parseInt(_0x452017(0x177))/0x3*(parseInt(_0x452017(0x155))/0x4)+parseInt(_0x452017(0x153))/0x5+-parseInt(_0x452017(0x157))/0x6+-parseInt(_0x452017(0x164))/0x7+-parseInt(_0x452017(0x182))/0x8+-parseInt(_0x452017(0x17b))/0x9;if(_0x122703===_0x1a1216)break;else _0x5ba475['push'](_0x5ba475['shift']());}catch(_0x2f28d8){_0x5ba475['push'](_0x5ba475['shift']());}}}(_0xf774,0xc7879));function _0xf774(){const _0x44f9c4=['请输入您的\x20API\x20密钥','MCP\x20客户端配置','5996416XXtQGd','API\x20密钥','启用身份验证','您的\x20API\x20密钥将在此浏览器中本地存储','5974115uhOoej','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','144916FSRlRy','超出最大重试次数,请稍后再试','6122496kRQKSe','网络连接错误,请检查您的网络连接','重启您的\x20MCP\x20客户端以使配置生效','配置保存失败','配置更改将立即生效','配置无效','您的\x20API\x20密钥安全存储在本地存储中','几秒钟内获取您的\x20API\x20密钥','复制以下\x20JSON\x20配置','保存中...','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','将以下配置添加到您的\x20MCP\x20客户端设置中:','什么是\x20API\x20密钥?','4598405zayCDo','未连接','Univer\x20AI\x20控制台','API\x20密钥无效,请检查密钥是否正确','会话ID','配置参数:','保存配置','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP:\x20超出最大重试次数','MCP\x20配置','连接失败','重连中...','API\x20密钥长度至少需要\x2010\x20位','MCP\x20连接失败','MCP\x20已连接','API\x20密钥不能为空','1117IfApGg','MCP\x20连接中...','MCP:\x20会话\x20ID\x20已被占用','132QmcFvo','已连接','启用身份验证以获得安全连接','将配置添加到您的\x20MCP\x20客户端设置文件中','4719168aSSshX','1754RodnLH','MCP\x20状态未知','最大重试次数','MCP:\x20网络错误'];_0xf774=function(){return _0x44f9c4;};return _0xf774();}function _0x25b4(_0x63728,_0x1dad1e){const _0xf774ae=_0xf774();return _0x25b4=function(_0x25b45e,_0x1a3005){_0x25b45e=_0x25b45e-0x150;let _0x2242c8=_0xf774ae[_0x25b45e];return _0x2242c8;},_0x25b4(_0x63728,_0x1dad1e);}const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x28954d(0x175),'connected':_0x28954d(0x172),'failed':_0x28954d(0x171),'retrying':'MCP\x20重连中...','unknown':_0x28954d(0x17d),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x28954d(0x176),'networkError':_0x28954d(0x17f),'maxRetriesExceeded':_0x28954d(0x16c),'clickToConnect':'点击连接\x20MCP','clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x28954d(0x16d),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x28954d(0x150),'apiKeyPlaceholder':_0x28954d(0x180),'apiKeyHint':_0x28954d(0x152),'enableAuth':_0x28954d(0x151),'enableAuthHint':_0x28954d(0x179),'connectionInfo':_0x28954d(0x181),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x28954d(0x162),'configStepTitle':'配置步骤:','configStep1':_0x28954d(0x15f),'configStep2':_0x28954d(0x17a),'configStep3':_0x28954d(0x159),'sessionId':_0x28954d(0x168),'sessionIdDescription':_0x28954d(0x154),'authorizationDescription':_0x28954d(0x16b),'configParameters':_0x28954d(0x169),'maxRetries':_0x28954d(0x17e),'save':_0x28954d(0x16a),'saving':_0x28954d(0x160),'note1':_0x28954d(0x15b),'note2':_0x28954d(0x15d),'configSaved':'配置保存成功','configError':_0x28954d(0x15a),'apiApplyInfo':{'title':_0x28954d(0x163),'description':_0x28954d(0x161),'univerAiLabel':_0x28954d(0x166),'getStarted':_0x28954d(0x15e)},'validation':{'apiKeyRequired':_0x28954d(0x173),'apiKeyTooShort':_0x28954d(0x170),'invalidConfig':_0x28954d(0x15c),'invalidApiKey':_0x28954d(0x167)},'connectionStatus':{'disconnected':_0x28954d(0x165),'connecting':'连接中...','connected':_0x28954d(0x178),'failed':_0x28954d(0x16e),'retrying':_0x28954d(0x16f)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x28954d(0x158),'maxRetriesExceeded':_0x28954d(0x156)}}};module['exports']=e;
@@ -1 +1 @@
1
- 'use strict';const _0x35ea45=_0x12e0;function _0x12e0(_0x3f1a93,_0x5554f5){const _0x409664=_0x4096();return _0x12e0=function(_0x12e0c4,_0x3d157b){_0x12e0c4=_0x12e0c4-0xd6;let _0x295d42=_0x409664[_0x12e0c4];return _0x295d42;},_0x12e0(_0x3f1a93,_0x5554f5);}function _0x4096(){const _0xc6cbf5=['Enable\x20Authentication','Connecting...','MCP:\x20Unauthorized','Connected','Save\x20Configuration','Click\x20to\x20connect\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','exports','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','Univer\x20AI\x20Console','18ERaeXF','1422784smfbod','API\x20key\x20with\x20Bearer\x20prefix.','1234236QsugVq','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3090994Atmxuq','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','807632LMkCCq','Get\x20your\x20API\x20key\x20in\x20seconds','Retrying...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Saving...','Connection\x20Failed','MCP\x20Client\x20Configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connecting...','Configuration\x20Steps:','MCP\x20Retrying...','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','35hUBUbG','Enable\x20authentication\x20for\x20secure\x20connections','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','289060DsmWqn','MCP\x20Connected','Configuration\x20saved\x20successfully','10QOtxbE','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Network\x20Error','API\x20Key','4139436FmsKsW','API\x20key\x20is\x20required','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','46729080hqQVqM','Session\x20ID','Disconnected'];_0x4096=function(){return _0xc6cbf5;};return _0x4096();}(function(_0x41f43a,_0x2dd3be){const _0x5a4199=_0x12e0,_0x28839d=_0x41f43a();while(!![]){try{const _0x16e728=-parseInt(_0x5a4199(0xf3))/0x1+-parseInt(_0x5a4199(0xf0))/0x2+-parseInt(_0x5a4199(0xed))/0x3+-parseInt(_0x5a4199(0x103))/0x4*(-parseInt(_0x5a4199(0x100))/0x5)+-parseInt(_0x5a4199(0xea))/0x6*(parseInt(_0x5a4199(0xd7))/0x7)+-parseInt(_0x5a4199(0xeb))/0x8+-parseInt(_0x5a4199(0xdb))/0x9*(-parseInt(_0x5a4199(0x106))/0xa);if(_0x16e728===_0x2dd3be)break;else _0x28839d['push'](_0x28839d['shift']());}catch(_0xde2e2e){_0x28839d['push'](_0x28839d['shift']());}}}(_0x4096,0xefa26));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x35ea45(0xfb),'connected':_0x35ea45(0x104),'failed':'MCP\x20Connection\x20Failed','retrying':_0x35ea45(0xfd),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x35ea45(0xe0),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x35ea45(0x108),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x35ea45(0xe3),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x35ea45(0xda),'description':_0x35ea45(0xf1),'apiKey':_0x35ea45(0xd6),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x35ea45(0xde),'enableAuthHint':_0x35ea45(0x101),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x35ea45(0xf9),'configInstructions':_0x35ea45(0xf6),'configStepTitle':_0x35ea45(0xfc),'configStep1':_0x35ea45(0xd9),'configStep2':_0x35ea45(0xe5),'configStep3':_0x35ea45(0xff),'sessionId':_0x35ea45(0xdc),'sessionIdDescription':_0x35ea45(0x107),'authorizationDescription':_0x35ea45(0xec),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x35ea45(0xe2),'saving':_0x35ea45(0xf7),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x35ea45(0xef),'configSaved':_0x35ea45(0x105),'configError':_0x35ea45(0xee),'apiApplyInfo':{'title':_0x35ea45(0xe8),'description':_0x35ea45(0xe4),'univerAiLabel':_0x35ea45(0xe9),'getStarted':_0x35ea45(0xf4)},'validation':{'apiKeyRequired':_0x35ea45(0xd8),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x35ea45(0xfe),'invalidApiKey':_0x35ea45(0xf2)},'connectionStatus':{'disconnected':_0x35ea45(0xdd),'connecting':_0x35ea45(0xdf),'connected':_0x35ea45(0xe1),'failed':_0x35ea45(0xf8),'retrying':_0x35ea45(0xf5)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x35ea45(0xe7),'networkError':_0x35ea45(0xfa),'maxRetriesExceeded':_0x35ea45(0x102)}}},n=e;module[_0x35ea45(0xe6)]=n;
1
+ 'use strict';const _0x493536=_0x206d;(function(_0x4d2d68,_0x5add38){const _0x41fa4c=_0x206d,_0x542a8a=_0x4d2d68();while(!![]){try{const _0x411393=parseInt(_0x41fa4c(0xc9))/0x1+parseInt(_0x41fa4c(0xd1))/0x2+parseInt(_0x41fa4c(0xd9))/0x3*(-parseInt(_0x41fa4c(0xe3))/0x4)+parseInt(_0x41fa4c(0xd6))/0x5*(-parseInt(_0x41fa4c(0xdd))/0x6)+parseInt(_0x41fa4c(0xd0))/0x7*(parseInt(_0x41fa4c(0xbb))/0x8)+-parseInt(_0x41fa4c(0xb8))/0x9*(-parseInt(_0x41fa4c(0xcb))/0xa)+-parseInt(_0x41fa4c(0xc5))/0xb*(parseInt(_0x41fa4c(0xdc))/0xc);if(_0x411393===_0x5add38)break;else _0x542a8a['push'](_0x542a8a['shift']());}catch(_0x28550d){_0x542a8a['push'](_0x542a8a['shift']());}}}(_0x2573,0xaabcb));function _0x2573(){const _0x6ed37=['Session\x20ID','193854vruAMp','Failed\x20to\x20save\x20configuration','MCP\x20Retrying...','12uddERl','360DFOLdw','Saving...','Click\x20to\x20connect\x20MCP','API\x20key\x20is\x20required','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connection\x20Failed','28iXJDTk','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20Key','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Network\x20Error','exports','What\x20is\x20API\x20Key?','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','145332GzYmpg','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Unknown\x20Status','10106424KhGlYr','MCP\x20Connected','MCP\x20Client\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Univer\x20AI\x20Console','MCP\x20Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Click\x20to\x20configure\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','9979618dTfjwK','Configuration\x20Parameters:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Unauthorized','615670TBpnnc','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','380ZUtFgJ','Connecting...','Disconnected','MCP\x20Connection\x20Failed','Configuration\x20saved\x20successfully','7TghYao','29852KITFKY','MCP\x20Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Retrying...','MCP\x20Configuration','37385pCDDSO','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'];_0x2573=function(){return _0x6ed37;};return _0x2573();}function _0x206d(_0x20d968,_0x4065af){const _0x2573af=_0x2573();return _0x206d=function(_0x206df8,_0xcbf202){_0x206df8=_0x206df8-0xb1;let _0x2813a8=_0x2573af[_0x206df8];return _0x2813a8;},_0x206d(_0x20d968,_0x4065af);}const e={'mcpStatus':{'disconnected':_0x493536(0xd2),'connecting':_0x493536(0xc0),'connected':_0x493536(0xbc),'failed':_0x493536(0xce),'retrying':_0x493536(0xdb),'unknown':_0x493536(0xba),'unauthorized':_0x493536(0xc8),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x493536(0xb4),'maxRetriesExceeded':_0x493536(0xbe),'clickToConnect':_0x493536(0xdf),'clickToConfigure':_0x493536(0xc2)},'mcpConfig':{'title':_0x493536(0xd5),'description':_0x493536(0xd3),'apiKey':_0x493536(0xb2),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x493536(0xb3),'connectionInfo':_0x493536(0xbd),'mcpClientConfig':_0x493536(0xbd),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x493536(0xc3),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x493536(0xca),'sessionId':_0x493536(0xd8),'sessionIdDescription':_0x493536(0xc1),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x493536(0xc6),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x493536(0xde),'note1':_0x493536(0xb7),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x493536(0xcf),'configError':_0x493536(0xda),'apiApplyInfo':{'title':_0x493536(0xb6),'description':_0x493536(0xb9),'univerAiLabel':_0x493536(0xbf),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x493536(0xe0),'apiKeyTooShort':_0x493536(0xc4),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x493536(0xd7)},'connectionStatus':{'disconnected':_0x493536(0xcd),'connecting':_0x493536(0xcc),'connected':'Connected','failed':_0x493536(0xe2),'retrying':_0x493536(0xd4)},'connectionError':{'unauthorized':_0x493536(0xb1),'sessionOccupied':_0x493536(0xc7),'networkError':_0x493536(0xe1),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x493536(0xb5)]=n;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x5169db=_0x5e17;(function(_0x28029c,_0x1edf80){var _0x3624cf=_0x5e17,_0x30f76f=_0x28029c();while(!![]){try{var _0x291700=parseInt(_0x3624cf(0x1ac))/0x1+-parseInt(_0x3624cf(0x2b4))/0x2*(parseInt(_0x3624cf(0x28c))/0x3)+parseInt(_0x3624cf(0x2a5))/0x4*(parseInt(_0x3624cf(0x1e5))/0x5)+parseInt(_0x3624cf(0x264))/0x6+-parseInt(_0x3624cf(0x1fc))/0x7*(parseInt(_0x3624cf(0x23c))/0x8)+parseInt(_0x3624cf(0x2ee))/0x9*(-parseInt(_0x3624cf(0x289))/0xa)+parseInt(_0x3624cf(0x2db))/0xb*(parseInt(_0x3624cf(0x2d8))/0xc);if(_0x291700===_0x1edf80)break;else _0x30f76f['push'](_0x30f76f['shift']());}catch(_0x5a704d){_0x30f76f['push'](_0x30f76f['shift']());}}}(_0x23e6,0xb8601));var we=Object[_0x5169db(0x27f)],Ee=(_0x53bb6d,_0x454c8a,_0x473325)=>_0x454c8a in _0x53bb6d?we(_0x53bb6d,_0x454c8a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x473325}):_0x53bb6d[_0x454c8a]=_0x473325,S=(_0x462e81,_0x49b06a,_0x5289f3)=>Ee(_0x462e81,typeof _0x49b06a!=_0x5169db(0x1bf)?_0x49b06a+'':_0x49b06a,_0x5289f3);import{LocaleService as _0x4f4718,Inject as _0x236043,Injector as _0x582310,IConfigService as _0x3a4bae,ILocalStorageService as _0x51515e,ILogService as _0x36ee80,Disposable as _0x3dde06,CommandType as _0x42ca93,ICommandService as _0x39e99e,DependentOn as _0x37ecd6,Plugin as _0x304d6d,merge as _0x1ce813}from'@univerjs/core';import{jsxs as _0x5710b0,jsx as _0x575de2}from'react/jsx-runtime';import{MCPConnectionStatus as _0x386ed5,MCPConnectionError as _0x4e873e,MCPConnectionController as _0x27fb1b,MCP_PLUGIN_CONFIG_KEY as _0x457454,UniverMCPPlugin as _0x20d2ba}from'@univerjs-pro/mcp';import{Input as _0x430dc6,Button as _0x3b7201,MessageType as _0x2465ca,Tooltip as _0x7daf80,clsx as _0x3a7b1a}from'@univerjs/design';import{useDependency as _0x3f5854,useObservable as _0x15ca67,IUIPartsService as _0x1711f6,IDialogService as _0x499b1d,IMessageService as _0xdc7f2d,ComponentManager as _0x43e4c3,connectInjector as _0x23400d,BuiltInUIPart as _0x906c3b,MenuItemType as _0x515621,RibbonStartGroup as _0x173307,IMenuManagerService as _0x5a4a7b}from'@univerjs/ui';import{BehaviorSubject as _0x1434d3}from'rxjs';import{forwardRef as _0x4f8dfb,useRef as _0x4d3693,createElement as _0x47720d,useState as _0x5d7e5e,useCallback as _0x30b2c7}from'react';import{ISocketService as _0x4a4ff2,WebSocketService as _0x1f9c88}from'@univerjs/network';var f=function(){var _0x4a2e58=_0x5169db;return f=Object[_0x4a2e58(0x2e0)]||function(_0x2bc047){var _0x531672=_0x4a2e58;for(var _0x4d98c1,_0xc25bbe=0x1,_0x1a747a=arguments['length'];_0xc25bbe<_0x1a747a;_0xc25bbe++){_0x4d98c1=arguments[_0xc25bbe];for(var _0xd2304b in _0x4d98c1)Object[_0x531672(0x248)]['hasOwnProperty']['call'](_0x4d98c1,_0xd2304b)&&(_0x2bc047[_0xd2304b]=_0x4d98c1[_0xd2304b]);}return _0x2bc047;},f[_0x4a2e58(0x21d)](this,arguments);},Ye=function(_0x50d375,_0x12ef52){var _0x5d64e1=_0x5169db,_0x395278={};for(var _0x151344 in _0x50d375)Object[_0x5d64e1(0x248)][_0x5d64e1(0x281)][_0x5d64e1(0x20a)](_0x50d375,_0x151344)&&_0x12ef52['indexOf'](_0x151344)<0x0&&(_0x395278[_0x151344]=_0x50d375[_0x151344]);if(_0x50d375!=null&&typeof Object[_0x5d64e1(0x21f)]==_0x5d64e1(0x2d4)){for(var _0x15a023=0x0,_0x151344=Object[_0x5d64e1(0x21f)](_0x50d375);_0x15a023<_0x151344[_0x5d64e1(0x23e)];_0x15a023++)_0x12ef52[_0x5d64e1(0x1ad)](_0x151344[_0x15a023])<0x0&&Object[_0x5d64e1(0x248)]['propertyIsEnumerable'][_0x5d64e1(0x20a)](_0x50d375,_0x151344[_0x15a023])&&(_0x395278[_0x151344[_0x15a023]]=_0x50d375[_0x151344[_0x15a023]]);}return _0x395278;},w=_0x4f8dfb(function(_0x142ff7,_0x2338cd){var _0x518de0=_0x5169db,_0x32c3d8=_0x142ff7[_0x518de0(0x292)],_0x22a112=_0x142ff7['id'],_0x5bef58=_0x142ff7[_0x518de0(0x270)],_0x36d73b=_0x142ff7[_0x518de0(0x2e6)],_0x49d5fc=Ye(_0x142ff7,['icon','id',_0x518de0(0x270),_0x518de0(0x2e6)]),_0x5722dc='univerjs-icon\x20univerjs-icon-'['concat'](_0x22a112,'\x20')[_0x518de0(0x20c)](_0x5bef58||'')[_0x518de0(0x249)](),_0x13b076=_0x4d3693('_'[_0x518de0(0x20c)](Xe()));return ue(_0x32c3d8,''[_0x518de0(0x20c)](_0x22a112),{'defIds':_0x32c3d8[_0x518de0(0x229)],'idSuffix':_0x13b076[_0x518de0(0x22a)]},f({'ref':_0x2338cd,'className':_0x5722dc},_0x49d5fc),_0x36d73b);});function ue(_0x51b111,_0x448771,_0x95fbc6,_0x25df26,_0x48de69){var _0x57ad7b=_0x5169db;return _0x47720d(_0x51b111['tag'],f(f({'key':_0x448771},Ze(_0x51b111,_0x95fbc6,_0x48de69)),_0x25df26),(qe(_0x51b111,_0x95fbc6)[_0x57ad7b(0x2ec)]||[])[_0x57ad7b(0x251)](function(_0x58f912,_0x1844da){var _0x343e5b=_0x57ad7b;return ue(_0x58f912,''['concat'](_0x448771,'-')[_0x343e5b(0x20c)](_0x51b111['tag'],'-')['concat'](_0x1844da),_0x95fbc6,void 0x0,_0x48de69);}));}function Ze(_0x1afebe,_0x5b366,_0x33e2b5){var _0x1557fe=_0x5169db,_0x1285b7=f({},_0x1afebe[_0x1557fe(0x2fd)]);_0x33e2b5!=null&&_0x33e2b5[_0x1557fe(0x2b3)]&&_0x1285b7[_0x1557fe(0x28f)]===_0x1557fe(0x2b3)&&(_0x1285b7['fill']=_0x33e2b5[_0x1557fe(0x2b3)]),_0x1afebe[_0x1557fe(0x2cc)]===_0x1557fe(0x1e2)&&_0x1285b7['id']&&(_0x1285b7['id']=_0x1285b7['id']+_0x5b366[_0x1557fe(0x2bf)]),Object[_0x1557fe(0x2bb)](_0x1285b7)['forEach'](function(_0x5b047d){var _0x42665e=_0x1557fe,_0x4c04ac=_0x5b047d[0x0],_0x25229b=_0x5b047d[0x1];_0x4c04ac===_0x42665e(0x1e2)&&typeof _0x25229b==_0x42665e(0x269)&&(_0x1285b7[_0x4c04ac]=_0x25229b[_0x42665e(0x24b)](/url\(#(.*)\)/,_0x42665e(0x2ca)['concat'](_0x5b366['idSuffix'],')')));});var _0x7e2c8c=_0x5b366['defIds'];return!_0x7e2c8c||_0x7e2c8c[_0x1557fe(0x23e)]===0x0||(_0x1afebe[_0x1557fe(0x2cc)]===_0x1557fe(0x204)&&_0x1285b7[_0x1557fe(0x2cf)]&&(_0x1285b7[_0x1557fe(0x2cf)]=_0x1285b7[_0x1557fe(0x2cf)]+_0x5b366[_0x1557fe(0x2bf)]),Object[_0x1557fe(0x2bb)](_0x1285b7)['forEach'](function(_0x537559){var _0x2a965b=_0x1557fe,_0x43a491=_0x537559[0x0],_0x3e5714=_0x537559[0x1];typeof _0x3e5714=='string'&&(_0x1285b7[_0x43a491]=_0x3e5714[_0x2a965b(0x24b)](/url\(#(.*)\)/,_0x2a965b(0x2ca)[_0x2a965b(0x20c)](_0x5b366[_0x2a965b(0x2bf)],')')));})),_0x1285b7;}function qe(_0x4d137b,_0x47b910){var _0x47c494=_0x5169db,_0x44eb22,_0xc4d6cb=_0x47b910['defIds'];return!_0xc4d6cb||_0xc4d6cb[_0x47c494(0x23e)]===0x0?_0x4d137b:_0x4d137b[_0x47c494(0x2cc)]===_0x47c494(0x2b0)&&(!((_0x44eb22=_0x4d137b['children'])===null||_0x44eb22===void 0x0)&&_0x44eb22[_0x47c494(0x23e)])?f(f({},_0x4d137b),{'children':_0x4d137b[_0x47c494(0x2ec)]['map'](function(_0x450663){var _0x103320=_0x47c494;return typeof _0x450663[_0x103320(0x2fd)]['id']==_0x103320(0x269)&&_0xc4d6cb&&_0xc4d6cb[_0x103320(0x2f8)](_0x450663[_0x103320(0x2fd)]['id'])?f(f({},_0x450663),{'attrs':f(f({},_0x450663[_0x103320(0x2fd)]),{'id':_0x450663[_0x103320(0x2fd)]['id']+_0x47b910[_0x103320(0x2bf)]})}):_0x450663;})}):_0x4d137b;}function Xe(){var _0x5c1ebe=_0x5169db;return Math['random']()[_0x5c1ebe(0x26d)](0x24)[_0x5c1ebe(0x282)](0x2,0x8);}w[_0x5169db(0x1ce)]=_0x5169db(0x288);function _0x23e6(){var _0x463fe3=['DISCONNECTED','mcpConfig.connectionError.networkError','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpStatus.clickToConnect','Configuration\x20saved\x20successfully','MCP\x20客户端配置','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.connectionStatus.connecting','FAILED','_initStatusComponent','RETRYING','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','113604iQuIfP','mcpConfig.note2','_apiKey$','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcpConfig.configInstructions','path','univer-text-gray-400','Invalid\x20configuration','on-line-icon_clip0_910_349','Enter\x20your\x20API\x20key','mcpConfig.configStep3','defs','mcpConfig.apiKeyPlaceholder','Close','colorChannel1','54zrzTWM','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpConfig.apiApplyInfo.univerAiLabel','mcpStatus.retrying','M5.21243\x2012.287L11.8791\x205.62036','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_handleConfigSave','entries','Get\x20your\x20API\x20key\x20in\x20seconds','HEADER_MENU','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','idSuffix','get','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','close-small-single','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','OTHERS','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','Disconnected','mcpConfig.connectionError.maxRetriesExceeded','mcpConfig.configStep1','error','url(#$1','mcpServerUrl','tag','UNAUTHORIZED','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','xlink:href','mcpConfig.save','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcp-ui.config','Click\x20to\x20connect\x20MCP','function','Connected','https://console.univer.plus','NETWORK_ERROR','12IGpdQA','removeItem','MAX_RETRIES_EXCEEDED','3842311dJbbQc','MCP\x20连接失败','0\x200\x2016\x2016','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','mcpConfig.apiKey','assign','registerCommand','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-flex\x20univer-items-start\x20univer-gap-3','会话\x20ID\x20已被占用,请稍后再试','extend','_localStorageService','Enable\x20Authentication','round','_registerComponent','_config$','children','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','1141416prpFei','_config','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','Copy\x20the\x20JSON\x20configuration\x20below','univer-flex\x20univer-items-center\x20univer-gap-3','_initializeCommands','check-mark-icon','subscribe','配置保存失败','配置参数:','includes','MenuIcon','几秒钟内获取您的\x20API\x20密钥','_componentManager','univer-min-w-0\x20univer-flex-1','attrs','svg','_mcpConnectionController','mcpStatus.clickToConfigure','连接失败','配置步骤:','您的\x20API\x20密钥将在此浏览器中本地存储','univer-text-sm\x20univer-font-medium','重启您的\x20MCP\x20客户端以使配置生效','https://console.univer.ai','univer-flex-1','mcpConfig.connectionStatus.disconnected','getItem','value','840600cTtROz','indexOf','Configuration\x20Parameters:','MCP\x20Retrying...','_mcpCoreConfig$','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.title','API\x20密钥不能为空','mcpConfig.apiApplyInfo.description','getConfig','mcp-config-dialog','url(#on-line-icon_clip0_910_349)','disposeWithMe','__setCustomHeaders','getOwnPropertyDescriptor','univer-space-y-2','url(#off-line-icon_clip0_910_343)','_injector','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','symbol','_dialogService','_validateConfig','_blank','_loadStoredApiKey','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.configStep2','<API_KEY>','会话ID','MCP\x20重连中...','MCP:\x20Max\x20Retries\x20Exceeded','none','请输入您的\x20API\x20密钥','SESSION_ID_OCCUPIED','displayName','配置更改将立即生效','Error','white','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-text-red-500','univer-bg-green-500','API\x20密钥无效,请检查密钥是否正确','MCPConfigPanel','COMMAND','subscribeConfigValue$','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','clipPath','点击配置\x20MCP','univer-text-xs\x20univer-text-gray-600','MCP\x20连接中...','univer-mr-2\x20univer-flex\x20univer-text-xl','M5.21243\x205.62036L11.8791\x2012.287','mask','isValid','NONE','95bknvBi','_uiPartsService','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','CheckMarkIcon','getCurrentConfig','CONNECTING','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','warn','mcpConfig.connectionError.sessionOccupied','API\x20密钥长度至少需要\x2010\x20位','mcpStatus.connecting','mcp.apiKey','MCP\x20已断开','mcpConfig.validation.apiKeyRequired','showConfigPanel','mcpStatus.failed','\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','未连接','mcpConfig.sessionIdDescription','_initializeMenus','_initAutoConnect','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','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','77sbRXTD','off-line-icon','has','connectionError$','mcpConfig.apiApplyInfo.getStarted','网络连接错误,请检查您的网络连接','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','use','mcpConfig.validation.invalidConfig','off-line-icon_clip0_910_343','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','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','setItem','call','权限验证失败,请检查您的\x20API\x20密钥','concat','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','点击连接\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-yellow-500','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_connectionController','univer-text-xs\x20univer-text-gray-500','close','http://www.w3.org/2000/svg','univer-text-sm\x20univer-text-gray-500','next','带有\x20Bearer\x20前缀的\x20API\x20密钥。','help-single','univer.plus','MCP:\x20Network\x20Error','_menuManagerService','apply','_commandService','getOwnPropertySymbols','univer-bg-red-500','mcp-ui.command.openConfigPanel','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_loading$','OnLineIcon','univer-space-y-5','Configuration\x20Steps:','Authorization:','defIds','current','Max\x20Retries','启用身份验证','MCP\x20Configuration','mcpConfig.connectionStatus.failed','mcpConfig.validation.invalidApiKey','span','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','currentColor','mcpConfig.description','\x20-\x20','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Bearer\x20','onStarting','univer-bg-blue-500','connectionStatus$','univer-flex\x20univer-items-start\x20univer-gap-2','univer-text-green-500','8168xczAFr','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','length','MCP_UI_PLUGIN','MCP\x20Connected','univer-flex-shrink-0\x20univer-text-red-500','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','mcpConfig.apiApplyInfo.title','on-line-icon','Saving...','BUTTON','_handleConfigure','prototype','trim','enableAutoConnect','replace','mcpConfig.connectionStatus.connected','MCP\x20Client\x20Configuration','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','1em','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','map','mcpConfig.connectionStatus.retrying','连接中...','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','mcpConfig.validation.apiKeyTooShort','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20配置','API\x20密钥','evenodd','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','apiKey','CONNECTED','sessionId$','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_createConfigPanelComponent','_configService','0\x200\x2017\x2016','show','univer-space-y-3','2283594NgjZjF','univer-flex\x20univer-items-center\x20univer-gap-2','MCP:\x20未授权','univer-flex-shrink-0\x20univer-text-blue-500','javascript:void(0)','string','_initConfigSync','API\x20Key','MCP\x20Disconnected','toString','registerComponent','univer-text-white','className','showDeveloperTools','mergeMenu','配置保存成功','mcpConfig.configParameters','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','超出最大重试次数,请稍后再试','_logService','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20状态未知','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Univer\x20AI\x20控制台','univer.ai','defineProperty','配置\x20MCP\x20使用\x20AI\x20操作电子表格','hasOwnProperty','substring','text','_localeService','mcpStatus.unauthorized','MCP\x20Connecting...','Retrying...','UniverIcon','10HTjHPP','univer-text-gray-500','div','135207jJnCap','MCP:\x20会话\x20ID\x20已被占用','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fill','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','icon','MCP:\x20Session\x20ID\x20Occupied','_messageService','push','setConfig','mcpConfig.note1','pluginName'];_0x23e6=function(){return _0x463fe3;};return _0x23e6();}var Je={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5169db(0x1cb),'viewBox':_0x5169db(0x2dd),'width':_0x5169db(0x24f),'height':_0x5169db(0x24f)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x5169db(0x1fa),'fillRule':'evenodd','clipRule':_0x5169db(0x259)}}]},le=_0x4f8dfb(function(_0x5676c5,_0x50499a){var _0x360398=_0x5169db;return _0x47720d(w,Object['assign']({},_0x5676c5,{'id':_0x360398(0x2f4),'ref':_0x50499a,'icon':Je}));});le[_0x5169db(0x1ce)]=_0x5169db(0x1e8);var Qe={'tag':_0x5169db(0x2fe),'attrs':{'xmlns':_0x5169db(0x215),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'stroke':_0x5169db(0x232),'d':_0x5169db(0x1e1),'strokeLinecap':'round','strokeLinejoin':_0x5169db(0x2e9),'strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':_0x5169db(0x232),'d':_0x5169db(0x2b8),'strokeLinecap':'round','strokeLinejoin':_0x5169db(0x2e9),'strokeWidth':1.33}}]},ve=_0x4f8dfb(function(_0x15fbdb,_0x11818e){var _0xc218c2=_0x5169db;return _0x47720d(w,Object[_0xc218c2(0x2e0)]({},_0x15fbdb,{'id':_0xc218c2(0x2c2),'ref':_0x11818e,'icon':Qe}));});ve['displayName']='CloseSmallSingle';var en={'tag':'svg','attrs':{'xmlns':_0x5169db(0x215),'fill':_0x5169db(0x1cb),'viewBox':'0\x200\x2016\x2016','width':_0x5169db(0x24f),'height':_0x5169db(0x24f)},'children':[{'tag':'path','attrs':{'fill':_0x5169db(0x232),'d':_0x5169db(0x2ed)}},{'tag':_0x5169db(0x2aa),'attrs':{'fill':_0x5169db(0x232),'d':_0x5169db(0x242)}},{'tag':_0x5169db(0x2aa),'attrs':{'fill':'currentColor','d':_0x5169db(0x28e),'fillRule':_0x5169db(0x259),'clipRule':_0x5169db(0x259)}}]},de=_0x4f8dfb(function(_0x2443f9,_0x420de4){var _0x335466=_0x5169db;return _0x47720d(w,Object[_0x335466(0x2e0)]({},_0x2443f9,{'id':_0x335466(0x219),'ref':_0x420de4,'icon':en}));});de[_0x5169db(0x1ce)]='HelpSingle';var nn={'tag':_0x5169db(0x2fe),'attrs':{'xmlns':_0x5169db(0x215),'fill':_0x5169db(0x1cb),'viewBox':'0\x200\x2016\x2016','width':_0x5169db(0x24f),'height':_0x5169db(0x24f)},'children':[{'tag':'g','attrs':{'clipPath':_0x5169db(0x1bc)},'children':[{'tag':_0x5169db(0x2aa),'attrs':{'stroke':_0x5169db(0x232),'d':_0x5169db(0x1e7),'strokeLinecap':_0x5169db(0x2e9),'strokeLinejoin':_0x5169db(0x2e9),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5169db(0x1dc),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x5169db(0x2aa),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5169db(0x206)]},fe=_0x4f8dfb(function(_0x1adc2e,_0x250974){var _0x28f6d5=_0x5169db;return _0x47720d(w,Object[_0x28f6d5(0x2e0)]({},_0x1adc2e,{'id':_0x28f6d5(0x1fd),'ref':_0x250974,'icon':nn}));});fe[_0x5169db(0x1ce)]='OffLineIcon';var rn={'tag':_0x5169db(0x2fe),'attrs':{'xmlns':_0x5169db(0x215),'fill':'none','viewBox':_0x5169db(0x261),'width':_0x5169db(0x24f),'height':_0x5169db(0x24f)},'children':[{'tag':'g','attrs':{'clipPath':_0x5169db(0x1b7)},'children':[{'tag':_0x5169db(0x2aa),'attrs':{'stroke':_0x5169db(0x232),'d':_0x5169db(0x2be),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5169db(0x1dc),'attrs':{'id':_0x5169db(0x2ad)},'children':[{'tag':_0x5169db(0x2aa),'attrs':{'fill':_0x5169db(0x1d1),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x4f8dfb(function(_0x4e44f6,_0x525871){var _0x5cac0d=_0x5169db;return _0x47720d(w,Object[_0x5cac0d(0x2e0)]({},_0x4e44f6,{'id':_0x5cac0d(0x244),'ref':_0x525871,'icon':rn}));});ge[_0x5169db(0x1ce)]=_0x5169db(0x225);function tn(_0x2034bb){var _0x5e53c7=_0x5169db,_0x55e754,_0x2cdb05;const {mcpCoreConfig:_0x4872d6,onSave:_0x1fc41a,loading:_0xa5d1ad=!0x1,config:_0x31f1d9,connectionStatus$:_0x37da74,connectionError$:_0x2ddc6a,currentApiKey$:_0x439f7a,currentSessionId$:_0x2cbc6f}=_0x2034bb,_0x19093a=_0x3f5854(_0x4f4718),_0x380a6d=_0x15ca67(_0x37da74,_0x386ed5['DISCONNECTED']),_0x4f10ac=_0x15ca67(_0x2ddc6a,_0x4e873e[_0x5e53c7(0x1e4)]),_0x4a8b09=_0x15ca67(_0x2cbc6f,''),_0x5da30c=_0x15ca67(_0x439f7a,''),[_0x5da614,_0x163e9b]=_0x5d7e5e(_0x5da30c||''),_0x580caf=!0x0,_0x53ba76=_0x31f1d9['showDeveloperTools']&&_0x4872d6['mcpServerUrl']&&(_0x4872d6[_0x5e53c7(0x2cb)][_0x5e53c7(0x2f8)](_0x5e53c7(0x21a))||_0x4872d6['mcpServerUrl'][_0x5e53c7(0x2f8)](_0x5e53c7(0x27e))),_0x595013=(_0x55e754=_0x4872d6[_0x5e53c7(0x2cb)])==null?void 0x0:_0x55e754['includes']('univer.plus'),_0x28776c=(_0x2cdb05=_0x4872d6['mcpServerUrl'])==null?void 0x0:_0x2cdb05['includes'](_0x5e53c7(0x27e)),_0x48a33a=_0x595013?_0x5e53c7(0x2d6):_0x5e53c7(0x1a7),_0x5bc6d3=_0x31f1d9[_0x5e53c7(0x271)]&&(_0x595013||_0x28776c),[_0x233c60,_0x440314]=_0x5d7e5e(!_0x5da614[_0x5e53c7(0x249)]()),_0x82dbaa=(_0x220179,_0x5a3054)=>{var _0x1f64cc=_0x5e53c7;if(_0x5a3054===_0x4e873e['UNAUTHORIZED'])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x220179){case _0x386ed5[_0x1f64cc(0x25c)]:return _0x1f64cc(0x2b5);case _0x386ed5[_0x1f64cc(0x1ea)]:case _0x386ed5[_0x1f64cc(0x2a3)]:return _0x1f64cc(0x291);case _0x386ed5[_0x1f64cc(0x2a1)]:return _0x1f64cc(0x2d1);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x30ea24=(_0x59a506,_0x4a0853)=>{var _0x23bff9=_0x5e53c7;if(_0x4a0853===_0x4e873e[_0x23bff9(0x2cd)])return _0x23bff9(0x220);switch(_0x59a506){case _0x386ed5[_0x23bff9(0x25c)]:return _0x23bff9(0x1d4);case _0x386ed5['CONNECTING']:case _0x386ed5[_0x23bff9(0x2a3)]:return _0x23bff9(0x238);case _0x386ed5['FAILED']:return _0x23bff9(0x220);default:return'univer-bg-gray-500';}},_0x5689eb=_0x2a5368=>{var _0x4b0726=_0x5e53c7;switch(_0x2a5368){case _0x386ed5[_0x4b0726(0x25c)]:return _0x19093a['t'](_0x4b0726(0x24c));case _0x386ed5[_0x4b0726(0x1ea)]:return _0x19093a['t'](_0x4b0726(0x2a0));case _0x386ed5[_0x4b0726(0x2a1)]:return _0x19093a['t'](_0x4b0726(0x22e));case _0x386ed5[_0x4b0726(0x2a3)]:return _0x19093a['t'](_0x4b0726(0x252));default:return _0x19093a['t'](_0x4b0726(0x1a9));}},_0x3c835c=_0x359c01=>{var _0x41f159=_0x5e53c7;switch(_0x359c01){case _0x4e873e['UNAUTHORIZED']:return _0x19093a['t']('mcpConfig.connectionError.unauthorized');case _0x4e873e['SESSION_ID_OCCUPIED']:return _0x19093a['t'](_0x41f159(0x1ed));case _0x4e873e['NETWORK_ERROR']:return _0x19093a['t'](_0x41f159(0x29a));case _0x4e873e[_0x41f159(0x2da)]:return _0x19093a['t'](_0x41f159(0x2c7));default:return'';}},_0x53c8a8=_0x30b2c7(()=>{var _0x4ac83c=_0x5e53c7;const _0x18f307={..._0x4872d6,'apiKey':_0x5da614[_0x4ac83c(0x249)](),'enableAuth':_0x580caf};_0x1fc41a(_0x18f307);},[_0x4872d6,_0x5da614,_0x580caf,_0x1fc41a]),_0x580c31=_0x5da614[_0x5e53c7(0x249)]()['length']>0x0;return _0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2b9),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x5710b0('div',{'className':_0x5e53c7(0x2f2),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x25e),'children':_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x26f),'children':'⚙'})}),_0x575de2(_0x5e53c7(0x28b),{'children':_0x575de2('p',{'className':_0x5e53c7(0x216),'children':_0x19093a['t'](_0x5e53c7(0x233))})})]})}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x20d),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x82dbaa(_0x380a6d,_0x4f10ac)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x265),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1f5)+_0x30ea24(_0x380a6d,_0x4f10ac)+'\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'}),_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x1a5),'children':_0x5689eb(_0x380a6d)})]})}),_0x4f10ac!==_0x4e873e[_0x5e53c7(0x1e4)]&&(_0x380a6d===_0x386ed5[_0x5e53c7(0x2a1)]||_0x4f10ac===_0x4e873e[_0x5e53c7(0x2cd)])&&_0x575de2(_0x5e53c7(0x28b),{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x23a),'children':[_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x241),'children':'⚠️'}),_0x575de2('p',{'className':_0x5e53c7(0x1d9),'children':_0x3c835c(_0x4f10ac)})]})})]}),_0x575de2('div',{'className':_0x5e53c7(0x203),'children':_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x226),'children':[_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1bb),'children':[_0x5710b0('label',{'className':_0x5e53c7(0x25a),'children':[_0x575de2(_0x5e53c7(0x230),{'children':'🔑'}),'\x20',_0x19093a['t'](_0x5e53c7(0x2df)),_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x1d3),'children':'*'}),_0x53ba76&&_0x575de2('a',{'href':'javascript:void(0)','onClick':()=>_0x440314(!0x0),'className':_0x5e53c7(0x2de),'title':_0x19093a['t'](_0x5e53c7(0x243)),'children':_0x575de2(de,{})})]}),_0x575de2(_0x430dc6,{'type':_0x5e53c7(0x283),'placeholder':_0x19093a['t'](_0x5e53c7(0x2b1)),'value':_0x5da614,'onChange':_0x163e9b,'disabled':_0xa5d1ad,'autoComplete':'off'}),_0x575de2('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x19093a['t']('mcpConfig.apiKeyHint')})]}),_0x53ba76&&_0x233c60&&_0x5710b0('div',{'className':_0x5e53c7(0x2ce),'children':[_0x575de2('a',{'href':_0x5e53c7(0x268),'onClick':()=>_0x440314(!0x1),'className':_0x5e53c7(0x207),'title':_0x5e53c7(0x2b2),'children':_0x575de2(ve,{})}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2a8),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2c3),'children':_0x575de2(_0x5e53c7(0x230),{'className':'univer-text-blue-600','children':'🚀'})}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1a8),'children':[_0x575de2('h4',{'className':_0x5e53c7(0x2f0),'children':_0x19093a['t']('mcpConfig.apiApplyInfo.title')}),_0x575de2('p',{'className':_0x5e53c7(0x2e3),'children':_0x19093a['t'](_0x5e53c7(0x1b4))}),_0x575de2(_0x5e53c7(0x28b),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x5bc6d3&&_0x5710b0('a',{'href':_0x48a33a,'target':_0x5e53c7(0x1c2),'rel':'noopener\x20noreferrer','className':_0x5e53c7(0x27b),'children':[_0x575de2(_0x5e53c7(0x230),{'children':'🤖'}),_0x19093a['t'](_0x5e53c7(0x2b6)),_0x575de2('span',{'className':_0x5e53c7(0x2ab),'children':'↗'})]})}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1b1),'children':['✨','\x20',_0x19093a['t'](_0x5e53c7(0x200))]})]})]})]}),_0x31f1d9[_0x5e53c7(0x271)]&&_0x5710b0('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x5710b0('h4',{'className':_0x5e53c7(0x211),'children':[_0x575de2('span',{'children':'🔗'}),'\x20',_0x19093a['t']('mcpConfig.connectionInfo')]}),_0x5710b0(_0x5e53c7(0x28b),{'className':'univer-space-y-4','children':[_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x263),'children':[_0x575de2('p',{'className':_0x5e53c7(0x1de),'children':_0x19093a['t'](_0x5e53c7(0x2a9))}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1bb),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x254),'children':_0x19093a['t']('mcpConfig.configStepTitle')}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x235),'children':[_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x265),'children':[_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x202),'children':'1'}),_0x19093a['t'](_0x5e53c7(0x2c8))]}),_0x5710b0('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x575de2(_0x5e53c7(0x230),{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x19093a['t'](_0x5e53c7(0x1c6))]}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x265),'children':[_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x202),'children':'3'}),_0x19093a['t'](_0x5e53c7(0x2af))]})]})]})]}),_0x5710b0('div',{'className':_0x5e53c7(0x1bb),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x254),'children':_0x5e53c7(0x22d)}),_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x24e),'children':_0x575de2('pre',{'className':_0x5e53c7(0x29b),'children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0x4a8b09+_0x5e53c7(0x2a4)+(_0x5da614||_0x5e53c7(0x1c7))+_0x5e53c7(0x23d)})})]}),_0x5710b0('div',{'className':'univer-space-y-3','children':[_0x575de2('div',{'className':_0x5e53c7(0x254),'children':_0x19093a['t'](_0x5e53c7(0x274))}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x1bb),'children':[_0x5710b0(_0x5e53c7(0x28b),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x575de2(_0x5e53c7(0x28b),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x5710b0('div',{'className':_0x5e53c7(0x2fc),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2c1),'children':'univer_session_id:'}),_0x575de2('div',{'className':_0x5e53c7(0x213),'children':_0x19093a['t'](_0x5e53c7(0x1f7))})]})]}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2e4),'children':[_0x575de2('div',{'className':_0x5e53c7(0x1c5)}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2fc),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x2c1),'children':_0x5e53c7(0x228)}),_0x575de2(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x213),'children':_0x19093a['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x575de2(_0x3b7201,{'onClick':_0x53c8a8,'disabled':!_0x580c31||_0xa5d1ad,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0xa5d1ad?_0x5710b0(_0x5e53c7(0x230),{'className':_0x5e53c7(0x265),'children':[_0x575de2(_0x5e53c7(0x230),{'children':'⟲'}),_0x19093a['t']('mcpConfig.saving')]}):_0x5710b0(_0x5e53c7(0x230),{'className':_0x5e53c7(0x265),'children':[_0x575de2(le,{}),_0x19093a['t'](_0x5e53c7(0x2d0))]})}),_0x575de2('div',{'className':_0x5e53c7(0x1eb),'children':_0x5710b0('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x575de2(_0x5e53c7(0x230),{'className':_0x5e53c7(0x267),'children':'💡'}),_0x5710b0(_0x5e53c7(0x28b),{'className':_0x5e53c7(0x27c),'children':[_0x575de2(_0x5e53c7(0x28b),{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),_0x5710b0(_0x5e53c7(0x28b),{'children':['•',_0x19093a['t'](_0x5e53c7(0x297))]}),_0x5710b0(_0x5e53c7(0x28b),{'children':['•',_0x19093a['t'](_0x5e53c7(0x2a6))]})]})]})})]})})]});}const x=_0x5169db(0x2d2),re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object[_0x5169db(0x1ba)],sn=(_0x435d58,_0x25a78c,_0x3cd284,_0x291c37)=>{var _0x48c785=_0x5169db;for(var _0x255b72=_0x291c37>0x1?void 0x0:_0x291c37?on(_0x25a78c,_0x3cd284):_0x25a78c,_0x4d01ae=_0x435d58[_0x48c785(0x23e)]-0x1,_0x5c6ee7;_0x4d01ae>=0x0;_0x4d01ae--)(_0x5c6ee7=_0x435d58[_0x4d01ae])&&(_0x255b72=_0x5c6ee7(_0x255b72)||_0x255b72);return _0x255b72;},g=(_0x3aa3be,_0x3660f7)=>(_0x1ef2d5,_0x421301)=>_0x3660f7(_0x1ef2d5,_0x421301,_0x3aa3be);const j=_0x5169db(0x1f0),U=_0x5169db(0x1b6);let I=class extends _0x3dde06{constructor(_0x59c8b7,_0x3f1158,_0x58e0a6,_0x354a3a,_0x41ef37,_0x65d30c,_0x4c82a0,_0x4c300e,_0x1e20fc,_0x636d79){var _0x40bfa3=_0x5169db;super(),S(this,_0x40bfa3(0x224),new _0x1434d3(!0x1)),S(this,_0x40bfa3(0x1b0),new _0x1434d3({})),S(this,_0x40bfa3(0x2eb),new _0x1434d3({})),S(this,_0x40bfa3(0x2a7),new _0x1434d3('')),S(this,'_handleConfigSave',async _0x43544b=>{var _0x24713f=_0x40bfa3,_0xb57237,_0x20833b;this[_0x24713f(0x224)][_0x24713f(0x217)](!0x0);try{const _0x51465a=await this[_0x24713f(0x1c1)](_0x43544b);if(!_0x51465a[_0x24713f(0x1e3)]){this[_0x24713f(0x294)][_0x24713f(0x262)]({'type':_0x2465ca['Error'],'content':_0x51465a['errorMessage']||this[_0x24713f(0x284)]['t'](_0x24713f(0x205))});return;}_0x43544b[_0x24713f(0x25b)]?await this[_0x24713f(0x2e7)][_0x24713f(0x209)](j,_0x43544b[_0x24713f(0x25b)][_0x24713f(0x249)]()):await this[_0x24713f(0x2e7)][_0x24713f(0x2d9)](j),this[_0x24713f(0x2a7)][_0x24713f(0x217)](((_0xb57237=_0x43544b[_0x24713f(0x25b)])==null?void 0x0:_0xb57237['trim']())||''),this[_0x24713f(0x2ff)][_0x24713f(0x1b9)]({'Authorization':_0x24713f(0x236)+((_0x20833b=_0x43544b[_0x24713f(0x25b)])==null?void 0x0:_0x20833b[_0x24713f(0x249)]())}),this['_messageService'][_0x24713f(0x262)]({'type':_0x2465ca['Success'],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x9ce532=_0x24713f;this[_0x9ce532(0x1c0)][_0x9ce532(0x214)](U);},0x320);}catch(_0x5514f3){this['_logService'][_0x24713f(0x2c9)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x5514f3),this[_0x24713f(0x294)][_0x24713f(0x262)]({'type':_0x2465ca[_0x24713f(0x1d0)],'content':this[_0x24713f(0x284)]['t']('mcpConfig.configError')});}finally{this[_0x24713f(0x224)][_0x24713f(0x217)](!0x1);}}),(this[_0x40bfa3(0x1bd)]=_0x59c8b7,this[_0x40bfa3(0x1e6)]=_0x3f1158,this[_0x40bfa3(0x260)]=_0x58e0a6,this[_0x40bfa3(0x2e7)]=_0x354a3a,this[_0x40bfa3(0x1c0)]=_0x41ef37,this[_0x40bfa3(0x294)]=_0x65d30c,this[_0x40bfa3(0x2fb)]=_0x4c82a0,this[_0x40bfa3(0x284)]=_0x4c300e,this[_0x40bfa3(0x277)]=_0x1e20fc,this['_mcpConnectionController']=_0x636d79,this['_initConfigSync'](),this[_0x40bfa3(0x1c3)](),this[_0x40bfa3(0x2ea)]());}['showConfigPanel'](){var _0x10f61a=_0x5169db;const _0x51975d=this[_0x10f61a(0x260)]['getConfig'](x);_0x51975d!=null&&_0x51975d['showDeveloperTools']&&this[_0x10f61a(0x1c0)]['open']({'id':U,'title':{'title':this[_0x10f61a(0x284)]['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x29ff54=_0x10f61a;this[_0x29ff54(0x1c0)]['close'](U);}});}[_0x5169db(0x1e9)](){var _0x1e541d=_0x5169db;return this[_0x1e541d(0x1b0)][_0x1e541d(0x1ab)];}[_0x5169db(0x2ea)](){var _0x50c5d8=_0x5169db;this[_0x50c5d8(0x1b8)](this[_0x50c5d8(0x2fb)]['register'](_0x50c5d8(0x1d6),this['_createConfigPanelComponent']()));}[_0x5169db(0x25f)](){var _0x53e0bf=_0x5169db;return _0x23400d(()=>{var _0x24e852=_0x5e17,_0x33dcfc,_0xafd497,_0x26a6f2;return _0x575de2(tn,{'config':this[_0x24e852(0x2eb)][_0x24e852(0x1ab)],'mcpCoreConfig':this[_0x24e852(0x1b0)][_0x24e852(0x1ab)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x24e852(0x2ba)],'loading':this[_0x24e852(0x224)][_0x24e852(0x1ab)],'connectionStatus$':(_0x33dcfc=this['_mcpConnectionController'])==null?void 0x0:_0x33dcfc[_0x24e852(0x239)],'connectionError$':(_0xafd497=this[_0x24e852(0x2ff)])==null?void 0x0:_0xafd497['connectionError$'],'currentSessionId$':(_0x26a6f2=this[_0x24e852(0x2ff)])==null?void 0x0:_0x26a6f2[_0x24e852(0x25d)]});},this[_0x53e0bf(0x1bd)]);}[_0x5169db(0x26a)](){var _0x39c895=_0x5169db;this[_0x39c895(0x1b8)](this[_0x39c895(0x260)][_0x39c895(0x1d8)](_0x457454)[_0x39c895(0x2f5)](_0x1e07fc=>{var _0x13a208=_0x39c895;this[_0x13a208(0x1b0)][_0x13a208(0x217)](_0x1e07fc||{});}));const _0xefd604=this[_0x39c895(0x260)]['getConfig'](_0x457454);this[_0x39c895(0x1b0)][_0x39c895(0x217)](_0xefd604||{}),this[_0x39c895(0x1b8)](this[_0x39c895(0x260)]['subscribeConfigValue$'](x)['subscribe'](_0x5681a0=>{var _0x507ace=_0x39c895;this[_0x507ace(0x2eb)][_0x507ace(0x217)](_0x5681a0||{});}));const _0x300936=this['_configService'][_0x39c895(0x1b5)](x);this[_0x39c895(0x2eb)]['next'](_0x300936||{});}async['_loadStoredApiKey'](){var _0x5e1aaa=_0x5169db;const _0x4360c6=this[_0x5e1aaa(0x260)][_0x5e1aaa(0x1b5)](x);if(!(_0x4360c6!=null&&_0x4360c6[_0x5e1aaa(0x271)]))return;const _0x2c1c5d=await this['_localStorageService'][_0x5e1aaa(0x1aa)](j);_0x2c1c5d&&(this['_mcpConnectionController'][_0x5e1aaa(0x1b9)]({'Authorization':_0x5e1aaa(0x236)+_0x2c1c5d}),this[_0x5e1aaa(0x2a7)]['next'](_0x2c1c5d));}async['_validateConfig'](_0x3a56a8){var _0x5d02b6=_0x5169db;if(!_0x3a56a8[_0x5d02b6(0x25b)]||_0x3a56a8[_0x5d02b6(0x25b)][_0x5d02b6(0x249)]()[_0x5d02b6(0x23e)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x5d02b6(0x284)]['t'](_0x5d02b6(0x1f2))};if(_0x3a56a8[_0x5d02b6(0x25b)][_0x5d02b6(0x249)]()[_0x5d02b6(0x23e)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x5d02b6(0x284)]['t'](_0x5d02b6(0x255))};try{const _0xe96621=await this[_0x5d02b6(0x1bd)][_0x5d02b6(0x2c0)](_0x27fb1b)['validateApiKey'](_0x3a56a8[_0x5d02b6(0x25b)][_0x5d02b6(0x249)]());return _0xe96621[_0x5d02b6(0x1e3)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0xe96621[_0x5d02b6(0x2c9)]||this[_0x5d02b6(0x284)]['t'](_0x5d02b6(0x22f))};}catch(_0x3577cf){return console[_0x5d02b6(0x1ec)](_0x5d02b6(0x1c4),_0x3577cf),{'isValid':!0x0};}}};I=sn([g(0x0,_0x236043(_0x582310)),g(0x1,_0x1711f6),g(0x2,_0x3a4bae),g(0x3,_0x51515e),g(0x4,_0x499b1d),g(0x5,_0xdc7f2d),g(0x6,_0x236043(_0x43e4c3)),g(0x7,_0x236043(_0x4f4718)),g(0x8,_0x36ee80),g(0x9,_0x236043(_0x27fb1b))],I);const V={'id':_0x5169db(0x221),'type':_0x42ca93[_0x5169db(0x1d7)],'handler':async(_0x7ce2be,_0x4904de)=>(_0x7ce2be[_0x5169db(0x2c0)](I)['showConfigPanel'](),!0x0)};function pe(_0x3adf0b,_0x51e863){var _0x5d2210=_0x5169db;switch(_0x3adf0b){case _0x386ed5[_0x5d2210(0x299)]:return'mcpStatus.disconnected';case _0x386ed5[_0x5d2210(0x1ea)]:return _0x5d2210(0x1ef);case _0x386ed5[_0x5d2210(0x25c)]:return'mcpStatus.connected';case _0x386ed5[_0x5d2210(0x2a1)]:switch(_0x51e863){case _0x4e873e[_0x5d2210(0x2cd)]:return _0x5d2210(0x285);case _0x4e873e[_0x5d2210(0x1cd)]:return'mcpStatus.sessionOccupied';case _0x4e873e[_0x5d2210(0x2d7)]:return'mcpStatus.networkError';case _0x4e873e[_0x5d2210(0x2da)]:return'mcpStatus.maxRetriesExceeded';default:return _0x5d2210(0x1f4);}case _0x386ed5[_0x5d2210(0x2a3)]:return _0x5d2210(0x2b7);default:return'mcpStatus.unknown';}}function cn(_0x5d1440,_0x46c065,_0x1245ee,_0x57f7c0=!0x0){var _0x12581e=_0x5169db;const _0x1ed301=pe(_0x5d1440,_0x46c065),_0x5c011e=_0x1245ee['t'](_0x1ed301);return _0x57f7c0?_0x5d1440===_0x386ed5[_0x12581e(0x299)]&&_0x46c065===_0x4e873e[_0x12581e(0x2cd)]?_0x5c011e+_0x12581e(0x234)+_0x1245ee['t'](_0x12581e(0x1a1)):_0x5d1440===_0x386ed5[_0x12581e(0x25c)]?''+_0x5c011e:_0x5d1440===_0x386ed5[_0x12581e(0x299)]||_0x5d1440===_0x386ed5[_0x12581e(0x2a1)]?_0x5c011e+_0x12581e(0x234)+_0x1245ee['t'](_0x12581e(0x29c)):_0x5c011e:_0x5c011e;}function an(_0x2be353){var _0x575cda=_0x5169db;switch(_0x2be353){case _0x386ed5[_0x575cda(0x25c)]:return _0x575cda(0x23b);case _0x386ed5['CONNECTING']:case _0x386ed5[_0x575cda(0x2a3)]:return _0x575cda(0x210);case _0x386ed5['FAILED']:case _0x386ed5['DISCONNECTED']:return'univer-text-red-500';default:return _0x575cda(0x28a);}}function un(_0x56e197){var _0x43cc13=_0x5169db;const {status$:_0x3330c4,error$:_0x491d84,onConfigure:_0x3d3920,showClickable:_0x43a7e7=!0x0}=_0x56e197,_0x1da5ab=_0x15ca67(_0x3330c4,_0x386ed5[_0x43cc13(0x299)]),_0x5770c3=_0x15ca67(_0x491d84,_0x4e873e[_0x43cc13(0x1e4)]),_0x554d91=_0x3f5854(_0x4f4718),_0x4596f6=_0x1da5ab===_0x386ed5[_0x43cc13(0x25c)];_0x1da5ab===_0x386ed5[_0x43cc13(0x1ea)]||_0x386ed5[_0x43cc13(0x2a3)];const _0x3b7c41=_0x554d91['t'](pe(_0x1da5ab,_0x5770c3)),_0x3a2910=cn(_0x1da5ab,_0x5770c3,_0x554d91,_0x43a7e7),_0x2ee5fa=an(_0x1da5ab),_0x53f942=_0x4596f6?_0x575de2(ge,{}):_0x575de2(fe,{}),_0x31616a=_0x30b2c7(()=>{_0x43a7e7&&_0x3d3920&&_0x3d3920();},[_0x43a7e7,_0x3d3920]);function _0x40d69d(){var _0x5db606=_0x43cc13;return _0x5710b0(_0x5db606(0x28b),{'className':_0x3a7b1a('univer-flex\x20univer-items-center',_0x43a7e7&&_0x3d3920&&'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),'onClick':_0x43a7e7&&_0x3d3920?_0x31616a:void 0x0,'children':[_0x575de2(_0x5db606(0x28b),{'className':_0x3a7b1a(_0x5db606(0x1e0),_0x2ee5fa),'children':_0x53f942}),_0x575de2(_0x5db606(0x28b),{'className':_0x5db606(0x29f),'children':_0x3b7c41})]});}return _0x575de2(_0x7daf80,{'title':_0x3a2910,'placement':'bottom','children':_0x40d69d()});}function _0x5e17(_0x482276,_0x23752d){var _0x23e62f=_0x23e6();return _0x5e17=function(_0x5e17ff,_0x4cf208){_0x5e17ff=_0x5e17ff-0x1a1;var _0x3458fc=_0x23e62f[_0x5e17ff];return _0x3458fc;},_0x5e17(_0x482276,_0x23752d);}var ln=Object[_0x5169db(0x1ba)],vn=(_0x2e8f00,_0x4555bc,_0x6a5504,_0x4fd7ec)=>{var _0xeef6de=_0x5169db;for(var _0x472f90=_0x4fd7ec>0x1?void 0x0:_0x4fd7ec?ln(_0x4555bc,_0x6a5504):_0x4555bc,_0x5106d4=_0x2e8f00[_0xeef6de(0x23e)]-0x1,_0x5124aa;_0x5106d4>=0x0;_0x5106d4--)(_0x5124aa=_0x2e8f00[_0x5106d4])&&(_0x472f90=_0x5124aa(_0x472f90)||_0x472f90);return _0x472f90;},A=(_0xe791b7,_0x176406)=>(_0x4233f7,_0x5ea39f)=>_0x176406(_0x4233f7,_0x5ea39f,_0xe791b7);let O=class extends _0x3dde06{constructor(_0x3af008,_0xed81a5,_0x13c1d4,_0x3f6322){var _0x238816=_0x5169db;super(),this[_0x238816(0x1bd)]=_0x3af008,this[_0x238816(0x212)]=_0xed81a5,this[_0x238816(0x1e6)]=_0x13c1d4,this[_0x238816(0x260)]=_0x3f6322,this['_initAutoConnect'](),this['_initStatusComponent']();}[_0x5169db(0x1f9)](){var _0x3f16ee=_0x5169db;const _0xf02e32=this[_0x3f16ee(0x260)][_0x3f16ee(0x1b5)](x);_0xf02e32!=null&&_0xf02e32['showDeveloperTools']&&(this['_connectionController'][_0x3f16ee(0x24a)]=!0x1);}[_0x5169db(0x2a2)](){var _0x47c5d6=_0x5169db;const _0x363124=this[_0x47c5d6(0x260)][_0x47c5d6(0x1b5)](x);(_0x363124==null?void 0x0:_0x363124['showStatus'])!==!0x1&&this['disposeWithMe'](this['_uiPartsService'][_0x47c5d6(0x26e)](_0x906c3b[_0x47c5d6(0x2bd)],()=>{var _0x58d7ba=_0x47c5d6,_0x2b5aa1;return _0x23400d(dn({'status$':this[_0x58d7ba(0x212)][_0x58d7ba(0x239)],'error$':this['_connectionController'][_0x58d7ba(0x1ff)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x2b5aa1=_0x363124==null?void 0x0:_0x363124[_0x58d7ba(0x271)])!=null?_0x2b5aa1:!0x1}),this[_0x58d7ba(0x1bd)]);}));}[_0x5169db(0x247)](){var _0x332aec=_0x5169db;this[_0x332aec(0x1bd)]['get'](I)[_0x332aec(0x1f3)]();}};O=vn([A(0x0,_0x236043(_0x582310)),A(0x1,_0x236043(_0x27fb1b)),A(0x2,_0x1711f6),A(0x3,_0x3a4bae)],O);function dn(_0x19e388){const {status$:_0x26f485,error$:_0x216c85,onConfigure:_0x319cf9,showClickable:_0x30e02a}=_0x19e388;return function(){return _0x575de2(un,{'status$':_0x26f485,'error$':_0x216c85,'onConfigure':_0x319cf9,'showClickable':_0x30e02a});};}function fn(_0x3180d4){var _0x47e93f=_0x5169db;return{'id':V['id'],'type':_0x515621[_0x47e93f(0x246)],'icon':_0x47e93f(0x2f9),'title':_0x47e93f(0x1b2),'tooltip':_0x47e93f(0x1b2)};}const gn={[_0x173307[_0x5169db(0x2c4)]]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};var pn=Object[_0x5169db(0x1ba)],hn=(_0x32b437,_0x3ccaf8,_0x22bd04,_0xa0e8e5)=>{var _0x5c0ab8=_0x5169db;for(var _0x473660=_0xa0e8e5>0x1?void 0x0:_0xa0e8e5?pn(_0x3ccaf8,_0x22bd04):_0x3ccaf8,_0x17a91c=_0x32b437[_0x5c0ab8(0x23e)]-0x1,_0xd6520e;_0x17a91c>=0x0;_0x17a91c--)(_0xd6520e=_0x32b437[_0x17a91c])&&(_0x473660=_0xd6520e(_0x473660)||_0x473660);return _0x473660;},te=(_0x2cb64d,_0x298314)=>(_0xf9ad2a,_0x3e29a5)=>_0x298314(_0xf9ad2a,_0x3e29a5,_0x2cb64d);let k=class extends _0x3dde06{constructor(_0x1b8e64,_0x1f3498){var _0x112c97=_0x5169db;super(),this['_commandService']=_0x1b8e64,this[_0x112c97(0x21c)]=_0x1f3498,this['_initializeCommands'](),this[_0x112c97(0x1f8)]();}[_0x5169db(0x2f3)](){[V]['forEach'](_0x51fb7a=>{var _0x2b10b5=_0x5e17;this[_0x2b10b5(0x1b8)](this[_0x2b10b5(0x21e)][_0x2b10b5(0x2e1)](_0x51fb7a));});}[_0x5169db(0x1f8)](){var _0x1948e3=_0x5169db;this['_menuManagerService'][_0x1948e3(0x272)](gn);}};k=hn([te(0x0,_0x39e99e),te(0x1,_0x5a4a7b)],k);const On={'mcpStatus':{'disconnected':_0x5169db(0x26c),'connecting':_0x5169db(0x286),'connected':_0x5169db(0x240),'failed':_0x5169db(0x1db),'retrying':_0x5169db(0x1af),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5169db(0x293),'networkError':_0x5169db(0x21b),'maxRetriesExceeded':_0x5169db(0x1ca),'clickToConnect':_0x5169db(0x2d3),'clickToConfigure':_0x5169db(0x1da)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x5169db(0x250),'apiKey':_0x5169db(0x26b),'apiKeyPlaceholder':_0x5169db(0x2ae),'apiKeyHint':_0x5169db(0x256),'enableAuth':_0x5169db(0x2e8),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5169db(0x24d),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5169db(0x20f),'configStepTitle':_0x5169db(0x227),'configStep1':_0x5169db(0x2f1),'configStep2':_0x5169db(0x223),'configStep3':_0x5169db(0x231),'sessionId':'Session\x20ID','sessionIdDescription':_0x5169db(0x290),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5169db(0x1ae),'maxRetries':_0x5169db(0x22b),'save':'Save\x20Configuration','saving':_0x5169db(0x245),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5169db(0x29d),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5169db(0x2e2),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x5169db(0x2bc)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5169db(0x222),'invalidConfig':_0x5169db(0x2ac),'invalidApiKey':_0x5169db(0x275)},'connectionStatus':{'disconnected':_0x5169db(0x2c6),'connecting':'Connecting...','connected':_0x5169db(0x2d5),'failed':'Connection\x20Failed','retrying':_0x5169db(0x287)},'connectionError':{'unauthorized':_0x5169db(0x1fb),'sessionOccupied':_0x5169db(0x1be),'networkError':_0x5169db(0x208),'maxRetriesExceeded':_0x5169db(0x1d2)}}},kn={'mcpStatus':{'disconnected':_0x5169db(0x1f1),'connecting':_0x5169db(0x1df),'connected':'MCP\x20已连接','failed':_0x5169db(0x2dc),'retrying':_0x5169db(0x1c9),'unknown':_0x5169db(0x27a),'unauthorized':_0x5169db(0x266),'sessionOccupied':_0x5169db(0x28d),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x5169db(0x20e),'clickToConfigure':_0x5169db(0x1dd)},'mcpConfig':{'title':_0x5169db(0x257),'description':_0x5169db(0x280),'apiKey':_0x5169db(0x258),'apiKeyPlaceholder':_0x5169db(0x1cc),'apiKeyHint':_0x5169db(0x1a4),'enableAuth':_0x5169db(0x22c),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x5169db(0x29e),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x5169db(0x1a3),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x5169db(0x1a6),'sessionId':_0x5169db(0x1c8),'sessionIdDescription':_0x5169db(0x278),'authorizationDescription':_0x5169db(0x218),'configParameters':_0x5169db(0x2f7),'maxRetries':'最大重试次数','save':'保存配置','saving':'保存中...','note1':_0x5169db(0x1cf),'note2':_0x5169db(0x279),'configSaved':_0x5169db(0x273),'configError':_0x5169db(0x2f6),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x5169db(0x2c5),'univerAiLabel':_0x5169db(0x27d),'getStarted':_0x5169db(0x2fa)},'validation':{'apiKeyRequired':_0x5169db(0x1b3),'apiKeyTooShort':_0x5169db(0x1ee),'invalidConfig':'配置无效','invalidApiKey':_0x5169db(0x1d5)},'connectionStatus':{'disconnected':_0x5169db(0x1f6),'connecting':_0x5169db(0x253),'connected':'已连接','failed':_0x5169db(0x1a2),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x5169db(0x20b),'sessionOccupied':_0x5169db(0x2e5),'networkError':_0x5169db(0x201),'maxRetriesExceeded':_0x5169db(0x276)}}};var mn=Object[_0x5169db(0x27f)],Cn=Object[_0x5169db(0x1ba)],yn=(_0x200bd4,_0x3643d9,_0x5e7674)=>_0x3643d9 in _0x200bd4?mn(_0x200bd4,_0x3643d9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e7674}):_0x200bd4[_0x3643d9]=_0x5e7674,_n=(_0x3aca8d,_0x2f3ec4,_0x1a0d27,_0x75ddf4)=>{var _0x190770=_0x5169db;for(var _0x38dbc7=_0x75ddf4>0x1?void 0x0:_0x75ddf4?Cn(_0x2f3ec4,_0x1a0d27):_0x2f3ec4,_0x3ce2f1=_0x3aca8d[_0x190770(0x23e)]-0x1,_0x1f9239;_0x3ce2f1>=0x0;_0x3ce2f1--)(_0x1f9239=_0x3aca8d[_0x3ce2f1])&&(_0x38dbc7=_0x1f9239(_0x38dbc7)||_0x38dbc7);return _0x38dbc7;},E=(_0x3871dd,_0x3795c5)=>(_0x5c6f3d,_0x3b5a4c)=>_0x3795c5(_0x5c6f3d,_0x3b5a4c,_0x3871dd),xn=(_0xa2d268,_0x33969b,_0x38e68f)=>yn(_0xa2d268,_0x33969b+'',_0x38e68f);let L=class extends _0x304d6d{constructor(_0x360f24=re,_0x4a9410,_0x2a4b03,_0x23739b,_0x4981bc,_0x23e69e){var _0x13d868=_0x5169db;super(),this[_0x13d868(0x2ef)]=_0x360f24,this['_injector']=_0x4a9410,this[_0x13d868(0x260)]=_0x2a4b03,this['_uiPartsService']=_0x23739b,this['_localStorageService']=_0x4981bc,this[_0x13d868(0x284)]=_0x23e69e;const {..._0x1323a2}=_0x1ce813({},re,this['_config']);this[_0x13d868(0x260)][_0x13d868(0x296)](x,_0x1323a2);}async[_0x5169db(0x237)](){var _0x2d83d0=_0x5169db;const _0x3a555a=[[O],[I],[k]];this[_0x2d83d0(0x1bd)][_0x2d83d0(0x1fe)](_0x4a4ff2)||_0x3a555a[_0x2d83d0(0x295)]([_0x4a4ff2,{'useClass':_0x1f9c88}]),_0x3a555a['forEach'](_0x32d30c=>this[_0x2d83d0(0x1bd)]['add'](_0x32d30c)),this[_0x2d83d0(0x1bd)][_0x2d83d0(0x2c0)](O),this[_0x2d83d0(0x1bd)][_0x2d83d0(0x2c0)](I),this[_0x2d83d0(0x1bd)]['get'](k);}};xn(L,_0x5169db(0x298),_0x5169db(0x23f)),L=_n([_0x37ecd6(_0x20d2ba),E(0x1,_0x236043(_0x582310)),E(0x2,_0x3a4bae),E(0x3,_0x1711f6),E(0x4,_0x51515e),E(0x5,_0x236043(_0x4f4718))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};
1
+ var _0x23152a=_0x5160;(function(_0x4f67c5,_0x3f4912){var _0x16d57b=_0x5160,_0x59c410=_0x4f67c5();while(!![]){try{var _0x2088cf=parseInt(_0x16d57b(0x113))/0x1+parseInt(_0x16d57b(0x23a))/0x2*(-parseInt(_0x16d57b(0x1df))/0x3)+-parseInt(_0x16d57b(0x1f4))/0x4+parseInt(_0x16d57b(0x1fa))/0x5+-parseInt(_0x16d57b(0x24f))/0x6*(-parseInt(_0x16d57b(0x12a))/0x7)+-parseInt(_0x16d57b(0x21e))/0x8*(-parseInt(_0x16d57b(0x1cc))/0x9)+-parseInt(_0x16d57b(0x145))/0xa;if(_0x2088cf===_0x3f4912)break;else _0x59c410['push'](_0x59c410['shift']());}catch(_0x59bea3){_0x59c410['push'](_0x59c410['shift']());}}}(_0x27d3,0x1b3b2));var we=Object[_0x23152a(0x1fe)],Ee=(_0x5a159e,_0x5d4acc,_0x4dd671)=>_0x5d4acc in _0x5a159e?we(_0x5a159e,_0x5d4acc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4dd671}):_0x5a159e[_0x5d4acc]=_0x4dd671,S=(_0x5e72be,_0x10d7d2,_0x5d855a)=>Ee(_0x5e72be,typeof _0x10d7d2!='symbol'?_0x10d7d2+'':_0x10d7d2,_0x5d855a);import{LocaleService as _0x29ac55,Inject as _0x10c81c,Injector as _0x5b2e98,IConfigService as _0x1496de,ILocalStorageService as _0x118e2e,ILogService as _0x31a0e3,Disposable as _0x460ffb,CommandType as _0x1911c4,ICommandService as _0xf4c6c0,DependentOn as _0x2f5397,Plugin as _0x3d4f76,merge as _0x16b0a4}from'@univerjs/core';import{jsxs as _0x200cfc,jsx as _0xbc2bc3}from'react/jsx-runtime';import{MCPConnectionStatus as _0x4d5d6a,MCPConnectionError as _0x5b89c7,MCPConnectionController as _0x260dce,MCP_PLUGIN_CONFIG_KEY as _0x10b2f0,UniverMCPPlugin as _0xfd0ba3}from'@univerjs-pro/mcp';import{Input as _0x1cf5dc,Button as _0x3a18fc,MessageType as _0x32a88a,Tooltip as _0x28285f,clsx as _0x1e22a7}from'@univerjs/design';import{useDependency as _0xec9461,useObservable as _0x51a1cc,IUIPartsService as _0x1846c7,IDialogService as _0x382591,IMessageService as _0x43578f,ComponentManager as _0x5a9e01,connectInjector as _0x16db0e,BuiltInUIPart as _0x2fa4e8,MenuItemType as _0xd12530,RibbonStartGroup as _0x529546,IMenuManagerService as _0x1033be}from'@univerjs/ui';import{BehaviorSubject as _0x25ddcd}from'rxjs';import{forwardRef as _0x3cd0b1,useRef as _0x2c9c56,createElement as _0x88ee49,useState as _0x39ca44,useCallback as _0x38eed3}from'react';import{ISocketService as _0x28fc4b,WebSocketService as _0x5e8ef7}from'@univerjs/network';var f=function(){var _0x2161db=_0x23152a;return f=Object['assign']||function(_0x54f32a){var _0x3bcb27=_0x5160;for(var _0xf7f656,_0x30cae2=0x1,_0x57c110=arguments[_0x3bcb27(0x239)];_0x30cae2<_0x57c110;_0x30cae2++){_0xf7f656=arguments[_0x30cae2];for(var _0x1a84d1 in _0xf7f656)Object[_0x3bcb27(0x129)][_0x3bcb27(0x1ab)][_0x3bcb27(0x25b)](_0xf7f656,_0x1a84d1)&&(_0x54f32a[_0x1a84d1]=_0xf7f656[_0x1a84d1]);}return _0x54f32a;},f[_0x2161db(0x154)](this,arguments);},Ye=function(_0x37a530,_0x493666){var _0x5144b0=_0x23152a,_0x2438cd={};for(var _0x49b8a1 in _0x37a530)Object['prototype'][_0x5144b0(0x1ab)][_0x5144b0(0x25b)](_0x37a530,_0x49b8a1)&&_0x493666[_0x5144b0(0x1f2)](_0x49b8a1)<0x0&&(_0x2438cd[_0x49b8a1]=_0x37a530[_0x49b8a1]);if(_0x37a530!=null&&typeof Object[_0x5144b0(0x20e)]=='function'){for(var _0x2dc61c=0x0,_0x49b8a1=Object[_0x5144b0(0x20e)](_0x37a530);_0x2dc61c<_0x49b8a1[_0x5144b0(0x239)];_0x2dc61c++)_0x493666['indexOf'](_0x49b8a1[_0x2dc61c])<0x0&&Object['prototype'][_0x5144b0(0x212)][_0x5144b0(0x25b)](_0x37a530,_0x49b8a1[_0x2dc61c])&&(_0x2438cd[_0x49b8a1[_0x2dc61c]]=_0x37a530[_0x49b8a1[_0x2dc61c]]);}return _0x2438cd;},w=_0x3cd0b1(function(_0x1c43a5,_0x1a4dd9){var _0x36b053=_0x23152a,_0x534a3d=_0x1c43a5[_0x36b053(0x117)],_0x4f52de=_0x1c43a5['id'],_0x31c433=_0x1c43a5[_0x36b053(0x13e)],_0x33ad60=_0x1c43a5[_0x36b053(0x148)],_0x3f4fa9=Ye(_0x1c43a5,['icon','id',_0x36b053(0x13e),'extend']),_0xeab17d=_0x36b053(0x243)[_0x36b053(0x1b0)](_0x4f52de,'\x20')['concat'](_0x31c433||'')[_0x36b053(0x1cd)](),_0x51a64c=_0x2c9c56('_'[_0x36b053(0x1b0)](Xe()));return ue(_0x534a3d,''[_0x36b053(0x1b0)](_0x4f52de),{'defIds':_0x534a3d[_0x36b053(0x1b6)],'idSuffix':_0x51a64c['current']},f({'ref':_0x1a4dd9,'className':_0xeab17d},_0x3f4fa9),_0x33ad60);});function ue(_0xaf2a06,_0x58a108,_0x33531e,_0x25f027,_0x4c81dc){var _0x56bf3e=_0x23152a;return _0x88ee49(_0xaf2a06[_0x56bf3e(0x1e3)],f(f({'key':_0x58a108},Ze(_0xaf2a06,_0x33531e,_0x4c81dc)),_0x25f027),(qe(_0xaf2a06,_0x33531e)['children']||[])[_0x56bf3e(0x1e9)](function(_0x4adb08,_0x31a7c2){var _0x1370b1=_0x56bf3e;return ue(_0x4adb08,''['concat'](_0x58a108,'-')[_0x1370b1(0x1b0)](_0xaf2a06[_0x1370b1(0x1e3)],'-')['concat'](_0x31a7c2),_0x33531e,void 0x0,_0x4c81dc);}));}function Ze(_0x3c912d,_0x42b26c,_0x53b44e){var _0x28326b=_0x23152a,_0x55966d=f({},_0x3c912d[_0x28326b(0x137)]);_0x53b44e!=null&&_0x53b44e[_0x28326b(0x10b)]&&_0x55966d[_0x28326b(0x16d)]==='colorChannel1'&&(_0x55966d[_0x28326b(0x16d)]=_0x53b44e[_0x28326b(0x10b)]),_0x3c912d['tag']===_0x28326b(0x208)&&_0x55966d['id']&&(_0x55966d['id']=_0x55966d['id']+_0x42b26c[_0x28326b(0x1e6)]),Object[_0x28326b(0x122)](_0x55966d)[_0x28326b(0x1e5)](function(_0x4ed912){var _0x3f4399=_0x28326b,_0x95bd23=_0x4ed912[0x0],_0x33870c=_0x4ed912[0x1];_0x95bd23==='mask'&&typeof _0x33870c==_0x3f4399(0x20f)&&(_0x55966d[_0x95bd23]=_0x33870c[_0x3f4399(0x175)](/url\(#(.*)\)/,_0x3f4399(0x260)[_0x3f4399(0x1b0)](_0x42b26c[_0x3f4399(0x1e6)],')')));});var _0x4ac42f=_0x42b26c[_0x28326b(0x1b6)];return!_0x4ac42f||_0x4ac42f['length']===0x0||(_0x3c912d[_0x28326b(0x1e3)]==='use'&&_0x55966d['xlink:href']&&(_0x55966d[_0x28326b(0x1b3)]=_0x55966d[_0x28326b(0x1b3)]+_0x42b26c[_0x28326b(0x1e6)]),Object[_0x28326b(0x122)](_0x55966d)[_0x28326b(0x1e5)](function(_0xfef017){var _0x26079e=_0x28326b,_0x24fff2=_0xfef017[0x0],_0x2feb6d=_0xfef017[0x1];typeof _0x2feb6d=='string'&&(_0x55966d[_0x24fff2]=_0x2feb6d['replace'](/url\(#(.*)\)/,_0x26079e(0x260)[_0x26079e(0x1b0)](_0x42b26c[_0x26079e(0x1e6)],')')));})),_0x55966d;}function qe(_0x26ce21,_0x1cb27d){var _0x5dfefe=_0x23152a,_0x368b81,_0x16def6=_0x1cb27d[_0x5dfefe(0x1b6)];return!_0x16def6||_0x16def6[_0x5dfefe(0x239)]===0x0?_0x26ce21:_0x26ce21[_0x5dfefe(0x1e3)]===_0x5dfefe(0x153)&&(!((_0x368b81=_0x26ce21[_0x5dfefe(0x173)])===null||_0x368b81===void 0x0)&&_0x368b81[_0x5dfefe(0x239)])?f(f({},_0x26ce21),{'children':_0x26ce21['children'][_0x5dfefe(0x1e9)](function(_0x268212){var _0x300e4e=_0x5dfefe;return typeof _0x268212[_0x300e4e(0x137)]['id']==_0x300e4e(0x20f)&&_0x16def6&&_0x16def6[_0x300e4e(0x19c)](_0x268212[_0x300e4e(0x137)]['id'])?f(f({},_0x268212),{'attrs':f(f({},_0x268212[_0x300e4e(0x137)]),{'id':_0x268212['attrs']['id']+_0x1cb27d[_0x300e4e(0x1e6)]})}):_0x268212;})}):_0x26ce21;}function Xe(){var _0x417906=_0x23152a;return Math['random']()[_0x417906(0x1d4)](0x24)['substring'](0x2,0x8);}w[_0x23152a(0x227)]='UniverIcon';var Je={'tag':_0x23152a(0x1da),'attrs':{'xmlns':_0x23152a(0x1e8),'fill':'none','viewBox':_0x23152a(0x240),'width':_0x23152a(0x21b),'height':'1em'},'children':[{'tag':_0x23152a(0x1f6),'attrs':{'fill':_0x23152a(0x1d8),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':_0x23152a(0x123),'clipRule':'evenodd'}}]},le=_0x3cd0b1(function(_0x3825af,_0xfe4203){var _0x50c7f7=_0x23152a;return _0x88ee49(w,Object[_0x50c7f7(0x249)]({},_0x3825af,{'id':_0x50c7f7(0x23e),'ref':_0xfe4203,'icon':Je}));});le[_0x23152a(0x227)]=_0x23152a(0x1eb);var Qe={'tag':_0x23152a(0x1da),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x23152a(0x1fd),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x23152a(0x21b)},'children':[{'tag':_0x23152a(0x1f6),'attrs':{'stroke':_0x23152a(0x1d8),'d':_0x23152a(0x17f),'strokeLinecap':_0x23152a(0x107),'strokeLinejoin':_0x23152a(0x107),'strokeWidth':1.33}},{'tag':_0x23152a(0x1f6),'attrs':{'stroke':_0x23152a(0x1d8),'d':_0x23152a(0x179),'strokeLinecap':_0x23152a(0x107),'strokeLinejoin':_0x23152a(0x107),'strokeWidth':1.33}}]},ve=_0x3cd0b1(function(_0x5e6026,_0x53b410){var _0x3aff35=_0x23152a;return _0x88ee49(w,Object[_0x3aff35(0x249)]({},_0x5e6026,{'id':_0x3aff35(0x182),'ref':_0x53b410,'icon':Qe}));});ve[_0x23152a(0x227)]='CloseSmallSingle';function _0x27d3(){var _0x506a92=['currentColor','mcpConfig.connectionStatus.connected','svg','保存中...','Max\x20Retries','FAILED','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','81aUxriQ','mcpStatus.connecting','连接中...','CONNECTED','tag','_config','forEach','idSuffix','API\x20key\x20with\x20Bearer\x20prefix.','http://www.w3.org/2000/svg','map','MCP:\x20Network\x20Error','CheckMarkIcon','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer.ai','配置无效','MCP\x20Retrying...','mcpStatus.maxRetriesExceeded','_initStatusComponent','indexOf','mcpStatus.clickToConnect','859224mwdoxC','Univer\x20AI\x20控制台','path','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','几秒钟内获取您的\x20API\x20密钥','bottom','1077190yEUyMB','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','none','defineProperty','connectionError$','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.authorizationDescription','mcpConfig.connectionStatus.connecting','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','warn','mcpConfig.connectionError.maxRetriesExceeded','Connection\x20Failed','isValid','mask','MCP\x20连接中...','univer-bg-gray-500','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','_injector','MCP:\x20会话\x20ID\x20已被占用','getOwnPropertySymbols','string','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','<API_KEY>','propertyIsEnumerable','_localStorageService','javascript:void(0)','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','span','univer-flex-shrink-0\x20univer-text-red-500','add','on-line-icon_clip0_910_349','MAX_RETRIES_EXCEEDED','1em','pre','mcpConfig.configParameters','274960YnCDjU','mcpConfig.sessionIdDescription','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','BUTTON','mcpConfig.validation.apiKeyTooShort','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','_configService','text','univer-flex-1','displayName','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','univer-text-sm\x20univer-text-gray-500','univer-flex\x20univer-items-center\x20univer-gap-2','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-flex\x20univer-items-center','M0\x200H16V16H0z','Enable\x20authentication\x20for\x20secure\x20connections','univer-flex\x20univer-items-start\x20univer-gap-3','univer-space-y-2','mcpConfig.connectionStatus.failed','_initializeMenus','Click\x20to\x20configure\x20MCP','Disconnected','_createConfigPanelComponent','univer-flex\x20univer-flex-wrap\x20univer-gap-2','启用身份验证','mcpConfig.validation.apiKeyRequired','length','2110BNYFUn','What\x20is\x20API\x20Key?','_handleConfigure','on-line-icon','check-mark-icon','MCPConfigPanel','0\x200\x2016\x2016','univer-text-green-500','getConfig','univerjs-icon\x20univerjs-icon-','mcpConfig.save','mcpStatus.failed','_componentManager','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','assign','超出最大重试次数,请稍后再试','value','univer-mr-2\x20univer-flex\x20univer-text-xl','MCP\x20Unknown\x20Status','OffLineIcon','6fXyKML','Enter\x20your\x20API\x20key','get','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','getCurrentConfig','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','带有\x20Bearer\x20前缀的\x20API\x20密钥。','重连中...','open','_logService','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','translate(.97)','call','MCP\x20重连中...','\x20-\x20','启用身份验证以获得安全连接','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','url(#$1','_validateConfig','MCP:\x20超出最大重试次数','Retrying...','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_registerComponent','mcpConfig.apiApplyInfo.getStarted','univer-flex\x20univer-items-start\x20univer-gap-2','round','univer-text-white','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','OnLineIcon','colorChannel1','url(#off-line-icon_clip0_910_343)','pluginName','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.apiApplyInfo.univerAiLabel','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','mcpConfig.connectionStatus.disconnected','MCP\x20已断开','72664mXcqVz','配置保存成功','API\x20key\x20is\x20required','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','icon','setItem','_localeService','label','_messageService','您的\x20API\x20密钥安全存储在本地存储中','_mcpConnectionController','_loading$','mcpConfig.apiKeyHint','Error','mcpConfig.apiKeyPlaceholder','entries','evenodd','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','Configuration\x20Parameters:','mcpStatus.sessionOccupied','univer-flex\x20univer-gap-3','MCP\x20连接失败','prototype','983794yDOKsX','配置更改将立即生效','会话ID','Close','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','off-line-icon_clip0_910_343','mcpConfig.connectionInfo','univer-bg-green-500','univer-text-blue-600','COMMAND','MCP\x20Connection\x20Failed','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','attrs','MCP:\x20网络错误','您的\x20API\x20密钥将在此浏览器中本地存储','mcpConfig.validation.invalidApiKey','https://console.univer.plus','UNAUTHORIZED','clipPath','className','将配置添加到您的\x20MCP\x20客户端设置文件中','mcp-ui.command.openConfigPanel','univer-font-medium','univer-flex\x20univer-items-center\x20univer-gap-3','配置参数:','CONNECTING','1081850UEuPXe','univer-text-xs\x20univer-text-gray-500','getOwnPropertyDescriptor','extend','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Save\x20Configuration','mcpConfig.configStep3','Copy\x20the\x20JSON\x20configuration\x20below','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','subscribe','RETRYING','errorMessage','NETWORK_ERROR','defs','apply','OTHERS','Connected','showConfigPanel','Connecting...','MCP\x20客户端配置','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','div','white','MCP\x20Client\x20Configuration','最大重试次数','mcpStatus.unauthorized','mcp-config-dialog','onStarting','mcpConfig.saving','sessionId$','show','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.apiApplyInfo.title','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpConfig.connectionError.networkError','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-text-yellow-500','_initConfigSync','fill','API\x20密钥长度至少需要\x2010\x20位','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','mergeMenu','mcp.apiKey','_initializeCommands','children','mcpConfig.connectionError.unauthorized','replace','未连接','setConfig','univer-space-y-5','M5.21243\x2012.287L11.8791\x205.62036','Get\x20your\x20API\x20key\x20in\x20seconds','_connectionController','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','connectionStatus$','M5.21243\x205.62036L11.8791\x2012.287','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','请输入您的\x20API\x20密钥','close-small-single','close','validateApiKey','复制以下\x20JSON\x20配置','API\x20密钥不能为空','_loadStoredApiKey','_initAutoConnect','DISCONNECTED','已连接','next','_uiPartsService','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','mcpConfig.configError','mcpConfig.configSaved','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpServerUrl','enableAutoConnect','univer-text-xs\x20univer-text-gray-600','_mcpCoreConfig$','mcpConfig.note1','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','showDeveloperTools','MCP:\x20Session\x20ID\x20Occupied','网络连接错误,请检查您的网络连接','noopener\x20noreferrer','includes','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','将以下配置添加到您的\x20MCP\x20客户端设置中:','_dialogService','NONE','univer-space-y-3','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20配置','univer-min-w-0\x20univer-flex-1','_handleConfigSave','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','mcpConfig.title','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','hasOwnProperty','API\x20Key','disposeWithMe','mcpConfig.note2','apiKey','concat','mcpConfig.configStep1','点击连接\x20MCP','xlink:href','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','push','defIds','Configuration\x20Steps:','MCP\x20Configuration','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','univer-bg-blue-500','removeItem','__setCustomHeaders','off','univer-text-gray-500','_commandService','什么是\x20API\x20密钥?','_config$','API\x20密钥','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','off-line-icon','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Bearer\x20','_blank','has','MCP\x20Connecting...','mcpStatus.networkError','subscribeConfigValue$','9JaVhLq','trim','univer-text-sm\x20univer-font-medium','register','保存配置','error','mcpConfig.connectionStatus.retrying','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','toString','univer-text-red-500','univer.plus','_apiKey$'];_0x27d3=function(){return _0x506a92;};return _0x27d3();}var en={'tag':_0x23152a(0x1da),'attrs':{'xmlns':_0x23152a(0x1e8),'fill':'none','viewBox':_0x23152a(0x240),'width':_0x23152a(0x21b),'height':_0x23152a(0x21b)},'children':[{'tag':_0x23152a(0x1f6),'attrs':{'fill':_0x23152a(0x1d8),'d':_0x23152a(0x16f)}},{'tag':'path','attrs':{'fill':_0x23152a(0x1d8),'d':_0x23152a(0x124)}},{'tag':_0x23152a(0x1f6),'attrs':{'fill':_0x23152a(0x1d8),'d':_0x23152a(0x180),'fillRule':_0x23152a(0x123),'clipRule':_0x23152a(0x123)}}]},de=_0x3cd0b1(function(_0x39c297,_0x13f688){var _0x30edad=_0x23152a;return _0x88ee49(w,Object[_0x30edad(0x249)]({},_0x39c297,{'id':'help-single','ref':_0x13f688,'icon':en}));});de[_0x23152a(0x227)]='HelpSingle';var nn={'tag':_0x23152a(0x1da),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x23152a(0x1fd),'viewBox':_0x23152a(0x240),'width':_0x23152a(0x21b),'height':_0x23152a(0x21b)},'children':[{'tag':'g','attrs':{'clipPath':_0x23152a(0x10c)},'children':[{'tag':_0x23152a(0x1f6),'attrs':{'stroke':'currentColor','d':_0x23152a(0x228),'strokeLinecap':_0x23152a(0x107),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x23152a(0x153),'attrs':{},'children':[{'tag':_0x23152a(0x13d),'attrs':{'id':_0x23152a(0x12f)},'children':[{'tag':_0x23152a(0x1f6),'attrs':{'fill':_0x23152a(0x15c),'d':_0x23152a(0x22d)}}]}]}],'defIds':[_0x23152a(0x12f)]},fe=_0x3cd0b1(function(_0x2a2bbb,_0x3e142f){var _0x4f7eef=_0x23152a;return _0x88ee49(w,Object[_0x4f7eef(0x249)]({},_0x2a2bbb,{'id':_0x4f7eef(0x1c4),'ref':_0x3e142f,'icon':nn}));});fe[_0x23152a(0x227)]=_0x23152a(0x24e);var rn={'tag':'svg','attrs':{'xmlns':_0x23152a(0x1e8),'fill':_0x23152a(0x1fd),'viewBox':'0\x200\x2017\x2016','width':_0x23152a(0x21b),'height':_0x23152a(0x21b)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x23152a(0x1f6),'attrs':{'stroke':_0x23152a(0x1d8),'d':_0x23152a(0x1d3),'strokeLinecap':'round','strokeLinejoin':_0x23152a(0x107),'strokeWidth':1.2}}]},{'tag':_0x23152a(0x153),'attrs':{},'children':[{'tag':_0x23152a(0x13d),'attrs':{'id':_0x23152a(0x219)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x23152a(0x22d),'transform':_0x23152a(0x25a)}}]}]}],'defIds':[_0x23152a(0x219)]},ge=_0x3cd0b1(function(_0x343912,_0x254b86){var _0x2b7129=_0x23152a;return _0x88ee49(w,Object['assign']({},_0x343912,{'id':_0x2b7129(0x23d),'ref':_0x254b86,'icon':rn}));});ge[_0x23152a(0x227)]=_0x23152a(0x10a);function tn(_0x3bd325){var _0x5d364a=_0x23152a,_0x548af7,_0x4dad3d;const {mcpCoreConfig:_0x3d7b83,onSave:_0x3364c4,loading:_0x16cee9=!0x1,config:_0x75e9cd,connectionStatus$:_0xf99f8d,connectionError$:_0x136e56,currentApiKey$:_0x5a1e2c,currentSessionId$:_0x58f380}=_0x3bd325,_0x5eed29=_0xec9461(_0x29ac55),_0x3e509d=_0x51a1cc(_0xf99f8d,_0x4d5d6a[_0x5d364a(0x189)]),_0x584153=_0x51a1cc(_0x136e56,_0x5b89c7[_0x5d364a(0x1a0)]),_0x23e63f=_0x51a1cc(_0x58f380,''),_0x57380f=_0x51a1cc(_0x5a1e2c,''),[_0x5655b8,_0xefd7e8]=_0x39ca44(_0x57380f||''),_0x3d5357=!0x0,_0x2f4bfa=_0x75e9cd[_0x5d364a(0x198)]&&_0x3d7b83[_0x5d364a(0x192)]&&(_0x3d7b83[_0x5d364a(0x192)][_0x5d364a(0x19c)](_0x5d364a(0x1d6))||_0x3d7b83[_0x5d364a(0x192)][_0x5d364a(0x19c)]('univer.ai')),_0x21dc59=(_0x548af7=_0x3d7b83[_0x5d364a(0x192)])==null?void 0x0:_0x548af7['includes']('univer.plus'),_0x5097e0=(_0x4dad3d=_0x3d7b83[_0x5d364a(0x192)])==null?void 0x0:_0x4dad3d[_0x5d364a(0x19c)](_0x5d364a(0x1ed)),_0x41ce0d=_0x21dc59?_0x5d364a(0x13b):'https://console.univer.ai',_0x3b78c7=_0x75e9cd[_0x5d364a(0x198)]&&(_0x21dc59||_0x5097e0),[_0x5decf7,_0x424704]=_0x39ca44(!_0x5655b8[_0x5d364a(0x1cd)]()),_0x1c4eda=(_0x1800c5,_0x3976c4)=>{var _0x23470b=_0x5d364a;if(_0x3976c4===_0x5b89c7[_0x23470b(0x13c)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x1800c5){case _0x4d5d6a[_0x23470b(0x1e2)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x4d5d6a['CONNECTING']:case _0x4d5d6a[_0x23470b(0x150)]:return _0x23470b(0x1c3);case _0x4d5d6a[_0x23470b(0x1dd)]:return _0x23470b(0x254);default:return _0x23470b(0x15a);}},_0x1f35aa=(_0x4966be,_0x3fca49)=>{var _0x1d3a3a=_0x5d364a;if(_0x3fca49===_0x5b89c7[_0x1d3a3a(0x13c)])return'univer-bg-red-500';switch(_0x4966be){case _0x4d5d6a[_0x1d3a3a(0x1e2)]:return _0x1d3a3a(0x131);case _0x4d5d6a['CONNECTING']:case _0x4d5d6a[_0x1d3a3a(0x150)]:return _0x1d3a3a(0x1ba);case _0x4d5d6a[_0x1d3a3a(0x1dd)]:return'univer-bg-red-500';default:return _0x1d3a3a(0x20a);}},_0x9ce381=_0x491a35=>{var _0x4da750=_0x5d364a;switch(_0x491a35){case _0x4d5d6a[_0x4da750(0x1e2)]:return _0x5eed29['t'](_0x4da750(0x1d9));case _0x4d5d6a[_0x4da750(0x144)]:return _0x5eed29['t'](_0x4da750(0x202));case _0x4d5d6a[_0x4da750(0x1dd)]:return _0x5eed29['t'](_0x4da750(0x231));case _0x4d5d6a[_0x4da750(0x150)]:return _0x5eed29['t'](_0x4da750(0x1d2));default:return _0x5eed29['t'](_0x4da750(0x111));}},_0x23c8f8=_0x514e52=>{var _0x5680e4=_0x5d364a;switch(_0x514e52){case _0x5b89c7[_0x5680e4(0x13c)]:return _0x5eed29['t'](_0x5680e4(0x174));case _0x5b89c7['SESSION_ID_OCCUPIED']:return _0x5eed29['t']('mcpConfig.connectionError.sessionOccupied');case _0x5b89c7[_0x5680e4(0x152)]:return _0x5eed29['t'](_0x5680e4(0x168));case _0x5b89c7[_0x5680e4(0x21a)]:return _0x5eed29['t'](_0x5680e4(0x205));default:return'';}},_0x590a66=_0x38eed3(()=>{var _0x1a27a6=_0x5d364a;const _0x1455b1={..._0x3d7b83,'apiKey':_0x5655b8[_0x1a27a6(0x1cd)](),'enableAuth':_0x3d5357};_0x3364c4(_0x1455b1);},[_0x3d7b83,_0x5655b8,_0x3d5357,_0x3364c4]),_0x343f5a=_0x5655b8['trim']()[_0x5d364a(0x239)]>0x0;return _0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x197),'children':[_0xbc2bc3('div',{'className':_0x5d364a(0x248),'children':_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x142),'children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x14a),'children':_0xbc2bc3(_0x5d364a(0x216),{'className':_0x5d364a(0x108),'children':'⚙'})}),_0xbc2bc3(_0x5d364a(0x15b),{'children':_0xbc2bc3('p',{'className':_0x5d364a(0x229),'children':_0x5eed29['t']('mcpConfig.description')})})]})}),_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x1fc),'children':[_0xbc2bc3('div',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1c4eda(_0x3e509d,_0x584153)+_0x5d364a(0x203),'children':_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x22a),'children':[_0xbc2bc3('div',{'className':_0x5d364a(0x1aa)+_0x1f35aa(_0x3e509d,_0x584153)+_0x5d364a(0x22b)}),_0xbc2bc3(_0x5d364a(0x216),{'className':_0x5d364a(0x1ce),'children':_0x9ce381(_0x3e509d)})]})}),_0x584153!==_0x5b89c7['NONE']&&(_0x3e509d===_0x4d5d6a[_0x5d364a(0x1dd)]||_0x584153===_0x5b89c7[_0x5d364a(0x13c)])&&_0xbc2bc3('div',{'className':_0x5d364a(0x1f7),'children':_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x106),'children':[_0xbc2bc3(_0x5d364a(0x216),{'className':_0x5d364a(0x217),'children':'⚠️'}),_0xbc2bc3('p',{'className':_0x5d364a(0x223),'children':_0x23c8f8(_0x584153)})]})})]}),_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x1a7),'children':_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x178),'children':[_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x230),'children':[_0x200cfc(_0x5d364a(0x11a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0xbc2bc3(_0x5d364a(0x216),{'children':'🔑'}),'\x20',_0x5eed29['t']('mcpConfig.apiKey'),_0xbc2bc3('span',{'className':_0x5d364a(0x1d5),'children':'*'}),_0x2f4bfa&&_0xbc2bc3('a',{'href':_0x5d364a(0x214),'onClick':()=>_0x424704(!0x0),'className':_0x5d364a(0x14e),'title':_0x5eed29['t'](_0x5d364a(0x166)),'children':_0xbc2bc3(de,{})})]}),_0xbc2bc3(_0x1cf5dc,{'type':_0x5d364a(0x225),'placeholder':_0x5eed29['t'](_0x5d364a(0x121)),'value':_0x5655b8,'onChange':_0xefd7e8,'disabled':_0x16cee9,'autoComplete':_0x5d364a(0x1bd)}),_0xbc2bc3('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x5eed29['t'](_0x5d364a(0x11f))})]}),_0x2f4bfa&&_0x5decf7&&_0x200cfc('div',{'className':_0x5d364a(0x18e),'children':[_0xbc2bc3('a',{'href':_0x5d364a(0x214),'onClick':()=>_0x424704(!0x1),'className':_0x5d364a(0x109),'title':_0x5d364a(0x12d),'children':_0xbc2bc3(ve,{})}),_0x200cfc('div',{'className':_0x5d364a(0x1b9),'children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x1a6),'children':_0xbc2bc3(_0x5d364a(0x216),{'className':_0x5d364a(0x132),'children':'🚀'})}),_0x200cfc('div',{'className':_0x5d364a(0x226),'children':[_0xbc2bc3('h4',{'className':_0x5d364a(0x136),'children':_0x5eed29['t'](_0x5d364a(0x166))}),_0xbc2bc3('p',{'className':_0x5d364a(0x20b),'children':_0x5eed29['t']('mcpConfig.apiApplyInfo.description')}),_0xbc2bc3('div',{'className':_0x5d364a(0x236),'children':_0x3b78c7&&_0x200cfc('a',{'href':_0x41ce0d,'target':_0x5d364a(0x1c7),'rel':_0x5d364a(0x19b),'className':_0x5d364a(0x1a8),'children':[_0xbc2bc3(_0x5d364a(0x216),{'children':'🤖'}),_0x5eed29['t'](_0x5d364a(0x10f)),_0xbc2bc3(_0x5d364a(0x216),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x1b4),'children':['✨','\x20',_0x5eed29['t'](_0x5d364a(0x105))]})]})]})]}),_0x75e9cd[_0x5d364a(0x198)]&&_0x200cfc(_0x5d364a(0x15b),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x200cfc('h4',{'className':_0x5d364a(0x165),'children':[_0xbc2bc3(_0x5d364a(0x216),{'children':'🔗'}),'\x20',_0x5eed29['t'](_0x5d364a(0x130))]}),_0x200cfc('div',{'className':'univer-space-y-4','children':[_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x1a1),'children':[_0xbc2bc3('p',{'className':_0x5d364a(0x194),'children':_0x5eed29['t']('mcpConfig.configInstructions')}),_0x200cfc(_0x5d364a(0x15b),{'className':'univer-space-y-2','children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x5eed29['t']('mcpConfig.configStepTitle')}),_0x200cfc(_0x5d364a(0x15b),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x22a),'children':[_0xbc2bc3(_0x5d364a(0x216),{'className':_0x5d364a(0x169),'children':'1'}),_0x5eed29['t'](_0x5d364a(0x1b1))]}),_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x22a),'children':[_0xbc2bc3(_0x5d364a(0x216),{'className':_0x5d364a(0x169),'children':'2'}),_0x5eed29['t']('mcpConfig.configStep2')]}),_0x200cfc('div',{'className':_0x5d364a(0x22a),'children':[_0xbc2bc3('span',{'className':'univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x5eed29['t'](_0x5d364a(0x14c))]})]})]})]}),_0x200cfc(_0x5d364a(0x15b),{'className':'univer-space-y-2','children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x5d364a(0x1b8)}),_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x167),'children':_0xbc2bc3(_0x5d364a(0x21c),{'className':_0x5d364a(0x1c5),'children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0x23e63f+_0x5d364a(0x149)+(_0x5655b8||_0x5d364a(0x211))+_0x5d364a(0x215)})})]}),_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x1a1),'children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x135),'children':_0x5eed29['t'](_0x5d364a(0x21d))}),_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x230),'children':[_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x22f),'children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x264)}),_0x200cfc('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x1de),'children':'univer_session_id:'}),_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x146),'children':_0x5eed29['t'](_0x5d364a(0x21f))})]})]}),_0x200cfc('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0xbc2bc3('div',{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x1a4),'children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x1de),'children':'Authorization:'}),_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x146),'children':_0x5eed29['t'](_0x5d364a(0x201))})]})]})]})]})]})]}),_0xbc2bc3(_0x3a18fc,{'onClick':_0x590a66,'disabled':!_0x343f5a||_0x16cee9,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x16cee9?_0x200cfc(_0x5d364a(0x216),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0xbc2bc3(_0x5d364a(0x216),{'children':'⟲'}),_0x5eed29['t'](_0x5d364a(0x162))]}):_0x200cfc(_0x5d364a(0x216),{'className':_0x5d364a(0x22a),'children':[_0xbc2bc3(le,{}),_0x5eed29['t'](_0x5d364a(0x244))]})}),_0xbc2bc3('div',{'className':_0x5d364a(0x18d),'children':_0x200cfc(_0x5d364a(0x15b),{'className':_0x5d364a(0x127),'children':[_0xbc2bc3(_0x5d364a(0x216),{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x200cfc('div',{'className':_0x5d364a(0x12e),'children':[_0xbc2bc3(_0x5d364a(0x15b),{'className':_0x5d364a(0x141),'children':'Configuration\x20Notes:'}),_0x200cfc(_0x5d364a(0x15b),{'children':['•',_0x5eed29['t'](_0x5d364a(0x196))]}),_0x200cfc(_0x5d364a(0x15b),{'children':['•',_0x5eed29['t'](_0x5d364a(0x1ae))]})]})]})})]})})]});}const x='mcp-ui.config',re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object[_0x23152a(0x147)],sn=(_0x962b6f,_0x2800e8,_0x314e8a,_0x3c8a72)=>{for(var _0xec4582=_0x3c8a72>0x1?void 0x0:_0x3c8a72?on(_0x2800e8,_0x314e8a):_0x2800e8,_0xe7d1bf=_0x962b6f['length']-0x1,_0x5187ad;_0xe7d1bf>=0x0;_0xe7d1bf--)(_0x5187ad=_0x962b6f[_0xe7d1bf])&&(_0xec4582=_0x5187ad(_0xec4582)||_0xec4582);return _0xec4582;},g=(_0xc25a22,_0x155635)=>(_0x355528,_0x10e8fd)=>_0x155635(_0x355528,_0x10e8fd,_0xc25a22);const j=_0x23152a(0x171),U=_0x23152a(0x160);let I=class extends _0x460ffb{constructor(_0x12c510,_0x27078b,_0x4de042,_0x522478,_0x25b867,_0x1f8f86,_0x236ef8,_0x17685e,_0x3a8f33,_0x10f7e3){var _0x759656=_0x23152a;super(),S(this,_0x759656(0x11e),new _0x25ddcd(!0x1)),S(this,_0x759656(0x195),new _0x25ddcd({})),S(this,_0x759656(0x1c1),new _0x25ddcd({})),S(this,'_apiKey$',new _0x25ddcd('')),S(this,_0x759656(0x1a5),async _0x3df58e=>{var _0x10010c=_0x759656,_0x3b8329,_0x43d88d;this[_0x10010c(0x11e)][_0x10010c(0x18b)](!0x0);try{const _0x335097=await this[_0x10010c(0x261)](_0x3df58e);if(!_0x335097[_0x10010c(0x207)]){this['_messageService'][_0x10010c(0x164)]({'type':_0x32a88a[_0x10010c(0x120)],'content':_0x335097[_0x10010c(0x151)]||this[_0x10010c(0x119)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x3df58e[_0x10010c(0x1af)]?await this['_localStorageService'][_0x10010c(0x118)](j,_0x3df58e[_0x10010c(0x1af)][_0x10010c(0x1cd)]()):await this[_0x10010c(0x213)][_0x10010c(0x1bb)](j),this[_0x10010c(0x1d7)][_0x10010c(0x18b)](((_0x3b8329=_0x3df58e['apiKey'])==null?void 0x0:_0x3b8329[_0x10010c(0x1cd)]())||''),this[_0x10010c(0x11d)][_0x10010c(0x1bc)]({'Authorization':_0x10010c(0x1c6)+((_0x43d88d=_0x3df58e[_0x10010c(0x1af)])==null?void 0x0:_0x43d88d[_0x10010c(0x1cd)]())}),this['_messageService']['show']({'type':_0x32a88a['Success'],'content':this[_0x10010c(0x119)]['t'](_0x10010c(0x190))}),setTimeout(()=>{var _0x143fb2=_0x10010c;this[_0x143fb2(0x19f)][_0x143fb2(0x183)](U);},0x320);}catch(_0x2e1556){this[_0x10010c(0x258)][_0x10010c(0x1d1)](_0x10010c(0x191),_0x2e1556),this[_0x10010c(0x11b)]['show']({'type':_0x32a88a['Error'],'content':this['_localeService']['t'](_0x10010c(0x18f))});}finally{this[_0x10010c(0x11e)][_0x10010c(0x18b)](!0x1);}}),(this['_injector']=_0x12c510,this[_0x759656(0x18c)]=_0x27078b,this[_0x759656(0x224)]=_0x4de042,this[_0x759656(0x213)]=_0x522478,this['_dialogService']=_0x25b867,this[_0x759656(0x11b)]=_0x1f8f86,this['_componentManager']=_0x236ef8,this['_localeService']=_0x17685e,this[_0x759656(0x258)]=_0x3a8f33,this[_0x759656(0x11d)]=_0x10f7e3,this['_initConfigSync'](),this[_0x759656(0x187)](),this[_0x759656(0x265)]());}['showConfigPanel'](){var _0x4d0629=_0x23152a;const _0x4ac2af=this[_0x4d0629(0x224)]['getConfig'](x);_0x4ac2af!=null&&_0x4ac2af['showDeveloperTools']&&this[_0x4d0629(0x19f)][_0x4d0629(0x257)]({'id':U,'title':{'title':this['_localeService']['t'](_0x4d0629(0x1a9))},'children':{'label':_0x4d0629(0x23f)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x5919e2=_0x4d0629;this['_dialogService'][_0x5919e2(0x183)](U);}});}[_0x23152a(0x253)](){var _0xe62ade=_0x23152a;return this['_mcpCoreConfig$'][_0xe62ade(0x24b)];}[_0x23152a(0x265)](){var _0x5b3136=_0x23152a;this[_0x5b3136(0x1ad)](this[_0x5b3136(0x246)][_0x5b3136(0x1cf)](_0x5b3136(0x23f),this[_0x5b3136(0x235)]()));}[_0x23152a(0x235)](){var _0x5d7742=_0x23152a;return _0x16db0e(()=>{var _0x58b870=_0x5160,_0x157dc0,_0x51b2e6,_0x168762;return _0xbc2bc3(tn,{'config':this[_0x58b870(0x1c1)]['value'],'mcpCoreConfig':this[_0x58b870(0x195)][_0x58b870(0x24b)],'currentApiKey$':this[_0x58b870(0x1d7)],'onSave':this[_0x58b870(0x1a5)],'loading':this[_0x58b870(0x11e)][_0x58b870(0x24b)],'connectionStatus$':(_0x157dc0=this['_mcpConnectionController'])==null?void 0x0:_0x157dc0['connectionStatus$'],'connectionError$':(_0x51b2e6=this[_0x58b870(0x11d)])==null?void 0x0:_0x51b2e6[_0x58b870(0x1ff)],'currentSessionId$':(_0x168762=this[_0x58b870(0x11d)])==null?void 0x0:_0x168762[_0x58b870(0x163)]});},this[_0x5d7742(0x20c)]);}[_0x23152a(0x16c)](){var _0xef4155=_0x23152a;this['disposeWithMe'](this[_0xef4155(0x224)][_0xef4155(0x1cb)](_0x10b2f0)[_0xef4155(0x14f)](_0x35b6c8=>{var _0x208fe7=_0xef4155;this[_0x208fe7(0x195)]['next'](_0x35b6c8||{});}));const _0xb8cec=this[_0xef4155(0x224)]['getConfig'](_0x10b2f0);this[_0xef4155(0x195)]['next'](_0xb8cec||{}),this['disposeWithMe'](this[_0xef4155(0x224)]['subscribeConfigValue$'](x)[_0xef4155(0x14f)](_0x1a73f9=>{var _0x30b503=_0xef4155;this[_0x30b503(0x1c1)][_0x30b503(0x18b)](_0x1a73f9||{});}));const _0x5823c6=this[_0xef4155(0x224)]['getConfig'](x);this[_0xef4155(0x1c1)]['next'](_0x5823c6||{});}async[_0x23152a(0x187)](){var _0x43e094=_0x23152a;const _0x26f717=this['_configService'][_0x43e094(0x242)](x);if(!(_0x26f717!=null&&_0x26f717['showDeveloperTools']))return;const _0x401ab2=await this['_localStorageService']['getItem'](j);_0x401ab2&&(this[_0x43e094(0x11d)]['__setCustomHeaders']({'Authorization':_0x43e094(0x1c6)+_0x401ab2}),this[_0x43e094(0x1d7)][_0x43e094(0x18b)](_0x401ab2));}async[_0x23152a(0x261)](_0x4a9cbd){var _0x3a8ec9=_0x23152a;if(!_0x4a9cbd[_0x3a8ec9(0x1af)]||_0x4a9cbd[_0x3a8ec9(0x1af)][_0x3a8ec9(0x1cd)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x3a8ec9(0x238))};if(_0x4a9cbd['apiKey'][_0x3a8ec9(0x1cd)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x3a8ec9(0x119)]['t'](_0x3a8ec9(0x222))};try{const _0x54037a=await this['_injector'][_0x3a8ec9(0x251)](_0x260dce)[_0x3a8ec9(0x184)](_0x4a9cbd[_0x3a8ec9(0x1af)][_0x3a8ec9(0x1cd)]());return _0x54037a[_0x3a8ec9(0x207)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x54037a['error']||this['_localeService']['t'](_0x3a8ec9(0x13a))};}catch(_0x365857){return console[_0x3a8ec9(0x204)](_0x3a8ec9(0x220),_0x365857),{'isValid':!0x0};}}};I=sn([g(0x0,_0x10c81c(_0x5b2e98)),g(0x1,_0x1846c7),g(0x2,_0x1496de),g(0x3,_0x118e2e),g(0x4,_0x382591),g(0x5,_0x43578f),g(0x6,_0x10c81c(_0x5a9e01)),g(0x7,_0x10c81c(_0x29ac55)),g(0x8,_0x31a0e3),g(0x9,_0x10c81c(_0x260dce))],I);const V={'id':_0x23152a(0x140),'type':_0x1911c4[_0x23152a(0x133)],'handler':async(_0x39f33a,_0x3cd1be)=>(_0x39f33a[_0x23152a(0x251)](I)[_0x23152a(0x157)](),!0x0)};function pe(_0x201300,_0x3f5f39){var _0xffbf1f=_0x23152a;switch(_0x201300){case _0x4d5d6a[_0xffbf1f(0x189)]:return'mcpStatus.disconnected';case _0x4d5d6a[_0xffbf1f(0x144)]:return _0xffbf1f(0x1e0);case _0x4d5d6a[_0xffbf1f(0x1e2)]:return'mcpStatus.connected';case _0x4d5d6a[_0xffbf1f(0x1dd)]:switch(_0x3f5f39){case _0x5b89c7['UNAUTHORIZED']:return _0xffbf1f(0x15f);case _0x5b89c7['SESSION_ID_OCCUPIED']:return _0xffbf1f(0x126);case _0x5b89c7[_0xffbf1f(0x152)]:return _0xffbf1f(0x1ca);case _0x5b89c7[_0xffbf1f(0x21a)]:return _0xffbf1f(0x1f0);default:return _0xffbf1f(0x245);}case _0x4d5d6a[_0xffbf1f(0x150)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function cn(_0x2cf9d5,_0xd71a77,_0x3efd82,_0x1ed8ff=!0x0){var _0x3977d1=_0x23152a;const _0xa503bd=pe(_0x2cf9d5,_0xd71a77),_0x25daf5=_0x3efd82['t'](_0xa503bd);return _0x1ed8ff?_0x2cf9d5===_0x4d5d6a[_0x3977d1(0x189)]&&_0xd71a77===_0x5b89c7[_0x3977d1(0x13c)]?_0x25daf5+_0x3977d1(0x25d)+_0x3efd82['t']('mcpStatus.clickToConfigure'):_0x2cf9d5===_0x4d5d6a[_0x3977d1(0x1e2)]?''+_0x25daf5:_0x2cf9d5===_0x4d5d6a[_0x3977d1(0x189)]||_0x2cf9d5===_0x4d5d6a[_0x3977d1(0x1dd)]?_0x25daf5+_0x3977d1(0x25d)+_0x3efd82['t'](_0x3977d1(0x1f3)):_0x25daf5:_0x25daf5;}function an(_0x4c65ef){var _0x5339a7=_0x23152a;switch(_0x4c65ef){case _0x4d5d6a[_0x5339a7(0x1e2)]:return _0x5339a7(0x241);case _0x4d5d6a[_0x5339a7(0x144)]:case _0x4d5d6a['RETRYING']:return _0x5339a7(0x16b);case _0x4d5d6a['FAILED']:case _0x4d5d6a['DISCONNECTED']:return _0x5339a7(0x1d5);default:return _0x5339a7(0x1be);}}function un(_0xdddfa){var _0x19af2a=_0x23152a;const {status$:_0x34cced,error$:_0x12f545,onConfigure:_0xc2f149,showClickable:_0x407157=!0x0}=_0xdddfa,_0x3ccc29=_0x51a1cc(_0x34cced,_0x4d5d6a[_0x19af2a(0x189)]),_0x1d177d=_0x51a1cc(_0x12f545,_0x5b89c7[_0x19af2a(0x1a0)]),_0x4178dd=_0xec9461(_0x29ac55),_0x28743c=_0x3ccc29===_0x4d5d6a['CONNECTED'];_0x3ccc29===_0x4d5d6a[_0x19af2a(0x144)]||_0x4d5d6a[_0x19af2a(0x150)];const _0x33f469=_0x4178dd['t'](pe(_0x3ccc29,_0x1d177d)),_0x139f67=cn(_0x3ccc29,_0x1d177d,_0x4178dd,_0x407157),_0x201a8d=an(_0x3ccc29),_0x4c395e=_0x28743c?_0xbc2bc3(ge,{}):_0xbc2bc3(fe,{}),_0x2067e6=_0x38eed3(()=>{_0x407157&&_0xc2f149&&_0xc2f149();},[_0x407157,_0xc2f149]);function _0x495109(){var _0xe14648=_0x19af2a;return _0x200cfc(_0xe14648(0x15b),{'className':_0x1e22a7(_0xe14648(0x22c),_0x407157&&_0xc2f149&&_0xe14648(0x17c)),'onClick':_0x407157&&_0xc2f149?_0x2067e6:void 0x0,'children':[_0xbc2bc3(_0xe14648(0x15b),{'className':_0x1e22a7(_0xe14648(0x24c),_0x201a8d),'children':_0x4c395e}),_0xbc2bc3(_0xe14648(0x15b),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x33f469})]});}return _0xbc2bc3(_0x28285f,{'title':_0x139f67,'placement':_0x19af2a(0x1f9),'children':_0x495109()});}var ln=Object[_0x23152a(0x147)],vn=(_0x59397d,_0x398597,_0x7bf6b7,_0x19b954)=>{var _0x4b4b0b=_0x23152a;for(var _0x33116c=_0x19b954>0x1?void 0x0:_0x19b954?ln(_0x398597,_0x7bf6b7):_0x398597,_0x3a39da=_0x59397d[_0x4b4b0b(0x239)]-0x1,_0x489dcd;_0x3a39da>=0x0;_0x3a39da--)(_0x489dcd=_0x59397d[_0x3a39da])&&(_0x33116c=_0x489dcd(_0x33116c)||_0x33116c);return _0x33116c;},A=(_0x4ccce0,_0x55d0b4)=>(_0x1c80ef,_0x4b3800)=>_0x55d0b4(_0x1c80ef,_0x4b3800,_0x4ccce0);let O=class extends _0x460ffb{constructor(_0xf3f200,_0x167153,_0x50ebb6,_0x403905){var _0x278a1a=_0x23152a;super(),this[_0x278a1a(0x20c)]=_0xf3f200,this[_0x278a1a(0x17b)]=_0x167153,this['_uiPartsService']=_0x50ebb6,this['_configService']=_0x403905,this[_0x278a1a(0x188)](),this['_initStatusComponent']();}[_0x23152a(0x188)](){var _0x3c2597=_0x23152a;const _0xa4e935=this[_0x3c2597(0x224)][_0x3c2597(0x242)](x);_0xa4e935!=null&&_0xa4e935[_0x3c2597(0x198)]&&(this[_0x3c2597(0x17b)][_0x3c2597(0x193)]=!0x1);}[_0x23152a(0x1f1)](){var _0x1f2ecd=_0x23152a;const _0x366bc7=this['_configService'][_0x1f2ecd(0x242)](x);(_0x366bc7==null?void 0x0:_0x366bc7['showStatus'])!==!0x1&&this[_0x1f2ecd(0x1ad)](this['_uiPartsService']['registerComponent'](_0x2fa4e8['HEADER_MENU'],()=>{var _0x222b75=_0x1f2ecd,_0x205332;return _0x16db0e(dn({'status$':this[_0x222b75(0x17b)][_0x222b75(0x17e)],'error$':this['_connectionController'][_0x222b75(0x1ff)],'onConfigure':()=>this[_0x222b75(0x23c)](),'showClickable':(_0x205332=_0x366bc7==null?void 0x0:_0x366bc7[_0x222b75(0x198)])!=null?_0x205332:!0x1}),this['_injector']);}));}[_0x23152a(0x23c)](){var _0x522988=_0x23152a;this[_0x522988(0x20c)][_0x522988(0x251)](I)[_0x522988(0x157)]();}};O=vn([A(0x0,_0x10c81c(_0x5b2e98)),A(0x1,_0x10c81c(_0x260dce)),A(0x2,_0x1846c7),A(0x3,_0x1496de)],O);function dn(_0xdfd7b4){const {status$:_0x12efb1,error$:_0xdc1d0,onConfigure:_0x4fdc6e,showClickable:_0x143437}=_0xdfd7b4;return function(){return _0xbc2bc3(un,{'status$':_0x12efb1,'error$':_0xdc1d0,'onConfigure':_0x4fdc6e,'showClickable':_0x143437});};}function fn(_0x3b576a){var _0x2df986=_0x23152a;return{'id':V['id'],'type':_0xd12530[_0x2df986(0x221)],'icon':'MenuIcon','title':'mcpConfig.title','tooltip':_0x2df986(0x1a9)};}const gn={[_0x529546[_0x23152a(0x155)]]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};var pn=Object[_0x23152a(0x147)],hn=(_0x570482,_0x54cf31,_0x5a704d,_0x3776b7)=>{for(var _0xf5ccc3=_0x3776b7>0x1?void 0x0:_0x3776b7?pn(_0x54cf31,_0x5a704d):_0x54cf31,_0x328e0c=_0x570482['length']-0x1,_0x4a5b95;_0x328e0c>=0x0;_0x328e0c--)(_0x4a5b95=_0x570482[_0x328e0c])&&(_0xf5ccc3=_0x4a5b95(_0xf5ccc3)||_0xf5ccc3);return _0xf5ccc3;},te=(_0x49a669,_0x30f143)=>(_0x766373,_0x56a748)=>_0x30f143(_0x766373,_0x56a748,_0x49a669);function _0x5160(_0x3b1568,_0x5010a0){var _0x27d383=_0x27d3();return _0x5160=function(_0x51609f,_0x5e3b09){_0x51609f=_0x51609f-0x105;var _0x17af16=_0x27d383[_0x51609f];return _0x17af16;},_0x5160(_0x3b1568,_0x5010a0);}let k=class extends _0x460ffb{constructor(_0xca0baf,_0x4ef88e){var _0x241e0f=_0x23152a;super(),this[_0x241e0f(0x1bf)]=_0xca0baf,this['_menuManagerService']=_0x4ef88e,this[_0x241e0f(0x172)](),this[_0x241e0f(0x232)]();}[_0x23152a(0x172)](){var _0x2b359a=_0x23152a;[V][_0x2b359a(0x1e5)](_0xeef7fb=>{var _0x2d1e4d=_0x2b359a;this[_0x2d1e4d(0x1ad)](this[_0x2d1e4d(0x1bf)]['registerCommand'](_0xeef7fb));});}[_0x23152a(0x232)](){var _0x5e9a6f=_0x23152a;this['_menuManagerService'][_0x5e9a6f(0x170)](gn);}};k=hn([te(0x0,_0xf4c6c0),te(0x1,_0x1033be)],k);const On={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x23152a(0x1c9),'connected':'MCP\x20Connected','failed':_0x23152a(0x134),'retrying':_0x23152a(0x1ef),'unknown':_0x23152a(0x24d),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x23152a(0x199),'networkError':_0x23152a(0x1ea),'maxRetriesExceeded':_0x23152a(0x200),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x23152a(0x233)},'mcpConfig':{'title':_0x23152a(0x1b8),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x23152a(0x1ac),'apiKeyPlaceholder':_0x23152a(0x250),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x23152a(0x22e),'connectionInfo':_0x23152a(0x15d),'mcpClientConfig':_0x23152a(0x15d),'configInstructions':_0x23152a(0x1a2),'configStepTitle':_0x23152a(0x1b7),'configStep1':_0x23152a(0x14d),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x23152a(0x1fb),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x23152a(0x1e7),'configParameters':_0x23152a(0x125),'maxRetries':_0x23152a(0x1dc),'save':_0x23152a(0x14b),'saving':'Saving...','note1':_0x23152a(0x1ec),'note2':_0x23152a(0x110),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x23152a(0x23b),'description':_0x23152a(0x247),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x23152a(0x17a)},'validation':{'apiKeyRequired':_0x23152a(0x115),'apiKeyTooShort':_0x23152a(0x17d),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x23152a(0x259)},'connectionStatus':{'disconnected':_0x23152a(0x234),'connecting':_0x23152a(0x158),'connected':_0x23152a(0x156),'failed':_0x23152a(0x206),'retrying':_0x23152a(0x263)},'connectionError':{'unauthorized':_0x23152a(0x116),'sessionOccupied':_0x23152a(0x252),'networkError':_0x23152a(0x210),'maxRetriesExceeded':_0x23152a(0x25f)}}},kn={'mcpStatus':{'disconnected':_0x23152a(0x112),'connecting':_0x23152a(0x209),'connected':'MCP\x20已连接','failed':_0x23152a(0x128),'retrying':_0x23152a(0x25c),'unknown':'MCP\x20状态未知','unauthorized':'MCP:\x20未授权','sessionOccupied':_0x23152a(0x20d),'networkError':_0x23152a(0x138),'maxRetriesExceeded':_0x23152a(0x262),'clickToConnect':_0x23152a(0x1b2),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x23152a(0x1a3),'description':_0x23152a(0x16a),'apiKey':_0x23152a(0x1c2),'apiKeyPlaceholder':_0x23152a(0x181),'apiKeyHint':_0x23152a(0x139),'enableAuth':_0x23152a(0x237),'enableAuthHint':_0x23152a(0x25e),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x23152a(0x159),'configInstructions':_0x23152a(0x19e),'configStepTitle':'配置步骤:','configStep1':_0x23152a(0x185),'configStep2':_0x23152a(0x13f),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x23152a(0x12c),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x23152a(0x255),'configParameters':_0x23152a(0x143),'maxRetries':_0x23152a(0x15e),'save':_0x23152a(0x1d0),'saving':_0x23152a(0x1db),'note1':_0x23152a(0x12b),'note2':_0x23152a(0x11c),'configSaved':_0x23152a(0x114),'configError':'配置保存失败','apiApplyInfo':{'title':_0x23152a(0x1c0),'description':_0x23152a(0x19d),'univerAiLabel':_0x23152a(0x1f5),'getStarted':_0x23152a(0x1f8)},'validation':{'apiKeyRequired':_0x23152a(0x186),'apiKeyTooShort':_0x23152a(0x16e),'invalidConfig':_0x23152a(0x1ee),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x23152a(0x176),'connecting':_0x23152a(0x1e1),'connected':_0x23152a(0x18a),'failed':'连接失败','retrying':_0x23152a(0x256)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x23152a(0x10e),'networkError':_0x23152a(0x19a),'maxRetriesExceeded':_0x23152a(0x24a)}}};var mn=Object[_0x23152a(0x1fe)],Cn=Object['getOwnPropertyDescriptor'],yn=(_0x53fd87,_0x21e10f,_0x1b78fd)=>_0x21e10f in _0x53fd87?mn(_0x53fd87,_0x21e10f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b78fd}):_0x53fd87[_0x21e10f]=_0x1b78fd,_n=(_0x266c83,_0x523496,_0x2b85da,_0x4098c6)=>{var _0x3dba6c=_0x23152a;for(var _0x540112=_0x4098c6>0x1?void 0x0:_0x4098c6?Cn(_0x523496,_0x2b85da):_0x523496,_0x17daeb=_0x266c83[_0x3dba6c(0x239)]-0x1,_0x1adbaf;_0x17daeb>=0x0;_0x17daeb--)(_0x1adbaf=_0x266c83[_0x17daeb])&&(_0x540112=_0x1adbaf(_0x540112)||_0x540112);return _0x540112;},E=(_0x7f34ae,_0x20eb72)=>(_0x3fb8d4,_0x5f3559)=>_0x20eb72(_0x3fb8d4,_0x5f3559,_0x7f34ae),xn=(_0x503324,_0x289082,_0x3a1f0c)=>yn(_0x503324,_0x289082+'',_0x3a1f0c);let L=class extends _0x3d4f76{constructor(_0x569b02=re,_0xf0024a,_0x43fbf8,_0x14cf29,_0x54b9da,_0x1a4f53){var _0x50a949=_0x23152a;super(),this[_0x50a949(0x1e4)]=_0x569b02,this[_0x50a949(0x20c)]=_0xf0024a,this[_0x50a949(0x224)]=_0x43fbf8,this[_0x50a949(0x18c)]=_0x14cf29,this[_0x50a949(0x213)]=_0x54b9da,this[_0x50a949(0x119)]=_0x1a4f53;const {..._0x413f53}=_0x16b0a4({},re,this[_0x50a949(0x1e4)]);this[_0x50a949(0x224)][_0x50a949(0x177)](x,_0x413f53);}async[_0x23152a(0x161)](){var _0x37dff6=_0x23152a;const _0x510e91=[[O],[I],[k]];this['_injector'][_0x37dff6(0x1c8)](_0x28fc4b)||_0x510e91[_0x37dff6(0x1b5)]([_0x28fc4b,{'useClass':_0x5e8ef7}]),_0x510e91['forEach'](_0x3ad79a=>this[_0x37dff6(0x20c)][_0x37dff6(0x218)](_0x3ad79a)),this[_0x37dff6(0x20c)][_0x37dff6(0x251)](O),this[_0x37dff6(0x20c)]['get'](I),this[_0x37dff6(0x20c)][_0x37dff6(0x251)](k);}};xn(L,_0x23152a(0x10d),'MCP_UI_PLUGIN'),L=_n([_0x2f5397(_0xfd0ba3),E(0x1,_0x10c81c(_0x5b2e98)),E(0x2,_0x1496de),E(0x3,_0x1846c7),E(0x4,_0x118e2e),E(0x5,_0x10c81c(_0x29ac55))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};
@@ -1 +1 @@
1
- const _0x59d452=_0x416f;(function(_0x57bb17,_0x208462){const _0x35b350=_0x416f,_0x3eb2fa=_0x57bb17();while(!![]){try{const _0x1cb82b=-parseInt(_0x35b350(0x194))/0x1+-parseInt(_0x35b350(0x192))/0x2+parseInt(_0x35b350(0x16f))/0x3+parseInt(_0x35b350(0x17a))/0x4*(-parseInt(_0x35b350(0x17c))/0x5)+parseInt(_0x35b350(0x182))/0x6*(-parseInt(_0x35b350(0x197))/0x7)+parseInt(_0x35b350(0x18b))/0x8+parseInt(_0x35b350(0x187))/0x9*(-parseInt(_0x35b350(0x198))/0xa);if(_0x1cb82b===_0x208462)break;else _0x3eb2fa['push'](_0x3eb2fa['shift']());}catch(_0xf8a97f){_0x3eb2fa['push'](_0x3eb2fa['shift']());}}}(_0x2e24,0xe52dc));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x59d452(0x190),'connected':_0x59d452(0x183),'failed':_0x59d452(0x188),'retrying':'MCP\x20Retrying...','unknown':_0x59d452(0x184),'unauthorized':_0x59d452(0x17e),'sessionOccupied':_0x59d452(0x172),'networkError':_0x59d452(0x19d),'maxRetriesExceeded':_0x59d452(0x195),'clickToConnect':_0x59d452(0x178),'clickToConfigure':_0x59d452(0x18a)},'mcpConfig':{'title':_0x59d452(0x179),'description':_0x59d452(0x186),'apiKey':_0x59d452(0x199),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x59d452(0x196),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x59d452(0x177),'connectionInfo':_0x59d452(0x19b),'mcpClientConfig':_0x59d452(0x19b),'configInstructions':_0x59d452(0x193),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x59d452(0x191),'configStep2':_0x59d452(0x173),'configStep3':_0x59d452(0x185),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x59d452(0x17b),'configParameters':_0x59d452(0x16e),'maxRetries':_0x59d452(0x180),'save':_0x59d452(0x19c),'saving':'Saving...','note1':_0x59d452(0x175),'note2':_0x59d452(0x174),'configSaved':_0x59d452(0x17d),'configError':_0x59d452(0x181),'apiApplyInfo':{'title':_0x59d452(0x19a),'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':_0x59d452(0x170),'getStarted':_0x59d452(0x18f)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x59d452(0x189),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x59d452(0x171),'connecting':_0x59d452(0x17f),'connected':_0x59d452(0x18e),'failed':_0x59d452(0x18d),'retrying':_0x59d452(0x18c)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x59d452(0x176),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x416f(_0x4d0da5,_0x23b775){const _0x2e246b=_0x2e24();return _0x416f=function(_0x416fe1,_0x1530ef){_0x416fe1=_0x416fe1-0x16e;let _0x11c0e0=_0x2e246b[_0x416fe1];return _0x11c0e0;},_0x416f(_0x4d0da5,_0x23b775);}export{n as default};function _0x2e24(){const _0x27b332=['MCP\x20Unknown\x20Status','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','9WNTsFG','MCP\x20Connection\x20Failed','Invalid\x20configuration','Click\x20to\x20configure\x20MCP','13780248UWnPNM','Retrying...','Connection\x20Failed','Connected','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','2085056cENSnw','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','137061CgvReb','MCP:\x20Max\x20Retries\x20Exceeded','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','7cgVsmt','11437120EjADvI','API\x20Key','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','Save\x20Configuration','MCP:\x20Network\x20Error','Configuration\x20Parameters:','5449227EckfPr','Univer\x20AI\x20Console','Disconnected','MCP:\x20Session\x20ID\x20Occupied','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','Click\x20to\x20connect\x20MCP','MCP\x20Configuration','118412EotGnM','API\x20key\x20with\x20Bearer\x20prefix.','10tXBzjf','Configuration\x20saved\x20successfully','MCP:\x20Unauthorized','Connecting...','Max\x20Retries','Failed\x20to\x20save\x20configuration','1306302DXWYpV','MCP\x20Connected'];_0x2e24=function(){return _0x27b332;};return _0x2e24();}
1
+ const _0x47654a=_0x4df7;(function(_0x3853ee,_0x2baee7){const _0x2038ca=_0x4df7,_0x5231ad=_0x3853ee();while(!![]){try{const _0x7be43=-parseInt(_0x2038ca(0x19e))/0x1+parseInt(_0x2038ca(0x18f))/0x2+parseInt(_0x2038ca(0x193))/0x3*(-parseInt(_0x2038ca(0x18c))/0x4)+parseInt(_0x2038ca(0x18b))/0x5*(parseInt(_0x2038ca(0x196))/0x6)+-parseInt(_0x2038ca(0x19a))/0x7+-parseInt(_0x2038ca(0x1a3))/0x8+parseInt(_0x2038ca(0x1ac))/0x9;if(_0x7be43===_0x2baee7)break;else _0x5231ad['push'](_0x5231ad['shift']());}catch(_0x40261c){_0x5231ad['push'](_0x5231ad['shift']());}}}(_0x65cd,0x3c5b9));function _0x65cd(){const _0x34b446=['Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Retrying...','15639165uVtGOZ','Max\x20Retries','MCP\x20Connecting...','Enter\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Steps:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20connect\x20MCP','MCP\x20Unknown\x20Status','11845kLuYTV','15460GyUORG','Enable\x20Authentication','Connected','320454ThQDKA','MCP\x20Configuration','API\x20Key','Save\x20Configuration','261miYNQL','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20configure\x20MCP','6LjLIbD','MCP\x20Retrying...','MCP\x20Disconnected','Invalid\x20configuration','2645776gnbnDu','Disconnected','Univer\x20AI\x20Console','Connection\x20Failed','480089XnPCCr','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','Configuration\x20saved\x20successfully','3669952yGUzks','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connected','API\x20key\x20is\x20required'];_0x65cd=function(){return _0x34b446;};return _0x65cd();}const e={'mcpStatus':{'disconnected':_0x47654a(0x198),'connecting':_0x47654a(0x1ae),'connected':_0x47654a(0x1a7),'failed':'MCP\x20Connection\x20Failed','retrying':_0x47654a(0x197),'unknown':_0x47654a(0x18a),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x47654a(0x189),'clickToConfigure':_0x47654a(0x195)},'mcpConfig':{'title':_0x47654a(0x190),'description':_0x47654a(0x1b4),'apiKey':_0x47654a(0x191),'apiKeyPlaceholder':_0x47654a(0x1af),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x47654a(0x18d),'enableAuthHint':_0x47654a(0x1a9),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x47654a(0x1a0),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x47654a(0x1b2),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x47654a(0x1a6),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x47654a(0x1b3),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x47654a(0x1ad),'save':_0x47654a(0x192),'saving':'Saving...','note1':_0x47654a(0x194),'note2':_0x47654a(0x1a4),'configSaved':_0x47654a(0x1a2),'configError':_0x47654a(0x1a1),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x47654a(0x19f),'univerAiLabel':_0x47654a(0x19c),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x47654a(0x1a8),'apiKeyTooShort':_0x47654a(0x1aa),'invalidConfig':_0x47654a(0x199),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x47654a(0x19b),'connecting':'Connecting...','connected':_0x47654a(0x18e),'failed':_0x47654a(0x19d),'retrying':_0x47654a(0x1ab)},'connectionError':{'unauthorized':_0x47654a(0x1b1),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x47654a(0x1b0),'maxRetriesExceeded':_0x47654a(0x1a5)}}},n=e;function _0x4df7(_0x4d77af,_0x27549b){const _0x65cdb2=_0x65cd();return _0x4df7=function(_0x4df78f,_0x27532c){_0x4df78f=_0x4df78f-0x189;let _0x4d583d=_0x65cdb2[_0x4df78f];return _0x4d583d;},_0x4df7(_0x4d77af,_0x27549b);}export{n as default};