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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +1 -1
  13. package/lib/es/locale/ca-ES.js +1 -1
  14. package/lib/es/locale/en-US.js +1 -1
  15. package/lib/es/locale/es-ES.js +1 -1
  16. package/lib/es/locale/fa-IR.js +1 -1
  17. package/lib/es/locale/fr-FR.js +1 -1
  18. package/lib/es/locale/ko-KR.js +1 -1
  19. package/lib/es/locale/ru-RU.js +1 -1
  20. package/lib/es/locale/vi-VN.js +1 -1
  21. package/lib/es/locale/zh-CN.js +1 -1
  22. package/lib/es/locale/zh-TW.js +1 -1
  23. package/lib/index.js +1 -1
  24. package/lib/locale/ca-ES.js +1 -1
  25. package/lib/locale/en-US.js +1 -1
  26. package/lib/locale/es-ES.js +1 -1
  27. package/lib/locale/fa-IR.js +1 -1
  28. package/lib/locale/fr-FR.js +1 -1
  29. package/lib/locale/ko-KR.js +1 -1
  30. package/lib/locale/ru-RU.js +1 -1
  31. package/lib/locale/vi-VN.js +1 -1
  32. package/lib/locale/zh-CN.js +1 -1
  33. package/lib/locale/zh-TW.js +1 -1
  34. package/lib/umd/index.js +1 -1
  35. package/lib/umd/locale/ca-ES.js +1 -1
  36. package/lib/umd/locale/en-US.js +1 -1
  37. package/lib/umd/locale/es-ES.js +1 -1
  38. package/lib/umd/locale/fa-IR.js +1 -1
  39. package/lib/umd/locale/fr-FR.js +1 -1
  40. package/lib/umd/locale/ko-KR.js +1 -1
  41. package/lib/umd/locale/ru-RU.js +1 -1
  42. package/lib/umd/locale/vi-VN.js +1 -1
  43. package/lib/umd/locale/zh-CN.js +1 -1
  44. package/lib/umd/locale/zh-TW.js +1 -1
  45. package/package.json +5 -5
@@ -1 +1 @@
1
- 'use strict';const _0x15367c=_0x4d4f;(function(_0xa53145,_0x2444ce){const _0x3bc54a=_0x4d4f,_0x31aeaa=_0xa53145();while(!![]){try{const _0xda88e4=parseInt(_0x3bc54a(0x121))/0x1*(-parseInt(_0x3bc54a(0x135))/0x2)+-parseInt(_0x3bc54a(0x11c))/0x3*(parseInt(_0x3bc54a(0x13c))/0x4)+parseInt(_0x3bc54a(0x12f))/0x5*(parseInt(_0x3bc54a(0x11f))/0x6)+-parseInt(_0x3bc54a(0x117))/0x7*(-parseInt(_0x3bc54a(0x140))/0x8)+parseInt(_0x3bc54a(0x123))/0x9*(parseInt(_0x3bc54a(0x11e))/0xa)+-parseInt(_0x3bc54a(0x12e))/0xb+-parseInt(_0x3bc54a(0x12c))/0xc*(-parseInt(_0x3bc54a(0x11a))/0xd);if(_0xda88e4===_0x2444ce)break;else _0x31aeaa['push'](_0x31aeaa['shift']());}catch(_0x193672){_0x31aeaa['push'](_0x31aeaa['shift']());}}}(_0x16ce,0x2dd9e));function _0x4d4f(_0x5c0166,_0x25a584){const _0x16ce5e=_0x16ce();return _0x4d4f=function(_0x4d4f38,_0x1431eb){_0x4d4f38=_0x4d4f38-0x116;let _0x5b3ca4=_0x16ce5e[_0x4d4f38];return _0x5b3ca4;},_0x4d4f(_0x5c0166,_0x25a584);}function _0x16ce(){const _0x313242=['Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','2zpyGoq','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Session\x20ID','Click\x20to\x20configure\x20MCP','Saving...','4LpLOqa','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Disconnected','API\x20Key','1450712CpFlnu','Max\x20Retries','MCP:\x20API\x20Key\x20Missing','API\x20key\x20is\x20required\x20to\x20connect','MCP:\x20Session\x20Occupied','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Save\x20Configuration','Enter\x20your\x20API\x20key','7TupYzc','Invalid\x20configuration','Connection\x20Failed','403039pjeaKh','MCP\x20Configuration','735090XMWpTd','Failed\x20to\x20save\x20configuration','100jcbdDF','66GPkiVy','MCP\x20Connecting...','104699FFNozr','Configuration\x20saved\x20successfully','39546iPfiyV','MCP:\x20Network\x20Error','MCP\x20Retrying...','Enable\x20Authentication','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP\x20Unknown\x20Status','Click\x20to\x20connect\x20MCP','MCP\x20Connection\x20Failed','Disconnected','180WqtiJp','Server\x20Endpoint','3607725hnAPaz','79630ypiMIi','Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','Get\x20your\x20API\x20key\x20in\x20seconds','exports'];_0x16ce=function(){return _0x313242;};return _0x16ce();}const e={'mcpStatus':{'disconnected':_0x15367c(0x13e),'connecting':_0x15367c(0x120),'connected':'MCP\x20Connected','failed':_0x15367c(0x12a),'retrying':_0x15367c(0x125),'unknown':_0x15367c(0x128),'missingApiKey':_0x15367c(0x142),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x15367c(0x144),'networkError':_0x15367c(0x124),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x15367c(0x129),'clickToConfigure':_0x15367c(0x13a)},'mcpConfig':{'title':_0x15367c(0x11b),'description':_0x15367c(0x137),'apiKey':_0x15367c(0x13f),'apiKeyPlaceholder':_0x15367c(0x116),'apiKeyHint':_0x15367c(0x13d),'enableAuth':_0x15367c(0x126),'enableAuthHint':_0x15367c(0x131),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x15367c(0x12d),'sessionId':_0x15367c(0x139),'maxRetries':_0x15367c(0x141),'save':_0x15367c(0x146),'saving':_0x15367c(0x13b),'note1':_0x15367c(0x145),'note2':_0x15367c(0x138),'configSaved':_0x15367c(0x122),'configError':_0x15367c(0x11d),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x15367c(0x132)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x15367c(0x136),'invalidConfig':_0x15367c(0x118),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x15367c(0x12b),'connecting':'Connecting...','connected':'Connected','failed':_0x15367c(0x119),'retrying':_0x15367c(0x130)},'connectionError':{'missingApiKey':_0x15367c(0x143),'invalidApiKey':_0x15367c(0x127),'sessionOccupied':_0x15367c(0x134),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x15367c(0x133)]=n;
1
+ 'use strict';const _0x8e414c=_0x56bd;(function(_0x2b8f45,_0x4d3561){const _0x16fc41=_0x56bd,_0x116447=_0x2b8f45();while(!![]){try{const _0x2999dd=parseInt(_0x16fc41(0x10b))/0x1+-parseInt(_0x16fc41(0x10f))/0x2*(parseInt(_0x16fc41(0x10a))/0x3)+parseInt(_0x16fc41(0xf9))/0x4*(-parseInt(_0x16fc41(0x11b))/0x5)+-parseInt(_0x16fc41(0x11f))/0x6+-parseInt(_0x16fc41(0x109))/0x7*(-parseInt(_0x16fc41(0x116))/0x8)+-parseInt(_0x16fc41(0x103))/0x9*(parseInt(_0x16fc41(0x11d))/0xa)+-parseInt(_0x16fc41(0x115))/0xb*(-parseInt(_0x16fc41(0x111))/0xc);if(_0x2999dd===_0x4d3561)break;else _0x116447['push'](_0x116447['shift']());}catch(_0x1fb3c8){_0x116447['push'](_0x116447['shift']());}}}(_0x1123,0x1a9f1));function _0x56bd(_0xc68054,_0x2ded3b){const _0x112317=_0x1123();return _0x56bd=function(_0x56bd5e,_0x383c45){_0x56bd5e=_0x56bd5e-0xf6;let _0x5f026f=_0x112317[_0x56bd5e];return _0x5f026f;},_0x56bd(_0xc68054,_0x2ded3b);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x8e414c(0x11a),'connected':'MCP\x20Connected','failed':_0x8e414c(0xfc),'retrying':_0x8e414c(0x11e),'unknown':_0x8e414c(0x10d),'missingApiKey':_0x8e414c(0x104),'invalidApiKey':_0x8e414c(0xfa),'sessionOccupied':_0x8e414c(0xfe),'networkError':_0x8e414c(0x117),'maxRetriesExceeded':_0x8e414c(0x112),'clickToConnect':_0x8e414c(0xf8),'clickToConfigure':_0x8e414c(0xfb)},'mcpConfig':{'title':_0x8e414c(0x106),'description':_0x8e414c(0x121),'apiKey':_0x8e414c(0x107),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x8e414c(0x114),'enableAuth':_0x8e414c(0x100),'enableAuthHint':_0x8e414c(0x10e),'connectionInfo':_0x8e414c(0x118),'serverEndpoint':_0x8e414c(0x102),'sessionId':_0x8e414c(0x105),'maxRetries':'Max\x20Retries','save':_0x8e414c(0x122),'saving':'Saving...','note1':_0x8e414c(0xff),'note2':_0x8e414c(0xf7),'configSaved':_0x8e414c(0x101),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x8e414c(0x108),'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':_0x8e414c(0xf6),'getStarted':_0x8e414c(0x123)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x8e414c(0x110),'invalidConfig':_0x8e414c(0x11c),'invalidApiKey':_0x8e414c(0x120)},'connectionStatus':{'disconnected':_0x8e414c(0x119),'connecting':'Connecting...','connected':'Connected','failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x8e414c(0xfd),'maxRetriesExceeded':_0x8e414c(0x113)}}},n=e;function _0x1123(){const _0x16fe06=['Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20Authentication','Configuration\x20saved\x20successfully','Server\x20Endpoint','487629BCGZcj','MCP:\x20API\x20Key\x20Missing','Session\x20ID','MCP\x20Configuration','API\x20Key','What\x20is\x20API\x20Key?','14fvcCYw','48hHxNhn','79722ofdHga','exports','MCP\x20Unknown\x20Status','Enable\x20authentication\x20for\x20secure\x20connections','6712yQKaDD','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1728FvEkNs','MCP:\x20Max\x20Retries\x20Exceeded','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','40271zXtKFg','437128DMhzFL','MCP:\x20Network\x20Error','Connection\x20Information','Disconnected','MCP\x20Connecting...','255rsqwAW','Invalid\x20configuration','40poWeTK','MCP\x20Retrying...','1242204FjoDTj','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Save\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Univer\x20AI\x20Console','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Click\x20to\x20connect\x20MCP','10172piVHUt','MCP:\x20Invalid\x20API\x20Key','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Session\x20Occupied'];_0x1123=function(){return _0x16fe06;};return _0x1123();}module[_0x8e414c(0x10c)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x1fa5c1=_0xccac;(function(_0x19cf89,_0x4c1179){const _0x573bbf=_0xccac,_0x1cf079=_0x19cf89();while(!![]){try{const _0x586a37=parseInt(_0x573bbf(0x11e))/0x1*(-parseInt(_0x573bbf(0x106))/0x2)+-parseInt(_0x573bbf(0x10c))/0x3*(parseInt(_0x573bbf(0x100))/0x4)+-parseInt(_0x573bbf(0x120))/0x5+-parseInt(_0x573bbf(0xfd))/0x6+parseInt(_0x573bbf(0x124))/0x7+parseInt(_0x573bbf(0x108))/0x8*(-parseInt(_0x573bbf(0x113))/0x9)+parseInt(_0x573bbf(0x11c))/0xa;if(_0x586a37===_0x4c1179)break;else _0x1cf079['push'](_0x1cf079['shift']());}catch(_0x2c2dc7){_0x1cf079['push'](_0x1cf079['shift']());}}}(_0x4e4e,0x5d616));function _0x4e4e(){const _0x4b82a7=['40284hMaHlU','连接中...','exports','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Univer\x20AI\x20控制台','启用身份验证','1706aNjqRe','连接失败','8tkuBrU','MCP\x20状态未知','MCP\x20已连接','启用身份验证以获得安全连接','123gCjWnO','点击连接\x20MCP','未连接','MCP:\x20网络错误','API\x20密钥','配置更改将立即生效','配置无效','5675571MIWrTg','什么是\x20API\x20密钥?','MCP\x20连接失败','MCP:\x20无效的\x20API\x20密钥','保存配置','API\x20密钥无效,请检查您的密钥后重试','MCP\x20重连中...','MCP\x20配置','配置保存成功','19209040RYqEvg','会话当前被占用,请稍后再试','299AqIZZA','最大重试次数','172605WplyaP','重连中...','会话ID','MCP\x20已断开','2607633gFuLKE','API\x20密钥长度至少需要\x2010\x20位','网络连接错误,请检查您的网络连接','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','超出最大重试次数,请稍后再试','请输入您的\x20API\x20密钥','已连接','MCP:\x20缺少\x20API\x20密钥','点击配置\x20MCP','API\x20密钥无效,请检查密钥是否正确','3467034FFxPaG','MCP\x20连接中...','连接信息'];_0x4e4e=function(){return _0x4b82a7;};return _0x4e4e();}const e={'mcpStatus':{'disconnected':_0x1fa5c1(0x123),'connecting':_0x1fa5c1(0xfe),'connected':_0x1fa5c1(0x10a),'failed':_0x1fa5c1(0x115),'retrying':_0x1fa5c1(0x119),'unknown':_0x1fa5c1(0x109),'missingApiKey':_0x1fa5c1(0x12b),'invalidApiKey':_0x1fa5c1(0x116),'sessionOccupied':'MCP:\x20会话被占用','networkError':_0x1fa5c1(0x10f),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x1fa5c1(0x10d),'clickToConfigure':_0x1fa5c1(0x12c)},'mcpConfig':{'title':_0x1fa5c1(0x11a),'description':_0x1fa5c1(0x103),'apiKey':_0x1fa5c1(0x110),'apiKeyPlaceholder':_0x1fa5c1(0x129),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x1fa5c1(0x105),'enableAuthHint':_0x1fa5c1(0x10b),'connectionInfo':_0x1fa5c1(0xff),'serverEndpoint':'服务器端点','sessionId':_0x1fa5c1(0x122),'maxRetries':_0x1fa5c1(0x11f),'save':_0x1fa5c1(0x117),'saving':'保存中...','note1':_0x1fa5c1(0x111),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x1fa5c1(0x11b),'configError':'配置保存失败','apiApplyInfo':{'title':_0x1fa5c1(0x114),'description':_0x1fa5c1(0x127),'univerAiLabel':_0x1fa5c1(0x104),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x1fa5c1(0x125),'invalidConfig':_0x1fa5c1(0x112),'invalidApiKey':_0x1fa5c1(0xfc)},'connectionStatus':{'disconnected':_0x1fa5c1(0x10e),'connecting':_0x1fa5c1(0x101),'connected':_0x1fa5c1(0x12a),'failed':_0x1fa5c1(0x107),'retrying':_0x1fa5c1(0x121)},'connectionError':{'missingApiKey':'需要\x20API\x20密钥才能连接','invalidApiKey':_0x1fa5c1(0x118),'sessionOccupied':_0x1fa5c1(0x11d),'networkError':_0x1fa5c1(0x126),'maxRetriesExceeded':_0x1fa5c1(0x128)}}};function _0xccac(_0x49798c,_0x45d0c7){const _0x4e4e60=_0x4e4e();return _0xccac=function(_0xccacca,_0x138567){_0xccacca=_0xccacca-0xfc;let _0x5b875b=_0x4e4e60[_0xccacca];return _0x5b875b;},_0xccac(_0x49798c,_0x45d0c7);}module[_0x1fa5c1(0x102)]=e;
1
+ 'use strict';function _0x415e(_0x41e0f9,_0xa56c31){const _0x2953c9=_0x2953();return _0x415e=function(_0x415ea2,_0x1b41d7){_0x415ea2=_0x415ea2-0x14c;let _0xcdd862=_0x2953c9[_0x415ea2];return _0xcdd862;},_0x415e(_0x41e0f9,_0xa56c31);}const _0x5320d8=_0x415e;(function(_0x1fe353,_0x26a5a6){const _0x5a95c=_0x415e,_0x120f3e=_0x1fe353();while(!![]){try{const _0x2deb0a=parseInt(_0x5a95c(0x150))/0x1*(parseInt(_0x5a95c(0x14d))/0x2)+parseInt(_0x5a95c(0x16a))/0x3*(-parseInt(_0x5a95c(0x170))/0x4)+parseInt(_0x5a95c(0x174))/0x5*(-parseInt(_0x5a95c(0x160))/0x6)+parseInt(_0x5a95c(0x151))/0x7*(-parseInt(_0x5a95c(0x165))/0x8)+-parseInt(_0x5a95c(0x16e))/0x9+parseInt(_0x5a95c(0x15e))/0xa+-parseInt(_0x5a95c(0x156))/0xb*(-parseInt(_0x5a95c(0x14c))/0xc);if(_0x2deb0a===_0x26a5a6)break;else _0x120f3e['push'](_0x120f3e['shift']());}catch(_0x39ef79){_0x120f3e['push'](_0x120f3e['shift']());}}}(_0x2953,0xe69d0));function _0x2953(){const _0x5a0d0a=['您的\x20API\x20密钥安全存储在本地存储中','API\x20密钥无效,请检查您的密钥后重试','点击配置\x20MCP','exports','8987UMPNmK','保存中...','MCP\x20重连中...','点击连接\x20MCP','API\x20密钥无效,请检查密钥是否正确','连接中...','MCP\x20连接失败','最大重试次数','5999010DtFZnS','启用身份验证以获得安全连接','7924752oKpzbR','会话ID','已连接','服务器端点','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','200BcyKNI','MCP\x20已连接','网络连接错误,请检查您的网络连接','会话当前被占用,请稍后再试','配置无效','39IOrYnn','MCP\x20配置','配置\x20MCP\x20使用\x20AI\x20操作电子表格','什么是\x20API\x20密钥?','7278552qRKtMh','MCP:\x20网络错误','24736roKgAw','配置保存失败','超出最大重试次数,请稍后再试','连接信息','5ImcQMW','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20密钥','35436BUeVft','142dmGUSM','MCP:\x20超出最大重试次数','几秒钟内获取您的\x20API\x20密钥','24737QLafCk','452011jrbfkr'];_0x2953=function(){return _0x5a0d0a;};return _0x2953();}const e={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':'MCP\x20连接中...','connected':_0x5320d8(0x166),'failed':_0x5320d8(0x15c),'retrying':_0x5320d8(0x158),'unknown':'MCP\x20状态未知','missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':'MCP:\x20无效的\x20API\x20密钥','sessionOccupied':'MCP:\x20会话被占用','networkError':_0x5320d8(0x16f),'maxRetriesExceeded':_0x5320d8(0x14e),'clickToConnect':_0x5320d8(0x159),'clickToConfigure':_0x5320d8(0x154)},'mcpConfig':{'title':_0x5320d8(0x16b),'description':_0x5320d8(0x16c),'apiKey':_0x5320d8(0x176),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x5320d8(0x175),'enableAuth':'启用身份验证','enableAuthHint':_0x5320d8(0x15f),'connectionInfo':_0x5320d8(0x173),'serverEndpoint':_0x5320d8(0x163),'sessionId':_0x5320d8(0x161),'maxRetries':_0x5320d8(0x15d),'save':'保存配置','saving':_0x5320d8(0x157),'note1':'配置更改将立即生效','note2':_0x5320d8(0x152),'configSaved':'配置保存成功','configError':_0x5320d8(0x171),'apiApplyInfo':{'title':_0x5320d8(0x16d),'description':_0x5320d8(0x164),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x5320d8(0x14f)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x5320d8(0x169),'invalidApiKey':_0x5320d8(0x15a)},'connectionStatus':{'disconnected':'未连接','connecting':_0x5320d8(0x15b),'connected':_0x5320d8(0x162),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'missingApiKey':'需要\x20API\x20密钥才能连接','invalidApiKey':_0x5320d8(0x153),'sessionOccupied':_0x5320d8(0x168),'networkError':_0x5320d8(0x167),'maxRetriesExceeded':_0x5320d8(0x172)}}};module[_0x5320d8(0x155)]=e;
@@ -1 +1 @@
1
- 'use strict';const _0x3fb048=_0x39ac;(function(_0x2f38a9,_0x40a495){const _0x38c313=_0x39ac,_0x289630=_0x2f38a9();while(!![]){try{const _0x1542c4=-parseInt(_0x38c313(0x170))/0x1+parseInt(_0x38c313(0x164))/0x2+parseInt(_0x38c313(0x16e))/0x3*(parseInt(_0x38c313(0x168))/0x4)+-parseInt(_0x38c313(0x163))/0x5*(-parseInt(_0x38c313(0x165))/0x6)+parseInt(_0x38c313(0x14a))/0x7*(parseInt(_0x38c313(0x15d))/0x8)+-parseInt(_0x38c313(0x156))/0x9*(-parseInt(_0x38c313(0x15e))/0xa)+parseInt(_0x38c313(0x178))/0xb*(-parseInt(_0x38c313(0x16c))/0xc);if(_0x1542c4===_0x40a495)break;else _0x289630['push'](_0x289630['shift']());}catch(_0x58d14d){_0x289630['push'](_0x289630['shift']());}}}(_0x297d,0x2db50));function _0x39ac(_0x310c70,_0x51ac02){const _0x297d98=_0x297d();return _0x39ac=function(_0x39ac58,_0x1b8f23){_0x39ac58=_0x39ac58-0x145;let _0x4cb536=_0x297d98[_0x39ac58];return _0x4cb536;},_0x39ac(_0x310c70,_0x51ac02);}function _0x297d(){const _0x4491c6=['Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20is\x20required','API\x20key\x20is\x20required\x20to\x20connect','MCP\x20Configuration','9vqvZCL','Session\x20ID','What\x20is\x20API\x20Key?','Invalid\x20configuration','Save\x20Configuration','exports','Saving...','184pNDzbP','3588670mjAYaI','Connection\x20Failed','MCP:\x20Network\x20Error','MCP\x20Connection\x20Failed','Server\x20Endpoint','200avfgBt','699862VTlvPd','23292fuIkIf','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connecting...','12CFCXIX','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connected','Connection\x20Information','9984qwRBEL','MCP\x20Unknown\x20Status','273549NVRbhu','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','238106srblbY','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Retrying...','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Max\x20Retries\x20Exceeded','Click\x20to\x20configure\x20MCP','MCP:\x20Invalid\x20API\x20Key','Enable\x20authentication\x20for\x20secure\x20connections','13079UETWAk','MCP\x20Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connected','API\x20Key','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','84287cRhyEc','MCP:\x20Session\x20Occupied','Enter\x20your\x20API\x20key','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Enable\x20Authentication','Disconnected','Max\x20Retries'];_0x297d=function(){return _0x4491c6;};return _0x297d();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3fb048(0x145),'connected':_0x3fb048(0x16a),'failed':_0x3fb048(0x161),'retrying':_0x3fb048(0x172),'unknown':_0x3fb048(0x16d),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x3fb048(0x176),'sessionOccupied':_0x3fb048(0x14b),'networkError':_0x3fb048(0x160),'maxRetriesExceeded':_0x3fb048(0x174),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x3fb048(0x175)},'mcpConfig':{'title':_0x3fb048(0x155),'description':_0x3fb048(0x16f),'apiKey':_0x3fb048(0x148),'apiKeyPlaceholder':_0x3fb048(0x14c),'apiKeyHint':_0x3fb048(0x152),'enableAuth':_0x3fb048(0x14e),'enableAuthHint':_0x3fb048(0x177),'connectionInfo':_0x3fb048(0x16b),'serverEndpoint':_0x3fb048(0x162),'sessionId':_0x3fb048(0x157),'maxRetries':_0x3fb048(0x150),'save':_0x3fb048(0x15a),'saving':_0x3fb048(0x15c),'note1':_0x3fb048(0x173),'note2':_0x3fb048(0x151),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3fb048(0x158),'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':'Univer\x20AI\x20Console','getStarted':_0x3fb048(0x171)},'validation':{'apiKeyRequired':_0x3fb048(0x153),'apiKeyTooShort':_0x3fb048(0x169),'invalidConfig':_0x3fb048(0x159),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x3fb048(0x14f),'connecting':_0x3fb048(0x167),'connected':_0x3fb048(0x147),'failed':_0x3fb048(0x15f),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x3fb048(0x154),'invalidApiKey':_0x3fb048(0x149),'sessionOccupied':_0x3fb048(0x14d),'networkError':_0x3fb048(0x166),'maxRetriesExceeded':_0x3fb048(0x146)}}},n=e;module[_0x3fb048(0x15b)]=n;
1
+ 'use strict';const _0x42bf23=_0x173e;(function(_0x3920ed,_0x2fc59d){const _0x1ac56a=_0x173e,_0x46d598=_0x3920ed();while(!![]){try{const _0x11f096=parseInt(_0x1ac56a(0x1c6))/0x1*(parseInt(_0x1ac56a(0x1f7))/0x2)+parseInt(_0x1ac56a(0x1d4))/0x3*(parseInt(_0x1ac56a(0x1d9))/0x4)+parseInt(_0x1ac56a(0x1d5))/0x5*(parseInt(_0x1ac56a(0x1d8))/0x6)+-parseInt(_0x1ac56a(0x1df))/0x7*(parseInt(_0x1ac56a(0x1c8))/0x8)+parseInt(_0x1ac56a(0x1de))/0x9+parseInt(_0x1ac56a(0x1e9))/0xa+-parseInt(_0x1ac56a(0x1db))/0xb*(parseInt(_0x1ac56a(0x1da))/0xc);if(_0x11f096===_0x2fc59d)break;else _0x46d598['push'](_0x46d598['shift']());}catch(_0x1c7f57){_0x46d598['push'](_0x46d598['shift']());}}}(_0x279d,0x56516));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x42bf23(0x1f1),'connected':_0x42bf23(0x1f0),'failed':'MCP\x20Connection\x20Failed','retrying':_0x42bf23(0x1e3),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0x42bf23(0x1cd),'invalidApiKey':_0x42bf23(0x1c7),'sessionOccupied':_0x42bf23(0x1f3),'networkError':_0x42bf23(0x1dd),'maxRetriesExceeded':_0x42bf23(0x1f2),'clickToConnect':_0x42bf23(0x1f8),'clickToConfigure':_0x42bf23(0x1ed)},'mcpConfig':{'title':_0x42bf23(0x1d2),'description':_0x42bf23(0x1d0),'apiKey':_0x42bf23(0x1cc),'apiKeyPlaceholder':_0x42bf23(0x1d7),'apiKeyHint':_0x42bf23(0x1d1),'enableAuth':_0x42bf23(0x1e2),'enableAuthHint':_0x42bf23(0x1e5),'connectionInfo':_0x42bf23(0x1cb),'serverEndpoint':_0x42bf23(0x1f6),'sessionId':_0x42bf23(0x1ef),'maxRetries':_0x42bf23(0x1c4),'save':_0x42bf23(0x1eb),'saving':_0x42bf23(0x1e1),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x42bf23(0x1e4),'configSaved':_0x42bf23(0x1e6),'configError':_0x42bf23(0x1f5),'apiApplyInfo':{'title':_0x42bf23(0x1e0),'description':_0x42bf23(0x1f4),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x42bf23(0x1ec)},'validation':{'apiKeyRequired':_0x42bf23(0x1ce),'apiKeyTooShort':_0x42bf23(0x1c5),'invalidConfig':_0x42bf23(0x1d3),'invalidApiKey':_0x42bf23(0x1cf)},'connectionStatus':{'disconnected':_0x42bf23(0x1ca),'connecting':_0x42bf23(0x1d6),'connected':_0x42bf23(0x1e8),'failed':_0x42bf23(0x1e7),'retrying':'Retrying...'},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x42bf23(0x1ee),'sessionOccupied':_0x42bf23(0x1dc),'networkError':_0x42bf23(0x1c9),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x42bf23(0x1ea)]=n;function _0x173e(_0x24fee4,_0x1c2bbe){const _0x279d36=_0x279d();return _0x173e=function(_0x173e09,_0x2bf60f){_0x173e09=_0x173e09-0x1c4;let _0x4b87b9=_0x279d36[_0x173e09];return _0x4b87b9;},_0x173e(_0x24fee4,_0x1c2bbe);}function _0x279d(){const _0x1a6f1d=['Click\x20to\x20connect\x20MCP','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','82LKeZTn','MCP:\x20Invalid\x20API\x20Key','16IVmKnH','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Disconnected','Connection\x20Information','API\x20Key','MCP:\x20API\x20Key\x20Missing','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Configuration','Invalid\x20configuration','1938DZiokQ','200QoNUuH','Connecting...','Enter\x20your\x20API\x20key','36492nHlAlW','2200PnyyLc','305220WmJIuD','44ojCAAl','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','MCP:\x20Network\x20Error','2663910IkLBth','2145633RDHmPY','What\x20is\x20API\x20Key?','Saving...','Enable\x20Authentication','MCP\x20Retrying...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20saved\x20successfully','Connection\x20Failed','Connected','1456400ovaCTe','exports','Save\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20configure\x20MCP','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Session\x20ID','MCP\x20Connected','MCP\x20Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Session\x20Occupied','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Failed\x20to\x20save\x20configuration','Server\x20Endpoint','686WxlnjC'];_0x279d=function(){return _0x1a6f1d;};return _0x279d();}
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0xc1789a=_0x33ae;(function(_0x3ba8ae,_0x3239e5){var _0x21372c=_0x33ae,_0x394b36=_0x3ba8ae();while(!![]){try{var _0x205199=parseInt(_0x21372c(0x274))/0x1*(parseInt(_0x21372c(0x235))/0x2)+parseInt(_0x21372c(0x1fc))/0x3*(parseInt(_0x21372c(0x1aa))/0x4)+parseInt(_0x21372c(0x22d))/0x5+-parseInt(_0x21372c(0x18b))/0x6*(-parseInt(_0x21372c(0x15d))/0x7)+parseInt(_0x21372c(0x1b5))/0x8*(-parseInt(_0x21372c(0x214))/0x9)+parseInt(_0x21372c(0x236))/0xa*(-parseInt(_0x21372c(0x1ed))/0xb)+-parseInt(_0x21372c(0x175))/0xc;if(_0x205199===_0x3239e5)break;else _0x394b36['push'](_0x394b36['shift']());}catch(_0x108e5b){_0x394b36['push'](_0x394b36['shift']());}}}(_0x4de0,0xdde9b));var Se=Object['defineProperty'],xe=(_0x537fea,_0x256088,_0x5f3380)=>_0x256088 in _0x537fea?Se(_0x537fea,_0x256088,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f3380}):_0x537fea[_0x256088]=_0x5f3380,N=(_0x4d093a,_0x266118,_0x2f6a0f)=>xe(_0x4d093a,typeof _0x266118!=_0xc1789a(0x18e)?_0x266118+'':_0x266118,_0x2f6a0f);import{LocaleService as _0xbaffd5,Inject as _0x4cb90b,Injector as _0x448b06,IConfigService as _0x5a06e9,ILocalStorageService as _0xf37a6b,ILogService as _0x4fb853,Disposable as _0x225cf9,CommandType as _0x661ca2,ICommandService as _0xcc8eb2,DependentOn as _0x1988ce,Plugin as _0x156b89,merge as _0x37b7f4}from'@univerjs/core';import{jsxs as _0x556a41,jsx as _0x2bf37b}from'react/jsx-runtime';import{MCPConnectionStatus as _0x48936c,MCPConnectionError as _0x5a4b8c,MCPConnectionController as _0x27dad2,MCP_PLUGIN_CONFIG_KEY as _0x39db2a,UniverMCPPlugin as _0x2bb3c7}from'@univerjs-pro/mcp';import{Input as _0x35757a,Button as _0x1abec0,MessageType as _0x5ce56f,Tooltip as _0x7efe13,clsx as _0x6a6f5c}from'@univerjs/design';import{useDependency as _0x28253d,useObservable as _0xb93d84,IUIPartsService as _0x13ba0a,IDialogService as _0x459b51,IMessageService as _0x54e4f9,ComponentManager as _0x37c218,connectInjector as _0x150892,BuiltInUIPart as _0x5304a3,MenuItemType as _0x5a6c3f,RibbonStartGroup as _0x2085ed,IMenuManagerService as _0x3e1938}from'@univerjs/ui';import{BehaviorSubject as _0x18dae0}from'rxjs';import{forwardRef as _0x306804,useRef as _0x4c8ada,createElement as _0x31e930,useState as _0x4d08e2,useCallback as _0x262585}from'react';var d=function(){return d=Object['assign']||function(_0x9a8210){var _0x274d81=_0x33ae;for(var _0x16b0a3,_0x56d4fb=0x1,_0x3821ea=arguments[_0x274d81(0x1fb)];_0x56d4fb<_0x3821ea;_0x56d4fb++){_0x16b0a3=arguments[_0x56d4fb];for(var _0x5591f1 in _0x16b0a3)Object[_0x274d81(0x241)][_0x274d81(0x20c)][_0x274d81(0x13a)](_0x16b0a3,_0x5591f1)&&(_0x9a8210[_0x5591f1]=_0x16b0a3[_0x5591f1]);}return _0x9a8210;},d['apply'](this,arguments);},Ye=function(_0x2bca65,_0x10bbc4){var _0x4e4a6b=_0xc1789a,_0x3e13bb={};for(var _0x466ac8 in _0x2bca65)Object[_0x4e4a6b(0x241)][_0x4e4a6b(0x20c)]['call'](_0x2bca65,_0x466ac8)&&_0x10bbc4['indexOf'](_0x466ac8)<0x0&&(_0x3e13bb[_0x466ac8]=_0x2bca65[_0x466ac8]);if(_0x2bca65!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x178f5d=0x0,_0x466ac8=Object[_0x4e4a6b(0x1a5)](_0x2bca65);_0x178f5d<_0x466ac8['length'];_0x178f5d++)_0x10bbc4[_0x4e4a6b(0x267)](_0x466ac8[_0x178f5d])<0x0&&Object['prototype'][_0x4e4a6b(0x21d)][_0x4e4a6b(0x13a)](_0x2bca65,_0x466ac8[_0x178f5d])&&(_0x3e13bb[_0x466ac8[_0x178f5d]]=_0x2bca65[_0x466ac8[_0x178f5d]]);}return _0x3e13bb;},S=_0x306804(function(_0x1d297e,_0x2d1996){var _0x1b95a5=_0xc1789a,_0x1209e1=_0x1d297e[_0x1b95a5(0x27d)],_0x2ee2d6=_0x1d297e['id'],_0xf22312=_0x1d297e[_0x1b95a5(0x202)],_0x2e2a4b=_0x1d297e[_0x1b95a5(0x238)],_0x31d508=Ye(_0x1d297e,[_0x1b95a5(0x27d),'id','className',_0x1b95a5(0x238)]),_0x4e60a8=_0x1b95a5(0x199)[_0x1b95a5(0x21e)](_0x2ee2d6,'\x20')[_0x1b95a5(0x21e)](_0xf22312||'')[_0x1b95a5(0x247)](),_0x3316bf=_0x4c8ada('_'[_0x1b95a5(0x21e)](He()));return oe(_0x1209e1,''[_0x1b95a5(0x21e)](_0x2ee2d6),{'defIds':_0x1209e1[_0x1b95a5(0x1f2)],'idSuffix':_0x3316bf['current']},d({'ref':_0x2d1996,'className':_0x4e60a8},_0x31d508),_0x2e2a4b);});function oe(_0x2a9783,_0x851808,_0x3cbaed,_0xd79a3b,_0x206499){var _0x5d339a=_0xc1789a;return _0x31e930(_0x2a9783['tag'],d(d({'key':_0x851808},Ve(_0x2a9783,_0x3cbaed,_0x206499)),_0xd79a3b),(Fe(_0x2a9783,_0x3cbaed)[_0x5d339a(0x226)]||[])[_0x5d339a(0x1cc)](function(_0x1af9eb,_0x47ec3b){var _0x1b707a=_0x5d339a;return oe(_0x1af9eb,''[_0x1b707a(0x21e)](_0x851808,'-')[_0x1b707a(0x21e)](_0x2a9783[_0x1b707a(0x193)],'-')[_0x1b707a(0x21e)](_0x47ec3b),_0x3cbaed,void 0x0,_0x206499);}));}function _0x4de0(){var _0x136eea=['next','Configuration\x20Notes:','配置无效','mcpStatus.invalidApiKey','showDeveloperTools','onStarting','0\x200\x2017\x2017','mcpConfig.note1','length','11103DxLCXm','mcpConfig.serverEndpoint','mcpServerUrl','off-line-icon_clip0_910_343','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','M5.21243\x205.62036L11.8791\x2012.287','className','_connectionController','currentColor','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','label','0\x200\x2017\x2016','INVALID_API_KEY','M0\x200H16V16H0z','您的\x20API\x20密钥安全存储在本地存储中','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','hasOwnProperty','clipPath','_mcpConnectionController','_initStatusComponent','Retrying...','_mcpCoreConfig$','xlink:href','univer-flex-shrink-0\x20univer-text-red-500','3104190ozxhwB','_uiPartsService','MCP:\x20Network\x20Error','mcpStatus.maxRetriesExceeded','mcpConfig.validation.invalidApiKey','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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','univer-text-green-500','_config$','API\x20key\x20is\x20required\x20to\x20connect','propertyIsEnumerable','concat','mcp-ui.command.openConfigPanel','univer-space-y-3','Click\x20to\x20configure\x20MCP','showConfigPanel','colorChannel1','_initConfigSync','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children','NETWORK_ERROR','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer.plus','univer-bg-gray-500','mcpConfig.connectionStatus.connecting','API\x20密钥无效,请检查您的密钥后重试','4002255QxNyaF','mcpStatus.unknown','defs','univer-flex-shrink-0\x20univer-text-blue-500','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','mcp-ui.config','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','round','10FASAEm','3040sasrTQ','_validateConfig','extend','MCP:\x20Max\x20Retries\x20Exceeded','close','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','open','Click\x20to\x20connect\x20MCP','未连接','substring','连接信息','prototype','pluginName','replace','Disconnected','MCP\x20重连中...','_handleConfigSave','trim','MCP\x20Connecting...','none','会话当前被占用,请稍后再试','_loading$','mcpConfig.validation.apiKeyTooShort','MCP\x20已连接','mcpConfig.validation.apiKeyRequired','MCP\x20Configuration','register','Connection\x20Information','Univer\x20AI\x20控制台','get','idSuffix','default','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-flex\x20univer-cursor-pointer\x20univer-items-center','mask','连接中...','0\x200\x2016\x2016','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer-text-red-500','FAILED','path','配置更改将立即生效','disposeWithMe','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_localStorageService','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','off','mcpStatus.connecting','BUTTON','indexOf','mcpConfig.connectionStatus.retrying','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','启用身份验证','保存中...','mcpStatus.networkError','OTHERS','MCP\x20连接中...','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','noopener\x20noreferrer','connectionError$','entries','308234nYvWOh','url(#$1','mcpConfig.connectionError.missingApiKey','connectionStatus$','SESSION_ID_OCCUPIED','_localeService','use','M5.21243\x2012.287L11.8791\x205.62036','配置保存成功','icon','bottom','几秒钟内获取您的\x20API\x20密钥','1em','string','Enable\x20authentication\x20for\x20secure\x20connections','includes','UniverIcon','MCP\x20Retrying...','NONE','call','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','validateApiKey','MCP\x20Connected','_dialogService','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer.ai','\x20-\x20','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','需要\x20API\x20密钥才能连接','errorMessage','_messageService','_commandService','sessionId','Success','点击连接\x20MCP','univer-space-y-5','warn','Server\x20Endpoint','会话ID','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','Save\x20Configuration','MCP:\x20超出最大重试次数','univer-flex\x20univer-items-center\x20univer-gap-2','univer-bg-red-500','COMMAND','mcpStatus.disconnected','assign','text','_loadStoredApiKey','OnLineIcon','univer-flex\x20univer-items-start\x20univer-gap-3','code','univer-break-all\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-blue-600','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','14bWTOOw','_initializeMenus','MCP:\x20API\x20Key\x20Missing','mcpConfig.apiApplyInfo.univerAiLabel','javascript:void(0)','Close','MCP\x20配置','OffLineIcon','mcpConfig.configSaved','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-flex\x20univer-items-start\x20univer-gap-2','setConfig','_injector','mcpConfig.apiKeyPlaceholder','mcpStatus.clickToConnect','mcpConfig.title','registerComponent','getCurrentConfig','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','mcpStatus.failed','MCP\x20已断开','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','https://console.univer.plus','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','32731860OGtLSM','HelpSingle','_registerComponent','univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','apiKey','Connection\x20Failed','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','CloseSmallSingle','mcpConfig.connectionError.networkError','API\x20密钥不能为空','保存配置','value','white','mcpConfig.save','evenodd','mcpConfig.connectionError.invalidApiKey','Invalid\x20configuration','_menuManagerService','univer-text-xs\x20univer-text-gray-500','什么是\x20API\x20密钥?','DISCONNECTED','Session\x20ID','1651002HyQNAj','subscribeConfigValue$','off-line-icon','symbol','univer-text-sm\x20univer-font-medium','attrs','mcp.apiKey','univer-mr-2\x20univer-flex\x20univer-text-xl','tag','MCP\x20Connection\x20Failed','displayName','CONNECTED','Connecting...','MCP_UI_PLUGIN','univerjs-icon\x20univerjs-icon-','univer-min-w-0\x20univer-flex-1','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCP:\x20会话被占用','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','MCP\x20状态未知','MCP\x20Disconnected','Enter\x20your\x20API\x20key','MCP:\x20无效的\x20API\x20密钥','重连中...','_config','univer-text-white','getOwnPropertySymbols','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','_createConfigPanelComponent','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','toString','1700otODNE','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','getItem','univer-flex\x20univer-gap-3','MISSING_API_KEY','点击配置\x20MCP','univer-text-gray-500','mcpConfig.connectionStatus.connected','已连接','show','8oYyJFC','on-line-icon','url(#off-line-icon_clip0_910_343)','url(#on-line-icon_clip0_910_349)','fill','http://www.w3.org/2000/svg','getConfig','univer-text-gray-400','svg','mcpConfig.apiApplyInfo.title','_initializeCommands','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-bg-green-500','MAX_RETRIES_EXCEEDED','removeItem','CONNECTING','forEach','add','mcpConfig.apiKey','网络连接错误,请检查您的网络连接','span','_configService','服务器端点','map','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','setItem','您的\x20API\x20密钥将在此浏览器中本地存储','on-line-icon_clip0_910_349','Error','mcpStatus.clickToConfigure','isValid','mcpConfig.apiKeyHint','close-small-single','getOwnPropertyDescriptor','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-bg-blue-500','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','mcpConfig.connectionStatus.disconnected','random','请输入您的\x20API\x20密钥','_handleConfigure','MCP:\x20网络错误','registerCommand','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','mcpStatus.retrying','_componentManager','MCPConfigPanel','div','mcpConfig.validation.invalidConfig','mcpConfig.connectionError.sessionOccupied','univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-gray-700','MCP\x20连接失败','univer-space-y-2','defineProperty','RETRYING','MenuIcon','17490wRlVzv','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcp-config-dialog','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_logService','defIds'];_0x4de0=function(){return _0x136eea;};return _0x4de0();}function Ve(_0x5cb47c,_0x4e1635,_0x5ee1c0){var _0x25cc2f=_0xc1789a,_0xf6c04f=d({},_0x5cb47c[_0x25cc2f(0x190)]);_0x5ee1c0!=null&&_0x5ee1c0[_0x25cc2f(0x223)]&&_0xf6c04f[_0x25cc2f(0x1b9)]===_0x25cc2f(0x223)&&(_0xf6c04f[_0x25cc2f(0x1b9)]=_0x5ee1c0[_0x25cc2f(0x223)]),_0x5cb47c[_0x25cc2f(0x193)]==='mask'&&_0xf6c04f['id']&&(_0xf6c04f['id']=_0xf6c04f['id']+_0x4e1635[_0x25cc2f(0x254)]),Object[_0x25cc2f(0x273)](_0xf6c04f)[_0x25cc2f(0x1c5)](function(_0x597e3){var _0x47bf15=_0x25cc2f,_0x4a9f15=_0x597e3[0x0],_0x3edfb0=_0x597e3[0x1];_0x4a9f15===_0x47bf15(0x258)&&typeof _0x3edfb0=='string'&&(_0xf6c04f[_0x4a9f15]=_0x3edfb0[_0x47bf15(0x243)](/url\(#(.*)\)/,'url(#$1'[_0x47bf15(0x21e)](_0x4e1635[_0x47bf15(0x254)],')')));});var _0x51df6d=_0x4e1635[_0x25cc2f(0x1f2)];return!_0x51df6d||_0x51df6d[_0x25cc2f(0x1fb)]===0x0||(_0x5cb47c['tag']===_0x25cc2f(0x27a)&&_0xf6c04f['xlink:href']&&(_0xf6c04f[_0x25cc2f(0x212)]=_0xf6c04f[_0x25cc2f(0x212)]+_0x4e1635[_0x25cc2f(0x254)]),Object[_0x25cc2f(0x273)](_0xf6c04f)[_0x25cc2f(0x1c5)](function(_0x2d4854){var _0x473e0c=_0x25cc2f,_0x1acd6f=_0x2d4854[0x0],_0x2ed7b2=_0x2d4854[0x1];typeof _0x2ed7b2==_0x473e0c(0x281)&&(_0xf6c04f[_0x1acd6f]=_0x2ed7b2[_0x473e0c(0x243)](/url\(#(.*)\)/,_0x473e0c(0x275)[_0x473e0c(0x21e)](_0x4e1635['idSuffix'],')')));})),_0xf6c04f;}function Fe(_0x48b697,_0x4a7753){var _0x49f801=_0xc1789a,_0x445eac,_0x1944ac=_0x4a7753[_0x49f801(0x1f2)];return!_0x1944ac||_0x1944ac[_0x49f801(0x1fb)]===0x0?_0x48b697:_0x48b697[_0x49f801(0x193)]==='defs'&&(!((_0x445eac=_0x48b697[_0x49f801(0x226)])===null||_0x445eac===void 0x0)&&_0x445eac['length'])?d(d({},_0x48b697),{'children':_0x48b697[_0x49f801(0x226)][_0x49f801(0x1cc)](function(_0x176c0b){var _0x5a78df=_0x49f801;return typeof _0x176c0b[_0x5a78df(0x190)]['id']==_0x5a78df(0x281)&&_0x1944ac&&_0x1944ac['includes'](_0x176c0b[_0x5a78df(0x190)]['id'])?d(d({},_0x176c0b),{'attrs':d(d({},_0x176c0b[_0x5a78df(0x190)]),{'id':_0x176c0b[_0x5a78df(0x190)]['id']+_0x4a7753[_0x5a78df(0x254)]})}):_0x176c0b;})}):_0x48b697;}function He(){var _0x3e7872=_0xc1789a;return Math[_0x3e7872(0x1db)]()[_0x3e7872(0x1a9)](0x24)[_0x3e7872(0x23f)](0x2,0x8);}S['displayName']=_0xc1789a(0x284);var We={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xc1789a(0x249),'viewBox':'0\x200\x2016\x2016','width':_0xc1789a(0x280),'height':_0xc1789a(0x280)},'children':[{'tag':_0xc1789a(0x25e),'attrs':{'fill':_0xc1789a(0x204),'d':_0xc1789a(0x1e0),'fillRule':_0xc1789a(0x183),'clipRule':_0xc1789a(0x183)}}]},ce=_0x306804(function(_0x254e9e,_0x57b595){var _0x7f056d=_0xc1789a;return _0x31e930(S,Object[_0x7f056d(0x155)]({},_0x254e9e,{'id':'check-mark-icon','ref':_0x57b595,'icon':We}));});ce[_0xc1789a(0x195)]='CheckMarkIcon';var Be={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xc1789a(0x249),'viewBox':_0xc1789a(0x1f9),'width':'1em','height':_0xc1789a(0x280)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0xc1789a(0x201),'strokeLinecap':'round','strokeLinejoin':_0xc1789a(0x234),'strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':_0xc1789a(0x204),'d':_0xc1789a(0x27b),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.33}}]},ae=_0x306804(function(_0x5e972c,_0xc435e3){var _0x2cd33f=_0xc1789a;return _0x31e930(S,Object[_0x2cd33f(0x155)]({},_0x5e972c,{'id':_0x2cd33f(0x1d5),'ref':_0xc435e3,'icon':Be}));});ae[_0xc1789a(0x195)]=_0xc1789a(0x17c);var ze={'tag':_0xc1789a(0x1bd),'attrs':{'xmlns':_0xc1789a(0x1ba),'fill':_0xc1789a(0x249),'viewBox':_0xc1789a(0x25a),'width':_0xc1789a(0x280),'height':_0xc1789a(0x280)},'children':[{'tag':'path','attrs':{'fill':_0xc1789a(0x204),'d':_0xc1789a(0x17b)}},{'tag':_0xc1789a(0x25e),'attrs':{'fill':'currentColor','d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':_0xc1789a(0x25e),'attrs':{'fill':_0xc1789a(0x204),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0xc1789a(0x183),'clipRule':_0xc1789a(0x183)}}]},se=_0x306804(function(_0x3569f9,_0x189399){return _0x31e930(S,Object['assign']({},_0x3569f9,{'id':'help-single','ref':_0x189399,'icon':ze}));});se[_0xc1789a(0x195)]=_0xc1789a(0x176);var qe={'tag':_0xc1789a(0x1bd),'attrs':{'xmlns':_0xc1789a(0x1ba),'fill':_0xc1789a(0x249),'viewBox':_0xc1789a(0x25a),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xc1789a(0x1b7)},'children':[{'tag':_0xc1789a(0x25e),'attrs':{'stroke':_0xc1789a(0x204),'d':_0xc1789a(0x1d9),'strokeLinecap':_0xc1789a(0x234),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xc1789a(0x22f),'attrs':{},'children':[{'tag':_0xc1789a(0x20d),'attrs':{'id':_0xc1789a(0x1ff)},'children':[{'tag':_0xc1789a(0x25e),'attrs':{'fill':_0xc1789a(0x181),'d':_0xc1789a(0x209)}}]}]}],'defIds':[_0xc1789a(0x1ff)]},le=_0x306804(function(_0x4ad9d3,_0x5382d3){var _0x5d8175=_0xc1789a;return _0x31e930(S,Object['assign']({},_0x4ad9d3,{'id':_0x5d8175(0x18d),'ref':_0x5382d3,'icon':qe}));});le[_0xc1789a(0x195)]=_0xc1789a(0x164);var Ze={'tag':_0xc1789a(0x1bd),'attrs':{'xmlns':_0xc1789a(0x1ba),'fill':_0xc1789a(0x249),'viewBox':_0xc1789a(0x207),'width':'1em','height':_0xc1789a(0x280)},'children':[{'tag':'g','attrs':{'clipPath':_0xc1789a(0x1b8)},'children':[{'tag':_0xc1789a(0x25e),'attrs':{'stroke':_0xc1789a(0x204),'d':_0xc1789a(0x142),'strokeLinecap':_0xc1789a(0x234),'strokeLinejoin':_0xc1789a(0x234),'strokeWidth':1.2}}]},{'tag':_0xc1789a(0x22f),'attrs':{},'children':[{'tag':_0xc1789a(0x20d),'attrs':{'id':_0xc1789a(0x1d0)},'children':[{'tag':_0xc1789a(0x25e),'attrs':{'fill':'white','d':_0xc1789a(0x209),'transform':'translate(.97)'}}]}]}],'defIds':[_0xc1789a(0x1d0)]},ue=_0x306804(function(_0x4db156,_0x38ccb3){var _0x3488cd=_0xc1789a;return _0x31e930(S,Object['assign']({},_0x4db156,{'id':_0x3488cd(0x1b6),'ref':_0x38ccb3,'icon':Ze}));});ue[_0xc1789a(0x195)]=_0xc1789a(0x158);function _0x33ae(_0x5c22fc,_0x4a8cc7){var _0x4de0e2=_0x4de0();return _0x33ae=function(_0x33ae3e,_0x169f83){_0x33ae3e=_0x33ae3e-0x138;var _0x197731=_0x4de0e2[_0x33ae3e];return _0x197731;},_0x33ae(_0x5c22fc,_0x4a8cc7);}function Xe(_0xdef1ee){var _0x2ac33a=_0xc1789a,_0x3c4d80,_0x2b2309;const {mcpCoreConfig:_0x253848,onSave:_0x5b2c4a,loading:_0x22403b=!0x1,config:_0x4dbf82,connectionStatus$:_0x1749d5,connectionError$:_0x136b17}=_0xdef1ee,_0x19d372=_0x28253d(_0xbaffd5),_0x336e13=_0xb93d84(_0x1749d5,_0x48936c['DISCONNECTED']),_0xde438a=_0xb93d84(_0x136b17,_0x5a4b8c[_0x2ac33a(0x139)]),[_0x2bd837,_0x3b96de]=_0x4d08e2(_0x253848['apiKey']||''),_0xe6a8a4=!0x0,_0x386d6a=_0x4dbf82[_0x2ac33a(0x1f7)]&&_0x253848[_0x2ac33a(0x1fe)]&&(_0x253848[_0x2ac33a(0x1fe)]['includes'](_0x2ac33a(0x229))||_0x253848[_0x2ac33a(0x1fe)][_0x2ac33a(0x283)](_0x2ac33a(0x140))),_0x3eb6f2=(_0x3c4d80=_0x253848[_0x2ac33a(0x1fe)])==null?void 0x0:_0x3c4d80[_0x2ac33a(0x283)]('univer.plus'),_0x3b844a=(_0x2b2309=_0x253848[_0x2ac33a(0x1fe)])==null?void 0x0:_0x2b2309[_0x2ac33a(0x283)]('univer.ai'),_0x433846=_0x3eb6f2?_0x2ac33a(0x173):'https://console.univer.ai',_0x2516eb=_0x4dbf82[_0x2ac33a(0x1f7)]&&(_0x3eb6f2||_0x3b844a),[_0x4f1810,_0x3896a0]=_0x4d08e2(!_0x2bd837[_0x2ac33a(0x247)]()),_0x1adbf1=(_0x27e0ec,_0x3f9af2)=>{var _0x3194f1=_0x2ac33a;if(_0x3f9af2===_0x5a4b8c[_0x3194f1(0x1af)]||_0x3f9af2===_0x5a4b8c[_0x3194f1(0x208)])return _0x3194f1(0x20b);switch(_0x27e0ec){case _0x48936c[_0x3194f1(0x196)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x48936c[_0x3194f1(0x1c4)]:case _0x48936c[_0x3194f1(0x1eb)]:return _0x3194f1(0x200);case _0x48936c['FAILED']:return _0x3194f1(0x20b);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x3afeeb=(_0x1eaad4,_0x108265)=>{var _0x482420=_0x2ac33a;if(_0x108265===_0x5a4b8c[_0x482420(0x1af)]||_0x108265===_0x5a4b8c[_0x482420(0x208)])return _0x482420(0x152);switch(_0x1eaad4){case _0x48936c[_0x482420(0x196)]:return _0x482420(0x1c1);case _0x48936c[_0x482420(0x1c4)]:case _0x48936c['RETRYING']:return _0x482420(0x1d8);case _0x48936c[_0x482420(0x25d)]:return _0x482420(0x152);default:return _0x482420(0x22a);}},_0x462528=_0xb94a6a=>{var _0x289db6=_0x2ac33a;switch(_0xb94a6a){case _0x48936c[_0x289db6(0x196)]:return _0x19d372['t'](_0x289db6(0x1b2));case _0x48936c['CONNECTING']:return _0x19d372['t'](_0x289db6(0x22b));case _0x48936c[_0x289db6(0x25d)]:return _0x19d372['t']('mcpConfig.connectionStatus.failed');case _0x48936c[_0x289db6(0x1eb)]:return _0x19d372['t'](_0x289db6(0x268));default:return _0x19d372['t'](_0x289db6(0x1da));}},_0x17a9b5=_0x5651c2=>{var _0xda81b=_0x2ac33a;switch(_0x5651c2){case _0x5a4b8c[_0xda81b(0x1af)]:return _0x19d372['t'](_0xda81b(0x276));case _0x5a4b8c[_0xda81b(0x208)]:return _0x19d372['t'](_0xda81b(0x184));case _0x5a4b8c[_0xda81b(0x278)]:return _0x19d372['t'](_0xda81b(0x1e6));case _0x5a4b8c[_0xda81b(0x227)]:return _0x19d372['t'](_0xda81b(0x17d));case _0x5a4b8c['MAX_RETRIES_EXCEEDED']:return _0x19d372['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x1d7015=_0x262585(()=>{var _0x30865c=_0x2ac33a;const _0x1dd6f1={..._0x253848,'apiKey':_0x2bd837[_0x30865c(0x247)](),'enableAuth':_0xe6a8a4};_0x5b2c4a(_0x1dd6f1);},[_0x253848,_0x2bd837,_0xe6a8a4,_0x5b2c4a]),_0xc9c7b6=_0x2bd837['trim']()[_0x2ac33a(0x1fb)]>0x0;return _0x556a41(_0x2ac33a(0x1e4),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x2bf37b(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x19b),'children':_0x556a41(_0x2ac33a(0x1e4),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x2bf37b(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x1c0),'children':_0x2bf37b(_0x2ac33a(0x1c9),{'className':_0x2ac33a(0x1a4),'children':'⚙'})}),_0x2bf37b(_0x2ac33a(0x1e4),{'children':_0x2bf37b('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x19d372['t']('mcpConfig.description')})})]})}),_0x556a41(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x270),'children':[_0x2bf37b(_0x2ac33a(0x1e4),{'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'+_0x1adbf1(_0x336e13,_0xde438a)+_0x2ac33a(0x19d),'children':_0x556a41(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x151),'children':[_0x2bf37b(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x219)+_0x3afeeb(_0x336e13,_0xde438a)+'\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'}),_0x2bf37b(_0x2ac33a(0x1c9),{'className':_0x2ac33a(0x18f),'children':_0x462528(_0x336e13)})]})}),_0xde438a!==_0x5a4b8c[_0x2ac33a(0x139)]&&(_0x336e13===_0x48936c[_0x2ac33a(0x25d)]||_0xde438a===_0x5a4b8c[_0x2ac33a(0x1af)]||_0xde438a===_0x5a4b8c[_0x2ac33a(0x208)])&&_0x2bf37b(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x1f0),'children':_0x556a41('div',{'className':_0x2ac33a(0x167),'children':[_0x2bf37b('span',{'className':_0x2ac33a(0x213),'children':'⚠️'}),_0x2bf37b('p',{'className':_0x2ac33a(0x225),'children':_0x17a9b5(_0xde438a)})]})})]}),_0x2bf37b(_0x2ac33a(0x1e4),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x556a41(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x14a),'children':[_0x556a41(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x1e9),'children':[_0x556a41(_0x2ac33a(0x206),{'className':_0x2ac33a(0x166),'children':[_0x2bf37b(_0x2ac33a(0x1c9),{'children':'🔑'}),'\x20',_0x19d372['t'](_0x2ac33a(0x1c7)),_0x2bf37b(_0x2ac33a(0x1c9),{'className':_0x2ac33a(0x25c),'children':'*'}),_0x386d6a&&_0x2bf37b('a',{'href':_0x2ac33a(0x161),'onClick':()=>_0x3896a0(!0x0),'className':_0x2ac33a(0x233),'title':_0x19d372['t']('mcpConfig.apiApplyInfo.title'),'children':_0x2bf37b(se,{})})]}),_0x2bf37b(_0x35757a,{'type':_0x2ac33a(0x156),'placeholder':_0x19d372['t'](_0x2ac33a(0x16a)),'value':_0x2bd837,'onChange':_0x3b96de,'disabled':_0x22403b,'autoComplete':_0x2ac33a(0x264)}),_0x2bf37b('p',{'className':_0x2ac33a(0x187),'children':_0x19d372['t'](_0x2ac33a(0x1d4))})]}),_0x386d6a&&_0x4f1810&&_0x556a41('div',{'className':_0x2ac33a(0x231),'children':[_0x2bf37b('a',{'href':_0x2ac33a(0x161),'onClick':()=>_0x3896a0(!0x1),'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','title':_0x2ac33a(0x162),'children':_0x2bf37b(ae,{})}),_0x556a41(_0x2ac33a(0x1e4),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x2bf37b(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x14e),'children':_0x2bf37b(_0x2ac33a(0x1c9),{'className':'univer-text-blue-600','children':'🚀'})}),_0x556a41(_0x2ac33a(0x1e4),{'className':'univer-flex-1','children':[_0x2bf37b('h4',{'className':_0x2ac33a(0x1ab),'children':_0x19d372['t'](_0x2ac33a(0x1be))}),_0x2bf37b('p',{'className':_0x2ac33a(0x1d7),'children':_0x19d372['t']('mcpConfig.apiApplyInfo.description')}),_0x2bf37b(_0x2ac33a(0x1e4),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x2516eb&&_0x556a41('a',{'href':_0x433846,'target':'_blank','rel':_0x2ac33a(0x271),'className':_0x2ac33a(0x1a6),'children':[_0x2bf37b(_0x2ac33a(0x1c9),{'children':'🤖'}),_0x19d372['t'](_0x2ac33a(0x160)),_0x2bf37b(_0x2ac33a(0x1c9),{'className':_0x2ac33a(0x1bc),'children':'↗'})]})}),_0x556a41('div',{'className':_0x2ac33a(0x205),'children':['✨','\x20',_0x19d372['t']('mcpConfig.apiApplyInfo.getStarted')]})]})]})]}),_0x4dbf82[_0x2ac33a(0x1f7)]&&_0x556a41(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x13b),'children':[_0x556a41('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x2bf37b('span',{'children':'🔗'}),'\x20',_0x19d372['t']('mcpConfig.connectionInfo')]}),_0x556a41(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x220),'children':[_0x556a41(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x159),'children':[_0x2bf37b('div',{'className':_0x2ac33a(0x1ee)}),_0x556a41(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x19a),'children':[_0x2bf37b(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x178),'children':_0x19d372['t'](_0x2ac33a(0x1fd))}),_0x2bf37b(_0x2ac33a(0x15a),{'className':_0x2ac33a(0x15b),'children':_0x253848[_0x2ac33a(0x1fe)]})]})]}),_0x556a41(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x159),'children':[_0x2bf37b('div',{'className':_0x2ac33a(0x1ee)}),_0x556a41(_0x2ac33a(0x1e4),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x2bf37b(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x178),'children':_0x19d372['t']('mcpConfig.sessionId')}),_0x2bf37b(_0x2ac33a(0x15a),{'className':_0x2ac33a(0x1e7),'children':_0x253848[_0x2ac33a(0x147)]||_0x2ac33a(0x255)})]})]})]})]}),_0x2bf37b(_0x1abec0,{'onClick':_0x1d7015,'disabled':!_0xc9c7b6||_0x22403b,'className':_0x2ac33a(0x25b),'children':_0x22403b?_0x556a41(_0x2ac33a(0x1c9),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2bf37b(_0x2ac33a(0x1c9),{'children':'⟲'}),_0x19d372['t']('mcpConfig.saving')]}):_0x556a41(_0x2ac33a(0x1c9),{'className':_0x2ac33a(0x151),'children':[_0x2bf37b(ce,{}),_0x19d372['t'](_0x2ac33a(0x182))]})}),_0x2bf37b(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x256),'children':_0x556a41(_0x2ac33a(0x1e4),{'className':_0x2ac33a(0x1ae),'children':[_0x2bf37b(_0x2ac33a(0x1c9),{'className':_0x2ac33a(0x230),'children':'💡'}),_0x556a41(_0x2ac33a(0x1e4),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x2bf37b('div',{'className':'univer-font-medium','children':_0x2ac33a(0x1f4)}),_0x556a41('div',{'children':['•',_0x19d372['t'](_0x2ac33a(0x1fa))]}),_0x556a41(_0x2ac33a(0x1e4),{'children':['•',_0x19d372['t']('mcpConfig.note2')]})]})]})})]})})]});}const U=_0xc1789a(0x232),J={'showDeveloperTools':!0x1};var Je=Object[_0xc1789a(0x1d6)],Qe=(_0x2be9ba,_0x3679bf,_0x106cad,_0x29f9aa)=>{var _0x124724=_0xc1789a;for(var _0x62f37f=_0x29f9aa>0x1?void 0x0:_0x29f9aa?Je(_0x3679bf,_0x106cad):_0x3679bf,_0x525eb8=_0x2be9ba[_0x124724(0x1fb)]-0x1,_0x242a0e;_0x525eb8>=0x0;_0x525eb8--)(_0x242a0e=_0x2be9ba[_0x525eb8])&&(_0x62f37f=_0x242a0e(_0x62f37f)||_0x62f37f);return _0x62f37f;},p=(_0x520fc5,_0x242234)=>(_0x52e849,_0x3e42e4)=>_0x242234(_0x52e849,_0x3e42e4,_0x520fc5);const R=_0xc1789a(0x191),j=_0xc1789a(0x1ef);let _=class extends _0x225cf9{constructor(_0x13c01f,_0xf90d45,_0x2bc5ad,_0x281759,_0x5648d7,_0x4633eb,_0x53fe80,_0x4f2880,_0x49e9a,_0x4f4e56){var _0x4dcd5f=_0xc1789a;super(),N(this,_0x4dcd5f(0x24b),new _0x18dae0(!0x1)),N(this,_0x4dcd5f(0x211),new _0x18dae0({})),N(this,_0x4dcd5f(0x21b),new _0x18dae0({})),N(this,_0x4dcd5f(0x246),async _0x3dbf9f=>{var _0xa0e561=_0x4dcd5f;this[_0xa0e561(0x24b)][_0xa0e561(0x1f3)](!0x0);try{const _0x9fb5ff=await this[_0xa0e561(0x237)](_0x3dbf9f);if(!_0x9fb5ff['isValid']){this['_messageService'][_0xa0e561(0x1b4)]({'type':_0x5ce56f[_0xa0e561(0x1d1)],'content':_0x9fb5ff[_0xa0e561(0x144)]||this['_localeService']['t'](_0xa0e561(0x1e5))});return;}_0x3dbf9f[_0xa0e561(0x179)]?await this[_0xa0e561(0x262)][_0xa0e561(0x1ce)](R,_0x3dbf9f[_0xa0e561(0x179)][_0xa0e561(0x247)]()):await this[_0xa0e561(0x262)][_0xa0e561(0x1c3)](R),this[_0xa0e561(0x1ca)][_0xa0e561(0x168)](_0x39db2a,{..._0x3dbf9f,'apiKey':_0x3dbf9f[_0xa0e561(0x179)]['trim']()}),this[_0xa0e561(0x211)][_0xa0e561(0x1f3)]({..._0x3dbf9f,'apiKey':_0x3dbf9f[_0xa0e561(0x179)][_0xa0e561(0x247)]()}),this[_0xa0e561(0x145)][_0xa0e561(0x1b4)]({'type':_0x5ce56f[_0xa0e561(0x148)],'content':this['_localeService']['t'](_0xa0e561(0x165))}),setTimeout(()=>{var _0x1cb616=_0xa0e561;this[_0x1cb616(0x13e)][_0x1cb616(0x23a)](j);},0x320);}catch(_0x5f142e){this[_0xa0e561(0x1f1)]['error'](_0xa0e561(0x263),_0x5f142e),this[_0xa0e561(0x145)][_0xa0e561(0x1b4)]({'type':_0x5ce56f[_0xa0e561(0x1d1)],'content':this[_0xa0e561(0x279)]['t']('mcpConfig.configError')});}finally{this[_0xa0e561(0x24b)][_0xa0e561(0x1f3)](!0x1);}}),(this[_0x4dcd5f(0x169)]=_0x13c01f,this[_0x4dcd5f(0x215)]=_0xf90d45,this[_0x4dcd5f(0x1ca)]=_0x2bc5ad,this[_0x4dcd5f(0x262)]=_0x281759,this[_0x4dcd5f(0x13e)]=_0x5648d7,this[_0x4dcd5f(0x145)]=_0x4633eb,this[_0x4dcd5f(0x1e2)]=_0x53fe80,this['_localeService']=_0x4f2880,this[_0x4dcd5f(0x1f1)]=_0x49e9a,this[_0x4dcd5f(0x20e)]=_0x4f4e56,this[_0x4dcd5f(0x224)](),this[_0x4dcd5f(0x157)](),this[_0x4dcd5f(0x177)]());}['showConfigPanel'](){var _0x3da134=_0xc1789a;this[_0x3da134(0x13e)][_0x3da134(0x23c)]({'id':j,'title':{'title':this[_0x3da134(0x279)]['t']('mcpConfig.title')},'children':{'label':_0x3da134(0x1e3)},'width':0x1e0,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{this['_dialogService']['close'](j);}});}[_0xc1789a(0x16e)](){var _0x2ae4e9=_0xc1789a;return this['_mcpCoreConfig$'][_0x2ae4e9(0x180)];}[_0xc1789a(0x177)](){var _0x2009c8=_0xc1789a;this[_0x2009c8(0x260)](this['_componentManager'][_0x2009c8(0x250)](_0x2009c8(0x1e3),this[_0x2009c8(0x1a7)]()));}['_createConfigPanelComponent'](){return _0x150892(()=>{var _0x3eff71=_0x33ae,_0x4afc21,_0x57032b;return _0x2bf37b(Xe,{'config':this[_0x3eff71(0x21b)][_0x3eff71(0x180)],'mcpCoreConfig':this[_0x3eff71(0x211)][_0x3eff71(0x180)],'onSave':this[_0x3eff71(0x246)],'loading':this[_0x3eff71(0x24b)][_0x3eff71(0x180)],'connectionStatus$':(_0x4afc21=this[_0x3eff71(0x20e)])==null?void 0x0:_0x4afc21[_0x3eff71(0x277)],'connectionError$':(_0x57032b=this['_mcpConnectionController'])==null?void 0x0:_0x57032b[_0x3eff71(0x272)]});},this['_injector']);}['_initConfigSync'](){var _0x1d2627=_0xc1789a;this[_0x1d2627(0x260)](this[_0x1d2627(0x1ca)][_0x1d2627(0x18c)](_0x39db2a)['subscribe'](_0x421cf6=>{var _0x5a6979=_0x1d2627;this[_0x5a6979(0x211)]['next'](_0x421cf6||{});}));const _0x2017cb=this[_0x1d2627(0x1ca)][_0x1d2627(0x1bb)](_0x39db2a);this[_0x1d2627(0x211)][_0x1d2627(0x1f3)](_0x2017cb||{}),this[_0x1d2627(0x260)](this[_0x1d2627(0x1ca)][_0x1d2627(0x18c)](U)['subscribe'](_0x16fdd2=>{var _0x1b9272=_0x1d2627;this[_0x1b9272(0x21b)][_0x1b9272(0x1f3)](_0x16fdd2||{});}));const _0x480f78=this[_0x1d2627(0x1ca)][_0x1d2627(0x1bb)](U);this[_0x1d2627(0x21b)][_0x1d2627(0x1f3)](_0x480f78||{});}async['_loadStoredApiKey'](){var _0x3bf186=_0xc1789a;const _0x20875b=await this[_0x3bf186(0x262)][_0x3bf186(0x1ad)](R);if(_0x20875b){const _0x2fe66c={...this[_0x3bf186(0x211)]['value'],'apiKey':_0x20875b};this[_0x3bf186(0x1ca)]['setConfig'](_0x39db2a,_0x2fe66c),this[_0x3bf186(0x211)]['next'](_0x2fe66c);}}async[_0xc1789a(0x237)](_0x49ac02){var _0xb2c232=_0xc1789a;if(!_0x49ac02[_0xb2c232(0x179)]||_0x49ac02[_0xb2c232(0x179)]['trim']()[_0xb2c232(0x1fb)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0xb2c232(0x279)]['t'](_0xb2c232(0x24e))};if(_0x49ac02['apiKey']['trim']()[_0xb2c232(0x1fb)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0xb2c232(0x279)]['t'](_0xb2c232(0x24c))};try{const _0x4bc3b6=await this[_0xb2c232(0x169)][_0xb2c232(0x253)](_0x27dad2)[_0xb2c232(0x13c)](_0x49ac02['apiKey'][_0xb2c232(0x247)]());return _0x4bc3b6[_0xb2c232(0x1d3)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4bc3b6['error']||this[_0xb2c232(0x279)]['t'](_0xb2c232(0x218))};}catch(_0x1fc673){return console[_0xb2c232(0x14b)](_0xb2c232(0x1ac),_0x1fc673),{'isValid':!0x0};}}};_=Qe([p(0x0,_0x4cb90b(_0x448b06)),p(0x1,_0x13ba0a),p(0x2,_0x5a06e9),p(0x3,_0xf37a6b),p(0x4,_0x459b51),p(0x5,_0x54e4f9),p(0x6,_0x4cb90b(_0x37c218)),p(0x7,_0x4cb90b(_0xbaffd5)),p(0x8,_0x4fb853),p(0x9,_0x4cb90b(_0x27dad2))],_);const W={'id':_0xc1789a(0x21f),'type':_0x661ca2[_0xc1789a(0x153)],'handler':async(_0x5cb09a,_0x497a73)=>(_0x5cb09a[_0xc1789a(0x253)](_)[_0xc1789a(0x222)](),!0x0)};function ve(_0x33b16a,_0x5ef3b2){var _0x143c15=_0xc1789a;switch(_0x33b16a){case _0x48936c[_0x143c15(0x189)]:return _0x5ef3b2===_0x5a4b8c[_0x143c15(0x1af)]?'mcpStatus.missingApiKey':_0x143c15(0x154);case _0x48936c[_0x143c15(0x1c4)]:return _0x143c15(0x265);case _0x48936c['CONNECTED']:return'mcpStatus.connected';case _0x48936c[_0x143c15(0x25d)]:switch(_0x5ef3b2){case _0x5a4b8c['INVALID_API_KEY']:return _0x143c15(0x1f6);case _0x5a4b8c[_0x143c15(0x278)]:return'mcpStatus.sessionOccupied';case _0x5a4b8c['NETWORK_ERROR']:return _0x143c15(0x26d);case _0x5a4b8c[_0x143c15(0x1c2)]:return _0x143c15(0x217);default:return _0x143c15(0x170);}case _0x48936c[_0x143c15(0x1eb)]:return _0x143c15(0x1e1);default:return _0x143c15(0x22e);}}function en(_0x12e4db,_0x2a049e,_0x164868){var _0x37cf0e=_0xc1789a;const _0x118389=ve(_0x12e4db,_0x2a049e),_0x287557=_0x164868['t'](_0x118389);return _0x12e4db===_0x48936c['DISCONNECTED']&&_0x2a049e===_0x5a4b8c['MISSING_API_KEY']?_0x287557+_0x37cf0e(0x141)+_0x164868['t'](_0x37cf0e(0x1d2)):_0x12e4db===_0x48936c[_0x37cf0e(0x196)]?''+_0x287557:_0x12e4db===_0x48936c[_0x37cf0e(0x189)]||_0x12e4db===_0x48936c[_0x37cf0e(0x25d)]?_0x287557+_0x37cf0e(0x141)+_0x164868['t'](_0x37cf0e(0x16b)):_0x287557;}function nn(_0x9ba6be){var _0x5cf8ca=_0xc1789a;switch(_0x9ba6be){case _0x48936c['CONNECTED']:return _0x5cf8ca(0x21a);case _0x48936c[_0x5cf8ca(0x1c4)]:case _0x48936c[_0x5cf8ca(0x1eb)]:return'univer-text-yellow-500';case _0x48936c[_0x5cf8ca(0x25d)]:case _0x48936c[_0x5cf8ca(0x189)]:return'univer-text-red-500';default:return _0x5cf8ca(0x1b1);}}function rn(_0x3f5e85){var _0x830901=_0xc1789a;const {status$:_0x42b6be,error$:_0x1271a0,onConfigure:_0x579616}=_0x3f5e85,_0x567de7=_0xb93d84(_0x42b6be,_0x48936c[_0x830901(0x189)]),_0x13ecc0=_0xb93d84(_0x1271a0,_0x5a4b8c[_0x830901(0x139)]),_0x3618ec=_0x28253d(_0xbaffd5),_0x353f79=_0x567de7===_0x48936c[_0x830901(0x196)],_0x2a84aa=_0x567de7===_0x48936c['CONNECTING']||_0x567de7===_0x48936c[_0x830901(0x1eb)],_0xf523a5=_0x3618ec['t'](ve(_0x567de7,_0x13ecc0)),_0x55076a=en(_0x567de7,_0x13ecc0,_0x3618ec),_0x5bf1e5=nn(_0x567de7),_0x3490c9=_0x353f79?_0x2bf37b(ue,{}):_0x2bf37b(le,{}),_0x171676=_0x262585(()=>{_0x579616&&_0x579616();},[_0x353f79,_0x2a84aa,_0x579616]);function _0xecbdfb(){var _0x178fa5=_0x830901;return _0x556a41(_0x178fa5(0x1e4),{'className':_0x6a6f5c(_0x178fa5(0x257),_0x579616&&'hover:univer-opacity-80'),'onClick':_0x579616?_0x171676:void 0x0,'children':[_0x2bf37b(_0x178fa5(0x1e4),{'className':_0x6a6f5c(_0x178fa5(0x192),_0x5bf1e5),'children':_0x3490c9}),_0x2bf37b(_0x178fa5(0x1e4),{'className':_0x178fa5(0x174),'children':_0xf523a5})]});}return _0x2bf37b(_0x7efe13,{'title':_0x55076a,'placement':_0x830901(0x27e),'children':_0xecbdfb()});}var tn=Object['getOwnPropertyDescriptor'],on=(_0x13a001,_0x4e1023,_0x12f0e3,_0x58daaa)=>{for(var _0x5a95f4=_0x58daaa>0x1?void 0x0:_0x58daaa?tn(_0x4e1023,_0x12f0e3):_0x4e1023,_0x417f54=_0x13a001['length']-0x1,_0x33d5c6;_0x417f54>=0x0;_0x417f54--)(_0x33d5c6=_0x13a001[_0x417f54])&&(_0x5a95f4=_0x33d5c6(_0x5a95f4)||_0x5a95f4);return _0x5a95f4;},L=(_0x565a88,_0x2271e7)=>(_0x20568b,_0x51c2ab)=>_0x2271e7(_0x20568b,_0x51c2ab,_0x565a88);let O=class extends _0x225cf9{constructor(_0x414136,_0x15ab20,_0x75d40c){var _0xd410d7=_0xc1789a;super(),this[_0xd410d7(0x169)]=_0x414136,this[_0xd410d7(0x203)]=_0x15ab20,this['_uiPartsService']=_0x75d40c,this[_0xd410d7(0x20f)]();}[_0xc1789a(0x20f)](){var _0x509820=_0xc1789a;this[_0x509820(0x260)](this['_uiPartsService'][_0x509820(0x16d)](_0x5304a3['HEADER_MENU'],()=>_0x150892(cn({'status$':this[_0x509820(0x203)]['connectionStatus$'],'error$':this['_connectionController']['connectionError$'],'onConfigure':()=>this[_0x509820(0x1dd)]()}),this['_injector'])));}[_0xc1789a(0x1dd)](){var _0x5d9d88=_0xc1789a;this[_0x5d9d88(0x169)][_0x5d9d88(0x253)](_)['showConfigPanel']();}};O=on([L(0x0,_0x4cb90b(_0x448b06)),L(0x1,_0x4cb90b(_0x27dad2)),L(0x2,_0x13ba0a)],O);function cn(_0x497e14){const {status$:_0x341bbf,error$:_0x447407,onConfigure:_0x469499}=_0x497e14;return function(){return _0x2bf37b(rn,{'status$':_0x341bbf,'error$':_0x447407,'onConfigure':_0x469499});};}function an(_0x5091e5){var _0x4e7734=_0xc1789a;return{'id':W['id'],'type':_0x5a6c3f[_0x4e7734(0x266)],'icon':_0x4e7734(0x1ec),'title':_0x4e7734(0x16c),'tooltip':_0x4e7734(0x16c)};}const sn={[_0x2085ed[_0xc1789a(0x26e)]]:{[W['id']]:{'order':0xa,'menuItemFactory':an}}};var ln=Object[_0xc1789a(0x1d6)],un=(_0x465434,_0x5eea8b,_0x28b29a,_0x5e78bc)=>{var _0xaa25d8=_0xc1789a;for(var _0x5e3cd2=_0x5e78bc>0x1?void 0x0:_0x5e78bc?ln(_0x5eea8b,_0x28b29a):_0x5eea8b,_0x177568=_0x465434[_0xaa25d8(0x1fb)]-0x1,_0x56d298;_0x177568>=0x0;_0x177568--)(_0x56d298=_0x465434[_0x177568])&&(_0x5e3cd2=_0x56d298(_0x5e3cd2)||_0x5e3cd2);return _0x5e3cd2;},Q=(_0x4edf0c,_0xbca2e4)=>(_0x388515,_0x21c7fe)=>_0xbca2e4(_0x388515,_0x21c7fe,_0x4edf0c);let k=class extends _0x225cf9{constructor(_0x1074c6,_0x24774e){var _0xce123e=_0xc1789a;super(),this[_0xce123e(0x146)]=_0x1074c6,this[_0xce123e(0x186)]=_0x24774e,this[_0xce123e(0x1bf)](),this[_0xce123e(0x15e)]();}[_0xc1789a(0x1bf)](){var _0x7ffe53=_0xc1789a;[W][_0x7ffe53(0x1c5)](_0x123898=>{var _0x3c7f52=_0x7ffe53;this['disposeWithMe'](this[_0x3c7f52(0x146)][_0x3c7f52(0x1df)](_0x123898));});}[_0xc1789a(0x15e)](){var _0x5510d9=_0xc1789a;this[_0x5510d9(0x186)]['mergeMenu'](sn);}};k=un([Q(0x0,_0xcc8eb2),Q(0x1,_0x3e1938)],k);const Nn={'mcpStatus':{'disconnected':_0xc1789a(0x19f),'connecting':_0xc1789a(0x248),'connected':_0xc1789a(0x13d),'failed':_0xc1789a(0x194),'retrying':_0xc1789a(0x138),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':_0xc1789a(0x15f),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0xc1789a(0x216),'maxRetriesExceeded':_0xc1789a(0x239),'clickToConnect':_0xc1789a(0x23d),'clickToConfigure':_0xc1789a(0x221)},'mcpConfig':{'title':_0xc1789a(0x24f),'description':_0xc1789a(0x1cd),'apiKey':'API\x20Key','apiKeyPlaceholder':_0xc1789a(0x1a0),'apiKeyHint':_0xc1789a(0x15c),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0xc1789a(0x282),'connectionInfo':_0xc1789a(0x251),'serverEndpoint':_0xc1789a(0x14c),'sessionId':_0xc1789a(0x18a),'maxRetries':'Max\x20Retries','save':_0xc1789a(0x14f),'saving':'Saving...','note1':_0xc1789a(0x23b),'note2':_0xc1789a(0x228),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0xc1789a(0x16f),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0xc1789a(0x185),'invalidApiKey':_0xc1789a(0x261)},'connectionStatus':{'disconnected':_0xc1789a(0x244),'connecting':_0xc1789a(0x197),'connected':'Connected','failed':_0xc1789a(0x17a),'retrying':_0xc1789a(0x210)},'connectionError':{'missingApiKey':_0xc1789a(0x21c),'invalidApiKey':_0xc1789a(0x1a8),'sessionOccupied':_0xc1789a(0x26a),'networkError':_0xc1789a(0x269),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},Pn={'mcpStatus':{'disconnected':_0xc1789a(0x171),'connecting':_0xc1789a(0x26f),'connected':_0xc1789a(0x24d),'failed':_0xc1789a(0x1e8),'retrying':_0xc1789a(0x245),'unknown':_0xc1789a(0x19e),'missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':_0xc1789a(0x1a1),'sessionOccupied':_0xc1789a(0x19c),'networkError':_0xc1789a(0x1de),'maxRetriesExceeded':_0xc1789a(0x150),'clickToConnect':_0xc1789a(0x149),'clickToConfigure':_0xc1789a(0x1b0)},'mcpConfig':{'title':_0xc1789a(0x163),'description':_0xc1789a(0x13f),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0xc1789a(0x1dc),'apiKeyHint':_0xc1789a(0x1cf),'enableAuth':_0xc1789a(0x26b),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0xc1789a(0x240),'serverEndpoint':_0xc1789a(0x1cb),'sessionId':_0xc1789a(0x14d),'maxRetries':'最大重试次数','save':_0xc1789a(0x17f),'saving':_0xc1789a(0x26c),'note1':_0xc1789a(0x25f),'note2':_0xc1789a(0x20a),'configSaved':_0xc1789a(0x27c),'configError':'配置保存失败','apiApplyInfo':{'title':_0xc1789a(0x188),'description':_0xc1789a(0x172),'univerAiLabel':_0xc1789a(0x252),'getStarted':_0xc1789a(0x27f)},'validation':{'apiKeyRequired':_0xc1789a(0x17e),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0xc1789a(0x1f5),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0xc1789a(0x23e),'connecting':_0xc1789a(0x259),'connected':_0xc1789a(0x1b3),'failed':'连接失败','retrying':_0xc1789a(0x1a2)},'connectionError':{'missingApiKey':_0xc1789a(0x143),'invalidApiKey':_0xc1789a(0x22c),'sessionOccupied':_0xc1789a(0x24a),'networkError':_0xc1789a(0x1c8),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var vn=Object[_0xc1789a(0x1ea)],dn=Object[_0xc1789a(0x1d6)],gn=(_0x18f8a5,_0x16d160,_0x1e9e8d)=>_0x16d160 in _0x18f8a5?vn(_0x18f8a5,_0x16d160,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e9e8d}):_0x18f8a5[_0x16d160]=_0x1e9e8d,fn=(_0x16fe1a,_0x51aa64,_0x1bbf7d,_0x4ae4a4)=>{var _0x2026a3=_0xc1789a;for(var _0x252ef2=_0x4ae4a4>0x1?void 0x0:_0x4ae4a4?dn(_0x51aa64,_0x1bbf7d):_0x51aa64,_0x207aab=_0x16fe1a[_0x2026a3(0x1fb)]-0x1,_0x8828e0;_0x207aab>=0x0;_0x207aab--)(_0x8828e0=_0x16fe1a[_0x207aab])&&(_0x252ef2=_0x8828e0(_0x252ef2)||_0x252ef2);return _0x252ef2;},P=(_0x2c2b1e,_0x3fdf27)=>(_0x3c58ae,_0x29a343)=>_0x3fdf27(_0x3c58ae,_0x29a343,_0x2c2b1e),pn=(_0x1374f6,_0x32aa08,_0x16374b)=>gn(_0x1374f6,_0x32aa08+'',_0x16374b);let G=class extends _0x156b89{constructor(_0x1c91b1=J,_0x163681,_0x130dde,_0x24f557,_0x243f0c,_0x2e8027){var _0x32360c=_0xc1789a;super(),this[_0x32360c(0x1a3)]=_0x1c91b1,this['_injector']=_0x163681,this[_0x32360c(0x1ca)]=_0x130dde,this[_0x32360c(0x215)]=_0x24f557,this[_0x32360c(0x262)]=_0x243f0c,this[_0x32360c(0x279)]=_0x2e8027;const {..._0x325500}=_0x37b7f4({},J,this['_config']);this[_0x32360c(0x1ca)]['setConfig'](U,_0x325500);}async[_0xc1789a(0x1f8)](){var _0x11c6de=_0xc1789a;[[O],[_],[k]][_0x11c6de(0x1c5)](_0xa6c780=>this[_0x11c6de(0x169)][_0x11c6de(0x1c6)](_0xa6c780)),this[_0x11c6de(0x169)][_0x11c6de(0x253)](O),this[_0x11c6de(0x169)][_0x11c6de(0x253)](_),this[_0x11c6de(0x169)][_0x11c6de(0x253)](k);}};pn(G,_0xc1789a(0x242),_0xc1789a(0x198)),G=fn([_0x1988ce(_0x2bb3c7),P(0x1,_0x4cb90b(_0x448b06)),P(0x2,_0x5a06e9),P(0x3,_0x13ba0a),P(0x4,_0xf37a6b),P(0x5,_0x4cb90b(_0xbaffd5))],G);export{Xe as MCPConfigPanel,_ as MCPConfigUIController,O as MCPConnectionUIController,rn as MCPStatusDisplay,k as MCPUIMenuController,W as OpenMCPConfigPanelCommand,G as UniverMCPUIPlugin,Nn as enUS,Pn as zhCN};
1
+ var _0x2bc15e=_0x4a13;(function(_0x1c908d,_0x4af0f1){var _0x1f1219=_0x4a13,_0x1c2afe=_0x1c908d();while(!![]){try{var _0xa5ab1=-parseInt(_0x1f1219(0xe6))/0x1*(-parseInt(_0x1f1219(0x12b))/0x2)+parseInt(_0x1f1219(0x1d5))/0x3*(-parseInt(_0x1f1219(0x163))/0x4)+-parseInt(_0x1f1219(0x1be))/0x5*(parseInt(_0x1f1219(0xf7))/0x6)+-parseInt(_0x1f1219(0x151))/0x7*(parseInt(_0x1f1219(0x158))/0x8)+-parseInt(_0x1f1219(0xf6))/0x9*(-parseInt(_0x1f1219(0xde))/0xa)+parseInt(_0x1f1219(0xb1))/0xb*(-parseInt(_0x1f1219(0x115))/0xc)+parseInt(_0x1f1219(0x1ea))/0xd;if(_0xa5ab1===_0x4af0f1)break;else _0x1c2afe['push'](_0x1c2afe['shift']());}catch(_0x284d85){_0x1c2afe['push'](_0x1c2afe['shift']());}}}(_0xb9a7,0x1ff69));var Se=Object[_0x2bc15e(0x12c)],xe=(_0x3cf1e8,_0x42bed1,_0x28a631)=>_0x42bed1 in _0x3cf1e8?Se(_0x3cf1e8,_0x42bed1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28a631}):_0x3cf1e8[_0x42bed1]=_0x28a631,N=(_0x11356a,_0x5f2c4d,_0x579448)=>xe(_0x11356a,typeof _0x5f2c4d!=_0x2bc15e(0xb0)?_0x5f2c4d+'':_0x5f2c4d,_0x579448);import{LocaleService as _0x42fd01,Inject as _0x696855,Injector as _0x3be1cf,IConfigService as _0x5b375f,ILocalStorageService as _0x4948f7,ILogService as _0x4318dc,Disposable as _0x3a1a4d,CommandType as _0x577139,ICommandService as _0x386a7f,DependentOn as _0x302e6f,Plugin as _0x32b180,merge as _0x2b6653}from'@univerjs/core';import{jsxs as _0x5c6a92,jsx as _0x24230c}from'react/jsx-runtime';import{MCPConnectionStatus as _0x16bf1e,MCPConnectionError as _0x3ee0ac,MCPConnectionController as _0x1c16fa,MCP_PLUGIN_CONFIG_KEY as _0x1bb383,UniverMCPPlugin as _0x313ef9}from'@univerjs-pro/mcp';import{Input as _0x3c0492,Button as _0x105395,MessageType as _0x124ece,Tooltip as _0x1b8685,clsx as _0x2ed97f}from'@univerjs/design';import{useDependency as _0x4faa95,useObservable as _0x1ba95b,IUIPartsService as _0x4c65ee,IDialogService as _0x119553,IMessageService as _0x5b4388,ComponentManager as _0x13aeb6,connectInjector as _0x5d4d25,BuiltInUIPart as _0x2c0def,MenuItemType as _0x21bf04,RibbonStartGroup as _0x2510f1,IMenuManagerService as _0x540f9d}from'@univerjs/ui';import{BehaviorSubject as _0xef7aa5}from'rxjs';import{forwardRef as _0x14a2d8,useRef as _0xd5a7c8,createElement as _0x4eaecd,useState as _0x3b5fec,useCallback as _0x292baa}from'react';var d=function(){var _0x5219f5=_0x2bc15e;return d=Object[_0x5219f5(0x167)]||function(_0x4f1f87){var _0x4044e8=_0x5219f5;for(var _0x5918a5,_0x4d2198=0x1,_0x1ac1d4=arguments[_0x4044e8(0xb3)];_0x4d2198<_0x1ac1d4;_0x4d2198++){_0x5918a5=arguments[_0x4d2198];for(var _0xf71fd1 in _0x5918a5)Object[_0x4044e8(0x160)][_0x4044e8(0xdd)][_0x4044e8(0x1a4)](_0x5918a5,_0xf71fd1)&&(_0x4f1f87[_0xf71fd1]=_0x5918a5[_0xf71fd1]);}return _0x4f1f87;},d[_0x5219f5(0xff)](this,arguments);},Ye=function(_0x482872,_0x5676f9){var _0xd08c8d=_0x2bc15e,_0x284b8a={};for(var _0x58c0a9 in _0x482872)Object[_0xd08c8d(0x160)]['hasOwnProperty'][_0xd08c8d(0x1a4)](_0x482872,_0x58c0a9)&&_0x5676f9[_0xd08c8d(0x1e8)](_0x58c0a9)<0x0&&(_0x284b8a[_0x58c0a9]=_0x482872[_0x58c0a9]);if(_0x482872!=null&&typeof Object[_0xd08c8d(0xc7)]==_0xd08c8d(0x170)){for(var _0x2c5293=0x0,_0x58c0a9=Object[_0xd08c8d(0xc7)](_0x482872);_0x2c5293<_0x58c0a9['length'];_0x2c5293++)_0x5676f9[_0xd08c8d(0x1e8)](_0x58c0a9[_0x2c5293])<0x0&&Object[_0xd08c8d(0x160)][_0xd08c8d(0x197)][_0xd08c8d(0x1a4)](_0x482872,_0x58c0a9[_0x2c5293])&&(_0x284b8a[_0x58c0a9[_0x2c5293]]=_0x482872[_0x58c0a9[_0x2c5293]]);}return _0x284b8a;},S=_0x14a2d8(function(_0x2a6e3c,_0x226be1){var _0x1b8daa=_0x2bc15e,_0x479965=_0x2a6e3c[_0x1b8daa(0x180)],_0x1f02a1=_0x2a6e3c['id'],_0x30fece=_0x2a6e3c['className'],_0x50129a=_0x2a6e3c[_0x1b8daa(0x1cd)],_0x3e143f=Ye(_0x2a6e3c,[_0x1b8daa(0x180),'id',_0x1b8daa(0xdf),_0x1b8daa(0x1cd)]),_0x5c27da=_0x1b8daa(0x1d0)[_0x1b8daa(0x138)](_0x1f02a1,'\x20')[_0x1b8daa(0x138)](_0x30fece||'')[_0x1b8daa(0x16e)](),_0x6a2cde=_0xd5a7c8('_'[_0x1b8daa(0x138)](He()));return oe(_0x479965,''[_0x1b8daa(0x138)](_0x1f02a1),{'defIds':_0x479965['defIds'],'idSuffix':_0x6a2cde[_0x1b8daa(0xf1)]},d({'ref':_0x226be1,'className':_0x5c27da},_0x3e143f),_0x50129a);});function oe(_0x27eb02,_0x265275,_0xb9ae67,_0x526e42,_0xe9ebd9){var _0x46b0ca=_0x2bc15e;return _0x4eaecd(_0x27eb02['tag'],d(d({'key':_0x265275},Ve(_0x27eb02,_0xb9ae67,_0xe9ebd9)),_0x526e42),(Fe(_0x27eb02,_0xb9ae67)[_0x46b0ca(0x1b4)]||[])[_0x46b0ca(0x198)](function(_0x5e016d,_0x4b9220){var _0x3d4442=_0x46b0ca;return oe(_0x5e016d,''[_0x3d4442(0x138)](_0x265275,'-')['concat'](_0x27eb02[_0x3d4442(0xbb)],'-')[_0x3d4442(0x138)](_0x4b9220),_0xb9ae67,void 0x0,_0xe9ebd9);}));}function Ve(_0x34fab0,_0x4d7237,_0x3ac8c1){var _0x166701=_0x2bc15e,_0x3acbbd=d({},_0x34fab0[_0x166701(0x1a3)]);_0x3ac8c1!=null&&_0x3ac8c1['colorChannel1']&&_0x3acbbd[_0x166701(0x114)]===_0x166701(0x19e)&&(_0x3acbbd[_0x166701(0x114)]=_0x3ac8c1[_0x166701(0x19e)]),_0x34fab0[_0x166701(0xbb)]===_0x166701(0xe5)&&_0x3acbbd['id']&&(_0x3acbbd['id']=_0x3acbbd['id']+_0x4d7237[_0x166701(0x140)]),Object[_0x166701(0xc0)](_0x3acbbd)['forEach'](function(_0x3d7c16){var _0x596ee9=_0x166701,_0x37da03=_0x3d7c16[0x0],_0x2ce233=_0x3d7c16[0x1];_0x37da03===_0x596ee9(0xe5)&&typeof _0x2ce233==_0x596ee9(0x1b1)&&(_0x3acbbd[_0x37da03]=_0x2ce233[_0x596ee9(0x14f)](/url\(#(.*)\)/,'url(#$1'[_0x596ee9(0x138)](_0x4d7237['idSuffix'],')')));});var _0x30202e=_0x4d7237[_0x166701(0x130)];return!_0x30202e||_0x30202e[_0x166701(0xb3)]===0x0||(_0x34fab0['tag']==='use'&&_0x3acbbd[_0x166701(0x110)]&&(_0x3acbbd[_0x166701(0x110)]=_0x3acbbd[_0x166701(0x110)]+_0x4d7237['idSuffix']),Object[_0x166701(0xc0)](_0x3acbbd)[_0x166701(0xcc)](function(_0x3c39bf){var _0x366da2=_0x166701,_0x3747bc=_0x3c39bf[0x0],_0x4b4f75=_0x3c39bf[0x1];typeof _0x4b4f75=='string'&&(_0x3acbbd[_0x3747bc]=_0x4b4f75[_0x366da2(0x14f)](/url\(#(.*)\)/,_0x366da2(0x1a0)['concat'](_0x4d7237['idSuffix'],')')));})),_0x3acbbd;}function Fe(_0x3740d6,_0x450690){var _0x5ad9eb=_0x2bc15e,_0xe3c58f,_0x3966bd=_0x450690[_0x5ad9eb(0x130)];return!_0x3966bd||_0x3966bd['length']===0x0?_0x3740d6:_0x3740d6[_0x5ad9eb(0xbb)]===_0x5ad9eb(0xad)&&(!((_0xe3c58f=_0x3740d6[_0x5ad9eb(0x1b4)])===null||_0xe3c58f===void 0x0)&&_0xe3c58f[_0x5ad9eb(0xb3)])?d(d({},_0x3740d6),{'children':_0x3740d6[_0x5ad9eb(0x1b4)][_0x5ad9eb(0x198)](function(_0x2997c9){var _0x768ff5=_0x5ad9eb;return typeof _0x2997c9['attrs']['id']==_0x768ff5(0x1b1)&&_0x3966bd&&_0x3966bd['includes'](_0x2997c9[_0x768ff5(0x1a3)]['id'])?d(d({},_0x2997c9),{'attrs':d(d({},_0x2997c9['attrs']),{'id':_0x2997c9[_0x768ff5(0x1a3)]['id']+_0x450690['idSuffix']})}):_0x2997c9;})}):_0x3740d6;}function _0xb9a7(){var _0x5de150=['univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','toString','univerjs-icon\x20univerjs-icon-','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','onStarting','univer-flex-shrink-0\x20univer-text-blue-500','942iuxxpR','Get\x20your\x20API\x20key\x20in\x20seconds','_commandService','open','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','点击连接\x20MCP','API\x20密钥长度至少需要\x2010\x20位','MenuIcon','getItem','substring','MCP\x20Configuration','_mcpCoreConfig$','M5.21243\x205.62036L11.8791\x2012.287','univer-flex-shrink-0\x20univer-text-red-500','Error','OTHERS','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','DISCONNECTED','mcpConfig.validation.apiKeyTooShort','indexOf','Connected','4273373sfAgfP','univer-text-xs\x20univer-text-gray-500','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','连接信息','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','evenodd','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_messageService','includes','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP\x20状态未知','启用身份验证以获得安全连接','MCP\x20Disconnected','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','MCP:\x20网络错误','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','M0\x200H16V16H0z','mcpStatus.retrying','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','next','add','off-line-icon_clip0_910_343','MCP\x20重连中...','noopener\x20noreferrer','defs','random','SESSION_ID_OCCUPIED','symbol','22wcJNaQ','univer-font-medium','length','hover:univer-opacity-80','mcpConfig.save','label','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','FAILED','mcpServerUrl','off-line-icon','tag','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcpStatus.maxRetriesExceeded','code','mcp.apiKey','entries','getCurrentConfig','_uiPartsService','mcpStatus.failed','mcpStatus.invalidApiKey','univer-text-gray-500','univer-flex\x20univer-items-start\x20univer-gap-3','getOwnPropertySymbols','MCP\x20已断开','_configService','sessionId','_handleConfigure','forEach','Close','mcpConfig.description','RETRYING','mcp-config-dialog','Univer\x20AI\x20控制台','mcpConfig.connectionStatus.retrying','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.serverEndpoint','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-text-white','连接失败','1em','OnLineIcon','path','on-line-icon_clip0_910_349','univer-text-blue-600','hasOwnProperty','1367320ijfmTj','className','get','_initializeMenus','0\x200\x2017\x2017','_componentManager','univer-text-sm\x20univer-font-medium','mask','1327ccmsBf','_localStorageService','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','mcpStatus.missingApiKey','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-bg-gray-500','Save\x20Configuration','MCP\x20已连接','span','show','What\x20is\x20API\x20Key?','current','您的\x20API\x20密钥安全存储在本地存储中','您的\x20API\x20密钥将在此浏览器中本地存储','univer-flex\x20univer-gap-3','保存中...','9wBQJDS','12iyVwXG','mergeMenu','网络连接错误,请检查您的网络连接','CONNECTING','mcpConfig.connectionError.invalidApiKey','_dialogService','svg','服务器端点','apply','mcpConfig.connectionStatus.connected','CONNECTED','0\x200\x2017\x2016','mcpConfig.connectionError.networkError','Click\x20to\x20configure\x20MCP','mcpStatus.sessionOccupied','_loading$','currentColor','MAX_RETRIES_EXCEEDED','univer-text-sm\x20univer-text-gray-500','showDeveloperTools','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','超出最大重试次数,请稍后再试','点击配置\x20MCP','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','xlink:href','getConfig','close','MCP:\x20Max\x20Retries\x20Exceeded','fill','325824IaYMqU','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','subscribeConfigValue$','validateApiKey','univer-flex\x20univer-items-center\x20univer-gap-2','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','INVALID_API_KEY','MCP\x20连接中...','_config$','div','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','mcpConfig.saving','MCP\x20连接失败','javascript:void(0)','_logService','univer-break-all\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-blue-600','mcpStatus.clickToConnect','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','_initializeCommands','214auQbXh','defineProperty','NONE','help-single','Success','defIds','univer-text-yellow-500','mcpConfig.validation.apiKeyRequired','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','displayName','round','registerCommand','配置保存失败','concat','Connection\x20Failed','pluginName','API\x20key\x20is\x20required','mcpStatus.connecting','MCP\x20Connected','univer-flex\x20univer-items-start\x20univer-gap-2','_config','idSuffix','white','连接中...','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCP\x20Connecting...','_loadStoredApiKey','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','Invalid\x20configuration','mcpConfig.apiKeyHint','OffLineIcon','connectionStatus$','mcpStatus.disconnected','UniverIcon','mcpConfig.apiKeyPlaceholder','replace','_initStatusComponent','455NuOAJa','_validateConfig','CheckMarkIcon','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','请输入您的\x20API\x20密钥','Click\x20to\x20connect\x20MCP','check-mark-icon','4664wlCEYg','_connectionController','BUTTON','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_handleConfigSave','univer-bg-red-500','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','prototype','_injector','univer-text-red-500','1576eFOtaM','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','最大重试次数','http://www.w3.org/2000/svg','assign','error','mcpConfig.sessionId','MCP\x20配置','MCPConfigPanel','getOwnPropertyDescriptor','subscribe','trim','_createConfigPanelComponent','function','univer-min-w-0\x20univer-flex-1','disposeWithMe','MCP:\x20无效的\x20API\x20密钥','univer.plus','translate(.97)','MCP\x20Retrying...','Server\x20Endpoint','_initConfigSync','COMMAND','API\x20Key','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','CloseSmallSingle','mcpConfig.connectionStatus.failed','Disconnected','connectionError$','icon','_localeService','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','close-small-single','重连中...','MCP\x20Unknown\x20Status','0\x200\x2016\x2016','off','mcpStatus.networkError','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','showConfigPanel','mcpConfig.validation.invalidApiKey','isValid','mcpConfig.note1','Session\x20ID','mcpConfig.configSaved','_registerComponent','已连接','API\x20密钥无效,请检查您的密钥后重试','MCP:\x20Network\x20Error','几秒钟内获取您的\x20API\x20密钥','MCP\x20Connection\x20Failed','propertyIsEnumerable','map','apiKey','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpConfig.apiApplyInfo.title','MCP_UI_PLUGIN','colorChannel1','mcpStatus.clickToConfigure','url(#$1','bottom','text','attrs','call','NETWORK_ERROR','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','default','univer-flex\x20univer-items-center\x20univer-gap-3','Configuration\x20saved\x20successfully','setConfig','removeItem','univer.ai','mcpConfig.note2','HEADER_MENU','MISSING_API_KEY','univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','string','会话当前被占用,请稍后再试','Enable\x20Authentication','children','M5.21243\x2012.287L11.8791\x205.62036','none','mcpConfig.apiApplyInfo.getStarted','Max\x20Retries','mcpConfig.title','_mcpConnectionController','setItem','启用身份验证','https://console.univer.plus','651515BavGJW','univer-text-gray-400','_menuManagerService','Saving...','\x20-\x20','mcp-ui.config','value','什么是\x20API\x20密钥?','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-flex-1','univer-space-y-3','univer-space-y-5','Configuration\x20Notes:','会话ID','https://console.univer.ai','extend'];_0xb9a7=function(){return _0x5de150;};return _0xb9a7();}function He(){var _0x2883de=_0x2bc15e;return Math[_0x2883de(0xae)]()[_0x2883de(0x1cf)](0x24)[_0x2883de(0x1de)](0x2,0x8);}S['displayName']=_0x2bc15e(0x14d);var We={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':_0x2bc15e(0x166),'fill':_0x2bc15e(0x1b6),'viewBox':_0x2bc15e(0x186),'width':_0x2bc15e(0xd8),'height':_0x2bc15e(0xd8)},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'fill':'currentColor','d':_0x2bc15e(0x1a6),'fillRule':_0x2bc15e(0x99),'clipRule':_0x2bc15e(0x99)}}]},ce=_0x14a2d8(function(_0x36621c,_0x34c4b0){var _0xdaea21=_0x2bc15e;return _0x4eaecd(S,Object[_0xdaea21(0x167)]({},_0x36621c,{'id':_0xdaea21(0x157),'ref':_0x34c4b0,'icon':We}));});ce['displayName']=_0x2bc15e(0x153);var Be={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2bc15e(0x1b6),'viewBox':_0x2bc15e(0xe2),'width':_0x2bc15e(0xd8),'height':_0x2bc15e(0xd8)},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'stroke':'currentColor','d':_0x2bc15e(0x1e1),'strokeLinecap':_0x2bc15e(0x135),'strokeLinejoin':_0x2bc15e(0x135),'strokeWidth':1.33}},{'tag':_0x2bc15e(0xda),'attrs':{'stroke':_0x2bc15e(0x107),'d':_0x2bc15e(0x1b5),'strokeLinecap':'round','strokeLinejoin':_0x2bc15e(0x135),'strokeWidth':1.33}}]},ae=_0x14a2d8(function(_0x1cc74e,_0x2ed140){var _0x518882=_0x2bc15e;return _0x4eaecd(S,Object[_0x518882(0x167)]({},_0x1cc74e,{'id':_0x518882(0x183),'ref':_0x2ed140,'icon':Be}));});ae[_0x2bc15e(0x134)]=_0x2bc15e(0x17c);var ze={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':_0x2bc15e(0x166),'fill':_0x2bc15e(0x1b6),'viewBox':_0x2bc15e(0x186),'width':_0x2bc15e(0xd8),'height':_0x2bc15e(0xd8)},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'fill':_0x2bc15e(0x107),'d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0x2bc15e(0xda),'attrs':{'fill':_0x2bc15e(0x107),'d':_0x2bc15e(0x11b)}},{'tag':'path','attrs':{'fill':_0x2bc15e(0x107),'d':_0x2bc15e(0x1d9),'fillRule':_0x2bc15e(0x99),'clipRule':'evenodd'}}]},se=_0x14a2d8(function(_0x2db6d1,_0x45938d){var _0x19fd77=_0x2bc15e;return _0x4eaecd(S,Object[_0x19fd77(0x167)]({},_0x2db6d1,{'id':_0x19fd77(0x12e),'ref':_0x45938d,'icon':ze}));});se['displayName']='HelpSingle';var qe={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':_0x2bc15e(0x166),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2bc15e(0xd8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'stroke':_0x2bc15e(0x107),'d':_0x2bc15e(0x128),'strokeLinecap':'round','strokeLinejoin':_0x2bc15e(0x135),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'fill':_0x2bc15e(0x141),'d':_0x2bc15e(0xa5)}}]}]}],'defIds':[_0x2bc15e(0xaa)]},le=_0x14a2d8(function(_0x59cb7c,_0x1d232f){var _0x33c09d=_0x2bc15e;return _0x4eaecd(S,Object[_0x33c09d(0x167)]({},_0x59cb7c,{'id':_0x33c09d(0xba),'ref':_0x1d232f,'icon':qe}));});le['displayName']=_0x2bc15e(0x14a);var Ze={'tag':_0x2bc15e(0xfd),'attrs':{'xmlns':_0x2bc15e(0x166),'fill':_0x2bc15e(0x1b6),'viewBox':_0x2bc15e(0x102),'width':_0x2bc15e(0xd8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'stroke':'currentColor','d':_0x2bc15e(0x120),'strokeLinecap':_0x2bc15e(0x135),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2bc15e(0xad),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2bc15e(0xdb)},'children':[{'tag':_0x2bc15e(0xda),'attrs':{'fill':_0x2bc15e(0x141),'d':_0x2bc15e(0xa5),'transform':_0x2bc15e(0x175)}}]}]}],'defIds':[_0x2bc15e(0xdb)]},ue=_0x14a2d8(function(_0x5c4806,_0x12eb99){var _0x3e0b2d=_0x2bc15e;return _0x4eaecd(S,Object[_0x3e0b2d(0x167)]({},_0x5c4806,{'id':'on-line-icon','ref':_0x12eb99,'icon':Ze}));});ue[_0x2bc15e(0x134)]=_0x2bc15e(0xd9);function Xe(_0x3f231b){var _0x472e20=_0x2bc15e,_0x5b60c3,_0x1216b6;const {mcpCoreConfig:_0x8f1215,onSave:_0x57367c,loading:_0x5e10c3=!0x1,config:_0x33e360,connectionStatus$:_0x2d3990,connectionError$:_0x5971e1}=_0x3f231b,_0x4bc80a=_0x4faa95(_0x42fd01),_0xee6450=_0x1ba95b(_0x2d3990,_0x16bf1e[_0x472e20(0x1e6)]),_0x461d26=_0x1ba95b(_0x5971e1,_0x3ee0ac[_0x472e20(0x12d)]),[_0x3371ae,_0x528388]=_0x3b5fec(_0x8f1215['apiKey']||''),_0x3c8cbd=!0x0,_0x32c700=_0x33e360[_0x472e20(0x10a)]&&_0x8f1215['mcpServerUrl']&&(_0x8f1215['mcpServerUrl'][_0x472e20(0x9d)](_0x472e20(0x174))||_0x8f1215[_0x472e20(0xb9)][_0x472e20(0x9d)](_0x472e20(0x1ac))),_0x542826=(_0x5b60c3=_0x8f1215[_0x472e20(0xb9)])==null?void 0x0:_0x5b60c3[_0x472e20(0x9d)]('univer.plus'),_0x5838d8=(_0x1216b6=_0x8f1215[_0x472e20(0xb9)])==null?void 0x0:_0x1216b6['includes']('univer.ai'),_0x3fef88=_0x542826?_0x472e20(0x1bd):_0x472e20(0x1cc),_0x49b9c7=_0x33e360[_0x472e20(0x10a)]&&(_0x542826||_0x5838d8),[_0x2f3515,_0x488b05]=_0x3b5fec(!_0x3371ae['trim']()),_0x38f958=(_0x294c33,_0x5a8216)=>{var _0x15274c=_0x472e20;if(_0x5a8216===_0x3ee0ac[_0x15274c(0x1af)]||_0x5a8216===_0x3ee0ac[_0x15274c(0x11c)])return _0x15274c(0x1ce);switch(_0x294c33){case _0x16bf1e[_0x15274c(0x101)]:return _0x15274c(0x10b);case _0x16bf1e['CONNECTING']:case _0x16bf1e[_0x15274c(0xcf)]:return _0x15274c(0x1ec);case _0x16bf1e['FAILED']:return _0x15274c(0x1ce);default:return _0x15274c(0x147);}},_0x3eaba7=(_0x30e9dd,_0x2238f5)=>{var _0x3d1369=_0x472e20;if(_0x2238f5===_0x3ee0ac['MISSING_API_KEY']||_0x2238f5===_0x3ee0ac['INVALID_API_KEY'])return _0x3d1369(0x15e);switch(_0x30e9dd){case _0x16bf1e[_0x3d1369(0x101)]:return'univer-bg-green-500';case _0x16bf1e['CONNECTING']:case _0x16bf1e[_0x3d1369(0xcf)]:return'univer-bg-blue-500';case _0x16bf1e['FAILED']:return _0x3d1369(0x15e);default:return _0x3d1369(0xeb);}},_0x2ae430=_0x44b57d=>{var _0x4f92a0=_0x472e20;switch(_0x44b57d){case _0x16bf1e[_0x4f92a0(0x101)]:return _0x4bc80a['t'](_0x4f92a0(0x100));case _0x16bf1e[_0x4f92a0(0xfa)]:return _0x4bc80a['t']('mcpConfig.connectionStatus.connecting');case _0x16bf1e[_0x4f92a0(0xb8)]:return _0x4bc80a['t'](_0x4f92a0(0x17d));case _0x16bf1e[_0x4f92a0(0xcf)]:return _0x4bc80a['t'](_0x4f92a0(0xd2));default:return _0x4bc80a['t']('mcpConfig.connectionStatus.disconnected');}},_0x5e82b5=_0x3cf140=>{var _0x72ea2e=_0x472e20;switch(_0x3cf140){case _0x3ee0ac[_0x72ea2e(0x1af)]:return _0x4bc80a['t']('mcpConfig.connectionError.missingApiKey');case _0x3ee0ac['INVALID_API_KEY']:return _0x4bc80a['t'](_0x72ea2e(0xfb));case _0x3ee0ac[_0x72ea2e(0xaf)]:return _0x4bc80a['t']('mcpConfig.connectionError.sessionOccupied');case _0x3ee0ac[_0x72ea2e(0x1a5)]:return _0x4bc80a['t'](_0x72ea2e(0x103));case _0x3ee0ac['MAX_RETRIES_EXCEEDED']:return _0x4bc80a['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x2a7826=_0x292baa(()=>{var _0x55b713=_0x472e20;const _0x239496={..._0x8f1215,'apiKey':_0x3371ae[_0x55b713(0x16e)](),'enableAuth':_0x3c8cbd};_0x57367c(_0x239496);},[_0x8f1215,_0x3371ae,_0x3c8cbd,_0x57367c]),_0x14515a=_0x3371ae[_0x472e20(0x16e)]()[_0x472e20(0xb3)]>0x0;return _0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x9a),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x143),'children':_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x1a8),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x10c),'children':_0x24230c(_0x472e20(0xee),{'className':_0x472e20(0xd6),'children':'⚙'})}),_0x24230c(_0x472e20(0x11f),{'children':_0x24230c('p',{'className':_0x472e20(0x109),'children':_0x4bc80a['t'](_0x472e20(0xce))})})]})}),_0x5c6a92('div',{'className':_0x472e20(0x116),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x18a)+_0x38f958(_0xee6450,_0x461d26)+_0x472e20(0x1c6),'children':_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x119),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x1e5)+_0x3eaba7(_0xee6450,_0x461d26)+_0x472e20(0xb7)}),_0x24230c('span',{'className':_0x472e20(0xe4),'children':_0x2ae430(_0xee6450)})]})}),_0x461d26!==_0x3ee0ac[_0x472e20(0x12d)]&&(_0xee6450===_0x16bf1e[_0x472e20(0xb8)]||_0x461d26===_0x3ee0ac['MISSING_API_KEY']||_0x461d26===_0x3ee0ac[_0x472e20(0x11c)])&&_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x10f),'children':_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x13e),'children':[_0x24230c(_0x472e20(0xee),{'className':_0x472e20(0x1e2),'children':'⚠️'}),_0x24230c('p',{'className':_0x472e20(0xa7),'children':_0x5e82b5(_0x461d26)})]})})]}),_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x182),'children':_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x1c9),'children':[_0x5c6a92('div',{'className':'univer-space-y-2','children':[_0x5c6a92(_0x472e20(0xb6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x24230c(_0x472e20(0xee),{'children':'🔑'}),'\x20',_0x4bc80a['t']('mcpConfig.apiKey'),_0x24230c(_0x472e20(0xee),{'className':'univer-text-red-500','children':'*'}),_0x32c700&&_0x24230c('a',{'href':_0x472e20(0x124),'onClick':()=>_0x488b05(!0x0),'className':_0x472e20(0xd5),'title':_0x4bc80a['t'](_0x472e20(0x19c)),'children':_0x24230c(se,{})})]}),_0x24230c(_0x3c0492,{'type':_0x472e20(0x1a2),'placeholder':_0x4bc80a['t'](_0x472e20(0x14e)),'value':_0x3371ae,'onChange':_0x528388,'disabled':_0x5e10c3,'autoComplete':_0x472e20(0x187)}),_0x24230c('p',{'className':_0x472e20(0x1eb),'children':_0x4bc80a['t'](_0x472e20(0x149))})]}),_0x32c700&&_0x2f3515&&_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x121),'children':[_0x24230c('a',{'href':_0x472e20(0x124),'onClick':()=>_0x488b05(!0x1),'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','title':_0x472e20(0xcd),'children':_0x24230c(ae,{})}),_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x133),'children':[_0x24230c('div',{'className':_0x472e20(0xea),'children':_0x24230c('span',{'className':_0x472e20(0xdc),'children':'🚀'})}),_0x5c6a92('div',{'className':_0x472e20(0x1c7),'children':[_0x24230c('h4',{'className':_0x472e20(0x129),'children':_0x4bc80a['t'](_0x472e20(0x19c))}),_0x24230c('p',{'className':_0x472e20(0x17b),'children':_0x4bc80a['t']('mcpConfig.apiApplyInfo.description')}),_0x24230c(_0x472e20(0x11f),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x49b9c7&&_0x5c6a92('a',{'href':_0x3fef88,'target':'_blank','rel':_0x472e20(0xac),'className':_0x472e20(0x15f),'children':[_0x24230c('span',{'children':'🤖'}),_0x4bc80a['t']('mcpConfig.apiApplyInfo.univerAiLabel'),_0x24230c(_0x472e20(0xee),{'className':_0x472e20(0x1bf),'children':'↗'})]})}),_0x5c6a92('div',{'className':_0x472e20(0x164),'children':['✨','\x20',_0x4bc80a['t'](_0x472e20(0x1b7))]})]})]})]}),_0x33e360[_0x472e20(0x10a)]&&_0x5c6a92(_0x472e20(0x11f),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x5c6a92('h4',{'className':_0x472e20(0xa4),'children':[_0x24230c(_0x472e20(0xee),{'children':'🔗'}),'\x20',_0x4bc80a['t']('mcpConfig.connectionInfo')]}),_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x1c8),'children':[_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0xc6),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x15b)}),_0x5c6a92(_0x472e20(0x11f),{'className':_0x472e20(0x171),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x1b0),'children':_0x4bc80a['t'](_0x472e20(0xd4))}),_0x24230c(_0x472e20(0xbe),{'className':_0x472e20(0x126),'children':_0x8f1215[_0x472e20(0xb9)]})]})]}),_0x5c6a92(_0x472e20(0x11f),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x24230c('div',{'className':_0x472e20(0x15b)}),_0x5c6a92('div',{'className':_0x472e20(0x171),'children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0x1b0),'children':_0x4bc80a['t'](_0x472e20(0x169))}),_0x24230c(_0x472e20(0xbe),{'className':'univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-gray-700','children':_0x8f1215[_0x472e20(0xca)]||_0x472e20(0x1a7)})]})]})]})]}),_0x24230c(_0x105395,{'onClick':_0x2a7826,'disabled':!_0x14515a||_0x5e10c3,'className':_0x472e20(0xa2),'children':_0x5e10c3?_0x5c6a92(_0x472e20(0xee),{'className':_0x472e20(0x119),'children':[_0x24230c(_0x472e20(0xee),{'children':'⟲'}),_0x4bc80a['t'](_0x472e20(0x122))]}):_0x5c6a92(_0x472e20(0xee),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x24230c(ce,{}),_0x4bc80a['t'](_0x472e20(0xb5))]})}),_0x24230c('div',{'className':_0x472e20(0x19a),'children':_0x5c6a92('div',{'className':_0x472e20(0xf4),'children':[_0x24230c('span',{'className':_0x472e20(0x1d4),'children':'💡'}),_0x5c6a92('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x24230c(_0x472e20(0x11f),{'className':_0x472e20(0xb2),'children':_0x472e20(0x1ca)}),_0x5c6a92(_0x472e20(0x11f),{'children':['•',_0x4bc80a['t'](_0x472e20(0x18e))]}),_0x5c6a92(_0x472e20(0x11f),{'children':['•',_0x4bc80a['t'](_0x472e20(0x1ad))]})]})]})})]})})]});}function _0x4a13(_0x3c2c4e,_0x4f53cc){var _0xb9a728=_0xb9a7();return _0x4a13=function(_0x4a136f,_0x4e628d){_0x4a136f=_0x4a136f-0x98;var _0xb77cd=_0xb9a728[_0x4a136f];return _0xb77cd;},_0x4a13(_0x3c2c4e,_0x4f53cc);}const U=_0x2bc15e(0x1c3),J={'showDeveloperTools':!0x1};var Je=Object[_0x2bc15e(0x16c)],Qe=(_0x13b28a,_0x2db675,_0x8803fe,_0xe0a68e)=>{for(var _0x5d7f7b=_0xe0a68e>0x1?void 0x0:_0xe0a68e?Je(_0x2db675,_0x8803fe):_0x2db675,_0x45bb5f=_0x13b28a['length']-0x1,_0x121060;_0x45bb5f>=0x0;_0x45bb5f--)(_0x121060=_0x13b28a[_0x45bb5f])&&(_0x5d7f7b=_0x121060(_0x5d7f7b)||_0x5d7f7b);return _0x5d7f7b;},p=(_0x1c07f9,_0x563778)=>(_0x27d8ce,_0xb2c85b)=>_0x563778(_0x27d8ce,_0xb2c85b,_0x1c07f9);const R=_0x2bc15e(0xbf),j=_0x2bc15e(0xd0);let _=class extends _0x3a1a4d{constructor(_0x54f9d4,_0x47eee0,_0x10cc2c,_0x301dbc,_0x11d41f,_0x4c1803,_0x49964b,_0xe9acb4,_0x42b236,_0x56bfb1){var _0x51ecc9=_0x2bc15e;super(),N(this,_0x51ecc9(0x106),new _0xef7aa5(!0x1)),N(this,_0x51ecc9(0x1e0),new _0xef7aa5({})),N(this,_0x51ecc9(0x11e),new _0xef7aa5({})),N(this,'_handleConfigSave',async _0x17c405=>{var _0x546eee=_0x51ecc9;this[_0x546eee(0x106)]['next'](!0x0);try{const _0x3dba22=await this[_0x546eee(0x152)](_0x17c405);if(!_0x3dba22[_0x546eee(0x18d)]){this[_0x546eee(0x9c)][_0x546eee(0xef)]({'type':_0x124ece[_0x546eee(0x1e3)],'content':_0x3dba22['errorMessage']||this[_0x546eee(0x181)]['t']('mcpConfig.validation.invalidConfig')});return;}_0x17c405[_0x546eee(0x199)]?await this[_0x546eee(0xe7)][_0x546eee(0x1bb)](R,_0x17c405['apiKey'][_0x546eee(0x16e)]()):await this[_0x546eee(0xe7)][_0x546eee(0x1ab)](R),this[_0x546eee(0xc9)]['setConfig'](_0x1bb383,{..._0x17c405,'apiKey':_0x17c405[_0x546eee(0x199)][_0x546eee(0x16e)]()}),this[_0x546eee(0x1e0)][_0x546eee(0xa8)]({..._0x17c405,'apiKey':_0x17c405[_0x546eee(0x199)][_0x546eee(0x16e)]()}),this[_0x546eee(0x9c)][_0x546eee(0xef)]({'type':_0x124ece[_0x546eee(0x12f)],'content':this['_localeService']['t'](_0x546eee(0x190))}),setTimeout(()=>{var _0x1feddb=_0x546eee;this[_0x1feddb(0xfc)]['close'](j);},0x320);}catch(_0x257a10){this['_logService'][_0x546eee(0x168)](_0x546eee(0x19b),_0x257a10),this[_0x546eee(0x9c)][_0x546eee(0xef)]({'type':_0x124ece[_0x546eee(0x1e3)],'content':this[_0x546eee(0x181)]['t']('mcpConfig.configError')});}finally{this[_0x546eee(0x106)]['next'](!0x1);}}),(this[_0x51ecc9(0x161)]=_0x54f9d4,this['_uiPartsService']=_0x47eee0,this[_0x51ecc9(0xc9)]=_0x10cc2c,this[_0x51ecc9(0xe7)]=_0x301dbc,this[_0x51ecc9(0xfc)]=_0x11d41f,this[_0x51ecc9(0x9c)]=_0x4c1803,this[_0x51ecc9(0xe3)]=_0x49964b,this[_0x51ecc9(0x181)]=_0xe9acb4,this[_0x51ecc9(0x125)]=_0x42b236,this[_0x51ecc9(0x1ba)]=_0x56bfb1,this['_initConfigSync'](),this[_0x51ecc9(0x145)](),this['_registerComponent']());}[_0x2bc15e(0x18b)](){var _0x89284=_0x2bc15e;this[_0x89284(0xfc)][_0x89284(0x1d8)]({'id':j,'title':{'title':this[_0x89284(0x181)]['t'](_0x89284(0x1b9))},'children':{'label':_0x89284(0x16b)},'width':0x1e0,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0xb95e39=_0x89284;this[_0xb95e39(0xfc)][_0xb95e39(0x112)](j);}});}[_0x2bc15e(0xc1)](){var _0x4c9dea=_0x2bc15e;return this[_0x4c9dea(0x1e0)][_0x4c9dea(0x1c4)];}[_0x2bc15e(0x191)](){var _0x3c7f01=_0x2bc15e;this[_0x3c7f01(0x172)](this[_0x3c7f01(0xe3)]['register'](_0x3c7f01(0x16b),this['_createConfigPanelComponent']()));}[_0x2bc15e(0x16f)](){var _0xb9f49b=_0x2bc15e;return _0x5d4d25(()=>{var _0x460108=_0x4a13,_0x7bc0bf,_0x4bdcd9;return _0x24230c(Xe,{'config':this[_0x460108(0x11e)][_0x460108(0x1c4)],'mcpCoreConfig':this[_0x460108(0x1e0)][_0x460108(0x1c4)],'onSave':this[_0x460108(0x15d)],'loading':this[_0x460108(0x106)]['value'],'connectionStatus$':(_0x7bc0bf=this[_0x460108(0x1ba)])==null?void 0x0:_0x7bc0bf[_0x460108(0x14b)],'connectionError$':(_0x4bdcd9=this[_0x460108(0x1ba)])==null?void 0x0:_0x4bdcd9[_0x460108(0x17f)]});},this[_0xb9f49b(0x161)]);}[_0x2bc15e(0x178)](){var _0x2a9636=_0x2bc15e;this[_0x2a9636(0x172)](this[_0x2a9636(0xc9)][_0x2a9636(0x117)](_0x1bb383)['subscribe'](_0x7e44dc=>{var _0x2caadc=_0x2a9636;this[_0x2caadc(0x1e0)]['next'](_0x7e44dc||{});}));const _0x577355=this[_0x2a9636(0xc9)]['getConfig'](_0x1bb383);this[_0x2a9636(0x1e0)][_0x2a9636(0xa8)](_0x577355||{}),this[_0x2a9636(0x172)](this[_0x2a9636(0xc9)][_0x2a9636(0x117)](U)[_0x2a9636(0x16d)](_0x395fc5=>{var _0x5ec8a7=_0x2a9636;this[_0x5ec8a7(0x11e)]['next'](_0x395fc5||{});}));const _0x1cbb42=this['_configService'][_0x2a9636(0x111)](U);this[_0x2a9636(0x11e)][_0x2a9636(0xa8)](_0x1cbb42||{});}async[_0x2bc15e(0x145)](){var _0x1b886a=_0x2bc15e;const _0x12035b=await this[_0x1b886a(0xe7)][_0x1b886a(0x1dd)](R);if(_0x12035b){const _0x33a07f={...this[_0x1b886a(0x1e0)][_0x1b886a(0x1c4)],'apiKey':_0x12035b};this[_0x1b886a(0xc9)][_0x1b886a(0x1aa)](_0x1bb383,_0x33a07f),this['_mcpCoreConfig$'][_0x1b886a(0xa8)](_0x33a07f);}}async[_0x2bc15e(0x152)](_0x2004c1){var _0x2a3cbb=_0x2bc15e;if(!_0x2004c1[_0x2a3cbb(0x199)]||_0x2004c1['apiKey'][_0x2a3cbb(0x16e)]()[_0x2a3cbb(0xb3)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2a3cbb(0x181)]['t'](_0x2a3cbb(0x132))};if(_0x2004c1[_0x2a3cbb(0x199)][_0x2a3cbb(0x16e)]()[_0x2a3cbb(0xb3)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x2a3cbb(0x1e7))};try{const _0x5bd7cf=await this[_0x2a3cbb(0x161)][_0x2a3cbb(0xe0)](_0x1c16fa)[_0x2a3cbb(0x118)](_0x2004c1[_0x2a3cbb(0x199)]['trim']());return _0x5bd7cf['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x5bd7cf['error']||this[_0x2a3cbb(0x181)]['t'](_0x2a3cbb(0x18c))};}catch(_0x48e4b3){return console['warn'](_0x2a3cbb(0x154),_0x48e4b3),{'isValid':!0x0};}}};_=Qe([p(0x0,_0x696855(_0x3be1cf)),p(0x1,_0x4c65ee),p(0x2,_0x5b375f),p(0x3,_0x4948f7),p(0x4,_0x119553),p(0x5,_0x5b4388),p(0x6,_0x696855(_0x13aeb6)),p(0x7,_0x696855(_0x42fd01)),p(0x8,_0x4318dc),p(0x9,_0x696855(_0x1c16fa))],_);const W={'id':'mcp-ui.command.openConfigPanel','type':_0x577139[_0x2bc15e(0x179)],'handler':async(_0x2dc279,_0x4eedea)=>(_0x2dc279['get'](_)[_0x2bc15e(0x18b)](),!0x0)};function ve(_0x3a3114,_0x5df4cf){var _0x1cbfb8=_0x2bc15e;switch(_0x3a3114){case _0x16bf1e['DISCONNECTED']:return _0x5df4cf===_0x3ee0ac[_0x1cbfb8(0x1af)]?_0x1cbfb8(0xe9):_0x1cbfb8(0x14c);case _0x16bf1e[_0x1cbfb8(0xfa)]:return _0x1cbfb8(0x13c);case _0x16bf1e[_0x1cbfb8(0x101)]:return'mcpStatus.connected';case _0x16bf1e[_0x1cbfb8(0xb8)]:switch(_0x5df4cf){case _0x3ee0ac[_0x1cbfb8(0x11c)]:return _0x1cbfb8(0xc4);case _0x3ee0ac['SESSION_ID_OCCUPIED']:return _0x1cbfb8(0x105);case _0x3ee0ac[_0x1cbfb8(0x1a5)]:return _0x1cbfb8(0x188);case _0x3ee0ac[_0x1cbfb8(0x108)]:return _0x1cbfb8(0xbd);default:return _0x1cbfb8(0xc3);}case _0x16bf1e['RETRYING']:return _0x1cbfb8(0xa6);default:return'mcpStatus.unknown';}}function en(_0x3d6e00,_0x45cb33,_0x4514ef){var _0x284fda=_0x2bc15e;const _0x3f44a=ve(_0x3d6e00,_0x45cb33),_0x31c6b5=_0x4514ef['t'](_0x3f44a);return _0x3d6e00===_0x16bf1e[_0x284fda(0x1e6)]&&_0x45cb33===_0x3ee0ac[_0x284fda(0x1af)]?_0x31c6b5+'\x20-\x20'+_0x4514ef['t'](_0x284fda(0x19f)):_0x3d6e00===_0x16bf1e[_0x284fda(0x101)]?''+_0x31c6b5:_0x3d6e00===_0x16bf1e['DISCONNECTED']||_0x3d6e00===_0x16bf1e[_0x284fda(0xb8)]?_0x31c6b5+_0x284fda(0x1c2)+_0x4514ef['t'](_0x284fda(0x127)):_0x31c6b5;}function nn(_0x124c3a){var _0xe3b959=_0x2bc15e;switch(_0x124c3a){case _0x16bf1e[_0xe3b959(0x101)]:return'univer-text-green-500';case _0x16bf1e['CONNECTING']:case _0x16bf1e[_0xe3b959(0xcf)]:return _0xe3b959(0x131);case _0x16bf1e[_0xe3b959(0xb8)]:case _0x16bf1e[_0xe3b959(0x1e6)]:return _0xe3b959(0x162);default:return _0xe3b959(0xc5);}}function rn(_0x52f633){var _0x10ff69=_0x2bc15e;const {status$:_0x3e171d,error$:_0x26b3a8,onConfigure:_0x366dd3}=_0x52f633,_0x5b3ea6=_0x1ba95b(_0x3e171d,_0x16bf1e[_0x10ff69(0x1e6)]),_0x3726ae=_0x1ba95b(_0x26b3a8,_0x3ee0ac[_0x10ff69(0x12d)]),_0x442625=_0x4faa95(_0x42fd01),_0x410766=_0x5b3ea6===_0x16bf1e[_0x10ff69(0x101)],_0x172ab0=_0x5b3ea6===_0x16bf1e['CONNECTING']||_0x5b3ea6===_0x16bf1e['RETRYING'],_0x263ed5=_0x442625['t'](ve(_0x5b3ea6,_0x3726ae)),_0x50fa0f=en(_0x5b3ea6,_0x3726ae,_0x442625),_0x35ec1c=nn(_0x5b3ea6),_0x1228c8=_0x410766?_0x24230c(ue,{}):_0x24230c(le,{}),_0x332dcd=_0x292baa(()=>{_0x366dd3&&_0x366dd3();},[_0x410766,_0x172ab0,_0x366dd3]);function _0x5e4aef(){var _0x3e6028=_0x10ff69;return _0x5c6a92('div',{'className':_0x2ed97f('univer-flex\x20univer-cursor-pointer\x20univer-items-center',_0x366dd3&&_0x3e6028(0xb4)),'onClick':_0x366dd3?_0x332dcd:void 0x0,'children':[_0x24230c(_0x3e6028(0x11f),{'className':_0x2ed97f(_0x3e6028(0x146),_0x35ec1c),'children':_0x1228c8}),_0x24230c(_0x3e6028(0x11f),{'className':_0x3e6028(0x9b),'children':_0x263ed5})]});}return _0x24230c(_0x1b8685,{'title':_0x50fa0f,'placement':_0x10ff69(0x1a1),'children':_0x5e4aef()});}var tn=Object[_0x2bc15e(0x16c)],on=(_0x5ec685,_0x21eb4d,_0x2d874f,_0x4aeb20)=>{for(var _0x42fe3b=_0x4aeb20>0x1?void 0x0:_0x4aeb20?tn(_0x21eb4d,_0x2d874f):_0x21eb4d,_0x469424=_0x5ec685['length']-0x1,_0x12ea9b;_0x469424>=0x0;_0x469424--)(_0x12ea9b=_0x5ec685[_0x469424])&&(_0x42fe3b=_0x12ea9b(_0x42fe3b)||_0x42fe3b);return _0x42fe3b;},L=(_0x66acf5,_0x3c5bc4)=>(_0x93f0c7,_0x574090)=>_0x3c5bc4(_0x93f0c7,_0x574090,_0x66acf5);let O=class extends _0x3a1a4d{constructor(_0x1c819b,_0x45b4a3,_0x10db4a){var _0x243697=_0x2bc15e;super(),this[_0x243697(0x161)]=_0x1c819b,this[_0x243697(0x159)]=_0x45b4a3,this['_uiPartsService']=_0x10db4a,this['_initStatusComponent']();}[_0x2bc15e(0x150)](){var _0x3f001d=_0x2bc15e;this[_0x3f001d(0x172)](this[_0x3f001d(0xc2)]['registerComponent'](_0x2c0def[_0x3f001d(0x1ae)],()=>_0x5d4d25(cn({'status$':this[_0x3f001d(0x159)][_0x3f001d(0x14b)],'error$':this[_0x3f001d(0x159)][_0x3f001d(0x17f)],'onConfigure':()=>this[_0x3f001d(0xcb)]()}),this['_injector'])));}[_0x2bc15e(0xcb)](){var _0x43e7ab=_0x2bc15e;this[_0x43e7ab(0x161)][_0x43e7ab(0xe0)](_)[_0x43e7ab(0x18b)]();}};O=on([L(0x0,_0x696855(_0x3be1cf)),L(0x1,_0x696855(_0x1c16fa)),L(0x2,_0x4c65ee)],O);function cn(_0x4cc40f){const {status$:_0x23c6e8,error$:_0x411ba6,onConfigure:_0x12d8ce}=_0x4cc40f;return function(){return _0x24230c(rn,{'status$':_0x23c6e8,'error$':_0x411ba6,'onConfigure':_0x12d8ce});};}function an(_0xc167dc){var _0x566401=_0x2bc15e;return{'id':W['id'],'type':_0x21bf04[_0x566401(0x15a)],'icon':_0x566401(0x1dc),'title':_0x566401(0x1b9),'tooltip':_0x566401(0x1b9)};}const sn={[_0x2510f1[_0x2bc15e(0x1e4)]]:{[W['id']]:{'order':0xa,'menuItemFactory':an}}};var ln=Object[_0x2bc15e(0x16c)],un=(_0xe38c1e,_0x240cb4,_0x2d7844,_0x35e426)=>{var _0x25e83f=_0x2bc15e;for(var _0x3e4827=_0x35e426>0x1?void 0x0:_0x35e426?ln(_0x240cb4,_0x2d7844):_0x240cb4,_0x15a12b=_0xe38c1e[_0x25e83f(0xb3)]-0x1,_0x1323d5;_0x15a12b>=0x0;_0x15a12b--)(_0x1323d5=_0xe38c1e[_0x15a12b])&&(_0x3e4827=_0x1323d5(_0x3e4827)||_0x3e4827);return _0x3e4827;},Q=(_0x49f3be,_0x45cb5a)=>(_0x5601fd,_0x471979)=>_0x45cb5a(_0x5601fd,_0x471979,_0x49f3be);let k=class extends _0x3a1a4d{constructor(_0x171f40,_0x11ada6){var _0x10ef46=_0x2bc15e;super(),this['_commandService']=_0x171f40,this['_menuManagerService']=_0x11ada6,this['_initializeCommands'](),this[_0x10ef46(0xe1)]();}[_0x2bc15e(0x12a)](){var _0x8ea2d6=_0x2bc15e;[W][_0x8ea2d6(0xcc)](_0xe27650=>{var _0x47f6a6=_0x8ea2d6;this[_0x47f6a6(0x172)](this[_0x47f6a6(0x1d7)][_0x47f6a6(0x136)](_0xe27650));});}['_initializeMenus'](){var _0x2dd2ff=_0x2bc15e;this[_0x2dd2ff(0x1c0)][_0x2dd2ff(0xf8)](sn);}};k=un([Q(0x0,_0x386a7f),Q(0x1,_0x540f9d)],k);const Nn={'mcpStatus':{'disconnected':_0x2bc15e(0xa1),'connecting':_0x2bc15e(0x144),'connected':_0x2bc15e(0x13d),'failed':_0x2bc15e(0x196),'retrying':_0x2bc15e(0x176),'unknown':_0x2bc15e(0x185),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x2bc15e(0x194),'maxRetriesExceeded':_0x2bc15e(0x113),'clickToConnect':_0x2bc15e(0x156),'clickToConfigure':_0x2bc15e(0x104)},'mcpConfig':{'title':_0x2bc15e(0x1df),'description':_0x2bc15e(0xe8),'apiKey':_0x2bc15e(0x17a),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2bc15e(0x11a),'enableAuth':_0x2bc15e(0x1b3),'enableAuthHint':_0x2bc15e(0xd3),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x2bc15e(0x177),'sessionId':_0x2bc15e(0x18f),'maxRetries':_0x2bc15e(0x1b8),'save':_0x2bc15e(0xec),'saving':_0x2bc15e(0x1c1),'note1':_0x2bc15e(0x15c),'note2':_0x2bc15e(0x1d1),'configSaved':_0x2bc15e(0x1a9),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x2bc15e(0xf0),'description':_0x2bc15e(0x1d2),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x2bc15e(0x1d6)},'validation':{'apiKeyRequired':_0x2bc15e(0x13b),'apiKeyTooShort':_0x2bc15e(0x189),'invalidConfig':_0x2bc15e(0x148),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x2bc15e(0x17e),'connecting':'Connecting...','connected':_0x2bc15e(0x1e9),'failed':_0x2bc15e(0x139),'retrying':'Retrying...'},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x2bc15e(0x98),'maxRetriesExceeded':_0x2bc15e(0xbc)}}},Pn={'mcpStatus':{'disconnected':_0x2bc15e(0xc8),'connecting':_0x2bc15e(0x11d),'connected':_0x2bc15e(0xed),'failed':_0x2bc15e(0x123),'retrying':_0x2bc15e(0xab),'unknown':_0x2bc15e(0x9f),'missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':_0x2bc15e(0x173),'sessionOccupied':'MCP:\x20会话被占用','networkError':_0x2bc15e(0xa3),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x2bc15e(0x1da),'clickToConfigure':_0x2bc15e(0x10e)},'mcpConfig':{'title':_0x2bc15e(0x16a),'description':_0x2bc15e(0x9e),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x2bc15e(0x155),'apiKeyHint':_0x2bc15e(0xf3),'enableAuth':_0x2bc15e(0x1bc),'enableAuthHint':_0x2bc15e(0xa0),'connectionInfo':_0x2bc15e(0x1ed),'serverEndpoint':_0x2bc15e(0xfe),'sessionId':_0x2bc15e(0x1cb),'maxRetries':_0x2bc15e(0x165),'save':'保存配置','saving':_0x2bc15e(0xf5),'note1':'配置更改将立即生效','note2':_0x2bc15e(0xf2),'configSaved':'配置保存成功','configError':_0x2bc15e(0x137),'apiApplyInfo':{'title':_0x2bc15e(0x1c5),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x2bc15e(0xd1),'getStarted':_0x2bc15e(0x195)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x2bc15e(0x1db),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x2bc15e(0x142),'connected':_0x2bc15e(0x192),'failed':_0x2bc15e(0xd7),'retrying':_0x2bc15e(0x184)},'connectionError':{'missingApiKey':'需要\x20API\x20密钥才能连接','invalidApiKey':_0x2bc15e(0x193),'sessionOccupied':_0x2bc15e(0x1b2),'networkError':_0x2bc15e(0xf9),'maxRetriesExceeded':_0x2bc15e(0x10d)}}};var vn=Object[_0x2bc15e(0x12c)],dn=Object[_0x2bc15e(0x16c)],gn=(_0x26084d,_0x41051a,_0x375115)=>_0x41051a in _0x26084d?vn(_0x26084d,_0x41051a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x375115}):_0x26084d[_0x41051a]=_0x375115,fn=(_0x339b79,_0x4dfa09,_0x42e682,_0x27b699)=>{var _0x390f9d=_0x2bc15e;for(var _0x475250=_0x27b699>0x1?void 0x0:_0x27b699?dn(_0x4dfa09,_0x42e682):_0x4dfa09,_0x2f2932=_0x339b79[_0x390f9d(0xb3)]-0x1,_0x4283fe;_0x2f2932>=0x0;_0x2f2932--)(_0x4283fe=_0x339b79[_0x2f2932])&&(_0x475250=_0x4283fe(_0x475250)||_0x475250);return _0x475250;},P=(_0xf847aa,_0x114b14)=>(_0x9da604,_0xffe549)=>_0x114b14(_0x9da604,_0xffe549,_0xf847aa),pn=(_0x1f2992,_0x715050,_0x2a2192)=>gn(_0x1f2992,_0x715050+'',_0x2a2192);let G=class extends _0x32b180{constructor(_0x2e974a=J,_0x3cacae,_0x4db2b0,_0x4efc30,_0x55cf76,_0x1380dc){var _0x2ceaa2=_0x2bc15e;super(),this[_0x2ceaa2(0x13f)]=_0x2e974a,this[_0x2ceaa2(0x161)]=_0x3cacae,this[_0x2ceaa2(0xc9)]=_0x4db2b0,this[_0x2ceaa2(0xc2)]=_0x4efc30,this[_0x2ceaa2(0xe7)]=_0x55cf76,this[_0x2ceaa2(0x181)]=_0x1380dc;const {..._0x498038}=_0x2b6653({},J,this[_0x2ceaa2(0x13f)]);this[_0x2ceaa2(0xc9)][_0x2ceaa2(0x1aa)](U,_0x498038);}async[_0x2bc15e(0x1d3)](){var _0x1c2276=_0x2bc15e;[[O],[_],[k]][_0x1c2276(0xcc)](_0x244deb=>this[_0x1c2276(0x161)][_0x1c2276(0xa9)](_0x244deb)),this[_0x1c2276(0x161)][_0x1c2276(0xe0)](O),this['_injector'][_0x1c2276(0xe0)](_),this[_0x1c2276(0x161)][_0x1c2276(0xe0)](k);}};pn(G,_0x2bc15e(0x13a),_0x2bc15e(0x19d)),G=fn([_0x302e6f(_0x313ef9),P(0x1,_0x696855(_0x3be1cf)),P(0x2,_0x5b375f),P(0x3,_0x4c65ee),P(0x4,_0x4948f7),P(0x5,_0x696855(_0x42fd01))],G);export{Xe as MCPConfigPanel,_ as MCPConfigUIController,O as MCPConnectionUIController,rn as MCPStatusDisplay,k as MCPUIMenuController,W as OpenMCPConfigPanelCommand,G as UniverMCPUIPlugin,Nn as enUS,Pn as zhCN};
@@ -1 +1 @@
1
- const _0x4ee60e=_0x20c1;(function(_0x5a19d1,_0x250d00){const _0x18add5=_0x20c1,_0x13a346=_0x5a19d1();while(!![]){try{const _0x110310=-parseInt(_0x18add5(0x124))/0x1+parseInt(_0x18add5(0x148))/0x2*(parseInt(_0x18add5(0x13b))/0x3)+-parseInt(_0x18add5(0x14a))/0x4+-parseInt(_0x18add5(0x12b))/0x5*(parseInt(_0x18add5(0x134))/0x6)+parseInt(_0x18add5(0x149))/0x7+parseInt(_0x18add5(0x133))/0x8*(parseInt(_0x18add5(0x126))/0x9)+-parseInt(_0x18add5(0x131))/0xa*(-parseInt(_0x18add5(0x123))/0xb);if(_0x110310===_0x250d00)break;else _0x13a346['push'](_0x13a346['shift']());}catch(_0x655cd0){_0x13a346['push'](_0x13a346['shift']());}}}(_0xa7fd,0xce70a));function _0x20c1(_0x69d50,_0x4027de){const _0xa7fd20=_0xa7fd();return _0x20c1=function(_0x20c116,_0x234ad3){_0x20c116=_0x20c116-0x11d;let _0x23be02=_0xa7fd20[_0x20c116];return _0x23be02;},_0x20c1(_0x69d50,_0x4027de);}const e={'mcpStatus':{'disconnected':_0x4ee60e(0x127),'connecting':_0x4ee60e(0x130),'connected':_0x4ee60e(0x14d),'failed':_0x4ee60e(0x125),'retrying':_0x4ee60e(0x11d),'unknown':_0x4ee60e(0x146),'missingApiKey':_0x4ee60e(0x128),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x4ee60e(0x139),'networkError':_0x4ee60e(0x13c),'maxRetriesExceeded':_0x4ee60e(0x12e),'clickToConnect':_0x4ee60e(0x132),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x4ee60e(0x145),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x4ee60e(0x14e),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4ee60e(0x136),'connectionInfo':_0x4ee60e(0x138),'serverEndpoint':_0x4ee60e(0x14c),'sessionId':_0x4ee60e(0x143),'maxRetries':_0x4ee60e(0x12c),'save':_0x4ee60e(0x129),'saving':_0x4ee60e(0x142),'note1':_0x4ee60e(0x12a),'note2':_0x4ee60e(0x13e),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x4ee60e(0x144),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x4ee60e(0x141),'getStarted':_0x4ee60e(0x13a)},'validation':{'apiKeyRequired':_0x4ee60e(0x121),'apiKeyTooShort':_0x4ee60e(0x12f),'invalidConfig':_0x4ee60e(0x137),'invalidApiKey':_0x4ee60e(0x13d)},'connectionStatus':{'disconnected':_0x4ee60e(0x140),'connecting':_0x4ee60e(0x13f),'connected':_0x4ee60e(0x11f),'failed':_0x4ee60e(0x11e),'retrying':_0x4ee60e(0x147)},'connectionError':{'missingApiKey':_0x4ee60e(0x12d),'invalidApiKey':_0x4ee60e(0x122),'sessionOccupied':_0x4ee60e(0x135),'networkError':_0x4ee60e(0x120),'maxRetriesExceeded':_0x4ee60e(0x14b)}}},n=e;export{n as default};function _0xa7fd(){const _0x1ffebc=['MCP\x20Unknown\x20Status','Retrying...','976606ChXbfH','1798055sGrxVw','2382932EsncwE','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Server\x20Endpoint','MCP\x20Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Retrying...','Connection\x20Failed','Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20is\x20required','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','11Jlwvkc','690885SGgfEZ','MCP\x20Connection\x20Failed','8838lPgmGz','MCP\x20Disconnected','MCP:\x20API\x20Key\x20Missing','Save\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','15qqHFoB','Max\x20Retries','API\x20key\x20is\x20required\x20to\x20connect','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connecting...','6661670cPouKV','Click\x20to\x20connect\x20MCP','7312bXPFNK','2306586GluICi','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20configuration','Connection\x20Information','MCP:\x20Session\x20Occupied','Get\x20your\x20API\x20key\x20in\x20seconds','9fSwMZD','MCP:\x20Network\x20Error','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connecting...','Disconnected','Univer\x20AI\x20Console','Saving...','Session\x20ID','Failed\x20to\x20save\x20configuration','API\x20Key'];_0xa7fd=function(){return _0x1ffebc;};return _0xa7fd();}
1
+ const _0x48e7df=_0x43c6;function _0x43c6(_0x18d380,_0x57289f){const _0xa43804=_0xa438();return _0x43c6=function(_0x43c64b,_0x53f7fd){_0x43c64b=_0x43c64b-0x183;let _0x4d460a=_0xa43804[_0x43c64b];return _0x4d460a;},_0x43c6(_0x18d380,_0x57289f);}(function(_0x33591c,_0x43fb94){const _0x44d81d=_0x43c6,_0x15917e=_0x33591c();while(!![]){try{const _0x2d3daa=-parseInt(_0x44d81d(0x1af))/0x1*(-parseInt(_0x44d81d(0x1ae))/0x2)+-parseInt(_0x44d81d(0x1b2))/0x3*(-parseInt(_0x44d81d(0x1a0))/0x4)+parseInt(_0x44d81d(0x19b))/0x5+parseInt(_0x44d81d(0x184))/0x6+-parseInt(_0x44d81d(0x197))/0x7*(parseInt(_0x44d81d(0x18b))/0x8)+-parseInt(_0x44d81d(0x188))/0x9*(-parseInt(_0x44d81d(0x1ad))/0xa)+-parseInt(_0x44d81d(0x1ab))/0xb;if(_0x2d3daa===_0x43fb94)break;else _0x15917e['push'](_0x15917e['shift']());}catch(_0x36fd41){_0x15917e['push'](_0x15917e['shift']());}}}(_0xa438,0x316be));const e={'mcpStatus':{'disconnected':_0x48e7df(0x192),'connecting':_0x48e7df(0x187),'connected':_0x48e7df(0x191),'failed':_0x48e7df(0x19e),'retrying':_0x48e7df(0x18a),'unknown':_0x48e7df(0x1a5),'missingApiKey':_0x48e7df(0x1a1),'invalidApiKey':_0x48e7df(0x19c),'sessionOccupied':_0x48e7df(0x1b0),'networkError':_0x48e7df(0x18c),'maxRetriesExceeded':_0x48e7df(0x1a4),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x48e7df(0x1b1)},'mcpConfig':{'title':_0x48e7df(0x195),'description':_0x48e7df(0x18e),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x48e7df(0x1a2),'apiKeyHint':_0x48e7df(0x1a9),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x48e7df(0x18f),'connectionInfo':'Connection\x20Information','serverEndpoint':'Server\x20Endpoint','sessionId':_0x48e7df(0x1a3),'maxRetries':'Max\x20Retries','save':_0x48e7df(0x19d),'saving':_0x48e7df(0x183),'note1':_0x48e7df(0x19a),'note2':_0x48e7df(0x193),'configSaved':_0x48e7df(0x18d),'configError':_0x48e7df(0x1b3),'apiApplyInfo':{'title':_0x48e7df(0x198),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x48e7df(0x185),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x48e7df(0x194),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x48e7df(0x1aa),'invalidApiKey':_0x48e7df(0x190)},'connectionStatus':{'disconnected':_0x48e7df(0x199),'connecting':_0x48e7df(0x186),'connected':_0x48e7df(0x189),'failed':'Connection\x20Failed','retrying':_0x48e7df(0x1ac)},'connectionError':{'missingApiKey':_0x48e7df(0x19f),'invalidApiKey':_0x48e7df(0x1a6),'sessionOccupied':_0x48e7df(0x196),'networkError':_0x48e7df(0x1a7),'maxRetriesExceeded':_0x48e7df(0x1a8)}}},n=e;export{n as default};function _0xa438(){const _0x30aa7f=['Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20configuration','1313587eOSICO','Retrying...','10AZCqxO','88024YgRsHe','4GtTQHl','MCP:\x20Session\x20Occupied','Click\x20to\x20configure\x20MCP','341505XsvvNI','Failed\x20to\x20save\x20configuration','Saving...','1161522nSdLvB','Univer\x20AI\x20Console','Connecting...','MCP\x20Connecting...','961407bbFYYX','Connected','MCP\x20Retrying...','8VGNUqr','MCP:\x20Network\x20Error','Configuration\x20saved\x20successfully','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20authentication\x20for\x20secure\x20connections','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connected','MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20is\x20required','MCP\x20Configuration','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','2031729Tbcfjn','What\x20is\x20API\x20Key?','Disconnected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','109005frBEIq','MCP:\x20Invalid\x20API\x20Key','Save\x20Configuration','MCP\x20Connection\x20Failed','API\x20key\x20is\x20required\x20to\x20connect','4ueDItv','MCP:\x20API\x20Key\x20Missing','Enter\x20your\x20API\x20key','Session\x20ID','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Unknown\x20Status','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again'];_0xa438=function(){return _0x30aa7f;};return _0xa438();}
@@ -1 +1 @@
1
- const _0x15af74=_0x3aa4;(function(_0x520464,_0x31bebb){const _0xe53c3e=_0x3aa4,_0x5b07d0=_0x520464();while(!![]){try{const _0xbeb916=parseInt(_0xe53c3e(0xca))/0x1*(parseInt(_0xe53c3e(0xda))/0x2)+-parseInt(_0xe53c3e(0xe9))/0x3+parseInt(_0xe53c3e(0xd0))/0x4+parseInt(_0xe53c3e(0xcc))/0x5*(-parseInt(_0xe53c3e(0xed))/0x6)+-parseInt(_0xe53c3e(0xe2))/0x7*(-parseInt(_0xe53c3e(0xf2))/0x8)+parseInt(_0xe53c3e(0xe8))/0x9*(parseInt(_0xe53c3e(0xea))/0xa)+-parseInt(_0xe53c3e(0xf1))/0xb*(-parseInt(_0xe53c3e(0xc6))/0xc);if(_0xbeb916===_0x31bebb)break;else _0x5b07d0['push'](_0x5b07d0['shift']());}catch(_0x583433){_0x5b07d0['push'](_0x5b07d0['shift']());}}}(_0x5159,0xd428d));function _0x3aa4(_0x5aaf25,_0x7cf54a){const _0x515920=_0x5159();return _0x3aa4=function(_0x3aa484,_0x1b2fae){_0x3aa484=_0x3aa484-0xc6;let _0xdf4bd5=_0x515920[_0x3aa484];return _0xdf4bd5;},_0x3aa4(_0x5aaf25,_0x7cf54a);}const e={'mcpStatus':{'disconnected':_0x15af74(0xf4),'connecting':'MCP\x20Connecting...','connected':_0x15af74(0xd7),'failed':_0x15af74(0xd9),'retrying':_0x15af74(0xe1),'unknown':_0x15af74(0xe4),'missingApiKey':_0x15af74(0xe7),'invalidApiKey':_0x15af74(0xc9),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x15af74(0xcd),'maxRetriesExceeded':_0x15af74(0xd2),'clickToConnect':_0x15af74(0xe0),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x15af74(0xf0),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x15af74(0xd8),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x15af74(0xeb),'enableAuthHint':_0x15af74(0xee),'connectionInfo':_0x15af74(0xdd),'serverEndpoint':'Server\x20Endpoint','sessionId':_0x15af74(0xe3),'maxRetries':_0x15af74(0xc7),'save':_0x15af74(0xd3),'saving':_0x15af74(0xf5),'note1':_0x15af74(0xce),'note2':_0x15af74(0xf3),'configSaved':_0x15af74(0xcb),'configError':_0x15af74(0xe5),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x15af74(0xd4),'univerAiLabel':_0x15af74(0xdb),'getStarted':_0x15af74(0xec)},'validation':{'apiKeyRequired':_0x15af74(0xd1),'apiKeyTooShort':_0x15af74(0xdc),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x15af74(0xcf)},'connectionStatus':{'disconnected':_0x15af74(0xe6),'connecting':'Connecting...','connected':_0x15af74(0xd6),'failed':'Connection\x20Failed','retrying':_0x15af74(0xdf)},'connectionError':{'missingApiKey':_0x15af74(0xd5),'invalidApiKey':_0x15af74(0xc8),'sessionOccupied':_0x15af74(0xde),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x15af74(0xef)}}};function _0x5159(){const _0x434a3c=['MCP\x20Disconnected','Saving...','96NOZYLe','Max\x20Retries','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP:\x20Invalid\x20API\x20Key','2ftMjBv','Configuration\x20saved\x20successfully','10xVTrRK','MCP:\x20Network\x20Error','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','4908588OnBOhi','API\x20key\x20is\x20required','MCP:\x20Max\x20Retries\x20Exceeded','Save\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20is\x20required\x20to\x20connect','Connected','MCP\x20Connected','Enter\x20your\x20API\x20key','MCP\x20Connection\x20Failed','1463954sjjfUS','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connection\x20Information','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Retrying...','Click\x20to\x20connect\x20MCP','MCP\x20Retrying...','7DxPBur','Session\x20ID','MCP\x20Unknown\x20Status','Failed\x20to\x20save\x20configuration','Disconnected','MCP:\x20API\x20Key\x20Missing','144837VIFfRa','4087515XJrQip','410agsZHt','Enable\x20Authentication','Get\x20your\x20API\x20key\x20in\x20seconds','3992514MLdsvb','Enable\x20authentication\x20for\x20secure\x20connections','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Configuration','109703FyWXDu','1053200EjzMfU','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage'];_0x5159=function(){return _0x434a3c;};return _0x5159();}export{e as default};
1
+ const _0x35d79c=_0x56ad;function _0x56ad(_0x118c8b,_0x55c21f){const _0x4644ed=_0x4644();return _0x56ad=function(_0x56ada2,_0x31c732){_0x56ada2=_0x56ada2-0x13f;let _0x52da08=_0x4644ed[_0x56ada2];return _0x52da08;},_0x56ad(_0x118c8b,_0x55c21f);}(function(_0x53366b,_0x4d075b){const _0x51f5c7=_0x56ad,_0x1109f2=_0x53366b();while(!![]){try{const _0x2b1e21=-parseInt(_0x51f5c7(0x143))/0x1*(-parseInt(_0x51f5c7(0x163))/0x2)+parseInt(_0x51f5c7(0x151))/0x3+parseInt(_0x51f5c7(0x15e))/0x4*(-parseInt(_0x51f5c7(0x141))/0x5)+parseInt(_0x51f5c7(0x148))/0x6*(-parseInt(_0x51f5c7(0x164))/0x7)+-parseInt(_0x51f5c7(0x150))/0x8+-parseInt(_0x51f5c7(0x166))/0x9+parseInt(_0x51f5c7(0x15d))/0xa;if(_0x2b1e21===_0x4d075b)break;else _0x1109f2['push'](_0x1109f2['shift']());}catch(_0x35a1a0){_0x1109f2['push'](_0x1109f2['shift']());}}}(_0x4644,0x68e05));const e={'mcpStatus':{'disconnected':_0x35d79c(0x144),'connecting':_0x35d79c(0x14d),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x35d79c(0x142),'missingApiKey':_0x35d79c(0x14e),'invalidApiKey':_0x35d79c(0x158),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x35d79c(0x13f),'clickToConnect':_0x35d79c(0x167),'clickToConfigure':_0x35d79c(0x157)},'mcpConfig':{'title':_0x35d79c(0x14b),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x35d79c(0x161),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x35d79c(0x15a),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x35d79c(0x168),'serverEndpoint':_0x35d79c(0x147),'sessionId':_0x35d79c(0x162),'maxRetries':_0x35d79c(0x165),'save':'Save\x20Configuration','saving':_0x35d79c(0x154),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x35d79c(0x153),'configError':_0x35d79c(0x15b),'apiApplyInfo':{'title':_0x35d79c(0x169),'description':_0x35d79c(0x156),'univerAiLabel':_0x35d79c(0x14a),'getStarted':_0x35d79c(0x145)},'validation':{'apiKeyRequired':_0x35d79c(0x146),'apiKeyTooShort':_0x35d79c(0x14f),'invalidConfig':_0x35d79c(0x160),'invalidApiKey':_0x35d79c(0x15c)},'connectionStatus':{'disconnected':_0x35d79c(0x15f),'connecting':_0x35d79c(0x159),'connected':'Connected','failed':_0x35d79c(0x155),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x35d79c(0x140),'invalidApiKey':_0x35d79c(0x14c),'sessionOccupied':_0x35d79c(0x152),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x35d79c(0x149)}}};export{e as default};function _0x4644(){const _0x5bbc78=['254UEetGh','4971169jNhwju','Max\x20Retries','1809828pAevnq','Click\x20to\x20connect\x20MCP','Connection\x20Information','What\x20is\x20API\x20Key?','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20is\x20required\x20to\x20connect','5FrDLCq','MCP\x20Unknown\x20Status','6028oafFqC','MCP\x20Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20is\x20required','Server\x20Endpoint','6IpGIcR','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Univer\x20AI\x20Console','MCP\x20Configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP\x20Connecting...','MCP:\x20API\x20Key\x20Missing','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','945720uEGNDg','715059VsZPfi','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','Saving...','Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20configure\x20MCP','MCP:\x20Invalid\x20API\x20Key','Connecting...','Enable\x20Authentication','Failed\x20to\x20save\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','11926210FwYWYA','2949932VLxZKG','Disconnected','Invalid\x20configuration','Enter\x20your\x20API\x20key','Session\x20ID'];_0x4644=function(){return _0x5bbc78;};return _0x4644();}
@@ -1 +1 @@
1
- function _0x465d(){const _0x5081de=['Save\x20Configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20configure\x20MCP','Enable\x20Authentication','4ylERhK','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','930454AiaFwE','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Connecting...','648186vBprgC','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Retrying...','40bVDQGk','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','Connected','Disconnected','387378zNQCLv','Invalid\x20configuration','828171HVSzSP','API\x20key\x20is\x20required\x20to\x20connect','MCP\x20Connecting...','Configuration\x20saved\x20successfully','MCP\x20Disconnected','MCP:\x20Network\x20Error','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','38792tUmngv','MCP\x20Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','94854RpSeHD','Connection\x20Information','MCP:\x20Invalid\x20API\x20Key','Server\x20Endpoint','Saving...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','218345ihvIEB','Max\x20Retries'];_0x465d=function(){return _0x5081de;};return _0x465d();}function _0x1900(_0xfdcd07,_0x5b6c80){const _0x465de7=_0x465d();return _0x1900=function(_0x190006,_0x3d3995){_0x190006=_0x190006-0x1b4;let _0x502e53=_0x465de7[_0x190006];return _0x502e53;},_0x1900(_0xfdcd07,_0x5b6c80);}const _0x39f10f=_0x1900;(function(_0x52fdba,_0x1c7095){const _0x1c158d=_0x1900,_0x3eb0a6=_0x52fdba();while(!![]){try{const _0x14b87a=parseInt(_0x1c158d(0x1cc))/0x1+-parseInt(_0x1c158d(0x1ba))/0x2+-parseInt(_0x1c158d(0x1c3))/0x3*(parseInt(_0x1c158d(0x1b5))/0x4)+parseInt(_0x1c158d(0x1d6))/0x5+-parseInt(_0x1c158d(0x1d0))/0x6+parseInt(_0x1c158d(0x1b7))/0x7+parseInt(_0x1c158d(0x1bd))/0x8*(parseInt(_0x1c158d(0x1c5))/0x9);if(_0x14b87a===_0x1c7095)break;else _0x3eb0a6['push'](_0x3eb0a6['shift']());}catch(_0x52a275){_0x3eb0a6['push'](_0x3eb0a6['shift']());}}}(_0x465d,0x32672));const e={'mcpStatus':{'disconnected':_0x39f10f(0x1c9),'connecting':_0x39f10f(0x1c7),'connected':'MCP\x20Connected','failed':_0x39f10f(0x1cd),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x39f10f(0x1d2),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x39f10f(0x1ca),'maxRetriesExceeded':_0x39f10f(0x1c0),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x39f10f(0x1da)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x39f10f(0x1bb),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x39f10f(0x1cb),'enableAuth':_0x39f10f(0x1b4),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x39f10f(0x1d1),'serverEndpoint':_0x39f10f(0x1d3),'sessionId':'Session\x20ID','maxRetries':_0x39f10f(0x1d7),'save':_0x39f10f(0x1d8),'saving':_0x39f10f(0x1d4),'note1':_0x39f10f(0x1b6),'note2':_0x39f10f(0x1cf),'configSaved':_0x39f10f(0x1c8),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x39f10f(0x1be),'description':_0x39f10f(0x1d9),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x39f10f(0x1c4),'invalidApiKey':_0x39f10f(0x1ce)},'connectionStatus':{'disconnected':_0x39f10f(0x1c2),'connecting':_0x39f10f(0x1b9),'connected':_0x39f10f(0x1c1),'failed':'Connection\x20Failed','retrying':_0x39f10f(0x1bc)},'connectionError':{'missingApiKey':_0x39f10f(0x1c6),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x39f10f(0x1b8),'networkError':_0x39f10f(0x1d5),'maxRetriesExceeded':_0x39f10f(0x1bf)}}},n=e;export{n as default};
1
+ const _0x1458da=_0x4eb3;function _0x573b(){const _0x2c1134=['Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Session\x20Occupied','Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','10TmUClM','Retrying...','API\x20Key','6687Ipzfbm','Max\x20Retries','1081344QLmnAa','Disconnected','Configuration\x20saved\x20successfully','93NWdIUb','MCP:\x20API\x20Key\x20Missing','Univer\x20AI\x20Console','1188084JVASBv','242rOHmbd','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session\x20ID','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','MCP:\x20Network\x20Error','1114120nSgnXt','506133DbTTwI','Failed\x20to\x20save\x20configuration','1076805OnqGMR','Click\x20to\x20configure\x20MCP','MCP\x20Unknown\x20Status','API\x20key\x20is\x20required','MCP:\x20Invalid\x20API\x20Key','122zBHGJp','Connected','80508YzxVBm','Server\x20Endpoint','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connected','Click\x20to\x20connect\x20MCP','18jGaBkN','MCP\x20Configuration','MCP\x20Disconnected','Connection\x20Failed','Save\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Saving...','Enable\x20Authentication','API\x20key\x20is\x20required\x20to\x20connect','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds'];_0x573b=function(){return _0x2c1134;};return _0x573b();}function _0x4eb3(_0x35199e,_0x335084){const _0x573b6d=_0x573b();return _0x4eb3=function(_0x4eb348,_0x272e44){_0x4eb348=_0x4eb348-0xd1;let _0x5e0754=_0x573b6d[_0x4eb348];return _0x5e0754;},_0x4eb3(_0x35199e,_0x335084);}(function(_0x5652b3,_0x302229){const _0x3dbbed=_0x4eb3,_0x234f18=_0x5652b3();while(!![]){try{const _0x54e453=-parseInt(_0x3dbbed(0xf0))/0x1*(parseInt(_0x3dbbed(0xd6))/0x2)+parseInt(_0x3dbbed(0xf5))/0x3*(-parseInt(_0x3dbbed(0xd8))/0x4)+parseInt(_0x3dbbed(0xd1))/0x5*(-parseInt(_0x3dbbed(0xde))/0x6)+-parseInt(_0x3dbbed(0xff))/0x7+parseInt(_0x3dbbed(0xf2))/0x8+-parseInt(_0x3dbbed(0x100))/0x9*(parseInt(_0x3dbbed(0xed))/0xa)+-parseInt(_0x3dbbed(0xf9))/0xb*(-parseInt(_0x3dbbed(0xf8))/0xc);if(_0x54e453===_0x302229)break;else _0x234f18['push'](_0x234f18['shift']());}catch(_0x1981e5){_0x234f18['push'](_0x234f18['shift']());}}}(_0x573b,0x6689e));const e={'mcpStatus':{'disconnected':_0x1458da(0xe0),'connecting':'MCP\x20Connecting...','connected':_0x1458da(0xdc),'failed':_0x1458da(0xfd),'retrying':'MCP\x20Retrying...','unknown':_0x1458da(0xd3),'missingApiKey':_0x1458da(0xf6),'invalidApiKey':_0x1458da(0xd5),'sessionOccupied':_0x1458da(0xea),'networkError':_0x1458da(0xfe),'maxRetriesExceeded':_0x1458da(0xdb),'clickToConnect':_0x1458da(0xdd),'clickToConfigure':_0x1458da(0xd2)},'mcpConfig':{'title':_0x1458da(0xdf),'description':_0x1458da(0xfa),'apiKey':_0x1458da(0xef),'apiKeyPlaceholder':_0x1458da(0xe7),'apiKeyHint':_0x1458da(0xe3),'enableAuth':_0x1458da(0xe5),'enableAuthHint':_0x1458da(0xe9),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x1458da(0xd9),'sessionId':_0x1458da(0xfb),'maxRetries':_0x1458da(0xf1),'save':_0x1458da(0xe2),'saving':_0x1458da(0xe4),'note1':_0x1458da(0xda),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x1458da(0xf4),'configError':_0x1458da(0x101),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x1458da(0xf7),'getStarted':_0x1458da(0xe8)},'validation':{'apiKeyRequired':_0x1458da(0xd4),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x1458da(0xf3),'connecting':_0x1458da(0xeb),'connected':_0x1458da(0xd7),'failed':_0x1458da(0xe1),'retrying':_0x1458da(0xee)},'connectionError':{'missingApiKey':_0x1458da(0xe6),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x1458da(0xfc),'networkError':_0x1458da(0xec),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x32c951=_0x1fe4;function _0x1fe4(_0x2e4a00,_0xd2bf43){const _0x22d5c1=_0x22d5();return _0x1fe4=function(_0x1fe414,_0x336653){_0x1fe414=_0x1fe414-0x177;let _0x3d8bb1=_0x22d5c1[_0x1fe414];return _0x3d8bb1;},_0x1fe4(_0x2e4a00,_0xd2bf43);}(function(_0x2b8370,_0x1b2907){const _0x2dff61=_0x1fe4,_0x25bdc6=_0x2b8370();while(!![]){try{const _0x4f302a=-parseInt(_0x2dff61(0x19e))/0x1+-parseInt(_0x2dff61(0x180))/0x2*(-parseInt(_0x2dff61(0x1a9))/0x3)+parseInt(_0x2dff61(0x182))/0x4*(-parseInt(_0x2dff61(0x1a8))/0x5)+-parseInt(_0x2dff61(0x189))/0x6*(parseInt(_0x2dff61(0x192))/0x7)+parseInt(_0x2dff61(0x18b))/0x8*(parseInt(_0x2dff61(0x17a))/0x9)+parseInt(_0x2dff61(0x1a5))/0xa+-parseInt(_0x2dff61(0x193))/0xb;if(_0x4f302a===_0x1b2907)break;else _0x25bdc6['push'](_0x25bdc6['shift']());}catch(_0x879d7a){_0x25bdc6['push'](_0x25bdc6['shift']());}}}(_0x22d5,0x340c7));function _0x22d5(){const _0x3e8474=['704155lDsutU','18fGLEDf','Connected','Connecting...','Enable\x20Authentication','Saving...','1694259gxtNjm','Session\x20ID','MCP\x20Retrying...','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','36786JtqnSA','MCP:\x20API\x20Key\x20Missing','4rejeBk','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Failed\x20to\x20save\x20configuration','API\x20key\x20is\x20required','Connection\x20Information','Max\x20Retries','6qBImOj','MCP\x20Connecting...','16wxjqKc','Enter\x20your\x20API\x20key','MCP\x20Unknown\x20Status','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Disconnected','Retrying...','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','790496WuVhOA','124388Kgcvme','Click\x20to\x20connect\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20saved\x20successfully','Univer\x20AI\x20Console','Click\x20to\x20configure\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.','MCP\x20Connection\x20Failed','MCP:\x20Max\x20Retries\x20Exceeded','243553JzATrQ','MCP:\x20Invalid\x20API\x20Key','MCP\x20Connected','API\x20Key','API\x20key\x20is\x20required\x20to\x20connect','MCP\x20Configuration','Connection\x20Failed','2349510oMKyDL','Save\x20Configuration','Invalid\x20configuration'];_0x22d5=function(){return _0x3e8474;};return _0x22d5();}const e={'mcpStatus':{'disconnected':_0x32c951(0x17e),'connecting':_0x32c951(0x18a),'connected':_0x32c951(0x1a0),'failed':_0x32c951(0x19c),'retrying':_0x32c951(0x17c),'unknown':_0x32c951(0x18d),'missingApiKey':_0x32c951(0x181),'invalidApiKey':_0x32c951(0x19f),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x32c951(0x19d),'clickToConnect':_0x32c951(0x194),'clickToConfigure':_0x32c951(0x19a)},'mcpConfig':{'title':_0x32c951(0x1a3),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x32c951(0x1a1),'apiKeyPlaceholder':_0x32c951(0x18c),'apiKeyHint':_0x32c951(0x183),'enableAuth':_0x32c951(0x178),'enableAuthHint':_0x32c951(0x17d),'connectionInfo':_0x32c951(0x187),'serverEndpoint':'Server\x20Endpoint','sessionId':_0x32c951(0x17b),'maxRetries':_0x32c951(0x188),'save':_0x32c951(0x1a6),'saving':_0x32c951(0x179),'note1':_0x32c951(0x197),'note2':_0x32c951(0x184),'configSaved':_0x32c951(0x198),'configError':_0x32c951(0x185),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x32c951(0x19b),'univerAiLabel':_0x32c951(0x199),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x32c951(0x186),'apiKeyTooShort':_0x32c951(0x196),'invalidConfig':_0x32c951(0x1a7),'invalidApiKey':_0x32c951(0x18e)},'connectionStatus':{'disconnected':_0x32c951(0x18f),'connecting':_0x32c951(0x177),'connected':_0x32c951(0x1aa),'failed':_0x32c951(0x1a4),'retrying':_0x32c951(0x190)},'connectionError':{'missingApiKey':_0x32c951(0x1a2),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x32c951(0x191),'networkError':_0x32c951(0x195),'maxRetriesExceeded':_0x32c951(0x17f)}}},n=e;export{n as default};
1
+ const _0x4fdee5=_0x5481;function _0x5481(_0x236599,_0x5c01f5){const _0x28e80c=_0x28e8();return _0x5481=function(_0x5481a3,_0x4c5231){_0x5481a3=_0x5481a3-0x1ba;let _0x405b00=_0x28e80c[_0x5481a3];return _0x405b00;},_0x5481(_0x236599,_0x5c01f5);}(function(_0x57807e,_0x401411){const _0x611ede=_0x5481,_0x1689e1=_0x57807e();while(!![]){try{const _0x3b1956=parseInt(_0x611ede(0x1d9))/0x1+-parseInt(_0x611ede(0x1ba))/0x2+-parseInt(_0x611ede(0x1c5))/0x3+parseInt(_0x611ede(0x1cc))/0x4+parseInt(_0x611ede(0x1dc))/0x5+parseInt(_0x611ede(0x1de))/0x6*(parseInt(_0x611ede(0x1d0))/0x7)+-parseInt(_0x611ede(0x1cf))/0x8;if(_0x3b1956===_0x401411)break;else _0x1689e1['push'](_0x1689e1['shift']());}catch(_0x3ce8cb){_0x1689e1['push'](_0x1689e1['shift']());}}}(_0x28e8,0xa740c));function _0x28e8(){const _0x4a2adc=['MCP\x20Retrying...','MCP:\x20Invalid\x20API\x20Key','648694eyWXci','Univer\x20AI\x20Console','Invalid\x20configuration','Connecting...','Enable\x20Authentication','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Max\x20Retries','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','830736hbkauH','Click\x20to\x20connect\x20MCP','Connected','Server\x20Endpoint','What\x20is\x20API\x20Key?','Session\x20ID','MCP\x20Disconnected','1878492IJWpZd','MCP\x20Configuration','MCP:\x20Session\x20Occupied','15094328hMhpDI','9877kdvhDx','Connection\x20Failed','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','API\x20key\x20is\x20required','Retrying...','MCP\x20Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','Failed\x20to\x20save\x20configuration','Enter\x20your\x20API\x20key','1167691CwYwhY','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connecting...','5421420lELGrG','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1920skESet','Save\x20Configuration','API\x20key\x20is\x20required\x20to\x20connect'];_0x28e8=function(){return _0x4a2adc;};return _0x28e8();}const e={'mcpStatus':{'disconnected':_0x4fdee5(0x1cb),'connecting':_0x4fdee5(0x1db),'connected':_0x4fdee5(0x1c1),'failed':_0x4fdee5(0x1d5),'retrying':_0x4fdee5(0x1e1),'unknown':'MCP\x20Unknown\x20Status','missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x4fdee5(0x1e2),'sessionOccupied':_0x4fdee5(0x1ce),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x4fdee5(0x1c6),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4fdee5(0x1cd),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x4fdee5(0x1d8),'apiKeyHint':_0x4fdee5(0x1da),'enableAuth':_0x4fdee5(0x1be),'enableAuthHint':_0x4fdee5(0x1d6),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x4fdee5(0x1c8),'sessionId':_0x4fdee5(0x1ca),'maxRetries':_0x4fdee5(0x1c3),'save':_0x4fdee5(0x1df),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4fdee5(0x1dd),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x4fdee5(0x1d7),'apiApplyInfo':{'title':_0x4fdee5(0x1c9),'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':_0x4fdee5(0x1bb),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4fdee5(0x1d3),'apiKeyTooShort':_0x4fdee5(0x1c2),'invalidConfig':_0x4fdee5(0x1bc),'invalidApiKey':_0x4fdee5(0x1c0)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x4fdee5(0x1bd),'connected':_0x4fdee5(0x1c7),'failed':_0x4fdee5(0x1d1),'retrying':_0x4fdee5(0x1d4)},'connectionError':{'missingApiKey':_0x4fdee5(0x1e0),'invalidApiKey':_0x4fdee5(0x1bf),'sessionOccupied':_0x4fdee5(0x1d2),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x4fdee5(0x1c4)}}},n=e;export{n as default};