browserstack-node-sdk 1.50.10 → 1.50.11

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 (186) 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/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/nightwatch/command.js +1 -1
  79. package/src/bin/playwright/accessibility-helper.js +1 -1
  80. package/src/bin/playwright/command.js +1 -1
  81. package/src/bin/playwright/globalSetup.js +1 -1
  82. package/src/bin/playwright/mock-process.js +1 -1
  83. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  84. package/src/bin/playwright/patches.js +1 -1
  85. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  86. package/src/bin/playwright/reporter/reporter.js +1 -1
  87. package/src/bin/playwright/reporter/test-details.js +1 -1
  88. package/src/bin/playwright/sessionDetails.js +1 -1
  89. package/src/bin/runner.js +1 -1
  90. package/src/bin/setup.js +1 -1
  91. package/src/bin/test-runner/index.js +1 -1
  92. package/src/bin/test-runner/runTest.js +1 -1
  93. package/src/bin/test-runner/testWorker.js +1 -1
  94. package/src/bin/utils/apiUtilityMethods.js +1 -1
  95. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  96. package/src/bin/utils/constants.js +1 -1
  97. package/src/bin/utils/log4jsAppender.js +1 -1
  98. package/src/bin/utils/logPatcher.js +1 -1
  99. package/src/bin/utils/logReportingAPI.js +1 -1
  100. package/src/bin/utils/playwright-patcher.js +1 -1
  101. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  102. package/src/bin/utils/sharedUtils.js +1 -1
  103. package/src/bin/v2/TestInfo.js +1 -1
  104. package/src/bin/v2/browserstackCLI.js +1 -1
  105. package/src/bin/v2/cliUtils.js +1 -1
  106. package/src/bin/v2/customTagManager.js +1 -1
  107. package/src/bin/v2/eventDispatcher.js +1 -1
  108. package/src/bin/v2/framework/automationFramework.js +1 -1
  109. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  110. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  111. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  112. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  114. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  115. package/src/bin/v2/framework/testFramework.js +1 -1
  116. package/src/bin/v2/grpcClient.js +1 -1
  117. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  119. package/src/bin/v2/instances/trackedContext.js +1 -1
  120. package/src/bin/v2/instances/trackedInstance.js +1 -1
  121. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  122. package/src/bin/v2/modules/baseModule.js +1 -1
  123. package/src/bin/v2/modules/loadTestModule.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/v2/utils/jest-utils.js +1 -1
  133. package/src/bin/vanilla-js/command.js +1 -1
  134. package/src/browserStackSdk.js +1 -1
  135. package/src/helpers/BrowserStackSetup.js +1 -1
  136. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  137. package/src/helpers/accessibility-automation/constants.js +1 -1
  138. package/src/helpers/accessibility-automation/helper.js +1 -1
  139. package/src/helpers/accessibility-automation/scripts.js +1 -1
  140. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  141. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  142. package/src/helpers/ats/constants.js +1 -1
  143. package/src/helpers/ats/helper.js +1 -1
  144. package/src/helpers/capsMapping.js +1 -1
  145. package/src/helpers/central-scanner/constants.js +1 -1
  146. package/src/helpers/central-scanner/helpers.js +1 -1
  147. package/src/helpers/classLogger.js +1 -1
  148. package/src/helpers/globals.js +1 -1
  149. package/src/helpers/helper.js +1 -1
  150. package/src/helpers/logger.js +1 -1
  151. package/src/helpers/metadata.js +1 -1
  152. package/src/helpers/patchHelper.js +1 -1
  153. package/src/helpers/patchHelpers.js +1 -1
  154. package/src/helpers/percy/Percy.js +1 -1
  155. package/src/helpers/percy/PercyBinary.js +1 -1
  156. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  157. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  158. package/src/helpers/percy/PercySDK.js +1 -1
  159. package/src/helpers/percy/index.js +1 -1
  160. package/src/helpers/percy/utils.js +1 -1
  161. package/src/helpers/performance/constants.js +1 -1
  162. package/src/helpers/performance/performance-tester.js +1 -1
  163. package/src/helpers/playwright-helper.js +1 -1
  164. package/src/helpers/processHelper.js +1 -1
  165. package/src/helpers/request-spy.js +1 -1
  166. package/src/helpers/setKeepAlive.js +1 -1
  167. package/src/helpers/test-observability/constants.js +1 -1
  168. package/src/helpers/test-observability/error-handler.js +1 -1
  169. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  170. package/src/helpers/test-observability/sessionHandler.js +1 -1
  171. package/src/helpers/test-observability/utils.js +1 -1
  172. package/src/helpers/test-orchestration/constants.js +1 -1
  173. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  174. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  175. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  176. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  177. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  178. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  179. package/src/helpers/testhub/constants.js +1 -1
  180. package/src/helpers/testhub/testhubHandler.js +1 -1
  181. package/src/helpers/testhub/utils.js +1 -1
  182. package/src/helpers/timeoutPromise.js +1 -1
  183. package/src/helpers/utilities.js +1 -1
  184. package/src/helpers/w3cMapping.js +1 -1
  185. package/src/hubAllocationMethods.js +1 -1
  186. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x4354c7=a9_0x171b;(function(_0x2e1d62,_0x4b7259){const _0x1d4129=a9_0x171b,_0x27d17f=_0x2e1d62();while(!![]){try{const _0x314040=-parseInt(_0x1d4129(0x104))/0x1*(parseInt(_0x1d4129(0x1b6))/0x2)+-parseInt(_0x1d4129(0x224))/0x3+parseInt(_0x1d4129(0x257))/0x4*(-parseInt(_0x1d4129(0x1e6))/0x5)+-parseInt(_0x1d4129(0x23a))/0x6+parseInt(_0x1d4129(0x118))/0x7+-parseInt(_0x1d4129(0x2c4))/0x8+parseInt(_0x1d4129(0x295))/0x9*(parseInt(_0x1d4129(0x271))/0xa);if(_0x314040===_0x4b7259)break;else _0x27d17f['push'](_0x27d17f['shift']());}catch(_0x8022b){_0x27d17f['push'](_0x27d17f['shift']());}}}(a9_0x21f6,0x24003));function a9_0x21f6(){const _0x544f7b=['DlHAa','Namespace\x20created','options','gridProfile','Rxhki','PQhja','../../utils/utilityMethods','aIfew','delay','FpCRI','vpc','CLI\x20run\x20finished:\x20','\x27\x20grid\x20profile','MYbXq','Found\x20Subnets:\x20','JOeky','../..','XTPRh','isSubnetsValid','fHIuc','LPaUT','description','gIbHT','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','KVviS','jvoGO','oWYgp','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','MUTym','clusterName','TTAXN','EKygp','FfgqB','AIrzV','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','setupHubHa','cloudProvider','path','AgSkT','OLuqJ','Create\x20a\x20private/public\x20grid.','user','WQZyT','deleteCluster','../../utils/instrumentationUtils','eJyaQ','metadata','../../utils/gridComponents','stack','qcNPc','PYAKd','maxNodes','uploaderImageVersion','BXFVF','eXrgT','help','uKlcH','skip-tls-cert-verify','kEHcM','Spawning\x20Grid\x20on\x20the\x20Cluster','setupAutoscaler','dSVvs','HwgDX','qfDiL','jDZIe','XJANs','create-grid-called','CLI_RUN_STARTED','hKwdy','clusterAutoupgrade','orFPl','CZEfR','../../utils/createk8sClient','qKFeM','cjXuj','dNpTS','string','Andxh','IOwex','usage','fVWvp','info','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','VUcvP','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Epyd5nXbRK','lXPiU','bdVuQ','argv','XMoow','PkGtW','Added\x20Redis\x20deployment.','cmhXN','HWGGF','replace','WebSocket','KWZPX','<PasswordPlaceholder>','efgyh','rtjYP','aZFRg','command','Svepz','sJGOi','WMuAW','annotations','LLqna','YhYWx','clusterRegion','6|5|8|7|2|1|0|4|3','350pkWYSv','grid','11|4|8|7|5|2|6|0|14|13|10|15|9|1|12|3','gFgtQ','fxdRH','tULFS','connectionTimeout','http','BFhCJ','mjLwv','iqlig','hubHa','kafkaPassword','QXfuG','enableHubHa','bBwPg','Grid\x20profile\x20fetched\x20from\x20backend','FhXmr','ZBhxG','createdBy','wdGkA','createOtherResources','UPiSg','lHNHJ','XHlcJ','kafkaUploader','LGgGW','qMugW','requestId','SOQwT','achTu','sFiFO','bDqoN','dITiS','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','ebVms','RNhoC','yXmWN','isVPCPresent','GaLDq','3|5|1|8|6|4|7|2|0','subnets','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','sbDZD','fAvNu','type','grid-profile','epilogue','478165ZRJfoB','skipTlsCertVerify','sUXDD','HhfSE','Adding\x20Secret\x20Mapping','tGPPe','minNodes','PRcKb','2|3|0|1|4','qaFvH','GET','<UsernamePlaceholder>','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','length','FHdSP','existsSync','Enabling\x20Hub\x20HA\x20flow','defaultGridProfile','qnMbp','eUrDb','JHMUO','ClXYl','uFIrt','UYLxz','https://','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','wqTHP','bstackAccesskey','cluster-autoupgrade','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','oGOhk','aUBJy','Found\x20VPC:\x20','MMwYO','QTftZ','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','stringify','OTWpp','TAQPw','xcAXv','OkvHT','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','bstackUsername','cflKp','pre-spawned-invalid-vpc','bCGCz','UUUWf','nYZqr','sItBW','ZyyLA','region','grid-name','get-grid-url-null-response','XaIWX','FLqUv','xEqgM','ZmSbM','clusterAutoUpgrade','QjZLe','YCfIC','iQalu','readFileSync','431943xKWGVT','Flag\x20to\x20enable\x20Hub\x20HA','dnLJV','cloud-provider','WtHNG','ZvoBI','hgqia','nuFXe','FutFF','isPrivateGrid','oQqqg','zJeex','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','odbPm','avkJw','LOG','dxmlD','Created\x20Hub\x20HA\x20resources','nEumf','eEbTh','body','../../utils/webSocketUtils','25998gXFoLj','../../config/constants','\x20in\x20existing\x20cluster\x20\x27','Cluster:\x20','JizZw','byFVH','browserstack-secret.yaml','jbbUu','error','lfxRx','create-grid-checks-invalid-profile','fcwzk','instanceType','HFpLx','handler','ylgiI','Grid\x20can\x20be\x20accessed\x20at:\x20','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','s3bucket','uIHli','warn','init-not-called','wsPlm','hub-ha','gridName','toLowerCase','jHSNz','isClusterPresent','ERROR','4iNjNrl','YKGdZ','ijUlb','UkRNzNYCBU','://','includes','blBDu','NfIvQ','reconnecting-websocket','HMBai','Grid\x20spawned\x20on\x20the\x20cluster','zGYjW','qCejj','concurrency','browserVersion','uUZCJ','updateClusterAlreadyPresent','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','pre-spawned-invalid-subnets','tHiVa','prespawned-cluster-args-not-passed','hYfAv','newCluster','prfKw','Spawning\x20the\x20grid\x20','debug','8090aqvjLs','password','WJmtY','AVTLl','qceGJ','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','WyIDM','join','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','BLEjb','DwoDV','managedBy','DmLJK','Browserstack','labels','kLdsz','Spawning\x20grid\x20on\x20to\x20the\x20cluster','username','iMnYy','OiaZh','namespace','browserstack','sendEventToBackend','builder','create-grid-checks-grid-already-exists','jcTPJ','nSvPK','ingress-nginx-controller','statusCode','template','TGPZa','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','boolean','grid-spawning-failed','hILwy','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','6597ZXGJOa','INFO','getGridHostname','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.','ingress-nginx','parse','RJcRM','CLRVU','addListeners','RCHEx','WPOFF','Deleting\x20the\x20CloudFormation\x20Stacks','Creating\x20Hub\x20HA\x20resources','WgbgL','keXdV','true','xurKx','Added\x20Kafka\x20deployment.','templates','TEDpN','tmavH','Added\x20Turboscale\x20Uploader\x20deployment.','jNkJc','/wd/hub','HIxKd','VhSkU','VkHnV','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','sDtgq','zlPey','isNewAWSCluster','UtHzP','message','exit','myiYY','\x20are\x20not\x20present\x20in\x20VPC:\x20','jfRdo','nSmHC','zbfvV','udULW','yQZas','uxjLL','route53','uDrma','KXzkI','zzodv','CLI_RUN_FINISHED','1707144ghyNWP','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','MVFBH','TfORD','SDayl','anYdM','efs-csi','AvXrY','CLI\x20run\x20started','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','mVncN','RnKja','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','YymNm','fgsRC','ucOGu','private-grid','privateGrid','346uxyubN','hHVNz','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','lqtpY','GkyXp','Ucypr','XygtW','sendResourceDataToHST','hubHaNameSpace','Skip\x20insecure\x20cert\x20verification.','\x20using\x20\x27','uploaderVersion','OfQPX','getResourceClientId','hub-ha-deployments-failed','AKFRk','readNamespacedService','create-grid-checks-non-200','InRNt','506464JjlTzd','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','/packages/cli/create-grid-checks','QOCwe','default','NDwVd','hubVersion','HKzpu','IHmxW','name','non-aws-azure-cluster','TQfgc','NuyFF','Create\x20a\x20new\x20Automation\x20grid.','TdLor','vmaTl','GFoRQ','KjWcP','Added\x20Secret\x20Mapping','1|0|4|2|3','redisPassword','bCYqm','sZOqU','tdsfn','fGQSB','turboscale-uploader.yaml','readFileAsync','js-yaml','spec','uTUtm','Cluster\x20created\x20successfully','got','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','createNamespace','setupNewCluster','Cluster\x20','split','EXAIR','get-grid-url-non-200','ERRqI','cFQnH','zwOap','Adding\x20Websocket\x20listeners','cluster-name','AHaSu','HhoBj','create-grid-checks-null-response','QJZYW'];a9_0x21f6=function(){return _0x544f7b;};return a9_0x21f6();}const fs=require('fs'),ws=require('ws'),path=require(a9_0x4354c7(0x16d)),yaml=require(a9_0x4354c7(0x133)),ReconnectingWebSocket=require(a9_0x4354c7(0x25f)),got=require(a9_0x4354c7(0x137)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x4354c7(0x239)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x4354c7(0x14e)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x4354c7(0x23b)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x4354c7(0x177)),{createK8sClient}=require(a9_0x4354c7(0x190)),{sendInstrumentationEvent}=require(a9_0x4354c7(0x174));function a9_0x171b(_0x4d7504,_0x3b0d15){const _0x21f622=a9_0x21f6();return a9_0x171b=function(_0x171b54,_0x5ca763){_0x171b54=_0x171b54-0xf6;let _0x295ba2=_0x21f622[_0x171b54];return _0x295ba2;},a9_0x171b(_0x4d7504,_0x3b0d15);}exports[a9_0x4354c7(0x1ad)]=a9_0x4354c7(0x1b7),exports['desc']=a9_0x4354c7(0x125),exports[a9_0x4354c7(0x288)]=function(_0x2b6536){const _0x1b5d3f=a9_0x4354c7,_0x5bbf51={};_0x5bbf51[_0x1b5d3f(0x1e8)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x5bbf51[_0x1b5d3f(0x228)]=_0x1b5d3f(0x194),_0x5bbf51[_0x1b5d3f(0x214)]=_0x1b5d3f(0x268),_0x5bbf51[_0x1b5d3f(0x23f)]=_0x1b5d3f(0x294),_0x5bbf51[_0x1b5d3f(0x128)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x5bbf51[_0x1b5d3f(0x191)]=_0x1b5d3f(0x203),_0x5bbf51[_0x1b5d3f(0x186)]=_0x1b5d3f(0x170),_0x5bbf51['OkvHT']=_0x1b5d3f(0x10e),_0x5bbf51[_0x1b5d3f(0x195)]=_0x1b5d3f(0x291),_0x5bbf51[_0x1b5d3f(0x211)]=_0x1b5d3f(0x225),_0x5bbf51['sZOqU']=_0x1b5d3f(0x230),_0x5bbf51[_0x1b5d3f(0x19e)]=_0x1b5d3f(0x17f);const _0xc6f46a=_0x5bbf51,_0x3a23b3={};_0x3a23b3[_0x1b5d3f(0x15d)]=_0xc6f46a['sUXDD'],_0x3a23b3[_0x1b5d3f(0x1e3)]=_0xc6f46a[_0x1b5d3f(0x228)];const _0x386ced={};_0x386ced[_0x1b5d3f(0x15d)]=_0xc6f46a[_0x1b5d3f(0x214)],_0x386ced[_0x1b5d3f(0x1e3)]=_0xc6f46a['WtHNG'];const _0x2b27c7={};_0x2b27c7['description']=_0xc6f46a['byFVH'],_0x2b27c7[_0x1b5d3f(0x1e3)]=_0xc6f46a['WtHNG'];const _0x4355f9={};_0x4355f9[_0x1b5d3f(0x15d)]=_0xc6f46a[_0x1b5d3f(0x128)],_0x4355f9[_0x1b5d3f(0x1e3)]=_0xc6f46a[_0x1b5d3f(0x228)];const _0x4ae8cf={};_0x4ae8cf['description']=_0xc6f46a[_0x1b5d3f(0x191)],_0x4ae8cf[_0x1b5d3f(0x1e3)]=_0xc6f46a[_0x1b5d3f(0x228)];const _0x4da747={};_0x4da747[_0x1b5d3f(0x15d)]=_0xc6f46a[_0x1b5d3f(0x186)],_0x4da747[_0x1b5d3f(0x1e3)]=_0xc6f46a[_0x1b5d3f(0x228)];const _0x22e33d={};_0x22e33d[_0x1b5d3f(0x15d)]=_0xc6f46a[_0x1b5d3f(0x20e)],_0x22e33d[_0x1b5d3f(0x1e3)]=_0xc6f46a[_0x1b5d3f(0x195)],_0x22e33d[_0x1b5d3f(0x11c)]=![];const _0x31d051={};_0x31d051[_0x1b5d3f(0x15d)]=_0xc6f46a[_0x1b5d3f(0x211)],_0x31d051['type']=_0xc6f46a[_0x1b5d3f(0x195)],_0x31d051[_0x1b5d3f(0x11c)]=![];const _0x3e1e87={};_0x3e1e87[_0x1b5d3f(0x15d)]=_0xc6f46a[_0x1b5d3f(0x12e)],_0x3e1e87['type']=_0xc6f46a['Andxh'],_0x3e1e87[_0x1b5d3f(0x11c)]=![];const _0x2a1ae1={};return _0x2a1ae1[_0x1b5d3f(0x219)]=_0x3a23b3,_0x2a1ae1[_0x1b5d3f(0x1e4)]=_0x386ced,_0x2a1ae1[_0x1b5d3f(0x143)]=_0x2b27c7,_0x2a1ae1[_0x1b5d3f(0x227)]=_0x4355f9,_0x2a1ae1[_0x1b5d3f(0x218)]=_0x4ae8cf,_0x2a1ae1['private-grid']=_0x4da747,_0x2a1ae1['skip-tls-cert-verify']=_0x22e33d,_0x2a1ae1['hub-ha']=_0x31d051,_0x2a1ae1['cluster-autoupgrade']=_0x3e1e87,_0x2b6536[_0x1b5d3f(0x197)](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1b5d3f(0x14a)](_0x2a1ae1)[_0x1b5d3f(0x17f)](_0xc6f46a[_0x1b5d3f(0x19e)])[_0x1b5d3f(0x1a0)];},exports[a9_0x4354c7(0x248)]=async function(_0x4de9a7){const _0x8c4f97=a9_0x4354c7,_0x32b966={'YymNm':_0x8c4f97(0x1bd),'uUZCJ':'Cluster\x20Auto\x20Upgrade\x20is\x20enabled','jDZIe':'azurefile-csi-premium','HWGGF':_0x8c4f97(0x242),'qfDiL':_0x8c4f97(0x1b5),'ZmSbM':_0x8c4f97(0xfa),'WQZyT':'premium-rwo','kLdsz':'https','fxdRH':_0x8c4f97(0x1b8),'mVncN':function(_0x529e7d,_0x223415){return _0x529e7d!==_0x223415;},'IOwex':function(_0x4fe29d,_0xb68444){return _0x4fe29d(_0xb68444);},'AvXrY':function(_0x30821b,_0x5327dd,_0x11071b,_0x27db6a,_0x4514d4,_0x1fa28f,_0x3024be,_0x411691,_0x4badbb,_0x550372,_0x11527e,_0x166748,_0x11547d){return _0x30821b(_0x5327dd,_0x11071b,_0x27db6a,_0x4514d4,_0x1fa28f,_0x3024be,_0x411691,_0x4badbb,_0x550372,_0x11527e,_0x166748,_0x11547d);},'EKygp':_0x8c4f97(0x1ee),'zGYjW':_0x8c4f97(0x25a),'CZEfR':_0x8c4f97(0x19d),'tLXzt':_0x8c4f97(0x1f6),'RVjJc':_0x8c4f97(0x286),'bDqoN':function(_0x414aee,_0x2731e4){return _0x414aee(_0x2731e4);},'PQhja':_0x8c4f97(0x2a4),'TfORD':'default','oQqqg':_0x8c4f97(0x20f),'myiYY':_0x8c4f97(0x194),'NuyFF':_0x8c4f97(0x268),'nSvPK':_0x8c4f97(0x294),'ijUlb':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','nuFXe':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','yQZas':_0x8c4f97(0x170),'uTUtm':'Skip\x20insecure\x20cert\x20verification.','LLqna':_0x8c4f97(0x291),'Jxrlj':'Flag\x20to\x20enable\x20Hub\x20HA','qMugW':_0x8c4f97(0x230),'jbbUu':_0x8c4f97(0x17f),'iQalu':_0x8c4f97(0x24e),'eUrDb':function(_0x35cffb,_0x3f0be2){return _0x35cffb===_0x3f0be2;},'uULdf':function(_0x2fa435){return _0x2fa435();},'JizZw':function(_0x4c4a5c){return _0x4c4a5c();},'PYAKd':function(_0x20cc78,_0x3821dd){return _0x20cc78!==_0x3821dd;},'AHaSu':_0x8c4f97(0x1b3),'zlPey':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','nYZqr':function(_0x5d54c6,_0x3e6c1d,_0x136f62,_0x5f4243,_0x2fe1b5,_0x5c9456,_0x11498e){return _0x5d54c6(_0x3e6c1d,_0x136f62,_0x5f4243,_0x2fe1b5,_0x5c9456,_0x11498e);},'aZFRg':_0x8c4f97(0x18a),'cFQnH':_0x8c4f97(0x24f),'QXfuG':function(_0x4359f0){return _0x4359f0();},'RNhoC':_0x8c4f97(0x1f1),'lfxRx':_0x8c4f97(0x1a9),'tULFS':_0x8c4f97(0x142),'qcNPc':function(_0x59584a,_0x44760d){return _0x59584a!==_0x44760d;},'aGsZN':_0x8c4f97(0x274),'tmavH':_0x8c4f97(0x1c0),'qCejj':'xJUaE','YzHIJ':_0x8c4f97(0x24b),'CLRVU':function(_0xb1d73c,_0x4d87f6,_0x4defc8,_0x2fc561,_0x5e434b,_0x2ff9bd,_0x565ab3,_0x25a8df){return _0xb1d73c(_0x4d87f6,_0x4defc8,_0x2fc561,_0x5e434b,_0x2ff9bd,_0x565ab3,_0x25a8df);},'jHSNz':_0x8c4f97(0x26b),'iMnYy':_0x8c4f97(0x2ae),'QJZYW':_0x8c4f97(0x276),'XHlcJ':function(_0x175bf3,_0x30fb30,_0x47283e,_0x823102,_0x57eb96,_0x545f0b,_0x100db1,_0x51531e){return _0x175bf3(_0x30fb30,_0x47283e,_0x823102,_0x57eb96,_0x545f0b,_0x100db1,_0x51531e);},'BLEjb':_0x8c4f97(0x122),'TczPr':_0x8c4f97(0x234),'QOCwe':_0x8c4f97(0x2af),'KXzkI':function(_0x57a724,_0x254e98,_0x2dc550,_0x527e28,_0x295980,_0x49b5e7,_0xa0a247){return _0x57a724(_0x254e98,_0x2dc550,_0x527e28,_0x295980,_0x49b5e7,_0xa0a247);},'kEHcM':_0x8c4f97(0x1cd),'FHdSP':_0x8c4f97(0x148),'ERRqI':'fMagT','uDrma':function(_0x2f882f,_0x3eb6d8){return _0x2f882f!==_0x3eb6d8;},'VyUsC':_0x8c4f97(0x260),'zwOap':'gNCze','HIxKd':_0x8c4f97(0x1f0),'sItBW':function(_0x57cb24,_0x55a1a1,_0x429aca){return _0x57cb24(_0x55a1a1,_0x429aca);},'JHMUO':function(_0x2a41c3,_0x2fb678){return _0x2a41c3===_0x2fb678;},'bBwPg':'jqMEp','RCHEx':_0x8c4f97(0x27d),'fgsRC':function(_0x5cf65a,_0x7404b1){return _0x5cf65a===_0x7404b1;},'hKwdy':_0x8c4f97(0x25d),'KVviS':_0x8c4f97(0x1a8),'fGQSB':function(_0x450abd,_0xe2139c){return _0x450abd===_0xe2139c;},'xEqgM':function(_0x4bf13e,_0x391d3d){return _0x4bf13e===_0x391d3d;},'DwoDV':_0x8c4f97(0x198),'oWYgp':_0x8c4f97(0x19c),'yjodm':_0x8c4f97(0x146),'TQfgc':'iNBjB','jfRdo':_0x8c4f97(0x1d7),'GHWVH':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','WJmtY':function(_0x3a0ed4,_0x2da005,_0x187dec,_0x567beb,_0x5b5c02,_0x9a57db,_0x47a33c,_0x38f2ae){return _0x3a0ed4(_0x2da005,_0x187dec,_0x567beb,_0x5b5c02,_0x9a57db,_0x47a33c,_0x38f2ae);},'tSeKR':'create-grid-checks-auth-failed','avkJw':'CLaEV','TGPZa':_0x8c4f97(0x116),'NDwVd':_0x8c4f97(0x1c6),'MYbXq':_0x8c4f97(0x15e),'AgSkT':_0x8c4f97(0x21c),'xurKx':function(_0x3e7fa6,_0x54992a,_0x4c0792,_0x125ef3,_0x2d6dba,_0x2df9de,_0x421b84,_0x1414eb){return _0x3e7fa6(_0x54992a,_0x4c0792,_0x125ef3,_0x2d6dba,_0x2df9de,_0x421b84,_0x1414eb);},'Rxhki':_0x8c4f97(0x289),'WyIDM':_0x8c4f97(0x117),'BFhCJ':function(_0x4824c3,_0x4853e0){return _0x4824c3===_0x4853e0;},'FutFF':_0x8c4f97(0x284),'YPlpV':_0x8c4f97(0x151),'lVSZQ':_0x8c4f97(0x12b),'ClXYl':function(_0x510d60,_0x2da4d3){return _0x510d60===_0x2da4d3;},'ZvoBI':_0x8c4f97(0x1ef),'XJANs':_0x8c4f97(0x208),'bCGCz':function(_0x2dc1e7,_0xf77cf2){return _0x2dc1e7===_0xf77cf2;},'EXAIR':_0x8c4f97(0x200),'KMZvZ':_0x8c4f97(0x1d8),'bymdH':function(_0x2c2de9,_0x138067,_0x171f86,_0x2a2eff,_0x211bc3,_0x2037e8,_0x4b5b2c,_0x4e5601){return _0x2c2de9(_0x138067,_0x171f86,_0x2a2eff,_0x211bc3,_0x2037e8,_0x4b5b2c,_0x4e5601);},'TdLor':_0x8c4f97(0x244),'Inofh':function(_0x2177c0,_0x4d2168){return _0x2177c0===_0x4d2168;},'ebVms':_0x8c4f97(0x161),'HKzpu':function(_0x23ef1b,_0x45c65c){return _0x23ef1b===_0x45c65c;},'SDayl':function(_0x3207e4,_0x542b02){return _0x3207e4===_0x542b02;},'DblAX':'uYYwI','jNkJc':_0x8c4f97(0x275),'FfgqB':function(_0x3d849b,_0x111d2f){return _0x3d849b!==_0x111d2f;},'hILwy':function(_0xb0b889,_0x62b9f2){return _0xb0b889===_0x62b9f2;},'dSVvs':_0x8c4f97(0x1b0),'UYLxz':_0x8c4f97(0x220),'dnLJV':function(_0x59cd5e,_0x20cded,_0x366d86,_0x3b7350,_0x381549,_0x1559e1,_0x87924c,_0x26cf7a,_0x36c19a,_0x1d7f5d,_0x37a035,_0x207fb5,_0x378288){return _0x59cd5e(_0x20cded,_0x366d86,_0x3b7350,_0x381549,_0x1559e1,_0x87924c,_0x26cf7a,_0x36c19a,_0x1d7f5d,_0x37a035,_0x207fb5,_0x378288);},'LPaUT':function(_0x34ba63,_0x548edc){return _0x34ba63!==_0x548edc;},'OTWpp':_0x8c4f97(0x157),'AIrzV':_0x8c4f97(0x1a2),'odbPm':function(_0x23af18,_0x27a410){return _0x23af18(_0x27a410);},'wLVRB':function(_0x3dccf7,_0x12a7e7){return _0x3dccf7===_0x12a7e7;},'HhoBj':function(_0x45941f,_0x403b12){return _0x45941f===_0x403b12;},'qnMbp':_0x8c4f97(0x205),'cjXuj':_0x8c4f97(0x101),'prfKw':_0x8c4f97(0x1ae),'VUcvP':function(_0x200ad6,_0x34e286){return _0x200ad6===_0x34e286;},'RJcRM':'gYUod','Okkci':_0x8c4f97(0x16f),'FhXmr':function(_0x167f3c,_0xe341ad){return _0x167f3c===_0xe341ad;},'eJyaQ':_0x8c4f97(0x1d3),'tdsfn':_0x8c4f97(0x24d),'HhfSE':_0x8c4f97(0x1de),'bCYqm':function(_0x272923,_0x1623d6){return _0x272923===_0x1623d6;},'RnKja':_0x8c4f97(0x20d),'MMwYO':function(_0x4551d3,_0x269e13){return _0x4551d3===_0x269e13;},'fcwzk':'oZjkQ','oGOhk':'qTIJZ','orFPl':_0x8c4f97(0x193),'tGPPe':_0x8c4f97(0x217),'sDtgq':_0x8c4f97(0x1e0),'sFiFO':function(_0x590459,_0x3a871d){return _0x590459!=_0x3a871d;},'MUTym':function(_0x1596cc,_0x33b60b){return _0x1596cc!==_0x33b60b;},'gFgtQ':function(_0x28b8cb,_0x5467f4){return _0x28b8cb>_0x5467f4;},'jcTPJ':function(_0x4aef44,_0xee35e6){return _0x4aef44===_0xee35e6;},'fHIuc':_0x8c4f97(0x2c5),'GaLDq':'pre-spawned-subnets-not-selected','cmhXN':function(_0xcf2360,_0x52a55a){return _0xcf2360===_0x52a55a;},'SiGWT':_0x8c4f97(0x106),'hgqia':function(_0x3e41e7,_0x547619,_0x19e812,_0x2faf57,_0xc20aa8,_0x3c3b9b,_0x11d315,_0x97bf53){return _0x3e41e7(_0x547619,_0x19e812,_0x2faf57,_0xc20aa8,_0x3c3b9b,_0x11d315,_0x97bf53);},'mQzca':_0x8c4f97(0x212),'Ktnjb':function(_0xe9f232,_0xfa5322){return _0xe9f232===_0xfa5322;},'sRGUp':function(_0x559430,_0x9313c1,_0x42b9ff,_0x3fa740,_0x50d34d,_0x4a90ca,_0x23bc61,_0x3840d3){return _0x559430(_0x9313c1,_0x42b9ff,_0x3fa740,_0x50d34d,_0x4a90ca,_0x23bc61,_0x3840d3);},'TjCMq':_0x8c4f97(0x269),'vmaTl':'2|3|1|0|4','WPOFF':_0x8c4f97(0x136),'anYdM':_0x8c4f97(0x298),'keXdV':function(_0x3a4c2a,_0x27c861){return _0x3a4c2a===_0x27c861;},'rtjYP':function(_0x36938e,_0x28c332,_0x38ba30){return _0x36938e(_0x28c332,_0x38ba30);},'BXFVF':function(_0x3dd10c,_0x4061fb){return _0x3dd10c===_0x4061fb;},'achTu':_0x8c4f97(0x2a1),'GkyXp':function(_0x3921bd,_0x50e417,_0x4ac001){return _0x3921bd(_0x50e417,_0x4ac001);},'tlGhD':_0x8c4f97(0x1ea),'TAQPw':_0x8c4f97(0x158),'XMoow':_0x8c4f97(0x2a7),'UPiSg':'hubharesources','bdVuQ':_0x8c4f97(0x240),'UtHzP':'utf-8','WgbgL':function(_0x1f506d,_0xdbec36){return _0x1f506d(_0xdbec36);},'KjWcP':_0x8c4f97(0x12a),'TEDpN':_0x8c4f97(0xf8),'Ucypr':function(_0x4b5faf,_0x255151){return _0x4b5faf===_0x255151;},'wsPlm':function(_0x5512b3,_0x226763){return _0x5512b3===_0x226763;},'efgyh':'Adding\x20Redis\x20deployment...','AKFRk':'bitnami-redis.yaml','tHiVa':_0x8c4f97(0x1a3),'YCfIC':'Adding\x20Kafka\x20deployment...','hHVNz':'bitnami-kafka.yaml','udULW':_0x8c4f97(0x2a6),'UeHNV':'Adding\x20Turboscale\x20Uploader\x20deployment...','XygtW':_0x8c4f97(0x131),'nSmHC':function(_0x54f0e7,_0x1ae8dc,_0xb4933a){return _0x54f0e7(_0x1ae8dc,_0xb4933a);},'TTAXN':_0x8c4f97(0x2aa),'GkZJU':_0x8c4f97(0x235),'zbfvV':'Hub\x20HA\x20setup\x20completed\x20successfully.','ZBhxG':'0|3|2|1|4','lqtpY':_0x8c4f97(0x113),'rTArr':'Creating\x20namespace','OfQPX':function(_0xe4204d,_0x3c9ad9){return _0xe4204d!==_0x3c9ad9;},'uFIrt':'Browserstack','NfIvQ':'Namespace\x20Created','PRcKb':_0x8c4f97(0x149),'XaIWX':_0x8c4f97(0x281),'PLkCA':_0x8c4f97(0x183),'WZXFd':function(_0x3b0a8e,_0x4fa4ec){return _0x3b0a8e===_0x4fa4ec;},'YKGdZ':function(_0x11f48a,_0x1c5d78,_0x528e40,_0x49eb7b,_0x34876e,_0x3954b4,_0x244db8,_0x2b203a,_0x59f371,_0x2f9ca0,_0x1ecc37){return _0x11f48a(_0x1c5d78,_0x528e40,_0x49eb7b,_0x34876e,_0x3954b4,_0x244db8,_0x2b203a,_0x59f371,_0x2f9ca0,_0x1ecc37);},'mjLwv':_0x8c4f97(0x261),'zJeex':_0x8c4f97(0x15f),'uxjLL':function(_0x1f9dd5,_0x4369e3,_0x116774,_0x4b84a5,_0x36d78d){return _0x1f9dd5(_0x4369e3,_0x116774,_0x4b84a5,_0x36d78d);},'XTPRh':function(_0x3be46e,_0x1cafc4,_0x4b9112){return _0x3be46e(_0x1cafc4,_0x4b9112);},'MVFBH':'private-ingress-nginx-controller','nEumf':_0x8c4f97(0x28c),'Hansv':_0x8c4f97(0x299),'ylgiI':function(_0x5d22ed,_0x2df7c3){return _0x5d22ed===_0x2df7c3;},'fAvNu':function(_0x57d313,_0x575062){return _0x57d313===_0x575062;},'hYfAv':_0x8c4f97(0x290),'IHmxW':function(_0x2c338e,_0x1388ea,_0x29fb47,_0x33d69e,_0x3fc5a8,_0x13330b,_0x41befd,_0x4c13af){return _0x2c338e(_0x1388ea,_0x29fb47,_0x33d69e,_0x3fc5a8,_0x13330b,_0x41befd,_0x4c13af);},'sJGOi':_0x8c4f97(0x21a),'HFpLx':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','LGgGW':function(_0x157296,_0x21a3d8,_0x10ed1d,_0x1498e0,_0xede74f,_0x567ec6,_0x1de41c,_0x1ca593){return _0x157296(_0x21a3d8,_0x10ed1d,_0x1498e0,_0xede74f,_0x567ec6,_0x1de41c,_0x1ca593);},'eEbTh':'get-grid-url-auth-failed','sbDZD':function(_0x17b983,_0x43b26d){return _0x17b983!==_0x43b26d;},'wdGkA':function(_0x27d58f,_0x1aac61,_0x41a862,_0x238925,_0xd69d1f,_0x538248,_0x14c0dd,_0xf70cb5){return _0x27d58f(_0x1aac61,_0x41a862,_0x238925,_0xd69d1f,_0x538248,_0x14c0dd,_0xf70cb5);},'uKlcH':_0x8c4f97(0x13e),'zzodv':function(_0x3864e7,_0x57b8f3){return _0x3864e7===_0x57b8f3;},'aIfew':_0x8c4f97(0x2a0),'eXrgT':function(_0x3cafbc,_0x1512eb,_0x447aeb,_0x1826c2,_0x112870,_0x576751){return _0x3cafbc(_0x1512eb,_0x447aeb,_0x1826c2,_0x112870,_0x576751);},'yXmWN':_0x8c4f97(0x292)};let _0x4cbba0=![],_0x555555=![],_0xd5f12d,_0x13ea63,_0x43711a,_0x259cb5,_0x3f6509,_0x218c71,_0x1cc82b,_0x3b0620,_0xd27d19,_0x153093,_0xb121d7,_0x28d96d,_0xc560ef,_0x32daad,_0x358dd9=0x1,_0x429638=0xe;try{global_registry[_0x8c4f97(0x1d2)]=_0x32b966['uULdf'](uuidv4),global_registry[_0x8c4f97(0x22d)]=![];!fs[_0x8c4f97(0x1f5)](_0x32b966[_0x8c4f97(0x23e)](getCredentialsPath))&&(_0x32b966['PYAKd'](_0x32b966[_0x8c4f97(0x144)],_0x32b966[_0x8c4f97(0x144)])?_0x40b230=_0x32b966[_0x8c4f97(0xff)]:(console[_0x8c4f97(0x242)](_0x32b966[_0x8c4f97(0x2b2)]),await _0x32b966['nYZqr'](sendInstrumentationEvent,_0x4de9a7,_0x32b966[_0x8c4f97(0x1ac)],messageTypes[_0x8c4f97(0x256)],_0x32b966[_0x8c4f97(0x140)],null,_0x4de9a7),process[_0x8c4f97(0x2b6)](0x1)));await _0x32b966[_0x8c4f97(0x215)](sendInstrumentationEvent,_0x4de9a7,_0x32b966[_0x8c4f97(0x1ac)],messageTypes[_0x8c4f97(0x296)],null,null,_0x4de9a7);const _0x1c7573=JSON[_0x8c4f97(0x29a)](fs[_0x8c4f97(0x223)](_0x32b966[_0x8c4f97(0x1c3)](getCredentialsPath)));global_registry[_0x8c4f97(0x210)]=_0x1c7573[_0x8c4f97(0x27e)][_0x8c4f97(0x282)],global_registry[_0x8c4f97(0x201)]=_0x1c7573['Browserstack']['password'];const _0x2603ad=WS_ENDPOINT[_0x8c4f97(0x1a6)](_0x32b966[_0x8c4f97(0x1da)],_0x1c7573[_0x8c4f97(0x27e)][_0x8c4f97(0x282)])[_0x8c4f97(0x1a6)](_0x32b966[_0x8c4f97(0x243)],_0x1c7573['Browserstack'][_0x8c4f97(0x272)]),_0x2bc531={};_0x2bc531[_0x8c4f97(0x1a7)]=ws,_0x2bc531[_0x8c4f97(0x1bc)]=0x36ee80,_0x28d96d=new ReconnectingWebSocket(_0x2603ad,[],_0x2bc531),logger[_0x8c4f97(0x270)](_0x32b966[_0x8c4f97(0x1bb)]),webSocketUtils[_0x8c4f97(0x29d)](_0x28d96d,_0x4de9a7[_0x8c4f97(0x171)],_0x4de9a7['password']);const _0x41d2c9=_0x4de9a7[_0x8c4f97(0x252)]||DEFAULT_GRID_NAME;if(_0x4de9a7[_0x8c4f97(0x165)]||_0x4de9a7['cloudProvider']||_0x4de9a7[_0x8c4f97(0x218)]){if(_0x32b966[_0x8c4f97(0x179)](_0x32b966['aGsZN'],_0x32b966[_0x8c4f97(0x2a9)])){!(_0x4de9a7[_0x8c4f97(0x165)]&&_0x4de9a7[_0x8c4f97(0x16c)]&&_0x4de9a7['region'])&&(_0x32b966['PYAKd'](_0x32b966[_0x8c4f97(0x263)],_0x32b966['qCejj'])?_0x50be39[_0x8c4f97(0x199)](_0x32b966[_0x8c4f97(0x266)]):(_0xd5f12d=_0x32b966['YzHIJ'],await _0x32b966[_0x8c4f97(0x29c)](reportToGalactusAndSendToEDS,_0x4de9a7,_0x28d96d,_0xd5f12d,messageTypes[_0x8c4f97(0x256)],_0x32b966['aZFRg'],_0x32b966[_0x8c4f97(0x254)],_0x32b966['HWGGF']),logger['error'](_0xd5f12d),process['exit'](0x1)));![AWS,AZURE,GCP][_0x8c4f97(0x25c)](_0x4de9a7[_0x8c4f97(0x16c)][_0x8c4f97(0x253)]())&&(_0x32b966[_0x8c4f97(0x1f9)](_0x32b966[_0x8c4f97(0x283)],_0x32b966[_0x8c4f97(0x283)])?(_0xd5f12d=_0x32b966[_0x8c4f97(0x147)],await _0x32b966[_0x8c4f97(0x1ce)](reportToGalactusAndSendToEDS,_0x4de9a7,_0x28d96d,_0xd5f12d,messageTypes[_0x8c4f97(0x256)],_0x32b966[_0x8c4f97(0x1ac)],_0x32b966[_0x8c4f97(0x27a)],_0x32b966['HWGGF']),logger[_0x8c4f97(0x242)](_0xd5f12d),process[_0x8c4f97(0x2b6)](0x1)):_0x35b063[_0x8c4f97(0x199)](_0x8c4f97(0x206)+_0xe0d9ef+'\x20'));_0x4de9a7[_0x8c4f97(0x103)]&&_0x32b966['eUrDb'](_0x4de9a7[_0x8c4f97(0x103)][_0x8c4f97(0x253)](),_0x32b966[_0x8c4f97(0x14d)])&&(_0x32b966[_0x8c4f97(0x179)](_0x32b966['TczPr'],_0x32b966[_0x8c4f97(0x11b)])?global_registry[_0x8c4f97(0x22d)]=!![]:_0x3be8b4=!![]);global_registry[_0x8c4f97(0x16c)]=_0x4de9a7[_0x8c4f97(0x16c)],global_registry[_0x8c4f97(0x1b4)]=_0x4de9a7[_0x8c4f97(0x218)],global_registry['clusterName']=_0x4de9a7[_0x8c4f97(0x165)];const _0x5c0150=await _0x32b966[_0x8c4f97(0x2c1)](getCloudProviderObject,_0x4de9a7[_0x8c4f97(0x16c)],_0x4de9a7[_0x8c4f97(0x165)],_0x41d2c9,_0x28d96d,webSocketUtils,_0x4de9a7),_0xa8ea8=await _0x5c0150['isClusterPresent']();!_0xa8ea8?_0x32b966[_0x8c4f97(0x1f9)](_0x32b966[_0x8c4f97(0x182)],_0x32b966[_0x8c4f97(0x1f4)])?_0xe5a997=_0x32b966[_0x8c4f97(0x188)]:(logger[_0x8c4f97(0x199)](_0x8c4f97(0x23d)+_0x4de9a7[_0x8c4f97(0x165)]+_0x8c4f97(0xfb)),_0x4cbba0=![],_0x555555=!![]):_0x32b966['qcNPc'](_0x32b966['ERRqI'],_0x32b966[_0x8c4f97(0x13f)])?(_0x31d038['region']=_0x2be8bf,_0x5d705d[_0x8c4f97(0x16c)]=_0x403e2b,_0x19f91c[_0x8c4f97(0x26d)]=!![],_0x4f0a0b[_0x8c4f97(0x21f)]=_0x41cfd6[_0x8c4f97(0x18d)]):_0x4cbba0=!![],_0x43711a=_0x4de9a7[_0x8c4f97(0x165)],_0x13ea63=_0x4de9a7[_0x8c4f97(0x16c)]['toLowerCase'](),_0x259cb5=_0x4de9a7[_0x8c4f97(0x218)];}else _0x28b6d0=null;}else{if(_0x4de9a7[_0x8c4f97(0x14b)]){if(_0x32b966[_0x8c4f97(0x2c0)](_0x32b966['VyUsC'],_0x32b966[_0x8c4f97(0x141)]))global_registry[_0x8c4f97(0x14b)]=_0x4de9a7[_0x8c4f97(0x14b)];else{const _0x1d3008={};_0x1d3008[_0x8c4f97(0x1e3)]=_0x2d4e38['LOG'],_0x1d3008[_0x8c4f97(0x2b5)]=_0x139aee,_0x271d99[_0x8c4f97(0x287)](_0x2d23de,_0x1d3008,_0x32b966['HWGGF'],!![]);}}}global_registry[_0x8c4f97(0x252)]=_0x4de9a7['gridName'];const _0x3fce1f={'method':_0x32b966[_0x8c4f97(0x2ad)],'headers':_0x32b966[_0x8c4f97(0x216)](getAuthHeader,_0x1c7573[_0x8c4f97(0x27e)]['username'],_0x1c7573['Browserstack'][_0x8c4f97(0x272)]),'throwHttpErrors':![]},_0x29e603={};_0x29e603['gridName']=_0x41d2c9;const _0x444f19=_0x29e603;if(_0x555555){if(_0x32b966[_0x8c4f97(0x1fa)](_0x32b966[_0x8c4f97(0x1c5)],_0x32b966[_0x8c4f97(0x29e)])){const _0x312040=_0x32b966[_0x8c4f97(0x187)][_0x8c4f97(0x13c)]('|');let _0x1813cb=0x0;while(!![]){switch(_0x312040[_0x1813cb++]){case'0':_0x1f3650['clusterName']=_0x4e2ac2;continue;case'1':_0x28a184[_0x8c4f97(0x1b4)]=_0x312bff;continue;case'2':_0x142182[_0x8c4f97(0x16c)]=_0x4e10ac;continue;case'3':_0xa1757d[_0x8c4f97(0x265)]=_0x13626b[_0x8c4f97(0x265)];continue;case'4':_0x576a79[_0x8c4f97(0x11e)]=_0x19be72[_0x8c4f97(0x11e)];continue;case'5':_0x56ec2c=_0x8c4f97(0x26f)+_0x2bf1e2+_0x8c4f97(0x23c)+_0x3ee2ad+'\x27';continue;case'6':const _0x535409={};_0x535409[_0x8c4f97(0x1e3)]=_0x4793a6[_0x8c4f97(0x18b)],_0x535409[_0x8c4f97(0x2b5)]=_0x32b966[_0x8c4f97(0x21e)],_0x3fc21c[_0x8c4f97(0x287)](_0x2d8ff4,_0x535409);continue;case'7':const _0x53f49a={};_0x53f49a[_0x8c4f97(0x1e3)]=_0x3c19c1[_0x8c4f97(0x233)],_0x53f49a['message']=_0x4df0dc,_0x18c9d7['sendEventToBackend'](_0x5a021b,_0x53f49a);continue;case'8':_0x9b327b[_0x8c4f97(0x199)](_0xe18ae8);continue;}break;}}else _0x444f19[_0x8c4f97(0x218)]=_0x259cb5,_0x444f19[_0x8c4f97(0x16c)]=_0x13ea63,_0x444f19[_0x8c4f97(0x26d)]=!![],_0x444f19[_0x8c4f97(0x21f)]=_0x4de9a7[_0x8c4f97(0x18d)];}_0x4de9a7[_0x8c4f97(0x18d)]&&(_0x32b966[_0x8c4f97(0x100)](_0x32b966[_0x8c4f97(0x18c)],_0x32b966[_0x8c4f97(0x160)])?_0x1db3d7=_0x535ee0[_0x4371de['gridProfile']]:logger[_0x8c4f97(0x199)](_0x32b966[_0x8c4f97(0x266)]));const _0x41ae97=_0x8c4f97(0x1fe)+AG_API_URL+_0x8c4f97(0x11a),_0x1c56d1={'searchParams':_0x444f19,'throwHttpErrors':![],..._0x3fce1f},_0x35f4a5=_0x1c56d1,_0x2f94a2=await _0x32b966[_0x8c4f97(0x216)](got,_0x41ae97,_0x35f4a5);(_0x32b966[_0x8c4f97(0x1fa)](_0x2f94a2,null)||_0x32b966[_0x8c4f97(0x130)](_0x2f94a2,undefined))&&(_0x32b966['xEqgM'](_0x32b966[_0x8c4f97(0x27b)],_0x32b966[_0x8c4f97(0x27b)])?(_0xd5f12d=_0x32b966[_0x8c4f97(0x162)],await _0x32b966[_0x8c4f97(0x1ce)](reportToGalactusAndSendToEDS,_0x4de9a7,_0x28d96d,_0xd5f12d,messageTypes[_0x8c4f97(0x256)],_0x32b966[_0x8c4f97(0x1ac)],_0x32b966['yjodm'],_0x32b966[_0x8c4f97(0x1a5)]),logger['error'](_0xd5f12d),process[_0x8c4f97(0x2b6)](0x1)):_0x5cd580=_0x32b966[_0x8c4f97(0x172)]);_0x32b966[_0x8c4f97(0x21d)](_0x2f94a2['statusCode'],0x191)&&(_0x32b966[_0x8c4f97(0x2c0)](_0x32b966[_0x8c4f97(0x123)],_0x32b966[_0x8c4f97(0x2b9)])?(_0xd5f12d=_0x32b966['GHWVH'],await _0x32b966[_0x8c4f97(0x273)](reportToGalactusAndSendToEDS,_0x4de9a7,_0x28d96d,_0xd5f12d,messageTypes[_0x8c4f97(0x256)],_0x32b966[_0x8c4f97(0x1ac)],_0x32b966['tSeKR'],_0x32b966[_0x8c4f97(0x1a5)]),logger['error'](_0xd5f12d),process['exit'](0x1)):_0x114eaa[_0x8c4f97(0x22d)]=!![]);_0x32b966[_0x8c4f97(0xfc)](_0x2f94a2[_0x8c4f97(0x28d)],0xc8)&&(_0x32b966[_0x8c4f97(0x17a)](_0x32b966[_0x8c4f97(0x232)],_0x32b966[_0x8c4f97(0x232)])?(_0x19d2f3=_0x4509c0['route53'],_0x2dc07f=_0x32b966[_0x8c4f97(0x280)]):(_0xd5f12d=_0x8c4f97(0x138)+JSON['stringify'](_0x2f94a2[_0x8c4f97(0x238)]),await _0x32b966[_0x8c4f97(0x29c)](reportToGalactusAndSendToEDS,_0x4de9a7,_0x28d96d,_0xd5f12d,messageTypes[_0x8c4f97(0x256)],_0x32b966['aZFRg'],_0x32b966[_0x8c4f97(0x28f)],_0x32b966['HWGGF']),logger[_0x8c4f97(0x242)](_0xd5f12d),process['exit'](0x1)));const _0x5334b6=JSON[_0x8c4f97(0x29a)](_0x2f94a2['body']),_0x13ef38={};_0x13ef38[_0x8c4f97(0x1e3)]=WS_EVENTS[_0x8c4f97(0x18b)],_0x13ef38[_0x8c4f97(0x2b5)]=_0x32b966['ZmSbM'],webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x13ef38);const _0x40766b={};_0x40766b[_0x8c4f97(0x1e3)]=WS_EVENTS[_0x8c4f97(0x233)],_0x40766b[_0x8c4f97(0x2b5)]=_0x32b966[_0x8c4f97(0x11d)],webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x40766b);_0x5334b6['alreadyPresent']&&(_0x32b966[_0x8c4f97(0x179)](_0x32b966[_0x8c4f97(0x155)],_0x32b966[_0x8c4f97(0x16e)])?(_0xd5f12d=_0x8c4f97(0x2b0)+_0x41d2c9+_0x8c4f97(0xfe),await _0x32b966[_0x8c4f97(0x2a5)](reportToGalactusAndSendToEDS,_0x4de9a7,_0x28d96d,_0xd5f12d,messageTypes[_0x8c4f97(0x256)],_0x32b966[_0x8c4f97(0x1ac)],_0x32b966[_0x8c4f97(0x14c)],_0x32b966[_0x8c4f97(0x1a5)]),logger['error'](_0xd5f12d),process[_0x8c4f97(0x2b6)](0x1)):_0x2b3164['error'](_0x8c4f97(0x163)+_0x1405f7+'\x20\x0a'+_0x15b1ad['stringify'](_0x31d9ec[_0x8c4f97(0x178)])));const _0xf512e5=_0x5334b6['gridProfiles'];let _0x354275=_0xf512e5[_0x5334b6[_0x8c4f97(0x1f7)]];_0x4de9a7['gridProfile']&&(_0x32b966[_0x8c4f97(0xfc)](_0x32b966['WyIDM'],_0x32b966[_0x8c4f97(0x277)])?_0x1d248c[_0x8c4f97(0x14b)]=_0x568564[_0x8c4f97(0x14b)]:_0x354275=_0xf512e5[_0x4de9a7[_0x8c4f97(0x14b)]]);global_registry[_0x8c4f97(0x1c4)]=![];if(_0x4de9a7[_0x8c4f97(0x1c1)]){if(_0x32b966[_0x8c4f97(0x1be)](_0x32b966[_0x8c4f97(0x22c)],_0x32b966['YPlpV']))_0x140d0f=null;else{const _0x1410a8=_0x32b966['lVSZQ'][_0x8c4f97(0x13c)]('|');let _0x45398b=0x0;while(!![]){switch(_0x1410a8[_0x45398b++]){case'0':global_registry[_0x8c4f97(0x10d)]=_0x32b966['RVjJc'];continue;case'1':logger[_0x8c4f97(0x199)](_0x32b966['tLXzt']);continue;case'2':global_registry[_0x8c4f97(0x1c2)]=_0x32b966[_0x8c4f97(0x18f)];continue;case'3':global_registry[_0x8c4f97(0x1c4)]=!![];continue;case'4':global_registry[_0x8c4f97(0x12c)]=_0x32b966[_0x8c4f97(0x262)];continue;}break;}}}if(_0x32b966[_0x8c4f97(0x21d)](_0x4cbba0,![])&&_0x32b966['xEqgM'](_0x555555,![])){if(_0x32b966[_0x8c4f97(0x1fb)](_0x32b966[_0x8c4f97(0x229)],_0x32b966[_0x8c4f97(0x189)])){const _0x276654=_0x32b966[_0x8c4f97(0x1ba)][_0x8c4f97(0x13c)]('|');let _0x37e904=0x0;while(!![]){switch(_0x276654[_0x37e904++]){case'0':_0x51e4ea=null;continue;case'1':_0x32b966[_0x8c4f97(0xfc)](_0x7de7c4[_0x8c4f97(0x103)],_0x4202dd)&&_0x456882['privateGrid']&&(_0x361286[_0x8c4f97(0x22d)]=!![]);continue;case'2':_0x3bb1a8=null;continue;case'3':_0x4bed6f['enableHubHa']&&_0x32b966[_0x8c4f97(0x196)](_0x69c8ae,_0x10eaab[_0x8c4f97(0x1cf)]);continue;case'4':_0x3e9ea9[_0x8c4f97(0x199)](_0x1c3fc0);continue;case'5':_0x3bd19d=_0x4661da[_0x8c4f97(0x246)];continue;case'6':_0x421785=null;continue;case'7':_0x226aa7=_0x22f480[_0x8c4f97(0x264)];continue;case'8':const _0x383b01={};_0x383b01['type']=_0x50f2[_0x8c4f97(0x233)],_0x383b01[_0x8c4f97(0x2b5)]=_0x205193,_0xea1bd7[_0x8c4f97(0x287)](_0x349b5,_0x383b01);continue;case'9':_0xb70b3c=_0x22efe9['browserVersion'];continue;case'10':_0x218c83=_0x48a5e5[_0x8c4f97(0x17b)];continue;case'11':_0x566a14=_0x8c4f97(0x119)+_0x4bf909;continue;case'12':_0x32b966[_0x8c4f97(0xf9)](_0x4d80d0,_0x116043,_0x609b8a,_0x57f59f,_0x36b27a,_0x4df761,_0x131958,_0x24d855,_0x452f13,_0x36d142,_0x176884,_0x118b02,_0x41f1e2['clusterAutoupgrade']);continue;case'13':_0x27fc11=_0x96e208['minNodes'];continue;case'14':_0x24edb2=_0xb93622[_0x8c4f97(0x24c)];continue;case'15':_0x2645bd=_0x5a6f1d[_0x8c4f97(0x11e)];continue;}break;}}else{if(_0x32b966[_0x8c4f97(0x213)](_0x354275,undefined)){if(_0x32b966[_0x8c4f97(0x17a)](_0x32b966[_0x8c4f97(0x13d)],_0x32b966[_0x8c4f97(0x13d)]))throw new _0x2d073f('Cluster\x20'+_0x1f6ca4+_0x8c4f97(0x19a));else _0xd5f12d=_0x32b966['KMZvZ'],await _0x32b966['bymdH'](reportToGalactusAndSendToEDS,_0x4de9a7,_0x28d96d,_0xd5f12d,messageTypes[_0x8c4f97(0x256)],_0x32b966[_0x8c4f97(0x1ac)],_0x32b966[_0x8c4f97(0x126)],_0x32b966[_0x8c4f97(0x1a5)]),logger['error'](_0xd5f12d),process[_0x8c4f97(0x2b6)](0x1);}global_registry['gridProfileId']=_0x354275['id'],_0xd5f12d='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x41d2c9+_0x8c4f97(0x10f)+_0x354275[_0x8c4f97(0x121)]+_0x8c4f97(0x154),logger[_0x8c4f97(0x199)](_0xd5f12d);const _0x2b8c82={};_0x2b8c82['type']=WS_EVENTS[_0x8c4f97(0x233)],_0x2b8c82[_0x8c4f97(0x2b5)]=_0xd5f12d,webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x2b8c82),_0x13ea63=_0x354275[_0x8c4f97(0x16c)],_0x43711a=_0x354275[_0x8c4f97(0x165)],_0x259cb5=_0x354275[_0x8c4f97(0x218)],_0x3f6509=_0x354275['concurrency'],_0x218c71=_0x354275['instanceType'],_0x1cc82b=_0x354275[_0x8c4f97(0x152)],_0x3b0620=_0x354275['securityGroups'],_0xd27d19=_0x354275[_0x8c4f97(0x1df)],_0x153093=_0x354275[_0x8c4f97(0x24c)],_0x358dd9=_0x354275['minNodes'],_0x429638=_0x354275['maxNodes'],_0xc560ef=_0x5334b6[_0x8c4f97(0x11e)],_0x32daad=_0x5334b6[_0x8c4f97(0x265)];if(_0x1cc82b&&_0x32b966['Inofh'](_0x1cc82b[_0x8c4f97(0x1f3)],0x0)){if(_0x32b966[_0x8c4f97(0x179)](_0x32b966[_0x8c4f97(0x1d9)],_0x32b966[_0x8c4f97(0x1d9)])){const _0x4915d1=_0x32b966[_0x8c4f97(0x167)][_0x8c4f97(0x13c)]('|');let _0x20c3be=0x0;while(!![]){switch(_0x4915d1[_0x20c3be++]){case'0':_0x3b22bf[_0x8c4f97(0x12c)]=_0x32b966['zGYjW'];continue;case'1':_0x543234['kafkaPassword']=_0x32b966[_0x8c4f97(0x18f)];continue;case'2':_0x18e86f[_0x8c4f97(0x199)](_0x32b966['tLXzt']);continue;case'3':_0x955022[_0x8c4f97(0x10d)]=_0x32b966['RVjJc'];continue;case'4':_0x337177['enableHubHa']=!![];continue;}break;}}else _0x1cc82b=null;}_0xd27d19&&_0x32b966[_0x8c4f97(0x11f)](_0xd27d19[_0x8c4f97(0x1f3)],0x0)&&(_0x32b966[_0x8c4f97(0xf6)](_0x32b966['DblAX'],_0x32b966[_0x8c4f97(0x2ab)])?_0x32b966[_0x8c4f97(0x1d6)](_0x4cf1a3,_0x3f1d47[_0x8c4f97(0x110)]):_0xd27d19=null),_0x32b966[_0x8c4f97(0x168)](_0x354275[_0x8c4f97(0x103)],undefined)&&_0x354275[_0x8c4f97(0x103)]&&(_0x32b966[_0x8c4f97(0x293)](_0x32b966[_0x8c4f97(0x185)],_0x32b966[_0x8c4f97(0x1fd)])?_0x32b966[_0x8c4f97(0x196)](_0xb70a46,_0x460bd6['kafkaUploader']):global_registry[_0x8c4f97(0x22d)]=!![]),_0x32b966['dnLJV'](updateGlobalRegistryWithConfig,_0x13ea63,_0x43711a,_0x259cb5,_0x3f6509,_0x218c71,_0x153093,_0x354275,_0xc560ef,_0x32daad,_0x358dd9,_0x429638,_0x4de9a7['clusterAutoupgrade']),global_registry[_0x8c4f97(0x1c4)]&&(_0x32b966[_0x8c4f97(0x15c)](_0x32b966[_0x8c4f97(0x20b)],_0x32b966[_0x8c4f97(0x169)])?_0x32b966[_0x8c4f97(0x231)](updateGlobalRegistryForHubHa,_0x5334b6[_0x8c4f97(0x110)]):(_0x5c2a69[_0x8c4f97(0x199)](_0x8c4f97(0x23d)+_0x20e34a[_0x8c4f97(0x165)]+_0x8c4f97(0xfb)),_0x73bbce=![],_0x23ab97=!![]));}}else{if(_0x32b966['wLVRB'](_0x555555,!![])){if(_0x32b966[_0x8c4f97(0x145)](_0x32b966[_0x8c4f97(0x1f8)],_0x32b966['qnMbp'])){_0xd5f12d=_0x8c4f97(0x119)+_0x41d2c9,logger[_0x8c4f97(0x199)](_0xd5f12d);const _0x4a3378={};_0x4a3378[_0x8c4f97(0x1e3)]=WS_EVENTS[_0x8c4f97(0x233)],_0x4a3378[_0x8c4f97(0x2b5)]=_0xd5f12d,webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x4a3378),_0x3f6509=_0x354275[_0x8c4f97(0x264)],_0x218c71=_0x354275['instanceType'],_0x1cc82b=null,_0x3b0620=null,_0xd27d19=null,_0x153093=_0x354275[_0x8c4f97(0x24c)],_0x358dd9=_0x354275[_0x8c4f97(0x1ec)],_0x429638=_0x354275['maxNodes'],_0xc560ef=_0x5334b6[_0x8c4f97(0x11e)],_0x32daad=_0x5334b6['browserVersion'];if(_0x32b966[_0x8c4f97(0x17a)](_0x354275['privateGrid'],undefined)&&_0x354275['privateGrid']){if(_0x32b966[_0x8c4f97(0x1fa)](_0x32b966[_0x8c4f97(0x192)],_0x32b966[_0x8c4f97(0x26e)])){const _0x88af66={'azure.workload.identity/use':_0x32b966[_0x8c4f97(0x14d)],..._0x13461b[0x0]['spec']['template'][_0x8c4f97(0x176)][_0x8c4f97(0x27f)]};_0x35a877[0x0]['spec'][_0x8c4f97(0x28e)][_0x8c4f97(0x176)]['labels']=_0x88af66,_0x32a314[0x0][_0x8c4f97(0x134)][_0x8c4f97(0x28e)][_0x8c4f97(0x134)]['serviceAccountName']=_0x32b966[_0x8c4f97(0x2c7)];}else global_registry['isPrivateGrid']=!![];}_0x32b966[_0x8c4f97(0x226)](updateGlobalRegistryWithConfig,_0x13ea63,_0x43711a,_0x259cb5,_0x3f6509,_0x218c71,_0x153093,_0x354275,_0xc560ef,_0x32daad,_0x358dd9,_0x429638,_0x4de9a7[_0x8c4f97(0x18d)]),global_registry[_0x8c4f97(0x1c4)]&&(_0x32b966[_0x8c4f97(0x19b)](_0x32b966[_0x8c4f97(0x29b)],_0x32b966['Okkci'])?_0x2929ba[_0x8c4f97(0x199)](_0x8c4f97(0x156)+_0x1ea683[_0x8c4f97(0x20a)](_0x5b24c1)+'\x20'):_0x32b966[_0x8c4f97(0x231)](updateGlobalRegistryForHubHa,_0x5334b6[_0x8c4f97(0x1cf)]));}else _0x473f12['isPrivateGrid']=!![];}else{if(_0x32b966[_0x8c4f97(0x1c7)](_0x32b966[_0x8c4f97(0x175)],_0x32b966[_0x8c4f97(0x12f)]))_0x394000[_0x8c4f97(0x10c)]();else{const _0x48b36b=_0x32b966[_0x8c4f97(0x1e9)][_0x8c4f97(0x13c)]('|');let _0x4c060d=0x0;while(!![]){switch(_0x48b36b[_0x4c060d++]){case'0':global_registry['browserVersion']=_0x5334b6['browserVersion'];continue;case'1':logger[_0x8c4f97(0x199)](_0xd5f12d);continue;case'2':global_registry[_0x8c4f97(0x11e)]=_0x5334b6[_0x8c4f97(0x11e)];continue;case'3':const _0x1a6778={};_0x1a6778['type']=WS_EVENTS[_0x8c4f97(0x18b)],_0x1a6778[_0x8c4f97(0x2b5)]=_0x32b966['ZmSbM'],webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x1a6778);continue;case'4':global_registry[_0x8c4f97(0x1b4)]=_0x259cb5;continue;case'5':_0xd5f12d='Spawning\x20the\x20grid\x20'+_0x41d2c9+_0x8c4f97(0x23c)+_0x43711a+'\x27';continue;case'6':global_registry['cloudProvider']=_0x13ea63;continue;case'7':global_registry[_0x8c4f97(0x165)]=_0x43711a;continue;case'8':const _0x1b8313={};_0x1b8313[_0x8c4f97(0x1e3)]=WS_EVENTS['LOG'],_0x1b8313[_0x8c4f97(0x2b5)]=_0xd5f12d,webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x1b8313);continue;}break;}}}}const _0x3856c2=await _0x32b966[_0x8c4f97(0x215)](getCloudProviderObject,_0x13ea63,_0x43711a,_0x41d2c9,_0x28d96d,webSocketUtils,_0x4de9a7);_0x32b966[_0x8c4f97(0x17a)](_0x13ea63,AZURE)&&(_0x32b966['bCYqm'](_0x32b966['RnKja'],_0x32b966[_0x8c4f97(0xfd)])?_0x3856c2[_0x8c4f97(0x10c)]():_0xaf0bed['isPrivateGrid']=!![]);let _0x3acc22;if(_0x32b966[_0x8c4f97(0x207)](_0x4cbba0,![])){_0xd5f12d=_0x8c4f97(0x1f2)+_0x259cb5+').';const _0x20725a={};_0x20725a[_0x8c4f97(0x1e3)]=WS_EVENTS[_0x8c4f97(0x233)],_0x20725a[_0x8c4f97(0x2b5)]=_0xd5f12d,webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x20725a),logger[_0x8c4f97(0x199)](_0xd5f12d);const _0x97c88c=await _0x3856c2[_0x8c4f97(0x255)]();if(_0x97c88c){if(_0x32b966[_0x8c4f97(0x11f)](_0x32b966[_0x8c4f97(0x245)],_0x32b966[_0x8c4f97(0x204)])){const _0x3cbd99={};_0x3cbd99[_0x8c4f97(0x15d)]=_0x32b966[_0x8c4f97(0x22e)],_0x3cbd99['type']=_0x32b966[_0x8c4f97(0x2b7)];const _0x358686={};_0x358686[_0x8c4f97(0x15d)]=_0x32b966[_0x8c4f97(0x124)],_0x358686[_0x8c4f97(0x1e3)]=_0x32b966['myiYY'];const _0xf0d681={};_0xf0d681[_0x8c4f97(0x15d)]=_0x32b966[_0x8c4f97(0x28b)],_0xf0d681[_0x8c4f97(0x1e3)]=_0x32b966[_0x8c4f97(0x2b7)];const _0x5383b0={};_0x5383b0['description']=_0x32b966[_0x8c4f97(0x259)],_0x5383b0['type']=_0x32b966[_0x8c4f97(0x2b7)];const _0x46fae8={};_0x46fae8[_0x8c4f97(0x15d)]=_0x32b966[_0x8c4f97(0x22b)],_0x46fae8[_0x8c4f97(0x1e3)]=_0x32b966[_0x8c4f97(0x2b7)];const _0x504613={};_0x504613[_0x8c4f97(0x15d)]=_0x32b966[_0x8c4f97(0x2bd)],_0x504613[_0x8c4f97(0x1e3)]=_0x32b966[_0x8c4f97(0x2b7)];const _0x5aaffc={};_0x5aaffc['description']=_0x32b966[_0x8c4f97(0x135)],_0x5aaffc[_0x8c4f97(0x1e3)]=_0x32b966[_0x8c4f97(0x1b2)],_0x5aaffc[_0x8c4f97(0x11c)]=![];const _0x315884={};_0x315884['description']=_0x32b966['Jxrlj'],_0x315884['type']=_0x32b966[_0x8c4f97(0x1b2)],_0x315884[_0x8c4f97(0x11c)]=![];const _0x1f11a8={};_0x1f11a8[_0x8c4f97(0x15d)]=_0x32b966[_0x8c4f97(0x1d1)],_0x1f11a8['type']=_0x32b966[_0x8c4f97(0x1b2)],_0x1f11a8[_0x8c4f97(0x11c)]=![];const _0x5cf5c9={};return _0x5cf5c9[_0x8c4f97(0x219)]=_0x3cbd99,_0x5cf5c9[_0x8c4f97(0x1e4)]=_0x358686,_0x5cf5c9[_0x8c4f97(0x143)]=_0xf0d681,_0x5cf5c9['cloud-provider']=_0x5383b0,_0x5cf5c9[_0x8c4f97(0x218)]=_0x46fae8,_0x5cf5c9[_0x8c4f97(0x102)]=_0x504613,_0x5cf5c9[_0x8c4f97(0x181)]=_0x5aaffc,_0x5cf5c9[_0x8c4f97(0x251)]=_0x315884,_0x5cf5c9[_0x8c4f97(0x202)]=_0x1f11a8,_0x33f325[_0x8c4f97(0x197)](_0x57add6['create'])[_0x8c4f97(0x1e5)](_0x4ae4ee)[_0x8c4f97(0x14a)](_0x5cf5c9)['help'](_0x32b966[_0x8c4f97(0x241)])[_0x8c4f97(0x1a0)];}else{const _0x2fbf95={};_0x2fbf95[_0x8c4f97(0x1e3)]=WS_EVENTS[_0x8c4f97(0x233)],_0x2fbf95[_0x8c4f97(0x2b5)]=_0x8c4f97(0x13b)+_0x43711a+_0x8c4f97(0x16a),webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x2fbf95,_0x32b966[_0x8c4f97(0x222)]),logger[_0x8c4f97(0x199)](_0x8c4f97(0x13b)+_0x43711a+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x4cbba0=!![];if(_0x32b966[_0x8c4f97(0x1fb)](_0x555555,!![])){if(_0x32b966[_0x8c4f97(0x179)](_0x32b966[_0x8c4f97(0x18e)],_0x32b966[_0x8c4f97(0x1eb)]))throw new Error(_0x8c4f97(0x13b)+_0x43711a+_0x8c4f97(0x19a));else{const _0x5b4be2={};_0x5b4be2[_0x8c4f97(0x1e3)]=_0x3d5128[_0x8c4f97(0x233)],_0x5b4be2['message']=_0x8c4f97(0x13b)+_0x1637b3+_0x8c4f97(0x16a),_0x317614[_0x8c4f97(0x287)](_0x42144f,_0x5b4be2,_0x32b966[_0x8c4f97(0x222)]),_0x131f6b['info'](_0x8c4f97(0x13b)+_0x5e71cd+_0x8c4f97(0x16a)),_0x4f90fb=!![];if(_0x32b966[_0x8c4f97(0x1f9)](_0x4de023,!![]))throw new _0x2d253e(_0x8c4f97(0x13b)+_0x325e40+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}}}else{const _0x1490c2={};_0x1490c2[_0x8c4f97(0x1e3)]=WS_EVENTS[_0x8c4f97(0x233)],_0x1490c2[_0x8c4f97(0x2b5)]=_0x32b966[_0x8c4f97(0x2b1)],webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x1490c2),logger[_0x8c4f97(0x199)](_0x32b966[_0x8c4f97(0x2b1)]);const _0x4593b5=_0x32b966[_0x8c4f97(0x1d5)](_0x1cc82b,null)&&_0x32b966[_0x8c4f97(0x164)](_0x1cc82b,undefined),_0x62a359=_0x32b966['sFiFO'](_0xd27d19,null)&&_0x32b966['PYAKd'](_0xd27d19,undefined)&&_0x32b966[_0x8c4f97(0x1b9)](_0xd27d19[_0x8c4f97(0x1f3)],0x0);if(_0x4593b5){_0x32b966[_0x8c4f97(0x28a)](_0x62a359,![])&&(_0xd5f12d=_0x32b966[_0x8c4f97(0x15b)],await _0x32b966[_0x8c4f97(0x29c)](reportToGalactusAndSendToEDS,_0x4de9a7,_0x28d96d,_0xd5f12d,messageTypes[_0x8c4f97(0x256)],_0x32b966[_0x8c4f97(0x1ac)],_0x32b966[_0x8c4f97(0x1dd)],_0x32b966[_0x8c4f97(0x1a5)]),logger[_0x8c4f97(0x242)](_0xd5f12d),process[_0x8c4f97(0x2b6)](0x1));const _0x5f5588=await _0x3856c2[_0x8c4f97(0x1dc)](_0x1cc82b);_0x32b966[_0x8c4f97(0x1a4)](_0x5f5588,![])?(_0xd5f12d=_0x32b966['SiGWT'],await _0x32b966[_0x8c4f97(0x22a)](reportToGalactusAndSendToEDS,_0x4de9a7,_0x28d96d,_0xd5f12d,messageTypes['ERROR'],_0x32b966[_0x8c4f97(0x1ac)],_0x32b966['mQzca'],_0x32b966['HWGGF']),logger[_0x8c4f97(0x242)](_0xd5f12d),process[_0x8c4f97(0x2b6)](0x1)):logger[_0x8c4f97(0x199)]('Found\x20VPC:\x20'+_0x1cc82b+'\x20');const _0x18891a=await _0x3856c2[_0x8c4f97(0x15a)](_0xd27d19,_0x1cc82b);_0x32b966['Ktnjb'](_0x18891a[0x0],![])?(_0xd5f12d='Subnets:\x20'+JSON[_0x8c4f97(0x20a)](_0x18891a[0x1])+_0x8c4f97(0x2b8)+_0x1cc82b+_0x8c4f97(0x209),await _0x32b966['sRGUp'](reportToGalactusAndSendToEDS,_0x4de9a7,_0x28d96d,_0xd5f12d,messageTypes[_0x8c4f97(0x256)],_0x32b966['aZFRg'],_0x32b966['TjCMq'],_0x32b966['HWGGF']),logger[_0x8c4f97(0x242)](_0xd5f12d),process[_0x8c4f97(0x2b6)](0x1)):logger[_0x8c4f97(0x199)](_0x8c4f97(0x156)+JSON[_0x8c4f97(0x20a)](_0xd27d19)+'\x20'),[_0x1cc82b,_0xd27d19]=await _0x3856c2[_0x8c4f97(0x13a)](_0x1cc82b,_0xd27d19);}else{const _0x31863a=_0x32b966[_0x8c4f97(0x127)][_0x8c4f97(0x13c)]('|');let _0x3897b6=0x0;while(!![]){switch(_0x31863a[_0x3897b6++]){case'0':const _0x491127={};_0x491127[_0x8c4f97(0x1e3)]=WS_EVENTS[_0x8c4f97(0x233)],_0x491127['message']=_0x32b966[_0x8c4f97(0x29f)],webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x491127);continue;case'1':[_0x1cc82b,_0xd27d19]=await _0x3856c2[_0x8c4f97(0x13a)](_0x1cc82b,_0xd27d19);continue;case'2':const _0x72da8d={};_0x72da8d['type']=WS_EVENTS[_0x8c4f97(0x233)],_0x72da8d['message']=_0x32b966[_0x8c4f97(0xf7)],webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x72da8d);continue;case'3':logger[_0x8c4f97(0x199)](_0x32b966[_0x8c4f97(0xf7)]);continue;case'4':logger[_0x8c4f97(0x199)](_0x32b966['WPOFF']);continue;}break;}}}}_0x4cbba0&&_0x32b966[_0x8c4f97(0x2a3)](_0x13ea63,AZURE)&&(await _0x3856c2[_0x8c4f97(0x267)](),await _0x3856c2[_0x8c4f97(0x1cb)]());const [_0x59b71a,_0x4a75ab,_0x209429,_0x2963e5,_0x41388d,_0x486b9b,_0x146779]=await _0x32b966[_0x8c4f97(0x1ab)](createK8sClient,_0x3856c2,_0x4de9a7[_0x8c4f97(0x1e7)]);_0x32b966['bCGCz'](_0x4cbba0,![])&&_0x32b966[_0x8c4f97(0x17d)](_0x13ea63,AWS)&&(global_registry[_0x8c4f97(0x2b3)]=!![],_0x3acc22=await _0x3856c2[_0x8c4f97(0x184)](_0x59b71a,_0x4de9a7));if(_0x32b966[_0x8c4f97(0x12d)](_0x4cbba0,![])&&global_registry[_0x8c4f97(0x1c4)])try{await _0x3856c2[_0x8c4f97(0x16b)](_0x486b9b,_0x146779,_0x4de9a7,_0x1cc82b,_0xd27d19);const _0x54a706={};_0x54a706[_0x8c4f97(0x1e3)]=WS_EVENTS[_0x8c4f97(0x233)],_0x54a706[_0x8c4f97(0x2b5)]=_0x32b966[_0x8c4f97(0x1d4)],webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x54a706);!await _0x32b966[_0x8c4f97(0x109)](namespaceExists,_0x59b71a,global_registry[_0x8c4f97(0x10d)])&&await _0x32b966[_0x8c4f97(0x1ab)](createNamespace,_0x59b71a,global_registry['hubHaNameSpace']);logger[_0x8c4f97(0x199)](_0x32b966['tlGhD']);let _0x1e78cb=await fs[_0x8c4f97(0x132)](path[_0x8c4f97(0x278)](__dirname,_0x32b966[_0x8c4f97(0x20c)],_0x32b966[_0x8c4f97(0x1a1)],_0x32b966[_0x8c4f97(0x1cc)],_0x32b966[_0x8c4f97(0x19f)]),_0x32b966[_0x8c4f97(0x2b4)]);_0x1e78cb=_0x1e78cb[_0x8c4f97(0x1a6)](/<RedisClientPassword>/g,_0x32b966[_0x8c4f97(0x1d6)](encodeBase64,global_registry['redisPassword'])),_0x1e78cb=_0x1e78cb[_0x8c4f97(0x1a6)](/<KafkaClientPassword>/g,_0x32b966['IOwex'](encodeBase64,global_registry[_0x8c4f97(0x1c2)])),_0x1e78cb=_0x1e78cb[_0x8c4f97(0x1a6)](/<BstackUsername>/g,_0x32b966[_0x8c4f97(0x2a2)](encodeBase64,global_registry[_0x8c4f97(0x210)])),_0x1e78cb=_0x1e78cb['replace'](/<BstackAccessKey>/g,_0x32b966['WgbgL'](encodeBase64,global_registry[_0x8c4f97(0x201)]));const _0x562fdf=yaml['loadAll'](_0x1e78cb);await _0x32b966['rtjYP'](kubeApply,_0x562fdf,_0x146779),logger[_0x8c4f97(0x199)](_0x32b966[_0x8c4f97(0x129)]);let _0x559f62=_0x32b966[_0x8c4f97(0x2a8)];if(_0x32b966[_0x8c4f97(0x10a)](_0x13ea63,AZURE))_0x559f62=_0x32b966[_0x8c4f97(0x188)];else _0x32b966[_0x8c4f97(0x250)](_0x13ea63,GCP)&&(_0x559f62=_0x32b966['WQZyT']);logger['info'](_0x32b966[_0x8c4f97(0x1aa)]);let _0x1f64ed=await fs[_0x8c4f97(0x132)](path['join'](__dirname,_0x32b966['TAQPw'],_0x32b966[_0x8c4f97(0x1a1)],_0x32b966[_0x8c4f97(0x1cc)],_0x32b966[_0x8c4f97(0x114)]),_0x32b966[_0x8c4f97(0x2b4)]);_0x1f64ed=_0x1f64ed[_0x8c4f97(0x1a6)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x1f64ed=_0x1f64ed[_0x8c4f97(0x1a6)](/<StorageClassName>/g,_0x559f62);const _0x52249e=yaml['loadAll'](_0x1f64ed);await _0x32b966[_0x8c4f97(0x1ab)](kubeApply,_0x52249e,_0x146779),logger[_0x8c4f97(0x199)](_0x32b966[_0x8c4f97(0x26a)]),logger[_0x8c4f97(0x199)](_0x32b966[_0x8c4f97(0x221)]);let _0x534711=await fs['readFileAsync'](path[_0x8c4f97(0x278)](__dirname,_0x32b966[_0x8c4f97(0x20c)],_0x32b966['XMoow'],_0x32b966[_0x8c4f97(0x1cc)],_0x32b966[_0x8c4f97(0x105)]),_0x32b966['UtHzP']);_0x534711=_0x534711[_0x8c4f97(0x1a6)](/<HubHaNameSpace>/g,global_registry[_0x8c4f97(0x10d)]),_0x534711=_0x534711[_0x8c4f97(0x1a6)](/<StorageClassName>/g,_0x559f62);const _0xe2e508=yaml['loadAll'](_0x534711);await _0x32b966[_0x8c4f97(0x109)](kubeApply,_0xe2e508,_0x146779),logger['info'](_0x32b966[_0x8c4f97(0x2bc)]),logger[_0x8c4f97(0x199)](_0x32b966['UeHNV']);let _0x585deb=await fs[_0x8c4f97(0x132)](path[_0x8c4f97(0x278)](__dirname,_0x32b966[_0x8c4f97(0x20c)],_0x32b966['XMoow'],_0x32b966[_0x8c4f97(0x1cc)],_0x32b966[_0x8c4f97(0x10b)]),_0x32b966[_0x8c4f97(0x2b4)]);_0x585deb=_0x585deb[_0x8c4f97(0x1a6)](/<UploaderImageVersion>/g,global_registry[_0x8c4f97(0x17c)]),_0x585deb=_0x585deb[_0x8c4f97(0x1a6)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']);const _0x888f78=yaml['loadAll'](_0x585deb);_0x32b966[_0x8c4f97(0x28a)](global_registry['cloudProvider'],AZURE)&&(_0x888f78[0x0]['spec']['template'][_0x8c4f97(0x176)][_0x8c4f97(0x27f)]={'azure.workload.identity/use':_0x32b966[_0x8c4f97(0x14d)],..._0x888f78[0x0][_0x8c4f97(0x134)][_0x8c4f97(0x28e)][_0x8c4f97(0x176)][_0x8c4f97(0x27f)]},_0x888f78[0x0]['spec'][_0x8c4f97(0x28e)][_0x8c4f97(0x134)]['serviceAccountName']=_0x32b966[_0x8c4f97(0x2c7)]);await _0x32b966[_0x8c4f97(0x2ba)](kubeApply,_0x888f78,_0x146779),logger[_0x8c4f97(0x199)](_0x32b966[_0x8c4f97(0x166)]);const _0x4f2a32={};_0x4f2a32[_0x8c4f97(0x1e3)]=WS_EVENTS[_0x8c4f97(0x233)],_0x4f2a32[_0x8c4f97(0x2b5)]=_0x32b966['GkZJU'],webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x4f2a32),logger[_0x8c4f97(0x199)](_0x32b966[_0x8c4f97(0x2bb)]);}catch(_0x3ea4ee){const _0x30e13d=_0x32b966[_0x8c4f97(0x1c8)]['split']('|');let _0x379b92=0x0;while(!![]){switch(_0x30e13d[_0x379b92++]){case'0':_0xd5f12d=_0x8c4f97(0x107)+_0x3ea4ee[_0x8c4f97(0x2b5)];continue;case'1':await _0x3856c2[_0x8c4f97(0x173)](_0x59b71a,global_registry['clusterRegion']);continue;case'2':await _0x32b966[_0x8c4f97(0x2a5)](reportToGalactusAndSendToEDS,_0x4de9a7,_0x28d96d,_0xd5f12d,messageTypes[_0x8c4f97(0x256)],_0x32b966[_0x8c4f97(0x1ac)],_0x32b966[_0x8c4f97(0x108)],_0x32b966['HWGGF']);continue;case'3':logger[_0x8c4f97(0x242)](_0xd5f12d);continue;case'4':process[_0x8c4f97(0x2b6)](0x1);continue;}break;}}try{_0xb121d7=_0x32b966[_0x8c4f97(0x1d6)](kebabCase,_0x41d2c9),logger[_0x8c4f97(0x199)](_0x32b966['rTArr']);const _0x358794={};_0x358794[_0x8c4f97(0x1e3)]=WS_EVENTS[_0x8c4f97(0x233)],_0x358794[_0x8c4f97(0x2b5)]=_0x32b966['rTArr'],webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x358794);if(_0x32b966[_0x8c4f97(0x111)](_0xb121d7,_0x32b966[_0x8c4f97(0x2c7)])){const _0x2b49e4={};_0x2b49e4[_0x8c4f97(0x1c9)]=_0x32b966['uFIrt'],_0x2b49e4[_0x8c4f97(0x27c)]=_0x32b966[_0x8c4f97(0x1fc)];const _0x55d7c1={};_0x55d7c1[_0x8c4f97(0x121)]=_0xb121d7,_0x55d7c1[_0x8c4f97(0x1b1)]=_0x2b49e4;const _0x4b2cf3={};_0x4b2cf3[_0x8c4f97(0x176)]=_0x55d7c1;const _0x19441d=_0x4b2cf3,_0x295d4b={};_0x295d4b[_0x8c4f97(0x238)]=_0x19441d,await _0x59b71a[_0x8c4f97(0x139)](_0x295d4b),logger[_0x8c4f97(0x199)](_0x32b966[_0x8c4f97(0x25e)]);}const _0x2eef2e={};_0x2eef2e[_0x8c4f97(0x1e3)]=WS_EVENTS[_0x8c4f97(0x233)],_0x2eef2e[_0x8c4f97(0x2b5)]=_0x32b966[_0x8c4f97(0x1ed)],webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x2eef2e);const _0x5a21cc={};_0x5a21cc['type']=WS_EVENTS[_0x8c4f97(0x233)],_0x5a21cc[_0x8c4f97(0x2b5)]=_0x32b966[_0x8c4f97(0x21b)],webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x5a21cc),logger['info'](_0x32b966['PLkCA']);let _0x1bdcce={};_0x32b966['WZXFd'](_0x13ea63,AZURE)&&(_0x1bdcce={'clientId':await _0x3856c2[_0x8c4f97(0x112)]('turboscale-managed-identity-'+_0x43711a)});await _0x32b966[_0x8c4f97(0x258)](addGridComponents,_0x59b71a,_0x4a75ab,_0x209429,_0x2963e5,_0xb121d7,_0x43711a,_0x3acc22,_0x41388d,_0x146779,_0x1bdcce),_0xd5f12d=_0x32b966[_0x8c4f97(0x1bf)],logger[_0x8c4f97(0x199)](_0xd5f12d);const _0x1f4ed0={};_0x1f4ed0['type']=WS_EVENTS[_0x8c4f97(0x233)],_0x1f4ed0[_0x8c4f97(0x2b5)]=_0xd5f12d,webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x1f4ed0),_0xd5f12d=_0x32b966[_0x8c4f97(0x22f)],logger[_0x8c4f97(0x199)](_0xd5f12d);const _0x4924c0={};_0x4924c0[_0x8c4f97(0x1e3)]=WS_EVENTS[_0x8c4f97(0x233)],_0x4924c0['message']=_0xd5f12d,webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0x4924c0),await _0x32b966[_0x8c4f97(0x2be)](waitForDeployment,_0x4a75ab,_0xb121d7,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x17c306=await _0x32b966[_0x8c4f97(0x159)](getNamespaceUID,_0x59b71a,_0xb121d7),_0xe88bd1=global_registry[_0x8c4f97(0x22d)]?_0x32b966[_0x8c4f97(0x2c6)]:_0x32b966[_0x8c4f97(0x236)],_0x4ef01a={};_0x4ef01a[_0x8c4f97(0x121)]=_0xe88bd1,_0x4ef01a[_0x8c4f97(0x285)]=_0x32b966['Hansv'];const _0x24cb73=await _0x59b71a[_0x8c4f97(0x115)](_0x4ef01a);let _0x129ed8=_0x3856c2[_0x8c4f97(0x297)](_0x24cb73)+'/'+_0xb121d7,_0x1c4654=_0x32b966[_0x8c4f97(0xff)];try{const _0x3f7bb9='https://'+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x17c306,_0x4f3279=await _0x32b966['GkyXp'](got,_0x3f7bb9,_0x3fce1f);(_0x32b966[_0x8c4f97(0x249)](_0x4f3279,null)||_0x32b966[_0x8c4f97(0x1e2)](_0x4f3279,undefined))&&(_0xd5f12d=_0x32b966[_0x8c4f97(0x26c)],await _0x32b966[_0x8c4f97(0x120)](reportToGalactusAndSendToEDS,_0x4de9a7,_0x28d96d,_0xd5f12d,messageTypes['ERROR'],_0x32b966['aZFRg'],_0x32b966[_0x8c4f97(0x1af)],_0x32b966[_0x8c4f97(0x1a5)]),logger['error'](_0xd5f12d),process['exit'](0x1));_0x32b966[_0x8c4f97(0x293)](_0x4f3279[_0x8c4f97(0x28d)],0x191)&&(_0xd5f12d=_0x32b966[_0x8c4f97(0x247)],await _0x32b966[_0x8c4f97(0x1d0)](reportToGalactusAndSendToEDS,_0x4de9a7,_0x28d96d,_0xd5f12d,messageTypes[_0x8c4f97(0x256)],_0x32b966[_0x8c4f97(0x1ac)],_0x32b966[_0x8c4f97(0x237)],_0x32b966[_0x8c4f97(0x1a5)]),logger[_0x8c4f97(0x242)](_0xd5f12d),process[_0x8c4f97(0x2b6)](0x1));_0x32b966[_0x8c4f97(0x1e1)](_0x4f3279[_0x8c4f97(0x28d)],0xc8)&&(_0xd5f12d='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x4f3279),await _0x32b966[_0x8c4f97(0x1ca)](reportToGalactusAndSendToEDS,_0x4de9a7,_0x28d96d,_0xd5f12d,messageTypes['ERROR'],_0x32b966[_0x8c4f97(0x1ac)],_0x32b966[_0x8c4f97(0x180)],_0x32b966[_0x8c4f97(0x1a5)]),logger[_0x8c4f97(0x242)](_0xd5f12d),process['exit'](0x1));const _0xd8ec97=JSON[_0x8c4f97(0x29a)](_0x4f3279[_0x8c4f97(0x238)]);_0xd8ec97[_0x8c4f97(0x2bf)]&&(_0x129ed8=_0xd8ec97['route53'],_0x1c4654=_0x32b966[_0x8c4f97(0x280)]),global_registry[_0x8c4f97(0x22d)]&&(_0x1c4654=_0x32b966[_0x8c4f97(0xff)]);}catch(_0x1ca67a){}_0xd5f12d=_0x8c4f97(0x24a)+_0x129ed8+'\x20',logger['info'](_0xd5f12d);const _0x2bfe2c={};_0x2bfe2c['type']=WS_EVENTS[_0x8c4f97(0x233)],_0x2bfe2c[_0x8c4f97(0x2b5)]=_0xd5f12d,webSocketUtils['sendEventToBackend'](_0x28d96d,_0x2bfe2c),_0xd5f12d=_0x8c4f97(0x279)+_0x1c4654+_0x8c4f97(0x25b)+_0x129ed8+_0x8c4f97(0x2ac),logger[_0x8c4f97(0x199)](_0xd5f12d);const _0xd798d1={};_0xd798d1['type']=WS_EVENTS[_0x8c4f97(0x233)],_0xd798d1['message']=_0xd5f12d,webSocketUtils[_0x8c4f97(0x287)](_0x28d96d,_0xd798d1);const _0xcce1c5={};_0xcce1c5['type']=WS_EVENTS[_0x8c4f97(0x2c3)],_0xcce1c5[_0x8c4f97(0x2b5)]=_0x8c4f97(0x153)+_0x129ed8,webSocketUtils['sendEventToBackend'](_0x28d96d,_0xcce1c5),await webSocketUtils[_0x8c4f97(0x150)](0x7d0);}catch(_0x1f58ba){logger[_0x8c4f97(0x242)](_0x8c4f97(0x1ff)+_0x1f58ba+'\x20\x0a'+JSON[_0x8c4f97(0x20a)](_0x1f58ba[_0x8c4f97(0x178)]));if(_0x32b966[_0x8c4f97(0x2c2)](_0x4cbba0,![]))try{logger[_0x8c4f97(0x199)](_0x32b966[_0x8c4f97(0x14f)]),await _0x32b966[_0x8c4f97(0x17e)](removeGridComponents,_0x59b71a,_0x4a75ab,_0x209429,_0x2963e5,_0xb121d7),await _0x3856c2[_0x8c4f97(0x173)](_0x59b71a,global_registry[_0x8c4f97(0x1b4)]);}catch(_0x57becd){logger[_0x8c4f97(0x242)](_0x8c4f97(0x163)+_0x57becd+'\x20\x0a'+JSON[_0x8c4f97(0x20a)](_0x57becd[_0x8c4f97(0x178)]));}throw _0x1f58ba;}}catch(_0x256745){const _0x3964d5='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x256745+'\x20\x0a'+JSON[_0x8c4f97(0x20a)](_0x256745[_0x8c4f97(0x178)]);if(_0x28d96d){const _0x1b6d32={};_0x1b6d32['type']=WS_EVENTS[_0x8c4f97(0x233)],_0x1b6d32[_0x8c4f97(0x2b5)]=_0x3964d5,webSocketUtils['sendEventToBackend'](_0x28d96d,_0x1b6d32,_0x32b966['HWGGF'],!![]);}await webSocketUtils[_0x8c4f97(0x150)](0x7d0);const _0x2c2240={};_0x2c2240[_0x8c4f97(0x242)]=_0x3964d5,await _0x32b966[_0x8c4f97(0x2c1)](sendInstrumentationEvent,_0x4de9a7,_0x32b966['aZFRg'],messageTypes[_0x8c4f97(0x256)],_0x32b966[_0x8c4f97(0x1db)],_0x2c2240,_0x4de9a7),logger['error'](_0x3964d5);}process[_0x8c4f97(0x2b6)](0x0);};
1
+ function a9_0x1dad(){const _0x5c74d6=['hubHaNameSpace','jMJQm','pRUss','BPERO','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','QZGVT','mMXFh','fcJZB','QJcLt','sendEventToBackend','NfGiP','14707566fiixmG','create-grid-checks-null-response','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','wtRkq','faQwN','uuid','createOtherResources','ItnaC','SmBIT','JNtif','zflGa','cVAsF','YtrRH','name','password','kFZoq','readNamespacedService','tLTHz','cluster-autoupgrade','MgLYh','XTTRt','vavow','private-grid','RgQND','fOvYR','securityGroups','CumYA','sBCwi','pDmgK','ZNHZn','bstackUsername','get-grid-url-auth-failed','enableHubHa','rmjsy','QlCWo','wQtIT','non-aws-azure-cluster','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','wWVkd','uVzxN','isVPCPresent','clusterAutoupgrade','loadAll','Found\x20VPC:\x20','yVzAc','tGWif','sendResourceDataToHST','create-grid-checks-non-200','QHfIA','get-grid-url-non-200','tQiWA','../..','description','Found\x20Subnets:\x20','jYTDB','connectionTimeout','kxekP','FfGYz','Namespace\x20Created','kzNFS','uqNlf','user','kTbBS','aUXIw','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','gridProfile','xYuUJ','js-yaml','oKZBu','Adding\x20Secret\x20Mapping','zjzOY','s3bucket','options','HHIeW','Created\x20Hub\x20HA\x20resources','usage','FmKZb','utf-8','gridProfiles','EeKxf','BFfSq','grid','create-grid-checks-auth-failed','newCluster','turboscale-uploader.yaml','juxHl','lHqOz','Added\x20Turboscale\x20Uploader\x20deployment.','setupHubHa','4586264NWkmxp','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','serviceAccountName','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.','bOSpq','JhRnt','prespawned-cluster-args-not-passed','boolean','USFOm','fHnWm','LoLIq','Adding\x20Redis\x20deployment...','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','931266romElc','EwlCs','cptBx','grid-spawning-failed','region','GET','mKTDY','stazc','DIGar','setupAutoscaler','UkRNzNYCBU','existsSync','init-not-called','aNJYs','zwKOq','XAYtH','gweIS','INFO','split','Grid\x20spawned\x20on\x20the\x20cluster','browserstack-secret.yaml','fHgCC','labels','Skip\x20insecure\x20cert\x20verification.','uIbdi','AUeEG','YLtoN','length','EfZYO','setupNewCluster','\x20are\x20not\x20present\x20in\x20VPC:\x20','JjWmZ','CLI_RUN_FINISHED','2|3|0|1|4','sdGfA','RFdOu','Hub\x20HA\x20setup\x20completed\x20successfully.','oRjEI','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','readFileSync','ovhbt','fElIe','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','pre-spawned-invalid-subnets','uploaderVersion','RooDX','clusterAutoUpgrade','hubharesources','Spawning\x20the\x20grid\x20','MFWud','dtSVr','updateClusterAlreadyPresent','raXmD','EhGSy','dZtRO','vRcfE','epilogue','../../utils/webSocketUtils','../../config/logger','WvWqe','../../config/constants','cSLbc','CLI_RUN_STARTED','kafkaUploader','WaWwF','spec','concurrency','kHjJL','azurefile-csi-premium','requestId','JwKyt','instanceType','rGaMA','Creating\x20Hub\x20HA\x20resources','ingress-nginx','info','iXFKc','IpfSF','ingress-nginx-controller','DBOMk','nnsrW','<UsernamePlaceholder>','Envgn','Will\x20be\x20spawning\x20the\x20grid\x20','uPmjF','vpc','premium-rwo','cloud-provider','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','includes','iEJSJ','Wbrbz','Cluster\x20','sKMvL','kZEsx','TphNl','VArjX','stack','YnEmr','MEtQY','browserVersion','BYvsm','yZnNi','JGsUs','nKJKn','aQVUC','IyGkS','KMXOr','lKLZk','hKzNr','uploaderImageVersion','type','ZfECK','lfcBR','isClusterPresent','cTEKz','https','jKcqp','rqmJF','route53','YvPaS','hubVersion','handler','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','template','sRjdR','got','WdXpr','deleteCluster','QHJwm','KWggQ','CvxVC','isPrivateGrid','https://','NThTm','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','AbfLo','<PasswordPlaceholder>','ACVSc','ugxwI','ELBfh','CkyvG','builder','create-grid-checks-grid-already-exists','DWGPb','fThMQ','Create\x20a\x20private/public\x20grid.','kBgTw','annotations','bVzre','vRJYp','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','Spawning\x20Grid\x20on\x20the\x20Cluster','ZjpmV','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','FdDNr','WsDDs','OmZdc','Oukgn','Create\x20a\x20new\x20Automation\x20grid.','stringify','QrDzM','APdGF','tUDVU','alreadyPresent','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','wKAKI','NdKAN','hub-ha','BwEUw','LOG','nmXMa','toLowerCase','vmbec','205544jOSBwm','hubHa','BtfFx','readFileAsync','aJjEy','ERROR','bHfsO','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','4|3|2|0|1','mOcMO','Creating\x20namespace','default','desc','xiVOu','8|3|6|2|5|4|1|7|0','clusterName','WGOIJ','DXBcW','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','../../utils/instrumentationUtils','RZsBq','bitnami-kafka.yaml','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','subnets','create-grid-checks-invalid-profile','YbxtV','393566JgTGwg','45mSvUOw','VXJTX','skip-tls-cert-verify','WeaPp','message','KHfBi','MyGLw','WBIFi','gridProfileId','gridName','rifDL','getResourceClientId','yfcme','Cluster:\x20','TpMeS','WDjar','Namespace\x20created','irNAW','QfIiV','help','nwfQL','body','turboscale-managed-identity-','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','SpJxT','HQRFi','11178qstOOh','Epyd5nXbRK','grid-name','LqUfu','usimW','dCZuS','fRjKA','cloudProvider','grid-profile','../../utils/utilityMethods','browserstack','Browserstack','XldCK','ooDbk','nLgxS','parse','343gcrPAn','pre-spawned-subnets-not-selected','efs-csi','\x20in\x20existing\x20cluster\x20\x27','zHLPl','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','://','skipTlsCertVerify','YTEbf','/packages/cli/get-grid-url?gridIdentifier=','isNewAWSCluster','Added\x20Kafka\x20deployment.','248194iQrpya','username','NaoxS','redisPassword','Flag\x20to\x20enable\x20Hub\x20HA','templates','WebSocket','string','exit','sIpUT','QsjDo','nCphl','error','pYCub','wlMpL','DPulr','OhQyo','DXOwF','tVTWH','Cluster\x20created\x20successfully','AbKyb','Added\x20Redis\x20deployment.','cTyWl','FCNvM','../../cloudproviders/utils','warn','join','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','privateGrid','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','DpatN','../../utils/createk8sClient','namespace','argv','imZBb','ulNDA','clusterRegion','fBeQJ','\x27\x20grid\x20profile','bstackAccesskey','statusCode','udLhy','bitnami-redis.yaml','pvJUK','QmzXf','debug','vFFTU','SiiMe','addListeners','fDQxV','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','LCjMU','create','WfCBd','5|12|13|1|6|4|9|8|0|3|11|2|10|7|14|15','metadata','delay','sxlNQ','Deleting\x20the\x20CloudFormation\x20Stacks','zeMDS','Gtulw','Grid\x20can\x20be\x20accessed\x20at:\x20','XdkKO','MlBmz','Adding\x20Turboscale\x20Uploader\x20deployment...','\x20using\x20\x27','mJKxI','CLI\x20run\x20finished:\x20','minNodes','YzaKH','replace','maxNodes','eiXku','SMFed','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','cluster-name','kXnKL','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','uErum','kafkaPassword','wGlAk'];a9_0x1dad=function(){return _0x5c74d6;};return a9_0x1dad();}function a9_0x13ad(_0x18b002,_0x1dc701){const _0x1dadd3=a9_0x1dad();return a9_0x13ad=function(_0x13ad44,_0x481af3){_0x13ad44=_0x13ad44-0x154;let _0x1a02ac=_0x1dadd3[_0x13ad44];return _0x1a02ac;},a9_0x13ad(_0x18b002,_0x1dc701);}const a9_0x3129a7=a9_0x13ad;(function(_0x4a91e7,_0x2fd694){const _0x160e7a=a9_0x13ad,_0x12782b=_0x4a91e7();while(!![]){try{const _0x3befa8=parseInt(_0x160e7a(0x163))/0x1+parseInt(_0x160e7a(0x2ee))/0x2+-parseInt(_0x160e7a(0x226))/0x3+-parseInt(_0x160e7a(0x2d4))/0x4*(parseInt(_0x160e7a(0x2ef))/0x5)+parseInt(_0x160e7a(0x30a))/0x6*(-parseInt(_0x160e7a(0x157))/0x7)+-parseInt(_0x160e7a(0x219))/0x8+parseInt(_0x160e7a(0x1c0))/0x9;if(_0x3befa8===_0x2fd694)break;else _0x12782b['push'](_0x12782b['shift']());}catch(_0x5210e4){_0x12782b['push'](_0x12782b['shift']());}}}(a9_0x1dad,0x9ca95));const fs=require('fs'),ws=require('ws'),path=require('path'),yaml=require(a9_0x3129a7(0x203)),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x3129a7(0x2a4)),{v4:uuidv4}=require(a9_0x3129a7(0x1c5)),webSocketUtils=require(a9_0x3129a7(0x25f)),{logger}=require(a9_0x3129a7(0x260)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x3129a7(0x313)),{getCloudProviderObject}=require(a9_0x3129a7(0x17b)),{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_0x3129a7(0x262)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x3129a7(0x182)),{sendInstrumentationEvent}=require(a9_0x3129a7(0x2e7));exports['command']=a9_0x3129a7(0x211),exports[a9_0x3129a7(0x2e0)]=a9_0x3129a7(0x2c5),exports[a9_0x3129a7(0x2b4)]=function(_0x3740f6){const _0x1d3f5b=a9_0x3129a7,_0x140ee3={};_0x140ee3[_0x1d3f5b(0x2fb)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x140ee3[_0x1d3f5b(0x30f)]=_0x1d3f5b(0x16a),_0x140ee3[_0x1d3f5b(0x289)]=_0x1d3f5b(0x195),_0x140ee3['SINWw']='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x140ee3[_0x1d3f5b(0x2e5)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x140ee3['BwEUw']='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x140ee3['FmKZb']=_0x1d3f5b(0x2b8),_0x140ee3[_0x1d3f5b(0x1dc)]=_0x1d3f5b(0x23d),_0x140ee3[_0x1d3f5b(0x1fe)]=_0x1d3f5b(0x220),_0x140ee3['vFFTU']=_0x1d3f5b(0x167),_0x140ee3[_0x1d3f5b(0x309)]=_0x1d3f5b(0x2c0),_0x140ee3[_0x1d3f5b(0x1e7)]='help';const _0x2e01bb=_0x140ee3,_0x3af37e={};_0x3af37e[_0x1d3f5b(0x1f4)]=_0x2e01bb[_0x1d3f5b(0x2fb)],_0x3af37e[_0x1d3f5b(0x295)]=_0x2e01bb[_0x1d3f5b(0x30f)];const _0xdf7558={};_0xdf7558[_0x1d3f5b(0x1f4)]=_0x2e01bb[_0x1d3f5b(0x289)],_0xdf7558[_0x1d3f5b(0x295)]=_0x2e01bb[_0x1d3f5b(0x30f)];const _0x4a2610={};_0x4a2610[_0x1d3f5b(0x1f4)]=_0x2e01bb['SINWw'],_0x4a2610['type']=_0x2e01bb[_0x1d3f5b(0x30f)];const _0x501db4={};_0x501db4[_0x1d3f5b(0x1f4)]=_0x2e01bb[_0x1d3f5b(0x2e5)],_0x501db4[_0x1d3f5b(0x295)]=_0x2e01bb[_0x1d3f5b(0x30f)];const _0x679ebc={};_0x679ebc[_0x1d3f5b(0x1f4)]=_0x2e01bb[_0x1d3f5b(0x2cf)],_0x679ebc[_0x1d3f5b(0x295)]=_0x2e01bb[_0x1d3f5b(0x30f)];const _0x39c8f0={};_0x39c8f0[_0x1d3f5b(0x1f4)]=_0x2e01bb[_0x1d3f5b(0x20c)],_0x39c8f0[_0x1d3f5b(0x295)]=_0x2e01bb[_0x1d3f5b(0x30f)];const _0x1bdf07={};_0x1bdf07[_0x1d3f5b(0x1f4)]=_0x2e01bb[_0x1d3f5b(0x1dc)],_0x1bdf07['type']=_0x2e01bb[_0x1d3f5b(0x1fe)],_0x1bdf07['default']=![];const _0x1ee0f1={};_0x1ee0f1[_0x1d3f5b(0x1f4)]=_0x2e01bb[_0x1d3f5b(0x191)],_0x1ee0f1['type']=_0x2e01bb[_0x1d3f5b(0x1fe)],_0x1ee0f1[_0x1d3f5b(0x2df)]=![];const _0x1acec4={};_0x1acec4['description']=_0x2e01bb[_0x1d3f5b(0x309)],_0x1acec4['type']=_0x2e01bb[_0x1d3f5b(0x1fe)],_0x1acec4[_0x1d3f5b(0x2df)]=![];const _0x3f4cbc={};return _0x3f4cbc[_0x1d3f5b(0x30c)]=_0x3af37e,_0x3f4cbc[_0x1d3f5b(0x312)]=_0xdf7558,_0x3f4cbc[_0x1d3f5b(0x1ae)]=_0x4a2610,_0x3f4cbc[_0x1d3f5b(0x27d)]=_0x501db4,_0x3f4cbc[_0x1d3f5b(0x22a)]=_0x679ebc,_0x3f4cbc[_0x1d3f5b(0x1d6)]=_0x39c8f0,_0x3f4cbc[_0x1d3f5b(0x2f1)]=_0x1bdf07,_0x3f4cbc[_0x1d3f5b(0x2ce)]=_0x1ee0f1,_0x3f4cbc[_0x1d3f5b(0x1d2)]=_0x1acec4,_0x3740f6[_0x1d3f5b(0x20b)](HELP_HEADER_MESSAGE[_0x1d3f5b(0x197)])[_0x1d3f5b(0x25e)](HELP_FOOTER_MESSAGE)[_0x1d3f5b(0x208)](_0x3f4cbc)[_0x1d3f5b(0x302)](_0x2e01bb[_0x1d3f5b(0x1e7)])[_0x1d3f5b(0x184)];},exports[a9_0x3129a7(0x2a0)]=async function(_0x3370e0){const _0x5b4b1f=a9_0x3129a7,_0xcd2eb9={'TyCgj':_0x5b4b1f(0x27c),'QrDzM':'2|6|5|0|4|1|3|8|7','nnsrW':'CLI\x20run\x20started','fHgCC':_0x5b4b1f(0x306),'uqNlf':_0x5b4b1f(0x26a),'HHIeW':_0x5b4b1f(0x29a),'cSLbc':_0x5b4b1f(0x199),'AbKyb':function(_0x5d1600,_0x1b62e9){return _0x5d1600!==_0x1b62e9;},'AUeEG':function(_0xe22a80,_0x4298af,_0xcb2602,_0x1553d9,_0x3fb235,_0x334bba,_0x54e22f,_0x990d59,_0x24aaed,_0x388603,_0x42505b,_0x152b8c,_0x146692){return _0xe22a80(_0x4298af,_0xcb2602,_0x1553d9,_0x3fb235,_0x334bba,_0x54e22f,_0x990d59,_0x24aaed,_0x388603,_0x42505b,_0x152b8c,_0x146692);},'WaWwF':function(_0x100db3,_0x29ba3e){return _0x100db3(_0x29ba3e);},'tGWif':_0x5b4b1f(0x16f),'raXmD':'4|3|1|2|0','FdDNr':_0x5b4b1f(0x230),'fHnWm':_0x5b4b1f(0x30b),'jYTDB':_0x5b4b1f(0x314),'cUZYe':'Enabling\x20Hub\x20HA\x20flow','udLhy':'true','MFWud':_0x5b4b1f(0x2df),'BFfSq':_0x5b4b1f(0x17e),'DXOwF':_0x5b4b1f(0x16a),'nCphl':_0x5b4b1f(0x195),'cVAsF':_0x5b4b1f(0x1e5),'EDuDK':_0x5b4b1f(0x2ad),'NaoxS':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','XRVwO':_0x5b4b1f(0x2b8),'QJcLt':_0x5b4b1f(0x23d),'uPmjF':_0x5b4b1f(0x220),'vavow':_0x5b4b1f(0x167),'fDQxV':'Flag\x20to\x20enable\x20cluster\x20auto-upgrade','pvJUK':_0x5b4b1f(0x302),'JGsUs':_0x5b4b1f(0x17c),'NThTm':function(_0x5812fd,_0xf71110){return _0x5812fd===_0xf71110;},'usimW':function(_0x5c1a27,_0xc5e3a7){return _0x5c1a27(_0xc5e3a7);},'pRUss':'http','XAYtH':function(_0x194820){return _0x194820();},'wQtIT':function(_0x89593b,_0x4131ee){return _0x89593b===_0x4131ee;},'bVzre':_0x5b4b1f(0x269),'mJKxI':'IwGbg','iXFKc':_0x5b4b1f(0x225),'faQwN':function(_0x5e29fb,_0x5b1e48,_0x490ee3,_0x4479d0,_0x3732c2,_0x1eea55,_0x53cf26){return _0x5e29fb(_0x5b1e48,_0x490ee3,_0x4479d0,_0x3732c2,_0x1eea55,_0x53cf26);},'sxlNQ':'create-grid-called','JwKyt':_0x5b4b1f(0x232),'vRcfE':function(_0x1dabde){return _0x1dabde();},'iEJSJ':_0x5b4b1f(0x277),'kXnKL':_0x5b4b1f(0x2af),'oKESq':'Adding\x20Websocket\x20listeners','KWggQ':function(_0x433e3a,_0x207858){return _0x433e3a!==_0x207858;},'ooDbk':_0x5b4b1f(0x278),'sKMvL':function(_0x27e2a7,_0xc560c7){return _0x27e2a7===_0xc560c7;},'gweIS':_0x5b4b1f(0x249),'SpJxT':_0x5b4b1f(0x1b0),'vRJYp':function(_0x28393c,_0x27c4eb,_0x46bdfd,_0x2152cd,_0x242530,_0x2332c1,_0x1b573e,_0x17f9e8){return _0x28393c(_0x27c4eb,_0x46bdfd,_0x2152cd,_0x242530,_0x2332c1,_0x1b573e,_0x17f9e8);},'fBeQJ':_0x5b4b1f(0x21f),'mKTDY':_0x5b4b1f(0x173),'zHLPl':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','kxekP':_0x5b4b1f(0x1e4),'BtfFx':'eGSAr','WWvPr':_0x5b4b1f(0x253),'kzNFS':function(_0x305285,_0x566749){return _0x305285===_0x566749;},'BIQnS':'ARRnN','WvWqe':'isoEq','fElIe':_0x5b4b1f(0x2a3),'rGaMA':function(_0x1c043f,_0x4b62e6){return _0x1c043f===_0x4b62e6;},'LqUfu':_0x5b4b1f(0x21e),'cTyWl':'qIcZt','yVzAc':_0x5b4b1f(0x22b),'OmZdc':function(_0x5263c0,_0x3468f2,_0x17c154){return _0x5263c0(_0x3468f2,_0x17c154);},'NfGiP':_0x5b4b1f(0x2c9),'wlMpL':_0x5b4b1f(0x291),'uErum':'GDeIc','MyGLw':function(_0x22e5b6,_0x3562f6){return _0x22e5b6===_0x3562f6;},'TphNl':function(_0x1a20c9,_0x3d5505){return _0x1a20c9!==_0x3d5505;},'FfGYz':_0x5b4b1f(0x175),'QlCWo':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','xiVOu':_0x5b4b1f(0x1c1),'zeMDS':function(_0xb5c94d,_0x1f4de9){return _0xb5c94d===_0x1f4de9;},'kZEsx':'zwiAX','lHqOz':_0x5b4b1f(0x2dd),'CumYA':_0x5b4b1f(0x27e),'ELBfh':function(_0x8922a8,_0x12945e,_0x2093d6,_0x42a2b4,_0x87ab3f,_0x18a107,_0x28c98c,_0x12d0f5){return _0x8922a8(_0x12945e,_0x2093d6,_0x42a2b4,_0x87ab3f,_0x18a107,_0x28c98c,_0x12d0f5);},'CvxVC':_0x5b4b1f(0x212),'wGlAk':function(_0x4cf17f,_0x948c64){return _0x4cf17f!==_0x948c64;},'ZjpmV':function(_0x18395d,_0x333a4b){return _0x18395d!==_0x333a4b;},'UnUkX':_0x5b4b1f(0x20f),'cptBx':_0x5b4b1f(0x2a5),'XTTRt':function(_0x50d911,_0x1f0d15,_0x583bd0,_0x496022,_0x219e2d,_0x475e6c,_0xc023f9,_0x7d193){return _0x50d911(_0x1f0d15,_0x583bd0,_0x496022,_0x219e2d,_0x475e6c,_0xc023f9,_0x7d193);},'aUXIw':_0x5b4b1f(0x1ef),'zflGa':'Grid\x20profile\x20fetched\x20from\x20backend','pBjBR':_0x5b4b1f(0x2f9),'ItnaC':_0x5b4b1f(0x2b5),'ACVSc':_0x5b4b1f(0x2cc),'DPulr':_0x5b4b1f(0x18f),'fThMQ':'3|1|2|0|4','nLgxS':function(_0x36ded6,_0x3dc99b){return _0x36ded6===_0x3dc99b;},'rqmJF':_0x5b4b1f(0x292),'fRjKA':_0x5b4b1f(0x1f2),'CkyvG':_0x5b4b1f(0x25b),'ZfECK':_0x5b4b1f(0x200),'DWGPb':function(_0x590a42,_0x42d719,_0x4fe58e,_0xce4539,_0x2ff7dc,_0x5535b5,_0x33d284,_0x509ed0){return _0x590a42(_0x42d719,_0x4fe58e,_0xce4539,_0x2ff7dc,_0x5535b5,_0x33d284,_0x509ed0);},'mMXFh':_0x5b4b1f(0x2ec),'FhqoC':function(_0x867a1b,_0xe5d18e){return _0x867a1b===_0xe5d18e;},'YTEbf':'wMnQo','pYCub':'doWee','aJjEy':function(_0x144a30,_0x33416e){return _0x144a30===_0x33416e;},'eiXku':function(_0x188a37,_0x4247dc){return _0x188a37!==_0x4247dc;},'vmbec':_0x5b4b1f(0x181),'TpMeS':function(_0x449fe5,_0x406653){return _0x449fe5!==_0x406653;},'SMFed':_0x5b4b1f(0x2c2),'Nnvqk':function(_0x15e555,_0x286b24,_0x27394d,_0x57d3ec,_0x1b56c7,_0x8ca363,_0xe4a32f,_0x160466,_0x2de9c0,_0xdfa35f,_0x1f8774,_0x137845,_0x23293a){return _0x15e555(_0x286b24,_0x27394d,_0x57d3ec,_0x1b56c7,_0x8ca363,_0xe4a32f,_0x160466,_0x2de9c0,_0xdfa35f,_0x1f8774,_0x137845,_0x23293a);},'YLtoN':'VLJXZ','cTEKz':function(_0x2713b3,_0x264d62){return _0x2713b3(_0x264d62);},'tLTHz':function(_0x373037,_0x10367f){return _0x373037===_0x10367f;},'Oukgn':_0x5b4b1f(0x22e),'BYvsm':_0x5b4b1f(0x215),'sdGfA':_0x5b4b1f(0x2e4),'WeaPp':function(_0xe1177d,_0x4aed6a){return _0xe1177d!==_0x4aed6a;},'tEsAx':_0x5b4b1f(0x185),'MlBmz':function(_0xd5e707,_0x2cd533){return _0xd5e707!==_0x2cd533;},'LCjMU':'UiUVF','fOvYR':_0x5b4b1f(0x1f0),'kFZoq':_0x5b4b1f(0x2e2),'WDjar':function(_0x191f39,_0x231243,_0xb85704,_0x1605ec,_0x5bb440,_0x417c14,_0x38408f){return _0x191f39(_0x231243,_0xb85704,_0x1605ec,_0x5bb440,_0x417c14,_0x38408f);},'dZtRO':function(_0x3e8e8d,_0x5899c2){return _0x3e8e8d!==_0x5899c2;},'rmjsy':_0x5b4b1f(0x1b5),'YtrRH':function(_0x16c270,_0x47cc73){return _0x16c270===_0x47cc73;},'DBOMk':'qOdHi','FCNvM':_0x5b4b1f(0x2c8),'doyMM':function(_0x1706ea,_0x4fe89b){return _0x1706ea===_0x4fe89b;},'VArjX':_0x5b4b1f(0x21d),'hKzNr':_0x5b4b1f(0x273),'ugxwI':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','jKcqp':function(_0x4d11ba,_0x40ff54){return _0x4d11ba!=_0x40ff54;},'IyGkS':function(_0x1107ac,_0x369834){return _0x1107ac>_0x369834;},'stazc':function(_0x263ba9,_0x77def7){return _0x263ba9===_0x77def7;},'YvPaS':_0x5b4b1f(0x1ad),'irNAW':_0x5b4b1f(0x158),'ZNHZn':function(_0x26e330,_0x504557){return _0x26e330===_0x504557;},'PiwFM':_0x5b4b1f(0x307),'SmBIT':function(_0x171549,_0x40136e,_0x5cd834,_0x3c6dba,_0x297174,_0x43724f,_0x2f109b,_0x9ae254){return _0x171549(_0x40136e,_0x5cd834,_0x3c6dba,_0x297174,_0x43724f,_0x2f109b,_0x9ae254);},'xYuUJ':'pre-spawned-invalid-vpc','lfcBR':_0x5b4b1f(0x251),'uIbdi':_0x5b4b1f(0x2dc),'yZnNi':_0x5b4b1f(0x176),'XdkKO':_0x5b4b1f(0x21c),'sBCwi':function(_0xe42fe1,_0x1251d4){return _0xe42fe1===_0x1251d4;},'USFOm':function(_0x452355,_0x3d7b55,_0x5d2703){return _0x452355(_0x3d7b55,_0x5d2703);},'XldCK':function(_0x303a36,_0x2263d2){return _0x303a36===_0x2263d2;},'RgQND':function(_0x3a4d87,_0x31fc43){return _0x3a4d87===_0x31fc43;},'WBIFi':function(_0x4a0c1e,_0x509cca){return _0x4a0c1e===_0x509cca;},'sIpUT':_0x5b4b1f(0x26f),'JjWmZ':_0x5b4b1f(0x205),'wtRkq':_0x5b4b1f(0x1f3),'nwfQL':_0x5b4b1f(0x168),'aNJYs':_0x5b4b1f(0x255),'WfCBd':_0x5b4b1f(0x23a),'wWVkd':_0x5b4b1f(0x20d),'Gtulw':function(_0x223c0d,_0x13ed9c){return _0x223c0d(_0x13ed9c);},'QfIiV':'Added\x20Secret\x20Mapping','zwKOq':_0x5b4b1f(0x159),'GJvtT':function(_0x108c71,_0x351a4e){return _0x108c71===_0x351a4e;},'NdKAN':_0x5b4b1f(0x224),'ulNDA':_0x5b4b1f(0x18d),'bHfsO':function(_0x5d2483,_0x314c3c,_0x3cecc5){return _0x5d2483(_0x314c3c,_0x3cecc5);},'MgLYh':_0x5b4b1f(0x178),'yxTEI':'Adding\x20Kafka\x20deployment...','VXJTX':_0x5b4b1f(0x2e9),'oRjEI':function(_0x5aca45,_0x503f73,_0x2836db){return _0x5aca45(_0x503f73,_0x2836db);},'RZsBq':_0x5b4b1f(0x162),'JNtif':_0x5b4b1f(0x1a3),'YzaKH':_0x5b4b1f(0x214),'SJDbl':function(_0x338823,_0x50ad99,_0x1a89f3){return _0x338823(_0x50ad99,_0x1a89f3);},'LoLIq':_0x5b4b1f(0x217),'aQVUC':_0x5b4b1f(0x20a),'nmXMa':_0x5b4b1f(0x24a),'bWLaB':_0x5b4b1f(0x247),'QsjDo':'hub-ha-deployments-failed','LIGyC':function(_0x3b5940,_0x10d469){return _0x3b5940(_0x10d469);},'BPERO':_0x5b4b1f(0x2de),'oKZBu':'Browserstack','EdDvr':_0x5b4b1f(0x1fa),'dmpqk':_0x5b4b1f(0x2ff),'KHfBi':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','HYrYR':_0x5b4b1f(0x2be),'YnEmr':function(_0x3633a9,_0xbe43b,_0x4df490,_0x2578b4,_0x488a03,_0xc00830,_0xd09965,_0x1df10b,_0x4c4f0d,_0x23987f,_0x20f446){return _0x3633a9(_0xbe43b,_0x4df490,_0x2578b4,_0x488a03,_0xc00830,_0xd09965,_0x1df10b,_0x4c4f0d,_0x23987f,_0x20f446);},'kBgTw':_0x5b4b1f(0x239),'EwlCs':_0x5b4b1f(0x21a),'FxCGH':function(_0x3b6fed,_0x47a2fa,_0x595ff7,_0x5e0ff6,_0x51e0f9){return _0x3b6fed(_0x47a2fa,_0x595ff7,_0x5e0ff6,_0x51e0f9);},'fcJZB':'private-ingress-nginx-controller','ovhbt':_0x5b4b1f(0x274),'QZGVT':_0x5b4b1f(0x270),'NGnhV':function(_0xe09153,_0x331542,_0x2618db){return _0xe09153(_0x331542,_0x2618db);},'zjzOY':function(_0x1cf505,_0x2cf422){return _0x1cf505===_0x2cf422;},'Wbrbz':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','AbfLo':function(_0x406b3b,_0x1af228,_0x85c744,_0x1ba77f,_0x1b5de0,_0x1f7857,_0x3b33a1,_0x4e8d1a){return _0x406b3b(_0x1af228,_0x85c744,_0x1ba77f,_0x1b5de0,_0x1f7857,_0x3b33a1,_0x4e8d1a);},'nKJKn':'get-grid-url-null-response','ypPVl':_0x5b4b1f(0x2ea),'EfZYO':_0x5b4b1f(0x1df),'dtSVr':_0x5b4b1f(0x1f1),'uBEST':function(_0x3f28b9,_0x281fab){return _0x3f28b9===_0x281fab;},'QHJwm':_0x5b4b1f(0x19d),'YbxtV':function(_0x120a63,_0x209a25,_0x5a0d3a,_0x55937d,_0x12dc4a,_0x162708){return _0x120a63(_0x209a25,_0x5a0d3a,_0x55937d,_0x12dc4a,_0x162708);},'SiiMe':_0x5b4b1f(0x229)};let _0x26928b=![],_0x53f8ef=![],_0xe7a9be,_0x1743ed,_0x3b74cd,_0x344635,_0x369478,_0x3efa71,_0x37e027,_0x41d57d,_0xc92719,_0x33f8f8,_0x5bfb6f,_0x40ff6e,_0x195486,_0x374db2,_0x48cfa2=0x1,_0x4ee5a1=0xe;try{global_registry[_0x5b4b1f(0x26b)]=_0xcd2eb9['XAYtH'](uuidv4),global_registry[_0x5b4b1f(0x2aa)]=![];!fs[_0x5b4b1f(0x231)](_0xcd2eb9[_0x5b4b1f(0x235)](getCredentialsPath))&&(_0xcd2eb9[_0x5b4b1f(0x1e3)](_0xcd2eb9[_0x5b4b1f(0x2bb)],_0xcd2eb9[_0x5b4b1f(0x1a5)])?_0x21a57b=_0xcd2eb9['TyCgj']:(console[_0x5b4b1f(0x16f)](_0xcd2eb9[_0x5b4b1f(0x272)]),await _0xcd2eb9[_0x5b4b1f(0x1c4)](sendInstrumentationEvent,_0x3370e0,_0xcd2eb9['sxlNQ'],messageTypes['ERROR'],_0xcd2eb9[_0x5b4b1f(0x26c)],null,_0x3370e0),process[_0x5b4b1f(0x16b)](0x1)));await _0xcd2eb9[_0x5b4b1f(0x1c4)](sendInstrumentationEvent,_0x3370e0,_0xcd2eb9[_0x5b4b1f(0x19c)],messageTypes[_0x5b4b1f(0x237)],null,null,_0x3370e0);const _0x1c22f9=JSON[_0x5b4b1f(0x156)](fs[_0x5b4b1f(0x24d)](_0xcd2eb9[_0x5b4b1f(0x25d)](getCredentialsPath)));global_registry[_0x5b4b1f(0x1de)]=_0x1c22f9['Browserstack'][_0x5b4b1f(0x164)],global_registry[_0x5b4b1f(0x18a)]=_0x1c22f9['Browserstack'][_0x5b4b1f(0x1ce)];const _0x111449=WS_ENDPOINT[_0x5b4b1f(0x1a9)](_0xcd2eb9[_0x5b4b1f(0x280)],_0x1c22f9[_0x5b4b1f(0x315)][_0x5b4b1f(0x164)])[_0x5b4b1f(0x1a9)](_0xcd2eb9[_0x5b4b1f(0x1af)],_0x1c22f9[_0x5b4b1f(0x315)][_0x5b4b1f(0x1ce)]),_0x2747d7={};_0x2747d7[_0x5b4b1f(0x169)]=ws,_0x2747d7[_0x5b4b1f(0x1f7)]=0x36ee80,_0x40ff6e=new ReconnectingWebSocket(_0x111449,[],_0x2747d7),logger[_0x5b4b1f(0x190)](_0xcd2eb9['oKESq']),webSocketUtils[_0x5b4b1f(0x193)](_0x40ff6e,_0x3370e0[_0x5b4b1f(0x1fd)],_0x3370e0['password']);const _0xfe2fbf=_0x3370e0[_0x5b4b1f(0x2f8)]||DEFAULT_GRID_NAME;if(_0x3370e0[_0x5b4b1f(0x2e3)]||_0x3370e0['cloudProvider']||_0x3370e0[_0x5b4b1f(0x22a)]){if(_0xcd2eb9[_0x5b4b1f(0x2a8)](_0xcd2eb9['ooDbk'],_0xcd2eb9[_0x5b4b1f(0x154)])){const _0x5da51f=_0xcd2eb9[_0x5b4b1f(0x2c7)][_0x5b4b1f(0x238)]('|');let _0x11d66c=0x0;while(!![]){switch(_0x5da51f[_0x11d66c++]){case'0':const _0x2cb1de={};_0x2cb1de[_0x5b4b1f(0x295)]=_0x4934d1['LOG'],_0x2cb1de[_0x5b4b1f(0x2f3)]=_0x56621a,_0x30cf75[_0x5b4b1f(0x1be)](_0x21c293,_0x2cb1de);continue;case'1':_0xafc481[_0x5b4b1f(0x187)]=_0x33ee89;continue;case'2':const _0x5aa9a9={};_0x5aa9a9[_0x5b4b1f(0x295)]=_0x1804b2[_0x5b4b1f(0x264)],_0x5aa9a9[_0x5b4b1f(0x2f3)]=_0xcd2eb9[_0x5b4b1f(0x276)],_0x173829[_0x5b4b1f(0x1be)](_0xfa07f3,_0x5aa9a9);continue;case'3':_0x1aabf9[_0x5b4b1f(0x2e3)]=_0x322ef3;continue;case'4':_0x344b54[_0x5b4b1f(0x311)]=_0x1b4f0a;continue;case'5':_0x1d4654[_0x5b4b1f(0x271)](_0x18b677);continue;case'6':_0x56acc1=_0x5b4b1f(0x256)+_0x530e51+_0x5b4b1f(0x15a)+_0x37c160+'\x27';continue;case'7':_0x5e9245['browserVersion']=_0xa6a00e[_0x5b4b1f(0x28a)];continue;case'8':_0x3a2139[_0x5b4b1f(0x29f)]=_0x24f5f2[_0x5b4b1f(0x29f)];continue;}break;}}else{!(_0x3370e0['clusterName']&&_0x3370e0[_0x5b4b1f(0x311)]&&_0x3370e0[_0x5b4b1f(0x22a)])&&(_0xcd2eb9[_0x5b4b1f(0x283)](_0xcd2eb9[_0x5b4b1f(0x236)],_0xcd2eb9[_0x5b4b1f(0x236)])?(_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x308)],await _0xcd2eb9[_0x5b4b1f(0x2bc)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x188)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger['error'](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1)):_0x380fad=null);![AWS,AZURE,GCP][_0x5b4b1f(0x27f)](_0x3370e0[_0x5b4b1f(0x311)][_0x5b4b1f(0x2d2)]())&&(_0xcd2eb9[_0x5b4b1f(0x1e3)](_0xcd2eb9['mKTDY'],_0xcd2eb9[_0x5b4b1f(0x22c)])?(_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x15b)],await _0xcd2eb9[_0x5b4b1f(0x2bc)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes['ERROR'],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x1f8)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1)):_0x513a6a[_0x5b4b1f(0x271)](_0xcd2eb9['fHgCC']));_0x3370e0['privateGrid']&&_0xcd2eb9[_0x5b4b1f(0x2ac)](_0x3370e0['privateGrid'][_0x5b4b1f(0x2d2)](),_0xcd2eb9[_0x5b4b1f(0x18c)])&&(_0xcd2eb9[_0x5b4b1f(0x1e3)](_0xcd2eb9[_0x5b4b1f(0x2d6)],_0xcd2eb9['WWvPr'])?_0xa690a2=_0xcd2eb9[_0x5b4b1f(0x1fc)]:global_registry[_0x5b4b1f(0x2aa)]=!![]);global_registry[_0x5b4b1f(0x311)]=_0x3370e0[_0x5b4b1f(0x311)],global_registry['clusterRegion']=_0x3370e0[_0x5b4b1f(0x22a)],global_registry[_0x5b4b1f(0x2e3)]=_0x3370e0[_0x5b4b1f(0x2e3)];const _0x38348e=await _0xcd2eb9[_0x5b4b1f(0x1c4)](getCloudProviderObject,_0x3370e0[_0x5b4b1f(0x311)],_0x3370e0['clusterName'],_0xfe2fbf,_0x40ff6e,webSocketUtils,_0x3370e0),_0x38521b=await _0x38348e['isClusterPresent']();!_0x38521b?_0xcd2eb9[_0x5b4b1f(0x1fb)](_0xcd2eb9['BIQnS'],_0xcd2eb9['BIQnS'])?(logger['info']('Cluster:\x20'+_0x3370e0['clusterName']+_0x5b4b1f(0x1b9)),_0x26928b=![],_0x53f8ef=!![]):_0x422361['info'](_0x5b4b1f(0x1eb)+_0x26fac5+'\x20'):_0xcd2eb9[_0x5b4b1f(0x177)](_0xcd2eb9[_0x5b4b1f(0x261)],_0xcd2eb9[_0x5b4b1f(0x24f)])?_0x26928b=!![]:_0x57c93c=!![],_0x3b74cd=_0x3370e0['clusterName'],_0x1743ed=_0x3370e0[_0x5b4b1f(0x311)]['toLowerCase'](),_0x344635=_0x3370e0[_0x5b4b1f(0x22a)];}}else _0x3370e0[_0x5b4b1f(0x201)]&&(_0xcd2eb9['rGaMA'](_0xcd2eb9[_0x5b4b1f(0x30d)],_0xcd2eb9[_0x5b4b1f(0x179)])?_0x5892d6[_0x5b4b1f(0x2aa)]=!![]:global_registry['gridProfile']=_0x3370e0[_0x5b4b1f(0x201)]);global_registry[_0x5b4b1f(0x2f8)]=_0x3370e0[_0x5b4b1f(0x2f8)];const _0x10e58d={'method':_0xcd2eb9[_0x5b4b1f(0x1ec)],'headers':_0xcd2eb9['OmZdc'](getAuthHeader,_0x1c22f9[_0x5b4b1f(0x315)]['username'],_0x1c22f9[_0x5b4b1f(0x315)][_0x5b4b1f(0x1ce)]),'throwHttpErrors':![]},_0x537184={};_0x537184[_0x5b4b1f(0x2f8)]=_0xfe2fbf;const _0x2d1cc2=_0x537184;_0x53f8ef&&(_0xcd2eb9[_0x5b4b1f(0x2ac)](_0xcd2eb9[_0x5b4b1f(0x1bf)],_0xcd2eb9[_0x5b4b1f(0x171)])?(_0x23b4b1=_0x1ed766[_0x5b4b1f(0x29d)],_0x204add=_0xcd2eb9[_0x5b4b1f(0x209)]):(_0x2d1cc2[_0x5b4b1f(0x22a)]=_0x344635,_0x2d1cc2[_0x5b4b1f(0x311)]=_0x1743ed,_0x2d1cc2[_0x5b4b1f(0x213)]=!![],_0x2d1cc2[_0x5b4b1f(0x254)]=_0x3370e0['clusterAutoupgrade']));_0x3370e0['clusterAutoupgrade']&&(_0xcd2eb9[_0x5b4b1f(0x177)](_0xcd2eb9[_0x5b4b1f(0x1b1)],_0xcd2eb9[_0x5b4b1f(0x1b1)])?_0x3d4afb=null:logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x23b)]));const _0xbd74ec=_0x5b4b1f(0x2ab)+AG_API_URL+'/packages/cli/create-grid-checks',_0x5bc456={'searchParams':_0x2d1cc2,'throwHttpErrors':![],..._0x10e58d},_0x3733f7=_0x5bc456,_0x408b78=await _0xcd2eb9[_0x5b4b1f(0x2c3)](got,_0xbd74ec,_0x3733f7);(_0xcd2eb9['wQtIT'](_0x408b78,null)||_0xcd2eb9[_0x5b4b1f(0x2f5)](_0x408b78,undefined))&&(_0xcd2eb9['TphNl'](_0xcd2eb9['FfGYz'],_0xcd2eb9[_0x5b4b1f(0x1f9)])?_0x4e9289[_0x5b4b1f(0x16f)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x25e04b+'\x20\x0a'+_0xf5642c['stringify'](_0x5e78c6[_0x5b4b1f(0x287)])):(_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x1e2)],await _0xcd2eb9[_0x5b4b1f(0x2bc)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x2e1)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger['error'](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1)));_0xcd2eb9[_0x5b4b1f(0x19e)](_0x408b78[_0x5b4b1f(0x18b)],0x191)&&(_0xcd2eb9[_0x5b4b1f(0x177)](_0xcd2eb9[_0x5b4b1f(0x284)],_0xcd2eb9[_0x5b4b1f(0x216)])?(_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x1da)],await _0xcd2eb9[_0x5b4b1f(0x2b2)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes['ERROR'],_0xcd2eb9['sxlNQ'],_0xcd2eb9[_0x5b4b1f(0x2a9)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1)):_0x2db886['sendResourceDataToHST']());if(_0xcd2eb9[_0x5b4b1f(0x1b3)](_0x408b78[_0x5b4b1f(0x18b)],0xc8)){if(_0xcd2eb9[_0x5b4b1f(0x2bf)](_0xcd2eb9['UnUkX'],_0xcd2eb9[_0x5b4b1f(0x228)]))_0xe7a9be=_0x5b4b1f(0x2db)+JSON[_0x5b4b1f(0x2c6)](_0x408b78[_0x5b4b1f(0x304)]),await _0xcd2eb9[_0x5b4b1f(0x1d4)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x1ff)],_0xcd2eb9['tGWif']),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1);else{const _0x44ca6b=_0xcd2eb9[_0x5b4b1f(0x263)][_0x5b4b1f(0x238)]('|');let _0xeb1c85=0x0;while(!![]){switch(_0x44ca6b[_0xeb1c85++]){case'0':_0xad95a1=_0xc6f0c5['s3bucket'];continue;case'1':_0x2c2aef=_0x1844e8[_0x5b4b1f(0x268)];continue;case'2':_0x431fb0=_0x11a2f6['hubVersion'];continue;case'3':_0xc6f921=_0x27aff8[_0x5b4b1f(0x1a7)];continue;case'4':_0x23ae5=null;continue;case'5':_0x251133=_0x5b4b1f(0x2cb)+_0x803429;continue;case'6':_0x225fe0=_0x380684[_0x5b4b1f(0x26d)];continue;case'7':_0xcd2eb9[_0x5b4b1f(0x177)](_0x56c359['privateGrid'],_0x2d34c5)&&_0x57428a[_0x5b4b1f(0x17f)]&&(_0x3890f2['isPrivateGrid']=!![]);continue;case'8':_0x5ac8ad=null;continue;case'9':_0x582885=null;continue;case'10':_0x228a17=_0x28ad74[_0x5b4b1f(0x28a)];continue;case'11':_0x4558df=_0x46133f['maxNodes'];continue;case'12':_0x19531e['info'](_0x9567d1);continue;case'13':const _0x13c90b={};_0x13c90b['type']=_0x5cae20[_0x5b4b1f(0x2d0)],_0x13c90b[_0x5b4b1f(0x2f3)]=_0x4f137d,_0x32207e[_0x5b4b1f(0x1be)](_0x51cb18,_0x13c90b);continue;case'14':_0xcd2eb9[_0x5b4b1f(0x23f)](_0x3431f3,_0x50a9c2,_0x2eaa43,_0x24e6bf,_0x603daa,_0x439f39,_0x3e251b,_0x2aa242,_0x68c6ba,_0x49f223,_0x28e6a1,_0x4fb57e,_0x2de204[_0x5b4b1f(0x1e9)]);continue;case'15':_0x43f9fa[_0x5b4b1f(0x1e0)]&&_0xcd2eb9[_0x5b4b1f(0x266)](_0x2594e9,_0x573c42[_0x5b4b1f(0x265)]);continue;}break;}}}const _0x3a5586=JSON['parse'](_0x408b78['body']),_0x15764d={};_0x15764d['type']=WS_EVENTS[_0x5b4b1f(0x264)],_0x15764d[_0x5b4b1f(0x2f3)]=_0xcd2eb9[_0x5b4b1f(0x276)],webSocketUtils['sendEventToBackend'](_0x40ff6e,_0x15764d);const _0x2baf97={};_0x2baf97[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x2baf97[_0x5b4b1f(0x2f3)]=_0xcd2eb9[_0x5b4b1f(0x1ca)],webSocketUtils['sendEventToBackend'](_0x40ff6e,_0x2baf97);if(_0x3a5586[_0x5b4b1f(0x2ca)]){if(_0xcd2eb9[_0x5b4b1f(0x177)](_0xcd2eb9['pBjBR'],_0xcd2eb9['pBjBR'])){const _0x54de0f={};_0x54de0f[_0x5b4b1f(0x295)]=_0x31080c[_0x5b4b1f(0x2d0)],_0x54de0f['message']=_0x1bfb04,_0x36cb23['sendEventToBackend'](_0x32aa6f,_0x54de0f,_0xcd2eb9[_0x5b4b1f(0x1ed)],!![]);}else _0xe7a9be=_0x5b4b1f(0x2a1)+_0xfe2fbf+_0x5b4b1f(0x1b8),await _0xcd2eb9[_0x5b4b1f(0x1d4)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x1c7)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger['error'](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1);}const _0x32c011=_0x3a5586[_0x5b4b1f(0x20e)];let _0x52bfaa=_0x32c011[_0x3a5586['defaultGridProfile']];if(_0x3370e0[_0x5b4b1f(0x201)]){if(_0xcd2eb9[_0x5b4b1f(0x1e3)](_0xcd2eb9[_0x5b4b1f(0x2b0)],_0xcd2eb9[_0x5b4b1f(0x2b0)]))_0x52bfaa=_0x32c011[_0x3370e0[_0x5b4b1f(0x201)]];else{const _0x21304a=_0xcd2eb9[_0x5b4b1f(0x25a)][_0x5b4b1f(0x238)]('|');let _0x3a9145=0x0;while(!![]){switch(_0x21304a[_0x3a9145++]){case'0':_0x21826b[_0x5b4b1f(0x1e0)]=!![];continue;case'1':_0x1c860b['redisPassword']=_0xcd2eb9[_0x5b4b1f(0x2c1)];continue;case'2':_0x228322[_0x5b4b1f(0x1b2)]=_0xcd2eb9['fHnWm'];continue;case'3':_0xd15d8d[_0x5b4b1f(0x1b4)]=_0xcd2eb9[_0x5b4b1f(0x1f6)];continue;case'4':_0x30cbf1[_0x5b4b1f(0x271)](_0xcd2eb9['cUZYe']);continue;}break;}}}global_registry[_0x5b4b1f(0x1e0)]=![];if(_0x3370e0[_0x5b4b1f(0x2d5)]){if(_0xcd2eb9['wGlAk'](_0xcd2eb9[_0x5b4b1f(0x172)],_0xcd2eb9['DPulr']))_0xcd2eb9['WaWwF'](_0x5a1571,_0x493d62[_0x5b4b1f(0x265)]);else{const _0x362d3f=_0xcd2eb9[_0x5b4b1f(0x2b7)]['split']('|');let _0x329090=0x0;while(!![]){switch(_0x362d3f[_0x329090++]){case'0':global_registry[_0x5b4b1f(0x1b2)]=_0xcd2eb9[_0x5b4b1f(0x222)];continue;case'1':global_registry['hubHaNameSpace']=_0xcd2eb9[_0x5b4b1f(0x1f6)];continue;case'2':global_registry[_0x5b4b1f(0x166)]=_0xcd2eb9[_0x5b4b1f(0x2c1)];continue;case'3':logger['info'](_0xcd2eb9['cUZYe']);continue;case'4':global_registry[_0x5b4b1f(0x1e0)]=!![];continue;}break;}}}if(_0xcd2eb9['MyGLw'](_0x26928b,![])&&_0xcd2eb9[_0x5b4b1f(0x155)](_0x53f8ef,![])){if(_0xcd2eb9[_0x5b4b1f(0x2ac)](_0xcd2eb9[_0x5b4b1f(0x29c)],_0xcd2eb9[_0x5b4b1f(0x310)])){const _0x3c35d0={'azure.workload.identity/use':_0xcd2eb9[_0x5b4b1f(0x18c)],..._0x531831[0x0]['spec'][_0x5b4b1f(0x2a2)][_0x5b4b1f(0x19a)][_0x5b4b1f(0x23c)]};_0x11bf2f[0x0][_0x5b4b1f(0x267)]['template'][_0x5b4b1f(0x19a)][_0x5b4b1f(0x23c)]=_0x3c35d0,_0x3c10d3[0x0][_0x5b4b1f(0x267)]['template']['spec'][_0x5b4b1f(0x21b)]=_0xcd2eb9['MFWud'];}else{if(_0xcd2eb9[_0x5b4b1f(0x26e)](_0x52bfaa,undefined)){if(_0xcd2eb9[_0x5b4b1f(0x19e)](_0xcd2eb9[_0x5b4b1f(0x2b3)],_0xcd2eb9[_0x5b4b1f(0x2b3)]))_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x296)],await _0xcd2eb9[_0x5b4b1f(0x2b6)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes['ERROR'],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x1bb)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1);else{const _0x4657c3={};_0x4657c3['description']=_0xcd2eb9[_0x5b4b1f(0x210)],_0x4657c3[_0x5b4b1f(0x295)]=_0xcd2eb9[_0x5b4b1f(0x174)];const _0x4f7942={};_0x4f7942['description']=_0xcd2eb9[_0x5b4b1f(0x16e)],_0x4f7942['type']=_0xcd2eb9['DXOwF'];const _0x475fd5={};_0x475fd5[_0x5b4b1f(0x1f4)]=_0xcd2eb9[_0x5b4b1f(0x1cb)],_0x475fd5['type']=_0xcd2eb9[_0x5b4b1f(0x174)];const _0x300fb6={};_0x300fb6[_0x5b4b1f(0x1f4)]=_0xcd2eb9['EDuDK'],_0x300fb6['type']=_0xcd2eb9[_0x5b4b1f(0x174)];const _0x4120d7={};_0x4120d7['description']=_0xcd2eb9[_0x5b4b1f(0x165)],_0x4120d7[_0x5b4b1f(0x295)]=_0xcd2eb9['DXOwF'];const _0x24145a={};_0x24145a[_0x5b4b1f(0x1f4)]=_0xcd2eb9['XRVwO'],_0x24145a[_0x5b4b1f(0x295)]=_0xcd2eb9[_0x5b4b1f(0x174)];const _0x209975={};_0x209975[_0x5b4b1f(0x1f4)]=_0xcd2eb9[_0x5b4b1f(0x1bd)],_0x209975[_0x5b4b1f(0x295)]=_0xcd2eb9[_0x5b4b1f(0x27a)],_0x209975['default']=![];const _0x149e15={};_0x149e15['description']=_0xcd2eb9[_0x5b4b1f(0x1d5)],_0x149e15[_0x5b4b1f(0x295)]=_0xcd2eb9[_0x5b4b1f(0x27a)],_0x149e15[_0x5b4b1f(0x2df)]=![];const _0x5e2453={};_0x5e2453[_0x5b4b1f(0x1f4)]=_0xcd2eb9[_0x5b4b1f(0x194)],_0x5e2453[_0x5b4b1f(0x295)]=_0xcd2eb9[_0x5b4b1f(0x27a)],_0x5e2453['default']=![];const _0x226381={};return _0x226381['grid-name']=_0x4657c3,_0x226381[_0x5b4b1f(0x312)]=_0x4f7942,_0x226381[_0x5b4b1f(0x1ae)]=_0x475fd5,_0x226381[_0x5b4b1f(0x27d)]=_0x300fb6,_0x226381[_0x5b4b1f(0x22a)]=_0x4120d7,_0x226381[_0x5b4b1f(0x1d6)]=_0x24145a,_0x226381[_0x5b4b1f(0x2f1)]=_0x209975,_0x226381[_0x5b4b1f(0x2ce)]=_0x149e15,_0x226381[_0x5b4b1f(0x1d2)]=_0x5e2453,_0xbf29a[_0x5b4b1f(0x20b)](_0x2c24a4['create'])['epilogue'](_0x4a9b28)[_0x5b4b1f(0x208)](_0x226381)[_0x5b4b1f(0x302)](_0xcd2eb9[_0x5b4b1f(0x18e)])[_0x5b4b1f(0x184)];}}global_registry[_0x5b4b1f(0x2f7)]=_0x52bfaa['id'],_0xe7a9be=_0x5b4b1f(0x279)+_0xfe2fbf+_0x5b4b1f(0x1a4)+_0x52bfaa[_0x5b4b1f(0x1cd)]+_0x5b4b1f(0x189),logger[_0x5b4b1f(0x271)](_0xe7a9be);const _0x20c433={};_0x20c433['type']=WS_EVENTS['LOG'],_0x20c433['message']=_0xe7a9be,webSocketUtils['sendEventToBackend'](_0x40ff6e,_0x20c433),_0x1743ed=_0x52bfaa['cloudProvider'],_0x3b74cd=_0x52bfaa[_0x5b4b1f(0x2e3)],_0x344635=_0x52bfaa[_0x5b4b1f(0x22a)],_0x369478=_0x52bfaa[_0x5b4b1f(0x268)],_0x3efa71=_0x52bfaa[_0x5b4b1f(0x26d)],_0x37e027=_0x52bfaa[_0x5b4b1f(0x27b)],_0x41d57d=_0x52bfaa[_0x5b4b1f(0x1d9)],_0xc92719=_0x52bfaa[_0x5b4b1f(0x2eb)],_0x33f8f8=_0x52bfaa['s3bucket'],_0x48cfa2=_0x52bfaa[_0x5b4b1f(0x1a7)],_0x4ee5a1=_0x52bfaa[_0x5b4b1f(0x1aa)],_0x195486=_0x3a5586[_0x5b4b1f(0x29f)],_0x374db2=_0x3a5586[_0x5b4b1f(0x28a)];if(_0x37e027&&_0xcd2eb9['FhqoC'](_0x37e027[_0x5b4b1f(0x241)],0x0)){if(_0xcd2eb9[_0x5b4b1f(0x177)](_0xcd2eb9[_0x5b4b1f(0x15f)],_0xcd2eb9[_0x5b4b1f(0x170)]))_0x37e027=null;else{const _0x598ba2={};_0x598ba2['type']=_0x3dea93[_0x5b4b1f(0x2d0)],_0x598ba2['message']='Cluster\x20'+_0x5f4734+_0x5b4b1f(0x15c),_0x10ab11['sendEventToBackend'](_0x243bb6,_0x598ba2,_0xcd2eb9[_0x5b4b1f(0x28d)]),_0x3c2ca6['info'](_0x5b4b1f(0x282)+_0x441086+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x254eb5=!![];if(_0xcd2eb9[_0x5b4b1f(0x2ac)](_0x12072b,!![]))throw new _0x332388(_0x5b4b1f(0x282)+_0x57ede3+_0x5b4b1f(0x180));}}_0xc92719&&_0xcd2eb9[_0x5b4b1f(0x2d8)](_0xc92719[_0x5b4b1f(0x241)],0x0)&&(_0xcd2eb9[_0x5b4b1f(0x1ab)](_0xcd2eb9[_0x5b4b1f(0x2d3)],_0xcd2eb9[_0x5b4b1f(0x2d3)])?_0xaac8ef['isPrivateGrid']=!![]:_0xc92719=null),_0xcd2eb9[_0x5b4b1f(0x2fd)](_0x52bfaa[_0x5b4b1f(0x17f)],undefined)&&_0x52bfaa['privateGrid']&&(_0xcd2eb9[_0x5b4b1f(0x2d8)](_0xcd2eb9[_0x5b4b1f(0x1ac)],_0xcd2eb9[_0x5b4b1f(0x1ac)])?global_registry[_0x5b4b1f(0x2aa)]=!![]:_0xcd2eb9[_0x5b4b1f(0x30e)](_0x2d0db9,_0x547517[_0x5b4b1f(0x252)])),_0xcd2eb9['Nnvqk'](updateGlobalRegistryWithConfig,_0x1743ed,_0x3b74cd,_0x344635,_0x369478,_0x3efa71,_0x33f8f8,_0x52bfaa,_0x195486,_0x374db2,_0x48cfa2,_0x4ee5a1,_0x3370e0[_0x5b4b1f(0x1e9)]),global_registry['enableHubHa']&&(_0xcd2eb9[_0x5b4b1f(0x2fd)](_0xcd2eb9[_0x5b4b1f(0x240)],_0xcd2eb9['YLtoN'])?_0x3e343f[_0x5b4b1f(0x201)]=_0x4c3d8b[_0x5b4b1f(0x201)]:_0xcd2eb9[_0x5b4b1f(0x299)](updateGlobalRegistryForHubHa,_0x3a5586[_0x5b4b1f(0x252)]));}}else{if(_0xcd2eb9[_0x5b4b1f(0x1d1)](_0x53f8ef,!![])){if(_0xcd2eb9[_0x5b4b1f(0x1b3)](_0xcd2eb9[_0x5b4b1f(0x2c4)],_0xcd2eb9['Oukgn']))_0xbbc204=_0xcd2eb9[_0x5b4b1f(0x1b6)];else{_0xe7a9be=_0x5b4b1f(0x2cb)+_0xfe2fbf,logger[_0x5b4b1f(0x271)](_0xe7a9be);const _0x280161={};_0x280161['type']=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x280161[_0x5b4b1f(0x2f3)]=_0xe7a9be,webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x280161),_0x369478=_0x52bfaa[_0x5b4b1f(0x268)],_0x3efa71=_0x52bfaa[_0x5b4b1f(0x26d)],_0x37e027=null,_0x41d57d=null,_0xc92719=null,_0x33f8f8=_0x52bfaa[_0x5b4b1f(0x207)],_0x48cfa2=_0x52bfaa[_0x5b4b1f(0x1a7)],_0x4ee5a1=_0x52bfaa[_0x5b4b1f(0x1aa)],_0x195486=_0x3a5586[_0x5b4b1f(0x29f)],_0x374db2=_0x3a5586[_0x5b4b1f(0x28a)],_0xcd2eb9[_0x5b4b1f(0x177)](_0x52bfaa['privateGrid'],undefined)&&_0x52bfaa[_0x5b4b1f(0x17f)]&&(_0xcd2eb9[_0x5b4b1f(0x155)](_0xcd2eb9[_0x5b4b1f(0x28b)],_0xcd2eb9[_0x5b4b1f(0x248)])?(_0x2a6d16[_0x5b4b1f(0x22a)]=_0x445c9e,_0x8a9401[_0x5b4b1f(0x311)]=_0x160b68,_0x559aa0[_0x5b4b1f(0x213)]=!![],_0x4c3ec2[_0x5b4b1f(0x254)]=_0x1a2233[_0x5b4b1f(0x1e9)]):global_registry[_0x5b4b1f(0x2aa)]=!![]),_0xcd2eb9['Nnvqk'](updateGlobalRegistryWithConfig,_0x1743ed,_0x3b74cd,_0x344635,_0x369478,_0x3efa71,_0x33f8f8,_0x52bfaa,_0x195486,_0x374db2,_0x48cfa2,_0x4ee5a1,_0x3370e0[_0x5b4b1f(0x1e9)]),global_registry[_0x5b4b1f(0x1e0)]&&(_0xcd2eb9[_0x5b4b1f(0x2f2)](_0xcd2eb9['tEsAx'],_0xcd2eb9['tEsAx'])?_0x33f440[_0x5b4b1f(0x2aa)]=!![]:_0xcd2eb9[_0x5b4b1f(0x299)](updateGlobalRegistryForHubHa,_0x3a5586['kafkaUploader']));}}else{if(_0xcd2eb9[_0x5b4b1f(0x1a2)](_0xcd2eb9[_0x5b4b1f(0x196)],_0xcd2eb9[_0x5b4b1f(0x1d8)])){const _0x4d4eda=_0xcd2eb9[_0x5b4b1f(0x1cf)]['split']('|');let _0x534b9b=0x0;while(!![]){switch(_0x4d4eda[_0x534b9b++]){case'0':global_registry[_0x5b4b1f(0x28a)]=_0x3a5586[_0x5b4b1f(0x28a)];continue;case'1':global_registry['clusterName']=_0x3b74cd;continue;case'2':const _0x2f0e07={};_0x2f0e07[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x2f0e07['message']=_0xe7a9be,webSocketUtils['sendEventToBackend'](_0x40ff6e,_0x2f0e07);continue;case'3':_0xe7a9be=_0x5b4b1f(0x256)+_0xfe2fbf+_0x5b4b1f(0x15a)+_0x3b74cd+'\x27';continue;case'4':global_registry[_0x5b4b1f(0x187)]=_0x344635;continue;case'5':global_registry[_0x5b4b1f(0x311)]=_0x1743ed;continue;case'6':logger[_0x5b4b1f(0x271)](_0xe7a9be);continue;case'7':global_registry['hubVersion']=_0x3a5586[_0x5b4b1f(0x29f)];continue;case'8':const _0x1cc670={};_0x1cc670['type']=WS_EVENTS[_0x5b4b1f(0x264)],_0x1cc670['message']=_0xcd2eb9[_0x5b4b1f(0x276)],webSocketUtils['sendEventToBackend'](_0x40ff6e,_0x1cc670);continue;}break;}}else throw new _0x217a70('Cluster\x20'+_0x40fcb1+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}const _0x1d3e0a=await _0xcd2eb9[_0x5b4b1f(0x2fe)](getCloudProviderObject,_0x1743ed,_0x3b74cd,_0xfe2fbf,_0x40ff6e,webSocketUtils,_0x3370e0);_0xcd2eb9[_0x5b4b1f(0x25c)](_0x1743ed,AZURE)&&(_0xcd2eb9[_0x5b4b1f(0x285)](_0xcd2eb9[_0x5b4b1f(0x1e1)],_0xcd2eb9['rmjsy'])?_0x3272dc=_0x3d4870[_0x2f1c4d[_0x5b4b1f(0x201)]]:_0x1d3e0a[_0x5b4b1f(0x1ee)]());let _0xfa98f4;if(_0xcd2eb9[_0x5b4b1f(0x155)](_0x26928b,![])){_0xe7a9be=_0x5b4b1f(0x2e6)+_0x344635+').';const _0x39b571={};_0x39b571['type']=WS_EVENTS['LOG'],_0x39b571['message']=_0xe7a9be,webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x39b571),logger[_0x5b4b1f(0x271)](_0xe7a9be);const _0x3128cb=await _0x1d3e0a[_0x5b4b1f(0x298)]();if(_0x3128cb){if(_0xcd2eb9[_0x5b4b1f(0x1cc)](_0xcd2eb9[_0x5b4b1f(0x275)],_0xcd2eb9[_0x5b4b1f(0x17a)]))_0x56b5af[_0x5b4b1f(0x271)](_0x5b4b1f(0x2fc)+_0x6f33a9['clusterName']+_0x5b4b1f(0x1b9)),_0x3891ad=![],_0x2da6bd=!![];else{const _0x4177a0={};_0x4177a0[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x4177a0[_0x5b4b1f(0x2f3)]=_0x5b4b1f(0x282)+_0x3b74cd+_0x5b4b1f(0x15c),webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x4177a0,_0xcd2eb9[_0x5b4b1f(0x28d)]),logger['info'](_0x5b4b1f(0x282)+_0x3b74cd+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x26928b=!![];if(_0xcd2eb9['doyMM'](_0x53f8ef,!![])){if(_0xcd2eb9[_0x5b4b1f(0x2a8)](_0xcd2eb9[_0x5b4b1f(0x286)],_0xcd2eb9[_0x5b4b1f(0x293)]))throw new Error(_0x5b4b1f(0x282)+_0x3b74cd+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');else _0x5dbc3f[_0x5b4b1f(0x271)](_0x5b4b1f(0x1f5)+_0x5babc0[_0x5b4b1f(0x2c6)](_0x37b1e0)+'\x20');}}}else{const _0x16014e={};_0x16014e[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x16014e[_0x5b4b1f(0x2f3)]=_0xcd2eb9[_0x5b4b1f(0x2b1)],webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x16014e),logger['info'](_0xcd2eb9[_0x5b4b1f(0x2b1)]);const _0x44f42f=_0xcd2eb9[_0x5b4b1f(0x29b)](_0x37e027,null)&&_0xcd2eb9[_0x5b4b1f(0x2fd)](_0x37e027,undefined),_0x3bd83=_0xcd2eb9[_0x5b4b1f(0x29b)](_0xc92719,null)&&_0xcd2eb9[_0x5b4b1f(0x1a2)](_0xc92719,undefined)&&_0xcd2eb9[_0x5b4b1f(0x290)](_0xc92719[_0x5b4b1f(0x241)],0x0);if(_0x44f42f){_0xcd2eb9[_0x5b4b1f(0x22d)](_0x3bd83,![])&&(_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x29e)],await _0xcd2eb9['vRJYp'](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9['sxlNQ'],_0xcd2eb9[_0x5b4b1f(0x300)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1));const _0x54bc03=await _0x1d3e0a[_0x5b4b1f(0x1e8)](_0x37e027);_0xcd2eb9[_0x5b4b1f(0x1dd)](_0x54bc03,![])?(_0xe7a9be=_0xcd2eb9['PiwFM'],await _0xcd2eb9[_0x5b4b1f(0x1c8)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x202)],_0xcd2eb9['tGWif']),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1)):logger[_0x5b4b1f(0x271)]('Found\x20VPC:\x20'+_0x37e027+'\x20');const _0x54bb52=await _0x1d3e0a['isSubnetsValid'](_0xc92719,_0x37e027);_0xcd2eb9[_0x5b4b1f(0x2ac)](_0x54bb52[0x0],![])?(_0xe7a9be='Subnets:\x20'+JSON[_0x5b4b1f(0x2c6)](_0x54bb52[0x1])+_0x5b4b1f(0x244)+_0x37e027+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0xcd2eb9[_0x5b4b1f(0x2b6)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x297)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger['error'](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1)):logger[_0x5b4b1f(0x271)](_0x5b4b1f(0x1f5)+JSON[_0x5b4b1f(0x2c6)](_0xc92719)+'\x20'),[_0x37e027,_0xc92719]=await _0x1d3e0a[_0x5b4b1f(0x243)](_0x37e027,_0xc92719);}else{const _0x3cca6=_0xcd2eb9[_0x5b4b1f(0x23e)][_0x5b4b1f(0x238)]('|');let _0x3e02ce=0x0;while(!![]){switch(_0x3cca6[_0x3e02ce++]){case'0':const _0x375733={};_0x375733[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x375733[_0x5b4b1f(0x2f3)]=_0xcd2eb9[_0x5b4b1f(0x28c)],webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x375733);continue;case'1':logger[_0x5b4b1f(0x271)](_0xcd2eb9['yZnNi']);continue;case'2':[_0x37e027,_0xc92719]=await _0x1d3e0a[_0x5b4b1f(0x243)](_0x37e027,_0xc92719);continue;case'3':logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x1a1)]);continue;case'4':const _0x45304c={};_0x45304c[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x45304c['message']=_0xcd2eb9[_0x5b4b1f(0x1a1)],webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x45304c);continue;}break;}}}}_0x26928b&&_0xcd2eb9[_0x5b4b1f(0x1db)](_0x1743ed,AZURE)&&(await _0x1d3e0a[_0x5b4b1f(0x259)](),await _0x1d3e0a[_0x5b4b1f(0x1c6)]());const [_0x588334,_0x2882b5,_0x31a0ff,_0x5cdb8f,_0xde96c5,_0x1fed39,_0x4af302]=await _0xcd2eb9[_0x5b4b1f(0x221)](createK8sClient,_0x1d3e0a,_0x3370e0[_0x5b4b1f(0x15e)]);_0xcd2eb9[_0x5b4b1f(0x316)](_0x26928b,![])&&_0xcd2eb9[_0x5b4b1f(0x1d7)](_0x1743ed,AWS)&&(global_registry[_0x5b4b1f(0x161)]=!![],_0xfa98f4=await _0x1d3e0a[_0x5b4b1f(0x22f)](_0x588334,_0x3370e0));if(_0xcd2eb9[_0x5b4b1f(0x2f6)](_0x26928b,![])&&global_registry['enableHubHa'])try{await _0x1d3e0a[_0x5b4b1f(0x218)](_0x1fed39,_0x4af302,_0x3370e0,_0x37e027,_0xc92719);const _0x269ef9={};_0x269ef9[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x269ef9['message']=_0xcd2eb9[_0x5b4b1f(0x16c)],webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x269ef9);!await _0xcd2eb9[_0x5b4b1f(0x221)](namespaceExists,_0x588334,global_registry[_0x5b4b1f(0x1b4)])&&await _0xcd2eb9[_0x5b4b1f(0x221)](createNamespace,_0x588334,global_registry[_0x5b4b1f(0x1b4)]);logger['info'](_0xcd2eb9[_0x5b4b1f(0x245)]);let _0x129897=await fs[_0x5b4b1f(0x2d7)](path[_0x5b4b1f(0x17d)](__dirname,_0xcd2eb9[_0x5b4b1f(0x1c3)],_0xcd2eb9[_0x5b4b1f(0x303)],_0xcd2eb9['aNJYs'],_0xcd2eb9[_0x5b4b1f(0x198)]),_0xcd2eb9['wWVkd']);_0x129897=_0x129897[_0x5b4b1f(0x1a9)](/<RedisClientPassword>/g,_0xcd2eb9['cTEKz'](encodeBase64,global_registry['redisPassword'])),_0x129897=_0x129897['replace'](/<KafkaClientPassword>/g,_0xcd2eb9[_0x5b4b1f(0x266)](encodeBase64,global_registry[_0x5b4b1f(0x1b2)])),_0x129897=_0x129897[_0x5b4b1f(0x1a9)](/<BstackUsername>/g,_0xcd2eb9[_0x5b4b1f(0x19f)](encodeBase64,global_registry['bstackUsername'])),_0x129897=_0x129897[_0x5b4b1f(0x1a9)](/<BstackAccessKey>/g,_0xcd2eb9['WaWwF'](encodeBase64,global_registry[_0x5b4b1f(0x18a)]));const _0xd69e7a=yaml[_0x5b4b1f(0x1ea)](_0x129897);await _0xcd2eb9['USFOm'](kubeApply,_0xd69e7a,_0x4af302),logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x301)]);let _0x121276=_0xcd2eb9[_0x5b4b1f(0x234)];if(_0xcd2eb9[_0x5b4b1f(0x2ac)](_0x1743ed,AZURE))_0x121276=_0xcd2eb9[_0x5b4b1f(0x1fc)];else _0xcd2eb9['GJvtT'](_0x1743ed,GCP)&&(_0x121276=_0xcd2eb9['TyCgj']);logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x2cd)]);let _0x4e429f=await fs[_0x5b4b1f(0x2d7)](path[_0x5b4b1f(0x17d)](__dirname,_0xcd2eb9[_0x5b4b1f(0x1c3)],_0xcd2eb9[_0x5b4b1f(0x303)],_0xcd2eb9[_0x5b4b1f(0x233)],_0xcd2eb9[_0x5b4b1f(0x186)]),_0xcd2eb9[_0x5b4b1f(0x1e6)]);_0x4e429f=_0x4e429f[_0x5b4b1f(0x1a9)](/<HubHaNameSpace>/g,global_registry[_0x5b4b1f(0x1b4)]),_0x4e429f=_0x4e429f[_0x5b4b1f(0x1a9)](/<StorageClassName>/g,_0x121276);const _0x5b277b=yaml[_0x5b4b1f(0x1ea)](_0x4e429f);await _0xcd2eb9[_0x5b4b1f(0x2da)](kubeApply,_0x5b277b,_0x4af302),logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x1d3)]),logger[_0x5b4b1f(0x271)](_0xcd2eb9['yxTEI']);let _0x39e15e=await fs[_0x5b4b1f(0x2d7)](path['join'](__dirname,_0xcd2eb9[_0x5b4b1f(0x1c3)],_0xcd2eb9[_0x5b4b1f(0x303)],_0xcd2eb9[_0x5b4b1f(0x233)],_0xcd2eb9[_0x5b4b1f(0x2f0)]),_0xcd2eb9[_0x5b4b1f(0x1e6)]);_0x39e15e=_0x39e15e['replace'](/<HubHaNameSpace>/g,global_registry[_0x5b4b1f(0x1b4)]),_0x39e15e=_0x39e15e[_0x5b4b1f(0x1a9)](/<StorageClassName>/g,_0x121276);const _0x5525d4=yaml['loadAll'](_0x39e15e);await _0xcd2eb9[_0x5b4b1f(0x24b)](kubeApply,_0x5525d4,_0x4af302),logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x2e8)]),logger['info'](_0xcd2eb9[_0x5b4b1f(0x1c9)]);let _0x99835b=await fs['readFileAsync'](path[_0x5b4b1f(0x17d)](__dirname,_0xcd2eb9[_0x5b4b1f(0x1c3)],_0xcd2eb9['nwfQL'],_0xcd2eb9[_0x5b4b1f(0x233)],_0xcd2eb9[_0x5b4b1f(0x1a8)]),_0xcd2eb9[_0x5b4b1f(0x1e6)]);_0x99835b=_0x99835b[_0x5b4b1f(0x1a9)](/<UploaderImageVersion>/g,global_registry[_0x5b4b1f(0x294)]),_0x99835b=_0x99835b[_0x5b4b1f(0x1a9)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']);const _0x7173ce=yaml[_0x5b4b1f(0x1ea)](_0x99835b);_0xcd2eb9[_0x5b4b1f(0x2f6)](global_registry[_0x5b4b1f(0x311)],AZURE)&&(_0x7173ce[0x0][_0x5b4b1f(0x267)][_0x5b4b1f(0x2a2)][_0x5b4b1f(0x19a)]['labels']={'azure.workload.identity/use':_0xcd2eb9[_0x5b4b1f(0x18c)],..._0x7173ce[0x0][_0x5b4b1f(0x267)][_0x5b4b1f(0x2a2)][_0x5b4b1f(0x19a)]['labels']},_0x7173ce[0x0][_0x5b4b1f(0x267)][_0x5b4b1f(0x2a2)][_0x5b4b1f(0x267)]['serviceAccountName']=_0xcd2eb9[_0x5b4b1f(0x257)]);await _0xcd2eb9['SJDbl'](kubeApply,_0x7173ce,_0x4af302),logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x223)]);const _0x1e4936={};_0x1e4936[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x1e4936[_0x5b4b1f(0x2f3)]=_0xcd2eb9[_0x5b4b1f(0x28f)],webSocketUtils['sendEventToBackend'](_0x40ff6e,_0x1e4936),logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x2d1)]);}catch(_0x9a4c8b){const _0x9951a0=_0xcd2eb9['bWLaB'][_0x5b4b1f(0x238)]('|');let _0x4b624c=0x0;while(!![]){switch(_0x9951a0[_0x4b624c++]){case'0':await _0xcd2eb9['DWGPb'](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9['sxlNQ'],_0xcd2eb9[_0x5b4b1f(0x16d)],_0xcd2eb9[_0x5b4b1f(0x1ed)]);continue;case'1':await _0x1d3e0a[_0x5b4b1f(0x2a6)](_0x588334,global_registry[_0x5b4b1f(0x187)]);continue;case'2':_0xe7a9be=_0x5b4b1f(0x250)+_0x9a4c8b[_0x5b4b1f(0x2f3)];continue;case'3':logger[_0x5b4b1f(0x16f)](_0xe7a9be);continue;case'4':process[_0x5b4b1f(0x16b)](0x1);continue;}break;}}try{_0x5bfb6f=_0xcd2eb9['LIGyC'](kebabCase,_0xfe2fbf),logger['info'](_0xcd2eb9[_0x5b4b1f(0x1b7)]);const _0x313a34={};_0x313a34[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x313a34['message']=_0xcd2eb9['BPERO'],webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x313a34);if(_0xcd2eb9[_0x5b4b1f(0x2bf)](_0x5bfb6f,_0xcd2eb9[_0x5b4b1f(0x257)])){const _0x2bcc13={};_0x2bcc13['createdBy']=_0xcd2eb9[_0x5b4b1f(0x204)],_0x2bcc13['managedBy']=_0xcd2eb9[_0x5b4b1f(0x204)];const _0x30238a={};_0x30238a['name']=_0x5bfb6f,_0x30238a[_0x5b4b1f(0x2ba)]=_0x2bcc13;const _0xbcead8={};_0xbcead8['metadata']=_0x30238a;const _0x5220c7=_0xbcead8,_0x555377={};_0x555377[_0x5b4b1f(0x304)]=_0x5220c7,await _0x588334['createNamespace'](_0x555377),logger[_0x5b4b1f(0x271)](_0xcd2eb9['EdDvr']);}const _0x34f4c0={};_0x34f4c0[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x34f4c0[_0x5b4b1f(0x2f3)]=_0xcd2eb9['dmpqk'],webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x34f4c0);const _0x271466={};_0x271466['type']=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x271466[_0x5b4b1f(0x2f3)]=_0xcd2eb9[_0x5b4b1f(0x2f4)],webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x271466),logger[_0x5b4b1f(0x271)](_0xcd2eb9['HYrYR']);let _0x4a7020={};_0xcd2eb9[_0x5b4b1f(0x1db)](_0x1743ed,AZURE)&&(_0x4a7020={'clientId':await _0x1d3e0a[_0x5b4b1f(0x2fa)](_0x5b4b1f(0x305)+_0x3b74cd)});await _0xcd2eb9[_0x5b4b1f(0x288)](addGridComponents,_0x588334,_0x2882b5,_0x31a0ff,_0x5cdb8f,_0x5bfb6f,_0x3b74cd,_0xfa98f4,_0xde96c5,_0x4af302,_0x4a7020),_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x2b9)],logger['info'](_0xe7a9be);const _0x11b11c={};_0x11b11c[_0x5b4b1f(0x295)]=WS_EVENTS['LOG'],_0x11b11c[_0x5b4b1f(0x2f3)]=_0xe7a9be,webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x11b11c),_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x227)],logger[_0x5b4b1f(0x271)](_0xe7a9be);const _0x42a67f={};_0x42a67f[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x42a67f[_0x5b4b1f(0x2f3)]=_0xe7a9be,webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x42a67f),await _0xcd2eb9['FxCGH'](waitForDeployment,_0x2882b5,_0x5bfb6f,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x217e1e=await _0xcd2eb9[_0x5b4b1f(0x2da)](getNamespaceUID,_0x588334,_0x5bfb6f),_0x36b53f=global_registry[_0x5b4b1f(0x2aa)]?_0xcd2eb9[_0x5b4b1f(0x1bc)]:_0xcd2eb9[_0x5b4b1f(0x24e)],_0x4728a2={};_0x4728a2[_0x5b4b1f(0x1cd)]=_0x36b53f,_0x4728a2[_0x5b4b1f(0x183)]=_0xcd2eb9[_0x5b4b1f(0x1ba)];const _0x59c219=await _0x588334[_0x5b4b1f(0x1d0)](_0x4728a2);let _0x3e3041=_0x1d3e0a['getGridHostname'](_0x59c219)+'/'+_0x5bfb6f,_0x239f91=_0xcd2eb9['pRUss'];try{const _0xff57aa=_0x5b4b1f(0x2ab)+AG_API_URL+_0x5b4b1f(0x160)+_0x217e1e,_0x56a3d7=await _0xcd2eb9['NGnhV'](got,_0xff57aa,_0x10e58d);(_0xcd2eb9['ZNHZn'](_0x56a3d7,null)||_0xcd2eb9[_0x5b4b1f(0x206)](_0x56a3d7,undefined))&&(_0xe7a9be=_0xcd2eb9[_0x5b4b1f(0x281)],await _0xcd2eb9[_0x5b4b1f(0x2ae)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes['ERROR'],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x28e)],_0xcd2eb9['tGWif']),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1));_0xcd2eb9[_0x5b4b1f(0x2d8)](_0x56a3d7['statusCode'],0x191)&&(_0xe7a9be=_0xcd2eb9['ypPVl'],await _0xcd2eb9[_0x5b4b1f(0x2b2)](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes['ERROR'],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x242)],_0xcd2eb9[_0x5b4b1f(0x1ed)]),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1));_0xcd2eb9[_0x5b4b1f(0x25c)](_0x56a3d7[_0x5b4b1f(0x18b)],0xc8)&&(_0xe7a9be='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x56a3d7),await _0xcd2eb9['ELBfh'](reportToGalactusAndSendToEDS,_0x3370e0,_0x40ff6e,_0xe7a9be,messageTypes[_0x5b4b1f(0x2d9)],_0xcd2eb9[_0x5b4b1f(0x19c)],_0xcd2eb9[_0x5b4b1f(0x258)],_0xcd2eb9['tGWif']),logger[_0x5b4b1f(0x16f)](_0xe7a9be),process[_0x5b4b1f(0x16b)](0x1));const _0x223f1c=JSON['parse'](_0x56a3d7[_0x5b4b1f(0x304)]);_0x223f1c[_0x5b4b1f(0x29d)]&&(_0x3e3041=_0x223f1c[_0x5b4b1f(0x29d)],_0x239f91=_0xcd2eb9[_0x5b4b1f(0x209)]),global_registry[_0x5b4b1f(0x2aa)]&&(_0x239f91=_0xcd2eb9['pRUss']);}catch(_0x45b32a){}_0xe7a9be=_0x5b4b1f(0x1a0)+_0x3e3041+'\x20',logger[_0x5b4b1f(0x271)](_0xe7a9be);const _0x12bcdb={};_0x12bcdb[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x12bcdb[_0x5b4b1f(0x2f3)]=_0xe7a9be,webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x12bcdb),_0xe7a9be='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x239f91+_0x5b4b1f(0x15d)+_0x3e3041+'/wd/hub',logger['info'](_0xe7a9be);const _0x12870a={};_0x12870a[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x2d0)],_0x12870a[_0x5b4b1f(0x2f3)]=_0xe7a9be,webSocketUtils['sendEventToBackend'](_0x40ff6e,_0x12870a);const _0x422dc1={};_0x422dc1[_0x5b4b1f(0x295)]=WS_EVENTS[_0x5b4b1f(0x246)],_0x422dc1[_0x5b4b1f(0x2f3)]=_0x5b4b1f(0x1a6)+_0x3e3041,webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x422dc1),await webSocketUtils[_0x5b4b1f(0x19b)](0x7d0);}catch(_0x38851d){logger[_0x5b4b1f(0x16f)](_0x5b4b1f(0x24c)+_0x38851d+'\x20\x0a'+JSON[_0x5b4b1f(0x2c6)](_0x38851d[_0x5b4b1f(0x287)]));if(_0xcd2eb9['uBEST'](_0x26928b,![]))try{logger[_0x5b4b1f(0x271)](_0xcd2eb9[_0x5b4b1f(0x2a7)]),await _0xcd2eb9[_0x5b4b1f(0x2ed)](removeGridComponents,_0x588334,_0x2882b5,_0x31a0ff,_0x5cdb8f,_0x5bfb6f),await _0x1d3e0a['deleteCluster'](_0x588334,global_registry[_0x5b4b1f(0x187)]);}catch(_0x4166ab){logger['error'](_0x5b4b1f(0x1c2)+_0x4166ab+'\x20\x0a'+JSON['stringify'](_0x4166ab['stack']));}throw _0x38851d;}}catch(_0x937ae9){const _0x155ccb=_0x5b4b1f(0x2bd)+_0x937ae9+'\x20\x0a'+JSON[_0x5b4b1f(0x2c6)](_0x937ae9['stack']);if(_0x40ff6e){const _0x269f9d={};_0x269f9d[_0x5b4b1f(0x295)]=WS_EVENTS['LOG'],_0x269f9d[_0x5b4b1f(0x2f3)]=_0x155ccb,webSocketUtils[_0x5b4b1f(0x1be)](_0x40ff6e,_0x269f9d,_0xcd2eb9['tGWif'],!![]);}await webSocketUtils[_0x5b4b1f(0x19b)](0x7d0);const _0x507864={};_0x507864[_0x5b4b1f(0x16f)]=_0x155ccb,await _0xcd2eb9['faQwN'](sendInstrumentationEvent,_0x3370e0,_0xcd2eb9[_0x5b4b1f(0x19c)],messageTypes['ERROR'],_0xcd2eb9[_0x5b4b1f(0x192)],_0x507864,_0x3370e0),logger[_0x5b4b1f(0x16f)](_0x155ccb);}process[_0x5b4b1f(0x16b)](0x0);};
@@ -1 +1 @@
1
- const a10_0x53e650=a10_0xc395;(function(_0x57e90d,_0x3ca069){const _0xc80be3=a10_0xc395,_0x3021c2=_0x57e90d();while(!![]){try{const _0x4f5e6a=parseInt(_0xc80be3(0x1c4))/0x1+-parseInt(_0xc80be3(0x1c1))/0x2*(-parseInt(_0xc80be3(0x1be))/0x3)+-parseInt(_0xc80be3(0x1c0))/0x4+-parseInt(_0xc80be3(0x1c3))/0x5*(-parseInt(_0xc80be3(0x1c7))/0x6)+-parseInt(_0xc80be3(0x1c6))/0x7*(parseInt(_0xc80be3(0x1cb))/0x8)+parseInt(_0xc80be3(0x1c8))/0x9*(parseInt(_0xc80be3(0x1c2))/0xa)+-parseInt(_0xc80be3(0x1d3))/0xb*(parseInt(_0xc80be3(0x1cd))/0xc);if(_0x4f5e6a===_0x3ca069)break;else _0x3021c2['push'](_0x3021c2['shift']());}catch(_0x1e9692){_0x3021c2['push'](_0x3021c2['shift']());}}}(a10_0x2d31,0xd30b0));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x53e650(0x1c9));function a10_0xc395(_0x172589,_0x484675){const _0x2d3159=a10_0x2d31();return a10_0xc395=function(_0xc395c6,_0x199ff6){_0xc395c6=_0xc395c6-0x1bc;let _0x25e856=_0x2d3159[_0xc395c6];return _0x25e856;},a10_0xc395(_0x172589,_0x484675);}function a10_0x2d31(){const _0xc89ad6=['153279IIcFGc','../config/constants','command','3086576KYXerj','handler','16857996FEkXCg','uAoUz','List\x20Grid\x20resources.','desc','help','recommendCommands','22nAXidz','builder','plydM','demandCommand','2309169QKyArq','delete','1569604hwceBU','4BLOVbl','860HUSEnZ','75uLyOFS','1329476hDsTtp','delete_commands','14GuHDFx','201822uWeSiL'];a10_0x2d31=function(){return _0xc89ad6;};return a10_0x2d31();}exports[a10_0x53e650(0x1ca)]='delete',exports[a10_0x53e650(0x1d0)]=a10_0x53e650(0x1cf),exports[a10_0x53e650(0x1d4)]=function(_0x1f3282){const _0xc5f213=a10_0x53e650,_0x2be2fa={};_0x2be2fa['plydM']=_0xc5f213(0x1c5),_0x2be2fa[_0xc5f213(0x1ce)]='help';const _0x1322cc=_0x2be2fa;return _0x1f3282['usage'](HELP_HEADER_MESSAGE[_0xc5f213(0x1bf)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x1322cc[_0xc5f213(0x1bc)])[_0xc5f213(0x1bd)]()[_0xc5f213(0x1d2)]()['strict']()[_0xc5f213(0x1d1)](_0x1322cc['uAoUz']);},exports[a10_0x53e650(0x1cc)]=function(_0x26036a){};
1
+ function a10_0x25ae(_0x3b4387,_0x5d4b96){const _0x19ebf5=a10_0x19eb();return a10_0x25ae=function(_0x25aed8,_0x5e7765){_0x25aed8=_0x25aed8-0x17f;let _0x41a116=_0x19ebf5[_0x25aed8];return _0x41a116;},a10_0x25ae(_0x3b4387,_0x5d4b96);}const a10_0x3b8aa2=a10_0x25ae;(function(_0x26e507,_0x1340b4){const _0x2f515c=a10_0x25ae,_0x49c385=_0x26e507();while(!![]){try{const _0x58537a=parseInt(_0x2f515c(0x185))/0x1+-parseInt(_0x2f515c(0x18f))/0x2+parseInt(_0x2f515c(0x18e))/0x3+-parseInt(_0x2f515c(0x193))/0x4+-parseInt(_0x2f515c(0x192))/0x5+-parseInt(_0x2f515c(0x187))/0x6*(-parseInt(_0x2f515c(0x181))/0x7)+parseInt(_0x2f515c(0x191))/0x8;if(_0x58537a===_0x1340b4)break;else _0x49c385['push'](_0x49c385['shift']());}catch(_0x99d206){_0x49c385['push'](_0x49c385['shift']());}}}(a10_0x19eb,0x7e818));function a10_0x19eb(){const _0x48635c=['commandDir','strict','173066ONTiHr','usage','1421718DYwHKZ','delete','help','demandCommand','command','delete_commands','rTlMX','1735635YXSrna','1684704bbWZov','recommendCommands','4709816zxCegG','4294155PHlcDC','275196rIqHme','desc','List\x20Grid\x20resources.','BSRWY','epilogue','28MWgbmP','handler'];a10_0x19eb=function(){return _0x48635c;};return a10_0x19eb();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a10_0x3b8aa2(0x18b)]='delete',exports[a10_0x3b8aa2(0x194)]=a10_0x3b8aa2(0x195),exports['builder']=function(_0x24ec7){const _0xecf972=a10_0x3b8aa2,_0x1ed8f9={};_0x1ed8f9[_0xecf972(0x18d)]=_0xecf972(0x18c),_0x1ed8f9[_0xecf972(0x17f)]=_0xecf972(0x189);const _0x5c4c5e=_0x1ed8f9;return _0x24ec7[_0xecf972(0x186)](HELP_HEADER_MESSAGE[_0xecf972(0x188)])[_0xecf972(0x180)](HELP_FOOTER_MESSAGE)[_0xecf972(0x183)](_0x5c4c5e[_0xecf972(0x18d)])[_0xecf972(0x18a)]()[_0xecf972(0x190)]()[_0xecf972(0x184)]()[_0xecf972(0x189)](_0x5c4c5e[_0xecf972(0x17f)]);},exports[a10_0x3b8aa2(0x182)]=function(_0x5bad78){};
@@ -1 +1 @@
1
- function a11_0x11cc(_0x13319d,_0x1c7d26){const _0x418514=a11_0x4185();return a11_0x11cc=function(_0x11cca5,_0x107ae9){_0x11cca5=_0x11cca5-0x164;let _0x153326=_0x418514[_0x11cca5];return _0x153326;},a11_0x11cc(_0x13319d,_0x1c7d26);}const a11_0x8d0b58=a11_0x11cc;(function(_0x540ac1,_0x59a80f){const _0x6cd892=a11_0x11cc,_0x25d117=_0x540ac1();while(!![]){try{const _0x11c098=-parseInt(_0x6cd892(0x190))/0x1*(parseInt(_0x6cd892(0x172))/0x2)+parseInt(_0x6cd892(0x198))/0x3+-parseInt(_0x6cd892(0x1bd))/0x4+parseInt(_0x6cd892(0x1d8))/0x5*(parseInt(_0x6cd892(0x192))/0x6)+-parseInt(_0x6cd892(0x1b3))/0x7*(-parseInt(_0x6cd892(0x164))/0x8)+-parseInt(_0x6cd892(0x171))/0x9*(-parseInt(_0x6cd892(0x1f5))/0xa)+parseInt(_0x6cd892(0x1ed))/0xb;if(_0x11c098===_0x59a80f)break;else _0x25d117['push'](_0x25d117['shift']());}catch(_0x2d5cc0){_0x25d117['push'](_0x25d117['shift']());}}}(a11_0x4185,0xbd389));function a11_0x4185(){const _0x473ceb=['got','WebSocket','replace','hBPJo','dsodC','mQlat','init-not-called','iNbSw','grid-id','YveEC','10953MqLumy','795772oUGrhg','Pass\x20the\x20ID\x20of\x20the\x20Grid','zGSCk','<UsernamePlaceholder>','description','dERNc','isBrowserstackCluster','exit','statusCode','then','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','boolean','Skip\x20insecure\x20cert\x20verification.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','clusterName','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','epilogue','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','clusterId','../../utils/utilityMethods','../../utils/webSocketUtils','BZukt','IKeKM','argv','oljGp','Namespace:\x20','XTzrG','region','IVbSV','delete','1aqaDpa','XvrXK','200922jJBQQX','../../utils/createk8sClient','wsrjL','server-error','tKlva','rEEcX','3871773LTGTWK','WJdLb','options','warn','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','name','catch','handler','type','LCjrc','DXrIq','SmPar','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','clusterSpawnedVia','plUmM','Cluster:\x20','default','invalid-grid-id','clusterRegion','gridId','uBIDm','DcjYz','AByNJ','string','rSgwx','deleteCluster','LAlyL','15771hArqJe','xRtsJ','UVvey','LQKju','\x22\x20and\x20ID\x20','readFileSync','hgyov','error','onlyGridInCluster','woRNt','3447840XyaFrZ','QHKeG','PLfiJ','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','../../utils/userInput','info','builder','VdpmZ','gfIYp','xMEQa','isClusterPresent','requestId','parse','stringify','PxTfq','../../cloudproviders/utils','../../utils/gridComponents','uuid','skip-tls-cert-verify','username','nOxok','Delete\x20an\x20Automation\x20grid.','LMXdh','cloudProvider','WrfII','ekfEZ','help','10RNkaCh','existsSync','mhUjs','../../utils/instrumentationUtils','myhKs','DELETE','../../config/logger','toLowerCase','Browserstack','unauthorised','SEZeT','stack','IwUMH','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','desc','EqBGO','cORWY','xalWJ','bhQFl','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','jsDdb','2706418mLlJwL','usage','https://','ERROR','Failed\x20to\x20delete\x20resources!\x20Error:\x20','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','LRzgG','UtTst','2970tNWZHq','WTsRM','body','Frcpe','\x22\x20with\x20ID\x20','message','huuZr','invalid-input','WNXUS','RIXKo','vQKYl','248MUUIzf','kxlXC','<PasswordPlaceholder>'];a11_0x4185=function(){return _0x473ceb;};return a11_0x4185();}const fs=require('fs'),got=require(a11_0x8d0b58(0x167)),{v4:uuidv4}=require(a11_0x8d0b58(0x1ce)),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require(a11_0x8d0b58(0x1de)),{getCloudProviderObject}=require(a11_0x8d0b58(0x1cc)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x8d0b58(0x1cd)),{sendInstrumentationEvent}=require(a11_0x8d0b58(0x1db)),{inputConfirmation}=require(a11_0x8d0b58(0x1c1)),{createK8sClient}=require(a11_0x8d0b58(0x193)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x8d0b58(0x185)),webSocketUtils=require(a11_0x8d0b58(0x186));exports['command']='grid',exports[a11_0x8d0b58(0x1e6)]=a11_0x8d0b58(0x1d2),exports[a11_0x8d0b58(0x1c3)]=function(_0x36b948){const _0x364201=a11_0x8d0b58,_0x1f209b={};_0x1f209b[_0x364201(0x170)]=_0x364201(0x173),_0x1f209b[_0x364201(0x1ec)]=_0x364201(0x1af),_0x1f209b[_0x364201(0x16e)]=_0x364201(0x17e),_0x1f209b[_0x364201(0x1bf)]=_0x364201(0x17d),_0x1f209b[_0x364201(0x1f4)]='help';const _0x4975e2=_0x1f209b,_0x90af9={};_0x90af9[_0x364201(0x176)]=_0x4975e2[_0x364201(0x170)],_0x90af9[_0x364201(0x1a0)]=_0x4975e2[_0x364201(0x1ec)];const _0x57ad64={};_0x57ad64[_0x364201(0x176)]=_0x4975e2[_0x364201(0x16e)],_0x57ad64[_0x364201(0x1a0)]=_0x4975e2[_0x364201(0x1bf)],_0x57ad64[_0x364201(0x1a8)]=![];const _0x102022={};return _0x102022[_0x364201(0x16f)]=_0x90af9,_0x102022[_0x364201(0x1cf)]=_0x57ad64,_0x36b948[_0x364201(0x1ee)](HELP_HEADER_MESSAGE[_0x364201(0x18f)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x364201(0x19a)](_0x102022)[_0x364201(0x1d7)](_0x4975e2[_0x364201(0x1f4)])[_0x364201(0x189)];},exports[a11_0x8d0b58(0x19f)]=async function(_0x58c401){const _0x78f00b=a11_0x8d0b58,_0x1a9af4={'dERNc':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','LQKju':_0x78f00b(0x173),'myhKs':_0x78f00b(0x1af),'plUmM':_0x78f00b(0x17e),'EqBGO':'boolean','DUreL':_0x78f00b(0x1d7),'VdpmZ':'Successfully\x20deleted\x20the\x20grid','WJdLb':function(_0xe3f7c3,_0x2854a1){return _0xe3f7c3===_0x2854a1;},'RIXKo':_0x78f00b(0x1f3),'QHKeG':_0x78f00b(0x1fd),'XTzrG':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','tKlva':function(_0x5db260){return _0x5db260();},'WrfII':_0x78f00b(0x1ae),'FCnzA':_0x78f00b(0x17c),'xMEQa':function(_0x2b884b,_0x1f0c04,_0x59a87a,_0x34ce8f,_0x1251a6,_0xf8e4a0,_0xfcfb4f){return _0x2b884b(_0x1f0c04,_0x59a87a,_0x34ce8f,_0x1251a6,_0xf8e4a0,_0xfcfb4f);},'BZukt':'delete-grid-called','bhQFl':_0x78f00b(0x16d),'wsrjL':function(_0x44937a,_0x3517fa,_0x846d14,_0x17f6c2,_0x4e113a,_0x2cca19,_0xe982a0){return _0x44937a(_0x3517fa,_0x846d14,_0x17f6c2,_0x4e113a,_0x2cca19,_0xe982a0);},'IHiyj':function(_0xcf806d,_0xbe4cab){return _0xcf806d!==_0xbe4cab;},'lxvCo':_0x78f00b(0x1e2),'xRtsJ':'FeSsQ','IxSJC':function(_0x327afe,_0x2d9f5a,_0x4d4cac,_0x5f5563){return _0x327afe(_0x2d9f5a,_0x4d4cac,_0x5f5563);},'rEEcX':function(_0x68154f,_0x50b9e4){return _0x68154f===_0x50b9e4;},'kxlXC':'Browserstack','woRNt':function(_0x5f17a8,_0x30517f){return _0x5f17a8!==_0x30517f;},'nOxok':_0x78f00b(0x18a),'DXrIq':function(_0x53973e,_0x474d0b){return _0x53973e(_0x474d0b);},'ToEUk':function(_0x9fde4e,_0x393796){return _0x9fde4e===_0x393796;},'WTsRM':function(_0x573db2,_0x4d7a10){return _0x573db2===_0x4d7a10;},'dsodC':'zItYE','LCjrc':_0x78f00b(0x1e8),'LAlyL':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','lZaLL':function(_0x22a8d2,_0x498d97,_0x4469e1,_0x4bb46a,_0xa382db,_0x264e3f,_0x2e57de){return _0x22a8d2(_0x498d97,_0x4469e1,_0x4bb46a,_0xa382db,_0x264e3f,_0x2e57de);},'nnKuL':_0x78f00b(0x1fc),'SmPar':function(_0x1324b5,_0x422bc6){return _0x1324b5===_0x422bc6;},'mQlat':_0x78f00b(0x1e9),'ekfEZ':_0x78f00b(0x175),'gfIYp':_0x78f00b(0x166),'IwUMH':function(_0x3215ba,_0x461f1e,_0x114a21){return _0x3215ba(_0x461f1e,_0x114a21);},'hBPJo':function(_0x338d91,_0x3f003a,_0x5c18bd,_0x2ccfa9,_0x13667e,_0x3c7186){return _0x338d91(_0x3f003a,_0x5c18bd,_0x2ccfa9,_0x13667e,_0x3c7186);},'huuZr':function(_0x578ed5,_0x1b151b){return _0x578ed5===_0x1b151b;},'vnBNX':_0x78f00b(0x188),'mhUjs':'GXNea','vQKYl':function(_0x4be4cd,_0x421d31){return _0x4be4cd===_0x421d31;},'PxTfq':_0x78f00b(0x1b0),'zGSCk':_0x78f00b(0x1dd),'XvrXK':function(_0x15cbae,_0x4ffe24){return _0x15cbae!==_0x4ffe24;},'QXDXZ':function(_0x51c1da,_0x1d42e4){return _0x51c1da!==_0x1d42e4;},'DcjYz':function(_0x2544f0,_0x380daa,_0x483b4f,_0x52e7d9,_0xee593e,_0x3a5cf4,_0x28289e){return _0x2544f0(_0x380daa,_0x483b4f,_0x52e7d9,_0xee593e,_0x3a5cf4,_0x28289e);},'LMXdh':_0x78f00b(0x195),'MztQI':_0x78f00b(0x181),'Frcpe':_0x78f00b(0x1e1),'uBIDm':function(_0x30dc18,_0x56ab53){return _0x30dc18===_0x56ab53;},'hgyov':function(_0x22f6c1,_0x3aebe1,_0x575658,_0x1a0d25,_0x3119b2,_0x1cbdbb,_0x3bf9ea){return _0x22f6c1(_0x3aebe1,_0x575658,_0x1a0d25,_0x3119b2,_0x1cbdbb,_0x3bf9ea);},'UVvey':_0x78f00b(0x1a9),'jmaUs':function(_0x15e2f9,_0x121b5d,_0x32e1f4,_0x1d6f2b,_0x2d907c,_0x174c5f,_0x50415a){return _0x15e2f9(_0x121b5d,_0x32e1f4,_0x1d6f2b,_0x2d907c,_0x174c5f,_0x50415a);},'fxYWe':'unknown-error'};try{global_registry[_0x78f00b(0x1c8)]=_0x1a9af4[_0x78f00b(0x196)](uuidv4);!fs[_0x78f00b(0x1d9)](_0x1a9af4[_0x78f00b(0x196)](getCredentialsPath))&&(_0x1a9af4[_0x78f00b(0x199)](_0x1a9af4[_0x78f00b(0x1d5)],_0x1a9af4[_0x78f00b(0x1d5)])?(console[_0x78f00b(0x1ba)](_0x1a9af4['FCnzA']),await _0x1a9af4[_0x78f00b(0x1c6)](sendInstrumentationEvent,_0x58c401,_0x1a9af4[_0x78f00b(0x187)],messageTypes[_0x78f00b(0x1f0)],_0x1a9af4[_0x78f00b(0x1ea)],null,_0x58c401),process['exit'](0x1)):_0x187f74[_0x78f00b(0x1c2)]('Namespace:\x20'+_0x1f488c+_0x78f00b(0x19c)));_0x1a9af4['wsrjL'](sendInstrumentationEvent,_0x58c401,_0x1a9af4[_0x78f00b(0x187)],messageTypes['INFO'],null,null,_0x58c401);!_0x58c401['gridId']&&(_0x1a9af4['IHiyj'](_0x1a9af4['lxvCo'],_0x1a9af4[_0x78f00b(0x1b4)])?(console[_0x78f00b(0x1ba)](_0x1a9af4['dERNc']),process[_0x78f00b(0x179)](0x1)):_0xac75e5[_0x78f00b(0x19b)](_0x78f00b(0x1a7)+_0x2d577d[_0x78f00b(0x180)]+_0x78f00b(0x183)));const _0x2c0514=JSON[_0x78f00b(0x1c9)](fs[_0x78f00b(0x1b8)](_0x1a9af4[_0x78f00b(0x196)](getCredentialsPath))),[_0x5a83f1,_0x3a349a]=await _0x1a9af4['IxSJC'](getGridDetails,_0x2c0514[_0x78f00b(0x1e0)][_0x78f00b(0x1d0)],_0x2c0514[_0x78f00b(0x1e0)]['password'],_0x58c401[_0x78f00b(0x1ab)]);if(_0x3a349a){const _0x23bbe0=_0x3a349a[_0x78f00b(0x1c2)];let _0x39de4e='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x23bbe0[_0x78f00b(0x19d)]+_0x78f00b(0x1b7)+_0x23bbe0['id']+_0x78f00b(0x1eb);_0x3a349a[_0x78f00b(0x1bb)]&&_0x1a9af4[_0x78f00b(0x197)](_0x3a349a[_0x78f00b(0x1a5)],_0x1a9af4[_0x78f00b(0x165)])&&(_0x1a9af4[_0x78f00b(0x1bc)](_0x1a9af4[_0x78f00b(0x1d1)],_0x1a9af4['nOxok'])?(_0x5c85f5[_0x78f00b(0x1ba)](_0x1a9af4[_0x78f00b(0x177)]),_0x1dd9c6[_0x78f00b(0x179)](0x1)):_0x39de4e=_0x78f00b(0x1f2)+_0x23bbe0[_0x78f00b(0x19d)]+_0x78f00b(0x1b7)+_0x23bbe0['id']+_0x78f00b(0x1c0)+_0x23bbe0[_0x78f00b(0x180)]+_0x78f00b(0x1f9)+_0x23bbe0['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');const _0x420924=await _0x1a9af4[_0x78f00b(0x1a2)](inputConfirmation,_0x39de4e);(_0x1a9af4['WJdLb'](_0x420924,undefined)||_0x1a9af4['rEEcX'](_0x420924,null)||!(_0x1a9af4['ToEUk'](_0x420924[_0x78f00b(0x1df)](),'y')||_0x1a9af4[_0x78f00b(0x1f6)](_0x420924[_0x78f00b(0x1df)](),'n')))&&(_0x1a9af4[_0x78f00b(0x197)](_0x1a9af4[_0x78f00b(0x16b)],_0x1a9af4[_0x78f00b(0x1a1)])?_0x45796d[_0x78f00b(0x179)](0x0):(console[_0x78f00b(0x1ba)](_0x1a9af4[_0x78f00b(0x1b2)]),await _0x1a9af4['lZaLL'](sendInstrumentationEvent,_0x58c401,_0x1a9af4[_0x78f00b(0x187)],messageTypes[_0x78f00b(0x1f0)],_0x1a9af4['nnKuL'],null,_0x58c401),process[_0x78f00b(0x179)](0x1)));if(_0x1a9af4['ToEUk'](_0x420924[_0x78f00b(0x1df)](),'n')){if(_0x1a9af4[_0x78f00b(0x1a3)](_0x1a9af4[_0x78f00b(0x16c)],_0x1a9af4['mQlat']))process[_0x78f00b(0x179)](0x0);else{const _0x421430={};_0x421430[_0x78f00b(0x176)]=_0x1a9af4[_0x78f00b(0x1b6)],_0x421430['type']=_0x1a9af4[_0x78f00b(0x1dc)];const _0x4946c8={};_0x4946c8[_0x78f00b(0x176)]=_0x1a9af4[_0x78f00b(0x1a6)],_0x4946c8[_0x78f00b(0x1a0)]=_0x1a9af4[_0x78f00b(0x1e7)],_0x4946c8[_0x78f00b(0x1a8)]=![];const _0x44cf9a={};return _0x44cf9a[_0x78f00b(0x16f)]=_0x421430,_0x44cf9a[_0x78f00b(0x1cf)]=_0x4946c8,_0x40be0a['usage'](_0x56b139['delete'])[_0x78f00b(0x182)](_0x20099c)['options'](_0x44cf9a)[_0x78f00b(0x1d7)](_0x1a9af4['DUreL'])[_0x78f00b(0x189)];}}const _0x4d298d=WS_ENDPOINT['replace'](_0x1a9af4[_0x78f00b(0x1d6)],_0x2c0514[_0x78f00b(0x1e0)][_0x78f00b(0x1d0)])[_0x78f00b(0x169)](_0x1a9af4[_0x78f00b(0x1c5)],_0x2c0514[_0x78f00b(0x1e0)]['password']),_0x3c8ceb={};_0x3c8ceb[_0x78f00b(0x168)]=ws,_0x3c8ceb['connectionTimeout']=0x36ee80;const _0x42b2ad=new ReconnectingWebSocket(_0x4d298d,[],_0x3c8ceb);global_registry[_0x78f00b(0x1aa)]=_0x23bbe0['region'];const _0x3397eb=_0x23bbe0[_0x78f00b(0x1d4)],_0x3581d2=await _0x1a9af4[_0x78f00b(0x194)](getCloudProviderObject,_0x3397eb,_0x23bbe0[_0x78f00b(0x180)],_0x23bbe0[_0x78f00b(0x19d)],_0x42b2ad,webSocketUtils,_0x58c401),_0x4f06bf=await _0x3581d2[_0x78f00b(0x1c7)]();if(_0x4f06bf){const _0x211d70=_0x1a9af4[_0x78f00b(0x1a2)](kebabCase,_0x23bbe0[_0x78f00b(0x19d)]),[_0x33a8f2,_0x1bc4d1,_0x6a4e83,_0x525cf5,_0x556f2b,_0x38c03c]=await _0x1a9af4[_0x78f00b(0x1e4)](createK8sClient,_0x3581d2,_0x58c401['skipTlsCertVerify']);let _0x142de0=!![];const _0x32f363={};_0x32f363[_0x78f00b(0x19d)]=_0x211d70,await _0x33a8f2['readNamespace'](_0x32f363)[_0x78f00b(0x17b)](_0x2a5cb3=>{const _0x26a542=_0x78f00b,_0x21d512={};_0x21d512[_0x26a542(0x18e)]=_0x1a9af4[_0x26a542(0x1c4)];const _0x9b85b4=_0x21d512;_0x1a9af4[_0x26a542(0x199)](_0x1a9af4['RIXKo'],_0x1a9af4[_0x26a542(0x1fe)])?logger[_0x26a542(0x1c2)](_0x26a542(0x18b)+_0x211d70+_0x26a542(0x19c)):(_0x37bd02['info'](_0x9b85b4[_0x26a542(0x18e)]),_0x96bd0d[_0x26a542(0x179)](0x0));})[_0x78f00b(0x19e)](_0x4ca7a9=>{const _0x195d91=_0x78f00b;_0x1a9af4[_0x195d91(0x199)](_0x1a9af4[_0x195d91(0x1be)],_0x1a9af4[_0x195d91(0x1be)])?(logger[_0x195d91(0x19b)](_0x195d91(0x18b)+_0x211d70+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x142de0=![]):_0x24e7da='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x5b69a0['name']+'\x22\x20and\x20ID\x20'+_0x575b3d['id']+_0x195d91(0x1c0)+_0x14cf09[_0x195d91(0x180)]+'\x22\x20with\x20ID\x20'+_0x36fc8e[_0x195d91(0x184)]+_0x195d91(0x1eb);});if(_0x142de0){await _0x1a9af4[_0x78f00b(0x16a)](removeGridComponents,_0x33a8f2,_0x1bc4d1,_0x6a4e83,_0x525cf5,_0x211d70);if(_0x3a349a['onlyGridInCluster']){const _0x736c62=await _0x3581d2[_0x78f00b(0x178)]();_0x736c62?_0x1a9af4[_0x78f00b(0x1fb)](_0x1a9af4['vnBNX'],_0x1a9af4[_0x78f00b(0x1da)])?_0x21a0ee[_0x78f00b(0x19b)](_0x1a9af4[_0x78f00b(0x18c)]):await _0x3581d2[_0x78f00b(0x1b1)](_0x33a8f2,_0x23bbe0[_0x78f00b(0x18d)]):_0x1a9af4['vQKYl'](_0x1a9af4[_0x78f00b(0x1cb)],_0x1a9af4['PxTfq'])?logger[_0x78f00b(0x19b)]('Cluster:\x20'+_0x23bbe0['clusterName']+_0x78f00b(0x183)):(_0x10eab3[_0x78f00b(0x19b)](_0x78f00b(0x18b)+_0x5ad7f5+_0x78f00b(0x1e5)),_0x310b94=![]);}}}else logger['warn'](_0x1a9af4[_0x78f00b(0x18c)]);const _0x32d63e=_0x78f00b(0x1ef)+AG_API_URL+'/packages/cli/grid/'+_0x58c401['gridId'],_0x29038b={'method':_0x1a9af4[_0x78f00b(0x174)],'headers':_0x1a9af4[_0x78f00b(0x1e4)](getAuthHeader,_0x2c0514[_0x78f00b(0x1e0)][_0x78f00b(0x1d0)],_0x2c0514[_0x78f00b(0x1e0)]['password']),'throwHttpErrors':![]},_0x3ad44f=await _0x1a9af4[_0x78f00b(0x1e4)](got,_0x32d63e,_0x29038b);_0x1a9af4[_0x78f00b(0x191)](_0x3ad44f,null)&&_0x1a9af4['QXDXZ'](_0x3ad44f,undefined)&&_0x1a9af4[_0x78f00b(0x1fb)](_0x3ad44f[_0x78f00b(0x17a)],0xc8)&&(logger[_0x78f00b(0x1c2)](_0x1a9af4[_0x78f00b(0x1c4)]),process[_0x78f00b(0x179)](0x0)),logger[_0x78f00b(0x1ba)](_0x78f00b(0x1a4)+_0x3ad44f[_0x78f00b(0x1f7)]),await _0x1a9af4[_0x78f00b(0x1ad)](sendInstrumentationEvent,_0x58c401,_0x1a9af4[_0x78f00b(0x187)],messageTypes[_0x78f00b(0x1f0)],_0x1a9af4[_0x78f00b(0x1d3)],_0x5a83f1,_0x58c401),process[_0x78f00b(0x179)](0x1);}_0x1a9af4[_0x78f00b(0x1ff)](_0x5a83f1['statusCode'],0x191)&&(logger['error'](_0x1a9af4['MztQI']),await _0x1a9af4[_0x78f00b(0x194)](sendInstrumentationEvent,_0x58c401,_0x1a9af4['BZukt'],messageTypes[_0x78f00b(0x1f0)],_0x1a9af4[_0x78f00b(0x1f8)],null,_0x58c401),process[_0x78f00b(0x179)](0x1)),_0x1a9af4[_0x78f00b(0x1ac)](_0x5a83f1[_0x78f00b(0x17a)],0x190)&&(logger[_0x78f00b(0x1ba)](JSON[_0x78f00b(0x1c9)](_0x5a83f1[_0x78f00b(0x1f7)])[_0x78f00b(0x1fa)]),await _0x1a9af4[_0x78f00b(0x1b9)](sendInstrumentationEvent,_0x58c401,_0x1a9af4['BZukt'],messageTypes[_0x78f00b(0x1f0)],_0x1a9af4[_0x78f00b(0x1b5)],null,_0x58c401),process[_0x78f00b(0x179)](0x1)),logger[_0x78f00b(0x1ba)](_0x78f00b(0x17f)+JSON[_0x78f00b(0x1ca)](_0x5a83f1)),await _0x1a9af4['jmaUs'](sendInstrumentationEvent,_0x58c401,_0x1a9af4['BZukt'],messageTypes['ERROR'],_0x1a9af4[_0x78f00b(0x1d3)],_0x5a83f1,_0x58c401),process[_0x78f00b(0x179)](0x1);}catch(_0x7fe1a7){logger['error'](_0x78f00b(0x1f1)+_0x7fe1a7[_0x78f00b(0x1e3)]),await _0x1a9af4['jmaUs'](sendInstrumentationEvent,_0x58c401,_0x1a9af4['BZukt'],messageTypes['ERROR'],_0x1a9af4['fxYWe'],_0x7fe1a7,_0x58c401),process['exit'](0x1);}};
1
+ const a11_0x583ffa=a11_0x26b4;(function(_0x12cd2f,_0x29bc2e){const _0x89a245=a11_0x26b4,_0x2f6fc9=_0x12cd2f();while(!![]){try{const _0x9deeda=-parseInt(_0x89a245(0x172))/0x1*(parseInt(_0x89a245(0x185))/0x2)+-parseInt(_0x89a245(0x15e))/0x3+parseInt(_0x89a245(0x16c))/0x4+-parseInt(_0x89a245(0x12e))/0x5*(parseInt(_0x89a245(0x110))/0x6)+-parseInt(_0x89a245(0xf6))/0x7+-parseInt(_0x89a245(0x159))/0x8*(-parseInt(_0x89a245(0x133))/0x9)+parseInt(_0x89a245(0x11d))/0xa;if(_0x9deeda===_0x29bc2e)break;else _0x2f6fc9['push'](_0x2f6fc9['shift']());}catch(_0x33fb01){_0x2f6fc9['push'](_0x2f6fc9['shift']());}}}(a11_0x3dd4,0x1fcb5));const fs=require('fs'),got=require(a11_0x583ffa(0x106)),{v4:uuidv4}=require(a11_0x583ffa(0x187)),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x583ffa(0x118)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x583ffa(0xf7)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x583ffa(0x10c)),{sendInstrumentationEvent}=require(a11_0x583ffa(0x156)),{inputConfirmation}=require(a11_0x583ffa(0x113)),{createK8sClient}=require(a11_0x583ffa(0x18d)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x583ffa(0x152)),webSocketUtils=require('../../utils/webSocketUtils');function a11_0x3dd4(){const _0x167855=['../../utils/gridComponents','FUgMv','gIPoD','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','24lVBqny','options','wlWJQ','../../utils/userInput','Browserstack','password','SIgJv','kSujy','../../config/constants','<PasswordPlaceholder>','gSEnR','bItvr','isClusterPresent','2288350PeeDeK','QuJqd','KpTkE','Skip\x20insecure\x20cert\x20verification.','toLowerCase','zvawS','RZNhZ','parse','nhUbx','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','builder','stack','bYAwP','yBwlL','vtKgj','info','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','35855tAvByP','Failed\x20to\x20delete\x20resources!\x20Error:\x20','NXeVC','error','cbhNp','9iozvQT','xSpHe','Delete\x20an\x20Automation\x20grid.','INFO','qRQNj','readNamespace','grid','WebSocket','region','server-error','\x22\x20and\x20ID\x20','UqSUi','boolean','deleteCluster','string','wUwZY','adpAH','AfVjL','oRTlF','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','qZQyk','GoOAT','then','\x22\x20with\x20ID\x20','lPOit','mrWZt','APlRU','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','delete-grid-called','argv','../../utils/utilityMethods','Unhsk','clusterSpawnedVia','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','../../utils/instrumentationUtils','delete','FbKEv','912368TPtBHs','DANUc','CbLFX','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','epilogue','185400JuTjeZ','OwOfW','WDUNO','gridId','type','ERROR','replace','rxfpK','help','unauthorised','ZHSRQ','Pass\x20the\x20ID\x20of\x20the\x20Grid','name','seLPm','395776jRoiuu','warn','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','QjMhs','Namespace:\x20','skip-tls-cert-verify','2xpyZpF','LRWpP','vTyzs','cloudProvider','existsSync','invalid-grid-id','usage','onlyGridInCluster','isBrowserstackCluster','WKdly','YskJx','uVHdk','Ohspb','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','description','exit','clusterName','requestId','stringify','12170rRBhck','HEXmL','uuid','AYWgq','DXJAR','command','SMCUz','unknown-error','../../utils/createk8sClient','catch','gvTbg','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','uBjwn','QLJgO','fuAnk','Ugnaa','DELETE','1462594uaTxOv','../../cloudproviders/utils','HBgvp','llobk','Cluster:\x20','init-not-called','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','QUQEN','default','uGkNP','username','statusCode','/packages/cli/grid/','UGvTf','nYTbE','eTQcd','got','myHMN','clusterRegion','nfrvS','UlTuP','mooTT'];a11_0x3dd4=function(){return _0x167855;};return a11_0x3dd4();}function a11_0x26b4(_0x1bfd33,_0x51598e){const _0x3dd41e=a11_0x3dd4();return a11_0x26b4=function(_0x26b4c6,_0x289798){_0x26b4c6=_0x26b4c6-0xef;let _0x571ced=_0x3dd41e[_0x26b4c6];return _0x571ced;},a11_0x26b4(_0x1bfd33,_0x51598e);}exports[a11_0x583ffa(0x18a)]=a11_0x583ffa(0x139),exports['desc']=a11_0x583ffa(0x135),exports[a11_0x583ffa(0x127)]=function(_0x26cf87){const _0x226c2c=a11_0x583ffa,_0x1fd6e1={};_0x1fd6e1[_0x226c2c(0xf4)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x1fd6e1['UlTuP']=_0x226c2c(0x141),_0x1fd6e1[_0x226c2c(0x189)]=_0x226c2c(0x120),_0x1fd6e1[_0x226c2c(0x14c)]='boolean',_0x1fd6e1['mrZIo']=_0x226c2c(0x166);const _0x2e9193=_0x1fd6e1,_0x5a5d54={};_0x5a5d54['description']=_0x2e9193['Ugnaa'],_0x5a5d54[_0x226c2c(0x162)]=_0x2e9193[_0x226c2c(0x10a)];const _0x5c3122={};_0x5c3122[_0x226c2c(0x180)]=_0x2e9193[_0x226c2c(0x189)],_0x5c3122['type']=_0x2e9193[_0x226c2c(0x14c)],_0x5c3122[_0x226c2c(0xfe)]=![];const _0x83a9b6={};return _0x83a9b6['grid-id']=_0x5a5d54,_0x83a9b6['skip-tls-cert-verify']=_0x5c3122,_0x26cf87[_0x226c2c(0x178)](HELP_HEADER_MESSAGE['delete'])[_0x226c2c(0x15d)](HELP_FOOTER_MESSAGE)[_0x226c2c(0x111)](_0x83a9b6)[_0x226c2c(0x166)](_0x2e9193['mrZIo'])[_0x226c2c(0x151)];},exports['handler']=async function(_0x44e304){const _0x1450d9=a11_0x583ffa,_0x329403={'DANUc':'Successfully\x20deleted\x20the\x20grid','FbKEv':_0x1450d9(0x17f),'SIgJv':'Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','CbLFX':function(_0x2daee0,_0xe13ea){return _0x2daee0!==_0xe13ea;},'APlRU':'LxAcP','wUwZY':function(_0x4b3a0d,_0x95c9ea){return _0x4b3a0d===_0x95c9ea;},'uGkNP':'lciGb','rxfpK':_0x1450d9(0x17c),'nYTbE':_0x1450d9(0x169),'QuJqd':_0x1450d9(0x141),'cbhNp':_0x1450d9(0x120),'IKyDw':_0x1450d9(0x13f),'SMCUz':_0x1450d9(0x166),'seLPm':function(_0x1023e5){return _0x1023e5();},'QUQEN':function(_0x179aee,_0x2f4940){return _0x179aee!==_0x2f4940;},'PCpGM':_0x1450d9(0x105),'WPObQ':_0x1450d9(0x147),'GoOAT':function(_0x30de78,_0x5de093,_0x406b59,_0x2cae38,_0xdfb6b7,_0x2be214,_0x34ccc2){return _0x30de78(_0x5de093,_0x406b59,_0x2cae38,_0xdfb6b7,_0x2be214,_0x34ccc2);},'gIPoD':_0x1450d9(0x150),'uTxXr':_0x1450d9(0xfb),'uVHdk':function(_0x7d7a79,_0x78b403,_0x6ac604,_0x3b161d,_0x37cf3f,_0x4562a8,_0x5f38bf){return _0x7d7a79(_0x78b403,_0x6ac604,_0x3b161d,_0x37cf3f,_0x4562a8,_0x5f38bf);},'AfVjL':_0x1450d9(0x109),'igzIv':function(_0x3c71ea){return _0x3c71ea();},'WKdly':function(_0x3eb4d0,_0x527a91,_0x122ce7,_0x4e424c){return _0x3eb4d0(_0x527a91,_0x122ce7,_0x4e424c);},'gSEnR':_0x1450d9(0x114),'HBgvp':function(_0x1ff5cc,_0xa53af6){return _0x1ff5cc!==_0xa53af6;},'xSpHe':_0x1450d9(0x130),'myHMN':function(_0x21806c,_0x4c729b){return _0x21806c(_0x4c729b);},'QjMhs':function(_0x291afd,_0xe8f07){return _0x291afd===_0xe8f07;},'HEXmL':function(_0x2b73a3,_0x3e5b9f){return _0x2b73a3===_0x3e5b9f;},'bItvr':function(_0x32931f,_0x3c94e3){return _0x32931f!==_0x3c94e3;},'AYWgq':_0x1450d9(0x122),'nhUbx':_0x1450d9(0x15f),'CVPFF':_0x1450d9(0x14f),'mrWZt':function(_0x2d6928,_0x361d40,_0x1d7e0f,_0x33c823,_0x1cf8f3,_0x35e7a3,_0x592d47){return _0x2d6928(_0x361d40,_0x1d7e0f,_0x33c823,_0x1cf8f3,_0x35e7a3,_0x592d47);},'oRTlF':'invalid-input','wlWJQ':function(_0x5c1743,_0x3cff4d){return _0x5c1743===_0x3cff4d;},'UqSUi':function(_0x4a856f,_0x477c9c){return _0x4a856f!==_0x477c9c;},'KpTkE':_0x1450d9(0x174),'JlyBX':'<UsernamePlaceholder>','QLJgO':_0x1450d9(0x119),'GwQMH':function(_0x160d71,_0x1334aa){return _0x160d71(_0x1334aa);},'qRQNj':function(_0x48bc6b,_0x1c8bf6,_0x5b6484){return _0x48bc6b(_0x1c8bf6,_0x5b6484);},'Ohspb':function(_0x16c91e,_0x46e6db,_0x1344fe,_0x4550e6,_0x413d7d,_0x127821){return _0x16c91e(_0x46e6db,_0x1344fe,_0x4550e6,_0x413d7d,_0x127821);},'UGvTf':function(_0x3c3335,_0x3f22ce){return _0x3c3335===_0x3f22ce;},'adpAH':_0x1450d9(0x12a),'ZHSRQ':_0x1450d9(0x10d),'Unhsk':_0x1450d9(0x160),'uBjwn':_0x1450d9(0x12b),'kSujy':_0x1450d9(0xf5),'gvTbg':function(_0x8d1150,_0x3bf799,_0x426908){return _0x8d1150(_0x3bf799,_0x426908);},'LRWpP':function(_0x52e735,_0x29ef4f,_0x913137,_0x49902d,_0x4bfdcf,_0x44b940,_0x2aa6f1){return _0x52e735(_0x29ef4f,_0x913137,_0x49902d,_0x4bfdcf,_0x44b940,_0x2aa6f1);},'qZQyk':_0x1450d9(0x13c),'RZNhZ':function(_0x127406,_0x22dec6){return _0x127406===_0x22dec6;},'bYAwP':_0x1450d9(0x12d),'llobk':_0x1450d9(0x167),'qiPzc':function(_0x508c13,_0x5bc353){return _0x508c13===_0x5bc353;},'mooTT':_0x1450d9(0x177),'LNmER':function(_0x1269a2,_0x227ae3,_0x193aac,_0xb204c3,_0x367b88,_0x4838d4,_0x30a317){return _0x1269a2(_0x227ae3,_0x193aac,_0xb204c3,_0x367b88,_0x4838d4,_0x30a317);},'fuAnk':_0x1450d9(0x18c)};try{global_registry[_0x1450d9(0x183)]=_0x329403[_0x1450d9(0x16b)](uuidv4);!fs[_0x1450d9(0x176)](_0x329403[_0x1450d9(0x16b)](getCredentialsPath))&&(_0x329403[_0x1450d9(0xfd)](_0x329403['PCpGM'],_0x329403['PCpGM'])?_0x219fb2[_0x1450d9(0x12c)]('Namespace:\x20'+_0x29855a+_0x1450d9(0x16e)):(console['error'](_0x329403['WPObQ']),await _0x329403[_0x1450d9(0x149)](sendInstrumentationEvent,_0x44e304,_0x329403['gIPoD'],messageTypes['ERROR'],_0x329403['uTxXr'],null,_0x44e304),process[_0x1450d9(0x181)](0x1)));_0x329403[_0x1450d9(0x17d)](sendInstrumentationEvent,_0x44e304,_0x329403[_0x1450d9(0x10e)],messageTypes[_0x1450d9(0x136)],null,null,_0x44e304);!_0x44e304[_0x1450d9(0x161)]&&(_0x329403[_0x1450d9(0x15b)](_0x329403[_0x1450d9(0x144)],_0x329403[_0x1450d9(0x144)])?(_0x1fc282[_0x1450d9(0x12c)](_0x329403['DANUc']),_0x6c3d3[_0x1450d9(0x181)](0x0)):(console[_0x1450d9(0x131)](_0x329403[_0x1450d9(0x158)]),process[_0x1450d9(0x181)](0x1)));const _0x3fae2a=JSON['parse'](fs['readFileSync'](_0x329403['igzIv'](getCredentialsPath))),[_0x32ca74,_0x43e84b]=await _0x329403[_0x1450d9(0x17b)](getGridDetails,_0x3fae2a[_0x1450d9(0x114)][_0x1450d9(0x100)],_0x3fae2a[_0x1450d9(0x114)][_0x1450d9(0x115)],_0x44e304[_0x1450d9(0x161)]);if(_0x43e84b){const _0x45a221=_0x43e84b['info'];let _0x3be8e5=_0x1450d9(0xf0)+_0x45a221[_0x1450d9(0x16a)]+_0x1450d9(0x13d)+_0x45a221['id']+_0x1450d9(0x126);_0x43e84b[_0x1450d9(0x179)]&&_0x329403[_0x1450d9(0x142)](_0x43e84b[_0x1450d9(0x154)],_0x329403[_0x1450d9(0x11a)])&&(_0x329403[_0x1450d9(0xf8)](_0x329403[_0x1450d9(0x134)],_0x329403[_0x1450d9(0x134)])?(_0x5d7d6f['error'](_0x329403[_0x1450d9(0x158)]),_0x9fa72a[_0x1450d9(0x181)](0x1)):_0x3be8e5=_0x1450d9(0xf0)+_0x45a221[_0x1450d9(0x16a)]+_0x1450d9(0x13d)+_0x45a221['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x45a221[_0x1450d9(0x182)]+_0x1450d9(0x14b)+_0x45a221['clusterId']+_0x1450d9(0x126));const _0x295338=await _0x329403[_0x1450d9(0x107)](inputConfirmation,_0x3be8e5);(_0x329403[_0x1450d9(0x16f)](_0x295338,undefined)||_0x329403['wUwZY'](_0x295338,null)||!(_0x329403[_0x1450d9(0x186)](_0x295338[_0x1450d9(0x121)](),'y')||_0x329403[_0x1450d9(0x186)](_0x295338[_0x1450d9(0x121)](),'n')))&&(_0x329403[_0x1450d9(0x11b)](_0x329403[_0x1450d9(0x188)],_0x329403[_0x1450d9(0x125)])?(console[_0x1450d9(0x131)](_0x329403['CVPFF']),await _0x329403[_0x1450d9(0x14d)](sendInstrumentationEvent,_0x44e304,_0x329403[_0x1450d9(0x10e)],messageTypes[_0x1450d9(0x163)],_0x329403[_0x1450d9(0x145)],null,_0x44e304),process[_0x1450d9(0x181)](0x1)):_0x4a489e[_0x1450d9(0x16d)](_0x329403[_0x1450d9(0x116)]));_0x329403[_0x1450d9(0x112)](_0x295338[_0x1450d9(0x121)](),'n')&&(_0x329403[_0x1450d9(0x13e)](_0x329403[_0x1450d9(0x11f)],_0x329403['KpTkE'])?(_0x3a6c03[_0x1450d9(0x16d)](_0x1450d9(0x170)+_0xa9b85a+_0x1450d9(0x10f)),_0x34efb7=![]):process[_0x1450d9(0x181)](0x0));const _0x3d53ee=WS_ENDPOINT[_0x1450d9(0x164)](_0x329403['JlyBX'],_0x3fae2a['Browserstack'][_0x1450d9(0x100)])['replace'](_0x329403[_0x1450d9(0xf2)],_0x3fae2a[_0x1450d9(0x114)][_0x1450d9(0x115)]),_0x361ed8={};_0x361ed8[_0x1450d9(0x13a)]=ws,_0x361ed8['connectionTimeout']=0x36ee80;const _0x37ba7e=new ReconnectingWebSocket(_0x3d53ee,[],_0x361ed8);global_registry[_0x1450d9(0x108)]=_0x45a221[_0x1450d9(0x13b)];const _0x542e8e=_0x45a221[_0x1450d9(0x175)],_0x30f756=await _0x329403[_0x1450d9(0x149)](getCloudProviderObject,_0x542e8e,_0x45a221['clusterName'],_0x45a221[_0x1450d9(0x16a)],_0x37ba7e,webSocketUtils,_0x44e304),_0x54f407=await _0x30f756[_0x1450d9(0x11c)]();if(_0x54f407){const _0x18eb9a=_0x329403['GwQMH'](kebabCase,_0x45a221[_0x1450d9(0x16a)]),[_0xb138ad,_0xb9636b,_0x34e34b,_0x21e3ed,_0x257012,_0x23b528]=await _0x329403[_0x1450d9(0x137)](createK8sClient,_0x30f756,_0x44e304['skipTlsCertVerify']);let _0x27564a=!![];const _0x42b1cd={};_0x42b1cd[_0x1450d9(0x16a)]=_0x18eb9a,await _0xb138ad[_0x1450d9(0x138)](_0x42b1cd)[_0x1450d9(0x14a)](_0x7e5f6b=>{const _0xcb5d7a=_0x1450d9;_0x329403[_0xcb5d7a(0x15b)](_0x329403[_0xcb5d7a(0x14e)],_0x329403['APlRU'])?_0x572984['exit'](0x0):logger[_0xcb5d7a(0x12c)](_0xcb5d7a(0x170)+_0x18eb9a+_0xcb5d7a(0x16e));})[_0x1450d9(0x18e)](_0x2e00a8=>{const _0x5dcea1=_0x1450d9;_0x329403[_0x5dcea1(0x142)](_0x329403[_0x5dcea1(0xff)],_0x329403[_0x5dcea1(0x165)])?_0xf6c574['warn'](_0x5dcea1(0xfa)+_0x4f812e[_0x5dcea1(0x182)]+_0x5dcea1(0x15c)):(logger['warn'](_0x5dcea1(0x170)+_0x18eb9a+_0x5dcea1(0x10f)),_0x27564a=![]);});if(_0x27564a){await _0x329403[_0x1450d9(0x17e)](removeGridComponents,_0xb138ad,_0xb9636b,_0x34e34b,_0x21e3ed,_0x18eb9a);if(_0x43e84b[_0x1450d9(0x179)]){const _0x37da6d=await _0x30f756[_0x1450d9(0x17a)]();if(_0x37da6d){if(_0x329403[_0x1450d9(0x103)](_0x329403[_0x1450d9(0x143)],_0x329403[_0x1450d9(0x168)])){const _0x2f06f4={};_0x2f06f4[_0x1450d9(0x180)]=_0x329403[_0x1450d9(0x104)],_0x2f06f4['type']=_0x329403[_0x1450d9(0x11e)];const _0x56a431={};_0x56a431[_0x1450d9(0x180)]=_0x329403[_0x1450d9(0x132)],_0x56a431[_0x1450d9(0x162)]=_0x329403['IKyDw'],_0x56a431[_0x1450d9(0xfe)]=![];const _0x5dc98f={};return _0x5dc98f['grid-id']=_0x2f06f4,_0x5dc98f[_0x1450d9(0x171)]=_0x56a431,_0x36f0c6[_0x1450d9(0x178)](_0x385a93[_0x1450d9(0x157)])[_0x1450d9(0x15d)](_0x258b4d)[_0x1450d9(0x111)](_0x5dc98f)[_0x1450d9(0x166)](_0x329403[_0x1450d9(0x18b)])[_0x1450d9(0x151)];}else await _0x30f756[_0x1450d9(0x140)](_0xb138ad,_0x45a221[_0x1450d9(0x13b)]);}else _0x329403['HEXmL'](_0x329403[_0x1450d9(0x153)],_0x329403[_0x1450d9(0xf1)])?_0x297d1b=_0x1450d9(0xf0)+_0x315cc6['name']+_0x1450d9(0x13d)+_0x3dca4f['id']+_0x1450d9(0x155)+_0xbf35e3[_0x1450d9(0x182)]+_0x1450d9(0x14b)+_0x41c522['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':logger[_0x1450d9(0x16d)](_0x1450d9(0xfa)+_0x45a221[_0x1450d9(0x182)]+_0x1450d9(0x15c));}}}else logger['warn'](_0x329403['SIgJv']);const _0x49da12='https://'+AG_API_URL+_0x1450d9(0x102)+_0x44e304[_0x1450d9(0x161)],_0x1d51b6={'method':_0x329403[_0x1450d9(0x117)],'headers':_0x329403[_0x1450d9(0x137)](getAuthHeader,_0x3fae2a[_0x1450d9(0x114)][_0x1450d9(0x100)],_0x3fae2a[_0x1450d9(0x114)]['password']),'throwHttpErrors':![]},_0x2884a3=await _0x329403[_0x1450d9(0xef)](got,_0x49da12,_0x1d51b6);_0x329403['CbLFX'](_0x2884a3,null)&&_0x329403[_0x1450d9(0xf8)](_0x2884a3,undefined)&&_0x329403[_0x1450d9(0x186)](_0x2884a3[_0x1450d9(0x101)],0xc8)&&(logger['info'](_0x329403[_0x1450d9(0x15a)]),process[_0x1450d9(0x181)](0x0)),logger[_0x1450d9(0x131)](_0x1450d9(0xfc)+_0x2884a3['body']),await _0x329403[_0x1450d9(0x173)](sendInstrumentationEvent,_0x44e304,_0x329403[_0x1450d9(0x10e)],messageTypes[_0x1450d9(0x163)],_0x329403[_0x1450d9(0x148)],_0x32ca74,_0x44e304),process[_0x1450d9(0x181)](0x1);}_0x329403[_0x1450d9(0x123)](_0x32ca74['statusCode'],0x191)&&(logger[_0x1450d9(0x131)](_0x329403[_0x1450d9(0x129)]),await _0x329403[_0x1450d9(0x17d)](sendInstrumentationEvent,_0x44e304,_0x329403[_0x1450d9(0x10e)],messageTypes['ERROR'],_0x329403[_0x1450d9(0xf9)],null,_0x44e304),process[_0x1450d9(0x181)](0x1)),_0x329403['qiPzc'](_0x32ca74[_0x1450d9(0x101)],0x190)&&(logger[_0x1450d9(0x131)](JSON[_0x1450d9(0x124)](_0x32ca74['body'])['message']),await _0x329403[_0x1450d9(0x17d)](sendInstrumentationEvent,_0x44e304,_0x329403['gIPoD'],messageTypes[_0x1450d9(0x163)],_0x329403[_0x1450d9(0x10b)],null,_0x44e304),process[_0x1450d9(0x181)](0x1)),logger[_0x1450d9(0x131)](_0x1450d9(0x146)+JSON[_0x1450d9(0x184)](_0x32ca74)),await _0x329403['LRWpP'](sendInstrumentationEvent,_0x44e304,_0x329403[_0x1450d9(0x10e)],messageTypes[_0x1450d9(0x163)],_0x329403['qZQyk'],_0x32ca74,_0x44e304),process[_0x1450d9(0x181)](0x1);}catch(_0x15617f){logger[_0x1450d9(0x131)](_0x1450d9(0x12f)+_0x15617f[_0x1450d9(0x128)]),await _0x329403['LNmER'](sendInstrumentationEvent,_0x44e304,_0x329403['gIPoD'],messageTypes[_0x1450d9(0x163)],_0x329403[_0x1450d9(0xf3)],_0x15617f,_0x44e304),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a12_0x56ed03=a12_0x1798;function a12_0x466f(){const _0x1068ff=['Codbj','FtBdN','OdHXJ','MXUfG','ayGpf','rpicz','readFileSync','bstack-accesskey','zzVFu','aUPfu','EcDsg','password','got','Kvjjc','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','AeSky','vOZFz','RLQct','JBacL','BROWSERSTACK_ACCESS_KEY','EwLYd','usage','init','Texea','/automate/plan.json','error','string','65ibBaNw','../utils/utilityMethods','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','BWwbM','env','TNhtv','1025901SlHlfT','bstackUsername','type','Nqync','../utils/userInput','424JGPRoA','writeFileSync','2136590mHTvnh','unknown-error','WSwOU','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','vryap','BROWSERSTACK_USERNAME','2912GBHjps','INFO','315148ylAbnJ','czQko','13CJyRFA','XhtPm','84609jiuwGB','ypLyj','bstackAccesskey','options','description','qfonv','DUSpM','existsSync','UTAvX','epilogue','bstack-username','supZx','17835660QvfaWs','wmDiQ','NscSH','sVaxG','../utils/instrumentationUtils','builder','dillU','mkdirSync','argv','SZIMR','parse','https://','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','Browserstack','WrYHy','desc','9918PJCVOu','stringify','EuOlq','ERROR','AEqWV','recommendCommands','strict','YrkWq','IVmHK','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','LvuRi','ImOvQ','ltGDP','897063PjJJjT','qWwnD','exit','11hRHTih','../config/logger','../config/constants','help','uuid','UejND','6HmonFQ','username','wrong-creds','OwNnN','init-called','OvtPT'];a12_0x466f=function(){return _0x1068ff;};return a12_0x466f();}(function(_0x24bce8,_0x374e4d){const _0x58ef38=a12_0x1798,_0x29d739=_0x24bce8();while(!![]){try{const _0x58ae9c=parseInt(_0x58ef38(0x186))/0x1+-parseInt(_0x58ef38(0x15f))/0x2*(parseInt(_0x58ef38(0x156))/0x3)+-parseInt(_0x58ef38(0x129))/0x4*(parseInt(_0x58ef38(0x180))/0x5)+-parseInt(_0x58ef38(0x149))/0x6*(parseInt(_0x58ef38(0x127))/0x7)+-parseInt(_0x58ef38(0x18b))/0x8*(-parseInt(_0x58ef38(0x12d))/0x9)+-parseInt(_0x58ef38(0x18d))/0xa*(-parseInt(_0x58ef38(0x159))/0xb)+parseInt(_0x58ef38(0x139))/0xc*(parseInt(_0x58ef38(0x12b))/0xd);if(_0x58ae9c===_0x374e4d)break;else _0x29d739['push'](_0x29d739['shift']());}catch(_0x55b660){_0x29d739['push'](_0x29d739['shift']());}}}(a12_0x466f,0x96308));function a12_0x1798(_0x49860b,_0x425bff){const _0x466fb5=a12_0x466f();return a12_0x1798=function(_0x1798fc,_0x2b4b39){_0x1798fc=_0x1798fc-0x127;let _0x3a8a9a=_0x466fb5[_0x1798fc];return _0x3a8a9a;},a12_0x1798(_0x49860b,_0x425bff);}const fs=require('fs'),util=require('util'),got=require(a12_0x56ed03(0x171)),{v4:uuidv4}=require(a12_0x56ed03(0x15d)),{logger}=require(a12_0x56ed03(0x15a)),{inputBstackKeys}=require(a12_0x56ed03(0x18a)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x56ed03(0x15b)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x56ed03(0x181)),{sendInstrumentationEvent}=require(a12_0x56ed03(0x13d));exports['command']='init',exports[a12_0x56ed03(0x148)]=a12_0x56ed03(0x145),exports[a12_0x56ed03(0x13e)]=function(_0x526ec3){const _0x380230=a12_0x56ed03,_0x3164ce={};_0x3164ce[_0x380230(0x14b)]=_0x380230(0x173),_0x3164ce[_0x380230(0x150)]=_0x380230(0x17f),_0x3164ce[_0x380230(0x135)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x3164ce['DUSpM']=_0x380230(0x15c);const _0x2db06f=_0x3164ce,_0x25fa0d={};_0x25fa0d[_0x380230(0x131)]=_0x2db06f['EuOlq'],_0x25fa0d[_0x380230(0x188)]=_0x2db06f[_0x380230(0x150)];const _0x17fd9e={};_0x17fd9e['description']=_0x2db06f[_0x380230(0x135)],_0x17fd9e[_0x380230(0x188)]=_0x2db06f[_0x380230(0x150)];const _0x1948eb={};return _0x1948eb[_0x380230(0x137)]=_0x25fa0d,_0x1948eb[_0x380230(0x16c)]=_0x17fd9e,_0x526ec3[_0x380230(0x17a)](HELP_HEADER_MESSAGE['init'])[_0x380230(0x136)](HELP_FOOTER_MESSAGE)[_0x380230(0x130)](_0x1948eb)[_0x380230(0x14e)]()[_0x380230(0x14f)]()['help'](_0x2db06f[_0x380230(0x133)])[_0x380230(0x141)];},exports['handler']=async function(_0x7b3e2f){const _0x5679d7=a12_0x56ed03,_0x43950d={'qWwnD':'utf-8','dillU':function(_0x258dc7){return _0x258dc7();},'OwNnN':_0x5679d7(0x173),'WrYHy':'string','Nqync':_0x5679d7(0x190),'vryap':'help','LvuRi':function(_0xc6685d){return _0xc6685d();},'zzVFu':function(_0x915dc8,_0x4ef2a9,_0x2f8aca,_0x504fb0,_0x596c1a,_0x41d341,_0x330a98){return _0x915dc8(_0x4ef2a9,_0x2f8aca,_0x504fb0,_0x596c1a,_0x41d341,_0x330a98);},'OdHXJ':_0x5679d7(0x163),'MXUfG':function(_0x4682c8,_0x40a4f3){return _0x4682c8===_0x40a4f3;},'QSDJQ':'DqpOH','WSwOU':'mzPKr','wmDiQ':function(_0x2494fa,_0x284f6a){return _0x2494fa!==_0x284f6a;},'qfonv':_0x5679d7(0x179),'JBacL':_0x5679d7(0x16f),'ypLyj':function(_0x4bbcf1,_0x3c83ad){return _0x4bbcf1!==_0x3c83ad;},'Kvjjc':_0x5679d7(0x155),'NscSH':'TOWZy','vLjIN':_0x5679d7(0x15e),'XhtPm':function(_0x54a1a7,_0x299f66){return _0x54a1a7===_0x299f66;},'KceBm':function(_0x1009eb,_0x12c8e3){return _0x1009eb===_0x12c8e3;},'rpicz':_0x5679d7(0x185),'Codbj':_0x5679d7(0x182),'ImOvQ':function(_0x2113c3){return _0x2113c3();},'YqzHl':'GET','RYDOJ':function(_0x4618e3,_0x2c9040,_0x49d1e9){return _0x4618e3(_0x2c9040,_0x49d1e9);},'FtBdN':function(_0x4f6118,_0x29b276,_0x4651e9){return _0x4f6118(_0x29b276,_0x4651e9);},'AEqWV':function(_0x3f1918,_0x67885a){return _0x3f1918!==_0x67885a;},'czQko':_0x5679d7(0x142),'vOZFz':function(_0xc59f9d,_0x5b11f2){return _0xc59f9d!==_0x5b11f2;},'BWwbM':_0x5679d7(0x176),'IVmHK':_0x5679d7(0x169),'LxHJL':function(_0x547e42){return _0x547e42();},'OvtPT':'dELOd','Texea':_0x5679d7(0x13c),'AeSky':_0x5679d7(0x152),'supZx':_0x5679d7(0x161),'aUPfu':function(_0x1c1fcd,_0x3d16d2,_0x2286cc,_0x4674bd,_0x23aa62,_0x2e450c,_0x1bde90){return _0x1c1fcd(_0x3d16d2,_0x2286cc,_0x4674bd,_0x23aa62,_0x2e450c,_0x1bde90);},'KqUPA':_0x5679d7(0x18e)};try{global_registry['requestId']=_0x43950d['LvuRi'](uuidv4),_0x43950d['zzVFu'](sendInstrumentationEvent,_0x7b3e2f,_0x43950d[_0x5679d7(0x167)],messageTypes[_0x5679d7(0x128)],null,null,_0x7b3e2f);const _0x58d3ff=_0x43950d[_0x5679d7(0x153)](getDirForConfig);!fs[_0x5679d7(0x134)](_0x58d3ff)&&(_0x43950d[_0x5679d7(0x168)](_0x43950d['QSDJQ'],_0x43950d[_0x5679d7(0x18f)])?_0x4e1420=_0x51e9ee['env'][_0x5679d7(0x178)]:fs[_0x5679d7(0x140)](_0x58d3ff));let _0x3b66c7,_0x4603fc;process[_0x5679d7(0x184)][_0x5679d7(0x192)]&&(_0x43950d[_0x5679d7(0x13a)](_0x43950d[_0x5679d7(0x132)],_0x43950d[_0x5679d7(0x132)])?_0x4416bf=_0xb9f3cc['parse'](_0xde4ff4[_0x5679d7(0x16b)](_0x4b3b21,_0x43950d[_0x5679d7(0x157)])):_0x3b66c7=process[_0x5679d7(0x184)]['BROWSERSTACK_USERNAME']);if(process[_0x5679d7(0x184)][_0x5679d7(0x178)]){if(_0x43950d['MXUfG'](_0x43950d[_0x5679d7(0x177)],_0x43950d[_0x5679d7(0x177)]))_0x4603fc=process[_0x5679d7(0x184)][_0x5679d7(0x178)];else{let _0x3aa81b={};const _0x5500d5=_0x43950d[_0x5679d7(0x13f)](_0x519908);_0x48e0b9[_0x5679d7(0x134)](_0x5500d5)&&(_0x3aa81b=_0x323618[_0x5679d7(0x143)](_0x38a444[_0x5679d7(0x16b)](_0x5500d5,_0x43950d[_0x5679d7(0x157)])));const _0x1d5336={};_0x1d5336[_0x5679d7(0x160)]=_0x2cb4e1,_0x1d5336[_0x5679d7(0x170)]=_0x36159a,_0x3aa81b[_0x5679d7(0x146)]=_0x1d5336,_0x4e8d7a[_0x5679d7(0x18c)](_0x5500d5,_0x5b64f6[_0x5679d7(0x14a)](_0x3aa81b)),_0x12ef8c['exit'](0x0);}}_0x7b3e2f[_0x5679d7(0x187)]&&(_0x43950d[_0x5679d7(0x12e)](_0x43950d[_0x5679d7(0x172)],_0x43950d[_0x5679d7(0x172)])?_0x2ea9e0=!![]:_0x3b66c7=_0x7b3e2f[_0x5679d7(0x187)]);if(_0x7b3e2f[_0x5679d7(0x12f)]){if(_0x43950d[_0x5679d7(0x168)](_0x43950d[_0x5679d7(0x13b)],_0x43950d['vLjIN'])){const _0xe9c9a6={};_0xe9c9a6['description']=_0x43950d[_0x5679d7(0x162)],_0xe9c9a6[_0x5679d7(0x188)]=_0x43950d[_0x5679d7(0x147)];const _0x5c7b1f={};_0x5c7b1f[_0x5679d7(0x131)]=_0x43950d[_0x5679d7(0x189)],_0x5c7b1f[_0x5679d7(0x188)]=_0x43950d['WrYHy'];const _0x17aa3b={};return _0x17aa3b[_0x5679d7(0x137)]=_0xe9c9a6,_0x17aa3b[_0x5679d7(0x16c)]=_0x5c7b1f,_0x2be4df[_0x5679d7(0x17a)](_0x25571b[_0x5679d7(0x17b)])[_0x5679d7(0x136)](_0x4cf1dc)[_0x5679d7(0x130)](_0x17aa3b)[_0x5679d7(0x14e)]()[_0x5679d7(0x14f)]()['help'](_0x43950d[_0x5679d7(0x191)])['argv'];}else _0x4603fc=_0x7b3e2f[_0x5679d7(0x12f)];}if(_0x43950d['XhtPm'](_0x3b66c7,undefined)||_0x43950d['XhtPm'](_0x4603fc,undefined)){if(_0x43950d['KceBm'](_0x43950d[_0x5679d7(0x16a)],_0x43950d[_0x5679d7(0x16a)])){logger['debug'](_0x43950d[_0x5679d7(0x165)]);const [_0xa317a3,_0x445e7c]=await _0x43950d[_0x5679d7(0x154)](inputBstackKeys);_0x3b66c7=_0xa317a3,_0x4603fc=_0x445e7c;}else _0x54a3b6=_0x202f93['bstackAccesskey'];}let _0x17d774=![];const _0x465cfb=_0x5679d7(0x144)+_0x3b66c7+':'+_0x4603fc+'@'+BS_API_URL+_0x5679d7(0x17d),_0x5bc5d4={'method':_0x43950d['YqzHl'],'headers':_0x43950d['RYDOJ'](getAuthHeader,_0x3b66c7,_0x4603fc),'throwHttpErrors':![]},_0x2e2c84=await _0x43950d[_0x5679d7(0x166)](got,_0x465cfb,_0x5bc5d4);_0x43950d[_0x5679d7(0x13a)](_0x2e2c84,null)&&_0x43950d[_0x5679d7(0x14d)](_0x2e2c84,undefined)&&_0x43950d['KceBm'](_0x2e2c84['statusCode'],0xc8)&&(_0x43950d[_0x5679d7(0x12c)](_0x43950d[_0x5679d7(0x12a)],_0x43950d[_0x5679d7(0x12a)])?_0x17d774=!![]:_0x3e290b=_0x5bbb22['env'][_0x5679d7(0x192)]);if(_0x17d774){if(_0x43950d[_0x5679d7(0x175)](_0x43950d[_0x5679d7(0x183)],_0x43950d[_0x5679d7(0x151)])){let _0x5c4793={};const _0x30e8e5=_0x43950d['LxHJL'](getCredentialsPath);fs[_0x5679d7(0x134)](_0x30e8e5)&&(_0x43950d[_0x5679d7(0x13a)](_0x43950d[_0x5679d7(0x164)],_0x43950d[_0x5679d7(0x17c)])?_0x5c4793=JSON[_0x5679d7(0x143)](fs[_0x5679d7(0x16b)](_0x30e8e5,_0x43950d[_0x5679d7(0x157)])):_0x50ee57['mkdirSync'](_0x4de3dd));const _0x4c730e={};_0x4c730e[_0x5679d7(0x160)]=_0x3b66c7,_0x4c730e[_0x5679d7(0x170)]=_0x4603fc,_0x5c4793[_0x5679d7(0x146)]=_0x4c730e,fs[_0x5679d7(0x18c)](_0x30e8e5,JSON['stringify'](_0x5c4793)),process['exit'](0x0);}else _0x22ed51=_0x289474[_0x5679d7(0x187)];}else logger['error'](_0x43950d[_0x5679d7(0x174)]),await _0x43950d[_0x5679d7(0x16d)](sendInstrumentationEvent,_0x7b3e2f,_0x43950d['OdHXJ'],messageTypes[_0x5679d7(0x14c)],_0x43950d[_0x5679d7(0x138)],null,_0x7b3e2f),process[_0x5679d7(0x158)](0x1);}catch(_0xa922f3){logger[_0x5679d7(0x17e)](_0xa922f3['stack']),await _0x43950d[_0x5679d7(0x16e)](sendInstrumentationEvent,_0x7b3e2f,_0x43950d[_0x5679d7(0x167)],messageTypes['ERROR'],_0x43950d['KqUPA'],_0xa922f3,_0x7b3e2f),process[_0x5679d7(0x158)](0x1);}};
1
+ function a12_0x15e4(_0x1e48c0,_0x214d93){const _0x3f6a8e=a12_0x3f6a();return a12_0x15e4=function(_0x15e457,_0x2c9f00){_0x15e457=_0x15e457-0xff;let _0x371c21=_0x3f6a8e[_0x15e457];return _0x371c21;},a12_0x15e4(_0x1e48c0,_0x214d93);}const a12_0x39cc98=a12_0x15e4;(function(_0x3f0593,_0x5d3345){const _0x4b0f91=a12_0x15e4,_0x9b7f61=_0x3f0593();while(!![]){try{const _0x32a4a2=-parseInt(_0x4b0f91(0x14e))/0x1+parseInt(_0x4b0f91(0x127))/0x2*(parseInt(_0x4b0f91(0x126))/0x3)+parseInt(_0x4b0f91(0x139))/0x4+-parseInt(_0x4b0f91(0x14f))/0x5+-parseInt(_0x4b0f91(0x159))/0x6+-parseInt(_0x4b0f91(0x153))/0x7*(parseInt(_0x4b0f91(0x129))/0x8)+parseInt(_0x4b0f91(0x141))/0x9;if(_0x32a4a2===_0x5d3345)break;else _0x9b7f61['push'](_0x9b7f61['shift']());}catch(_0x140a19){_0x9b7f61['push'](_0x9b7f61['shift']());}}}(a12_0x3f6a,0x33fad));function a12_0x3f6a(){const _0x82a00a=['Pidim','1366086jJRFDF','type','/automate/plan.json','init-called','strict','epilogue','command','IpjkN','mIRIY','pMOKA','stack','parse','../utils/userInput','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','TwQLz','aaVYb','usage','FVpGs','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','BROWSERSTACK_USERNAME','ZutqR','bstack-username','mkdirSync','DEUvO','EPyMr','help','IZQmv','DeVHc','recommendCommands','exit','oUBtc','init','writeFileSync','YWVre','PgttL','password','SDruq','bstack-accesskey','gosoY','../config/logger','utf-8','../config/constants','got','error','INtGa','AMvsU','wdQFZ','KNOjz','string','GRFnK','EGQto','UxyhD','zyknA','INFO','gHSkg','mivTt','87VBrXDD','11742SFoEra','../utils/utilityMethods','523408RjfHOs','jbxHr','NgmGE','ERROR','env','readFileSync','tDFQJ','diZxo','PvRSw','IsjHc','builder','requestId','vgALw','stringify','aoMuf','Browserstack','502960uXjxxm','argv','bstackUsername','mABoo','LPZdk','ChjsO','bstackAccesskey','EhbLy','10096038ecplaZ','description','https://','MSWHf','LSjtm','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','rJeTG','options','GET','username','aQqlY','wYBxz','wrong-creds','194795vzOqOb','1949200alSlal','gWsGU','XvFaC','BROWSERSTACK_ACCESS_KEY','42muXAzB','jbUNq','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','existsSync','handler'];a12_0x3f6a=function(){return _0x82a00a;};return a12_0x3f6a();}const fs=require('fs'),util=require('util'),got=require(a12_0x39cc98(0x118)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x39cc98(0x115)),{inputBstackKeys}=require(a12_0x39cc98(0x165)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x39cc98(0x117)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x39cc98(0x128)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a12_0x39cc98(0x15f)]='init',exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x39cc98(0x133)]=function(_0x3e4d86){const _0x40b6fb=a12_0x39cc98,_0x575ad5={};_0x575ad5[_0x40b6fb(0x11c)]=_0x40b6fb(0x146),_0x575ad5[_0x40b6fb(0x112)]='string',_0x575ad5[_0x40b6fb(0x161)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x575ad5[_0x40b6fb(0x12b)]='help';const _0x2ca4b1=_0x575ad5,_0x443ec3={};_0x443ec3[_0x40b6fb(0x142)]=_0x2ca4b1['wdQFZ'],_0x443ec3['type']=_0x2ca4b1[_0x40b6fb(0x112)];const _0x195a43={};_0x195a43[_0x40b6fb(0x142)]=_0x2ca4b1[_0x40b6fb(0x161)],_0x195a43['type']=_0x2ca4b1[_0x40b6fb(0x112)];const _0x3bf588={};return _0x3bf588['bstack-username']=_0x443ec3,_0x3bf588['bstack-accesskey']=_0x195a43,_0x3e4d86[_0x40b6fb(0x169)](HELP_HEADER_MESSAGE[_0x40b6fb(0x10d)])[_0x40b6fb(0x15e)](HELP_FOOTER_MESSAGE)[_0x40b6fb(0x148)](_0x3bf588)[_0x40b6fb(0x10a)]()['strict']()[_0x40b6fb(0x107)](_0x2ca4b1['NgmGE'])[_0x40b6fb(0x13a)];},exports[a12_0x39cc98(0x157)]=async function(_0x5a39ff){const _0x2cf0db=a12_0x39cc98,_0x12401b={'TwQLz':_0x2cf0db(0x116),'EhbLy':function(_0x1f4147){return _0x1f4147();},'xPuWA':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','EPyMr':_0x2cf0db(0x11e),'XvFaC':_0x2cf0db(0x166),'MSWHf':_0x2cf0db(0x107),'LPZdk':function(_0x9e04f2,_0x3dafcc,_0x1c3bbc,_0x51ebed,_0x54fea1,_0x3a0400,_0x3d4a66){return _0x9e04f2(_0x3dafcc,_0x1c3bbc,_0x51ebed,_0x54fea1,_0x3a0400,_0x3d4a66);},'gHSkg':_0x2cf0db(0x15c),'ihGJY':function(_0x2d9b77,_0x856a10){return _0x2d9b77===_0x856a10;},'tDFQJ':_0x2cf0db(0x150),'PvRSw':_0x2cf0db(0x13c),'diZxo':function(_0x58d475,_0x4e5bf8){return _0x58d475!==_0x4e5bf8;},'IpjkN':_0x2cf0db(0x147),'KNOjz':function(_0x35ad27,_0xf1c600){return _0x35ad27!==_0xf1c600;},'ZfOrC':'cbNLz','ZutqR':_0x2cf0db(0x11a),'DeVHc':_0x2cf0db(0x137),'vgALw':'EEZMC','AMvsU':'yDLpm','aQqlY':function(_0x3d9d32,_0x1482c6){return _0x3d9d32===_0x1482c6;},'jbxHr':function(_0x2b1c14,_0xa34891){return _0x2b1c14===_0xa34891;},'cEJkf':_0x2cf0db(0x125),'gosoY':_0x2cf0db(0x10c),'Pidim':_0x2cf0db(0x155),'lZyiv':function(_0x2eb387){return _0x2eb387();},'YWVre':_0x2cf0db(0x149),'ZTlKn':function(_0x49c7c5,_0x2203ff,_0x52f38b){return _0x49c7c5(_0x2203ff,_0x52f38b);},'FVpGs':function(_0x5c4e21,_0x59af30){return _0x5c4e21===_0x59af30;},'UKqYY':function(_0x1c6c26,_0x1e370e){return _0x1c6c26===_0x1e370e;},'IZQmv':_0x2cf0db(0x122),'UxyhD':_0x2cf0db(0x132),'pXZck':_0x2cf0db(0x154),'aaVYb':function(_0x59ddef){return _0x59ddef();},'ChjsO':_0x2cf0db(0x105),'PgttL':_0x2cf0db(0x145),'wYBxz':_0x2cf0db(0x100),'pMOKA':function(_0x4ef008,_0x4fa622,_0x2cab7f,_0x4e6422,_0x50f144,_0x275ec1,_0x187f4f){return _0x4ef008(_0x4fa622,_0x2cab7f,_0x4e6422,_0x50f144,_0x275ec1,_0x187f4f);},'GRFnK':_0x2cf0db(0x14d),'EGQto':function(_0x1ae267,_0x913657,_0x5509a5,_0x42940f,_0x4b0ed0,_0x8ba749,_0x5cfe85){return _0x1ae267(_0x913657,_0x5509a5,_0x42940f,_0x4b0ed0,_0x8ba749,_0x5cfe85);},'qybMO':'unknown-error'};try{global_registry[_0x2cf0db(0x134)]=_0x12401b['EhbLy'](uuidv4),_0x12401b[_0x2cf0db(0x13d)](sendInstrumentationEvent,_0x5a39ff,_0x12401b[_0x2cf0db(0x124)],messageTypes[_0x2cf0db(0x123)],null,null,_0x5a39ff);const _0x2be38f=_0x12401b[_0x2cf0db(0x140)](getDirForConfig);!fs[_0x2cf0db(0x156)](_0x2be38f)&&(_0x12401b['ihGJY'](_0x12401b[_0x2cf0db(0x12f)],_0x12401b[_0x2cf0db(0x131)])?_0x1dc7bd=_0x316e7f[_0x2cf0db(0x13f)]:fs[_0x2cf0db(0x104)](_0x2be38f));let _0x231605,_0x47912c;process[_0x2cf0db(0x12d)][_0x2cf0db(0x101)]&&(_0x12401b[_0x2cf0db(0x130)](_0x12401b[_0x2cf0db(0x160)],_0x12401b[_0x2cf0db(0x160)])?_0x3e78bf['mkdirSync'](_0x199e45):_0x231605=process['env'][_0x2cf0db(0x101)]);process['env']['BROWSERSTACK_ACCESS_KEY']&&(_0x12401b[_0x2cf0db(0x11d)](_0x12401b['ZfOrC'],_0x12401b[_0x2cf0db(0x102)])?_0x47912c=process[_0x2cf0db(0x12d)][_0x2cf0db(0x152)]:_0x5777dd=_0x2d8d43[_0x2cf0db(0x164)](_0x5556c1['readFileSync'](_0x48122b,_0x12401b[_0x2cf0db(0x167)])));if(_0x5a39ff[_0x2cf0db(0x13b)]){if(_0x12401b['diZxo'](_0x12401b['DeVHc'],_0x12401b[_0x2cf0db(0x109)])){let _0x2df377={};const _0x4afec9=_0x12401b[_0x2cf0db(0x140)](_0x2ce448);_0x41a96e[_0x2cf0db(0x156)](_0x4afec9)&&(_0x2df377=_0xafc434[_0x2cf0db(0x164)](_0x1bfb5d[_0x2cf0db(0x12e)](_0x4afec9,_0x12401b['TwQLz'])));const _0x532cfe={};_0x532cfe[_0x2cf0db(0x14a)]=_0x27e799,_0x532cfe[_0x2cf0db(0x111)]=_0x4d1d80,_0x2df377['Browserstack']=_0x532cfe,_0x1ac60f['writeFileSync'](_0x4afec9,_0x571a30[_0x2cf0db(0x136)](_0x2df377)),_0x2420b5[_0x2cf0db(0x10b)](0x0);}else _0x231605=_0x5a39ff[_0x2cf0db(0x13b)];}if(_0x5a39ff[_0x2cf0db(0x13f)]){if(_0x12401b[_0x2cf0db(0x130)](_0x12401b[_0x2cf0db(0x135)],_0x12401b[_0x2cf0db(0x11b)]))_0x47912c=_0x5a39ff['bstackAccesskey'];else{const _0x1d910e={};_0x1d910e[_0x2cf0db(0x142)]=_0x12401b['xPuWA'],_0x1d910e['type']=_0x12401b['EPyMr'];const _0x142b09={};_0x142b09['description']=_0x12401b[_0x2cf0db(0x151)],_0x142b09[_0x2cf0db(0x15a)]=_0x12401b[_0x2cf0db(0x106)];const _0x44e885={};return _0x44e885[_0x2cf0db(0x103)]=_0x1d910e,_0x44e885[_0x2cf0db(0x113)]=_0x142b09,_0x551660[_0x2cf0db(0x169)](_0x388422[_0x2cf0db(0x10d)])[_0x2cf0db(0x15e)](_0xa6b798)['options'](_0x44e885)['recommendCommands']()[_0x2cf0db(0x15d)]()[_0x2cf0db(0x107)](_0x12401b[_0x2cf0db(0x144)])['argv'];}}if(_0x12401b[_0x2cf0db(0x14b)](_0x231605,undefined)||_0x12401b[_0x2cf0db(0x12a)](_0x47912c,undefined)){if(_0x12401b['diZxo'](_0x12401b['cEJkf'],_0x12401b[_0x2cf0db(0x114)])){logger['debug'](_0x12401b[_0x2cf0db(0x158)]);const [_0x1574e9,_0x39d013]=await _0x12401b['lZyiv'](inputBstackKeys);_0x231605=_0x1574e9,_0x47912c=_0x39d013;}else _0x4e9298=!![];}let _0x16918f=![];const _0x248c59=_0x2cf0db(0x143)+_0x231605+':'+_0x47912c+'@'+BS_API_URL+_0x2cf0db(0x15b),_0x60b8a8={'method':_0x12401b[_0x2cf0db(0x10f)],'headers':_0x12401b['ZTlKn'](getAuthHeader,_0x231605,_0x47912c),'throwHttpErrors':![]},_0x1c69f7=await _0x12401b['ZTlKn'](got,_0x248c59,_0x60b8a8);_0x12401b[_0x2cf0db(0x11d)](_0x1c69f7,null)&&_0x12401b['diZxo'](_0x1c69f7,undefined)&&_0x12401b[_0x2cf0db(0xff)](_0x1c69f7['statusCode'],0xc8)&&(_0x12401b['UKqYY'](_0x12401b[_0x2cf0db(0x108)],_0x12401b[_0x2cf0db(0x108)])?_0x16918f=!![]:_0x1ab19b=_0x594953[_0x2cf0db(0x13b)]);if(_0x16918f){if(_0x12401b[_0x2cf0db(0x12a)](_0x12401b[_0x2cf0db(0x121)],_0x12401b['pXZck']))_0x14b4eb=_0x1ee6ae[_0x2cf0db(0x12d)]['BROWSERSTACK_USERNAME'];else{let _0x4dc2db={};const _0x52a550=_0x12401b[_0x2cf0db(0x168)](getCredentialsPath);fs[_0x2cf0db(0x156)](_0x52a550)&&(_0x12401b[_0x2cf0db(0x11d)](_0x12401b[_0x2cf0db(0x13e)],_0x12401b[_0x2cf0db(0x110)])?_0x4dc2db=JSON[_0x2cf0db(0x164)](fs['readFileSync'](_0x52a550,_0x12401b[_0x2cf0db(0x167)])):_0x19c342=_0x6e7bb8[_0x2cf0db(0x12d)][_0x2cf0db(0x152)]);const _0x16df38={};_0x16df38[_0x2cf0db(0x14a)]=_0x231605,_0x16df38[_0x2cf0db(0x111)]=_0x47912c,_0x4dc2db[_0x2cf0db(0x138)]=_0x16df38,fs[_0x2cf0db(0x10e)](_0x52a550,JSON[_0x2cf0db(0x136)](_0x4dc2db)),process[_0x2cf0db(0x10b)](0x0);}}else logger[_0x2cf0db(0x119)](_0x12401b[_0x2cf0db(0x14c)]),await _0x12401b[_0x2cf0db(0x162)](sendInstrumentationEvent,_0x5a39ff,_0x12401b[_0x2cf0db(0x124)],messageTypes['ERROR'],_0x12401b[_0x2cf0db(0x11f)],null,_0x5a39ff),process[_0x2cf0db(0x10b)](0x1);}catch(_0x5aaee6){logger[_0x2cf0db(0x119)](_0x5aaee6[_0x2cf0db(0x163)]),await _0x12401b[_0x2cf0db(0x120)](sendInstrumentationEvent,_0x5a39ff,_0x12401b['gHSkg'],messageTypes[_0x2cf0db(0x12c)],_0x12401b['qybMO'],_0x5aaee6,_0x5a39ff),process[_0x2cf0db(0x10b)](0x1);}};
@@ -1 +1 @@
1
- const a13_0x4d2aaf=a13_0x3d72;function a13_0x4b85(){const _0x1d4604=['demandCommand','500LHwrxu','26576WInCuG','list','130JodEKM','UhRXT','44693sVfYHx','desc','../config/constants','pTkyV','help','usage','command','531QuWcEX','381066OHrqLl','21754jjwWHS','handler','316830tLeoNQ','17676gaxNCr','list_commands','commandDir','24324gVItDU','epilogue','10hslypT','root'];a13_0x4b85=function(){return _0x1d4604;};return a13_0x4b85();}function a13_0x3d72(_0x3d5055,_0x15493c){const _0x4b859d=a13_0x4b85();return a13_0x3d72=function(_0x3d7214,_0x5286dc){_0x3d7214=_0x3d7214-0x186;let _0x3c51af=_0x4b859d[_0x3d7214];return _0x3c51af;},a13_0x3d72(_0x3d5055,_0x15493c);}(function(_0x5494fb,_0x574d1c){const _0x296cc9=a13_0x3d72,_0x57a233=_0x5494fb();while(!![]){try{const _0x184f9b=parseInt(_0x296cc9(0x195))/0x1*(-parseInt(_0x296cc9(0x19d))/0x2)+-parseInt(_0x296cc9(0x197))/0x3+parseInt(_0x296cc9(0x198))/0x4+-parseInt(_0x296cc9(0x18a))/0x5*(parseInt(_0x296cc9(0x19b))/0x6)+parseInt(_0x296cc9(0x194))/0x7+-parseInt(_0x296cc9(0x188))/0x8*(-parseInt(_0x296cc9(0x193))/0x9)+-parseInt(_0x296cc9(0x187))/0xa*(-parseInt(_0x296cc9(0x18c))/0xb);if(_0x184f9b===_0x574d1c)break;else _0x57a233['push'](_0x57a233['shift']());}catch(_0x5ecbb4){_0x57a233['push'](_0x57a233['shift']());}}}(a13_0x4b85,0x21bed));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x4d2aaf(0x18e));exports[a13_0x4d2aaf(0x192)]='list',exports[a13_0x4d2aaf(0x18d)]='List\x20down\x20the\x20Grid\x20resources.',exports['builder']=function(_0xb64cc){const _0x5175b6=a13_0x4d2aaf,_0x164d72={};_0x164d72[_0x5175b6(0x18f)]=_0x5175b6(0x199),_0x164d72[_0x5175b6(0x18b)]=_0x5175b6(0x190);const _0x2659de=_0x164d72;return _0xb64cc[_0x5175b6(0x19a)](_0x2659de[_0x5175b6(0x18f)])[_0x5175b6(0x186)]()[_0x5175b6(0x191)](HELP_HEADER_MESSAGE[_0x5175b6(0x189)][_0x5175b6(0x19e)])[_0x5175b6(0x19c)](HELP_FOOTER_MESSAGE)['recommendCommands']()['strict']()['help'](_0x2659de[_0x5175b6(0x18b)]);},exports[a13_0x4d2aaf(0x196)]=function(_0x1b3e82){};
1
+ const a13_0x19364a=a13_0x1256;(function(_0x4e05ab,_0x48d5a8){const _0x197dbe=a13_0x1256,_0xe76f9f=_0x4e05ab();while(!![]){try{const _0x11735b=parseInt(_0x197dbe(0x1a4))/0x1+parseInt(_0x197dbe(0x1a3))/0x2+-parseInt(_0x197dbe(0x1a8))/0x3*(parseInt(_0x197dbe(0x19e))/0x4)+-parseInt(_0x197dbe(0x1a2))/0x5*(parseInt(_0x197dbe(0x1b0))/0x6)+parseInt(_0x197dbe(0x19d))/0x7+-parseInt(_0x197dbe(0x1a6))/0x8*(parseInt(_0x197dbe(0x1ad))/0x9)+parseInt(_0x197dbe(0x1b3))/0xa;if(_0x11735b===_0x48d5a8)break;else _0xe76f9f['push'](_0xe76f9f['shift']());}catch(_0x50fae7){_0xe76f9f['push'](_0xe76f9f['shift']());}}}(a13_0x28c7,0xce92c));function a13_0x28c7(){const _0x41b829=['builder','desc','9225680SclMpb','commandDir','11202786fqDdgY','76ZYDyZV','../config/constants','List\x20down\x20the\x20Grid\x20resources.','epilogue','16465WYEhkV','387146ajfMuz','1346052NOQDJL','list','605960RNZUwX','demandCommand','91893fSbquR','hwnYK','help','list_commands','command','117skVbiG','root','etEFa','3006vbGuxn'];a13_0x28c7=function(){return _0x41b829;};return a13_0x28c7();}function a13_0x1256(_0x1c9b74,_0x50100f){const _0x28c769=a13_0x28c7();return a13_0x1256=function(_0x125664,_0x21f618){_0x125664=_0x125664-0x19d;let _0x506863=_0x28c769[_0x125664];return _0x506863;},a13_0x1256(_0x1c9b74,_0x50100f);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x19364a(0x19f));exports[a13_0x19364a(0x1ac)]='list',exports[a13_0x19364a(0x1b2)]=a13_0x19364a(0x1a0),exports[a13_0x19364a(0x1b1)]=function(_0x3b9874){const _0x247bc4=a13_0x19364a,_0x5c163a={};_0x5c163a[_0x247bc4(0x1af)]=_0x247bc4(0x1ab),_0x5c163a[_0x247bc4(0x1a9)]=_0x247bc4(0x1aa);const _0x395a5e=_0x5c163a;return _0x3b9874[_0x247bc4(0x1b4)](_0x395a5e[_0x247bc4(0x1af)])[_0x247bc4(0x1a7)]()['usage'](HELP_HEADER_MESSAGE[_0x247bc4(0x1a5)][_0x247bc4(0x1ae)])[_0x247bc4(0x1a1)](HELP_FOOTER_MESSAGE)['recommendCommands']()['strict']()['help'](_0x395a5e[_0x247bc4(0x1a9)]);},exports['handler']=function(_0x53fd3d){};
@@ -1 +1 @@
1
- const a14_0x51a3f6=a14_0x3b6f;function a14_0x3b6f(_0x522829,_0x4be455){const _0x3a3c1b=a14_0x3a3c();return a14_0x3b6f=function(_0x3b6fb7,_0x5c5d28){_0x3b6fb7=_0x3b6fb7-0xb9;let _0x2f9529=_0x3a3c1b[_0x3b6fb7];return _0x2f9529;},a14_0x3b6f(_0x522829,_0x4be455);}(function(_0xfef89,_0x328fb9){const _0x31161f=a14_0x3b6f,_0x2e2247=_0xfef89();while(!![]){try{const _0x257c58=-parseInt(_0x31161f(0xe1))/0x1+-parseInt(_0x31161f(0xdc))/0x2+parseInt(_0x31161f(0xe5))/0x3+parseInt(_0x31161f(0xde))/0x4*(-parseInt(_0x31161f(0x103))/0x5)+parseInt(_0x31161f(0xc9))/0x6*(-parseInt(_0x31161f(0xf2))/0x7)+-parseInt(_0x31161f(0xba))/0x8*(-parseInt(_0x31161f(0xf5))/0x9)+parseInt(_0x31161f(0x108))/0xa*(parseInt(_0x31161f(0xd5))/0xb);if(_0x257c58===_0x328fb9)break;else _0x2e2247['push'](_0x2e2247['shift']());}catch(_0x43f703){_0x2e2247['push'](_0x2e2247['shift']());}}}(a14_0x3a3c,0xaee8f));const fs=require('fs'),got=require('got'),{table}=require(a14_0x51a3f6(0x107)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x51a3f6(0xd8)),{getCredentialsPath,getAuthHeader}=require(a14_0x51a3f6(0xdb)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a14_0x51a3f6(0xd4)]=a14_0x51a3f6(0xdf),exports[a14_0x51a3f6(0x102)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports[a14_0x51a3f6(0xbd)]=function(_0x269504){const _0x5b9ec7=a14_0x51a3f6,_0x6dcc7e={};_0x6dcc7e[_0x5b9ec7(0xfb)]=_0x5b9ec7(0x101),_0x6dcc7e[_0x5b9ec7(0xec)]=_0x5b9ec7(0xf8),_0x6dcc7e[_0x5b9ec7(0xf1)]='help';const _0x2a665e=_0x6dcc7e,_0x2a59e0={};_0x2a59e0[_0x5b9ec7(0xc8)]=_0x2a665e[_0x5b9ec7(0xfb)],_0x2a59e0['type']=_0x2a665e[_0x5b9ec7(0xec)];const _0x550dce={};return _0x550dce['all-grid-profiles']=_0x2a59e0,_0x269504['usage'](HELP_HEADER_MESSAGE['list'][_0x5b9ec7(0xed)])[_0x5b9ec7(0xfd)](HELP_FOOTER_MESSAGE)['options'](_0x550dce)['help'](_0x2a665e['AWWKP'])[_0x5b9ec7(0xe0)];},exports[a14_0x51a3f6(0xc5)]=async function(_0x45443e){const _0x3b31c8=a14_0x51a3f6,_0x56c7a1={'vipKF':function(_0x5961e7){return _0x5961e7();},'Poyju':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','MhUvs':function(_0x2f5d9c,_0x4d19de,_0xf4229c,_0x1e0439,_0x26ad6a,_0x376bcf,_0x312296){return _0x2f5d9c(_0x4d19de,_0xf4229c,_0x1e0439,_0x26ad6a,_0x376bcf,_0x312296);},'dLXYs':_0x3b31c8(0xdd),'ipHuS':_0x3b31c8(0xd3),'NeZpY':function(_0x42e5d9){return _0x42e5d9();},'MFnJi':_0x3b31c8(0xbb),'loYxz':function(_0x424cf2,_0x1a4f58,_0x5b1a89){return _0x424cf2(_0x1a4f58,_0x5b1a89);},'cHhMt':function(_0x34927e,_0x3b2aa2,_0x4ec571){return _0x34927e(_0x3b2aa2,_0x4ec571);},'QXZjS':function(_0x5227c6,_0x1e3318){return _0x5227c6!==_0x1e3318;},'nFHYR':function(_0x474dc1,_0x54cc1d){return _0x474dc1!==_0x54cc1d;},'haNaF':function(_0x4ca31a,_0x198794){return _0x4ca31a===_0x198794;},'ISFNU':_0x3b31c8(0xda),'dmLyC':_0x3b31c8(0xbf),'Gingi':'cloud-provider','iSvXY':_0x3b31c8(0xf4),'hhILC':_0x3b31c8(0xbe),'hntug':function(_0xd9a70f,_0xa1b3ca){return _0xd9a70f(_0xa1b3ca);},'ibIaC':function(_0x19ae32,_0x1bff99){return _0x19ae32===_0x1bff99;},'AcLhv':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','iguHn':_0x3b31c8(0xcf),'tUIbp':function(_0x283729,_0x205600,_0x318c94,_0x3f645f,_0x35db03,_0x53582d,_0x1cf67d){return _0x283729(_0x205600,_0x318c94,_0x3f645f,_0x35db03,_0x53582d,_0x1cf67d);},'gyTuc':'server-error','YJcQB':function(_0x56d022,_0x26a65e,_0x563e97,_0x3916a2,_0xd9de38,_0x37f421,_0x1e49ed){return _0x56d022(_0x26a65e,_0x563e97,_0x3916a2,_0xd9de38,_0x37f421,_0x1e49ed);},'lEgzJ':'unknown-error'};try{global_registry['requestId']=_0x56c7a1[_0x3b31c8(0xe6)](uuidv4);let _0x35458f=_0x3b31c8(0xbc)+AG_API_URL+_0x3b31c8(0xd2);_0x45443e[_0x3b31c8(0xc1)]&&(_0x35458f=_0x3b31c8(0xbc)+AG_API_URL+_0x3b31c8(0x105));!fs[_0x3b31c8(0xf0)](_0x56c7a1[_0x3b31c8(0xe6)](getCredentialsPath))&&(console['error'](_0x56c7a1['Poyju']),await _0x56c7a1[_0x3b31c8(0xce)](sendInstrumentationEvent,_0x45443e,_0x56c7a1[_0x3b31c8(0xd9)],messageTypes[_0x3b31c8(0xea)],_0x56c7a1[_0x3b31c8(0x104)],null,_0x45443e),process[_0x3b31c8(0xe3)](0x1));const _0x1555fa=JSON[_0x3b31c8(0xf3)](fs['readFileSync'](_0x56c7a1[_0x3b31c8(0xca)](getCredentialsPath))),_0x349a29={'method':_0x56c7a1[_0x3b31c8(0xc4)],'headers':_0x56c7a1[_0x3b31c8(0x100)](getAuthHeader,_0x1555fa[_0x3b31c8(0xd1)][_0x3b31c8(0xeb)],_0x1555fa[_0x3b31c8(0xd1)][_0x3b31c8(0xc7)]),'throwHttpErrors':![]};global_registry[_0x3b31c8(0xd0)]=_0x1555fa[_0x3b31c8(0xd1)][_0x3b31c8(0xeb)],global_registry[_0x3b31c8(0xe4)]=_0x1555fa[_0x3b31c8(0xd1)][_0x3b31c8(0xc7)],_0x56c7a1[_0x3b31c8(0xce)](sendInstrumentationEvent,_0x45443e,_0x56c7a1[_0x3b31c8(0xd9)],messageTypes[_0x3b31c8(0xf9)],null,null,_0x45443e);const _0xc6dbb4=await _0x56c7a1[_0x3b31c8(0xc3)](got,_0x35458f,_0x349a29);if(_0x56c7a1['QXZjS'](_0xc6dbb4,null)&&_0x56c7a1[_0x3b31c8(0xfc)](_0xc6dbb4,undefined)&&_0x56c7a1[_0x3b31c8(0xcd)](_0xc6dbb4['statusCode'],0xc8)){const _0x385711=JSON['parse'](_0xc6dbb4[_0x3b31c8(0xe7)]);console['log'](_0x56c7a1[_0x3b31c8(0xff)]);const _0x1e7504=[];_0x1e7504[_0x3b31c8(0xe2)]([_0x56c7a1[_0x3b31c8(0xf6)],_0x56c7a1[_0x3b31c8(0xef)],_0x56c7a1[_0x3b31c8(0xfa)],_0x56c7a1[_0x3b31c8(0xcb)]]),_0x385711['forEach'](_0x12f4b9=>{const _0x2be4a6=_0x3b31c8;_0x1e7504[_0x2be4a6(0xe2)]([_0x12f4b9['name'],_0x12f4b9[_0x2be4a6(0xc6)],_0x12f4b9[_0x2be4a6(0xf4)],_0x12f4b9[_0x2be4a6(0xbe)]]);}),console[_0x3b31c8(0xe8)](_0x56c7a1[_0x3b31c8(0xc0)](table,_0x1e7504)),process[_0x3b31c8(0xe3)](0x0);}_0x56c7a1['ibIaC'](_0xc6dbb4[_0x3b31c8(0xc2)],0x191)&&(console[_0x3b31c8(0xf7)](_0x56c7a1[_0x3b31c8(0x106)]),await _0x56c7a1[_0x3b31c8(0xce)](sendInstrumentationEvent,_0x45443e,_0x56c7a1['dLXYs'],messageTypes[_0x3b31c8(0xea)],_0x56c7a1[_0x3b31c8(0xe9)],null,_0x45443e),process[_0x3b31c8(0xe3)](0x1)),console[_0x3b31c8(0xf7)](_0x3b31c8(0xee)+JSON[_0x3b31c8(0xfe)](_0xc6dbb4)),await _0x56c7a1[_0x3b31c8(0xd6)](sendInstrumentationEvent,_0x45443e,_0x56c7a1[_0x3b31c8(0xd9)],messageTypes[_0x3b31c8(0xea)],_0x56c7a1[_0x3b31c8(0xcc)],_0xc6dbb4,_0x45443e),process[_0x3b31c8(0xe3)](0x1);}catch(_0x2070f5){console[_0x3b31c8(0xf7)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x2070f5['stack']),await _0x56c7a1[_0x3b31c8(0xd7)](sendInstrumentationEvent,_0x45443e,_0x56c7a1[_0x3b31c8(0xd9)],messageTypes[_0x3b31c8(0xea)],_0x56c7a1[_0x3b31c8(0xb9)],_0x2070f5,_0x45443e),process[_0x3b31c8(0xe3)](0x1);}};function a14_0x3a3c(){const _0x30c093=['3990088KWSubH','GET','https://','builder','concurrency','grid-profile-name','hntug','allGridProfiles','statusCode','cHhMt','MFnJi','handler','cloudProvider','password','description','7818IVHigi','NeZpY','hhILC','gyTuc','haNaF','MhUvs','unauthorised','bstackUsername','Browserstack','/packages/cli/get-grid-profiles','init-not-called','command','77bnsnoD','tUIbp','YJcQB','../../config/constants','dLXYs','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','../../utils/utilityMethods','131626Asgvar','list-grid-profiles-called','5117348IAThHF','grid-profiles','argv','930033IqUmWY','push','exit','bstackAccesskey','3763539THASST','vipKF','body','log','iguHn','ERROR','username','PEoRz','gridProfile','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Gingi','existsSync','AWWKP','1043QDnLhz','parse','region','9mUYrzt','dmLyC','error','boolean','INFO','iSvXY','eVevP','nFHYR','epilogue','stringify','ISFNU','loYxz','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','desc','5WaWLTe','ipHuS','/packages/cli/get-all-grid-profiles','AcLhv','table','2046410ucRFkx','lEgzJ'];a14_0x3a3c=function(){return _0x30c093;};return a14_0x3a3c();}
1
+ const a14_0x5053e1=a14_0x57da;(function(_0x836919,_0x493ee3){const _0x2cd7ad=a14_0x57da,_0x5cbbf3=_0x836919();while(!![]){try{const _0x438aba=parseInt(_0x2cd7ad(0x1bf))/0x1+-parseInt(_0x2cd7ad(0x1c8))/0x2*(parseInt(_0x2cd7ad(0x1ea))/0x3)+-parseInt(_0x2cd7ad(0x1de))/0x4+parseInt(_0x2cd7ad(0x1c0))/0x5+-parseInt(_0x2cd7ad(0x1c2))/0x6*(parseInt(_0x2cd7ad(0x1ca))/0x7)+parseInt(_0x2cd7ad(0x1e6))/0x8+-parseInt(_0x2cd7ad(0x1dc))/0x9;if(_0x438aba===_0x493ee3)break;else _0x5cbbf3['push'](_0x5cbbf3['shift']());}catch(_0x11f034){_0x5cbbf3['push'](_0x5cbbf3['shift']());}}}(a14_0x50d2,0x62ca2));const fs=require('fs'),got=require(a14_0x5053e1(0x203)),{table}=require(a14_0x5053e1(0x1c7)),{v4:uuidv4}=require(a14_0x5053e1(0x1eb)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x5053e1(0x1ff)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x5053e1(0x1b4));function a14_0x50d2(){const _0x4e4932=['boolean','YiJjP','808361EKiTzo','3272735hdQlZG','stringify','48wePEYT','GET','INFO','vUPCx','exit','table','2WXmuIs','WvDKP','48986tEOxBx','handler','Browserstack','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','username','log','body','push','init-not-called','qKbaD','ERROR','Dujhy','dMsOG','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','all-grid-profiles','region','BwVQx','beqsD','8880831mJRszS','guWDZ','2005064dwPNTO','grid-profile-name','statusCode','NWUWj','ryWYV','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','vjhTG','type','4275872yaGRVG','/packages/cli/get-all-grid-profiles','forEach','uliyW','146223zkejPT','uuid','cloudProvider','unknown-error','uZBEH','bstackUsername','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','daMtS','aovVv','RPrlV','LHNRM','requestId','desc','bstackAccesskey','parse','concurrency','vmmyb','kDAZa','/packages/cli/get-grid-profiles','usage','list','../../config/constants','ycZYL','https://','list-grid-profiles-called','got','error','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','eAqMO','oQsHn','existsSync','description','server-error','Failed\x20to\x20list\x20resources!\x20Error:\x20','../../utils/instrumentationUtils','IUUNc','gridProfile','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','QAkYK','argv','stack','command','help'];a14_0x50d2=function(){return _0x4e4932;};return a14_0x50d2();}function a14_0x57da(_0x3385bd,_0xa2bf77){const _0x50d2e1=a14_0x50d2();return a14_0x57da=function(_0x57dabc,_0x424eff){_0x57dabc=_0x57dabc-0x1b2;let _0x486aee=_0x50d2e1[_0x57dabc];return _0x486aee;},a14_0x57da(_0x3385bd,_0xa2bf77);}exports[a14_0x5053e1(0x1bb)]='grid-profiles',exports[a14_0x5053e1(0x1f6)]=a14_0x5053e1(0x1b7),exports['builder']=function(_0xb425c0){const _0x32d75c=a14_0x5053e1,_0x14f53b={};_0x14f53b[_0x32d75c(0x1e1)]=_0x32d75c(0x1e3),_0x14f53b['xOeUY']=_0x32d75c(0x1bd),_0x14f53b[_0x32d75c(0x1d3)]=_0x32d75c(0x1bc);const _0x12b423=_0x14f53b,_0x2260ab={};_0x2260ab[_0x32d75c(0x209)]=_0x12b423[_0x32d75c(0x1e1)],_0x2260ab[_0x32d75c(0x1e5)]=_0x12b423['xOeUY'];const _0xbad628={};return _0xbad628[_0x32d75c(0x1d8)]=_0x2260ab,_0xb425c0[_0x32d75c(0x1fd)](HELP_HEADER_MESSAGE[_0x32d75c(0x1fe)][_0x32d75c(0x1b6)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0xbad628)[_0x32d75c(0x1bc)](_0x12b423[_0x32d75c(0x1d3)])[_0x32d75c(0x1b9)];},exports[a14_0x5053e1(0x1cb)]=async function(_0x48d9c7){const _0x2dedbb=a14_0x5053e1,_0x4b0197={'guWDZ':function(_0x295f7b){return _0x295f7b();},'aovVv':function(_0x2a1807){return _0x2a1807();},'IUUNc':_0x2dedbb(0x1f0),'ryWYV':function(_0x118724,_0x813d75,_0xf36522,_0x480eda,_0x2219aa,_0x242982,_0x3773a5){return _0x118724(_0x813d75,_0xf36522,_0x480eda,_0x2219aa,_0x242982,_0x3773a5);},'QAkYK':_0x2dedbb(0x202),'uZBEH':_0x2dedbb(0x1d2),'qmSoG':function(_0x31c0f9){return _0x31c0f9();},'LHNRM':_0x2dedbb(0x1c3),'kDAZa':function(_0x578ff0,_0x10dba7,_0x1fcd5c){return _0x578ff0(_0x10dba7,_0x1fcd5c);},'WvDKP':function(_0x1433bd,_0x5c40b8,_0x3141a7,_0x1228ee,_0x10a3ac,_0x271492,_0x5825fb){return _0x1433bd(_0x5c40b8,_0x3141a7,_0x1228ee,_0x10a3ac,_0x271492,_0x5825fb);},'BwVQx':function(_0x489ed0,_0x59237b){return _0x489ed0!==_0x59237b;},'beqsD':function(_0x58dd56,_0x2b59ba){return _0x58dd56!==_0x2b59ba;},'kKzye':function(_0x39a127,_0x2fcd82){return _0x39a127===_0x2fcd82;},'oQsHn':_0x2dedbb(0x1cd),'vjhTG':_0x2dedbb(0x1df),'vmmyb':'cloud-provider','uliyW':_0x2dedbb(0x1d9),'daMtS':_0x2dedbb(0x1f9),'YiJjP':function(_0x27f0f9,_0x1f7453){return _0x27f0f9(_0x1f7453);},'vUPCx':function(_0x3eacf0,_0x2b8bbb){return _0x3eacf0===_0x2b8bbb;},'dMsOG':_0x2dedbb(0x205),'eAqMO':function(_0x531604,_0x548503,_0x166bb7,_0x340bfd,_0x51ac4a,_0x3e6961,_0x339de9){return _0x531604(_0x548503,_0x166bb7,_0x340bfd,_0x51ac4a,_0x3e6961,_0x339de9);},'Dujhy':'unauthorised','ycZYL':function(_0x23dcbb,_0x3d0c99,_0x274d37,_0x51ff00,_0x3f4e16,_0x4a7eb3,_0x2a473c){return _0x23dcbb(_0x3d0c99,_0x274d37,_0x51ff00,_0x3f4e16,_0x4a7eb3,_0x2a473c);},'RPrlV':_0x2dedbb(0x1b2),'kagkj':_0x2dedbb(0x1ed)};try{global_registry[_0x2dedbb(0x1f5)]=_0x4b0197[_0x2dedbb(0x1dd)](uuidv4);let _0x5d3874=_0x2dedbb(0x201)+AG_API_URL+_0x2dedbb(0x1fc);_0x48d9c7['allGridProfiles']&&(_0x5d3874=_0x2dedbb(0x201)+AG_API_URL+_0x2dedbb(0x1e7));!fs[_0x2dedbb(0x208)](_0x4b0197[_0x2dedbb(0x1f2)](getCredentialsPath))&&(console['error'](_0x4b0197[_0x2dedbb(0x1b5)]),await _0x4b0197[_0x2dedbb(0x1e2)](sendInstrumentationEvent,_0x48d9c7,_0x4b0197[_0x2dedbb(0x1b8)],messageTypes[_0x2dedbb(0x1d4)],_0x4b0197[_0x2dedbb(0x1ee)],null,_0x48d9c7),process[_0x2dedbb(0x1c6)](0x1));const _0x49d9da=JSON[_0x2dedbb(0x1f8)](fs['readFileSync'](_0x4b0197['qmSoG'](getCredentialsPath))),_0x46c3a6={'method':_0x4b0197[_0x2dedbb(0x1f4)],'headers':_0x4b0197[_0x2dedbb(0x1fb)](getAuthHeader,_0x49d9da[_0x2dedbb(0x1cc)][_0x2dedbb(0x1ce)],_0x49d9da['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x2dedbb(0x1ef)]=_0x49d9da[_0x2dedbb(0x1cc)][_0x2dedbb(0x1ce)],global_registry[_0x2dedbb(0x1f7)]=_0x49d9da[_0x2dedbb(0x1cc)]['password'],_0x4b0197[_0x2dedbb(0x1c9)](sendInstrumentationEvent,_0x48d9c7,_0x4b0197[_0x2dedbb(0x1b8)],messageTypes[_0x2dedbb(0x1c4)],null,null,_0x48d9c7);const _0x5721c2=await _0x4b0197[_0x2dedbb(0x1fb)](got,_0x5d3874,_0x46c3a6);if(_0x4b0197[_0x2dedbb(0x1da)](_0x5721c2,null)&&_0x4b0197[_0x2dedbb(0x1db)](_0x5721c2,undefined)&&_0x4b0197['kKzye'](_0x5721c2[_0x2dedbb(0x1e0)],0xc8)){const _0x45f6cc=JSON[_0x2dedbb(0x1f8)](_0x5721c2[_0x2dedbb(0x1d0)]);console[_0x2dedbb(0x1cf)](_0x4b0197[_0x2dedbb(0x207)]);const _0x55f268=[];_0x55f268[_0x2dedbb(0x1d1)]([_0x4b0197[_0x2dedbb(0x1e4)],_0x4b0197[_0x2dedbb(0x1fa)],_0x4b0197[_0x2dedbb(0x1e9)],_0x4b0197[_0x2dedbb(0x1f1)]]),_0x45f6cc[_0x2dedbb(0x1e8)](_0x3b0dd7=>{const _0xf16459=_0x2dedbb;_0x55f268[_0xf16459(0x1d1)]([_0x3b0dd7['name'],_0x3b0dd7[_0xf16459(0x1ec)],_0x3b0dd7[_0xf16459(0x1d9)],_0x3b0dd7[_0xf16459(0x1f9)]]);}),console[_0x2dedbb(0x1cf)](_0x4b0197[_0x2dedbb(0x1be)](table,_0x55f268)),process[_0x2dedbb(0x1c6)](0x0);}_0x4b0197[_0x2dedbb(0x1c5)](_0x5721c2[_0x2dedbb(0x1e0)],0x191)&&(console[_0x2dedbb(0x204)](_0x4b0197[_0x2dedbb(0x1d6)]),await _0x4b0197[_0x2dedbb(0x206)](sendInstrumentationEvent,_0x48d9c7,_0x4b0197[_0x2dedbb(0x1b8)],messageTypes[_0x2dedbb(0x1d4)],_0x4b0197[_0x2dedbb(0x1d5)],null,_0x48d9c7),process[_0x2dedbb(0x1c6)](0x1)),console[_0x2dedbb(0x204)](_0x2dedbb(0x1d7)+JSON[_0x2dedbb(0x1c1)](_0x5721c2)),await _0x4b0197[_0x2dedbb(0x200)](sendInstrumentationEvent,_0x48d9c7,_0x4b0197['QAkYK'],messageTypes[_0x2dedbb(0x1d4)],_0x4b0197[_0x2dedbb(0x1f3)],_0x5721c2,_0x48d9c7),process['exit'](0x1);}catch(_0x5ab8a0){console['error'](_0x2dedbb(0x1b3)+_0x5ab8a0[_0x2dedbb(0x1ba)]),await _0x4b0197['ryWYV'](sendInstrumentationEvent,_0x48d9c7,_0x4b0197[_0x2dedbb(0x1b8)],messageTypes['ERROR'],_0x4b0197['kagkj'],_0x5ab8a0,_0x48d9c7),process[_0x2dedbb(0x1c6)](0x1);}};