browserstack-node-sdk 1.46.4 → 1.46.5

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 (185) 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_pb.d.ts +8 -0
  41. package/generated/sdk-messages_pb.js +73 -1
  42. package/package.json +1 -1
  43. package/src/ai-sdk-node/bundle.js +1 -1
  44. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  45. package/src/bin/codeceptjs/command.js +1 -1
  46. package/src/bin/codeceptjs/helper.js +1 -1
  47. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  48. package/src/bin/cucumber-js/command.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  50. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test.setup.js +1 -1
  69. package/src/bin/jest/test_before.setup.js +1 -1
  70. package/src/bin/launcher/launcher.js +1 -1
  71. package/src/bin/load/index.js +1 -1
  72. package/src/bin/load/loadUtils.js +1 -1
  73. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  74. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  75. package/src/bin/mocha/command.js +1 -1
  76. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  77. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  78. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  79. package/src/bin/mocha/test.setup.js +1 -1
  80. package/src/bin/nightwatch/command.js +1 -1
  81. package/src/bin/playwright/accessibility-helper.js +1 -1
  82. package/src/bin/playwright/command.js +1 -1
  83. package/src/bin/playwright/globalSetup.js +1 -1
  84. package/src/bin/playwright/mock-process.js +1 -1
  85. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  86. package/src/bin/playwright/patches.js +1 -1
  87. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  88. package/src/bin/playwright/reporter/reporter.js +1 -1
  89. package/src/bin/playwright/reporter/test-details.js +1 -1
  90. package/src/bin/playwright/sessionDetails.js +1 -1
  91. package/src/bin/runner.js +1 -1
  92. package/src/bin/setup.js +1 -1
  93. package/src/bin/test-runner/index.js +1 -1
  94. package/src/bin/test-runner/runTest.js +1 -1
  95. package/src/bin/test-runner/testWorker.js +1 -1
  96. package/src/bin/utils/apiUtilityMethods.js +1 -1
  97. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  98. package/src/bin/utils/constants.js +1 -1
  99. package/src/bin/utils/log4jsAppender.js +1 -1
  100. package/src/bin/utils/logPatcher.js +1 -1
  101. package/src/bin/utils/logReportingAPI.js +1 -1
  102. package/src/bin/utils/playwright-patcher.js +1 -1
  103. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  104. package/src/bin/utils/sharedUtils.js +1 -1
  105. package/src/bin/v2/TestInfo.js +1 -1
  106. package/src/bin/v2/browserstackCLI.js +1 -1
  107. package/src/bin/v2/cliUtils.js +1 -1
  108. package/src/bin/v2/customTagManager.js +1 -1
  109. package/src/bin/v2/eventDispatcher.js +1 -1
  110. package/src/bin/v2/framework/automationFramework.js +1 -1
  111. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  112. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  113. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  115. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  116. package/src/bin/v2/framework/testFramework.js +1 -1
  117. package/src/bin/v2/grpcClient.js +1 -1
  118. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  120. package/src/bin/v2/instances/trackedContext.js +1 -1
  121. package/src/bin/v2/instances/trackedInstance.js +1 -1
  122. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  123. package/src/bin/v2/modules/baseModule.js +1 -1
  124. package/src/bin/v2/modules/observabilityModule.js +1 -1
  125. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  126. package/src/bin/v2/modules/testhubModule.js +1 -1
  127. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  128. package/src/bin/v2/state/hookState.js +1 -1
  129. package/src/bin/v2/state/testFrameworkState.js +1 -1
  130. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  131. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  132. package/src/bin/vanilla-js/command.js +1 -1
  133. package/src/browserStackSdk.js +1 -1
  134. package/src/helpers/BrowserStackSetup.js +1 -1
  135. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  136. package/src/helpers/accessibility-automation/constants.js +1 -1
  137. package/src/helpers/accessibility-automation/helper.js +1 -1
  138. package/src/helpers/accessibility-automation/scripts.js +1 -1
  139. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  140. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  141. package/src/helpers/ats/constants.js +1 -1
  142. package/src/helpers/ats/helper.js +1 -1
  143. package/src/helpers/capsMapping.js +1 -1
  144. package/src/helpers/central-scanner/constants.js +1 -1
  145. package/src/helpers/central-scanner/helpers.js +1 -1
  146. package/src/helpers/classLogger.js +1 -1
  147. package/src/helpers/globals.js +1 -1
  148. package/src/helpers/helper.js +1 -1
  149. package/src/helpers/logger.js +1 -1
  150. package/src/helpers/metadata.js +1 -1
  151. package/src/helpers/patchHelper.js +1 -1
  152. package/src/helpers/patchHelpers.js +1 -1
  153. package/src/helpers/percy/Percy.js +1 -1
  154. package/src/helpers/percy/PercyBinary.js +1 -1
  155. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  156. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  157. package/src/helpers/percy/PercySDK.js +1 -1
  158. package/src/helpers/percy/index.js +1 -1
  159. package/src/helpers/percy/utils.js +1 -1
  160. package/src/helpers/performance/constants.js +1 -1
  161. package/src/helpers/performance/performance-tester.js +1 -1
  162. package/src/helpers/playwright-helper.js +1 -1
  163. package/src/helpers/processHelper.js +1 -1
  164. package/src/helpers/request-spy.js +1 -1
  165. package/src/helpers/setKeepAlive.js +1 -1
  166. package/src/helpers/test-observability/constants.js +1 -1
  167. package/src/helpers/test-observability/error-handler.js +1 -1
  168. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  169. package/src/helpers/test-observability/sessionHandler.js +1 -1
  170. package/src/helpers/test-observability/utils.js +1 -1
  171. package/src/helpers/test-orchestration/constants.js +1 -1
  172. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  173. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  174. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  175. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  176. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  177. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  178. package/src/helpers/testhub/constants.js +1 -1
  179. package/src/helpers/testhub/testhubHandler.js +1 -1
  180. package/src/helpers/testhub/utils.js +1 -1
  181. package/src/helpers/timeoutPromise.js +1 -1
  182. package/src/helpers/utilities.js +1 -1
  183. package/src/helpers/w3cMapping.js +1 -1
  184. package/src/hubAllocationMethods.js +1 -1
  185. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x10adfa=a9_0x1f92;(function(_0x160ede,_0x3ecd90){const _0x5dc5e5=a9_0x1f92,_0x2e1dd6=_0x160ede();while(!![]){try{const _0x3ac836=parseInt(_0x5dc5e5(0x103))/0x1*(-parseInt(_0x5dc5e5(0x15a))/0x2)+parseInt(_0x5dc5e5(0x193))/0x3*(-parseInt(_0x5dc5e5(0x18c))/0x4)+parseInt(_0x5dc5e5(0x230))/0x5+parseInt(_0x5dc5e5(0x1f1))/0x6*(parseInt(_0x5dc5e5(0x1be))/0x7)+-parseInt(_0x5dc5e5(0x23e))/0x8*(parseInt(_0x5dc5e5(0x231))/0x9)+-parseInt(_0x5dc5e5(0x15f))/0xa+parseInt(_0x5dc5e5(0x162))/0xb*(parseInt(_0x5dc5e5(0x206))/0xc);if(_0x3ac836===_0x3ecd90)break;else _0x2e1dd6['push'](_0x2e1dd6['shift']());}catch(_0x1ad7dd){_0x2e1dd6['push'](_0x2e1dd6['shift']());}}}(a9_0x3790,0x64564));function a9_0x3790(){const _0x5ad512=['Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','replace','qBBbt','2|4|3|0|1','TArNQ','sdPPr','gridProfile','GRRsk','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','LoFLI','xHYdc','QVaPd','1|5|0|8|7|4|3|2|6','skipTlsCertVerify','description','IXwYr','zQxVa','dBjTO','KLyFf','OgddV','OPJyk','sFiAX','existsSync','https','tetiC','qKKRj','name','skip-tls-cert-verify','ixGjp','newCluster','got','connectionTimeout','zfnzG','JOEzS','js-yaml','loadAll','toLowerCase','ToBJe','browserstack','Hub\x20HA\x20setup\x20completed\x20successfully.','CLI_RUN_FINISHED','Browserstack','eGDad','QYOwm','clusterName','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','getGridHostname','IACLP','jXeKg','INFO','WebSocket','\x20using\x20\x27','8|0|4|6|3|7|2|5|1','zoKtr','gCbtj','hub-ha-deployments-failed','path','HXAOb','BSyxM','XWHTc','bitnami-kafka.yaml','createNamespace','Will\x20be\x20spawning\x20the\x20grid\x20','PnUkY','AAOdk','xSpeL','namespace','VTROn','YCJza','iFqDf','IkLau','isVPCPresent','isNewAWSCluster','createOtherResources','labels','Spawning\x20Grid\x20on\x20the\x20Cluster','AlzcK','tLuxW','length','Sjxil','spec','206iUKyNW','gridProfiles','Subnets:\x20','JXXKy','Cluster\x20created\x20successfully','5499430JOZzuZ','TaPlt','usage','1402291LsTdcm','IcHWI','Ldpqm','sendResourceDataToHST','error','Found\x20VPC:\x20','MXQhu','dlaTn','Deleting\x20the\x20CloudFormation\x20Stacks','minNodes','TfbAu','pSSiX','EqXvO','ingress-nginx-controller','readFileAsync','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','Spawning\x20grid\x20on\x20to\x20the\x20cluster','utf-8','egbzL','s3bucket','Cluster:\x20','Namespace\x20created','SaedH','uuid','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','YRUAf','OPecn','defaultGridProfile','YnQiW','updateClusterAlreadyPresent','route53','Found\x20Subnets:\x20','Grid\x20can\x20be\x20accessed\x20at:\x20','concurrency','qyqfZ','qdpct','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','epilogue','PnhAn','command','enableHubHa','GyldU','12AdjHVV','../../config/logger','type','KdMzk','getResourceClientId','bVBCu','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','117933BGTONv','stack','create-grid-checks-non-200','HWwUF','includes','WIgPR','/packages/cli/get-grid-url?gridIdentifier=','://','Added\x20Secret\x20Mapping','grid-name','statusCode','jvZWF','SsUwD','Creating\x20Hub\x20HA\x20resources','UeNHH','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','gLSkd','delay','UcubN','SDINB','JMrKy','ECjZL','LDtUb','cloud-provider','CLI\x20run\x20finished:\x20','FtoBN','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','grid','DMsZg','sendEventToBackend','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','cGWLM','info','\x20in\x20existing\x20cluster\x20\x27','securityGroups','Grid\x20spawned\x20on\x20the\x20cluster','QcKul','DbmIi','ERROR','ixtil','JlwMA','ncovN','password','1319661KUCfSg','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','kafkaUploader','maxNodes','../..','FekGS','Mzlyk','hVwnx','akuYm','DVxas','subnets','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','YRwUh','dDsVv','Grid\x20profile\x20fetched\x20from\x20backend','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','srMht','HpcYj','reconnecting-websocket','oWdjA','HAZFa','wiLcp','private-grid','http','uMIep','osFIT','redisPassword','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','create-grid-checks-grid-already-exists','bstackAccesskey','template','metadata','aUbIX','nUUxE','nnrtm','ingress-nginx','VJytS','isPrivateGrid','stringify','IEZaz','fMYTt','FGGnJ','string','GET','split','oRlnj','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','QvcJI','uploaderVersion','setupAutoscaler','cJIfV','6gsydaR','ScCTG','true','prespawned-cluster-args-not-passed','WoEVt','IrIVr','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','QZTUV','bsQdS','vpc','jHJsV','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','Added\x20Kafka\x20deployment.','JPAxI','qoGmg','boolean','HrHiW','clusterRegion','HVfBh','/packages/cli/create-grid-checks','privateGrid','84CwnNvM','pjWQE','FgskG','message','pASVd','../../cloudproviders/utils','rlHdx','WwEkx','argv','vVpcr','desc','tvKlv','hubHaNameSpace','XraJb','OTjLj','instanceType','LsMPn','dIgWB','jaWSe','AbBEO','../../utils/webSocketUtils','ITEZR','join','exit','TlZZp','IVevx','LWnUk','templates','nosIt','grid-profile','Flag\x20to\x20enable\x20Hub\x20HA','https://','cZtDa','jFdSz','UKamO','Ppfju','handler','create-grid-checks-auth-failed','zJVQz','bitnami-redis.yaml','Creating\x20namespace','aNOBB','1934120svUmlD','6363oJQhdL','Epyd5nXbRK','dUqtp','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','LrinI','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','browserVersion','addListeners','Skip\x20insecure\x20cert\x20verification.','MSLbU','efs-csi','default','gHmDT','3336WbaDOt','hWDLu','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','pre-spawned-invalid-subnets','bqObh','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','create','annotations','yszty','EyokE','WFqxX','setupNewCluster','RncmG','DWBik','aibFX','ijqMd','HlRng','WLIqf','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','igExk','kafkaPassword','create-grid-checks-invalid-profile','<UsernamePlaceholder>','bTyYT','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','region','CnHMK','CPfuY','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Create\x20a\x20private/public\x20grid.','RoucZ','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','get-grid-url-null-response','HPKXc','rVcEQ','../../utils/instrumentationUtils','rusrs','sNQah','oLriY','ohqMC','clusterAutoupgrade','../../utils/createk8sClient','non-aws-azure-cluster','cloudProvider','help','HDbdb','parse','alreadyPresent','clusterAutoUpgrade','options','Spawning\x20the\x20grid\x20','yAlDF','IPIIA','cluster-name','HajhP','LOG','jkUVh','DBSvT','FoYkQ','username','sjScD','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','SblaI','pZsXU','deleteCluster','isXvy','hubVersion','bstackUsername','iQwrL','rbIlC','UdixU','PVlHU','MYYrb','gridName','yffNs','ONuXi','YFKrI','wseLg','UdfdL','premium-rwo','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','vcKrU','LQwDP','QOTow','ppIYV','PpFlN','../../config/constants','kLiNo','zOIqV','grid-spawning-failed','setupHubHa','Lubux','fCDAH','MqnjO','oQice','KOzFB','iKUJh','EoNQj','zqqDh','OYyyA','get-grid-url-auth-failed','tirRC','Cluster\x20','PiHKZ','body','AoPNk','turboscale-uploader.yaml','UkRNzNYCBU','xoilt','zxIxr','UPcXZ','warn','MhJZU','sMEGc','ciPQT','nCbcC','2|1|4|3|0','aRCRY','913WlHIaX','oddpp','Adding\x20Websocket\x20listeners','Adding\x20Turboscale\x20Uploader\x20deployment...','znyZS'];a9_0x3790=function(){return _0x5ad512;};return a9_0x3790();}function a9_0x1f92(_0x22c1b6,_0x44cd89){const _0x379054=a9_0x3790();return a9_0x1f92=function(_0x1f9271,_0x3a0734){_0x1f9271=_0x1f9271-0xe8;let _0x340538=_0x379054[_0x1f9271];return _0x340538;},a9_0x1f92(_0x22c1b6,_0x44cd89);}const fs=require('fs'),ws=require('ws'),path=require(a9_0x10adfa(0x141)),yaml=require(a9_0x10adfa(0x12b)),ReconnectingWebSocket=require(a9_0x10adfa(0x1d0)),got=require(a9_0x10adfa(0x127)),{v4:uuidv4}=require(a9_0x10adfa(0x179)),webSocketUtils=require(a9_0x10adfa(0x21a)),{logger}=require(a9_0x10adfa(0x18d)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a9_0x10adfa(0x20b)),{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_0x10adfa(0x294)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x10adfa(0x267)),{sendInstrumentationEvent}=require(a9_0x10adfa(0x261));exports[a9_0x10adfa(0x189)]=a9_0x10adfa(0x1ae),exports[a9_0x10adfa(0x210)]='Create\x20a\x20new\x20Automation\x20grid.',exports['builder']=function(_0x5dcc02){const _0x4d424d=a9_0x10adfa,_0x2983bd={};_0x2983bd[_0x4d424d(0x20a)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x2983bd['HlRng']='string',_0x2983bd[_0x4d424d(0x1f2)]=_0x4d424d(0x25a),_0x2983bd[_0x4d424d(0x19f)]=_0x4d424d(0x28e),_0x2983bd['HPKXc']=_0x4d424d(0x236),_0x2983bd[_0x4d424d(0x208)]=_0x4d424d(0x27b),_0x2983bd[_0x4d424d(0x1ac)]=_0x4d424d(0x25b),_0x2983bd[_0x4d424d(0x13f)]=_0x4d424d(0x239),_0x2983bd[_0x4d424d(0x271)]='boolean',_0x2983bd[_0x4d424d(0x1cf)]=_0x4d424d(0x224),_0x2983bd['bVBCu']=_0x4d424d(0x1ad),_0x2983bd[_0x4d424d(0x17e)]=_0x4d424d(0x26a);const _0x39cddb=_0x2983bd,_0x54c801={};_0x54c801[_0x4d424d(0x117)]=_0x39cddb[_0x4d424d(0x20a)],_0x54c801['type']=_0x39cddb[_0x4d424d(0x24e)];const _0x3f72a9={};_0x3f72a9[_0x4d424d(0x117)]=_0x39cddb[_0x4d424d(0x1f2)],_0x3f72a9[_0x4d424d(0x18e)]=_0x39cddb[_0x4d424d(0x24e)];const _0x4d6ddd={};_0x4d6ddd[_0x4d424d(0x117)]=_0x39cddb[_0x4d424d(0x19f)],_0x4d6ddd[_0x4d424d(0x18e)]=_0x39cddb[_0x4d424d(0x24e)];const _0x4aa58a={};_0x4aa58a[_0x4d424d(0x117)]=_0x39cddb[_0x4d424d(0x25f)],_0x4aa58a[_0x4d424d(0x18e)]=_0x39cddb['HlRng'];const _0xe9133c={};_0xe9133c['description']=_0x39cddb[_0x4d424d(0x208)],_0xe9133c[_0x4d424d(0x18e)]=_0x39cddb[_0x4d424d(0x24e)];const _0x5a840d={};_0x5a840d['description']=_0x39cddb[_0x4d424d(0x1ac)],_0x5a840d['type']=_0x39cddb[_0x4d424d(0x24e)];const _0x10c3f2={};_0x10c3f2[_0x4d424d(0x117)]=_0x39cddb[_0x4d424d(0x13f)],_0x10c3f2[_0x4d424d(0x18e)]=_0x39cddb[_0x4d424d(0x271)],_0x10c3f2[_0x4d424d(0x23c)]=![];const _0x2ca2e0={};_0x2ca2e0[_0x4d424d(0x117)]=_0x39cddb[_0x4d424d(0x1cf)],_0x2ca2e0[_0x4d424d(0x18e)]=_0x39cddb[_0x4d424d(0x271)],_0x2ca2e0[_0x4d424d(0x23c)]=![];const _0x1bca3e={};_0x1bca3e[_0x4d424d(0x117)]=_0x39cddb[_0x4d424d(0x191)],_0x1bca3e[_0x4d424d(0x18e)]=_0x39cddb[_0x4d424d(0x271)],_0x1bca3e[_0x4d424d(0x23c)]=![];const _0x4e0c2d={};return _0x4e0c2d[_0x4d424d(0x19c)]=_0x54c801,_0x4e0c2d[_0x4d424d(0x223)]=_0x3f72a9,_0x4e0c2d['cluster-name']=_0x4d6ddd,_0x4e0c2d[_0x4d424d(0x1aa)]=_0x4aa58a,_0x4e0c2d[_0x4d424d(0x257)]=_0xe9133c,_0x4e0c2d[_0x4d424d(0x1d4)]=_0x5a840d,_0x4e0c2d[_0x4d424d(0x124)]=_0x10c3f2,_0x4e0c2d['hub-ha']=_0x2ca2e0,_0x4e0c2d['cluster-autoupgrade']=_0x1bca3e,_0x5dcc02[_0x4d424d(0x161)](HELP_HEADER_MESSAGE[_0x4d424d(0x244)])[_0x4d424d(0x187)](HELP_FOOTER_MESSAGE)[_0x4d424d(0x26f)](_0x4e0c2d)['help'](_0x39cddb[_0x4d424d(0x17e)])['argv'];},exports[a9_0x10adfa(0x22a)]=async function(_0xa79402){const _0xfaccb2=a9_0x10adfa,_0x2c6070={'xoilt':_0xfaccb2(0x1d5),'pZsXU':_0xfaccb2(0xfc),'FoYkQ':function(_0x31ad58,_0x39eef4){return _0x31ad58===_0x39eef4;},'UPcXZ':'azurefile-csi-premium','SblaI':function(_0x46831d,_0x268adc){return _0x46831d(_0x268adc);},'HAZFa':'1|3|0|2|4','ixGjp':_0xfaccb2(0xf8),'DnrXf':'Enabling\x20Hub\x20HA\x20flow','KdMzk':_0xfaccb2(0x232),'JXXKy':_0xfaccb2(0x12f),'TvuBG':'15|1|6|0|3|9|14|2|11|13|7|5|10|8|12|4','OPecn':function(_0x21f0a6,_0x275263){return _0x21f0a6(_0x275263);},'nUUxE':function(_0x1d71c0,_0x29af56){return _0x1d71c0!==_0x29af56;},'oLriY':function(_0x2b15a3,_0x448d2f,_0x20fccf,_0x368860,_0x3ee13b,_0x8b1b8f,_0x39081e,_0x3c90c8,_0x5d8fcc,_0x509588,_0x5a6641,_0x57b2f6,_0x4a9d82){return _0x2b15a3(_0x448d2f,_0x20fccf,_0x368860,_0x3ee13b,_0x8b1b8f,_0x39081e,_0x3c90c8,_0x5d8fcc,_0x509588,_0x5a6641,_0x57b2f6,_0x4a9d82);},'HDbdb':'error','kQsia':_0xfaccb2(0x28d),'WFqxX':_0xfaccb2(0x1f3),'AbBEO':_0xfaccb2(0x23c),'sjScD':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','QOTow':_0xfaccb2(0x1e8),'bsQdS':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','IeoSY':_0xfaccb2(0x28e),'jCqXe':_0xfaccb2(0x236),'jaWSe':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','UeNHH':_0xfaccb2(0x25b),'igExk':_0xfaccb2(0x239),'wiLcp':_0xfaccb2(0x200),'TaPlt':_0xfaccb2(0x224),'PpFlN':_0xfaccb2(0x1ad),'WIgPR':_0xfaccb2(0x26a),'PVlHU':_0xfaccb2(0x1ec),'KLyFf':_0xfaccb2(0x120),'zqqDh':function(_0xe95473,_0x369fa1){return _0xe95473(_0x369fa1);},'NPCIC':_0xfaccb2(0x115),'zJVQz':'CLI\x20run\x20started','KOzFB':function(_0x48fe51){return _0x48fe51();},'cHvPa':function(_0x5667aa){return _0x5667aa();},'oddpp':_0xfaccb2(0x24c),'IVevx':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','YRwUh':function(_0x315618,_0x3d50be,_0x242caa,_0x37a59d,_0x435a59,_0x2dbc4a,_0x59f6be){return _0x315618(_0x3d50be,_0x242caa,_0x37a59d,_0x435a59,_0x2dbc4a,_0x59f6be);},'zOIqV':'create-grid-called','hWDLu':'init-not-called','iKUJh':function(_0x1d1ee0){return _0x1d1ee0();},'jcgYp':_0xfaccb2(0x254),'JMrKy':'<PasswordPlaceholder>','qoGmg':_0xfaccb2(0x105),'kLiNo':function(_0x59dfcd,_0x121bb4){return _0x59dfcd===_0x121bb4;},'tetiC':'Btafv','XraJb':_0xfaccb2(0xfa),'EoNQj':function(_0x57572e,_0x2a3197){return _0x57572e===_0x2a3197;},'qdpct':_0xfaccb2(0x277),'akuYm':_0xfaccb2(0x1b1),'jvZWF':function(_0x39abd6,_0xc8cd5c,_0x5a9e20,_0x4d1b98,_0x551d45,_0x32d27b,_0x37c7fc,_0x45e2a7){return _0x39abd6(_0xc8cd5c,_0x5a9e20,_0x4d1b98,_0x551d45,_0x32d27b,_0x37c7fc,_0x45e2a7);},'sdPPr':_0xfaccb2(0x1f4),'IXwYr':function(_0x5d4ebb,_0x1f5a32){return _0x5d4ebb===_0x1f5a32;},'DWBik':_0xfaccb2(0x1c7),'ECjZL':'TzBWL','VJytS':_0xfaccb2(0x1c9),'oOKSG':_0xfaccb2(0x268),'fMYTt':_0xfaccb2(0xea),'QZTUV':function(_0x147ba0,_0x432718,_0x2b56dc,_0x32f308,_0x425a80,_0x5ff2af,_0x24e4e2){return _0x147ba0(_0x432718,_0x2b56dc,_0x32f308,_0x425a80,_0x5ff2af,_0x24e4e2);},'wZJxw':function(_0x14a3ba,_0x1ad365){return _0x14a3ba!==_0x1ad365;},'OTjLj':'HVqEP','UdfdL':'dLOre','LsMPn':function(_0x696c24,_0x40d0ba){return _0x696c24===_0x40d0ba;},'YRUAf':_0xfaccb2(0xeb),'cJIfV':_0xfaccb2(0x24f),'IkLau':_0xfaccb2(0x184),'tirRC':_0xfaccb2(0x1e9),'eGDad':function(_0x5714a0,_0x16aed5,_0x12269c){return _0x5714a0(_0x16aed5,_0x12269c);},'Lubux':function(_0x2b3fa5,_0x2cd1ed){return _0x2b3fa5===_0x2cd1ed;},'jkUVh':'tuBKf','OPJyk':_0xfaccb2(0x28a),'bqObh':function(_0xe4158e,_0x3dd4ac){return _0xe4158e===_0x3dd4ac;},'ONuXi':_0xfaccb2(0x113),'egbzL':function(_0x1da022,_0x1fed1d,_0x2b794b){return _0x1da022(_0x1fed1d,_0x2b794b);},'osFIT':function(_0x31d562,_0x4baada){return _0x31d562===_0x4baada;},'AvlsH':_0xfaccb2(0x28f),'xSpeL':_0xfaccb2(0x186),'jHJsV':function(_0x406589,_0x8764d9,_0x5a3567,_0xe79456,_0x3779e8,_0x19c292,_0x4693ae,_0x494ccf){return _0x406589(_0x8764d9,_0x5a3567,_0xe79456,_0x3779e8,_0x19c292,_0x4693ae,_0x494ccf);},'sFiAX':'create-grid-checks-null-response','UdixU':function(_0x7e7c0,_0x284c73){return _0x7e7c0!==_0x284c73;},'MhJZU':_0xfaccb2(0x144),'LDtUb':_0xfaccb2(0x1cd),'wseLg':_0xfaccb2(0x22b),'MXQhu':function(_0x19053f,_0x451310){return _0x19053f===_0x451310;},'rVcEQ':'HmRCH','SAXrh':_0xfaccb2(0x1d1),'aUbIX':function(_0x1270ef,_0x38f184,_0x240fbc,_0x7cba28,_0x1d0524,_0x4394b1,_0x7878e5,_0x3ed477){return _0x1270ef(_0x38f184,_0x240fbc,_0x7cba28,_0x1d0524,_0x4394b1,_0x7878e5,_0x3ed477);},'PiHKZ':_0xfaccb2(0x195),'DMsZg':_0xfaccb2(0x1cc),'rbIlC':_0xfaccb2(0x1f5),'MERcl':_0xfaccb2(0x282),'gLSkd':function(_0x573c81,_0x51d8b2,_0x51fa06,_0x7bf67b,_0x1999cb,_0x3013c6,_0x5c1dbe,_0x1e4cfd){return _0x573c81(_0x51d8b2,_0x51fa06,_0x7bf67b,_0x1999cb,_0x3013c6,_0x5c1dbe,_0x1e4cfd);},'fQoxW':_0xfaccb2(0x1da),'dIgWB':_0xfaccb2(0x258),'wCgUG':function(_0x68ee30,_0xfbb22e){return _0x68ee30===_0xfbb22e;},'QVaPd':_0xfaccb2(0x20f),'znyZS':_0xfaccb2(0x274),'xQcNX':_0xfaccb2(0x10b),'FGGnJ':function(_0xdd1d31,_0x1d4a2c){return _0xdd1d31===_0x1d4a2c;},'sMEGc':function(_0x1dff54,_0xf984a5){return _0x1dff54!==_0xf984a5;},'HWwUF':'cJBTN','HVfBh':function(_0x18c1bd,_0x3a88f4){return _0x18c1bd===_0x3a88f4;},'QcKul':function(_0x5c7410,_0x44c23c){return _0x5c7410===_0x44c23c;},'oRlnj':_0xfaccb2(0x229),'QvcJI':'xOuEA','gNAnY':_0xfaccb2(0x256),'SDINB':_0xfaccb2(0x253),'TlZZp':function(_0x51cbee,_0x52e948){return _0x51cbee===_0x52e948;},'Mzlyk':_0xfaccb2(0x22f),'SaedH':function(_0x153195,_0x4b6e99){return _0x153195===_0x4b6e99;},'IEZaz':'gvkCW','oPVQK':function(_0x3cc0f6,_0x2401ac){return _0x3cc0f6!==_0x2401ac;},'TfbAu':function(_0x118958,_0x1e4283){return _0x118958!==_0x1e4283;},'nnrtm':_0xfaccb2(0x119),'RncmG':_0xfaccb2(0x122),'JOEzS':function(_0x522608,_0x164c0d,_0xc86b01,_0x5c8194,_0x4d383e,_0x33f13c,_0x194b42,_0x5e7af6,_0x1ddcbc,_0x131a40,_0x4fadb0,_0x3600c3,_0x303c4d){return _0x522608(_0x164c0d,_0xc86b01,_0x5c8194,_0x4d383e,_0x33f13c,_0x194b42,_0x5e7af6,_0x1ddcbc,_0x131a40,_0x4fadb0,_0x3600c3,_0x303c4d);},'ixtil':function(_0x2267c0,_0x15772e){return _0x2267c0===_0x15772e;},'uMIep':'IEMpd','Sjxil':function(_0x2e4398,_0x54699c){return _0x2e4398(_0x54699c);},'PnhAn':function(_0x127dc9,_0x4cc181){return _0x127dc9===_0x4cc181;},'AoPNk':'DkhtQ','rusrs':function(_0x1f5c31,_0x4e4583){return _0x1f5c31!==_0x4e4583;},'IACLP':_0xfaccb2(0x222),'HXAOb':function(_0x1a0682,_0x129fe6,_0x46b070,_0x5a63ae,_0x275519,_0x187e6b,_0x15b4ae,_0x565660,_0x5415b7,_0xd922a7,_0x35506a,_0x2139e4,_0x4492cd){return _0x1a0682(_0x129fe6,_0x46b070,_0x5a63ae,_0x275519,_0x187e6b,_0x15b4ae,_0x565660,_0x5415b7,_0xd922a7,_0x35506a,_0x2139e4,_0x4492cd);},'TArNQ':function(_0x39c267,_0x3c8bdf){return _0x39c267===_0x3c8bdf;},'YCJza':_0xfaccb2(0x14c),'DbmIi':_0xfaccb2(0x134),'EyokE':_0xfaccb2(0x235),'ciPQT':'rGBPz','cZtDa':_0xfaccb2(0x13d),'ogiCd':function(_0x4a3909,_0x89d3a2,_0x263a13,_0x269083,_0x46babe,_0x3fa165,_0xf0d2a7){return _0x4a3909(_0x89d3a2,_0x263a13,_0x269083,_0x46babe,_0x3fa165,_0xf0d2a7);},'VcfcG':_0xfaccb2(0x255),'gHmDT':_0xfaccb2(0x1bc),'srMht':function(_0x50a67f,_0x3293bf){return _0x50a67f===_0x3293bf;},'FekGS':_0xfaccb2(0x1bb),'cGWLM':_0xfaccb2(0x240),'ohqMC':function(_0x5b020a,_0x54445a){return _0x5b020a!=_0x54445a;},'BXIDo':function(_0x1dadba,_0x176825){return _0x1dadba>_0x176825;},'sNQah':_0xfaccb2(0x1bf),'tvKlv':'pre-spawned-subnets-not-selected','nCbcC':function(_0x30d6d8,_0x107688){return _0x30d6d8===_0x107688;},'EqXvO':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','GRRsk':function(_0x25f290,_0xd16028,_0xc26c61,_0x5f4ea9,_0xf8457,_0x2b524e,_0x29c29b,_0x4d0ecd){return _0x25f290(_0xd16028,_0xc26c61,_0x5f4ea9,_0xf8457,_0x2b524e,_0x29c29b,_0x4d0ecd);},'RoucZ':'pre-spawned-invalid-vpc','LQwDP':function(_0x595009,_0x33d26c){return _0x595009===_0x33d26c;},'AlzcK':_0xfaccb2(0x241),'dBjTO':_0xfaccb2(0x101),'rlHdx':_0xfaccb2(0x15e),'pjWQE':'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.','yBCLJ':function(_0xf7eafe,_0x3dc323,_0x77dcd9){return _0xf7eafe(_0x3dc323,_0x77dcd9);},'fCDAH':function(_0x10ff13,_0x2a71c2){return _0x10ff13===_0x2a71c2;},'xAgTN':function(_0xd30609,_0x6436e8){return _0xd30609===_0x6436e8;},'PGNTY':_0xfaccb2(0x1a0),'dZUQR':'Adding\x20Secret\x20Mapping','isXvy':_0xfaccb2(0x1c2),'OYyyA':_0xfaccb2(0x221),'JPAxI':'hubharesources','LoFLI':'browserstack-secret.yaml','IcHWI':_0xfaccb2(0x173),'ijqMd':function(_0x3ee689,_0x4055fa){return _0x3ee689(_0x4055fa);},'dUqtp':function(_0x38447c,_0x25ff2e,_0x358bf3){return _0x38447c(_0x25ff2e,_0x358bf3);},'fehTr':_0xfaccb2(0x19b),'BSyxM':_0xfaccb2(0x23b),'Ldpqm':'Adding\x20Redis\x20deployment...','PnUkY':_0xfaccb2(0x22d),'tLuxW':'Added\x20Redis\x20deployment.','iFqDf':'Adding\x20Kafka\x20deployment...','HrHiW':_0xfaccb2(0x145),'aRCRY':function(_0x4cbb24,_0x1b6c75,_0x5e748f){return _0x4cbb24(_0x1b6c75,_0x5e748f);},'LWnUk':_0xfaccb2(0x1fd),'yszty':_0xfaccb2(0x106),'RsuBo':_0xfaccb2(0xf7),'RRnIq':function(_0x454681,_0xc9c73a){return _0x454681===_0xc9c73a;},'hVwnx':function(_0x586b3e,_0xa2cf5b,_0x292305){return _0x586b3e(_0xa2cf5b,_0x292305);},'GyldU':'Added\x20Turboscale\x20Uploader\x20deployment.','AAOdk':'Created\x20Hub\x20HA\x20resources','ppIYV':_0xfaccb2(0x130),'jXeKg':'0|1|3|2|4','UcubN':function(_0x1c34ca,_0x2425a,_0xba6834,_0x541c59,_0x8dcb38,_0x438125,_0x4bfd6f,_0x5db39a){return _0x1c34ca(_0x2425a,_0xba6834,_0x541c59,_0x8dcb38,_0x438125,_0x4bfd6f,_0x5db39a);},'zfnzG':_0xfaccb2(0x140),'ITEZR':_0xfaccb2(0x22e),'dDsVv':_0xfaccb2(0x132),'hHtLf':'Namespace\x20Created','MSLbU':_0xfaccb2(0x177),'QerZf':_0xfaccb2(0x172),'injmf':_0xfaccb2(0x154),'ToBJe':function(_0x2b5039,_0x2a365d,_0x166a5c,_0x1b6bd6,_0xd3179d,_0x4ac5b2,_0x673a88,_0x589ba9,_0x127588,_0x3521fa,_0x133965){return _0x2b5039(_0x2a365d,_0x166a5c,_0x1b6bd6,_0xd3179d,_0x4ac5b2,_0x673a88,_0x589ba9,_0x127588,_0x3521fa,_0x133965);},'yEdhG':_0xfaccb2(0x1b6),'CPfuY':_0xfaccb2(0x234),'yffNs':function(_0x5d2688,_0x30dcd9,_0x13266e,_0x2b9592,_0x299698){return _0x5d2688(_0x30dcd9,_0x13266e,_0x2b9592,_0x299698);},'MYYrb':function(_0xc56552,_0x1fdab6,_0x31692d){return _0xc56552(_0x1fdab6,_0x31692d);},'qBBbt':'private-ingress-nginx-controller','OgddV':_0xfaccb2(0x16f),'djUFF':_0xfaccb2(0x1e1),'IPIIA':_0xfaccb2(0x250),'zoKtr':function(_0xd17722,_0x423e09,_0x535dda,_0x196758,_0x2482f0,_0x543c57,_0x2cd413,_0x1d4c78){return _0xd17722(_0x423e09,_0x535dda,_0x196758,_0x2482f0,_0x543c57,_0x2cd413,_0x1d4c78);},'pSSiX':_0xfaccb2(0x25e),'UKamO':function(_0x726b41,_0x43d1ab){return _0x726b41===_0x43d1ab;},'dlaTn':_0xfaccb2(0x243),'WwEkx':_0xfaccb2(0xf1),'xRTvF':'get-grid-url-non-200','IrIVr':_0xfaccb2(0x16a),'jFdSz':function(_0x186df9,_0x1007f9,_0x451a81,_0x236fd6,_0x5068d0,_0x31d375){return _0x186df9(_0x1007f9,_0x451a81,_0x236fd6,_0x5068d0,_0x31d375);},'Fnwsj':_0xfaccb2(0x297)};let _0x309904=![],_0x35dc9a=![],_0x27d763,_0x2bdc68,_0x2036a6,_0x54c589,_0x21bd66,_0x5482e0,_0x47846e,_0x2bc08e,_0xbb06c7,_0x40036f,_0x741c56,_0x781145,_0x5c2a6a,_0x37fad8,_0x43f903=0x1,_0x7cf44c=0xe;try{global_registry['requestId']=_0x2c6070[_0xfaccb2(0xec)](uuidv4),global_registry['isPrivateGrid']=![];!fs[_0xfaccb2(0x11f)](_0x2c6070['cHvPa'](getCredentialsPath))&&(_0x2c6070[_0xfaccb2(0x1df)](_0x2c6070[_0xfaccb2(0x104)],_0x2c6070[_0xfaccb2(0x104)])?_0x2714ff=_0x2c6070[_0xfaccb2(0xf9)]:(console['error'](_0x2c6070[_0xfaccb2(0x21f)]),await _0x2c6070[_0xfaccb2(0x1ca)](sendInstrumentationEvent,_0xa79402,_0x2c6070[_0xfaccb2(0x296)],messageTypes[_0xfaccb2(0x1b9)],_0x2c6070[_0xfaccb2(0x23f)],null,_0xa79402),process['exit'](0x1)));await _0x2c6070[_0xfaccb2(0x1ca)](sendInstrumentationEvent,_0xa79402,_0x2c6070[_0xfaccb2(0x296)],messageTypes[_0xfaccb2(0x13a)],null,null,_0xa79402);const _0x1e2c3d=JSON[_0xfaccb2(0x26c)](fs['readFileSync'](_0x2c6070[_0xfaccb2(0xed)](getCredentialsPath)));global_registry['bstackUsername']=_0x1e2c3d[_0xfaccb2(0x132)][_0xfaccb2(0x279)],global_registry[_0xfaccb2(0x1db)]=_0x1e2c3d[_0xfaccb2(0x132)][_0xfaccb2(0x1bd)];const _0x1975a1=WS_ENDPOINT[_0xfaccb2(0x109)](_0x2c6070['jcgYp'],_0x1e2c3d['Browserstack'][_0xfaccb2(0x279)])['replace'](_0x2c6070[_0xfaccb2(0x1a7)],_0x1e2c3d[_0xfaccb2(0x132)][_0xfaccb2(0x1bd)]),_0x11d06b={};_0x11d06b[_0xfaccb2(0x13b)]=ws,_0x11d06b[_0xfaccb2(0x128)]=0x36ee80,_0x781145=new ReconnectingWebSocket(_0x1975a1,[],_0x11d06b),logger['debug'](_0x2c6070[_0xfaccb2(0x1ff)]),webSocketUtils[_0xfaccb2(0x238)](_0x781145,_0xa79402['user'],_0xa79402[_0xfaccb2(0x1bd)]);const _0x44f42e=_0xa79402['gridName']||DEFAULT_GRID_NAME;if(_0xa79402['clusterName']||_0xa79402[_0xfaccb2(0x269)]||_0xa79402[_0xfaccb2(0x257)]){if(_0x2c6070['kLiNo'](_0x2c6070[_0xfaccb2(0x121)],_0x2c6070[_0xfaccb2(0x213)])){const _0x4465c6={};_0x4465c6[_0xfaccb2(0x18e)]=_0x717f01['LOG'],_0x4465c6[_0xfaccb2(0x209)]=_0xfaccb2(0xf3)+_0x1cf539+_0xfaccb2(0x136),_0x31392e['sendEventToBackend'](_0x1fe050,_0x4465c6,_0x2c6070[_0xfaccb2(0x27d)]),_0x24ea62[_0xfaccb2(0x1b3)]('Cluster\x20'+_0x39faa3+_0xfaccb2(0x136)),_0x403327=!![];if(_0x2c6070[_0xfaccb2(0x278)](_0x59e318,!![]))throw new _0x41b1e4(_0xfaccb2(0xf3)+_0x1e4a05+_0xfaccb2(0x1a2));}else{!(_0xa79402[_0xfaccb2(0x135)]&&_0xa79402[_0xfaccb2(0x269)]&&_0xa79402[_0xfaccb2(0x257)])&&(_0x2c6070[_0xfaccb2(0xee)](_0x2c6070[_0xfaccb2(0x185)],_0x2c6070['qdpct'])?(_0x27d763=_0x2c6070[_0xfaccb2(0x1c6)],await _0x2c6070[_0xfaccb2(0x19e)](reportToGalactusAndSendToEDS,_0xa79402,_0x781145,_0x27d763,messageTypes[_0xfaccb2(0x1b9)],_0x2c6070[_0xfaccb2(0x296)],_0x2c6070[_0xfaccb2(0x10d)],_0x2c6070[_0xfaccb2(0x26b)]),logger[_0xfaccb2(0x166)](_0x27d763),process[_0xfaccb2(0x21d)](0x1)):_0x33357c=_0x2c6070[_0xfaccb2(0xfb)]);![AWS,AZURE,GCP][_0xfaccb2(0x197)](_0xa79402['cloudProvider'][_0xfaccb2(0x12d)]())&&(_0x2c6070[_0xfaccb2(0x118)](_0x2c6070[_0xfaccb2(0x24b)],_0x2c6070[_0xfaccb2(0x1a8)])?_0x6a974d=!![]:(_0x27d763=_0x2c6070[_0xfaccb2(0x1e2)],await _0x2c6070['jvZWF'](reportToGalactusAndSendToEDS,_0xa79402,_0x781145,_0x27d763,messageTypes[_0xfaccb2(0x1b9)],_0x2c6070[_0xfaccb2(0x296)],_0x2c6070['oOKSG'],_0x2c6070['HDbdb']),logger[_0xfaccb2(0x166)](_0x27d763),process['exit'](0x1)));_0xa79402[_0xfaccb2(0x205)]&&_0x2c6070['kLiNo'](_0xa79402[_0xfaccb2(0x205)][_0xfaccb2(0x12d)](),_0x2c6070[_0xfaccb2(0x248)])&&(_0x2c6070[_0xfaccb2(0x1df)](_0x2c6070[_0xfaccb2(0x1e6)],_0x2c6070[_0xfaccb2(0x1e6)])?_0x2c6070['SblaI'](_0x5f3ae0,_0x41e1d4[_0xfaccb2(0x1ee)]):global_registry[_0xfaccb2(0x1e3)]=!![]);global_registry[_0xfaccb2(0x269)]=_0xa79402[_0xfaccb2(0x269)],global_registry['clusterRegion']=_0xa79402[_0xfaccb2(0x257)],global_registry['clusterName']=_0xa79402['clusterName'];const _0x12c763=await _0x2c6070[_0xfaccb2(0x1f8)](getCloudProviderObject,_0xa79402[_0xfaccb2(0x269)],_0xa79402[_0xfaccb2(0x135)],_0x44f42e,_0x781145,webSocketUtils,_0xa79402),_0x47a3e0=await _0x12c763['isClusterPresent']();!_0x47a3e0?_0x2c6070['wZJxw'](_0x2c6070[_0xfaccb2(0x214)],_0x2c6070[_0xfaccb2(0x28c)])?(logger[_0xfaccb2(0x1b3)](_0xfaccb2(0x176)+_0xa79402[_0xfaccb2(0x135)]+_0xfaccb2(0x1f7)),_0x309904=![],_0x35dc9a=!![]):_0x30e21e[_0xfaccb2(0x166)](_0xfaccb2(0x110)+_0x46701f+'\x20\x0a'+_0x16269[_0xfaccb2(0x1e4)](_0x578009[_0xfaccb2(0x194)])):_0x2c6070[_0xfaccb2(0x216)](_0x2c6070['YRUAf'],_0x2c6070[_0xfaccb2(0x17b)])?_0x309904=!![]:(_0x2b1215[_0xfaccb2(0x257)]=_0x521d0e,_0x5e3334[_0xfaccb2(0x269)]=_0x13e62b,_0x132e83['newCluster']=!![],_0x11ad45[_0xfaccb2(0x26e)]=_0x20dd69['clusterAutoupgrade']),_0x2036a6=_0xa79402[_0xfaccb2(0x135)],_0x2bdc68=_0xa79402[_0xfaccb2(0x269)][_0xfaccb2(0x12d)](),_0x54c589=_0xa79402[_0xfaccb2(0x257)];}}else _0xa79402[_0xfaccb2(0x10e)]&&(_0x2c6070[_0xfaccb2(0x295)](_0x2c6070[_0xfaccb2(0x1f0)],_0x2c6070[_0xfaccb2(0x14f)])?_0x4e0446[_0xfaccb2(0x165)]():global_registry[_0xfaccb2(0x10e)]=_0xa79402[_0xfaccb2(0x10e)]);global_registry[_0xfaccb2(0x287)]=_0xa79402[_0xfaccb2(0x287)];const _0x13710c={'method':_0x2c6070[_0xfaccb2(0xf2)],'headers':_0x2c6070[_0xfaccb2(0x133)](getAuthHeader,_0x1e2c3d[_0xfaccb2(0x132)]['username'],_0x1e2c3d[_0xfaccb2(0x132)][_0xfaccb2(0x1bd)]),'throwHttpErrors':![]},_0xe1405f={};_0xe1405f[_0xfaccb2(0x287)]=_0x44f42e;const _0x491d42=_0xe1405f;_0x35dc9a&&(_0x2c6070['Lubux'](_0x2c6070[_0xfaccb2(0x276)],_0x2c6070[_0xfaccb2(0x11d)])?_0x1afa6f['info'](_0xfaccb2(0x181)+_0x521856['stringify'](_0x4c032d)+'\x20'):(_0x491d42[_0xfaccb2(0x257)]=_0x54c589,_0x491d42[_0xfaccb2(0x269)]=_0x2bdc68,_0x491d42[_0xfaccb2(0x126)]=!![],_0x491d42[_0xfaccb2(0x26e)]=_0xa79402[_0xfaccb2(0x266)]));_0xa79402[_0xfaccb2(0x266)]&&(_0x2c6070[_0xfaccb2(0x242)](_0x2c6070[_0xfaccb2(0x289)],_0x2c6070[_0xfaccb2(0x289)])?logger['info'](_0x2c6070[_0xfaccb2(0x285)]):_0x401727[_0xfaccb2(0x10e)]=_0x42eb79['gridProfile']);const _0x1d20a4='https://'+AG_API_URL+_0xfaccb2(0x204),_0x32e193={'searchParams':_0x491d42,'throwHttpErrors':![],..._0x13710c},_0x2f3b7e=_0x32e193,_0x5a46f9=await _0x2c6070[_0xfaccb2(0x174)](got,_0x1d20a4,_0x2f3b7e);(_0x2c6070[_0xfaccb2(0x1d7)](_0x5a46f9,null)||_0x2c6070[_0xfaccb2(0x216)](_0x5a46f9,undefined))&&(_0x2c6070[_0xfaccb2(0x295)](_0x2c6070['AvlsH'],_0x2c6070['AvlsH'])?(_0x27d763=_0x2c6070[_0xfaccb2(0x14a)],await _0x2c6070[_0xfaccb2(0x1fb)](reportToGalactusAndSendToEDS,_0xa79402,_0x781145,_0x27d763,messageTypes['ERROR'],_0x2c6070[_0xfaccb2(0x296)],_0x2c6070[_0xfaccb2(0x11e)],_0x2c6070[_0xfaccb2(0x26b)]),logger['error'](_0x27d763),process[_0xfaccb2(0x21d)](0x1)):_0x24b2ca[_0xfaccb2(0x1e3)]=!![]);if(_0x2c6070['LsMPn'](_0x5a46f9[_0xfaccb2(0x19d)],0x191)){if(_0x2c6070['UdixU'](_0x2c6070[_0xfaccb2(0xfd)],_0x2c6070[_0xfaccb2(0xfd)])){const _0x2f1cb5=_0x2c6070[_0xfaccb2(0x1d2)][_0xfaccb2(0x1ea)]('|');let _0x1b2b66=0x0;while(!![]){switch(_0x2f1cb5[_0x1b2b66++]){case'0':_0x1fa24e['redisPassword']=_0x2c6070[_0xfaccb2(0x125)];continue;case'1':_0x363081[_0xfaccb2(0x1b3)](_0x2c6070['DnrXf']);continue;case'2':_0x4d7313[_0xfaccb2(0x252)]=_0x2c6070[_0xfaccb2(0x18f)];continue;case'3':_0xa98385['hubHaNameSpace']=_0x2c6070[_0xfaccb2(0x15d)];continue;case'4':_0x27342e[_0xfaccb2(0x18a)]=!![];continue;}break;}}else _0x27d763=_0x2c6070[_0xfaccb2(0x1a9)],await _0x2c6070[_0xfaccb2(0x19e)](reportToGalactusAndSendToEDS,_0xa79402,_0x781145,_0x27d763,messageTypes[_0xfaccb2(0x1b9)],_0x2c6070['zOIqV'],_0x2c6070[_0xfaccb2(0x28b)],_0x2c6070[_0xfaccb2(0x26b)]),logger[_0xfaccb2(0x166)](_0x27d763),process[_0xfaccb2(0x21d)](0x1);}if(_0x2c6070[_0xfaccb2(0x1df)](_0x5a46f9[_0xfaccb2(0x19d)],0xc8)){if(_0x2c6070[_0xfaccb2(0x168)](_0x2c6070[_0xfaccb2(0x260)],_0x2c6070['SAXrh'])){const _0x58d4cc=_0x2c6070['TvuBG'][_0xfaccb2(0x1ea)]('|');let _0x4bda33=0x0;while(!![]){switch(_0x58d4cc[_0x4bda33++]){case'0':_0x36c0ef=_0x2a9942['concurrency'];continue;case'1':_0x5b47c5[_0xfaccb2(0x1b3)](_0x580032);continue;case'2':_0x35fe70=null;continue;case'3':_0x586ba3=_0x3e00f5['instanceType'];continue;case'4':_0x3e237e[_0xfaccb2(0x18a)]&&_0x2c6070[_0xfaccb2(0x17c)](_0x49ec18,_0x2ed78e[_0xfaccb2(0x1c0)]);continue;case'5':_0x47e8de=_0x447c78[_0xfaccb2(0x280)];continue;case'6':const _0x117cd8={};_0x117cd8[_0xfaccb2(0x18e)]=_0x5b8da8[_0xfaccb2(0x275)],_0x117cd8[_0xfaccb2(0x209)]=_0x240abd,_0x12fab0[_0xfaccb2(0x1b0)](_0x1d099d,_0x117cd8);continue;case'7':_0xb7152a=_0x32305f[_0xfaccb2(0x1c1)];continue;case'8':_0x2c6070[_0xfaccb2(0x1df)](_0x173736[_0xfaccb2(0x205)],_0x28ada)&&_0x35b626[_0xfaccb2(0x205)]&&(_0x1f0afa['isPrivateGrid']=!![]);continue;case'9':_0x31c157=null;continue;case'10':_0x49a7e8=_0x38c180['browserVersion'];continue;case'11':_0x1366c2=_0x123124[_0xfaccb2(0x175)];continue;case'12':_0x2c6070[_0xfaccb2(0x264)](_0x325e14,_0x1861b0,_0x56d3f0,_0x19a402,_0x5ef9fb,_0x5f550c,_0x3b26a1,_0x503567,_0x58082c,_0x4a9956,_0x1c6ec0,_0x19dce7,_0x1f7db6[_0xfaccb2(0x266)]);continue;case'13':_0x1152ad=_0x4d2841[_0xfaccb2(0x16b)];continue;case'14':_0x47f6aa=null;continue;case'15':_0x4e04ba='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x41ab77;continue;}break;}}else _0x27d763=_0xfaccb2(0x108)+JSON[_0xfaccb2(0x1e4)](_0x5a46f9['body']),await _0x2c6070[_0xfaccb2(0x1de)](reportToGalactusAndSendToEDS,_0xa79402,_0x781145,_0x27d763,messageTypes['ERROR'],_0x2c6070['zOIqV'],_0x2c6070[_0xfaccb2(0xf4)],_0x2c6070[_0xfaccb2(0x26b)]),logger[_0xfaccb2(0x166)](_0x27d763),process[_0xfaccb2(0x21d)](0x1);}const _0x22599c=JSON[_0xfaccb2(0x26c)](_0x5a46f9[_0xfaccb2(0xf5)]),_0x587434={};_0x587434[_0xfaccb2(0x18e)]=WS_EVENTS['CLI_RUN_STARTED'],_0x587434[_0xfaccb2(0x209)]=_0x2c6070['zJVQz'],webSocketUtils[_0xfaccb2(0x1b0)](_0x781145,_0x587434);const _0x5edd7c={};_0x5edd7c[_0xfaccb2(0x18e)]=WS_EVENTS[_0xfaccb2(0x275)],_0x5edd7c[_0xfaccb2(0x209)]=_0x2c6070[_0xfaccb2(0x1af)],webSocketUtils['sendEventToBackend'](_0x781145,_0x5edd7c);if(_0x22599c[_0xfaccb2(0x26d)]){if(_0x2c6070[_0xfaccb2(0x168)](_0x2c6070[_0xfaccb2(0x283)],_0x2c6070['MERcl'])){const _0x3a6fd7={};_0x3a6fd7['type']=_0x2d4ca8[_0xfaccb2(0x275)],_0x3a6fd7['message']=_0x2f18c7,_0xca992d[_0xfaccb2(0x1b0)](_0x17a584,_0x3a6fd7,_0x2c6070[_0xfaccb2(0x26b)],!![]);}else _0x27d763=_0xfaccb2(0x111)+_0x44f42e+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x2c6070[_0xfaccb2(0x1a3)](reportToGalactusAndSendToEDS,_0xa79402,_0x781145,_0x27d763,messageTypes[_0xfaccb2(0x1b9)],_0x2c6070[_0xfaccb2(0x296)],_0x2c6070['fQoxW'],_0x2c6070[_0xfaccb2(0x26b)]),logger[_0xfaccb2(0x166)](_0x27d763),process[_0xfaccb2(0x21d)](0x1);}const _0x545970=_0x22599c[_0xfaccb2(0x15b)];let _0x3b51af=_0x545970[_0x22599c[_0xfaccb2(0x17d)]];_0xa79402['gridProfile']&&(_0x2c6070['wZJxw'](_0x2c6070[_0xfaccb2(0x217)],_0x2c6070[_0xfaccb2(0x217)])?_0x3187bb=_0x2c6070['kQsia']:_0x3b51af=_0x545970[_0xa79402[_0xfaccb2(0x10e)]]);global_registry['enableHubHa']=![];if(_0xa79402['hubHa']){if(_0x2c6070['wCgUG'](_0x2c6070[_0xfaccb2(0x114)],_0x2c6070[_0xfaccb2(0x107)]))throw new _0x5e2d0e(_0xfaccb2(0xf3)+_0x242cad+_0xfaccb2(0x1a2));else{const _0x171291=_0x2c6070['xQcNX'][_0xfaccb2(0x1ea)]('|');let _0x27ee49=0x0;while(!![]){switch(_0x171291[_0x27ee49++]){case'0':global_registry[_0xfaccb2(0x252)]=_0x2c6070['KdMzk'];continue;case'1':global_registry[_0xfaccb2(0x18a)]=!![];continue;case'2':logger[_0xfaccb2(0x1b3)](_0x2c6070['DnrXf']);continue;case'3':global_registry[_0xfaccb2(0x1d8)]=_0x2c6070['ixGjp'];continue;case'4':global_registry[_0xfaccb2(0x212)]=_0x2c6070[_0xfaccb2(0x15d)];continue;}break;}}}if(_0x2c6070[_0xfaccb2(0x216)](_0x309904,![])&&_0x2c6070[_0xfaccb2(0x1e7)](_0x35dc9a,![])){if(_0x2c6070[_0xfaccb2(0xfe)](_0x2c6070[_0xfaccb2(0x196)],_0x2c6070[_0xfaccb2(0x196)])){const _0x4d0f9f={'azure.workload.identity/use':_0x2c6070['WFqxX'],..._0x37ac1b[0x0][_0xfaccb2(0x159)][_0xfaccb2(0x1dc)][_0xfaccb2(0x1dd)][_0xfaccb2(0x153)]};_0x1cb1de[0x0][_0xfaccb2(0x159)][_0xfaccb2(0x1dc)][_0xfaccb2(0x1dd)][_0xfaccb2(0x153)]=_0x4d0f9f,_0xa0fbc6[0x0]['spec']['template'][_0xfaccb2(0x159)]['serviceAccountName']=_0x2c6070['AbBEO'];}else{_0x2c6070['HVfBh'](_0x3b51af,undefined)&&(_0x2c6070[_0xfaccb2(0x1b7)](_0x2c6070[_0xfaccb2(0x1eb)],_0x2c6070[_0xfaccb2(0x1ed)])?_0x13e82e=null:(_0x27d763=_0x2c6070['gNAnY'],await _0x2c6070[_0xfaccb2(0x1fb)](reportToGalactusAndSendToEDS,_0xa79402,_0x781145,_0x27d763,messageTypes[_0xfaccb2(0x1b9)],_0x2c6070['zOIqV'],_0x2c6070[_0xfaccb2(0x1a6)],_0x2c6070[_0xfaccb2(0x26b)]),logger[_0xfaccb2(0x166)](_0x27d763),process[_0xfaccb2(0x21d)](0x1)));global_registry['gridProfileId']=_0x3b51af['id'],_0x27d763=_0xfaccb2(0x147)+_0x44f42e+_0xfaccb2(0x13c)+_0x3b51af['name']+'\x27\x20grid\x20profile',logger[_0xfaccb2(0x1b3)](_0x27d763);const _0x396956={};_0x396956[_0xfaccb2(0x18e)]=WS_EVENTS[_0xfaccb2(0x275)],_0x396956[_0xfaccb2(0x209)]=_0x27d763,webSocketUtils[_0xfaccb2(0x1b0)](_0x781145,_0x396956),_0x2bdc68=_0x3b51af[_0xfaccb2(0x269)],_0x2036a6=_0x3b51af[_0xfaccb2(0x135)],_0x54c589=_0x3b51af['region'],_0x21bd66=_0x3b51af[_0xfaccb2(0x183)],_0x5482e0=_0x3b51af[_0xfaccb2(0x215)],_0x47846e=_0x3b51af[_0xfaccb2(0x1fa)],_0x2bc08e=_0x3b51af[_0xfaccb2(0x1b5)],_0xbb06c7=_0x3b51af[_0xfaccb2(0x1c8)],_0x40036f=_0x3b51af['s3bucket'],_0x43f903=_0x3b51af['minNodes'],_0x7cf44c=_0x3b51af['maxNodes'],_0x5c2a6a=_0x22599c[_0xfaccb2(0x280)],_0x37fad8=_0x22599c[_0xfaccb2(0x237)];if(_0x47846e&&_0x2c6070[_0xfaccb2(0x21e)](_0x47846e[_0xfaccb2(0x157)],0x0)){if(_0x2c6070['nUUxE'](_0x2c6070[_0xfaccb2(0x1c4)],_0x2c6070[_0xfaccb2(0x1c4)])){const _0x371a43={};_0x371a43[_0xfaccb2(0x117)]=_0x2c6070[_0xfaccb2(0x27a)],_0x371a43[_0xfaccb2(0x18e)]=_0x2c6070[_0xfaccb2(0x291)];const _0x33b8cb={};_0x33b8cb[_0xfaccb2(0x117)]=_0x2c6070[_0xfaccb2(0x1f9)],_0x33b8cb['type']=_0x2c6070[_0xfaccb2(0x291)];const _0x3db578={};_0x3db578[_0xfaccb2(0x117)]=_0x2c6070['IeoSY'],_0x3db578[_0xfaccb2(0x18e)]=_0x2c6070[_0xfaccb2(0x291)];const _0x8d5619={};_0x8d5619[_0xfaccb2(0x117)]=_0x2c6070['jCqXe'],_0x8d5619['type']=_0x2c6070[_0xfaccb2(0x291)];const _0x4387d8={};_0x4387d8[_0xfaccb2(0x117)]=_0x2c6070[_0xfaccb2(0x218)],_0x4387d8[_0xfaccb2(0x18e)]=_0x2c6070[_0xfaccb2(0x291)];const _0x5e90d0={};_0x5e90d0['description']=_0x2c6070[_0xfaccb2(0x1a1)],_0x5e90d0['type']=_0x2c6070['QOTow'];const _0x5093d4={};_0x5093d4[_0xfaccb2(0x117)]=_0x2c6070[_0xfaccb2(0x251)],_0x5093d4[_0xfaccb2(0x18e)]=_0x2c6070[_0xfaccb2(0x1d3)],_0x5093d4[_0xfaccb2(0x23c)]=![];const _0x5a53b9={};_0x5a53b9['description']=_0x2c6070[_0xfaccb2(0x160)],_0x5a53b9[_0xfaccb2(0x18e)]=_0x2c6070[_0xfaccb2(0x1d3)],_0x5a53b9['default']=![];const _0x1ddf13={};_0x1ddf13[_0xfaccb2(0x117)]=_0x2c6070[_0xfaccb2(0x293)],_0x1ddf13[_0xfaccb2(0x18e)]=_0x2c6070['wiLcp'],_0x1ddf13[_0xfaccb2(0x23c)]=![];const _0x1c22e4={};return _0x1c22e4[_0xfaccb2(0x19c)]=_0x371a43,_0x1c22e4[_0xfaccb2(0x223)]=_0x33b8cb,_0x1c22e4[_0xfaccb2(0x273)]=_0x3db578,_0x1c22e4['cloud-provider']=_0x8d5619,_0x1c22e4[_0xfaccb2(0x257)]=_0x4387d8,_0x1c22e4[_0xfaccb2(0x1d4)]=_0x5e90d0,_0x1c22e4[_0xfaccb2(0x124)]=_0x5093d4,_0x1c22e4['hub-ha']=_0x5a53b9,_0x1c22e4['cluster-autoupgrade']=_0x1ddf13,_0x479620[_0xfaccb2(0x161)](_0x4ea55b[_0xfaccb2(0x244)])['epilogue'](_0x2f1b98)['options'](_0x1c22e4)[_0xfaccb2(0x26a)](_0x2c6070[_0xfaccb2(0x198)])[_0xfaccb2(0x20e)];}else _0x47846e=null;}_0xbb06c7&&_0x2c6070[_0xfaccb2(0x178)](_0xbb06c7['length'],0x0)&&(_0x2c6070['UdixU'](_0x2c6070[_0xfaccb2(0x1e5)],_0x2c6070[_0xfaccb2(0x1e5)])?_0x110acd[_0xfaccb2(0x1e3)]=!![]:_0xbb06c7=null),_0x2c6070['oPVQK'](_0x3b51af['privateGrid'],undefined)&&_0x3b51af[_0xfaccb2(0x205)]&&(_0x2c6070[_0xfaccb2(0x16c)](_0x2c6070[_0xfaccb2(0x1e0)],_0x2c6070[_0xfaccb2(0x24a)])?global_registry['isPrivateGrid']=!![]:(_0x5f10b6[_0xfaccb2(0x1b3)]('Cluster:\x20'+_0x39ef8a['clusterName']+_0xfaccb2(0x1f7)),_0x20d20c=![],_0x28d345=!![])),_0x2c6070[_0xfaccb2(0x12a)](updateGlobalRegistryWithConfig,_0x2bdc68,_0x2036a6,_0x54c589,_0x21bd66,_0x5482e0,_0x40036f,_0x3b51af,_0x5c2a6a,_0x37fad8,_0x43f903,_0x7cf44c,_0xa79402[_0xfaccb2(0x266)]),global_registry[_0xfaccb2(0x18a)]&&(_0x2c6070[_0xfaccb2(0x1ba)](_0x2c6070['uMIep'],_0x2c6070[_0xfaccb2(0x1d6)])?_0x2c6070[_0xfaccb2(0x158)](updateGlobalRegistryForHubHa,_0x22599c['uploaderVersion']):_0x423d89=_0x2dca6f[_0xbed320[_0xfaccb2(0x10e)]]);}}else{if(_0x2c6070[_0xfaccb2(0x188)](_0x35dc9a,!![])){if(_0x2c6070[_0xfaccb2(0x16c)](_0x2c6070[_0xfaccb2(0xf6)],_0x2c6070[_0xfaccb2(0xf6)]))_0x36abd9[_0xfaccb2(0x1b3)](_0x2c6070[_0xfaccb2(0x285)]);else{_0x27d763=_0xfaccb2(0x192)+_0x44f42e,logger[_0xfaccb2(0x1b3)](_0x27d763);const _0x38e11f={};_0x38e11f[_0xfaccb2(0x18e)]=WS_EVENTS[_0xfaccb2(0x275)],_0x38e11f['message']=_0x27d763,webSocketUtils[_0xfaccb2(0x1b0)](_0x781145,_0x38e11f),_0x21bd66=_0x3b51af[_0xfaccb2(0x183)],_0x5482e0=_0x3b51af[_0xfaccb2(0x215)],_0x47846e=null,_0x2bc08e=null,_0xbb06c7=null,_0x40036f=_0x3b51af['s3bucket'],_0x43f903=_0x3b51af[_0xfaccb2(0x16b)],_0x7cf44c=_0x3b51af[_0xfaccb2(0x1c1)],_0x5c2a6a=_0x22599c[_0xfaccb2(0x280)],_0x37fad8=_0x22599c['browserVersion'],_0x2c6070['TfbAu'](_0x3b51af[_0xfaccb2(0x205)],undefined)&&_0x3b51af[_0xfaccb2(0x205)]&&(_0x2c6070[_0xfaccb2(0x262)](_0x2c6070[_0xfaccb2(0x138)],_0x2c6070[_0xfaccb2(0x138)])?_0x5e798d=null:global_registry[_0xfaccb2(0x1e3)]=!![]),_0x2c6070[_0xfaccb2(0x142)](updateGlobalRegistryWithConfig,_0x2bdc68,_0x2036a6,_0x54c589,_0x21bd66,_0x5482e0,_0x40036f,_0x3b51af,_0x5c2a6a,_0x37fad8,_0x43f903,_0x7cf44c,_0xa79402['clusterAutoupgrade']),global_registry[_0xfaccb2(0x18a)]&&(_0x2c6070['TArNQ'](_0x2c6070[_0xfaccb2(0x14d)],_0x2c6070[_0xfaccb2(0x1b8)])?_0x218598[_0xfaccb2(0x1e3)]=!![]:_0x2c6070[_0xfaccb2(0xef)](updateGlobalRegistryForHubHa,_0x22599c[_0xfaccb2(0x1c0)]));}}else{if(_0x2c6070[_0xfaccb2(0x10c)](_0x2c6070[_0xfaccb2(0x247)],_0x2c6070[_0xfaccb2(0xff)]))_0x5a98c8=_0x262ec5[_0xfaccb2(0x180)],_0x4e78d8=_0x2c6070['KLyFf'];else{const _0x51e195=_0x2c6070[_0xfaccb2(0x226)]['split']('|');let _0x53a22e=0x0;while(!![]){switch(_0x51e195[_0x53a22e++]){case'0':_0x27d763='Spawning\x20the\x20grid\x20'+_0x44f42e+_0xfaccb2(0x1b4)+_0x2036a6+'\x27';continue;case'1':global_registry['browserVersion']=_0x22599c[_0xfaccb2(0x237)];continue;case'2':global_registry[_0xfaccb2(0x135)]=_0x2036a6;continue;case'3':global_registry[_0xfaccb2(0x269)]=_0x2bdc68;continue;case'4':logger[_0xfaccb2(0x1b3)](_0x27d763);continue;case'5':global_registry[_0xfaccb2(0x280)]=_0x22599c[_0xfaccb2(0x280)];continue;case'6':const _0x372701={};_0x372701[_0xfaccb2(0x18e)]=WS_EVENTS['LOG'],_0x372701[_0xfaccb2(0x209)]=_0x27d763,webSocketUtils['sendEventToBackend'](_0x781145,_0x372701);continue;case'7':global_registry[_0xfaccb2(0x202)]=_0x54c589;continue;case'8':const _0x3c13fd={};_0x3c13fd[_0xfaccb2(0x18e)]=WS_EVENTS['CLI_RUN_STARTED'],_0x3c13fd[_0xfaccb2(0x209)]=_0x2c6070['zJVQz'],webSocketUtils[_0xfaccb2(0x1b0)](_0x781145,_0x3c13fd);continue;}break;}}}}const _0x542fe7=await _0x2c6070['ogiCd'](getCloudProviderObject,_0x2bdc68,_0x2036a6,_0x44f42e,_0x781145,webSocketUtils,_0xa79402);_0x2c6070[_0xfaccb2(0x1df)](_0x2bdc68,AZURE)&&(_0x2c6070['oPVQK'](_0x2c6070['VcfcG'],_0x2c6070['VcfcG'])?_0x2be540[_0xfaccb2(0x1b3)](_0xfaccb2(0x167)+_0xe4e9d2+'\x20'):_0x542fe7[_0xfaccb2(0x165)]());let _0x20e186;if(_0x2c6070[_0xfaccb2(0xee)](_0x309904,![])){_0x27d763=_0xfaccb2(0x171)+_0x54c589+').';const _0x146813={};_0x146813[_0xfaccb2(0x18e)]=WS_EVENTS[_0xfaccb2(0x275)],_0x146813[_0xfaccb2(0x209)]=_0x27d763,webSocketUtils[_0xfaccb2(0x1b0)](_0x781145,_0x146813),logger['info'](_0x27d763);const _0x12eed6=await _0x542fe7['isClusterPresent']();if(_0x12eed6){if(_0x2c6070['UdixU'](_0x2c6070[_0xfaccb2(0x23d)],_0x2c6070[_0xfaccb2(0x23d)]))_0x2c6070[_0xfaccb2(0xef)](_0x170c8f,_0x4a0dc5[_0xfaccb2(0x1c0)]);else{const _0x1304ff={};_0x1304ff[_0xfaccb2(0x18e)]=WS_EVENTS['LOG'],_0x1304ff['message']='Cluster\x20'+_0x2036a6+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils['sendEventToBackend'](_0x781145,_0x1304ff,_0x2c6070[_0xfaccb2(0x27d)]),logger['info'](_0xfaccb2(0xf3)+_0x2036a6+_0xfaccb2(0x136)),_0x309904=!![];if(_0x2c6070[_0xfaccb2(0x203)](_0x35dc9a,!![])){if(_0x2c6070[_0xfaccb2(0x1ce)](_0x2c6070['FekGS'],_0x2c6070[_0xfaccb2(0x1c3)]))throw new Error('Cluster\x20'+_0x2036a6+_0xfaccb2(0x1a2));else{const _0x4136cd=_0x2c6070['NPCIC'][_0xfaccb2(0x1ea)]('|');let _0x5687af=0x0;while(!![]){switch(_0x4136cd[_0x5687af++]){case'0':_0x3e6697[_0xfaccb2(0x1b3)](_0x5f0b77);continue;case'1':const _0x2bb8d7={};_0x2bb8d7['type']=_0x544139['CLI_RUN_STARTED'],_0x2bb8d7[_0xfaccb2(0x209)]=_0x2c6070[_0xfaccb2(0x22c)],_0x1f99cb[_0xfaccb2(0x1b0)](_0x38cc40,_0x2bb8d7);continue;case'2':_0x1e4f75[_0xfaccb2(0x280)]=_0x5710bf[_0xfaccb2(0x280)];continue;case'3':_0x2358cf[_0xfaccb2(0x135)]=_0x55395b;continue;case'4':_0x4bfb03['clusterRegion']=_0x5907e7;continue;case'5':_0x31e082=_0xfaccb2(0x270)+_0x5a3338+_0xfaccb2(0x1b4)+_0x247274+'\x27';continue;case'6':_0x2d6989[_0xfaccb2(0x237)]=_0x16ea26[_0xfaccb2(0x237)];continue;case'7':_0x5c1bee[_0xfaccb2(0x269)]=_0x55100f;continue;case'8':const _0x5a6706={};_0x5a6706['type']=_0x370b86[_0xfaccb2(0x275)],_0x5a6706[_0xfaccb2(0x209)]=_0x179c52,_0x4368cd['sendEventToBackend'](_0x4e0026,_0x5a6706);continue;}break;}}}}}else{const _0x32fab0={};_0x32fab0[_0xfaccb2(0x18e)]=WS_EVENTS[_0xfaccb2(0x275)],_0x32fab0['message']=_0x2c6070['cGWLM'],webSocketUtils['sendEventToBackend'](_0x781145,_0x32fab0),logger[_0xfaccb2(0x1b3)](_0x2c6070[_0xfaccb2(0x1b2)]);const _0x375418=_0x2c6070[_0xfaccb2(0x265)](_0x47846e,null)&&_0x2c6070[_0xfaccb2(0x1df)](_0x47846e,undefined),_0x422daa=_0x2c6070[_0xfaccb2(0x265)](_0xbb06c7,null)&&_0x2c6070[_0xfaccb2(0x284)](_0xbb06c7,undefined)&&_0x2c6070['BXIDo'](_0xbb06c7[_0xfaccb2(0x157)],0x0);if(_0x375418){_0x2c6070[_0xfaccb2(0x1d7)](_0x422daa,![])&&(_0x27d763=_0x2c6070[_0xfaccb2(0x263)],await _0x2c6070['jvZWF'](reportToGalactusAndSendToEDS,_0xa79402,_0x781145,_0x27d763,messageTypes[_0xfaccb2(0x1b9)],_0x2c6070[_0xfaccb2(0x296)],_0x2c6070[_0xfaccb2(0x211)],_0x2c6070[_0xfaccb2(0x26b)]),logger[_0xfaccb2(0x166)](_0x27d763),process[_0xfaccb2(0x21d)](0x1));const _0x266697=await _0x542fe7[_0xfaccb2(0x150)](_0x47846e);_0x2c6070[_0xfaccb2(0x100)](_0x266697,![])?(_0x27d763=_0x2c6070[_0xfaccb2(0x16e)],await _0x2c6070[_0xfaccb2(0x10f)](reportToGalactusAndSendToEDS,_0xa79402,_0x781145,_0x27d763,messageTypes['ERROR'],_0x2c6070[_0xfaccb2(0x296)],_0x2c6070[_0xfaccb2(0x25c)],_0x2c6070[_0xfaccb2(0x26b)]),logger[_0xfaccb2(0x166)](_0x27d763),process[_0xfaccb2(0x21d)](0x1)):logger[_0xfaccb2(0x1b3)](_0xfaccb2(0x167)+_0x47846e+'\x20');const _0x50b123=await _0x542fe7['isSubnetsValid'](_0xbb06c7,_0x47846e);_0x2c6070[_0xfaccb2(0x290)](_0x50b123[0x0],![])?(_0x27d763=_0xfaccb2(0x15c)+JSON['stringify'](_0x50b123[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x47846e+_0xfaccb2(0x25d),await _0x2c6070[_0xfaccb2(0x1de)](reportToGalactusAndSendToEDS,_0xa79402,_0x781145,_0x27d763,messageTypes[_0xfaccb2(0x1b9)],_0x2c6070[_0xfaccb2(0x296)],_0x2c6070[_0xfaccb2(0x155)],_0x2c6070['HDbdb']),logger[_0xfaccb2(0x166)](_0x27d763),process['exit'](0x1)):logger[_0xfaccb2(0x1b3)](_0xfaccb2(0x181)+JSON[_0xfaccb2(0x1e4)](_0xbb06c7)+'\x20'),[_0x47846e,_0xbb06c7]=await _0x542fe7[_0xfaccb2(0x249)](_0x47846e,_0xbb06c7);}else{const _0x5b048a=_0x2c6070[_0xfaccb2(0x11a)][_0xfaccb2(0x1ea)]('|');let _0x1eeb5e=0x0;while(!![]){switch(_0x5b048a[_0x1eeb5e++]){case'0':logger[_0xfaccb2(0x1b3)](_0x2c6070['rlHdx']);continue;case'1':logger['info'](_0x2c6070[_0xfaccb2(0x207)]);continue;case'2':const _0x4ce16c={};_0x4ce16c[_0xfaccb2(0x18e)]=WS_EVENTS[_0xfaccb2(0x275)],_0x4ce16c[_0xfaccb2(0x209)]=_0x2c6070['pjWQE'],webSocketUtils[_0xfaccb2(0x1b0)](_0x781145,_0x4ce16c);continue;case'3':const _0x1df2f8={};_0x1df2f8['type']=WS_EVENTS[_0xfaccb2(0x275)],_0x1df2f8[_0xfaccb2(0x209)]=_0x2c6070[_0xfaccb2(0x20c)],webSocketUtils[_0xfaccb2(0x1b0)](_0x781145,_0x1df2f8);continue;case'4':[_0x47846e,_0xbb06c7]=await _0x542fe7[_0xfaccb2(0x249)](_0x47846e,_0xbb06c7);continue;}break;}}}}_0x309904&&_0x2c6070[_0xfaccb2(0x118)](_0x2bdc68,AZURE)&&(await _0x542fe7[_0xfaccb2(0x17f)](),await _0x542fe7[_0xfaccb2(0x152)]());const [_0x3bd8b5,_0xa18429,_0x22040b,_0x521f5e,_0x110d97,_0x3d688c,_0x50ff3a]=await _0x2c6070['yBCLJ'](createK8sClient,_0x542fe7,_0xa79402[_0xfaccb2(0x116)]);_0x2c6070[_0xfaccb2(0xe9)](_0x309904,![])&&_0x2c6070[_0xfaccb2(0x21e)](_0x2bdc68,AWS)&&(global_registry[_0xfaccb2(0x151)]=!![],_0x20e186=await _0x542fe7[_0xfaccb2(0x1ef)](_0x3bd8b5,_0xa79402));if(_0x2c6070['xAgTN'](_0x309904,![])&&global_registry[_0xfaccb2(0x18a)])try{await _0x542fe7[_0xfaccb2(0x298)](_0x3d688c,_0x50ff3a,_0xa79402,_0x47846e,_0xbb06c7);const _0x247848={};_0x247848[_0xfaccb2(0x18e)]=WS_EVENTS['LOG'],_0x247848[_0xfaccb2(0x209)]=_0x2c6070['PGNTY'],webSocketUtils[_0xfaccb2(0x1b0)](_0x781145,_0x247848);!await _0x2c6070[_0xfaccb2(0x174)](namespaceExists,_0x3bd8b5,global_registry[_0xfaccb2(0x212)])&&await _0x2c6070[_0xfaccb2(0x174)](createNamespace,_0x3bd8b5,global_registry[_0xfaccb2(0x212)]);logger['info'](_0x2c6070['dZUQR']);let _0x511680=await fs[_0xfaccb2(0x170)](path[_0xfaccb2(0x21c)](__dirname,_0x2c6070['isXvy'],_0x2c6070[_0xfaccb2(0xf0)],_0x2c6070[_0xfaccb2(0x1fe)],_0x2c6070[_0xfaccb2(0x112)]),_0x2c6070[_0xfaccb2(0x163)]);_0x511680=_0x511680[_0xfaccb2(0x109)](/<RedisClientPassword>/g,_0x2c6070[_0xfaccb2(0x24d)](encodeBase64,global_registry[_0xfaccb2(0x1d8)])),_0x511680=_0x511680[_0xfaccb2(0x109)](/<KafkaClientPassword>/g,_0x2c6070[_0xfaccb2(0x27c)](encodeBase64,global_registry[_0xfaccb2(0x252)])),_0x511680=_0x511680['replace'](/<BstackUsername>/g,_0x2c6070[_0xfaccb2(0x27c)](encodeBase64,global_registry[_0xfaccb2(0x281)])),_0x511680=_0x511680[_0xfaccb2(0x109)](/<BstackAccessKey>/g,_0x2c6070['ijqMd'](encodeBase64,global_registry[_0xfaccb2(0x1db)]));const _0x5dfcab=yaml[_0xfaccb2(0x12c)](_0x511680);await _0x2c6070[_0xfaccb2(0x233)](kubeApply,_0x5dfcab,_0x50ff3a),logger[_0xfaccb2(0x1b3)](_0x2c6070['fehTr']);let _0x48f22d=_0x2c6070[_0xfaccb2(0x143)];if(_0x2c6070[_0xfaccb2(0x242)](_0x2bdc68,AZURE))_0x48f22d=_0x2c6070[_0xfaccb2(0xfb)];else _0x2c6070[_0xfaccb2(0xe8)](_0x2bdc68,GCP)&&(_0x48f22d=_0x2c6070['kQsia']);logger[_0xfaccb2(0x1b3)](_0x2c6070[_0xfaccb2(0x164)]);let _0x3b2353=await fs['readFileAsync'](path[_0xfaccb2(0x21c)](__dirname,_0x2c6070[_0xfaccb2(0x27f)],_0x2c6070[_0xfaccb2(0xf0)],_0x2c6070['JPAxI'],_0x2c6070[_0xfaccb2(0x148)]),_0x2c6070['IcHWI']);_0x3b2353=_0x3b2353['replace'](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x3b2353=_0x3b2353[_0xfaccb2(0x109)](/<StorageClassName>/g,_0x48f22d);const _0x22e6de=yaml[_0xfaccb2(0x12c)](_0x3b2353);await _0x2c6070[_0xfaccb2(0x233)](kubeApply,_0x22e6de,_0x50ff3a),logger[_0xfaccb2(0x1b3)](_0x2c6070[_0xfaccb2(0x156)]),logger[_0xfaccb2(0x1b3)](_0x2c6070[_0xfaccb2(0x14e)]);let _0x238a42=await fs[_0xfaccb2(0x170)](path['join'](__dirname,_0x2c6070[_0xfaccb2(0x27f)],_0x2c6070[_0xfaccb2(0xf0)],_0x2c6070['JPAxI'],_0x2c6070[_0xfaccb2(0x201)]),_0x2c6070[_0xfaccb2(0x163)]);_0x238a42=_0x238a42['replace'](/<HubHaNameSpace>/g,global_registry[_0xfaccb2(0x212)]),_0x238a42=_0x238a42[_0xfaccb2(0x109)](/<StorageClassName>/g,_0x48f22d);const _0x49875f=yaml[_0xfaccb2(0x12c)](_0x238a42);await _0x2c6070[_0xfaccb2(0x102)](kubeApply,_0x49875f,_0x50ff3a),logger[_0xfaccb2(0x1b3)](_0x2c6070[_0xfaccb2(0x220)]),logger['info'](_0x2c6070[_0xfaccb2(0x246)]);let _0x1148fe=await fs[_0xfaccb2(0x170)](path[_0xfaccb2(0x21c)](__dirname,_0x2c6070['isXvy'],_0x2c6070['OYyyA'],_0x2c6070[_0xfaccb2(0x1fe)],_0x2c6070['RsuBo']),_0x2c6070[_0xfaccb2(0x163)]);_0x1148fe=_0x1148fe['replace'](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x1148fe=_0x1148fe[_0xfaccb2(0x109)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']);const _0x1e0184=yaml[_0xfaccb2(0x12c)](_0x1148fe);_0x2c6070['RRnIq'](global_registry[_0xfaccb2(0x269)],AZURE)&&(_0x1e0184[0x0]['spec'][_0xfaccb2(0x1dc)][_0xfaccb2(0x1dd)][_0xfaccb2(0x153)]={'azure.workload.identity/use':_0x2c6070[_0xfaccb2(0x248)],..._0x1e0184[0x0][_0xfaccb2(0x159)]['template'][_0xfaccb2(0x1dd)][_0xfaccb2(0x153)]},_0x1e0184[0x0]['spec'][_0xfaccb2(0x1dc)][_0xfaccb2(0x159)]['serviceAccountName']=_0x2c6070[_0xfaccb2(0x219)]);await _0x2c6070['hVwnx'](kubeApply,_0x1e0184,_0x50ff3a),logger['info'](_0x2c6070[_0xfaccb2(0x18b)]);const _0xc5f14d={};_0xc5f14d['type']=WS_EVENTS[_0xfaccb2(0x275)],_0xc5f14d[_0xfaccb2(0x209)]=_0x2c6070[_0xfaccb2(0x149)],webSocketUtils[_0xfaccb2(0x1b0)](_0x781145,_0xc5f14d),logger['info'](_0x2c6070[_0xfaccb2(0x292)]);}catch(_0x3bb055){const _0x48ed30=_0x2c6070[_0xfaccb2(0x139)][_0xfaccb2(0x1ea)]('|');let _0x267b72=0x0;while(!![]){switch(_0x48ed30[_0x267b72++]){case'0':_0x27d763=_0xfaccb2(0x1d9)+_0x3bb055[_0xfaccb2(0x209)];continue;case'1':logger[_0xfaccb2(0x166)](_0x27d763);continue;case'2':await _0x542fe7[_0xfaccb2(0x27e)](_0x3bd8b5,global_registry['clusterRegion']);continue;case'3':await _0x2c6070[_0xfaccb2(0x1a5)](reportToGalactusAndSendToEDS,_0xa79402,_0x781145,_0x27d763,messageTypes[_0xfaccb2(0x1b9)],_0x2c6070[_0xfaccb2(0x296)],_0x2c6070[_0xfaccb2(0x129)],_0x2c6070[_0xfaccb2(0x26b)]);continue;case'4':process['exit'](0x1);continue;}break;}}try{_0x741c56=_0x2c6070[_0xfaccb2(0xef)](kebabCase,_0x44f42e),logger['info'](_0x2c6070['ITEZR']);const _0x2cb61b={};_0x2cb61b[_0xfaccb2(0x18e)]=WS_EVENTS['LOG'],_0x2cb61b['message']=_0x2c6070[_0xfaccb2(0x21b)],webSocketUtils[_0xfaccb2(0x1b0)](_0x781145,_0x2cb61b);if(_0x2c6070[_0xfaccb2(0x1df)](_0x741c56,_0x2c6070[_0xfaccb2(0x219)])){const _0x1e8880={};_0x1e8880['createdBy']=_0x2c6070[_0xfaccb2(0x1cb)],_0x1e8880['managedBy']=_0x2c6070[_0xfaccb2(0x1cb)];const _0x1fffac={};_0x1fffac[_0xfaccb2(0x123)]=_0x741c56,_0x1fffac[_0xfaccb2(0x245)]=_0x1e8880;const _0x3ad2ff={};_0x3ad2ff[_0xfaccb2(0x1dd)]=_0x1fffac;const _0x30072c=_0x3ad2ff,_0x50a9c5={};_0x50a9c5['body']=_0x30072c,await _0x3bd8b5[_0xfaccb2(0x146)](_0x50a9c5),logger[_0xfaccb2(0x1b3)](_0x2c6070['hHtLf']);}const _0x26faa7={};_0x26faa7[_0xfaccb2(0x18e)]=WS_EVENTS[_0xfaccb2(0x275)],_0x26faa7[_0xfaccb2(0x209)]=_0x2c6070[_0xfaccb2(0x23a)],webSocketUtils[_0xfaccb2(0x1b0)](_0x781145,_0x26faa7);const _0x34f3e1={};_0x34f3e1[_0xfaccb2(0x18e)]=WS_EVENTS[_0xfaccb2(0x275)],_0x34f3e1['message']=_0x2c6070['QerZf'],webSocketUtils['sendEventToBackend'](_0x781145,_0x34f3e1),logger[_0xfaccb2(0x1b3)](_0x2c6070['injmf']);let _0x5a7c2f={};_0x2c6070['RRnIq'](_0x2bdc68,AZURE)&&(_0x5a7c2f={'clientId':await _0x542fe7[_0xfaccb2(0x190)]('turboscale-managed-identity-'+_0x2036a6)});await _0x2c6070[_0xfaccb2(0x12e)](addGridComponents,_0x3bd8b5,_0xa18429,_0x22040b,_0x521f5e,_0x741c56,_0x2036a6,_0x20e186,_0x110d97,_0x50ff3a,_0x5a7c2f),_0x27d763=_0x2c6070['yEdhG'],logger[_0xfaccb2(0x1b3)](_0x27d763);const _0xc2d451={};_0xc2d451['type']=WS_EVENTS['LOG'],_0xc2d451[_0xfaccb2(0x209)]=_0x27d763,webSocketUtils[_0xfaccb2(0x1b0)](_0x781145,_0xc2d451),_0x27d763=_0x2c6070[_0xfaccb2(0x259)],logger[_0xfaccb2(0x1b3)](_0x27d763);const _0x2f0cbd={};_0x2f0cbd[_0xfaccb2(0x18e)]=WS_EVENTS[_0xfaccb2(0x275)],_0x2f0cbd[_0xfaccb2(0x209)]=_0x27d763,webSocketUtils[_0xfaccb2(0x1b0)](_0x781145,_0x2f0cbd),await _0x2c6070[_0xfaccb2(0x288)](waitForDeployment,_0xa18429,_0x741c56,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x188241=await _0x2c6070[_0xfaccb2(0x286)](getNamespaceUID,_0x3bd8b5,_0x741c56),_0x5c4eb9=global_registry['isPrivateGrid']?_0x2c6070[_0xfaccb2(0x10a)]:_0x2c6070[_0xfaccb2(0x11c)],_0x43f8cf={};_0x43f8cf[_0xfaccb2(0x123)]=_0x5c4eb9,_0x43f8cf[_0xfaccb2(0x14b)]=_0x2c6070['djUFF'];const _0x1e0e09=await _0x3bd8b5['readNamespacedService'](_0x43f8cf);let _0x322b5e=_0x542fe7[_0xfaccb2(0x137)](_0x1e0e09)+'/'+_0x741c56,_0x526d16=_0x2c6070[_0xfaccb2(0xf9)];try{const _0xe97d16=_0xfaccb2(0x225)+AG_API_URL+_0xfaccb2(0x199)+_0x188241,_0x5de967=await _0x2c6070[_0xfaccb2(0x1c5)](got,_0xe97d16,_0x13710c);(_0x2c6070['LQwDP'](_0x5de967,null)||_0x2c6070['LQwDP'](_0x5de967,undefined))&&(_0x27d763=_0x2c6070[_0xfaccb2(0x272)],await _0x2c6070[_0xfaccb2(0x13e)](reportToGalactusAndSendToEDS,_0xa79402,_0x781145,_0x27d763,messageTypes[_0xfaccb2(0x1b9)],_0x2c6070[_0xfaccb2(0x296)],_0x2c6070[_0xfaccb2(0x16d)],_0x2c6070['HDbdb']),logger['error'](_0x27d763),process[_0xfaccb2(0x21d)](0x1));_0x2c6070[_0xfaccb2(0x228)](_0x5de967['statusCode'],0x191)&&(_0x27d763=_0x2c6070[_0xfaccb2(0x169)],await _0x2c6070[_0xfaccb2(0x19e)](reportToGalactusAndSendToEDS,_0xa79402,_0x781145,_0x27d763,messageTypes[_0xfaccb2(0x1b9)],_0x2c6070[_0xfaccb2(0x296)],_0x2c6070[_0xfaccb2(0x20d)],_0x2c6070['HDbdb']),logger[_0xfaccb2(0x166)](_0x27d763),process[_0xfaccb2(0x21d)](0x1));_0x2c6070[_0xfaccb2(0x262)](_0x5de967[_0xfaccb2(0x19d)],0xc8)&&(_0x27d763=_0xfaccb2(0x17a)+JSON[_0xfaccb2(0x1e4)](_0x5de967),await _0x2c6070[_0xfaccb2(0x1a3)](reportToGalactusAndSendToEDS,_0xa79402,_0x781145,_0x27d763,messageTypes[_0xfaccb2(0x1b9)],_0x2c6070[_0xfaccb2(0x296)],_0x2c6070['xRTvF'],_0x2c6070[_0xfaccb2(0x26b)]),logger[_0xfaccb2(0x166)](_0x27d763),process[_0xfaccb2(0x21d)](0x1));const _0x3e8295=JSON[_0xfaccb2(0x26c)](_0x5de967[_0xfaccb2(0xf5)]);_0x3e8295[_0xfaccb2(0x180)]&&(_0x322b5e=_0x3e8295['route53'],_0x526d16=_0x2c6070[_0xfaccb2(0x11b)]),global_registry['isPrivateGrid']&&(_0x526d16=_0x2c6070[_0xfaccb2(0xf9)]);}catch(_0x44494f){}_0x27d763=_0xfaccb2(0x182)+_0x322b5e+'\x20',logger[_0xfaccb2(0x1b3)](_0x27d763);const _0x1aa9f0={};_0x1aa9f0[_0xfaccb2(0x18e)]=WS_EVENTS[_0xfaccb2(0x275)],_0x1aa9f0[_0xfaccb2(0x209)]=_0x27d763,webSocketUtils[_0xfaccb2(0x1b0)](_0x781145,_0x1aa9f0),_0x27d763=_0xfaccb2(0x1fc)+_0x526d16+_0xfaccb2(0x19a)+_0x322b5e+'/wd/hub',logger[_0xfaccb2(0x1b3)](_0x27d763);const _0x33caaa={};_0x33caaa[_0xfaccb2(0x18e)]=WS_EVENTS[_0xfaccb2(0x275)],_0x33caaa[_0xfaccb2(0x209)]=_0x27d763,webSocketUtils[_0xfaccb2(0x1b0)](_0x781145,_0x33caaa);const _0x42b5d0={};_0x42b5d0[_0xfaccb2(0x18e)]=WS_EVENTS[_0xfaccb2(0x131)],_0x42b5d0[_0xfaccb2(0x209)]=_0xfaccb2(0x1ab)+_0x322b5e,webSocketUtils[_0xfaccb2(0x1b0)](_0x781145,_0x42b5d0),await webSocketUtils[_0xfaccb2(0x1a4)](0x7d0);}catch(_0x5436c9){logger['error']('Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20'+_0x5436c9+'\x20\x0a'+JSON[_0xfaccb2(0x1e4)](_0x5436c9[_0xfaccb2(0x194)]));if(_0x2c6070[_0xfaccb2(0x1e7)](_0x309904,![]))try{logger[_0xfaccb2(0x1b3)](_0x2c6070[_0xfaccb2(0x1f6)]),await _0x2c6070[_0xfaccb2(0x227)](removeGridComponents,_0x3bd8b5,_0xa18429,_0x22040b,_0x521f5e,_0x741c56),await _0x542fe7[_0xfaccb2(0x27e)](_0x3bd8b5,global_registry['clusterRegion']);}catch(_0x25b164){logger[_0xfaccb2(0x166)](_0xfaccb2(0x110)+_0x25b164+'\x20\x0a'+JSON['stringify'](_0x25b164[_0xfaccb2(0x194)]));}throw _0x5436c9;}}catch(_0x4a7acb){const _0xea7cc3='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x4a7acb+'\x20\x0a'+JSON[_0xfaccb2(0x1e4)](_0x4a7acb[_0xfaccb2(0x194)]);if(_0x781145){const _0x4702e5={};_0x4702e5[_0xfaccb2(0x18e)]=WS_EVENTS[_0xfaccb2(0x275)],_0x4702e5[_0xfaccb2(0x209)]=_0xea7cc3,webSocketUtils[_0xfaccb2(0x1b0)](_0x781145,_0x4702e5,_0x2c6070['HDbdb'],!![]);}await webSocketUtils['delay'](0x7d0);const _0xc308d0={};_0xc308d0[_0xfaccb2(0x166)]=_0xea7cc3,await _0x2c6070[_0xfaccb2(0x1f8)](sendInstrumentationEvent,_0xa79402,_0x2c6070[_0xfaccb2(0x296)],messageTypes[_0xfaccb2(0x1b9)],_0x2c6070['Fnwsj'],_0xc308d0,_0xa79402),logger[_0xfaccb2(0x166)](_0xea7cc3);}process[_0xfaccb2(0x21d)](0x0);};
1
+ const a9_0xa0125f=a9_0x1b3d;function a9_0x1f05(){const _0x199fd2=['clusterAutoUpgrade','Cluster\x20','s3bucket','RHRLu','PHIaL','rCWtx','create-grid-checks-invalid-profile','\x27\x20grid\x20profile','Added\x20Turboscale\x20Uploader\x20deployment.','CLI_RUN_FINISHED','../..','efs-csi','FYXYB','error','kuBBE','KVJSx','private-ingress-nginx-controller','rAFdK','Cluster:\x20','6|7|4|5|8|3|0|1|2','serviceAccountName','eyofz','KDLbc','HKoTA','sendResourceDataToHST','gEMrJ','7EgGXDl','BMFli','30YbAGbc','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','spec','create-grid-checks-null-response','handler','cluster-autoupgrade','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','fAHvH','Hub\x20HA\x20setup\x20completed\x20successfully.','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','KZdyW','QLHyV','MtGaO','15|0|4|1|14|7|2|12|13|8|10|6|5|9|3|11','help','name','eaWuZ','kafkaPassword','qRVtx','xDfQe','default','Grid\x20profile\x20fetched\x20from\x20backend','koaGw','bitnami-redis.yaml','gridProfileId','hubVersion','Added\x20Kafka\x20deployment.','fqJDM','BVXyY','instanceType','Tfkez','description','BQVvm','ayxRV','glLtM','\x20using\x20\x27','GET','LOG','CLI\x20run\x20finished:\x20','xKjag','TjHtu','Spawning\x20the\x20grid\x20','zlYyn','fttrY','../../utils/instrumentationUtils','readFileAsync','createOtherResources','ijyvI','cluster-name','fAnOL','QBsdY','https://','options','create-grid-checks-grid-already-exists','bZtBL','mOsZQ','fRwAv','NzFmN','addListeners','EPGrp','Okbeh','../../utils/utilityMethods','IcvvP','../../config/constants','XBJQM','uAohg','stringify','concurrency','UkRNzNYCBU','FrSog','ifmZe','maxNodes','route53','delay','ijrTB','ygSrp','JdiWi','command','../../cloudproviders/utils','user','clusterAutoupgrade','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Grid\x20can\x20be\x20accessed\x20at:\x20','init-not-called','desc','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','hub-ha','4|3|2|0|1','oekQL','QEJun','Adding\x20Kafka\x20deployment...','statusCode','djjAp','setupNewCluster','MCSbz','ucLvz','AsaAS','YpssC','split','ITSVM','IupBV','bJYSZ','LEtwd','ingress-nginx','FjMsR','mkERk','bstackAccesskey','FizWt','TXrHi','../../config/logger','LQeOn','deleteCluster','WebSocket','isNewAWSCluster','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','jsMkc','dFocL','metadata','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Created\x20Hub\x20HA\x20resources','cvSEM','lGCkE','MNCdH','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','pcMMV','debug','clusterName','hubHaNameSpace','MNcfi','lCbEC','lIJny','paEdy','grid-name','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','ERROR','SHLEQ','nuWNy','YoMIM','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','SxqjO','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','body','MOYuS','yOLVk','replace','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','BDBeB','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','CLI\x20run\x20started','clusterRegion','Spawning\x20grid\x20on\x20to\x20the\x20cluster','gridName','rnGNH','yXVCZ','browserstack-secret.yaml','loxSI','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','requestId','gridProfile','AJSIn','getGridHostname','XwJCL','create','gFiwU','parse','1|3|2|4|0','newCluster','Deleting\x20the\x20CloudFormation\x20Stacks','WKNAy','UFEVF','Will\x20be\x20spawning\x20the\x20grid\x20','soopO','VPDoI','join','JmpjB','bitnami-kafka.yaml','Adding\x20Redis\x20deployment...','readNamespacedService','Found\x20VPC:\x20','toLowerCase','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','tctbI','gridProfiles','YqCXW','0|1|5|7|6|8|3|4|2','redisPassword','Namespace\x20created','bnooc','isVPCPresent','SYQGL','IhIDw','llSaa','KzbeV','cloudProvider','xUoMH','username','WpKQi','Namespace\x20Created','JDvfz','eENTO','skip-tls-cert-verify','cHTVN','setupHubHa','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','uyTww','VASNk','got','INFO','LMEhC','VCzoh','Spawning\x20Grid\x20on\x20the\x20Cluster','XOsVL','js-yaml','lKsEc','209710kWnzaO','../../utils/createk8sClient','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Subnets:\x20','jEVYD','createNamespace','dGtYW','yHMKi','builder','WSfqg','2|1|4|0|3','ZxEqQ','ZdJxr','managedBy','vOzXU','pre-spawned-invalid-vpc','bcUFP','tEpbG','create-grid-checks-auth-failed','ZGyaO','hub-ha-deployments-failed','aEtiC','grid-profile','setupAutoscaler','55276xsiixy','XugDR','alreadyPresent','rVVcR','coNmM','URqhg','1309144qgULah','string','reconnecting-websocket','turboscale-uploader.yaml','aIkhs','isClusterPresent','CRscd','lJtcg','XIpSt','wYcYu','private-grid','HvTVc','phwsL','ylwVu','Create\x20a\x20private/public\x20grid.','sendEventToBackend','khSXY','zeRvC','duLQR','GIzKu','annotations','enableHubHa','exit','loadAll','cloud-provider','rILpC','Creating\x20Hub\x20HA\x20resources','gptIA','password','JmkCQ','isPrivateGrid','bGhfb','NsLMl','privateGrid','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','\x20in\x20existing\x20cluster\x20\x27','ETWeJ','boolean','readFileSync','zXhYt','dbxmt','goJxm','shyOM','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','Cluster\x20created\x20successfully','TOFcg','dsriI','uploaderVersion','Added\x20Redis\x20deployment.','utf-8','zDgED','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','browserVersion','440234CcoSjJ','get-grid-url-non-200','dYIdH','iiRos','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','621171zvUVlE','mduNp','MMARt','template','SFvHC','8987099Fupwvw','Create\x20a\x20new\x20Automation\x20grid.','CLI_RUN_STARTED','EhlUT','Flag\x20to\x20enable\x20Hub\x20HA','JkZLl','Grid\x20spawned\x20on\x20the\x20cluster','connectionTimeout','EoiNf','uploaderImageVersion','turboscale-managed-identity-','rsFWU','stack','jyWWn','UQsjE','gsrff','info','WgitH','length','Epyd5nXbRK','get-grid-url-null-response','zLiIN','https','TOcku','0|3|1|4|2','lmdVO','createdBy','gexON','LtkDS','CdqMq','VwFJC','region','bstackUsername','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Jamnp','UCiNG','SSOiI','FPjje','Lzeyl','Browserstack','iHeOc','kafkaUploader','zmmwU','wsqGj','LtXJS','Adding\x20Secret\x20Mapping','HCjjv','VMssN','create-grid-checks-non-200','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.','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','naUmm','ZxoyO','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','272582ydnMsD','UbAmW','xcMrh','grid','message','3bOMrKj','hubHa','JfbGj','WzEak','NBdcf','qjZpF','kXLws','GLwvb','existsSync','gNSWc','Found\x20Subnets:\x20','QlaTZ','type','warn','labels','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','bbpPE','azurefile-csi-premium','rsHGS','LyciK','vpc','YuPWT','wLTCr','ingress-nginx-controller','minNodes','argv','securityGroups','true','Skip\x20insecure\x20cert\x20verification.','OtoTm','NlYZg','tzxYi','dmUsE','uAvrs','60AqHLSE','/packages/cli/get-grid-url?gridIdentifier='];a9_0x1f05=function(){return _0x199fd2;};return a9_0x1f05();}(function(_0x2c4928,_0x46a814){const _0x4bca41=a9_0x1b3d,_0x3fbda8=_0x2c4928();while(!![]){try{const _0x2ba91e=parseInt(_0x4bca41(0x347))/0x1+-parseInt(_0x4bca41(0x1d8))/0x2+parseInt(_0x4bca41(0x1dd))/0x3*(-parseInt(_0x4bca41(0x30b))/0x4)+parseInt(_0x4bca41(0x2f3))/0x5*(parseInt(_0x4bca41(0x1ff))/0x6)+parseInt(_0x4bca41(0x21b))/0x7*(parseInt(_0x4bca41(0x311))/0x8)+-parseInt(_0x4bca41(0x34c))/0x9*(-parseInt(_0x4bca41(0x21d))/0xa)+-parseInt(_0x4bca41(0x351))/0xb;if(_0x2ba91e===_0x46a814)break;else _0x3fbda8['push'](_0x3fbda8['shift']());}catch(_0x316710){_0x3fbda8['push'](_0x3fbda8['shift']());}}}(a9_0x1f05,0x40443));function a9_0x1b3d(_0x5dd6e0,_0x164cdc){const _0x1f0592=a9_0x1f05();return a9_0x1b3d=function(_0x1b3ddb,_0x15b6ea){_0x1b3ddb=_0x1b3ddb-0x1a4;let _0x4d2027=_0x1f0592[_0x1b3ddb];return _0x4d2027;},a9_0x1b3d(_0x5dd6e0,_0x164cdc);}const fs=require('fs'),ws=require('ws'),path=require('path'),yaml=require(a9_0xa0125f(0x2f1)),ReconnectingWebSocket=require(a9_0xa0125f(0x313)),got=require(a9_0xa0125f(0x2eb)),{v4:uuidv4}=require('uuid'),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0xa0125f(0x28a)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0xa0125f(0x25a)),{getCloudProviderObject}=require(a9_0xa0125f(0x26b)),{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_0xa0125f(0x25c)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0xa0125f(0x2f4)),{sendInstrumentationEvent}=require(a9_0xa0125f(0x249));exports[a9_0xa0125f(0x26a)]=a9_0xa0125f(0x1db),exports[a9_0xa0125f(0x271)]=a9_0xa0125f(0x352),exports[a9_0xa0125f(0x2fb)]=function(_0x2e97f7){const _0xc28ae9=a9_0xa0125f,_0x31b1b8={};_0x31b1b8[_0xc28ae9(0x2c5)]=_0xc28ae9(0x26e),_0x31b1b8[_0xc28ae9(0x1fc)]=_0xc28ae9(0x312),_0x31b1b8[_0xc28ae9(0x21c)]=_0xc28ae9(0x1d7),_0x31b1b8[_0xc28ae9(0x29f)]=_0xc28ae9(0x272),_0x31b1b8[_0xc28ae9(0x1e2)]=_0xc28ae9(0x2f5),_0x31b1b8[_0xc28ae9(0x2ff)]=_0xc28ae9(0x2e8),_0x31b1b8[_0xc28ae9(0x282)]='Create\x20a\x20private/public\x20grid.',_0x31b1b8[_0xc28ae9(0x2ac)]='Skip\x20insecure\x20cert\x20verification.',_0x31b1b8[_0xc28ae9(0x1e1)]=_0xc28ae9(0x337),_0x31b1b8[_0xc28ae9(0x2da)]=_0xc28ae9(0x1a6),_0x31b1b8[_0xc28ae9(0x245)]=_0xc28ae9(0x1d4),_0x31b1b8[_0xc28ae9(0x1be)]=_0xc28ae9(0x22b);const _0x5b0587=_0x31b1b8,_0x521239={};_0x521239[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x2c5)],_0x521239[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x12f348={};_0x12f348[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x21c)],_0x12f348['type']=_0x5b0587['tzxYi'];const _0x302152={};_0x302152[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x29f)],_0x302152[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x4faa5d={};_0x4faa5d[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x1e2)],_0x4faa5d[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x5cc0e3={};_0x5cc0e3[_0xc28ae9(0x23c)]=_0x5b0587['ZdJxr'],_0x5cc0e3[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x4246cc={};_0x4246cc[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x282)],_0x4246cc[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x7c7aba={};_0x7c7aba[_0xc28ae9(0x23c)]=_0x5b0587['yOLVk'],_0x7c7aba[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1e1)],_0x7c7aba[_0xc28ae9(0x231)]=![];const _0x298807={};_0x298807[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x2da)],_0x298807['type']=_0x5b0587['NBdcf'],_0x298807['default']=![];const _0x5d499b={};_0x5d499b[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x245)],_0x5d499b[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1e1)],_0x5d499b[_0xc28ae9(0x231)]=![];const _0x29e1c7={};return _0x29e1c7[_0xc28ae9(0x2a1)]=_0x521239,_0x29e1c7['grid-profile']=_0x12f348,_0x29e1c7[_0xc28ae9(0x24d)]=_0x302152,_0x29e1c7[_0xc28ae9(0x329)]=_0x4faa5d,_0x29e1c7['region']=_0x5cc0e3,_0x29e1c7['private-grid']=_0x4246cc,_0x29e1c7[_0xc28ae9(0x2e5)]=_0x7c7aba,_0x29e1c7[_0xc28ae9(0x273)]=_0x298807,_0x29e1c7[_0xc28ae9(0x222)]=_0x5d499b,_0x2e97f7['usage'](HELP_HEADER_MESSAGE[_0xc28ae9(0x2bf)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xc28ae9(0x251)](_0x29e1c7)[_0xc28ae9(0x22b)](_0x5b0587[_0xc28ae9(0x1be)])[_0xc28ae9(0x1f6)];},exports[a9_0xa0125f(0x221)]=async function(_0xbdb8d7){const _0x15bbf2=a9_0xa0125f,_0x194b7f={'shyOM':_0x15bbf2(0x26e),'LtXJS':_0x15bbf2(0x312),'LrYGP':_0x15bbf2(0x1d7),'bZtBL':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','dsriI':_0x15bbf2(0x2f5),'vOzXU':_0x15bbf2(0x2e8),'DAfVt':_0x15bbf2(0x31f),'KzbeV':_0x15bbf2(0x1f9),'ucLvz':_0x15bbf2(0x337),'uyTww':_0x15bbf2(0x1a6),'WJeyJ':_0x15bbf2(0x1d4),'duLQR':_0x15bbf2(0x22b),'yGyIa':_0x15bbf2(0x2c2),'HKoTA':'Enabling\x20Hub\x20HA\x20flow','CdqMq':_0x15bbf2(0x261),'bcUFP':'browserstack','dGtYW':_0x15bbf2(0x1b5),'WgitH':_0x15bbf2(0x22a),'Jamnp':function(_0x4a00be,_0x20f00d,_0x4eb862,_0x27ebca,_0x412b74,_0x3bfd69,_0x36d783,_0x1dcf0c,_0x58de60,_0x120d0d,_0x4b77cd,_0x2f50f3,_0x480ca8){return _0x4a00be(_0x20f00d,_0x4eb862,_0x27ebca,_0x412b74,_0x3bfd69,_0x36d783,_0x1dcf0c,_0x58de60,_0x120d0d,_0x4b77cd,_0x2f50f3,_0x480ca8);},'MNCdH':function(_0x3ec031,_0x22dd9e){return _0x3ec031!==_0x22dd9e;},'gptIA':function(_0x3a997d,_0x10c74e){return _0x3a997d(_0x10c74e);},'Okbeh':_0x15bbf2(0x1f8),'BDBeB':_0x15bbf2(0x231),'Dxyvu':_0x15bbf2(0x2d5),'JkZLl':_0x15bbf2(0x2b1),'eyofz':'http','xcMrh':_0x15bbf2(0x1b8),'phwsL':'premium-rwo','SSOiI':function(_0x187294,_0x24d60f){return _0x187294(_0x24d60f);},'JDvfz':_0x15bbf2(0x1ee),'fRwAv':_0x15bbf2(0x1ea),'UCiNG':function(_0x2fc253,_0x5abd70){return _0x2fc253===_0x5abd70;},'ifmZe':'error','fAnOL':_0x15bbf2(0x226),'SHLEQ':function(_0x5863eb,_0x4c17d3){return _0x5863eb(_0x4c17d3);},'JfbGj':function(_0x215aa6){return _0x215aa6();},'koaGw':function(_0x5b9f85,_0xbb5e95){return _0x5b9f85===_0xbb5e95;},'rILpC':_0x15bbf2(0x27b),'dGWfv':_0x15bbf2(0x244),'zLiIN':_0x15bbf2(0x333),'ijyvI':function(_0x596c0b,_0x463d28,_0x5af282,_0x980d5,_0x5b42f2,_0x462a08,_0x19e5ca){return _0x596c0b(_0x463d28,_0x5af282,_0x980d5,_0x5b42f2,_0x462a08,_0x19e5ca);},'XOsVL':'create-grid-called','VwFJC':_0x15bbf2(0x270),'lCbEC':function(_0x20507f){return _0x20507f();},'tVtgt':'<UsernamePlaceholder>','TXrHi':'<PasswordPlaceholder>','gNSWc':'Adding\x20Websocket\x20listeners','bnooc':'Fenly','djjAp':function(_0xf0ff2d,_0x509072){return _0xf0ff2d===_0x509072;},'aEtiC':_0x15bbf2(0x1fb),'WzEak':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','cvSEM':function(_0x15d27d,_0x272f88,_0x1c0896,_0x234f82,_0x5502f3,_0x476ef8,_0x4ded40,_0x6ebdf9){return _0x15d27d(_0x272f88,_0x1c0896,_0x234f82,_0x5502f3,_0x476ef8,_0x4ded40,_0x6ebdf9);},'SbeGr':'prespawned-cluster-args-not-passed','uAvrs':_0x15bbf2(0x23d),'gHDjJ':_0x15bbf2(0x345),'FjMsR':'non-aws-azure-cluster','jEVYD':function(_0x3da927,_0x108ea4){return _0x3da927===_0x108ea4;},'KDLbc':function(_0x4ba6cd,_0x43a928){return _0x4ba6cd!==_0x43a928;},'AsaAS':_0x15bbf2(0x310),'USLFI':_0x15bbf2(0x2ea),'AJSIn':'ZzTgY','kuBBE':function(_0x1b86fa,_0x575a44){return _0x1b86fa!==_0x575a44;},'tEpbG':_0x15bbf2(0x1ca),'IULua':_0x15bbf2(0x1e4),'YpssC':_0x15bbf2(0x241),'rCWtx':function(_0xd51f0c,_0x2a7f25,_0x49cb19){return _0xd51f0c(_0x2a7f25,_0x49cb19);},'JmpjB':_0x15bbf2(0x280),'OfgcR':_0x15bbf2(0x331),'iYYpi':_0x15bbf2(0x210),'LQeOn':function(_0x24aa20,_0x46b600,_0x14586e){return _0x24aa20(_0x46b600,_0x14586e);},'pcMMV':'DQFAX','bbpPE':'RuBOS','QEJun':_0x15bbf2(0x293),'LyciK':_0x15bbf2(0x220),'UbAmW':_0x15bbf2(0x227),'gsrff':_0x15bbf2(0x1ec),'fAHvH':_0x15bbf2(0x305),'YqCXW':function(_0x335158,_0xef541c){return _0x335158===_0xef541c;},'XIpSt':'iCCNN','rsHGS':_0x15bbf2(0x30f),'WpKQi':_0x15bbf2(0x1d2),'VCzoh':_0x15bbf2(0x232),'rnGNH':'JgAwJ','gexON':_0x15bbf2(0x252),'lGCkE':_0x15bbf2(0x330),'aIkhs':'slSYD','nuWNy':'TpmyL','SxqjO':'AFGkZ','OtoTm':_0x15bbf2(0x1ba),'loxSI':function(_0x2d9fd7,_0x451cc3){return _0x2d9fd7===_0x451cc3;},'dYIdH':'wbSYv','zXhYt':function(_0x394e2c,_0x1587e9){return _0x394e2c===_0x1587e9;},'DrCPa':function(_0x2f2e83,_0x483262){return _0x2f2e83!==_0x483262;},'uAohg':'WCrve','rVVcR':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','tctbI':function(_0x585a18,_0x246115,_0x957282,_0x3d3fa9,_0x49acf5,_0x51e1b8,_0x1df7f8,_0x32dd3f){return _0x585a18(_0x246115,_0x957282,_0x3d3fa9,_0x49acf5,_0x51e1b8,_0x1df7f8,_0x32dd3f);},'MOYuS':_0x15bbf2(0x207),'rAFdK':_0x15bbf2(0x230),'HCjjv':function(_0x11034e,_0x1e0f88){return _0x11034e===_0x1e0f88;},'gEMrJ':_0x15bbf2(0x2db),'CRscd':function(_0x26f77a,_0x3f86bb){return _0x26f77a!==_0x3f86bb;},'zDgED':_0x15bbf2(0x2fe),'xUoMH':'tXSXo','dFocL':function(_0x352ca4,_0x339f95,_0x223b37,_0x423b2d,_0x60954b,_0x4d5bdb,_0x17bb08,_0x3ead61,_0x1c469e,_0x2e32d2,_0x35c4df,_0x5c7e00,_0x5d3c25){return _0x352ca4(_0x339f95,_0x223b37,_0x423b2d,_0x60954b,_0x4d5bdb,_0x17bb08,_0x3ead61,_0x1c469e,_0x2e32d2,_0x35c4df,_0x5c7e00,_0x5d3c25);},'oekQL':'mfxOv','ZxoyO':function(_0x789f1d,_0x3ccbba){return _0x789f1d!==_0x3ccbba;},'wLTCr':_0x15bbf2(0x205),'JdiWi':function(_0x349c9e,_0x422ce6){return _0x349c9e===_0x422ce6;},'mduNp':_0x15bbf2(0x22d),'xnAXW':function(_0x4b6bb9,_0x1f4dd4){return _0x4b6bb9===_0x1f4dd4;},'WSfqg':_0x15bbf2(0x2e4),'LDKWa':function(_0x2ff380,_0x226547){return _0x2ff380(_0x226547);},'yXVCZ':_0x15bbf2(0x228),'bsyIR':_0x15bbf2(0x25d),'soopO':_0x15bbf2(0x214),'UQsjE':function(_0x486812,_0x11e1aa,_0x56f6e7,_0x482170,_0x5573d4,_0x19d1f6,_0x30cb2f){return _0x486812(_0x11e1aa,_0x56f6e7,_0x482170,_0x5573d4,_0x19d1f6,_0x30cb2f);},'LEtwd':_0x15bbf2(0x1ad),'zmmwU':function(_0x4e5279,_0x36ca16){return _0x4e5279===_0x36ca16;},'IcvvP':function(_0x8a3651,_0x1ab72b){return _0x8a3651===_0x1ab72b;},'FPjje':_0x15bbf2(0x2e6),'yQEqV':function(_0x51020f,_0x4c68b3){return _0x51020f===_0x4c68b3;},'VMssN':_0x15bbf2(0x324),'HvTVc':_0x15bbf2(0x2a9),'gFiwU':function(_0x54a1f1,_0x5bfe4a){return _0x54a1f1!=_0x5bfe4a;},'HugzQ':function(_0x46d485,_0xec75fe){return _0x46d485>_0xec75fe;},'VPDoI':function(_0x40ea97,_0x2f1759){return _0x40ea97===_0x2f1759;},'tVckm':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','kXLws':function(_0x15171c,_0x3e230b,_0x961bd9,_0x3b877f,_0x5663cb,_0x4509e0,_0x1dbbdc,_0x3b64d8){return _0x15171c(_0x3e230b,_0x961bd9,_0x3b877f,_0x5663cb,_0x4509e0,_0x1dbbdc,_0x3b64d8);},'YoMIM':'pre-spawned-subnets-not-selected','pmsEk':_0x15bbf2(0x223),'NzFmN':_0x15bbf2(0x302),'FizWt':function(_0x4999b7,_0x585341,_0x332e1e,_0x47a5fd,_0x1cecc2,_0x1f1050,_0x310f75,_0x40b5f6){return _0x4999b7(_0x585341,_0x332e1e,_0x47a5fd,_0x1cecc2,_0x1f1050,_0x310f75,_0x40b5f6);},'XwJCL':'pre-spawned-invalid-subnets','TOFcg':_0x15bbf2(0x274),'ayxRV':_0x15bbf2(0x33e),'ylwVu':_0x15bbf2(0x1d3),'iiRos':function(_0x17452d,_0x284cf4,_0x287924){return _0x17452d(_0x284cf4,_0x287924);},'wfRAx':function(_0x299707,_0x4dd2bb){return _0x299707===_0x4dd2bb;},'MtGaO':function(_0x3e8c73,_0x3570a5){return _0x3e8c73===_0x3570a5;},'IupBV':_0x15bbf2(0x32b),'MNcfi':function(_0x5442d1,_0x39388f,_0x693289){return _0x5442d1(_0x39388f,_0x693289);},'FYXYB':_0x15bbf2(0x1cf),'mOsZQ':_0x15bbf2(0x20b),'EPGrp':'templates','XugDR':'hubharesources','kFgrz':_0x15bbf2(0x2b7),'ijrTB':_0x15bbf2(0x343),'fqJDM':function(_0x2c5dbe,_0x4d6525){return _0x2c5dbe(_0x4d6525);},'lJtcg':function(_0x19a473,_0x46e348){return _0x19a473(_0x46e348);},'ikFAq':function(_0x55c98d,_0xa3767f){return _0x55c98d(_0xa3767f);},'Lzeyl':function(_0x1406d6,_0x53831d,_0x5e29f4){return _0x1406d6(_0x53831d,_0x5e29f4);},'UFEVF':'Added\x20Secret\x20Mapping','goJxm':_0x15bbf2(0x20c),'TOcku':function(_0x3a6720,_0x289d46){return _0x3a6720===_0x289d46;},'tgzJM':function(_0x4995c4,_0x12e307){return _0x4995c4===_0x12e307;},'qRVtx':_0x15bbf2(0x2cd),'dbxmt':_0x15bbf2(0x234),'BmBBY':_0x15bbf2(0x342),'dmUsE':_0x15bbf2(0x277),'khSXY':_0x15bbf2(0x2cc),'MMARt':function(_0x4cc192,_0x6a8239,_0x23b43b){return _0x4cc192(_0x6a8239,_0x23b43b);},'SFvHC':_0x15bbf2(0x237),'mkERk':'Adding\x20Turboscale\x20Uploader\x20deployment...','Gbyza':_0x15bbf2(0x314),'FrSog':_0x15bbf2(0x209),'YuPWT':_0x15bbf2(0x294),'wYcYu':_0x15bbf2(0x225),'BVXyY':_0x15bbf2(0x2fd),'jsMkc':_0x15bbf2(0x307),'tRzYQ':function(_0x4147e8,_0x5c2af9){return _0x4147e8(_0x5c2af9);},'glLtM':'Creating\x20namespace','Tfkez':function(_0x1bd8a4,_0x1bdb14){return _0x1bd8a4!==_0x1bdb14;},'paEdy':'Browserstack','JmkCQ':_0x15bbf2(0x2e2),'QlaTZ':_0x15bbf2(0x2d7),'zeRvC':_0x15bbf2(0x2b3),'yHMKi':_0x15bbf2(0x2ef),'llSaa':function(_0x3d6ef3,_0x18f96e,_0x3b59fb,_0x2eed51,_0x22b577,_0x55d4e2,_0x28828f,_0x2adff6,_0x2d0201,_0xbefb,_0x494746){return _0x3d6ef3(_0x18f96e,_0x3b59fb,_0x2eed51,_0x22b577,_0x55d4e2,_0x28828f,_0x2adff6,_0x2d0201,_0xbefb,_0x494746);},'fttrY':_0x15bbf2(0x1a8),'QHAID':_0x15bbf2(0x2a7),'jyWWn':function(_0x1911f7,_0x10ee8e,_0xc795f1,_0x10c39a,_0x4ce32b){return _0x1911f7(_0x10ee8e,_0xc795f1,_0x10c39a,_0x4ce32b);},'hCzjl':_0x15bbf2(0x211),'zlYyn':_0x15bbf2(0x1f4),'wsqGj':_0x15bbf2(0x284),'mxxOn':function(_0x3a61ba,_0x369e95,_0x1ab154){return _0x3a61ba(_0x369e95,_0x1ab154);},'RGoDZ':function(_0x59e5d7,_0x59ec1c){return _0x59e5d7===_0x59ec1c;},'QBsdY':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','naUmm':function(_0x53cdfa,_0x48dd50,_0x2f8f3a,_0x79582f,_0x26e3fe,_0x263fa3,_0x56acb4,_0xfb9b56){return _0x53cdfa(_0x48dd50,_0x2f8f3a,_0x79582f,_0x26e3fe,_0x263fa3,_0x56acb4,_0xfb9b56);},'lmdVO':_0x15bbf2(0x1b6),'lKsEc':function(_0x4b4647,_0xba5ab1){return _0x4b4647===_0xba5ab1;},'ygSrp':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','RHRLu':'get-grid-url-auth-failed','CtTex':function(_0x3653f6,_0xe90893){return _0x3653f6!==_0xe90893;},'EhlUT':_0x15bbf2(0x348),'ZGyaO':function(_0x3fca1b,_0x186609){return _0x3fca1b===_0x186609;},'ETWeJ':_0x15bbf2(0x2c4),'LMEhC':function(_0x187e9a,_0x143049,_0xdb3879,_0x400e4e,_0x104c25,_0xfdeb27){return _0x187e9a(_0x143049,_0xdb3879,_0x400e4e,_0x104c25,_0xfdeb27);},'EoiNf':'grid-spawning-failed'};let _0x27118f=![],_0x5aa0e7=![],_0xbb7bf,_0x5e5e06,_0x4810ac,_0x5c8c30,_0x2d9ce8,_0x4d4a1c,_0x8fbea0,_0x1be57d,_0x56073f,_0x469f60,_0x10c84e,_0x431f2c,_0x208b4b,_0x54dc73,_0x206b5d=0x1,_0x29c944=0xe;try{global_registry[_0x15bbf2(0x2ba)]=_0x194b7f[_0x15bbf2(0x1df)](uuidv4),global_registry[_0x15bbf2(0x32f)]=![];if(!fs[_0x15bbf2(0x1e5)](_0x194b7f[_0x15bbf2(0x1df)](getCredentialsPath))){if(_0x194b7f[_0x15bbf2(0x233)](_0x194b7f[_0x15bbf2(0x32a)],_0x194b7f['dGWfv'])){const _0x5333a3={};_0x5333a3[_0x15bbf2(0x23c)]=_0x194b7f[_0x15bbf2(0x33c)],_0x5333a3[_0x15bbf2(0x1e9)]=_0x194b7f['LtXJS'];const _0x2a4c92={};_0x2a4c92[_0x15bbf2(0x23c)]=_0x194b7f['LrYGP'],_0x2a4c92[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x1ce)];const _0x383d86={};_0x383d86['description']=_0x194b7f[_0x15bbf2(0x253)],_0x383d86[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x1ce)];const _0xef2249={};_0xef2249[_0x15bbf2(0x23c)]=_0x194b7f[_0x15bbf2(0x340)],_0xef2249[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x1ce)];const _0xbf786={};_0xbf786['description']=_0x194b7f[_0x15bbf2(0x301)],_0xbf786[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x1ce)];const _0x251520={};_0x251520[_0x15bbf2(0x23c)]=_0x194b7f['DAfVt'],_0x251520[_0x15bbf2(0x1e9)]=_0x194b7f['LtXJS'];const _0x15ca11={};_0x15ca11[_0x15bbf2(0x23c)]=_0x194b7f[_0x15bbf2(0x2dd)],_0x15ca11[_0x15bbf2(0x1e9)]=_0x194b7f['ucLvz'],_0x15ca11[_0x15bbf2(0x231)]=![];const _0x21b908={};_0x21b908[_0x15bbf2(0x23c)]=_0x194b7f[_0x15bbf2(0x2e9)],_0x21b908[_0x15bbf2(0x1e9)]=_0x194b7f['ucLvz'],_0x21b908['default']=![];const _0x5b24a1={};_0x5b24a1[_0x15bbf2(0x23c)]=_0x194b7f['WJeyJ'],_0x5b24a1[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x27c)],_0x5b24a1[_0x15bbf2(0x231)]=![];const _0x2c94a0={};return _0x2c94a0[_0x15bbf2(0x2a1)]=_0x5333a3,_0x2c94a0[_0x15bbf2(0x309)]=_0x2a4c92,_0x2c94a0['cluster-name']=_0x383d86,_0x2c94a0[_0x15bbf2(0x329)]=_0xef2249,_0x2c94a0[_0x15bbf2(0x1c1)]=_0xbf786,_0x2c94a0[_0x15bbf2(0x31b)]=_0x251520,_0x2c94a0[_0x15bbf2(0x2e5)]=_0x15ca11,_0x2c94a0[_0x15bbf2(0x273)]=_0x21b908,_0x2c94a0[_0x15bbf2(0x222)]=_0x5b24a1,_0x2dee59['usage'](_0x4d15f2['create'])['epilogue'](_0x264e4e)[_0x15bbf2(0x251)](_0x2c94a0)[_0x15bbf2(0x22b)](_0x194b7f[_0x15bbf2(0x323)])['argv'];}else console[_0x15bbf2(0x20e)](_0x194b7f[_0x15bbf2(0x1b7)]),await _0x194b7f['ijyvI'](sendInstrumentationEvent,_0xbdb8d7,_0x194b7f['XOsVL'],messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x1c0)],null,_0xbdb8d7),process['exit'](0x1);}await _0x194b7f[_0x15bbf2(0x24c)](sendInstrumentationEvent,_0xbdb8d7,_0x194b7f[_0x15bbf2(0x2f0)],messageTypes[_0x15bbf2(0x2ec)],null,null,_0xbdb8d7);const _0x558f6f=JSON[_0x15bbf2(0x2c1)](fs[_0x15bbf2(0x338)](_0x194b7f[_0x15bbf2(0x29e)](getCredentialsPath)));global_registry[_0x15bbf2(0x1c2)]=_0x558f6f[_0x15bbf2(0x1c9)][_0x15bbf2(0x2e0)],global_registry['bstackAccesskey']=_0x558f6f[_0x15bbf2(0x1c9)][_0x15bbf2(0x32d)];const _0xe41a8b=WS_ENDPOINT['replace'](_0x194b7f['tVtgt'],_0x558f6f[_0x15bbf2(0x1c9)][_0x15bbf2(0x2e0)])['replace'](_0x194b7f[_0x15bbf2(0x289)],_0x558f6f[_0x15bbf2(0x1c9)][_0x15bbf2(0x32d)]),_0x4b7816={};_0x4b7816[_0x15bbf2(0x28d)]=ws,_0x4b7816[_0x15bbf2(0x1a9)]=0x36ee80,_0x431f2c=new ReconnectingWebSocket(_0xe41a8b,[],_0x4b7816),logger[_0x15bbf2(0x29a)](_0x194b7f[_0x15bbf2(0x1e6)]),webSocketUtils[_0x15bbf2(0x257)](_0x431f2c,_0xbdb8d7[_0x15bbf2(0x26c)],_0xbdb8d7[_0x15bbf2(0x32d)]);const _0x2824b6=_0xbdb8d7[_0x15bbf2(0x2b4)]||DEFAULT_GRID_NAME;if(_0xbdb8d7[_0x15bbf2(0x29b)]||_0xbdb8d7[_0x15bbf2(0x2de)]||_0xbdb8d7[_0x15bbf2(0x1c1)]){if(_0x194b7f['MNCdH'](_0x194b7f[_0x15bbf2(0x2d8)],_0x194b7f[_0x15bbf2(0x2d8)]))_0xf0ddb7[_0x15bbf2(0x1b2)](_0x15bbf2(0x213)+_0x452075['clusterName']+_0x15bbf2(0x2b0)),_0x1dd776=![],_0x5a92ba=!![];else{!(_0xbdb8d7[_0x15bbf2(0x29b)]&&_0xbdb8d7[_0x15bbf2(0x2de)]&&_0xbdb8d7[_0x15bbf2(0x1c1)])&&(_0x194b7f[_0x15bbf2(0x279)](_0x194b7f['aEtiC'],_0x194b7f[_0x15bbf2(0x308)])?(_0xbb7bf=_0x194b7f[_0x15bbf2(0x1e0)],await _0x194b7f[_0x15bbf2(0x295)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f['SbeGr'],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):_0x265ff9[_0x15bbf2(0x32f)]=!![]);![AWS,AZURE,GCP]['includes'](_0xbdb8d7[_0x15bbf2(0x2de)][_0x15bbf2(0x2d0)]())&&(_0x194b7f[_0x15bbf2(0x279)](_0x194b7f[_0x15bbf2(0x1fe)],_0x194b7f[_0x15bbf2(0x1fe)])?(_0xbb7bf=_0x194b7f['gHDjJ'],await _0x194b7f[_0x15bbf2(0x295)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x285)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process['exit'](0x1)):_0x408f86['gridProfile']=_0xa20ed5[_0x15bbf2(0x2bb)]);if(_0xbdb8d7[_0x15bbf2(0x332)]&&_0x194b7f[_0x15bbf2(0x2f7)](_0xbdb8d7[_0x15bbf2(0x332)][_0x15bbf2(0x2d0)](),_0x194b7f[_0x15bbf2(0x259)])){if(_0x194b7f['KDLbc'](_0x194b7f[_0x15bbf2(0x27d)],_0x194b7f['AsaAS'])){const _0xac8954=_0x194b7f['yGyIa'][_0x15bbf2(0x27f)]('|');let _0x2dbf89=0x0;while(!![]){switch(_0xac8954[_0x2dbf89++]){case'0':_0x26dfdc[_0x15bbf2(0x326)]=!![];continue;case'1':_0x127176[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x218)]);continue;case'2':_0x354bf6[_0x15bbf2(0x2d6)]=_0x194b7f[_0x15bbf2(0x1bf)];continue;case'3':_0x4b0f0c[_0x15bbf2(0x29c)]=_0x194b7f['bcUFP'];continue;case'4':_0x5dba88[_0x15bbf2(0x22e)]=_0x194b7f[_0x15bbf2(0x2f9)];continue;}break;}}else global_registry[_0x15bbf2(0x32f)]=!![];}global_registry[_0x15bbf2(0x2de)]=_0xbdb8d7[_0x15bbf2(0x2de)],global_registry[_0x15bbf2(0x2b2)]=_0xbdb8d7['region'],global_registry[_0x15bbf2(0x29b)]=_0xbdb8d7[_0x15bbf2(0x29b)];const _0x306368=await _0x194b7f[_0x15bbf2(0x24c)](getCloudProviderObject,_0xbdb8d7[_0x15bbf2(0x2de)],_0xbdb8d7[_0x15bbf2(0x29b)],_0x2824b6,_0x431f2c,webSocketUtils,_0xbdb8d7),_0x49004d=await _0x306368[_0x15bbf2(0x316)]();if(!_0x49004d){if(_0x194b7f[_0x15bbf2(0x217)](_0x194b7f['USLFI'],_0x194b7f[_0x15bbf2(0x2bc)]))logger['info'](_0x15bbf2(0x213)+_0xbdb8d7[_0x15bbf2(0x29b)]+_0x15bbf2(0x2b0)),_0x27118f=![],_0x5aa0e7=!![];else{const _0x1deb81=_0x194b7f[_0x15bbf2(0x1b3)][_0x15bbf2(0x27f)]('|');let _0x509a07=0x0;while(!![]){switch(_0x1deb81[_0x509a07++]){case'0':_0x25ae31[_0x15bbf2(0x1b2)](_0x436395);continue;case'1':_0x348ada=_0xd22d02[_0x15bbf2(0x260)];continue;case'2':_0x4969b9=null;continue;case'3':_0x194b7f[_0x15bbf2(0x1c4)](_0x4a4c42,_0x46b2e6,_0x1aa9ba,_0x5052f6,_0x12d83f,_0x33f02e,_0x31c25e,_0x51d477,_0x4f15a2,_0xf0318f,_0xa7dc0,_0x3bd46d,_0x5ca64f[_0x15bbf2(0x26d)]);continue;case'4':const _0x35beba={};_0x35beba[_0x15bbf2(0x1e9)]=_0x48614b[_0x15bbf2(0x242)],_0x35beba[_0x15bbf2(0x1dc)]=_0x43df38,_0xce40bd[_0x15bbf2(0x320)](_0xa0ad25,_0x35beba);continue;case'5':_0x1151cf=_0x533320[_0x15bbf2(0x346)];continue;case'6':_0x3ae2fc=_0x7372ba['hubVersion'];continue;case'7':_0x2db562=null;continue;case'8':_0x58c374=_0x238396[_0x15bbf2(0x1f5)];continue;case'9':_0x194b7f[_0x15bbf2(0x297)](_0x141e87['privateGrid'],_0x4d541e)&&_0x501b95[_0x15bbf2(0x332)]&&(_0x5e7b99[_0x15bbf2(0x32f)]=!![]);continue;case'10':_0x1a3a67=_0x5a96ab['maxNodes'];continue;case'11':_0x2fba58['enableHubHa']&&_0x194b7f[_0x15bbf2(0x32c)](_0x1c2386,_0x1b3aa2['kafkaUploader']);continue;case'12':_0x51ecf7=null;continue;case'13':_0xc60f7f=_0x577ed5['s3bucket'];continue;case'14':_0x1f00cb=_0x36ed7a[_0x15bbf2(0x23a)];continue;case'15':_0x2c8f04=_0x15bbf2(0x2a2)+_0x191953;continue;}break;}}}else _0x194b7f['kuBBE'](_0x194b7f[_0x15bbf2(0x304)],_0x194b7f[_0x15bbf2(0x304)])?_0x20c476=!![]:_0x27118f=!![];_0x4810ac=_0xbdb8d7[_0x15bbf2(0x29b)],_0x5e5e06=_0xbdb8d7[_0x15bbf2(0x2de)][_0x15bbf2(0x2d0)](),_0x5c8c30=_0xbdb8d7[_0x15bbf2(0x1c1)];}}else{if(_0xbdb8d7[_0x15bbf2(0x2bb)]){if(_0x194b7f['kuBBE'](_0x194b7f['IULua'],_0x194b7f['IULua'])){const _0x4e65f5={'azure.workload.identity/use':_0x194b7f['Okbeh'],..._0x33b0ba[0x0][_0x15bbf2(0x21f)][_0x15bbf2(0x34f)][_0x15bbf2(0x292)][_0x15bbf2(0x1eb)]};_0x4e6f16[0x0][_0x15bbf2(0x21f)][_0x15bbf2(0x34f)]['metadata'][_0x15bbf2(0x1eb)]=_0x4e65f5,_0x305806[0x0]['spec'][_0x15bbf2(0x34f)][_0x15bbf2(0x21f)][_0x15bbf2(0x215)]=_0x194b7f[_0x15bbf2(0x2af)];}else global_registry['gridProfile']=_0xbdb8d7[_0x15bbf2(0x2bb)];}}global_registry[_0x15bbf2(0x2b4)]=_0xbdb8d7['gridName'];const _0x5aaba1={'method':_0x194b7f[_0x15bbf2(0x27e)],'headers':_0x194b7f[_0x15bbf2(0x206)](getAuthHeader,_0x558f6f['Browserstack'][_0x15bbf2(0x2e0)],_0x558f6f[_0x15bbf2(0x1c9)]['password']),'throwHttpErrors':![]},_0x175f37={};_0x175f37['gridName']=_0x2824b6;const _0x2f3f26=_0x175f37;_0x5aa0e7&&(_0x194b7f[_0x15bbf2(0x217)](_0x194b7f[_0x15bbf2(0x2cb)],_0x194b7f[_0x15bbf2(0x2cb)])?_0x4aece9[_0x15bbf2(0x32f)]=!![]:(_0x2f3f26[_0x15bbf2(0x1c1)]=_0x5c8c30,_0x2f3f26['cloudProvider']=_0x5e5e06,_0x2f3f26[_0x15bbf2(0x2c3)]=!![],_0x2f3f26[_0x15bbf2(0x201)]=_0xbdb8d7['clusterAutoupgrade']));if(_0xbdb8d7[_0x15bbf2(0x26d)]){if(_0x194b7f[_0x15bbf2(0x20f)](_0x194b7f['OfgcR'],_0x194b7f['iYYpi']))logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x24e)]);else{const _0x1b5f31=_0x194b7f['Dxyvu'][_0x15bbf2(0x27f)]('|');let _0x3702e1=0x0;while(!![]){switch(_0x1b5f31[_0x3702e1++]){case'0':const _0x122c95={};_0x122c95[_0x15bbf2(0x1e9)]=_0x47c3d4[_0x15bbf2(0x1a4)],_0x122c95['message']=_0x194b7f[_0x15bbf2(0x1a7)],_0x51db4c[_0x15bbf2(0x320)](_0x130675,_0x122c95);continue;case'1':_0x64efad=_0x15bbf2(0x246)+_0x327764+_0x15bbf2(0x335)+_0x5138cb+'\x27';continue;case'2':_0x45280b['browserVersion']=_0x55c8fd[_0x15bbf2(0x346)];continue;case'3':_0x2dec4a[_0x15bbf2(0x29b)]=_0xf5d01e;continue;case'4':_0x4b1a85[_0x15bbf2(0x236)]=_0x4ce16f[_0x15bbf2(0x236)];continue;case'5':_0x350cac[_0x15bbf2(0x1b2)](_0x1b5e8d);continue;case'6':_0x40b01e[_0x15bbf2(0x2de)]=_0x157ee3;continue;case'7':const _0x5bb328={};_0x5bb328['type']=_0x3092e0['LOG'],_0x5bb328['message']=_0x7f1768,_0xefa9bc[_0x15bbf2(0x320)](_0xf696d5,_0x5bb328);continue;case'8':_0x315468[_0x15bbf2(0x2b2)]=_0x3ce17e;continue;}break;}}}const _0x4da446='https://'+AG_API_URL+'/packages/cli/create-grid-checks',_0x4bc15d={'searchParams':_0x2f3f26,'throwHttpErrors':![],..._0x5aaba1},_0x1154f7=_0x4bc15d,_0x40c55d=await _0x194b7f[_0x15bbf2(0x28b)](got,_0x4da446,_0x1154f7);(_0x194b7f['jEVYD'](_0x40c55d,null)||_0x194b7f[_0x15bbf2(0x1c5)](_0x40c55d,undefined))&&(_0x194b7f[_0x15bbf2(0x297)](_0x194b7f[_0x15bbf2(0x299)],_0x194b7f[_0x15bbf2(0x1ed)])?(_0xbb7bf=_0x194b7f[_0x15bbf2(0x276)],await _0x194b7f[_0x15bbf2(0x295)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x1f0)],_0x194b7f['ifmZe']),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):_0x3f338d[_0x15bbf2(0x32f)]=!![]);_0x194b7f['koaGw'](_0x40c55d['statusCode'],0x191)&&(_0x194b7f[_0x15bbf2(0x217)](_0x194b7f[_0x15bbf2(0x1d9)],_0x194b7f[_0x15bbf2(0x1d9)])?_0x5a46ee=_0x194b7f['eyofz']:(_0xbb7bf=_0x194b7f[_0x15bbf2(0x1b1)],await _0x194b7f[_0x15bbf2(0x295)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x224)],_0x194b7f[_0x15bbf2(0x263)]),logger['error'](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)));_0x194b7f[_0x15bbf2(0x20f)](_0x40c55d[_0x15bbf2(0x278)],0xc8)&&(_0x194b7f[_0x15bbf2(0x2d4)](_0x194b7f[_0x15bbf2(0x319)],_0x194b7f[_0x15bbf2(0x1ef)])?_0x345344[_0x15bbf2(0x20e)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x17d976+'\x20\x0a'+_0x2f024d['stringify'](_0x497cf0[_0x15bbf2(0x1ae)])):(_0xbb7bf='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x15bbf2(0x25f)](_0x40c55d[_0x15bbf2(0x2aa)]),await _0x194b7f['cvSEM'](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x2e1)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)));const _0x36abfa=JSON[_0x15bbf2(0x2c1)](_0x40c55d['body']),_0x35d8cb={};_0x35d8cb[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x1a4)],_0x35d8cb[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x1a7)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x35d8cb);const _0x29466a={};_0x29466a[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x29466a[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x2ee)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x29466a);_0x36abfa[_0x15bbf2(0x30d)]&&(_0x194b7f['YqCXW'](_0x194b7f[_0x15bbf2(0x2b5)],_0x194b7f[_0x15bbf2(0x2b5)])?(_0xbb7bf=_0x15bbf2(0x334)+_0x2824b6+_0x15bbf2(0x1c3),await _0x194b7f['cvSEM'](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x1bd)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):_0x390268=null);const _0x49bc9b=_0x36abfa[_0x15bbf2(0x2d3)];let _0x2846d9=_0x49bc9b[_0x36abfa['defaultGridProfile']];_0xbdb8d7[_0x15bbf2(0x2bb)]&&(_0x194b7f['kuBBE'](_0x194b7f[_0x15bbf2(0x296)],_0x194b7f[_0x15bbf2(0x315)])?_0x2846d9=_0x49bc9b[_0xbdb8d7[_0x15bbf2(0x2bb)]]:(_0x547d18=_0x5755bb['route53'],_0x15d986=_0x194b7f[_0x15bbf2(0x1da)]));global_registry['enableHubHa']=![];if(_0xbdb8d7[_0x15bbf2(0x1de)]){if(_0x194b7f[_0x15bbf2(0x20f)](_0x194b7f[_0x15bbf2(0x2a5)],_0x194b7f[_0x15bbf2(0x2a8)])){const _0x194022=_0x194b7f[_0x15bbf2(0x1fa)][_0x15bbf2(0x27f)]('|');let _0x22de64=0x0;while(!![]){switch(_0x194022[_0x22de64++]){case'0':logger['info'](_0x194b7f['HKoTA']);continue;case'1':global_registry[_0x15bbf2(0x2d6)]=_0x194b7f[_0x15bbf2(0x1bf)];continue;case'2':global_registry[_0x15bbf2(0x326)]=!![];continue;case'3':global_registry['hubHaNameSpace']=_0x194b7f[_0x15bbf2(0x303)];continue;case'4':global_registry[_0x15bbf2(0x22e)]=_0x194b7f[_0x15bbf2(0x2f9)];continue;}break;}}else _0x5956af=null;}if(_0x194b7f['jEVYD'](_0x27118f,![])&&_0x194b7f[_0x15bbf2(0x2b8)](_0x5aa0e7,![])){if(_0x194b7f[_0x15bbf2(0x233)](_0x194b7f[_0x15bbf2(0x349)],_0x194b7f[_0x15bbf2(0x349)])){_0x194b7f[_0x15bbf2(0x339)](_0x2846d9,undefined)&&(_0x194b7f['DrCPa'](_0x194b7f[_0x15bbf2(0x25e)],_0x194b7f[_0x15bbf2(0x25e)])?_0x53d17d=_0x194b7f[_0x15bbf2(0x31d)]:(_0xbb7bf=_0x194b7f[_0x15bbf2(0x30e)],await _0x194b7f[_0x15bbf2(0x2d2)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x2ab)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)));global_registry[_0x15bbf2(0x235)]=_0x2846d9['id'],_0xbb7bf=_0x15bbf2(0x2c7)+_0x2824b6+_0x15bbf2(0x240)+_0x2846d9[_0x15bbf2(0x22c)]+_0x15bbf2(0x208),logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0x549bdc={};_0x549bdc[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x549bdc[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x549bdc),_0x5e5e06=_0x2846d9['cloudProvider'],_0x4810ac=_0x2846d9['clusterName'],_0x5c8c30=_0x2846d9[_0x15bbf2(0x1c1)],_0x2d9ce8=_0x2846d9[_0x15bbf2(0x260)],_0x4d4a1c=_0x2846d9[_0x15bbf2(0x23a)],_0x8fbea0=_0x2846d9[_0x15bbf2(0x1f1)],_0x1be57d=_0x2846d9[_0x15bbf2(0x1f7)],_0x56073f=_0x2846d9['subnets'],_0x469f60=_0x2846d9['s3bucket'],_0x206b5d=_0x2846d9['minNodes'],_0x29c944=_0x2846d9[_0x15bbf2(0x264)],_0x208b4b=_0x36abfa[_0x15bbf2(0x236)],_0x54dc73=_0x36abfa['browserVersion'],_0x8fbea0&&_0x194b7f[_0x15bbf2(0x233)](_0x8fbea0[_0x15bbf2(0x1b4)],0x0)&&(_0x194b7f[_0x15bbf2(0x2f7)](_0x194b7f[_0x15bbf2(0x212)],_0x194b7f[_0x15bbf2(0x212)])?_0x8fbea0=null:(_0x35c1e8['region']=_0x4a327c,_0x5ca842[_0x15bbf2(0x2de)]=_0x1869e4,_0xcf2d40[_0x15bbf2(0x2c3)]=!![],_0x261961['clusterAutoUpgrade']=_0x19ab4c[_0x15bbf2(0x26d)])),_0x56073f&&_0x194b7f['HCjjv'](_0x56073f[_0x15bbf2(0x1b4)],0x0)&&(_0x194b7f[_0x15bbf2(0x2f7)](_0x194b7f[_0x15bbf2(0x21a)],_0x194b7f['gEMrJ'])?_0x56073f=null:_0x194b7f[_0x15bbf2(0x1c6)](_0x539721,_0x5069db['uploaderVersion'])),_0x194b7f['CRscd'](_0x2846d9[_0x15bbf2(0x332)],undefined)&&_0x2846d9[_0x15bbf2(0x332)]&&(_0x194b7f[_0x15bbf2(0x279)](_0x194b7f[_0x15bbf2(0x344)],_0x194b7f[_0x15bbf2(0x2df)])?_0x33600f=_0x194b7f['JDvfz']:global_registry[_0x15bbf2(0x32f)]=!![]),_0x194b7f[_0x15bbf2(0x291)](updateGlobalRegistryWithConfig,_0x5e5e06,_0x4810ac,_0x5c8c30,_0x2d9ce8,_0x4d4a1c,_0x469f60,_0x2846d9,_0x208b4b,_0x54dc73,_0x206b5d,_0x29c944,_0xbdb8d7[_0x15bbf2(0x26d)]),global_registry[_0x15bbf2(0x326)]&&(_0x194b7f[_0x15bbf2(0x339)](_0x194b7f[_0x15bbf2(0x275)],_0x194b7f['oekQL'])?_0x194b7f[_0x15bbf2(0x2a4)](updateGlobalRegistryForHubHa,_0x36abfa[_0x15bbf2(0x341)]):_0x4b1945[_0x15bbf2(0x1b2)](_0x15bbf2(0x1e7)+_0x1b802d[_0x15bbf2(0x25f)](_0x41ae93)+'\x20'));}else _0x508083['sendResourceDataToHST']();}else{if(_0x194b7f[_0x15bbf2(0x279)](_0x5aa0e7,!![])){if(_0x194b7f[_0x15bbf2(0x1d6)](_0x194b7f[_0x15bbf2(0x1f3)],_0x194b7f[_0x15bbf2(0x1f3)]))throw new _0x4df503('Cluster\x20'+_0x56923f+_0x15bbf2(0x298));else{_0xbb7bf=_0x15bbf2(0x2a2)+_0x2824b6,logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0x58a7fd={};_0x58a7fd['type']=WS_EVENTS['LOG'],_0x58a7fd[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils['sendEventToBackend'](_0x431f2c,_0x58a7fd),_0x2d9ce8=_0x2846d9['concurrency'],_0x4d4a1c=_0x2846d9[_0x15bbf2(0x23a)],_0x8fbea0=null,_0x1be57d=null,_0x56073f=null,_0x469f60=_0x2846d9[_0x15bbf2(0x203)],_0x206b5d=_0x2846d9[_0x15bbf2(0x1f5)],_0x29c944=_0x2846d9[_0x15bbf2(0x264)],_0x208b4b=_0x36abfa[_0x15bbf2(0x236)],_0x54dc73=_0x36abfa[_0x15bbf2(0x346)];if(_0x194b7f['CRscd'](_0x2846d9[_0x15bbf2(0x332)],undefined)&&_0x2846d9[_0x15bbf2(0x332)]){if(_0x194b7f[_0x15bbf2(0x269)](_0x194b7f['mduNp'],_0x194b7f[_0x15bbf2(0x34d)]))global_registry['isPrivateGrid']=!![];else{const _0x2bb6a0={};_0x2bb6a0[_0x15bbf2(0x1e9)]=_0x2d2624[_0x15bbf2(0x242)],_0x2bb6a0[_0x15bbf2(0x1dc)]=_0x15bbf2(0x202)+_0x30b793+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x2b276e[_0x15bbf2(0x320)](_0x5d7c03,_0x2bb6a0,_0x194b7f[_0x15bbf2(0x255)]),_0x1b986f[_0x15bbf2(0x1b2)](_0x15bbf2(0x202)+_0x11e54e+_0x15bbf2(0x28f)),_0x4ed970=!![];if(_0x194b7f[_0x15bbf2(0x1c5)](_0x18cbb4,!![]))throw new _0x31dec2(_0x15bbf2(0x202)+_0x270f22+_0x15bbf2(0x298));}}_0x194b7f[_0x15bbf2(0x1c4)](updateGlobalRegistryWithConfig,_0x5e5e06,_0x4810ac,_0x5c8c30,_0x2d9ce8,_0x4d4a1c,_0x469f60,_0x2846d9,_0x208b4b,_0x54dc73,_0x206b5d,_0x29c944,_0xbdb8d7[_0x15bbf2(0x26d)]);if(global_registry[_0x15bbf2(0x326)]){if(_0x194b7f['xnAXW'](_0x194b7f['WSfqg'],_0x194b7f[_0x15bbf2(0x2fc)]))_0x194b7f['LDKWa'](updateGlobalRegistryForHubHa,_0x36abfa[_0x15bbf2(0x1cb)]);else{const _0x5f2cee={};_0x5f2cee[_0x15bbf2(0x1e9)]=_0x10380f['LOG'],_0x5f2cee['message']=_0x4095a5,_0x301c6e['sendEventToBackend'](_0x18b3d5,_0x5f2cee,_0x194b7f[_0x15bbf2(0x263)],!![]);}}}}else{if(_0x194b7f[_0x15bbf2(0x1d6)](_0x194b7f[_0x15bbf2(0x2b6)],_0x194b7f['bsyIR'])){const _0x262590=_0x194b7f[_0x15bbf2(0x2c8)][_0x15bbf2(0x27f)]('|');let _0x1dbf5f=0x0;while(!![]){switch(_0x262590[_0x1dbf5f++]){case'0':global_registry[_0x15bbf2(0x29b)]=_0x4810ac;continue;case'1':global_registry[_0x15bbf2(0x236)]=_0x36abfa[_0x15bbf2(0x236)];continue;case'2':global_registry[_0x15bbf2(0x346)]=_0x36abfa[_0x15bbf2(0x346)];continue;case'3':global_registry[_0x15bbf2(0x2b2)]=_0x5c8c30;continue;case'4':logger['info'](_0xbb7bf);continue;case'5':const _0x19e286={};_0x19e286['type']=WS_EVENTS[_0x15bbf2(0x242)],_0x19e286[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils['sendEventToBackend'](_0x431f2c,_0x19e286);continue;case'6':const _0x4f6c9d={};_0x4f6c9d['type']=WS_EVENTS[_0x15bbf2(0x1a4)],_0x4f6c9d[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x1a7)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x4f6c9d);continue;case'7':_0xbb7bf=_0x15bbf2(0x246)+_0x2824b6+_0x15bbf2(0x335)+_0x4810ac+'\x27';continue;case'8':global_registry[_0x15bbf2(0x2de)]=_0x5e5e06;continue;}break;}}else _0x592d81[_0x15bbf2(0x1b2)](_0x194b7f['fAnOL']);}}const _0x12817a=await _0x194b7f[_0x15bbf2(0x1b0)](getCloudProviderObject,_0x5e5e06,_0x4810ac,_0x2824b6,_0x431f2c,webSocketUtils,_0xbdb8d7);_0x194b7f[_0x15bbf2(0x297)](_0x5e5e06,AZURE)&&(_0x194b7f[_0x15bbf2(0x1d0)](_0x194b7f[_0x15bbf2(0x283)],_0x194b7f[_0x15bbf2(0x283)])?_0x12817a[_0x15bbf2(0x219)]():_0x1f0b30[_0x15bbf2(0x1b2)](_0x15bbf2(0x2cf)+_0xb588f8+'\x20'));let _0x29b799;if(_0x194b7f[_0x15bbf2(0x1cc)](_0x27118f,![])){_0xbb7bf=_0x15bbf2(0x2b9)+_0x5c8c30+').';const _0x40ec49={};_0x40ec49[_0x15bbf2(0x1e9)]=WS_EVENTS['LOG'],_0x40ec49['message']=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x40ec49),logger['info'](_0xbb7bf);const _0x51bd44=await _0x12817a[_0x15bbf2(0x316)]();if(_0x51bd44){if(_0x194b7f['IcvvP'](_0x194b7f[_0x15bbf2(0x1c7)],_0x194b7f['FPjje'])){const _0xcc61a9={};_0xcc61a9[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0xcc61a9[_0x15bbf2(0x1dc)]='Cluster\x20'+_0x4810ac+_0x15bbf2(0x28f),webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0xcc61a9,_0x194b7f[_0x15bbf2(0x255)]),logger[_0x15bbf2(0x1b2)](_0x15bbf2(0x202)+_0x4810ac+_0x15bbf2(0x28f)),_0x27118f=!![];if(_0x194b7f['yQEqV'](_0x5aa0e7,!![])){if(_0x194b7f[_0x15bbf2(0x1c5)](_0x194b7f['VMssN'],_0x194b7f[_0x15bbf2(0x1d1)]))throw new Error('Cluster\x20'+_0x4810ac+_0x15bbf2(0x298));else _0x44092e=_0x18f351[_0x26af0e[_0x15bbf2(0x2bb)]];}}else _0x194b7f[_0x15bbf2(0x2a4)](_0x267301,_0x3b1739[_0x15bbf2(0x1cb)]);}else{const _0x3f56da={};_0x3f56da['type']=WS_EVENTS[_0x15bbf2(0x242)],_0x3f56da[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x31c)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x3f56da),logger['info'](_0x194b7f[_0x15bbf2(0x31c)]);const _0x15cbac=_0x194b7f[_0x15bbf2(0x2c0)](_0x8fbea0,null)&&_0x194b7f[_0x15bbf2(0x317)](_0x8fbea0,undefined),_0x2b9c3a=_0x194b7f[_0x15bbf2(0x2c0)](_0x56073f,null)&&_0x194b7f['DrCPa'](_0x56073f,undefined)&&_0x194b7f['HugzQ'](_0x56073f[_0x15bbf2(0x1b4)],0x0);if(_0x15cbac){_0x194b7f[_0x15bbf2(0x2c9)](_0x2b9c3a,![])&&(_0xbb7bf=_0x194b7f['tVckm'],await _0x194b7f[_0x15bbf2(0x1e3)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x2a6)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1));const _0x2b7fb8=await _0x12817a[_0x15bbf2(0x2d9)](_0x8fbea0);_0x194b7f[_0x15bbf2(0x1cc)](_0x2b7fb8,![])?(_0xbb7bf=_0x194b7f['pmsEk'],await _0x194b7f[_0x15bbf2(0x2d2)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f['XOsVL'],_0x194b7f[_0x15bbf2(0x256)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):logger[_0x15bbf2(0x1b2)](_0x15bbf2(0x2cf)+_0x8fbea0+'\x20');const _0xc28d60=await _0x12817a['isSubnetsValid'](_0x56073f,_0x8fbea0);_0x194b7f[_0x15bbf2(0x25b)](_0xc28d60[0x0],![])?(_0xbb7bf=_0x15bbf2(0x2f6)+JSON[_0x15bbf2(0x25f)](_0xc28d60[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x8fbea0+_0x15bbf2(0x2ae),await _0x194b7f[_0x15bbf2(0x288)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x2be)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):logger[_0x15bbf2(0x1b2)](_0x15bbf2(0x1e7)+JSON[_0x15bbf2(0x25f)](_0x56073f)+'\x20'),[_0x8fbea0,_0x56073f]=await _0x12817a['setupNewCluster'](_0x8fbea0,_0x56073f);}else{const _0x10d88b=_0x194b7f[_0x15bbf2(0x33f)][_0x15bbf2(0x27f)]('|');let _0x2f2174=0x0;while(!![]){switch(_0x10d88b[_0x2f2174++]){case'0':const _0x56c249={};_0x56c249[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x56c249[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x23e)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x56c249);continue;case'1':logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x23e)]);continue;case'2':[_0x8fbea0,_0x56073f]=await _0x12817a[_0x15bbf2(0x27a)](_0x8fbea0,_0x56073f);continue;case'3':logger['info'](_0x194b7f[_0x15bbf2(0x31e)]);continue;case'4':const _0x18bcbe={};_0x18bcbe[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x18bcbe['message']=_0x194b7f['ylwVu'],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x18bcbe);continue;}break;}}}}_0x27118f&&_0x194b7f[_0x15bbf2(0x25b)](_0x5e5e06,AZURE)&&(await _0x12817a['updateClusterAlreadyPresent'](),await _0x12817a[_0x15bbf2(0x24b)]());const [_0x4bde39,_0x36e9be,_0xb962ec,_0x53feb5,_0x3118cd,_0x2a539e,_0x5a795e]=await _0x194b7f[_0x15bbf2(0x34a)](createK8sClient,_0x12817a,_0xbdb8d7['skipTlsCertVerify']);_0x194b7f['wfRAx'](_0x27118f,![])&&_0x194b7f[_0x15bbf2(0x229)](_0x5e5e06,AWS)&&(global_registry[_0x15bbf2(0x28e)]=!![],_0x29b799=await _0x12817a[_0x15bbf2(0x30a)](_0x4bde39,_0xbdb8d7));if(_0x194b7f['zXhYt'](_0x27118f,![])&&global_registry[_0x15bbf2(0x326)])try{await _0x12817a[_0x15bbf2(0x2e7)](_0x2a539e,_0x5a795e,_0xbdb8d7,_0x8fbea0,_0x56073f);const _0x156575={};_0x156575[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x156575[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x281)],webSocketUtils['sendEventToBackend'](_0x431f2c,_0x156575);!await _0x194b7f[_0x15bbf2(0x29d)](namespaceExists,_0x4bde39,global_registry['hubHaNameSpace'])&&await _0x194b7f[_0x15bbf2(0x29d)](createNamespace,_0x4bde39,global_registry['hubHaNameSpace']);logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x20d)]);let _0x25b8c6=await fs[_0x15bbf2(0x24a)](path[_0x15bbf2(0x2ca)](__dirname,_0x194b7f[_0x15bbf2(0x254)],_0x194b7f[_0x15bbf2(0x258)],_0x194b7f[_0x15bbf2(0x30c)],_0x194b7f['kFgrz']),_0x194b7f[_0x15bbf2(0x267)]);_0x25b8c6=_0x25b8c6[_0x15bbf2(0x2ad)](/<RedisClientPassword>/g,_0x194b7f[_0x15bbf2(0x238)](encodeBase64,global_registry[_0x15bbf2(0x2d6)])),_0x25b8c6=_0x25b8c6[_0x15bbf2(0x2ad)](/<KafkaClientPassword>/g,_0x194b7f[_0x15bbf2(0x318)](encodeBase64,global_registry['kafkaPassword'])),_0x25b8c6=_0x25b8c6['replace'](/<BstackUsername>/g,_0x194b7f[_0x15bbf2(0x1c6)](encodeBase64,global_registry['bstackUsername'])),_0x25b8c6=_0x25b8c6[_0x15bbf2(0x2ad)](/<BstackAccessKey>/g,_0x194b7f['ikFAq'](encodeBase64,global_registry[_0x15bbf2(0x287)]));const _0x52e86c=yaml[_0x15bbf2(0x328)](_0x25b8c6);await _0x194b7f[_0x15bbf2(0x1c8)](kubeApply,_0x52e86c,_0x5a795e),logger['info'](_0x194b7f[_0x15bbf2(0x2c6)]);let _0x21cced=_0x194b7f[_0x15bbf2(0x33b)];if(_0x194b7f[_0x15bbf2(0x1b9)](_0x5e5e06,AZURE))_0x21cced=_0x194b7f[_0x15bbf2(0x2e3)];else _0x194b7f['tgzJM'](_0x5e5e06,GCP)&&(_0x21cced=_0x194b7f[_0x15bbf2(0x31d)]);logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x22f)]);let _0x542a80=await fs[_0x15bbf2(0x24a)](path[_0x15bbf2(0x2ca)](__dirname,_0x194b7f[_0x15bbf2(0x254)],_0x194b7f[_0x15bbf2(0x258)],_0x194b7f[_0x15bbf2(0x30c)],_0x194b7f[_0x15bbf2(0x33a)]),_0x194b7f[_0x15bbf2(0x267)]);_0x542a80=_0x542a80[_0x15bbf2(0x2ad)](/<HubHaNameSpace>/g,global_registry[_0x15bbf2(0x29c)]),_0x542a80=_0x542a80[_0x15bbf2(0x2ad)](/<StorageClassName>/g,_0x21cced);const _0x4e64a7=yaml[_0x15bbf2(0x328)](_0x542a80);await _0x194b7f[_0x15bbf2(0x29d)](kubeApply,_0x4e64a7,_0x5a795e),logger['info'](_0x194b7f['BmBBY']),logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x1fd)]);let _0x5e8ca2=await fs[_0x15bbf2(0x24a)](path[_0x15bbf2(0x2ca)](__dirname,_0x194b7f[_0x15bbf2(0x254)],_0x194b7f['EPGrp'],_0x194b7f['XugDR'],_0x194b7f[_0x15bbf2(0x321)]),_0x194b7f[_0x15bbf2(0x267)]);_0x5e8ca2=_0x5e8ca2[_0x15bbf2(0x2ad)](/<HubHaNameSpace>/g,global_registry[_0x15bbf2(0x29c)]),_0x5e8ca2=_0x5e8ca2[_0x15bbf2(0x2ad)](/<StorageClassName>/g,_0x21cced);const _0x1581f7=yaml[_0x15bbf2(0x328)](_0x5e8ca2);await _0x194b7f[_0x15bbf2(0x34e)](kubeApply,_0x1581f7,_0x5a795e),logger['info'](_0x194b7f[_0x15bbf2(0x350)]),logger['info'](_0x194b7f[_0x15bbf2(0x286)]);let _0x1334ad=await fs[_0x15bbf2(0x24a)](path[_0x15bbf2(0x2ca)](__dirname,_0x194b7f['mOsZQ'],_0x194b7f['EPGrp'],_0x194b7f['XugDR'],_0x194b7f['Gbyza']),_0x194b7f['ijrTB']);_0x1334ad=_0x1334ad[_0x15bbf2(0x2ad)](/<UploaderImageVersion>/g,global_registry[_0x15bbf2(0x1ab)]),_0x1334ad=_0x1334ad['replace'](/<HubHaNameSpace>/g,global_registry[_0x15bbf2(0x29c)]);const _0x2c38e4=yaml[_0x15bbf2(0x328)](_0x1334ad);_0x194b7f[_0x15bbf2(0x2d4)](global_registry['cloudProvider'],AZURE)&&(_0x2c38e4[0x0][_0x15bbf2(0x21f)][_0x15bbf2(0x34f)][_0x15bbf2(0x292)]['labels']={'azure.workload.identity/use':_0x194b7f[_0x15bbf2(0x259)],..._0x2c38e4[0x0]['spec'][_0x15bbf2(0x34f)][_0x15bbf2(0x292)][_0x15bbf2(0x1eb)]},_0x2c38e4[0x0][_0x15bbf2(0x21f)][_0x15bbf2(0x34f)][_0x15bbf2(0x21f)][_0x15bbf2(0x215)]=_0x194b7f['BDBeB']);await _0x194b7f[_0x15bbf2(0x34a)](kubeApply,_0x2c38e4,_0x5a795e),logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x262)]);const _0x2fd00b={};_0x2fd00b['type']=WS_EVENTS['LOG'],_0x2fd00b[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x1f2)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x2fd00b),logger['info'](_0x194b7f[_0x15bbf2(0x31a)]);}catch(_0x5d07f4){const _0x4927e2=_0x194b7f[_0x15bbf2(0x239)][_0x15bbf2(0x27f)]('|');let _0x3e2fdc=0x0;while(!![]){switch(_0x4927e2[_0x3e2fdc++]){case'0':await _0x12817a[_0x15bbf2(0x28c)](_0x4bde39,global_registry[_0x15bbf2(0x2b2)]);continue;case'1':logger['error'](_0xbb7bf);continue;case'2':_0xbb7bf=_0x15bbf2(0x34b)+_0x5d07f4[_0x15bbf2(0x1dc)];continue;case'3':process[_0x15bbf2(0x327)](0x1);continue;case'4':await _0x194b7f[_0x15bbf2(0x1e3)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x290)],_0x194b7f['ifmZe']);continue;}break;}}try{_0x10c84e=_0x194b7f['tRzYQ'](kebabCase,_0x2824b6),logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x23f)]);const _0x48405e={};_0x48405e[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x48405e[_0x15bbf2(0x1dc)]=_0x194b7f['glLtM'],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x48405e);if(_0x194b7f[_0x15bbf2(0x23b)](_0x10c84e,_0x194b7f[_0x15bbf2(0x2af)])){const _0x45902c={};_0x45902c[_0x15bbf2(0x1bc)]=_0x194b7f['paEdy'],_0x45902c[_0x15bbf2(0x300)]=_0x194b7f[_0x15bbf2(0x2a0)];const _0x5f2faa={};_0x5f2faa[_0x15bbf2(0x22c)]=_0x10c84e,_0x5f2faa[_0x15bbf2(0x325)]=_0x45902c;const _0x1ed87d={};_0x1ed87d[_0x15bbf2(0x292)]=_0x5f2faa;const _0x4453b9=_0x1ed87d,_0x536457={};_0x536457['body']=_0x4453b9,await _0x4bde39[_0x15bbf2(0x2f8)](_0x536457),logger['info'](_0x194b7f[_0x15bbf2(0x32e)]);}const _0x65dacf={};_0x65dacf[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x65dacf['message']=_0x194b7f[_0x15bbf2(0x1e8)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x65dacf);const _0x347801={};_0x347801['type']=WS_EVENTS['LOG'],_0x347801[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x322)],webSocketUtils['sendEventToBackend'](_0x431f2c,_0x347801),logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x2fa)]);let _0x4dbd3c={};_0x194b7f[_0x15bbf2(0x2c9)](_0x5e5e06,AZURE)&&(_0x4dbd3c={'clientId':await _0x12817a['getResourceClientId'](_0x15bbf2(0x1ac)+_0x4810ac)});await _0x194b7f[_0x15bbf2(0x2dc)](addGridComponents,_0x4bde39,_0x36e9be,_0xb962ec,_0x53feb5,_0x10c84e,_0x4810ac,_0x29b799,_0x3118cd,_0x5a795e,_0x4dbd3c),_0xbb7bf=_0x194b7f[_0x15bbf2(0x248)],logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0xf49884={};_0xf49884[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0xf49884[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0xf49884),_0xbb7bf=_0x194b7f['QHAID'],logger['info'](_0xbb7bf);const _0xee627e={};_0xee627e['type']=WS_EVENTS[_0x15bbf2(0x242)],_0xee627e[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils['sendEventToBackend'](_0x431f2c,_0xee627e),await _0x194b7f[_0x15bbf2(0x1af)](waitForDeployment,_0x36e9be,_0x10c84e,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x4f359e=await _0x194b7f[_0x15bbf2(0x34e)](getNamespaceUID,_0x4bde39,_0x10c84e),_0xf0f1e6=global_registry[_0x15bbf2(0x32f)]?_0x194b7f['hCzjl']:_0x194b7f[_0x15bbf2(0x247)],_0x42eee8={};_0x42eee8[_0x15bbf2(0x22c)]=_0xf0f1e6,_0x42eee8['namespace']=_0x194b7f[_0x15bbf2(0x1cd)];const _0x51273a=await _0x4bde39[_0x15bbf2(0x2ce)](_0x42eee8);let _0x585f82=_0x12817a[_0x15bbf2(0x2bd)](_0x51273a)+'/'+_0x10c84e,_0x426593=_0x194b7f[_0x15bbf2(0x216)];try{const _0x5d2ed5=_0x15bbf2(0x250)+AG_API_URL+_0x15bbf2(0x200)+_0x4f359e,_0x468d47=await _0x194b7f['mxxOn'](got,_0x5d2ed5,_0x5aaba1);(_0x194b7f['RGoDZ'](_0x468d47,null)||_0x194b7f['zmmwU'](_0x468d47,undefined))&&(_0xbb7bf=_0x194b7f[_0x15bbf2(0x24f)],await _0x194b7f[_0x15bbf2(0x1d5)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f['XOsVL'],_0x194b7f[_0x15bbf2(0x1bb)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process['exit'](0x1));_0x194b7f[_0x15bbf2(0x2f2)](_0x468d47[_0x15bbf2(0x278)],0x191)&&(_0xbb7bf=_0x194b7f[_0x15bbf2(0x268)],await _0x194b7f[_0x15bbf2(0x2d2)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x204)],_0x194b7f['ifmZe']),logger['error'](_0xbb7bf),process[_0x15bbf2(0x327)](0x1));_0x194b7f['CtTex'](_0x468d47[_0x15bbf2(0x278)],0xc8)&&(_0xbb7bf='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x468d47),await _0x194b7f[_0x15bbf2(0x288)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x1a5)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1));const _0x522184=JSON[_0x15bbf2(0x2c1)](_0x468d47['body']);_0x522184[_0x15bbf2(0x265)]&&(_0x585f82=_0x522184[_0x15bbf2(0x265)],_0x426593=_0x194b7f['xcMrh']),global_registry[_0x15bbf2(0x32f)]&&(_0x426593=_0x194b7f[_0x15bbf2(0x216)]);}catch(_0x27feb2){}_0xbb7bf=_0x15bbf2(0x26f)+_0x585f82+'\x20',logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0x3f93db={};_0x3f93db[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x3f93db[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x3f93db),_0xbb7bf=_0x15bbf2(0x2d1)+_0x426593+'://'+_0x585f82+'/wd/hub',logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0x5e6785={};_0x5e6785['type']=WS_EVENTS[_0x15bbf2(0x242)],_0x5e6785[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x5e6785);const _0x17b7e6={};_0x17b7e6[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x20a)],_0x17b7e6[_0x15bbf2(0x1dc)]=_0x15bbf2(0x243)+_0x585f82,webSocketUtils['sendEventToBackend'](_0x431f2c,_0x17b7e6),await webSocketUtils[_0x15bbf2(0x266)](0x7d0);}catch(_0x1218da){logger[_0x15bbf2(0x20e)]('Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20'+_0x1218da+'\x20\x0a'+JSON[_0x15bbf2(0x25f)](_0x1218da[_0x15bbf2(0x1ae)]));if(_0x194b7f[_0x15bbf2(0x306)](_0x27118f,![]))try{logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x336)]),await _0x194b7f[_0x15bbf2(0x2ed)](removeGridComponents,_0x4bde39,_0x36e9be,_0xb962ec,_0x53feb5,_0x10c84e),await _0x12817a[_0x15bbf2(0x28c)](_0x4bde39,global_registry['clusterRegion']);}catch(_0x562973){logger[_0x15bbf2(0x20e)](_0x15bbf2(0x33d)+_0x562973+'\x20\x0a'+JSON['stringify'](_0x562973[_0x15bbf2(0x1ae)]));}throw _0x1218da;}}catch(_0x529705){const _0x5aaa0e=_0x15bbf2(0x21e)+_0x529705+'\x20\x0a'+JSON['stringify'](_0x529705[_0x15bbf2(0x1ae)]);if(_0x431f2c){const _0x412489={};_0x412489[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x412489[_0x15bbf2(0x1dc)]=_0x5aaa0e,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x412489,_0x194b7f[_0x15bbf2(0x263)],!![]);}await webSocketUtils['delay'](0x7d0);const _0xebabde={};_0xebabde['error']=_0x5aaa0e,await _0x194b7f[_0x15bbf2(0x1b0)](sendInstrumentationEvent,_0xbdb8d7,_0x194b7f['XOsVL'],messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x1aa)],_0xebabde,_0xbdb8d7),logger[_0x15bbf2(0x20e)](_0x5aaa0e);}process[_0x15bbf2(0x327)](0x0);};
@@ -1 +1 @@
1
- const a10_0x37bf4a=a10_0x2e33;function a10_0x2e33(_0xbb7d1a,_0x312cca){const _0x3ea793=a10_0x3ea7();return a10_0x2e33=function(_0x2e33ae,_0x16af95){_0x2e33ae=_0x2e33ae-0xc5;let _0x5e2412=_0x3ea793[_0x2e33ae];return _0x5e2412;},a10_0x2e33(_0xbb7d1a,_0x312cca);}(function(_0x36f72a,_0x2c1706){const _0x5ad7c1=a10_0x2e33,_0x31c4ef=_0x36f72a();while(!![]){try{const _0x118ddc=parseInt(_0x5ad7c1(0xc8))/0x1+-parseInt(_0x5ad7c1(0xdb))/0x2*(-parseInt(_0x5ad7c1(0xda))/0x3)+-parseInt(_0x5ad7c1(0xd7))/0x4+-parseInt(_0x5ad7c1(0xce))/0x5*(parseInt(_0x5ad7c1(0xcf))/0x6)+-parseInt(_0x5ad7c1(0xd9))/0x7+parseInt(_0x5ad7c1(0xc5))/0x8*(-parseInt(_0x5ad7c1(0xd2))/0x9)+-parseInt(_0x5ad7c1(0xd8))/0xa*(-parseInt(_0x5ad7c1(0xcd))/0xb);if(_0x118ddc===_0x2c1706)break;else _0x31c4ef['push'](_0x31c4ef['shift']());}catch(_0x2a2a73){_0x31c4ef['push'](_0x31c4ef['shift']());}}}(a10_0x3ea7,0xe10a4));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x37bf4a(0xd0));exports['command']=a10_0x37bf4a(0xcc),exports['desc']='List\x20Grid\x20resources.',exports[a10_0x37bf4a(0xc7)]=function(_0x2b867a){const _0x3e24b7=a10_0x37bf4a,_0x33da9b={};_0x33da9b['nsiXM']=_0x3e24b7(0xd1),_0x33da9b[_0x3e24b7(0xcb)]=_0x3e24b7(0xd4);const _0x2c1348=_0x33da9b;return _0x2b867a[_0x3e24b7(0xd6)](HELP_HEADER_MESSAGE[_0x3e24b7(0xcc)])[_0x3e24b7(0xd3)](HELP_FOOTER_MESSAGE)[_0x3e24b7(0xd5)](_0x2c1348[_0x3e24b7(0xc6)])[_0x3e24b7(0xca)]()[_0x3e24b7(0xdc)]()['strict']()[_0x3e24b7(0xd4)](_0x2c1348[_0x3e24b7(0xcb)]);},exports[a10_0x37bf4a(0xc9)]=function(_0x1b2ec6){};function a10_0x3ea7(){const _0x37c8fb=['commandDir','usage','5448928plNzqx','34920RwmmrU','2178232vIkJwX','24105bLSShi','244Ggyhje','recommendCommands','4646952WSXLoX','nsiXM','builder','524293kabJEw','handler','demandCommand','zRVLp','delete','7667fAJsnZ','55ZdcHOY','99042Gjgnpl','../config/constants','delete_commands','18bdybsr','epilogue','help'];a10_0x3ea7=function(){return _0x37c8fb;};return a10_0x3ea7();}
1
+ const a10_0xcec3c9=a10_0xaee6;(function(_0x56b015,_0x45e89d){const _0x297b58=a10_0xaee6,_0x500adf=_0x56b015();while(!![]){try{const _0x53f617=-parseInt(_0x297b58(0xca))/0x1*(parseInt(_0x297b58(0xc8))/0x2)+-parseInt(_0x297b58(0xcb))/0x3*(-parseInt(_0x297b58(0xd0))/0x4)+parseInt(_0x297b58(0xce))/0x5*(-parseInt(_0x297b58(0xcc))/0x6)+parseInt(_0x297b58(0xd3))/0x7*(-parseInt(_0x297b58(0xd4))/0x8)+-parseInt(_0x297b58(0xcd))/0x9+-parseInt(_0x297b58(0xdb))/0xa+parseInt(_0x297b58(0xd7))/0xb;if(_0x53f617===_0x45e89d)break;else _0x500adf['push'](_0x500adf['shift']());}catch(_0x2a860f){_0x500adf['push'](_0x500adf['shift']());}}}(a10_0x57d8,0x85bd3));function a10_0xaee6(_0x26d543,_0x1d532a){const _0x57d8e9=a10_0x57d8();return a10_0xaee6=function(_0xaee6ec,_0x3d7a95){_0xaee6ec=_0xaee6ec-0xc8;let _0x509fd0=_0x57d8e9[_0xaee6ec];return _0x509fd0;},a10_0xaee6(_0x26d543,_0x1d532a);}function a10_0x57d8(){const _0x17bc52=['574iqedQq','vjLmz','2098XuUZLw','3eWvVRk','1501806MCPYPw','9334665gtLnhp','10XpBJkm','strict','2634756nzJUYn','help','desc','14YqEamB','3267304pyoQJA','builder','epilogue','41911584TEsvTm','BAFEY','recommendCommands','../config/constants','9642990pQDcmS','delete','List\x20Grid\x20resources.'];a10_0x57d8=function(){return _0x17bc52;};return a10_0x57d8();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0xcec3c9(0xda));exports['command']='delete',exports[a10_0xcec3c9(0xd2)]=a10_0xcec3c9(0xdd),exports[a10_0xcec3c9(0xd5)]=function(_0x223385){const _0x283eae=a10_0xcec3c9,_0x1102c4={};_0x1102c4['BAFEY']='delete_commands',_0x1102c4['vjLmz']=_0x283eae(0xd1);const _0x43c7a5=_0x1102c4;return _0x223385['usage'](HELP_HEADER_MESSAGE[_0x283eae(0xdc)])[_0x283eae(0xd6)](HELP_FOOTER_MESSAGE)['commandDir'](_0x43c7a5[_0x283eae(0xd8)])['demandCommand']()[_0x283eae(0xd9)]()[_0x283eae(0xcf)]()[_0x283eae(0xd1)](_0x43c7a5[_0x283eae(0xc9)]);},exports['handler']=function(_0x4e548f){};
@@ -1 +1 @@
1
- const a11_0x4d33e6=a11_0x3baf;(function(_0x48a05d,_0x1ce2b9){const _0x35627b=a11_0x3baf,_0x48f7df=_0x48a05d();while(!![]){try{const _0x1c08be=parseInt(_0x35627b(0x193))/0x1+-parseInt(_0x35627b(0x17c))/0x2+parseInt(_0x35627b(0x1a9))/0x3*(parseInt(_0x35627b(0x12f))/0x4)+-parseInt(_0x35627b(0x1c6))/0x5+-parseInt(_0x35627b(0x157))/0x6*(-parseInt(_0x35627b(0x1a7))/0x7)+parseInt(_0x35627b(0x1ba))/0x8+parseInt(_0x35627b(0x15f))/0x9*(-parseInt(_0x35627b(0x1ad))/0xa);if(_0x1c08be===_0x1ce2b9)break;else _0x48f7df['push'](_0x48f7df['shift']());}catch(_0x468d7b){_0x48f7df['push'](_0x48f7df['shift']());}}}(a11_0x49fd,0xc9b1e));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require(a11_0x4d33e6(0x1ac)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require(a11_0x4d33e6(0x16c)),{getCloudProviderObject}=require(a11_0x4d33e6(0x195)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x4d33e6(0x14f)),{sendInstrumentationEvent}=require(a11_0x4d33e6(0x178)),{inputConfirmation}=require(a11_0x4d33e6(0x184)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x4d33e6(0x166)),webSocketUtils=require(a11_0x4d33e6(0x186));function a11_0x3baf(_0xf34180,_0x48cefd){const _0x49fde3=a11_0x49fd();return a11_0x3baf=function(_0x3baf73,_0x559105){_0x3baf73=_0x3baf73-0x12a;let _0x3665e9=_0x49fde3[_0x3baf73];return _0x3665e9;},a11_0x3baf(_0xf34180,_0x48cefd);}exports[a11_0x4d33e6(0x143)]='grid',exports[a11_0x4d33e6(0x185)]='Delete\x20an\x20Automation\x20grid.',exports[a11_0x4d33e6(0x16b)]=function(_0x4e08f2){const _0x49c581=a11_0x4d33e6,_0x8df95f={};_0x8df95f[_0x49c581(0x140)]=_0x49c581(0x12b),_0x8df95f['fNEre']=_0x49c581(0x1be),_0x8df95f[_0x49c581(0x145)]=_0x49c581(0x1cd),_0x8df95f[_0x49c581(0x1a0)]=_0x49c581(0x170),_0x8df95f[_0x49c581(0x1b8)]=_0x49c581(0x153);const _0x3b7a8b=_0x8df95f,_0x4f5be5={};_0x4f5be5[_0x49c581(0x181)]=_0x3b7a8b[_0x49c581(0x140)],_0x4f5be5[_0x49c581(0x17f)]=_0x3b7a8b[_0x49c581(0x194)];const _0x1b291d={};_0x1b291d[_0x49c581(0x181)]=_0x3b7a8b[_0x49c581(0x145)],_0x1b291d[_0x49c581(0x17f)]=_0x3b7a8b[_0x49c581(0x1a0)],_0x1b291d[_0x49c581(0x1ca)]=![];const _0x578a55={};return _0x578a55[_0x49c581(0x199)]=_0x4f5be5,_0x578a55[_0x49c581(0x1aa)]=_0x1b291d,_0x4e08f2[_0x49c581(0x1c9)](HELP_HEADER_MESSAGE['delete'])[_0x49c581(0x15b)](HELP_FOOTER_MESSAGE)[_0x49c581(0x19d)](_0x578a55)[_0x49c581(0x153)](_0x3b7a8b[_0x49c581(0x1b8)])[_0x49c581(0x156)];},exports[a11_0x4d33e6(0x1bf)]=async function(_0x52524c){const _0x20aceb=a11_0x4d33e6,_0x53a41a={'VMVbL':_0x20aceb(0x1b3),'bnOND':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','MLZEa':'Successfully\x20deleted\x20the\x20grid','FnLIH':function(_0x1b4668,_0x790a1d){return _0x1b4668===_0x790a1d;},'jgEvk':'bYgaD','kieVB':function(_0x14c9e2,_0x2bdced){return _0x14c9e2!==_0x2bdced;},'DkXvz':_0x20aceb(0x147),'EjEaV':_0x20aceb(0x12b),'rFhKZ':_0x20aceb(0x1be),'nilSl':_0x20aceb(0x1cd),'aopPM':_0x20aceb(0x170),'ptjvh':'help','xeodO':function(_0x2a54fb){return _0x2a54fb();},'HseOd':_0x20aceb(0x18d),'cHyTU':_0x20aceb(0x1b5),'tBJDN':_0x20aceb(0x1bd),'vUVXm':function(_0x17e1a7,_0x14b853,_0x34c999,_0x1d101c,_0x17ab86,_0x16964e,_0x34dfb8){return _0x17e1a7(_0x14b853,_0x34c999,_0x1d101c,_0x17ab86,_0x16964e,_0x34dfb8);},'DfCve':'delete-grid-called','ywHyQ':_0x20aceb(0x1c4),'BeZZl':function(_0xa78c03,_0x1f8a4d){return _0xa78c03!==_0x1f8a4d;},'Rfzdj':'JIsrc','ofWRz':function(_0x420fcf){return _0x420fcf();},'dcApS':function(_0x517ede,_0x19292b,_0x5d7ab2,_0x3e05b6){return _0x517ede(_0x19292b,_0x5d7ab2,_0x3e05b6);},'sYDlj':_0x20aceb(0x137),'xWyHI':_0x20aceb(0x1b1),'DVksQ':_0x20aceb(0x176),'AcWgM':function(_0x1a2e08,_0x140256){return _0x1a2e08(_0x140256);},'YgOfA':function(_0x1f7dc8,_0x4d7577){return _0x1f7dc8===_0x4d7577;},'tNWri':function(_0x2b178d,_0x2a19d0){return _0x2b178d===_0x2a19d0;},'wFROB':function(_0x266d5d,_0xbd00cf){return _0x266d5d===_0xbd00cf;},'KnQoF':function(_0x3eb49c,_0x533de3){return _0x3eb49c===_0x533de3;},'cDwvB':_0x20aceb(0x162),'kQcRF':_0x20aceb(0x190),'TlukZ':function(_0x1cbaad,_0x5900a0,_0x497005,_0xd3d21d,_0x77b566,_0x32787e,_0x42e5de){return _0x1cbaad(_0x5900a0,_0x497005,_0xd3d21d,_0x77b566,_0x32787e,_0x42e5de);},'ZopgM':'invalid-input','dBGID':function(_0x496d56,_0x287d13){return _0x496d56===_0x287d13;},'VbhkZ':function(_0x5d755f,_0x58c19d){return _0x5d755f===_0x58c19d;},'rLPZM':_0x20aceb(0x1a2),'HqHLL':_0x20aceb(0x18e),'wWUJY':_0x20aceb(0x163),'fyzgB':_0x20aceb(0x19b),'DKEPE':function(_0x5302fe,_0x592750,_0x35ff4a){return _0x5302fe(_0x592750,_0x35ff4a);},'levMs':function(_0x40d676,_0x5e6f0a,_0x18f62d,_0x5f3de3,_0x35ace9,_0x258e06){return _0x40d676(_0x5e6f0a,_0x18f62d,_0x5f3de3,_0x35ace9,_0x258e06);},'eIDQQ':_0x20aceb(0x1b6),'nwpft':'YTicn','DOuJn':function(_0x1fdc14,_0x5d9da2){return _0x1fdc14!==_0x5d9da2;},'ESNqS':_0x20aceb(0x192),'xqqdR':_0x20aceb(0x14c),'qKrtF':function(_0x36099d,_0x59e623,_0x2a1c3c){return _0x36099d(_0x59e623,_0x2a1c3c);},'XjbwC':function(_0x1f9dfe,_0x35408d){return _0x1f9dfe!==_0x35408d;},'EZziT':function(_0x2ba61b,_0x25fc65,_0x48e8fd,_0x4d5cf3,_0x564dae,_0x43025d,_0x45347a){return _0x2ba61b(_0x25fc65,_0x48e8fd,_0x4d5cf3,_0x564dae,_0x43025d,_0x45347a);},'zpwQe':_0x20aceb(0x14a),'zAFRV':function(_0xd8d33d,_0x35a53e){return _0xd8d33d===_0x35a53e;},'OSDnO':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','quqSJ':_0x20aceb(0x161),'KwPDw':_0x20aceb(0x167),'ApWFe':function(_0x390f0f,_0x4f4c2a,_0xa6f27,_0x1b9164,_0x46a736,_0x2248e9,_0x17648f){return _0x390f0f(_0x4f4c2a,_0xa6f27,_0x1b9164,_0x46a736,_0x2248e9,_0x17648f);},'QzcTn':function(_0x20834f,_0x17959e,_0x33a3ea,_0x2edeb6,_0x174d77,_0x259798,_0x1ea553){return _0x20834f(_0x17959e,_0x33a3ea,_0x2edeb6,_0x174d77,_0x259798,_0x1ea553);},'AXGwV':_0x20aceb(0x151)};try{global_registry[_0x20aceb(0x1a1)]=_0x53a41a[_0x20aceb(0x12d)](uuidv4);!fs[_0x20aceb(0x19c)](_0x53a41a[_0x20aceb(0x12d)](getCredentialsPath))&&(_0x53a41a[_0x20aceb(0x1a5)](_0x53a41a[_0x20aceb(0x1c8)],_0x53a41a['cHyTU'])?(console[_0x20aceb(0x1c7)](_0x53a41a[_0x20aceb(0x139)]),await _0x53a41a[_0x20aceb(0x18b)](sendInstrumentationEvent,_0x52524c,_0x53a41a['DfCve'],messageTypes['ERROR'],_0x53a41a[_0x20aceb(0x1c1)],null,_0x52524c),process['exit'](0x1)):_0x5c51ae=_0x20aceb(0x174)+_0x3e9e34[_0x20aceb(0x16f)]+'\x22\x20and\x20ID\x20'+_0x159b7c['id']+_0x20aceb(0x175)+_0x1a4a3c[_0x20aceb(0x1c0)]+_0x20aceb(0x1c3)+_0x1d1de9[_0x20aceb(0x1b2)]+_0x20aceb(0x1c2));_0x53a41a[_0x20aceb(0x18b)](sendInstrumentationEvent,_0x52524c,_0x53a41a[_0x20aceb(0x1a6)],messageTypes[_0x20aceb(0x169)],null,null,_0x52524c);!_0x52524c[_0x20aceb(0x165)]&&(_0x53a41a[_0x20aceb(0x15d)](_0x53a41a[_0x20aceb(0x196)],_0x53a41a[_0x20aceb(0x196)])?_0x1540a8[_0x20aceb(0x135)](_0x20aceb(0x19f)+_0x18c251[_0x20aceb(0x1c0)]+_0x20aceb(0x1af)):(console[_0x20aceb(0x1c7)](_0x53a41a[_0x20aceb(0x197)]),process['exit'](0x1)));const _0x580c37=JSON[_0x20aceb(0x18c)](fs[_0x20aceb(0x1a4)](_0x53a41a[_0x20aceb(0x15a)](getCredentialsPath))),[_0x1e403b,_0x364895]=await _0x53a41a['dcApS'](getGridDetails,_0x580c37['Browserstack'][_0x20aceb(0x152)],_0x580c37[_0x20aceb(0x137)][_0x20aceb(0x17b)],_0x52524c[_0x20aceb(0x165)]);if(_0x364895){const _0x406b82=_0x364895['info'];let _0x3636c6='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x406b82[_0x20aceb(0x16f)]+_0x20aceb(0x15c)+_0x406b82['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';_0x364895[_0x20aceb(0x19a)]&&_0x53a41a['FnLIH'](_0x364895[_0x20aceb(0x148)],_0x53a41a[_0x20aceb(0x158)])&&(_0x53a41a[_0x20aceb(0x15d)](_0x53a41a['xWyHI'],_0x53a41a[_0x20aceb(0x150)])?_0x3636c6=_0x20aceb(0x174)+_0x406b82['name']+_0x20aceb(0x15c)+_0x406b82['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x406b82[_0x20aceb(0x1c0)]+_0x20aceb(0x1c3)+_0x406b82['clusterId']+_0x20aceb(0x1c2):_0x48cf37[_0x20aceb(0x135)](_0x53a41a['VMVbL']));const _0x5a6c3d=await _0x53a41a[_0x20aceb(0x187)](inputConfirmation,_0x3636c6);(_0x53a41a['FnLIH'](_0x5a6c3d,undefined)||_0x53a41a[_0x20aceb(0x160)](_0x5a6c3d,null)||!(_0x53a41a[_0x20aceb(0x138)](_0x5a6c3d[_0x20aceb(0x1cc)](),'y')||_0x53a41a[_0x20aceb(0x149)](_0x5a6c3d[_0x20aceb(0x1cc)](),'n')))&&(_0x53a41a[_0x20aceb(0x1b7)](_0x53a41a[_0x20aceb(0x132)],_0x53a41a[_0x20aceb(0x132)])?(console[_0x20aceb(0x1c7)](_0x53a41a[_0x20aceb(0x13b)]),await _0x53a41a[_0x20aceb(0x130)](sendInstrumentationEvent,_0x52524c,_0x53a41a[_0x20aceb(0x1a6)],messageTypes[_0x20aceb(0x1ab)],_0x53a41a['ZopgM'],null,_0x52524c),process['exit'](0x1)):(_0x174399[_0x20aceb(0x135)]('Namespace:\x20'+_0x458307+_0x20aceb(0x16d)),_0x3145a4=![]));_0x53a41a[_0x20aceb(0x1a8)](_0x5a6c3d['toLowerCase'](),'n')&&(_0x53a41a[_0x20aceb(0x1b0)](_0x53a41a[_0x20aceb(0x142)],_0x53a41a['HqHLL'])?(_0x29e331[_0x20aceb(0x1c7)](_0x53a41a[_0x20aceb(0x197)]),_0x2b5101[_0x20aceb(0x1b9)](0x1)):process['exit'](0x0));const _0x2ba4ce=WS_ENDPOINT['replace'](_0x53a41a[_0x20aceb(0x1ae)],_0x580c37['Browserstack'][_0x20aceb(0x152)])[_0x20aceb(0x13c)](_0x53a41a[_0x20aceb(0x12a)],_0x580c37[_0x20aceb(0x137)][_0x20aceb(0x17b)]),_0x127ed8={};_0x127ed8[_0x20aceb(0x1bc)]=ws,_0x127ed8[_0x20aceb(0x182)]=0x36ee80;const _0x4c9d1c=new ReconnectingWebSocket(_0x2ba4ce,[],_0x127ed8);global_registry['clusterRegion']=_0x406b82['region'];const _0x3ddddb=_0x406b82[_0x20aceb(0x17d)],_0xc95c13=await _0x53a41a[_0x20aceb(0x130)](getCloudProviderObject,_0x3ddddb,_0x406b82['clusterName'],_0x406b82[_0x20aceb(0x16f)],_0x4c9d1c,webSocketUtils,_0x52524c),_0x76a347=await _0xc95c13['isClusterPresent']();if(_0x76a347){const _0x29dd25=_0x53a41a[_0x20aceb(0x187)](kebabCase,_0x406b82[_0x20aceb(0x16f)]),[_0x119350,_0x481605,_0x2c2366,_0x3a75b5,_0x275798,_0x1861c8]=await _0x53a41a[_0x20aceb(0x198)](createK8sClient,_0xc95c13,_0x52524c[_0x20aceb(0x164)]);let _0x3ee00c=!![];const _0xb8d6a1={};_0xb8d6a1[_0x20aceb(0x16f)]=_0x29dd25,await _0x119350[_0x20aceb(0x154)](_0xb8d6a1)[_0x20aceb(0x1b4)](_0xe0a9e8=>{const _0x2fcb58=_0x20aceb,_0x2d82dc={};_0x2d82dc[_0x2fcb58(0x134)]=_0x53a41a['MLZEa'];const _0x59ada0=_0x2d82dc;_0x53a41a['FnLIH'](_0x53a41a['jgEvk'],_0x53a41a[_0x2fcb58(0x173)])?logger[_0x2fcb58(0x159)](_0x2fcb58(0x14e)+_0x29dd25+_0x2fcb58(0x136)):(_0x22fd7b['info'](_0x59ada0[_0x2fcb58(0x134)]),_0x1e9176[_0x2fcb58(0x1b9)](0x0));})[_0x20aceb(0x191)](_0x55855c=>{const _0x1f9b60=_0x20aceb;_0x53a41a[_0x1f9b60(0x1a5)](_0x53a41a['DkXvz'],_0x53a41a['DkXvz'])?_0x523e15['exit'](0x0):(logger['warn'](_0x1f9b60(0x14e)+_0x29dd25+_0x1f9b60(0x16d)),_0x3ee00c=![]);});if(_0x3ee00c){await _0x53a41a[_0x20aceb(0x168)](removeGridComponents,_0x119350,_0x481605,_0x2c2366,_0x3a75b5,_0x29dd25);if(_0x364895['onlyGridInCluster']){const _0x23cef4=await _0xc95c13[_0x20aceb(0x14d)]();if(_0x23cef4){if(_0x53a41a[_0x20aceb(0x1b7)](_0x53a41a[_0x20aceb(0x146)],_0x53a41a[_0x20aceb(0x177)])){const _0x45fdd8={};_0x45fdd8[_0x20aceb(0x181)]=_0x53a41a[_0x20aceb(0x133)],_0x45fdd8['type']=_0x53a41a[_0x20aceb(0x13f)];const _0x467ea2={};_0x467ea2[_0x20aceb(0x181)]=_0x53a41a[_0x20aceb(0x155)],_0x467ea2[_0x20aceb(0x17f)]=_0x53a41a[_0x20aceb(0x179)],_0x467ea2[_0x20aceb(0x1ca)]=![];const _0x427742={};return _0x427742[_0x20aceb(0x199)]=_0x45fdd8,_0x427742['skip-tls-cert-verify']=_0x467ea2,_0x81aa2b[_0x20aceb(0x1c9)](_0x40d5cf['delete'])[_0x20aceb(0x15b)](_0x404d53)[_0x20aceb(0x19d)](_0x427742)[_0x20aceb(0x153)](_0x53a41a[_0x20aceb(0x13e)])[_0x20aceb(0x156)];}else await _0xc95c13[_0x20aceb(0x180)](_0x119350,_0x406b82[_0x20aceb(0x16e)]);}else _0x53a41a[_0x20aceb(0x17e)](_0x53a41a[_0x20aceb(0x13a)],_0x53a41a[_0x20aceb(0x13a)])?_0x503bae[_0x20aceb(0x159)](_0x20aceb(0x14e)+_0x4a1b37+_0x20aceb(0x136)):logger[_0x20aceb(0x135)](_0x20aceb(0x19f)+_0x406b82['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger[_0x20aceb(0x135)](_0x53a41a[_0x20aceb(0x171)]);const _0x23b5a9=_0x20aceb(0x15e)+AG_API_URL+_0x20aceb(0x16a)+_0x52524c[_0x20aceb(0x165)],_0x5a2c99={'method':_0x53a41a[_0x20aceb(0x18a)],'headers':_0x53a41a[_0x20aceb(0x12c)](getAuthHeader,_0x580c37[_0x20aceb(0x137)][_0x20aceb(0x152)],_0x580c37[_0x20aceb(0x137)][_0x20aceb(0x17b)]),'throwHttpErrors':![]},_0xf65850=await _0x53a41a[_0x20aceb(0x198)](got,_0x23b5a9,_0x5a2c99);_0x53a41a[_0x20aceb(0x188)](_0xf65850,null)&&_0x53a41a['XjbwC'](_0xf65850,undefined)&&_0x53a41a[_0x20aceb(0x1b7)](_0xf65850[_0x20aceb(0x172)],0xc8)&&(logger['info'](_0x53a41a[_0x20aceb(0x19e)]),process[_0x20aceb(0x1b9)](0x0)),logger['error'](_0x20aceb(0x1c5)+_0xf65850[_0x20aceb(0x141)]),await _0x53a41a[_0x20aceb(0x189)](sendInstrumentationEvent,_0x52524c,_0x53a41a[_0x20aceb(0x1a6)],messageTypes['ERROR'],_0x53a41a[_0x20aceb(0x1a3)],_0x1e403b,_0x52524c),process['exit'](0x1);}_0x53a41a[_0x20aceb(0x144)](_0x1e403b[_0x20aceb(0x172)],0x191)&&(logger['error'](_0x53a41a[_0x20aceb(0x12e)]),await _0x53a41a[_0x20aceb(0x130)](sendInstrumentationEvent,_0x52524c,_0x53a41a['DfCve'],messageTypes[_0x20aceb(0x1ab)],_0x53a41a[_0x20aceb(0x1cb)],null,_0x52524c),process[_0x20aceb(0x1b9)](0x1)),_0x53a41a[_0x20aceb(0x144)](_0x1e403b[_0x20aceb(0x172)],0x190)&&(logger[_0x20aceb(0x1c7)](JSON['parse'](_0x1e403b['body'])[_0x20aceb(0x18f)]),await _0x53a41a['vUVXm'](sendInstrumentationEvent,_0x52524c,_0x53a41a[_0x20aceb(0x1a6)],messageTypes['ERROR'],_0x53a41a[_0x20aceb(0x14b)],null,_0x52524c),process[_0x20aceb(0x1b9)](0x1)),logger['error'](_0x20aceb(0x183)+JSON[_0x20aceb(0x131)](_0x1e403b)),await _0x53a41a[_0x20aceb(0x1bb)](sendInstrumentationEvent,_0x52524c,_0x53a41a[_0x20aceb(0x1a6)],messageTypes[_0x20aceb(0x1ab)],_0x53a41a[_0x20aceb(0x1a3)],_0x1e403b,_0x52524c),process[_0x20aceb(0x1b9)](0x1);}catch(_0x315c99){logger['error'](_0x20aceb(0x13d)+_0x315c99[_0x20aceb(0x17a)]),await _0x53a41a['QzcTn'](sendInstrumentationEvent,_0x52524c,_0x53a41a['DfCve'],messageTypes[_0x20aceb(0x1ab)],_0x53a41a['AXGwV'],_0x315c99,_0x52524c),process[_0x20aceb(0x1b9)](0x1);}};function a11_0x49fd(){const _0x5db59e=['12095136lpjrlh','ApWFe','WebSocket','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','string','handler','clusterName','ywHyQ','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','\x22\x20with\x20ID\x20','init-not-called','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','3512075cYrRkg','error','HseOd','usage','default','quqSJ','toLowerCase','Skip\x20insecure\x20cert\x20verification.','fyzgB','Pass\x20the\x20ID\x20of\x20the\x20Grid','qKrtF','xeodO','OSDnO','56AHCYvz','TlukZ','stringify','cDwvB','EjEaV','tjYaD','warn','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','Browserstack','tNWri','tBJDN','ESNqS','kQcRF','replace','Failed\x20to\x20delete\x20resources!\x20Error:\x20','ptjvh','rFhKZ','OuAwN','body','rLPZM','command','zAFRV','cSJTp','eIDQQ','uYiLL','clusterSpawnedVia','wFROB','server-error','KwPDw','DELETE','isBrowserstackCluster','Namespace:\x20','../../utils/gridComponents','DVksQ','unknown-error','username','help','readNamespace','nilSl','argv','6KpQkIA','sYDlj','info','ofWRz','epilogue','\x22\x20and\x20ID\x20','BeZZl','https://','16464339GPxioz','YgOfA','unauthorised','xPBum','<UsernamePlaceholder>','skipTlsCertVerify','gridId','../../utils/utilityMethods','invalid-grid-id','levMs','INFO','/packages/cli/grid/','builder','../../config/logger','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','region','name','boolean','VMVbL','statusCode','jgEvk','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','yUzGU','nwpft','../../utils/instrumentationUtils','aopPM','stack','password','2071416MxIQdv','cloudProvider','DOuJn','type','deleteCluster','description','connectionTimeout','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','../../utils/userInput','desc','../../utils/webSocketUtils','AcWgM','XjbwC','EZziT','xqqdR','vUVXm','parse','udmwc','NEHhM','message','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','catch','nQoDB','1220548ZuDSBN','fNEre','../../cloudproviders/utils','Rfzdj','bnOND','DKEPE','grid-id','onlyGridInCluster','<PasswordPlaceholder>','existsSync','options','MLZEa','Cluster:\x20','aKpTf','requestId','EVMsN','zpwQe','readFileSync','kieVB','DfCve','4815510laLbEa','dBGID','208557nvTtjl','skip-tls-cert-verify','ERROR','reconnecting-websocket','10mYqfUv','wWUJY','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','VbhkZ','YjGFh','clusterId','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','then','mwzGY','MeHTv','KnQoF','lzlBG','exit'];a11_0x49fd=function(){return _0x5db59e;};return a11_0x49fd();}
1
+ const a11_0x1e839e=a11_0x4337;(function(_0x229c49,_0x3555f6){const _0x1d1a8b=a11_0x4337,_0x11a6cc=_0x229c49();while(!![]){try{const _0x6acc8d=parseInt(_0x1d1a8b(0x202))/0x1+-parseInt(_0x1d1a8b(0x1e7))/0x2+-parseInt(_0x1d1a8b(0x176))/0x3*(-parseInt(_0x1d1a8b(0x17b))/0x4)+parseInt(_0x1d1a8b(0x17e))/0x5*(-parseInt(_0x1d1a8b(0x1fa))/0x6)+parseInt(_0x1d1a8b(0x196))/0x7+-parseInt(_0x1d1a8b(0x208))/0x8+parseInt(_0x1d1a8b(0x1e1))/0x9*(parseInt(_0x1d1a8b(0x205))/0xa);if(_0x6acc8d===_0x3555f6)break;else _0x11a6cc['push'](_0x11a6cc['shift']());}catch(_0x4d5856){_0x11a6cc['push'](_0x11a6cc['shift']());}}}(a11_0x83ba,0xc3ca3));function a11_0x4337(_0x3984fc,_0x599e65){const _0x83bac0=a11_0x83ba();return a11_0x4337=function(_0x4337ae,_0x2c4b4e){_0x4337ae=_0x4337ae-0x16f;let _0x3ce7f8=_0x83bac0[_0x4337ae];return _0x3ce7f8;},a11_0x4337(_0x3984fc,_0x599e65);}const fs=require('fs'),got=require(a11_0x1e839e(0x1dd)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require(a11_0x1e839e(0x188)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x1e839e(0x1cb)),{logger}=require(a11_0x1e839e(0x1bf)),{getCloudProviderObject}=require(a11_0x1e839e(0x1ba)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x1e839e(0x186)),{sendInstrumentationEvent}=require(a11_0x1e839e(0x16f)),{inputConfirmation}=require(a11_0x1e839e(0x1bd)),{createK8sClient}=require(a11_0x1e839e(0x178)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x1e839e(0x18a)),webSocketUtils=require('../../utils/webSocketUtils');exports[a11_0x1e839e(0x19d)]='grid',exports['desc']=a11_0x1e839e(0x17f),exports[a11_0x1e839e(0x1a0)]=function(_0x236c0f){const _0x5459f7=a11_0x1e839e,_0x175bbd={};_0x175bbd[_0x5459f7(0x203)]=_0x5459f7(0x170),_0x175bbd[_0x5459f7(0x18c)]='string',_0x175bbd[_0x5459f7(0x1ef)]='Skip\x20insecure\x20cert\x20verification.',_0x175bbd[_0x5459f7(0x1aa)]='boolean',_0x175bbd[_0x5459f7(0x204)]=_0x5459f7(0x1fd);const _0x5a381a=_0x175bbd,_0x24427a={};_0x24427a[_0x5459f7(0x1c7)]=_0x5a381a[_0x5459f7(0x203)],_0x24427a[_0x5459f7(0x1d2)]=_0x5a381a['CvMXw'];const _0x167e31={};_0x167e31[_0x5459f7(0x1c7)]=_0x5a381a[_0x5459f7(0x1ef)],_0x167e31[_0x5459f7(0x1d2)]=_0x5a381a[_0x5459f7(0x1aa)],_0x167e31[_0x5459f7(0x1e8)]=![];const _0x54d299={};return _0x54d299['grid-id']=_0x24427a,_0x54d299[_0x5459f7(0x1e2)]=_0x167e31,_0x236c0f[_0x5459f7(0x1d8)](HELP_HEADER_MESSAGE[_0x5459f7(0x1ce)])[_0x5459f7(0x1d5)](HELP_FOOTER_MESSAGE)['options'](_0x54d299)['help'](_0x5a381a[_0x5459f7(0x204)])[_0x5459f7(0x1ec)];},exports[a11_0x1e839e(0x1fe)]=async function(_0xeabc51){const _0x281888=a11_0x1e839e,_0x286d65={'Wenjv':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','LldWR':_0x281888(0x170),'CuBga':_0x281888(0x1c4),'kktEa':_0x281888(0x1f8),'GZWYe':_0x281888(0x1ad),'NFVbX':_0x281888(0x1fd),'lxuax':function(_0x43cb77,_0x1e5bc0){return _0x43cb77===_0x1e5bc0;},'SYhgI':_0x281888(0x1a8),'DlSSy':_0x281888(0x191),'adWgk':_0x281888(0x19a),'DrjbH':_0x281888(0x1c9),'MrZhw':'ESNYj','guXmd':_0x281888(0x177),'jdFTK':function(_0x213287){return _0x213287();},'HZBAE':function(_0x264b4b){return _0x264b4b();},'gAqFa':function(_0xffa7f4,_0x364a37){return _0xffa7f4!==_0x364a37;},'XrVlS':_0x281888(0x1d3),'WDPht':_0x281888(0x1e0),'anfOl':function(_0x377e77,_0x2302cb,_0x25a8a0,_0x263154,_0x3683c5,_0x1e7cc7,_0x2ea4d5){return _0x377e77(_0x2302cb,_0x25a8a0,_0x263154,_0x3683c5,_0x1e7cc7,_0x2ea4d5);},'wzfYh':_0x281888(0x1b9),'CgkUn':_0x281888(0x1a7),'eaPyI':function(_0x444522,_0x2fe518){return _0x444522===_0x2fe518;},'hXJJv':_0x281888(0x1c5),'mCBrH':function(_0x567e83){return _0x567e83();},'ZCHhF':function(_0x37e341,_0x96a66,_0x3b3e52,_0x2921f9){return _0x37e341(_0x96a66,_0x3b3e52,_0x2921f9);},'aRYXT':_0x281888(0x174),'iawYv':function(_0x3cdd1b,_0x3cdd2a){return _0x3cdd1b===_0x3cdd2a;},'JuqGy':_0x281888(0x171),'DTSZe':function(_0x4154dd,_0x43afc5){return _0x4154dd(_0x43afc5);},'bKVPL':function(_0x3bc1cd,_0x179cf9){return _0x3bc1cd===_0x179cf9;},'dEfoE':function(_0x449d82,_0x4d255b){return _0x449d82===_0x4d255b;},'rEWTH':_0x281888(0x1fb),'POUzF':_0x281888(0x193),'KRhqa':function(_0x2a2963,_0xc033d8,_0x501e58,_0x575b9a,_0x4a19e5,_0x461c83,_0x3e2c1d){return _0x2a2963(_0xc033d8,_0x501e58,_0x575b9a,_0x4a19e5,_0x461c83,_0x3e2c1d);},'PmKhp':_0x281888(0x1f1),'ybfVP':function(_0x47d33e,_0x5be46f){return _0x47d33e===_0x5be46f;},'PYIbd':_0x281888(0x189),'fbnmY':'qlzNF','gpnZv':'<UsernamePlaceholder>','fCnSX':_0x281888(0x173),'PhUfr':function(_0x148b75,_0x27e1bd){return _0x148b75(_0x27e1bd);},'DXsmO':function(_0x26367c,_0x39467b,_0x1f30e0){return _0x26367c(_0x39467b,_0x1f30e0);},'OGDfk':function(_0x266969,_0x3ed655,_0x1a3fa8,_0x5dac3c,_0x3272da,_0x41160f){return _0x266969(_0x3ed655,_0x1a3fa8,_0x5dac3c,_0x3272da,_0x41160f);},'HHWJV':function(_0xc0f4a9,_0x19be78){return _0xc0f4a9!==_0x19be78;},'cpdcJ':_0x281888(0x172),'gRSKJ':'qlIFG','MiWPN':_0x281888(0x1ac),'QBllm':_0x281888(0x18f),'YbpDf':function(_0x1afbab,_0x923660){return _0x1afbab!==_0x923660;},'RTMUD':function(_0x110337,_0x49fb32){return _0x110337!==_0x49fb32;},'ZiKcb':'server-error','wSvDF':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','AoBDL':_0x281888(0x1d6),'yGPeZ':function(_0x430015,_0x19afbe){return _0x430015===_0x19afbe;},'gNNmD':function(_0x4eea91,_0x797512,_0x3fab29,_0x1e82b4,_0x50caf,_0x26ec29,_0x488645){return _0x4eea91(_0x797512,_0x3fab29,_0x1e82b4,_0x50caf,_0x26ec29,_0x488645);},'rLTLc':_0x281888(0x1a3),'fHHll':function(_0x576544,_0x5c862e,_0x5dbeae,_0xe1db66,_0xde2d73,_0x4a67bf,_0x9bd7b0){return _0x576544(_0x5c862e,_0x5dbeae,_0xe1db66,_0xde2d73,_0x4a67bf,_0x9bd7b0);},'TZoVI':'unknown-error'};try{global_registry[_0x281888(0x1e9)]=_0x286d65[_0x281888(0x1c6)](uuidv4);!fs[_0x281888(0x185)](_0x286d65['HZBAE'](getCredentialsPath))&&(_0x286d65['gAqFa'](_0x286d65[_0x281888(0x1a5)],_0x286d65[_0x281888(0x1a5)])?_0x57aa88[_0x281888(0x1c8)]('Cluster:\x20'+_0x4c5d20[_0x281888(0x1b2)]+_0x281888(0x18b)):(console['error'](_0x286d65[_0x281888(0x1c2)]),await _0x286d65[_0x281888(0x1ab)](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes['ERROR'],_0x286d65[_0x281888(0x1c0)],null,_0xeabc51),process['exit'](0x1)));_0x286d65['anfOl'](sendInstrumentationEvent,_0xeabc51,_0x286d65['wzfYh'],messageTypes[_0x281888(0x20a)],null,null,_0xeabc51);!_0xeabc51['gridId']&&(_0x286d65['eaPyI'](_0x286d65['hXJJv'],_0x286d65['hXJJv'])?(console[_0x281888(0x1ea)](_0x286d65['Wenjv']),process[_0x281888(0x1a4)](0x1)):_0x1a28be[_0x281888(0x1a4)](0x0));const _0x277d33=JSON[_0x281888(0x1c3)](fs[_0x281888(0x1b6)](_0x286d65['mCBrH'](getCredentialsPath))),[_0x46101f,_0xf34891]=await _0x286d65[_0x281888(0x17a)](getGridDetails,_0x277d33['Browserstack']['username'],_0x277d33['Browserstack'][_0x281888(0x199)],_0xeabc51['gridId']);if(_0xf34891){const _0x329c0d=_0xf34891['info'];let _0x1ac745=_0x281888(0x180)+_0x329c0d['name']+_0x281888(0x1ca)+_0x329c0d['id']+_0x281888(0x1bb);_0xf34891[_0x281888(0x1f6)]&&_0x286d65[_0x281888(0x192)](_0xf34891[_0x281888(0x17c)],_0x286d65[_0x281888(0x19c)])&&(_0x286d65[_0x281888(0x1b0)](_0x286d65[_0x281888(0x175)],_0x286d65[_0x281888(0x175)])?_0x1ac745=_0x281888(0x180)+_0x329c0d[_0x281888(0x1f2)]+'\x22\x20and\x20ID\x20'+_0x329c0d['id']+_0x281888(0x1da)+_0x329c0d[_0x281888(0x1b2)]+_0x281888(0x1f3)+_0x329c0d['clusterId']+_0x281888(0x1bb):(_0x30cce3[_0x281888(0x1ea)](_0x286d65[_0x281888(0x1be)]),_0x438119[_0x281888(0x1a4)](0x1)));const _0x294116=await _0x286d65[_0x281888(0x1cf)](inputConfirmation,_0x1ac745);(_0x286d65[_0x281888(0x192)](_0x294116,undefined)||_0x286d65[_0x281888(0x18e)](_0x294116,null)||!(_0x286d65[_0x281888(0x18e)](_0x294116['toLowerCase'](),'y')||_0x286d65[_0x281888(0x187)](_0x294116[_0x281888(0x209)](),'n')))&&(_0x286d65[_0x281888(0x18e)](_0x286d65[_0x281888(0x201)],_0x286d65[_0x281888(0x201)])?(console[_0x281888(0x1ea)](_0x286d65[_0x281888(0x1b7)]),await _0x286d65[_0x281888(0x1af)](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes[_0x281888(0x1a6)],_0x286d65[_0x281888(0x1b5)],null,_0xeabc51),process[_0x281888(0x1a4)](0x1)):(_0x59033d[_0x281888(0x1c8)](_0x281888(0x1c1)+_0x2460e0+_0x281888(0x19b)),_0x885fa0=![]));_0x286d65[_0x281888(0x1d0)](_0x294116[_0x281888(0x209)](),'n')&&(_0x286d65[_0x281888(0x1b1)](_0x286d65[_0x281888(0x19f)],_0x286d65['fbnmY'])?process[_0x281888(0x1a4)](0x0):_0x5ce597=_0x281888(0x180)+_0x1feec2[_0x281888(0x1f2)]+_0x281888(0x1ca)+_0x1ab1b4['id']+_0x281888(0x1da)+_0x20a1b7['clusterName']+_0x281888(0x1f3)+_0x402991['clusterId']+_0x281888(0x1bb));const _0x34a8bc=WS_ENDPOINT['replace'](_0x286d65[_0x281888(0x1cd)],_0x277d33[_0x281888(0x174)][_0x281888(0x1ff)])[_0x281888(0x1b3)](_0x286d65['fCnSX'],_0x277d33[_0x281888(0x174)][_0x281888(0x199)]),_0x556bd1={};_0x556bd1[_0x281888(0x1f9)]=ws,_0x556bd1[_0x281888(0x1a1)]=0x36ee80;const _0x55bc84=new ReconnectingWebSocket(_0x34a8bc,[],_0x556bd1);global_registry[_0x281888(0x206)]=_0x329c0d[_0x281888(0x1e5)];const _0x46bb14=_0x329c0d[_0x281888(0x181)],_0xdb075b=await _0x286d65[_0x281888(0x1ab)](getCloudProviderObject,_0x46bb14,_0x329c0d[_0x281888(0x1b2)],_0x329c0d[_0x281888(0x1f2)],_0x55bc84,webSocketUtils,_0xeabc51),_0x327dba=await _0xdb075b[_0x281888(0x19e)]();if(_0x327dba){const _0x591de1=_0x286d65[_0x281888(0x1e6)](kebabCase,_0x329c0d[_0x281888(0x1f2)]),[_0x44f2c0,_0x472c0a,_0x48b76a,_0x700e07,_0x4b16d3,_0x55488a]=await _0x286d65['DXsmO'](createK8sClient,_0xdb075b,_0xeabc51[_0x281888(0x200)]);let _0x25b17b=!![];const _0xa611f={};_0xa611f['name']=_0x591de1,await _0x44f2c0['readNamespace'](_0xa611f)['then'](_0x11120e=>{const _0x27dba1=_0x281888;if(_0x286d65[_0x27dba1(0x1db)](_0x286d65[_0x27dba1(0x18d)],_0x286d65['DlSSy'])){const _0x2f5196={};_0x2f5196[_0x27dba1(0x1c7)]=_0x286d65['LldWR'],_0x2f5196[_0x27dba1(0x1d2)]=_0x286d65[_0x27dba1(0x1f5)];const _0x5a23dd={};_0x5a23dd[_0x27dba1(0x1c7)]=_0x286d65['kktEa'],_0x5a23dd[_0x27dba1(0x1d2)]=_0x286d65[_0x27dba1(0x194)],_0x5a23dd['default']=![];const _0x572659={};return _0x572659['grid-id']=_0x2f5196,_0x572659[_0x27dba1(0x1e2)]=_0x5a23dd,_0x249756[_0x27dba1(0x1d8)](_0x6c2275[_0x27dba1(0x1ce)])['epilogue'](_0x30c904)[_0x27dba1(0x1a9)](_0x572659)['help'](_0x286d65[_0x27dba1(0x190)])[_0x27dba1(0x1ec)];}else logger['info']('Namespace:\x20'+_0x591de1+_0x27dba1(0x1fc));})['catch'](_0xea811d=>{const _0x8bb1d9=_0x281888;_0x286d65[_0x8bb1d9(0x1db)](_0x286d65[_0x8bb1d9(0x207)],_0x286d65[_0x8bb1d9(0x1e3)])?_0x37932b[_0x8bb1d9(0x1c8)](_0x286d65[_0x8bb1d9(0x1d7)]):(logger[_0x8bb1d9(0x1c8)](_0x8bb1d9(0x1c1)+_0x591de1+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x25b17b=![]);});if(_0x25b17b){await _0x286d65[_0x281888(0x1eb)](removeGridComponents,_0x44f2c0,_0x472c0a,_0x48b76a,_0x700e07,_0x591de1);if(_0xf34891[_0x281888(0x1f6)]){const _0x43e83f=await _0xdb075b[_0x281888(0x17d)]();_0x43e83f?_0x286d65[_0x281888(0x197)](_0x286d65[_0x281888(0x1b4)],_0x286d65[_0x281888(0x1d4)])?await _0xdb075b['deleteCluster'](_0x44f2c0,_0x329c0d[_0x281888(0x1e5)]):(_0x1c7775[_0x281888(0x1a2)](_0x286d65[_0x281888(0x184)]),_0x88074[_0x281888(0x1a4)](0x0)):_0x286d65[_0x281888(0x1db)](_0x286d65[_0x281888(0x1d1)],_0x286d65[_0x281888(0x1d1)])?logger['warn'](_0x281888(0x195)+_0x329c0d['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'):_0x2c50f1[_0x281888(0x1a2)]('Namespace:\x20'+_0x3d4baa+_0x281888(0x1fc));}}}else logger[_0x281888(0x1c8)](_0x286d65['adWgk']);const _0x2c995d=_0x281888(0x1df)+AG_API_URL+'/packages/cli/grid/'+_0xeabc51['gridId'],_0x3ae2ec={'method':_0x286d65[_0x281888(0x1ed)],'headers':_0x286d65['DXsmO'](getAuthHeader,_0x277d33[_0x281888(0x174)][_0x281888(0x1ff)],_0x277d33[_0x281888(0x174)][_0x281888(0x199)]),'throwHttpErrors':![]},_0x461dae=await _0x286d65[_0x281888(0x1bc)](got,_0x2c995d,_0x3ae2ec);_0x286d65[_0x281888(0x1dc)](_0x461dae,null)&&_0x286d65[_0x281888(0x1f4)](_0x461dae,undefined)&&_0x286d65[_0x281888(0x192)](_0x461dae[_0x281888(0x1f0)],0xc8)&&(logger[_0x281888(0x1a2)](_0x286d65[_0x281888(0x184)]),process[_0x281888(0x1a4)](0x0)),logger['error'](_0x281888(0x1ee)+_0x461dae[_0x281888(0x1d9)]),await _0x286d65[_0x281888(0x1ab)](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes[_0x281888(0x1a6)],_0x286d65[_0x281888(0x182)],_0x46101f,_0xeabc51),process['exit'](0x1);}_0x286d65['eaPyI'](_0x46101f[_0x281888(0x1f0)],0x191)&&(logger[_0x281888(0x1ea)](_0x286d65[_0x281888(0x179)]),await _0x286d65[_0x281888(0x1af)](sendInstrumentationEvent,_0xeabc51,_0x286d65['wzfYh'],messageTypes[_0x281888(0x1a6)],_0x286d65[_0x281888(0x1ae)],null,_0xeabc51),process[_0x281888(0x1a4)](0x1)),_0x286d65[_0x281888(0x1de)](_0x46101f['statusCode'],0x190)&&(logger[_0x281888(0x1ea)](JSON[_0x281888(0x1c3)](_0x46101f['body'])['message']),await _0x286d65[_0x281888(0x183)](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes[_0x281888(0x1a6)],_0x286d65['rLTLc'],null,_0xeabc51),process[_0x281888(0x1a4)](0x1)),logger[_0x281888(0x1ea)](_0x281888(0x198)+JSON['stringify'](_0x46101f)),await _0x286d65[_0x281888(0x1af)](sendInstrumentationEvent,_0xeabc51,_0x286d65['wzfYh'],messageTypes['ERROR'],_0x286d65['ZiKcb'],_0x46101f,_0xeabc51),process[_0x281888(0x1a4)](0x1);}catch(_0x1c2682){logger[_0x281888(0x1ea)](_0x281888(0x1cc)+_0x1c2682[_0x281888(0x1f7)]),await _0x286d65['fHHll'](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes[_0x281888(0x1a6)],_0x286d65[_0x281888(0x1e4)],_0x1c2682,_0xeabc51),process[_0x281888(0x1a4)](0x1);}};function a11_0x83ba(){const _0x156428=['INFO','../../utils/instrumentationUtils','Pass\x20the\x20ID\x20of\x20the\x20Grid','VxBDE','MnhVE','<PasswordPlaceholder>','Browserstack','JuqGy','1044993JWPSFf','Successfully\x20deleted\x20the\x20grid','../../utils/createk8sClient','wSvDF','ZCHhF','4ilmAqs','clusterSpawnedVia','isBrowserstackCluster','5pGwhZT','Delete\x20an\x20Automation\x20grid.','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','cloudProvider','ZiKcb','gNNmD','guXmd','existsSync','../../utils/gridComponents','dEfoE','reconnecting-websocket','PvTgq','../../utils/utilityMethods','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','CvMXw','SYhgI','bKVPL','DELETE','NFVbX','CCsvb','eaPyI','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','GZWYe','Cluster:\x20','2188802ToRolL','HHWJV','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','password','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','aRYXT','command','isClusterPresent','PYIbd','builder','connectionTimeout','info','invalid-grid-id','exit','XrVlS','ERROR','init-not-called','ptuhS','options','WWLDP','anfOl','bhlHC','boolean','AoBDL','KRhqa','iawYv','gAqFa','clusterName','replace','cpdcJ','PmKhp','readFileSync','POUzF','wzfYh','delete-grid-called','../../cloudproviders/utils','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','DXsmO','../../utils/userInput','Wenjv','../../config/logger','CgkUn','Namespace:\x20','WDPht','parse','string','LgdGh','jdFTK','description','warn','VqYEB','\x22\x20and\x20ID\x20','../../config/constants','Failed\x20to\x20delete\x20resources!\x20Error:\x20','gpnZv','delete','DTSZe','ybfVP','MiWPN','type','axErA','gRSKJ','epilogue','unauthorised','adWgk','usage','body','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','lxuax','YbpDf','got','yGPeZ','https://','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','4095189bFqPyj','skip-tls-cert-verify','MrZhw','TZoVI','region','PhUfr','2866326DeiARX','default','requestId','error','OGDfk','argv','QBllm','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','zrAnZ','statusCode','invalid-input','name','\x22\x20with\x20ID\x20','RTMUD','CuBga','onlyGridInCluster','stack','Skip\x20insecure\x20cert\x20verification.','WebSocket','8525070yhOjHT','JpLpn','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','help','handler','username','skipTlsCertVerify','rEWTH','1436816GUtDuC','IECAA','aXBjP','40rLnDxV','clusterRegion','DrjbH','2095632iWEcNH','toLowerCase'];a11_0x83ba=function(){return _0x156428;};return a11_0x83ba();}
@@ -1 +1 @@
1
- const a12_0x37d65c=a12_0x26d6;(function(_0x4ca1b9,_0x11e02e){const _0x54db4c=a12_0x26d6,_0x50254f=_0x4ca1b9();while(!![]){try{const _0x4c34be=-parseInt(_0x54db4c(0x208))/0x1+-parseInt(_0x54db4c(0x232))/0x2*(-parseInt(_0x54db4c(0x209))/0x3)+-parseInt(_0x54db4c(0x1f0))/0x4+-parseInt(_0x54db4c(0x23e))/0x5+-parseInt(_0x54db4c(0x206))/0x6*(parseInt(_0x54db4c(0x245))/0x7)+parseInt(_0x54db4c(0x216))/0x8+-parseInt(_0x54db4c(0x237))/0x9;if(_0x4c34be===_0x11e02e)break;else _0x50254f['push'](_0x50254f['shift']());}catch(_0x438b45){_0x50254f['push'](_0x50254f['shift']());}}}(a12_0x5a2f,0x9fcbc));const fs=require('fs'),util=require(a12_0x37d65c(0x23a)),got=require(a12_0x37d65c(0x20f)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x37d65c(0x20c)),{inputBstackKeys}=require(a12_0x37d65c(0x227)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x37d65c(0x213)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x37d65c(0x240)),{sendInstrumentationEvent}=require(a12_0x37d65c(0x21b));function a12_0x5a2f(){const _0x2930ba=['init-called','env','statusCode','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','7kuAMAQ','kshmX','bnPcu','string','baKuy','description','mGqba','utf-8','debug','MJNxU','hOXbC','wqdin','existsSync','pSqir','vxwEp','823348cekNRb','MkBGE','Browserstack','bstackUsername','JNXSt','BKGSv','bstackAccesskey','BROWSERSTACK_ACCESS_KEY','LuIvT','help','cGYbC','parse','bzDBj','ecpek','writeFileSync','fUbal','odUxO','https://','NiqPv','bstack-username','qFSMx','qieYZ','2317596YeXWXl','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','82158UQTpKE','3SAetgX','init','requestId','../config/logger','usage','WTsgq','got','wrong-creds','/automate/plan.json','gigpm','../config/constants','recommendCommands','bstack-accesskey','8888336TgmSRm','ZyyyD','pDMWb','RScwq','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','../utils/instrumentationUtils','OilAI','epilogue','xIiBI','username','rCpEU','type','ERROR','yJlas','exit','readFileSync','strict','../utils/userInput','eabAq','builder','FolJG','INFO','JGJkL','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','PLIlB','LGrgL','options','mkdirSync','780422oBEtDb','error','eFHpJ','nCwWB','password','542844rXgeFs','stringify','rzKTt','util','argv','command','handler','560760XuiBoc','lIhxW','../utils/utilityMethods'];a12_0x5a2f=function(){return _0x2930ba;};return a12_0x5a2f();}function a12_0x26d6(_0x445af7,_0x2c17aa){const _0x5a2fdb=a12_0x5a2f();return a12_0x26d6=function(_0x26d691,_0x291a78){_0x26d691=_0x26d691-0x1e8;let _0x38a4f4=_0x5a2fdb[_0x26d691];return _0x38a4f4;},a12_0x26d6(_0x445af7,_0x2c17aa);}exports[a12_0x37d65c(0x23c)]=a12_0x37d65c(0x20a),exports['desc']=a12_0x37d65c(0x21a),exports[a12_0x37d65c(0x229)]=function(_0x1390e0){const _0x409df0=a12_0x37d65c,_0x5348bd={};_0x5348bd[_0x409df0(0x1ff)]=_0x409df0(0x22d),_0x5348bd[_0x409df0(0x223)]=_0x409df0(0x248),_0x5348bd[_0x409df0(0x246)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x5348bd[_0x409df0(0x249)]='help';const _0x20f164=_0x5348bd,_0x5ab554={};_0x5ab554[_0x409df0(0x24a)]=_0x20f164['fUbal'],_0x5ab554[_0x409df0(0x221)]=_0x20f164[_0x409df0(0x223)];const _0x141197={};_0x141197[_0x409df0(0x24a)]=_0x20f164[_0x409df0(0x246)],_0x141197[_0x409df0(0x221)]=_0x20f164[_0x409df0(0x223)];const _0x3fd787={};return _0x3fd787[_0x409df0(0x203)]=_0x5ab554,_0x3fd787[_0x409df0(0x215)]=_0x141197,_0x1390e0['usage'](HELP_HEADER_MESSAGE[_0x409df0(0x20a)])[_0x409df0(0x21d)](HELP_FOOTER_MESSAGE)[_0x409df0(0x230)](_0x3fd787)['recommendCommands']()[_0x409df0(0x226)]()[_0x409df0(0x1f9)](_0x20f164[_0x409df0(0x249)])[_0x409df0(0x23b)];},exports[a12_0x37d65c(0x23d)]=async function(_0x1fac39){const _0x116e34=a12_0x37d65c,_0x87f121={'nCwWB':function(_0x208429){return _0x208429();},'rCpEU':_0x116e34(0x1e8),'LuIvT':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','JGJkL':_0x116e34(0x248),'qieYZ':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','MJNxU':_0x116e34(0x1f9),'FolJG':function(_0x411f2b,_0x2ba880,_0x17a813,_0x2a5d89,_0x1d12f9,_0x481f98,_0x222a6e){return _0x411f2b(_0x2ba880,_0x17a813,_0x2a5d89,_0x1d12f9,_0x481f98,_0x222a6e);},'ZyyyD':_0x116e34(0x241),'wqdin':function(_0x5b1273,_0x4621e9){return _0x5b1273===_0x4621e9;},'MkBGE':_0x116e34(0x21c),'bzDBj':function(_0x430bbb,_0x347e7d){return _0x430bbb===_0x347e7d;},'RScwq':'ywXEE','rQxcx':_0x116e34(0x234),'pSqir':_0x116e34(0x24b),'JNXSt':function(_0xb22dd3,_0x1adabe){return _0xb22dd3!==_0x1adabe;},'IhQKK':_0x116e34(0x204),'xIiBI':'nBMJg','WTsgq':function(_0x4e1b89,_0x2292cc){return _0x4e1b89===_0x2292cc;},'lGRfi':function(_0x1ef165,_0x45cd7a){return _0x1ef165===_0x45cd7a;},'vxwEp':_0x116e34(0x202),'odUxO':_0x116e34(0x244),'LGrgL':'GET','kTLpZ':function(_0x2c3d40,_0x307808,_0x469eca){return _0x2c3d40(_0x307808,_0x469eca);},'lZikk':function(_0x1d856c,_0x1ef13b,_0x2ecec6){return _0x1d856c(_0x1ef13b,_0x2ecec6);},'cGYbC':function(_0x1b0ba9,_0x3b2c4f){return _0x1b0ba9!==_0x3b2c4f;},'PLIlB':function(_0x4e59d3,_0x325f24){return _0x4e59d3===_0x325f24;},'hOXbC':function(_0x4bcef2,_0x277704){return _0x4bcef2!==_0x277704;},'BKGSv':_0x116e34(0x218),'ecpek':_0x116e34(0x228),'lIhxW':'GjdyM','rzKTt':_0x116e34(0x212),'IbjUJ':_0x116e34(0x207),'pzZnw':_0x116e34(0x210),'DNzTs':function(_0x41eb05,_0x5a31f5,_0x38440a,_0x5059d0,_0x20c50b,_0x4ca875,_0x3bcec9){return _0x41eb05(_0x5a31f5,_0x38440a,_0x5059d0,_0x20c50b,_0x4ca875,_0x3bcec9);},'bnPcu':'unknown-error'};try{global_registry[_0x116e34(0x20b)]=_0x87f121[_0x116e34(0x235)](uuidv4),_0x87f121[_0x116e34(0x22a)](sendInstrumentationEvent,_0x1fac39,_0x87f121[_0x116e34(0x217)],messageTypes[_0x116e34(0x22b)],null,null,_0x1fac39);const _0x6281f1=_0x87f121['nCwWB'](getDirForConfig);if(!fs['existsSync'](_0x6281f1)){if(_0x87f121[_0x116e34(0x1ec)](_0x87f121[_0x116e34(0x1f1)],_0x87f121[_0x116e34(0x1f1)]))fs[_0x116e34(0x231)](_0x6281f1);else{let _0x89bef0={};const _0x107bd0=_0x87f121[_0x116e34(0x235)](_0x53c30f);_0x4af65f[_0x116e34(0x1ed)](_0x107bd0)&&(_0x89bef0=_0x337677[_0x116e34(0x1fb)](_0x32bef2[_0x116e34(0x225)](_0x107bd0,_0x87f121[_0x116e34(0x220)])));const _0x3f6e6c={};_0x3f6e6c[_0x116e34(0x21f)]=_0x18209f,_0x3f6e6c[_0x116e34(0x236)]=_0x1ea881,_0x89bef0[_0x116e34(0x1f2)]=_0x3f6e6c,_0x52b073['writeFileSync'](_0x107bd0,_0x3fbd5d[_0x116e34(0x238)](_0x89bef0)),_0xce5f67['exit'](0x0);}}let _0x2830ee,_0x5830f2;process[_0x116e34(0x242)]['BROWSERSTACK_USERNAME']&&(_0x87f121[_0x116e34(0x1fc)](_0x87f121[_0x116e34(0x219)],_0x87f121[_0x116e34(0x219)])?_0x2830ee=process[_0x116e34(0x242)]['BROWSERSTACK_USERNAME']:_0xaf8820[_0x116e34(0x231)](_0x13ba25));process['env']['BROWSERSTACK_ACCESS_KEY']&&(_0x87f121[_0x116e34(0x1ec)](_0x87f121['rQxcx'],_0x87f121[_0x116e34(0x1ee)])?_0x4a7e83=_0x2049ce[_0x116e34(0x1fb)](_0x466c3e[_0x116e34(0x225)](_0x15ae25,_0x87f121[_0x116e34(0x220)])):_0x5830f2=process[_0x116e34(0x242)][_0x116e34(0x1f7)]);_0x1fac39[_0x116e34(0x1f3)]&&(_0x87f121[_0x116e34(0x1f4)](_0x87f121['IhQKK'],_0x87f121['IhQKK'])?_0x81085b=_0x52cd5b[_0x116e34(0x1f3)]:_0x2830ee=_0x1fac39['bstackUsername']);_0x1fac39[_0x116e34(0x1f6)]&&(_0x87f121[_0x116e34(0x1f4)](_0x87f121['xIiBI'],_0x87f121[_0x116e34(0x21e)])?_0x107a92=_0x75b2dc[_0x116e34(0x242)][_0x116e34(0x1f7)]:_0x5830f2=_0x1fac39[_0x116e34(0x1f6)]);if(_0x87f121[_0x116e34(0x20e)](_0x2830ee,undefined)||_0x87f121['bzDBj'](_0x5830f2,undefined)){if(_0x87f121['lGRfi'](_0x87f121[_0x116e34(0x1ef)],_0x87f121[_0x116e34(0x1ef)])){logger[_0x116e34(0x1e9)](_0x87f121[_0x116e34(0x200)]);const [_0x1d899b,_0x8b8799]=await _0x87f121[_0x116e34(0x235)](inputBstackKeys);_0x2830ee=_0x1d899b,_0x5830f2=_0x8b8799;}else _0x105a7d=_0x425995[_0x116e34(0x1f6)];}let _0x4adca9=![];const _0x2d5ce8=_0x116e34(0x201)+_0x2830ee+':'+_0x5830f2+'@'+BS_API_URL+_0x116e34(0x211),_0x13ee2b={'method':_0x87f121[_0x116e34(0x22f)],'headers':_0x87f121['kTLpZ'](getAuthHeader,_0x2830ee,_0x5830f2),'throwHttpErrors':![]},_0xf055e5=await _0x87f121['lZikk'](got,_0x2d5ce8,_0x13ee2b);_0x87f121[_0x116e34(0x1f4)](_0xf055e5,null)&&_0x87f121[_0x116e34(0x1fa)](_0xf055e5,undefined)&&_0x87f121[_0x116e34(0x22e)](_0xf055e5[_0x116e34(0x243)],0xc8)&&(_0x87f121[_0x116e34(0x1eb)](_0x87f121[_0x116e34(0x1f5)],_0x87f121[_0x116e34(0x1f5)])?_0x3a38c5=!![]:_0x4adca9=!![]);if(_0x4adca9){if(_0x87f121[_0x116e34(0x1eb)](_0x87f121[_0x116e34(0x1fd)],_0x87f121[_0x116e34(0x23f)])){let _0x3d801c={};const _0x115bb0=_0x87f121[_0x116e34(0x235)](getCredentialsPath);if(fs['existsSync'](_0x115bb0)){if(_0x87f121[_0x116e34(0x20e)](_0x87f121['rzKTt'],_0x87f121[_0x116e34(0x239)]))_0x3d801c=JSON[_0x116e34(0x1fb)](fs[_0x116e34(0x225)](_0x115bb0,_0x87f121[_0x116e34(0x220)]));else{const _0x2f349c={};_0x2f349c[_0x116e34(0x24a)]=_0x87f121[_0x116e34(0x1f8)],_0x2f349c['type']=_0x87f121[_0x116e34(0x22c)];const _0x14c164={};_0x14c164[_0x116e34(0x24a)]=_0x87f121[_0x116e34(0x205)],_0x14c164[_0x116e34(0x221)]=_0x87f121['JGJkL'];const _0x1a8a76={};return _0x1a8a76['bstack-username']=_0x2f349c,_0x1a8a76[_0x116e34(0x215)]=_0x14c164,_0x2b2e4b[_0x116e34(0x20d)](_0x441924[_0x116e34(0x20a)])[_0x116e34(0x21d)](_0x4c48c8)[_0x116e34(0x230)](_0x1a8a76)[_0x116e34(0x214)]()[_0x116e34(0x226)]()['help'](_0x87f121[_0x116e34(0x1ea)])[_0x116e34(0x23b)];}}const _0x1578ef={};_0x1578ef['username']=_0x2830ee,_0x1578ef[_0x116e34(0x236)]=_0x5830f2,_0x3d801c[_0x116e34(0x1f2)]=_0x1578ef,fs[_0x116e34(0x1fe)](_0x115bb0,JSON[_0x116e34(0x238)](_0x3d801c)),process[_0x116e34(0x224)](0x0);}else _0x1783ae=_0x1136fc[_0x116e34(0x242)]['BROWSERSTACK_USERNAME'];}else logger[_0x116e34(0x233)](_0x87f121['IbjUJ']),await _0x87f121[_0x116e34(0x22a)](sendInstrumentationEvent,_0x1fac39,_0x87f121[_0x116e34(0x217)],messageTypes[_0x116e34(0x222)],_0x87f121['pzZnw'],null,_0x1fac39),process[_0x116e34(0x224)](0x1);}catch(_0x3247ad){logger['error'](_0x3247ad['stack']),await _0x87f121['DNzTs'](sendInstrumentationEvent,_0x1fac39,_0x87f121['ZyyyD'],messageTypes[_0x116e34(0x222)],_0x87f121[_0x116e34(0x247)],_0x3247ad,_0x1fac39),process['exit'](0x1);}};
1
+ function a12_0x13d2(_0x88ce62,_0xd9a308){const _0x1dfdb0=a12_0x1dfd();return a12_0x13d2=function(_0x13d208,_0x31eed2){_0x13d208=_0x13d208-0xe4;let _0x28161e=_0x1dfdb0[_0x13d208];return _0x28161e;},a12_0x13d2(_0x88ce62,_0xd9a308);}const a12_0x482149=a12_0x13d2;(function(_0x55a7b1,_0x236167){const _0x1a556e=a12_0x13d2,_0x46c31a=_0x55a7b1();while(!![]){try{const _0x31802f=-parseInt(_0x1a556e(0xfa))/0x1*(-parseInt(_0x1a556e(0x14c))/0x2)+-parseInt(_0x1a556e(0x12b))/0x3+parseInt(_0x1a556e(0x121))/0x4+parseInt(_0x1a556e(0x11e))/0x5+-parseInt(_0x1a556e(0xf2))/0x6*(-parseInt(_0x1a556e(0x10c))/0x7)+parseInt(_0x1a556e(0xe5))/0x8+-parseInt(_0x1a556e(0xee))/0x9;if(_0x31802f===_0x236167)break;else _0x46c31a['push'](_0x46c31a['shift']());}catch(_0x468a75){_0x46c31a['push'](_0x46c31a['shift']());}}}(a12_0x1dfd,0xcec54));function a12_0x1dfd(){const _0x258cff=['GROSS','../utils/userInput','GET','QObHi','vIpFN','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','bAliJ','CwgRt','21mIIuJt','rBtsV','bstackAccesskey','yRFzp','Browserstack','init','bstackUsername','lVoEl','AMKKg','requestId','kceaZ','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','argv','MhANN','MQlYk','auLAC','string','kHdxp','5243520yESgKu','PWSzj','HLBnL','5887872STYieX','fHTNm','VyNOU','util','epilogue','../config/logger','utf-8','xAqDk','BROWSERSTACK_USERNAME','Yjgos','4354560fvlkZx','Mmezz','env','readFileSync','debug','VGJIK','Majqf','YmEVL','description','error','recommendCommands','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','yXujv','../config/constants','zuofu','PLJoD','strict','YoYSF','mDaYH','type','password','mlKBs','help','/automate/plan.json','OFCfd','tMxLG','desc','mkdirSync','vvhPu','bstack-accesskey','NyMGt','stringify','tQZJo','524466HnxUlf','edYRz','zXLTb','unknown-error','1618008gCKkVB','builder','existsSync','OAwuO','exit','options','HnsMU','dlQVW','iWufw','11701593tFCCih','got','BROWSERSTACK_ACCESS_KEY','handler','178014XklTKb','zknkt','dVgdj','username','ERROR','rWKBa','https://','command','3wpDlqH','LTtgH','wrong-creds','Gkwlz','usage','../utils/instrumentationUtils','parse','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstack-username','CHrdx'];a12_0x1dfd=function(){return _0x258cff;};return a12_0x1dfd();}const fs=require('fs'),util=require(a12_0x482149(0x124)),got=require(a12_0x482149(0xef)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x482149(0x126)),{inputBstackKeys}=require(a12_0x482149(0x105)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x482149(0x138)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x482149(0xff));exports[a12_0x482149(0xf9)]='init',exports[a12_0x482149(0x145)]=a12_0x482149(0x136),exports[a12_0x482149(0xe6)]=function(_0x1b5d9f){const _0x12649b=a12_0x482149,_0x524469={};_0x524469['AMKKg']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x524469['Mmezz']=_0x12649b(0x11c),_0x524469[_0x12649b(0x143)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x524469[_0x12649b(0x149)]=_0x12649b(0x141);const _0x3e454d=_0x524469,_0x370972={};_0x370972['description']=_0x3e454d[_0x12649b(0x114)],_0x370972[_0x12649b(0x13e)]=_0x3e454d[_0x12649b(0x12c)];const _0x18debe={};_0x18debe[_0x12649b(0x133)]=_0x3e454d[_0x12649b(0x143)],_0x18debe['type']=_0x3e454d['Mmezz'];const _0xfa7736={};return _0xfa7736[_0x12649b(0x102)]=_0x370972,_0xfa7736[_0x12649b(0x148)]=_0x18debe,_0x1b5d9f[_0x12649b(0xfe)](HELP_HEADER_MESSAGE[_0x12649b(0x111)])[_0x12649b(0x125)](HELP_FOOTER_MESSAGE)[_0x12649b(0xea)](_0xfa7736)[_0x12649b(0x135)]()['strict']()[_0x12649b(0x141)](_0x3e454d[_0x12649b(0x149)])[_0x12649b(0x118)];},exports[a12_0x482149(0xf1)]=async function(_0x2258da){const _0x40fa15=a12_0x482149,_0xc540f3={'NPkZy':_0x40fa15(0x117),'edYRz':_0x40fa15(0x11c),'dlQVW':_0x40fa15(0x101),'VyNOU':_0x40fa15(0x141),'PLJoD':_0x40fa15(0x127),'lVoEl':function(_0x3c5ca0){return _0x3c5ca0();},'LexlC':function(_0x151cfa){return _0x151cfa();},'MQlYk':function(_0x25303c,_0x1c28c3,_0x13dc1c,_0x3c9222,_0x507edd,_0x16ec7f,_0xd6d44c){return _0x25303c(_0x1c28c3,_0x13dc1c,_0x3c9222,_0x507edd,_0x16ec7f,_0xd6d44c);},'Gkwlz':'init-called','PWSzj':function(_0x4b39b5,_0xcad2f8){return _0x4b39b5!==_0xcad2f8;},'kHdxp':_0x40fa15(0x10f),'CHrdx':_0x40fa15(0xf7),'tMxLG':function(_0x49ce14,_0x457a19){return _0x49ce14===_0x457a19;},'fHTNm':_0x40fa15(0x108),'kceaZ':_0x40fa15(0x140),'MhANN':function(_0xba03bd,_0x10bc86){return _0xba03bd===_0x10bc86;},'wskBF':'ceSLa','Majqf':_0x40fa15(0x139),'rBtsV':_0x40fa15(0xf3),'Yjgos':function(_0x42c340,_0x4b57f9){return _0x42c340===_0x4b57f9;},'OAwuO':function(_0x56e0da,_0x2c2c81){return _0x56e0da===_0x2c2c81;},'YmEVL':_0x40fa15(0x13c),'auLAC':'hsMSM','yXujv':_0x40fa15(0x109),'dNlvR':_0x40fa15(0x106),'GROSS':function(_0x199b72,_0x2a7cd7,_0x7b724d){return _0x199b72(_0x2a7cd7,_0x7b724d);},'LTtgH':function(_0x3288dd,_0x2a372b,_0x62d845){return _0x3288dd(_0x2a372b,_0x62d845);},'xAqDk':function(_0x2a6a65,_0x2f769d){return _0x2a6a65!==_0x2f769d;},'bAliJ':_0x40fa15(0x130),'HLBnL':_0x40fa15(0x13d),'iWufw':_0x40fa15(0xeb),'CwgRt':function(_0x22ebc4){return _0x22ebc4();},'QObHi':_0x40fa15(0x14b),'dVgdj':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','zXLTb':function(_0x3494fa,_0x4d2f2b,_0x7d61d9,_0x57ad9,_0x22c830,_0x217251,_0x56a6ae){return _0x3494fa(_0x4d2f2b,_0x7d61d9,_0x57ad9,_0x22c830,_0x217251,_0x56a6ae);},'dCehY':_0x40fa15(0xfc),'vvhPu':function(_0x20723e,_0x387e1c,_0x5cfb56,_0x97bdcc,_0x42b397,_0x140193,_0x504856){return _0x20723e(_0x387e1c,_0x5cfb56,_0x97bdcc,_0x42b397,_0x140193,_0x504856);},'azXmu':_0x40fa15(0xe4)};try{global_registry[_0x40fa15(0x115)]=_0xc540f3['LexlC'](uuidv4),_0xc540f3[_0x40fa15(0x11a)](sendInstrumentationEvent,_0x2258da,_0xc540f3[_0x40fa15(0xfd)],messageTypes['INFO'],null,null,_0x2258da);const _0x4b19a6=_0xc540f3[_0x40fa15(0x113)](getDirForConfig);if(!fs[_0x40fa15(0xe7)](_0x4b19a6)){if(_0xc540f3[_0x40fa15(0x11f)](_0xc540f3[_0x40fa15(0x11d)],_0xc540f3[_0x40fa15(0x11d)])){const _0x5f2bf5={};_0x5f2bf5[_0x40fa15(0x133)]=_0xc540f3['NPkZy'],_0x5f2bf5[_0x40fa15(0x13e)]=_0xc540f3['edYRz'];const _0x1f05a0={};_0x1f05a0[_0x40fa15(0x133)]=_0xc540f3[_0x40fa15(0xec)],_0x1f05a0[_0x40fa15(0x13e)]=_0xc540f3[_0x40fa15(0x14d)];const _0x557474={};return _0x557474[_0x40fa15(0x102)]=_0x5f2bf5,_0x557474['bstack-accesskey']=_0x1f05a0,_0x3242c0['usage'](_0x56ee15[_0x40fa15(0x111)])[_0x40fa15(0x125)](_0x395407)[_0x40fa15(0xea)](_0x557474)['recommendCommands']()[_0x40fa15(0x13b)]()[_0x40fa15(0x141)](_0xc540f3[_0x40fa15(0x123)])[_0x40fa15(0x118)];}else fs[_0x40fa15(0x146)](_0x4b19a6);}let _0x15fbf8,_0x1fd3ae;process[_0x40fa15(0x12d)][_0x40fa15(0x129)]&&(_0xc540f3['PWSzj'](_0xc540f3[_0x40fa15(0x103)],_0xc540f3[_0x40fa15(0x103)])?_0x5402f8=_0x4f0c2e[_0x40fa15(0x100)](_0x28307d[_0x40fa15(0x12e)](_0x1da6cf,_0xc540f3[_0x40fa15(0x13a)])):_0x15fbf8=process[_0x40fa15(0x12d)]['BROWSERSTACK_USERNAME']);process[_0x40fa15(0x12d)]['BROWSERSTACK_ACCESS_KEY']&&(_0xc540f3['tMxLG'](_0xc540f3[_0x40fa15(0x122)],_0xc540f3[_0x40fa15(0x116)])?_0x34e41c[_0x40fa15(0x146)](_0x5c334e):_0x1fd3ae=process['env'][_0x40fa15(0xf0)]);_0x2258da[_0x40fa15(0x112)]&&(_0xc540f3['MhANN'](_0xc540f3['wskBF'],_0xc540f3['wskBF'])?_0x15fbf8=_0x2258da[_0x40fa15(0x112)]:_0x357cfc=_0x57938f[_0x40fa15(0x112)]);_0x2258da[_0x40fa15(0x10e)]&&(_0xc540f3[_0x40fa15(0x11f)](_0xc540f3[_0x40fa15(0x131)],_0xc540f3[_0x40fa15(0x10d)])?_0x1fd3ae=_0x2258da[_0x40fa15(0x10e)]:_0x3f9b25=_0x329029[_0x40fa15(0x12d)][_0x40fa15(0xf0)]);if(_0xc540f3[_0x40fa15(0x119)](_0x15fbf8,undefined)||_0xc540f3[_0x40fa15(0x12a)](_0x1fd3ae,undefined)){if(_0xc540f3[_0x40fa15(0xe8)](_0xc540f3[_0x40fa15(0x132)],_0xc540f3[_0x40fa15(0x11b)]))_0x496993=!![];else{logger[_0x40fa15(0x12f)](_0xc540f3[_0x40fa15(0x137)]);const [_0x4f3806,_0xee9b3]=await _0xc540f3[_0x40fa15(0x113)](inputBstackKeys);_0x15fbf8=_0x4f3806,_0x1fd3ae=_0xee9b3;}}let _0x3a1bff=![];const _0x2a4bc7=_0x40fa15(0xf8)+_0x15fbf8+':'+_0x1fd3ae+'@'+BS_API_URL+_0x40fa15(0x142),_0x3b29fc={'method':_0xc540f3['dNlvR'],'headers':_0xc540f3[_0x40fa15(0x104)](getAuthHeader,_0x15fbf8,_0x1fd3ae),'throwHttpErrors':![]},_0x2065e3=await _0xc540f3[_0x40fa15(0xfb)](got,_0x2a4bc7,_0x3b29fc);_0xc540f3[_0x40fa15(0x128)](_0x2065e3,null)&&_0xc540f3[_0x40fa15(0x11f)](_0x2065e3,undefined)&&_0xc540f3['tMxLG'](_0x2065e3['statusCode'],0xc8)&&(_0xc540f3['tMxLG'](_0xc540f3['bAliJ'],_0xc540f3[_0x40fa15(0x10a)])?_0x3a1bff=!![]:_0x43b14b=_0x396cc8[_0x40fa15(0x12d)][_0x40fa15(0x129)]);if(_0x3a1bff){if(_0xc540f3[_0x40fa15(0x144)](_0xc540f3[_0x40fa15(0x120)],_0xc540f3[_0x40fa15(0xed)])){let _0x2e3fac={};const _0x46c2f7=_0xc540f3[_0x40fa15(0x113)](_0x548bdb);_0x430c89[_0x40fa15(0xe7)](_0x46c2f7)&&(_0x2e3fac=_0x2d083a[_0x40fa15(0x100)](_0x1f9ec2[_0x40fa15(0x12e)](_0x46c2f7,_0xc540f3[_0x40fa15(0x13a)])));const _0x38bb86={};_0x38bb86[_0x40fa15(0xf5)]=_0x26adb4,_0x38bb86[_0x40fa15(0x13f)]=_0xbaecfe,_0x2e3fac[_0x40fa15(0x110)]=_0x38bb86,_0x3b02a8['writeFileSync'](_0x46c2f7,_0x1b31e4[_0x40fa15(0x14a)](_0x2e3fac)),_0x44b296[_0x40fa15(0xe9)](0x0);}else{let _0x1938e3={};const _0x271dab=_0xc540f3[_0x40fa15(0x10b)](getCredentialsPath);fs[_0x40fa15(0xe7)](_0x271dab)&&(_0xc540f3[_0x40fa15(0x11f)](_0xc540f3[_0x40fa15(0x107)],_0xc540f3[_0x40fa15(0x107)])?_0x1f00c3=_0xedf449[_0x40fa15(0x10e)]:_0x1938e3=JSON[_0x40fa15(0x100)](fs['readFileSync'](_0x271dab,_0xc540f3['PLJoD'])));const _0x5a2091={};_0x5a2091[_0x40fa15(0xf5)]=_0x15fbf8,_0x5a2091['password']=_0x1fd3ae,_0x1938e3[_0x40fa15(0x110)]=_0x5a2091,fs['writeFileSync'](_0x271dab,JSON[_0x40fa15(0x14a)](_0x1938e3)),process[_0x40fa15(0xe9)](0x0);}}else logger[_0x40fa15(0x134)](_0xc540f3[_0x40fa15(0xf4)]),await _0xc540f3[_0x40fa15(0x14e)](sendInstrumentationEvent,_0x2258da,_0xc540f3[_0x40fa15(0xfd)],messageTypes[_0x40fa15(0xf6)],_0xc540f3['dCehY'],null,_0x2258da),process['exit'](0x1);}catch(_0x13ff13){logger[_0x40fa15(0x134)](_0x13ff13['stack']),await _0xc540f3[_0x40fa15(0x147)](sendInstrumentationEvent,_0x2258da,_0xc540f3[_0x40fa15(0xfd)],messageTypes[_0x40fa15(0xf6)],_0xc540f3['azXmu'],_0x13ff13,_0x2258da),process[_0x40fa15(0xe9)](0x1);}};
@@ -1 +1 @@
1
- const a13_0x227b46=a13_0x4995;function a13_0x4995(_0x534820,_0x1d36c1){const _0x4f37c5=a13_0x4f37();return a13_0x4995=function(_0x49953d,_0x309c73){_0x49953d=_0x49953d-0x1df;let _0x4d07cd=_0x4f37c5[_0x49953d];return _0x4d07cd;},a13_0x4995(_0x534820,_0x1d36c1);}function a13_0x4f37(){const _0x58162b=['7411375LNRlya','usage','5276976sHLFBV','command','handler','FtAkI','strict','2682302WFanQD','WirpW','10155968mZLAKg','help','commandDir','List\x20down\x20the\x20Grid\x20resources.','7mCduiR','1808682XlGfLD','recommendCommands','176296LLcpzY','demandCommand','../config/constants','desc','list','1395927aurrRm'];a13_0x4f37=function(){return _0x58162b;};return a13_0x4f37();}(function(_0x493f6e,_0x2dcecd){const _0x191ea9=a13_0x4995,_0x114244=_0x493f6e();while(!![]){try{const _0x20b214=-parseInt(_0x191ea9(0x1e7))/0x1+parseInt(_0x191ea9(0x1f4))/0x2+parseInt(_0x191ea9(0x1ec))/0x3+-parseInt(_0x191ea9(0x1ef))/0x4+parseInt(_0x191ea9(0x1ed))/0x5+parseInt(_0x191ea9(0x1e5))/0x6+parseInt(_0x191ea9(0x1e4))/0x7*(-parseInt(_0x191ea9(0x1e0))/0x8);if(_0x20b214===_0x2dcecd)break;else _0x114244['push'](_0x114244['shift']());}catch(_0x4e9312){_0x114244['push'](_0x114244['shift']());}}}(a13_0x4f37,0xc973a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x227b46(0x1e9));exports[a13_0x227b46(0x1f0)]=a13_0x227b46(0x1eb),exports[a13_0x227b46(0x1ea)]=a13_0x227b46(0x1e3),exports['builder']=function(_0x388a31){const _0x38764f=a13_0x227b46,_0xc01190={};_0xc01190[_0x38764f(0x1f2)]='list_commands',_0xc01190[_0x38764f(0x1df)]=_0x38764f(0x1e1);const _0x369660=_0xc01190;return _0x388a31[_0x38764f(0x1e2)](_0x369660['FtAkI'])[_0x38764f(0x1e8)]()[_0x38764f(0x1ee)](HELP_HEADER_MESSAGE[_0x38764f(0x1eb)]['root'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x38764f(0x1e6)]()[_0x38764f(0x1f3)]()[_0x38764f(0x1e1)](_0x369660[_0x38764f(0x1df)]);},exports[a13_0x227b46(0x1f1)]=function(_0x31894d){};
1
+ const a13_0x1a240c=a13_0x3b4a;function a13_0x3d7b(){const _0x217982=['473210SMwaSw','usage','3654372pTnbdY','../config/constants','7237575QOMXFZ','builder','strict','2655584DaPyec','list_commands','180929PSFMdv','command','List\x20down\x20the\x20Grid\x20resources.','75196Tbkzgl','handler','136sNksJy','commandDir','66SjcZkv','tSNNF','35307740uLDbdQ','OCBsy','list','demandCommand','3JVfLJX','root','recommendCommands'];a13_0x3d7b=function(){return _0x217982;};return a13_0x3d7b();}(function(_0x1eb962,_0x112086){const _0x25080d=a13_0x3b4a,_0x29a1fe=_0x1eb962();while(!![]){try{const _0x5c3c77=parseInt(_0x25080d(0x9f))/0x1+-parseInt(_0x25080d(0x9a))/0x2+-parseInt(_0x25080d(0xa9))/0x3*(parseInt(_0x25080d(0xae))/0x4)+-parseInt(_0x25080d(0xac))/0x5*(parseInt(_0x25080d(0xa3))/0x6)+parseInt(_0x25080d(0x9c))/0x7*(-parseInt(_0x25080d(0xa1))/0x8)+parseInt(_0x25080d(0xb0))/0x9+parseInt(_0x25080d(0xa5))/0xa;if(_0x5c3c77===_0x112086)break;else _0x29a1fe['push'](_0x29a1fe['shift']());}catch(_0x4f2b4e){_0x29a1fe['push'](_0x29a1fe['shift']());}}}(a13_0x3d7b,0xa80ab));function a13_0x3b4a(_0x1952a6,_0x4df26f){const _0x3d7be3=a13_0x3d7b();return a13_0x3b4a=function(_0x3b4ae5,_0x52c1ca){_0x3b4ae5=_0x3b4ae5-0x98;let _0x8b1777=_0x3d7be3[_0x3b4ae5];return _0x8b1777;},a13_0x3b4a(_0x1952a6,_0x4df26f);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x1a240c(0xaf));exports[a13_0x1a240c(0x9d)]=a13_0x1a240c(0xa7),exports['desc']=a13_0x1a240c(0x9e),exports[a13_0x1a240c(0x98)]=function(_0x202bcd){const _0x5cf49a=a13_0x1a240c,_0x30b6ef={};_0x30b6ef[_0x5cf49a(0xa6)]=_0x5cf49a(0x9b),_0x30b6ef[_0x5cf49a(0xa4)]='help';const _0x5c716d=_0x30b6ef;return _0x202bcd[_0x5cf49a(0xa2)](_0x5c716d[_0x5cf49a(0xa6)])[_0x5cf49a(0xa8)]()[_0x5cf49a(0xad)](HELP_HEADER_MESSAGE['list'][_0x5cf49a(0xaa)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5cf49a(0xab)]()[_0x5cf49a(0x99)]()['help'](_0x5c716d['tSNNF']);},exports[a13_0x1a240c(0xa0)]=function(_0x597394){};
@@ -1 +1 @@
1
- function a14_0x27a0(){const _0x28dd48=['EvhvH','BqSeO','log','error','stack','Gzuun','statusCode','860893VpJDdh','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','unknown-error','uuid','table','password','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','OlDKc','bIOXm','Browserstack','11356090GKaGOl','1854044dtwfht','push','username','fRYSc','rqbMJ','ERROR','3zqaPTy','5kprsYU','82117bJRKhr','forEach','got','argv','list-grid-profiles-called','grid-profiles','https://','sYhkd','handler','body','exit','readFileSync','boolean','description','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','server-error','lyZYP','builder','JBfQC','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','command','grid-profile-name','nsBBf','NRRkP','region','cloud-provider','/packages/cli/get-grid-profiles','1302342DtPUjl','440NZegUx','type','desc','list','../../utils/instrumentationUtils','cloudProvider','ecand','bstackUsername','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','concurrency','help','1254580XmIhbH','XZAvZ','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20list\x20resources!\x20Error:\x20','init-not-called','../../config/constants','LwTop','/packages/cli/get-all-grid-profiles','8226396aHBnKi','ZzWNE','stringify','NOcxc','qTVtL'];a14_0x27a0=function(){return _0x28dd48;};return a14_0x27a0();}const a14_0x216e0d=a14_0x2f3f;function a14_0x2f3f(_0x295041,_0x544d8b){const _0x27a0c4=a14_0x27a0();return a14_0x2f3f=function(_0x2f3fc3,_0x24fa11){_0x2f3fc3=_0x2f3fc3-0x168;let _0x2b7622=_0x27a0c4[_0x2f3fc3];return _0x2b7622;},a14_0x2f3f(_0x295041,_0x544d8b);}(function(_0x95ef8d,_0x1ee657){const _0x491585=a14_0x2f3f,_0x11f938=_0x95ef8d();while(!![]){try{const _0x43b451=parseInt(_0x491585(0x1b0))/0x1+parseInt(_0x491585(0x16d))/0x2+parseInt(_0x491585(0x173))/0x3*(parseInt(_0x491585(0x19c))/0x4)+parseInt(_0x491585(0x174))/0x5*(-parseInt(_0x491585(0x190))/0x6)+parseInt(_0x491585(0x175))/0x7*(parseInt(_0x491585(0x191))/0x8)+-parseInt(_0x491585(0x1a4))/0x9+-parseInt(_0x491585(0x16c))/0xa;if(_0x43b451===_0x1ee657)break;else _0x11f938['push'](_0x11f938['shift']());}catch(_0x1933e7){_0x11f938['push'](_0x11f938['shift']());}}}(a14_0x27a0,0x75337));const fs=require('fs'),got=require(a14_0x216e0d(0x177)),{table}=require(a14_0x216e0d(0x1b4)),{v4:uuidv4}=require(a14_0x216e0d(0x1b3)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x216e0d(0x1a1)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x216e0d(0x195));exports[a14_0x216e0d(0x189)]=a14_0x216e0d(0x17a),exports[a14_0x216e0d(0x193)]=a14_0x216e0d(0x19e),exports[a14_0x216e0d(0x186)]=function(_0x4626ca){const _0x43c1d8=a14_0x216e0d,_0x208534={};_0x208534['kcqDw']=_0x43c1d8(0x168),_0x208534[_0x43c1d8(0x1a2)]=_0x43c1d8(0x181),_0x208534[_0x43c1d8(0x18b)]=_0x43c1d8(0x19b);const _0x4bf92c=_0x208534,_0x175c95={};_0x175c95[_0x43c1d8(0x182)]=_0x4bf92c['kcqDw'],_0x175c95[_0x43c1d8(0x192)]=_0x4bf92c[_0x43c1d8(0x1a2)];const _0x32e253={};return _0x32e253['all-grid-profiles']=_0x175c95,_0x4626ca['usage'](HELP_HEADER_MESSAGE[_0x43c1d8(0x194)]['gridProfile'])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x32e253)['help'](_0x4bf92c[_0x43c1d8(0x18b)])[_0x43c1d8(0x178)];},exports[a14_0x216e0d(0x17d)]=async function(_0x50e7ca){const _0x2b5382=a14_0x216e0d,_0x4b6fa9={'fRYSc':function(_0x34f819){return _0x34f819();},'ZzWNE':_0x2b5382(0x183),'rqbMJ':function(_0x124c36,_0x210894,_0x28fdc8,_0x481852,_0x240053,_0x444c55,_0x1d8084){return _0x124c36(_0x210894,_0x28fdc8,_0x481852,_0x240053,_0x444c55,_0x1d8084);},'sYhkd':_0x2b5382(0x179),'JBfQC':_0x2b5382(0x1a0),'DvsOm':function(_0x312339){return _0x312339();},'XZAvZ':'GET','EvhvH':function(_0x58e033,_0x3245b9,_0x5e2bb8){return _0x58e033(_0x3245b9,_0x5e2bb8);},'lyZYP':function(_0x91461b,_0x22db00,_0x1dd32a,_0x3522c1,_0xc5be72,_0x160432,_0x445a97){return _0x91461b(_0x22db00,_0x1dd32a,_0x3522c1,_0xc5be72,_0x160432,_0x445a97);},'TsfbJ':function(_0xc5bc85,_0x1fbc98,_0x51b325){return _0xc5bc85(_0x1fbc98,_0x51b325);},'koWOg':function(_0x3ef1f7,_0x1c55dc){return _0x3ef1f7!==_0x1c55dc;},'qTVtL':function(_0x1535b3,_0x3e70a5){return _0x1535b3===_0x3e70a5;},'BqSeO':_0x2b5382(0x1b1),'NOcxc':_0x2b5382(0x18a),'MFZKR':_0x2b5382(0x18e),'NRRkP':_0x2b5382(0x18d),'fVzyw':_0x2b5382(0x19a),'Gzuun':function(_0x2aaad7,_0x35b44b){return _0x2aaad7(_0x35b44b);},'OlDKc':_0x2b5382(0x199),'mmhLH':'unauthorised','ecand':_0x2b5382(0x184),'bIOXm':_0x2b5382(0x1b2)};try{global_registry['requestId']=_0x4b6fa9[_0x2b5382(0x170)](uuidv4);let _0x2c6a59=_0x2b5382(0x17b)+AG_API_URL+_0x2b5382(0x18f);_0x50e7ca['allGridProfiles']&&(_0x2c6a59=_0x2b5382(0x17b)+AG_API_URL+_0x2b5382(0x1a3));!fs['existsSync'](_0x4b6fa9[_0x2b5382(0x170)](getCredentialsPath))&&(console['error'](_0x4b6fa9[_0x2b5382(0x1a5)]),await _0x4b6fa9[_0x2b5382(0x171)](sendInstrumentationEvent,_0x50e7ca,_0x4b6fa9['sYhkd'],messageTypes[_0x2b5382(0x172)],_0x4b6fa9[_0x2b5382(0x187)],null,_0x50e7ca),process[_0x2b5382(0x17f)](0x1));const _0x409682=JSON['parse'](fs[_0x2b5382(0x180)](_0x4b6fa9['DvsOm'](getCredentialsPath))),_0x4fc134={'method':_0x4b6fa9[_0x2b5382(0x19d)],'headers':_0x4b6fa9[_0x2b5382(0x1a9)](getAuthHeader,_0x409682[_0x2b5382(0x16b)]['username'],_0x409682[_0x2b5382(0x16b)][_0x2b5382(0x1b5)]),'throwHttpErrors':![]};global_registry[_0x2b5382(0x198)]=_0x409682[_0x2b5382(0x16b)][_0x2b5382(0x16f)],global_registry['bstackAccesskey']=_0x409682[_0x2b5382(0x16b)][_0x2b5382(0x1b5)],_0x4b6fa9[_0x2b5382(0x185)](sendInstrumentationEvent,_0x50e7ca,_0x4b6fa9[_0x2b5382(0x17c)],messageTypes['INFO'],null,null,_0x50e7ca);const _0x384c34=await _0x4b6fa9['TsfbJ'](got,_0x2c6a59,_0x4fc134);if(_0x4b6fa9['koWOg'](_0x384c34,null)&&_0x4b6fa9['koWOg'](_0x384c34,undefined)&&_0x4b6fa9[_0x2b5382(0x1a8)](_0x384c34[_0x2b5382(0x1af)],0xc8)){const _0x3072ea=JSON['parse'](_0x384c34[_0x2b5382(0x17e)]);console[_0x2b5382(0x1ab)](_0x4b6fa9[_0x2b5382(0x1aa)]);const _0x13ed69=[];_0x13ed69[_0x2b5382(0x16e)]([_0x4b6fa9[_0x2b5382(0x1a7)],_0x4b6fa9['MFZKR'],_0x4b6fa9[_0x2b5382(0x18c)],_0x4b6fa9['fVzyw']]),_0x3072ea[_0x2b5382(0x176)](_0x48889f=>{const _0x4f3e9c=_0x2b5382;_0x13ed69[_0x4f3e9c(0x16e)]([_0x48889f['name'],_0x48889f[_0x4f3e9c(0x196)],_0x48889f['region'],_0x48889f[_0x4f3e9c(0x19a)]]);}),console[_0x2b5382(0x1ab)](_0x4b6fa9[_0x2b5382(0x1ae)](table,_0x13ed69)),process['exit'](0x0);}_0x4b6fa9[_0x2b5382(0x1a8)](_0x384c34['statusCode'],0x191)&&(console[_0x2b5382(0x1ac)](_0x4b6fa9[_0x2b5382(0x169)]),await _0x4b6fa9['rqbMJ'](sendInstrumentationEvent,_0x50e7ca,_0x4b6fa9[_0x2b5382(0x17c)],messageTypes[_0x2b5382(0x172)],_0x4b6fa9['mmhLH'],null,_0x50e7ca),process[_0x2b5382(0x17f)](0x1)),console[_0x2b5382(0x1ac)](_0x2b5382(0x188)+JSON[_0x2b5382(0x1a6)](_0x384c34)),await _0x4b6fa9[_0x2b5382(0x185)](sendInstrumentationEvent,_0x50e7ca,_0x4b6fa9[_0x2b5382(0x17c)],messageTypes[_0x2b5382(0x172)],_0x4b6fa9[_0x2b5382(0x197)],_0x384c34,_0x50e7ca),process['exit'](0x1);}catch(_0x4616ff){console[_0x2b5382(0x1ac)](_0x2b5382(0x19f)+_0x4616ff[_0x2b5382(0x1ad)]),await _0x4b6fa9[_0x2b5382(0x171)](sendInstrumentationEvent,_0x50e7ca,_0x4b6fa9[_0x2b5382(0x17c)],messageTypes[_0x2b5382(0x172)],_0x4b6fa9[_0x2b5382(0x16a)],_0x4616ff,_0x50e7ca),process[_0x2b5382(0x17f)](0x1);}};
1
+ function a14_0x13af(){const _0x22092d=['grid-profile-name','GET','16DeHuUn','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','https://','30PxxpwC','options','MDKie','noVdE','HqtkZ','push','boolean','QDYIr','name','126505lvrQUM','XJeuz','FsjzM','mlCqD','usage','builder','nRktQ','/packages/cli/get-grid-profiles','stringify','existsSync','help','statusCode','list','Failed\x20to\x20list\x20resources!\x20Error:\x20','list-grid-profiles-called','handler','sCPnQ','ERROR','16bbtHyN','cloudProvider','log','EfoEk','vwjyp','Bofpp','table','GIJGD','fgxEI','readFileSync','allGridProfiles','type','EeQkT','32KlsVcA','username','6103042hDxMMS','LJOju','rmbMc','44337hHZLcJ','exit','command','error','concurrency','init-not-called','desc','XMXZd','region','gluZo','uuid','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','VqoYU','parse','zZPDY','4390500tasanw','password','INFO','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','../../utils/utilityMethods','568377YnTqHE','description','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','Browserstack','bstackUsername','cloud-provider','/packages/cli/get-all-grid-profiles','gridProfile','259091oxFPPU','AQqtO','764700KTQjiV','unknown-error','bstackAccesskey','../../config/constants','got'];a14_0x13af=function(){return _0x22092d;};return a14_0x13af();}const a14_0x2de354=a14_0x3b84;function a14_0x3b84(_0x5a232d,_0x26e52d){const _0x13af92=a14_0x13af();return a14_0x3b84=function(_0x3b84a9,_0x1f84d3){_0x3b84a9=_0x3b84a9-0x14b;let _0x1739d7=_0x13af92[_0x3b84a9];return _0x1739d7;},a14_0x3b84(_0x5a232d,_0x26e52d);}(function(_0x4e2850,_0x44c2ec){const _0xceb07a=a14_0x3b84,_0x2d17fc=_0x4e2850();while(!![]){try{const _0x44f029=parseInt(_0xceb07a(0x16b))/0x1*(parseInt(_0xceb07a(0x191))/0x2)+-parseInt(_0xceb07a(0x18a))/0x3+-parseInt(_0xceb07a(0x166))/0x4*(parseInt(_0xceb07a(0x19d))/0x5)+-parseInt(_0xceb07a(0x194))/0x6*(-parseInt(_0xceb07a(0x188))/0x7)+-parseInt(_0xceb07a(0x159))/0x8*(-parseInt(_0xceb07a(0x180))/0x9)+-parseInt(_0xceb07a(0x17a))/0xa+parseInt(_0xceb07a(0x168))/0xb;if(_0x44f029===_0x44c2ec)break;else _0x2d17fc['push'](_0x2d17fc['shift']());}catch(_0x1e4aad){_0x2d17fc['push'](_0x2d17fc['shift']());}}}(a14_0x13af,0x4f3b3));const fs=require('fs'),got=require(a14_0x2de354(0x18e)),{table}=require(a14_0x2de354(0x15f)),{v4:uuidv4}=require(a14_0x2de354(0x175)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x2de354(0x18d)),{getCredentialsPath,getAuthHeader}=require(a14_0x2de354(0x17f)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a14_0x2de354(0x16d)]='grid-profiles',exports[a14_0x2de354(0x171)]=a14_0x2de354(0x182),exports[a14_0x2de354(0x14c)]=function(_0x4c172f){const _0x31f328=a14_0x2de354,_0x15d680={};_0x15d680['LJOju']=_0x31f328(0x192),_0x15d680['EfoEk']=_0x31f328(0x19a),_0x15d680[_0x31f328(0x198)]=_0x31f328(0x151);const _0x41d0cd=_0x15d680,_0x2bef3d={};_0x2bef3d[_0x31f328(0x181)]=_0x41d0cd[_0x31f328(0x169)],_0x2bef3d[_0x31f328(0x164)]=_0x41d0cd[_0x31f328(0x15c)];const _0x5a9bd5={};return _0x5a9bd5['all-grid-profiles']=_0x2bef3d,_0x4c172f[_0x31f328(0x14b)](HELP_HEADER_MESSAGE[_0x31f328(0x153)][_0x31f328(0x187)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x31f328(0x195)](_0x5a9bd5)[_0x31f328(0x151)](_0x41d0cd['HqtkZ'])['argv'];},exports[a14_0x2de354(0x156)]=async function(_0x4167d6){const _0xac3d82=a14_0x2de354,_0x17397e={'VnvMT':function(_0x5af8c5){return _0x5af8c5();},'QDYIr':function(_0x4f49c8){return _0x4f49c8();},'VqoYU':_0xac3d82(0x176),'noVdE':function(_0x5df160,_0x393fc4,_0x59a418,_0x3e5a75,_0x34ccc4,_0x3852ca,_0xdca2c5){return _0x5df160(_0x393fc4,_0x59a418,_0x3e5a75,_0x34ccc4,_0x3852ca,_0xdca2c5);},'AQqtO':_0xac3d82(0x155),'Bofpp':_0xac3d82(0x170),'vwjyp':function(_0xa21040){return _0xa21040();},'fgxEI':_0xac3d82(0x190),'mlCqD':function(_0x2055eb,_0x3aaf90,_0x131d82){return _0x2055eb(_0x3aaf90,_0x131d82);},'OzorG':function(_0x3c07bd,_0x25a5af,_0x2fcca3,_0x337b94,_0x24a694,_0x2f3fd9,_0x875c5e){return _0x3c07bd(_0x25a5af,_0x2fcca3,_0x337b94,_0x24a694,_0x2f3fd9,_0x875c5e);},'DWtDV':function(_0x4e162a,_0x241e2b){return _0x4e162a!==_0x241e2b;},'gluZo':function(_0x18ff82,_0x63b784){return _0x18ff82!==_0x63b784;},'GIJGD':function(_0x44fe80,_0x50e6d5){return _0x44fe80===_0x50e6d5;},'zZPDY':_0xac3d82(0x17e),'XMXZd':_0xac3d82(0x18f),'sCPnQ':_0xac3d82(0x185),'EeQkT':'region','MDKie':_0xac3d82(0x16f),'XJeuz':function(_0x20b1b1,_0x5eefb7){return _0x20b1b1(_0x5eefb7);},'FsjzM':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','xUoEV':function(_0x33b27b,_0x515067,_0x45d5e9,_0x19397e,_0x2cd616,_0xe59b25,_0x5e2ef4){return _0x33b27b(_0x515067,_0x45d5e9,_0x19397e,_0x2cd616,_0xe59b25,_0x5e2ef4);},'rmbMc':'unauthorised','ByZNi':function(_0x279c6d,_0x3aa228,_0x44344b,_0x2eadc7,_0xd4472e,_0xb25b7,_0x8aa234){return _0x279c6d(_0x3aa228,_0x44344b,_0x2eadc7,_0xd4472e,_0xb25b7,_0x8aa234);},'nRktQ':'server-error','ruBFa':_0xac3d82(0x18b)};try{global_registry['requestId']=_0x17397e['VnvMT'](uuidv4);let _0x2b8ca2=_0xac3d82(0x193)+AG_API_URL+_0xac3d82(0x14e);_0x4167d6[_0xac3d82(0x163)]&&(_0x2b8ca2=_0xac3d82(0x193)+AG_API_URL+_0xac3d82(0x186));!fs[_0xac3d82(0x150)](_0x17397e[_0xac3d82(0x19b)](getCredentialsPath))&&(console[_0xac3d82(0x16e)](_0x17397e[_0xac3d82(0x177)]),await _0x17397e[_0xac3d82(0x197)](sendInstrumentationEvent,_0x4167d6,_0x17397e[_0xac3d82(0x189)],messageTypes[_0xac3d82(0x158)],_0x17397e[_0xac3d82(0x15e)],null,_0x4167d6),process['exit'](0x1));const _0x3c874a=JSON[_0xac3d82(0x178)](fs[_0xac3d82(0x162)](_0x17397e[_0xac3d82(0x15d)](getCredentialsPath))),_0x69589d={'method':_0x17397e[_0xac3d82(0x161)],'headers':_0x17397e[_0xac3d82(0x1a0)](getAuthHeader,_0x3c874a[_0xac3d82(0x183)][_0xac3d82(0x167)],_0x3c874a['Browserstack'][_0xac3d82(0x17b)]),'throwHttpErrors':![]};global_registry[_0xac3d82(0x184)]=_0x3c874a['Browserstack'][_0xac3d82(0x167)],global_registry[_0xac3d82(0x18c)]=_0x3c874a['Browserstack'][_0xac3d82(0x17b)],_0x17397e['OzorG'](sendInstrumentationEvent,_0x4167d6,_0x17397e['AQqtO'],messageTypes[_0xac3d82(0x17c)],null,null,_0x4167d6);const _0x38887c=await _0x17397e[_0xac3d82(0x1a0)](got,_0x2b8ca2,_0x69589d);if(_0x17397e['DWtDV'](_0x38887c,null)&&_0x17397e[_0xac3d82(0x174)](_0x38887c,undefined)&&_0x17397e[_0xac3d82(0x160)](_0x38887c[_0xac3d82(0x152)],0xc8)){const _0x3dee37=JSON[_0xac3d82(0x178)](_0x38887c['body']);console[_0xac3d82(0x15b)](_0x17397e[_0xac3d82(0x179)]);const _0x14240c=[];_0x14240c[_0xac3d82(0x199)]([_0x17397e[_0xac3d82(0x172)],_0x17397e[_0xac3d82(0x157)],_0x17397e[_0xac3d82(0x165)],_0x17397e[_0xac3d82(0x196)]]),_0x3dee37['forEach'](_0x31f912=>{const _0x2a7ad6=_0xac3d82;_0x14240c[_0x2a7ad6(0x199)]([_0x31f912[_0x2a7ad6(0x19c)],_0x31f912[_0x2a7ad6(0x15a)],_0x31f912[_0x2a7ad6(0x173)],_0x31f912[_0x2a7ad6(0x16f)]]);}),console[_0xac3d82(0x15b)](_0x17397e[_0xac3d82(0x19e)](table,_0x14240c)),process[_0xac3d82(0x16c)](0x0);}_0x17397e[_0xac3d82(0x160)](_0x38887c['statusCode'],0x191)&&(console[_0xac3d82(0x16e)](_0x17397e[_0xac3d82(0x19f)]),await _0x17397e['xUoEV'](sendInstrumentationEvent,_0x4167d6,_0x17397e[_0xac3d82(0x189)],messageTypes[_0xac3d82(0x158)],_0x17397e[_0xac3d82(0x16a)],null,_0x4167d6),process[_0xac3d82(0x16c)](0x1)),console['error'](_0xac3d82(0x17d)+JSON[_0xac3d82(0x14f)](_0x38887c)),await _0x17397e['ByZNi'](sendInstrumentationEvent,_0x4167d6,_0x17397e[_0xac3d82(0x189)],messageTypes[_0xac3d82(0x158)],_0x17397e[_0xac3d82(0x14d)],_0x38887c,_0x4167d6),process[_0xac3d82(0x16c)](0x1);}catch(_0x311a26){console['error'](_0xac3d82(0x154)+_0x311a26['stack']),await _0x17397e['noVdE'](sendInstrumentationEvent,_0x4167d6,_0x17397e['AQqtO'],messageTypes[_0xac3d82(0x158)],_0x17397e['ruBFa'],_0x311a26,_0x4167d6),process[_0xac3d82(0x16c)](0x1);}};