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

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 (50) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +1 -1
  13. package/lib/es/locale/ca-ES.js +1 -1
  14. package/lib/es/locale/en-US.js +1 -1
  15. package/lib/es/locale/es-ES.js +1 -1
  16. package/lib/es/locale/fa-IR.js +1 -1
  17. package/lib/es/locale/fr-FR.js +1 -1
  18. package/lib/es/locale/ko-KR.js +1 -1
  19. package/lib/es/locale/ru-RU.js +1 -1
  20. package/lib/es/locale/vi-VN.js +1 -1
  21. package/lib/es/locale/zh-CN.js +1 -1
  22. package/lib/es/locale/zh-TW.js +1 -1
  23. package/lib/index.css +1 -1
  24. package/lib/index.js +1 -1
  25. package/lib/locale/ca-ES.js +1 -1
  26. package/lib/locale/en-US.js +1 -1
  27. package/lib/locale/es-ES.js +1 -1
  28. package/lib/locale/fa-IR.js +1 -1
  29. package/lib/locale/fr-FR.js +1 -1
  30. package/lib/locale/ko-KR.js +1 -1
  31. package/lib/locale/ru-RU.js +1 -1
  32. package/lib/locale/vi-VN.js +1 -1
  33. package/lib/locale/zh-CN.js +1 -1
  34. package/lib/locale/zh-TW.js +1 -1
  35. package/lib/types/controllers/mcp-config-ui.controller.d.ts +1 -0
  36. package/lib/types/locale/en-US.d.ts +9 -1
  37. package/lib/types/locale/zh-CN.d.ts +9 -1
  38. package/lib/types/views/components/mcp-config.d.ts +7 -1
  39. package/lib/umd/index.js +1 -1
  40. package/lib/umd/locale/ca-ES.js +1 -1
  41. package/lib/umd/locale/en-US.js +1 -1
  42. package/lib/umd/locale/es-ES.js +1 -1
  43. package/lib/umd/locale/fa-IR.js +1 -1
  44. package/lib/umd/locale/fr-FR.js +1 -1
  45. package/lib/umd/locale/ko-KR.js +1 -1
  46. package/lib/umd/locale/ru-RU.js +1 -1
  47. package/lib/umd/locale/vi-VN.js +1 -1
  48. package/lib/umd/locale/zh-CN.js +1 -1
  49. package/lib/umd/locale/zh-TW.js +1 -1
  50. package/package.json +6 -5
@@ -1 +1 @@
1
- function _0x5df8(_0x28f4cf,_0x38feaa){const _0x2de537=_0x2de5();return _0x5df8=function(_0x5df827,_0x392f4e){_0x5df827=_0x5df827-0xb7;let _0x1d8e9b=_0x2de537[_0x5df827];return _0x1d8e9b;},_0x5df8(_0x28f4cf,_0x38feaa);}function _0x2de5(){const _0x41506d=['Server\x20Endpoint','API\x20key\x20is\x20required','Click\x20to\x20connect\x20MCP','Max\x20Retries','MCP:\x20Max\x20Retries\x20Exceeded','282896uFIUqF','MCP\x20Unknown\x20Status','2hupUpQ','1375901atnmzW','MCP\x20Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Session\x20Occupied','8093928vYOTtY','395pKWoAP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','510ZukCVz','Configuration\x20saved\x20successfully','API\x20Key','Enable\x20Authentication','Invalid\x20configuration','532665SCIlNm','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Connected','4982643XyqMQH','Connected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Save\x20Configuration','Session\x20ID','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','62988DVHjXd','5123937xPexlc','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Network\x20Error','Enter\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connecting...','MCP:\x20API\x20Key\x20Missing','MCP\x20Connection\x20Failed','What\x20is\x20API\x20Key?','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later'];_0x2de5=function(){return _0x41506d;};return _0x2de5();}const _0x120843=_0x5df8;(function(_0x5dc408,_0x3bfa09){const _0x5551f5=_0x5df8,_0x20def7=_0x5dc408();while(!![]){try{const _0x592a9f=-parseInt(_0x5551f5(0xce))/0x1*(-parseInt(_0x5551f5(0xcd))/0x2)+-parseInt(_0x5551f5(0xde))/0x3+parseInt(_0x5551f5(0xbb))/0x4*(-parseInt(_0x5551f5(0xd3))/0x5)+-parseInt(_0x5551f5(0xd2))/0x6+parseInt(_0x5551f5(0xbc))/0x7+-parseInt(_0x5551f5(0xcb))/0x8+-parseInt(_0x5551f5(0xdb))/0x9*(-parseInt(_0x5551f5(0xd6))/0xa);if(_0x592a9f===_0x3bfa09)break;else _0x20def7['push'](_0x20def7['shift']());}catch(_0x568ae3){_0x20def7['push'](_0x20def7['shift']());}}}(_0x2de5,0xcc5db));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x120843(0xcf),'connected':_0x120843(0xdd),'failed':_0x120843(0xc3),'retrying':'MCP\x20Retrying...','unknown':_0x120843(0xcc),'missingApiKey':_0x120843(0xc2),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x120843(0xd1),'networkError':_0x120843(0xbe),'maxRetriesExceeded':_0x120843(0xca),'clickToConnect':_0x120843(0xc8),'clickToConfigure':_0x120843(0xd5)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x120843(0xb9),'apiKey':_0x120843(0xd8),'apiKeyPlaceholder':_0x120843(0xbf),'apiKeyHint':_0x120843(0xd4),'enableAuth':_0x120843(0xd9),'enableAuthHint':_0x120843(0xd0),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x120843(0xc6),'sessionId':_0x120843(0xb8),'maxRetries':_0x120843(0xc9),'save':_0x120843(0xb7),'saving':'Saving...','note1':_0x120843(0xc0),'note2':_0x120843(0xdc),'configSaved':_0x120843(0xd7),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x120843(0xc4),'description':_0x120843(0xe0),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x120843(0xc7),'apiKeyTooShort':_0x120843(0xbd),'invalidConfig':_0x120843(0xda),'invalidApiKey':_0x120843(0xba)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x120843(0xc1),'connected':_0x120843(0xdf),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x120843(0xc5),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
1
+ function _0x3679(_0x56fbc1,_0x2a156f){const _0x19ddce=_0x19dd();return _0x3679=function(_0x367916,_0x1d094d){_0x367916=_0x367916-0x1b9;let _0x488bda=_0x19ddce[_0x367916];return _0x488bda;},_0x3679(_0x56fbc1,_0x2a156f);}const _0x2c423e=_0x3679;(function(_0x3bcc6f,_0x276d80){const _0xce2533=_0x3679,_0x14ed91=_0x3bcc6f();while(!![]){try{const _0x39a841=-parseInt(_0xce2533(0x1ec))/0x1*(-parseInt(_0xce2533(0x1eb))/0x2)+parseInt(_0xce2533(0x1cf))/0x3+parseInt(_0xce2533(0x1e1))/0x4*(-parseInt(_0xce2533(0x1e5))/0x5)+-parseInt(_0xce2533(0x1cb))/0x6*(-parseInt(_0xce2533(0x1c3))/0x7)+parseInt(_0xce2533(0x1e6))/0x8*(-parseInt(_0xce2533(0x1c2))/0x9)+parseInt(_0xce2533(0x1e3))/0xa+parseInt(_0xce2533(0x1e9))/0xb*(-parseInt(_0xce2533(0x1da))/0xc);if(_0x39a841===_0x276d80)break;else _0x14ed91['push'](_0x14ed91['shift']());}catch(_0x530b57){_0x14ed91['push'](_0x14ed91['shift']());}}}(_0x19dd,0x684c4));const e={'mcpStatus':{'disconnected':_0x2c423e(0x1df),'connecting':_0x2c423e(0x1d3),'connected':_0x2c423e(0x1c4),'failed':_0x2c423e(0x1c5),'retrying':'MCP\x20Retrying...','unknown':_0x2c423e(0x1ce),'missingApiKey':_0x2c423e(0x1b9),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x2c423e(0x1e8),'networkError':_0x2c423e(0x1dd),'maxRetriesExceeded':_0x2c423e(0x1be),'clickToConnect':_0x2c423e(0x1d9),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x2c423e(0x1c9),'description':_0x2c423e(0x1ed),'apiKey':_0x2c423e(0x1ea),'apiKeyPlaceholder':_0x2c423e(0x1d7),'apiKeyHint':_0x2c423e(0x1d2),'enableAuth':_0x2c423e(0x1c7),'enableAuthHint':_0x2c423e(0x1cd),'connectionInfo':_0x2c423e(0x1db),'mcpClientConfig':_0x2c423e(0x1db),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2c423e(0x1d1),'configStep1':_0x2c423e(0x1d8),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2c423e(0x1bb),'sessionIdDescription':_0x2c423e(0x1e0),'authorizationDescription':_0x2c423e(0x1e4),'configParameters':_0x2c423e(0x1d6),'maxRetries':_0x2c423e(0x1dc),'save':'Save\x20Configuration','saving':_0x2c423e(0x1d5),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2c423e(0x1bd),'configSaved':_0x2c423e(0x1c8),'configError':_0x2c423e(0x1ca),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x2c423e(0x1ee),'univerAiLabel':_0x2c423e(0x1c0),'getStarted':_0x2c423e(0x1de)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2c423e(0x1c1)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2c423e(0x1d4),'connected':_0x2c423e(0x1d0),'failed':_0x2c423e(0x1e2),'retrying':_0x2c423e(0x1bf)},'connectionError':{'missingApiKey':_0x2c423e(0x1e7),'invalidApiKey':_0x2c423e(0x1bc),'sessionOccupied':_0x2c423e(0x1c6),'networkError':_0x2c423e(0x1ba),'maxRetriesExceeded':_0x2c423e(0x1cc)}}},n=e;export{n as default};function _0x19dd(){const _0x4bb84c=['Configuration\x20saved\x20successfully','MCP\x20Configuration','Failed\x20to\x20save\x20configuration','852CkjjTg','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Unknown\x20Status','429120VLiqSU','Connected','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Connecting...','Connecting...','Saving...','Configuration\x20Parameters:','Enter\x20your\x20API\x20key','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20connect\x20MCP','1656LabDRp','MCP\x20Client\x20Configuration','Max\x20Retries','MCP:\x20Network\x20Error','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1383056KtaWZc','Connection\x20Failed','4756650uVcYms','API\x20key\x20with\x20Bearer\x20prefix.','10fDUcLR','65672bZmUuj','API\x20key\x20is\x20required\x20to\x20connect','MCP:\x20Session\x20Occupied','2519sFrUww','API\x20Key','408396JzZdkR','3lEoGdY','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','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:\x20API\x20Key\x20Missing','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session\x20ID','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Max\x20Retries\x20Exceeded','Retrying...','Univer\x20AI\x20Console','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','891VNruFY','36071YlbtIY','MCP\x20Connected','MCP\x20Connection\x20Failed','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Enable\x20Authentication'];_0x19dd=function(){return _0x4bb84c;};return _0x19dd();}
@@ -1 +1 @@
1
- function _0xfb9d(_0x1f47b6,_0x3532c0){const _0x1c5246=_0x1c52();return _0xfb9d=function(_0xfb9d1d,_0x381024){_0xfb9d1d=_0xfb9d1d-0x71;let _0x5c8084=_0x1c5246[_0xfb9d1d];return _0x5c8084;},_0xfb9d(_0x1f47b6,_0x3532c0);}const _0x772652=_0xfb9d;(function(_0x1f4151,_0x45daa0){const _0x3193fe=_0xfb9d,_0x392f0a=_0x1f4151();while(!![]){try{const _0x4baf4d=-parseInt(_0x3193fe(0x8b))/0x1+-parseInt(_0x3193fe(0x71))/0x2*(parseInt(_0x3193fe(0x73))/0x3)+-parseInt(_0x3193fe(0x95))/0x4+parseInt(_0x3193fe(0x8e))/0x5+parseInt(_0x3193fe(0xa3))/0x6*(-parseInt(_0x3193fe(0x80))/0x7)+parseInt(_0x3193fe(0x76))/0x8+-parseInt(_0x3193fe(0x7f))/0x9*(-parseInt(_0x3193fe(0x99))/0xa);if(_0x4baf4d===_0x45daa0)break;else _0x392f0a['push'](_0x392f0a['shift']());}catch(_0x263f49){_0x392f0a['push'](_0x392f0a['shift']());}}}(_0x1c52,0xe69ba));function _0x1c52(){const _0xd19411=['Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Session\x20ID','153Vfjuhg','7utmJmy','MCP\x20Disconnected','MCP:\x20API\x20Key\x20Missing','Enter\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','Disconnected','Configuration\x20saved\x20successfully','MCP\x20Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Session\x20Occupied','61526EuysTY','Retrying...','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','3060620mqGJzB','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Invalid\x20configuration','MCP\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Save\x20Configuration','5060500lLVtOv','MCP\x20Unknown\x20Status','MCP\x20Connected','Enable\x20Authentication','930380vBEGNG','API\x20key\x20is\x20required\x20to\x20connect','Connecting...','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connected','MCP:\x20Network\x20Error','Get\x20your\x20API\x20key\x20in\x20seconds','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','555402CrespU','API\x20key\x20is\x20required','656578cSHKOP','Univer\x20AI\x20Console','6MZocrZ','Enable\x20authentication\x20for\x20secure\x20connections','Connection\x20Information','6612768logbze','Failed\x20to\x20save\x20configuration','MCP:\x20Invalid\x20API\x20Key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Server\x20Endpoint','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser'];_0x1c52=function(){return _0xd19411;};return _0x1c52();}const e={'mcpStatus':{'disconnected':_0x772652(0x81),'connecting':_0x772652(0x88),'connected':_0x772652(0x97),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x772652(0x96),'missingApiKey':_0x772652(0x82),'invalidApiKey':_0x772652(0x78),'sessionOccupied':_0x772652(0x8a),'networkError':_0x772652(0xa0),'maxRetriesExceeded':_0x772652(0x85),'clickToConnect':_0x772652(0x9c),'clickToConfigure':_0x772652(0x84)},'mcpConfig':{'title':_0x772652(0x91),'description':_0x772652(0x93),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x772652(0x83),'apiKeyHint':_0x772652(0x7c),'enableAuth':_0x772652(0x98),'enableAuthHint':_0x772652(0x74),'connectionInfo':_0x772652(0x75),'serverEndpoint':_0x772652(0x7a),'sessionId':_0x772652(0x7e),'maxRetries':'Max\x20Retries','save':_0x772652(0x94),'saving':'Saving...','note1':_0x772652(0x79),'note2':_0x772652(0x8f),'configSaved':_0x772652(0x87),'configError':_0x772652(0x77),'apiApplyInfo':{'title':_0x772652(0x9d),'description':_0x772652(0x7b),'univerAiLabel':_0x772652(0x72),'getStarted':_0x772652(0xa1)},'validation':{'apiKeyRequired':_0x772652(0xa4),'apiKeyTooShort':_0x772652(0x9e),'invalidConfig':_0x772652(0x90),'invalidApiKey':_0x772652(0x92)},'connectionStatus':{'disconnected':_0x772652(0x86),'connecting':_0x772652(0x9b),'connected':_0x772652(0x9f),'failed':'Connection\x20Failed','retrying':_0x772652(0x8c)},'connectionError':{'missingApiKey':_0x772652(0x9a),'invalidApiKey':_0x772652(0x7d),'sessionOccupied':_0x772652(0x8d),'networkError':_0x772652(0x89),'maxRetriesExceeded':_0x772652(0xa2)}}},n=e;export{n as default};
1
+ const _0x594ab9=_0x3cce;(function(_0x152259,_0x568565){const _0x4b4396=_0x3cce,_0x19d4d9=_0x152259();while(!![]){try{const _0x25ffb6=parseInt(_0x4b4396(0x1f8))/0x1*(parseInt(_0x4b4396(0x1cb))/0x2)+parseInt(_0x4b4396(0x1dd))/0x3+parseInt(_0x4b4396(0x1ce))/0x4*(parseInt(_0x4b4396(0x1e9))/0x5)+-parseInt(_0x4b4396(0x1f5))/0x6*(-parseInt(_0x4b4396(0x1e6))/0x7)+parseInt(_0x4b4396(0x1c8))/0x8*(parseInt(_0x4b4396(0x1ed))/0x9)+parseInt(_0x4b4396(0x1d5))/0xa*(parseInt(_0x4b4396(0x1f4))/0xb)+parseInt(_0x4b4396(0x1ff))/0xc*(-parseInt(_0x4b4396(0x1e0))/0xd);if(_0x25ffb6===_0x568565)break;else _0x19d4d9['push'](_0x19d4d9['shift']());}catch(_0x305848){_0x19d4d9['push'](_0x19d4d9['shift']());}}}(_0x3d5d,0xae605));const e={'mcpStatus':{'disconnected':_0x594ab9(0x1cf),'connecting':_0x594ab9(0x1fc),'connected':_0x594ab9(0x1dc),'failed':_0x594ab9(0x1f3),'retrying':_0x594ab9(0x1df),'unknown':_0x594ab9(0x1c7),'missingApiKey':_0x594ab9(0x1db),'invalidApiKey':_0x594ab9(0x1f2),'sessionOccupied':_0x594ab9(0x1fe),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x594ab9(0x1d6),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x594ab9(0x1ee)},'mcpConfig':{'title':_0x594ab9(0x1e4),'description':_0x594ab9(0x1e5),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x594ab9(0x1ec),'apiKeyHint':_0x594ab9(0x1e1),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x594ab9(0x1f9),'connectionInfo':_0x594ab9(0x1d0),'mcpClientConfig':_0x594ab9(0x1d0),'configInstructions':_0x594ab9(0x1d8),'configStepTitle':_0x594ab9(0x1e2),'configStep1':_0x594ab9(0x1d4),'configStep2':_0x594ab9(0x1f6),'configStep3':_0x594ab9(0x1f1),'sessionId':_0x594ab9(0x1fd),'sessionIdDescription':_0x594ab9(0x200),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x594ab9(0x1e3),'maxRetries':'Max\x20Retries','save':_0x594ab9(0x1f7),'saving':_0x594ab9(0x1c5),'note1':_0x594ab9(0x1d1),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x594ab9(0x1d2),'configError':_0x594ab9(0x1e8),'apiApplyInfo':{'title':_0x594ab9(0x1ef),'description':_0x594ab9(0x1e7),'univerAiLabel':_0x594ab9(0x1eb),'getStarted':_0x594ab9(0x1f0)},'validation':{'apiKeyRequired':_0x594ab9(0x1c6),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x594ab9(0x1c9),'invalidApiKey':_0x594ab9(0x1d7)},'connectionStatus':{'disconnected':_0x594ab9(0x1d9),'connecting':_0x594ab9(0x1ca),'connected':_0x594ab9(0x1fa),'failed':_0x594ab9(0x1d3),'retrying':_0x594ab9(0x1da)},'connectionError':{'missingApiKey':_0x594ab9(0x1de),'invalidApiKey':_0x594ab9(0x1cc),'sessionOccupied':_0x594ab9(0x1fb),'networkError':_0x594ab9(0x1ea),'maxRetriesExceeded':_0x594ab9(0x1cd)}}},n=e;function _0x3cce(_0x14693f,_0x289443){const _0x3d5dea=_0x3d5d();return _0x3cce=function(_0x3cce5a,_0x30671a){_0x3cce5a=_0x3cce5a-0x1c5;let _0x535bc7=_0x3d5dea[_0x3cce5a];return _0x535bc7;},_0x3cce(_0x14693f,_0x289443);}export{n as default};function _0x3d5d(){const _0x3ec12d=['Click\x20to\x20configure\x20MCP','What\x20is\x20API\x20Key?','Get\x20your\x20API\x20key\x20in\x20seconds','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Invalid\x20API\x20Key','MCP\x20Connection\x20Failed','9339EJWKaY','6VqSWwy','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Save\x20Configuration','15VTuqiD','Enable\x20authentication\x20for\x20secure\x20connections','Connected','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','MCP\x20Connecting...','Session\x20ID','MCP:\x20Session\x20Occupied','24356532HesqpV','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Saving...','API\x20key\x20is\x20required','MCP\x20Unknown\x20Status','8705352GZnufJ','Invalid\x20configuration','Connecting...','84290GdCzWw','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','507536zlNPCt','MCP\x20Disconnected','MCP\x20Client\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20saved\x20successfully','Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','9830iTBfxv','MCP:\x20Max\x20Retries\x20Exceeded','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Disconnected','Retrying...','MCP:\x20API\x20Key\x20Missing','MCP\x20Connected','2628207zqXwZJ','API\x20key\x20is\x20required\x20to\x20connect','MCP\x20Retrying...','26mOEHBX','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20Steps:','Configuration\x20Parameters:','MCP\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','8510621xaBTCD','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','5TjfGGB','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Univer\x20AI\x20Console','Enter\x20your\x20API\x20key','9rGQLjw'];_0x3d5d=function(){return _0x3ec12d;};return _0x3d5d();}
@@ -1 +1 @@
1
- const _0x3c6354=_0xee65;(function(_0x56eb93,_0x27300f){const _0x5faa9d=_0xee65,_0x11dd72=_0x56eb93();while(!![]){try{const _0x277a22=-parseInt(_0x5faa9d(0x180))/0x1+parseInt(_0x5faa9d(0x186))/0x2+parseInt(_0x5faa9d(0x199))/0x3+parseInt(_0x5faa9d(0x193))/0x4*(-parseInt(_0x5faa9d(0x1a6))/0x5)+parseInt(_0x5faa9d(0x18f))/0x6+-parseInt(_0x5faa9d(0x17c))/0x7*(-parseInt(_0x5faa9d(0x1a5))/0x8)+-parseInt(_0x5faa9d(0x17f))/0x9;if(_0x277a22===_0x27300f)break;else _0x11dd72['push'](_0x11dd72['shift']());}catch(_0x11ba0b){_0x11dd72['push'](_0x11dd72['shift']());}}}(_0x3c82,0xe1943));function _0xee65(_0x4a4abb,_0x270dc9){const _0x3c82b9=_0x3c82();return _0xee65=function(_0xee659d,_0x318ba2){_0xee659d=_0xee659d-0x178;let _0x2b1136=_0x3c82b9[_0xee659d];return _0x2b1136;},_0xee65(_0x4a4abb,_0x270dc9);}const e={'mcpStatus':{'disconnected':_0x3c6354(0x187),'connecting':'MCP\x20连接中...','connected':_0x3c6354(0x185),'failed':_0x3c6354(0x196),'retrying':_0x3c6354(0x19a),'unknown':_0x3c6354(0x19f),'missingApiKey':_0x3c6354(0x191),'invalidApiKey':_0x3c6354(0x181),'sessionOccupied':'MCP:\x20会话被占用','networkError':_0x3c6354(0x19b),'maxRetriesExceeded':_0x3c6354(0x1a3),'clickToConnect':'点击连接\x20MCP','clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x3c6354(0x183),'description':_0x3c6354(0x17b),'apiKey':_0x3c6354(0x1a4),'apiKeyPlaceholder':_0x3c6354(0x188),'apiKeyHint':_0x3c6354(0x19c),'enableAuth':_0x3c6354(0x1a0),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x3c6354(0x18c),'serverEndpoint':_0x3c6354(0x18b),'sessionId':'会话ID','maxRetries':_0x3c6354(0x19d),'save':_0x3c6354(0x18e),'saving':_0x3c6354(0x190),'note1':_0x3c6354(0x182),'note2':_0x3c6354(0x18d),'configSaved':_0x3c6354(0x184),'configError':_0x3c6354(0x1a1),'apiApplyInfo':{'title':_0x3c6354(0x194),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x3c6354(0x179),'getStarted':_0x3c6354(0x198)},'validation':{'apiKeyRequired':_0x3c6354(0x197),'apiKeyTooShort':_0x3c6354(0x1a2),'invalidConfig':_0x3c6354(0x17d),'invalidApiKey':_0x3c6354(0x17e)},'connectionStatus':{'disconnected':_0x3c6354(0x17a),'connecting':_0x3c6354(0x178),'connected':'已连接','failed':_0x3c6354(0x192),'retrying':_0x3c6354(0x19e)},'connectionError':{'missingApiKey':_0x3c6354(0x195),'invalidApiKey':_0x3c6354(0x189),'sessionOccupied':_0x3c6354(0x18a),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};function _0x3c82(){const _0x421151=['MCP\x20已连接','2858816SUCzza','MCP\x20已断开','请输入您的\x20API\x20密钥','API\x20密钥无效,请检查您的密钥后重试','会话当前被占用,请稍后再试','服务器端点','连接信息','您的\x20API\x20密钥安全存储在本地存储中','保存配置','6677610qfaWoP','保存中...','MCP:\x20缺少\x20API\x20密钥','连接失败','3252056vkhmEt','什么是\x20API\x20密钥?','需要\x20API\x20密钥才能连接','MCP\x20连接失败','API\x20密钥不能为空','几秒钟内获取您的\x20API\x20密钥','5352234znocMB','MCP\x20重连中...','MCP:\x20网络错误','您的\x20API\x20密钥将在此浏览器中本地存储','最大重试次数','重连中...','MCP\x20状态未知','启用身份验证','配置保存失败','API\x20密钥长度至少需要\x2010\x20','MCP:\x20超出最大重试次数','API\x20密钥','4288rpBYWr','5IrvSAW','连接中...','Univer\x20AI\x20控制台','未连接','配置\x20MCP\x20使用\x20AI\x20操作电子表格','14896fuGrxt','配置无效','API\x20密钥无效,请检查密钥是否正确','29896443ECMDLn','408217kPACyL','MCP:\x20无效的\x20API\x20密钥','配置更改将立即生效','MCP\x20配置','配置保存成功'];_0x3c82=function(){return _0x421151;};return _0x3c82();}export{e as default};
1
+ const _0x13727a=_0x369d;(function(_0x2854ff,_0x4ca8b4){const _0xd40296=_0x369d,_0x20e856=_0x2854ff();while(!![]){try{const _0x3fe757=parseInt(_0xd40296(0x145))/0x1*(-parseInt(_0xd40296(0x13e))/0x2)+-parseInt(_0xd40296(0x11c))/0x3+-parseInt(_0xd40296(0x125))/0x4*(parseInt(_0xd40296(0x14e))/0x5)+parseInt(_0xd40296(0x12f))/0x6*(-parseInt(_0xd40296(0x14b))/0x7)+-parseInt(_0xd40296(0x146))/0x8*(parseInt(_0xd40296(0x13f))/0x9)+parseInt(_0xd40296(0x138))/0xa*(-parseInt(_0xd40296(0x126))/0xb)+parseInt(_0xd40296(0x120))/0xc;if(_0x3fe757===_0x4ca8b4)break;else _0x20e856['push'](_0x20e856['shift']());}catch(_0x503969){_0x20e856['push'](_0x20e856['shift']());}}}(_0x5c84,0x353c3));const e={'mcpStatus':{'disconnected':_0x13727a(0x147),'connecting':'MCP\x20连接中...','connected':_0x13727a(0x149),'failed':_0x13727a(0x13c),'retrying':_0x13727a(0x133),'unknown':_0x13727a(0x11d),'missingApiKey':_0x13727a(0x12e),'invalidApiKey':_0x13727a(0x14f),'sessionOccupied':_0x13727a(0x135),'networkError':_0x13727a(0x130),'maxRetriesExceeded':_0x13727a(0x11e),'clickToConnect':_0x13727a(0x13a),'clickToConfigure':_0x13727a(0x128)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x13727a(0x131),'apiKeyPlaceholder':_0x13727a(0x140),'apiKeyHint':_0x13727a(0x123),'enableAuth':_0x13727a(0x127),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x13727a(0x124),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x13727a(0x11f),'configStepTitle':_0x13727a(0x129),'configStep1':_0x13727a(0x11b),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x13727a(0x12b),'sessionId':_0x13727a(0x136),'sessionIdDescription':_0x13727a(0x139),'authorizationDescription':_0x13727a(0x148),'configParameters':'配置参数:','maxRetries':_0x13727a(0x141),'save':'保存配置','saving':_0x13727a(0x144),'note1':_0x13727a(0x12d),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x13727a(0x137),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x13727a(0x14c),'univerAiLabel':_0x13727a(0x134),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x13727a(0x121),'apiKeyTooShort':_0x13727a(0x13d),'invalidConfig':_0x13727a(0x143),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':_0x13727a(0x122),'connected':_0x13727a(0x14a),'failed':_0x13727a(0x142),'retrying':_0x13727a(0x12c)},'connectionError':{'missingApiKey':_0x13727a(0x12a),'invalidApiKey':'API\x20密钥无效,请检查您的密钥后重试','sessionOccupied':_0x13727a(0x13b),'networkError':_0x13727a(0x132),'maxRetriesExceeded':_0x13727a(0x14d)}}};function _0x369d(_0x1a8e82,_0x26920a){const _0x5c8422=_0x5c84();return _0x369d=function(_0x369d9f,_0x469696){_0x369d9f=_0x369d9f-0x11b;let _0x540497=_0x5c8422[_0x369d9f];return _0x540497;},_0x369d(_0x1a8e82,_0x26920a);}export{e as default};function _0x5c84(){const _0x16d949=['API\x20密钥','网络连接错误,请检查您的网络连接','MCP\x20重连中...','Univer\x20AI\x20控制台','MCP:\x20会话被占用','会话ID','配置保存失败','1451910hSeCuT','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','点击连接\x20MCP','会话当前被占用,请稍后再试','MCP\x20连接失败','API\x20密钥长度至少需要\x2010\x20','10666GWoWDE','1139184KNsNZC','请输入您的\x20API\x20密钥','最大重试次数','连接失败','配置无效','保存中...','72kWuulu','16VOsHWV','MCP\x20已断开','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP\x20已连接','已连接','102697OPZZcm','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','超出最大重试次数,请稍后再试','50rFiDVV','MCP:\x20无效的\x20API\x20密钥','复制以下\x20JSON\x20配置','1174440OtsHCm','MCP\x20状态未知','MCP:\x20超出最大重试次数','将以下配置添加到您的\x20MCP\x20客户端设置中:','23176620GmFkHC','API\x20密钥不能为空','连接中...','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20客户端配置','23372jtmvww','33gpwImB','启用身份验证','点击配置\x20MCP','配置步骤:','需要\x20API\x20密钥才能连接','重启您的\x20MCP\x20客户端以使配置生效','重连中...','配置更改将立即生效','MCP:\x20缺少\x20API\x20密钥','78VDhCaL','MCP:\x20网络错误'];_0x5c84=function(){return _0x16d949;};return _0x5c84();}
@@ -1 +1 @@
1
- function _0x219e(_0x4610b1,_0x213517){const _0x4889f0=_0x4889();return _0x219e=function(_0x219e7f,_0x153099){_0x219e7f=_0x219e7f-0x1a8;let _0x5c1ac9=_0x4889f0[_0x219e7f];return _0x5c1ac9;},_0x219e(_0x4610b1,_0x213517);}const _0x14e2a0=_0x219e;(function(_0x869d91,_0x16e848){const _0x50919c=_0x219e,_0x5c23f0=_0x869d91();while(!![]){try{const _0x421ab4=-parseInt(_0x50919c(0x1d0))/0x1+-parseInt(_0x50919c(0x1b2))/0x2*(-parseInt(_0x50919c(0x1ac))/0x3)+parseInt(_0x50919c(0x1ad))/0x4+parseInt(_0x50919c(0x1ae))/0x5*(-parseInt(_0x50919c(0x1a8))/0x6)+-parseInt(_0x50919c(0x1a9))/0x7+parseInt(_0x50919c(0x1c6))/0x8+parseInt(_0x50919c(0x1bc))/0x9;if(_0x421ab4===_0x16e848)break;else _0x5c23f0['push'](_0x5c23f0['shift']());}catch(_0x4d5b93){_0x5c23f0['push'](_0x5c23f0['shift']());}}}(_0x4889,0xddcfb));function _0x4889(){const _0x29b30b=['API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','What\x20is\x20API\x20Key?','Connection\x20Information','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','API\x20Key','MCP\x20Retrying...','1417241vmqjrG','12330JBHsDK','6265217VKcVEQ','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connected','1627581aLSwiU','3496980fewllE','2885xKqktd','Connected','Click\x20to\x20connect\x20MCP','Disconnected','2EyXwmG','MCP\x20Connecting...','MCP\x20Unknown\x20Status','API\x20key\x20is\x20required\x20to\x20connect','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Connecting...','MCP\x20Connection\x20Failed','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Invalid\x20API\x20Key','14923881XRvYnW','Enter\x20your\x20API\x20key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Connection\x20Failed','Server\x20Endpoint','Invalid\x20configuration','Univer\x20AI\x20Console','Enable\x20authentication\x20for\x20secure\x20connections','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enable\x20Authentication','10652520hSYIoJ','Saving...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20is\x20required'];_0x4889=function(){return _0x29b30b;};return _0x4889();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x14e2a0(0x1b3),'connected':_0x14e2a0(0x1ab),'failed':_0x14e2a0(0x1b8),'retrying':_0x14e2a0(0x1cf),'unknown':_0x14e2a0(0x1b4),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x14e2a0(0x1bb),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x14e2a0(0x1b0),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x14e2a0(0x1b9),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x14e2a0(0x1ce),'apiKeyPlaceholder':_0x14e2a0(0x1bd),'apiKeyHint':_0x14e2a0(0x1c8),'enableAuth':_0x14e2a0(0x1c5),'enableAuthHint':_0x14e2a0(0x1c3),'connectionInfo':_0x14e2a0(0x1cc),'serverEndpoint':_0x14e2a0(0x1c0),'sessionId':'Session\x20ID','maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x14e2a0(0x1c7),'note1':_0x14e2a0(0x1ba),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x14e2a0(0x1cb),'description':_0x14e2a0(0x1be),'univerAiLabel':_0x14e2a0(0x1c2),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x14e2a0(0x1c9),'apiKeyTooShort':_0x14e2a0(0x1ca),'invalidConfig':_0x14e2a0(0x1c1),'invalidApiKey':_0x14e2a0(0x1aa)},'connectionStatus':{'disconnected':_0x14e2a0(0x1b1),'connecting':_0x14e2a0(0x1b7),'connected':_0x14e2a0(0x1af),'failed':_0x14e2a0(0x1bf),'retrying':'Retrying...'},'connectionError':{'missingApiKey':_0x14e2a0(0x1b5),'invalidApiKey':_0x14e2a0(0x1cd),'sessionOccupied':_0x14e2a0(0x1b6),'networkError':_0x14e2a0(0x1c4),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
1
+ function _0x1428(_0x4eeec0,_0x23d1db){const _0x17bd17=_0x17bd();return _0x1428=function(_0x1428ce,_0x412bcf){_0x1428ce=_0x1428ce-0x97;let _0x53c1a1=_0x17bd17[_0x1428ce];return _0x53c1a1;},_0x1428(_0x4eeec0,_0x23d1db);}const _0x55c29a=_0x1428;(function(_0x47d242,_0x55b156){const _0x42bcd8=_0x1428,_0x4b2e16=_0x47d242();while(!![]){try{const _0xa15fd0=parseInt(_0x42bcd8(0x99))/0x1+parseInt(_0x42bcd8(0xae))/0x2*(parseInt(_0x42bcd8(0xb8))/0x3)+parseInt(_0x42bcd8(0xc7))/0x4*(parseInt(_0x42bcd8(0xa1))/0x5)+parseInt(_0x42bcd8(0xa0))/0x6*(-parseInt(_0x42bcd8(0xb6))/0x7)+parseInt(_0x42bcd8(0xad))/0x8*(-parseInt(_0x42bcd8(0x98))/0x9)+-parseInt(_0x42bcd8(0x97))/0xa+parseInt(_0x42bcd8(0x9e))/0xb;if(_0xa15fd0===_0x55b156)break;else _0x4b2e16['push'](_0x4b2e16['shift']());}catch(_0x35659c){_0x4b2e16['push'](_0x4b2e16['shift']());}}}(_0x17bd,0x6847b));const e={'mcpStatus':{'disconnected':_0x55c29a(0xc4),'connecting':_0x55c29a(0xbd),'connected':'MCP\x20Connected','failed':_0x55c29a(0xc1),'retrying':_0x55c29a(0xa4),'unknown':_0x55c29a(0xa7),'missingApiKey':_0x55c29a(0xb7),'invalidApiKey':_0x55c29a(0xb3),'sessionOccupied':_0x55c29a(0xaf),'networkError':_0x55c29a(0xb5),'maxRetriesExceeded':_0x55c29a(0xbb),'clickToConnect':_0x55c29a(0x9f),'clickToConfigure':_0x55c29a(0x9d)},'mcpConfig':{'title':_0x55c29a(0xbe),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x55c29a(0xaa),'apiKeyPlaceholder':_0x55c29a(0xc5),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x55c29a(0xbc),'enableAuthHint':_0x55c29a(0xc6),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x55c29a(0xac),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x55c29a(0xb4),'configStep3':_0x55c29a(0xc2),'sessionId':'Session\x20ID','sessionIdDescription':_0x55c29a(0xa5),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x55c29a(0xbf),'maxRetries':_0x55c29a(0xb9),'save':_0x55c29a(0xab),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x55c29a(0x9a),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x55c29a(0xb0),'apiApplyInfo':{'title':_0x55c29a(0xb2),'description':_0x55c29a(0xc8),'univerAiLabel':_0x55c29a(0xc0),'getStarted':_0x55c29a(0xa2)},'validation':{'apiKeyRequired':_0x55c29a(0xb1),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x55c29a(0xa6)},'connectionStatus':{'disconnected':_0x55c29a(0x9c),'connecting':'Connecting...','connected':_0x55c29a(0x9b),'failed':_0x55c29a(0xa8),'retrying':_0x55c29a(0xa9)},'connectionError':{'missingApiKey':_0x55c29a(0xa3),'invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x55c29a(0xc3),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x55c29a(0xba)}}},n=e;export{n as default};function _0x17bd(){const _0xc6838d=['API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','5738770OymkqZ','153351ovjtuW','253860fkHHLB','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connected','Disconnected','Click\x20to\x20configure\x20MCP','3652099BlHtoJ','Click\x20to\x20connect\x20MCP','6ubVOJZ','1090kfpwxK','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20is\x20required\x20to\x20connect','MCP\x20Retrying...','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','MCP\x20Unknown\x20Status','Connection\x20Failed','Retrying...','API\x20Key','Save\x20Configuration','MCP\x20Client\x20Configuration','8aRKPKR','91774rcykhV','MCP:\x20Session\x20Occupied','Failed\x20to\x20save\x20configuration','API\x20key\x20is\x20required','What\x20is\x20API\x20Key?','MCP:\x20Invalid\x20API\x20Key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Network\x20Error','80857QHmQfS','MCP:\x20API\x20Key\x20Missing','15gdPpBP','Max\x20Retries','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP:\x20Max\x20Retries\x20Exceeded','Enable\x20Authentication','MCP\x20Connecting...','MCP\x20Configuration','Configuration\x20Parameters:','Univer\x20AI\x20Console','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','MCP\x20Disconnected','Enter\x20your\x20API\x20key','Enable\x20authentication\x20for\x20secure\x20connections','3932qFAXbm'];_0x17bd=function(){return _0xc6838d;};return _0x17bd();}
@@ -23,6 +23,7 @@ export declare class MCPConfigUIController extends Disposable {
23
23
  private readonly _loading$;
24
24
  private readonly _mcpCoreConfig$;
25
25
  private readonly _config$;
26
+ private readonly _apiKey$;
26
27
  constructor(_injector: Injector, _uiPartsService: IUIPartsService, _configService: IConfigService, _localStorageService: ILocalStorageService, _dialogService: IDialogService, _messageService: IMessageService, _componentManager: ComponentManager, _localeService: LocaleService, _logService: ILogService, _mcpConnectionController: MCPConnectionController);
27
28
  /**
28
29
  * Show configuration panel
@@ -23,8 +23,16 @@ declare const locale: {
23
23
  enableAuth: string;
24
24
  enableAuthHint: string;
25
25
  connectionInfo: string;
26
- serverEndpoint: string;
26
+ mcpClientConfig: string;
27
+ configInstructions: string;
28
+ configStepTitle: string;
29
+ configStep1: string;
30
+ configStep2: string;
31
+ configStep3: string;
27
32
  sessionId: string;
33
+ sessionIdDescription: string;
34
+ authorizationDescription: string;
35
+ configParameters: string;
28
36
  maxRetries: string;
29
37
  save: string;
30
38
  saving: string;
@@ -23,8 +23,16 @@ declare const locale: {
23
23
  enableAuth: string;
24
24
  enableAuthHint: string;
25
25
  connectionInfo: string;
26
- serverEndpoint: string;
26
+ mcpClientConfig: string;
27
+ configInstructions: string;
28
+ configStepTitle: string;
29
+ configStep1: string;
30
+ configStep2: string;
31
+ configStep3: string;
27
32
  sessionId: string;
33
+ sessionIdDescription: string;
34
+ authorizationDescription: string;
35
+ configParameters: string;
28
36
  maxRetries: string;
29
37
  save: string;
30
38
  saving: string;
@@ -7,13 +7,19 @@ export interface IMCPConfigProps {
7
7
  /** config */
8
8
  config: IUniverMCPUIConfig;
9
9
  /** Callback when configuration is saved */
10
- onSave: (config: IUniverMCPConfig) => void;
10
+ onSave: (config: {
11
+ apiKey: string;
12
+ }) => void;
11
13
  /** Whether the config form is loading */
12
14
  loading?: boolean;
13
15
  /** The MCP connection status stream */
14
16
  connectionStatus$?: Observable<MCPConnectionStatus>;
15
17
  /** The MCP connection error stream */
16
18
  connectionError$?: Observable<MCPConnectionError>;
19
+ /** The current API key */
20
+ currentApiKey$?: Observable<string>;
21
+ /** The current session ID */
22
+ currentSessionId$?: Observable<string>;
17
23
  }
18
24
  /**
19
25
  * MCP Configuration Panel Component
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xaf6e(_0x36e885,_0x437c6d){var _0x2e94ad=_0x2e94();return _0xaf6e=function(_0xaf6ed,_0x30b908){_0xaf6ed=_0xaf6ed-0x134;var _0x3aceca=_0x2e94ad[_0xaf6ed];return _0x3aceca;},_0xaf6e(_0x36e885,_0x437c6d);}function _0x2e94(){var _0x1efaa2=['_initializeCommands','MCP:\x20超出最大重试次数','_commandService','MCP\x20配置','univer-bg-blue-500','RibbonStartGroup','_uiPartsService','_handleConfigSave','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','Connecting...','连接中...','MCPConfigPanel','46488VtTCIZ','react','mcpStatus.failed','MCP:\x20Network\x20Error','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','Enable\x20authentication\x20for\x20secure\x20connections','React','_blank','您的\x20API\x20密钥将在此浏览器中本地存储','useObservable','close','_handleConfigure','MenuIcon','univer-flex\x20univer-items-center\x20univer-gap-3','BuiltInUIPart','univer-min-w-0\x20univer-flex-1','mcpConfig.connectionError.missingApiKey','showConfigPanel','univer-font-medium','connectionStatus$','_injector','MCPConnectionError','@univerjs/core','toString','defineProperty','0\x200\x2016\x2016','concat','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','_initializeMenus','126xCskdg','CONNECTING','517696OBFKPP','_config','text','最大重试次数','MCP:\x20缺少\x20API\x20密钥','white','https://console.univer.ai','您的\x20API\x20密钥安全存储在本地存储中','indexOf','mcpConfig.apiApplyInfo.description','mcpConfig.connectionError.networkError','registerCommand','_validateConfig','univer-flex\x20univer-gap-3','code','assign','mcpStatus.networkError','univer-text-gray-400','help-single','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','103326hxwOcX','univer-bg-red-500','Configuration\x20saved\x20successfully','add','useDependency','MCP_UI_PLUGIN','NONE','OnLineIcon','connectionError$','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','会话ID','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-flex-shrink-0\x20univer-text-red-500','_initStatusComponent','UniverProMcpUi','mcp-ui.command.openConfigPanel','CONNECTED','_mcpCoreConfig$','配置保存失败','Click\x20to\x20configure\x20MCP','mcpConfig.validation.apiKeyRequired','map','div','MCP:\x20Invalid\x20API\x20Key','API\x20key\x20is\x20required\x20to\x20connect','univer-flex\x20univer-items-center\x20univer-gap-2','OpenMCPConfigPanelCommand','isValid','Disposable','subscribeConfigValue$','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','ICommandService','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','mcp-config-dialog','useState','mcpConfig.connectionError.maxRetriesExceeded','none','colorChannel1','label','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','@univerjs/ui','1em','translate(.97)','mcpConfig.validation.invalidApiKey','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','mcpConfig.configError','Univer\x20AI\x20Console','univer.ai','univer-flex\x20univer-items-start\x20univer-gap-3','MCP\x20Unknown\x20Status','MCP:\x20API\x20Key\x20Missing','几秒钟内获取您的\x20API\x20密钥','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','mcpConfig.title','useRef','toStringTag','mcpStatus.retrying','Get\x20your\x20API\x20key\x20in\x20seconds','_localeService','M5.21243\x2012.287L11.8791\x205.62036','symbol','9WLmEtm','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','保存配置','0\x200\x2017\x2016','forwardRef','MCP\x20Configuration','mcpConfig.sessionId','round','register','36730pwCkil','off-line-icon','重连中...','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','需要\x20API\x20密钥才能连接','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','clsx','BUTTON','DISCONNECTED','MCPUIMenuController','showDeveloperTools','univer-space-y-2','merge','Disconnected','_localStorageService','className','mcpConfig.connectionInfo','MCP_PLUGIN_CONFIG_KEY','COMMAND','disposeWithMe','mcpStatus.connecting','mcpStatus.invalidApiKey','\x20-\x20','close-small-single','OffLineIcon','removeItem','RETRYING','MCP\x20重连中...','_mcpConnectionController','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1808560Jchqsz','INVALID_API_KEY','univer-text-sm\x20univer-text-gray-500','mcpConfig.connectionStatus.retrying','网络连接错误,请检查您的网络连接','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','getCurrentConfig','BehaviorSubject','univerjs-icon\x20univerjs-icon-','@univerjs-pro/mcp','error','MCPConnectionUIController','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','IConfigService','点击配置\x20MCP','NETWORK_ERROR','服务器端点','fill','mask','url(#$1','FAILED','HelpSingle','API\x20密钥无效,请检查您的密钥后重试','function','Server\x20Endpoint','icon','propertyIsEnumerable','MCP\x20状态未知','mcp-ui.config','univer-text-red-500','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-break-all\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-blue-600','MCP\x20连接失败','0\x200\x2017\x2017','getOwnPropertySymbols','API\x20Key','Button','_configService','bottom','string','univer-text-xs\x20univer-text-gray-500','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','DependentOn','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','MCP\x20Connecting...','What\x20is\x20API\x20Key?','show','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','mcpConfig.validation.apiKeyTooShort','ComponentManager','univer-space-y-3','value','mcpStatus.clickToConnect','prototype','_loadStoredApiKey','Retrying...','Module','什么是\x20API\x20密钥?','rxjs','Enter\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','连接信息','sessionId','已连接','HEADER_MENU','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','SESSION_ID_OCCUPIED','_loading$','trim','connectInjector','url(#off-line-icon_clip0_910_343)','MCPConnectionStatus','11xlfmvm','MCP:\x20会话被占用','Saving...','entries','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','defIds','MCP:\x20网络错误','mcpStatus.unknown','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','getItem','_componentManager','mcpConfig.save','createElement','includes','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','Configuration\x20Notes:','zhCN','pluginName','mcpStatus.clickToConfigure','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','enUS','Success','MCP\x20Connection\x20Failed','react/jsx-runtime','attrs','mcpConfig.connectionStatus.failed','replace','mcpStatus.maxRetriesExceeded','连接失败','off','mcpConfig.saving','univer-flex-shrink-0\x20univer-text-blue-500','UniverMCPUIPlugin','exports','validateApiKey','未连接','MCPConnectionController','Close','default','M0\x200H16V16H0z','hover:univer-opacity-80','mcpConfig.connectionError.invalidApiKey','保存中...','5190288blBQmT','_createConfigPanelComponent','univer-flex\x20univer-cursor-pointer\x20univer-items-center','UniverProMcp','univer-text-yellow-500','warn','off-line-icon_clip0_910_343','Univer\x20AI\x20控制台','mcpConfig.apiApplyInfo.title','jsxs','forEach','MCP\x20连接中...','API\x20密钥长度至少需要\x2010\x20位','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_dialogService','mcpConfig.description','setConfig','配置更改将立即生效','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','mcpConfig.apiKeyHint','onStarting','Failed\x20to\x20save\x20configuration','mcpStatus.connected','univer-text-green-500','on-line-icon_clip0_910_349','_menuManagerService','MCP:\x20无效的\x20API\x20密钥','useCallback','span','mcp.apiKey','IMenuManagerService','mcpConfig.connectionStatus.connecting','univer-mb-1\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','hasOwnProperty','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','path','univer-bg-gray-500','46276Picmnx','univer-text-white','UniverIcon','call','random','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','MCPConfigUIController','idSuffix','UniverDesign','mcpConfig.connectionStatus.connected','会话当前被占用,请稍后再试','mcpConfig.validation.invalidConfig','3dTwBVz','配置保存成功','on-line-icon','15MBNHoI','MAX_RETRIES_EXCEEDED','clipPath','mcpConfig.apiKeyPlaceholder','apiKey','mcpConfig.configSaved','get','jsx','MessageType','mcpConfig.apiKey','univer-mr-2\x20univer-flex\x20univer-text-xl','displayName','mcpConfig.apiApplyInfo.univerAiLabel','getOwnPropertyDescriptor','Error','MCP\x20已连接','mergeMenu','_registerComponent','Save\x20Configuration','univer.plus','tag','subscribe','LocaleService','defs','getConfig','next','univer-text-blue-600','svg','univer-rounded\x20univer-border\x20univer-bg-white\x20univer-px-2\x20univer-py-1\x20univer-font-mono\x20univer-text-xs\x20univer-text-gray-700','Injector','IDialogService','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','API\x20密钥不能为空','children','mcpConfig.apiApplyInfo.getStarted','mcpStatus.sessionOccupied','extend','http://www.w3.org/2000/svg','univer-text-gray-500','mcpStatus.disconnected','mcpStatus.missingApiKey','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','mcpServerUrl','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','IUIPartsService','evenodd','length','Inject','API\x20密钥','MISSING_API_KEY','_config$','currentColor','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','_logService','_messageService','xlink:href','univer-text-sm\x20univer-font-medium','univer-space-y-5','_connectionController','univer-bg-green-500','启用身份验证','mcpConfig.connectionError.sessionOccupied','CloseSmallSingle'];_0x2e94=function(){return _0x1efaa2;};return _0x2e94();}(function(_0x16f1db,_0x36fe8f){var _0x152b2f=_0xaf6e,_0x1cac40=_0x16f1db();while(!![]){try{var _0x49c598=-parseInt(_0x152b2f(0x290))/0x1*(-parseInt(_0x152b2f(0x1cc))/0x2)+parseInt(_0x152b2f(0x186))/0x3+-parseInt(_0x152b2f(0x284))/0x4*(parseInt(_0x152b2f(0x293))/0x5)+-parseInt(_0x152b2f(0x153))/0x6*(parseInt(_0x152b2f(0x170))/0x7)+parseInt(_0x152b2f(0x172))/0x8*(-parseInt(_0x152b2f(0x1c3))/0x9)+parseInt(_0x152b2f(0x1eb))/0xa*(-parseInt(_0x152b2f(0x234))/0xb)+parseInt(_0x152b2f(0x25f))/0xc;if(_0x49c598===_0x36fe8f)break;else _0x1cac40['push'](_0x1cac40['shift']());}catch(_0x1c1a41){_0x1cac40['push'](_0x1cac40['shift']());}}}(_0x2e94,0x18fb2),function(_0x21fc9b,_0x21d8aa){var _0x383439=_0xaf6e;typeof exports=='object'&&typeof module<'u'?_0x21d8aa(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react')):typeof define==_0x383439(0x202)&&define['amd']?define([_0x383439(0x255),_0x383439(0x169),_0x383439(0x24b),_0x383439(0x1f4),'@univerjs/design',_0x383439(0x1ae),_0x383439(0x226),_0x383439(0x154)],_0x21d8aa):(_0x21fc9b=typeof globalThis<'u'?globalThis:_0x21fc9b||self,_0x21d8aa(_0x21fc9b[_0x383439(0x194)]={},_0x21fc9b['UniverCore'],_0x21fc9b[_0x383439(0x159)],_0x21fc9b[_0x383439(0x262)],_0x21fc9b[_0x383439(0x28c)],_0x21fc9b['UniverUi'],_0x21fc9b[_0x383439(0x226)],_0x21fc9b[_0x383439(0x159)]));}(this,function(_0x2781c8,_0x36a8d0,_0x1d754b,_0x3d5e8c,_0xa6997b,_0xaf74bf,_0x2accb4,_0x4bc8f1){'use strict';var _0x32b952=_0xaf6e;var _0x231574=Object[_0x32b952(0x16b)],_0x14a907=(_0x10208a,_0x228f18,_0x436466)=>_0x228f18 in _0x10208a?_0x231574(_0x10208a,_0x228f18,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x436466}):_0x10208a[_0x228f18]=_0x436466,_0x49f581=(_0x358a7c,_0x146034,_0x1ee92)=>_0x14a907(_0x358a7c,typeof _0x146034!=_0x32b952(0x1c2)?_0x146034+'':_0x146034,_0x1ee92),_0x2f52b9=function(){var _0x73a541=_0x32b952;return _0x2f52b9=Object[_0x73a541(0x181)]||function(_0x1090fc){var _0x29823c=_0x73a541;for(var _0x4c4377,_0x371c9e=0x1,_0x16187b=arguments[_0x29823c(0x136)];_0x371c9e<_0x16187b;_0x371c9e++){_0x4c4377=arguments[_0x371c9e];for(var _0x33cd03 in _0x4c4377)Object[_0x29823c(0x221)][_0x29823c(0x280)][_0x29823c(0x287)](_0x4c4377,_0x33cd03)&&(_0x1090fc[_0x33cd03]=_0x4c4377[_0x33cd03]);}return _0x1090fc;},_0x2f52b9['apply'](this,arguments);},_0x95b6d=function(_0x4fd29a,_0x4b84f5){var _0x5cf363=_0x32b952,_0x417de7={};for(var _0x3b5709 in _0x4fd29a)Object[_0x5cf363(0x221)]['hasOwnProperty'][_0x5cf363(0x287)](_0x4fd29a,_0x3b5709)&&_0x4b84f5[_0x5cf363(0x17a)](_0x3b5709)<0x0&&(_0x417de7[_0x3b5709]=_0x4fd29a[_0x3b5709]);if(_0x4fd29a!=null&&typeof Object['getOwnPropertySymbols']==_0x5cf363(0x202)){for(var _0x390299=0x0,_0x3b5709=Object[_0x5cf363(0x20e)](_0x4fd29a);_0x390299<_0x3b5709[_0x5cf363(0x136)];_0x390299++)_0x4b84f5[_0x5cf363(0x17a)](_0x3b5709[_0x390299])<0x0&&Object[_0x5cf363(0x221)][_0x5cf363(0x205)]['call'](_0x4fd29a,_0x3b5709[_0x390299])&&(_0x417de7[_0x3b5709[_0x390299]]=_0x4fd29a[_0x3b5709[_0x390299]]);}return _0x417de7;},_0x75f517=_0x4bc8f1[_0x32b952(0x1c7)](function(_0xcb179e,_0x431966){var _0x39e793=_0x32b952,_0x238abd=_0xcb179e[_0x39e793(0x204)],_0x583417=_0xcb179e['id'],_0x4c3891=_0xcb179e[_0x39e793(0x1db)],_0x131d0d=_0xcb179e[_0x39e793(0x2b7)],_0x5dd3c2=_0x95b6d(_0xcb179e,[_0x39e793(0x204),'id',_0x39e793(0x1db),_0x39e793(0x2b7)]),_0x23e281=_0x39e793(0x1f3)[_0x39e793(0x16d)](_0x583417,'\x20')[_0x39e793(0x16d)](_0x4c3891||'')[_0x39e793(0x230)](),_0x43b1e1=_0x4bc8f1[_0x39e793(0x1bc)]('_'['concat'](_0x220baf()));return _0x3d4285(_0x238abd,''[_0x39e793(0x16d)](_0x583417),{'defIds':_0x238abd[_0x39e793(0x239)],'idSuffix':_0x43b1e1['current']},_0x2f52b9({'ref':_0x431966,'className':_0x23e281},_0x5dd3c2),_0x131d0d);});function _0x3d4285(_0x6acb37,_0x44f1a7,_0x12d27f,_0x578fa1,_0x2c8c7a){var _0x1c0be6=_0x32b952;return _0x4bc8f1[_0x1c0be6(0x240)](_0x6acb37[_0x1c0be6(0x2a7)],_0x2f52b9(_0x2f52b9({'key':_0x44f1a7},_0x164e89(_0x6acb37,_0x12d27f,_0x2c8c7a)),_0x578fa1),(_0x567920(_0x6acb37,_0x12d27f)[_0x1c0be6(0x2b4)]||[])[_0x1c0be6(0x19b)](function(_0x337659,_0x2ec8be){var _0x4c7ffe=_0x1c0be6;return _0x3d4285(_0x337659,''[_0x4c7ffe(0x16d)](_0x44f1a7,'-')[_0x4c7ffe(0x16d)](_0x6acb37['tag'],'-')[_0x4c7ffe(0x16d)](_0x2ec8be),_0x12d27f,void 0x0,_0x2c8c7a);}));}function _0x164e89(_0x509324,_0x57f08f,_0x3659ea){var _0x62c71e=_0x32b952,_0x489082=_0x2f52b9({},_0x509324[_0x62c71e(0x24c)]);_0x3659ea!=null&&_0x3659ea['colorChannel1']&&_0x489082[_0x62c71e(0x1fc)]===_0x62c71e(0x1ab)&&(_0x489082[_0x62c71e(0x1fc)]=_0x3659ea[_0x62c71e(0x1ab)]),_0x509324[_0x62c71e(0x2a7)]===_0x62c71e(0x1fd)&&_0x489082['id']&&(_0x489082['id']=_0x489082['id']+_0x57f08f[_0x62c71e(0x28b)]),Object[_0x62c71e(0x237)](_0x489082)[_0x62c71e(0x269)](function(_0x22fee8){var _0x5b7710=_0x62c71e,_0x408104=_0x22fee8[0x0],_0x3957bf=_0x22fee8[0x1];_0x408104===_0x5b7710(0x1fd)&&typeof _0x3957bf==_0x5b7710(0x213)&&(_0x489082[_0x408104]=_0x3957bf[_0x5b7710(0x24e)](/url\(#(.*)\)/,_0x5b7710(0x1fe)[_0x5b7710(0x16d)](_0x57f08f['idSuffix'],')')));});var _0x256802=_0x57f08f[_0x62c71e(0x239)];return!_0x256802||_0x256802['length']===0x0||(_0x509324['tag']==='use'&&_0x489082[_0x62c71e(0x13f)]&&(_0x489082['xlink:href']=_0x489082['xlink:href']+_0x57f08f[_0x62c71e(0x28b)]),Object[_0x62c71e(0x237)](_0x489082)[_0x62c71e(0x269)](function(_0x3b4cc9){var _0x3ccd98=_0x62c71e,_0x4ed07e=_0x3b4cc9[0x0],_0x2ec2b5=_0x3b4cc9[0x1];typeof _0x2ec2b5==_0x3ccd98(0x213)&&(_0x489082[_0x4ed07e]=_0x2ec2b5['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x57f08f['idSuffix'],')')));})),_0x489082;}function _0x567920(_0x5cf755,_0xfed77f){var _0x119376=_0x32b952,_0x89f737,_0x1c762c=_0xfed77f[_0x119376(0x239)];return!_0x1c762c||_0x1c762c[_0x119376(0x136)]===0x0?_0x5cf755:_0x5cf755[_0x119376(0x2a7)]===_0x119376(0x2aa)&&(!((_0x89f737=_0x5cf755[_0x119376(0x2b4)])===null||_0x89f737===void 0x0)&&_0x89f737[_0x119376(0x136)])?_0x2f52b9(_0x2f52b9({},_0x5cf755),{'children':_0x5cf755[_0x119376(0x2b4)][_0x119376(0x19b)](function(_0x99067e){var _0x4b7e83=_0x119376;return typeof _0x99067e[_0x4b7e83(0x24c)]['id']==_0x4b7e83(0x213)&&_0x1c762c&&_0x1c762c['includes'](_0x99067e[_0x4b7e83(0x24c)]['id'])?_0x2f52b9(_0x2f52b9({},_0x99067e),{'attrs':_0x2f52b9(_0x2f52b9({},_0x99067e[_0x4b7e83(0x24c)]),{'id':_0x99067e['attrs']['id']+_0xfed77f[_0x4b7e83(0x28b)]})}):_0x99067e;})}):_0x5cf755;}function _0x220baf(){var _0x33e1de=_0x32b952;return Math[_0x33e1de(0x288)]()[_0x33e1de(0x16a)](0x24)['substring'](0x2,0x8);}_0x75f517[_0x32b952(0x29e)]=_0x32b952(0x286);var _0x2ce873={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x32b952(0x16c),'width':_0x32b952(0x1af),'height':_0x32b952(0x1af)},'children':[{'tag':'path','attrs':{'fill':_0x32b952(0x13b),'d':_0x32b952(0x289),'fillRule':_0x32b952(0x135),'clipRule':_0x32b952(0x135)}}]},_0x63e0f=_0x4bc8f1['forwardRef'](function(_0x455862,_0x29b734){var _0x21933d=_0x32b952;return _0x4bc8f1[_0x21933d(0x240)](_0x75f517,Object[_0x21933d(0x181)]({},_0x455862,{'id':'check-mark-icon','ref':_0x29b734,'icon':_0x2ce873}));});_0x63e0f['displayName']='CheckMarkIcon';var _0x127564={'tag':_0x32b952(0x2ae),'attrs':{'xmlns':_0x32b952(0x2b8),'fill':_0x32b952(0x1aa),'viewBox':_0x32b952(0x20d),'width':'1em','height':_0x32b952(0x1af)},'children':[{'tag':_0x32b952(0x282),'attrs':{'stroke':_0x32b952(0x13b),'d':'M5.21243\x205.62036L11.8791\x2012.287','strokeLinecap':_0x32b952(0x1ca),'strokeLinejoin':_0x32b952(0x1ca),'strokeWidth':1.33}},{'tag':_0x32b952(0x282),'attrs':{'stroke':_0x32b952(0x13b),'d':_0x32b952(0x1c1),'strokeLinecap':_0x32b952(0x1ca),'strokeLinejoin':'round','strokeWidth':1.33}}]},_0xc4d1d3=_0x4bc8f1[_0x32b952(0x1c7)](function(_0xaef33,_0x5d672a){var _0xd8c3aa=_0x32b952;return _0x4bc8f1[_0xd8c3aa(0x240)](_0x75f517,Object[_0xd8c3aa(0x181)]({},_0xaef33,{'id':_0xd8c3aa(0x1e3),'ref':_0x5d672a,'icon':_0x127564}));});_0xc4d1d3[_0x32b952(0x29e)]=_0x32b952(0x146);var _0x12ee30={'tag':_0x32b952(0x2ae),'attrs':{'xmlns':_0x32b952(0x2b8),'fill':_0x32b952(0x1aa),'viewBox':_0x32b952(0x16c),'width':_0x32b952(0x1af),'height':_0x32b952(0x1af)},'children':[{'tag':'path','attrs':{'fill':_0x32b952(0x13b),'d':_0x32b952(0x1ad)}},{'tag':_0x32b952(0x282),'attrs':{'fill':_0x32b952(0x13b),'d':_0x32b952(0x271)}},{'tag':_0x32b952(0x282),'attrs':{'fill':'currentColor','d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x32b952(0x135),'clipRule':_0x32b952(0x135)}}]},_0x11c0f7=_0x4bc8f1[_0x32b952(0x1c7)](function(_0x58469a,_0x17ce11){var _0x1856bf=_0x32b952;return _0x4bc8f1[_0x1856bf(0x240)](_0x75f517,Object['assign']({},_0x58469a,{'id':_0x1856bf(0x184),'ref':_0x17ce11,'icon':_0x12ee30}));});_0x11c0f7['displayName']=_0x32b952(0x200);var _0x6e4a69={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x32b952(0x1aa),'viewBox':_0x32b952(0x16c),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x32b952(0x232)},'children':[{'tag':_0x32b952(0x282),'attrs':{'stroke':_0x32b952(0x13b),'d':_0x32b952(0x21b),'strokeLinecap':'round','strokeLinejoin':_0x32b952(0x1ca),'strokeWidth':1.2}}]},{'tag':_0x32b952(0x2aa),'attrs':{},'children':[{'tag':_0x32b952(0x295),'attrs':{'id':_0x32b952(0x265)},'children':[{'tag':_0x32b952(0x282),'attrs':{'fill':_0x32b952(0x177),'d':_0x32b952(0x25b)}}]}]}],'defIds':[_0x32b952(0x265)]},_0x3ea4c2=_0x4bc8f1[_0x32b952(0x1c7)](function(_0x28b0a0,_0x37d9a9){var _0xba1649=_0x32b952;return _0x4bc8f1['createElement'](_0x75f517,Object[_0xba1649(0x181)]({},_0x28b0a0,{'id':_0xba1649(0x1cd),'ref':_0x37d9a9,'icon':_0x6e4a69}));});_0x3ea4c2[_0x32b952(0x29e)]=_0x32b952(0x1e4);var _0x7d576b={'tag':_0x32b952(0x2ae),'attrs':{'xmlns':_0x32b952(0x2b8),'fill':_0x32b952(0x1aa),'viewBox':_0x32b952(0x1c6),'width':_0x32b952(0x1af),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x32b952(0x282),'attrs':{'stroke':_0x32b952(0x13b),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x32b952(0x1ca),'strokeLinejoin':_0x32b952(0x1ca),'strokeWidth':1.2}}]},{'tag':_0x32b952(0x2aa),'attrs':{},'children':[{'tag':_0x32b952(0x295),'attrs':{'id':_0x32b952(0x277)},'children':[{'tag':_0x32b952(0x282),'attrs':{'fill':_0x32b952(0x177),'d':_0x32b952(0x25b),'transform':_0x32b952(0x1b0)}}]}]}],'defIds':[_0x32b952(0x277)]},_0x319e66=_0x4bc8f1[_0x32b952(0x1c7)](function(_0x27a6fe,_0x42acad){var _0x2aa3b8=_0x32b952;return _0x4bc8f1[_0x2aa3b8(0x240)](_0x75f517,Object[_0x2aa3b8(0x181)]({},_0x27a6fe,{'id':_0x2aa3b8(0x292),'ref':_0x42acad,'icon':_0x7d576b}));});_0x319e66[_0x32b952(0x29e)]=_0x32b952(0x18d);function _0x36fbab(_0x2c06e2){var _0x34b911=_0x32b952,_0x2b907d,_0x570bb4;const {mcpCoreConfig:_0x2accc7,onSave:_0x2dabe1,loading:_0x121b60=!0x1,config:_0x531692,connectionStatus$:_0x45fb32,connectionError$:_0x1d2c39}=_0x2c06e2,_0x468bff=_0xaf74bf['useDependency'](_0x36a8d0[_0x34b911(0x2a9)]),_0x59acc6=_0xaf74bf[_0x34b911(0x15c)](_0x45fb32,_0x3d5e8c[_0x34b911(0x233)][_0x34b911(0x1d4)]),_0x40dbbe=_0xaf74bf[_0x34b911(0x15c)](_0x1d2c39,_0x3d5e8c[_0x34b911(0x168)][_0x34b911(0x18c)]),[_0x1de685,_0x5f5c2b]=_0x4bc8f1['useState'](_0x2accc7['apiKey']||''),_0x462ddd=!0x0,_0x144b7a=_0x531692[_0x34b911(0x1d6)]&&_0x2accc7[_0x34b911(0x2bd)]&&(_0x2accc7['mcpServerUrl'][_0x34b911(0x241)](_0x34b911(0x2a6))||_0x2accc7[_0x34b911(0x2bd)][_0x34b911(0x241)](_0x34b911(0x1b5))),_0x4fe2a0=(_0x2b907d=_0x2accc7['mcpServerUrl'])==null?void 0x0:_0x2b907d[_0x34b911(0x241)](_0x34b911(0x2a6)),_0x214fe6=(_0x570bb4=_0x2accc7[_0x34b911(0x2bd)])==null?void 0x0:_0x570bb4[_0x34b911(0x241)](_0x34b911(0x1b5)),_0x533510=_0x4fe2a0?'https://console.univer.plus':_0x34b911(0x178),_0x5759d6=_0x531692[_0x34b911(0x1d6)]&&(_0x4fe2a0||_0x214fe6),[_0x571e9e,_0x5b6430]=_0x4bc8f1[_0x34b911(0x1a8)](!_0x1de685[_0x34b911(0x230)]()),_0x53ef57=(_0xb5de,_0xa20de2)=>{var _0x5ca99e=_0x34b911;if(_0xa20de2===_0x3d5e8c[_0x5ca99e(0x168)][_0x5ca99e(0x139)]||_0xa20de2===_0x3d5e8c['MCPConnectionError'][_0x5ca99e(0x1ec)])return _0x5ca99e(0x209);switch(_0xb5de){case _0x3d5e8c[_0x5ca99e(0x233)][_0x5ca99e(0x196)]:return _0x5ca99e(0x14f);case _0x3d5e8c[_0x5ca99e(0x233)][_0x5ca99e(0x171)]:case _0x3d5e8c[_0x5ca99e(0x233)][_0x5ca99e(0x1e6)]:return _0x5ca99e(0x2be);case _0x3d5e8c[_0x5ca99e(0x233)][_0x5ca99e(0x1ff)]:return _0x5ca99e(0x209);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x706aa=(_0x22ed9b,_0x31f2c0)=>{var _0x1472d2=_0x34b911;if(_0x31f2c0===_0x3d5e8c[_0x1472d2(0x168)][_0x1472d2(0x139)]||_0x31f2c0===_0x3d5e8c[_0x1472d2(0x168)][_0x1472d2(0x1ec)])return _0x1472d2(0x187);switch(_0x22ed9b){case _0x3d5e8c[_0x1472d2(0x233)]['CONNECTED']:return _0x1472d2(0x143);case _0x3d5e8c[_0x1472d2(0x233)][_0x1472d2(0x171)]:case _0x3d5e8c[_0x1472d2(0x233)][_0x1472d2(0x1e6)]:return _0x1472d2(0x14b);case _0x3d5e8c[_0x1472d2(0x233)]['FAILED']:return'univer-bg-red-500';default:return _0x1472d2(0x283);}},_0x45b318=_0x1fdb62=>{var _0x4780ca=_0x34b911;switch(_0x1fdb62){case _0x3d5e8c[_0x4780ca(0x233)][_0x4780ca(0x196)]:return _0x468bff['t'](_0x4780ca(0x28d));case _0x3d5e8c['MCPConnectionStatus'][_0x4780ca(0x171)]:return _0x468bff['t'](_0x4780ca(0x27e));case _0x3d5e8c['MCPConnectionStatus']['FAILED']:return _0x468bff['t'](_0x4780ca(0x24d));case _0x3d5e8c[_0x4780ca(0x233)][_0x4780ca(0x1e6)]:return _0x468bff['t'](_0x4780ca(0x1ee));default:return _0x468bff['t']('mcpConfig.connectionStatus.disconnected');}},_0x115db4=_0x281a88=>{var _0x319da8=_0x34b911;switch(_0x281a88){case _0x3d5e8c[_0x319da8(0x168)][_0x319da8(0x139)]:return _0x468bff['t'](_0x319da8(0x163));case _0x3d5e8c[_0x319da8(0x168)]['INVALID_API_KEY']:return _0x468bff['t'](_0x319da8(0x25d));case _0x3d5e8c[_0x319da8(0x168)][_0x319da8(0x22e)]:return _0x468bff['t'](_0x319da8(0x145));case _0x3d5e8c[_0x319da8(0x168)]['NETWORK_ERROR']:return _0x468bff['t'](_0x319da8(0x17c));case _0x3d5e8c['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x468bff['t'](_0x319da8(0x1a9));default:return'';}},_0xad0f3f=_0x4bc8f1[_0x34b911(0x27a)](()=>{var _0x47fa34=_0x34b911;const _0x348c78={..._0x2accc7,'apiKey':_0x1de685[_0x47fa34(0x230)](),'enableAuth':_0x462ddd};_0x2dabe1(_0x348c78);},[_0x2accc7,_0x1de685,_0x462ddd,_0x2dabe1]),_0x57a26b=_0x1de685[_0x34b911(0x230)]()['length']>0x0;return _0x1d754b[_0x34b911(0x268)]('div',{'className':_0x34b911(0x26c),'children':[_0x1d754b[_0x34b911(0x29a)]('div',{'className':_0x34b911(0x1c4),'children':_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x160),'children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':_0x34b911(0x157),'children':_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'className':_0x34b911(0x285),'children':'⚙'})}),_0x1d754b[_0x34b911(0x29a)]('div',{'children':_0x1d754b[_0x34b911(0x29a)]('p',{'className':_0x34b911(0x1ed),'children':_0x468bff['t'](_0x34b911(0x26e))})})]})}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x18f),'children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x53ef57(_0x59acc6,_0x40dbbe)+_0x34b911(0x1d1),'children':_0x1d754b[_0x34b911(0x268)]('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':_0x34b911(0x1ea)+_0x706aa(_0x59acc6,_0x40dbbe)+'\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'}),_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'className':_0x34b911(0x140),'children':_0x45b318(_0x59acc6)})]})}),_0x40dbbe!==_0x3d5e8c['MCPConnectionError'][_0x34b911(0x18c)]&&(_0x59acc6===_0x3d5e8c[_0x34b911(0x233)][_0x34b911(0x1ff)]||_0x40dbbe===_0x3d5e8c[_0x34b911(0x168)][_0x34b911(0x139)]||_0x40dbbe===_0x3d5e8c[_0x34b911(0x168)][_0x34b911(0x1ec)])&&_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':_0x34b911(0x1b2),'children':_0x1d754b[_0x34b911(0x268)]('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'className':_0x34b911(0x192),'children':'⚠️'}),_0x1d754b[_0x34b911(0x29a)]('p',{'className':_0x34b911(0x185),'children':_0x115db4(_0x40dbbe)})]})})]}),_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x1d754b[_0x34b911(0x268)]('div',{'className':_0x34b911(0x141),'children':[_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x1d7),'children':[_0x1d754b[_0x34b911(0x268)](_0x34b911(0x1ac),{'className':_0x34b911(0x191),'children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'children':'🔑'}),'\x20',_0x468bff['t'](_0x34b911(0x29c)),_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'className':_0x34b911(0x208),'children':'*'}),_0x144b7a&&_0x1d754b[_0x34b911(0x29a)]('a',{'href':'javascript:void(0)','onClick':()=>_0x5b6430(!0x0),'className':'univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x468bff['t'](_0x34b911(0x267)),'children':_0x1d754b['jsx'](_0x11c0f7,{})})]}),_0x1d754b[_0x34b911(0x29a)](_0xa6997b['Input'],{'type':_0x34b911(0x174),'placeholder':_0x468bff['t'](_0x34b911(0x296)),'value':_0x1de685,'onChange':_0x5f5c2b,'disabled':_0x121b60,'autoComplete':_0x34b911(0x251)}),_0x1d754b[_0x34b911(0x29a)]('p',{'className':_0x34b911(0x214),'children':_0x468bff['t'](_0x34b911(0x272))})]}),_0x144b7a&&_0x571e9e&&_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x217),'children':[_0x1d754b[_0x34b911(0x29a)]('a',{'href':'javascript:void(0)','onClick':()=>_0x5b6430(!0x1),'className':_0x34b911(0x1ba),'title':_0x34b911(0x259),'children':_0x1d754b[_0x34b911(0x29a)](_0xc4d1d3,{})}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':_0x34b911(0x16e),'children':_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'className':_0x34b911(0x2ad),'children':'🚀'})}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':'univer-flex-1','children':[_0x1d754b[_0x34b911(0x29a)]('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x468bff['t'](_0x34b911(0x267))}),_0x1d754b[_0x34b911(0x29a)]('p',{'className':_0x34b911(0x2bc),'children':_0x468bff['t'](_0x34b911(0x17b))}),_0x1d754b['jsx'](_0x34b911(0x19c),{'className':'univer-flex\x20univer-flex-wrap\x20univer-gap-2','children':_0x5759d6&&_0x1d754b[_0x34b911(0x268)]('a',{'href':_0x533510,'target':_0x34b911(0x15a),'rel':'noopener\x20noreferrer','className':_0x34b911(0x242),'children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'children':'🤖'}),_0x468bff['t'](_0x34b911(0x29f)),_0x1d754b[_0x34b911(0x29a)]('span',{'className':_0x34b911(0x183),'children':'↗'})]})}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x215),'children':['✨','\x20',_0x468bff['t'](_0x34b911(0x2b5))]})]})]})]}),_0x531692['showDeveloperTools']&&_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x1f7),'children':[_0x1d754b[_0x34b911(0x268)]('h4',{'className':_0x34b911(0x1a6),'children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'children':'🔗'}),'\x20',_0x468bff['t'](_0x34b911(0x1dc))]}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x21e),'children':[_0x1d754b['jsxs']('div',{'className':_0x34b911(0x1b6),'children':[_0x1d754b[_0x34b911(0x29a)]('div',{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x162),'children':[_0x1d754b['jsx']('div',{'className':_0x34b911(0x27f),'children':_0x468bff['t']('mcpConfig.serverEndpoint')}),_0x1d754b[_0x34b911(0x29a)]('code',{'className':_0x34b911(0x20b),'children':_0x2accc7['mcpServerUrl']})]})]}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x1d754b[_0x34b911(0x268)]('div',{'className':_0x34b911(0x162),'children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':_0x34b911(0x27f),'children':_0x468bff['t'](_0x34b911(0x1c9))}),_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x180),{'className':_0x34b911(0x2af),'children':_0x2accc7[_0x34b911(0x22a)]||_0x34b911(0x25a)})]})]})]})]}),_0x1d754b[_0x34b911(0x29a)](_0xa6997b[_0x34b911(0x210)],{'onClick':_0xad0f3f,'disabled':!_0x57a26b||_0x121b60,'className':_0x34b911(0x2b2),'children':_0x121b60?_0x1d754b['jsxs']('span',{'className':_0x34b911(0x19f),'children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x27b),{'children':'⟲'}),_0x468bff['t'](_0x34b911(0x252))]}):_0x1d754b[_0x34b911(0x268)]('span',{'className':_0x34b911(0x19f),'children':[_0x1d754b[_0x34b911(0x29a)](_0x63e0f,{}),_0x468bff['t'](_0x34b911(0x23f))]})}),_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':_0x34b911(0x1f0),'children':_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':_0x34b911(0x17f),'children':[_0x1d754b[_0x34b911(0x29a)]('span',{'className':_0x34b911(0x253),'children':'💡'}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x1d754b[_0x34b911(0x29a)](_0x34b911(0x19c),{'className':_0x34b911(0x165),'children':_0x34b911(0x243)}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'children':['•',_0x468bff['t']('mcpConfig.note1')]}),_0x1d754b[_0x34b911(0x268)](_0x34b911(0x19c),{'children':['•',_0x468bff['t']('mcpConfig.note2')]})]})]})})]})})]});}const _0x4f92f9=_0x32b952(0x207),_0x96ab60={'showDeveloperTools':!0x1};var _0x8f5c=Object[_0x32b952(0x2a0)],_0x17290d=(_0x490a03,_0x13c4f2,_0x31205e,_0x3bc573)=>{var _0x2b88b0=_0x32b952;for(var _0x2d29ea=_0x3bc573>0x1?void 0x0:_0x3bc573?_0x8f5c(_0x13c4f2,_0x31205e):_0x13c4f2,_0x1c274a=_0x490a03[_0x2b88b0(0x136)]-0x1,_0x2131f3;_0x1c274a>=0x0;_0x1c274a--)(_0x2131f3=_0x490a03[_0x1c274a])&&(_0x2d29ea=_0x2131f3(_0x2d29ea)||_0x2d29ea);return _0x2d29ea;},_0x388514=(_0x417a38,_0x485328)=>(_0x398000,_0x3bef0d)=>_0x485328(_0x398000,_0x3bef0d,_0x417a38);const _0x44467c=_0x32b952(0x27c),_0x3f2da3=_0x32b952(0x1a7);_0x2781c8[_0x32b952(0x28a)]=class extends _0x36a8d0[_0x32b952(0x1a2)]{constructor(_0x31a23b,_0x6c96b6,_0x27b98e,_0x17cfef,_0x53d31b,_0x1fa21a,_0x3f0f4e,_0x162bb4,_0x2337ce,_0x3e465d){var _0x731fe6=_0x32b952;super(),_0x49f581(this,_0x731fe6(0x22f),new _0x2accb4['BehaviorSubject'](!0x1)),_0x49f581(this,_0x731fe6(0x197),new _0x2accb4[(_0x731fe6(0x1f2))]({})),_0x49f581(this,_0x731fe6(0x13a),new _0x2accb4[(_0x731fe6(0x1f2))]({})),_0x49f581(this,'_handleConfigSave',async _0x5b60af=>{var _0x2a6370=_0x731fe6;this[_0x2a6370(0x22f)][_0x2a6370(0x2ac)](!0x0);try{const _0xb33c39=await this[_0x2a6370(0x17e)](_0x5b60af);if(!_0xb33c39[_0x2a6370(0x1a1)]){this[_0x2a6370(0x13e)][_0x2a6370(0x21a)]({'type':_0xa6997b[_0x2a6370(0x29b)][_0x2a6370(0x2a1)],'content':_0xb33c39['errorMessage']||this[_0x2a6370(0x1c0)]['t'](_0x2a6370(0x28f))});return;}_0x5b60af['apiKey']?await this[_0x2a6370(0x1da)]['setItem'](_0x44467c,_0x5b60af[_0x2a6370(0x297)][_0x2a6370(0x230)]()):await this[_0x2a6370(0x1da)][_0x2a6370(0x1e5)](_0x44467c),this['_configService'][_0x2a6370(0x26f)](_0x3d5e8c[_0x2a6370(0x1dd)],{..._0x5b60af,'apiKey':_0x5b60af[_0x2a6370(0x297)][_0x2a6370(0x230)]()}),this[_0x2a6370(0x197)][_0x2a6370(0x2ac)]({..._0x5b60af,'apiKey':_0x5b60af[_0x2a6370(0x297)][_0x2a6370(0x230)]()}),this[_0x2a6370(0x13e)]['show']({'type':_0xa6997b['MessageType'][_0x2a6370(0x249)],'content':this[_0x2a6370(0x1c0)]['t'](_0x2a6370(0x298))}),setTimeout(()=>{var _0x396129=_0x2a6370;this[_0x396129(0x26d)][_0x396129(0x15d)](_0x3f2da3);},0x320);}catch(_0x11043d){this[_0x2a6370(0x13d)]['error'](_0x2a6370(0x22d),_0x11043d),this[_0x2a6370(0x13e)][_0x2a6370(0x21a)]({'type':_0xa6997b['MessageType'][_0x2a6370(0x2a1)],'content':this[_0x2a6370(0x1c0)]['t'](_0x2a6370(0x1b3))});}finally{this['_loading$'][_0x2a6370(0x2ac)](!0x1);}}),(this[_0x731fe6(0x167)]=_0x31a23b,this[_0x731fe6(0x14d)]=_0x6c96b6,this[_0x731fe6(0x211)]=_0x27b98e,this['_localStorageService']=_0x17cfef,this['_dialogService']=_0x53d31b,this['_messageService']=_0x1fa21a,this[_0x731fe6(0x23e)]=_0x3f0f4e,this[_0x731fe6(0x1c0)]=_0x162bb4,this['_logService']=_0x2337ce,this[_0x731fe6(0x1e8)]=_0x3e465d,this['_initConfigSync'](),this[_0x731fe6(0x222)](),this[_0x731fe6(0x2a4)]());}['showConfigPanel'](){var _0x5b50d2=_0x32b952;this['_dialogService']['open']({'id':_0x3f2da3,'title':{'title':this['_localeService']['t'](_0x5b50d2(0x1bb))},'children':{'label':_0x5b50d2(0x152)},'width':0x1e0,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x414c8c=_0x5b50d2;this['_dialogService'][_0x414c8c(0x15d)](_0x3f2da3);}});}[_0x32b952(0x1f1)](){return this['_mcpCoreConfig$']['value'];}[_0x32b952(0x2a4)](){var _0x5cdfd9=_0x32b952;this[_0x5cdfd9(0x1df)](this['_componentManager'][_0x5cdfd9(0x1cb)]('MCPConfigPanel',this[_0x5cdfd9(0x260)]()));}[_0x32b952(0x260)](){var _0x5bbdd3=_0x32b952;return _0xaf74bf[_0x5bbdd3(0x231)](()=>{var _0x11d6e6=_0x5bbdd3,_0x51c533,_0x5d9fe9;return _0x1d754b[_0x11d6e6(0x29a)](_0x36fbab,{'config':this['_config$'][_0x11d6e6(0x21f)],'mcpCoreConfig':this['_mcpCoreConfig$']['value'],'onSave':this[_0x11d6e6(0x14e)],'loading':this['_loading$'][_0x11d6e6(0x21f)],'connectionStatus$':(_0x51c533=this[_0x11d6e6(0x1e8)])==null?void 0x0:_0x51c533[_0x11d6e6(0x166)],'connectionError$':(_0x5d9fe9=this[_0x11d6e6(0x1e8)])==null?void 0x0:_0x5d9fe9[_0x11d6e6(0x18e)]});},this[_0x5bbdd3(0x167)]);}['_initConfigSync'](){var _0x2ccf71=_0x32b952;this[_0x2ccf71(0x1df)](this[_0x2ccf71(0x211)][_0x2ccf71(0x1a3)](_0x3d5e8c[_0x2ccf71(0x1dd)])[_0x2ccf71(0x2a8)](_0x1cffce=>{var _0xd68fc1=_0x2ccf71;this[_0xd68fc1(0x197)][_0xd68fc1(0x2ac)](_0x1cffce||{});}));const _0x2ddfb5=this[_0x2ccf71(0x211)]['getConfig'](_0x3d5e8c[_0x2ccf71(0x1dd)]);this['_mcpCoreConfig$'][_0x2ccf71(0x2ac)](_0x2ddfb5||{}),this[_0x2ccf71(0x1df)](this[_0x2ccf71(0x211)][_0x2ccf71(0x1a3)](_0x4f92f9)[_0x2ccf71(0x2a8)](_0x562ec4=>{var _0x28de48=_0x2ccf71;this[_0x28de48(0x13a)][_0x28de48(0x2ac)](_0x562ec4||{});}));const _0x200588=this['_configService'][_0x2ccf71(0x2ab)](_0x4f92f9);this[_0x2ccf71(0x13a)][_0x2ccf71(0x2ac)](_0x200588||{});}async['_loadStoredApiKey'](){var _0x1db952=_0x32b952;const _0x36741a=await this[_0x1db952(0x1da)][_0x1db952(0x23d)](_0x44467c);if(_0x36741a){const _0x11bb82={...this[_0x1db952(0x197)][_0x1db952(0x21f)],'apiKey':_0x36741a};this[_0x1db952(0x211)][_0x1db952(0x26f)](_0x3d5e8c[_0x1db952(0x1dd)],_0x11bb82),this[_0x1db952(0x197)][_0x1db952(0x2ac)](_0x11bb82);}}async[_0x32b952(0x17e)](_0x4dce1b){var _0x45bc45=_0x32b952;if(!_0x4dce1b['apiKey']||_0x4dce1b[_0x45bc45(0x297)]['trim']()[_0x45bc45(0x136)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x45bc45(0x1c0)]['t'](_0x45bc45(0x19a))};if(_0x4dce1b[_0x45bc45(0x297)][_0x45bc45(0x230)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x45bc45(0x1c0)]['t'](_0x45bc45(0x21c))};try{const _0x2b03b9=await this['_injector'][_0x45bc45(0x299)](_0x3d5e8c[_0x45bc45(0x258)])[_0x45bc45(0x256)](_0x4dce1b['apiKey'][_0x45bc45(0x230)]());return _0x2b03b9[_0x45bc45(0x1a1)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2b03b9[_0x45bc45(0x1f5)]||this[_0x45bc45(0x1c0)]['t'](_0x45bc45(0x1b1))};}catch(_0x5dc00a){return console[_0x45bc45(0x264)](_0x45bc45(0x247),_0x5dc00a),{'isValid':!0x0};}}},_0x2781c8['MCPConfigUIController']=_0x17290d([_0x388514(0x0,_0x36a8d0[_0x32b952(0x137)](_0x36a8d0['Injector'])),_0x388514(0x1,_0xaf74bf['IUIPartsService']),_0x388514(0x2,_0x36a8d0[_0x32b952(0x1f8)]),_0x388514(0x3,_0x36a8d0['ILocalStorageService']),_0x388514(0x4,_0xaf74bf[_0x32b952(0x2b1)]),_0x388514(0x5,_0xaf74bf['IMessageService']),_0x388514(0x6,_0x36a8d0['Inject'](_0xaf74bf[_0x32b952(0x21d)])),_0x388514(0x7,_0x36a8d0['Inject'](_0x36a8d0['LocaleService'])),_0x388514(0x8,_0x36a8d0['ILogService']),_0x388514(0x9,_0x36a8d0[_0x32b952(0x137)](_0x3d5e8c[_0x32b952(0x258)]))],_0x2781c8[_0x32b952(0x28a)]);const _0x830ca7={'id':_0x32b952(0x195),'type':_0x36a8d0['CommandType'][_0x32b952(0x1de)],'handler':async(_0x5374e8,_0x318261)=>(_0x5374e8[_0x32b952(0x299)](_0x2781c8['MCPConfigUIController'])[_0x32b952(0x164)](),!0x0)};function _0x2bf2c2(_0x282f5e,_0x59b7c8){var _0x3887f8=_0x32b952;switch(_0x282f5e){case _0x3d5e8c['MCPConnectionStatus'][_0x3887f8(0x1d4)]:return _0x59b7c8===_0x3d5e8c[_0x3887f8(0x168)][_0x3887f8(0x139)]?_0x3887f8(0x2bb):_0x3887f8(0x2ba);case _0x3d5e8c[_0x3887f8(0x233)]['CONNECTING']:return _0x3887f8(0x1e0);case _0x3d5e8c[_0x3887f8(0x233)][_0x3887f8(0x196)]:return _0x3887f8(0x275);case _0x3d5e8c[_0x3887f8(0x233)][_0x3887f8(0x1ff)]:switch(_0x59b7c8){case _0x3d5e8c[_0x3887f8(0x168)][_0x3887f8(0x1ec)]:return _0x3887f8(0x1e1);case _0x3d5e8c[_0x3887f8(0x168)][_0x3887f8(0x22e)]:return _0x3887f8(0x2b6);case _0x3d5e8c['MCPConnectionError'][_0x3887f8(0x1fa)]:return _0x3887f8(0x182);case _0x3d5e8c[_0x3887f8(0x168)][_0x3887f8(0x294)]:return _0x3887f8(0x24f);default:return _0x3887f8(0x155);}case _0x3d5e8c[_0x3887f8(0x233)][_0x3887f8(0x1e6)]:return _0x3887f8(0x1be);default:return _0x3887f8(0x23b);}}function _0x2255dd(_0x4fb3af,_0x50e592,_0x19fe97){var _0xc35009=_0x32b952;const _0x5cbf82=_0x2bf2c2(_0x4fb3af,_0x50e592),_0xeeeed6=_0x19fe97['t'](_0x5cbf82);return _0x4fb3af===_0x3d5e8c[_0xc35009(0x233)]['DISCONNECTED']&&_0x50e592===_0x3d5e8c[_0xc35009(0x168)]['MISSING_API_KEY']?_0xeeeed6+'\x20-\x20'+_0x19fe97['t'](_0xc35009(0x246)):_0x4fb3af===_0x3d5e8c[_0xc35009(0x233)][_0xc35009(0x196)]?''+_0xeeeed6:_0x4fb3af===_0x3d5e8c[_0xc35009(0x233)][_0xc35009(0x1d4)]||_0x4fb3af===_0x3d5e8c[_0xc35009(0x233)][_0xc35009(0x1ff)]?_0xeeeed6+_0xc35009(0x1e2)+_0x19fe97['t'](_0xc35009(0x220)):_0xeeeed6;}function _0x286cfc(_0x3795e6){var _0x404ed8=_0x32b952;switch(_0x3795e6){case _0x3d5e8c[_0x404ed8(0x233)][_0x404ed8(0x196)]:return _0x404ed8(0x276);case _0x3d5e8c[_0x404ed8(0x233)][_0x404ed8(0x171)]:case _0x3d5e8c[_0x404ed8(0x233)][_0x404ed8(0x1e6)]:return _0x404ed8(0x263);case _0x3d5e8c[_0x404ed8(0x233)]['FAILED']:case _0x3d5e8c[_0x404ed8(0x233)][_0x404ed8(0x1d4)]:return _0x404ed8(0x208);default:return _0x404ed8(0x2b9);}}function _0x2fcc2f(_0x3916bc){var _0x35b468=_0x32b952;const {status$:_0x367dfe,error$:_0x2d1c6f,onConfigure:_0x1de18b}=_0x3916bc,_0x188bcb=_0xaf74bf[_0x35b468(0x15c)](_0x367dfe,_0x3d5e8c[_0x35b468(0x233)][_0x35b468(0x1d4)]),_0x3d6fa2=_0xaf74bf[_0x35b468(0x15c)](_0x2d1c6f,_0x3d5e8c['MCPConnectionError'][_0x35b468(0x18c)]),_0x3529cb=_0xaf74bf[_0x35b468(0x18a)](_0x36a8d0[_0x35b468(0x2a9)]),_0x2ac7bb=_0x188bcb===_0x3d5e8c[_0x35b468(0x233)][_0x35b468(0x196)],_0x3a8369=_0x188bcb===_0x3d5e8c['MCPConnectionStatus'][_0x35b468(0x171)]||_0x188bcb===_0x3d5e8c['MCPConnectionStatus'][_0x35b468(0x1e6)],_0x136bed=_0x3529cb['t'](_0x2bf2c2(_0x188bcb,_0x3d6fa2)),_0x112856=_0x2255dd(_0x188bcb,_0x3d6fa2,_0x3529cb),_0x1e5cee=_0x286cfc(_0x188bcb),_0x2a685a=_0x2ac7bb?_0x1d754b['jsx'](_0x319e66,{}):_0x1d754b[_0x35b468(0x29a)](_0x3ea4c2,{}),_0x758b9c=_0x4bc8f1[_0x35b468(0x27a)](()=>{_0x1de18b&&_0x1de18b();},[_0x2ac7bb,_0x3a8369,_0x1de18b]);function _0x51d3c9(){var _0x2c351a=_0x35b468;return _0x1d754b[_0x2c351a(0x268)]('div',{'className':_0xa6997b[_0x2c351a(0x1d2)](_0x2c351a(0x261),_0x1de18b&&_0x2c351a(0x25c)),'onClick':_0x1de18b?_0x758b9c:void 0x0,'children':[_0x1d754b['jsx'](_0x2c351a(0x19c),{'className':_0xa6997b[_0x2c351a(0x1d2)](_0x2c351a(0x29d),_0x1e5cee),'children':_0x2a685a}),_0x1d754b[_0x2c351a(0x29a)]('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x136bed})]});}return _0x1d754b[_0x35b468(0x29a)](_0xa6997b['Tooltip'],{'title':_0x112856,'placement':_0x35b468(0x212),'children':_0x51d3c9()});}var _0xb2f12e=Object[_0x32b952(0x2a0)],_0x2bc900=(_0x3b7333,_0x1b3047,_0x1483c6,_0x39aafe)=>{var _0x3c3f34=_0x32b952;for(var _0x34d904=_0x39aafe>0x1?void 0x0:_0x39aafe?_0xb2f12e(_0x1b3047,_0x1483c6):_0x1b3047,_0x490387=_0x3b7333[_0x3c3f34(0x136)]-0x1,_0x32fcd8;_0x490387>=0x0;_0x490387--)(_0x32fcd8=_0x3b7333[_0x490387])&&(_0x34d904=_0x32fcd8(_0x34d904)||_0x34d904);return _0x34d904;},_0x59f4e7=(_0x5470de,_0x4e4d8f)=>(_0x252d2f,_0x12b751)=>_0x4e4d8f(_0x252d2f,_0x12b751,_0x5470de);_0x2781c8[_0x32b952(0x1f6)]=class extends _0x36a8d0[_0x32b952(0x1a2)]{constructor(_0x31de7b,_0x291f46,_0x416c0f){var _0x2d73fa=_0x32b952;super(),this[_0x2d73fa(0x167)]=_0x31de7b,this['_connectionController']=_0x291f46,this[_0x2d73fa(0x14d)]=_0x416c0f,this[_0x2d73fa(0x193)]();}[_0x32b952(0x193)](){var _0x5716ab=_0x32b952;this[_0x5716ab(0x1df)](this[_0x5716ab(0x14d)]['registerComponent'](_0xaf74bf[_0x5716ab(0x161)][_0x5716ab(0x22c)],()=>_0xaf74bf[_0x5716ab(0x231)](_0x2fbabe({'status$':this[_0x5716ab(0x142)][_0x5716ab(0x166)],'error$':this[_0x5716ab(0x142)][_0x5716ab(0x18e)],'onConfigure':()=>this[_0x5716ab(0x15e)]()}),this[_0x5716ab(0x167)])));}[_0x32b952(0x15e)](){var _0x250efc=_0x32b952;this[_0x250efc(0x167)][_0x250efc(0x299)](_0x2781c8['MCPConfigUIController'])[_0x250efc(0x164)]();}},_0x2781c8['MCPConnectionUIController']=_0x2bc900([_0x59f4e7(0x0,_0x36a8d0[_0x32b952(0x137)](_0x36a8d0[_0x32b952(0x2b0)])),_0x59f4e7(0x1,_0x36a8d0[_0x32b952(0x137)](_0x3d5e8c['MCPConnectionController'])),_0x59f4e7(0x2,_0xaf74bf[_0x32b952(0x134)])],_0x2781c8[_0x32b952(0x1f6)]);function _0x2fbabe(_0x103e36){const {status$:_0x260737,error$:_0x89c7de,onConfigure:_0x1cc0e5}=_0x103e36;return function(){var _0x4b5f65=_0xaf6e;return _0x1d754b[_0x4b5f65(0x29a)](_0x2fcc2f,{'status$':_0x260737,'error$':_0x89c7de,'onConfigure':_0x1cc0e5});};}function _0x5d8207(_0x469310){var _0x20712b=_0x32b952;return{'id':_0x830ca7['id'],'type':_0xaf74bf['MenuItemType'][_0x20712b(0x1d3)],'icon':_0x20712b(0x15f),'title':'mcpConfig.title','tooltip':_0x20712b(0x1bb)};}const _0x2a6fdc={[_0xaf74bf[_0x32b952(0x14c)]['OTHERS']]:{[_0x830ca7['id']]:{'order':0xa,'menuItemFactory':_0x5d8207}}};var _0xcb0409=Object[_0x32b952(0x2a0)],_0x36a9b6=(_0x3f57f0,_0x1af205,_0x38524d,_0x2bee2b)=>{var _0x318886=_0x32b952;for(var _0x21fe7e=_0x2bee2b>0x1?void 0x0:_0x2bee2b?_0xcb0409(_0x1af205,_0x38524d):_0x1af205,_0x361fdc=_0x3f57f0[_0x318886(0x136)]-0x1,_0xdbf1f7;_0x361fdc>=0x0;_0x361fdc--)(_0xdbf1f7=_0x3f57f0[_0x361fdc])&&(_0x21fe7e=_0xdbf1f7(_0x21fe7e)||_0x21fe7e);return _0x21fe7e;},_0x57b165=(_0x554c26,_0x3402fb)=>(_0x17ca12,_0x139527)=>_0x3402fb(_0x17ca12,_0x139527,_0x554c26);_0x2781c8[_0x32b952(0x1d5)]=class extends _0x36a8d0[_0x32b952(0x1a2)]{constructor(_0x5f5986,_0x202500){var _0x477fba=_0x32b952;super(),this[_0x477fba(0x149)]=_0x5f5986,this[_0x477fba(0x278)]=_0x202500,this[_0x477fba(0x147)](),this[_0x477fba(0x16f)]();}[_0x32b952(0x147)](){var _0x3d4af7=_0x32b952;[_0x830ca7][_0x3d4af7(0x269)](_0x2e8527=>{var _0x3abc9a=_0x3d4af7;this[_0x3abc9a(0x1df)](this['_commandService'][_0x3abc9a(0x17d)](_0x2e8527));});}[_0x32b952(0x16f)](){var _0x4304cc=_0x32b952;this['_menuManagerService'][_0x4304cc(0x2a3)](_0x2a6fdc);}},_0x2781c8[_0x32b952(0x1d5)]=_0x36a9b6([_0x57b165(0x0,_0x36a8d0[_0x32b952(0x1a5)]),_0x57b165(0x1,_0xaf74bf[_0x32b952(0x27d)])],_0x2781c8[_0x32b952(0x1d5)]);const _0x3a5507={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x32b952(0x218),'connected':'MCP\x20Connected','failed':_0x32b952(0x24a),'retrying':'MCP\x20Retrying...','unknown':_0x32b952(0x1b7),'missingApiKey':_0x32b952(0x1b8),'invalidApiKey':_0x32b952(0x19d),'sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x32b952(0x156),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x32b952(0x199)},'mcpConfig':{'title':_0x32b952(0x1c8),'description':_0x32b952(0x281),'apiKey':_0x32b952(0x20f),'apiKeyPlaceholder':_0x32b952(0x227),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x32b952(0x158),'connectionInfo':'Connection\x20Information','serverEndpoint':_0x32b952(0x203),'sessionId':'Session\x20ID','maxRetries':'Max\x20Retries','save':_0x32b952(0x2a5),'saving':_0x32b952(0x236),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x32b952(0x238),'configSaved':_0x32b952(0x188),'configError':_0x32b952(0x274),'apiApplyInfo':{'title':_0x32b952(0x219),'description':_0x32b952(0x23c),'univerAiLabel':_0x32b952(0x1b4),'getStarted':_0x32b952(0x1bf)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x32b952(0x1e9),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x32b952(0x1a4)},'connectionStatus':{'disconnected':_0x32b952(0x1d9),'connecting':_0x32b952(0x150),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x32b952(0x223)},'connectionError':{'missingApiKey':_0x32b952(0x19e),'invalidApiKey':_0x32b952(0x1cf),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x32b952(0x228)}}},_0x5216bf={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x32b952(0x26a),'connected':_0x32b952(0x2a2),'failed':_0x32b952(0x20c),'retrying':_0x32b952(0x1e7),'unknown':_0x32b952(0x206),'missingApiKey':_0x32b952(0x176),'invalidApiKey':_0x32b952(0x279),'sessionOccupied':_0x32b952(0x235),'networkError':_0x32b952(0x23a),'maxRetriesExceeded':_0x32b952(0x148),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x32b952(0x1f9)},'mcpConfig':{'title':_0x32b952(0x14a),'description':_0x32b952(0x20a),'apiKey':_0x32b952(0x138),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x32b952(0x15b),'enableAuth':_0x32b952(0x144),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x32b952(0x229),'serverEndpoint':_0x32b952(0x1fb),'sessionId':_0x32b952(0x190),'maxRetries':_0x32b952(0x175),'save':_0x32b952(0x1c5),'saving':_0x32b952(0x25e),'note1':_0x32b952(0x270),'note2':_0x32b952(0x179),'configSaved':_0x32b952(0x291),'configError':_0x32b952(0x198),'apiApplyInfo':{'title':_0x32b952(0x225),'description':_0x32b952(0x13c),'univerAiLabel':_0x32b952(0x266),'getStarted':_0x32b952(0x1b9)},'validation':{'apiKeyRequired':_0x32b952(0x2b3),'apiKeyTooShort':_0x32b952(0x26b),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x32b952(0x257),'connecting':_0x32b952(0x151),'connected':_0x32b952(0x22b),'failed':_0x32b952(0x250),'retrying':_0x32b952(0x1ce)},'connectionError':{'missingApiKey':_0x32b952(0x1d0),'invalidApiKey':_0x32b952(0x201),'sessionOccupied':_0x32b952(0x28e),'networkError':_0x32b952(0x1ef),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var _0x3d2829=Object['defineProperty'],_0x424647=Object['getOwnPropertyDescriptor'],_0x25173f=(_0x236eda,_0x2d1ece,_0x3fb9e2)=>_0x2d1ece in _0x236eda?_0x3d2829(_0x236eda,_0x2d1ece,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fb9e2}):_0x236eda[_0x2d1ece]=_0x3fb9e2,_0x594340=(_0x5cce33,_0x3e836a,_0x33de76,_0x229912)=>{for(var _0x2983ad=_0x229912>0x1?void 0x0:_0x229912?_0x424647(_0x3e836a,_0x33de76):_0x3e836a,_0x43598d=_0x5cce33['length']-0x1,_0x2102b4;_0x43598d>=0x0;_0x43598d--)(_0x2102b4=_0x5cce33[_0x43598d])&&(_0x2983ad=_0x2102b4(_0x2983ad)||_0x2983ad);return _0x2983ad;},_0x3e66d0=(_0x3d4538,_0x1df26f)=>(_0x49a77e,_0x49af39)=>_0x1df26f(_0x49a77e,_0x49af39,_0x3d4538),_0x29f294=(_0xdcb4f2,_0x2e89b9,_0x7003ea)=>_0x25173f(_0xdcb4f2,_0x2e89b9+'',_0x7003ea);_0x2781c8[_0x32b952(0x254)]=class extends _0x36a8d0['Plugin']{constructor(_0x52d05b=_0x96ab60,_0x7bf740,_0x354c52,_0x2b6cd6,_0x515b08,_0x490400){var _0x55d001=_0x32b952;super(),this[_0x55d001(0x173)]=_0x52d05b,this[_0x55d001(0x167)]=_0x7bf740,this[_0x55d001(0x211)]=_0x354c52,this['_uiPartsService']=_0x2b6cd6,this[_0x55d001(0x1da)]=_0x515b08,this[_0x55d001(0x1c0)]=_0x490400;const {..._0x1895df}=_0x36a8d0[_0x55d001(0x1d8)]({},_0x96ab60,this[_0x55d001(0x173)]);this[_0x55d001(0x211)]['setConfig'](_0x4f92f9,_0x1895df);}async[_0x32b952(0x273)](){var _0x5db011=_0x32b952;[[_0x2781c8[_0x5db011(0x1f6)]],[_0x2781c8[_0x5db011(0x28a)]],[_0x2781c8[_0x5db011(0x1d5)]]][_0x5db011(0x269)](_0x3945de=>this[_0x5db011(0x167)][_0x5db011(0x189)](_0x3945de)),this['_injector'][_0x5db011(0x299)](_0x2781c8[_0x5db011(0x1f6)]),this[_0x5db011(0x167)][_0x5db011(0x299)](_0x2781c8['MCPConfigUIController']),this[_0x5db011(0x167)][_0x5db011(0x299)](_0x2781c8[_0x5db011(0x1d5)]);}},_0x29f294(_0x2781c8['UniverMCPUIPlugin'],_0x32b952(0x245),_0x32b952(0x18b)),_0x2781c8[_0x32b952(0x254)]=_0x594340([_0x36a8d0[_0x32b952(0x216)](_0x3d5e8c['UniverMCPPlugin']),_0x3e66d0(0x1,_0x36a8d0[_0x32b952(0x137)](_0x36a8d0[_0x32b952(0x2b0)])),_0x3e66d0(0x2,_0x36a8d0[_0x32b952(0x1f8)]),_0x3e66d0(0x3,_0xaf74bf[_0x32b952(0x134)]),_0x3e66d0(0x4,_0x36a8d0['ILocalStorageService']),_0x3e66d0(0x5,_0x36a8d0[_0x32b952(0x137)](_0x36a8d0[_0x32b952(0x2a9)]))],_0x2781c8['UniverMCPUIPlugin']),_0x2781c8[_0x32b952(0x152)]=_0x36fbab,_0x2781c8['MCPStatusDisplay']=_0x2fcc2f,_0x2781c8[_0x32b952(0x1a0)]=_0x830ca7,_0x2781c8[_0x32b952(0x248)]=_0x3a5507,_0x2781c8[_0x32b952(0x244)]=_0x5216bf,Object[_0x32b952(0x16b)](_0x2781c8,Symbol[_0x32b952(0x1bd)],{'value':_0x32b952(0x224)});}));
1
+ function _0x3f44(_0x5275d2,_0x415d10){var _0x67c866=_0x67c8();return _0x3f44=function(_0x3f44d4,_0x1fb197){_0x3f44d4=_0x3f44d4-0x7d;var _0x4b2ffc=_0x67c866[_0x3f44d4];return _0x4b2ffc;},_0x3f44(_0x5275d2,_0x415d10);}function _0x67c8(){var _0x2b22ca=['已连接','重启您的\x20MCP\x20客户端以使配置生效','_loading$','启用身份验证','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','mcpStatus.networkError','univer-text-sm\x20univer-text-gray-500','mcpConfig.note2','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','@univerjs/design','push','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','M5.21243\x205.62036L11.8791\x2012.287','MAX_RETRIES_EXCEEDED','MCP\x20Connecting...','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-space-y-3','DependentOn','_config$','mcpConfig.apiKey','translate(.97)','current','您的\x20API\x20密钥安全存储在本地存储中','带有\x20Bearer\x20前缀的\x20API\x20密钥。','CheckMarkIcon','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','ISocketService','什么是\x20API\x20密钥?','defIds','open','enableAutoConnect','配置\x20MCP\x20使用\x20AI\x20操作电子表格','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-text-gray-400','toStringTag','idSuffix','hasOwnProperty','propertyIsEnumerable','MCP\x20配置','Configuration\x20Steps:','0\x200\x2016\x2016','@univerjs-pro/mcp','evenodd','univer-flex\x20univer-flex-wrap\x20univer-gap-2','网络连接错误,请检查您的网络连接','removeItem','MCPUIMenuController','mcpConfig.connectionError.maxRetriesExceeded','_initializeMenus','NETWORK_ERROR','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','连接中...','<API_KEY>','mcpStatus.clickToConnect','mcpConfig.save','MCP:\x20Max\x20Retries\x20Exceeded','next','univer-text-xs\x20univer-text-gray-500','registerCommand','Click\x20to\x20connect\x20MCP','mcpConfig.configError','mcpConfig.description','className','bottom','univer-space-y-2','BehaviorSubject','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','mcpConfig.apiApplyInfo.univerAiLabel','univer-bg-red-500','_uiPartsService','IUIPartsService','function','univer-font-medium','mcpStatus.clickToConfigure','off-line-icon','tag','mcpStatus.unknown','univer-flex\x20univer-items-center\x20univer-gap-2','showDeveloperTools','_messageService','_dialogService','IConfigService','mcp.apiKey','SESSION_ID_OCCUPIED','WebSocketService','MCP\x20Disconnected','univer-text-red-500','indexOf','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','label','path','clipPath','_initializeCommands','round','Plugin','mcpConfig.connectionStatus.failed','_commandService','validateApiKey','connectionStatus$','mcpStatus.failed','onStarting','MCP:\x20网络错误','attrs','MCP_PLUGIN_CONFIG_KEY','isValid','subscribe','_createConfigPanelComponent','MCP\x20Unknown\x20Status','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','showConfigPanel','CloseSmallSingle','MCP\x20重连中...','MCP:\x20缺少\x20API\x20密钥','API\x20密钥无效,请检查密钥是否正确','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-bg-blue-500','apiKey','entries','svg','map','API\x20key\x20is\x20required\x20to\x20connect','on-line-icon','_menuManagerService','includes','Saving...','OffLineIcon','25gsNyyt','univer.plus','UniverIcon','5399464DGJkky','currentColor','mcpConfig.title','mcp-ui.command.openConfigPanel','MCP\x20客户端配置','API\x20key\x20is\x20required','_localeService','MenuIcon','将配置添加到您的\x20MCP\x20客户端设置文件中','getOwnPropertyDescriptor','MCPConfigUIController','mcp-ui.config','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','_initStatusComponent','配置步骤:','启用身份验证以获得安全连接','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Inject','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univerjs-icon\x20univerjs-icon-','0\x200\x2017\x2017','useRef','mcpConfig.configStep1','MCP:\x20Network\x20Error','MCP\x20连接中...','MCP:\x20API\x20Key\x20Missing','Configuration\x20Parameters:','url(#on-line-icon_clip0_910_349)','replace','useObservable','prototype','children','Injector','点击配置\x20MCP','ILogService','has','mcpStatus.invalidApiKey','forwardRef','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-bg-gray-500','mcpConfig.apiApplyInfo.title','Configuration\x20Notes:','assign','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','span','1em','BUTTON','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','258979oAUYhy','配置保存失败','UniverCore','UniverMCPPlugin','Configuration\x20saved\x20successfully','UniverNetwork','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','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','2jFFjAZ','Disposable','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-min-w-0\x20univer-flex-1','useDependency','几秒钟内获取您的\x20API\x20密钥','mcpConfig.validation.invalidApiKey','fill','UniverDesign','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','Close','MCP\x20Retrying...','MCP:\x20无效的\x20API\x20密钥','INVALID_API_KEY','univer-text-xs\x20univer-text-gray-600','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','add','M0\x200H16V16H0z','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-text-yellow-500','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','Connected','forEach','mcpConfig.validation.apiKeyRequired','_config','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20已断开','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','warn','none','HEADER_MENU','M5.21243\x2012.287L11.8791\x205.62036','on-line-icon_clip0_910_349','MCP\x20Configuration','UniverProMcp','object','Tooltip','mcpConfig.connectionError.sessionOccupied','url(#off-line-icon_clip0_910_343)','配置无效','mask','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','@univerjs/ui','MCPConnectionUIController','univer-flex\x20univer-items-start\x20univer-gap-3','univer_session_id:','string','trim','url(#$1','Button','univer-bg-green-500','value','Connecting...','DISCONNECTED','mcpStatus.maxRetriesExceeded','Success','_handleConfigure','use','Input','MCPConnectionController','show','defs','MCPConfigPanel','Invalid\x20configuration','重连中...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20密钥','会话当前被占用,请稍后再试','Max\x20Retries','Bearer\x20','What\x20is\x20API\x20Key?','CONNECTED','mcp-config-dialog','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','mcpConfig.apiApplyInfo.getStarted','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','_mcpCoreConfig$','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','disposeWithMe','univer-text-gray-500','HelpSingle','Enable\x20authentication\x20for\x20secure\x20connections','__setCustomHeaders','call','length','univer-flex\x20univer-items-center\x20univer-gap-3','univer-flex\x20univer-gap-3','153880kRvJZB','colorChannel1','mcpConfig.apiApplyInfo.description','配置保存成功','Connection\x20Failed','Retrying...','NONE','MessageType','getItem','univer-text-sm\x20univer-font-medium','mcpConfig.sessionIdDescription','Save\x20Configuration','amd','Enable\x20Authentication','mcpConfig.validation.invalidConfig','配置参数:','_injector','_apiKey$','mcpServerUrl','mcpConfig.configParameters','mcpConfig.authorizationDescription','5942655oHYRqN','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','ICommandService','150OANlUB','defineProperty','CONNECTING','close','createElement','_registerComponent','_connectionController','http://www.w3.org/2000/svg','请输入您的\x20API\x20密钥','RETRYING','error','_loadStoredApiKey','MCP:\x20超出最大重试次数','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','getOwnPropertySymbols','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','714764ubylXQ','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','univer-space-y-4','displayName','Error','配置更改将立即生效','Univer\x20AI\x20Console','\x20-\x20','4504490ZkKHRc','RibbonStartGroup','javascript:void(0)','ILocalStorageService','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','zhCN','超出最大重试次数,请稍后再试','toString','connectInjector','text','get','https://console.univer.plus','noopener\x20noreferrer','mcpConfig.saving','Enter\x20your\x20API\x20key','useCallback','univer-flex-shrink-0\x20univer-text-blue-500','COMMAND','_mcpConnectionController','hover:univer-opacity-80','mcpStatus.sessionOccupied','univer-text-blue-600','clsx','Univer\x20AI\x20控制台','_logService','_initConfigSync','icon','xlink:href','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','BuiltInUIPart','点击连接\x20MCP','_handleConfigSave','_localStorageService','off-line-icon_clip0_910_343','API\x20密钥不能为空','univer-flex-shrink-0\x20univer-text-red-500','connectionError$','univer-flex\x20univer-cursor-pointer\x20univer-items-center','exports','UniverMCPUIPlugin','help-single','white','连接失败','_componentManager','MCP\x20连接失败','您的\x20API\x20密钥将在此浏览器中本地存储','pre','div','MCP\x20已连接','extend','_configService','@univerjs/core','getConfig','concat','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP_UI_PLUGIN','close-small-single','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','setItem','react','MCP:\x20会话被占用','univer-text-green-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','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','univer-text-white','OTHERS','MCP\x20Connection\x20Failed','Failed\x20to\x20save\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Click\x20to\x20configure\x20MCP','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','FAILED','symbol','Disconnected','2259921izTJby','setConfig','useState','MCPConnectionError','会话ID','substring','_validateConfig','MCP\x20Client\x20Configuration','mcpConfig.connectionStatus.connecting','subscribeConfigValue$','jsxs','mcpStatus.retrying','mcpConfig.configSaved','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','MCPConnectionStatus','保存中...','mcpStatus.disconnected','enUS','jsx','apply'];_0x67c8=function(){return _0x2b22ca;};return _0x67c8();}(function(_0x587977,_0x438dfd){var _0x1c7c74=_0x3f44,_0x4d46bf=_0x587977();while(!![]){try{var _0xd12a03=-parseInt(_0x1c7c74(0x209))/0x1+parseInt(_0x1c7c74(0x1ae))/0x2*(-parseInt(_0x1c7c74(0xe0))/0x3)+parseInt(_0x1c7c74(0x8d))/0x4*(parseInt(_0x1c7c74(0x173))/0x5)+parseInt(_0x1c7c74(0x7d))/0x6*(parseInt(_0x1c7c74(0x1a6))/0x7)+parseInt(_0x1c7c74(0x176))/0x8+-parseInt(_0x1c7c74(0x21e))/0x9+-parseInt(_0x1c7c74(0x95))/0xa;if(_0xd12a03===_0x438dfd)break;else _0x4d46bf['push'](_0x4d46bf['shift']());}catch(_0x44d12f){_0x4d46bf['push'](_0x4d46bf['shift']());}}}(_0x67c8,0x740f6),function(_0x3dbfaa,_0x1dcb3f){var _0x340668=_0x3f44;typeof exports==_0x340668(0x1d4)&&typeof module<'u'?_0x1dcb3f(exports,require('@univerjs/core'),require('react/jsx-runtime'),require('@univerjs-pro/mcp'),require('@univerjs/design'),require('@univerjs/ui'),require('rxjs'),require('react'),require('@univerjs/network')):typeof define=='function'&&define[_0x340668(0x215)]?define([_0x340668(0xbc),_0x340668(0xc9),'react/jsx-runtime',_0x340668(0x11d),_0x340668(0xfd),_0x340668(0x1db),'rxjs',_0x340668(0xd1),'@univerjs/network'],_0x1dcb3f):(_0x3dbfaa=typeof globalThis<'u'?globalThis:_0x3dbfaa||self,_0x1dcb3f(_0x3dbfaa['UniverProMcpUi']={},_0x3dbfaa[_0x340668(0x1a8)],_0x3dbfaa['React'],_0x3dbfaa[_0x340668(0x1d3)],_0x3dbfaa[_0x340668(0x1b6)],_0x3dbfaa['UniverUi'],_0x3dbfaa['rxjs'],_0x3dbfaa['React'],_0x3dbfaa[_0x340668(0x1ab)]));}(this,function(_0x2846fb,_0x5ad3c6,_0x47b214,_0x1b42f4,_0x5b29c8,_0x36ce9e,_0x5d1756,_0x365b01,_0x11985f){'use strict';var _0x4ca5c4=_0x3f44;var _0x128178=Object[_0x4ca5c4(0x7e)],_0x384df5=(_0x4b133a,_0x2dd33e,_0x2c1dc4)=>_0x2dd33e in _0x4b133a?_0x128178(_0x4b133a,_0x2dd33e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c1dc4}):_0x4b133a[_0x2dd33e]=_0x2c1dc4,_0x3c16b2=(_0x371119,_0x551fac,_0x362ec8)=>_0x384df5(_0x371119,typeof _0x551fac!=_0x4ca5c4(0xde)?_0x551fac+'':_0x551fac,_0x362ec8),_0x27df4f=function(){var _0x438f81=_0x4ca5c4;return _0x27df4f=Object['assign']||function(_0x12a1b7){var _0x29e6ca=_0x3f44;for(var _0x47c2e4,_0x235a39=0x1,_0x489415=arguments[_0x29e6ca(0x206)];_0x235a39<_0x489415;_0x235a39++){_0x47c2e4=arguments[_0x235a39];for(var _0x45e779 in _0x47c2e4)Object[_0x29e6ca(0x194)][_0x29e6ca(0x118)][_0x29e6ca(0x205)](_0x47c2e4,_0x45e779)&&(_0x12a1b7[_0x45e779]=_0x47c2e4[_0x45e779]);}return _0x12a1b7;},_0x27df4f[_0x438f81(0xf3)](this,arguments);},_0x4a3ffc=function(_0x4c81a7,_0xa0bc52){var _0x94437a=_0x4ca5c4,_0x2d656f={};for(var _0x2a4c67 in _0x4c81a7)Object[_0x94437a(0x194)]['hasOwnProperty'][_0x94437a(0x205)](_0x4c81a7,_0x2a4c67)&&_0xa0bc52[_0x94437a(0x14c)](_0x2a4c67)<0x0&&(_0x2d656f[_0x2a4c67]=_0x4c81a7[_0x2a4c67]);if(_0x4c81a7!=null&&typeof Object[_0x94437a(0x8b)]==_0x94437a(0x13c)){for(var _0x188d77=0x0,_0x2a4c67=Object[_0x94437a(0x8b)](_0x4c81a7);_0x188d77<_0x2a4c67[_0x94437a(0x206)];_0x188d77++)_0xa0bc52[_0x94437a(0x14c)](_0x2a4c67[_0x188d77])<0x0&&Object['prototype'][_0x94437a(0x119)][_0x94437a(0x205)](_0x4c81a7,_0x2a4c67[_0x188d77])&&(_0x2d656f[_0x2a4c67[_0x188d77]]=_0x4c81a7[_0x2a4c67[_0x188d77]]);}return _0x2d656f;},_0xd661c6=_0x365b01[_0x4ca5c4(0x19b)](function(_0x4f9592,_0x44d526){var _0x33f6b6=_0x4ca5c4,_0x54f9f5=_0x4f9592[_0x33f6b6(0xaf)],_0x2be48b=_0x4f9592['id'],_0x194e79=_0x4f9592[_0x33f6b6(0x132)],_0x47455b=_0x4f9592['extend'],_0x4eb723=_0x4a3ffc(_0x4f9592,[_0x33f6b6(0xaf),'id',_0x33f6b6(0x132),_0x33f6b6(0xc7)]),_0x1f55ad=_0x33f6b6(0x189)['concat'](_0x2be48b,'\x20')[_0x33f6b6(0xcb)](_0x194e79||'')[_0x33f6b6(0x1e0)](),_0x5771fc=_0x365b01[_0x33f6b6(0x18b)]('_'[_0x33f6b6(0xcb)](_0xb7d047()));return _0x22220c(_0x54f9f5,''[_0x33f6b6(0xcb)](_0x2be48b),{'defIds':_0x54f9f5[_0x33f6b6(0x110)],'idSuffix':_0x5771fc[_0x33f6b6(0x109)]},_0x27df4f({'ref':_0x44d526,'className':_0x1f55ad},_0x4eb723),_0x47455b);});function _0x22220c(_0x16e81a,_0x108b93,_0x1cff1e,_0x6fd0c,_0x44b228){var _0x5cff1f=_0x4ca5c4;return _0x365b01['createElement'](_0x16e81a[_0x5cff1f(0x140)],_0x27df4f(_0x27df4f({'key':_0x108b93},_0x51b660(_0x16e81a,_0x1cff1e,_0x44b228)),_0x6fd0c),(_0x462a76(_0x16e81a,_0x1cff1e)[_0x5cff1f(0x195)]||[])[_0x5cff1f(0x16c)](function(_0x4f7dfe,_0x239b74){var _0x4a86fc=_0x5cff1f;return _0x22220c(_0x4f7dfe,''[_0x4a86fc(0xcb)](_0x108b93,'-')['concat'](_0x16e81a['tag'],'-')[_0x4a86fc(0xcb)](_0x239b74),_0x1cff1e,void 0x0,_0x44b228);}));}function _0x51b660(_0x29a120,_0x257252,_0x5d9465){var _0x1437c0=_0x4ca5c4,_0x2e3ddb=_0x27df4f({},_0x29a120[_0x1437c0(0x15b)]);_0x5d9465!=null&&_0x5d9465[_0x1437c0(0x20a)]&&_0x2e3ddb[_0x1437c0(0x1b5)]==='colorChannel1'&&(_0x2e3ddb[_0x1437c0(0x1b5)]=_0x5d9465[_0x1437c0(0x20a)]),_0x29a120[_0x1437c0(0x140)]===_0x1437c0(0x1d9)&&_0x2e3ddb['id']&&(_0x2e3ddb['id']=_0x2e3ddb['id']+_0x257252['idSuffix']),Object[_0x1437c0(0x16a)](_0x2e3ddb)[_0x1437c0(0x1c6)](function(_0x1f16df){var _0x245f65=_0x1437c0,_0x1f33b0=_0x1f16df[0x0],_0x1e9e55=_0x1f16df[0x1];_0x1f33b0===_0x245f65(0x1d9)&&typeof _0x1e9e55==_0x245f65(0x1df)&&(_0x2e3ddb[_0x1f33b0]=_0x1e9e55[_0x245f65(0x192)](/url\(#(.*)\)/,_0x245f65(0x1e1)['concat'](_0x257252[_0x245f65(0x117)],')')));});var _0x2cd4c3=_0x257252[_0x1437c0(0x110)];return!_0x2cd4c3||_0x2cd4c3[_0x1437c0(0x206)]===0x0||(_0x29a120[_0x1437c0(0x140)]===_0x1437c0(0x1ea)&&_0x2e3ddb['xlink:href']&&(_0x2e3ddb[_0x1437c0(0xb0)]=_0x2e3ddb[_0x1437c0(0xb0)]+_0x257252[_0x1437c0(0x117)]),Object[_0x1437c0(0x16a)](_0x2e3ddb)[_0x1437c0(0x1c6)](function(_0x270653){var _0x380f47=_0x1437c0,_0x365ad2=_0x270653[0x0],_0x2943e3=_0x270653[0x1];typeof _0x2943e3==_0x380f47(0x1df)&&(_0x2e3ddb[_0x365ad2]=_0x2943e3[_0x380f47(0x192)](/url\(#(.*)\)/,'url(#$1'[_0x380f47(0xcb)](_0x257252['idSuffix'],')')));})),_0x2e3ddb;}function _0x462a76(_0xaccbfd,_0x8f6b59){var _0x408b89=_0x4ca5c4,_0x104fe8,_0xe8f02a=_0x8f6b59[_0x408b89(0x110)];return!_0xe8f02a||_0xe8f02a['length']===0x0?_0xaccbfd:_0xaccbfd['tag']==='defs'&&(!((_0x104fe8=_0xaccbfd[_0x408b89(0x195)])===null||_0x104fe8===void 0x0)&&_0x104fe8[_0x408b89(0x206)])?_0x27df4f(_0x27df4f({},_0xaccbfd),{'children':_0xaccbfd[_0x408b89(0x195)]['map'](function(_0x3b2447){var _0x1d2561=_0x408b89;return typeof _0x3b2447[_0x1d2561(0x15b)]['id']=='string'&&_0xe8f02a&&_0xe8f02a['includes'](_0x3b2447[_0x1d2561(0x15b)]['id'])?_0x27df4f(_0x27df4f({},_0x3b2447),{'attrs':_0x27df4f(_0x27df4f({},_0x3b2447[_0x1d2561(0x15b)]),{'id':_0x3b2447[_0x1d2561(0x15b)]['id']+_0x8f6b59[_0x1d2561(0x117)]})}):_0x3b2447;})}):_0xaccbfd;}function _0xb7d047(){var _0x4c6f37=_0x4ca5c4;return Math['random']()[_0x4c6f37(0x9c)](0x24)[_0x4c6f37(0xe5)](0x2,0x8);}_0xd661c6[_0x4ca5c4(0x90)]=_0x4ca5c4(0x175);var _0x5ef502={'tag':_0x4ca5c4(0x16b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4ca5c4(0x1ce),'viewBox':'0\x200\x2016\x2016','width':_0x4ca5c4(0x1a3),'height':_0x4ca5c4(0x1a3)},'children':[{'tag':_0x4ca5c4(0x14f),'attrs':{'fill':_0x4ca5c4(0x177),'d':_0x4ca5c4(0x182),'fillRule':_0x4ca5c4(0x11e),'clipRule':_0x4ca5c4(0x11e)}}]},_0x454fe7=_0x365b01[_0x4ca5c4(0x19b)](function(_0x4c807a,_0x29c48d){var _0x4d8abb=_0x4ca5c4;return _0x365b01[_0x4d8abb(0x81)](_0xd661c6,Object[_0x4d8abb(0x1a0)]({},_0x4c807a,{'id':'check-mark-icon','ref':_0x29c48d,'icon':_0x5ef502}));});_0x454fe7[_0x4ca5c4(0x90)]=_0x4ca5c4(0x10c);var _0x454171={'tag':_0x4ca5c4(0x16b),'attrs':{'xmlns':_0x4ca5c4(0x84),'fill':_0x4ca5c4(0x1ce),'viewBox':_0x4ca5c4(0x18a),'width':_0x4ca5c4(0x1a3),'height':'1em'},'children':[{'tag':_0x4ca5c4(0x14f),'attrs':{'stroke':_0x4ca5c4(0x177),'d':_0x4ca5c4(0x100),'strokeLinecap':_0x4ca5c4(0x152),'strokeLinejoin':'round','strokeWidth':1.33}},{'tag':_0x4ca5c4(0x14f),'attrs':{'stroke':'currentColor','d':_0x4ca5c4(0x1d0),'strokeLinecap':_0x4ca5c4(0x152),'strokeLinejoin':_0x4ca5c4(0x152),'strokeWidth':1.33}}]},_0x2b5ccd=_0x365b01[_0x4ca5c4(0x19b)](function(_0x1eb111,_0x2cea22){var _0x2b92d4=_0x4ca5c4;return _0x365b01[_0x2b92d4(0x81)](_0xd661c6,Object['assign']({},_0x1eb111,{'id':_0x2b92d4(0xce),'ref':_0x2cea22,'icon':_0x454171}));});_0x2b5ccd[_0x4ca5c4(0x90)]=_0x4ca5c4(0x163);var _0x181256={'tag':_0x4ca5c4(0x16b),'attrs':{'xmlns':_0x4ca5c4(0x84),'fill':_0x4ca5c4(0x1ce),'viewBox':_0x4ca5c4(0x11c),'width':'1em','height':_0x4ca5c4(0x1a3)},'children':[{'tag':_0x4ca5c4(0x14f),'attrs':{'fill':_0x4ca5c4(0x177),'d':_0x4ca5c4(0x21f)}},{'tag':_0x4ca5c4(0x14f),'attrs':{'fill':_0x4ca5c4(0x177),'d':_0x4ca5c4(0x161)}},{'tag':'path','attrs':{'fill':_0x4ca5c4(0x177),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x4ca5c4(0x11e),'clipRule':'evenodd'}}]},_0x8837e1=_0x365b01[_0x4ca5c4(0x19b)](function(_0x153856,_0x55d630){var _0x1afe82=_0x4ca5c4;return _0x365b01[_0x1afe82(0x81)](_0xd661c6,Object[_0x1afe82(0x1a0)]({},_0x153856,{'id':_0x1afe82(0xbe),'ref':_0x55d630,'icon':_0x181256}));});_0x8837e1[_0x4ca5c4(0x90)]=_0x4ca5c4(0x202);var _0x47d039={'tag':_0x4ca5c4(0x16b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4ca5c4(0x1ce),'viewBox':_0x4ca5c4(0x11c),'width':_0x4ca5c4(0x1a3),'height':_0x4ca5c4(0x1a3)},'children':[{'tag':'g','attrs':{'clipPath':_0x4ca5c4(0x1d7)},'children':[{'tag':_0x4ca5c4(0x14f),'attrs':{'stroke':_0x4ca5c4(0x177),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4ca5c4(0x1ee),'attrs':{},'children':[{'tag':_0x4ca5c4(0x150),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4ca5c4(0x14f),'attrs':{'fill':_0x4ca5c4(0xbf),'d':_0x4ca5c4(0x1c0)}}]}]}],'defIds':[_0x4ca5c4(0xb7)]},_0x127d51=_0x365b01[_0x4ca5c4(0x19b)](function(_0x1aea94,_0x14dc7a){var _0x52bd83=_0x4ca5c4;return _0x365b01[_0x52bd83(0x81)](_0xd661c6,Object[_0x52bd83(0x1a0)]({},_0x1aea94,{'id':_0x52bd83(0x13f),'ref':_0x14dc7a,'icon':_0x47d039}));});_0x127d51['displayName']=_0x4ca5c4(0x172);var _0x57f239={'tag':_0x4ca5c4(0x16b),'attrs':{'xmlns':_0x4ca5c4(0x84),'fill':_0x4ca5c4(0x1ce),'viewBox':'0\x200\x2017\x2016','width':_0x4ca5c4(0x1a3),'height':_0x4ca5c4(0x1a3)},'children':[{'tag':'g','attrs':{'clipPath':_0x4ca5c4(0x191)},'children':[{'tag':_0x4ca5c4(0x14f),'attrs':{'stroke':_0x4ca5c4(0x177),'d':_0x4ca5c4(0x188),'strokeLinecap':_0x4ca5c4(0x152),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4ca5c4(0x1ee),'attrs':{},'children':[{'tag':_0x4ca5c4(0x150),'attrs':{'id':_0x4ca5c4(0x1d1)},'children':[{'tag':_0x4ca5c4(0x14f),'attrs':{'fill':_0x4ca5c4(0xbf),'d':'M0\x200H16V16H0z','transform':_0x4ca5c4(0x108)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x54b607=_0x365b01[_0x4ca5c4(0x19b)](function(_0x352872,_0x2dfdcf){var _0x4debe2=_0x4ca5c4;return _0x365b01[_0x4debe2(0x81)](_0xd661c6,Object[_0x4debe2(0x1a0)]({},_0x352872,{'id':_0x4debe2(0x16e),'ref':_0x2dfdcf,'icon':_0x57f239}));});_0x54b607[_0x4ca5c4(0x90)]='OnLineIcon';function _0x232065(_0x33e76d){var _0x4447ad=_0x4ca5c4,_0x55757e,_0x38169d;const {mcpCoreConfig:_0x5ee83c,onSave:_0x9efa5b,loading:_0x175b4f=!0x1,config:_0x36ab2b,connectionStatus$:_0x3bf274,connectionError$:_0x12d7bf,currentApiKey$:_0x5d9451,currentSessionId$:_0x51dc79}=_0x33e76d,_0x5d6152=_0x36ce9e[_0x4447ad(0x1b2)](_0x5ad3c6['LocaleService']),_0x37ac86=_0x36ce9e[_0x4447ad(0x193)](_0x3bf274,_0x1b42f4[_0x4447ad(0xee)][_0x4447ad(0x1e6)]),_0x33c400=_0x36ce9e[_0x4447ad(0x193)](_0x12d7bf,_0x1b42f4[_0x4447ad(0xe3)][_0x4447ad(0x20f)]),_0x45d0f5=_0x36ce9e[_0x4447ad(0x193)](_0x51dc79,''),_0xdc2216=_0x36ce9e[_0x4447ad(0x193)](_0x5d9451,''),[_0x454560,_0x3cb9a0]=_0x365b01[_0x4447ad(0xe2)](_0xdc2216||''),_0x420bde=!0x0,_0xadf7b6=_0x36ab2b[_0x4447ad(0x143)]&&_0x5ee83c[_0x4447ad(0x21b)]&&(_0x5ee83c[_0x4447ad(0x21b)][_0x4447ad(0x170)](_0x4447ad(0x174))||_0x5ee83c['mcpServerUrl']['includes']('univer.ai')),_0x44fa68=(_0x55757e=_0x5ee83c[_0x4447ad(0x21b)])==null?void 0x0:_0x55757e[_0x4447ad(0x170)](_0x4447ad(0x174)),_0x345a17=(_0x38169d=_0x5ee83c[_0x4447ad(0x21b)])==null?void 0x0:_0x38169d[_0x4447ad(0x170)]('univer.ai'),_0x5f292a=_0x44fa68?_0x4447ad(0xa0):'https://console.univer.ai',_0x3d041e=_0x36ab2b[_0x4447ad(0x143)]&&(_0x44fa68||_0x345a17),[_0x2c740e,_0x142dd9]=_0x365b01[_0x4447ad(0xe2)](!_0x454560[_0x4447ad(0x1e0)]()),_0x1b31e8=(_0xbbf7e3,_0x5e23e3)=>{var _0x5bd9fd=_0x4447ad;if(_0x5e23e3===_0x1b42f4[_0x5bd9fd(0xe3)][_0x5bd9fd(0x1bb)])return _0x5bd9fd(0xff);switch(_0xbbf7e3){case _0x1b42f4['MCPConnectionStatus'][_0x5bd9fd(0x1f8)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x1b42f4[_0x5bd9fd(0xee)][_0x5bd9fd(0x7f)]:case _0x1b42f4[_0x5bd9fd(0xee)]['RETRYING']:return _0x5bd9fd(0x8a);case _0x1b42f4['MCPConnectionStatus'][_0x5bd9fd(0xdd)]:return _0x5bd9fd(0xff);default:return _0x5bd9fd(0x103);}},_0x5aeb63=(_0x11d62a,_0x1bbbb1)=>{var _0x13e679=_0x4447ad;if(_0x1bbbb1===_0x1b42f4[_0x13e679(0xe3)]['INVALID_API_KEY'])return'univer-bg-red-500';switch(_0x11d62a){case _0x1b42f4[_0x13e679(0xee)][_0x13e679(0x1f8)]:return _0x13e679(0x1e3);case _0x1b42f4['MCPConnectionStatus'][_0x13e679(0x7f)]:case _0x1b42f4[_0x13e679(0xee)]['RETRYING']:return _0x13e679(0x168);case _0x1b42f4[_0x13e679(0xee)][_0x13e679(0xdd)]:return _0x13e679(0x139);default:return _0x13e679(0x19d);}},_0x35fbc9=_0x3381a0=>{var _0x5dd386=_0x4447ad;switch(_0x3381a0){case _0x1b42f4[_0x5dd386(0xee)][_0x5dd386(0x1f8)]:return _0x5d6152['t']('mcpConfig.connectionStatus.connected');case _0x1b42f4[_0x5dd386(0xee)][_0x5dd386(0x7f)]:return _0x5d6152['t'](_0x5dd386(0xe8));case _0x1b42f4[_0x5dd386(0xee)][_0x5dd386(0xdd)]:return _0x5d6152['t'](_0x5dd386(0x154));case _0x1b42f4[_0x5dd386(0xee)]['RETRYING']:return _0x5d6152['t']('mcpConfig.connectionStatus.retrying');default:return _0x5d6152['t']('mcpConfig.connectionStatus.disconnected');}},_0x50765e=_0x1c6f6a=>{var _0x2fa3ba=_0x4447ad;switch(_0x1c6f6a){case _0x1b42f4[_0x2fa3ba(0xe3)][_0x2fa3ba(0x1bb)]:return _0x5d6152['t']('mcpConfig.connectionError.invalidApiKey');case _0x1b42f4[_0x2fa3ba(0xe3)][_0x2fa3ba(0x148)]:return _0x5d6152['t'](_0x2fa3ba(0x1d6));case _0x1b42f4[_0x2fa3ba(0xe3)][_0x2fa3ba(0x125)]:return _0x5d6152['t']('mcpConfig.connectionError.networkError');case _0x1b42f4['MCPConnectionError'][_0x2fa3ba(0x101)]:return _0x5d6152['t'](_0x2fa3ba(0x123));default:return'';}},_0x25a297=_0x365b01['useCallback'](()=>{const _0x2567ed={..._0x5ee83c,'apiKey':_0x454560['trim'](),'enableAuth':_0x420bde};_0x9efa5b(_0x2567ed);},[_0x5ee83c,_0x454560,_0x420bde,_0x9efa5b]),_0x37dd3f=_0x454560['trim']()[_0x4447ad(0x206)]>0x0;return _0x47b214['jsxs'](_0x4447ad(0xc5),{'className':_0x4447ad(0x1c2),'children':[_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0xc5),{'className':_0x4447ad(0x1c4),'children':_0x47b214[_0x4447ad(0xea)](_0x4447ad(0xc5),{'className':_0x4447ad(0x207),'children':[_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0xc5),{'className':_0x4447ad(0xdc),'children':_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0x1a2),{'className':_0x4447ad(0xd6),'children':'⚙'})}),_0x47b214[_0x4447ad(0xf2)]('div',{'children':_0x47b214[_0x4447ad(0xf2)]('p',{'className':_0x4447ad(0xfa),'children':_0x5d6152['t'](_0x4447ad(0x131))})})]})}),_0x47b214[_0x4447ad(0xea)]('div',{'className':_0x4447ad(0xed),'children':[_0x47b214['jsx'](_0x4447ad(0xc5),{'className':_0x4447ad(0xb1)+_0x1b31e8(_0x37ac86,_0x33c400)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x47b214[_0x4447ad(0xea)]('div',{'className':_0x4447ad(0x142),'children':[_0x47b214[_0x4447ad(0xf2)]('div',{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5aeb63(_0x37ac86,_0x33c400)+_0x4447ad(0xd4)}),_0x47b214['jsx']('span',{'className':_0x4447ad(0x212),'children':_0x35fbc9(_0x37ac86)})]})}),_0x33c400!==_0x1b42f4[_0x4447ad(0xe3)][_0x4447ad(0x20f)]&&(_0x37ac86===_0x1b42f4['MCPConnectionStatus'][_0x4447ad(0xdd)]||_0x33c400===_0x1b42f4[_0x4447ad(0xe3)][_0x4447ad(0x1bb)])&&_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0xc5),{'className':_0x4447ad(0x1bd),'children':_0x47b214[_0x4447ad(0xea)](_0x4447ad(0xc5),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0x1a2),{'className':_0x4447ad(0xb9),'children':'⚠️'}),_0x47b214[_0x4447ad(0xf2)]('p',{'className':_0x4447ad(0x99),'children':_0x50765e(_0x33c400)})]})})]}),_0x47b214[_0x4447ad(0xf2)]('div',{'className':_0x4447ad(0x1fc),'children':_0x47b214[_0x4447ad(0xea)](_0x4447ad(0xc5),{'className':'univer-space-y-5','children':[_0x47b214[_0x4447ad(0xea)]('div',{'className':_0x4447ad(0x134),'children':[_0x47b214[_0x4447ad(0xea)](_0x4447ad(0x14e),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0x1a2),{'children':'🔑'}),'\x20',_0x5d6152['t'](_0x4447ad(0x107)),_0x47b214[_0x4447ad(0xf2)]('span',{'className':'univer-text-red-500','children':'*'}),_0xadf7b6&&_0x47b214[_0x4447ad(0xf2)]('a',{'href':_0x4447ad(0x97),'onClick':()=>_0x142dd9(!0x0),'className':_0x4447ad(0xb2),'title':_0x5d6152['t'](_0x4447ad(0x19e)),'children':_0x47b214[_0x4447ad(0xf2)](_0x8837e1,{})})]}),_0x47b214['jsx'](_0x5b29c8[_0x4447ad(0x1eb)],{'type':_0x4447ad(0x9e),'placeholder':_0x5d6152['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x454560,'onChange':_0x3cb9a0,'disabled':_0x175b4f,'autoComplete':'off'}),_0x47b214[_0x4447ad(0xf2)]('p',{'className':_0x4447ad(0x12d),'children':_0x5d6152['t']('mcpConfig.apiKeyHint')})]}),_0xadf7b6&&_0x2c740e&&_0x47b214[_0x4447ad(0xea)]('div',{'className':_0x4447ad(0x1ad),'children':[_0x47b214['jsx']('a',{'href':_0x4447ad(0x97),'onClick':()=>_0x142dd9(!0x1),'className':_0x4447ad(0x14d),'title':_0x4447ad(0x1b8),'children':_0x47b214['jsx'](_0x2b5ccd,{})}),_0x47b214[_0x4447ad(0xea)]('div',{'className':_0x4447ad(0x137),'children':[_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0xc5),{'className':'univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0x1a2),{'className':_0x4447ad(0xaa),'children':'🚀'})}),_0x47b214[_0x4447ad(0xea)](_0x4447ad(0xc5),{'className':'univer-flex-1','children':[_0x47b214[_0x4447ad(0xf2)]('h4',{'className':_0x4447ad(0x1be),'children':_0x5d6152['t'](_0x4447ad(0x19e))}),_0x47b214[_0x4447ad(0xf2)]('p',{'className':_0x4447ad(0x1cc),'children':_0x5d6152['t'](_0x4447ad(0x20b))}),_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0xc5),{'className':_0x4447ad(0x11f),'children':_0x3d041e&&_0x47b214[_0x4447ad(0xea)]('a',{'href':_0x5f292a,'target':'_blank','rel':_0x4447ad(0xa1),'className':_0x4447ad(0x136),'children':[_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0x1a2),{'children':'🤖'}),_0x5d6152['t'](_0x4447ad(0x138)),_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0x1a2),{'className':_0x4447ad(0x115),'children':'↗'})]})}),_0x47b214[_0x4447ad(0xea)]('div',{'className':_0x4447ad(0x8e),'children':['✨','\x20',_0x5d6152['t'](_0x4447ad(0x1fb))]})]})]})]}),_0x36ab2b[_0x4447ad(0x143)]&&_0x47b214[_0x4447ad(0xea)]('div',{'className':_0x4447ad(0x1ac),'children':[_0x47b214[_0x4447ad(0xea)]('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x47b214[_0x4447ad(0xf2)]('span',{'children':'🔗'}),'\x20',_0x5d6152['t']('mcpConfig.connectionInfo')]}),_0x47b214[_0x4447ad(0xea)](_0x4447ad(0xc5),{'className':_0x4447ad(0x8f),'children':[_0x47b214['jsxs'](_0x4447ad(0xc5),{'className':_0x4447ad(0x104),'children':[_0x47b214['jsx']('p',{'className':_0x4447ad(0x1bc),'children':_0x5d6152['t']('mcpConfig.configInstructions')}),_0x47b214[_0x4447ad(0xea)](_0x4447ad(0xc5),{'className':_0x4447ad(0x134),'children':[_0x47b214['jsx'](_0x4447ad(0xc5),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x5d6152['t']('mcpConfig.configStepTitle')}),_0x47b214[_0x4447ad(0xea)](_0x4447ad(0xc5),{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','children':[_0x47b214[_0x4447ad(0xea)](_0x4447ad(0xc5),{'className':_0x4447ad(0x142),'children':[_0x47b214['jsx'](_0x4447ad(0x1a2),{'className':_0x4447ad(0x1b7),'children':'1'}),_0x5d6152['t'](_0x4447ad(0x18c))]}),_0x47b214['jsxs'](_0x4447ad(0xc5),{'className':_0x4447ad(0x142),'children':[_0x47b214['jsx'](_0x4447ad(0x1a2),{'className':_0x4447ad(0x1b7),'children':'2'}),_0x5d6152['t']('mcpConfig.configStep2')]}),_0x47b214['jsxs'](_0x4447ad(0xc5),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x47b214['jsx'](_0x4447ad(0x1a2),{'className':_0x4447ad(0x1b7),'children':'3'}),_0x5d6152['t']('mcpConfig.configStep3')]})]})]})]}),_0x47b214[_0x4447ad(0xea)](_0x4447ad(0xc5),{'className':_0x4447ad(0x134),'children':[_0x47b214['jsx'](_0x4447ad(0xc5),{'className':_0x4447ad(0x8c),'children':_0x4447ad(0x1d2)}),_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0xc5),{'className':_0x4447ad(0xf8),'children':_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0xc4),{'className':_0x4447ad(0x186),'children':'{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id='+_0x45d0f5+_0x4447ad(0xfc)+(_0x454560||_0x4447ad(0x128))+'\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}'})})]}),_0x47b214['jsxs'](_0x4447ad(0xc5),{'className':_0x4447ad(0x104),'children':[_0x47b214[_0x4447ad(0xf2)]('div',{'className':_0x4447ad(0x8c),'children':_0x5d6152['t'](_0x4447ad(0x21c))}),_0x47b214[_0x4447ad(0xea)]('div',{'className':_0x4447ad(0x134),'children':[_0x47b214['jsxs'](_0x4447ad(0xc5),{'className':_0x4447ad(0x1dd),'children':[_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0xc5),{'className':_0x4447ad(0x1b0)}),_0x47b214['jsxs']('div',{'className':_0x4447ad(0x1b1),'children':[_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0xc5),{'className':_0x4447ad(0x19c),'children':_0x4447ad(0x1de)}),_0x47b214[_0x4447ad(0xf2)]('div',{'className':_0x4447ad(0x12d),'children':_0x5d6152['t'](_0x4447ad(0x213))})]})]}),_0x47b214[_0x4447ad(0xea)](_0x4447ad(0xc5),{'className':_0x4447ad(0x1dd),'children':[_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0xc5),{'className':_0x4447ad(0x1b0)}),_0x47b214[_0x4447ad(0xea)]('div',{'className':_0x4447ad(0x1b1),'children':[_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0xc5),{'className':_0x4447ad(0x19c),'children':'Authorization:'}),_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0xc5),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x5d6152['t'](_0x4447ad(0x21d))})]})]})]})]})]})]}),_0x47b214[_0x4447ad(0xf2)](_0x5b29c8[_0x4447ad(0x1e2)],{'onClick':_0x25a297,'disabled':!_0x37dd3f||_0x175b4f,'className':_0x4447ad(0x167),'children':_0x175b4f?_0x47b214[_0x4447ad(0xea)]('span',{'className':_0x4447ad(0x142),'children':[_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0x1a2),{'children':'⟲'}),_0x5d6152['t'](_0x4447ad(0xa2))]}):_0x47b214[_0x4447ad(0xea)](_0x4447ad(0x1a2),{'className':_0x4447ad(0x142),'children':[_0x47b214['jsx'](_0x454fe7,{}),_0x5d6152['t'](_0x4447ad(0x12a))]})}),_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0xc5),{'className':_0x4447ad(0x1c1),'children':_0x47b214[_0x4447ad(0xea)]('div',{'className':_0x4447ad(0x208),'children':[_0x47b214[_0x4447ad(0xf2)](_0x4447ad(0x1a2),{'className':_0x4447ad(0xa5),'children':'💡'}),_0x47b214[_0x4447ad(0xea)]('div',{'className':_0x4447ad(0x10d),'children':[_0x47b214[_0x4447ad(0xf2)]('div',{'className':_0x4447ad(0x13d),'children':_0x4447ad(0x19f)}),_0x47b214[_0x4447ad(0xea)](_0x4447ad(0xc5),{'children':['•',_0x5d6152['t']('mcpConfig.note1')]}),_0x47b214[_0x4447ad(0xea)](_0x4447ad(0xc5),{'children':['•',_0x5d6152['t'](_0x4447ad(0xfb))]})]})]})})]})})]});}const _0x186c18=_0x4ca5c4(0x181),_0x2ea3e8={'showDeveloperTools':!0x1};var _0x35c050=Object[_0x4ca5c4(0x17f)],_0x55e021=(_0x5dea3f,_0x3f106e,_0x5340f5,_0x392ddb)=>{var _0x4dafb9=_0x4ca5c4;for(var _0x67754=_0x392ddb>0x1?void 0x0:_0x392ddb?_0x35c050(_0x3f106e,_0x5340f5):_0x3f106e,_0x39c4d2=_0x5dea3f[_0x4dafb9(0x206)]-0x1,_0xead43f;_0x39c4d2>=0x0;_0x39c4d2--)(_0xead43f=_0x5dea3f[_0x39c4d2])&&(_0x67754=_0xead43f(_0x67754)||_0x67754);return _0x67754;},_0x58fe58=(_0x3f0b7d,_0x2305de)=>(_0x2e84e5,_0x1f622c)=>_0x2305de(_0x2e84e5,_0x1f622c,_0x3f0b7d);const _0x41192f=_0x4ca5c4(0x147),_0x238993=_0x4ca5c4(0x1f9);_0x2846fb[_0x4ca5c4(0x180)]=class extends _0x5ad3c6[_0x4ca5c4(0x1af)]{constructor(_0x29a184,_0xf2b403,_0x276486,_0x66aced,_0xd506c9,_0x4d82c6,_0x4d99ad,_0xd0e8d8,_0x27e901,_0x1e9cf8){var _0x18aa32=_0x4ca5c4;super(),_0x3c16b2(this,_0x18aa32(0xf6),new _0x5d1756[(_0x18aa32(0x135))](!0x1)),_0x3c16b2(this,_0x18aa32(0x1fe),new _0x5d1756['BehaviorSubject']({})),_0x3c16b2(this,_0x18aa32(0x106),new _0x5d1756[(_0x18aa32(0x135))]({})),_0x3c16b2(this,_0x18aa32(0x21a),new _0x5d1756[(_0x18aa32(0x135))]('')),_0x3c16b2(this,_0x18aa32(0xb5),async _0xe41e47=>{var _0x8f3fc9=_0x18aa32,_0x13dc7f,_0x267b69;this[_0x8f3fc9(0xf6)][_0x8f3fc9(0x12c)](!0x0);try{const _0x5104d3=await this[_0x8f3fc9(0xe6)](_0xe41e47);if(!_0x5104d3[_0x8f3fc9(0x15d)]){this['_messageService']['show']({'type':_0x5b29c8[_0x8f3fc9(0x210)][_0x8f3fc9(0x91)],'content':_0x5104d3['errorMessage']||this[_0x8f3fc9(0x17c)]['t'](_0x8f3fc9(0x217))});return;}_0xe41e47[_0x8f3fc9(0x169)]?await this['_localStorageService'][_0x8f3fc9(0xd0)](_0x41192f,_0xe41e47[_0x8f3fc9(0x169)][_0x8f3fc9(0x1e0)]()):await this['_localStorageService'][_0x8f3fc9(0x121)](_0x41192f),this[_0x8f3fc9(0x21a)][_0x8f3fc9(0x12c)](((_0x13dc7f=_0xe41e47[_0x8f3fc9(0x169)])==null?void 0x0:_0x13dc7f[_0x8f3fc9(0x1e0)]())||''),this[_0x8f3fc9(0xa7)][_0x8f3fc9(0x204)]({'Authorization':'Bearer\x20'+((_0x267b69=_0xe41e47['apiKey'])==null?void 0x0:_0x267b69[_0x8f3fc9(0x1e0)]())}),this[_0x8f3fc9(0x144)][_0x8f3fc9(0x1ed)]({'type':_0x5b29c8['MessageType'][_0x8f3fc9(0x1e8)],'content':this[_0x8f3fc9(0x17c)]['t'](_0x8f3fc9(0xec))}),setTimeout(()=>{var _0x390591=_0x8f3fc9;this[_0x390591(0x145)][_0x390591(0x80)](_0x238993);},0x320);}catch(_0x331779){this[_0x8f3fc9(0xad)][_0x8f3fc9(0x87)](_0x8f3fc9(0x1ff),_0x331779),this[_0x8f3fc9(0x144)][_0x8f3fc9(0x1ed)]({'type':_0x5b29c8['MessageType'][_0x8f3fc9(0x91)],'content':this[_0x8f3fc9(0x17c)]['t'](_0x8f3fc9(0x130))});}finally{this[_0x8f3fc9(0xf6)][_0x8f3fc9(0x12c)](!0x1);}}),(this[_0x18aa32(0x219)]=_0x29a184,this['_uiPartsService']=_0xf2b403,this[_0x18aa32(0xc8)]=_0x276486,this[_0x18aa32(0xb6)]=_0x66aced,this[_0x18aa32(0x145)]=_0xd506c9,this['_messageService']=_0x4d82c6,this[_0x18aa32(0xc1)]=_0x4d99ad,this[_0x18aa32(0x17c)]=_0xd0e8d8,this[_0x18aa32(0xad)]=_0x27e901,this[_0x18aa32(0xa7)]=_0x1e9cf8,this[_0x18aa32(0xae)](),this[_0x18aa32(0x88)](),this[_0x18aa32(0x82)]());}['showConfigPanel'](){var _0xcfb40d=_0x4ca5c4;this[_0xcfb40d(0x145)][_0xcfb40d(0x111)]({'id':_0x238993,'title':{'title':this['_localeService']['t'](_0xcfb40d(0x178))},'children':{'label':_0xcfb40d(0x1ef)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x3c9faa=_0xcfb40d;this[_0x3c9faa(0x145)][_0x3c9faa(0x80)](_0x238993);}});}['getCurrentConfig'](){var _0x36c57d=_0x4ca5c4;return this[_0x36c57d(0x1fe)]['value'];}[_0x4ca5c4(0x82)](){var _0x5efafe=_0x4ca5c4;this['disposeWithMe'](this['_componentManager']['register']('MCPConfigPanel',this[_0x5efafe(0x15f)]()));}[_0x4ca5c4(0x15f)](){var _0x16525f=_0x4ca5c4;return _0x36ce9e[_0x16525f(0x9d)](()=>{var _0x555b9c=_0x16525f,_0x518101,_0x55da9f,_0x409844;return _0x47b214['jsx'](_0x232065,{'config':this[_0x555b9c(0x106)][_0x555b9c(0x1e4)],'mcpCoreConfig':this[_0x555b9c(0x1fe)][_0x555b9c(0x1e4)],'currentApiKey$':this[_0x555b9c(0x21a)],'onSave':this['_handleConfigSave'],'loading':this['_loading$'][_0x555b9c(0x1e4)],'connectionStatus$':(_0x518101=this[_0x555b9c(0xa7)])==null?void 0x0:_0x518101[_0x555b9c(0x157)],'connectionError$':(_0x55da9f=this[_0x555b9c(0xa7)])==null?void 0x0:_0x55da9f[_0x555b9c(0xba)],'currentSessionId$':(_0x409844=this[_0x555b9c(0xa7)])==null?void 0x0:_0x409844['sessionId$']});},this[_0x16525f(0x219)]);}[_0x4ca5c4(0xae)](){var _0x5e16e7=_0x4ca5c4;this[_0x5e16e7(0x200)](this[_0x5e16e7(0xc8)][_0x5e16e7(0xe9)](_0x1b42f4[_0x5e16e7(0x15c)])[_0x5e16e7(0x15e)](_0x425a67=>{var _0x88dd6c=_0x5e16e7;this[_0x88dd6c(0x1fe)][_0x88dd6c(0x12c)](_0x425a67||{});}));const _0x2c9e9c=this['_configService'][_0x5e16e7(0xca)](_0x1b42f4['MCP_PLUGIN_CONFIG_KEY']);this[_0x5e16e7(0x1fe)][_0x5e16e7(0x12c)](_0x2c9e9c||{}),this[_0x5e16e7(0x200)](this[_0x5e16e7(0xc8)][_0x5e16e7(0xe9)](_0x186c18)[_0x5e16e7(0x15e)](_0x101eba=>{this['_config$']['next'](_0x101eba||{});}));const _0x5598a6=this[_0x5e16e7(0xc8)][_0x5e16e7(0xca)](_0x186c18);this[_0x5e16e7(0x106)][_0x5e16e7(0x12c)](_0x5598a6||{});}async[_0x4ca5c4(0x88)](){var _0x26584c=_0x4ca5c4;const _0x1f9bb8=await this[_0x26584c(0xb6)][_0x26584c(0x211)](_0x41192f);_0x1f9bb8&&(this[_0x26584c(0xa7)][_0x26584c(0x204)]({'Authorization':_0x26584c(0x1f6)+_0x1f9bb8}),this['_apiKey$'][_0x26584c(0x12c)](_0x1f9bb8));}async[_0x4ca5c4(0xe6)](_0x24d376){var _0x3d58ec=_0x4ca5c4;if(!_0x24d376['apiKey']||_0x24d376[_0x3d58ec(0x169)]['trim']()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x3d58ec(0x1c7))};if(_0x24d376[_0x3d58ec(0x169)]['trim']()[_0x3d58ec(0x206)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x3d58ec(0x17c)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x374481=await this[_0x3d58ec(0x219)][_0x3d58ec(0x9f)](_0x1b42f4[_0x3d58ec(0x1ec)])[_0x3d58ec(0x156)](_0x24d376[_0x3d58ec(0x169)][_0x3d58ec(0x1e0)]());return _0x374481[_0x3d58ec(0x15d)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x374481['error']||this[_0x3d58ec(0x17c)]['t'](_0x3d58ec(0x1b4))};}catch(_0x4b3a28){return console[_0x3d58ec(0x1cd)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x4b3a28),{'isValid':!0x0};}}},_0x2846fb[_0x4ca5c4(0x180)]=_0x55e021([_0x58fe58(0x0,_0x5ad3c6[_0x4ca5c4(0x187)](_0x5ad3c6['Injector'])),_0x58fe58(0x1,_0x36ce9e[_0x4ca5c4(0x13b)]),_0x58fe58(0x2,_0x5ad3c6[_0x4ca5c4(0x146)]),_0x58fe58(0x3,_0x5ad3c6[_0x4ca5c4(0x98)]),_0x58fe58(0x4,_0x36ce9e['IDialogService']),_0x58fe58(0x5,_0x36ce9e['IMessageService']),_0x58fe58(0x6,_0x5ad3c6[_0x4ca5c4(0x187)](_0x36ce9e['ComponentManager'])),_0x58fe58(0x7,_0x5ad3c6[_0x4ca5c4(0x187)](_0x5ad3c6['LocaleService'])),_0x58fe58(0x8,_0x5ad3c6[_0x4ca5c4(0x198)]),_0x58fe58(0x9,_0x5ad3c6['Inject'](_0x1b42f4[_0x4ca5c4(0x1ec)]))],_0x2846fb[_0x4ca5c4(0x180)]);const _0x3751cc={'id':_0x4ca5c4(0x179),'type':_0x5ad3c6['CommandType'][_0x4ca5c4(0xa6)],'handler':async(_0x50e223,_0x42ba11)=>(_0x50e223[_0x4ca5c4(0x9f)](_0x2846fb[_0x4ca5c4(0x180)])[_0x4ca5c4(0x162)](),!0x0)};function _0x3bff08(_0x26ddbd,_0x2da5a4){var _0x34f84a=_0x4ca5c4;switch(_0x26ddbd){case _0x1b42f4[_0x34f84a(0xee)][_0x34f84a(0x1e6)]:return _0x34f84a(0xf0);case _0x1b42f4['MCPConnectionStatus'][_0x34f84a(0x7f)]:return'mcpStatus.connecting';case _0x1b42f4[_0x34f84a(0xee)][_0x34f84a(0x1f8)]:return'mcpStatus.connected';case _0x1b42f4[_0x34f84a(0xee)]['FAILED']:switch(_0x2da5a4){case _0x1b42f4[_0x34f84a(0xe3)][_0x34f84a(0x1bb)]:return _0x34f84a(0x19a);case _0x1b42f4[_0x34f84a(0xe3)][_0x34f84a(0x148)]:return _0x34f84a(0xa9);case _0x1b42f4[_0x34f84a(0xe3)][_0x34f84a(0x125)]:return _0x34f84a(0xf9);case _0x1b42f4['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x34f84a(0x1e7);default:return _0x34f84a(0x158);}case _0x1b42f4[_0x34f84a(0xee)]['RETRYING']:return _0x34f84a(0xeb);default:return _0x34f84a(0x141);}}function _0x46ccfc(_0x54876e,_0xba8ae7,_0xd1be97){var _0x3ba4ec=_0x4ca5c4;const _0x3e0525=_0x3bff08(_0x54876e,_0xba8ae7),_0x23ad12=_0xd1be97['t'](_0x3e0525);return _0x54876e===_0x1b42f4['MCPConnectionStatus']['DISCONNECTED']&&_0xba8ae7===_0x1b42f4[_0x3ba4ec(0xe3)][_0x3ba4ec(0x1bb)]?_0x23ad12+_0x3ba4ec(0x94)+_0xd1be97['t'](_0x3ba4ec(0x13e)):_0x54876e===_0x1b42f4['MCPConnectionStatus'][_0x3ba4ec(0x1f8)]?''+_0x23ad12:_0x54876e===_0x1b42f4['MCPConnectionStatus'][_0x3ba4ec(0x1e6)]||_0x54876e===_0x1b42f4[_0x3ba4ec(0xee)]['FAILED']?_0x23ad12+_0x3ba4ec(0x94)+_0xd1be97['t'](_0x3ba4ec(0x129)):_0x23ad12;}function _0x243d59(_0x3e2737){var _0x2e3c84=_0x4ca5c4;switch(_0x3e2737){case _0x1b42f4[_0x2e3c84(0xee)][_0x2e3c84(0x1f8)]:return _0x2e3c84(0xd3);case _0x1b42f4['MCPConnectionStatus'][_0x2e3c84(0x7f)]:case _0x1b42f4[_0x2e3c84(0xee)]['RETRYING']:return _0x2e3c84(0x1c3);case _0x1b42f4[_0x2e3c84(0xee)][_0x2e3c84(0xdd)]:case _0x1b42f4[_0x2e3c84(0xee)][_0x2e3c84(0x1e6)]:return _0x2e3c84(0x14b);default:return _0x2e3c84(0x201);}}function _0x400830(_0x483ab9){var _0x4a83b5=_0x4ca5c4;const {status$:_0x4a843e,error$:_0x3992ba,onConfigure:_0x5431f3}=_0x483ab9,_0x39c82e=_0x36ce9e[_0x4a83b5(0x193)](_0x4a843e,_0x1b42f4[_0x4a83b5(0xee)]['DISCONNECTED']),_0x1a4fe0=_0x36ce9e['useObservable'](_0x3992ba,_0x1b42f4[_0x4a83b5(0xe3)][_0x4a83b5(0x20f)]),_0x2984dc=_0x36ce9e['useDependency'](_0x5ad3c6['LocaleService']),_0x5c1356=_0x39c82e===_0x1b42f4['MCPConnectionStatus']['CONNECTED'],_0x32360c=_0x39c82e===_0x1b42f4[_0x4a83b5(0xee)][_0x4a83b5(0x7f)]||_0x39c82e===_0x1b42f4['MCPConnectionStatus'][_0x4a83b5(0x86)],_0x43a30e=_0x2984dc['t'](_0x3bff08(_0x39c82e,_0x1a4fe0)),_0x3717fb=_0x46ccfc(_0x39c82e,_0x1a4fe0,_0x2984dc),_0x41994e=_0x243d59(_0x39c82e),_0xce4211=_0x5c1356?_0x47b214[_0x4a83b5(0xf2)](_0x54b607,{}):_0x47b214[_0x4a83b5(0xf2)](_0x127d51,{}),_0x36b944=_0x365b01[_0x4a83b5(0xa4)](()=>{_0x5431f3&&_0x5431f3();},[_0x5c1356,_0x32360c,_0x5431f3]);function _0x3b520f(){var _0x1b0519=_0x4a83b5;return _0x47b214['jsxs'](_0x1b0519(0xc5),{'className':_0x5b29c8[_0x1b0519(0xab)](_0x1b0519(0xbb),_0x5431f3&&_0x1b0519(0xa8)),'onClick':_0x5431f3?_0x36b944:void 0x0,'children':[_0x47b214[_0x1b0519(0xf2)](_0x1b0519(0xc5),{'className':_0x5b29c8['clsx']('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x41994e),'children':_0xce4211}),_0x47b214[_0x1b0519(0xf2)](_0x1b0519(0xc5),{'className':_0x1b0519(0xcf),'children':_0x43a30e})]});}return _0x47b214[_0x4a83b5(0xf2)](_0x5b29c8[_0x4a83b5(0x1d5)],{'title':_0x3717fb,'placement':_0x4a83b5(0x133),'children':_0x3b520f()});}var _0x288635=Object[_0x4ca5c4(0x17f)],_0x46aec3=(_0x3bf8ea,_0xf5ff14,_0x2db89b,_0x3d0b19)=>{var _0x4a8a78=_0x4ca5c4;for(var _0x1df9e7=_0x3d0b19>0x1?void 0x0:_0x3d0b19?_0x288635(_0xf5ff14,_0x2db89b):_0xf5ff14,_0x4f528e=_0x3bf8ea[_0x4a8a78(0x206)]-0x1,_0x3eaa8e;_0x4f528e>=0x0;_0x4f528e--)(_0x3eaa8e=_0x3bf8ea[_0x4f528e])&&(_0x1df9e7=_0x3eaa8e(_0x1df9e7)||_0x1df9e7);return _0x1df9e7;},_0x16dd3f=(_0x1cf8a8,_0x5e9afd)=>(_0x4dc7fc,_0x24556c)=>_0x5e9afd(_0x4dc7fc,_0x24556c,_0x1cf8a8);_0x2846fb['MCPConnectionUIController']=class extends _0x5ad3c6[_0x4ca5c4(0x1af)]{constructor(_0x2a4e9a,_0x4c510a,_0x28997b){var _0x5eb0f2=_0x4ca5c4;super(),this['_injector']=_0x2a4e9a,this[_0x5eb0f2(0x83)]=_0x4c510a,this[_0x5eb0f2(0x13a)]=_0x28997b,this[_0x5eb0f2(0x83)][_0x5eb0f2(0x112)]=!0x1,this['_initStatusComponent']();}[_0x4ca5c4(0x183)](){var _0xba6754=_0x4ca5c4;this[_0xba6754(0x200)](this[_0xba6754(0x13a)]['registerComponent'](_0x36ce9e[_0xba6754(0xb3)][_0xba6754(0x1cf)],()=>_0x36ce9e['connectInjector'](_0x83635a({'status$':this[_0xba6754(0x83)][_0xba6754(0x157)],'error$':this[_0xba6754(0x83)][_0xba6754(0xba)],'onConfigure':()=>this[_0xba6754(0x1e9)]()}),this['_injector'])));}[_0x4ca5c4(0x1e9)](){var _0x4ed567=_0x4ca5c4;this['_injector'][_0x4ed567(0x9f)](_0x2846fb[_0x4ed567(0x180)])[_0x4ed567(0x162)]();}},_0x2846fb[_0x4ca5c4(0x1dc)]=_0x46aec3([_0x16dd3f(0x0,_0x5ad3c6[_0x4ca5c4(0x187)](_0x5ad3c6[_0x4ca5c4(0x196)])),_0x16dd3f(0x1,_0x5ad3c6['Inject'](_0x1b42f4[_0x4ca5c4(0x1ec)])),_0x16dd3f(0x2,_0x36ce9e[_0x4ca5c4(0x13b)])],_0x2846fb[_0x4ca5c4(0x1dc)]);function _0x83635a(_0x52b835){const {status$:_0x54eb43,error$:_0x1710c1,onConfigure:_0x5363bd}=_0x52b835;return function(){var _0x277ad0=_0x3f44;return _0x47b214[_0x277ad0(0xf2)](_0x400830,{'status$':_0x54eb43,'error$':_0x1710c1,'onConfigure':_0x5363bd});};}function _0x42f344(_0x436dfd){var _0x2d98cb=_0x4ca5c4;return{'id':_0x3751cc['id'],'type':_0x36ce9e['MenuItemType'][_0x2d98cb(0x1a4)],'icon':_0x2d98cb(0x17d),'title':_0x2d98cb(0x178),'tooltip':'mcpConfig.title'};}const _0x353d2a={[_0x36ce9e[_0x4ca5c4(0x96)][_0x4ca5c4(0xd7)]]:{[_0x3751cc['id']]:{'order':0xa,'menuItemFactory':_0x42f344}}};var _0x328580=Object['getOwnPropertyDescriptor'],_0x10da82=(_0x37b79e,_0x5da1e6,_0x412a1b,_0x2aa4df)=>{for(var _0x5981ed=_0x2aa4df>0x1?void 0x0:_0x2aa4df?_0x328580(_0x5da1e6,_0x412a1b):_0x5da1e6,_0xe42ffc=_0x37b79e['length']-0x1,_0x2aa384;_0xe42ffc>=0x0;_0xe42ffc--)(_0x2aa384=_0x37b79e[_0xe42ffc])&&(_0x5981ed=_0x2aa384(_0x5981ed)||_0x5981ed);return _0x5981ed;},_0x300155=(_0x1c48f2,_0xdd3a8d)=>(_0x16dbf9,_0x293bdf)=>_0xdd3a8d(_0x16dbf9,_0x293bdf,_0x1c48f2);_0x2846fb[_0x4ca5c4(0x122)]=class extends _0x5ad3c6[_0x4ca5c4(0x1af)]{constructor(_0x3e1c43,_0x2efcf7){var _0x12be47=_0x4ca5c4;super(),this['_commandService']=_0x3e1c43,this[_0x12be47(0x16f)]=_0x2efcf7,this[_0x12be47(0x151)](),this[_0x12be47(0x124)]();}[_0x4ca5c4(0x151)](){var _0x358b87=_0x4ca5c4;[_0x3751cc][_0x358b87(0x1c6)](_0x4b8033=>{var _0x34c0ba=_0x358b87;this['disposeWithMe'](this[_0x34c0ba(0x155)][_0x34c0ba(0x12e)](_0x4b8033));});}[_0x4ca5c4(0x124)](){var _0x6bbb6c=_0x4ca5c4;this[_0x6bbb6c(0x16f)]['mergeMenu'](_0x353d2a);}},_0x2846fb['MCPUIMenuController']=_0x10da82([_0x300155(0x0,_0x5ad3c6[_0x4ca5c4(0x220)]),_0x300155(0x1,_0x36ce9e['IMenuManagerService'])],_0x2846fb['MCPUIMenuController']);const _0x1e70d1={'mcpStatus':{'disconnected':_0x4ca5c4(0x14a),'connecting':_0x4ca5c4(0x102),'connected':'MCP\x20Connected','failed':_0x4ca5c4(0xd8),'retrying':_0x4ca5c4(0x1b9),'unknown':_0x4ca5c4(0x160),'missingApiKey':_0x4ca5c4(0x18f),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x4ca5c4(0x18d),'maxRetriesExceeded':_0x4ca5c4(0x12b),'clickToConnect':_0x4ca5c4(0x12f),'clickToConfigure':_0x4ca5c4(0xdb)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x4ca5c4(0xa3),'apiKeyHint':_0x4ca5c4(0x1a5),'enableAuth':_0x4ca5c4(0x216),'enableAuthHint':_0x4ca5c4(0x203),'connectionInfo':_0x4ca5c4(0xe7),'mcpClientConfig':_0x4ca5c4(0xe7),'configInstructions':_0x4ca5c4(0xcc),'configStepTitle':_0x4ca5c4(0x11b),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4ca5c4(0xda),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x4ca5c4(0x190),'maxRetries':_0x4ca5c4(0x1f5),'save':_0x4ca5c4(0x214),'saving':_0x4ca5c4(0x171),'note1':_0x4ca5c4(0x114),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x4ca5c4(0x1aa),'configError':_0x4ca5c4(0xd9),'apiApplyInfo':{'title':_0x4ca5c4(0x1f7),'description':_0x4ca5c4(0x1a1),'univerAiLabel':_0x4ca5c4(0x93),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4ca5c4(0x17b),'apiKeyTooShort':_0x4ca5c4(0x1f2),'invalidConfig':_0x4ca5c4(0x1f0),'invalidApiKey':_0x4ca5c4(0x1c9)},'connectionStatus':{'disconnected':_0x4ca5c4(0xdf),'connecting':_0x4ca5c4(0x1e5),'connected':_0x4ca5c4(0x1c5),'failed':_0x4ca5c4(0x20d),'retrying':_0x4ca5c4(0x20e)},'connectionError':{'missingApiKey':_0x4ca5c4(0x16d),'invalidApiKey':_0x4ca5c4(0xd5),'sessionOccupied':_0x4ca5c4(0x1fd),'networkError':_0x4ca5c4(0x1fa),'maxRetriesExceeded':_0x4ca5c4(0x1da)}}},_0x23ff60={'mcpStatus':{'disconnected':_0x4ca5c4(0x1ca),'connecting':_0x4ca5c4(0x18e),'connected':_0x4ca5c4(0xc6),'failed':_0x4ca5c4(0xc2),'retrying':_0x4ca5c4(0x164),'unknown':'MCP\x20状态未知','missingApiKey':_0x4ca5c4(0x165),'invalidApiKey':_0x4ca5c4(0x1ba),'sessionOccupied':_0x4ca5c4(0xd2),'networkError':_0x4ca5c4(0x15a),'maxRetriesExceeded':_0x4ca5c4(0x89),'clickToConnect':_0x4ca5c4(0xb4),'clickToConfigure':_0x4ca5c4(0x197)},'mcpConfig':{'title':_0x4ca5c4(0x11a),'description':_0x4ca5c4(0x113),'apiKey':_0x4ca5c4(0x1f3),'apiKeyPlaceholder':_0x4ca5c4(0x85),'apiKeyHint':_0x4ca5c4(0xc3),'enableAuth':_0x4ca5c4(0xf7),'enableAuthHint':_0x4ca5c4(0x185),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x4ca5c4(0x17a),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x4ca5c4(0x184),'configStep1':'复制以下\x20JSON\x20配置','configStep2':_0x4ca5c4(0x17e),'configStep3':_0x4ca5c4(0xf5),'sessionId':_0x4ca5c4(0xe4),'sessionIdDescription':_0x4ca5c4(0x126),'authorizationDescription':_0x4ca5c4(0x10b),'configParameters':_0x4ca5c4(0x218),'maxRetries':'最大重试次数','save':'保存配置','saving':_0x4ca5c4(0xef),'note1':_0x4ca5c4(0x92),'note2':_0x4ca5c4(0x10a),'configSaved':_0x4ca5c4(0x20c),'configError':_0x4ca5c4(0x1a7),'apiApplyInfo':{'title':_0x4ca5c4(0x10f),'description':_0x4ca5c4(0x1cb),'univerAiLabel':_0x4ca5c4(0xac),'getStarted':_0x4ca5c4(0x1b3)},'validation':{'apiKeyRequired':_0x4ca5c4(0xb8),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x4ca5c4(0x1d8),'invalidApiKey':_0x4ca5c4(0x166)},'connectionStatus':{'disconnected':'未连接','connecting':_0x4ca5c4(0x127),'connected':_0x4ca5c4(0xf4),'failed':_0x4ca5c4(0xc0),'retrying':_0x4ca5c4(0x1f1)},'connectionError':{'missingApiKey':'需要\x20API\x20密钥才能连接','invalidApiKey':'API\x20密钥无效,请检查您的密钥后重试','sessionOccupied':_0x4ca5c4(0x1f4),'networkError':_0x4ca5c4(0x120),'maxRetriesExceeded':_0x4ca5c4(0x9b)}}};var _0x208245=Object[_0x4ca5c4(0x7e)],_0x3d51eb=Object[_0x4ca5c4(0x17f)],_0x383b8d=(_0x4a5abe,_0x4ee37f,_0x3a0cc2)=>_0x4ee37f in _0x4a5abe?_0x208245(_0x4a5abe,_0x4ee37f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a0cc2}):_0x4a5abe[_0x4ee37f]=_0x3a0cc2,_0x324a26=(_0x2359df,_0x46e549,_0x180d08,_0x55995a)=>{for(var _0xd89fce=_0x55995a>0x1?void 0x0:_0x55995a?_0x3d51eb(_0x46e549,_0x180d08):_0x46e549,_0x32bde1=_0x2359df['length']-0x1,_0x40e277;_0x32bde1>=0x0;_0x32bde1--)(_0x40e277=_0x2359df[_0x32bde1])&&(_0xd89fce=_0x40e277(_0xd89fce)||_0xd89fce);return _0xd89fce;},_0x37e615=(_0x17d274,_0x2192f1)=>(_0x4fa492,_0x5ce1ae)=>_0x2192f1(_0x4fa492,_0x5ce1ae,_0x17d274),_0xab15e4=(_0x2bce72,_0xce6486,_0x4ac624)=>_0x383b8d(_0x2bce72,_0xce6486+'',_0x4ac624);_0x2846fb[_0x4ca5c4(0xbd)]=class extends _0x5ad3c6[_0x4ca5c4(0x153)]{constructor(_0xa93710=_0x2ea3e8,_0x39e1e5,_0x4c3732,_0x20383e,_0x586861,_0x3b977d){var _0x324903=_0x4ca5c4;super(),this[_0x324903(0x1c8)]=_0xa93710,this['_injector']=_0x39e1e5,this[_0x324903(0xc8)]=_0x4c3732,this[_0x324903(0x13a)]=_0x20383e,this[_0x324903(0xb6)]=_0x586861,this[_0x324903(0x17c)]=_0x3b977d;const {..._0x3aa2b4}=_0x5ad3c6['merge']({},_0x2ea3e8,this['_config']);this[_0x324903(0xc8)][_0x324903(0xe1)](_0x186c18,_0x3aa2b4);}async[_0x4ca5c4(0x159)](){var _0x44a40d=_0x4ca5c4;const _0x124945=[[_0x2846fb['MCPConnectionUIController']],[_0x2846fb[_0x44a40d(0x180)]],[_0x2846fb['MCPUIMenuController']]];this[_0x44a40d(0x219)][_0x44a40d(0x199)](_0x11985f['ISocketService'])||_0x124945[_0x44a40d(0xfe)]([_0x11985f[_0x44a40d(0x10e)],{'useClass':_0x11985f[_0x44a40d(0x149)]}]),_0x124945[_0x44a40d(0x1c6)](_0xfcb26b=>this[_0x44a40d(0x219)][_0x44a40d(0x1bf)](_0xfcb26b)),this['_injector'][_0x44a40d(0x9f)](_0x2846fb[_0x44a40d(0x1dc)]),this[_0x44a40d(0x219)][_0x44a40d(0x9f)](_0x2846fb[_0x44a40d(0x180)]),this[_0x44a40d(0x219)][_0x44a40d(0x9f)](_0x2846fb['MCPUIMenuController']);}},_0xab15e4(_0x2846fb[_0x4ca5c4(0xbd)],'pluginName',_0x4ca5c4(0xcd)),_0x2846fb[_0x4ca5c4(0xbd)]=_0x324a26([_0x5ad3c6[_0x4ca5c4(0x105)](_0x1b42f4[_0x4ca5c4(0x1a9)]),_0x37e615(0x1,_0x5ad3c6[_0x4ca5c4(0x187)](_0x5ad3c6[_0x4ca5c4(0x196)])),_0x37e615(0x2,_0x5ad3c6['IConfigService']),_0x37e615(0x3,_0x36ce9e[_0x4ca5c4(0x13b)]),_0x37e615(0x4,_0x5ad3c6[_0x4ca5c4(0x98)]),_0x37e615(0x5,_0x5ad3c6['Inject'](_0x5ad3c6['LocaleService']))],_0x2846fb[_0x4ca5c4(0xbd)]),_0x2846fb[_0x4ca5c4(0x1ef)]=_0x232065,_0x2846fb['MCPStatusDisplay']=_0x400830,_0x2846fb['OpenMCPConfigPanelCommand']=_0x3751cc,_0x2846fb[_0x4ca5c4(0xf1)]=_0x1e70d1,_0x2846fb[_0x4ca5c4(0x9a)]=_0x23ff60,Object[_0x4ca5c4(0x7e)](_0x2846fb,Symbol[_0x4ca5c4(0x116)],{'value':'Module'});}));