browserstack-node-sdk 1.46.5 → 1.46.6
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.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
- package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
- package/src/bin/v2/framework/testFramework.js +1 -1
- package/src/bin/v2/grpcClient.js +1 -1
- package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
- package/src/bin/v2/instances/trackedContext.js +1 -1
- package/src/bin/v2/instances/trackedInstance.js +1 -1
- package/src/bin/v2/modules/accessibilityModule.js +1 -1
- package/src/bin/v2/modules/baseModule.js +1 -1
- package/src/bin/v2/modules/observabilityModule.js +1 -1
- package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
- package/src/bin/v2/modules/testhubModule.js +1 -1
- package/src/bin/v2/state/automationFrameworkState.js +1 -1
- package/src/bin/v2/state/hookState.js +1 -1
- package/src/bin/v2/state/testFrameworkState.js +1 -1
- package/src/bin/v2/uploadAttachmentsManager.js +1 -1
- package/src/bin/v2/utils/cucumber-utils.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/classLogger.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/metadata.js +1 -1
- package/src/helpers/patchHelper.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance/constants.js +1 -1
- package/src/helpers/performance/performance-tester.js +1 -1
- package/src/helpers/playwright-helper.js +1 -1
- package/src/helpers/processHelper.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/test-orchestration/constants.js +1 -1
- package/src/helpers/test-orchestration/failfastManager.js +1 -1
- package/src/helpers/test-orchestration/fileHelper.js +1 -1
- package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
- package/src/helpers/test-orchestration/requestUtils.js +1 -1
- package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
- package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/utilities.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9_0xa0125f=a9_0x1b3d;function a9_0x1f05(){const _0x199fd2=['clusterAutoUpgrade','Cluster\x20','s3bucket','RHRLu','PHIaL','rCWtx','create-grid-checks-invalid-profile','\x27\x20grid\x20profile','Added\x20Turboscale\x20Uploader\x20deployment.','CLI_RUN_FINISHED','../..','efs-csi','FYXYB','error','kuBBE','KVJSx','private-ingress-nginx-controller','rAFdK','Cluster:\x20','6|7|4|5|8|3|0|1|2','serviceAccountName','eyofz','KDLbc','HKoTA','sendResourceDataToHST','gEMrJ','7EgGXDl','BMFli','30YbAGbc','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','spec','create-grid-checks-null-response','handler','cluster-autoupgrade','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','fAHvH','Hub\x20HA\x20setup\x20completed\x20successfully.','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','KZdyW','QLHyV','MtGaO','15|0|4|1|14|7|2|12|13|8|10|6|5|9|3|11','help','name','eaWuZ','kafkaPassword','qRVtx','xDfQe','default','Grid\x20profile\x20fetched\x20from\x20backend','koaGw','bitnami-redis.yaml','gridProfileId','hubVersion','Added\x20Kafka\x20deployment.','fqJDM','BVXyY','instanceType','Tfkez','description','BQVvm','ayxRV','glLtM','\x20using\x20\x27','GET','LOG','CLI\x20run\x20finished:\x20','xKjag','TjHtu','Spawning\x20the\x20grid\x20','zlYyn','fttrY','../../utils/instrumentationUtils','readFileAsync','createOtherResources','ijyvI','cluster-name','fAnOL','QBsdY','https://','options','create-grid-checks-grid-already-exists','bZtBL','mOsZQ','fRwAv','NzFmN','addListeners','EPGrp','Okbeh','../../utils/utilityMethods','IcvvP','../../config/constants','XBJQM','uAohg','stringify','concurrency','UkRNzNYCBU','FrSog','ifmZe','maxNodes','route53','delay','ijrTB','ygSrp','JdiWi','command','../../cloudproviders/utils','user','clusterAutoupgrade','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','Grid\x20can\x20be\x20accessed\x20at:\x20','init-not-called','desc','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','hub-ha','4|3|2|0|1','oekQL','QEJun','Adding\x20Kafka\x20deployment...','statusCode','djjAp','setupNewCluster','MCSbz','ucLvz','AsaAS','YpssC','split','ITSVM','IupBV','bJYSZ','LEtwd','ingress-nginx','FjMsR','mkERk','bstackAccesskey','FizWt','TXrHi','../../config/logger','LQeOn','deleteCluster','WebSocket','isNewAWSCluster','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','jsMkc','dFocL','metadata','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Created\x20Hub\x20HA\x20resources','cvSEM','lGCkE','MNCdH','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','pcMMV','debug','clusterName','hubHaNameSpace','MNcfi','lCbEC','lIJny','paEdy','grid-name','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','ERROR','SHLEQ','nuWNy','YoMIM','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','SxqjO','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','body','MOYuS','yOLVk','replace','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','BDBeB','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','CLI\x20run\x20started','clusterRegion','Spawning\x20grid\x20on\x20to\x20the\x20cluster','gridName','rnGNH','yXVCZ','browserstack-secret.yaml','loxSI','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','requestId','gridProfile','AJSIn','getGridHostname','XwJCL','create','gFiwU','parse','1|3|2|4|0','newCluster','Deleting\x20the\x20CloudFormation\x20Stacks','WKNAy','UFEVF','Will\x20be\x20spawning\x20the\x20grid\x20','soopO','VPDoI','join','JmpjB','bitnami-kafka.yaml','Adding\x20Redis\x20deployment...','readNamespacedService','Found\x20VPC:\x20','toLowerCase','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','tctbI','gridProfiles','YqCXW','0|1|5|7|6|8|3|4|2','redisPassword','Namespace\x20created','bnooc','isVPCPresent','SYQGL','IhIDw','llSaa','KzbeV','cloudProvider','xUoMH','username','WpKQi','Namespace\x20Created','JDvfz','eENTO','skip-tls-cert-verify','cHTVN','setupHubHa','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','uyTww','VASNk','got','INFO','LMEhC','VCzoh','Spawning\x20Grid\x20on\x20the\x20Cluster','XOsVL','js-yaml','lKsEc','209710kWnzaO','../../utils/createk8sClient','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Subnets:\x20','jEVYD','createNamespace','dGtYW','yHMKi','builder','WSfqg','2|1|4|0|3','ZxEqQ','ZdJxr','managedBy','vOzXU','pre-spawned-invalid-vpc','bcUFP','tEpbG','create-grid-checks-auth-failed','ZGyaO','hub-ha-deployments-failed','aEtiC','grid-profile','setupAutoscaler','55276xsiixy','XugDR','alreadyPresent','rVVcR','coNmM','URqhg','1309144qgULah','string','reconnecting-websocket','turboscale-uploader.yaml','aIkhs','isClusterPresent','CRscd','lJtcg','XIpSt','wYcYu','private-grid','HvTVc','phwsL','ylwVu','Create\x20a\x20private/public\x20grid.','sendEventToBackend','khSXY','zeRvC','duLQR','GIzKu','annotations','enableHubHa','exit','loadAll','cloud-provider','rILpC','Creating\x20Hub\x20HA\x20resources','gptIA','password','JmkCQ','isPrivateGrid','bGhfb','NsLMl','privateGrid','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','\x20in\x20existing\x20cluster\x20\x27','ETWeJ','boolean','readFileSync','zXhYt','dbxmt','goJxm','shyOM','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','Cluster\x20created\x20successfully','TOFcg','dsriI','uploaderVersion','Added\x20Redis\x20deployment.','utf-8','zDgED','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','browserVersion','440234CcoSjJ','get-grid-url-non-200','dYIdH','iiRos','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','621171zvUVlE','mduNp','MMARt','template','SFvHC','8987099Fupwvw','Create\x20a\x20new\x20Automation\x20grid.','CLI_RUN_STARTED','EhlUT','Flag\x20to\x20enable\x20Hub\x20HA','JkZLl','Grid\x20spawned\x20on\x20the\x20cluster','connectionTimeout','EoiNf','uploaderImageVersion','turboscale-managed-identity-','rsFWU','stack','jyWWn','UQsjE','gsrff','info','WgitH','length','Epyd5nXbRK','get-grid-url-null-response','zLiIN','https','TOcku','0|3|1|4|2','lmdVO','createdBy','gexON','LtkDS','CdqMq','VwFJC','region','bstackUsername','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Jamnp','UCiNG','SSOiI','FPjje','Lzeyl','Browserstack','iHeOc','kafkaUploader','zmmwU','wsqGj','LtXJS','Adding\x20Secret\x20Mapping','HCjjv','VMssN','create-grid-checks-non-200','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','naUmm','ZxoyO','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','272582ydnMsD','UbAmW','xcMrh','grid','message','3bOMrKj','hubHa','JfbGj','WzEak','NBdcf','qjZpF','kXLws','GLwvb','existsSync','gNSWc','Found\x20Subnets:\x20','QlaTZ','type','warn','labels','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','bbpPE','azurefile-csi-premium','rsHGS','LyciK','vpc','YuPWT','wLTCr','ingress-nginx-controller','minNodes','argv','securityGroups','true','Skip\x20insecure\x20cert\x20verification.','OtoTm','NlYZg','tzxYi','dmUsE','uAvrs','60AqHLSE','/packages/cli/get-grid-url?gridIdentifier='];a9_0x1f05=function(){return _0x199fd2;};return a9_0x1f05();}(function(_0x2c4928,_0x46a814){const _0x4bca41=a9_0x1b3d,_0x3fbda8=_0x2c4928();while(!![]){try{const _0x2ba91e=parseInt(_0x4bca41(0x347))/0x1+-parseInt(_0x4bca41(0x1d8))/0x2+parseInt(_0x4bca41(0x1dd))/0x3*(-parseInt(_0x4bca41(0x30b))/0x4)+parseInt(_0x4bca41(0x2f3))/0x5*(parseInt(_0x4bca41(0x1ff))/0x6)+parseInt(_0x4bca41(0x21b))/0x7*(parseInt(_0x4bca41(0x311))/0x8)+-parseInt(_0x4bca41(0x34c))/0x9*(-parseInt(_0x4bca41(0x21d))/0xa)+-parseInt(_0x4bca41(0x351))/0xb;if(_0x2ba91e===_0x46a814)break;else _0x3fbda8['push'](_0x3fbda8['shift']());}catch(_0x316710){_0x3fbda8['push'](_0x3fbda8['shift']());}}}(a9_0x1f05,0x40443));function a9_0x1b3d(_0x5dd6e0,_0x164cdc){const _0x1f0592=a9_0x1f05();return a9_0x1b3d=function(_0x1b3ddb,_0x15b6ea){_0x1b3ddb=_0x1b3ddb-0x1a4;let _0x4d2027=_0x1f0592[_0x1b3ddb];return _0x4d2027;},a9_0x1b3d(_0x5dd6e0,_0x164cdc);}const fs=require('fs'),ws=require('ws'),path=require('path'),yaml=require(a9_0xa0125f(0x2f1)),ReconnectingWebSocket=require(a9_0xa0125f(0x313)),got=require(a9_0xa0125f(0x2eb)),{v4:uuidv4}=require('uuid'),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0xa0125f(0x28a)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0xa0125f(0x25a)),{getCloudProviderObject}=require(a9_0xa0125f(0x26b)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0xa0125f(0x25c)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0xa0125f(0x2f4)),{sendInstrumentationEvent}=require(a9_0xa0125f(0x249));exports[a9_0xa0125f(0x26a)]=a9_0xa0125f(0x1db),exports[a9_0xa0125f(0x271)]=a9_0xa0125f(0x352),exports[a9_0xa0125f(0x2fb)]=function(_0x2e97f7){const _0xc28ae9=a9_0xa0125f,_0x31b1b8={};_0x31b1b8[_0xc28ae9(0x2c5)]=_0xc28ae9(0x26e),_0x31b1b8[_0xc28ae9(0x1fc)]=_0xc28ae9(0x312),_0x31b1b8[_0xc28ae9(0x21c)]=_0xc28ae9(0x1d7),_0x31b1b8[_0xc28ae9(0x29f)]=_0xc28ae9(0x272),_0x31b1b8[_0xc28ae9(0x1e2)]=_0xc28ae9(0x2f5),_0x31b1b8[_0xc28ae9(0x2ff)]=_0xc28ae9(0x2e8),_0x31b1b8[_0xc28ae9(0x282)]='Create\x20a\x20private/public\x20grid.',_0x31b1b8[_0xc28ae9(0x2ac)]='Skip\x20insecure\x20cert\x20verification.',_0x31b1b8[_0xc28ae9(0x1e1)]=_0xc28ae9(0x337),_0x31b1b8[_0xc28ae9(0x2da)]=_0xc28ae9(0x1a6),_0x31b1b8[_0xc28ae9(0x245)]=_0xc28ae9(0x1d4),_0x31b1b8[_0xc28ae9(0x1be)]=_0xc28ae9(0x22b);const _0x5b0587=_0x31b1b8,_0x521239={};_0x521239[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x2c5)],_0x521239[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x12f348={};_0x12f348[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x21c)],_0x12f348['type']=_0x5b0587['tzxYi'];const _0x302152={};_0x302152[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x29f)],_0x302152[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x4faa5d={};_0x4faa5d[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x1e2)],_0x4faa5d[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x5cc0e3={};_0x5cc0e3[_0xc28ae9(0x23c)]=_0x5b0587['ZdJxr'],_0x5cc0e3[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x4246cc={};_0x4246cc[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x282)],_0x4246cc[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1fc)];const _0x7c7aba={};_0x7c7aba[_0xc28ae9(0x23c)]=_0x5b0587['yOLVk'],_0x7c7aba[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1e1)],_0x7c7aba[_0xc28ae9(0x231)]=![];const _0x298807={};_0x298807[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x2da)],_0x298807['type']=_0x5b0587['NBdcf'],_0x298807['default']=![];const _0x5d499b={};_0x5d499b[_0xc28ae9(0x23c)]=_0x5b0587[_0xc28ae9(0x245)],_0x5d499b[_0xc28ae9(0x1e9)]=_0x5b0587[_0xc28ae9(0x1e1)],_0x5d499b[_0xc28ae9(0x231)]=![];const _0x29e1c7={};return _0x29e1c7[_0xc28ae9(0x2a1)]=_0x521239,_0x29e1c7['grid-profile']=_0x12f348,_0x29e1c7[_0xc28ae9(0x24d)]=_0x302152,_0x29e1c7[_0xc28ae9(0x329)]=_0x4faa5d,_0x29e1c7['region']=_0x5cc0e3,_0x29e1c7['private-grid']=_0x4246cc,_0x29e1c7[_0xc28ae9(0x2e5)]=_0x7c7aba,_0x29e1c7[_0xc28ae9(0x273)]=_0x298807,_0x29e1c7[_0xc28ae9(0x222)]=_0x5d499b,_0x2e97f7['usage'](HELP_HEADER_MESSAGE[_0xc28ae9(0x2bf)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xc28ae9(0x251)](_0x29e1c7)[_0xc28ae9(0x22b)](_0x5b0587[_0xc28ae9(0x1be)])[_0xc28ae9(0x1f6)];},exports[a9_0xa0125f(0x221)]=async function(_0xbdb8d7){const _0x15bbf2=a9_0xa0125f,_0x194b7f={'shyOM':_0x15bbf2(0x26e),'LtXJS':_0x15bbf2(0x312),'LrYGP':_0x15bbf2(0x1d7),'bZtBL':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','dsriI':_0x15bbf2(0x2f5),'vOzXU':_0x15bbf2(0x2e8),'DAfVt':_0x15bbf2(0x31f),'KzbeV':_0x15bbf2(0x1f9),'ucLvz':_0x15bbf2(0x337),'uyTww':_0x15bbf2(0x1a6),'WJeyJ':_0x15bbf2(0x1d4),'duLQR':_0x15bbf2(0x22b),'yGyIa':_0x15bbf2(0x2c2),'HKoTA':'Enabling\x20Hub\x20HA\x20flow','CdqMq':_0x15bbf2(0x261),'bcUFP':'browserstack','dGtYW':_0x15bbf2(0x1b5),'WgitH':_0x15bbf2(0x22a),'Jamnp':function(_0x4a00be,_0x20f00d,_0x4eb862,_0x27ebca,_0x412b74,_0x3bfd69,_0x36d783,_0x1dcf0c,_0x58de60,_0x120d0d,_0x4b77cd,_0x2f50f3,_0x480ca8){return _0x4a00be(_0x20f00d,_0x4eb862,_0x27ebca,_0x412b74,_0x3bfd69,_0x36d783,_0x1dcf0c,_0x58de60,_0x120d0d,_0x4b77cd,_0x2f50f3,_0x480ca8);},'MNCdH':function(_0x3ec031,_0x22dd9e){return _0x3ec031!==_0x22dd9e;},'gptIA':function(_0x3a997d,_0x10c74e){return _0x3a997d(_0x10c74e);},'Okbeh':_0x15bbf2(0x1f8),'BDBeB':_0x15bbf2(0x231),'Dxyvu':_0x15bbf2(0x2d5),'JkZLl':_0x15bbf2(0x2b1),'eyofz':'http','xcMrh':_0x15bbf2(0x1b8),'phwsL':'premium-rwo','SSOiI':function(_0x187294,_0x24d60f){return _0x187294(_0x24d60f);},'JDvfz':_0x15bbf2(0x1ee),'fRwAv':_0x15bbf2(0x1ea),'UCiNG':function(_0x2fc253,_0x5abd70){return _0x2fc253===_0x5abd70;},'ifmZe':'error','fAnOL':_0x15bbf2(0x226),'SHLEQ':function(_0x5863eb,_0x4c17d3){return _0x5863eb(_0x4c17d3);},'JfbGj':function(_0x215aa6){return _0x215aa6();},'koaGw':function(_0x5b9f85,_0xbb5e95){return _0x5b9f85===_0xbb5e95;},'rILpC':_0x15bbf2(0x27b),'dGWfv':_0x15bbf2(0x244),'zLiIN':_0x15bbf2(0x333),'ijyvI':function(_0x596c0b,_0x463d28,_0x5af282,_0x980d5,_0x5b42f2,_0x462a08,_0x19e5ca){return _0x596c0b(_0x463d28,_0x5af282,_0x980d5,_0x5b42f2,_0x462a08,_0x19e5ca);},'XOsVL':'create-grid-called','VwFJC':_0x15bbf2(0x270),'lCbEC':function(_0x20507f){return _0x20507f();},'tVtgt':'<UsernamePlaceholder>','TXrHi':'<PasswordPlaceholder>','gNSWc':'Adding\x20Websocket\x20listeners','bnooc':'Fenly','djjAp':function(_0xf0ff2d,_0x509072){return _0xf0ff2d===_0x509072;},'aEtiC':_0x15bbf2(0x1fb),'WzEak':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','cvSEM':function(_0x15d27d,_0x272f88,_0x1c0896,_0x234f82,_0x5502f3,_0x476ef8,_0x4ded40,_0x6ebdf9){return _0x15d27d(_0x272f88,_0x1c0896,_0x234f82,_0x5502f3,_0x476ef8,_0x4ded40,_0x6ebdf9);},'SbeGr':'prespawned-cluster-args-not-passed','uAvrs':_0x15bbf2(0x23d),'gHDjJ':_0x15bbf2(0x345),'FjMsR':'non-aws-azure-cluster','jEVYD':function(_0x3da927,_0x108ea4){return _0x3da927===_0x108ea4;},'KDLbc':function(_0x4ba6cd,_0x43a928){return _0x4ba6cd!==_0x43a928;},'AsaAS':_0x15bbf2(0x310),'USLFI':_0x15bbf2(0x2ea),'AJSIn':'ZzTgY','kuBBE':function(_0x1b86fa,_0x575a44){return _0x1b86fa!==_0x575a44;},'tEpbG':_0x15bbf2(0x1ca),'IULua':_0x15bbf2(0x1e4),'YpssC':_0x15bbf2(0x241),'rCWtx':function(_0xd51f0c,_0x2a7f25,_0x49cb19){return _0xd51f0c(_0x2a7f25,_0x49cb19);},'JmpjB':_0x15bbf2(0x280),'OfgcR':_0x15bbf2(0x331),'iYYpi':_0x15bbf2(0x210),'LQeOn':function(_0x24aa20,_0x46b600,_0x14586e){return _0x24aa20(_0x46b600,_0x14586e);},'pcMMV':'DQFAX','bbpPE':'RuBOS','QEJun':_0x15bbf2(0x293),'LyciK':_0x15bbf2(0x220),'UbAmW':_0x15bbf2(0x227),'gsrff':_0x15bbf2(0x1ec),'fAHvH':_0x15bbf2(0x305),'YqCXW':function(_0x335158,_0xef541c){return _0x335158===_0xef541c;},'XIpSt':'iCCNN','rsHGS':_0x15bbf2(0x30f),'WpKQi':_0x15bbf2(0x1d2),'VCzoh':_0x15bbf2(0x232),'rnGNH':'JgAwJ','gexON':_0x15bbf2(0x252),'lGCkE':_0x15bbf2(0x330),'aIkhs':'slSYD','nuWNy':'TpmyL','SxqjO':'AFGkZ','OtoTm':_0x15bbf2(0x1ba),'loxSI':function(_0x2d9fd7,_0x451cc3){return _0x2d9fd7===_0x451cc3;},'dYIdH':'wbSYv','zXhYt':function(_0x394e2c,_0x1587e9){return _0x394e2c===_0x1587e9;},'DrCPa':function(_0x2f2e83,_0x483262){return _0x2f2e83!==_0x483262;},'uAohg':'WCrve','rVVcR':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','tctbI':function(_0x585a18,_0x246115,_0x957282,_0x3d3fa9,_0x49acf5,_0x51e1b8,_0x1df7f8,_0x32dd3f){return _0x585a18(_0x246115,_0x957282,_0x3d3fa9,_0x49acf5,_0x51e1b8,_0x1df7f8,_0x32dd3f);},'MOYuS':_0x15bbf2(0x207),'rAFdK':_0x15bbf2(0x230),'HCjjv':function(_0x11034e,_0x1e0f88){return _0x11034e===_0x1e0f88;},'gEMrJ':_0x15bbf2(0x2db),'CRscd':function(_0x26f77a,_0x3f86bb){return _0x26f77a!==_0x3f86bb;},'zDgED':_0x15bbf2(0x2fe),'xUoMH':'tXSXo','dFocL':function(_0x352ca4,_0x339f95,_0x223b37,_0x423b2d,_0x60954b,_0x4d5bdb,_0x17bb08,_0x3ead61,_0x1c469e,_0x2e32d2,_0x35c4df,_0x5c7e00,_0x5d3c25){return _0x352ca4(_0x339f95,_0x223b37,_0x423b2d,_0x60954b,_0x4d5bdb,_0x17bb08,_0x3ead61,_0x1c469e,_0x2e32d2,_0x35c4df,_0x5c7e00,_0x5d3c25);},'oekQL':'mfxOv','ZxoyO':function(_0x789f1d,_0x3ccbba){return _0x789f1d!==_0x3ccbba;},'wLTCr':_0x15bbf2(0x205),'JdiWi':function(_0x349c9e,_0x422ce6){return _0x349c9e===_0x422ce6;},'mduNp':_0x15bbf2(0x22d),'xnAXW':function(_0x4b6bb9,_0x1f4dd4){return _0x4b6bb9===_0x1f4dd4;},'WSfqg':_0x15bbf2(0x2e4),'LDKWa':function(_0x2ff380,_0x226547){return _0x2ff380(_0x226547);},'yXVCZ':_0x15bbf2(0x228),'bsyIR':_0x15bbf2(0x25d),'soopO':_0x15bbf2(0x214),'UQsjE':function(_0x486812,_0x11e1aa,_0x56f6e7,_0x482170,_0x5573d4,_0x19d1f6,_0x30cb2f){return _0x486812(_0x11e1aa,_0x56f6e7,_0x482170,_0x5573d4,_0x19d1f6,_0x30cb2f);},'LEtwd':_0x15bbf2(0x1ad),'zmmwU':function(_0x4e5279,_0x36ca16){return _0x4e5279===_0x36ca16;},'IcvvP':function(_0x8a3651,_0x1ab72b){return _0x8a3651===_0x1ab72b;},'FPjje':_0x15bbf2(0x2e6),'yQEqV':function(_0x51020f,_0x4c68b3){return _0x51020f===_0x4c68b3;},'VMssN':_0x15bbf2(0x324),'HvTVc':_0x15bbf2(0x2a9),'gFiwU':function(_0x54a1f1,_0x5bfe4a){return _0x54a1f1!=_0x5bfe4a;},'HugzQ':function(_0x46d485,_0xec75fe){return _0x46d485>_0xec75fe;},'VPDoI':function(_0x40ea97,_0x2f1759){return _0x40ea97===_0x2f1759;},'tVckm':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','kXLws':function(_0x15171c,_0x3e230b,_0x961bd9,_0x3b877f,_0x5663cb,_0x4509e0,_0x1dbbdc,_0x3b64d8){return _0x15171c(_0x3e230b,_0x961bd9,_0x3b877f,_0x5663cb,_0x4509e0,_0x1dbbdc,_0x3b64d8);},'YoMIM':'pre-spawned-subnets-not-selected','pmsEk':_0x15bbf2(0x223),'NzFmN':_0x15bbf2(0x302),'FizWt':function(_0x4999b7,_0x585341,_0x332e1e,_0x47a5fd,_0x1cecc2,_0x1f1050,_0x310f75,_0x40b5f6){return _0x4999b7(_0x585341,_0x332e1e,_0x47a5fd,_0x1cecc2,_0x1f1050,_0x310f75,_0x40b5f6);},'XwJCL':'pre-spawned-invalid-subnets','TOFcg':_0x15bbf2(0x274),'ayxRV':_0x15bbf2(0x33e),'ylwVu':_0x15bbf2(0x1d3),'iiRos':function(_0x17452d,_0x284cf4,_0x287924){return _0x17452d(_0x284cf4,_0x287924);},'wfRAx':function(_0x299707,_0x4dd2bb){return _0x299707===_0x4dd2bb;},'MtGaO':function(_0x3e8c73,_0x3570a5){return _0x3e8c73===_0x3570a5;},'IupBV':_0x15bbf2(0x32b),'MNcfi':function(_0x5442d1,_0x39388f,_0x693289){return _0x5442d1(_0x39388f,_0x693289);},'FYXYB':_0x15bbf2(0x1cf),'mOsZQ':_0x15bbf2(0x20b),'EPGrp':'templates','XugDR':'hubharesources','kFgrz':_0x15bbf2(0x2b7),'ijrTB':_0x15bbf2(0x343),'fqJDM':function(_0x2c5dbe,_0x4d6525){return _0x2c5dbe(_0x4d6525);},'lJtcg':function(_0x19a473,_0x46e348){return _0x19a473(_0x46e348);},'ikFAq':function(_0x55c98d,_0xa3767f){return _0x55c98d(_0xa3767f);},'Lzeyl':function(_0x1406d6,_0x53831d,_0x5e29f4){return _0x1406d6(_0x53831d,_0x5e29f4);},'UFEVF':'Added\x20Secret\x20Mapping','goJxm':_0x15bbf2(0x20c),'TOcku':function(_0x3a6720,_0x289d46){return _0x3a6720===_0x289d46;},'tgzJM':function(_0x4995c4,_0x12e307){return _0x4995c4===_0x12e307;},'qRVtx':_0x15bbf2(0x2cd),'dbxmt':_0x15bbf2(0x234),'BmBBY':_0x15bbf2(0x342),'dmUsE':_0x15bbf2(0x277),'khSXY':_0x15bbf2(0x2cc),'MMARt':function(_0x4cc192,_0x6a8239,_0x23b43b){return _0x4cc192(_0x6a8239,_0x23b43b);},'SFvHC':_0x15bbf2(0x237),'mkERk':'Adding\x20Turboscale\x20Uploader\x20deployment...','Gbyza':_0x15bbf2(0x314),'FrSog':_0x15bbf2(0x209),'YuPWT':_0x15bbf2(0x294),'wYcYu':_0x15bbf2(0x225),'BVXyY':_0x15bbf2(0x2fd),'jsMkc':_0x15bbf2(0x307),'tRzYQ':function(_0x4147e8,_0x5c2af9){return _0x4147e8(_0x5c2af9);},'glLtM':'Creating\x20namespace','Tfkez':function(_0x1bd8a4,_0x1bdb14){return _0x1bd8a4!==_0x1bdb14;},'paEdy':'Browserstack','JmkCQ':_0x15bbf2(0x2e2),'QlaTZ':_0x15bbf2(0x2d7),'zeRvC':_0x15bbf2(0x2b3),'yHMKi':_0x15bbf2(0x2ef),'llSaa':function(_0x3d6ef3,_0x18f96e,_0x3b59fb,_0x2eed51,_0x22b577,_0x55d4e2,_0x28828f,_0x2adff6,_0x2d0201,_0xbefb,_0x494746){return _0x3d6ef3(_0x18f96e,_0x3b59fb,_0x2eed51,_0x22b577,_0x55d4e2,_0x28828f,_0x2adff6,_0x2d0201,_0xbefb,_0x494746);},'fttrY':_0x15bbf2(0x1a8),'QHAID':_0x15bbf2(0x2a7),'jyWWn':function(_0x1911f7,_0x10ee8e,_0xc795f1,_0x10c39a,_0x4ce32b){return _0x1911f7(_0x10ee8e,_0xc795f1,_0x10c39a,_0x4ce32b);},'hCzjl':_0x15bbf2(0x211),'zlYyn':_0x15bbf2(0x1f4),'wsqGj':_0x15bbf2(0x284),'mxxOn':function(_0x3a61ba,_0x369e95,_0x1ab154){return _0x3a61ba(_0x369e95,_0x1ab154);},'RGoDZ':function(_0x59e5d7,_0x59ec1c){return _0x59e5d7===_0x59ec1c;},'QBsdY':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','naUmm':function(_0x53cdfa,_0x48dd50,_0x2f8f3a,_0x79582f,_0x26e3fe,_0x263fa3,_0x56acb4,_0xfb9b56){return _0x53cdfa(_0x48dd50,_0x2f8f3a,_0x79582f,_0x26e3fe,_0x263fa3,_0x56acb4,_0xfb9b56);},'lmdVO':_0x15bbf2(0x1b6),'lKsEc':function(_0x4b4647,_0xba5ab1){return _0x4b4647===_0xba5ab1;},'ygSrp':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','RHRLu':'get-grid-url-auth-failed','CtTex':function(_0x3653f6,_0xe90893){return _0x3653f6!==_0xe90893;},'EhlUT':_0x15bbf2(0x348),'ZGyaO':function(_0x3fca1b,_0x186609){return _0x3fca1b===_0x186609;},'ETWeJ':_0x15bbf2(0x2c4),'LMEhC':function(_0x187e9a,_0x143049,_0xdb3879,_0x400e4e,_0x104c25,_0xfdeb27){return _0x187e9a(_0x143049,_0xdb3879,_0x400e4e,_0x104c25,_0xfdeb27);},'EoiNf':'grid-spawning-failed'};let _0x27118f=![],_0x5aa0e7=![],_0xbb7bf,_0x5e5e06,_0x4810ac,_0x5c8c30,_0x2d9ce8,_0x4d4a1c,_0x8fbea0,_0x1be57d,_0x56073f,_0x469f60,_0x10c84e,_0x431f2c,_0x208b4b,_0x54dc73,_0x206b5d=0x1,_0x29c944=0xe;try{global_registry[_0x15bbf2(0x2ba)]=_0x194b7f[_0x15bbf2(0x1df)](uuidv4),global_registry[_0x15bbf2(0x32f)]=![];if(!fs[_0x15bbf2(0x1e5)](_0x194b7f[_0x15bbf2(0x1df)](getCredentialsPath))){if(_0x194b7f[_0x15bbf2(0x233)](_0x194b7f[_0x15bbf2(0x32a)],_0x194b7f['dGWfv'])){const _0x5333a3={};_0x5333a3[_0x15bbf2(0x23c)]=_0x194b7f[_0x15bbf2(0x33c)],_0x5333a3[_0x15bbf2(0x1e9)]=_0x194b7f['LtXJS'];const _0x2a4c92={};_0x2a4c92[_0x15bbf2(0x23c)]=_0x194b7f['LrYGP'],_0x2a4c92[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x1ce)];const _0x383d86={};_0x383d86['description']=_0x194b7f[_0x15bbf2(0x253)],_0x383d86[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x1ce)];const _0xef2249={};_0xef2249[_0x15bbf2(0x23c)]=_0x194b7f[_0x15bbf2(0x340)],_0xef2249[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x1ce)];const _0xbf786={};_0xbf786['description']=_0x194b7f[_0x15bbf2(0x301)],_0xbf786[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x1ce)];const _0x251520={};_0x251520[_0x15bbf2(0x23c)]=_0x194b7f['DAfVt'],_0x251520[_0x15bbf2(0x1e9)]=_0x194b7f['LtXJS'];const _0x15ca11={};_0x15ca11[_0x15bbf2(0x23c)]=_0x194b7f[_0x15bbf2(0x2dd)],_0x15ca11[_0x15bbf2(0x1e9)]=_0x194b7f['ucLvz'],_0x15ca11[_0x15bbf2(0x231)]=![];const _0x21b908={};_0x21b908[_0x15bbf2(0x23c)]=_0x194b7f[_0x15bbf2(0x2e9)],_0x21b908[_0x15bbf2(0x1e9)]=_0x194b7f['ucLvz'],_0x21b908['default']=![];const _0x5b24a1={};_0x5b24a1[_0x15bbf2(0x23c)]=_0x194b7f['WJeyJ'],_0x5b24a1[_0x15bbf2(0x1e9)]=_0x194b7f[_0x15bbf2(0x27c)],_0x5b24a1[_0x15bbf2(0x231)]=![];const _0x2c94a0={};return _0x2c94a0[_0x15bbf2(0x2a1)]=_0x5333a3,_0x2c94a0[_0x15bbf2(0x309)]=_0x2a4c92,_0x2c94a0['cluster-name']=_0x383d86,_0x2c94a0[_0x15bbf2(0x329)]=_0xef2249,_0x2c94a0[_0x15bbf2(0x1c1)]=_0xbf786,_0x2c94a0[_0x15bbf2(0x31b)]=_0x251520,_0x2c94a0[_0x15bbf2(0x2e5)]=_0x15ca11,_0x2c94a0[_0x15bbf2(0x273)]=_0x21b908,_0x2c94a0[_0x15bbf2(0x222)]=_0x5b24a1,_0x2dee59['usage'](_0x4d15f2['create'])['epilogue'](_0x264e4e)[_0x15bbf2(0x251)](_0x2c94a0)[_0x15bbf2(0x22b)](_0x194b7f[_0x15bbf2(0x323)])['argv'];}else console[_0x15bbf2(0x20e)](_0x194b7f[_0x15bbf2(0x1b7)]),await _0x194b7f['ijyvI'](sendInstrumentationEvent,_0xbdb8d7,_0x194b7f['XOsVL'],messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x1c0)],null,_0xbdb8d7),process['exit'](0x1);}await _0x194b7f[_0x15bbf2(0x24c)](sendInstrumentationEvent,_0xbdb8d7,_0x194b7f[_0x15bbf2(0x2f0)],messageTypes[_0x15bbf2(0x2ec)],null,null,_0xbdb8d7);const _0x558f6f=JSON[_0x15bbf2(0x2c1)](fs[_0x15bbf2(0x338)](_0x194b7f[_0x15bbf2(0x29e)](getCredentialsPath)));global_registry[_0x15bbf2(0x1c2)]=_0x558f6f[_0x15bbf2(0x1c9)][_0x15bbf2(0x2e0)],global_registry['bstackAccesskey']=_0x558f6f[_0x15bbf2(0x1c9)][_0x15bbf2(0x32d)];const _0xe41a8b=WS_ENDPOINT['replace'](_0x194b7f['tVtgt'],_0x558f6f[_0x15bbf2(0x1c9)][_0x15bbf2(0x2e0)])['replace'](_0x194b7f[_0x15bbf2(0x289)],_0x558f6f[_0x15bbf2(0x1c9)][_0x15bbf2(0x32d)]),_0x4b7816={};_0x4b7816[_0x15bbf2(0x28d)]=ws,_0x4b7816[_0x15bbf2(0x1a9)]=0x36ee80,_0x431f2c=new ReconnectingWebSocket(_0xe41a8b,[],_0x4b7816),logger[_0x15bbf2(0x29a)](_0x194b7f[_0x15bbf2(0x1e6)]),webSocketUtils[_0x15bbf2(0x257)](_0x431f2c,_0xbdb8d7[_0x15bbf2(0x26c)],_0xbdb8d7[_0x15bbf2(0x32d)]);const _0x2824b6=_0xbdb8d7[_0x15bbf2(0x2b4)]||DEFAULT_GRID_NAME;if(_0xbdb8d7[_0x15bbf2(0x29b)]||_0xbdb8d7[_0x15bbf2(0x2de)]||_0xbdb8d7[_0x15bbf2(0x1c1)]){if(_0x194b7f['MNCdH'](_0x194b7f[_0x15bbf2(0x2d8)],_0x194b7f[_0x15bbf2(0x2d8)]))_0xf0ddb7[_0x15bbf2(0x1b2)](_0x15bbf2(0x213)+_0x452075['clusterName']+_0x15bbf2(0x2b0)),_0x1dd776=![],_0x5a92ba=!![];else{!(_0xbdb8d7[_0x15bbf2(0x29b)]&&_0xbdb8d7[_0x15bbf2(0x2de)]&&_0xbdb8d7[_0x15bbf2(0x1c1)])&&(_0x194b7f[_0x15bbf2(0x279)](_0x194b7f['aEtiC'],_0x194b7f[_0x15bbf2(0x308)])?(_0xbb7bf=_0x194b7f[_0x15bbf2(0x1e0)],await _0x194b7f[_0x15bbf2(0x295)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f['SbeGr'],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):_0x265ff9[_0x15bbf2(0x32f)]=!![]);![AWS,AZURE,GCP]['includes'](_0xbdb8d7[_0x15bbf2(0x2de)][_0x15bbf2(0x2d0)]())&&(_0x194b7f[_0x15bbf2(0x279)](_0x194b7f[_0x15bbf2(0x1fe)],_0x194b7f[_0x15bbf2(0x1fe)])?(_0xbb7bf=_0x194b7f['gHDjJ'],await _0x194b7f[_0x15bbf2(0x295)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x285)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process['exit'](0x1)):_0x408f86['gridProfile']=_0xa20ed5[_0x15bbf2(0x2bb)]);if(_0xbdb8d7[_0x15bbf2(0x332)]&&_0x194b7f[_0x15bbf2(0x2f7)](_0xbdb8d7[_0x15bbf2(0x332)][_0x15bbf2(0x2d0)](),_0x194b7f[_0x15bbf2(0x259)])){if(_0x194b7f['KDLbc'](_0x194b7f[_0x15bbf2(0x27d)],_0x194b7f['AsaAS'])){const _0xac8954=_0x194b7f['yGyIa'][_0x15bbf2(0x27f)]('|');let _0x2dbf89=0x0;while(!![]){switch(_0xac8954[_0x2dbf89++]){case'0':_0x26dfdc[_0x15bbf2(0x326)]=!![];continue;case'1':_0x127176[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x218)]);continue;case'2':_0x354bf6[_0x15bbf2(0x2d6)]=_0x194b7f[_0x15bbf2(0x1bf)];continue;case'3':_0x4b0f0c[_0x15bbf2(0x29c)]=_0x194b7f['bcUFP'];continue;case'4':_0x5dba88[_0x15bbf2(0x22e)]=_0x194b7f[_0x15bbf2(0x2f9)];continue;}break;}}else global_registry[_0x15bbf2(0x32f)]=!![];}global_registry[_0x15bbf2(0x2de)]=_0xbdb8d7[_0x15bbf2(0x2de)],global_registry[_0x15bbf2(0x2b2)]=_0xbdb8d7['region'],global_registry[_0x15bbf2(0x29b)]=_0xbdb8d7[_0x15bbf2(0x29b)];const _0x306368=await _0x194b7f[_0x15bbf2(0x24c)](getCloudProviderObject,_0xbdb8d7[_0x15bbf2(0x2de)],_0xbdb8d7[_0x15bbf2(0x29b)],_0x2824b6,_0x431f2c,webSocketUtils,_0xbdb8d7),_0x49004d=await _0x306368[_0x15bbf2(0x316)]();if(!_0x49004d){if(_0x194b7f[_0x15bbf2(0x217)](_0x194b7f['USLFI'],_0x194b7f[_0x15bbf2(0x2bc)]))logger['info'](_0x15bbf2(0x213)+_0xbdb8d7[_0x15bbf2(0x29b)]+_0x15bbf2(0x2b0)),_0x27118f=![],_0x5aa0e7=!![];else{const _0x1deb81=_0x194b7f[_0x15bbf2(0x1b3)][_0x15bbf2(0x27f)]('|');let _0x509a07=0x0;while(!![]){switch(_0x1deb81[_0x509a07++]){case'0':_0x25ae31[_0x15bbf2(0x1b2)](_0x436395);continue;case'1':_0x348ada=_0xd22d02[_0x15bbf2(0x260)];continue;case'2':_0x4969b9=null;continue;case'3':_0x194b7f[_0x15bbf2(0x1c4)](_0x4a4c42,_0x46b2e6,_0x1aa9ba,_0x5052f6,_0x12d83f,_0x33f02e,_0x31c25e,_0x51d477,_0x4f15a2,_0xf0318f,_0xa7dc0,_0x3bd46d,_0x5ca64f[_0x15bbf2(0x26d)]);continue;case'4':const _0x35beba={};_0x35beba[_0x15bbf2(0x1e9)]=_0x48614b[_0x15bbf2(0x242)],_0x35beba[_0x15bbf2(0x1dc)]=_0x43df38,_0xce40bd[_0x15bbf2(0x320)](_0xa0ad25,_0x35beba);continue;case'5':_0x1151cf=_0x533320[_0x15bbf2(0x346)];continue;case'6':_0x3ae2fc=_0x7372ba['hubVersion'];continue;case'7':_0x2db562=null;continue;case'8':_0x58c374=_0x238396[_0x15bbf2(0x1f5)];continue;case'9':_0x194b7f[_0x15bbf2(0x297)](_0x141e87['privateGrid'],_0x4d541e)&&_0x501b95[_0x15bbf2(0x332)]&&(_0x5e7b99[_0x15bbf2(0x32f)]=!![]);continue;case'10':_0x1a3a67=_0x5a96ab['maxNodes'];continue;case'11':_0x2fba58['enableHubHa']&&_0x194b7f[_0x15bbf2(0x32c)](_0x1c2386,_0x1b3aa2['kafkaUploader']);continue;case'12':_0x51ecf7=null;continue;case'13':_0xc60f7f=_0x577ed5['s3bucket'];continue;case'14':_0x1f00cb=_0x36ed7a[_0x15bbf2(0x23a)];continue;case'15':_0x2c8f04=_0x15bbf2(0x2a2)+_0x191953;continue;}break;}}}else _0x194b7f['kuBBE'](_0x194b7f[_0x15bbf2(0x304)],_0x194b7f[_0x15bbf2(0x304)])?_0x20c476=!![]:_0x27118f=!![];_0x4810ac=_0xbdb8d7[_0x15bbf2(0x29b)],_0x5e5e06=_0xbdb8d7[_0x15bbf2(0x2de)][_0x15bbf2(0x2d0)](),_0x5c8c30=_0xbdb8d7[_0x15bbf2(0x1c1)];}}else{if(_0xbdb8d7[_0x15bbf2(0x2bb)]){if(_0x194b7f['kuBBE'](_0x194b7f['IULua'],_0x194b7f['IULua'])){const _0x4e65f5={'azure.workload.identity/use':_0x194b7f['Okbeh'],..._0x33b0ba[0x0][_0x15bbf2(0x21f)][_0x15bbf2(0x34f)][_0x15bbf2(0x292)][_0x15bbf2(0x1eb)]};_0x4e6f16[0x0][_0x15bbf2(0x21f)][_0x15bbf2(0x34f)]['metadata'][_0x15bbf2(0x1eb)]=_0x4e65f5,_0x305806[0x0]['spec'][_0x15bbf2(0x34f)][_0x15bbf2(0x21f)][_0x15bbf2(0x215)]=_0x194b7f[_0x15bbf2(0x2af)];}else global_registry['gridProfile']=_0xbdb8d7[_0x15bbf2(0x2bb)];}}global_registry[_0x15bbf2(0x2b4)]=_0xbdb8d7['gridName'];const _0x5aaba1={'method':_0x194b7f[_0x15bbf2(0x27e)],'headers':_0x194b7f[_0x15bbf2(0x206)](getAuthHeader,_0x558f6f['Browserstack'][_0x15bbf2(0x2e0)],_0x558f6f[_0x15bbf2(0x1c9)]['password']),'throwHttpErrors':![]},_0x175f37={};_0x175f37['gridName']=_0x2824b6;const _0x2f3f26=_0x175f37;_0x5aa0e7&&(_0x194b7f[_0x15bbf2(0x217)](_0x194b7f[_0x15bbf2(0x2cb)],_0x194b7f[_0x15bbf2(0x2cb)])?_0x4aece9[_0x15bbf2(0x32f)]=!![]:(_0x2f3f26[_0x15bbf2(0x1c1)]=_0x5c8c30,_0x2f3f26['cloudProvider']=_0x5e5e06,_0x2f3f26[_0x15bbf2(0x2c3)]=!![],_0x2f3f26[_0x15bbf2(0x201)]=_0xbdb8d7['clusterAutoupgrade']));if(_0xbdb8d7[_0x15bbf2(0x26d)]){if(_0x194b7f[_0x15bbf2(0x20f)](_0x194b7f['OfgcR'],_0x194b7f['iYYpi']))logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x24e)]);else{const _0x1b5f31=_0x194b7f['Dxyvu'][_0x15bbf2(0x27f)]('|');let _0x3702e1=0x0;while(!![]){switch(_0x1b5f31[_0x3702e1++]){case'0':const _0x122c95={};_0x122c95[_0x15bbf2(0x1e9)]=_0x47c3d4[_0x15bbf2(0x1a4)],_0x122c95['message']=_0x194b7f[_0x15bbf2(0x1a7)],_0x51db4c[_0x15bbf2(0x320)](_0x130675,_0x122c95);continue;case'1':_0x64efad=_0x15bbf2(0x246)+_0x327764+_0x15bbf2(0x335)+_0x5138cb+'\x27';continue;case'2':_0x45280b['browserVersion']=_0x55c8fd[_0x15bbf2(0x346)];continue;case'3':_0x2dec4a[_0x15bbf2(0x29b)]=_0xf5d01e;continue;case'4':_0x4b1a85[_0x15bbf2(0x236)]=_0x4ce16f[_0x15bbf2(0x236)];continue;case'5':_0x350cac[_0x15bbf2(0x1b2)](_0x1b5e8d);continue;case'6':_0x40b01e[_0x15bbf2(0x2de)]=_0x157ee3;continue;case'7':const _0x5bb328={};_0x5bb328['type']=_0x3092e0['LOG'],_0x5bb328['message']=_0x7f1768,_0xefa9bc[_0x15bbf2(0x320)](_0xf696d5,_0x5bb328);continue;case'8':_0x315468[_0x15bbf2(0x2b2)]=_0x3ce17e;continue;}break;}}}const _0x4da446='https://'+AG_API_URL+'/packages/cli/create-grid-checks',_0x4bc15d={'searchParams':_0x2f3f26,'throwHttpErrors':![],..._0x5aaba1},_0x1154f7=_0x4bc15d,_0x40c55d=await _0x194b7f[_0x15bbf2(0x28b)](got,_0x4da446,_0x1154f7);(_0x194b7f['jEVYD'](_0x40c55d,null)||_0x194b7f[_0x15bbf2(0x1c5)](_0x40c55d,undefined))&&(_0x194b7f[_0x15bbf2(0x297)](_0x194b7f[_0x15bbf2(0x299)],_0x194b7f[_0x15bbf2(0x1ed)])?(_0xbb7bf=_0x194b7f[_0x15bbf2(0x276)],await _0x194b7f[_0x15bbf2(0x295)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x1f0)],_0x194b7f['ifmZe']),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):_0x3f338d[_0x15bbf2(0x32f)]=!![]);_0x194b7f['koaGw'](_0x40c55d['statusCode'],0x191)&&(_0x194b7f[_0x15bbf2(0x217)](_0x194b7f[_0x15bbf2(0x1d9)],_0x194b7f[_0x15bbf2(0x1d9)])?_0x5a46ee=_0x194b7f['eyofz']:(_0xbb7bf=_0x194b7f[_0x15bbf2(0x1b1)],await _0x194b7f[_0x15bbf2(0x295)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x224)],_0x194b7f[_0x15bbf2(0x263)]),logger['error'](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)));_0x194b7f[_0x15bbf2(0x20f)](_0x40c55d[_0x15bbf2(0x278)],0xc8)&&(_0x194b7f[_0x15bbf2(0x2d4)](_0x194b7f[_0x15bbf2(0x319)],_0x194b7f[_0x15bbf2(0x1ef)])?_0x345344[_0x15bbf2(0x20e)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x17d976+'\x20\x0a'+_0x2f024d['stringify'](_0x497cf0[_0x15bbf2(0x1ae)])):(_0xbb7bf='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x15bbf2(0x25f)](_0x40c55d[_0x15bbf2(0x2aa)]),await _0x194b7f['cvSEM'](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x2e1)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)));const _0x36abfa=JSON[_0x15bbf2(0x2c1)](_0x40c55d['body']),_0x35d8cb={};_0x35d8cb[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x1a4)],_0x35d8cb[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x1a7)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x35d8cb);const _0x29466a={};_0x29466a[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x29466a[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x2ee)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x29466a);_0x36abfa[_0x15bbf2(0x30d)]&&(_0x194b7f['YqCXW'](_0x194b7f[_0x15bbf2(0x2b5)],_0x194b7f[_0x15bbf2(0x2b5)])?(_0xbb7bf=_0x15bbf2(0x334)+_0x2824b6+_0x15bbf2(0x1c3),await _0x194b7f['cvSEM'](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x1bd)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):_0x390268=null);const _0x49bc9b=_0x36abfa[_0x15bbf2(0x2d3)];let _0x2846d9=_0x49bc9b[_0x36abfa['defaultGridProfile']];_0xbdb8d7[_0x15bbf2(0x2bb)]&&(_0x194b7f['kuBBE'](_0x194b7f[_0x15bbf2(0x296)],_0x194b7f[_0x15bbf2(0x315)])?_0x2846d9=_0x49bc9b[_0xbdb8d7[_0x15bbf2(0x2bb)]]:(_0x547d18=_0x5755bb['route53'],_0x15d986=_0x194b7f[_0x15bbf2(0x1da)]));global_registry['enableHubHa']=![];if(_0xbdb8d7[_0x15bbf2(0x1de)]){if(_0x194b7f[_0x15bbf2(0x20f)](_0x194b7f[_0x15bbf2(0x2a5)],_0x194b7f[_0x15bbf2(0x2a8)])){const _0x194022=_0x194b7f[_0x15bbf2(0x1fa)][_0x15bbf2(0x27f)]('|');let _0x22de64=0x0;while(!![]){switch(_0x194022[_0x22de64++]){case'0':logger['info'](_0x194b7f['HKoTA']);continue;case'1':global_registry[_0x15bbf2(0x2d6)]=_0x194b7f[_0x15bbf2(0x1bf)];continue;case'2':global_registry[_0x15bbf2(0x326)]=!![];continue;case'3':global_registry['hubHaNameSpace']=_0x194b7f[_0x15bbf2(0x303)];continue;case'4':global_registry[_0x15bbf2(0x22e)]=_0x194b7f[_0x15bbf2(0x2f9)];continue;}break;}}else _0x5956af=null;}if(_0x194b7f['jEVYD'](_0x27118f,![])&&_0x194b7f[_0x15bbf2(0x2b8)](_0x5aa0e7,![])){if(_0x194b7f[_0x15bbf2(0x233)](_0x194b7f[_0x15bbf2(0x349)],_0x194b7f[_0x15bbf2(0x349)])){_0x194b7f[_0x15bbf2(0x339)](_0x2846d9,undefined)&&(_0x194b7f['DrCPa'](_0x194b7f[_0x15bbf2(0x25e)],_0x194b7f[_0x15bbf2(0x25e)])?_0x53d17d=_0x194b7f[_0x15bbf2(0x31d)]:(_0xbb7bf=_0x194b7f[_0x15bbf2(0x30e)],await _0x194b7f[_0x15bbf2(0x2d2)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x2ab)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)));global_registry[_0x15bbf2(0x235)]=_0x2846d9['id'],_0xbb7bf=_0x15bbf2(0x2c7)+_0x2824b6+_0x15bbf2(0x240)+_0x2846d9[_0x15bbf2(0x22c)]+_0x15bbf2(0x208),logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0x549bdc={};_0x549bdc[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x549bdc[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x549bdc),_0x5e5e06=_0x2846d9['cloudProvider'],_0x4810ac=_0x2846d9['clusterName'],_0x5c8c30=_0x2846d9[_0x15bbf2(0x1c1)],_0x2d9ce8=_0x2846d9[_0x15bbf2(0x260)],_0x4d4a1c=_0x2846d9[_0x15bbf2(0x23a)],_0x8fbea0=_0x2846d9[_0x15bbf2(0x1f1)],_0x1be57d=_0x2846d9[_0x15bbf2(0x1f7)],_0x56073f=_0x2846d9['subnets'],_0x469f60=_0x2846d9['s3bucket'],_0x206b5d=_0x2846d9['minNodes'],_0x29c944=_0x2846d9[_0x15bbf2(0x264)],_0x208b4b=_0x36abfa[_0x15bbf2(0x236)],_0x54dc73=_0x36abfa['browserVersion'],_0x8fbea0&&_0x194b7f[_0x15bbf2(0x233)](_0x8fbea0[_0x15bbf2(0x1b4)],0x0)&&(_0x194b7f[_0x15bbf2(0x2f7)](_0x194b7f[_0x15bbf2(0x212)],_0x194b7f[_0x15bbf2(0x212)])?_0x8fbea0=null:(_0x35c1e8['region']=_0x4a327c,_0x5ca842[_0x15bbf2(0x2de)]=_0x1869e4,_0xcf2d40[_0x15bbf2(0x2c3)]=!![],_0x261961['clusterAutoUpgrade']=_0x19ab4c[_0x15bbf2(0x26d)])),_0x56073f&&_0x194b7f['HCjjv'](_0x56073f[_0x15bbf2(0x1b4)],0x0)&&(_0x194b7f[_0x15bbf2(0x2f7)](_0x194b7f[_0x15bbf2(0x21a)],_0x194b7f['gEMrJ'])?_0x56073f=null:_0x194b7f[_0x15bbf2(0x1c6)](_0x539721,_0x5069db['uploaderVersion'])),_0x194b7f['CRscd'](_0x2846d9[_0x15bbf2(0x332)],undefined)&&_0x2846d9[_0x15bbf2(0x332)]&&(_0x194b7f[_0x15bbf2(0x279)](_0x194b7f[_0x15bbf2(0x344)],_0x194b7f[_0x15bbf2(0x2df)])?_0x33600f=_0x194b7f['JDvfz']:global_registry[_0x15bbf2(0x32f)]=!![]),_0x194b7f[_0x15bbf2(0x291)](updateGlobalRegistryWithConfig,_0x5e5e06,_0x4810ac,_0x5c8c30,_0x2d9ce8,_0x4d4a1c,_0x469f60,_0x2846d9,_0x208b4b,_0x54dc73,_0x206b5d,_0x29c944,_0xbdb8d7[_0x15bbf2(0x26d)]),global_registry[_0x15bbf2(0x326)]&&(_0x194b7f[_0x15bbf2(0x339)](_0x194b7f[_0x15bbf2(0x275)],_0x194b7f['oekQL'])?_0x194b7f[_0x15bbf2(0x2a4)](updateGlobalRegistryForHubHa,_0x36abfa[_0x15bbf2(0x341)]):_0x4b1945[_0x15bbf2(0x1b2)](_0x15bbf2(0x1e7)+_0x1b802d[_0x15bbf2(0x25f)](_0x41ae93)+'\x20'));}else _0x508083['sendResourceDataToHST']();}else{if(_0x194b7f[_0x15bbf2(0x279)](_0x5aa0e7,!![])){if(_0x194b7f[_0x15bbf2(0x1d6)](_0x194b7f[_0x15bbf2(0x1f3)],_0x194b7f[_0x15bbf2(0x1f3)]))throw new _0x4df503('Cluster\x20'+_0x56923f+_0x15bbf2(0x298));else{_0xbb7bf=_0x15bbf2(0x2a2)+_0x2824b6,logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0x58a7fd={};_0x58a7fd['type']=WS_EVENTS['LOG'],_0x58a7fd[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils['sendEventToBackend'](_0x431f2c,_0x58a7fd),_0x2d9ce8=_0x2846d9['concurrency'],_0x4d4a1c=_0x2846d9[_0x15bbf2(0x23a)],_0x8fbea0=null,_0x1be57d=null,_0x56073f=null,_0x469f60=_0x2846d9[_0x15bbf2(0x203)],_0x206b5d=_0x2846d9[_0x15bbf2(0x1f5)],_0x29c944=_0x2846d9[_0x15bbf2(0x264)],_0x208b4b=_0x36abfa[_0x15bbf2(0x236)],_0x54dc73=_0x36abfa[_0x15bbf2(0x346)];if(_0x194b7f['CRscd'](_0x2846d9[_0x15bbf2(0x332)],undefined)&&_0x2846d9[_0x15bbf2(0x332)]){if(_0x194b7f[_0x15bbf2(0x269)](_0x194b7f['mduNp'],_0x194b7f[_0x15bbf2(0x34d)]))global_registry['isPrivateGrid']=!![];else{const _0x2bb6a0={};_0x2bb6a0[_0x15bbf2(0x1e9)]=_0x2d2624[_0x15bbf2(0x242)],_0x2bb6a0[_0x15bbf2(0x1dc)]=_0x15bbf2(0x202)+_0x30b793+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x2b276e[_0x15bbf2(0x320)](_0x5d7c03,_0x2bb6a0,_0x194b7f[_0x15bbf2(0x255)]),_0x1b986f[_0x15bbf2(0x1b2)](_0x15bbf2(0x202)+_0x11e54e+_0x15bbf2(0x28f)),_0x4ed970=!![];if(_0x194b7f[_0x15bbf2(0x1c5)](_0x18cbb4,!![]))throw new _0x31dec2(_0x15bbf2(0x202)+_0x270f22+_0x15bbf2(0x298));}}_0x194b7f[_0x15bbf2(0x1c4)](updateGlobalRegistryWithConfig,_0x5e5e06,_0x4810ac,_0x5c8c30,_0x2d9ce8,_0x4d4a1c,_0x469f60,_0x2846d9,_0x208b4b,_0x54dc73,_0x206b5d,_0x29c944,_0xbdb8d7[_0x15bbf2(0x26d)]);if(global_registry[_0x15bbf2(0x326)]){if(_0x194b7f['xnAXW'](_0x194b7f['WSfqg'],_0x194b7f[_0x15bbf2(0x2fc)]))_0x194b7f['LDKWa'](updateGlobalRegistryForHubHa,_0x36abfa[_0x15bbf2(0x1cb)]);else{const _0x5f2cee={};_0x5f2cee[_0x15bbf2(0x1e9)]=_0x10380f['LOG'],_0x5f2cee['message']=_0x4095a5,_0x301c6e['sendEventToBackend'](_0x18b3d5,_0x5f2cee,_0x194b7f[_0x15bbf2(0x263)],!![]);}}}}else{if(_0x194b7f[_0x15bbf2(0x1d6)](_0x194b7f[_0x15bbf2(0x2b6)],_0x194b7f['bsyIR'])){const _0x262590=_0x194b7f[_0x15bbf2(0x2c8)][_0x15bbf2(0x27f)]('|');let _0x1dbf5f=0x0;while(!![]){switch(_0x262590[_0x1dbf5f++]){case'0':global_registry[_0x15bbf2(0x29b)]=_0x4810ac;continue;case'1':global_registry[_0x15bbf2(0x236)]=_0x36abfa[_0x15bbf2(0x236)];continue;case'2':global_registry[_0x15bbf2(0x346)]=_0x36abfa[_0x15bbf2(0x346)];continue;case'3':global_registry[_0x15bbf2(0x2b2)]=_0x5c8c30;continue;case'4':logger['info'](_0xbb7bf);continue;case'5':const _0x19e286={};_0x19e286['type']=WS_EVENTS[_0x15bbf2(0x242)],_0x19e286[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils['sendEventToBackend'](_0x431f2c,_0x19e286);continue;case'6':const _0x4f6c9d={};_0x4f6c9d['type']=WS_EVENTS[_0x15bbf2(0x1a4)],_0x4f6c9d[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x1a7)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x4f6c9d);continue;case'7':_0xbb7bf=_0x15bbf2(0x246)+_0x2824b6+_0x15bbf2(0x335)+_0x4810ac+'\x27';continue;case'8':global_registry[_0x15bbf2(0x2de)]=_0x5e5e06;continue;}break;}}else _0x592d81[_0x15bbf2(0x1b2)](_0x194b7f['fAnOL']);}}const _0x12817a=await _0x194b7f[_0x15bbf2(0x1b0)](getCloudProviderObject,_0x5e5e06,_0x4810ac,_0x2824b6,_0x431f2c,webSocketUtils,_0xbdb8d7);_0x194b7f[_0x15bbf2(0x297)](_0x5e5e06,AZURE)&&(_0x194b7f[_0x15bbf2(0x1d0)](_0x194b7f[_0x15bbf2(0x283)],_0x194b7f[_0x15bbf2(0x283)])?_0x12817a[_0x15bbf2(0x219)]():_0x1f0b30[_0x15bbf2(0x1b2)](_0x15bbf2(0x2cf)+_0xb588f8+'\x20'));let _0x29b799;if(_0x194b7f[_0x15bbf2(0x1cc)](_0x27118f,![])){_0xbb7bf=_0x15bbf2(0x2b9)+_0x5c8c30+').';const _0x40ec49={};_0x40ec49[_0x15bbf2(0x1e9)]=WS_EVENTS['LOG'],_0x40ec49['message']=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x40ec49),logger['info'](_0xbb7bf);const _0x51bd44=await _0x12817a[_0x15bbf2(0x316)]();if(_0x51bd44){if(_0x194b7f['IcvvP'](_0x194b7f[_0x15bbf2(0x1c7)],_0x194b7f['FPjje'])){const _0xcc61a9={};_0xcc61a9[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0xcc61a9[_0x15bbf2(0x1dc)]='Cluster\x20'+_0x4810ac+_0x15bbf2(0x28f),webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0xcc61a9,_0x194b7f[_0x15bbf2(0x255)]),logger[_0x15bbf2(0x1b2)](_0x15bbf2(0x202)+_0x4810ac+_0x15bbf2(0x28f)),_0x27118f=!![];if(_0x194b7f['yQEqV'](_0x5aa0e7,!![])){if(_0x194b7f[_0x15bbf2(0x1c5)](_0x194b7f['VMssN'],_0x194b7f[_0x15bbf2(0x1d1)]))throw new Error('Cluster\x20'+_0x4810ac+_0x15bbf2(0x298));else _0x44092e=_0x18f351[_0x26af0e[_0x15bbf2(0x2bb)]];}}else _0x194b7f[_0x15bbf2(0x2a4)](_0x267301,_0x3b1739[_0x15bbf2(0x1cb)]);}else{const _0x3f56da={};_0x3f56da['type']=WS_EVENTS[_0x15bbf2(0x242)],_0x3f56da[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x31c)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x3f56da),logger['info'](_0x194b7f[_0x15bbf2(0x31c)]);const _0x15cbac=_0x194b7f[_0x15bbf2(0x2c0)](_0x8fbea0,null)&&_0x194b7f[_0x15bbf2(0x317)](_0x8fbea0,undefined),_0x2b9c3a=_0x194b7f[_0x15bbf2(0x2c0)](_0x56073f,null)&&_0x194b7f['DrCPa'](_0x56073f,undefined)&&_0x194b7f['HugzQ'](_0x56073f[_0x15bbf2(0x1b4)],0x0);if(_0x15cbac){_0x194b7f[_0x15bbf2(0x2c9)](_0x2b9c3a,![])&&(_0xbb7bf=_0x194b7f['tVckm'],await _0x194b7f[_0x15bbf2(0x1e3)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x2a6)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1));const _0x2b7fb8=await _0x12817a[_0x15bbf2(0x2d9)](_0x8fbea0);_0x194b7f[_0x15bbf2(0x1cc)](_0x2b7fb8,![])?(_0xbb7bf=_0x194b7f['pmsEk'],await _0x194b7f[_0x15bbf2(0x2d2)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f['XOsVL'],_0x194b7f[_0x15bbf2(0x256)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):logger[_0x15bbf2(0x1b2)](_0x15bbf2(0x2cf)+_0x8fbea0+'\x20');const _0xc28d60=await _0x12817a['isSubnetsValid'](_0x56073f,_0x8fbea0);_0x194b7f[_0x15bbf2(0x25b)](_0xc28d60[0x0],![])?(_0xbb7bf=_0x15bbf2(0x2f6)+JSON[_0x15bbf2(0x25f)](_0xc28d60[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x8fbea0+_0x15bbf2(0x2ae),await _0x194b7f[_0x15bbf2(0x288)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x2be)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1)):logger[_0x15bbf2(0x1b2)](_0x15bbf2(0x1e7)+JSON[_0x15bbf2(0x25f)](_0x56073f)+'\x20'),[_0x8fbea0,_0x56073f]=await _0x12817a['setupNewCluster'](_0x8fbea0,_0x56073f);}else{const _0x10d88b=_0x194b7f[_0x15bbf2(0x33f)][_0x15bbf2(0x27f)]('|');let _0x2f2174=0x0;while(!![]){switch(_0x10d88b[_0x2f2174++]){case'0':const _0x56c249={};_0x56c249[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x56c249[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x23e)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x56c249);continue;case'1':logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x23e)]);continue;case'2':[_0x8fbea0,_0x56073f]=await _0x12817a[_0x15bbf2(0x27a)](_0x8fbea0,_0x56073f);continue;case'3':logger['info'](_0x194b7f[_0x15bbf2(0x31e)]);continue;case'4':const _0x18bcbe={};_0x18bcbe[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x18bcbe['message']=_0x194b7f['ylwVu'],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x18bcbe);continue;}break;}}}}_0x27118f&&_0x194b7f[_0x15bbf2(0x25b)](_0x5e5e06,AZURE)&&(await _0x12817a['updateClusterAlreadyPresent'](),await _0x12817a[_0x15bbf2(0x24b)]());const [_0x4bde39,_0x36e9be,_0xb962ec,_0x53feb5,_0x3118cd,_0x2a539e,_0x5a795e]=await _0x194b7f[_0x15bbf2(0x34a)](createK8sClient,_0x12817a,_0xbdb8d7['skipTlsCertVerify']);_0x194b7f['wfRAx'](_0x27118f,![])&&_0x194b7f[_0x15bbf2(0x229)](_0x5e5e06,AWS)&&(global_registry[_0x15bbf2(0x28e)]=!![],_0x29b799=await _0x12817a[_0x15bbf2(0x30a)](_0x4bde39,_0xbdb8d7));if(_0x194b7f['zXhYt'](_0x27118f,![])&&global_registry[_0x15bbf2(0x326)])try{await _0x12817a[_0x15bbf2(0x2e7)](_0x2a539e,_0x5a795e,_0xbdb8d7,_0x8fbea0,_0x56073f);const _0x156575={};_0x156575[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x156575[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x281)],webSocketUtils['sendEventToBackend'](_0x431f2c,_0x156575);!await _0x194b7f[_0x15bbf2(0x29d)](namespaceExists,_0x4bde39,global_registry['hubHaNameSpace'])&&await _0x194b7f[_0x15bbf2(0x29d)](createNamespace,_0x4bde39,global_registry['hubHaNameSpace']);logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x20d)]);let _0x25b8c6=await fs[_0x15bbf2(0x24a)](path[_0x15bbf2(0x2ca)](__dirname,_0x194b7f[_0x15bbf2(0x254)],_0x194b7f[_0x15bbf2(0x258)],_0x194b7f[_0x15bbf2(0x30c)],_0x194b7f['kFgrz']),_0x194b7f[_0x15bbf2(0x267)]);_0x25b8c6=_0x25b8c6[_0x15bbf2(0x2ad)](/<RedisClientPassword>/g,_0x194b7f[_0x15bbf2(0x238)](encodeBase64,global_registry[_0x15bbf2(0x2d6)])),_0x25b8c6=_0x25b8c6[_0x15bbf2(0x2ad)](/<KafkaClientPassword>/g,_0x194b7f[_0x15bbf2(0x318)](encodeBase64,global_registry['kafkaPassword'])),_0x25b8c6=_0x25b8c6['replace'](/<BstackUsername>/g,_0x194b7f[_0x15bbf2(0x1c6)](encodeBase64,global_registry['bstackUsername'])),_0x25b8c6=_0x25b8c6[_0x15bbf2(0x2ad)](/<BstackAccessKey>/g,_0x194b7f['ikFAq'](encodeBase64,global_registry[_0x15bbf2(0x287)]));const _0x52e86c=yaml[_0x15bbf2(0x328)](_0x25b8c6);await _0x194b7f[_0x15bbf2(0x1c8)](kubeApply,_0x52e86c,_0x5a795e),logger['info'](_0x194b7f[_0x15bbf2(0x2c6)]);let _0x21cced=_0x194b7f[_0x15bbf2(0x33b)];if(_0x194b7f[_0x15bbf2(0x1b9)](_0x5e5e06,AZURE))_0x21cced=_0x194b7f[_0x15bbf2(0x2e3)];else _0x194b7f['tgzJM'](_0x5e5e06,GCP)&&(_0x21cced=_0x194b7f[_0x15bbf2(0x31d)]);logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x22f)]);let _0x542a80=await fs[_0x15bbf2(0x24a)](path[_0x15bbf2(0x2ca)](__dirname,_0x194b7f[_0x15bbf2(0x254)],_0x194b7f[_0x15bbf2(0x258)],_0x194b7f[_0x15bbf2(0x30c)],_0x194b7f[_0x15bbf2(0x33a)]),_0x194b7f[_0x15bbf2(0x267)]);_0x542a80=_0x542a80[_0x15bbf2(0x2ad)](/<HubHaNameSpace>/g,global_registry[_0x15bbf2(0x29c)]),_0x542a80=_0x542a80[_0x15bbf2(0x2ad)](/<StorageClassName>/g,_0x21cced);const _0x4e64a7=yaml[_0x15bbf2(0x328)](_0x542a80);await _0x194b7f[_0x15bbf2(0x29d)](kubeApply,_0x4e64a7,_0x5a795e),logger['info'](_0x194b7f['BmBBY']),logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x1fd)]);let _0x5e8ca2=await fs[_0x15bbf2(0x24a)](path[_0x15bbf2(0x2ca)](__dirname,_0x194b7f[_0x15bbf2(0x254)],_0x194b7f['EPGrp'],_0x194b7f['XugDR'],_0x194b7f[_0x15bbf2(0x321)]),_0x194b7f[_0x15bbf2(0x267)]);_0x5e8ca2=_0x5e8ca2[_0x15bbf2(0x2ad)](/<HubHaNameSpace>/g,global_registry[_0x15bbf2(0x29c)]),_0x5e8ca2=_0x5e8ca2[_0x15bbf2(0x2ad)](/<StorageClassName>/g,_0x21cced);const _0x1581f7=yaml[_0x15bbf2(0x328)](_0x5e8ca2);await _0x194b7f[_0x15bbf2(0x34e)](kubeApply,_0x1581f7,_0x5a795e),logger['info'](_0x194b7f[_0x15bbf2(0x350)]),logger['info'](_0x194b7f[_0x15bbf2(0x286)]);let _0x1334ad=await fs[_0x15bbf2(0x24a)](path[_0x15bbf2(0x2ca)](__dirname,_0x194b7f['mOsZQ'],_0x194b7f['EPGrp'],_0x194b7f['XugDR'],_0x194b7f['Gbyza']),_0x194b7f['ijrTB']);_0x1334ad=_0x1334ad[_0x15bbf2(0x2ad)](/<UploaderImageVersion>/g,global_registry[_0x15bbf2(0x1ab)]),_0x1334ad=_0x1334ad['replace'](/<HubHaNameSpace>/g,global_registry[_0x15bbf2(0x29c)]);const _0x2c38e4=yaml[_0x15bbf2(0x328)](_0x1334ad);_0x194b7f[_0x15bbf2(0x2d4)](global_registry['cloudProvider'],AZURE)&&(_0x2c38e4[0x0][_0x15bbf2(0x21f)][_0x15bbf2(0x34f)][_0x15bbf2(0x292)]['labels']={'azure.workload.identity/use':_0x194b7f[_0x15bbf2(0x259)],..._0x2c38e4[0x0]['spec'][_0x15bbf2(0x34f)][_0x15bbf2(0x292)][_0x15bbf2(0x1eb)]},_0x2c38e4[0x0][_0x15bbf2(0x21f)][_0x15bbf2(0x34f)][_0x15bbf2(0x21f)][_0x15bbf2(0x215)]=_0x194b7f['BDBeB']);await _0x194b7f[_0x15bbf2(0x34a)](kubeApply,_0x2c38e4,_0x5a795e),logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x262)]);const _0x2fd00b={};_0x2fd00b['type']=WS_EVENTS['LOG'],_0x2fd00b[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x1f2)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x2fd00b),logger['info'](_0x194b7f[_0x15bbf2(0x31a)]);}catch(_0x5d07f4){const _0x4927e2=_0x194b7f[_0x15bbf2(0x239)][_0x15bbf2(0x27f)]('|');let _0x3e2fdc=0x0;while(!![]){switch(_0x4927e2[_0x3e2fdc++]){case'0':await _0x12817a[_0x15bbf2(0x28c)](_0x4bde39,global_registry[_0x15bbf2(0x2b2)]);continue;case'1':logger['error'](_0xbb7bf);continue;case'2':_0xbb7bf=_0x15bbf2(0x34b)+_0x5d07f4[_0x15bbf2(0x1dc)];continue;case'3':process[_0x15bbf2(0x327)](0x1);continue;case'4':await _0x194b7f[_0x15bbf2(0x1e3)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x290)],_0x194b7f['ifmZe']);continue;}break;}}try{_0x10c84e=_0x194b7f['tRzYQ'](kebabCase,_0x2824b6),logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x23f)]);const _0x48405e={};_0x48405e[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x48405e[_0x15bbf2(0x1dc)]=_0x194b7f['glLtM'],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x48405e);if(_0x194b7f[_0x15bbf2(0x23b)](_0x10c84e,_0x194b7f[_0x15bbf2(0x2af)])){const _0x45902c={};_0x45902c[_0x15bbf2(0x1bc)]=_0x194b7f['paEdy'],_0x45902c[_0x15bbf2(0x300)]=_0x194b7f[_0x15bbf2(0x2a0)];const _0x5f2faa={};_0x5f2faa[_0x15bbf2(0x22c)]=_0x10c84e,_0x5f2faa[_0x15bbf2(0x325)]=_0x45902c;const _0x1ed87d={};_0x1ed87d[_0x15bbf2(0x292)]=_0x5f2faa;const _0x4453b9=_0x1ed87d,_0x536457={};_0x536457['body']=_0x4453b9,await _0x4bde39[_0x15bbf2(0x2f8)](_0x536457),logger['info'](_0x194b7f[_0x15bbf2(0x32e)]);}const _0x65dacf={};_0x65dacf[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x65dacf['message']=_0x194b7f[_0x15bbf2(0x1e8)],webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x65dacf);const _0x347801={};_0x347801['type']=WS_EVENTS['LOG'],_0x347801[_0x15bbf2(0x1dc)]=_0x194b7f[_0x15bbf2(0x322)],webSocketUtils['sendEventToBackend'](_0x431f2c,_0x347801),logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x2fa)]);let _0x4dbd3c={};_0x194b7f[_0x15bbf2(0x2c9)](_0x5e5e06,AZURE)&&(_0x4dbd3c={'clientId':await _0x12817a['getResourceClientId'](_0x15bbf2(0x1ac)+_0x4810ac)});await _0x194b7f[_0x15bbf2(0x2dc)](addGridComponents,_0x4bde39,_0x36e9be,_0xb962ec,_0x53feb5,_0x10c84e,_0x4810ac,_0x29b799,_0x3118cd,_0x5a795e,_0x4dbd3c),_0xbb7bf=_0x194b7f[_0x15bbf2(0x248)],logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0xf49884={};_0xf49884[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0xf49884[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0xf49884),_0xbb7bf=_0x194b7f['QHAID'],logger['info'](_0xbb7bf);const _0xee627e={};_0xee627e['type']=WS_EVENTS[_0x15bbf2(0x242)],_0xee627e[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils['sendEventToBackend'](_0x431f2c,_0xee627e),await _0x194b7f[_0x15bbf2(0x1af)](waitForDeployment,_0x36e9be,_0x10c84e,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x4f359e=await _0x194b7f[_0x15bbf2(0x34e)](getNamespaceUID,_0x4bde39,_0x10c84e),_0xf0f1e6=global_registry[_0x15bbf2(0x32f)]?_0x194b7f['hCzjl']:_0x194b7f[_0x15bbf2(0x247)],_0x42eee8={};_0x42eee8[_0x15bbf2(0x22c)]=_0xf0f1e6,_0x42eee8['namespace']=_0x194b7f[_0x15bbf2(0x1cd)];const _0x51273a=await _0x4bde39[_0x15bbf2(0x2ce)](_0x42eee8);let _0x585f82=_0x12817a[_0x15bbf2(0x2bd)](_0x51273a)+'/'+_0x10c84e,_0x426593=_0x194b7f[_0x15bbf2(0x216)];try{const _0x5d2ed5=_0x15bbf2(0x250)+AG_API_URL+_0x15bbf2(0x200)+_0x4f359e,_0x468d47=await _0x194b7f['mxxOn'](got,_0x5d2ed5,_0x5aaba1);(_0x194b7f['RGoDZ'](_0x468d47,null)||_0x194b7f['zmmwU'](_0x468d47,undefined))&&(_0xbb7bf=_0x194b7f[_0x15bbf2(0x24f)],await _0x194b7f[_0x15bbf2(0x1d5)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes[_0x15bbf2(0x2a3)],_0x194b7f['XOsVL'],_0x194b7f[_0x15bbf2(0x1bb)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process['exit'](0x1));_0x194b7f[_0x15bbf2(0x2f2)](_0x468d47[_0x15bbf2(0x278)],0x191)&&(_0xbb7bf=_0x194b7f[_0x15bbf2(0x268)],await _0x194b7f[_0x15bbf2(0x2d2)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x204)],_0x194b7f['ifmZe']),logger['error'](_0xbb7bf),process[_0x15bbf2(0x327)](0x1));_0x194b7f['CtTex'](_0x468d47[_0x15bbf2(0x278)],0xc8)&&(_0xbb7bf='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x468d47),await _0x194b7f[_0x15bbf2(0x288)](reportToGalactusAndSendToEDS,_0xbdb8d7,_0x431f2c,_0xbb7bf,messageTypes['ERROR'],_0x194b7f[_0x15bbf2(0x2f0)],_0x194b7f[_0x15bbf2(0x1a5)],_0x194b7f[_0x15bbf2(0x263)]),logger[_0x15bbf2(0x20e)](_0xbb7bf),process[_0x15bbf2(0x327)](0x1));const _0x522184=JSON[_0x15bbf2(0x2c1)](_0x468d47['body']);_0x522184[_0x15bbf2(0x265)]&&(_0x585f82=_0x522184[_0x15bbf2(0x265)],_0x426593=_0x194b7f['xcMrh']),global_registry[_0x15bbf2(0x32f)]&&(_0x426593=_0x194b7f[_0x15bbf2(0x216)]);}catch(_0x27feb2){}_0xbb7bf=_0x15bbf2(0x26f)+_0x585f82+'\x20',logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0x3f93db={};_0x3f93db[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x3f93db[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x3f93db),_0xbb7bf=_0x15bbf2(0x2d1)+_0x426593+'://'+_0x585f82+'/wd/hub',logger[_0x15bbf2(0x1b2)](_0xbb7bf);const _0x5e6785={};_0x5e6785['type']=WS_EVENTS[_0x15bbf2(0x242)],_0x5e6785[_0x15bbf2(0x1dc)]=_0xbb7bf,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x5e6785);const _0x17b7e6={};_0x17b7e6[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x20a)],_0x17b7e6[_0x15bbf2(0x1dc)]=_0x15bbf2(0x243)+_0x585f82,webSocketUtils['sendEventToBackend'](_0x431f2c,_0x17b7e6),await webSocketUtils[_0x15bbf2(0x266)](0x7d0);}catch(_0x1218da){logger[_0x15bbf2(0x20e)]('Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20'+_0x1218da+'\x20\x0a'+JSON[_0x15bbf2(0x25f)](_0x1218da[_0x15bbf2(0x1ae)]));if(_0x194b7f[_0x15bbf2(0x306)](_0x27118f,![]))try{logger[_0x15bbf2(0x1b2)](_0x194b7f[_0x15bbf2(0x336)]),await _0x194b7f[_0x15bbf2(0x2ed)](removeGridComponents,_0x4bde39,_0x36e9be,_0xb962ec,_0x53feb5,_0x10c84e),await _0x12817a[_0x15bbf2(0x28c)](_0x4bde39,global_registry['clusterRegion']);}catch(_0x562973){logger[_0x15bbf2(0x20e)](_0x15bbf2(0x33d)+_0x562973+'\x20\x0a'+JSON['stringify'](_0x562973[_0x15bbf2(0x1ae)]));}throw _0x1218da;}}catch(_0x529705){const _0x5aaa0e=_0x15bbf2(0x21e)+_0x529705+'\x20\x0a'+JSON['stringify'](_0x529705[_0x15bbf2(0x1ae)]);if(_0x431f2c){const _0x412489={};_0x412489[_0x15bbf2(0x1e9)]=WS_EVENTS[_0x15bbf2(0x242)],_0x412489[_0x15bbf2(0x1dc)]=_0x5aaa0e,webSocketUtils[_0x15bbf2(0x320)](_0x431f2c,_0x412489,_0x194b7f[_0x15bbf2(0x263)],!![]);}await webSocketUtils['delay'](0x7d0);const _0xebabde={};_0xebabde['error']=_0x5aaa0e,await _0x194b7f[_0x15bbf2(0x1b0)](sendInstrumentationEvent,_0xbdb8d7,_0x194b7f['XOsVL'],messageTypes[_0x15bbf2(0x2a3)],_0x194b7f[_0x15bbf2(0x1aa)],_0xebabde,_0xbdb8d7),logger[_0x15bbf2(0x20e)](_0x5aaa0e);}process[_0x15bbf2(0x327)](0x0);};
|
|
1
|
+
const a9_0x284b2a=a9_0x118b;(function(_0x28cf37,_0x441ce1){const _0x4d1c98=a9_0x118b,_0x291f55=_0x28cf37();while(!![]){try{const _0x341c6d=parseInt(_0x4d1c98(0x328))/0x1+parseInt(_0x4d1c98(0x323))/0x2+-parseInt(_0x4d1c98(0x207))/0x3+-parseInt(_0x4d1c98(0x391))/0x4*(parseInt(_0x4d1c98(0x33b))/0x5)+parseInt(_0x4d1c98(0x229))/0x6*(-parseInt(_0x4d1c98(0x270))/0x7)+parseInt(_0x4d1c98(0x228))/0x8+parseInt(_0x4d1c98(0x292))/0x9;if(_0x341c6d===_0x441ce1)break;else _0x291f55['push'](_0x291f55['shift']());}catch(_0x1c8da2){_0x291f55['push'](_0x291f55['shift']());}}}(a9_0xa6f7,0x4713a));const fs=require('fs'),ws=require('ws'),path=require(a9_0x284b2a(0x27a)),yaml=require(a9_0x284b2a(0x2ff)),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x284b2a(0x303)),{v4:uuidv4}=require(a9_0x284b2a(0x36b)),webSocketUtils=require(a9_0x284b2a(0x327)),{logger}=require(a9_0x284b2a(0x24c)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x284b2a(0x316)),{getCloudProviderObject}=require(a9_0x284b2a(0x299)),{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_0x284b2a(0x383)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x284b2a(0x30b)),{sendInstrumentationEvent}=require(a9_0x284b2a(0x302));function a9_0xa6f7(){const _0x578ec8=['builder','managedBy','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','KZCif','FcoIH','XZedN','RxbgL','existsSync','bZBAM','Grid\x20spawned\x20on\x20the\x20cluster','MobNE','ECeSF','316775vnGpbo','description','gNJaP','https://','oMKcG','EzIZY','btRCN','TgfYZ','skip-tls-cert-verify','handler','requestId','yGazb','ripRd','newCluster','parse','pre-spawned-invalid-subnets','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','clusterAutoupgrade','TTSfE','KeTCg','Found\x20VPC:\x20','yReHZ','RycsO','syPLj','CgGdp','NCeQy','zERVv','VoTFo','IeXOr','JkkIh','xXkCZ','premium-rwo','jcvFB','qAmmp','ingress-nginx-controller','bDjSo','ingress-nginx','eyBzT','hubHaNameSpace','boIQK','stack','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','browserstack','efs-csi','https','lXofg','Spawning\x20the\x20grid\x20','uuid','metadata','uWvvc','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','pre-spawned-invalid-vpc','hub-ha','ekazg','1|6|2|5|0|3|8|4|7','argv','eAmsA','name','vwmyw','INFO','BLtpG','init-not-called','vpc','labels','enableHubHa','UyhkK','XPpeQ','Nrgzg','join','KHaqp','CZVQb','../../config/constants','QdSBU','body','uploaderImageVersion','get-grid-url-non-200','Cluster:\x20','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','error','pAFzx','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','KGdwI','NsZbz','1|3|0|4|2','EYnXT','4ddmsvX','delay','TDKNr','EAGwx','Enabling\x20Hub\x20HA\x20flow','default','Namespace\x20created','toLowerCase','mQFXW','HTuYv','\x20in\x20existing\x20cluster\x20\x27','create-grid-checks-grid-already-exists','Create\x20a\x20private/public\x20grid.','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','readFileAsync','LBhdG','gridProfileId','CJAnY','serviceAccountName','getResourceClientId','KDnep','create-grid-called','zCICc','niQIr','xdbkn','dUAtp','OCpjP','iOBZp','concurrency','wGdwl','Adding\x20Turboscale\x20Uploader\x20deployment...','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','obPxo','xjNKs','Skip\x20insecure\x20cert\x20verification.','fClCZ','Adding\x20Redis\x20deployment...','4|3|0|2|1','xeeds','options','BZWPG','6|4|7|1|5|8|2|0|3','Added\x20Secret\x20Mapping','hXRnU','951333NVpPHi','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','CLI\x20run\x20started','0|2|1|4|3','cITIf','hubVersion','WebSocket','TvgTs','NRify','IROhT','ApABT','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.','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','cnxJR','loadAll','vWNBG','securityGroups','GET','qNnOv','template','boolean','PQCzz','Creating\x20Hub\x20HA\x20resources','vfuNK','YgZPi','rlRxf','zqFbJ','QZcFe','password','jiBnV','CLI_RUN_STARTED','Added\x20Redis\x20deployment.','region','286832OFInFN','12YynGZq','WXtBH','kqxuB','ZKzFo','xyMhI','gXlWG','ERROR','Found\x20Subnets:\x20','namespace','oFLOW','mHsaM','2|4|9|5|8|7|13|3|0|12|1|10|14|11|6|15','Iwlxy','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','WyWjX','s3bucket','exit','uploaderVersion','uMBlW','utf-8','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','rJzTw','help','clusterAutoUpgrade','BIhkH','LUXyz','gridName','cloud-provider','KsjVe','epilogue','ZECKf','Added\x20Kafka\x20deployment.','jAAze','username','BjZda','../../config/logger','tYGXW','wLZks','sendResourceDataToHST','zVGOV','clusterRegion','bitnami-redis.yaml','NNsuC','bitnami-kafka.yaml','LtqFR','pgkVO','QWhuJ','fAfPO','BjDec','split','maxNodes','type','uQsTX','HKxQt','cluster-autoupgrade','nHDNe','UfnrB','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','<PasswordPlaceholder>','HhpWK','EbHTD','LOG','KAevV','TdlxM','NvJtB','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','qEaey','AFaTv','createOtherResources','qXSNf','private-grid','735749PaHSgZ','ambgP','FmhJV','deleteCluster','Daxgs','IWRxW','TKzti','desc','cluster-name','UkRNzNYCBU','path','wAWvg','aWDjD','/packages/cli/get-grid-url?gridIdentifier=','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','Spawning\x20Grid\x20on\x20the\x20Cluster','addListeners','isPrivateGrid','spec','GdePX','SgFsV','pBQUy','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','TZItB','uvlQf','YkqGr','Flag\x20to\x20enable\x20Hub\x20HA','AeItN','stSkn','gridProfiles','KrSON','minNodes','statusCode','ZHsMG','2899251lHjhPu','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','cloudProvider','Will\x20be\x20spawning\x20the\x20grid\x20','KAUhd','pwTHM','NhWhH','../../cloudproviders/utils','0|4|3|1|2','Cwwal','isSubnetsValid','HMSHN','instanceType','JLVwf','thhJi','message','pwNgj','connectionTimeout','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','turboscale-managed-identity-','Epyd5nXbRK','wiJvs','setupNewCluster','GLTeL','privateGrid','yJEUn','get-grid-url-null-response','zgvBr','ceJmh','private-ingress-nginx-controller','grid-name','browserVersion','command','hub-ha-deployments-failed','vBWtZ','Cluster\x20','kafkaPassword','length','grid-profile','xgxod','xnjUn','bstackUsername','JlxMc','jhsoW','PtSBW','thKRr','EJenU','jCoTE','pdaaM','IMRlv','jIQFF','VKZuY','Grid\x20can\x20be\x20accessed\x20at:\x20','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','CDaHB','CLI\x20run\x20finished:\x20','QlzTT','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','bstackAccesskey','OJkqF','clusterName','Hub\x20HA\x20setup\x20completed\x20successfully.','redisPassword','prespawned-cluster-args-not-passed','isClusterPresent','ALxDW','skPoa','QpstU','YtQtT','replace','xSyZP','updateClusterAlreadyPresent','stringify','Added\x20Turboscale\x20Uploader\x20deployment.','WKdXh','FRNOr','grid','sendEventToBackend','Browserstack','pre-spawned-subnets-not-selected','tQTIO','create','SgMsu','kcfAw','vtHTr','sIPFV','Subnets:\x20','user','Created\x20Hub\x20HA\x20resources','TDcpr','kafkaUploader','vGkjg','pKGrE','cKtxv','jUNjd','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','subnets','<UsernamePlaceholder>','grid-spawning-failed','includes','UqHJT','BJdtP','JXfYB','vMAZO','qMGZg','tzDSm','aBDkn','jweRw','js-yaml','warn','://','../../utils/instrumentationUtils','got','Deleting\x20the\x20CloudFormation\x20Stacks','RoKit','string','create-grid-checks-non-200','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','ZaFfV','browserstack-secret.yaml','../../utils/createk8sClient','createNamespace','krdSA','JtcvO','GOaUx','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','\x27\x20grid\x20profile','WprnC','../..','AbmCD','cswBB','../../utils/utilityMethods','mlFBR','FZWde','Spawning\x20grid\x20on\x20to\x20the\x20cluster','true','ENchE','UDPJs','zLPmZ','JGMUK','non-aws-azure-cluster','route53','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','gridProfile','355400tGdxSX','info','get-grid-url-auth-failed','bRKww','../../utils/webSocketUtils','346117hnShuW','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','uChQz','readNamespacedService','guhCO','xEaSG','mHqJx'];a9_0xa6f7=function(){return _0x578ec8;};return a9_0xa6f7();}function a9_0x118b(_0x228377,_0xc247a4){const _0xa6f7b6=a9_0xa6f7();return a9_0x118b=function(_0x118b47,_0x47280e){_0x118b47=_0x118b47-0x1ee;let _0x340ded=_0xa6f7b6[_0x118b47];return _0x340ded;},a9_0x118b(_0x228377,_0xc247a4);}exports[a9_0x284b2a(0x2b2)]=a9_0x284b2a(0x2df),exports[a9_0x284b2a(0x277)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x284b2a(0x32f)]=function(_0x34741b){const _0x3ad459=a9_0x284b2a,_0x52d228={};_0x52d228['ZHsMG']=_0x3ad459(0x2cc),_0x52d228[_0x3ad459(0x38e)]=_0x3ad459(0x306),_0x52d228[_0x3ad459(0x357)]=_0x3ad459(0x365),_0x52d228[_0x3ad459(0x314)]=_0x3ad459(0x36e),_0x52d228['vWNBG']='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x52d228[_0x3ad459(0x203)]=_0x3ad459(0x23d),_0x52d228[_0x3ad459(0x265)]=_0x3ad459(0x39d),_0x52d228[_0x3ad459(0x30e)]=_0x3ad459(0x1fd),_0x52d228[_0x3ad459(0x235)]=_0x3ad459(0x21b),_0x52d228[_0x3ad459(0x360)]=_0x3ad459(0x28a),_0x52d228[_0x3ad459(0x21f)]=_0x3ad459(0x26a),_0x52d228[_0x3ad459(0x271)]=_0x3ad459(0x23f);const _0x28729d=_0x52d228,_0x3829f6={};_0x3829f6[_0x3ad459(0x33c)]=_0x28729d[_0x3ad459(0x291)],_0x3829f6[_0x3ad459(0x25c)]=_0x28729d[_0x3ad459(0x38e)];const _0x1917b2={};_0x1917b2['description']=_0x28729d[_0x3ad459(0x357)],_0x1917b2['type']=_0x28729d[_0x3ad459(0x38e)];const _0x54a821={};_0x54a821[_0x3ad459(0x33c)]=_0x28729d[_0x3ad459(0x314)],_0x54a821['type']=_0x28729d[_0x3ad459(0x38e)];const _0x3ff1e1={};_0x3ff1e1[_0x3ad459(0x33c)]=_0x28729d[_0x3ad459(0x216)],_0x3ff1e1[_0x3ad459(0x25c)]=_0x28729d[_0x3ad459(0x38e)];const _0x463e48={};_0x463e48[_0x3ad459(0x33c)]=_0x28729d[_0x3ad459(0x203)],_0x463e48['type']=_0x28729d[_0x3ad459(0x38e)];const _0x31df70={};_0x31df70[_0x3ad459(0x33c)]=_0x28729d['EbHTD'],_0x31df70['type']=_0x28729d[_0x3ad459(0x38e)];const _0x2f22bb={};_0x2f22bb[_0x3ad459(0x33c)]=_0x28729d[_0x3ad459(0x30e)],_0x2f22bb[_0x3ad459(0x25c)]=_0x28729d[_0x3ad459(0x235)],_0x2f22bb[_0x3ad459(0x396)]=![];const _0x118038={};_0x118038[_0x3ad459(0x33c)]=_0x28729d[_0x3ad459(0x360)],_0x118038[_0x3ad459(0x25c)]=_0x28729d[_0x3ad459(0x235)],_0x118038[_0x3ad459(0x396)]=![];const _0x4ed75f={};_0x4ed75f['description']=_0x28729d[_0x3ad459(0x21f)],_0x4ed75f[_0x3ad459(0x25c)]=_0x28729d['Iwlxy'],_0x4ed75f[_0x3ad459(0x396)]=![];const _0x29ee5a={};return _0x29ee5a[_0x3ad459(0x2b0)]=_0x3829f6,_0x29ee5a[_0x3ad459(0x2b8)]=_0x1917b2,_0x29ee5a[_0x3ad459(0x278)]=_0x54a821,_0x29ee5a[_0x3ad459(0x244)]=_0x3ff1e1,_0x29ee5a[_0x3ad459(0x227)]=_0x463e48,_0x29ee5a[_0x3ad459(0x26f)]=_0x31df70,_0x29ee5a['skip-tls-cert-verify']=_0x2f22bb,_0x29ee5a['hub-ha']=_0x118038,_0x29ee5a[_0x3ad459(0x25f)]=_0x4ed75f,_0x34741b['usage'](HELP_HEADER_MESSAGE[_0x3ad459(0x2e4)])[_0x3ad459(0x246)](HELP_FOOTER_MESSAGE)[_0x3ad459(0x202)](_0x29ee5a)[_0x3ad459(0x23f)](_0x28729d[_0x3ad459(0x271)])['argv'];},exports[a9_0x284b2a(0x344)]=async function(_0x4c9fca){const _0x18aa0a=a9_0x284b2a,_0x29c129={'zqFbJ':'azurefile-csi-premium','EJenU':_0x18aa0a(0x29a),'PQCzz':_0x18aa0a(0x395),'xjNKs':_0x18aa0a(0x2a6),'JXfYB':_0x18aa0a(0x279),'qAmmp':_0x18aa0a(0x366),'LUXyz':_0x18aa0a(0x300),'LtqFR':function(_0x4ce8d0,_0x2d759e){return _0x4ce8d0===_0x2d759e;},'Nrgzg':_0x18aa0a(0x38a),'qEaey':function(_0x57d5ac,_0x55765f){return _0x57d5ac(_0x55765f);},'KAevV':_0x18aa0a(0x368),'wGdwl':'Cluster\x20Auto\x20Upgrade\x20is\x20enabled','pwNgj':_0x18aa0a(0x2cc),'tzDSm':_0x18aa0a(0x306),'EAGwx':_0x18aa0a(0x365),'sIPFV':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','xgxod':_0x18aa0a(0x213),'skPoa':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','QGbDD':_0x18aa0a(0x39d),'iOBZp':_0x18aa0a(0x1fd),'PtSBW':_0x18aa0a(0x21b),'zERVv':'Flag\x20to\x20enable\x20Hub\x20HA','TDKNr':'Flag\x20to\x20enable\x20cluster\x20auto-upgrade','wiJvs':_0x18aa0a(0x23f),'EzIZY':_0x18aa0a(0x35a),'cKtxv':_0x18aa0a(0x234),'qfqRx':function(_0x10512d,_0x105241,_0x5e4c0e,_0x247793,_0x19c296,_0x160878,_0x35f451,_0x492f2b,_0x23e408,_0x4a9be5,_0x1fedbe,_0x40d94b,_0x2bdf34){return _0x10512d(_0x105241,_0x5e4c0e,_0x247793,_0x19c296,_0x160878,_0x35f451,_0x492f2b,_0x23e408,_0x4a9be5,_0x1fedbe,_0x40d94b,_0x2bdf34);},'Cwwal':function(_0x456940,_0x2dd06e){return _0x456940!==_0x2dd06e;},'qXSNf':_0x18aa0a(0x31a),'vGkjg':_0x18aa0a(0x396),'pAFzx':_0x18aa0a(0x372),'JGMUK':_0x18aa0a(0x209),'cswBB':'http','RycsO':function(_0x15e8cd){return _0x15e8cd();},'JlxMc':_0x18aa0a(0x28c),'fAfPO':_0x18aa0a(0x1fa),'OJkqF':function(_0x59b79a,_0x57fe93,_0xad2fc1,_0x2f16c0,_0x418cc0,_0x4b4e9b,_0x3c3827){return _0x59b79a(_0x57fe93,_0xad2fc1,_0x2f16c0,_0x418cc0,_0x4b4e9b,_0x3c3827);},'BjDec':_0x18aa0a(0x1f0),'xSyZP':_0x18aa0a(0x379),'VhZxb':function(_0x5ab710,_0x799f2c,_0x3a6a2b,_0x1ee261,_0x5434ed,_0xf75580,_0x3591c1){return _0x5ab710(_0x799f2c,_0x3a6a2b,_0x1ee261,_0x5434ed,_0xf75580,_0x3591c1);},'oMKcG':_0x18aa0a(0x2f4),'QZcFe':_0x18aa0a(0x263),'ripRd':'Adding\x20Websocket\x20listeners','WyWjX':function(_0x654f58,_0x5f2114){return _0x654f58!==_0x5f2114;},'uChQz':_0x18aa0a(0x289),'FZWde':_0x18aa0a(0x2fe),'FXKog':'QBihI','QdSBU':_0x18aa0a(0x232),'yFWgL':_0x18aa0a(0x39e),'IqBSo':function(_0x22c62d,_0x1ef878,_0xc04724,_0x1884b7,_0x45a180,_0x4387d0,_0x5a1c78,_0x1d8ed7){return _0x22c62d(_0x1ef878,_0xc04724,_0x1884b7,_0x45a180,_0x4387d0,_0x5a1c78,_0x1d8ed7);},'TTSfE':_0x18aa0a(0x2d2),'bZBAM':function(_0x101abf,_0x7a7dcf){return _0x101abf===_0x7a7dcf;},'lXofg':_0x18aa0a(0x23b),'jhsoW':_0x18aa0a(0x389),'ZBaBp':function(_0x5620e0,_0x2701e9,_0x41a5e2,_0x1c8c3f,_0x42c871,_0x9a79b8,_0x50848c,_0x1d1a8f){return _0x5620e0(_0x2701e9,_0x41a5e2,_0x1c8c3f,_0x42c871,_0x9a79b8,_0x50848c,_0x1d1a8f);},'XPpeQ':_0x18aa0a(0x31f),'IMRlv':_0x18aa0a(0x32c),'jUNjd':function(_0x382405,_0x57ee3a,_0x591b5b,_0x3704b9,_0x4e3e84,_0x55d5fe,_0x4d35dc){return _0x382405(_0x57ee3a,_0x591b5b,_0x3704b9,_0x4e3e84,_0x55d5fe,_0x4d35dc);},'qMGZg':function(_0x53e88f,_0x241c7b){return _0x53e88f!==_0x241c7b;},'vBWtZ':_0x18aa0a(0x27c),'jiBnV':'YCmzw','UyhkK':_0x18aa0a(0x275),'TdlxM':function(_0x448aeb,_0x3064a2){return _0x448aeb===_0x3064a2;},'mHqJx':_0x18aa0a(0x334),'OCpjP':_0x18aa0a(0x218),'KsjVe':function(_0x2d81a8,_0x1913be,_0x3f487d){return _0x2d81a8(_0x1913be,_0x3f487d);},'HhpWK':function(_0x3f8289,_0xa405a2){return _0x3f8289===_0xa405a2;},'ALxDW':'ORFHf','ECeSF':_0x18aa0a(0x214),'KZCif':function(_0x5c58a1,_0x42b1f1){return _0x5c58a1===_0x42b1f1;},'EYnXT':function(_0x5ac67a,_0x5101a7){return _0x5ac67a===_0x5101a7;},'Daxgs':'gGgCE','mlFBR':'hyFyR','hXRnU':_0x18aa0a(0x2f2),'GdePX':function(_0x39377b,_0xe5055d,_0x52ec78,_0x21fa58,_0x1502f4,_0x11954b,_0x386721,_0x21ce9e){return _0x39377b(_0xe5055d,_0x52ec78,_0x21fa58,_0x1502f4,_0x11954b,_0x386721,_0x21ce9e);},'KXXty':'create-grid-checks-null-response','gNJaP':function(_0x3b664f,_0x23270b){return _0x3b664f!==_0x23270b;},'yHdum':'qnick','rJzTw':'Gxgwf','LPPaq':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','MobNE':function(_0x443904,_0x3e5889,_0x25138a,_0x2e3776,_0x19cf3d,_0x1e6ce6,_0x475bca,_0x2d3ef5){return _0x443904(_0x3e5889,_0x25138a,_0x2e3776,_0x19cf3d,_0x1e6ce6,_0x475bca,_0x2d3ef5);},'AeItN':'create-grid-checks-auth-failed','bDjSo':function(_0x11406,_0x79a701){return _0x11406===_0x79a701;},'uQsTX':_0x18aa0a(0x335),'KrSON':function(_0x334168,_0x573e15,_0x2b5c0d,_0x26e8bb,_0x4aac86,_0x2081f6,_0x357286,_0x1c4fdc){return _0x334168(_0x573e15,_0x2b5c0d,_0x26e8bb,_0x4aac86,_0x2081f6,_0x357286,_0x1c4fdc);},'JLVwf':_0x18aa0a(0x307),'RoKit':'Grid\x20profile\x20fetched\x20from\x20backend','uWvvc':_0x18aa0a(0x256),'KHaqp':_0x18aa0a(0x22a),'zCICc':_0x18aa0a(0x39c),'yJEUn':_0x18aa0a(0x2e7),'zgvBr':function(_0x185bf6,_0x421481){return _0x185bf6!==_0x421481;},'ZaFfV':_0x18aa0a(0x288),'gufTO':_0x18aa0a(0x200),'HMSHN':function(_0x2a2e0e,_0x3af070){return _0x2a2e0e===_0x3af070;},'kqxuB':'IPSsP','eAmsA':function(_0xc880ab,_0x47c5c3){return _0xc880ab===_0x47c5c3;},'CgGdp':_0x18aa0a(0x219),'thhJi':_0x18aa0a(0x2cb),'SgMsu':'create-grid-checks-invalid-profile','sYzpm':_0x18aa0a(0x359),'kCIPZ':_0x18aa0a(0x31d),'QlzTT':_0x18aa0a(0x2bf),'ceJmh':function(_0x52b298,_0x5594f8){return _0x52b298!==_0x5594f8;},'wLZks':function(_0x3c1c7d,_0x575c07){return _0x3c1c7d!==_0x575c07;},'pKGrE':'sTBDl','FUljJ':_0x18aa0a(0x1ef),'HTuYv':'XmAum','gfOsY':function(_0x110515,_0x2b48b8){return _0x110515(_0x2b48b8);},'vwmyw':function(_0x2f1618,_0x24fb6e){return _0x2f1618===_0x24fb6e;},'WKdXh':function(_0x2f5957,_0x50795e){return _0x2f5957===_0x50795e;},'jCoTE':_0x18aa0a(0x2ec),'GLTeL':function(_0x2c6e48,_0x2ad000){return _0x2c6e48!==_0x2ad000;},'TvgTs':function(_0xecdf22,_0x2b21ac){return _0xecdf22===_0x2b21ac;},'yGazb':_0x18aa0a(0x261),'eukcy':'bTVXq','xeeds':function(_0x55020b,_0x23009a,_0x2e75d6,_0x33df5f,_0x3b3025,_0x40bf02,_0x1134ce,_0x334cae,_0x581458,_0xba8ac,_0x572755,_0x30a5d3,_0x3d9ec8){return _0x55020b(_0x23009a,_0x2e75d6,_0x33df5f,_0x3b3025,_0x40bf02,_0x1134ce,_0x334cae,_0x581458,_0xba8ac,_0x572755,_0x30a5d3,_0x3d9ec8);},'zvwWc':'JngBo','CZVQb':_0x18aa0a(0x26c),'BJdtP':function(_0x479b3b,_0x14e593){return _0x479b3b(_0x14e593);},'HKxQt':_0x18aa0a(0x399),'CJAnY':_0x18aa0a(0x204),'NhWhH':function(_0x405264,_0x3b83fc){return _0x405264!==_0x3b83fc;},'UqHJT':_0x18aa0a(0x2de),'NCeQy':'evtNU','wAWvg':function(_0x4cb52b,_0x133ba3){return _0x4cb52b===_0x133ba3;},'VoTFo':function(_0x238aaa,_0xaeec14){return _0x238aaa===_0xaeec14;},'LBhdG':_0x18aa0a(0x31c),'CDaHB':_0x18aa0a(0x284),'QWhuJ':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','XXbda':function(_0xb1d8ae,_0xc94c7){return _0xb1d8ae!=_0xc94c7;},'jcvFB':function(_0x4421ee,_0x5132c0){return _0x4421ee!==_0x5132c0;},'QHEwZ':function(_0x101b95,_0x191f9d){return _0x101b95!==_0x191f9d;},'BjZda':function(_0x25fdef,_0x10699f){return _0x25fdef>_0x10699f;},'KGdwI':function(_0x3c9ebe,_0x5de37f){return _0x3c9ebe===_0x5de37f;},'TKzti':_0x18aa0a(0x308),'ENchE':_0x18aa0a(0x2e2),'syPLj':function(_0x1cbff8,_0x4f6d7d){return _0x1cbff8===_0x4f6d7d;},'obPxo':_0x18aa0a(0x208),'xdbkn':function(_0x590330,_0x559136,_0x54d497,_0x37e8ce,_0x286611,_0x5accd1,_0x275d74,_0xf7f242){return _0x590330(_0x559136,_0x54d497,_0x37e8ce,_0x286611,_0x5accd1,_0x275d74,_0xf7f242);},'CKfiT':_0x18aa0a(0x36f),'FmhJV':function(_0x2ee7be,_0xa1e87b){return _0x2ee7be===_0xa1e87b;},'nHDNe':function(_0x1a455e,_0x4f58bb,_0x204fa1,_0x4c06ad,_0x5c13be,_0x1a2103,_0x1c464b,_0x43c9a3){return _0x1a455e(_0x4f58bb,_0x204fa1,_0x4c06ad,_0x5c13be,_0x1a2103,_0x1c464b,_0x43c9a3);},'IROhT':_0x18aa0a(0x34a),'vfuNK':_0x18aa0a(0x20a),'pwTHM':_0x18aa0a(0x212),'ApABT':'Cluster\x20created\x20successfully','boIQK':function(_0x3d9648,_0x5e392f){return _0x3d9648===_0x5e392f;},'KeTCg':function(_0x90a6f9,_0x3c2c17){return _0x90a6f9===_0x3c2c17;},'fClCZ':_0x18aa0a(0x21d),'YtQtT':'Adding\x20Secret\x20Mapping','xnjUn':_0x18aa0a(0x313),'BLtpG':'templates','zVGOV':'hubharesources','cITIf':_0x18aa0a(0x30a),'TZItB':_0x18aa0a(0x23c),'tQTIO':function(_0x889c85,_0x523591){return _0x889c85(_0x523591);},'TdFat':function(_0x4f935c,_0x1d5ad0){return _0x4f935c(_0x1d5ad0);},'tYGXW':function(_0x366ef0,_0x4892da){return _0x366ef0(_0x4892da);},'aBDkn':function(_0x192534,_0x176777,_0x33e62f){return _0x192534(_0x176777,_0x33e62f);},'mHsaM':_0x18aa0a(0x205),'LWpES':_0x18aa0a(0x367),'BIhkH':_0x18aa0a(0x1ff),'pdaaM':_0x18aa0a(0x252),'ffkwv':_0x18aa0a(0x226),'NHpRh':'Adding\x20Kafka\x20deployment...','yReHZ':_0x18aa0a(0x254),'vMAZO':_0x18aa0a(0x248),'XCZLY':_0x18aa0a(0x1f9),'niQIr':'turboscale-uploader.yaml','RKLBk':function(_0x2003bd,_0x12cd72){return _0x2003bd===_0x12cd72;},'dUAtp':function(_0x22f6d0,_0x299c5c,_0x3e1014){return _0x22f6d0(_0x299c5c,_0x3e1014);},'TgfYZ':_0x18aa0a(0x2dc),'bRKww':_0x18aa0a(0x2eb),'zRYBm':_0x18aa0a(0x2d0),'hjaAU':_0x18aa0a(0x38f),'WprnC':function(_0x4648c9,_0x4bd022,_0x34da93,_0xb25920,_0x800832,_0x4bc4c3,_0x507dbb,_0x5c50f6){return _0x4648c9(_0x4bd022,_0x34da93,_0xb25920,_0x800832,_0x4bc4c3,_0x507dbb,_0x5c50f6);},'qVJiW':_0x18aa0a(0x2b3),'NRify':function(_0x2b305b,_0x5a93d4){return _0x2b305b(_0x5a93d4);},'wllCF':'Creating\x20namespace','xyMhI':function(_0x4633f6,_0x14ee46){return _0x4633f6!==_0x14ee46;},'GOaUx':_0x18aa0a(0x2e1),'QpstU':'Namespace\x20Created','ZKzFo':_0x18aa0a(0x397),'jIQFF':_0x18aa0a(0x319),'ZECKf':_0x18aa0a(0x27f),'kcfAw':function(_0x2ccafd,_0x1e6c61,_0x331424,_0x2a6a7a,_0x27272d,_0x5b0d15,_0x599820,_0x924a55,_0x491f65,_0x128cd5,_0xdb5551){return _0x2ccafd(_0x1e6c61,_0x331424,_0x2a6a7a,_0x27272d,_0x5b0d15,_0x599820,_0x924a55,_0x491f65,_0x128cd5,_0xdb5551);},'gXlWG':_0x18aa0a(0x338),'krdSA':_0x18aa0a(0x286),'ekazg':function(_0x1ac61a,_0x1c7265,_0x1ed4e1,_0x5e21db,_0x23e912){return _0x1ac61a(_0x1c7265,_0x1ed4e1,_0x5e21db,_0x23e912);},'NNsuC':_0x18aa0a(0x2af),'QuyTh':_0x18aa0a(0x35d),'rlRxf':_0x18aa0a(0x35f),'KAUhd':function(_0x1808e7,_0x2db9ca,_0x8084e5){return _0x1808e7(_0x2db9ca,_0x8084e5);},'GcYOr':_0x18aa0a(0x364),'lpVek':function(_0x31c64c,_0x1916e6,_0x35a66e,_0x14c0ab,_0xcc85ab,_0x57b481,_0x29f6cd,_0x421273){return _0x31c64c(_0x1916e6,_0x35a66e,_0x14c0ab,_0xcc85ab,_0x57b481,_0x29f6cd,_0x421273);},'JkkIh':_0x18aa0a(0x2ac),'jKGOy':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','pBQUy':_0x18aa0a(0x325),'btRCN':function(_0x368d84,_0x5d2ab4){return _0x368d84!==_0x5d2ab4;},'xEaSG':function(_0x4bc73a,_0x1c1ddd,_0x5be8f2,_0x4093e7,_0x271118,_0x35a939,_0x440860,_0x43b93c){return _0x4bc73a(_0x1c1ddd,_0x5be8f2,_0x4093e7,_0x271118,_0x35a939,_0x440860,_0x43b93c);},'VKZuY':_0x18aa0a(0x387),'FcoIH':function(_0x35b884,_0x3fff73){return _0x35b884===_0x3fff73;},'FdSVf':_0x18aa0a(0x304),'jAAze':function(_0x22ce18,_0x342455,_0x1dc186,_0x211915,_0x5b8225,_0x4318ea){return _0x22ce18(_0x342455,_0x1dc186,_0x211915,_0x5b8225,_0x4318ea);},'NvJtB':function(_0x27164e,_0x50ed50,_0x29ed71,_0x50f901,_0x929993,_0x286c9c,_0x52c701){return _0x27164e(_0x50ed50,_0x29ed71,_0x50f901,_0x929993,_0x286c9c,_0x52c701);},'Mepnr':_0x18aa0a(0x2f5)};let _0x36d83f=![],_0xbea90d=![],_0x4a18ac,_0x37162d,_0x57aa76,_0x2db0cb,_0x395981,_0x298b10,_0x41d1d2,_0x53f91a,_0x1c6721,_0x567308,_0x500db3,_0x1d198b,_0x29f0db,_0xda4556,_0x299aa1=0x1,_0xf7fe1b=0xe;try{global_registry[_0x18aa0a(0x345)]=_0x29c129[_0x18aa0a(0x351)](uuidv4),global_registry[_0x18aa0a(0x281)]=![];!fs[_0x18aa0a(0x336)](_0x29c129[_0x18aa0a(0x351)](getCredentialsPath))&&(_0x29c129[_0x18aa0a(0x29b)](_0x29c129[_0x18aa0a(0x2bc)],_0x29c129[_0x18aa0a(0x2bc)])?(_0x5a3abb[_0x18aa0a(0x324)](_0x18aa0a(0x388)+_0x39d7d8['clusterName']+_0x18aa0a(0x2a4)),_0x586443=![],_0x1bbd77=!![]):(console[_0x18aa0a(0x38a)](_0x29c129[_0x18aa0a(0x258)]),await _0x29c129[_0x18aa0a(0x2ce)](sendInstrumentationEvent,_0x4c9fca,_0x29c129[_0x18aa0a(0x259)],messageTypes['ERROR'],_0x29c129[_0x18aa0a(0x2d9)],null,_0x4c9fca),process[_0x18aa0a(0x239)](0x1)));await _0x29c129['VhZxb'](sendInstrumentationEvent,_0x4c9fca,_0x29c129[_0x18aa0a(0x259)],messageTypes[_0x18aa0a(0x377)],null,null,_0x4c9fca);const _0xd2adb2=JSON[_0x18aa0a(0x349)](fs['readFileSync'](_0x29c129['RycsO'](getCredentialsPath)));global_registry[_0x18aa0a(0x2bb)]=_0xd2adb2['Browserstack']['username'],global_registry['bstackAccesskey']=_0xd2adb2[_0x18aa0a(0x2e1)][_0x18aa0a(0x223)];const _0x5ed1d6=WS_ENDPOINT[_0x18aa0a(0x2d8)](_0x29c129[_0x18aa0a(0x33f)],_0xd2adb2[_0x18aa0a(0x2e1)][_0x18aa0a(0x24a)])[_0x18aa0a(0x2d8)](_0x29c129[_0x18aa0a(0x222)],_0xd2adb2[_0x18aa0a(0x2e1)][_0x18aa0a(0x223)]),_0x2392e7={};_0x2392e7[_0x18aa0a(0x20d)]=ws,_0x2392e7[_0x18aa0a(0x2a3)]=0x36ee80,_0x1d198b=new ReconnectingWebSocket(_0x5ed1d6,[],_0x2392e7),logger['debug'](_0x29c129[_0x18aa0a(0x347)]),webSocketUtils[_0x18aa0a(0x280)](_0x1d198b,_0x4c9fca[_0x18aa0a(0x2ea)],_0x4c9fca[_0x18aa0a(0x223)]);const _0xd76d2d=_0x4c9fca[_0x18aa0a(0x243)]||DEFAULT_GRID_NAME;if(_0x4c9fca[_0x18aa0a(0x2cf)]||_0x4c9fca[_0x18aa0a(0x294)]||_0x4c9fca['region']){if(_0x29c129[_0x18aa0a(0x237)](_0x29c129[_0x18aa0a(0x32a)],_0x29c129[_0x18aa0a(0x318)])){!(_0x4c9fca[_0x18aa0a(0x2cf)]&&_0x4c9fca[_0x18aa0a(0x294)]&&_0x4c9fca[_0x18aa0a(0x227)])&&(_0x29c129[_0x18aa0a(0x255)](_0x29c129['FXKog'],_0x29c129[_0x18aa0a(0x384)])?_0x183c50=_0x29c129[_0x18aa0a(0x221)]:(_0x4a18ac=_0x29c129['yFWgL'],await _0x29c129['IqBSo'](reportToGalactusAndSendToEDS,_0x4c9fca,_0x1d198b,_0x4a18ac,messageTypes[_0x18aa0a(0x22f)],_0x29c129[_0x18aa0a(0x259)],_0x29c129[_0x18aa0a(0x34d)],_0x29c129['Nrgzg']),logger[_0x18aa0a(0x38a)](_0x4a18ac),process[_0x18aa0a(0x239)](0x1)));if(![AWS,AZURE,GCP][_0x18aa0a(0x2f6)](_0x4c9fca[_0x18aa0a(0x294)][_0x18aa0a(0x398)]())){if(_0x29c129[_0x18aa0a(0x337)](_0x29c129[_0x18aa0a(0x369)],_0x29c129[_0x18aa0a(0x369)]))_0x4a18ac=_0x29c129[_0x18aa0a(0x2bd)],await _0x29c129['ZBaBp'](reportToGalactusAndSendToEDS,_0x4c9fca,_0x1d198b,_0x4a18ac,messageTypes[_0x18aa0a(0x22f)],_0x29c129['BjDec'],_0x29c129[_0x18aa0a(0x37e)],_0x29c129['Nrgzg']),logger[_0x18aa0a(0x38a)](_0x4a18ac),process[_0x18aa0a(0x239)](0x1);else{const _0xbcfe01=_0x29c129[_0x18aa0a(0x2c0)][_0x18aa0a(0x25a)]('|');let _0x3ec632=0x0;while(!![]){switch(_0xbcfe01[_0x3ec632++]){case'0':_0x4c1fb9[_0x18aa0a(0x324)](_0x29c129[_0x18aa0a(0x21c)]);continue;case'1':_0x40b4f4[_0x18aa0a(0x2b6)]=_0x29c129[_0x18aa0a(0x1fc)];continue;case'2':_0xe10864[_0x18aa0a(0x37c)]=!![];continue;case'3':_0x51b7c5[_0x18aa0a(0x2d1)]=_0x29c129[_0x18aa0a(0x2f9)];continue;case'4':_0x1dd9a6[_0x18aa0a(0x361)]=_0x29c129[_0x18aa0a(0x35c)];continue;}break;}}}_0x4c9fca[_0x18aa0a(0x2aa)]&&_0x29c129[_0x18aa0a(0x337)](_0x4c9fca[_0x18aa0a(0x2aa)][_0x18aa0a(0x398)](),_0x29c129[_0x18aa0a(0x26e)])&&(_0x29c129[_0x18aa0a(0x29b)](_0x29c129[_0x18aa0a(0x2c3)],_0x29c129[_0x18aa0a(0x2c3)])?_0x2a32fb[_0x18aa0a(0x38a)](_0x18aa0a(0x27e)+_0x1ec285+'\x20\x0a'+_0x41f476['stringify'](_0x2bdf0a[_0x18aa0a(0x363)])):global_registry[_0x18aa0a(0x281)]=!![]);global_registry['cloudProvider']=_0x4c9fca['cloudProvider'],global_registry[_0x18aa0a(0x251)]=_0x4c9fca[_0x18aa0a(0x227)],global_registry[_0x18aa0a(0x2cf)]=_0x4c9fca[_0x18aa0a(0x2cf)];const _0x5f28c7=await _0x29c129[_0x18aa0a(0x2f1)](getCloudProviderObject,_0x4c9fca[_0x18aa0a(0x294)],_0x4c9fca[_0x18aa0a(0x2cf)],_0xd76d2d,_0x1d198b,webSocketUtils,_0x4c9fca),_0x5433d7=await _0x5f28c7['isClusterPresent']();!_0x5433d7?_0x29c129[_0x18aa0a(0x2fb)](_0x29c129[_0x18aa0a(0x2b4)],_0x29c129[_0x18aa0a(0x224)])?(logger['info'](_0x18aa0a(0x388)+_0x4c9fca[_0x18aa0a(0x2cf)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x36d83f=![],_0xbea90d=!![]):_0xc61d95=_0x2fafcd[_0x4f58a7[_0x18aa0a(0x322)]]:_0x29c129[_0x18aa0a(0x29b)](_0x29c129['UyhkK'],_0x29c129[_0x18aa0a(0x37d)])?_0x3cb40c=!![]:_0x36d83f=!![],_0x57aa76=_0x4c9fca[_0x18aa0a(0x2cf)],_0x37162d=_0x4c9fca[_0x18aa0a(0x294)][_0x18aa0a(0x398)](),_0x2db0cb=_0x4c9fca['region'];}else _0x24a8f9[_0x18aa0a(0x281)]=!![];}else{if(_0x4c9fca[_0x18aa0a(0x322)]){if(_0x29c129['TdlxM'](_0x29c129[_0x18aa0a(0x32e)],_0x29c129[_0x18aa0a(0x32e)]))global_registry[_0x18aa0a(0x322)]=_0x4c9fca['gridProfile'];else{const _0x2bc140={};_0x2bc140[_0x18aa0a(0x25c)]=_0x3f9571[_0x18aa0a(0x266)],_0x2bc140[_0x18aa0a(0x2a1)]=_0x18aa0a(0x2b5)+_0x3aa49b+_0x18aa0a(0x2c7),_0x6b7eda[_0x18aa0a(0x2e0)](_0x2de23a,_0x2bc140,_0x29c129[_0x18aa0a(0x242)]),_0x3de1d1['info'](_0x18aa0a(0x2b5)+_0x2776fe+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x4ea9d7=!![];if(_0x29c129[_0x18aa0a(0x255)](_0x4cab60,!![]))throw new _0x3e685c(_0x18aa0a(0x2b5)+_0x2092b4+_0x18aa0a(0x310));}}}global_registry[_0x18aa0a(0x243)]=_0x4c9fca['gridName'];const _0x2dd9e9={'method':_0x29c129[_0x18aa0a(0x1f5)],'headers':_0x29c129[_0x18aa0a(0x245)](getAuthHeader,_0xd2adb2[_0x18aa0a(0x2e1)]['username'],_0xd2adb2['Browserstack'][_0x18aa0a(0x223)]),'throwHttpErrors':![]},_0x918cc2={};_0x918cc2['gridName']=_0xd76d2d;const _0x47eda6=_0x918cc2;_0xbea90d&&(_0x29c129[_0x18aa0a(0x264)](_0x29c129[_0x18aa0a(0x2d4)],_0x29c129[_0x18aa0a(0x2d4)])?(_0x47eda6['region']=_0x2db0cb,_0x47eda6[_0x18aa0a(0x294)]=_0x37162d,_0x47eda6[_0x18aa0a(0x348)]=!![],_0x47eda6[_0x18aa0a(0x240)]=_0x4c9fca[_0x18aa0a(0x34c)]):_0x37d4bb[_0x18aa0a(0x281)]=!![]);if(_0x4c9fca[_0x18aa0a(0x34c)]){if(_0x29c129['TdlxM'](_0x29c129['ECeSF'],_0x29c129[_0x18aa0a(0x33a)]))logger[_0x18aa0a(0x324)](_0x29c129[_0x18aa0a(0x1f8)]);else{const _0xe140bd={};_0xe140bd[_0x18aa0a(0x25c)]=_0x1cd528['LOG'],_0xe140bd[_0x18aa0a(0x2a1)]=_0x4450d8,_0x5f55a7['sendEventToBackend'](_0x20d464,_0xe140bd,_0x29c129['Nrgzg'],!![]);}}const _0x336c11=_0x18aa0a(0x33e)+AG_API_URL+'/packages/cli/create-grid-checks',_0x4365ae={'searchParams':_0x47eda6,'throwHttpErrors':![],..._0x2dd9e9},_0x506968=_0x4365ae,_0x219dc7=await _0x29c129[_0x18aa0a(0x245)](got,_0x336c11,_0x506968);(_0x29c129[_0x18aa0a(0x332)](_0x219dc7,null)||_0x29c129[_0x18aa0a(0x390)](_0x219dc7,undefined))&&(_0x29c129[_0x18aa0a(0x332)](_0x29c129[_0x18aa0a(0x274)],_0x29c129[_0x18aa0a(0x317)])?_0x29c129[_0x18aa0a(0x26b)](_0xc27c90,_0x2c09f9[_0x18aa0a(0x2ed)]):(_0x4a18ac=_0x29c129[_0x18aa0a(0x206)],await _0x29c129[_0x18aa0a(0x283)](reportToGalactusAndSendToEDS,_0x4c9fca,_0x1d198b,_0x4a18ac,messageTypes[_0x18aa0a(0x22f)],_0x29c129[_0x18aa0a(0x259)],_0x29c129['KXXty'],_0x29c129[_0x18aa0a(0x37f)]),logger[_0x18aa0a(0x38a)](_0x4a18ac),process[_0x18aa0a(0x239)](0x1)));_0x29c129['LtqFR'](_0x219dc7[_0x18aa0a(0x290)],0x191)&&(_0x29c129[_0x18aa0a(0x33d)](_0x29c129['yHdum'],_0x29c129[_0x18aa0a(0x23e)])?(_0x4a18ac=_0x29c129['LPPaq'],await _0x29c129[_0x18aa0a(0x339)](reportToGalactusAndSendToEDS,_0x4c9fca,_0x1d198b,_0x4a18ac,messageTypes['ERROR'],_0x29c129[_0x18aa0a(0x259)],_0x29c129[_0x18aa0a(0x28b)],_0x29c129[_0x18aa0a(0x37f)]),logger[_0x18aa0a(0x38a)](_0x4a18ac),process[_0x18aa0a(0x239)](0x1)):_0x789025['info'](_0x18aa0a(0x230)+_0x5d7f1b[_0x18aa0a(0x2db)](_0x1f1c92)+'\x20'));if(_0x29c129['qMGZg'](_0x219dc7[_0x18aa0a(0x290)],0xc8)){if(_0x29c129['bDjSo'](_0x29c129[_0x18aa0a(0x25d)],_0x29c129['uQsTX']))_0x4a18ac=_0x18aa0a(0x331)+JSON[_0x18aa0a(0x2db)](_0x219dc7[_0x18aa0a(0x385)]),await _0x29c129[_0x18aa0a(0x28e)](reportToGalactusAndSendToEDS,_0x4c9fca,_0x1d198b,_0x4a18ac,messageTypes[_0x18aa0a(0x22f)],_0x29c129['BjDec'],_0x29c129[_0x18aa0a(0x29f)],_0x29c129[_0x18aa0a(0x37f)]),logger[_0x18aa0a(0x38a)](_0x4a18ac),process[_0x18aa0a(0x239)](0x1);else throw new _0x2ba77c('Cluster\x20'+_0x4f2207+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}const _0x49397e=JSON[_0x18aa0a(0x349)](_0x219dc7[_0x18aa0a(0x385)]),_0x2b8839={};_0x2b8839[_0x18aa0a(0x25c)]=WS_EVENTS[_0x18aa0a(0x225)],_0x2b8839['message']=_0x29c129[_0x18aa0a(0x31e)],webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x2b8839);const _0x5e5124={};_0x5e5124[_0x18aa0a(0x25c)]=WS_EVENTS['LOG'],_0x5e5124[_0x18aa0a(0x2a1)]=_0x29c129[_0x18aa0a(0x305)],webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x5e5124);_0x49397e['alreadyPresent']&&(_0x29c129[_0x18aa0a(0x337)](_0x29c129[_0x18aa0a(0x36d)],_0x29c129[_0x18aa0a(0x381)])?_0x585b11=null:(_0x4a18ac=_0x18aa0a(0x321)+_0xd76d2d+_0x18aa0a(0x329),await _0x29c129[_0x18aa0a(0x283)](reportToGalactusAndSendToEDS,_0x4c9fca,_0x1d198b,_0x4a18ac,messageTypes[_0x18aa0a(0x22f)],_0x29c129[_0x18aa0a(0x259)],_0x29c129[_0x18aa0a(0x1f1)],_0x29c129[_0x18aa0a(0x37f)]),logger[_0x18aa0a(0x38a)](_0x4a18ac),process[_0x18aa0a(0x239)](0x1)));const _0x2461ae=_0x49397e[_0x18aa0a(0x28d)];let _0x5593f9=_0x2461ae[_0x49397e['defaultGridProfile']];_0x4c9fca[_0x18aa0a(0x322)]&&(_0x29c129[_0x18aa0a(0x29b)](_0x29c129['yJEUn'],_0x29c129[_0x18aa0a(0x2ab)])?(_0x1e8999=_0x45587b[_0x18aa0a(0x320)],_0x7a5e3b=_0x29c129[_0x18aa0a(0x267)]):_0x5593f9=_0x2461ae[_0x4c9fca[_0x18aa0a(0x322)]]);global_registry[_0x18aa0a(0x37c)]=![];if(_0x4c9fca['hubHa']){if(_0x29c129[_0x18aa0a(0x2ad)](_0x29c129[_0x18aa0a(0x309)],_0x29c129[_0x18aa0a(0x309)]))_0x53d54d[_0x18aa0a(0x324)](_0x29c129[_0x18aa0a(0x1f8)]);else{const _0x147cda=_0x29c129['gufTO'][_0x18aa0a(0x25a)]('|');let _0x2f73c4=0x0;while(!![]){switch(_0x147cda[_0x2f73c4++]){case'0':global_registry[_0x18aa0a(0x2d1)]=_0x29c129[_0x18aa0a(0x2f9)];continue;case'1':global_registry[_0x18aa0a(0x37c)]=!![];continue;case'2':global_registry[_0x18aa0a(0x2b6)]=_0x29c129['xjNKs'];continue;case'3':global_registry[_0x18aa0a(0x361)]=_0x29c129[_0x18aa0a(0x35c)];continue;case'4':logger[_0x18aa0a(0x324)](_0x29c129[_0x18aa0a(0x21c)]);continue;}break;}}}if(_0x29c129['HhpWK'](_0x36d83f,![])&&_0x29c129[_0x18aa0a(0x29d)](_0xbea90d,![])){if(_0x29c129[_0x18aa0a(0x237)](_0x29c129[_0x18aa0a(0x22b)],_0x29c129['kqxuB'])){const _0x1dba4a={};_0x1dba4a[_0x18aa0a(0x33c)]=_0x29c129[_0x18aa0a(0x2a2)],_0x1dba4a[_0x18aa0a(0x25c)]=_0x29c129['tzDSm'];const _0x3a1867={};_0x3a1867[_0x18aa0a(0x33c)]=_0x29c129[_0x18aa0a(0x394)],_0x3a1867[_0x18aa0a(0x25c)]=_0x29c129[_0x18aa0a(0x2fc)];const _0x473844={};_0x473844[_0x18aa0a(0x33c)]=_0x29c129[_0x18aa0a(0x2e8)],_0x473844['type']=_0x29c129['tzDSm'];const _0x5c1c5b={};_0x5c1c5b[_0x18aa0a(0x33c)]=_0x29c129[_0x18aa0a(0x2b9)],_0x5c1c5b[_0x18aa0a(0x25c)]=_0x29c129[_0x18aa0a(0x2fc)];const _0x7f4aae={};_0x7f4aae['description']=_0x29c129[_0x18aa0a(0x2d5)],_0x7f4aae[_0x18aa0a(0x25c)]=_0x29c129[_0x18aa0a(0x2fc)];const _0x413872={};_0x413872[_0x18aa0a(0x33c)]=_0x29c129['QGbDD'],_0x413872[_0x18aa0a(0x25c)]=_0x29c129['tzDSm'];const _0x2da01a={};_0x2da01a[_0x18aa0a(0x33c)]=_0x29c129[_0x18aa0a(0x1f6)],_0x2da01a[_0x18aa0a(0x25c)]=_0x29c129[_0x18aa0a(0x2be)],_0x2da01a[_0x18aa0a(0x396)]=![];const _0x74811a={};_0x74811a[_0x18aa0a(0x33c)]=_0x29c129[_0x18aa0a(0x355)],_0x74811a[_0x18aa0a(0x25c)]=_0x29c129['PtSBW'],_0x74811a[_0x18aa0a(0x396)]=![];const _0x59bcb9={};_0x59bcb9[_0x18aa0a(0x33c)]=_0x29c129[_0x18aa0a(0x393)],_0x59bcb9[_0x18aa0a(0x25c)]=_0x29c129[_0x18aa0a(0x2be)],_0x59bcb9['default']=![];const _0x5e8d9d={};return _0x5e8d9d[_0x18aa0a(0x2b0)]=_0x1dba4a,_0x5e8d9d[_0x18aa0a(0x2b8)]=_0x3a1867,_0x5e8d9d[_0x18aa0a(0x278)]=_0x473844,_0x5e8d9d[_0x18aa0a(0x244)]=_0x5c1c5b,_0x5e8d9d[_0x18aa0a(0x227)]=_0x7f4aae,_0x5e8d9d[_0x18aa0a(0x26f)]=_0x413872,_0x5e8d9d[_0x18aa0a(0x343)]=_0x2da01a,_0x5e8d9d[_0x18aa0a(0x370)]=_0x74811a,_0x5e8d9d[_0x18aa0a(0x25f)]=_0x59bcb9,_0x7938c8['usage'](_0x5d5162[_0x18aa0a(0x2e4)])[_0x18aa0a(0x246)](_0x4977bf)[_0x18aa0a(0x202)](_0x5e8d9d)[_0x18aa0a(0x23f)](_0x29c129[_0x18aa0a(0x2a7)])[_0x18aa0a(0x373)];}else{_0x29c129[_0x18aa0a(0x29d)](_0x5593f9,undefined)&&(_0x29c129[_0x18aa0a(0x374)](_0x29c129[_0x18aa0a(0x353)],_0x29c129[_0x18aa0a(0x353)])?(_0x4a18ac=_0x29c129[_0x18aa0a(0x2a0)],await _0x29c129[_0x18aa0a(0x283)](reportToGalactusAndSendToEDS,_0x4c9fca,_0x1d198b,_0x4a18ac,messageTypes['ERROR'],_0x29c129[_0x18aa0a(0x259)],_0x29c129[_0x18aa0a(0x2e5)],_0x29c129['Nrgzg']),logger[_0x18aa0a(0x38a)](_0x4a18ac),process[_0x18aa0a(0x239)](0x1)):_0x20b18a=_0x29c129['EzIZY']);global_registry[_0x18aa0a(0x3a1)]=_0x5593f9['id'],_0x4a18ac=_0x18aa0a(0x295)+_0xd76d2d+'\x20using\x20\x27'+_0x5593f9[_0x18aa0a(0x375)]+_0x18aa0a(0x311),logger[_0x18aa0a(0x324)](_0x4a18ac);const _0x4437a4={};_0x4437a4[_0x18aa0a(0x25c)]=WS_EVENTS[_0x18aa0a(0x266)],_0x4437a4['message']=_0x4a18ac,webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x4437a4),_0x37162d=_0x5593f9['cloudProvider'],_0x57aa76=_0x5593f9[_0x18aa0a(0x2cf)],_0x2db0cb=_0x5593f9['region'],_0x395981=_0x5593f9['concurrency'],_0x298b10=_0x5593f9[_0x18aa0a(0x29e)],_0x41d1d2=_0x5593f9[_0x18aa0a(0x37a)],_0x53f91a=_0x5593f9[_0x18aa0a(0x217)],_0x1c6721=_0x5593f9[_0x18aa0a(0x2f3)],_0x567308=_0x5593f9[_0x18aa0a(0x238)],_0x299aa1=_0x5593f9[_0x18aa0a(0x28f)],_0xf7fe1b=_0x5593f9['maxNodes'],_0x29f0db=_0x49397e[_0x18aa0a(0x20c)],_0xda4556=_0x49397e['browserVersion'];if(_0x41d1d2&&_0x29c129[_0x18aa0a(0x337)](_0x41d1d2[_0x18aa0a(0x2b7)],0x0)){if(_0x29c129[_0x18aa0a(0x35e)](_0x29c129['sYzpm'],_0x29c129['kCIPZ'])){const _0x586407=_0x29c129[_0x18aa0a(0x2f0)][_0x18aa0a(0x25a)]('|');let _0x2d171b=0x0;while(!![]){switch(_0x586407[_0x2d171b++]){case'0':_0x48f983=_0x261543['s3bucket'];continue;case'1':_0x2d1094=_0x587061['maxNodes'];continue;case'2':_0x12988f=_0x18aa0a(0x34b)+_0x5f5ae5;continue;case'3':_0x23f9d8=null;continue;case'4':_0x190679[_0x18aa0a(0x324)](_0xfe71c2);continue;case'5':_0x28a331=_0x22a4ba[_0x18aa0a(0x1f7)];continue;case'6':_0x29c129['qfqRx'](_0x1eaa30,_0x4539b8,_0xdac94e,_0x5cbcc4,_0x21f3d7,_0x215c53,_0x202d4d,_0x2c5d71,_0x3b24b9,_0x464d16,_0x27e21a,_0x2fb3db,_0x34f4d9[_0x18aa0a(0x34c)]);continue;case'7':_0x31761e=null;continue;case'8':_0x23a8d1=_0x178a71[_0x18aa0a(0x29e)];continue;case'9':const _0x1b21ad={};_0x1b21ad['type']=_0x4905ca['LOG'],_0x1b21ad[_0x18aa0a(0x2a1)]=_0x509a7d,_0x46a8ef['sendEventToBackend'](_0x355e77,_0x1b21ad);continue;case'10':_0x1da72c=_0x1ad17c['hubVersion'];continue;case'11':_0x29c129['Cwwal'](_0x5bfeb0[_0x18aa0a(0x2aa)],_0x287dcc)&&_0x325301[_0x18aa0a(0x2aa)]&&(_0x2b30d0['isPrivateGrid']=!![]);continue;case'12':_0x3fb43c=_0x43dfae[_0x18aa0a(0x28f)];continue;case'13':_0x48418d=null;continue;case'14':_0x1f76a9=_0x282cc0[_0x18aa0a(0x2b1)];continue;case'15':_0x5172bd[_0x18aa0a(0x37c)]&&_0x29c129[_0x18aa0a(0x26b)](_0x29ec15,_0x4d5bf8[_0x18aa0a(0x2ed)]);continue;}break;}}else _0x41d1d2=null;}_0x1c6721&&_0x29c129[_0x18aa0a(0x29d)](_0x1c6721[_0x18aa0a(0x2b7)],0x0)&&(_0x29c129[_0x18aa0a(0x390)](_0x29c129[_0x18aa0a(0x2ca)],_0x29c129['QlzTT'])?_0x1c6721=null:_0x61ac31=null);if(_0x29c129[_0x18aa0a(0x2ae)](_0x5593f9[_0x18aa0a(0x2aa)],undefined)&&_0x5593f9[_0x18aa0a(0x2aa)]){if(_0x29c129[_0x18aa0a(0x24e)](_0x29c129[_0x18aa0a(0x2ef)],_0x29c129['FUljJ']))global_registry['isPrivateGrid']=!![];else{const _0x50e1c7={'azure.workload.identity/use':_0x29c129[_0x18aa0a(0x26e)],..._0x42996e[0x0][_0x18aa0a(0x282)][_0x18aa0a(0x21a)][_0x18aa0a(0x36c)][_0x18aa0a(0x37b)]};_0x463bcb[0x0]['spec'][_0x18aa0a(0x21a)][_0x18aa0a(0x36c)][_0x18aa0a(0x37b)]=_0x50e1c7,_0x3fc3e7[0x0][_0x18aa0a(0x282)][_0x18aa0a(0x21a)]['spec']['serviceAccountName']=_0x29c129['vGkjg'];}}_0x29c129['qfqRx'](updateGlobalRegistryWithConfig,_0x37162d,_0x57aa76,_0x2db0cb,_0x395981,_0x298b10,_0x567308,_0x5593f9,_0x29f0db,_0xda4556,_0x299aa1,_0xf7fe1b,_0x4c9fca[_0x18aa0a(0x34c)]);if(global_registry[_0x18aa0a(0x37c)]){if(_0x29c129[_0x18aa0a(0x268)](_0x29c129[_0x18aa0a(0x39a)],_0x29c129[_0x18aa0a(0x39a)]))_0x29c129['gfOsY'](updateGlobalRegistryForHubHa,_0x49397e[_0x18aa0a(0x23a)]);else{const _0x3901af=_0x29c129[_0x18aa0a(0x38b)][_0x18aa0a(0x25a)]('|');let _0x258158=0x0;while(!![]){switch(_0x3901af[_0x258158++]){case'0':_0x5a7f69[_0x18aa0a(0x294)]=_0x4e2c74;continue;case'1':const _0x5e6e3c={};_0x5e6e3c[_0x18aa0a(0x25c)]=_0x5e4207[_0x18aa0a(0x225)],_0x5e6e3c[_0x18aa0a(0x2a1)]=_0x29c129[_0x18aa0a(0x31e)],_0x5c71e8['sendEventToBackend'](_0x4a1fe3,_0x5e6e3c);continue;case'2':_0x1edaea['info'](_0x4564bb);continue;case'3':_0x287275[_0x18aa0a(0x251)]=_0x156e14;continue;case'4':_0x8af1bc[_0x18aa0a(0x20c)]=_0x46b566['hubVersion'];continue;case'5':const _0x140ceb={};_0x140ceb[_0x18aa0a(0x25c)]=_0x51f820[_0x18aa0a(0x266)],_0x140ceb[_0x18aa0a(0x2a1)]=_0x13e529,_0x1fcbf5[_0x18aa0a(0x2e0)](_0x5ba201,_0x140ceb);continue;case'6':_0x2c6cfc=_0x18aa0a(0x36a)+_0x166bac+_0x18aa0a(0x39b)+_0x398c60+'\x27';continue;case'7':_0x2af6dd['browserVersion']=_0x3defc1['browserVersion'];continue;case'8':_0x59a4f2[_0x18aa0a(0x2cf)]=_0xe9eddf;continue;}break;}}}}}else{if(_0x29c129[_0x18aa0a(0x376)](_0xbea90d,!![])){if(_0x29c129[_0x18aa0a(0x2dd)](_0x29c129['jCoTE'],_0x29c129[_0x18aa0a(0x2c1)])){_0x4a18ac='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0xd76d2d,logger[_0x18aa0a(0x324)](_0x4a18ac);const _0x391c20={};_0x391c20[_0x18aa0a(0x25c)]=WS_EVENTS[_0x18aa0a(0x266)],_0x391c20[_0x18aa0a(0x2a1)]=_0x4a18ac,webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x391c20),_0x395981=_0x5593f9[_0x18aa0a(0x1f7)],_0x298b10=_0x5593f9[_0x18aa0a(0x29e)],_0x41d1d2=null,_0x53f91a=null,_0x1c6721=null,_0x567308=_0x5593f9[_0x18aa0a(0x238)],_0x299aa1=_0x5593f9[_0x18aa0a(0x28f)],_0xf7fe1b=_0x5593f9[_0x18aa0a(0x25b)],_0x29f0db=_0x49397e['hubVersion'],_0xda4556=_0x49397e[_0x18aa0a(0x2b1)],_0x29c129[_0x18aa0a(0x2a9)](_0x5593f9[_0x18aa0a(0x2aa)],undefined)&&_0x5593f9['privateGrid']&&(_0x29c129[_0x18aa0a(0x20e)](_0x29c129[_0x18aa0a(0x346)],_0x29c129['eukcy'])?_0x5b8576[_0x18aa0a(0x322)]=_0x42751f[_0x18aa0a(0x322)]:global_registry[_0x18aa0a(0x281)]=!![]),_0x29c129[_0x18aa0a(0x201)](updateGlobalRegistryWithConfig,_0x37162d,_0x57aa76,_0x2db0cb,_0x395981,_0x298b10,_0x567308,_0x5593f9,_0x29f0db,_0xda4556,_0x299aa1,_0xf7fe1b,_0x4c9fca[_0x18aa0a(0x34c)]),global_registry[_0x18aa0a(0x37c)]&&(_0x29c129['KZCif'](_0x29c129['zvwWc'],_0x29c129[_0x18aa0a(0x382)])?_0x5ef710=_0x29c129[_0x18aa0a(0x315)]:_0x29c129[_0x18aa0a(0x2f8)](updateGlobalRegistryForHubHa,_0x49397e[_0x18aa0a(0x2ed)]));}else _0x2c21bf[_0x18aa0a(0x324)](_0x18aa0a(0x34f)+_0x12779a+'\x20');}else{if(_0x29c129[_0x18aa0a(0x35e)](_0x29c129[_0x18aa0a(0x25e)],_0x29c129[_0x18aa0a(0x25e)])){const _0x55dab5=_0x29c129[_0x18aa0a(0x3a2)][_0x18aa0a(0x25a)]('|');let _0x4caf91=0x0;while(!![]){switch(_0x55dab5[_0x4caf91++]){case'0':global_registry[_0x18aa0a(0x20c)]=_0x49397e[_0x18aa0a(0x20c)];continue;case'1':const _0x571df5={};_0x571df5['type']=WS_EVENTS[_0x18aa0a(0x266)],_0x571df5['message']=_0x4a18ac,webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x571df5);continue;case'2':global_registry[_0x18aa0a(0x2cf)]=_0x57aa76;continue;case'3':global_registry[_0x18aa0a(0x2b1)]=_0x49397e[_0x18aa0a(0x2b1)];continue;case'4':_0x4a18ac='Spawning\x20the\x20grid\x20'+_0xd76d2d+_0x18aa0a(0x39b)+_0x57aa76+'\x27';continue;case'5':global_registry[_0x18aa0a(0x294)]=_0x37162d;continue;case'6':const _0x331f29={};_0x331f29[_0x18aa0a(0x25c)]=WS_EVENTS[_0x18aa0a(0x225)],_0x331f29[_0x18aa0a(0x2a1)]=_0x29c129['JGMUK'],webSocketUtils['sendEventToBackend'](_0x1d198b,_0x331f29);continue;case'7':logger[_0x18aa0a(0x324)](_0x4a18ac);continue;case'8':global_registry[_0x18aa0a(0x251)]=_0x2db0cb;continue;}break;}}else _0x4dda7e[_0x18aa0a(0x24f)]();}}const _0x110f68=await _0x29c129[_0x18aa0a(0x2f1)](getCloudProviderObject,_0x37162d,_0x57aa76,_0xd76d2d,_0x1d198b,webSocketUtils,_0x4c9fca);_0x29c129[_0x18aa0a(0x24e)](_0x37162d,AZURE)&&(_0x29c129[_0x18aa0a(0x298)](_0x29c129[_0x18aa0a(0x2f7)],_0x29c129[_0x18aa0a(0x2f7)])?_0x29c129['qEaey'](_0x501dd4,_0x1efcd3[_0x18aa0a(0x23a)]):_0x110f68[_0x18aa0a(0x24f)]());let _0x5082b9;if(_0x29c129[_0x18aa0a(0x264)](_0x36d83f,![])){_0x4a18ac='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x2db0cb+').';const _0x483ae0={};_0x483ae0['type']=WS_EVENTS[_0x18aa0a(0x266)],_0x483ae0['message']=_0x4a18ac,webSocketUtils['sendEventToBackend'](_0x1d198b,_0x483ae0),logger['info'](_0x4a18ac);const _0x56cfed=await _0x110f68[_0x18aa0a(0x2d3)]();if(_0x56cfed){if(_0x29c129[_0x18aa0a(0x24e)](_0x29c129[_0x18aa0a(0x354)],_0x29c129[_0x18aa0a(0x354)]))_0x3073c1[_0x18aa0a(0x281)]=!![];else{const _0x1e9b34={};_0x1e9b34[_0x18aa0a(0x25c)]=WS_EVENTS[_0x18aa0a(0x266)],_0x1e9b34['message']=_0x18aa0a(0x2b5)+_0x57aa76+_0x18aa0a(0x2c7),webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x1e9b34,_0x29c129[_0x18aa0a(0x242)]),logger[_0x18aa0a(0x324)](_0x18aa0a(0x2b5)+_0x57aa76+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x36d83f=!![];if(_0x29c129[_0x18aa0a(0x27b)](_0xbea90d,!![])){if(_0x29c129[_0x18aa0a(0x356)](_0x29c129[_0x18aa0a(0x3a0)],_0x29c129[_0x18aa0a(0x2c8)]))_0xfd5a7d[_0x18aa0a(0x227)]=_0x48055d,_0x2a53ed[_0x18aa0a(0x294)]=_0xbbd650,_0xdca79b[_0x18aa0a(0x348)]=!![],_0x3ff650['clusterAutoUpgrade']=_0x3d8f81[_0x18aa0a(0x34c)];else throw new Error(_0x18aa0a(0x2b5)+_0x57aa76+_0x18aa0a(0x310));}}}else{const _0x19de91={};_0x19de91['type']=WS_EVENTS[_0x18aa0a(0x266)],_0x19de91['message']=_0x29c129[_0x18aa0a(0x257)],webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x19de91),logger['info'](_0x29c129['QWhuJ']);const _0x172823=_0x29c129['XXbda'](_0x41d1d2,null)&&_0x29c129[_0x18aa0a(0x35b)](_0x41d1d2,undefined),_0x1983c5=_0x29c129['XXbda'](_0x1c6721,null)&&_0x29c129['QHEwZ'](_0x1c6721,undefined)&&_0x29c129[_0x18aa0a(0x24b)](_0x1c6721[_0x18aa0a(0x2b7)],0x0);if(_0x172823){_0x29c129[_0x18aa0a(0x38d)](_0x1983c5,![])&&(_0x4a18ac=_0x29c129[_0x18aa0a(0x276)],await _0x29c129['GdePX'](reportToGalactusAndSendToEDS,_0x4c9fca,_0x1d198b,_0x4a18ac,messageTypes[_0x18aa0a(0x22f)],_0x29c129[_0x18aa0a(0x259)],_0x29c129[_0x18aa0a(0x31b)],_0x29c129['Nrgzg']),logger['error'](_0x4a18ac),process[_0x18aa0a(0x239)](0x1));const _0x99401a=await _0x110f68['isVPCPresent'](_0x41d1d2);_0x29c129[_0x18aa0a(0x352)](_0x99401a,![])?(_0x4a18ac=_0x29c129[_0x18aa0a(0x1fb)],await _0x29c129[_0x18aa0a(0x1f3)](reportToGalactusAndSendToEDS,_0x4c9fca,_0x1d198b,_0x4a18ac,messageTypes['ERROR'],_0x29c129[_0x18aa0a(0x259)],_0x29c129['CKfiT'],_0x29c129[_0x18aa0a(0x37f)]),logger['error'](_0x4a18ac),process[_0x18aa0a(0x239)](0x1)):logger['info'](_0x18aa0a(0x34f)+_0x41d1d2+'\x20');const _0x2b7743=await _0x110f68[_0x18aa0a(0x29c)](_0x1c6721,_0x41d1d2);_0x29c129[_0x18aa0a(0x272)](_0x2b7743[0x0],![])?(_0x4a18ac=_0x18aa0a(0x2e9)+JSON[_0x18aa0a(0x2db)](_0x2b7743[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x41d1d2+_0x18aa0a(0x293),await _0x29c129[_0x18aa0a(0x260)](reportToGalactusAndSendToEDS,_0x4c9fca,_0x1d198b,_0x4a18ac,messageTypes['ERROR'],_0x29c129[_0x18aa0a(0x259)],_0x29c129[_0x18aa0a(0x210)],_0x29c129[_0x18aa0a(0x37f)]),logger[_0x18aa0a(0x38a)](_0x4a18ac),process['exit'](0x1)):logger['info'](_0x18aa0a(0x230)+JSON[_0x18aa0a(0x2db)](_0x1c6721)+'\x20'),[_0x41d1d2,_0x1c6721]=await _0x110f68[_0x18aa0a(0x2a8)](_0x41d1d2,_0x1c6721);}else{const _0x1a9934=_0x29c129[_0x18aa0a(0x21e)]['split']('|');let _0x546460=0x0;while(!![]){switch(_0x1a9934[_0x546460++]){case'0':const _0x3e3fde={};_0x3e3fde[_0x18aa0a(0x25c)]=WS_EVENTS[_0x18aa0a(0x266)],_0x3e3fde[_0x18aa0a(0x2a1)]=_0x29c129[_0x18aa0a(0x297)],webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x3e3fde);continue;case'1':[_0x41d1d2,_0x1c6721]=await _0x110f68[_0x18aa0a(0x2a8)](_0x41d1d2,_0x1c6721);continue;case'2':logger[_0x18aa0a(0x324)](_0x29c129[_0x18aa0a(0x297)]);continue;case'3':logger[_0x18aa0a(0x324)](_0x29c129['ApABT']);continue;case'4':const _0x3164dd={};_0x3164dd['type']=WS_EVENTS[_0x18aa0a(0x266)],_0x3164dd['message']=_0x29c129[_0x18aa0a(0x211)],webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x3164dd);continue;}break;}}}}_0x36d83f&&_0x29c129[_0x18aa0a(0x362)](_0x37162d,AZURE)&&(await _0x110f68[_0x18aa0a(0x2da)](),await _0x110f68[_0x18aa0a(0x26d)]());const [_0x263bca,_0xc2618c,_0x5c3714,_0x36902a,_0x23b2fa,_0x49f6b2,_0x191e6a]=await _0x29c129[_0x18aa0a(0x245)](createK8sClient,_0x110f68,_0x4c9fca['skipTlsCertVerify']);_0x29c129['TvgTs'](_0x36d83f,![])&&_0x29c129[_0x18aa0a(0x35e)](_0x37162d,AWS)&&(global_registry['isNewAWSCluster']=!![],_0x5082b9=await _0x110f68['setupAutoscaler'](_0x263bca,_0x4c9fca));if(_0x29c129[_0x18aa0a(0x34e)](_0x36d83f,![])&&global_registry['enableHubHa'])try{await _0x110f68['setupHubHa'](_0x49f6b2,_0x191e6a,_0x4c9fca,_0x41d1d2,_0x1c6721);const _0x4c147b={};_0x4c147b[_0x18aa0a(0x25c)]=WS_EVENTS[_0x18aa0a(0x266)],_0x4c147b['message']=_0x29c129[_0x18aa0a(0x1fe)],webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x4c147b);!await _0x29c129['KsjVe'](namespaceExists,_0x263bca,global_registry[_0x18aa0a(0x361)])&&await _0x29c129[_0x18aa0a(0x245)](createNamespace,_0x263bca,global_registry[_0x18aa0a(0x361)]);logger[_0x18aa0a(0x324)](_0x29c129[_0x18aa0a(0x2d7)]);let _0x3fa9d2=await fs[_0x18aa0a(0x39f)](path['join'](__dirname,_0x29c129['xnjUn'],_0x29c129[_0x18aa0a(0x378)],_0x29c129[_0x18aa0a(0x250)],_0x29c129[_0x18aa0a(0x20b)]),_0x29c129[_0x18aa0a(0x287)]);_0x3fa9d2=_0x3fa9d2[_0x18aa0a(0x2d8)](/<RedisClientPassword>/g,_0x29c129[_0x18aa0a(0x2e3)](encodeBase64,global_registry[_0x18aa0a(0x2d1)])),_0x3fa9d2=_0x3fa9d2[_0x18aa0a(0x2d8)](/<KafkaClientPassword>/g,_0x29c129['TdFat'](encodeBase64,global_registry['kafkaPassword'])),_0x3fa9d2=_0x3fa9d2[_0x18aa0a(0x2d8)](/<BstackUsername>/g,_0x29c129[_0x18aa0a(0x26b)](encodeBase64,global_registry[_0x18aa0a(0x2bb)])),_0x3fa9d2=_0x3fa9d2[_0x18aa0a(0x2d8)](/<BstackAccessKey>/g,_0x29c129[_0x18aa0a(0x24d)](encodeBase64,global_registry[_0x18aa0a(0x2cd)]));const _0x47821e=yaml[_0x18aa0a(0x215)](_0x3fa9d2);await _0x29c129['aBDkn'](kubeApply,_0x47821e,_0x191e6a),logger[_0x18aa0a(0x324)](_0x29c129[_0x18aa0a(0x233)]);let _0x3d2fbe=_0x29c129['LWpES'];if(_0x29c129[_0x18aa0a(0x2dd)](_0x37162d,AZURE))_0x3d2fbe=_0x29c129[_0x18aa0a(0x221)];else _0x29c129[_0x18aa0a(0x34e)](_0x37162d,GCP)&&(_0x3d2fbe=_0x29c129[_0x18aa0a(0x340)]);logger[_0x18aa0a(0x324)](_0x29c129[_0x18aa0a(0x241)]);let _0x293388=await fs['readFileAsync'](path[_0x18aa0a(0x380)](__dirname,_0x29c129[_0x18aa0a(0x2ba)],_0x29c129['BLtpG'],_0x29c129[_0x18aa0a(0x250)],_0x29c129[_0x18aa0a(0x2c2)]),_0x29c129[_0x18aa0a(0x287)]);_0x293388=_0x293388['replace'](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x293388=_0x293388[_0x18aa0a(0x2d8)](/<StorageClassName>/g,_0x3d2fbe);const _0x257cf3=yaml[_0x18aa0a(0x215)](_0x293388);await _0x29c129[_0x18aa0a(0x2fd)](kubeApply,_0x257cf3,_0x191e6a),logger[_0x18aa0a(0x324)](_0x29c129['ffkwv']),logger[_0x18aa0a(0x324)](_0x29c129['NHpRh']);let _0x5bf804=await fs[_0x18aa0a(0x39f)](path[_0x18aa0a(0x380)](__dirname,_0x29c129[_0x18aa0a(0x2ba)],_0x29c129[_0x18aa0a(0x378)],_0x29c129[_0x18aa0a(0x250)],_0x29c129[_0x18aa0a(0x350)]),_0x29c129[_0x18aa0a(0x287)]);_0x5bf804=_0x5bf804['replace'](/<HubHaNameSpace>/g,global_registry[_0x18aa0a(0x361)]),_0x5bf804=_0x5bf804['replace'](/<StorageClassName>/g,_0x3d2fbe);const _0x482615=yaml[_0x18aa0a(0x215)](_0x5bf804);await _0x29c129[_0x18aa0a(0x245)](kubeApply,_0x482615,_0x191e6a),logger[_0x18aa0a(0x324)](_0x29c129[_0x18aa0a(0x2fa)]),logger[_0x18aa0a(0x324)](_0x29c129['XCZLY']);let _0x4ceaad=await fs[_0x18aa0a(0x39f)](path[_0x18aa0a(0x380)](__dirname,_0x29c129[_0x18aa0a(0x2ba)],_0x29c129[_0x18aa0a(0x378)],_0x29c129['zVGOV'],_0x29c129[_0x18aa0a(0x1f2)]),_0x29c129[_0x18aa0a(0x287)]);_0x4ceaad=_0x4ceaad[_0x18aa0a(0x2d8)](/<UploaderImageVersion>/g,global_registry[_0x18aa0a(0x386)]),_0x4ceaad=_0x4ceaad[_0x18aa0a(0x2d8)](/<HubHaNameSpace>/g,global_registry[_0x18aa0a(0x361)]);const _0x54183c=yaml['loadAll'](_0x4ceaad);_0x29c129['RKLBk'](global_registry[_0x18aa0a(0x294)],AZURE)&&(_0x54183c[0x0][_0x18aa0a(0x282)][_0x18aa0a(0x21a)][_0x18aa0a(0x36c)][_0x18aa0a(0x37b)]={'azure.workload.identity/use':_0x29c129[_0x18aa0a(0x26e)],..._0x54183c[0x0][_0x18aa0a(0x282)][_0x18aa0a(0x21a)]['metadata'][_0x18aa0a(0x37b)]},_0x54183c[0x0][_0x18aa0a(0x282)][_0x18aa0a(0x21a)][_0x18aa0a(0x282)][_0x18aa0a(0x3a3)]=_0x29c129[_0x18aa0a(0x2ee)]);await _0x29c129[_0x18aa0a(0x1f4)](kubeApply,_0x54183c,_0x191e6a),logger['info'](_0x29c129[_0x18aa0a(0x342)]);const _0x355ef6={};_0x355ef6[_0x18aa0a(0x25c)]=WS_EVENTS[_0x18aa0a(0x266)],_0x355ef6[_0x18aa0a(0x2a1)]=_0x29c129[_0x18aa0a(0x326)],webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x355ef6),logger[_0x18aa0a(0x324)](_0x29c129['zRYBm']);}catch(_0x2d4888){const _0x4974ba=_0x29c129['hjaAU'][_0x18aa0a(0x25a)]('|');let _0x1cefe6=0x0;while(!![]){switch(_0x4974ba[_0x1cefe6++]){case'0':await _0x29c129[_0x18aa0a(0x312)](reportToGalactusAndSendToEDS,_0x4c9fca,_0x1d198b,_0x4a18ac,messageTypes['ERROR'],_0x29c129[_0x18aa0a(0x259)],_0x29c129['qVJiW'],_0x29c129[_0x18aa0a(0x37f)]);continue;case'1':_0x4a18ac='Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20'+_0x2d4888[_0x18aa0a(0x2a1)];continue;case'2':process[_0x18aa0a(0x239)](0x1);continue;case'3':logger[_0x18aa0a(0x38a)](_0x4a18ac);continue;case'4':await _0x110f68['deleteCluster'](_0x263bca,global_registry['clusterRegion']);continue;}break;}}try{_0x500db3=_0x29c129[_0x18aa0a(0x20f)](kebabCase,_0xd76d2d),logger[_0x18aa0a(0x324)](_0x29c129['wllCF']);const _0x51439e={};_0x51439e[_0x18aa0a(0x25c)]=WS_EVENTS['LOG'],_0x51439e[_0x18aa0a(0x2a1)]=_0x29c129['wllCF'],webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x51439e);if(_0x29c129[_0x18aa0a(0x22d)](_0x500db3,_0x29c129[_0x18aa0a(0x2ee)])){const _0x200d14={};_0x200d14['createdBy']=_0x29c129[_0x18aa0a(0x30f)],_0x200d14[_0x18aa0a(0x330)]=_0x29c129[_0x18aa0a(0x30f)];const _0x40de42={};_0x40de42[_0x18aa0a(0x375)]=_0x500db3,_0x40de42['annotations']=_0x200d14;const _0x2602b8={};_0x2602b8[_0x18aa0a(0x36c)]=_0x40de42;const _0x4ff7cd=_0x2602b8,_0x5eb31b={};_0x5eb31b[_0x18aa0a(0x385)]=_0x4ff7cd,await _0x263bca[_0x18aa0a(0x30c)](_0x5eb31b),logger[_0x18aa0a(0x324)](_0x29c129[_0x18aa0a(0x2d6)]);}const _0x5a18b0={};_0x5a18b0[_0x18aa0a(0x25c)]=WS_EVENTS['LOG'],_0x5a18b0['message']=_0x29c129[_0x18aa0a(0x22c)],webSocketUtils['sendEventToBackend'](_0x1d198b,_0x5a18b0);const _0x5b8180={};_0x5b8180[_0x18aa0a(0x25c)]=WS_EVENTS[_0x18aa0a(0x266)],_0x5b8180[_0x18aa0a(0x2a1)]=_0x29c129[_0x18aa0a(0x2c4)],webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x5b8180),logger[_0x18aa0a(0x324)](_0x29c129[_0x18aa0a(0x247)]);let _0x140f3a={};_0x29c129[_0x18aa0a(0x390)](_0x37162d,AZURE)&&(_0x140f3a={'clientId':await _0x110f68[_0x18aa0a(0x1ee)](_0x18aa0a(0x2a5)+_0x57aa76)});await _0x29c129[_0x18aa0a(0x2e6)](addGridComponents,_0x263bca,_0xc2618c,_0x5c3714,_0x36902a,_0x500db3,_0x57aa76,_0x5082b9,_0x23b2fa,_0x191e6a,_0x140f3a),_0x4a18ac=_0x29c129[_0x18aa0a(0x22e)],logger[_0x18aa0a(0x324)](_0x4a18ac);const _0x2c74dd={};_0x2c74dd[_0x18aa0a(0x25c)]=WS_EVENTS[_0x18aa0a(0x266)],_0x2c74dd[_0x18aa0a(0x2a1)]=_0x4a18ac,webSocketUtils['sendEventToBackend'](_0x1d198b,_0x2c74dd),_0x4a18ac=_0x29c129[_0x18aa0a(0x30d)],logger[_0x18aa0a(0x324)](_0x4a18ac);const _0x5ee0fa={};_0x5ee0fa[_0x18aa0a(0x25c)]=WS_EVENTS[_0x18aa0a(0x266)],_0x5ee0fa[_0x18aa0a(0x2a1)]=_0x4a18ac,webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x5ee0fa),await _0x29c129[_0x18aa0a(0x371)](waitForDeployment,_0xc2618c,_0x500db3,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x1fcf52=await _0x29c129[_0x18aa0a(0x245)](getNamespaceUID,_0x263bca,_0x500db3),_0x23b756=global_registry[_0x18aa0a(0x281)]?_0x29c129[_0x18aa0a(0x253)]:_0x29c129['QuyTh'],_0xfd0c70={};_0xfd0c70['name']=_0x23b756,_0xfd0c70[_0x18aa0a(0x231)]=_0x29c129[_0x18aa0a(0x220)];const _0x4d3799=await _0x263bca[_0x18aa0a(0x32b)](_0xfd0c70);let _0x345602=_0x110f68['getGridHostname'](_0x4d3799)+'/'+_0x500db3,_0x391cb6=_0x29c129[_0x18aa0a(0x315)];try{const _0x4b2eb3=_0x18aa0a(0x33e)+AG_API_URL+_0x18aa0a(0x27d)+_0x1fcf52,_0xbed8a8=await _0x29c129[_0x18aa0a(0x296)](got,_0x4b2eb3,_0x2dd9e9);(_0x29c129['KZCif'](_0xbed8a8,null)||_0x29c129[_0x18aa0a(0x332)](_0xbed8a8,undefined))&&(_0x4a18ac=_0x29c129['GcYOr'],await _0x29c129['lpVek'](reportToGalactusAndSendToEDS,_0x4c9fca,_0x1d198b,_0x4a18ac,messageTypes['ERROR'],_0x29c129[_0x18aa0a(0x259)],_0x29c129[_0x18aa0a(0x358)],_0x29c129[_0x18aa0a(0x37f)]),logger[_0x18aa0a(0x38a)](_0x4a18ac),process[_0x18aa0a(0x239)](0x1));_0x29c129[_0x18aa0a(0x34e)](_0xbed8a8['statusCode'],0x191)&&(_0x4a18ac=_0x29c129['jKGOy'],await _0x29c129[_0x18aa0a(0x283)](reportToGalactusAndSendToEDS,_0x4c9fca,_0x1d198b,_0x4a18ac,messageTypes['ERROR'],_0x29c129['BjDec'],_0x29c129[_0x18aa0a(0x285)],_0x29c129[_0x18aa0a(0x37f)]),logger[_0x18aa0a(0x38a)](_0x4a18ac),process['exit'](0x1));_0x29c129[_0x18aa0a(0x341)](_0xbed8a8[_0x18aa0a(0x290)],0xc8)&&(_0x4a18ac='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x18aa0a(0x2db)](_0xbed8a8),await _0x29c129[_0x18aa0a(0x32d)](reportToGalactusAndSendToEDS,_0x4c9fca,_0x1d198b,_0x4a18ac,messageTypes[_0x18aa0a(0x22f)],_0x29c129[_0x18aa0a(0x259)],_0x29c129[_0x18aa0a(0x2c5)],_0x29c129[_0x18aa0a(0x37f)]),logger['error'](_0x4a18ac),process[_0x18aa0a(0x239)](0x1));const _0x4ac359=JSON[_0x18aa0a(0x349)](_0xbed8a8[_0x18aa0a(0x385)]);_0x4ac359[_0x18aa0a(0x320)]&&(_0x345602=_0x4ac359[_0x18aa0a(0x320)],_0x391cb6=_0x29c129[_0x18aa0a(0x267)]),global_registry[_0x18aa0a(0x281)]&&(_0x391cb6=_0x29c129['cswBB']);}catch(_0xde3607){}_0x4a18ac=_0x18aa0a(0x2c6)+_0x345602+'\x20',logger[_0x18aa0a(0x324)](_0x4a18ac);const _0x4d3cba={};_0x4d3cba['type']=WS_EVENTS['LOG'],_0x4d3cba['message']=_0x4a18ac,webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x4d3cba),_0x4a18ac=_0x18aa0a(0x236)+_0x391cb6+_0x18aa0a(0x301)+_0x345602+'/wd/hub',logger['info'](_0x4a18ac);const _0x2c2528={};_0x2c2528[_0x18aa0a(0x25c)]=WS_EVENTS[_0x18aa0a(0x266)],_0x2c2528[_0x18aa0a(0x2a1)]=_0x4a18ac,webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x2c2528);const _0x21384e={};_0x21384e['type']=WS_EVENTS['CLI_RUN_FINISHED'],_0x21384e['message']=_0x18aa0a(0x2c9)+_0x345602,webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x21384e),await webSocketUtils['delay'](0x7d0);}catch(_0x6ed2cf){logger[_0x18aa0a(0x38a)](_0x18aa0a(0x262)+_0x6ed2cf+'\x20\x0a'+JSON[_0x18aa0a(0x2db)](_0x6ed2cf['stack']));if(_0x29c129[_0x18aa0a(0x333)](_0x36d83f,![]))try{logger[_0x18aa0a(0x324)](_0x29c129['FdSVf']),await _0x29c129[_0x18aa0a(0x249)](removeGridComponents,_0x263bca,_0xc2618c,_0x5c3714,_0x36902a,_0x500db3),await _0x110f68[_0x18aa0a(0x273)](_0x263bca,global_registry[_0x18aa0a(0x251)]);}catch(_0x12e25a){logger['error'](_0x18aa0a(0x27e)+_0x12e25a+'\x20\x0a'+JSON[_0x18aa0a(0x2db)](_0x12e25a[_0x18aa0a(0x363)]));}throw _0x6ed2cf;}}catch(_0x77926d){const _0x1e2d8a=_0x18aa0a(0x38c)+_0x77926d+'\x20\x0a'+JSON[_0x18aa0a(0x2db)](_0x77926d[_0x18aa0a(0x363)]);if(_0x1d198b){const _0x2d819e={};_0x2d819e['type']=WS_EVENTS[_0x18aa0a(0x266)],_0x2d819e['message']=_0x1e2d8a,webSocketUtils[_0x18aa0a(0x2e0)](_0x1d198b,_0x2d819e,_0x29c129['Nrgzg'],!![]);}await webSocketUtils[_0x18aa0a(0x392)](0x7d0);const _0x52ab5d={};_0x52ab5d['error']=_0x1e2d8a,await _0x29c129[_0x18aa0a(0x269)](sendInstrumentationEvent,_0x4c9fca,_0x29c129[_0x18aa0a(0x259)],messageTypes[_0x18aa0a(0x22f)],_0x29c129['Mepnr'],_0x52ab5d,_0x4c9fca),logger[_0x18aa0a(0x38a)](_0x1e2d8a);}process[_0x18aa0a(0x239)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10_0x1e886c=a10_0x48ab;function a10_0x477c(){const _0x7d19dd=['887523iJTnuJ','desc','command','aMbdg','delete_commands','recommendCommands','delete','strict','builder','help','../config/constants','807910QzfePr','List\x20Grid\x20resources.','12WrrxYD','682336mShGKy','29644OxmQQC','27dHRxpo','epilogue','commandDir','usage','5448744BBOYCR','handler','8241167HQIdDW','OwBlf','501682YtywyX','10WuxdSO','16xbgLba'];a10_0x477c=function(){return _0x7d19dd;};return a10_0x477c();}(function(_0x57e274,_0x3a3e04){const _0x3e44b0=a10_0x48ab,_0x374f71=_0x57e274();while(!![]){try{const _0x5c57e7=parseInt(_0x3e44b0(0x8d))/0x1+-parseInt(_0x3e44b0(0x9f))/0x2*(parseInt(_0x3e44b0(0x9d))/0x3)+-parseInt(_0x3e44b0(0x8f))/0x4*(-parseInt(_0x3e44b0(0x9b))/0x5)+-parseInt(_0x3e44b0(0x89))/0x6+-parseInt(_0x3e44b0(0x90))/0x7+parseInt(_0x3e44b0(0x9e))/0x8*(-parseInt(_0x3e44b0(0xa0))/0x9)+-parseInt(_0x3e44b0(0x8e))/0xa*(-parseInt(_0x3e44b0(0x8b))/0xb);if(_0x5c57e7===_0x3a3e04)break;else _0x374f71['push'](_0x374f71['shift']());}catch(_0x4c6e48){_0x374f71['push'](_0x374f71['shift']());}}}(a10_0x477c,0x8593a));function a10_0x48ab(_0x4401f6,_0x284b3e){const _0x477cce=a10_0x477c();return a10_0x48ab=function(_0x48abe4,_0x177432){_0x48abe4=_0x48abe4-0x87;let _0x126d26=_0x477cce[_0x48abe4];return _0x126d26;},a10_0x48ab(_0x4401f6,_0x284b3e);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x1e886c(0x9a));exports[a10_0x1e886c(0x92)]=a10_0x1e886c(0x96),exports[a10_0x1e886c(0x91)]=a10_0x1e886c(0x9c),exports[a10_0x1e886c(0x98)]=function(_0x5afd0e){const _0x3057ce=a10_0x1e886c,_0x316f01={};_0x316f01[_0x3057ce(0x8c)]=_0x3057ce(0x94),_0x316f01['aMbdg']=_0x3057ce(0x99);const _0x4ac110=_0x316f01;return _0x5afd0e[_0x3057ce(0x88)](HELP_HEADER_MESSAGE[_0x3057ce(0x96)])[_0x3057ce(0xa1)](HELP_FOOTER_MESSAGE)[_0x3057ce(0x87)](_0x4ac110[_0x3057ce(0x8c)])['demandCommand']()[_0x3057ce(0x95)]()[_0x3057ce(0x97)]()[_0x3057ce(0x99)](_0x4ac110[_0x3057ce(0x93)]);},exports[a10_0x1e886c(0x8a)]=function(_0x354816){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11_0x1e839e=a11_0x4337;(function(_0x229c49,_0x3555f6){const _0x1d1a8b=a11_0x4337,_0x11a6cc=_0x229c49();while(!![]){try{const _0x6acc8d=parseInt(_0x1d1a8b(0x202))/0x1+-parseInt(_0x1d1a8b(0x1e7))/0x2+-parseInt(_0x1d1a8b(0x176))/0x3*(-parseInt(_0x1d1a8b(0x17b))/0x4)+parseInt(_0x1d1a8b(0x17e))/0x5*(-parseInt(_0x1d1a8b(0x1fa))/0x6)+parseInt(_0x1d1a8b(0x196))/0x7+-parseInt(_0x1d1a8b(0x208))/0x8+parseInt(_0x1d1a8b(0x1e1))/0x9*(parseInt(_0x1d1a8b(0x205))/0xa);if(_0x6acc8d===_0x3555f6)break;else _0x11a6cc['push'](_0x11a6cc['shift']());}catch(_0x4d5856){_0x11a6cc['push'](_0x11a6cc['shift']());}}}(a11_0x83ba,0xc3ca3));function a11_0x4337(_0x3984fc,_0x599e65){const _0x83bac0=a11_0x83ba();return a11_0x4337=function(_0x4337ae,_0x2c4b4e){_0x4337ae=_0x4337ae-0x16f;let _0x3ce7f8=_0x83bac0[_0x4337ae];return _0x3ce7f8;},a11_0x4337(_0x3984fc,_0x599e65);}const fs=require('fs'),got=require(a11_0x1e839e(0x1dd)),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require(a11_0x1e839e(0x188)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x1e839e(0x1cb)),{logger}=require(a11_0x1e839e(0x1bf)),{getCloudProviderObject}=require(a11_0x1e839e(0x1ba)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x1e839e(0x186)),{sendInstrumentationEvent}=require(a11_0x1e839e(0x16f)),{inputConfirmation}=require(a11_0x1e839e(0x1bd)),{createK8sClient}=require(a11_0x1e839e(0x178)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x1e839e(0x18a)),webSocketUtils=require('../../utils/webSocketUtils');exports[a11_0x1e839e(0x19d)]='grid',exports['desc']=a11_0x1e839e(0x17f),exports[a11_0x1e839e(0x1a0)]=function(_0x236c0f){const _0x5459f7=a11_0x1e839e,_0x175bbd={};_0x175bbd[_0x5459f7(0x203)]=_0x5459f7(0x170),_0x175bbd[_0x5459f7(0x18c)]='string',_0x175bbd[_0x5459f7(0x1ef)]='Skip\x20insecure\x20cert\x20verification.',_0x175bbd[_0x5459f7(0x1aa)]='boolean',_0x175bbd[_0x5459f7(0x204)]=_0x5459f7(0x1fd);const _0x5a381a=_0x175bbd,_0x24427a={};_0x24427a[_0x5459f7(0x1c7)]=_0x5a381a[_0x5459f7(0x203)],_0x24427a[_0x5459f7(0x1d2)]=_0x5a381a['CvMXw'];const _0x167e31={};_0x167e31[_0x5459f7(0x1c7)]=_0x5a381a[_0x5459f7(0x1ef)],_0x167e31[_0x5459f7(0x1d2)]=_0x5a381a[_0x5459f7(0x1aa)],_0x167e31[_0x5459f7(0x1e8)]=![];const _0x54d299={};return _0x54d299['grid-id']=_0x24427a,_0x54d299[_0x5459f7(0x1e2)]=_0x167e31,_0x236c0f[_0x5459f7(0x1d8)](HELP_HEADER_MESSAGE[_0x5459f7(0x1ce)])[_0x5459f7(0x1d5)](HELP_FOOTER_MESSAGE)['options'](_0x54d299)['help'](_0x5a381a[_0x5459f7(0x204)])[_0x5459f7(0x1ec)];},exports[a11_0x1e839e(0x1fe)]=async function(_0xeabc51){const _0x281888=a11_0x1e839e,_0x286d65={'Wenjv':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','LldWR':_0x281888(0x170),'CuBga':_0x281888(0x1c4),'kktEa':_0x281888(0x1f8),'GZWYe':_0x281888(0x1ad),'NFVbX':_0x281888(0x1fd),'lxuax':function(_0x43cb77,_0x1e5bc0){return _0x43cb77===_0x1e5bc0;},'SYhgI':_0x281888(0x1a8),'DlSSy':_0x281888(0x191),'adWgk':_0x281888(0x19a),'DrjbH':_0x281888(0x1c9),'MrZhw':'ESNYj','guXmd':_0x281888(0x177),'jdFTK':function(_0x213287){return _0x213287();},'HZBAE':function(_0x264b4b){return _0x264b4b();},'gAqFa':function(_0xffa7f4,_0x364a37){return _0xffa7f4!==_0x364a37;},'XrVlS':_0x281888(0x1d3),'WDPht':_0x281888(0x1e0),'anfOl':function(_0x377e77,_0x2302cb,_0x25a8a0,_0x263154,_0x3683c5,_0x1e7cc7,_0x2ea4d5){return _0x377e77(_0x2302cb,_0x25a8a0,_0x263154,_0x3683c5,_0x1e7cc7,_0x2ea4d5);},'wzfYh':_0x281888(0x1b9),'CgkUn':_0x281888(0x1a7),'eaPyI':function(_0x444522,_0x2fe518){return _0x444522===_0x2fe518;},'hXJJv':_0x281888(0x1c5),'mCBrH':function(_0x567e83){return _0x567e83();},'ZCHhF':function(_0x37e341,_0x96a66,_0x3b3e52,_0x2921f9){return _0x37e341(_0x96a66,_0x3b3e52,_0x2921f9);},'aRYXT':_0x281888(0x174),'iawYv':function(_0x3cdd1b,_0x3cdd2a){return _0x3cdd1b===_0x3cdd2a;},'JuqGy':_0x281888(0x171),'DTSZe':function(_0x4154dd,_0x43afc5){return _0x4154dd(_0x43afc5);},'bKVPL':function(_0x3bc1cd,_0x179cf9){return _0x3bc1cd===_0x179cf9;},'dEfoE':function(_0x449d82,_0x4d255b){return _0x449d82===_0x4d255b;},'rEWTH':_0x281888(0x1fb),'POUzF':_0x281888(0x193),'KRhqa':function(_0x2a2963,_0xc033d8,_0x501e58,_0x575b9a,_0x4a19e5,_0x461c83,_0x3e2c1d){return _0x2a2963(_0xc033d8,_0x501e58,_0x575b9a,_0x4a19e5,_0x461c83,_0x3e2c1d);},'PmKhp':_0x281888(0x1f1),'ybfVP':function(_0x47d33e,_0x5be46f){return _0x47d33e===_0x5be46f;},'PYIbd':_0x281888(0x189),'fbnmY':'qlzNF','gpnZv':'<UsernamePlaceholder>','fCnSX':_0x281888(0x173),'PhUfr':function(_0x148b75,_0x27e1bd){return _0x148b75(_0x27e1bd);},'DXsmO':function(_0x26367c,_0x39467b,_0x1f30e0){return _0x26367c(_0x39467b,_0x1f30e0);},'OGDfk':function(_0x266969,_0x3ed655,_0x1a3fa8,_0x5dac3c,_0x3272da,_0x41160f){return _0x266969(_0x3ed655,_0x1a3fa8,_0x5dac3c,_0x3272da,_0x41160f);},'HHWJV':function(_0xc0f4a9,_0x19be78){return _0xc0f4a9!==_0x19be78;},'cpdcJ':_0x281888(0x172),'gRSKJ':'qlIFG','MiWPN':_0x281888(0x1ac),'QBllm':_0x281888(0x18f),'YbpDf':function(_0x1afbab,_0x923660){return _0x1afbab!==_0x923660;},'RTMUD':function(_0x110337,_0x49fb32){return _0x110337!==_0x49fb32;},'ZiKcb':'server-error','wSvDF':'Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','AoBDL':_0x281888(0x1d6),'yGPeZ':function(_0x430015,_0x19afbe){return _0x430015===_0x19afbe;},'gNNmD':function(_0x4eea91,_0x797512,_0x3fab29,_0x1e82b4,_0x50caf,_0x26ec29,_0x488645){return _0x4eea91(_0x797512,_0x3fab29,_0x1e82b4,_0x50caf,_0x26ec29,_0x488645);},'rLTLc':_0x281888(0x1a3),'fHHll':function(_0x576544,_0x5c862e,_0x5dbeae,_0xe1db66,_0xde2d73,_0x4a67bf,_0x9bd7b0){return _0x576544(_0x5c862e,_0x5dbeae,_0xe1db66,_0xde2d73,_0x4a67bf,_0x9bd7b0);},'TZoVI':'unknown-error'};try{global_registry[_0x281888(0x1e9)]=_0x286d65[_0x281888(0x1c6)](uuidv4);!fs[_0x281888(0x185)](_0x286d65['HZBAE'](getCredentialsPath))&&(_0x286d65['gAqFa'](_0x286d65[_0x281888(0x1a5)],_0x286d65[_0x281888(0x1a5)])?_0x57aa88[_0x281888(0x1c8)]('Cluster:\x20'+_0x4c5d20[_0x281888(0x1b2)]+_0x281888(0x18b)):(console['error'](_0x286d65[_0x281888(0x1c2)]),await _0x286d65[_0x281888(0x1ab)](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes['ERROR'],_0x286d65[_0x281888(0x1c0)],null,_0xeabc51),process['exit'](0x1)));_0x286d65['anfOl'](sendInstrumentationEvent,_0xeabc51,_0x286d65['wzfYh'],messageTypes[_0x281888(0x20a)],null,null,_0xeabc51);!_0xeabc51['gridId']&&(_0x286d65['eaPyI'](_0x286d65['hXJJv'],_0x286d65['hXJJv'])?(console[_0x281888(0x1ea)](_0x286d65['Wenjv']),process[_0x281888(0x1a4)](0x1)):_0x1a28be[_0x281888(0x1a4)](0x0));const _0x277d33=JSON[_0x281888(0x1c3)](fs[_0x281888(0x1b6)](_0x286d65['mCBrH'](getCredentialsPath))),[_0x46101f,_0xf34891]=await _0x286d65[_0x281888(0x17a)](getGridDetails,_0x277d33['Browserstack']['username'],_0x277d33['Browserstack'][_0x281888(0x199)],_0xeabc51['gridId']);if(_0xf34891){const _0x329c0d=_0xf34891['info'];let _0x1ac745=_0x281888(0x180)+_0x329c0d['name']+_0x281888(0x1ca)+_0x329c0d['id']+_0x281888(0x1bb);_0xf34891[_0x281888(0x1f6)]&&_0x286d65[_0x281888(0x192)](_0xf34891[_0x281888(0x17c)],_0x286d65[_0x281888(0x19c)])&&(_0x286d65[_0x281888(0x1b0)](_0x286d65[_0x281888(0x175)],_0x286d65[_0x281888(0x175)])?_0x1ac745=_0x281888(0x180)+_0x329c0d[_0x281888(0x1f2)]+'\x22\x20and\x20ID\x20'+_0x329c0d['id']+_0x281888(0x1da)+_0x329c0d[_0x281888(0x1b2)]+_0x281888(0x1f3)+_0x329c0d['clusterId']+_0x281888(0x1bb):(_0x30cce3[_0x281888(0x1ea)](_0x286d65[_0x281888(0x1be)]),_0x438119[_0x281888(0x1a4)](0x1)));const _0x294116=await _0x286d65[_0x281888(0x1cf)](inputConfirmation,_0x1ac745);(_0x286d65[_0x281888(0x192)](_0x294116,undefined)||_0x286d65[_0x281888(0x18e)](_0x294116,null)||!(_0x286d65[_0x281888(0x18e)](_0x294116['toLowerCase'](),'y')||_0x286d65[_0x281888(0x187)](_0x294116[_0x281888(0x209)](),'n')))&&(_0x286d65[_0x281888(0x18e)](_0x286d65[_0x281888(0x201)],_0x286d65[_0x281888(0x201)])?(console[_0x281888(0x1ea)](_0x286d65[_0x281888(0x1b7)]),await _0x286d65[_0x281888(0x1af)](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes[_0x281888(0x1a6)],_0x286d65[_0x281888(0x1b5)],null,_0xeabc51),process[_0x281888(0x1a4)](0x1)):(_0x59033d[_0x281888(0x1c8)](_0x281888(0x1c1)+_0x2460e0+_0x281888(0x19b)),_0x885fa0=![]));_0x286d65[_0x281888(0x1d0)](_0x294116[_0x281888(0x209)](),'n')&&(_0x286d65[_0x281888(0x1b1)](_0x286d65[_0x281888(0x19f)],_0x286d65['fbnmY'])?process[_0x281888(0x1a4)](0x0):_0x5ce597=_0x281888(0x180)+_0x1feec2[_0x281888(0x1f2)]+_0x281888(0x1ca)+_0x1ab1b4['id']+_0x281888(0x1da)+_0x20a1b7['clusterName']+_0x281888(0x1f3)+_0x402991['clusterId']+_0x281888(0x1bb));const _0x34a8bc=WS_ENDPOINT['replace'](_0x286d65[_0x281888(0x1cd)],_0x277d33[_0x281888(0x174)][_0x281888(0x1ff)])[_0x281888(0x1b3)](_0x286d65['fCnSX'],_0x277d33[_0x281888(0x174)][_0x281888(0x199)]),_0x556bd1={};_0x556bd1[_0x281888(0x1f9)]=ws,_0x556bd1[_0x281888(0x1a1)]=0x36ee80;const _0x55bc84=new ReconnectingWebSocket(_0x34a8bc,[],_0x556bd1);global_registry[_0x281888(0x206)]=_0x329c0d[_0x281888(0x1e5)];const _0x46bb14=_0x329c0d[_0x281888(0x181)],_0xdb075b=await _0x286d65[_0x281888(0x1ab)](getCloudProviderObject,_0x46bb14,_0x329c0d[_0x281888(0x1b2)],_0x329c0d[_0x281888(0x1f2)],_0x55bc84,webSocketUtils,_0xeabc51),_0x327dba=await _0xdb075b[_0x281888(0x19e)]();if(_0x327dba){const _0x591de1=_0x286d65[_0x281888(0x1e6)](kebabCase,_0x329c0d[_0x281888(0x1f2)]),[_0x44f2c0,_0x472c0a,_0x48b76a,_0x700e07,_0x4b16d3,_0x55488a]=await _0x286d65['DXsmO'](createK8sClient,_0xdb075b,_0xeabc51[_0x281888(0x200)]);let _0x25b17b=!![];const _0xa611f={};_0xa611f['name']=_0x591de1,await _0x44f2c0['readNamespace'](_0xa611f)['then'](_0x11120e=>{const _0x27dba1=_0x281888;if(_0x286d65[_0x27dba1(0x1db)](_0x286d65[_0x27dba1(0x18d)],_0x286d65['DlSSy'])){const _0x2f5196={};_0x2f5196[_0x27dba1(0x1c7)]=_0x286d65['LldWR'],_0x2f5196[_0x27dba1(0x1d2)]=_0x286d65[_0x27dba1(0x1f5)];const _0x5a23dd={};_0x5a23dd[_0x27dba1(0x1c7)]=_0x286d65['kktEa'],_0x5a23dd[_0x27dba1(0x1d2)]=_0x286d65[_0x27dba1(0x194)],_0x5a23dd['default']=![];const _0x572659={};return _0x572659['grid-id']=_0x2f5196,_0x572659[_0x27dba1(0x1e2)]=_0x5a23dd,_0x249756[_0x27dba1(0x1d8)](_0x6c2275[_0x27dba1(0x1ce)])['epilogue'](_0x30c904)[_0x27dba1(0x1a9)](_0x572659)['help'](_0x286d65[_0x27dba1(0x190)])[_0x27dba1(0x1ec)];}else logger['info']('Namespace:\x20'+_0x591de1+_0x27dba1(0x1fc));})['catch'](_0xea811d=>{const _0x8bb1d9=_0x281888;_0x286d65[_0x8bb1d9(0x1db)](_0x286d65[_0x8bb1d9(0x207)],_0x286d65[_0x8bb1d9(0x1e3)])?_0x37932b[_0x8bb1d9(0x1c8)](_0x286d65[_0x8bb1d9(0x1d7)]):(logger[_0x8bb1d9(0x1c8)](_0x8bb1d9(0x1c1)+_0x591de1+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x25b17b=![]);});if(_0x25b17b){await _0x286d65[_0x281888(0x1eb)](removeGridComponents,_0x44f2c0,_0x472c0a,_0x48b76a,_0x700e07,_0x591de1);if(_0xf34891[_0x281888(0x1f6)]){const _0x43e83f=await _0xdb075b[_0x281888(0x17d)]();_0x43e83f?_0x286d65[_0x281888(0x197)](_0x286d65[_0x281888(0x1b4)],_0x286d65[_0x281888(0x1d4)])?await _0xdb075b['deleteCluster'](_0x44f2c0,_0x329c0d[_0x281888(0x1e5)]):(_0x1c7775[_0x281888(0x1a2)](_0x286d65[_0x281888(0x184)]),_0x88074[_0x281888(0x1a4)](0x0)):_0x286d65[_0x281888(0x1db)](_0x286d65[_0x281888(0x1d1)],_0x286d65[_0x281888(0x1d1)])?logger['warn'](_0x281888(0x195)+_0x329c0d['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'):_0x2c50f1[_0x281888(0x1a2)]('Namespace:\x20'+_0x3d4baa+_0x281888(0x1fc));}}}else logger[_0x281888(0x1c8)](_0x286d65['adWgk']);const _0x2c995d=_0x281888(0x1df)+AG_API_URL+'/packages/cli/grid/'+_0xeabc51['gridId'],_0x3ae2ec={'method':_0x286d65[_0x281888(0x1ed)],'headers':_0x286d65['DXsmO'](getAuthHeader,_0x277d33[_0x281888(0x174)][_0x281888(0x1ff)],_0x277d33[_0x281888(0x174)][_0x281888(0x199)]),'throwHttpErrors':![]},_0x461dae=await _0x286d65[_0x281888(0x1bc)](got,_0x2c995d,_0x3ae2ec);_0x286d65[_0x281888(0x1dc)](_0x461dae,null)&&_0x286d65[_0x281888(0x1f4)](_0x461dae,undefined)&&_0x286d65[_0x281888(0x192)](_0x461dae[_0x281888(0x1f0)],0xc8)&&(logger[_0x281888(0x1a2)](_0x286d65[_0x281888(0x184)]),process[_0x281888(0x1a4)](0x0)),logger['error'](_0x281888(0x1ee)+_0x461dae[_0x281888(0x1d9)]),await _0x286d65[_0x281888(0x1ab)](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes[_0x281888(0x1a6)],_0x286d65[_0x281888(0x182)],_0x46101f,_0xeabc51),process['exit'](0x1);}_0x286d65['eaPyI'](_0x46101f[_0x281888(0x1f0)],0x191)&&(logger[_0x281888(0x1ea)](_0x286d65[_0x281888(0x179)]),await _0x286d65[_0x281888(0x1af)](sendInstrumentationEvent,_0xeabc51,_0x286d65['wzfYh'],messageTypes[_0x281888(0x1a6)],_0x286d65[_0x281888(0x1ae)],null,_0xeabc51),process[_0x281888(0x1a4)](0x1)),_0x286d65[_0x281888(0x1de)](_0x46101f['statusCode'],0x190)&&(logger[_0x281888(0x1ea)](JSON[_0x281888(0x1c3)](_0x46101f['body'])['message']),await _0x286d65[_0x281888(0x183)](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes[_0x281888(0x1a6)],_0x286d65['rLTLc'],null,_0xeabc51),process[_0x281888(0x1a4)](0x1)),logger[_0x281888(0x1ea)](_0x281888(0x198)+JSON['stringify'](_0x46101f)),await _0x286d65[_0x281888(0x1af)](sendInstrumentationEvent,_0xeabc51,_0x286d65['wzfYh'],messageTypes['ERROR'],_0x286d65['ZiKcb'],_0x46101f,_0xeabc51),process[_0x281888(0x1a4)](0x1);}catch(_0x1c2682){logger[_0x281888(0x1ea)](_0x281888(0x1cc)+_0x1c2682[_0x281888(0x1f7)]),await _0x286d65['fHHll'](sendInstrumentationEvent,_0xeabc51,_0x286d65[_0x281888(0x1b8)],messageTypes[_0x281888(0x1a6)],_0x286d65[_0x281888(0x1e4)],_0x1c2682,_0xeabc51),process[_0x281888(0x1a4)](0x1);}};function a11_0x83ba(){const _0x156428=['INFO','../../utils/instrumentationUtils','Pass\x20the\x20ID\x20of\x20the\x20Grid','VxBDE','MnhVE','<PasswordPlaceholder>','Browserstack','JuqGy','1044993JWPSFf','Successfully\x20deleted\x20the\x20grid','../../utils/createk8sClient','wSvDF','ZCHhF','4ilmAqs','clusterSpawnedVia','isBrowserstackCluster','5pGwhZT','Delete\x20an\x20Automation\x20grid.','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','cloudProvider','ZiKcb','gNNmD','guXmd','existsSync','../../utils/gridComponents','dEfoE','reconnecting-websocket','PvTgq','../../utils/utilityMethods','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','CvMXw','SYhgI','bKVPL','DELETE','NFVbX','CCsvb','eaPyI','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','GZWYe','Cluster:\x20','2188802ToRolL','HHWJV','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','password','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','aRYXT','command','isClusterPresent','PYIbd','builder','connectionTimeout','info','invalid-grid-id','exit','XrVlS','ERROR','init-not-called','ptuhS','options','WWLDP','anfOl','bhlHC','boolean','AoBDL','KRhqa','iawYv','gAqFa','clusterName','replace','cpdcJ','PmKhp','readFileSync','POUzF','wzfYh','delete-grid-called','../../cloudproviders/utils','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','DXsmO','../../utils/userInput','Wenjv','../../config/logger','CgkUn','Namespace:\x20','WDPht','parse','string','LgdGh','jdFTK','description','warn','VqYEB','\x22\x20and\x20ID\x20','../../config/constants','Failed\x20to\x20delete\x20resources!\x20Error:\x20','gpnZv','delete','DTSZe','ybfVP','MiWPN','type','axErA','gRSKJ','epilogue','unauthorised','adWgk','usage','body','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','lxuax','YbpDf','got','yGPeZ','https://','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','4095189bFqPyj','skip-tls-cert-verify','MrZhw','TZoVI','region','PhUfr','2866326DeiARX','default','requestId','error','OGDfk','argv','QBllm','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','zrAnZ','statusCode','invalid-input','name','\x22\x20with\x20ID\x20','RTMUD','CuBga','onlyGridInCluster','stack','Skip\x20insecure\x20cert\x20verification.','WebSocket','8525070yhOjHT','JpLpn','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','help','handler','username','skipTlsCertVerify','rEWTH','1436816GUtDuC','IECAA','aXBjP','40rLnDxV','clusterRegion','DrjbH','2095632iWEcNH','toLowerCase'];a11_0x83ba=function(){return _0x156428;};return a11_0x83ba();}
|
|
1
|
+
const a11_0x4dc9b3=a11_0xb6da;function a11_0x1d5f(){const _0x291b29=['tyTag','EONSl','obwVd','requestId','grid','TPpVh','9372ooMOld','epilogue','delete','ScjHT','floIj','error','XNImT','isClusterPresent','<UsernamePlaceholder>','deleteCluster','\x22\x20with\x20ID\x20','125nGygyb','unknown-error','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Pass\x20the\x20ID\x20of\x20the\x20Grid','readNamespace','uuPsM','IZAgU','nihaL','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','isBrowserstackCluster','GQKOc','gITHm','ERROR','RMLvI','Skip\x20insecure\x20cert\x20verification.','dROHy','\x22\x20and\x20ID\x20','catch','stack','help','cpgkd','options','delete-grid-called','then','fClds','clusterSpawnedVia','SHxcu','IHBco','shcCz','argv','4742ZnxHAc','14hlugmz','cloudProvider','DBlof','qlThY','string','vdilh','Cluster:\x20','rfDTf','11OCUagh','uLDuN','skipTlsCertVerify','CUCJU','clusterId','replace','rIIdd','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','PjJVl','aKxTz','AKBho','invalid-grid-id','Browserstack','region','name','gfCxi','GybEu','PGwLs','../../utils/createk8sClient','https://','Delete\x20an\x20Automation\x20grid.','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','AXkXJ','clusterName','toLowerCase','YVPNe','stringify','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','skQWG','../../cloudproviders/utils','../../utils/gridComponents','pCNpY','212118THOPTJ','aosvm','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','ESmfE','KnobI','WvRrD','username','Nqjef','DJRJR','WebSocket','WjwTj','TxfSF','message','QOoAv','Namespace:\x20','6653628Mmjcnl','XRMOB','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','handler','agWuj','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','info','2905716AJEKeR','erTBM','default','251IzbvTD','lLyht','bIvlq','../../config/constants','1322960rMWepr','onlyGridInCluster','unauthorised','setvH','xgVMm','LkpOG','vDCYV','boolean','invalid-input','statusCode','UtGsX','clusterRegion','type','../../utils/userInput','body','EQXJt','password','warn','GfwZF','usage','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','parse','EYZZW','wAVso','KrzfI','1179IGdYQu','rtfcq','ZmTMn','exit','../../config/logger','mxxtk','../../utils/utilityMethods','gridId','DELETE','server-error','1868952gTkGoj','grid-id','TkiRG','init-not-called','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','skip-tls-cert-verify','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.'];a11_0x1d5f=function(){return _0x291b29;};return a11_0x1d5f();}function a11_0xb6da(_0x188099,_0x59a470){const _0x1d5f83=a11_0x1d5f();return a11_0xb6da=function(_0xb6da,_0x1ea565){_0xb6da=_0xb6da-0x1d4;let _0xcf7d9a=_0x1d5f83[_0xb6da];return _0xcf7d9a;},a11_0xb6da(_0x188099,_0x59a470);}(function(_0x21be57,_0x2784dd){const _0x5d52c2=a11_0xb6da,_0x202a98=_0x21be57();while(!![]){try{const _0x49bf1b=parseInt(_0x5d52c2(0x246))/0x1*(-parseInt(_0x5d52c2(0x204))/0x2)+parseInt(_0x5d52c2(0x263))/0x3*(-parseInt(_0x5d52c2(0x1db))/0x4)+parseInt(_0x5d52c2(0x1e6))/0x5*(parseInt(_0x5d52c2(0x22d))/0x6)+-parseInt(_0x5d52c2(0x205))/0x7*(-parseInt(_0x5d52c2(0x26d))/0x8)+parseInt(_0x5d52c2(0x23c))/0x9+-parseInt(_0x5d52c2(0x24a))/0xa*(-parseInt(_0x5d52c2(0x20d))/0xb)+-parseInt(_0x5d52c2(0x243))/0xc;if(_0x49bf1b===_0x2784dd)break;else _0x202a98['push'](_0x202a98['shift']());}catch(_0x36b6d6){_0x202a98['push'](_0x202a98['shift']());}}}(a11_0x1d5f,0x716cc));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require('uuid'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x4dc9b3(0x249)),{logger}=require(a11_0x4dc9b3(0x267)),{getCloudProviderObject}=require(a11_0x4dc9b3(0x22a)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x4dc9b3(0x22b)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require(a11_0x4dc9b3(0x257)),{createK8sClient}=require(a11_0x4dc9b3(0x21f)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x4dc9b3(0x269)),webSocketUtils=require('../../utils/webSocketUtils');exports['command']=a11_0x4dc9b3(0x1d9),exports['desc']=a11_0x4dc9b3(0x221),exports['builder']=function(_0x22d7af){const _0x5a19c6=a11_0x4dc9b3,_0x2dea32={};_0x2dea32[_0x5a19c6(0x25c)]=_0x5a19c6(0x1e9),_0x2dea32[_0x5a19c6(0x21e)]=_0x5a19c6(0x209),_0x2dea32[_0x5a19c6(0x268)]='Skip\x20insecure\x20cert\x20verification.',_0x2dea32[_0x5a19c6(0x264)]=_0x5a19c6(0x251),_0x2dea32['LJAvy']=_0x5a19c6(0x1f9);const _0x5f20ed=_0x2dea32,_0x5b1187={};_0x5b1187['description']=_0x5f20ed['GfwZF'],_0x5b1187[_0x5a19c6(0x256)]=_0x5f20ed[_0x5a19c6(0x21e)];const _0x312931={};_0x312931['description']=_0x5f20ed[_0x5a19c6(0x268)],_0x312931[_0x5a19c6(0x256)]=_0x5f20ed['rtfcq'],_0x312931[_0x5a19c6(0x245)]=![];const _0x4afebe={};return _0x4afebe['grid-id']=_0x5b1187,_0x4afebe[_0x5a19c6(0x272)]=_0x312931,_0x22d7af['usage'](HELP_HEADER_MESSAGE[_0x5a19c6(0x1dd)])[_0x5a19c6(0x1dc)](HELP_FOOTER_MESSAGE)[_0x5a19c6(0x1fb)](_0x4afebe)['help'](_0x5f20ed['LJAvy'])[_0x5a19c6(0x203)];},exports[a11_0x4dc9b3(0x23f)]=async function(_0x79f885){const _0x258dcf=a11_0x4dc9b3,_0x511789={'GQKOc':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','AKBho':_0x258dcf(0x214),'MaSDW':_0x258dcf(0x1e9),'KrzfI':_0x258dcf(0x209),'fldgE':_0x258dcf(0x1f4),'vDCYV':'boolean','ttRrA':_0x258dcf(0x1f9),'dROHy':function(_0x3e46d3,_0x163ebb){return _0x3e46d3!==_0x163ebb;},'vdilh':_0x258dcf(0x223),'obwVd':_0x258dcf(0x240),'floIj':function(_0x458086,_0x332da7){return _0x458086===_0x332da7;},'EQXJt':_0x258dcf(0x207),'aosvm':'Successfully\x20deleted\x20the\x20grid','RIfTR':function(_0x349ff4){return _0x349ff4();},'UtGsX':function(_0x55adaf,_0x541eb8){return _0x55adaf===_0x541eb8;},'xgVMm':_0x258dcf(0x26f),'Hguve':_0x258dcf(0x231),'YVPNe':_0x258dcf(0x1d4),'bIvlq':function(_0x5de4ff,_0x4109da,_0x4bb1ab,_0x4dbd74,_0x5c193c,_0x500490,_0x113110){return _0x5de4ff(_0x4109da,_0x4bb1ab,_0x4dbd74,_0x5c193c,_0x500490,_0x113110);},'DJRJR':_0x258dcf(0x1fc),'setvH':_0x258dcf(0x270),'IZAgU':_0x258dcf(0x1d6),'erTBM':_0x258dcf(0x202),'ESmfE':function(_0x25a7d9,_0x125339,_0x12a4a3,_0xba38a){return _0x25a7d9(_0x125339,_0x12a4a3,_0xba38a);},'aKxTz':'Browserstack','Nqjef':function(_0x446eff,_0x4a9e47){return _0x446eff!==_0x4a9e47;},'dlHJU':_0x258dcf(0x208),'QOoAv':'MWPPq','WvRrD':function(_0x450fd1,_0x2679fa){return _0x450fd1(_0x2679fa);},'XRMOB':function(_0x138d63,_0x465549){return _0x138d63===_0x465549;},'aMHbz':function(_0x5592a0,_0x21c801){return _0x5592a0===_0x21c801;},'lkUYV':function(_0x1bf7e4,_0x5d97cb){return _0x1bf7e4===_0x5d97cb;},'rfDTf':function(_0x3561bb,_0x439b4a){return _0x3561bb===_0x439b4a;},'cpgkd':_0x258dcf(0x200),'ZmTMn':'JqiPY','BABAr':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','fjmWd':_0x258dcf(0x252),'TxfSF':function(_0x4fbffa,_0x59cc2d){return _0x4fbffa===_0x59cc2d;},'EYZZW':function(_0x1b216d,_0x2bc9df){return _0x1b216d===_0x2bc9df;},'uLDuN':_0x258dcf(0x1f1),'RMLvI':_0x258dcf(0x1e3),'IHBco':'<PasswordPlaceholder>','HgMgJ':function(_0x3389e7,_0x5c4640){return _0x3389e7(_0x5c4640);},'rIIdd':function(_0xc16019,_0x50000c,_0x5c2c01){return _0xc16019(_0x50000c,_0x5c2c01);},'lLyht':function(_0x4cd54c,_0x431aa9,_0x30998c,_0x291463,_0x56f694,_0x348654){return _0x4cd54c(_0x431aa9,_0x30998c,_0x291463,_0x56f694,_0x348654);},'ysAWq':function(_0x4f041f,_0x211280){return _0x4f041f!==_0x211280;},'XNImT':_0x258dcf(0x1de),'PjJVl':_0x258dcf(0x237),'tyTag':function(_0x2c134f,_0x3e197c){return _0x2c134f!==_0x3e197c;},'fClds':_0x258dcf(0x229),'uuPsM':_0x258dcf(0x26b),'qqWXX':function(_0x145332,_0x2e462c,_0x51bfdb){return _0x145332(_0x2e462c,_0x51bfdb);},'grDaa':function(_0x262704,_0x41b01e){return _0x262704!==_0x41b01e;},'TPpVh':function(_0x5da971,_0x443b4a){return _0x5da971!==_0x443b4a;},'kHsAj':function(_0x43b2e0,_0x1436ec,_0x261b81,_0x575a5c,_0x336205,_0x2535df,_0x5684d0){return _0x43b2e0(_0x1436ec,_0x261b81,_0x575a5c,_0x336205,_0x2535df,_0x5684d0);},'pCNpY':_0x258dcf(0x26c),'iSNJt':function(_0x1ffdb9,_0x53796b){return _0x1ffdb9===_0x53796b;},'GybEu':_0x258dcf(0x241),'nihaL':function(_0x584771,_0x1d5265,_0x5bfe00,_0x26afc3,_0x2ca75e,_0x1b7d78,_0x4a26be){return _0x584771(_0x1d5265,_0x5bfe00,_0x26afc3,_0x2ca75e,_0x1b7d78,_0x4a26be);},'vjxvQ':_0x258dcf(0x24c),'LkpOG':function(_0x193a93,_0x11a632){return _0x193a93===_0x11a632;},'OBJdR':function(_0x50a907,_0x320eaf,_0x4d533a,_0x4a3ae4,_0x14fb4b,_0x508fda,_0xbd9866){return _0x50a907(_0x320eaf,_0x4d533a,_0x4a3ae4,_0x14fb4b,_0x508fda,_0xbd9866);},'CUCJU':_0x258dcf(0x218),'gfCxi':function(_0x4257ea,_0xd07fa9,_0x12b6e7,_0x211e7a,_0x3a0714,_0x741f84,_0x9168e2){return _0x4257ea(_0xd07fa9,_0x12b6e7,_0x211e7a,_0x3a0714,_0x741f84,_0x9168e2);},'wAVso':_0x258dcf(0x1e7)};try{global_registry[_0x258dcf(0x1d8)]=_0x511789['RIfTR'](uuidv4);!fs['existsSync'](_0x511789['RIfTR'](getCredentialsPath))&&(_0x511789[_0x258dcf(0x254)](_0x511789[_0x258dcf(0x24e)],_0x511789['Hguve'])?(_0x3e5227['error'](_0x511789[_0x258dcf(0x1f0)]),_0x374bb6['exit'](0x1)):(console[_0x258dcf(0x1e0)](_0x511789[_0x258dcf(0x226)]),await _0x511789[_0x258dcf(0x248)](sendInstrumentationEvent,_0x79f885,_0x511789['DJRJR'],messageTypes['ERROR'],_0x511789[_0x258dcf(0x24d)],null,_0x79f885),process[_0x258dcf(0x266)](0x1)));_0x511789[_0x258dcf(0x248)](sendInstrumentationEvent,_0x79f885,_0x511789[_0x258dcf(0x235)],messageTypes['INFO'],null,null,_0x79f885);!_0x79f885[_0x258dcf(0x26a)]&&(_0x511789[_0x258dcf(0x254)](_0x511789[_0x258dcf(0x1ec)],_0x511789[_0x258dcf(0x244)])?_0x4417c9[_0x258dcf(0x25b)](_0x511789[_0x258dcf(0x217)]):(console['error'](_0x511789[_0x258dcf(0x1f0)]),process[_0x258dcf(0x266)](0x1)));const _0x1cb85f=JSON[_0x258dcf(0x25f)](fs['readFileSync'](_0x511789['RIfTR'](getCredentialsPath))),[_0x4422c1,_0x326aa5]=await _0x511789[_0x258dcf(0x230)](getGridDetails,_0x1cb85f['Browserstack'][_0x258dcf(0x233)],_0x1cb85f[_0x258dcf(0x219)][_0x258dcf(0x25a)],_0x79f885[_0x258dcf(0x26a)]);if(_0x326aa5){const _0x3d55a5=_0x326aa5[_0x258dcf(0x242)];let _0xcce2aa=_0x258dcf(0x1e8)+_0x3d55a5[_0x258dcf(0x21b)]+'\x22\x20and\x20ID\x20'+_0x3d55a5['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';_0x326aa5[_0x258dcf(0x24b)]&&_0x511789['UtGsX'](_0x326aa5[_0x258dcf(0x1ff)],_0x511789[_0x258dcf(0x216)])&&(_0x511789[_0x258dcf(0x234)](_0x511789['dlHJU'],_0x511789[_0x258dcf(0x23a)])?_0xcce2aa=_0x258dcf(0x1e8)+_0x3d55a5['name']+_0x258dcf(0x1f6)+_0x3d55a5['id']+_0x258dcf(0x228)+_0x3d55a5[_0x258dcf(0x224)]+_0x258dcf(0x1e5)+_0x3d55a5[_0x258dcf(0x211)]+_0x258dcf(0x1ee):_0xbaf898[_0x258dcf(0x266)](0x0));const _0x46bd17=await _0x511789[_0x258dcf(0x232)](inputConfirmation,_0xcce2aa);(_0x511789[_0x258dcf(0x23d)](_0x46bd17,undefined)||_0x511789['aMHbz'](_0x46bd17,null)||!(_0x511789['lkUYV'](_0x46bd17[_0x258dcf(0x225)](),'y')||_0x511789[_0x258dcf(0x20c)](_0x46bd17[_0x258dcf(0x225)](),'n')))&&(_0x511789[_0x258dcf(0x1df)](_0x511789[_0x258dcf(0x1fa)],_0x511789[_0x258dcf(0x265)])?(_0x2aa60b[_0x258dcf(0x25b)](_0x258dcf(0x23b)+_0x32b0bd+_0x258dcf(0x22f)),_0x21a782=![]):(console[_0x258dcf(0x1e0)](_0x511789['BABAr']),await _0x511789[_0x258dcf(0x248)](sendInstrumentationEvent,_0x79f885,_0x511789[_0x258dcf(0x235)],messageTypes[_0x258dcf(0x1f2)],_0x511789['fjmWd'],null,_0x79f885),process[_0x258dcf(0x266)](0x1)));if(_0x511789[_0x258dcf(0x238)](_0x46bd17['toLowerCase'](),'n')){if(_0x511789[_0x258dcf(0x260)](_0x511789[_0x258dcf(0x20e)],_0x511789[_0x258dcf(0x20e)]))process[_0x258dcf(0x266)](0x0);else{const _0x46c160={};_0x46c160['description']=_0x511789['MaSDW'],_0x46c160[_0x258dcf(0x256)]=_0x511789[_0x258dcf(0x262)];const _0x4a29e9={};_0x4a29e9['description']=_0x511789['fldgE'],_0x4a29e9['type']=_0x511789[_0x258dcf(0x250)],_0x4a29e9[_0x258dcf(0x245)]=![];const _0x38a9e2={};return _0x38a9e2[_0x258dcf(0x26e)]=_0x46c160,_0x38a9e2['skip-tls-cert-verify']=_0x4a29e9,_0x1d72ae[_0x258dcf(0x25d)](_0x113a60[_0x258dcf(0x1dd)])['epilogue'](_0x5032db)[_0x258dcf(0x1fb)](_0x38a9e2)['help'](_0x511789['ttRrA'])[_0x258dcf(0x203)];}}const _0x5214e9=WS_ENDPOINT['replace'](_0x511789[_0x258dcf(0x1f3)],_0x1cb85f['Browserstack'][_0x258dcf(0x233)])[_0x258dcf(0x212)](_0x511789[_0x258dcf(0x201)],_0x1cb85f[_0x258dcf(0x219)]['password']),_0x5937b8={};_0x5937b8[_0x258dcf(0x236)]=ws,_0x5937b8['connectionTimeout']=0x36ee80;const _0x155467=new ReconnectingWebSocket(_0x5214e9,[],_0x5937b8);global_registry[_0x258dcf(0x255)]=_0x3d55a5[_0x258dcf(0x21a)];const _0x1cb777=_0x3d55a5[_0x258dcf(0x206)],_0x1e358d=await _0x511789[_0x258dcf(0x248)](getCloudProviderObject,_0x1cb777,_0x3d55a5[_0x258dcf(0x224)],_0x3d55a5['name'],_0x155467,webSocketUtils,_0x79f885),_0x15e52d=await _0x1e358d[_0x258dcf(0x1e2)]();if(_0x15e52d){const _0x580c69=_0x511789['HgMgJ'](kebabCase,_0x3d55a5[_0x258dcf(0x21b)]),[_0x2fb445,_0x85e855,_0x4d5b9f,_0x5d0cef,_0x2ee7ae,_0x2583bd]=await _0x511789[_0x258dcf(0x213)](createK8sClient,_0x1e358d,_0x79f885[_0x258dcf(0x20f)]);let _0x461a4b=!![];const _0x39805c={};_0x39805c[_0x258dcf(0x21b)]=_0x580c69,await _0x2fb445[_0x258dcf(0x1ea)](_0x39805c)[_0x258dcf(0x1fd)](_0x4a29c6=>{const _0x340f35=_0x258dcf;_0x511789[_0x340f35(0x1f5)](_0x511789[_0x340f35(0x20a)],_0x511789[_0x340f35(0x1d7)])?logger['info'](_0x340f35(0x23b)+_0x580c69+_0x340f35(0x25e)):_0x1559b8='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x11e535[_0x340f35(0x21b)]+_0x340f35(0x1f6)+_0x2b4fcd['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x110e6a['clusterName']+_0x340f35(0x1e5)+_0x5469bb['clusterId']+_0x340f35(0x1ee);})[_0x258dcf(0x1f7)](_0x432b4e=>{const _0x2b4cf7=_0x258dcf;_0x511789['floIj'](_0x511789['EQXJt'],_0x511789[_0x2b4cf7(0x259)])?(logger['warn'](_0x2b4cf7(0x23b)+_0x580c69+_0x2b4cf7(0x22f)),_0x461a4b=![]):_0x44fbf5[_0x2b4cf7(0x242)](_0x2b4cf7(0x23b)+_0x43a53f+_0x2b4cf7(0x25e));});if(_0x461a4b){await _0x511789[_0x258dcf(0x247)](removeGridComponents,_0x2fb445,_0x85e855,_0x4d5b9f,_0x5d0cef,_0x580c69);if(_0x326aa5[_0x258dcf(0x24b)]){const _0x247f89=await _0x1e358d[_0x258dcf(0x1ef)]();_0x247f89?_0x511789['ysAWq'](_0x511789[_0x258dcf(0x1e1)],_0x511789[_0x258dcf(0x215)])?await _0x1e358d[_0x258dcf(0x1e4)](_0x2fb445,_0x3d55a5[_0x258dcf(0x21a)]):_0x1ed965['warn'](_0x258dcf(0x20b)+_0x96a3d7[_0x258dcf(0x224)]+_0x258dcf(0x271)):_0x511789[_0x258dcf(0x1d5)](_0x511789[_0x258dcf(0x1fe)],_0x511789[_0x258dcf(0x1fe)])?(_0x338f12[_0x258dcf(0x242)](_0x511789[_0x258dcf(0x22e)]),_0x55b7db['exit'](0x0)):logger[_0x258dcf(0x25b)](_0x258dcf(0x20b)+_0x3d55a5[_0x258dcf(0x224)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger[_0x258dcf(0x25b)](_0x511789[_0x258dcf(0x217)]);const _0x320fec=_0x258dcf(0x220)+AG_API_URL+'/packages/cli/grid/'+_0x79f885[_0x258dcf(0x26a)],_0x171b78={'method':_0x511789[_0x258dcf(0x1eb)],'headers':_0x511789[_0x258dcf(0x213)](getAuthHeader,_0x1cb85f[_0x258dcf(0x219)][_0x258dcf(0x233)],_0x1cb85f[_0x258dcf(0x219)][_0x258dcf(0x25a)]),'throwHttpErrors':![]},_0x5c9fef=await _0x511789['qqWXX'](got,_0x320fec,_0x171b78);_0x511789['grDaa'](_0x5c9fef,null)&&_0x511789[_0x258dcf(0x1da)](_0x5c9fef,undefined)&&_0x511789[_0x258dcf(0x1df)](_0x5c9fef[_0x258dcf(0x253)],0xc8)&&(logger[_0x258dcf(0x242)](_0x511789['aosvm']),process[_0x258dcf(0x266)](0x0)),logger['error'](_0x258dcf(0x222)+_0x5c9fef[_0x258dcf(0x258)]),await _0x511789['kHsAj'](sendInstrumentationEvent,_0x79f885,_0x511789['DJRJR'],messageTypes[_0x258dcf(0x1f2)],_0x511789[_0x258dcf(0x22c)],_0x4422c1,_0x79f885),process['exit'](0x1);}_0x511789['iSNJt'](_0x4422c1['statusCode'],0x191)&&(logger[_0x258dcf(0x1e0)](_0x511789[_0x258dcf(0x21d)]),await _0x511789[_0x258dcf(0x1ed)](sendInstrumentationEvent,_0x79f885,_0x511789[_0x258dcf(0x235)],messageTypes['ERROR'],_0x511789['vjxvQ'],null,_0x79f885),process['exit'](0x1)),_0x511789[_0x258dcf(0x24f)](_0x4422c1[_0x258dcf(0x253)],0x190)&&(logger[_0x258dcf(0x1e0)](JSON[_0x258dcf(0x25f)](_0x4422c1[_0x258dcf(0x258)])[_0x258dcf(0x239)]),await _0x511789['OBJdR'](sendInstrumentationEvent,_0x79f885,_0x511789[_0x258dcf(0x235)],messageTypes[_0x258dcf(0x1f2)],_0x511789[_0x258dcf(0x210)],null,_0x79f885),process[_0x258dcf(0x266)](0x1)),logger[_0x258dcf(0x1e0)](_0x258dcf(0x23e)+JSON[_0x258dcf(0x227)](_0x4422c1)),await _0x511789[_0x258dcf(0x21c)](sendInstrumentationEvent,_0x79f885,_0x511789[_0x258dcf(0x235)],messageTypes[_0x258dcf(0x1f2)],_0x511789['pCNpY'],_0x4422c1,_0x79f885),process[_0x258dcf(0x266)](0x1);}catch(_0x53e4e5){logger[_0x258dcf(0x1e0)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x53e4e5[_0x258dcf(0x1f8)]),await _0x511789[_0x258dcf(0x21c)](sendInstrumentationEvent,_0x79f885,_0x511789[_0x258dcf(0x235)],messageTypes[_0x258dcf(0x1f2)],_0x511789[_0x258dcf(0x261)],_0x53e4e5,_0x79f885),process[_0x258dcf(0x266)](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a12_0x13d2(_0x88ce62,_0xd9a308){const _0x1dfdb0=a12_0x1dfd();return a12_0x13d2=function(_0x13d208,_0x31eed2){_0x13d208=_0x13d208-0xe4;let _0x28161e=_0x1dfdb0[_0x13d208];return _0x28161e;},a12_0x13d2(_0x88ce62,_0xd9a308);}const a12_0x482149=a12_0x13d2;(function(_0x55a7b1,_0x236167){const _0x1a556e=a12_0x13d2,_0x46c31a=_0x55a7b1();while(!![]){try{const _0x31802f=-parseInt(_0x1a556e(0xfa))/0x1*(-parseInt(_0x1a556e(0x14c))/0x2)+-parseInt(_0x1a556e(0x12b))/0x3+parseInt(_0x1a556e(0x121))/0x4+parseInt(_0x1a556e(0x11e))/0x5+-parseInt(_0x1a556e(0xf2))/0x6*(-parseInt(_0x1a556e(0x10c))/0x7)+parseInt(_0x1a556e(0xe5))/0x8+-parseInt(_0x1a556e(0xee))/0x9;if(_0x31802f===_0x236167)break;else _0x46c31a['push'](_0x46c31a['shift']());}catch(_0x468a75){_0x46c31a['push'](_0x46c31a['shift']());}}}(a12_0x1dfd,0xcec54));function a12_0x1dfd(){const _0x258cff=['GROSS','../utils/userInput','GET','QObHi','vIpFN','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','bAliJ','CwgRt','21mIIuJt','rBtsV','bstackAccesskey','yRFzp','Browserstack','init','bstackUsername','lVoEl','AMKKg','requestId','kceaZ','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','argv','MhANN','MQlYk','auLAC','string','kHdxp','5243520yESgKu','PWSzj','HLBnL','5887872STYieX','fHTNm','VyNOU','util','epilogue','../config/logger','utf-8','xAqDk','BROWSERSTACK_USERNAME','Yjgos','4354560fvlkZx','Mmezz','env','readFileSync','debug','VGJIK','Majqf','YmEVL','description','error','recommendCommands','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','yXujv','../config/constants','zuofu','PLJoD','strict','YoYSF','mDaYH','type','password','mlKBs','help','/automate/plan.json','OFCfd','tMxLG','desc','mkdirSync','vvhPu','bstack-accesskey','NyMGt','stringify','tQZJo','524466HnxUlf','edYRz','zXLTb','unknown-error','1618008gCKkVB','builder','existsSync','OAwuO','exit','options','HnsMU','dlQVW','iWufw','11701593tFCCih','got','BROWSERSTACK_ACCESS_KEY','handler','178014XklTKb','zknkt','dVgdj','username','ERROR','rWKBa','https://','command','3wpDlqH','LTtgH','wrong-creds','Gkwlz','usage','../utils/instrumentationUtils','parse','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstack-username','CHrdx'];a12_0x1dfd=function(){return _0x258cff;};return a12_0x1dfd();}const fs=require('fs'),util=require(a12_0x482149(0x124)),got=require(a12_0x482149(0xef)),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x482149(0x126)),{inputBstackKeys}=require(a12_0x482149(0x105)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x482149(0x138)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a12_0x482149(0xff));exports[a12_0x482149(0xf9)]='init',exports[a12_0x482149(0x145)]=a12_0x482149(0x136),exports[a12_0x482149(0xe6)]=function(_0x1b5d9f){const _0x12649b=a12_0x482149,_0x524469={};_0x524469['AMKKg']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x524469['Mmezz']=_0x12649b(0x11c),_0x524469[_0x12649b(0x143)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x524469[_0x12649b(0x149)]=_0x12649b(0x141);const _0x3e454d=_0x524469,_0x370972={};_0x370972['description']=_0x3e454d[_0x12649b(0x114)],_0x370972[_0x12649b(0x13e)]=_0x3e454d[_0x12649b(0x12c)];const _0x18debe={};_0x18debe[_0x12649b(0x133)]=_0x3e454d[_0x12649b(0x143)],_0x18debe['type']=_0x3e454d['Mmezz'];const _0xfa7736={};return _0xfa7736[_0x12649b(0x102)]=_0x370972,_0xfa7736[_0x12649b(0x148)]=_0x18debe,_0x1b5d9f[_0x12649b(0xfe)](HELP_HEADER_MESSAGE[_0x12649b(0x111)])[_0x12649b(0x125)](HELP_FOOTER_MESSAGE)[_0x12649b(0xea)](_0xfa7736)[_0x12649b(0x135)]()['strict']()[_0x12649b(0x141)](_0x3e454d[_0x12649b(0x149)])[_0x12649b(0x118)];},exports[a12_0x482149(0xf1)]=async function(_0x2258da){const _0x40fa15=a12_0x482149,_0xc540f3={'NPkZy':_0x40fa15(0x117),'edYRz':_0x40fa15(0x11c),'dlQVW':_0x40fa15(0x101),'VyNOU':_0x40fa15(0x141),'PLJoD':_0x40fa15(0x127),'lVoEl':function(_0x3c5ca0){return _0x3c5ca0();},'LexlC':function(_0x151cfa){return _0x151cfa();},'MQlYk':function(_0x25303c,_0x1c28c3,_0x13dc1c,_0x3c9222,_0x507edd,_0x16ec7f,_0xd6d44c){return _0x25303c(_0x1c28c3,_0x13dc1c,_0x3c9222,_0x507edd,_0x16ec7f,_0xd6d44c);},'Gkwlz':'init-called','PWSzj':function(_0x4b39b5,_0xcad2f8){return _0x4b39b5!==_0xcad2f8;},'kHdxp':_0x40fa15(0x10f),'CHrdx':_0x40fa15(0xf7),'tMxLG':function(_0x49ce14,_0x457a19){return _0x49ce14===_0x457a19;},'fHTNm':_0x40fa15(0x108),'kceaZ':_0x40fa15(0x140),'MhANN':function(_0xba03bd,_0x10bc86){return _0xba03bd===_0x10bc86;},'wskBF':'ceSLa','Majqf':_0x40fa15(0x139),'rBtsV':_0x40fa15(0xf3),'Yjgos':function(_0x42c340,_0x4b57f9){return _0x42c340===_0x4b57f9;},'OAwuO':function(_0x56e0da,_0x2c2c81){return _0x56e0da===_0x2c2c81;},'YmEVL':_0x40fa15(0x13c),'auLAC':'hsMSM','yXujv':_0x40fa15(0x109),'dNlvR':_0x40fa15(0x106),'GROSS':function(_0x199b72,_0x2a7cd7,_0x7b724d){return _0x199b72(_0x2a7cd7,_0x7b724d);},'LTtgH':function(_0x3288dd,_0x2a372b,_0x62d845){return _0x3288dd(_0x2a372b,_0x62d845);},'xAqDk':function(_0x2a6a65,_0x2f769d){return _0x2a6a65!==_0x2f769d;},'bAliJ':_0x40fa15(0x130),'HLBnL':_0x40fa15(0x13d),'iWufw':_0x40fa15(0xeb),'CwgRt':function(_0x22ebc4){return _0x22ebc4();},'QObHi':_0x40fa15(0x14b),'dVgdj':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','zXLTb':function(_0x3494fa,_0x4d2f2b,_0x7d61d9,_0x57ad9,_0x22c830,_0x217251,_0x56a6ae){return _0x3494fa(_0x4d2f2b,_0x7d61d9,_0x57ad9,_0x22c830,_0x217251,_0x56a6ae);},'dCehY':_0x40fa15(0xfc),'vvhPu':function(_0x20723e,_0x387e1c,_0x5cfb56,_0x97bdcc,_0x42b397,_0x140193,_0x504856){return _0x20723e(_0x387e1c,_0x5cfb56,_0x97bdcc,_0x42b397,_0x140193,_0x504856);},'azXmu':_0x40fa15(0xe4)};try{global_registry[_0x40fa15(0x115)]=_0xc540f3['LexlC'](uuidv4),_0xc540f3[_0x40fa15(0x11a)](sendInstrumentationEvent,_0x2258da,_0xc540f3[_0x40fa15(0xfd)],messageTypes['INFO'],null,null,_0x2258da);const _0x4b19a6=_0xc540f3[_0x40fa15(0x113)](getDirForConfig);if(!fs[_0x40fa15(0xe7)](_0x4b19a6)){if(_0xc540f3[_0x40fa15(0x11f)](_0xc540f3[_0x40fa15(0x11d)],_0xc540f3[_0x40fa15(0x11d)])){const _0x5f2bf5={};_0x5f2bf5[_0x40fa15(0x133)]=_0xc540f3['NPkZy'],_0x5f2bf5[_0x40fa15(0x13e)]=_0xc540f3['edYRz'];const _0x1f05a0={};_0x1f05a0[_0x40fa15(0x133)]=_0xc540f3[_0x40fa15(0xec)],_0x1f05a0[_0x40fa15(0x13e)]=_0xc540f3[_0x40fa15(0x14d)];const _0x557474={};return _0x557474[_0x40fa15(0x102)]=_0x5f2bf5,_0x557474['bstack-accesskey']=_0x1f05a0,_0x3242c0['usage'](_0x56ee15[_0x40fa15(0x111)])[_0x40fa15(0x125)](_0x395407)[_0x40fa15(0xea)](_0x557474)['recommendCommands']()[_0x40fa15(0x13b)]()[_0x40fa15(0x141)](_0xc540f3[_0x40fa15(0x123)])[_0x40fa15(0x118)];}else fs[_0x40fa15(0x146)](_0x4b19a6);}let _0x15fbf8,_0x1fd3ae;process[_0x40fa15(0x12d)][_0x40fa15(0x129)]&&(_0xc540f3['PWSzj'](_0xc540f3[_0x40fa15(0x103)],_0xc540f3[_0x40fa15(0x103)])?_0x5402f8=_0x4f0c2e[_0x40fa15(0x100)](_0x28307d[_0x40fa15(0x12e)](_0x1da6cf,_0xc540f3[_0x40fa15(0x13a)])):_0x15fbf8=process[_0x40fa15(0x12d)]['BROWSERSTACK_USERNAME']);process[_0x40fa15(0x12d)]['BROWSERSTACK_ACCESS_KEY']&&(_0xc540f3['tMxLG'](_0xc540f3[_0x40fa15(0x122)],_0xc540f3[_0x40fa15(0x116)])?_0x34e41c[_0x40fa15(0x146)](_0x5c334e):_0x1fd3ae=process['env'][_0x40fa15(0xf0)]);_0x2258da[_0x40fa15(0x112)]&&(_0xc540f3['MhANN'](_0xc540f3['wskBF'],_0xc540f3['wskBF'])?_0x15fbf8=_0x2258da[_0x40fa15(0x112)]:_0x357cfc=_0x57938f[_0x40fa15(0x112)]);_0x2258da[_0x40fa15(0x10e)]&&(_0xc540f3[_0x40fa15(0x11f)](_0xc540f3[_0x40fa15(0x131)],_0xc540f3[_0x40fa15(0x10d)])?_0x1fd3ae=_0x2258da[_0x40fa15(0x10e)]:_0x3f9b25=_0x329029[_0x40fa15(0x12d)][_0x40fa15(0xf0)]);if(_0xc540f3[_0x40fa15(0x119)](_0x15fbf8,undefined)||_0xc540f3[_0x40fa15(0x12a)](_0x1fd3ae,undefined)){if(_0xc540f3[_0x40fa15(0xe8)](_0xc540f3[_0x40fa15(0x132)],_0xc540f3[_0x40fa15(0x11b)]))_0x496993=!![];else{logger[_0x40fa15(0x12f)](_0xc540f3[_0x40fa15(0x137)]);const [_0x4f3806,_0xee9b3]=await _0xc540f3[_0x40fa15(0x113)](inputBstackKeys);_0x15fbf8=_0x4f3806,_0x1fd3ae=_0xee9b3;}}let _0x3a1bff=![];const _0x2a4bc7=_0x40fa15(0xf8)+_0x15fbf8+':'+_0x1fd3ae+'@'+BS_API_URL+_0x40fa15(0x142),_0x3b29fc={'method':_0xc540f3['dNlvR'],'headers':_0xc540f3[_0x40fa15(0x104)](getAuthHeader,_0x15fbf8,_0x1fd3ae),'throwHttpErrors':![]},_0x2065e3=await _0xc540f3[_0x40fa15(0xfb)](got,_0x2a4bc7,_0x3b29fc);_0xc540f3[_0x40fa15(0x128)](_0x2065e3,null)&&_0xc540f3[_0x40fa15(0x11f)](_0x2065e3,undefined)&&_0xc540f3['tMxLG'](_0x2065e3['statusCode'],0xc8)&&(_0xc540f3['tMxLG'](_0xc540f3['bAliJ'],_0xc540f3[_0x40fa15(0x10a)])?_0x3a1bff=!![]:_0x43b14b=_0x396cc8[_0x40fa15(0x12d)][_0x40fa15(0x129)]);if(_0x3a1bff){if(_0xc540f3[_0x40fa15(0x144)](_0xc540f3[_0x40fa15(0x120)],_0xc540f3[_0x40fa15(0xed)])){let _0x2e3fac={};const _0x46c2f7=_0xc540f3[_0x40fa15(0x113)](_0x548bdb);_0x430c89[_0x40fa15(0xe7)](_0x46c2f7)&&(_0x2e3fac=_0x2d083a[_0x40fa15(0x100)](_0x1f9ec2[_0x40fa15(0x12e)](_0x46c2f7,_0xc540f3[_0x40fa15(0x13a)])));const _0x38bb86={};_0x38bb86[_0x40fa15(0xf5)]=_0x26adb4,_0x38bb86[_0x40fa15(0x13f)]=_0xbaecfe,_0x2e3fac[_0x40fa15(0x110)]=_0x38bb86,_0x3b02a8['writeFileSync'](_0x46c2f7,_0x1b31e4[_0x40fa15(0x14a)](_0x2e3fac)),_0x44b296[_0x40fa15(0xe9)](0x0);}else{let _0x1938e3={};const _0x271dab=_0xc540f3[_0x40fa15(0x10b)](getCredentialsPath);fs[_0x40fa15(0xe7)](_0x271dab)&&(_0xc540f3[_0x40fa15(0x11f)](_0xc540f3[_0x40fa15(0x107)],_0xc540f3[_0x40fa15(0x107)])?_0x1f00c3=_0xedf449[_0x40fa15(0x10e)]:_0x1938e3=JSON[_0x40fa15(0x100)](fs['readFileSync'](_0x271dab,_0xc540f3['PLJoD'])));const _0x5a2091={};_0x5a2091[_0x40fa15(0xf5)]=_0x15fbf8,_0x5a2091['password']=_0x1fd3ae,_0x1938e3[_0x40fa15(0x110)]=_0x5a2091,fs['writeFileSync'](_0x271dab,JSON[_0x40fa15(0x14a)](_0x1938e3)),process[_0x40fa15(0xe9)](0x0);}}else logger[_0x40fa15(0x134)](_0xc540f3[_0x40fa15(0xf4)]),await _0xc540f3[_0x40fa15(0x14e)](sendInstrumentationEvent,_0x2258da,_0xc540f3[_0x40fa15(0xfd)],messageTypes[_0x40fa15(0xf6)],_0xc540f3['dCehY'],null,_0x2258da),process['exit'](0x1);}catch(_0x13ff13){logger[_0x40fa15(0x134)](_0x13ff13['stack']),await _0xc540f3[_0x40fa15(0x147)](sendInstrumentationEvent,_0x2258da,_0xc540f3[_0x40fa15(0xfd)],messageTypes[_0x40fa15(0xf6)],_0xc540f3['azXmu'],_0x13ff13,_0x2258da),process[_0x40fa15(0xe9)](0x1);}};
|
|
1
|
+
function a12_0x5f00(){const _0x466373=['2986770nvrJJT','ERxGb','GET','zdrJo','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','builder','command','61733RgmMCi','vfhEj','IAOqH','usage','nKcvV','ZbQwe','aGAJH','strict','uuid','UPzXY','description','PndhQ','12NFhoZS','wrong-creds','type','parse','oPSyP','utf-8','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','argv','string','debug','ERROR','vKfPj','stack','BROWSERSTACK_ACCESS_KEY','password','mkdirSync','xZoih','XmPBy','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','jeJtu','options','bstack-username','hgMij','/automate/plan.json','PmErt','YUCXI','KZqHh','1695827ueaJUB','6SGlQsV','rPmpJ','username','BROWSERSTACK_USERNAME','requestId','util','epilogue','recommendCommands','jcIIW','help','8rYopdd','TrzBT','fGTQt','statusCode','guUKt','eMvVT','exit','readFileSync','Ysddu','BSndK','1233000SYAAuB','rJipf','bstackAccesskey','2268015dYtiQq','GSFGr','zfxcY','seQCZ','bstack-accesskey','klNrx','vGrdh','writeFileSync','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','hwyYF','init','stringify','../utils/userInput','33847shkAVC','pAIQf','AqRZk','Browserstack','bstackUsername','6080wKSviv','error','MRSeK','unknown-error','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','env','5794515eyeqrE','VESlg','ietzq','existsSync','ubBnD'];a12_0x5f00=function(){return _0x466373;};return a12_0x5f00();}const a12_0x1bac50=a12_0x5bdd;(function(_0x220df9,_0x32a42e){const _0x28cb22=a12_0x5bdd,_0x5bd164=_0x220df9();while(!![]){try{const _0x338aa2=parseInt(_0x28cb22(0x1de))/0x1*(parseInt(_0x28cb22(0x1ea))/0x2)+parseInt(_0x28cb22(0x1ba))/0x3+-parseInt(_0x28cb22(0x1b7))/0x4+parseInt(_0x28cb22(0x1d7))/0x5+-parseInt(_0x28cb22(0x1a3))/0x6*(-parseInt(_0x28cb22(0x1a2))/0x7)+-parseInt(_0x28cb22(0x1ad))/0x8*(-parseInt(_0x28cb22(0x1d2))/0x9)+-parseInt(_0x28cb22(0x1cc))/0xa*(parseInt(_0x28cb22(0x1c7))/0xb);if(_0x338aa2===_0x32a42e)break;else _0x5bd164['push'](_0x5bd164['shift']());}catch(_0x8a848c){_0x5bd164['push'](_0x5bd164['shift']());}}}(a12_0x5f00,0x692c3));const fs=require('fs'),util=require(a12_0x1bac50(0x1a8)),got=require('got'),{v4:uuidv4}=require(a12_0x1bac50(0x1e6)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x1bac50(0x1c6)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');function a12_0x5bdd(_0x426b0e,_0x5955d9){const _0x5f0079=a12_0x5f00();return a12_0x5bdd=function(_0x5bddc3,_0xe93443){_0x5bddc3=_0x5bddc3-0x19d;let _0x60257d=_0x5f0079[_0x5bddc3];return _0x60257d;},a12_0x5bdd(_0x426b0e,_0x5955d9);}exports[a12_0x1bac50(0x1dd)]='init',exports['desc']=a12_0x1bac50(0x1d0),exports[a12_0x1bac50(0x1dc)]=function(_0x3ccec8){const _0x9bbafd=a12_0x1bac50,_0x4e0689={};_0x4e0689['vKfPj']=_0x9bbafd(0x1db),_0x4e0689[_0x9bbafd(0x1d3)]='string',_0x4e0689['ubBnD']=_0x9bbafd(0x1c2),_0x4e0689['IAOqH']=_0x9bbafd(0x1ac);const _0x1fa9b7=_0x4e0689,_0x2c2f7e={};_0x2c2f7e[_0x9bbafd(0x1e8)]=_0x1fa9b7[_0x9bbafd(0x1f5)],_0x2c2f7e[_0x9bbafd(0x1ec)]=_0x1fa9b7[_0x9bbafd(0x1d3)];const _0x21b749={};_0x21b749[_0x9bbafd(0x1e8)]=_0x1fa9b7[_0x9bbafd(0x1d6)],_0x21b749[_0x9bbafd(0x1ec)]=_0x1fa9b7[_0x9bbafd(0x1d3)];const _0xae63f9={};return _0xae63f9[_0x9bbafd(0x1ff)]=_0x2c2f7e,_0xae63f9[_0x9bbafd(0x1be)]=_0x21b749,_0x3ccec8[_0x9bbafd(0x1e1)](HELP_HEADER_MESSAGE[_0x9bbafd(0x1c4)])[_0x9bbafd(0x1a9)](HELP_FOOTER_MESSAGE)[_0x9bbafd(0x1fe)](_0xae63f9)[_0x9bbafd(0x1aa)]()[_0x9bbafd(0x1e5)]()['help'](_0x1fa9b7[_0x9bbafd(0x1e0)])[_0x9bbafd(0x1f1)];},exports['handler']=async function(_0x2448a8){const _0x5b6b6a=a12_0x1bac50,_0x15a61a={'SWbWV':_0x5b6b6a(0x1db),'jcIIW':_0x5b6b6a(0x1f2),'oPSyP':_0x5b6b6a(0x1c2),'BuwDR':'help','BSndK':_0x5b6b6a(0x1ef),'xZoih':function(_0x15008c){return _0x15008c();},'ZbQwe':function(_0x12d364,_0x503352,_0x5e6b9d,_0x23cdc3,_0x58142d,_0x2018c5,_0x3e3c41){return _0x12d364(_0x503352,_0x5e6b9d,_0x23cdc3,_0x58142d,_0x2018c5,_0x3e3c41);},'hwyYF':'init-called','fGTQt':function(_0x5d6342){return _0x5d6342();},'GSFGr':function(_0x16c604,_0x38658){return _0x16c604!==_0x38658;},'klNrx':'zObBH','WCkTV':'tCPCY','MRSeK':_0x5b6b6a(0x1da),'PmErt':function(_0x28c169,_0x393044){return _0x28c169===_0x393044;},'ietzq':_0x5b6b6a(0x1b1),'aGAJH':_0x5b6b6a(0x1b2),'zfxcY':_0x5b6b6a(0x1a1),'YUCXI':'xEqPd','seQCZ':function(_0x3235e6,_0x2559f7){return _0x3235e6!==_0x2559f7;},'vGrdh':'yeLKB','pitib':_0x5b6b6a(0x1fc),'PndhQ':_0x5b6b6a(0x1d9),'pAIQf':function(_0x14f9d1,_0x37da56,_0x251a4a){return _0x14f9d1(_0x37da56,_0x251a4a);},'UPzXY':function(_0x1fcdce,_0xbea318,_0x3f545e){return _0x1fcdce(_0xbea318,_0x3f545e);},'bKlZa':function(_0x471c9e,_0x1af75c){return _0x471c9e!==_0x1af75c;},'afmpJ':function(_0x5bf0c6,_0x476d92){return _0x5bf0c6!==_0x476d92;},'hgMij':_0x5b6b6a(0x1df),'ERxGb':_0x5b6b6a(0x1e2),'Ysddu':_0x5b6b6a(0x1fd),'rPmpJ':_0x5b6b6a(0x1c9),'rJipf':'ulkRH','GvqDX':_0x5b6b6a(0x1f0),'XmPBy':_0x5b6b6a(0x1eb),'bKIsn':function(_0x17377f,_0x1d6bdb,_0x146f76,_0xe74135,_0x2086ba,_0x5a2ab9,_0x47aa32){return _0x17377f(_0x1d6bdb,_0x146f76,_0xe74135,_0x2086ba,_0x5a2ab9,_0x47aa32);},'TrzBT':_0x5b6b6a(0x1cf)};try{global_registry[_0x5b6b6a(0x1a7)]=_0x15a61a[_0x5b6b6a(0x1fa)](uuidv4),_0x15a61a[_0x5b6b6a(0x1e3)](sendInstrumentationEvent,_0x2448a8,_0x15a61a['hwyYF'],messageTypes['INFO'],null,null,_0x2448a8);const _0x50a9fd=_0x15a61a[_0x5b6b6a(0x1af)](getDirForConfig);!fs['existsSync'](_0x50a9fd)&&(_0x15a61a[_0x5b6b6a(0x1bb)](_0x15a61a[_0x5b6b6a(0x1bf)],_0x15a61a['WCkTV'])?fs[_0x5b6b6a(0x1f9)](_0x50a9fd):_0x331dc6[_0x5b6b6a(0x1f9)](_0xa53dcb));let _0x19aef0,_0x5444d1;if(process['env'][_0x5b6b6a(0x1a6)]){if(_0x15a61a[_0x5b6b6a(0x1bb)](_0x15a61a[_0x5b6b6a(0x1ce)],_0x15a61a['MRSeK'])){const _0x4c3497={};_0x4c3497[_0x5b6b6a(0x1e8)]=_0x15a61a['SWbWV'],_0x4c3497[_0x5b6b6a(0x1ec)]=_0x15a61a[_0x5b6b6a(0x1ab)];const _0x2a4566={};_0x2a4566[_0x5b6b6a(0x1e8)]=_0x15a61a[_0x5b6b6a(0x1ee)],_0x2a4566[_0x5b6b6a(0x1ec)]=_0x15a61a[_0x5b6b6a(0x1ab)];const _0x24affa={};return _0x24affa[_0x5b6b6a(0x1ff)]=_0x4c3497,_0x24affa['bstack-accesskey']=_0x2a4566,_0x442ae4[_0x5b6b6a(0x1e1)](_0x5353b3['init'])[_0x5b6b6a(0x1a9)](_0x355057)[_0x5b6b6a(0x1fe)](_0x24affa)[_0x5b6b6a(0x1aa)]()[_0x5b6b6a(0x1e5)]()['help'](_0x15a61a['BuwDR'])['argv'];}else _0x19aef0=process[_0x5b6b6a(0x1d1)][_0x5b6b6a(0x1a6)];}process[_0x5b6b6a(0x1d1)][_0x5b6b6a(0x1f7)]&&(_0x15a61a[_0x5b6b6a(0x19f)](_0x15a61a[_0x5b6b6a(0x1d4)],_0x15a61a['ietzq'])?_0x5444d1=process['env']['BROWSERSTACK_ACCESS_KEY']:_0x54d44d=_0x1d7901[_0x5b6b6a(0x1cb)]);_0x2448a8['bstackUsername']&&(_0x15a61a[_0x5b6b6a(0x19f)](_0x15a61a[_0x5b6b6a(0x1e4)],_0x15a61a['aGAJH'])?_0x19aef0=_0x2448a8['bstackUsername']:_0x406df0=_0x11abd1[_0x5b6b6a(0x1ed)](_0x1604ee['readFileSync'](_0xd8053a,_0x15a61a[_0x5b6b6a(0x1b6)])));if(_0x2448a8['bstackAccesskey']){if(_0x15a61a[_0x5b6b6a(0x19f)](_0x15a61a[_0x5b6b6a(0x1bc)],_0x15a61a[_0x5b6b6a(0x1a0)])){let _0x3b6a18={};const _0x2b0036=_0x15a61a[_0x5b6b6a(0x1fa)](_0x3f8edb);_0x1163e2['existsSync'](_0x2b0036)&&(_0x3b6a18=_0x26eb5c[_0x5b6b6a(0x1ed)](_0x3b8e3f[_0x5b6b6a(0x1b4)](_0x2b0036,_0x15a61a['BSndK'])));const _0x469f31={};_0x469f31[_0x5b6b6a(0x1a5)]=_0x1d223c,_0x469f31[_0x5b6b6a(0x1f8)]=_0x1b4214,_0x3b6a18[_0x5b6b6a(0x1ca)]=_0x469f31,_0xb0ac8c[_0x5b6b6a(0x1c1)](_0x2b0036,_0x566ef1[_0x5b6b6a(0x1c5)](_0x3b6a18)),_0x20bb6d[_0x5b6b6a(0x1b3)](0x0);}else _0x5444d1=_0x2448a8['bstackAccesskey'];}if(_0x15a61a[_0x5b6b6a(0x19f)](_0x19aef0,undefined)||_0x15a61a[_0x5b6b6a(0x19f)](_0x5444d1,undefined)){if(_0x15a61a[_0x5b6b6a(0x1bd)](_0x15a61a[_0x5b6b6a(0x1c0)],_0x15a61a[_0x5b6b6a(0x1c0)]))_0x3eaa0b=_0x4d8648[_0x5b6b6a(0x1d1)][_0x5b6b6a(0x1f7)];else{logger[_0x5b6b6a(0x1f3)](_0x15a61a['pitib']);const [_0x263cf8,_0x20965e]=await _0x15a61a[_0x5b6b6a(0x1af)](inputBstackKeys);_0x19aef0=_0x263cf8,_0x5444d1=_0x20965e;}}let _0x11d30c=![];const _0x57f8a4='https://'+_0x19aef0+':'+_0x5444d1+'@'+BS_API_URL+_0x5b6b6a(0x19e),_0x36cbf0={'method':_0x15a61a[_0x5b6b6a(0x1e9)],'headers':_0x15a61a[_0x5b6b6a(0x1c8)](getAuthHeader,_0x19aef0,_0x5444d1),'throwHttpErrors':![]},_0x4944e6=await _0x15a61a[_0x5b6b6a(0x1e7)](got,_0x57f8a4,_0x36cbf0);_0x15a61a[_0x5b6b6a(0x1bd)](_0x4944e6,null)&&_0x15a61a['bKlZa'](_0x4944e6,undefined)&&_0x15a61a['PmErt'](_0x4944e6[_0x5b6b6a(0x1b0)],0xc8)&&(_0x15a61a['afmpJ'](_0x15a61a[_0x5b6b6a(0x19d)],_0x15a61a[_0x5b6b6a(0x1d8)])?_0x11d30c=!![]:_0x3d85da=_0x3fe405[_0x5b6b6a(0x1b9)]);if(_0x11d30c){if(_0x15a61a[_0x5b6b6a(0x19f)](_0x15a61a['Ysddu'],_0x15a61a[_0x5b6b6a(0x1b5)])){let _0x5e0e6d={};const _0x4e093c=_0x15a61a[_0x5b6b6a(0x1af)](getCredentialsPath);fs[_0x5b6b6a(0x1d5)](_0x4e093c)&&(_0x15a61a[_0x5b6b6a(0x19f)](_0x15a61a[_0x5b6b6a(0x1a4)],_0x15a61a[_0x5b6b6a(0x1b8)])?_0x946b58=!![]:_0x5e0e6d=JSON['parse'](fs[_0x5b6b6a(0x1b4)](_0x4e093c,_0x15a61a[_0x5b6b6a(0x1b6)])));const _0x398664={};_0x398664['username']=_0x19aef0,_0x398664[_0x5b6b6a(0x1f8)]=_0x5444d1,_0x5e0e6d[_0x5b6b6a(0x1ca)]=_0x398664,fs[_0x5b6b6a(0x1c1)](_0x4e093c,JSON[_0x5b6b6a(0x1c5)](_0x5e0e6d)),process[_0x5b6b6a(0x1b3)](0x0);}else _0x578385=_0x2c610d[_0x5b6b6a(0x1d1)][_0x5b6b6a(0x1a6)];}else logger[_0x5b6b6a(0x1cd)](_0x15a61a['GvqDX']),await _0x15a61a[_0x5b6b6a(0x1e3)](sendInstrumentationEvent,_0x2448a8,_0x15a61a[_0x5b6b6a(0x1c3)],messageTypes['ERROR'],_0x15a61a[_0x5b6b6a(0x1fb)],null,_0x2448a8),process[_0x5b6b6a(0x1b3)](0x1);}catch(_0x2546f3){logger['error'](_0x2546f3[_0x5b6b6a(0x1f6)]),await _0x15a61a['bKIsn'](sendInstrumentationEvent,_0x2448a8,_0x15a61a[_0x5b6b6a(0x1c3)],messageTypes[_0x5b6b6a(0x1f4)],_0x15a61a[_0x5b6b6a(0x1ae)],_0x2546f3,_0x2448a8),process[_0x5b6b6a(0x1b3)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a13_0x1536(_0x1f8c8b,_0x483a17){const _0x1e7e46=a13_0x1e7e();return a13_0x1536=function(_0x1536fe,_0x28db0a){_0x1536fe=_0x1536fe-0x1ec;let _0x500247=_0x1e7e46[_0x1536fe];return _0x500247;},a13_0x1536(_0x1f8c8b,_0x483a17);}const a13_0x59d1f3=a13_0x1536;(function(_0x1408bb,_0x18cefe){const _0x54880c=a13_0x1536,_0x6e2e93=_0x1408bb();while(!![]){try{const _0x2b13f9=-parseInt(_0x54880c(0x1f7))/0x1*(-parseInt(_0x54880c(0x1fb))/0x2)+parseInt(_0x54880c(0x1fe))/0x3+-parseInt(_0x54880c(0x1ee))/0x4+-parseInt(_0x54880c(0x201))/0x5*(parseInt(_0x54880c(0x1f5))/0x6)+parseInt(_0x54880c(0x1ff))/0x7+-parseInt(_0x54880c(0x1f8))/0x8+parseInt(_0x54880c(0x1fc))/0x9;if(_0x2b13f9===_0x18cefe)break;else _0x6e2e93['push'](_0x6e2e93['shift']());}catch(_0x1103e3){_0x6e2e93['push'](_0x6e2e93['shift']());}}}(a13_0x1e7e,0x4cad3));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a13_0x59d1f3(0x1fa)]=a13_0x59d1f3(0x1fd),exports['desc']=a13_0x59d1f3(0x1f4),exports[a13_0x59d1f3(0x1f1)]=function(_0x3a2381){const _0x41f73a=a13_0x59d1f3,_0x173ff7={};_0x173ff7[_0x41f73a(0x1f9)]=_0x41f73a(0x1f3),_0x173ff7[_0x41f73a(0x1f0)]=_0x41f73a(0x1ec);const _0x2642c3=_0x173ff7;return _0x3a2381[_0x41f73a(0x202)](_0x2642c3[_0x41f73a(0x1f9)])[_0x41f73a(0x200)]()['usage'](HELP_HEADER_MESSAGE[_0x41f73a(0x1fd)]['root'])[_0x41f73a(0x1f6)](HELP_FOOTER_MESSAGE)[_0x41f73a(0x1ed)]()[_0x41f73a(0x1f2)]()[_0x41f73a(0x1ec)](_0x2642c3[_0x41f73a(0x1f0)]);},exports[a13_0x59d1f3(0x1ef)]=function(_0x2321e1){};function a13_0x1e7e(){const _0x56b582=['commandDir','help','recommendCommands','801124mGpcBY','handler','kCtnN','builder','strict','list_commands','List\x20down\x20the\x20Grid\x20resources.','322542DfUtpf','epilogue','3sxpNgm','3355936OwIEhd','shYXd','command','167638VNqqTb','622395NbnQgi','list','1843158OWtIRP','2625987VsPOHr','demandCommand','35JHipad'];a13_0x1e7e=function(){return _0x56b582;};return a13_0x1e7e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a14_0x44f516=a14_0x44c3;function a14_0x440c(){const _0x5f3249=['exit','help','4hmbSQi','Failed\x20to\x20list\x20resources!\x20Error:\x20','JaiFG','ffXyT','cloud-provider','description','got','ppImx','username','/packages/cli/get-grid-profiles','1878PuobAQ','oQhSb','WGVuW','1200lEgQBY','ghpHp','2712SlCPOY','JZkkb','desc','bSxYr','log','grid-profile-name','https://','statusCode','ERROR','push','error','IgbqG','Moeft','QAlHZ','type','1012130UYsGXD','list','bstackUsername','concurrency','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','2290HGDtTX','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','qqmNu','12aWbgeh','sWcAy','uuid','region','bstackAccesskey','readFileSync','body','8067994qmQyHF','IIvhT','INFO','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','argv','4186kFrXNT','OvgMK','usage','password','GET','rZouI','grid-profiles','yeYEI','handler','WYVrs','1576lXsipm','/packages/cli/get-all-grid-profiles','yOAFZ','uNGIO','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','xuEVJ','requestId','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','ycZGJ','parse','1554156GbMfwO','Browserstack','list-grid-profiles-called','86937GuVpKm','all-grid-profiles','server-error','IdGvA','command','boolean','epilogue'];a14_0x440c=function(){return _0x5f3249;};return a14_0x440c();}(function(_0x329458,_0x5d28a7){const _0x2ba84c=a14_0x44c3,_0x277f12=_0x329458();while(!![]){try{const _0x2e7742=-parseInt(_0x2ba84c(0x1a7))/0x1*(parseInt(_0x2ba84c(0x1b0))/0x2)+-parseInt(_0x2ba84c(0x1ba))/0x3*(parseInt(_0x2ba84c(0x1ed))/0x4)+parseInt(_0x2ba84c(0x1d3))/0x5*(parseInt(_0x2ba84c(0x1bf))/0x6)+parseInt(_0x2ba84c(0x1e3))/0x7*(-parseInt(_0x2ba84c(0x1bd))/0x8)+-parseInt(_0x2ba84c(0x1f7))/0x9+-parseInt(_0x2ba84c(0x1ce))/0xa+parseInt(_0x2ba84c(0x1de))/0xb*(parseInt(_0x2ba84c(0x1d7))/0xc);if(_0x2e7742===_0x5d28a7)break;else _0x277f12['push'](_0x277f12['shift']());}catch(_0x235d87){_0x277f12['push'](_0x277f12['shift']());}}}(a14_0x440c,0x262c3));function a14_0x44c3(_0x230a0f,_0x2c6ad3){const _0x440cbf=a14_0x440c();return a14_0x44c3=function(_0x44c324,_0x59192){_0x44c324=_0x44c324-0x1a6;let _0x58a48b=_0x440cbf[_0x44c324];return _0x58a48b;},a14_0x44c3(_0x230a0f,_0x2c6ad3);}const fs=require('fs'),got=require(a14_0x44f516(0x1b6)),{table}=require('table'),{v4:uuidv4}=require(a14_0x44f516(0x1d9)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');exports[a14_0x44f516(0x1ab)]=a14_0x44f516(0x1e9),exports[a14_0x44f516(0x1c1)]=a14_0x44f516(0x1e1),exports['builder']=function(_0x4aa79a){const _0x34bb7d=a14_0x44f516,_0x1b2674={};_0x1b2674[_0x34bb7d(0x1d8)]=_0x34bb7d(0x1d2),_0x1b2674[_0x34bb7d(0x1df)]=_0x34bb7d(0x1ac),_0x1b2674[_0x34bb7d(0x1bc)]=_0x34bb7d(0x1af);const _0x115964=_0x1b2674,_0x51d307={};_0x51d307[_0x34bb7d(0x1b5)]=_0x115964['sWcAy'],_0x51d307[_0x34bb7d(0x1cd)]=_0x115964['IIvhT'];const _0x3da6c8={};return _0x3da6c8[_0x34bb7d(0x1a8)]=_0x51d307,_0x4aa79a[_0x34bb7d(0x1e5)](HELP_HEADER_MESSAGE[_0x34bb7d(0x1cf)]['gridProfile'])[_0x34bb7d(0x1ad)](HELP_FOOTER_MESSAGE)['options'](_0x3da6c8)['help'](_0x115964['WGVuW'])[_0x34bb7d(0x1e2)];},exports[a14_0x44f516(0x1eb)]=async function(_0x53e84c){const _0x3738c9=a14_0x44f516,_0x466439={'IdGvA':function(_0x21166b){return _0x21166b();},'RnLiW':function(_0x5954cb){return _0x5954cb();},'xuEVJ':_0x3738c9(0x1f1),'yeYEI':function(_0x10872a,_0x10aded,_0x333621,_0x59fedb,_0x44ea4b,_0x4b946c,_0x207fe1){return _0x10872a(_0x10aded,_0x333621,_0x59fedb,_0x44ea4b,_0x4b946c,_0x207fe1);},'ghpHp':_0x3738c9(0x1a6),'WYVrs':'init-not-called','OvgMK':_0x3738c9(0x1e7),'ppImx':function(_0xb46f4b,_0x22f642,_0x10a667){return _0xb46f4b(_0x22f642,_0x10a667);},'Moeft':function(_0xfaf599,_0x52e780,_0x43e161){return _0xfaf599(_0x52e780,_0x43e161);},'IgbqG':function(_0x194eb9,_0x29b37f){return _0x194eb9!==_0x29b37f;},'qqmNu':function(_0x706a4c,_0x33925b){return _0x706a4c===_0x33925b;},'bSxYr':_0x3738c9(0x1f4),'oQhSb':_0x3738c9(0x1c4),'QAlHZ':_0x3738c9(0x1b4),'yOAFZ':_0x3738c9(0x1da),'DvfGy':_0x3738c9(0x1d1),'JaiFG':function(_0x2f2966,_0xc9a22a){return _0x2f2966(_0xc9a22a);},'ycZGJ':_0x3738c9(0x1d5),'rZouI':function(_0x1da8d0,_0x44d415,_0x19268e,_0x3cfff3,_0x10b65d,_0x49d3fa,_0x5e075d){return _0x1da8d0(_0x44d415,_0x19268e,_0x3cfff3,_0x10b65d,_0x49d3fa,_0x5e075d);},'uNGIO':'unauthorised','ffXyT':_0x3738c9(0x1a9),'JZkkb':'unknown-error'};try{global_registry[_0x3738c9(0x1f3)]=_0x466439[_0x3738c9(0x1aa)](uuidv4);let _0x357770=_0x3738c9(0x1c5)+AG_API_URL+_0x3738c9(0x1b9);_0x53e84c['allGridProfiles']&&(_0x357770=_0x3738c9(0x1c5)+AG_API_URL+_0x3738c9(0x1ee));!fs['existsSync'](_0x466439['RnLiW'](getCredentialsPath))&&(console[_0x3738c9(0x1c9)](_0x466439[_0x3738c9(0x1f2)]),await _0x466439['yeYEI'](sendInstrumentationEvent,_0x53e84c,_0x466439['ghpHp'],messageTypes['ERROR'],_0x466439[_0x3738c9(0x1ec)],null,_0x53e84c),process[_0x3738c9(0x1ae)](0x1));const _0x55180e=JSON[_0x3738c9(0x1f6)](fs[_0x3738c9(0x1dc)](_0x466439[_0x3738c9(0x1aa)](getCredentialsPath))),_0x5d7f37={'method':_0x466439[_0x3738c9(0x1e4)],'headers':_0x466439[_0x3738c9(0x1b7)](getAuthHeader,_0x55180e[_0x3738c9(0x1f8)]['username'],_0x55180e[_0x3738c9(0x1f8)][_0x3738c9(0x1e6)]),'throwHttpErrors':![]};global_registry[_0x3738c9(0x1d0)]=_0x55180e['Browserstack'][_0x3738c9(0x1b8)],global_registry[_0x3738c9(0x1db)]=_0x55180e[_0x3738c9(0x1f8)][_0x3738c9(0x1e6)],_0x466439[_0x3738c9(0x1ea)](sendInstrumentationEvent,_0x53e84c,_0x466439['ghpHp'],messageTypes[_0x3738c9(0x1e0)],null,null,_0x53e84c);const _0x3f72c6=await _0x466439[_0x3738c9(0x1cb)](got,_0x357770,_0x5d7f37);if(_0x466439['IgbqG'](_0x3f72c6,null)&&_0x466439[_0x3738c9(0x1ca)](_0x3f72c6,undefined)&&_0x466439['qqmNu'](_0x3f72c6['statusCode'],0xc8)){const _0x2b27db=JSON['parse'](_0x3f72c6[_0x3738c9(0x1dd)]);console[_0x3738c9(0x1c3)](_0x466439[_0x3738c9(0x1c2)]);const _0x57a4ee=[];_0x57a4ee[_0x3738c9(0x1c8)]([_0x466439[_0x3738c9(0x1bb)],_0x466439[_0x3738c9(0x1cc)],_0x466439[_0x3738c9(0x1ef)],_0x466439['DvfGy']]),_0x2b27db['forEach'](_0x1dfbbd=>{const _0x56c39d=_0x3738c9;_0x57a4ee['push']([_0x1dfbbd['name'],_0x1dfbbd['cloudProvider'],_0x1dfbbd[_0x56c39d(0x1da)],_0x1dfbbd[_0x56c39d(0x1d1)]]);}),console['log'](_0x466439[_0x3738c9(0x1b2)](table,_0x57a4ee)),process[_0x3738c9(0x1ae)](0x0);}_0x466439[_0x3738c9(0x1d6)](_0x3f72c6[_0x3738c9(0x1c6)],0x191)&&(console[_0x3738c9(0x1c9)](_0x466439[_0x3738c9(0x1f5)]),await _0x466439[_0x3738c9(0x1e8)](sendInstrumentationEvent,_0x53e84c,_0x466439[_0x3738c9(0x1be)],messageTypes[_0x3738c9(0x1c7)],_0x466439[_0x3738c9(0x1f0)],null,_0x53e84c),process['exit'](0x1)),console[_0x3738c9(0x1c9)](_0x3738c9(0x1d4)+JSON['stringify'](_0x3f72c6)),await _0x466439[_0x3738c9(0x1ea)](sendInstrumentationEvent,_0x53e84c,_0x466439[_0x3738c9(0x1be)],messageTypes['ERROR'],_0x466439[_0x3738c9(0x1b3)],_0x3f72c6,_0x53e84c),process[_0x3738c9(0x1ae)](0x1);}catch(_0x30d37a){console['error'](_0x3738c9(0x1b1)+_0x30d37a['stack']),await _0x466439['yeYEI'](sendInstrumentationEvent,_0x53e84c,_0x466439[_0x3738c9(0x1be)],messageTypes['ERROR'],_0x466439[_0x3738c9(0x1c0)],_0x30d37a,_0x53e84c),process[_0x3738c9(0x1ae)](0x1);}};
|