browserstack-node-sdk 1.40.5 → 1.40.7

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 (175) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/browserstack.pw.yml.sample +1 -0
  41. package/browserstack.yml.sample +1 -0
  42. package/package.json +1 -1
  43. package/src/ai-sdk-node/bundle.js +1 -1
  44. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  45. package/src/bin/codeceptjs/command.js +1 -1
  46. package/src/bin/codeceptjs/helper.js +1 -1
  47. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  48. package/src/bin/cucumber-js/command.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  50. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test_before.setup.js +1 -1
  69. package/src/bin/launcher/launcher.js +1 -1
  70. package/src/bin/load/index.js +1 -1
  71. package/src/bin/load/loadUtils.js +1 -1
  72. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  73. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  74. package/src/bin/mocha/command.js +1 -1
  75. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  76. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  77. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  78. package/src/bin/mocha/test.setup.js +1 -1
  79. package/src/bin/nightwatch/command.js +1 -1
  80. package/src/bin/playwright/accessibility-helper.js +1 -1
  81. package/src/bin/playwright/command.js +1 -1
  82. package/src/bin/playwright/globalSetup.js +1 -1
  83. package/src/bin/playwright/mock-process.js +1 -1
  84. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  85. package/src/bin/playwright/patches.js +1 -1
  86. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  87. package/src/bin/playwright/reporter/reporter.js +1 -1
  88. package/src/bin/playwright/reporter/test-details.js +1 -1
  89. package/src/bin/playwright/sessionDetails.js +1 -1
  90. package/src/bin/runner.js +1 -1
  91. package/src/bin/setup.js +1 -1
  92. package/src/bin/test-runner/index.js +1 -1
  93. package/src/bin/test-runner/runTest.js +1 -1
  94. package/src/bin/test-runner/testWorker.js +1 -1
  95. package/src/bin/utils/constants.js +1 -1
  96. package/src/bin/utils/log4jsAppender.js +1 -1
  97. package/src/bin/utils/logPatcher.js +1 -1
  98. package/src/bin/utils/logReportingAPI.js +1 -1
  99. package/src/bin/v2/TestInfo.js +1 -1
  100. package/src/bin/v2/browserstackCLI.js +1 -1
  101. package/src/bin/v2/cliUtils.js +1 -1
  102. package/src/bin/v2/customTagManager.js +1 -1
  103. package/src/bin/v2/eventDispatcher.js +1 -1
  104. package/src/bin/v2/framework/automationFramework.js +1 -1
  105. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  106. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  107. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  108. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  109. package/src/bin/v2/framework/testFramework.js +1 -1
  110. package/src/bin/v2/grpcClient.js +1 -1
  111. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  112. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  113. package/src/bin/v2/instances/trackedContext.js +1 -1
  114. package/src/bin/v2/instances/trackedInstance.js +1 -1
  115. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  116. package/src/bin/v2/modules/baseModule.js +1 -1
  117. package/src/bin/v2/modules/observabilityModule.js +1 -1
  118. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  119. package/src/bin/v2/modules/testhubModule.js +1 -1
  120. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  121. package/src/bin/v2/state/hookState.js +1 -1
  122. package/src/bin/v2/state/testFrameworkState.js +1 -1
  123. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  124. package/src/bin/vanilla-js/command.js +1 -1
  125. package/src/browserStackSdk.js +1 -1
  126. package/src/helpers/BrowserStackSetup.js +1 -1
  127. package/src/helpers/accessibility-automation/constants.js +1 -1
  128. package/src/helpers/accessibility-automation/helper.js +1 -1
  129. package/src/helpers/accessibility-automation/scripts.js +1 -1
  130. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  131. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  132. package/src/helpers/ats/constants.js +1 -1
  133. package/src/helpers/ats/helper.js +1 -1
  134. package/src/helpers/capsMapping.js +1 -1
  135. package/src/helpers/central-scanner/constants.js +1 -1
  136. package/src/helpers/central-scanner/helpers.js +1 -1
  137. package/src/helpers/classLogger.js +1 -1
  138. package/src/helpers/globals.js +1 -1
  139. package/src/helpers/helper.js +1 -1
  140. package/src/helpers/logger.js +1 -1
  141. package/src/helpers/metadata.js +1 -1
  142. package/src/helpers/patchHelper.js +1 -1
  143. package/src/helpers/patchHelpers.js +1 -1
  144. package/src/helpers/percy/Percy.js +1 -1
  145. package/src/helpers/percy/PercyBinary.js +1 -1
  146. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  147. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  148. package/src/helpers/percy/PercySDK.js +1 -1
  149. package/src/helpers/percy/index.js +1 -1
  150. package/src/helpers/percy/utils.js +1 -1
  151. package/src/helpers/performance/constants.js +1 -1
  152. package/src/helpers/performance/performance-tester.js +1 -1
  153. package/src/helpers/processHelper.js +1 -1
  154. package/src/helpers/request-spy.js +1 -1
  155. package/src/helpers/setKeepAlive.js +1 -1
  156. package/src/helpers/test-observability/constants.js +1 -1
  157. package/src/helpers/test-observability/error-handler.js +1 -1
  158. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  159. package/src/helpers/test-observability/sessionHandler.js +1 -1
  160. package/src/helpers/test-observability/utils.js +1 -1
  161. package/src/helpers/test-orchestration/constants.js +1 -1
  162. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  163. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  164. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  165. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  166. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  167. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  168. package/src/helpers/testhub/constants.js +1 -1
  169. package/src/helpers/testhub/testhubHandler.js +1 -1
  170. package/src/helpers/testhub/utils.js +1 -1
  171. package/src/helpers/timeoutPromise.js +1 -1
  172. package/src/helpers/utilities.js +1 -1
  173. package/src/helpers/w3cMapping.js +1 -1
  174. package/src/hubAllocationMethods.js +1 -1
  175. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x2d1cb7=a9_0x4285;(function(_0x43d9b7,_0x3adec6){const _0x5b8827=a9_0x4285,_0x1f2b87=_0x43d9b7();while(!![]){try{const _0x7a6632=parseInt(_0x5b8827(0x213))/0x1*(-parseInt(_0x5b8827(0x25d))/0x2)+parseInt(_0x5b8827(0x170))/0x3+parseInt(_0x5b8827(0x2bd))/0x4*(parseInt(_0x5b8827(0x288))/0x5)+-parseInt(_0x5b8827(0x136))/0x6*(-parseInt(_0x5b8827(0x1e9))/0x7)+-parseInt(_0x5b8827(0x2c0))/0x8*(parseInt(_0x5b8827(0x2c9))/0x9)+parseInt(_0x5b8827(0x2c5))/0xa*(-parseInt(_0x5b8827(0x167))/0xb)+parseInt(_0x5b8827(0x264))/0xc;if(_0x7a6632===_0x3adec6)break;else _0x1f2b87['push'](_0x1f2b87['shift']());}catch(_0x394305){_0x1f2b87['push'](_0x1f2b87['shift']());}}}(a9_0xe522,0x961f1));function a9_0x4285(_0x4941ac,_0x38ec47){const _0xe522e=a9_0xe522();return a9_0x4285=function(_0x428509,_0x4da457){_0x428509=_0x428509-0x116;let _0x5bd122=_0xe522e[_0x428509];return _0x5bd122;},a9_0x4285(_0x4941ac,_0x38ec47);}const fs=require('fs'),ws=require('ws'),path=require(a9_0x2d1cb7(0x150)),yaml=require(a9_0x2d1cb7(0x175)),ReconnectingWebSocket=require(a9_0x2d1cb7(0x133)),got=require(a9_0x2d1cb7(0x29d)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x2d1cb7(0x253)),{logger}=require(a9_0x2d1cb7(0x2d0)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x2d1cb7(0x248)),{getCloudProviderObject}=require(a9_0x2d1cb7(0x1b6)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x2d1cb7(0x281)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x2d1cb7(0x25f)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a9_0x2d1cb7(0x265));exports['command']=a9_0x2d1cb7(0x168),exports['desc']=a9_0x2d1cb7(0x1d6),exports[a9_0x2d1cb7(0x26d)]=function(_0x4973b9){const _0x287b98=a9_0x2d1cb7,_0x123ad1={};_0x123ad1[_0x287b98(0x126)]=_0x287b98(0x1c2),_0x123ad1[_0x287b98(0x237)]=_0x287b98(0x2cd),_0x123ad1[_0x287b98(0x18a)]=_0x287b98(0x15e),_0x123ad1['YzMpW']=_0x287b98(0x203),_0x123ad1['YQikJ']=_0x287b98(0x262),_0x123ad1['ooole']='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x123ad1[_0x287b98(0x2a4)]='Create\x20a\x20private/public\x20grid.',_0x123ad1[_0x287b98(0x1f2)]=_0x287b98(0x2a7),_0x123ad1['gomDM']=_0x287b98(0x2b2),_0x123ad1[_0x287b98(0x199)]=_0x287b98(0x1d9),_0x123ad1[_0x287b98(0x1c3)]=_0x287b98(0x205),_0x123ad1[_0x287b98(0x2b4)]=_0x287b98(0x28f);const _0x25f344=_0x123ad1,_0x4dc0df={};_0x4dc0df['description']=_0x25f344[_0x287b98(0x126)],_0x4dc0df[_0x287b98(0x129)]=_0x25f344[_0x287b98(0x237)];const _0x541f97={};_0x541f97['description']=_0x25f344[_0x287b98(0x18a)],_0x541f97[_0x287b98(0x129)]=_0x25f344[_0x287b98(0x237)];const _0x4d69a0={};_0x4d69a0[_0x287b98(0x19b)]=_0x25f344[_0x287b98(0x138)],_0x4d69a0[_0x287b98(0x129)]=_0x25f344['wvpVI'];const _0xcc425c={};_0xcc425c[_0x287b98(0x19b)]=_0x25f344['YQikJ'],_0xcc425c[_0x287b98(0x129)]=_0x25f344[_0x287b98(0x237)];const _0x4f9450={};_0x4f9450[_0x287b98(0x19b)]=_0x25f344[_0x287b98(0x274)],_0x4f9450[_0x287b98(0x129)]=_0x25f344[_0x287b98(0x237)];const _0x38b586={};_0x38b586[_0x287b98(0x19b)]=_0x25f344['cpyhw'],_0x38b586['type']=_0x25f344['wvpVI'];const _0x14aa11={};_0x14aa11['description']=_0x25f344[_0x287b98(0x1f2)],_0x14aa11['type']=_0x25f344[_0x287b98(0x11f)],_0x14aa11[_0x287b98(0x1e2)]=![];const _0x2098dc={};_0x2098dc['description']=_0x25f344[_0x287b98(0x199)],_0x2098dc['type']=_0x25f344[_0x287b98(0x11f)],_0x2098dc['default']=![];const _0x58b226={};_0x58b226[_0x287b98(0x19b)]=_0x25f344[_0x287b98(0x1c3)],_0x58b226[_0x287b98(0x129)]=_0x25f344[_0x287b98(0x11f)],_0x58b226[_0x287b98(0x1e2)]=![];const _0x51965e={};return _0x51965e[_0x287b98(0x276)]=_0x4dc0df,_0x51965e[_0x287b98(0x11c)]=_0x541f97,_0x51965e[_0x287b98(0x190)]=_0x4d69a0,_0x51965e[_0x287b98(0x14f)]=_0xcc425c,_0x51965e[_0x287b98(0x1da)]=_0x4f9450,_0x51965e[_0x287b98(0x214)]=_0x38b586,_0x51965e[_0x287b98(0x1e5)]=_0x14aa11,_0x51965e['hub-ha']=_0x2098dc,_0x51965e[_0x287b98(0x15f)]=_0x58b226,_0x4973b9['usage'](HELP_HEADER_MESSAGE[_0x287b98(0x226)])[_0x287b98(0x1ea)](HELP_FOOTER_MESSAGE)[_0x287b98(0x1af)](_0x51965e)[_0x287b98(0x28f)](_0x25f344['KiXkm'])[_0x287b98(0x231)];},exports[a9_0x2d1cb7(0x1c1)]=async function(_0x157b73){const _0x21f521=a9_0x2d1cb7,_0x3e334a={'nxKUG':_0x21f521(0x26f),'UzWZu':'Enabling\x20Hub\x20HA\x20flow','vumjf':_0x21f521(0x24c),'jfWnc':_0x21f521(0x275),'nVkXY':_0x21f521(0x20b),'fZVzE':_0x21f521(0x1c2),'VLndy':'string','hpmzq':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','MaDTl':_0x21f521(0x203),'rloYq':_0x21f521(0x262),'Gqssg':_0x21f521(0x12c),'WqOHb':'Create\x20a\x20private/public\x20grid.','HiJLP':_0x21f521(0x2a7),'TRsjd':_0x21f521(0x2b2),'PABQY':_0x21f521(0x1d9),'pWhHG':'Flag\x20to\x20enable\x20cluster\x20auto-upgrade','wahzO':_0x21f521(0x28f),'vGmSu':'error','orvOY':_0x21f521(0x23b),'fXRJj':function(_0x447011,_0x2fd66d,_0x3a891f,_0xd9bed3,_0x3a7650,_0x1306fd,_0x5e917a,_0x2ea855,_0x4614e8,_0x4451c8,_0xf6ca93,_0x5bc31d,_0x152490){return _0x447011(_0x2fd66d,_0x3a891f,_0xd9bed3,_0x3a7650,_0x1306fd,_0x5e917a,_0x2ea855,_0x4614e8,_0x4451c8,_0xf6ca93,_0x5bc31d,_0x152490);},'CaVxI':function(_0xc07d10,_0x3fe36d){return _0xc07d10!==_0x3fe36d;},'IhhON':function(_0x2b36f1,_0x1fd14c){return _0x2b36f1(_0x1fd14c);},'ugPFq':_0x21f521(0x132),'DbdNL':function(_0x59b159,_0x533c1a){return _0x59b159===_0x533c1a;},'MKQMZ':_0x21f521(0x21a),'paIai':_0x21f521(0x1f4),'QeIQH':'https','rmSAR':'http','IYhXD':function(_0x334b5b,_0x44aa24){return _0x334b5b(_0x44aa24);},'tQBmH':'azurefile-csi-premium','AJRoq':_0x21f521(0x152),'mVuBT':_0x21f521(0x191),'jbJsJ':_0x21f521(0x1e2),'axEDX':'premium-rwo','VetUt':function(_0xd65830){return _0xd65830();},'kruMu':function(_0xc306f7){return _0xc306f7();},'TmNKz':'XJPlM','aHtKy':'Fohrp','gibRy':_0x21f521(0x215),'XgcMK':function(_0x2e0a23,_0x16e848,_0x42bb7a,_0x934cae,_0x281dd0,_0x211609,_0x13542a){return _0x2e0a23(_0x16e848,_0x42bb7a,_0x934cae,_0x281dd0,_0x211609,_0x13542a);},'cVykD':_0x21f521(0x11d),'RDUbK':_0x21f521(0x240),'dwBwI':function(_0x4c7705,_0x5f8dba,_0x809c78,_0x847d37,_0x484fc9,_0x5ca37d,_0x4d61ae){return _0x4c7705(_0x5f8dba,_0x809c78,_0x847d37,_0x484fc9,_0x5ca37d,_0x4d61ae);},'NvgEZ':function(_0x17c3b8){return _0x17c3b8();},'fMiIT':_0x21f521(0x137),'qllfq':_0x21f521(0x2cb),'zObUe':_0x21f521(0x273),'wkVoh':_0x21f521(0x20d),'eXymG':function(_0x4738ca,_0x160a75){return _0x4738ca===_0x160a75;},'pdoou':_0x21f521(0x156),'ZBGXk':_0x21f521(0x284),'LtZzH':_0x21f521(0x1d8),'MESiy':function(_0x1ae25f,_0x529479,_0x2ce789,_0x139463,_0x46829a,_0x53405d,_0x5ee05c,_0x3e2bf0){return _0x1ae25f(_0x529479,_0x2ce789,_0x139463,_0x46829a,_0x53405d,_0x5ee05c,_0x3e2bf0);},'KZwer':'prespawned-cluster-args-not-passed','dQxyk':function(_0x1d51b8,_0x146e05){return _0x1d51b8!==_0x146e05;},'xBplO':_0x21f521(0x144),'HSLTK':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','UfOXB':_0x21f521(0x27c),'fzONc':function(_0x4b630b,_0x35ce95){return _0x4b630b!==_0x35ce95;},'qwPQe':_0x21f521(0x19e),'LUrEB':function(_0x68b93b,_0x1f7d3d,_0x4ae13f,_0x5f480f,_0x5b4460,_0x3ba98a,_0x2603be){return _0x68b93b(_0x1f7d3d,_0x4ae13f,_0x5f480f,_0x5b4460,_0x3ba98a,_0x2603be);},'sdVuJ':function(_0x4c3e28,_0x1fc097){return _0x4c3e28!==_0x1fc097;},'tUjOw':_0x21f521(0x19d),'WWzrc':function(_0x4c02f8,_0x442475){return _0x4c02f8===_0x442475;},'BwKtq':_0x21f521(0x1ba),'WQyxn':'IlMKO','NWGHB':'LElUe','wOEVF':_0x21f521(0x234),'ArTWa':function(_0x4b4d40,_0x258d68,_0x33b6dc){return _0x4b4d40(_0x258d68,_0x33b6dc);},'jetLG':function(_0x3815d0,_0x5d3935){return _0x3815d0===_0x5d3935;},'yehPt':_0x21f521(0x116),'EdxlP':function(_0x5751d1,_0x59b0dc){return _0x5751d1!==_0x59b0dc;},'dikMr':'VUFBV','bMSWS':_0x21f521(0x26a),'qPsxF':function(_0x1571eb,_0x1f5ddc){return _0x1571eb===_0x1f5ddc;},'grZou':function(_0x59371a,_0xc883f6){return _0x59371a===_0xc883f6;},'BrOjv':_0x21f521(0x1fd),'cbjMG':'HGWGw','dqKVp':_0x21f521(0x269),'qCPwn':function(_0x5b77d9,_0x2d32f2,_0x295b53,_0x21e91f,_0x596e6b,_0x2f5456,_0x199e72,_0x221375){return _0x5b77d9(_0x2d32f2,_0x295b53,_0x21e91f,_0x596e6b,_0x2f5456,_0x199e72,_0x221375);},'ioKDn':_0x21f521(0x2d5),'VsmlJ':function(_0x49f5d9,_0x511188){return _0x49f5d9!==_0x511188;},'RZlxi':'wXbPK','UoqPN':_0x21f521(0x122),'QGUIj':_0x21f521(0x220),'BbABL':function(_0x545e82,_0x2fa55b){return _0x545e82!==_0x2fa55b;},'wwXXu':_0x21f521(0x13f),'GWqum':_0x21f521(0x174),'hLABN':function(_0x29f80e,_0x1c5e1f,_0x44f06f,_0x1e1877,_0x37a4a3,_0x16cf18,_0xa885b5,_0x54af5b){return _0x29f80e(_0x1c5e1f,_0x44f06f,_0x1e1877,_0x37a4a3,_0x16cf18,_0xa885b5,_0x54af5b);},'WUsvx':'create-grid-checks-non-200','pHXql':'Grid\x20profile\x20fetched\x20from\x20backend','nPlqn':function(_0x308449,_0x4bab3b){return _0x308449===_0x4bab3b;},'GnFCY':_0x21f521(0x1b1),'ggEDI':function(_0x2dda09,_0x3b693f,_0x8bce47,_0x240b5b,_0x2df3c3,_0x38c360,_0x9b5647,_0x331351){return _0x2dda09(_0x3b693f,_0x8bce47,_0x240b5b,_0x2df3c3,_0x38c360,_0x9b5647,_0x331351);},'givGq':_0x21f521(0x224),'mHdxr':_0x21f521(0x2be),'bpDdx':_0x21f521(0x26e),'yYZoq':function(_0x430c8e,_0x8c328d){return _0x430c8e!==_0x8c328d;},'hDSdj':_0x21f521(0x183),'wUlaz':_0x21f521(0x14a),'arqlo':_0x21f521(0x21f),'rNACK':function(_0x15cbde,_0x3db55c){return _0x15cbde===_0x3db55c;},'fmWtq':function(_0x5dda9a,_0x230e57){return _0x5dda9a===_0x230e57;},'ROAoP':function(_0x706654,_0x2b4efe){return _0x706654===_0x2b4efe;},'kHUMc':_0x21f521(0x298),'zISUM':_0x21f521(0x2ab),'ntabs':function(_0x130e55,_0x39cc27){return _0x130e55===_0x39cc27;},'PsOhj':function(_0x38f2fd,_0x559bc9){return _0x38f2fd!==_0x559bc9;},'vZcpN':_0x21f521(0x2ce),'Uzudv':_0x21f521(0x15d),'Jjssb':_0x21f521(0x241),'mjqqo':function(_0x14c838,_0xa5cfd2,_0x4f6bcf,_0x1c15be,_0x51f941,_0x2f4b50,_0x269219,_0x14fa92){return _0x14c838(_0xa5cfd2,_0x4f6bcf,_0x1c15be,_0x51f941,_0x2f4b50,_0x269219,_0x14fa92);},'qkRtv':_0x21f521(0x1fb),'UPHQA':function(_0x38c9ae,_0x6c17a9){return _0x38c9ae===_0x6c17a9;},'zruoQ':_0x21f521(0x242),'qmaWD':_0x21f521(0x1e0),'bBgyl':'oVhyt','BNzvQ':function(_0x5670e1,_0xb629){return _0x5670e1!==_0xb629;},'FrBjU':'PPhPQ','fukAy':_0x21f521(0x2d3),'ujYpr':function(_0x634747,_0x28d4b8){return _0x634747===_0x28d4b8;},'aEKKI':_0x21f521(0x117),'UGKzW':function(_0x3a39c0,_0x148a7e){return _0x3a39c0!==_0x148a7e;},'uOuvq':_0x21f521(0x287),'BGORy':_0x21f521(0x1b3),'KlpTA':_0x21f521(0x1b9),'jIzeB':function(_0x8f5dc1,_0x5292b,_0x4ae6d4,_0x3f7c71,_0x30db7a,_0xaa342e,_0x448731,_0xcfec10,_0x27755e,_0x110fd3,_0x29aa21,_0x50f2e4,_0x56c76e){return _0x8f5dc1(_0x5292b,_0x4ae6d4,_0x3f7c71,_0x30db7a,_0xaa342e,_0x448731,_0xcfec10,_0x27755e,_0x110fd3,_0x29aa21,_0x50f2e4,_0x56c76e);},'IbBfb':_0x21f521(0x134),'DeXHV':_0x21f521(0x278),'qSuYp':_0x21f521(0x13a),'LcOKO':_0x21f521(0x295),'xjTpK':function(_0x39b376,_0x356c85){return _0x39b376!==_0x356c85;},'kYIYP':'XVgkv','LANGV':function(_0x3ffb78,_0x337710){return _0x3ffb78===_0x337710;},'VMhMW':_0x21f521(0x24f),'lOBEw':'gMpSU','YRAgs':_0x21f521(0x1c0),'nYwGI':function(_0x3548a9,_0x3d75a5){return _0x3548a9!=_0x3d75a5;},'XhQGq':function(_0x5d6e29,_0x303c4e){return _0x5d6e29!==_0x303c4e;},'qdBMb':function(_0x35bb89,_0x224733){return _0x35bb89!=_0x224733;},'asAJI':function(_0x1b8899,_0xc5af74){return _0x1b8899!==_0xc5af74;},'HUNpf':function(_0x5bb625,_0x1b4dd5){return _0x5bb625>_0x1b4dd5;},'hMlvk':_0x21f521(0x2a2),'SruzF':function(_0x597263,_0x2253a6,_0x182ff4,_0x3c1e3c,_0x238c68,_0xf076dd,_0x369b0c,_0x2583b7){return _0x597263(_0x2253a6,_0x182ff4,_0x3c1e3c,_0x238c68,_0xf076dd,_0x369b0c,_0x2583b7);},'CCOCH':_0x21f521(0x18c),'dywRx':function(_0x1c7b7d,_0x1ccd33){return _0x1c7b7d===_0x1ccd33;},'JaGrr':_0x21f521(0x2a0),'sPzjo':_0x21f521(0x17d),'xvMci':function(_0x5b6a2f,_0x669db0){return _0x5b6a2f===_0x669db0;},'XIGqv':function(_0x2e1288,_0x396fcd,_0x1e9424,_0x5e9558,_0xfddc6e,_0x1c4fae,_0x216696,_0x5ef3e4){return _0x2e1288(_0x396fcd,_0x1e9424,_0x5e9558,_0xfddc6e,_0x1c4fae,_0x216696,_0x5ef3e4);},'FdKHS':_0x21f521(0x1bb),'mOgQf':_0x21f521(0x296),'lppTz':_0x21f521(0x2c4),'zFeIR':'Cluster\x20created\x20successfully','qGaZO':function(_0x1eadc3,_0x37892b){return _0x1eadc3===_0x37892b;},'OdYlb':function(_0x22a694,_0x5b08cd){return _0x22a694===_0x5b08cd;},'Wvsrj':function(_0x1b341d,_0x51caff){return _0x1b341d===_0x51caff;},'DYRtE':_0x21f521(0x189),'mcmJW':function(_0x1e0de2,_0x53361a,_0x1f1739){return _0x1e0de2(_0x53361a,_0x1f1739);},'GKTvR':function(_0x3e9a0c,_0x59dd05,_0x327cf7){return _0x3e9a0c(_0x59dd05,_0x327cf7);},'dFIuO':_0x21f521(0x2d8),'JosKA':_0x21f521(0x25a),'wUCvE':_0x21f521(0x1cd),'yfjPt':_0x21f521(0x249),'xExeS':_0x21f521(0x1ef),'msjrB':'utf-8','uoPMq':function(_0xe0789f,_0x54b9df){return _0xe0789f(_0x54b9df);},'rGYdO':function(_0x5ccf68,_0x36fe6d){return _0x5ccf68(_0x36fe6d);},'yKsHK':function(_0x270abb,_0x3dea58,_0x3f2ad1){return _0x270abb(_0x3dea58,_0x3f2ad1);},'Scxcy':_0x21f521(0x1d0),'rvBYp':_0x21f521(0x217),'iquMb':function(_0x356365,_0xcdb7cc){return _0x356365===_0xcdb7cc;},'uBkdW':function(_0x9c3d64,_0x2451d4){return _0x9c3d64===_0x2451d4;},'iQDea':'Adding\x20Redis\x20deployment...','SzJOZ':_0x21f521(0x1cf),'axMIw':_0x21f521(0x2bf),'fBiOH':_0x21f521(0x225),'tnkSw':'bitnami-kafka.yaml','RMivb':_0x21f521(0x198),'eCany':_0x21f521(0x2aa),'fLIoS':_0x21f521(0x235),'ChpAC':function(_0x4a7048,_0x41bdc8){return _0x4a7048===_0x41bdc8;},'HgYSJ':_0x21f521(0x204),'mIqNE':'Created\x20Hub\x20HA\x20resources','MUcVp':_0x21f521(0x2a8),'lJnyt':_0x21f521(0x2b1),'bmERo':_0x21f521(0x1c7),'fyihz':_0x21f521(0x2a1),'uaZDv':_0x21f521(0x258),'dBHMR':_0x21f521(0x2ca),'QCzZq':_0x21f521(0x120),'ROJCn':_0x21f521(0x244),'wIeNO':'Spawning\x20Grid\x20on\x20the\x20Cluster','wdkYY':function(_0x36aadf,_0xf036c1){return _0x36aadf===_0xf036c1;},'cKKoI':function(_0x2bfc7b,_0xf35e18,_0x1f267b,_0xd1ed58,_0xf8d290,_0x3571e2,_0x5e1cda,_0x1d331f,_0x3c812b,_0x246f95,_0x1a378f){return _0x2bfc7b(_0xf35e18,_0x1f267b,_0xd1ed58,_0xf8d290,_0x3571e2,_0x5e1cda,_0x1d331f,_0x3c812b,_0x246f95,_0x1a378f);},'giuhI':_0x21f521(0x128),'jqEQv':_0x21f521(0x1a0),'eRWXr':function(_0xbf42a8,_0x4b05be,_0x41ba5c,_0x5005f6,_0xaf2762){return _0xbf42a8(_0x4b05be,_0x41ba5c,_0x5005f6,_0xaf2762);},'kPLyL':function(_0x300cc4,_0x51f553,_0x527905){return _0x300cc4(_0x51f553,_0x527905);},'kQwpS':_0x21f521(0x1d7),'kFMhi':'ingress-nginx-controller','wCqPm':_0x21f521(0x24a),'vTffC':function(_0x1cb7e5,_0x154ae0,_0x2e2f1c){return _0x1cb7e5(_0x154ae0,_0x2e2f1c);},'FMOWZ':function(_0x557d01,_0x366009){return _0x557d01===_0x366009;},'sHaUU':_0x21f521(0x1ae),'tkaWC':'get-grid-url-null-response','GAOBD':function(_0x756e7a,_0xf1b973){return _0x756e7a===_0xf1b973;},'XImcH':_0x21f521(0x12d),'woBhn':function(_0x328515,_0x5927c9,_0x5ee0ca,_0x1b4d00,_0x38565a,_0x4e7d1e,_0x214afa,_0x31a9a6){return _0x328515(_0x5927c9,_0x5ee0ca,_0x1b4d00,_0x38565a,_0x4e7d1e,_0x214afa,_0x31a9a6);},'UJyUH':_0x21f521(0x192),'zqpZY':function(_0x5b2237,_0x2dfd30,_0x2cddfd,_0x5e5481,_0x16d0aa,_0x1bd8be,_0x2b08e2,_0x5444c9){return _0x5b2237(_0x2dfd30,_0x2cddfd,_0x5e5481,_0x16d0aa,_0x1bd8be,_0x2b08e2,_0x5444c9);},'MmPgo':'get-grid-url-non-200','bBgKw':function(_0x1ad394,_0x818958){return _0x1ad394===_0x818958;},'fBycJ':_0x21f521(0x15b),'arVgZ':function(_0x19e4f8,_0x126757,_0x19b0ae,_0x4c25c5,_0x4085ed,_0x39a028){return _0x19e4f8(_0x126757,_0x19b0ae,_0x4c25c5,_0x4085ed,_0x39a028);},'oWSpS':_0x21f521(0x2b0)};let _0x5b90e3=![],_0x46cb25=![],_0x70b9dc,_0x436194,_0x2d0e33,_0x1555c8,_0x58a0ae,_0x5b794f,_0x226cb8,_0xa3c060,_0x1bdf56,_0x2016f2,_0x587ed7,_0x42d2dd,_0x25d1cc,_0x3b4321,_0x762563=0x1,_0x170689=0xe;try{global_registry['requestId']=_0x3e334a[_0x21f521(0x155)](uuidv4),global_registry[_0x21f521(0x18d)]=![];if(!fs[_0x21f521(0x2c3)](_0x3e334a[_0x21f521(0x1e6)](getCredentialsPath))){if(_0x3e334a[_0x21f521(0x12b)](_0x3e334a[_0x21f521(0x1ff)],_0x3e334a[_0x21f521(0x1fc)]))console[_0x21f521(0x1b4)](_0x3e334a[_0x21f521(0x1c9)]),await _0x3e334a[_0x21f521(0x28b)](sendInstrumentationEvent,_0x157b73,_0x3e334a[_0x21f521(0x201)],messageTypes[_0x21f521(0x193)],_0x3e334a[_0x21f521(0x188)],null,_0x157b73),process[_0x21f521(0x2c2)](0x1);else{const _0x24196b=_0x3e334a[_0x21f521(0x2cf)][_0x21f521(0x1b2)]('|');let _0x14d9ed=0x0;while(!![]){switch(_0x24196b[_0x14d9ed++]){case'0':_0x49f7c8[_0x21f521(0x260)](_0x3e334a[_0x21f521(0x1df)]);continue;case'1':_0x203d63[_0x21f521(0x159)]=_0x3e334a[_0x21f521(0x1d3)];continue;case'2':_0x37f8d0[_0x21f521(0x11e)]=_0x3e334a[_0x21f521(0x1a6)];continue;case'3':_0x3048c1[_0x21f521(0x245)]=!![];continue;case'4':_0x338882[_0x21f521(0x2b5)]=_0x3e334a[_0x21f521(0x2c8)];continue;}break;}}}await _0x3e334a[_0x21f521(0x1dd)](sendInstrumentationEvent,_0x157b73,_0x3e334a[_0x21f521(0x201)],messageTypes[_0x21f521(0x2a3)],null,null,_0x157b73);const _0x1566da=JSON[_0x21f521(0x25c)](fs[_0x21f521(0x1de)](_0x3e334a['NvgEZ'](getCredentialsPath)));global_registry[_0x21f521(0x1f0)]=_0x1566da['Browserstack']['username'],global_registry[_0x21f521(0x221)]=_0x1566da[_0x21f521(0x258)]['password'];const _0x51d456=WS_ENDPOINT[_0x21f521(0x2a9)](_0x3e334a[_0x21f521(0x20a)],_0x1566da[_0x21f521(0x258)]['username'])[_0x21f521(0x2a9)](_0x3e334a[_0x21f521(0x1ab)],_0x1566da[_0x21f521(0x258)][_0x21f521(0x148)]),_0x116107={};_0x116107[_0x21f521(0x169)]=ws,_0x116107['connectionTimeout']=0x36ee80,_0x42d2dd=new ReconnectingWebSocket(_0x51d456,[],_0x116107),logger['debug'](_0x3e334a['zObUe']),webSocketUtils[_0x21f521(0x1eb)](_0x42d2dd,_0x157b73[_0x21f521(0x146)],_0x157b73[_0x21f521(0x148)]);const _0x434b21=_0x157b73[_0x21f521(0x1ac)]||DEFAULT_GRID_NAME;if(_0x157b73[_0x21f521(0x2ae)]||_0x157b73[_0x21f521(0x23e)]||_0x157b73[_0x21f521(0x1da)]){if(_0x3e334a[_0x21f521(0x266)](_0x3e334a[_0x21f521(0x1c5)],_0x3e334a['wkVoh'])){!(_0x157b73[_0x21f521(0x2ae)]&&_0x157b73[_0x21f521(0x23e)]&&_0x157b73[_0x21f521(0x1da)])&&(_0x3e334a[_0x21f521(0x1a4)](_0x3e334a['pdoou'],_0x3e334a[_0x21f521(0x2d4)])?_0x525251[_0x21f521(0x27d)]=_0x5542de[_0x21f521(0x27d)]:(_0x70b9dc=_0x3e334a[_0x21f521(0x259)],await _0x3e334a[_0x21f521(0x173)](reportToGalactusAndSendToEDS,_0x157b73,_0x42d2dd,_0x70b9dc,messageTypes[_0x21f521(0x193)],_0x3e334a[_0x21f521(0x201)],_0x3e334a[_0x21f521(0x1f8)],_0x3e334a[_0x21f521(0x196)]),logger['error'](_0x70b9dc),process[_0x21f521(0x2c2)](0x1)));if(![AWS,AZURE,GCP][_0x21f521(0x181)](_0x157b73[_0x21f521(0x23e)][_0x21f521(0x1f1)]())){if(_0x3e334a[_0x21f521(0x2b3)](_0x3e334a[_0x21f521(0x1f3)],_0x3e334a[_0x21f521(0x1f3)]))throw new _0x324ab3(_0x21f521(0x145)+_0x527cbb+_0x21f521(0x289));else _0x70b9dc=_0x3e334a['HSLTK'],await _0x3e334a[_0x21f521(0x173)](reportToGalactusAndSendToEDS,_0x157b73,_0x42d2dd,_0x70b9dc,messageTypes[_0x21f521(0x193)],_0x3e334a[_0x21f521(0x201)],_0x3e334a['UfOXB'],_0x3e334a[_0x21f521(0x196)]),logger['error'](_0x70b9dc),process[_0x21f521(0x2c2)](0x1);}if(_0x157b73[_0x21f521(0x21d)]&&_0x3e334a[_0x21f521(0x1a4)](_0x157b73['privateGrid'][_0x21f521(0x1f1)](),_0x3e334a['mVuBT'])){if(_0x3e334a['fzONc'](_0x3e334a[_0x21f521(0x29c)],_0x3e334a[_0x21f521(0x29c)])){const _0x3b75ff={};_0x3b75ff['description']=_0x3e334a[_0x21f521(0x12e)],_0x3b75ff[_0x21f521(0x129)]=_0x3e334a[_0x21f521(0x247)];const _0x6ddda1={};_0x6ddda1['description']=_0x3e334a['hpmzq'],_0x6ddda1[_0x21f521(0x129)]=_0x3e334a[_0x21f521(0x247)];const _0x1933ea={};_0x1933ea[_0x21f521(0x19b)]=_0x3e334a[_0x21f521(0x157)],_0x1933ea[_0x21f521(0x129)]=_0x3e334a[_0x21f521(0x247)];const _0x27a720={};_0x27a720[_0x21f521(0x19b)]=_0x3e334a[_0x21f521(0x1e8)],_0x27a720[_0x21f521(0x129)]=_0x3e334a[_0x21f521(0x247)];const _0x137d12={};_0x137d12[_0x21f521(0x19b)]=_0x3e334a[_0x21f521(0x176)],_0x137d12[_0x21f521(0x129)]=_0x3e334a[_0x21f521(0x247)];const _0x4a6d84={};_0x4a6d84['description']=_0x3e334a['WqOHb'],_0x4a6d84['type']=_0x3e334a[_0x21f521(0x247)];const _0x18901b={};_0x18901b[_0x21f521(0x19b)]=_0x3e334a['HiJLP'],_0x18901b[_0x21f521(0x129)]=_0x3e334a[_0x21f521(0x20f)],_0x18901b['default']=![];const _0x3a4444={};_0x3a4444[_0x21f521(0x19b)]=_0x3e334a[_0x21f521(0x182)],_0x3a4444['type']=_0x3e334a[_0x21f521(0x20f)],_0x3a4444[_0x21f521(0x1e2)]=![];const _0x16e4ab={};_0x16e4ab[_0x21f521(0x19b)]=_0x3e334a[_0x21f521(0x257)],_0x16e4ab[_0x21f521(0x129)]=_0x3e334a[_0x21f521(0x20f)],_0x16e4ab[_0x21f521(0x1e2)]=![];const _0xbb13f5={};return _0xbb13f5[_0x21f521(0x276)]=_0x3b75ff,_0xbb13f5[_0x21f521(0x11c)]=_0x6ddda1,_0xbb13f5[_0x21f521(0x190)]=_0x1933ea,_0xbb13f5[_0x21f521(0x14f)]=_0x27a720,_0xbb13f5['region']=_0x137d12,_0xbb13f5['private-grid']=_0x4a6d84,_0xbb13f5['skip-tls-cert-verify']=_0x18901b,_0xbb13f5[_0x21f521(0x27f)]=_0x3a4444,_0xbb13f5['cluster-autoupgrade']=_0x16e4ab,_0x346cef[_0x21f521(0x277)](_0x1736cd[_0x21f521(0x226)])[_0x21f521(0x1ea)](_0xe18866)[_0x21f521(0x1af)](_0xbb13f5)[_0x21f521(0x28f)](_0x3e334a['wahzO'])[_0x21f521(0x231)];}else global_registry[_0x21f521(0x18d)]=!![];}global_registry[_0x21f521(0x23e)]=_0x157b73[_0x21f521(0x23e)],global_registry['clusterRegion']=_0x157b73[_0x21f521(0x1da)],global_registry[_0x21f521(0x2ae)]=_0x157b73[_0x21f521(0x2ae)];const _0x49859c=await _0x3e334a[_0x21f521(0x236)](getCloudProviderObject,_0x157b73['cloudProvider'],_0x157b73[_0x21f521(0x2ae)],_0x434b21,_0x42d2dd,webSocketUtils,_0x157b73),_0x799446=await _0x49859c[_0x21f521(0x212)]();!_0x799446?_0x3e334a[_0x21f521(0x206)](_0x3e334a[_0x21f521(0x29b)],_0x3e334a[_0x21f521(0x29b)])?_0x538ca3[_0x21f521(0x1ee)]():(logger[_0x21f521(0x260)]('Cluster:\x20'+_0x157b73[_0x21f521(0x2ae)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x5b90e3=![],_0x46cb25=!![]):_0x3e334a[_0x21f521(0x282)](_0x3e334a[_0x21f521(0x229)],_0x3e334a['WQyxn'])?_0x1800ba[_0x21f521(0x18d)]=!![]:_0x5b90e3=!![],_0x2d0e33=_0x157b73[_0x21f521(0x2ae)],_0x436194=_0x157b73[_0x21f521(0x23e)]['toLowerCase'](),_0x1555c8=_0x157b73['region'];}else _0x8736fe=null;}else _0x157b73['gridProfile']&&(_0x3e334a['DbdNL'](_0x3e334a[_0x21f521(0x208)],_0x3e334a[_0x21f521(0x208)])?global_registry[_0x21f521(0x27d)]=_0x157b73[_0x21f521(0x27d)]:_0x239983[_0x21f521(0x260)](_0x21f521(0x252)+_0x539272+'\x20'));global_registry[_0x21f521(0x1ac)]=_0x157b73[_0x21f521(0x1ac)];const _0x14e620={'method':_0x3e334a[_0x21f521(0x21b)],'headers':_0x3e334a[_0x21f521(0x2b8)](getAuthHeader,_0x1566da['Browserstack'][_0x21f521(0x200)],_0x1566da['Browserstack']['password']),'throwHttpErrors':![]},_0x256391={};_0x256391[_0x21f521(0x1ac)]=_0x434b21;const _0x8239bc=_0x256391;if(_0x46cb25){if(_0x3e334a[_0x21f521(0x153)](_0x3e334a['yehPt'],_0x3e334a[_0x21f521(0x14b)]))_0x8239bc[_0x21f521(0x1da)]=_0x1555c8,_0x8239bc[_0x21f521(0x23e)]=_0x436194,_0x8239bc[_0x21f521(0x255)]=!![],_0x8239bc['clusterAutoUpgrade']=_0x157b73[_0x21f521(0x186)];else{const _0xa32b13={};_0xa32b13['type']=_0x573abf[_0x21f521(0x2a6)],_0xa32b13[_0x21f521(0x1e7)]=_0x1d1f73,_0x425112[_0x21f521(0x127)](_0x5b198b,_0xa32b13,_0x3e334a[_0x21f521(0x196)],!![]);}}if(_0x157b73[_0x21f521(0x186)]){if(_0x3e334a[_0x21f521(0x147)](_0x3e334a[_0x21f521(0x292)],_0x3e334a[_0x21f521(0x233)]))logger[_0x21f521(0x260)](_0x3e334a[_0x21f521(0x13e)]);else{const _0xb2df9e=_0x3e334a[_0x21f521(0x184)][_0x21f521(0x1b2)]('|');let _0x5f0e10=0x0;while(!![]){switch(_0xb2df9e[_0x5f0e10++]){case'0':_0x439b33=_0x1a423e[_0x21f521(0x293)];continue;case'1':_0x50decc=_0x2b0a1b[_0x21f521(0x17a)];continue;case'2':_0x462217=_0x4f867c['concurrency'];continue;case'3':_0x3e334a[_0x21f521(0x227)](_0x2ccb96,_0x357c21,_0x43b2b7,_0x1f775f,_0x2a26b8,_0x146f53,_0xdc91cf,_0x17ed42,_0x3e00f3,_0x21fd48,_0x5ae12f,_0x51e97d,_0x4f9496[_0x21f521(0x186)]);continue;case'4':_0x1bcf89=_0x5b8c92[_0x21f521(0x297)];continue;case'5':_0x3e334a['CaVxI'](_0x1ba236[_0x21f521(0x21d)],_0x57c024)&&_0x4a98ad[_0x21f521(0x21d)]&&(_0x2f2f94[_0x21f521(0x18d)]=!![]);continue;case'6':_0x444b1d=_0x21f521(0x16d)+_0x17c9d5;continue;case'7':const _0x52385d={};_0x52385d[_0x21f521(0x129)]=_0x569862[_0x21f521(0x2a6)],_0x52385d[_0x21f521(0x1e7)]=_0x55a38a,_0x1d418e[_0x21f521(0x127)](_0x125087,_0x52385d);continue;case'8':_0xf3705e[_0x21f521(0x260)](_0x46ef04);continue;case'9':_0x5a0f0f=null;continue;case'10':_0x22dd78=null;continue;case'11':_0x5444f0=_0x1b65ad[_0x21f521(0x13d)];continue;case'12':_0x4afaa3=_0x2884e4['s3bucket'];continue;case'13':_0xa9e2dd=_0x50fc68['instanceType'];continue;case'14':_0x20dde3=null;continue;case'15':_0xc8e5ec[_0x21f521(0x245)]&&_0x3e334a[_0x21f521(0x172)](_0x4eef41,_0x10e7d1[_0x21f521(0x195)]);continue;}break;}}}const _0x456914=_0x21f521(0x162)+AG_API_URL+_0x21f521(0x1bc),_0x3c00b0={'searchParams':_0x8239bc,'throwHttpErrors':![],..._0x14e620},_0x45cc29=_0x3c00b0,_0x520050=await _0x3e334a['ArTWa'](got,_0x456914,_0x45cc29);if(_0x3e334a[_0x21f521(0x12a)](_0x520050,null)||_0x3e334a[_0x21f521(0x131)](_0x520050,undefined)){if(_0x3e334a['eXymG'](_0x3e334a[_0x21f521(0x2cc)],_0x3e334a[_0x21f521(0x165)])){const _0x35510c={};_0x35510c[_0x21f521(0x129)]=_0x5324ca[_0x21f521(0x2a6)],_0x35510c[_0x21f521(0x1e7)]=_0x21f521(0x145)+_0x45431a+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x55380a[_0x21f521(0x127)](_0x14631a,_0x35510c,_0x3e334a['ugPFq']),_0x3cf5cb[_0x21f521(0x260)](_0x21f521(0x145)+_0xb68447+_0x21f521(0x22c)),_0x48ac87=!![];if(_0x3e334a['DbdNL'](_0x21cbbd,!![]))throw new _0x4912f8(_0x21f521(0x145)+_0x5ab80b+_0x21f521(0x289));}else _0x70b9dc=_0x3e334a['dqKVp'],await _0x3e334a[_0x21f521(0x1f7)](reportToGalactusAndSendToEDS,_0x157b73,_0x42d2dd,_0x70b9dc,messageTypes[_0x21f521(0x193)],_0x3e334a[_0x21f521(0x201)],_0x3e334a[_0x21f521(0x202)],_0x3e334a[_0x21f521(0x196)]),logger[_0x21f521(0x1b4)](_0x70b9dc),process[_0x21f521(0x2c2)](0x1);}if(_0x3e334a['WWzrc'](_0x520050[_0x21f521(0x14d)],0x191)){if(_0x3e334a[_0x21f521(0x2ac)](_0x3e334a[_0x21f521(0x218)],_0x3e334a['RZlxi'])){const _0x1f1411=_0x3e334a[_0x21f521(0x2c6)][_0x21f521(0x1b2)]('|');let _0x79f1=0x0;while(!![]){switch(_0x1f1411[_0x79f1++]){case'0':_0x1a151a[_0x21f521(0x293)]=_0x3bfd80['hubVersion'];continue;case'1':_0x500522[_0x21f521(0x17a)]=_0x1ba7ec['browserVersion'];continue;case'2':_0x3231f1['clusterName']=_0xad8527;continue;case'3':_0x5ab257['clusterRegion']=_0x2310a3;continue;case'4':_0x55623c[_0x21f521(0x23e)]=_0x3633c5;continue;case'5':_0x41d187='Spawning\x20the\x20grid\x20'+_0x1969a7+_0x21f521(0x26c)+_0x464913+'\x27';continue;case'6':const _0x30e2e1={};_0x30e2e1[_0x21f521(0x129)]=_0x5bf81b[_0x21f521(0x1a3)],_0x30e2e1[_0x21f521(0x1e7)]=_0x3e334a[_0x21f521(0x17b)],_0x4a574c[_0x21f521(0x127)](_0x4c1917,_0x30e2e1);continue;case'7':const _0x5d2eea={};_0x5d2eea[_0x21f521(0x129)]=_0x43619d[_0x21f521(0x2a6)],_0x5d2eea[_0x21f521(0x1e7)]=_0x4e0976,_0x2d4671['sendEventToBackend'](_0x582442,_0x5d2eea);continue;case'8':_0x1e7d2f['info'](_0x4ecaa5);continue;}break;}}else _0x70b9dc=_0x3e334a[_0x21f521(0x222)],await _0x3e334a['MESiy'](reportToGalactusAndSendToEDS,_0x157b73,_0x42d2dd,_0x70b9dc,messageTypes[_0x21f521(0x193)],_0x3e334a[_0x21f521(0x201)],_0x3e334a[_0x21f521(0x28e)],_0x3e334a[_0x21f521(0x196)]),logger['error'](_0x70b9dc),process[_0x21f521(0x2c2)](0x1);}_0x3e334a['BbABL'](_0x520050[_0x21f521(0x14d)],0xc8)&&(_0x3e334a[_0x21f521(0x147)](_0x3e334a[_0x21f521(0x1f6)],_0x3e334a[_0x21f521(0x1a7)])?(_0x70b9dc=_0x21f521(0x1a9)+JSON['stringify'](_0x520050[_0x21f521(0x16e)]),await _0x3e334a['hLABN'](reportToGalactusAndSendToEDS,_0x157b73,_0x42d2dd,_0x70b9dc,messageTypes[_0x21f521(0x193)],_0x3e334a[_0x21f521(0x201)],_0x3e334a[_0x21f521(0x28d)],_0x3e334a[_0x21f521(0x196)]),logger[_0x21f521(0x1b4)](_0x70b9dc),process[_0x21f521(0x2c2)](0x1)):(_0x48cc16=_0x1f08ab[_0x21f521(0x2bb)],_0x3229c7=_0x3e334a['QeIQH']));const _0x3f77af=JSON[_0x21f521(0x25c)](_0x520050[_0x21f521(0x16e)]),_0x31b4b4={};_0x31b4b4[_0x21f521(0x129)]=WS_EVENTS[_0x21f521(0x1a3)],_0x31b4b4[_0x21f521(0x1e7)]=_0x3e334a[_0x21f521(0x17b)],webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x31b4b4);const _0x518081={};_0x518081[_0x21f521(0x129)]=WS_EVENTS[_0x21f521(0x2a6)],_0x518081[_0x21f521(0x1e7)]=_0x3e334a[_0x21f521(0x25e)],webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x518081);_0x3f77af['alreadyPresent']&&(_0x3e334a[_0x21f521(0x20e)](_0x3e334a[_0x21f521(0x216)],_0x3e334a[_0x21f521(0x216)])?(_0x70b9dc=_0x21f521(0x21c)+_0x434b21+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x3e334a[_0x21f521(0x180)](reportToGalactusAndSendToEDS,_0x157b73,_0x42d2dd,_0x70b9dc,messageTypes['ERROR'],_0x3e334a[_0x21f521(0x201)],_0x3e334a['givGq'],_0x3e334a[_0x21f521(0x196)]),logger[_0x21f521(0x1b4)](_0x70b9dc),process[_0x21f521(0x2c2)](0x1)):_0x63340e=_0x3e334a[_0x21f521(0x232)]);const _0x30c4db=_0x3f77af['gridProfiles'];let _0x316ff0=_0x30c4db[_0x3f77af[_0x21f521(0x207)]];_0x157b73[_0x21f521(0x27d)]&&(_0x3e334a[_0x21f521(0x239)](_0x3e334a[_0x21f521(0x1e1)],_0x3e334a['bpDdx'])?_0x316ff0=_0x30c4db[_0x157b73[_0x21f521(0x27d)]]:(_0x50261f[_0x21f521(0x1da)]=_0x1af485,_0x4f92c7[_0x21f521(0x23e)]=_0x7105b9,_0x31da6f[_0x21f521(0x255)]=!![],_0x552f45[_0x21f521(0x19f)]=_0x96f74[_0x21f521(0x186)]));global_registry[_0x21f521(0x245)]=![];if(_0x157b73[_0x21f521(0x28a)]){if(_0x3e334a[_0x21f521(0x1db)](_0x3e334a[_0x21f521(0x290)],_0x3e334a['wUlaz'])){const _0x1b686c=_0x3e334a['arqlo'][_0x21f521(0x1b2)]('|');let _0x398146=0x0;while(!![]){switch(_0x1b686c[_0x398146++]){case'0':global_registry[_0x21f521(0x245)]=!![];continue;case'1':logger['info'](_0x3e334a['UzWZu']);continue;case'2':global_registry['redisPassword']=_0x3e334a[_0x21f521(0x2c8)];continue;case'3':global_registry[_0x21f521(0x159)]=_0x3e334a[_0x21f521(0x1d3)];continue;case'4':global_registry[_0x21f521(0x11e)]=_0x3e334a[_0x21f521(0x1a6)];continue;}break;}}else _0x3e334a['IYhXD'](_0xd5da1b,_0x3eace6[_0x21f521(0x125)]);}if(_0x3e334a[_0x21f521(0x268)](_0x5b90e3,![])&&_0x3e334a['fmWtq'](_0x46cb25,![])){if(_0x3e334a[_0x21f521(0x2d7)](_0x3e334a['kHUMc'],_0x3e334a['zISUM']))_0x2c88c1[_0x21f521(0x1b4)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x26ef4b+'\x20\x0a'+_0x3c3fa7[_0x21f521(0x22f)](_0x5056c3[_0x21f521(0x23c)]));else{_0x3e334a['ntabs'](_0x316ff0,undefined)&&(_0x3e334a[_0x21f521(0x283)](_0x3e334a[_0x21f521(0x1ce)],_0x3e334a[_0x21f521(0x251)])?(_0x70b9dc=_0x3e334a['Jjssb'],await _0x3e334a['mjqqo'](reportToGalactusAndSendToEDS,_0x157b73,_0x42d2dd,_0x70b9dc,messageTypes[_0x21f521(0x193)],_0x3e334a[_0x21f521(0x201)],_0x3e334a[_0x21f521(0x1f5)],_0x3e334a['vGmSu']),logger['error'](_0x70b9dc),process[_0x21f521(0x2c2)](0x1)):_0x1fa365[_0x21f521(0x18d)]=!![]);global_registry[_0x21f521(0x250)]=_0x316ff0['id'],_0x70b9dc=_0x21f521(0x1c4)+_0x434b21+_0x21f521(0x1bd)+_0x316ff0[_0x21f521(0x135)]+'\x27\x20grid\x20profile',logger['info'](_0x70b9dc);const _0x39248e={};_0x39248e['type']=WS_EVENTS[_0x21f521(0x2a6)],_0x39248e[_0x21f521(0x1e7)]=_0x70b9dc,webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x39248e),_0x436194=_0x316ff0['cloudProvider'],_0x2d0e33=_0x316ff0[_0x21f521(0x2ae)],_0x1555c8=_0x316ff0[_0x21f521(0x1da)],_0x58a0ae=_0x316ff0[_0x21f521(0x2ba)],_0x5b794f=_0x316ff0[_0x21f521(0x1d2)],_0x226cb8=_0x316ff0[_0x21f521(0x23a)],_0xa3c060=_0x316ff0['securityGroups'],_0x1bdf56=_0x316ff0[_0x21f521(0x2d9)],_0x2016f2=_0x316ff0[_0x21f521(0x23d)],_0x762563=_0x316ff0['minNodes'],_0x170689=_0x316ff0[_0x21f521(0x297)],_0x25d1cc=_0x3f77af[_0x21f521(0x293)],_0x3b4321=_0x3f77af[_0x21f521(0x17a)],_0x226cb8&&_0x3e334a['rNACK'](_0x226cb8[_0x21f521(0x23f)],0x0)&&(_0x3e334a[_0x21f521(0x160)](_0x3e334a[_0x21f521(0x1d1)],_0x3e334a[_0x21f521(0x2b9)])?_0x3cd374[_0x21f521(0x260)]('Found\x20Subnets:\x20'+_0x59ac34[_0x21f521(0x22f)](_0x9b3be7)+'\x20'):_0x226cb8=null),_0x1bdf56&&_0x3e334a[_0x21f521(0x20e)](_0x1bdf56[_0x21f521(0x23f)],0x0)&&(_0x3e334a[_0x21f521(0x1db)](_0x3e334a[_0x21f521(0x230)],_0x3e334a[_0x21f521(0x230)])?_0x5245d6=_0x3e334a[_0x21f521(0x22d)]:_0x1bdf56=null),_0x3e334a['BbABL'](_0x316ff0['privateGrid'],undefined)&&_0x316ff0[_0x21f521(0x21d)]&&(_0x3e334a[_0x21f521(0x1ed)](_0x3e334a[_0x21f521(0x2b7)],_0x3e334a[_0x21f521(0x1ad)])?global_registry[_0x21f521(0x18d)]=!![]:_0x577e5a=!![]),_0x3e334a['fXRJj'](updateGlobalRegistryWithConfig,_0x436194,_0x2d0e33,_0x1555c8,_0x58a0ae,_0x5b794f,_0x2016f2,_0x316ff0,_0x25d1cc,_0x3b4321,_0x762563,_0x170689,_0x157b73[_0x21f521(0x186)]),global_registry[_0x21f521(0x245)]&&(_0x3e334a[_0x21f521(0x1fa)](_0x3e334a[_0x21f521(0x12f)],_0x3e334a[_0x21f521(0x12f)])?_0x3e334a[_0x21f521(0x172)](updateGlobalRegistryForHubHa,_0x3f77af[_0x21f521(0x125)]):_0x4a52b8[_0x21f521(0x260)](_0x3e334a['AJRoq']));}}else{if(_0x3e334a[_0x21f521(0x1a4)](_0x46cb25,!![])){if(_0x3e334a[_0x21f521(0x17e)](_0x3e334a[_0x21f521(0x18e)],_0x3e334a[_0x21f521(0x18e)]))_0x1d4fe1=_0x9d60dd[_0x43d9fe[_0x21f521(0x27d)]];else{_0x70b9dc=_0x21f521(0x16d)+_0x434b21,logger[_0x21f521(0x260)](_0x70b9dc);const _0x3a5f99={};_0x3a5f99[_0x21f521(0x129)]=WS_EVENTS[_0x21f521(0x2a6)],_0x3a5f99[_0x21f521(0x1e7)]=_0x70b9dc,webSocketUtils['sendEventToBackend'](_0x42d2dd,_0x3a5f99),_0x58a0ae=_0x316ff0['concurrency'],_0x5b794f=_0x316ff0[_0x21f521(0x1d2)],_0x226cb8=null,_0xa3c060=null,_0x1bdf56=null,_0x2016f2=_0x316ff0['s3bucket'],_0x762563=_0x316ff0['minNodes'],_0x170689=_0x316ff0['maxNodes'],_0x25d1cc=_0x3f77af[_0x21f521(0x293)],_0x3b4321=_0x3f77af['browserVersion'];_0x3e334a['BbABL'](_0x316ff0['privateGrid'],undefined)&&_0x316ff0[_0x21f521(0x21d)]&&(_0x3e334a[_0x21f521(0x17e)](_0x3e334a[_0x21f521(0x164)],_0x3e334a[_0x21f521(0x1cb)])?global_registry['isPrivateGrid']=!![]:_0x3e334a[_0x21f521(0x299)](_0x3a1f62,_0x504ef4[_0x21f521(0x195)]));_0x3e334a[_0x21f521(0x163)](updateGlobalRegistryWithConfig,_0x436194,_0x2d0e33,_0x1555c8,_0x58a0ae,_0x5b794f,_0x2016f2,_0x316ff0,_0x25d1cc,_0x3b4321,_0x762563,_0x170689,_0x157b73['clusterAutoupgrade']);if(global_registry[_0x21f521(0x245)]){if(_0x3e334a[_0x21f521(0x1ed)](_0x3e334a[_0x21f521(0x185)],_0x3e334a[_0x21f521(0x185)])){const _0x1151cd={'azure.workload.identity/use':_0x3e334a[_0x21f521(0x223)],..._0x1bfa6c[0x0][_0x21f521(0x243)]['template']['metadata'][_0x21f521(0x177)]};_0x1ff71d[0x0]['spec'][_0x21f521(0x121)]['metadata'][_0x21f521(0x177)]=_0x1151cd,_0x58283e[0x0][_0x21f521(0x243)][_0x21f521(0x121)][_0x21f521(0x243)][_0x21f521(0x1a2)]=_0x3e334a['jbJsJ'];}else _0x3e334a[_0x21f521(0x299)](updateGlobalRegistryForHubHa,_0x3f77af[_0x21f521(0x195)]);}}}else{if(_0x3e334a[_0x21f521(0x12b)](_0x3e334a[_0x21f521(0x151)],_0x3e334a[_0x21f521(0x279)])){const _0x2fe42f=_0x3e334a[_0x21f521(0x238)][_0x21f521(0x1b2)]('|');let _0xe6a8b0=0x0;while(!![]){switch(_0x2fe42f[_0xe6a8b0++]){case'0':global_registry['clusterName']=_0x2d0e33;continue;case'1':const _0x2825dc={};_0x2825dc[_0x21f521(0x129)]=WS_EVENTS[_0x21f521(0x1a3)],_0x2825dc[_0x21f521(0x1e7)]=_0x3e334a[_0x21f521(0x17b)],webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x2825dc);continue;case'2':global_registry[_0x21f521(0x17a)]=_0x3f77af['browserVersion'];continue;case'3':global_registry[_0x21f521(0x293)]=_0x3f77af[_0x21f521(0x293)];continue;case'4':_0x70b9dc='Spawning\x20the\x20grid\x20'+_0x434b21+'\x20in\x20existing\x20cluster\x20\x27'+_0x2d0e33+'\x27';continue;case'5':logger[_0x21f521(0x260)](_0x70b9dc);continue;case'6':const _0x244b90={};_0x244b90['type']=WS_EVENTS['LOG'],_0x244b90[_0x21f521(0x1e7)]=_0x70b9dc,webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x244b90);continue;case'7':global_registry[_0x21f521(0x166)]=_0x1555c8;continue;case'8':global_registry[_0x21f521(0x23e)]=_0x436194;continue;}break;}}else _0x11c40e['info'](_0x21f521(0x16b)+_0x207707[_0x21f521(0x2ae)]+_0x21f521(0x1dc)),_0x33d62c=![],_0x97e209=!![];}}const _0x102899=await _0x3e334a[_0x21f521(0x28b)](getCloudProviderObject,_0x436194,_0x2d0e33,_0x434b21,_0x42d2dd,webSocketUtils,_0x157b73);_0x3e334a[_0x21f521(0x19c)](_0x436194,AZURE)&&(_0x3e334a[_0x21f521(0x1ed)](_0x3e334a['kYIYP'],_0x3e334a[_0x21f521(0x1aa)])?_0xb92420['isPrivateGrid']=!![]:_0x102899['sendResourceDataToHST']());let _0x531899;if(_0x3e334a[_0x21f521(0x158)](_0x5b90e3,![])){_0x70b9dc='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x1555c8+').';const _0xfd2c18={};_0xfd2c18['type']=WS_EVENTS[_0x21f521(0x2a6)],_0xfd2c18[_0x21f521(0x1e7)]=_0x70b9dc,webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0xfd2c18),logger['info'](_0x70b9dc);const _0x587810=await _0x102899[_0x21f521(0x212)]();if(_0x587810){if(_0x3e334a[_0x21f521(0x17c)](_0x3e334a[_0x21f521(0x1a8)],_0x3e334a[_0x21f521(0x1a8)])){const _0x429b1f={};_0x429b1f[_0x21f521(0x129)]=WS_EVENTS[_0x21f521(0x2a6)],_0x429b1f[_0x21f521(0x1e7)]=_0x21f521(0x145)+_0x2d0e33+_0x21f521(0x22c),webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x429b1f,_0x3e334a[_0x21f521(0x2af)]),logger[_0x21f521(0x260)](_0x21f521(0x145)+_0x2d0e33+_0x21f521(0x22c)),_0x5b90e3=!![];if(_0x3e334a[_0x21f521(0x160)](_0x46cb25,!![])){if(_0x3e334a['jetLG'](_0x3e334a[_0x21f521(0x1d5)],_0x3e334a[_0x21f521(0x1d5)]))throw new Error(_0x21f521(0x145)+_0x2d0e33+_0x21f521(0x289));else _0x41ce21=null;}}else _0x18f7e1=_0x3e334a[_0x21f521(0x178)];}else{const _0x4815b0={};_0x4815b0[_0x21f521(0x129)]=WS_EVENTS[_0x21f521(0x2a6)],_0x4815b0[_0x21f521(0x1e7)]=_0x3e334a[_0x21f521(0x219)],webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x4815b0),logger[_0x21f521(0x260)](_0x3e334a[_0x21f521(0x219)]);const _0x4cc72a=_0x3e334a[_0x21f521(0x1bf)](_0x226cb8,null)&&_0x3e334a['XhQGq'](_0x226cb8,undefined),_0x2622f0=_0x3e334a[_0x21f521(0x16a)](_0x1bdf56,null)&&_0x3e334a['asAJI'](_0x1bdf56,undefined)&&_0x3e334a[_0x21f521(0x211)](_0x1bdf56[_0x21f521(0x23f)],0x0);if(_0x4cc72a){_0x3e334a[_0x21f521(0x160)](_0x2622f0,![])&&(_0x70b9dc=_0x3e334a['hMlvk'],await _0x3e334a[_0x21f521(0x1ca)](reportToGalactusAndSendToEDS,_0x157b73,_0x42d2dd,_0x70b9dc,messageTypes[_0x21f521(0x193)],_0x3e334a[_0x21f521(0x201)],_0x3e334a[_0x21f521(0x2bc)],_0x3e334a[_0x21f521(0x196)]),logger[_0x21f521(0x1b4)](_0x70b9dc),process[_0x21f521(0x2c2)](0x1));const _0x20ce35=await _0x102899[_0x21f521(0x140)](_0x226cb8);_0x3e334a['dywRx'](_0x20ce35,![])?(_0x70b9dc=_0x3e334a['JaGrr'],await _0x3e334a['mjqqo'](reportToGalactusAndSendToEDS,_0x157b73,_0x42d2dd,_0x70b9dc,messageTypes[_0x21f521(0x193)],_0x3e334a[_0x21f521(0x201)],_0x3e334a[_0x21f521(0x22e)],_0x3e334a[_0x21f521(0x196)]),logger[_0x21f521(0x1b4)](_0x70b9dc),process[_0x21f521(0x2c2)](0x1)):logger['info']('Found\x20VPC:\x20'+_0x226cb8+'\x20');const _0x416c87=await _0x102899[_0x21f521(0x24e)](_0x1bdf56,_0x226cb8);_0x3e334a[_0x21f521(0x139)](_0x416c87[0x0],![])?(_0x70b9dc=_0x21f521(0x210)+JSON[_0x21f521(0x22f)](_0x416c87[0x1])+_0x21f521(0x154)+_0x226cb8+_0x21f521(0x2a5),await _0x3e334a['XIGqv'](reportToGalactusAndSendToEDS,_0x157b73,_0x42d2dd,_0x70b9dc,messageTypes[_0x21f521(0x193)],_0x3e334a[_0x21f521(0x201)],_0x3e334a['FdKHS'],_0x3e334a[_0x21f521(0x196)]),logger[_0x21f521(0x1b4)](_0x70b9dc),process[_0x21f521(0x2c2)](0x1)):logger[_0x21f521(0x260)](_0x21f521(0x1e3)+JSON[_0x21f521(0x22f)](_0x1bdf56)+'\x20'),[_0x226cb8,_0x1bdf56]=await _0x102899[_0x21f521(0x25b)](_0x226cb8,_0x1bdf56);}else{const _0x21589e=_0x3e334a[_0x21f521(0x27e)][_0x21f521(0x1b2)]('|');let _0x292745=0x0;while(!![]){switch(_0x21589e[_0x292745++]){case'0':const _0x2c6a25={};_0x2c6a25['type']=WS_EVENTS[_0x21f521(0x2a6)],_0x2c6a25[_0x21f521(0x1e7)]=_0x3e334a['lppTz'],webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x2c6a25);continue;case'1':const _0x430f2a={};_0x430f2a[_0x21f521(0x129)]=WS_EVENTS[_0x21f521(0x2a6)],_0x430f2a[_0x21f521(0x1e7)]=_0x3e334a[_0x21f521(0x2ad)],webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x430f2a);continue;case'2':[_0x226cb8,_0x1bdf56]=await _0x102899['setupNewCluster'](_0x226cb8,_0x1bdf56);continue;case'3':logger['info'](_0x3e334a[_0x21f521(0x27a)]);continue;case'4':logger['info'](_0x3e334a[_0x21f521(0x2ad)]);continue;}break;}}}}_0x5b90e3&&_0x3e334a['qGaZO'](_0x436194,AZURE)&&(await _0x102899['updateClusterAlreadyPresent'](),await _0x102899['createOtherResources']());const [_0x5aa565,_0x2c6bac,_0x577b65,_0x345c40,_0x242245,_0x2055b1,_0x323bb]=await _0x3e334a['ArTWa'](createK8sClient,_0x102899,_0x157b73[_0x21f521(0x14c)]);_0x3e334a['xvMci'](_0x5b90e3,![])&&_0x3e334a['OdYlb'](_0x436194,AWS)&&(global_registry[_0x21f521(0x26b)]=!![],_0x531899=await _0x102899['setupAutoscaler'](_0x5aa565,_0x157b73));if(_0x3e334a[_0x21f521(0x18f)](_0x5b90e3,![])&&global_registry[_0x21f521(0x245)])try{await _0x102899['setupHubHa'](_0x2055b1,_0x323bb,_0x157b73,_0x226cb8,_0x1bdf56);const _0x4f7a96={};_0x4f7a96[_0x21f521(0x129)]=WS_EVENTS[_0x21f521(0x2a6)],_0x4f7a96['message']=_0x3e334a[_0x21f521(0x263)],webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x4f7a96);!await _0x3e334a['mcmJW'](namespaceExists,_0x5aa565,global_registry[_0x21f521(0x159)])&&await _0x3e334a[_0x21f521(0x1a5)](createNamespace,_0x5aa565,global_registry[_0x21f521(0x159)]);logger[_0x21f521(0x260)](_0x3e334a['dFIuO']);let _0x2317e4=await fs['readFileAsync'](path[_0x21f521(0x27b)](__dirname,_0x3e334a[_0x21f521(0x15a)],_0x3e334a[_0x21f521(0x1fe)],_0x3e334a[_0x21f521(0x1b8)],_0x3e334a[_0x21f521(0x1b5)]),_0x3e334a[_0x21f521(0x1be)]);_0x2317e4=_0x2317e4[_0x21f521(0x2a9)](/<RedisClientPassword>/g,_0x3e334a[_0x21f521(0x299)](encodeBase64,global_registry[_0x21f521(0x2b5)])),_0x2317e4=_0x2317e4['replace'](/<KafkaClientPassword>/g,_0x3e334a[_0x21f521(0x172)](encodeBase64,global_registry[_0x21f521(0x11e)])),_0x2317e4=_0x2317e4['replace'](/<BstackUsername>/g,_0x3e334a[_0x21f521(0x130)](encodeBase64,global_registry[_0x21f521(0x1f0)])),_0x2317e4=_0x2317e4['replace'](/<BstackAccessKey>/g,_0x3e334a[_0x21f521(0x29f)](encodeBase64,global_registry['bstackAccesskey']));const _0x8eeb92=yaml['loadAll'](_0x2317e4);await _0x3e334a[_0x21f521(0x2d6)](kubeApply,_0x8eeb92,_0x323bb),logger[_0x21f521(0x260)](_0x3e334a['Scxcy']);let _0x1720c7=_0x3e334a[_0x21f521(0x256)];if(_0x3e334a[_0x21f521(0x1b7)](_0x436194,AZURE))_0x1720c7=_0x3e334a[_0x21f521(0x22d)];else _0x3e334a[_0x21f521(0x1c8)](_0x436194,GCP)&&(_0x1720c7=_0x3e334a['axEDX']);logger[_0x21f521(0x260)](_0x3e334a['iQDea']);let _0x85b07f=await fs[_0x21f521(0x29a)](path[_0x21f521(0x27b)](__dirname,_0x3e334a['JosKA'],_0x3e334a[_0x21f521(0x1fe)],_0x3e334a[_0x21f521(0x1b8)],_0x3e334a[_0x21f521(0x19a)]),_0x3e334a['msjrB']);_0x85b07f=_0x85b07f[_0x21f521(0x2a9)](/<HubHaNameSpace>/g,global_registry[_0x21f521(0x159)]),_0x85b07f=_0x85b07f[_0x21f521(0x2a9)](/<StorageClassName>/g,_0x1720c7);const _0x4dfb33=yaml[_0x21f521(0x1a1)](_0x85b07f);await _0x3e334a[_0x21f521(0x18b)](kubeApply,_0x4dfb33,_0x323bb),logger[_0x21f521(0x260)](_0x3e334a[_0x21f521(0x17f)]),logger[_0x21f521(0x260)](_0x3e334a[_0x21f521(0x118)]);let _0x4b8a3b=await fs[_0x21f521(0x29a)](path['join'](__dirname,_0x3e334a[_0x21f521(0x15a)],_0x3e334a[_0x21f521(0x1fe)],_0x3e334a[_0x21f521(0x1b8)],_0x3e334a[_0x21f521(0x24b)]),_0x3e334a['msjrB']);_0x4b8a3b=_0x4b8a3b[_0x21f521(0x2a9)](/<HubHaNameSpace>/g,global_registry[_0x21f521(0x159)]),_0x4b8a3b=_0x4b8a3b['replace'](/<StorageClassName>/g,_0x1720c7);const _0x2dfa51=yaml[_0x21f521(0x1a1)](_0x4b8a3b);await _0x3e334a['yKsHK'](kubeApply,_0x2dfa51,_0x323bb),logger[_0x21f521(0x260)](_0x3e334a[_0x21f521(0x16c)]),logger[_0x21f521(0x260)](_0x3e334a[_0x21f521(0x2c1)]);let _0x4a3769=await fs[_0x21f521(0x29a)](path['join'](__dirname,_0x3e334a[_0x21f521(0x15a)],_0x3e334a[_0x21f521(0x1fe)],_0x3e334a['yfjPt'],_0x3e334a[_0x21f521(0x16f)]),_0x3e334a['msjrB']);_0x4a3769=_0x4a3769['replace'](/<UploaderImageVersion>/g,global_registry[_0x21f521(0x2d1)]),_0x4a3769=_0x4a3769['replace'](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']);const _0x152f8f=yaml[_0x21f521(0x1a1)](_0x4a3769);_0x3e334a[_0x21f521(0x29e)](global_registry['cloudProvider'],AZURE)&&(_0x152f8f[0x0][_0x21f521(0x243)][_0x21f521(0x121)][_0x21f521(0x14e)][_0x21f521(0x177)]={'azure.workload.identity/use':_0x3e334a['mVuBT'],..._0x152f8f[0x0][_0x21f521(0x243)][_0x21f521(0x121)][_0x21f521(0x14e)][_0x21f521(0x177)]},_0x152f8f[0x0][_0x21f521(0x243)]['template'][_0x21f521(0x243)][_0x21f521(0x1a2)]=_0x3e334a[_0x21f521(0x141)]);await _0x3e334a[_0x21f521(0x18b)](kubeApply,_0x152f8f,_0x323bb),logger['info'](_0x3e334a['HgYSJ']);const _0x555489={};_0x555489[_0x21f521(0x129)]=WS_EVENTS[_0x21f521(0x2a6)],_0x555489['message']=_0x3e334a[_0x21f521(0x24d)],webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x555489),logger['info'](_0x3e334a[_0x21f521(0x28c)]);}catch(_0x2c1fb3){const _0x1be7fa=_0x3e334a[_0x21f521(0x123)][_0x21f521(0x1b2)]('|');let _0x36c405=0x0;while(!![]){switch(_0x1be7fa[_0x36c405++]){case'0':process[_0x21f521(0x2c2)](0x1);continue;case'1':_0x70b9dc=_0x21f521(0x272)+_0x2c1fb3[_0x21f521(0x1e7)];continue;case'2':await _0x102899[_0x21f521(0x11a)](_0x5aa565,global_registry[_0x21f521(0x166)]);continue;case'3':await _0x3e334a['qCPwn'](reportToGalactusAndSendToEDS,_0x157b73,_0x42d2dd,_0x70b9dc,messageTypes[_0x21f521(0x193)],_0x3e334a['cVykD'],_0x3e334a[_0x21f521(0x143)],_0x3e334a[_0x21f521(0x196)]);continue;case'4':logger[_0x21f521(0x1b4)](_0x70b9dc);continue;}break;}}try{_0x587ed7=_0x3e334a['IYhXD'](kebabCase,_0x434b21),logger[_0x21f521(0x260)](_0x3e334a[_0x21f521(0x11b)]);const _0x2a6e21={};_0x2a6e21[_0x21f521(0x129)]=WS_EVENTS[_0x21f521(0x2a6)],_0x2a6e21[_0x21f521(0x1e7)]=_0x3e334a[_0x21f521(0x11b)],webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x2a6e21);if(_0x3e334a['yYZoq'](_0x587ed7,_0x3e334a[_0x21f521(0x141)])){const _0x1cbce2={};_0x1cbce2[_0x21f521(0x22b)]=_0x3e334a[_0x21f521(0x194)],_0x1cbce2[_0x21f521(0x267)]=_0x3e334a[_0x21f521(0x194)];const _0x58e0fd={};_0x58e0fd['name']=_0x587ed7,_0x58e0fd[_0x21f521(0x197)]=_0x1cbce2;const _0x2fdc1c={};_0x2fdc1c[_0x21f521(0x14e)]=_0x58e0fd;const _0x2be818=_0x2fdc1c,_0x1e2b56={};_0x1e2b56[_0x21f521(0x16e)]=_0x2be818,await _0x5aa565['createNamespace'](_0x1e2b56),logger[_0x21f521(0x260)](_0x3e334a[_0x21f521(0x1f9)]);}const _0x5e3ee0={};_0x5e3ee0['type']=WS_EVENTS[_0x21f521(0x2a6)],_0x5e3ee0[_0x21f521(0x1e7)]=_0x3e334a[_0x21f521(0x254)],webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x5e3ee0);const _0x42f514={};_0x42f514[_0x21f521(0x129)]=WS_EVENTS[_0x21f521(0x2a6)],_0x42f514[_0x21f521(0x1e7)]=_0x3e334a[_0x21f521(0x1e4)],webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x42f514),logger[_0x21f521(0x260)](_0x3e334a[_0x21f521(0x285)]);let _0x3c4d1e={};_0x3e334a[_0x21f521(0x187)](_0x436194,AZURE)&&(_0x3c4d1e={'clientId':await _0x102899[_0x21f521(0x228)](_0x21f521(0x270)+_0x2d0e33)});await _0x3e334a['cKKoI'](addGridComponents,_0x5aa565,_0x2c6bac,_0x577b65,_0x345c40,_0x587ed7,_0x2d0e33,_0x531899,_0x242245,_0x323bb,_0x3c4d1e),_0x70b9dc=_0x3e334a['giuhI'],logger[_0x21f521(0x260)](_0x70b9dc);const _0x438624={};_0x438624[_0x21f521(0x129)]=WS_EVENTS['LOG'],_0x438624['message']=_0x70b9dc,webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x438624),_0x70b9dc=_0x3e334a[_0x21f521(0x142)],logger[_0x21f521(0x260)](_0x70b9dc);const _0x2cbe84={};_0x2cbe84[_0x21f521(0x129)]=WS_EVENTS['LOG'],_0x2cbe84['message']=_0x70b9dc,webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x2cbe84),await _0x3e334a[_0x21f521(0x119)](waitForDeployment,_0x2c6bac,_0x587ed7,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x48f6f7=await _0x3e334a['kPLyL'](getNamespaceUID,_0x5aa565,_0x587ed7),_0x1e1c0f=global_registry[_0x21f521(0x18d)]?_0x3e334a[_0x21f521(0x1cc)]:_0x3e334a[_0x21f521(0x1ec)],_0x64999a={};_0x64999a[_0x21f521(0x135)]=_0x1e1c0f,_0x64999a['namespace']=_0x3e334a[_0x21f521(0x246)];const _0x2b6de1=await _0x5aa565[_0x21f521(0x291)](_0x64999a);let _0x293d35=_0x102899[_0x21f521(0x2d2)](_0x2b6de1)+'/'+_0x587ed7,_0x5f106c=_0x3e334a['rmSAR'];try{const _0x5c5091='https://'+AG_API_URL+_0x21f521(0x2da)+_0x48f6f7,_0x2c02ec=await _0x3e334a[_0x21f521(0x149)](got,_0x5c5091,_0x14e620);(_0x3e334a[_0x21f521(0x21e)](_0x2c02ec,null)||_0x3e334a[_0x21f521(0x17c)](_0x2c02ec,undefined))&&(_0x70b9dc=_0x3e334a[_0x21f521(0x179)],await _0x3e334a[_0x21f521(0x271)](reportToGalactusAndSendToEDS,_0x157b73,_0x42d2dd,_0x70b9dc,messageTypes['ERROR'],_0x3e334a['cVykD'],_0x3e334a[_0x21f521(0x2b6)],_0x3e334a[_0x21f521(0x196)]),logger['error'](_0x70b9dc),process[_0x21f521(0x2c2)](0x1));_0x3e334a[_0x21f521(0x2c7)](_0x2c02ec['statusCode'],0x191)&&(_0x70b9dc=_0x3e334a[_0x21f521(0x124)],await _0x3e334a[_0x21f521(0x1c6)](reportToGalactusAndSendToEDS,_0x157b73,_0x42d2dd,_0x70b9dc,messageTypes[_0x21f521(0x193)],_0x3e334a['cVykD'],_0x3e334a[_0x21f521(0x22a)],_0x3e334a[_0x21f521(0x196)]),logger[_0x21f521(0x1b4)](_0x70b9dc),process[_0x21f521(0x2c2)](0x1));_0x3e334a['CaVxI'](_0x2c02ec[_0x21f521(0x14d)],0xc8)&&(_0x70b9dc=_0x21f521(0x161)+JSON[_0x21f521(0x22f)](_0x2c02ec),await _0x3e334a['zqpZY'](reportToGalactusAndSendToEDS,_0x157b73,_0x42d2dd,_0x70b9dc,messageTypes[_0x21f521(0x193)],_0x3e334a[_0x21f521(0x201)],_0x3e334a[_0x21f521(0x261)],_0x3e334a[_0x21f521(0x196)]),logger[_0x21f521(0x1b4)](_0x70b9dc),process['exit'](0x1));const _0x2ccfe0=JSON[_0x21f521(0x25c)](_0x2c02ec[_0x21f521(0x16e)]);_0x2ccfe0[_0x21f521(0x2bb)]&&(_0x293d35=_0x2ccfe0[_0x21f521(0x2bb)],_0x5f106c=_0x3e334a[_0x21f521(0x171)]),global_registry[_0x21f521(0x18d)]&&(_0x5f106c=_0x3e334a[_0x21f521(0x232)]);}catch(_0x1d9b81){}_0x70b9dc='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x293d35+'\x20',logger[_0x21f521(0x260)](_0x70b9dc);const _0x326042={};_0x326042[_0x21f521(0x129)]=WS_EVENTS[_0x21f521(0x2a6)],_0x326042[_0x21f521(0x1e7)]=_0x70b9dc,webSocketUtils['sendEventToBackend'](_0x42d2dd,_0x326042),_0x70b9dc=_0x21f521(0x15c)+_0x5f106c+'://'+_0x293d35+_0x21f521(0x13c),logger[_0x21f521(0x260)](_0x70b9dc);const _0x3560a5={};_0x3560a5[_0x21f521(0x129)]=WS_EVENTS[_0x21f521(0x2a6)],_0x3560a5['message']=_0x70b9dc,webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x3560a5);const _0x27dbc8={};_0x27dbc8[_0x21f521(0x129)]=WS_EVENTS[_0x21f521(0x294)],_0x27dbc8[_0x21f521(0x1e7)]='CLI\x20run\x20finished:\x20'+_0x293d35,webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x27dbc8),await webSocketUtils[_0x21f521(0x13b)](0x7d0);}catch(_0x266718){logger['error'](_0x21f521(0x280)+_0x266718+'\x20\x0a'+JSON[_0x21f521(0x22f)](_0x266718[_0x21f521(0x23c)]));if(_0x3e334a[_0x21f521(0x20c)](_0x5b90e3,![]))try{logger['info'](_0x3e334a['fBycJ']),await _0x3e334a[_0x21f521(0x1d4)](removeGridComponents,_0x5aa565,_0x2c6bac,_0x577b65,_0x345c40,_0x587ed7),await _0x102899[_0x21f521(0x11a)](_0x5aa565,global_registry[_0x21f521(0x166)]);}catch(_0xfeb8f1){logger[_0x21f521(0x1b4)](_0x21f521(0x209)+_0xfeb8f1+'\x20\x0a'+JSON['stringify'](_0xfeb8f1[_0x21f521(0x23c)]));}throw _0x266718;}}catch(_0x28c90d){const _0x2b6a5b=_0x21f521(0x286)+_0x28c90d+'\x20\x0a'+JSON[_0x21f521(0x22f)](_0x28c90d[_0x21f521(0x23c)]);if(_0x42d2dd){const _0x34b36f={};_0x34b36f[_0x21f521(0x129)]=WS_EVENTS[_0x21f521(0x2a6)],_0x34b36f[_0x21f521(0x1e7)]=_0x2b6a5b,webSocketUtils[_0x21f521(0x127)](_0x42d2dd,_0x34b36f,_0x3e334a[_0x21f521(0x196)],!![]);}await webSocketUtils[_0x21f521(0x13b)](0x7d0);const _0x188fad={};_0x188fad[_0x21f521(0x1b4)]=_0x2b6a5b,await _0x3e334a['dwBwI'](sendInstrumentationEvent,_0x157b73,_0x3e334a[_0x21f521(0x201)],messageTypes['ERROR'],_0x3e334a[_0x21f521(0x1b0)],_0x188fad,_0x157b73),logger[_0x21f521(0x1b4)](_0x2b6a5b);}process[_0x21f521(0x2c2)](0x0);};function a9_0xe522(){const _0x345f13=['vumjf','arVgZ','lOBEw','Create\x20a\x20new\x20Automation\x20grid.','private-ingress-nginx-controller','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','Flag\x20to\x20enable\x20Hub\x20HA','region','yYZoq','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','dwBwI','readFileSync','UzWZu','WklQa','mHdxr','default','Found\x20Subnets:\x20','ROJCn','skip-tls-cert-verify','kruMu','message','rloYq','776489AqULmW','epilogue','addListeners','kFMhi','BNzvQ','sendResourceDataToHST','browserstack-secret.yaml','bstackUsername','toLowerCase','zvyef','xBplO','CLI\x20run\x20started','qkRtv','wwXXu','qCPwn','KZwer','dBHMR','ujYpr','create-grid-checks-invalid-profile','aHtKy','NCpnb','wUCvE','TmNKz','username','cVykD','ioKDn','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Added\x20Turboscale\x20Uploader\x20deployment.','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','sdVuJ','defaultGridProfile','NWGHB','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','fMiIT','UkRNzNYCBU','bBgKw','aZTwb','nPlqn','TRsjd','Subnets:\x20','HUNpf','isClusterPresent','2sxnqRh','private-grid','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','GnFCY','efs-csi','RZlxi','YRAgs','6|5|8|7|4|3|2|0|1','wOEVF','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','privateGrid','FMOWZ','1|3|2|4|0','create-grid-checks-auth-failed','bstackAccesskey','UoqPN','mVuBT','create-grid-checks-grid-already-exists','Adding\x20Kafka\x20deployment...','create','fXRJj','getResourceClientId','BwKtq','UJyUH','createdBy','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','tQBmH','sPzjo','stringify','bBgyl','argv','rmSAR','bMSWS','GET','turboscale-uploader.yaml','LUrEB','wvpVI','LcOKO','fzONc','vpc','6|8|7|2|13|10|9|14|12|11|4|0|1|5|3|15','stack','s3bucket','cloudProvider','length','init-not-called','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','mjFhv','spec','Spawning\x20grid\x20on\x20to\x20the\x20cluster','enableHubHa','wCqPm','VLndy','../../utils/utilityMethods','hubharesources','ingress-nginx','tnkSw','browserstack','mIqNE','isSubnetsValid','lUIGJ','gridProfileId','Uzudv','Found\x20VPC:\x20','../../utils/webSocketUtils','QCzZq','newCluster','rvBYp','pWhHG','Browserstack','LtZzH','../..','setupNewCluster','parse','1145240mqRtbu','pHXql','../../utils/gridComponents','info','MmPgo','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','DYRtE','20935920URdcnp','../../utils/instrumentationUtils','DbdNL','managedBy','rNACK','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','kYpDO','isNewAWSCluster','\x20in\x20existing\x20cluster\x20\x27','builder','ivYQP','0|1|4|2|3','turboscale-managed-identity-','hLABN','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','Adding\x20Websocket\x20listeners','ooole','Epyd5nXbRK','grid-name','usage','chfZo','qSuYp','lppTz','join','non-aws-azure-cluster','gridProfile','mOgQf','hub-ha','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','../../config/constants','WWzrc','PsOhj','hDVzT','wIeNO','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','OxEfp','5WHgQwX','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','hubHa','XgcMK','MUcVp','WUsvx','QGUIj','help','hDSdj','readNamespacedService','dikMr','hubVersion','CLI_RUN_FINISHED','1|4|5|6|8|7|0|3|2','0|3|2|1|4','maxNodes','fshuW','IYhXD','readFileAsync','tUjOw','qwPQe','got','ChpAC','rGYdO','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','Creating\x20namespace','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','INFO','cpyhw','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','LOG','Skip\x20insecure\x20cert\x20verification.','Hub\x20HA\x20setup\x20completed\x20successfully.','replace','Adding\x20Turboscale\x20Uploader\x20deployment...','eToGN','VsmlJ','zFeIR','clusterName','ugPFq','grid-spawning-failed','1|4|3|2|0','boolean','dQxyk','KiXkm','redisPassword','tkaWC','FrBjU','ArTWa','qmaWD','concurrency','route53','CCOCH','1520560WeukJu','YMjmj','Added\x20Redis\x20deployment.','51632aLipGZ','eCany','exit','existsSync','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','10uWDgex','MKQMZ','GAOBD','nVkXY','63UDPjlN','Namespace\x20Created','<PasswordPlaceholder>','BrOjv','string','SWaRA','nxKUG','../../config/logger','uploaderImageVersion','getGridHostname','cyjkv','ZBGXk','create-grid-checks-null-response','yKsHK','ROAoP','Adding\x20Secret\x20Mapping','subnets','/packages/cli/get-grid-url?gridIdentifier=','MknWz','ABGOR','fBiOH','eRWXr','deleteCluster','fyihz','grid-profile','create-grid-called','kafkaPassword','gomDM','Namespace\x20created','template','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','lJnyt','XImcH','uploaderVersion','TlNcz','sendEventToBackend','Grid\x20spawned\x20on\x20the\x20cluster','type','qPsxF','CaVxI','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','fZVzE','aEKKI','uoPMq','grZou','warn','reconnecting-websocket','GOdJh','name','6GDfSAC','<UsernamePlaceholder>','YzMpW','xvMci','AbLWu','delay','/wd/hub','minNodes','AJRoq','xiVjt','isVPCPresent','jbJsJ','jqEQv','bmERo','OmNku','Cluster\x20','user','EdxlP','password','vTffC','eHuva','yehPt','skipTlsCertVerify','statusCode','metadata','cloud-provider','path','DeXHV','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','jetLG','\x20are\x20not\x20present\x20in\x20VPC:\x20','VetUt','IWPtE','MaDTl','ntabs','hubHaNameSpace','JosKA','Deleting\x20the\x20CloudFormation\x20Stacks','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','imLAa','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','cluster-autoupgrade','UPHQA','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','https://','jIzeB','BGORy','cbjMG','clusterRegion','11366344NEIwQX','grid','WebSocket','qdBMb','Cluster:\x20','RMivb','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','body','fLIoS','1808676NLEiEc','QeIQH','IhhON','MESiy','pYuJT','js-yaml','Gqssg','labels','axEDX','sHaUU','browserVersion','paIai','LANGV','pre-spawned-invalid-vpc','UGKzW','axMIw','ggEDI','includes','PABQY','LUGCk','orvOY','IbBfb','clusterAutoupgrade','wdkYY','RDUbK','Creating\x20Hub\x20HA\x20resources','LYKWp','mcmJW','pre-spawned-subnets-not-selected','isPrivateGrid','uOuvq','Wvsrj','cluster-name','true','get-grid-url-auth-failed','ERROR','uaZDv','kafkaUploader','vGmSu','annotations','Added\x20Kafka\x20deployment.','FLGss','SzJOZ','description','xjTpK','NEXmg','LfRiP','clusterAutoUpgrade','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','loadAll','serviceAccountName','CLI_RUN_STARTED','eXymG','GKTvR','jfWnc','GWqum','VMhMW','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','kYIYP','qllfq','gridName','fukAy','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','options','oWSpS','hcCuf','split','sgZzu','error','xExeS','../../cloudproviders/utils','iquMb','yfjPt','SkCjG','XyOPF','pre-spawned-invalid-subnets','/packages/cli/create-grid-checks','\x20using\x20\x27','msjrB','nYwGI','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','handler','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','fCcyl','Will\x20be\x20spawning\x20the\x20grid\x20','wkVoh','woBhn','hub-ha-deployments-failed','uBkdW','gibRy','SruzF','KlpTA','kQwpS','templates','vZcpN','bitnami-redis.yaml','Added\x20Secret\x20Mapping','zruoQ','instanceType'];a9_0xe522=function(){return _0x345f13;};return a9_0xe522();}
1
+ function a9_0x492d(_0xb51b53,_0x15a356){const _0x3dc69b=a9_0x3dc6();return a9_0x492d=function(_0x492de5,_0x2fbd81){_0x492de5=_0x492de5-0x1d0;let _0x4f5102=_0x3dc69b[_0x492de5];return _0x4f5102;},a9_0x492d(_0xb51b53,_0x15a356);}const a9_0x12686d=a9_0x492d;function a9_0x3dc6(){const _0x409fa8=['EKrtN','zpByz','route53','\x20are\x20not\x20present\x20in\x20VPC:\x20','zccah','gridName','zftYJ','fTClD','HsAYQ','ojmjp','privateGrid','lRgtm','4819276QsHAky','lexKM','crgxA','XzJDc','Skip\x20insecure\x20cert\x20verification.','Browserstack','iPRoy','Spawning\x20grid\x20on\x20to\x20the\x20cluster','qVSpS','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','CLI_RUN_FINISHED','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','EBUHD','QQwwP','rZBsa','command','QSrOK','usage','qUtsP','TOJhd','existsSync','OjTys','JWKOH','erWiG','Added\x20Turboscale\x20Uploader\x20deployment.','agwAS','XzFOt','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','skipTlsCertVerify','create-grid-checks-invalid-profile','DKgsh','CDYxW','Created\x20Hub\x20HA\x20resources','init-not-called','YKknp','\x20in\x20existing\x20cluster\x20\x27','xQquM','Rlrln','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','JjkJa','help','GBXzA','BlmIV','qmbGo','\x20using\x20\x27','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','6|0|2|4|7|8|1|3|5','../../utils/webSocketUtils','xHRKn','nABCJ','default','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','RDeBr','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','NXfXy','requestId','error','bYlnG','Tpolh','/packages/cli/get-grid-url?gridIdentifier=','getResourceClientId','hkFpa','oRMuc','sendResourceDataToHST','../../utils/utilityMethods','username','IpQPh','readFileAsync','wsVuq','CbxLr','TwVSK','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','bXbJr','body','nmxbi','FYlLJ','mxhJy','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','HmyLu','EXpIf','cxyqO','kGltn','UvgYW','UWjuY','qTNBr','yPCHk','Added\x20Kafka\x20deployment.','SxEpn','Spawning\x20the\x20grid\x20','Create\x20a\x20private/public\x20grid.','nXucU','XIosq','INFO','name','ZYjEo','get-grid-url-non-200','EWQgB','hub-ha-deployments-failed','jQAqc','IElii','js-yaml','eXkcE','private-grid','region','xGxZX','SuLuQ','sendEventToBackend','jWfnu','Subnets:\x20','DBuDp','instanceType','Adding\x20Turboscale\x20Uploader\x20deployment...','USRTp','bstackAccesskey','Found\x20VPC:\x20','azurefile-csi-premium','yPevz','BiOAl','KEcEj','uuid','stack','clusterName','length','Xgznr','Cluster\x20','create-grid-checks-non-200','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','deleteCluster','iVGjY','Enabling\x20Hub\x20HA\x20flow','kqFQd','bitnami-redis.yaml','true','FNaPe','Grid\x20can\x20be\x20accessed\x20at:\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','jwpsq','redisPassword','spec','parse','XNKYs','kNwRd','tZByg','3787620tzaNbD','hxqki','setupNewCluster','connectionTimeout','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','ingress-nginx','yPjdJ','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','Epyd5nXbRK','lXqzG','uDkvL','Creating\x20Hub\x20HA\x20resources','pUIzu','zsvLy','wDySs','managedBy','create-grid-checks-grid-already-exists','Yubwv','gridProfiles','LkOGY','GGlXX','xzzwI','Quzvc','Adding\x20Redis\x20deployment...','join','lDJZA','Cluster\x20created\x20successfully','cluster-name','kafkaUploader','gFbFf','DGdMw','zdNLm','kbEPu','description','updateClusterAlreadyPresent','IyCGV','MFHXT','VgLcQ','Frdgy','../../utils/gridComponents','ETISj','\x27\x20grid\x20profile','WebSocket','bstackUsername','non-aws-azure-cluster','cloudProvider','3|1|0|2|4','roIrJ','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Creating\x20namespace','SjCat','get-grid-url-auth-failed','gfgMR','1|3|4|2|0','CEvAE','GET','concurrency','cloud-provider','HBPJa','jNpUS','SNqZJ','DTkgM','ERROR','gYIIR','newCluster','NBOoa','RccTF','Added\x20Redis\x20deployment.','jkdMC','UymKP','teCvb','gukws','isClusterPresent','delay','CMgaP','qDlDi','Deleting\x20the\x20CloudFormation\x20Stacks','CpReN','Flag\x20to\x20enable\x20Hub\x20HA','ingress-nginx-controller','pre-spawned-subnets-not-selected','isPrivateGrid','hubVersion','yhvNQ','Igwzq','VPtnL','createOtherResources','EwDRy','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','QrHLC','get-grid-url-null-response','VGrTu','gUsoY','vpc','createdBy','create-grid-called','4013676azxJzW','Spawning\x20Grid\x20on\x20the\x20Cluster','../../config/logger','sDJLt','uZDHJ','grid-spawning-failed','QHplm','argv','toLowerCase','YdJJB','nWypH','soslo','isVPCPresent','browserVersion','Adding\x20Kafka\x20deployment...','gCNtz','AADxs','message','desc','Rktju','ZHviq','enableHubHa','hub-ha','abWjS','stringify','FRFtg','EhVjM','Namespace\x20created','got','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','boolean','TnKLg','eDgMu','Create\x20a\x20new\x20Automation\x20grid.','siedw','gridProfile','ziTyq','GjApG','qakcn','jJCHx','CLI_RUN_STARTED','create-grid-checks-null-response','gridProfileId','VKkxQ','prespawned-cluster-args-not-passed','764jQFrql','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','statusCode','/wd/hub','replace','FBqoB','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','type','otmsA','IIZQc','NJjdh','ppXjJ','minNodes','kPsmQ','uRDoG','881038TVHvxK','RzYBx','DbuxG','IvXid','setupHubHa','nIODx','jGhtu','../../utils/instrumentationUtils','isNewAWSCluster','SSzaT','QFilg','vVSnz','CaimZ','GNtRY','EUriy','Ztmra','grid-profile','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','31169889BTnTgh','SCTBZ','password','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','info','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','mrczx','hubHa','JWWwI','https://','../../utils/createk8sClient','clusterRegion','serviceAccountName','BrfgI','ywtrq','DbfNq','1656320WLLTcb','cKwHN','hXkHO','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','xJLQu','uploaderVersion','iHUTr','ARQUk','grid','Adding\x20Websocket\x20listeners','kWVNE','s3bucket','MKOjp','http','../../config/constants','LIZDD','defaultGridProfile','browserstack-secret.yaml','hubharesources','GpqiX','Adding\x20Secret\x20Mapping','options','create-grid-checks-auth-failed','AVXja','metadata','ekKjy','vOwSg','hubHaNameSpace','GeeYu','IhUEJ','exit','eqprO','JtpPb','BELRu','XzqRu','mKJBw','rkrls','JEpXk','Cluster:\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','cHJWd','Found\x20Subnets:\x20','clusterAutoUpgrade','28415iLvlep','cluster-autoupgrade','ARMCs','mJRFZ','lWROA','hYGHI','Azduv','Namespace\x20Created','browserstack','WYlSp','wJUxU','namespace','6|7|0|12|9|4|10|15|13|1|2|8|14|5|11|3','loadAll','OWPHi','split','UptWc','getGridHostname','handler','create','ZcPto','<UsernamePlaceholder>','xMGPE','LCusm','Will\x20be\x20spawning\x20the\x20grid\x20','OCHKA','kafkaPassword','RDYzV','hCDnO','template','UkRNzNYCBU','tsytl','INkcK','BndOk','readFileSync','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','epilogue','/packages/cli/create-grid-checks','readNamespacedService','AEyuo','labels','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','nOndR','rFMOU','turboscale-managed-identity-','xyKQS','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','lJSMI','BpRgr','bitnami-kafka.yaml','builder','pre-spawned-invalid-vpc','AmAKN','setupAutoscaler','TCmZR','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','16MZbeuh','ZFgjq','yYLQt','clusterAutoupgrade','grid-name','pre-spawned-invalid-subnets','LOG','qgyZN'];a9_0x3dc6=function(){return _0x409fa8;};return a9_0x3dc6();}(function(_0x40681e,_0x144db2){const _0x297dea=a9_0x492d,_0x1cd977=_0x40681e();while(!![]){try{const _0x3358cc=-parseInt(_0x297dea(0x29d))/0x1+parseInt(_0x297dea(0x2bf))/0x2+parseInt(_0x297dea(0x201))/0x3+-parseInt(_0x297dea(0x28e))/0x4*(-parseInt(_0x297dea(0x2eb))/0x5)+parseInt(_0x297dea(0x261))/0x6+parseInt(_0x297dea(0x337))/0x7*(parseInt(_0x297dea(0x323))/0x8)+-parseInt(_0x297dea(0x2af))/0x9;if(_0x3358cc===_0x144db2)break;else _0x1cd977['push'](_0x1cd977['shift']());}catch(_0x542fbe){_0x1cd977['push'](_0x1cd977['shift']());}}}(a9_0x3dc6,0xd646c));const fs=require('fs'),ws=require('ws'),path=require('path'),yaml=require(a9_0x12686d(0x1d6)),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x12686d(0x27d)),{v4:uuidv4}=require(a9_0x12686d(0x1e9)),webSocketUtils=require(a9_0x12686d(0x366)),{logger}=require(a9_0x12686d(0x263)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x12686d(0x377)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x12686d(0x2ce)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x12686d(0x228)),{createK8sClient}=require(a9_0x12686d(0x2b9)),{sendInstrumentationEvent}=require(a9_0x12686d(0x2a4));exports[a9_0x12686d(0x346)]=a9_0x12686d(0x2c8),exports[a9_0x12686d(0x273)]=a9_0x12686d(0x282),exports[a9_0x12686d(0x31d)]=function(_0x4bcd52){const _0x1b5334=a9_0x12686d,_0x1bceb1={};_0x1bceb1[_0x1b5334(0x389)]=_0x1b5334(0x384),_0x1bceb1[_0x1b5334(0x35c)]='string',_0x1bceb1[_0x1b5334(0x23e)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x1bceb1[_0x1b5334(0x2a8)]=_0x1b5334(0x36c),_0x1bceb1[_0x1b5334(0x280)]=_0x1b5334(0x1f9),_0x1bceb1[_0x1b5334(0x296)]=_0x1b5334(0x2e7),_0x1bceb1[_0x1b5334(0x1d4)]=_0x1b5334(0x390),_0x1bceb1[_0x1b5334(0x2df)]=_0x1b5334(0x33b),_0x1bceb1[_0x1b5334(0x2ca)]='boolean',_0x1bceb1[_0x1b5334(0x29b)]=_0x1b5334(0x24f),_0x1bceb1[_0x1b5334(0x2ed)]=_0x1b5334(0x36a),_0x1bceb1['TCmZR']=_0x1b5334(0x35f);const _0x71f510=_0x1bceb1,_0x4bd0be={};_0x4bd0be['description']=_0x71f510[_0x1b5334(0x389)],_0x4bd0be[_0x1b5334(0x295)]=_0x71f510[_0x1b5334(0x35c)];const _0x61e6ef={};_0x61e6ef[_0x1b5334(0x222)]=_0x71f510[_0x1b5334(0x23e)],_0x61e6ef[_0x1b5334(0x295)]=_0x71f510[_0x1b5334(0x35c)];const _0x3c7ddb={};_0x3c7ddb[_0x1b5334(0x222)]=_0x71f510['vVSnz'],_0x3c7ddb[_0x1b5334(0x295)]=_0x71f510[_0x1b5334(0x35c)];const _0x34a574={};_0x34a574['description']=_0x71f510[_0x1b5334(0x280)],_0x34a574[_0x1b5334(0x295)]=_0x71f510[_0x1b5334(0x35c)];const _0x5d7515={};_0x5d7515[_0x1b5334(0x222)]=_0x71f510[_0x1b5334(0x296)],_0x5d7515[_0x1b5334(0x295)]=_0x71f510[_0x1b5334(0x35c)];const _0x11efe7={};_0x11efe7[_0x1b5334(0x222)]=_0x71f510[_0x1b5334(0x1d4)],_0x11efe7[_0x1b5334(0x295)]=_0x71f510[_0x1b5334(0x35c)];const _0x4ce0da={};_0x4ce0da[_0x1b5334(0x222)]=_0x71f510[_0x1b5334(0x2df)],_0x4ce0da[_0x1b5334(0x295)]=_0x71f510['kWVNE'],_0x4ce0da['default']=![];const _0x411c5d={};_0x411c5d[_0x1b5334(0x222)]=_0x71f510['kPsmQ'],_0x411c5d[_0x1b5334(0x295)]=_0x71f510['kWVNE'],_0x411c5d['default']=![];const _0x21fe32={};_0x21fe32[_0x1b5334(0x222)]=_0x71f510[_0x1b5334(0x2ed)],_0x21fe32['type']=_0x71f510[_0x1b5334(0x2ca)],_0x21fe32[_0x1b5334(0x369)]=![];const _0x3878b6={};return _0x3878b6['grid-name']=_0x4bd0be,_0x3878b6[_0x1b5334(0x2ad)]=_0x61e6ef,_0x3878b6[_0x1b5334(0x21c)]=_0x3c7ddb,_0x3878b6['cloud-provider']=_0x34a574,_0x3878b6[_0x1b5334(0x1d9)]=_0x5d7515,_0x3878b6[_0x1b5334(0x1d8)]=_0x11efe7,_0x3878b6['skip-tls-cert-verify']=_0x4ce0da,_0x3878b6['hub-ha']=_0x411c5d,_0x3878b6[_0x1b5334(0x2ec)]=_0x21fe32,_0x4bcd52['usage'](HELP_HEADER_MESSAGE[_0x1b5334(0x2fe)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1b5334(0x2d5)](_0x3878b6)[_0x1b5334(0x35f)](_0x71f510[_0x1b5334(0x321)])[_0x1b5334(0x268)];},exports[a9_0x12686d(0x2fd)]=async function(_0x4e638d){const _0x1baf49=a9_0x12686d,_0x437d83={'BELRu':_0x1baf49(0x1f6),'gFbFf':'default','GgPVi':_0x1baf49(0x22f),'EUriy':_0x1baf49(0x309),'BrfgI':_0x1baf49(0x2f3),'IhUEJ':_0x1baf49(0x209),'lexKM':_0x1baf49(0x1f3),'BndOk':function(_0x45dff8,_0x4be54e){return _0x45dff8(_0x4be54e);},'fTClD':_0x1baf49(0x1e5),'jvvkc':_0x1baf49(0x384),'Ztmra':'string','zdNLm':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','VgLcQ':_0x1baf49(0x36c),'mxhJy':_0x1baf49(0x1f9),'FNaPe':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','xQquM':'Create\x20a\x20private/public\x20grid.','DDlsP':'Skip\x20insecure\x20cert\x20verification.','vOwSg':_0x1baf49(0x27f),'erWiG':_0x1baf49(0x24f),'OWPHi':_0x1baf49(0x36a),'IpQPh':_0x1baf49(0x35f),'NJjdh':_0x1baf49(0x36f),'Rktju':_0x1baf49(0x322),'Frdgy':_0x1baf49(0x2f7),'nABCJ':function(_0x1ecf8b,_0x5ed26f){return _0x1ecf8b(_0x5ed26f);},'XzqRu':function(_0x44cea2,_0x419bcc){return _0x44cea2!==_0x419bcc;},'soslo':function(_0x4779fc,_0x269e76,_0x3a6e7e,_0xd10ae3,_0x3126f4,_0x5eeedb,_0x54d983,_0x3f8fb7,_0x429016,_0x45136d,_0x3fa783,_0x40a41c,_0x3758c6){return _0x4779fc(_0x269e76,_0x3a6e7e,_0xd10ae3,_0x3126f4,_0x5eeedb,_0x54d983,_0x3f8fb7,_0x429016,_0x45136d,_0x3fa783,_0x40a41c,_0x3758c6);},'DbuxG':'premium-rwo','siedw':'https','HsAYQ':_0x1baf49(0x2cd),'roIrJ':_0x1baf49(0x365),'TwVSK':'CLI\x20run\x20started','BpRgr':'warn','YKknp':function(_0x5b8fe4,_0x57a86c){return _0x5b8fe4===_0x57a86c;},'tiLfB':function(_0xdd5edd,_0x399b56){return _0xdd5edd(_0x399b56);},'jGhtu':function(_0x171a98){return _0x171a98();},'MKOjp':_0x1baf49(0x23c),'eXkcE':'dUPFZ','NjDSr':_0x1baf49(0x1f0),'yPjdJ':function(_0x4a183a,_0x15ab10,_0x2870f8,_0x1a947d,_0x31373d,_0xf5493,_0x265e6e){return _0x4a183a(_0x15ab10,_0x2870f8,_0x1a947d,_0x31373d,_0xf5493,_0x265e6e);},'DKgsh':_0x1baf49(0x260),'SuLuQ':_0x1baf49(0x358),'kbEPu':function(_0x1cd4de){return _0x1cd4de();},'hCDnO':_0x1baf49(0x300),'rYvsn':'<PasswordPlaceholder>','Xgznr':_0x1baf49(0x2c9),'yYLQt':function(_0x57ee1c,_0x3c43f5){return _0x57ee1c!==_0x3c43f5;},'kqFQd':_0x1baf49(0x1e7),'ywtrq':_0x1baf49(0x304),'CEvAE':function(_0x3fcc6d,_0x381254){return _0x3fcc6d===_0x381254;},'nmxbi':'IRkog','oRMuc':'SNvZz','lJSMI':_0x1baf49(0x314),'ZHviq':function(_0x4c0bef,_0x58fdfc,_0x2d7674,_0x734416,_0x25ca88,_0x1216a8,_0x4ec0fd,_0x41197a){return _0x4c0bef(_0x58fdfc,_0x2d7674,_0x734416,_0x25ca88,_0x1216a8,_0x4ec0fd,_0x41197a);},'KIevy':_0x1baf49(0x28d),'hYGHI':function(_0xf5d2e9,_0x5641fb){return _0xf5d2e9===_0x5641fb;},'lDJZA':'ssrue','VlnTG':_0x1baf49(0x27e),'BlmIV':_0x1baf49(0x22d),'JWWwI':function(_0x3eb530,_0x362438){return _0x3eb530===_0x362438;},'IElii':_0x1baf49(0x33a),'CaimZ':_0x1baf49(0x387),'GBXzA':function(_0x26dfd6,_0xffb6ae,_0x5c3a50,_0x115a9c,_0x10f819,_0x223043,_0x51f041){return _0x26dfd6(_0xffb6ae,_0x5c3a50,_0x115a9c,_0x10f819,_0x223043,_0x51f041);},'FYlLJ':_0x1baf49(0x23d),'QrHLC':'CmFnV','ZcPto':function(_0x45bf45,_0x62333d){return _0x45bf45===_0x62333d;},'LkOGY':'sGwkc','ekKjy':function(_0x2c826b,_0x39a9f4){return _0x2c826b===_0x39a9f4;},'CbxLr':_0x1baf49(0x215),'nOndR':_0x1baf49(0x2b0),'DbfNq':_0x1baf49(0x238),'bXbJr':function(_0x151efb,_0x5b7501,_0x13887f){return _0x151efb(_0x5b7501,_0x13887f);},'qmbGo':_0x1baf49(0x2d3),'JVjiq':_0x1baf49(0x301),'AEyuo':function(_0x513243,_0x132ac3){return _0x513243===_0x132ac3;},'rkrls':function(_0x3dcf43,_0x1f636d){return _0x3dcf43===_0x1f636d;},'CpReN':function(_0x1c856c,_0x1bd83d){return _0x1c856c!==_0x1bd83d;},'EwDRy':_0x1baf49(0x34c),'IyCGV':'xikfK','JWKOH':_0x1baf49(0x205),'ARQUk':_0x1baf49(0x28a),'JtpPb':_0x1baf49(0x200),'XppiN':_0x1baf49(0x2b5),'WBltb':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','xJLQu':_0x1baf49(0x2d6),'fWSWA':function(_0x287c0d,_0x41cb4c){return _0x287c0d===_0x41cb4c;},'lWROA':_0x1baf49(0x32b),'ZFgjq':function(_0x4f94ba,_0x5a50f0,_0xadf2a2,_0x46b0e0,_0x95ba34,_0x30122c,_0x3d4404,_0x141dc8){return _0x4f94ba(_0x5a50f0,_0xadf2a2,_0x46b0e0,_0x95ba34,_0x30122c,_0x3d4404,_0x141dc8);},'AVXja':_0x1baf49(0x1ef),'QFilg':'Grid\x20profile\x20fetched\x20from\x20backend','FBqoB':'szKiT','gCNtz':'lgPmM','wsVuq':_0x1baf49(0x211),'SbKlk':function(_0x540b61,_0x33870c){return _0x540b61!==_0x33870c;},'CDYxW':'iWsnW','xyKQS':function(_0x324a16,_0x565929){return _0x324a16===_0x565929;},'cKwHN':_0x1baf49(0x216),'pFuLa':'1|0|2|3|4','pdUNz':function(_0x407f4b,_0x5f0517){return _0x407f4b!==_0x5f0517;},'gYIIR':_0x1baf49(0x29c),'xHRKn':_0x1baf49(0x255),'AQHbo':function(_0x3fdeac,_0x37ef0c){return _0x3fdeac===_0x37ef0c;},'jkdMC':'PPpsa','yPCHk':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','yPevz':_0x1baf49(0x354),'uZDHJ':_0x1baf49(0x334),'abWjS':'FihXN','PmJOv':function(_0x1c6ce7,_0x1e1418){return _0x1c6ce7===_0x1e1418;},'rFMOU':_0x1baf49(0x225),'TJXse':_0x1baf49(0x217),'qTNBr':function(_0x25588f,_0x22b8ed){return _0x25588f!==_0x22b8ed;},'Azduv':'cVbjT','gukws':_0x1baf49(0x391),'HBPJa':_0x1baf49(0x2c6),'VKkxQ':function(_0x6f2176,_0x5519c0){return _0x6f2176(_0x5519c0);},'USRTp':function(_0xc06cd6,_0x3e87ce){return _0xc06cd6===_0x3e87ce;},'tRMGj':function(_0x26f02b,_0x30f33d){return _0x26f02b!==_0x30f33d;},'qgyZN':'fTTxx','cZxty':_0x1baf49(0x1df),'eLHQb':function(_0x52a75a,_0x2efde3){return _0x52a75a===_0x2efde3;},'zccah':_0x1baf49(0x1dd),'nIODx':'Vwyin','QHplm':function(_0x49f7ed,_0x49d96b,_0x548336,_0x28b977,_0x4c4d45,_0x3bc3f5,_0x2db783,_0x309741,_0x15a954,_0x235e3d,_0x3acaf3,_0x349c52,_0x11268c){return _0x49f7ed(_0x49d96b,_0x548336,_0x28b977,_0x4c4d45,_0x3bc3f5,_0x2db783,_0x309741,_0x15a954,_0x235e3d,_0x3acaf3,_0x349c52,_0x11268c);},'LIZDD':function(_0x3b479e,_0x1f2e8c){return _0x3b479e===_0x1f2e8c;},'cHJWd':_0x1baf49(0x1d2),'RZGmA':_0x1baf49(0x24c),'bYlnG':function(_0x2fdc3e,_0x4747d1){return _0x2fdc3e===_0x4747d1;},'hXkHO':_0x1baf49(0x27a),'mKJBw':'1|3|4|7|6|8|2|0|5','mJRFZ':function(_0x55efa7,_0x43c1b3,_0x1c2553,_0x57ceaf,_0x4ab83c,_0x142eca,_0x49fba0){return _0x55efa7(_0x43c1b3,_0x1c2553,_0x57ceaf,_0x4ab83c,_0x142eca,_0x49fba0);},'SxEpn':_0x1baf49(0x386),'RzYBx':'gVAoV','jJCHx':function(_0x24da7d,_0x6050cd){return _0x24da7d===_0x6050cd;},'KEcEj':_0x1baf49(0x202),'agwAS':function(_0x3a54cf,_0x4156af){return _0x3a54cf===_0x4156af;},'GeeYu':_0x1baf49(0x20e),'VGrTu':_0x1baf49(0x20f),'CMgaP':_0x1baf49(0x2b2),'nWypH':function(_0x1ced5d,_0x12305d){return _0x1ced5d!=_0x12305d;},'YdJJB':function(_0x56bf7d,_0x7efbd){return _0x56bf7d!==_0x7efbd;},'pUIzu':function(_0x1056e5,_0x42ed82){return _0x1056e5>_0x42ed82;},'crgxA':function(_0xb706be,_0x4e8b10){return _0xb706be===_0x4e8b10;},'lRgtm':_0x1baf49(0x340),'PfKJg':_0x1baf49(0x251),'SjCat':function(_0x5b69c0,_0x4443b4){return _0x5b69c0===_0x4443b4;},'JEpXk':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','kPOxB':function(_0x406e8f,_0x3ce448,_0x3fe430,_0x55b40a,_0x25fde9,_0x2430a0,_0x50fbb1,_0x4c2c2c){return _0x406e8f(_0x3ce448,_0x3fe430,_0x55b40a,_0x25fde9,_0x2430a0,_0x50fbb1,_0x4c2c2c);},'zpByz':_0x1baf49(0x31e),'UymKP':function(_0x461c01,_0x4a00e4,_0x4aeaba,_0x333b60,_0x1b0f15,_0xc35a14,_0x3b751e,_0x366895){return _0x461c01(_0x4a00e4,_0x4aeaba,_0x333b60,_0x1b0f15,_0xc35a14,_0x3b751e,_0x366895);},'SKBnE':_0x1baf49(0x328),'HmyLu':_0x1baf49(0x236),'SSzaT':_0x1baf49(0x21b),'iPRoy':_0x1baf49(0x208),'UWjuY':function(_0x58cd4c,_0x3f75f3){return _0x58cd4c===_0x3f75f3;},'QQwwP':_0x1baf49(0x20c),'XNKYs':function(_0x2a8aa8,_0x4cfb06,_0x5609f1){return _0x2a8aa8(_0x4cfb06,_0x5609f1);},'ZYjEo':_0x1baf49(0x2d4),'iVGjY':'../..','tsytl':'templates','RDYzV':_0x1baf49(0x2d2),'EBUHD':_0x1baf49(0x2d1),'qakcn':'utf-8','EoXPc':function(_0x5e33af,_0x49bada){return _0x5e33af(_0x49bada);},'wfQNQ':function(_0x575bce,_0x3310b3){return _0x575bce(_0x3310b3);},'roGzn':'Added\x20Secret\x20Mapping','xGxZX':'efs-csi','ppXjJ':function(_0x5a1463,_0x50c97c){return _0x5a1463===_0x50c97c;},'INkcK':function(_0x4a40ec,_0x32e01a){return _0x4a40ec===_0x32e01a;},'RccTF':_0x1baf49(0x218),'VPtnL':_0x1baf49(0x1f5),'jwpsq':function(_0x36b4ef,_0xb4ba64,_0x5c5123){return _0x36b4ef(_0xb4ba64,_0x5c5123);},'kNwRd':_0x1baf49(0x244),'qUtsP':_0x1baf49(0x26f),'zftYJ':_0x1baf49(0x31c),'UptWc':_0x1baf49(0x38d),'XzFOt':_0x1baf49(0x1e1),'LCusm':'turboscale-uploader.yaml','uDkvL':function(_0x1dec8c,_0x30d87e){return _0x1dec8c===_0x30d87e;},'gfgMR':function(_0x3e9edc,_0x3b4636,_0x55ef26){return _0x3e9edc(_0x3b4636,_0x55ef26);},'Tpolh':_0x1baf49(0x34f),'AmAKN':_0x1baf49(0x357),'GjApG':'Hub\x20HA\x20setup\x20completed\x20successfully.','ETISj':'1|0|2|4|3','GNtRY':function(_0x1f6637,_0x179b92,_0x1ebbfe,_0x4eb548,_0xf227b7,_0x5e0972,_0x1d7435,_0x28e2aa){return _0x1f6637(_0x179b92,_0x1ebbfe,_0x4eb548,_0xf227b7,_0x5e0972,_0x1d7435,_0x28e2aa);},'NXfXy':_0x1baf49(0x1d3),'vBjeO':function(_0xf161cb,_0x43cc47){return _0xf161cb(_0x43cc47);},'IIZQc':_0x1baf49(0x232),'TEWBu':function(_0x57b0c8,_0x5b7d9c){return _0x57b0c8!==_0x5b7d9c;},'wJUxU':'Browserstack','QSrOK':_0x1baf49(0x2f2),'dFWDQ':_0x1baf49(0x27c),'Yubwv':_0x1baf49(0x33e),'lXqzG':_0x1baf49(0x262),'DGdMw':function(_0xe463c1,_0x565a76){return _0xe463c1===_0x565a76;},'JjkJa':function(_0x785e77,_0x32ece0,_0x164b49,_0x3efe25,_0x2d377c,_0x5cfc15,_0x266960,_0x580d3c,_0x2014f8,_0x5585eb,_0x7b588c){return _0x785e77(_0x32ece0,_0x164b49,_0x3efe25,_0x2d377c,_0x5cfc15,_0x266960,_0x580d3c,_0x2014f8,_0x5585eb,_0x7b588c);},'NBOoa':'Grid\x20spawned\x20on\x20the\x20cluster','DsPTC':_0x1baf49(0x2c3),'ziTyq':function(_0x33e994,_0x17acaf,_0x3c0fb2,_0x459462,_0x554df3){return _0x33e994(_0x17acaf,_0x3c0fb2,_0x459462,_0x554df3);},'RDeBr':function(_0x120085,_0x44bf02,_0x91a261){return _0x120085(_0x44bf02,_0x91a261);},'eDgMu':'private-ingress-nginx-controller','wCppu':_0x1baf49(0x250),'gUsoY':_0x1baf49(0x206),'IvXid':function(_0x14fb83,_0x410b89,_0x4b3eb2){return _0x14fb83(_0x410b89,_0x4b3eb2);},'WYlSp':function(_0x5ab070,_0x56b382){return _0x5ab070===_0x56b382;},'qVSpS':function(_0x210592,_0xc3f86d){return _0x210592===_0xc3f86d;},'AADxs':_0x1baf49(0x2b4),'UZPAB':_0x1baf49(0x25b),'jSePN':function(_0x3f8fcf,_0x550e57){return _0x3f8fcf===_0x550e57;},'yhvNQ':_0x1baf49(0x2c2),'kGltn':function(_0x1120c5,_0x1f48e2,_0x30be66,_0x46bd3b,_0x3104d9,_0x37c7f2,_0x24c356,_0x32b34e){return _0x1120c5(_0x1f48e2,_0x30be66,_0x46bd3b,_0x3104d9,_0x37c7f2,_0x24c356,_0x32b34e);},'oRdMZ':_0x1baf49(0x234),'TOJhd':function(_0x4bcbc5,_0xaee427){return _0x4bcbc5!==_0xaee427;},'rZBsa':function(_0x584fae,_0x147ebf,_0x23d3ad,_0x21708c,_0x2de06d,_0x4c3838,_0x449099,_0x35aa1f){return _0x584fae(_0x147ebf,_0x23d3ad,_0x21708c,_0x2de06d,_0x4c3838,_0x449099,_0x35aa1f);},'sDJLt':_0x1baf49(0x1d1),'XIosq':function(_0x3b622d,_0x5151ad){return _0x3b622d===_0x5151ad;},'hkFpa':_0x1baf49(0x24d),'RiswN':function(_0x4d58b4,_0x1bfd6d,_0x1d4375,_0x2805c9,_0x3d19e6,_0xd0ec23){return _0x4d58b4(_0x1bfd6d,_0x1d4375,_0x2805c9,_0x3d19e6,_0xd0ec23);},'EhVjM':function(_0x4a84cf,_0x41da15,_0x5571e8,_0x397770,_0x2298da,_0x15d010,_0xaed9d1){return _0x4a84cf(_0x41da15,_0x5571e8,_0x397770,_0x2298da,_0x15d010,_0xaed9d1);},'teCvb':_0x1baf49(0x266)};let _0x14f7ed=![],_0x2b37e1=![],_0x399302,_0x8d4807,_0x1667db,_0x4303f5,_0xf7a351,_0x39b374,_0x4a5c0c,_0x2dcc6c,_0xcc0b37,_0x3765f2,_0x4c408e,_0x2cf56c,_0x4b15c8,_0x40b8e7,_0x1f416e=0x1,_0x2ff3dc=0xe;try{global_registry[_0x1baf49(0x36e)]=_0x437d83[_0x1baf49(0x2a3)](uuidv4),global_registry[_0x1baf49(0x252)]=![];if(!fs[_0x1baf49(0x34b)](_0x437d83[_0x1baf49(0x2a3)](getCredentialsPath))){if(_0x437d83[_0x1baf49(0x359)](_0x437d83[_0x1baf49(0x2cc)],_0x437d83[_0x1baf49(0x1d7)])){const _0x3d4ab8={'azure.workload.identity/use':_0x437d83[_0x1baf49(0x2e1)],..._0x4103a3[0x0][_0x1baf49(0x1fc)]['template'][_0x1baf49(0x2d8)][_0x1baf49(0x313)]};_0x3170ac[0x0]['spec'][_0x1baf49(0x308)][_0x1baf49(0x2d8)]['labels']=_0x3d4ab8,_0xb8b2f9[0x0]['spec'][_0x1baf49(0x308)][_0x1baf49(0x1fc)]['serviceAccountName']=_0x437d83[_0x1baf49(0x21e)];}else console[_0x1baf49(0x36f)](_0x437d83['NjDSr']),await _0x437d83[_0x1baf49(0x207)](sendInstrumentationEvent,_0x4e638d,_0x437d83['DKgsh'],messageTypes[_0x1baf49(0x23f)],_0x437d83[_0x1baf49(0x1db)],null,_0x4e638d),process[_0x1baf49(0x2de)](0x1);}await _0x437d83[_0x1baf49(0x207)](sendInstrumentationEvent,_0x4e638d,_0x437d83[_0x1baf49(0x355)],messageTypes[_0x1baf49(0x393)],null,null,_0x4e638d);const _0x333d94=JSON[_0x1baf49(0x1fd)](fs[_0x1baf49(0x30d)](_0x437d83[_0x1baf49(0x221)](getCredentialsPath)));global_registry[_0x1baf49(0x22c)]=_0x333d94[_0x1baf49(0x33c)][_0x1baf49(0x378)],global_registry[_0x1baf49(0x1e3)]=_0x333d94[_0x1baf49(0x33c)]['password'];const _0x473713=WS_ENDPOINT[_0x1baf49(0x292)](_0x437d83[_0x1baf49(0x307)],_0x333d94[_0x1baf49(0x33c)][_0x1baf49(0x378)])[_0x1baf49(0x292)](_0x437d83['rYvsn'],_0x333d94[_0x1baf49(0x33c)]['password']),_0x4b2bcd={};_0x4b2bcd[_0x1baf49(0x22b)]=ws,_0x4b2bcd[_0x1baf49(0x204)]=0x36ee80,_0x2cf56c=new ReconnectingWebSocket(_0x473713,[],_0x4b2bcd),logger['debug'](_0x437d83[_0x1baf49(0x1ed)]),webSocketUtils['addListeners'](_0x2cf56c,_0x4e638d['user'],_0x4e638d['password']);const _0x382377=_0x4e638d[_0x1baf49(0x330)]||DEFAULT_GRID_NAME;if(_0x4e638d['clusterName']||_0x4e638d['cloudProvider']||_0x4e638d[_0x1baf49(0x1d9)]){if(_0x437d83[_0x1baf49(0x325)](_0x437d83[_0x1baf49(0x1f4)],_0x437d83[_0x1baf49(0x2bd)])){!(_0x4e638d['clusterName']&&_0x4e638d['cloudProvider']&&_0x4e638d['region'])&&(_0x437d83[_0x1baf49(0x237)](_0x437d83[_0x1baf49(0x381)],_0x437d83[_0x1baf49(0x375)])?_0x455054[_0x1baf49(0x376)]():(_0x399302=_0x437d83[_0x1baf49(0x31a)],await _0x437d83[_0x1baf49(0x275)](reportToGalactusAndSendToEDS,_0x4e638d,_0x2cf56c,_0x399302,messageTypes[_0x1baf49(0x23f)],_0x437d83[_0x1baf49(0x355)],_0x437d83['KIevy'],_0x437d83[_0x1baf49(0x298)]),logger[_0x1baf49(0x36f)](_0x399302),process[_0x1baf49(0x2de)](0x1)));![AWS,AZURE,GCP]['includes'](_0x4e638d[_0x1baf49(0x22e)][_0x1baf49(0x269)]())&&(_0x437d83[_0x1baf49(0x2f0)](_0x437d83[_0x1baf49(0x21a)],_0x437d83[_0x1baf49(0x21a)])?(_0x399302=_0x437d83['VlnTG'],await _0x437d83[_0x1baf49(0x275)](reportToGalactusAndSendToEDS,_0x4e638d,_0x2cf56c,_0x399302,messageTypes[_0x1baf49(0x23f)],_0x437d83[_0x1baf49(0x355)],_0x437d83[_0x1baf49(0x361)],_0x437d83[_0x1baf49(0x298)]),logger['error'](_0x399302),process[_0x1baf49(0x2de)](0x1)):_0x5cf0bb['error']('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x33879d+'\x20\x0a'+_0xfce279[_0x1baf49(0x279)](_0xb5f88b[_0x1baf49(0x1ea)])));if(_0x4e638d['privateGrid']&&_0x437d83[_0x1baf49(0x2b7)](_0x4e638d[_0x1baf49(0x335)][_0x1baf49(0x269)](),_0x437d83[_0x1baf49(0x2e1)])){if(_0x437d83[_0x1baf49(0x359)](_0x437d83[_0x1baf49(0x1d5)],_0x437d83[_0x1baf49(0x2a9)])){const _0x5a43bc=_0x437d83['GgPVi'][_0x1baf49(0x2fa)]('|');let _0x299158=0x0;while(!![]){switch(_0x5a43bc[_0x299158++]){case'0':_0x3a2396['redisPassword']=_0x437d83[_0x1baf49(0x2ab)];continue;case'1':_0x454443[_0x1baf49(0x2db)]=_0x437d83[_0x1baf49(0x2bc)];continue;case'2':_0x23876b['kafkaPassword']=_0x437d83[_0x1baf49(0x2dd)];continue;case'3':_0x5c5232[_0x1baf49(0x2b3)](_0x437d83[_0x1baf49(0x338)]);continue;case'4':_0x4a5c5d[_0x1baf49(0x276)]=!![];continue;}break;}}else global_registry[_0x1baf49(0x252)]=!![];}global_registry[_0x1baf49(0x22e)]=_0x4e638d['cloudProvider'],global_registry[_0x1baf49(0x2ba)]=_0x4e638d[_0x1baf49(0x1d9)],global_registry[_0x1baf49(0x1eb)]=_0x4e638d['clusterName'];const _0x3afd7b=await _0x437d83[_0x1baf49(0x360)](getCloudProviderObject,_0x4e638d['cloudProvider'],_0x4e638d[_0x1baf49(0x1eb)],_0x382377,_0x2cf56c,webSocketUtils,_0x4e638d),_0x4c4193=await _0x3afd7b[_0x1baf49(0x249)]();!_0x4c4193?_0x437d83[_0x1baf49(0x2b7)](_0x437d83[_0x1baf49(0x382)],_0x437d83[_0x1baf49(0x25a)])?_0x3d11d9['info']('Found\x20Subnets:\x20'+_0x19dee1[_0x1baf49(0x279)](_0x1e2534)+'\x20'):(logger[_0x1baf49(0x2b3)]('Cluster:\x20'+_0x4e638d[_0x1baf49(0x1eb)]+_0x1baf49(0x342)),_0x14f7ed=![],_0x2b37e1=!![]):_0x437d83[_0x1baf49(0x2ff)](_0x437d83[_0x1baf49(0x214)],_0x437d83[_0x1baf49(0x214)])?_0x14f7ed=!![]:_0x14eef9[_0x1baf49(0x252)]=!![],_0x1667db=_0x4e638d[_0x1baf49(0x1eb)],_0x8d4807=_0x4e638d['cloudProvider'][_0x1baf49(0x269)](),_0x4303f5=_0x4e638d['region'];}else _0x2e55c5=_0x56afdd[_0x3c6a0e[_0x1baf49(0x284)]];}else _0x4e638d[_0x1baf49(0x284)]&&(_0x437d83[_0x1baf49(0x2d9)](_0x437d83[_0x1baf49(0x37c)],_0x437d83[_0x1baf49(0x315)])?_0x437d83[_0x1baf49(0x30c)](_0x4b9ac,_0xa89086[_0x1baf49(0x21d)]):global_registry[_0x1baf49(0x284)]=_0x4e638d['gridProfile']);global_registry[_0x1baf49(0x330)]=_0x4e638d[_0x1baf49(0x330)];const _0x276359={'method':_0x437d83[_0x1baf49(0x2be)],'headers':_0x437d83[_0x1baf49(0x37f)](getAuthHeader,_0x333d94[_0x1baf49(0x33c)][_0x1baf49(0x378)],_0x333d94['Browserstack'][_0x1baf49(0x2b1)]),'throwHttpErrors':![]},_0x233fee={};_0x233fee[_0x1baf49(0x330)]=_0x382377;const _0x450c62=_0x233fee;_0x2b37e1&&(_0x437d83[_0x1baf49(0x325)](_0x437d83[_0x1baf49(0x362)],_0x437d83[_0x1baf49(0x362)])?_0x4de6fa=_0x437d83['fTClD']:(_0x450c62['region']=_0x4303f5,_0x450c62[_0x1baf49(0x22e)]=_0x8d4807,_0x450c62[_0x1baf49(0x241)]=!![],_0x450c62[_0x1baf49(0x2ea)]=_0x4e638d['clusterAutoupgrade']));if(_0x4e638d[_0x1baf49(0x326)]){if(_0x437d83[_0x1baf49(0x2e2)](_0x437d83['JVjiq'],_0x437d83['JVjiq'])){const _0x3f3f12={};_0x3f3f12['description']=_0x437d83['jvvkc'],_0x3f3f12[_0x1baf49(0x295)]=_0x437d83[_0x1baf49(0x2ac)];const _0x2f210f={};_0x2f210f[_0x1baf49(0x222)]=_0x437d83[_0x1baf49(0x220)],_0x2f210f[_0x1baf49(0x295)]=_0x437d83[_0x1baf49(0x2ac)];const _0x21fe61={};_0x21fe61[_0x1baf49(0x222)]=_0x437d83[_0x1baf49(0x226)],_0x21fe61[_0x1baf49(0x295)]=_0x437d83['Ztmra'];const _0x2b4166={};_0x2b4166[_0x1baf49(0x222)]=_0x437d83[_0x1baf49(0x383)],_0x2b4166[_0x1baf49(0x295)]=_0x437d83[_0x1baf49(0x2ac)];const _0x5eff59={};_0x5eff59[_0x1baf49(0x222)]=_0x437d83[_0x1baf49(0x1f7)],_0x5eff59[_0x1baf49(0x295)]=_0x437d83[_0x1baf49(0x2ac)];const _0x46aada={};_0x46aada[_0x1baf49(0x222)]=_0x437d83[_0x1baf49(0x35b)],_0x46aada[_0x1baf49(0x295)]=_0x437d83[_0x1baf49(0x2ac)];const _0x519c9a={};_0x519c9a[_0x1baf49(0x222)]=_0x437d83['DDlsP'],_0x519c9a[_0x1baf49(0x295)]=_0x437d83[_0x1baf49(0x2da)],_0x519c9a[_0x1baf49(0x369)]=![];const _0x56ec64={};_0x56ec64[_0x1baf49(0x222)]=_0x437d83[_0x1baf49(0x34e)],_0x56ec64['type']=_0x437d83[_0x1baf49(0x2da)],_0x56ec64['default']=![];const _0x1684c4={};_0x1684c4[_0x1baf49(0x222)]=_0x437d83[_0x1baf49(0x2f9)],_0x1684c4[_0x1baf49(0x295)]=_0x437d83[_0x1baf49(0x2da)],_0x1684c4[_0x1baf49(0x369)]=![];const _0x4fb4c3={};return _0x4fb4c3[_0x1baf49(0x327)]=_0x3f3f12,_0x4fb4c3[_0x1baf49(0x2ad)]=_0x2f210f,_0x4fb4c3[_0x1baf49(0x21c)]=_0x21fe61,_0x4fb4c3[_0x1baf49(0x23a)]=_0x2b4166,_0x4fb4c3[_0x1baf49(0x1d9)]=_0x5eff59,_0x4fb4c3[_0x1baf49(0x1d8)]=_0x46aada,_0x4fb4c3['skip-tls-cert-verify']=_0x519c9a,_0x4fb4c3[_0x1baf49(0x277)]=_0x56ec64,_0x4fb4c3[_0x1baf49(0x2ec)]=_0x1684c4,_0x33e3a8[_0x1baf49(0x348)](_0x58f9a2[_0x1baf49(0x2fe)])[_0x1baf49(0x30f)](_0x7df08e)[_0x1baf49(0x2d5)](_0x4fb4c3)[_0x1baf49(0x35f)](_0x437d83[_0x1baf49(0x379)])['argv'];}else logger[_0x1baf49(0x2b3)](_0x437d83[_0x1baf49(0x274)]);}const _0x1c3b6e=_0x1baf49(0x2b8)+AG_API_URL+_0x1baf49(0x310),_0x27cdb8={'searchParams':_0x450c62,'throwHttpErrors':![],..._0x276359},_0x3c64ba=_0x27cdb8,_0x1dda5c=await _0x437d83[_0x1baf49(0x37f)](got,_0x1c3b6e,_0x3c64ba);(_0x437d83[_0x1baf49(0x312)](_0x1dda5c,null)||_0x437d83[_0x1baf49(0x2e4)](_0x1dda5c,undefined))&&(_0x437d83[_0x1baf49(0x24e)](_0x437d83[_0x1baf49(0x258)],_0x437d83[_0x1baf49(0x224)])?(_0x399302=_0x437d83[_0x1baf49(0x34d)],await _0x437d83['ZHviq'](reportToGalactusAndSendToEDS,_0x4e638d,_0x2cf56c,_0x399302,messageTypes['ERROR'],_0x437d83[_0x1baf49(0x355)],_0x437d83[_0x1baf49(0x2c7)],_0x437d83[_0x1baf49(0x298)]),logger[_0x1baf49(0x36f)](_0x399302),process['exit'](0x1)):_0x320b64[_0x1baf49(0x252)]=!![]);_0x437d83[_0x1baf49(0x2d9)](_0x1dda5c['statusCode'],0x191)&&(_0x437d83['JWWwI'](_0x437d83[_0x1baf49(0x2e0)],_0x437d83['XppiN'])?_0x5143c5[_0x1baf49(0x252)]=!![]:(_0x399302=_0x437d83['WBltb'],await _0x437d83[_0x1baf49(0x275)](reportToGalactusAndSendToEDS,_0x4e638d,_0x2cf56c,_0x399302,messageTypes['ERROR'],_0x437d83[_0x1baf49(0x355)],_0x437d83[_0x1baf49(0x2c4)],_0x437d83['NJjdh']),logger['error'](_0x399302),process[_0x1baf49(0x2de)](0x1)));if(_0x437d83['XzqRu'](_0x1dda5c['statusCode'],0xc8)){if(_0x437d83['fWSWA'](_0x437d83['lWROA'],_0x437d83[_0x1baf49(0x2ef)]))_0x399302=_0x1baf49(0x37e)+JSON['stringify'](_0x1dda5c[_0x1baf49(0x380)]),await _0x437d83[_0x1baf49(0x324)](reportToGalactusAndSendToEDS,_0x4e638d,_0x2cf56c,_0x399302,messageTypes['ERROR'],_0x437d83[_0x1baf49(0x355)],_0x437d83[_0x1baf49(0x2d7)],_0x437d83[_0x1baf49(0x298)]),logger['error'](_0x399302),process[_0x1baf49(0x2de)](0x1);else{const _0x2d89d6={};_0x2d89d6[_0x1baf49(0x295)]=_0x37257a[_0x1baf49(0x329)],_0x2d89d6[_0x1baf49(0x272)]=_0x4088ff,_0x26ccea[_0x1baf49(0x1dc)](_0x12a77f,_0x2d89d6,_0x437d83['NJjdh'],!![]);}}const _0x20568f=JSON[_0x1baf49(0x1fd)](_0x1dda5c[_0x1baf49(0x380)]),_0xe1ba={};_0xe1ba[_0x1baf49(0x295)]=WS_EVENTS[_0x1baf49(0x289)],_0xe1ba[_0x1baf49(0x272)]=_0x437d83[_0x1baf49(0x37d)],webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0xe1ba);const _0x591335={};_0x591335[_0x1baf49(0x295)]=WS_EVENTS[_0x1baf49(0x329)],_0x591335[_0x1baf49(0x272)]=_0x437d83[_0x1baf49(0x2a7)],webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0x591335);if(_0x20568f['alreadyPresent']){if(_0x437d83[_0x1baf49(0x24e)](_0x437d83[_0x1baf49(0x293)],_0x437d83[_0x1baf49(0x270)]))_0x399302='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x382377+_0x1baf49(0x231),await _0x437d83[_0x1baf49(0x324)](reportToGalactusAndSendToEDS,_0x4e638d,_0x2cf56c,_0x399302,messageTypes[_0x1baf49(0x23f)],_0x437d83[_0x1baf49(0x355)],_0x437d83[_0x1baf49(0x37b)],_0x437d83['NJjdh']),logger[_0x1baf49(0x36f)](_0x399302),process[_0x1baf49(0x2de)](0x1);else throw new _0xe28960(_0x1baf49(0x1ee)+_0x291657+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}const _0x395f63=_0x20568f[_0x1baf49(0x213)];let _0x365251=_0x395f63[_0x20568f[_0x1baf49(0x2d0)]];_0x4e638d[_0x1baf49(0x284)]&&(_0x437d83['SbKlk'](_0x437d83[_0x1baf49(0x356)],_0x437d83[_0x1baf49(0x356)])?_0x5d2d0b[_0x1baf49(0x2b3)](_0x437d83['Rktju']):_0x365251=_0x395f63[_0x4e638d[_0x1baf49(0x284)]]);global_registry[_0x1baf49(0x276)]=![];if(_0x4e638d[_0x1baf49(0x2b6)]){if(_0x437d83[_0x1baf49(0x318)](_0x437d83[_0x1baf49(0x2c0)],_0x437d83[_0x1baf49(0x2c0)])){const _0x278d5f=_0x437d83['pFuLa'][_0x1baf49(0x2fa)]('|');let _0x9bb7b2=0x0;while(!![]){switch(_0x278d5f[_0x9bb7b2++]){case'0':global_registry['hubHaNameSpace']=_0x437d83['BrfgI'];continue;case'1':logger[_0x1baf49(0x2b3)](_0x437d83[_0x1baf49(0x338)]);continue;case'2':global_registry[_0x1baf49(0x1fb)]=_0x437d83['EUriy'];continue;case'3':global_registry[_0x1baf49(0x305)]=_0x437d83['IhUEJ'];continue;case'4':global_registry[_0x1baf49(0x276)]=!![];continue;}break;}}else{const _0x4aadd2=_0x437d83[_0x1baf49(0x227)][_0x1baf49(0x2fa)]('|');let _0x20081b=0x0;while(!![]){switch(_0x4aadd2[_0x20081b++]){case'0':const _0x2b3ea4={};_0x2b3ea4[_0x1baf49(0x295)]=_0x1f4f3e[_0x1baf49(0x329)],_0x2b3ea4[_0x1baf49(0x272)]=_0x43f185,_0x59530e[_0x1baf49(0x1dc)](_0x3e19f3,_0x2b3ea4);continue;case'1':_0x3ae7a1=_0x55d54e['minNodes'];continue;case'2':_0x1f353d=_0x211de0['maxNodes'];continue;case'3':_0x26a238['enableHubHa']&&_0x437d83[_0x1baf49(0x368)](_0x3fe5b1,_0x69833b['kafkaUploader']);continue;case'4':_0x411f04=null;continue;case'5':_0x437d83[_0x1baf49(0x2e2)](_0xbd0967[_0x1baf49(0x335)],_0x1c3c11)&&_0x15416c[_0x1baf49(0x335)]&&(_0x584513['isPrivateGrid']=!![]);continue;case'6':_0x330b26=_0x1baf49(0x35d)+_0x30d23b;continue;case'7':_0x45dc31[_0x1baf49(0x2b3)](_0x1a9f6e);continue;case'8':_0x30e333=_0x2ff787[_0x1baf49(0x253)];continue;case'9':_0x52f59d=_0x80622a[_0x1baf49(0x1e0)];continue;case'10':_0x1cbf45=null;continue;case'11':_0x437d83[_0x1baf49(0x26c)](_0x130d2a,_0xb54238,_0x19b889,_0x10a34a,_0x2dcadc,_0x14a775,_0x3b9d87,_0x24ea44,_0x2e0e03,_0x34d2f8,_0x2dfc25,_0x1042d5,_0x90553c['clusterAutoupgrade']);continue;case'12':_0x50b492=_0x4ec6cc[_0x1baf49(0x239)];continue;case'13':_0x1332bd=_0x5a6684[_0x1baf49(0x2cb)];continue;case'14':_0x2bf87a=_0x359b24[_0x1baf49(0x26e)];continue;case'15':_0x15dd10=null;continue;}break;}}}if(_0x437d83[_0x1baf49(0x2f0)](_0x14f7ed,![])&&_0x437d83[_0x1baf49(0x312)](_0x2b37e1,![])){if(_0x437d83['pdUNz'](_0x437d83[_0x1baf49(0x240)],_0x437d83[_0x1baf49(0x367)])){_0x437d83['CEvAE'](_0x365251,undefined)&&(_0x437d83['AQHbo'](_0x437d83[_0x1baf49(0x245)],_0x437d83['jkdMC'])?(_0x399302=_0x437d83[_0x1baf49(0x38c)],await _0x437d83[_0x1baf49(0x275)](reportToGalactusAndSendToEDS,_0x4e638d,_0x2cf56c,_0x399302,messageTypes[_0x1baf49(0x23f)],_0x437d83['DKgsh'],_0x437d83[_0x1baf49(0x1e6)],_0x437d83[_0x1baf49(0x298)]),logger[_0x1baf49(0x36f)](_0x399302),process[_0x1baf49(0x2de)](0x1)):(_0x22de07['region']=_0x2aeba1,_0x5725a6[_0x1baf49(0x22e)]=_0x2ea53a,_0x3e146a[_0x1baf49(0x241)]=!![],_0x3092a4[_0x1baf49(0x2ea)]=_0x20d256['clusterAutoupgrade']));global_registry[_0x1baf49(0x28b)]=_0x365251['id'],_0x399302=_0x1baf49(0x303)+_0x382377+_0x1baf49(0x363)+_0x365251[_0x1baf49(0x394)]+_0x1baf49(0x22a),logger[_0x1baf49(0x2b3)](_0x399302);const _0xd314dc={};_0xd314dc[_0x1baf49(0x295)]=WS_EVENTS[_0x1baf49(0x329)],_0xd314dc[_0x1baf49(0x272)]=_0x399302,webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0xd314dc),_0x8d4807=_0x365251['cloudProvider'],_0x1667db=_0x365251[_0x1baf49(0x1eb)],_0x4303f5=_0x365251[_0x1baf49(0x1d9)],_0xf7a351=_0x365251[_0x1baf49(0x239)],_0x39b374=_0x365251[_0x1baf49(0x1e0)],_0x4a5c0c=_0x365251[_0x1baf49(0x25e)],_0x2dcc6c=_0x365251['securityGroups'],_0xcc0b37=_0x365251['subnets'],_0x3765f2=_0x365251[_0x1baf49(0x2cb)],_0x1f416e=_0x365251[_0x1baf49(0x29a)],_0x2ff3dc=_0x365251['maxNodes'],_0x4b15c8=_0x20568f[_0x1baf49(0x253)],_0x40b8e7=_0x20568f[_0x1baf49(0x26e)],_0x4a5c0c&&_0x437d83[_0x1baf49(0x2d9)](_0x4a5c0c[_0x1baf49(0x1ec)],0x0)&&(_0x437d83[_0x1baf49(0x2f0)](_0x437d83[_0x1baf49(0x265)],_0x437d83[_0x1baf49(0x278)])?_0x57f0a0=_0x437d83[_0x1baf49(0x29f)]:_0x4a5c0c=null),_0xcc0b37&&_0x437d83['PmJOv'](_0xcc0b37[_0x1baf49(0x1ec)],0x0)&&(_0x437d83[_0x1baf49(0x2b7)](_0x437d83[_0x1baf49(0x316)],_0x437d83['TJXse'])?(_0x477e24[_0x1baf49(0x2b3)](_0x1baf49(0x2e6)+_0x1104d7[_0x1baf49(0x1eb)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x2bbc22=![],_0x43be8c=!![]):_0xcc0b37=null),_0x437d83[_0x1baf49(0x38b)](_0x365251[_0x1baf49(0x335)],undefined)&&_0x365251['privateGrid']&&(_0x437d83[_0x1baf49(0x2e2)](_0x437d83[_0x1baf49(0x2f1)],_0x437d83[_0x1baf49(0x2f1)])?(_0x2af082=_0x5ebf7f[_0x1baf49(0x32d)],_0x3af266=_0x437d83[_0x1baf49(0x283)]):global_registry[_0x1baf49(0x252)]=!![]),_0x437d83[_0x1baf49(0x26c)](updateGlobalRegistryWithConfig,_0x8d4807,_0x1667db,_0x4303f5,_0xf7a351,_0x39b374,_0x3765f2,_0x365251,_0x4b15c8,_0x40b8e7,_0x1f416e,_0x2ff3dc,_0x4e638d[_0x1baf49(0x326)]),global_registry[_0x1baf49(0x276)]&&(_0x437d83['CpReN'](_0x437d83[_0x1baf49(0x248)],_0x437d83[_0x1baf49(0x23b)])?_0x437d83['VKkxQ'](updateGlobalRegistryForHubHa,_0x20568f[_0x1baf49(0x2c5)]):_0x5233cc=_0x437d83[_0x1baf49(0x333)]);}else _0x309acb=null;}else{if(_0x437d83['USRTp'](_0x2b37e1,!![])){if(_0x437d83['tRMGj'](_0x437d83[_0x1baf49(0x32a)],_0x437d83['cZxty'])){_0x399302=_0x1baf49(0x35d)+_0x382377,logger['info'](_0x399302);const _0xe41379={};_0xe41379['type']=WS_EVENTS[_0x1baf49(0x329)],_0xe41379[_0x1baf49(0x272)]=_0x399302,webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0xe41379),_0xf7a351=_0x365251[_0x1baf49(0x239)],_0x39b374=_0x365251['instanceType'],_0x4a5c0c=null,_0x2dcc6c=null,_0xcc0b37=null,_0x3765f2=_0x365251[_0x1baf49(0x2cb)],_0x1f416e=_0x365251[_0x1baf49(0x29a)],_0x2ff3dc=_0x365251['maxNodes'],_0x4b15c8=_0x20568f['hubVersion'],_0x40b8e7=_0x20568f[_0x1baf49(0x26e)];_0x437d83[_0x1baf49(0x325)](_0x365251[_0x1baf49(0x335)],undefined)&&_0x365251[_0x1baf49(0x335)]&&(_0x437d83['eLHQb'](_0x437d83[_0x1baf49(0x32f)],_0x437d83[_0x1baf49(0x2a2)])?_0x123863=null:global_registry[_0x1baf49(0x252)]=!![]);_0x437d83[_0x1baf49(0x267)](updateGlobalRegistryWithConfig,_0x8d4807,_0x1667db,_0x4303f5,_0xf7a351,_0x39b374,_0x3765f2,_0x365251,_0x4b15c8,_0x40b8e7,_0x1f416e,_0x2ff3dc,_0x4e638d[_0x1baf49(0x326)]);if(global_registry[_0x1baf49(0x276)]){if(_0x437d83[_0x1baf49(0x2cf)](_0x437d83[_0x1baf49(0x2e8)],_0x437d83['RZGmA'])){const _0xc8b6f=_0x437d83[_0x1baf49(0x230)][_0x1baf49(0x2fa)]('|');let _0x216821=0x0;while(!![]){switch(_0xc8b6f[_0x216821++]){case'0':_0x523928='Spawning\x20the\x20grid\x20'+_0x3518f4+_0x1baf49(0x35a)+_0x1e37db+'\x27';continue;case'1':_0x5868b7['clusterName']=_0x50abcb;continue;case'2':_0x3c2cfe[_0x1baf49(0x2b3)](_0x533164);continue;case'3':_0x43d0cb[_0x1baf49(0x253)]=_0x593717[_0x1baf49(0x253)];continue;case'4':const _0x5a8991={};_0x5a8991[_0x1baf49(0x295)]=_0x257f38[_0x1baf49(0x329)],_0x5a8991[_0x1baf49(0x272)]=_0x3bea2f,_0x30a952[_0x1baf49(0x1dc)](_0x592176,_0x5a8991);continue;case'5':_0x38d816[_0x1baf49(0x26e)]=_0x5e69c5[_0x1baf49(0x26e)];continue;case'6':const _0x398cd4={};_0x398cd4[_0x1baf49(0x295)]=_0x3fe078[_0x1baf49(0x289)],_0x398cd4['message']=_0x437d83['TwVSK'],_0x243d6d[_0x1baf49(0x1dc)](_0xf3e135,_0x398cd4);continue;case'7':_0x36d03c['cloudProvider']=_0x2ba3a2;continue;case'8':_0x8e7c55[_0x1baf49(0x2ba)]=_0x5e0d42;continue;}break;}}else _0x437d83['BndOk'](updateGlobalRegistryForHubHa,_0x20568f['kafkaUploader']);}}else _0x23b9d4[_0x1baf49(0x2b3)]('Found\x20VPC:\x20'+_0x1674b6+'\x20');}else{if(_0x437d83[_0x1baf49(0x370)](_0x437d83[_0x1baf49(0x2c1)],_0x437d83['hXkHO'])){const _0x3be418=_0x437d83[_0x1baf49(0x2e3)][_0x1baf49(0x2fa)]('|');let _0x44f356=0x0;while(!![]){switch(_0x3be418[_0x44f356++]){case'0':global_registry[_0x1baf49(0x253)]=_0x20568f['hubVersion'];continue;case'1':const _0x5c1d33={};_0x5c1d33['type']=WS_EVENTS[_0x1baf49(0x289)],_0x5c1d33[_0x1baf49(0x272)]=_0x437d83['TwVSK'],webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0x5c1d33);continue;case'2':global_registry[_0x1baf49(0x1eb)]=_0x1667db;continue;case'3':_0x399302=_0x1baf49(0x38f)+_0x382377+_0x1baf49(0x35a)+_0x1667db+'\x27';continue;case'4':logger[_0x1baf49(0x2b3)](_0x399302);continue;case'5':global_registry['browserVersion']=_0x20568f[_0x1baf49(0x26e)];continue;case'6':global_registry[_0x1baf49(0x22e)]=_0x8d4807;continue;case'7':const _0x372e7a={};_0x372e7a[_0x1baf49(0x295)]=WS_EVENTS[_0x1baf49(0x329)],_0x372e7a[_0x1baf49(0x272)]=_0x399302,webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0x372e7a);continue;case'8':global_registry[_0x1baf49(0x2ba)]=_0x4303f5;continue;}break;}}else _0x55eb4c[_0x1baf49(0x284)]=_0x32f990[_0x1baf49(0x284)];}}const _0x5693e6=await _0x437d83[_0x1baf49(0x2ee)](getCloudProviderObject,_0x8d4807,_0x1667db,_0x382377,_0x2cf56c,webSocketUtils,_0x4e638d);if(_0x437d83[_0x1baf49(0x24e)](_0x8d4807,AZURE)){if(_0x437d83['tRMGj'](_0x437d83[_0x1baf49(0x38e)],_0x437d83[_0x1baf49(0x29e)]))_0x5693e6[_0x1baf49(0x376)]();else{const _0x15b035={};_0x15b035[_0x1baf49(0x295)]=_0x3712f6['LOG'],_0x15b035['message']=_0x1baf49(0x1ee)+_0x3a4335+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x302b27['sendEventToBackend'](_0x52d974,_0x15b035,_0x437d83[_0x1baf49(0x31b)]),_0x573704[_0x1baf49(0x2b3)](_0x1baf49(0x1ee)+_0x217644+_0x1baf49(0x319)),_0x3dc3a=!![];if(_0x437d83[_0x1baf49(0x359)](_0x3a0e8c,!![]))throw new _0x53101f('Cluster\x20'+_0x1a9b41+_0x1baf49(0x294));}}let _0x4ca094;if(_0x437d83[_0x1baf49(0x288)](_0x14f7ed,![])){_0x399302=_0x1baf49(0x28f)+_0x4303f5+').';const _0x1bf201={};_0x1bf201[_0x1baf49(0x295)]=WS_EVENTS['LOG'],_0x1bf201[_0x1baf49(0x272)]=_0x399302,webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0x1bf201),logger['info'](_0x399302);const _0x197f1a=await _0x5693e6['isClusterPresent']();if(_0x197f1a){if(_0x437d83[_0x1baf49(0x24e)](_0x437d83[_0x1baf49(0x1e8)],_0x437d83[_0x1baf49(0x1e8)]))_0xc340b0=!![];else{const _0xb22450={};_0xb22450['type']=WS_EVENTS[_0x1baf49(0x329)],_0xb22450[_0x1baf49(0x272)]='Cluster\x20'+_0x1667db+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0xb22450,_0x437d83['BpRgr']),logger[_0x1baf49(0x2b3)]('Cluster\x20'+_0x1667db+_0x1baf49(0x319)),_0x14f7ed=!![];if(_0x437d83[_0x1baf49(0x350)](_0x2b37e1,!![])){if(_0x437d83[_0x1baf49(0x2ff)](_0x437d83[_0x1baf49(0x2dc)],_0x437d83[_0x1baf49(0x25c)]))_0x437d83['tiLfB'](_0x2b64ab,_0x12e7a6[_0x1baf49(0x2c5)]);else throw new Error(_0x1baf49(0x1ee)+_0x1667db+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}}else{const _0xfdc73={};_0xfdc73[_0x1baf49(0x295)]=WS_EVENTS[_0x1baf49(0x329)],_0xfdc73[_0x1baf49(0x272)]=_0x437d83[_0x1baf49(0x24b)],webSocketUtils['sendEventToBackend'](_0x2cf56c,_0xfdc73),logger['info'](_0x437d83[_0x1baf49(0x24b)]);const _0x68ca87=_0x437d83[_0x1baf49(0x26b)](_0x4a5c0c,null)&&_0x437d83[_0x1baf49(0x26a)](_0x4a5c0c,undefined),_0x113a3a=_0x437d83[_0x1baf49(0x26b)](_0xcc0b37,null)&&_0x437d83[_0x1baf49(0x26a)](_0xcc0b37,undefined)&&_0x437d83[_0x1baf49(0x20d)](_0xcc0b37['length'],0x0);if(_0x68ca87){_0x437d83[_0x1baf49(0x339)](_0x113a3a,![])&&(_0x399302=_0x437d83[_0x1baf49(0x336)],await _0x437d83[_0x1baf49(0x275)](reportToGalactusAndSendToEDS,_0x4e638d,_0x2cf56c,_0x399302,messageTypes['ERROR'],_0x437d83[_0x1baf49(0x355)],_0x437d83['PfKJg'],_0x437d83[_0x1baf49(0x298)]),logger[_0x1baf49(0x36f)](_0x399302),process[_0x1baf49(0x2de)](0x1));const _0x3d03c5=await _0x5693e6[_0x1baf49(0x26d)](_0x4a5c0c);_0x437d83[_0x1baf49(0x233)](_0x3d03c5,![])?(_0x399302=_0x437d83[_0x1baf49(0x2e5)],await _0x437d83['kPOxB'](reportToGalactusAndSendToEDS,_0x4e638d,_0x2cf56c,_0x399302,messageTypes['ERROR'],_0x437d83[_0x1baf49(0x355)],_0x437d83[_0x1baf49(0x32c)],_0x437d83[_0x1baf49(0x298)]),logger[_0x1baf49(0x36f)](_0x399302),process['exit'](0x1)):logger['info'](_0x1baf49(0x1e4)+_0x4a5c0c+'\x20');const _0x55943a=await _0x5693e6['isSubnetsValid'](_0xcc0b37,_0x4a5c0c);_0x437d83[_0x1baf49(0x1e2)](_0x55943a[0x0],![])?(_0x399302=_0x1baf49(0x1de)+JSON[_0x1baf49(0x279)](_0x55943a[0x1])+_0x1baf49(0x32e)+_0x4a5c0c+_0x1baf49(0x259),await _0x437d83[_0x1baf49(0x246)](reportToGalactusAndSendToEDS,_0x4e638d,_0x2cf56c,_0x399302,messageTypes[_0x1baf49(0x23f)],_0x437d83[_0x1baf49(0x355)],_0x437d83['SKBnE'],_0x437d83['NJjdh']),logger[_0x1baf49(0x36f)](_0x399302),process[_0x1baf49(0x2de)](0x1)):logger[_0x1baf49(0x2b3)](_0x1baf49(0x2e9)+JSON[_0x1baf49(0x279)](_0xcc0b37)+'\x20'),[_0x4a5c0c,_0xcc0b37]=await _0x5693e6['setupNewCluster'](_0x4a5c0c,_0xcc0b37);}else{const _0x58592a=_0x437d83[_0x1baf49(0x385)][_0x1baf49(0x2fa)]('|');let _0x51b96e=0x0;while(!![]){switch(_0x58592a[_0x51b96e++]){case'0':logger[_0x1baf49(0x2b3)](_0x437d83['SSzaT']);continue;case'1':const _0x956839={};_0x956839['type']=WS_EVENTS[_0x1baf49(0x329)],_0x956839[_0x1baf49(0x272)]=_0x437d83[_0x1baf49(0x33d)],webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0x956839);continue;case'2':const _0x4581f4={};_0x4581f4[_0x1baf49(0x295)]=WS_EVENTS[_0x1baf49(0x329)],_0x4581f4[_0x1baf49(0x272)]=_0x437d83[_0x1baf49(0x2a6)],webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0x4581f4);continue;case'3':logger['info'](_0x437d83[_0x1baf49(0x33d)]);continue;case'4':[_0x4a5c0c,_0xcc0b37]=await _0x5693e6[_0x1baf49(0x203)](_0x4a5c0c,_0xcc0b37);continue;}break;}}}}_0x14f7ed&&_0x437d83['fWSWA'](_0x8d4807,AZURE)&&(await _0x5693e6[_0x1baf49(0x223)](),await _0x5693e6[_0x1baf49(0x257)]());const [_0x5a4bc9,_0x3530f7,_0x55ed15,_0x23dc5e,_0x33351d,_0x856463,_0x38b987]=await _0x437d83[_0x1baf49(0x37f)](createK8sClient,_0x5693e6,_0x4e638d[_0x1baf49(0x353)]);_0x437d83[_0x1baf49(0x38a)](_0x14f7ed,![])&&_0x437d83[_0x1baf49(0x312)](_0x8d4807,AWS)&&(global_registry[_0x1baf49(0x2a5)]=!![],_0x4ca094=await _0x5693e6[_0x1baf49(0x320)](_0x5a4bc9,_0x4e638d));if(_0x437d83[_0x1baf49(0x1e2)](_0x14f7ed,![])&&global_registry['enableHubHa'])try{await _0x5693e6[_0x1baf49(0x2a1)](_0x856463,_0x38b987,_0x4e638d,_0x4a5c0c,_0xcc0b37);const _0x533a83={};_0x533a83[_0x1baf49(0x295)]=WS_EVENTS['LOG'],_0x533a83[_0x1baf49(0x272)]=_0x437d83[_0x1baf49(0x344)],webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0x533a83);!await _0x437d83[_0x1baf49(0x1fe)](namespaceExists,_0x5a4bc9,global_registry[_0x1baf49(0x2db)])&&await _0x437d83[_0x1baf49(0x37f)](createNamespace,_0x5a4bc9,global_registry[_0x1baf49(0x2db)]);logger[_0x1baf49(0x2b3)](_0x437d83[_0x1baf49(0x1d0)]);let _0x16a726=await fs[_0x1baf49(0x37a)](path['join'](__dirname,_0x437d83[_0x1baf49(0x1f2)],_0x437d83[_0x1baf49(0x30a)],_0x437d83[_0x1baf49(0x306)],_0x437d83[_0x1baf49(0x343)]),_0x437d83[_0x1baf49(0x287)]);_0x16a726=_0x16a726[_0x1baf49(0x292)](/<RedisClientPassword>/g,_0x437d83[_0x1baf49(0x368)](encodeBase64,global_registry[_0x1baf49(0x1fb)])),_0x16a726=_0x16a726[_0x1baf49(0x292)](/<KafkaClientPassword>/g,_0x437d83['EoXPc'](encodeBase64,global_registry['kafkaPassword'])),_0x16a726=_0x16a726[_0x1baf49(0x292)](/<BstackUsername>/g,_0x437d83['wfQNQ'](encodeBase64,global_registry[_0x1baf49(0x22c)])),_0x16a726=_0x16a726[_0x1baf49(0x292)](/<BstackAccessKey>/g,_0x437d83[_0x1baf49(0x28c)](encodeBase64,global_registry[_0x1baf49(0x1e3)]));const _0x573bbf=yaml[_0x1baf49(0x2f8)](_0x16a726);await _0x437d83['bXbJr'](kubeApply,_0x573bbf,_0x38b987),logger[_0x1baf49(0x2b3)](_0x437d83['roGzn']);let _0x19d87f=_0x437d83[_0x1baf49(0x1da)];if(_0x437d83[_0x1baf49(0x299)](_0x8d4807,AZURE))_0x19d87f=_0x437d83[_0x1baf49(0x332)];else _0x437d83[_0x1baf49(0x30b)](_0x8d4807,GCP)&&(_0x19d87f=_0x437d83[_0x1baf49(0x29f)]);logger['info'](_0x437d83[_0x1baf49(0x243)]);let _0x24a128=await fs[_0x1baf49(0x37a)](path['join'](__dirname,_0x437d83['iVGjY'],_0x437d83[_0x1baf49(0x30a)],_0x437d83['RDYzV'],_0x437d83[_0x1baf49(0x256)]),_0x437d83['qakcn']);_0x24a128=_0x24a128[_0x1baf49(0x292)](/<HubHaNameSpace>/g,global_registry[_0x1baf49(0x2db)]),_0x24a128=_0x24a128['replace'](/<StorageClassName>/g,_0x19d87f);const _0x1faf6f=yaml[_0x1baf49(0x2f8)](_0x24a128);await _0x437d83[_0x1baf49(0x1fa)](kubeApply,_0x1faf6f,_0x38b987),logger['info'](_0x437d83[_0x1baf49(0x1ff)]),logger[_0x1baf49(0x2b3)](_0x437d83[_0x1baf49(0x349)]);let _0xadafb8=await fs[_0x1baf49(0x37a)](path[_0x1baf49(0x219)](__dirname,_0x437d83[_0x1baf49(0x1f2)],_0x437d83[_0x1baf49(0x30a)],_0x437d83[_0x1baf49(0x306)],_0x437d83[_0x1baf49(0x331)]),_0x437d83[_0x1baf49(0x287)]);_0xadafb8=_0xadafb8[_0x1baf49(0x292)](/<HubHaNameSpace>/g,global_registry[_0x1baf49(0x2db)]),_0xadafb8=_0xadafb8['replace'](/<StorageClassName>/g,_0x19d87f);const _0xd5c1f7=yaml[_0x1baf49(0x2f8)](_0xadafb8);await _0x437d83[_0x1baf49(0x1fa)](kubeApply,_0xd5c1f7,_0x38b987),logger['info'](_0x437d83[_0x1baf49(0x2fb)]),logger[_0x1baf49(0x2b3)](_0x437d83[_0x1baf49(0x351)]);let _0xa0c526=await fs[_0x1baf49(0x37a)](path[_0x1baf49(0x219)](__dirname,_0x437d83[_0x1baf49(0x1f2)],_0x437d83['tsytl'],_0x437d83[_0x1baf49(0x306)],_0x437d83[_0x1baf49(0x302)]),_0x437d83['qakcn']);_0xa0c526=_0xa0c526[_0x1baf49(0x292)](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0xa0c526=_0xa0c526[_0x1baf49(0x292)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']);const _0x222824=yaml[_0x1baf49(0x2f8)](_0xa0c526);_0x437d83[_0x1baf49(0x20b)](global_registry[_0x1baf49(0x22e)],AZURE)&&(_0x222824[0x0][_0x1baf49(0x1fc)][_0x1baf49(0x308)][_0x1baf49(0x2d8)][_0x1baf49(0x313)]={'azure.workload.identity/use':_0x437d83[_0x1baf49(0x2e1)],..._0x222824[0x0]['spec'][_0x1baf49(0x308)]['metadata'][_0x1baf49(0x313)]},_0x222824[0x0][_0x1baf49(0x1fc)]['template'][_0x1baf49(0x1fc)][_0x1baf49(0x2bb)]=_0x437d83[_0x1baf49(0x21e)]);await _0x437d83[_0x1baf49(0x235)](kubeApply,_0x222824,_0x38b987),logger[_0x1baf49(0x2b3)](_0x437d83[_0x1baf49(0x371)]);const _0x526939={};_0x526939['type']=WS_EVENTS[_0x1baf49(0x329)],_0x526939[_0x1baf49(0x272)]=_0x437d83[_0x1baf49(0x31f)],webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0x526939),logger[_0x1baf49(0x2b3)](_0x437d83[_0x1baf49(0x286)]);}catch(_0xc1bd32){const _0x33f8cd=_0x437d83[_0x1baf49(0x229)]['split']('|');let _0x6458db=0x0;while(!![]){switch(_0x33f8cd[_0x6458db++]){case'0':logger['error'](_0x399302);continue;case'1':_0x399302=_0x1baf49(0x364)+_0xc1bd32[_0x1baf49(0x272)];continue;case'2':await _0x437d83[_0x1baf49(0x2aa)](reportToGalactusAndSendToEDS,_0x4e638d,_0x2cf56c,_0x399302,messageTypes['ERROR'],_0x437d83[_0x1baf49(0x355)],_0x437d83[_0x1baf49(0x36d)],_0x437d83[_0x1baf49(0x298)]);continue;case'3':process[_0x1baf49(0x2de)](0x1);continue;case'4':await _0x5693e6[_0x1baf49(0x1f1)](_0x5a4bc9,global_registry[_0x1baf49(0x2ba)]);continue;}break;}}try{_0x4c408e=_0x437d83['vBjeO'](kebabCase,_0x382377),logger['info'](_0x437d83[_0x1baf49(0x297)]);const _0xfed3d6={};_0xfed3d6[_0x1baf49(0x295)]=WS_EVENTS[_0x1baf49(0x329)],_0xfed3d6[_0x1baf49(0x272)]=_0x437d83[_0x1baf49(0x297)],webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0xfed3d6);if(_0x437d83['TEWBu'](_0x4c408e,_0x437d83[_0x1baf49(0x21e)])){const _0x565f28={};_0x565f28[_0x1baf49(0x25f)]=_0x437d83[_0x1baf49(0x2f5)],_0x565f28[_0x1baf49(0x210)]=_0x437d83[_0x1baf49(0x2f5)];const _0x5f0901={};_0x5f0901[_0x1baf49(0x394)]=_0x4c408e,_0x5f0901['annotations']=_0x565f28;const _0x322fdf={};_0x322fdf[_0x1baf49(0x2d8)]=_0x5f0901;const _0x3a35d2=_0x322fdf,_0x364fc8={};_0x364fc8['body']=_0x3a35d2,await _0x5a4bc9['createNamespace'](_0x364fc8),logger[_0x1baf49(0x2b3)](_0x437d83[_0x1baf49(0x347)]);}const _0x482fc1={};_0x482fc1[_0x1baf49(0x295)]=WS_EVENTS[_0x1baf49(0x329)],_0x482fc1[_0x1baf49(0x272)]=_0x437d83['dFWDQ'],webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0x482fc1);const _0x21823d={};_0x21823d[_0x1baf49(0x295)]=WS_EVENTS[_0x1baf49(0x329)],_0x21823d['message']=_0x437d83[_0x1baf49(0x212)],webSocketUtils['sendEventToBackend'](_0x2cf56c,_0x21823d),logger[_0x1baf49(0x2b3)](_0x437d83[_0x1baf49(0x20a)]);let _0x45b45f={};_0x437d83[_0x1baf49(0x21f)](_0x8d4807,AZURE)&&(_0x45b45f={'clientId':await _0x5693e6[_0x1baf49(0x373)](_0x1baf49(0x317)+_0x1667db)});await _0x437d83[_0x1baf49(0x35e)](addGridComponents,_0x5a4bc9,_0x3530f7,_0x55ed15,_0x23dc5e,_0x4c408e,_0x1667db,_0x4ca094,_0x33351d,_0x38b987,_0x45b45f),_0x399302=_0x437d83[_0x1baf49(0x242)],logger[_0x1baf49(0x2b3)](_0x399302);const _0x2f8de0={};_0x2f8de0['type']=WS_EVENTS['LOG'],_0x2f8de0['message']=_0x399302,webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0x2f8de0),_0x399302=_0x437d83['DsPTC'],logger[_0x1baf49(0x2b3)](_0x399302);const _0x5985a6={};_0x5985a6[_0x1baf49(0x295)]=WS_EVENTS[_0x1baf49(0x329)],_0x5985a6[_0x1baf49(0x272)]=_0x399302,webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0x5985a6),await _0x437d83[_0x1baf49(0x285)](waitForDeployment,_0x3530f7,_0x4c408e,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x151ac8=await _0x437d83[_0x1baf49(0x36b)](getNamespaceUID,_0x5a4bc9,_0x4c408e),_0x2bd6da=global_registry[_0x1baf49(0x252)]?_0x437d83[_0x1baf49(0x281)]:_0x437d83['wCppu'],_0x45b23b={};_0x45b23b['name']=_0x2bd6da,_0x45b23b[_0x1baf49(0x2f6)]=_0x437d83[_0x1baf49(0x25d)];const _0x1edc2a=await _0x5a4bc9[_0x1baf49(0x311)](_0x45b23b);let _0x3ae0a0=_0x5693e6[_0x1baf49(0x2fc)](_0x1edc2a)+'/'+_0x4c408e,_0x8bf28c=_0x437d83[_0x1baf49(0x333)];try{const _0x4a794b='https://'+AG_API_URL+_0x1baf49(0x372)+_0x151ac8,_0x5477ee=await _0x437d83[_0x1baf49(0x2a0)](got,_0x4a794b,_0x276359);(_0x437d83[_0x1baf49(0x2f4)](_0x5477ee,null)||_0x437d83[_0x1baf49(0x33f)](_0x5477ee,undefined))&&(_0x399302=_0x437d83[_0x1baf49(0x271)],await _0x437d83['UymKP'](reportToGalactusAndSendToEDS,_0x4e638d,_0x2cf56c,_0x399302,messageTypes['ERROR'],_0x437d83[_0x1baf49(0x355)],_0x437d83['UZPAB'],_0x437d83[_0x1baf49(0x298)]),logger['error'](_0x399302),process[_0x1baf49(0x2de)](0x1));_0x437d83['jSePN'](_0x5477ee[_0x1baf49(0x290)],0x191)&&(_0x399302=_0x437d83[_0x1baf49(0x254)],await _0x437d83[_0x1baf49(0x388)](reportToGalactusAndSendToEDS,_0x4e638d,_0x2cf56c,_0x399302,messageTypes['ERROR'],_0x437d83[_0x1baf49(0x355)],_0x437d83['oRdMZ'],_0x437d83[_0x1baf49(0x298)]),logger[_0x1baf49(0x36f)](_0x399302),process[_0x1baf49(0x2de)](0x1));_0x437d83[_0x1baf49(0x34a)](_0x5477ee[_0x1baf49(0x290)],0xc8)&&(_0x399302='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x1baf49(0x279)](_0x5477ee),await _0x437d83[_0x1baf49(0x345)](reportToGalactusAndSendToEDS,_0x4e638d,_0x2cf56c,_0x399302,messageTypes[_0x1baf49(0x23f)],_0x437d83['DKgsh'],_0x437d83[_0x1baf49(0x264)],_0x437d83[_0x1baf49(0x298)]),logger[_0x1baf49(0x36f)](_0x399302),process[_0x1baf49(0x2de)](0x1));const _0x193828=JSON[_0x1baf49(0x1fd)](_0x5477ee[_0x1baf49(0x380)]);_0x193828['route53']&&(_0x3ae0a0=_0x193828[_0x1baf49(0x32d)],_0x8bf28c=_0x437d83['siedw']),global_registry[_0x1baf49(0x252)]&&(_0x8bf28c=_0x437d83['HsAYQ']);}catch(_0x44147d){}_0x399302=_0x1baf49(0x1f8)+_0x3ae0a0+'\x20',logger[_0x1baf49(0x2b3)](_0x399302);const _0x3bac5e={};_0x3bac5e[_0x1baf49(0x295)]=WS_EVENTS['LOG'],_0x3bac5e['message']=_0x399302,webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0x3bac5e),_0x399302=_0x1baf49(0x30e)+_0x8bf28c+'://'+_0x3ae0a0+_0x1baf49(0x291),logger[_0x1baf49(0x2b3)](_0x399302);const _0x1379e2={};_0x1379e2[_0x1baf49(0x295)]=WS_EVENTS[_0x1baf49(0x329)],_0x1379e2[_0x1baf49(0x272)]=_0x399302,webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0x1379e2);const _0xa74250={};_0xa74250[_0x1baf49(0x295)]=WS_EVENTS[_0x1baf49(0x341)],_0xa74250[_0x1baf49(0x272)]='CLI\x20run\x20finished:\x20'+_0x3ae0a0,webSocketUtils['sendEventToBackend'](_0x2cf56c,_0xa74250),await webSocketUtils['delay'](0x7d0);}catch(_0x54347b){logger[_0x1baf49(0x36f)](_0x1baf49(0x352)+_0x54347b+'\x20\x0a'+JSON['stringify'](_0x54347b[_0x1baf49(0x1ea)]));if(_0x437d83[_0x1baf49(0x392)](_0x14f7ed,![]))try{logger[_0x1baf49(0x2b3)](_0x437d83[_0x1baf49(0x374)]),await _0x437d83['RiswN'](removeGridComponents,_0x5a4bc9,_0x3530f7,_0x55ed15,_0x23dc5e,_0x4c408e),await _0x5693e6[_0x1baf49(0x1f1)](_0x5a4bc9,global_registry['clusterRegion']);}catch(_0x143dce){logger[_0x1baf49(0x36f)](_0x1baf49(0x2ae)+_0x143dce+'\x20\x0a'+JSON['stringify'](_0x143dce[_0x1baf49(0x1ea)]));}throw _0x54347b;}}catch(_0x80c845){const _0x4aeae1='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x80c845+'\x20\x0a'+JSON[_0x1baf49(0x279)](_0x80c845[_0x1baf49(0x1ea)]);if(_0x2cf56c){const _0x498301={};_0x498301['type']=WS_EVENTS['LOG'],_0x498301[_0x1baf49(0x272)]=_0x4aeae1,webSocketUtils[_0x1baf49(0x1dc)](_0x2cf56c,_0x498301,_0x437d83['NJjdh'],!![]);}await webSocketUtils[_0x1baf49(0x24a)](0x7d0);const _0x16452c={};_0x16452c['error']=_0x4aeae1,await _0x437d83[_0x1baf49(0x27b)](sendInstrumentationEvent,_0x4e638d,_0x437d83[_0x1baf49(0x355)],messageTypes[_0x1baf49(0x23f)],_0x437d83[_0x1baf49(0x247)],_0x16452c,_0x4e638d),logger[_0x1baf49(0x36f)](_0x4aeae1);}process[_0x1baf49(0x2de)](0x0);};
@@ -1 +1 @@
1
- const a10_0x29aa16=a10_0x2f31;(function(_0x3902d0,_0xbb1632){const _0x40a794=a10_0x2f31,_0x4fe1f6=_0x3902d0();while(!![]){try{const _0x55b469=-parseInt(_0x40a794(0x1fa))/0x1+-parseInt(_0x40a794(0x1fe))/0x2+-parseInt(_0x40a794(0x1ef))/0x3*(parseInt(_0x40a794(0x1f0))/0x4)+-parseInt(_0x40a794(0x1ff))/0x5+-parseInt(_0x40a794(0x1f9))/0x6+parseInt(_0x40a794(0x1f2))/0x7*(parseInt(_0x40a794(0x1f5))/0x8)+parseInt(_0x40a794(0x1fd))/0x9;if(_0x55b469===_0xbb1632)break;else _0x4fe1f6['push'](_0x4fe1f6['shift']());}catch(_0x27d32c){_0x4fe1f6['push'](_0x4fe1f6['shift']());}}}(a10_0x1d48,0xb98e1));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a10_0x29aa16(0x1ec)]=a10_0x29aa16(0x1ed),exports[a10_0x29aa16(0x1fb)]='List\x20Grid\x20resources.',exports[a10_0x29aa16(0x1f1)]=function(_0x34ce40){const _0x5d7320=a10_0x29aa16,_0x84e8cc={};_0x84e8cc['zWjbR']='delete_commands',_0x84e8cc[_0x5d7320(0x1fc)]=_0x5d7320(0x1f4);const _0x468df3=_0x84e8cc;return _0x34ce40['usage'](HELP_HEADER_MESSAGE['delete'])[_0x5d7320(0x1f3)](HELP_FOOTER_MESSAGE)[_0x5d7320(0x1f8)](_0x468df3['zWjbR'])[_0x5d7320(0x200)]()[_0x5d7320(0x1ee)]()[_0x5d7320(0x1f7)]()[_0x5d7320(0x1f4)](_0x468df3[_0x5d7320(0x1fc)]);},exports[a10_0x29aa16(0x1f6)]=function(_0x2c528c){};function a10_0x2f31(_0x3938df,_0x2d92c8){const _0x1d48c1=a10_0x1d48();return a10_0x2f31=function(_0x2f317c,_0x282854){_0x2f317c=_0x2f317c-0x1ec;let _0x39b3e6=_0x1d48c1[_0x2f317c];return _0x39b3e6;},a10_0x2f31(_0x3938df,_0x2d92c8);}function a10_0x1d48(){const _0x215d7e=['help','240lZKbEC','handler','strict','commandDir','7357086WXcEOg','149386UqUVRt','desc','LtuWk','31086513fgxxgH','737994BlSoWi','5019995Fzyuhx','demandCommand','command','delete','recommendCommands','1825023oQgvKt','4TDZdPu','builder','154672NchmJW','epilogue'];a10_0x1d48=function(){return _0x215d7e;};return a10_0x1d48();}
1
+ function a10_0x4e38(_0x345551,_0x18bafe){const _0xfd13d=a10_0xfd13();return a10_0x4e38=function(_0x4e38c0,_0x17dbf1){_0x4e38c0=_0x4e38c0-0x116;let _0x3552b9=_0xfd13d[_0x4e38c0];return _0x3552b9;},a10_0x4e38(_0x345551,_0x18bafe);}const a10_0x5b38d3=a10_0x4e38;(function(_0x33d4b0,_0x20ee32){const _0x24ef2e=a10_0x4e38,_0x4e6ca3=_0x33d4b0();while(!![]){try{const _0x20399f=-parseInt(_0x24ef2e(0x126))/0x1*(-parseInt(_0x24ef2e(0x11a))/0x2)+parseInt(_0x24ef2e(0x122))/0x3+parseInt(_0x24ef2e(0x129))/0x4*(parseInt(_0x24ef2e(0x11c))/0x5)+parseInt(_0x24ef2e(0x119))/0x6+-parseInt(_0x24ef2e(0x11f))/0x7+-parseInt(_0x24ef2e(0x124))/0x8*(-parseInt(_0x24ef2e(0x127))/0x9)+-parseInt(_0x24ef2e(0x121))/0xa*(parseInt(_0x24ef2e(0x118))/0xb);if(_0x20399f===_0x20ee32)break;else _0x4e6ca3['push'](_0x4e6ca3['shift']());}catch(_0x36957d){_0x4e6ca3['push'](_0x4e6ca3['shift']());}}}(a10_0xfd13,0x7173e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x5b38d3(0x120));exports[a10_0x5b38d3(0x128)]=a10_0x5b38d3(0x12a),exports['desc']='List\x20Grid\x20resources.',exports['builder']=function(_0xea2298){const _0x43ff0e=a10_0x5b38d3,_0x37cbde={};_0x37cbde[_0x43ff0e(0x11e)]='delete_commands',_0x37cbde[_0x43ff0e(0x12b)]=_0x43ff0e(0x11b);const _0x393ddd=_0x37cbde;return _0xea2298[_0x43ff0e(0x125)](HELP_HEADER_MESSAGE[_0x43ff0e(0x12a)])[_0x43ff0e(0x11d)](HELP_FOOTER_MESSAGE)[_0x43ff0e(0x117)](_0x393ddd[_0x43ff0e(0x11e)])['demandCommand']()[_0x43ff0e(0x123)]()[_0x43ff0e(0x116)]()['help'](_0x393ddd[_0x43ff0e(0x12b)]);},exports['handler']=function(_0x213519){};function a10_0xfd13(){const _0x1ae725=['../config/constants','10ZJhRMs','2519259IYzZgY','recommendCommands','29296gCTLZs','usage','4559UgbTYy','657AHsOwa','command','20LIwwjR','delete','CCldd','strict','commandDir','3273369lUQHEL','381594AESRdV','36YPFstG','help','197980KrWwZj','epilogue','nETwl','4819073oTRXig'];a10_0xfd13=function(){return _0x1ae725;};return a10_0xfd13();}
@@ -1 +1 @@
1
- const a11_0x308ef5=a11_0x2c72;function a11_0x2c72(_0xbe245c,_0x2231c5){const _0x2daa38=a11_0x2daa();return a11_0x2c72=function(_0x2c7210,_0xa51e0d){_0x2c7210=_0x2c7210-0x7d;let _0x5ef52b=_0x2daa38[_0x2c7210];return _0x5ef52b;},a11_0x2c72(_0xbe245c,_0x2231c5);}(function(_0x2cce8f,_0x60d5b4){const _0x3eb902=a11_0x2c72,_0x578056=_0x2cce8f();while(!![]){try{const _0x29faf7=parseInt(_0x3eb902(0xea))/0x1+-parseInt(_0x3eb902(0xc0))/0x2*(-parseInt(_0x3eb902(0xfe))/0x3)+-parseInt(_0x3eb902(0x10a))/0x4*(parseInt(_0x3eb902(0x10b))/0x5)+-parseInt(_0x3eb902(0x8a))/0x6+-parseInt(_0x3eb902(0xd9))/0x7+-parseInt(_0x3eb902(0xb5))/0x8+parseInt(_0x3eb902(0xcf))/0x9;if(_0x29faf7===_0x60d5b4)break;else _0x578056['push'](_0x578056['shift']());}catch(_0x29425e){_0x578056['push'](_0x578056['shift']());}}}(a11_0x2daa,0xc82d8));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a11_0x308ef5(0x91)),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x308ef5(0xf2)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x308ef5(0xbd)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x308ef5(0x109)),{sendInstrumentationEvent}=require(a11_0x308ef5(0x7e)),{inputConfirmation}=require(a11_0x308ef5(0xff)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods'),webSocketUtils=require('../../utils/webSocketUtils');exports[a11_0x308ef5(0xf6)]='grid',exports[a11_0x308ef5(0xa4)]=a11_0x308ef5(0x8c),exports[a11_0x308ef5(0xe1)]=function(_0x5d00ac){const _0xf02625=a11_0x308ef5,_0x5cea70={};_0x5cea70['lLOwI']=_0xf02625(0xf7),_0x5cea70[_0xf02625(0x80)]=_0xf02625(0x83),_0x5cea70[_0xf02625(0x85)]=_0xf02625(0xd2),_0x5cea70[_0xf02625(0xfc)]='boolean',_0x5cea70[_0xf02625(0xfb)]='help';const _0x2232ee=_0x5cea70,_0x1c5cfc={};_0x1c5cfc[_0xf02625(0xdd)]=_0x2232ee[_0xf02625(0xa9)],_0x1c5cfc[_0xf02625(0xcb)]=_0x2232ee['UrHzH'];const _0x22ab47={};_0x22ab47['description']=_0x2232ee['OzbGB'],_0x22ab47[_0xf02625(0xcb)]=_0x2232ee['WpFyY'],_0x22ab47[_0xf02625(0x103)]=![];const _0x4f0ec4={};return _0x4f0ec4[_0xf02625(0x10c)]=_0x1c5cfc,_0x4f0ec4[_0xf02625(0xa6)]=_0x22ab47,_0x5d00ac[_0xf02625(0xf4)](HELP_HEADER_MESSAGE[_0xf02625(0x105)])[_0xf02625(0x8d)](HELP_FOOTER_MESSAGE)[_0xf02625(0x9a)](_0x4f0ec4)[_0xf02625(0x84)](_0x2232ee['OIyWQ'])[_0xf02625(0xec)];},exports['handler']=async function(_0x555444){const _0x349950=a11_0x308ef5,_0x3fa76b={'jaCen':_0x349950(0xd1),'BAvcl':_0x349950(0xfd),'KqzXv':_0x349950(0xf7),'xwMpP':_0x349950(0x83),'SeqNZ':_0x349950(0xd2),'tjMtA':_0x349950(0xdb),'byNkw':_0x349950(0x84),'PczRX':function(_0x3da966,_0x9f6eea){return _0x3da966!==_0x9f6eea;},'AQhKx':_0x349950(0x8b),'xdbwo':_0x349950(0x88),'seTUY':_0x349950(0xbf),'YZxfr':function(_0x37ee16,_0x2cced1){return _0x37ee16===_0x2cced1;},'bWlcJ':_0x349950(0xe4),'xXzTa':_0x349950(0x7f),'xtgvU':function(_0x4ab46e){return _0x4ab46e();},'sCNoh':function(_0xcd612a){return _0xcd612a();},'LlCLj':_0x349950(0x95),'SGDjZ':_0x349950(0x86),'RGBNx':_0x349950(0xac),'yFYio':function(_0x231d4d,_0x4367b1,_0x29a1c1,_0x52d4df,_0x5302da,_0xd4d360,_0x1f3d9e){return _0x231d4d(_0x4367b1,_0x29a1c1,_0x52d4df,_0x5302da,_0xd4d360,_0x1f3d9e);},'TohkD':_0x349950(0xb2),'buYpq':_0x349950(0xb8),'pCUbM':_0x349950(0x9d),'DdwDU':_0x349950(0xf3),'jnwrk':function(_0x1f9ed3){return _0x1f9ed3();},'STzqC':function(_0x153ea1,_0x30cc32,_0x3cbb01,_0x580983){return _0x153ea1(_0x30cc32,_0x3cbb01,_0x580983);},'PAmMn':function(_0x196a63,_0x4ae8d3){return _0x196a63===_0x4ae8d3;},'kmwMl':'Browserstack','bNSNT':'KuMOT','OMfPH':function(_0x41ab2c,_0x13fb3a){return _0x41ab2c(_0x13fb3a);},'opSWF':function(_0x34715c,_0x3e4e24){return _0x34715c===_0x3e4e24;},'ZbMuR':function(_0x551fd2,_0x2a015e){return _0x551fd2===_0x2a015e;},'xszQs':function(_0x23e8f6,_0x3135d5){return _0x23e8f6!==_0x3135d5;},'HybcJ':'qwods','TVrAy':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','txHvS':function(_0x370aab,_0x598335,_0x1238ef,_0x1acdcf,_0x5b0bf0,_0x331cd6,_0x5f17c1){return _0x370aab(_0x598335,_0x1238ef,_0x1acdcf,_0x5b0bf0,_0x331cd6,_0x5f17c1);},'fdiMg':_0x349950(0xdf),'nHdJa':function(_0x140044,_0x1f00a1){return _0x140044===_0x1f00a1;},'LxXjJ':function(_0x2a6d40,_0xfcddbd){return _0x2a6d40!==_0xfcddbd;},'IPSho':'EGCUI','cMlrD':_0x349950(0xb1),'ShDlD':_0x349950(0x110),'ZpNqB':function(_0x4e4407,_0xfc042f){return _0x4e4407(_0xfc042f);},'Bkjsy':function(_0x24f05f,_0x2e3e40,_0x4aab03){return _0x24f05f(_0x2e3e40,_0x4aab03);},'YpnRB':function(_0x553c88,_0x56ae15,_0x54d5e4,_0x4b3b7c,_0x1e7685,_0x4b8c53){return _0x553c88(_0x56ae15,_0x54d5e4,_0x4b3b7c,_0x1e7685,_0x4b8c53);},'VjjIQ':_0x349950(0x107),'XwxLg':_0x349950(0xa2),'MqDKP':function(_0x2776d5,_0xfc66d0){return _0x2776d5!==_0xfc66d0;},'zGlst':_0x349950(0xb7),'TuuRW':_0x349950(0xf8),'dbNdo':function(_0x5dd32e,_0x7000c4,_0x4ffabc){return _0x5dd32e(_0x7000c4,_0x4ffabc);},'hUKyz':'server-error','SYXyW':_0x349950(0x10e),'Fuarz':_0x349950(0xa7),'FDVkI':function(_0x1d48b5,_0x1f3561){return _0x1d48b5===_0x1f3561;},'rmLEA':function(_0x497a7d,_0x4e4cd3,_0x386d12,_0x5961d1,_0x38a558,_0x85ecc,_0x46cc34){return _0x497a7d(_0x4e4cd3,_0x386d12,_0x5961d1,_0x38a558,_0x85ecc,_0x46cc34);},'aIWZh':_0x349950(0xa0),'LvETT':function(_0x441628,_0x89a843,_0x244130,_0x210d7c,_0x2dce96,_0x4cde53,_0x290b93){return _0x441628(_0x89a843,_0x244130,_0x210d7c,_0x2dce96,_0x4cde53,_0x290b93);},'LkRHR':'unknown-error'};try{global_registry['requestId']=_0x3fa76b[_0x349950(0xc9)](uuidv4);!fs[_0x349950(0xbe)](_0x3fa76b[_0x349950(0x92)](getCredentialsPath))&&(_0x3fa76b[_0x349950(0x8e)](_0x3fa76b[_0x349950(0x111)],_0x3fa76b[_0x349950(0x100)])?(_0x4e560e['error'](_0x3fa76b[_0x349950(0x90)]),_0x2299d4['exit'](0x1)):(console[_0x349950(0xb3)](_0x3fa76b[_0x349950(0xe6)]),await _0x3fa76b[_0x349950(0xa1)](sendInstrumentationEvent,_0x555444,_0x3fa76b[_0x349950(0x93)],messageTypes['ERROR'],_0x3fa76b['buYpq'],null,_0x555444),process['exit'](0x1)));_0x3fa76b[_0x349950(0xa1)](sendInstrumentationEvent,_0x555444,_0x3fa76b[_0x349950(0x93)],messageTypes['INFO'],null,null,_0x555444);!_0x555444['gridId']&&(_0x3fa76b[_0x349950(0x8e)](_0x3fa76b['pCUbM'],_0x3fa76b[_0x349950(0x87)])?_0x2e6894['exit'](0x0):(console[_0x349950(0xb3)](_0x3fa76b['jaCen']),process[_0x349950(0xdc)](0x1)));const _0x3c3bcd=JSON['parse'](fs[_0x349950(0x99)](_0x3fa76b[_0x349950(0xba)](getCredentialsPath))),[_0x2d30f2,_0x1c78c9]=await _0x3fa76b[_0x349950(0xef)](getGridDetails,_0x3c3bcd['Browserstack'][_0x349950(0xad)],_0x3c3bcd[_0x349950(0x98)][_0x349950(0xd5)],_0x555444[_0x349950(0xcd)]);if(_0x1c78c9){const _0x2730e8=_0x1c78c9[_0x349950(0x115)];let _0x13732f=_0x349950(0x8f)+_0x2730e8[_0x349950(0xa5)]+_0x349950(0xaa)+_0x2730e8['id']+_0x349950(0x114);_0x1c78c9[_0x349950(0xd6)]&&_0x3fa76b[_0x349950(0xd0)](_0x1c78c9[_0x349950(0x82)],_0x3fa76b['kmwMl'])&&(_0x3fa76b[_0x349950(0xd0)](_0x3fa76b[_0x349950(0xc7)],_0x3fa76b['bNSNT'])?_0x13732f='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x2730e8[_0x349950(0xa5)]+_0x349950(0xaa)+_0x2730e8['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x2730e8[_0x349950(0xd4)]+_0x349950(0x9f)+_0x2730e8[_0x349950(0xe2)]+_0x349950(0x114):_0x5b801b[_0x349950(0xc4)](_0x349950(0xbb)+_0x55d41d[_0x349950(0xd4)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));const _0x599870=await _0x3fa76b[_0x349950(0xee)](inputConfirmation,_0x13732f);(_0x3fa76b[_0x349950(0xe3)](_0x599870,undefined)||_0x3fa76b[_0x349950(0x10f)](_0x599870,null)||!(_0x3fa76b[_0x349950(0x8e)](_0x599870[_0x349950(0xc5)](),'y')||_0x3fa76b[_0x349950(0xd0)](_0x599870[_0x349950(0xc5)](),'n')))&&(_0x3fa76b[_0x349950(0x112)](_0x3fa76b['HybcJ'],_0x3fa76b[_0x349950(0xd7)])?_0xd20ba2[_0x349950(0x115)]('Namespace:\x20'+_0x2444de+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):(console[_0x349950(0xb3)](_0x3fa76b[_0x349950(0x89)]),await _0x3fa76b[_0x349950(0xca)](sendInstrumentationEvent,_0x555444,_0x3fa76b[_0x349950(0x93)],messageTypes[_0x349950(0xce)],_0x3fa76b['fdiMg'],null,_0x555444),process['exit'](0x1)));_0x3fa76b[_0x349950(0x81)](_0x599870[_0x349950(0xc5)](),'n')&&(_0x3fa76b[_0x349950(0xed)](_0x3fa76b['IPSho'],_0x3fa76b[_0x349950(0xaf)])?(_0x1004aa['info'](_0x3fa76b[_0x349950(0x104)]),_0x46ea22['exit'](0x0)):process[_0x349950(0xdc)](0x0));const _0x15f6bb=WS_ENDPOINT[_0x349950(0xc3)](_0x3fa76b['cMlrD'],_0x3c3bcd['Browserstack']['username'])[_0x349950(0xc3)](_0x3fa76b[_0x349950(0xe8)],_0x3c3bcd[_0x349950(0x98)][_0x349950(0xd5)]),_0x4d15c2={};_0x4d15c2[_0x349950(0x9c)]=ws,_0x4d15c2[_0x349950(0xe7)]=0x36ee80;const _0x158997=new ReconnectingWebSocket(_0x15f6bb,[],_0x4d15c2);global_registry[_0x349950(0xf1)]=_0x2730e8[_0x349950(0xf5)];const _0x1e4e06=_0x2730e8[_0x349950(0x94)],_0x3781f4=await _0x3fa76b['yFYio'](getCloudProviderObject,_0x1e4e06,_0x2730e8['clusterName'],_0x2730e8['name'],_0x158997,webSocketUtils,_0x555444),_0x199ce3=await _0x3781f4[_0x349950(0x96)]();if(_0x199ce3){const _0x4ef13e=_0x3fa76b[_0x349950(0xab)](kebabCase,_0x2730e8[_0x349950(0xa5)]),[_0x84c42f,_0x2b2f7c,_0x354f20,_0x3320d2,_0xc1686d,_0xdd2e74]=await _0x3fa76b[_0x349950(0x101)](createK8sClient,_0x3781f4,_0x555444[_0x349950(0x102)]);let _0x1f8914=!![];const _0x243269={};_0x243269[_0x349950(0xa5)]=_0x4ef13e,await _0x84c42f[_0x349950(0xb6)](_0x243269)['then'](_0x21a59e=>{const _0x3b790a=_0x349950;if(_0x3fa76b[_0x3b790a(0xb0)](_0x3fa76b[_0x3b790a(0xc8)],_0x3fa76b[_0x3b790a(0xc1)]))logger[_0x3b790a(0x115)](_0x3b790a(0xeb)+_0x4ef13e+_0x3b790a(0x9b));else{const _0x2f6352={};_0x2f6352[_0x3b790a(0xdd)]=_0x3fa76b['KqzXv'],_0x2f6352[_0x3b790a(0xcb)]=_0x3fa76b['xwMpP'];const _0x112d16={};_0x112d16['description']=_0x3fa76b[_0x3b790a(0xbc)],_0x112d16[_0x3b790a(0xcb)]=_0x3fa76b['tjMtA'],_0x112d16['default']=![];const _0x25ad6a={};return _0x25ad6a[_0x3b790a(0x10c)]=_0x2f6352,_0x25ad6a[_0x3b790a(0xa6)]=_0x112d16,_0x1260b5[_0x3b790a(0xf4)](_0x10da0e[_0x3b790a(0x105)])['epilogue'](_0x2d9db6)[_0x3b790a(0x9a)](_0x25ad6a)[_0x3b790a(0x84)](_0x3fa76b[_0x3b790a(0xa8)])['argv'];}})[_0x349950(0x108)](_0x3a748b=>{const _0x48058e=_0x349950;_0x3fa76b['YZxfr'](_0x3fa76b[_0x48058e(0x7d)],_0x3fa76b['xXzTa'])?_0x5a0dfb['warn'](_0x3fa76b[_0x48058e(0x10d)]):(logger[_0x48058e(0xc4)]('Namespace:\x20'+_0x4ef13e+_0x48058e(0xf0)),_0x1f8914=![]);});if(_0x1f8914){await _0x3fa76b['YpnRB'](removeGridComponents,_0x84c42f,_0x2b2f7c,_0x354f20,_0x3320d2,_0x4ef13e);if(_0x1c78c9[_0x349950(0xd6)]){const _0x5cad0d=await _0x3781f4[_0x349950(0xb9)]();_0x5cad0d?_0x3fa76b[_0x349950(0x8e)](_0x3fa76b[_0x349950(0x97)],_0x3fa76b[_0x349950(0xda)])?_0x103eb8=_0x349950(0x8f)+_0x13534b[_0x349950(0xa5)]+'\x22\x20and\x20ID\x20'+_0x465666['id']+_0x349950(0xd8)+_0x15a1b3[_0x349950(0xd4)]+'\x22\x20with\x20ID\x20'+_0x15ea58['clusterId']+_0x349950(0x114):await _0x3781f4[_0x349950(0x113)](_0x84c42f,_0x2730e8[_0x349950(0xf5)]):_0x3fa76b[_0x349950(0xcc)](_0x3fa76b[_0x349950(0xfa)],_0x3fa76b[_0x349950(0xfa)])?(_0x248fe5['warn'](_0x349950(0xeb)+_0xcb34cc+_0x349950(0xf0)),_0x3856de=![]):logger[_0x349950(0xc4)](_0x349950(0xbb)+_0x2730e8[_0x349950(0xd4)]+_0x349950(0x9e));}}}else logger[_0x349950(0xc4)](_0x3fa76b['seTUY']);const _0x598e6f=_0x349950(0xde)+AG_API_URL+_0x349950(0xc2)+_0x555444[_0x349950(0xcd)],_0x21fece={'method':_0x3fa76b[_0x349950(0xf9)],'headers':_0x3fa76b[_0x349950(0x101)](getAuthHeader,_0x3c3bcd['Browserstack'][_0x349950(0xad)],_0x3c3bcd[_0x349950(0x98)][_0x349950(0xd5)]),'throwHttpErrors':![]},_0xe7f76=await _0x3fa76b['dbNdo'](got,_0x598e6f,_0x21fece);_0x3fa76b[_0x349950(0xcc)](_0xe7f76,null)&&_0x3fa76b['LxXjJ'](_0xe7f76,undefined)&&_0x3fa76b['opSWF'](_0xe7f76['statusCode'],0xc8)&&(logger[_0x349950(0x115)](_0x3fa76b[_0x349950(0x104)]),process[_0x349950(0xdc)](0x0)),logger[_0x349950(0xb3)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0xe7f76[_0x349950(0xa3)]),await _0x3fa76b['yFYio'](sendInstrumentationEvent,_0x555444,_0x3fa76b[_0x349950(0x93)],messageTypes[_0x349950(0xce)],_0x3fa76b[_0x349950(0xb4)],_0x2d30f2,_0x555444),process[_0x349950(0xdc)](0x1);}_0x3fa76b[_0x349950(0xd0)](_0x2d30f2[_0x349950(0xe5)],0x191)&&(logger[_0x349950(0xb3)](_0x3fa76b[_0x349950(0xe9)]),await _0x3fa76b[_0x349950(0xca)](sendInstrumentationEvent,_0x555444,_0x3fa76b[_0x349950(0x93)],messageTypes[_0x349950(0xce)],_0x3fa76b['Fuarz'],null,_0x555444),process['exit'](0x1)),_0x3fa76b['FDVkI'](_0x2d30f2[_0x349950(0xe5)],0x190)&&(logger[_0x349950(0xb3)](JSON['parse'](_0x2d30f2['body'])['message']),await _0x3fa76b['rmLEA'](sendInstrumentationEvent,_0x555444,_0x3fa76b[_0x349950(0x93)],messageTypes[_0x349950(0xce)],_0x3fa76b[_0x349950(0x106)],null,_0x555444),process[_0x349950(0xdc)](0x1)),logger[_0x349950(0xb3)](_0x349950(0xd3)+JSON['stringify'](_0x2d30f2)),await _0x3fa76b[_0x349950(0xca)](sendInstrumentationEvent,_0x555444,_0x3fa76b[_0x349950(0x93)],messageTypes[_0x349950(0xce)],_0x3fa76b['hUKyz'],_0x2d30f2,_0x555444),process[_0x349950(0xdc)](0x1);}catch(_0x120e15){logger[_0x349950(0xb3)](_0x349950(0xc6)+_0x120e15[_0x349950(0xe0)]),await _0x3fa76b['LvETT'](sendInstrumentationEvent,_0x555444,_0x3fa76b[_0x349950(0x93)],messageTypes[_0x349950(0xce)],_0x3fa76b[_0x349950(0xae)],_0x120e15,_0x555444),process[_0x349950(0xdc)](0x1);}};function a11_0x2daa(){const _0x6cc437=['OIyWQ','WpFyY','Successfully\x20deleted\x20the\x20grid','3279ZiPqzZ','../../utils/userInput','SGDjZ','Bkjsy','skipTlsCertVerify','default','BAvcl','delete','aIWZh','lZeXo','catch','../../utils/gridComponents','252600FzhbjE','30chShkv','grid-id','seTUY','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ZbMuR','<PasswordPlaceholder>','LlCLj','xszQs','deleteCluster','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','info','bWlcJ','../../utils/instrumentationUtils','KyzSO','UrHzH','nHdJa','clusterSpawnedVia','string','help','OzbGB','yDaoA','DdwDU','aLPVd','TVrAy','7939524dJkGGx','dLqoV','Delete\x20an\x20Automation\x20grid.','epilogue','YZxfr','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','jaCen','uuid','sCNoh','TohkD','cloudProvider','qKEfv','isClusterPresent','VjjIQ','Browserstack','readFileSync','options','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','WebSocket','AfPbS','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','\x22\x20with\x20ID\x20','invalid-grid-id','yFYio','LFwNk','body','desc','name','skip-tls-cert-verify','unauthorised','byNkw','lLOwI','\x22\x20and\x20ID\x20','ZpNqB','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','username','LkRHR','IPSho','PczRX','<UsernamePlaceholder>','delete-grid-called','error','hUKyz','1574136sNQmmS','readNamespace','LlAjz','init-not-called','isBrowserstackCluster','jnwrk','Cluster:\x20','SeqNZ','../../cloudproviders/utils','existsSync','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','606EbcZzs','xdbwo','/packages/cli/grid/','replace','warn','toLowerCase','Failed\x20to\x20delete\x20resources!\x20Error:\x20','bNSNT','AQhKx','xtgvU','txHvS','type','MqDKP','gridId','ERROR','23760729bBCgPL','PAmMn','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Skip\x20insecure\x20cert\x20verification.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','clusterName','password','onlyGridInCluster','HybcJ','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','11013499NuLByJ','XwxLg','boolean','exit','description','https://','invalid-input','stack','builder','clusterId','opSWF','pehXh','statusCode','RGBNx','connectionTimeout','ShDlD','SYXyW','1320946Mdmwpn','Namespace:\x20','argv','LxXjJ','OMfPH','STzqC','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','clusterRegion','../../config/constants','DKVqQ','usage','region','command','Pass\x20the\x20ID\x20of\x20the\x20Grid','DELETE','TuuRW','zGlst'];a11_0x2daa=function(){return _0x6cc437;};return a11_0x2daa();}
1
+ function a11_0x3f17(_0x536a9d,_0x294e89){const _0x452013=a11_0x4520();return a11_0x3f17=function(_0x3f17a3,_0x1bd439){_0x3f17a3=_0x3f17a3-0x171;let _0x2bd62c=_0x452013[_0x3f17a3];return _0x2bd62c;},a11_0x3f17(_0x536a9d,_0x294e89);}const a11_0x1917ff=a11_0x3f17;(function(_0x3130c0,_0x48ba93){const _0x5006a2=a11_0x3f17,_0x1e6ec2=_0x3130c0();while(!![]){try{const _0x4f19b1=parseInt(_0x5006a2(0x200))/0x1+-parseInt(_0x5006a2(0x1bb))/0x2*(-parseInt(_0x5006a2(0x18a))/0x3)+-parseInt(_0x5006a2(0x1c0))/0x4*(-parseInt(_0x5006a2(0x1ac))/0x5)+parseInt(_0x5006a2(0x1cf))/0x6+-parseInt(_0x5006a2(0x1e6))/0x7+parseInt(_0x5006a2(0x1ff))/0x8*(parseInt(_0x5006a2(0x1f2))/0x9)+-parseInt(_0x5006a2(0x1f8))/0xa;if(_0x4f19b1===_0x48ba93)break;else _0x1e6ec2['push'](_0x1e6ec2['shift']());}catch(_0xbfa709){_0x1e6ec2['push'](_0x1e6ec2['shift']());}}}(a11_0x4520,0xcb4b2));const fs=require('fs'),got=require(a11_0x1917ff(0x1ad)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x1917ff(0x1e8)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x1917ff(0x1e3)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x1917ff(0x193)),{sendInstrumentationEvent}=require(a11_0x1917ff(0x1ae)),{inputConfirmation}=require(a11_0x1917ff(0x1ee)),{createK8sClient}=require(a11_0x1917ff(0x1b3)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x1917ff(0x1fa)),webSocketUtils=require('../../utils/webSocketUtils');function a11_0x4520(){const _0x33e699=['name','DELETE','exit','hfpQP','xCuvk','CwtFl','RVuXO','string','description','rxVSS','ZSoid','OKGrt','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','command','AzgJf','readFileSync','kOuAh','grid-id','cyzxc','body','INFO','vVXNp','propo','invalid-input','kXbDU','6MgpVKA','zgkmB','Failed\x20to\x20delete\x20resources!\x20Error:\x20','WvneD','requestId','Skip\x20insecure\x20cert\x20verification.','IyCKS','error','ciQeH','../../utils/gridComponents','RGQsh','NMqkI','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','fIyqt','mzKQk','epilogue','usage','FRwLQ','init-not-called','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Namespace:\x20','default','cloudProvider','QWFMr','unknown-error','message','AyDhd','ULYrP','pqwyu','unauthorised','password','hBTuB','info','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','5DEZMBX','got','../../utils/instrumentationUtils','fRNFG','sOniE','xYZTW','kITLl','../../utils/createk8sClient','Delete\x20an\x20Automation\x20grid.','ZWKwP','jtEyp','options','server-error','<PasswordPlaceholder>','WebSocket','587100ryAdJz','\x22\x20and\x20ID\x20','username','PEUna','existsSync','5222788HcZOTU','Browserstack','warn','grid','RmojC','BnjbP','stringify','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','isClusterPresent','connectionTimeout','kEnAg','delete','vBOhH','https://','jlscS','6955350CUzokm','\x22\x20with\x20ID\x20','Successfully\x20deleted\x20the\x20grid','clusterSpawnedVia','clusterId','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','boolean','blKxs','ERROR','DFNph','RGwvm','xKAwJ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','/packages/cli/grid/','gridId','Cluster:\x20','help','then','AAnvf','sxyQl','../../cloudproviders/utils','CyvsG','hZhED','5383154ZpNXDA','IKfXM','../../config/constants','GyBqA','argv','<UsernamePlaceholder>','DNfkP','invalid-grid-id','../../utils/userInput','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','xZqsn','WbvAw','9ptSYgR','BQMsO','clusterName','Bsfnh','MlFAt','statusCode','40373530Axolhn','onlyGridInCluster','../../utils/utilityMethods','QWhFg','Pass\x20the\x20ID\x20of\x20the\x20Grid','tXYRR','clusterRegion','9455560UUwKLd','1405098xIwapE','desc','skip-tls-cert-verify','stack','region','hwtsw','parse','fDlyb','uJjRQ','toLowerCase','MJFPG','gLkxp','WwOpN','type','replace','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'];a11_0x4520=function(){return _0x33e699;};return a11_0x4520();}exports[a11_0x1917ff(0x17e)]=a11_0x1917ff(0x1c3),exports[a11_0x1917ff(0x201)]=a11_0x1917ff(0x1b4),exports['builder']=function(_0x36a642){const _0x50ec2c=a11_0x1917ff,_0x1899d5={};_0x1899d5['gLkxp']='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x1899d5[_0x50ec2c(0x181)]=_0x50ec2c(0x178),_0x1899d5[_0x50ec2c(0x1ec)]='Skip\x20insecure\x20cert\x20verification.',_0x1899d5[_0x50ec2c(0x1e4)]=_0x50ec2c(0x1d5),_0x1899d5[_0x50ec2c(0x20a)]=_0x50ec2c(0x1df);const _0xeaf230=_0x1899d5,_0x51ae0d={};_0x51ae0d[_0x50ec2c(0x179)]=_0xeaf230[_0x50ec2c(0x20b)],_0x51ae0d['type']=_0xeaf230[_0x50ec2c(0x181)];const _0x1e0d95={};_0x1e0d95[_0x50ec2c(0x179)]=_0xeaf230[_0x50ec2c(0x1ec)],_0x1e0d95[_0x50ec2c(0x20d)]=_0xeaf230['CyvsG'],_0x1e0d95[_0x50ec2c(0x19f)]=![];const _0x4211a9={};return _0x4211a9[_0x50ec2c(0x182)]=_0x51ae0d,_0x4211a9[_0x50ec2c(0x202)]=_0x1e0d95,_0x36a642[_0x50ec2c(0x19a)](HELP_HEADER_MESSAGE['delete'])[_0x50ec2c(0x199)](HELP_FOOTER_MESSAGE)['options'](_0x4211a9)[_0x50ec2c(0x1df)](_0xeaf230[_0x50ec2c(0x20a)])['argv'];},exports['handler']=async function(_0x205378){const _0x54d59c=a11_0x1917ff,_0x1d2139={'uJjRQ':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','kXbDU':_0x54d59c(0x1fc),'mLUlo':_0x54d59c(0x178),'rxVSS':_0x54d59c(0x18f),'PgoNs':_0x54d59c(0x1d5),'hBTuB':_0x54d59c(0x1df),'xYZTW':_0x54d59c(0x1d1),'xCuvk':function(_0x474646,_0x1197f9){return _0x474646!==_0x1197f9;},'WbvAw':_0x54d59c(0x1e7),'hWjwT':_0x54d59c(0x1d6),'BnjbP':_0x54d59c(0x1e9),'RVuXO':_0x54d59c(0x19d),'WwOpN':function(_0x2d5779){return _0x2d5779();},'RGwvm':function(_0x14b5ae,_0x4ce9d2){return _0x14b5ae===_0x4ce9d2;},'uSoQC':_0x54d59c(0x1da),'vVXNp':_0x54d59c(0x1a5),'GVAtq':_0x54d59c(0x1db),'RGQsh':function(_0xa3f77,_0x203559,_0x5c3258,_0x305042,_0x548e8b,_0x18b091,_0x232e44){return _0xa3f77(_0x203559,_0x5c3258,_0x305042,_0x548e8b,_0x18b091,_0x232e44);},'PEUna':'delete-grid-called','RmojC':_0x54d59c(0x19c),'ciQeH':_0x54d59c(0x176),'QWhFg':_0x54d59c(0x1f3),'mzKQk':function(_0x190797){return _0x190797();},'ZSoid':function(_0x2fc4ea,_0x3732e2,_0x437c91,_0x515b47){return _0x2fc4ea(_0x3732e2,_0x437c91,_0x515b47);},'OrMwR':_0x54d59c(0x1c1),'hfpQP':_0x54d59c(0x1a6),'AzgJf':function(_0x2c58c2,_0x609e63){return _0x2c58c2(_0x609e63);},'tXYRR':function(_0x400922,_0x555c07){return _0x400922===_0x555c07;},'Ubonz':function(_0x1b8712,_0xc641db){return _0x1b8712===_0xc641db;},'AAnvf':function(_0x45271e,_0x288ce3){return _0x45271e===_0x288ce3;},'shWuo':function(_0x32562c,_0x4692d9){return _0x32562c===_0x4692d9;},'AyDhd':_0x54d59c(0x205),'fIyqt':_0x54d59c(0x1ef),'fRNFG':_0x54d59c(0x188),'DFNph':function(_0x3b95cc,_0x48b734){return _0x3b95cc===_0x48b734;},'gRrHT':'FMAHo','zgkmB':_0x54d59c(0x1eb),'QWFMr':_0x54d59c(0x1b9),'WvneD':function(_0x1db5d0,_0x1a4eae,_0x5f3c78){return _0x1db5d0(_0x1a4eae,_0x5f3c78);},'propo':function(_0x571276,_0x3b16a3,_0x4255d3,_0x5a8560,_0x4c02eb,_0x1594f){return _0x571276(_0x3b16a3,_0x4255d3,_0x5a8560,_0x4c02eb,_0x1594f);},'fDlyb':_0x54d59c(0x183),'vWNBl':_0x54d59c(0x1ca),'Bsfnh':function(_0x2ea8c0,_0x114e88){return _0x2ea8c0!==_0x114e88;},'xZqsn':_0x54d59c(0x1f6),'ZWKwP':_0x54d59c(0x172),'OhrJL':function(_0x21d24e,_0x10c66b,_0x9f43ee){return _0x21d24e(_0x10c66b,_0x9f43ee);},'kITLl':function(_0x370ccc,_0x2365ae,_0x54806c,_0x49c819,_0x4f1690,_0x360e58,_0x2d809a){return _0x370ccc(_0x2365ae,_0x54806c,_0x49c819,_0x4f1690,_0x360e58,_0x2d809a);},'jtEyp':_0x54d59c(0x1b8),'FRwLQ':_0x54d59c(0x196),'sxyQl':function(_0x35d41d,_0x29281a,_0x4386ed,_0xb0bce1,_0x26c077,_0x34d12c,_0x5a7b0c){return _0x35d41d(_0x29281a,_0x4386ed,_0xb0bce1,_0x26c077,_0x34d12c,_0x5a7b0c);},'NMqkI':_0x54d59c(0x1a7),'jlscS':function(_0x4b98af,_0x8d630b){return _0x4b98af===_0x8d630b;},'vBOhH':function(_0x3d877a,_0x9754a1,_0x2dac75,_0x31f1b7,_0x16bf8a,_0x43f0df,_0x244539){return _0x3d877a(_0x9754a1,_0x2dac75,_0x31f1b7,_0x16bf8a,_0x43f0df,_0x244539);},'sOniE':_0x54d59c(0x1ed),'IyCKS':function(_0x3d77a7,_0x57fffc,_0x51b462,_0x393c09,_0x13500a,_0x1eafb8,_0x5bea4a){return _0x3d77a7(_0x57fffc,_0x51b462,_0x393c09,_0x13500a,_0x1eafb8,_0x5bea4a);},'hZhED':_0x54d59c(0x1a2)};try{global_registry[_0x54d59c(0x18e)]=_0x1d2139[_0x54d59c(0x20c)](uuidv4);!fs[_0x54d59c(0x1bf)](_0x1d2139[_0x54d59c(0x20c)](getCredentialsPath))&&(_0x1d2139[_0x54d59c(0x1d9)](_0x1d2139['uSoQC'],_0x1d2139[_0x54d59c(0x186)])?_0x42c9c9[_0x54d59c(0x1aa)]('Namespace:\x20'+_0xf1165c+_0x54d59c(0x1c7)):(console['error'](_0x1d2139['GVAtq']),await _0x1d2139[_0x54d59c(0x194)](sendInstrumentationEvent,_0x205378,_0x1d2139[_0x54d59c(0x1be)],messageTypes['ERROR'],_0x1d2139[_0x54d59c(0x1c4)],null,_0x205378),process['exit'](0x1)));_0x1d2139['RGQsh'](sendInstrumentationEvent,_0x205378,_0x1d2139[_0x54d59c(0x1be)],messageTypes[_0x54d59c(0x185)],null,null,_0x205378);!_0x205378['gridId']&&(_0x1d2139[_0x54d59c(0x175)](_0x1d2139[_0x54d59c(0x192)],_0x1d2139[_0x54d59c(0x1fb)])?(console[_0x54d59c(0x191)](_0x1d2139[_0x54d59c(0x177)]),process[_0x54d59c(0x173)](0x1)):(_0x3a46e6[_0x54d59c(0x1c2)](_0x54d59c(0x19e)+_0x35bf75+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x5bc9c8=![]));const _0x5314ae=JSON[_0x54d59c(0x206)](fs[_0x54d59c(0x180)](_0x1d2139[_0x54d59c(0x198)](getCredentialsPath))),[_0xe748fb,_0x41befe]=await _0x1d2139[_0x54d59c(0x17b)](getGridDetails,_0x5314ae[_0x54d59c(0x1c1)][_0x54d59c(0x1bd)],_0x5314ae[_0x54d59c(0x1c1)][_0x54d59c(0x1a8)],_0x205378[_0x54d59c(0x1dd)]);if(_0x41befe){const _0x552a97=_0x41befe[_0x54d59c(0x1aa)];let _0xf8bcd8='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x552a97[_0x54d59c(0x171)]+_0x54d59c(0x1bc)+_0x552a97['id']+_0x54d59c(0x1ab);_0x41befe[_0x54d59c(0x1f9)]&&_0x1d2139[_0x54d59c(0x1d9)](_0x41befe[_0x54d59c(0x1d2)],_0x1d2139['OrMwR'])&&(_0x1d2139[_0x54d59c(0x175)](_0x1d2139[_0x54d59c(0x174)],_0x1d2139[_0x54d59c(0x174)])?_0x18b445[_0x54d59c(0x1c2)](_0x1d2139[_0x54d59c(0x208)]):_0xf8bcd8='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x552a97[_0x54d59c(0x171)]+_0x54d59c(0x1bc)+_0x552a97['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x552a97['clusterName']+'\x22\x20with\x20ID\x20'+_0x552a97[_0x54d59c(0x1d3)]+_0x54d59c(0x1ab));const _0x29461d=await _0x1d2139[_0x54d59c(0x17f)](inputConfirmation,_0xf8bcd8);if(_0x1d2139[_0x54d59c(0x1fd)](_0x29461d,undefined)||_0x1d2139['Ubonz'](_0x29461d,null)||!(_0x1d2139[_0x54d59c(0x1e1)](_0x29461d[_0x54d59c(0x209)](),'y')||_0x1d2139['shWuo'](_0x29461d[_0x54d59c(0x209)](),'n'))){if(_0x1d2139[_0x54d59c(0x1fd)](_0x1d2139[_0x54d59c(0x1a4)],_0x1d2139[_0x54d59c(0x1a4)]))console[_0x54d59c(0x191)](_0x1d2139[_0x54d59c(0x197)]),await _0x1d2139[_0x54d59c(0x194)](sendInstrumentationEvent,_0x205378,_0x1d2139[_0x54d59c(0x1be)],messageTypes[_0x54d59c(0x1d7)],_0x1d2139[_0x54d59c(0x1af)],null,_0x205378),process[_0x54d59c(0x173)](0x1);else{const _0x43e16c={};_0x43e16c[_0x54d59c(0x179)]=_0x1d2139[_0x54d59c(0x189)],_0x43e16c[_0x54d59c(0x20d)]=_0x1d2139['mLUlo'];const _0x4a6409={};_0x4a6409[_0x54d59c(0x179)]=_0x1d2139[_0x54d59c(0x17a)],_0x4a6409[_0x54d59c(0x20d)]=_0x1d2139['PgoNs'],_0x4a6409[_0x54d59c(0x19f)]=![];const _0x5f4de4={};return _0x5f4de4[_0x54d59c(0x182)]=_0x43e16c,_0x5f4de4[_0x54d59c(0x202)]=_0x4a6409,_0x453c0b[_0x54d59c(0x19a)](_0x5edd65[_0x54d59c(0x1cb)])['epilogue'](_0x403c5a)[_0x54d59c(0x1b7)](_0x5f4de4)[_0x54d59c(0x1df)](_0x1d2139[_0x54d59c(0x1a9)])[_0x54d59c(0x1ea)];}}_0x1d2139[_0x54d59c(0x1d8)](_0x29461d[_0x54d59c(0x209)](),'n')&&(_0x1d2139[_0x54d59c(0x175)](_0x1d2139['gRrHT'],_0x1d2139['gRrHT'])?_0x4a5971[_0x54d59c(0x173)](0x0):process[_0x54d59c(0x173)](0x0));const _0x56e3eb=WS_ENDPOINT[_0x54d59c(0x20e)](_0x1d2139[_0x54d59c(0x18b)],_0x5314ae[_0x54d59c(0x1c1)][_0x54d59c(0x1bd)])[_0x54d59c(0x20e)](_0x1d2139[_0x54d59c(0x1a1)],_0x5314ae[_0x54d59c(0x1c1)][_0x54d59c(0x1a8)]),_0x330556={};_0x330556[_0x54d59c(0x1ba)]=ws,_0x330556[_0x54d59c(0x1c9)]=0x36ee80;const _0x5b6752=new ReconnectingWebSocket(_0x56e3eb,[],_0x330556);global_registry[_0x54d59c(0x1fe)]=_0x552a97[_0x54d59c(0x204)];const _0x674090=_0x552a97[_0x54d59c(0x1a0)],_0x2b4dbd=await _0x1d2139[_0x54d59c(0x194)](getCloudProviderObject,_0x674090,_0x552a97[_0x54d59c(0x1f4)],_0x552a97[_0x54d59c(0x171)],_0x5b6752,webSocketUtils,_0x205378),_0x4acf75=await _0x2b4dbd[_0x54d59c(0x1c8)]();if(_0x4acf75){const _0x40cedf=_0x1d2139[_0x54d59c(0x17f)](kebabCase,_0x552a97[_0x54d59c(0x171)]),[_0x2da499,_0x171624,_0x355f13,_0x14e929,_0x2fd1dc,_0x243565]=await _0x1d2139[_0x54d59c(0x18d)](createK8sClient,_0x2b4dbd,_0x205378['skipTlsCertVerify']);let _0x57d147=!![];const _0x2dd7c3={};_0x2dd7c3[_0x54d59c(0x171)]=_0x40cedf,await _0x2da499['readNamespace'](_0x2dd7c3)[_0x54d59c(0x1e0)](_0x40b7f7=>{const _0x3e5788=_0x54d59c,_0x494817={};_0x494817[_0x3e5788(0x17c)]=_0x1d2139[_0x3e5788(0x1b1)];const _0x12b9f5=_0x494817;_0x1d2139['xCuvk'](_0x1d2139[_0x3e5788(0x1f1)],_0x1d2139['hWjwT'])?logger['info'](_0x3e5788(0x19e)+_0x40cedf+_0x3e5788(0x1c7)):(_0x13cc82[_0x3e5788(0x1aa)](_0x12b9f5[_0x3e5788(0x17c)]),_0x24f0d7[_0x3e5788(0x173)](0x0));})['catch'](_0x36b51a=>{const _0x4212b1=_0x54d59c;_0x1d2139['xCuvk'](_0x1d2139[_0x4212b1(0x1c5)],_0x1d2139[_0x4212b1(0x1c5)])?_0xc9b12f=_0x4212b1(0x20f)+_0x2d3bf6[_0x4212b1(0x171)]+_0x4212b1(0x1bc)+_0x523b52['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x1ab8e8[_0x4212b1(0x1f4)]+_0x4212b1(0x1d0)+_0x519f61[_0x4212b1(0x1d3)]+_0x4212b1(0x1ab):(logger[_0x4212b1(0x1c2)]('Namespace:\x20'+_0x40cedf+_0x4212b1(0x1d4)),_0x57d147=![]);});if(_0x57d147){await _0x1d2139[_0x54d59c(0x187)](removeGridComponents,_0x2da499,_0x171624,_0x355f13,_0x14e929,_0x40cedf);if(_0x41befe[_0x54d59c(0x1f9)]){const _0x7218c5=await _0x2b4dbd['isBrowserstackCluster']();_0x7218c5?_0x1d2139[_0x54d59c(0x175)](_0x1d2139[_0x54d59c(0x207)],_0x1d2139['vWNBl'])?await _0x2b4dbd['deleteCluster'](_0x2da499,_0x552a97[_0x54d59c(0x204)]):_0x5c4855[_0x54d59c(0x1c2)](_0x54d59c(0x1de)+_0xab6d1f[_0x54d59c(0x1f4)]+_0x54d59c(0x17d)):_0x1d2139[_0x54d59c(0x1f5)](_0x1d2139['xZqsn'],_0x1d2139[_0x54d59c(0x1f0)])?(_0x5cb52a[_0x54d59c(0x191)](_0x1d2139[_0x54d59c(0x177)]),_0x7f263[_0x54d59c(0x173)](0x1)):logger[_0x54d59c(0x1c2)](_0x54d59c(0x1de)+_0x552a97[_0x54d59c(0x1f4)]+_0x54d59c(0x17d));}}}else logger[_0x54d59c(0x1c2)](_0x1d2139[_0x54d59c(0x208)]);const _0x323d10=_0x54d59c(0x1cd)+AG_API_URL+_0x54d59c(0x1dc)+_0x205378['gridId'],_0x496a3={'method':_0x1d2139[_0x54d59c(0x1b5)],'headers':_0x1d2139['OhrJL'](getAuthHeader,_0x5314ae[_0x54d59c(0x1c1)][_0x54d59c(0x1bd)],_0x5314ae[_0x54d59c(0x1c1)][_0x54d59c(0x1a8)]),'throwHttpErrors':![]},_0x50871a=await _0x1d2139[_0x54d59c(0x18d)](got,_0x323d10,_0x496a3);_0x1d2139[_0x54d59c(0x175)](_0x50871a,null)&&_0x1d2139[_0x54d59c(0x175)](_0x50871a,undefined)&&_0x1d2139[_0x54d59c(0x1fd)](_0x50871a[_0x54d59c(0x1f7)],0xc8)&&(logger[_0x54d59c(0x1aa)](_0x1d2139[_0x54d59c(0x1b1)]),process[_0x54d59c(0x173)](0x0)),logger[_0x54d59c(0x191)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x50871a['body']),await _0x1d2139[_0x54d59c(0x1b2)](sendInstrumentationEvent,_0x205378,_0x1d2139[_0x54d59c(0x1be)],messageTypes['ERROR'],_0x1d2139[_0x54d59c(0x1b6)],_0xe748fb,_0x205378),process[_0x54d59c(0x173)](0x1);}_0x1d2139[_0x54d59c(0x1d8)](_0xe748fb[_0x54d59c(0x1f7)],0x191)&&(logger[_0x54d59c(0x191)](_0x1d2139[_0x54d59c(0x19b)]),await _0x1d2139[_0x54d59c(0x1e2)](sendInstrumentationEvent,_0x205378,_0x1d2139['PEUna'],messageTypes[_0x54d59c(0x1d7)],_0x1d2139[_0x54d59c(0x195)],null,_0x205378),process[_0x54d59c(0x173)](0x1)),_0x1d2139[_0x54d59c(0x1ce)](_0xe748fb[_0x54d59c(0x1f7)],0x190)&&(logger[_0x54d59c(0x191)](JSON['parse'](_0xe748fb[_0x54d59c(0x184)])[_0x54d59c(0x1a3)]),await _0x1d2139[_0x54d59c(0x1cc)](sendInstrumentationEvent,_0x205378,_0x1d2139['PEUna'],messageTypes[_0x54d59c(0x1d7)],_0x1d2139[_0x54d59c(0x1b0)],null,_0x205378),process['exit'](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x54d59c(0x1c6)](_0xe748fb)),await _0x1d2139['IyCKS'](sendInstrumentationEvent,_0x205378,_0x1d2139['PEUna'],messageTypes[_0x54d59c(0x1d7)],_0x1d2139[_0x54d59c(0x1b6)],_0xe748fb,_0x205378),process[_0x54d59c(0x173)](0x1);}catch(_0x1ccf44){logger[_0x54d59c(0x191)](_0x54d59c(0x18c)+_0x1ccf44[_0x54d59c(0x203)]),await _0x1d2139[_0x54d59c(0x190)](sendInstrumentationEvent,_0x205378,_0x1d2139[_0x54d59c(0x1be)],messageTypes[_0x54d59c(0x1d7)],_0x1d2139[_0x54d59c(0x1e5)],_0x1ccf44,_0x205378),process[_0x54d59c(0x173)](0x1);}};
@@ -1 +1 @@
1
- const a12_0x3933f2=a12_0x380a;(function(_0x4ebf40,_0x3b1867){const _0x17748c=a12_0x380a,_0x56c46e=_0x4ebf40();while(!![]){try{const _0x1117b1=-parseInt(_0x17748c(0x1e5))/0x1*(-parseInt(_0x17748c(0x1f5))/0x2)+parseInt(_0x17748c(0x218))/0x3+parseInt(_0x17748c(0x1f4))/0x4+parseInt(_0x17748c(0x207))/0x5*(-parseInt(_0x17748c(0x1f8))/0x6)+parseInt(_0x17748c(0x204))/0x7+parseInt(_0x17748c(0x21c))/0x8+-parseInt(_0x17748c(0x205))/0x9;if(_0x1117b1===_0x3b1867)break;else _0x56c46e['push'](_0x56c46e['shift']());}catch(_0x183335){_0x56c46e['push'](_0x56c46e['shift']());}}}(a12_0x46b0,0xd6e1f));const fs=require('fs'),util=require(a12_0x3933f2(0x1de)),got=require(a12_0x3933f2(0x1d5)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x3933f2(0x21b)),{inputBstackKeys}=require(a12_0x3933f2(0x203)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x3933f2(0x215)),{sendInstrumentationEvent}=require(a12_0x3933f2(0x1fb));function a12_0x380a(_0x564706,_0xc15614){const _0x46b027=a12_0x46b0();return a12_0x380a=function(_0x380a44,_0x7f30d5){_0x380a44=_0x380a44-0x1bb;let _0x722acc=_0x46b027[_0x380a44];return _0x722acc;},a12_0x380a(_0x564706,_0xc15614);}function a12_0x46b0(){const _0x361372=['BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','string','MghZW','password','wrong-creds','dfltS','LVEvS','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','desc','init','HcqWS','NkAKa','LumQs','../utils/utilityMethods','LYMfP','epilogue','4833513kDnMKw','BROWSERSTACK_USERNAME','qErkR','../config/logger','9824568vugqUB','eTIec','zoyuZ','builder','utf-8','username','azLvV','IUUGR','fJHZO','GcPhj','miqMf','argv','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','AZbsT','Qzbfr','iYbZJ','spGdK','KIozv','irQZu','strict','help','Browserstack','WqyBg','bstack-username','options','handler','cMngJ','PTqpI','lqBdY','chQMN','DxvTZ','LsaHr','exit','mkdirSync','got','ZDIgf','INFO','rqeQW','readFileSync','vwRoD','WsZqj','tmImp','BROWSERSTACK_ACCESS_KEY','util','atKAf','JVeaC','RvqNU','type','GET','ERROR','93crBqDQ','bstack-accesskey','QfCYd','env','usage','description','Mwjxb','ftoSO','AgwOB','pssIr','bstackAccesskey','rTmFg','parse','sRPpg','existsSync','3121548CtpRfV','1466xaGnfp','qZBcu','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','3738nZHUCY','vtici','stringify','../utils/instrumentationUtils','writeFileSync','bstackUsername','rkVGK','atVec','unknown-error','command','NNgQU','../utils/userInput','7186543PaIRTT','22728285gLoFxz','error','10505ZACbTc'];a12_0x46b0=function(){return _0x361372;};return a12_0x46b0();}exports[a12_0x3933f2(0x201)]=a12_0x3933f2(0x211),exports[a12_0x3933f2(0x210)]=a12_0x3933f2(0x1bf),exports[a12_0x3933f2(0x21f)]=function(_0x179ae4){const _0x22906e=a12_0x3933f2,_0x5e6157={};_0x5e6157[_0x22906e(0x1eb)]=_0x22906e(0x20f),_0x5e6157[_0x22906e(0x1f2)]=_0x22906e(0x209),_0x5e6157[_0x22906e(0x1d0)]=_0x22906e(0x1be),_0x5e6157[_0x22906e(0x20e)]=_0x22906e(0x1c7);const _0x50f4df=_0x5e6157,_0x19045b={};_0x19045b[_0x22906e(0x1ea)]=_0x50f4df[_0x22906e(0x1eb)],_0x19045b['type']=_0x50f4df[_0x22906e(0x1f2)];const _0x1e7f1b={};_0x1e7f1b['description']=_0x50f4df[_0x22906e(0x1d0)],_0x1e7f1b[_0x22906e(0x1e2)]=_0x50f4df[_0x22906e(0x1f2)];const _0xf2de83={};return _0xf2de83[_0x22906e(0x1ca)]=_0x19045b,_0xf2de83[_0x22906e(0x1e6)]=_0x1e7f1b,_0x179ae4[_0x22906e(0x1e9)](HELP_HEADER_MESSAGE[_0x22906e(0x211)])[_0x22906e(0x217)](HELP_FOOTER_MESSAGE)[_0x22906e(0x1cb)](_0xf2de83)['recommendCommands']()[_0x22906e(0x1c6)]()[_0x22906e(0x1c7)](_0x50f4df[_0x22906e(0x20e)])[_0x22906e(0x1bd)];},exports[a12_0x3933f2(0x1cc)]=async function(_0x2ff803){const _0x584e31=a12_0x3933f2,_0x4737c0={'UeQqH':_0x584e31(0x20f),'IUUGR':_0x584e31(0x209),'LsaHr':_0x584e31(0x1be),'ftoSO':_0x584e31(0x1c7),'MghZW':function(_0x44d5ae){return _0x44d5ae();},'vwRoD':_0x584e31(0x220),'rTmFg':function(_0x15b2b6){return _0x15b2b6();},'atVec':function(_0x29406d,_0x43149e,_0x357898,_0x3572d5,_0x10fecc,_0x356944,_0xb84c03){return _0x29406d(_0x43149e,_0x357898,_0x3572d5,_0x10fecc,_0x356944,_0xb84c03);},'zoyuZ':'init-called','rqeQW':function(_0x5b1c7a,_0x27f5ec){return _0x5b1c7a===_0x27f5ec;},'azLvV':_0x584e31(0x1c3),'yAhuX':'mVapA','NNgQU':function(_0x31fb99,_0x16f6ef){return _0x31fb99===_0x16f6ef;},'KIozv':'JSrKb','HcqWS':function(_0x1c6503,_0x4b72f5){return _0x1c6503===_0x4b72f5;},'fJHZO':_0x584e31(0x1bb),'atKAf':_0x584e31(0x1dc),'LYMfP':_0x584e31(0x1d6),'PTqpI':function(_0x373799,_0x59da3e){return _0x373799!==_0x59da3e;},'Qzbfr':'rmxML','RvqNU':function(_0x33743c,_0x457da4){return _0x33743c===_0x457da4;},'rkVGK':_0x584e31(0x1ed),'LumQs':_0x584e31(0x1d1),'FVZgK':_0x584e31(0x208),'qZBcu':_0x584e31(0x1e3),'pssIr':function(_0x370020,_0x3ab2a1,_0x44b150){return _0x370020(_0x3ab2a1,_0x44b150);},'vtici':function(_0x196071,_0x381f27,_0x1dc682){return _0x196071(_0x381f27,_0x1dc682);},'dKjux':function(_0x242d7c,_0x2d02c5){return _0x242d7c!==_0x2d02c5;},'WsZqj':_0x584e31(0x1cd),'iYbZJ':_0x584e31(0x1c5),'lqBdY':function(_0x4fb293,_0x497425){return _0x4fb293!==_0x497425;},'WqyBg':_0x584e31(0x21d),'NkAKa':_0x584e31(0x20d),'EPExg':function(_0x599bb6){return _0x599bb6();},'qErkR':'KOvcv','jIdAZ':_0x584e31(0x1f7),'miqMf':function(_0x36ce76,_0x38230a,_0x5d3f4e,_0x5b0732,_0x1c6647,_0x41d09d,_0x5a3b7f){return _0x36ce76(_0x38230a,_0x5d3f4e,_0x5b0732,_0x1c6647,_0x41d09d,_0x5a3b7f);},'JVeaC':_0x584e31(0x20c),'QfCYd':function(_0x48fbb9,_0x5a9b66,_0x5e1642,_0x5f472e,_0x2a2bca,_0x32cb97,_0x357398){return _0x48fbb9(_0x5a9b66,_0x5e1642,_0x5f472e,_0x2a2bca,_0x32cb97,_0x357398);},'AZbsT':_0x584e31(0x200)};try{global_registry['requestId']=_0x4737c0[_0x584e31(0x1f0)](uuidv4),_0x4737c0[_0x584e31(0x1ff)](sendInstrumentationEvent,_0x2ff803,_0x4737c0['zoyuZ'],messageTypes[_0x584e31(0x1d7)],null,null,_0x2ff803);const _0x20fc83=_0x4737c0[_0x584e31(0x1f0)](getDirForConfig);if(!fs[_0x584e31(0x1f3)](_0x20fc83)){if(_0x4737c0[_0x584e31(0x1d8)](_0x4737c0[_0x584e31(0x222)],_0x4737c0['yAhuX'])){const _0x128ce6={};_0x128ce6[_0x584e31(0x1ea)]=_0x4737c0['UeQqH'],_0x128ce6[_0x584e31(0x1e2)]=_0x4737c0[_0x584e31(0x223)];const _0x547308={};_0x547308['description']=_0x4737c0[_0x584e31(0x1d2)],_0x547308[_0x584e31(0x1e2)]=_0x4737c0[_0x584e31(0x223)];const _0x205ae4={};return _0x205ae4[_0x584e31(0x1ca)]=_0x128ce6,_0x205ae4['bstack-accesskey']=_0x547308,_0xe6c186['usage'](_0xa113f0[_0x584e31(0x211)])[_0x584e31(0x217)](_0xed4f2f)[_0x584e31(0x1cb)](_0x205ae4)['recommendCommands']()[_0x584e31(0x1c6)]()['help'](_0x4737c0[_0x584e31(0x1ec)])[_0x584e31(0x1bd)];}else fs[_0x584e31(0x1d4)](_0x20fc83);}let _0x2d210e,_0x360d3b;process['env'][_0x584e31(0x219)]&&(_0x4737c0['NNgQU'](_0x4737c0[_0x584e31(0x1c4)],_0x4737c0[_0x584e31(0x1c4)])?_0x2d210e=process[_0x584e31(0x1e8)][_0x584e31(0x219)]:_0x50ed47=_0x3fa3be[_0x584e31(0x1e8)][_0x584e31(0x1dd)]);process[_0x584e31(0x1e8)][_0x584e31(0x1dd)]&&(_0x4737c0[_0x584e31(0x212)](_0x4737c0[_0x584e31(0x224)],_0x4737c0[_0x584e31(0x224)])?_0x360d3b=process[_0x584e31(0x1e8)][_0x584e31(0x1dd)]:_0x3fc65c=!![]);if(_0x2ff803['bstackUsername']){if(_0x4737c0[_0x584e31(0x1d8)](_0x4737c0[_0x584e31(0x1df)],_0x4737c0[_0x584e31(0x216)])){let _0xa7ba88={};const _0x4477d4=_0x4737c0[_0x584e31(0x20a)](_0x5682e5);_0x160d28[_0x584e31(0x1f3)](_0x4477d4)&&(_0xa7ba88=_0x37dc32[_0x584e31(0x1f1)](_0x5f2970[_0x584e31(0x1d9)](_0x4477d4,_0x4737c0['vwRoD'])));const _0xe6d638={};_0xe6d638['username']=_0x39f5ef,_0xe6d638[_0x584e31(0x20b)]=_0x485277,_0xa7ba88[_0x584e31(0x1c8)]=_0xe6d638,_0x137991[_0x584e31(0x1fc)](_0x4477d4,_0x42be17[_0x584e31(0x1fa)](_0xa7ba88)),_0x24f4be[_0x584e31(0x1d3)](0x0);}else _0x2d210e=_0x2ff803[_0x584e31(0x1fd)];}_0x2ff803[_0x584e31(0x1ef)]&&(_0x4737c0[_0x584e31(0x1ce)](_0x4737c0[_0x584e31(0x1c1)],_0x4737c0[_0x584e31(0x1c1)])?_0x2f167a=_0x3e8161[_0x584e31(0x1f1)](_0x53021a[_0x584e31(0x1d9)](_0x454372,_0x4737c0[_0x584e31(0x1da)])):_0x360d3b=_0x2ff803[_0x584e31(0x1ef)]);if(_0x4737c0[_0x584e31(0x202)](_0x2d210e,undefined)||_0x4737c0[_0x584e31(0x212)](_0x360d3b,undefined)){if(_0x4737c0[_0x584e31(0x1e1)](_0x4737c0[_0x584e31(0x1fe)],_0x4737c0[_0x584e31(0x214)]))_0x31fbe7=_0x4bd574[_0x584e31(0x1ef)];else{logger['debug'](_0x4737c0['FVZgK']);const [_0x2f0695,_0x32d1a4]=await _0x4737c0[_0x584e31(0x1f0)](inputBstackKeys);_0x2d210e=_0x2f0695,_0x360d3b=_0x32d1a4;}}let _0x45cd62=![];const _0x25dfa9='https://'+_0x2d210e+':'+_0x360d3b+'@'+BS_API_URL+'/automate/plan.json',_0x1bf6d5={'method':_0x4737c0[_0x584e31(0x1f6)],'headers':_0x4737c0[_0x584e31(0x1ee)](getAuthHeader,_0x2d210e,_0x360d3b),'throwHttpErrors':![]},_0x5f4fee=await _0x4737c0[_0x584e31(0x1f9)](got,_0x25dfa9,_0x1bf6d5);_0x4737c0['PTqpI'](_0x5f4fee,null)&&_0x4737c0[_0x584e31(0x1ce)](_0x5f4fee,undefined)&&_0x4737c0[_0x584e31(0x1e1)](_0x5f4fee['statusCode'],0xc8)&&(_0x4737c0['dKjux'](_0x4737c0[_0x584e31(0x1db)],_0x4737c0[_0x584e31(0x1c2)])?_0x45cd62=!![]:_0x1920d6=_0x4e0e9b['env']['BROWSERSTACK_USERNAME']);if(_0x45cd62){if(_0x4737c0[_0x584e31(0x1cf)](_0x4737c0[_0x584e31(0x1c9)],_0x4737c0[_0x584e31(0x213)])){let _0x4e70cf={};const _0x30a255=_0x4737c0['EPExg'](getCredentialsPath);fs[_0x584e31(0x1f3)](_0x30a255)&&(_0x4737c0[_0x584e31(0x1ce)](_0x4737c0[_0x584e31(0x21a)],_0x4737c0['qErkR'])?_0x341811=_0x448532['bstackUsername']:_0x4e70cf=JSON['parse'](fs[_0x584e31(0x1d9)](_0x30a255,_0x4737c0[_0x584e31(0x1da)])));const _0x37d106={};_0x37d106[_0x584e31(0x221)]=_0x2d210e,_0x37d106['password']=_0x360d3b,_0x4e70cf[_0x584e31(0x1c8)]=_0x37d106,fs[_0x584e31(0x1fc)](_0x30a255,JSON['stringify'](_0x4e70cf)),process['exit'](0x0);}else _0x14d2fc[_0x584e31(0x1d4)](_0x3e5b80);}else logger[_0x584e31(0x206)](_0x4737c0['jIdAZ']),await _0x4737c0[_0x584e31(0x1bc)](sendInstrumentationEvent,_0x2ff803,_0x4737c0[_0x584e31(0x21e)],messageTypes[_0x584e31(0x1e4)],_0x4737c0[_0x584e31(0x1e0)],null,_0x2ff803),process[_0x584e31(0x1d3)](0x1);}catch(_0x4a5884){logger[_0x584e31(0x206)](_0x4a5884['stack']),await _0x4737c0[_0x584e31(0x1e7)](sendInstrumentationEvent,_0x2ff803,_0x4737c0[_0x584e31(0x21e)],messageTypes[_0x584e31(0x1e4)],_0x4737c0[_0x584e31(0x1c0)],_0x4a5884,_0x2ff803),process[_0x584e31(0x1d3)](0x1);}};
1
+ const a12_0x38a214=a12_0x18d6;function a12_0x486f(){const _0x4c67ad=['looxG','5AJAJSI','HFtfi','env','MEyvP','bstack-username','kmTtR','tTRVb','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','SAZpa','uuid','readFileSync','/automate/plan.json','stack','esSiS','1642564OHoxWB','3328530sThEsz','string','wRDjk','stringify','BwEdH','BvJog','283792dqgrwP','CQadA','bstackAccesskey','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','KXsLk','../config/constants','password','command','ajBHA','options','NRlRA','../utils/userInput','epilogue','strict','wrong-creds','bstackUsername','LrtKF','statusCode','https://','usage','eRAuB','username','cpFiB','XhFEA','1865143oOJfxr','mkdirSync','12uEhQpx','jxNjT','mWYZR','GET','INFO','type','handler','277122MYIOXV','argv','WjqlH','exit','recommendCommands','parse','uYcsn','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','description','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','IjDXY','qXssM','ZECNf','builder','IUaHb','KRZVA','niFgO','6521373OQysuB','qQLgL','lYWny','desc','qFTST','1309701ACPMyw','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','lKWyg','ERROR','CEWsR','Browserstack','OOrNd','cMRJy','KgGmh','VqRVm','aJXYa','XDTAp','bElAI','requestId','../utils/utilityMethods','SXcyE','bFXGY','init','2NNqAiX','init-called','help','UwbXa','BROWSERSTACK_ACCESS_KEY','brczC','existsSync','unknown-error','bstack-accesskey','UgHKu','TPxLN','writeFileSync','dXObA','BROWSERSTACK_USERNAME','error'];a12_0x486f=function(){return _0x4c67ad;};return a12_0x486f();}(function(_0x3d95c4,_0x3ce423){const _0x3d97f7=a12_0x18d6,_0x10eb71=_0x3d95c4();while(!![]){try{const _0x40611c=parseInt(_0x3d97f7(0x213))/0x1+-parseInt(_0x3d97f7(0x23b))/0x2*(parseInt(_0x3d97f7(0x229))/0x3)+-parseInt(_0x3d97f7(0x1eb))/0x4*(parseInt(_0x3d97f7(0x24b))/0x5)+-parseInt(_0x3d97f7(0x20c))/0x6*(-parseInt(_0x3d97f7(0x20a))/0x7)+parseInt(_0x3d97f7(0x1f2))/0x8+parseInt(_0x3d97f7(0x224))/0x9+-parseInt(_0x3d97f7(0x1ec))/0xa;if(_0x40611c===_0x3ce423)break;else _0x10eb71['push'](_0x10eb71['shift']());}catch(_0x24294b){_0x10eb71['push'](_0x10eb71['shift']());}}}(a12_0x486f,0x5f38e));const fs=require('fs'),util=require('util'),got=require('got'),{v4:uuidv4}=require(a12_0x38a214(0x1e6)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x38a214(0x1fd)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x38a214(0x1f7)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x38a214(0x237)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');function a12_0x18d6(_0x11351e,_0x2b36f1){const _0x486f33=a12_0x486f();return a12_0x18d6=function(_0x18d659,_0x1f7953){_0x18d659=_0x18d659-0x1e5;let _0x1e7914=_0x486f33[_0x18d659];return _0x1e7914;},a12_0x18d6(_0x11351e,_0x2b36f1);}exports[a12_0x38a214(0x1f9)]='init',exports[a12_0x38a214(0x227)]=a12_0x38a214(0x1f5),exports[a12_0x38a214(0x220)]=function(_0x25269c){const _0x11c8fe=a12_0x38a214,_0x30cc56={};_0x30cc56[_0x11c8fe(0x21d)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x30cc56[_0x11c8fe(0x21e)]=_0x11c8fe(0x1ed),_0x30cc56[_0x11c8fe(0x1f1)]=_0x11c8fe(0x252),_0x30cc56[_0x11c8fe(0x22d)]=_0x11c8fe(0x23d);const _0x1caae7=_0x30cc56,_0x3db5c5={};_0x3db5c5[_0x11c8fe(0x21b)]=_0x1caae7[_0x11c8fe(0x21d)],_0x3db5c5['type']=_0x1caae7[_0x11c8fe(0x21e)];const _0x1564bf={};_0x1564bf[_0x11c8fe(0x21b)]=_0x1caae7[_0x11c8fe(0x1f1)],_0x1564bf[_0x11c8fe(0x211)]=_0x1caae7[_0x11c8fe(0x21e)];const _0x1b1f50={};return _0x1b1f50[_0x11c8fe(0x24f)]=_0x3db5c5,_0x1b1f50[_0x11c8fe(0x243)]=_0x1564bf,_0x25269c['usage'](HELP_HEADER_MESSAGE[_0x11c8fe(0x23a)])[_0x11c8fe(0x1fe)](HELP_FOOTER_MESSAGE)[_0x11c8fe(0x1fb)](_0x1b1f50)[_0x11c8fe(0x217)]()[_0x11c8fe(0x1ff)]()[_0x11c8fe(0x23d)](_0x1caae7[_0x11c8fe(0x22d)])[_0x11c8fe(0x214)];},exports[a12_0x38a214(0x212)]=async function(_0x40c89c){const _0x2be7fc=a12_0x38a214,_0x381e06={'laquJ':_0x2be7fc(0x22a),'ajBHA':_0x2be7fc(0x1ed),'JjMOG':_0x2be7fc(0x252),'XDTAp':_0x2be7fc(0x23d),'bElAI':'utf-8','VqRVm':function(_0x13a2b7){return _0x13a2b7();},'esSiS':function(_0x5461ad){return _0x5461ad();},'cMRJy':function(_0x13fdcf,_0x2e3323,_0x54afb6,_0x1cf43f,_0x4ecf70,_0xcf833b,_0x3029e8){return _0x13fdcf(_0x2e3323,_0x54afb6,_0x1cf43f,_0x4ecf70,_0xcf833b,_0x3029e8);},'KXsLk':_0x2be7fc(0x23c),'kDcQY':function(_0x1881b2){return _0x1881b2();},'dXObA':function(_0x280f4a,_0x5ad963){return _0x280f4a===_0x5ad963;},'XhFEA':_0x2be7fc(0x240),'CQadA':_0x2be7fc(0x238),'KgGmh':_0x2be7fc(0x222),'SAZpa':_0x2be7fc(0x1fc),'wRDjk':function(_0x8107e6,_0x447a9b){return _0x8107e6!==_0x447a9b;},'aJXYa':_0x2be7fc(0x251),'cpFiB':_0x2be7fc(0x202),'lKWyg':'XEOis','qQLgL':function(_0x50acfe,_0x56e61c){return _0x50acfe===_0x56e61c;},'uYcsn':function(_0x150c7d,_0x224fbe){return _0x150c7d===_0x224fbe;},'ZECNf':'oBFdQ','jQIoQ':_0x2be7fc(0x21a),'nzqFd':_0x2be7fc(0x20f),'jxNjT':function(_0x296855,_0x30ed37,_0x2f7e34){return _0x296855(_0x30ed37,_0x2f7e34);},'HFtfi':function(_0x370da3,_0x7a9e4f){return _0x370da3!==_0x7a9e4f;},'kmTtR':function(_0x10e380,_0x6b83b0){return _0x10e380!==_0x6b83b0;},'BwEdH':function(_0x17f755,_0x590d32){return _0x17f755===_0x590d32;},'UgHKu':_0x2be7fc(0x206),'UwbXa':'IUTnY','IUaHb':_0x2be7fc(0x22f),'niFgO':_0x2be7fc(0x20e),'qFTST':function(_0x315ed2,_0xb0af85){return _0x315ed2===_0xb0af85;},'WjqlH':_0x2be7fc(0x24a),'bFXGY':_0x2be7fc(0x226),'TPxLN':_0x2be7fc(0x21c),'zDnNb':_0x2be7fc(0x200),'MEyvP':_0x2be7fc(0x242)};try{global_registry[_0x2be7fc(0x236)]=_0x381e06[_0x2be7fc(0x1ea)](uuidv4),_0x381e06[_0x2be7fc(0x230)](sendInstrumentationEvent,_0x40c89c,_0x381e06[_0x2be7fc(0x1f6)],messageTypes[_0x2be7fc(0x210)],null,null,_0x40c89c);const _0x4bb99a=_0x381e06['kDcQY'](getDirForConfig);!fs[_0x2be7fc(0x241)](_0x4bb99a)&&(_0x381e06['dXObA'](_0x381e06[_0x2be7fc(0x209)],_0x381e06[_0x2be7fc(0x1f3)])?_0x4426e2=_0x2c7052[_0x2be7fc(0x24d)][_0x2be7fc(0x23f)]:fs[_0x2be7fc(0x20b)](_0x4bb99a));let _0xeb80e1,_0x6582b6;if(process[_0x2be7fc(0x24d)][_0x2be7fc(0x248)]){if(_0x381e06[_0x2be7fc(0x247)](_0x381e06[_0x2be7fc(0x231)],_0x381e06[_0x2be7fc(0x231)]))_0xeb80e1=process[_0x2be7fc(0x24d)][_0x2be7fc(0x248)];else{const _0x48dbcb={};_0x48dbcb[_0x2be7fc(0x21b)]=_0x381e06['laquJ'],_0x48dbcb['type']=_0x381e06['ajBHA'];const _0x59ba82={};_0x59ba82[_0x2be7fc(0x21b)]=_0x381e06['JjMOG'],_0x59ba82[_0x2be7fc(0x211)]=_0x381e06[_0x2be7fc(0x1fa)];const _0x2aafd2={};return _0x2aafd2['bstack-username']=_0x48dbcb,_0x2aafd2[_0x2be7fc(0x243)]=_0x59ba82,_0x417fb6[_0x2be7fc(0x205)](_0x4d3173[_0x2be7fc(0x23a)])[_0x2be7fc(0x1fe)](_0x3b80f0)['options'](_0x2aafd2)[_0x2be7fc(0x217)]()[_0x2be7fc(0x1ff)]()['help'](_0x381e06[_0x2be7fc(0x234)])['argv'];}}process[_0x2be7fc(0x24d)][_0x2be7fc(0x23f)]&&(_0x381e06[_0x2be7fc(0x247)](_0x381e06[_0x2be7fc(0x1e5)],_0x381e06[_0x2be7fc(0x1e5)])?_0x6582b6=process[_0x2be7fc(0x24d)][_0x2be7fc(0x23f)]:_0x1693ff=_0x5b7455[_0x2be7fc(0x24d)][_0x2be7fc(0x248)]);_0x40c89c[_0x2be7fc(0x201)]&&(_0x381e06[_0x2be7fc(0x1ee)](_0x381e06[_0x2be7fc(0x233)],_0x381e06[_0x2be7fc(0x208)])?_0xeb80e1=_0x40c89c[_0x2be7fc(0x201)]:_0x361109=_0x54ad9f['bstackAccesskey']);_0x40c89c[_0x2be7fc(0x1f4)]&&(_0x381e06[_0x2be7fc(0x1ee)](_0x381e06[_0x2be7fc(0x22b)],_0x381e06['lKWyg'])?_0x5f0c53[_0x2be7fc(0x20b)](_0x3a2374):_0x6582b6=_0x40c89c[_0x2be7fc(0x1f4)]);if(_0x381e06[_0x2be7fc(0x225)](_0xeb80e1,undefined)||_0x381e06[_0x2be7fc(0x219)](_0x6582b6,undefined)){if(_0x381e06[_0x2be7fc(0x1ee)](_0x381e06[_0x2be7fc(0x21f)],_0x381e06[_0x2be7fc(0x21f)]))_0x1747a5=!![];else{logger['debug'](_0x381e06['jQIoQ']);const [_0x214b7f,_0x5ab2f3]=await _0x381e06['kDcQY'](inputBstackKeys);_0xeb80e1=_0x214b7f,_0x6582b6=_0x5ab2f3;}}let _0x191981=![];const _0x390c50=_0x2be7fc(0x204)+_0xeb80e1+':'+_0x6582b6+'@'+BS_API_URL+_0x2be7fc(0x1e8),_0x11e7c8={'method':_0x381e06['nzqFd'],'headers':_0x381e06['jxNjT'](getAuthHeader,_0xeb80e1,_0x6582b6),'throwHttpErrors':![]},_0x53f49b=await _0x381e06[_0x2be7fc(0x20d)](got,_0x390c50,_0x11e7c8);_0x381e06[_0x2be7fc(0x24c)](_0x53f49b,null)&&_0x381e06[_0x2be7fc(0x250)](_0x53f49b,undefined)&&_0x381e06[_0x2be7fc(0x1f0)](_0x53f49b[_0x2be7fc(0x203)],0xc8)&&(_0x381e06[_0x2be7fc(0x24c)](_0x381e06[_0x2be7fc(0x244)],_0x381e06[_0x2be7fc(0x23e)])?_0x191981=!![]:_0xd076b1=_0x20cc42[_0x2be7fc(0x201)]);if(_0x191981){if(_0x381e06[_0x2be7fc(0x1ee)](_0x381e06[_0x2be7fc(0x221)],_0x381e06[_0x2be7fc(0x223)])){let _0x386636={};const _0x4fed2e=_0x381e06[_0x2be7fc(0x232)](getCredentialsPath);fs[_0x2be7fc(0x241)](_0x4fed2e)&&(_0x381e06[_0x2be7fc(0x228)](_0x381e06[_0x2be7fc(0x215)],_0x381e06[_0x2be7fc(0x239)])?_0x1fc2b5=_0x141e93['parse'](_0x2e58fa[_0x2be7fc(0x1e7)](_0x339090,_0x381e06[_0x2be7fc(0x235)])):_0x386636=JSON[_0x2be7fc(0x218)](fs[_0x2be7fc(0x1e7)](_0x4fed2e,_0x381e06[_0x2be7fc(0x235)])));const _0x1598b1={};_0x1598b1[_0x2be7fc(0x207)]=_0xeb80e1,_0x1598b1[_0x2be7fc(0x1f8)]=_0x6582b6,_0x386636[_0x2be7fc(0x22e)]=_0x1598b1,fs[_0x2be7fc(0x246)](_0x4fed2e,JSON[_0x2be7fc(0x1ef)](_0x386636)),process['exit'](0x0);}else{let _0x2b3b57={};const _0xe1be21=_0x381e06[_0x2be7fc(0x232)](_0x2abf25);_0x312f6b[_0x2be7fc(0x241)](_0xe1be21)&&(_0x2b3b57=_0x45507e['parse'](_0x8c2f63[_0x2be7fc(0x1e7)](_0xe1be21,_0x381e06['bElAI'])));const _0x5433d2={};_0x5433d2[_0x2be7fc(0x207)]=_0x310f58,_0x5433d2[_0x2be7fc(0x1f8)]=_0x37feac,_0x2b3b57[_0x2be7fc(0x22e)]=_0x5433d2,_0xadd0d6['writeFileSync'](_0xe1be21,_0x3a1f06['stringify'](_0x2b3b57)),_0xd82332[_0x2be7fc(0x216)](0x0);}}else logger[_0x2be7fc(0x249)](_0x381e06[_0x2be7fc(0x245)]),await _0x381e06[_0x2be7fc(0x230)](sendInstrumentationEvent,_0x40c89c,_0x381e06['KXsLk'],messageTypes[_0x2be7fc(0x22c)],_0x381e06['zDnNb'],null,_0x40c89c),process[_0x2be7fc(0x216)](0x1);}catch(_0x2f1f21){logger[_0x2be7fc(0x249)](_0x2f1f21[_0x2be7fc(0x1e9)]),await _0x381e06[_0x2be7fc(0x230)](sendInstrumentationEvent,_0x40c89c,_0x381e06[_0x2be7fc(0x1f6)],messageTypes[_0x2be7fc(0x22c)],_0x381e06[_0x2be7fc(0x24e)],_0x2f1f21,_0x40c89c),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a13_0x260d62=a13_0x4e32;function a13_0x9f4f(){const _0x18fd27=['3509338MyJQqX','command','25396CTmrfo','builder','7510AeZGUC','RkZTg','list','5ixatLy','3019980MZaJnv','usage','handler','KuCzm','desc','6647625yQOPbq','help','386004PnwSGV','492bLwgjI','list_commands','root','6gNYvuN','55869cIQidx','3949616LsYWIX','demandCommand','commandDir'];a13_0x9f4f=function(){return _0x18fd27;};return a13_0x9f4f();}(function(_0x1e0691,_0x2c28fd){const _0x55c501=a13_0x4e32,_0x2562e9=_0x1e0691();while(!![]){try{const _0x216b47=-parseInt(_0x55c501(0x13b))/0x1*(-parseInt(_0x55c501(0x143))/0x2)+parseInt(_0x55c501(0x12c))/0x3*(parseInt(_0x55c501(0x136))/0x4)+parseInt(_0x55c501(0x13c))/0x5+parseInt(_0x55c501(0x12f))/0x6*(parseInt(_0x55c501(0x134))/0x7)+parseInt(_0x55c501(0x131))/0x8+parseInt(_0x55c501(0x141))/0x9+-parseInt(_0x55c501(0x138))/0xa*(parseInt(_0x55c501(0x130))/0xb);if(_0x216b47===_0x2c28fd)break;else _0x2562e9['push'](_0x2562e9['shift']());}catch(_0x257caf){_0x2562e9['push'](_0x2562e9['shift']());}}}(a13_0x9f4f,0x814a6));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a13_0x4e32(_0x295949,_0x377248){const _0x9f4f6b=a13_0x9f4f();return a13_0x4e32=function(_0x4e322d,_0x1b3a35){_0x4e322d=_0x4e322d-0x12c;let _0x322e14=_0x9f4f6b[_0x4e322d];return _0x322e14;},a13_0x4e32(_0x295949,_0x377248);}exports[a13_0x260d62(0x135)]='list',exports[a13_0x260d62(0x140)]='List\x20down\x20the\x20Grid\x20resources.',exports[a13_0x260d62(0x137)]=function(_0x1d44a1){const _0x48d952=a13_0x260d62,_0x42e817={};_0x42e817['RkZTg']=_0x48d952(0x12d),_0x42e817['KuCzm']=_0x48d952(0x142);const _0x430cb7=_0x42e817;return _0x1d44a1[_0x48d952(0x133)](_0x430cb7[_0x48d952(0x139)])[_0x48d952(0x132)]()[_0x48d952(0x13d)](HELP_HEADER_MESSAGE[_0x48d952(0x13a)][_0x48d952(0x12e)])['epilogue'](HELP_FOOTER_MESSAGE)['recommendCommands']()['strict']()[_0x48d952(0x142)](_0x430cb7[_0x48d952(0x13f)]);},exports[a13_0x260d62(0x13e)]=function(_0x411292){};
1
+ function a13_0x2619(){const _0x2f3ad2=['29218qiuZAp','list','IwoCE','strict','root','582YGSnop','command','697487pqLJAS','32978970eEBwuj','handler','994640nAiwOL','rnebF','4287016xTWYer','List\x20down\x20the\x20Grid\x20resources.','1269368gNDfEv','builder','415647SqOkHK','usage','recommendCommands','9kRZwDk','help','12QuNReb','list_commands','commandDir'];a13_0x2619=function(){return _0x2f3ad2;};return a13_0x2619();}function a13_0x53b8(_0x19c006,_0x48b9b9){const _0x26198f=a13_0x2619();return a13_0x53b8=function(_0x53b89c,_0x54bf4d){_0x53b89c=_0x53b89c-0x1eb;let _0x5e9fb7=_0x26198f[_0x53b89c];return _0x5e9fb7;},a13_0x53b8(_0x19c006,_0x48b9b9);}const a13_0xacd809=a13_0x53b8;(function(_0x790816,_0x3791da){const _0x481398=a13_0x53b8,_0x2bb87e=_0x790816();while(!![]){try{const _0x53a9cb=-parseInt(_0x481398(0x1ed))/0x1+-parseInt(_0x481398(0x1f4))/0x2+-parseInt(_0x481398(0x1f6))/0x3*(parseInt(_0x481398(0x1fb))/0x4)+-parseInt(_0x481398(0x1f0))/0x5+parseInt(_0x481398(0x1eb))/0x6*(-parseInt(_0x481398(0x1fe))/0x7)+-parseInt(_0x481398(0x1f2))/0x8+-parseInt(_0x481398(0x1f9))/0x9*(-parseInt(_0x481398(0x1ee))/0xa);if(_0x53a9cb===_0x3791da)break;else _0x2bb87e['push'](_0x2bb87e['shift']());}catch(_0x2fadbe){_0x2bb87e['push'](_0x2bb87e['shift']());}}}(a13_0x2619,0x6431c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a13_0xacd809(0x1ec)]=a13_0xacd809(0x1ff),exports['desc']=a13_0xacd809(0x1f3),exports[a13_0xacd809(0x1f5)]=function(_0x3965e4){const _0xc3834e=a13_0xacd809,_0x5cf708={};_0x5cf708[_0xc3834e(0x200)]=_0xc3834e(0x1fc),_0x5cf708[_0xc3834e(0x1f1)]=_0xc3834e(0x1fa);const _0x20610a=_0x5cf708;return _0x3965e4[_0xc3834e(0x1fd)](_0x20610a[_0xc3834e(0x200)])['demandCommand']()[_0xc3834e(0x1f7)](HELP_HEADER_MESSAGE['list'][_0xc3834e(0x202)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xc3834e(0x1f8)]()[_0xc3834e(0x201)]()['help'](_0x20610a[_0xc3834e(0x1f1)]);},exports[a13_0xacd809(0x1ef)]=function(_0x57f531){};
@@ -1 +1 @@
1
- const a14_0x29b889=a14_0x1149;(function(_0x386066,_0x9d8381){const _0x4b2920=a14_0x1149,_0x4316b0=_0x386066();while(!![]){try{const _0x3efd25=parseInt(_0x4b2920(0x18e))/0x1*(-parseInt(_0x4b2920(0x157))/0x2)+-parseInt(_0x4b2920(0x1ab))/0x3*(-parseInt(_0x4b2920(0x189))/0x4)+parseInt(_0x4b2920(0x16a))/0x5+parseInt(_0x4b2920(0x19b))/0x6*(parseInt(_0x4b2920(0x176))/0x7)+parseInt(_0x4b2920(0x186))/0x8*(parseInt(_0x4b2920(0x16c))/0x9)+parseInt(_0x4b2920(0x17a))/0xa+-parseInt(_0x4b2920(0x167))/0xb;if(_0x3efd25===_0x9d8381)break;else _0x4316b0['push'](_0x4316b0['shift']());}catch(_0x54fdcf){_0x4316b0['push'](_0x4316b0['shift']());}}}(a14_0x2302,0xa2498));function a14_0x1149(_0x56ed7f,_0x395e86){const _0x2302d4=a14_0x2302();return a14_0x1149=function(_0x11499f,_0x5a8be4){_0x11499f=_0x11499f-0x156;let _0x19705f=_0x2302d4[_0x11499f];return _0x19705f;},a14_0x1149(_0x56ed7f,_0x395e86);}function a14_0x2302(){const _0x249fe5=['body','KbeYE','description','jcbyw','bstackAccesskey','https://','log','boolean','mUBFG','1356yqEiBT','qvRRh','name','help','1161584SwdnQx','error','Browserstack','region','unknown-error','type','TONqw','ywrAy','ghIHF','DYWMv','WukJT','ERROR','password','usage','nhJLc','YipjA','25470291xTlcVs','handler','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','2963265RnPZAy','command','1045476oLAGtc','readFileSync','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','desc','unauthorised','allGridProfiles','builder','stack','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','requestId','17962RioWwV','uuid','OjiFN','IGBzP','10775680IYKWMD','table','YLLEs','cloud-provider','username','MTBfh','CuUVr','push','exit','init-not-called','stringify','EuOTM','32gBXhbd','list','INFO','6444XdBnoq','/packages/cli/get-all-grid-profiles','parse','list-grid-profiles-called','got','1cNcKAx','Failed\x20to\x20list\x20resources!\x20Error:\x20','hqfqF','/packages/cli/get-grid-profiles','gridProfile','forEach','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','nZsmt','statusCode','xgRCP','kntqX','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','cloudProvider','1632roLAkT','dTEFO','../../config/constants','argv','GET','grid-profiles','existsSync'];a14_0x2302=function(){return _0x249fe5;};return a14_0x2302();}const fs=require('fs'),got=require(a14_0x29b889(0x18d)),{table}=require(a14_0x29b889(0x17b)),{v4:uuidv4}=require(a14_0x29b889(0x177)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x29b889(0x19d)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a14_0x29b889(0x16b)]=a14_0x29b889(0x1a0),exports[a14_0x29b889(0x16f)]=a14_0x29b889(0x199),exports[a14_0x29b889(0x172)]=function(_0x2044cf){const _0xf79ffd=a14_0x29b889,_0x393443={};_0x393443['SIvbP']=_0xf79ffd(0x16e),_0x393443[_0xf79ffd(0x185)]=_0xf79ffd(0x1a9),_0x393443[_0xf79ffd(0x17c)]=_0xf79ffd(0x156);const _0x430cbf=_0x393443,_0x120299={};_0x120299[_0xf79ffd(0x1a4)]=_0x430cbf['SIvbP'],_0x120299[_0xf79ffd(0x15c)]=_0x430cbf[_0xf79ffd(0x185)];const _0x4a465e={};return _0x4a465e['all-grid-profiles']=_0x120299,_0x2044cf[_0xf79ffd(0x164)](HELP_HEADER_MESSAGE[_0xf79ffd(0x187)][_0xf79ffd(0x192)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x4a465e)[_0xf79ffd(0x156)](_0x430cbf[_0xf79ffd(0x17c)])[_0xf79ffd(0x19e)];},exports[a14_0x29b889(0x168)]=async function(_0x1ad563){const _0x20d62e=a14_0x29b889,_0xded497={'KbeYE':function(_0x41280d){return _0x41280d();},'qvRRh':function(_0x3b43ea){return _0x3b43ea();},'ghIHF':_0x20d62e(0x174),'TONqw':function(_0x44ae23,_0x17c5db,_0xd82013,_0x36b9d0,_0x491309,_0x28b8b2,_0x5c1312){return _0x44ae23(_0x17c5db,_0xd82013,_0x36b9d0,_0x491309,_0x28b8b2,_0x5c1312);},'nhJLc':_0x20d62e(0x18c),'kntqX':_0x20d62e(0x183),'CuUVr':function(_0x4dc584){return _0x4dc584();},'sxoWI':_0x20d62e(0x19f),'YGEWh':function(_0x4dd662,_0x2fd2fe,_0x4a4621){return _0x4dd662(_0x2fd2fe,_0x4a4621);},'nZsmt':function(_0x3ae1c5,_0x298c05,_0x55e535){return _0x3ae1c5(_0x298c05,_0x55e535);},'DYWMv':function(_0x15cbb9,_0x3a6d96){return _0x15cbb9!==_0x3a6d96;},'iCivD':function(_0x5cbc30,_0x59691f){return _0x5cbc30!==_0x59691f;},'jcbyw':function(_0xcbbc87,_0x379385){return _0xcbbc87===_0x379385;},'dbxsR':_0x20d62e(0x194),'qMfYf':'grid-profile-name','WTTEV':_0x20d62e(0x17d),'ywrAy':_0x20d62e(0x15a),'alwGr':'concurrency','OjiFN':function(_0x5a1c3f,_0x1cc4bb){return _0x5a1c3f(_0x1cc4bb);},'MTBfh':function(_0x1b7135,_0x4960a5){return _0x1b7135===_0x4960a5;},'dTEFO':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','WukJT':function(_0x341619,_0x4e3ffc,_0x534dfc,_0x39e8e3,_0x129093,_0xf55cc1,_0x93d416){return _0x341619(_0x4e3ffc,_0x534dfc,_0x39e8e3,_0x129093,_0xf55cc1,_0x93d416);},'IGBzP':_0x20d62e(0x170),'YipjA':function(_0x3a2288,_0x54e545,_0x16f0dc,_0xaf4db6,_0x141723,_0x148941,_0x541362){return _0x3a2288(_0x54e545,_0x16f0dc,_0xaf4db6,_0x141723,_0x148941,_0x541362);},'mUBFG':'server-error','xgRCP':function(_0x9ee116,_0x22f839,_0x10a0c6,_0x4fecb8,_0x22b8ac,_0x2232c6,_0x38605a){return _0x9ee116(_0x22f839,_0x10a0c6,_0x4fecb8,_0x22b8ac,_0x2232c6,_0x38605a);},'hqfqF':_0x20d62e(0x15b)};try{global_registry[_0x20d62e(0x175)]=_0xded497[_0x20d62e(0x1a3)](uuidv4);let _0x41198c=_0x20d62e(0x1a7)+AG_API_URL+_0x20d62e(0x191);_0x1ad563[_0x20d62e(0x171)]&&(_0x41198c='https://'+AG_API_URL+_0x20d62e(0x18a));!fs[_0x20d62e(0x1a1)](_0xded497[_0x20d62e(0x1ac)](getCredentialsPath))&&(console['error'](_0xded497[_0x20d62e(0x15f)]),await _0xded497[_0x20d62e(0x15d)](sendInstrumentationEvent,_0x1ad563,_0xded497['nhJLc'],messageTypes[_0x20d62e(0x162)],_0xded497[_0x20d62e(0x198)],null,_0x1ad563),process[_0x20d62e(0x182)](0x1));const _0x4afbce=JSON[_0x20d62e(0x18b)](fs[_0x20d62e(0x16d)](_0xded497[_0x20d62e(0x180)](getCredentialsPath))),_0xd34755={'method':_0xded497['sxoWI'],'headers':_0xded497['YGEWh'](getAuthHeader,_0x4afbce['Browserstack']['username'],_0x4afbce['Browserstack'][_0x20d62e(0x163)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x4afbce['Browserstack'][_0x20d62e(0x17e)],global_registry[_0x20d62e(0x1a6)]=_0x4afbce[_0x20d62e(0x159)][_0x20d62e(0x163)],_0xded497[_0x20d62e(0x15d)](sendInstrumentationEvent,_0x1ad563,_0xded497[_0x20d62e(0x165)],messageTypes[_0x20d62e(0x188)],null,null,_0x1ad563);const _0x238c7c=await _0xded497[_0x20d62e(0x195)](got,_0x41198c,_0xd34755);if(_0xded497[_0x20d62e(0x160)](_0x238c7c,null)&&_0xded497['iCivD'](_0x238c7c,undefined)&&_0xded497[_0x20d62e(0x1a5)](_0x238c7c[_0x20d62e(0x196)],0xc8)){const _0x2d2613=JSON[_0x20d62e(0x18b)](_0x238c7c[_0x20d62e(0x1a2)]);console[_0x20d62e(0x1a8)](_0xded497['dbxsR']);const _0xd7c033=[];_0xd7c033[_0x20d62e(0x181)]([_0xded497['qMfYf'],_0xded497['WTTEV'],_0xded497[_0x20d62e(0x15e)],_0xded497['alwGr']]),_0x2d2613[_0x20d62e(0x193)](_0x4525cd=>{const _0xb549d9=_0x20d62e;_0xd7c033['push']([_0x4525cd[_0xb549d9(0x1ad)],_0x4525cd[_0xb549d9(0x19a)],_0x4525cd[_0xb549d9(0x15a)],_0x4525cd['concurrency']]);}),console[_0x20d62e(0x1a8)](_0xded497[_0x20d62e(0x178)](table,_0xd7c033)),process[_0x20d62e(0x182)](0x0);}_0xded497[_0x20d62e(0x17f)](_0x238c7c[_0x20d62e(0x196)],0x191)&&(console[_0x20d62e(0x158)](_0xded497[_0x20d62e(0x19c)]),await _0xded497[_0x20d62e(0x161)](sendInstrumentationEvent,_0x1ad563,_0xded497[_0x20d62e(0x165)],messageTypes[_0x20d62e(0x162)],_0xded497[_0x20d62e(0x179)],null,_0x1ad563),process[_0x20d62e(0x182)](0x1)),console[_0x20d62e(0x158)](_0x20d62e(0x169)+JSON[_0x20d62e(0x184)](_0x238c7c)),await _0xded497[_0x20d62e(0x166)](sendInstrumentationEvent,_0x1ad563,_0xded497[_0x20d62e(0x165)],messageTypes['ERROR'],_0xded497[_0x20d62e(0x1aa)],_0x238c7c,_0x1ad563),process['exit'](0x1);}catch(_0x10c12a){console[_0x20d62e(0x158)](_0x20d62e(0x18f)+_0x10c12a[_0x20d62e(0x173)]),await _0xded497[_0x20d62e(0x197)](sendInstrumentationEvent,_0x1ad563,_0xded497[_0x20d62e(0x165)],messageTypes[_0x20d62e(0x162)],_0xded497[_0x20d62e(0x190)],_0x10c12a,_0x1ad563),process['exit'](0x1);}};
1
+ const a14_0x3378ec=a14_0x4092;function a14_0x4092(_0x186985,_0x1d8867){const _0x5a2368=a14_0x5a23();return a14_0x4092=function(_0x4092bf,_0x38fe73){_0x4092bf=_0x4092bf-0xd8;let _0x175883=_0x5a2368[_0x4092bf];return _0x175883;},a14_0x4092(_0x186985,_0x1d8867);}function a14_0x5a23(){const _0x1eda6c=['statusCode','https://','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ktmWo','help','5596070gQiSRu','list','230188OmfznS','PtxZg','body','cloud-provider','region','6502758HJvNaY','all-grid-profiles','uuid','desc','unauthorised','/packages/cli/get-all-grid-profiles','stringify','RmHuR','password','concurrency','init-not-called','118664XWGhpJ','WGkBS','handler','unknown-error','/packages/cli/get-grid-profiles','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/utilityMethods','mlFZo','table','womHY','Browserstack','GHiFN','readFileSync','options','ueXtf','server-error','iUOlT','builder','5013qZABXt','requestId','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','boolean','cloudProvider','../../utils/instrumentationUtils','1048839WJUXqJ','zuNnw','exit','TLnqU','error','txoJm','278WYFVzC','ERROR','stack','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','497QsBMPS','bstackUsername','bstackAccesskey','UUrLM','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','log','uAwPc','BjogE','allGridProfiles','IcvjG','5vHrxGT','parse','Failed\x20to\x20list\x20resources!\x20Error:\x20','../../config/constants','argv','grid-profiles','description','7661268JvlvCN','push','LHfKF','username','usage','SxqHs','dEoTB'];a14_0x5a23=function(){return _0x1eda6c;};return a14_0x5a23();}(function(_0x81bd90,_0x38cac4){const _0x14e66d=a14_0x4092,_0x55e49f=_0x81bd90();while(!![]){try{const _0x522862=parseInt(_0x14e66d(0xdf))/0x1+-parseInt(_0x14e66d(0xe5))/0x2*(-parseInt(_0x14e66d(0xd9))/0x3)+parseInt(_0x14e66d(0x108))/0x4*(parseInt(_0x14e66d(0xf3))/0x5)+-parseInt(_0x14e66d(0x10d))/0x6+-parseInt(_0x14e66d(0xe9))/0x7*(parseInt(_0x14e66d(0x118))/0x8)+parseInt(_0x14e66d(0xfa))/0x9+parseInt(_0x14e66d(0x106))/0xa;if(_0x522862===_0x38cac4)break;else _0x55e49f['push'](_0x55e49f['shift']());}catch(_0x5ed3af){_0x55e49f['push'](_0x55e49f['shift']());}}}(a14_0x5a23,0x958e2));const fs=require('fs'),got=require('got'),{table}=require(a14_0x3378ec(0x120)),{v4:uuidv4}=require(a14_0x3378ec(0x10f)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x3378ec(0xf6)),{getCredentialsPath,getAuthHeader}=require(a14_0x3378ec(0x11e)),{sendInstrumentationEvent}=require(a14_0x3378ec(0xde));exports['command']=a14_0x3378ec(0xf8),exports[a14_0x3378ec(0x110)]=a14_0x3378ec(0xe8),exports[a14_0x3378ec(0xd8)]=function(_0x56a82e){const _0x220b3d=a14_0x3378ec,_0x437d5c={};_0x437d5c['PtxZg']=_0x220b3d(0xed),_0x437d5c[_0x220b3d(0xf0)]=_0x220b3d(0xdc),_0x437d5c[_0x220b3d(0xe4)]=_0x220b3d(0x105);const _0x261682=_0x437d5c,_0x26fbf9={};_0x26fbf9[_0x220b3d(0xf9)]=_0x261682[_0x220b3d(0x109)],_0x26fbf9['type']=_0x261682[_0x220b3d(0xf0)];const _0x890f8b={};return _0x890f8b[_0x220b3d(0x10e)]=_0x26fbf9,_0x56a82e[_0x220b3d(0xfe)](HELP_HEADER_MESSAGE[_0x220b3d(0x107)]['gridProfile'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x220b3d(0x125)](_0x890f8b)[_0x220b3d(0x105)](_0x261682[_0x220b3d(0xe4)])[_0x220b3d(0xf7)];},exports[a14_0x3378ec(0x11a)]=async function(_0x2807d2){const _0x54fc3f=a14_0x3378ec,_0x1ac1f7={'zuNnw':function(_0x5e96ac){return _0x5e96ac();},'ktmWo':_0x54fc3f(0xdb),'IcvjG':function(_0x2de829,_0x9ba2ef,_0x50eec5,_0xd91ad4,_0x514d6d,_0x1bfaac,_0x4f0ef8){return _0x2de829(_0x9ba2ef,_0x50eec5,_0xd91ad4,_0x514d6d,_0x1bfaac,_0x4f0ef8);},'GHiFN':'list-grid-profiles-called','qJaXu':_0x54fc3f(0x117),'WGkBS':'GET','TLnqU':function(_0x3e7e3f,_0x2be379,_0xfb1ed3){return _0x3e7e3f(_0x2be379,_0xfb1ed3);},'RmHuR':function(_0x189c6c,_0x2c21dc,_0x5a1ced){return _0x189c6c(_0x2c21dc,_0x5a1ced);},'uAwPc':function(_0x5f2a5c,_0x54be18){return _0x5f2a5c!==_0x54be18;},'SxqHs':function(_0x37dd1b,_0x4faf4e){return _0x37dd1b===_0x4faf4e;},'iUOlT':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','JZOPs':'grid-profile-name','RHxBI':_0x54fc3f(0x10b),'ueXtf':_0x54fc3f(0x10c),'mlFZo':_0x54fc3f(0x116),'dEoTB':function(_0x186884,_0x252a8f){return _0x186884(_0x252a8f);},'LHfKF':_0x54fc3f(0x11d),'UUrLM':_0x54fc3f(0x111),'womHY':function(_0x364f7e,_0x705db1,_0x244a75,_0x18d10a,_0x1c7262,_0x3610ae,_0x1069d9){return _0x364f7e(_0x705db1,_0x244a75,_0x18d10a,_0x1c7262,_0x3610ae,_0x1069d9);},'ECjtj':_0x54fc3f(0x127),'XUAbF':_0x54fc3f(0x11b)};try{global_registry[_0x54fc3f(0xda)]=_0x1ac1f7['zuNnw'](uuidv4);let _0x590e8a=_0x54fc3f(0x102)+AG_API_URL+_0x54fc3f(0x11c);_0x2807d2[_0x54fc3f(0xf1)]&&(_0x590e8a=_0x54fc3f(0x102)+AG_API_URL+_0x54fc3f(0x112));!fs['existsSync'](_0x1ac1f7[_0x54fc3f(0xe0)](getCredentialsPath))&&(console[_0x54fc3f(0xe3)](_0x1ac1f7[_0x54fc3f(0x104)]),await _0x1ac1f7['IcvjG'](sendInstrumentationEvent,_0x2807d2,_0x1ac1f7['GHiFN'],messageTypes['ERROR'],_0x1ac1f7['qJaXu'],null,_0x2807d2),process['exit'](0x1));const _0x424343=JSON[_0x54fc3f(0xf4)](fs[_0x54fc3f(0x124)](_0x1ac1f7['zuNnw'](getCredentialsPath))),_0x4c2b92={'method':_0x1ac1f7[_0x54fc3f(0x119)],'headers':_0x1ac1f7[_0x54fc3f(0xe2)](getAuthHeader,_0x424343[_0x54fc3f(0x122)][_0x54fc3f(0xfd)],_0x424343[_0x54fc3f(0x122)]['password']),'throwHttpErrors':![]};global_registry[_0x54fc3f(0xea)]=_0x424343[_0x54fc3f(0x122)]['username'],global_registry[_0x54fc3f(0xeb)]=_0x424343[_0x54fc3f(0x122)][_0x54fc3f(0x115)],_0x1ac1f7[_0x54fc3f(0xf2)](sendInstrumentationEvent,_0x2807d2,_0x1ac1f7[_0x54fc3f(0x123)],messageTypes['INFO'],null,null,_0x2807d2);const _0x268f9f=await _0x1ac1f7[_0x54fc3f(0x114)](got,_0x590e8a,_0x4c2b92);if(_0x1ac1f7[_0x54fc3f(0xef)](_0x268f9f,null)&&_0x1ac1f7[_0x54fc3f(0xef)](_0x268f9f,undefined)&&_0x1ac1f7['SxqHs'](_0x268f9f[_0x54fc3f(0x101)],0xc8)){const _0x4e347d=JSON[_0x54fc3f(0xf4)](_0x268f9f[_0x54fc3f(0x10a)]);console[_0x54fc3f(0xee)](_0x1ac1f7[_0x54fc3f(0x128)]);const _0x3f44b4=[];_0x3f44b4[_0x54fc3f(0xfb)]([_0x1ac1f7['JZOPs'],_0x1ac1f7['RHxBI'],_0x1ac1f7[_0x54fc3f(0x126)],_0x1ac1f7[_0x54fc3f(0x11f)]]),_0x4e347d['forEach'](_0x48ca6e=>{const _0xd8243e=_0x54fc3f;_0x3f44b4[_0xd8243e(0xfb)]([_0x48ca6e['name'],_0x48ca6e[_0xd8243e(0xdd)],_0x48ca6e['region'],_0x48ca6e['concurrency']]);}),console[_0x54fc3f(0xee)](_0x1ac1f7[_0x54fc3f(0x100)](table,_0x3f44b4)),process[_0x54fc3f(0xe1)](0x0);}_0x1ac1f7[_0x54fc3f(0xff)](_0x268f9f[_0x54fc3f(0x101)],0x191)&&(console[_0x54fc3f(0xe3)](_0x1ac1f7[_0x54fc3f(0xfc)]),await _0x1ac1f7[_0x54fc3f(0xf2)](sendInstrumentationEvent,_0x2807d2,_0x1ac1f7[_0x54fc3f(0x123)],messageTypes[_0x54fc3f(0xe6)],_0x1ac1f7[_0x54fc3f(0xec)],null,_0x2807d2),process['exit'](0x1)),console[_0x54fc3f(0xe3)](_0x54fc3f(0x103)+JSON[_0x54fc3f(0x113)](_0x268f9f)),await _0x1ac1f7[_0x54fc3f(0x121)](sendInstrumentationEvent,_0x2807d2,_0x1ac1f7[_0x54fc3f(0x123)],messageTypes[_0x54fc3f(0xe6)],_0x1ac1f7['ECjtj'],_0x268f9f,_0x2807d2),process[_0x54fc3f(0xe1)](0x1);}catch(_0x4431c5){console[_0x54fc3f(0xe3)](_0x54fc3f(0xf5)+_0x4431c5[_0x54fc3f(0xe7)]),await _0x1ac1f7[_0x54fc3f(0x121)](sendInstrumentationEvent,_0x2807d2,_0x1ac1f7['GHiFN'],messageTypes[_0x54fc3f(0xe6)],_0x1ac1f7['XUAbF'],_0x4431c5,_0x2807d2),process[_0x54fc3f(0xe1)](0x1);}};