@univerjs-pro/mcp-ui 0.18.0 → 0.19.0

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 (53) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/sk-SK.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ja-JP.js +1 -1
  21. package/lib/es/locale/ko-KR.js +1 -1
  22. package/lib/es/locale/ru-RU.js +1 -1
  23. package/lib/es/locale/sk-SK.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/index.js +1 -1
  28. package/lib/locale/ca-ES.js +1 -1
  29. package/lib/locale/en-US.js +1 -1
  30. package/lib/locale/es-ES.js +1 -1
  31. package/lib/locale/fa-IR.js +1 -1
  32. package/lib/locale/fr-FR.js +1 -1
  33. package/lib/locale/ja-JP.js +1 -1
  34. package/lib/locale/ko-KR.js +1 -1
  35. package/lib/locale/ru-RU.js +1 -1
  36. package/lib/locale/sk-SK.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/index.js +1 -1
  41. package/lib/umd/locale/ca-ES.js +1 -1
  42. package/lib/umd/locale/en-US.js +1 -1
  43. package/lib/umd/locale/es-ES.js +1 -1
  44. package/lib/umd/locale/fa-IR.js +1 -1
  45. package/lib/umd/locale/fr-FR.js +1 -1
  46. package/lib/umd/locale/ja-JP.js +1 -1
  47. package/lib/umd/locale/ko-KR.js +1 -1
  48. package/lib/umd/locale/ru-RU.js +1 -1
  49. package/lib/umd/locale/sk-SK.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +9 -9
@@ -1 +1 @@
1
- function _0x4d35(){const _0x32bfa7=['1018394iYtjXF','Retrying...','Univer\x20AI\x20Console','MCP\x20Configuration','MCP\x20Unknown\x20Status','20tVlYIO','193833WhGFRx','MCP:\x20Network\x20Error','4007796lEgTvJ','1010588ALWKAv','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','9170631JeJLsq','Click\x20to\x20connect\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','29868040lsIOIr','MCP:\x20Unauthorized','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','20uSGDJP','Enable\x20Authentication','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20saved\x20successfully','Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','exports','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enter\x20your\x20API\x20key','86933ppFKoF','Max\x20Retries','API\x20key\x20is\x20required','Save\x20Configuration','Session\x20ID','Get\x20your\x20API\x20key\x20in\x20seconds','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','MCP\x20Disconnected','MCP\x20Retrying...','72UtQMmF','Invalid\x20configuration','MCP\x20Connection\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.','Failed\x20to\x20save\x20configuration','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded'];_0x4d35=function(){return _0x32bfa7;};return _0x4d35();}function _0x28f5(_0x419382,_0x208b9e){_0x419382=_0x419382-0xb8;const _0x4d35cf=_0x4d35();let _0x28f5c0=_0x4d35cf[_0x419382];return _0x28f5c0;}const _0x56c1c7=_0x28f5;(function(_0xcde248,_0x455108){const _0x1fff6e=_0x28f5,_0x4ce1b8=_0xcde248();while(!![]){try{const _0x570200=parseInt(_0x1fff6e(0xc3))/0x1+parseInt(_0x1fff6e(0xc8))/0x2*(-parseInt(_0x1fff6e(0xc9))/0x3)+-parseInt(_0x1fff6e(0xcc))/0x4*(parseInt(_0x1fff6e(0xd6))/0x5)+-parseInt(_0x1fff6e(0xcb))/0x6+-parseInt(_0x1fff6e(0xe1))/0x7*(parseInt(_0x1fff6e(0xba))/0x8)+-parseInt(_0x1fff6e(0xce))/0x9+parseInt(_0x1fff6e(0xd2))/0xa;if(_0x570200===_0x455108)break;else _0x4ce1b8['push'](_0x4ce1b8['shift']());}catch(_0x374945){_0x4ce1b8['push'](_0x4ce1b8['shift']());}}}(_0x4d35,0x863ac));const e={'mcpStatus':{'disconnected':_0x56c1c7(0xb8),'connecting':'MCP\x20Connecting...','connected':_0x56c1c7(0xdc),'failed':_0x56c1c7(0xbc),'retrying':_0x56c1c7(0xb9),'unknown':_0x56c1c7(0xc7),'unauthorized':_0x56c1c7(0xd3),'sessionOccupied':_0x56c1c7(0xd8),'networkError':_0x56c1c7(0xca),'maxRetriesExceeded':_0x56c1c7(0xc2),'clickToConnect':_0x56c1c7(0xcf),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x56c1c7(0xc6),'description':_0x56c1c7(0xe7),'apiKey':_0x56c1c7(0xe8),'apiKeyPlaceholder':_0x56c1c7(0xe0),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x56c1c7(0xd7),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x56c1c7(0xc1),'mcpClientConfig':_0x56c1c7(0xc1),'configInstructions':_0x56c1c7(0xdf),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x56c1c7(0xc0),'configStep2':_0x56c1c7(0xd1),'configStep3':_0x56c1c7(0xcd),'sessionId':_0x56c1c7(0xe5),'sessionIdDescription':_0x56c1c7(0xd4),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x56c1c7(0xbf),'maxRetries':_0x56c1c7(0xe2),'save':_0x56c1c7(0xe4),'saving':'Saving...','note1':_0x56c1c7(0xd0),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x56c1c7(0xd9),'configError':_0x56c1c7(0xbe),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x56c1c7(0xbd),'univerAiLabel':_0x56c1c7(0xc5),'getStarted':_0x56c1c7(0xe6)},'validation':{'apiKeyRequired':_0x56c1c7(0xe3),'apiKeyTooShort':_0x56c1c7(0xdd),'invalidConfig':_0x56c1c7(0xbb),'invalidApiKey':_0x56c1c7(0xd5)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x56c1c7(0xda),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x56c1c7(0xc4)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x56c1c7(0xdb),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0x56c1c7(0xde)]=e;
1
+ const _0x402f1d=_0x4b08;(function(_0x3ff9cf,_0x2e1a7e){const _0x4185c4=_0x4b08,_0x16603a=_0x3ff9cf();while(!![]){try{const _0x1ebce7=parseInt(_0x4185c4(0x86))/0x1+parseInt(_0x4185c4(0x95))/0x2+parseInt(_0x4185c4(0x90))/0x3*(-parseInt(_0x4185c4(0x9b))/0x4)+parseInt(_0x4185c4(0x93))/0x5+parseInt(_0x4185c4(0x79))/0x6+-parseInt(_0x4185c4(0xa0))/0x7+parseInt(_0x4185c4(0x8b))/0x8*(-parseInt(_0x4185c4(0x9c))/0x9);if(_0x1ebce7===_0x2e1a7e)break;else _0x16603a['push'](_0x16603a['shift']());}catch(_0x18daaf){_0x16603a['push'](_0x16603a['shift']());}}}(_0x15da,0x6feea));function _0x4b08(_0x5b17e2,_0x186270){_0x5b17e2=_0x5b17e2-0x75;const _0x15daee=_0x15da();let _0x4b0896=_0x15daee[_0x5b17e2];return _0x4b0896;}const e={'mcpStatus':{'disconnected':_0x402f1d(0x7f),'connecting':_0x402f1d(0x78),'connected':_0x402f1d(0x9d),'failed':_0x402f1d(0x8e),'retrying':_0x402f1d(0x7a),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x402f1d(0x7b),'networkError':_0x402f1d(0x84),'maxRetriesExceeded':_0x402f1d(0x92),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x402f1d(0x75)},'mcpConfig':{'title':_0x402f1d(0x9f),'description':_0x402f1d(0xa4),'apiKey':_0x402f1d(0x7e),'apiKeyPlaceholder':_0x402f1d(0xa5),'apiKeyHint':_0x402f1d(0x81),'enableAuth':_0x402f1d(0xa1),'enableAuthHint':_0x402f1d(0x8a),'connectionInfo':_0x402f1d(0x87),'mcpClientConfig':_0x402f1d(0x87),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x402f1d(0xa2),'configStep1':_0x402f1d(0x9a),'configStep2':_0x402f1d(0x85),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x402f1d(0x94),'sessionIdDescription':_0x402f1d(0x99),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x402f1d(0x76),'maxRetries':_0x402f1d(0x7d),'save':_0x402f1d(0x98),'saving':_0x402f1d(0x8f),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x402f1d(0xa3),'configSaved':_0x402f1d(0x7c),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x402f1d(0x88),'description':_0x402f1d(0x9e),'univerAiLabel':_0x402f1d(0x8d),'getStarted':_0x402f1d(0x96)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x402f1d(0x77),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x402f1d(0x91),'connecting':_0x402f1d(0x8c),'connected':_0x402f1d(0x97),'failed':'Connection\x20Failed','retrying':_0x402f1d(0x80)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x402f1d(0x82),'networkError':_0x402f1d(0x83),'maxRetriesExceeded':_0x402f1d(0x89)}}};module['exports']=e;function _0x15da(){const _0x1e79e0=['Get\x20your\x20API\x20key\x20in\x20seconds','Connected','Save\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Copy\x20the\x20JSON\x20configuration\x20below','292dtUXHE','4365PRvavx','MCP\x20Connected','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\x20Configuration','997010ufqXoC','Enable\x20Authentication','Configuration\x20Steps:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enter\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','Configuration\x20Parameters:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connecting...','2614518gmvzSo','MCP\x20Retrying...','MCP:\x20Session\x20ID\x20Occupied','Configuration\x20saved\x20successfully','Max\x20Retries','API\x20Key','MCP\x20Disconnected','Retrying...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','690525scBZPw','MCP\x20Client\x20Configuration','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','7392mlLrCY','Connecting...','Univer\x20AI\x20Console','MCP\x20Connection\x20Failed','Saving...','26430AhqzFB','Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','2350300sTcUOo','Session\x20ID','191672hrAwps'];_0x15da=function(){return _0x1e79e0;};return _0x15da();}
@@ -1 +1 @@
1
- const _0x5c9c33=_0x4a16;function _0xe56f(){const _0x5040b8=['Povoliť\x20overenie','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','3818214yLOsuO','Pripája\x20sa...','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','Ukladá\x20sa...','Maximálny\x20počet\x20pokusov','3990996GrXmAo','Kliknite\x20na\x20konfiguráciu\x20MCP','MCP\x20neznámy\x20stav','MCP:\x20Prekročený\x20počet\x20pokusov','849TZCLLa','MCP:\x20Sieťová\x20chyba','Parametre\x20konfigurácie:','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','MCP\x20pripojené','3FIVmJL','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','exports','Konfigurácia\x20bola\x20úspešne\x20uložená','Kliknite\x20na\x20pripojenie\x20MCP','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','Konfigurácia\x20klienta\x20MCP','API\x20kľúč\x20je\x20povinný','Pripojenie\x20MCP\x20zlyhalo','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','10HfZTNs','5uOPqOG','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','Konfigurácia\x20MCP','176ZKqbhk','MCP:\x20Neautorizované','API\x20kľúč','8201752jZPgKz','Kroky\x20konfigurácie:','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','10684Qidvda','API\x20kľúč\x20s\x20prefixom\x20Bearer.','Univer\x20AI\x20konzola','Čo\x20je\x20API\x20kľúč?','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','Skúša\x20sa\x20znova...','277193PsSfks','48244FMEBgh','24rutIjt','ID\x20relácie','Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','MCP:\x20ID\x20relácie\x20je\x20obsadené','Pripojenie\x20zlyhalo','6011753apUDSH','MCP\x20sa\x20pripája...','Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','Zadajte\x20svoj\x20API\x20kľúč','Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd'];_0xe56f=function(){return _0x5040b8;};return _0xe56f();}(function(_0x1bf5fa,_0x9569a5){const _0x4a9f94=_0x4a16,_0x3ea672=_0x1bf5fa();while(!![]){try{const _0x2c481e=parseInt(_0x4a9f94(0x1dd))/0x1*(-parseInt(_0x4a9f94(0x1c2))/0x2)+parseInt(_0x4a9f94(0x1d8))/0x3*(parseInt(_0x4a9f94(0x1bb))/0x4)+-parseInt(_0x4a9f94(0x1ea))/0x5*(parseInt(_0x4a9f94(0x1cf))/0x6)+-parseInt(_0x4a9f94(0x1c1))/0x7*(parseInt(_0x4a9f94(0x1b5))/0x8)+-parseInt(_0x4a9f94(0x1d4))/0x9+parseInt(_0x4a9f94(0x1e9))/0xa*(parseInt(_0x4a9f94(0x1c8))/0xb)+parseInt(_0x4a9f94(0x1c3))/0xc*(parseInt(_0x4a9f94(0x1b8))/0xd);if(_0x2c481e===_0x9569a5)break;else _0x3ea672['push'](_0x3ea672['shift']());}catch(_0x4e84b4){_0x3ea672['push'](_0x3ea672['shift']());}}}(_0xe56f,0x840c3));function _0x4a16(_0x556af3,_0x1520e8){_0x556af3=_0x556af3-0x1b4;const _0xe56f58=_0xe56f();let _0x4a16f5=_0xe56f58[_0x556af3];return _0x4a16f5;}const e={'mcpStatus':{'disconnected':'MCP\x20odpojené','connecting':_0x5c9c33(0x1c9),'connected':_0x5c9c33(0x1dc),'failed':_0x5c9c33(0x1e7),'retrying':'MCP\x20opakuje\x20pokus...','unknown':_0x5c9c33(0x1d6),'unauthorized':_0x5c9c33(0x1b6),'sessionOccupied':_0x5c9c33(0x1c6),'networkError':_0x5c9c33(0x1d9),'maxRetriesExceeded':_0x5c9c33(0x1d7),'clickToConnect':_0x5c9c33(0x1e1),'clickToConfigure':_0x5c9c33(0x1d5)},'mcpConfig':{'title':_0x5c9c33(0x1b4),'description':_0x5c9c33(0x1e4),'apiKey':_0x5c9c33(0x1b7),'apiKeyPlaceholder':_0x5c9c33(0x1cb),'apiKeyHint':_0x5c9c33(0x1de),'enableAuth':_0x5c9c33(0x1cd),'enableAuthHint':_0x5c9c33(0x1ce),'connectionInfo':_0x5c9c33(0x1e5),'mcpClientConfig':_0x5c9c33(0x1e5),'configInstructions':'Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','configStepTitle':_0x5c9c33(0x1b9),'configStep1':_0x5c9c33(0x1ca),'configStep2':'Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','configStep3':'Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','sessionId':_0x5c9c33(0x1c4),'sessionIdDescription':_0x5c9c33(0x1c5),'authorizationDescription':_0x5c9c33(0x1bc),'configParameters':_0x5c9c33(0x1da),'maxRetries':_0x5c9c33(0x1d3),'save':'Uložiť\x20konfiguráciu','saving':_0x5c9c33(0x1d2),'note1':_0x5c9c33(0x1e2),'note2':_0x5c9c33(0x1e3),'configSaved':_0x5c9c33(0x1e0),'configError':_0x5c9c33(0x1bf),'apiApplyInfo':{'title':_0x5c9c33(0x1be),'description':'API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','univerAiLabel':_0x5c9c33(0x1bd),'getStarted':_0x5c9c33(0x1cc)},'validation':{'apiKeyRequired':_0x5c9c33(0x1e6),'apiKeyTooShort':'API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','invalidConfig':'Neplatná\x20konfigurácia','invalidApiKey':_0x5c9c33(0x1db)},'connectionStatus':{'disconnected':'Odpojené','connecting':_0x5c9c33(0x1d0),'connected':'Pripojené','failed':_0x5c9c33(0x1c7),'retrying':_0x5c9c33(0x1c0)},'connectionError':{'unauthorized':_0x5c9c33(0x1e8),'sessionOccupied':_0x5c9c33(0x1d1),'networkError':_0x5c9c33(0x1eb),'maxRetriesExceeded':_0x5c9c33(0x1ba)}}};module[_0x5c9c33(0x1df)]=e;
1
+ const _0x2ed11f=_0x3909;(function(_0x2a7a9a,_0x287218){const _0x425ac8=_0x3909,_0x501a22=_0x2a7a9a();while(!![]){try{const _0x3c563b=parseInt(_0x425ac8(0x101))/0x1+-parseInt(_0x425ac8(0xe4))/0x2*(-parseInt(_0x425ac8(0x100))/0x3)+-parseInt(_0x425ac8(0xed))/0x4*(-parseInt(_0x425ac8(0xeb))/0x5)+-parseInt(_0x425ac8(0x106))/0x6+-parseInt(_0x425ac8(0xf1))/0x7+parseInt(_0x425ac8(0xe8))/0x8+parseInt(_0x425ac8(0x10a))/0x9*(-parseInt(_0x425ac8(0xf5))/0xa);if(_0x3c563b===_0x287218)break;else _0x501a22['push'](_0x501a22['shift']());}catch(_0xdb1df0){_0x501a22['push'](_0x501a22['shift']());}}}(_0x4880,0xa1160));const e={'mcpStatus':{'disconnected':'MCP\x20odpojené','connecting':'MCP\x20sa\x20pripája...','connected':_0x2ed11f(0xde),'failed':_0x2ed11f(0xf8),'retrying':'MCP\x20opakuje\x20pokus...','unknown':_0x2ed11f(0xef),'unauthorized':_0x2ed11f(0xdf),'sessionOccupied':_0x2ed11f(0xda),'networkError':_0x2ed11f(0xf7),'maxRetriesExceeded':_0x2ed11f(0xe7),'clickToConnect':_0x2ed11f(0x107),'clickToConfigure':_0x2ed11f(0x103)},'mcpConfig':{'title':'Konfigurácia\x20MCP','description':_0x2ed11f(0xe3),'apiKey':_0x2ed11f(0xdb),'apiKeyPlaceholder':_0x2ed11f(0xe2),'apiKeyHint':_0x2ed11f(0xe0),'enableAuth':_0x2ed11f(0xf9),'enableAuthHint':_0x2ed11f(0xe6),'connectionInfo':'Konfigurácia\x20klienta\x20MCP','mcpClientConfig':_0x2ed11f(0xe9),'configInstructions':_0x2ed11f(0xfa),'configStepTitle':_0x2ed11f(0xfc),'configStep1':'Skopírujte\x20nižšie\x20uvedenú\x20konfiguráciu\x20JSON','configStep2':_0x2ed11f(0xf3),'configStep3':_0x2ed11f(0x108),'sessionId':_0x2ed11f(0xe5),'sessionIdDescription':_0x2ed11f(0x10e),'authorizationDescription':_0x2ed11f(0x102),'configParameters':_0x2ed11f(0xd9),'maxRetries':_0x2ed11f(0xea),'save':_0x2ed11f(0x10d),'saving':'Ukladá\x20sa...','note1':_0x2ed11f(0xdc),'note2':_0x2ed11f(0xf6),'configSaved':_0x2ed11f(0xec),'configError':_0x2ed11f(0x10b),'apiApplyInfo':{'title':_0x2ed11f(0xfd),'description':_0x2ed11f(0xf4),'univerAiLabel':'Univer\x20AI\x20konzola','getStarted':'Získajte\x20svoj\x20API\x20kľúč\x20za\x20pár\x20sekúnd'},'validation':{'apiKeyRequired':_0x2ed11f(0xee),'apiKeyTooShort':_0x2ed11f(0x104),'invalidConfig':_0x2ed11f(0x105),'invalidApiKey':_0x2ed11f(0xfb)},'connectionStatus':{'disconnected':_0x2ed11f(0x10c),'connecting':_0x2ed11f(0xf0),'connected':_0x2ed11f(0x110),'failed':_0x2ed11f(0x10f),'retrying':_0x2ed11f(0xfe)},'connectionError':{'unauthorized':_0x2ed11f(0xe1),'sessionOccupied':_0x2ed11f(0xdd),'networkError':_0x2ed11f(0x109),'maxRetriesExceeded':_0x2ed11f(0xff)}}};module[_0x2ed11f(0xf2)]=e;function _0x3909(_0x48ddb8,_0x371af5){_0x48ddb8=_0x48ddb8-0xd9;const _0x488010=_0x4880();let _0x390963=_0x488010[_0x48ddb8];return _0x390963;}function _0x4880(){const _0x49a3b8=['API\x20kľúč\x20je\x20povinný','MCP\x20neznámy\x20stav','Pripája\x20sa...','933548FeZCwh','exports','Pridajte\x20konfiguráciu\x20do\x20súboru\x20nastavení\x20klienta\x20MCP','API\x20kľúč\x20vás\x20pripojí\x20k\x20serveru\x20Univer\x20MCP\x20a\x20umožní\x20používať\x20AI\x20pri\x20práci\x20s\x20tabuľkami.\x20Získajte\x20svoj\x20API\x20kľúč\x20v\x20našej\x20konzole.','10yJJZoc','Váš\x20API\x20kľúč\x20je\x20bezpečne\x20uložený\x20v\x20lokálnom\x20úložisku','MCP:\x20Sieťová\x20chyba','Pripojenie\x20MCP\x20zlyhalo','Povoliť\x20overenie','Pridajte\x20nasledujúcu\x20konfiguráciu\x20do\x20nastavení\x20klienta\x20MCP:','Neplatný\x20API\x20kľúč,\x20skontrolujte,\x20či\x20je\x20správny','Kroky\x20konfigurácie:','Čo\x20je\x20API\x20kľúč?','Skúša\x20sa\x20znova...','Maximálny\x20počet\x20pokusov\x20bol\x20prekročený.\x20Skúste\x20neskôr','7863eBTswK','1079273lqvcmk','API\x20kľúč\x20s\x20prefixom\x20Bearer.','Kliknite\x20na\x20konfiguráciu\x20MCP','API\x20kľúč\x20musí\x20mať\x20aspoň\x2010\x20znakov','Neplatná\x20konfigurácia','6556134ClFTaF','Kliknite\x20na\x20pripojenie\x20MCP','Reštartujte\x20klienta\x20MCP,\x20aby\x20sa\x20konfigurácia\x20použila','Chyba\x20sieťového\x20pripojenia.\x20Skontrolujte\x20svoje\x20internetové\x20pripojenie','19393146FoWVnr','Nepodarilo\x20sa\x20uložiť\x20konfiguráciu','Odpojené','Uložiť\x20konfiguráciu','Jedinečný\x20identifikátor\x20relácie.\x20Ak\x20máte\x20otvorených\x20viac\x20inštancií\x20Univer,\x20každá\x20inštancia\x20musí\x20používať\x20iné\x20session_id,\x20aby\x20sa\x20predišlo\x20konfliktom\x20pripojenia.','Pripojenie\x20zlyhalo','Pripojené','Parametre\x20konfigurácie:','MCP:\x20ID\x20relácie\x20je\x20obsadené','API\x20kľúč','Zmeny\x20konfigurácie\x20sa\x20prejavia\x20okamžite','ID\x20relácie\x20je\x20momentálne\x20obsadené,\x20skúste\x20neskôr','MCP\x20pripojené','MCP:\x20Neautorizované','Váš\x20API\x20kľúč\x20sa\x20uloží\x20lokálne\x20v\x20tomto\x20prehliadači','Overenie\x20zlyhalo,\x20skontrolujte\x20svoj\x20API\x20kľúč','Zadajte\x20svoj\x20API\x20kľúč','Nakonfigurujte\x20MCP\x20na\x20používanie\x20AI\x20pri\x20práci\x20s\x20tabuľkami','770wFgijC','ID\x20relácie','Povoliť\x20overenie\x20pre\x20bezpečné\x20pripojenia','MCP:\x20Prekročený\x20počet\x20pokusov','8461656YMkyXB','Konfigurácia\x20klienta\x20MCP','Maximálny\x20počet\x20pokusov','10RLoppy','Konfigurácia\x20bola\x20úspešne\x20uložená','1789180nvPjvt'];_0x4880=function(){return _0x49a3b8;};return _0x4880();}
@@ -1 +1 @@
1
- const _0x5c0353=_0x1919;(function(_0x481307,_0x526b97){const _0xe21bea=_0x1919,_0x3fa07f=_0x481307();while(!![]){try{const _0x11eb93=-parseInt(_0xe21bea(0xf2))/0x1*(parseInt(_0xe21bea(0x117))/0x2)+parseInt(_0xe21bea(0x11e))/0x3+parseInt(_0xe21bea(0x107))/0x4+-parseInt(_0xe21bea(0x104))/0x5*(parseInt(_0xe21bea(0x110))/0x6)+parseInt(_0xe21bea(0x11f))/0x7*(-parseInt(_0xe21bea(0xfa))/0x8)+-parseInt(_0xe21bea(0x113))/0x9*(-parseInt(_0xe21bea(0x106))/0xa)+parseInt(_0xe21bea(0x10a))/0xb;if(_0x11eb93===_0x526b97)break;else _0x3fa07f['push'](_0x3fa07f['shift']());}catch(_0x4d275b){_0x3fa07f['push'](_0x3fa07f['shift']());}}}(_0x19fe,0xa3b1d));const e={'mcpStatus':{'disconnected':_0x5c0353(0x111),'connecting':_0x5c0353(0x100),'connected':_0x5c0353(0xfd),'failed':_0x5c0353(0x122),'retrying':_0x5c0353(0x124),'unknown':_0x5c0353(0x10d),'unauthorized':_0x5c0353(0x10b),'sessionOccupied':'MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','networkError':_0x5c0353(0x119),'maxRetriesExceeded':_0x5c0353(0x103),'clickToConnect':_0x5c0353(0x11d),'clickToConfigure':_0x5c0353(0x108)},'mcpConfig':{'title':'Cấu\x20hình\x20MCP','description':'Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','apiKey':'Khóa\x20API','apiKeyPlaceholder':_0x5c0353(0x118),'apiKeyHint':_0x5c0353(0xf7),'enableAuth':'Bật\x20xác\x20thực','enableAuthHint':'Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','connectionInfo':'Cấu\x20hình\x20máy\x20khách\x20MCP','mcpClientConfig':_0x5c0353(0x105),'configInstructions':_0x5c0353(0xff),'configStepTitle':'Các\x20bước\x20cấu\x20hình:','configStep1':_0x5c0353(0x10c),'configStep2':'Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','configStep3':_0x5c0353(0x102),'sessionId':_0x5c0353(0x109),'sessionIdDescription':_0x5c0353(0xf4),'authorizationDescription':_0x5c0353(0x11c),'configParameters':'Tham\x20số\x20cấu\x20hình:','maxRetries':_0x5c0353(0x123),'save':_0x5c0353(0x11a),'saving':_0x5c0353(0x116),'note1':_0x5c0353(0x10e),'note2':'Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','configSaved':_0x5c0353(0xf5),'configError':_0x5c0353(0xfe),'apiApplyInfo':{'title':_0x5c0353(0xf1),'description':_0x5c0353(0xfb),'univerAiLabel':_0x5c0353(0x101),'getStarted':_0x5c0353(0x120)},'validation':{'apiKeyRequired':'Yêu\x20cầu\x20khóa\x20API','apiKeyTooShort':_0x5c0353(0x112),'invalidConfig':'Cấu\x20hình\x20không\x20hợp\x20lệ','invalidApiKey':_0x5c0353(0x121)},'connectionStatus':{'disconnected':_0x5c0353(0xfc),'connecting':_0x5c0353(0x115),'connected':_0x5c0353(0xf8),'failed':_0x5c0353(0xf6),'retrying':'Đang\x20thử\x20lại...'},'connectionError':{'unauthorized':_0x5c0353(0xf3),'sessionOccupied':_0x5c0353(0xf9),'networkError':_0x5c0353(0x11b),'maxRetriesExceeded':_0x5c0353(0x10f)}}};function _0x19fe(){const _0x33e5e9=['2460VkheEG','345116vwPxAK','Nhấp\x20để\x20cấu\x20hình\x20MCP','ID\x20phiên','14777774LxlSMH','MCP:\x20Không\x20được\x20phép','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau','3331392ZaPjpb','MCP\x20Đã\x20ngắt\x20kết\x20nối','Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','17667nTJJBT','exports','Đang\x20kết\x20nối...','Đang\x20lưu...','262BqcqMJ','Nhập\x20khóa\x20API\x20của\x20bạn','MCP:\x20Lỗi\x20mạng','Lưu\x20cấu\x20hình','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Nhấp\x20để\x20kết\x20nối\x20MCP','1757799pFnmTr','7tsHrPg','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','MCP\x20Kết\x20nối\x20thất\x20bại','Số\x20lần\x20thử\x20lại\x20tối\x20đa','MCP\x20Đang\x20thử\x20lại...','Khóa\x20API\x20là\x20gì?','9067zvmKTG','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Kết\x20nối\x20thất\x20bại','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Đã\x20kết\x20nối','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','680336BJSILQ','Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','Đã\x20ngắt\x20kết\x20nối','MCP\x20Đã\x20kết\x20nối','Lưu\x20cấu\x20hình\x20thất\x20bại','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','MCP\x20Đang\x20kết\x20nối...','Bảng\x20điều\x20khiển\x20Univer\x20AI','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','5YKBLfd','Cấu\x20hình\x20máy\x20khách\x20MCP'];_0x19fe=function(){return _0x33e5e9;};return _0x19fe();}function _0x1919(_0x26a464,_0x32bc25){_0x26a464=_0x26a464-0xf1;const _0x19fef8=_0x19fe();let _0x191983=_0x19fef8[_0x26a464];return _0x191983;}module[_0x5c0353(0x114)]=e;
1
+ const _0x45e58b=_0x4ede;(function(_0x2d139f,_0xd82db7){const _0x14c0fb=_0x4ede,_0xe59066=_0x2d139f();while(!![]){try{const _0x10c814=parseInt(_0x14c0fb(0x1df))/0x1*(parseInt(_0x14c0fb(0x1ca))/0x2)+-parseInt(_0x14c0fb(0x1b1))/0x3*(-parseInt(_0x14c0fb(0x1b3))/0x4)+-parseInt(_0x14c0fb(0x1c5))/0x5*(-parseInt(_0x14c0fb(0x1bf))/0x6)+-parseInt(_0x14c0fb(0x1d6))/0x7*(-parseInt(_0x14c0fb(0x1bc))/0x8)+parseInt(_0x14c0fb(0x1e9))/0x9+-parseInt(_0x14c0fb(0x1c6))/0xa+-parseInt(_0x14c0fb(0x1b2))/0xb;if(_0x10c814===_0xd82db7)break;else _0xe59066['push'](_0xe59066['shift']());}catch(_0x4c9c33){_0xe59066['push'](_0xe59066['shift']());}}}(_0x62c0,0x83a55));const e={'mcpStatus':{'disconnected':_0x45e58b(0x1d8),'connecting':_0x45e58b(0x1c4),'connected':_0x45e58b(0x1d7),'failed':_0x45e58b(0x1c3),'retrying':_0x45e58b(0x1e1),'unknown':_0x45e58b(0x1e2),'unauthorized':_0x45e58b(0x1d2),'sessionOccupied':_0x45e58b(0x1e4),'networkError':_0x45e58b(0x1cc),'maxRetriesExceeded':_0x45e58b(0x1b4),'clickToConnect':_0x45e58b(0x1d4),'clickToConfigure':_0x45e58b(0x1db)},'mcpConfig':{'title':_0x45e58b(0x1c0),'description':_0x45e58b(0x1b9),'apiKey':_0x45e58b(0x1bd),'apiKeyPlaceholder':_0x45e58b(0x1cf),'apiKeyHint':_0x45e58b(0x1dc),'enableAuth':_0x45e58b(0x1cb),'enableAuthHint':'Bật\x20xác\x20thực\x20cho\x20các\x20kết\x20nối\x20an\x20toàn','connectionInfo':'Cấu\x20hình\x20máy\x20khách\x20MCP','mcpClientConfig':_0x45e58b(0x1c8),'configInstructions':_0x45e58b(0x1e8),'configStepTitle':_0x45e58b(0x1c9),'configStep1':_0x45e58b(0x1de),'configStep2':_0x45e58b(0x1e0),'configStep3':_0x45e58b(0x1c7),'sessionId':'ID\x20phiên','sessionIdDescription':_0x45e58b(0x1e3),'authorizationDescription':_0x45e58b(0x1da),'configParameters':_0x45e58b(0x1e5),'maxRetries':_0x45e58b(0x1c2),'save':'Lưu\x20cấu\x20hình','saving':_0x45e58b(0x1b7),'note1':_0x45e58b(0x1ba),'note2':_0x45e58b(0x1d1),'configSaved':_0x45e58b(0x1c1),'configError':_0x45e58b(0x1d5),'apiApplyInfo':{'title':'Khóa\x20API\x20là\x20gì?','description':_0x45e58b(0x1e7),'univerAiLabel':_0x45e58b(0x1d9),'getStarted':_0x45e58b(0x1b0)},'validation':{'apiKeyRequired':_0x45e58b(0x1ce),'apiKeyTooShort':'Khóa\x20API\x20phải\x20dài\x20ít\x20nhất\x2010\x20ký\x20tự','invalidConfig':_0x45e58b(0x1d0),'invalidApiKey':_0x45e58b(0x1cd)},'connectionStatus':{'disconnected':'Đã\x20ngắt\x20kết\x20nối','connecting':_0x45e58b(0x1b6),'connected':_0x45e58b(0x1dd),'failed':_0x45e58b(0x1b8),'retrying':_0x45e58b(0x1e6)},'connectionError':{'unauthorized':_0x45e58b(0x1b5),'sessionOccupied':_0x45e58b(0x1be),'networkError':_0x45e58b(0x1bb),'maxRetriesExceeded':'Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa.\x20Vui\x20lòng\x20thử\x20lại\x20sau'}}};function _0x62c0(){const _0x1f8279=['4798990IEZTvW','Khởi\x20động\x20lại\x20máy\x20khách\x20MCP\x20của\x20bạn\x20để\x20áp\x20dụng\x20cấu\x20hình','Cấu\x20hình\x20máy\x20khách\x20MCP','Các\x20bước\x20cấu\x20hình:','2zEgTFR','Bật\x20xác\x20thực','MCP:\x20Lỗi\x20mạng','Khóa\x20API\x20không\x20hợp\x20lệ,\x20vui\x20lòng\x20kiểm\x20tra\x20xem\x20khóa\x20có\x20chính\x20xác\x20không','Yêu\x20cầu\x20khóa\x20API','Nhập\x20khóa\x20API\x20của\x20bạn','Cấu\x20hình\x20không\x20hợp\x20lệ','Khóa\x20API\x20của\x20bạn\x20được\x20lưu\x20trữ\x20an\x20toàn\x20trong\x20bộ\x20nhớ\x20cục\x20bộ','MCP:\x20Không\x20được\x20phép','exports','Nhấp\x20để\x20kết\x20nối\x20MCP','Lưu\x20cấu\x20hình\x20thất\x20bại','2488885NlZKnF','MCP\x20Đã\x20kết\x20nối','MCP\x20Đã\x20ngắt\x20kết\x20nối','Bảng\x20điều\x20khiển\x20Univer\x20AI','Khóa\x20API\x20với\x20tiền\x20tố\x20Bearer.','Nhấp\x20để\x20cấu\x20hình\x20MCP','Khóa\x20API\x20của\x20bạn\x20sẽ\x20được\x20lưu\x20trữ\x20cục\x20bộ\x20trong\x20trình\x20duyệt\x20này','Đã\x20kết\x20nối','Sao\x20chép\x20cấu\x20hình\x20JSON\x20bên\x20dưới','142518BaQrKO','Thêm\x20cấu\x20hình\x20vào\x20tệp\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn','MCP\x20Đang\x20thử\x20lại...','MCP\x20Trạng\x20thái\x20không\x20xác\x20định','Định\x20danh\x20phiên\x20duy\x20nhất.\x20Nếu\x20bạn\x20mở\x20nhiều\x20phiên\x20bản\x20Univer,\x20mỗi\x20phiên\x20bản\x20phải\x20sử\x20dụng\x20một\x20session_id\x20khác\x20nhau\x20để\x20tránh\x20xung\x20đột\x20kết\x20nối.','MCP:\x20ID\x20phiên\x20đã\x20bị\x20chiếm\x20dụng','Tham\x20số\x20cấu\x20hình:','Đang\x20thử\x20lại...','Khóa\x20API\x20kết\x20nối\x20bạn\x20với\x20Máy\x20chủ\x20Univer\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính.\x20Nhận\x20khóa\x20API\x20của\x20bạn\x20từ\x20bảng\x20điều\x20khiển\x20của\x20chúng\x20tôi\x20để\x20bắt\x20đầu.','Thêm\x20cấu\x20hình\x20sau\x20vào\x20cài\x20đặt\x20máy\x20khách\x20MCP\x20của\x20bạn:','4478364WXLtxL','Nhận\x20khóa\x20API\x20của\x20bạn\x20trong\x20vài\x20giây','387138bAlsEH','12930313Vwcsdb','16ZOjdSu','MCP:\x20Vượt\x20quá\x20số\x20lần\x20thử\x20lại\x20tối\x20đa','Xác\x20thực\x20thất\x20bại,\x20vui\x20lòng\x20kiểm\x20tra\x20khóa\x20API\x20của\x20bạn','Đang\x20kết\x20nối...','Đang\x20lưu...','Kết\x20nối\x20thất\x20bại','Cấu\x20hình\x20MCP\x20để\x20sử\x20dụng\x20AI\x20cho\x20việc\x20vận\x20hành\x20bảng\x20tính','Thay\x20đổi\x20cấu\x20hình\x20sẽ\x20có\x20hiệu\x20lực\x20ngay\x20lập\x20tức','Lỗi\x20kết\x20nối\x20mạng.\x20Vui\x20lòng\x20kiểm\x20tra\x20kết\x20nối\x20internet\x20của\x20bạn','8eYEurQ','Khóa\x20API','Session-id\x20hiện\x20đang\x20bị\x20chiếm\x20dụng,\x20vui\x20lòng\x20thử\x20lại\x20sau','30vnPHtx','Cấu\x20hình\x20MCP','Cấu\x20hình\x20đã\x20được\x20lưu\x20thành\x20công','Số\x20lần\x20thử\x20lại\x20tối\x20đa','MCP\x20Kết\x20nối\x20thất\x20bại','MCP\x20Đang\x20kết\x20nối...','682750QOXNGv'];_0x62c0=function(){return _0x1f8279;};return _0x62c0();}function _0x4ede(_0x3bc04a,_0xe62a27){_0x3bc04a=_0x3bc04a-0x1b0;const _0x62c0fd=_0x62c0();let _0x4ede75=_0x62c0fd[_0x3bc04a];return _0x4ede75;}module[_0x45e58b(0x1d3)]=e;
@@ -1 +1 @@
1
- function _0x2c82(){const _0x1cfadc=['复制以下\x20JSON\x20配置','您的\x20API\x20密钥将在此浏览器中本地存储','exports','8EcPhKt','MCP\x20连接失败','点击连接\x20MCP','MCP:\x20未授权','MCP\x20客户端配置','1344417FMRejh','27oIEpWm','MCP:\x20会话\x20ID\x20已被占用','1741672pFOsPH','MCP\x20已连接','5394760goAhgO','2853290OrZWHa','638130siJSfi','MCP\x20已断开','权限验证失败,请检查您的\x20API\x20密钥','API\x20密钥不能为空','连接失败','什么是\x20API\x20密钥?','配置更改将立即生效','最大重试次数','网络连接错误,请检查您的网络连接','API\x20密钥无效,请检查密钥是否正确','已连接','36PjgirV','8219911krqmmA','配置保存失败','配置无效','配置保存成功','MCP:\x20超出最大重试次数','重连中...','1089845SEmkxx','点击配置\x20MCP','MCP\x20状态未知','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','MCP\x20配置','重启您的\x20MCP\x20客户端以使配置生效','会话\x20ID\x20已被占用,请稍后再试','启用身份验证','保存中...','16ZNEYaT','请输入您的\x20API\x20密钥','MCP\x20连接中...','MCP:\x20网络错误','MCP\x20重连中...','几秒钟内获取您的\x20API\x20密钥','Univer\x20AI\x20控制台','将以下配置添加到您的\x20MCP\x20客户端设置中:','启用身份验证以获得安全连接','连接中...','配置\x20MCP\x20使用\x20AI\x20操作电子表格'];_0x2c82=function(){return _0x1cfadc;};return _0x2c82();}const _0x131f47=_0x590b;function _0x590b(_0x2c2fec,_0xc23311){_0x2c2fec=_0x2c2fec-0xb0;const _0x2c8264=_0x2c82();let _0x590bd2=_0x2c8264[_0x2c2fec];return _0x590bd2;}(function(_0x57bf06,_0x2cd581){const _0x5865f0=_0x590b,_0x28dfa7=_0x57bf06();while(!![]){try{const _0x4cdc74=parseInt(_0x5865f0(0xc9))/0x1+parseInt(_0x5865f0(0xc5))/0x2+parseInt(_0x5865f0(0xc2))/0x3*(-parseInt(_0x5865f0(0xe4))/0x4)+parseInt(_0x5865f0(0xdb))/0x5*(-parseInt(_0x5865f0(0xd4))/0x6)+parseInt(_0x5865f0(0xd5))/0x7*(parseInt(_0x5865f0(0xbd))/0x8)+-parseInt(_0x5865f0(0xc3))/0x9*(-parseInt(_0x5865f0(0xc7))/0xa)+-parseInt(_0x5865f0(0xc8))/0xb;if(_0x4cdc74===_0x2cd581)break;else _0x28dfa7['push'](_0x28dfa7['shift']());}catch(_0x7ebe3b){_0x28dfa7['push'](_0x28dfa7['shift']());}}}(_0x2c82,0xe5f53));const e={'mcpStatus':{'disconnected':_0x131f47(0xca),'connecting':_0x131f47(0xb1),'connected':_0x131f47(0xc6),'failed':_0x131f47(0xbe),'retrying':_0x131f47(0xb3),'unknown':_0x131f47(0xdd),'unauthorized':_0x131f47(0xc0),'sessionOccupied':_0x131f47(0xc4),'networkError':_0x131f47(0xb2),'maxRetriesExceeded':_0x131f47(0xd9),'clickToConnect':_0x131f47(0xbf),'clickToConfigure':_0x131f47(0xdc)},'mcpConfig':{'title':_0x131f47(0xdf),'description':_0x131f47(0xb9),'apiKey':'API\x20密钥','apiKeyPlaceholder':_0x131f47(0xb0),'apiKeyHint':_0x131f47(0xbb),'enableAuth':_0x131f47(0xe2),'enableAuthHint':_0x131f47(0xb7),'connectionInfo':_0x131f47(0xc1),'mcpClientConfig':_0x131f47(0xc1),'configInstructions':_0x131f47(0xb6),'configStepTitle':'配置步骤:','configStep1':_0x131f47(0xba),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x131f47(0xe0),'sessionId':'会话ID','sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':_0x131f47(0xd0),'save':'保存配置','saving':_0x131f47(0xe3),'note1':_0x131f47(0xcf),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x131f47(0xd8),'configError':_0x131f47(0xd6),'apiApplyInfo':{'title':_0x131f47(0xce),'description':_0x131f47(0xde),'univerAiLabel':_0x131f47(0xb5),'getStarted':_0x131f47(0xb4)},'validation':{'apiKeyRequired':_0x131f47(0xcc),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x131f47(0xd7),'invalidApiKey':_0x131f47(0xd2)},'connectionStatus':{'disconnected':'未连接','connecting':_0x131f47(0xb8),'connected':_0x131f47(0xd3),'failed':_0x131f47(0xcd),'retrying':_0x131f47(0xda)},'connectionError':{'unauthorized':_0x131f47(0xcb),'sessionOccupied':_0x131f47(0xe1),'networkError':_0x131f47(0xd1),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};module[_0x131f47(0xbc)]=e;
1
+ const _0x53e24c=_0x3be5;(function(_0x46eb2c,_0x127465){const _0x37152d=_0x3be5,_0x5012ed=_0x46eb2c();while(!![]){try{const _0x512f75=-parseInt(_0x37152d(0x1ec))/0x1*(-parseInt(_0x37152d(0x1f6))/0x2)+parseInt(_0x37152d(0x1e6))/0x3*(-parseInt(_0x37152d(0x1ee))/0x4)+parseInt(_0x37152d(0x204))/0x5+-parseInt(_0x37152d(0x208))/0x6+parseInt(_0x37152d(0x1e5))/0x7*(-parseInt(_0x37152d(0x213))/0x8)+parseInt(_0x37152d(0x1fa))/0x9+parseInt(_0x37152d(0x211))/0xa;if(_0x512f75===_0x127465)break;else _0x5012ed['push'](_0x5012ed['shift']());}catch(_0x3c654e){_0x5012ed['push'](_0x5012ed['shift']());}}}(_0xbcfb,0xf1944));function _0xbcfb(){const _0x481895=['1444103fBvYhp','MCP\x20状态未知','1915336PmiAcQ','启用身份验证','重连中...','会话ID','API\x20密钥无效,请检查密钥是否正确','复制以下\x20JSON\x20配置','配置\x20MCP\x20使用\x20AI\x20操作电子表格','MCP:\x20会话\x20ID\x20已被占用','2XgeYKt','将配置添加到您的\x20MCP\x20客户端设置文件中','配置步骤:','MCP:\x20超出最大重试次数','13607973IicEpV','已连接','什么是\x20API\x20密钥?','exports','网络连接错误,请检查您的网络连接','MCP\x20连接失败','MCP\x20客户端配置','点击连接\x20MCP','重启您的\x20MCP\x20客户端以使配置生效','权限验证失败,请检查您的\x20API\x20密钥','1665645NEKOho','MCP\x20已断开','API\x20密钥长度至少需要\x2010\x20位','启用身份验证以获得安全连接','11305806sXwMJB','几秒钟内获取您的\x20API\x20密钥','请输入您的\x20API\x20密钥','MCP\x20重连中...','将以下配置添加到您的\x20MCP\x20客户端设置中:','MCP:\x20未授权','会话\x20ID\x20已被占用,请稍后再试','最大重试次数','点击配置\x20MCP','13244210ixbzbM','API\x20密钥','2552WszJJd','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','保存中...','API\x20密钥不能为空','您的\x20API\x20密钥将在此浏览器中本地存储','连接失败','保存配置','27671COpySR','3cmzlbk','配置无效','MCP\x20连接中...','Univer\x20AI\x20控制台','未连接','超出最大重试次数,请稍后再试'];_0xbcfb=function(){return _0x481895;};return _0xbcfb();}const e={'mcpStatus':{'disconnected':_0x53e24c(0x205),'connecting':_0x53e24c(0x1e8),'connected':'MCP\x20已连接','failed':_0x53e24c(0x1ff),'retrying':_0x53e24c(0x20b),'unknown':_0x53e24c(0x1ed),'unauthorized':_0x53e24c(0x20d),'sessionOccupied':_0x53e24c(0x1f5),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x53e24c(0x1f9),'clickToConnect':_0x53e24c(0x201),'clickToConfigure':_0x53e24c(0x210)},'mcpConfig':{'title':'MCP\x20配置','description':_0x53e24c(0x1f4),'apiKey':_0x53e24c(0x212),'apiKeyPlaceholder':_0x53e24c(0x20a),'apiKeyHint':_0x53e24c(0x1e2),'enableAuth':_0x53e24c(0x1ef),'enableAuthHint':_0x53e24c(0x207),'connectionInfo':_0x53e24c(0x200),'mcpClientConfig':_0x53e24c(0x200),'configInstructions':_0x53e24c(0x20c),'configStepTitle':_0x53e24c(0x1f8),'configStep1':_0x53e24c(0x1f3),'configStep2':_0x53e24c(0x1f7),'configStep3':_0x53e24c(0x202),'sessionId':_0x53e24c(0x1f1),'sessionIdDescription':_0x53e24c(0x214),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':'配置参数:','maxRetries':_0x53e24c(0x20f),'save':_0x53e24c(0x1e4),'saving':_0x53e24c(0x215),'note1':'配置更改将立即生效','note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':'配置保存失败','apiApplyInfo':{'title':_0x53e24c(0x1fc),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x53e24c(0x1e9),'getStarted':_0x53e24c(0x209)},'validation':{'apiKeyRequired':_0x53e24c(0x216),'apiKeyTooShort':_0x53e24c(0x206),'invalidConfig':_0x53e24c(0x1e7),'invalidApiKey':_0x53e24c(0x1f2)},'connectionStatus':{'disconnected':_0x53e24c(0x1ea),'connecting':'连接中...','connected':_0x53e24c(0x1fb),'failed':_0x53e24c(0x1e3),'retrying':_0x53e24c(0x1f0)},'connectionError':{'unauthorized':_0x53e24c(0x203),'sessionOccupied':_0x53e24c(0x20e),'networkError':_0x53e24c(0x1fe),'maxRetriesExceeded':_0x53e24c(0x1eb)}}};function _0x3be5(_0x1209dc,_0x151c84){_0x1209dc=_0x1209dc-0x1e2;const _0xbcfb82=_0xbcfb();let _0x3be52b=_0xbcfb82[_0x1209dc];return _0x3be52b;}module[_0x53e24c(0x1fd)]=e;
@@ -1 +1 @@
1
- const _0x172e8c=_0x1c49;(function(_0xc0a5b5,_0x37b2f6){const _0x5001aa=_0x1c49,_0x28923f=_0xc0a5b5();while(!![]){try{const _0x405488=parseInt(_0x5001aa(0x11d))/0x1*(-parseInt(_0x5001aa(0x136))/0x2)+parseInt(_0x5001aa(0x149))/0x3+-parseInt(_0x5001aa(0x13c))/0x4*(parseInt(_0x5001aa(0x121))/0x5)+parseInt(_0x5001aa(0x129))/0x6*(-parseInt(_0x5001aa(0x142))/0x7)+-parseInt(_0x5001aa(0x11f))/0x8*(parseInt(_0x5001aa(0x141))/0x9)+-parseInt(_0x5001aa(0x139))/0xa+-parseInt(_0x5001aa(0x126))/0xb*(-parseInt(_0x5001aa(0x144))/0xc);if(_0x405488===_0x37b2f6)break;else _0x28923f['push'](_0x28923f['shift']());}catch(_0x48d28e){_0x28923f['push'](_0x28923f['shift']());}}}(_0x27d6,0xec161));function _0x1c49(_0x557662,_0x1740db){_0x557662=_0x557662-0x11c;const _0x27d6e3=_0x27d6();let _0x1c49ee=_0x27d6e3[_0x557662];return _0x1c49ee;}const e={'mcpStatus':{'disconnected':_0x172e8c(0x147),'connecting':_0x172e8c(0x14b),'connected':_0x172e8c(0x123),'failed':_0x172e8c(0x12d),'retrying':_0x172e8c(0x13d),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x172e8c(0x124),'sessionOccupied':_0x172e8c(0x148),'networkError':_0x172e8c(0x132),'maxRetriesExceeded':_0x172e8c(0x146),'clickToConnect':_0x172e8c(0x122),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x172e8c(0x13a),'description':_0x172e8c(0x143),'apiKey':_0x172e8c(0x14e),'apiKeyPlaceholder':_0x172e8c(0x133),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x172e8c(0x14a),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x172e8c(0x131),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x172e8c(0x12c),'configStep2':_0x172e8c(0x11c),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x172e8c(0x11e),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x172e8c(0x134),'configParameters':_0x172e8c(0x14c),'maxRetries':_0x172e8c(0x13f),'save':_0x172e8c(0x127),'saving':_0x172e8c(0x137),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x172e8c(0x135),'configSaved':_0x172e8c(0x14f),'configError':_0x172e8c(0x12b),'apiApplyInfo':{'title':_0x172e8c(0x128),'description':_0x172e8c(0x120),'univerAiLabel':_0x172e8c(0x12e),'getStarted':_0x172e8c(0x138)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x172e8c(0x12f),'invalidConfig':_0x172e8c(0x145),'invalidApiKey':_0x172e8c(0x130)},'connectionStatus':{'disconnected':_0x172e8c(0x14d),'connecting':_0x172e8c(0x125),'connected':'Connected','failed':_0x172e8c(0x13b),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x172e8c(0x140),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x172e8c(0x12a)}}};function _0x27d6(){const _0x1c1090=['Connecting...','1474vUTzLW','Save\x20Configuration','What\x20is\x20API\x20Key?','6cYSYWA','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Failed\x20to\x20save\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connection\x20Failed','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Client\x20Configuration','MCP:\x20Network\x20Error','Enter\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','77334xDgLtm','Saving...','Get\x20your\x20API\x20key\x20in\x20seconds','16854830RJuHtp','MCP\x20Configuration','Connection\x20Failed','2863292hyCUgs','MCP\x20Retrying...','exports','Max\x20Retries','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','207LQSqqd','9546145YMdHWh','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','587196qjLeSf','Invalid\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Disconnected','MCP:\x20Session\x20ID\x20Occupied','884295FkkDpq','Enable\x20Authentication','MCP\x20Connecting...','Configuration\x20Parameters:','Disconnected','API\x20Key','Configuration\x20saved\x20successfully','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','33LRmCKZ','Session\x20ID','44488FGetmY','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','10MdKWgy','Click\x20to\x20connect\x20MCP','MCP\x20Connected','MCP:\x20Unauthorized'];_0x27d6=function(){return _0x1c1090;};return _0x27d6();}module[_0x172e8c(0x13e)]=e;
1
+ function _0x461c(_0x11dbc9,_0x23bec0){_0x11dbc9=_0x11dbc9-0x1b1;const _0x531a81=_0x531a();let _0x461c25=_0x531a81[_0x11dbc9];return _0x461c25;}const _0x4aa290=_0x461c;(function(_0x5f2865,_0xbddeb5){const _0xeaff78=_0x461c,_0x47a2ef=_0x5f2865();while(!![]){try{const _0x5d0731=-parseInt(_0xeaff78(0x1cf))/0x1*(parseInt(_0xeaff78(0x1b3))/0x2)+-parseInt(_0xeaff78(0x1bb))/0x3+-parseInt(_0xeaff78(0x1d1))/0x4+-parseInt(_0xeaff78(0x1c2))/0x5+parseInt(_0xeaff78(0x1b5))/0x6*(parseInt(_0xeaff78(0x1cc))/0x7)+-parseInt(_0xeaff78(0x1ba))/0x8*(parseInt(_0xeaff78(0x1c6))/0x9)+parseInt(_0xeaff78(0x1d3))/0xa;if(_0x5d0731===_0xbddeb5)break;else _0x47a2ef['push'](_0x47a2ef['shift']());}catch(_0x5431ab){_0x47a2ef['push'](_0x47a2ef['shift']());}}}(_0x531a,0x96b16));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x4aa290(0x1d8),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4aa290(0x1c9),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4aa290(0x1c3),'description':_0x4aa290(0x1d0),'apiKey':_0x4aa290(0x1b6),'apiKeyPlaceholder':_0x4aa290(0x1ce),'apiKeyHint':_0x4aa290(0x1c8),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4aa290(0x1c7),'connectionInfo':_0x4aa290(0x1d9),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x4aa290(0x1c0),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x4aa290(0x1b4),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x4aa290(0x1d2),'sessionIdDescription':_0x4aa290(0x1d4),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4aa290(0x1cb),'maxRetries':_0x4aa290(0x1bc),'save':_0x4aa290(0x1b7),'saving':'Saving...','note1':_0x4aa290(0x1bf),'note2':_0x4aa290(0x1c5),'configSaved':_0x4aa290(0x1d5),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x4aa290(0x1c1),'getStarted':_0x4aa290(0x1b1)},'validation':{'apiKeyRequired':_0x4aa290(0x1be),'apiKeyTooShort':_0x4aa290(0x1c4),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x4aa290(0x1cd)},'connectionStatus':{'disconnected':_0x4aa290(0x1d7),'connecting':_0x4aa290(0x1ca),'connected':_0x4aa290(0x1b8),'failed':'Connection\x20Failed','retrying':_0x4aa290(0x1bd)},'connectionError':{'unauthorized':_0x4aa290(0x1d6),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x4aa290(0x1b9)}}};module[_0x4aa290(0x1b2)]=e;function _0x531a(){const _0x2ec59d=['Configuration\x20Steps:','Univer\x20AI\x20Console','1279035nKRLfR','MCP\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','10719xTNwKM','Enable\x20authentication\x20for\x20secure\x20connections','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Max\x20Retries\x20Exceeded','Connecting...','Configuration\x20Parameters:','3172393nrUQFK','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enter\x20your\x20API\x20key','1uEvpoi','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','3072088LkOwYy','Session\x20ID','28782790rVZjFY','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20saved\x20successfully','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Disconnected','MCP\x20Connected','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','exports','2168272VLnyrm','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','12YQoFOY','API\x20Key','Save\x20Configuration','Connected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','5080HcMSPr','909567peqdEm','Max\x20Retries','Retrying...','API\x20key\x20is\x20required','Configuration\x20changes\x20will\x20take\x20effect\x20immediately'];_0x531a=function(){return _0x2ec59d;};return _0x531a();}
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1cd625=_0x2936;(function(_0x4582e7,_0x15ecbf){const _0x39bc67=_0x2936,_0x5d2600=_0x4582e7();while(!![]){try{const _0xf97a5f=parseInt(_0x39bc67(0x213))/0x1+parseInt(_0x39bc67(0x2b9))/0x2*(-parseInt(_0x39bc67(0x1e6))/0x3)+-parseInt(_0x39bc67(0x25a))/0x4+-parseInt(_0x39bc67(0x21c))/0x5+-parseInt(_0x39bc67(0x24d))/0x6+-parseInt(_0x39bc67(0x23b))/0x7*(-parseInt(_0x39bc67(0x24e))/0x8)+parseInt(_0x39bc67(0x26d))/0x9*(parseInt(_0x39bc67(0x289))/0xa);if(_0xf97a5f===_0x15ecbf)break;else _0x5d2600['push'](_0x5d2600['shift']());}catch(_0x4dd733){_0x5d2600['push'](_0x5d2600['shift']());}}}(_0x401f,0x9e656));import{CommandType as _0x51acc,DependentOn as _0x177445,Disposable as _0x22b46c,ICommandService as _0x80a00c,IConfigService as _0x1394fc,ILocalStorageService as _0x2994a8,ILogService as _0xdcc11c,Inject as _0x33a2db,Injector as _0x2a6ad2,LocaleService as _0x33ba30,Plugin as _0x1590a1,merge as _0x3995b0}from'@univerjs/core';import{MCPConnectionController as _0x48fbcb,MCPConnectionError as _0x10e4ac,MCPConnectionStatus as _0x4bd71b,MCP_PLUGIN_CONFIG_KEY as _0x32eb5e,UniverMCPPlugin as _0x4362ff}from'@univerjs-pro/mcp';import{Button as _0x41630d,Input as _0x3b1f10,MessageType as _0x559393,Tooltip as _0x1b9f41,clsx as _0x16e411}from'@univerjs/design';import{BuiltInUIPart as _0x136998,ComponentManager as _0x5cee40,IDialogService as _0x34b195,IMenuManagerService as _0x1fb40c,IMessageService as _0xd34a62,IUIPartsService as _0x3b943c,MenuItemType as _0x57509d,RibbonStartGroup as _0x399ff1,connectInjector as _0x502440,useDependency as _0x5c7789,useObservable as _0x5ae267}from'@univerjs/ui';import{BehaviorSubject as _0x34a1cf}from'rxjs';import{CheckMarkIcon as _0x3098ad,CloseIcon as _0x3213cd,HelpIcon as _0x2256a3,OffLineIcon as _0x2a313c,OnLineIcon as _0x22e2f7}from'@univerjs/icons';import{useCallback as _0x515ef7,useState as _0x49f8ed}from'react';import{jsx as _0x2a2e78,jsxs as _0x537292}from'react/jsx-runtime';function _0x401f(){const _0x522c37=['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\x20univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\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\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\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\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500\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','connectionStatus$','5916869CTCGcZ','symbol','univer-space-y-2','setConfig','点击连接\x20MCP','mcpConfig.apiApplyInfo.getStarted','_createConfigPanelComponent','prototype','MenuIcon','MCPConfigPanel','API\x20key\x20is\x20required','配置保存成功','MCP\x20配置','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','version','_config','function','univer-text-red-500','2445264AiattA','8cUSrXl','show','_uiPartsService','sessionId$','off','mcpConfig.authorizationDescription','API\x20Key','_logService','MCP\x20连接中...','pluginName','mcpConfig.configError','配置步骤:','2339364AvTISC','mcpStatus.disconnected','\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-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\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-text-gray-700\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','register','showDeveloperTools','\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\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\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\x20\x20\x20\x20\x20\x20\x20\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\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\x20\x20\x20\x20\x20\x20','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','配置\x20MCP\x20使用\x20AI\x20操作电子表格','RETRYING','mcpConfig.connectionStatus.failed','univer-bg-red-500','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP:\x20未授权','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_localeService','univer-flex-1','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','配置更改将立即生效','18794583FTRTyj','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\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\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-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-shadow-md\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_dialogService','mcpConfig.apiKeyHint','mcpConfig.configInstructions','请输入您的\x20API\x20密钥','\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\x20\x20\x20\x20\x20\x20\x20\x20univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\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\x20\x20\x20\x20\x20\x20\x20\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\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\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-scale-110\x20hover:univer-text-blue-800\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\x20\x20\x20\x20\x20\x20','网络连接错误,请检查您的网络连接','_blank','Click\x20to\x20configure\x20MCP','MCP:\x20Session\x20ID\x20Occupied','__setCustomHeaders','mcpConfig.configSaved','length','push','MCP\x20重连中...','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-size-4\x20univer-items-center\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','MCP\x20Connection\x20Failed','mcpConfig.connectionInfo','UNAUTHORIZED','mcpStatus.unknown','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','未连接','subscribeConfigValue$','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','_initStatusComponent','10SHmaCl','mcpStatus.networkError','CONNECTING','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','几秒钟内获取您的\x20API\x20密钥','\x20-\x20','_validateConfig','mcpConfig.note1','SESSION_ID_OCCUPIED','复制以下\x20JSON\x20配置','setItem','_messageService','mergeMenu','What\x20is\x20API\x20Key?','univer-flex\x20univer-items-start\x20univer-gap-3','noopener\x20noreferrer','univer-shrink-0\x20univer-text-red-500','MCP:\x20网络错误','连接失败','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','MCP\x20已连接','API\x20密钥不能为空','OTHERS','mcp.apiKey','MCP\x20Disconnected','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-xs\x20univer-text-gray-800\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcpConfig.apiApplyInfo.title','Enter\x20your\x20API\x20key','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpStatus.failed','decorate','connectionError$','_commandService','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','保存中...','span','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP\x20Connecting...','MCP\x20Configuration','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_handleConfigure','div','_mcpCoreConfig$','Session\x20ID','_menuManagerService','68372NrqGSF','univer-mr-2\x20univer-flex\x20univer-text-xl','Bearer\x20','Error','univer-text-gray-400','\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\x20univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\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\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\x20\x20','mcpConfig.connectionStatus.retrying','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','subscribe','_config$','_initializeMenus','call','pre','_configService','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','mcp-ui.config','https://mcp.univer.ai/mcp/?univer_session_id=','MCP\x20Unknown\x20Status','univer-text-blue-600','mcpConfig.description','univer.plus','mcpStatus.retrying','open','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','Success','mcpConfig.connectionError.networkError','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Authorization:','trim','showStatus','mcpConfig.configStepTitle','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_apiKey$','mcpServerUrl','Univer\x20AI\x20控制台','mcpConfig.apiApplyInfo.description','配置无效','Enable\x20authentication\x20for\x20secure\x20connections','_connectionController','errorMessage','univer-space-y-4','isValid','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-bg-blue-500','mcpConfig.configStep1','点击配置\x20MCP','API\x20key\x20with\x20Bearer\x20prefix.','将以下配置添加到您的\x20MCP\x20客户端设置中:','MCP:\x20Unauthorized','univer-bg-gray-500','MCP\x20Retrying...','mcpConfig.configParameters','权限验证失败,请检查您的\x20API\x20密钥','univer-flex\x20univer-flex-wrap\x20univer-gap-2','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-blue-500\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','mcpConfig.connectionStatus.disconnected','\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\x20\x20\x20\x20univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\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\x20\x20\x20\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\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\x20\x20\x20\x20univer-duration-200\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\x20\x20\x20\x20hover:univer-scale-110\x20hover:univer-text-gray-700\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\x20\x20','mcpConfig.saving','error','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20密钥','_initializeCommands','registerCommand','_loading$','mcpConfig.apiApplyInfo.univerAiLabel','最大重试次数','Connected','mcpStatus.unauthorized','_initConfigSync','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20Connected','_handleConfigSave','MCP:\x20会话\x20ID\x20已被占用','object','\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\x20univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\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\x20univer-bg-blue-500\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','HEADER_MENU','add','什么是\x20API\x20密钥?','_initAutoConnect','_loadStoredApiKey','MCP\x20连接失败','启用身份验证','univer-min-w-0\x20univer-flex-1','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','includes','Copy\x20the\x20JSON\x20configuration\x20below','default','mcpStatus.connecting','mcpConfig.configStep3','removeItem','39PveZWJ','enableAutoConnect','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','iterator','univer-size-4','Enable\x20Authentication','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-size-2\x20univer-rounded-full','mcpConfig.apiKeyPlaceholder','_localStorageService','univer-space-y-3','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','\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\x20\x20\x20\x20univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\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\x20\x20\x20\x20univer-font-semibold\x20univer-text-gray-800\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\x20\x20','mcpConfig.validation.apiKeyTooShort','Save\x20Configuration','NETWORK_ERROR','MCP:\x20Max\x20Retries\x20Exceeded','BUTTON','启用身份验证以获得安全连接','mcpConfig.sessionIdDescription','next','univer.ai','mcpConfig.connectionStatus.connected','button','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-text-gray-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','NONE','mcpConfig.title','保存配置','MCP\x20状态未知','MAX_RETRIES_EXCEEDED','has','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','string','warn','\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','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','您的\x20API\x20密钥安全存储在本地存储中','univer-flex\x20univer-items-center\x20univer-gap-2','_componentManager','会话\x20ID\x20已被占用,请稍后再试','MCP\x20已断开','Retrying...','\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-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\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-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4\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','text','_injector','385341fhDMzT','_mcpConnectionController','https://console.univer.plus','apiKey','mcpConfig.configStep2','close','univer-text-yellow-500','mcpConfig.save','CONNECTED','6166510hcSIrR','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','getConfig','mcpConfig.validation.invalidConfig','showConfigPanel','univer-text-xs\x20univer-text-gray-500','univer-text-xs\x20univer-text-gray-600','MCP:\x20Network\x20Error','univer-bg-green-500','_registerComponent','disposeWithMe','mcpConfig.validation.apiKeyRequired','MCP:\x20超出最大重试次数','Configuration\x20Notes:','mcpConfig.note2','mcpStatus.connected','bottom','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','toPrimitive','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','MCP\x20客户端配置','value','univer-shrink-0\x20univer-text-blue-500','DISCONNECTED','get','https://console.univer.ai','Failed\x20to\x20save\x20configuration','FAILED'];_0x401f=function(){return _0x522c37;};return _0x401f();}import{ISocketService as _0xd38423,WebSocketService as _0x45b3ca}from'@univerjs/network';function z(_0x2cc88b){const _0x581836=_0x2936;var _0x3742c0,_0x25e211;let {mcpCoreConfig:_0x5971ca,onSave:_0x2c13f8,loading:_0x33ce2a=!0x1,config:_0x31c2ab,connectionStatus$:_0x592713,connectionError$:_0x2968ce,currentApiKey$:_0x1c6c96,currentSessionId$:_0x30db45}=_0x2cc88b,_0x3343f=_0x5c7789(_0x33ba30),_0x1c9393=_0x5ae267(_0x592713,_0x4bd71b[_0x581836(0x233)]),_0x28e0f7=_0x5ae267(_0x2968ce,_0x10e4ac[_0x581836(0x1ff)]),_0x34ce47=_0x5ae267(_0x30db45,''),[_0x447d91,_0x2db7bc]=_0x49f8ed(_0x5ae267(_0x1c6c96,'')||''),_0x2c3d61=_0x31c2ab[_0x581836(0x25e)]&&_0x5971ca[_0x581836(0x2da)]&&(_0x5971ca[_0x581836(0x2da)]['includes'](_0x581836(0x2cd))||_0x5971ca[_0x581836(0x2da)]['includes']('univer.ai')),_0x85d49a=(_0x3742c0=_0x5971ca[_0x581836(0x2da)])==null?void 0x0:_0x3742c0[_0x581836(0x1e0)](_0x581836(0x2cd)),_0x5c375a=(_0x25e211=_0x5971ca[_0x581836(0x2da)])==null?void 0x0:_0x25e211[_0x581836(0x1e0)](_0x581836(0x1fb)),_0x39fb78=_0x85d49a?_0x581836(0x215):_0x581836(0x235),_0x152580=_0x31c2ab[_0x581836(0x25e)]&&(_0x85d49a||_0x5c375a),[_0x41d728,_0x566027]=_0x49f8ed(!_0x447d91[_0x581836(0x2d5)]()),_0x2e5b8f=(_0xfd58a2,_0x329d5a)=>{const _0x3c7756=_0x581836;if(_0x329d5a===_0x10e4ac[_0x3c7756(0x282)])return _0x3c7756(0x2a7);switch(_0xfd58a2){case _0x4bd71b['CONNECTED']:return _0x3c7756(0x2ad);case _0x4bd71b[_0x3c7756(0x28b)]:case _0x4bd71b[_0x3c7756(0x262)]:return _0x3c7756(0x2e3);case _0x4bd71b[_0x3c7756(0x237)]:return _0x3c7756(0x2a7);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x2926b3=(_0x59fcfd,_0x3663b3)=>{const _0x4bb5c2=_0x581836;if(_0x3663b3===_0x10e4ac[_0x4bb5c2(0x282)])return _0x4bb5c2(0x264);switch(_0x59fcfd){case _0x4bd71b[_0x4bb5c2(0x21b)]:return _0x4bb5c2(0x224);case _0x4bd71b[_0x4bb5c2(0x28b)]:case _0x4bd71b[_0x4bb5c2(0x262)]:return _0x4bb5c2(0x2e4);case _0x4bd71b[_0x4bb5c2(0x237)]:return'univer-bg-red-500';default:return _0x4bb5c2(0x2ea);}},_0x191e78=_0x40e1e7=>{const _0x30a85a=_0x581836;switch(_0x40e1e7){case _0x4bd71b[_0x30a85a(0x21b)]:return _0x3343f['t'](_0x30a85a(0x1fc));case _0x4bd71b[_0x30a85a(0x28b)]:return _0x3343f['t']('mcpConfig.connectionStatus.connecting');case _0x4bd71b[_0x30a85a(0x237)]:return _0x3343f['t'](_0x30a85a(0x263));case _0x4bd71b[_0x30a85a(0x262)]:return _0x3343f['t'](_0x30a85a(0x2bf));default:return _0x3343f['t'](_0x30a85a(0x2f0));}},_0x4aafec=_0x441070=>{const _0x1aaf09=_0x581836;switch(_0x441070){case _0x10e4ac['UNAUTHORIZED']:return _0x3343f['t']('mcpConfig.connectionError.unauthorized');case _0x10e4ac[_0x1aaf09(0x291)]:return _0x3343f['t']('mcpConfig.connectionError.sessionOccupied');case _0x10e4ac[_0x1aaf09(0x1f5)]:return _0x3343f['t'](_0x1aaf09(0x2d2));case _0x10e4ac[_0x1aaf09(0x203)]:return _0x3343f['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x2eb580=_0x515ef7(()=>{_0x2c13f8({..._0x5971ca,'apiKey':_0x447d91['trim'](),'enableAuth':!0x0});},[_0x5971ca,_0x447d91,!0x0,_0x2c13f8]),_0x50aeae=_0x447d91[_0x581836(0x2d5)]()['length']>0x0;return _0x537292('div',{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x22f),'children':_0x537292(_0x581836(0x2b5),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x303),'children':_0x2a2e78('span',{'className':'univer-text-white','children':'⚙'})}),_0x2a2e78(_0x581836(0x2b5),{'children':_0x2a2e78('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x3343f['t'](_0x581836(0x2cc))})})]})}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x2a2),'children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x16e411(_0x581836(0x208),_0x2e5b8f(_0x1c9393,_0x28e0f7)),'children':_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x20b),'children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x16e411(_0x581836(0x1ed),_0x2926b3(_0x1c9393,_0x28e0f7))}),_0x2a2e78(_0x581836(0x2af),{'className':'univer-text-sm\x20univer-font-medium','children':_0x191e78(_0x1c9393)})]})}),_0x28e0f7!==_0x10e4ac[_0x581836(0x1ff)]&&(_0x1c9393===_0x4bd71b[_0x581836(0x237)]||_0x28e0f7===_0x10e4ac[_0x581836(0x282)])&&_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x2be),'children':_0x537292(_0x581836(0x2b5),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x2a2e78(_0x581836(0x2af),{'className':_0x581836(0x299),'children':'⚠️'}),_0x2a2e78('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x4aafec(_0x28e0f7)})]})})]}),_0x2a2e78('div',{'className':_0x581836(0x29c),'children':_0x537292(_0x581836(0x2b5),{'className':'univer-space-y-5','children':[_0x537292('div',{'className':_0x581836(0x23d),'children':[_0x537292('label',{'className':_0x581836(0x25c),'children':[_0x2a2e78(_0x581836(0x2af),{'children':'🔑'}),'\x20',_0x3343f['t']('mcpConfig.apiKey'),_0x2a2e78(_0x581836(0x2af),{'className':_0x581836(0x24c),'children':'*'}),_0x2c3d61&&_0x2a2e78('a',{'className':_0x581836(0x273),'title':_0x3343f['t'](_0x581836(0x2a5)),'role':_0x581836(0x1fd),'onClick':()=>_0x566027(!0x0),'children':_0x2a2e78(_0x2256a3,{})})]}),_0x2a2e78(_0x3b1f10,{'type':_0x581836(0x211),'placeholder':_0x3343f['t'](_0x581836(0x1ee)),'value':_0x447d91,'disabled':_0x33ce2a,'autoComplete':_0x581836(0x252),'onChange':_0x2db7bc}),_0x2a2e78('p',{'className':_0x581836(0x221),'children':_0x3343f['t'](_0x581836(0x270))})]}),_0x2c3d61&&_0x41d728&&_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x210),'children':[_0x2a2e78('a',{'className':_0x581836(0x2f1),'role':_0x581836(0x1fd),'onClick':()=>_0x566027(!0x1),'children':_0x2a2e78(_0x3213cd,{'className':_0x581836(0x1ea)})}),_0x537292('div',{'className':_0x581836(0x265),'children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x25f),'children':_0x2a2e78('span',{'className':_0x581836(0x2cb),'children':'🚀'})}),_0x537292('div',{'className':_0x581836(0x269),'children':[_0x2a2e78('h4',{'className':_0x581836(0x2c0),'children':_0x3343f['t']('mcpConfig.apiApplyInfo.title')}),_0x2a2e78('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x3343f['t'](_0x581836(0x2dc))}),_0x2a2e78('div',{'className':_0x581836(0x2ee),'children':_0x152580&&_0x537292('a',{'className':_0x581836(0x26e),'href':_0x39fb78,'target':_0x581836(0x275),'rel':_0x581836(0x298),'children':[_0x2a2e78('span',{'children':'🤖'}),_0x3343f['t'](_0x581836(0x2f9)),_0x2a2e78(_0x581836(0x2af),{'className':_0x581836(0x2bd),'children':'↗'})]})}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x205),'children':['✨','\x20',_0x3343f['t'](_0x581836(0x240))]})]})]})]}),_0x31c2ab[_0x581836(0x25e)]&&_0x537292(_0x581836(0x2b5),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4\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','children':[_0x537292('h4',{'className':_0x581836(0x1f2),'children':[_0x2a2e78(_0x581836(0x2af),{'children':'🔗'}),'\x20',_0x3343f['t'](_0x581836(0x281))]}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x2e1),'children':[_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x1f0),'children':[_0x2a2e78('p',{'className':_0x581836(0x222),'children':_0x3343f['t'](_0x581836(0x271))}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x23d),'children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x209),'children':_0x3343f['t'](_0x581836(0x2d7))}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x2a3),'children':[_0x537292('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x2a2e78(_0x581836(0x2af),{'className':_0x581836(0x27f),'children':'1'}),_0x3343f['t'](_0x581836(0x2e5))]}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x20b),'children':[_0x2a2e78(_0x581836(0x2af),{'className':_0x581836(0x27f),'children':'2'}),_0x3343f['t'](_0x581836(0x217))]}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x20b),'children':[_0x2a2e78(_0x581836(0x2af),{'className':_0x581836(0x27f),'children':'3'}),_0x3343f['t'](_0x581836(0x1e4))]})]})]})]}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x23d),'children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x209),'children':_0x581836(0x2b2)}),_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x2d3),'children':_0x2a2e78(_0x581836(0x2c5),{'className':_0x581836(0x2a4),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x581836(0x2c9)+(_0x34ce47||'<SESSION_ID>'),'type':'http','headers':{'Authorization':_0x581836(0x2bb)+(_0x447d91||'<API_KEY>')}}}},null,0x2)})})]}),_0x537292('div',{'className':_0x581836(0x1f0),'children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x209),'children':_0x3343f['t'](_0x581836(0x2ec))}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x23d),'children':[_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x297),'children':[_0x2a2e78('div',{'className':_0x581836(0x2ef)}),_0x537292('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x2a2e78(_0x581836(0x2b5),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'univer_session_id:'}),_0x2a2e78('div',{'className':_0x581836(0x221),'children':_0x3343f['t'](_0x581836(0x1f9))})]})]}),_0x537292(_0x581836(0x2b5),{'className':_0x581836(0x297),'children':[_0x2a2e78('div',{'className':_0x581836(0x2ef)}),_0x537292('div',{'className':_0x581836(0x1de),'children':[_0x2a2e78(_0x581836(0x2b5),{'className':_0x581836(0x2b0),'children':_0x581836(0x2d4)}),_0x2a2e78(_0x581836(0x2b5),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x3343f['t'](_0x581836(0x253))})]})]})]})]})]})]}),_0x2a2e78(_0x41630d,{'onClick':_0x2eb580,'disabled':!_0x50aeae||_0x33ce2a,'className':_0x581836(0x239),'children':_0x33ce2a?_0x537292(_0x581836(0x2af),{'className':_0x581836(0x20b),'children':[_0x2a2e78(_0x581836(0x2af),{'children':'⟲'}),_0x3343f['t'](_0x581836(0x2f2))]}):_0x537292('span',{'className':_0x581836(0x20b),'children':[_0x2a2e78(_0x3098ad,{}),_0x3343f['t'](_0x581836(0x21a))]})}),_0x2a2e78('div',{'className':_0x581836(0x2d0),'children':_0x537292('div',{'className':'univer-flex\x20univer-gap-3','children':[_0x2a2e78(_0x581836(0x2af),{'className':_0x581836(0x232),'children':'💡'}),_0x537292(_0x581836(0x2b5),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x2a2e78(_0x581836(0x2b5),{'className':'univer-font-medium','children':_0x581836(0x229)}),_0x537292('div',{'children':['•',_0x3343f['t'](_0x581836(0x290))]}),_0x537292('div',{'children':['•',_0x3343f['t'](_0x581836(0x22a))]})]})]})})]})})]});}const B=_0x1cd625(0x2c8);Symbol(B);const V={'showDeveloperTools':!0x1,'showStatus':!0x0};function H(_0x1b37bf){'@babel/helpers - typeof';const _0x4891e9=_0x1cd625;return H=typeof Symbol==_0x4891e9(0x24b)&&typeof Symbol[_0x4891e9(0x1e9)]=='symbol'?function(_0x3c0fa6){return typeof _0x3c0fa6;}:function(_0xb1ab51){const _0x436dc7=_0x4891e9;return _0xb1ab51&&typeof Symbol==_0x436dc7(0x24b)&&_0xb1ab51['constructor']===Symbol&&_0xb1ab51!==Symbol[_0x436dc7(0x242)]?_0x436dc7(0x23c):typeof _0xb1ab51;},H(_0x1b37bf);}function oe(_0x282d9e,_0xc65165){const _0x4af70c=_0x1cd625;if(H(_0x282d9e)!=_0x4af70c(0x302)||!_0x282d9e)return _0x282d9e;var _0x4a0938=_0x282d9e[Symbol[_0x4af70c(0x22e)]];if(_0x4a0938!==void 0x0){var _0x36dae2=_0x4a0938[_0x4af70c(0x2c4)](_0x282d9e,_0xc65165||_0x4af70c(0x1e2));if(H(_0x36dae2)!=_0x4af70c(0x302))return _0x36dae2;throw TypeError(_0x4af70c(0x1df));}return(_0xc65165===_0x4af70c(0x206)?String:Number)(_0x282d9e);}function se(_0x1777aa){const _0x2714fd=_0x1cd625;var _0x451c72=oe(_0x1777aa,_0x2714fd(0x206));return H(_0x451c72)=='symbol'?_0x451c72:_0x451c72+'';}function U(_0xf27a58,_0x485dd9,_0x561f24){return(_0x485dd9=se(_0x485dd9))in _0xf27a58?Object['defineProperty'](_0xf27a58,_0x485dd9,{'value':_0x561f24,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xf27a58[_0x485dd9]=_0x561f24,_0xf27a58;}function W(_0x1ca578,_0x28db96){return function(_0x5455d4,_0x1b1baf){_0x28db96(_0x5455d4,_0x1b1baf,_0x1ca578);};}function G(_0x1faff1,_0x2859a4,_0x217a9d,_0x1bbd95){const _0x326bf4=_0x1cd625;var _0x3dc649=arguments['length'],_0x37f88d=_0x3dc649<0x3?_0x2859a4:_0x1bbd95===null?_0x1bbd95=Object['getOwnPropertyDescriptor'](_0x2859a4,_0x217a9d):_0x1bbd95,_0x34b14a;if(typeof Reflect==_0x326bf4(0x302)&&typeof Reflect['decorate']==_0x326bf4(0x24b))_0x37f88d=Reflect[_0x326bf4(0x2a9)](_0x1faff1,_0x2859a4,_0x217a9d,_0x1bbd95);else{for(var _0x55ef81=_0x1faff1[_0x326bf4(0x27a)]-0x1;_0x55ef81>=0x0;_0x55ef81--)(_0x34b14a=_0x1faff1[_0x55ef81])&&(_0x37f88d=(_0x3dc649<0x3?_0x34b14a(_0x37f88d):_0x3dc649>0x3?_0x34b14a(_0x2859a4,_0x217a9d,_0x37f88d):_0x34b14a(_0x2859a4,_0x217a9d))||_0x37f88d);}return _0x3dc649>0x3&&_0x37f88d&&Object['defineProperty'](_0x2859a4,_0x217a9d,_0x37f88d),_0x37f88d;}const K=_0x1cd625(0x2a0),q='mcp-config-dialog';let J=class extends _0x22b46c{constructor(_0x3ff7e2,_0x3183fc,_0x2d426f,_0x2853c5,_0x218dd3,_0x3961d3,_0x8e9f87,_0x35f389,_0x3c5529,_0x5ccbb0){const _0x3b6abf=_0x1cd625;super(),this[_0x3b6abf(0x212)]=_0x3ff7e2,this[_0x3b6abf(0x250)]=_0x3183fc,this[_0x3b6abf(0x2c6)]=_0x2d426f,this[_0x3b6abf(0x1ef)]=_0x2853c5,this[_0x3b6abf(0x26f)]=_0x218dd3,this[_0x3b6abf(0x294)]=_0x3961d3,this['_componentManager']=_0x8e9f87,this['_localeService']=_0x35f389,this[_0x3b6abf(0x255)]=_0x3c5529,this['_mcpConnectionController']=_0x5ccbb0,U(this,_0x3b6abf(0x2f8),new _0x34a1cf(!0x1)),U(this,_0x3b6abf(0x2b6),new _0x34a1cf({})),U(this,_0x3b6abf(0x2c2),new _0x34a1cf({})),U(this,_0x3b6abf(0x2d9),new _0x34a1cf('')),U(this,_0x3b6abf(0x300),async _0x49041b=>{const _0x436bce=_0x3b6abf;this[_0x436bce(0x2f8)]['next'](!0x0);try{var _0xbf66f1,_0xebbfad;let _0x4be46f=await this[_0x436bce(0x28f)](_0x49041b);if(!_0x4be46f[_0x436bce(0x2e2)]){this[_0x436bce(0x294)][_0x436bce(0x24f)]({'type':_0x559393[_0x436bce(0x2bc)],'content':_0x4be46f[_0x436bce(0x2e0)]||this[_0x436bce(0x268)]['t'](_0x436bce(0x21f))});return;}_0x49041b[_0x436bce(0x216)]?await this[_0x436bce(0x1ef)][_0x436bce(0x293)](K,_0x49041b[_0x436bce(0x216)][_0x436bce(0x2d5)]()):await this[_0x436bce(0x1ef)][_0x436bce(0x1e5)](K),this['_apiKey$'][_0x436bce(0x1fa)](((_0xbf66f1=_0x49041b[_0x436bce(0x216)])==null?void 0x0:_0xbf66f1['trim']())||''),this[_0x436bce(0x214)][_0x436bce(0x278)]({'Authorization':_0x436bce(0x2bb)+((_0xebbfad=_0x49041b[_0x436bce(0x216)])==null?void 0x0:_0xebbfad['trim']())}),this[_0x436bce(0x294)][_0x436bce(0x24f)]({'type':_0x559393[_0x436bce(0x2d1)],'content':this[_0x436bce(0x268)]['t'](_0x436bce(0x279))}),setTimeout(()=>{const _0x3f745f=_0x436bce;this[_0x3f745f(0x26f)][_0x3f745f(0x218)](q);},0x320);}catch(_0x2adb21){this[_0x436bce(0x255)]['error'](_0x436bce(0x28c),_0x2adb21),this[_0x436bce(0x294)][_0x436bce(0x24f)]({'type':_0x559393[_0x436bce(0x2bc)],'content':this[_0x436bce(0x268)]['t'](_0x436bce(0x258))});}finally{this['_loading$'][_0x436bce(0x1fa)](!0x1);}}),this[_0x3b6abf(0x2fd)](),this[_0x3b6abf(0x1db)](),this[_0x3b6abf(0x225)]();}[_0x1cd625(0x220)](){const _0x21ac46=_0x1cd625;let _0x2caf24=this[_0x21ac46(0x2c6)][_0x21ac46(0x21e)](B);_0x2caf24!=null&&_0x2caf24[_0x21ac46(0x25e)]&&this[_0x21ac46(0x26f)][_0x21ac46(0x2cf)]({'id':q,'title':{'title':this[_0x21ac46(0x268)]['t'](_0x21ac46(0x200))},'children':{'label':_0x21ac46(0x244)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0xc5fb53=_0x21ac46;this[_0xc5fb53(0x26f)][_0xc5fb53(0x218)](q);}});}['getCurrentConfig'](){const _0x353199=_0x1cd625;return this[_0x353199(0x2b6)][_0x353199(0x231)];}['_registerComponent'](){const _0x233bb6=_0x1cd625;this[_0x233bb6(0x226)](this[_0x233bb6(0x20c)][_0x233bb6(0x25d)](_0x233bb6(0x244),this[_0x233bb6(0x241)]()));}[_0x1cd625(0x241)](){const _0x5b8a02=_0x1cd625;return _0x502440(()=>{const _0x27dccf=_0x2936;var _0x4d1697,_0x25c20e,_0x154b59;return _0x2a2e78(z,{'config':this[_0x27dccf(0x2c2)][_0x27dccf(0x231)],'mcpCoreConfig':this[_0x27dccf(0x2b6)][_0x27dccf(0x231)],'currentApiKey$':this[_0x27dccf(0x2d9)],'onSave':this['_handleConfigSave'],'loading':this[_0x27dccf(0x2f8)][_0x27dccf(0x231)],'connectionStatus$':(_0x4d1697=this[_0x27dccf(0x214)])==null?void 0x0:_0x4d1697[_0x27dccf(0x23a)],'connectionError$':(_0x25c20e=this['_mcpConnectionController'])==null?void 0x0:_0x25c20e[_0x27dccf(0x2aa)],'currentSessionId$':(_0x154b59=this['_mcpConnectionController'])==null?void 0x0:_0x154b59[_0x27dccf(0x251)]});},this[_0x5b8a02(0x212)]);}[_0x1cd625(0x2fd)](){const _0x15fe7f=_0x1cd625;this[_0x15fe7f(0x226)](this[_0x15fe7f(0x2c6)][_0x15fe7f(0x286)](_0x32eb5e)[_0x15fe7f(0x2c1)](_0x16d164=>{const _0xce613a=_0x15fe7f;this[_0xce613a(0x2b6)][_0xce613a(0x1fa)](_0x16d164||{});}));let _0x381fd0=this[_0x15fe7f(0x2c6)]['getConfig'](_0x32eb5e);this[_0x15fe7f(0x2b6)][_0x15fe7f(0x1fa)](_0x381fd0||{}),this['disposeWithMe'](this[_0x15fe7f(0x2c6)][_0x15fe7f(0x286)](B)[_0x15fe7f(0x2c1)](_0xf2e01c=>{const _0x273b8c=_0x15fe7f;this[_0x273b8c(0x2c2)][_0x273b8c(0x1fa)](_0xf2e01c||{});}));let _0x5a8a80=this['_configService']['getConfig'](B);this[_0x15fe7f(0x2c2)]['next'](_0x5a8a80||{});}async[_0x1cd625(0x1db)](){const _0x4104ce=_0x1cd625;let _0x5cf3cd=this['_configService'][_0x4104ce(0x21e)](B);if(!(_0x5cf3cd!=null&&_0x5cf3cd[_0x4104ce(0x25e)]))return;let _0x381b0d=await this[_0x4104ce(0x1ef)]['getItem'](K);_0x381b0d&&(this[_0x4104ce(0x214)][_0x4104ce(0x278)]({'Authorization':_0x4104ce(0x2bb)+_0x381b0d}),this[_0x4104ce(0x2d9)][_0x4104ce(0x1fa)](_0x381b0d));}async['_validateConfig'](_0x1c56b2){const _0x349671=_0x1cd625;if(!_0x1c56b2['apiKey']||_0x1c56b2[_0x349671(0x216)][_0x349671(0x2d5)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x349671(0x268)]['t'](_0x349671(0x227))};if(_0x1c56b2[_0x349671(0x216)][_0x349671(0x2d5)]()[_0x349671(0x27a)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x349671(0x1f3))};try{let _0x56b4ac=await this['_injector'][_0x349671(0x234)](_0x48fbcb)['validateApiKey'](_0x1c56b2[_0x349671(0x216)][_0x349671(0x2d5)]());return _0x56b4ac[_0x349671(0x2e2)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x56b4ac[_0x349671(0x2f3)]||this[_0x349671(0x268)]['t'](_0x349671(0x238))};}catch(_0x1bcbba){return console[_0x349671(0x207)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x1bcbba),{'isValid':!0x0};}}};J=G([W(0x0,_0x33a2db(_0x2a6ad2)),W(0x1,_0x3b943c),W(0x2,_0x1394fc),W(0x3,_0x2994a8),W(0x4,_0x34b195),W(0x5,_0xd34a62),W(0x6,_0x33a2db(_0x5cee40)),W(0x7,_0x33a2db(_0x33ba30)),W(0x8,_0xdcc11c),W(0x9,_0x33a2db(_0x48fbcb))],J);const Y={'id':'mcp-ui.command.openConfigPanel','type':_0x51acc['COMMAND'],'handler':async(_0x1c428e,_0x3e9ff8)=>(_0x1c428e[_0x1cd625(0x234)](J)['showConfigPanel'](),!0x0)};function X(_0x4e44c2,_0x59548d){const _0x29fcd8=_0x1cd625;switch(_0x4e44c2){case _0x4bd71b[_0x29fcd8(0x233)]:return _0x29fcd8(0x25b);case _0x4bd71b[_0x29fcd8(0x28b)]:return _0x29fcd8(0x1e3);case _0x4bd71b[_0x29fcd8(0x21b)]:return _0x29fcd8(0x22b);case _0x4bd71b['FAILED']:switch(_0x59548d){case _0x10e4ac[_0x29fcd8(0x282)]:return _0x29fcd8(0x2fc);case _0x10e4ac[_0x29fcd8(0x291)]:return'mcpStatus.sessionOccupied';case _0x10e4ac[_0x29fcd8(0x1f5)]:return _0x29fcd8(0x28a);case _0x10e4ac[_0x29fcd8(0x203)]:return'mcpStatus.maxRetriesExceeded';default:return _0x29fcd8(0x2a8);}case _0x4bd71b[_0x29fcd8(0x262)]:return _0x29fcd8(0x2ce);default:return _0x29fcd8(0x283);}}function ce(_0x5535f3,_0x56af02,_0x12d55e,_0x3f31c8=!0x0){const _0x27a457=_0x1cd625;let _0x45a3f8=X(_0x5535f3,_0x56af02),_0x3de941=_0x12d55e['t'](_0x45a3f8);return _0x3f31c8?_0x5535f3===_0x4bd71b['DISCONNECTED']&&_0x56af02===_0x10e4ac[_0x27a457(0x282)]?_0x3de941+_0x27a457(0x28e)+_0x12d55e['t']('mcpStatus.clickToConfigure'):_0x5535f3===_0x4bd71b[_0x27a457(0x21b)]?''+_0x3de941:_0x5535f3===_0x4bd71b[_0x27a457(0x233)]||_0x5535f3===_0x4bd71b[_0x27a457(0x237)]?_0x3de941+_0x27a457(0x28e)+_0x12d55e['t']('mcpStatus.clickToConnect'):_0x3de941:_0x3de941;}function le(_0xaee1c1){const _0x4255b5=_0x1cd625;switch(_0xaee1c1){case _0x4bd71b['CONNECTED']:return'univer-text-green-500';case _0x4bd71b[_0x4255b5(0x28b)]:case _0x4bd71b[_0x4255b5(0x262)]:return _0x4255b5(0x219);case _0x4bd71b[_0x4255b5(0x237)]:case _0x4bd71b['DISCONNECTED']:return _0x4255b5(0x24c);default:return'univer-text-gray-500';}}function ue(_0x318300){const _0x5b7916=_0x1cd625;let {status$:_0x2e42fd,error$:_0x20b81c,onConfigure:_0xd9e898,showClickable:_0x3c4359=!0x0}=_0x318300,_0x4a9e2a=_0x5ae267(_0x2e42fd,_0x4bd71b[_0x5b7916(0x233)]),_0x34388a=_0x5ae267(_0x20b81c,_0x10e4ac[_0x5b7916(0x1ff)]),_0x13abf0=_0x5c7789(_0x33ba30),_0x14d42a=_0x4a9e2a===_0x4bd71b['CONNECTED'];_0x4a9e2a===_0x4bd71b[_0x5b7916(0x28b)]||_0x4bd71b[_0x5b7916(0x262)];let _0xe300e4=_0x13abf0['t'](X(_0x4a9e2a,_0x34388a)),_0x189317=ce(_0x4a9e2a,_0x34388a,_0x13abf0,_0x3c4359),_0x5a9045=le(_0x4a9e2a),_0x83f9a2=_0x2a2e78(_0x14d42a?_0x22e2f7:_0x2a313c,{}),_0x20489e=_0x515ef7(()=>{_0x3c4359&&_0xd9e898&&_0xd9e898();},[_0x3c4359,_0xd9e898]);function _0x582f33(){const _0x40ec17=_0x5b7916;return _0x537292('div',{'className':_0x16e411('univer-flex\x20univer-items-center',_0x3c4359&&_0xd9e898&&_0x40ec17(0x26b)),'role':_0x40ec17(0x1fd),'onClick':_0x3c4359&&_0xd9e898?_0x20489e:void 0x0,'children':[_0x2a2e78(_0x40ec17(0x2b5),{'className':_0x16e411(_0x40ec17(0x2ba),_0x5a9045),'children':_0x83f9a2}),_0x2a2e78('div',{'className':_0x40ec17(0x1fe),'children':_0xe300e4})]});}return _0x2a2e78(_0x1b9f41,{'title':_0x189317,'placement':_0x5b7916(0x22c),'children':_0x582f33()});}let Z=class extends _0x22b46c{constructor(_0x5098ed,_0xac1ea3,_0x449776,_0xd93cbc){const _0x31d0f1=_0x1cd625;super(),this[_0x31d0f1(0x212)]=_0x5098ed,this[_0x31d0f1(0x2df)]=_0xac1ea3,this[_0x31d0f1(0x250)]=_0x449776,this[_0x31d0f1(0x2c6)]=_0xd93cbc,this[_0x31d0f1(0x1da)](),this[_0x31d0f1(0x288)]();}[_0x1cd625(0x1da)](){const _0x4c0a1f=_0x1cd625;let _0x27b1f1=this[_0x4c0a1f(0x2c6)][_0x4c0a1f(0x21e)](B);_0x27b1f1!=null&&_0x27b1f1[_0x4c0a1f(0x25e)]&&(this['_connectionController'][_0x4c0a1f(0x1e7)]=!0x1);}[_0x1cd625(0x288)](){const _0x66fb9=_0x1cd625;let _0x5c3469=this[_0x66fb9(0x2c6)][_0x66fb9(0x21e)](B);(_0x5c3469==null?void 0x0:_0x5c3469[_0x66fb9(0x2d6)])!==!0x1&&this['disposeWithMe'](this[_0x66fb9(0x250)]['registerComponent'](_0x136998[_0x66fb9(0x304)],()=>{const _0x1eeaa6=_0x66fb9;var _0x47a7df;return _0x502440(de({'status$':this[_0x1eeaa6(0x2df)][_0x1eeaa6(0x23a)],'error$':this[_0x1eeaa6(0x2df)][_0x1eeaa6(0x2aa)],'onConfigure':()=>this[_0x1eeaa6(0x2b4)](),'showClickable':(_0x47a7df=_0x5c3469==null?void 0x0:_0x5c3469[_0x1eeaa6(0x25e)])==null?!0x1:_0x47a7df}),this[_0x1eeaa6(0x212)]);}));}[_0x1cd625(0x2b4)](){const _0x3d5e73=_0x1cd625;this[_0x3d5e73(0x212)][_0x3d5e73(0x234)](J)[_0x3d5e73(0x220)]();}};Z=G([W(0x0,_0x33a2db(_0x2a6ad2)),W(0x1,_0x33a2db(_0x48fbcb)),W(0x2,_0x3b943c),W(0x3,_0x1394fc)],Z);function de(_0x43d0f6){let {status$:_0x50a0f7,error$:_0x10f2a7,onConfigure:_0x255f1e,showClickable:_0x7492df}=_0x43d0f6;return function(){return _0x2a2e78(ue,{'status$':_0x50a0f7,'error$':_0x10f2a7,'onConfigure':_0x255f1e,'showClickable':_0x7492df});};}function fe(_0x41af9e){const _0x213aba=_0x1cd625;return{'id':Y['id'],'type':_0x57509d[_0x213aba(0x1f7)],'icon':_0x213aba(0x243),'title':_0x213aba(0x200),'tooltip':_0x213aba(0x200)};}const pe={[_0x399ff1[_0x1cd625(0x29f)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0x22b46c{constructor(_0x33e1ae,_0x2ffecc){const _0x902b52=_0x1cd625;super(),this[_0x902b52(0x2ab)]=_0x33e1ae,this[_0x902b52(0x2b8)]=_0x2ffecc,this[_0x902b52(0x2f6)](),this[_0x902b52(0x2c3)]();}[_0x1cd625(0x2f6)](){[Y]['forEach'](_0x1feef1=>{const _0x2ebcd0=_0x2936;this['disposeWithMe'](this[_0x2ebcd0(0x2ab)][_0x2ebcd0(0x2f7)](_0x1feef1));});}[_0x1cd625(0x2c3)](){const _0x5c63e4=_0x1cd625;this[_0x5c63e4(0x2b8)][_0x5c63e4(0x295)](pe);}};function _0x2936(_0x37ac36,_0x293ccd){_0x37ac36=_0x37ac36-0x1d9;const _0x401f75=_0x401f();let _0x29363d=_0x401f75[_0x37ac36];return _0x29363d;}Q=G([W(0x0,_0x80a00c),W(0x1,_0x1fb40c)],Q);const me={'mcpStatus':{'disconnected':_0x1cd625(0x2a1),'connecting':_0x1cd625(0x2b1),'connected':_0x1cd625(0x2ff),'failed':_0x1cd625(0x280),'retrying':_0x1cd625(0x2eb),'unknown':_0x1cd625(0x2ca),'unauthorized':_0x1cd625(0x2e9),'sessionOccupied':_0x1cd625(0x277),'networkError':_0x1cd625(0x223),'maxRetriesExceeded':_0x1cd625(0x1f6),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1cd625(0x276)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1cd625(0x254),'apiKeyPlaceholder':_0x1cd625(0x2a6),'apiKeyHint':_0x1cd625(0x22d),'enableAuth':_0x1cd625(0x1eb),'enableAuthHint':_0x1cd625(0x2de),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x1cd625(0x2ac),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x1cd625(0x1e1),'configStep2':_0x1cd625(0x248),'configStep3':_0x1cd625(0x260),'sessionId':_0x1cd625(0x2b7),'sessionIdDescription':_0x1cd625(0x1f1),'authorizationDescription':_0x1cd625(0x2e7),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x1cd625(0x1f4),'saving':'Saving...','note1':_0x1cd625(0x27e),'note2':_0x1cd625(0x21d),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x1cd625(0x236),'apiApplyInfo':{'title':_0x1cd625(0x296),'description':_0x1cd625(0x26a),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x1cd625(0x27d)},'validation':{'apiKeyRequired':_0x1cd625(0x245),'apiKeyTooShort':_0x1cd625(0x2d8),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x1cd625(0x267)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x1cd625(0x2fb),'failed':'Connection\x20Failed','retrying':_0x1cd625(0x20f)},'connectionError':{'unauthorized':_0x1cd625(0x284),'sessionOccupied':_0x1cd625(0x287),'networkError':_0x1cd625(0x1e8),'maxRetriesExceeded':_0x1cd625(0x2c7)}}},he={'mcpStatus':{'disconnected':_0x1cd625(0x20e),'connecting':_0x1cd625(0x256),'connected':_0x1cd625(0x29d),'failed':_0x1cd625(0x1dc),'retrying':_0x1cd625(0x27c),'unknown':_0x1cd625(0x202),'unauthorized':_0x1cd625(0x266),'sessionOccupied':_0x1cd625(0x301),'networkError':_0x1cd625(0x29a),'maxRetriesExceeded':_0x1cd625(0x228),'clickToConnect':_0x1cd625(0x23f),'clickToConfigure':_0x1cd625(0x2e6)},'mcpConfig':{'title':_0x1cd625(0x247),'description':_0x1cd625(0x261),'apiKey':_0x1cd625(0x2f5),'apiKeyPlaceholder':_0x1cd625(0x272),'apiKeyHint':_0x1cd625(0x2f4),'enableAuth':_0x1cd625(0x1dd),'enableAuthHint':_0x1cd625(0x1f8),'connectionInfo':_0x1cd625(0x230),'mcpClientConfig':_0x1cd625(0x230),'configInstructions':_0x1cd625(0x2e8),'configStepTitle':_0x1cd625(0x259),'configStep1':_0x1cd625(0x292),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x1cd625(0x1ec),'authorizationDescription':_0x1cd625(0x2fe),'configParameters':'配置参数:','maxRetries':_0x1cd625(0x2fa),'save':_0x1cd625(0x201),'saving':_0x1cd625(0x2ae),'note1':_0x1cd625(0x26c),'note2':_0x1cd625(0x20a),'configSaved':_0x1cd625(0x246),'configError':'配置保存失败','apiApplyInfo':{'title':_0x1cd625(0x1d9),'description':_0x1cd625(0x2b3),'univerAiLabel':_0x1cd625(0x2db),'getStarted':_0x1cd625(0x28d)},'validation':{'apiKeyRequired':_0x1cd625(0x29e),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x1cd625(0x2dd),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x1cd625(0x285),'connecting':'连接中...','connected':'已连接','failed':_0x1cd625(0x29b),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x1cd625(0x2ed),'sessionOccupied':_0x1cd625(0x20d),'networkError':_0x1cd625(0x274),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var ge='@univerjs-pro/mcp-ui',_e='0.18.0';let $=class extends _0x1590a1{constructor(_0x3ea3f4=V,_0x2c358e,_0x277215,_0x363b75,_0x27c687,_0x2b584e){const _0x43f0ef=_0x1cd625;super(),this[_0x43f0ef(0x24a)]=_0x3ea3f4,this[_0x43f0ef(0x212)]=_0x2c358e,this[_0x43f0ef(0x2c6)]=_0x277215,this[_0x43f0ef(0x250)]=_0x363b75,this[_0x43f0ef(0x1ef)]=_0x27c687,this['_localeService']=_0x2b584e;let {..._0x3c4097}=_0x3995b0({},V,this[_0x43f0ef(0x24a)]);this[_0x43f0ef(0x2c6)][_0x43f0ef(0x23e)](B,_0x3c4097);}async['onStarting'](){const _0x452116=_0x1cd625;let _0x357409=[[Z],[J],[Q]];this['_injector'][_0x452116(0x204)](_0xd38423)||_0x357409[_0x452116(0x27b)]([_0xd38423,{'useClass':_0x45b3ca}]),_0x357409['forEach'](_0x20491f=>this['_injector'][_0x452116(0x305)](_0x20491f)),this['_injector'][_0x452116(0x234)](Z),this[_0x452116(0x212)][_0x452116(0x234)](J),this[_0x452116(0x212)]['get'](Q);}};U($,_0x1cd625(0x257),'MCP_UI_PLUGIN'),U($,'packageName',ge),U($,_0x1cd625(0x249),_e),$=G([_0x177445(_0x4362ff),W(0x1,_0x33a2db(_0x2a6ad2)),W(0x2,_0x1394fc),W(0x3,_0x3b943c),W(0x4,_0x2994a8),W(0x5,_0x33a2db(_0x33ba30))],$);export{z as MCPConfigPanel,J as MCPConfigUIController,Z as MCPConnectionUIController,ue as MCPStatusDisplay,Q as MCPUIMenuController,Y as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,me as enUS,he as zhCN};
1
+ const _0x35218a=_0x1fe8;(function(_0x22902e,_0x2348cf){const _0x40e54f=_0x1fe8,_0x56eb0b=_0x22902e();while(!![]){try{const _0x56ddaa=parseInt(_0x40e54f(0xe1))/0x1*(parseInt(_0x40e54f(0x186))/0x2)+-parseInt(_0x40e54f(0x106))/0x3+-parseInt(_0x40e54f(0xeb))/0x4*(-parseInt(_0x40e54f(0xce))/0x5)+-parseInt(_0x40e54f(0x154))/0x6+-parseInt(_0x40e54f(0x103))/0x7*(-parseInt(_0x40e54f(0xef))/0x8)+parseInt(_0x40e54f(0x184))/0x9+parseInt(_0x40e54f(0x139))/0xa;if(_0x56ddaa===_0x2348cf)break;else _0x56eb0b['push'](_0x56eb0b['shift']());}catch(_0x275823){_0x56eb0b['push'](_0x56eb0b['shift']());}}}(_0xd608,0xb546e));import{CommandType as _0x8c6f3b,DependentOn as _0x32a5f5,Disposable as _0x634fb7,ICommandService as _0x14b703,IConfigService as _0x2220a,ILocalStorageService as _0x3ab6f4,ILogService as _0x3a67db,Inject as _0x519d4f,Injector as _0x97e35a,LocaleService as _0x485d48,Plugin as _0x2c7e0b,merge as _0xd6e0f4}from'@univerjs/core';import{MCPConnectionController as _0x192377,MCPConnectionError as _0x576943,MCPConnectionStatus as _0x2cb78f,MCP_PLUGIN_CONFIG_KEY as _0x562266,UniverMCPPlugin as _0x2af01b}from'@univerjs-pro/mcp';import{Button as _0x52edc6,Input as _0x2013d7,MessageType as _0x11c1e6,Tooltip as _0x26f1ea,clsx as _0x4ba5b3}from'@univerjs/design';import{BuiltInUIPart as _0x14998e,ComponentManager as _0xcc080b,IDialogService as _0x40024d,IMenuManagerService as _0x246c7e,IMessageService as _0x4e8535,IUIPartsService as _0x1f23b3,MenuItemType as _0x347f6f,RibbonStartGroup as _0x2fd2cb,connectInjector as _0x4d5475,useDependency as _0x1cd4cf,useObservable as _0x554e27}from'@univerjs/ui';import{BehaviorSubject as _0x4bdada}from'rxjs';import{CheckMarkIcon as _0x2a0f59,CloseIcon as _0x59556c,HelpIcon as _0x40bc06,OffLineIcon as _0x5a6443,OnLineIcon as _0x4e3349}from'@univerjs/icons';import{useCallback as _0x4fd27b,useState as _0x5dba73}from'react';import{jsx as _0x288c52,jsxs as _0x410c89}from'react/jsx-runtime';import{ISocketService as _0x4e295d,WebSocketService as _0x5e9f21}from'@univerjs/network';function _0x1fe8(_0x540678,_0x328c51){_0x540678=_0x540678-0xbc;const _0xd608b8=_0xd608();let _0x1fe8f4=_0xd608b8[_0x540678];return _0x1fe8f4;}function z(_0x2bd6ae){const _0x45c13e=_0x1fe8;var _0x19726e,_0x51fa1d;let {mcpCoreConfig:_0x39cffa,onSave:_0x30c1d6,loading:_0x1635b1=!0x1,config:_0x2a4a8b,connectionStatus$:_0x16c0ba,connectionError$:_0x50ddc7,currentApiKey$:_0x536ca1,currentSessionId$:_0x5da0a4}=_0x2bd6ae,_0x5982f=_0x1cd4cf(_0x485d48),_0xb9a533=_0x554e27(_0x16c0ba,_0x2cb78f[_0x45c13e(0xbe)]),_0x10d7f3=_0x554e27(_0x50ddc7,_0x576943['NONE']),_0x3ec105=_0x554e27(_0x5da0a4,''),[_0x33dcdc,_0x223890]=_0x5dba73(_0x554e27(_0x536ca1,'')||''),_0xdab73d=_0x2a4a8b[_0x45c13e(0x18f)]&&_0x39cffa['mcpServerUrl']&&(_0x39cffa[_0x45c13e(0x11f)][_0x45c13e(0xdd)](_0x45c13e(0x104))||_0x39cffa['mcpServerUrl']['includes']('univer.ai')),_0x448d4d=(_0x19726e=_0x39cffa[_0x45c13e(0x11f)])==null?void 0x0:_0x19726e[_0x45c13e(0xdd)](_0x45c13e(0x104)),_0x481ec3=(_0x51fa1d=_0x39cffa[_0x45c13e(0x11f)])==null?void 0x0:_0x51fa1d[_0x45c13e(0xdd)]('univer.ai'),_0x2ffb3e=_0x448d4d?_0x45c13e(0x1d5):_0x45c13e(0x1c4),_0x394370=_0x2a4a8b[_0x45c13e(0x18f)]&&(_0x448d4d||_0x481ec3),[_0x128f39,_0x2bd2b4]=_0x5dba73(!_0x33dcdc[_0x45c13e(0xf5)]()),_0xa90ea4=(_0x8f20f6,_0x32e48a)=>{const _0x3baff6=_0x45c13e;if(_0x32e48a===_0x576943[_0x3baff6(0x14f)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x8f20f6){case _0x2cb78f[_0x3baff6(0x182)]:return _0x3baff6(0x105);case _0x2cb78f[_0x3baff6(0x129)]:case _0x2cb78f['RETRYING']:return'univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200';case _0x2cb78f['FAILED']:return _0x3baff6(0x1cc);default:return _0x3baff6(0xe8);}},_0x3b0edf=(_0x10de66,_0x1f3601)=>{const _0x1457d7=_0x45c13e;if(_0x1f3601===_0x576943[_0x1457d7(0x14f)])return _0x1457d7(0x108);switch(_0x10de66){case _0x2cb78f[_0x1457d7(0x182)]:return _0x1457d7(0x15f);case _0x2cb78f[_0x1457d7(0x129)]:case _0x2cb78f['RETRYING']:return _0x1457d7(0x122);case _0x2cb78f['FAILED']:return _0x1457d7(0x108);default:return _0x1457d7(0x168);}},_0x1a4bff=_0x925b39=>{const _0x7534e=_0x45c13e;switch(_0x925b39){case _0x2cb78f[_0x7534e(0x182)]:return _0x5982f['t'](_0x7534e(0x14a));case _0x2cb78f[_0x7534e(0x129)]:return _0x5982f['t']('mcpConfig.connectionStatus.connecting');case _0x2cb78f[_0x7534e(0x175)]:return _0x5982f['t'](_0x7534e(0x19d));case _0x2cb78f[_0x7534e(0xe9)]:return _0x5982f['t'](_0x7534e(0x158));default:return _0x5982f['t']('mcpConfig.connectionStatus.disconnected');}},_0x27eb5d=_0x21328e=>{const _0x12e658=_0x45c13e;switch(_0x21328e){case _0x576943[_0x12e658(0x14f)]:return _0x5982f['t']('mcpConfig.connectionError.unauthorized');case _0x576943[_0x12e658(0x157)]:return _0x5982f['t'](_0x12e658(0x14d));case _0x576943[_0x12e658(0x101)]:return _0x5982f['t'](_0x12e658(0x172));case _0x576943[_0x12e658(0x1da)]:return _0x5982f['t'](_0x12e658(0x163));default:return'';}},_0xb7294b=_0x4fd27b(()=>{_0x30c1d6({..._0x39cffa,'apiKey':_0x33dcdc['trim'](),'enableAuth':!0x0});},[_0x39cffa,_0x33dcdc,!0x0,_0x30c1d6]),_0x2c65a6=_0x33dcdc['trim']()[_0x45c13e(0xfe)]>0x0;return _0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x1e5),'children':[_0x288c52(_0x45c13e(0x11a),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x153),'children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x15b),'children':_0x288c52(_0x45c13e(0x161),{'className':_0x45c13e(0x14c),'children':'⚙'})}),_0x288c52(_0x45c13e(0x11a),{'children':_0x288c52('p',{'className':_0x45c13e(0x166),'children':_0x5982f['t'](_0x45c13e(0x1c1))})})]})}),_0x410c89(_0x45c13e(0x11a),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x4ba5b3(_0x45c13e(0x1d2),_0xa90ea4(_0xb9a533,_0x10d7f3)),'children':_0x410c89('div',{'className':_0x45c13e(0x17c),'children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x4ba5b3(_0x45c13e(0x1d8),_0x3b0edf(_0xb9a533,_0x10d7f3))}),_0x288c52('span',{'className':_0x45c13e(0x1a4),'children':_0x1a4bff(_0xb9a533)})]})}),_0x10d7f3!==_0x576943[_0x45c13e(0x1a7)]&&(_0xb9a533===_0x2cb78f[_0x45c13e(0x175)]||_0x10d7f3===_0x576943[_0x45c13e(0x14f)])&&_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x16a),'children':_0x410c89(_0x45c13e(0x11a),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x288c52(_0x45c13e(0x161),{'className':_0x45c13e(0x1c7),'children':'⚠️'}),_0x288c52('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x27eb5d(_0x10d7f3)})]})})]}),_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x18a),'children':_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x13b),'children':[_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x1d1),'children':[_0x410c89(_0x45c13e(0x177),{'className':_0x45c13e(0x189),'children':[_0x288c52(_0x45c13e(0x161),{'children':'🔑'}),'\x20',_0x5982f['t'](_0x45c13e(0x1c9)),_0x288c52(_0x45c13e(0x161),{'className':_0x45c13e(0x1d6),'children':'*'}),_0xdab73d&&_0x288c52('a',{'className':_0x45c13e(0x1b3),'title':_0x5982f['t']('mcpConfig.apiApplyInfo.title'),'role':_0x45c13e(0x178),'onClick':()=>_0x2bd2b4(!0x0),'children':_0x288c52(_0x40bc06,{})})]}),_0x288c52(_0x2013d7,{'type':_0x45c13e(0x151),'placeholder':_0x5982f['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x33dcdc,'disabled':_0x1635b1,'autoComplete':_0x45c13e(0x188),'onChange':_0x223890}),_0x288c52('p',{'className':_0x45c13e(0x19e),'children':_0x5982f['t'](_0x45c13e(0x1ac))})]}),_0xdab73d&&_0x128f39&&_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x18b),'children':[_0x288c52('a',{'className':_0x45c13e(0x190),'role':_0x45c13e(0x178),'onClick':()=>_0x2bd2b4(!0x1),'children':_0x288c52(_0x59556c,{'className':_0x45c13e(0x196)})}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0xed),'children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x10b),'children':_0x288c52(_0x45c13e(0x161),{'className':'univer-text-blue-600','children':'🚀'})}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x1bd),'children':[_0x288c52('h4',{'className':_0x45c13e(0x19c),'children':_0x5982f['t'](_0x45c13e(0xfa))}),_0x288c52('p',{'className':_0x45c13e(0x1b1),'children':_0x5982f['t'](_0x45c13e(0xee))}),_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x1e1),'children':_0x394370&&_0x410c89('a',{'className':'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','href':_0x2ffb3e,'target':'_blank','rel':'noopener\x20noreferrer','children':[_0x288c52('span',{'children':'🤖'}),_0x5982f['t'](_0x45c13e(0x128)),_0x288c52(_0x45c13e(0x161),{'className':_0x45c13e(0x13d),'children':'↗'})]})}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0xf4),'children':['✨','\x20',_0x5982f['t'](_0x45c13e(0x12f))]})]})]})]}),_0x2a4a8b['showDeveloperTools']&&_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x13f),'children':[_0x410c89('h4',{'className':_0x45c13e(0x10a),'children':[_0x288c52(_0x45c13e(0x161),{'children':'🔗'}),'\x20',_0x5982f['t']('mcpConfig.connectionInfo')]}),_0x410c89('div',{'className':_0x45c13e(0xd9),'children':[_0x410c89('div',{'className':_0x45c13e(0x1b8),'children':[_0x288c52('p',{'className':_0x45c13e(0x147),'children':_0x5982f['t'](_0x45c13e(0xf1))}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x1d1),'children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x1c6),'children':_0x5982f['t']('mcpConfig.configStepTitle')}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x132),'children':[_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x17c),'children':[_0x288c52(_0x45c13e(0x161),{'className':_0x45c13e(0xc6),'children':'1'}),_0x5982f['t']('mcpConfig.configStep1')]}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x17c),'children':[_0x288c52(_0x45c13e(0x161),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x5982f['t']('mcpConfig.configStep2')]}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x17c),'children':[_0x288c52(_0x45c13e(0x161),{'className':_0x45c13e(0xc6),'children':'3'}),_0x5982f['t'](_0x45c13e(0x1b2))]})]})]})]}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x1d1),'children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x1c6),'children':_0x45c13e(0x1ba)}),_0x288c52(_0x45c13e(0x11a),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x288c52(_0x45c13e(0x1d4),{'className':_0x45c13e(0x1b7),'children':JSON[_0x45c13e(0x1c2)]({'mcpServers':{'univer':{'url':_0x45c13e(0x1e6)+(_0x3ec105||'<SESSION_ID>'),'type':_0x45c13e(0x12a),'headers':{'Authorization':_0x45c13e(0x1d0)+(_0x33dcdc||_0x45c13e(0x1e3))}}}},null,0x2)})})]}),_0x410c89(_0x45c13e(0x11a),{'className':'univer-space-y-3','children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x1c6),'children':_0x5982f['t'](_0x45c13e(0x1ca))}),_0x410c89(_0x45c13e(0x11a),{'className':'univer-space-y-2','children':[_0x410c89('div',{'className':_0x45c13e(0x165),'children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x16b)}),_0x410c89('div',{'className':_0x45c13e(0xf7),'children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x127),'children':_0x45c13e(0x1e4)}),_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x19e),'children':_0x5982f['t'](_0x45c13e(0x1a9))})]})]}),_0x410c89(_0x45c13e(0x11a),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x288c52(_0x45c13e(0x11a),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0xf7),'children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x127),'children':_0x45c13e(0xbd)}),_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x19e),'children':_0x5982f['t'](_0x45c13e(0x19f))})]})]})]})]})]})]}),_0x288c52(_0x52edc6,{'onClick':_0xb7294b,'disabled':!_0x2c65a6||_0x1635b1,'className':_0x45c13e(0x14b),'children':_0x1635b1?_0x410c89(_0x45c13e(0x161),{'className':_0x45c13e(0x17c),'children':[_0x288c52(_0x45c13e(0x161),{'children':'⟲'}),_0x5982f['t'](_0x45c13e(0x126))]}):_0x410c89(_0x45c13e(0x161),{'className':_0x45c13e(0x17c),'children':[_0x288c52(_0x2a0f59,{}),_0x5982f['t'](_0x45c13e(0x1ae))]})}),_0x288c52('div',{'className':_0x45c13e(0x117),'children':_0x410c89(_0x45c13e(0x11a),{'className':_0x45c13e(0x145),'children':[_0x288c52(_0x45c13e(0x161),{'className':_0x45c13e(0x1be),'children':'💡'}),_0x410c89(_0x45c13e(0x11a),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x288c52(_0x45c13e(0x11a),{'className':_0x45c13e(0x1aa),'children':_0x45c13e(0x13c)}),_0x410c89('div',{'children':['•',_0x5982f['t'](_0x45c13e(0x1a2))]}),_0x410c89(_0x45c13e(0x11a),{'children':['•',_0x5982f['t'](_0x45c13e(0xc5))]})]})]})})]})})]});}const B=_0x35218a(0xf2);Symbol(B);const V={'showDeveloperTools':!0x1,'showStatus':!0x0};function H(_0x183dbb){'@babel/helpers - typeof';const _0x59d5a5=_0x35218a;return H=typeof Symbol==_0x59d5a5(0x160)&&typeof Symbol[_0x59d5a5(0x150)]==_0x59d5a5(0xdc)?function(_0x4aec74){return typeof _0x4aec74;}:function(_0x13fddc){const _0x223719=_0x59d5a5;return _0x13fddc&&typeof Symbol==_0x223719(0x160)&&_0x13fddc[_0x223719(0x134)]===Symbol&&_0x13fddc!==Symbol[_0x223719(0x142)]?_0x223719(0xdc):typeof _0x13fddc;},H(_0x183dbb);}function oe(_0x576180,_0x1fdc64){const _0x305546=_0x35218a;if(H(_0x576180)!='object'||!_0x576180)return _0x576180;var _0x2a421f=_0x576180[Symbol['toPrimitive']];if(_0x2a421f!==void 0x0){var _0x2f0457=_0x2a421f[_0x305546(0xf9)](_0x576180,_0x1fdc64||_0x305546(0xc9));if(H(_0x2f0457)!=_0x305546(0x148))return _0x2f0457;throw TypeError(_0x305546(0x1b9));}return(_0x1fdc64==='string'?String:Number)(_0x576180);}function se(_0x4b4dd4){const _0x136df6=_0x35218a;var _0x2b9506=oe(_0x4b4dd4,'string');return H(_0x2b9506)==_0x136df6(0xdc)?_0x2b9506:_0x2b9506+'';}function _0xd608(){const _0x362e87=['univer-flex\x20univer-items-center\x20univer-gap-2','mcp-ui.command.openConfigPanel','show','MenuIcon','MCP:\x20会话\x20ID\x20已被占用','validateApiKey','CONNECTED','_createConfigPanelComponent','351873VZAaEm','MCP\x20Disconnected','69122cQvlbX','_configService','off','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','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.title','API\x20key\x20with\x20Bearer\x20prefix.','push','showDeveloperTools','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','mcpStatus.retrying','_connectionController','Failed\x20to\x20save\x20configuration','mcpStatus.connected','配置步骤:','univer-size-4','Invalid\x20configuration','MCP:\x20网络错误','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_config','_commandService','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcpConfig.connectionStatus.failed','univer-text-xs\x20univer-text-gray-500','mcpConfig.authorizationDescription','Session\x20ID','MCP:\x20超出最大重试次数','mcpConfig.note1','_validateConfig','univer-text-sm\x20univer-font-medium','next','Connected','NONE','Enable\x20Authentication','mcpConfig.sessionIdDescription','univer-font-medium','Configuration\x20Steps:','mcpConfig.apiKeyHint','sessionId$','mcpConfig.save','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpConfig.configStep3','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','API\x20密钥无效,请检查密钥是否正确','registerComponent','error','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-space-y-3','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','MCP\x20Configuration','mcp-config-dialog','_initStatusComponent','univer-flex-1','univer-shrink-0\x20univer-text-blue-500','_localStorageService','mcpConfig.validation.invalidApiKey','mcpConfig.description','stringify','MCP\x20状态未知','https://console.univer.ai','_handleConfigSave','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-shrink-0\x20univer-text-red-500','_registerComponent','mcpConfig.apiKey','mcpConfig.configParameters','version','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','getConfig','Success','registerCommand','Bearer\x20','univer-space-y-2','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','connectionError$','pre','https://console.univer.plus','univer-text-red-500','univer-flex\x20univer-items-center','univer-size-2\x20univer-rounded-full','您的\x20API\x20密钥将在此浏览器中本地存储','MAX_RETRIES_EXCEEDED','_mcpCoreConfig$','setConfig','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','_loadStoredApiKey','packageName','univer-mr-2\x20univer-flex\x20univer-text-xl','univer-flex\x20univer-flex-wrap\x20univer-gap-2','isValid','<API_KEY>','univer_session_id:','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','https://mcp.univer.ai/mcp/?univer_session_id=','MCPConfigPanel','Authorization:','DISCONNECTED','MCP\x20Client\x20Configuration','decorate','启用身份验证以获得安全连接','几秒钟内获取您的\x20API\x20密钥','配置保存成功','连接失败','mcpConfig.note2','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','重启您的\x20MCP\x20客户端以使配置生效','close','default','defineProperty','Click\x20to\x20configure\x20MCP','What\x20is\x20API\x20Key?','未连接','25KJSALF','API\x20密钥','_localeService','Configuration\x20Parameters:','请输入您的\x20API\x20密钥','univer-text-yellow-500','showConfigPanel','mcpStatus.connecting','Enable\x20authentication\x20for\x20secure\x20connections','mcpStatus.failed','_loading$','univer-space-y-4','has','_menuManagerService','symbol','includes','权限验证失败,请检查您的\x20API\x20密钥','Retrying...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','39MBAWmF','_initConfigSync','配置参数:','\x20-\x20','MCP\x20已连接','Save\x20Configuration','Enter\x20your\x20API\x20key','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','RETRYING','MCP\x20Connected','905628qAtFus','removeItem','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcpConfig.apiApplyInfo.description','26072TAbehZ','pluginName','mcpConfig.configInstructions','mcp-ui.config','配置保存失败','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','trim','onStarting','univer-min-w-0\x20univer-flex-1','_dialogService','call','mcpConfig.apiApplyInfo.title','最大重试次数','mcpConfig.configSaved','什么是\x20API\x20密钥?','length','Connecting...','Univer\x20AI\x20Console','NETWORK_ERROR','Configuration\x20saved\x20successfully','182lcYaxv','univer.plus','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','3804309KtkcQA','__setCustomHeaders','univer-bg-red-500','会话\x20ID\x20已被占用,请稍后再试','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','Error','disposeWithMe','_messageService','forEach','API\x20密钥不能为空','点击连接\x20MCP','MCP\x20连接失败','get','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','showStatus','_config$','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','启用身份验证','errorMessage','div','mergeMenu','API\x20密钥长度至少需要\x2010\x20位','MCP:\x20未授权','apiKey','mcpServerUrl','重连中...','_initializeCommands','univer-bg-blue-500','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Saving...','mcpConfig.validation.apiKeyRequired','mcpConfig.saving','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.apiApplyInfo.univerAiLabel','CONNECTING','http','_uiPartsService','COMMAND','保存配置','warn','mcpConfig.apiApplyInfo.getStarted','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20connect\x20MCP','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','constructor','您的\x20API\x20密钥安全存储在本地存储中','_logService','将配置添加到您的\x20MCP\x20客户端设置文件中','MCP\x20配置','2907340iAljAD','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-space-y-5','Configuration\x20Notes:','univer-text-gray-400','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','网络连接错误,请检查您的网络连接','subscribe','prototype','register','_initializeMenus','univer-flex\x20univer-gap-3','mcpConfig.validation.invalidConfig','univer-text-xs\x20univer-text-gray-600','object','_injector','mcpConfig.connectionStatus.connected','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','univer-text-white','mcpConfig.connectionError.sessionOccupied','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','UNAUTHORIZED','iterator','text','value','univer-flex\x20univer-items-center\x20univer-gap-3','5303196LPLqBI','getOwnPropertyDescriptor','Disconnected','SESSION_ID_OCCUPIED','mcpConfig.connectionStatus.retrying','subscribeConfigValue$','API\x20Key','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_apiKey$','mcpStatus.networkError','univer-bg-green-500','function','span','MCP\x20客户端配置','mcpConfig.connectionError.maxRetriesExceeded','OTHERS','univer-flex\x20univer-items-start\x20univer-gap-3','univer-text-sm\x20univer-text-gray-500','@univerjs-pro/mcp-ui','univer-bg-gray-500','add','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','connectionStatus$','_componentManager','_initAutoConnect','_mcpConnectionController','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','MCP\x20Retrying...','mcpConfig.connectionError.networkError','MCP\x20重连中...','open','FAILED','mcpStatus.sessionOccupied','label','button','mcpStatus.unauthorized','MCP\x20Unknown\x20Status','MCP\x20已断开'];_0xd608=function(){return _0x362e87;};return _0xd608();}function U(_0x4a9b8a,_0x13360d,_0x235e8e){const _0x364cf3=_0x35218a;return(_0x13360d=se(_0x13360d))in _0x4a9b8a?Object[_0x364cf3(0xca)](_0x4a9b8a,_0x13360d,{'value':_0x235e8e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a9b8a[_0x13360d]=_0x235e8e,_0x4a9b8a;}function W(_0x4463ac,_0x388c89){return function(_0x5cb407,_0x354f4b){_0x388c89(_0x5cb407,_0x354f4b,_0x4463ac);};}function G(_0x5e8e11,_0x53b0de,_0x1a34b2,_0x1d4a48){const _0x45ef68=_0x35218a;var _0x2e28ef=arguments[_0x45ef68(0xfe)],_0x92e26f=_0x2e28ef<0x3?_0x53b0de:_0x1d4a48===null?_0x1d4a48=Object[_0x45ef68(0x155)](_0x53b0de,_0x1a34b2):_0x1d4a48,_0x9fe07c;if(typeof Reflect==_0x45ef68(0x148)&&typeof Reflect[_0x45ef68(0xc0)]==_0x45ef68(0x160))_0x92e26f=Reflect[_0x45ef68(0xc0)](_0x5e8e11,_0x53b0de,_0x1a34b2,_0x1d4a48);else{for(var _0x684eb9=_0x5e8e11[_0x45ef68(0xfe)]-0x1;_0x684eb9>=0x0;_0x684eb9--)(_0x9fe07c=_0x5e8e11[_0x684eb9])&&(_0x92e26f=(_0x2e28ef<0x3?_0x9fe07c(_0x92e26f):_0x2e28ef>0x3?_0x9fe07c(_0x53b0de,_0x1a34b2,_0x92e26f):_0x9fe07c(_0x53b0de,_0x1a34b2))||_0x92e26f);}return _0x2e28ef>0x3&&_0x92e26f&&Object[_0x45ef68(0xca)](_0x53b0de,_0x1a34b2,_0x92e26f),_0x92e26f;}const K='mcp.apiKey',q=_0x35218a(0x1bb);let J=class extends _0x634fb7{constructor(_0x534bec,_0x43ae91,_0x265bc9,_0x21b800,_0x5db6df,_0x30df1b,_0x4e5893,_0x5db90e,_0x2dd989,_0x47e800){const _0x223c26=_0x35218a;super(),this[_0x223c26(0x149)]=_0x534bec,this['_uiPartsService']=_0x43ae91,this[_0x223c26(0x187)]=_0x265bc9,this[_0x223c26(0x1bf)]=_0x21b800,this[_0x223c26(0xf8)]=_0x5db6df,this[_0x223c26(0x10e)]=_0x30df1b,this[_0x223c26(0x16d)]=_0x4e5893,this['_localeService']=_0x5db90e,this['_logService']=_0x2dd989,this[_0x223c26(0x16f)]=_0x47e800,U(this,'_loading$',new _0x4bdada(!0x1)),U(this,'_mcpCoreConfig$',new _0x4bdada({})),U(this,_0x223c26(0x116),new _0x4bdada({})),U(this,_0x223c26(0x15d),new _0x4bdada('')),U(this,_0x223c26(0x1c5),async _0x677a5=>{const _0x1ac7ee=_0x223c26;this['_loading$'][_0x1ac7ee(0x1a5)](!0x0);try{var _0x110674,_0x3a65e6;let _0x3b63c3=await this[_0x1ac7ee(0x1a3)](_0x677a5);if(!_0x3b63c3[_0x1ac7ee(0x1e2)]){this[_0x1ac7ee(0x10e)][_0x1ac7ee(0x17e)]({'type':_0x11c1e6[_0x1ac7ee(0x10c)],'content':_0x3b63c3[_0x1ac7ee(0x119)]||this['_localeService']['t'](_0x1ac7ee(0x146))});return;}_0x677a5['apiKey']?await this['_localStorageService']['setItem'](K,_0x677a5['apiKey']['trim']()):await this['_localStorageService'][_0x1ac7ee(0xec)](K),this[_0x1ac7ee(0x15d)]['next'](((_0x110674=_0x677a5[_0x1ac7ee(0x11e)])==null?void 0x0:_0x110674[_0x1ac7ee(0xf5)]())||''),this[_0x1ac7ee(0x16f)][_0x1ac7ee(0x107)]({'Authorization':_0x1ac7ee(0x1d0)+((_0x3a65e6=_0x677a5['apiKey'])==null?void 0x0:_0x3a65e6['trim']())}),this[_0x1ac7ee(0x10e)][_0x1ac7ee(0x17e)]({'type':_0x11c1e6[_0x1ac7ee(0x1ce)],'content':this['_localeService']['t'](_0x1ac7ee(0xfc))}),setTimeout(()=>{const _0x3688ce=_0x1ac7ee;this[_0x3688ce(0xf8)][_0x3688ce(0xc8)](q);},0x320);}catch(_0x363d8f){this[_0x1ac7ee(0x136)][_0x1ac7ee(0x1b6)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x363d8f),this[_0x1ac7ee(0x10e)][_0x1ac7ee(0x17e)]({'type':_0x11c1e6[_0x1ac7ee(0x10c)],'content':this[_0x1ac7ee(0xd0)]['t']('mcpConfig.configError')});}finally{this[_0x1ac7ee(0xd8)][_0x1ac7ee(0x1a5)](!0x1);}}),this[_0x223c26(0xe2)](),this[_0x223c26(0x1de)](),this[_0x223c26(0x1c8)]();}[_0x35218a(0xd4)](){const _0x4d0738=_0x35218a;let _0x811683=this[_0x4d0738(0x187)][_0x4d0738(0x1cd)](B);_0x811683!=null&&_0x811683[_0x4d0738(0x18f)]&&this['_dialogService'][_0x4d0738(0x174)]({'id':q,'title':{'title':this['_localeService']['t']('mcpConfig.title')},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x324d3d=_0x4d0738;this[_0x324d3d(0xf8)]['close'](q);}});}['getCurrentConfig'](){return this['_mcpCoreConfig$']['value'];}[_0x35218a(0x1c8)](){const _0x308c08=_0x35218a;this['disposeWithMe'](this[_0x308c08(0x16d)][_0x308c08(0x143)](_0x308c08(0xbc),this[_0x308c08(0x183)]()));}[_0x35218a(0x183)](){const _0x4b16a0=_0x35218a;return _0x4d5475(()=>{const _0x5f56f8=_0x1fe8;var _0x10a872,_0x10f279,_0x2033ad;return _0x288c52(z,{'config':this[_0x5f56f8(0x116)]['value'],'mcpCoreConfig':this[_0x5f56f8(0x1db)]['value'],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x5f56f8(0x1c5)],'loading':this[_0x5f56f8(0xd8)][_0x5f56f8(0x152)],'connectionStatus$':(_0x10a872=this[_0x5f56f8(0x16f)])==null?void 0x0:_0x10a872[_0x5f56f8(0x16c)],'connectionError$':(_0x10f279=this[_0x5f56f8(0x16f)])==null?void 0x0:_0x10f279['connectionError$'],'currentSessionId$':(_0x2033ad=this[_0x5f56f8(0x16f)])==null?void 0x0:_0x2033ad[_0x5f56f8(0x1ad)]});},this[_0x4b16a0(0x149)]);}['_initConfigSync'](){const _0x195729=_0x35218a;this[_0x195729(0x10d)](this[_0x195729(0x187)][_0x195729(0x159)](_0x562266)[_0x195729(0x141)](_0x16a6df=>{this['_mcpCoreConfig$']['next'](_0x16a6df||{});}));let _0x4f8e64=this[_0x195729(0x187)][_0x195729(0x1cd)](_0x562266);this[_0x195729(0x1db)][_0x195729(0x1a5)](_0x4f8e64||{}),this['disposeWithMe'](this[_0x195729(0x187)][_0x195729(0x159)](B)[_0x195729(0x141)](_0x445e96=>{const _0xdbd4f5=_0x195729;this[_0xdbd4f5(0x116)][_0xdbd4f5(0x1a5)](_0x445e96||{});}));let _0x46b2b4=this[_0x195729(0x187)][_0x195729(0x1cd)](B);this[_0x195729(0x116)]['next'](_0x46b2b4||{});}async[_0x35218a(0x1de)](){const _0x284815=_0x35218a;let _0x21a905=this['_configService'][_0x284815(0x1cd)](B);if(!(_0x21a905!=null&&_0x21a905[_0x284815(0x18f)]))return;let _0x31efc1=await this[_0x284815(0x1bf)]['getItem'](K);_0x31efc1&&(this['_mcpConnectionController'][_0x284815(0x107)]({'Authorization':_0x284815(0x1d0)+_0x31efc1}),this[_0x284815(0x15d)][_0x284815(0x1a5)](_0x31efc1));}async[_0x35218a(0x1a3)](_0x2c13f6){const _0x37b91e=_0x35218a;if(!_0x2c13f6[_0x37b91e(0x11e)]||_0x2c13f6['apiKey']['trim']()[_0x37b91e(0xfe)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x37b91e(0x125))};if(_0x2c13f6['apiKey']['trim']()[_0x37b91e(0xfe)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x37b91e(0xd0)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x29a87a=await this['_injector']['get'](_0x192377)[_0x37b91e(0x181)](_0x2c13f6[_0x37b91e(0x11e)][_0x37b91e(0xf5)]());return _0x29a87a[_0x37b91e(0x1e2)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x29a87a['error']||this['_localeService']['t'](_0x37b91e(0x1c0))};}catch(_0xa27477){return console[_0x37b91e(0x12e)](_0x37b91e(0x199),_0xa27477),{'isValid':!0x0};}}};J=G([W(0x0,_0x519d4f(_0x97e35a)),W(0x1,_0x1f23b3),W(0x2,_0x2220a),W(0x3,_0x3ab6f4),W(0x4,_0x40024d),W(0x5,_0x4e8535),W(0x6,_0x519d4f(_0xcc080b)),W(0x7,_0x519d4f(_0x485d48)),W(0x8,_0x3a67db),W(0x9,_0x519d4f(_0x192377))],J);const Y={'id':_0x35218a(0x17d),'type':_0x8c6f3b[_0x35218a(0x12c)],'handler':async(_0x1ff962,_0x1d7de8)=>(_0x1ff962[_0x35218a(0x113)](J)[_0x35218a(0xd4)](),!0x0)};function X(_0x4afa02,_0x17d825){const _0xc684c0=_0x35218a;switch(_0x4afa02){case _0x2cb78f[_0xc684c0(0xbe)]:return'mcpStatus.disconnected';case _0x2cb78f[_0xc684c0(0x129)]:return _0xc684c0(0xd5);case _0x2cb78f[_0xc684c0(0x182)]:return _0xc684c0(0x194);case _0x2cb78f[_0xc684c0(0x175)]:switch(_0x17d825){case _0x576943[_0xc684c0(0x14f)]:return _0xc684c0(0x179);case _0x576943[_0xc684c0(0x157)]:return _0xc684c0(0x176);case _0x576943[_0xc684c0(0x101)]:return _0xc684c0(0x15e);case _0x576943[_0xc684c0(0x1da)]:return'mcpStatus.maxRetriesExceeded';default:return _0xc684c0(0xd7);}case _0x2cb78f[_0xc684c0(0xe9)]:return _0xc684c0(0x191);default:return'mcpStatus.unknown';}}function ce(_0x15211c,_0x3302ac,_0x8e9a22,_0x17666b=!0x0){const _0x42429b=_0x35218a;let _0x107492=X(_0x15211c,_0x3302ac),_0x5445a8=_0x8e9a22['t'](_0x107492);return _0x17666b?_0x15211c===_0x2cb78f[_0x42429b(0xbe)]&&_0x3302ac===_0x576943[_0x42429b(0x14f)]?_0x5445a8+'\x20-\x20'+_0x8e9a22['t']('mcpStatus.clickToConfigure'):_0x15211c===_0x2cb78f[_0x42429b(0x182)]?''+_0x5445a8:_0x15211c===_0x2cb78f[_0x42429b(0xbe)]||_0x15211c===_0x2cb78f[_0x42429b(0x175)]?_0x5445a8+_0x42429b(0xe4)+_0x8e9a22['t']('mcpStatus.clickToConnect'):_0x5445a8:_0x5445a8;}function le(_0x214883){const _0x45c6ed=_0x35218a;switch(_0x214883){case _0x2cb78f['CONNECTED']:return'univer-text-green-500';case _0x2cb78f[_0x45c6ed(0x129)]:case _0x2cb78f[_0x45c6ed(0xe9)]:return _0x45c6ed(0xd3);case _0x2cb78f[_0x45c6ed(0x175)]:case _0x2cb78f[_0x45c6ed(0xbe)]:return'univer-text-red-500';default:return'univer-text-gray-500';}}function ue(_0x75eb89){const _0x56792c=_0x35218a;let {status$:_0x1c4ec8,error$:_0xc4d625,onConfigure:_0x4843bc,showClickable:_0x2ed030=!0x0}=_0x75eb89,_0x5acfa8=_0x554e27(_0x1c4ec8,_0x2cb78f[_0x56792c(0xbe)]),_0x176ab6=_0x554e27(_0xc4d625,_0x576943[_0x56792c(0x1a7)]),_0x2a8369=_0x1cd4cf(_0x485d48),_0x5720f3=_0x5acfa8===_0x2cb78f['CONNECTED'];_0x5acfa8===_0x2cb78f[_0x56792c(0x129)]||_0x2cb78f[_0x56792c(0xe9)];let _0xbcc97=_0x2a8369['t'](X(_0x5acfa8,_0x176ab6)),_0x2deedd=ce(_0x5acfa8,_0x176ab6,_0x2a8369,_0x2ed030),_0x2f84d3=le(_0x5acfa8),_0x305ab6=_0x288c52(_0x5720f3?_0x4e3349:_0x5a6443,{}),_0xc66e5b=_0x4fd27b(()=>{_0x2ed030&&_0x4843bc&&_0x4843bc();},[_0x2ed030,_0x4843bc]);function _0xe2c505(){const _0x3fb1e4=_0x56792c;return _0x410c89(_0x3fb1e4(0x11a),{'className':_0x4ba5b3(_0x3fb1e4(0x1d7),_0x2ed030&&_0x4843bc&&_0x3fb1e4(0x170)),'role':_0x3fb1e4(0x178),'onClick':_0x2ed030&&_0x4843bc?_0xc66e5b:void 0x0,'children':[_0x288c52(_0x3fb1e4(0x11a),{'className':_0x4ba5b3(_0x3fb1e4(0x1e0),_0x2f84d3),'children':_0x305ab6}),_0x288c52(_0x3fb1e4(0x11a),{'className':_0x3fb1e4(0x114),'children':_0xbcc97})]});}return _0x288c52(_0x26f1ea,{'title':_0x2deedd,'placement':'bottom','children':_0xe2c505()});}let Z=class extends _0x634fb7{constructor(_0x25ca90,_0x51df4f,_0x1b9050,_0x12e6b8){const _0x302b3f=_0x35218a;super(),this['_injector']=_0x25ca90,this[_0x302b3f(0x192)]=_0x51df4f,this[_0x302b3f(0x12b)]=_0x1b9050,this['_configService']=_0x12e6b8,this[_0x302b3f(0x16e)](),this[_0x302b3f(0x1bc)]();}[_0x35218a(0x16e)](){const _0x4b14d9=_0x35218a;let _0x1b0da6=this[_0x4b14d9(0x187)][_0x4b14d9(0x1cd)](B);_0x1b0da6!=null&&_0x1b0da6[_0x4b14d9(0x18f)]&&(this[_0x4b14d9(0x192)]['enableAutoConnect']=!0x1);}[_0x35218a(0x1bc)](){const _0x3a6d5c=_0x35218a;let _0x492c4e=this[_0x3a6d5c(0x187)][_0x3a6d5c(0x1cd)](B);(_0x492c4e==null?void 0x0:_0x492c4e[_0x3a6d5c(0x115)])!==!0x1&&this[_0x3a6d5c(0x10d)](this[_0x3a6d5c(0x12b)][_0x3a6d5c(0x1b5)](_0x14998e['HEADER_MENU'],()=>{const _0x21c077=_0x3a6d5c;var _0x4e9394;return _0x4d5475(de({'status$':this[_0x21c077(0x192)]['connectionStatus$'],'error$':this[_0x21c077(0x192)][_0x21c077(0x1d3)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x4e9394=_0x492c4e==null?void 0x0:_0x492c4e[_0x21c077(0x18f)])==null?!0x1:_0x4e9394}),this[_0x21c077(0x149)]);}));}['_handleConfigure'](){const _0x1bf46a=_0x35218a;this['_injector'][_0x1bf46a(0x113)](J)['showConfigPanel']();}};Z=G([W(0x0,_0x519d4f(_0x97e35a)),W(0x1,_0x519d4f(_0x192377)),W(0x2,_0x1f23b3),W(0x3,_0x2220a)],Z);function de(_0x2414f5){let {status$:_0xf15e72,error$:_0x767cc4,onConfigure:_0x44d2c5,showClickable:_0x60d610}=_0x2414f5;return function(){return _0x288c52(ue,{'status$':_0xf15e72,'error$':_0x767cc4,'onConfigure':_0x44d2c5,'showClickable':_0x60d610});};}function fe(_0x4dad6f){const _0x9e2fc1=_0x35218a;return{'id':Y['id'],'type':_0x347f6f['BUTTON'],'icon':_0x9e2fc1(0x17f),'title':_0x9e2fc1(0x18c),'tooltip':_0x9e2fc1(0x18c)};}const pe={[_0x2fd2cb[_0x35218a(0x164)]]:{[Y['id']]:{'order':0xa,'menuItemFactory':fe}}};let Q=class extends _0x634fb7{constructor(_0xfc571f,_0xb8095d){const _0x255ebc=_0x35218a;super(),this[_0x255ebc(0x19b)]=_0xfc571f,this[_0x255ebc(0xdb)]=_0xb8095d,this[_0x255ebc(0x121)](),this[_0x255ebc(0x144)]();}[_0x35218a(0x121)](){const _0x22a53e=_0x35218a;[Y][_0x22a53e(0x10f)](_0x698b8d=>{const _0x41d2f4=_0x22a53e;this[_0x41d2f4(0x10d)](this[_0x41d2f4(0x19b)][_0x41d2f4(0x1cf)](_0x698b8d));});}['_initializeMenus'](){const _0x10b388=_0x35218a;this['_menuManagerService'][_0x10b388(0x11b)](pe);}};Q=G([W(0x0,_0x14b703),W(0x1,_0x246c7e)],Q);const me={'mcpStatus':{'disconnected':_0x35218a(0x185),'connecting':'MCP\x20Connecting...','connected':_0x35218a(0xea),'failed':'MCP\x20Connection\x20Failed','retrying':_0x35218a(0x171),'unknown':_0x35218a(0x17a),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x35218a(0x131),'clickToConfigure':_0x35218a(0xcb)},'mcpConfig':{'title':_0x35218a(0x1ba),'description':_0x35218a(0x1dd),'apiKey':_0x35218a(0x15a),'apiKeyPlaceholder':_0x35218a(0xe7),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x35218a(0x1a8),'enableAuthHint':_0x35218a(0xd6),'connectionInfo':_0x35218a(0xbf),'mcpClientConfig':_0x35218a(0xbf),'configInstructions':_0x35218a(0xe0),'configStepTitle':_0x35218a(0x1ab),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x35218a(0x133),'sessionId':_0x35218a(0x1a0),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x35218a(0x18d),'configParameters':_0x35218a(0xd1),'maxRetries':'Max\x20Retries','save':_0x35218a(0xe6),'saving':_0x35218a(0x124),'note1':_0x35218a(0x1b0),'note2':_0x35218a(0x1af),'configSaved':_0x35218a(0x102),'configError':_0x35218a(0x193),'apiApplyInfo':{'title':_0x35218a(0xcc),'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':_0x35218a(0x100),'getStarted':_0x35218a(0x130)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x35218a(0x197),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x35218a(0x156),'connecting':_0x35218a(0xff),'connected':_0x35218a(0x1a6),'failed':'Connection\x20Failed','retrying':_0x35218a(0xdf)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x35218a(0x14e),'networkError':_0x35218a(0x13e),'maxRetriesExceeded':_0x35218a(0x15c)}}},he={'mcpStatus':{'disconnected':_0x35218a(0x17b),'connecting':'MCP\x20连接中...','connected':_0x35218a(0xe5),'failed':_0x35218a(0x112),'retrying':_0x35218a(0x173),'unknown':_0x35218a(0x1c3),'unauthorized':_0x35218a(0x11d),'sessionOccupied':_0x35218a(0x180),'networkError':_0x35218a(0x198),'maxRetriesExceeded':_0x35218a(0x1a1),'clickToConnect':_0x35218a(0x111),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x35218a(0x138),'description':_0x35218a(0x123),'apiKey':_0x35218a(0xcf),'apiKeyPlaceholder':_0x35218a(0xd2),'apiKeyHint':_0x35218a(0x1d9),'enableAuth':_0x35218a(0x118),'enableAuthHint':_0x35218a(0xc1),'connectionInfo':_0x35218a(0x162),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x35218a(0x195),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x35218a(0x137),'configStep3':_0x35218a(0xc7),'sessionId':'会话ID','sessionIdDescription':_0x35218a(0x13a),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x35218a(0xe3),'maxRetries':_0x35218a(0xfb),'save':_0x35218a(0x12d),'saving':'保存中...','note1':'配置更改将立即生效','note2':_0x35218a(0x135),'configSaved':_0x35218a(0xc3),'configError':_0x35218a(0xf3),'apiApplyInfo':{'title':_0x35218a(0xfd),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x35218a(0xc2)},'validation':{'apiKeyRequired':_0x35218a(0x110),'apiKeyTooShort':_0x35218a(0x11c),'invalidConfig':'配置无效','invalidApiKey':_0x35218a(0x1b4)},'connectionStatus':{'disconnected':_0x35218a(0xcd),'connecting':'连接中...','connected':'已连接','failed':_0x35218a(0xc4),'retrying':_0x35218a(0x120)},'connectionError':{'unauthorized':_0x35218a(0xde),'sessionOccupied':_0x35218a(0x109),'networkError':_0x35218a(0x140),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var ge=_0x35218a(0x167),_e='0.19.0';let $=class extends _0x2c7e0b{constructor(_0x2bbc5a=V,_0x1e5d7a,_0x32c33f,_0x2c7022,_0x38d901,_0xbf5fd){const _0x38e2d2=_0x35218a;super(),this[_0x38e2d2(0x19a)]=_0x2bbc5a,this[_0x38e2d2(0x149)]=_0x1e5d7a,this[_0x38e2d2(0x187)]=_0x32c33f,this['_uiPartsService']=_0x2c7022,this[_0x38e2d2(0x1bf)]=_0x38d901,this[_0x38e2d2(0xd0)]=_0xbf5fd;let {..._0x272741}=_0xd6e0f4({},V,this[_0x38e2d2(0x19a)]);this[_0x38e2d2(0x187)][_0x38e2d2(0x1dc)](B,_0x272741);}async[_0x35218a(0xf6)](){const _0x4e7f13=_0x35218a;let _0x1458be=[[Z],[J],[Q]];this[_0x4e7f13(0x149)][_0x4e7f13(0xda)](_0x4e295d)||_0x1458be[_0x4e7f13(0x18e)]([_0x4e295d,{'useClass':_0x5e9f21}]),_0x1458be['forEach'](_0x11d1e7=>this[_0x4e7f13(0x149)][_0x4e7f13(0x169)](_0x11d1e7)),this['_injector']['get'](Z),this['_injector']['get'](J),this[_0x4e7f13(0x149)][_0x4e7f13(0x113)](Q);}};U($,_0x35218a(0xf0),'MCP_UI_PLUGIN'),U($,_0x35218a(0x1df),ge),U($,_0x35218a(0x1cb),_e),$=G([_0x32a5f5(_0x2af01b),W(0x1,_0x519d4f(_0x97e35a)),W(0x2,_0x2220a),W(0x3,_0x1f23b3),W(0x4,_0x3ab6f4),W(0x5,_0x519d4f(_0x485d48))],$);export{z as MCPConfigPanel,J as MCPConfigUIController,Z as MCPConnectionUIController,ue as MCPStatusDisplay,Q as MCPUIMenuController,Y as OpenMCPConfigPanelCommand,$ as UniverMCPUIPlugin,me as enUS,he as zhCN};
@@ -1 +1 @@
1
- const _0x42dd9f=_0x1cc1;(function(_0x5467d5,_0x4af7a3){const _0x3e57d4=_0x1cc1,_0x190782=_0x5467d5();while(!![]){try{const _0xd35bdd=-parseInt(_0x3e57d4(0xc4))/0x1*(parseInt(_0x3e57d4(0xc0))/0x2)+parseInt(_0x3e57d4(0xed))/0x3*(-parseInt(_0x3e57d4(0xd5))/0x4)+-parseInt(_0x3e57d4(0xd8))/0x5+-parseInt(_0x3e57d4(0xd2))/0x6+parseInt(_0x3e57d4(0xd1))/0x7*(-parseInt(_0x3e57d4(0xc8))/0x8)+-parseInt(_0x3e57d4(0xca))/0x9+parseInt(_0x3e57d4(0xdf))/0xa;if(_0xd35bdd===_0x4af7a3)break;else _0x190782['push'](_0x190782['shift']());}catch(_0x22e190){_0x190782['push'](_0x190782['shift']());}}}(_0x3b7d,0x23fef));const e={'mcpStatus':{'disconnected':_0x42dd9f(0xcf),'connecting':_0x42dd9f(0xe0),'connected':_0x42dd9f(0xcb),'failed':_0x42dd9f(0xc9),'retrying':_0x42dd9f(0xc6),'unknown':_0x42dd9f(0xc5),'unauthorized':_0x42dd9f(0xd7),'sessionOccupied':_0x42dd9f(0xdc),'networkError':_0x42dd9f(0xe2),'maxRetriesExceeded':_0x42dd9f(0xef),'clickToConnect':_0x42dd9f(0xc7),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x42dd9f(0xee),'description':_0x42dd9f(0xe3),'apiKey':_0x42dd9f(0xd9),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x42dd9f(0xe5),'enableAuth':_0x42dd9f(0xdd),'enableAuthHint':_0x42dd9f(0xde),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x42dd9f(0xeb),'configStepTitle':_0x42dd9f(0xe8),'configStep1':_0x42dd9f(0xd4),'configStep2':_0x42dd9f(0xc1),'configStep3':_0x42dd9f(0xe1),'sessionId':_0x42dd9f(0xce),'sessionIdDescription':_0x42dd9f(0xbf),'authorizationDescription':_0x42dd9f(0xe9),'configParameters':_0x42dd9f(0xc2),'maxRetries':_0x42dd9f(0xc3),'save':'Save\x20Configuration','saving':_0x42dd9f(0xf1),'note1':_0x42dd9f(0xdb),'note2':_0x42dd9f(0xd3),'configSaved':_0x42dd9f(0xe6),'configError':_0x42dd9f(0xcc),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x42dd9f(0xd6),'univerAiLabel':_0x42dd9f(0xcd),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x42dd9f(0xf2),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x42dd9f(0xd0),'connecting':_0x42dd9f(0xec),'connected':_0x42dd9f(0xda),'failed':_0x42dd9f(0xf3),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x42dd9f(0xe7),'sessionOccupied':_0x42dd9f(0xe4),'networkError':_0x42dd9f(0xea),'maxRetriesExceeded':_0x42dd9f(0xf0)}}};function _0x1cc1(_0x3283a4,_0x63e17f){_0x3283a4=_0x3283a4-0xbf;const _0x3b7d67=_0x3b7d();let _0x1cc159=_0x3b7d67[_0x3283a4];return _0x1cc159;}function _0x3b7d(){const _0x3bd3f2=['Enable\x20authentication\x20for\x20secure\x20connections','10085990XZioYE','MCP\x20Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Network\x20Error','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20saved\x20successfully','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Steps:','API\x20key\x20with\x20Bearer\x20prefix.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connecting...','73551CiUlkE','MCP\x20Configuration','MCP:\x20Max\x20Retries\x20Exceeded','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Saving...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','449378SkpWZw','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Parameters:','Max\x20Retries','1GavKBJ','MCP\x20Unknown\x20Status','MCP\x20Retrying...','Click\x20to\x20connect\x20MCP','656nvcVUw','MCP\x20Connection\x20Failed','1681884CiobWZ','MCP\x20Connected','Failed\x20to\x20save\x20configuration','Univer\x20AI\x20Console','Session\x20ID','MCP\x20Disconnected','Disconnected','11781PNTyKS','259398LgbOLk','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Copy\x20the\x20JSON\x20configuration\x20below','36XRcxFu','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:\x20Unauthorized','238515eSPNFF','API\x20Key','Connected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Session\x20ID\x20Occupied','Enable\x20Authentication'];_0x3b7d=function(){return _0x3bd3f2;};return _0x3b7d();}export{e as default};
1
+ const _0x2ff0b3=_0x1f96;function _0x1f96(_0x3fafcd,_0x37f6b4){_0x3fafcd=_0x3fafcd-0x121;const _0x2002c0=_0x2002();let _0x1f9616=_0x2002c0[_0x3fafcd];return _0x1f9616;}(function(_0x301bea,_0x24bea0){const _0x433b4d=_0x1f96,_0x14a21e=_0x301bea();while(!![]){try{const _0x43bcf0=parseInt(_0x433b4d(0x131))/0x1+parseInt(_0x433b4d(0x151))/0x2+-parseInt(_0x433b4d(0x153))/0x3*(-parseInt(_0x433b4d(0x12c))/0x4)+parseInt(_0x433b4d(0x125))/0x5*(-parseInt(_0x433b4d(0x12e))/0x6)+parseInt(_0x433b4d(0x13a))/0x7*(-parseInt(_0x433b4d(0x140))/0x8)+-parseInt(_0x433b4d(0x12a))/0x9+-parseInt(_0x433b4d(0x13d))/0xa*(-parseInt(_0x433b4d(0x128))/0xb);if(_0x43bcf0===_0x24bea0)break;else _0x14a21e['push'](_0x14a21e['shift']());}catch(_0x2a3676){_0x14a21e['push'](_0x14a21e['shift']());}}}(_0x2002,0xe8ef7));function _0x2002(){const _0x283732=['MCP\x20Unknown\x20Status','13188VrNgnF','Invalid\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','50tBKnck','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Failed\x20to\x20save\x20configuration','4712pxTqst','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','MCP\x20Client\x20Configuration','Configuration\x20Steps:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20Key','What\x20is\x20API\x20Key?','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Retrying...','Saving...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','2612326IdkeZk','Configuration\x20Parameters:','2887671TbOuId','Click\x20to\x20configure\x20MCP','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Network\x20Error','MCP:\x20Session\x20ID\x20Occupied','Univer\x20AI\x20Console','MCP\x20Retrying...','78145nbUDPR','MCP\x20Disconnected','Max\x20Retries','472285PcmpGq','Enable\x20Authentication','6094602JHzzhr','Configuration\x20saved\x20successfully','4aJWnyb','API\x20key\x20is\x20required','24IQmmUg','MCP\x20Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','320078DNLArs','Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Session\x20ID','Click\x20to\x20connect\x20MCP','MCP\x20Connected'];_0x2002=function(){return _0x283732;};return _0x2002();}const e={'mcpStatus':{'disconnected':_0x2ff0b3(0x126),'connecting':_0x2ff0b3(0x12f),'connected':_0x2ff0b3(0x138),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2ff0b3(0x124),'unknown':_0x2ff0b3(0x139),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x2ff0b3(0x122),'networkError':_0x2ff0b3(0x121),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2ff0b3(0x137),'clickToConfigure':_0x2ff0b3(0x154)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x2ff0b3(0x130),'apiKey':_0x2ff0b3(0x147),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2ff0b3(0x146),'enableAuth':_0x2ff0b3(0x129),'enableAuthHint':_0x2ff0b3(0x13c),'connectionInfo':_0x2ff0b3(0x143),'mcpClientConfig':_0x2ff0b3(0x143),'configInstructions':_0x2ff0b3(0x149),'configStepTitle':_0x2ff0b3(0x144),'configStep1':_0x2ff0b3(0x14c),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2ff0b3(0x14b),'sessionId':_0x2ff0b3(0x136),'sessionIdDescription':_0x2ff0b3(0x155),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x2ff0b3(0x152),'maxRetries':_0x2ff0b3(0x127),'save':'Save\x20Configuration','saving':_0x2ff0b3(0x14f),'note1':_0x2ff0b3(0x13e),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x2ff0b3(0x12b),'configError':_0x2ff0b3(0x13f),'apiApplyInfo':{'title':_0x2ff0b3(0x148),'description':_0x2ff0b3(0x150),'univerAiLabel':_0x2ff0b3(0x123),'getStarted':_0x2ff0b3(0x133)},'validation':{'apiKeyRequired':_0x2ff0b3(0x12d),'apiKeyTooShort':_0x2ff0b3(0x14d),'invalidConfig':_0x2ff0b3(0x13b),'invalidApiKey':_0x2ff0b3(0x14a)},'connectionStatus':{'disconnected':_0x2ff0b3(0x132),'connecting':'Connecting...','connected':'Connected','failed':_0x2ff0b3(0x142),'retrying':_0x2ff0b3(0x14e)},'connectionError':{'unauthorized':_0x2ff0b3(0x134),'sessionOccupied':_0x2ff0b3(0x135),'networkError':_0x2ff0b3(0x145),'maxRetriesExceeded':_0x2ff0b3(0x141)}}};export{e as default};
@@ -1 +1 @@
1
- function _0x143f(){const _0x1b9749=['Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','2948050uOiLhS','MCP:\x20Session\x20ID\x20Occupied','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','2605446AirLOq','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','Connection\x20Failed','16DNEIxv','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\x20Connecting...','What\x20is\x20API\x20Key?','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','2765004GXhCTz','MCP:\x20Unauthorized','API\x20key\x20is\x20required','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Connecting...','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','563472TeCVBr','API\x20key\x20with\x20Bearer\x20prefix.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Network\x20Error','1671452DuqzUR','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','MCP\x20Retrying...','API\x20Key','15AikAzs','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Disconnected','MCP\x20Configuration','Configuration\x20saved\x20successfully','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','4laetYi','Enable\x20Authentication','Configuration\x20Parameters:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Max\x20Retries','48pTXkdq','Session\x20ID','10CDNnzO','845862NGctMC','Invalid\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','14778387CyOyQw','Retrying...','Save\x20Configuration','Univer\x20AI\x20Console','Connected','MCP\x20Connected'];_0x143f=function(){return _0x1b9749;};return _0x143f();}function _0x53b7(_0x120a11,_0x1b330c){_0x120a11=_0x120a11-0x142;const _0x143fdf=_0x143f();let _0x53b7b8=_0x143fdf[_0x120a11];return _0x53b7b8;}const _0x194a58=_0x53b7;(function(_0x100933,_0x58e2ef){const _0x555648=_0x53b7,_0x105fe5=_0x100933();while(!![]){try{const _0xcfe7c4=-parseInt(_0x555648(0x14e))/0x1+parseInt(_0x555648(0x171))/0x2+parseInt(_0x555648(0x16d))/0x3*(-parseInt(_0x555648(0x146))/0x4)+parseInt(_0x555648(0x176))/0x5*(parseInt(_0x555648(0x15c))/0x6)+parseInt(_0x555648(0x159))/0x7*(-parseInt(_0x555648(0x160))/0x8)+-parseInt(_0x555648(0x152))/0x9*(-parseInt(_0x555648(0x14d))/0xa)+parseInt(_0x555648(0x165))/0xb*(-parseInt(_0x555648(0x14b))/0xc);if(_0xcfe7c4===_0x58e2ef)break;else _0x105fe5['push'](_0x105fe5['shift']());}catch(_0x4597e5){_0x105fe5['push'](_0x105fe5['shift']());}}}(_0x143f,0xdb7ea));const e={'mcpStatus':{'disconnected':_0x194a58(0x142),'connecting':_0x194a58(0x162),'connected':_0x194a58(0x157),'failed':_0x194a58(0x179),'retrying':_0x194a58(0x174),'unknown':_0x194a58(0x169),'unauthorized':_0x194a58(0x166),'sessionOccupied':_0x194a58(0x15a),'networkError':_0x194a58(0x170),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x194a58(0x143),'description':_0x194a58(0x16c),'apiKey':_0x194a58(0x175),'apiKeyPlaceholder':_0x194a58(0x16b),'apiKeyHint':_0x194a58(0x178),'enableAuth':_0x194a58(0x147),'enableAuthHint':_0x194a58(0x15e),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x194a58(0x172),'configInstructions':_0x194a58(0x168),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x194a58(0x177),'configStep2':_0x194a58(0x164),'configStep3':_0x194a58(0x15d),'sessionId':_0x194a58(0x14c),'sessionIdDescription':_0x194a58(0x158),'authorizationDescription':_0x194a58(0x16e),'configParameters':_0x194a58(0x148),'maxRetries':_0x194a58(0x14a),'save':_0x194a58(0x154),'saving':'Saving...','note1':_0x194a58(0x151),'note2':_0x194a58(0x15b),'configSaved':_0x194a58(0x144),'configError':_0x194a58(0x173),'apiApplyInfo':{'title':_0x194a58(0x163),'description':_0x194a58(0x161),'univerAiLabel':_0x194a58(0x155),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x194a58(0x167),'apiKeyTooShort':_0x194a58(0x17a),'invalidConfig':_0x194a58(0x14f),'invalidApiKey':_0x194a58(0x150)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x194a58(0x16a),'connected':_0x194a58(0x156),'failed':_0x194a58(0x15f),'retrying':_0x194a58(0x153)},'connectionError':{'unauthorized':_0x194a58(0x145),'sessionOccupied':_0x194a58(0x149),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x194a58(0x16f)}}};export{e as default};
1
+ const _0x260f58=_0x5c20;(function(_0x156447,_0x154e0f){const _0x53b8c1=_0x5c20,_0x2b31b3=_0x156447();while(!![]){try{const _0x39c983=-parseInt(_0x53b8c1(0x8f))/0x1*(parseInt(_0x53b8c1(0x86))/0x2)+parseInt(_0x53b8c1(0xad))/0x3*(parseInt(_0x53b8c1(0xb2))/0x4)+parseInt(_0x53b8c1(0xb0))/0x5+parseInt(_0x53b8c1(0xaf))/0x6+-parseInt(_0x53b8c1(0x91))/0x7*(-parseInt(_0x53b8c1(0xa1))/0x8)+-parseInt(_0x53b8c1(0x8c))/0x9*(parseInt(_0x53b8c1(0x97))/0xa)+-parseInt(_0x53b8c1(0xa8))/0xb*(parseInt(_0x53b8c1(0x8e))/0xc);if(_0x39c983===_0x154e0f)break;else _0x2b31b3['push'](_0x2b31b3['shift']());}catch(_0x2a536b){_0x2b31b3['push'](_0x2b31b3['shift']());}}}(_0xfeab,0xd76a6));const e={'mcpStatus':{'disconnected':_0x260f58(0x89),'connecting':_0x260f58(0x83),'connected':_0x260f58(0x9e),'failed':_0x260f58(0x8d),'retrying':_0x260f58(0x84),'unknown':_0x260f58(0xa2),'unauthorized':_0x260f58(0xa9),'sessionOccupied':_0x260f58(0x8a),'networkError':_0x260f58(0x96),'maxRetriesExceeded':_0x260f58(0xb4),'clickToConnect':_0x260f58(0x9a),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x260f58(0xa3),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x260f58(0xa7),'apiKeyHint':_0x260f58(0x90),'enableAuth':_0x260f58(0xb1),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x260f58(0xaa),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x260f58(0x9f),'configStepTitle':_0x260f58(0xb7),'configStep1':_0x260f58(0x98),'configStep2':_0x260f58(0x85),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x260f58(0x9c),'sessionIdDescription':_0x260f58(0xa5),'authorizationDescription':_0x260f58(0x9d),'configParameters':_0x260f58(0xa0),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0x260f58(0x94),'note2':_0x260f58(0xb3),'configSaved':_0x260f58(0xae),'configError':_0x260f58(0xa4),'apiApplyInfo':{'title':_0x260f58(0xb5),'description':_0x260f58(0xb6),'univerAiLabel':_0x260f58(0x87),'getStarted':_0x260f58(0x88)},'validation':{'apiKeyRequired':_0x260f58(0x8b),'apiKeyTooShort':_0x260f58(0x93),'invalidConfig':_0x260f58(0xb8),'invalidApiKey':_0x260f58(0x92)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x260f58(0x95),'connected':_0x260f58(0x9b),'failed':_0x260f58(0x99),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x260f58(0xa6),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x260f58(0xac),'maxRetriesExceeded':_0x260f58(0xab)}}};function _0x5c20(_0x37d25d,_0x5300c9){_0x37d25d=_0x37d25d-0x83;const _0xfeab4b=_0xfeab();let _0x5c207d=_0xfeab4b[_0x37d25d];return _0x5c207d;}export{e as default};function _0xfeab(){const _0x2f61b2=['1505529TrhwxY','Configuration\x20saved\x20successfully','8686464mxLpev','2184310xakNgb','Enable\x20Authentication','12RPEclL','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Max\x20Retries\x20Exceeded','What\x20is\x20API\x20Key?','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Steps:','Invalid\x20configuration','MCP\x20Connecting...','MCP\x20Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','10NflnBu','Univer\x20AI\x20Console','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20is\x20required','108pgfNUl','MCP\x20Connection\x20Failed','5027304TIXdzh','321166tGCAvH','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','7FXDmNc','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connecting...','MCP:\x20Network\x20Error','527210Tluijw','Copy\x20the\x20JSON\x20configuration\x20below','Connection\x20Failed','Click\x20to\x20connect\x20MCP','Connected','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20Parameters:','7900120gYCCmM','MCP\x20Unknown\x20Status','MCP\x20Configuration','Failed\x20to\x20save\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Enter\x20your\x20API\x20key','33arjuTA','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection'];_0xfeab=function(){return _0x2f61b2;};return _0xfeab();}