browserstack-node-sdk 1.46.5 → 1.46.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) 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/playwrightAutomationFramework.js +1 -1
  113. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  114. package/src/bin/v2/framework/testFramework.js +1 -1
  115. package/src/bin/v2/grpcClient.js +1 -1
  116. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  117. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  118. package/src/bin/v2/instances/trackedContext.js +1 -1
  119. package/src/bin/v2/instances/trackedInstance.js +1 -1
  120. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  121. package/src/bin/v2/modules/baseModule.js +1 -1
  122. package/src/bin/v2/modules/observabilityModule.js +1 -1
  123. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  124. package/src/bin/v2/modules/testhubModule.js +1 -1
  125. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  126. package/src/bin/v2/state/hookState.js +1 -1
  127. package/src/bin/v2/state/testFrameworkState.js +1 -1
  128. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  129. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  130. package/src/bin/vanilla-js/command.js +1 -1
  131. package/src/browserStackSdk.js +1 -1
  132. package/src/helpers/BrowserStackSetup.js +1 -1
  133. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  134. package/src/helpers/accessibility-automation/constants.js +1 -1
  135. package/src/helpers/accessibility-automation/helper.js +1 -1
  136. package/src/helpers/accessibility-automation/scripts.js +1 -1
  137. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  138. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  139. package/src/helpers/ats/constants.js +1 -1
  140. package/src/helpers/ats/helper.js +1 -1
  141. package/src/helpers/capsMapping.js +1 -1
  142. package/src/helpers/central-scanner/constants.js +1 -1
  143. package/src/helpers/central-scanner/helpers.js +1 -1
  144. package/src/helpers/classLogger.js +1 -1
  145. package/src/helpers/globals.js +1 -1
  146. package/src/helpers/helper.js +1 -1
  147. package/src/helpers/logger.js +1 -1
  148. package/src/helpers/metadata.js +1 -1
  149. package/src/helpers/patchHelper.js +1 -1
  150. package/src/helpers/patchHelpers.js +1 -1
  151. package/src/helpers/percy/Percy.js +1 -1
  152. package/src/helpers/percy/PercyBinary.js +1 -1
  153. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  154. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  155. package/src/helpers/percy/PercySDK.js +1 -1
  156. package/src/helpers/percy/index.js +1 -1
  157. package/src/helpers/percy/utils.js +1 -1
  158. package/src/helpers/performance/constants.js +1 -1
  159. package/src/helpers/performance/performance-tester.js +1 -1
  160. package/src/helpers/playwright-helper.js +1 -1
  161. package/src/helpers/processHelper.js +1 -1
  162. package/src/helpers/request-spy.js +1 -1
  163. package/src/helpers/setKeepAlive.js +1 -1
  164. package/src/helpers/test-observability/constants.js +1 -1
  165. package/src/helpers/test-observability/error-handler.js +1 -1
  166. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  167. package/src/helpers/test-observability/sessionHandler.js +1 -1
  168. package/src/helpers/test-observability/utils.js +1 -1
  169. package/src/helpers/test-orchestration/constants.js +1 -1
  170. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  171. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  172. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  173. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  174. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  175. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  176. package/src/helpers/testhub/constants.js +1 -1
  177. package/src/helpers/testhub/testhubHandler.js +1 -1
  178. package/src/helpers/testhub/utils.js +1 -1
  179. package/src/helpers/timeoutPromise.js +1 -1
  180. package/src/helpers/utilities.js +1 -1
  181. package/src/helpers/w3cMapping.js +1 -1
  182. package/src/hubAllocationMethods.js +1 -1
  183. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0xa0125f=a9_0x1b3d;function a9_0x1f05(){const _0x199fd2=['clusterAutoUpgrade','Cluster\x20','s3bucket','RHRLu','PHIaL','rCWtx','create-grid-checks-invalid-profile','\x27\x20grid\x20profile','Added\x20Turboscale\x20Uploader\x20deployment.','CLI_RUN_FINISHED','../..','efs-csi','FYXYB','error','kuBBE','KVJSx','private-ingress-nginx-controller','rAFdK','Cluster:\x20','6|7|4|5|8|3|0|1|2','serviceAccountName','eyofz','KDLbc','HKoTA','sendResourceDataToHST','gEMrJ','7EgGXDl','BMFli','30YbAGbc','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','spec','create-grid-checks-null-response','handler','cluster-autoupgrade','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','fAHvH','Hub\x20HA\x20setup\x20completed\x20successfully.','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','KZdyW','QLHyV','MtGaO','15|0|4|1|14|7|2|12|13|8|10|6|5|9|3|11','help','name','eaWuZ','kafkaPassword','qRVtx','xDfQe','default','Grid\x20profile\x20fetched\x20from\x20backend','koaGw','bitnami-redis.yaml','gridProfileId','hubVersion','Added\x20Kafka\x20deployment.','fqJDM','BVXyY','instanceType','Tfkez','description','BQVvm','ayxRV','glLtM','\x20using\x20\x27','GET','LOG','CLI\x20run\x20finished:\x20','xKjag','TjHtu','Spawning\x20the\x20grid\x20','zlYyn','fttrY','../../utils/instrumentationUtils','readFileAsync','createOtherResources','ijyvI','cluster-name','fAnOL','QBsdY','https://','options','create-grid-checks-grid-already-exists','bZtBL','mOsZQ','fRwAv','NzFmN','addListeners','EPGrp','Okbeh','../../utils/utilityMethods','IcvvP','../../config/constants','XBJQM','uAohg','stringify','concurrency','UkRNzNYCBU','FrSog','ifmZe','maxNodes','route53','delay','ijrTB','ygSrp','JdiWi','command','../../cloudproviders/utils','user','clusterAutoupgrade','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Grid\x20can\x20be\x20accessed\x20at:\x20','init-not-called','desc','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','hub-ha','4|3|2|0|1','oekQL','QEJun','Adding\x20Kafka\x20deployment...','statusCode','djjAp','setupNewCluster','MCSbz','ucLvz','AsaAS','YpssC','split','ITSVM','IupBV','bJYSZ','LEtwd','ingress-nginx','FjMsR','mkERk','bstackAccesskey','FizWt','TXrHi','../../config/logger','LQeOn','deleteCluster','WebSocket','isNewAWSCluster','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','jsMkc','dFocL','metadata','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Created\x20Hub\x20HA\x20resources','cvSEM','lGCkE','MNCdH','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','pcMMV','debug','clusterName','hubHaNameSpace','MNcfi','lCbEC','lIJny','paEdy','grid-name','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','ERROR','SHLEQ','nuWNy','YoMIM','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','SxqjO','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','body','MOYuS','yOLVk','replace','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','BDBeB','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','CLI\x20run\x20started','clusterRegion','Spawning\x20grid\x20on\x20to\x20the\x20cluster','gridName','rnGNH','yXVCZ','browserstack-secret.yaml','loxSI','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','requestId','gridProfile','AJSIn','getGridHostname','XwJCL','create','gFiwU','parse','1|3|2|4|0','newCluster','Deleting\x20the\x20CloudFormation\x20Stacks','WKNAy','UFEVF','Will\x20be\x20spawning\x20the\x20grid\x20','soopO','VPDoI','join','JmpjB','bitnami-kafka.yaml','Adding\x20Redis\x20deployment...','readNamespacedService','Found\x20VPC:\x20','toLowerCase','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','tctbI','gridProfiles','YqCXW','0|1|5|7|6|8|3|4|2','redisPassword','Namespace\x20created','bnooc','isVPCPresent','SYQGL','IhIDw','llSaa','KzbeV','cloudProvider','xUoMH','username','WpKQi','Namespace\x20Created','JDvfz','eENTO','skip-tls-cert-verify','cHTVN','setupHubHa','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','uyTww','VASNk','got','INFO','LMEhC','VCzoh','Spawning\x20Grid\x20on\x20the\x20Cluster','XOsVL','js-yaml','lKsEc','209710kWnzaO','../../utils/createk8sClient','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Subnets:\x20','jEVYD','createNamespace','dGtYW','yHMKi','builder','WSfqg','2|1|4|0|3','ZxEqQ','ZdJxr','managedBy','vOzXU','pre-spawned-invalid-vpc','bcUFP','tEpbG','create-grid-checks-auth-failed','ZGyaO','hub-ha-deployments-failed','aEtiC','grid-profile','setupAutoscaler','55276xsiixy','XugDR','alreadyPresent','rVVcR','coNmM','URqhg','1309144qgULah','string','reconnecting-websocket','turboscale-uploader.yaml','aIkhs','isClusterPresent','CRscd','lJtcg','XIpSt','wYcYu','private-grid','HvTVc','phwsL','ylwVu','Create\x20a\x20private/public\x20grid.','sendEventToBackend','khSXY','zeRvC','duLQR','GIzKu','annotations','enableHubHa','exit','loadAll','cloud-provider','rILpC','Creating\x20Hub\x20HA\x20resources','gptIA','password','JmkCQ','isPrivateGrid','bGhfb','NsLMl','privateGrid','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','\x20in\x20existing\x20cluster\x20\x27','ETWeJ','boolean','readFileSync','zXhYt','dbxmt','goJxm','shyOM','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','Cluster\x20created\x20successfully','TOFcg','dsriI','uploaderVersion','Added\x20Redis\x20deployment.','utf-8','zDgED','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','browserVersion','440234CcoSjJ','get-grid-url-non-200','dYIdH','iiRos','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','621171zvUVlE','mduNp','MMARt','template','SFvHC','8987099Fupwvw','Create\x20a\x20new\x20Automation\x20grid.','CLI_RUN_STARTED','EhlUT','Flag\x20to\x20enable\x20Hub\x20HA','JkZLl','Grid\x20spawned\x20on\x20the\x20cluster','connectionTimeout','EoiNf','uploaderImageVersion','turboscale-managed-identity-','rsFWU','stack','jyWWn','UQsjE','gsrff','info','WgitH','length','Epyd5nXbRK','get-grid-url-null-response','zLiIN','https','TOcku','0|3|1|4|2','lmdVO','createdBy','gexON','LtkDS','CdqMq','VwFJC','region','bstackUsername','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Jamnp','UCiNG','SSOiI','FPjje','Lzeyl','Browserstack','iHeOc','kafkaUploader','zmmwU','wsqGj','LtXJS','Adding\x20Secret\x20Mapping','HCjjv','VMssN','create-grid-checks-non-200','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','naUmm','ZxoyO','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','272582ydnMsD','UbAmW','xcMrh','grid','message','3bOMrKj','hubHa','JfbGj','WzEak','NBdcf','qjZpF','kXLws','GLwvb','existsSync','gNSWc','Found\x20Subnets:\x20','QlaTZ','type','warn','labels','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','bbpPE','azurefile-csi-premium','rsHGS','LyciK','vpc','YuPWT','wLTCr','ingress-nginx-controller','minNodes','argv','securityGroups','true','Skip\x20insecure\x20cert\x20verification.','OtoTm','NlYZg','tzxYi','dmUsE','uAvrs','60AqHLSE','/packages/cli/get-grid-url?gridIdentifier='];a9_0x1f05=function(){return _0x199fd2;};return a9_0x1f05();}(function(_0x2c4928,_0x46a814){const _0x4bca41=a9_0x1b3d,_0x3fbda8=_0x2c4928();while(!![]){try{const _0x2ba91e=parseInt(_0x4bca41(0x347))/0x1+-parseInt(_0x4bca41(0x1d8))/0x2+parseInt(_0x4bca41(0x1dd))/0x3*(-parseInt(_0x4bca41(0x30b))/0x4)+parseInt(_0x4bca41(0x2f3))/0x5*(parseInt(_0x4bca41(0x1ff))/0x6)+parseInt(_0x4bca41(0x21b))/0x7*(parseInt(_0x4bca41(0x311))/0x8)+-parseInt(_0x4bca41(0x34c))/0x9*(-parseInt(_0x4bca41(0x21d))/0xa)+-parseInt(_0x4bca41(0x351))/0xb;if(_0x2ba91e===_0x46a814)break;else _0x3fbda8['push'](_0x3fbda8['shift']());}catch(_0x316710){_0x3fbda8['push'](_0x3fbda8['shift']());}}}(a9_0x1f05,0x40443));function a9_0x1b3d(_0x5dd6e0,_0x164cdc){const _0x1f0592=a9_0x1f05();return a9_0x1b3d=function(_0x1b3ddb,_0x15b6ea){_0x1b3ddb=_0x1b3ddb-0x1a4;let _0x4d2027=_0x1f0592[_0x1b3ddb];return _0x4d2027;},a9_0x1b3d(_0x5dd6e0,_0x164cdc);}const fs=require('fs'),ws=require('ws'),path=require('path'),yaml=require(a9_0xa0125f(0x2f1)),ReconnectingWebSocket=require(a9_0xa0125f(0x313)),got=require(a9_0xa0125f(0x2eb)),{v4:uuidv4}=require('uuid'),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0xa0125f(0x28a)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0xa0125f(0x25a)),{getCloudProviderObject}=require(a9_0xa0125f(0x26b)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0xa0125f(0x25c)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0xa0125f(0x2f4)),{sendInstrumentationEvent}=require(a9_0xa0125f(0x249));exports[a9_0xa0125f(0x26a)]=a9_0xa0125f(0x1db),exports[a9_0xa0125f(0x271)]=a9_0xa0125f(0x352),exports[a9_0xa0125f(0x2fb)]=function(_0x2e97f7){const _0xc28ae9=a9_0xa0125f,_0x31b1b8={};_0x31b1b8[_0xc28ae9(0x2c5)]=_0xc28ae9(0x26e),_0x31b1b8[_0xc28ae9(0x1fc)]=_0xc28ae9(0x312),_0x31b1b8[_0xc28ae9(0x21c)]=_0xc28ae9(0x1d7),_0x31b1b8[_0xc28ae9(0x29f)]=_0xc28ae9(0x272),_0x31b1b8[_0xc28ae9(0x1e2)]=_0xc28ae9(0x2f5),_0x31b1b8[_0xc28ae9(0x2ff)]=_0xc28ae9(0x2e8),_0x31b1b8[_0xc28ae9(0x282)]='Create\x20a\x20private/public\x20grid.',_0x31b1b8[_0xc28ae9(0x2ac)]='Skip\x20insecure\x20cert\x20verification.',_0x31b1b8[_0xc28ae9(0x1e1)]=_0xc28ae9(0x337),_0x31b1b8[_0xc28ae9(0x2da)]=_0xc28ae9(0x1a6),_0x31b1b8[_0xc28ae9(0x245)]=_0xc28ae9(0x1d4),_0x31b1b8[_0xc28ae9(0x1be)]=_0xc28ae9(0x22b);const _0x5b0587=_0x31b1b8,_0x521239={};_0x521239[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x2c5)],_0x521239[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x12f348={};_0x12f348[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x21c)],_0x12f348['type']=_0x5b0587['tzxYi'];const _0x302152={};_0x302152[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x29f)],_0x302152[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x4faa5d={};_0x4faa5d[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x1e2)],_0x4faa5d[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x5cc0e3={};_0x5cc0e3[_0xc28ae9(0x23c)]=_0x5b0587['ZdJxr'],_0x5cc0e3[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x4246cc={};_0x4246cc[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x282)],_0x4246cc[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x7c7aba={};_0x7c7aba[_0xc28ae9(0x23c)]=_0x5b0587['yOLVk'],_0x7c7aba[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1e1)],_0x7c7aba[_0xc28ae9(0x231)]=![];const _0x298807={};_0x298807[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x2da)],_0x298807['type']=_0x5b0587['NBdcf'],_0x298807['default']=![];const _0x5d499b={};_0x5d499b[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x245)],_0x5d499b[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1e1)],_0x5d499b[_0xc28ae9(0x231)]=![];const _0x29e1c7={};return _0x29e1c7[_0xc28ae9(0x2a1)]=_0x521239,_0x29e1c7['grid-profile']=_0x12f348,_0x29e1c7[_0xc28ae9(0x24d)]=_0x302152,_0x29e1c7[_0xc28ae9(0x329)]=_0x4faa5d,_0x29e1c7['region']=_0x5cc0e3,_0x29e1c7['private-grid']=_0x4246cc,_0x29e1c7[_0xc28ae9(0x2e5)]=_0x7c7aba,_0x29e1c7[_0xc28ae9(0x273)]=_0x298807,_0x29e1c7[_0xc28ae9(0x222)]=_0x5d499b,_0x2e97f7['usage'](HELP_HEADER_MESSAGE[_0xc28ae9(0x2bf)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xc28ae9(0x251)](_0x29e1c7)[_0xc28ae9(0x22b)](_0x5b0587[_0xc28ae9(0x1be)])[_0xc28ae9(0x1f6)];},exports[a9_0xa0125f(0x221)]=async function(_0xbdb8d7){const _0x15bbf2=a9_0xa0125f,_0x194b7f={'shyOM':_0x15bbf2(0x26e),'LtXJS':_0x15bbf2(0x312),'LrYGP':_0x15bbf2(0x1d7),'bZtBL':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','dsriI':_0x15bbf2(0x2f5),'vOzXU':_0x15bbf2(0x2e8),'DAfVt':_0x15bbf2(0x31f),'KzbeV':_0x15bbf2(0x1f9),'ucLvz':_0x15bbf2(0x337),'uyTww':_0x15bbf2(0x1a6),'WJeyJ':_0x15bbf2(0x1d4),'duLQR':_0x15bbf2(0x22b),'yGyIa':_0x15bbf2(0x2c2),'HKoTA':'Enabling\x20Hub\x20HA\x20flow','CdqMq':_0x15bbf2(0x261),'bcUFP':'browserstack','dGtYW':_0x15bbf2(0x1b5),'WgitH':_0x15bbf2(0x22a),'Jamnp':function(_0x4a00be,_0x20f00d,_0x4eb862,_0x27ebca,_0x412b74,_0x3bfd69,_0x36d783,_0x1dcf0c,_0x58de60,_0x120d0d,_0x4b77cd,_0x2f50f3,_0x480ca8){return _0x4a00be(_0x20f00d,_0x4eb862,_0x27ebca,_0x412b74,_0x3bfd69,_0x36d783,_0x1dcf0c,_0x58de60,_0x120d0d,_0x4b77cd,_0x2f50f3,_0x480ca8);},'MNCdH':function(_0x3ec031,_0x22dd9e){return _0x3ec031!==_0x22dd9e;},'gptIA':function(_0x3a997d,_0x10c74e){return _0x3a997d(_0x10c74e);},'Okbeh':_0x15bbf2(0x1f8),'BDBeB':_0x15bbf2(0x231),'Dxyvu':_0x15bbf2(0x2d5),'JkZLl':_0x15bbf2(0x2b1),'eyofz':'http','xcMrh':_0x15bbf2(0x1b8),'phwsL':'premium-rwo','SSOiI':function(_0x187294,_0x24d60f){return _0x187294(_0x24d60f);},'JDvfz':_0x15bbf2(0x1ee),'fRwAv':_0x15bbf2(0x1ea),'UCiNG':function(_0x2fc253,_0x5abd70){return _0x2fc253===_0x5abd70;},'ifmZe':'error','fAnOL':_0x15bbf2(0x226),'SHLEQ':function(_0x5863eb,_0x4c17d3){return _0x5863eb(_0x4c17d3);},'JfbGj':function(_0x215aa6){return _0x215aa6();},'koaGw':function(_0x5b9f85,_0xbb5e95){return _0x5b9f85===_0xbb5e95;},'rILpC':_0x15bbf2(0x27b),'dGWfv':_0x15bbf2(0x244),'zLiIN':_0x15bbf2(0x333),'ijyvI':function(_0x596c0b,_0x463d28,_0x5af282,_0x980d5,_0x5b42f2,_0x462a08,_0x19e5ca){return _0x596c0b(_0x463d28,_0x5af282,_0x980d5,_0x5b42f2,_0x462a08,_0x19e5ca);},'XOsVL':'create-grid-called','VwFJC':_0x15bbf2(0x270),'lCbEC':function(_0x20507f){return _0x20507f();},'tVtgt':'<UsernamePlaceholder>','TXrHi':'<PasswordPlaceholder>','gNSWc':'Adding\x20Websocket\x20listeners','bnooc':'Fenly','djjAp':function(_0xf0ff2d,_0x509072){return _0xf0ff2d===_0x509072;},'aEtiC':_0x15bbf2(0x1fb),'WzEak':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','cvSEM':function(_0x15d27d,_0x272f88,_0x1c0896,_0x234f82,_0x5502f3,_0x476ef8,_0x4ded40,_0x6ebdf9){return _0x15d27d(_0x272f88,_0x1c0896,_0x234f82,_0x5502f3,_0x476ef8,_0x4ded40,_0x6ebdf9);},'SbeGr':'prespawned-cluster-args-not-passed','uAvrs':_0x15bbf2(0x23d),'gHDjJ':_0x15bbf2(0x345),'FjMsR':'non-aws-azure-cluster','jEVYD':function(_0x3da927,_0x108ea4){return _0x3da927===_0x108ea4;},'KDLbc':function(_0x4ba6cd,_0x43a928){return _0x4ba6cd!==_0x43a928;},'AsaAS':_0x15bbf2(0x310),'USLFI':_0x15bbf2(0x2ea),'AJSIn':'ZzTgY','kuBBE':function(_0x1b86fa,_0x575a44){return _0x1b86fa!==_0x575a44;},'tEpbG':_0x15bbf2(0x1ca),'IULua':_0x15bbf2(0x1e4),'YpssC':_0x15bbf2(0x241),'rCWtx':function(_0xd51f0c,_0x2a7f25,_0x49cb19){return _0xd51f0c(_0x2a7f25,_0x49cb19);},'JmpjB':_0x15bbf2(0x280),'OfgcR':_0x15bbf2(0x331),'iYYpi':_0x15bbf2(0x210),'LQeOn':function(_0x24aa20,_0x46b600,_0x14586e){return _0x24aa20(_0x46b600,_0x14586e);},'pcMMV':'DQFAX','bbpPE':'RuBOS','QEJun':_0x15bbf2(0x293),'LyciK':_0x15bbf2(0x220),'UbAmW':_0x15bbf2(0x227),'gsrff':_0x15bbf2(0x1ec),'fAHvH':_0x15bbf2(0x305),'YqCXW':function(_0x335158,_0xef541c){return _0x335158===_0xef541c;},'XIpSt':'iCCNN','rsHGS':_0x15bbf2(0x30f),'WpKQi':_0x15bbf2(0x1d2),'VCzoh':_0x15bbf2(0x232),'rnGNH':'JgAwJ','gexON':_0x15bbf2(0x252),'lGCkE':_0x15bbf2(0x330),'aIkhs':'slSYD','nuWNy':'TpmyL','SxqjO':'AFGkZ','OtoTm':_0x15bbf2(0x1ba),'loxSI':function(_0x2d9fd7,_0x451cc3){return _0x2d9fd7===_0x451cc3;},'dYIdH':'wbSYv','zXhYt':function(_0x394e2c,_0x1587e9){return _0x394e2c===_0x1587e9;},'DrCPa':function(_0x2f2e83,_0x483262){return _0x2f2e83!==_0x483262;},'uAohg':'WCrve','rVVcR':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','tctbI':function(_0x585a18,_0x246115,_0x957282,_0x3d3fa9,_0x49acf5,_0x51e1b8,_0x1df7f8,_0x32dd3f){return _0x585a18(_0x246115,_0x957282,_0x3d3fa9,_0x49acf5,_0x51e1b8,_0x1df7f8,_0x32dd3f);},'MOYuS':_0x15bbf2(0x207),'rAFdK':_0x15bbf2(0x230),'HCjjv':function(_0x11034e,_0x1e0f88){return _0x11034e===_0x1e0f88;},'gEMrJ':_0x15bbf2(0x2db),'CRscd':function(_0x26f77a,_0x3f86bb){return _0x26f77a!==_0x3f86bb;},'zDgED':_0x15bbf2(0x2fe),'xUoMH':'tXSXo','dFocL':function(_0x352ca4,_0x339f95,_0x223b37,_0x423b2d,_0x60954b,_0x4d5bdb,_0x17bb08,_0x3ead61,_0x1c469e,_0x2e32d2,_0x35c4df,_0x5c7e00,_0x5d3c25){return _0x352ca4(_0x339f95,_0x223b37,_0x423b2d,_0x60954b,_0x4d5bdb,_0x17bb08,_0x3ead61,_0x1c469e,_0x2e32d2,_0x35c4df,_0x5c7e00,_0x5d3c25);},'oekQL':'mfxOv','ZxoyO':function(_0x789f1d,_0x3ccbba){return _0x789f1d!==_0x3ccbba;},'wLTCr':_0x15bbf2(0x205),'JdiWi':function(_0x349c9e,_0x422ce6){return _0x349c9e===_0x422ce6;},'mduNp':_0x15bbf2(0x22d),'xnAXW':function(_0x4b6bb9,_0x1f4dd4){return _0x4b6bb9===_0x1f4dd4;},'WSfqg':_0x15bbf2(0x2e4),'LDKWa':function(_0x2ff380,_0x226547){return _0x2ff380(_0x226547);},'yXVCZ':_0x15bbf2(0x228),'bsyIR':_0x15bbf2(0x25d),'soopO':_0x15bbf2(0x214),'UQsjE':function(_0x486812,_0x11e1aa,_0x56f6e7,_0x482170,_0x5573d4,_0x19d1f6,_0x30cb2f){return _0x486812(_0x11e1aa,_0x56f6e7,_0x482170,_0x5573d4,_0x19d1f6,_0x30cb2f);},'LEtwd':_0x15bbf2(0x1ad),'zmmwU':function(_0x4e5279,_0x36ca16){return _0x4e5279===_0x36ca16;},'IcvvP':function(_0x8a3651,_0x1ab72b){return _0x8a3651===_0x1ab72b;},'FPjje':_0x15bbf2(0x2e6),'yQEqV':function(_0x51020f,_0x4c68b3){return _0x51020f===_0x4c68b3;},'VMssN':_0x15bbf2(0x324),'HvTVc':_0x15bbf2(0x2a9),'gFiwU':function(_0x54a1f1,_0x5bfe4a){return _0x54a1f1!=_0x5bfe4a;},'HugzQ':function(_0x46d485,_0xec75fe){return _0x46d485>_0xec75fe;},'VPDoI':function(_0x40ea97,_0x2f1759){return _0x40ea97===_0x2f1759;},'tVckm':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','kXLws':function(_0x15171c,_0x3e230b,_0x961bd9,_0x3b877f,_0x5663cb,_0x4509e0,_0x1dbbdc,_0x3b64d8){return _0x15171c(_0x3e230b,_0x961bd9,_0x3b877f,_0x5663cb,_0x4509e0,_0x1dbbdc,_0x3b64d8);},'YoMIM':'pre-spawned-subnets-not-selected','pmsEk':_0x15bbf2(0x223),'NzFmN':_0x15bbf2(0x302),'FizWt':function(_0x4999b7,_0x585341,_0x332e1e,_0x47a5fd,_0x1cecc2,_0x1f1050,_0x310f75,_0x40b5f6){return _0x4999b7(_0x585341,_0x332e1e,_0x47a5fd,_0x1cecc2,_0x1f1050,_0x310f75,_0x40b5f6);},'XwJCL':'pre-spawned-invalid-subnets','TOFcg':_0x15bbf2(0x274),'ayxRV':_0x15bbf2(0x33e),'ylwVu':_0x15bbf2(0x1d3),'iiRos':function(_0x17452d,_0x284cf4,_0x287924){return _0x17452d(_0x284cf4,_0x287924);},'wfRAx':function(_0x299707,_0x4dd2bb){return _0x299707===_0x4dd2bb;},'MtGaO':function(_0x3e8c73,_0x3570a5){return _0x3e8c73===_0x3570a5;},'IupBV':_0x15bbf2(0x32b),'MNcfi':function(_0x5442d1,_0x39388f,_0x693289){return _0x5442d1(_0x39388f,_0x693289);},'FYXYB':_0x15bbf2(0x1cf),'mOsZQ':_0x15bbf2(0x20b),'EPGrp':'templates','XugDR':'hubharesources','kFgrz':_0x15bbf2(0x2b7),'ijrTB':_0x15bbf2(0x343),'fqJDM':function(_0x2c5dbe,_0x4d6525){return _0x2c5dbe(_0x4d6525);},'lJtcg':function(_0x19a473,_0x46e348){return _0x19a473(_0x46e348);},'ikFAq':function(_0x55c98d,_0xa3767f){return _0x55c98d(_0xa3767f);},'Lzeyl':function(_0x1406d6,_0x53831d,_0x5e29f4){return _0x1406d6(_0x53831d,_0x5e29f4);},'UFEVF':'Added\x20Secret\x20Mapping','goJxm':_0x15bbf2(0x20c),'TOcku':function(_0x3a6720,_0x289d46){return _0x3a6720===_0x289d46;},'tgzJM':function(_0x4995c4,_0x12e307){return _0x4995c4===_0x12e307;},'qRVtx':_0x15bbf2(0x2cd),'dbxmt':_0x15bbf2(0x234),'BmBBY':_0x15bbf2(0x342),'dmUsE':_0x15bbf2(0x277),'khSXY':_0x15bbf2(0x2cc),'MMARt':function(_0x4cc192,_0x6a8239,_0x23b43b){return _0x4cc192(_0x6a8239,_0x23b43b);},'SFvHC':_0x15bbf2(0x237),'mkERk':'Adding\x20Turboscale\x20Uploader\x20deployment...','Gbyza':_0x15bbf2(0x314),'FrSog':_0x15bbf2(0x209),'YuPWT':_0x15bbf2(0x294),'wYcYu':_0x15bbf2(0x225),'BVXyY':_0x15bbf2(0x2fd),'jsMkc':_0x15bbf2(0x307),'tRzYQ':function(_0x4147e8,_0x5c2af9){return _0x4147e8(_0x5c2af9);},'glLtM':'Creating\x20namespace','Tfkez':function(_0x1bd8a4,_0x1bdb14){return _0x1bd8a4!==_0x1bdb14;},'paEdy':'Browserstack','JmkCQ':_0x15bbf2(0x2e2),'QlaTZ':_0x15bbf2(0x2d7),'zeRvC':_0x15bbf2(0x2b3),'yHMKi':_0x15bbf2(0x2ef),'llSaa':function(_0x3d6ef3,_0x18f96e,_0x3b59fb,_0x2eed51,_0x22b577,_0x55d4e2,_0x28828f,_0x2adff6,_0x2d0201,_0xbefb,_0x494746){return _0x3d6ef3(_0x18f96e,_0x3b59fb,_0x2eed51,_0x22b577,_0x55d4e2,_0x28828f,_0x2adff6,_0x2d0201,_0xbefb,_0x494746);},'fttrY':_0x15bbf2(0x1a8),'QHAID':_0x15bbf2(0x2a7),'jyWWn':function(_0x1911f7,_0x10ee8e,_0xc795f1,_0x10c39a,_0x4ce32b){return _0x1911f7(_0x10ee8e,_0xc795f1,_0x10c39a,_0x4ce32b);},'hCzjl':_0x15bbf2(0x211),'zlYyn':_0x15bbf2(0x1f4),'wsqGj':_0x15bbf2(0x284),'mxxOn':function(_0x3a61ba,_0x369e95,_0x1ab154){return _0x3a61ba(_0x369e95,_0x1ab154);},'RGoDZ':function(_0x59e5d7,_0x59ec1c){return _0x59e5d7===_0x59ec1c;},'QBsdY':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','naUmm':function(_0x53cdfa,_0x48dd50,_0x2f8f3a,_0x79582f,_0x26e3fe,_0x263fa3,_0x56acb4,_0xfb9b56){return _0x53cdfa(_0x48dd50,_0x2f8f3a,_0x79582f,_0x26e3fe,_0x263fa3,_0x56acb4,_0xfb9b56);},'lmdVO':_0x15bbf2(0x1b6),'lKsEc':function(_0x4b4647,_0xba5ab1){return _0x4b4647===_0xba5ab1;},'ygSrp':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','RHRLu':'get-grid-url-auth-failed','CtTex':function(_0x3653f6,_0xe90893){return _0x3653f6!==_0xe90893;},'EhlUT':_0x15bbf2(0x348),'ZGyaO':function(_0x3fca1b,_0x186609){return _0x3fca1b===_0x186609;},'ETWeJ':_0x15bbf2(0x2c4),'LMEhC':function(_0x187e9a,_0x143049,_0xdb3879,_0x400e4e,_0x104c25,_0xfdeb27){return _0x187e9a(_0x143049,_0xdb3879,_0x400e4e,_0x104c25,_0xfdeb27);},'EoiNf':'grid-spawning-failed'};let _0x27118f=![],_0x5aa0e7=![],_0xbb7bf,_0x5e5e06,_0x4810ac,_0x5c8c30,_0x2d9ce8,_0x4d4a1c,_0x8fbea0,_0x1be57d,_0x56073f,_0x469f60,_0x10c84e,_0x431f2c,_0x208b4b,_0x54dc73,_0x206b5d=0x1,_0x29c944=0xe;try{global_registry[_0x15bbf2(0x2ba)]=_0x194b7f[_0x15bbf2(0x1df)](uuidv4),global_registry[_0x15bbf2(0x32f)]=![];if(!fs[_0x15bbf2(0x1e5)](_0x194b7f[_0x15bbf2(0x1df)](getCredentialsPath))){if(_0x194b7f[_0x15bbf2(0x233)](_0x194b7f[_0x15bbf2(0x32a)],_0x194b7f['dGWfv'])){const _0x5333a3={};_0x5333a3[_0x15bbf2(0x23c)]=_0x194b7f[_0x15bbf2(0x33c)],_0x5333a3[_0x15bbf2(0x1e9)]=_0x194b7f['LtXJS'];const _0x2a4c92={};_0x2a4c92[_0x15bbf2(0x23c)]=_0x194b7f['LrYGP'],_0x2a4c92[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x1ce)];const _0x383d86={};_0x383d86['description']=_0x194b7f[_0x15bbf2(0x253)],_0x383d86[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x1ce)];const _0xef2249={};_0xef2249[_0x15bbf2(0x23c)]=_0x194b7f[_0x15bbf2(0x340)],_0xef2249[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x1ce)];const _0xbf786={};_0xbf786['description']=_0x194b7f[_0x15bbf2(0x301)],_0xbf786[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x1ce)];const _0x251520={};_0x251520[_0x15bbf2(0x23c)]=_0x194b7f['DAfVt'],_0x251520[_0x15bbf2(0x1e9)]=_0x194b7f['LtXJS'];const _0x15ca11={};_0x15ca11[_0x15bbf2(0x23c)]=_0x194b7f[_0x15bbf2(0x2dd)],_0x15ca11[_0x15bbf2(0x1e9)]=_0x194b7f['ucLvz'],_0x15ca11[_0x15bbf2(0x231)]=![];const _0x21b908={};_0x21b908[_0x15bbf2(0x23c)]=_0x194b7f[_0x15bbf2(0x2e9)],_0x21b908[_0x15bbf2(0x1e9)]=_0x194b7f['ucLvz'],_0x21b908['default']=![];const _0x5b24a1={};_0x5b24a1[_0x15bbf2(0x23c)]=_0x194b7f['WJeyJ'],_0x5b24a1[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x27c)],_0x5b24a1[_0x15bbf2(0x231)]=![];const _0x2c94a0={};return _0x2c94a0[_0x15bbf2(0x2a1)]=_0x5333a3,_0x2c94a0[_0x15bbf2(0x309)]=_0x2a4c92,_0x2c94a0['cluster-name']=_0x383d86,_0x2c94a0[_0x15bbf2(0x329)]=_0xef2249,_0x2c94a0[_0x15bbf2(0x1c1)]=_0xbf786,_0x2c94a0[_0x15bbf2(0x31b)]=_0x251520,_0x2c94a0[_0x15bbf2(0x2e5)]=_0x15ca11,_0x2c94a0[_0x15bbf2(0x273)]=_0x21b908,_0x2c94a0[_0x15bbf2(0x222)]=_0x5b24a1,_0x2dee59['usage'](_0x4d15f2['create'])['epilogue'](_0x264e4e)[_0x15bbf2(0x251)](_0x2c94a0)[_0x15bbf2(0x22b)](_0x194b7f[_0x15bbf2(0x323)])['argv'];}else console[_0x15bbf2(0x20e)](_0x194b7f[_0x15bbf2(0x1b7)]),await _0x194b7f['ijyvI'](sendInstrumentationEvent,_0xbdb8d7,_0x194b7f['XOsVL'],messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x1c0)],null,_0xbdb8d7),process['exit'](0x1);}await _0x194b7f[_0x15bbf2(0x24c)](sendInstrumentationEvent,_0xbdb8d7,_0x194b7f[_0x15bbf2(0x2f0)],messageTypes[_0x15bbf2(0x2ec)],null,null,_0xbdb8d7);const _0x558f6f=JSON[_0x15bbf2(0x2c1)](fs[_0x15bbf2(0x338)](_0x194b7f[_0x15bbf2(0x29e)](getCredentialsPath)));global_registry[_0x15bbf2(0x1c2)]=_0x558f6f[_0x15bbf2(0x1c9)][_0x15bbf2(0x2e0)],global_registry['bstackAccesskey']=_0x558f6f[_0x15bbf2(0x1c9)][_0x15bbf2(0x32d)];const _0xe41a8b=WS_ENDPOINT['replace'](_0x194b7f['tVtgt'],_0x558f6f[_0x15bbf2(0x1c9)][_0x15bbf2(0x2e0)])['replace'](_0x194b7f[_0x15bbf2(0x289)],_0x558f6f[_0x15bbf2(0x1c9)][_0x15bbf2(0x32d)]),_0x4b7816={};_0x4b7816[_0x15bbf2(0x28d)]=ws,_0x4b7816[_0x15bbf2(0x1a9)]=0x36ee80,_0x431f2c=new ReconnectingWebSocket(_0xe41a8b,[],_0x4b7816),logger[_0x15bbf2(0x29a)](_0x194b7f[_0x15bbf2(0x1e6)]),webSocketUtils[_0x15bbf2(0x257)](_0x431f2c,_0xbdb8d7[_0x15bbf2(0x26c)],_0xbdb8d7[_0x15bbf2(0x32d)]);const _0x2824b6=_0xbdb8d7[_0x15bbf2(0x2b4)]||DEFAULT_GRID_NAME;if(_0xbdb8d7[_0x15bbf2(0x29b)]||_0xbdb8d7[_0x15bbf2(0x2de)]||_0xbdb8d7[_0x15bbf2(0x1c1)]){if(_0x194b7f['MNCdH'](_0x194b7f[_0x15bbf2(0x2d8)],_0x194b7f[_0x15bbf2(0x2d8)]))_0xf0ddb7[_0x15bbf2(0x1b2)](_0x15bbf2(0x213)+_0x452075['clusterName']+_0x15bbf2(0x2b0)),_0x1dd776=![],_0x5a92ba=!![];else{!(_0xbdb8d7[_0x15bbf2(0x29b)]&&_0xbdb8d7[_0x15bbf2(0x2de)]&&_0xbdb8d7[_0x15bbf2(0x1c1)])&&(_0x194b7f[_0x15bbf2(0x279)](_0x194b7f['aEtiC'],_0x194b7f[_0x15bbf2(0x308)])?(_0xbb7bf=_0x194b7f[_0x15bbf2(0x1e0)],await _0x194b7f[_0x15bbf2(0x295)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f['SbeGr'],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):_0x265ff9[_0x15bbf2(0x32f)]=!![]);![AWS,AZURE,GCP]['includes'](_0xbdb8d7[_0x15bbf2(0x2de)][_0x15bbf2(0x2d0)]())&&(_0x194b7f[_0x15bbf2(0x279)](_0x194b7f[_0x15bbf2(0x1fe)],_0x194b7f[_0x15bbf2(0x1fe)])?(_0xbb7bf=_0x194b7f['gHDjJ'],await _0x194b7f[_0x15bbf2(0x295)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x285)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process['exit'](0x1)):_0x408f86['gridProfile']=_0xa20ed5[_0x15bbf2(0x2bb)]);if(_0xbdb8d7[_0x15bbf2(0x332)]&&_0x194b7f[_0x15bbf2(0x2f7)](_0xbdb8d7[_0x15bbf2(0x332)][_0x15bbf2(0x2d0)](),_0x194b7f[_0x15bbf2(0x259)])){if(_0x194b7f['KDLbc'](_0x194b7f[_0x15bbf2(0x27d)],_0x194b7f['AsaAS'])){const _0xac8954=_0x194b7f['yGyIa'][_0x15bbf2(0x27f)]('|');let _0x2dbf89=0x0;while(!![]){switch(_0xac8954[_0x2dbf89++]){case'0':_0x26dfdc[_0x15bbf2(0x326)]=!![];continue;case'1':_0x127176[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x218)]);continue;case'2':_0x354bf6[_0x15bbf2(0x2d6)]=_0x194b7f[_0x15bbf2(0x1bf)];continue;case'3':_0x4b0f0c[_0x15bbf2(0x29c)]=_0x194b7f['bcUFP'];continue;case'4':_0x5dba88[_0x15bbf2(0x22e)]=_0x194b7f[_0x15bbf2(0x2f9)];continue;}break;}}else global_registry[_0x15bbf2(0x32f)]=!![];}global_registry[_0x15bbf2(0x2de)]=_0xbdb8d7[_0x15bbf2(0x2de)],global_registry[_0x15bbf2(0x2b2)]=_0xbdb8d7['region'],global_registry[_0x15bbf2(0x29b)]=_0xbdb8d7[_0x15bbf2(0x29b)];const _0x306368=await _0x194b7f[_0x15bbf2(0x24c)](getCloudProviderObject,_0xbdb8d7[_0x15bbf2(0x2de)],_0xbdb8d7[_0x15bbf2(0x29b)],_0x2824b6,_0x431f2c,webSocketUtils,_0xbdb8d7),_0x49004d=await _0x306368[_0x15bbf2(0x316)]();if(!_0x49004d){if(_0x194b7f[_0x15bbf2(0x217)](_0x194b7f['USLFI'],_0x194b7f[_0x15bbf2(0x2bc)]))logger['info'](_0x15bbf2(0x213)+_0xbdb8d7[_0x15bbf2(0x29b)]+_0x15bbf2(0x2b0)),_0x27118f=![],_0x5aa0e7=!![];else{const _0x1deb81=_0x194b7f[_0x15bbf2(0x1b3)][_0x15bbf2(0x27f)]('|');let _0x509a07=0x0;while(!![]){switch(_0x1deb81[_0x509a07++]){case'0':_0x25ae31[_0x15bbf2(0x1b2)](_0x436395);continue;case'1':_0x348ada=_0xd22d02[_0x15bbf2(0x260)];continue;case'2':_0x4969b9=null;continue;case'3':_0x194b7f[_0x15bbf2(0x1c4)](_0x4a4c42,_0x46b2e6,_0x1aa9ba,_0x5052f6,_0x12d83f,_0x33f02e,_0x31c25e,_0x51d477,_0x4f15a2,_0xf0318f,_0xa7dc0,_0x3bd46d,_0x5ca64f[_0x15bbf2(0x26d)]);continue;case'4':const _0x35beba={};_0x35beba[_0x15bbf2(0x1e9)]=_0x48614b[_0x15bbf2(0x242)],_0x35beba[_0x15bbf2(0x1dc)]=_0x43df38,_0xce40bd[_0x15bbf2(0x320)](_0xa0ad25,_0x35beba);continue;case'5':_0x1151cf=_0x533320[_0x15bbf2(0x346)];continue;case'6':_0x3ae2fc=_0x7372ba['hubVersion'];continue;case'7':_0x2db562=null;continue;case'8':_0x58c374=_0x238396[_0x15bbf2(0x1f5)];continue;case'9':_0x194b7f[_0x15bbf2(0x297)](_0x141e87['privateGrid'],_0x4d541e)&&_0x501b95[_0x15bbf2(0x332)]&&(_0x5e7b99[_0x15bbf2(0x32f)]=!![]);continue;case'10':_0x1a3a67=_0x5a96ab['maxNodes'];continue;case'11':_0x2fba58['enableHubHa']&&_0x194b7f[_0x15bbf2(0x32c)](_0x1c2386,_0x1b3aa2['kafkaUploader']);continue;case'12':_0x51ecf7=null;continue;case'13':_0xc60f7f=_0x577ed5['s3bucket'];continue;case'14':_0x1f00cb=_0x36ed7a[_0x15bbf2(0x23a)];continue;case'15':_0x2c8f04=_0x15bbf2(0x2a2)+_0x191953;continue;}break;}}}else _0x194b7f['kuBBE'](_0x194b7f[_0x15bbf2(0x304)],_0x194b7f[_0x15bbf2(0x304)])?_0x20c476=!![]:_0x27118f=!![];_0x4810ac=_0xbdb8d7[_0x15bbf2(0x29b)],_0x5e5e06=_0xbdb8d7[_0x15bbf2(0x2de)][_0x15bbf2(0x2d0)](),_0x5c8c30=_0xbdb8d7[_0x15bbf2(0x1c1)];}}else{if(_0xbdb8d7[_0x15bbf2(0x2bb)]){if(_0x194b7f['kuBBE'](_0x194b7f['IULua'],_0x194b7f['IULua'])){const _0x4e65f5={'azure.workload.identity/use':_0x194b7f['Okbeh'],..._0x33b0ba[0x0][_0x15bbf2(0x21f)][_0x15bbf2(0x34f)][_0x15bbf2(0x292)][_0x15bbf2(0x1eb)]};_0x4e6f16[0x0][_0x15bbf2(0x21f)][_0x15bbf2(0x34f)]['metadata'][_0x15bbf2(0x1eb)]=_0x4e65f5,_0x305806[0x0]['spec'][_0x15bbf2(0x34f)][_0x15bbf2(0x21f)][_0x15bbf2(0x215)]=_0x194b7f[_0x15bbf2(0x2af)];}else global_registry['gridProfile']=_0xbdb8d7[_0x15bbf2(0x2bb)];}}global_registry[_0x15bbf2(0x2b4)]=_0xbdb8d7['gridName'];const _0x5aaba1={'method':_0x194b7f[_0x15bbf2(0x27e)],'headers':_0x194b7f[_0x15bbf2(0x206)](getAuthHeader,_0x558f6f['Browserstack'][_0x15bbf2(0x2e0)],_0x558f6f[_0x15bbf2(0x1c9)]['password']),'throwHttpErrors':![]},_0x175f37={};_0x175f37['gridName']=_0x2824b6;const _0x2f3f26=_0x175f37;_0x5aa0e7&&(_0x194b7f[_0x15bbf2(0x217)](_0x194b7f[_0x15bbf2(0x2cb)],_0x194b7f[_0x15bbf2(0x2cb)])?_0x4aece9[_0x15bbf2(0x32f)]=!![]:(_0x2f3f26[_0x15bbf2(0x1c1)]=_0x5c8c30,_0x2f3f26['cloudProvider']=_0x5e5e06,_0x2f3f26[_0x15bbf2(0x2c3)]=!![],_0x2f3f26[_0x15bbf2(0x201)]=_0xbdb8d7['clusterAutoupgrade']));if(_0xbdb8d7[_0x15bbf2(0x26d)]){if(_0x194b7f[_0x15bbf2(0x20f)](_0x194b7f['OfgcR'],_0x194b7f['iYYpi']))logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x24e)]);else{const _0x1b5f31=_0x194b7f['Dxyvu'][_0x15bbf2(0x27f)]('|');let _0x3702e1=0x0;while(!![]){switch(_0x1b5f31[_0x3702e1++]){case'0':const _0x122c95={};_0x122c95[_0x15bbf2(0x1e9)]=_0x47c3d4[_0x15bbf2(0x1a4)],_0x122c95['message']=_0x194b7f[_0x15bbf2(0x1a7)],_0x51db4c[_0x15bbf2(0x320)](_0x130675,_0x122c95);continue;case'1':_0x64efad=_0x15bbf2(0x246)+_0x327764+_0x15bbf2(0x335)+_0x5138cb+'\x27';continue;case'2':_0x45280b['browserVersion']=_0x55c8fd[_0x15bbf2(0x346)];continue;case'3':_0x2dec4a[_0x15bbf2(0x29b)]=_0xf5d01e;continue;case'4':_0x4b1a85[_0x15bbf2(0x236)]=_0x4ce16f[_0x15bbf2(0x236)];continue;case'5':_0x350cac[_0x15bbf2(0x1b2)](_0x1b5e8d);continue;case'6':_0x40b01e[_0x15bbf2(0x2de)]=_0x157ee3;continue;case'7':const _0x5bb328={};_0x5bb328['type']=_0x3092e0['LOG'],_0x5bb328['message']=_0x7f1768,_0xefa9bc[_0x15bbf2(0x320)](_0xf696d5,_0x5bb328);continue;case'8':_0x315468[_0x15bbf2(0x2b2)]=_0x3ce17e;continue;}break;}}}const _0x4da446='https://'+AG_API_URL+'/packages/cli/create-grid-checks',_0x4bc15d={'searchParams':_0x2f3f26,'throwHttpErrors':![],..._0x5aaba1},_0x1154f7=_0x4bc15d,_0x40c55d=await _0x194b7f[_0x15bbf2(0x28b)](got,_0x4da446,_0x1154f7);(_0x194b7f['jEVYD'](_0x40c55d,null)||_0x194b7f[_0x15bbf2(0x1c5)](_0x40c55d,undefined))&&(_0x194b7f[_0x15bbf2(0x297)](_0x194b7f[_0x15bbf2(0x299)],_0x194b7f[_0x15bbf2(0x1ed)])?(_0xbb7bf=_0x194b7f[_0x15bbf2(0x276)],await _0x194b7f[_0x15bbf2(0x295)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x1f0)],_0x194b7f['ifmZe']),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):_0x3f338d[_0x15bbf2(0x32f)]=!![]);_0x194b7f['koaGw'](_0x40c55d['statusCode'],0x191)&&(_0x194b7f[_0x15bbf2(0x217)](_0x194b7f[_0x15bbf2(0x1d9)],_0x194b7f[_0x15bbf2(0x1d9)])?_0x5a46ee=_0x194b7f['eyofz']:(_0xbb7bf=_0x194b7f[_0x15bbf2(0x1b1)],await _0x194b7f[_0x15bbf2(0x295)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x224)],_0x194b7f[_0x15bbf2(0x263)]),logger['error'](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)));_0x194b7f[_0x15bbf2(0x20f)](_0x40c55d[_0x15bbf2(0x278)],0xc8)&&(_0x194b7f[_0x15bbf2(0x2d4)](_0x194b7f[_0x15bbf2(0x319)],_0x194b7f[_0x15bbf2(0x1ef)])?_0x345344[_0x15bbf2(0x20e)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x17d976+'\x20\x0a'+_0x2f024d['stringify'](_0x497cf0[_0x15bbf2(0x1ae)])):(_0xbb7bf='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x15bbf2(0x25f)](_0x40c55d[_0x15bbf2(0x2aa)]),await _0x194b7f['cvSEM'](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x2e1)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)));const _0x36abfa=JSON[_0x15bbf2(0x2c1)](_0x40c55d['body']),_0x35d8cb={};_0x35d8cb[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x1a4)],_0x35d8cb[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x1a7)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x35d8cb);const _0x29466a={};_0x29466a[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x29466a[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x2ee)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x29466a);_0x36abfa[_0x15bbf2(0x30d)]&&(_0x194b7f['YqCXW'](_0x194b7f[_0x15bbf2(0x2b5)],_0x194b7f[_0x15bbf2(0x2b5)])?(_0xbb7bf=_0x15bbf2(0x334)+_0x2824b6+_0x15bbf2(0x1c3),await _0x194b7f['cvSEM'](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x1bd)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):_0x390268=null);const _0x49bc9b=_0x36abfa[_0x15bbf2(0x2d3)];let _0x2846d9=_0x49bc9b[_0x36abfa['defaultGridProfile']];_0xbdb8d7[_0x15bbf2(0x2bb)]&&(_0x194b7f['kuBBE'](_0x194b7f[_0x15bbf2(0x296)],_0x194b7f[_0x15bbf2(0x315)])?_0x2846d9=_0x49bc9b[_0xbdb8d7[_0x15bbf2(0x2bb)]]:(_0x547d18=_0x5755bb['route53'],_0x15d986=_0x194b7f[_0x15bbf2(0x1da)]));global_registry['enableHubHa']=![];if(_0xbdb8d7[_0x15bbf2(0x1de)]){if(_0x194b7f[_0x15bbf2(0x20f)](_0x194b7f[_0x15bbf2(0x2a5)],_0x194b7f[_0x15bbf2(0x2a8)])){const _0x194022=_0x194b7f[_0x15bbf2(0x1fa)][_0x15bbf2(0x27f)]('|');let _0x22de64=0x0;while(!![]){switch(_0x194022[_0x22de64++]){case'0':logger['info'](_0x194b7f['HKoTA']);continue;case'1':global_registry[_0x15bbf2(0x2d6)]=_0x194b7f[_0x15bbf2(0x1bf)];continue;case'2':global_registry[_0x15bbf2(0x326)]=!![];continue;case'3':global_registry['hubHaNameSpace']=_0x194b7f[_0x15bbf2(0x303)];continue;case'4':global_registry[_0x15bbf2(0x22e)]=_0x194b7f[_0x15bbf2(0x2f9)];continue;}break;}}else _0x5956af=null;}if(_0x194b7f['jEVYD'](_0x27118f,![])&&_0x194b7f[_0x15bbf2(0x2b8)](_0x5aa0e7,![])){if(_0x194b7f[_0x15bbf2(0x233)](_0x194b7f[_0x15bbf2(0x349)],_0x194b7f[_0x15bbf2(0x349)])){_0x194b7f[_0x15bbf2(0x339)](_0x2846d9,undefined)&&(_0x194b7f['DrCPa'](_0x194b7f[_0x15bbf2(0x25e)],_0x194b7f[_0x15bbf2(0x25e)])?_0x53d17d=_0x194b7f[_0x15bbf2(0x31d)]:(_0xbb7bf=_0x194b7f[_0x15bbf2(0x30e)],await _0x194b7f[_0x15bbf2(0x2d2)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x2ab)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)));global_registry[_0x15bbf2(0x235)]=_0x2846d9['id'],_0xbb7bf=_0x15bbf2(0x2c7)+_0x2824b6+_0x15bbf2(0x240)+_0x2846d9[_0x15bbf2(0x22c)]+_0x15bbf2(0x208),logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0x549bdc={};_0x549bdc[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x549bdc[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x549bdc),_0x5e5e06=_0x2846d9['cloudProvider'],_0x4810ac=_0x2846d9['clusterName'],_0x5c8c30=_0x2846d9[_0x15bbf2(0x1c1)],_0x2d9ce8=_0x2846d9[_0x15bbf2(0x260)],_0x4d4a1c=_0x2846d9[_0x15bbf2(0x23a)],_0x8fbea0=_0x2846d9[_0x15bbf2(0x1f1)],_0x1be57d=_0x2846d9[_0x15bbf2(0x1f7)],_0x56073f=_0x2846d9['subnets'],_0x469f60=_0x2846d9['s3bucket'],_0x206b5d=_0x2846d9['minNodes'],_0x29c944=_0x2846d9[_0x15bbf2(0x264)],_0x208b4b=_0x36abfa[_0x15bbf2(0x236)],_0x54dc73=_0x36abfa['browserVersion'],_0x8fbea0&&_0x194b7f[_0x15bbf2(0x233)](_0x8fbea0[_0x15bbf2(0x1b4)],0x0)&&(_0x194b7f[_0x15bbf2(0x2f7)](_0x194b7f[_0x15bbf2(0x212)],_0x194b7f[_0x15bbf2(0x212)])?_0x8fbea0=null:(_0x35c1e8['region']=_0x4a327c,_0x5ca842[_0x15bbf2(0x2de)]=_0x1869e4,_0xcf2d40[_0x15bbf2(0x2c3)]=!![],_0x261961['clusterAutoUpgrade']=_0x19ab4c[_0x15bbf2(0x26d)])),_0x56073f&&_0x194b7f['HCjjv'](_0x56073f[_0x15bbf2(0x1b4)],0x0)&&(_0x194b7f[_0x15bbf2(0x2f7)](_0x194b7f[_0x15bbf2(0x21a)],_0x194b7f['gEMrJ'])?_0x56073f=null:_0x194b7f[_0x15bbf2(0x1c6)](_0x539721,_0x5069db['uploaderVersion'])),_0x194b7f['CRscd'](_0x2846d9[_0x15bbf2(0x332)],undefined)&&_0x2846d9[_0x15bbf2(0x332)]&&(_0x194b7f[_0x15bbf2(0x279)](_0x194b7f[_0x15bbf2(0x344)],_0x194b7f[_0x15bbf2(0x2df)])?_0x33600f=_0x194b7f['JDvfz']:global_registry[_0x15bbf2(0x32f)]=!![]),_0x194b7f[_0x15bbf2(0x291)](updateGlobalRegistryWithConfig,_0x5e5e06,_0x4810ac,_0x5c8c30,_0x2d9ce8,_0x4d4a1c,_0x469f60,_0x2846d9,_0x208b4b,_0x54dc73,_0x206b5d,_0x29c944,_0xbdb8d7[_0x15bbf2(0x26d)]),global_registry[_0x15bbf2(0x326)]&&(_0x194b7f[_0x15bbf2(0x339)](_0x194b7f[_0x15bbf2(0x275)],_0x194b7f['oekQL'])?_0x194b7f[_0x15bbf2(0x2a4)](updateGlobalRegistryForHubHa,_0x36abfa[_0x15bbf2(0x341)]):_0x4b1945[_0x15bbf2(0x1b2)](_0x15bbf2(0x1e7)+_0x1b802d[_0x15bbf2(0x25f)](_0x41ae93)+'\x20'));}else _0x508083['sendResourceDataToHST']();}else{if(_0x194b7f[_0x15bbf2(0x279)](_0x5aa0e7,!![])){if(_0x194b7f[_0x15bbf2(0x1d6)](_0x194b7f[_0x15bbf2(0x1f3)],_0x194b7f[_0x15bbf2(0x1f3)]))throw new _0x4df503('Cluster\x20'+_0x56923f+_0x15bbf2(0x298));else{_0xbb7bf=_0x15bbf2(0x2a2)+_0x2824b6,logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0x58a7fd={};_0x58a7fd['type']=WS_EVENTS['LOG'],_0x58a7fd[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils['sendEventToBackend'](_0x431f2c,_0x58a7fd),_0x2d9ce8=_0x2846d9['concurrency'],_0x4d4a1c=_0x2846d9[_0x15bbf2(0x23a)],_0x8fbea0=null,_0x1be57d=null,_0x56073f=null,_0x469f60=_0x2846d9[_0x15bbf2(0x203)],_0x206b5d=_0x2846d9[_0x15bbf2(0x1f5)],_0x29c944=_0x2846d9[_0x15bbf2(0x264)],_0x208b4b=_0x36abfa[_0x15bbf2(0x236)],_0x54dc73=_0x36abfa[_0x15bbf2(0x346)];if(_0x194b7f['CRscd'](_0x2846d9[_0x15bbf2(0x332)],undefined)&&_0x2846d9[_0x15bbf2(0x332)]){if(_0x194b7f[_0x15bbf2(0x269)](_0x194b7f['mduNp'],_0x194b7f[_0x15bbf2(0x34d)]))global_registry['isPrivateGrid']=!![];else{const _0x2bb6a0={};_0x2bb6a0[_0x15bbf2(0x1e9)]=_0x2d2624[_0x15bbf2(0x242)],_0x2bb6a0[_0x15bbf2(0x1dc)]=_0x15bbf2(0x202)+_0x30b793+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x2b276e[_0x15bbf2(0x320)](_0x5d7c03,_0x2bb6a0,_0x194b7f[_0x15bbf2(0x255)]),_0x1b986f[_0x15bbf2(0x1b2)](_0x15bbf2(0x202)+_0x11e54e+_0x15bbf2(0x28f)),_0x4ed970=!![];if(_0x194b7f[_0x15bbf2(0x1c5)](_0x18cbb4,!![]))throw new _0x31dec2(_0x15bbf2(0x202)+_0x270f22+_0x15bbf2(0x298));}}_0x194b7f[_0x15bbf2(0x1c4)](updateGlobalRegistryWithConfig,_0x5e5e06,_0x4810ac,_0x5c8c30,_0x2d9ce8,_0x4d4a1c,_0x469f60,_0x2846d9,_0x208b4b,_0x54dc73,_0x206b5d,_0x29c944,_0xbdb8d7[_0x15bbf2(0x26d)]);if(global_registry[_0x15bbf2(0x326)]){if(_0x194b7f['xnAXW'](_0x194b7f['WSfqg'],_0x194b7f[_0x15bbf2(0x2fc)]))_0x194b7f['LDKWa'](updateGlobalRegistryForHubHa,_0x36abfa[_0x15bbf2(0x1cb)]);else{const _0x5f2cee={};_0x5f2cee[_0x15bbf2(0x1e9)]=_0x10380f['LOG'],_0x5f2cee['message']=_0x4095a5,_0x301c6e['sendEventToBackend'](_0x18b3d5,_0x5f2cee,_0x194b7f[_0x15bbf2(0x263)],!![]);}}}}else{if(_0x194b7f[_0x15bbf2(0x1d6)](_0x194b7f[_0x15bbf2(0x2b6)],_0x194b7f['bsyIR'])){const _0x262590=_0x194b7f[_0x15bbf2(0x2c8)][_0x15bbf2(0x27f)]('|');let _0x1dbf5f=0x0;while(!![]){switch(_0x262590[_0x1dbf5f++]){case'0':global_registry[_0x15bbf2(0x29b)]=_0x4810ac;continue;case'1':global_registry[_0x15bbf2(0x236)]=_0x36abfa[_0x15bbf2(0x236)];continue;case'2':global_registry[_0x15bbf2(0x346)]=_0x36abfa[_0x15bbf2(0x346)];continue;case'3':global_registry[_0x15bbf2(0x2b2)]=_0x5c8c30;continue;case'4':logger['info'](_0xbb7bf);continue;case'5':const _0x19e286={};_0x19e286['type']=WS_EVENTS[_0x15bbf2(0x242)],_0x19e286[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils['sendEventToBackend'](_0x431f2c,_0x19e286);continue;case'6':const _0x4f6c9d={};_0x4f6c9d['type']=WS_EVENTS[_0x15bbf2(0x1a4)],_0x4f6c9d[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x1a7)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x4f6c9d);continue;case'7':_0xbb7bf=_0x15bbf2(0x246)+_0x2824b6+_0x15bbf2(0x335)+_0x4810ac+'\x27';continue;case'8':global_registry[_0x15bbf2(0x2de)]=_0x5e5e06;continue;}break;}}else _0x592d81[_0x15bbf2(0x1b2)](_0x194b7f['fAnOL']);}}const _0x12817a=await _0x194b7f[_0x15bbf2(0x1b0)](getCloudProviderObject,_0x5e5e06,_0x4810ac,_0x2824b6,_0x431f2c,webSocketUtils,_0xbdb8d7);_0x194b7f[_0x15bbf2(0x297)](_0x5e5e06,AZURE)&&(_0x194b7f[_0x15bbf2(0x1d0)](_0x194b7f[_0x15bbf2(0x283)],_0x194b7f[_0x15bbf2(0x283)])?_0x12817a[_0x15bbf2(0x219)]():_0x1f0b30[_0x15bbf2(0x1b2)](_0x15bbf2(0x2cf)+_0xb588f8+'\x20'));let _0x29b799;if(_0x194b7f[_0x15bbf2(0x1cc)](_0x27118f,![])){_0xbb7bf=_0x15bbf2(0x2b9)+_0x5c8c30+').';const _0x40ec49={};_0x40ec49[_0x15bbf2(0x1e9)]=WS_EVENTS['LOG'],_0x40ec49['message']=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x40ec49),logger['info'](_0xbb7bf);const _0x51bd44=await _0x12817a[_0x15bbf2(0x316)]();if(_0x51bd44){if(_0x194b7f['IcvvP'](_0x194b7f[_0x15bbf2(0x1c7)],_0x194b7f['FPjje'])){const _0xcc61a9={};_0xcc61a9[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0xcc61a9[_0x15bbf2(0x1dc)]='Cluster\x20'+_0x4810ac+_0x15bbf2(0x28f),webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0xcc61a9,_0x194b7f[_0x15bbf2(0x255)]),logger[_0x15bbf2(0x1b2)](_0x15bbf2(0x202)+_0x4810ac+_0x15bbf2(0x28f)),_0x27118f=!![];if(_0x194b7f['yQEqV'](_0x5aa0e7,!![])){if(_0x194b7f[_0x15bbf2(0x1c5)](_0x194b7f['VMssN'],_0x194b7f[_0x15bbf2(0x1d1)]))throw new Error('Cluster\x20'+_0x4810ac+_0x15bbf2(0x298));else _0x44092e=_0x18f351[_0x26af0e[_0x15bbf2(0x2bb)]];}}else _0x194b7f[_0x15bbf2(0x2a4)](_0x267301,_0x3b1739[_0x15bbf2(0x1cb)]);}else{const _0x3f56da={};_0x3f56da['type']=WS_EVENTS[_0x15bbf2(0x242)],_0x3f56da[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x31c)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x3f56da),logger['info'](_0x194b7f[_0x15bbf2(0x31c)]);const _0x15cbac=_0x194b7f[_0x15bbf2(0x2c0)](_0x8fbea0,null)&&_0x194b7f[_0x15bbf2(0x317)](_0x8fbea0,undefined),_0x2b9c3a=_0x194b7f[_0x15bbf2(0x2c0)](_0x56073f,null)&&_0x194b7f['DrCPa'](_0x56073f,undefined)&&_0x194b7f['HugzQ'](_0x56073f[_0x15bbf2(0x1b4)],0x0);if(_0x15cbac){_0x194b7f[_0x15bbf2(0x2c9)](_0x2b9c3a,![])&&(_0xbb7bf=_0x194b7f['tVckm'],await _0x194b7f[_0x15bbf2(0x1e3)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x2a6)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1));const _0x2b7fb8=await _0x12817a[_0x15bbf2(0x2d9)](_0x8fbea0);_0x194b7f[_0x15bbf2(0x1cc)](_0x2b7fb8,![])?(_0xbb7bf=_0x194b7f['pmsEk'],await _0x194b7f[_0x15bbf2(0x2d2)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f['XOsVL'],_0x194b7f[_0x15bbf2(0x256)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):logger[_0x15bbf2(0x1b2)](_0x15bbf2(0x2cf)+_0x8fbea0+'\x20');const _0xc28d60=await _0x12817a['isSubnetsValid'](_0x56073f,_0x8fbea0);_0x194b7f[_0x15bbf2(0x25b)](_0xc28d60[0x0],![])?(_0xbb7bf=_0x15bbf2(0x2f6)+JSON[_0x15bbf2(0x25f)](_0xc28d60[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x8fbea0+_0x15bbf2(0x2ae),await _0x194b7f[_0x15bbf2(0x288)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x2be)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):logger[_0x15bbf2(0x1b2)](_0x15bbf2(0x1e7)+JSON[_0x15bbf2(0x25f)](_0x56073f)+'\x20'),[_0x8fbea0,_0x56073f]=await _0x12817a['setupNewCluster'](_0x8fbea0,_0x56073f);}else{const _0x10d88b=_0x194b7f[_0x15bbf2(0x33f)][_0x15bbf2(0x27f)]('|');let _0x2f2174=0x0;while(!![]){switch(_0x10d88b[_0x2f2174++]){case'0':const _0x56c249={};_0x56c249[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x56c249[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x23e)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x56c249);continue;case'1':logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x23e)]);continue;case'2':[_0x8fbea0,_0x56073f]=await _0x12817a[_0x15bbf2(0x27a)](_0x8fbea0,_0x56073f);continue;case'3':logger['info'](_0x194b7f[_0x15bbf2(0x31e)]);continue;case'4':const _0x18bcbe={};_0x18bcbe[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x18bcbe['message']=_0x194b7f['ylwVu'],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x18bcbe);continue;}break;}}}}_0x27118f&&_0x194b7f[_0x15bbf2(0x25b)](_0x5e5e06,AZURE)&&(await _0x12817a['updateClusterAlreadyPresent'](),await _0x12817a[_0x15bbf2(0x24b)]());const [_0x4bde39,_0x36e9be,_0xb962ec,_0x53feb5,_0x3118cd,_0x2a539e,_0x5a795e]=await _0x194b7f[_0x15bbf2(0x34a)](createK8sClient,_0x12817a,_0xbdb8d7['skipTlsCertVerify']);_0x194b7f['wfRAx'](_0x27118f,![])&&_0x194b7f[_0x15bbf2(0x229)](_0x5e5e06,AWS)&&(global_registry[_0x15bbf2(0x28e)]=!![],_0x29b799=await _0x12817a[_0x15bbf2(0x30a)](_0x4bde39,_0xbdb8d7));if(_0x194b7f['zXhYt'](_0x27118f,![])&&global_registry[_0x15bbf2(0x326)])try{await _0x12817a[_0x15bbf2(0x2e7)](_0x2a539e,_0x5a795e,_0xbdb8d7,_0x8fbea0,_0x56073f);const _0x156575={};_0x156575[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x156575[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x281)],webSocketUtils['sendEventToBackend'](_0x431f2c,_0x156575);!await _0x194b7f[_0x15bbf2(0x29d)](namespaceExists,_0x4bde39,global_registry['hubHaNameSpace'])&&await _0x194b7f[_0x15bbf2(0x29d)](createNamespace,_0x4bde39,global_registry['hubHaNameSpace']);logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x20d)]);let _0x25b8c6=await fs[_0x15bbf2(0x24a)](path[_0x15bbf2(0x2ca)](__dirname,_0x194b7f[_0x15bbf2(0x254)],_0x194b7f[_0x15bbf2(0x258)],_0x194b7f[_0x15bbf2(0x30c)],_0x194b7f['kFgrz']),_0x194b7f[_0x15bbf2(0x267)]);_0x25b8c6=_0x25b8c6[_0x15bbf2(0x2ad)](/<RedisClientPassword>/g,_0x194b7f[_0x15bbf2(0x238)](encodeBase64,global_registry[_0x15bbf2(0x2d6)])),_0x25b8c6=_0x25b8c6[_0x15bbf2(0x2ad)](/<KafkaClientPassword>/g,_0x194b7f[_0x15bbf2(0x318)](encodeBase64,global_registry['kafkaPassword'])),_0x25b8c6=_0x25b8c6['replace'](/<BstackUsername>/g,_0x194b7f[_0x15bbf2(0x1c6)](encodeBase64,global_registry['bstackUsername'])),_0x25b8c6=_0x25b8c6[_0x15bbf2(0x2ad)](/<BstackAccessKey>/g,_0x194b7f['ikFAq'](encodeBase64,global_registry[_0x15bbf2(0x287)]));const _0x52e86c=yaml[_0x15bbf2(0x328)](_0x25b8c6);await _0x194b7f[_0x15bbf2(0x1c8)](kubeApply,_0x52e86c,_0x5a795e),logger['info'](_0x194b7f[_0x15bbf2(0x2c6)]);let _0x21cced=_0x194b7f[_0x15bbf2(0x33b)];if(_0x194b7f[_0x15bbf2(0x1b9)](_0x5e5e06,AZURE))_0x21cced=_0x194b7f[_0x15bbf2(0x2e3)];else _0x194b7f['tgzJM'](_0x5e5e06,GCP)&&(_0x21cced=_0x194b7f[_0x15bbf2(0x31d)]);logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x22f)]);let _0x542a80=await fs[_0x15bbf2(0x24a)](path[_0x15bbf2(0x2ca)](__dirname,_0x194b7f[_0x15bbf2(0x254)],_0x194b7f[_0x15bbf2(0x258)],_0x194b7f[_0x15bbf2(0x30c)],_0x194b7f[_0x15bbf2(0x33a)]),_0x194b7f[_0x15bbf2(0x267)]);_0x542a80=_0x542a80[_0x15bbf2(0x2ad)](/<HubHaNameSpace>/g,global_registry[_0x15bbf2(0x29c)]),_0x542a80=_0x542a80[_0x15bbf2(0x2ad)](/<StorageClassName>/g,_0x21cced);const _0x4e64a7=yaml[_0x15bbf2(0x328)](_0x542a80);await _0x194b7f[_0x15bbf2(0x29d)](kubeApply,_0x4e64a7,_0x5a795e),logger['info'](_0x194b7f['BmBBY']),logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x1fd)]);let _0x5e8ca2=await fs[_0x15bbf2(0x24a)](path[_0x15bbf2(0x2ca)](__dirname,_0x194b7f[_0x15bbf2(0x254)],_0x194b7f['EPGrp'],_0x194b7f['XugDR'],_0x194b7f[_0x15bbf2(0x321)]),_0x194b7f[_0x15bbf2(0x267)]);_0x5e8ca2=_0x5e8ca2[_0x15bbf2(0x2ad)](/<HubHaNameSpace>/g,global_registry[_0x15bbf2(0x29c)]),_0x5e8ca2=_0x5e8ca2[_0x15bbf2(0x2ad)](/<StorageClassName>/g,_0x21cced);const _0x1581f7=yaml[_0x15bbf2(0x328)](_0x5e8ca2);await _0x194b7f[_0x15bbf2(0x34e)](kubeApply,_0x1581f7,_0x5a795e),logger['info'](_0x194b7f[_0x15bbf2(0x350)]),logger['info'](_0x194b7f[_0x15bbf2(0x286)]);let _0x1334ad=await fs[_0x15bbf2(0x24a)](path[_0x15bbf2(0x2ca)](__dirname,_0x194b7f['mOsZQ'],_0x194b7f['EPGrp'],_0x194b7f['XugDR'],_0x194b7f['Gbyza']),_0x194b7f['ijrTB']);_0x1334ad=_0x1334ad[_0x15bbf2(0x2ad)](/<UploaderImageVersion>/g,global_registry[_0x15bbf2(0x1ab)]),_0x1334ad=_0x1334ad['replace'](/<HubHaNameSpace>/g,global_registry[_0x15bbf2(0x29c)]);const _0x2c38e4=yaml[_0x15bbf2(0x328)](_0x1334ad);_0x194b7f[_0x15bbf2(0x2d4)](global_registry['cloudProvider'],AZURE)&&(_0x2c38e4[0x0][_0x15bbf2(0x21f)][_0x15bbf2(0x34f)][_0x15bbf2(0x292)]['labels']={'azure.workload.identity/use':_0x194b7f[_0x15bbf2(0x259)],..._0x2c38e4[0x0]['spec'][_0x15bbf2(0x34f)][_0x15bbf2(0x292)][_0x15bbf2(0x1eb)]},_0x2c38e4[0x0][_0x15bbf2(0x21f)][_0x15bbf2(0x34f)][_0x15bbf2(0x21f)][_0x15bbf2(0x215)]=_0x194b7f['BDBeB']);await _0x194b7f[_0x15bbf2(0x34a)](kubeApply,_0x2c38e4,_0x5a795e),logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x262)]);const _0x2fd00b={};_0x2fd00b['type']=WS_EVENTS['LOG'],_0x2fd00b[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x1f2)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x2fd00b),logger['info'](_0x194b7f[_0x15bbf2(0x31a)]);}catch(_0x5d07f4){const _0x4927e2=_0x194b7f[_0x15bbf2(0x239)][_0x15bbf2(0x27f)]('|');let _0x3e2fdc=0x0;while(!![]){switch(_0x4927e2[_0x3e2fdc++]){case'0':await _0x12817a[_0x15bbf2(0x28c)](_0x4bde39,global_registry[_0x15bbf2(0x2b2)]);continue;case'1':logger['error'](_0xbb7bf);continue;case'2':_0xbb7bf=_0x15bbf2(0x34b)+_0x5d07f4[_0x15bbf2(0x1dc)];continue;case'3':process[_0x15bbf2(0x327)](0x1);continue;case'4':await _0x194b7f[_0x15bbf2(0x1e3)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x290)],_0x194b7f['ifmZe']);continue;}break;}}try{_0x10c84e=_0x194b7f['tRzYQ'](kebabCase,_0x2824b6),logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x23f)]);const _0x48405e={};_0x48405e[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x48405e[_0x15bbf2(0x1dc)]=_0x194b7f['glLtM'],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x48405e);if(_0x194b7f[_0x15bbf2(0x23b)](_0x10c84e,_0x194b7f[_0x15bbf2(0x2af)])){const _0x45902c={};_0x45902c[_0x15bbf2(0x1bc)]=_0x194b7f['paEdy'],_0x45902c[_0x15bbf2(0x300)]=_0x194b7f[_0x15bbf2(0x2a0)];const _0x5f2faa={};_0x5f2faa[_0x15bbf2(0x22c)]=_0x10c84e,_0x5f2faa[_0x15bbf2(0x325)]=_0x45902c;const _0x1ed87d={};_0x1ed87d[_0x15bbf2(0x292)]=_0x5f2faa;const _0x4453b9=_0x1ed87d,_0x536457={};_0x536457['body']=_0x4453b9,await _0x4bde39[_0x15bbf2(0x2f8)](_0x536457),logger['info'](_0x194b7f[_0x15bbf2(0x32e)]);}const _0x65dacf={};_0x65dacf[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x65dacf['message']=_0x194b7f[_0x15bbf2(0x1e8)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x65dacf);const _0x347801={};_0x347801['type']=WS_EVENTS['LOG'],_0x347801[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x322)],webSocketUtils['sendEventToBackend'](_0x431f2c,_0x347801),logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x2fa)]);let _0x4dbd3c={};_0x194b7f[_0x15bbf2(0x2c9)](_0x5e5e06,AZURE)&&(_0x4dbd3c={'clientId':await _0x12817a['getResourceClientId'](_0x15bbf2(0x1ac)+_0x4810ac)});await _0x194b7f[_0x15bbf2(0x2dc)](addGridComponents,_0x4bde39,_0x36e9be,_0xb962ec,_0x53feb5,_0x10c84e,_0x4810ac,_0x29b799,_0x3118cd,_0x5a795e,_0x4dbd3c),_0xbb7bf=_0x194b7f[_0x15bbf2(0x248)],logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0xf49884={};_0xf49884[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0xf49884[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0xf49884),_0xbb7bf=_0x194b7f['QHAID'],logger['info'](_0xbb7bf);const _0xee627e={};_0xee627e['type']=WS_EVENTS[_0x15bbf2(0x242)],_0xee627e[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils['sendEventToBackend'](_0x431f2c,_0xee627e),await _0x194b7f[_0x15bbf2(0x1af)](waitForDeployment,_0x36e9be,_0x10c84e,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x4f359e=await _0x194b7f[_0x15bbf2(0x34e)](getNamespaceUID,_0x4bde39,_0x10c84e),_0xf0f1e6=global_registry[_0x15bbf2(0x32f)]?_0x194b7f['hCzjl']:_0x194b7f[_0x15bbf2(0x247)],_0x42eee8={};_0x42eee8[_0x15bbf2(0x22c)]=_0xf0f1e6,_0x42eee8['namespace']=_0x194b7f[_0x15bbf2(0x1cd)];const _0x51273a=await _0x4bde39[_0x15bbf2(0x2ce)](_0x42eee8);let _0x585f82=_0x12817a[_0x15bbf2(0x2bd)](_0x51273a)+'/'+_0x10c84e,_0x426593=_0x194b7f[_0x15bbf2(0x216)];try{const _0x5d2ed5=_0x15bbf2(0x250)+AG_API_URL+_0x15bbf2(0x200)+_0x4f359e,_0x468d47=await _0x194b7f['mxxOn'](got,_0x5d2ed5,_0x5aaba1);(_0x194b7f['RGoDZ'](_0x468d47,null)||_0x194b7f['zmmwU'](_0x468d47,undefined))&&(_0xbb7bf=_0x194b7f[_0x15bbf2(0x24f)],await _0x194b7f[_0x15bbf2(0x1d5)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f['XOsVL'],_0x194b7f[_0x15bbf2(0x1bb)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process['exit'](0x1));_0x194b7f[_0x15bbf2(0x2f2)](_0x468d47[_0x15bbf2(0x278)],0x191)&&(_0xbb7bf=_0x194b7f[_0x15bbf2(0x268)],await _0x194b7f[_0x15bbf2(0x2d2)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x204)],_0x194b7f['ifmZe']),logger['error'](_0xbb7bf),process[_0x15bbf2(0x327)](0x1));_0x194b7f['CtTex'](_0x468d47[_0x15bbf2(0x278)],0xc8)&&(_0xbb7bf='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x468d47),await _0x194b7f[_0x15bbf2(0x288)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x1a5)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1));const _0x522184=JSON[_0x15bbf2(0x2c1)](_0x468d47['body']);_0x522184[_0x15bbf2(0x265)]&&(_0x585f82=_0x522184[_0x15bbf2(0x265)],_0x426593=_0x194b7f['xcMrh']),global_registry[_0x15bbf2(0x32f)]&&(_0x426593=_0x194b7f[_0x15bbf2(0x216)]);}catch(_0x27feb2){}_0xbb7bf=_0x15bbf2(0x26f)+_0x585f82+'\x20',logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0x3f93db={};_0x3f93db[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x3f93db[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x3f93db),_0xbb7bf=_0x15bbf2(0x2d1)+_0x426593+'://'+_0x585f82+'/wd/hub',logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0x5e6785={};_0x5e6785['type']=WS_EVENTS[_0x15bbf2(0x242)],_0x5e6785[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x5e6785);const _0x17b7e6={};_0x17b7e6[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x20a)],_0x17b7e6[_0x15bbf2(0x1dc)]=_0x15bbf2(0x243)+_0x585f82,webSocketUtils['sendEventToBackend'](_0x431f2c,_0x17b7e6),await webSocketUtils[_0x15bbf2(0x266)](0x7d0);}catch(_0x1218da){logger[_0x15bbf2(0x20e)]('Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20'+_0x1218da+'\x20\x0a'+JSON[_0x15bbf2(0x25f)](_0x1218da[_0x15bbf2(0x1ae)]));if(_0x194b7f[_0x15bbf2(0x306)](_0x27118f,![]))try{logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x336)]),await _0x194b7f[_0x15bbf2(0x2ed)](removeGridComponents,_0x4bde39,_0x36e9be,_0xb962ec,_0x53feb5,_0x10c84e),await _0x12817a[_0x15bbf2(0x28c)](_0x4bde39,global_registry['clusterRegion']);}catch(_0x562973){logger[_0x15bbf2(0x20e)](_0x15bbf2(0x33d)+_0x562973+'\x20\x0a'+JSON['stringify'](_0x562973[_0x15bbf2(0x1ae)]));}throw _0x1218da;}}catch(_0x529705){const _0x5aaa0e=_0x15bbf2(0x21e)+_0x529705+'\x20\x0a'+JSON['stringify'](_0x529705[_0x15bbf2(0x1ae)]);if(_0x431f2c){const _0x412489={};_0x412489[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x412489[_0x15bbf2(0x1dc)]=_0x5aaa0e,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x412489,_0x194b7f[_0x15bbf2(0x263)],!![]);}await webSocketUtils['delay'](0x7d0);const _0xebabde={};_0xebabde['error']=_0x5aaa0e,await _0x194b7f[_0x15bbf2(0x1b0)](sendInstrumentationEvent,_0xbdb8d7,_0x194b7f['XOsVL'],messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x1aa)],_0xebabde,_0xbdb8d7),logger[_0x15bbf2(0x20e)](_0x5aaa0e);}process[_0x15bbf2(0x327)](0x0);};
1
+ function a9_0x2270(_0x5f145c,_0x288646){const _0x19e7e1=a9_0x19e7();return a9_0x2270=function(_0x2270dc,_0x460fea){_0x2270dc=_0x2270dc-0x120;let _0x5ba40a=_0x19e7e1[_0x2270dc];return _0x5ba40a;},a9_0x2270(_0x5f145c,_0x288646);}const a9_0x293ba4=a9_0x2270;(function(_0x513772,_0x3a99ae){const _0x2320cf=a9_0x2270,_0x578739=_0x513772();while(!![]){try{const _0x208109=parseInt(_0x2320cf(0x287))/0x1+-parseInt(_0x2320cf(0x1b8))/0x2*(-parseInt(_0x2320cf(0x148))/0x3)+parseInt(_0x2320cf(0x256))/0x4+parseInt(_0x2320cf(0x195))/0x5+parseInt(_0x2320cf(0x1d2))/0x6+-parseInt(_0x2320cf(0x1fd))/0x7+-parseInt(_0x2320cf(0x17d))/0x8;if(_0x208109===_0x3a99ae)break;else _0x578739['push'](_0x578739['shift']());}catch(_0x2be560){_0x578739['push'](_0x578739['shift']());}}}(a9_0x19e7,0x57f02));function a9_0x19e7(){const _0x21b602=['Will\x20be\x20spawning\x20the\x20grid\x20','UYUch','YmNIM','http','sjPxA','clusterAutoupgrade','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Spawning\x20the\x20grid\x20','RJRCj','readNamespacedService','bitnami-redis.yaml','KEHEr','Gmcxc','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','5997752Qglmhe','VqddT','bpQeO','kTUYa','createdBy','Epyd5nXbRK','8|2|4|1|3|7|6|0|5','iKgCI','password','../../utils/gridComponents','dsoqa','string','body','error','Adding\x20Turboscale\x20Uploader\x20deployment...','QRmMJ','vbcVY','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','grid','FUMYY','setupNewCluster','ERROR','create','HCpbu','2056765CGeSse','qGhcx','hub-ha','skip-tls-cert-verify','BbQnC','gSGIU','SSnpS','raaVz','type','DiBEQ','wzpIa','Creating\x20Hub\x20HA\x20resources','mDgNE','epilogue','builder','template','isSubnetsValid','1|5|3|8|4|7|0|6|2','create-grid-checks-invalid-profile','ENGuC','ldYrj','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','browserVersion','KHVge','sendEventToBackend','hFRDe','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','Browserstack','ouSem','skipTlsCertVerify','QKmRL','VJtiN','isClusterPresent','ZAZTC','templates','54DpMKRV','split','uploaderImageVersion','securityGroups','IZZQL','ekvBr','sZxyr','kuifj','grid-profile','wXFzz','Cluster\x20','pvfcP','CXZRi','hubVersion','kTvJm','wVUCf','non-aws-azure-cluster','route53','uqQCa','uuid','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','createNamespace','ZVJMj','Added\x20Secret\x20Mapping','isPrivateGrid','CLI_RUN_STARTED','1048272RjSyAi','wpXOH','XPnvz','EPtws','EIrcI','aFWzL','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','uhsDV','CLI\x20run\x20started','hXXty','hqXwj','kPygC','Qxnrg','paYdL','tDpLd','got','Added\x20Turboscale\x20Uploader\x20deployment.','namespace','private-grid','PWwNT','TqvKw','ddCLk','cluster-name','lidbW','default','bBNqT','omEcE','eYZuD','bitnami-kafka.yaml','RnLcS','https://','create-grid-called','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','hQEVJ','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','boolean','serviceAccountName','Uqzpr','nHEWm','XVNKL','aFmAg','../..','Tniie','1815268LlsNJp','spec','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','readFileAsync','browserstack','NZZpc','\x20in\x20existing\x20cluster\x20\x27','Grid\x20profile\x20fetched\x20from\x20backend','IJwtV','gridProfileId','../../config/constants','ngYNf','defaultGridProfile','zGQQj','uQPOs','TgBxm','DNYko','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','QdTHQ','KecBr','13|6|1|0|5|7|2|4|15|3|12|10|11|14|9|8','info','\x20are\x20not\x20present\x20in\x20VPC:\x20','nTgHY','managedBy','owwyH','JCOhn','dNYwl','Uvzcp','clusterName','cloudProvider','qXCFB','JWwFy','sendResourceDataToHST','true','NMkBT','gridProfiles','muidy','foXpg','NNszF','1|3|2|4|0','Cluster\x20created\x20successfully','vjMVO','efs-csi','parse','instanceType','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','FVBrN','BoCzP','Flag\x20to\x20enable\x20Hub\x20HA','QNnXd','iYrEj','KESHa','IqHZv','myyPR','lKTSx','KiYoh','vaYDe','metadata','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.','statusCode','newCluster','cRINh','desc','nsMer','tpCkD','JyZHP','debug','Adding\x20Kafka\x20deployment...','minNodes','handler','cOQBb','hubharesources','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','s3bucket','clusterAutoUpgrade','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','AZYJG','gridName','vxFlN','Ubool','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','WebSocket','NIFSA','VVOXV','uKqpX','premium-rwo','QsDWf','728120GOJNaU','PECrO','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','TiEHn','INFO','JGdaM','TKWKR','Adding\x20Websocket\x20listeners','WPEzz','init-not-called','PoEtT','gridProfile','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','getResourceClientId','Spawning\x20Grid\x20on\x20the\x20Cluster','Ylpmc','createOtherResources','gSUYk','deleteCluster','sfzxu','uwdwW','Subnets:\x20','ingress-nginx','CfQjm','uuFPj','get-grid-url-null-response','HOexE','https','iWWxD','CmxAm','iBoyM','setupAutoscaler','hub-ha-deployments-failed','/packages/cli/create-grid-checks','KLWVZ','NmYiB','CjYGo','labels','FGacS','Found\x20VPC:\x20','xXnyb','uploaderVersion','IMhBP','Enabling\x20Hub\x20HA\x20flow','Adding\x20Redis\x20deployment...','wIrZO','byIXq','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','ItJzb','263885DXxjFd','warn','acPtk','stack','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','replace','Hub\x20HA\x20setup\x20completed\x20successfully.','jAHdx','yEhHU','UfFrJ','Create\x20a\x20private/public\x20grid.','CLI\x20run\x20finished:\x20','region','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','sSYzN','exit','mKpOz','name','private-ingress-nginx-controller','/wd/hub','Grid\x20spawned\x20on\x20the\x20cluster','options','OiVpS','delay','nzULW','cloud-provider','message','qqlfc','pre-spawned-subnets-not-selected','existsSync','../../utils/webSocketUtils','rmshT','Yuqkz','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','hubHa','GfYrf','fGaUn','EitIf','maxNodes','uJDhY','bstackUsername','WCklU','FFCVX','description','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','pnOyF','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','BPGSz','MeUXc','dxptf','://','grid-spawning-failed','create-grid-checks-grid-already-exists','SFZtJ','argv','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','reconnecting-websocket','getGridHostname','redisPassword','connectionTimeout','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Namespace\x20Created','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','pLVxG','privateGrid','fCEFD','UkRNzNYCBU','jBSyn','clusterRegion','join','cQMrm','iACOA','epZef','help','UKaKG','tyhVr','Pkwaz','bstackAccesskey','length','ikjbV','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','user','subnets','Spawning\x20grid\x20on\x20to\x20the\x20cluster','2|4|0|1|3','yvlYN','cluster-autoupgrade','buDdk','prespawned-cluster-args-not-passed','GET','ZKwpg','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','loadAll','vpc','concurrency','Cluster:\x20','SpZtR','0|3|1|4|2','\x20using\x20\x27','kafkaPassword','\x27\x20grid\x20profile','fmKch','Lzexa','aIdyz','OAuwf','fyMJF','JUIhu','Added\x20Kafka\x20deployment.','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','GIVqM','SlIei','KAALD','Grid\x20can\x20be\x20accessed\x20at:\x20','stringify','../../config/logger','kISqR','grid-name','gHgPt','VOavw','XLvIZ','LOG','fJhYX','NMWMq','VvaKY','pre-spawned-invalid-vpc','XIgaO','updateClusterAlreadyPresent','37473pLvZAZ','lvdcJ','browserstack-secret.yaml','Zzwtn','turboscale-managed-identity-','../../utils/createk8sClient','addListeners','azurefile-csi-premium','Created\x20Hub\x20HA\x20resources','JKbDj','RFrPW','../../utils/utilityMethods','kafkaUploader','../../cloudproviders/utils','HlXBT','hBjmd','IUfQG','Deleting\x20the\x20CloudFormation\x20Stacks','QUjay','toLowerCase','QyRmG','enableHubHa','OSOpt','XQyjf','qzBez','DxkAg','ysecL','dMiKu','pre-spawned-invalid-subnets','usage','setupHubHa','oFTUi','BENcg','isVPCPresent','hubHaNameSpace','lIJoL','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Skip\x20insecure\x20cert\x20verification.','NDSNZ'];a9_0x19e7=function(){return _0x21b602;};return a9_0x19e7();}const fs=require('fs'),ws=require('ws'),path=require('path'),yaml=require('js-yaml'),ReconnectingWebSocket=require(a9_0x293ba4(0x2bf)),got=require(a9_0x293ba4(0x1e1)),{v4:uuidv4}=require(a9_0x293ba4(0x1cb)),webSocketUtils=require(a9_0x293ba4(0x2a5)),{logger}=require(a9_0x293ba4(0x13b)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x293ba4(0x153)),{getCloudProviderObject}=require(a9_0x293ba4(0x155)),{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_0x293ba4(0x207)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x293ba4(0x186)),{createK8sClient}=require(a9_0x293ba4(0x14d)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports['command']=a9_0x293ba4(0x18f),exports[a9_0x293ba4(0x23d)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x293ba4(0x1a3)]=function(_0x3f3a77){const _0x30a459=a9_0x293ba4,_0x16116c={};_0x16116c[_0x30a459(0x21d)]=_0x30a459(0x2b3),_0x16116c[_0x30a459(0x18d)]='string',_0x16116c['QdTHQ']=_0x30a459(0x124),_0x16116c['mmTTm']=_0x30a459(0x262),_0x16116c[_0x30a459(0x129)]=_0x30a459(0x1f4),_0x16116c['TYrtg']=_0x30a459(0x1d8),_0x16116c[_0x30a459(0x151)]=_0x30a459(0x291),_0x16116c[_0x30a459(0x251)]=_0x30a459(0x16d),_0x16116c[_0x30a459(0x132)]=_0x30a459(0x1f5),_0x16116c[_0x30a459(0x1e7)]=_0x30a459(0x22f),_0x16116c[_0x30a459(0x273)]=_0x30a459(0x2c5),_0x16116c[_0x30a459(0x23c)]=_0x30a459(0x2d0);const _0x3b9761=_0x16116c,_0x2e0bda={};_0x2e0bda[_0x30a459(0x2b2)]=_0x3b9761['qXCFB'],_0x2e0bda[_0x30a459(0x19d)]=_0x3b9761[_0x30a459(0x18d)];const _0x4c442d={};_0x4c442d['description']=_0x3b9761[_0x30a459(0x210)],_0x4c442d['type']=_0x3b9761[_0x30a459(0x18d)];const _0x541e26={};_0x541e26[_0x30a459(0x2b2)]=_0x3b9761['mmTTm'],_0x541e26[_0x30a459(0x19d)]=_0x3b9761[_0x30a459(0x18d)];const _0x4cfe3c={};_0x4cfe3c['description']=_0x3b9761[_0x30a459(0x129)],_0x4cfe3c[_0x30a459(0x19d)]=_0x3b9761['vbcVY'];const _0x51b0b6={};_0x51b0b6[_0x30a459(0x2b2)]=_0x3b9761['TYrtg'],_0x51b0b6[_0x30a459(0x19d)]=_0x3b9761[_0x30a459(0x18d)];const _0x936f3e={};_0x936f3e[_0x30a459(0x2b2)]=_0x3b9761[_0x30a459(0x151)],_0x936f3e[_0x30a459(0x19d)]=_0x3b9761[_0x30a459(0x18d)];const _0xc2788a={};_0xc2788a[_0x30a459(0x2b2)]=_0x3b9761[_0x30a459(0x251)],_0xc2788a['type']=_0x3b9761['fyMJF'],_0xc2788a[_0x30a459(0x1ea)]=![];const _0x4abb16={};_0x4abb16['description']=_0x3b9761[_0x30a459(0x1e7)],_0x4abb16['type']=_0x3b9761[_0x30a459(0x132)],_0x4abb16[_0x30a459(0x1ea)]=![];const _0x97a480={};_0x97a480[_0x30a459(0x2b2)]=_0x3b9761['CmxAm'],_0x97a480['type']=_0x3b9761[_0x30a459(0x132)],_0x97a480[_0x30a459(0x1ea)]=![];const _0x443763={};return _0x443763[_0x30a459(0x13d)]=_0x2e0bda,_0x443763['grid-profile']=_0x4c442d,_0x443763['cluster-name']=_0x541e26,_0x443763['cloud-provider']=_0x4cfe3c,_0x443763['region']=_0x51b0b6,_0x443763[_0x30a459(0x1e4)]=_0x936f3e,_0x443763[_0x30a459(0x198)]=_0xc2788a,_0x443763[_0x30a459(0x197)]=_0x4abb16,_0x443763['cluster-autoupgrade']=_0x97a480,_0x3f3a77[_0x30a459(0x165)](HELP_HEADER_MESSAGE[_0x30a459(0x193)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x30a459(0x29c)](_0x443763)[_0x30a459(0x2d0)](_0x3b9761[_0x30a459(0x23c)])[_0x30a459(0x2bd)];},exports[a9_0x293ba4(0x244)]=async function(_0x50c06e){const _0x3e204a=a9_0x293ba4,_0x2fd649={'FFCVX':function(_0x519d05,_0x43abd0){return _0x519d05(_0x43abd0);},'KEHEr':_0x3e204a(0x226),'VvaKY':_0x3e204a(0x281),'IZZQL':_0x3e204a(0x2c9),'nHEWm':_0x3e204a(0x201),'SFZtJ':_0x3e204a(0x182),'UYUch':_0x3e204a(0x2a8),'TKWKR':_0x3e204a(0x172),'uhsDV':_0x3e204a(0x254),'raaVz':_0x3e204a(0x183),'Ylpmc':_0x3e204a(0x1da),'qGhcx':_0x3e204a(0x220),'RnLcS':'default','ngYNf':_0x3e204a(0x271),'lvdcJ':'error','aFmAg':_0x3e204a(0x14f),'ekvBr':_0x3e204a(0x2b3),'sjPxA':_0x3e204a(0x188),'HOexE':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','lPipK':_0x3e204a(0x262),'izydd':_0x3e204a(0x1f4),'tDpLd':_0x3e204a(0x1d8),'TgBxm':'Create\x20a\x20private/public\x20grid.','DiBEQ':_0x3e204a(0x16d),'SSnpS':_0x3e204a(0x1f5),'bBNqT':'Flag\x20to\x20enable\x20Hub\x20HA','nTgHY':'Flag\x20to\x20enable\x20cluster\x20auto-upgrade','wxwcp':_0x3e204a(0x2d0),'iBoyM':_0x3e204a(0x212),'dMiKu':function(_0x43d8fc,_0xc86c23){return _0x43d8fc(_0xc86c23);},'NmYiB':function(_0x42fe93,_0x3be96f,_0x2fc719,_0x143e71,_0x25ea94,_0x5722ac,_0x472c46,_0x38429a,_0x27e929,_0x2fad6c,_0xd4cf96,_0x14b7a8,_0x24694a){return _0x42fe93(_0x3be96f,_0x2fc719,_0x143e71,_0x25ea94,_0x5722ac,_0x472c46,_0x38429a,_0x27e929,_0x2fad6c,_0xd4cf96,_0x14b7a8,_0x24694a);},'FGacS':function(_0x29545c,_0x345330){return _0x29545c!==_0x345330;},'CjYGo':_0x3e204a(0x288),'QUjay':function(_0x4e4131,_0x375f46){return _0x4e4131===_0x375f46;},'TqvKw':function(_0x301214){return _0x301214();},'buDdk':function(_0x32162f){return _0x32162f();},'uQPOs':function(_0x16022c,_0x4fa948){return _0x16022c===_0x4fa948;},'Ubool':_0x3e204a(0x2b6),'wVUCf':_0x3e204a(0x2aa),'oBRej':_0x3e204a(0x175),'tlNLd':function(_0x429559,_0x526fb3,_0x4145cf,_0x516ade,_0x4f8e54,_0x4c35c2,_0x53d9f7){return _0x429559(_0x526fb3,_0x4145cf,_0x516ade,_0x4f8e54,_0x4c35c2,_0x53d9f7);},'BbQnC':_0x3e204a(0x1f1),'NNszF':_0x3e204a(0x25f),'iKgCI':function(_0x400f86,_0x398a81,_0x35c496,_0x54d46e,_0x1b72ca,_0x563af0,_0x32942d){return _0x400f86(_0x398a81,_0x35c496,_0x54d46e,_0x1b72ca,_0x563af0,_0x32942d);},'kolsj':function(_0x716ae1){return _0x716ae1();},'tpCkD':'<UsernamePlaceholder>','LKcXF':'<PasswordPlaceholder>','YmNIM':_0x3e204a(0x25d),'NMWMq':'YFgFW','CfQjm':function(_0x4b1f9a,_0x59f9ec){return _0x4b1f9a!==_0x59f9ec;},'TiEHn':_0x3e204a(0x17b),'WZBfj':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','bpQeO':function(_0x3474c4,_0x31d84a,_0x41627a,_0x1f0fe6,_0x23763b,_0x56b88b,_0x5c8438,_0x55e184){return _0x3474c4(_0x31d84a,_0x41627a,_0x1f0fe6,_0x23763b,_0x56b88b,_0x5c8438,_0x55e184);},'ldYrj':_0x3e204a(0x121),'SlIei':function(_0x32e703,_0x2a5325){return _0x32e703!==_0x2a5325;},'dsoqa':_0x3e204a(0x13f),'BoCzP':_0x3e204a(0x285),'dNYwl':function(_0x288a91,_0x2af149,_0xa3ab2,_0x18576c,_0x519896,_0x61692e,_0x52f396,_0x3268c7){return _0x288a91(_0x2af149,_0xa3ab2,_0x18576c,_0x519896,_0x61692e,_0x52f396,_0x3268c7);},'aIdyz':_0x3e204a(0x1c8),'qqlfc':function(_0x64047,_0x1abf4d){return _0x64047===_0x1abf4d;},'xXnyb':function(_0x3a6416,_0x52ebba){return _0x3a6416!==_0x52ebba;},'gSGIU':'cSwBD','NDSNZ':_0x3e204a(0x289),'hXXty':function(_0x2c8ad0,_0x86457f,_0x5a6bc5,_0x14e7dc,_0x2d6929,_0x5a9b23,_0x324db8){return _0x2c8ad0(_0x86457f,_0x5a6bc5,_0x14e7dc,_0x2d6929,_0x5a9b23,_0x324db8);},'Lzexa':function(_0x3e710b,_0xcb32b6){return _0x3e710b===_0xcb32b6;},'WiMLi':'feTCC','XLvIZ':'SYKIl','DxkAg':function(_0x16a73f,_0x2f9eb7){return _0x16a73f!==_0x2f9eb7;},'mDgNE':_0x3e204a(0x20d),'Uqzpr':_0x3e204a(0x15e),'tgYoM':_0x3e204a(0x122),'omEcE':function(_0x4face4,_0x381db3,_0x25be7d){return _0x4face4(_0x381db3,_0x25be7d);},'zGQQj':function(_0x1eba39,_0x4ca58b){return _0x1eba39===_0x4ca58b;},'hqXwj':_0x3e204a(0x295),'Pkwaz':_0x3e204a(0x223),'foXpg':'htdvN','QKmRL':function(_0x9451de,_0x5d03ec,_0x19108c){return _0x9451de(_0x5d03ec,_0x19108c);},'wQdJF':function(_0x299809,_0xac16f4){return _0x299809===_0xac16f4;},'rVFaz':_0x3e204a(0x232),'fJhYX':_0x3e204a(0x15c),'eBpOC':_0x3e204a(0x2c3),'yEhHU':'create-grid-checks-null-response','KLWVZ':function(_0x34b703,_0xfb8c0c){return _0x34b703===_0xfb8c0c;},'pnOyF':_0x3e204a(0x146),'vjMVO':_0x3e204a(0x218),'cOQBb':_0x3e204a(0x20f),'EitIf':'create-grid-checks-auth-failed','hBjmd':_0x3e204a(0x23e),'eYZuD':function(_0x15720d,_0x481e8a,_0x475134,_0x2c4d10,_0x43d39c,_0x145141,_0x412d2d,_0x4059d7){return _0x15720d(_0x481e8a,_0x475134,_0x2c4d10,_0x43d39c,_0x145141,_0x412d2d,_0x4059d7);},'giDaj':'create-grid-checks-non-200','cSNDR':_0x3e204a(0x204),'FUMYY':_0x3e204a(0x1dd),'UKaKG':_0x3e204a(0x2bb),'UfFrJ':'XDlGh','tyhVr':_0x3e204a(0x267),'ouSem':'sirWo','VqddT':'zRwyp','ItJzb':'0|4|3|1|2','lidbW':function(_0x4587a3,_0x2ffb63){return _0x4587a3===_0x2ffb63;},'hQEVJ':_0x3e204a(0x231),'XVNKL':function(_0x10961e,_0x15f00b){return _0x10961e===_0x15f00b;},'Yuqkz':function(_0x4f0fcb,_0x54eaf0){return _0x4f0fcb===_0x54eaf0;},'sZxyr':'uTChz','HWijh':_0x3e204a(0x235),'IqHZv':_0x3e204a(0x16c),'fCEFD':function(_0x525a9a,_0x26c546,_0x12bbdc,_0x486104,_0x30aefb,_0xd3275a,_0x5c9de2,_0x168e28){return _0x525a9a(_0x26c546,_0x12bbdc,_0x486104,_0x30aefb,_0xd3275a,_0x5c9de2,_0x168e28);},'FWtau':_0x3e204a(0x1a7),'FVBrN':function(_0x3a57ea,_0x595bac){return _0x3a57ea!==_0x595bac;},'hcOAm':_0x3e204a(0x284),'PdTFo':_0x3e204a(0x217),'kTUYa':function(_0x2db2b9,_0x3d530e){return _0x2db2b9===_0x3d530e;},'nzULW':function(_0x399e62,_0x4a454d){return _0x399e62!==_0x4a454d;},'XYfbI':_0x3e204a(0x237),'QNnXd':function(_0xfc85bb,_0x5ed6bb){return _0xfc85bb!==_0x5ed6bb;},'iWWxD':'aDMlq','gHgPt':_0x3e204a(0x1d4),'KecBr':function(_0x1a4ac1,_0x1e32ed,_0x2a3610,_0x2980af,_0x4297ba,_0xbeb6e2,_0x25bdc4,_0x4a3baf,_0x3a96c3,_0x2700c6,_0x3afa24,_0xfe0fdc,_0x10e8b9){return _0x1a4ac1(_0x1e32ed,_0x2a3610,_0x2980af,_0x4297ba,_0xbeb6e2,_0x25bdc4,_0x4a3baf,_0x3a96c3,_0x2700c6,_0x3afa24,_0xfe0fdc,_0x10e8b9);},'KiYoh':_0x3e204a(0x205),'vxFlN':function(_0x2f6dbf,_0xc39dc4){return _0x2f6dbf!==_0xc39dc4;},'pvfcP':'XrZrM','OsjyA':_0x3e204a(0x29d),'HCpbu':function(_0x59fe35,_0x2c60b8){return _0x59fe35!==_0x2c60b8;},'QsDWf':_0x3e204a(0x1d5),'VVOXV':_0x3e204a(0x19f),'OAuwf':'udXEm','lIJoL':function(_0x134c6c,_0x5639c0){return _0x134c6c!==_0x5639c0;},'GIVqM':_0x3e204a(0x1c6),'LmuPy':_0x3e204a(0x1a6),'paYdL':function(_0x37ab4f,_0x11ce9e,_0x421662,_0x115685,_0x25ae8e,_0x6234bc,_0x52c11a){return _0x37ab4f(_0x11ce9e,_0x421662,_0x115685,_0x25ae8e,_0x6234bc,_0x52c11a);},'JyZHP':'CohVj','KtHZL':'dALlU','XQyjf':function(_0x45dfff,_0x20609f){return _0x45dfff===_0x20609f;},'jBSyn':_0x3e204a(0x2b0),'JWwFy':_0x3e204a(0x2ce),'RFrPW':function(_0x3a927a,_0xce226e){return _0x3a927a===_0xce226e;},'CXZRi':function(_0x3a9731,_0x27bc28){return _0x3a9731!==_0x27bc28;},'ZVJMj':_0x3e204a(0x2dc),'Qxnrg':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','NMkBT':function(_0x5ca11b,_0x159e03){return _0x5ca11b!=_0x159e03;},'EIrcI':function(_0x2bbb4e,_0x183bb2){return _0x2bbb4e!=_0x183bb2;},'Zzwtn':function(_0x45f81a,_0x42da89){return _0x45f81a>_0x42da89;},'PWwNT':function(_0x3423ed,_0x29edb9){return _0x3423ed===_0x29edb9;},'MeUXc':_0x3e204a(0x294),'NZZpc':function(_0x5041ff,_0x4999d8,_0x57ddb1,_0x31c701,_0x1d60eb,_0x3d0ac8,_0x2dd1bf,_0x111e3d){return _0x5041ff(_0x4999d8,_0x57ddb1,_0x31c701,_0x1d60eb,_0x3d0ac8,_0x2dd1bf,_0x111e3d);},'KHVge':_0x3e204a(0x2a3),'kISqR':_0x3e204a(0x2b5),'jAHdx':function(_0x2bad76,_0x173340,_0x53ef39,_0x1634c1,_0x467f06,_0x1172ba,_0x3bba8d,_0x533547){return _0x2bad76(_0x173340,_0x53ef39,_0x1634c1,_0x467f06,_0x1172ba,_0x3bba8d,_0x533547);},'IUfQG':_0x3e204a(0x145),'WPEzz':function(_0x59283d,_0x28d2ea,_0x571832,_0x4c5400,_0x5b42cb,_0x4afe5e,_0x473ca5,_0xd970d0){return _0x59283d(_0x28d2ea,_0x571832,_0x4c5400,_0x5b42cb,_0x4afe5e,_0x473ca5,_0xd970d0);},'ZfIXq':_0x3e204a(0x164),'oFTUi':_0x3e204a(0x2db),'VJtiN':_0x3e204a(0x227),'rmshT':_0x3e204a(0x239),'KAALD':function(_0x2c1ecf,_0x299707,_0x3b9356){return _0x2c1ecf(_0x299707,_0x3b9356);},'uuFPj':function(_0x3830d6,_0x210682){return _0x3830d6===_0x210682;},'JUIhu':_0x3e204a(0x1a0),'Tniie':function(_0x530c82,_0x12ea55,_0xed5506){return _0x530c82(_0x12ea55,_0xed5506);},'ZAZTC':'Adding\x20Secret\x20Mapping','uJDhY':_0x3e204a(0x1fb),'JGdaM':_0x3e204a(0x1b7),'IMhBP':_0x3e204a(0x246),'aQovw':_0x3e204a(0x14a),'kuifj':'utf-8','uwdwW':_0x3e204a(0x1cf),'RJRCj':_0x3e204a(0x229),'PoEtT':function(_0x55c7ac,_0x407bb9){return _0x55c7ac===_0x407bb9;},'wXFzz':_0x3e204a(0x282),'mKpOz':_0x3e204a(0x179),'aFWzL':function(_0x320efa,_0x35c6b0,_0x41763b){return _0x320efa(_0x35c6b0,_0x41763b);},'hFRDe':'Added\x20Redis\x20deployment.','NQXlS':_0x3e204a(0x242),'BNbVV':_0x3e204a(0x1ee),'YtvOX':function(_0xe4b250,_0x25e34a,_0x195ee6){return _0xe4b250(_0x25e34a,_0x195ee6);},'ysecL':_0x3e204a(0x134),'dGEEZ':_0x3e204a(0x18b),'fmKch':'turboscale-uploader.yaml','wpXOH':function(_0x1b17c1,_0x399f47){return _0x1b17c1===_0x399f47;},'QRmMJ':function(_0x347704,_0x14c54c,_0x2d5f26){return _0x347704(_0x14c54c,_0x2d5f26);},'uKqpX':_0x3e204a(0x1e2),'KnePU':_0x3e204a(0x150),'bZFct':_0x3e204a(0x28d),'fGaUn':_0x3e204a(0x12a),'ikjbV':_0x3e204a(0x276),'pLVxG':'Creating\x20namespace','epZef':function(_0xaa9b9c,_0x3a1f44){return _0xaa9b9c!==_0x3a1f44;},'dxptf':_0x3e204a(0x1b0),'zZZOY':_0x3e204a(0x2c4),'IhGNE':'Namespace\x20created','HlXBT':_0x3e204a(0x2da),'RkzNz':_0x3e204a(0x264),'AZYJG':function(_0x12c6d9,_0x39faa8){return _0x12c6d9===_0x39faa8;},'cQMrm':function(_0x466218,_0x55f3d2,_0x3a5fae,_0x3b1bdd,_0x434f30,_0x160850,_0x106ea1,_0x4d851e,_0x536d8c,_0x53b451,_0x101b7b){return _0x466218(_0x55f3d2,_0x3a5fae,_0x3b1bdd,_0x434f30,_0x160850,_0x106ea1,_0x4d851e,_0x536d8c,_0x53b451,_0x101b7b);},'QTsnI':_0x3e204a(0x29b),'xItlH':_0x3e204a(0x17c),'Uvzcp':function(_0x3f3699,_0x22da77,_0x4c0d56,_0x57098c,_0x25eba1){return _0x3f3699(_0x22da77,_0x4c0d56,_0x57098c,_0x25eba1);},'xpOuI':_0x3e204a(0x299),'PECrO':'ingress-nginx-controller','ENGuC':_0x3e204a(0x26c),'qzBez':function(_0x180db0,_0x4bbbb8,_0x45c58f){return _0x180db0(_0x4bbbb8,_0x45c58f);},'BENcg':function(_0x53e961,_0x4330b7){return _0x53e961===_0x4330b7;},'wIrZO':_0x3e204a(0x1af),'uqQCa':_0x3e204a(0x26f),'myCNd':function(_0x5e3745,_0x3aa2e6){return _0x5e3745===_0x3aa2e6;},'myyPR':_0x3e204a(0x1cc),'ZKwpg':'get-grid-url-auth-failed','viEtk':'get-grid-url-non-200','NhBGT':_0x3e204a(0x159),'wjzjY':function(_0xcb7d9c,_0x257180,_0x3557e1,_0x256e38,_0x5589b5,_0x56ba07){return _0xcb7d9c(_0x257180,_0x3557e1,_0x256e38,_0x5589b5,_0x56ba07);},'sfzxu':function(_0xa4e918,_0x320f96,_0x5c3ff1,_0x21062f,_0x2751cf,_0x517df9,_0x3e66d5){return _0xa4e918(_0x320f96,_0x5c3ff1,_0x21062f,_0x2751cf,_0x517df9,_0x3e66d5);},'RAjOy':_0x3e204a(0x2ba)};let _0x59d323=![],_0x300a6d=![],_0xcbad21,_0xfe3607,_0xfedaaf,_0x1d4f54,_0x260a16,_0xea88e1,_0x356d96,_0x46cf34,_0x14eada,_0x3a3306,_0x48140e,_0xd290ba,_0x105bf3,_0x2c8ba2,_0xe11ca4=0x1,_0x25bd9c=0xe;try{global_registry['requestId']=_0x2fd649[_0x3e204a(0x1e6)](uuidv4),global_registry[_0x3e204a(0x1d0)]=![];!fs[_0x3e204a(0x2a4)](_0x2fd649[_0x3e204a(0x120)](getCredentialsPath))&&(_0x2fd649[_0x3e204a(0x20b)](_0x2fd649[_0x3e204a(0x24e)],_0x2fd649[_0x3e204a(0x1c7)])?_0x6eaa16=_0x313d6d[_0x21aa4b[_0x3e204a(0x261)]]:(console[_0x3e204a(0x18a)](_0x2fd649['oBRej']),await _0x2fd649['tlNLd'](sendInstrumentationEvent,_0x50c06e,_0x2fd649['BbQnC'],messageTypes[_0x3e204a(0x192)],_0x2fd649[_0x3e204a(0x225)],null,_0x50c06e),process['exit'](0x1)));await _0x2fd649[_0x3e204a(0x184)](sendInstrumentationEvent,_0x50c06e,_0x2fd649[_0x3e204a(0x199)],messageTypes[_0x3e204a(0x25a)],null,null,_0x50c06e);const _0x1e573b=JSON['parse'](fs['readFileSync'](_0x2fd649['kolsj'](getCredentialsPath)));global_registry[_0x3e204a(0x2af)]=_0x1e573b[_0x3e204a(0x1b0)]['username'],global_registry[_0x3e204a(0x2d4)]=_0x1e573b['Browserstack']['password'];const _0x2798df=WS_ENDPOINT[_0x3e204a(0x28c)](_0x2fd649[_0x3e204a(0x23f)],_0x1e573b[_0x3e204a(0x1b0)]['username'])[_0x3e204a(0x28c)](_0x2fd649['LKcXF'],_0x1e573b[_0x3e204a(0x1b0)][_0x3e204a(0x185)]),_0x5bcf51={};_0x5bcf51[_0x3e204a(0x250)]=ws,_0x5bcf51[_0x3e204a(0x2c2)]=0x36ee80,_0xd290ba=new ReconnectingWebSocket(_0x2798df,[],_0x5bcf51),logger[_0x3e204a(0x241)](_0x2fd649[_0x3e204a(0x171)]),webSocketUtils[_0x3e204a(0x14e)](_0xd290ba,_0x50c06e[_0x3e204a(0x2d8)],_0x50c06e['password']);const _0x4501eb=_0x50c06e[_0x3e204a(0x24c)]||DEFAULT_GRID_NAME;if(_0x50c06e[_0x3e204a(0x21b)]||_0x50c06e[_0x3e204a(0x21c)]||_0x50c06e[_0x3e204a(0x293)]){if(_0x2fd649[_0x3e204a(0x27c)](_0x2fd649[_0x3e204a(0x143)],_0x2fd649[_0x3e204a(0x143)]))_0x2439c7[_0x3e204a(0x213)]('Found\x20VPC:\x20'+_0x22c6cb+'\x20');else{!(_0x50c06e[_0x3e204a(0x21b)]&&_0x50c06e[_0x3e204a(0x21c)]&&_0x50c06e[_0x3e204a(0x293)])&&(_0x2fd649[_0x3e204a(0x26d)](_0x2fd649[_0x3e204a(0x259)],_0x2fd649[_0x3e204a(0x259)])?_0x2fd649[_0x3e204a(0x2b1)](_0x4691c7,_0x424ba9[_0x3e204a(0x27f)]):(_0xcbad21=_0x2fd649['WZBfj'],await _0x2fd649[_0x3e204a(0x17f)](reportToGalactusAndSendToEDS,_0x50c06e,_0xd290ba,_0xcbad21,messageTypes[_0x3e204a(0x192)],_0x2fd649[_0x3e204a(0x199)],_0x2fd649[_0x3e204a(0x1a9)],_0x2fd649['lvdcJ']),logger[_0x3e204a(0x18a)](_0xcbad21),process['exit'](0x1)));if(![AWS,AZURE,GCP]['includes'](_0x50c06e[_0x3e204a(0x21c)]['toLowerCase']())){if(_0x2fd649[_0x3e204a(0x137)](_0x2fd649[_0x3e204a(0x187)],_0x2fd649[_0x3e204a(0x187)]))throw new _0x11a6b7(_0x3e204a(0x1c2)+_0x2d455d+_0x3e204a(0x247));else _0xcbad21=_0x2fd649[_0x3e204a(0x22e)],await _0x2fd649[_0x3e204a(0x219)](reportToGalactusAndSendToEDS,_0x50c06e,_0xd290ba,_0xcbad21,messageTypes['ERROR'],_0x2fd649[_0x3e204a(0x199)],_0x2fd649[_0x3e204a(0x130)],_0x2fd649[_0x3e204a(0x149)]),logger[_0x3e204a(0x18a)](_0xcbad21),process[_0x3e204a(0x296)](0x1);}_0x50c06e[_0x3e204a(0x2c7)]&&_0x2fd649[_0x3e204a(0x2a2)](_0x50c06e[_0x3e204a(0x2c7)][_0x3e204a(0x15b)](),_0x2fd649[_0x3e204a(0x196)])&&(_0x2fd649['xXnyb'](_0x2fd649[_0x3e204a(0x19a)],_0x2fd649[_0x3e204a(0x16e)])?global_registry[_0x3e204a(0x1d0)]=!![]:_0x2fd649[_0x3e204a(0x2b1)](_0x5d46a2,_0x4dd39d['kafkaUploader']));global_registry['cloudProvider']=_0x50c06e['cloudProvider'],global_registry[_0x3e204a(0x2cb)]=_0x50c06e[_0x3e204a(0x293)],global_registry[_0x3e204a(0x21b)]=_0x50c06e[_0x3e204a(0x21b)];const _0x544751=await _0x2fd649[_0x3e204a(0x1db)](getCloudProviderObject,_0x50c06e[_0x3e204a(0x21c)],_0x50c06e[_0x3e204a(0x21b)],_0x4501eb,_0xd290ba,webSocketUtils,_0x50c06e),_0x28f4da=await _0x544751[_0x3e204a(0x1b5)]();if(!_0x28f4da)_0x2fd649[_0x3e204a(0x12f)](_0x2fd649['WiMLi'],_0x2fd649[_0x3e204a(0x140)])?_0x25f602[_0x3e204a(0x1d0)]=!![]:(logger[_0x3e204a(0x213)](_0x3e204a(0x128)+_0x50c06e[_0x3e204a(0x21b)]+_0x3e204a(0x24f)),_0x59d323=![],_0x300a6d=!![]);else{if(_0x2fd649[_0x3e204a(0x161)](_0x2fd649[_0x3e204a(0x1a1)],_0x2fd649[_0x3e204a(0x1a1)])){const _0xe0279e=_0x2fd649[_0x3e204a(0x17a)][_0x3e204a(0x1b9)]('|');let _0x527edb=0x0;while(!![]){switch(_0xe0279e[_0x527edb++]){case'0':_0x8590c2[_0x3e204a(0x15d)]=!![];continue;case'1':_0x72ef1e[_0x3e204a(0x213)](_0x2fd649[_0x3e204a(0x144)]);continue;case'2':_0x33ae56[_0x3e204a(0x2c1)]=_0x2fd649['IZZQL'];continue;case'3':_0xeaec8[_0x3e204a(0x16a)]=_0x2fd649[_0x3e204a(0x1f8)];continue;case'4':_0xfe37c7[_0x3e204a(0x12c)]=_0x2fd649[_0x3e204a(0x2bc)];continue;}break;}}else _0x59d323=!![];}_0xfedaaf=_0x50c06e[_0x3e204a(0x21b)],_0xfe3607=_0x50c06e[_0x3e204a(0x21c)][_0x3e204a(0x15b)](),_0x1d4f54=_0x50c06e[_0x3e204a(0x293)];}}else _0x50c06e[_0x3e204a(0x261)]&&(_0x2fd649[_0x3e204a(0x27c)](_0x2fd649[_0x3e204a(0x1f7)],_0x2fd649[_0x3e204a(0x1f7)])?_0x1d55b6=null:global_registry[_0x3e204a(0x261)]=_0x50c06e[_0x3e204a(0x261)]);global_registry[_0x3e204a(0x24c)]=_0x50c06e[_0x3e204a(0x24c)];const _0x569f72={'method':_0x2fd649['tgYoM'],'headers':_0x2fd649[_0x3e204a(0x1ec)](getAuthHeader,_0x1e573b[_0x3e204a(0x1b0)]['username'],_0x1e573b['Browserstack']['password']),'throwHttpErrors':![]},_0x22bd10={};_0x22bd10[_0x3e204a(0x24c)]=_0x4501eb;const _0x50d077=_0x22bd10;_0x300a6d&&(_0x2fd649['zGQQj'](_0x2fd649[_0x3e204a(0x1dc)],_0x2fd649[_0x3e204a(0x1dc)])?(_0x50d077[_0x3e204a(0x293)]=_0x1d4f54,_0x50d077[_0x3e204a(0x21c)]=_0xfe3607,_0x50d077[_0x3e204a(0x23b)]=!![],_0x50d077[_0x3e204a(0x249)]=_0x50c06e[_0x3e204a(0x174)]):_0x2e579d['sendResourceDataToHST']());_0x50c06e[_0x3e204a(0x174)]&&(_0x2fd649[_0x3e204a(0x27e)](_0x2fd649[_0x3e204a(0x2d3)],_0x2fd649[_0x3e204a(0x224)])?logger['info'](_0x2fd649[_0x3e204a(0x170)]):_0x4389ae=!![]);const _0x3bdea6=_0x3e204a(0x1f0)+AG_API_URL+_0x3e204a(0x277),_0x41450c={'searchParams':_0x50d077,'throwHttpErrors':![],..._0x569f72},_0x3bd41f=_0x41450c,_0x2c3bc8=await _0x2fd649['QKmRL'](got,_0x3bdea6,_0x3bd41f);(_0x2fd649['wQdJF'](_0x2c3bc8,null)||_0x2fd649['qqlfc'](_0x2c3bc8,undefined))&&(_0x2fd649[_0x3e204a(0x26d)](_0x2fd649['rVFaz'],_0x2fd649[_0x3e204a(0x142)])?(_0xcbad21=_0x2fd649['eBpOC'],await _0x2fd649[_0x3e204a(0x17f)](reportToGalactusAndSendToEDS,_0x50c06e,_0xd290ba,_0xcbad21,messageTypes[_0x3e204a(0x192)],_0x2fd649[_0x3e204a(0x199)],_0x2fd649[_0x3e204a(0x28f)],_0x2fd649['lvdcJ']),logger[_0x3e204a(0x18a)](_0xcbad21),process['exit'](0x1)):(_0x15c573[_0x3e204a(0x293)]=_0xad2234,_0x410782[_0x3e204a(0x21c)]=_0xe6a6be,_0x28f9ba[_0x3e204a(0x23b)]=!![],_0x217c00['clusterAutoUpgrade']=_0x240c76['clusterAutoupgrade']));_0x2fd649[_0x3e204a(0x278)](_0x2c3bc8[_0x3e204a(0x23a)],0x191)&&(_0x2fd649[_0x3e204a(0x161)](_0x2fd649[_0x3e204a(0x2b4)],_0x2fd649[_0x3e204a(0x228)])?(_0xcbad21=_0x2fd649[_0x3e204a(0x245)],await _0x2fd649[_0x3e204a(0x17f)](reportToGalactusAndSendToEDS,_0x50c06e,_0xd290ba,_0xcbad21,messageTypes[_0x3e204a(0x192)],_0x2fd649[_0x3e204a(0x199)],_0x2fd649[_0x3e204a(0x2ac)],_0x2fd649[_0x3e204a(0x149)]),logger[_0x3e204a(0x18a)](_0xcbad21),process[_0x3e204a(0x296)](0x1)):_0x2483cb['info']('Found\x20Subnets:\x20'+_0x21dd4d[_0x3e204a(0x13a)](_0x3754a1)+'\x20'));_0x2fd649[_0x3e204a(0x161)](_0x2c3bc8[_0x3e204a(0x23a)],0xc8)&&(_0x2fd649[_0x3e204a(0x20a)](_0x2fd649[_0x3e204a(0x157)],_0x2fd649['hBjmd'])?(_0xcbad21=_0x3e204a(0x2d7)+JSON[_0x3e204a(0x13a)](_0x2c3bc8[_0x3e204a(0x189)]),await _0x2fd649[_0x3e204a(0x1ed)](reportToGalactusAndSendToEDS,_0x50c06e,_0xd290ba,_0xcbad21,messageTypes[_0x3e204a(0x192)],_0x2fd649[_0x3e204a(0x199)],_0x2fd649['giDaj'],_0x2fd649[_0x3e204a(0x149)]),logger[_0x3e204a(0x18a)](_0xcbad21),process['exit'](0x1)):_0x2b39e9[_0x3e204a(0x261)]=_0x8a506d[_0x3e204a(0x261)]);const _0x5a0846=JSON[_0x3e204a(0x22a)](_0x2c3bc8[_0x3e204a(0x189)]),_0x254995={};_0x254995['type']=WS_EVENTS[_0x3e204a(0x1d1)],_0x254995[_0x3e204a(0x2a1)]=_0x2fd649[_0x3e204a(0x265)],webSocketUtils[_0x3e204a(0x1ad)](_0xd290ba,_0x254995);const _0x501f28={};_0x501f28['type']=WS_EVENTS['LOG'],_0x501f28[_0x3e204a(0x2a1)]=_0x2fd649['cSNDR'],webSocketUtils['sendEventToBackend'](_0xd290ba,_0x501f28);_0x5a0846['alreadyPresent']&&(_0x2fd649[_0x3e204a(0x27e)](_0x2fd649[_0x3e204a(0x190)],_0x2fd649[_0x3e204a(0x190)])?(_0x274d65[_0x3e204a(0x213)](_0x3e204a(0x128)+_0x26393c[_0x3e204a(0x21b)]+_0x3e204a(0x24f)),_0x570224=![],_0x19baba=!![]):(_0xcbad21=_0x3e204a(0x258)+_0x4501eb+_0x3e204a(0x18e),await _0x2fd649[_0x3e204a(0x1ed)](reportToGalactusAndSendToEDS,_0x50c06e,_0xd290ba,_0xcbad21,messageTypes['ERROR'],_0x2fd649[_0x3e204a(0x199)],_0x2fd649[_0x3e204a(0x2d1)],_0x2fd649[_0x3e204a(0x149)]),logger[_0x3e204a(0x18a)](_0xcbad21),process[_0x3e204a(0x296)](0x1)));const _0x280ae0=_0x5a0846[_0x3e204a(0x222)];let _0x4b404f=_0x280ae0[_0x5a0846[_0x3e204a(0x209)]];_0x50c06e[_0x3e204a(0x261)]&&(_0x2fd649['xXnyb'](_0x2fd649[_0x3e204a(0x290)],_0x2fd649[_0x3e204a(0x2d2)])?_0x4b404f=_0x280ae0[_0x50c06e[_0x3e204a(0x261)]]:_0x351cb6[_0x3e204a(0x1d0)]=!![]);global_registry[_0x3e204a(0x15d)]=![];if(_0x50c06e[_0x3e204a(0x2a9)]){if(_0x2fd649[_0x3e204a(0x161)](_0x2fd649[_0x3e204a(0x1b1)],_0x2fd649[_0x3e204a(0x17e)])){const _0x82ced0=_0x2fd649[_0x3e204a(0x286)][_0x3e204a(0x1b9)]('|');let _0x37acab=0x0;while(!![]){switch(_0x82ced0[_0x37acab++]){case'0':logger['info'](_0x2fd649[_0x3e204a(0x144)]);continue;case'1':global_registry[_0x3e204a(0x12c)]=_0x2fd649[_0x3e204a(0x2bc)];continue;case'2':global_registry[_0x3e204a(0x15d)]=!![];continue;case'3':global_registry['redisPassword']=_0x2fd649[_0x3e204a(0x1bc)];continue;case'4':global_registry[_0x3e204a(0x16a)]=_0x2fd649['nHEWm'];continue;}break;}}else _0x5f3a5e[_0x3e204a(0x213)](_0x2fd649['UYUch']);}if(_0x2fd649['lidbW'](_0x59d323,![])&&_0x2fd649[_0x3e204a(0x12f)](_0x300a6d,![])){if(_0x2fd649[_0x3e204a(0x27e)](_0x2fd649[_0x3e204a(0x1f3)],_0x2fd649[_0x3e204a(0x1f3)]))_0x2c6995=_0x2fd649[_0x3e204a(0x25c)];else{_0x2fd649[_0x3e204a(0x1f9)](_0x4b404f,undefined)&&(_0x2fd649[_0x3e204a(0x2a7)](_0x2fd649[_0x3e204a(0x1be)],_0x2fd649['HWijh'])?_0x35ffac['isPrivateGrid']=!![]:(_0xcbad21=_0x2fd649[_0x3e204a(0x233)],await _0x2fd649[_0x3e204a(0x2c8)](reportToGalactusAndSendToEDS,_0x50c06e,_0xd290ba,_0xcbad21,messageTypes['ERROR'],_0x2fd649['BbQnC'],_0x2fd649['FWtau'],_0x2fd649['lvdcJ']),logger[_0x3e204a(0x18a)](_0xcbad21),process[_0x3e204a(0x296)](0x1)));global_registry[_0x3e204a(0x206)]=_0x4b404f['id'],_0xcbad21=_0x3e204a(0x16f)+_0x4501eb+_0x3e204a(0x12b)+_0x4b404f[_0x3e204a(0x298)]+_0x3e204a(0x12d),logger['info'](_0xcbad21);const _0x48f533={};_0x48f533[_0x3e204a(0x19d)]=WS_EVENTS['LOG'],_0x48f533['message']=_0xcbad21,webSocketUtils[_0x3e204a(0x1ad)](_0xd290ba,_0x48f533),_0xfe3607=_0x4b404f['cloudProvider'],_0xfedaaf=_0x4b404f['clusterName'],_0x1d4f54=_0x4b404f['region'],_0x260a16=_0x4b404f[_0x3e204a(0x127)],_0xea88e1=_0x4b404f[_0x3e204a(0x22b)],_0x356d96=_0x4b404f[_0x3e204a(0x126)],_0x46cf34=_0x4b404f[_0x3e204a(0x1bb)],_0x14eada=_0x4b404f[_0x3e204a(0x2d9)],_0x3a3306=_0x4b404f[_0x3e204a(0x248)],_0xe11ca4=_0x4b404f[_0x3e204a(0x243)],_0x25bd9c=_0x4b404f[_0x3e204a(0x2ad)],_0x105bf3=_0x5a0846[_0x3e204a(0x1c5)],_0x2c8ba2=_0x5a0846[_0x3e204a(0x1ab)];_0x356d96&&_0x2fd649[_0x3e204a(0x12f)](_0x356d96[_0x3e204a(0x2d5)],0x0)&&(_0x2fd649[_0x3e204a(0x22d)](_0x2fd649['hcOAm'],_0x2fd649['PdTFo'])?_0x356d96=null:_0x4ee1c5[_0x3e204a(0x18a)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x5f42ec+'\x20\x0a'+_0x32863d[_0x3e204a(0x13a)](_0x3e5867['stack'])));_0x14eada&&_0x2fd649[_0x3e204a(0x180)](_0x14eada[_0x3e204a(0x2d5)],0x0)&&(_0x2fd649[_0x3e204a(0x29f)](_0x2fd649['XYfbI'],_0x2fd649['XYfbI'])?_0x5091f1=null:_0x14eada=null);_0x2fd649[_0x3e204a(0x230)](_0x4b404f[_0x3e204a(0x2c7)],undefined)&&_0x4b404f[_0x3e204a(0x2c7)]&&(_0x2fd649[_0x3e204a(0x2a7)](_0x2fd649[_0x3e204a(0x272)],_0x2fd649[_0x3e204a(0x13e)])?_0x4f841f=_0x2fd649[_0x3e204a(0x1d9)]:global_registry[_0x3e204a(0x1d0)]=!![]);_0x2fd649[_0x3e204a(0x211)](updateGlobalRegistryWithConfig,_0xfe3607,_0xfedaaf,_0x1d4f54,_0x260a16,_0xea88e1,_0x3a3306,_0x4b404f,_0x105bf3,_0x2c8ba2,_0xe11ca4,_0x25bd9c,_0x50c06e[_0x3e204a(0x174)]);if(global_registry[_0x3e204a(0x15d)]){if(_0x2fd649[_0x3e204a(0x1e9)](_0x2fd649['KiYoh'],_0x2fd649[_0x3e204a(0x236)]))_0x2fd649[_0x3e204a(0x163)](updateGlobalRegistryForHubHa,_0x5a0846['uploaderVersion']);else{const _0x324a8c=_0x2fd649[_0x3e204a(0x19c)][_0x3e204a(0x1b9)]('|');let _0xa81e53=0x0;while(!![]){switch(_0x324a8c[_0xa81e53++]){case'0':_0x37babf[_0x3e204a(0x1c5)]=_0x716b0a[_0x3e204a(0x1c5)];continue;case'1':const _0x58f58c={};_0x58f58c['type']=_0x4bee0d['LOG'],_0x58f58c['message']=_0x51c484,_0x257270['sendEventToBackend'](_0x575207,_0x58f58c);continue;case'2':_0x2d971e=_0x3e204a(0x176)+_0x2496fc+_0x3e204a(0x203)+_0x17e744+'\x27';continue;case'3':_0x37d013['cloudProvider']=_0x349831;continue;case'4':_0x412e9c[_0x3e204a(0x213)](_0x1b0355);continue;case'5':_0x29e4a5[_0x3e204a(0x1ab)]=_0x481bfd[_0x3e204a(0x1ab)];continue;case'6':_0x4362c9[_0x3e204a(0x21b)]=_0x6fe047;continue;case'7':_0x289c52[_0x3e204a(0x2cb)]=_0x487cc2;continue;case'8':const _0x22af75={};_0x22af75[_0x3e204a(0x19d)]=_0x6ca3f1[_0x3e204a(0x1d1)],_0x22af75[_0x3e204a(0x2a1)]=_0x2fd649[_0x3e204a(0x265)],_0x23819b['sendEventToBackend'](_0x4cb442,_0x22af75);continue;}break;}}}}}else{if(_0x2fd649['zGQQj'](_0x300a6d,!![])){if(_0x2fd649[_0x3e204a(0x24d)](_0x2fd649[_0x3e204a(0x1c3)],_0x2fd649['OsjyA'])){_0xcbad21=_0x3e204a(0x22c)+_0x4501eb,logger['info'](_0xcbad21);const _0x437192={};_0x437192['type']=WS_EVENTS['LOG'],_0x437192[_0x3e204a(0x2a1)]=_0xcbad21,webSocketUtils[_0x3e204a(0x1ad)](_0xd290ba,_0x437192),_0x260a16=_0x4b404f['concurrency'],_0xea88e1=_0x4b404f[_0x3e204a(0x22b)],_0x356d96=null,_0x46cf34=null,_0x14eada=null,_0x3a3306=_0x4b404f[_0x3e204a(0x248)],_0xe11ca4=_0x4b404f['minNodes'],_0x25bd9c=_0x4b404f[_0x3e204a(0x2ad)],_0x105bf3=_0x5a0846[_0x3e204a(0x1c5)],_0x2c8ba2=_0x5a0846['browserVersion'];if(_0x2fd649[_0x3e204a(0x194)](_0x4b404f['privateGrid'],undefined)&&_0x4b404f[_0x3e204a(0x2c7)]){if(_0x2fd649[_0x3e204a(0x278)](_0x2fd649[_0x3e204a(0x255)],_0x2fd649[_0x3e204a(0x255)]))global_registry[_0x3e204a(0x1d0)]=!![];else{const _0x91fcba={'azure.workload.identity/use':_0x2fd649[_0x3e204a(0x196)],..._0x5a019f[0x0][_0x3e204a(0x1fe)][_0x3e204a(0x1a4)][_0x3e204a(0x238)][_0x3e204a(0x27b)]};_0x38c6b8[0x0][_0x3e204a(0x1fe)]['template']['metadata'][_0x3e204a(0x27b)]=_0x91fcba,_0x25d324[0x0][_0x3e204a(0x1fe)][_0x3e204a(0x1a4)][_0x3e204a(0x1fe)]['serviceAccountName']=_0x2fd649[_0x3e204a(0x1ef)];}}_0x2fd649['NmYiB'](updateGlobalRegistryWithConfig,_0xfe3607,_0xfedaaf,_0x1d4f54,_0x260a16,_0xea88e1,_0x3a3306,_0x4b404f,_0x105bf3,_0x2c8ba2,_0xe11ca4,_0x25bd9c,_0x50c06e[_0x3e204a(0x174)]),global_registry[_0x3e204a(0x15d)]&&(_0x2fd649[_0x3e204a(0x15a)](_0x2fd649[_0x3e204a(0x252)],_0x2fd649[_0x3e204a(0x131)])?(_0xe65cc7=_0x28e1b0[_0x3e204a(0x1c9)],_0x3df289=_0x2fd649['ngYNf']):_0x2fd649[_0x3e204a(0x163)](updateGlobalRegistryForHubHa,_0x5a0846[_0x3e204a(0x154)]));}else{const _0x323a7f={};_0x323a7f['type']=_0x4cc2df[_0x3e204a(0x141)],_0x323a7f['message']=_0x1cb827,_0xc7f5f5[_0x3e204a(0x1ad)](_0x138bde,_0x323a7f,_0x2fd649['lvdcJ'],!![]);}}else{if(_0x2fd649[_0x3e204a(0x16b)](_0x2fd649[_0x3e204a(0x136)],_0x2fd649[_0x3e204a(0x136)]))_0x4993f6=_0x2fd649[_0x3e204a(0x1fa)];else{const _0x1a26ed=_0x2fd649['LmuPy'][_0x3e204a(0x1b9)]('|');let _0x2a2427=0x0;while(!![]){switch(_0x1a26ed[_0x2a2427++]){case'0':global_registry[_0x3e204a(0x21b)]=_0xfedaaf;continue;case'1':const _0x573d37={};_0x573d37[_0x3e204a(0x19d)]=WS_EVENTS[_0x3e204a(0x1d1)],_0x573d37[_0x3e204a(0x2a1)]=_0x2fd649[_0x3e204a(0x265)],webSocketUtils[_0x3e204a(0x1ad)](_0xd290ba,_0x573d37);continue;case'2':global_registry[_0x3e204a(0x1ab)]=_0x5a0846['browserVersion'];continue;case'3':logger[_0x3e204a(0x213)](_0xcbad21);continue;case'4':global_registry[_0x3e204a(0x21c)]=_0xfe3607;continue;case'5':_0xcbad21=_0x3e204a(0x176)+_0x4501eb+_0x3e204a(0x203)+_0xfedaaf+'\x27';continue;case'6':global_registry[_0x3e204a(0x1c5)]=_0x5a0846[_0x3e204a(0x1c5)];continue;case'7':global_registry[_0x3e204a(0x2cb)]=_0x1d4f54;continue;case'8':const _0x2d9f54={};_0x2d9f54[_0x3e204a(0x19d)]=WS_EVENTS[_0x3e204a(0x141)],_0x2d9f54[_0x3e204a(0x2a1)]=_0xcbad21,webSocketUtils['sendEventToBackend'](_0xd290ba,_0x2d9f54);continue;}break;}}}}const _0x4f383f=await _0x2fd649[_0x3e204a(0x1df)](getCloudProviderObject,_0xfe3607,_0xfedaaf,_0x4501eb,_0xd290ba,webSocketUtils,_0x50c06e);if(_0x2fd649[_0x3e204a(0x16b)](_0xfe3607,AZURE)){if(_0x2fd649[_0x3e204a(0x194)](_0x2fd649[_0x3e204a(0x240)],_0x2fd649['KtHZL']))_0x4f383f[_0x3e204a(0x21f)]();else{const _0x30fa1e={};_0x30fa1e['description']=_0x2fd649[_0x3e204a(0x1bd)],_0x30fa1e[_0x3e204a(0x19d)]=_0x2fd649[_0x3e204a(0x173)];const _0x2f3635={};_0x2f3635['description']=_0x2fd649[_0x3e204a(0x270)],_0x2f3635[_0x3e204a(0x19d)]=_0x2fd649[_0x3e204a(0x173)];const _0x51e12f={};_0x51e12f[_0x3e204a(0x2b2)]=_0x2fd649['lPipK'],_0x51e12f[_0x3e204a(0x19d)]=_0x2fd649['sjPxA'];const _0x1f004d={};_0x1f004d[_0x3e204a(0x2b2)]=_0x2fd649['izydd'],_0x1f004d['type']=_0x2fd649[_0x3e204a(0x173)];const _0x223317={};_0x223317['description']=_0x2fd649[_0x3e204a(0x1e0)],_0x223317['type']=_0x2fd649[_0x3e204a(0x173)];const _0x1d61b0={};_0x1d61b0[_0x3e204a(0x2b2)]=_0x2fd649[_0x3e204a(0x20c)],_0x1d61b0[_0x3e204a(0x19d)]=_0x2fd649[_0x3e204a(0x173)];const _0x496117={};_0x496117[_0x3e204a(0x2b2)]=_0x2fd649[_0x3e204a(0x19e)],_0x496117['type']=_0x2fd649[_0x3e204a(0x19b)],_0x496117[_0x3e204a(0x1ea)]=![];const _0xb94319={};_0xb94319['description']=_0x2fd649[_0x3e204a(0x1eb)],_0xb94319[_0x3e204a(0x19d)]=_0x2fd649[_0x3e204a(0x19b)],_0xb94319[_0x3e204a(0x1ea)]=![];const _0x55c08e={};_0x55c08e['description']=_0x2fd649[_0x3e204a(0x215)],_0x55c08e[_0x3e204a(0x19d)]=_0x2fd649['SSnpS'],_0x55c08e[_0x3e204a(0x1ea)]=![];const _0x57914d={};return _0x57914d[_0x3e204a(0x13d)]=_0x30fa1e,_0x57914d[_0x3e204a(0x1c0)]=_0x2f3635,_0x57914d[_0x3e204a(0x1e8)]=_0x51e12f,_0x57914d[_0x3e204a(0x2a0)]=_0x1f004d,_0x57914d[_0x3e204a(0x293)]=_0x223317,_0x57914d[_0x3e204a(0x1e4)]=_0x1d61b0,_0x57914d['skip-tls-cert-verify']=_0x496117,_0x57914d[_0x3e204a(0x197)]=_0xb94319,_0x57914d[_0x3e204a(0x2dd)]=_0x55c08e,_0x25590b[_0x3e204a(0x165)](_0x43c99b[_0x3e204a(0x193)])[_0x3e204a(0x1a2)](_0xa8870a)[_0x3e204a(0x29c)](_0x57914d)['help'](_0x2fd649['wxwcp'])['argv'];}}let _0xb68c08;if(_0x2fd649[_0x3e204a(0x15f)](_0x59d323,![])){_0xcbad21='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x1d4f54+').';const _0x3d48cf={};_0x3d48cf[_0x3e204a(0x19d)]=WS_EVENTS['LOG'],_0x3d48cf[_0x3e204a(0x2a1)]=_0xcbad21,webSocketUtils['sendEventToBackend'](_0xd290ba,_0x3d48cf),logger[_0x3e204a(0x213)](_0xcbad21);const _0xc34fa0=await _0x4f383f['isClusterPresent']();if(_0xc34fa0){if(_0x2fd649[_0x3e204a(0x27e)](_0x2fd649[_0x3e204a(0x2ca)],_0x2fd649[_0x3e204a(0x21e)])){const _0x190b69={};_0x190b69[_0x3e204a(0x19d)]=WS_EVENTS[_0x3e204a(0x141)],_0x190b69[_0x3e204a(0x2a1)]=_0x3e204a(0x1c2)+_0xfedaaf+_0x3e204a(0x1f2),webSocketUtils[_0x3e204a(0x1ad)](_0xd290ba,_0x190b69,_0x2fd649[_0x3e204a(0x27a)]),logger[_0x3e204a(0x213)](_0x3e204a(0x1c2)+_0xfedaaf+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x59d323=!![];if(_0x2fd649[_0x3e204a(0x152)](_0x300a6d,!![])){if(_0x2fd649[_0x3e204a(0x1c4)](_0x2fd649['ZVJMj'],_0x2fd649[_0x3e204a(0x1ce)])){const _0xdfe8c5=_0x2fd649[_0x3e204a(0x274)]['split']('|');let _0x463764=0x0;while(!![]){switch(_0xdfe8c5[_0x463764++]){case'0':_0x4f25b0=_0x25b364[_0x3e204a(0x127)];continue;case'1':const _0x4ac55d={};_0x4ac55d[_0x3e204a(0x19d)]=_0x4f0d7e[_0x3e204a(0x141)],_0x4ac55d['message']=_0x47b10e,_0x2774a4[_0x3e204a(0x1ad)](_0x525a38,_0x4ac55d);continue;case'2':_0x170a1e=null;continue;case'3':_0x3c0401=_0x3ed764['minNodes'];continue;case'4':_0x3622bc=null;continue;case'5':_0x153297=_0x1ecb61[_0x3e204a(0x22b)];continue;case'6':_0x63b588['info'](_0x3490a3);continue;case'7':_0x2b04ee=null;continue;case'8':_0x52c408[_0x3e204a(0x15d)]&&_0x2fd649[_0x3e204a(0x163)](_0x3a65d3,_0x2e4954[_0x3e204a(0x154)]);continue;case'9':_0x2fd649[_0x3e204a(0x279)](_0x172455,_0xa710c6,_0x1d3434,_0x4b6208,_0x19a932,_0x376348,_0x49d285,_0xc5cc4d,_0x76d0b,_0x3c93e7,_0x3fac08,_0x2ae2de,_0x3ba18c[_0x3e204a(0x174)]);continue;case'10':_0x31594b=_0x3ca403[_0x3e204a(0x1c5)];continue;case'11':_0x4226f1=_0x2eac9a[_0x3e204a(0x1ab)];continue;case'12':_0x14edc4=_0x250678['maxNodes'];continue;case'13':_0xabfe6a='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x54ee6c;continue;case'14':_0x2fd649[_0x3e204a(0x27c)](_0x1b5240['privateGrid'],_0x1c7c38)&&_0x3a8625['privateGrid']&&(_0x3ea92e['isPrivateGrid']=!![]);continue;case'15':_0x203132=_0x3b072d[_0x3e204a(0x248)];continue;}break;}}else throw new Error(_0x3e204a(0x1c2)+_0xfedaaf+_0x3e204a(0x247));}}else{const _0x2cc609={};_0x2cc609['type']=_0x54d419['LOG'],_0x2cc609['message']=_0x3e204a(0x1c2)+_0x40c651+_0x3e204a(0x1f2),_0x44af39[_0x3e204a(0x1ad)](_0x5309fb,_0x2cc609,_0x2fd649[_0x3e204a(0x27a)]),_0x28d542[_0x3e204a(0x213)](_0x3e204a(0x1c2)+_0x135bd0+_0x3e204a(0x1f2)),_0x4731cf=!![];if(_0x2fd649[_0x3e204a(0x15a)](_0x3c78bb,!![]))throw new _0x159623(_0x3e204a(0x1c2)+_0x408575+_0x3e204a(0x247));}}else{const _0x3479a7={};_0x3479a7['type']=WS_EVENTS[_0x3e204a(0x141)],_0x3479a7['message']=_0x2fd649[_0x3e204a(0x1de)],webSocketUtils[_0x3e204a(0x1ad)](_0xd290ba,_0x3479a7),logger[_0x3e204a(0x213)](_0x2fd649[_0x3e204a(0x1de)]);const _0x4fc6f7=_0x2fd649[_0x3e204a(0x221)](_0x356d96,null)&&_0x2fd649[_0x3e204a(0x22d)](_0x356d96,undefined),_0x254004=_0x2fd649[_0x3e204a(0x1d6)](_0x14eada,null)&&_0x2fd649[_0x3e204a(0x1c4)](_0x14eada,undefined)&&_0x2fd649[_0x3e204a(0x14b)](_0x14eada[_0x3e204a(0x2d5)],0x0);if(_0x4fc6f7){_0x2fd649[_0x3e204a(0x1e5)](_0x254004,![])&&(_0xcbad21=_0x2fd649[_0x3e204a(0x2b7)],await _0x2fd649['NZZpc'](reportToGalactusAndSendToEDS,_0x50c06e,_0xd290ba,_0xcbad21,messageTypes[_0x3e204a(0x192)],_0x2fd649['BbQnC'],_0x2fd649[_0x3e204a(0x1ac)],_0x2fd649[_0x3e204a(0x149)]),logger[_0x3e204a(0x18a)](_0xcbad21),process[_0x3e204a(0x296)](0x1));const _0x521a72=await _0x4f383f[_0x3e204a(0x169)](_0x356d96);_0x2fd649['uQPOs'](_0x521a72,![])?(_0xcbad21=_0x2fd649[_0x3e204a(0x13c)],await _0x2fd649[_0x3e204a(0x28e)](reportToGalactusAndSendToEDS,_0x50c06e,_0xd290ba,_0xcbad21,messageTypes[_0x3e204a(0x192)],_0x2fd649[_0x3e204a(0x199)],_0x2fd649[_0x3e204a(0x158)],_0x2fd649[_0x3e204a(0x149)]),logger[_0x3e204a(0x18a)](_0xcbad21),process['exit'](0x1)):logger[_0x3e204a(0x213)](_0x3e204a(0x27d)+_0x356d96+'\x20');const _0x15e0c9=await _0x4f383f[_0x3e204a(0x1a5)](_0x14eada,_0x356d96);_0x2fd649[_0x3e204a(0x180)](_0x15e0c9[0x0],![])?(_0xcbad21=_0x3e204a(0x26b)+JSON[_0x3e204a(0x13a)](_0x15e0c9[0x1])+_0x3e204a(0x214)+_0x356d96+_0x3e204a(0x135),await _0x2fd649[_0x3e204a(0x25e)](reportToGalactusAndSendToEDS,_0x50c06e,_0xd290ba,_0xcbad21,messageTypes[_0x3e204a(0x192)],_0x2fd649[_0x3e204a(0x199)],_0x2fd649['ZfIXq'],_0x2fd649[_0x3e204a(0x149)]),logger[_0x3e204a(0x18a)](_0xcbad21),process[_0x3e204a(0x296)](0x1)):logger[_0x3e204a(0x213)]('Found\x20Subnets:\x20'+JSON[_0x3e204a(0x13a)](_0x14eada)+'\x20'),[_0x356d96,_0x14eada]=await _0x4f383f[_0x3e204a(0x191)](_0x356d96,_0x14eada);}else{const _0x2efa83=_0x2fd649[_0x3e204a(0x167)][_0x3e204a(0x1b9)]('|');let _0xee21cf=0x0;while(!![]){switch(_0x2efa83[_0xee21cf++]){case'0':[_0x356d96,_0x14eada]=await _0x4f383f[_0x3e204a(0x191)](_0x356d96,_0x14eada);continue;case'1':const _0x49ccdf={};_0x49ccdf['type']=WS_EVENTS['LOG'],_0x49ccdf[_0x3e204a(0x2a1)]=_0x2fd649[_0x3e204a(0x1b4)],webSocketUtils[_0x3e204a(0x1ad)](_0xd290ba,_0x49ccdf);continue;case'2':const _0x1e8367={};_0x1e8367[_0x3e204a(0x19d)]=WS_EVENTS[_0x3e204a(0x141)],_0x1e8367['message']=_0x2fd649[_0x3e204a(0x2a6)],webSocketUtils[_0x3e204a(0x1ad)](_0xd290ba,_0x1e8367);continue;case'3':logger['info'](_0x2fd649['VJtiN']);continue;case'4':logger[_0x3e204a(0x213)](_0x2fd649[_0x3e204a(0x2a6)]);continue;}break;}}}}_0x59d323&&_0x2fd649[_0x3e204a(0x180)](_0xfe3607,AZURE)&&(await _0x4f383f[_0x3e204a(0x147)](),await _0x4f383f[_0x3e204a(0x266)]());const [_0x2d9faa,_0x5775d9,_0x33671a,_0x5d91d5,_0x17a766,_0x52dc96,_0xc77b26]=await _0x2fd649[_0x3e204a(0x138)](createK8sClient,_0x4f383f,_0x50c06e[_0x3e204a(0x1b2)]);_0x2fd649[_0x3e204a(0x278)](_0x59d323,![])&&_0x2fd649[_0x3e204a(0x26e)](_0xfe3607,AWS)&&(global_registry['isNewAWSCluster']=!![],_0xb68c08=await _0x4f383f[_0x3e204a(0x275)](_0x2d9faa,_0x50c06e));if(_0x2fd649[_0x3e204a(0x152)](_0x59d323,![])&&global_registry[_0x3e204a(0x15d)])try{await _0x4f383f[_0x3e204a(0x166)](_0x52dc96,_0xc77b26,_0x50c06e,_0x356d96,_0x14eada);const _0x3444f8={};_0x3444f8[_0x3e204a(0x19d)]=WS_EVENTS[_0x3e204a(0x141)],_0x3444f8[_0x3e204a(0x2a1)]=_0x2fd649[_0x3e204a(0x133)],webSocketUtils[_0x3e204a(0x1ad)](_0xd290ba,_0x3444f8);!await _0x2fd649[_0x3e204a(0x1b3)](namespaceExists,_0x2d9faa,global_registry['hubHaNameSpace'])&&await _0x2fd649[_0x3e204a(0x1fc)](createNamespace,_0x2d9faa,global_registry[_0x3e204a(0x16a)]);logger[_0x3e204a(0x213)](_0x2fd649[_0x3e204a(0x1b6)]);let _0x5755d3=await fs[_0x3e204a(0x200)](path[_0x3e204a(0x2cc)](__dirname,_0x2fd649['uJDhY'],_0x2fd649[_0x3e204a(0x25b)],_0x2fd649['IMhBP'],_0x2fd649['aQovw']),_0x2fd649['kuifj']);_0x5755d3=_0x5755d3[_0x3e204a(0x28c)](/<RedisClientPassword>/g,_0x2fd649[_0x3e204a(0x2b1)](encodeBase64,global_registry[_0x3e204a(0x2c1)])),_0x5755d3=_0x5755d3[_0x3e204a(0x28c)](/<KafkaClientPassword>/g,_0x2fd649['dMiKu'](encodeBase64,global_registry[_0x3e204a(0x12c)])),_0x5755d3=_0x5755d3[_0x3e204a(0x28c)](/<BstackUsername>/g,_0x2fd649[_0x3e204a(0x163)](encodeBase64,global_registry[_0x3e204a(0x2af)])),_0x5755d3=_0x5755d3['replace'](/<BstackAccessKey>/g,_0x2fd649[_0x3e204a(0x2b1)](encodeBase64,global_registry[_0x3e204a(0x2d4)]));const _0x502d4f=yaml[_0x3e204a(0x125)](_0x5755d3);await _0x2fd649[_0x3e204a(0x1fc)](kubeApply,_0x502d4f,_0xc77b26),logger['info'](_0x2fd649[_0x3e204a(0x26a)]);let _0x5ebbc8=_0x2fd649[_0x3e204a(0x177)];if(_0x2fd649[_0x3e204a(0x260)](_0xfe3607,AZURE))_0x5ebbc8=_0x2fd649[_0x3e204a(0x1fa)];else _0x2fd649['PWwNT'](_0xfe3607,GCP)&&(_0x5ebbc8=_0x2fd649[_0x3e204a(0x1d9)]);logger[_0x3e204a(0x213)](_0x2fd649[_0x3e204a(0x1c1)]);let _0x5c24ab=await fs[_0x3e204a(0x200)](path[_0x3e204a(0x2cc)](__dirname,_0x2fd649[_0x3e204a(0x2ae)],_0x2fd649[_0x3e204a(0x25b)],_0x2fd649[_0x3e204a(0x280)],_0x2fd649[_0x3e204a(0x297)]),_0x2fd649[_0x3e204a(0x1bf)]);_0x5c24ab=_0x5c24ab[_0x3e204a(0x28c)](/<HubHaNameSpace>/g,global_registry[_0x3e204a(0x16a)]),_0x5c24ab=_0x5c24ab[_0x3e204a(0x28c)](/<StorageClassName>/g,_0x5ebbc8);const _0x5decb9=yaml[_0x3e204a(0x125)](_0x5c24ab);await _0x2fd649[_0x3e204a(0x1d7)](kubeApply,_0x5decb9,_0xc77b26),logger[_0x3e204a(0x213)](_0x2fd649[_0x3e204a(0x1ae)]),logger['info'](_0x2fd649['NQXlS']);let _0x307a50=await fs['readFileAsync'](path[_0x3e204a(0x2cc)](__dirname,_0x2fd649['uJDhY'],_0x2fd649[_0x3e204a(0x25b)],_0x2fd649[_0x3e204a(0x280)],_0x2fd649['BNbVV']),_0x2fd649[_0x3e204a(0x1bf)]);_0x307a50=_0x307a50[_0x3e204a(0x28c)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x307a50=_0x307a50['replace'](/<StorageClassName>/g,_0x5ebbc8);const _0x39121b=yaml[_0x3e204a(0x125)](_0x307a50);await _0x2fd649['YtvOX'](kubeApply,_0x39121b,_0xc77b26),logger[_0x3e204a(0x213)](_0x2fd649[_0x3e204a(0x162)]),logger['info'](_0x2fd649['dGEEZ']);let _0x35eb5f=await fs[_0x3e204a(0x200)](path['join'](__dirname,_0x2fd649[_0x3e204a(0x2ae)],_0x2fd649[_0x3e204a(0x25b)],_0x2fd649['IMhBP'],_0x2fd649[_0x3e204a(0x12e)]),_0x2fd649['kuifj']);_0x35eb5f=_0x35eb5f[_0x3e204a(0x28c)](/<UploaderImageVersion>/g,global_registry[_0x3e204a(0x1ba)]),_0x35eb5f=_0x35eb5f[_0x3e204a(0x28c)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']);const _0x3566a2=yaml[_0x3e204a(0x125)](_0x35eb5f);_0x2fd649[_0x3e204a(0x1d3)](global_registry[_0x3e204a(0x21c)],AZURE)&&(_0x3566a2[0x0][_0x3e204a(0x1fe)][_0x3e204a(0x1a4)][_0x3e204a(0x238)][_0x3e204a(0x27b)]={'azure.workload.identity/use':_0x2fd649[_0x3e204a(0x196)],..._0x3566a2[0x0][_0x3e204a(0x1fe)]['template'][_0x3e204a(0x238)][_0x3e204a(0x27b)]},_0x3566a2[0x0][_0x3e204a(0x1fe)][_0x3e204a(0x1a4)]['spec'][_0x3e204a(0x1f6)]=_0x2fd649[_0x3e204a(0x1ef)]);await _0x2fd649[_0x3e204a(0x18c)](kubeApply,_0x3566a2,_0xc77b26),logger[_0x3e204a(0x213)](_0x2fd649[_0x3e204a(0x253)]);const _0x527c31={};_0x527c31[_0x3e204a(0x19d)]=WS_EVENTS[_0x3e204a(0x141)],_0x527c31[_0x3e204a(0x2a1)]=_0x2fd649['KnePU'],webSocketUtils[_0x3e204a(0x1ad)](_0xd290ba,_0x527c31),logger[_0x3e204a(0x213)](_0x2fd649['bZFct']);}catch(_0x4fa189){const _0x342316=_0x2fd649[_0x3e204a(0x2ab)]['split']('|');let _0x45f89d=0x0;while(!![]){switch(_0x342316[_0x45f89d++]){case'0':_0xcbad21=_0x3e204a(0x1aa)+_0x4fa189[_0x3e204a(0x2a1)];continue;case'1':await _0x2fd649[_0x3e204a(0x202)](reportToGalactusAndSendToEDS,_0x50c06e,_0xd290ba,_0xcbad21,messageTypes[_0x3e204a(0x192)],_0x2fd649[_0x3e204a(0x199)],_0x2fd649[_0x3e204a(0x2d6)],_0x2fd649[_0x3e204a(0x149)]);continue;case'2':process[_0x3e204a(0x296)](0x1);continue;case'3':logger[_0x3e204a(0x18a)](_0xcbad21);continue;case'4':await _0x4f383f[_0x3e204a(0x268)](_0x2d9faa,global_registry['clusterRegion']);continue;}break;}}try{_0x48140e=_0x2fd649['dMiKu'](kebabCase,_0x4501eb),logger[_0x3e204a(0x213)](_0x2fd649[_0x3e204a(0x2c6)]);const _0x34fb60={};_0x34fb60[_0x3e204a(0x19d)]=WS_EVENTS['LOG'],_0x34fb60[_0x3e204a(0x2a1)]=_0x2fd649[_0x3e204a(0x2c6)],webSocketUtils[_0x3e204a(0x1ad)](_0xd290ba,_0x34fb60);if(_0x2fd649[_0x3e204a(0x2cf)](_0x48140e,_0x2fd649['RnLcS'])){const _0x2ee417={};_0x2ee417[_0x3e204a(0x181)]=_0x2fd649['dxptf'],_0x2ee417[_0x3e204a(0x216)]=_0x2fd649[_0x3e204a(0x2b8)];const _0x44b40b={};_0x44b40b['name']=_0x48140e,_0x44b40b['annotations']=_0x2ee417;const _0xddee99={};_0xddee99['metadata']=_0x44b40b;const _0x3ff3b2=_0xddee99,_0x54bc53={};_0x54bc53[_0x3e204a(0x189)]=_0x3ff3b2,await _0x2d9faa[_0x3e204a(0x1cd)](_0x54bc53),logger[_0x3e204a(0x213)](_0x2fd649['zZZOY']);}const _0x77ce5e={};_0x77ce5e['type']=WS_EVENTS[_0x3e204a(0x141)],_0x77ce5e[_0x3e204a(0x2a1)]=_0x2fd649['IhGNE'],webSocketUtils['sendEventToBackend'](_0xd290ba,_0x77ce5e);const _0x2e028e={};_0x2e028e[_0x3e204a(0x19d)]=WS_EVENTS['LOG'],_0x2e028e[_0x3e204a(0x2a1)]=_0x2fd649[_0x3e204a(0x156)],webSocketUtils[_0x3e204a(0x1ad)](_0xd290ba,_0x2e028e),logger[_0x3e204a(0x213)](_0x2fd649['RkzNz']);let _0x21f369={};_0x2fd649[_0x3e204a(0x24b)](_0xfe3607,AZURE)&&(_0x21f369={'clientId':await _0x4f383f[_0x3e204a(0x263)](_0x3e204a(0x14c)+_0xfedaaf)});await _0x2fd649[_0x3e204a(0x2cd)](addGridComponents,_0x2d9faa,_0x5775d9,_0x33671a,_0x5d91d5,_0x48140e,_0xfedaaf,_0xb68c08,_0x17a766,_0xc77b26,_0x21f369),_0xcbad21=_0x2fd649['QTsnI'],logger[_0x3e204a(0x213)](_0xcbad21);const _0x2af3f4={};_0x2af3f4['type']=WS_EVENTS[_0x3e204a(0x141)],_0x2af3f4[_0x3e204a(0x2a1)]=_0xcbad21,webSocketUtils['sendEventToBackend'](_0xd290ba,_0x2af3f4),_0xcbad21=_0x2fd649['xItlH'],logger[_0x3e204a(0x213)](_0xcbad21);const _0x513e85={};_0x513e85['type']=WS_EVENTS[_0x3e204a(0x141)],_0x513e85['message']=_0xcbad21,webSocketUtils[_0x3e204a(0x1ad)](_0xd290ba,_0x513e85),await _0x2fd649[_0x3e204a(0x21a)](waitForDeployment,_0x5775d9,_0x48140e,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x1501af=await _0x2fd649[_0x3e204a(0x1d7)](getNamespaceUID,_0x2d9faa,_0x48140e),_0x33c4aa=global_registry['isPrivateGrid']?_0x2fd649['xpOuI']:_0x2fd649[_0x3e204a(0x257)],_0xcad8b2={};_0xcad8b2['name']=_0x33c4aa,_0xcad8b2[_0x3e204a(0x1e3)]=_0x2fd649[_0x3e204a(0x1a8)];const _0x46faf3=await _0x2d9faa[_0x3e204a(0x178)](_0xcad8b2);let _0x978387=_0x4f383f[_0x3e204a(0x2c0)](_0x46faf3)+'/'+_0x48140e,_0x1951f0=_0x2fd649['TKWKR'];try{const _0x575597=_0x3e204a(0x1f0)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x1501af,_0x4c7ce3=await _0x2fd649[_0x3e204a(0x160)](got,_0x575597,_0x569f72);(_0x2fd649[_0x3e204a(0x15a)](_0x4c7ce3,null)||_0x2fd649[_0x3e204a(0x168)](_0x4c7ce3,undefined))&&(_0xcbad21=_0x2fd649[_0x3e204a(0x283)],await _0x2fd649[_0x3e204a(0x219)](reportToGalactusAndSendToEDS,_0x50c06e,_0xd290ba,_0xcbad21,messageTypes[_0x3e204a(0x192)],_0x2fd649['BbQnC'],_0x2fd649[_0x3e204a(0x1ca)],_0x2fd649['lvdcJ']),logger[_0x3e204a(0x18a)](_0xcbad21),process[_0x3e204a(0x296)](0x1));_0x2fd649['myCNd'](_0x4c7ce3[_0x3e204a(0x23a)],0x191)&&(_0xcbad21=_0x2fd649[_0x3e204a(0x234)],await _0x2fd649[_0x3e204a(0x202)](reportToGalactusAndSendToEDS,_0x50c06e,_0xd290ba,_0xcbad21,messageTypes[_0x3e204a(0x192)],_0x2fd649[_0x3e204a(0x199)],_0x2fd649[_0x3e204a(0x123)],_0x2fd649[_0x3e204a(0x149)]),logger[_0x3e204a(0x18a)](_0xcbad21),process[_0x3e204a(0x296)](0x1));_0x2fd649[_0x3e204a(0x230)](_0x4c7ce3[_0x3e204a(0x23a)],0xc8)&&(_0xcbad21=_0x3e204a(0x20e)+JSON[_0x3e204a(0x13a)](_0x4c7ce3),await _0x2fd649[_0x3e204a(0x219)](reportToGalactusAndSendToEDS,_0x50c06e,_0xd290ba,_0xcbad21,messageTypes['ERROR'],_0x2fd649[_0x3e204a(0x199)],_0x2fd649['viEtk'],_0x2fd649[_0x3e204a(0x149)]),logger[_0x3e204a(0x18a)](_0xcbad21),process[_0x3e204a(0x296)](0x1));const _0x3fda10=JSON[_0x3e204a(0x22a)](_0x4c7ce3[_0x3e204a(0x189)]);_0x3fda10[_0x3e204a(0x1c9)]&&(_0x978387=_0x3fda10['route53'],_0x1951f0=_0x2fd649[_0x3e204a(0x208)]),global_registry[_0x3e204a(0x1d0)]&&(_0x1951f0=_0x2fd649[_0x3e204a(0x25c)]);}catch(_0xb0585c){}_0xcbad21=_0x3e204a(0x139)+_0x978387+'\x20',logger[_0x3e204a(0x213)](_0xcbad21);const _0x3f9e67={};_0x3f9e67['type']=WS_EVENTS['LOG'],_0x3f9e67['message']=_0xcbad21,webSocketUtils[_0x3e204a(0x1ad)](_0xd290ba,_0x3f9e67),_0xcbad21=_0x3e204a(0x28b)+_0x1951f0+_0x3e204a(0x2b9)+_0x978387+_0x3e204a(0x29a),logger[_0x3e204a(0x213)](_0xcbad21);const _0x58b028={};_0x58b028['type']=WS_EVENTS[_0x3e204a(0x141)],_0x58b028[_0x3e204a(0x2a1)]=_0xcbad21,webSocketUtils[_0x3e204a(0x1ad)](_0xd290ba,_0x58b028);const _0x29b0c9={};_0x29b0c9[_0x3e204a(0x19d)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x29b0c9[_0x3e204a(0x2a1)]=_0x3e204a(0x292)+_0x978387,webSocketUtils[_0x3e204a(0x1ad)](_0xd290ba,_0x29b0c9),await webSocketUtils[_0x3e204a(0x29e)](0x7d0);}catch(_0x190654){logger[_0x3e204a(0x18a)](_0x3e204a(0x1ff)+_0x190654+'\x20\x0a'+JSON[_0x3e204a(0x13a)](_0x190654[_0x3e204a(0x28a)]));if(_0x2fd649[_0x3e204a(0x1d3)](_0x59d323,![]))try{logger[_0x3e204a(0x213)](_0x2fd649['NhBGT']),await _0x2fd649['wjzjY'](removeGridComponents,_0x2d9faa,_0x5775d9,_0x33671a,_0x5d91d5,_0x48140e),await _0x4f383f[_0x3e204a(0x268)](_0x2d9faa,global_registry['clusterRegion']);}catch(_0x4be350){logger[_0x3e204a(0x18a)](_0x3e204a(0x24a)+_0x4be350+'\x20\x0a'+JSON['stringify'](_0x4be350['stack']));}throw _0x190654;}}catch(_0x4cfac0){const _0xfed057=_0x3e204a(0x2be)+_0x4cfac0+'\x20\x0a'+JSON['stringify'](_0x4cfac0[_0x3e204a(0x28a)]);if(_0xd290ba){const _0x3df1fd={};_0x3df1fd[_0x3e204a(0x19d)]=WS_EVENTS[_0x3e204a(0x141)],_0x3df1fd[_0x3e204a(0x2a1)]=_0xfed057,webSocketUtils[_0x3e204a(0x1ad)](_0xd290ba,_0x3df1fd,_0x2fd649['lvdcJ'],!![]);}await webSocketUtils[_0x3e204a(0x29e)](0x7d0);const _0xe484df={};_0xe484df['error']=_0xfed057,await _0x2fd649[_0x3e204a(0x269)](sendInstrumentationEvent,_0x50c06e,_0x2fd649[_0x3e204a(0x199)],messageTypes[_0x3e204a(0x192)],_0x2fd649['RAjOy'],_0xe484df,_0x50c06e),logger['error'](_0xfed057);}process[_0x3e204a(0x296)](0x0);};
@@ -1 +1 @@
1
- const a10_0xcec3c9=a10_0xaee6;(function(_0x56b015,_0x45e89d){const _0x297b58=a10_0xaee6,_0x500adf=_0x56b015();while(!![]){try{const _0x53f617=-parseInt(_0x297b58(0xca))/0x1*(parseInt(_0x297b58(0xc8))/0x2)+-parseInt(_0x297b58(0xcb))/0x3*(-parseInt(_0x297b58(0xd0))/0x4)+parseInt(_0x297b58(0xce))/0x5*(-parseInt(_0x297b58(0xcc))/0x6)+parseInt(_0x297b58(0xd3))/0x7*(-parseInt(_0x297b58(0xd4))/0x8)+-parseInt(_0x297b58(0xcd))/0x9+-parseInt(_0x297b58(0xdb))/0xa+parseInt(_0x297b58(0xd7))/0xb;if(_0x53f617===_0x45e89d)break;else _0x500adf['push'](_0x500adf['shift']());}catch(_0x2a860f){_0x500adf['push'](_0x500adf['shift']());}}}(a10_0x57d8,0x85bd3));function a10_0xaee6(_0x26d543,_0x1d532a){const _0x57d8e9=a10_0x57d8();return a10_0xaee6=function(_0xaee6ec,_0x3d7a95){_0xaee6ec=_0xaee6ec-0xc8;let _0x509fd0=_0x57d8e9[_0xaee6ec];return _0x509fd0;},a10_0xaee6(_0x26d543,_0x1d532a);}function a10_0x57d8(){const _0x17bc52=['574iqedQq','vjLmz','2098XuUZLw','3eWvVRk','1501806MCPYPw','9334665gtLnhp','10XpBJkm','strict','2634756nzJUYn','help','desc','14YqEamB','3267304pyoQJA','builder','epilogue','41911584TEsvTm','BAFEY','recommendCommands','../config/constants','9642990pQDcmS','delete','List\x20Grid\x20resources.'];a10_0x57d8=function(){return _0x17bc52;};return a10_0x57d8();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0xcec3c9(0xda));exports['command']='delete',exports[a10_0xcec3c9(0xd2)]=a10_0xcec3c9(0xdd),exports[a10_0xcec3c9(0xd5)]=function(_0x223385){const _0x283eae=a10_0xcec3c9,_0x1102c4={};_0x1102c4['BAFEY']='delete_commands',_0x1102c4['vjLmz']=_0x283eae(0xd1);const _0x43c7a5=_0x1102c4;return _0x223385['usage'](HELP_HEADER_MESSAGE[_0x283eae(0xdc)])[_0x283eae(0xd6)](HELP_FOOTER_MESSAGE)['commandDir'](_0x43c7a5[_0x283eae(0xd8)])['demandCommand']()[_0x283eae(0xd9)]()[_0x283eae(0xcf)]()[_0x283eae(0xd1)](_0x43c7a5[_0x283eae(0xc9)]);},exports['handler']=function(_0x4e548f){};
1
+ const a10_0x3b384c=a10_0x86d1;(function(_0x164f22,_0xa4a069){const _0x39cb0c=a10_0x86d1,_0x5cf2fa=_0x164f22();while(!![]){try{const _0x154bd1=-parseInt(_0x39cb0c(0x151))/0x1+parseInt(_0x39cb0c(0x143))/0x2+-parseInt(_0x39cb0c(0x150))/0x3+-parseInt(_0x39cb0c(0x157))/0x4*(parseInt(_0x39cb0c(0x158))/0x5)+parseInt(_0x39cb0c(0x149))/0x6*(-parseInt(_0x39cb0c(0x154))/0x7)+parseInt(_0x39cb0c(0x147))/0x8*(-parseInt(_0x39cb0c(0x14d))/0x9)+parseInt(_0x39cb0c(0x145))/0xa;if(_0x154bd1===_0xa4a069)break;else _0x5cf2fa['push'](_0x5cf2fa['shift']());}catch(_0x4d4e1f){_0x5cf2fa['push'](_0x5cf2fa['shift']());}}}(a10_0x33e1,0x91179));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x3b384c(0x144));exports[a10_0x3b384c(0x152)]=a10_0x3b384c(0x14e),exports['desc']=a10_0x3b384c(0x140),exports[a10_0x3b384c(0x155)]=function(_0xb1180d){const _0x2b87a2=a10_0x3b384c,_0x239b68={};_0x239b68['LydRs']=_0x2b87a2(0x14b),_0x239b68[_0x2b87a2(0x141)]=_0x2b87a2(0x153);const _0x130451=_0x239b68;return _0xb1180d['usage'](HELP_HEADER_MESSAGE[_0x2b87a2(0x14e)])[_0x2b87a2(0x14c)](HELP_FOOTER_MESSAGE)[_0x2b87a2(0x148)](_0x130451[_0x2b87a2(0x14a)])[_0x2b87a2(0x146)]()[_0x2b87a2(0x14f)]()[_0x2b87a2(0x156)]()[_0x2b87a2(0x153)](_0x130451[_0x2b87a2(0x141)]);},exports[a10_0x3b384c(0x142)]=function(_0x34b968){};function a10_0x86d1(_0xeeb93a,_0x3432d6){const _0x33e19e=a10_0x33e1();return a10_0x86d1=function(_0x86d17b,_0x35ba31){_0x86d17b=_0x86d17b-0x140;let _0x7f9c6a=_0x33e19e[_0x86d17b];return _0x7f9c6a;},a10_0x86d1(_0xeeb93a,_0x3432d6);}function a10_0x33e1(){const _0x509e9a=['handler','547872GJcChs','../config/constants','37254600DycrQJ','demandCommand','2984qwkJFJ','commandDir','6fUCfMd','LydRs','delete_commands','epilogue','7605jIgUiB','delete','recommendCommands','3283497eEgHZp','551708CwJBpz','command','help','5566001NYVuUo','builder','strict','112plWXGz','115815lkBnpC','List\x20Grid\x20resources.','akLCG'];a10_0x33e1=function(){return _0x509e9a;};return a10_0x33e1();}
@@ -1 +1 @@
1
- const a11_0x1e839e=a11_0x4337;(function(_0x229c49,_0x3555f6){const _0x1d1a8b=a11_0x4337,_0x11a6cc=_0x229c49();while(!![]){try{const _0x6acc8d=parseInt(_0x1d1a8b(0x202))/0x1+-parseInt(_0x1d1a8b(0x1e7))/0x2+-parseInt(_0x1d1a8b(0x176))/0x3*(-parseInt(_0x1d1a8b(0x17b))/0x4)+parseInt(_0x1d1a8b(0x17e))/0x5*(-parseInt(_0x1d1a8b(0x1fa))/0x6)+parseInt(_0x1d1a8b(0x196))/0x7+-parseInt(_0x1d1a8b(0x208))/0x8+parseInt(_0x1d1a8b(0x1e1))/0x9*(parseInt(_0x1d1a8b(0x205))/0xa);if(_0x6acc8d===_0x3555f6)break;else _0x11a6cc['push'](_0x11a6cc['shift']());}catch(_0x4d5856){_0x11a6cc['push'](_0x11a6cc['shift']());}}}(a11_0x83ba,0xc3ca3));function a11_0x4337(_0x3984fc,_0x599e65){const _0x83bac0=a11_0x83ba();return a11_0x4337=function(_0x4337ae,_0x2c4b4e){_0x4337ae=_0x4337ae-0x16f;let _0x3ce7f8=_0x83bac0[_0x4337ae];return _0x3ce7f8;},a11_0x4337(_0x3984fc,_0x599e65);}const fs=require('fs'),got=require(a11_0x1e839e(0x1dd)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require(a11_0x1e839e(0x188)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x1e839e(0x1cb)),{logger}=require(a11_0x1e839e(0x1bf)),{getCloudProviderObject}=require(a11_0x1e839e(0x1ba)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x1e839e(0x186)),{sendInstrumentationEvent}=require(a11_0x1e839e(0x16f)),{inputConfirmation}=require(a11_0x1e839e(0x1bd)),{createK8sClient}=require(a11_0x1e839e(0x178)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x1e839e(0x18a)),webSocketUtils=require('../../utils/webSocketUtils');exports[a11_0x1e839e(0x19d)]='grid',exports['desc']=a11_0x1e839e(0x17f),exports[a11_0x1e839e(0x1a0)]=function(_0x236c0f){const _0x5459f7=a11_0x1e839e,_0x175bbd={};_0x175bbd[_0x5459f7(0x203)]=_0x5459f7(0x170),_0x175bbd[_0x5459f7(0x18c)]='string',_0x175bbd[_0x5459f7(0x1ef)]='Skip\x20insecure\x20cert\x20verification.',_0x175bbd[_0x5459f7(0x1aa)]='boolean',_0x175bbd[_0x5459f7(0x204)]=_0x5459f7(0x1fd);const _0x5a381a=_0x175bbd,_0x24427a={};_0x24427a[_0x5459f7(0x1c7)]=_0x5a381a[_0x5459f7(0x203)],_0x24427a[_0x5459f7(0x1d2)]=_0x5a381a['CvMXw'];const _0x167e31={};_0x167e31[_0x5459f7(0x1c7)]=_0x5a381a[_0x5459f7(0x1ef)],_0x167e31[_0x5459f7(0x1d2)]=_0x5a381a[_0x5459f7(0x1aa)],_0x167e31[_0x5459f7(0x1e8)]=![];const _0x54d299={};return _0x54d299['grid-id']=_0x24427a,_0x54d299[_0x5459f7(0x1e2)]=_0x167e31,_0x236c0f[_0x5459f7(0x1d8)](HELP_HEADER_MESSAGE[_0x5459f7(0x1ce)])[_0x5459f7(0x1d5)](HELP_FOOTER_MESSAGE)['options'](_0x54d299)['help'](_0x5a381a[_0x5459f7(0x204)])[_0x5459f7(0x1ec)];},exports[a11_0x1e839e(0x1fe)]=async function(_0xeabc51){const _0x281888=a11_0x1e839e,_0x286d65={'Wenjv':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','LldWR':_0x281888(0x170),'CuBga':_0x281888(0x1c4),'kktEa':_0x281888(0x1f8),'GZWYe':_0x281888(0x1ad),'NFVbX':_0x281888(0x1fd),'lxuax':function(_0x43cb77,_0x1e5bc0){return _0x43cb77===_0x1e5bc0;},'SYhgI':_0x281888(0x1a8),'DlSSy':_0x281888(0x191),'adWgk':_0x281888(0x19a),'DrjbH':_0x281888(0x1c9),'MrZhw':'ESNYj','guXmd':_0x281888(0x177),'jdFTK':function(_0x213287){return _0x213287();},'HZBAE':function(_0x264b4b){return _0x264b4b();},'gAqFa':function(_0xffa7f4,_0x364a37){return _0xffa7f4!==_0x364a37;},'XrVlS':_0x281888(0x1d3),'WDPht':_0x281888(0x1e0),'anfOl':function(_0x377e77,_0x2302cb,_0x25a8a0,_0x263154,_0x3683c5,_0x1e7cc7,_0x2ea4d5){return _0x377e77(_0x2302cb,_0x25a8a0,_0x263154,_0x3683c5,_0x1e7cc7,_0x2ea4d5);},'wzfYh':_0x281888(0x1b9),'CgkUn':_0x281888(0x1a7),'eaPyI':function(_0x444522,_0x2fe518){return _0x444522===_0x2fe518;},'hXJJv':_0x281888(0x1c5),'mCBrH':function(_0x567e83){return _0x567e83();},'ZCHhF':function(_0x37e341,_0x96a66,_0x3b3e52,_0x2921f9){return _0x37e341(_0x96a66,_0x3b3e52,_0x2921f9);},'aRYXT':_0x281888(0x174),'iawYv':function(_0x3cdd1b,_0x3cdd2a){return _0x3cdd1b===_0x3cdd2a;},'JuqGy':_0x281888(0x171),'DTSZe':function(_0x4154dd,_0x43afc5){return _0x4154dd(_0x43afc5);},'bKVPL':function(_0x3bc1cd,_0x179cf9){return _0x3bc1cd===_0x179cf9;},'dEfoE':function(_0x449d82,_0x4d255b){return _0x449d82===_0x4d255b;},'rEWTH':_0x281888(0x1fb),'POUzF':_0x281888(0x193),'KRhqa':function(_0x2a2963,_0xc033d8,_0x501e58,_0x575b9a,_0x4a19e5,_0x461c83,_0x3e2c1d){return _0x2a2963(_0xc033d8,_0x501e58,_0x575b9a,_0x4a19e5,_0x461c83,_0x3e2c1d);},'PmKhp':_0x281888(0x1f1),'ybfVP':function(_0x47d33e,_0x5be46f){return _0x47d33e===_0x5be46f;},'PYIbd':_0x281888(0x189),'fbnmY':'qlzNF','gpnZv':'<UsernamePlaceholder>','fCnSX':_0x281888(0x173),'PhUfr':function(_0x148b75,_0x27e1bd){return _0x148b75(_0x27e1bd);},'DXsmO':function(_0x26367c,_0x39467b,_0x1f30e0){return _0x26367c(_0x39467b,_0x1f30e0);},'OGDfk':function(_0x266969,_0x3ed655,_0x1a3fa8,_0x5dac3c,_0x3272da,_0x41160f){return _0x266969(_0x3ed655,_0x1a3fa8,_0x5dac3c,_0x3272da,_0x41160f);},'HHWJV':function(_0xc0f4a9,_0x19be78){return _0xc0f4a9!==_0x19be78;},'cpdcJ':_0x281888(0x172),'gRSKJ':'qlIFG','MiWPN':_0x281888(0x1ac),'QBllm':_0x281888(0x18f),'YbpDf':function(_0x1afbab,_0x923660){return _0x1afbab!==_0x923660;},'RTMUD':function(_0x110337,_0x49fb32){return _0x110337!==_0x49fb32;},'ZiKcb':'server-error','wSvDF':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','AoBDL':_0x281888(0x1d6),'yGPeZ':function(_0x430015,_0x19afbe){return _0x430015===_0x19afbe;},'gNNmD':function(_0x4eea91,_0x797512,_0x3fab29,_0x1e82b4,_0x50caf,_0x26ec29,_0x488645){return _0x4eea91(_0x797512,_0x3fab29,_0x1e82b4,_0x50caf,_0x26ec29,_0x488645);},'rLTLc':_0x281888(0x1a3),'fHHll':function(_0x576544,_0x5c862e,_0x5dbeae,_0xe1db66,_0xde2d73,_0x4a67bf,_0x9bd7b0){return _0x576544(_0x5c862e,_0x5dbeae,_0xe1db66,_0xde2d73,_0x4a67bf,_0x9bd7b0);},'TZoVI':'unknown-error'};try{global_registry[_0x281888(0x1e9)]=_0x286d65[_0x281888(0x1c6)](uuidv4);!fs[_0x281888(0x185)](_0x286d65['HZBAE'](getCredentialsPath))&&(_0x286d65['gAqFa'](_0x286d65[_0x281888(0x1a5)],_0x286d65[_0x281888(0x1a5)])?_0x57aa88[_0x281888(0x1c8)]('Cluster:\x20'+_0x4c5d20[_0x281888(0x1b2)]+_0x281888(0x18b)):(console['error'](_0x286d65[_0x281888(0x1c2)]),await _0x286d65[_0x281888(0x1ab)](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes['ERROR'],_0x286d65[_0x281888(0x1c0)],null,_0xeabc51),process['exit'](0x1)));_0x286d65['anfOl'](sendInstrumentationEvent,_0xeabc51,_0x286d65['wzfYh'],messageTypes[_0x281888(0x20a)],null,null,_0xeabc51);!_0xeabc51['gridId']&&(_0x286d65['eaPyI'](_0x286d65['hXJJv'],_0x286d65['hXJJv'])?(console[_0x281888(0x1ea)](_0x286d65['Wenjv']),process[_0x281888(0x1a4)](0x1)):_0x1a28be[_0x281888(0x1a4)](0x0));const _0x277d33=JSON[_0x281888(0x1c3)](fs[_0x281888(0x1b6)](_0x286d65['mCBrH'](getCredentialsPath))),[_0x46101f,_0xf34891]=await _0x286d65[_0x281888(0x17a)](getGridDetails,_0x277d33['Browserstack']['username'],_0x277d33['Browserstack'][_0x281888(0x199)],_0xeabc51['gridId']);if(_0xf34891){const _0x329c0d=_0xf34891['info'];let _0x1ac745=_0x281888(0x180)+_0x329c0d['name']+_0x281888(0x1ca)+_0x329c0d['id']+_0x281888(0x1bb);_0xf34891[_0x281888(0x1f6)]&&_0x286d65[_0x281888(0x192)](_0xf34891[_0x281888(0x17c)],_0x286d65[_0x281888(0x19c)])&&(_0x286d65[_0x281888(0x1b0)](_0x286d65[_0x281888(0x175)],_0x286d65[_0x281888(0x175)])?_0x1ac745=_0x281888(0x180)+_0x329c0d[_0x281888(0x1f2)]+'\x22\x20and\x20ID\x20'+_0x329c0d['id']+_0x281888(0x1da)+_0x329c0d[_0x281888(0x1b2)]+_0x281888(0x1f3)+_0x329c0d['clusterId']+_0x281888(0x1bb):(_0x30cce3[_0x281888(0x1ea)](_0x286d65[_0x281888(0x1be)]),_0x438119[_0x281888(0x1a4)](0x1)));const _0x294116=await _0x286d65[_0x281888(0x1cf)](inputConfirmation,_0x1ac745);(_0x286d65[_0x281888(0x192)](_0x294116,undefined)||_0x286d65[_0x281888(0x18e)](_0x294116,null)||!(_0x286d65[_0x281888(0x18e)](_0x294116['toLowerCase'](),'y')||_0x286d65[_0x281888(0x187)](_0x294116[_0x281888(0x209)](),'n')))&&(_0x286d65[_0x281888(0x18e)](_0x286d65[_0x281888(0x201)],_0x286d65[_0x281888(0x201)])?(console[_0x281888(0x1ea)](_0x286d65[_0x281888(0x1b7)]),await _0x286d65[_0x281888(0x1af)](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes[_0x281888(0x1a6)],_0x286d65[_0x281888(0x1b5)],null,_0xeabc51),process[_0x281888(0x1a4)](0x1)):(_0x59033d[_0x281888(0x1c8)](_0x281888(0x1c1)+_0x2460e0+_0x281888(0x19b)),_0x885fa0=![]));_0x286d65[_0x281888(0x1d0)](_0x294116[_0x281888(0x209)](),'n')&&(_0x286d65[_0x281888(0x1b1)](_0x286d65[_0x281888(0x19f)],_0x286d65['fbnmY'])?process[_0x281888(0x1a4)](0x0):_0x5ce597=_0x281888(0x180)+_0x1feec2[_0x281888(0x1f2)]+_0x281888(0x1ca)+_0x1ab1b4['id']+_0x281888(0x1da)+_0x20a1b7['clusterName']+_0x281888(0x1f3)+_0x402991['clusterId']+_0x281888(0x1bb));const _0x34a8bc=WS_ENDPOINT['replace'](_0x286d65[_0x281888(0x1cd)],_0x277d33[_0x281888(0x174)][_0x281888(0x1ff)])[_0x281888(0x1b3)](_0x286d65['fCnSX'],_0x277d33[_0x281888(0x174)][_0x281888(0x199)]),_0x556bd1={};_0x556bd1[_0x281888(0x1f9)]=ws,_0x556bd1[_0x281888(0x1a1)]=0x36ee80;const _0x55bc84=new ReconnectingWebSocket(_0x34a8bc,[],_0x556bd1);global_registry[_0x281888(0x206)]=_0x329c0d[_0x281888(0x1e5)];const _0x46bb14=_0x329c0d[_0x281888(0x181)],_0xdb075b=await _0x286d65[_0x281888(0x1ab)](getCloudProviderObject,_0x46bb14,_0x329c0d[_0x281888(0x1b2)],_0x329c0d[_0x281888(0x1f2)],_0x55bc84,webSocketUtils,_0xeabc51),_0x327dba=await _0xdb075b[_0x281888(0x19e)]();if(_0x327dba){const _0x591de1=_0x286d65[_0x281888(0x1e6)](kebabCase,_0x329c0d[_0x281888(0x1f2)]),[_0x44f2c0,_0x472c0a,_0x48b76a,_0x700e07,_0x4b16d3,_0x55488a]=await _0x286d65['DXsmO'](createK8sClient,_0xdb075b,_0xeabc51[_0x281888(0x200)]);let _0x25b17b=!![];const _0xa611f={};_0xa611f['name']=_0x591de1,await _0x44f2c0['readNamespace'](_0xa611f)['then'](_0x11120e=>{const _0x27dba1=_0x281888;if(_0x286d65[_0x27dba1(0x1db)](_0x286d65[_0x27dba1(0x18d)],_0x286d65['DlSSy'])){const _0x2f5196={};_0x2f5196[_0x27dba1(0x1c7)]=_0x286d65['LldWR'],_0x2f5196[_0x27dba1(0x1d2)]=_0x286d65[_0x27dba1(0x1f5)];const _0x5a23dd={};_0x5a23dd[_0x27dba1(0x1c7)]=_0x286d65['kktEa'],_0x5a23dd[_0x27dba1(0x1d2)]=_0x286d65[_0x27dba1(0x194)],_0x5a23dd['default']=![];const _0x572659={};return _0x572659['grid-id']=_0x2f5196,_0x572659[_0x27dba1(0x1e2)]=_0x5a23dd,_0x249756[_0x27dba1(0x1d8)](_0x6c2275[_0x27dba1(0x1ce)])['epilogue'](_0x30c904)[_0x27dba1(0x1a9)](_0x572659)['help'](_0x286d65[_0x27dba1(0x190)])[_0x27dba1(0x1ec)];}else logger['info']('Namespace:\x20'+_0x591de1+_0x27dba1(0x1fc));})['catch'](_0xea811d=>{const _0x8bb1d9=_0x281888;_0x286d65[_0x8bb1d9(0x1db)](_0x286d65[_0x8bb1d9(0x207)],_0x286d65[_0x8bb1d9(0x1e3)])?_0x37932b[_0x8bb1d9(0x1c8)](_0x286d65[_0x8bb1d9(0x1d7)]):(logger[_0x8bb1d9(0x1c8)](_0x8bb1d9(0x1c1)+_0x591de1+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x25b17b=![]);});if(_0x25b17b){await _0x286d65[_0x281888(0x1eb)](removeGridComponents,_0x44f2c0,_0x472c0a,_0x48b76a,_0x700e07,_0x591de1);if(_0xf34891[_0x281888(0x1f6)]){const _0x43e83f=await _0xdb075b[_0x281888(0x17d)]();_0x43e83f?_0x286d65[_0x281888(0x197)](_0x286d65[_0x281888(0x1b4)],_0x286d65[_0x281888(0x1d4)])?await _0xdb075b['deleteCluster'](_0x44f2c0,_0x329c0d[_0x281888(0x1e5)]):(_0x1c7775[_0x281888(0x1a2)](_0x286d65[_0x281888(0x184)]),_0x88074[_0x281888(0x1a4)](0x0)):_0x286d65[_0x281888(0x1db)](_0x286d65[_0x281888(0x1d1)],_0x286d65[_0x281888(0x1d1)])?logger['warn'](_0x281888(0x195)+_0x329c0d['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'):_0x2c50f1[_0x281888(0x1a2)]('Namespace:\x20'+_0x3d4baa+_0x281888(0x1fc));}}}else logger[_0x281888(0x1c8)](_0x286d65['adWgk']);const _0x2c995d=_0x281888(0x1df)+AG_API_URL+'/packages/cli/grid/'+_0xeabc51['gridId'],_0x3ae2ec={'method':_0x286d65[_0x281888(0x1ed)],'headers':_0x286d65['DXsmO'](getAuthHeader,_0x277d33[_0x281888(0x174)][_0x281888(0x1ff)],_0x277d33[_0x281888(0x174)][_0x281888(0x199)]),'throwHttpErrors':![]},_0x461dae=await _0x286d65[_0x281888(0x1bc)](got,_0x2c995d,_0x3ae2ec);_0x286d65[_0x281888(0x1dc)](_0x461dae,null)&&_0x286d65[_0x281888(0x1f4)](_0x461dae,undefined)&&_0x286d65[_0x281888(0x192)](_0x461dae[_0x281888(0x1f0)],0xc8)&&(logger[_0x281888(0x1a2)](_0x286d65[_0x281888(0x184)]),process[_0x281888(0x1a4)](0x0)),logger['error'](_0x281888(0x1ee)+_0x461dae[_0x281888(0x1d9)]),await _0x286d65[_0x281888(0x1ab)](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes[_0x281888(0x1a6)],_0x286d65[_0x281888(0x182)],_0x46101f,_0xeabc51),process['exit'](0x1);}_0x286d65['eaPyI'](_0x46101f[_0x281888(0x1f0)],0x191)&&(logger[_0x281888(0x1ea)](_0x286d65[_0x281888(0x179)]),await _0x286d65[_0x281888(0x1af)](sendInstrumentationEvent,_0xeabc51,_0x286d65['wzfYh'],messageTypes[_0x281888(0x1a6)],_0x286d65[_0x281888(0x1ae)],null,_0xeabc51),process[_0x281888(0x1a4)](0x1)),_0x286d65[_0x281888(0x1de)](_0x46101f['statusCode'],0x190)&&(logger[_0x281888(0x1ea)](JSON[_0x281888(0x1c3)](_0x46101f['body'])['message']),await _0x286d65[_0x281888(0x183)](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes[_0x281888(0x1a6)],_0x286d65['rLTLc'],null,_0xeabc51),process[_0x281888(0x1a4)](0x1)),logger[_0x281888(0x1ea)](_0x281888(0x198)+JSON['stringify'](_0x46101f)),await _0x286d65[_0x281888(0x1af)](sendInstrumentationEvent,_0xeabc51,_0x286d65['wzfYh'],messageTypes['ERROR'],_0x286d65['ZiKcb'],_0x46101f,_0xeabc51),process[_0x281888(0x1a4)](0x1);}catch(_0x1c2682){logger[_0x281888(0x1ea)](_0x281888(0x1cc)+_0x1c2682[_0x281888(0x1f7)]),await _0x286d65['fHHll'](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes[_0x281888(0x1a6)],_0x286d65[_0x281888(0x1e4)],_0x1c2682,_0xeabc51),process[_0x281888(0x1a4)](0x1);}};function a11_0x83ba(){const _0x156428=['INFO','../../utils/instrumentationUtils','Pass\x20the\x20ID\x20of\x20the\x20Grid','VxBDE','MnhVE','<PasswordPlaceholder>','Browserstack','JuqGy','1044993JWPSFf','Successfully\x20deleted\x20the\x20grid','../../utils/createk8sClient','wSvDF','ZCHhF','4ilmAqs','clusterSpawnedVia','isBrowserstackCluster','5pGwhZT','Delete\x20an\x20Automation\x20grid.','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','cloudProvider','ZiKcb','gNNmD','guXmd','existsSync','../../utils/gridComponents','dEfoE','reconnecting-websocket','PvTgq','../../utils/utilityMethods','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','CvMXw','SYhgI','bKVPL','DELETE','NFVbX','CCsvb','eaPyI','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','GZWYe','Cluster:\x20','2188802ToRolL','HHWJV','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','password','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','aRYXT','command','isClusterPresent','PYIbd','builder','connectionTimeout','info','invalid-grid-id','exit','XrVlS','ERROR','init-not-called','ptuhS','options','WWLDP','anfOl','bhlHC','boolean','AoBDL','KRhqa','iawYv','gAqFa','clusterName','replace','cpdcJ','PmKhp','readFileSync','POUzF','wzfYh','delete-grid-called','../../cloudproviders/utils','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','DXsmO','../../utils/userInput','Wenjv','../../config/logger','CgkUn','Namespace:\x20','WDPht','parse','string','LgdGh','jdFTK','description','warn','VqYEB','\x22\x20and\x20ID\x20','../../config/constants','Failed\x20to\x20delete\x20resources!\x20Error:\x20','gpnZv','delete','DTSZe','ybfVP','MiWPN','type','axErA','gRSKJ','epilogue','unauthorised','adWgk','usage','body','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','lxuax','YbpDf','got','yGPeZ','https://','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','4095189bFqPyj','skip-tls-cert-verify','MrZhw','TZoVI','region','PhUfr','2866326DeiARX','default','requestId','error','OGDfk','argv','QBllm','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','zrAnZ','statusCode','invalid-input','name','\x22\x20with\x20ID\x20','RTMUD','CuBga','onlyGridInCluster','stack','Skip\x20insecure\x20cert\x20verification.','WebSocket','8525070yhOjHT','JpLpn','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','help','handler','username','skipTlsCertVerify','rEWTH','1436816GUtDuC','IECAA','aXBjP','40rLnDxV','clusterRegion','DrjbH','2095632iWEcNH','toLowerCase'];a11_0x83ba=function(){return _0x156428;};return a11_0x83ba();}
1
+ function a11_0x1dbb(){const _0xb106a8=['\x22\x20with\x20ID\x20','iAJlC','vLgxS','zUMDY','XcBlc','stack','qUXvQ','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','tnGmE','skip-tls-cert-verify','pthgT','xYVpK','691745vEjVpo','sKzRp','YQPAK','duaxm','invalid-input','toLowerCase','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','FoPAP','../../utils/userInput','delete','replace','YSsjE','CzEHQ','/packages/cli/grid/','body','MPzip','5006456WGAVdP','YdvLP','parse','opdSe','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','ctsER','6DkboDy','ERROR','<PasswordPlaceholder>','yoKcN','requestId','ALuMi','KCHMs','xqGhk','existsSync','NZefF','hydPa','bjyQr','AqKjY','mQNqv','INFO','DELETE','Browserstack','help','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','36306quxvca','Cluster:\x20','server-error','jdVWx','catch','1083034lIQBmV','tHWAB','aUaRp','MGPYB','usage','udTww','unknown-error','KIWtR','../../config/logger','dcSgC','stringify','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','hVYnm','init-not-called','connectionTimeout','statusCode','Skip\x20insecure\x20cert\x20verification.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Successfully\x20deleted\x20the\x20grid','1548056mAWPJr','nAKsw','region','Failed\x20to\x20delete\x20resources!\x20Error:\x20','VPkUR','QFPQH','OAYJW','grid','<UsernamePlaceholder>','../../cloudproviders/utils','message','qPUmy','unauthorised','skipTlsCertVerify','clusterRegion','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','Delete\x20an\x20Automation\x20grid.','GmIrq','AUuxW','clusterName','LCvMr','5bMOGrU','fsPgv','RRzFW','command','cloudProvider','onlyGridInCluster','desc','epilogue','RiRje','Pass\x20the\x20ID\x20of\x20the\x20Grid','got','default','warn','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','Vbbff','clusterId','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','type','cnHCK','readNamespace','bHYaI','pQlAZ','VeeFm','KyFGF','NZFfE','delete-grid-called','xOLJT','CxwQr','../../config/constants','Namespace:\x20','description','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','NSmJA','readFileSync','../../utils/webSocketUtils','xTISU','username','../../utils/utilityMethods','YGeQj','2652410pKNsDq','CGNut','537909fFfZAu','UuHDA','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','deleteCluster','ychsq','exit','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','gridId','sGJlg','info','then','https://','mcsPZ','../../utils/instrumentationUtils','1152JHabwE','password','grid-id','../../utils/gridComponents','ciyvR','name','builder','error','ruxml','../../utils/createk8sClient','\x22\x20and\x20ID\x20'];a11_0x1dbb=function(){return _0xb106a8;};return a11_0x1dbb();}const a11_0x3b84c1=a11_0x3f22;function a11_0x3f22(_0x5487dd,_0x2f80be){const _0x1dbb52=a11_0x1dbb();return a11_0x3f22=function(_0x3f22bc,_0x37fc3c){_0x3f22bc=_0x3f22bc-0x132;let _0x473d31=_0x1dbb52[_0x3f22bc];return _0x473d31;},a11_0x3f22(_0x5487dd,_0x2f80be);}(function(_0x28ca53,_0x452d85){const _0x2401de=a11_0x3f22,_0x74193e=_0x28ca53();while(!![]){try{const _0x3a5677=-parseInt(_0x2401de(0x17a))/0x1+-parseInt(_0x2401de(0x1a8))/0x2+parseInt(_0x2401de(0x155))/0x3+parseInt(_0x2401de(0x1bb))/0x4*(parseInt(_0x2401de(0x1d0))/0x5)+parseInt(_0x2401de(0x190))/0x6*(parseInt(_0x2401de(0x18a))/0x7)+parseInt(_0x2401de(0x163))/0x8*(parseInt(_0x2401de(0x1a3))/0x9)+-parseInt(_0x2401de(0x153))/0xa;if(_0x3a5677===_0x452d85)break;else _0x74193e['push'](_0x74193e['shift']());}catch(_0x84a681){_0x74193e['push'](_0x74193e['shift']());}}}(a11_0x1dbb,0x58d8e));const fs=require('fs'),got=require(a11_0x3b84c1(0x136)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x3b84c1(0x148)),{logger}=require(a11_0x3b84c1(0x1b0)),{getCloudProviderObject}=require(a11_0x3b84c1(0x1c4)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x3b84c1(0x166)),{sendInstrumentationEvent}=require(a11_0x3b84c1(0x162)),{inputConfirmation}=require(a11_0x3b84c1(0x182)),{createK8sClient}=require(a11_0x3b84c1(0x16c)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x3b84c1(0x151)),webSocketUtils=require(a11_0x3b84c1(0x14e));exports[a11_0x3b84c1(0x1d3)]=a11_0x3b84c1(0x1c2),exports[a11_0x3b84c1(0x132)]=a11_0x3b84c1(0x1cb),exports[a11_0x3b84c1(0x169)]=function(_0x540658){const _0x661991=a11_0x3b84c1,_0x28a065={};_0x28a065[_0x661991(0x1d2)]=_0x661991(0x135),_0x28a065[_0x661991(0x17c)]='string',_0x28a065[_0x661991(0x1cf)]=_0x661991(0x1b8),_0x28a065[_0x661991(0x179)]='boolean',_0x28a065[_0x661991(0x1c1)]=_0x661991(0x1a1);const _0x4ac5f0=_0x28a065,_0x546c5a={};_0x546c5a['description']=_0x4ac5f0[_0x661991(0x1d2)],_0x546c5a['type']=_0x4ac5f0[_0x661991(0x17c)];const _0x17421f={};_0x17421f[_0x661991(0x14a)]=_0x4ac5f0[_0x661991(0x1cf)],_0x17421f[_0x661991(0x13d)]=_0x4ac5f0[_0x661991(0x179)],_0x17421f[_0x661991(0x137)]=![];const _0x5d18f3={};return _0x5d18f3[_0x661991(0x165)]=_0x546c5a,_0x5d18f3['skip-tls-cert-verify']=_0x17421f,_0x540658['usage'](HELP_HEADER_MESSAGE[_0x661991(0x183)])[_0x661991(0x133)](HELP_FOOTER_MESSAGE)['options'](_0x5d18f3)[_0x661991(0x1a1)](_0x4ac5f0[_0x661991(0x1c1)])['argv'];},exports['handler']=async function(_0x389ade){const _0x5d988e=a11_0x3b84c1,_0x1a98c3={'YGeQj':_0x5d988e(0x1a2),'hydPa':_0x5d988e(0x1ba),'KyFGF':function(_0x2a91e6,_0x3f5221){return _0x2a91e6!==_0x3f5221;},'MPzip':_0x5d988e(0x1b1),'VeeFm':function(_0x173e40,_0x457d51){return _0x173e40!==_0x457d51;},'YSsjE':_0x5d988e(0x14c),'GmIrq':_0x5d988e(0x1b3),'QFPQH':'Pass\x20the\x20ID\x20of\x20the\x20Grid','cLJWU':'string','srJMg':_0x5d988e(0x1b8),'uBPyc':'boolean','bHYaI':'help','mQNqv':function(_0x4eb5a4){return _0x4eb5a4();},'cnHCK':function(_0x28926){return _0x28926();},'NZefF':function(_0x48dd30,_0x39f3eb){return _0x48dd30===_0x39f3eb;},'AqKjY':_0x5d988e(0x1a9),'BTeEe':_0x5d988e(0x144),'ciyvR':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','UuHDA':function(_0x44aca0,_0x21a229,_0x3c92e1,_0x575dbe,_0x4fcaae,_0x11218a,_0x472485){return _0x44aca0(_0x21a229,_0x3c92e1,_0x575dbe,_0x4fcaae,_0x11218a,_0x472485);},'KIWtR':_0x5d988e(0x145),'IENJQ':_0x5d988e(0x1b5),'pQlAZ':function(_0x225877,_0x26d59a,_0x7eae7f,_0xc3c5c0,_0x20c0b1,_0x3b5348,_0xa0642c){return _0x225877(_0x26d59a,_0x7eae7f,_0xc3c5c0,_0x20c0b1,_0x3b5348,_0xa0642c);},'ATsaP':function(_0x29a393,_0x4b8efd){return _0x29a393!==_0x4b8efd;},'fsPgv':'BnNFW','bjyQr':_0x5d988e(0x174),'jJgSa':function(_0x14c992,_0x51250b,_0x4273c8,_0x4151b8){return _0x14c992(_0x51250b,_0x4273c8,_0x4151b8);},'hVYnm':function(_0xf6c28e,_0x497de6){return _0xf6c28e===_0x497de6;},'AUuxW':_0x5d988e(0x1a0),'duaxm':function(_0x33c90d,_0x5f01d6){return _0x33c90d===_0x5f01d6;},'uGuMI':_0x5d988e(0x15d),'HprOc':_0x5d988e(0x171),'iAJlC':function(_0x386206,_0x4e537c){return _0x386206(_0x4e537c);},'CGNut':function(_0x3f955e,_0x274b4a){return _0x3f955e===_0x274b4a;},'FoPAP':function(_0x279d0a,_0xb7e17e){return _0x279d0a===_0xb7e17e;},'ychsq':_0x5d988e(0x170),'opdSe':_0x5d988e(0x14b),'pthgT':_0x5d988e(0x17e),'XcBlc':function(_0xacf4f2,_0x37fb64){return _0xacf4f2!==_0x37fb64;},'MGPYB':'HhFXZ','aUaRp':'vYlRY','ALuMi':_0x5d988e(0x1c3),'xTISU':_0x5d988e(0x192),'yoKcN':function(_0x1b52a0,_0x35940c,_0x23be62){return _0x1b52a0(_0x35940c,_0x23be62);},'sZUCs':function(_0x43081c,_0x3434c5,_0x59ad32,_0x50bf04,_0x35a72d,_0x3783d4){return _0x43081c(_0x3434c5,_0x59ad32,_0x50bf04,_0x35a72d,_0x3783d4);},'Lcapo':function(_0x29bd63,_0x5dc611){return _0x29bd63===_0x5dc611;},'CxwQr':_0x5d988e(0x176),'ruxml':_0x5d988e(0x1bf),'sKzRp':_0x5d988e(0x1c6),'ctsER':_0x5d988e(0x18b),'udTww':_0x5d988e(0x19f),'xqGhk':function(_0x1b7c4a,_0x2b696b,_0x517257){return _0x1b7c4a(_0x2b696b,_0x517257);},'KCHMs':function(_0x4ed05e,_0x913fe5){return _0x4ed05e!==_0x913fe5;},'jdVWx':_0x5d988e(0x1a5),'sPjxl':function(_0x5d3ff3,_0x8c4b58){return _0x5d3ff3===_0x8c4b58;},'CzEHQ':_0x5d988e(0x15b),'mcsPZ':_0x5d988e(0x1c7),'RiRje':function(_0x300672,_0x564c5b,_0x8694fd,_0x5027f9,_0x167ffe,_0x902982,_0x8fcbd5){return _0x300672(_0x564c5b,_0x8694fd,_0x5027f9,_0x167ffe,_0x902982,_0x8fcbd5);},'nAKsw':'invalid-grid-id','xOLJT':_0x5d988e(0x1ae)};try{global_registry[_0x5d988e(0x194)]=_0x1a98c3[_0x5d988e(0x19d)](uuidv4);!fs[_0x5d988e(0x198)](_0x1a98c3[_0x5d988e(0x13e)](getCredentialsPath))&&(_0x1a98c3[_0x5d988e(0x199)](_0x1a98c3[_0x5d988e(0x19c)],_0x1a98c3['BTeEe'])?_0x1a4ae4='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x533dd0[_0x5d988e(0x168)]+'\x22\x20and\x20ID\x20'+_0x45aefb['id']+_0x5d988e(0x1ca)+_0x4bbdbc['clusterName']+_0x5d988e(0x16e)+_0x234e9a[_0x5d988e(0x13b)]+_0x5d988e(0x157):(console[_0x5d988e(0x16a)](_0x1a98c3[_0x5d988e(0x167)]),await _0x1a98c3[_0x5d988e(0x156)](sendInstrumentationEvent,_0x389ade,_0x1a98c3[_0x5d988e(0x1af)],messageTypes['ERROR'],_0x1a98c3['IENJQ'],null,_0x389ade),process[_0x5d988e(0x15a)](0x1)));_0x1a98c3[_0x5d988e(0x141)](sendInstrumentationEvent,_0x389ade,_0x1a98c3[_0x5d988e(0x1af)],messageTypes[_0x5d988e(0x19e)],null,null,_0x389ade);!_0x389ade[_0x5d988e(0x15c)]&&(_0x1a98c3['ATsaP'](_0x1a98c3[_0x5d988e(0x1d1)],_0x1a98c3[_0x5d988e(0x19b)])?(console['error'](_0x1a98c3['YGeQj']),process['exit'](0x1)):_0x26e8dd['info'](_0x5d988e(0x149)+_0x2738da+'\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion'));const _0x1d5982=JSON[_0x5d988e(0x18c)](fs[_0x5d988e(0x14d)](_0x1a98c3[_0x5d988e(0x13e)](getCredentialsPath))),[_0xd9e650,_0x24475d]=await _0x1a98c3['jJgSa'](getGridDetails,_0x1d5982[_0x5d988e(0x1a0)][_0x5d988e(0x150)],_0x1d5982[_0x5d988e(0x1a0)]['password'],_0x389ade[_0x5d988e(0x15c)]);if(_0x24475d){const _0x135e23=_0x24475d[_0x5d988e(0x15e)];let _0x2f1fa7=_0x5d988e(0x180)+_0x135e23['name']+_0x5d988e(0x16d)+_0x135e23['id']+_0x5d988e(0x157);_0x24475d[_0x5d988e(0x1d5)]&&_0x1a98c3[_0x5d988e(0x1b4)](_0x24475d['clusterSpawnedVia'],_0x1a98c3[_0x5d988e(0x1cd)])&&(_0x1a98c3['duaxm'](_0x1a98c3['uGuMI'],_0x1a98c3['HprOc'])?_0x5c7d76[_0x5d988e(0x15a)](0x0):_0x2f1fa7='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x135e23[_0x5d988e(0x168)]+_0x5d988e(0x16d)+_0x135e23['id']+_0x5d988e(0x1ca)+_0x135e23['clusterName']+'\x22\x20with\x20ID\x20'+_0x135e23[_0x5d988e(0x13b)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');const _0x37266c=await _0x1a98c3['iAJlC'](inputConfirmation,_0x2f1fa7);(_0x1a98c3['NZefF'](_0x37266c,undefined)||_0x1a98c3[_0x5d988e(0x154)](_0x37266c,null)||!(_0x1a98c3[_0x5d988e(0x17d)](_0x37266c[_0x5d988e(0x17f)](),'y')||_0x1a98c3['FoPAP'](_0x37266c[_0x5d988e(0x17f)](),'n')))&&(_0x1a98c3['KyFGF'](_0x1a98c3[_0x5d988e(0x159)],_0x1a98c3[_0x5d988e(0x159)])?(_0x20b767['warn']('Namespace:\x20'+_0x2609a9+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x378b73=![]):(console[_0x5d988e(0x16a)](_0x1a98c3[_0x5d988e(0x18d)]),await _0x1a98c3[_0x5d988e(0x141)](sendInstrumentationEvent,_0x389ade,_0x1a98c3[_0x5d988e(0x1af)],messageTypes['ERROR'],_0x1a98c3[_0x5d988e(0x178)],null,_0x389ade),process[_0x5d988e(0x15a)](0x1)));_0x1a98c3[_0x5d988e(0x181)](_0x37266c[_0x5d988e(0x17f)](),'n')&&(_0x1a98c3[_0x5d988e(0x172)](_0x1a98c3[_0x5d988e(0x1ab)],_0x1a98c3[_0x5d988e(0x1aa)])?process[_0x5d988e(0x15a)](0x0):(_0x38eb44[_0x5d988e(0x16a)](_0x1a98c3[_0x5d988e(0x152)]),_0x177477[_0x5d988e(0x15a)](0x1)));const _0x1f6148=WS_ENDPOINT[_0x5d988e(0x184)](_0x1a98c3[_0x5d988e(0x195)],_0x1d5982[_0x5d988e(0x1a0)][_0x5d988e(0x150)])['replace'](_0x1a98c3[_0x5d988e(0x14f)],_0x1d5982['Browserstack'][_0x5d988e(0x164)]),_0x385c11={};_0x385c11['WebSocket']=ws,_0x385c11[_0x5d988e(0x1b6)]=0x36ee80;const _0x2e43f4=new ReconnectingWebSocket(_0x1f6148,[],_0x385c11);global_registry[_0x5d988e(0x1c9)]=_0x135e23[_0x5d988e(0x1bd)];const _0x1903e4=_0x135e23[_0x5d988e(0x1d4)],_0x170e35=await _0x1a98c3['UuHDA'](getCloudProviderObject,_0x1903e4,_0x135e23[_0x5d988e(0x1ce)],_0x135e23['name'],_0x2e43f4,webSocketUtils,_0x389ade),_0x1577cd=await _0x170e35['isClusterPresent']();if(_0x1577cd){const _0x558164=_0x1a98c3[_0x5d988e(0x16f)](kebabCase,_0x135e23[_0x5d988e(0x168)]),[_0x233d10,_0x18261f,_0x5d11d4,_0x3be50c,_0x33cc64,_0x162f96]=await _0x1a98c3[_0x5d988e(0x193)](createK8sClient,_0x170e35,_0x389ade[_0x5d988e(0x1c8)]);let _0x1a2c6b=!![];const _0x1455f8={};_0x1455f8['name']=_0x558164,await _0x233d10[_0x5d988e(0x13f)](_0x1455f8)[_0x5d988e(0x15f)](_0x59f81e=>{const _0x2a897f=_0x5d988e,_0x252b46={};_0x252b46[_0x2a897f(0x13a)]=_0x1a98c3[_0x2a897f(0x19a)];const _0x335757=_0x252b46;_0x1a98c3[_0x2a897f(0x143)](_0x1a98c3[_0x2a897f(0x189)],_0x1a98c3[_0x2a897f(0x189)])?(_0x1fa6ae[_0x2a897f(0x15e)](_0x335757[_0x2a897f(0x13a)]),_0x2f42c2[_0x2a897f(0x15a)](0x0)):logger[_0x2a897f(0x15e)]('Namespace:\x20'+_0x558164+_0x2a897f(0x139));})[_0x5d988e(0x1a7)](_0x306153=>{const _0x4729fd=_0x5d988e;_0x1a98c3[_0x4729fd(0x142)](_0x1a98c3[_0x4729fd(0x185)],_0x1a98c3[_0x4729fd(0x185)])?_0x259b1f[_0x4729fd(0x138)]('Cluster:\x20'+_0x16bfab[_0x4729fd(0x1ce)]+_0x4729fd(0x13c)):(logger[_0x4729fd(0x138)](_0x4729fd(0x149)+_0x558164+_0x4729fd(0x175)),_0x1a2c6b=![]);});if(_0x1a2c6b){await _0x1a98c3['sZUCs'](removeGridComponents,_0x233d10,_0x18261f,_0x5d11d4,_0x3be50c,_0x558164);if(_0x24475d[_0x5d988e(0x1d5)]){const _0x518cc1=await _0x170e35['isBrowserstackCluster']();if(_0x518cc1)_0x1a98c3['Lcapo'](_0x1a98c3[_0x5d988e(0x147)],_0x1a98c3[_0x5d988e(0x16b)])?_0x2a28a1[_0x5d988e(0x138)](_0x1a98c3[_0x5d988e(0x1cc)]):await _0x170e35[_0x5d988e(0x158)](_0x233d10,_0x135e23[_0x5d988e(0x1bd)]);else{if(_0x1a98c3[_0x5d988e(0x142)](_0x1a98c3[_0x5d988e(0x17b)],_0x1a98c3[_0x5d988e(0x18f)]))logger[_0x5d988e(0x138)](_0x5d988e(0x1a4)+_0x135e23[_0x5d988e(0x1ce)]+_0x5d988e(0x13c));else{const _0x1e0e91={};_0x1e0e91[_0x5d988e(0x14a)]=_0x1a98c3[_0x5d988e(0x1c0)],_0x1e0e91['type']=_0x1a98c3['cLJWU'];const _0x47f5c6={};_0x47f5c6[_0x5d988e(0x14a)]=_0x1a98c3['srJMg'],_0x47f5c6['type']=_0x1a98c3['uBPyc'],_0x47f5c6[_0x5d988e(0x137)]=![];const _0x1a2741={};return _0x1a2741[_0x5d988e(0x165)]=_0x1e0e91,_0x1a2741[_0x5d988e(0x177)]=_0x47f5c6,_0x16802e[_0x5d988e(0x1ac)](_0x1739c0[_0x5d988e(0x183)])[_0x5d988e(0x133)](_0x522079)['options'](_0x1a2741)['help'](_0x1a98c3[_0x5d988e(0x140)])['argv'];}}}}}else logger[_0x5d988e(0x138)](_0x1a98c3[_0x5d988e(0x1cc)]);const _0xbe908d=_0x5d988e(0x160)+AG_API_URL+_0x5d988e(0x187)+_0x389ade[_0x5d988e(0x15c)],_0x5418e0={'method':_0x1a98c3[_0x5d988e(0x1ad)],'headers':_0x1a98c3[_0x5d988e(0x197)](getAuthHeader,_0x1d5982['Browserstack'][_0x5d988e(0x150)],_0x1d5982[_0x5d988e(0x1a0)]['password']),'throwHttpErrors':![]},_0x6f219e=await _0x1a98c3['xqGhk'](got,_0xbe908d,_0x5418e0);_0x1a98c3[_0x5d988e(0x196)](_0x6f219e,null)&&_0x1a98c3['ATsaP'](_0x6f219e,undefined)&&_0x1a98c3[_0x5d988e(0x1b4)](_0x6f219e[_0x5d988e(0x1b7)],0xc8)&&(logger[_0x5d988e(0x15e)](_0x1a98c3[_0x5d988e(0x19a)]),process[_0x5d988e(0x15a)](0x0)),logger['error'](_0x5d988e(0x18e)+_0x6f219e[_0x5d988e(0x188)]),await _0x1a98c3[_0x5d988e(0x156)](sendInstrumentationEvent,_0x389ade,_0x1a98c3[_0x5d988e(0x1af)],messageTypes[_0x5d988e(0x191)],_0x1a98c3[_0x5d988e(0x1a6)],_0xd9e650,_0x389ade),process[_0x5d988e(0x15a)](0x1);}_0x1a98c3['sPjxl'](_0xd9e650['statusCode'],0x191)&&(logger[_0x5d988e(0x16a)](_0x1a98c3[_0x5d988e(0x186)]),await _0x1a98c3['UuHDA'](sendInstrumentationEvent,_0x389ade,_0x1a98c3[_0x5d988e(0x1af)],messageTypes[_0x5d988e(0x191)],_0x1a98c3[_0x5d988e(0x161)],null,_0x389ade),process[_0x5d988e(0x15a)](0x1)),_0x1a98c3[_0x5d988e(0x1b4)](_0xd9e650[_0x5d988e(0x1b7)],0x190)&&(logger[_0x5d988e(0x16a)](JSON[_0x5d988e(0x18c)](_0xd9e650[_0x5d988e(0x188)])[_0x5d988e(0x1c5)]),await _0x1a98c3[_0x5d988e(0x134)](sendInstrumentationEvent,_0x389ade,_0x1a98c3[_0x5d988e(0x1af)],messageTypes['ERROR'],_0x1a98c3[_0x5d988e(0x1bc)],null,_0x389ade),process[_0x5d988e(0x15a)](0x1)),logger['error'](_0x5d988e(0x1b9)+JSON[_0x5d988e(0x1b2)](_0xd9e650)),await _0x1a98c3[_0x5d988e(0x134)](sendInstrumentationEvent,_0x389ade,_0x1a98c3[_0x5d988e(0x1af)],messageTypes[_0x5d988e(0x191)],_0x1a98c3[_0x5d988e(0x1a6)],_0xd9e650,_0x389ade),process[_0x5d988e(0x15a)](0x1);}catch(_0x566e95){logger[_0x5d988e(0x16a)](_0x5d988e(0x1be)+_0x566e95[_0x5d988e(0x173)]),await _0x1a98c3[_0x5d988e(0x134)](sendInstrumentationEvent,_0x389ade,_0x1a98c3[_0x5d988e(0x1af)],messageTypes[_0x5d988e(0x191)],_0x1a98c3[_0x5d988e(0x146)],_0x566e95,_0x389ade),process[_0x5d988e(0x15a)](0x1);}};
@@ -1 +1 @@
1
- function a12_0x13d2(_0x88ce62,_0xd9a308){const _0x1dfdb0=a12_0x1dfd();return a12_0x13d2=function(_0x13d208,_0x31eed2){_0x13d208=_0x13d208-0xe4;let _0x28161e=_0x1dfdb0[_0x13d208];return _0x28161e;},a12_0x13d2(_0x88ce62,_0xd9a308);}const a12_0x482149=a12_0x13d2;(function(_0x55a7b1,_0x236167){const _0x1a556e=a12_0x13d2,_0x46c31a=_0x55a7b1();while(!![]){try{const _0x31802f=-parseInt(_0x1a556e(0xfa))/0x1*(-parseInt(_0x1a556e(0x14c))/0x2)+-parseInt(_0x1a556e(0x12b))/0x3+parseInt(_0x1a556e(0x121))/0x4+parseInt(_0x1a556e(0x11e))/0x5+-parseInt(_0x1a556e(0xf2))/0x6*(-parseInt(_0x1a556e(0x10c))/0x7)+parseInt(_0x1a556e(0xe5))/0x8+-parseInt(_0x1a556e(0xee))/0x9;if(_0x31802f===_0x236167)break;else _0x46c31a['push'](_0x46c31a['shift']());}catch(_0x468a75){_0x46c31a['push'](_0x46c31a['shift']());}}}(a12_0x1dfd,0xcec54));function a12_0x1dfd(){const _0x258cff=['GROSS','../utils/userInput','GET','QObHi','vIpFN','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','bAliJ','CwgRt','21mIIuJt','rBtsV','bstackAccesskey','yRFzp','Browserstack','init','bstackUsername','lVoEl','AMKKg','requestId','kceaZ','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','argv','MhANN','MQlYk','auLAC','string','kHdxp','5243520yESgKu','PWSzj','HLBnL','5887872STYieX','fHTNm','VyNOU','util','epilogue','../config/logger','utf-8','xAqDk','BROWSERSTACK_USERNAME','Yjgos','4354560fvlkZx','Mmezz','env','readFileSync','debug','VGJIK','Majqf','YmEVL','description','error','recommendCommands','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','yXujv','../config/constants','zuofu','PLJoD','strict','YoYSF','mDaYH','type','password','mlKBs','help','/automate/plan.json','OFCfd','tMxLG','desc','mkdirSync','vvhPu','bstack-accesskey','NyMGt','stringify','tQZJo','524466HnxUlf','edYRz','zXLTb','unknown-error','1618008gCKkVB','builder','existsSync','OAwuO','exit','options','HnsMU','dlQVW','iWufw','11701593tFCCih','got','BROWSERSTACK_ACCESS_KEY','handler','178014XklTKb','zknkt','dVgdj','username','ERROR','rWKBa','https://','command','3wpDlqH','LTtgH','wrong-creds','Gkwlz','usage','../utils/instrumentationUtils','parse','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstack-username','CHrdx'];a12_0x1dfd=function(){return _0x258cff;};return a12_0x1dfd();}const fs=require('fs'),util=require(a12_0x482149(0x124)),got=require(a12_0x482149(0xef)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x482149(0x126)),{inputBstackKeys}=require(a12_0x482149(0x105)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x482149(0x138)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x482149(0xff));exports[a12_0x482149(0xf9)]='init',exports[a12_0x482149(0x145)]=a12_0x482149(0x136),exports[a12_0x482149(0xe6)]=function(_0x1b5d9f){const _0x12649b=a12_0x482149,_0x524469={};_0x524469['AMKKg']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x524469['Mmezz']=_0x12649b(0x11c),_0x524469[_0x12649b(0x143)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x524469[_0x12649b(0x149)]=_0x12649b(0x141);const _0x3e454d=_0x524469,_0x370972={};_0x370972['description']=_0x3e454d[_0x12649b(0x114)],_0x370972[_0x12649b(0x13e)]=_0x3e454d[_0x12649b(0x12c)];const _0x18debe={};_0x18debe[_0x12649b(0x133)]=_0x3e454d[_0x12649b(0x143)],_0x18debe['type']=_0x3e454d['Mmezz'];const _0xfa7736={};return _0xfa7736[_0x12649b(0x102)]=_0x370972,_0xfa7736[_0x12649b(0x148)]=_0x18debe,_0x1b5d9f[_0x12649b(0xfe)](HELP_HEADER_MESSAGE[_0x12649b(0x111)])[_0x12649b(0x125)](HELP_FOOTER_MESSAGE)[_0x12649b(0xea)](_0xfa7736)[_0x12649b(0x135)]()['strict']()[_0x12649b(0x141)](_0x3e454d[_0x12649b(0x149)])[_0x12649b(0x118)];},exports[a12_0x482149(0xf1)]=async function(_0x2258da){const _0x40fa15=a12_0x482149,_0xc540f3={'NPkZy':_0x40fa15(0x117),'edYRz':_0x40fa15(0x11c),'dlQVW':_0x40fa15(0x101),'VyNOU':_0x40fa15(0x141),'PLJoD':_0x40fa15(0x127),'lVoEl':function(_0x3c5ca0){return _0x3c5ca0();},'LexlC':function(_0x151cfa){return _0x151cfa();},'MQlYk':function(_0x25303c,_0x1c28c3,_0x13dc1c,_0x3c9222,_0x507edd,_0x16ec7f,_0xd6d44c){return _0x25303c(_0x1c28c3,_0x13dc1c,_0x3c9222,_0x507edd,_0x16ec7f,_0xd6d44c);},'Gkwlz':'init-called','PWSzj':function(_0x4b39b5,_0xcad2f8){return _0x4b39b5!==_0xcad2f8;},'kHdxp':_0x40fa15(0x10f),'CHrdx':_0x40fa15(0xf7),'tMxLG':function(_0x49ce14,_0x457a19){return _0x49ce14===_0x457a19;},'fHTNm':_0x40fa15(0x108),'kceaZ':_0x40fa15(0x140),'MhANN':function(_0xba03bd,_0x10bc86){return _0xba03bd===_0x10bc86;},'wskBF':'ceSLa','Majqf':_0x40fa15(0x139),'rBtsV':_0x40fa15(0xf3),'Yjgos':function(_0x42c340,_0x4b57f9){return _0x42c340===_0x4b57f9;},'OAwuO':function(_0x56e0da,_0x2c2c81){return _0x56e0da===_0x2c2c81;},'YmEVL':_0x40fa15(0x13c),'auLAC':'hsMSM','yXujv':_0x40fa15(0x109),'dNlvR':_0x40fa15(0x106),'GROSS':function(_0x199b72,_0x2a7cd7,_0x7b724d){return _0x199b72(_0x2a7cd7,_0x7b724d);},'LTtgH':function(_0x3288dd,_0x2a372b,_0x62d845){return _0x3288dd(_0x2a372b,_0x62d845);},'xAqDk':function(_0x2a6a65,_0x2f769d){return _0x2a6a65!==_0x2f769d;},'bAliJ':_0x40fa15(0x130),'HLBnL':_0x40fa15(0x13d),'iWufw':_0x40fa15(0xeb),'CwgRt':function(_0x22ebc4){return _0x22ebc4();},'QObHi':_0x40fa15(0x14b),'dVgdj':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','zXLTb':function(_0x3494fa,_0x4d2f2b,_0x7d61d9,_0x57ad9,_0x22c830,_0x217251,_0x56a6ae){return _0x3494fa(_0x4d2f2b,_0x7d61d9,_0x57ad9,_0x22c830,_0x217251,_0x56a6ae);},'dCehY':_0x40fa15(0xfc),'vvhPu':function(_0x20723e,_0x387e1c,_0x5cfb56,_0x97bdcc,_0x42b397,_0x140193,_0x504856){return _0x20723e(_0x387e1c,_0x5cfb56,_0x97bdcc,_0x42b397,_0x140193,_0x504856);},'azXmu':_0x40fa15(0xe4)};try{global_registry[_0x40fa15(0x115)]=_0xc540f3['LexlC'](uuidv4),_0xc540f3[_0x40fa15(0x11a)](sendInstrumentationEvent,_0x2258da,_0xc540f3[_0x40fa15(0xfd)],messageTypes['INFO'],null,null,_0x2258da);const _0x4b19a6=_0xc540f3[_0x40fa15(0x113)](getDirForConfig);if(!fs[_0x40fa15(0xe7)](_0x4b19a6)){if(_0xc540f3[_0x40fa15(0x11f)](_0xc540f3[_0x40fa15(0x11d)],_0xc540f3[_0x40fa15(0x11d)])){const _0x5f2bf5={};_0x5f2bf5[_0x40fa15(0x133)]=_0xc540f3['NPkZy'],_0x5f2bf5[_0x40fa15(0x13e)]=_0xc540f3['edYRz'];const _0x1f05a0={};_0x1f05a0[_0x40fa15(0x133)]=_0xc540f3[_0x40fa15(0xec)],_0x1f05a0[_0x40fa15(0x13e)]=_0xc540f3[_0x40fa15(0x14d)];const _0x557474={};return _0x557474[_0x40fa15(0x102)]=_0x5f2bf5,_0x557474['bstack-accesskey']=_0x1f05a0,_0x3242c0['usage'](_0x56ee15[_0x40fa15(0x111)])[_0x40fa15(0x125)](_0x395407)[_0x40fa15(0xea)](_0x557474)['recommendCommands']()[_0x40fa15(0x13b)]()[_0x40fa15(0x141)](_0xc540f3[_0x40fa15(0x123)])[_0x40fa15(0x118)];}else fs[_0x40fa15(0x146)](_0x4b19a6);}let _0x15fbf8,_0x1fd3ae;process[_0x40fa15(0x12d)][_0x40fa15(0x129)]&&(_0xc540f3['PWSzj'](_0xc540f3[_0x40fa15(0x103)],_0xc540f3[_0x40fa15(0x103)])?_0x5402f8=_0x4f0c2e[_0x40fa15(0x100)](_0x28307d[_0x40fa15(0x12e)](_0x1da6cf,_0xc540f3[_0x40fa15(0x13a)])):_0x15fbf8=process[_0x40fa15(0x12d)]['BROWSERSTACK_USERNAME']);process[_0x40fa15(0x12d)]['BROWSERSTACK_ACCESS_KEY']&&(_0xc540f3['tMxLG'](_0xc540f3[_0x40fa15(0x122)],_0xc540f3[_0x40fa15(0x116)])?_0x34e41c[_0x40fa15(0x146)](_0x5c334e):_0x1fd3ae=process['env'][_0x40fa15(0xf0)]);_0x2258da[_0x40fa15(0x112)]&&(_0xc540f3['MhANN'](_0xc540f3['wskBF'],_0xc540f3['wskBF'])?_0x15fbf8=_0x2258da[_0x40fa15(0x112)]:_0x357cfc=_0x57938f[_0x40fa15(0x112)]);_0x2258da[_0x40fa15(0x10e)]&&(_0xc540f3[_0x40fa15(0x11f)](_0xc540f3[_0x40fa15(0x131)],_0xc540f3[_0x40fa15(0x10d)])?_0x1fd3ae=_0x2258da[_0x40fa15(0x10e)]:_0x3f9b25=_0x329029[_0x40fa15(0x12d)][_0x40fa15(0xf0)]);if(_0xc540f3[_0x40fa15(0x119)](_0x15fbf8,undefined)||_0xc540f3[_0x40fa15(0x12a)](_0x1fd3ae,undefined)){if(_0xc540f3[_0x40fa15(0xe8)](_0xc540f3[_0x40fa15(0x132)],_0xc540f3[_0x40fa15(0x11b)]))_0x496993=!![];else{logger[_0x40fa15(0x12f)](_0xc540f3[_0x40fa15(0x137)]);const [_0x4f3806,_0xee9b3]=await _0xc540f3[_0x40fa15(0x113)](inputBstackKeys);_0x15fbf8=_0x4f3806,_0x1fd3ae=_0xee9b3;}}let _0x3a1bff=![];const _0x2a4bc7=_0x40fa15(0xf8)+_0x15fbf8+':'+_0x1fd3ae+'@'+BS_API_URL+_0x40fa15(0x142),_0x3b29fc={'method':_0xc540f3['dNlvR'],'headers':_0xc540f3[_0x40fa15(0x104)](getAuthHeader,_0x15fbf8,_0x1fd3ae),'throwHttpErrors':![]},_0x2065e3=await _0xc540f3[_0x40fa15(0xfb)](got,_0x2a4bc7,_0x3b29fc);_0xc540f3[_0x40fa15(0x128)](_0x2065e3,null)&&_0xc540f3[_0x40fa15(0x11f)](_0x2065e3,undefined)&&_0xc540f3['tMxLG'](_0x2065e3['statusCode'],0xc8)&&(_0xc540f3['tMxLG'](_0xc540f3['bAliJ'],_0xc540f3[_0x40fa15(0x10a)])?_0x3a1bff=!![]:_0x43b14b=_0x396cc8[_0x40fa15(0x12d)][_0x40fa15(0x129)]);if(_0x3a1bff){if(_0xc540f3[_0x40fa15(0x144)](_0xc540f3[_0x40fa15(0x120)],_0xc540f3[_0x40fa15(0xed)])){let _0x2e3fac={};const _0x46c2f7=_0xc540f3[_0x40fa15(0x113)](_0x548bdb);_0x430c89[_0x40fa15(0xe7)](_0x46c2f7)&&(_0x2e3fac=_0x2d083a[_0x40fa15(0x100)](_0x1f9ec2[_0x40fa15(0x12e)](_0x46c2f7,_0xc540f3[_0x40fa15(0x13a)])));const _0x38bb86={};_0x38bb86[_0x40fa15(0xf5)]=_0x26adb4,_0x38bb86[_0x40fa15(0x13f)]=_0xbaecfe,_0x2e3fac[_0x40fa15(0x110)]=_0x38bb86,_0x3b02a8['writeFileSync'](_0x46c2f7,_0x1b31e4[_0x40fa15(0x14a)](_0x2e3fac)),_0x44b296[_0x40fa15(0xe9)](0x0);}else{let _0x1938e3={};const _0x271dab=_0xc540f3[_0x40fa15(0x10b)](getCredentialsPath);fs[_0x40fa15(0xe7)](_0x271dab)&&(_0xc540f3[_0x40fa15(0x11f)](_0xc540f3[_0x40fa15(0x107)],_0xc540f3[_0x40fa15(0x107)])?_0x1f00c3=_0xedf449[_0x40fa15(0x10e)]:_0x1938e3=JSON[_0x40fa15(0x100)](fs['readFileSync'](_0x271dab,_0xc540f3['PLJoD'])));const _0x5a2091={};_0x5a2091[_0x40fa15(0xf5)]=_0x15fbf8,_0x5a2091['password']=_0x1fd3ae,_0x1938e3[_0x40fa15(0x110)]=_0x5a2091,fs['writeFileSync'](_0x271dab,JSON[_0x40fa15(0x14a)](_0x1938e3)),process[_0x40fa15(0xe9)](0x0);}}else logger[_0x40fa15(0x134)](_0xc540f3[_0x40fa15(0xf4)]),await _0xc540f3[_0x40fa15(0x14e)](sendInstrumentationEvent,_0x2258da,_0xc540f3[_0x40fa15(0xfd)],messageTypes[_0x40fa15(0xf6)],_0xc540f3['dCehY'],null,_0x2258da),process['exit'](0x1);}catch(_0x13ff13){logger[_0x40fa15(0x134)](_0x13ff13['stack']),await _0xc540f3[_0x40fa15(0x147)](sendInstrumentationEvent,_0x2258da,_0xc540f3[_0x40fa15(0xfd)],messageTypes[_0x40fa15(0xf6)],_0xc540f3['azXmu'],_0x13ff13,_0x2258da),process[_0x40fa15(0xe9)](0x1);}};
1
+ const a12_0x53575f=a12_0x2fab;function a12_0x2fab(_0x318eae,_0x3295f2){const _0x102e9c=a12_0x102e();return a12_0x2fab=function(_0x2fab16,_0x598286){_0x2fab16=_0x2fab16-0x182;let _0x4733e9=_0x102e9c[_0x2fab16];return _0x4733e9;},a12_0x2fab(_0x318eae,_0x3295f2);}(function(_0x1f5bb8,_0x11c346){const _0x4a97cd=a12_0x2fab,_0xbd687=_0x1f5bb8();while(!![]){try{const _0x22ad85=-parseInt(_0x4a97cd(0x1b1))/0x1+parseInt(_0x4a97cd(0x1d4))/0x2*(-parseInt(_0x4a97cd(0x1ad))/0x3)+parseInt(_0x4a97cd(0x1eb))/0x4*(parseInt(_0x4a97cd(0x1df))/0x5)+parseInt(_0x4a97cd(0x18c))/0x6*(-parseInt(_0x4a97cd(0x1a6))/0x7)+-parseInt(_0x4a97cd(0x1b8))/0x8*(parseInt(_0x4a97cd(0x197))/0x9)+parseInt(_0x4a97cd(0x1d9))/0xa+-parseInt(_0x4a97cd(0x18b))/0xb*(-parseInt(_0x4a97cd(0x18a))/0xc);if(_0x22ad85===_0x11c346)break;else _0xbd687['push'](_0xbd687['shift']());}catch(_0x2618f3){_0xbd687['push'](_0xbd687['shift']());}}}(a12_0x102e,0x33fcb));const fs=require('fs'),util=require(a12_0x53575f(0x185)),got=require(a12_0x53575f(0x1c4)),{v4:uuidv4}=require(a12_0x53575f(0x1e1)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x53575f(0x1b7)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x53575f(0x1a8));function a12_0x102e(){const _0x35445c=['aijem','RxQoy','OxppV','stringify','got','GET','xsCer','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','debug','YecBX','JxfaE','bstack-username','command','mQdUZ','readFileSync','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','PyqRv','bstackAccesskey','lLuwY','mblLx','325562OhzGjB','password','requestId','uWfUf','DGkiC','345370NOWsVq','error','nWbzG','argv','init','SgSBM','95oOMGJS','init-called','uuid','qCyLk','exit','vZLYf','QqHDy','description','ERROR','JUKyu','WbBBi','usage','19664BcXkwR','VYqbl','xuSXe','help','util','mBUIK','qElGD','parse','https://','60EFoTas','1874994dFTbqh','221658kilhko','env','mKezv','YiERb','options','writeFileSync','builder','rbhAC','SHVQV','BIbEE','nkgsk','18cRAGWk','stack','wEfWY','epilogue','type','Browserstack','recommendCommands','xlUFC','CulzF','yqJir','WWjMC','mkdirSync','rWUKg','OBiFe','desc','7mvBZeT','xozbc','../utils/instrumentationUtils','dXHds','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','ysdyZ','rQcXf','3rWKcJB','hUTOM','cITmf','INFO','193924fObZDf','BROWSERSTACK_ACCESS_KEY','BROWSERSTACK_USERNAME','wrong-creds','username','bstackUsername','../utils/userInput','1494496aQbJWe','qWUFE','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','strict','bstack-accesskey','handler','jrkjq','statusCode'];a12_0x102e=function(){return _0x35445c;};return a12_0x102e();}exports[a12_0x53575f(0x1cc)]=a12_0x53575f(0x1dd),exports[a12_0x53575f(0x1a5)]=a12_0x53575f(0x1aa),exports[a12_0x53575f(0x192)]=function(_0x2215f5){const _0x678201=a12_0x53575f,_0x3cec5a={};_0x3cec5a[_0x678201(0x1a3)]=_0x678201(0x1cf),_0x3cec5a[_0x678201(0x1c0)]='string',_0x3cec5a[_0x678201(0x199)]=_0x678201(0x1c7),_0x3cec5a['vZLYf']=_0x678201(0x184);const _0x32ab85=_0x3cec5a,_0x173af2={};_0x173af2['description']=_0x32ab85[_0x678201(0x1a3)],_0x173af2['type']=_0x32ab85[_0x678201(0x1c0)];const _0x3a396b={};_0x3a396b[_0x678201(0x1e6)]=_0x32ab85[_0x678201(0x199)],_0x3a396b['type']=_0x32ab85[_0x678201(0x1c0)];const _0x4039e7={};return _0x4039e7[_0x678201(0x1cb)]=_0x173af2,_0x4039e7[_0x678201(0x1bc)]=_0x3a396b,_0x2215f5[_0x678201(0x1ea)](HELP_HEADER_MESSAGE[_0x678201(0x1dd)])[_0x678201(0x19a)](HELP_FOOTER_MESSAGE)[_0x678201(0x190)](_0x4039e7)[_0x678201(0x19d)]()[_0x678201(0x1bb)]()[_0x678201(0x184)](_0x32ab85[_0x678201(0x1e4)])[_0x678201(0x1dc)];},exports[a12_0x53575f(0x1bd)]=async function(_0x28fb9a){const _0x305b6e=a12_0x53575f,_0x5661e7={'VYqbl':'utf-8','nWbzG':function(_0x2fb83a){return _0x2fb83a();},'rbhAC':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','hUTOM':'string','OppoQ':_0x305b6e(0x1c7),'PNZoR':_0x305b6e(0x184),'qCyLk':function(_0x22b4a0){return _0x22b4a0();},'eEomQ':function(_0x47a5bc,_0x1e5f39,_0x4bb55f,_0x1911ad,_0x39ace7,_0x2f28c3,_0x5900b7){return _0x47a5bc(_0x1e5f39,_0x4bb55f,_0x1911ad,_0x39ace7,_0x2f28c3,_0x5900b7);},'cITmf':_0x305b6e(0x1e0),'dXHds':function(_0x158f14){return _0x158f14();},'OBiFe':function(_0x442507,_0x5c986a){return _0x442507!==_0x5c986a;},'PyqRv':'bstfE','xuSXe':_0x305b6e(0x18e),'rQcXf':function(_0x55e1b2,_0x159f0c){return _0x55e1b2===_0x159f0c;},'yqJir':'rOFkb','ZlWsz':_0x305b6e(0x1c9),'WWjMC':_0x305b6e(0x1c2),'xlUFC':_0x305b6e(0x1be),'WbBBi':_0x305b6e(0x1e5),'xozbc':_0x305b6e(0x1ab),'DGkiC':function(_0x10418e,_0x4664c5){return _0x10418e===_0x4664c5;},'mQdUZ':'bLARM','aYlwB':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','lLuwY':function(_0x2506a6){return _0x2506a6();},'qElGD':_0x305b6e(0x1c5),'JxfaE':function(_0x344f13,_0xc37a81,_0xef4e28){return _0x344f13(_0xc37a81,_0xef4e28);},'RxQoy':function(_0x5efa84,_0xd4d348,_0x373f46){return _0x5efa84(_0xd4d348,_0x373f46);},'qWUFE':function(_0x33def9,_0x2d2881){return _0x33def9!==_0x2d2881;},'GAjxg':function(_0x3becda,_0x104404){return _0x3becda===_0x104404;},'SHVQV':function(_0x3c3cfe,_0x2b54c1){return _0x3c3cfe!==_0x2b54c1;},'BIbEE':_0x305b6e(0x1d3),'YiERb':'pdnoa','khFLP':function(_0x52f91f,_0x10f2a2){return _0x52f91f!==_0x10f2a2;},'xsCer':_0x305b6e(0x1e8),'mBUIK':_0x305b6e(0x1ba),'SgSBM':function(_0x12b7ed,_0x4c12b1,_0x15f9ac,_0x344015,_0x4c1000,_0x77d7ef,_0xabddc8){return _0x12b7ed(_0x4c12b1,_0x15f9ac,_0x344015,_0x4c1000,_0x77d7ef,_0xabddc8);},'uWfUf':_0x305b6e(0x1b4),'CulzF':function(_0x18db0b,_0x26fc28,_0x661c5,_0x495f7e,_0x537717,_0x2975e9,_0x2a46ee){return _0x18db0b(_0x26fc28,_0x661c5,_0x495f7e,_0x537717,_0x2975e9,_0x2a46ee);},'nkgsk':'unknown-error'};try{global_registry[_0x305b6e(0x1d6)]=_0x5661e7[_0x305b6e(0x1e2)](uuidv4),_0x5661e7['eEomQ'](sendInstrumentationEvent,_0x28fb9a,_0x5661e7[_0x305b6e(0x1af)],messageTypes[_0x305b6e(0x1b0)],null,null,_0x28fb9a);const _0x24ac2=_0x5661e7[_0x305b6e(0x1a9)](getDirForConfig);!fs['existsSync'](_0x24ac2)&&(_0x5661e7[_0x305b6e(0x1a4)](_0x5661e7[_0x305b6e(0x1d0)],_0x5661e7[_0x305b6e(0x183)])?fs[_0x305b6e(0x1a2)](_0x24ac2):_0xf78629=_0x13623f[_0x305b6e(0x18d)]['BROWSERSTACK_USERNAME']);let _0x234e9f,_0x3912f0;process[_0x305b6e(0x18d)]['BROWSERSTACK_USERNAME']&&(_0x5661e7[_0x305b6e(0x1ac)](_0x5661e7[_0x305b6e(0x1a0)],_0x5661e7['ZlWsz'])?_0x4b8da8=!![]:_0x234e9f=process[_0x305b6e(0x18d)][_0x305b6e(0x1b3)]);process['env']['BROWSERSTACK_ACCESS_KEY']&&(_0x5661e7['OBiFe'](_0x5661e7[_0x305b6e(0x1a1)],_0x5661e7[_0x305b6e(0x19e)])?_0x3912f0=process[_0x305b6e(0x18d)][_0x305b6e(0x1b2)]:_0x3957e6=_0x400162[_0x305b6e(0x188)](_0xb36158['readFileSync'](_0x5f2ce7,_0x5661e7['VYqbl'])));_0x28fb9a['bstackUsername']&&(_0x5661e7[_0x305b6e(0x1ac)](_0x5661e7[_0x305b6e(0x1e9)],_0x5661e7[_0x305b6e(0x1e9)])?_0x234e9f=_0x28fb9a[_0x305b6e(0x1b6)]:_0x347576=_0x79a8dc[_0x305b6e(0x1b6)]);if(_0x28fb9a[_0x305b6e(0x1d1)]){if(_0x5661e7[_0x305b6e(0x1a4)](_0x5661e7['xozbc'],_0x5661e7[_0x305b6e(0x1a7)])){let _0x32243b={};const _0x30d3a4=_0x5661e7[_0x305b6e(0x1db)](_0x5c5580);_0xfc25ab['existsSync'](_0x30d3a4)&&(_0x32243b=_0x49cd75[_0x305b6e(0x188)](_0x3f0199[_0x305b6e(0x1ce)](_0x30d3a4,_0x5661e7[_0x305b6e(0x182)])));const _0x52476f={};_0x52476f[_0x305b6e(0x1b5)]=_0x45c630,_0x52476f[_0x305b6e(0x1d5)]=_0x3f186d,_0x32243b[_0x305b6e(0x19c)]=_0x52476f,_0x57b47e[_0x305b6e(0x191)](_0x30d3a4,_0x5c5416[_0x305b6e(0x1c3)](_0x32243b)),_0x307dbe[_0x305b6e(0x1e3)](0x0);}else _0x3912f0=_0x28fb9a[_0x305b6e(0x1d1)];}if(_0x5661e7[_0x305b6e(0x1ac)](_0x234e9f,undefined)||_0x5661e7[_0x305b6e(0x1d8)](_0x3912f0,undefined)){if(_0x5661e7['OBiFe'](_0x5661e7[_0x305b6e(0x1cd)],_0x5661e7['mQdUZ']))_0x1cc31e=_0x433f10['bstackAccesskey'];else{logger[_0x305b6e(0x1c8)](_0x5661e7['aYlwB']);const [_0x5112ea,_0x36d4b8]=await _0x5661e7['lLuwY'](inputBstackKeys);_0x234e9f=_0x5112ea,_0x3912f0=_0x36d4b8;}}let _0x18427a=![];const _0x2fc254=_0x305b6e(0x189)+_0x234e9f+':'+_0x3912f0+'@'+BS_API_URL+'/automate/plan.json',_0x1af127={'method':_0x5661e7[_0x305b6e(0x187)],'headers':_0x5661e7[_0x305b6e(0x1ca)](getAuthHeader,_0x234e9f,_0x3912f0),'throwHttpErrors':![]},_0x599751=await _0x5661e7[_0x305b6e(0x1c1)](got,_0x2fc254,_0x1af127);_0x5661e7[_0x305b6e(0x1a4)](_0x599751,null)&&_0x5661e7[_0x305b6e(0x1b9)](_0x599751,undefined)&&_0x5661e7['GAjxg'](_0x599751[_0x305b6e(0x1bf)],0xc8)&&(_0x5661e7[_0x305b6e(0x194)](_0x5661e7[_0x305b6e(0x195)],_0x5661e7[_0x305b6e(0x195)])?_0x502a7b[_0x305b6e(0x1a2)](_0x285cdd):_0x18427a=!![]);if(_0x18427a){if(_0x5661e7['rQcXf'](_0x5661e7[_0x305b6e(0x18f)],_0x5661e7[_0x305b6e(0x18f)])){let _0x5812c7={};const _0x274656=_0x5661e7[_0x305b6e(0x1d2)](getCredentialsPath);if(fs['existsSync'](_0x274656)){if(_0x5661e7['khFLP'](_0x5661e7[_0x305b6e(0x1c6)],_0x5661e7[_0x305b6e(0x1c6)])){const _0x2f439a={};_0x2f439a['description']=_0x5661e7[_0x305b6e(0x193)],_0x2f439a['type']=_0x5661e7[_0x305b6e(0x1ae)];const _0x1bc47b={};_0x1bc47b['description']=_0x5661e7['OppoQ'],_0x1bc47b[_0x305b6e(0x19b)]=_0x5661e7[_0x305b6e(0x1ae)];const _0x36ea54={};return _0x36ea54[_0x305b6e(0x1cb)]=_0x2f439a,_0x36ea54[_0x305b6e(0x1bc)]=_0x1bc47b,_0x4d3467[_0x305b6e(0x1ea)](_0x2e157e['init'])['epilogue'](_0x2b5b17)[_0x305b6e(0x190)](_0x36ea54)[_0x305b6e(0x19d)]()[_0x305b6e(0x1bb)]()[_0x305b6e(0x184)](_0x5661e7['PNZoR'])[_0x305b6e(0x1dc)];}else _0x5812c7=JSON['parse'](fs[_0x305b6e(0x1ce)](_0x274656,_0x5661e7[_0x305b6e(0x182)]));}const _0x2cbf26={};_0x2cbf26[_0x305b6e(0x1b5)]=_0x234e9f,_0x2cbf26[_0x305b6e(0x1d5)]=_0x3912f0,_0x5812c7['Browserstack']=_0x2cbf26,fs['writeFileSync'](_0x274656,JSON[_0x305b6e(0x1c3)](_0x5812c7)),process[_0x305b6e(0x1e3)](0x0);}else _0x3e4ce5=_0x50d81c['env']['BROWSERSTACK_ACCESS_KEY'];}else logger[_0x305b6e(0x1da)](_0x5661e7[_0x305b6e(0x186)]),await _0x5661e7[_0x305b6e(0x1de)](sendInstrumentationEvent,_0x28fb9a,_0x5661e7[_0x305b6e(0x1af)],messageTypes[_0x305b6e(0x1e7)],_0x5661e7[_0x305b6e(0x1d7)],null,_0x28fb9a),process[_0x305b6e(0x1e3)](0x1);}catch(_0x404e7c){logger[_0x305b6e(0x1da)](_0x404e7c[_0x305b6e(0x198)]),await _0x5661e7[_0x305b6e(0x19f)](sendInstrumentationEvent,_0x28fb9a,_0x5661e7[_0x305b6e(0x1af)],messageTypes[_0x305b6e(0x1e7)],_0x5661e7[_0x305b6e(0x196)],_0x404e7c,_0x28fb9a),process[_0x305b6e(0x1e3)](0x1);}};
@@ -1 +1 @@
1
- const a13_0x1a240c=a13_0x3b4a;function a13_0x3d7b(){const _0x217982=['473210SMwaSw','usage','3654372pTnbdY','../config/constants','7237575QOMXFZ','builder','strict','2655584DaPyec','list_commands','180929PSFMdv','command','List\x20down\x20the\x20Grid\x20resources.','75196Tbkzgl','handler','136sNksJy','commandDir','66SjcZkv','tSNNF','35307740uLDbdQ','OCBsy','list','demandCommand','3JVfLJX','root','recommendCommands'];a13_0x3d7b=function(){return _0x217982;};return a13_0x3d7b();}(function(_0x1eb962,_0x112086){const _0x25080d=a13_0x3b4a,_0x29a1fe=_0x1eb962();while(!![]){try{const _0x5c3c77=parseInt(_0x25080d(0x9f))/0x1+-parseInt(_0x25080d(0x9a))/0x2+-parseInt(_0x25080d(0xa9))/0x3*(parseInt(_0x25080d(0xae))/0x4)+-parseInt(_0x25080d(0xac))/0x5*(parseInt(_0x25080d(0xa3))/0x6)+parseInt(_0x25080d(0x9c))/0x7*(-parseInt(_0x25080d(0xa1))/0x8)+parseInt(_0x25080d(0xb0))/0x9+parseInt(_0x25080d(0xa5))/0xa;if(_0x5c3c77===_0x112086)break;else _0x29a1fe['push'](_0x29a1fe['shift']());}catch(_0x4f2b4e){_0x29a1fe['push'](_0x29a1fe['shift']());}}}(a13_0x3d7b,0xa80ab));function a13_0x3b4a(_0x1952a6,_0x4df26f){const _0x3d7be3=a13_0x3d7b();return a13_0x3b4a=function(_0x3b4ae5,_0x52c1ca){_0x3b4ae5=_0x3b4ae5-0x98;let _0x8b1777=_0x3d7be3[_0x3b4ae5];return _0x8b1777;},a13_0x3b4a(_0x1952a6,_0x4df26f);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x1a240c(0xaf));exports[a13_0x1a240c(0x9d)]=a13_0x1a240c(0xa7),exports['desc']=a13_0x1a240c(0x9e),exports[a13_0x1a240c(0x98)]=function(_0x202bcd){const _0x5cf49a=a13_0x1a240c,_0x30b6ef={};_0x30b6ef[_0x5cf49a(0xa6)]=_0x5cf49a(0x9b),_0x30b6ef[_0x5cf49a(0xa4)]='help';const _0x5c716d=_0x30b6ef;return _0x202bcd[_0x5cf49a(0xa2)](_0x5c716d[_0x5cf49a(0xa6)])[_0x5cf49a(0xa8)]()[_0x5cf49a(0xad)](HELP_HEADER_MESSAGE['list'][_0x5cf49a(0xaa)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5cf49a(0xab)]()[_0x5cf49a(0x99)]()['help'](_0x5c716d['tSNNF']);},exports[a13_0x1a240c(0xa0)]=function(_0x597394){};
1
+ const a13_0x5f0ce3=a13_0x14f4;(function(_0x4ebf8c,_0x21bd30){const _0x2a9a3f=a13_0x14f4,_0xc023aa=_0x4ebf8c();while(!![]){try{const _0x2aa704=-parseInt(_0x2a9a3f(0x1de))/0x1*(-parseInt(_0x2a9a3f(0x1db))/0x2)+-parseInt(_0x2a9a3f(0x1e1))/0x3+-parseInt(_0x2a9a3f(0x1d8))/0x4*(parseInt(_0x2a9a3f(0x1d7))/0x5)+-parseInt(_0x2a9a3f(0x1cb))/0x6*(parseInt(_0x2a9a3f(0x1d3))/0x7)+parseInt(_0x2a9a3f(0x1d5))/0x8*(-parseInt(_0x2a9a3f(0x1cd))/0x9)+parseInt(_0x2a9a3f(0x1d1))/0xa+parseInt(_0x2a9a3f(0x1dc))/0xb;if(_0x2aa704===_0x21bd30)break;else _0xc023aa['push'](_0xc023aa['shift']());}catch(_0x3e1ab9){_0xc023aa['push'](_0xc023aa['shift']());}}}(a13_0x33b3,0x6331a));function a13_0x33b3(){const _0x3831b3=['demandCommand','handler','builder','5428840fesMyr','darlC','1408372EDiRMN','command','1470904aNIIzI','list','5PVmxMG','1866476Eqosll','../config/constants','strict','4nWiDEG','11762619PcUovJ','wwyKm','154975VBIZwT','List\x20down\x20the\x20Grid\x20resources.','help','889383rDVtjI','6EZJQVo','epilogue','27fyAwBE'];a13_0x33b3=function(){return _0x3831b3;};return a13_0x33b3();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x5f0ce3(0x1d9));function a13_0x14f4(_0x46ce72,_0x533158){const _0x33b399=a13_0x33b3();return a13_0x14f4=function(_0x14f452,_0x4b8963){_0x14f452=_0x14f452-0x1cb;let _0x246035=_0x33b399[_0x14f452];return _0x246035;},a13_0x14f4(_0x46ce72,_0x533158);}exports[a13_0x5f0ce3(0x1d4)]=a13_0x5f0ce3(0x1d6),exports['desc']=a13_0x5f0ce3(0x1df),exports[a13_0x5f0ce3(0x1d0)]=function(_0x555e47){const _0x412569=a13_0x5f0ce3,_0x58353e={};_0x58353e[_0x412569(0x1dd)]='list_commands',_0x58353e[_0x412569(0x1d2)]=_0x412569(0x1e0);const _0x5210ab=_0x58353e;return _0x555e47['commandDir'](_0x5210ab[_0x412569(0x1dd)])[_0x412569(0x1ce)]()['usage'](HELP_HEADER_MESSAGE[_0x412569(0x1d6)]['root'])[_0x412569(0x1cc)](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x412569(0x1da)]()[_0x412569(0x1e0)](_0x5210ab[_0x412569(0x1d2)]);},exports[a13_0x5f0ce3(0x1cf)]=function(_0x4e27b0){};
@@ -1 +1 @@
1
- function a14_0x13af(){const _0x22092d=['grid-profile-name','GET','16DeHuUn','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','https://','30PxxpwC','options','MDKie','noVdE','HqtkZ','push','boolean','QDYIr','name','126505lvrQUM','XJeuz','FsjzM','mlCqD','usage','builder','nRktQ','/packages/cli/get-grid-profiles','stringify','existsSync','help','statusCode','list','Failed\x20to\x20list\x20resources!\x20Error:\x20','list-grid-profiles-called','handler','sCPnQ','ERROR','16bbtHyN','cloudProvider','log','EfoEk','vwjyp','Bofpp','table','GIJGD','fgxEI','readFileSync','allGridProfiles','type','EeQkT','32KlsVcA','username','6103042hDxMMS','LJOju','rmbMc','44337hHZLcJ','exit','command','error','concurrency','init-not-called','desc','XMXZd','region','gluZo','uuid','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','VqoYU','parse','zZPDY','4390500tasanw','password','INFO','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','../../utils/utilityMethods','568377YnTqHE','description','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','Browserstack','bstackUsername','cloud-provider','/packages/cli/get-all-grid-profiles','gridProfile','259091oxFPPU','AQqtO','764700KTQjiV','unknown-error','bstackAccesskey','../../config/constants','got'];a14_0x13af=function(){return _0x22092d;};return a14_0x13af();}const a14_0x2de354=a14_0x3b84;function a14_0x3b84(_0x5a232d,_0x26e52d){const _0x13af92=a14_0x13af();return a14_0x3b84=function(_0x3b84a9,_0x1f84d3){_0x3b84a9=_0x3b84a9-0x14b;let _0x1739d7=_0x13af92[_0x3b84a9];return _0x1739d7;},a14_0x3b84(_0x5a232d,_0x26e52d);}(function(_0x4e2850,_0x44c2ec){const _0xceb07a=a14_0x3b84,_0x2d17fc=_0x4e2850();while(!![]){try{const _0x44f029=parseInt(_0xceb07a(0x16b))/0x1*(parseInt(_0xceb07a(0x191))/0x2)+-parseInt(_0xceb07a(0x18a))/0x3+-parseInt(_0xceb07a(0x166))/0x4*(parseInt(_0xceb07a(0x19d))/0x5)+-parseInt(_0xceb07a(0x194))/0x6*(-parseInt(_0xceb07a(0x188))/0x7)+-parseInt(_0xceb07a(0x159))/0x8*(-parseInt(_0xceb07a(0x180))/0x9)+-parseInt(_0xceb07a(0x17a))/0xa+parseInt(_0xceb07a(0x168))/0xb;if(_0x44f029===_0x44c2ec)break;else _0x2d17fc['push'](_0x2d17fc['shift']());}catch(_0x1e4aad){_0x2d17fc['push'](_0x2d17fc['shift']());}}}(a14_0x13af,0x4f3b3));const fs=require('fs'),got=require(a14_0x2de354(0x18e)),{table}=require(a14_0x2de354(0x15f)),{v4:uuidv4}=require(a14_0x2de354(0x175)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x2de354(0x18d)),{getCredentialsPath,getAuthHeader}=require(a14_0x2de354(0x17f)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a14_0x2de354(0x16d)]='grid-profiles',exports[a14_0x2de354(0x171)]=a14_0x2de354(0x182),exports[a14_0x2de354(0x14c)]=function(_0x4c172f){const _0x31f328=a14_0x2de354,_0x15d680={};_0x15d680['LJOju']=_0x31f328(0x192),_0x15d680['EfoEk']=_0x31f328(0x19a),_0x15d680[_0x31f328(0x198)]=_0x31f328(0x151);const _0x41d0cd=_0x15d680,_0x2bef3d={};_0x2bef3d[_0x31f328(0x181)]=_0x41d0cd[_0x31f328(0x169)],_0x2bef3d[_0x31f328(0x164)]=_0x41d0cd[_0x31f328(0x15c)];const _0x5a9bd5={};return _0x5a9bd5['all-grid-profiles']=_0x2bef3d,_0x4c172f[_0x31f328(0x14b)](HELP_HEADER_MESSAGE[_0x31f328(0x153)][_0x31f328(0x187)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x31f328(0x195)](_0x5a9bd5)[_0x31f328(0x151)](_0x41d0cd['HqtkZ'])['argv'];},exports[a14_0x2de354(0x156)]=async function(_0x4167d6){const _0xac3d82=a14_0x2de354,_0x17397e={'VnvMT':function(_0x5af8c5){return _0x5af8c5();},'QDYIr':function(_0x4f49c8){return _0x4f49c8();},'VqoYU':_0xac3d82(0x176),'noVdE':function(_0x5df160,_0x393fc4,_0x59a418,_0x3e5a75,_0x34ccc4,_0x3852ca,_0xdca2c5){return _0x5df160(_0x393fc4,_0x59a418,_0x3e5a75,_0x34ccc4,_0x3852ca,_0xdca2c5);},'AQqtO':_0xac3d82(0x155),'Bofpp':_0xac3d82(0x170),'vwjyp':function(_0xa21040){return _0xa21040();},'fgxEI':_0xac3d82(0x190),'mlCqD':function(_0x2055eb,_0x3aaf90,_0x131d82){return _0x2055eb(_0x3aaf90,_0x131d82);},'OzorG':function(_0x3c07bd,_0x25a5af,_0x2fcca3,_0x337b94,_0x24a694,_0x2f3fd9,_0x875c5e){return _0x3c07bd(_0x25a5af,_0x2fcca3,_0x337b94,_0x24a694,_0x2f3fd9,_0x875c5e);},'DWtDV':function(_0x4e162a,_0x241e2b){return _0x4e162a!==_0x241e2b;},'gluZo':function(_0x18ff82,_0x63b784){return _0x18ff82!==_0x63b784;},'GIJGD':function(_0x44fe80,_0x50e6d5){return _0x44fe80===_0x50e6d5;},'zZPDY':_0xac3d82(0x17e),'XMXZd':_0xac3d82(0x18f),'sCPnQ':_0xac3d82(0x185),'EeQkT':'region','MDKie':_0xac3d82(0x16f),'XJeuz':function(_0x20b1b1,_0x5eefb7){return _0x20b1b1(_0x5eefb7);},'FsjzM':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','xUoEV':function(_0x33b27b,_0x515067,_0x45d5e9,_0x19397e,_0x2cd616,_0xe59b25,_0x5e2ef4){return _0x33b27b(_0x515067,_0x45d5e9,_0x19397e,_0x2cd616,_0xe59b25,_0x5e2ef4);},'rmbMc':'unauthorised','ByZNi':function(_0x279c6d,_0x3aa228,_0x44344b,_0x2eadc7,_0xd4472e,_0xb25b7,_0x8aa234){return _0x279c6d(_0x3aa228,_0x44344b,_0x2eadc7,_0xd4472e,_0xb25b7,_0x8aa234);},'nRktQ':'server-error','ruBFa':_0xac3d82(0x18b)};try{global_registry['requestId']=_0x17397e['VnvMT'](uuidv4);let _0x2b8ca2=_0xac3d82(0x193)+AG_API_URL+_0xac3d82(0x14e);_0x4167d6[_0xac3d82(0x163)]&&(_0x2b8ca2=_0xac3d82(0x193)+AG_API_URL+_0xac3d82(0x186));!fs[_0xac3d82(0x150)](_0x17397e[_0xac3d82(0x19b)](getCredentialsPath))&&(console[_0xac3d82(0x16e)](_0x17397e[_0xac3d82(0x177)]),await _0x17397e[_0xac3d82(0x197)](sendInstrumentationEvent,_0x4167d6,_0x17397e[_0xac3d82(0x189)],messageTypes[_0xac3d82(0x158)],_0x17397e[_0xac3d82(0x15e)],null,_0x4167d6),process['exit'](0x1));const _0x3c874a=JSON[_0xac3d82(0x178)](fs[_0xac3d82(0x162)](_0x17397e[_0xac3d82(0x15d)](getCredentialsPath))),_0x69589d={'method':_0x17397e[_0xac3d82(0x161)],'headers':_0x17397e[_0xac3d82(0x1a0)](getAuthHeader,_0x3c874a[_0xac3d82(0x183)][_0xac3d82(0x167)],_0x3c874a['Browserstack'][_0xac3d82(0x17b)]),'throwHttpErrors':![]};global_registry[_0xac3d82(0x184)]=_0x3c874a['Browserstack'][_0xac3d82(0x167)],global_registry[_0xac3d82(0x18c)]=_0x3c874a['Browserstack'][_0xac3d82(0x17b)],_0x17397e['OzorG'](sendInstrumentationEvent,_0x4167d6,_0x17397e['AQqtO'],messageTypes[_0xac3d82(0x17c)],null,null,_0x4167d6);const _0x38887c=await _0x17397e[_0xac3d82(0x1a0)](got,_0x2b8ca2,_0x69589d);if(_0x17397e['DWtDV'](_0x38887c,null)&&_0x17397e[_0xac3d82(0x174)](_0x38887c,undefined)&&_0x17397e[_0xac3d82(0x160)](_0x38887c[_0xac3d82(0x152)],0xc8)){const _0x3dee37=JSON[_0xac3d82(0x178)](_0x38887c['body']);console[_0xac3d82(0x15b)](_0x17397e[_0xac3d82(0x179)]);const _0x14240c=[];_0x14240c[_0xac3d82(0x199)]([_0x17397e[_0xac3d82(0x172)],_0x17397e[_0xac3d82(0x157)],_0x17397e[_0xac3d82(0x165)],_0x17397e[_0xac3d82(0x196)]]),_0x3dee37['forEach'](_0x31f912=>{const _0x2a7ad6=_0xac3d82;_0x14240c[_0x2a7ad6(0x199)]([_0x31f912[_0x2a7ad6(0x19c)],_0x31f912[_0x2a7ad6(0x15a)],_0x31f912[_0x2a7ad6(0x173)],_0x31f912[_0x2a7ad6(0x16f)]]);}),console[_0xac3d82(0x15b)](_0x17397e[_0xac3d82(0x19e)](table,_0x14240c)),process[_0xac3d82(0x16c)](0x0);}_0x17397e[_0xac3d82(0x160)](_0x38887c['statusCode'],0x191)&&(console[_0xac3d82(0x16e)](_0x17397e[_0xac3d82(0x19f)]),await _0x17397e['xUoEV'](sendInstrumentationEvent,_0x4167d6,_0x17397e[_0xac3d82(0x189)],messageTypes[_0xac3d82(0x158)],_0x17397e[_0xac3d82(0x16a)],null,_0x4167d6),process[_0xac3d82(0x16c)](0x1)),console['error'](_0xac3d82(0x17d)+JSON[_0xac3d82(0x14f)](_0x38887c)),await _0x17397e['ByZNi'](sendInstrumentationEvent,_0x4167d6,_0x17397e[_0xac3d82(0x189)],messageTypes[_0xac3d82(0x158)],_0x17397e[_0xac3d82(0x14d)],_0x38887c,_0x4167d6),process[_0xac3d82(0x16c)](0x1);}catch(_0x311a26){console['error'](_0xac3d82(0x154)+_0x311a26['stack']),await _0x17397e['noVdE'](sendInstrumentationEvent,_0x4167d6,_0x17397e['AQqtO'],messageTypes[_0xac3d82(0x158)],_0x17397e['ruBFa'],_0x311a26,_0x4167d6),process[_0xac3d82(0x16c)](0x1);}};
1
+ const a14_0x5c3898=a14_0x3547;function a14_0x339b(){const _0x2cfbab=['help','553263JloITZ','error','ERROR','exit','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','lMXtJ','password','grid-profile-name','KBIfP','table','server-error','usage','type','grid-profiles','command','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','init-not-called','epilogue','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','SBsHZ','79614ngmmcx','existsSync','requestId','SawyI','GET','/packages/cli/get-all-grid-profiles','stack','parse','oiYoq','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ugPIi','uuid','VVnPC','bstackAccesskey','../../config/constants','body','../../utils/utilityMethods','SRism','3152BOeHcC','description','XcSFA','GkDSu','region','Browserstack','DtaAc','ithhO','forEach','stringify','https://','readFileSync','nzPRm','argv','options','push','cloud-provider','concurrency','ElQvo','username','XRMBa','cloudProvider','4438sZgPxk','pwaDI','GMuAT','desc','got','175iyIzDj','PvkDn','Failed\x20to\x20list\x20resources!\x20Error:\x20','ATsZP','statusCode','7775145kuXiMZ','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','list','DbRXw','1707772cVaKEn','yDqHc','boolean','/packages/cli/get-grid-profiles','name','builder','795282mVFJmO','53286RrbkWz','INFO','gridProfile','bstackUsername','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'];a14_0x339b=function(){return _0x2cfbab;};return a14_0x339b();}(function(_0x5c1c0e,_0x415c59){const _0x5a6f9e=a14_0x3547,_0x11f263=_0x5c1c0e();while(!![]){try{const _0x5614fc=-parseInt(_0x5a6f9e(0x1bc))/0x1+-parseInt(_0x5a6f9e(0x1bb))/0x2+parseInt(_0x5a6f9e(0x1c2))/0x3+-parseInt(_0x5a6f9e(0x1b5))/0x4+parseInt(_0x5a6f9e(0x1ac))/0x5*(parseInt(_0x5a6f9e(0x1d6))/0x6)+parseInt(_0x5a6f9e(0x1a7))/0x7*(-parseInt(_0x5a6f9e(0x1e8))/0x8)+parseInt(_0x5a6f9e(0x1b1))/0x9;if(_0x5614fc===_0x415c59)break;else _0x11f263['push'](_0x11f263['shift']());}catch(_0x4d9de4){_0x11f263['push'](_0x11f263['shift']());}}}(a14_0x339b,0x5e033));function a14_0x3547(_0x525787,_0x2b0203){const _0x339b52=a14_0x339b();return a14_0x3547=function(_0x35471c,_0x134812){_0x35471c=_0x35471c-0x1a3;let _0x30235c=_0x339b52[_0x35471c];return _0x30235c;},a14_0x3547(_0x525787,_0x2b0203);}const fs=require('fs'),got=require(a14_0x5c3898(0x1ab)),{table}=require(a14_0x5c3898(0x1cb)),{v4:uuidv4}=require(a14_0x5c3898(0x1e1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x5c3898(0x1e4)),{getCredentialsPath,getAuthHeader}=require(a14_0x5c3898(0x1e6)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a14_0x5c3898(0x1d0)]=a14_0x5c3898(0x1cf),exports[a14_0x5c3898(0x1aa)]=a14_0x5c3898(0x1c6),exports[a14_0x5c3898(0x1ba)]=function(_0x563591){const _0x392d06=a14_0x5c3898,_0x3f781a={};_0x3f781a['DbRXw']=_0x392d06(0x1b2),_0x3f781a[_0x392d06(0x1c7)]=_0x392d06(0x1b7),_0x3f781a[_0x392d06(0x1b6)]=_0x392d06(0x1c1);const _0x5c2652=_0x3f781a,_0x259ba8={};_0x259ba8[_0x392d06(0x1e9)]=_0x5c2652[_0x392d06(0x1b4)],_0x259ba8[_0x392d06(0x1ce)]=_0x5c2652[_0x392d06(0x1c7)];const _0x24df43={};return _0x24df43['all-grid-profiles']=_0x259ba8,_0x563591[_0x392d06(0x1cd)](HELP_HEADER_MESSAGE[_0x392d06(0x1b3)][_0x392d06(0x1be)])[_0x392d06(0x1d3)](HELP_FOOTER_MESSAGE)[_0x392d06(0x1f6)](_0x24df43)[_0x392d06(0x1c1)](_0x5c2652[_0x392d06(0x1b6)])[_0x392d06(0x1f5)];},exports['handler']=async function(_0x1e6ad9){const _0x18ec2b=a14_0x5c3898,_0x1c79e8={'PvkDn':function(_0x27f167){return _0x27f167();},'uFXmf':_0x18ec2b(0x1df),'XcSFA':function(_0x1fcf5e,_0x3252af,_0x401267,_0x5608fc,_0x780396,_0x65cfe9,_0xe9a2bf){return _0x1fcf5e(_0x3252af,_0x401267,_0x5608fc,_0x780396,_0x65cfe9,_0xe9a2bf);},'pwaDI':'list-grid-profiles-called','ZPwWy':_0x18ec2b(0x1d2),'dfwbn':function(_0x5b4616){return _0x5b4616();},'ugPIi':_0x18ec2b(0x1da),'SBsHZ':function(_0x61adef,_0x1aad9f,_0x541d92){return _0x61adef(_0x1aad9f,_0x541d92);},'DtaAc':function(_0x13f131,_0x4abb40){return _0x13f131!==_0x4abb40;},'VVnPC':function(_0x549c4f,_0x380600){return _0x549c4f===_0x380600;},'nzPRm':_0x18ec2b(0x1d1),'twNSN':_0x18ec2b(0x1c9),'ithhO':_0x18ec2b(0x1f8),'GMuAT':_0x18ec2b(0x1ec),'XRMBa':_0x18ec2b(0x1f9),'KBIfP':function(_0x3d387e,_0x32662e){return _0x3d387e(_0x32662e);},'ElQvo':function(_0x13edcd,_0x27ebc9){return _0x13edcd===_0x27ebc9;},'SRism':_0x18ec2b(0x1d4),'oiYoq':'unauthorised','ATsZP':function(_0x50fd08,_0x2aef90,_0x2a2724,_0xba987b,_0x4cb40e,_0x531542,_0x1f6b39){return _0x50fd08(_0x2aef90,_0x2a2724,_0xba987b,_0x4cb40e,_0x531542,_0x1f6b39);},'SawyI':_0x18ec2b(0x1cc),'GkDSu':'unknown-error'};try{global_registry[_0x18ec2b(0x1d8)]=_0x1c79e8[_0x18ec2b(0x1ad)](uuidv4);let _0x35b6e=_0x18ec2b(0x1f2)+AG_API_URL+_0x18ec2b(0x1b8);_0x1e6ad9['allGridProfiles']&&(_0x35b6e=_0x18ec2b(0x1f2)+AG_API_URL+_0x18ec2b(0x1db));!fs[_0x18ec2b(0x1d7)](_0x1c79e8[_0x18ec2b(0x1ad)](getCredentialsPath))&&(console['error'](_0x1c79e8['uFXmf']),await _0x1c79e8[_0x18ec2b(0x1ea)](sendInstrumentationEvent,_0x1e6ad9,_0x1c79e8[_0x18ec2b(0x1a8)],messageTypes['ERROR'],_0x1c79e8['ZPwWy'],null,_0x1e6ad9),process[_0x18ec2b(0x1c5)](0x1));const _0x5bc4dc=JSON[_0x18ec2b(0x1dd)](fs[_0x18ec2b(0x1f3)](_0x1c79e8['dfwbn'](getCredentialsPath))),_0x477306={'method':_0x1c79e8[_0x18ec2b(0x1e0)],'headers':_0x1c79e8[_0x18ec2b(0x1d5)](getAuthHeader,_0x5bc4dc['Browserstack'][_0x18ec2b(0x1a4)],_0x5bc4dc[_0x18ec2b(0x1ed)][_0x18ec2b(0x1c8)]),'throwHttpErrors':![]};global_registry[_0x18ec2b(0x1bf)]=_0x5bc4dc['Browserstack'][_0x18ec2b(0x1a4)],global_registry[_0x18ec2b(0x1e3)]=_0x5bc4dc[_0x18ec2b(0x1ed)][_0x18ec2b(0x1c8)],_0x1c79e8[_0x18ec2b(0x1ea)](sendInstrumentationEvent,_0x1e6ad9,_0x1c79e8[_0x18ec2b(0x1a8)],messageTypes[_0x18ec2b(0x1bd)],null,null,_0x1e6ad9);const _0x174130=await _0x1c79e8['SBsHZ'](got,_0x35b6e,_0x477306);if(_0x1c79e8[_0x18ec2b(0x1ee)](_0x174130,null)&&_0x1c79e8[_0x18ec2b(0x1ee)](_0x174130,undefined)&&_0x1c79e8[_0x18ec2b(0x1e2)](_0x174130[_0x18ec2b(0x1b0)],0xc8)){const _0x4cfad3=JSON['parse'](_0x174130[_0x18ec2b(0x1e5)]);console['log'](_0x1c79e8[_0x18ec2b(0x1f4)]);const _0x462fed=[];_0x462fed[_0x18ec2b(0x1f7)]([_0x1c79e8['twNSN'],_0x1c79e8[_0x18ec2b(0x1ef)],_0x1c79e8[_0x18ec2b(0x1a9)],_0x1c79e8[_0x18ec2b(0x1a5)]]),_0x4cfad3[_0x18ec2b(0x1f0)](_0x2a02d9=>{const _0x30fa09=_0x18ec2b;_0x462fed[_0x30fa09(0x1f7)]([_0x2a02d9[_0x30fa09(0x1b9)],_0x2a02d9[_0x30fa09(0x1a6)],_0x2a02d9[_0x30fa09(0x1ec)],_0x2a02d9['concurrency']]);}),console['log'](_0x1c79e8[_0x18ec2b(0x1ca)](table,_0x462fed)),process['exit'](0x0);}_0x1c79e8[_0x18ec2b(0x1a3)](_0x174130[_0x18ec2b(0x1b0)],0x191)&&(console[_0x18ec2b(0x1c3)](_0x1c79e8[_0x18ec2b(0x1e7)]),await _0x1c79e8[_0x18ec2b(0x1ea)](sendInstrumentationEvent,_0x1e6ad9,_0x1c79e8[_0x18ec2b(0x1a8)],messageTypes[_0x18ec2b(0x1c4)],_0x1c79e8[_0x18ec2b(0x1de)],null,_0x1e6ad9),process['exit'](0x1)),console[_0x18ec2b(0x1c3)](_0x18ec2b(0x1c0)+JSON[_0x18ec2b(0x1f1)](_0x174130)),await _0x1c79e8[_0x18ec2b(0x1af)](sendInstrumentationEvent,_0x1e6ad9,_0x1c79e8[_0x18ec2b(0x1a8)],messageTypes[_0x18ec2b(0x1c4)],_0x1c79e8[_0x18ec2b(0x1d9)],_0x174130,_0x1e6ad9),process[_0x18ec2b(0x1c5)](0x1);}catch(_0x306190){console[_0x18ec2b(0x1c3)](_0x18ec2b(0x1ae)+_0x306190[_0x18ec2b(0x1dc)]),await _0x1c79e8[_0x18ec2b(0x1af)](sendInstrumentationEvent,_0x1e6ad9,_0x1c79e8[_0x18ec2b(0x1a8)],messageTypes['ERROR'],_0x1c79e8[_0x18ec2b(0x1eb)],_0x306190,_0x1e6ad9),process[_0x18ec2b(0x1c5)](0x1);}};