browserstack-node-sdk 1.40.3 → 1.40.4

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 (173) 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_before.setup.js +1 -1
  67. package/src/bin/launcher/launcher.js +1 -1
  68. package/src/bin/load/index.js +1 -1
  69. package/src/bin/load/loadUtils.js +1 -1
  70. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  71. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  72. package/src/bin/mocha/command.js +1 -1
  73. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  74. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  75. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  76. package/src/bin/mocha/test.setup.js +1 -1
  77. package/src/bin/nightwatch/command.js +1 -1
  78. package/src/bin/playwright/accessibility-helper.js +1 -1
  79. package/src/bin/playwright/command.js +1 -1
  80. package/src/bin/playwright/globalSetup.js +1 -1
  81. package/src/bin/playwright/mock-process.js +1 -1
  82. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  83. package/src/bin/playwright/patches.js +1 -1
  84. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  85. package/src/bin/playwright/reporter/reporter.js +1 -1
  86. package/src/bin/playwright/reporter/test-details.js +1 -1
  87. package/src/bin/playwright/sessionDetails.js +1 -1
  88. package/src/bin/runner.js +1 -1
  89. package/src/bin/setup.js +1 -1
  90. package/src/bin/test-runner/index.js +1 -1
  91. package/src/bin/test-runner/runTest.js +1 -1
  92. package/src/bin/test-runner/testWorker.js +1 -1
  93. package/src/bin/utils/constants.js +1 -1
  94. package/src/bin/utils/log4jsAppender.js +1 -1
  95. package/src/bin/utils/logPatcher.js +1 -1
  96. package/src/bin/utils/logReportingAPI.js +1 -1
  97. package/src/bin/v2/TestInfo.js +1 -1
  98. package/src/bin/v2/browserstackCLI.js +1 -1
  99. package/src/bin/v2/cliUtils.js +1 -1
  100. package/src/bin/v2/customTagManager.js +1 -1
  101. package/src/bin/v2/eventDispatcher.js +1 -1
  102. package/src/bin/v2/framework/automationFramework.js +1 -1
  103. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  104. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  105. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  106. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  107. package/src/bin/v2/framework/testFramework.js +1 -1
  108. package/src/bin/v2/grpcClient.js +1 -1
  109. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  110. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  111. package/src/bin/v2/instances/trackedContext.js +1 -1
  112. package/src/bin/v2/instances/trackedInstance.js +1 -1
  113. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  114. package/src/bin/v2/modules/baseModule.js +1 -1
  115. package/src/bin/v2/modules/observabilityModule.js +1 -1
  116. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  117. package/src/bin/v2/modules/testhubModule.js +1 -1
  118. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  119. package/src/bin/v2/state/hookState.js +1 -1
  120. package/src/bin/v2/state/testFrameworkState.js +1 -1
  121. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  122. package/src/bin/vanilla-js/command.js +1 -1
  123. package/src/browserStackSdk.js +1 -1
  124. package/src/helpers/BrowserStackSetup.js +1 -1
  125. package/src/helpers/accessibility-automation/constants.js +1 -1
  126. package/src/helpers/accessibility-automation/helper.js +1 -1
  127. package/src/helpers/accessibility-automation/scripts.js +1 -1
  128. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  129. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  130. package/src/helpers/ats/constants.js +1 -1
  131. package/src/helpers/ats/helper.js +1 -1
  132. package/src/helpers/capsMapping.js +1 -1
  133. package/src/helpers/central-scanner/constants.js +1 -1
  134. package/src/helpers/central-scanner/helpers.js +1 -1
  135. package/src/helpers/classLogger.js +1 -1
  136. package/src/helpers/globals.js +1 -1
  137. package/src/helpers/helper.js +1 -1
  138. package/src/helpers/logger.js +1 -1
  139. package/src/helpers/metadata.js +1 -1
  140. package/src/helpers/patchHelper.js +1 -1
  141. package/src/helpers/patchHelpers.js +1 -1
  142. package/src/helpers/percy/Percy.js +1 -1
  143. package/src/helpers/percy/PercyBinary.js +1 -1
  144. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  145. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  146. package/src/helpers/percy/PercySDK.js +1 -1
  147. package/src/helpers/percy/index.js +1 -1
  148. package/src/helpers/percy/utils.js +1 -1
  149. package/src/helpers/performance/constants.js +1 -1
  150. package/src/helpers/performance/performance-tester.js +1 -1
  151. package/src/helpers/processHelper.js +1 -1
  152. package/src/helpers/request-spy.js +1 -1
  153. package/src/helpers/setKeepAlive.js +1 -1
  154. package/src/helpers/test-observability/constants.js +1 -1
  155. package/src/helpers/test-observability/error-handler.js +1 -1
  156. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  157. package/src/helpers/test-observability/sessionHandler.js +1 -1
  158. package/src/helpers/test-observability/utils.js +1 -1
  159. package/src/helpers/test-orchestration/constants.js +1 -1
  160. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  161. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  162. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  163. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  164. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  165. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  166. package/src/helpers/testhub/constants.js +1 -1
  167. package/src/helpers/testhub/testhubHandler.js +1 -1
  168. package/src/helpers/testhub/utils.js +1 -1
  169. package/src/helpers/timeoutPromise.js +1 -1
  170. package/src/helpers/utilities.js +1 -1
  171. package/src/helpers/w3cMapping.js +1 -1
  172. package/src/hubAllocationMethods.js +1 -1
  173. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x37cf1a=a9_0x1ba9;function a9_0x594c(){const _0x3b1fd1=['setupNewCluster','Create\x20a\x20new\x20Automation\x20grid.','ekykY','info','xfBYR','cMIYV','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.','qOiAC','Grid\x20spawned\x20on\x20the\x20cluster','fUVsH','HAtZh','command','LHbMc','mzhyo','MdYYC','FXYOr','options','ZNwJU','/packages/cli/create-grid-checks','LDNPs','readFileAsync','route53','xmLiF','lQcwM','oQwxa','yOVBs','Found\x20Subnets:\x20','qvhwX','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','type','HkfGT','isClusterPresent','XeqIL','zhnRu','1|4|2|0|3','redisPassword','boolean','ingress-nginx-controller','KpMom','region','UhACr','hnbPS','\x27\x20grid\x20profile','loadAll','TaPjm','UDAPe','eqzsm','vEZWn','EEmOu','clusterAutoupgrade','jgyMX','zvvSw','18IsxtvT','concurrency','2276336lhfjNs','ihHwi','gridProfile','784540OlLhRM','statusCode','ootsc','isVPCPresent','Browserstack','QGzdL','BRLDD','maxNodes','annotations','grid','GetrZ','17532hVOnFJ','s3bucket','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','cJjcc','pre-spawned-invalid-subnets','grid-spawning-failed','BZFgQ','EQzEy','gHcBV','BbjhI','vlcgj','bitnami-redis.yaml','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','pDMmM','XvkcK','0|1|3|4|2','wwnce','bstackUsername','yVJae','URDeH','ePaFz','readNamespacedService','onhrq','skip-tls-cert-verify','\x20in\x20existing\x20cluster\x20\x27','metadata','ItGJN','cluster-name','cDAfw','fDghF','bMEpW','deseD','dpGRS','isPrivateGrid','HXBrY','FHjIz','hubVersion','FmYbE','eOfRr','debug','<UsernamePlaceholder>','aNyzt','HfyXO','grid-name','YVDTp','bNvpW','QOhXb','lFYSG','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','LPLmA','clusterName','minNodes','namespace','existsSync','hyImY','PXCGQ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','KRmfS','5|3|2|0|8|1|7|4|6','createOtherResources','Cluster\x20','qDmFG','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','dsROb','Spawning\x20the\x20grid\x20','split','WGSoB','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Enabling\x20Hub\x20HA\x20flow','eAqFW','TougU','length','TBCLz','Flag\x20to\x20enable\x20Hub\x20HA','wMOBM','igNHy','browserstack','replace','reconnecting-websocket','1|3|0|2|4','PWpRv','Ogmld','body','connectionTimeout','objdv','pre-spawned-subnets-not-selected','AHztS','stringify','MVtkW','SlHsQ','template','deleteCluster','toLowerCase','get-grid-url-non-200','zLerM','Grid\x20profile\x20fetched\x20from\x20backend','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','hvDub','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','stack','PaiEB','hubHa','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','js-yaml','createdBy','hYRrw','OCIbo','CLI_RUN_FINISHED','exit','templates','kafkaUploader','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','argv','rUVfg','IWHth','requestId','tuOxO','LeKPV','JMVEn','instanceType','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','SedAg','qBimN','11|8|10|9|1|12|3|6|5|2|0|14|13|7|4|15','ERexe','idemu','ntoDC','create-grid-checks-null-response','aPBNj','Epyd5nXbRK','qSQDn','clusterRegion','Added\x20Redis\x20deployment.','jKtfN','rOGgQ','CLI_RUN_STARTED','/wd/hub','zWqka','Namespace\x20created','AroYl','bstackAccesskey','YWGaZ','cloudProvider','zGfJg','FAQLv','true','fwQEU','Cluster:\x20','trtcr','://','aRyiy','Zpfza','Added\x20Turboscale\x20Uploader\x20deployment.','private-ingress-nginx-controller','2|7|6|1|0|5|3|8|4','ujzgW','uploaderImageVersion','inlnQ','xiDfm','../../config/logger','utf-8','SdguV','VIpzx','nXetP','default','GET','setupAutoscaler','mPdTV','qjubs','wKJNw','\x20using\x20\x27','FBkyV','\x20are\x20not\x20present\x20in\x20VPC:\x20','grid-profile','LuCQZ','guhIE','Deleting\x20the\x20CloudFormation\x20Stacks','1387014wQBoZH','sendEventToBackend','yMfBt','DOAVr','usage','jDfBr','455530DmXoqu','securityGroups','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Hub\x20HA\x20setup\x20completed\x20successfully.','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','JMZIW','spYnZ','sendResourceDataToHST','clusterAutoUpgrade','sxjGZ','readFileSync','wrOIu','../../cloudproviders/utils','VsRhk','LOG','ZGcMt','Adding\x20Websocket\x20listeners','kFDBl','uploaderVersion','gridProfiles','turboscale-uploader.yaml','join','name','okcPd','joxUN','password','702LRXJQU','CzvBD','RELSZ','FzsxD','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','username','Skip\x20insecure\x20cert\x20verification.','wLMcB','Grid\x20can\x20be\x20accessed\x20at:\x20','ZEIsh','skipTlsCertVerify','http','QYjDc','dNWns','HZFtt','privateGrid','WhVjY','hvQSC','getResourceClientId','iJHMB','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','JajKO','delay','afwkc','create-grid-checks-auth-failed','LIfVi','CLI\x20run\x20finished:\x20','epilogue','hub-ha-deployments-failed','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','enableHubHa','tcFuL','iNnra','CLI\x20run\x20started','lCIMB','WebSocket','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','Added\x20Kafka\x20deployment.','oQcxM','get-grid-url-null-response','FEDOu','https','ERROR','ovwUl','ROOWL','TIaql','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','get-grid-url-auth-failed','isSubnetsValid','Subnets:\x20','qJquC','MoExs','yNjRg','https://','private-grid','elYXG','vAfTu','azurefile-csi-premium','cloud-provider','Cluster\x20created\x20successfully','/packages/cli/get-grid-url?gridIdentifier=','create-grid-checks-non-200','TmibQ','cRDMi','ntTuF','LYwxS','17410mGYBSL','vLqZR','tcLcm','MzJlF','updateClusterAlreadyPresent','ePwja','spec','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','create-grid-checks-invalid-profile','setupHubHa','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','toTHB','ppXkf','WAfxT','../../utils/createk8sClient','hubHaNameSpace','serviceAccountName','non-aws-azure-cluster','uqxta','premium-rwo','hCBfx','error','hKOiU','uuid','description','jFQqK','getGridHostname','TulJB','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','pre-spawned-invalid-vpc','TkcMm','Will\x20be\x20spawning\x20the\x20grid\x20','../../utils/instrumentationUtils','Spawning\x20Grid\x20on\x20the\x20Cluster','54640YklSJC','WrRNg','ORuHy','ywFJh','Puoss','hPCjq','message','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','UkRNzNYCBU','hszFP','GOWHG','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','CndaM','JXKMo','newCluster','hub-ha','labels','Found\x20VPC:\x20','cluster-autoupgrade','help','TDhlH','sXOig','HIxbc','mhLaf','IoKzn','HoUjl','got','hehqp','cxbfc','XnSTN','ffWqj','ZpwJH','path','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','XJBMC','isNewAWSCluster','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','muOuK','bBxaw','hubharesources','kafkaPassword','Create\x20a\x20private/public\x20grid.','AgQLY','qdbZX','parse','qFenn','nrMLp','browserVersion','jMoNX','7JhqFbn','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','orUOL','Adding\x20Kafka\x20deployment...','Spawning\x20grid\x20on\x20to\x20the\x20cluster','VhPbz','puLHv','subnets','JIfyE','wNFWB','RJQIW','gridName'];a9_0x594c=function(){return _0x3b1fd1;};return a9_0x594c();}(function(_0x167055,_0x5f5d08){const _0x40367e=a9_0x1ba9,_0x4a5e48=_0x167055();while(!![]){try{const _0x2e9646=-parseInt(_0x40367e(0x148))/0x1*(-parseInt(_0x40367e(0x1dc))/0x2)+-parseInt(_0x40367e(0x1ec))/0x3+parseInt(_0x40367e(0x1e1))/0x4+-parseInt(_0x40367e(0x2a3))/0x5+-parseInt(_0x40367e(0x29d))/0x6+parseInt(_0x40367e(0x19c))/0x7*(-parseInt(_0x40367e(0x1de))/0x8)+-parseInt(_0x40367e(0x2bd))/0x9*(-parseInt(_0x40367e(0x16a))/0xa);if(_0x2e9646===_0x5f5d08)break;else _0x4a5e48['push'](_0x4a5e48['shift']());}catch(_0x4a7d13){_0x4a5e48['push'](_0x4a5e48['shift']());}}}(a9_0x594c,0x289d4));function a9_0x1ba9(_0x50f684,_0x1dfb68){const _0x594c48=a9_0x594c();return a9_0x1ba9=function(_0x1ba91b,_0x4be2e3){_0x1ba91b=_0x1ba91b-0x12f;let _0x12b0e=_0x594c48[_0x1ba91b];return _0x12b0e;},a9_0x1ba9(_0x50f684,_0x1dfb68);}const fs=require('fs'),ws=require('ws'),path=require(a9_0x37cf1a(0x18a)),yaml=require(a9_0x37cf1a(0x253)),ReconnectingWebSocket=require(a9_0x37cf1a(0x23a)),got=require(a9_0x37cf1a(0x184)),{v4:uuidv4}=require(a9_0x37cf1a(0x15f)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x37cf1a(0x28b)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a9_0x37cf1a(0x2af)),{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('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x37cf1a(0x156)),{sendInstrumentationEvent}=require(a9_0x37cf1a(0x168));exports[a9_0x37cf1a(0x1b3)]=a9_0x37cf1a(0x1ea),exports['desc']=a9_0x37cf1a(0x1a9),exports['builder']=function(_0x36fb33){const _0x17bb29=a9_0x37cf1a,_0x3ad2b4={};_0x3ad2b4['tuOxO']=_0x17bb29(0x2a5),_0x3ad2b4[_0x17bb29(0x186)]='string',_0x3ad2b4[_0x17bb29(0x1ac)]=_0x17bb29(0x19d),_0x3ad2b4[_0x17bb29(0x14a)]=_0x17bb29(0x264),_0x3ad2b4['puLHv']=_0x17bb29(0x1ee),_0x3ad2b4['Epwef']=_0x17bb29(0x24e),_0x3ad2b4[_0x17bb29(0x2b0)]=_0x17bb29(0x194),_0x3ad2b4[_0x17bb29(0x2c4)]='Skip\x20insecure\x20cert\x20verification.',_0x3ad2b4[_0x17bb29(0x1b5)]=_0x17bb29(0x1cc),_0x3ad2b4['LYeAu']=_0x17bb29(0x235),_0x3ad2b4[_0x17bb29(0x199)]=_0x17bb29(0x2d1),_0x3ad2b4[_0x17bb29(0x1a5)]=_0x17bb29(0x17d);const _0x16d21f=_0x3ad2b4,_0x46aeec={};_0x46aeec['description']=_0x16d21f[_0x17bb29(0x260)],_0x46aeec['type']=_0x16d21f[_0x17bb29(0x186)];const _0x20ccea={};_0x20ccea[_0x17bb29(0x160)]=_0x16d21f[_0x17bb29(0x1ac)],_0x20ccea[_0x17bb29(0x1c5)]=_0x16d21f[_0x17bb29(0x186)];const _0x379ebe={};_0x379ebe['description']=_0x16d21f[_0x17bb29(0x14a)],_0x379ebe[_0x17bb29(0x1c5)]=_0x16d21f[_0x17bb29(0x186)];const _0x4bf057={};_0x4bf057[_0x17bb29(0x160)]=_0x16d21f[_0x17bb29(0x1a2)],_0x4bf057['type']=_0x16d21f[_0x17bb29(0x186)];const _0x35ab8c={};_0x35ab8c[_0x17bb29(0x160)]=_0x16d21f['Epwef'],_0x35ab8c[_0x17bb29(0x1c5)]=_0x16d21f['cxbfc'];const _0x51dfa0={};_0x51dfa0['description']=_0x16d21f[_0x17bb29(0x2b0)],_0x51dfa0['type']=_0x16d21f[_0x17bb29(0x186)];const _0x5c0a98={};_0x5c0a98[_0x17bb29(0x160)]=_0x16d21f[_0x17bb29(0x2c4)],_0x5c0a98[_0x17bb29(0x1c5)]=_0x16d21f[_0x17bb29(0x1b5)],_0x5c0a98['default']=![];const _0x2a9100={};_0x2a9100[_0x17bb29(0x160)]=_0x16d21f['LYeAu'],_0x2a9100[_0x17bb29(0x1c5)]=_0x16d21f[_0x17bb29(0x1b5)],_0x2a9100[_0x17bb29(0x290)]=![];const _0x51cb1b={};_0x51cb1b[_0x17bb29(0x160)]=_0x16d21f['nrMLp'],_0x51cb1b['type']=_0x16d21f[_0x17bb29(0x1b5)],_0x51cb1b[_0x17bb29(0x290)]=![];const _0x15dbbf={};return _0x15dbbf['grid-name']=_0x46aeec,_0x15dbbf[_0x17bb29(0x299)]=_0x20ccea,_0x15dbbf[_0x17bb29(0x207)]=_0x379ebe,_0x15dbbf[_0x17bb29(0x140)]=_0x4bf057,_0x15dbbf[_0x17bb29(0x1cf)]=_0x35ab8c,_0x15dbbf[_0x17bb29(0x13c)]=_0x51dfa0,_0x15dbbf['skip-tls-cert-verify']=_0x5c0a98,_0x15dbbf['hub-ha']=_0x2a9100,_0x15dbbf[_0x17bb29(0x17c)]=_0x51cb1b,_0x36fb33[_0x17bb29(0x2a1)](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x17bb29(0x1b8)](_0x15dbbf)['help'](_0x16d21f[_0x17bb29(0x1a5)])[_0x17bb29(0x25c)];},exports['handler']=async function(_0x35191f){const _0x46e708=a9_0x37cf1a,_0x34e0cd={'bBxaw':_0x46e708(0x2c8),'KpMom':_0x46e708(0x267),'qDmFG':function(_0x572ab3,_0x15593f,_0x20917f,_0x246ffd,_0x468937,_0x3ebbbe,_0x463705,_0xb9fc17,_0x1ca813,_0x355b02,_0x90c0eb,_0x5bb51e,_0x2ab67c){return _0x572ab3(_0x15593f,_0x20917f,_0x246ffd,_0x468937,_0x3ebbbe,_0x463705,_0xb9fc17,_0x1ca813,_0x355b02,_0x90c0eb,_0x5bb51e,_0x2ab67c);},'hszFP':function(_0x4be039,_0x1e20c8){return _0x4be039!==_0x1e20c8;},'TWvBk':function(_0x3b79ed,_0x10ac60){return _0x3b79ed(_0x10ac60);},'qJquC':_0x46e708(0x12f),'dpGRS':'error','ihHwi':function(_0x43540f,_0xdd2864){return _0x43540f(_0xdd2864);},'ffWqj':_0x46e708(0x1fb),'BRLDD':_0x46e708(0x230),'lfdql':_0x46e708(0x238),'VhPbz':_0x46e708(0x172),'GetrZ':_0x46e708(0x26d),'zWqka':function(_0x4f8557,_0x150a0f){return _0x4f8557(_0x150a0f);},'MVtkW':_0x46e708(0x2a5),'bNvpW':'string','BbjhI':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','UQjyf':_0x46e708(0x264),'FBkyV':_0x46e708(0x1ee),'QomRC':_0x46e708(0x24e),'hyImY':_0x46e708(0x194),'mRFgP':_0x46e708(0x2c3),'fwQEU':'boolean','wKJNw':_0x46e708(0x235),'sXOig':_0x46e708(0x2d1),'JMVEn':_0x46e708(0x17d),'ZsVsM':_0x46e708(0x226),'IoKzn':_0x46e708(0x2de),'aNyzt':_0x46e708(0x27d),'PaiEB':_0x46e708(0x290),'ywFJh':_0x46e708(0x13f),'joxUN':_0x46e708(0x15b),'lFYSG':'warn','bMEpW':function(_0x1e4136,_0xd7fc0e){return _0x1e4136===_0xd7fc0e;},'sxjGZ':_0x46e708(0x171),'TkcMm':function(_0x4600ba){return _0x4600ba();},'XJBMC':'jKGkf','UDAPe':_0x46e708(0x224),'LIfVi':function(_0x2b0460,_0x3c148e,_0x21c812,_0x1cec52,_0x498906,_0x3172fa,_0x4b4751){return _0x2b0460(_0x3c148e,_0x21c812,_0x1cec52,_0x498906,_0x3172fa,_0x4b4751);},'SlHsQ':'create-grid-called','Zpfza':'init-not-called','OCIbo':function(_0x525006,_0x3a64b1,_0x263b10,_0x2c4cd9,_0x3cf15a,_0x393c65,_0x3c3456){return _0x525006(_0x3a64b1,_0x263b10,_0x2c4cd9,_0x3cf15a,_0x393c65,_0x3c3456);},'dfPmn':function(_0x2cc974){return _0x2cc974();},'cJjcc':_0x46e708(0x214),'GxobO':'<PasswordPlaceholder>','WZFWN':_0x46e708(0x2b3),'nXetP':function(_0x1df292,_0x1173bd){return _0x1df292!==_0x1173bd;},'wrOIu':_0x46e708(0x22e),'QYjDc':function(_0x14a6e9,_0x1d223d){return _0x14a6e9===_0x1d223d;},'ZNwJU':_0x46e708(0x183),'iNnra':'NWYAi','SGqNU':_0x46e708(0x18e),'cDAfw':function(_0x4c4a11,_0x512c56,_0x32962c,_0x3dba05,_0x812aee,_0x4e9465,_0x18540f,_0x2f3286){return _0x4c4a11(_0x512c56,_0x32962c,_0x3dba05,_0x812aee,_0x4e9465,_0x18540f,_0x2f3286);},'vLqZR':'prespawned-cluster-args-not-passed','igNHy':_0x46e708(0x28d),'ePwja':_0x46e708(0x16f),'LHbMc':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','FHjIz':_0x46e708(0x159),'rUVfg':function(_0x88025d,_0x533ec5){return _0x88025d===_0x533ec5;},'URDeH':_0x46e708(0x154),'trtcr':function(_0x5b5688,_0x1e1af2){return _0x5b5688!==_0x1e1af2;},'yMfBt':_0x46e708(0x15c),'vlcgj':_0x46e708(0x163),'CzvBD':'cWxhU','zvvSw':_0x46e708(0x291),'MdYYC':function(_0x4ea0ad,_0x17387a,_0x5930ba){return _0x4ea0ad(_0x17387a,_0x5930ba);},'yVJae':function(_0x1b104f,_0x441770){return _0x1b104f===_0x441770;},'HIxbc':_0x46e708(0x2ce),'cMIYV':function(_0x1bc994,_0x28f212){return _0x1bc994!==_0x28f212;},'lCIMB':_0x46e708(0x133),'lQcwM':function(_0x2f3f75,_0x14ce6b,_0x14b57d){return _0x2f3f75(_0x14ce6b,_0x14b57d);},'jDfBr':function(_0x196458,_0x31923b){return _0x196458===_0x31923b;},'ZpwJH':_0x46e708(0x176),'EEmOu':_0x46e708(0x293),'IsVFx':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','LYwxS':function(_0x24bd68,_0x15ebdd,_0x32cd28,_0x4ff934,_0x325885,_0x484821,_0x3d2aab,_0x306006){return _0x24bd68(_0x15ebdd,_0x32cd28,_0x4ff934,_0x325885,_0x484821,_0x3d2aab,_0x306006);},'yNjRg':_0x46e708(0x26b),'XvkcK':function(_0x301f4d,_0x49d94e){return _0x301f4d===_0x49d94e;},'IIpBt':_0x46e708(0x16c),'LDNPs':_0x46e708(0x206),'idemu':_0x46e708(0x134),'JXKMo':_0x46e708(0x2d5),'iJHMB':function(_0x2b280d,_0x1a911a){return _0x2b280d===_0x1a911a;},'gHcBV':_0x46e708(0x27b),'zhnRu':'ZDVXE','LuCQZ':_0x46e708(0x143),'wLFHC':_0x46e708(0x24b),'WAfxT':function(_0x1466dd,_0x20ae15){return _0x1466dd!==_0x20ae15;},'IAbTw':_0x46e708(0x2d4),'eOfRr':_0x46e708(0x144),'HAtZh':'create-grid-checks-grid-already-exists','AroYl':_0x46e708(0x1c3),'Puoss':function(_0x3f0791,_0x19d0b1){return _0x3f0791===_0x19d0b1;},'JqiNe':_0x46e708(0x265),'DOAVr':'4|2|0|3|1','AHztS':function(_0x465f2c,_0x3c5ab4){return _0x465f2c===_0x3c5ab4;},'jMoNX':_0x46e708(0x209),'AgQLY':function(_0x565f5e,_0x18897c){return _0x565f5e===_0x18897c;},'qSQDn':function(_0x30dee2,_0x43f1f2){return _0x30dee2!==_0x43f1f2;},'eqzsm':'yNNya','aDpKF':_0x46e708(0x22f),'MoExs':_0x46e708(0x150),'jPjiW':function(_0x3216c4,_0x2cef87){return _0x3216c4!==_0x2cef87;},'zRPiz':_0x46e708(0x15a),'wduYF':_0x46e708(0x16b),'aRyiy':'awNCO','ovwUl':_0x46e708(0x268),'cRDMi':_0x46e708(0x19e),'WFFYl':function(_0x1f5413,_0x23ffbe){return _0x1f5413(_0x23ffbe);},'JMZIW':function(_0x223746,_0x589094){return _0x223746===_0x589094;},'eAqFW':function(_0x397033,_0x4b2643){return _0x397033!==_0x4b2643;},'qFenn':_0x46e708(0x1f2),'XnSTN':'HtVtA','toTHB':_0x46e708(0x2e4),'hvDub':_0x46e708(0x272),'yIaHQ':function(_0x349496,_0x277a0f,_0x11dd3b,_0x1c4ce1,_0x5da5f5,_0x2875a4,_0x43da7e,_0x335645,_0x2d1d91,_0x3363c7,_0x189497,_0x13f95c,_0x26db19){return _0x349496(_0x277a0f,_0x11dd3b,_0x1c4ce1,_0x5da5f5,_0x2875a4,_0x43da7e,_0x335645,_0x2d1d91,_0x3363c7,_0x189497,_0x13f95c,_0x26db19);},'vAfTu':_0x46e708(0x25e),'ZGcMt':function(_0x4810c3,_0x5bdcf6){return _0x4810c3(_0x5bdcf6);},'uSCZo':_0x46e708(0x216),'fUVsH':_0x46e708(0x20e),'TteBx':_0x46e708(0x286),'dWXhD':function(_0x6f8294,_0x1c4d8e,_0x19c853,_0xffdf28,_0x5dc013,_0x1caf4b,_0x587bc5){return _0x6f8294(_0x1c4d8e,_0x19c853,_0xffdf28,_0x5dc013,_0x1caf4b,_0x587bc5);},'ROOWL':function(_0x24a9b3,_0x2910b2){return _0x24a9b3!==_0x2910b2;},'XuvqO':function(_0x580a43,_0x5f49ef){return _0x580a43===_0x5f49ef;},'YVDTp':_0x46e708(0x289),'dsROb':function(_0x591885,_0x5044ca){return _0x591885===_0x5044ca;},'jFQqK':_0x46e708(0x225),'hzgLv':_0x46e708(0x21a),'MzJlF':_0x46e708(0x1d0),'okcPd':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','HkfGT':function(_0x5b5e33,_0xedeaef){return _0x5b5e33!=_0xedeaef;},'MYclQ':function(_0x17571f,_0x581c0f){return _0x17571f!==_0x581c0f;},'qjubs':function(_0x59eea2,_0x2c531d){return _0x59eea2>_0x2c531d;},'prlFE':_0x46e708(0x25b),'qdbZX':function(_0x2e2b1c,_0x46b04d,_0x449399,_0x565882,_0x407e43,_0x4df71b,_0x4b788e,_0xf93b7d){return _0x2e2b1c(_0x46b04d,_0x449399,_0x565882,_0x407e43,_0x4df71b,_0x4b788e,_0xf93b7d);},'TougU':_0x46e708(0x241),'EELCa':_0x46e708(0x2e1),'LPLmA':function(_0x3b03fc,_0x25f26d,_0x3725ef,_0x2befa2,_0x59d07e,_0x1701f8,_0x15c07f,_0x590d4a){return _0x3b03fc(_0x25f26d,_0x3725ef,_0x2befa2,_0x59d07e,_0x1701f8,_0x15c07f,_0x590d4a);},'FXYOr':_0x46e708(0x165),'aPBNj':function(_0x34c317,_0x19818e){return _0x34c317===_0x19818e;},'mztbM':function(_0x9f15c4,_0x4813d7,_0x11a9ab,_0x39b757,_0x218468,_0x49bf7a,_0x40c6af,_0x438a88){return _0x9f15c4(_0x4813d7,_0x11a9ab,_0x39b757,_0x218468,_0x49bf7a,_0x40c6af,_0x438a88);},'HZFtt':_0x46e708(0x1f0),'yOVBs':_0x46e708(0x23b),'jgyMX':_0x46e708(0x1ae),'oQwxa':_0x46e708(0x141),'ootsc':function(_0x104150,_0x3bf16f){return _0x104150===_0x3bf16f;},'hYRrw':function(_0xfbfe14,_0x4522ea){return _0xfbfe14===_0x4522ea;},'mhLaf':function(_0x445134,_0x1feb98){return _0x445134===_0x1feb98;},'JajKO':'Creating\x20Hub\x20HA\x20resources','ujzgW':function(_0x2c5f3c,_0xecc220,_0x370785){return _0x2c5f3c(_0xecc220,_0x370785);},'ntoDC':'Adding\x20Secret\x20Mapping','wwnce':'../..','QGzdL':_0x46e708(0x259),'jKtfN':_0x46e708(0x192),'RJQIW':'browserstack-secret.yaml','dNWns':_0x46e708(0x28c),'VIpzx':function(_0x99d0f8,_0x41cef9){return _0x99d0f8(_0x41cef9);},'FAQLv':function(_0x227e1a,_0x57d87b){return _0x227e1a(_0x57d87b);},'ePaFz':function(_0x5b2cf5,_0x89b00c){return _0x5b2cf5(_0x89b00c);},'vEZWn':function(_0x3d9dfd,_0x3d0eb7,_0xed16cd){return _0x3d9dfd(_0x3d0eb7,_0xed16cd);},'guhIE':'Added\x20Secret\x20Mapping','wMOBM':'efs-csi','ntTuF':function(_0x513a91,_0x406d51){return _0x513a91===_0x406d51;},'FEDOu':'Adding\x20Redis\x20deployment...','qBimN':_0x46e708(0x1f7),'zLerM':function(_0x4349f1,_0x31b43a,_0x45d2ff){return _0x4349f1(_0x31b43a,_0x45d2ff);},'kFDBl':_0x46e708(0x270),'elYXG':_0x46e708(0x19f),'aARTs':'bitnami-kafka.yaml','CUzOS':_0x46e708(0x2e3),'RELSZ':'Adding\x20Turboscale\x20Uploader\x20deployment...','deseD':_0x46e708(0x2b7),'GOWHG':function(_0x55364d,_0x33cdf0){return _0x55364d===_0x33cdf0;},'pDMmM':_0x46e708(0x284),'ekykY':'Created\x20Hub\x20HA\x20resources','hKOiU':_0x46e708(0x2a6),'FmYbE':_0x46e708(0x1ca),'xmLiF':_0x46e708(0x2d9),'xiDfm':'Creating\x20namespace','Ogmld':_0x46e708(0x1e5),'hehqp':'Namespace\x20Created','LeKPV':_0x46e708(0x276),'RtvZx':_0x46e708(0x1a0),'qOiAC':_0x46e708(0x169),'TBCLz':function(_0x2db78a,_0xf33d89){return _0x2db78a===_0xf33d89;},'mcFns':function(_0x37840c,_0x5c5972,_0xe6a5dd,_0x505664,_0x1151d0,_0x5c0cbf,_0x51eac7,_0x2a34d8,_0x17e743,_0x5c62f,_0x84096c){return _0x37840c(_0x5c5972,_0xe6a5dd,_0x505664,_0x1151d0,_0x5c0cbf,_0x51eac7,_0x2a34d8,_0x17e743,_0x5c62f,_0x84096c);},'UfFsL':_0x46e708(0x1b0),'tcFuL':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','EQzEy':function(_0x33964d,_0x2cc476,_0x4a651f,_0x2959c0,_0x180a02){return _0x33964d(_0x2cc476,_0x4a651f,_0x2959c0,_0x180a02);},'hnbPS':function(_0x3f6e04,_0xcdd879,_0x8c4fbc){return _0x3f6e04(_0xcdd879,_0x8c4fbc);},'PXCGQ':_0x46e708(0x285),'TDhlH':_0x46e708(0x1cd),'muOuK':'ingress-nginx','FzsxD':_0x46e708(0x2c1),'TaPjm':function(_0x258609,_0x295ef3,_0x376205,_0x2aef0b,_0x4c3ba8,_0x6c6352,_0x2f70fc,_0x1dd880){return _0x258609(_0x295ef3,_0x376205,_0x2aef0b,_0x4c3ba8,_0x6c6352,_0x2f70fc,_0x1dd880);},'mmGIE':_0x46e708(0x2e5),'YWGaZ':function(_0x5ee832,_0x430a0c){return _0x5ee832===_0x430a0c;},'fcKeV':_0x46e708(0x21c),'XeqIL':_0x46e708(0x135),'WhVjY':function(_0x12330f,_0xa5f7d6){return _0x12330f!==_0xa5f7d6;},'objdv':_0x46e708(0x249),'onhrq':function(_0x3a24d1,_0x4c4a66){return _0x3a24d1===_0x4c4a66;},'JIfyE':_0x46e708(0x29c),'PWpRv':function(_0x359309,_0xc6e8ac,_0x5df88c,_0x5e3a0c,_0x78aa74,_0x3d235e){return _0x359309(_0xc6e8ac,_0x5df88c,_0x5e3a0c,_0x78aa74,_0x3d235e);},'spYnZ':function(_0x59b576,_0x27978f,_0x1fd1ea,_0x22b16f,_0x44a2a7,_0x22b946,_0x3a1d6e){return _0x59b576(_0x27978f,_0x1fd1ea,_0x22b16f,_0x44a2a7,_0x22b946,_0x3a1d6e);},'ZEIsh':_0x46e708(0x1f1)};let _0x5d436f=![],_0xf3af0a=![],_0x107d7d,_0x2a4164,_0x80d1b9,_0x17758f,_0x44413b,_0x462b3f,_0x2790aa,_0x5b210d,_0x5355d9,_0x313f57,_0x2c5e65,_0x503db0,_0x30a10b,_0x4c523d,_0x26861a=0x1,_0x1da68b=0xe;try{global_registry[_0x46e708(0x25f)]=_0x34e0cd[_0x46e708(0x166)](uuidv4),global_registry[_0x46e708(0x20d)]=![];!fs[_0x46e708(0x221)](_0x34e0cd[_0x46e708(0x166)](getCredentialsPath))&&(_0x34e0cd['bMEpW'](_0x34e0cd['XJBMC'],_0x34e0cd[_0x46e708(0x18c)])?(console[_0x46e708(0x15d)](_0x34e0cd[_0x46e708(0x1d5)]),await _0x34e0cd[_0x46e708(0x2d6)](sendInstrumentationEvent,_0x35191f,_0x34e0cd[_0x46e708(0x245)],messageTypes[_0x46e708(0x130)],_0x34e0cd[_0x46e708(0x283)],null,_0x35191f),process[_0x46e708(0x258)](0x1)):_0x55f7c4=_0x34e0cd[_0x46e708(0x191)]);await _0x34e0cd[_0x46e708(0x256)](sendInstrumentationEvent,_0x35191f,_0x34e0cd[_0x46e708(0x245)],messageTypes['INFO'],null,null,_0x35191f);const _0x4be285=JSON[_0x46e708(0x197)](fs[_0x46e708(0x2ad)](_0x34e0cd['dfPmn'](getCredentialsPath)));global_registry[_0x46e708(0x1fd)]=_0x4be285[_0x46e708(0x1e5)][_0x46e708(0x2c2)],global_registry[_0x46e708(0x278)]=_0x4be285[_0x46e708(0x1e5)]['password'];const _0x45a0ce=WS_ENDPOINT[_0x46e708(0x239)](_0x34e0cd[_0x46e708(0x1ef)],_0x4be285[_0x46e708(0x1e5)][_0x46e708(0x2c2)])['replace'](_0x34e0cd['GxobO'],_0x4be285[_0x46e708(0x1e5)][_0x46e708(0x2bc)]),_0x36cfa5={};_0x36cfa5[_0x46e708(0x2e0)]=ws,_0x36cfa5[_0x46e708(0x23f)]=0x36ee80,_0x503db0=new ReconnectingWebSocket(_0x45a0ce,[],_0x36cfa5),logger[_0x46e708(0x213)](_0x34e0cd['WZFWN']),webSocketUtils['addListeners'](_0x503db0,_0x35191f['user'],_0x35191f[_0x46e708(0x2bc)]);const _0x64c9ec=_0x35191f[_0x46e708(0x1a7)]||DEFAULT_GRID_NAME;if(_0x35191f[_0x46e708(0x21e)]||_0x35191f[_0x46e708(0x27a)]||_0x35191f['region']){if(_0x34e0cd[_0x46e708(0x28f)](_0x34e0cd['wrOIu'],_0x34e0cd[_0x46e708(0x2ae)])){const _0xc69b9e=_0x34e0cd[_0x46e708(0x1ce)]['split']('|');let _0x19d265=0x0;while(!![]){switch(_0xc69b9e[_0x19d265++]){case'0':_0x1e2013=_0x6a8216[_0x46e708(0x1e8)];continue;case'1':_0x100c62=_0x3a6c15[_0x46e708(0x263)];continue;case'2':_0x1f6de8=_0x881c53['minNodes'];continue;case'3':_0x4af580=null;continue;case'4':_0x34e0cd[_0x46e708(0x229)](_0x213756,_0x1c126e,_0x3494a4,_0x5065f9,_0xcca314,_0x5430d7,_0x36c1a4,_0x51a159,_0x4bae3c,_0x3d4385,_0x211840,_0x474c08,_0x4ecd5e['clusterAutoupgrade']);continue;case'5':_0x198e1f=_0x24c76b[_0x46e708(0x1ed)];continue;case'6':_0x26d0d2=null;continue;case'7':_0x34e0cd[_0x46e708(0x173)](_0x426f94[_0x46e708(0x2cc)],_0x424b5c)&&_0x34d0a4[_0x46e708(0x2cc)]&&(_0x60bbe4[_0x46e708(0x20d)]=!![]);continue;case'8':_0xd7a7bb[_0x46e708(0x1ab)](_0x18eb76);continue;case'9':_0x3195db=_0x2e3847['concurrency'];continue;case'10':const _0x38210f={};_0x38210f[_0x46e708(0x1c5)]=_0x13a8b7[_0x46e708(0x2b1)],_0x38210f[_0x46e708(0x170)]=_0x3fa4e7,_0x20ee25[_0x46e708(0x29e)](_0x31c21c,_0x38210f);continue;case'11':_0x4a12d9=_0x46e708(0x164)+_0xf9f01b;continue;case'12':_0x468f3d=null;continue;case'13':_0x5a1630=_0x1ae0e[_0x46e708(0x19a)];continue;case'14':_0x10f5b9=_0x15a9dc[_0x46e708(0x210)];continue;case'15':_0x1fa7a2[_0x46e708(0x2db)]&&_0x34e0cd['TWvBk'](_0x5b38dc,_0x29729b[_0x46e708(0x25a)]);continue;}break;}}else{!(_0x35191f[_0x46e708(0x21e)]&&_0x35191f[_0x46e708(0x27a)]&&_0x35191f[_0x46e708(0x1cf)])&&(_0x34e0cd[_0x46e708(0x2c9)](_0x34e0cd[_0x46e708(0x1b9)],_0x34e0cd[_0x46e708(0x2dd)])?(_0xa2e0c2=_0x38d578[_0x46e708(0x1bd)],_0x43e358=_0x34e0cd[_0x46e708(0x138)]):(_0x107d7d=_0x34e0cd['SGqNU'],await _0x34e0cd[_0x46e708(0x208)](reportToGalactusAndSendToEDS,_0x35191f,_0x503db0,_0x107d7d,messageTypes[_0x46e708(0x130)],_0x34e0cd['SlHsQ'],_0x34e0cd[_0x46e708(0x149)],_0x34e0cd[_0x46e708(0x20c)]),logger['error'](_0x107d7d),process['exit'](0x1)));if(![AWS,AZURE,GCP]['includes'](_0x35191f[_0x46e708(0x27a)][_0x46e708(0x248)]())){if(_0x34e0cd[_0x46e708(0x173)](_0x34e0cd[_0x46e708(0x237)],_0x34e0cd[_0x46e708(0x14d)]))_0x107d7d=_0x34e0cd[_0x46e708(0x1b4)],await _0x34e0cd[_0x46e708(0x208)](reportToGalactusAndSendToEDS,_0x35191f,_0x503db0,_0x107d7d,messageTypes[_0x46e708(0x130)],_0x34e0cd['SlHsQ'],_0x34e0cd[_0x46e708(0x20f)],_0x34e0cd['dpGRS']),logger['error'](_0x107d7d),process[_0x46e708(0x258)](0x1);else{const _0x37db07={};_0x37db07['type']=_0x390f25[_0x46e708(0x2b1)],_0x37db07[_0x46e708(0x170)]=_0x26afda,_0x3cfc52['sendEventToBackend'](_0x2115f2,_0x37db07,_0x34e0cd['dpGRS'],!![]);}}_0x35191f[_0x46e708(0x2cc)]&&_0x34e0cd[_0x46e708(0x2c9)](_0x35191f[_0x46e708(0x2cc)]['toLowerCase'](),_0x34e0cd[_0x46e708(0x215)])&&(_0x34e0cd[_0x46e708(0x25d)](_0x34e0cd[_0x46e708(0x1ff)],_0x34e0cd['URDeH'])?global_registry[_0x46e708(0x20d)]=!![]:_0x58498c[_0x46e708(0x20d)]=!![]);global_registry[_0x46e708(0x27a)]=_0x35191f[_0x46e708(0x27a)],global_registry[_0x46e708(0x26f)]=_0x35191f[_0x46e708(0x1cf)],global_registry[_0x46e708(0x21e)]=_0x35191f[_0x46e708(0x21e)];const _0x4e815e=await _0x34e0cd[_0x46e708(0x256)](getCloudProviderObject,_0x35191f['cloudProvider'],_0x35191f[_0x46e708(0x21e)],_0x64c9ec,_0x503db0,webSocketUtils,_0x35191f),_0x1aef2a=await _0x4e815e[_0x46e708(0x1c7)]();!_0x1aef2a?_0x34e0cd[_0x46e708(0x280)](_0x34e0cd[_0x46e708(0x29f)],_0x34e0cd[_0x46e708(0x29f)])?_0x4e7257=!![]:(logger['info'](_0x46e708(0x27f)+_0x35191f[_0x46e708(0x21e)]+_0x46e708(0x18f)),_0x5d436f=![],_0xf3af0a=!![]):_0x34e0cd[_0x46e708(0x28f)](_0x34e0cd['vlcgj'],_0x34e0cd[_0x46e708(0x1f6)])?_0x354d10[_0x46e708(0x20d)]=!![]:_0x5d436f=!![],_0x80d1b9=_0x35191f[_0x46e708(0x21e)],_0x2a4164=_0x35191f['cloudProvider']['toLowerCase'](),_0x17758f=_0x35191f[_0x46e708(0x1cf)];}}else _0x35191f[_0x46e708(0x1e0)]&&(_0x34e0cd[_0x46e708(0x2c9)](_0x34e0cd[_0x46e708(0x2be)],_0x34e0cd[_0x46e708(0x2be)])?global_registry[_0x46e708(0x1e0)]=_0x35191f[_0x46e708(0x1e0)]:(_0x3eff6b['info'](_0x46e708(0x27f)+_0x78debf[_0x46e708(0x21e)]+_0x46e708(0x18f)),_0xdea2f7=![],_0x181275=!![]));global_registry[_0x46e708(0x1a7)]=_0x35191f[_0x46e708(0x1a7)];const _0x18c4b6={'method':_0x34e0cd[_0x46e708(0x1db)],'headers':_0x34e0cd[_0x46e708(0x1b6)](getAuthHeader,_0x4be285[_0x46e708(0x1e5)][_0x46e708(0x2c2)],_0x4be285['Browserstack'][_0x46e708(0x2bc)]),'throwHttpErrors':![]},_0x46b4e0={};_0x46b4e0[_0x46e708(0x1a7)]=_0x64c9ec;const _0xf6bb8f=_0x46b4e0;_0xf3af0a&&(_0x34e0cd['yVJae'](_0x34e0cd[_0x46e708(0x180)],_0x34e0cd['HIxbc'])?(_0xf6bb8f[_0x46e708(0x1cf)]=_0x17758f,_0xf6bb8f[_0x46e708(0x27a)]=_0x2a4164,_0xf6bb8f['newCluster']=!![],_0xf6bb8f[_0x46e708(0x2ab)]=_0x35191f[_0x46e708(0x1d9)]):_0x5971db[_0x46e708(0x2aa)]());_0x35191f[_0x46e708(0x1d9)]&&(_0x34e0cd[_0x46e708(0x1ad)](_0x34e0cd['lCIMB'],_0x34e0cd[_0x46e708(0x2df)])?_0x5f2ccb['info'](_0x46e708(0x17b)+_0x858913+'\x20'):logger[_0x46e708(0x1ab)](_0x34e0cd[_0x46e708(0x2ac)]));const _0x4fb504=_0x46e708(0x13b)+AG_API_URL+_0x46e708(0x1ba),_0x5675a1={'searchParams':_0xf6bb8f,'throwHttpErrors':![],..._0x18c4b6},_0xf3c515=_0x5675a1,_0x109365=await _0x34e0cd[_0x46e708(0x1bf)](got,_0x4fb504,_0xf3c515);(_0x34e0cd['QYjDc'](_0x109365,null)||_0x34e0cd[_0x46e708(0x25d)](_0x109365,undefined))&&(_0x34e0cd[_0x46e708(0x2a2)](_0x34e0cd[_0x46e708(0x189)],_0x34e0cd[_0x46e708(0x1d8)])?_0x4f9c64[_0x46e708(0x15d)](_0x46e708(0x2e2)+_0x5b4200+'\x20\x0a'+_0xa4a9cb[_0x46e708(0x243)](_0x586e43['stack'])):(_0x107d7d=_0x34e0cd['IsVFx'],await _0x34e0cd[_0x46e708(0x147)](reportToGalactusAndSendToEDS,_0x35191f,_0x503db0,_0x107d7d,messageTypes['ERROR'],_0x34e0cd[_0x46e708(0x245)],_0x34e0cd[_0x46e708(0x13a)],_0x34e0cd[_0x46e708(0x20c)]),logger['error'](_0x107d7d),process[_0x46e708(0x258)](0x1)));_0x34e0cd[_0x46e708(0x1fa)](_0x109365[_0x46e708(0x1e2)],0x191)&&(_0x34e0cd[_0x46e708(0x28f)](_0x34e0cd['IIpBt'],_0x34e0cd[_0x46e708(0x1bb)])?(_0x107d7d=_0x34e0cd[_0x46e708(0x269)],await _0x34e0cd[_0x46e708(0x208)](reportToGalactusAndSendToEDS,_0x35191f,_0x503db0,_0x107d7d,messageTypes[_0x46e708(0x130)],_0x34e0cd[_0x46e708(0x245)],_0x34e0cd[_0x46e708(0x177)],_0x34e0cd['dpGRS']),logger[_0x46e708(0x15d)](_0x107d7d),process[_0x46e708(0x258)](0x1)):_0xbf7002[_0x46e708(0x20d)]=!![]);_0x34e0cd[_0x46e708(0x173)](_0x109365[_0x46e708(0x1e2)],0xc8)&&(_0x34e0cd[_0x46e708(0x2d0)](_0x34e0cd[_0x46e708(0x1f4)],_0x34e0cd[_0x46e708(0x1c9)])?_0x10fb86=_0x512a31[_0x31b957['gridProfile']]:(_0x107d7d=_0x46e708(0x14f)+JSON[_0x46e708(0x243)](_0x109365['body']),await _0x34e0cd[_0x46e708(0x208)](reportToGalactusAndSendToEDS,_0x35191f,_0x503db0,_0x107d7d,messageTypes[_0x46e708(0x130)],_0x34e0cd[_0x46e708(0x245)],_0x34e0cd[_0x46e708(0x29a)],_0x34e0cd[_0x46e708(0x20c)]),logger[_0x46e708(0x15d)](_0x107d7d),process[_0x46e708(0x258)](0x1)));const _0x3bf983=JSON['parse'](_0x109365['body']),_0x19175c={};_0x19175c[_0x46e708(0x1c5)]=WS_EVENTS[_0x46e708(0x273)],_0x19175c[_0x46e708(0x170)]=_0x34e0cd[_0x46e708(0x182)],webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0x19175c);const _0x73c19e={};_0x73c19e['type']=WS_EVENTS[_0x46e708(0x2b1)],_0x73c19e[_0x46e708(0x170)]=_0x34e0cd['wLFHC'],webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0x73c19e);_0x3bf983['alreadyPresent']&&(_0x34e0cd[_0x46e708(0x155)](_0x34e0cd['IAbTw'],_0x34e0cd[_0x46e708(0x212)])?(_0x107d7d=_0x46e708(0x252)+_0x64c9ec+_0x46e708(0x2da),await _0x34e0cd[_0x46e708(0x147)](reportToGalactusAndSendToEDS,_0x35191f,_0x503db0,_0x107d7d,messageTypes['ERROR'],_0x34e0cd['SlHsQ'],_0x34e0cd[_0x46e708(0x1b2)],_0x34e0cd[_0x46e708(0x20c)]),logger[_0x46e708(0x15d)](_0x107d7d),process[_0x46e708(0x258)](0x1)):_0x3cddcf[_0x46e708(0x1e0)]=_0x3311cf[_0x46e708(0x1e0)]);const _0x47d9b3=_0x3bf983[_0x46e708(0x2b6)];let _0x5cad56=_0x47d9b3[_0x3bf983['defaultGridProfile']];_0x35191f[_0x46e708(0x1e0)]&&(_0x34e0cd[_0x46e708(0x25d)](_0x34e0cd[_0x46e708(0x277)],_0x34e0cd[_0x46e708(0x277)])?_0x5cad56=_0x47d9b3[_0x35191f[_0x46e708(0x1e0)]]:_0x34e0cd[_0x46e708(0x1df)](_0x37ba8d,_0x471b2c[_0x46e708(0x2b5)]));global_registry[_0x46e708(0x2db)]=![];if(_0x35191f[_0x46e708(0x251)]){if(_0x34e0cd[_0x46e708(0x16e)](_0x34e0cd['JqiNe'],_0x34e0cd['JqiNe'])){const _0x11dc82=_0x34e0cd[_0x46e708(0x2a0)][_0x46e708(0x22d)]('|');let _0x306115=0x0;while(!![]){switch(_0x11dc82[_0x306115++]){case'0':global_registry[_0x46e708(0x1cb)]=_0x34e0cd[_0x46e708(0x1a1)];continue;case'1':global_registry[_0x46e708(0x2db)]=!![];continue;case'2':global_registry[_0x46e708(0x157)]=_0x34e0cd['lfdql'];continue;case'3':global_registry[_0x46e708(0x193)]=_0x34e0cd[_0x46e708(0x1eb)];continue;case'4':logger['info'](_0x34e0cd[_0x46e708(0x1e7)]);continue;}break;}}else _0x42ce5d[_0x46e708(0x1cf)]=_0x8e80a2,_0x4d1b32['cloudProvider']=_0x503918,_0x538c75[_0x46e708(0x178)]=!![],_0x508261[_0x46e708(0x2ab)]=_0x26af48[_0x46e708(0x1d9)];}if(_0x34e0cd[_0x46e708(0x2c9)](_0x5d436f,![])&&_0x34e0cd[_0x46e708(0x1fe)](_0xf3af0a,![])){if(_0x34e0cd[_0x46e708(0x242)](_0x34e0cd[_0x46e708(0x19b)],_0x34e0cd['jMoNX'])){if(_0x34e0cd[_0x46e708(0x195)](_0x5cad56,undefined)){if(_0x34e0cd[_0x46e708(0x26e)](_0x34e0cd[_0x46e708(0x1d6)],_0x34e0cd[_0x46e708(0x1d6)]))throw new _0xd158ac('Cluster\x20'+_0x490a5c+_0x46e708(0x18b));else _0x107d7d=_0x34e0cd['aDpKF'],await _0x34e0cd[_0x46e708(0x208)](reportToGalactusAndSendToEDS,_0x35191f,_0x503db0,_0x107d7d,messageTypes['ERROR'],_0x34e0cd['SlHsQ'],_0x34e0cd[_0x46e708(0x139)],_0x34e0cd[_0x46e708(0x20c)]),logger[_0x46e708(0x15d)](_0x107d7d),process['exit'](0x1);}global_registry['gridProfileId']=_0x5cad56['id'],_0x107d7d=_0x46e708(0x167)+_0x64c9ec+_0x46e708(0x296)+_0x5cad56[_0x46e708(0x2b9)]+_0x46e708(0x1d2),logger['info'](_0x107d7d);const _0x53c522={};_0x53c522[_0x46e708(0x1c5)]=WS_EVENTS[_0x46e708(0x2b1)],_0x53c522['message']=_0x107d7d,webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0x53c522),_0x2a4164=_0x5cad56[_0x46e708(0x27a)],_0x80d1b9=_0x5cad56[_0x46e708(0x21e)],_0x17758f=_0x5cad56[_0x46e708(0x1cf)],_0x44413b=_0x5cad56[_0x46e708(0x1dd)],_0x462b3f=_0x5cad56['instanceType'],_0x2790aa=_0x5cad56['vpc'],_0x5b210d=_0x5cad56[_0x46e708(0x2a4)],_0x5355d9=_0x5cad56[_0x46e708(0x1a3)],_0x313f57=_0x5cad56[_0x46e708(0x1ed)],_0x26861a=_0x5cad56[_0x46e708(0x21f)],_0x1da68b=_0x5cad56[_0x46e708(0x1e8)],_0x30a10b=_0x3bf983[_0x46e708(0x210)],_0x4c523d=_0x3bf983['browserVersion'];_0x2790aa&&_0x34e0cd[_0x46e708(0x1fe)](_0x2790aa[_0x46e708(0x233)],0x0)&&(_0x34e0cd['jPjiW'](_0x34e0cd['zRPiz'],_0x34e0cd['wduYF'])?_0x2790aa=null:_0x26ab7b=null);if(_0x5355d9&&_0x34e0cd[_0x46e708(0x1fa)](_0x5355d9[_0x46e708(0x233)],0x0)){if(_0x34e0cd[_0x46e708(0x280)](_0x34e0cd[_0x46e708(0x282)],_0x34e0cd[_0x46e708(0x282)])){const _0x486016=_0x34e0cd[_0x46e708(0x188)][_0x46e708(0x22d)]('|');let _0x27a349=0x0;while(!![]){switch(_0x486016[_0x27a349++]){case'0':_0x41ca31[_0x46e708(0x1ab)](_0x34e0cd['BRLDD']);continue;case'1':_0x4d6e20[_0x46e708(0x157)]=_0x34e0cd['lfdql'];continue;case'2':_0x32e9d9[_0x46e708(0x2db)]=!![];continue;case'3':_0x3c1d2e[_0x46e708(0x1cb)]=_0x34e0cd['VhPbz'];continue;case'4':_0x42b830[_0x46e708(0x193)]=_0x34e0cd[_0x46e708(0x1eb)];continue;}break;}}else _0x5355d9=null;}_0x34e0cd[_0x46e708(0x26e)](_0x5cad56['privateGrid'],undefined)&&_0x5cad56[_0x46e708(0x2cc)]&&(_0x34e0cd[_0x46e708(0x16e)](_0x34e0cd[_0x46e708(0x131)],_0x34e0cd['ovwUl'])?global_registry[_0x46e708(0x20d)]=!![]:_0x34e0cd[_0x46e708(0x275)](_0x44964a,_0xce1e9[_0x46e708(0x25a)])),_0x34e0cd[_0x46e708(0x229)](updateGlobalRegistryWithConfig,_0x2a4164,_0x80d1b9,_0x17758f,_0x44413b,_0x462b3f,_0x313f57,_0x5cad56,_0x30a10b,_0x4c523d,_0x26861a,_0x1da68b,_0x35191f[_0x46e708(0x1d9)]),global_registry['enableHubHa']&&(_0x34e0cd[_0x46e708(0x1fe)](_0x34e0cd[_0x46e708(0x145)],_0x34e0cd['cRDMi'])?_0x34e0cd['WFFYl'](updateGlobalRegistryForHubHa,_0x3bf983[_0x46e708(0x2b5)]):_0x362024[_0x46e708(0x1ab)](_0x46e708(0x1c2)+_0x15fc20[_0x46e708(0x243)](_0x12299b)+'\x20'));}else{const _0x4a160e={};_0x4a160e['description']=_0x34e0cd[_0x46e708(0x244)],_0x4a160e['type']=_0x34e0cd[_0x46e708(0x219)];const _0x3dc63f={};_0x3dc63f[_0x46e708(0x160)]=_0x34e0cd[_0x46e708(0x1f5)],_0x3dc63f['type']=_0x34e0cd[_0x46e708(0x219)];const _0x1bacf1={};_0x1bacf1[_0x46e708(0x160)]=_0x34e0cd['UQjyf'],_0x1bacf1['type']=_0x34e0cd[_0x46e708(0x219)];const _0x6b3353={};_0x6b3353[_0x46e708(0x160)]=_0x34e0cd[_0x46e708(0x297)],_0x6b3353[_0x46e708(0x1c5)]=_0x34e0cd[_0x46e708(0x219)];const _0x42a90d={};_0x42a90d[_0x46e708(0x160)]=_0x34e0cd['QomRC'],_0x42a90d[_0x46e708(0x1c5)]=_0x34e0cd['bNvpW'];const _0x1fbf28={};_0x1fbf28['description']=_0x34e0cd[_0x46e708(0x222)],_0x1fbf28['type']=_0x34e0cd[_0x46e708(0x219)];const _0x153b7a={};_0x153b7a[_0x46e708(0x160)]=_0x34e0cd['mRFgP'],_0x153b7a[_0x46e708(0x1c5)]=_0x34e0cd[_0x46e708(0x27e)],_0x153b7a[_0x46e708(0x290)]=![];const _0x6da4f={};_0x6da4f[_0x46e708(0x160)]=_0x34e0cd[_0x46e708(0x295)],_0x6da4f[_0x46e708(0x1c5)]=_0x34e0cd[_0x46e708(0x27e)],_0x6da4f[_0x46e708(0x290)]=![];const _0x2064ac={};_0x2064ac['description']=_0x34e0cd[_0x46e708(0x17f)],_0x2064ac[_0x46e708(0x1c5)]=_0x34e0cd[_0x46e708(0x27e)],_0x2064ac[_0x46e708(0x290)]=![];const _0x4361e5={};return _0x4361e5[_0x46e708(0x217)]=_0x4a160e,_0x4361e5[_0x46e708(0x299)]=_0x3dc63f,_0x4361e5[_0x46e708(0x207)]=_0x1bacf1,_0x4361e5[_0x46e708(0x140)]=_0x6b3353,_0x4361e5[_0x46e708(0x1cf)]=_0x42a90d,_0x4361e5[_0x46e708(0x13c)]=_0x1fbf28,_0x4361e5[_0x46e708(0x203)]=_0x153b7a,_0x4361e5[_0x46e708(0x179)]=_0x6da4f,_0x4361e5['cluster-autoupgrade']=_0x2064ac,_0x1acbea['usage'](_0x33b299['create'])[_0x46e708(0x2d8)](_0x5a0b16)[_0x46e708(0x1b8)](_0x4361e5)[_0x46e708(0x17d)](_0x34e0cd[_0x46e708(0x262)])[_0x46e708(0x25c)];}}else{if(_0x34e0cd[_0x46e708(0x2a8)](_0xf3af0a,!![])){if(_0x34e0cd[_0x46e708(0x231)](_0x34e0cd[_0x46e708(0x198)],_0x34e0cd[_0x46e708(0x187)])){_0x107d7d=_0x46e708(0x164)+_0x64c9ec,logger[_0x46e708(0x1ab)](_0x107d7d);const _0xed9f70={};_0xed9f70[_0x46e708(0x1c5)]=WS_EVENTS[_0x46e708(0x2b1)],_0xed9f70[_0x46e708(0x170)]=_0x107d7d,webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0xed9f70),_0x44413b=_0x5cad56[_0x46e708(0x1dd)],_0x462b3f=_0x5cad56['instanceType'],_0x2790aa=null,_0x5b210d=null,_0x5355d9=null,_0x313f57=_0x5cad56[_0x46e708(0x1ed)],_0x26861a=_0x5cad56[_0x46e708(0x21f)],_0x1da68b=_0x5cad56[_0x46e708(0x1e8)],_0x30a10b=_0x3bf983[_0x46e708(0x210)],_0x4c523d=_0x3bf983[_0x46e708(0x19a)];if(_0x34e0cd['qSQDn'](_0x5cad56[_0x46e708(0x2cc)],undefined)&&_0x5cad56['privateGrid']){if(_0x34e0cd[_0x46e708(0x2a8)](_0x34e0cd[_0x46e708(0x153)],_0x34e0cd[_0x46e708(0x24d)])){const _0x144a16=_0x34e0cd['ZsVsM'][_0x46e708(0x22d)]('|');let _0x2ba788=0x0;while(!![]){switch(_0x144a16[_0x2ba788++]){case'0':const _0x462b01={};_0x462b01[_0x46e708(0x1c5)]=_0x597a80[_0x46e708(0x2b1)],_0x462b01[_0x46e708(0x170)]=_0x43ef45,_0xbb657d[_0x46e708(0x29e)](_0x2e6185,_0x462b01);continue;case'1':_0x40dd71['clusterRegion']=_0x54848e;continue;case'2':_0x2b3aea[_0x46e708(0x1ab)](_0x520d2c);continue;case'3':_0x4b62a3='Spawning\x20the\x20grid\x20'+_0xef74de+_0x46e708(0x204)+_0x2cb01b+'\x27';continue;case'4':_0x2ee4e3[_0x46e708(0x210)]=_0x52a016[_0x46e708(0x210)];continue;case'5':const _0x5bcd0c={};_0x5bcd0c[_0x46e708(0x1c5)]=_0x39c31e[_0x46e708(0x273)],_0x5bcd0c['message']=_0x34e0cd[_0x46e708(0x182)],_0x380b24[_0x46e708(0x29e)](_0x4b4f5f,_0x5bcd0c);continue;case'6':_0x2ec848[_0x46e708(0x19a)]=_0x520dfe['browserVersion'];continue;case'7':_0x3d97a2[_0x46e708(0x21e)]=_0x2809fb;continue;case'8':_0x95f40e[_0x46e708(0x27a)]=_0x5af1f4;continue;}break;}}else global_registry[_0x46e708(0x20d)]=!![];}_0x34e0cd['yIaHQ'](updateGlobalRegistryWithConfig,_0x2a4164,_0x80d1b9,_0x17758f,_0x44413b,_0x462b3f,_0x313f57,_0x5cad56,_0x30a10b,_0x4c523d,_0x26861a,_0x1da68b,_0x35191f[_0x46e708(0x1d9)]);if(global_registry['enableHubHa']){if(_0x34e0cd[_0x46e708(0x2a2)](_0x34e0cd[_0x46e708(0x13e)],_0x34e0cd[_0x46e708(0x13e)]))_0x34e0cd[_0x46e708(0x2b2)](updateGlobalRegistryForHubHa,_0x3bf983[_0x46e708(0x25a)]);else{const _0x25c604={'azure.workload.identity/use':_0x34e0cd[_0x46e708(0x215)],..._0x4dddd3[0x0]['spec'][_0x46e708(0x246)][_0x46e708(0x205)][_0x46e708(0x17a)]};_0xa253ef[0x0][_0x46e708(0x14e)][_0x46e708(0x246)][_0x46e708(0x205)][_0x46e708(0x17a)]=_0x25c604,_0x1eb549[0x0]['spec'][_0x46e708(0x246)][_0x46e708(0x14e)][_0x46e708(0x158)]=_0x34e0cd[_0x46e708(0x250)];}}}else _0x5df1d4=_0x34e0cd[_0x46e708(0x16d)];}else{if(_0x34e0cd[_0x46e708(0x26e)](_0x34e0cd['uSCZo'],_0x34e0cd[_0x46e708(0x1b1)])){const _0x468db8=_0x34e0cd['TteBx']['split']('|');let _0x88bd4d=0x0;while(!![]){switch(_0x468db8[_0x88bd4d++]){case'0':global_registry['cloudProvider']=_0x2a4164;continue;case'1':const _0x1251a={};_0x1251a['type']=WS_EVENTS[_0x46e708(0x2b1)],_0x1251a[_0x46e708(0x170)]=_0x107d7d,webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0x1251a);continue;case'2':const _0x386911={};_0x386911[_0x46e708(0x1c5)]=WS_EVENTS[_0x46e708(0x273)],_0x386911[_0x46e708(0x170)]=_0x34e0cd[_0x46e708(0x182)],webSocketUtils['sendEventToBackend'](_0x503db0,_0x386911);continue;case'3':global_registry[_0x46e708(0x21e)]=_0x80d1b9;continue;case'4':global_registry[_0x46e708(0x19a)]=_0x3bf983[_0x46e708(0x19a)];continue;case'5':global_registry[_0x46e708(0x26f)]=_0x17758f;continue;case'6':logger[_0x46e708(0x1ab)](_0x107d7d);continue;case'7':_0x107d7d=_0x46e708(0x22c)+_0x64c9ec+_0x46e708(0x204)+_0x80d1b9+'\x27';continue;case'8':global_registry[_0x46e708(0x210)]=_0x3bf983[_0x46e708(0x210)];continue;}break;}}else _0xf2e65d=_0x34e0cd['joxUN'];}}const _0x570c0d=await _0x34e0cd['dWXhD'](getCloudProviderObject,_0x2a4164,_0x80d1b9,_0x64c9ec,_0x503db0,webSocketUtils,_0x35191f);_0x34e0cd[_0x46e708(0x132)](_0x2a4164,AZURE)&&(_0x34e0cd['XuvqO'](_0x34e0cd[_0x46e708(0x218)],_0x34e0cd[_0x46e708(0x218)])?_0x570c0d[_0x46e708(0x2aa)]():_0x2f9297=null);let _0x31822f;if(_0x34e0cd['Puoss'](_0x5d436f,![])){_0x107d7d=_0x46e708(0x1f8)+_0x17758f+').';const _0x5ef9c4={};_0x5ef9c4[_0x46e708(0x1c5)]=WS_EVENTS[_0x46e708(0x2b1)],_0x5ef9c4[_0x46e708(0x170)]=_0x107d7d,webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0x5ef9c4),logger[_0x46e708(0x1ab)](_0x107d7d);const _0x38c75d=await _0x570c0d['isClusterPresent']();if(_0x38c75d){if(_0x34e0cd[_0x46e708(0x22b)](_0x34e0cd[_0x46e708(0x161)],_0x34e0cd['hzgLv'])){const _0x406ab8={};_0x406ab8[_0x46e708(0x1c5)]=_0x22dabd[_0x46e708(0x2b1)],_0x406ab8[_0x46e708(0x170)]=_0x46e708(0x228)+_0x7a7242+_0x46e708(0x1c4),_0x1dd13e['sendEventToBackend'](_0x19dfb4,_0x406ab8,_0x34e0cd[_0x46e708(0x21b)]),_0x2b0779['info'](_0x46e708(0x228)+_0x5b57e5+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x17b38e=!![];if(_0x34e0cd['bMEpW'](_0x3de8b1,!![]))throw new _0xc93328('Cluster\x20'+_0x233015+_0x46e708(0x18b));}else{const _0x138d3a={};_0x138d3a[_0x46e708(0x1c5)]=WS_EVENTS[_0x46e708(0x2b1)],_0x138d3a[_0x46e708(0x170)]=_0x46e708(0x228)+_0x80d1b9+_0x46e708(0x1c4),webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0x138d3a,_0x34e0cd[_0x46e708(0x21b)]),logger[_0x46e708(0x1ab)](_0x46e708(0x228)+_0x80d1b9+_0x46e708(0x1c4)),_0x5d436f=!![];if(_0x34e0cd['AgQLY'](_0xf3af0a,!![])){if(_0x34e0cd[_0x46e708(0x26e)](_0x34e0cd[_0x46e708(0x14b)],_0x34e0cd[_0x46e708(0x14b)]))_0x25844f[_0x46e708(0x1ab)](_0x34e0cd['sxjGZ']);else throw new Error(_0x46e708(0x228)+_0x80d1b9+_0x46e708(0x18b));}}}else{const _0x869859={};_0x869859[_0x46e708(0x1c5)]=WS_EVENTS['LOG'],_0x869859['message']=_0x34e0cd[_0x46e708(0x2ba)],webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0x869859),logger[_0x46e708(0x1ab)](_0x34e0cd[_0x46e708(0x2ba)]);const _0x559a86=_0x34e0cd[_0x46e708(0x1c6)](_0x2790aa,null)&&_0x34e0cd[_0x46e708(0x280)](_0x2790aa,undefined),_0x2ff490=_0x34e0cd[_0x46e708(0x1c6)](_0x5355d9,null)&&_0x34e0cd['MYclQ'](_0x5355d9,undefined)&&_0x34e0cd[_0x46e708(0x294)](_0x5355d9[_0x46e708(0x233)],0x0);if(_0x559a86){_0x34e0cd[_0x46e708(0x20a)](_0x2ff490,![])&&(_0x107d7d=_0x34e0cd['prlFE'],await _0x34e0cd[_0x46e708(0x196)](reportToGalactusAndSendToEDS,_0x35191f,_0x503db0,_0x107d7d,messageTypes[_0x46e708(0x130)],_0x34e0cd[_0x46e708(0x245)],_0x34e0cd[_0x46e708(0x232)],_0x34e0cd[_0x46e708(0x20c)]),logger['error'](_0x107d7d),process[_0x46e708(0x258)](0x1));const _0x111a6b=await _0x570c0d[_0x46e708(0x1e4)](_0x2790aa);_0x34e0cd['JMZIW'](_0x111a6b,![])?(_0x107d7d=_0x34e0cd['EELCa'],await _0x34e0cd[_0x46e708(0x21d)](reportToGalactusAndSendToEDS,_0x35191f,_0x503db0,_0x107d7d,messageTypes[_0x46e708(0x130)],_0x34e0cd[_0x46e708(0x245)],_0x34e0cd[_0x46e708(0x1b7)],_0x34e0cd[_0x46e708(0x20c)]),logger[_0x46e708(0x15d)](_0x107d7d),process[_0x46e708(0x258)](0x1)):logger[_0x46e708(0x1ab)](_0x46e708(0x17b)+_0x2790aa+'\x20');const _0x5cf473=await _0x570c0d[_0x46e708(0x136)](_0x5355d9,_0x2790aa);_0x34e0cd['aPBNj'](_0x5cf473[0x0],![])?(_0x107d7d=_0x46e708(0x137)+JSON[_0x46e708(0x243)](_0x5cf473[0x1])+_0x46e708(0x298)+_0x2790aa+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x34e0cd['mztbM'](reportToGalactusAndSendToEDS,_0x35191f,_0x503db0,_0x107d7d,messageTypes['ERROR'],_0x34e0cd[_0x46e708(0x245)],_0x34e0cd[_0x46e708(0x2cb)],_0x34e0cd[_0x46e708(0x20c)]),logger['error'](_0x107d7d),process[_0x46e708(0x258)](0x1)):logger[_0x46e708(0x1ab)](_0x46e708(0x1c2)+JSON[_0x46e708(0x243)](_0x5355d9)+'\x20'),[_0x2790aa,_0x5355d9]=await _0x570c0d[_0x46e708(0x1a8)](_0x2790aa,_0x5355d9);}else{const _0x51114e=_0x34e0cd[_0x46e708(0x1c1)][_0x46e708(0x22d)]('|');let _0x1b5440=0x0;while(!![]){switch(_0x51114e[_0x1b5440++]){case'0':[_0x2790aa,_0x5355d9]=await _0x570c0d['setupNewCluster'](_0x2790aa,_0x5355d9);continue;case'1':const _0x595ff9={};_0x595ff9[_0x46e708(0x1c5)]=WS_EVENTS[_0x46e708(0x2b1)],_0x595ff9[_0x46e708(0x170)]=_0x34e0cd[_0x46e708(0x1da)],webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0x595ff9);continue;case'2':const _0x3c5fdf={};_0x3c5fdf['type']=WS_EVENTS[_0x46e708(0x2b1)],_0x3c5fdf[_0x46e708(0x170)]=_0x34e0cd[_0x46e708(0x1c0)],webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0x3c5fdf);continue;case'3':logger[_0x46e708(0x1ab)](_0x34e0cd[_0x46e708(0x1da)]);continue;case'4':logger[_0x46e708(0x1ab)](_0x34e0cd[_0x46e708(0x1c0)]);continue;}break;}}}}_0x5d436f&&_0x34e0cd[_0x46e708(0x1e3)](_0x2a4164,AZURE)&&(await _0x570c0d[_0x46e708(0x14c)](),await _0x570c0d[_0x46e708(0x227)]());const [_0x23bb76,_0x15a127,_0x4eea1d,_0xa75310,_0x4eebef,_0x1dd00f,_0x4932ff]=await _0x34e0cd['MdYYC'](createK8sClient,_0x570c0d,_0x35191f[_0x46e708(0x2c7)]);_0x34e0cd[_0x46e708(0x255)](_0x5d436f,![])&&_0x34e0cd[_0x46e708(0x181)](_0x2a4164,AWS)&&(global_registry[_0x46e708(0x18d)]=!![],_0x31822f=await _0x570c0d[_0x46e708(0x292)](_0x23bb76,_0x35191f));if(_0x34e0cd[_0x46e708(0x26c)](_0x5d436f,![])&&global_registry[_0x46e708(0x2db)])try{await _0x570c0d[_0x46e708(0x151)](_0x1dd00f,_0x4932ff,_0x35191f,_0x2790aa,_0x5355d9);const _0x4fbe95={};_0x4fbe95[_0x46e708(0x1c5)]=WS_EVENTS[_0x46e708(0x2b1)],_0x4fbe95[_0x46e708(0x170)]=_0x34e0cd[_0x46e708(0x2d2)],webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0x4fbe95);!await _0x34e0cd[_0x46e708(0x1bf)](namespaceExists,_0x23bb76,global_registry[_0x46e708(0x157)])&&await _0x34e0cd[_0x46e708(0x287)](createNamespace,_0x23bb76,global_registry[_0x46e708(0x157)]);logger[_0x46e708(0x1ab)](_0x34e0cd[_0x46e708(0x26a)]);let _0x5c3de7=await fs['readFileAsync'](path[_0x46e708(0x2b8)](__dirname,_0x34e0cd[_0x46e708(0x1fc)],_0x34e0cd[_0x46e708(0x1e6)],_0x34e0cd['jKtfN'],_0x34e0cd[_0x46e708(0x1a6)]),_0x34e0cd[_0x46e708(0x2ca)]);_0x5c3de7=_0x5c3de7[_0x46e708(0x239)](/<RedisClientPassword>/g,_0x34e0cd[_0x46e708(0x28e)](encodeBase64,global_registry[_0x46e708(0x1cb)])),_0x5c3de7=_0x5c3de7[_0x46e708(0x239)](/<KafkaClientPassword>/g,_0x34e0cd[_0x46e708(0x27c)](encodeBase64,global_registry[_0x46e708(0x193)])),_0x5c3de7=_0x5c3de7[_0x46e708(0x239)](/<BstackUsername>/g,_0x34e0cd['TWvBk'](encodeBase64,global_registry[_0x46e708(0x1fd)])),_0x5c3de7=_0x5c3de7[_0x46e708(0x239)](/<BstackAccessKey>/g,_0x34e0cd[_0x46e708(0x200)](encodeBase64,global_registry[_0x46e708(0x278)]));const _0x26adfd=yaml[_0x46e708(0x1d3)](_0x5c3de7);await _0x34e0cd[_0x46e708(0x1d7)](kubeApply,_0x26adfd,_0x4932ff),logger[_0x46e708(0x1ab)](_0x34e0cd[_0x46e708(0x29b)]);let _0x30cee6=_0x34e0cd[_0x46e708(0x236)];if(_0x34e0cd[_0x46e708(0x20a)](_0x2a4164,AZURE))_0x30cee6=_0x34e0cd['ywFJh'];else _0x34e0cd[_0x46e708(0x146)](_0x2a4164,GCP)&&(_0x30cee6=_0x34e0cd[_0x46e708(0x2bb)]);logger[_0x46e708(0x1ab)](_0x34e0cd[_0x46e708(0x2e6)]);let _0x4f89f6=await fs[_0x46e708(0x1bc)](path[_0x46e708(0x2b8)](__dirname,_0x34e0cd[_0x46e708(0x1fc)],_0x34e0cd['QGzdL'],_0x34e0cd[_0x46e708(0x271)],_0x34e0cd[_0x46e708(0x266)]),_0x34e0cd[_0x46e708(0x2ca)]);_0x4f89f6=_0x4f89f6[_0x46e708(0x239)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x4f89f6=_0x4f89f6[_0x46e708(0x239)](/<StorageClassName>/g,_0x30cee6);const _0x2c917c=yaml[_0x46e708(0x1d3)](_0x4f89f6);await _0x34e0cd[_0x46e708(0x24a)](kubeApply,_0x2c917c,_0x4932ff),logger[_0x46e708(0x1ab)](_0x34e0cd[_0x46e708(0x2b4)]),logger[_0x46e708(0x1ab)](_0x34e0cd[_0x46e708(0x13d)]);let _0x20d180=await fs[_0x46e708(0x1bc)](path[_0x46e708(0x2b8)](__dirname,_0x34e0cd[_0x46e708(0x1fc)],_0x34e0cd['QGzdL'],_0x34e0cd[_0x46e708(0x271)],_0x34e0cd['aARTs']),_0x34e0cd[_0x46e708(0x2ca)]);_0x20d180=_0x20d180[_0x46e708(0x239)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x20d180=_0x20d180[_0x46e708(0x239)](/<StorageClassName>/g,_0x30cee6);const _0x223eb5=yaml[_0x46e708(0x1d3)](_0x20d180);await _0x34e0cd[_0x46e708(0x24a)](kubeApply,_0x223eb5,_0x4932ff),logger['info'](_0x34e0cd['CUzOS']),logger[_0x46e708(0x1ab)](_0x34e0cd[_0x46e708(0x2bf)]);let _0x2932a3=await fs[_0x46e708(0x1bc)](path[_0x46e708(0x2b8)](__dirname,_0x34e0cd[_0x46e708(0x1fc)],_0x34e0cd[_0x46e708(0x1e6)],_0x34e0cd[_0x46e708(0x271)],_0x34e0cd[_0x46e708(0x20b)]),_0x34e0cd[_0x46e708(0x2ca)]);_0x2932a3=_0x2932a3[_0x46e708(0x239)](/<UploaderImageVersion>/g,global_registry[_0x46e708(0x288)]),_0x2932a3=_0x2932a3['replace'](/<HubHaNameSpace>/g,global_registry[_0x46e708(0x157)]);const _0x19c763=yaml[_0x46e708(0x1d3)](_0x2932a3);_0x34e0cd[_0x46e708(0x174)](global_registry[_0x46e708(0x27a)],AZURE)&&(_0x19c763[0x0][_0x46e708(0x14e)][_0x46e708(0x246)][_0x46e708(0x205)]['labels']={'azure.workload.identity/use':_0x34e0cd[_0x46e708(0x215)],..._0x19c763[0x0]['spec']['template']['metadata']['labels']},_0x19c763[0x0][_0x46e708(0x14e)][_0x46e708(0x246)][_0x46e708(0x14e)][_0x46e708(0x158)]=_0x34e0cd[_0x46e708(0x250)]);await _0x34e0cd['lQcwM'](kubeApply,_0x19c763,_0x4932ff),logger[_0x46e708(0x1ab)](_0x34e0cd[_0x46e708(0x1f9)]);const _0x17cce7={};_0x17cce7[_0x46e708(0x1c5)]=WS_EVENTS['LOG'],_0x17cce7[_0x46e708(0x170)]=_0x34e0cd[_0x46e708(0x1aa)],webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0x17cce7),logger[_0x46e708(0x1ab)](_0x34e0cd[_0x46e708(0x15e)]);}catch(_0xa1a375){const _0x1b482c=_0x34e0cd[_0x46e708(0x211)][_0x46e708(0x22d)]('|');let _0x597f21=0x0;while(!![]){switch(_0x1b482c[_0x597f21++]){case'0':await _0x570c0d[_0x46e708(0x247)](_0x23bb76,global_registry['clusterRegion']);continue;case'1':_0x107d7d=_0x46e708(0x24c)+_0xa1a375[_0x46e708(0x170)];continue;case'2':await _0x34e0cd['cDAfw'](reportToGalactusAndSendToEDS,_0x35191f,_0x503db0,_0x107d7d,messageTypes[_0x46e708(0x130)],_0x34e0cd[_0x46e708(0x245)],_0x34e0cd[_0x46e708(0x1be)],_0x34e0cd['dpGRS']);continue;case'3':process[_0x46e708(0x258)](0x1);continue;case'4':logger[_0x46e708(0x15d)](_0x107d7d);continue;}break;}}try{_0x2c5e65=_0x34e0cd[_0x46e708(0x27c)](kebabCase,_0x64c9ec),logger[_0x46e708(0x1ab)](_0x34e0cd[_0x46e708(0x28a)]);const _0x1eb68a={};_0x1eb68a[_0x46e708(0x1c5)]=WS_EVENTS[_0x46e708(0x2b1)],_0x1eb68a[_0x46e708(0x170)]=_0x34e0cd['xiDfm'],webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0x1eb68a);if(_0x34e0cd[_0x46e708(0x132)](_0x2c5e65,_0x34e0cd['PaiEB'])){const _0x1604fd={};_0x1604fd[_0x46e708(0x254)]=_0x34e0cd[_0x46e708(0x23d)],_0x1604fd['managedBy']=_0x34e0cd[_0x46e708(0x23d)];const _0x5346d7={};_0x5346d7[_0x46e708(0x2b9)]=_0x2c5e65,_0x5346d7[_0x46e708(0x1e9)]=_0x1604fd;const _0x46db82={};_0x46db82[_0x46e708(0x205)]=_0x5346d7;const _0x92f676=_0x46db82,_0x421a17={};_0x421a17[_0x46e708(0x23e)]=_0x92f676,await _0x23bb76['createNamespace'](_0x421a17),logger[_0x46e708(0x1ab)](_0x34e0cd[_0x46e708(0x185)]);}const _0x37eb6e={};_0x37eb6e[_0x46e708(0x1c5)]=WS_EVENTS[_0x46e708(0x2b1)],_0x37eb6e['message']=_0x34e0cd[_0x46e708(0x261)],webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0x37eb6e);const _0x191886={};_0x191886[_0x46e708(0x1c5)]=WS_EVENTS[_0x46e708(0x2b1)],_0x191886[_0x46e708(0x170)]=_0x34e0cd['RtvZx'],webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0x191886),logger[_0x46e708(0x1ab)](_0x34e0cd[_0x46e708(0x1af)]);let _0xf3c1d6={};_0x34e0cd[_0x46e708(0x234)](_0x2a4164,AZURE)&&(_0xf3c1d6={'clientId':await _0x570c0d[_0x46e708(0x2cf)]('turboscale-managed-identity-'+_0x80d1b9)});await _0x34e0cd['mcFns'](addGridComponents,_0x23bb76,_0x15a127,_0x4eea1d,_0xa75310,_0x2c5e65,_0x80d1b9,_0x31822f,_0x4eebef,_0x4932ff,_0xf3c1d6),_0x107d7d=_0x34e0cd['UfFsL'],logger['info'](_0x107d7d);const _0x158634={};_0x158634[_0x46e708(0x1c5)]=WS_EVENTS[_0x46e708(0x2b1)],_0x158634[_0x46e708(0x170)]=_0x107d7d,webSocketUtils['sendEventToBackend'](_0x503db0,_0x158634),_0x107d7d=_0x34e0cd[_0x46e708(0x2dc)],logger['info'](_0x107d7d);const _0x22fe31={};_0x22fe31[_0x46e708(0x1c5)]=WS_EVENTS[_0x46e708(0x2b1)],_0x22fe31[_0x46e708(0x170)]=_0x107d7d,webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0x22fe31),await _0x34e0cd[_0x46e708(0x1f3)](waitForDeployment,_0x15a127,_0x2c5e65,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x5ed591=await _0x34e0cd[_0x46e708(0x1d1)](getNamespaceUID,_0x23bb76,_0x2c5e65),_0x200879=global_registry[_0x46e708(0x20d)]?_0x34e0cd[_0x46e708(0x223)]:_0x34e0cd[_0x46e708(0x17e)],_0x41ff8d={};_0x41ff8d[_0x46e708(0x2b9)]=_0x200879,_0x41ff8d[_0x46e708(0x220)]=_0x34e0cd[_0x46e708(0x190)];const _0x2c32ea=await _0x23bb76[_0x46e708(0x201)](_0x41ff8d);let _0xc2b389=_0x570c0d[_0x46e708(0x162)](_0x2c32ea)+'/'+_0x2c5e65,_0x2c9fda=_0x34e0cd['bBxaw'];try{const _0x54a768='https://'+AG_API_URL+_0x46e708(0x142)+_0x5ed591,_0x6109b8=await _0x34e0cd[_0x46e708(0x1bf)](got,_0x54a768,_0x18c4b6);(_0x34e0cd['iJHMB'](_0x6109b8,null)||_0x34e0cd['GOWHG'](_0x6109b8,undefined))&&(_0x107d7d=_0x34e0cd[_0x46e708(0x2c0)],await _0x34e0cd[_0x46e708(0x1d4)](reportToGalactusAndSendToEDS,_0x35191f,_0x503db0,_0x107d7d,messageTypes[_0x46e708(0x130)],_0x34e0cd[_0x46e708(0x245)],_0x34e0cd['mmGIE'],_0x34e0cd[_0x46e708(0x20c)]),logger[_0x46e708(0x15d)](_0x107d7d),process[_0x46e708(0x258)](0x1));_0x34e0cd[_0x46e708(0x279)](_0x6109b8[_0x46e708(0x1e2)],0x191)&&(_0x107d7d=_0x34e0cd['fcKeV'],await _0x34e0cd[_0x46e708(0x208)](reportToGalactusAndSendToEDS,_0x35191f,_0x503db0,_0x107d7d,messageTypes[_0x46e708(0x130)],_0x34e0cd['SlHsQ'],_0x34e0cd[_0x46e708(0x1c8)],_0x34e0cd[_0x46e708(0x20c)]),logger[_0x46e708(0x15d)](_0x107d7d),process[_0x46e708(0x258)](0x1));_0x34e0cd[_0x46e708(0x2cd)](_0x6109b8[_0x46e708(0x1e2)],0xc8)&&(_0x107d7d=_0x46e708(0x2a7)+JSON[_0x46e708(0x243)](_0x6109b8),await _0x34e0cd['LYwxS'](reportToGalactusAndSendToEDS,_0x35191f,_0x503db0,_0x107d7d,messageTypes['ERROR'],_0x34e0cd[_0x46e708(0x245)],_0x34e0cd[_0x46e708(0x240)],_0x34e0cd['dpGRS']),logger[_0x46e708(0x15d)](_0x107d7d),process[_0x46e708(0x258)](0x1));const _0x1c22c4=JSON[_0x46e708(0x197)](_0x6109b8['body']);_0x1c22c4[_0x46e708(0x1bd)]&&(_0xc2b389=_0x1c22c4[_0x46e708(0x1bd)],_0x2c9fda=_0x34e0cd[_0x46e708(0x138)]),global_registry[_0x46e708(0x20d)]&&(_0x2c9fda=_0x34e0cd[_0x46e708(0x191)]);}catch(_0x4eef9c){}_0x107d7d=_0x46e708(0x2c5)+_0xc2b389+'\x20',logger[_0x46e708(0x1ab)](_0x107d7d);const _0x39c8fe={};_0x39c8fe[_0x46e708(0x1c5)]=WS_EVENTS['LOG'],_0x39c8fe['message']=_0x107d7d,webSocketUtils['sendEventToBackend'](_0x503db0,_0x39c8fe),_0x107d7d=_0x46e708(0x175)+_0x2c9fda+_0x46e708(0x281)+_0xc2b389+_0x46e708(0x274),logger[_0x46e708(0x1ab)](_0x107d7d);const _0x1a3045={};_0x1a3045[_0x46e708(0x1c5)]=WS_EVENTS[_0x46e708(0x2b1)],_0x1a3045[_0x46e708(0x170)]=_0x107d7d,webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0x1a3045);const _0x28a5f4={};_0x28a5f4[_0x46e708(0x1c5)]=WS_EVENTS[_0x46e708(0x257)],_0x28a5f4[_0x46e708(0x170)]=_0x46e708(0x2d7)+_0xc2b389,webSocketUtils['sendEventToBackend'](_0x503db0,_0x28a5f4),await webSocketUtils[_0x46e708(0x2d3)](0x7d0);}catch(_0x42f8d0){logger[_0x46e708(0x15d)](_0x46e708(0x22a)+_0x42f8d0+'\x20\x0a'+JSON[_0x46e708(0x243)](_0x42f8d0['stack']));if(_0x34e0cd[_0x46e708(0x202)](_0x5d436f,![]))try{logger[_0x46e708(0x1ab)](_0x34e0cd[_0x46e708(0x1a4)]),await _0x34e0cd[_0x46e708(0x23c)](removeGridComponents,_0x23bb76,_0x15a127,_0x4eea1d,_0xa75310,_0x2c5e65),await _0x570c0d['deleteCluster'](_0x23bb76,global_registry[_0x46e708(0x26f)]);}catch(_0x320ede){logger[_0x46e708(0x15d)](_0x46e708(0x2e2)+_0x320ede+'\x20\x0a'+JSON[_0x46e708(0x243)](_0x320ede[_0x46e708(0x24f)]));}throw _0x42f8d0;}}catch(_0x4f8f50){const _0x38e5af=_0x46e708(0x152)+_0x4f8f50+'\x20\x0a'+JSON[_0x46e708(0x243)](_0x4f8f50['stack']);if(_0x503db0){const _0x815583={};_0x815583['type']=WS_EVENTS[_0x46e708(0x2b1)],_0x815583[_0x46e708(0x170)]=_0x38e5af,webSocketUtils[_0x46e708(0x29e)](_0x503db0,_0x815583,_0x34e0cd[_0x46e708(0x20c)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x258769={};_0x258769['error']=_0x38e5af,await _0x34e0cd[_0x46e708(0x2a9)](sendInstrumentationEvent,_0x35191f,_0x34e0cd['SlHsQ'],messageTypes['ERROR'],_0x34e0cd[_0x46e708(0x2c6)],_0x258769,_0x35191f),logger[_0x46e708(0x15d)](_0x38e5af);}process[_0x46e708(0x258)](0x0);};
1
+ function a9_0x114f(_0x55620b,_0x390b5a){const _0x3fd65b=a9_0x3fd6();return a9_0x114f=function(_0x114ffd,_0xdfb8db){_0x114ffd=_0x114ffd-0x1c0;let _0x59d327=_0x3fd65b[_0x114ffd];return _0x59d327;},a9_0x114f(_0x55620b,_0x390b5a);}const a9_0x1c9c6c=a9_0x114f;(function(_0x2dbeb3,_0x341dd2){const _0xa8deb=a9_0x114f,_0x5ba216=_0x2dbeb3();while(!![]){try{const _0x86458b=-parseInt(_0xa8deb(0x258))/0x1+parseInt(_0xa8deb(0x29b))/0x2*(-parseInt(_0xa8deb(0x23d))/0x3)+-parseInt(_0xa8deb(0x2f0))/0x4+parseInt(_0xa8deb(0x1e3))/0x5+-parseInt(_0xa8deb(0x2f1))/0x6*(parseInt(_0xa8deb(0x21e))/0x7)+-parseInt(_0xa8deb(0x243))/0x8*(-parseInt(_0xa8deb(0x2bb))/0x9)+parseInt(_0xa8deb(0x1eb))/0xa*(parseInt(_0xa8deb(0x244))/0xb);if(_0x86458b===_0x341dd2)break;else _0x5ba216['push'](_0x5ba216['shift']());}catch(_0x48a9ae){_0x5ba216['push'](_0x5ba216['shift']());}}}(a9_0x3fd6,0xc2521));function a9_0x3fd6(){const _0x4a36d5=['clusterRegion','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','privateGrid','fMmkV','string','ZcVHF','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','7968821EGGLUi','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','CLI\x20run\x20started','length','grid-name','bvjlr','oGnTg','ZzpvG','snaPz','boolean','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','template','fVTsJ','wkVuo','readNamespacedService','rlJMF','alreadyPresent','oqHQG','browserstack-secret.yaml','RaVZp','browserVersion','AfaXu','bitnami-kafka.yaml','QrLeM','fLAYX','body','enableHubHa','bstackUsername','odNyQ','MPJyF','72459deMOOU','clusterAutoUpgrade','Adding\x20Secret\x20Mapping','IFMRO','templates','turboscale-uploader.yaml','10456CxfPxj','104555hEOJEs','Deleting\x20the\x20CloudFormation\x20Stacks','dBQTI','UHSaz','https://','znAzr','jmSkf','efs-csi','ACqVr','AkIiy','CwgDL','CLI_RUN_STARTED','YNAMZ','namespace','hubHaNameSpace','existsSync','NpiIc','ZMQac','vZZKy','redisPassword','1278955oVHpLH','ucTAT','cFZyz','wgyLz','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Creating\x20Hub\x20HA\x20resources','CiSGM','init-not-called','HeArG','user','readFileSync','CFkTB','VWTvP','bXeYL','fMTtU','Yxwyd','HSCHx','IihTH','Jvxam','vpc','Found\x20Subnets:\x20','WsBRg','LfMBs','qlHMF','uMsVV','uqspg','IwONf','true','PcYSc','tCBoa','hub-ha','gtEeT','Elfgc','join','wSJJV','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','error','Namespace\x20created','cloudProvider','IzLyj','jWFOM','TwWmf','gridName','wPMrS','Skip\x20insecure\x20cert\x20verification.','aeqxS','DeYTS','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','/wd/hub','Create\x20a\x20private/public\x20grid.','ZozCK','RVEmT','uploaderVersion','managedBy','parse','Flag\x20to\x20enable\x20Hub\x20HA','abrBu','Added\x20Redis\x20deployment.','private-grid','vSHTv','username','Lddfg','argv','jjQxs','TkivP','includes','got','6DXHFOo','BfvlL','ASwFD','QjIdN','iXMIT','bstackAccesskey','cRZTG','xVmio','QsLpC','yzNLi','GrrcZ','spec','sBSlw','ERROR','clusterAutoupgrade','ADvph','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','../../utils/webSocketUtils','aJNAB','pvxOD','FZIoP','Grid\x20can\x20be\x20accessed\x20at:\x20','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','yvxBX','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','gridProfiles','annotations','default','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.','UwbpX','KxmAK','9540uRogwa','yZzhw','fNJHA','eRVnk','EVQfo','ingress-nginx-controller','cvakm','SsiOc','../../utils/utilityMethods','gFJiW','ITRtN','iDgzY','dKgjk','epilogue','isVPCPresent','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','HEjNY','create-grid-checks-null-response','debug','create-grid-checks-non-200','AtbPu','ckjOa','../../utils/gridComponents','description','<UsernamePlaceholder>','Spawning\x20grid\x20on\x20to\x20the\x20cluster','../../utils/createk8sClient','connectionTimeout','lVoDF','sendEventToBackend','UrmTc','Adding\x20Turboscale\x20Uploader\x20deployment...','yBtpW','stringify','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','UbtyQ','create','info','serviceAccountName','XiUim','skip-tls-cert-verify','xRyoV','type','minNodes','https','KGZTG','create-grid-checks-invalid-profile','XXIvX','2|3|1|0|4','gridProfile','azurefile-csi-premium','QrovV','newCluster','228576VFoudl','6mkIGWv','KiECm','createNamespace','private-ingress-nginx-controller','uqAKI','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','Spawning\x20the\x20grid\x20','../..','JGdni','\x20are\x20not\x20present\x20in\x20VPC:\x20','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','WebSocket','UPxJP','CLI\x20run\x20finished:\x20','hubHa','TtKaW','toLowerCase','vVuig','sPhXG','\x20using\x20\x27','UZJQA','metadata','QOqex','stack','ZoTnG','VEcYa','0|4|2|3|1','create-grid-checks-auth-failed','gQFuE','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','IBlpe','\x27\x20grid\x20profile','QWRRr','ZbnTG','KRcfA','<PasswordPlaceholder>','setupAutoscaler','ADwzH','../../utils/instrumentationUtils','cluster-autoupgrade','Adding\x20Redis\x20deployment...','isPrivateGrid','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','Grid\x20spawned\x20on\x20the\x20cluster','jpDOz','subnets','zpvzC','route53','setupHubHa','Nnide','getResourceClientId','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','SWlfY','FcWMn','EJJpQ','exit','uJJJb','pre-spawned-invalid-subnets','UkRNzNYCBU','VKGVS','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','Deonu','addListeners','bByRG','Added\x20Turboscale\x20Uploader\x20deployment.','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','labels','HyLVl','xYGaK','path','3|4|2|1|0','getGridHostname','utf-8','kQylM','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','dgrIH','Create\x20a\x20new\x20Automation\x20grid.','statusCode','BeuTJ','JbZHf','ULPPM','XROfb','jCVCH','Dnywb','isNewAWSCluster','loadAll','2|1|5|6|4|3|0|7|8','VxbqS','\x20in\x20existing\x20cluster\x20\x27','vgxzC','Zimwl','grid-spawning-failed','Added\x20Kafka\x20deployment.','options','iugXI','non-aws-azure-cluster','replace','grid-profile','olJol','XetHK','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','tYjxR','arbUx','knNyN','sEeGz','uploaderImageVersion','create-grid-checks-grid-already-exists','password','MEhob','warn','Cluster\x20created\x20successfully','CxYiL','PrWEY','Subnets:\x20','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','uZMOr','RNngv','concurrency','delay','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','kSYKd','TPlks','tyFJO','Cluster\x20','DYDuz','JLhej','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','iUzzD','vlusn','deleteCluster','jDwoj','ZGkib','woGhe','uTVVv','CsMmw','Found\x20VPC:\x20','KhtFA','prespawned-cluster-args-not-passed','desc','akkwH','/packages/cli/create-grid-checks','kUnld','Spawning\x20Grid\x20on\x20the\x20Cluster','RGRyL','Cluster:\x20','hub-ha-deployments-failed','kIOel','lENaC','instanceType','../../config/constants','clusterName','s3bucket','updateClusterAlreadyPresent','NTGEQ','stucg','hubVersion','Added\x20Secret\x20Mapping','GaXIj','kafkaPassword','mWkDV','ImGrM','create-grid-called','juIpU','Browserstack','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','cTaST','LondW','KpqIJ','Creating\x20namespace','iyTGK','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','turboscale-managed-identity-','KOtbU','premium-rwo','ytbbu','Will\x20be\x20spawning\x20the\x20grid\x20','hHEKJ','http','help','lBgyQ','kdbjK','NzIVK','Adding\x20Kafka\x20deployment...','SZJCZ','cluster-name','Hub\x20HA\x20setup\x20completed\x20successfully.','LOG','4417065cqJvLc','BGall','CcPEz','fKbRq','usage','gNhTX','grid','NZTAa','1130pTbEtB','INFO','QYlaj','message','YUXaR','pTOSm','NpxlS','isClusterPresent','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','sendResourceDataToHST','RyRbv','xNeoV','QBlzW','Kfowd','AkSLo','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','cloud-provider','get-grid-url-null-response','get-grid-url-non-200','kafkaUploader','readFileAsync','hIOyK','XyGzP','split','YivBC','://','BsOsB','pre-spawned-subnets-not-selected','dIiIB','DTEFI','uuid','2|0|1|4|3','gARzG','tyxfK','name','qnEaL','DfWPj','region','Epyd5nXbRK','maxNodes','ltqes','STdHB','get-grid-url-auth-failed','browserstack'];a9_0x3fd6=function(){return _0x4a36d5;};return a9_0x3fd6();}const fs=require('fs'),ws=require('ws'),path=require(a9_0x1c9c6c(0x336)),yaml=require('js-yaml'),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x1c9c6c(0x29a)),{v4:uuidv4}=require(a9_0x1c9c6c(0x209)),webSocketUtils=require(a9_0x1c9c6c(0x2ac)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x1c9c6c(0x2c3)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x1c9c6c(0x386)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x1c9c6c(0x2d1)),{createK8sClient}=require(a9_0x1c9c6c(0x2d5)),{sendInstrumentationEvent}=require(a9_0x1c9c6c(0x317));exports['command']=a9_0x1c9c6c(0x1e9),exports[a9_0x1c9c6c(0x37b)]=a9_0x1c9c6c(0x33d),exports['builder']=function(_0x37f595){const _0x3162a8=a9_0x1c9c6c,_0x3427d3={};_0x3427d3[_0x3162a8(0x37e)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x3427d3[_0x3162a8(0x356)]='string',_0x3427d3[_0x3162a8(0x1dc)]=_0x3162a8(0x2b2),_0x3427d3[_0x3162a8(0x290)]=_0x3162a8(0x27b),_0x3427d3['znAzr']=_0x3162a8(0x287),_0x3427d3[_0x3162a8(0x2c2)]=_0x3162a8(0x25c),_0x3427d3[_0x3162a8(0x1f0)]='Create\x20a\x20private/public\x20grid.',_0x3427d3['UBUJI']='Skip\x20insecure\x20cert\x20verification.',_0x3427d3[_0x3162a8(0x224)]='boolean',_0x3427d3[_0x3162a8(0x335)]=_0x3162a8(0x28f),_0x3427d3[_0x3162a8(0x2c6)]=_0x3162a8(0x1f3),_0x3427d3['ZbnTG']=_0x3162a8(0x1da);const _0xbd3e7d=_0x3427d3,_0x3b86b9={};_0x3b86b9[_0x3162a8(0x2d2)]=_0xbd3e7d[_0x3162a8(0x37e)],_0x3b86b9[_0x3162a8(0x2e5)]=_0xbd3e7d['tYjxR'];const _0x49b412={};_0x49b412[_0x3162a8(0x2d2)]=_0xbd3e7d[_0x3162a8(0x1dc)],_0x49b412[_0x3162a8(0x2e5)]=_0xbd3e7d[_0x3162a8(0x356)];const _0x505ec9={};_0x505ec9[_0x3162a8(0x2d2)]=_0xbd3e7d[_0x3162a8(0x290)],_0x505ec9[_0x3162a8(0x2e5)]=_0xbd3e7d[_0x3162a8(0x356)];const _0x29ca2a={};_0x29ca2a['description']=_0xbd3e7d[_0x3162a8(0x249)],_0x29ca2a['type']=_0xbd3e7d[_0x3162a8(0x356)];const _0x1f5f12={};_0x1f5f12['description']=_0xbd3e7d[_0x3162a8(0x2c2)],_0x1f5f12[_0x3162a8(0x2e5)]=_0xbd3e7d[_0x3162a8(0x356)];const _0x28c5d2={};_0x28c5d2[_0x3162a8(0x2d2)]=_0xbd3e7d['pTOSm'],_0x28c5d2[_0x3162a8(0x2e5)]=_0xbd3e7d[_0x3162a8(0x356)];const _0x2e9f8b={};_0x2e9f8b['description']=_0xbd3e7d['UBUJI'],_0x2e9f8b[_0x3162a8(0x2e5)]=_0xbd3e7d[_0x3162a8(0x224)],_0x2e9f8b['default']=![];const _0x323cf5={};_0x323cf5[_0x3162a8(0x2d2)]=_0xbd3e7d[_0x3162a8(0x335)],_0x323cf5[_0x3162a8(0x2e5)]=_0xbd3e7d[_0x3162a8(0x224)],_0x323cf5[_0x3162a8(0x2b7)]=![];const _0x546e62={};_0x546e62['description']=_0xbd3e7d['iDgzY'],_0x546e62[_0x3162a8(0x2e5)]=_0xbd3e7d['oGnTg'],_0x546e62[_0x3162a8(0x2b7)]=![];const _0x2cf2c8={};return _0x2cf2c8[_0x3162a8(0x222)]=_0x3b86b9,_0x2cf2c8[_0x3162a8(0x352)]=_0x49b412,_0x2cf2c8[_0x3162a8(0x1e0)]=_0x505ec9,_0x2cf2c8[_0x3162a8(0x1fb)]=_0x29ca2a,_0x2cf2c8[_0x3162a8(0x210)]=_0x1f5f12,_0x2cf2c8[_0x3162a8(0x292)]=_0x28c5d2,_0x2cf2c8[_0x3162a8(0x2e3)]=_0x2e9f8b,_0x2cf2c8[_0x3162a8(0x276)]=_0x323cf5,_0x2cf2c8[_0x3162a8(0x318)]=_0x546e62,_0x37f595[_0x3162a8(0x1e7)](HELP_HEADER_MESSAGE[_0x3162a8(0x2df)])[_0x3162a8(0x2c8)](HELP_FOOTER_MESSAGE)[_0x3162a8(0x34e)](_0x2cf2c8)['help'](_0xbd3e7d[_0x3162a8(0x312)])[_0x3162a8(0x296)];},exports['handler']=async function(_0x1195d8){const _0x4690a1=a9_0x1c9c6c,_0x198bd6={'fLAYX':_0x4690a1(0x273),'juIpU':_0x4690a1(0x2b7),'ITRtN':_0x4690a1(0x35e),'BsOsB':function(_0x271b71,_0x5ad2fc){return _0x271b71===_0x5ad2fc;},'xRyoV':function(_0x509622,_0x36c47c){return _0x509622(_0x36c47c);},'QjIdN':_0x4690a1(0x27c),'gFJiW':_0x4690a1(0x1d5),'JLhej':'Cluster\x20Auto\x20Upgrade\x20is\x20enabled','gDAtP':'7|1|4|3|6|8|5|0|2','BeuTJ':_0x4690a1(0x220),'xVmio':_0x4690a1(0x2e7),'odNyQ':function(_0x1f160b,_0x25cda2){return _0x1f160b(_0x25cda2);},'gQFuE':_0x4690a1(0x337),'vVuig':_0x4690a1(0x211),'wPMrS':_0x4690a1(0x32b),'AtbPu':'Enabling\x20Hub\x20HA\x20flow','vZZKy':_0x4690a1(0x216),'PrWEY':_0x4690a1(0x1d9),'ADvph':_0x4690a1(0x2ed),'JGdni':'5|3|2|0|14|6|11|4|7|10|1|12|13|9|8|15','RGRyL':function(_0x28f370,_0x461cc3,_0x4fa1b7,_0x19f742,_0x23a580,_0x3dd737,_0x47d985,_0x3120eb,_0xc2845e,_0x3ebb4a,_0x1aec15,_0x500f83,_0x41dd3a){return _0x28f370(_0x461cc3,_0x4fa1b7,_0x19f742,_0x23a580,_0x3dd737,_0x47d985,_0x3120eb,_0xc2845e,_0x3ebb4a,_0x1aec15,_0x500f83,_0x41dd3a);},'kIOel':function(_0x413254,_0x19b61c){return _0x413254!==_0x19b61c;},'wSJJV':_0x4690a1(0x2ab),'pvxOD':_0x4690a1(0x21b),'jjQxs':_0x4690a1(0x2b2),'uqAKI':_0x4690a1(0x27b),'QAIay':_0x4690a1(0x287),'snaPz':_0x4690a1(0x25c),'eRVnk':_0x4690a1(0x289),'pnCcx':_0x4690a1(0x284),'CcPEz':_0x4690a1(0x227),'KxmAK':_0x4690a1(0x28f),'jpUfV':_0x4690a1(0x1f3),'vgxzC':_0x4690a1(0x1da),'gNhTX':function(_0x520443){return _0x520443();},'aJNAB':'XFUro','ZtdrY':_0x4690a1(0x2a5),'UrmTc':_0x4690a1(0x229),'kSYKd':function(_0x450aa6,_0x4cc4db,_0x1b6dfa,_0x23bcf7,_0x6f5a7a,_0x2b1c6c,_0x34280d){return _0x450aa6(_0x4cc4db,_0x1b6dfa,_0x23bcf7,_0x6f5a7a,_0x2b1c6c,_0x34280d);},'uTVVv':_0x4690a1(0x1c9),'YUXaR':_0x4690a1(0x25f),'ckjOa':function(_0x1d2732){return _0x1d2732();},'EVQfo':_0x4690a1(0x2d3),'dKgjk':_0x4690a1(0x314),'uZMOr':'Adding\x20Websocket\x20listeners','QrLeM':function(_0x4f5c2c,_0x42f2f4){return _0x4f5c2c!==_0x42f2f4;},'ZozCK':_0x4690a1(0x254),'CxYiL':'pyEJZ','KhtFA':_0x4690a1(0x1df),'ucTAT':_0x4690a1(0x30e),'rlJMF':function(_0x4e84b4,_0x22f273,_0x1389f7,_0x48194e,_0x2e35a0,_0x578526,_0x5237df,_0x3fcce3){return _0x4e84b4(_0x22f273,_0x1389f7,_0x48194e,_0x2e35a0,_0x578526,_0x5237df,_0x3fcce3);},'STdHB':_0x4690a1(0x37a),'dIiIB':'dTUpf','KpqIJ':_0x4690a1(0x355),'bvjlr':_0x4690a1(0x350),'yvxBX':function(_0x29c79,_0x219fb3){return _0x29c79===_0x219fb3;},'MPJyF':_0x4690a1(0x27f),'AkIiy':_0x4690a1(0x2a7),'Yxwyd':function(_0x25e92e,_0x121035,_0x65a45b,_0x1ac720,_0x408cdb,_0x441422,_0xc2ae43){return _0x25e92e(_0x121035,_0x65a45b,_0x1ac720,_0x408cdb,_0x441422,_0xc2ae43);},'xNeoV':function(_0x5bba28,_0x58ed01){return _0x5bba28===_0x58ed01;},'qnEaL':_0x4690a1(0x281),'WsBRg':_0x4690a1(0x371),'DfWPj':_0x4690a1(0x1ed),'TtKaW':'GET','lBgyQ':function(_0x562a88,_0x3babda,_0x51b181){return _0x562a88(_0x3babda,_0x51b181);},'WvmWA':_0x4690a1(0x30a),'Jvxam':_0x4690a1(0x295),'JbZHf':function(_0x38ac11,_0x22623c){return _0x38ac11===_0x22623c;},'LondW':'jDkAD','arbUx':_0x4690a1(0x326),'ltqes':function(_0x484655,_0x903d95){return _0x484655===_0x903d95;},'hIOyK':function(_0x477708,_0x1c2e74){return _0x477708===_0x1c2e74;},'bXeYL':_0x4690a1(0x1c1),'SWlfY':_0x4690a1(0x230),'lexfy':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','QOqex':function(_0x52f10e,_0xa95f13,_0x3f8711,_0x595777,_0x543929,_0x578dd8,_0x506d45,_0xc479da){return _0x52f10e(_0xa95f13,_0x3f8711,_0x595777,_0x543929,_0x578dd8,_0x506d45,_0xc479da);},'mWkDV':_0x4690a1(0x2cc),'VxbqS':function(_0x1d8108,_0x1f5cfa){return _0x1d8108===_0x1f5cfa;},'YNAMZ':_0x4690a1(0x20b),'ScpCS':_0x4690a1(0x327),'cTaST':_0x4690a1(0x2dd),'wgyLz':_0x4690a1(0x30c),'ZGkib':function(_0x2a2d6a,_0x3b4d76){return _0x2a2d6a!==_0x3b4d76;},'fMmkV':_0x4690a1(0x24e),'QBlzW':function(_0xbb81fe,_0x3f4297,_0x333db3,_0x2c9359,_0x44a23f,_0x476be9,_0x6698d2,_0x4177c2){return _0xbb81fe(_0x3f4297,_0x333db3,_0x2c9359,_0x44a23f,_0x476be9,_0x6698d2,_0x4177c2);},'GaXIj':_0x4690a1(0x2ce),'yzNLi':'Grid\x20profile\x20fetched\x20from\x20backend','woGhe':function(_0x328716,_0x137917){return _0x328716!==_0x137917;},'jpDOz':_0x4690a1(0x24a),'ScFks':function(_0x4d9454,_0x56ae19,_0x281929,_0x16ccaf,_0x5ddca2,_0x1b5359,_0x68e2ef,_0x137247){return _0x4d9454(_0x56ae19,_0x281929,_0x16ccaf,_0x5ddca2,_0x1b5359,_0x68e2ef,_0x137247);},'fKbRq':_0x4690a1(0x35b),'DYDuz':_0x4690a1(0x2ee),'ZzpvG':_0x4690a1(0x268),'Elfgc':_0x4690a1(0x26e),'RyRbv':_0x4690a1(0x20a),'uyYtR':function(_0x5a892d,_0x40a9c3){return _0x5a892d===_0x40a9c3;},'ZcVHF':_0x4690a1(0x2de),'vFZlJ':function(_0x3b1b66,_0xf19642){return _0x3b1b66===_0xf19642;},'kQylM':function(_0x71cd4f,_0x5c2571){return _0x71cd4f!==_0x5c2571;},'akkwH':_0x4690a1(0x277),'Dnywb':'VnKwe','XROfb':_0x4690a1(0x36f),'ileLS':function(_0x44d15b,_0x89b01f,_0x23d300,_0x117512,_0x3c78f1,_0x4ee93c,_0x9642df,_0x19f58a){return _0x44d15b(_0x89b01f,_0x23d300,_0x117512,_0x3c78f1,_0x4ee93c,_0x9642df,_0x19f58a);},'fNJHA':_0x4690a1(0x2e9),'uJJJb':function(_0x39c1a6,_0x34d6fb){return _0x39c1a6===_0x34d6fb;},'KGZTG':'clGjb','CsMmw':function(_0x370a85,_0x37d64b){return _0x370a85!==_0x37d64b;},'DTEFI':_0x4690a1(0x29c),'fMTtU':function(_0x20de0b,_0x2ec2f9){return _0x20de0b!==_0x2ec2f9;},'RaVZp':_0x4690a1(0x22b),'Zimwl':'sMojo','PcYSc':function(_0x509036,_0x133025,_0x20f2f3,_0x4eca25,_0x5bc66b,_0x562679,_0x3eb0e8,_0x383699,_0x381719,_0x554bab,_0x46c179,_0x48fe69,_0x2037bb){return _0x509036(_0x133025,_0x20f2f3,_0x4eca25,_0x5bc66b,_0x562679,_0x3eb0e8,_0x383699,_0x381719,_0x554bab,_0x46c179,_0x48fe69,_0x2037bb);},'qlHMF':_0x4690a1(0x1d4),'UZJQA':function(_0x3f5cca,_0x22c13e){return _0x3f5cca(_0x22c13e);},'iUzzD':function(_0x1a7a19,_0x368fea){return _0x1a7a19===_0x368fea;},'cRZTG':_0x4690a1(0x20c),'iyTGK':'aFNQW','KiECm':_0x4690a1(0x201),'cFZyz':function(_0x2ff37e,_0x54d945,_0x224997,_0x35b028,_0x29d6d2,_0x5450df,_0x2a74cc,_0x31fce7,_0x5815d1,_0x4cfa2e,_0x5d4d40,_0x5ca9d3,_0x92b22c){return _0x2ff37e(_0x54d945,_0x224997,_0x35b028,_0x29d6d2,_0x5450df,_0x2a74cc,_0x31fce7,_0x5815d1,_0x4cfa2e,_0x5d4d40,_0x5ca9d3,_0x92b22c);},'MEhob':'SnZgO','RNngv':_0x4690a1(0x24c),'NpxlS':_0x4690a1(0x347),'yBtpW':function(_0x3de603,_0xcf4d70,_0x566cf3,_0x58a3a2,_0x1b054c,_0x583ac3,_0x5c569f){return _0x3de603(_0xcf4d70,_0x566cf3,_0x58a3a2,_0x1b054c,_0x583ac3,_0x5c569f);},'XiUim':function(_0x5dda59,_0x164dca){return _0x5dda59===_0x164dca;},'IBlpe':_0x4690a1(0x1f8),'stucg':_0x4690a1(0x1f9),'ZMQac':_0x4690a1(0x264),'KRcfA':function(_0x1bbc3e,_0x5efe85){return _0x1bbc3e===_0x5efe85;},'cvakm':function(_0x27185e,_0x180af1){return _0x27185e!==_0x180af1;},'HEjNY':_0x4690a1(0x1c8),'TkivP':_0x4690a1(0x2f6),'TPlks':function(_0x430c2f,_0x3bab59){return _0x430c2f!=_0x3bab59;},'Kwipp':function(_0x16f2a1,_0xcf8517){return _0x16f2a1>_0xcf8517;},'auPmp':function(_0x22d438,_0x4317ed){return _0x22d438===_0x4317ed;},'RbDLH':_0x4690a1(0x2fb),'QsLpC':function(_0x2bc37a,_0x8c61ca,_0x496c2c,_0x557517,_0x15d013,_0x2c18e4,_0x244eba,_0xa0295a){return _0x2bc37a(_0x8c61ca,_0x496c2c,_0x557517,_0x15d013,_0x2c18e4,_0x244eba,_0xa0295a);},'Deonu':_0x4690a1(0x206),'vSHTv':function(_0x1981a,_0x1fd691){return _0x1981a===_0x1fd691;},'jWFOM':_0x4690a1(0x332),'IihTH':'pre-spawned-invalid-vpc','sEeGz':function(_0x26e35e,_0x505ae8){return _0x26e35e===_0x505ae8;},'aeqxS':_0x4690a1(0x32a),'BGall':_0x4690a1(0x2eb),'lENaC':_0x4690a1(0x35f),'Nnide':_0x4690a1(0x2b8),'dEXON':function(_0x3b46d7,_0x351be2,_0x512a0c){return _0x3b46d7(_0x351be2,_0x512a0c);},'BpqIY':function(_0x169dad,_0x5a6278){return _0x169dad===_0x5a6278;},'HyLVl':_0x4690a1(0x25d),'ytbbu':function(_0x4fed29,_0x5ac092,_0x2b3770){return _0x4fed29(_0x5ac092,_0x2b3770);},'NZTAa':function(_0x174a6a,_0x4257e4,_0x380400){return _0x174a6a(_0x4257e4,_0x380400);},'bByRG':_0x4690a1(0x23f),'iugXI':_0x4690a1(0x2f8),'NzIVK':_0x4690a1(0x241),'CiSGM':'hubharesources','DeYTS':_0x4690a1(0x231),'XetHK':_0x4690a1(0x339),'YivBC':function(_0x4c5db0,_0x50fdd9){return _0x4c5db0(_0x50fdd9);},'jCVCH':function(_0x312b18,_0x365274){return _0x312b18(_0x365274);},'dBQTI':function(_0x369aa7,_0x149e86,_0x1f4aa2){return _0x369aa7(_0x149e86,_0x1f4aa2);},'wUsuV':_0x4690a1(0x1c4),'ZoTnG':_0x4690a1(0x24b),'fWBpQ':function(_0xe59c34,_0x3d0c10){return _0xe59c34===_0x3d0c10;},'CFkTB':_0x4690a1(0x319),'QWRRr':'bitnami-redis.yaml','pdZnA':_0x4690a1(0x291),'tCBoa':_0x4690a1(0x1de),'BlSFg':_0x4690a1(0x235),'uqspg':_0x4690a1(0x34d),'tyFJO':_0x4690a1(0x2da),'HeArG':_0x4690a1(0x242),'iXMIT':function(_0x37ac77,_0x3e1f33){return _0x37ac77===_0x3e1f33;},'RVEmT':_0x4690a1(0x331),'wkVuo':'Created\x20Hub\x20HA\x20resources','UPxJP':_0x4690a1(0x1e1),'vLkPa':_0x4690a1(0x30b),'hHEKJ':_0x4690a1(0x382),'sPhXG':function(_0x2293a3,_0x19e6b3){return _0x2293a3(_0x19e6b3);},'ADwzH':_0x4690a1(0x1d0),'dnDRG':function(_0x142d89,_0x150348){return _0x142d89!==_0x150348;},'FZIoP':_0x4690a1(0x1cb),'vobKx':'Namespace\x20Created','KNdex':_0x4690a1(0x27d),'hyfrz':_0x4690a1(0x2d4),'UHSaz':_0x4690a1(0x37f),'aIZbz':function(_0x3ba2a4,_0x480a3d){return _0x3ba2a4===_0x480a3d;},'zpvzC':function(_0xf6aa42,_0x19e844,_0x35859b,_0x2c6667,_0x3356fa,_0x59be3f,_0x12d0fa,_0x33d24e,_0x28885d,_0x416338,_0xe04e32){return _0xf6aa42(_0x19e844,_0x35859b,_0x2c6667,_0x3356fa,_0x59be3f,_0x12d0fa,_0x33d24e,_0x28885d,_0x416338,_0xe04e32);},'ASwFD':_0x4690a1(0x31c),'ULPPM':_0x4690a1(0x218),'olJol':function(_0x182c35,_0x2a27ae,_0x25b2b6,_0x363ff0,_0x66e8b6){return _0x182c35(_0x2a27ae,_0x25b2b6,_0x363ff0,_0x66e8b6);},'VvxBH':function(_0x16e291,_0x30800a,_0x563dcc){return _0x16e291(_0x30800a,_0x563dcc);},'lVoDF':_0x4690a1(0x2f4),'knNyN':_0x4690a1(0x2c0),'VKGVS':'ingress-nginx','WndPP':function(_0x54337c,_0x408a76,_0x2ade36){return _0x54337c(_0x408a76,_0x2ade36);},'yZzhw':function(_0x102a0a,_0x4b9cd1){return _0x102a0a===_0x4b9cd1;},'jDwoj':_0x4690a1(0x32d),'UwbpX':_0x4690a1(0x1fc),'uMsVV':function(_0x16e2e1,_0x32c6f6){return _0x16e2e1===_0x32c6f6;},'dgrIH':_0x4690a1(0x33b),'IFMRO':_0x4690a1(0x215),'FnvHr':function(_0xb23e4a,_0x5a888c,_0x5eec60,_0x1e32a9,_0x45d7ff,_0x1951c0,_0x53c001,_0x5850d6){return _0xb23e4a(_0x5a888c,_0x5eec60,_0x1e32a9,_0x45d7ff,_0x1951c0,_0x53c001,_0x5850d6);},'BjOyD':_0x4690a1(0x1fd),'XXIvX':_0x4690a1(0x245),'AfaXu':function(_0x1e0c10,_0xd89c6a,_0x59c8f6,_0xa462b4,_0x5dfafd,_0x13125b){return _0x1e0c10(_0xd89c6a,_0x59c8f6,_0xa462b4,_0x5dfafd,_0x13125b);},'Owavq':function(_0x1dae10,_0x2745e7,_0x1a53e1,_0xbd8d12,_0x499a5c,_0x19e5fa,_0x1fba5e){return _0x1dae10(_0x2745e7,_0x1a53e1,_0xbd8d12,_0x499a5c,_0x19e5fa,_0x1fba5e);},'IwONf':_0x4690a1(0x34c)};let _0x1745e0=![],_0x890ff=![],_0x45ad63,_0x4f300c,_0x5056e0,_0x5ac651,_0x265273,_0x436e65,_0x3292b3,_0x4ec98c,_0x97bd01,_0x42f64,_0x25d268,_0x22be21,_0x81b9cf,_0x26d5c0,_0x3c14af=0x1,_0x118f99=0xe;try{global_registry['requestId']=_0x198bd6['gNhTX'](uuidv4),global_registry[_0x4690a1(0x31a)]=![];!fs[_0x4690a1(0x253)](_0x198bd6[_0x4690a1(0x1e8)](getCredentialsPath))&&(_0x198bd6['BsOsB'](_0x198bd6[_0x4690a1(0x2ad)],_0x198bd6['ZtdrY'])?_0x3138e6[_0x4690a1(0x2ec)]=_0x2eed85[_0x4690a1(0x2ec)]:(console[_0x4690a1(0x27c)](_0x198bd6[_0x4690a1(0x2d9)]),await _0x198bd6[_0x4690a1(0x369)](sendInstrumentationEvent,_0x1195d8,_0x198bd6[_0x4690a1(0x376)],messageTypes['ERROR'],_0x198bd6[_0x4690a1(0x1ef)],null,_0x1195d8),process['exit'](0x1)));await _0x198bd6[_0x4690a1(0x369)](sendInstrumentationEvent,_0x1195d8,_0x198bd6[_0x4690a1(0x376)],messageTypes[_0x4690a1(0x1ec)],null,null,_0x1195d8);const _0x1792b0=JSON[_0x4690a1(0x28e)](fs[_0x4690a1(0x262)](_0x198bd6[_0x4690a1(0x2d0)](getCredentialsPath)));global_registry[_0x4690a1(0x23a)]=_0x1792b0[_0x4690a1(0x1cb)][_0x4690a1(0x294)],global_registry['bstackAccesskey']=_0x1792b0[_0x4690a1(0x1cb)][_0x4690a1(0x35c)];const _0x52b58d=WS_ENDPOINT['replace'](_0x198bd6[_0x4690a1(0x2bf)],_0x1792b0[_0x4690a1(0x1cb)][_0x4690a1(0x294)])[_0x4690a1(0x351)](_0x198bd6[_0x4690a1(0x2c7)],_0x1792b0[_0x4690a1(0x1cb)][_0x4690a1(0x35c)]),_0x6677c0={};_0x6677c0[_0x4690a1(0x2fc)]=ws,_0x6677c0[_0x4690a1(0x2d6)]=0x36ee80,_0x22be21=new ReconnectingWebSocket(_0x52b58d,[],_0x6677c0),logger[_0x4690a1(0x2cd)](_0x198bd6[_0x4690a1(0x364)]),webSocketUtils[_0x4690a1(0x32f)](_0x22be21,_0x1195d8[_0x4690a1(0x261)],_0x1195d8[_0x4690a1(0x35c)]);const _0x4d207f=_0x1195d8[_0x4690a1(0x282)]||DEFAULT_GRID_NAME;if(_0x1195d8['clusterName']||_0x1195d8[_0x4690a1(0x27e)]||_0x1195d8[_0x4690a1(0x210)]){if(_0x198bd6[_0x4690a1(0x236)](_0x198bd6[_0x4690a1(0x28a)],_0x198bd6[_0x4690a1(0x360)])){!(_0x1195d8['clusterName']&&_0x1195d8[_0x4690a1(0x27e)]&&_0x1195d8[_0x4690a1(0x210)])&&(_0x198bd6['BsOsB'](_0x198bd6[_0x4690a1(0x379)],_0x198bd6['KhtFA'])?(_0x45ad63=_0x198bd6[_0x4690a1(0x259)],await _0x198bd6[_0x4690a1(0x22e)](reportToGalactusAndSendToEDS,_0x1195d8,_0x22be21,_0x45ad63,messageTypes['ERROR'],_0x198bd6[_0x4690a1(0x376)],_0x198bd6[_0x4690a1(0x214)],_0x198bd6['QjIdN']),logger[_0x4690a1(0x27c)](_0x45ad63),process[_0x4690a1(0x328)](0x1)):_0x4e7136['isPrivateGrid']=!![]);if(![AWS,AZURE,GCP][_0x4690a1(0x299)](_0x1195d8['cloudProvider'][_0x4690a1(0x301)]())){if(_0x198bd6[_0x4690a1(0x383)](_0x198bd6[_0x4690a1(0x207)],_0x198bd6[_0x4690a1(0x207)])){const _0x4e5295={'azure.workload.identity/use':_0x198bd6[_0x4690a1(0x237)],..._0x816aef[0x0][_0x4690a1(0x2a6)]['template'][_0x4690a1(0x306)][_0x4690a1(0x333)]};_0x5f2339[0x0][_0x4690a1(0x2a6)][_0x4690a1(0x22a)][_0x4690a1(0x306)]['labels']=_0x4e5295,_0x2d9cc3[0x0][_0x4690a1(0x2a6)]['template'][_0x4690a1(0x2a6)]['serviceAccountName']=_0x198bd6[_0x4690a1(0x1ca)];}else _0x45ad63=_0x198bd6[_0x4690a1(0x1cf)],await _0x198bd6[_0x4690a1(0x22e)](reportToGalactusAndSendToEDS,_0x1195d8,_0x22be21,_0x45ad63,messageTypes[_0x4690a1(0x2a8)],_0x198bd6[_0x4690a1(0x376)],_0x198bd6[_0x4690a1(0x223)],_0x198bd6['QjIdN']),logger[_0x4690a1(0x27c)](_0x45ad63),process[_0x4690a1(0x328)](0x1);}_0x1195d8[_0x4690a1(0x219)]&&_0x198bd6[_0x4690a1(0x205)](_0x1195d8[_0x4690a1(0x219)][_0x4690a1(0x301)](),_0x198bd6[_0x4690a1(0x237)])&&(_0x198bd6[_0x4690a1(0x2b3)](_0x198bd6[_0x4690a1(0x23c)],_0x198bd6[_0x4690a1(0x24d)])?(_0x52705f[_0x4690a1(0x2e0)](_0x4690a1(0x381)+_0x365028[_0x4690a1(0x387)]+_0x4690a1(0x2b4)),_0x29d240=![],_0x488347=!![]):global_registry['isPrivateGrid']=!![]);global_registry[_0x4690a1(0x27e)]=_0x1195d8['cloudProvider'],global_registry[_0x4690a1(0x217)]=_0x1195d8[_0x4690a1(0x210)],global_registry[_0x4690a1(0x387)]=_0x1195d8[_0x4690a1(0x387)];const _0x2266de=await _0x198bd6[_0x4690a1(0x267)](getCloudProviderObject,_0x1195d8[_0x4690a1(0x27e)],_0x1195d8[_0x4690a1(0x387)],_0x4d207f,_0x22be21,webSocketUtils,_0x1195d8),_0x4a9af8=await _0x2266de[_0x4690a1(0x1f2)]();!_0x4a9af8?_0x198bd6['xNeoV'](_0x198bd6[_0x4690a1(0x20e)],_0x198bd6['qnEaL'])?(logger[_0x4690a1(0x2e0)](_0x4690a1(0x381)+_0x1195d8['clusterName']+_0x4690a1(0x2b4)),_0x1745e0=![],_0x890ff=!![]):_0xd47572[_0x4690a1(0x1f4)]():_0x198bd6['yvxBX'](_0x198bd6[_0x4690a1(0x26d)],_0x198bd6[_0x4690a1(0x26d)])?_0x1745e0=!![]:_0x408951[_0x4690a1(0x2e0)](_0x4690a1(0x26c)+_0x465009[_0x4690a1(0x2dc)](_0x219ee1)+'\x20'),_0x5056e0=_0x1195d8['clusterName'],_0x4f300c=_0x1195d8['cloudProvider'][_0x4690a1(0x301)](),_0x5ac651=_0x1195d8[_0x4690a1(0x210)];}else{const _0x5bfdef={};_0x5bfdef[_0x4690a1(0x2e5)]=_0x43150d[_0x4690a1(0x1e2)],_0x5bfdef[_0x4690a1(0x1ee)]=_0x4690a1(0x36c)+_0x41b55e+_0x4690a1(0x228),_0x470d7d['sendEventToBackend'](_0x47ca75,_0x5bfdef,_0x198bd6[_0x4690a1(0x2c5)]),_0x4e271f['info'](_0x4690a1(0x36c)+_0x239c3f+_0x4690a1(0x228)),_0x1ccc65=!![];if(_0x198bd6[_0x4690a1(0x205)](_0x13a9cb,!![]))throw new _0x8345bc(_0x4690a1(0x36c)+_0x61d222+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}else _0x1195d8[_0x4690a1(0x2ec)]&&(_0x198bd6[_0x4690a1(0x1f6)](_0x198bd6[_0x4690a1(0x20f)],_0x198bd6['DfWPj'])?global_registry[_0x4690a1(0x2ec)]=_0x1195d8[_0x4690a1(0x2ec)]:_0x198bd6[_0x4690a1(0x2e4)](_0x48af3b,_0x465251['uploaderVersion']));global_registry[_0x4690a1(0x282)]=_0x1195d8['gridName'];const _0x4d4f08={'method':_0x198bd6[_0x4690a1(0x300)],'headers':_0x198bd6[_0x4690a1(0x1db)](getAuthHeader,_0x1792b0[_0x4690a1(0x1cb)]['username'],_0x1792b0[_0x4690a1(0x1cb)][_0x4690a1(0x35c)]),'throwHttpErrors':![]},_0x594091={};_0x594091[_0x4690a1(0x282)]=_0x4d207f;const _0x5af440=_0x594091;_0x890ff&&(_0x198bd6[_0x4690a1(0x1f6)](_0x198bd6['WvmWA'],_0x198bd6[_0x4690a1(0x26a)])?_0x306e31=null:(_0x5af440['region']=_0x5ac651,_0x5af440[_0x4690a1(0x27e)]=_0x4f300c,_0x5af440[_0x4690a1(0x2ef)]=!![],_0x5af440[_0x4690a1(0x23e)]=_0x1195d8[_0x4690a1(0x2a9)]));if(_0x1195d8['clusterAutoupgrade']){if(_0x198bd6[_0x4690a1(0x340)](_0x198bd6[_0x4690a1(0x1ce)],_0x198bd6[_0x4690a1(0x357)])){const _0x302497={};_0x302497[_0x4690a1(0x2e5)]=_0x5aee64['LOG'],_0x302497[_0x4690a1(0x1ee)]=_0x495b21,_0x5534b0[_0x4690a1(0x2d8)](_0x4aa28d,_0x302497,_0x198bd6['QjIdN'],!![]);}else logger[_0x4690a1(0x2e0)](_0x198bd6[_0x4690a1(0x36e)]);}const _0x17cd5d=_0x4690a1(0x248)+AG_API_URL+_0x4690a1(0x37d),_0x436244={'searchParams':_0x5af440,'throwHttpErrors':![],..._0x4d4f08},_0x23e056=_0x436244,_0x144f4d=await _0x198bd6[_0x4690a1(0x1db)](got,_0x17cd5d,_0x23e056);(_0x198bd6[_0x4690a1(0x340)](_0x144f4d,null)||_0x198bd6[_0x4690a1(0x213)](_0x144f4d,undefined))&&(_0x198bd6[_0x4690a1(0x200)](_0x198bd6[_0x4690a1(0x265)],_0x198bd6[_0x4690a1(0x325)])?_0x175892=_0x198bd6[_0x4690a1(0x2c4)]:(_0x45ad63=_0x198bd6['lexfy'],await _0x198bd6[_0x4690a1(0x307)](reportToGalactusAndSendToEDS,_0x1195d8,_0x22be21,_0x45ad63,messageTypes[_0x4690a1(0x2a8)],_0x198bd6[_0x4690a1(0x376)],_0x198bd6[_0x4690a1(0x1c7)],_0x198bd6[_0x4690a1(0x29e)]),logger[_0x4690a1(0x27c)](_0x45ad63),process['exit'](0x1)));_0x198bd6['VxbqS'](_0x144f4d['statusCode'],0x191)&&(_0x198bd6[_0x4690a1(0x383)](_0x198bd6[_0x4690a1(0x250)],_0x198bd6['ScpCS'])?(_0x45ad63=_0x198bd6[_0x4690a1(0x1cd)],await _0x198bd6['QOqex'](reportToGalactusAndSendToEDS,_0x1195d8,_0x22be21,_0x45ad63,messageTypes[_0x4690a1(0x2a8)],_0x198bd6[_0x4690a1(0x376)],_0x198bd6[_0x4690a1(0x25b)],_0x198bd6[_0x4690a1(0x29e)]),logger[_0x4690a1(0x27c)](_0x45ad63),process[_0x4690a1(0x328)](0x1)):_0x56a56a[_0x4690a1(0x2e0)](_0x198bd6[_0x4690a1(0x36e)]));_0x198bd6[_0x4690a1(0x374)](_0x144f4d[_0x4690a1(0x33e)],0xc8)&&(_0x198bd6[_0x4690a1(0x205)](_0x198bd6[_0x4690a1(0x21a)],_0x198bd6[_0x4690a1(0x21a)])?(_0x45ad63=_0x4690a1(0x363)+JSON[_0x4690a1(0x2dc)](_0x144f4d[_0x4690a1(0x238)]),await _0x198bd6[_0x4690a1(0x1f7)](reportToGalactusAndSendToEDS,_0x1195d8,_0x22be21,_0x45ad63,messageTypes['ERROR'],_0x198bd6['uTVVv'],_0x198bd6[_0x4690a1(0x1c5)],_0x198bd6[_0x4690a1(0x29e)]),logger['error'](_0x45ad63),process[_0x4690a1(0x328)](0x1)):_0x1c2d39['info'](_0x4690a1(0x378)+_0x1e647c+'\x20'));const _0xd18802=JSON[_0x4690a1(0x28e)](_0x144f4d[_0x4690a1(0x238)]),_0x367b68={};_0x367b68[_0x4690a1(0x2e5)]=WS_EVENTS[_0x4690a1(0x24f)],_0x367b68[_0x4690a1(0x1ee)]=_0x198bd6['BeuTJ'],webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0x367b68);const _0x21b834={};_0x21b834[_0x4690a1(0x2e5)]=WS_EVENTS[_0x4690a1(0x1e2)],_0x21b834[_0x4690a1(0x1ee)]=_0x198bd6[_0x4690a1(0x2a4)],webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0x21b834);if(_0xd18802[_0x4690a1(0x22f)]){if(_0x198bd6['woGhe'](_0x198bd6['jpDOz'],_0x198bd6[_0x4690a1(0x31d)])){const _0x2b7e69=_0x198bd6['gDAtP'][_0x4690a1(0x202)]('|');let _0x5770be=0x0;while(!![]){switch(_0x2b7e69[_0x5770be++]){case'0':_0x1d784b['hubVersion']=_0x524679[_0x4690a1(0x1c3)];continue;case'1':_0x4111ef=_0x4690a1(0x2f7)+_0x1661cb+_0x4690a1(0x349)+_0x29d758+'\x27';continue;case'2':_0x1a3651['browserVersion']=_0x20edfc['browserVersion'];continue;case'3':const _0x4647fb={};_0x4647fb[_0x4690a1(0x2e5)]=_0x309111['LOG'],_0x4647fb[_0x4690a1(0x1ee)]=_0x8eb2af,_0x15f591[_0x4690a1(0x2d8)](_0x5743d0,_0x4647fb);continue;case'4':_0x512685[_0x4690a1(0x2e0)](_0xc971f0);continue;case'5':_0x44e007[_0x4690a1(0x387)]=_0x372ab8;continue;case'6':_0x44fd80[_0x4690a1(0x27e)]=_0x5589fc;continue;case'7':const _0x8c4b0f={};_0x8c4b0f['type']=_0x195eef[_0x4690a1(0x24f)],_0x8c4b0f['message']=_0x198bd6[_0x4690a1(0x33f)],_0x27ad44[_0x4690a1(0x2d8)](_0x3b8be4,_0x8c4b0f);continue;case'8':_0x58fb90[_0x4690a1(0x217)]=_0x169020;continue;}break;}}else _0x45ad63=_0x4690a1(0x21f)+_0x4d207f+_0x4690a1(0x324),await _0x198bd6['ScFks'](reportToGalactusAndSendToEDS,_0x1195d8,_0x22be21,_0x45ad63,messageTypes[_0x4690a1(0x2a8)],_0x198bd6[_0x4690a1(0x376)],_0x198bd6[_0x4690a1(0x1e6)],_0x198bd6[_0x4690a1(0x29e)]),logger['error'](_0x45ad63),process[_0x4690a1(0x328)](0x1);}const _0x155a1a=_0xd18802[_0x4690a1(0x2b5)];let _0xb4d97=_0x155a1a[_0xd18802['defaultGridProfile']];_0x1195d8[_0x4690a1(0x2ec)]&&(_0x198bd6[_0x4690a1(0x375)](_0x198bd6[_0x4690a1(0x36d)],_0x198bd6[_0x4690a1(0x225)])?_0xb4d97=_0x155a1a[_0x1195d8[_0x4690a1(0x2ec)]]:_0x45e22b=null);global_registry[_0x4690a1(0x239)]=![];if(_0x1195d8[_0x4690a1(0x2ff)]){if(_0x198bd6[_0x4690a1(0x375)](_0x198bd6[_0x4690a1(0x278)],_0x198bd6[_0x4690a1(0x278)]))_0x1dc793[_0x4690a1(0x31a)]=!![];else{const _0x3a7291=_0x198bd6[_0x4690a1(0x1f5)][_0x4690a1(0x202)]('|');let _0x18ecce=0x0;while(!![]){switch(_0x3a7291[_0x18ecce++]){case'0':global_registry[_0x4690a1(0x252)]=_0x198bd6[_0x4690a1(0x256)];continue;case'1':global_registry[_0x4690a1(0x257)]=_0x198bd6[_0x4690a1(0x283)];continue;case'2':logger[_0x4690a1(0x2e0)](_0x198bd6[_0x4690a1(0x2cf)]);continue;case'3':global_registry[_0x4690a1(0x239)]=!![];continue;case'4':global_registry[_0x4690a1(0x1c6)]=_0x198bd6['vVuig'];continue;}break;}}}if(_0x198bd6[_0x4690a1(0x205)](_0x1745e0,![])&&_0x198bd6['uyYtR'](_0x890ff,![])){if(_0x198bd6[_0x4690a1(0x348)](_0x198bd6[_0x4690a1(0x21c)],_0x198bd6[_0x4690a1(0x21c)])){_0x198bd6['vFZlJ'](_0xb4d97,undefined)&&(_0x198bd6[_0x4690a1(0x33a)](_0x198bd6[_0x4690a1(0x37c)],_0x198bd6[_0x4690a1(0x344)])?(_0x45ad63=_0x198bd6[_0x4690a1(0x342)],await _0x198bd6['ileLS'](reportToGalactusAndSendToEDS,_0x1195d8,_0x22be21,_0x45ad63,messageTypes[_0x4690a1(0x2a8)],_0x198bd6[_0x4690a1(0x376)],_0x198bd6[_0x4690a1(0x2bd)],_0x198bd6[_0x4690a1(0x29e)]),logger['error'](_0x45ad63),process[_0x4690a1(0x328)](0x1)):(_0x120392=_0x242544[_0x4690a1(0x320)],_0x2cb231=_0x198bd6['xVmio']));global_registry['gridProfileId']=_0xb4d97['id'],_0x45ad63=_0x4690a1(0x1d7)+_0x4d207f+_0x4690a1(0x304)+_0xb4d97[_0x4690a1(0x20d)]+_0x4690a1(0x310),logger['info'](_0x45ad63);const _0x2b46dd={};_0x2b46dd[_0x4690a1(0x2e5)]=WS_EVENTS['LOG'],_0x2b46dd['message']=_0x45ad63,webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0x2b46dd),_0x4f300c=_0xb4d97[_0x4690a1(0x27e)],_0x5056e0=_0xb4d97[_0x4690a1(0x387)],_0x5ac651=_0xb4d97[_0x4690a1(0x210)],_0x265273=_0xb4d97[_0x4690a1(0x366)],_0x436e65=_0xb4d97[_0x4690a1(0x385)],_0x3292b3=_0xb4d97[_0x4690a1(0x26b)],_0x4ec98c=_0xb4d97['securityGroups'],_0x97bd01=_0xb4d97[_0x4690a1(0x31e)],_0x42f64=_0xb4d97[_0x4690a1(0x388)],_0x3c14af=_0xb4d97[_0x4690a1(0x2e6)],_0x118f99=_0xb4d97[_0x4690a1(0x212)],_0x81b9cf=_0xd18802['hubVersion'],_0x26d5c0=_0xd18802['browserVersion'];_0x3292b3&&_0x198bd6[_0x4690a1(0x205)](_0x3292b3[_0x4690a1(0x221)],0x0)&&(_0x198bd6[_0x4690a1(0x329)](_0x198bd6[_0x4690a1(0x2e8)],_0x198bd6[_0x4690a1(0x2e8)])?_0x3292b3=null:_0x4b3065=_0x439710[_0x2f852f[_0x4690a1(0x2ec)]]);_0x97bd01&&_0x198bd6['ltqes'](_0x97bd01[_0x4690a1(0x221)],0x0)&&(_0x198bd6[_0x4690a1(0x377)](_0x198bd6['DTEFI'],_0x198bd6[_0x4690a1(0x208)])?(_0x4de434[_0x4690a1(0x210)]=_0x4cc347,_0x41b976['cloudProvider']=_0x4d75c8,_0x28c0d3[_0x4690a1(0x2ef)]=!![],_0x320f33[_0x4690a1(0x23e)]=_0x666dd0[_0x4690a1(0x2a9)]):_0x97bd01=null);_0x198bd6[_0x4690a1(0x33a)](_0xb4d97[_0x4690a1(0x219)],undefined)&&_0xb4d97[_0x4690a1(0x219)]&&(_0x198bd6[_0x4690a1(0x266)](_0x198bd6[_0x4690a1(0x232)],_0x198bd6[_0x4690a1(0x34b)])?global_registry[_0x4690a1(0x31a)]=!![]:_0x198bd6['odNyQ'](_0x218f8d,_0x3f534a[_0x4690a1(0x1fe)]));_0x198bd6[_0x4690a1(0x274)](updateGlobalRegistryWithConfig,_0x4f300c,_0x5056e0,_0x5ac651,_0x265273,_0x436e65,_0x42f64,_0xb4d97,_0x81b9cf,_0x26d5c0,_0x3c14af,_0x118f99,_0x1195d8['clusterAutoupgrade']);if(global_registry[_0x4690a1(0x239)]){if(_0x198bd6[_0x4690a1(0x329)](_0x198bd6['qlHMF'],_0x198bd6[_0x4690a1(0x26f)]))_0x198bd6['UZJQA'](updateGlobalRegistryForHubHa,_0xd18802[_0x4690a1(0x28c)]);else throw new _0x1f3f7e(_0x4690a1(0x36c)+_0x463893+_0x4690a1(0x2b1));}}else _0x38db53[_0x4690a1(0x27c)](_0x4690a1(0x1fa)+_0x20c0c7+'\x20\x0a'+_0x530a14[_0x4690a1(0x2dc)](_0x3e121f[_0x4690a1(0x308)]));}else{if(_0x198bd6[_0x4690a1(0x213)](_0x890ff,!![])){if(_0x198bd6[_0x4690a1(0x370)](_0x198bd6[_0x4690a1(0x2a1)],_0x198bd6[_0x4690a1(0x1d1)])){const _0x20a4d5=_0x198bd6[_0x4690a1(0x30d)][_0x4690a1(0x202)]('|');let _0xa4cda1=0x0;while(!![]){switch(_0x20a4d5[_0xa4cda1++]){case'0':_0x23db07[_0x4690a1(0x239)]=!![];continue;case'1':_0x12996c['kafkaPassword']=_0x198bd6[_0x4690a1(0x302)];continue;case'2':_0x198c29[_0x4690a1(0x257)]=_0x198bd6[_0x4690a1(0x283)];continue;case'3':_0x15b328['info'](_0x198bd6[_0x4690a1(0x2cf)]);continue;case'4':_0x2adde8['hubHaNameSpace']=_0x198bd6[_0x4690a1(0x256)];continue;}break;}}else{_0x45ad63=_0x4690a1(0x2ca)+_0x4d207f,logger['info'](_0x45ad63);const _0x4c8094={};_0x4c8094[_0x4690a1(0x2e5)]=WS_EVENTS[_0x4690a1(0x1e2)],_0x4c8094[_0x4690a1(0x1ee)]=_0x45ad63,webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0x4c8094),_0x265273=_0xb4d97['concurrency'],_0x436e65=_0xb4d97['instanceType'],_0x3292b3=null,_0x4ec98c=null,_0x97bd01=null,_0x42f64=_0xb4d97[_0x4690a1(0x388)],_0x3c14af=_0xb4d97[_0x4690a1(0x2e6)],_0x118f99=_0xb4d97[_0x4690a1(0x212)],_0x81b9cf=_0xd18802[_0x4690a1(0x1c3)],_0x26d5c0=_0xd18802[_0x4690a1(0x233)],_0x198bd6[_0x4690a1(0x375)](_0xb4d97[_0x4690a1(0x219)],undefined)&&_0xb4d97['privateGrid']&&(_0x198bd6[_0x4690a1(0x375)](_0x198bd6[_0x4690a1(0x2f2)],_0x198bd6[_0x4690a1(0x2f2)])?_0x39b04c[_0x4690a1(0x31a)]=!![]:global_registry[_0x4690a1(0x31a)]=!![]),_0x198bd6[_0x4690a1(0x25a)](updateGlobalRegistryWithConfig,_0x4f300c,_0x5056e0,_0x5ac651,_0x265273,_0x436e65,_0x42f64,_0xb4d97,_0x81b9cf,_0x26d5c0,_0x3c14af,_0x118f99,_0x1195d8[_0x4690a1(0x2a9)]),global_registry[_0x4690a1(0x239)]&&(_0x198bd6[_0x4690a1(0x340)](_0x198bd6[_0x4690a1(0x35d)],_0x198bd6['MEhob'])?_0x198bd6[_0x4690a1(0x305)](updateGlobalRegistryForHubHa,_0xd18802['kafkaUploader']):_0x1fc1f5=_0x198bd6[_0x4690a1(0x361)]);}}else{if(_0x198bd6[_0x4690a1(0x1f6)](_0x198bd6[_0x4690a1(0x365)],_0x198bd6[_0x4690a1(0x365)])){const _0x3875a3=_0x198bd6[_0x4690a1(0x1f1)][_0x4690a1(0x202)]('|');let _0x1801b0=0x0;while(!![]){switch(_0x3875a3[_0x1801b0++]){case'0':global_registry[_0x4690a1(0x387)]=_0x5056e0;continue;case'1':_0x45ad63=_0x4690a1(0x2f7)+_0x4d207f+_0x4690a1(0x349)+_0x5056e0+'\x27';continue;case'2':const _0x1978b6={};_0x1978b6[_0x4690a1(0x2e5)]=WS_EVENTS[_0x4690a1(0x24f)],_0x1978b6[_0x4690a1(0x1ee)]=_0x198bd6['BeuTJ'],webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0x1978b6);continue;case'3':global_registry[_0x4690a1(0x217)]=_0x5ac651;continue;case'4':global_registry[_0x4690a1(0x27e)]=_0x4f300c;continue;case'5':logger[_0x4690a1(0x2e0)](_0x45ad63);continue;case'6':const _0xf02a7c={};_0xf02a7c[_0x4690a1(0x2e5)]=WS_EVENTS['LOG'],_0xf02a7c[_0x4690a1(0x1ee)]=_0x45ad63,webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0xf02a7c);continue;case'7':global_registry[_0x4690a1(0x1c3)]=_0xd18802['hubVersion'];continue;case'8':global_registry[_0x4690a1(0x233)]=_0xd18802['browserVersion'];continue;}break;}}else _0x2b5ce9=_0x198bd6[_0x4690a1(0x2aa)];}}const _0x393809=await _0x198bd6[_0x4690a1(0x2db)](getCloudProviderObject,_0x4f300c,_0x5056e0,_0x4d207f,_0x22be21,webSocketUtils,_0x1195d8);if(_0x198bd6[_0x4690a1(0x236)](_0x4f300c,AZURE)){if(_0x198bd6[_0x4690a1(0x2e2)](_0x198bd6[_0x4690a1(0x30f)],_0x198bd6[_0x4690a1(0x30f)]))_0x393809['sendResourceDataToHST']();else{const _0x4d6d0a=_0x198bd6[_0x4690a1(0x2f9)][_0x4690a1(0x202)]('|');let _0x338a49=0x0;while(!![]){switch(_0x4d6d0a[_0x338a49++]){case'0':_0x5d6834=_0x34e3e4[_0x4690a1(0x366)];continue;case'1':_0x12ed8d=_0x2bff7a[_0x4690a1(0x212)];continue;case'2':const _0x2eb1c={};_0x2eb1c[_0x4690a1(0x2e5)]=_0xeb05a0[_0x4690a1(0x1e2)],_0x2eb1c[_0x4690a1(0x1ee)]=_0x9a717a,_0x4ba021[_0x4690a1(0x2d8)](_0x1ad0ee,_0x2eb1c);continue;case'3':_0x5bf823[_0x4690a1(0x2e0)](_0x43d891);continue;case'4':_0x17d878=null;continue;case'5':_0x47dd89=_0x4690a1(0x2ca)+_0x555ec8;continue;case'6':_0x296d5f=null;continue;case'7':_0x198966=_0x13ef2c[_0x4690a1(0x388)];continue;case'8':_0x198bd6[_0x4690a1(0x380)](_0x4a9830,_0xfaf303,_0x26790b,_0xf78a0a,_0x3a5e4a,_0x38b9b8,_0x40fd33,_0x4addda,_0x5de31c,_0x51d616,_0x3bf55f,_0x1c6d13,_0x51e678[_0x4690a1(0x2a9)]);continue;case'9':_0x198bd6[_0x4690a1(0x383)](_0x3752c5[_0x4690a1(0x219)],_0x53eaeb)&&_0x430f7b[_0x4690a1(0x219)]&&(_0x432c90[_0x4690a1(0x31a)]=!![]);continue;case'10':_0x40919e=_0x10fe57[_0x4690a1(0x2e6)];continue;case'11':_0x1e9e54=null;continue;case'12':_0xc523d6=_0x22e303['hubVersion'];continue;case'13':_0x2e8ca9=_0x3732a0[_0x4690a1(0x233)];continue;case'14':_0x4c7b46=_0x32dd3a[_0x4690a1(0x385)];continue;case'15':_0x5cdc97[_0x4690a1(0x239)]&&_0x198bd6[_0x4690a1(0x23b)](_0x55841b,_0x4ab027[_0x4690a1(0x1fe)]);continue;}break;}}}let _0x3806da;if(_0x198bd6['iUzzD'](_0x1745e0,![])){_0x45ad63=_0x4690a1(0x31b)+_0x5ac651+').';const _0xbdb78={};_0xbdb78['type']=WS_EVENTS[_0x4690a1(0x1e2)],_0xbdb78[_0x4690a1(0x1ee)]=_0x45ad63,webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0xbdb78),logger['info'](_0x45ad63);const _0x5ac99f=await _0x393809['isClusterPresent']();if(_0x5ac99f){if(_0x198bd6['QrLeM'](_0x198bd6[_0x4690a1(0x1c2)],_0x198bd6[_0x4690a1(0x255)])){const _0x8b35be={};_0x8b35be[_0x4690a1(0x2e5)]=WS_EVENTS['LOG'],_0x8b35be['message']=_0x4690a1(0x36c)+_0x5056e0+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0x8b35be,_0x198bd6[_0x4690a1(0x2c5)]),logger[_0x4690a1(0x2e0)]('Cluster\x20'+_0x5056e0+_0x4690a1(0x228)),_0x1745e0=!![];if(_0x198bd6[_0x4690a1(0x313)](_0x890ff,!![])){if(_0x198bd6[_0x4690a1(0x2c1)](_0x198bd6[_0x4690a1(0x2cb)],_0x198bd6[_0x4690a1(0x2cb)]))_0x1c6b69=!![];else throw new Error('Cluster\x20'+_0x5056e0+_0x4690a1(0x2b1));}}else{const _0x2e5473={};_0x2e5473[_0x4690a1(0x2d2)]=_0x198bd6[_0x4690a1(0x27a)],_0x2e5473[_0x4690a1(0x2e5)]=_0x198bd6['pvxOD'];const _0x25e00e={};_0x25e00e['description']=_0x198bd6[_0x4690a1(0x297)],_0x25e00e[_0x4690a1(0x2e5)]=_0x198bd6['pvxOD'];const _0x1b6986={};_0x1b6986['description']=_0x198bd6[_0x4690a1(0x2f5)],_0x1b6986[_0x4690a1(0x2e5)]=_0x198bd6[_0x4690a1(0x2ae)];const _0x275306={};_0x275306[_0x4690a1(0x2d2)]=_0x198bd6['QAIay'],_0x275306[_0x4690a1(0x2e5)]=_0x198bd6['pvxOD'];const _0x5137f9={};_0x5137f9['description']=_0x198bd6[_0x4690a1(0x226)],_0x5137f9['type']=_0x198bd6['pvxOD'];const _0x3b89fb={};_0x3b89fb['description']=_0x198bd6[_0x4690a1(0x2be)],_0x3b89fb['type']=_0x198bd6[_0x4690a1(0x2ae)];const _0x3be410={};_0x3be410[_0x4690a1(0x2d2)]=_0x198bd6['pnCcx'],_0x3be410['type']=_0x198bd6[_0x4690a1(0x1e5)],_0x3be410[_0x4690a1(0x2b7)]=![];const _0x3d66bb={};_0x3d66bb[_0x4690a1(0x2d2)]=_0x198bd6[_0x4690a1(0x2ba)],_0x3d66bb[_0x4690a1(0x2e5)]=_0x198bd6[_0x4690a1(0x1e5)],_0x3d66bb['default']=![];const _0x5c1441={};_0x5c1441['description']=_0x198bd6['jpUfV'],_0x5c1441[_0x4690a1(0x2e5)]=_0x198bd6[_0x4690a1(0x1e5)],_0x5c1441['default']=![];const _0x563e15={};return _0x563e15[_0x4690a1(0x222)]=_0x2e5473,_0x563e15[_0x4690a1(0x352)]=_0x25e00e,_0x563e15[_0x4690a1(0x1e0)]=_0x1b6986,_0x563e15[_0x4690a1(0x1fb)]=_0x275306,_0x563e15[_0x4690a1(0x210)]=_0x5137f9,_0x563e15[_0x4690a1(0x292)]=_0x3b89fb,_0x563e15[_0x4690a1(0x2e3)]=_0x3be410,_0x563e15[_0x4690a1(0x276)]=_0x3d66bb,_0x563e15['cluster-autoupgrade']=_0x5c1441,_0x5ccf5a[_0x4690a1(0x1e7)](_0x47de95[_0x4690a1(0x2df)])[_0x4690a1(0x2c8)](_0x380894)[_0x4690a1(0x34e)](_0x563e15)['help'](_0x198bd6[_0x4690a1(0x34a)])[_0x4690a1(0x296)];}}else{const _0xec8d1a={};_0xec8d1a[_0x4690a1(0x2e5)]=WS_EVENTS['LOG'],_0xec8d1a['message']=_0x198bd6[_0x4690a1(0x298)],webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0xec8d1a),logger[_0x4690a1(0x2e0)](_0x198bd6[_0x4690a1(0x298)]);const _0x19ece6=_0x198bd6[_0x4690a1(0x36a)](_0x3292b3,null)&&_0x198bd6[_0x4690a1(0x377)](_0x3292b3,undefined),_0x187dd5=_0x198bd6['TPlks'](_0x97bd01,null)&&_0x198bd6['QrLeM'](_0x97bd01,undefined)&&_0x198bd6['Kwipp'](_0x97bd01[_0x4690a1(0x221)],0x0);if(_0x19ece6){_0x198bd6['auPmp'](_0x187dd5,![])&&(_0x45ad63=_0x198bd6['RbDLH'],await _0x198bd6[_0x4690a1(0x2a3)](reportToGalactusAndSendToEDS,_0x1195d8,_0x22be21,_0x45ad63,messageTypes['ERROR'],_0x198bd6[_0x4690a1(0x376)],_0x198bd6[_0x4690a1(0x32e)],_0x198bd6[_0x4690a1(0x29e)]),logger['error'](_0x45ad63),process[_0x4690a1(0x328)](0x1));const _0x2c98b4=await _0x393809[_0x4690a1(0x2c9)](_0x3292b3);_0x198bd6[_0x4690a1(0x293)](_0x2c98b4,![])?(_0x45ad63=_0x198bd6[_0x4690a1(0x280)],await _0x198bd6[_0x4690a1(0x22e)](reportToGalactusAndSendToEDS,_0x1195d8,_0x22be21,_0x45ad63,messageTypes['ERROR'],_0x198bd6['uTVVv'],_0x198bd6[_0x4690a1(0x269)],_0x198bd6[_0x4690a1(0x29e)]),logger['error'](_0x45ad63),process[_0x4690a1(0x328)](0x1)):logger['info'](_0x4690a1(0x378)+_0x3292b3+'\x20');const _0x5394bb=await _0x393809['isSubnetsValid'](_0x97bd01,_0x3292b3);_0x198bd6[_0x4690a1(0x359)](_0x5394bb[0x0],![])?(_0x45ad63=_0x4690a1(0x362)+JSON[_0x4690a1(0x2dc)](_0x5394bb[0x1])+_0x4690a1(0x2fa)+_0x3292b3+_0x4690a1(0x1d2),await _0x198bd6[_0x4690a1(0x22e)](reportToGalactusAndSendToEDS,_0x1195d8,_0x22be21,_0x45ad63,messageTypes[_0x4690a1(0x2a8)],_0x198bd6['uTVVv'],_0x198bd6[_0x4690a1(0x285)],_0x198bd6[_0x4690a1(0x29e)]),logger[_0x4690a1(0x27c)](_0x45ad63),process[_0x4690a1(0x328)](0x1)):logger[_0x4690a1(0x2e0)](_0x4690a1(0x26c)+JSON[_0x4690a1(0x2dc)](_0x97bd01)+'\x20'),[_0x3292b3,_0x97bd01]=await _0x393809['setupNewCluster'](_0x3292b3,_0x97bd01);}else{const _0x3cf9d1=_0x198bd6[_0x4690a1(0x1e4)][_0x4690a1(0x202)]('|');let _0xc041eb=0x0;while(!![]){switch(_0x3cf9d1[_0xc041eb++]){case'0':const _0x3383fc={};_0x3383fc[_0x4690a1(0x2e5)]=WS_EVENTS['LOG'],_0x3383fc['message']=_0x198bd6[_0x4690a1(0x384)],webSocketUtils['sendEventToBackend'](_0x22be21,_0x3383fc);continue;case'1':[_0x3292b3,_0x97bd01]=await _0x393809['setupNewCluster'](_0x3292b3,_0x97bd01);continue;case'2':const _0x2622bb={};_0x2622bb[_0x4690a1(0x2e5)]=WS_EVENTS[_0x4690a1(0x1e2)],_0x2622bb[_0x4690a1(0x1ee)]=_0x198bd6['Nnide'],webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0x2622bb);continue;case'3':logger['info'](_0x198bd6[_0x4690a1(0x322)]);continue;case'4':logger['info'](_0x198bd6[_0x4690a1(0x384)]);continue;}break;}}}}_0x1745e0&&_0x198bd6[_0x4690a1(0x348)](_0x4f300c,AZURE)&&(await _0x393809[_0x4690a1(0x1c0)](),await _0x393809['createOtherResources']());const [_0x55378a,_0x2c114a,_0x200bc0,_0x18021f,_0xed8517,_0x212f57,_0x1cf317]=await _0x198bd6['dEXON'](createK8sClient,_0x393809,_0x1195d8['skipTlsCertVerify']);_0x198bd6['BpqIY'](_0x1745e0,![])&&_0x198bd6[_0x4690a1(0x1f6)](_0x4f300c,AWS)&&(global_registry[_0x4690a1(0x345)]=!![],_0x3806da=await _0x393809[_0x4690a1(0x315)](_0x55378a,_0x1195d8));if(_0x198bd6[_0x4690a1(0x200)](_0x1745e0,![])&&global_registry[_0x4690a1(0x239)])try{await _0x393809[_0x4690a1(0x321)](_0x212f57,_0x1cf317,_0x1195d8,_0x3292b3,_0x97bd01);const _0x4e5fa2={};_0x4e5fa2[_0x4690a1(0x2e5)]=WS_EVENTS['LOG'],_0x4e5fa2[_0x4690a1(0x1ee)]=_0x198bd6[_0x4690a1(0x334)],webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0x4e5fa2);!await _0x198bd6[_0x4690a1(0x1d6)](namespaceExists,_0x55378a,global_registry['hubHaNameSpace'])&&await _0x198bd6[_0x4690a1(0x1ea)](createNamespace,_0x55378a,global_registry[_0x4690a1(0x252)]);logger[_0x4690a1(0x2e0)](_0x198bd6[_0x4690a1(0x330)]);let _0x8b9d16=await fs[_0x4690a1(0x1ff)](path[_0x4690a1(0x279)](__dirname,_0x198bd6['iugXI'],_0x198bd6[_0x4690a1(0x1dd)],_0x198bd6[_0x4690a1(0x25e)],_0x198bd6[_0x4690a1(0x286)]),_0x198bd6[_0x4690a1(0x354)]);_0x8b9d16=_0x8b9d16[_0x4690a1(0x351)](/<RedisClientPassword>/g,_0x198bd6[_0x4690a1(0x305)](encodeBase64,global_registry[_0x4690a1(0x257)])),_0x8b9d16=_0x8b9d16[_0x4690a1(0x351)](/<KafkaClientPassword>/g,_0x198bd6[_0x4690a1(0x203)](encodeBase64,global_registry[_0x4690a1(0x1c6)])),_0x8b9d16=_0x8b9d16[_0x4690a1(0x351)](/<BstackUsername>/g,_0x198bd6[_0x4690a1(0x343)](encodeBase64,global_registry['bstackUsername'])),_0x8b9d16=_0x8b9d16[_0x4690a1(0x351)](/<BstackAccessKey>/g,_0x198bd6[_0x4690a1(0x23b)](encodeBase64,global_registry[_0x4690a1(0x2a0)]));const _0x4dea71=yaml[_0x4690a1(0x346)](_0x8b9d16);await _0x198bd6[_0x4690a1(0x246)](kubeApply,_0x4dea71,_0x1cf317),logger['info'](_0x198bd6['wUsuV']);let _0x7d982b=_0x198bd6[_0x4690a1(0x309)];if(_0x198bd6[_0x4690a1(0x313)](_0x4f300c,AZURE))_0x7d982b=_0x198bd6[_0x4690a1(0x2aa)];else _0x198bd6['fWBpQ'](_0x4f300c,GCP)&&(_0x7d982b=_0x198bd6[_0x4690a1(0x2c4)]);logger[_0x4690a1(0x2e0)](_0x198bd6[_0x4690a1(0x263)]);let _0x41e5de=await fs[_0x4690a1(0x1ff)](path[_0x4690a1(0x279)](__dirname,_0x198bd6['iugXI'],_0x198bd6[_0x4690a1(0x1dd)],_0x198bd6[_0x4690a1(0x25e)],_0x198bd6[_0x4690a1(0x311)]),_0x198bd6['XetHK']);_0x41e5de=_0x41e5de[_0x4690a1(0x351)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x41e5de=_0x41e5de[_0x4690a1(0x351)](/<StorageClassName>/g,_0x7d982b);const _0x91f011=yaml['loadAll'](_0x41e5de);await _0x198bd6[_0x4690a1(0x1db)](kubeApply,_0x91f011,_0x1cf317),logger[_0x4690a1(0x2e0)](_0x198bd6['pdZnA']),logger[_0x4690a1(0x2e0)](_0x198bd6[_0x4690a1(0x275)]);let _0x41eecf=await fs[_0x4690a1(0x1ff)](path[_0x4690a1(0x279)](__dirname,_0x198bd6[_0x4690a1(0x34f)],_0x198bd6['NzIVK'],_0x198bd6[_0x4690a1(0x25e)],_0x198bd6['BlSFg']),_0x198bd6[_0x4690a1(0x354)]);_0x41eecf=_0x41eecf['replace'](/<HubHaNameSpace>/g,global_registry[_0x4690a1(0x252)]),_0x41eecf=_0x41eecf[_0x4690a1(0x351)](/<StorageClassName>/g,_0x7d982b);const _0x32bc30=yaml[_0x4690a1(0x346)](_0x41eecf);await _0x198bd6[_0x4690a1(0x1db)](kubeApply,_0x32bc30,_0x1cf317),logger['info'](_0x198bd6[_0x4690a1(0x271)]),logger[_0x4690a1(0x2e0)](_0x198bd6[_0x4690a1(0x36b)]);let _0x101b0f=await fs[_0x4690a1(0x1ff)](path[_0x4690a1(0x279)](__dirname,_0x198bd6[_0x4690a1(0x34f)],_0x198bd6['NzIVK'],_0x198bd6['CiSGM'],_0x198bd6[_0x4690a1(0x260)]),_0x198bd6[_0x4690a1(0x354)]);_0x101b0f=_0x101b0f['replace'](/<UploaderImageVersion>/g,global_registry[_0x4690a1(0x35a)]),_0x101b0f=_0x101b0f[_0x4690a1(0x351)](/<HubHaNameSpace>/g,global_registry[_0x4690a1(0x252)]);const _0x5ef5ea=yaml['loadAll'](_0x101b0f);_0x198bd6[_0x4690a1(0x29f)](global_registry['cloudProvider'],AZURE)&&(_0x5ef5ea[0x0]['spec'][_0x4690a1(0x22a)][_0x4690a1(0x306)][_0x4690a1(0x333)]={'azure.workload.identity/use':_0x198bd6['fLAYX'],..._0x5ef5ea[0x0][_0x4690a1(0x2a6)]['template'][_0x4690a1(0x306)]['labels']},_0x5ef5ea[0x0]['spec'][_0x4690a1(0x22a)][_0x4690a1(0x2a6)][_0x4690a1(0x2e1)]=_0x198bd6[_0x4690a1(0x1ca)]);await _0x198bd6['dBQTI'](kubeApply,_0x5ef5ea,_0x1cf317),logger[_0x4690a1(0x2e0)](_0x198bd6[_0x4690a1(0x28b)]);const _0x3b4aa8={};_0x3b4aa8[_0x4690a1(0x2e5)]=WS_EVENTS[_0x4690a1(0x1e2)],_0x3b4aa8[_0x4690a1(0x1ee)]=_0x198bd6[_0x4690a1(0x22c)],webSocketUtils['sendEventToBackend'](_0x22be21,_0x3b4aa8),logger[_0x4690a1(0x2e0)](_0x198bd6[_0x4690a1(0x2fd)]);}catch(_0x17ef7d){const _0x5464f2=_0x198bd6['vLkPa'][_0x4690a1(0x202)]('|');let _0x5164a2=0x0;while(!![]){switch(_0x5464f2[_0x5164a2++]){case'0':_0x45ad63=_0x4690a1(0x368)+_0x17ef7d[_0x4690a1(0x1ee)];continue;case'1':process[_0x4690a1(0x328)](0x1);continue;case'2':await _0x198bd6['QsLpC'](reportToGalactusAndSendToEDS,_0x1195d8,_0x22be21,_0x45ad63,messageTypes[_0x4690a1(0x2a8)],_0x198bd6[_0x4690a1(0x376)],_0x198bd6[_0x4690a1(0x1d8)],_0x198bd6[_0x4690a1(0x29e)]);continue;case'3':await _0x393809['deleteCluster'](_0x55378a,global_registry[_0x4690a1(0x217)]);continue;case'4':logger[_0x4690a1(0x27c)](_0x45ad63);continue;}break;}}try{_0x25d268=_0x198bd6[_0x4690a1(0x303)](kebabCase,_0x4d207f),logger[_0x4690a1(0x2e0)](_0x198bd6[_0x4690a1(0x316)]);const _0x33b372={};_0x33b372[_0x4690a1(0x2e5)]=WS_EVENTS[_0x4690a1(0x1e2)],_0x33b372[_0x4690a1(0x1ee)]=_0x198bd6[_0x4690a1(0x316)],webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0x33b372);if(_0x198bd6['dnDRG'](_0x25d268,_0x198bd6[_0x4690a1(0x1ca)])){const _0x2e8047={};_0x2e8047['createdBy']=_0x198bd6['FZIoP'],_0x2e8047[_0x4690a1(0x28d)]=_0x198bd6[_0x4690a1(0x2af)];const _0x1c49f1={};_0x1c49f1['name']=_0x25d268,_0x1c49f1[_0x4690a1(0x2b6)]=_0x2e8047;const _0xe10990={};_0xe10990[_0x4690a1(0x306)]=_0x1c49f1;const _0x4515a2=_0xe10990,_0x83c73f={};_0x83c73f[_0x4690a1(0x238)]=_0x4515a2,await _0x55378a[_0x4690a1(0x2f3)](_0x83c73f),logger[_0x4690a1(0x2e0)](_0x198bd6['vobKx']);}const _0x49e5a7={};_0x49e5a7[_0x4690a1(0x2e5)]=WS_EVENTS[_0x4690a1(0x1e2)],_0x49e5a7[_0x4690a1(0x1ee)]=_0x198bd6['KNdex'],webSocketUtils['sendEventToBackend'](_0x22be21,_0x49e5a7);const _0x24931f={};_0x24931f[_0x4690a1(0x2e5)]=WS_EVENTS[_0x4690a1(0x1e2)],_0x24931f[_0x4690a1(0x1ee)]=_0x198bd6['hyfrz'],webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0x24931f),logger[_0x4690a1(0x2e0)](_0x198bd6[_0x4690a1(0x247)]);let _0x3c58e6={};_0x198bd6['aIZbz'](_0x4f300c,AZURE)&&(_0x3c58e6={'clientId':await _0x393809[_0x4690a1(0x323)](_0x4690a1(0x1d3)+_0x5056e0)});await _0x198bd6[_0x4690a1(0x31f)](addGridComponents,_0x55378a,_0x2c114a,_0x200bc0,_0x18021f,_0x25d268,_0x5056e0,_0x3806da,_0xed8517,_0x1cf317,_0x3c58e6),_0x45ad63=_0x198bd6[_0x4690a1(0x29d)],logger[_0x4690a1(0x2e0)](_0x45ad63);const _0x45892f={};_0x45892f['type']=WS_EVENTS[_0x4690a1(0x1e2)],_0x45892f[_0x4690a1(0x1ee)]=_0x45ad63,webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0x45892f),_0x45ad63=_0x198bd6[_0x4690a1(0x341)],logger[_0x4690a1(0x2e0)](_0x45ad63);const _0x3d5e33={};_0x3d5e33[_0x4690a1(0x2e5)]=WS_EVENTS[_0x4690a1(0x1e2)],_0x3d5e33['message']=_0x45ad63,webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0x3d5e33),await _0x198bd6[_0x4690a1(0x353)](waitForDeployment,_0x2c114a,_0x25d268,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x37edf2=await _0x198bd6['VvxBH'](getNamespaceUID,_0x55378a,_0x25d268),_0x160f8f=global_registry['isPrivateGrid']?_0x198bd6[_0x4690a1(0x2d7)]:_0x198bd6[_0x4690a1(0x358)],_0xa3cdc2={};_0xa3cdc2['name']=_0x160f8f,_0xa3cdc2[_0x4690a1(0x251)]=_0x198bd6[_0x4690a1(0x32c)];const _0x3cdaff=await _0x55378a[_0x4690a1(0x22d)](_0xa3cdc2);let _0x238463=_0x393809[_0x4690a1(0x338)](_0x3cdaff)+'/'+_0x25d268,_0x93f35e=_0x198bd6[_0x4690a1(0x361)];try{const _0x2bc192=_0x4690a1(0x248)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x37edf2,_0x24d862=await _0x198bd6['WndPP'](got,_0x2bc192,_0x4d4f08);(_0x198bd6[_0x4690a1(0x2e2)](_0x24d862,null)||_0x198bd6[_0x4690a1(0x2bc)](_0x24d862,undefined))&&(_0x45ad63=_0x198bd6[_0x4690a1(0x373)],await _0x198bd6[_0x4690a1(0x22e)](reportToGalactusAndSendToEDS,_0x1195d8,_0x22be21,_0x45ad63,messageTypes[_0x4690a1(0x2a8)],_0x198bd6['uTVVv'],_0x198bd6[_0x4690a1(0x2b9)],_0x198bd6[_0x4690a1(0x29e)]),logger[_0x4690a1(0x27c)](_0x45ad63),process[_0x4690a1(0x328)](0x1));_0x198bd6[_0x4690a1(0x270)](_0x24d862[_0x4690a1(0x33e)],0x191)&&(_0x45ad63=_0x198bd6[_0x4690a1(0x33c)],await _0x198bd6[_0x4690a1(0x2a3)](reportToGalactusAndSendToEDS,_0x1195d8,_0x22be21,_0x45ad63,messageTypes['ERROR'],_0x198bd6['uTVVv'],_0x198bd6[_0x4690a1(0x240)],_0x198bd6[_0x4690a1(0x29e)]),logger[_0x4690a1(0x27c)](_0x45ad63),process[_0x4690a1(0x328)](0x1));_0x198bd6['CsMmw'](_0x24d862[_0x4690a1(0x33e)],0xc8)&&(_0x45ad63=_0x4690a1(0x1cc)+JSON['stringify'](_0x24d862),await _0x198bd6['FnvHr'](reportToGalactusAndSendToEDS,_0x1195d8,_0x22be21,_0x45ad63,messageTypes[_0x4690a1(0x2a8)],_0x198bd6[_0x4690a1(0x376)],_0x198bd6['BjOyD'],_0x198bd6['QjIdN']),logger[_0x4690a1(0x27c)](_0x45ad63),process[_0x4690a1(0x328)](0x1));const _0x49d61f=JSON[_0x4690a1(0x28e)](_0x24d862[_0x4690a1(0x238)]);_0x49d61f['route53']&&(_0x238463=_0x49d61f[_0x4690a1(0x320)],_0x93f35e=_0x198bd6[_0x4690a1(0x2a2)]),global_registry[_0x4690a1(0x31a)]&&(_0x93f35e=_0x198bd6[_0x4690a1(0x361)]);}catch(_0x4c7953){}_0x45ad63=_0x4690a1(0x2b0)+_0x238463+'\x20',logger[_0x4690a1(0x2e0)](_0x45ad63);const _0x378014={};_0x378014[_0x4690a1(0x2e5)]=WS_EVENTS[_0x4690a1(0x1e2)],_0x378014[_0x4690a1(0x1ee)]=_0x45ad63,webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0x378014),_0x45ad63='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x93f35e+_0x4690a1(0x204)+_0x238463+_0x4690a1(0x288),logger[_0x4690a1(0x2e0)](_0x45ad63);const _0x206d46={};_0x206d46[_0x4690a1(0x2e5)]=WS_EVENTS[_0x4690a1(0x1e2)],_0x206d46[_0x4690a1(0x1ee)]=_0x45ad63,webSocketUtils['sendEventToBackend'](_0x22be21,_0x206d46);const _0x1fcc49={};_0x1fcc49['type']=WS_EVENTS['CLI_RUN_FINISHED'],_0x1fcc49[_0x4690a1(0x1ee)]=_0x4690a1(0x2fe)+_0x238463,webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0x1fcc49),await webSocketUtils[_0x4690a1(0x367)](0x7d0);}catch(_0x15e1c4){logger[_0x4690a1(0x27c)]('Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20'+_0x15e1c4+'\x20\x0a'+JSON[_0x4690a1(0x2dc)](_0x15e1c4[_0x4690a1(0x308)]));if(_0x198bd6[_0x4690a1(0x313)](_0x1745e0,![]))try{logger[_0x4690a1(0x2e0)](_0x198bd6[_0x4690a1(0x2ea)]),await _0x198bd6[_0x4690a1(0x234)](removeGridComponents,_0x55378a,_0x2c114a,_0x200bc0,_0x18021f,_0x25d268),await _0x393809[_0x4690a1(0x372)](_0x55378a,global_registry[_0x4690a1(0x217)]);}catch(_0xc2d1b4){logger[_0x4690a1(0x27c)](_0x4690a1(0x1fa)+_0xc2d1b4+'\x20\x0a'+JSON[_0x4690a1(0x2dc)](_0xc2d1b4[_0x4690a1(0x308)]));}throw _0x15e1c4;}}catch(_0x517c65){const _0xf17309=_0x4690a1(0x21d)+_0x517c65+'\x20\x0a'+JSON[_0x4690a1(0x2dc)](_0x517c65[_0x4690a1(0x308)]);if(_0x22be21){const _0x2267f0={};_0x2267f0[_0x4690a1(0x2e5)]=WS_EVENTS['LOG'],_0x2267f0[_0x4690a1(0x1ee)]=_0xf17309,webSocketUtils[_0x4690a1(0x2d8)](_0x22be21,_0x2267f0,_0x198bd6['QjIdN'],!![]);}await webSocketUtils[_0x4690a1(0x367)](0x7d0);const _0x1a9ff1={};_0x1a9ff1['error']=_0xf17309,await _0x198bd6['Owavq'](sendInstrumentationEvent,_0x1195d8,_0x198bd6[_0x4690a1(0x376)],messageTypes[_0x4690a1(0x2a8)],_0x198bd6[_0x4690a1(0x272)],_0x1a9ff1,_0x1195d8),logger['error'](_0xf17309);}process['exit'](0x0);};
@@ -1 +1 @@
1
- const a10_0x203160=a10_0x4725;function a10_0x4725(_0x555f35,_0x3ad160){const _0x19ca44=a10_0x19ca();return a10_0x4725=function(_0x472526,_0x2ace96){_0x472526=_0x472526-0xf6;let _0x4478f0=_0x19ca44[_0x472526];return _0x4478f0;},a10_0x4725(_0x555f35,_0x3ad160);}(function(_0x428a9d,_0x231125){const _0x304c3a=a10_0x4725,_0x5e91df=_0x428a9d();while(!![]){try{const _0x3ca134=parseInt(_0x304c3a(0xf9))/0x1+parseInt(_0x304c3a(0x108))/0x2*(-parseInt(_0x304c3a(0xf7))/0x3)+-parseInt(_0x304c3a(0xf8))/0x4*(parseInt(_0x304c3a(0xfb))/0x5)+parseInt(_0x304c3a(0xfa))/0x6+parseInt(_0x304c3a(0xfd))/0x7*(-parseInt(_0x304c3a(0xff))/0x8)+-parseInt(_0x304c3a(0x102))/0x9+parseInt(_0x304c3a(0xfe))/0xa;if(_0x3ca134===_0x231125)break;else _0x5e91df['push'](_0x5e91df['shift']());}catch(_0x5022d0){_0x5e91df['push'](_0x5e91df['shift']());}}}(a10_0x19ca,0x62c6a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x203160(0x107));exports[a10_0x203160(0x100)]='delete',exports[a10_0x203160(0xfc)]='List\x20Grid\x20resources.',exports[a10_0x203160(0x103)]=function(_0x683bb4){const _0x1cc6a5=a10_0x203160,_0x3ee93f={};_0x3ee93f[_0x1cc6a5(0xf6)]='delete_commands',_0x3ee93f[_0x1cc6a5(0x10a)]='help';const _0x3c75c1=_0x3ee93f;return _0x683bb4['usage'](HELP_HEADER_MESSAGE[_0x1cc6a5(0x101)])[_0x1cc6a5(0x10b)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3c75c1[_0x1cc6a5(0xf6)])[_0x1cc6a5(0x104)]()['recommendCommands']()[_0x1cc6a5(0x106)]()[_0x1cc6a5(0x105)](_0x3c75c1[_0x1cc6a5(0x10a)]);},exports[a10_0x203160(0x109)]=function(_0x3cae3e){};function a10_0x19ca(){const _0x931b40=['1037778AxMips','15750500iESOrt','40LBlXxe','command','delete','3653748nsVAtf','builder','demandCommand','help','strict','../config/constants','28962NIMzaI','handler','mNxlx','epilogue','EGSFp','117SGaXBa','3292cJjLop','269061JhbgGS','2617518hHawUB','995YNPhHu','desc'];a10_0x19ca=function(){return _0x931b40;};return a10_0x19ca();}
1
+ const a10_0x42a2e4=a10_0x28d0;(function(_0x2a00c3,_0x328d82){const _0x158a3e=a10_0x28d0,_0x586698=_0x2a00c3();while(!![]){try{const _0xa64985=-parseInt(_0x158a3e(0x81))/0x1+parseInt(_0x158a3e(0x75))/0x2*(-parseInt(_0x158a3e(0x77))/0x3)+-parseInt(_0x158a3e(0x7c))/0x4*(-parseInt(_0x158a3e(0x89))/0x5)+parseInt(_0x158a3e(0x7a))/0x6*(parseInt(_0x158a3e(0x84))/0x7)+-parseInt(_0x158a3e(0x83))/0x8+parseInt(_0x158a3e(0x78))/0x9*(-parseInt(_0x158a3e(0x8e))/0xa)+parseInt(_0x158a3e(0x85))/0xb*(parseInt(_0x158a3e(0x7e))/0xc);if(_0xa64985===_0x328d82)break;else _0x586698['push'](_0x586698['shift']());}catch(_0x43ce03){_0x586698['push'](_0x586698['shift']());}}}(a10_0x4d8a,0x20e4a));function a10_0x28d0(_0x1385aa,_0x3a8900){const _0x4d8afa=a10_0x4d8a();return a10_0x28d0=function(_0x28d0d0,_0x3b0a64){_0x28d0d0=_0x28d0d0-0x74;let _0x322920=_0x4d8afa[_0x28d0d0];return _0x322920;},a10_0x28d0(_0x1385aa,_0x3a8900);}function a10_0x4d8a(){const _0x1f8241=['builder','oRVSF','help','demandCommand','768490QznsrE','../config/constants','2jFWvBI','epilogue','117366zXBpRW','18fokHZm','usage','42zxzHTG','desc','11116cZTDKq','handler','12otIQTt','recommendCommands','List\x20Grid\x20resources.','94610DJilWR','commandDir','1618336tuqmjC','49406bQXgza','6111523oQkJoa','strict','command','qBURL','35jHtKJW'];a10_0x4d8a=function(){return _0x1f8241;};return a10_0x4d8a();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x42a2e4(0x74));exports[a10_0x42a2e4(0x87)]='delete',exports[a10_0x42a2e4(0x7b)]=a10_0x42a2e4(0x80),exports[a10_0x42a2e4(0x8a)]=function(_0x50a2c2){const _0x253d71=a10_0x42a2e4,_0x147d8c={};_0x147d8c[_0x253d71(0x88)]='delete_commands',_0x147d8c['oRVSF']='help';const _0x4c7a58=_0x147d8c;return _0x50a2c2[_0x253d71(0x79)](HELP_HEADER_MESSAGE['delete'])[_0x253d71(0x76)](HELP_FOOTER_MESSAGE)[_0x253d71(0x82)](_0x4c7a58['qBURL'])[_0x253d71(0x8d)]()[_0x253d71(0x7f)]()[_0x253d71(0x86)]()[_0x253d71(0x8c)](_0x4c7a58[_0x253d71(0x8b)]);},exports[a10_0x42a2e4(0x7d)]=function(_0x2aa340){};
@@ -1 +1 @@
1
- const a11_0x19f7f1=a11_0x1bf0;function a11_0x1bf0(_0x3d098d,_0x2754b0){const _0xdc58ba=a11_0xdc58();return a11_0x1bf0=function(_0x1bf07e,_0x5515c2){_0x1bf07e=_0x1bf07e-0x120;let _0x19890a=_0xdc58ba[_0x1bf07e];return _0x19890a;},a11_0x1bf0(_0x3d098d,_0x2754b0);}(function(_0x42af4e,_0x3adcb5){const _0x46d69c=a11_0x1bf0,_0x32f408=_0x42af4e();while(!![]){try{const _0x50c5be=-parseInt(_0x46d69c(0x17a))/0x1*(parseInt(_0x46d69c(0x164))/0x2)+-parseInt(_0x46d69c(0x170))/0x3*(parseInt(_0x46d69c(0x1a3))/0x4)+parseInt(_0x46d69c(0x19d))/0x5+-parseInt(_0x46d69c(0x15b))/0x6+parseInt(_0x46d69c(0x19a))/0x7*(-parseInt(_0x46d69c(0x1ac))/0x8)+-parseInt(_0x46d69c(0x14a))/0x9+parseInt(_0x46d69c(0x15f))/0xa*(parseInt(_0x46d69c(0x1b6))/0xb);if(_0x50c5be===_0x3adcb5)break;else _0x32f408['push'](_0x32f408['shift']());}catch(_0x5884b2){_0x32f408['push'](_0x32f408['shift']());}}}(a11_0xdc58,0x67c49));function a11_0xdc58(){const _0x4e170d=['TmoGg','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','argv','jrpRg','readFileSync','2245518WmwsHL','NAwCY','ZpWKL','reconnecting-websocket','XLbGY','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','../../utils/createk8sClient','existsSync','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','dMbWV','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','UtAIz','foyNY','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','jXhsI','jPfSt','2174604Ffgseu','KSzWE','WOCnu','toLowerCase','10qLexgO','nEEgL','Rwgxi','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','ENfDG','320564qYsOEL','ysjeq','lcOXK','DELETE','grid','DjKXG','username','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','QDsFT','\x22\x20with\x20ID\x20','XZLvG','info','1322214ctwmOQ','OJQjP','LDXSJ','hKgEK','cloudProvider','readNamespace','SmEoi','rdfXA','VnlUC','Pass\x20the\x20ID\x20of\x20the\x20Grid','1HVkFYA','../../utils/webSocketUtils','jpxfp','grid-id','then','FgEjj','body','onlyGridInCluster','exit','Failed\x20to\x20delete\x20resources!\x20Error:\x20','skip-tls-cert-verify','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','string','region','help','XTovN','Cluster:\x20','\x22\x20and\x20ID\x20','XggBo','statusCode','clusterRegion','aBFcZ','Namespace:\x20','builder','gridId','kPgCj','description','OPsTN','HhsfG','xiigz','TAhQG','handler','19397pjPEhG','WknpU','default','810255EONgXg','../../utils/utilityMethods','uLqgg','zFBwp','tznUF','name','4dIiiYP','catch','usage','delete-grid-called','../../utils/gridComponents','<UsernamePlaceholder>','epilogue','../../cloudproviders/utils','YdEIV','984qUOGCa','isClusterPresent','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','szADu','xHmXK','YxclT','MDbmx','invalid-input','mzdLb','ukyjh','19984481llDjZA','command','yEOUE','JKZfO','Browserstack','unknown-error','mFCau','gLuVx','boolean','password','INFO','EEXlo','../../config/logger','skipTlsCertVerify','kDFhq','options','clusterName','../../utils/userInput','lYZKX','delete','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','replace','lKXnc','uuid','wwfja','vFUEn','jewFn','clusterId','/packages/cli/grid/','type','YITXu','server-error','uAcaN','tugqq','warn','got','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','nKVQy','aqXWs','deleteCluster','WZXgV','kGQfu','XZrvo','error','isBrowserstackCluster','../../utils/instrumentationUtils','ncCGm','<PasswordPlaceholder>','../../config/constants','ERROR','QMdWp','message','eucEo','jYXFi','requestId','RATFL','parse','AOSXI','HNzTY','RUMsu','ivtQC','WebSocket','desc'];a11_0xdc58=function(){return _0x4e170d;};return a11_0xdc58();}const fs=require('fs'),got=require(a11_0x19f7f1(0x129)),{v4:uuidv4}=require(a11_0x19f7f1(0x1cd)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x19f7f1(0x14d)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x19f7f1(0x136)),{logger}=require(a11_0x19f7f1(0x1c2)),{getCloudProviderObject}=require(a11_0x19f7f1(0x1aa)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x19f7f1(0x1a7)),{sendInstrumentationEvent}=require(a11_0x19f7f1(0x133)),{inputConfirmation}=require(a11_0x19f7f1(0x1c7)),{createK8sClient}=require(a11_0x19f7f1(0x150)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x19f7f1(0x19e)),webSocketUtils=require(a11_0x19f7f1(0x17b));exports[a11_0x19f7f1(0x1b7)]=a11_0x19f7f1(0x168),exports[a11_0x19f7f1(0x144)]='Delete\x20an\x20Automation\x20grid.',exports[a11_0x19f7f1(0x191)]=function(_0x5ef327){const _0xe8c03f=a11_0x19f7f1,_0x5df3d7={};_0x5df3d7[_0xe8c03f(0x166)]=_0xe8c03f(0x179),_0x5df3d7[_0xe8c03f(0x1b5)]=_0xe8c03f(0x186),_0x5df3d7['wwfja']='Skip\x20insecure\x20cert\x20verification.',_0x5df3d7[_0xe8c03f(0x169)]=_0xe8c03f(0x1be),_0x5df3d7[_0xe8c03f(0x1c8)]=_0xe8c03f(0x188);const _0x31f813=_0x5df3d7,_0x432287={};_0x432287[_0xe8c03f(0x194)]=_0x31f813[_0xe8c03f(0x166)],_0x432287['type']=_0x31f813['ukyjh'];const _0x21ee86={};_0x21ee86[_0xe8c03f(0x194)]=_0x31f813[_0xe8c03f(0x1ce)],_0x21ee86[_0xe8c03f(0x123)]=_0x31f813['DjKXG'],_0x21ee86[_0xe8c03f(0x19c)]=![];const _0x4d6802={};return _0x4d6802[_0xe8c03f(0x17d)]=_0x432287,_0x4d6802[_0xe8c03f(0x184)]=_0x21ee86,_0x5ef327[_0xe8c03f(0x1a5)](HELP_HEADER_MESSAGE[_0xe8c03f(0x1c9)])[_0xe8c03f(0x1a9)](HELP_FOOTER_MESSAGE)[_0xe8c03f(0x1c5)](_0x4d6802)[_0xe8c03f(0x188)](_0x31f813[_0xe8c03f(0x1c8)])[_0xe8c03f(0x147)];},exports[a11_0x19f7f1(0x199)]=async function(_0x53a599){const _0x6917e9=a11_0x19f7f1,_0x42cc58={'YdEIV':_0x6917e9(0x12a),'XggBo':'Successfully\x20deleted\x20the\x20grid','OJQjP':function(_0x2341e0,_0x579185){return _0x2341e0===_0x579185;},'HNzTY':'fJSqn','xiigz':_0x6917e9(0x179),'nKVQy':_0x6917e9(0x186),'MDbmx':'Skip\x20insecure\x20cert\x20verification.','mFCau':_0x6917e9(0x1be),'AOSXI':_0x6917e9(0x188),'EEXlo':function(_0x56f6dd,_0x1b0798){return _0x56f6dd===_0x1b0798;},'kGQfu':_0x6917e9(0x159),'XTovN':_0x6917e9(0x172),'YITXu':_0x6917e9(0x162),'ENfDG':function(_0x331e96){return _0x331e96();},'OPsTN':function(_0x3fc5da,_0x5b4b7a){return _0x3fc5da!==_0x5b4b7a;},'Rwgxi':_0x6917e9(0x120),'lKXnc':_0x6917e9(0x1ca),'TAhQG':function(_0x109a2d,_0xea9fa7,_0x10a069,_0x6ae5e6,_0x5e1b09,_0x281d22,_0x262c3d){return _0x109a2d(_0xea9fa7,_0x10a069,_0x6ae5e6,_0x5e1b09,_0x281d22,_0x262c3d);},'YxclT':_0x6917e9(0x1a6),'HrIBB':'init-not-called','QMdWp':_0x6917e9(0x1af),'KSzWE':function(_0x2a2906){return _0x2a2906();},'XZLvG':function(_0x2539ae,_0x208f3,_0x1471c5,_0x12b7b1){return _0x2539ae(_0x208f3,_0x1471c5,_0x12b7b1);},'jpxfp':function(_0x14792d,_0x17d013){return _0x14792d===_0x17d013;},'zERda':_0x6917e9(0x1ba),'WOCnu':function(_0x3d937b,_0x137e80){return _0x3d937b!==_0x137e80;},'WZXgV':_0x6917e9(0x1b9),'foyNY':function(_0xb7054c,_0x3dbd4f){return _0xb7054c(_0x3dbd4f);},'SmEoi':function(_0x15be8a,_0x2e34d4){return _0x15be8a===_0x2e34d4;},'jYXFi':function(_0x489cae,_0x245694){return _0x489cae===_0x245694;},'WBbGk':function(_0x22a15b,_0x39184a){return _0x22a15b!==_0x39184a;},'VnlUC':_0x6917e9(0x1b0),'yEOUE':_0x6917e9(0x148),'Itzzr':_0x6917e9(0x14f),'nEEgL':function(_0x4fef11,_0x2c6500,_0x4a18fb,_0x55dcc8,_0x4d6731,_0x305a96,_0x13b89f){return _0x4fef11(_0x2c6500,_0x4a18fb,_0x55dcc8,_0x4d6731,_0x305a96,_0x13b89f);},'RATFL':_0x6917e9(0x1b3),'eucEo':_0x6917e9(0x153),'XZrvo':_0x6917e9(0x1a8),'UtAIz':_0x6917e9(0x135),'hKgEK':function(_0x11b037,_0x4163ff,_0x3a11c1,_0xa99efd,_0x498689,_0x53552a,_0x1946bc){return _0x11b037(_0x4163ff,_0x3a11c1,_0xa99efd,_0x498689,_0x53552a,_0x1946bc);},'aBFcZ':function(_0x37a985,_0x2042bc){return _0x37a985(_0x2042bc);},'kPgCj':function(_0x5534cb,_0x5b0bea,_0xc51d61){return _0x5534cb(_0x5b0bea,_0xc51d61);},'QDsFT':function(_0x3c265f,_0xdab999,_0x43de60,_0x3406e9,_0x182550,_0x9bc196){return _0x3c265f(_0xdab999,_0x43de60,_0x3406e9,_0x182550,_0x9bc196);},'tugqq':function(_0x668be,_0x24aa47){return _0x668be!==_0x24aa47;},'XkNwT':_0x6917e9(0x1a0),'WknpU':_0x6917e9(0x19f),'vWjsA':'ZKxxL','RUMsu':_0x6917e9(0x14c),'jPfSt':_0x6917e9(0x167),'tznUF':function(_0x1383c0,_0x1298c6,_0x1954be){return _0x1383c0(_0x1298c6,_0x1954be);},'HhsfG':function(_0x185b1c,_0x21d14b){return _0x185b1c!==_0x21d14b;},'NAwCY':function(_0x5ee553,_0x13114f){return _0x5ee553===_0x13114f;},'ncCGm':_0x6917e9(0x125),'XLbGY':function(_0xc996f7,_0x31a1cc){return _0xc996f7===_0x31a1cc;},'ivtQC':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','TmoGg':function(_0x232c5a,_0x438fa6,_0x3cfbb9,_0x38e86c,_0x1c3f7e,_0x56c2ec,_0x51b366){return _0x232c5a(_0x438fa6,_0x3cfbb9,_0x38e86c,_0x1c3f7e,_0x56c2ec,_0x51b366);},'kDFhq':'unauthorised','NnLud':'invalid-grid-id','rdfXA':function(_0x100974,_0x494ea4,_0x4ed3b3,_0x53279e,_0x4a6447,_0x59512f,_0x2dfc2f){return _0x100974(_0x494ea4,_0x4ed3b3,_0x53279e,_0x4a6447,_0x59512f,_0x2dfc2f);},'gLuVx':function(_0x24bee7,_0x53ba89,_0x2402cb,_0x2726bc,_0x15c953,_0x48f7b7,_0x21223a){return _0x24bee7(_0x53ba89,_0x2402cb,_0x2726bc,_0x15c953,_0x48f7b7,_0x21223a);},'mzdLb':_0x6917e9(0x1bb)};try{global_registry[_0x6917e9(0x13c)]=_0x42cc58[_0x6917e9(0x163)](uuidv4);!fs[_0x6917e9(0x151)](_0x42cc58[_0x6917e9(0x163)](getCredentialsPath))&&(_0x42cc58[_0x6917e9(0x195)](_0x42cc58[_0x6917e9(0x161)],_0x42cc58[_0x6917e9(0x161)])?_0x5488f2['exit'](0x0):(console[_0x6917e9(0x131)](_0x42cc58[_0x6917e9(0x1cc)]),await _0x42cc58['TAhQG'](sendInstrumentationEvent,_0x53a599,_0x42cc58[_0x6917e9(0x1b1)],messageTypes[_0x6917e9(0x137)],_0x42cc58['HrIBB'],null,_0x53a599),process[_0x6917e9(0x182)](0x1)));_0x42cc58[_0x6917e9(0x198)](sendInstrumentationEvent,_0x53a599,_0x42cc58[_0x6917e9(0x1b1)],messageTypes[_0x6917e9(0x1c0)],null,null,_0x53a599);!_0x53a599['gridId']&&(_0x42cc58['EEXlo'](_0x42cc58['QMdWp'],_0x42cc58[_0x6917e9(0x138)])?(console['error'](_0x42cc58[_0x6917e9(0x124)]),process[_0x6917e9(0x182)](0x1)):_0x1e2dcb=_0x6917e9(0x158)+_0x15d54e[_0x6917e9(0x1a2)]+_0x6917e9(0x18b)+_0x9a245c['id']+_0x6917e9(0x152)+_0x4614d8[_0x6917e9(0x1c6)]+_0x6917e9(0x16d)+_0x242cb7['clusterId']+_0x6917e9(0x1ae));const _0x5e67ae=JSON['parse'](fs[_0x6917e9(0x149)](_0x42cc58[_0x6917e9(0x15c)](getCredentialsPath))),[_0x17d31a,_0x411b71]=await _0x42cc58[_0x6917e9(0x16e)](getGridDetails,_0x5e67ae[_0x6917e9(0x1ba)][_0x6917e9(0x16a)],_0x5e67ae[_0x6917e9(0x1ba)][_0x6917e9(0x1bf)],_0x53a599[_0x6917e9(0x192)]);if(_0x411b71){const _0x19f1e9=_0x411b71[_0x6917e9(0x16f)];let _0x14e6bc=_0x6917e9(0x158)+_0x19f1e9[_0x6917e9(0x1a2)]+_0x6917e9(0x18b)+_0x19f1e9['id']+_0x6917e9(0x1ae);_0x411b71[_0x6917e9(0x181)]&&_0x42cc58[_0x6917e9(0x17c)](_0x411b71['clusterSpawnedVia'],_0x42cc58['zERda'])&&(_0x42cc58[_0x6917e9(0x15d)](_0x42cc58[_0x6917e9(0x12e)],_0x42cc58['WZXgV'])?_0x3e97dd[_0x6917e9(0x128)](_0x42cc58[_0x6917e9(0x1ab)]):_0x14e6bc=_0x6917e9(0x158)+_0x19f1e9['name']+_0x6917e9(0x18b)+_0x19f1e9['id']+_0x6917e9(0x152)+_0x19f1e9[_0x6917e9(0x1c6)]+'\x22\x20with\x20ID\x20'+_0x19f1e9[_0x6917e9(0x121)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');const _0x1e237d=await _0x42cc58[_0x6917e9(0x157)](inputConfirmation,_0x14e6bc);(_0x42cc58['SmEoi'](_0x1e237d,undefined)||_0x42cc58[_0x6917e9(0x13b)](_0x1e237d,null)||!(_0x42cc58[_0x6917e9(0x1c1)](_0x1e237d['toLowerCase'](),'y')||_0x42cc58['SmEoi'](_0x1e237d[_0x6917e9(0x15e)](),'n')))&&(_0x42cc58['WBbGk'](_0x42cc58[_0x6917e9(0x178)],_0x42cc58[_0x6917e9(0x1b8)])?(console[_0x6917e9(0x131)](_0x42cc58['Itzzr']),await _0x42cc58[_0x6917e9(0x160)](sendInstrumentationEvent,_0x53a599,_0x42cc58['YxclT'],messageTypes['ERROR'],_0x42cc58[_0x6917e9(0x13d)],null,_0x53a599),process[_0x6917e9(0x182)](0x1)):_0x4d5a6d[_0x6917e9(0x128)](_0x6917e9(0x18a)+_0x30d602[_0x6917e9(0x1c6)]+_0x6917e9(0x155)));_0x42cc58['EEXlo'](_0x1e237d[_0x6917e9(0x15e)](),'n')&&(_0x42cc58[_0x6917e9(0x176)](_0x42cc58[_0x6917e9(0x13a)],_0x42cc58[_0x6917e9(0x13a)])?process['exit'](0x0):_0x56e474[_0x6917e9(0x16f)](_0x6917e9(0x190)+_0x3f2c90+_0x6917e9(0x185)));const _0x450780=WS_ENDPOINT[_0x6917e9(0x1cb)](_0x42cc58[_0x6917e9(0x130)],_0x5e67ae[_0x6917e9(0x1ba)][_0x6917e9(0x16a)])[_0x6917e9(0x1cb)](_0x42cc58[_0x6917e9(0x156)],_0x5e67ae[_0x6917e9(0x1ba)][_0x6917e9(0x1bf)]),_0x24420d={};_0x24420d[_0x6917e9(0x143)]=ws,_0x24420d['connectionTimeout']=0x36ee80;const _0x41ae63=new ReconnectingWebSocket(_0x450780,[],_0x24420d);global_registry[_0x6917e9(0x18e)]=_0x19f1e9[_0x6917e9(0x187)];const _0x50d8f1=_0x19f1e9[_0x6917e9(0x174)],_0x152a81=await _0x42cc58[_0x6917e9(0x173)](getCloudProviderObject,_0x50d8f1,_0x19f1e9[_0x6917e9(0x1c6)],_0x19f1e9[_0x6917e9(0x1a2)],_0x41ae63,webSocketUtils,_0x53a599),_0x379dbf=await _0x152a81[_0x6917e9(0x1ad)]();if(_0x379dbf){const _0x111b0d=_0x42cc58[_0x6917e9(0x18f)](kebabCase,_0x19f1e9[_0x6917e9(0x1a2)]),[_0xe0c5d1,_0x52a04d,_0x32a99b,_0x1f4fe1,_0x3bce64,_0x62d756]=await _0x42cc58[_0x6917e9(0x193)](createK8sClient,_0x152a81,_0x53a599[_0x6917e9(0x1c3)]);let _0x59d11f=!![];const _0x29cb70={};_0x29cb70[_0x6917e9(0x1a2)]=_0x111b0d,await _0xe0c5d1[_0x6917e9(0x175)](_0x29cb70)[_0x6917e9(0x17e)](_0x376a83=>{const _0x3cbaf5=_0x6917e9;_0x42cc58[_0x3cbaf5(0x171)](_0x42cc58[_0x3cbaf5(0x140)],_0x42cc58[_0x3cbaf5(0x140)])?logger['info'](_0x3cbaf5(0x190)+_0x111b0d+_0x3cbaf5(0x185)):(_0x2d0f2b[_0x3cbaf5(0x16f)](_0x42cc58['XggBo']),_0x3a7c8a[_0x3cbaf5(0x182)](0x0));})[_0x6917e9(0x1a4)](_0x4f524b=>{const _0x211110=_0x6917e9,_0x24c12c={};_0x24c12c[_0x211110(0x1cf)]=_0x42cc58[_0x211110(0x197)],_0x24c12c[_0x211110(0x126)]=_0x42cc58[_0x211110(0x12b)],_0x24c12c['ysjeq']=_0x42cc58[_0x211110(0x1b2)],_0x24c12c[_0x211110(0x12c)]=_0x42cc58[_0x211110(0x1bc)],_0x24c12c[_0x211110(0x17f)]=_0x42cc58[_0x211110(0x13f)];const _0x3a4b44=_0x24c12c;if(_0x42cc58[_0x211110(0x1c1)](_0x42cc58[_0x211110(0x12f)],_0x42cc58[_0x211110(0x189)])){const _0x1dc57c={};_0x1dc57c[_0x211110(0x194)]=_0x3a4b44[_0x211110(0x1cf)],_0x1dc57c[_0x211110(0x123)]=_0x3a4b44[_0x211110(0x126)];const _0x1ade2c={};_0x1ade2c[_0x211110(0x194)]=_0x3a4b44[_0x211110(0x165)],_0x1ade2c[_0x211110(0x123)]=_0x3a4b44[_0x211110(0x12c)],_0x1ade2c[_0x211110(0x19c)]=![];const _0x13db09={};return _0x13db09['grid-id']=_0x1dc57c,_0x13db09['skip-tls-cert-verify']=_0x1ade2c,_0x5d8882['usage'](_0x1ab861[_0x211110(0x1c9)])[_0x211110(0x1a9)](_0x559df0)['options'](_0x13db09)[_0x211110(0x188)](_0x3a4b44['FgEjj'])[_0x211110(0x147)];}else logger[_0x211110(0x128)]('Namespace:\x20'+_0x111b0d+_0x211110(0x154)),_0x59d11f=![];});if(_0x59d11f){await _0x42cc58[_0x6917e9(0x16c)](removeGridComponents,_0xe0c5d1,_0x52a04d,_0x32a99b,_0x1f4fe1,_0x111b0d);if(_0x411b71[_0x6917e9(0x181)]){const _0x2adc20=await _0x152a81[_0x6917e9(0x132)]();_0x2adc20?_0x42cc58[_0x6917e9(0x127)](_0x42cc58['XkNwT'],_0x42cc58[_0x6917e9(0x19b)])?await _0x152a81[_0x6917e9(0x12d)](_0xe0c5d1,_0x19f1e9['region']):(_0x2d81f3[_0x6917e9(0x128)](_0x6917e9(0x190)+_0x111495+_0x6917e9(0x154)),_0x4ef274=![]):_0x42cc58[_0x6917e9(0x15d)](_0x42cc58['vWjsA'],_0x42cc58[_0x6917e9(0x141)])?logger['warn'](_0x6917e9(0x18a)+_0x19f1e9[_0x6917e9(0x1c6)]+_0x6917e9(0x155)):(_0x5b0bcc[_0x6917e9(0x131)](_0x42cc58['YITXu']),_0x3b8c3a[_0x6917e9(0x182)](0x1));}}}else logger['warn'](_0x42cc58[_0x6917e9(0x1ab)]);const _0x5602bb='https://'+AG_API_URL+_0x6917e9(0x122)+_0x53a599[_0x6917e9(0x192)],_0x4c8327={'method':_0x42cc58[_0x6917e9(0x15a)],'headers':_0x42cc58[_0x6917e9(0x1a1)](getAuthHeader,_0x5e67ae['Browserstack'][_0x6917e9(0x16a)],_0x5e67ae[_0x6917e9(0x1ba)][_0x6917e9(0x1bf)]),'throwHttpErrors':![]},_0x168bfe=await _0x42cc58[_0x6917e9(0x1a1)](got,_0x5602bb,_0x4c8327);_0x42cc58[_0x6917e9(0x196)](_0x168bfe,null)&&_0x42cc58['tugqq'](_0x168bfe,undefined)&&_0x42cc58['NAwCY'](_0x168bfe[_0x6917e9(0x18d)],0xc8)&&(logger['info'](_0x42cc58[_0x6917e9(0x18c)]),process[_0x6917e9(0x182)](0x0)),logger[_0x6917e9(0x131)](_0x6917e9(0x146)+_0x168bfe['body']),await _0x42cc58['nEEgL'](sendInstrumentationEvent,_0x53a599,_0x42cc58[_0x6917e9(0x1b1)],messageTypes[_0x6917e9(0x137)],_0x42cc58[_0x6917e9(0x134)],_0x17d31a,_0x53a599),process[_0x6917e9(0x182)](0x1);}_0x42cc58[_0x6917e9(0x14e)](_0x17d31a[_0x6917e9(0x18d)],0x191)&&(logger[_0x6917e9(0x131)](_0x42cc58[_0x6917e9(0x142)]),await _0x42cc58[_0x6917e9(0x145)](sendInstrumentationEvent,_0x53a599,_0x42cc58[_0x6917e9(0x1b1)],messageTypes[_0x6917e9(0x137)],_0x42cc58[_0x6917e9(0x1c4)],null,_0x53a599),process[_0x6917e9(0x182)](0x1)),_0x42cc58[_0x6917e9(0x14b)](_0x17d31a[_0x6917e9(0x18d)],0x190)&&(logger[_0x6917e9(0x131)](JSON[_0x6917e9(0x13e)](_0x17d31a[_0x6917e9(0x180)])[_0x6917e9(0x139)]),await _0x42cc58[_0x6917e9(0x173)](sendInstrumentationEvent,_0x53a599,_0x42cc58[_0x6917e9(0x1b1)],messageTypes[_0x6917e9(0x137)],_0x42cc58['NnLud'],null,_0x53a599),process[_0x6917e9(0x182)](0x1)),logger[_0x6917e9(0x131)](_0x6917e9(0x16b)+JSON['stringify'](_0x17d31a)),await _0x42cc58[_0x6917e9(0x177)](sendInstrumentationEvent,_0x53a599,_0x42cc58[_0x6917e9(0x1b1)],messageTypes['ERROR'],_0x42cc58[_0x6917e9(0x134)],_0x17d31a,_0x53a599),process[_0x6917e9(0x182)](0x1);}catch(_0x2494e2){logger[_0x6917e9(0x131)](_0x6917e9(0x183)+_0x2494e2['stack']),await _0x42cc58[_0x6917e9(0x1bd)](sendInstrumentationEvent,_0x53a599,_0x42cc58[_0x6917e9(0x1b1)],messageTypes['ERROR'],_0x42cc58[_0x6917e9(0x1b4)],_0x2494e2,_0x53a599),process[_0x6917e9(0x182)](0x1);}};
1
+ function a11_0x14a4(){const _0x24b2d0=['desc','GDVla','/packages/cli/grid/','rsFaV','default','hbfyL','MpsYW','boolean','QHQux','FhWUv','epilogue','NRcBi','../../utils/webSocketUtils','bwxHj','eLUeb','YKWhI','\x22\x20and\x20ID\x20','string','type','info','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','password','bCfBw','pTDtV','unauthorised','YFqrn','server-error','skipTlsCertVerify','pYozl','HVuGy','connectionTimeout','ftbZb','builder','grid-id','XPgOT','toLowerCase','MERFG','rJKUu','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','description','Delete\x20an\x20Automation\x20grid.','grid','CYfRM','warn','../../config/constants','region','../../utils/createk8sClient','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','gdyvA','19739568BFAbAQ','../../utils/gridComponents','QwUHy','qoKmn','INFO','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','emEIS','6033090mbvMgs','zpduM','rbEzH','ZLhxJ','options','giapE','init-not-called','JgABU','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','CbxiN','eiBFI','MLTDC','Skip\x20insecure\x20cert\x20verification.','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','onlyGridInCluster','2497716AKEBKp','gGCPq','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','yCjvX','existsSync','invalid-input','clusterRegion','nZBxt','kAWVz','command','replace','pBzLr','WebSocket','PjovS','error','ZAEUC','IOLqc','enBPh','sYBrC','parse','uuid','readFileSync','reconnecting-websocket','ULycE','NUkUb','then','stack','fHYPw','ERROR','KAwno','WZDge','\x22\x20with\x20ID\x20','../../config/logger','AQKUe','AxnZh','fwRFg','Pass\x20the\x20ID\x20of\x20the\x20Grid','Namespace:\x20','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','Successfully\x20deleted\x20the\x20grid','sPLzR','Failed\x20to\x20delete\x20resources!\x20Error:\x20','tzRUl','jgKuY','DUjgp','grWyf','statusCode','delete','bmorS','zgUpo','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','../../cloudproviders/utils','argv','mwILr','username','8427KkKFbt','../../utils/instrumentationUtils','147216iQgCLZ','https://','exit','skip-tls-cert-verify','qxImo','name','gridId','readNamespace','cloudProvider','Browserstack','help','message','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','sdKiu','clusterId','Hycyl','730364TNLPMk','qwOIL','887200mmCQmO','BPASI','body','Zivim','isBrowserstackCluster','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','aGrzK','../../utils/userInput','clusterName','5BexDsq','btxqq','WxiZX','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','usage','uRMSN','DmlkM'];a11_0x14a4=function(){return _0x24b2d0;};return a11_0x14a4();}function a11_0x4611(_0x44ac2c,_0x4d15ca){const _0x14a4d5=a11_0x14a4();return a11_0x4611=function(_0x461156,_0x2e8b25){_0x461156=_0x461156-0x10f;let _0x2a54b3=_0x14a4d5[_0x461156];return _0x2a54b3;},a11_0x4611(_0x44ac2c,_0x4d15ca);}const a11_0x1dea7d=a11_0x4611;(function(_0x16b2fc,_0x59ee64){const _0x316956=a11_0x4611,_0x190a24=_0x16b2fc();while(!![]){try{const _0x24ce9a=parseInt(_0x316956(0x1af))/0x1+-parseInt(_0x316956(0x11f))/0x2+-parseInt(_0x316956(0x178))/0x3+-parseInt(_0x316956(0x121))/0x4*(-parseInt(_0x316956(0x12a))/0x5)+-parseInt(_0x316956(0x10f))/0x6+-parseInt(_0x316956(0x169))/0x7+parseInt(_0x316956(0x162))/0x8;if(_0x24ce9a===_0x59ee64)break;else _0x190a24['push'](_0x190a24['shift']());}catch(_0x28019e){_0x190a24['push'](_0x190a24['shift']());}}}(a11_0x14a4,0x95c89));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a11_0x1dea7d(0x18c)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x1dea7d(0x18e)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x1dea7d(0x15d)),{logger}=require(a11_0x1dea7d(0x198)),{getCloudProviderObject}=require(a11_0x1dea7d(0x1ab)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x1dea7d(0x163)),{sendInstrumentationEvent}=require(a11_0x1dea7d(0x1b0)),{inputConfirmation}=require(a11_0x1dea7d(0x128)),{createK8sClient}=require(a11_0x1dea7d(0x15f)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods'),webSocketUtils=require(a11_0x1dea7d(0x13d));exports[a11_0x1dea7d(0x181)]=a11_0x1dea7d(0x15a),exports[a11_0x1dea7d(0x131)]=a11_0x1dea7d(0x159),exports[a11_0x1dea7d(0x151)]=function(_0x472cec){const _0x326ca7=a11_0x1dea7d,_0x8dc2d={};_0x8dc2d['pYozl']=_0x326ca7(0x19c),_0x8dc2d['XPgOT']=_0x326ca7(0x142),_0x8dc2d[_0x326ca7(0x124)]=_0x326ca7(0x175),_0x8dc2d[_0x326ca7(0x148)]=_0x326ca7(0x138),_0x8dc2d[_0x326ca7(0x199)]=_0x326ca7(0x119);const _0x3bcd9e=_0x8dc2d,_0x5daff2={};_0x5daff2['description']=_0x3bcd9e[_0x326ca7(0x14d)],_0x5daff2[_0x326ca7(0x143)]=_0x3bcd9e[_0x326ca7(0x153)];const _0x3beb65={};_0x3beb65[_0x326ca7(0x158)]=_0x3bcd9e[_0x326ca7(0x124)],_0x3beb65[_0x326ca7(0x143)]=_0x3bcd9e[_0x326ca7(0x148)],_0x3beb65[_0x326ca7(0x135)]=![];const _0x3f4fe0={};return _0x3f4fe0[_0x326ca7(0x152)]=_0x5daff2,_0x3f4fe0[_0x326ca7(0x112)]=_0x3beb65,_0x472cec[_0x326ca7(0x12e)](HELP_HEADER_MESSAGE[_0x326ca7(0x1a7)])[_0x326ca7(0x13b)](HELP_FOOTER_MESSAGE)[_0x326ca7(0x16d)](_0x3f4fe0)[_0x326ca7(0x119)](_0x3bcd9e[_0x326ca7(0x199)])[_0x326ca7(0x1ac)];},exports['handler']=async function(_0x1dd8ec){const _0x1e3f4a=a11_0x1dea7d,_0x3a2bdd={'AxnZh':_0x1e3f4a(0x126),'spncf':_0x1e3f4a(0x19c),'fHYPw':_0x1e3f4a(0x142),'BxAuo':_0x1e3f4a(0x175),'eiBFI':_0x1e3f4a(0x138),'rbEzH':_0x1e3f4a(0x119),'bwxHj':function(_0xfcfca,_0x28ba8c){return _0xfcfca===_0x28ba8c;},'zgUpo':_0x1e3f4a(0x122),'xTiDk':'slQtp','MERFG':function(_0x43f3c9,_0x5cdb91){return _0x43f3c9!==_0x5cdb91;},'MLTDC':_0x1e3f4a(0x164),'qoKmn':_0x1e3f4a(0x13f),'KAwno':_0x1e3f4a(0x167),'nZBxt':_0x1e3f4a(0x19f),'Hycyl':function(_0x5f2258){return _0x5f2258();},'ftbZb':'lEYKS','pBzLr':_0x1e3f4a(0x17a),'rJKUu':function(_0x6001af,_0x2691b9,_0xf1a830,_0x377e5b,_0x4ce9ca,_0x378ef8,_0x2b243b){return _0x6001af(_0x2691b9,_0xf1a830,_0x377e5b,_0x4ce9ca,_0x378ef8,_0x2b243b);},'aGrzK':'delete-grid-called','bCfBw':_0x1e3f4a(0x16f),'hbfyL':function(_0x1f9e2b,_0x56c7fa){return _0x1f9e2b!==_0x56c7fa;},'giapE':_0x1e3f4a(0x190),'sPLzR':'gBKuQ','CbxiN':function(_0x449b38){return _0x449b38();},'FhWUv':function(_0x20d0ca,_0x154aa9,_0x32e5c1,_0x4740a5){return _0x20d0ca(_0x154aa9,_0x32e5c1,_0x4740a5);},'kAWVz':function(_0x4b2433,_0x56af43){return _0x4b2433===_0x56af43;},'PjovS':'Browserstack','gPdIK':_0x1e3f4a(0x113),'ZLhxJ':'jIuPx','QHQux':function(_0x24851c,_0x378912){return _0x24851c(_0x378912);},'DPYpB':function(_0x19b14a,_0x24650b){return _0x19b14a===_0x24650b;},'bmorS':function(_0x4ed336,_0x25cee5){return _0x4ed336===_0x25cee5;},'grWyf':function(_0x6aacb7,_0x1d4d15){return _0x6aacb7===_0x1d4d15;},'JgABU':_0x1e3f4a(0x1ad),'YKWhI':_0x1e3f4a(0x1a2),'gdyvA':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','fwRFg':function(_0x3dcf29,_0xb5d0d,_0x3eb192,_0x1d875d,_0x3a2d01,_0x38f152,_0x3620cd){return _0x3dcf29(_0xb5d0d,_0x3eb192,_0x1d875d,_0x3a2d01,_0x38f152,_0x3620cd);},'MpsYW':_0x1e3f4a(0x17d),'jslns':function(_0x176a79,_0x4b0bad){return _0x176a79===_0x4b0bad;},'tWZSJ':_0x1e3f4a(0x14e),'imvcg':_0x1e3f4a(0x120),'GDVla':'<UsernamePlaceholder>','gGCPq':'<PasswordPlaceholder>','emEIS':function(_0x21bcfb,_0x5e175e,_0x3b303d,_0x236156,_0x257d06,_0x4a31e5,_0x5a3c00){return _0x21bcfb(_0x5e175e,_0x3b303d,_0x236156,_0x257d06,_0x4a31e5,_0x5a3c00);},'YFqrn':function(_0x2f535f,_0x2c8999){return _0x2f535f(_0x2c8999);},'uRMSN':function(_0x190e1c,_0x42679b,_0x35e4b1){return _0x190e1c(_0x42679b,_0x35e4b1);},'TsTTZ':function(_0x5708e1,_0xe63e1a,_0x54d6b5,_0x9fa8b9,_0x5b04bf,_0x3af7aa){return _0x5708e1(_0xe63e1a,_0x54d6b5,_0x9fa8b9,_0x5b04bf,_0x3af7aa);},'enBPh':_0x1e3f4a(0x18a),'zpduM':function(_0x530e6c,_0x38548a){return _0x530e6c===_0x38548a;},'NRcBi':'OEuoJ','DmlkM':_0x1e3f4a(0x188),'ULycE':'DELETE','BgHqM':function(_0x2ed13b,_0x2f5fa8,_0x1107f6){return _0x2ed13b(_0x2f5fa8,_0x1107f6);},'sdKiu':function(_0x23275d,_0x24c83f){return _0x23275d!==_0x24c83f;},'jgKuY':function(_0x4201e5,_0x150a6b){return _0x4201e5!==_0x150a6b;},'cFsxH':function(_0x5855b9,_0x1ba4ec){return _0x5855b9===_0x1ba4ec;},'ZAEUC':function(_0x497095,_0x4b31d3,_0x4923d4,_0x21dec4,_0x27dc4b,_0x5d6d63,_0x2c54a3){return _0x497095(_0x4b31d3,_0x4923d4,_0x21dec4,_0x27dc4b,_0x5d6d63,_0x2c54a3);},'WxiZX':_0x1e3f4a(0x14b),'EZeFE':function(_0x4097a6,_0x979022){return _0x4097a6===_0x979022;},'rsFaV':_0x1e3f4a(0x176),'CYfRM':function(_0xbd1f23,_0x1344b5,_0x18f2ba,_0x2cfcc7,_0x4e1a6b,_0x397df3,_0x553176){return _0xbd1f23(_0x1344b5,_0x18f2ba,_0x2cfcc7,_0x4e1a6b,_0x397df3,_0x553176);},'toMmy':_0x1e3f4a(0x149),'yCjvX':function(_0xe2ef3f,_0x3b25bc){return _0xe2ef3f===_0x3b25bc;},'WZDge':function(_0x1e57d6,_0x3542cc,_0x41795d,_0x5da1c5,_0x4828a1,_0x61023f,_0x33a418){return _0x1e57d6(_0x3542cc,_0x41795d,_0x5da1c5,_0x4828a1,_0x61023f,_0x33a418);},'DUjgp':'invalid-grid-id','btxqq':'unknown-error'};try{global_registry['requestId']=_0x3a2bdd['Hycyl'](uuidv4);!fs[_0x1e3f4a(0x17c)](_0x3a2bdd[_0x1e3f4a(0x11e)](getCredentialsPath))&&(_0x3a2bdd[_0x1e3f4a(0x13e)](_0x3a2bdd[_0x1e3f4a(0x150)],_0x3a2bdd['ftbZb'])?(console['error'](_0x3a2bdd[_0x1e3f4a(0x183)]),await _0x3a2bdd[_0x1e3f4a(0x156)](sendInstrumentationEvent,_0x1dd8ec,_0x3a2bdd[_0x1e3f4a(0x127)],messageTypes['ERROR'],_0x3a2bdd[_0x1e3f4a(0x147)],null,_0x1dd8ec),process[_0x1e3f4a(0x111)](0x1)):_0x1d8202[_0x1e3f4a(0x15c)]('Cluster:\x20'+_0x23dd26[_0x1e3f4a(0x129)]+_0x1e3f4a(0x1aa)));_0x3a2bdd[_0x1e3f4a(0x156)](sendInstrumentationEvent,_0x1dd8ec,_0x3a2bdd[_0x1e3f4a(0x127)],messageTypes[_0x1e3f4a(0x166)],null,null,_0x1dd8ec);!_0x1dd8ec[_0x1e3f4a(0x115)]&&(_0x3a2bdd[_0x1e3f4a(0x136)](_0x3a2bdd[_0x1e3f4a(0x16e)],_0x3a2bdd[_0x1e3f4a(0x1a0)])?(console['error'](_0x3a2bdd['KAwno']),process[_0x1e3f4a(0x111)](0x1)):_0x5c8f12[_0x1e3f4a(0x15c)](_0x3a2bdd[_0x1e3f4a(0x19a)]));const _0x13c8ac=JSON[_0x1e3f4a(0x18b)](fs[_0x1e3f4a(0x18d)](_0x3a2bdd[_0x1e3f4a(0x172)](getCredentialsPath))),[_0x4e35e9,_0x168478]=await _0x3a2bdd[_0x1e3f4a(0x13a)](getGridDetails,_0x13c8ac['Browserstack'][_0x1e3f4a(0x1ae)],_0x13c8ac[_0x1e3f4a(0x118)][_0x1e3f4a(0x146)],_0x1dd8ec[_0x1e3f4a(0x115)]);if(_0x168478){const _0x1a1180=_0x168478[_0x1e3f4a(0x144)];let _0x5290ee=_0x1e3f4a(0x157)+_0x1a1180['name']+_0x1e3f4a(0x141)+_0x1a1180['id']+_0x1e3f4a(0x160);_0x168478[_0x1e3f4a(0x177)]&&_0x3a2bdd['kAWVz'](_0x168478['clusterSpawnedVia'],_0x3a2bdd[_0x1e3f4a(0x185)])&&(_0x3a2bdd[_0x1e3f4a(0x180)](_0x3a2bdd['gPdIK'],_0x3a2bdd[_0x1e3f4a(0x16c)])?_0x1ca9f7=_0x1e3f4a(0x157)+_0x31847c['name']+_0x1e3f4a(0x141)+_0x51b764['id']+_0x1e3f4a(0x11b)+_0x1994f7[_0x1e3f4a(0x129)]+_0x1e3f4a(0x197)+_0x263f4d[_0x1e3f4a(0x11d)]+_0x1e3f4a(0x160):_0x5290ee='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x1a1180[_0x1e3f4a(0x114)]+'\x22\x20and\x20ID\x20'+_0x1a1180['id']+_0x1e3f4a(0x11b)+_0x1a1180[_0x1e3f4a(0x129)]+_0x1e3f4a(0x197)+_0x1a1180['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');const _0x59b1f3=await _0x3a2bdd[_0x1e3f4a(0x139)](inputConfirmation,_0x5290ee);(_0x3a2bdd[_0x1e3f4a(0x13e)](_0x59b1f3,undefined)||_0x3a2bdd[_0x1e3f4a(0x13e)](_0x59b1f3,null)||!(_0x3a2bdd['DPYpB'](_0x59b1f3[_0x1e3f4a(0x154)](),'y')||_0x3a2bdd[_0x1e3f4a(0x1a8)](_0x59b1f3[_0x1e3f4a(0x154)](),'n')))&&(_0x3a2bdd[_0x1e3f4a(0x1a5)](_0x3a2bdd[_0x1e3f4a(0x170)],_0x3a2bdd[_0x1e3f4a(0x140)])?_0x5e9176[_0x1e3f4a(0x111)](0x0):(console['error'](_0x3a2bdd[_0x1e3f4a(0x161)]),await _0x3a2bdd[_0x1e3f4a(0x19b)](sendInstrumentationEvent,_0x1dd8ec,_0x3a2bdd[_0x1e3f4a(0x127)],messageTypes[_0x1e3f4a(0x194)],_0x3a2bdd[_0x1e3f4a(0x137)],null,_0x1dd8ec),process['exit'](0x1)));if(_0x3a2bdd['jslns'](_0x59b1f3[_0x1e3f4a(0x154)](),'n')){if(_0x3a2bdd[_0x1e3f4a(0x136)](_0x3a2bdd['tWZSJ'],_0x3a2bdd['imvcg']))process[_0x1e3f4a(0x111)](0x0);else{const _0x5df8a1={};_0x5df8a1['description']=_0x3a2bdd['spncf'],_0x5df8a1[_0x1e3f4a(0x143)]=_0x3a2bdd[_0x1e3f4a(0x193)];const _0xf4efc1={};_0xf4efc1[_0x1e3f4a(0x158)]=_0x3a2bdd['BxAuo'],_0xf4efc1['type']=_0x3a2bdd[_0x1e3f4a(0x173)],_0xf4efc1['default']=![];const _0x7effb5={};return _0x7effb5[_0x1e3f4a(0x152)]=_0x5df8a1,_0x7effb5[_0x1e3f4a(0x112)]=_0xf4efc1,_0xf2f5ce[_0x1e3f4a(0x12e)](_0x17793f[_0x1e3f4a(0x1a7)])['epilogue'](_0x573ff1)['options'](_0x7effb5)[_0x1e3f4a(0x119)](_0x3a2bdd[_0x1e3f4a(0x16b)])[_0x1e3f4a(0x1ac)];}}const _0x31fa39=WS_ENDPOINT[_0x1e3f4a(0x182)](_0x3a2bdd[_0x1e3f4a(0x132)],_0x13c8ac[_0x1e3f4a(0x118)][_0x1e3f4a(0x1ae)])[_0x1e3f4a(0x182)](_0x3a2bdd[_0x1e3f4a(0x179)],_0x13c8ac[_0x1e3f4a(0x118)][_0x1e3f4a(0x146)]),_0x1ddf7e={};_0x1ddf7e[_0x1e3f4a(0x184)]=ws,_0x1ddf7e[_0x1e3f4a(0x14f)]=0x36ee80;const _0x1ba2f0=new ReconnectingWebSocket(_0x31fa39,[],_0x1ddf7e);global_registry[_0x1e3f4a(0x17e)]=_0x1a1180[_0x1e3f4a(0x15e)];const _0x55d435=_0x1a1180[_0x1e3f4a(0x117)],_0x4fb5bc=await _0x3a2bdd[_0x1e3f4a(0x168)](getCloudProviderObject,_0x55d435,_0x1a1180[_0x1e3f4a(0x129)],_0x1a1180[_0x1e3f4a(0x114)],_0x1ba2f0,webSocketUtils,_0x1dd8ec),_0x3d90fe=await _0x4fb5bc['isClusterPresent']();if(_0x3d90fe){const _0x49b4a9=_0x3a2bdd[_0x1e3f4a(0x14a)](kebabCase,_0x1a1180[_0x1e3f4a(0x114)]),[_0xe5c8f4,_0x880947,_0x400fde,_0x3738a2,_0x275508,_0x5a436a]=await _0x3a2bdd[_0x1e3f4a(0x12f)](createK8sClient,_0x4fb5bc,_0x1dd8ec[_0x1e3f4a(0x14c)]);let _0xec8067=!![];const _0x3af7cf={};_0x3af7cf[_0x1e3f4a(0x114)]=_0x49b4a9,await _0xe5c8f4[_0x1e3f4a(0x116)](_0x3af7cf)[_0x1e3f4a(0x191)](_0x2a0bfc=>{const _0x543174=_0x1e3f4a;_0x3a2bdd['bwxHj'](_0x3a2bdd[_0x543174(0x1a9)],_0x3a2bdd['xTiDk'])?_0x86817d[_0x543174(0x144)](_0x543174(0x19d)+_0x5f661b+_0x543174(0x19e)):logger['info']('Namespace:\x20'+_0x49b4a9+_0x543174(0x19e));})['catch'](_0x4a5455=>{const _0x94f791=_0x1e3f4a;_0x3a2bdd[_0x94f791(0x155)](_0x3a2bdd[_0x94f791(0x174)],_0x3a2bdd[_0x94f791(0x165)])?(logger['warn'](_0x94f791(0x19d)+_0x49b4a9+_0x94f791(0x145)),_0xec8067=![]):(_0x45b67a[_0x94f791(0x15c)](_0x94f791(0x19d)+_0x9c5067+_0x94f791(0x145)),_0x53ffd1=![]);});if(_0xec8067){await _0x3a2bdd['TsTTZ'](removeGridComponents,_0xe5c8f4,_0x880947,_0x400fde,_0x3738a2,_0x49b4a9);if(_0x168478[_0x1e3f4a(0x177)]){const _0x3fae03=await _0x4fb5bc[_0x1e3f4a(0x125)]();_0x3fae03?_0x3a2bdd['kAWVz'](_0x3a2bdd[_0x1e3f4a(0x189)],_0x3a2bdd[_0x1e3f4a(0x189)])?await _0x4fb5bc['deleteCluster'](_0xe5c8f4,_0x1a1180[_0x1e3f4a(0x15e)]):(_0x22228e[_0x1e3f4a(0x186)](_0x3a2bdd[_0x1e3f4a(0x195)]),_0x39bb65[_0x1e3f4a(0x111)](0x1)):_0x3a2bdd[_0x1e3f4a(0x16a)](_0x3a2bdd[_0x1e3f4a(0x13c)],_0x3a2bdd[_0x1e3f4a(0x130)])?(_0x291957[_0x1e3f4a(0x144)](_0x3a2bdd[_0x1e3f4a(0x17f)]),_0x39cc1f['exit'](0x0)):logger[_0x1e3f4a(0x15c)]('Cluster:\x20'+_0x1a1180[_0x1e3f4a(0x129)]+_0x1e3f4a(0x1aa));}}}else logger[_0x1e3f4a(0x15c)](_0x3a2bdd[_0x1e3f4a(0x19a)]);const _0x20eb31=_0x1e3f4a(0x110)+AG_API_URL+_0x1e3f4a(0x133)+_0x1dd8ec['gridId'],_0xbcaa78={'method':_0x3a2bdd[_0x1e3f4a(0x18f)],'headers':_0x3a2bdd['BgHqM'](getAuthHeader,_0x13c8ac['Browserstack'][_0x1e3f4a(0x1ae)],_0x13c8ac[_0x1e3f4a(0x118)]['password']),'throwHttpErrors':![]},_0x4be748=await _0x3a2bdd[_0x1e3f4a(0x12f)](got,_0x20eb31,_0xbcaa78);_0x3a2bdd[_0x1e3f4a(0x11c)](_0x4be748,null)&&_0x3a2bdd[_0x1e3f4a(0x1a3)](_0x4be748,undefined)&&_0x3a2bdd['cFsxH'](_0x4be748['statusCode'],0xc8)&&(logger['info'](_0x3a2bdd[_0x1e3f4a(0x17f)]),process[_0x1e3f4a(0x111)](0x0)),logger['error'](_0x1e3f4a(0x12d)+_0x4be748['body']),await _0x3a2bdd[_0x1e3f4a(0x187)](sendInstrumentationEvent,_0x1dd8ec,_0x3a2bdd[_0x1e3f4a(0x127)],messageTypes['ERROR'],_0x3a2bdd[_0x1e3f4a(0x12c)],_0x4e35e9,_0x1dd8ec),process[_0x1e3f4a(0x111)](0x1);}_0x3a2bdd['EZeFE'](_0x4e35e9[_0x1e3f4a(0x1a6)],0x191)&&(logger[_0x1e3f4a(0x186)](_0x3a2bdd[_0x1e3f4a(0x134)]),await _0x3a2bdd[_0x1e3f4a(0x15b)](sendInstrumentationEvent,_0x1dd8ec,_0x3a2bdd[_0x1e3f4a(0x127)],messageTypes[_0x1e3f4a(0x194)],_0x3a2bdd['toMmy'],null,_0x1dd8ec),process['exit'](0x1)),_0x3a2bdd[_0x1e3f4a(0x17b)](_0x4e35e9['statusCode'],0x190)&&(logger['error'](JSON[_0x1e3f4a(0x18b)](_0x4e35e9[_0x1e3f4a(0x123)])[_0x1e3f4a(0x11a)]),await _0x3a2bdd[_0x1e3f4a(0x196)](sendInstrumentationEvent,_0x1dd8ec,_0x3a2bdd['aGrzK'],messageTypes['ERROR'],_0x3a2bdd[_0x1e3f4a(0x1a4)],null,_0x1dd8ec),process[_0x1e3f4a(0x111)](0x1)),logger['error'](_0x1e3f4a(0x171)+JSON['stringify'](_0x4e35e9)),await _0x3a2bdd[_0x1e3f4a(0x187)](sendInstrumentationEvent,_0x1dd8ec,_0x3a2bdd['aGrzK'],messageTypes[_0x1e3f4a(0x194)],_0x3a2bdd['WxiZX'],_0x4e35e9,_0x1dd8ec),process[_0x1e3f4a(0x111)](0x1);}catch(_0x5a0924){logger['error'](_0x1e3f4a(0x1a1)+_0x5a0924[_0x1e3f4a(0x192)]),await _0x3a2bdd[_0x1e3f4a(0x187)](sendInstrumentationEvent,_0x1dd8ec,_0x3a2bdd[_0x1e3f4a(0x127)],messageTypes[_0x1e3f4a(0x194)],_0x3a2bdd[_0x1e3f4a(0x12b)],_0x5a0924,_0x1dd8ec),process[_0x1e3f4a(0x111)](0x1);}};
@@ -1 +1 @@
1
- const a12_0x5eebc7=a12_0x380f;function a12_0xa2a6(){const _0x3399a5=['password','StdQO','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','167096WSOFYE','CRJpz','ntngZ','rjGHZ','kkRZU','TBgDv','uyNto','username','desc','834592ezgzuU','init-called','env','uuid','mkdirSync','BGtAt','argv','hOhiO','error','RXbdU','IHtNy','options','bstackAccesskey','uLxnN','1490088MVTZCq','debug','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','ASZma','MOafl','lSPyv','HCYRq','TWoEF','LgHLf','2546936pruEtG','GET','stringify','/automate/plan.json','uoYZW','utf-8','TnaTi','McEAl','loXiI','845328bRnMuw','vWzXA','command','8730972yonDEe','CGkpv','BROWSERSTACK_USERNAME','teQJr','existsSync','ERROR','2290170UIyrPo','yOYgH','45SBtOXo','writeFileSync','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','BROWSERSTACK_ACCESS_KEY','CnNhU','bstackUsername','2sabqUG','epilogue','https://','strict','Wbexj','../utils/utilityMethods','ShuNr','ZzofB','Browserstack','init','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','qVIgQ','parse','readFileSync','INFO','../utils/instrumentationUtils','help','description','NeWIQ','builder','string','VJUrz','ZFwgQ','VQUMy','../config/logger','sENgA','gOjVW','usage','recommendCommands','ZPSut','wrong-creds','type','bstack-username','../config/constants','hrjJs','exit','requestId','bstack-accesskey','xtOnZ','zoEED','util','eeVuL','uOsvo','unknown-error','Zbcio','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.'];a12_0xa2a6=function(){return _0x3399a5;};return a12_0xa2a6();}function a12_0x380f(_0x5683e6,_0x139fb6){const _0xa2a6d2=a12_0xa2a6();return a12_0x380f=function(_0x380f78,_0x1c733e){_0x380f78=_0x380f78-0xd8;let _0x1be8bc=_0xa2a6d2[_0x380f78];return _0x1be8bc;},a12_0x380f(_0x5683e6,_0x139fb6);}(function(_0x29c8ab,_0x33d4a7){const _0x55bf5a=a12_0x380f,_0x4fd94b=_0x29c8ab();while(!![]){try{const _0x4a4cf0=parseInt(_0x55bf5a(0xea))/0x1*(parseInt(_0x55bf5a(0x11b))/0x2)+parseInt(_0x55bf5a(0xf8))/0x3+-parseInt(_0x55bf5a(0xe1))/0x4*(-parseInt(_0x55bf5a(0x115))/0x5)+-parseInt(_0x55bf5a(0x113))/0x6+parseInt(_0x55bf5a(0x101))/0x7+-parseInt(_0x55bf5a(0x10a))/0x8+-parseInt(_0x55bf5a(0x10d))/0x9;if(_0x4a4cf0===_0x33d4a7)break;else _0x4fd94b['push'](_0x4fd94b['shift']());}catch(_0x4babc2){_0x4fd94b['push'](_0x4fd94b['shift']());}}}(a12_0xa2a6,0x95d01));const fs=require('fs'),util=require(a12_0x5eebc7(0xd8)),got=require('got'),{v4:uuidv4}=require(a12_0x5eebc7(0xed)),{logger}=require(a12_0x5eebc7(0x133)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x5eebc7(0x13c)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x5eebc7(0x120)),{sendInstrumentationEvent}=require(a12_0x5eebc7(0x12a));exports[a12_0x5eebc7(0x10c)]='init',exports[a12_0x5eebc7(0xe9)]=a12_0x5eebc7(0x125),exports[a12_0x5eebc7(0x12e)]=function(_0x2385bd){const _0x1cdc66=a12_0x5eebc7,_0x3e2678={};_0x3e2678[_0x1cdc66(0xfc)]=_0x1cdc66(0xdd),_0x3e2678[_0x1cdc66(0xe7)]=_0x1cdc66(0x12f),_0x3e2678['qWjwG']=_0x1cdc66(0x117),_0x3e2678['yOYgH']='help';const _0x53dd47=_0x3e2678,_0x24d035={};_0x24d035[_0x1cdc66(0x12c)]=_0x53dd47[_0x1cdc66(0xfc)],_0x24d035[_0x1cdc66(0x13a)]=_0x53dd47['uyNto'];const _0x496dd={};_0x496dd[_0x1cdc66(0x12c)]=_0x53dd47['qWjwG'],_0x496dd[_0x1cdc66(0x13a)]=_0x53dd47[_0x1cdc66(0xe7)];const _0x214705={};return _0x214705[_0x1cdc66(0x13b)]=_0x24d035,_0x214705[_0x1cdc66(0x140)]=_0x496dd,_0x2385bd[_0x1cdc66(0x136)](HELP_HEADER_MESSAGE[_0x1cdc66(0x124)])[_0x1cdc66(0x11c)](HELP_FOOTER_MESSAGE)[_0x1cdc66(0xf5)](_0x214705)['recommendCommands']()[_0x1cdc66(0x11e)]()[_0x1cdc66(0x12b)](_0x53dd47[_0x1cdc66(0x114)])[_0x1cdc66(0xf0)];},exports['handler']=async function(_0x785d7e){const _0x593aac=a12_0x5eebc7,_0x4c03ea={'RXbdU':function(_0x5da3a7){return _0x5da3a7();},'vWzXA':_0x593aac(0x106),'teQJr':_0x593aac(0xdd),'ZzofB':_0x593aac(0x12f),'lSPyv':_0x593aac(0x117),'wTFbe':_0x593aac(0x12b),'eeVuL':function(_0xb2a346,_0x839380,_0x30dd22,_0x205920,_0x50f9e5,_0x3548fa,_0xa8fae1){return _0xb2a346(_0x839380,_0x30dd22,_0x205920,_0x50f9e5,_0x3548fa,_0xa8fae1);},'VQUMy':_0x593aac(0xeb),'uOsvo':function(_0x14083d,_0x7d6a0){return _0x14083d!==_0x7d6a0;},'StdQO':_0x593aac(0x135),'uLxnN':_0x593aac(0xdc),'loXiI':_0x593aac(0x108),'yiIIj':function(_0xd27afd,_0x5166fb){return _0xd27afd===_0x5166fb;},'NeWIQ':_0x593aac(0x121),'TBgDv':function(_0x339663,_0x4e7a80){return _0x339663===_0x4e7a80;},'aAIQs':_0x593aac(0x105),'xtOnZ':function(_0x102f7b,_0x5c1391){return _0x102f7b===_0x5c1391;},'LgHLf':_0x593aac(0xf4),'rjGHZ':function(_0x5b0d2c,_0x5d8a6f){return _0x5b0d2c===_0x5d8a6f;},'kkRZU':function(_0x1a1ce3,_0x3044ff){return _0x1a1ce3===_0x3044ff;},'zoEED':_0x593aac(0x130),'EwpnZ':_0x593aac(0xfa),'qVIgQ':function(_0x5ba75b){return _0x5ba75b();},'hrjJs':_0x593aac(0x102),'hOhiO':function(_0x4d9113,_0xc21e26,_0x19abeb){return _0x4d9113(_0xc21e26,_0x19abeb);},'CRJpz':function(_0x490469,_0x2349ce,_0x472353){return _0x490469(_0x2349ce,_0x472353);},'ntngZ':function(_0x4fee03,_0x70bcd6){return _0x4fee03!==_0x70bcd6;},'BGtAt':_0x593aac(0x11f),'sENgA':_0x593aac(0x138),'HCYRq':_0x593aac(0xff),'sGxon':'DHEYQ','olTna':function(_0x1f7284){return _0x1f7284();},'bzNLt':function(_0x3ed40f,_0x2ce355){return _0x3ed40f===_0x2ce355;},'tIwTs':_0x593aac(0x107),'ASZma':_0x593aac(0x119),'ZaVmy':_0x593aac(0xe0),'ZFwgQ':_0x593aac(0x139),'dKBco':function(_0x2b3724,_0x343341,_0x15f5f9,_0x4f56b9,_0x8ba968,_0x41e7ce,_0x2c7a1b){return _0x2b3724(_0x343341,_0x15f5f9,_0x4f56b9,_0x8ba968,_0x41e7ce,_0x2c7a1b);},'CGkpv':_0x593aac(0xdb)};try{global_registry[_0x593aac(0x13f)]=_0x4c03ea[_0x593aac(0xf3)](uuidv4),_0x4c03ea[_0x593aac(0xd9)](sendInstrumentationEvent,_0x785d7e,_0x4c03ea[_0x593aac(0x132)],messageTypes[_0x593aac(0x129)],null,null,_0x785d7e);const _0x4ce32d=_0x4c03ea['RXbdU'](getDirForConfig);!fs[_0x593aac(0x111)](_0x4ce32d)&&(_0x4c03ea['uOsvo'](_0x4c03ea[_0x593aac(0xdf)],_0x4c03ea[_0x593aac(0xf7)])?fs['mkdirSync'](_0x4ce32d):_0x66b065[_0x593aac(0xee)](_0x4c7413));let _0x43a8aa,_0x370eec;process['env'][_0x593aac(0x10f)]&&(_0x4c03ea[_0x593aac(0xda)](_0x4c03ea['loXiI'],_0x4c03ea[_0x593aac(0x109)])?_0x56cf2b=!![]:_0x43a8aa=process[_0x593aac(0xec)][_0x593aac(0x10f)]);if(process['env'][_0x593aac(0x118)]){if(_0x4c03ea['yiIIj'](_0x4c03ea[_0x593aac(0x12d)],_0x4c03ea['NeWIQ']))_0x370eec=process['env'][_0x593aac(0x118)];else{let _0xd0fd93={};const _0x54ff55=_0x4c03ea[_0x593aac(0xf3)](_0xf7b0a9);_0x192900['existsSync'](_0x54ff55)&&(_0xd0fd93=_0x2cd1e2[_0x593aac(0x127)](_0x3cf224['readFileSync'](_0x54ff55,_0x4c03ea[_0x593aac(0x10b)])));const _0x328ff6={};_0x328ff6[_0x593aac(0xe8)]=_0x4a49bd,_0x328ff6[_0x593aac(0xde)]=_0x1a4b10,_0xd0fd93[_0x593aac(0x123)]=_0x328ff6,_0x105e20[_0x593aac(0x116)](_0x54ff55,_0xb144ce[_0x593aac(0x103)](_0xd0fd93)),_0x1dc260[_0x593aac(0x13e)](0x0);}}_0x785d7e[_0x593aac(0x11a)]&&(_0x4c03ea[_0x593aac(0xe6)](_0x4c03ea['aAIQs'],_0x4c03ea['aAIQs'])?_0x43a8aa=_0x785d7e[_0x593aac(0x11a)]:_0xddedf9=_0x3084ab[_0x593aac(0xec)][_0x593aac(0x118)]);_0x785d7e[_0x593aac(0xf6)]&&(_0x4c03ea[_0x593aac(0x141)](_0x4c03ea[_0x593aac(0x100)],_0x4c03ea[_0x593aac(0x100)])?_0x370eec=_0x785d7e[_0x593aac(0xf6)]:_0x3a56b6=_0x597edc[_0x593aac(0x127)](_0x1c094f[_0x593aac(0x128)](_0x257bdf,_0x4c03ea[_0x593aac(0x10b)])));if(_0x4c03ea[_0x593aac(0xe4)](_0x43a8aa,undefined)||_0x4c03ea[_0x593aac(0xe6)](_0x370eec,undefined)){if(_0x4c03ea[_0x593aac(0xe5)](_0x4c03ea[_0x593aac(0x142)],_0x4c03ea[_0x593aac(0x142)])){logger[_0x593aac(0xf9)](_0x4c03ea['EwpnZ']);const [_0x1efdfe,_0x574a75]=await _0x4c03ea[_0x593aac(0x126)](inputBstackKeys);_0x43a8aa=_0x1efdfe,_0x370eec=_0x574a75;}else _0x6389ca=_0x368b28[_0x593aac(0x11a)];}let _0x476fa4=![];const _0x8d2cea=_0x593aac(0x11d)+_0x43a8aa+':'+_0x370eec+'@'+BS_API_URL+_0x593aac(0x104),_0x4ebcc4={'method':_0x4c03ea[_0x593aac(0x13d)],'headers':_0x4c03ea[_0x593aac(0xf1)](getAuthHeader,_0x43a8aa,_0x370eec),'throwHttpErrors':![]},_0x54b599=await _0x4c03ea[_0x593aac(0xe2)](got,_0x8d2cea,_0x4ebcc4);_0x4c03ea[_0x593aac(0xda)](_0x54b599,null)&&_0x4c03ea[_0x593aac(0xda)](_0x54b599,undefined)&&_0x4c03ea['yiIIj'](_0x54b599['statusCode'],0xc8)&&(_0x4c03ea[_0x593aac(0xe3)](_0x4c03ea[_0x593aac(0xef)],_0x4c03ea[_0x593aac(0x134)])?_0x476fa4=!![]:_0x3119de=_0x598b07['bstackAccesskey']);if(_0x476fa4){if(_0x4c03ea[_0x593aac(0xe6)](_0x4c03ea[_0x593aac(0xfe)],_0x4c03ea['sGxon'])){const _0x420135={};_0x420135['description']=_0x4c03ea[_0x593aac(0x110)],_0x420135[_0x593aac(0x13a)]=_0x4c03ea[_0x593aac(0x122)];const _0x294f37={};_0x294f37[_0x593aac(0x12c)]=_0x4c03ea[_0x593aac(0xfd)],_0x294f37[_0x593aac(0x13a)]=_0x4c03ea[_0x593aac(0x122)];const _0x1920b1={};return _0x1920b1[_0x593aac(0x13b)]=_0x420135,_0x1920b1['bstack-accesskey']=_0x294f37,_0x2d23e5[_0x593aac(0x136)](_0x1b21b3[_0x593aac(0x124)])['epilogue'](_0x566ff8)[_0x593aac(0xf5)](_0x1920b1)[_0x593aac(0x137)]()[_0x593aac(0x11e)]()['help'](_0x4c03ea['wTFbe'])[_0x593aac(0xf0)];}else{let _0x325ef9={};const _0x1d28aa=_0x4c03ea['olTna'](getCredentialsPath);fs[_0x593aac(0x111)](_0x1d28aa)&&(_0x4c03ea['bzNLt'](_0x4c03ea['tIwTs'],_0x4c03ea[_0x593aac(0xfb)])?_0x280e5c=_0x55b49f[_0x593aac(0xec)][_0x593aac(0x10f)]:_0x325ef9=JSON[_0x593aac(0x127)](fs[_0x593aac(0x128)](_0x1d28aa,_0x4c03ea[_0x593aac(0x10b)])));const _0x3c53f0={};_0x3c53f0[_0x593aac(0xe8)]=_0x43a8aa,_0x3c53f0[_0x593aac(0xde)]=_0x370eec,_0x325ef9[_0x593aac(0x123)]=_0x3c53f0,fs[_0x593aac(0x116)](_0x1d28aa,JSON['stringify'](_0x325ef9)),process[_0x593aac(0x13e)](0x0);}}else logger[_0x593aac(0xf2)](_0x4c03ea['ZaVmy']),await _0x4c03ea[_0x593aac(0xd9)](sendInstrumentationEvent,_0x785d7e,_0x4c03ea[_0x593aac(0x132)],messageTypes[_0x593aac(0x112)],_0x4c03ea[_0x593aac(0x131)],null,_0x785d7e),process[_0x593aac(0x13e)](0x1);}catch(_0x261826){logger[_0x593aac(0xf2)](_0x261826['stack']),await _0x4c03ea['dKBco'](sendInstrumentationEvent,_0x785d7e,_0x4c03ea[_0x593aac(0x132)],messageTypes[_0x593aac(0x112)],_0x4c03ea[_0x593aac(0x10e)],_0x261826,_0x785d7e),process['exit'](0x1);}};
1
+ const a12_0x45e60b=a12_0x3d75;(function(_0x1da8a5,_0x33f115){const _0xd23b38=a12_0x3d75,_0x2b0dbe=_0x1da8a5();while(!![]){try{const _0x280bc9=-parseInt(_0xd23b38(0xd8))/0x1+parseInt(_0xd23b38(0xa3))/0x2+parseInt(_0xd23b38(0xbf))/0x3+parseInt(_0xd23b38(0x9f))/0x4+-parseInt(_0xd23b38(0xa9))/0x5*(-parseInt(_0xd23b38(0xb8))/0x6)+-parseInt(_0xd23b38(0xad))/0x7+parseInt(_0xd23b38(0x9a))/0x8*(-parseInt(_0xd23b38(0xdd))/0x9);if(_0x280bc9===_0x33f115)break;else _0x2b0dbe['push'](_0x2b0dbe['shift']());}catch(_0x4e173e){_0x2b0dbe['push'](_0x2b0dbe['shift']());}}}(a12_0xad02,0xccc32));function a12_0x3d75(_0x1d3384,_0x3d933e){const _0xad0275=a12_0xad02();return a12_0x3d75=function(_0x3d751a,_0x6ddd7a){_0x3d751a=_0x3d751a-0x7f;let _0xb02ce=_0xad0275[_0x3d751a];return _0xb02ce;},a12_0x3d75(_0x1d3384,_0x3d933e);}const fs=require('fs'),util=require(a12_0x45e60b(0xae)),got=require('got'),{v4:uuidv4}=require(a12_0x45e60b(0xa4)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x45e60b(0xb6)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x45e60b(0xce)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x45e60b(0xd3));function a12_0xad02(){const _0x1e50b1=['216583Xvjdep','readFileSync','bstackUsername','bstackAccesskey','FNFiR','9fqZZWh','BROWSERSTACK_ACCESS_KEY','type','bstack-accesskey','VWKyb','help','XpuOX','kCaWB','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','vcSIM','szJuu','kybGa','SGFAK','existsSync','string','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','utf-8','usage','oguEo','parse','dCjOa','SkOfH','eVluA','requestId','writeFileSync','SxnUY','FlEuc','Browserstack','kMZBt','qeKto','env','YpKsb','init','strict','SGCSI','SpoKp','14323112sHQQvw','dxLSV','/automate/plan.json','PYDCs','init-called','5477968iiqcKB','tlDQl','GET','password','1754152SRZsHU','uuid','lIJFN','OCcqU','desc','iUYIF','24425aUllUy','zlEbp','XXxPG','recommendCommands','7235473sgVwnz','util','username','debug','TiVUq','exit','ERROR','BROWSERSTACK_USERNAME','mCAdd','../utils/userInput','KsRqm','288bXhyZJ','oqtqQ','uhHCS','GYSnF','nPUSe','epilogue','builder','4194807XcWssH','XohDU','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','wrong-creds','NtRDG','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','bstack-username','ZKZbp','wtVIS','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','description','uVSnB','mkdirSync','stringify','handler','../config/constants','options','vXxRL','CEXRt','tQtGH','../utils/instrumentationUtils','CjRfL','command','TeCWy','uNtQc'];a12_0xad02=function(){return _0x1e50b1;};return a12_0xad02();}exports[a12_0x45e60b(0xd5)]=a12_0x45e60b(0x96),exports[a12_0x45e60b(0xa7)]=a12_0x45e60b(0xc1),exports[a12_0x45e60b(0xbe)]=function(_0x73dccf){const _0xd867b=a12_0x45e60b,_0x4de6f0={};_0x4de6f0[_0xd867b(0xab)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x4de6f0[_0xd867b(0x90)]=_0xd867b(0x84),_0x4de6f0['tQtGH']=_0xd867b(0xc8),_0x4de6f0[_0xd867b(0x80)]=_0xd867b(0xe2);const _0x5baa34=_0x4de6f0,_0x3ee654={};_0x3ee654[_0xd867b(0xc9)]=_0x5baa34[_0xd867b(0xab)],_0x3ee654[_0xd867b(0xdf)]=_0x5baa34[_0xd867b(0x90)];const _0x17c72a={};_0x17c72a[_0xd867b(0xc9)]=_0x5baa34[_0xd867b(0xd2)],_0x17c72a[_0xd867b(0xdf)]=_0x5baa34[_0xd867b(0x90)];const _0x15fa6b={};return _0x15fa6b[_0xd867b(0xc5)]=_0x3ee654,_0x15fa6b[_0xd867b(0xe0)]=_0x17c72a,_0x73dccf[_0xd867b(0x87)](HELP_HEADER_MESSAGE[_0xd867b(0x96)])[_0xd867b(0xbd)](HELP_FOOTER_MESSAGE)[_0xd867b(0xcf)](_0x15fa6b)['recommendCommands']()[_0xd867b(0x97)]()[_0xd867b(0xe2)](_0x5baa34[_0xd867b(0x80)])['argv'];},exports[a12_0x45e60b(0xcd)]=async function(_0x2d8aa1){const _0x908e2=a12_0x45e60b,_0x550d0b={'oqtqQ':_0x908e2(0x86),'SGCSI':function(_0x6755d2){return _0x6755d2();},'kybGa':_0x908e2(0xe5),'CEXRt':_0x908e2(0x84),'bLHOZ':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','nOoQh':_0x908e2(0xe2),'SGFAK':function(_0xbc8180,_0x1baf68,_0x97c45,_0x4c5d30,_0x530c03,_0x18dd69,_0x3bd3d6){return _0xbc8180(_0x1baf68,_0x97c45,_0x4c5d30,_0x530c03,_0x18dd69,_0x3bd3d6);},'wtVIS':_0x908e2(0x9e),'KsRqm':function(_0xdb29bb,_0x200442){return _0xdb29bb===_0x200442;},'roiYY':_0x908e2(0x99),'YpKsb':_0x908e2(0xa6),'vXxRL':function(_0x3985c5,_0x430e71){return _0x3985c5!==_0x430e71;},'XpuOX':_0x908e2(0xe1),'CjRfL':_0x908e2(0xca),'pQvas':function(_0x1dfda1,_0xd250c6){return _0x1dfda1!==_0xd250c6;},'mCAdd':_0x908e2(0xbc),'FNFiR':_0x908e2(0x8a),'kMZBt':function(_0x18a518,_0x2d2824){return _0x18a518!==_0x2d2824;},'SkOfH':_0x908e2(0xd6),'PYDCs':function(_0x3be424,_0x43da4e){return _0x3be424===_0x43da4e;},'TiVUq':'pdHGF','kCaWB':_0x908e2(0xc3),'tlDQl':_0x908e2(0xba),'LxZNB':_0x908e2(0xc4),'wPnSB':function(_0x45aeba){return _0x45aeba();},'dxLSV':_0x908e2(0xa1),'ZKZbp':function(_0x563924,_0x51a4ce,_0x292eaa){return _0x563924(_0x51a4ce,_0x292eaa);},'SxnUY':function(_0x567615,_0x16c1ce,_0xa961b6){return _0x567615(_0x16c1ce,_0xa961b6);},'lIJFN':function(_0x4936db,_0x77597e){return _0x4936db!==_0x77597e;},'aCUOt':function(_0x1bcce8,_0xcc1c68){return _0x1bcce8!==_0xcc1c68;},'XohDU':'aTBVa','bKTKZ':_0x908e2(0x7f),'ujLNH':_0x908e2(0x8c),'zlEbp':_0x908e2(0xa8),'rgVLV':function(_0x54eefa){return _0x54eefa();},'oguEo':_0x908e2(0xbb),'dFmaW':_0x908e2(0xd7),'nTiVp':_0x908e2(0x85),'BhdBg':_0x908e2(0xc2),'TbyVj':function(_0x4be1bf,_0x56dcf1,_0x32ec60,_0x10beee,_0x222161,_0x55960e,_0x1605b6){return _0x4be1bf(_0x56dcf1,_0x32ec60,_0x10beee,_0x222161,_0x55960e,_0x1605b6);},'qeKto':'unknown-error'};try{global_registry[_0x908e2(0x8d)]=_0x550d0b['SGCSI'](uuidv4),_0x550d0b[_0x908e2(0x82)](sendInstrumentationEvent,_0x2d8aa1,_0x550d0b[_0x908e2(0xc7)],messageTypes['INFO'],null,null,_0x2d8aa1);const _0x5873e8=_0x550d0b[_0x908e2(0x98)](getDirForConfig);!fs[_0x908e2(0x83)](_0x5873e8)&&(_0x550d0b[_0x908e2(0xb7)](_0x550d0b['roiYY'],_0x550d0b[_0x908e2(0x95)])?_0x5999e9[_0x908e2(0xcb)](_0x22cdf8):fs[_0x908e2(0xcb)](_0x5873e8));let _0x133903,_0x46c686;process[_0x908e2(0x94)]['BROWSERSTACK_USERNAME']&&(_0x550d0b[_0x908e2(0xd0)](_0x550d0b[_0x908e2(0xe3)],_0x550d0b[_0x908e2(0xd4)])?_0x133903=process[_0x908e2(0x94)]['BROWSERSTACK_USERNAME']:_0x2a3c50=_0x35113f[_0x908e2(0x89)](_0x9b9afd[_0x908e2(0xd9)](_0x2993bf,_0x550d0b[_0x908e2(0xb9)])));process[_0x908e2(0x94)][_0x908e2(0xde)]&&(_0x550d0b['pQvas'](_0x550d0b[_0x908e2(0xb5)],_0x550d0b[_0x908e2(0xdc)])?_0x46c686=process[_0x908e2(0x94)][_0x908e2(0xde)]:_0x219977=_0x23c196[_0x908e2(0x94)][_0x908e2(0xb4)]);_0x2d8aa1[_0x908e2(0xda)]&&(_0x550d0b[_0x908e2(0x92)](_0x550d0b[_0x908e2(0x8b)],_0x550d0b[_0x908e2(0x8b)])?_0x241a86=_0x133645[_0x908e2(0xdb)]:_0x133903=_0x2d8aa1[_0x908e2(0xda)]);_0x2d8aa1[_0x908e2(0xdb)]&&(_0x550d0b[_0x908e2(0x9d)](_0x550d0b[_0x908e2(0xb1)],_0x550d0b[_0x908e2(0xb1)])?_0x46c686=_0x2d8aa1[_0x908e2(0xdb)]:_0x329262=_0x5ba4ab[_0x908e2(0x94)][_0x908e2(0xde)]);if(_0x550d0b[_0x908e2(0x9d)](_0x133903,undefined)||_0x550d0b[_0x908e2(0xb7)](_0x46c686,undefined)){if(_0x550d0b[_0x908e2(0xb7)](_0x550d0b[_0x908e2(0xe4)],_0x550d0b[_0x908e2(0xa0)]))_0x27a812=_0x1aabca[_0x908e2(0xda)];else{logger[_0x908e2(0xb0)](_0x550d0b['LxZNB']);const [_0x4fe335,_0x49cdc1]=await _0x550d0b['wPnSB'](inputBstackKeys);_0x133903=_0x4fe335,_0x46c686=_0x49cdc1;}}let _0x3074c7=![];const _0x348765='https://'+_0x133903+':'+_0x46c686+'@'+BS_API_URL+_0x908e2(0x9c),_0x2b0916={'method':_0x550d0b[_0x908e2(0x9b)],'headers':_0x550d0b[_0x908e2(0xc6)](getAuthHeader,_0x133903,_0x46c686),'throwHttpErrors':![]},_0x1ac63b=await _0x550d0b[_0x908e2(0x8f)](got,_0x348765,_0x2b0916);_0x550d0b[_0x908e2(0xa5)](_0x1ac63b,null)&&_0x550d0b['aCUOt'](_0x1ac63b,undefined)&&_0x550d0b[_0x908e2(0x9d)](_0x1ac63b['statusCode'],0xc8)&&(_0x550d0b[_0x908e2(0xb7)](_0x550d0b[_0x908e2(0xc0)],_0x550d0b['bKTKZ'])?_0x38cf74=!![]:_0x3074c7=!![]);if(_0x3074c7){if(_0x550d0b['kMZBt'](_0x550d0b['ujLNH'],_0x550d0b[_0x908e2(0xaa)])){let _0x398c65={};const _0x5ade54=_0x550d0b['rgVLV'](getCredentialsPath);if(fs[_0x908e2(0x83)](_0x5ade54)){if(_0x550d0b[_0x908e2(0xb7)](_0x550d0b[_0x908e2(0x88)],_0x550d0b['dFmaW'])){let _0xd5009={};const _0x2cfd45=_0x550d0b['SGCSI'](_0x263973);_0x257d2f['existsSync'](_0x2cfd45)&&(_0xd5009=_0x1556c3[_0x908e2(0x89)](_0xfe0ff6[_0x908e2(0xd9)](_0x2cfd45,_0x550d0b['oqtqQ'])));const _0xd85d06={};_0xd85d06['username']=_0x44b3e9,_0xd85d06[_0x908e2(0xa2)]=_0xdb02c7,_0xd5009['Browserstack']=_0xd85d06,_0x243238[_0x908e2(0x8e)](_0x2cfd45,_0x533cbd[_0x908e2(0xcc)](_0xd5009)),_0x2f7572[_0x908e2(0xb2)](0x0);}else _0x398c65=JSON[_0x908e2(0x89)](fs[_0x908e2(0xd9)](_0x5ade54,_0x550d0b[_0x908e2(0xb9)]));}const _0x249ffe={};_0x249ffe[_0x908e2(0xaf)]=_0x133903,_0x249ffe[_0x908e2(0xa2)]=_0x46c686,_0x398c65[_0x908e2(0x91)]=_0x249ffe,fs[_0x908e2(0x8e)](_0x5ade54,JSON['stringify'](_0x398c65)),process[_0x908e2(0xb2)](0x0);}else{const _0x1964dc={};_0x1964dc[_0x908e2(0xc9)]=_0x550d0b[_0x908e2(0x81)],_0x1964dc[_0x908e2(0xdf)]=_0x550d0b[_0x908e2(0xd1)];const _0xbbb393={};_0xbbb393[_0x908e2(0xc9)]=_0x550d0b['bLHOZ'],_0xbbb393['type']=_0x550d0b['CEXRt'];const _0x33ed62={};return _0x33ed62[_0x908e2(0xc5)]=_0x1964dc,_0x33ed62[_0x908e2(0xe0)]=_0xbbb393,_0x410f54[_0x908e2(0x87)](_0x141404[_0x908e2(0x96)])['epilogue'](_0x27ce14)['options'](_0x33ed62)[_0x908e2(0xac)]()['strict']()[_0x908e2(0xe2)](_0x550d0b['nOoQh'])['argv'];}}else logger['error'](_0x550d0b['nTiVp']),await _0x550d0b[_0x908e2(0x82)](sendInstrumentationEvent,_0x2d8aa1,_0x550d0b[_0x908e2(0xc7)],messageTypes[_0x908e2(0xb3)],_0x550d0b['BhdBg'],null,_0x2d8aa1),process[_0x908e2(0xb2)](0x1);}catch(_0x39db5e){logger['error'](_0x39db5e['stack']),await _0x550d0b['TbyVj'](sendInstrumentationEvent,_0x2d8aa1,_0x550d0b[_0x908e2(0xc7)],messageTypes[_0x908e2(0xb3)],_0x550d0b[_0x908e2(0x93)],_0x39db5e,_0x2d8aa1),process[_0x908e2(0xb2)](0x1);}};
@@ -1 +1 @@
1
- function a13_0x2227(){const _0x4e0616=['22613136CiCyYS','builder','3HRWWwe','strict','766064KHMbWr','../config/constants','list','11PbSaDc','7388073FQLXVM','usage','wMHgL','help','desc','7483310StwpFw','49VVTcjk','recommendCommands','52042phRErS','epilogue','631176ySejmq','10zqwVaG','66XotAcb','demandCommand','List\x20down\x20the\x20Grid\x20resources.','230915RanuBD','command','root'];a13_0x2227=function(){return _0x4e0616;};return a13_0x2227();}function a13_0x38c7(_0x333930,_0x21f381){const _0x222729=a13_0x2227();return a13_0x38c7=function(_0x38c7c9,_0x1ee367){_0x38c7c9=_0x38c7c9-0x91;let _0x1c8a0e=_0x222729[_0x38c7c9];return _0x1c8a0e;},a13_0x38c7(_0x333930,_0x21f381);}const a13_0x3f020e=a13_0x38c7;(function(_0x1a0b77,_0x3397b6){const _0x57f443=a13_0x38c7,_0x27dbd9=_0x1a0b77();while(!![]){try{const _0x90703e=-parseInt(_0x57f443(0xa8))/0x1*(-parseInt(_0x57f443(0xa5))/0x2)+-parseInt(_0x57f443(0x97))/0x3*(parseInt(_0x57f443(0x99))/0x4)+parseInt(_0x57f443(0x92))/0x5*(-parseInt(_0x57f443(0xa9))/0x6)+-parseInt(_0x57f443(0xa3))/0x7*(-parseInt(_0x57f443(0xa7))/0x8)+-parseInt(_0x57f443(0x9d))/0x9+-parseInt(_0x57f443(0xa2))/0xa*(parseInt(_0x57f443(0x9c))/0xb)+parseInt(_0x57f443(0x95))/0xc;if(_0x90703e===_0x3397b6)break;else _0x27dbd9['push'](_0x27dbd9['shift']());}catch(_0x7d3c83){_0x27dbd9['push'](_0x27dbd9['shift']());}}}(a13_0x2227,0x68880));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x3f020e(0x9a));exports[a13_0x3f020e(0x93)]='list',exports[a13_0x3f020e(0xa1)]=a13_0x3f020e(0x91),exports[a13_0x3f020e(0x96)]=function(_0x168f6d){const _0xc61624=a13_0x3f020e,_0x4393c4={};_0x4393c4[_0xc61624(0x9f)]='list_commands',_0x4393c4['YYNxy']=_0xc61624(0xa0);const _0x3877d5=_0x4393c4;return _0x168f6d['commandDir'](_0x3877d5[_0xc61624(0x9f)])[_0xc61624(0xaa)]()[_0xc61624(0x9e)](HELP_HEADER_MESSAGE[_0xc61624(0x9b)][_0xc61624(0x94)])[_0xc61624(0xa6)](HELP_FOOTER_MESSAGE)[_0xc61624(0xa4)]()[_0xc61624(0x98)]()[_0xc61624(0xa0)](_0x3877d5['YYNxy']);},exports['handler']=function(_0x350e5f){};
1
+ function a13_0x45c0(){const _0x1c03a5=['list','383090UBtGhO','list_commands','fmwBh','builder','2444015dttrZB','64KNbmaA','479748TsYcUo','25xtcqKn','../config/constants','6pAtUDr','392472tuznGm','demandCommand','109952GYPxuR','handler','AMNWu','strict','2AbTbvC','16489092uzSCwC','220czMucq','usage','12826uwXvNo'];a13_0x45c0=function(){return _0x1c03a5;};return a13_0x45c0();}const a13_0x1eabf4=a13_0x43d9;(function(_0x35fc20,_0x1cf483){const _0x4652e1=a13_0x43d9,_0x545bc4=_0x35fc20();while(!![]){try{const _0x50a6b1=-parseInt(_0x4652e1(0x122))/0x1+parseInt(_0x4652e1(0x11c))/0x2*(-parseInt(_0x4652e1(0x128))/0x3)+-parseInt(_0x4652e1(0x118))/0x4*(-parseInt(_0x4652e1(0x129))/0x5)+parseInt(_0x4652e1(0x115))/0x6*(-parseInt(_0x4652e1(0x126))/0x7)+-parseInt(_0x4652e1(0x127))/0x8*(parseInt(_0x4652e1(0x116))/0x9)+parseInt(_0x4652e1(0x11e))/0xa*(-parseInt(_0x4652e1(0x120))/0xb)+parseInt(_0x4652e1(0x11d))/0xc;if(_0x50a6b1===_0x1cf483)break;else _0x545bc4['push'](_0x545bc4['shift']());}catch(_0x2e3919){_0x545bc4['push'](_0x545bc4['shift']());}}}(a13_0x45c0,0x3bc80));function a13_0x43d9(_0x48a858,_0x4a78e7){const _0x45c005=a13_0x45c0();return a13_0x43d9=function(_0x43d9a7,_0x300972){_0x43d9a7=_0x43d9a7-0x115;let _0x19d3da=_0x45c005[_0x43d9a7];return _0x19d3da;},a13_0x43d9(_0x48a858,_0x4a78e7);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x1eabf4(0x12a));exports['command']='list',exports['desc']='List\x20down\x20the\x20Grid\x20resources.',exports[a13_0x1eabf4(0x125)]=function(_0x18e1df){const _0x489547=a13_0x1eabf4,_0x4bc3c5={};_0x4bc3c5[_0x489547(0x11a)]=_0x489547(0x123),_0x4bc3c5[_0x489547(0x124)]='help';const _0x3249f1=_0x4bc3c5;return _0x18e1df['commandDir'](_0x3249f1[_0x489547(0x11a)])[_0x489547(0x117)]()[_0x489547(0x11f)](HELP_HEADER_MESSAGE[_0x489547(0x121)]['root'])['epilogue'](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x489547(0x11b)]()['help'](_0x3249f1['fmwBh']);},exports[a13_0x1eabf4(0x119)]=function(_0x564881){};
@@ -1 +1 @@
1
- const a14_0xea5ad5=a14_0x4e81;(function(_0x3527ce,_0x1d71cd){const _0x4988a9=a14_0x4e81,_0x2b0352=_0x3527ce();while(!![]){try{const _0xd3a31=-parseInt(_0x4988a9(0xd8))/0x1*(parseInt(_0x4988a9(0xf2))/0x2)+-parseInt(_0x4988a9(0x11f))/0x3*(-parseInt(_0x4988a9(0x114))/0x4)+parseInt(_0x4988a9(0x107))/0x5+-parseInt(_0x4988a9(0x126))/0x6*(-parseInt(_0x4988a9(0x10c))/0x7)+-parseInt(_0x4988a9(0xde))/0x8*(-parseInt(_0x4988a9(0xea))/0x9)+parseInt(_0x4988a9(0xdf))/0xa*(-parseInt(_0x4988a9(0xe2))/0xb)+parseInt(_0x4988a9(0xd4))/0xc*(-parseInt(_0x4988a9(0xf8))/0xd);if(_0xd3a31===_0x1d71cd)break;else _0x2b0352['push'](_0x2b0352['shift']());}catch(_0xadfac3){_0x2b0352['push'](_0x2b0352['shift']());}}}(a14_0x64bd,0x30910));function a14_0x4e81(_0x28a5b3,_0x3cc7b5){const _0x64bd4c=a14_0x64bd();return a14_0x4e81=function(_0x4e8176,_0x234457){_0x4e8176=_0x4e8176-0xd2;let _0x462794=_0x64bd4c[_0x4e8176];return _0x462794;},a14_0x4e81(_0x28a5b3,_0x3cc7b5);}const fs=require('fs'),got=require('got'),{table}=require(a14_0xea5ad5(0x110)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0xea5ad5(0x11e)),{getCredentialsPath,getAuthHeader}=require(a14_0xea5ad5(0xe7)),{sendInstrumentationEvent}=require(a14_0xea5ad5(0xfa));function a14_0x64bd(){const _0x5a4abc=['usage','readFileSync','19848OAuvKL','epilogue','handler','type','243469GXejGv','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','push','xlBon','Vzwmb','name','24AOfNHm','90DHiSvx','dVzCc','WyXjw','15521iQfxNT','log','Failed\x20to\x20list\x20resources!\x20Error:\x20','exit','cloudProvider','../../utils/utilityMethods','dUYpJ','rRIGS','174861ADBBgQ','parse','IUdBw','body','error','unauthorised','list','all-grid-profiles','2bnqpxA','/packages/cli/get-grid-profiles','https://','FZtJq','region','suTJQ','1014uwVNav','forEach','../../utils/instrumentationUtils','ADAyR','bstackUsername','requestId','HhPQN','aBbic','CUvWg','RhdnI','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','sQwWm','XuuAq','cloud-provider','command','1401535rRpnPh','concurrency','stack','bAFrt','GET','869127soQzvN','description','statusCode','username','table','existsSync','init-not-called','XkmBj','8516FcgNPp','list-grid-profiles-called','gridProfile','boolean','nNBJC','allGridProfiles','WkvqM','grid-profiles','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','help','../../config/constants','171GYTyrK','grid-profile-name','stringify','password','TxePy','HPkLV','hMYbQ','6unJrLi','INFO','unknown-error','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','ERROR','jzJHC'];a14_0x64bd=function(){return _0x5a4abc;};return a14_0x64bd();}exports[a14_0xea5ad5(0x106)]=a14_0xea5ad5(0x11b),exports['desc']=a14_0xea5ad5(0x129),exports['builder']=function(_0x1fcfd3){const _0x2639e4=a14_0xea5ad5,_0x53efec={};_0x53efec[_0x2639e4(0x113)]=_0x2639e4(0x11c),_0x53efec[_0x2639e4(0x100)]=_0x2639e4(0x117),_0x53efec['tWUTV']='help';const _0x361583=_0x53efec,_0x29c6b8={};_0x29c6b8[_0x2639e4(0x10d)]=_0x361583[_0x2639e4(0x113)],_0x29c6b8[_0x2639e4(0xd7)]=_0x361583[_0x2639e4(0x100)];const _0x5c99b3={};return _0x5c99b3[_0x2639e4(0xf1)]=_0x29c6b8,_0x1fcfd3[_0x2639e4(0xd2)](HELP_HEADER_MESSAGE[_0x2639e4(0xf0)][_0x2639e4(0x116)])[_0x2639e4(0xd5)](HELP_FOOTER_MESSAGE)['options'](_0x5c99b3)[_0x2639e4(0x11d)](_0x361583['tWUTV'])['argv'];},exports[a14_0xea5ad5(0xd6)]=async function(_0x2e187e){const _0x436723=a14_0xea5ad5,_0x50afd5={'RhdnI':function(_0x123f2){return _0x123f2();},'YFgeP':_0x436723(0x102),'WkvqM':function(_0xd2035e,_0x26f921,_0x4dc765,_0x4d1e2b,_0x590614,_0x44d03b,_0x28804c){return _0xd2035e(_0x26f921,_0x4dc765,_0x4d1e2b,_0x590614,_0x44d03b,_0x28804c);},'WyXjw':_0x436723(0x115),'jzJHC':_0x436723(0x112),'rRIGS':function(_0x221ed4){return _0x221ed4();},'suTJQ':_0x436723(0x10b),'HhPQN':function(_0x14db48,_0x4cc3db,_0x1a6226){return _0x14db48(_0x4cc3db,_0x1a6226);},'aBbic':function(_0x237c4e,_0x2fa169,_0x223329,_0x24ef0d,_0x4c20a2,_0x56bfc1,_0x34240c){return _0x237c4e(_0x2fa169,_0x223329,_0x24ef0d,_0x4c20a2,_0x56bfc1,_0x34240c);},'bAFrt':function(_0x49ab66,_0x5ad803,_0x1aeeb7){return _0x49ab66(_0x5ad803,_0x1aeeb7);},'ADAyR':function(_0x2ee346,_0x1bbe55){return _0x2ee346!==_0x1bbe55;},'HPkLV':function(_0x2da9d6,_0x2137e4){return _0x2da9d6===_0x2137e4;},'TxePy':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','IUdBw':_0x436723(0x120),'xlBon':_0x436723(0x105),'cpVKZ':_0x436723(0xf6),'taXDq':_0x436723(0x108),'sQwWm':function(_0x5d6655,_0x4cdd19){return _0x5d6655(_0x4cdd19);},'Vzwmb':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','dUYpJ':function(_0x299ee8,_0x25c230,_0x53ce1b,_0x406ca2,_0x5f1561,_0x3e636a,_0x5799e4){return _0x299ee8(_0x25c230,_0x53ce1b,_0x406ca2,_0x5f1561,_0x3e636a,_0x5799e4);},'dVzCc':_0x436723(0xef),'hMYbQ':function(_0x2b8050,_0x5093b7,_0x1ac71a,_0x20c78a,_0x722f90,_0x5c0449,_0x1e0e21){return _0x2b8050(_0x5093b7,_0x1ac71a,_0x20c78a,_0x722f90,_0x5c0449,_0x1e0e21);},'nNBJC':'server-error','FZtJq':function(_0x19ba89,_0x3fb068,_0x479e61,_0x43f671,_0x5ce333,_0x442158,_0x4a983b){return _0x19ba89(_0x3fb068,_0x479e61,_0x43f671,_0x5ce333,_0x442158,_0x4a983b);},'XuuAq':_0x436723(0x128)};try{global_registry[_0x436723(0xfd)]=_0x50afd5['RhdnI'](uuidv4);let _0x59c2a5=_0x436723(0xf4)+AG_API_URL+_0x436723(0xf3);_0x2e187e[_0x436723(0x119)]&&(_0x59c2a5=_0x436723(0xf4)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs[_0x436723(0x111)](_0x50afd5[_0x436723(0x101)](getCredentialsPath))&&(console['error'](_0x50afd5['YFgeP']),await _0x50afd5[_0x436723(0x11a)](sendInstrumentationEvent,_0x2e187e,_0x50afd5[_0x436723(0xe1)],messageTypes[_0x436723(0x12a)],_0x50afd5[_0x436723(0x12b)],null,_0x2e187e),process[_0x436723(0xe5)](0x1));const _0x3c0f94=JSON[_0x436723(0xeb)](fs[_0x436723(0xd3)](_0x50afd5[_0x436723(0xe9)](getCredentialsPath))),_0x45124d={'method':_0x50afd5[_0x436723(0xf7)],'headers':_0x50afd5[_0x436723(0xfe)](getAuthHeader,_0x3c0f94['Browserstack'][_0x436723(0x10f)],_0x3c0f94['Browserstack'][_0x436723(0x122)]),'throwHttpErrors':![]};global_registry[_0x436723(0xfc)]=_0x3c0f94['Browserstack'][_0x436723(0x10f)],global_registry['bstackAccesskey']=_0x3c0f94['Browserstack']['password'],_0x50afd5[_0x436723(0xff)](sendInstrumentationEvent,_0x2e187e,_0x50afd5[_0x436723(0xe1)],messageTypes[_0x436723(0x127)],null,null,_0x2e187e);const _0x110d10=await _0x50afd5[_0x436723(0x10a)](got,_0x59c2a5,_0x45124d);if(_0x50afd5['ADAyR'](_0x110d10,null)&&_0x50afd5[_0x436723(0xfb)](_0x110d10,undefined)&&_0x50afd5[_0x436723(0x124)](_0x110d10[_0x436723(0x10e)],0xc8)){const _0x1f8676=JSON[_0x436723(0xeb)](_0x110d10[_0x436723(0xed)]);console[_0x436723(0xe3)](_0x50afd5[_0x436723(0x123)]);const _0x2af6fd=[];_0x2af6fd[_0x436723(0xda)]([_0x50afd5[_0x436723(0xec)],_0x50afd5[_0x436723(0xdb)],_0x50afd5['cpVKZ'],_0x50afd5['taXDq']]),_0x1f8676[_0x436723(0xf9)](_0xca9e7b=>{const _0x19e382=_0x436723;_0x2af6fd['push']([_0xca9e7b[_0x19e382(0xdd)],_0xca9e7b[_0x19e382(0xe6)],_0xca9e7b[_0x19e382(0xf6)],_0xca9e7b[_0x19e382(0x108)]]);}),console['log'](_0x50afd5[_0x436723(0x103)](table,_0x2af6fd)),process[_0x436723(0xe5)](0x0);}_0x50afd5['HPkLV'](_0x110d10[_0x436723(0x10e)],0x191)&&(console[_0x436723(0xee)](_0x50afd5[_0x436723(0xdc)]),await _0x50afd5[_0x436723(0xe8)](sendInstrumentationEvent,_0x2e187e,_0x50afd5[_0x436723(0xe1)],messageTypes[_0x436723(0x12a)],_0x50afd5[_0x436723(0xe0)],null,_0x2e187e),process[_0x436723(0xe5)](0x1)),console[_0x436723(0xee)](_0x436723(0xd9)+JSON[_0x436723(0x121)](_0x110d10)),await _0x50afd5[_0x436723(0x125)](sendInstrumentationEvent,_0x2e187e,_0x50afd5[_0x436723(0xe1)],messageTypes[_0x436723(0x12a)],_0x50afd5[_0x436723(0x118)],_0x110d10,_0x2e187e),process[_0x436723(0xe5)](0x1);}catch(_0xa6baee){console[_0x436723(0xee)](_0x436723(0xe4)+_0xa6baee[_0x436723(0x109)]),await _0x50afd5[_0x436723(0xf5)](sendInstrumentationEvent,_0x2e187e,_0x50afd5[_0x436723(0xe1)],messageTypes[_0x436723(0x12a)],_0x50afd5[_0x436723(0x104)],_0xa6baee,_0x2e187e),process[_0x436723(0xe5)](0x1);}};
1
+ const a14_0x48b35d=a14_0x1418;function a14_0x1418(_0x264622,_0x472f76){const _0x4f27d3=a14_0x4f27();return a14_0x1418=function(_0x1418bb,_0x2ff540){_0x1418bb=_0x1418bb-0xc9;let _0x59dbd9=_0x4f27d3[_0x1418bb];return _0x59dbd9;},a14_0x1418(_0x264622,_0x472f76);}(function(_0x5797d5,_0x87c296){const _0x44d0ee=a14_0x1418,_0x5bb491=_0x5797d5();while(!![]){try{const _0x11c3ec=-parseInt(_0x44d0ee(0xda))/0x1*(parseInt(_0x44d0ee(0x114))/0x2)+-parseInt(_0x44d0ee(0x110))/0x3+-parseInt(_0x44d0ee(0xd8))/0x4+-parseInt(_0x44d0ee(0xf4))/0x5+-parseInt(_0x44d0ee(0x10d))/0x6*(parseInt(_0x44d0ee(0xf8))/0x7)+parseInt(_0x44d0ee(0xcd))/0x8*(parseInt(_0x44d0ee(0xec))/0x9)+parseInt(_0x44d0ee(0x106))/0xa;if(_0x11c3ec===_0x87c296)break;else _0x5bb491['push'](_0x5bb491['shift']());}catch(_0x8e75a3){_0x5bb491['push'](_0x5bb491['shift']());}}}(a14_0x4f27,0x3af45));const fs=require('fs'),got=require(a14_0x48b35d(0xea)),{table}=require(a14_0x48b35d(0x10c)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x48b35d(0x10f)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x48b35d(0x107));exports[a14_0x48b35d(0xf7)]='grid-profiles',exports['desc']='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports[a14_0x48b35d(0x10e)]=function(_0x1d4490){const _0x1462ed=a14_0x48b35d,_0x1cc377={};_0x1cc377['yblsm']=_0x1462ed(0xe4),_0x1cc377[_0x1462ed(0xe7)]=_0x1462ed(0xf9),_0x1cc377[_0x1462ed(0x103)]=_0x1462ed(0xd5);const _0x38b208=_0x1cc377,_0x64ec5f={};_0x64ec5f[_0x1462ed(0xeb)]=_0x38b208[_0x1462ed(0xed)],_0x64ec5f[_0x1462ed(0xd4)]=_0x38b208[_0x1462ed(0xe7)];const _0x4ef283={};return _0x4ef283['all-grid-profiles']=_0x64ec5f,_0x1d4490['usage'](HELP_HEADER_MESSAGE['list']['gridProfile'])[_0x1462ed(0xf1)](HELP_FOOTER_MESSAGE)[_0x1462ed(0x104)](_0x4ef283)[_0x1462ed(0xd5)](_0x38b208[_0x1462ed(0x103)])[_0x1462ed(0xce)];},exports[a14_0x48b35d(0xfd)]=async function(_0x588c5a){const _0x569499=a14_0x48b35d,_0x1de70c={'GYwTY':function(_0xfb7bed){return _0xfb7bed();},'rTQyK':_0x569499(0x109),'tqcKR':function(_0x131d8b,_0x2989ed,_0x52135b,_0x3435db,_0x5569b7,_0x4f732b,_0x12ca48){return _0x131d8b(_0x2989ed,_0x52135b,_0x3435db,_0x5569b7,_0x4f732b,_0x12ca48);},'eRVuU':_0x569499(0x113),'lGqYC':_0x569499(0xe8),'UbWCv':function(_0x25d0a7){return _0x25d0a7();},'eBMuz':_0x569499(0xf5),'sktfd':function(_0x4e5600,_0x111e1e,_0x3296ef){return _0x4e5600(_0x111e1e,_0x3296ef);},'KQkay':function(_0xa5b19c,_0x238fee,_0x413792,_0x3efe16,_0x513f21,_0x5d4ee4,_0x25399e){return _0xa5b19c(_0x238fee,_0x413792,_0x3efe16,_0x513f21,_0x5d4ee4,_0x25399e);},'Mzciu':function(_0xbaa4fb,_0x44c4ef,_0x45620e){return _0xbaa4fb(_0x44c4ef,_0x45620e);},'BAeTh':function(_0x475c47,_0xde41f8){return _0x475c47!==_0xde41f8;},'gOhkk':function(_0x3be2e0,_0x2321be){return _0x3be2e0!==_0x2321be;},'pFmqP':function(_0x51c356,_0x19b19a){return _0x51c356===_0x19b19a;},'rsIpl':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','CGFaJ':_0x569499(0xdb),'mAdRp':_0x569499(0xf0),'ZUcxC':_0x569499(0xe0),'JoATc':_0x569499(0x111),'Yxann':function(_0x262808,_0x38afa8){return _0x262808(_0x38afa8);},'vvUse':function(_0x296569,_0x45bc21){return _0x296569===_0x45bc21;},'kYAWO':_0x569499(0xe5),'QFuGB':_0x569499(0x105),'ykIkk':'server-error','CeiEv':function(_0x5579d8,_0x4a76bf,_0x15b1a5,_0x5d6c40,_0x113c3c,_0x28fa0c,_0x22be2c){return _0x5579d8(_0x4a76bf,_0x15b1a5,_0x5d6c40,_0x113c3c,_0x28fa0c,_0x22be2c);},'bLhDr':_0x569499(0xfb)};try{global_registry['requestId']=_0x1de70c[_0x569499(0xf6)](uuidv4);let _0x34425b=_0x569499(0xfa)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x588c5a['allGridProfiles']&&(_0x34425b=_0x569499(0xfa)+AG_API_URL+_0x569499(0x108));!fs[_0x569499(0x112)](_0x1de70c[_0x569499(0xf6)](getCredentialsPath))&&(console[_0x569499(0x116)](_0x1de70c['rTQyK']),await _0x1de70c[_0x569499(0xff)](sendInstrumentationEvent,_0x588c5a,_0x1de70c[_0x569499(0xee)],messageTypes['ERROR'],_0x1de70c['lGqYC'],null,_0x588c5a),process[_0x569499(0xe2)](0x1));const _0x4af017=JSON['parse'](fs[_0x569499(0xdc)](_0x1de70c[_0x569499(0x115)](getCredentialsPath))),_0x19ad53={'method':_0x1de70c[_0x569499(0xfe)],'headers':_0x1de70c[_0x569499(0xe6)](getAuthHeader,_0x4af017[_0x569499(0xcc)][_0x569499(0x10b)],_0x4af017[_0x569499(0xcc)][_0x569499(0xdd)]),'throwHttpErrors':![]};global_registry[_0x569499(0xd0)]=_0x4af017[_0x569499(0xcc)][_0x569499(0x10b)],global_registry[_0x569499(0xc9)]=_0x4af017[_0x569499(0xcc)][_0x569499(0xdd)],_0x1de70c[_0x569499(0x100)](sendInstrumentationEvent,_0x588c5a,_0x1de70c['eRVuU'],messageTypes[_0x569499(0xd6)],null,null,_0x588c5a);const _0x4e8a3d=await _0x1de70c[_0x569499(0xd7)](got,_0x34425b,_0x19ad53);if(_0x1de70c[_0x569499(0xd9)](_0x4e8a3d,null)&&_0x1de70c['gOhkk'](_0x4e8a3d,undefined)&&_0x1de70c[_0x569499(0xca)](_0x4e8a3d[_0x569499(0xe9)],0xc8)){const _0x4bda17=JSON[_0x569499(0xfc)](_0x4e8a3d['body']);console[_0x569499(0xd1)](_0x1de70c['rsIpl']);const _0x57a34a=[];_0x57a34a['push']([_0x1de70c[_0x569499(0xcf)],_0x1de70c['mAdRp'],_0x1de70c['ZUcxC'],_0x1de70c['JoATc']]),_0x4bda17[_0x569499(0xe3)](_0x1d2497=>{const _0x34cae6=_0x569499;_0x57a34a[_0x34cae6(0xd3)]([_0x1d2497[_0x34cae6(0xdf)],_0x1d2497[_0x34cae6(0xd2)],_0x1d2497[_0x34cae6(0xe0)],_0x1d2497['concurrency']]);}),console[_0x569499(0xd1)](_0x1de70c[_0x569499(0xcb)](table,_0x57a34a)),process['exit'](0x0);}_0x1de70c[_0x569499(0x10a)](_0x4e8a3d[_0x569499(0xe9)],0x191)&&(console['error'](_0x1de70c[_0x569499(0xde)]),await _0x1de70c['tqcKR'](sendInstrumentationEvent,_0x588c5a,_0x1de70c['eRVuU'],messageTypes[_0x569499(0x101)],_0x1de70c[_0x569499(0xef)],null,_0x588c5a),process[_0x569499(0xe2)](0x1)),console[_0x569499(0x116)](_0x569499(0xf2)+JSON[_0x569499(0xf3)](_0x4e8a3d)),await _0x1de70c[_0x569499(0x100)](sendInstrumentationEvent,_0x588c5a,_0x1de70c[_0x569499(0xee)],messageTypes[_0x569499(0x101)],_0x1de70c['ykIkk'],_0x4e8a3d,_0x588c5a),process[_0x569499(0xe2)](0x1);}catch(_0x1a05b9){console[_0x569499(0x116)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x1a05b9[_0x569499(0xe1)]),await _0x1de70c['CeiEv'](sendInstrumentationEvent,_0x588c5a,_0x1de70c['eRVuU'],messageTypes[_0x569499(0x101)],_0x1de70c[_0x569499(0x102)],_0x1a05b9,_0x588c5a),process[_0x569499(0xe2)](0x1);}};function a14_0x4f27(){const _0xaae2bc=['push','type','help','INFO','Mzciu','1342416HlVauS','BAeTh','9vcTdGd','grid-profile-name','readFileSync','password','kYAWO','name','region','stack','exit','forEach','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','sktfd','SahSR','init-not-called','statusCode','got','description','36Luhwmo','yblsm','eRVuU','QFuGB','cloud-provider','epilogue','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stringify','1805485VcOpMN','GET','GYwTY','command','7UXaDdp','boolean','https://','unknown-error','parse','handler','eBMuz','tqcKR','KQkay','ERROR','bLhDr','QHqdI','options','unauthorised','14518340ojAThy','../../utils/instrumentationUtils','/packages/cli/get-all-grid-profiles','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','vvUse','username','table','1568748lDwTJD','builder','../../config/constants','712185MwVWaU','concurrency','existsSync','list-grid-profiles-called','89118UfeCcu','UbWCv','error','bstackAccesskey','pFmqP','Yxann','Browserstack','772456kFxBzk','argv','CGFaJ','bstackUsername','log','cloudProvider'];a14_0x4f27=function(){return _0xaae2bc;};return a14_0x4f27();}