browserstack-node-sdk 1.64.3 → 1.65.1

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 (220) 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/generated/sdk-messages-accessibility_pb.d.ts +70 -0
  41. package/generated/sdk-messages-accessibility_pb.js +545 -1
  42. package/generated/sdk_grpc_pb.d.ts +5 -0
  43. package/generated/sdk_grpc_pb.js +33 -0
  44. package/package.json +3 -3
  45. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  46. package/src/bin/codeceptjs/command.js +1 -1
  47. package/src/bin/codeceptjs/helper.js +1 -1
  48. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  49. package/src/bin/cucumber-js/command.js +1 -1
  50. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  51. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  52. package/src/bin/cucumber-js/test-observability.js +1 -1
  53. package/src/bin/cucumber-js/test.setup.js +1 -1
  54. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  55. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  56. package/src/bin/integrations/command.js +1 -1
  57. package/src/bin/integrations/constants.js +1 -1
  58. package/src/bin/jasmine/bstack-reporter/customReporter.js +1 -1
  59. package/src/bin/jasmine/command.js +1 -1
  60. package/src/bin/jasmine/test.setup.js +1 -1
  61. package/src/bin/jasmine/testRunMap.js +1 -1
  62. package/src/bin/jest/command.js +1 -1
  63. package/src/bin/jest/customImplements/customCircus.js +1 -1
  64. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  65. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  66. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  67. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  68. package/src/bin/jest/jest.setup.js +1 -1
  69. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  70. package/src/bin/jest/test-observability/helper.js +1 -1
  71. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  72. package/src/bin/jest/test-observability/test-details.js +1 -1
  73. package/src/bin/jest/test.setup.js +1 -1
  74. package/src/bin/jest/test_before.setup.js +1 -1
  75. package/src/bin/launcher/launcher.js +1 -1
  76. package/src/bin/load/index.js +1 -1
  77. package/src/bin/load/loadErrors.js +1 -1
  78. package/src/bin/load/loadUtils.js +1 -1
  79. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  80. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  81. package/src/bin/mocha/command.js +1 -1
  82. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  83. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  84. package/src/bin/mocha/test.setup.js +1 -1
  85. package/src/bin/newman/command.js +1 -1
  86. package/src/bin/newman/helper.js +1 -1
  87. package/src/bin/newman/reporter/index.js +1 -1
  88. package/src/bin/newman/scriptRunner.js +1 -1
  89. package/src/bin/nightwatch/command.js +1 -1
  90. package/src/bin/node-generic/client.js +1 -0
  91. package/src/bin/playwright/accessibility-helper.js +1 -1
  92. package/src/bin/playwright/command.js +1 -1
  93. package/src/bin/playwright/globalSetup.js +1 -1
  94. package/src/bin/playwright/mock-process.js +1 -1
  95. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  96. package/src/bin/playwright/patches.js +1 -1
  97. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  98. package/src/bin/playwright/reporter/reporter.js +1 -1
  99. package/src/bin/playwright/reporter/test-details.js +1 -1
  100. package/src/bin/playwright/reporterArgs.js +1 -0
  101. package/src/bin/playwright/sessionDetails.js +1 -1
  102. package/src/bin/puppeteer/patches.js +1 -1
  103. package/src/bin/puppeteer/sessionDetails.js +1 -1
  104. package/src/bin/puppeteer/test.setup.js +1 -1
  105. package/src/bin/runner.js +1 -1
  106. package/src/bin/setup.js +1 -1
  107. package/src/bin/test-runner/index.js +1 -1
  108. package/src/bin/test-runner/runTest.js +1 -1
  109. package/src/bin/test-runner/testWorker.js +1 -1
  110. package/src/bin/testcafe/a11y-runner.js +1 -1
  111. package/src/bin/testcafe/command.js +1 -1
  112. package/src/bin/testcafe/reporter/index.js +1 -1
  113. package/src/bin/testcafe/reporter/tcUtils.js +1 -1
  114. package/src/bin/testcafe/session-registry.js +1 -1
  115. package/src/bin/testcafe/stdout-interceptor.js +1 -1
  116. package/src/bin/testcafe/testcafe-action-patcher.js +1 -1
  117. package/src/bin/testcafe/w3c-driver.js +1 -1
  118. package/src/bin/utils/apiUtilityMethods.js +1 -1
  119. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  120. package/src/bin/utils/constants.js +1 -1
  121. package/src/bin/utils/log4jsAppender.js +1 -1
  122. package/src/bin/utils/logPatcher.js +1 -1
  123. package/src/bin/utils/logReportingAPI.js +1 -1
  124. package/src/bin/utils/playwright-patcher.js +1 -1
  125. package/src/bin/utils/puppeteer-patcher.js +1 -1
  126. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  127. package/src/bin/utils/sharedUtils.js +1 -1
  128. package/src/bin/v2/TestInfo.js +1 -1
  129. package/src/bin/v2/browserstackCLI.js +1 -1
  130. package/src/bin/v2/cliUtils.js +1 -1
  131. package/src/bin/v2/customTagManager.js +1 -1
  132. package/src/bin/v2/eventDispatcher.js +1 -1
  133. package/src/bin/v2/framework/automationFramework.js +1 -1
  134. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  135. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  136. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  137. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  138. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  139. package/src/bin/v2/framework/nodeGenericTestFramework.js +1 -0
  140. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  141. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  142. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  143. package/src/bin/v2/framework/testFramework.js +1 -1
  144. package/src/bin/v2/framework/testcafeAutomationFramework.js +1 -1
  145. package/src/bin/v2/framework/testcafeTestFramework.js +1 -1
  146. package/src/bin/v2/grpcClient.js +1 -1
  147. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  148. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  149. package/src/bin/v2/instances/trackedContext.js +1 -1
  150. package/src/bin/v2/instances/trackedInstance.js +1 -1
  151. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  152. package/src/bin/v2/modules/baseModule.js +1 -1
  153. package/src/bin/v2/modules/loadTestModule.js +1 -1
  154. package/src/bin/v2/modules/observabilityModule.js +1 -1
  155. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  156. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  157. package/src/bin/v2/modules/testcafeDriverModule.js +1 -1
  158. package/src/bin/v2/modules/testhubModule.js +1 -1
  159. package/src/bin/v2/sdkErrorHandler.js +1 -1
  160. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  161. package/src/bin/v2/state/hookState.js +1 -1
  162. package/src/bin/v2/state/testFrameworkState.js +1 -1
  163. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  164. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  165. package/src/bin/v2/utils/jest-utils.js +1 -1
  166. package/src/bin/vanilla-js/command.js +1 -1
  167. package/src/browserStackSdk.js +1 -1
  168. package/src/helpers/BrowserStackSetup.js +1 -1
  169. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  170. package/src/helpers/accessibility-automation/constants.js +1 -1
  171. package/src/helpers/accessibility-automation/helper.js +1 -1
  172. package/src/helpers/accessibility-automation/scripts.js +1 -1
  173. package/src/helpers/ats/constants.js +1 -1
  174. package/src/helpers/ats/helper.js +1 -1
  175. package/src/helpers/caCertHelper.js +1 -1
  176. package/src/helpers/capsMapping.js +1 -1
  177. package/src/helpers/central-scanner/constants.js +1 -1
  178. package/src/helpers/central-scanner/helpers.js +1 -1
  179. package/src/helpers/classLogger.js +1 -1
  180. package/src/helpers/driverInitErrorReporter.js +1 -1
  181. package/src/helpers/globals.js +1 -1
  182. package/src/helpers/helper.js +1 -1
  183. package/src/helpers/logger.js +1 -1
  184. package/src/helpers/metadata.js +1 -1
  185. package/src/helpers/patchHelper.js +1 -1
  186. package/src/helpers/patchHelpers.js +1 -1
  187. package/src/helpers/percy/Percy.js +1 -1
  188. package/src/helpers/percy/PercyBinary.js +1 -1
  189. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  190. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  191. package/src/helpers/percy/PercySDK.js +1 -1
  192. package/src/helpers/percy/index.js +1 -1
  193. package/src/helpers/percy/utils.js +1 -1
  194. package/src/helpers/performance/constants.js +1 -1
  195. package/src/helpers/performance/performance-tester.js +1 -1
  196. package/src/helpers/playwright-helper.js +1 -1
  197. package/src/helpers/processHelper.js +1 -1
  198. package/src/helpers/puppeteer-helper.js +1 -1
  199. package/src/helpers/request-spy.js +1 -1
  200. package/src/helpers/setKeepAlive.js +1 -1
  201. package/src/helpers/stackFrameUtils.js +1 -1
  202. package/src/helpers/test-observability/constants.js +1 -1
  203. package/src/helpers/test-observability/error-handler.js +1 -1
  204. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  205. package/src/helpers/test-observability/sessionHandler.js +1 -1
  206. package/src/helpers/test-observability/utils.js +1 -1
  207. package/src/helpers/test-orchestration/constants.js +1 -1
  208. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  209. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  210. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  211. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  212. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  213. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  214. package/src/helpers/testhub/constants.js +1 -1
  215. package/src/helpers/testhub/testhubHandler.js +1 -1
  216. package/src/helpers/testhub/utils.js +1 -1
  217. package/src/helpers/utilities.js +1 -1
  218. package/src/helpers/w3cMapping.js +1 -1
  219. package/src/hubAllocationMethods.js +1 -1
  220. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x166570=a9_0x2046;(function(_0x5c1435,_0x508085){const _0x4e98e7=a9_0x2046,_0x1e428b=_0x5c1435();while(!![]){try{const _0x2f6f4a=parseInt(_0x4e98e7(0x1fc))/0x1+parseInt(_0x4e98e7(0x201))/0x2*(-parseInt(_0x4e98e7(0x28a))/0x3)+-parseInt(_0x4e98e7(0x1c5))/0x4+-parseInt(_0x4e98e7(0x16b))/0x5+-parseInt(_0x4e98e7(0x28b))/0x6*(-parseInt(_0x4e98e7(0x234))/0x7)+-parseInt(_0x4e98e7(0x1a9))/0x8+-parseInt(_0x4e98e7(0x138))/0x9*(-parseInt(_0x4e98e7(0x2b6))/0xa);if(_0x2f6f4a===_0x508085)break;else _0x1e428b['push'](_0x1e428b['shift']());}catch(_0x3b19d3){_0x1e428b['push'](_0x1e428b['shift']());}}}(a9_0x580e,0x64799));const fs=require('fs'),ws=require('ws'),path=require(a9_0x166570(0x2d5)),yaml=require(a9_0x166570(0x135)),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x166570(0x150)),{v4:uuidv4}=require(a9_0x166570(0x2c2)),webSocketUtils=require(a9_0x166570(0x1b8)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x166570(0x20a)),{getCloudProviderObject}=require(a9_0x166570(0x18c)),{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_0x166570(0x2ad)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x166570(0x2e0)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a9_0x166570(0x215));function a9_0x580e(){const _0x1eb952=['ThxkZ','GSfgN','yIjcF','QpslO','CVIMJ','PNXjL','RxfLn','usage','builder','IChSo','user','region','nNNas','private-grid','split','addListeners','PlMkN','non-aws-azure-cluster','pjjsq','default','jokOS','oENSl','lcrzb','pstkW','uploaderImageVersion','ingress-nginx','Adding\x20Turboscale\x20Uploader\x20deployment...','3533096SiLYUy','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','fQhzr','NrSZH','pItNP','pwsqZ','https','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','xukTZ','https://','VEMaU','bstackAccesskey','yisnC','delay','Hub\x20HA\x20setup\x20completed\x20successfully.','../../utils/webSocketUtils','ifxXG','private-ingress-nginx-controller','VrUEe','xjkoj','niTdo','hubVersion','McPvG','oRrsh','createdBy','grid-profile','inXim','yPTlV','2384480AEgsAq','TpTDJ','prespawned-cluster-args-not-passed','jxauH','spec','readFileSync','CLI_RUN_STARTED','template','frqov','get-grid-url-auth-failed','info','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','ingress-nginx-controller','warn','lIiGO','YZwLN','ygSVm','username','Cluster\x20created\x20successfully','labels','description','init-not-called','wsdvd','getResourceClientId','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','isPrivateGrid','fXHyq','Adding\x20Secret\x20Mapping','Cluster\x20','hwRXY','SlXAH','CLI_RUN_FINISHED','UkRNzNYCBU','browserstack-secret.yaml','Creating\x20Hub\x20HA\x20resources','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','NQZKv','vSxeT','qrhoG','YUeAJ','Adding\x20Kafka\x20deployment...','XeNkR','hub-ha','create-grid-checks-auth-failed','oRuZT','\x20are\x20not\x20present\x20in\x20VPC:\x20','gKwwt','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','pre-spawned-subnets-not-selected','nleru','Grid\x20spawned\x20on\x20the\x20cluster','exit','LzNFr','\x20using\x20\x27','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','237606fOObdG','gRasc','replace','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.','isVPCPresent','2JlgnJj','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','hubHaNameSpace','://','LOG','vBdsr','qCdyz','3|4|0|2|1','cluster-name','../../utils/utilityMethods','YmIlN','HmHFG','managedBy','zgcjV','Created\x20Hub\x20HA\x20resources','Grid\x20can\x20be\x20accessed\x20at:\x20','KhOmr','lgYTd','vpc','UnUAe','../../utils/instrumentationUtils','DddMI','ConwR','4|2|1|0|3','yeSIQ','get-grid-url-null-response','Oqlji','Found\x20Subnets:\x20','nHRKp','TPYyo','name','clusterAutoUpgrade','DBHxX','rtqTb','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Cluster:\x20','Spawning\x20Grid\x20on\x20the\x20Cluster','gridName','SUUBm','sendResourceDataToHST','iUYsV','jmZia','4|2|0|5|1|3|6|8|7','PzTZE','mqAsM','fFugm','apxrw','Create\x20a\x20private/public\x20grid.','minNodes','existsSync','xArYF','77xtIfVW','epilogue','Spawning\x20the\x20grid\x20','fvrkT','WXqzW','Spawning\x20grid\x20on\x20to\x20the\x20cluster','CcRFM','IFLsB','hubharesources','wJiZv','XXRUE','XyQXO','create-grid-checks-null-response','argv','biRAL','kqjPa','xtgxw','tdXhu','wfmRj','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','toLowerCase','Added\x20Redis\x20deployment.','Imjbm','EIzma','createNamespace','cQeET','Grid\x20profile\x20fetched\x20from\x20backend','skipTlsCertVerify','create-grid-checks-invalid-profile','type','Namespace\x20Created','ERROR','YhuMD','clusterRegion','XhKYP','uPKBU','xcBoQ','aenEH','2|5|11|14|13|0|3|10|6|12|7|1|8|15|4|9','kkzag','browserstack','bstackUsername','oyXUl','includes','lCVso','GGama','create','connectionTimeout','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','turboscale-managed-identity-','WhnrJ','skip-tls-cert-verify','dsWuK','nGhOO','loadAll','gfhnG','Added\x20Turboscale\x20Uploader\x20deployment.','defaultGridProfile','sendEventToBackend','alreadyPresent','JqWcP','WcmSn','premium-rwo','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','redisPassword','RHhGC','jYeZm','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','PyZJf','Joqqq','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','jbpJx','zQfUA','WDaoT','Found\x20VPC:\x20','kBVCk','message','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','XWMhp','sNxcQ','qzVFv','join','kafkaPassword','GET','GpaRf','pdshA','1312314yOZCQq','166038pOHLrz','aVYhf','JHGej','create-grid-checks-grid-already-exists','cYWWn','xyHsd','eSzOE','ARafH','dAbIh','WBEAf','setupAutoscaler','clusterAutoupgrade','Adding\x20Websocket\x20listeners','error','options','<UsernamePlaceholder>','SHmnm','desc','GJTCk','gpCUp','kafkaUploader','XtSIc','grid-name','qYQcJ','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','string','JYyaI','XWIad','enableHubHa','gridProfile','create-grid-called','updateClusterAlreadyPresent','0|8|4|3|1|2|6|5|7','../../config/constants','TkoZc','UGCsc','4|1|0|2|3','getGridHostname','AzvsD','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','privateGrid','Enabling\x20Hub\x20HA\x20flow','302420oJTZLZ','mNJhi','bxNBF','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','xDjyU','templates','kOnGp','cBPDp','hub-ha-deployments-failed','stack','grid-spawning-failed','vpPJT','uuid','VRVqC','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','pebpB','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','isClusterPresent','jEXwV','IRYhX','Namespace\x20created','/packages/cli/get-grid-url?gridIdentifier=','hNLvy','ySDaq','\x27\x20grid\x20profile','parse','IhZIO','iRPZZ','mHCYo','Skip\x20insecure\x20cert\x20verification.','password','path','ZZfzm','efs-csi','\x20in\x20existing\x20cluster\x20\x27','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','Adding\x20Redis\x20deployment...','AQyRA','cloudProvider','cloud-provider','cluster-autoupgrade','CuvGh','../../utils/gridComponents','instanceType','NbATh','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','oKbBz','jThKT','Added\x20Kafka\x20deployment.','aEEYN','body','js-yaml','length','blmOy','468spBdig','ReOwC','hOiMz','LhmqS','deleteCluster','EiCLK','uploaderVersion','metadata','uJlaA','RoyzO','abDfx','XQMhD','oiIFa','DEEGH','s3bucket','wyuQf','kBDNX','hQeJa','statusCode','command','debug','newCluster','route53','securityGroups','got','NrmPx','sDJNt','TiDhc','lKpDs','Flag\x20to\x20enable\x20Hub\x20HA','HAeEP','stringify','rMTXg','HpwZd','qZecR','browserVersion','handler','gYHOt','mKqFq','dIBjs','Browserstack','Ylbll','ggfYg','wlNGF','zZuZF','utf-8','iVkmB','UVshp','sIYkU','serviceAccountName','concurrency','1139265UISvyl','readFileAsync','KpIVf','create-grid-checks-non-200','subnets','isNewAWSCluster','AnpVb','GIYSi','kEcIl','ydyMT','hubHa','PcoYg','ZEncr','aOFVI','eRjqE','PtRXG','dGjba','help','IoeXt','dAlYZ','clusterName','FQioF','voxeg','Ddzrm','PeVLA','vaAhv','UAoKy','WvouF','pFRzZ','tMxne','RQRRZ','HlMYQ','WVIyS','../../cloudproviders/utils','XedAg'];a9_0x580e=function(){return _0x1eb952;};return a9_0x580e();}function a9_0x2046(_0xaa6e76,_0x50a834){const _0x580ef8=a9_0x580e();return a9_0x2046=function(_0x204661,_0xf7c068){_0x204661=_0x204661-0x135;let _0x50f89d=_0x580ef8[_0x204661];return _0x50f89d;},a9_0x2046(_0xaa6e76,_0x50a834);}exports[a9_0x166570(0x14b)]='grid',exports[a9_0x166570(0x29c)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x166570(0x196)]=function(_0x5c5ff2){const _0x51ec4c=a9_0x166570,_0x6c6998={};_0x6c6998[_0x51ec4c(0x1e3)]=_0x51ec4c(0x2c4),_0x6c6998[_0x51ec4c(0x2db)]='string',_0x6c6998[_0x51ec4c(0x177)]=_0x51ec4c(0x1d0),_0x6c6998[_0x51ec4c(0x22d)]=_0x51ec4c(0x1f4),_0x6c6998[_0x51ec4c(0x24a)]=_0x51ec4c(0x247),_0x6c6998[_0x51ec4c(0x1c0)]=_0x51ec4c(0x223),_0x6c6998[_0x51ec4c(0x1fd)]=_0x51ec4c(0x230),_0x6c6998[_0x51ec4c(0x258)]=_0x51ec4c(0x2d3),_0x6c6998[_0x51ec4c(0x288)]='boolean',_0x6c6998[_0x51ec4c(0x254)]=_0x51ec4c(0x155),_0x6c6998[_0x51ec4c(0x28c)]=_0x51ec4c(0x2d9),_0x6c6998[_0x51ec4c(0x172)]='help';const _0x59a3a9=_0x6c6998,_0x188d4d={};_0x188d4d[_0x51ec4c(0x1d9)]=_0x59a3a9[_0x51ec4c(0x1e3)],_0x188d4d[_0x51ec4c(0x251)]=_0x59a3a9[_0x51ec4c(0x2db)];const _0x30f50d={};_0x30f50d[_0x51ec4c(0x1d9)]=_0x59a3a9[_0x51ec4c(0x177)],_0x30f50d['type']=_0x59a3a9[_0x51ec4c(0x2db)];const _0x34f72b={};_0x34f72b[_0x51ec4c(0x1d9)]=_0x59a3a9[_0x51ec4c(0x22d)],_0x34f72b[_0x51ec4c(0x251)]=_0x59a3a9[_0x51ec4c(0x2db)];const _0x2425a2={};_0x2425a2[_0x51ec4c(0x1d9)]=_0x59a3a9[_0x51ec4c(0x24a)],_0x2425a2[_0x51ec4c(0x251)]=_0x59a3a9['AQyRA'];const _0xa214ab={};_0xa214ab['description']=_0x59a3a9[_0x51ec4c(0x1c0)],_0xa214ab[_0x51ec4c(0x251)]=_0x59a3a9[_0x51ec4c(0x2db)];const _0x4bccd3={};_0x4bccd3[_0x51ec4c(0x1d9)]=_0x59a3a9['gRasc'],_0x4bccd3[_0x51ec4c(0x251)]=_0x59a3a9[_0x51ec4c(0x2db)];const _0x4e616b={};_0x4e616b[_0x51ec4c(0x1d9)]=_0x59a3a9[_0x51ec4c(0x258)],_0x4e616b[_0x51ec4c(0x251)]=_0x59a3a9['GpaRf'],_0x4e616b[_0x51ec4c(0x1a1)]=![];const _0x51c192={};_0x51c192[_0x51ec4c(0x1d9)]=_0x59a3a9[_0x51ec4c(0x254)],_0x51c192['type']=_0x59a3a9['GpaRf'],_0x51c192[_0x51ec4c(0x1a1)]=![];const _0x3482fc={};_0x3482fc[_0x51ec4c(0x1d9)]=_0x59a3a9['aVYhf'],_0x3482fc['type']=_0x59a3a9[_0x51ec4c(0x288)],_0x3482fc[_0x51ec4c(0x1a1)]=![];const _0x18ac6f={};return _0x18ac6f[_0x51ec4c(0x2a1)]=_0x188d4d,_0x18ac6f[_0x51ec4c(0x1c2)]=_0x30f50d,_0x18ac6f[_0x51ec4c(0x209)]=_0x34f72b,_0x18ac6f[_0x51ec4c(0x2dd)]=_0x2425a2,_0x18ac6f[_0x51ec4c(0x199)]=_0xa214ab,_0x18ac6f[_0x51ec4c(0x19b)]=_0x4bccd3,_0x18ac6f['skip-tls-cert-verify']=_0x4e616b,_0x18ac6f[_0x51ec4c(0x1ef)]=_0x51c192,_0x18ac6f[_0x51ec4c(0x2de)]=_0x3482fc,_0x5c5ff2[_0x51ec4c(0x195)](HELP_HEADER_MESSAGE['create'])[_0x51ec4c(0x235)](HELP_FOOTER_MESSAGE)[_0x51ec4c(0x299)](_0x18ac6f)['help'](_0x59a3a9[_0x51ec4c(0x172)])[_0x51ec4c(0x241)];},exports[a9_0x166570(0x15c)]=async function(_0x2b40d5){const _0x4c1295=a9_0x166570,_0x53d1b7={'WVIyS':_0x4c1295(0x272),'LzNFr':_0x4c1295(0x298),'TaxcN':_0x4c1295(0x22b),'KhOmr':'CLI\x20run\x20started','pebpB':_0x4c1295(0x218),'ZZfzm':'Epyd5nXbRK','kEcIl':_0x4c1295(0x1e5),'YZwLN':_0x4c1295(0x25c),'cQeET':_0x4c1295(0x2b5),'ARafH':'http','JqWcP':'true','ThxkZ':_0x4c1295(0x1a1),'cYWWn':_0x4c1295(0x25a),'CuvGh':function(_0x1427ab,_0x5aaa69,_0x393355,_0x545872,_0x1ff223,_0x38fca9,_0x108ab2,_0x4a2f81,_0x1b76c9,_0x1de806,_0x50d869,_0x30612f,_0x5cf3e9){return _0x1427ab(_0x5aaa69,_0x393355,_0x545872,_0x1ff223,_0x38fca9,_0x108ab2,_0x4a2f81,_0x1b76c9,_0x1de806,_0x50d869,_0x30612f,_0x5cf3e9);},'nNNas':function(_0x3bbabf,_0x11cc7b){return _0x3bbabf(_0x11cc7b);},'VEMaU':function(_0x7950f7,_0x5ab808){return _0x7950f7!==_0x5ab808;},'NbATh':_0x4c1295(0x1d2),'iUYsV':function(_0x5a7ee3,_0xac2254){return _0x5a7ee3===_0xac2254;},'YmIlN':_0x4c1295(0x1aa),'vSxeT':function(_0x5111a3,_0x55d559){return _0x5111a3(_0x55d559);},'jxauH':_0x4c1295(0x1af),'VrUEe':'azurefile-csi-premium','PxsZp':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','lcrzb':_0x4c1295(0x2a5),'oyXUl':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','WDhTb':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','mKqFq':_0x4c1295(0x247),'apxrw':_0x4c1295(0x223),'mNJhi':_0x4c1295(0x230),'DEEGH':'Skip\x20insecure\x20cert\x20verification.','EIzma':'boolean','zgcjV':_0x4c1295(0x155),'pnHSm':_0x4c1295(0x2d9),'lIiGO':_0x4c1295(0x17c),'vpPJT':function(_0x3b467b){return _0x3b467b();},'WXqzW':_0x4c1295(0x278),'hwRXY':_0x4c1295(0x1dd),'oRuZT':function(_0x3a2728,_0x5a366d,_0x4233a8,_0x439dc4,_0x51448f,_0x130e1e,_0x39dc92){return _0x3a2728(_0x5a366d,_0x4233a8,_0x439dc4,_0x51448f,_0x130e1e,_0x39dc92);},'PNXjL':_0x4c1295(0x2aa),'yPTlV':_0x4c1295(0x1da),'PlMkN':_0x4c1295(0x29a),'ygSVm':'<PasswordPlaceholder>','pFRzZ':_0x4c1295(0x297),'fxXqG':_0x4c1295(0x2d1),'JHGej':_0x4c1295(0x21b),'vaAhv':_0x4c1295(0x153),'sDJNt':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','jmZia':function(_0x4cb747,_0x3fbf04,_0x2c5690,_0x532583,_0x105dd9,_0x3b23ae,_0x190b16,_0x10fe31){return _0x4cb747(_0x3fbf04,_0x2c5690,_0x532583,_0x105dd9,_0x3b23ae,_0x190b16,_0x10fe31);},'RQRRZ':_0x4c1295(0x1c7),'WvouF':_0x4c1295(0x176),'kBDNX':_0x4c1295(0x2b9),'lCVso':function(_0x3c6ffb,_0x114cc9,_0x54cde1,_0xb259e5,_0x3db096,_0x24dabd,_0x38ca9c,_0x586639){return _0x3c6ffb(_0x114cc9,_0x54cde1,_0xb259e5,_0x3db096,_0x24dabd,_0x38ca9c,_0x586639);},'XtSIc':_0x4c1295(0x19f),'oENSl':function(_0x547180,_0xe641fb){return _0x547180===_0xe641fb;},'eSzOE':function(_0x46c382,_0x4e8ead){return _0x46c382===_0x4e8ead;},'gKwwt':'lOeJJ','TPYyo':'jgaYu','wyuQf':function(_0x4fa5e2,_0x51c051,_0x159c61,_0x2a8f3c,_0x229f67,_0xe797ef,_0x23edcc){return _0x4fa5e2(_0x51c051,_0x159c61,_0x2a8f3c,_0x229f67,_0xe797ef,_0x23edcc);},'HAeEP':_0x4c1295(0x282),'hQeJa':_0x4c1295(0x284),'rtqTb':_0x4c1295(0x256),'IoeXt':_0x4c1295(0x283),'XQMhD':function(_0x3ce221,_0x1c7a8f){return _0x3ce221===_0x1c7a8f;},'DddMI':_0x4c1295(0x29e),'IPEaj':_0x4c1295(0x29b),'RFuII':_0x4c1295(0x287),'aenEH':function(_0x20c5c0,_0x2f9e09,_0x395edc){return _0x20c5c0(_0x2f9e09,_0x395edc);},'GGama':_0x4c1295(0x167),'fOJYQ':function(_0x3a4f3a,_0x350ade){return _0x3a4f3a===_0x350ade;},'HlMYQ':_0x4c1295(0x179),'ZBfxA':function(_0x3e56ec,_0x22c2e5,_0x377c93){return _0x3e56ec(_0x22c2e5,_0x377c93);},'cBPDp':_0x4c1295(0x276),'UGCsc':_0x4c1295(0x1fb),'tMxne':_0x4c1295(0x240),'HpwZd':_0x4c1295(0x212),'xArYF':_0x4c1295(0x206),'mJMPx':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','Ddzrm':_0x4c1295(0x1f0),'wfmRj':function(_0x4219d8,_0x3af625){return _0x4219d8!==_0x3af625;},'wsdvd':function(_0x359009,_0x141670){return _0x359009===_0x141670;},'abDfx':'TWJiW','kqjPa':_0x4c1295(0x137),'IhZIO':function(_0x4b96f0,_0x69bdaa,_0x1b6c68,_0x1ac3ec,_0x4cc3bd,_0x30c5d5,_0x17cd4b,_0x9672d2){return _0x4b96f0(_0x69bdaa,_0x1b6c68,_0x1ac3ec,_0x4cc3bd,_0x30c5d5,_0x17cd4b,_0x9672d2);},'ckvqm':_0x4c1295(0x16e),'xukTZ':_0x4c1295(0x24e),'HmHFG':function(_0x4fd13d,_0x19796e){return _0x4fd13d!==_0x19796e;},'kBVCk':'VaSMn','ozqyD':_0x4c1295(0x22c),'jokOS':_0x4c1295(0x28e),'nGhOO':function(_0x259ca9,_0x11ef9d){return _0x259ca9===_0x11ef9d;},'dIBjs':'xlKuj','xyHsd':_0x4c1295(0x227),'knkLL':_0x4c1295(0x208),'dGjba':function(_0x5575b2,_0x2e789c){return _0x5575b2===_0x2e789c;},'zZuZF':function(_0x4fb468,_0x470f74){return _0x4fb468===_0x470f74;},'ggfYg':_0x4c1295(0x2d2),'oiIFa':_0x4c1295(0x166),'WDaoT':'wHHuh','nleru':_0x4c1295(0x2e4),'gJDZa':_0x4c1295(0x2a3),'BkDVn':_0x4c1295(0x250),'UAoKy':function(_0xc59c43,_0x4318d4){return _0xc59c43===_0x4318d4;},'hNLvy':_0x4c1295(0x21d),'CcRFM':_0x4c1295(0x294),'IChSo':_0x4c1295(0x207),'aOFVI':_0x4c1295(0x1c6),'fvrkT':function(_0x16d8b2,_0xc18903){return _0x16d8b2!==_0xc18903;},'Ylbll':_0x4c1295(0x181),'NefWz':_0x4c1295(0x15d),'pjjsq':_0x4c1295(0x194),'yIjcF':'iyBoD','BHSqZ':_0x4c1295(0x151),'sBRfA':_0x4c1295(0x2a7),'LhmqS':function(_0x1c2c78,_0x51fb0b,_0xa00a59,_0x2c41f2,_0x1904b3,_0x3db241,_0x48d528,_0x3af767,_0x4b029e,_0x55cc8e,_0x237725,_0x5aa179,_0xac7b3e){return _0x1c2c78(_0x51fb0b,_0xa00a59,_0x2c41f2,_0x1904b3,_0x3db241,_0x48d528,_0x3af767,_0x4b029e,_0x55cc8e,_0x237725,_0x5aa179,_0xac7b3e);},'McPvG':_0x4c1295(0x271),'RHhGC':_0x4c1295(0x244),'VRVqC':function(_0x40fd61,_0x25b789){return _0x40fd61!==_0x25b789;},'ConwR':_0x4c1295(0x268),'zQfUA':_0x4c1295(0x2ac),'fFugm':function(_0x1ae4ab,_0x1318d9,_0x4315f9,_0x513f40,_0x32571a,_0x58373e,_0x25d413){return _0x1ae4ab(_0x1318d9,_0x4315f9,_0x513f40,_0x32571a,_0x58373e,_0x25d413);},'QfeBQ':function(_0x2bb0cd,_0x448233){return _0x2bb0cd!==_0x448233;},'DBHxX':function(_0x4e8e9a,_0x2231a3){return _0x4e8e9a===_0x2231a3;},'RYJXY':'DFlNw','dAlYZ':_0x4c1295(0x191),'GJTCk':function(_0x5d554f,_0x299eee){return _0x5d554f!==_0x299eee;},'wJiZv':'KxSIQ','yisnC':function(_0x4cdb32,_0x3c775f){return _0x4cdb32===_0x3c775f;},'hOiMz':'NHSOz','RoyzO':_0x4c1295(0x2a6),'xDjyU':_0x4c1295(0x273),'lekgf':function(_0x40356e,_0x531ba2){return _0x40356e!=_0x531ba2;},'gfhnG':function(_0x503863,_0x1d6c70){return _0x503863!=_0x1d6c70;},'yeSIQ':function(_0x4e19dd,_0x535422){return _0x4e19dd!==_0x535422;},'jEXwV':function(_0x3fdafd,_0x2c10d8){return _0x3fdafd>_0x2c10d8;},'ySDaq':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','AzvsD':_0x4c1295(0x1f5),'lcBoC':function(_0x2ba4c2,_0x462141){return _0x2ba4c2===_0x462141;},'MrJiT':_0x4c1295(0x281),'qrhoG':'pre-spawned-invalid-vpc','FQioF':'pre-spawned-invalid-subnets','xjkoj':'2|0|4|1|3','WhnrJ':_0x4c1295(0x1ff),'rMTXg':_0x4c1295(0x1d7),'IFLsB':function(_0x2d0f21,_0x3ffa53){return _0x2d0f21===_0x3ffa53;},'ifxXG':function(_0x5f10f9,_0x52e959,_0x4fde65){return _0x5f10f9(_0x52e959,_0x4fde65);},'inXim':function(_0x124a7a,_0x2fbe40){return _0x124a7a===_0x2fbe40;},'pdshA':_0x4c1295(0x1e7),'XeNkR':function(_0x230d2e,_0x327c95,_0x2c6bef){return _0x230d2e(_0x327c95,_0x2c6bef);},'bxNBF':_0x4c1295(0x1e0),'ydyMT':'../..','biRAL':_0x4c1295(0x2bb),'NQZKv':_0x4c1295(0x23c),'IRYhX':_0x4c1295(0x1e6),'frqov':_0x4c1295(0x165),'PtRXG':function(_0x459551,_0x4b41a5){return _0x459551(_0x4b41a5);},'lKpDs':function(_0x501e38,_0x36dfaa,_0x57ea8b){return _0x501e38(_0x36dfaa,_0x57ea8b);},'XedAg':'Added\x20Secret\x20Mapping','uPKBU':_0x4c1295(0x2d7),'uJlaA':function(_0x2d459a,_0x138c04){return _0x2d459a===_0x138c04;},'YvsDU':_0x4c1295(0x2da),'xBoDk':'bitnami-redis.yaml','KjUos':_0x4c1295(0x249),'fQhzr':_0x4c1295(0x1ed),'EiCLK':'bitnami-kafka.yaml','jThKT':_0x4c1295(0x2e6),'tdXhu':_0x4c1295(0x1a8),'CVIMJ':'turboscale-uploader.yaml','kkzag':_0x4c1295(0x26c),'PPwTn':_0x4c1295(0x20f),'fXHyq':_0x4c1295(0x1b7),'dTfJV':_0x4c1295(0x2b0),'YUeAJ':_0x4c1295(0x2be),'kOnGp':'Creating\x20namespace','niTdo':function(_0xc96381,_0x3e431d){return _0xc96381!==_0x3e431d;},'wlNGF':'Browserstack','TkoZc':_0x4c1295(0x252),'drHNT':_0x4c1295(0x2ca),'qZecR':_0x4c1295(0x239),'pstkW':_0x4c1295(0x225),'qYQcJ':function(_0x47581d,_0x37d7f2,_0x5cd999,_0x22bddb,_0x3fcc1c,_0x4803a5,_0x25b3e7,_0xc6e240,_0x405ff9,_0x5b22cd,_0xaf4c75){return _0x47581d(_0x37d7f2,_0x5cd999,_0x22bddb,_0x3fcc1c,_0x4803a5,_0x25b3e7,_0xc6e240,_0x405ff9,_0x5b22cd,_0xaf4c75);},'XyQXO':_0x4c1295(0x1f7),'aEEYN':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','vNUZx':function(_0x569bc4,_0x101073,_0x494dd5,_0x590021,_0x4919ac){return _0x569bc4(_0x101073,_0x494dd5,_0x590021,_0x4919ac);},'UnUAe':_0x4c1295(0x1ba),'PeVLA':_0x4c1295(0x1d1),'NrSZH':_0x4c1295(0x1a7),'GSfgN':function(_0x53b646,_0x1e620a,_0x47846d){return _0x53b646(_0x1e620a,_0x47846d);},'dAbIh':function(_0x4deb0d,_0x1aba0d){return _0x4deb0d===_0x1aba0d;},'KpIVf':function(_0xb1fd8b,_0x28488a){return _0xb1fd8b===_0x28488a;},'pwsqZ':_0x4c1295(0x264),'pItNP':function(_0x4bfab6,_0x1bdefe,_0x333472,_0x3c3f8f,_0xd69bea,_0x5aeeb7,_0x3e4da8,_0x3d48af){return _0x4bfab6(_0x1bdefe,_0x333472,_0x3c3f8f,_0xd69bea,_0x5aeeb7,_0x3e4da8,_0x3d48af);},'Joqqq':_0x4c1295(0x21a),'XXRUE':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','ReOwC':_0x4c1295(0x1ce),'ydJsV':function(_0x456caa,_0x22f5b9){return _0x456caa!==_0x22f5b9;},'IjauX':'get-grid-url-non-200','AnpVb':'Deleting\x20the\x20CloudFormation\x20Stacks','jbpJx':function(_0x29a239,_0x3eb37f,_0xfdac97,_0xd84a19,_0x234cca,_0x151ed9){return _0x29a239(_0x3eb37f,_0xfdac97,_0xd84a19,_0x234cca,_0x151ed9);},'ITmzU':function(_0x49893f,_0x3e8690,_0xba1ea7,_0xd7ad24,_0x435652,_0x1f75ce,_0x3d2d55){return _0x49893f(_0x3e8690,_0xba1ea7,_0xd7ad24,_0x435652,_0x1f75ce,_0x3d2d55);},'sIYkU':_0x4c1295(0x2c0)};let _0x2b1828=![],_0x3bf5d2=![],_0x2b1174,_0x1d0a27,_0x569dac,_0x4a086b,_0x31aba6,_0x1fc029,_0x52bad1,_0x4e73d8,_0x4580fb,_0x47441d,_0x2cfe08,_0x244f1b,_0x1d2318,_0xf6bc5d,_0x8be0d6=0x1,_0x10c476=0xe;try{global_registry['requestId']=_0x53d1b7['vpPJT'](uuidv4),global_registry['isPrivateGrid']=![];!fs[_0x4c1295(0x232)](_0x53d1b7[_0x4c1295(0x2c1)](getCredentialsPath))&&(_0x53d1b7[_0x4c1295(0x229)](_0x53d1b7['WXqzW'],_0x53d1b7[_0x4c1295(0x238)])?(console[_0x4c1295(0x298)](_0x53d1b7[_0x4c1295(0x1e2)]),await _0x53d1b7[_0x4c1295(0x1f1)](sendInstrumentationEvent,_0x2b40d5,_0x53d1b7['PNXjL'],messageTypes[_0x4c1295(0x253)],_0x53d1b7[_0x4c1295(0x1c4)],null,_0x2b40d5),process[_0x4c1295(0x1f8)](0x1)):_0x892a03=null);await _0x53d1b7[_0x4c1295(0x1f1)](sendInstrumentationEvent,_0x2b40d5,_0x53d1b7[_0x4c1295(0x193)],messageTypes['INFO'],null,null,_0x2b40d5);const _0x5f2503=JSON[_0x4c1295(0x2cf)](fs[_0x4c1295(0x1ca)](_0x53d1b7[_0x4c1295(0x2c1)](getCredentialsPath)));global_registry['bstackUsername']=_0x5f2503[_0x4c1295(0x160)][_0x4c1295(0x1d6)],global_registry[_0x4c1295(0x1b4)]=_0x5f2503['Browserstack']['password'];const _0x167b25=WS_ENDPOINT['replace'](_0x53d1b7[_0x4c1295(0x19e)],_0x5f2503['Browserstack'][_0x4c1295(0x1d6)])[_0x4c1295(0x1fe)](_0x53d1b7[_0x4c1295(0x1d5)],_0x5f2503[_0x4c1295(0x160)][_0x4c1295(0x2d4)]),_0x5507d6={};_0x5507d6['WebSocket']=ws,_0x5507d6[_0x4c1295(0x263)]=0x36ee80,_0x244f1b=new ReconnectingWebSocket(_0x167b25,[],_0x5507d6),logger[_0x4c1295(0x14c)](_0x53d1b7[_0x4c1295(0x187)]),webSocketUtils[_0x4c1295(0x19d)](_0x244f1b,_0x2b40d5[_0x4c1295(0x198)],_0x2b40d5[_0x4c1295(0x2d4)]);const _0x528a70=_0x2b40d5[_0x4c1295(0x226)]||DEFAULT_GRID_NAME;if(_0x2b40d5[_0x4c1295(0x17f)]||_0x2b40d5['cloudProvider']||_0x2b40d5[_0x4c1295(0x199)]){if(_0x53d1b7[_0x4c1295(0x229)](_0x53d1b7['fxXqG'],_0x53d1b7[_0x4c1295(0x28d)]))_0x508501=_0x53d1b7[_0x4c1295(0x18b)];else{!(_0x2b40d5['clusterName']&&_0x2b40d5['cloudProvider']&&_0x2b40d5[_0x4c1295(0x199)])&&(_0x53d1b7[_0x4c1295(0x1b3)](_0x53d1b7[_0x4c1295(0x184)],_0x53d1b7[_0x4c1295(0x184)])?_0x3a1413[_0x4c1295(0x298)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x46c0bd+'\x20\x0a'+_0x48747c[_0x4c1295(0x157)](_0x299c94[_0x4c1295(0x2bf)])):(_0x2b1174=_0x53d1b7[_0x4c1295(0x152)],await _0x53d1b7['jmZia'](reportToGalactusAndSendToEDS,_0x2b40d5,_0x244f1b,_0x2b1174,messageTypes[_0x4c1295(0x253)],_0x53d1b7[_0x4c1295(0x193)],_0x53d1b7[_0x4c1295(0x189)],_0x53d1b7['LzNFr']),logger[_0x4c1295(0x298)](_0x2b1174),process[_0x4c1295(0x1f8)](0x1)));![AWS,AZURE,GCP][_0x4c1295(0x25f)](_0x2b40d5[_0x4c1295(0x2dc)][_0x4c1295(0x248)]())&&(_0x53d1b7[_0x4c1295(0x1b3)](_0x53d1b7[_0x4c1295(0x186)],_0x53d1b7[_0x4c1295(0x186)])?_0x4a7298[_0x4c1295(0x1de)]=!![]:(_0x2b1174=_0x53d1b7[_0x4c1295(0x148)],await _0x53d1b7[_0x4c1295(0x260)](reportToGalactusAndSendToEDS,_0x2b40d5,_0x244f1b,_0x2b1174,messageTypes[_0x4c1295(0x253)],_0x53d1b7['PNXjL'],_0x53d1b7[_0x4c1295(0x2a0)],_0x53d1b7[_0x4c1295(0x1f9)]),logger[_0x4c1295(0x298)](_0x2b1174),process[_0x4c1295(0x1f8)](0x1)));if(_0x2b40d5[_0x4c1295(0x2b4)]&&_0x53d1b7['oENSl'](_0x2b40d5[_0x4c1295(0x2b4)][_0x4c1295(0x248)](),_0x53d1b7['JqWcP'])){if(_0x53d1b7[_0x4c1295(0x291)](_0x53d1b7[_0x4c1295(0x1f3)],_0x53d1b7[_0x4c1295(0x21e)])){const _0x3b5de8={};_0x3b5de8[_0x4c1295(0x251)]=_0x18f133['LOG'],_0x3b5de8[_0x4c1295(0x280)]=_0x2b0bd8,_0x14eea1[_0x4c1295(0x26e)](_0xf0e9df,_0x3b5de8,_0x53d1b7['LzNFr'],!![]);}else global_registry[_0x4c1295(0x1de)]=!![];}global_registry[_0x4c1295(0x2dc)]=_0x2b40d5[_0x4c1295(0x2dc)],global_registry[_0x4c1295(0x255)]=_0x2b40d5[_0x4c1295(0x199)],global_registry[_0x4c1295(0x17f)]=_0x2b40d5[_0x4c1295(0x17f)];const _0x328822=await _0x53d1b7[_0x4c1295(0x147)](getCloudProviderObject,_0x2b40d5['cloudProvider'],_0x2b40d5['clusterName'],_0x528a70,_0x244f1b,webSocketUtils,_0x2b40d5),_0x259b84=await _0x328822[_0x4c1295(0x2c7)]();if(!_0x259b84){if(_0x53d1b7[_0x4c1295(0x1b3)](_0x53d1b7[_0x4c1295(0x156)],_0x53d1b7[_0x4c1295(0x149)]))logger[_0x4c1295(0x1cf)](_0x4c1295(0x224)+_0x2b40d5[_0x4c1295(0x17f)]+_0x4c1295(0x277)),_0x2b1828=![],_0x3bf5d2=!![];else{const _0x345c84=_0x53d1b7['TaxcN'][_0x4c1295(0x19c)]('|');let _0x2452c5=0x0;while(!![]){switch(_0x345c84[_0x2452c5++]){case'0':_0x33091d[_0x4c1295(0x1cf)](_0x1412a0);continue;case'1':_0x17684b[_0x4c1295(0x2dc)]=_0x23ff73;continue;case'2':_0xad8129=_0x4c1295(0x236)+_0x38053d+_0x4c1295(0x2d8)+_0x111d4a+'\x27';continue;case'3':_0x4547b4['clusterRegion']=_0x5023b1;continue;case'4':const _0x4b612b={};_0x4b612b[_0x4c1295(0x251)]=_0xc2e24d['CLI_RUN_STARTED'],_0x4b612b[_0x4c1295(0x280)]=_0x53d1b7['KhOmr'],_0x15b873[_0x4c1295(0x26e)](_0x4e0f82,_0x4b612b);continue;case'5':const _0x339a05={};_0x339a05[_0x4c1295(0x251)]=_0x7b1763['LOG'],_0x339a05['message']=_0x53c1a1,_0x2d9ab0['sendEventToBackend'](_0x34f1ab,_0x339a05);continue;case'6':_0x609b90['clusterName']=_0x59183a;continue;case'7':_0x1e38bc[_0x4c1295(0x15b)]=_0x53181c[_0x4c1295(0x15b)];continue;case'8':_0x1bbb2e['hubVersion']=_0x3968d9[_0x4c1295(0x1be)];continue;}break;}}}else{if(_0x53d1b7[_0x4c1295(0x1a3)](_0x53d1b7[_0x4c1295(0x222)],_0x53d1b7[_0x4c1295(0x17d)])){const _0x1b96cf=_0x53d1b7[_0x4c1295(0x2c5)]['split']('|');let _0x2dbd33=0x0;while(!![]){switch(_0x1b96cf[_0x2dbd33++]){case'0':_0xaf905d['kafkaPassword']=_0x53d1b7[_0x4c1295(0x2d6)];continue;case'1':_0x554fde['redisPassword']=_0x53d1b7['kEcIl'];continue;case'2':_0x4fe4b6[_0x4c1295(0x203)]=_0x53d1b7[_0x4c1295(0x1d4)];continue;case'3':_0xb83ae0['enableHubHa']=!![];continue;case'4':_0x53c5a3['info'](_0x53d1b7[_0x4c1295(0x24d)]);continue;}break;}}else _0x2b1828=!![];}_0x569dac=_0x2b40d5[_0x4c1295(0x17f)],_0x1d0a27=_0x2b40d5[_0x4c1295(0x2dc)][_0x4c1295(0x248)](),_0x4a086b=_0x2b40d5['region'];}}else _0x2b40d5[_0x4c1295(0x2a9)]&&(_0x53d1b7[_0x4c1295(0x143)](_0x53d1b7[_0x4c1295(0x216)],_0x53d1b7['IPEaj'])?_0x43df19=_0x53d1b7[_0x4c1295(0x292)]:global_registry[_0x4c1295(0x2a9)]=_0x2b40d5['gridProfile']);global_registry[_0x4c1295(0x226)]=_0x2b40d5[_0x4c1295(0x226)];const _0x41ab2c={'method':_0x53d1b7['RFuII'],'headers':_0x53d1b7[_0x4c1295(0x259)](getAuthHeader,_0x5f2503['Browserstack']['username'],_0x5f2503[_0x4c1295(0x160)][_0x4c1295(0x2d4)]),'throwHttpErrors':![]},_0x14c7c4={};_0x14c7c4[_0x4c1295(0x226)]=_0x528a70;const _0x4e3007=_0x14c7c4;_0x3bf5d2&&(_0x53d1b7[_0x4c1295(0x1b3)](_0x53d1b7[_0x4c1295(0x261)],_0x53d1b7['GGama'])?_0xfc9a03['isPrivateGrid']=!![]:(_0x4e3007['region']=_0x4a086b,_0x4e3007[_0x4c1295(0x2dc)]=_0x1d0a27,_0x4e3007[_0x4c1295(0x14d)]=!![],_0x4e3007[_0x4c1295(0x220)]=_0x2b40d5['clusterAutoupgrade']));if(_0x2b40d5[_0x4c1295(0x296)]){if(_0x53d1b7['fOJYQ'](_0x53d1b7['HlMYQ'],_0x53d1b7[_0x4c1295(0x18a)]))logger[_0x4c1295(0x1cf)](_0x53d1b7['YmIlN']);else{const _0x5b67bb={'azure.workload.identity/use':_0x53d1b7[_0x4c1295(0x270)],..._0x3acd8d[0x0][_0x4c1295(0x1c9)][_0x4c1295(0x1cc)][_0x4c1295(0x13f)]['labels']};_0xa348f0[0x0][_0x4c1295(0x1c9)][_0x4c1295(0x1cc)][_0x4c1295(0x13f)][_0x4c1295(0x1d8)]=_0x5b67bb,_0x369b2d[0x0][_0x4c1295(0x1c9)][_0x4c1295(0x1cc)][_0x4c1295(0x1c9)]['serviceAccountName']=_0x53d1b7[_0x4c1295(0x18e)];}}const _0x1c901d=_0x4c1295(0x1b2)+AG_API_URL+'/packages/cli/create-grid-checks',_0x5633f1={'searchParams':_0x4e3007,'throwHttpErrors':![],..._0x41ab2c},_0x32a729=_0x5633f1,_0x53be14=await _0x53d1b7['ZBfxA'](got,_0x1c901d,_0x32a729);if(_0x53d1b7[_0x4c1295(0x1a3)](_0x53be14,null)||_0x53d1b7['eSzOE'](_0x53be14,undefined)){if(_0x53d1b7[_0x4c1295(0x291)](_0x53d1b7[_0x4c1295(0x2bd)],_0x53d1b7[_0x4c1295(0x2bd)]))_0x2b1174=_0x53d1b7[_0x4c1295(0x2af)],await _0x53d1b7[_0x4c1295(0x260)](reportToGalactusAndSendToEDS,_0x2b40d5,_0x244f1b,_0x2b1174,messageTypes[_0x4c1295(0x253)],_0x53d1b7[_0x4c1295(0x193)],_0x53d1b7[_0x4c1295(0x188)],_0x53d1b7['LzNFr']),logger[_0x4c1295(0x298)](_0x2b1174),process[_0x4c1295(0x1f8)](0x1);else{const _0x35702d=_0x53d1b7[_0x4c1295(0x28f)][_0x4c1295(0x19c)]('|');let _0x1a67d5=0x0;while(!![]){switch(_0x35702d[_0x1a67d5++]){case'0':_0x515fe3=null;continue;case'1':_0x193931=_0x16e21c[_0x4c1295(0x1be)];continue;case'2':_0x2b7119='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x27e510;continue;case'3':_0x4d3b0b=null;continue;case'4':_0x53d1b7[_0x4c1295(0x2df)](_0x38d1a3,_0x3a08c1,_0x45ebdb,_0x3d0e37,_0x20a9cb,_0x297034,_0x40caa2,_0x24fdf0,_0x38b31d,_0x45cb17,_0xf7ba5d,_0x4b66c0,_0x56e7e6['clusterAutoupgrade']);continue;case'5':_0x4c5026['info'](_0x52facc);continue;case'6':_0x43c9d2=_0x3f9ece[_0x4c1295(0x146)];continue;case'7':_0x2b1cfc=_0x58b099['maxNodes'];continue;case'8':_0x34e3b3=_0x7a9a1b[_0x4c1295(0x15b)];continue;case'9':_0x144979[_0x4c1295(0x2a8)]&&_0x53d1b7['nNNas'](_0x325bf1,_0x3f8e81[_0x4c1295(0x29f)]);continue;case'10':_0x3b32e5=null;continue;case'11':const _0x4fed02={};_0x4fed02[_0x4c1295(0x251)]=_0x4bd425[_0x4c1295(0x205)],_0x4fed02['message']=_0x4663a5,_0x3aafe8[_0x4c1295(0x26e)](_0x5e86ab,_0x4fed02);continue;case'12':_0x3bbcd2=_0x23980d[_0x4c1295(0x231)];continue;case'13':_0x5296c1=_0x3292e1[_0x4c1295(0x2e1)];continue;case'14':_0x5d45ba=_0x3256cc[_0x4c1295(0x16a)];continue;case'15':_0x53d1b7['VEMaU'](_0x1af666[_0x4c1295(0x2b4)],_0x71e20b)&&_0x1e6732[_0x4c1295(0x2b4)]&&(_0x5e6aad[_0x4c1295(0x1de)]=!![]);continue;}break;}}}if(_0x53d1b7['fOJYQ'](_0x53be14[_0x4c1295(0x14a)],0x191)){if(_0x53d1b7[_0x4c1295(0x143)](_0x53d1b7[_0x4c1295(0x159)],_0x53d1b7[_0x4c1295(0x233)])){const _0x112672={};_0x112672[_0x4c1295(0x251)]=_0x33a9de[_0x4c1295(0x205)],_0x112672[_0x4c1295(0x280)]=_0x4c1295(0x1e1)+_0x2baa42+_0x4c1295(0x2e3),_0x2385fe[_0x4c1295(0x26e)](_0x3ebf5b,_0x112672,_0x53d1b7[_0x4c1295(0x2e2)]),_0x15d596[_0x4c1295(0x1cf)](_0x4c1295(0x1e1)+_0x2c76f6+_0x4c1295(0x2e3)),_0x2e001b=!![];if(_0x53d1b7[_0x4c1295(0x229)](_0x1421ed,!![]))throw new _0x5e4422(_0x4c1295(0x1e1)+_0xc05425+_0x4c1295(0x27a));}else _0x2b1174=_0x53d1b7['mJMPx'],await _0x53d1b7[_0x4c1295(0x22a)](reportToGalactusAndSendToEDS,_0x2b40d5,_0x244f1b,_0x2b1174,messageTypes[_0x4c1295(0x253)],_0x53d1b7[_0x4c1295(0x193)],_0x53d1b7[_0x4c1295(0x182)],_0x53d1b7[_0x4c1295(0x1f9)]),logger[_0x4c1295(0x298)](_0x2b1174),process[_0x4c1295(0x1f8)](0x1);}_0x53d1b7[_0x4c1295(0x246)](_0x53be14[_0x4c1295(0x14a)],0xc8)&&(_0x53d1b7[_0x4c1295(0x1db)](_0x53d1b7[_0x4c1295(0x142)],_0x53d1b7[_0x4c1295(0x243)])?_0x5c5452[_0x4c1295(0x1cf)](_0x53d1b7[_0x4c1295(0x20b)]):(_0x2b1174='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x4c1295(0x157)](_0x53be14[_0x4c1295(0x2e8)]),await _0x53d1b7[_0x4c1295(0x2d0)](reportToGalactusAndSendToEDS,_0x2b40d5,_0x244f1b,_0x2b1174,messageTypes['ERROR'],_0x53d1b7[_0x4c1295(0x193)],_0x53d1b7['ckvqm'],_0x53d1b7[_0x4c1295(0x1f9)]),logger[_0x4c1295(0x298)](_0x2b1174),process[_0x4c1295(0x1f8)](0x1)));const _0x1b111e=JSON['parse'](_0x53be14[_0x4c1295(0x2e8)]),_0x4f309e={};_0x4f309e[_0x4c1295(0x251)]=WS_EVENTS[_0x4c1295(0x1cb)],_0x4f309e[_0x4c1295(0x280)]=_0x53d1b7['KhOmr'],webSocketUtils[_0x4c1295(0x26e)](_0x244f1b,_0x4f309e);const _0x27d488={};_0x27d488[_0x4c1295(0x251)]=WS_EVENTS['LOG'],_0x27d488[_0x4c1295(0x280)]=_0x53d1b7[_0x4c1295(0x1b1)],webSocketUtils['sendEventToBackend'](_0x244f1b,_0x27d488);_0x1b111e[_0x4c1295(0x26f)]&&(_0x53d1b7[_0x4c1295(0x20c)](_0x53d1b7[_0x4c1295(0x27f)],_0x53d1b7['ozqyD'])?(_0x2b1174='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x528a70+_0x4c1295(0x2a4),await _0x53d1b7[_0x4c1295(0x260)](reportToGalactusAndSendToEDS,_0x2b40d5,_0x244f1b,_0x2b1174,messageTypes[_0x4c1295(0x253)],_0x53d1b7[_0x4c1295(0x193)],_0x53d1b7[_0x4c1295(0x1a2)],_0x53d1b7['LzNFr']),logger[_0x4c1295(0x298)](_0x2b1174),process[_0x4c1295(0x1f8)](0x1)):_0x53d1b7['nNNas'](_0x5d9998,_0x3704fe[_0x4c1295(0x29f)]));const _0x3d8beb=_0x1b111e['gridProfiles'];let _0x1a4d54=_0x3d8beb[_0x1b111e[_0x4c1295(0x26d)]];_0x2b40d5[_0x4c1295(0x2a9)]&&(_0x53d1b7[_0x4c1295(0x269)](_0x53d1b7['dIBjs'],_0x53d1b7[_0x4c1295(0x15f)])?_0x1a4d54=_0x3d8beb[_0x2b40d5[_0x4c1295(0x2a9)]]:_0x53d1b7[_0x4c1295(0x1ea)](_0x1fc27b,_0xd2258a[_0x4c1295(0x13e)]));global_registry[_0x4c1295(0x2a8)]=![];if(_0x2b40d5[_0x4c1295(0x175)]){if(_0x53d1b7['HmHFG'](_0x53d1b7[_0x4c1295(0x290)],_0x53d1b7[_0x4c1295(0x290)]))_0x7935ec[_0x4c1295(0x1cf)]('Found\x20Subnets:\x20'+_0x20d4f9['stringify'](_0x1dfb5b)+'\x20');else{const _0x13c726=_0x53d1b7['knkLL'][_0x4c1295(0x19c)]('|');let _0x37b4da=0x0;while(!![]){switch(_0x13c726[_0x37b4da++]){case'0':global_registry[_0x4c1295(0x274)]=_0x53d1b7[_0x4c1295(0x173)];continue;case'1':global_registry[_0x4c1295(0x2a8)]=!![];continue;case'2':global_registry[_0x4c1295(0x286)]=_0x53d1b7[_0x4c1295(0x2d6)];continue;case'3':logger[_0x4c1295(0x1cf)](_0x53d1b7['cQeET']);continue;case'4':global_registry['hubHaNameSpace']=_0x53d1b7[_0x4c1295(0x1d4)];continue;}break;}}}if(_0x53d1b7[_0x4c1295(0x17b)](_0x2b1828,![])&&_0x53d1b7[_0x4c1295(0x164)](_0x3bf5d2,![])){if(_0x53d1b7[_0x4c1295(0x246)](_0x53d1b7[_0x4c1295(0x162)],_0x53d1b7[_0x4c1295(0x144)])){_0x53d1b7['wsdvd'](_0x1a4d54,undefined)&&(_0x53d1b7[_0x4c1295(0x246)](_0x53d1b7[_0x4c1295(0x27d)],_0x53d1b7[_0x4c1295(0x1f6)])?(_0x2b1174=_0x53d1b7['gJDZa'],await _0x53d1b7[_0x4c1295(0x22a)](reportToGalactusAndSendToEDS,_0x2b40d5,_0x244f1b,_0x2b1174,messageTypes[_0x4c1295(0x253)],_0x53d1b7[_0x4c1295(0x193)],_0x53d1b7['BkDVn'],_0x53d1b7[_0x4c1295(0x1f9)]),logger[_0x4c1295(0x298)](_0x2b1174),process[_0x4c1295(0x1f8)](0x1)):_0x3745d3[_0x4c1295(0x2a9)]=_0x28a52f[_0x4c1295(0x2a9)]);global_registry['gridProfileId']=_0x1a4d54['id'],_0x2b1174='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x528a70+_0x4c1295(0x1fa)+_0x1a4d54[_0x4c1295(0x21f)]+_0x4c1295(0x2ce),logger[_0x4c1295(0x1cf)](_0x2b1174);const _0x52cc80={};_0x52cc80[_0x4c1295(0x251)]=WS_EVENTS[_0x4c1295(0x205)],_0x52cc80['message']=_0x2b1174,webSocketUtils[_0x4c1295(0x26e)](_0x244f1b,_0x52cc80),_0x1d0a27=_0x1a4d54[_0x4c1295(0x2dc)],_0x569dac=_0x1a4d54[_0x4c1295(0x17f)],_0x4a086b=_0x1a4d54[_0x4c1295(0x199)],_0x31aba6=_0x1a4d54[_0x4c1295(0x16a)],_0x1fc029=_0x1a4d54[_0x4c1295(0x2e1)],_0x52bad1=_0x1a4d54[_0x4c1295(0x213)],_0x4e73d8=_0x1a4d54[_0x4c1295(0x14f)],_0x4580fb=_0x1a4d54[_0x4c1295(0x16f)],_0x47441d=_0x1a4d54['s3bucket'],_0x8be0d6=_0x1a4d54[_0x4c1295(0x231)],_0x10c476=_0x1a4d54['maxNodes'],_0x1d2318=_0x1b111e[_0x4c1295(0x1be)],_0xf6bc5d=_0x1b111e[_0x4c1295(0x15b)],_0x52bad1&&_0x53d1b7[_0x4c1295(0x185)](_0x52bad1['length'],0x0)&&(_0x53d1b7[_0x4c1295(0x185)](_0x53d1b7[_0x4c1295(0x2cc)],_0x53d1b7[_0x4c1295(0x23a)])?_0x48aa3c=!![]:_0x52bad1=null),_0x4580fb&&_0x53d1b7[_0x4c1295(0x1a3)](_0x4580fb[_0x4c1295(0x136)],0x0)&&(_0x53d1b7[_0x4c1295(0x291)](_0x53d1b7[_0x4c1295(0x197)],_0x53d1b7[_0x4c1295(0x178)])?_0x4a324e=_0x2b7434[_0x675a77[_0x4c1295(0x2a9)]]:_0x4580fb=null),_0x53d1b7[_0x4c1295(0x237)](_0x1a4d54['privateGrid'],undefined)&&_0x1a4d54[_0x4c1295(0x2b4)]&&(_0x53d1b7[_0x4c1295(0x20c)](_0x53d1b7[_0x4c1295(0x161)],_0x53d1b7[_0x4c1295(0x161)])?_0x1ed6b4=null:global_registry['isPrivateGrid']=!![]),_0x53d1b7['CuvGh'](updateGlobalRegistryWithConfig,_0x1d0a27,_0x569dac,_0x4a086b,_0x31aba6,_0x1fc029,_0x47441d,_0x1a4d54,_0x1d2318,_0xf6bc5d,_0x8be0d6,_0x10c476,_0x2b40d5[_0x4c1295(0x296)]),global_registry[_0x4c1295(0x2a8)]&&(_0x53d1b7[_0x4c1295(0x1a3)](_0x53d1b7['NefWz'],_0x53d1b7[_0x4c1295(0x1a0)])?(_0x5874e1['info'](_0x4c1295(0x224)+_0x4f270c[_0x4c1295(0x17f)]+_0x4c1295(0x277)),_0x23d4e2=![],_0x1b4cc2=!![]):_0x53d1b7[_0x4c1295(0x19a)](updateGlobalRegistryForHubHa,_0x1b111e[_0x4c1295(0x13e)]));}else _0x4f8000[_0x4c1295(0x1de)]=!![];}else{if(_0x53d1b7[_0x4c1295(0x185)](_0x3bf5d2,!![])){if(_0x53d1b7['fOJYQ'](_0x53d1b7['yIjcF'],_0x53d1b7[_0x4c1295(0x190)])){_0x2b1174='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x528a70,logger['info'](_0x2b1174);const _0x5eb055={};_0x5eb055[_0x4c1295(0x251)]=WS_EVENTS[_0x4c1295(0x205)],_0x5eb055[_0x4c1295(0x280)]=_0x2b1174,webSocketUtils[_0x4c1295(0x26e)](_0x244f1b,_0x5eb055),_0x31aba6=_0x1a4d54[_0x4c1295(0x16a)],_0x1fc029=_0x1a4d54[_0x4c1295(0x2e1)],_0x52bad1=null,_0x4e73d8=null,_0x4580fb=null,_0x47441d=_0x1a4d54['s3bucket'],_0x8be0d6=_0x1a4d54[_0x4c1295(0x231)],_0x10c476=_0x1a4d54['maxNodes'],_0x1d2318=_0x1b111e[_0x4c1295(0x1be)],_0xf6bc5d=_0x1b111e[_0x4c1295(0x15b)],_0x53d1b7[_0x4c1295(0x20c)](_0x1a4d54[_0x4c1295(0x2b4)],undefined)&&_0x1a4d54[_0x4c1295(0x2b4)]&&(_0x53d1b7[_0x4c1295(0x1a3)](_0x53d1b7['BHSqZ'],_0x53d1b7['sBRfA'])?(_0x4c765a=_0x12e520['route53'],_0x17a205=_0x53d1b7[_0x4c1295(0x1c8)]):global_registry[_0x4c1295(0x1de)]=!![]),_0x53d1b7[_0x4c1295(0x13b)](updateGlobalRegistryWithConfig,_0x1d0a27,_0x569dac,_0x4a086b,_0x31aba6,_0x1fc029,_0x47441d,_0x1a4d54,_0x1d2318,_0xf6bc5d,_0x8be0d6,_0x10c476,_0x2b40d5['clusterAutoupgrade']),global_registry[_0x4c1295(0x2a8)]&&(_0x53d1b7['iUYsV'](_0x53d1b7[_0x4c1295(0x1bf)],_0x53d1b7[_0x4c1295(0x275)])?_0x58095c=_0x53d1b7[_0x4c1295(0x1bb)]:_0x53d1b7[_0x4c1295(0x1ea)](updateGlobalRegistryForHubHa,_0x1b111e[_0x4c1295(0x29f)]));}else _0xa9e7c1['region']=_0x532add,_0x24b7a5[_0x4c1295(0x2dc)]=_0x5d0143,_0x299dec[_0x4c1295(0x14d)]=!![],_0x12d19a[_0x4c1295(0x220)]=_0x4cbb91[_0x4c1295(0x296)];}else{if(_0x53d1b7[_0x4c1295(0x2c3)](_0x53d1b7['ConwR'],_0x53d1b7[_0x4c1295(0x217)]))throw new _0x3a23ac(_0x4c1295(0x1e1)+_0x170640+_0x4c1295(0x27a));else{const _0x2bfda6=_0x53d1b7[_0x4c1295(0x27c)][_0x4c1295(0x19c)]('|');let _0x7da088=0x0;while(!![]){switch(_0x2bfda6[_0x7da088++]){case'0':const _0x53441d={};_0x53441d[_0x4c1295(0x251)]=WS_EVENTS[_0x4c1295(0x1cb)],_0x53441d[_0x4c1295(0x280)]=_0x53d1b7[_0x4c1295(0x211)],webSocketUtils['sendEventToBackend'](_0x244f1b,_0x53441d);continue;case'1':global_registry[_0x4c1295(0x2dc)]=_0x1d0a27;continue;case'2':global_registry[_0x4c1295(0x255)]=_0x4a086b;continue;case'3':const _0x24a7df={};_0x24a7df[_0x4c1295(0x251)]=WS_EVENTS[_0x4c1295(0x205)],_0x24a7df[_0x4c1295(0x280)]=_0x2b1174,webSocketUtils[_0x4c1295(0x26e)](_0x244f1b,_0x24a7df);continue;case'4':logger[_0x4c1295(0x1cf)](_0x2b1174);continue;case'5':global_registry[_0x4c1295(0x1be)]=_0x1b111e['hubVersion'];continue;case'6':global_registry[_0x4c1295(0x17f)]=_0x569dac;continue;case'7':global_registry['browserVersion']=_0x1b111e['browserVersion'];continue;case'8':_0x2b1174=_0x4c1295(0x236)+_0x528a70+_0x4c1295(0x2d8)+_0x569dac+'\x27';continue;}break;}}}}const _0x3c9b92=await _0x53d1b7[_0x4c1295(0x22e)](getCloudProviderObject,_0x1d0a27,_0x569dac,_0x528a70,_0x244f1b,webSocketUtils,_0x2b40d5);if(_0x53d1b7['QfeBQ'](_0x1d0a27,AZURE)){if(_0x53d1b7[_0x4c1295(0x221)](_0x53d1b7['RYJXY'],_0x53d1b7[_0x4c1295(0x17e)])){const _0x35fb34={};_0x35fb34[_0x4c1295(0x1d9)]=_0x53d1b7['PxsZp'],_0x35fb34[_0x4c1295(0x251)]=_0x53d1b7[_0x4c1295(0x1a4)];const _0x322874={};_0x322874[_0x4c1295(0x1d9)]=_0x53d1b7[_0x4c1295(0x25e)],_0x322874[_0x4c1295(0x251)]=_0x53d1b7[_0x4c1295(0x1a4)];const _0xb16e1d={};_0xb16e1d[_0x4c1295(0x1d9)]=_0x53d1b7['WDhTb'],_0xb16e1d[_0x4c1295(0x251)]=_0x53d1b7[_0x4c1295(0x1a4)];const _0x31cb31={};_0x31cb31['description']=_0x53d1b7[_0x4c1295(0x15e)],_0x31cb31['type']=_0x53d1b7[_0x4c1295(0x1a4)];const _0x2bc61a={};_0x2bc61a[_0x4c1295(0x1d9)]=_0x53d1b7[_0x4c1295(0x22f)],_0x2bc61a[_0x4c1295(0x251)]=_0x53d1b7[_0x4c1295(0x1a4)];const _0x4ca400={};_0x4ca400[_0x4c1295(0x1d9)]=_0x53d1b7[_0x4c1295(0x2b7)],_0x4ca400[_0x4c1295(0x251)]=_0x53d1b7[_0x4c1295(0x1a4)];const _0x4d49cb={};_0x4d49cb['description']=_0x53d1b7[_0x4c1295(0x145)],_0x4d49cb[_0x4c1295(0x251)]=_0x53d1b7['EIzma'],_0x4d49cb[_0x4c1295(0x1a1)]=![];const _0x914017={};_0x914017[_0x4c1295(0x1d9)]=_0x53d1b7[_0x4c1295(0x20e)],_0x914017[_0x4c1295(0x251)]=_0x53d1b7[_0x4c1295(0x24b)],_0x914017[_0x4c1295(0x1a1)]=![];const _0x1fe49c={};_0x1fe49c[_0x4c1295(0x1d9)]=_0x53d1b7['pnHSm'],_0x1fe49c[_0x4c1295(0x251)]=_0x53d1b7[_0x4c1295(0x24b)],_0x1fe49c[_0x4c1295(0x1a1)]=![];const _0x5312a7={};return _0x5312a7[_0x4c1295(0x2a1)]=_0x35fb34,_0x5312a7[_0x4c1295(0x1c2)]=_0x322874,_0x5312a7[_0x4c1295(0x209)]=_0xb16e1d,_0x5312a7[_0x4c1295(0x2dd)]=_0x31cb31,_0x5312a7[_0x4c1295(0x199)]=_0x2bc61a,_0x5312a7[_0x4c1295(0x19b)]=_0x4ca400,_0x5312a7[_0x4c1295(0x267)]=_0x4d49cb,_0x5312a7[_0x4c1295(0x1ef)]=_0x914017,_0x5312a7['cluster-autoupgrade']=_0x1fe49c,_0x42175e['usage'](_0x43c5d8[_0x4c1295(0x262)])[_0x4c1295(0x235)](_0x162a06)[_0x4c1295(0x299)](_0x5312a7)['help'](_0x53d1b7[_0x4c1295(0x1d3)])[_0x4c1295(0x241)];}else _0x3c9b92[_0x4c1295(0x228)]();}let _0x162a8e;if(_0x53d1b7[_0x4c1295(0x221)](_0x2b1828,![])){_0x2b1174='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x4a086b+').';const _0xd29331={};_0xd29331[_0x4c1295(0x251)]=WS_EVENTS['LOG'],_0xd29331[_0x4c1295(0x280)]=_0x2b1174,webSocketUtils[_0x4c1295(0x26e)](_0x244f1b,_0xd29331),logger['info'](_0x2b1174);const _0x2e4b1b=await _0x3c9b92[_0x4c1295(0x2c7)]();if(_0x2e4b1b){if(_0x53d1b7[_0x4c1295(0x29d)](_0x53d1b7[_0x4c1295(0x23d)],_0x53d1b7['wJiZv']))_0x18a030['info'](_0x4c1295(0x27e)+_0x2a860c+'\x20');else{const _0x1f8f04={};_0x1f8f04[_0x4c1295(0x251)]=WS_EVENTS[_0x4c1295(0x205)],_0x1f8f04[_0x4c1295(0x280)]=_0x4c1295(0x1e1)+_0x569dac+_0x4c1295(0x2e3),webSocketUtils['sendEventToBackend'](_0x244f1b,_0x1f8f04,_0x53d1b7[_0x4c1295(0x2e2)]),logger[_0x4c1295(0x1cf)](_0x4c1295(0x1e1)+_0x569dac+_0x4c1295(0x2e3)),_0x2b1828=!![];if(_0x53d1b7[_0x4c1295(0x1b5)](_0x3bf5d2,!![])){if(_0x53d1b7[_0x4c1295(0x17b)](_0x53d1b7[_0x4c1295(0x13a)],_0x53d1b7[_0x4c1295(0x141)]))_0x54e7c9[_0x4c1295(0x228)]();else throw new Error(_0x4c1295(0x1e1)+_0x569dac+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}}else{const _0x3c4398={};_0x3c4398[_0x4c1295(0x251)]=WS_EVENTS['LOG'],_0x3c4398[_0x4c1295(0x280)]=_0x53d1b7[_0x4c1295(0x2ba)],webSocketUtils[_0x4c1295(0x26e)](_0x244f1b,_0x3c4398),logger[_0x4c1295(0x1cf)](_0x53d1b7['xDjyU']);const _0x5a21d6=_0x53d1b7['lekgf'](_0x52bad1,null)&&_0x53d1b7[_0x4c1295(0x237)](_0x52bad1,undefined),_0x5153ec=_0x53d1b7[_0x4c1295(0x26b)](_0x4580fb,null)&&_0x53d1b7[_0x4c1295(0x219)](_0x4580fb,undefined)&&_0x53d1b7[_0x4c1295(0x2c8)](_0x4580fb[_0x4c1295(0x136)],0x0);if(_0x5a21d6){_0x53d1b7['XQMhD'](_0x5153ec,![])&&(_0x2b1174=_0x53d1b7[_0x4c1295(0x2cd)],await _0x53d1b7['IhZIO'](reportToGalactusAndSendToEDS,_0x2b40d5,_0x244f1b,_0x2b1174,messageTypes[_0x4c1295(0x253)],_0x53d1b7[_0x4c1295(0x193)],_0x53d1b7[_0x4c1295(0x2b2)],_0x53d1b7[_0x4c1295(0x1f9)]),logger['error'](_0x2b1174),process[_0x4c1295(0x1f8)](0x1));const _0x121f0a=await _0x3c9b92[_0x4c1295(0x200)](_0x52bad1);_0x53d1b7['lcBoC'](_0x121f0a,![])?(_0x2b1174=_0x53d1b7['MrJiT'],await _0x53d1b7[_0x4c1295(0x22a)](reportToGalactusAndSendToEDS,_0x2b40d5,_0x244f1b,_0x2b1174,messageTypes[_0x4c1295(0x253)],_0x53d1b7[_0x4c1295(0x193)],_0x53d1b7[_0x4c1295(0x1eb)],_0x53d1b7[_0x4c1295(0x1f9)]),logger[_0x4c1295(0x298)](_0x2b1174),process['exit'](0x1)):logger[_0x4c1295(0x1cf)]('Found\x20VPC:\x20'+_0x52bad1+'\x20');const _0x17d66c=await _0x3c9b92['isSubnetsValid'](_0x4580fb,_0x52bad1);_0x53d1b7[_0x4c1295(0x291)](_0x17d66c[0x0],![])?(_0x2b1174='Subnets:\x20'+JSON['stringify'](_0x17d66c[0x1])+_0x4c1295(0x1f2)+_0x52bad1+_0x4c1295(0x1e8),await _0x53d1b7['IhZIO'](reportToGalactusAndSendToEDS,_0x2b40d5,_0x244f1b,_0x2b1174,messageTypes[_0x4c1295(0x253)],_0x53d1b7[_0x4c1295(0x193)],_0x53d1b7[_0x4c1295(0x180)],_0x53d1b7['LzNFr']),logger[_0x4c1295(0x298)](_0x2b1174),process['exit'](0x1)):logger['info'](_0x4c1295(0x21c)+JSON[_0x4c1295(0x157)](_0x4580fb)+'\x20'),[_0x52bad1,_0x4580fb]=await _0x3c9b92['setupNewCluster'](_0x52bad1,_0x4580fb);}else{const _0x4e1e76=_0x53d1b7[_0x4c1295(0x1bc)]['split']('|');let _0x302086=0x0;while(!![]){switch(_0x4e1e76[_0x302086++]){case'0':logger[_0x4c1295(0x1cf)](_0x53d1b7['WhnrJ']);continue;case'1':const _0x52ead9={};_0x52ead9[_0x4c1295(0x251)]=WS_EVENTS[_0x4c1295(0x205)],_0x52ead9[_0x4c1295(0x280)]=_0x53d1b7[_0x4c1295(0x158)],webSocketUtils['sendEventToBackend'](_0x244f1b,_0x52ead9);continue;case'2':const _0xab3d9={};_0xab3d9['type']=WS_EVENTS['LOG'],_0xab3d9['message']=_0x53d1b7[_0x4c1295(0x266)],webSocketUtils[_0x4c1295(0x26e)](_0x244f1b,_0xab3d9);continue;case'3':logger[_0x4c1295(0x1cf)](_0x53d1b7[_0x4c1295(0x158)]);continue;case'4':[_0x52bad1,_0x4580fb]=await _0x3c9b92['setupNewCluster'](_0x52bad1,_0x4580fb);continue;}break;}}}}_0x2b1828&&_0x53d1b7[_0x4c1295(0x23b)](_0x1d0a27,AZURE)&&(await _0x3c9b92[_0x4c1295(0x2ab)](),await _0x3c9b92['createOtherResources']());const [_0x4ac3eb,_0xf55939,_0x570d0c,_0x2de4f3,_0x3d8fcc,_0x5285d9,_0x30dd37]=await _0x53d1b7[_0x4c1295(0x1b9)](createK8sClient,_0x3c9b92,_0x2b40d5[_0x4c1295(0x24f)]);_0x53d1b7[_0x4c1295(0x164)](_0x2b1828,![])&&_0x53d1b7[_0x4c1295(0x221)](_0x1d0a27,AWS)&&(global_registry[_0x4c1295(0x170)]=!![],_0x162a8e=await _0x3c9b92[_0x4c1295(0x295)](_0x4ac3eb,_0x2b40d5));if(_0x53d1b7['inXim'](_0x2b1828,![])&&global_registry[_0x4c1295(0x2a8)])try{await _0x3c9b92['setupHubHa'](_0x5285d9,_0x30dd37,_0x2b40d5,_0x52bad1,_0x4580fb);const _0x1e0069={};_0x1e0069[_0x4c1295(0x251)]=WS_EVENTS[_0x4c1295(0x205)],_0x1e0069[_0x4c1295(0x280)]=_0x53d1b7[_0x4c1295(0x289)],webSocketUtils['sendEventToBackend'](_0x244f1b,_0x1e0069);!await _0x53d1b7[_0x4c1295(0x1b9)](namespaceExists,_0x4ac3eb,global_registry[_0x4c1295(0x203)])&&await _0x53d1b7[_0x4c1295(0x1ee)](createNamespace,_0x4ac3eb,global_registry[_0x4c1295(0x203)]);logger[_0x4c1295(0x1cf)](_0x53d1b7[_0x4c1295(0x2b8)]);let _0x1b14c7=await fs[_0x4c1295(0x16c)](path['join'](__dirname,_0x53d1b7[_0x4c1295(0x174)],_0x53d1b7[_0x4c1295(0x242)],_0x53d1b7[_0x4c1295(0x1e9)],_0x53d1b7[_0x4c1295(0x2c9)]),_0x53d1b7[_0x4c1295(0x1cd)]);_0x1b14c7=_0x1b14c7[_0x4c1295(0x1fe)](/<RedisClientPassword>/g,_0x53d1b7[_0x4c1295(0x19a)](encodeBase64,global_registry[_0x4c1295(0x274)])),_0x1b14c7=_0x1b14c7[_0x4c1295(0x1fe)](/<KafkaClientPassword>/g,_0x53d1b7[_0x4c1295(0x17a)](encodeBase64,global_registry[_0x4c1295(0x286)])),_0x1b14c7=_0x1b14c7[_0x4c1295(0x1fe)](/<BstackUsername>/g,_0x53d1b7[_0x4c1295(0x1ea)](encodeBase64,global_registry[_0x4c1295(0x25d)])),_0x1b14c7=_0x1b14c7[_0x4c1295(0x1fe)](/<BstackAccessKey>/g,_0x53d1b7[_0x4c1295(0x1ea)](encodeBase64,global_registry['bstackAccesskey']));const _0x3cdd5d=yaml[_0x4c1295(0x26a)](_0x1b14c7);await _0x53d1b7['lKpDs'](kubeApply,_0x3cdd5d,_0x30dd37),logger[_0x4c1295(0x1cf)](_0x53d1b7[_0x4c1295(0x18d)]);let _0x358211=_0x53d1b7[_0x4c1295(0x257)];if(_0x53d1b7[_0x4c1295(0x140)](_0x1d0a27,AZURE))_0x358211=_0x53d1b7[_0x4c1295(0x1bb)];else _0x53d1b7[_0x4c1295(0x140)](_0x1d0a27,GCP)&&(_0x358211=_0x53d1b7[_0x4c1295(0x18b)]);logger[_0x4c1295(0x1cf)](_0x53d1b7['YvsDU']);let _0x2e1d0e=await fs[_0x4c1295(0x16c)](path[_0x4c1295(0x285)](__dirname,_0x53d1b7['ydyMT'],_0x53d1b7['biRAL'],_0x53d1b7[_0x4c1295(0x1e9)],_0x53d1b7['xBoDk']),_0x53d1b7['frqov']);_0x2e1d0e=_0x2e1d0e[_0x4c1295(0x1fe)](/<HubHaNameSpace>/g,global_registry[_0x4c1295(0x203)]),_0x2e1d0e=_0x2e1d0e[_0x4c1295(0x1fe)](/<StorageClassName>/g,_0x358211);const _0x15814b=yaml['loadAll'](_0x2e1d0e);await _0x53d1b7['ZBfxA'](kubeApply,_0x15814b,_0x30dd37),logger['info'](_0x53d1b7['KjUos']),logger[_0x4c1295(0x1cf)](_0x53d1b7[_0x4c1295(0x1ab)]);let _0x1ef54d=await fs['readFileAsync'](path[_0x4c1295(0x285)](__dirname,_0x53d1b7[_0x4c1295(0x174)],_0x53d1b7[_0x4c1295(0x242)],_0x53d1b7['NQZKv'],_0x53d1b7[_0x4c1295(0x13d)]),_0x53d1b7['frqov']);_0x1ef54d=_0x1ef54d[_0x4c1295(0x1fe)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x1ef54d=_0x1ef54d[_0x4c1295(0x1fe)](/<StorageClassName>/g,_0x358211);const _0x24c331=yaml[_0x4c1295(0x26a)](_0x1ef54d);await _0x53d1b7['ifxXG'](kubeApply,_0x24c331,_0x30dd37),logger[_0x4c1295(0x1cf)](_0x53d1b7[_0x4c1295(0x2e5)]),logger['info'](_0x53d1b7[_0x4c1295(0x245)]);let _0x5d58a8=await fs[_0x4c1295(0x16c)](path[_0x4c1295(0x285)](__dirname,_0x53d1b7['ydyMT'],_0x53d1b7[_0x4c1295(0x242)],_0x53d1b7['NQZKv'],_0x53d1b7[_0x4c1295(0x192)]),_0x53d1b7[_0x4c1295(0x1cd)]);_0x5d58a8=_0x5d58a8[_0x4c1295(0x1fe)](/<UploaderImageVersion>/g,global_registry[_0x4c1295(0x1a6)]),_0x5d58a8=_0x5d58a8[_0x4c1295(0x1fe)](/<HubHaNameSpace>/g,global_registry[_0x4c1295(0x203)]);const _0x517206=yaml['loadAll'](_0x5d58a8);_0x53d1b7['XQMhD'](global_registry[_0x4c1295(0x2dc)],AZURE)&&(_0x517206[0x0][_0x4c1295(0x1c9)][_0x4c1295(0x1cc)]['metadata'][_0x4c1295(0x1d8)]={'azure.workload.identity/use':_0x53d1b7[_0x4c1295(0x270)],..._0x517206[0x0][_0x4c1295(0x1c9)][_0x4c1295(0x1cc)]['metadata']['labels']},_0x517206[0x0][_0x4c1295(0x1c9)][_0x4c1295(0x1cc)][_0x4c1295(0x1c9)][_0x4c1295(0x169)]=_0x53d1b7[_0x4c1295(0x18e)]);await _0x53d1b7[_0x4c1295(0x154)](kubeApply,_0x517206,_0x30dd37),logger[_0x4c1295(0x1cf)](_0x53d1b7[_0x4c1295(0x25b)]);const _0x5ebaa4={};_0x5ebaa4[_0x4c1295(0x251)]=WS_EVENTS[_0x4c1295(0x205)],_0x5ebaa4[_0x4c1295(0x280)]=_0x53d1b7['PPwTn'],webSocketUtils[_0x4c1295(0x26e)](_0x244f1b,_0x5ebaa4),logger[_0x4c1295(0x1cf)](_0x53d1b7[_0x4c1295(0x1df)]);}catch(_0x278045){const _0x420bbe=_0x53d1b7['dTfJV'][_0x4c1295(0x19c)]('|');let _0x255ddd=0x0;while(!![]){switch(_0x420bbe[_0x255ddd++]){case'0':await _0x53d1b7[_0x4c1295(0x22a)](reportToGalactusAndSendToEDS,_0x2b40d5,_0x244f1b,_0x2b1174,messageTypes[_0x4c1295(0x253)],_0x53d1b7[_0x4c1295(0x193)],_0x53d1b7[_0x4c1295(0x1ec)],_0x53d1b7[_0x4c1295(0x1f9)]);continue;case'1':logger[_0x4c1295(0x298)](_0x2b1174);continue;case'2':await _0x3c9b92[_0x4c1295(0x13c)](_0x4ac3eb,global_registry[_0x4c1295(0x255)]);continue;case'3':process['exit'](0x1);continue;case'4':_0x2b1174=_0x4c1295(0x1b0)+_0x278045['message'];continue;}break;}}try{_0x2cfe08=_0x53d1b7[_0x4c1295(0x1ea)](kebabCase,_0x528a70),logger[_0x4c1295(0x1cf)](_0x53d1b7[_0x4c1295(0x2bc)]);const _0x18193f={};_0x18193f[_0x4c1295(0x251)]=WS_EVENTS['LOG'],_0x18193f['message']=_0x53d1b7[_0x4c1295(0x2bc)],webSocketUtils['sendEventToBackend'](_0x244f1b,_0x18193f);if(_0x53d1b7[_0x4c1295(0x1bd)](_0x2cfe08,_0x53d1b7[_0x4c1295(0x18e)])){const _0x1cd975={};_0x1cd975[_0x4c1295(0x1c1)]=_0x53d1b7[_0x4c1295(0x163)],_0x1cd975[_0x4c1295(0x20d)]=_0x53d1b7['wlNGF'];const _0x1e427c={};_0x1e427c['name']=_0x2cfe08,_0x1e427c['annotations']=_0x1cd975;const _0x33b9cf={};_0x33b9cf[_0x4c1295(0x13f)]=_0x1e427c;const _0x1d12b5=_0x33b9cf,_0x9c166f={};_0x9c166f['body']=_0x1d12b5,await _0x4ac3eb[_0x4c1295(0x24c)](_0x9c166f),logger['info'](_0x53d1b7[_0x4c1295(0x2ae)]);}const _0x527aa2={};_0x527aa2[_0x4c1295(0x251)]=WS_EVENTS['LOG'],_0x527aa2[_0x4c1295(0x280)]=_0x53d1b7['drHNT'],webSocketUtils[_0x4c1295(0x26e)](_0x244f1b,_0x527aa2);const _0x544d1c={};_0x544d1c[_0x4c1295(0x251)]=WS_EVENTS[_0x4c1295(0x205)],_0x544d1c['message']=_0x53d1b7[_0x4c1295(0x15a)],webSocketUtils[_0x4c1295(0x26e)](_0x244f1b,_0x544d1c),logger[_0x4c1295(0x1cf)](_0x53d1b7[_0x4c1295(0x1a5)]);let _0x5c3f56={};_0x53d1b7[_0x4c1295(0x229)](_0x1d0a27,AZURE)&&(_0x5c3f56={'clientId':await _0x3c9b92[_0x4c1295(0x1dc)](_0x4c1295(0x265)+_0x569dac)});await _0x53d1b7[_0x4c1295(0x2a2)](addGridComponents,_0x4ac3eb,_0xf55939,_0x570d0c,_0x2de4f3,_0x2cfe08,_0x569dac,_0x162a8e,_0x3d8fcc,_0x30dd37,_0x5c3f56),_0x2b1174=_0x53d1b7[_0x4c1295(0x23f)],logger[_0x4c1295(0x1cf)](_0x2b1174);const _0x34aa59={};_0x34aa59[_0x4c1295(0x251)]=WS_EVENTS[_0x4c1295(0x205)],_0x34aa59[_0x4c1295(0x280)]=_0x2b1174,webSocketUtils[_0x4c1295(0x26e)](_0x244f1b,_0x34aa59),_0x2b1174=_0x53d1b7[_0x4c1295(0x2e7)],logger[_0x4c1295(0x1cf)](_0x2b1174);const _0x51888d={};_0x51888d['type']=WS_EVENTS[_0x4c1295(0x205)],_0x51888d[_0x4c1295(0x280)]=_0x2b1174,webSocketUtils[_0x4c1295(0x26e)](_0x244f1b,_0x51888d),await _0x53d1b7['vNUZx'](waitForDeployment,_0xf55939,_0x2cfe08,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x363254=await _0x53d1b7['ZBfxA'](getNamespaceUID,_0x4ac3eb,_0x2cfe08),_0x216a3c=global_registry[_0x4c1295(0x1de)]?_0x53d1b7[_0x4c1295(0x214)]:_0x53d1b7[_0x4c1295(0x183)],_0x521730={};_0x521730[_0x4c1295(0x21f)]=_0x216a3c,_0x521730['namespace']=_0x53d1b7[_0x4c1295(0x1ac)];const _0x33d98a=await _0x4ac3eb['readNamespacedService'](_0x521730);let _0x145f89=_0x3c9b92[_0x4c1295(0x2b1)](_0x33d98a)+'/'+_0x2cfe08,_0x2cbef3=_0x53d1b7[_0x4c1295(0x292)];try{const _0x4a3433=_0x4c1295(0x1b2)+AG_API_URL+_0x4c1295(0x2cb)+_0x363254,_0x5a0360=await _0x53d1b7[_0x4c1295(0x18f)](got,_0x4a3433,_0x41ab2c);(_0x53d1b7[_0x4c1295(0x293)](_0x5a0360,null)||_0x53d1b7[_0x4c1295(0x16d)](_0x5a0360,undefined))&&(_0x2b1174=_0x53d1b7[_0x4c1295(0x1ae)],await _0x53d1b7['pItNP'](reportToGalactusAndSendToEDS,_0x2b40d5,_0x244f1b,_0x2b1174,messageTypes[_0x4c1295(0x253)],_0x53d1b7[_0x4c1295(0x193)],_0x53d1b7[_0x4c1295(0x279)],_0x53d1b7[_0x4c1295(0x1f9)]),logger['error'](_0x2b1174),process[_0x4c1295(0x1f8)](0x1));_0x53d1b7[_0x4c1295(0x1c3)](_0x5a0360[_0x4c1295(0x14a)],0x191)&&(_0x2b1174=_0x53d1b7[_0x4c1295(0x23e)],await _0x53d1b7[_0x4c1295(0x1ad)](reportToGalactusAndSendToEDS,_0x2b40d5,_0x244f1b,_0x2b1174,messageTypes[_0x4c1295(0x253)],_0x53d1b7[_0x4c1295(0x193)],_0x53d1b7[_0x4c1295(0x139)],_0x53d1b7[_0x4c1295(0x1f9)]),logger['error'](_0x2b1174),process[_0x4c1295(0x1f8)](0x1));_0x53d1b7['ydJsV'](_0x5a0360['statusCode'],0xc8)&&(_0x2b1174=_0x4c1295(0x2b3)+JSON[_0x4c1295(0x157)](_0x5a0360),await _0x53d1b7['jmZia'](reportToGalactusAndSendToEDS,_0x2b40d5,_0x244f1b,_0x2b1174,messageTypes[_0x4c1295(0x253)],_0x53d1b7['PNXjL'],_0x53d1b7['IjauX'],_0x53d1b7[_0x4c1295(0x1f9)]),logger[_0x4c1295(0x298)](_0x2b1174),process['exit'](0x1));const _0x107f96=JSON['parse'](_0x5a0360[_0x4c1295(0x2e8)]);_0x107f96[_0x4c1295(0x14e)]&&(_0x145f89=_0x107f96[_0x4c1295(0x14e)],_0x2cbef3=_0x53d1b7[_0x4c1295(0x1c8)]),global_registry['isPrivateGrid']&&(_0x2cbef3=_0x53d1b7[_0x4c1295(0x292)]);}catch(_0x1dcc76){}_0x2b1174=_0x4c1295(0x210)+_0x145f89+'\x20',logger[_0x4c1295(0x1cf)](_0x2b1174);const _0x30472e={};_0x30472e[_0x4c1295(0x251)]=WS_EVENTS['LOG'],_0x30472e[_0x4c1295(0x280)]=_0x2b1174,webSocketUtils[_0x4c1295(0x26e)](_0x244f1b,_0x30472e),_0x2b1174=_0x4c1295(0x2c6)+_0x2cbef3+_0x4c1295(0x204)+_0x145f89+'/wd/hub',logger[_0x4c1295(0x1cf)](_0x2b1174);const _0x183606={};_0x183606[_0x4c1295(0x251)]=WS_EVENTS['LOG'],_0x183606[_0x4c1295(0x280)]=_0x2b1174,webSocketUtils['sendEventToBackend'](_0x244f1b,_0x183606);const _0x587171={};_0x587171['type']=WS_EVENTS[_0x4c1295(0x1e4)],_0x587171[_0x4c1295(0x280)]='CLI\x20run\x20finished:\x20'+_0x145f89,webSocketUtils[_0x4c1295(0x26e)](_0x244f1b,_0x587171),await webSocketUtils[_0x4c1295(0x1b6)](0x7d0);}catch(_0x6da41f){logger[_0x4c1295(0x298)]('Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20'+_0x6da41f+'\x20\x0a'+JSON[_0x4c1295(0x157)](_0x6da41f[_0x4c1295(0x2bf)]));if(_0x53d1b7[_0x4c1295(0x185)](_0x2b1828,![]))try{logger[_0x4c1295(0x1cf)](_0x53d1b7[_0x4c1295(0x171)]),await _0x53d1b7[_0x4c1295(0x27b)](removeGridComponents,_0x4ac3eb,_0xf55939,_0x570d0c,_0x2de4f3,_0x2cfe08),await _0x3c9b92[_0x4c1295(0x13c)](_0x4ac3eb,global_registry['clusterRegion']);}catch(_0x3b591f){logger[_0x4c1295(0x298)](_0x4c1295(0x202)+_0x3b591f+'\x20\x0a'+JSON[_0x4c1295(0x157)](_0x3b591f[_0x4c1295(0x2bf)]));}throw _0x6da41f;}}catch(_0x46273e){const _0x2da7a4='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x46273e+'\x20\x0a'+JSON[_0x4c1295(0x157)](_0x46273e[_0x4c1295(0x2bf)]);if(_0x244f1b){const _0x2d8d0c={};_0x2d8d0c[_0x4c1295(0x251)]=WS_EVENTS[_0x4c1295(0x205)],_0x2d8d0c[_0x4c1295(0x280)]=_0x2da7a4,webSocketUtils[_0x4c1295(0x26e)](_0x244f1b,_0x2d8d0c,_0x53d1b7[_0x4c1295(0x1f9)],!![]);}await webSocketUtils[_0x4c1295(0x1b6)](0x7d0);const _0x5428fb={};_0x5428fb[_0x4c1295(0x298)]=_0x2da7a4,await _0x53d1b7['ITmzU'](sendInstrumentationEvent,_0x2b40d5,_0x53d1b7[_0x4c1295(0x193)],messageTypes[_0x4c1295(0x253)],_0x53d1b7[_0x4c1295(0x168)],_0x5428fb,_0x2b40d5),logger[_0x4c1295(0x298)](_0x2da7a4);}process['exit'](0x0);};
1
+ function a9_0x3b17(){const _0x4efb61=['ZmlnE','WebSocket','97255VXAeLS','EXMxV','weKDG','Grid\x20profile\x20fetched\x20from\x20backend','8|5|0|7|3|2|6|1|4','pXSRY','password','iroTe','NTVYE','QERJs','SHrCy','uIuNb','pre-spawned-invalid-subnets','1|4|0|3|2','ROihX','username','subnets','concurrency','351009yaQibZ','CXyLS','vUxjx','Eahbq','grid-profile','KVILU','serviceAccountName','\x20in\x20existing\x20cluster\x20\x27','hvYif','uploaderVersion','bstackUsername','/packages/cli/create-grid-checks','RhyBN','Subnets:\x20','Deleting\x20the\x20CloudFormation\x20Stacks','TIkKq','oIrNN','Found\x20VPC:\x20','cluster-autoupgrade','yBUEV','managedBy','vpc','browserstack','xDhTE','kafkaPassword','pHZOO','kTmKm','command','hRsci','ILevK','qZLFC','CeDmd','yCoSx','QGoKW','nsaDy','metadata','FpBtc','user','Cluster:\x20','Spawning\x20Grid\x20on\x20the\x20Cluster','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','clusterAutoupgrade','CgdHQ','iyjaZ','sendResourceDataToHST','prespawned-cluster-args-not-passed','rsWMA','Hub\x20HA\x20setup\x20completed\x20successfully.','options','HbbuL','sabNJ','premium-rwo','dmRjU','90zXukip','instanceType','Mbwfj','CIheR','body','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','hubharesources','tyZcr','WvLIn','nXEfr','8|5|4|2|0|7|1|3|6','ERROR','ogmte','name','info','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','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.','cSFjy','epilogue','xxwFF','ZPWDu','browserstack-secret.yaml','hJfwY','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','://','LGGBb','loadAll','blJUR','qBpFU','template','GLiha','connectionTimeout','iHYFa','gridName','../../cloudproviders/utils','create-grid-checks-invalid-profile','rarWE','existsSync','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','qtNLB','FjkWt','requestId','browserVersion','xOsBF','rWSYO','newCluster','Will\x20be\x20spawning\x20the\x20grid\x20','0|10|3|13|9|4|7|6|15|5|11|8|14|2|1|12','help','create','ZcsEX','Mibri','maxNodes','PkhxB','vaAkk','Adding\x20Kafka\x20deployment...','kcXSp','exit','../..','oCePS','RwsjU','Hupgf','uRvbs','4|1|2|0|3','12vdCYDK','../../utils/instrumentationUtils','enableHubHa','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','wjTkz','Added\x20Kafka\x20deployment.','hubHaNameSpace','route53','\x20using\x20\x27','reconnecting-websocket','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','cluster-name','create-grid-checks-grid-already-exists','wQlfa','private-ingress-nginx-controller','readFileSync','rHPqL','ojlGN','securityGroups','sxAxr','split','CxCXc','RQVpq','PpbEt','error','gVSrD','KCBAP','ebkyQ','oSMkA','JSPOF','cCgJn','clusterRegion','default','labels','lofhw','NLRnz','create-grid-checks-non-200','YRQOV','192742pJAOkX','argv','Namespace\x20created','cloud-provider','../../utils/utilityMethods','Created\x20Hub\x20HA\x20resources','CLI\x20run\x20finished:\x20','ZJgEz','jkzAi','lQrnM','DAmsH','spec','isNewAWSCluster','XhRoa','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Adding\x20Websocket\x20listeners','ofPCf','debug','../../config/constants','FjhEm','GET','kafkaUploader','gridProfile','Grid\x20can\x20be\x20accessed\x20at:\x20','faBju','getGridHostname','skip-tls-cert-verify','TlXLR','string','ingress-nginx','voXzX','Create\x20a\x20private/public\x20grid.','IHOro','ShmUM','sRLkE','GiDFW','Wwztz','oDymB','isClusterPresent','Swacq','UVNsP','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','updateClusterAlreadyPresent','description','FKOUq','../../config/logger','oFYtb','Skip\x20insecure\x20cert\x20verification.','eCzkK','get-grid-url-auth-failed','xclCa','OicvU','dAshC','Added\x20Secret\x20Mapping','OOENB','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','ZUEea','alreadyPresent','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','1454512AuvMky','get-grid-url-null-response','Added\x20Redis\x20deployment.','clusterName','XdajQ','HcmKM','cloudProvider','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','<PasswordPlaceholder>','DXdiV','XrmaI','annotations','HBdFR','fUcRw','QRcdo','UkRNzNYCBU','toLowerCase','path','defaultGridProfile','nlBYd','zkHAJ','LWoIP','Sgqdd','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Create\x20a\x20new\x20Automation\x20grid.','FzFlL','isVPCPresent','bitnami-kafka.yaml','utf-8','RklIh','RWddo','length','OwGmV','nVyOU','Cluster\x20','Qgayz','67384rfYeFE','SEtBv','aUNEI','CLI_RUN_STARTED','FclYW','https','KbOCf','jfOaC','azurefile-csi-premium','OFnnY','create-grid-checks-null-response','sendEventToBackend','xWMnU','getResourceClientId','https://','Browserstack','ingress-nginx-controller','LOG','117729OwfoVA','Spawning\x20grid\x20on\x20to\x20the\x20cluster','stringify','Flag\x20to\x20enable\x20Hub\x20HA','create-grid-called','replace','iaXGP','private-grid','FXKEM','GcAOS','OWVUP','zPWyj','vwrrw','WgsSW','TwKvB','Found\x20Subnets:\x20','dVVyS','zhtIs','http','KVDvZ','turboscale-managed-identity-','efs-csi','pre-spawned-subnets-not-selected','ykSnJ','wEHah','kfEjX','bjPGL','grid-name','SLOFz','/packages/cli/get-grid-url?gridIdentifier=','2239825hJYSsI','KGCBk','grid','rIKhL','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','gJJpg','rHmzN','delay','Cluster\x20created\x20successfully','AqiVd','pre-spawned-invalid-vpc','DKgOc','NnybB','wuGxa','oUcFC','parse','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','cWQSy','hub-ha','OpgIl','/wd/hub','HdgZK','cTysc','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','CLI\x20run\x20started','s3bucket','xUdgE','KkOPX','cPdvE','Epyd5nXbRK','JiUgH','clusterAutoUpgrade','VUVXd','JgqAe','got','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','NfUQo','isSubnetsValid','create-grid-checks-auth-failed','\x27\x20grid\x20profile','privateGrid','WWOYH','RViuY','bstackAccesskey','kduMf','deleteCluster','aDLgu','EqFQo','message','<UsernamePlaceholder>','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','Cvxqk','statusCode','zabWQ','xAgWt','warn','BxMin','isPrivateGrid','Zskzj','stack','xYdEO','jaeIF','pNvPj','Qnsoe','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','bsmBp','mjMXj','../../utils/webSocketUtils','Adding\x20Turboscale\x20Uploader\x20deployment...','CFJgR','OSVhR','gridProfileId','join','NWmOz','mGqKJ','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','yWIdH','rKzRT','ylPDl','setupNewCluster','vHkDL','hub-ha-deployments-failed','GcKXj','JJYVV','gkNGc','region','AbvWH','DQETi','pTGMK','redisPassword','DeOMK','hubVersion','ZvQKa','AqZaZ','SFaaw','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','type','eSFYk','desc','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','4|2|3|1|0','EJbfT','bdXxt','mTWjW','IVyBp','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','pWBhf','handler','VjvOS','ffIfO','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','xhPzX','LgLox','readFileAsync','boolean','HdpJo','usage','kInNj','bitnami-redis.yaml','gVaqf','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','zpWXf','createdBy','Creating\x20namespace','BcMIH','nxzsi','CpwND','get-grid-url-non-200','jPJMn','addListeners','hmqFi','LUtGJ','skipTlsCertVerify','Added\x20Turboscale\x20Uploader\x20deployment.'];a9_0x3b17=function(){return _0x4efb61;};return a9_0x3b17();}const a9_0x4c3320=a9_0xfa44;function a9_0xfa44(_0x2748b8,_0x34399f){const _0x3b17f5=a9_0x3b17();return a9_0xfa44=function(_0xfa44cf,_0x4ef52e){_0xfa44cf=_0xfa44cf-0x18b;let _0x4d43b5=_0x3b17f5[_0xfa44cf];return _0x4d43b5;},a9_0xfa44(_0x2748b8,_0x34399f);}(function(_0x5ce93f,_0x5d4579){const _0x26e222=a9_0xfa44,_0x28744c=_0x5ce93f();while(!![]){try{const _0x286ed3=parseInt(_0x26e222(0x1d8))/0x1+-parseInt(_0x26e222(0x274))/0x2+-parseInt(_0x26e222(0x24e))/0x3*(-parseInt(_0x26e222(0x2d3))/0x4)+-parseInt(_0x26e222(0x1c6))/0x5*(parseInt(_0x26e222(0x20d))/0x6)+parseInt(_0x26e222(0x303))/0x7+-parseInt(_0x26e222(0x2af))/0x8+parseInt(_0x26e222(0x2e5))/0x9;if(_0x286ed3===_0x5d4579)break;else _0x28744c['push'](_0x28744c['shift']());}catch(_0x5bab42){_0x28744c['push'](_0x28744c['shift']());}}}(a9_0x3b17,0x2c4fb));const fs=require('fs'),ws=require('ws'),path=require(a9_0x4c3320(0x2c0)),yaml=require('js-yaml'),ReconnectingWebSocket=require(a9_0x4c3320(0x257)),got=require(a9_0x4c3320(0x325)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x4c3320(0x346)),{logger}=require(a9_0x4c3320(0x2a1)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x4c3320(0x278)),{getCloudProviderObject}=require(a9_0x4c3320(0x230)),{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_0x4c3320(0x286)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require('../../utils/gridComponents'),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a9_0x4c3320(0x24f));exports[a9_0x4c3320(0x1f3)]=a9_0x4c3320(0x305),exports[a9_0x4c3320(0x1a0)]=a9_0x4c3320(0x2c7),exports['builder']=function(_0x147dcd){const _0x30325c=a9_0x4c3320,_0x3a18ba={};_0x3a18ba[_0x30325c(0x19f)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x3a18ba[_0x30325c(0x1e8)]=_0x30325c(0x290),_0x3a18ba[_0x30325c(0x349)]=_0x30325c(0x224),_0x3a18ba[_0x30325c(0x2c3)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x3a18ba[_0x30325c(0x30e)]=_0x30325c(0x258),_0x3a18ba['PpbEt']=_0x30325c(0x34e),_0x3a18ba[_0x30325c(0x295)]=_0x30325c(0x293),_0x3a18ba[_0x30325c(0x18e)]=_0x30325c(0x2a3),_0x3a18ba[_0x30325c(0x1cd)]=_0x30325c(0x1b0),_0x3a18ba[_0x30325c(0x1dd)]=_0x30325c(0x2e8),_0x3a18ba[_0x30325c(0x1db)]=_0x30325c(0x21c),_0x3a18ba[_0x30325c(0x2bb)]=_0x30325c(0x23e);const _0x2fc497=_0x3a18ba,_0x5d5f4f={};_0x5d5f4f[_0x30325c(0x29f)]=_0x2fc497[_0x30325c(0x19f)],_0x5d5f4f[_0x30325c(0x19e)]=_0x2fc497[_0x30325c(0x1e8)];const _0x4e90fd={};_0x4e90fd['description']=_0x2fc497[_0x30325c(0x349)],_0x4e90fd[_0x30325c(0x19e)]=_0x2fc497[_0x30325c(0x1e8)];const _0x289778={};_0x289778[_0x30325c(0x29f)]=_0x2fc497[_0x30325c(0x2c3)],_0x289778[_0x30325c(0x19e)]=_0x2fc497[_0x30325c(0x1e8)];const _0x2ff369={};_0x2ff369['description']=_0x2fc497[_0x30325c(0x30e)],_0x2ff369[_0x30325c(0x19e)]=_0x2fc497[_0x30325c(0x1e8)];const _0x344caf={};_0x344caf[_0x30325c(0x29f)]=_0x2fc497[_0x30325c(0x265)],_0x344caf['type']=_0x2fc497[_0x30325c(0x1e8)];const _0x4b2614={};_0x4b2614[_0x30325c(0x29f)]=_0x2fc497[_0x30325c(0x295)],_0x4b2614['type']=_0x2fc497[_0x30325c(0x1e8)];const _0x1ea531={};_0x1ea531[_0x30325c(0x29f)]=_0x2fc497[_0x30325c(0x18e)],_0x1ea531[_0x30325c(0x19e)]=_0x2fc497[_0x30325c(0x1cd)],_0x1ea531['default']=![];const _0x5b8889={};_0x5b8889[_0x30325c(0x29f)]=_0x2fc497[_0x30325c(0x1dd)],_0x5b8889[_0x30325c(0x19e)]=_0x2fc497[_0x30325c(0x1cd)],_0x5b8889[_0x30325c(0x26e)]=![];const _0x31c873={};_0x31c873[_0x30325c(0x29f)]=_0x2fc497[_0x30325c(0x1db)],_0x31c873[_0x30325c(0x19e)]=_0x2fc497[_0x30325c(0x1cd)],_0x31c873['default']=![];const _0x5335af={};return _0x5335af[_0x30325c(0x300)]=_0x5d5f4f,_0x5335af[_0x30325c(0x1dc)]=_0x4e90fd,_0x5335af[_0x30325c(0x259)]=_0x289778,_0x5335af[_0x30325c(0x277)]=_0x2ff369,_0x5335af['region']=_0x344caf,_0x5335af[_0x30325c(0x2ec)]=_0x4b2614,_0x5335af[_0x30325c(0x28e)]=_0x1ea531,_0x5335af[_0x30325c(0x315)]=_0x5b8889,_0x5335af[_0x30325c(0x1ea)]=_0x31c873,_0x147dcd[_0x30325c(0x1b2)](HELP_HEADER_MESSAGE['create'])[_0x30325c(0x21f)](HELP_FOOTER_MESSAGE)[_0x30325c(0x208)](_0x5335af)['help'](_0x2fc497[_0x30325c(0x2bb)])[_0x30325c(0x275)];},exports[a9_0x4c3320(0x1a9)]=async function(_0x496778){const _0x1ef878=a9_0x4c3320,_0x49ff97={'uIEOG':_0x1ef878(0x20b),'xDhTE':function(_0x4e4931,_0x343444){return _0x4e4931(_0x343444);},'ykSnJ':'true','tyZcr':_0x1ef878(0x26e),'JgqAe':_0x1ef878(0x24d),'LWoIP':_0x1ef878(0x320),'hvYif':_0x1ef878(0x1ee),'KkOPX':_0x1ef878(0x2be),'ojlGN':'Enabling\x20Hub\x20HA\x20flow','QJdCu':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','sabNJ':_0x1ef878(0x290),'OWVUP':_0x1ef878(0x224),'AqZaZ':_0x1ef878(0x1a7),'VjvOS':_0x1ef878(0x258),'HACmo':_0x1ef878(0x34e),'Wwztz':_0x1ef878(0x293),'NnybB':_0x1ef878(0x2a3),'vaAkk':_0x1ef878(0x1b0),'IVyBp':_0x1ef878(0x2e8),'ofPCf':'Flag\x20to\x20enable\x20cluster\x20auto-upgrade','LGGBb':_0x1ef878(0x23e),'RViuY':_0x1ef878(0x2db),'OwGmV':_0x1ef878(0x33a),'faBju':function(_0x5b3712,_0x5bbcd3){return _0x5b3712===_0x5bbcd3;},'DQETi':_0x1ef878(0x266),'OpgIl':_0x1ef878(0x1ca),'xAgWt':_0x1ef878(0x31b),'CXyLS':_0x1ef878(0x326),'rarWE':_0x1ef878(0x23d),'CIheR':function(_0x14c1c6,_0x4fbc9c,_0x51b4e9,_0x52fab5,_0x3487a4,_0x2ac9dd,_0x313eac,_0xa64e9a,_0x4110bc,_0x30f9dd,_0x3f6bc6,_0x2ad04d,_0x492f0e){return _0x14c1c6(_0x4fbc9c,_0x51b4e9,_0x52fab5,_0x3487a4,_0x2ac9dd,_0x313eac,_0xa64e9a,_0x4110bc,_0x30f9dd,_0x3f6bc6,_0x2ad04d,_0x492f0e);},'oDymB':function(_0xc5a799,_0x3e6ddf){return _0xc5a799!==_0x3e6ddf;},'ZJgEz':_0x1ef878(0x2d8),'JJYVV':_0x1ef878(0x2f7),'zPWyj':function(_0x2d881e){return _0x2d881e();},'NLRnz':function(_0x27212a){return _0x27212a();},'WvLIn':_0x1ef878(0x27c),'Hupgf':_0x1ef878(0x2b8),'pHZOO':_0x1ef878(0x2c6),'RhyBN':function(_0x55063c,_0x404d71,_0x540682,_0x39052f,_0x1b987e,_0x2b7fc7,_0x45be33){return _0x55063c(_0x404d71,_0x540682,_0x39052f,_0x1b987e,_0x2b7fc7,_0x45be33);},'OFnnY':_0x1ef878(0x2e9),'GcKXj':'init-not-called','VPzNn':function(_0x2fe218,_0x6f6a80,_0x488566,_0x5b6c85,_0x2ce4d2,_0x144c6b,_0x51eb01){return _0x2fe218(_0x6f6a80,_0x488566,_0x5b6c85,_0x2ce4d2,_0x144c6b,_0x51eb01);},'vqDrZ':_0x1ef878(0x334),'iHYFa':_0x1ef878(0x2b7),'RklIh':_0x1ef878(0x283),'BcMIH':'BLIaY','CxCXc':function(_0x18c87e,_0xf679d4){return _0x18c87e===_0xf679d4;},'qBpFU':'pQRPX','SLOFz':_0x1ef878(0x1f6),'zabWQ':_0x1ef878(0x2ab),'CFJgR':function(_0x3fa1fd,_0x95a429,_0x377b7f,_0x28b3b5,_0x51eaca,_0x2b10ef,_0xe3d438,_0x5e733d){return _0x3fa1fd(_0x95a429,_0x377b7f,_0x28b3b5,_0x51eaca,_0x2b10ef,_0xe3d438,_0x5e733d);},'jfOaC':_0x1ef878(0x205),'ZvQKa':function(_0x51b0af,_0x23c40f){return _0x51b0af!==_0x23c40f;},'pTGMK':_0x1ef878(0x1fc),'yWIdH':_0x1ef878(0x344),'JXPYx':_0x1ef878(0x1ac),'SEtBv':function(_0x48ffa4,_0x365d6c,_0x463fa7,_0x20058d,_0x492eb0,_0x6ba89c,_0x44d530,_0x290696){return _0x48ffa4(_0x365d6c,_0x463fa7,_0x20058d,_0x492eb0,_0x6ba89c,_0x44d530,_0x290696);},'bdXxt':'non-aws-azure-cluster','HcmKM':function(_0x5d4053,_0x16af65){return _0x5d4053===_0x16af65;},'CeDmd':_0x1ef878(0x1d1),'rcvMA':_0x1ef878(0x26c),'TwKvB':function(_0x4e6931,_0x5bd2c3,_0x12dfb2,_0x5c9de0,_0x2f16c6,_0x532a9e,_0x125cc7){return _0x4e6931(_0x5bd2c3,_0x12dfb2,_0x5c9de0,_0x2f16c6,_0x532a9e,_0x125cc7);},'pNvPj':function(_0x5e6194,_0x405e4a){return _0x5e6194!==_0x405e4a;},'ZMgyq':_0x1ef878(0x27e),'jPJMn':_0x1ef878(0x1cb),'ZmlnE':function(_0x3f822f,_0x3a15fe){return _0x3f822f!==_0x3a15fe;},'EXMxV':'MUOLb','nxzsi':_0x1ef878(0x2eb),'DxHuE':_0x1ef878(0x288),'vwrrw':function(_0x43a066,_0x339ec6,_0x252f17){return _0x43a066(_0x339ec6,_0x252f17);},'JiUgH':_0x1ef878(0x2a4),'SFaaw':_0x1ef878(0x2ed),'FTRxk':_0x1ef878(0x2bc),'dVVyS':function(_0x18cdb5,_0x129075){return _0x18cdb5===_0x129075;},'RWddo':function(_0x217cd3,_0xc2e96e){return _0x217cd3===_0xc2e96e;},'FKOUq':_0x1ef878(0x267),'NTVYE':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Swacq':function(_0x65fd05,_0x6f25c3,_0x5c2a54,_0x39ebbc,_0x38b85c,_0x1c1ae5,_0x16370f,_0x558531){return _0x65fd05(_0x6f25c3,_0x5c2a54,_0x39ebbc,_0x38b85c,_0x1c1ae5,_0x16370f,_0x558531);},'wEHah':_0x1ef878(0x2dd),'qtNLB':function(_0xc9218f,_0x3c062f){return _0xc9218f===_0x3c062f;},'kduMf':function(_0xba3d67,_0x4eb95d){return _0xba3d67===_0x4eb95d;},'NWmOz':_0x1ef878(0x2d9),'FjkWt':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','YRQOV':function(_0x5c848f,_0x5066bc,_0x15cdf0,_0xde8099,_0x5e90d3,_0x4f4037,_0x4059d8,_0x1ff55e){return _0x5c848f(_0x5066bc,_0x15cdf0,_0xde8099,_0x5e90d3,_0x4f4037,_0x4059d8,_0x1ff55e);},'oSMkA':_0x1ef878(0x329),'ffIfO':function(_0x436398,_0x1bd4ae){return _0x436398!==_0x1bd4ae;},'hJfwY':function(_0x216093,_0x48e2ea){return _0x216093!==_0x48e2ea;},'KVDvZ':_0x1ef878(0x1f4),'iDcnY':_0x1ef878(0x272),'xclCa':_0x1ef878(0x1c9),'OicvU':function(_0x1f0cb4,_0x51ed8e){return _0x1f0cb4!==_0x51ed8e;},'KCBAP':'MdMSY','XhRoa':_0x1ef878(0x28f),'ZNxJC':_0x1ef878(0x25a),'XdajQ':function(_0x12b3ca,_0x4786c4){return _0x12b3ca===_0x4786c4;},'oFYtb':_0x1ef878(0x216),'GNzHl':'lTdcl','cTysc':function(_0x5886e4,_0x57ca31){return _0x5886e4===_0x57ca31;},'LcsvG':_0x1ef878(0x2d5),'VUVXd':_0x1ef878(0x1ae),'gDTvQ':'3|1|0|2|4','nsaDy':function(_0x46a050,_0x2a7779){return _0x46a050===_0x2a7779;},'akaCp':function(_0x439a86,_0x571c4b){return _0x439a86!==_0x571c4b;},'EqFQo':'zWqXe','hmqFi':_0x1ef878(0x1d4),'CGdIB':_0x1ef878(0x1da),'DeOMK':_0x1ef878(0x1b6),'uRvbs':function(_0x3944f1,_0x2c1e11,_0x31c375,_0x5bb9ef,_0x1b8968,_0x51c373,_0x597593,_0x3b9116){return _0x3944f1(_0x2c1e11,_0x31c375,_0x5bb9ef,_0x1b8968,_0x51c373,_0x597593,_0x3b9116);},'rHmzN':_0x1ef878(0x231),'bqePq':function(_0x1f6512,_0x1add20){return _0x1f6512===_0x1add20;},'Mibri':_0x1ef878(0x33b),'yBUEV':function(_0x14e660,_0x4b38e9){return _0x14e660===_0x4b38e9;},'VvviE':_0x1ef878(0x31d),'WWOYH':function(_0x23500c,_0x4f1f4c){return _0x23500c!==_0x4f1f4c;},'bjPGL':_0x1ef878(0x1f9),'cxaOe':_0x1ef878(0x2c8),'kfEjX':function(_0x50b1cb,_0x1d6c2d,_0x53890e,_0x32d3f1,_0x1d7a7f,_0x5f0510,_0x1c0b02,_0x17a78a,_0x51ed50,_0x426dfe,_0x4901cb,_0x522834,_0x166fa1){return _0x50b1cb(_0x1d6c2d,_0x53890e,_0x32d3f1,_0x1d7a7f,_0x5f0510,_0x1c0b02,_0x17a78a,_0x51ed50,_0x426dfe,_0x4901cb,_0x522834,_0x166fa1);},'rIKhL':'xTfoZ','Cvxqk':'JFiIM','oUcFC':function(_0x4f37d8,_0x2fa811){return _0x4f37d8(_0x2fa811);},'ZPWDu':function(_0xa9c789,_0x49ea3b){return _0xa9c789!==_0x49ea3b;},'mjMXj':_0x1ef878(0x287),'gJJpg':function(_0x2308ad,_0x199898){return _0x2308ad!==_0x199898;},'cWQSy':function(_0x2f374c,_0x2406a6){return _0x2f374c===_0x2406a6;},'NfUQo':_0x1ef878(0x2d7),'xhPzX':_0x1ef878(0x229),'WgsSW':function(_0x2e711e,_0xac7986,_0xf94368,_0x1a8d15,_0x41754b,_0x1c1544,_0x34f895,_0x353538,_0x26abc9,_0x46f943,_0x4d34ca,_0x156d68,_0x198ded){return _0x2e711e(_0xac7986,_0xf94368,_0x1a8d15,_0x41754b,_0x1c1544,_0x34f895,_0x353538,_0x26abc9,_0x46f943,_0x4d34ca,_0x156d68,_0x198ded);},'KGCBk':_0x1ef878(0x30c),'iyjaZ':function(_0x447f97,_0x501db0){return _0x447f97(_0x501db0);},'GcAOS':_0x1ef878(0x2c5),'pysHA':_0x1ef878(0x1a3),'dmRjU':_0x1ef878(0x217),'yCoSx':function(_0x8ed7b5,_0xc98748,_0x1b79e0,_0x471ac5,_0x39b708,_0x35ab09,_0x5f14e6){return _0x8ed7b5(_0xc98748,_0x1b79e0,_0x471ac5,_0x39b708,_0x35ab09,_0x5f14e6);},'ILevK':function(_0x2dbc8b,_0x3e8c0b){return _0x2dbc8b!==_0x3e8c0b;},'ogmte':function(_0x3f2db7,_0x1fa1b6){return _0x3f2db7===_0x1fa1b6;},'QERJs':_0x1ef878(0x25e),'zpWXf':'spEUf','Qgayz':function(_0x57aa1b,_0x2840ea){return _0x57aa1b===_0x2840ea;},'mlzQe':function(_0x47c52f,_0x3aef62){return _0x47c52f===_0x3aef62;},'Qnsoe':_0x1ef878(0x18c),'Oaxgj':'gyVhy','zhtIs':_0x1ef878(0x296),'lQrnM':_0x1ef878(0x234),'CgdHQ':function(_0x565645,_0x16564e){return _0x565645!=_0x16564e;},'dAshC':function(_0x13caf3,_0x52a18e){return _0x13caf3!==_0x52a18e;},'wQlfa':function(_0x4d370c,_0x1e9f53){return _0x4d370c!=_0x1e9f53;},'rKzRT':function(_0x43c0dc,_0x37d2ee){return _0x43c0dc>_0x37d2ee;},'gVaqf':_0x1ef878(0x282),'mTWjW':_0x1ef878(0x2fb),'kcXSp':_0x1ef878(0x335),'RQVpq':function(_0x51c0dc,_0x40430c,_0x207573,_0x577c6b,_0xb43244,_0x5aa21d,_0x554089,_0x46235b){return _0x51c0dc(_0x40430c,_0x207573,_0x577c6b,_0xb43244,_0x5aa21d,_0x554089,_0x46235b);},'JSPOF':_0x1ef878(0x30d),'weKDG':_0x1ef878(0x1d2),'pWBhf':_0x1ef878(0x1d3),'bxezh':_0x1ef878(0x21d),'wuGxa':_0x1ef878(0x30b),'taBES':function(_0x55f923,_0x99dadb){return _0x55f923===_0x99dadb;},'xWMnU':function(_0x4a9eed,_0x3dfe28,_0xcf881f){return _0x4a9eed(_0x3dfe28,_0xcf881f);},'voXzX':function(_0x2b2f1e,_0x17ae9d){return _0x2b2f1e===_0x17ae9d;},'EUCtV':'Creating\x20Hub\x20HA\x20resources','xYdEO':'Adding\x20Secret\x20Mapping','rsWMA':_0x1ef878(0x248),'HbbuL':'templates','UVNsP':_0x1ef878(0x213),'IxpnM':_0x1ef878(0x222),'wjTkz':_0x1ef878(0x2cb),'gjqYr':function(_0x37a125,_0x121991){return _0x37a125(_0x121991);},'GLiha':function(_0x12c021,_0x27dfac){return _0x12c021(_0x27dfac);},'Mbwfj':function(_0x3e29ef,_0x51b1c0){return _0x3e29ef(_0x51b1c0);},'ebkyQ':_0x1ef878(0x2a9),'sxAxr':_0x1ef878(0x2fa),'Zskzj':'Adding\x20Redis\x20deployment...','HdgZK':_0x1ef878(0x1b4),'bHtKe':function(_0x21fdae,_0x5a7230,_0xf63533){return _0x21fdae(_0x5a7230,_0xf63533);},'hmmpt':_0x1ef878(0x2b1),'ACUfH':_0x1ef878(0x245),'LDcEq':_0x1ef878(0x2ca),'QRcdo':function(_0x5eaebb,_0x464eb7,_0x26d835){return _0x5eaebb(_0x464eb7,_0x26d835);},'RwsjU':_0x1ef878(0x253),'gkNGc':_0x1ef878(0x347),'zQItP':'turboscale-uploader.yaml','ZUEea':_0x1ef878(0x1c3),'LUtGJ':_0x1ef878(0x279),'GiDFW':_0x1ef878(0x207),'OLLrr':_0x1ef878(0x1a2),'cSFjy':_0x1ef878(0x18f),'oCePS':_0x1ef878(0x1b9),'nVyOU':function(_0x36904d,_0x476eca){return _0x36904d!==_0x476eca;},'cPdvE':_0x1ef878(0x2e2),'XrmaI':'Namespace\x20Created','PkhxB':_0x1ef878(0x276),'dazSG':_0x1ef878(0x2e6),'kTmKm':_0x1ef878(0x1ff),'ZcsEX':function(_0x5560d3,_0x18dc87){return _0x5560d3===_0x18dc87;},'xOsBF':function(_0xb4fb05,_0xfde34f,_0xe363ed,_0x285353,_0xafec1,_0x35edb8,_0x186328,_0x5137a3,_0x2334c2,_0x46c7f3,_0x217425){return _0xb4fb05(_0xfde34f,_0xe363ed,_0x285353,_0xafec1,_0x35edb8,_0x186328,_0x5137a3,_0x2334c2,_0x46c7f3,_0x217425);},'iUFfy':'Grid\x20spawned\x20on\x20the\x20cluster','AbvWH':_0x1ef878(0x2b6),'jaeIF':function(_0x35ec2c,_0x23825c,_0x380da8,_0x4d072c,_0x132fc0){return _0x35ec2c(_0x23825c,_0x380da8,_0x4d072c,_0x132fc0);},'mGqKJ':_0x1ef878(0x25c),'HdpJo':_0x1ef878(0x2e3),'IHOro':_0x1ef878(0x291),'nlBYd':function(_0x2b1daa,_0x5856ca){return _0x2b1daa===_0x5856ca;},'xxwFF':_0x1ef878(0x307),'lofhw':_0x1ef878(0x2b0),'CpwND':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','rWSYO':function(_0x16a8a7,_0x1d8321,_0x3ab479,_0x3ae27f,_0x53cd19,_0x2e962f,_0x5cea3c,_0x5b5a79){return _0x16a8a7(_0x1d8321,_0x3ab479,_0x3ae27f,_0x53cd19,_0x2e962f,_0x5cea3c,_0x5b5a79);},'lxeGd':_0x1ef878(0x2a5),'SHrCy':_0x1ef878(0x1bd),'OOENB':function(_0x2c1c33,_0x5ad675){return _0x2c1c33===_0x5ad675;},'aDLgu':_0x1ef878(0x1e6),'kInNj':function(_0x3c5098,_0x2ef705,_0x43b6b0,_0x1a62e1,_0x5ecf09,_0x10d8a9){return _0x3c5098(_0x2ef705,_0x43b6b0,_0x1a62e1,_0x5ecf09,_0x10d8a9);},'TIkKq':'grid-spawning-failed'};let _0x20e6ff=![],_0x1a92e3=![],_0x286bff,_0x112f1d,_0x36dba0,_0x4e2c96,_0x2b4dc1,_0x345902,_0x3825fd,_0x1c02cb,_0x15a8b1,_0x21bef2,_0xac18e,_0x2b9944,_0x51a5c5,_0x1cee86,_0x5be8fb=0x1,_0x5002e5=0xe;try{global_registry[_0x1ef878(0x237)]=_0x49ff97[_0x1ef878(0x2f0)](uuidv4),global_registry[_0x1ef878(0x33c)]=![];!fs[_0x1ef878(0x233)](_0x49ff97[_0x1ef878(0x271)](getCredentialsPath))&&(_0x49ff97['faBju'](_0x49ff97[_0x1ef878(0x215)],_0x49ff97[_0x1ef878(0x24b)])?_0x10893d['sendResourceDataToHST']():(console[_0x1ef878(0x266)](_0x49ff97[_0x1ef878(0x1f1)]),await _0x49ff97[_0x1ef878(0x1e4)](sendInstrumentationEvent,_0x496778,_0x49ff97[_0x1ef878(0x2dc)],messageTypes['ERROR'],_0x49ff97[_0x1ef878(0x190)],null,_0x496778),process['exit'](0x1)));await _0x49ff97['VPzNn'](sendInstrumentationEvent,_0x496778,_0x49ff97[_0x1ef878(0x2dc)],messageTypes['INFO'],null,null,_0x496778);const _0x5c4711=JSON[_0x1ef878(0x312)](fs[_0x1ef878(0x25d)](_0x49ff97[_0x1ef878(0x271)](getCredentialsPath)));global_registry[_0x1ef878(0x1e2)]=_0x5c4711[_0x1ef878(0x2e2)]['username'],global_registry[_0x1ef878(0x32e)]=_0x5c4711[_0x1ef878(0x2e2)]['password'];const _0x290aa5=WS_ENDPOINT[_0x1ef878(0x2ea)](_0x49ff97['vqDrZ'],_0x5c4711[_0x1ef878(0x2e2)][_0x1ef878(0x1d5)])['replace'](_0x49ff97[_0x1ef878(0x22e)],_0x5c4711[_0x1ef878(0x2e2)][_0x1ef878(0x1cc)]),_0x5807a3={};_0x5807a3[_0x1ef878(0x1c5)]=ws,_0x5807a3[_0x1ef878(0x22d)]=0x36ee80,_0x2b9944=new ReconnectingWebSocket(_0x290aa5,[],_0x5807a3),logger[_0x1ef878(0x285)](_0x49ff97[_0x1ef878(0x2cc)]),webSocketUtils[_0x1ef878(0x1bf)](_0x2b9944,_0x496778[_0x1ef878(0x1fd)],_0x496778[_0x1ef878(0x1cc)]);const _0x1fd551=_0x496778[_0x1ef878(0x22f)]||DEFAULT_GRID_NAME;if(_0x496778[_0x1ef878(0x2b2)]||_0x496778['cloudProvider']||_0x496778[_0x1ef878(0x193)]){if(_0x49ff97['faBju'](_0x49ff97[_0x1ef878(0x1ba)],_0x49ff97[_0x1ef878(0x1ba)])){!(_0x496778[_0x1ef878(0x2b2)]&&_0x496778[_0x1ef878(0x2b5)]&&_0x496778[_0x1ef878(0x193)])&&(_0x49ff97['CxCXc'](_0x49ff97[_0x1ef878(0x22a)],_0x49ff97[_0x1ef878(0x301)])?(_0x5a3963['info'](_0x1ef878(0x1fe)+_0x37a80b[_0x1ef878(0x2b2)]+_0x1ef878(0x313)),_0x58b11e=![],_0x4e96fa=!![]):(_0x286bff=_0x49ff97[_0x1ef878(0x338)],await _0x49ff97[_0x1ef878(0x348)](reportToGalactusAndSendToEDS,_0x496778,_0x2b9944,_0x286bff,messageTypes['ERROR'],_0x49ff97[_0x1ef878(0x2dc)],_0x49ff97[_0x1ef878(0x2da)],_0x49ff97[_0x1ef878(0x195)]),logger[_0x1ef878(0x266)](_0x286bff),process[_0x1ef878(0x247)](0x1)));![AWS,AZURE,GCP]['includes'](_0x496778['cloudProvider'][_0x1ef878(0x2bf)]())&&(_0x49ff97[_0x1ef878(0x19a)](_0x49ff97[_0x1ef878(0x196)],_0x49ff97[_0x1ef878(0x34f)])?(_0x286bff=_0x49ff97['JXPYx'],await _0x49ff97[_0x1ef878(0x2d4)](reportToGalactusAndSendToEDS,_0x496778,_0x2b9944,_0x286bff,messageTypes['ERROR'],_0x49ff97[_0x1ef878(0x2dc)],_0x49ff97[_0x1ef878(0x1a4)],_0x49ff97[_0x1ef878(0x195)]),logger[_0x1ef878(0x266)](_0x286bff),process[_0x1ef878(0x247)](0x1)):_0x716173=!![]);_0x496778[_0x1ef878(0x32b)]&&_0x49ff97[_0x1ef878(0x263)](_0x496778[_0x1ef878(0x32b)][_0x1ef878(0x2bf)](),_0x49ff97[_0x1ef878(0x2fc)])&&(_0x49ff97[_0x1ef878(0x2b4)](_0x49ff97[_0x1ef878(0x1f7)],_0x49ff97['rcvMA'])?_0x4a998f[_0x1ef878(0x21b)](_0x1ef878(0x2f4)+_0x377712['stringify'](_0xc1804)+'\x20'):global_registry[_0x1ef878(0x33c)]=!![]);global_registry[_0x1ef878(0x2b5)]=_0x496778[_0x1ef878(0x2b5)],global_registry['clusterRegion']=_0x496778[_0x1ef878(0x193)],global_registry[_0x1ef878(0x2b2)]=_0x496778['clusterName'];const _0x20b398=await _0x49ff97[_0x1ef878(0x2f3)](getCloudProviderObject,_0x496778[_0x1ef878(0x2b5)],_0x496778[_0x1ef878(0x2b2)],_0x1fd551,_0x2b9944,webSocketUtils,_0x496778),_0x535b3e=await _0x20b398['isClusterPresent']();!_0x535b3e?_0x49ff97[_0x1ef878(0x341)](_0x49ff97['ZMgyq'],_0x49ff97[_0x1ef878(0x1be)])?(logger[_0x1ef878(0x21b)](_0x1ef878(0x1fe)+_0x496778[_0x1ef878(0x2b2)]+_0x1ef878(0x313)),_0x20e6ff=![],_0x1a92e3=!![]):_0x2b51dc=_0x49ff97['uIEOG']:_0x49ff97[_0x1ef878(0x1c4)](_0x49ff97['EXMxV'],_0x49ff97[_0x1ef878(0x1c7)])?_0x3e3a3c[_0x1ef878(0x28a)]=_0x56d582['gridProfile']:_0x20e6ff=!![],_0x36dba0=_0x496778[_0x1ef878(0x2b2)],_0x112f1d=_0x496778[_0x1ef878(0x2b5)]['toLowerCase'](),_0x4e2c96=_0x496778['region'];}else _0xe59af1=_0x25fe8e[_0x4bf59b[_0x1ef878(0x28a)]];}else _0x496778['gridProfile']&&(_0x49ff97[_0x1ef878(0x19a)](_0x49ff97['nxzsi'],_0x49ff97[_0x1ef878(0x1bb)])?_0x3ece22[_0x1ef878(0x266)](_0x1ef878(0x225)+_0x402305+'\x20\x0a'+_0x3011ab['stringify'](_0x3668b2[_0x1ef878(0x33e)])):global_registry[_0x1ef878(0x28a)]=_0x496778[_0x1ef878(0x28a)]);global_registry[_0x1ef878(0x22f)]=_0x496778[_0x1ef878(0x22f)];const _0x55ef68={'method':_0x49ff97['DxHuE'],'headers':_0x49ff97[_0x1ef878(0x2f1)](getAuthHeader,_0x5c4711[_0x1ef878(0x2e2)][_0x1ef878(0x1d5)],_0x5c4711[_0x1ef878(0x2e2)]['password']),'throwHttpErrors':![]},_0xf00de2={};_0xf00de2['gridName']=_0x1fd551;const _0x3e4759=_0xf00de2;_0x1a92e3&&(_0x49ff97[_0x1ef878(0x28c)](_0x49ff97[_0x1ef878(0x321)],_0x49ff97[_0x1ef878(0x19c)])?_0x2ca5f0[_0x1ef878(0x33c)]=!![]:(_0x3e4759[_0x1ef878(0x193)]=_0x4e2c96,_0x3e4759[_0x1ef878(0x2b5)]=_0x112f1d,_0x3e4759[_0x1ef878(0x23b)]=!![],_0x3e4759[_0x1ef878(0x322)]=_0x496778['clusterAutoupgrade']));_0x496778[_0x1ef878(0x201)]&&(_0x49ff97[_0x1ef878(0x263)](_0x49ff97['FTRxk'],_0x49ff97['FTRxk'])?logger['info'](_0x49ff97[_0x1ef878(0x1d9)]):_0x49ff97[_0x1ef878(0x1ef)](_0x121005,_0x150f2a['kafkaUploader']));const _0x4fd550=_0x1ef878(0x2e1)+AG_API_URL+_0x1ef878(0x1e3),_0x3919f7={'searchParams':_0x3e4759,'throwHttpErrors':![],..._0x55ef68},_0x181464=_0x3919f7,_0x5c0f66=await _0x49ff97[_0x1ef878(0x2f1)](got,_0x4fd550,_0x181464);(_0x49ff97[_0x1ef878(0x2f5)](_0x5c0f66,null)||_0x49ff97[_0x1ef878(0x2cd)](_0x5c0f66,undefined))&&(_0x49ff97[_0x1ef878(0x263)](_0x49ff97[_0x1ef878(0x2a0)],_0x49ff97[_0x1ef878(0x2a0)])?(_0x286bff=_0x49ff97[_0x1ef878(0x1ce)],await _0x49ff97[_0x1ef878(0x29b)](reportToGalactusAndSendToEDS,_0x496778,_0x2b9944,_0x286bff,messageTypes[_0x1ef878(0x218)],_0x49ff97[_0x1ef878(0x2dc)],_0x49ff97[_0x1ef878(0x2fd)],_0x49ff97[_0x1ef878(0x195)]),logger[_0x1ef878(0x266)](_0x286bff),process[_0x1ef878(0x247)](0x1)):_0x4f6f73=null);if(_0x49ff97[_0x1ef878(0x235)](_0x5c0f66['statusCode'],0x191)){if(_0x49ff97[_0x1ef878(0x32f)](_0x49ff97[_0x1ef878(0x34c)],_0x49ff97[_0x1ef878(0x34c)]))_0x286bff=_0x49ff97[_0x1ef878(0x236)],await _0x49ff97[_0x1ef878(0x273)](reportToGalactusAndSendToEDS,_0x496778,_0x2b9944,_0x286bff,messageTypes[_0x1ef878(0x218)],_0x49ff97[_0x1ef878(0x2dc)],_0x49ff97[_0x1ef878(0x26a)],_0x49ff97[_0x1ef878(0x195)]),logger['error'](_0x286bff),process['exit'](0x1);else{const _0x2deaef={'azure.workload.identity/use':_0x49ff97[_0x1ef878(0x2fc)],..._0x4b4fac[0x0][_0x1ef878(0x27f)][_0x1ef878(0x22b)][_0x1ef878(0x1fb)][_0x1ef878(0x26f)]};_0xa8db36[0x0][_0x1ef878(0x27f)][_0x1ef878(0x22b)]['metadata'][_0x1ef878(0x26f)]=_0x2deaef,_0x49fee6[0x0][_0x1ef878(0x27f)][_0x1ef878(0x22b)][_0x1ef878(0x27f)][_0x1ef878(0x1de)]=_0x49ff97[_0x1ef878(0x214)];}}if(_0x49ff97[_0x1ef878(0x1ab)](_0x5c0f66[_0x1ef878(0x337)],0xc8)){if(_0x49ff97[_0x1ef878(0x223)](_0x49ff97[_0x1ef878(0x2f8)],_0x49ff97[_0x1ef878(0x2f8)])){const _0x42f557=_0x49ff97[_0x1ef878(0x324)]['split']('|');let _0x5b9195=0x0;while(!![]){switch(_0x42f557[_0x5b9195++]){case'0':_0x33b384[_0x1ef878(0x1f0)]=_0x49ff97[_0x1ef878(0x2c4)];continue;case'1':_0x4ebbb2[_0x1ef878(0x254)]=_0x49ff97[_0x1ef878(0x1e0)];continue;case'2':_0xdbe547[_0x1ef878(0x197)]=_0x49ff97[_0x1ef878(0x31e)];continue;case'3':_0x2e5673[_0x1ef878(0x250)]=!![];continue;case'4':_0x470a96['info'](_0x49ff97[_0x1ef878(0x25f)]);continue;}break;}}else _0x286bff='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x1ef878(0x2e7)](_0x5c0f66[_0x1ef878(0x211)]),await _0x49ff97[_0x1ef878(0x29b)](reportToGalactusAndSendToEDS,_0x496778,_0x2b9944,_0x286bff,messageTypes[_0x1ef878(0x218)],_0x49ff97[_0x1ef878(0x2dc)],_0x49ff97['iDcnY'],_0x49ff97[_0x1ef878(0x195)]),logger['error'](_0x286bff),process[_0x1ef878(0x247)](0x1);}const _0x2130ed=JSON[_0x1ef878(0x312)](_0x5c0f66[_0x1ef878(0x211)]),_0x209cff={};_0x209cff[_0x1ef878(0x19e)]=WS_EVENTS[_0x1ef878(0x2d6)],_0x209cff['message']=_0x49ff97[_0x1ef878(0x339)],webSocketUtils[_0x1ef878(0x2de)](_0x2b9944,_0x209cff);const _0x510542={};_0x510542['type']=WS_EVENTS[_0x1ef878(0x2e4)],_0x510542[_0x1ef878(0x333)]=_0x49ff97[_0x1ef878(0x2a6)],webSocketUtils[_0x1ef878(0x2de)](_0x2b9944,_0x510542);_0x2130ed[_0x1ef878(0x2ad)]&&(_0x49ff97[_0x1ef878(0x2a7)](_0x49ff97[_0x1ef878(0x268)],_0x49ff97[_0x1ef878(0x281)])?(_0x286bff=_0x1ef878(0x31a)+_0x1fd551+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x49ff97[_0x1ef878(0x348)](reportToGalactusAndSendToEDS,_0x496778,_0x2b9944,_0x286bff,messageTypes[_0x1ef878(0x218)],_0x49ff97[_0x1ef878(0x2dc)],_0x49ff97['ZNxJC'],_0x49ff97['DQETi']),logger[_0x1ef878(0x266)](_0x286bff),process[_0x1ef878(0x247)](0x1)):_0xa8f760[_0x1ef878(0x21b)]('Found\x20VPC:\x20'+_0x538f51+'\x20'));const _0x33c94b=_0x2130ed['gridProfiles'];let _0x28dac7=_0x33c94b[_0x2130ed[_0x1ef878(0x2c1)]];if(_0x496778[_0x1ef878(0x28a)]){if(_0x49ff97[_0x1ef878(0x2b3)](_0x49ff97[_0x1ef878(0x2a2)],_0x49ff97['GNzHl'])){const _0x3278c4={};_0x3278c4[_0x1ef878(0x29f)]=_0x49ff97['QJdCu'],_0x3278c4[_0x1ef878(0x19e)]=_0x49ff97[_0x1ef878(0x20a)];const _0x50cf4a={};_0x50cf4a[_0x1ef878(0x29f)]=_0x49ff97[_0x1ef878(0x2ef)],_0x50cf4a[_0x1ef878(0x19e)]=_0x49ff97[_0x1ef878(0x20a)];const _0x5116fe={};_0x5116fe['description']=_0x49ff97[_0x1ef878(0x19b)],_0x5116fe[_0x1ef878(0x19e)]=_0x49ff97[_0x1ef878(0x20a)];const _0x18a449={};_0x18a449['description']=_0x49ff97[_0x1ef878(0x1aa)],_0x18a449['type']=_0x49ff97[_0x1ef878(0x20a)];const _0x55f5fb={};_0x55f5fb['description']=_0x49ff97['HACmo'],_0x55f5fb[_0x1ef878(0x19e)]=_0x49ff97[_0x1ef878(0x20a)];const _0x52a418={};_0x52a418[_0x1ef878(0x29f)]=_0x49ff97[_0x1ef878(0x298)],_0x52a418[_0x1ef878(0x19e)]=_0x49ff97[_0x1ef878(0x20a)];const _0x3b2d6e={};_0x3b2d6e[_0x1ef878(0x29f)]=_0x49ff97[_0x1ef878(0x30f)],_0x3b2d6e[_0x1ef878(0x19e)]=_0x49ff97[_0x1ef878(0x244)],_0x3b2d6e['default']=![];const _0x390d9c={};_0x390d9c[_0x1ef878(0x29f)]=_0x49ff97[_0x1ef878(0x1a6)],_0x390d9c[_0x1ef878(0x19e)]=_0x49ff97[_0x1ef878(0x244)],_0x390d9c[_0x1ef878(0x26e)]=![];const _0x7401bc={};_0x7401bc['description']=_0x49ff97[_0x1ef878(0x284)],_0x7401bc['type']=_0x49ff97[_0x1ef878(0x244)],_0x7401bc[_0x1ef878(0x26e)]=![];const _0x2139b7={};return _0x2139b7[_0x1ef878(0x300)]=_0x3278c4,_0x2139b7[_0x1ef878(0x1dc)]=_0x50cf4a,_0x2139b7[_0x1ef878(0x259)]=_0x5116fe,_0x2139b7[_0x1ef878(0x277)]=_0x18a449,_0x2139b7[_0x1ef878(0x193)]=_0x55f5fb,_0x2139b7[_0x1ef878(0x2ec)]=_0x52a418,_0x2139b7[_0x1ef878(0x28e)]=_0x3b2d6e,_0x2139b7['hub-ha']=_0x390d9c,_0x2139b7[_0x1ef878(0x1ea)]=_0x7401bc,_0x45ce52['usage'](_0x48de6e[_0x1ef878(0x23f)])['epilogue'](_0x4734f8)[_0x1ef878(0x208)](_0x2139b7)[_0x1ef878(0x23e)](_0x49ff97[_0x1ef878(0x227)])[_0x1ef878(0x275)];}else _0x28dac7=_0x33c94b[_0x496778[_0x1ef878(0x28a)]];}global_registry[_0x1ef878(0x250)]=![];if(_0x496778['hubHa']){if(_0x49ff97[_0x1ef878(0x319)](_0x49ff97['LcsvG'],_0x49ff97[_0x1ef878(0x323)]))_0x13c8de[_0x1ef878(0x33c)]=!![];else{const _0x5384a5=_0x49ff97['gDTvQ'][_0x1ef878(0x262)]('|');let _0x661be4=0x0;while(!![]){switch(_0x5384a5[_0x661be4++]){case'0':global_registry[_0x1ef878(0x197)]=_0x49ff97[_0x1ef878(0x31e)];continue;case'1':global_registry[_0x1ef878(0x254)]=_0x49ff97[_0x1ef878(0x1e0)];continue;case'2':global_registry[_0x1ef878(0x1f0)]=_0x49ff97[_0x1ef878(0x2c4)];continue;case'3':logger[_0x1ef878(0x21b)](_0x49ff97[_0x1ef878(0x25f)]);continue;case'4':global_registry['enableHubHa']=!![];continue;}break;}}}if(_0x49ff97[_0x1ef878(0x1fa)](_0x20e6ff,![])&&_0x49ff97['cTysc'](_0x1a92e3,![])){if(_0x49ff97['akaCp'](_0x49ff97[_0x1ef878(0x332)],_0x49ff97[_0x1ef878(0x332)]))_0xfe9f5d=_0x49ff97[_0x1ef878(0x32d)];else{if(_0x49ff97[_0x1ef878(0x235)](_0x28dac7,undefined)){if(_0x49ff97[_0x1ef878(0x235)](_0x49ff97[_0x1ef878(0x1c0)],_0x49ff97['CGdIB'])){const _0x1a8b38={};_0x1a8b38[_0x1ef878(0x19e)]=_0x3c8fd2[_0x1ef878(0x2e4)],_0x1a8b38[_0x1ef878(0x333)]=_0x1ef878(0x2d1)+_0x46c3f3+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x32fea3[_0x1ef878(0x2de)](_0x4ab218,_0x1a8b38,_0x49ff97['OwGmV']),_0x6f81f6[_0x1ef878(0x21b)](_0x1ef878(0x2d1)+_0x8f44c2+_0x1ef878(0x19d)),_0xcb4a61=!![];if(_0x49ff97['faBju'](_0x20211b,!![]))throw new _0x578a19(_0x1ef878(0x2d1)+_0x4ee54f+_0x1ef878(0x251));}else _0x286bff=_0x49ff97[_0x1ef878(0x198)],await _0x49ff97[_0x1ef878(0x24c)](reportToGalactusAndSendToEDS,_0x496778,_0x2b9944,_0x286bff,messageTypes['ERROR'],_0x49ff97[_0x1ef878(0x2dc)],_0x49ff97[_0x1ef878(0x309)],_0x49ff97[_0x1ef878(0x195)]),logger['error'](_0x286bff),process[_0x1ef878(0x247)](0x1);}global_registry[_0x1ef878(0x34a)]=_0x28dac7['id'],_0x286bff=_0x1ef878(0x23c)+_0x1fd551+_0x1ef878(0x256)+_0x28dac7[_0x1ef878(0x21a)]+_0x1ef878(0x32a),logger[_0x1ef878(0x21b)](_0x286bff);const _0x23418d={};_0x23418d[_0x1ef878(0x19e)]=WS_EVENTS['LOG'],_0x23418d['message']=_0x286bff,webSocketUtils['sendEventToBackend'](_0x2b9944,_0x23418d),_0x112f1d=_0x28dac7[_0x1ef878(0x2b5)],_0x36dba0=_0x28dac7[_0x1ef878(0x2b2)],_0x4e2c96=_0x28dac7[_0x1ef878(0x193)],_0x2b4dc1=_0x28dac7[_0x1ef878(0x1d7)],_0x345902=_0x28dac7['instanceType'],_0x3825fd=_0x28dac7[_0x1ef878(0x1ed)],_0x1c02cb=_0x28dac7[_0x1ef878(0x260)],_0x15a8b1=_0x28dac7[_0x1ef878(0x1d6)],_0x21bef2=_0x28dac7[_0x1ef878(0x31c)],_0x5be8fb=_0x28dac7['minNodes'],_0x5002e5=_0x28dac7[_0x1ef878(0x242)],_0x51a5c5=_0x2130ed[_0x1ef878(0x199)],_0x1cee86=_0x2130ed['browserVersion'];if(_0x3825fd&&_0x49ff97['bqePq'](_0x3825fd[_0x1ef878(0x2ce)],0x0)){if(_0x49ff97[_0x1ef878(0x235)](_0x49ff97[_0x1ef878(0x241)],_0x49ff97[_0x1ef878(0x241)]))_0x3825fd=null;else{const _0x4ca2e0={};_0x4ca2e0[_0x1ef878(0x19e)]=_0x26a9bf[_0x1ef878(0x2e4)],_0x4ca2e0[_0x1ef878(0x333)]=_0x6c56e4,_0x5ba689[_0x1ef878(0x2de)](_0x14d9ff,_0x4ca2e0,_0x49ff97[_0x1ef878(0x195)],!![]);}}if(_0x15a8b1&&_0x49ff97[_0x1ef878(0x2b3)](_0x15a8b1[_0x1ef878(0x2ce)],0x0)){if(_0x49ff97[_0x1ef878(0x1eb)](_0x49ff97['VvviE'],_0x49ff97['VvviE']))_0x15a8b1=null;else{const _0x55d5c0=_0x49ff97[_0x1ef878(0x316)][_0x1ef878(0x262)]('|');let _0x1ab3d0=0x0;while(!![]){switch(_0x55d5c0[_0x1ab3d0++]){case'0':_0x1c0b3f[_0x1ef878(0x21b)](_0xdcac22);continue;case'1':_0x7e44d6[_0x1ef878(0x199)]=_0x2d61db['hubVersion'];continue;case'2':_0x36782d[_0x1ef878(0x26d)]=_0x39ac4a;continue;case'3':_0x4babc7['cloudProvider']=_0x174e39;continue;case'4':_0xbbe47c[_0x1ef878(0x238)]=_0x99e4f1[_0x1ef878(0x238)];continue;case'5':_0x33a06a='Spawning\x20the\x20grid\x20'+_0x53a014+_0x1ef878(0x1df)+_0x2ed2c9+'\x27';continue;case'6':_0x5917db['clusterName']=_0xc45ca2;continue;case'7':const _0x43e86c={};_0x43e86c['type']=_0x19d004['LOG'],_0x43e86c[_0x1ef878(0x333)]=_0xf050e9,_0x398054[_0x1ef878(0x2de)](_0x3b846e,_0x43e86c);continue;case'8':const _0x46e073={};_0x46e073[_0x1ef878(0x19e)]=_0x10866f[_0x1ef878(0x2d6)],_0x46e073[_0x1ef878(0x333)]=_0x49ff97['xAgWt'],_0x5aa761['sendEventToBackend'](_0x4fc6cc,_0x46e073);continue;}break;}}}_0x49ff97[_0x1ef878(0x341)](_0x28dac7['privateGrid'],undefined)&&_0x28dac7[_0x1ef878(0x32b)]&&(_0x49ff97[_0x1ef878(0x32c)](_0x49ff97[_0x1ef878(0x2ff)],_0x49ff97['cxaOe'])?global_registry[_0x1ef878(0x33c)]=!![]:_0x446804['info'](_0x49ff97[_0x1ef878(0x1d9)]));_0x49ff97[_0x1ef878(0x2fe)](updateGlobalRegistryWithConfig,_0x112f1d,_0x36dba0,_0x4e2c96,_0x2b4dc1,_0x345902,_0x21bef2,_0x28dac7,_0x51a5c5,_0x1cee86,_0x5be8fb,_0x5002e5,_0x496778[_0x1ef878(0x201)]);if(global_registry['enableHubHa']){if(_0x49ff97[_0x1ef878(0x2b3)](_0x49ff97[_0x1ef878(0x306)],_0x49ff97[_0x1ef878(0x336)])){const _0x462ec0=_0x49ff97[_0x1ef878(0x232)][_0x1ef878(0x262)]('|');let _0x51c476=0x0;while(!![]){switch(_0x462ec0[_0x51c476++]){case'0':_0x3e5720='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x20459f;continue;case'1':_0x49ff97[_0x1ef878(0x210)](_0x3caf5f,_0xd715db,_0x3fde88,_0x271ac8,_0x4d3353,_0x35fdc3,_0x1a8b49,_0x53eea0,_0x3f9b7b,_0x3e5721,_0x2e5630,_0x5768fb,_0x5aa9c6[_0x1ef878(0x201)]);continue;case'2':_0x49ff97[_0x1ef878(0x299)](_0x46aeb7[_0x1ef878(0x32b)],_0x67b1b5)&&_0x1d16b5[_0x1ef878(0x32b)]&&(_0x3a4694[_0x1ef878(0x33c)]=!![]);continue;case'3':const _0x36e64e={};_0x36e64e[_0x1ef878(0x19e)]=_0x1e14fe[_0x1ef878(0x2e4)],_0x36e64e[_0x1ef878(0x333)]=_0x27cc06,_0x1f7cac[_0x1ef878(0x2de)](_0x1d24cc,_0x36e64e);continue;case'4':_0x47e6e0=null;continue;case'5':_0x500ab4=_0x2d6afc['minNodes'];continue;case'6':_0x8285de=null;continue;case'7':_0x343671=null;continue;case'8':_0x52991e=_0x5a6383[_0x1ef878(0x199)];continue;case'9':_0x407afe=_0x2f661d['instanceType'];continue;case'10':_0x36c8d5['info'](_0x40cb35);continue;case'11':_0x55d52f=_0x2fba04[_0x1ef878(0x242)];continue;case'12':_0x905c2b[_0x1ef878(0x250)]&&_0x49ff97[_0x1ef878(0x1ef)](_0x454b7c,_0xf2c23c[_0x1ef878(0x289)]);continue;case'13':_0x4ccc14=_0xe1c623[_0x1ef878(0x1d7)];continue;case'14':_0x29fb85=_0xfee81f['browserVersion'];continue;case'15':_0x178f27=_0x349689[_0x1ef878(0x31c)];continue;}break;}}else _0x49ff97[_0x1ef878(0x311)](updateGlobalRegistryForHubHa,_0x2130ed[_0x1ef878(0x1e1)]);}}}else{if(_0x49ff97[_0x1ef878(0x2b3)](_0x1a92e3,!![])){if(_0x49ff97[_0x1ef878(0x221)](_0x49ff97[_0x1ef878(0x345)],_0x49ff97[_0x1ef878(0x345)]))_0x2e905f=null;else{_0x286bff=_0x1ef878(0x212)+_0x1fd551,logger[_0x1ef878(0x21b)](_0x286bff);const _0x59a8be={};_0x59a8be['type']=WS_EVENTS['LOG'],_0x59a8be['message']=_0x286bff,webSocketUtils[_0x1ef878(0x2de)](_0x2b9944,_0x59a8be),_0x2b4dc1=_0x28dac7[_0x1ef878(0x1d7)],_0x345902=_0x28dac7[_0x1ef878(0x20e)],_0x3825fd=null,_0x1c02cb=null,_0x15a8b1=null,_0x21bef2=_0x28dac7[_0x1ef878(0x31c)],_0x5be8fb=_0x28dac7['minNodes'],_0x5002e5=_0x28dac7[_0x1ef878(0x242)],_0x51a5c5=_0x2130ed[_0x1ef878(0x199)],_0x1cee86=_0x2130ed[_0x1ef878(0x238)];if(_0x49ff97[_0x1ef878(0x308)](_0x28dac7['privateGrid'],undefined)&&_0x28dac7['privateGrid']){if(_0x49ff97[_0x1ef878(0x314)](_0x49ff97[_0x1ef878(0x327)],_0x49ff97[_0x1ef878(0x1ad)]))throw new _0x118ee6(_0x1ef878(0x2d1)+_0x5b10c8+_0x1ef878(0x251));else global_registry[_0x1ef878(0x33c)]=!![];}_0x49ff97[_0x1ef878(0x2f2)](updateGlobalRegistryWithConfig,_0x112f1d,_0x36dba0,_0x4e2c96,_0x2b4dc1,_0x345902,_0x21bef2,_0x28dac7,_0x51a5c5,_0x1cee86,_0x5be8fb,_0x5002e5,_0x496778['clusterAutoupgrade']),global_registry[_0x1ef878(0x250)]&&(_0x49ff97['pNvPj'](_0x49ff97[_0x1ef878(0x304)],_0x49ff97[_0x1ef878(0x304)])?_0x3e0e0f[_0x1ef878(0x33c)]=!![]:_0x49ff97[_0x1ef878(0x203)](updateGlobalRegistryForHubHa,_0x2130ed[_0x1ef878(0x289)]));}}else{if(_0x49ff97[_0x1ef878(0x32c)](_0x49ff97[_0x1ef878(0x2ee)],_0x49ff97['pysHA'])){const _0x9fc311=_0x49ff97[_0x1ef878(0x20c)]['split']('|');let _0x56650f=0x0;while(!![]){switch(_0x9fc311[_0x56650f++]){case'0':global_registry['cloudProvider']=_0x112f1d;continue;case'1':global_registry[_0x1ef878(0x2b2)]=_0x36dba0;continue;case'2':const _0x2d3b5b={};_0x2d3b5b[_0x1ef878(0x19e)]=WS_EVENTS[_0x1ef878(0x2e4)],_0x2d3b5b[_0x1ef878(0x333)]=_0x286bff,webSocketUtils['sendEventToBackend'](_0x2b9944,_0x2d3b5b);continue;case'3':global_registry['hubVersion']=_0x2130ed[_0x1ef878(0x199)];continue;case'4':logger[_0x1ef878(0x21b)](_0x286bff);continue;case'5':_0x286bff='Spawning\x20the\x20grid\x20'+_0x1fd551+_0x1ef878(0x1df)+_0x36dba0+'\x27';continue;case'6':global_registry[_0x1ef878(0x238)]=_0x2130ed['browserVersion'];continue;case'7':global_registry[_0x1ef878(0x26d)]=_0x4e2c96;continue;case'8':const _0x3b6690={};_0x3b6690[_0x1ef878(0x19e)]=WS_EVENTS[_0x1ef878(0x2d6)],_0x3b6690[_0x1ef878(0x333)]=_0x49ff97[_0x1ef878(0x339)],webSocketUtils[_0x1ef878(0x2de)](_0x2b9944,_0x3b6690);continue;}break;}}else _0x49ff97[_0x1ef878(0x1ef)](_0x24030f,_0x237387['uploaderVersion']);}}const _0x4ad4c5=await _0x49ff97[_0x1ef878(0x1f8)](getCloudProviderObject,_0x112f1d,_0x36dba0,_0x1fd551,_0x2b9944,webSocketUtils,_0x496778);_0x49ff97[_0x1ef878(0x1f5)](_0x112f1d,AZURE)&&(_0x49ff97[_0x1ef878(0x219)](_0x49ff97[_0x1ef878(0x1cf)],_0x49ff97[_0x1ef878(0x1b7)])?(_0x23b224=_0x466ef9[_0x1ef878(0x255)],_0x194745=_0x49ff97['ZJgEz']):_0x4ad4c5[_0x1ef878(0x204)]());let _0x5ea513;if(_0x49ff97[_0x1ef878(0x2d2)](_0x20e6ff,![])){_0x286bff=_0x1ef878(0x2ae)+_0x4e2c96+').';const _0x30be5b={};_0x30be5b['type']=WS_EVENTS['LOG'],_0x30be5b[_0x1ef878(0x333)]=_0x286bff,webSocketUtils['sendEventToBackend'](_0x2b9944,_0x30be5b),logger[_0x1ef878(0x21b)](_0x286bff);const _0x2494ef=await _0x4ad4c5[_0x1ef878(0x29a)]();if(_0x2494ef){if(_0x49ff97['mlzQe'](_0x49ff97[_0x1ef878(0x342)],_0x49ff97[_0x1ef878(0x342)])){const _0x26153f={};_0x26153f[_0x1ef878(0x19e)]=WS_EVENTS[_0x1ef878(0x2e4)],_0x26153f['message']=_0x1ef878(0x2d1)+_0x36dba0+_0x1ef878(0x19d),webSocketUtils['sendEventToBackend'](_0x2b9944,_0x26153f,_0x49ff97[_0x1ef878(0x2cf)]),logger['info'](_0x1ef878(0x2d1)+_0x36dba0+_0x1ef878(0x19d)),_0x20e6ff=!![];if(_0x49ff97['cWQSy'](_0x1a92e3,!![])){if(_0x49ff97[_0x1ef878(0x223)](_0x49ff97['Oaxgj'],_0x49ff97[_0x1ef878(0x2f6)]))throw new Error(_0x1ef878(0x2d1)+_0x36dba0+_0x1ef878(0x251));else _0x1889d2['region']=_0x5a0774,_0x4cac5b[_0x1ef878(0x2b5)]=_0x178def,_0x4aa6c4[_0x1ef878(0x23b)]=!![],_0x17d62a[_0x1ef878(0x322)]=_0x90597e[_0x1ef878(0x201)];}}else _0x17e748=_0x49ff97[_0x1ef878(0x191)];}else{const _0x264a37={};_0x264a37['type']=WS_EVENTS[_0x1ef878(0x2e4)],_0x264a37[_0x1ef878(0x333)]=_0x49ff97[_0x1ef878(0x27d)],webSocketUtils[_0x1ef878(0x2de)](_0x2b9944,_0x264a37),logger[_0x1ef878(0x21b)](_0x49ff97[_0x1ef878(0x27d)]);const _0x1da1e2=_0x49ff97[_0x1ef878(0x202)](_0x3825fd,null)&&_0x49ff97[_0x1ef878(0x2a8)](_0x3825fd,undefined),_0x3b83d8=_0x49ff97[_0x1ef878(0x25b)](_0x15a8b1,null)&&_0x49ff97[_0x1ef878(0x2a7)](_0x15a8b1,undefined)&&_0x49ff97[_0x1ef878(0x18b)](_0x15a8b1[_0x1ef878(0x2ce)],0x0);if(_0x1da1e2){_0x49ff97[_0x1ef878(0x32f)](_0x3b83d8,![])&&(_0x286bff=_0x49ff97[_0x1ef878(0x1b5)],await _0x49ff97[_0x1ef878(0x29b)](reportToGalactusAndSendToEDS,_0x496778,_0x2b9944,_0x286bff,messageTypes[_0x1ef878(0x218)],_0x49ff97['OFnnY'],_0x49ff97[_0x1ef878(0x1a5)],_0x49ff97['DQETi']),logger['error'](_0x286bff),process[_0x1ef878(0x247)](0x1));const _0x32afa7=await _0x4ad4c5[_0x1ef878(0x2c9)](_0x3825fd);_0x49ff97[_0x1ef878(0x1fa)](_0x32afa7,![])?(_0x286bff=_0x49ff97[_0x1ef878(0x246)],await _0x49ff97[_0x1ef878(0x264)](reportToGalactusAndSendToEDS,_0x496778,_0x2b9944,_0x286bff,messageTypes[_0x1ef878(0x218)],_0x49ff97[_0x1ef878(0x2dc)],_0x49ff97[_0x1ef878(0x26b)],_0x49ff97[_0x1ef878(0x195)]),logger[_0x1ef878(0x266)](_0x286bff),process['exit'](0x1)):logger[_0x1ef878(0x21b)](_0x1ef878(0x1e9)+_0x3825fd+'\x20');const _0x3673a3=await _0x4ad4c5[_0x1ef878(0x328)](_0x15a8b1,_0x3825fd);_0x49ff97[_0x1ef878(0x219)](_0x3673a3[0x0],![])?(_0x286bff=_0x1ef878(0x1e5)+JSON[_0x1ef878(0x2e7)](_0x3673a3[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x3825fd+_0x1ef878(0x200),await _0x49ff97['uRvbs'](reportToGalactusAndSendToEDS,_0x496778,_0x2b9944,_0x286bff,messageTypes['ERROR'],_0x49ff97[_0x1ef878(0x2dc)],_0x49ff97[_0x1ef878(0x1c8)],_0x49ff97[_0x1ef878(0x195)]),logger[_0x1ef878(0x266)](_0x286bff),process[_0x1ef878(0x247)](0x1)):logger[_0x1ef878(0x21b)](_0x1ef878(0x2f4)+JSON[_0x1ef878(0x2e7)](_0x15a8b1)+'\x20'),[_0x3825fd,_0x15a8b1]=await _0x4ad4c5[_0x1ef878(0x18d)](_0x3825fd,_0x15a8b1);}else{const _0x421036=_0x49ff97[_0x1ef878(0x1a8)][_0x1ef878(0x262)]('|');let _0x54cd3a=0x0;while(!![]){switch(_0x421036[_0x54cd3a++]){case'0':[_0x3825fd,_0x15a8b1]=await _0x4ad4c5[_0x1ef878(0x18d)](_0x3825fd,_0x15a8b1);continue;case'1':const _0x421489={};_0x421489[_0x1ef878(0x19e)]=WS_EVENTS[_0x1ef878(0x2e4)],_0x421489[_0x1ef878(0x333)]=_0x49ff97['bxezh'],webSocketUtils[_0x1ef878(0x2de)](_0x2b9944,_0x421489);continue;case'2':logger[_0x1ef878(0x21b)](_0x49ff97[_0x1ef878(0x310)]);continue;case'3':const _0x6aded9={};_0x6aded9['type']=WS_EVENTS[_0x1ef878(0x2e4)],_0x6aded9[_0x1ef878(0x333)]=_0x49ff97['wuGxa'],webSocketUtils['sendEventToBackend'](_0x2b9944,_0x6aded9);continue;case'4':logger[_0x1ef878(0x21b)](_0x49ff97['bxezh']);continue;}break;}}}}_0x20e6ff&&_0x49ff97['taBES'](_0x112f1d,AZURE)&&(await _0x4ad4c5[_0x1ef878(0x29e)](),await _0x4ad4c5['createOtherResources']());const [_0xd0e310,_0x52b06e,_0x3b8e06,_0x468704,_0x2459ff,_0x348a80,_0x5884f6]=await _0x49ff97[_0x1ef878(0x2df)](createK8sClient,_0x4ad4c5,_0x496778[_0x1ef878(0x1c2)]);_0x49ff97[_0x1ef878(0x292)](_0x20e6ff,![])&&_0x49ff97['cTysc'](_0x112f1d,AWS)&&(global_registry[_0x1ef878(0x280)]=!![],_0x5ea513=await _0x4ad4c5['setupAutoscaler'](_0xd0e310,_0x496778));if(_0x49ff97[_0x1ef878(0x32f)](_0x20e6ff,![])&&global_registry['enableHubHa'])try{await _0x4ad4c5['setupHubHa'](_0x348a80,_0x5884f6,_0x496778,_0x3825fd,_0x15a8b1);const _0xc22279={};_0xc22279[_0x1ef878(0x19e)]=WS_EVENTS['LOG'],_0xc22279[_0x1ef878(0x333)]=_0x49ff97['EUCtV'],webSocketUtils[_0x1ef878(0x2de)](_0x2b9944,_0xc22279);!await _0x49ff97[_0x1ef878(0x2f1)](namespaceExists,_0xd0e310,global_registry[_0x1ef878(0x254)])&&await _0x49ff97['xWMnU'](createNamespace,_0xd0e310,global_registry['hubHaNameSpace']);logger['info'](_0x49ff97[_0x1ef878(0x33f)]);let _0x271525=await fs[_0x1ef878(0x1af)](path['join'](__dirname,_0x49ff97['rsWMA'],_0x49ff97[_0x1ef878(0x209)],_0x49ff97[_0x1ef878(0x29c)],_0x49ff97['IxpnM']),_0x49ff97[_0x1ef878(0x252)]);_0x271525=_0x271525[_0x1ef878(0x2ea)](/<RedisClientPassword>/g,_0x49ff97['gjqYr'](encodeBase64,global_registry['redisPassword'])),_0x271525=_0x271525[_0x1ef878(0x2ea)](/<KafkaClientPassword>/g,_0x49ff97[_0x1ef878(0x22c)](encodeBase64,global_registry[_0x1ef878(0x1f0)])),_0x271525=_0x271525['replace'](/<BstackUsername>/g,_0x49ff97[_0x1ef878(0x311)](encodeBase64,global_registry[_0x1ef878(0x1e2)])),_0x271525=_0x271525[_0x1ef878(0x2ea)](/<BstackAccessKey>/g,_0x49ff97[_0x1ef878(0x20f)](encodeBase64,global_registry[_0x1ef878(0x32e)]));const _0x3664ec=yaml[_0x1ef878(0x228)](_0x271525);await _0x49ff97[_0x1ef878(0x2df)](kubeApply,_0x3664ec,_0x5884f6),logger[_0x1ef878(0x21b)](_0x49ff97[_0x1ef878(0x269)]);let _0x1282c5=_0x49ff97[_0x1ef878(0x261)];if(_0x49ff97['nsaDy'](_0x112f1d,AZURE))_0x1282c5=_0x49ff97[_0x1ef878(0x32d)];else _0x49ff97['cTysc'](_0x112f1d,GCP)&&(_0x1282c5=_0x49ff97['uIEOG']);logger[_0x1ef878(0x21b)](_0x49ff97[_0x1ef878(0x33d)]);let _0x477b3b=await fs[_0x1ef878(0x1af)](path[_0x1ef878(0x34b)](__dirname,_0x49ff97[_0x1ef878(0x206)],_0x49ff97['HbbuL'],_0x49ff97[_0x1ef878(0x29c)],_0x49ff97[_0x1ef878(0x318)]),_0x49ff97[_0x1ef878(0x252)]);_0x477b3b=_0x477b3b['replace'](/<HubHaNameSpace>/g,global_registry[_0x1ef878(0x254)]),_0x477b3b=_0x477b3b['replace'](/<StorageClassName>/g,_0x1282c5);const _0x3b37fb=yaml[_0x1ef878(0x228)](_0x477b3b);await _0x49ff97['bHtKe'](kubeApply,_0x3b37fb,_0x5884f6),logger[_0x1ef878(0x21b)](_0x49ff97['hmmpt']),logger[_0x1ef878(0x21b)](_0x49ff97['ACUfH']);let _0x25711f=await fs[_0x1ef878(0x1af)](path[_0x1ef878(0x34b)](__dirname,_0x49ff97[_0x1ef878(0x206)],_0x49ff97['HbbuL'],_0x49ff97[_0x1ef878(0x29c)],_0x49ff97['LDcEq']),_0x49ff97['wjTkz']);_0x25711f=_0x25711f[_0x1ef878(0x2ea)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x25711f=_0x25711f[_0x1ef878(0x2ea)](/<StorageClassName>/g,_0x1282c5);const _0x46307b=yaml['loadAll'](_0x25711f);await _0x49ff97['QRcdo'](kubeApply,_0x46307b,_0x5884f6),logger['info'](_0x49ff97[_0x1ef878(0x24a)]),logger[_0x1ef878(0x21b)](_0x49ff97[_0x1ef878(0x192)]);let _0x5184f4=await fs['readFileAsync'](path['join'](__dirname,_0x49ff97[_0x1ef878(0x206)],_0x49ff97[_0x1ef878(0x209)],_0x49ff97[_0x1ef878(0x29c)],_0x49ff97['zQItP']),_0x49ff97['wjTkz']);_0x5184f4=_0x5184f4[_0x1ef878(0x2ea)](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x5184f4=_0x5184f4[_0x1ef878(0x2ea)](/<HubHaNameSpace>/g,global_registry[_0x1ef878(0x254)]);const _0x537314=yaml[_0x1ef878(0x228)](_0x5184f4);_0x49ff97['cTysc'](global_registry[_0x1ef878(0x2b5)],AZURE)&&(_0x537314[0x0][_0x1ef878(0x27f)][_0x1ef878(0x22b)][_0x1ef878(0x1fb)]['labels']={'azure.workload.identity/use':_0x49ff97[_0x1ef878(0x2fc)],..._0x537314[0x0][_0x1ef878(0x27f)][_0x1ef878(0x22b)][_0x1ef878(0x1fb)][_0x1ef878(0x26f)]},_0x537314[0x0]['spec']['template'][_0x1ef878(0x27f)][_0x1ef878(0x1de)]=_0x49ff97[_0x1ef878(0x214)]);await _0x49ff97[_0x1ef878(0x2bd)](kubeApply,_0x537314,_0x5884f6),logger[_0x1ef878(0x21b)](_0x49ff97[_0x1ef878(0x2ac)]);const _0x55ac74={};_0x55ac74[_0x1ef878(0x19e)]=WS_EVENTS[_0x1ef878(0x2e4)],_0x55ac74['message']=_0x49ff97[_0x1ef878(0x1c1)],webSocketUtils['sendEventToBackend'](_0x2b9944,_0x55ac74),logger[_0x1ef878(0x21b)](_0x49ff97[_0x1ef878(0x297)]);}catch(_0x2c1cc9){const _0x22b349=_0x49ff97['OLLrr'][_0x1ef878(0x262)]('|');let _0x5a1a6e=0x0;while(!![]){switch(_0x22b349[_0x5a1a6e++]){case'0':process[_0x1ef878(0x247)](0x1);continue;case'1':await _0x4ad4c5[_0x1ef878(0x330)](_0xd0e310,global_registry[_0x1ef878(0x26d)]);continue;case'2':logger[_0x1ef878(0x266)](_0x286bff);continue;case'3':await _0x49ff97['uRvbs'](reportToGalactusAndSendToEDS,_0x496778,_0x2b9944,_0x286bff,messageTypes[_0x1ef878(0x218)],_0x49ff97['OFnnY'],_0x49ff97[_0x1ef878(0x21e)],_0x49ff97[_0x1ef878(0x195)]);continue;case'4':_0x286bff=_0x1ef878(0x29d)+_0x2c1cc9[_0x1ef878(0x333)];continue;}break;}}try{_0xac18e=_0x49ff97[_0x1ef878(0x22c)](kebabCase,_0x1fd551),logger[_0x1ef878(0x21b)](_0x49ff97[_0x1ef878(0x249)]);const _0x45e2de={};_0x45e2de['type']=WS_EVENTS[_0x1ef878(0x2e4)],_0x45e2de[_0x1ef878(0x333)]=_0x49ff97[_0x1ef878(0x249)],webSocketUtils[_0x1ef878(0x2de)](_0x2b9944,_0x45e2de);if(_0x49ff97[_0x1ef878(0x2d0)](_0xac18e,_0x49ff97[_0x1ef878(0x214)])){const _0x1a4e43={};_0x1a4e43[_0x1ef878(0x1b8)]=_0x49ff97[_0x1ef878(0x31f)],_0x1a4e43[_0x1ef878(0x1ec)]=_0x49ff97['cPdvE'];const _0x2e9270={};_0x2e9270[_0x1ef878(0x21a)]=_0xac18e,_0x2e9270[_0x1ef878(0x2ba)]=_0x1a4e43;const _0x17c4c5={};_0x17c4c5[_0x1ef878(0x1fb)]=_0x2e9270;const _0x5b9701=_0x17c4c5,_0x29e186={};_0x29e186[_0x1ef878(0x211)]=_0x5b9701,await _0xd0e310['createNamespace'](_0x29e186),logger[_0x1ef878(0x21b)](_0x49ff97[_0x1ef878(0x2b9)]);}const _0x57ebfc={};_0x57ebfc[_0x1ef878(0x19e)]=WS_EVENTS['LOG'],_0x57ebfc[_0x1ef878(0x333)]=_0x49ff97[_0x1ef878(0x243)],webSocketUtils[_0x1ef878(0x2de)](_0x2b9944,_0x57ebfc);const _0x48b115={};_0x48b115[_0x1ef878(0x19e)]=WS_EVENTS[_0x1ef878(0x2e4)],_0x48b115[_0x1ef878(0x333)]=_0x49ff97['dazSG'],webSocketUtils[_0x1ef878(0x2de)](_0x2b9944,_0x48b115),logger[_0x1ef878(0x21b)](_0x49ff97[_0x1ef878(0x1f2)]);let _0x1d9521={};_0x49ff97[_0x1ef878(0x240)](_0x112f1d,AZURE)&&(_0x1d9521={'clientId':await _0x4ad4c5[_0x1ef878(0x2e0)](_0x1ef878(0x2f9)+_0x36dba0)});await _0x49ff97[_0x1ef878(0x239)](addGridComponents,_0xd0e310,_0x52b06e,_0x3b8e06,_0x468704,_0xac18e,_0x36dba0,_0x5ea513,_0x2459ff,_0x5884f6,_0x1d9521),_0x286bff=_0x49ff97['iUFfy'],logger[_0x1ef878(0x21b)](_0x286bff);const _0x1a4234={};_0x1a4234[_0x1ef878(0x19e)]=WS_EVENTS['LOG'],_0x1a4234[_0x1ef878(0x333)]=_0x286bff,webSocketUtils[_0x1ef878(0x2de)](_0x2b9944,_0x1a4234),_0x286bff=_0x49ff97[_0x1ef878(0x194)],logger[_0x1ef878(0x21b)](_0x286bff);const _0x243bee={};_0x243bee[_0x1ef878(0x19e)]=WS_EVENTS[_0x1ef878(0x2e4)],_0x243bee[_0x1ef878(0x333)]=_0x286bff,webSocketUtils[_0x1ef878(0x2de)](_0x2b9944,_0x243bee),await _0x49ff97[_0x1ef878(0x340)](waitForDeployment,_0x52b06e,_0xac18e,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x10fcfc=await _0x49ff97['bHtKe'](getNamespaceUID,_0xd0e310,_0xac18e),_0xaf8c9b=global_registry[_0x1ef878(0x33c)]?_0x49ff97[_0x1ef878(0x34d)]:_0x49ff97[_0x1ef878(0x1b1)],_0x502886={};_0x502886['name']=_0xaf8c9b,_0x502886['namespace']=_0x49ff97[_0x1ef878(0x294)];const _0x588de7=await _0xd0e310['readNamespacedService'](_0x502886);let _0x5bc366=_0x4ad4c5[_0x1ef878(0x28d)](_0x588de7)+'/'+_0xac18e,_0xb73306=_0x49ff97[_0x1ef878(0x191)];try{const _0x5f40e4='https://'+AG_API_URL+_0x1ef878(0x302)+_0x10fcfc,_0x8a366e=await _0x49ff97['vwrrw'](got,_0x5f40e4,_0x55ef68);(_0x49ff97[_0x1ef878(0x314)](_0x8a366e,null)||_0x49ff97[_0x1ef878(0x2c2)](_0x8a366e,undefined))&&(_0x286bff=_0x49ff97[_0x1ef878(0x220)],await _0x49ff97[_0x1ef878(0x2d4)](reportToGalactusAndSendToEDS,_0x496778,_0x2b9944,_0x286bff,messageTypes['ERROR'],_0x49ff97[_0x1ef878(0x2dc)],_0x49ff97[_0x1ef878(0x270)],_0x49ff97[_0x1ef878(0x195)]),logger[_0x1ef878(0x266)](_0x286bff),process[_0x1ef878(0x247)](0x1));_0x49ff97['yBUEV'](_0x8a366e[_0x1ef878(0x337)],0x191)&&(_0x286bff=_0x49ff97[_0x1ef878(0x1bc)],await _0x49ff97[_0x1ef878(0x23a)](reportToGalactusAndSendToEDS,_0x496778,_0x2b9944,_0x286bff,messageTypes[_0x1ef878(0x218)],_0x49ff97[_0x1ef878(0x2dc)],_0x49ff97['lxeGd'],_0x49ff97['DQETi']),logger['error'](_0x286bff),process['exit'](0x1));_0x49ff97[_0x1ef878(0x308)](_0x8a366e[_0x1ef878(0x337)],0xc8)&&(_0x286bff='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x1ef878(0x2e7)](_0x8a366e),await _0x49ff97[_0x1ef878(0x23a)](reportToGalactusAndSendToEDS,_0x496778,_0x2b9944,_0x286bff,messageTypes[_0x1ef878(0x218)],_0x49ff97[_0x1ef878(0x2dc)],_0x49ff97[_0x1ef878(0x1d0)],_0x49ff97['DQETi']),logger[_0x1ef878(0x266)](_0x286bff),process[_0x1ef878(0x247)](0x1));const _0x292340=JSON[_0x1ef878(0x312)](_0x8a366e[_0x1ef878(0x211)]);_0x292340['route53']&&(_0x5bc366=_0x292340['route53'],_0xb73306=_0x49ff97[_0x1ef878(0x27b)]),global_registry[_0x1ef878(0x33c)]&&(_0xb73306=_0x49ff97[_0x1ef878(0x191)]);}catch(_0x2e49f0){}_0x286bff=_0x1ef878(0x28b)+_0x5bc366+'\x20',logger[_0x1ef878(0x21b)](_0x286bff);const _0x50a906={};_0x50a906[_0x1ef878(0x19e)]=WS_EVENTS[_0x1ef878(0x2e4)],_0x50a906[_0x1ef878(0x333)]=_0x286bff,webSocketUtils[_0x1ef878(0x2de)](_0x2b9944,_0x50a906),_0x286bff='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0xb73306+_0x1ef878(0x226)+_0x5bc366+_0x1ef878(0x317),logger[_0x1ef878(0x21b)](_0x286bff);const _0x119164={};_0x119164[_0x1ef878(0x19e)]=WS_EVENTS[_0x1ef878(0x2e4)],_0x119164[_0x1ef878(0x333)]=_0x286bff,webSocketUtils[_0x1ef878(0x2de)](_0x2b9944,_0x119164);const _0x4fd6a8={};_0x4fd6a8['type']=WS_EVENTS['CLI_RUN_FINISHED'],_0x4fd6a8[_0x1ef878(0x333)]=_0x1ef878(0x27a)+_0x5bc366,webSocketUtils[_0x1ef878(0x2de)](_0x2b9944,_0x4fd6a8),await webSocketUtils['delay'](0x7d0);}catch(_0x316bc6){logger[_0x1ef878(0x266)](_0x1ef878(0x343)+_0x316bc6+'\x20\x0a'+JSON[_0x1ef878(0x2e7)](_0x316bc6[_0x1ef878(0x33e)]));if(_0x49ff97[_0x1ef878(0x2aa)](_0x20e6ff,![]))try{logger[_0x1ef878(0x21b)](_0x49ff97[_0x1ef878(0x331)]),await _0x49ff97[_0x1ef878(0x1b3)](removeGridComponents,_0xd0e310,_0x52b06e,_0x3b8e06,_0x468704,_0xac18e),await _0x4ad4c5[_0x1ef878(0x330)](_0xd0e310,global_registry[_0x1ef878(0x26d)]);}catch(_0x43aee3){logger[_0x1ef878(0x266)](_0x1ef878(0x225)+_0x43aee3+'\x20\x0a'+JSON[_0x1ef878(0x2e7)](_0x43aee3[_0x1ef878(0x33e)]));}throw _0x316bc6;}}catch(_0x3a4632){const _0x3a5632=_0x1ef878(0x1a1)+_0x3a4632+'\x20\x0a'+JSON[_0x1ef878(0x2e7)](_0x3a4632[_0x1ef878(0x33e)]);if(_0x2b9944){const _0x335b5c={};_0x335b5c[_0x1ef878(0x19e)]=WS_EVENTS[_0x1ef878(0x2e4)],_0x335b5c[_0x1ef878(0x333)]=_0x3a5632,webSocketUtils[_0x1ef878(0x2de)](_0x2b9944,_0x335b5c,_0x49ff97[_0x1ef878(0x195)],!![]);}await webSocketUtils[_0x1ef878(0x30a)](0x7d0);const _0x3b7e31={};_0x3b7e31[_0x1ef878(0x266)]=_0x3a5632,await _0x49ff97[_0x1ef878(0x1f8)](sendInstrumentationEvent,_0x496778,_0x49ff97['OFnnY'],messageTypes[_0x1ef878(0x218)],_0x49ff97[_0x1ef878(0x1e7)],_0x3b7e31,_0x496778),logger['error'](_0x3a5632);}process[_0x1ef878(0x247)](0x0);};
@@ -1 +1 @@
1
- const a10_0x1582b7=a10_0x44f0;function a10_0x44f0(_0x4fb621,_0x123fb4){const _0x343cb1=a10_0x343c();return a10_0x44f0=function(_0x44f003,_0xffb0ff){_0x44f003=_0x44f003-0x1bf;let _0x4da34b=_0x343cb1[_0x44f003];return _0x4da34b;},a10_0x44f0(_0x4fb621,_0x123fb4);}(function(_0x57eb45,_0x2c8052){const _0xc2e976=a10_0x44f0,_0x3f4143=_0x57eb45();while(!![]){try{const _0x2225c8=-parseInt(_0xc2e976(0x1c4))/0x1*(-parseInt(_0xc2e976(0x1d4))/0x2)+parseInt(_0xc2e976(0x1c0))/0x3+parseInt(_0xc2e976(0x1c8))/0x4+parseInt(_0xc2e976(0x1d6))/0x5*(parseInt(_0xc2e976(0x1c6))/0x6)+-parseInt(_0xc2e976(0x1c5))/0x7*(parseInt(_0xc2e976(0x1cb))/0x8)+-parseInt(_0xc2e976(0x1c9))/0x9+-parseInt(_0xc2e976(0x1c7))/0xa;if(_0x2225c8===_0x2c8052)break;else _0x3f4143['push'](_0x3f4143['shift']());}catch(_0x34b6de){_0x3f4143['push'](_0x3f4143['shift']());}}}(a10_0x343c,0x9281e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x1582b7(0x1d1));function a10_0x343c(){const _0x40312f=['5991630rhZLfi','2399380lNzdww','1071744PfbVNX','4276089qscKXX','handler','309736nAAwpR','help','demandCommand','recommendCommands','List\x20Grid\x20resources.','usage','../config/constants','strict','CPhMu','6EYeIbA','delete','5vxoQIO','delete_commands','674142WXpekk','desc','command','QfMXN','31639TOJvVv','49sjHbig'];a10_0x343c=function(){return _0x40312f;};return a10_0x343c();}exports[a10_0x1582b7(0x1c2)]=a10_0x1582b7(0x1d5),exports[a10_0x1582b7(0x1c1)]=a10_0x1582b7(0x1cf),exports['builder']=function(_0x3a0fe5){const _0x5537eb=a10_0x1582b7,_0x59dec7={};_0x59dec7[_0x5537eb(0x1d3)]=_0x5537eb(0x1bf),_0x59dec7[_0x5537eb(0x1c3)]=_0x5537eb(0x1cc);const _0x54751f=_0x59dec7;return _0x3a0fe5[_0x5537eb(0x1d0)](HELP_HEADER_MESSAGE[_0x5537eb(0x1d5)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x54751f[_0x5537eb(0x1d3)])[_0x5537eb(0x1cd)]()[_0x5537eb(0x1ce)]()[_0x5537eb(0x1d2)]()[_0x5537eb(0x1cc)](_0x54751f[_0x5537eb(0x1c3)]);},exports[a10_0x1582b7(0x1ca)]=function(_0x323987){};
1
+ const a10_0x5c5843=a10_0x5f00;(function(_0x155a72,_0x2b8d50){const _0xb61b28=a10_0x5f00,_0x2807a0=_0x155a72();while(!![]){try{const _0x21b0a6=parseInt(_0xb61b28(0xe8))/0x1+-parseInt(_0xb61b28(0xe9))/0x2*(-parseInt(_0xb61b28(0xdd))/0x3)+-parseInt(_0xb61b28(0xdc))/0x4+-parseInt(_0xb61b28(0xdb))/0x5+parseInt(_0xb61b28(0xe2))/0x6+parseInt(_0xb61b28(0xd8))/0x7+-parseInt(_0xb61b28(0xd9))/0x8;if(_0x21b0a6===_0x2b8d50)break;else _0x2807a0['push'](_0x2807a0['shift']());}catch(_0x17a9ef){_0x2807a0['push'](_0x2807a0['shift']());}}}(a10_0x3858,0x29b67));function a10_0x5f00(_0x15cffc,_0x11e4e5){const _0x38585b=a10_0x3858();return a10_0x5f00=function(_0x5f0062,_0x3366d4){_0x5f0062=_0x5f0062-0xd8;let _0x1eed90=_0x38585b[_0x5f0062];return _0x1eed90;},a10_0x5f00(_0x15cffc,_0x11e4e5);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a10_0x3858(){const _0x258559=['demandCommand','hyGbZ','List\x20Grid\x20resources.','recommendCommands','57032IAwQVj','384974GpqjtJ','commandDir','delete','strict','228025GLpoIi','140456PhvDJO','mNisY','168685aSQXSq','1092060RfPMFq','3ERbjQi','delete_commands','help','desc','command','1278420xKEdkR','epilogue'];a10_0x3858=function(){return _0x258559;};return a10_0x3858();}exports[a10_0x5c5843(0xe1)]=a10_0x5c5843(0xeb),exports[a10_0x5c5843(0xe0)]=a10_0x5c5843(0xe6),exports['builder']=function(_0x44cd16){const _0x3d3b8c=a10_0x5c5843,_0x48c114={};_0x48c114[_0x3d3b8c(0xe5)]=_0x3d3b8c(0xde),_0x48c114[_0x3d3b8c(0xda)]=_0x3d3b8c(0xdf);const _0x5b421b=_0x48c114;return _0x44cd16['usage'](HELP_HEADER_MESSAGE[_0x3d3b8c(0xeb)])[_0x3d3b8c(0xe3)](HELP_FOOTER_MESSAGE)[_0x3d3b8c(0xea)](_0x5b421b[_0x3d3b8c(0xe5)])[_0x3d3b8c(0xe4)]()[_0x3d3b8c(0xe7)]()[_0x3d3b8c(0xec)]()['help'](_0x5b421b[_0x3d3b8c(0xda)]);},exports['handler']=function(_0x42c0af){};
@@ -1 +1 @@
1
- function a11_0x4fb6(){const _0x100d69=['LBHZP','gridId','htaHe','fpjdL','Evrsv','UgNfj','LxVog','sHOLI','\x22\x20with\x20ID\x20','tJsMx','password','../../utils/webSocketUtils','Successfully\x20deleted\x20the\x20grid','cloudProvider','boolean','IZSEP','BhEpJ','help','requestId','NCfGP','../../cloudproviders/utils','QIurV','4196521kYLIfC','delete-grid-called','yIGeD','fNvEw','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','3733734wxcWhw','NlVBI','readNamespace','info','tMXZf','fhEqf','description','options','../../utils/createk8sClient','onlyGridInCluster','izOIL','desc','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','../../utils/utilityMethods','clusterName','unauthorised','toLowerCase','jycWn','<PasswordPlaceholder>','XNrXj','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Failed\x20to\x20delete\x20resources!\x20Error:\x20','reconnecting-websocket','isClusterPresent','mWBDP','builder','string','INFO','lrcyz','KYZZN','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','name','replace','MrFQY','body','../../utils/gridComponents','argv','Cluster:\x20','\x22\x20and\x20ID\x20','type','username','pOdTx','grid-id','1593384DnSTPX','got','Delete\x20an\x20Automation\x20grid.','NunSo','IQzBZ','1270190imlWau','stringify','CzhVY','AIkBV','15958962ebqIvM','Browserstack','jYYRG','parse','unknown-error','kKPcQ','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','16fziQLC','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','168VbsONn','delete','statusCode','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','iFYiy','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','../../config/logger','ADeMj','invalid-grid-id','error','cYDGY','Pass\x20the\x20ID\x20of\x20the\x20Grid','928458UIzLGJ','ERROR','clusterRegion','WWDaa','rBQbo','5420iFGdEN','iblak','stack','Skip\x20insecure\x20cert\x20verification.','himaO','kYhkT','AOTeT','EPxAl','warn','yoeZp','bkwTc','IvfzV','../../utils/userInput','existsSync','cdOeH','init-not-called','usage','hOWkr','wKoby','command','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','deobQ','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','RfQSq','vKmQh','XGXEq','handler','xkAhs','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','lSjqC','Namespace:\x20','tXkPE','default','epilogue','iODLX','exit','skip-tls-cert-verify','region','clusterSpawnedVia','UAZQm','NexqK','grid','then','isBrowserstackCluster','zEwYo'];a11_0x4fb6=function(){return _0x100d69;};return a11_0x4fb6();}function a11_0x5156(_0x3aed68,_0x4a05e0){const _0x4fb638=a11_0x4fb6();return a11_0x5156=function(_0x515680,_0xa4f883){_0x515680=_0x515680-0x69;let _0x46eeac=_0x4fb638[_0x515680];return _0x46eeac;},a11_0x5156(_0x3aed68,_0x4a05e0);}const a11_0x4ceb61=a11_0x5156;(function(_0x452df5,_0x2c06f9){const _0x35d598=a11_0x5156,_0x32f719=_0x452df5();while(!![]){try{const _0x4896b4=parseInt(_0x35d598(0xac))/0x1*(-parseInt(_0x35d598(0xbd))/0x2)+-parseInt(_0x35d598(0xb8))/0x3+parseInt(_0x35d598(0xaa))/0x4*(parseInt(_0x35d598(0x9f))/0x5)+-parseInt(_0x35d598(0x6e))/0x6+-parseInt(_0x35d598(0x69))/0x7+-parseInt(_0x35d598(0x9a))/0x8+parseInt(_0x35d598(0xa3))/0x9;if(_0x4896b4===_0x2c06f9)break;else _0x32f719['push'](_0x32f719['shift']());}catch(_0x111aea){_0x32f719['push'](_0x32f719['shift']());}}}(a11_0x4fb6,0x935f7));const fs=require('fs'),got=require(a11_0x4ceb61(0x9b)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require(a11_0x4ceb61(0x84)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require(a11_0x4ceb61(0xb2)),{getCloudProviderObject}=require(a11_0x4ceb61(0xff)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x4ceb61(0x92)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require(a11_0x4ceb61(0xc9)),{createK8sClient}=require(a11_0x4ceb61(0x76)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x4ceb61(0x7b)),webSocketUtils=require(a11_0x4ceb61(0xf6));exports[a11_0x4ceb61(0xd0)]=a11_0x4ceb61(0xe7),exports[a11_0x4ceb61(0x79)]=a11_0x4ceb61(0x9c),exports[a11_0x4ceb61(0x87)]=function(_0x31414d){const _0x203a23=a11_0x4ceb61,_0x53686b={};_0x53686b['ADeMj']=_0x203a23(0xb7),_0x53686b[_0x203a23(0xa8)]=_0x203a23(0x88),_0x53686b[_0x203a23(0x8b)]=_0x203a23(0xc0),_0x53686b[_0x203a23(0xbe)]=_0x203a23(0xf9),_0x53686b['IZSEP']=_0x203a23(0xfc);const _0x3589b4=_0x53686b,_0x977a6b={};_0x977a6b[_0x203a23(0x74)]=_0x3589b4[_0x203a23(0xb3)],_0x977a6b['type']=_0x3589b4[_0x203a23(0xa8)];const _0x142fe5={};_0x142fe5[_0x203a23(0x74)]=_0x3589b4[_0x203a23(0x8b)],_0x142fe5['type']=_0x3589b4['iblak'],_0x142fe5['default']=![];const _0x5458fa={};return _0x5458fa['grid-id']=_0x977a6b,_0x5458fa['skip-tls-cert-verify']=_0x142fe5,_0x31414d['usage'](HELP_HEADER_MESSAGE[_0x203a23(0xad)])[_0x203a23(0xdf)](HELP_FOOTER_MESSAGE)[_0x203a23(0x75)](_0x5458fa)['help'](_0x3589b4[_0x203a23(0xfa)])[_0x203a23(0x93)];},exports[a11_0x4ceb61(0xd8)]=async function(_0xa4399e){const _0x57c9af=a11_0x4ceb61,_0x3f8450={'rBQbo':_0x57c9af(0xb7),'XNrXj':_0x57c9af(0x88),'htaHe':_0x57c9af(0xc0),'mWBDP':_0x57c9af(0xf9),'LBHZP':_0x57c9af(0xfc),'AIkBV':_0x57c9af(0xb1),'UgNfj':function(_0x16e2f6,_0x18a133){return _0x16e2f6!==_0x18a133;},'LxVog':_0x57c9af(0x90),'iODLX':_0x57c9af(0xd9),'bkwTc':_0x57c9af(0xd4),'NunSo':_0x57c9af(0xc3),'zEwYo':_0x57c9af(0xf7),'pLLBF':function(_0x7c250c){return _0x7c250c();},'kYhkT':'nVdMX','XGXEq':_0x57c9af(0xaf),'Evrsv':function(_0x2dd371,_0x3ee6dc,_0x46e582,_0x13b879,_0x4c312b,_0x182727,_0x35c60d){return _0x2dd371(_0x3ee6dc,_0x46e582,_0x13b879,_0x4c312b,_0x182727,_0x35c60d);},'RfQSq':_0x57c9af(0x6a),'fpjdL':_0x57c9af(0xcc),'NCfGP':function(_0x4bf940,_0x167997){return _0x4bf940===_0x167997;},'idvgK':'LZOnw','izOIL':_0x57c9af(0xa5),'EWCtl':function(_0x24466e,_0x4e0be7,_0x1a1c0b,_0x2fe3a8){return _0x24466e(_0x4e0be7,_0x1a1c0b,_0x2fe3a8);},'cdOeH':function(_0x242e64,_0x263a47){return _0x242e64===_0x263a47;},'XXySt':_0x57c9af(0xa4),'HhUvW':function(_0x402eca,_0x2cf544){return _0x402eca===_0x2cf544;},'BhEpJ':'ATsdf','QIurV':function(_0x353f21,_0x3f9817){return _0x353f21(_0x3f9817);},'tJsMx':function(_0x4d90e9,_0x36e2ff){return _0x4d90e9===_0x36e2ff;},'WWDaa':function(_0x3395a1,_0x325126){return _0x3395a1===_0x325126;},'NexqK':function(_0x76aa10,_0x31550d){return _0x76aa10===_0x31550d;},'yIGeD':_0x57c9af(0xc1),'wCqzL':_0x57c9af(0xce),'deobQ':_0x57c9af(0x82),'fhEqf':'invalid-input','eDRLJ':_0x57c9af(0xb6),'lrcyz':'<UsernamePlaceholder>','IQzBZ':_0x57c9af(0x80),'BXdYv':function(_0x3437b6,_0x30b1cf,_0x2fdef5){return _0x3437b6(_0x30b1cf,_0x2fdef5);},'lSjqC':function(_0x5f1b58,_0x3462be,_0x3b2660,_0x44c247,_0x7d0ef8,_0x29b3b0){return _0x5f1b58(_0x3462be,_0x3b2660,_0x44c247,_0x7d0ef8,_0x29b3b0);},'vKmQh':_0x57c9af(0xa1),'tXkPE':_0x57c9af(0xe5),'pFeUI':_0x57c9af(0x72),'wKoby':'DELETE','iFYiy':function(_0x5565e7,_0x4c3688,_0x1481bc){return _0x5565e7(_0x4c3688,_0x1481bc);},'qFSeg':function(_0x4bf0a8,_0xbd5c08){return _0x4bf0a8!==_0xbd5c08;},'EPxAl':function(_0x405282,_0x3d4d18){return _0x405282!==_0x3d4d18;},'jycWn':function(_0x3be6ae,_0x41938f){return _0x3be6ae===_0x41938f;},'yoeZp':'server-error','vHSxr':function(_0x29e04d,_0x5ec647){return _0x29e04d===_0x5ec647;},'sHOLI':_0x57c9af(0xa9),'fNvEw':_0x57c9af(0x7d),'pOdTx':function(_0xc59551,_0x39a38a){return _0xc59551===_0x39a38a;},'IvfzV':_0x57c9af(0xb4),'FEIUe':function(_0x37c1bb,_0x4d1d58,_0xcd9817,_0x26d6f2,_0x20c39b,_0x480e91,_0x3d0805){return _0x37c1bb(_0x4d1d58,_0xcd9817,_0x26d6f2,_0x20c39b,_0x480e91,_0x3d0805);},'NlVBI':_0x57c9af(0xa7)};try{global_registry[_0x57c9af(0xfd)]=_0x3f8450['pLLBF'](uuidv4);!fs[_0x57c9af(0xca)](_0x3f8450['pLLBF'](getCredentialsPath))&&(_0x3f8450[_0x57c9af(0xf0)](_0x3f8450[_0x57c9af(0xc2)],_0x3f8450[_0x57c9af(0xc2)])?(_0x4ddfd5[_0x57c9af(0xc5)]('Namespace:\x20'+_0x233c2d+_0x57c9af(0xab)),_0x4e1984=![]):(console[_0x57c9af(0xb5)](_0x3f8450[_0x57c9af(0xd7)]),await _0x3f8450[_0x57c9af(0xef)](sendInstrumentationEvent,_0xa4399e,_0x3f8450[_0x57c9af(0xd5)],messageTypes[_0x57c9af(0xb9)],_0x3f8450[_0x57c9af(0xee)],null,_0xa4399e),process[_0x57c9af(0xe1)](0x1)));_0x3f8450[_0x57c9af(0xef)](sendInstrumentationEvent,_0xa4399e,_0x3f8450['RfQSq'],messageTypes[_0x57c9af(0x89)],null,null,_0xa4399e);if(!_0xa4399e[_0x57c9af(0xec)]){if(_0x3f8450[_0x57c9af(0xfe)](_0x3f8450['idvgK'],_0x3f8450[_0x57c9af(0x78)])){const _0x7f87ed={};_0x7f87ed[_0x57c9af(0x74)]=_0x3f8450[_0x57c9af(0xbc)],_0x7f87ed[_0x57c9af(0x96)]=_0x3f8450[_0x57c9af(0x81)];const _0x41c812={};_0x41c812[_0x57c9af(0x74)]=_0x3f8450[_0x57c9af(0xed)],_0x41c812['type']=_0x3f8450[_0x57c9af(0x86)],_0x41c812[_0x57c9af(0xde)]=![];const _0x1be952={};return _0x1be952[_0x57c9af(0x99)]=_0x7f87ed,_0x1be952[_0x57c9af(0xe2)]=_0x41c812,_0x188c9f[_0x57c9af(0xcd)](_0x3362fb[_0x57c9af(0xad)])[_0x57c9af(0xdf)](_0x2331af)[_0x57c9af(0x75)](_0x1be952)[_0x57c9af(0xfc)](_0x3f8450[_0x57c9af(0xeb)])[_0x57c9af(0x93)];}else console[_0x57c9af(0xb5)](_0x3f8450['bkwTc']),process[_0x57c9af(0xe1)](0x1);}const _0x3d1063=JSON[_0x57c9af(0xa6)](fs['readFileSync'](_0x3f8450['pLLBF'](getCredentialsPath))),[_0x450d8d,_0x5814d5]=await _0x3f8450['EWCtl'](getGridDetails,_0x3d1063[_0x57c9af(0xa4)][_0x57c9af(0x97)],_0x3d1063['Browserstack'][_0x57c9af(0xf5)],_0xa4399e['gridId']);if(_0x5814d5){const _0x37ba86=_0x5814d5[_0x57c9af(0x71)];let _0x101197=_0x57c9af(0x7a)+_0x37ba86['name']+'\x22\x20and\x20ID\x20'+_0x37ba86['id']+_0x57c9af(0x8c);_0x5814d5[_0x57c9af(0x77)]&&_0x3f8450[_0x57c9af(0xcb)](_0x5814d5[_0x57c9af(0xe4)],_0x3f8450['XXySt'])&&(_0x3f8450['HhUvW'](_0x3f8450['BhEpJ'],_0x3f8450[_0x57c9af(0xfb)])?_0x101197=_0x57c9af(0x7a)+_0x37ba86[_0x57c9af(0x8e)]+_0x57c9af(0x95)+_0x37ba86['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x37ba86[_0x57c9af(0x7c)]+_0x57c9af(0xf3)+_0x37ba86['clusterId']+_0x57c9af(0x8c):_0x2abb1a[_0x57c9af(0xc5)](_0x57c9af(0x94)+_0x3a0791['clusterName']+_0x57c9af(0xd1)));const _0x1d538f=await _0x3f8450[_0x57c9af(0x100)](inputConfirmation,_0x101197);(_0x3f8450[_0x57c9af(0xf4)](_0x1d538f,undefined)||_0x3f8450['WWDaa'](_0x1d538f,null)||!(_0x3f8450[_0x57c9af(0xe6)](_0x1d538f['toLowerCase'](),'y')||_0x3f8450[_0x57c9af(0xfe)](_0x1d538f[_0x57c9af(0x7e)](),'n')))&&(_0x3f8450[_0x57c9af(0xf4)](_0x3f8450[_0x57c9af(0x6b)],_0x3f8450['wCqzL'])?_0x2fab09['exit'](0x0):(console['error'](_0x3f8450[_0x57c9af(0xd3)]),await _0x3f8450[_0x57c9af(0xef)](sendInstrumentationEvent,_0xa4399e,_0x3f8450[_0x57c9af(0xd5)],messageTypes[_0x57c9af(0xb9)],_0x3f8450[_0x57c9af(0x73)],null,_0xa4399e),process[_0x57c9af(0xe1)](0x1)));_0x3f8450[_0x57c9af(0xbb)](_0x1d538f['toLowerCase'](),'n')&&(_0x3f8450[_0x57c9af(0xfe)](_0x3f8450['eDRLJ'],_0x3f8450['eDRLJ'])?process[_0x57c9af(0xe1)](0x0):_0x244f00=_0x57c9af(0x7a)+_0x4be5e1[_0x57c9af(0x8e)]+_0x57c9af(0x95)+_0x2d8b25['id']+_0x57c9af(0x8d)+_0x44beed['clusterName']+_0x57c9af(0xf3)+_0x378758['clusterId']+_0x57c9af(0x8c));const _0x6b053e=WS_ENDPOINT[_0x57c9af(0x8f)](_0x3f8450[_0x57c9af(0x8a)],_0x3d1063[_0x57c9af(0xa4)]['username'])[_0x57c9af(0x8f)](_0x3f8450[_0x57c9af(0x9e)],_0x3d1063[_0x57c9af(0xa4)][_0x57c9af(0xf5)]),_0x292faf={};_0x292faf['WebSocket']=ws,_0x292faf['connectionTimeout']=0x36ee80;const _0x5b3e0f=new ReconnectingWebSocket(_0x6b053e,[],_0x292faf);global_registry[_0x57c9af(0xba)]=_0x37ba86[_0x57c9af(0xe3)];const _0x22f3f2=_0x37ba86[_0x57c9af(0xf8)],_0x28455a=await _0x3f8450[_0x57c9af(0xef)](getCloudProviderObject,_0x22f3f2,_0x37ba86[_0x57c9af(0x7c)],_0x37ba86[_0x57c9af(0x8e)],_0x5b3e0f,webSocketUtils,_0xa4399e),_0x19eb79=await _0x28455a[_0x57c9af(0x85)]();if(_0x19eb79){const _0x58539a=_0x3f8450[_0x57c9af(0x100)](kebabCase,_0x37ba86[_0x57c9af(0x8e)]),[_0x142f01,_0x51a260,_0x146125,_0x597fd0,_0x570f68,_0x1ab588]=await _0x3f8450['BXdYv'](createK8sClient,_0x28455a,_0xa4399e['skipTlsCertVerify']);let _0x3c8c6b=!![];const _0x4ef742={};_0x4ef742[_0x57c9af(0x8e)]=_0x58539a,await _0x142f01[_0x57c9af(0x70)](_0x4ef742)[_0x57c9af(0xe8)](_0x478b2a=>{const _0x2fa455=_0x57c9af;_0x3f8450[_0x2fa455(0xf0)](_0x3f8450[_0x2fa455(0xf1)],_0x3f8450[_0x2fa455(0xe0)])?logger[_0x2fa455(0x71)]('Namespace:\x20'+_0x58539a+_0x2fa455(0x6d)):_0x404519[_0x2fa455(0xc5)](_0x3f8450[_0x2fa455(0xa2)]);})['catch'](_0x568ac5=>{const _0xa7567a=_0x57c9af;_0x3f8450[_0xa7567a(0xf0)](_0x3f8450[_0xa7567a(0x9d)],_0x3f8450[_0xa7567a(0x9d)])?(_0x2b6d9d[_0xa7567a(0xb5)](_0x3f8450[_0xa7567a(0xc7)]),_0x584173['exit'](0x1)):(logger[_0xa7567a(0xc5)](_0xa7567a(0xdc)+_0x58539a+_0xa7567a(0xab)),_0x3c8c6b=![]);});if(_0x3c8c6b){await _0x3f8450[_0x57c9af(0xdb)](removeGridComponents,_0x142f01,_0x51a260,_0x146125,_0x597fd0,_0x58539a);if(_0x5814d5[_0x57c9af(0x77)]){const _0xb33bd0=await _0x28455a[_0x57c9af(0xe9)]();_0xb33bd0?_0x3f8450[_0x57c9af(0xbb)](_0x3f8450['vKmQh'],_0x3f8450[_0x57c9af(0xd6)])?await _0x28455a['deleteCluster'](_0x142f01,_0x37ba86['region']):_0x314ba2[_0x57c9af(0x71)]('Namespace:\x20'+_0xd6379d+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'):_0x3f8450[_0x57c9af(0xf0)](_0x3f8450[_0x57c9af(0xdd)],_0x3f8450['pFeUI'])?logger[_0x57c9af(0xc5)]('Cluster:\x20'+_0x37ba86[_0x57c9af(0x7c)]+_0x57c9af(0xd1)):(_0x58c08c[_0x57c9af(0x71)](_0x3f8450[_0x57c9af(0xea)]),_0x46c6d1['exit'](0x0));}}}else logger[_0x57c9af(0xc5)](_0x3f8450['AIkBV']);const _0x2a1809='https://'+AG_API_URL+'/packages/cli/grid/'+_0xa4399e[_0x57c9af(0xec)],_0x49211e={'method':_0x3f8450[_0x57c9af(0xcf)],'headers':_0x3f8450['BXdYv'](getAuthHeader,_0x3d1063[_0x57c9af(0xa4)][_0x57c9af(0x97)],_0x3d1063[_0x57c9af(0xa4)][_0x57c9af(0xf5)]),'throwHttpErrors':![]},_0x4432ca=await _0x3f8450[_0x57c9af(0xb0)](got,_0x2a1809,_0x49211e);_0x3f8450['qFSeg'](_0x4432ca,null)&&_0x3f8450[_0x57c9af(0xc4)](_0x4432ca,undefined)&&_0x3f8450[_0x57c9af(0x7f)](_0x4432ca['statusCode'],0xc8)&&(logger[_0x57c9af(0x71)](_0x3f8450[_0x57c9af(0xea)]),process[_0x57c9af(0xe1)](0x0)),logger['error'](_0x57c9af(0xda)+_0x4432ca[_0x57c9af(0x91)]),await _0x3f8450[_0x57c9af(0xef)](sendInstrumentationEvent,_0xa4399e,_0x3f8450['RfQSq'],messageTypes[_0x57c9af(0xb9)],_0x3f8450[_0x57c9af(0xc6)],_0x450d8d,_0xa4399e),process[_0x57c9af(0xe1)](0x1);}_0x3f8450['vHSxr'](_0x450d8d[_0x57c9af(0xae)],0x191)&&(logger[_0x57c9af(0xb5)](_0x3f8450[_0x57c9af(0xf2)]),await _0x3f8450[_0x57c9af(0xef)](sendInstrumentationEvent,_0xa4399e,_0x3f8450[_0x57c9af(0xd5)],messageTypes[_0x57c9af(0xb9)],_0x3f8450[_0x57c9af(0x6c)],null,_0xa4399e),process['exit'](0x1)),_0x3f8450[_0x57c9af(0x98)](_0x450d8d[_0x57c9af(0xae)],0x190)&&(logger[_0x57c9af(0xb5)](JSON[_0x57c9af(0xa6)](_0x450d8d[_0x57c9af(0x91)])['message']),await _0x3f8450['Evrsv'](sendInstrumentationEvent,_0xa4399e,_0x3f8450[_0x57c9af(0xd5)],messageTypes[_0x57c9af(0xb9)],_0x3f8450[_0x57c9af(0xc8)],null,_0xa4399e),process[_0x57c9af(0xe1)](0x1)),logger[_0x57c9af(0xb5)](_0x57c9af(0xd2)+JSON[_0x57c9af(0xa0)](_0x450d8d)),await _0x3f8450['FEIUe'](sendInstrumentationEvent,_0xa4399e,_0x3f8450['RfQSq'],messageTypes[_0x57c9af(0xb9)],_0x3f8450[_0x57c9af(0xc6)],_0x450d8d,_0xa4399e),process[_0x57c9af(0xe1)](0x1);}catch(_0x2ef0b8){logger['error'](_0x57c9af(0x83)+_0x2ef0b8[_0x57c9af(0xbf)]),await _0x3f8450['FEIUe'](sendInstrumentationEvent,_0xa4399e,_0x3f8450[_0x57c9af(0xd5)],messageTypes[_0x57c9af(0xb9)],_0x3f8450[_0x57c9af(0x6f)],_0x2ef0b8,_0xa4399e),process[_0x57c9af(0xe1)](0x1);}};
1
+ const a11_0x49307c=a11_0x417d;function a11_0x417d(_0xeb2f2e,_0x4c8422){const _0xaf0827=a11_0xaf08();return a11_0x417d=function(_0x417dfc,_0x50ad59){_0x417dfc=_0x417dfc-0x1e8;let _0x1cde09=_0xaf0827[_0x417dfc];return _0x1cde09;},a11_0x417d(_0xeb2f2e,_0x4c8422);}(function(_0x52c010,_0x42b683){const _0x217975=a11_0x417d,_0x442394=_0x52c010();while(!![]){try{const _0x528e11=parseInt(_0x217975(0x20c))/0x1*(parseInt(_0x217975(0x223))/0x2)+parseInt(_0x217975(0x262))/0x3+parseInt(_0x217975(0x27a))/0x4+parseInt(_0x217975(0x21d))/0x5+-parseInt(_0x217975(0x27c))/0x6+parseInt(_0x217975(0x246))/0x7*(-parseInt(_0x217975(0x22a))/0x8)+parseInt(_0x217975(0x279))/0x9;if(_0x528e11===_0x42b683)break;else _0x442394['push'](_0x442394['shift']());}catch(_0x2d6c51){_0x442394['push'](_0x442394['shift']());}}}(a11_0xaf08,0x72de5));const fs=require('fs'),got=require(a11_0x49307c(0x20a)),{v4:uuidv4}=require(a11_0x49307c(0x270)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x49307c(0x1fb)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x49307c(0x24b)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x49307c(0x1fe)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require(a11_0x49307c(0x1ef)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods'),webSocketUtils=require(a11_0x49307c(0x26f));function a11_0xaf08(){const _0x23c98d=['invalid-grid-id','reconnecting-websocket','VRnNY','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','../../utils/gridComponents','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','Successfully\x20deleted\x20the\x20grid','wqrQF','gridId','warn','Skip\x20insecure\x20cert\x20verification.','username','parse','usage','TbYTC','got','gsJOF','5kYAgEq','grid-id','nKwij','name','description','connectionTimeout','rHrdP','rQytr','clusterName','argv','NvCRw','hhwto','iqktM','PDGCe','bXVDK','existsSync','jzfOH','3599225DSwhgT','wKtLY','nwref','IlCme','body','rRzGD','340596TIVHoY','KTNPR','epilogue','rOWkn','nWWWH','exit','LEvSK','7084648nyorcG','Pass\x20the\x20ID\x20of\x20the\x20Grid','cXcFw','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','error','tcXWj','DELETE','https://','IRpch','OBjXp','SMTYy','fkVFF','cloudProvider','MLpwo','statusCode','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','type','builder','options','\x22\x20and\x20ID\x20','info','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','irOVB','XLanF','oqeYo','string','readNamespace','delete','7ivubYX','Failed\x20to\x20delete\x20resources!\x20Error:\x20','wKTie','GBZpE','onlyGridInCluster','../../cloudproviders/utils','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','XuOHk','skip-tls-cert-verify','Cluster:\x20','QlXZS','ONZOl','xfbYK','/packages/cli/grid/','help','fqhHT','abDln','<UsernamePlaceholder>','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','password','catch','dlGio','skipTlsCertVerify','HttWr','cvzOX','unknown-error','Namespace:\x20','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','571086esWbSu','IgtQn','kPAYt','fIpNi','clusterId','default','AsvXe','<PasswordPlaceholder>','WebSocket','YyaFf','delete-grid-called','BXxwu','Browserstack','../../utils/webSocketUtils','uuid','ERROR','wfaVx','toLowerCase','clusterRegion','isBrowserstackCluster','server-error','fqmtO','invalid-input','1306188rjsQvj','745948DoCBRn','message','4423404PXJAMf','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','YiQhx','handler','region','qwjJK','yiXwd','GsFEX','../../utils/userInput','RJrFX','mLMkm','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','cxUPJ','HuCAf','iETDz','clusterSpawnedVia','JbOWV','Delete\x20an\x20Automation\x20grid.','vgcEB'];a11_0xaf08=function(){return _0x23c98d;};return a11_0xaf08();}exports['command']='grid',exports['desc']=a11_0x49307c(0x1f8),exports[a11_0x49307c(0x23b)]=function(_0x8f6be8){const _0x56333f=a11_0x49307c,_0x59a63f={};_0x59a63f['SMTYy']=_0x56333f(0x22b),_0x59a63f[_0x56333f(0x21a)]='string',_0x59a63f[_0x56333f(0x1f4)]='Skip\x20insecure\x20cert\x20verification.',_0x59a63f['IlCme']='boolean',_0x59a63f['YyaFf']=_0x56333f(0x254);const _0x397993=_0x59a63f,_0x12e3f5={};_0x12e3f5[_0x56333f(0x210)]=_0x397993[_0x56333f(0x234)],_0x12e3f5[_0x56333f(0x23a)]=_0x397993['bXVDK'];const _0x16f5f8={};_0x16f5f8[_0x56333f(0x210)]=_0x397993[_0x56333f(0x1f4)],_0x16f5f8[_0x56333f(0x23a)]=_0x397993[_0x56333f(0x220)],_0x16f5f8[_0x56333f(0x267)]=![];const _0x284dc0={};return _0x284dc0[_0x56333f(0x20d)]=_0x12e3f5,_0x284dc0[_0x56333f(0x24e)]=_0x16f5f8,_0x8f6be8['usage'](HELP_HEADER_MESSAGE[_0x56333f(0x245)])[_0x56333f(0x225)](HELP_FOOTER_MESSAGE)[_0x56333f(0x23c)](_0x284dc0)[_0x56333f(0x254)](_0x397993[_0x56333f(0x26b)])['argv'];},exports[a11_0x49307c(0x1ea)]=async function(_0x122562){const _0x78f913=a11_0x49307c,_0x547ce4={'QlXZS':_0x78f913(0x201),'rQytr':_0x78f913(0x1f2),'RGTFX':_0x78f913(0x22b),'nwref':_0x78f913(0x243),'BtdgU':_0x78f913(0x205),'GsFEX':'boolean','nKwij':'help','VRnNY':_0x78f913(0x200),'rHrdP':function(_0x774660,_0x8d3994){return _0x774660!==_0x8d3994;},'fqhHT':_0x78f913(0x248),'HttWr':function(_0x321333,_0x411ef4){return _0x321333!==_0x411ef4;},'KTNPR':_0x78f913(0x209),'qwjJK':function(_0x23da74){return _0x23da74();},'rOWkn':function(_0x4b62dc,_0x2f08f3){return _0x4b62dc===_0x2f08f3;},'mxPZY':'BGBDN','waQzq':_0x78f913(0x237),'oqeYo':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','GBZpE':function(_0x5c527b,_0x20e0c1,_0x6491ae,_0x2176c2,_0x34f732,_0x50b9f1,_0x3cdcce){return _0x5c527b(_0x20e0c1,_0x6491ae,_0x2176c2,_0x34f732,_0x50b9f1,_0x3cdcce);},'ONZOl':_0x78f913(0x26c),'RJrFX':'init-not-called','iETDz':function(_0x4b1c45,_0x192d65,_0x311a83,_0x226685,_0x2f78b3,_0x10b4de,_0x374e92){return _0x4b1c45(_0x192d65,_0x311a83,_0x226685,_0x2f78b3,_0x10b4de,_0x374e92);},'nWWWH':'dgIBa','tcXWj':function(_0x22afd6){return _0x22afd6();},'abDln':function(_0x2e8aad,_0x24b4ce,_0x144057,_0x54f87e){return _0x2e8aad(_0x24b4ce,_0x144057,_0x54f87e);},'cxUPJ':'Browserstack','OBjXp':_0x78f913(0x1e9),'yiXwd':function(_0x5ef589,_0x5f18d8){return _0x5ef589(_0x5f18d8);},'PDGCe':function(_0x5ef4ae,_0x4468ea){return _0x5ef4ae===_0x4468ea;},'gsJOF':function(_0x3c3b2a,_0x459b79){return _0x3c3b2a===_0x459b79;},'jzfOH':_0x78f913(0x21e),'dlGio':_0x78f913(0x24c),'rRzGD':_0x78f913(0x278),'pnzid':function(_0xcb7891,_0x40e650){return _0xcb7891===_0x40e650;},'irOVB':function(_0x31c337,_0x2e0231){return _0x31c337!==_0x2e0231;},'cXcFw':_0x78f913(0x277),'wfaVx':_0x78f913(0x257),'IgtQn':_0x78f913(0x269),'AsvXe':function(_0x1d7d23,_0x5345a2,_0x10d873,_0x52efc1,_0x2d1fe5,_0xffd8b6,_0x103d92){return _0x1d7d23(_0x5345a2,_0x10d873,_0x52efc1,_0x2d1fe5,_0xffd8b6,_0x103d92);},'YMRMo':function(_0x119f43,_0x61fba9,_0x53cd87){return _0x119f43(_0x61fba9,_0x53cd87);},'iqktM':function(_0x494ebf,_0x38379b,_0x193fb7,_0x4d333f,_0x4d7a69,_0x5f4fa6){return _0x494ebf(_0x38379b,_0x193fb7,_0x4d333f,_0x4d7a69,_0x5f4fa6);},'hhwto':_0x78f913(0x235),'XLanF':_0x78f913(0x1f1),'XuOHk':function(_0xc543fc,_0x7f0d29){return _0xc543fc!==_0x7f0d29;},'LEvSK':_0x78f913(0x265),'zlpkf':_0x78f913(0x230),'cRoTR':function(_0x45fc4b,_0x3e93f8,_0x2da73d){return _0x45fc4b(_0x3e93f8,_0x2da73d);},'IRpch':function(_0x380236,_0x788bcc){return _0x380236===_0x788bcc;},'kPAYt':function(_0x385ead,_0x5ef9ec,_0x294602,_0x4b91eb,_0x107809,_0xaf1d6b,_0x4fb13f){return _0x385ead(_0x5ef9ec,_0x294602,_0x4b91eb,_0x107809,_0xaf1d6b,_0x4fb13f);},'NvCRw':_0x78f913(0x276),'BXxwu':_0x78f913(0x22d),'xfbYK':'unauthorised','wqrQF':function(_0x3c189d,_0xcad5df,_0x1fb343,_0x264319,_0x4550ba,_0x134564,_0x2f75ec){return _0x3c189d(_0xcad5df,_0x1fb343,_0x264319,_0x4550ba,_0x134564,_0x2f75ec);},'vgcEB':_0x78f913(0x1fa),'JbOWV':function(_0x53b776,_0x5166f7,_0x3b4230,_0x43d53c,_0x475107,_0x4a9c5f,_0x3a3027){return _0x53b776(_0x5166f7,_0x3b4230,_0x43d53c,_0x475107,_0x4a9c5f,_0x3a3027);},'cvzOX':_0x78f913(0x25f)};try{global_registry['requestId']=_0x547ce4[_0x78f913(0x1ec)](uuidv4);!fs[_0x78f913(0x21b)](_0x547ce4[_0x78f913(0x1ec)](getCredentialsPath))&&(_0x547ce4[_0x78f913(0x226)](_0x547ce4['mxPZY'],_0x547ce4['waQzq'])?(_0xce4457[_0x78f913(0x23e)](_0x547ce4[_0x78f913(0x250)]),_0x207d1e['exit'](0x0)):(console[_0x78f913(0x22e)](_0x547ce4[_0x78f913(0x242)]),await _0x547ce4[_0x78f913(0x249)](sendInstrumentationEvent,_0x122562,_0x547ce4[_0x78f913(0x251)],messageTypes[_0x78f913(0x271)],_0x547ce4[_0x78f913(0x1f0)],null,_0x122562),process[_0x78f913(0x228)](0x1)));_0x547ce4[_0x78f913(0x1f5)](sendInstrumentationEvent,_0x122562,_0x547ce4['ONZOl'],messageTypes['INFO'],null,null,_0x122562);!_0x122562[_0x78f913(0x203)]&&(_0x547ce4['rOWkn'](_0x547ce4[_0x78f913(0x227)],_0x547ce4[_0x78f913(0x227)])?(console[_0x78f913(0x22e)](_0x547ce4[_0x78f913(0x213)]),process[_0x78f913(0x228)](0x1)):(_0x31e8be[_0x78f913(0x22e)](_0x547ce4['rQytr']),_0x8e4692[_0x78f913(0x228)](0x1)));const _0x299f3b=JSON[_0x78f913(0x207)](fs['readFileSync'](_0x547ce4[_0x78f913(0x22f)](getCredentialsPath))),[_0x280e4f,_0x540c92]=await _0x547ce4[_0x78f913(0x256)](getGridDetails,_0x299f3b[_0x78f913(0x26e)][_0x78f913(0x206)],_0x299f3b[_0x78f913(0x26e)][_0x78f913(0x259)],_0x122562['gridId']);if(_0x540c92){const _0x45548e=_0x540c92['info'];let _0x8fb0b1='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x45548e[_0x78f913(0x20f)]+_0x78f913(0x23d)+_0x45548e['id']+_0x78f913(0x261);if(_0x540c92[_0x78f913(0x24a)]&&_0x547ce4['rOWkn'](_0x540c92[_0x78f913(0x1f6)],_0x547ce4[_0x78f913(0x1f3)])){if(_0x547ce4[_0x78f913(0x226)](_0x547ce4[_0x78f913(0x233)],_0x547ce4[_0x78f913(0x233)]))_0x8fb0b1=_0x78f913(0x1fd)+_0x45548e[_0x78f913(0x20f)]+_0x78f913(0x23d)+_0x45548e['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x45548e['clusterName']+'\x22\x20with\x20ID\x20'+_0x45548e[_0x78f913(0x266)]+_0x78f913(0x261);else{const _0x5d4c78={};_0x5d4c78[_0x78f913(0x210)]=_0x547ce4['RGTFX'],_0x5d4c78[_0x78f913(0x23a)]=_0x547ce4[_0x78f913(0x21f)];const _0x4a21c6={};_0x4a21c6[_0x78f913(0x210)]=_0x547ce4['BtdgU'],_0x4a21c6[_0x78f913(0x23a)]=_0x547ce4[_0x78f913(0x1ee)],_0x4a21c6[_0x78f913(0x267)]=![];const _0x311e8f={};return _0x311e8f[_0x78f913(0x20d)]=_0x5d4c78,_0x311e8f[_0x78f913(0x24e)]=_0x4a21c6,_0x50e042[_0x78f913(0x208)](_0x36fe1d[_0x78f913(0x245)])[_0x78f913(0x225)](_0x599e55)[_0x78f913(0x23c)](_0x311e8f)[_0x78f913(0x254)](_0x547ce4[_0x78f913(0x20e)])[_0x78f913(0x215)];}}const _0x752b00=await _0x547ce4[_0x78f913(0x1ed)](inputConfirmation,_0x8fb0b1);(_0x547ce4[_0x78f913(0x226)](_0x752b00,undefined)||_0x547ce4[_0x78f913(0x219)](_0x752b00,null)||!(_0x547ce4['rOWkn'](_0x752b00[_0x78f913(0x273)](),'y')||_0x547ce4[_0x78f913(0x20b)](_0x752b00[_0x78f913(0x273)](),'n')))&&(_0x547ce4[_0x78f913(0x20b)](_0x547ce4[_0x78f913(0x21c)],_0x547ce4[_0x78f913(0x21c)])?(console[_0x78f913(0x22e)](_0x547ce4[_0x78f913(0x25b)]),await _0x547ce4[_0x78f913(0x249)](sendInstrumentationEvent,_0x122562,_0x547ce4['ONZOl'],messageTypes[_0x78f913(0x271)],_0x547ce4[_0x78f913(0x222)],null,_0x122562),process[_0x78f913(0x228)](0x1)):_0x21bec9[_0x78f913(0x204)](_0x547ce4['VRnNY']));_0x547ce4['pnzid'](_0x752b00[_0x78f913(0x273)](),'n')&&(_0x547ce4['irOVB'](_0x547ce4[_0x78f913(0x22c)],_0x547ce4[_0x78f913(0x22c)])?_0x4c0d77[_0x78f913(0x23e)](_0x78f913(0x260)+_0x2273e6+_0x78f913(0x239)):process[_0x78f913(0x228)](0x0));const _0x2191b9=WS_ENDPOINT['replace'](_0x547ce4[_0x78f913(0x272)],_0x299f3b['Browserstack'][_0x78f913(0x206)])['replace'](_0x547ce4[_0x78f913(0x263)],_0x299f3b[_0x78f913(0x26e)]['password']),_0x48fbbc={};_0x48fbbc[_0x78f913(0x26a)]=ws,_0x48fbbc[_0x78f913(0x211)]=0x36ee80;const _0x4ffc56=new ReconnectingWebSocket(_0x2191b9,[],_0x48fbbc);global_registry[_0x78f913(0x274)]=_0x45548e[_0x78f913(0x1eb)];const _0x49af41=_0x45548e[_0x78f913(0x236)],_0xad29f6=await _0x547ce4[_0x78f913(0x268)](getCloudProviderObject,_0x49af41,_0x45548e[_0x78f913(0x214)],_0x45548e[_0x78f913(0x20f)],_0x4ffc56,webSocketUtils,_0x122562),_0x307f45=await _0xad29f6['isClusterPresent']();if(_0x307f45){const _0x4e0763=_0x547ce4['yiXwd'](kebabCase,_0x45548e[_0x78f913(0x20f)]),[_0x3d9080,_0xabb8cd,_0x2c7cc6,_0x40ec08,_0x361425,_0x4d2918]=await _0x547ce4['YMRMo'](createK8sClient,_0xad29f6,_0x122562[_0x78f913(0x25c)]);let _0x3a5e0b=!![];const _0x45c75a={};_0x45c75a[_0x78f913(0x20f)]=_0x4e0763,await _0x3d9080[_0x78f913(0x244)](_0x45c75a)['then'](_0x30ce6b=>{const _0x4d8518=_0x78f913;_0x547ce4[_0x4d8518(0x212)](_0x547ce4[_0x4d8518(0x255)],_0x547ce4['fqhHT'])?_0x188bef=_0x4d8518(0x1fd)+_0x381061[_0x4d8518(0x20f)]+_0x4d8518(0x23d)+_0x57bfa['id']+_0x4d8518(0x1e8)+_0xf8940e[_0x4d8518(0x214)]+'\x22\x20with\x20ID\x20'+_0xbb4a93[_0x4d8518(0x266)]+_0x4d8518(0x261):logger['info'](_0x4d8518(0x260)+_0x4e0763+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion');})[_0x78f913(0x25a)](_0x13793c=>{const _0x4dcb2b=_0x78f913;_0x547ce4[_0x4dcb2b(0x25d)](_0x547ce4[_0x4dcb2b(0x224)],_0x547ce4['KTNPR'])?(_0xdd8980[_0x4dcb2b(0x204)](_0x4dcb2b(0x260)+_0xc7c0d+_0x4dcb2b(0x23f)),_0x1d9e63=![]):(logger['warn'](_0x4dcb2b(0x260)+_0x4e0763+_0x4dcb2b(0x23f)),_0x3a5e0b=![]);});if(_0x3a5e0b){await _0x547ce4[_0x78f913(0x218)](removeGridComponents,_0x3d9080,_0xabb8cd,_0x2c7cc6,_0x40ec08,_0x4e0763);if(_0x540c92[_0x78f913(0x24a)]){const _0x168751=await _0xad29f6[_0x78f913(0x275)]();_0x168751?_0x547ce4[_0x78f913(0x219)](_0x547ce4[_0x78f913(0x217)],_0x547ce4[_0x78f913(0x241)])?_0x37682e['exit'](0x0):await _0xad29f6['deleteCluster'](_0x3d9080,_0x45548e[_0x78f913(0x1eb)]):_0x547ce4[_0x78f913(0x24d)](_0x547ce4[_0x78f913(0x229)],_0x547ce4[_0x78f913(0x229)])?_0x16e0d8[_0x78f913(0x204)](_0x78f913(0x24f)+_0x2b5a4a[_0x78f913(0x214)]+_0x78f913(0x1ff)):logger[_0x78f913(0x204)](_0x78f913(0x24f)+_0x45548e['clusterName']+_0x78f913(0x1ff));}}}else logger['warn'](_0x547ce4[_0x78f913(0x1fc)]);const _0x2b4a4a=_0x78f913(0x231)+AG_API_URL+_0x78f913(0x253)+_0x122562[_0x78f913(0x203)],_0x400a0d={'method':_0x547ce4['zlpkf'],'headers':_0x547ce4['cRoTR'](getAuthHeader,_0x299f3b[_0x78f913(0x26e)][_0x78f913(0x206)],_0x299f3b['Browserstack'][_0x78f913(0x259)]),'throwHttpErrors':![]},_0x436646=await _0x547ce4['cRoTR'](got,_0x2b4a4a,_0x400a0d);_0x547ce4[_0x78f913(0x25d)](_0x436646,null)&&_0x547ce4[_0x78f913(0x240)](_0x436646,undefined)&&_0x547ce4[_0x78f913(0x232)](_0x436646[_0x78f913(0x238)],0xc8)&&(logger[_0x78f913(0x23e)](_0x547ce4[_0x78f913(0x250)]),process[_0x78f913(0x228)](0x0)),logger[_0x78f913(0x22e)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x436646[_0x78f913(0x221)]),await _0x547ce4[_0x78f913(0x264)](sendInstrumentationEvent,_0x122562,_0x547ce4['ONZOl'],messageTypes[_0x78f913(0x271)],_0x547ce4[_0x78f913(0x216)],_0x280e4f,_0x122562),process[_0x78f913(0x228)](0x1);}_0x547ce4[_0x78f913(0x219)](_0x280e4f[_0x78f913(0x238)],0x191)&&(logger[_0x78f913(0x22e)](_0x547ce4[_0x78f913(0x26d)]),await _0x547ce4[_0x78f913(0x249)](sendInstrumentationEvent,_0x122562,_0x547ce4[_0x78f913(0x251)],messageTypes[_0x78f913(0x271)],_0x547ce4[_0x78f913(0x252)],null,_0x122562),process[_0x78f913(0x228)](0x1)),_0x547ce4['gsJOF'](_0x280e4f[_0x78f913(0x238)],0x190)&&(logger[_0x78f913(0x22e)](JSON[_0x78f913(0x207)](_0x280e4f[_0x78f913(0x221)])[_0x78f913(0x27b)]),await _0x547ce4[_0x78f913(0x202)](sendInstrumentationEvent,_0x122562,_0x547ce4[_0x78f913(0x251)],messageTypes[_0x78f913(0x271)],_0x547ce4[_0x78f913(0x1f9)],null,_0x122562),process[_0x78f913(0x228)](0x1)),logger[_0x78f913(0x22e)](_0x78f913(0x258)+JSON['stringify'](_0x280e4f)),await _0x547ce4['GBZpE'](sendInstrumentationEvent,_0x122562,_0x547ce4[_0x78f913(0x251)],messageTypes[_0x78f913(0x271)],_0x547ce4[_0x78f913(0x216)],_0x280e4f,_0x122562),process[_0x78f913(0x228)](0x1);}catch(_0x539197){logger[_0x78f913(0x22e)](_0x78f913(0x247)+_0x539197['stack']),await _0x547ce4[_0x78f913(0x1f7)](sendInstrumentationEvent,_0x122562,_0x547ce4[_0x78f913(0x251)],messageTypes[_0x78f913(0x271)],_0x547ce4[_0x78f913(0x25e)],_0x539197,_0x122562),process[_0x78f913(0x228)](0x1);}};
@@ -1 +1 @@
1
- const a12_0x43ffae=a12_0x19a0;(function(_0x4f5b87,_0x27c2a8){const _0x25cfd9=a12_0x19a0,_0x154bb3=_0x4f5b87();while(!![]){try{const _0x3fb081=parseInt(_0x25cfd9(0x169))/0x1*(-parseInt(_0x25cfd9(0x1ab))/0x2)+-parseInt(_0x25cfd9(0x17b))/0x3*(parseInt(_0x25cfd9(0x1b1))/0x4)+parseInt(_0x25cfd9(0x1b6))/0x5+parseInt(_0x25cfd9(0x1a3))/0x6*(parseInt(_0x25cfd9(0x1b7))/0x7)+-parseInt(_0x25cfd9(0x167))/0x8*(parseInt(_0x25cfd9(0x1b5))/0x9)+parseInt(_0x25cfd9(0x16c))/0xa+-parseInt(_0x25cfd9(0x172))/0xb*(-parseInt(_0x25cfd9(0x1a1))/0xc);if(_0x3fb081===_0x27c2a8)break;else _0x154bb3['push'](_0x154bb3['shift']());}catch(_0x16feae){_0x154bb3['push'](_0x154bb3['shift']());}}}(a12_0x5f36,0x4e773));const fs=require('fs'),util=require(a12_0x43ffae(0x16d)),got=require(a12_0x43ffae(0x168)),{v4:uuidv4}=require(a12_0x43ffae(0x177)),{logger}=require('../config/logger'),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x43ffae(0x1b4)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x43ffae(0x1ae)),{sendInstrumentationEvent}=require(a12_0x43ffae(0x15d));function a12_0x5f36(){const _0x433ef6=['36TFgoYZ','EDqpM','2136vYaDrD','dpEUG','error','env','PsShW','JWaKt','GET','tWQoA','8FMABuS','help','QcZuN','../utils/utilityMethods','writeFileSync','lIFtl','17804iQOsWU','zNOBr','OBkBH','../config/constants','4997637HTckht','711280IkgIQM','553CpgiQG','dczOT','INFO','bUvvf','parse','UHvjE','bstackAccesskey','NfmuF','mGZws','string','strict','wrong-creds','bstackUsername','bstack-accesskey','builder','epilogue','argv','/automate/plan.json','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','exit','Auion','debug','requestId','password','zacyQ','../utils/instrumentationUtils','RtHDU','RTOLM','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','init','Browserstack','lKfWO','gQykc','readFileSync','username','8ZmgpyZ','got','114551iheTev','VjXwe','RengA','4410040IItJGo','util','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','FQUBw','init-called','cDvyP','3795286RUOkiD','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','NhZUp','xdKbu','statusCode','uuid','mKzMy','jESeb','type','210uCRGPb','recommendCommands','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','usage','xWHga','BROWSERSTACK_USERNAME','handler','options','mkdirSync','UTpMh','BROWSERSTACK_ACCESS_KEY','qsnsh','NOVMV','description','oroXn','stack','gWZpG','cZlpK','WzopV','kyofH','desc','bstack-username','SolyQ','mkRfw','command','ERROR','existsSync','uGvkH','eYuMN','utf-8','stringify','etHVH','EASBa','xqaYT','cGklx','jPXdx','CEjjC','Kwscm'];a12_0x5f36=function(){return _0x433ef6;};return a12_0x5f36();}function a12_0x19a0(_0x3d6b98,_0x2eae36){const _0x5f3656=a12_0x5f36();return a12_0x19a0=function(_0x19a093,_0x41905e){_0x19a093=_0x19a093-0x149;let _0x206ddc=_0x5f3656[_0x19a093];return _0x206ddc;},a12_0x19a0(_0x3d6b98,_0x2eae36);}exports[a12_0x43ffae(0x193)]=a12_0x43ffae(0x161),exports[a12_0x43ffae(0x18f)]=a12_0x43ffae(0x156),exports[a12_0x43ffae(0x152)]=function(_0x2f5de4){const _0x5ce324=a12_0x43ffae,_0x1b1dbc={};_0x1b1dbc[_0x5ce324(0x19d)]=_0x5ce324(0x17d),_0x1b1dbc['mKzMy']=_0x5ce324(0x14d),_0x1b1dbc[_0x5ce324(0x171)]=_0x5ce324(0x160),_0x1b1dbc[_0x5ce324(0x19f)]='help';const _0x324183=_0x1b1dbc,_0x26f4eb={};_0x26f4eb[_0x5ce324(0x188)]=_0x324183[_0x5ce324(0x19d)],_0x26f4eb[_0x5ce324(0x17a)]=_0x324183[_0x5ce324(0x178)];const _0x5e2ca7={};_0x5e2ca7['description']=_0x324183[_0x5ce324(0x171)],_0x5e2ca7[_0x5ce324(0x17a)]=_0x324183[_0x5ce324(0x178)];const _0x499b67={};return _0x499b67[_0x5ce324(0x190)]=_0x26f4eb,_0x499b67[_0x5ce324(0x151)]=_0x5e2ca7,_0x2f5de4[_0x5ce324(0x17e)](HELP_HEADER_MESSAGE['init'])[_0x5ce324(0x153)](HELP_FOOTER_MESSAGE)[_0x5ce324(0x182)](_0x499b67)[_0x5ce324(0x17c)]()[_0x5ce324(0x14e)]()['help'](_0x324183[_0x5ce324(0x19f)])[_0x5ce324(0x154)];},exports[a12_0x43ffae(0x181)]=async function(_0x28e73c){const _0x58e105=a12_0x43ffae,_0xb1b9fa={'NPtzF':_0x58e105(0x17d),'mkRfw':_0x58e105(0x14d),'bUvvf':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','zacyQ':_0x58e105(0x1ac),'WzopV':function(_0x1411af){return _0x1411af();},'mGZws':_0x58e105(0x198),'SolyQ':function(_0x4866e5){return _0x4866e5();},'dFfhL':function(_0x5ccbe5,_0x2aab88,_0x2cda14,_0x9672c0,_0x42fd86,_0x32c1ca,_0x390df6){return _0x5ccbe5(_0x2aab88,_0x2cda14,_0x9672c0,_0x42fd86,_0x32c1ca,_0x390df6);},'uGvkH':_0x58e105(0x170),'qsnsh':function(_0x4cd5c4,_0x581460){return _0x4cd5c4!==_0x581460;},'jESeb':'STRpr','cZlpK':function(_0x269059,_0x5b8c3a){return _0x269059===_0x5b8c3a;},'GuwGi':_0x58e105(0x1a2),'ZGNDh':function(_0x8f2f9e,_0xc4b152){return _0x8f2f9e===_0xc4b152;},'FQUBw':_0x58e105(0x14b),'JWaKt':_0x58e105(0x1b8),'xWHga':function(_0x202a38,_0x339501){return _0x202a38!==_0x339501;},'RengA':_0x58e105(0x19e),'UTpMh':'QfuvJ','xqaYT':function(_0x1c7822,_0x2311c8){return _0x1c7822===_0x2311c8;},'lKfWO':_0x58e105(0x18b),'dpEUG':function(_0x29c984,_0x558fb3){return _0x29c984===_0x558fb3;},'Auion':function(_0x24fd98,_0xf7da1c){return _0x24fd98===_0xf7da1c;},'Kwscm':_0x58e105(0x15f),'etHVH':_0x58e105(0x149),'gQykc':_0x58e105(0x173),'RtHDU':_0x58e105(0x1a9),'PsShW':function(_0x1c5420,_0x58a5bd,_0x1a4229){return _0x1c5420(_0x58a5bd,_0x1a4229);},'MQvat':function(_0x5af80b,_0xf55074){return _0x5af80b===_0xf55074;},'zNOBr':function(_0x82d985,_0x411454){return _0x82d985!==_0x411454;},'dvBZe':'eDWYL','BLasV':_0x58e105(0x1ad),'eYuMN':function(_0x3b6dbc,_0x962c27){return _0x3b6dbc!==_0x962c27;},'kyofH':'HgRjQ','lIFtl':'VfSeT','xdKbu':function(_0x439b4b){return _0x439b4b();},'NOVMV':function(_0x254332,_0x32a109){return _0x254332===_0x32a109;},'NhZUp':'bSkBn','OBkBH':_0x58e105(0x1aa),'CBBtY':_0x58e105(0x16e),'oroXn':function(_0x1be5cc,_0x2765e1,_0x3bff08,_0x369b48,_0x83812,_0x219bdf,_0x4d8da0){return _0x1be5cc(_0x2765e1,_0x3bff08,_0x369b48,_0x83812,_0x219bdf,_0x4d8da0);},'OYLFg':_0x58e105(0x14f),'EASBa':function(_0x55fec8,_0x26e950,_0x153711,_0xae6bf3,_0x333e63,_0xfff48,_0x4855b1){return _0x55fec8(_0x26e950,_0x153711,_0xae6bf3,_0x333e63,_0xfff48,_0x4855b1);},'VjXwe':'unknown-error'};try{global_registry[_0x58e105(0x15a)]=_0xb1b9fa[_0x58e105(0x191)](uuidv4),_0xb1b9fa['dFfhL'](sendInstrumentationEvent,_0x28e73c,_0xb1b9fa[_0x58e105(0x196)],messageTypes[_0x58e105(0x1b9)],null,null,_0x28e73c);const _0x2d3331=_0xb1b9fa[_0x58e105(0x191)](getDirForConfig);!fs['existsSync'](_0x2d3331)&&(_0xb1b9fa[_0x58e105(0x186)](_0xb1b9fa[_0x58e105(0x179)],_0xb1b9fa[_0x58e105(0x179)])?_0x4e39a6[_0x58e105(0x183)](_0x1491a2):fs[_0x58e105(0x183)](_0x2d3331));let _0x52bcb1,_0xccea41;process[_0x58e105(0x1a6)][_0x58e105(0x180)]&&(_0xb1b9fa[_0x58e105(0x18c)](_0xb1b9fa['GuwGi'],_0xb1b9fa['GuwGi'])?_0x52bcb1=process['env'][_0x58e105(0x180)]:_0x5e12b6=_0xe63b0f['bstackAccesskey']);if(process[_0x58e105(0x1a6)][_0x58e105(0x185)]){if(_0xb1b9fa['ZGNDh'](_0xb1b9fa[_0x58e105(0x16f)],_0xb1b9fa[_0x58e105(0x1a8)])){const _0x122b7b={};_0x122b7b[_0x58e105(0x188)]=_0xb1b9fa['NPtzF'],_0x122b7b[_0x58e105(0x17a)]=_0xb1b9fa[_0x58e105(0x192)];const _0x614726={};_0x614726[_0x58e105(0x188)]=_0xb1b9fa[_0x58e105(0x1ba)],_0x614726['type']=_0xb1b9fa['mkRfw'];const _0x1539bc={};return _0x1539bc[_0x58e105(0x190)]=_0x122b7b,_0x1539bc[_0x58e105(0x151)]=_0x614726,_0x117adc[_0x58e105(0x17e)](_0x4b1f68[_0x58e105(0x161)])[_0x58e105(0x153)](_0x15a59d)['options'](_0x1539bc)[_0x58e105(0x17c)]()['strict']()[_0x58e105(0x1ac)](_0xb1b9fa[_0x58e105(0x15c)])[_0x58e105(0x154)];}else _0xccea41=process[_0x58e105(0x1a6)][_0x58e105(0x185)];}_0x28e73c[_0x58e105(0x150)]&&(_0xb1b9fa[_0x58e105(0x17f)](_0xb1b9fa[_0x58e105(0x16b)],_0xb1b9fa[_0x58e105(0x184)])?_0x52bcb1=_0x28e73c['bstackUsername']:_0x1631f9=_0x59e15d[_0x58e105(0x150)]);if(_0x28e73c[_0x58e105(0x14a)]){if(_0xb1b9fa[_0x58e105(0x19c)](_0xb1b9fa[_0x58e105(0x163)],_0xb1b9fa['lKfWO']))_0xccea41=_0x28e73c['bstackAccesskey'];else{let _0x136d99={};const _0x202073=_0xb1b9fa[_0x58e105(0x18d)](_0x554317);_0x4d4be3[_0x58e105(0x195)](_0x202073)&&(_0x136d99=_0x1ab5c7[_0x58e105(0x1bb)](_0x3dd0c6[_0x58e105(0x165)](_0x202073,_0xb1b9fa[_0x58e105(0x14c)])));const _0x4d5f7f={};_0x4d5f7f[_0x58e105(0x166)]=_0x28cf1b,_0x4d5f7f[_0x58e105(0x15b)]=_0x12553e,_0x136d99['Browserstack']=_0x4d5f7f,_0x1ee309[_0x58e105(0x1af)](_0x202073,_0x15797c[_0x58e105(0x199)](_0x136d99)),_0x491488[_0x58e105(0x157)](0x0);}}if(_0xb1b9fa[_0x58e105(0x1a4)](_0x52bcb1,undefined)||_0xb1b9fa[_0x58e105(0x158)](_0xccea41,undefined)){if(_0xb1b9fa['qsnsh'](_0xb1b9fa[_0x58e105(0x1a0)],_0xb1b9fa[_0x58e105(0x19a)])){logger[_0x58e105(0x159)](_0xb1b9fa[_0x58e105(0x164)]);const [_0x51a453,_0x3eca4b]=await _0xb1b9fa[_0x58e105(0x18d)](inputBstackKeys);_0x52bcb1=_0x51a453,_0xccea41=_0x3eca4b;}else _0x284e6f=_0x1f2407[_0x58e105(0x1bb)](_0x4ea26d[_0x58e105(0x165)](_0x5ae7aa,_0xb1b9fa['mGZws']));}let _0x35847b=![];const _0x24ead1='https://'+_0x52bcb1+':'+_0xccea41+'@'+BS_API_URL+_0x58e105(0x155),_0xcb4f69={'method':_0xb1b9fa[_0x58e105(0x15e)],'headers':_0xb1b9fa[_0x58e105(0x1a7)](getAuthHeader,_0x52bcb1,_0xccea41),'throwHttpErrors':![]},_0x42db9f=await _0xb1b9fa[_0x58e105(0x1a7)](got,_0x24ead1,_0xcb4f69);_0xb1b9fa[_0x58e105(0x186)](_0x42db9f,null)&&_0xb1b9fa['xWHga'](_0x42db9f,undefined)&&_0xb1b9fa['MQvat'](_0x42db9f[_0x58e105(0x176)],0xc8)&&(_0xb1b9fa[_0x58e105(0x1b2)](_0xb1b9fa['dvBZe'],_0xb1b9fa['BLasV'])?_0x35847b=!![]:_0x110282=!![]);if(_0x35847b){if(_0xb1b9fa[_0x58e105(0x197)](_0xb1b9fa[_0x58e105(0x18e)],_0xb1b9fa[_0x58e105(0x1b0)])){let _0x5502a9={};const _0x18a5ec=_0xb1b9fa[_0x58e105(0x175)](getCredentialsPath);fs['existsSync'](_0x18a5ec)&&(_0xb1b9fa[_0x58e105(0x187)](_0xb1b9fa[_0x58e105(0x174)],_0xb1b9fa[_0x58e105(0x1b3)])?_0x1041f8=_0x147e94[_0x58e105(0x1a6)][_0x58e105(0x185)]:_0x5502a9=JSON[_0x58e105(0x1bb)](fs[_0x58e105(0x165)](_0x18a5ec,_0xb1b9fa[_0x58e105(0x14c)])));const _0x2f2416={};_0x2f2416[_0x58e105(0x166)]=_0x52bcb1,_0x2f2416['password']=_0xccea41,_0x5502a9[_0x58e105(0x162)]=_0x2f2416,fs[_0x58e105(0x1af)](_0x18a5ec,JSON[_0x58e105(0x199)](_0x5502a9)),process[_0x58e105(0x157)](0x0);}else _0x3f95aa=_0x170041[_0x58e105(0x1a6)][_0x58e105(0x180)];}else logger[_0x58e105(0x1a5)](_0xb1b9fa['CBBtY']),await _0xb1b9fa[_0x58e105(0x189)](sendInstrumentationEvent,_0x28e73c,_0xb1b9fa[_0x58e105(0x196)],messageTypes[_0x58e105(0x194)],_0xb1b9fa['OYLFg'],null,_0x28e73c),process[_0x58e105(0x157)](0x1);}catch(_0x46cfcc){logger['error'](_0x46cfcc[_0x58e105(0x18a)]),await _0xb1b9fa[_0x58e105(0x19b)](sendInstrumentationEvent,_0x28e73c,_0xb1b9fa[_0x58e105(0x196)],messageTypes[_0x58e105(0x194)],_0xb1b9fa[_0x58e105(0x16a)],_0x46cfcc,_0x28e73c),process[_0x58e105(0x157)](0x1);}};
1
+ const a12_0x13fc70=a12_0x4c4d;(function(_0x2d85b0,_0x3a2d86){const _0x2c3357=a12_0x4c4d,_0x371c83=_0x2d85b0();while(!![]){try{const _0xdcc371=-parseInt(_0x2c3357(0x168))/0x1*(-parseInt(_0x2c3357(0x15b))/0x2)+-parseInt(_0x2c3357(0x14e))/0x3*(parseInt(_0x2c3357(0x139))/0x4)+parseInt(_0x2c3357(0x15c))/0x5*(parseInt(_0x2c3357(0x153))/0x6)+parseInt(_0x2c3357(0x11e))/0x7+-parseInt(_0x2c3357(0x15d))/0x8*(-parseInt(_0x2c3357(0x138))/0x9)+-parseInt(_0x2c3357(0x11b))/0xa*(-parseInt(_0x2c3357(0x150))/0xb)+-parseInt(_0x2c3357(0x146))/0xc;if(_0xdcc371===_0x3a2d86)break;else _0x371c83['push'](_0x371c83['shift']());}catch(_0x5807a3){_0x371c83['push'](_0x371c83['shift']());}}}(a12_0x1a73,0x2becb));function a12_0x1a73(){const _0x2d51c0=['Noiex','init-called','Fsjuf','got','ODbOb','qbEtP','IMJLb','lqIAr','HOMZv','AIZLG','jWkmj','GzfmT','debug','command','169900FFMSAt','XoEkz','requestId','1011836rzaMMK','string','qsUcf','ERROR','../utils/instrumentationUtils','zhjyd','ZABjf','parse','rciqQ','GET','desc','nKnLW','RCsCy','VtKmp','username','bstackUsername','bstack-accesskey','argv','LNamR','tEGtR','recommendCommands','../config/constants','init','CKknK','SEYBt','strict','402795nlyDma','124UbSOhn','xvYNh','RYnlm','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','HFYdG','VbozY','handler','bXnlq','ddKhJ','AGJWg','epilogue','utf-8','RYggv','9185880ZGaJTT','PmToI','Browserstack','options','EZZsa','fLbCl','unknown-error','description','2139kYjQws','readFileSync','110qafjUP','nYuQw','VUOzj','214386cBuUIn','existsSync','type','BROWSERSTACK_ACCESS_KEY','builder','exit','eYkhK','../config/logger','107706GIflPO','45RNBsNj','40ufKpmS','BVqIO','bstack-username','mkdirSync','statusCode','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','opJTM','wrong-creds','gcAbq','util','env','2SPznIi','wLtaW','password','BROWSERSTACK_USERNAME','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','hvAsD','/automate/plan.json','ymjfO','BQnVR','INFO','help','../utils/utilityMethods','usage','writeFileSync','bstackAccesskey','Curfv'];a12_0x1a73=function(){return _0x2d51c0;};return a12_0x1a73();}const fs=require('fs'),util=require(a12_0x13fc70(0x166)),got=require(a12_0x13fc70(0x17b)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x13fc70(0x15a)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x13fc70(0x133)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x13fc70(0x173)),{sendInstrumentationEvent}=require(a12_0x13fc70(0x122));function a12_0x4c4d(_0x4311d3,_0x342319){const _0x1a7332=a12_0x1a73();return a12_0x4c4d=function(_0x4c4d33,_0x39b7c4){_0x4c4d33=_0x4c4d33-0x118;let _0x33b00e=_0x1a7332[_0x4c4d33];return _0x33b00e;},a12_0x4c4d(_0x4311d3,_0x342319);}exports[a12_0x13fc70(0x11a)]=a12_0x13fc70(0x134),exports[a12_0x13fc70(0x128)]=a12_0x13fc70(0x162),exports[a12_0x13fc70(0x157)]=function(_0x4d4a42){const _0x4773a8=a12_0x13fc70,_0x5adeb5={};_0x5adeb5[_0x4773a8(0x165)]=_0x4773a8(0x13c),_0x5adeb5[_0x4773a8(0x120)]='string',_0x5adeb5[_0x4773a8(0x17e)]=_0x4773a8(0x16c),_0x5adeb5[_0x4773a8(0x136)]=_0x4773a8(0x172);const _0x4d11e6=_0x5adeb5,_0x52043b={};_0x52043b[_0x4773a8(0x14d)]=_0x4d11e6[_0x4773a8(0x165)],_0x52043b[_0x4773a8(0x155)]=_0x4d11e6[_0x4773a8(0x120)];const _0x1312a9={};_0x1312a9['description']=_0x4d11e6[_0x4773a8(0x17e)],_0x1312a9[_0x4773a8(0x155)]=_0x4d11e6[_0x4773a8(0x120)];const _0x18dd30={};return _0x18dd30['bstack-username']=_0x52043b,_0x18dd30[_0x4773a8(0x12e)]=_0x1312a9,_0x4d4a42[_0x4773a8(0x174)](HELP_HEADER_MESSAGE[_0x4773a8(0x134)])[_0x4773a8(0x143)](HELP_FOOTER_MESSAGE)[_0x4773a8(0x149)](_0x18dd30)['recommendCommands']()[_0x4773a8(0x137)]()[_0x4773a8(0x172)](_0x4d11e6[_0x4773a8(0x136)])[_0x4773a8(0x12f)];},exports[a12_0x13fc70(0x13f)]=async function(_0x234265){const _0x5c8756=a12_0x13fc70,_0xa20d83={'XoEkz':_0x5c8756(0x144),'eYkhK':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','xvYNh':_0x5c8756(0x11f),'EqGLj':_0x5c8756(0x16c),'GzfmT':_0x5c8756(0x172),'AGJWg':function(_0x16ff1b){return _0x16ff1b();},'Fsjuf':function(_0x21ef15,_0x25848a,_0x1a353a,_0x1850e9,_0x20f12e,_0x3b5c83,_0x1dacbf){return _0x21ef15(_0x25848a,_0x1a353a,_0x1850e9,_0x20f12e,_0x3b5c83,_0x1dacbf);},'BQnVR':_0x5c8756(0x179),'wLtaW':function(_0x528f7b,_0x14092a){return _0x528f7b!==_0x14092a;},'kSmbK':_0x5c8756(0x178),'lqIAr':_0x5c8756(0x151),'Curfv':function(_0x5dfe63,_0x57efa1){return _0x5dfe63!==_0x57efa1;},'jWkmj':_0x5c8756(0x15e),'keLKk':_0x5c8756(0x13e),'IhQNO':'BgepP','EZZsa':_0x5c8756(0x130),'AIZLG':_0x5c8756(0x17d),'VUOzj':_0x5c8756(0x141),'hvAsD':function(_0x3f9453,_0x261f93){return _0x3f9453===_0x261f93;},'tprec':function(_0x5bbd3c,_0x1576c6){return _0x5bbd3c===_0x1576c6;},'BhWgm':_0x5c8756(0x180),'bXnlq':_0x5c8756(0x13b),'RYggv':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','fLbCl':function(_0x5ad7be){return _0x5ad7be();},'gZFtl':_0x5c8756(0x127),'PmToI':function(_0x39b3c7,_0x2270de,_0x2335ba){return _0x39b3c7(_0x2270de,_0x2335ba);},'CKknK':function(_0x3b0a13,_0x2711de){return _0x3b0a13!==_0x2711de;},'HFYdG':function(_0x4fad3c,_0xec1404){return _0x4fad3c===_0xec1404;},'rciqQ':function(_0x46cbe4,_0x3ecbc8){return _0x46cbe4!==_0x3ecbc8;},'DmhpQ':_0x5c8756(0x163),'RCsCy':'thwBu','VtKmp':function(_0x4602f1,_0x1894fa){return _0x4602f1===_0x1894fa;},'nKnLW':_0x5c8756(0x124),'zhjyd':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','JJtXt':function(_0x518244,_0x18b16b,_0xfce9b3,_0x570886,_0x8e5cf4,_0x3cb3ab,_0x574255){return _0x518244(_0x18b16b,_0xfce9b3,_0x570886,_0x8e5cf4,_0x3cb3ab,_0x574255);},'tEGtR':_0x5c8756(0x164),'ymjfO':function(_0x245c40,_0xddfb77,_0x554974,_0x33d6bd,_0x41fc81,_0x1e8323,_0x48868c){return _0x245c40(_0xddfb77,_0x554974,_0x33d6bd,_0x41fc81,_0x1e8323,_0x48868c);},'ODbOb':_0x5c8756(0x14c)};try{global_registry[_0x5c8756(0x11d)]=_0xa20d83[_0x5c8756(0x142)](uuidv4),_0xa20d83[_0x5c8756(0x17a)](sendInstrumentationEvent,_0x234265,_0xa20d83[_0x5c8756(0x170)],messageTypes[_0x5c8756(0x171)],null,null,_0x234265);const _0x134711=_0xa20d83[_0x5c8756(0x142)](getDirForConfig);!fs['existsSync'](_0x134711)&&(_0xa20d83['wLtaW'](_0xa20d83['kSmbK'],_0xa20d83[_0x5c8756(0x17f)])?fs['mkdirSync'](_0x134711):_0x5b3e11=_0x54e5cc['bstackAccesskey']);let _0x678fdc,_0x487720;process[_0x5c8756(0x167)]['BROWSERSTACK_USERNAME']&&(_0xa20d83['Curfv'](_0xa20d83['jWkmj'],_0xa20d83[_0x5c8756(0x182)])?_0xbfd9f6=_0x5308ab['bstackUsername']:_0x678fdc=process[_0x5c8756(0x167)][_0x5c8756(0x16b)]);process['env'][_0x5c8756(0x156)]&&(_0xa20d83['wLtaW'](_0xa20d83['keLKk'],_0xa20d83['IhQNO'])?_0x487720=process[_0x5c8756(0x167)]['BROWSERSTACK_ACCESS_KEY']:_0x47993b=_0x599a88[_0x5c8756(0x167)][_0x5c8756(0x156)]);_0x234265[_0x5c8756(0x12d)]&&(_0xa20d83[_0x5c8756(0x177)](_0xa20d83[_0x5c8756(0x14a)],_0xa20d83[_0x5c8756(0x181)])?_0x678fdc=_0x234265['bstackUsername']:_0x2df797=!![]);_0x234265['bstackAccesskey']&&(_0xa20d83[_0x5c8756(0x169)](_0xa20d83[_0x5c8756(0x152)],_0xa20d83[_0x5c8756(0x152)])?_0x58d121=_0x20a52c['parse'](_0x5ce555[_0x5c8756(0x14f)](_0x34f35c,_0xa20d83[_0x5c8756(0x11c)])):_0x487720=_0x234265[_0x5c8756(0x176)]);if(_0xa20d83[_0x5c8756(0x16d)](_0x678fdc,undefined)||_0xa20d83[_0x5c8756(0x16d)](_0x487720,undefined)){if(_0xa20d83['tprec'](_0xa20d83['BhWgm'],_0xa20d83[_0x5c8756(0x140)]))_0x449ef9=_0x477698[_0x5c8756(0x167)][_0x5c8756(0x16b)];else{logger[_0x5c8756(0x119)](_0xa20d83[_0x5c8756(0x145)]);const [_0x5ff0fe,_0x399b48]=await _0xa20d83[_0x5c8756(0x14b)](inputBstackKeys);_0x678fdc=_0x5ff0fe,_0x487720=_0x399b48;}}let _0x55774f=![];const _0x3b4537='https://'+_0x678fdc+':'+_0x487720+'@'+BS_API_URL+_0x5c8756(0x16e),_0xd1e9fa={'method':_0xa20d83['gZFtl'],'headers':_0xa20d83[_0x5c8756(0x147)](getAuthHeader,_0x678fdc,_0x487720),'throwHttpErrors':![]},_0x336b01=await _0xa20d83[_0x5c8756(0x147)](got,_0x3b4537,_0xd1e9fa);_0xa20d83[_0x5c8756(0x135)](_0x336b01,null)&&_0xa20d83[_0x5c8756(0x169)](_0x336b01,undefined)&&_0xa20d83[_0x5c8756(0x13d)](_0x336b01[_0x5c8756(0x161)],0xc8)&&(_0xa20d83[_0x5c8756(0x126)](_0xa20d83['DmhpQ'],_0xa20d83['DmhpQ'])?_0x28d2fa[_0x5c8756(0x160)](_0x2f4231):_0x55774f=!![]);if(_0x55774f){if(_0xa20d83[_0x5c8756(0x126)](_0xa20d83[_0x5c8756(0x12a)],_0xa20d83[_0x5c8756(0x12a)])){const _0x4b4e3e={};_0x4b4e3e[_0x5c8756(0x14d)]=_0xa20d83[_0x5c8756(0x159)],_0x4b4e3e['type']=_0xa20d83[_0x5c8756(0x13a)];const _0x526785={};_0x526785['description']=_0xa20d83['EqGLj'],_0x526785['type']=_0xa20d83[_0x5c8756(0x13a)];const _0x598c8d={};return _0x598c8d[_0x5c8756(0x15f)]=_0x4b4e3e,_0x598c8d[_0x5c8756(0x12e)]=_0x526785,_0x5008f0[_0x5c8756(0x174)](_0x2c07bd[_0x5c8756(0x134)])['epilogue'](_0x2f877f)[_0x5c8756(0x149)](_0x598c8d)[_0x5c8756(0x132)]()[_0x5c8756(0x137)]()[_0x5c8756(0x172)](_0xa20d83[_0x5c8756(0x118)])[_0x5c8756(0x12f)];}else{let _0x1c8a89={};const _0x34de2d=_0xa20d83[_0x5c8756(0x142)](getCredentialsPath);if(fs[_0x5c8756(0x154)](_0x34de2d)){if(_0xa20d83[_0x5c8756(0x12b)](_0xa20d83[_0x5c8756(0x129)],_0xa20d83[_0x5c8756(0x129)]))_0x1c8a89=JSON[_0x5c8756(0x125)](fs[_0x5c8756(0x14f)](_0x34de2d,_0xa20d83[_0x5c8756(0x11c)]));else{let _0x1d8821={};const _0x121b22=_0xa20d83[_0x5c8756(0x142)](_0x31cefc);_0x2bf559[_0x5c8756(0x154)](_0x121b22)&&(_0x1d8821=_0x5f5875['parse'](_0x3023ed[_0x5c8756(0x14f)](_0x121b22,_0xa20d83[_0x5c8756(0x11c)])));const _0x4a3a0b={};_0x4a3a0b['username']=_0x596b7b,_0x4a3a0b['password']=_0x1dfddb,_0x1d8821[_0x5c8756(0x148)]=_0x4a3a0b,_0x4cd596[_0x5c8756(0x175)](_0x121b22,_0x2a8b80['stringify'](_0x1d8821)),_0x3dcc4a[_0x5c8756(0x158)](0x0);}}const _0x38ccb2={};_0x38ccb2[_0x5c8756(0x12c)]=_0x678fdc,_0x38ccb2[_0x5c8756(0x16a)]=_0x487720,_0x1c8a89['Browserstack']=_0x38ccb2,fs[_0x5c8756(0x175)](_0x34de2d,JSON['stringify'](_0x1c8a89)),process[_0x5c8756(0x158)](0x0);}}else logger['error'](_0xa20d83[_0x5c8756(0x123)]),await _0xa20d83['JJtXt'](sendInstrumentationEvent,_0x234265,_0xa20d83['BQnVR'],messageTypes[_0x5c8756(0x121)],_0xa20d83[_0x5c8756(0x131)],null,_0x234265),process[_0x5c8756(0x158)](0x1);}catch(_0x4dfb0d){logger['error'](_0x4dfb0d['stack']),await _0xa20d83[_0x5c8756(0x16f)](sendInstrumentationEvent,_0x234265,_0xa20d83[_0x5c8756(0x170)],messageTypes[_0x5c8756(0x121)],_0xa20d83[_0x5c8756(0x17c)],_0x4dfb0d,_0x234265),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a13_0x3bfd1c=a13_0x170c;function a13_0x170c(_0x392bf0,_0x5cd43a){const _0x195f2e=a13_0x195f();return a13_0x170c=function(_0x170cb9,_0x9f4926){_0x170cb9=_0x170cb9-0xcf;let _0x121264=_0x195f2e[_0x170cb9];return _0x121264;},a13_0x170c(_0x392bf0,_0x5cd43a);}(function(_0x301e32,_0x2909c3){const _0x1c7210=a13_0x170c,_0x4ad1d3=_0x301e32();while(!![]){try{const _0x5bdf02=parseInt(_0x1c7210(0xe3))/0x1+-parseInt(_0x1c7210(0xdb))/0x2+-parseInt(_0x1c7210(0xd7))/0x3*(-parseInt(_0x1c7210(0xd6))/0x4)+parseInt(_0x1c7210(0xe4))/0x5*(-parseInt(_0x1c7210(0xd9))/0x6)+-parseInt(_0x1c7210(0xd4))/0x7*(parseInt(_0x1c7210(0xdf))/0x8)+-parseInt(_0x1c7210(0xd3))/0x9*(parseInt(_0x1c7210(0xda))/0xa)+parseInt(_0x1c7210(0xe0))/0xb;if(_0x5bdf02===_0x2909c3)break;else _0x4ad1d3['push'](_0x4ad1d3['shift']());}catch(_0x35c3fa){_0x4ad1d3['push'](_0x4ad1d3['shift']());}}}(a13_0x195f,0xa340c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x3bfd1c(0xd8));exports['command']='list',exports['desc']='List\x20down\x20the\x20Grid\x20resources.',exports[a13_0x3bfd1c(0xdc)]=function(_0x12e949){const _0x1bbf60=a13_0x3bfd1c,_0x3f2d26={};_0x3f2d26['VEYBc']='list_commands',_0x3f2d26[_0x1bbf60(0xe1)]=_0x1bbf60(0xd1);const _0x13b6da=_0x3f2d26;return _0x12e949[_0x1bbf60(0xe2)](_0x13b6da['VEYBc'])[_0x1bbf60(0xdd)]()[_0x1bbf60(0xd5)](HELP_HEADER_MESSAGE['list']['root'])[_0x1bbf60(0xde)](HELP_FOOTER_MESSAGE)[_0x1bbf60(0xd2)]()[_0x1bbf60(0xd0)]()[_0x1bbf60(0xd1)](_0x13b6da[_0x1bbf60(0xe1)]);},exports[a13_0x3bfd1c(0xcf)]=function(_0x3d0b18){};function a13_0x195f(){const _0x5f45eb=['commandDir','286480HjOxgu','2926660WcLgjD','handler','strict','help','recommendCommands','2339541aWVgMO','521570VErVQt','usage','4FbRZVg','2782254RNgKHA','../config/constants','12TneRhJ','20HXPaOR','680790jKvZmM','builder','demandCommand','epilogue','32gQTCHC','19621613rnBoPa','xpJbx'];a13_0x195f=function(){return _0x5f45eb;};return a13_0x195f();}
1
+ const a13_0x376d58=a13_0x274a;(function(_0x49cb07,_0x2ab227){const _0x5dcea9=a13_0x274a,_0x19e69f=_0x49cb07();while(!![]){try{const _0x513b89=parseInt(_0x5dcea9(0xe0))/0x1*(-parseInt(_0x5dcea9(0xe5))/0x2)+-parseInt(_0x5dcea9(0xe1))/0x3*(parseInt(_0x5dcea9(0xd5))/0x4)+parseInt(_0x5dcea9(0xe4))/0x5+parseInt(_0x5dcea9(0xe2))/0x6+parseInt(_0x5dcea9(0xec))/0x7*(-parseInt(_0x5dcea9(0xd9))/0x8)+parseInt(_0x5dcea9(0xda))/0x9+parseInt(_0x5dcea9(0xdf))/0xa*(parseInt(_0x5dcea9(0xdb))/0xb);if(_0x513b89===_0x2ab227)break;else _0x19e69f['push'](_0x19e69f['shift']());}catch(_0x57f1d1){_0x19e69f['push'](_0x19e69f['shift']());}}}(a13_0x30f0,0xa31e7));function a13_0x30f0(){const _0x4ab7b8=['epilogue','84PDTmUa','list','1700708IEnPHA','RAJfV','List\x20down\x20the\x20Grid\x20resources.','recommendCommands','107504HJJRFY','4511394geEmyj','33Nrvrxe','builder','help','desc','586770JOrSoV','83DDJNOw','3zLLhdU','4686276auUIwv','handler','3651120cTfDLH','22506bnGecz','demandCommand','list_commands','usage','TXgQd','commandDir'];a13_0x30f0=function(){return _0x4ab7b8;};return a13_0x30f0();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a13_0x274a(_0x3c6752,_0xdc6308){const _0x30f04c=a13_0x30f0();return a13_0x274a=function(_0x274a4,_0x17b3a1){_0x274a4=_0x274a4-0xd4;let _0x5b5ad4=_0x30f04c[_0x274a4];return _0x5b5ad4;},a13_0x274a(_0x3c6752,_0xdc6308);}exports['command']=a13_0x376d58(0xd4),exports[a13_0x376d58(0xde)]=a13_0x376d58(0xd7),exports[a13_0x376d58(0xdc)]=function(_0x4b1ee3){const _0x2332b1=a13_0x376d58,_0x59dc56={};_0x59dc56[_0x2332b1(0xd6)]=_0x2332b1(0xe7),_0x59dc56[_0x2332b1(0xe9)]=_0x2332b1(0xdd);const _0x145417=_0x59dc56;return _0x4b1ee3[_0x2332b1(0xea)](_0x145417[_0x2332b1(0xd6)])[_0x2332b1(0xe6)]()[_0x2332b1(0xe8)](HELP_HEADER_MESSAGE[_0x2332b1(0xd4)]['root'])[_0x2332b1(0xeb)](HELP_FOOTER_MESSAGE)[_0x2332b1(0xd8)]()['strict']()[_0x2332b1(0xdd)](_0x145417[_0x2332b1(0xe9)]);},exports[a13_0x376d58(0xe3)]=function(_0x48c25f){};
@@ -1 +1 @@
1
- function a14_0x7e27(){const _0x163698=['List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','AtVFB','FMuXJ','dAIxR','existsSync','pyqgK','ERROR','27vohPiA','TAmSl','/packages/cli/get-grid-profiles','concurrency','body','10060171SDogKE','QuuCk','builder','zHQPq','password','exit','Itsvz','INFO','list-grid-profiles-called','description','PjKVN','region','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','epilogue','GET','desc','1216040VZtiRl','error','help','uuid','statusCode','12vuGkzO','112000pxfSvC','all-grid-profiles','AkuJJ','boolean','../../utils/instrumentationUtils','KunbD','https://','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','668336KFiGHO','usage','init-not-called','name','15ACDcEd','954588pDLcXS','ZCbwH','21rdsScv','type','username','log','oVmfD','PfSKG','LSkpX','SrVcH','gridProfile','cloud-provider','8SmZKIO','readFileSync','944185trmVZc','grid-profile-name','forEach','IqRXv','allGridProfiles','grid-profiles','server-error','Browserstack','MNsVC','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','options','82402yTxqdV','/packages/cli/get-all-grid-profiles','unknown-error','eqYYv','parse','nRbTH','push','kxpZx','FxAsC'];a14_0x7e27=function(){return _0x163698;};return a14_0x7e27();}const a14_0x38952b=a14_0x4aa4;(function(_0x4c803b,_0x518bbe){const _0x26b3b4=a14_0x4aa4,_0x436339=_0x4c803b();while(!![]){try{const _0x298e10=parseInt(_0x26b3b4(0x1bd))/0x1*(parseInt(_0x26b3b4(0x1ca))/0x2)+-parseInt(_0x26b3b4(0x1b0))/0x3*(parseInt(_0x26b3b4(0x1a4))/0x4)+-parseInt(_0x26b3b4(0x1bf))/0x5+-parseInt(_0x26b3b4(0x1b1))/0x6*(parseInt(_0x26b3b4(0x1b3))/0x7)+-parseInt(_0x26b3b4(0x1ac))/0x8*(parseInt(_0x26b3b4(0x1da))/0x9)+parseInt(_0x26b3b4(0x19e))/0xa+parseInt(_0x26b3b4(0x1df))/0xb*(parseInt(_0x26b3b4(0x1a3))/0xc);if(_0x298e10===_0x518bbe)break;else _0x436339['push'](_0x436339['shift']());}catch(_0x5c372f){_0x436339['push'](_0x436339['shift']());}}}(a14_0x7e27,0x4b718));const fs=require('fs'),got=require('got'),{table}=require('table'),{v4:uuidv4}=require(a14_0x38952b(0x1a1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x38952b(0x1a8));function a14_0x4aa4(_0x455166,_0x474f27){const _0x7e27eb=a14_0x7e27();return a14_0x4aa4=function(_0x4aa4fa,_0x62d130){_0x4aa4fa=_0x4aa4fa-0x19c;let _0x54b2d4=_0x7e27eb[_0x4aa4fa];return _0x54b2d4;},a14_0x4aa4(_0x455166,_0x474f27);}exports['command']=a14_0x38952b(0x1c4),exports[a14_0x38952b(0x19d)]=a14_0x38952b(0x1d3),exports[a14_0x38952b(0x1e1)]=function(_0x4bce4d){const _0x371d3b=a14_0x38952b,_0x1bf02d={};_0x1bf02d['KunbD']=_0x371d3b(0x1ab),_0x1bf02d[_0x371d3b(0x1d4)]=_0x371d3b(0x1a7),_0x1bf02d['PjKVN']=_0x371d3b(0x1a0);const _0x2b19e3=_0x1bf02d,_0x4f9534={};_0x4f9534[_0x371d3b(0x1e8)]=_0x2b19e3[_0x371d3b(0x1a9)],_0x4f9534[_0x371d3b(0x1b4)]=_0x2b19e3['AtVFB'];const _0x1d0ccf={};return _0x1d0ccf[_0x371d3b(0x1a5)]=_0x4f9534,_0x4bce4d[_0x371d3b(0x1ad)](HELP_HEADER_MESSAGE['list'][_0x371d3b(0x1bb)])[_0x371d3b(0x1ec)](HELP_FOOTER_MESSAGE)[_0x371d3b(0x1c9)](_0x1d0ccf)[_0x371d3b(0x1a0)](_0x2b19e3[_0x371d3b(0x1e9)])['argv'];},exports['handler']=async function(_0x1c0bd7){const _0x51d788=a14_0x38952b,_0x4d7c12={'dAIxR':function(_0x1a947a){return _0x1a947a();},'SWFuH':function(_0x479682){return _0x479682();},'kxpZx':_0x51d788(0x1c8),'pyqgK':function(_0x4614c5,_0x3a31f7,_0x15d0b0,_0x50eba6,_0x1b5b75,_0x2d9449,_0x108c82){return _0x4614c5(_0x3a31f7,_0x15d0b0,_0x50eba6,_0x1b5b75,_0x2d9449,_0x108c82);},'MNsVC':_0x51d788(0x1e7),'AkuJJ':_0x51d788(0x1ae),'TAmSl':function(_0x17ab1e){return _0x17ab1e();},'qqgsX':_0x51d788(0x19c),'FxAsC':function(_0x5ccdff,_0x2d5328,_0x1d890b){return _0x5ccdff(_0x2d5328,_0x1d890b);},'LSkpX':function(_0x204282,_0x59e0da,_0x46517e,_0x5c7fde,_0x433e7b,_0x19a83c,_0x89edb5){return _0x204282(_0x59e0da,_0x46517e,_0x5c7fde,_0x433e7b,_0x19a83c,_0x89edb5);},'IqRXv':function(_0x23df17,_0x4a1e20){return _0x23df17!==_0x4a1e20;},'BjzeX':function(_0xe113cd,_0x543911){return _0xe113cd!==_0x543911;},'nRbTH':function(_0x317c2e,_0x3e75fb){return _0x317c2e===_0x3e75fb;},'eqYYv':_0x51d788(0x1eb),'FMuXJ':_0x51d788(0x1c0),'vOKkU':_0x51d788(0x1bc),'Itsvz':_0x51d788(0x1ea),'zHQPq':_0x51d788(0x1dd),'QuuCk':function(_0x2b77dd,_0x30c9e3){return _0x2b77dd(_0x30c9e3);},'ZCbwH':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','PfSKG':'unauthorised','SrVcH':_0x51d788(0x1c5),'YQeQM':function(_0x276eec,_0x59e821,_0x2602fb,_0x483cb7,_0x2a2ece,_0x44cb4a,_0x161df6){return _0x276eec(_0x59e821,_0x2602fb,_0x483cb7,_0x2a2ece,_0x44cb4a,_0x161df6);},'oVmfD':_0x51d788(0x1cc)};try{global_registry['requestId']=_0x4d7c12[_0x51d788(0x1d6)](uuidv4);let _0x1660ef=_0x51d788(0x1aa)+AG_API_URL+_0x51d788(0x1dc);_0x1c0bd7[_0x51d788(0x1c3)]&&(_0x1660ef=_0x51d788(0x1aa)+AG_API_URL+_0x51d788(0x1cb));!fs[_0x51d788(0x1d7)](_0x4d7c12['SWFuH'](getCredentialsPath))&&(console[_0x51d788(0x19f)](_0x4d7c12[_0x51d788(0x1d1)]),await _0x4d7c12['pyqgK'](sendInstrumentationEvent,_0x1c0bd7,_0x4d7c12[_0x51d788(0x1c7)],messageTypes[_0x51d788(0x1d9)],_0x4d7c12[_0x51d788(0x1a6)],null,_0x1c0bd7),process['exit'](0x1));const _0x4bb1e9=JSON['parse'](fs[_0x51d788(0x1be)](_0x4d7c12[_0x51d788(0x1db)](getCredentialsPath))),_0x23fbcf={'method':_0x4d7c12['qqgsX'],'headers':_0x4d7c12['FxAsC'](getAuthHeader,_0x4bb1e9['Browserstack']['username'],_0x4bb1e9[_0x51d788(0x1c6)]['password']),'throwHttpErrors':![]};global_registry['bstackUsername']=_0x4bb1e9['Browserstack'][_0x51d788(0x1b5)],global_registry['bstackAccesskey']=_0x4bb1e9[_0x51d788(0x1c6)][_0x51d788(0x1e3)],_0x4d7c12[_0x51d788(0x1b9)](sendInstrumentationEvent,_0x1c0bd7,_0x4d7c12[_0x51d788(0x1c7)],messageTypes[_0x51d788(0x1e6)],null,null,_0x1c0bd7);const _0x2fc291=await _0x4d7c12[_0x51d788(0x1d2)](got,_0x1660ef,_0x23fbcf);if(_0x4d7c12[_0x51d788(0x1c2)](_0x2fc291,null)&&_0x4d7c12['BjzeX'](_0x2fc291,undefined)&&_0x4d7c12[_0x51d788(0x1cf)](_0x2fc291[_0x51d788(0x1a2)],0xc8)){const _0x13551b=JSON[_0x51d788(0x1ce)](_0x2fc291[_0x51d788(0x1de)]);console[_0x51d788(0x1b6)](_0x4d7c12[_0x51d788(0x1cd)]);const _0x2ca2f6=[];_0x2ca2f6[_0x51d788(0x1d0)]([_0x4d7c12[_0x51d788(0x1d5)],_0x4d7c12['vOKkU'],_0x4d7c12[_0x51d788(0x1e5)],_0x4d7c12[_0x51d788(0x1e2)]]),_0x13551b[_0x51d788(0x1c1)](_0x4d3166=>{const _0x7565d=_0x51d788;_0x2ca2f6[_0x7565d(0x1d0)]([_0x4d3166[_0x7565d(0x1af)],_0x4d3166['cloudProvider'],_0x4d3166[_0x7565d(0x1ea)],_0x4d3166[_0x7565d(0x1dd)]]);}),console[_0x51d788(0x1b6)](_0x4d7c12[_0x51d788(0x1e0)](table,_0x2ca2f6)),process[_0x51d788(0x1e4)](0x0);}_0x4d7c12[_0x51d788(0x1cf)](_0x2fc291[_0x51d788(0x1a2)],0x191)&&(console['error'](_0x4d7c12[_0x51d788(0x1b2)]),await _0x4d7c12['pyqgK'](sendInstrumentationEvent,_0x1c0bd7,_0x4d7c12['MNsVC'],messageTypes[_0x51d788(0x1d9)],_0x4d7c12[_0x51d788(0x1b8)],null,_0x1c0bd7),process[_0x51d788(0x1e4)](0x1)),console[_0x51d788(0x19f)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x2fc291)),await _0x4d7c12[_0x51d788(0x1d8)](sendInstrumentationEvent,_0x1c0bd7,_0x4d7c12[_0x51d788(0x1c7)],messageTypes[_0x51d788(0x1d9)],_0x4d7c12[_0x51d788(0x1ba)],_0x2fc291,_0x1c0bd7),process[_0x51d788(0x1e4)](0x1);}catch(_0x417eeb){console[_0x51d788(0x19f)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x417eeb['stack']),await _0x4d7c12['YQeQM'](sendInstrumentationEvent,_0x1c0bd7,_0x4d7c12['MNsVC'],messageTypes[_0x51d788(0x1d9)],_0x4d7c12[_0x51d788(0x1b7)],_0x417eeb,_0x1c0bd7),process['exit'](0x1);}};
1
+ function a14_0x3212(){const _0x1f5b58=['allGridProfiles','stringify','ERROR','7FOvZEC','options','statusCode','GET','2960ueZzFx','sPvSG','log','4203515GEYefo','region','../../config/constants','command','YkvkS','stack','1829192GUGyvf','edVBo','server-error','pLCRK','forEach','existsSync','4163532mgYDUM','GWggp','password','help','https://','got','usage','bstackUsername','488762rIvKma','XdnDf','username','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','exit','parse','xGuEu','gridProfile','cloudProvider','ATVJH','name','Browserstack','push','Failed\x20to\x20list\x20resources!\x20Error:\x20','IxCyB','bTZdB','RAIRg','error','AGxUW','5KmxHRO','list','cloud-provider','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','enpuu','concurrency','32446510aXFdvU','list-grid-profiles-called','desc','argv','epilogue','readFileSync','INFO','boolean','qHEyq','/packages/cli/get-all-grid-profiles','grid-profile-name','2331QSjvJd','JfcKR','requestId','grid-profiles','body','unauthorised','type','6293334VMjYrO','olEYQ','../../utils/utilityMethods','UZetq','OEFit','bstackAccesskey','ZlgEs','mlIra','xkAgq'];a14_0x3212=function(){return _0x1f5b58;};return a14_0x3212();}const a14_0x98a0d3=a14_0x958e;(function(_0x1504ce,_0x3f6ef6){const _0x4b4a20=a14_0x958e,_0x66a41f=_0x1504ce();while(!![]){try{const _0x51e835=-parseInt(_0x4b4a20(0xea))/0x1*(parseInt(_0x4b4a20(0xd7))/0x2)+-parseInt(_0x4b4a20(0xcf))/0x3+parseInt(_0x4b4a20(0xc9))/0x4+parseInt(_0x4b4a20(0xc3))/0x5+parseInt(_0x4b4a20(0xb0))/0x6*(-parseInt(_0x4b4a20(0xbc))/0x7)+parseInt(_0x4b4a20(0xc0))/0x8*(-parseInt(_0x4b4a20(0xfb))/0x9)+parseInt(_0x4b4a20(0xf0))/0xa;if(_0x51e835===_0x3f6ef6)break;else _0x66a41f['push'](_0x66a41f['shift']());}catch(_0x4cb93f){_0x66a41f['push'](_0x66a41f['shift']());}}}(a14_0x3212,0xc06d8));const fs=require('fs'),got=require(a14_0x98a0d3(0xd4)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x98a0d3(0xc5)),{getCredentialsPath,getAuthHeader}=require(a14_0x98a0d3(0xb2)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a14_0x958e(_0x33d156,_0x180b0a){const _0x321207=a14_0x3212();return a14_0x958e=function(_0x958e65,_0x301d7b){_0x958e65=_0x958e65-0xaa;let _0x101e87=_0x321207[_0x958e65];return _0x101e87;},a14_0x958e(_0x33d156,_0x180b0a);}exports[a14_0x98a0d3(0xc6)]=a14_0x98a0d3(0xac),exports[a14_0x98a0d3(0xf2)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x353c7f){const _0x5b5f73=a14_0x98a0d3,_0x51e65f={};_0x51e65f[_0x5b5f73(0xb8)]=_0x5b5f73(0xed),_0x51e65f[_0x5b5f73(0xd8)]=_0x5b5f73(0xf7),_0x51e65f[_0x5b5f73(0xca)]=_0x5b5f73(0xd2);const _0x8ef035=_0x51e65f,_0xdd0aad={};_0xdd0aad['description']=_0x8ef035[_0x5b5f73(0xb8)],_0xdd0aad[_0x5b5f73(0xaf)]=_0x8ef035[_0x5b5f73(0xd8)];const _0x50491d={};return _0x50491d['all-grid-profiles']=_0xdd0aad,_0x353c7f[_0x5b5f73(0xd5)](HELP_HEADER_MESSAGE[_0x5b5f73(0xeb)][_0x5b5f73(0xde)])[_0x5b5f73(0xf4)](HELP_FOOTER_MESSAGE)[_0x5b5f73(0xbd)](_0x50491d)[_0x5b5f73(0xd2)](_0x8ef035['edVBo'])[_0x5b5f73(0xf3)];},exports['handler']=async function(_0x25bb5a){const _0x21db54=a14_0x98a0d3,_0x573d30={'xGuEu':function(_0x5e0d32){return _0x5e0d32();},'qHEyq':_0x21db54(0xda),'IxCyB':function(_0x283d55,_0x224da0,_0x285fc2,_0x4c3e91,_0x17702b,_0x1c20bf,_0x210f90){return _0x283d55(_0x224da0,_0x285fc2,_0x4c3e91,_0x17702b,_0x1c20bf,_0x210f90);},'GWggp':_0x21db54(0xf1),'AGxUW':'init-not-called','LAHmQ':function(_0x86dd0c){return _0x86dd0c();},'ZlgEs':_0x21db54(0xbf),'OEFit':function(_0x9f6d09,_0x491b04,_0x50c049){return _0x9f6d09(_0x491b04,_0x50c049);},'mlIra':function(_0x658b82,_0x3bc11f,_0x285333){return _0x658b82(_0x3bc11f,_0x285333);},'UZetq':function(_0x1fd38e,_0x23e73f){return _0x1fd38e!==_0x23e73f;},'bTZdB':function(_0x2f273a,_0x3ffa1b){return _0x2f273a!==_0x3ffa1b;},'RAIRg':function(_0x3f3138,_0x533482){return _0x3f3138===_0x533482;},'KsVkB':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','kVjJb':_0x21db54(0xfa),'pLCRK':_0x21db54(0xec),'olEYQ':_0x21db54(0xc4),'ZYcjO':_0x21db54(0xef),'sPvSG':function(_0x1e665c,_0x23bc92){return _0x1e665c(_0x23bc92);},'YkvkS':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','hVWAt':_0x21db54(0xae),'enpuu':_0x21db54(0xcb),'ATVJH':function(_0x1267ac,_0x27d2b2,_0x3810e1,_0x4b681c,_0x1310e5,_0x35c23d,_0x27a808){return _0x1267ac(_0x27d2b2,_0x3810e1,_0x4b681c,_0x1310e5,_0x35c23d,_0x27a808);},'JfcKR':'unknown-error'};try{global_registry[_0x21db54(0xab)]=_0x573d30['xGuEu'](uuidv4);let _0x3a31f6=_0x21db54(0xd3)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x25bb5a[_0x21db54(0xb9)]&&(_0x3a31f6='https://'+AG_API_URL+_0x21db54(0xf9));!fs[_0x21db54(0xce)](_0x573d30[_0x21db54(0xdd)](getCredentialsPath))&&(console[_0x21db54(0xe8)](_0x573d30[_0x21db54(0xf8)]),await _0x573d30[_0x21db54(0xe5)](sendInstrumentationEvent,_0x25bb5a,_0x573d30[_0x21db54(0xd0)],messageTypes[_0x21db54(0xbb)],_0x573d30[_0x21db54(0xe9)],null,_0x25bb5a),process['exit'](0x1));const _0x4bc7ec=JSON[_0x21db54(0xdc)](fs[_0x21db54(0xf5)](_0x573d30['LAHmQ'](getCredentialsPath))),_0x47cf3f={'method':_0x573d30[_0x21db54(0xb6)],'headers':_0x573d30[_0x21db54(0xb4)](getAuthHeader,_0x4bc7ec[_0x21db54(0xe2)][_0x21db54(0xd9)],_0x4bc7ec[_0x21db54(0xe2)]['password']),'throwHttpErrors':![]};global_registry[_0x21db54(0xd6)]=_0x4bc7ec[_0x21db54(0xe2)][_0x21db54(0xd9)],global_registry[_0x21db54(0xb5)]=_0x4bc7ec[_0x21db54(0xe2)][_0x21db54(0xd1)],_0x573d30['IxCyB'](sendInstrumentationEvent,_0x25bb5a,_0x573d30[_0x21db54(0xd0)],messageTypes[_0x21db54(0xf6)],null,null,_0x25bb5a);const _0x28711b=await _0x573d30[_0x21db54(0xb7)](got,_0x3a31f6,_0x47cf3f);if(_0x573d30[_0x21db54(0xb3)](_0x28711b,null)&&_0x573d30[_0x21db54(0xe6)](_0x28711b,undefined)&&_0x573d30[_0x21db54(0xe7)](_0x28711b[_0x21db54(0xbe)],0xc8)){const _0x33fad3=JSON['parse'](_0x28711b[_0x21db54(0xad)]);console['log'](_0x573d30['KsVkB']);const _0x212e52=[];_0x212e52[_0x21db54(0xe3)]([_0x573d30['kVjJb'],_0x573d30[_0x21db54(0xcc)],_0x573d30[_0x21db54(0xb1)],_0x573d30['ZYcjO']]),_0x33fad3[_0x21db54(0xcd)](_0x27a0b1=>{const _0x52c85f=_0x21db54;_0x212e52[_0x52c85f(0xe3)]([_0x27a0b1[_0x52c85f(0xe1)],_0x27a0b1[_0x52c85f(0xdf)],_0x27a0b1[_0x52c85f(0xc4)],_0x27a0b1[_0x52c85f(0xef)]]);}),console[_0x21db54(0xc2)](_0x573d30[_0x21db54(0xc1)](table,_0x212e52)),process[_0x21db54(0xdb)](0x0);}_0x573d30[_0x21db54(0xe7)](_0x28711b['statusCode'],0x191)&&(console[_0x21db54(0xe8)](_0x573d30[_0x21db54(0xc7)]),await _0x573d30[_0x21db54(0xe5)](sendInstrumentationEvent,_0x25bb5a,_0x573d30[_0x21db54(0xd0)],messageTypes['ERROR'],_0x573d30['hVWAt'],null,_0x25bb5a),process[_0x21db54(0xdb)](0x1)),console[_0x21db54(0xe8)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x21db54(0xba)](_0x28711b)),await _0x573d30['IxCyB'](sendInstrumentationEvent,_0x25bb5a,_0x573d30[_0x21db54(0xd0)],messageTypes[_0x21db54(0xbb)],_0x573d30[_0x21db54(0xee)],_0x28711b,_0x25bb5a),process[_0x21db54(0xdb)](0x1);}catch(_0x561a3a){console[_0x21db54(0xe8)](_0x21db54(0xe4)+_0x561a3a[_0x21db54(0xc8)]),await _0x573d30[_0x21db54(0xe0)](sendInstrumentationEvent,_0x25bb5a,_0x573d30[_0x21db54(0xd0)],messageTypes[_0x21db54(0xbb)],_0x573d30[_0x21db54(0xaa)],_0x561a3a,_0x25bb5a),process[_0x21db54(0xdb)](0x1);}};