browserstack-node-sdk 1.50.3 → 1.50.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/jestTestFramework.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/loadTestModule.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/v2/utils/jest-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_0xa1d9ff=a9_0x42e7;(function(_0x3319ec,_0x22880e){const _0x3cab17=a9_0x42e7,_0x1270cb=_0x3319ec();while(!![]){try{const _0x524bda=-parseInt(_0x3cab17(0x281))/0x1*(parseInt(_0x3cab17(0x321))/0x2)+-parseInt(_0x3cab17(0x20a))/0x3+parseInt(_0x3cab17(0x2a2))/0x4*(-parseInt(_0x3cab17(0x264))/0x5)+parseInt(_0x3cab17(0x2a3))/0x6+parseInt(_0x3cab17(0x397))/0x7*(-parseInt(_0x3cab17(0x378))/0x8)+-parseInt(_0x3cab17(0x305))/0x9*(parseInt(_0x3cab17(0x34e))/0xa)+parseInt(_0x3cab17(0x2c3))/0xb;if(_0x524bda===_0x22880e)break;else _0x1270cb['push'](_0x1270cb['shift']());}catch(_0x3ebf6b){_0x1270cb['push'](_0x1270cb['shift']());}}}(a9_0x4432,0xee126));const fs=require('fs'),ws=require('ws'),path=require(a9_0xa1d9ff(0x28e)),yaml=require('js-yaml'),ReconnectingWebSocket=require(a9_0xa1d9ff(0x1f6)),got=require(a9_0xa1d9ff(0x246)),{v4:uuidv4}=require(a9_0xa1d9ff(0x324)),webSocketUtils=require(a9_0xa1d9ff(0x302)),{logger}=require(a9_0xa1d9ff(0x293)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0xa1d9ff(0x1fa)),{getCloudProviderObject}=require(a9_0xa1d9ff(0x256)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0xa1d9ff(0x219)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils');function a9_0x42e7(_0xdb8376,_0x4ce8e8){const _0x44323d=a9_0x4432();return a9_0x42e7=function(_0x42e7a6,_0x5e0574){_0x42e7a6=_0x42e7a6-0x1db;let _0x487fbf=_0x44323d[_0x42e7a6];return _0x487fbf;},a9_0x42e7(_0xdb8376,_0x4ce8e8);}exports[a9_0xa1d9ff(0x35f)]=a9_0xa1d9ff(0x299),exports[a9_0xa1d9ff(0x251)]=a9_0xa1d9ff(0x23d),exports[a9_0xa1d9ff(0x2dc)]=function(_0x47ce63){const _0x1d23c7=a9_0xa1d9ff,_0x43743a={};_0x43743a[_0x1d23c7(0x20d)]=_0x1d23c7(0x358),_0x43743a[_0x1d23c7(0x2f3)]=_0x1d23c7(0x34b),_0x43743a[_0x1d23c7(0x30f)]=_0x1d23c7(0x27b),_0x43743a[_0x1d23c7(0x29f)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x43743a[_0x1d23c7(0x2eb)]=_0x1d23c7(0x273),_0x43743a[_0x1d23c7(0x38d)]=_0x1d23c7(0x342),_0x43743a[_0x1d23c7(0x391)]=_0x1d23c7(0x379),_0x43743a['NAdFI']=_0x1d23c7(0x37d),_0x43743a['KsrSF']=_0x1d23c7(0x386),_0x43743a[_0x1d23c7(0x276)]=_0x1d23c7(0x2b7),_0x43743a[_0x1d23c7(0x2e8)]=_0x1d23c7(0x367),_0x43743a[_0x1d23c7(0x1f2)]=_0x1d23c7(0x36f);const _0x18190f=_0x43743a,_0x47060d={};_0x47060d['description']=_0x18190f[_0x1d23c7(0x20d)],_0x47060d[_0x1d23c7(0x227)]=_0x18190f[_0x1d23c7(0x2f3)];const _0x3a5bf5={};_0x3a5bf5[_0x1d23c7(0x2e9)]=_0x18190f[_0x1d23c7(0x30f)],_0x3a5bf5['type']=_0x18190f['QzYYg'];const _0xcd0a5e={};_0xcd0a5e['description']=_0x18190f[_0x1d23c7(0x29f)],_0xcd0a5e['type']=_0x18190f[_0x1d23c7(0x2f3)];const _0xb48b9c={};_0xb48b9c['description']=_0x18190f[_0x1d23c7(0x2eb)],_0xb48b9c[_0x1d23c7(0x227)]=_0x18190f['QzYYg'];const _0x10cbd8={};_0x10cbd8[_0x1d23c7(0x2e9)]=_0x18190f['Sybqh'],_0x10cbd8[_0x1d23c7(0x227)]=_0x18190f['QzYYg'];const _0x36c72e={};_0x36c72e[_0x1d23c7(0x2e9)]=_0x18190f[_0x1d23c7(0x391)],_0x36c72e[_0x1d23c7(0x227)]=_0x18190f['QzYYg'];const _0x488440={};_0x488440[_0x1d23c7(0x2e9)]=_0x18190f['NAdFI'],_0x488440[_0x1d23c7(0x227)]=_0x18190f[_0x1d23c7(0x24c)],_0x488440[_0x1d23c7(0x2e4)]=![];const _0x37a738={};_0x37a738[_0x1d23c7(0x2e9)]=_0x18190f[_0x1d23c7(0x276)],_0x37a738[_0x1d23c7(0x227)]=_0x18190f[_0x1d23c7(0x24c)],_0x37a738[_0x1d23c7(0x2e4)]=![];const _0x2d8ba5={};_0x2d8ba5[_0x1d23c7(0x2e9)]=_0x18190f['IFvNF'],_0x2d8ba5[_0x1d23c7(0x227)]=_0x18190f['KsrSF'],_0x2d8ba5[_0x1d23c7(0x2e4)]=![];const _0x57d5fd={};return _0x57d5fd['grid-name']=_0x47060d,_0x57d5fd['grid-profile']=_0x3a5bf5,_0x57d5fd[_0x1d23c7(0x32c)]=_0xcd0a5e,_0x57d5fd[_0x1d23c7(0x312)]=_0xb48b9c,_0x57d5fd[_0x1d23c7(0x329)]=_0x10cbd8,_0x57d5fd[_0x1d23c7(0x229)]=_0x36c72e,_0x57d5fd[_0x1d23c7(0x33a)]=_0x488440,_0x57d5fd[_0x1d23c7(0x396)]=_0x37a738,_0x57d5fd[_0x1d23c7(0x306)]=_0x2d8ba5,_0x47ce63[_0x1d23c7(0x37a)](HELP_HEADER_MESSAGE[_0x1d23c7(0x29a)])[_0x1d23c7(0x39e)](HELP_FOOTER_MESSAGE)['options'](_0x57d5fd)[_0x1d23c7(0x36f)](_0x18190f['WfGIc'])[_0x1d23c7(0x228)];},exports[a9_0xa1d9ff(0x2fc)]=async function(_0x5bf96b){const _0xa18e01=a9_0xa1d9ff,_0x1029c6={'TsMqY':_0xa18e01(0x315),'OuRyY':_0xa18e01(0x311),'GBvlt':'Cluster\x20Auto\x20Upgrade\x20is\x20enabled','RZUfG':_0xa18e01(0x204),'KUBfw':_0xa18e01(0x1de),'fPMEx':_0xa18e01(0x2b9),'Gfkjz':_0xa18e01(0x343),'yUtiA':_0xa18e01(0x2a8),'LLkjN':'Epyd5nXbRK','ugDlO':_0xa18e01(0x296),'aXeQn':_0xa18e01(0x29b),'itpAI':function(_0x49c14b,_0x28ab0a){return _0x49c14b===_0x28ab0a;},'lHJEC':_0xa18e01(0x358),'byZgA':'string','nMgDE':_0xa18e01(0x27b),'zHzRm':_0xa18e01(0x286),'mrDSd':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','UKyaV':_0xa18e01(0x342),'pGABd':_0xa18e01(0x379),'YyqFX':_0xa18e01(0x37d),'bpbLh':_0xa18e01(0x386),'mVUym':_0xa18e01(0x2b7),'PLLnD':_0xa18e01(0x367),'HlZwD':_0xa18e01(0x36f),'EULTd':_0xa18e01(0x372),'MiDxD':function(_0x45d42c,_0x350d32){return _0x45d42c(_0x350d32);},'SUfwX':function(_0x3329fb,_0x4672b6){return _0x3329fb!==_0x4672b6;},'PsuBv':function(_0x1820a9,_0x216cb0,_0x53fe80,_0x3afdab,_0xeb9ed0,_0x2b3da0,_0x425cfa,_0x129c1e,_0xbea52f,_0x4118b3,_0x1f6ec8,_0x13d6a8,_0x56937c){return _0x1820a9(_0x216cb0,_0x53fe80,_0x3afdab,_0xeb9ed0,_0x2b3da0,_0x425cfa,_0x129c1e,_0xbea52f,_0x4118b3,_0x1f6ec8,_0x13d6a8,_0x56937c);},'RlfUe':_0xa18e01(0x225),'KWveq':function(_0xf0da7,_0x32bc1f){return _0xf0da7(_0x32bc1f);},'yUOEP':_0xa18e01(0x27a),'kSOjN':_0xa18e01(0x30c),'SNEcP':function(_0x424ec7,_0x51d508){return _0x424ec7(_0x51d508);},'eGRXt':'true','zYFbL':_0xa18e01(0x2e4),'xCIXF':function(_0x1ca4cf){return _0x1ca4cf();},'twgHP':function(_0x35ea2d){return _0x35ea2d();},'VcEAc':function(_0x6371fa,_0x53c08e){return _0x6371fa!==_0x53c08e;},'VtJNi':_0xa18e01(0x380),'qixEn':_0xa18e01(0x2c1),'HBHHm':function(_0x347e09,_0x190b2d,_0xc939d2,_0x237a15,_0xfb4d8c,_0x1bc6d9,_0x25d911){return _0x347e09(_0x190b2d,_0xc939d2,_0x237a15,_0xfb4d8c,_0x1bc6d9,_0x25d911);},'VoCVy':_0xa18e01(0x21f),'xSWrm':'init-not-called','UcQIx':function(_0x3daa10,_0x3ca440,_0x5cf072,_0x268bf1,_0x5e00fb,_0x585373,_0x25f62a){return _0x3daa10(_0x3ca440,_0x5cf072,_0x268bf1,_0x5e00fb,_0x585373,_0x25f62a);},'bhgzf':function(_0x5b0fb1){return _0x5b0fb1();},'SfzNC':_0xa18e01(0x33f),'Oeced':_0xa18e01(0x350),'kxktD':_0xa18e01(0x2a6),'bEQZY':function(_0x411d95,_0x21e5a5){return _0x411d95===_0x21e5a5;},'PwFgg':'NOnYG','avZrh':function(_0x30510e,_0x218bfb){return _0x30510e===_0x218bfb;},'Gooqd':'ytSFE','YPEdZ':_0xa18e01(0x2cf),'zyNje':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','rOXxT':function(_0x1e0e75,_0x3f0e13,_0x410525,_0x57adae,_0x439abf,_0x2e1ad3,_0xd85693,_0x757ee){return _0x1e0e75(_0x3f0e13,_0x410525,_0x57adae,_0x439abf,_0x2e1ad3,_0xd85693,_0x757ee);},'pxCtO':_0xa18e01(0x206),'pDOny':function(_0x314ddc,_0x4c5fd1){return _0x314ddc!==_0x4c5fd1;},'WbSVC':'FbFDi','MYOsF':_0xa18e01(0x20b),'SeceQ':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','saWMZ':function(_0x35b463,_0x43f47b,_0x2aebcd,_0x2d2778,_0x6bb78c,_0x1ab32d,_0x42a948,_0x5cfb50){return _0x35b463(_0x43f47b,_0x2aebcd,_0x2d2778,_0x6bb78c,_0x1ab32d,_0x42a948,_0x5cfb50);},'beuip':_0xa18e01(0x20c),'ByGLO':_0xa18e01(0x31c),'ujXaf':_0xa18e01(0x26e),'ExDNc':function(_0x13c5cc,_0x3fae16,_0x3fbd0a,_0x134147,_0x320277,_0xf45c3f,_0x213b4f){return _0x13c5cc(_0x3fae16,_0x3fbd0a,_0x134147,_0x320277,_0xf45c3f,_0x213b4f);},'LjqOJ':function(_0x485d00,_0x37c840){return _0x485d00===_0x37c840;},'wjohs':_0xa18e01(0x348),'WMOCi':_0xa18e01(0x36b),'jpfoo':_0xa18e01(0x28c),'OirzP':'OolmI','TCsRg':'GET','lubni':function(_0x49f7a2,_0x2789fd,_0x467e12){return _0x49f7a2(_0x2789fd,_0x467e12);},'UdEVn':_0xa18e01(0x290),'mMkLS':function(_0x4491fd,_0x5b8c5f){return _0x4491fd!==_0x5b8c5f;},'IJoIJ':_0xa18e01(0x2d8),'gfrZj':_0xa18e01(0x268),'kafHn':_0xa18e01(0x304),'XmnkL':_0xa18e01(0x31b),'jpGkd':_0xa18e01(0x1fc),'oWgZo':function(_0x57fcb3,_0xe65be0){return _0x57fcb3===_0xe65be0;},'IbVVu':function(_0x1eef9c,_0xec9d1f){return _0x1eef9c!==_0xec9d1f;},'JfZcj':_0xa18e01(0x248),'tfOwi':_0xa18e01(0x247),'caWpr':function(_0x3f7a1c,_0x3630fa,_0x46167d,_0x2c5f71,_0x596c11,_0xe4e32,_0x59fa20,_0x33a41e){return _0x3f7a1c(_0x3630fa,_0x46167d,_0x2c5f71,_0x596c11,_0xe4e32,_0x59fa20,_0x33a41e);},'aGFFO':_0xa18e01(0x328),'FMtnX':function(_0x19832f,_0x269d9b){return _0x19832f!==_0x269d9b;},'LDfoR':_0xa18e01(0x36c),'hTpwo':function(_0x2de3c9,_0x17eb59,_0x31612a,_0x55c98e,_0x288d8c,_0x36d97,_0x446233,_0x212a13){return _0x2de3c9(_0x17eb59,_0x31612a,_0x55c98e,_0x288d8c,_0x36d97,_0x446233,_0x212a13);},'nZDzx':_0xa18e01(0x2aa),'QNJju':_0xa18e01(0x39c),'gBJXS':function(_0x533c6a,_0x501609){return _0x533c6a!==_0x501609;},'yAZJe':_0xa18e01(0x288),'zNJUA':'create-grid-checks-grid-already-exists','hJWUo':'ZyNYh','petNe':function(_0x92ffd8,_0x3d85fe){return _0x92ffd8===_0x3d85fe;},'ZztdF':_0xa18e01(0x253),'iyhlp':_0xa18e01(0x292),'HBbMa':_0xa18e01(0x35b),'HFZMO':_0xa18e01(0x210),'YwSaY':function(_0x4abe9f,_0x233c8d){return _0x4abe9f!==_0x233c8d;},'qaKBT':_0xa18e01(0x2c9),'dVqNE':'VYhYb','KpDqZ':_0xa18e01(0x235),'gjfIw':_0xa18e01(0x26f),'BvpIW':function(_0x4c5f32,_0x50c189){return _0x4c5f32===_0x50c189;},'jdtPb':_0xa18e01(0x37e),'qhCnr':'LKOIi','QgphS':function(_0xe8231f,_0x5f213a){return _0xe8231f===_0x5f213a;},'dURfe':_0xa18e01(0x258),'zOZBV':function(_0x3b5264,_0x4f27ff){return _0x3b5264!==_0x4f27ff;},'bHPKi':function(_0x3dcca8,_0x286ea8){return _0x3dcca8===_0x286ea8;},'PJasi':'ZOXqC','VzbBL':_0xa18e01(0x2fd),'tRTHK':function(_0x3ded89,_0x28c608){return _0x3ded89(_0x28c608);},'RlUIl':function(_0x32a1f4,_0x9e5cd0){return _0x32a1f4===_0x9e5cd0;},'GEtmz':_0xa18e01(0x249),'Vdiot':'cvkJP','hbOGD':_0xa18e01(0x1e7),'pwmcx':function(_0x235b61,_0x545277,_0x294bf9,_0x389173,_0x165153,_0x29955c,_0x346852,_0x192ec0,_0x3004ea,_0x1af505,_0x85a9d,_0x412dd3,_0x2ec4d7){return _0x235b61(_0x545277,_0x294bf9,_0x389173,_0x165153,_0x29955c,_0x346852,_0x192ec0,_0x3004ea,_0x1af505,_0x85a9d,_0x412dd3,_0x2ec4d7);},'pYDrr':function(_0x2389c7,_0x5a5acc){return _0x2389c7===_0x5a5acc;},'IfEwf':_0xa18e01(0x301),'lIihH':'osudN','gBbJB':_0xa18e01(0x392),'XYuCD':'hboaG','FxUyq':_0xa18e01(0x2e6),'XuObm':function(_0x35b2b3,_0x4e6c3b,_0x1b5638,_0x1616b9,_0x2607e9,_0x1740f1,_0x510d99){return _0x35b2b3(_0x4e6c3b,_0x1b5638,_0x1616b9,_0x2607e9,_0x1740f1,_0x510d99);},'DYrbr':function(_0x506a38,_0x10fffe){return _0x506a38!==_0x10fffe;},'JgNil':'dGEVz','fZVSw':_0xa18e01(0x30b),'BTeZt':_0xa18e01(0x24a),'catKE':_0xa18e01(0x39b),'yJDMi':function(_0x2dc800,_0x47f9f9){return _0x2dc800===_0x47f9f9;},'zzmPA':_0xa18e01(0x340),'feuUx':_0xa18e01(0x31e),'tvPeO':function(_0x4e03c1,_0x2725e2){return _0x4e03c1!=_0x2725e2;},'fklAo':function(_0x1db80c,_0x454af7){return _0x1db80c!==_0x454af7;},'UWqeQ':function(_0x170dc3,_0xdcc594){return _0x170dc3!=_0xdcc594;},'AFEgK':function(_0x2c1968,_0x6b6675){return _0x2c1968>_0x6b6675;},'Bdhid':_0xa18e01(0x390),'nVSmg':function(_0xa7bff2,_0x14453a,_0x4d3277,_0x154e02,_0x3a0e94,_0x1203b0,_0x2351b1,_0xb3bf5f){return _0xa7bff2(_0x14453a,_0x4d3277,_0x154e02,_0x3a0e94,_0x1203b0,_0x2351b1,_0xb3bf5f);},'FNFqU':_0xa18e01(0x2da),'CbffF':function(_0x28439c,_0x1d628b){return _0x28439c===_0x1d628b;},'YUxYN':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','LotWs':_0xa18e01(0x347),'qWSam':function(_0x9eeaa3,_0x40b433){return _0x9eeaa3===_0x40b433;},'IliFY':function(_0x4ea005,_0x5be2de,_0xd5027d,_0x138013,_0x2ea9d1,_0x550037,_0x1fb34f,_0x5b7458){return _0x4ea005(_0x5be2de,_0xd5027d,_0x138013,_0x2ea9d1,_0x550037,_0x1fb34f,_0x5b7458);},'pBneQ':'pre-spawned-invalid-subnets','FBoJE':_0xa18e01(0x2bb),'vgZtI':_0xa18e01(0x38a),'EfqOV':'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.','fojlH':function(_0x253e4b,_0x2fe3b8,_0x49c20a){return _0x253e4b(_0x2fe3b8,_0x49c20a);},'eBQzE':function(_0x547394,_0x4aaa79){return _0x547394===_0x4aaa79;},'BShTb':function(_0x18180b,_0x173c51){return _0x18180b===_0x173c51;},'vhIZG':_0xa18e01(0x25a),'ECwPL':function(_0x168193,_0x4b9cf6,_0x176040){return _0x168193(_0x4b9cf6,_0x176040);},'cqstl':function(_0x4d7a07,_0x274a35,_0x444cc4){return _0x4d7a07(_0x274a35,_0x444cc4);},'HnaOQ':_0xa18e01(0x31a),'ySDeN':_0xa18e01(0x356),'BMvuO':_0xa18e01(0x33b),'RpiwR':_0xa18e01(0x374),'uUhLz':_0xa18e01(0x224),'EWPSf':_0xa18e01(0x33e),'SfhTN':function(_0x224970,_0x67208f){return _0x224970(_0x67208f);},'EuMdn':function(_0x53dca2,_0x4f9dec){return _0x53dca2(_0x4f9dec);},'HaxzT':function(_0x5cdd8e,_0x199cfc){return _0x5cdd8e(_0x199cfc);},'kHSuG':_0xa18e01(0x23f),'VhBVX':_0xa18e01(0x287),'kuzhX':function(_0x163224,_0x525550){return _0x163224===_0x525550;},'ODuyu':_0xa18e01(0x2d3),'yExvZ':_0xa18e01(0x2e2),'CAvkY':function(_0x31a05f,_0x31c848,_0x29c14a){return _0x31a05f(_0x31c848,_0x29c14a);},'fFLVf':_0xa18e01(0x362),'HOkeC':'Adding\x20Kafka\x20deployment...','CmNjw':_0xa18e01(0x359),'vbFlO':_0xa18e01(0x360),'jeDjQ':'Adding\x20Turboscale\x20Uploader\x20deployment...','bbOrL':_0xa18e01(0x24e),'rFwhE':function(_0x2ff8a5,_0x5248a7){return _0x2ff8a5===_0x5248a7;},'JEOyZ':_0xa18e01(0x2b5),'okJke':_0xa18e01(0x254),'hmNAo':_0xa18e01(0x394),'oUajh':_0xa18e01(0x323),'MqlYW':function(_0x2f5edd,_0x361de5,_0x4e6ecf,_0xbf0cbe,_0x139637,_0x2804c7,_0x315e70,_0x4a4763){return _0x2f5edd(_0x361de5,_0x4e6ecf,_0xbf0cbe,_0x139637,_0x2804c7,_0x315e70,_0x4a4763);},'ZXAVg':_0xa18e01(0x1e4),'bjgnO':_0xa18e01(0x28b),'GMWVf':function(_0x32a5bb,_0x14f06f){return _0x32a5bb!==_0x14f06f;},'zopWF':_0xa18e01(0x2a0),'PRvSE':_0xa18e01(0x2f2),'qCNSe':_0xa18e01(0x284),'JwUhI':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','qFEks':_0xa18e01(0x25e),'JyxZh':function(_0xd7950b,_0x3d53fb,_0x338dc4,_0x8d3eb2,_0x2f2f79,_0x1dfbbc,_0x33c9db,_0x4f6a5a,_0x11bd88,_0x273f56,_0x17f537){return _0xd7950b(_0x3d53fb,_0x338dc4,_0x8d3eb2,_0x2f2f79,_0x1dfbbc,_0x33c9db,_0x4f6a5a,_0x11bd88,_0x273f56,_0x17f537);},'SrsWh':_0xa18e01(0x1ff),'vnVsH':_0xa18e01(0x2cb),'QYJHC':function(_0x288566,_0x3e35a5,_0x2f5d4c,_0x365582,_0x1cb521){return _0x288566(_0x3e35a5,_0x2f5d4c,_0x365582,_0x1cb521);},'aGFle':'private-ingress-nginx-controller','QCFNj':_0xa18e01(0x2ba),'qQOyB':'ingress-nginx','pdAQG':function(_0x19e48f,_0x2f36a5){return _0x19e48f===_0x2f36a5;},'GWuBl':_0xa18e01(0x2bc),'vPxQU':function(_0x19651b,_0x9bab40,_0xd68b79,_0x2d9188,_0x27bd61,_0x19e1fc,_0x72f645,_0x5f966){return _0x19651b(_0x9bab40,_0xd68b79,_0x2d9188,_0x27bd61,_0x19e1fc,_0x72f645,_0x5f966);},'sxqIX':'get-grid-url-null-response','EOShp':function(_0x5c8f4c,_0x58232b){return _0x5c8f4c===_0x58232b;},'HEiAC':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','pzlxY':_0xa18e01(0x24f),'IRnQa':function(_0x34030b,_0x15db2c,_0x1d8ce1,_0xb3a124,_0x5d2dbe,_0x14f0ca,_0xd43cbb,_0x1c75de){return _0x34030b(_0x15db2c,_0x1d8ce1,_0xb3a124,_0x5d2dbe,_0x14f0ca,_0xd43cbb,_0x1c75de);},'MUnaz':_0xa18e01(0x1f4),'OCTkG':_0xa18e01(0x263),'lnTJI':function(_0x970e95,_0x4a8173,_0x3e0148,_0x126025,_0x12c43b,_0x5068a5){return _0x970e95(_0x4a8173,_0x3e0148,_0x126025,_0x12c43b,_0x5068a5);},'DxZFe':function(_0x23c751,_0x491010,_0x3510ab,_0x154968,_0x532b71,_0x12a43f,_0x3238ca){return _0x23c751(_0x491010,_0x3510ab,_0x154968,_0x532b71,_0x12a43f,_0x3238ca);},'nQlpA':'grid-spawning-failed'};let _0x1868ad=![],_0x28b31e=![],_0xc864ee,_0x2d2df8,_0x3d079c,_0x20c820,_0x310416,_0x2ae981,_0x36742f,_0xd60aa8,_0x51bd7c,_0x3854bb,_0x17e4d8,_0x46456a,_0xb92639,_0x376fed,_0x43a211=0x1,_0x545fac=0xe;try{global_registry[_0xa18e01(0x332)]=_0x1029c6[_0xa18e01(0x2e0)](uuidv4),global_registry[_0xa18e01(0x2d9)]=![];!fs[_0xa18e01(0x208)](_0x1029c6[_0xa18e01(0x314)](getCredentialsPath))&&(_0x1029c6[_0xa18e01(0x22e)](_0x1029c6['VtJNi'],_0x1029c6[_0xa18e01(0x384)])?_0x325f61['info']('Found\x20Subnets:\x20'+_0x1e66f7['stringify'](_0x37aa45)+'\x20'):(console[_0xa18e01(0x204)](_0x1029c6[_0xa18e01(0x38f)]),await _0x1029c6[_0xa18e01(0x369)](sendInstrumentationEvent,_0x5bf96b,_0x1029c6[_0xa18e01(0x2f0)],messageTypes[_0xa18e01(0x209)],_0x1029c6[_0xa18e01(0x2ad)],null,_0x5bf96b),process[_0xa18e01(0x1dd)](0x1)));await _0x1029c6[_0xa18e01(0x341)](sendInstrumentationEvent,_0x5bf96b,_0x1029c6[_0xa18e01(0x2f0)],messageTypes[_0xa18e01(0x25c)],null,null,_0x5bf96b);const _0x19f716=JSON[_0xa18e01(0x218)](fs[_0xa18e01(0x39a)](_0x1029c6['bhgzf'](getCredentialsPath)));global_registry[_0xa18e01(0x373)]=_0x19f716[_0xa18e01(0x2a0)]['username'],global_registry[_0xa18e01(0x1f5)]=_0x19f716[_0xa18e01(0x2a0)][_0xa18e01(0x2c2)];const _0x56281e=WS_ENDPOINT['replace'](_0x1029c6[_0xa18e01(0x25f)],_0x19f716['Browserstack'][_0xa18e01(0x28d)])[_0xa18e01(0x215)](_0x1029c6['Oeced'],_0x19f716[_0xa18e01(0x2a0)][_0xa18e01(0x2c2)]),_0x2e20ec={};_0x2e20ec[_0xa18e01(0x364)]=ws,_0x2e20ec[_0xa18e01(0x22a)]=0x36ee80,_0x46456a=new ReconnectingWebSocket(_0x56281e,[],_0x2e20ec),logger[_0xa18e01(0x2cc)](_0x1029c6[_0xa18e01(0x285)]),webSocketUtils[_0xa18e01(0x22b)](_0x46456a,_0x5bf96b[_0xa18e01(0x346)],_0x5bf96b[_0xa18e01(0x2c2)]);const _0x1627bf=_0x5bf96b[_0xa18e01(0x354)]||DEFAULT_GRID_NAME;if(_0x5bf96b['clusterName']||_0x5bf96b[_0xa18e01(0x2d1)]||_0x5bf96b[_0xa18e01(0x329)]){if(_0x1029c6[_0xa18e01(0x2f8)](_0x1029c6[_0xa18e01(0x35a)],_0x1029c6[_0xa18e01(0x35a)])){if(!(_0x5bf96b[_0xa18e01(0x279)]&&_0x5bf96b[_0xa18e01(0x2d1)]&&_0x5bf96b[_0xa18e01(0x329)])){if(_0x1029c6[_0xa18e01(0x371)](_0x1029c6['Gooqd'],_0x1029c6[_0xa18e01(0x275)])){const _0x410bf6=_0x1029c6[_0xa18e01(0x1e5)][_0xa18e01(0x28a)]('|');let _0x4dbb22=0x0;while(!![]){switch(_0x410bf6[_0x4dbb22++]){case'0':const _0x510095={};_0x510095[_0xa18e01(0x227)]=_0x16bf67[_0xa18e01(0x37f)],_0x510095[_0xa18e01(0x2c4)]=_0x36221e,_0x493f0f[_0xa18e01(0x2f6)](_0x19fbe0,_0x510095);continue;case'1':_0xf552ce[_0xa18e01(0x2d4)](_0x20a884);continue;case'2':_0x3709ab['browserVersion']=_0x13cc35['browserVersion'];continue;case'3':_0x23b6bb['hubVersion']=_0x390c5d['hubVersion'];continue;case'4':_0x1b838c[_0xa18e01(0x2db)]=_0x16e25e;continue;case'5':_0x41c639[_0xa18e01(0x2d1)]=_0x3e15b4;continue;case'6':const _0x14164c={};_0x14164c[_0xa18e01(0x227)]=_0x138ecc[_0xa18e01(0x1df)],_0x14164c['message']=_0x1029c6[_0xa18e01(0x2ea)],_0x4b60e0[_0xa18e01(0x2f6)](_0x196f2f,_0x14164c);continue;case'7':_0x1c10bd[_0xa18e01(0x279)]=_0x40dc0d;continue;case'8':_0x474407=_0xa18e01(0x35c)+_0x446d71+'\x20in\x20existing\x20cluster\x20\x27'+_0x3ed28e+'\x27';continue;}break;}}else _0xc864ee=_0x1029c6[_0xa18e01(0x303)],await _0x1029c6[_0xa18e01(0x34c)](reportToGalactusAndSendToEDS,_0x5bf96b,_0x46456a,_0xc864ee,messageTypes[_0xa18e01(0x209)],_0x1029c6[_0xa18e01(0x2f0)],_0x1029c6[_0xa18e01(0x2dd)],_0x1029c6[_0xa18e01(0x27e)]),logger[_0xa18e01(0x204)](_0xc864ee),process[_0xa18e01(0x1dd)](0x1);}![AWS,AZURE,GCP][_0xa18e01(0x2fe)](_0x5bf96b[_0xa18e01(0x2d1)][_0xa18e01(0x259)]())&&(_0x1029c6['pDOny'](_0x1029c6[_0xa18e01(0x2c6)],_0x1029c6[_0xa18e01(0x333)])?(_0xc864ee=_0x1029c6[_0xa18e01(0x32d)],await _0x1029c6[_0xa18e01(0x1f1)](reportToGalactusAndSendToEDS,_0x5bf96b,_0x46456a,_0xc864ee,messageTypes[_0xa18e01(0x209)],_0x1029c6[_0xa18e01(0x2f0)],_0x1029c6['beuip'],_0x1029c6[_0xa18e01(0x27e)]),logger['error'](_0xc864ee),process[_0xa18e01(0x1dd)](0x1)):_0x1db83c[_0xa18e01(0x308)]());_0x5bf96b[_0xa18e01(0x399)]&&_0x1029c6[_0xa18e01(0x1f0)](_0x5bf96b[_0xa18e01(0x399)][_0xa18e01(0x259)](),_0x1029c6[_0xa18e01(0x2af)])&&(_0x1029c6[_0xa18e01(0x1f0)](_0x1029c6[_0xa18e01(0x351)],_0x1029c6[_0xa18e01(0x339)])?_0x3b5937=null:global_registry[_0xa18e01(0x2d9)]=!![]);global_registry[_0xa18e01(0x2d1)]=_0x5bf96b[_0xa18e01(0x2d1)],global_registry[_0xa18e01(0x2db)]=_0x5bf96b[_0xa18e01(0x329)],global_registry[_0xa18e01(0x279)]=_0x5bf96b[_0xa18e01(0x279)];const _0x596691=await _0x1029c6[_0xa18e01(0x2d2)](getCloudProviderObject,_0x5bf96b[_0xa18e01(0x2d1)],_0x5bf96b[_0xa18e01(0x279)],_0x1627bf,_0x46456a,webSocketUtils,_0x5bf96b),_0x255058=await _0x596691[_0xa18e01(0x24d)]();!_0x255058?_0x1029c6[_0xa18e01(0x240)](_0x1029c6[_0xa18e01(0x35e)],_0x1029c6['wjohs'])?(logger[_0xa18e01(0x2d4)](_0xa18e01(0x1f9)+_0x5bf96b[_0xa18e01(0x279)]+_0xa18e01(0x2ed)),_0x1868ad=![],_0x28b31e=!![]):_0x5045be[_0xa18e01(0x2d4)](_0x1029c6['GBvlt']):_0x1029c6[_0xa18e01(0x1eb)](_0x1029c6[_0xa18e01(0x262)],_0x1029c6['jpfoo'])?_0x1868ad=!![]:_0x30721e[_0xa18e01(0x204)](_0xa18e01(0x344)+_0x338007+'\x20\x0a'+_0x3ca2d9[_0xa18e01(0x2e3)](_0x20129a[_0xa18e01(0x29e)])),_0x3d079c=_0x5bf96b[_0xa18e01(0x279)],_0x2d2df8=_0x5bf96b[_0xa18e01(0x2d1)][_0xa18e01(0x259)](),_0x20c820=_0x5bf96b[_0xa18e01(0x329)];}else _0x4c9e62[_0xa18e01(0x2d4)](_0xa18e01(0x1f9)+_0xcdeebb['clusterName']+_0xa18e01(0x2ed)),_0x4d67a6=![],_0x19ce66=!![];}else{if(_0x5bf96b[_0xa18e01(0x37c)]){if(_0x1029c6['SUfwX'](_0x1029c6[_0xa18e01(0x22d)],_0x1029c6['OirzP'])){const _0xd5e661={};_0xd5e661['type']=_0x249071['LOG'],_0xd5e661[_0xa18e01(0x2c4)]=_0x3bb8b4,_0x517344['sendEventToBackend'](_0xa99dc0,_0xd5e661,_0x1029c6[_0xa18e01(0x27e)],!![]);}else global_registry[_0xa18e01(0x37c)]=_0x5bf96b[_0xa18e01(0x37c)];}}global_registry['gridName']=_0x5bf96b[_0xa18e01(0x354)];const _0x22b9e8={'method':_0x1029c6['TCsRg'],'headers':_0x1029c6[_0xa18e01(0x2c0)](getAuthHeader,_0x19f716[_0xa18e01(0x2a0)][_0xa18e01(0x28d)],_0x19f716[_0xa18e01(0x2a0)][_0xa18e01(0x2c2)]),'throwHttpErrors':![]},_0x12f4e6={};_0x12f4e6[_0xa18e01(0x354)]=_0x1627bf;const _0x4555c3=_0x12f4e6;_0x28b31e&&(_0x1029c6[_0xa18e01(0x1eb)](_0x1029c6[_0xa18e01(0x355)],_0x1029c6[_0xa18e01(0x355)])?_0x4ee63a[_0xa18e01(0x2d9)]=!![]:(_0x4555c3[_0xa18e01(0x329)]=_0x20c820,_0x4555c3[_0xa18e01(0x2d1)]=_0x2d2df8,_0x4555c3['newCluster']=!![],_0x4555c3[_0xa18e01(0x265)]=_0x5bf96b['clusterAutoupgrade']));if(_0x5bf96b['clusterAutoupgrade']){if(_0x1029c6[_0xa18e01(0x34f)](_0x1029c6['IJoIJ'],_0x1029c6[_0xa18e01(0x2ce)]))logger[_0xa18e01(0x2d4)](_0x1029c6['GBvlt']);else{const _0x1f7d1a=_0x1029c6[_0xa18e01(0x387)]['split']('|');let _0x5d090b=0x0;while(!![]){switch(_0x1f7d1a[_0x5d090b++]){case'0':_0x3524b2[_0xa18e01(0x2a5)]=_0x1029c6['fPMEx'];continue;case'1':_0x25f3c5['enableHubHa']=!![];continue;case'2':_0x3b6eb3[_0xa18e01(0x21c)]=_0x1029c6[_0xa18e01(0x307)];continue;case'3':_0x16dc4b[_0xa18e01(0x2d4)](_0x1029c6[_0xa18e01(0x27f)]);continue;case'4':_0x148b47[_0xa18e01(0x211)]=_0x1029c6[_0xa18e01(0x1ee)];continue;}break;}}}const _0x21e99c=_0xa18e01(0x294)+AG_API_URL+_0xa18e01(0x226),_0x1b3553={'searchParams':_0x4555c3,'throwHttpErrors':![],..._0x22b9e8},_0x3d9757=_0x1b3553,_0x2bdc50=await _0x1029c6[_0xa18e01(0x2c0)](got,_0x21e99c,_0x3d9757);if(_0x1029c6[_0xa18e01(0x371)](_0x2bdc50,null)||_0x1029c6[_0xa18e01(0x371)](_0x2bdc50,undefined)){if(_0x1029c6['avZrh'](_0x1029c6[_0xa18e01(0x222)],_0x1029c6[_0xa18e01(0x222)]))_0xc864ee=_0x1029c6[_0xa18e01(0x26b)],await _0x1029c6[_0xa18e01(0x34c)](reportToGalactusAndSendToEDS,_0x5bf96b,_0x46456a,_0xc864ee,messageTypes[_0xa18e01(0x209)],_0x1029c6['VoCVy'],_0x1029c6[_0xa18e01(0x1f8)],_0x1029c6[_0xa18e01(0x27e)]),logger[_0xa18e01(0x204)](_0xc864ee),process[_0xa18e01(0x1dd)](0x1);else throw new _0x23a1b7(_0xa18e01(0x1fe)+_0x5d87ac+_0xa18e01(0x1e8));}_0x1029c6[_0xa18e01(0x236)](_0x2bdc50[_0xa18e01(0x317)],0x191)&&(_0x1029c6[_0xa18e01(0x2de)](_0x1029c6['JfZcj'],_0x1029c6[_0xa18e01(0x22c)])?_0x92e825=_0x1029c6[_0xa18e01(0x2f5)]:(_0xc864ee=_0x1029c6[_0xa18e01(0x36e)],await _0x1029c6[_0xa18e01(0x24b)](reportToGalactusAndSendToEDS,_0x5bf96b,_0x46456a,_0xc864ee,messageTypes[_0xa18e01(0x209)],_0x1029c6[_0xa18e01(0x2f0)],_0x1029c6[_0xa18e01(0x252)],_0x1029c6['RZUfG']),logger[_0xa18e01(0x204)](_0xc864ee),process['exit'](0x1)));if(_0x1029c6['SUfwX'](_0x2bdc50[_0xa18e01(0x317)],0xc8)){if(_0x1029c6[_0xa18e01(0x201)](_0x1029c6[_0xa18e01(0x200)],_0x1029c6[_0xa18e01(0x200)])){const _0x53243f={};_0x53243f[_0xa18e01(0x227)]=_0x4e6ef6['LOG'],_0x53243f['message']=_0xa18e01(0x1fe)+_0x413960+_0xa18e01(0x1db),_0x58bc3e[_0xa18e01(0x2f6)](_0x18d05e,_0x53243f,_0x1029c6[_0xa18e01(0x27c)]),_0x2bdfad['info'](_0xa18e01(0x1fe)+_0xf9bf3d+_0xa18e01(0x1db)),_0x359451=!![];if(_0x1029c6[_0xa18e01(0x1f0)](_0xcd419b,!![]))throw new _0x33a9f8(_0xa18e01(0x1fe)+_0x5ce081+_0xa18e01(0x1e8));}else _0xc864ee=_0xa18e01(0x319)+JSON[_0xa18e01(0x2e3)](_0x2bdc50[_0xa18e01(0x23e)]),await _0x1029c6[_0xa18e01(0x375)](reportToGalactusAndSendToEDS,_0x5bf96b,_0x46456a,_0xc864ee,messageTypes['ERROR'],_0x1029c6[_0xa18e01(0x2f0)],_0x1029c6[_0xa18e01(0x2ff)],_0x1029c6[_0xa18e01(0x27e)]),logger[_0xa18e01(0x204)](_0xc864ee),process[_0xa18e01(0x1dd)](0x1);}const _0xac10e1=JSON['parse'](_0x2bdc50[_0xa18e01(0x23e)]),_0x5de921={};_0x5de921[_0xa18e01(0x227)]=WS_EVENTS['CLI_RUN_STARTED'],_0x5de921[_0xa18e01(0x2c4)]=_0x1029c6[_0xa18e01(0x2ea)],webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x5de921);const _0x56999f={};_0x56999f['type']=WS_EVENTS[_0xa18e01(0x37f)],_0x56999f[_0xa18e01(0x2c4)]=_0x1029c6['QNJju'],webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x56999f);_0xac10e1[_0xa18e01(0x337)]&&(_0x1029c6[_0xa18e01(0x2d5)](_0x1029c6[_0xa18e01(0x255)],_0x1029c6[_0xa18e01(0x255)])?_0x29192e[_0xa18e01(0x2d9)]=!![]:(_0xc864ee=_0xa18e01(0x203)+_0x1627bf+_0xa18e01(0x213),await _0x1029c6[_0xa18e01(0x375)](reportToGalactusAndSendToEDS,_0x5bf96b,_0x46456a,_0xc864ee,messageTypes[_0xa18e01(0x209)],_0x1029c6[_0xa18e01(0x2f0)],_0x1029c6[_0xa18e01(0x335)],_0x1029c6[_0xa18e01(0x27e)]),logger[_0xa18e01(0x204)](_0xc864ee),process[_0xa18e01(0x1dd)](0x1)));const _0xa0938e=_0xac10e1[_0xa18e01(0x36d)];let _0x2dce18=_0xa0938e[_0xac10e1[_0xa18e01(0x32b)]];if(_0x5bf96b[_0xa18e01(0x37c)]){if(_0x1029c6['oWgZo'](_0x1029c6['hJWUo'],_0x1029c6[_0xa18e01(0x2bd)]))_0x2dce18=_0xa0938e[_0x5bf96b[_0xa18e01(0x37c)]];else{const _0x3914d8={};_0x3914d8[_0xa18e01(0x2e9)]=_0x1029c6[_0xa18e01(0x31f)],_0x3914d8[_0xa18e01(0x227)]=_0x1029c6[_0xa18e01(0x366)];const _0x54cda0={};_0x54cda0[_0xa18e01(0x2e9)]=_0x1029c6['nMgDE'],_0x54cda0[_0xa18e01(0x227)]=_0x1029c6[_0xa18e01(0x366)];const _0x49796f={};_0x49796f[_0xa18e01(0x2e9)]=_0x1029c6['zHzRm'],_0x49796f[_0xa18e01(0x227)]=_0x1029c6[_0xa18e01(0x366)];const _0x206e6c={};_0x206e6c[_0xa18e01(0x2e9)]=_0x1029c6[_0xa18e01(0x22f)],_0x206e6c['type']=_0x1029c6[_0xa18e01(0x366)];const _0x5a912b={};_0x5a912b['description']=_0x1029c6[_0xa18e01(0x38e)],_0x5a912b[_0xa18e01(0x227)]=_0x1029c6['byZgA'];const _0x1dace6={};_0x1dace6[_0xa18e01(0x2e9)]=_0x1029c6[_0xa18e01(0x220)],_0x1dace6['type']=_0x1029c6[_0xa18e01(0x366)];const _0x2ab9f1={};_0x2ab9f1[_0xa18e01(0x2e9)]=_0x1029c6['YyqFX'],_0x2ab9f1[_0xa18e01(0x227)]=_0x1029c6['bpbLh'],_0x2ab9f1['default']=![];const _0x2a3aa1={};_0x2a3aa1[_0xa18e01(0x2e9)]=_0x1029c6[_0xa18e01(0x2ae)],_0x2a3aa1['type']=_0x1029c6['bpbLh'],_0x2a3aa1[_0xa18e01(0x2e4)]=![];const _0x291a0d={};_0x291a0d[_0xa18e01(0x2e9)]=_0x1029c6['PLLnD'],_0x291a0d[_0xa18e01(0x227)]=_0x1029c6[_0xa18e01(0x31d)],_0x291a0d[_0xa18e01(0x2e4)]=![];const _0x4fc15b={};return _0x4fc15b[_0xa18e01(0x234)]=_0x3914d8,_0x4fc15b[_0xa18e01(0x2d7)]=_0x54cda0,_0x4fc15b[_0xa18e01(0x32c)]=_0x49796f,_0x4fc15b[_0xa18e01(0x312)]=_0x206e6c,_0x4fc15b[_0xa18e01(0x329)]=_0x5a912b,_0x4fc15b[_0xa18e01(0x229)]=_0x1dace6,_0x4fc15b[_0xa18e01(0x33a)]=_0x2ab9f1,_0x4fc15b[_0xa18e01(0x396)]=_0x2a3aa1,_0x4fc15b[_0xa18e01(0x306)]=_0x291a0d,_0xc9b0b5[_0xa18e01(0x37a)](_0x3733ef[_0xa18e01(0x29a)])[_0xa18e01(0x39e)](_0xbda7d)[_0xa18e01(0x214)](_0x4fc15b)['help'](_0x1029c6['HlZwD'])[_0xa18e01(0x228)];}}global_registry[_0xa18e01(0x23b)]=![];if(_0x5bf96b['hubHa']){if(_0x1029c6[_0xa18e01(0x242)](_0x1029c6[_0xa18e01(0x322)],_0x1029c6[_0xa18e01(0x322)])){const _0xe44ba6=_0x1029c6['iyhlp'][_0xa18e01(0x28a)]('|');let _0x5761f9=0x0;while(!![]){switch(_0xe44ba6[_0x5761f9++]){case'0':global_registry['redisPassword']=_0x1029c6[_0xa18e01(0x389)];continue;case'1':global_registry[_0xa18e01(0x23b)]=!![];continue;case'2':logger[_0xa18e01(0x2d4)](_0x1029c6[_0xa18e01(0x27f)]);continue;case'3':global_registry[_0xa18e01(0x21c)]=_0x1029c6[_0xa18e01(0x307)];continue;case'4':global_registry[_0xa18e01(0x211)]=_0x1029c6['LLkjN'];continue;}break;}}else{const _0x342b6b=_0x1029c6['EULTd']['split']('|');let _0x24d1b6=0x0;while(!![]){switch(_0x342b6b[_0x24d1b6++]){case'0':_0x14abd3=null;continue;case'1':_0x5e2c73=_0x4365d3[_0xa18e01(0x2fb)];continue;case'2':_0x23dda1[_0xa18e01(0x23b)]&&_0x1029c6[_0xa18e01(0x33d)](_0x1cbac2,_0x5be7fc['kafkaUploader']);continue;case'3':_0x3b6e1b[_0xa18e01(0x2d4)](_0x40bfdb);continue;case'4':_0x1029c6[_0xa18e01(0x2b3)](_0x4b19bb[_0xa18e01(0x399)],_0x7c998)&&_0x4d01e8[_0xa18e01(0x399)]&&(_0x18aa04['isPrivateGrid']=!![]);continue;case'5':_0x15c445=_0x3b9519[_0xa18e01(0x1e3)];continue;case'6':_0x525164=_0x2d7f43[_0xa18e01(0x2e7)];continue;case'7':_0x1029c6[_0xa18e01(0x34d)](_0xa79377,_0x4b13b9,_0x391f46,_0x4d3ed0,_0x288121,_0x1be868,_0x3c28a6,_0x5a9b58,_0x19048d,_0x3a50fd,_0x8687c6,_0x4f2b41,_0x1a03f6[_0xa18e01(0x357)]);continue;case'8':const _0x2f852f={};_0x2f852f['type']=_0x4cc3ac[_0xa18e01(0x37f)],_0x2f852f[_0xa18e01(0x2c4)]=_0x226032,_0x893166['sendEventToBackend'](_0x3637ea,_0x2f852f);continue;case'9':_0x356445=_0x425547[_0xa18e01(0x2e1)];continue;case'10':_0x543937=null;continue;case'11':_0x52ee88=_0xa18e01(0x20e)+_0x29f0c3;continue;case'12':_0x3af5b0=_0x2b7c0d['maxNodes'];continue;case'13':_0x1f0d0b=_0x22fe29[_0xa18e01(0x36a)];continue;case'14':_0x48f3e5=_0x364d14['s3bucket'];continue;case'15':_0x21cad8=null;continue;}break;}}}if(_0x1029c6[_0xa18e01(0x2f8)](_0x1868ad,![])&&_0x1029c6[_0xa18e01(0x1f0)](_0x28b31e,![])){if(_0x1029c6['itpAI'](_0x1029c6['HBbMa'],_0x1029c6[_0xa18e01(0x289)]))_0x368e90=_0xaec570[_0xa18e01(0x1e9)],_0x8d21a8=_0x1029c6[_0xa18e01(0x21e)];else{_0x1029c6[_0xa18e01(0x236)](_0x2dce18,undefined)&&(_0x1029c6['YwSaY'](_0x1029c6[_0xa18e01(0x1e0)],_0x1029c6[_0xa18e01(0x28f)])?(_0xc864ee=_0x1029c6['KpDqZ'],await _0x1029c6[_0xa18e01(0x34c)](reportToGalactusAndSendToEDS,_0x5bf96b,_0x46456a,_0xc864ee,messageTypes[_0xa18e01(0x209)],_0x1029c6[_0xa18e01(0x2f0)],_0x1029c6['gjfIw'],_0x1029c6[_0xa18e01(0x27e)]),logger[_0xa18e01(0x204)](_0xc864ee),process[_0xa18e01(0x1dd)](0x1)):_0x3c6ec7=!![]);global_registry[_0xa18e01(0x2bf)]=_0x2dce18['id'],_0xc864ee='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x1627bf+_0xa18e01(0x238)+_0x2dce18['name']+_0xa18e01(0x241),logger[_0xa18e01(0x2d4)](_0xc864ee);const _0x4925bc={};_0x4925bc[_0xa18e01(0x227)]=WS_EVENTS['LOG'],_0x4925bc['message']=_0xc864ee,webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x4925bc),_0x2d2df8=_0x2dce18[_0xa18e01(0x2d1)],_0x3d079c=_0x2dce18[_0xa18e01(0x279)],_0x20c820=_0x2dce18[_0xa18e01(0x329)],_0x310416=_0x2dce18[_0xa18e01(0x36a)],_0x2ae981=_0x2dce18['instanceType'],_0x36742f=_0x2dce18[_0xa18e01(0x338)],_0xd60aa8=_0x2dce18[_0xa18e01(0x33c)],_0x51bd7c=_0x2dce18[_0xa18e01(0x1e6)],_0x3854bb=_0x2dce18[_0xa18e01(0x32a)],_0x43a211=_0x2dce18[_0xa18e01(0x2e7)],_0x545fac=_0x2dce18[_0xa18e01(0x2a4)],_0xb92639=_0xac10e1[_0xa18e01(0x2fb)],_0x376fed=_0xac10e1[_0xa18e01(0x2e1)],_0x36742f&&_0x1029c6['BvpIW'](_0x36742f[_0xa18e01(0x398)],0x0)&&(_0x1029c6[_0xa18e01(0x1f0)](_0x1029c6[_0xa18e01(0x272)],_0x1029c6[_0xa18e01(0x336)])?_0x1029c6['KWveq'](_0xc08d52,_0x243dae[_0xa18e01(0x2df)]):_0x36742f=null),_0x51bd7c&&_0x1029c6['QgphS'](_0x51bd7c['length'],0x0)&&(_0x1029c6['BvpIW'](_0x1029c6[_0xa18e01(0x1f3)],_0x1029c6['dURfe'])?_0x51bd7c=null:_0x211e50=null),_0x1029c6[_0xa18e01(0x21b)](_0x2dce18['privateGrid'],undefined)&&_0x2dce18['privateGrid']&&(_0x1029c6[_0xa18e01(0x1e1)](_0x1029c6[_0xa18e01(0x30e)],_0x1029c6[_0xa18e01(0x30e)])?global_registry['isPrivateGrid']=!![]:_0x5139a0[_0xa18e01(0x2d4)](_0xa18e01(0x2ec)+_0x1d2187+'\x20')),_0x1029c6['PsuBv'](updateGlobalRegistryWithConfig,_0x2d2df8,_0x3d079c,_0x20c820,_0x310416,_0x2ae981,_0x3854bb,_0x2dce18,_0xb92639,_0x376fed,_0x43a211,_0x545fac,_0x5bf96b[_0xa18e01(0x357)]),global_registry[_0xa18e01(0x23b)]&&(_0x1029c6[_0xa18e01(0x201)](_0x1029c6[_0xa18e01(0x327)],_0x1029c6['VzbBL'])?_0x35888b=_0x1029c6[_0xa18e01(0x2ee)]:_0x1029c6[_0xa18e01(0x1f7)](updateGlobalRegistryForHubHa,_0xac10e1[_0xa18e01(0x260)]));}}else{if(_0x1029c6['RlUIl'](_0x28b31e,!![])){if(_0x1029c6['VcEAc'](_0x1029c6['GEtmz'],_0x1029c6[_0xa18e01(0x2a9)])){_0xc864ee=_0xa18e01(0x20e)+_0x1627bf,logger[_0xa18e01(0x2d4)](_0xc864ee);const _0x320065={};_0x320065[_0xa18e01(0x227)]=WS_EVENTS[_0xa18e01(0x37f)],_0x320065[_0xa18e01(0x2c4)]=_0xc864ee,webSocketUtils['sendEventToBackend'](_0x46456a,_0x320065),_0x310416=_0x2dce18[_0xa18e01(0x36a)],_0x2ae981=_0x2dce18[_0xa18e01(0x1e3)],_0x36742f=null,_0xd60aa8=null,_0x51bd7c=null,_0x3854bb=_0x2dce18[_0xa18e01(0x32a)],_0x43a211=_0x2dce18[_0xa18e01(0x2e7)],_0x545fac=_0x2dce18[_0xa18e01(0x2a4)],_0xb92639=_0xac10e1['hubVersion'],_0x376fed=_0xac10e1[_0xa18e01(0x2e1)],_0x1029c6[_0xa18e01(0x2a1)](_0x2dce18['privateGrid'],undefined)&&_0x2dce18[_0xa18e01(0x399)]&&(_0x1029c6[_0xa18e01(0x22e)](_0x1029c6['hbOGD'],_0x1029c6[_0xa18e01(0x352)])?_0x5a0d4a=_0x1029c6[_0xa18e01(0x35d)]:global_registry[_0xa18e01(0x2d9)]=!![]),_0x1029c6[_0xa18e01(0x2b2)](updateGlobalRegistryWithConfig,_0x2d2df8,_0x3d079c,_0x20c820,_0x310416,_0x2ae981,_0x3854bb,_0x2dce18,_0xb92639,_0x376fed,_0x43a211,_0x545fac,_0x5bf96b[_0xa18e01(0x357)]),global_registry[_0xa18e01(0x23b)]&&(_0x1029c6[_0xa18e01(0x368)](_0x1029c6[_0xa18e01(0x361)],_0x1029c6[_0xa18e01(0x230)])?_0x1029c6[_0xa18e01(0x2f9)](_0x55b34b,_0x995070['uploaderVersion']):_0x1029c6[_0xa18e01(0x1f7)](updateGlobalRegistryForHubHa,_0xac10e1[_0xa18e01(0x2df)]));}else _0x1dd4a1['isPrivateGrid']=!![];}else{if(_0x1029c6[_0xa18e01(0x242)](_0x1029c6[_0xa18e01(0x245)],_0x1029c6[_0xa18e01(0x202)])){const _0x5c5126={'azure.workload.identity/use':_0x1029c6[_0xa18e01(0x2af)],..._0x36203a[0x0]['spec']['template'][_0xa18e01(0x331)][_0xa18e01(0x2f7)]};_0x374d36[0x0]['spec'][_0xa18e01(0x205)][_0xa18e01(0x331)][_0xa18e01(0x2f7)]=_0x5c5126,_0x1aeb32[0x0][_0xa18e01(0x270)][_0xa18e01(0x205)][_0xa18e01(0x270)][_0xa18e01(0x244)]=_0x1029c6[_0xa18e01(0x26a)];}else{const _0x3aa669=_0x1029c6[_0xa18e01(0x363)][_0xa18e01(0x28a)]('|');let _0x7f19ec=0x0;while(!![]){switch(_0x3aa669[_0x7f19ec++]){case'0':logger['info'](_0xc864ee);continue;case'1':global_registry['cloudProvider']=_0x2d2df8;continue;case'2':const _0x5830b7={};_0x5830b7[_0xa18e01(0x227)]=WS_EVENTS[_0xa18e01(0x37f)],_0x5830b7[_0xa18e01(0x2c4)]=_0xc864ee,webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x5830b7);continue;case'3':global_registry[_0xa18e01(0x279)]=_0x3d079c;continue;case'4':global_registry[_0xa18e01(0x2e1)]=_0xac10e1['browserVersion'];continue;case'5':global_registry['hubVersion']=_0xac10e1['hubVersion'];continue;case'6':global_registry[_0xa18e01(0x2db)]=_0x20c820;continue;case'7':_0xc864ee='Spawning\x20the\x20grid\x20'+_0x1627bf+_0xa18e01(0x353)+_0x3d079c+'\x27';continue;case'8':const _0x398ea7={};_0x398ea7[_0xa18e01(0x227)]=WS_EVENTS[_0xa18e01(0x1df)],_0x398ea7[_0xa18e01(0x2c4)]=_0x1029c6[_0xa18e01(0x2ea)],webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x398ea7);continue;}break;}}}}const _0x26c6df=await _0x1029c6[_0xa18e01(0x1ea)](getCloudProviderObject,_0x2d2df8,_0x3d079c,_0x1627bf,_0x46456a,webSocketUtils,_0x5bf96b);_0x1029c6[_0xa18e01(0x243)](_0x2d2df8,AZURE)&&(_0x1029c6[_0xa18e01(0x300)](_0x1029c6['JgNil'],_0x1029c6[_0xa18e01(0x266)])?(_0x408c3c[_0xa18e01(0x329)]=_0x281ac6,_0x26c44f['cloudProvider']=_0x2d23dc,_0x3e2d73[_0xa18e01(0x313)]=!![],_0x3c1577[_0xa18e01(0x265)]=_0x1389f7['clusterAutoupgrade']):_0x26c6df[_0xa18e01(0x308)]());let _0x3b92a6;if(_0x1029c6[_0xa18e01(0x2f8)](_0x1868ad,![])){_0xc864ee=_0xa18e01(0x395)+_0x20c820+').';const _0x375457={};_0x375457[_0xa18e01(0x227)]=WS_EVENTS[_0xa18e01(0x37f)],_0x375457['message']=_0xc864ee,webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x375457),logger['info'](_0xc864ee);const _0x2cce61=await _0x26c6df[_0xa18e01(0x24d)]();if(_0x2cce61){if(_0x1029c6['FMtnX'](_0x1029c6[_0xa18e01(0x334)],_0x1029c6[_0xa18e01(0x2d6)])){const _0x4cfb4d={};_0x4cfb4d['type']=WS_EVENTS[_0xa18e01(0x37f)],_0x4cfb4d[_0xa18e01(0x2c4)]=_0xa18e01(0x1fe)+_0x3d079c+_0xa18e01(0x1db),webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x4cfb4d,_0x1029c6['aXeQn']),logger['info'](_0xa18e01(0x1fe)+_0x3d079c+_0xa18e01(0x1db)),_0x1868ad=!![];if(_0x1029c6[_0xa18e01(0x231)](_0x28b31e,!![])){if(_0x1029c6[_0xa18e01(0x1eb)](_0x1029c6[_0xa18e01(0x2b1)],_0x1029c6['zzmPA']))_0x6c9a43['gridProfile']=_0x63da0c['gridProfile'];else throw new Error('Cluster\x20'+_0x3d079c+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}else _0x319a1e=_0x18e01c[_0x8fc534[_0xa18e01(0x37c)]];}else{const _0x81ecf9={};_0x81ecf9[_0xa18e01(0x227)]=WS_EVENTS[_0xa18e01(0x37f)],_0x81ecf9[_0xa18e01(0x2c4)]=_0x1029c6[_0xa18e01(0x330)],webSocketUtils['sendEventToBackend'](_0x46456a,_0x81ecf9),logger[_0xa18e01(0x2d4)](_0x1029c6[_0xa18e01(0x330)]);const _0x3a0f4a=_0x1029c6[_0xa18e01(0x295)](_0x36742f,null)&&_0x1029c6[_0xa18e01(0x207)](_0x36742f,undefined),_0x373828=_0x1029c6[_0xa18e01(0x261)](_0x51bd7c,null)&&_0x1029c6[_0xa18e01(0x22e)](_0x51bd7c,undefined)&&_0x1029c6[_0xa18e01(0x38b)](_0x51bd7c['length'],0x0);if(_0x3a0f4a){_0x1029c6[_0xa18e01(0x236)](_0x373828,![])&&(_0xc864ee=_0x1029c6['Bdhid'],await _0x1029c6['nVSmg'](reportToGalactusAndSendToEDS,_0x5bf96b,_0x46456a,_0xc864ee,messageTypes[_0xa18e01(0x209)],_0x1029c6['VoCVy'],_0x1029c6[_0xa18e01(0x32f)],_0x1029c6[_0xa18e01(0x27e)]),logger[_0xa18e01(0x204)](_0xc864ee),process[_0xa18e01(0x1dd)](0x1));const _0x39d36a=await _0x26c6df[_0xa18e01(0x1fd)](_0x36742f);_0x1029c6[_0xa18e01(0x310)](_0x39d36a,![])?(_0xc864ee=_0x1029c6['YUxYN'],await _0x1029c6[_0xa18e01(0x375)](reportToGalactusAndSendToEDS,_0x5bf96b,_0x46456a,_0xc864ee,messageTypes['ERROR'],_0x1029c6['VoCVy'],_0x1029c6[_0xa18e01(0x27d)],_0x1029c6[_0xa18e01(0x27e)]),logger['error'](_0xc864ee),process[_0xa18e01(0x1dd)](0x1)):logger['info'](_0xa18e01(0x2ec)+_0x36742f+'\x20');const _0x590141=await _0x26c6df[_0xa18e01(0x34a)](_0x51bd7c,_0x36742f);_0x1029c6[_0xa18e01(0x393)](_0x590141[0x0],![])?(_0xc864ee=_0xa18e01(0x318)+JSON['stringify'](_0x590141[0x1])+_0xa18e01(0x232)+_0x36742f+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x1029c6[_0xa18e01(0x26c)](reportToGalactusAndSendToEDS,_0x5bf96b,_0x46456a,_0xc864ee,messageTypes[_0xa18e01(0x209)],_0x1029c6[_0xa18e01(0x2f0)],_0x1029c6[_0xa18e01(0x212)],_0x1029c6[_0xa18e01(0x27e)]),logger['error'](_0xc864ee),process[_0xa18e01(0x1dd)](0x1)):logger[_0xa18e01(0x2d4)](_0xa18e01(0x216)+JSON[_0xa18e01(0x2e3)](_0x51bd7c)+'\x20'),[_0x36742f,_0x51bd7c]=await _0x26c6df[_0xa18e01(0x1ec)](_0x36742f,_0x51bd7c);}else{const _0x10c18b=_0x1029c6[_0xa18e01(0x30a)][_0xa18e01(0x28a)]('|');let _0x34aeb5=0x0;while(!![]){switch(_0x10c18b[_0x34aeb5++]){case'0':logger[_0xa18e01(0x2d4)](_0x1029c6[_0xa18e01(0x23a)]);continue;case'1':const _0xa8183a={};_0xa8183a[_0xa18e01(0x227)]=WS_EVENTS[_0xa18e01(0x37f)],_0xa8183a[_0xa18e01(0x2c4)]=_0x1029c6[_0xa18e01(0x23a)],webSocketUtils['sendEventToBackend'](_0x46456a,_0xa8183a);continue;case'2':logger[_0xa18e01(0x2d4)](_0x1029c6[_0xa18e01(0x39d)]);continue;case'3':const _0x1e2fbd={};_0x1e2fbd[_0xa18e01(0x227)]=WS_EVENTS[_0xa18e01(0x37f)],_0x1e2fbd[_0xa18e01(0x2c4)]=_0x1029c6['EfqOV'],webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x1e2fbd);continue;case'4':[_0x36742f,_0x51bd7c]=await _0x26c6df['setupNewCluster'](_0x36742f,_0x51bd7c);continue;}break;}}}}_0x1868ad&&_0x1029c6[_0xa18e01(0x237)](_0x2d2df8,AZURE)&&(await _0x26c6df[_0xa18e01(0x29c)](),await _0x26c6df[_0xa18e01(0x2c7)]());const [_0x154f4c,_0x3b48eb,_0x15c1f9,_0x51f3fd,_0xc3b744,_0x29552f,_0x5c194e]=await _0x1029c6['fojlH'](createK8sClient,_0x26c6df,_0x5bf96b[_0xa18e01(0x349)]);_0x1029c6['eBQzE'](_0x1868ad,![])&&_0x1029c6[_0xa18e01(0x1e1)](_0x2d2df8,AWS)&&(global_registry[_0xa18e01(0x271)]=!![],_0x3b92a6=await _0x26c6df[_0xa18e01(0x2b8)](_0x154f4c,_0x5bf96b));if(_0x1029c6['BShTb'](_0x1868ad,![])&&global_registry[_0xa18e01(0x23b)])try{await _0x26c6df['setupHubHa'](_0x29552f,_0x5c194e,_0x5bf96b,_0x36742f,_0x51bd7c);const _0x2e8e4b={};_0x2e8e4b[_0xa18e01(0x227)]=WS_EVENTS['LOG'],_0x2e8e4b['message']=_0x1029c6[_0xa18e01(0x283)],webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x2e8e4b);!await _0x1029c6[_0xa18e01(0x2be)](namespaceExists,_0x154f4c,global_registry[_0xa18e01(0x21c)])&&await _0x1029c6['cqstl'](createNamespace,_0x154f4c,global_registry['hubHaNameSpace']);logger[_0xa18e01(0x2d4)](_0x1029c6[_0xa18e01(0x381)]);let _0x41efc1=await fs[_0xa18e01(0x382)](path[_0xa18e01(0x1dc)](__dirname,_0x1029c6[_0xa18e01(0x388)],_0x1029c6[_0xa18e01(0x1fb)],_0x1029c6['RpiwR'],_0x1029c6[_0xa18e01(0x326)]),_0x1029c6[_0xa18e01(0x2cd)]);_0x41efc1=_0x41efc1[_0xa18e01(0x215)](/<RedisClientPassword>/g,_0x1029c6[_0xa18e01(0x217)](encodeBase64,global_registry['redisPassword'])),_0x41efc1=_0x41efc1['replace'](/<KafkaClientPassword>/g,_0x1029c6[_0xa18e01(0x291)](encodeBase64,global_registry['kafkaPassword'])),_0x41efc1=_0x41efc1[_0xa18e01(0x215)](/<BstackUsername>/g,_0x1029c6[_0xa18e01(0x2ac)](encodeBase64,global_registry['bstackUsername'])),_0x41efc1=_0x41efc1[_0xa18e01(0x215)](/<BstackAccessKey>/g,_0x1029c6['HaxzT'](encodeBase64,global_registry[_0xa18e01(0x1f5)]));const _0x1fa96b=yaml['loadAll'](_0x41efc1);await _0x1029c6[_0xa18e01(0x2c0)](kubeApply,_0x1fa96b,_0x5c194e),logger[_0xa18e01(0x2d4)](_0x1029c6[_0xa18e01(0x320)]);let _0x3e8523=_0x1029c6[_0xa18e01(0x30d)];if(_0x1029c6[_0xa18e01(0x310)](_0x2d2df8,AZURE))_0x3e8523=_0x1029c6[_0xa18e01(0x2f5)];else _0x1029c6['kuzhX'](_0x2d2df8,GCP)&&(_0x3e8523=_0x1029c6['kSOjN']);logger[_0xa18e01(0x2d4)](_0x1029c6[_0xa18e01(0x2f1)]);let _0x264586=await fs[_0xa18e01(0x382)](path[_0xa18e01(0x1dc)](__dirname,_0x1029c6[_0xa18e01(0x388)],_0x1029c6[_0xa18e01(0x1fb)],_0x1029c6[_0xa18e01(0x2ef)],_0x1029c6[_0xa18e01(0x25d)]),_0x1029c6['EWPSf']);_0x264586=_0x264586[_0xa18e01(0x215)](/<HubHaNameSpace>/g,global_registry[_0xa18e01(0x21c)]),_0x264586=_0x264586[_0xa18e01(0x215)](/<StorageClassName>/g,_0x3e8523);const _0x4ea112=yaml[_0xa18e01(0x2f4)](_0x264586);await _0x1029c6[_0xa18e01(0x223)](kubeApply,_0x4ea112,_0x5c194e),logger['info'](_0x1029c6[_0xa18e01(0x269)]),logger[_0xa18e01(0x2d4)](_0x1029c6['HOkeC']);let _0x41da41=await fs[_0xa18e01(0x382)](path[_0xa18e01(0x1dc)](__dirname,_0x1029c6[_0xa18e01(0x388)],_0x1029c6[_0xa18e01(0x1fb)],_0x1029c6['RpiwR'],_0x1029c6[_0xa18e01(0x2c8)]),_0x1029c6[_0xa18e01(0x2cd)]);_0x41da41=_0x41da41[_0xa18e01(0x215)](/<HubHaNameSpace>/g,global_registry[_0xa18e01(0x21c)]),_0x41da41=_0x41da41[_0xa18e01(0x215)](/<StorageClassName>/g,_0x3e8523);const _0x5569af=yaml[_0xa18e01(0x2f4)](_0x41da41);await _0x1029c6[_0xa18e01(0x223)](kubeApply,_0x5569af,_0x5c194e),logger[_0xa18e01(0x2d4)](_0x1029c6['vbFlO']),logger['info'](_0x1029c6[_0xa18e01(0x21d)]);let _0x4b0998=await fs[_0xa18e01(0x382)](path[_0xa18e01(0x1dc)](__dirname,_0x1029c6['ySDeN'],_0x1029c6[_0xa18e01(0x1fb)],_0x1029c6['RpiwR'],_0x1029c6[_0xa18e01(0x297)]),_0x1029c6[_0xa18e01(0x2cd)]);_0x4b0998=_0x4b0998[_0xa18e01(0x215)](/<UploaderImageVersion>/g,global_registry[_0xa18e01(0x1e2)]),_0x4b0998=_0x4b0998[_0xa18e01(0x215)](/<HubHaNameSpace>/g,global_registry[_0xa18e01(0x21c)]);const _0x55b356=yaml[_0xa18e01(0x2f4)](_0x4b0998);_0x1029c6[_0xa18e01(0x278)](global_registry[_0xa18e01(0x2d1)],AZURE)&&(_0x55b356[0x0][_0xa18e01(0x270)]['template'][_0xa18e01(0x331)][_0xa18e01(0x2f7)]={'azure.workload.identity/use':_0x1029c6[_0xa18e01(0x2af)],..._0x55b356[0x0]['spec'][_0xa18e01(0x205)][_0xa18e01(0x331)][_0xa18e01(0x2f7)]},_0x55b356[0x0]['spec'][_0xa18e01(0x205)][_0xa18e01(0x270)][_0xa18e01(0x244)]=_0x1029c6['zYFbL']);await _0x1029c6[_0xa18e01(0x2c0)](kubeApply,_0x55b356,_0x5c194e),logger[_0xa18e01(0x2d4)](_0x1029c6[_0xa18e01(0x345)]);const _0x20d94d={};_0x20d94d[_0xa18e01(0x227)]=WS_EVENTS[_0xa18e01(0x37f)],_0x20d94d[_0xa18e01(0x2c4)]=_0x1029c6[_0xa18e01(0x370)],webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x20d94d),logger['info'](_0x1029c6[_0xa18e01(0x365)]);}catch(_0x4ac268){const _0x17f21f=_0x1029c6[_0xa18e01(0x23c)][_0xa18e01(0x28a)]('|');let _0x44f5e8=0x0;while(!![]){switch(_0x17f21f[_0x44f5e8++]){case'0':await _0x26c6df[_0xa18e01(0x2ab)](_0x154f4c,global_registry[_0xa18e01(0x2db)]);continue;case'1':await _0x1029c6[_0xa18e01(0x25b)](reportToGalactusAndSendToEDS,_0x5bf96b,_0x46456a,_0xc864ee,messageTypes[_0xa18e01(0x209)],_0x1029c6[_0xa18e01(0x2f0)],_0x1029c6[_0xa18e01(0x325)],_0x1029c6['RZUfG']);continue;case'2':logger[_0xa18e01(0x204)](_0xc864ee);continue;case'3':process[_0xa18e01(0x1dd)](0x1);continue;case'4':_0xc864ee='Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20'+_0x4ac268['message'];continue;}break;}}try{_0x17e4d8=_0x1029c6[_0xa18e01(0x37b)](kebabCase,_0x1627bf),logger[_0xa18e01(0x2d4)](_0x1029c6[_0xa18e01(0x376)]);const _0x237db1={};_0x237db1['type']=WS_EVENTS[_0xa18e01(0x37f)],_0x237db1[_0xa18e01(0x2c4)]=_0x1029c6[_0xa18e01(0x376)],webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x237db1);if(_0x1029c6[_0xa18e01(0x239)](_0x17e4d8,_0x1029c6[_0xa18e01(0x26a)])){const _0x53ae17={};_0x53ae17['createdBy']=_0x1029c6[_0xa18e01(0x2b6)],_0x53ae17[_0xa18e01(0x385)]=_0x1029c6['zopWF'];const _0x5c6589={};_0x5c6589[_0xa18e01(0x1ed)]=_0x17e4d8,_0x5c6589['annotations']=_0x53ae17;const _0x5986f9={};_0x5986f9[_0xa18e01(0x331)]=_0x5c6589;const _0x48ded3=_0x5986f9,_0x2a1f0e={};_0x2a1f0e[_0xa18e01(0x23e)]=_0x48ded3,await _0x154f4c['createNamespace'](_0x2a1f0e),logger['info'](_0x1029c6[_0xa18e01(0x2fa)]);}const _0x5bc1a5={};_0x5bc1a5[_0xa18e01(0x227)]=WS_EVENTS['LOG'],_0x5bc1a5[_0xa18e01(0x2c4)]=_0x1029c6[_0xa18e01(0x383)],webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x5bc1a5);const _0x55d80b={};_0x55d80b[_0xa18e01(0x227)]=WS_EVENTS[_0xa18e01(0x37f)],_0x55d80b[_0xa18e01(0x2c4)]=_0x1029c6[_0xa18e01(0x2ca)],webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x55d80b),logger[_0xa18e01(0x2d4)](_0x1029c6[_0xa18e01(0x32e)]);let _0x34f76e={};_0x1029c6['rFwhE'](_0x2d2df8,AZURE)&&(_0x34f76e={'clientId':await _0x26c6df[_0xa18e01(0x2b0)]('turboscale-managed-identity-'+_0x3d079c)});await _0x1029c6[_0xa18e01(0x221)](addGridComponents,_0x154f4c,_0x3b48eb,_0x15c1f9,_0x51f3fd,_0x17e4d8,_0x3d079c,_0x3b92a6,_0xc3b744,_0x5c194e,_0x34f76e),_0xc864ee=_0x1029c6[_0xa18e01(0x233)],logger[_0xa18e01(0x2d4)](_0xc864ee);const _0x6caa10={};_0x6caa10[_0xa18e01(0x227)]=WS_EVENTS[_0xa18e01(0x37f)],_0x6caa10[_0xa18e01(0x2c4)]=_0xc864ee,webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x6caa10),_0xc864ee=_0x1029c6[_0xa18e01(0x2b4)],logger[_0xa18e01(0x2d4)](_0xc864ee);const _0x1426b2={};_0x1426b2[_0xa18e01(0x227)]=WS_EVENTS[_0xa18e01(0x37f)],_0x1426b2[_0xa18e01(0x2c4)]=_0xc864ee,webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x1426b2),await _0x1029c6[_0xa18e01(0x267)](waitForDeployment,_0x3b48eb,_0x17e4d8,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x255641=await _0x1029c6[_0xa18e01(0x2d0)](getNamespaceUID,_0x154f4c,_0x17e4d8),_0x2260cd=global_registry[_0xa18e01(0x2d9)]?_0x1029c6['aGFle']:_0x1029c6[_0xa18e01(0x277)],_0x4e2c06={};_0x4e2c06[_0xa18e01(0x1ed)]=_0x2260cd,_0x4e2c06[_0xa18e01(0x1ef)]=_0x1029c6[_0xa18e01(0x38c)];const _0x303d13=await _0x154f4c['readNamespacedService'](_0x4e2c06);let _0x2c8754=_0x26c6df[_0xa18e01(0x316)](_0x303d13)+'/'+_0x17e4d8,_0x450420=_0x1029c6[_0xa18e01(0x2ee)];try{const _0xa8621=_0xa18e01(0x294)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x255641,_0x5ca883=await _0x1029c6['cqstl'](got,_0xa8621,_0x22b9e8);(_0x1029c6[_0xa18e01(0x371)](_0x5ca883,null)||_0x1029c6[_0xa18e01(0x282)](_0x5ca883,undefined))&&(_0xc864ee=_0x1029c6[_0xa18e01(0x280)],await _0x1029c6[_0xa18e01(0x309)](reportToGalactusAndSendToEDS,_0x5bf96b,_0x46456a,_0xc864ee,messageTypes[_0xa18e01(0x209)],_0x1029c6[_0xa18e01(0x2f0)],_0x1029c6['sxqIX'],_0x1029c6[_0xa18e01(0x27e)]),logger[_0xa18e01(0x204)](_0xc864ee),process[_0xa18e01(0x1dd)](0x1));_0x1029c6[_0xa18e01(0x20f)](_0x5ca883['statusCode'],0x191)&&(_0xc864ee=_0x1029c6[_0xa18e01(0x250)],await _0x1029c6[_0xa18e01(0x375)](reportToGalactusAndSendToEDS,_0x5bf96b,_0x46456a,_0xc864ee,messageTypes[_0xa18e01(0x209)],_0x1029c6[_0xa18e01(0x2f0)],_0x1029c6[_0xa18e01(0x26d)],_0x1029c6['RZUfG']),logger[_0xa18e01(0x204)](_0xc864ee),process[_0xa18e01(0x1dd)](0x1));_0x1029c6[_0xa18e01(0x201)](_0x5ca883[_0xa18e01(0x317)],0xc8)&&(_0xc864ee='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0xa18e01(0x2e3)](_0x5ca883),await _0x1029c6[_0xa18e01(0x257)](reportToGalactusAndSendToEDS,_0x5bf96b,_0x46456a,_0xc864ee,messageTypes[_0xa18e01(0x209)],_0x1029c6[_0xa18e01(0x2f0)],_0x1029c6['MUnaz'],_0x1029c6[_0xa18e01(0x27e)]),logger[_0xa18e01(0x204)](_0xc864ee),process[_0xa18e01(0x1dd)](0x1));const _0x3fc710=JSON[_0xa18e01(0x218)](_0x5ca883['body']);_0x3fc710[_0xa18e01(0x1e9)]&&(_0x2c8754=_0x3fc710['route53'],_0x450420=_0x1029c6[_0xa18e01(0x21e)]),global_registry['isPrivateGrid']&&(_0x450420=_0x1029c6[_0xa18e01(0x2ee)]);}catch(_0x2313f1){}_0xc864ee='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x2c8754+'\x20',logger['info'](_0xc864ee);const _0x571181={};_0x571181[_0xa18e01(0x227)]=WS_EVENTS[_0xa18e01(0x37f)],_0x571181['message']=_0xc864ee,webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x571181),_0xc864ee=_0xa18e01(0x2a7)+_0x450420+_0xa18e01(0x377)+_0x2c8754+_0xa18e01(0x2c5),logger[_0xa18e01(0x2d4)](_0xc864ee);const _0x2d472c={};_0x2d472c[_0xa18e01(0x227)]=WS_EVENTS[_0xa18e01(0x37f)],_0x2d472c[_0xa18e01(0x2c4)]=_0xc864ee,webSocketUtils['sendEventToBackend'](_0x46456a,_0x2d472c);const _0x305240={};_0x305240[_0xa18e01(0x227)]=WS_EVENTS[_0xa18e01(0x298)],_0x305240[_0xa18e01(0x2c4)]=_0xa18e01(0x21a)+_0x2c8754,webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x305240),await webSocketUtils['delay'](0x7d0);}catch(_0x45910c){logger[_0xa18e01(0x204)]('Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20'+_0x45910c+'\x20\x0a'+JSON['stringify'](_0x45910c[_0xa18e01(0x29e)]));if(_0x1029c6[_0xa18e01(0x310)](_0x1868ad,![]))try{logger[_0xa18e01(0x2d4)](_0x1029c6[_0xa18e01(0x29d)]),await _0x1029c6['lnTJI'](removeGridComponents,_0x154f4c,_0x3b48eb,_0x15c1f9,_0x51f3fd,_0x17e4d8),await _0x26c6df[_0xa18e01(0x2ab)](_0x154f4c,global_registry['clusterRegion']);}catch(_0x3d1219){logger['error'](_0xa18e01(0x344)+_0x3d1219+'\x20\x0a'+JSON['stringify'](_0x3d1219[_0xa18e01(0x29e)]));}throw _0x45910c;}}catch(_0x3c7195){const _0x44550e=_0xa18e01(0x274)+_0x3c7195+'\x20\x0a'+JSON[_0xa18e01(0x2e3)](_0x3c7195[_0xa18e01(0x29e)]);if(_0x46456a){const _0x5c149c={};_0x5c149c['type']=WS_EVENTS['LOG'],_0x5c149c[_0xa18e01(0x2c4)]=_0x44550e,webSocketUtils[_0xa18e01(0x2f6)](_0x46456a,_0x5c149c,_0x1029c6[_0xa18e01(0x27e)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x1227c4={};_0x1227c4[_0xa18e01(0x204)]=_0x44550e,await _0x1029c6[_0xa18e01(0x2e5)](sendInstrumentationEvent,_0x5bf96b,_0x1029c6[_0xa18e01(0x2f0)],messageTypes[_0xa18e01(0x209)],_0x1029c6['nQlpA'],_0x1227c4,_0x5bf96b),logger['error'](_0x44550e);}process[_0xa18e01(0x1dd)](0x0);};function a9_0x4432(){const _0x5651df=['name','LLkjN','namespace','itpAI','saWMZ','WfGIc','dURfe','get-grid-url-non-200','bstackAccesskey','reconnecting-websocket','tRTHK','jpGkd','Cluster:\x20','../../utils/utilityMethods','BMvuO','create-grid-checks-null-response','isVPCPresent','Cluster\x20','Grid\x20spawned\x20on\x20the\x20cluster','LDfoR','FMtnX','XYuCD','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','error','template','prespawned-cluster-args-not-passed','fklAo','existsSync','ERROR','4625001NIUBqO','phxHG','non-aws-azure-cluster','WdmTg','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','EOShp','ZEEpN','kafkaPassword','pBneQ','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','options','replace','Found\x20Subnets:\x20','SfhTN','parse','../../utils/createk8sClient','CLI\x20run\x20finished:\x20','zOZBV','hubHaNameSpace','jeDjQ','RlfUe','create-grid-called','pGABd','JyxZh','kafHn','CAvkY','browserstack-secret.yaml','https','/packages/cli/create-grid-checks','type','argv','private-grid','connectionTimeout','addListeners','JfZcj','OirzP','VcEAc','mrDSd','lIihH','yJDMi','\x20are\x20not\x20present\x20in\x20VPC:\x20','SrsWh','grid-name','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','oWgZo','RlUIl','\x20using\x20\x27','GMWVf','vgZtI','enableHubHa','oUajh','Create\x20a\x20new\x20Automation\x20grid.','body','Added\x20Secret\x20Mapping','LjqOJ','\x27\x20grid\x20profile','petNe','DYrbr','serviceAccountName','gBbJB','got','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','FqUVY','XYZVq','waYJA','caWpr','KsrSF','isClusterPresent','turboscale-uploader.yaml','get-grid-url-auth-failed','HEiAC','desc','aGFFO','OSobX','Created\x20Hub\x20HA\x20resources','yAZJe','../../cloudproviders/utils','IRnQa','dewCn','toLowerCase','Creating\x20Hub\x20HA\x20resources','MqlYW','INFO','yExvZ','Spawning\x20Grid\x20on\x20the\x20Cluster','SfzNC','uploaderVersion','UWqeQ','WMOCi','Deleting\x20the\x20CloudFormation\x20Stacks','5YoCESt','clusterAutoUpgrade','fZVSw','QYJHC','NuyHa','fFLVf','zYFbL','XmnkL','IliFY','pzlxY','OLcHS','create-grid-checks-invalid-profile','spec','isNewAWSCluster','jdtPb','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','YPEdZ','oEHCN','QCFNj','rFwhE','clusterName','http','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','aXeQn','LotWs','RZUfG','yUtiA','GWuBl','441955PgJjpQ','pdAQG','vhIZG','Namespace\x20created','kxktD','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','efs-csi','LOYEJ','HFZMO','split','Creating\x20namespace','PdiiB','username','path','dVqNE','xuxQF','EuMdn','2|3|0|4|1','../../config/logger','https://','tvPeO','azurefile-csi-premium','bbOrL','CLI_RUN_FINISHED','grid','create','warn','updateClusterAlreadyPresent','OCTkG','stack','Trtde','Browserstack','YwSaY','2535532dfvxgR','4875906VJjmXy','maxNodes','redisPassword','Adding\x20Websocket\x20listeners','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','Enabling\x20Hub\x20HA\x20flow','Vdiot','create-grid-checks-non-200','deleteCluster','HaxzT','xSWrm','mVUym','eGRXt','getResourceClientId','zzmPA','pwmcx','SUfwX','vnVsH','Added\x20Turboscale\x20Uploader\x20deployment.','zopWF','Flag\x20to\x20enable\x20Hub\x20HA','setupAutoscaler','UkRNzNYCBU','ingress-nginx-controller','3|2|4|1|0','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','hJWUo','ECwPL','gridProfileId','lubni','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','password','48541350JYBAek','message','/wd/hub','WbSVC','createOtherResources','CmNjw','wRowW','JwUhI','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','debug','EWPSf','gfrZj','wLKbY','cqstl','cloudProvider','ExDNc','Adding\x20Redis\x20deployment...','info','gBJXS','catKE','grid-profile','nfPqA','isPrivateGrid','pre-spawned-subnets-not-selected','clusterRegion','builder','pxCtO','IbVVu','kafkaUploader','xCIXF','browserVersion','bitnami-redis.yaml','stringify','default','DxZFe','8|7|0|2|1|6|3|5|4','minNodes','IFvNF','description','OuRyY','yFHaA','Found\x20VPC:\x20','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','yUOEP','RpiwR','VoCVy','ODuyu','Namespace\x20Created','QzYYg','loadAll','ugDlO','sendEventToBackend','labels','bEQZY','SNEcP','PRvSE','hubVersion','handler','RUcwm','includes','nZDzx','QgphS','WANNg','../../utils/webSocketUtils','zyNje','tpBHH','5706513RJGHKm','cluster-autoupgrade','Gfkjz','sendResourceDataToHST','vPxQU','FBoJE','tHojT','premium-rwo','VhBVX','PJasi','aEOSP','CbffF','CLI\x20run\x20started','cloud-provider','newCluster','twgHP','6|8|1|0|5|4|7|3|2','getGridHostname','statusCode','Subnets:\x20','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Adding\x20Secret\x20Mapping','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','uTHwk','bpbLh','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','lHJEC','kHSuG','4xKPLSP','ZztdF','4|2|1|0|3','uuid','ZXAVg','uUhLz','VzbBL','create-grid-checks-auth-failed','region','s3bucket','defaultGridProfile','cluster-name','SeceQ','qFEks','FNFqU','feuUx','metadata','requestId','MYOsF','BTeZt','zNJUA','qhCnr','alreadyPresent','vpc','ujXaf','skip-tls-cert-verify','templates','securityGroups','MiDxD','utf-8','<UsernamePlaceholder>','YQUzB','UcQIx','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','browserstack','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','JEOyZ','user','pre-spawned-invalid-vpc','gMWNl','skipTlsCertVerify','isSubnetsValid','string','rOXxT','PsuBv','10uNEoth','mMkLS','<PasswordPlaceholder>','ByGLO','hbOGD','\x20in\x20existing\x20cluster\x20\x27','gridName','UdEVn','../..','clusterAutoupgrade','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','bitnami-kafka.yaml','PwFgg','JeqZf','Spawning\x20the\x20grid\x20','kSOjN','wjohs','command','Added\x20Kafka\x20deployment.','IfEwf','Added\x20Redis\x20deployment.','FxUyq','WebSocket','hmNAo','byZgA','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','pYDrr','HBHHm','concurrency','iWawj','ghkLK','gridProfiles','tfOwi','help','okJke','avZrh','11|3|8|13|5|15|0|10|14|6|12|1|9|4|7|2','bstackUsername','hubharesources','hTpwo','bjgnO','://','1936JXlDix','Create\x20a\x20private/public\x20grid.','usage','KWveq','gridProfile','Skip\x20insecure\x20cert\x20verification.','Pjpfp','LOG','rrKCo','HnaOQ','readFileAsync','qCNSe','VtJNi','managedBy','boolean','KUBfw','ySDeN','fPMEx','Cluster\x20created\x20successfully','AFEgK','qQOyB','Sybqh','UKyaV','qixEn','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','eXMTx','TKNPB','qWSam','Hub\x20HA\x20setup\x20completed\x20successfully.','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','hub-ha','16107pTtDYd','length','privateGrid','readFileSync','knpoo','Grid\x20profile\x20fetched\x20from\x20backend','EfqOV','epilogue','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','join','exit','3|2|0|4|1','CLI_RUN_STARTED','qaKBT','bHPKi','uploaderImageVersion','instanceType','hub-ha-deployments-failed','TsMqY','subnets','PbLtW','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','route53','XuObm','pDOny','setupNewCluster'];a9_0x4432=function(){return _0x5651df;};return a9_0x4432();}
|
|
1
|
+
function a9_0x2134(_0x57c250,_0x2a88a5){const _0x42968a=a9_0x4296();return a9_0x2134=function(_0x2134fb,_0x5e033b){_0x2134fb=_0x2134fb-0x85;let _0x4c7c4a=_0x42968a[_0x2134fb];return _0x4c7c4a;},a9_0x2134(_0x57c250,_0x2a88a5);}const a9_0x1d7ccf=a9_0x2134;(function(_0x1c63d3,_0x56cc6a){const _0x3d5d21=a9_0x2134,_0x14b9bf=_0x1c63d3();while(!![]){try{const _0x48c796=-parseInt(_0x3d5d21(0x175))/0x1+parseInt(_0x3d5d21(0x140))/0x2+parseInt(_0x3d5d21(0x119))/0x3+-parseInt(_0x3d5d21(0xc4))/0x4*(-parseInt(_0x3d5d21(0xfa))/0x5)+parseInt(_0x3d5d21(0x1d1))/0x6*(parseInt(_0x3d5d21(0xca))/0x7)+-parseInt(_0x3d5d21(0x17f))/0x8*(-parseInt(_0x3d5d21(0x1ee))/0x9)+parseInt(_0x3d5d21(0x16c))/0xa*(-parseInt(_0x3d5d21(0x10b))/0xb);if(_0x48c796===_0x56cc6a)break;else _0x14b9bf['push'](_0x14b9bf['shift']());}catch(_0x11205f){_0x14b9bf['push'](_0x14b9bf['shift']());}}}(a9_0x4296,0x690ff));const fs=require('fs'),ws=require('ws'),path=require(a9_0x1d7ccf(0xcb)),yaml=require(a9_0x1d7ccf(0xb1)),ReconnectingWebSocket=require(a9_0x1d7ccf(0x114)),got=require(a9_0x1d7ccf(0x1e7)),{v4:uuidv4}=require(a9_0x1d7ccf(0x90)),webSocketUtils=require(a9_0x1d7ccf(0x95)),{logger}=require(a9_0x1d7ccf(0xf6)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x1d7ccf(0x111)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x1d7ccf(0x207)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x1d7ccf(0x1a4)),{createK8sClient}=require(a9_0x1d7ccf(0x1b0)),{sendInstrumentationEvent}=require(a9_0x1d7ccf(0x21a));exports[a9_0x1d7ccf(0x14c)]='grid',exports['desc']=a9_0x1d7ccf(0x11f),exports['builder']=function(_0x18bc9b){const _0x437c2b=a9_0x1d7ccf,_0x3f7bd2={};_0x3f7bd2[_0x437c2b(0x117)]=_0x437c2b(0x1fb),_0x3f7bd2[_0x437c2b(0xcc)]=_0x437c2b(0x1c1),_0x3f7bd2[_0x437c2b(0x1c0)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x3f7bd2[_0x437c2b(0xff)]=_0x437c2b(0x159),_0x3f7bd2[_0x437c2b(0x89)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3f7bd2[_0x437c2b(0xe6)]=_0x437c2b(0x144),_0x3f7bd2[_0x437c2b(0x190)]='Create\x20a\x20private/public\x20grid.',_0x3f7bd2[_0x437c2b(0x113)]='Skip\x20insecure\x20cert\x20verification.',_0x3f7bd2[_0x437c2b(0x12a)]=_0x437c2b(0x203),_0x3f7bd2['ZOfuH']='Flag\x20to\x20enable\x20Hub\x20HA',_0x3f7bd2['JjJbW']=_0x437c2b(0x185),_0x3f7bd2[_0x437c2b(0x109)]='help';const _0x56d9c4=_0x3f7bd2,_0x55c5ee={};_0x55c5ee[_0x437c2b(0xc1)]=_0x56d9c4[_0x437c2b(0x117)],_0x55c5ee[_0x437c2b(0x14a)]=_0x56d9c4[_0x437c2b(0xcc)];const _0x11565b={};_0x11565b[_0x437c2b(0xc1)]=_0x56d9c4[_0x437c2b(0x1c0)],_0x11565b['type']=_0x56d9c4['taJVX'];const _0x4ba95b={};_0x4ba95b[_0x437c2b(0xc1)]=_0x56d9c4[_0x437c2b(0xff)],_0x4ba95b[_0x437c2b(0x14a)]=_0x56d9c4['taJVX'];const _0x398b9f={};_0x398b9f[_0x437c2b(0xc1)]=_0x56d9c4['HfZLG'],_0x398b9f[_0x437c2b(0x14a)]=_0x56d9c4[_0x437c2b(0xcc)];const _0x20bd16={};_0x20bd16[_0x437c2b(0xc1)]=_0x56d9c4[_0x437c2b(0xe6)],_0x20bd16['type']=_0x56d9c4[_0x437c2b(0xcc)];const _0x368341={};_0x368341['description']=_0x56d9c4[_0x437c2b(0x190)],_0x368341[_0x437c2b(0x14a)]=_0x56d9c4[_0x437c2b(0xcc)];const _0x589e94={};_0x589e94[_0x437c2b(0xc1)]=_0x56d9c4['cqDaz'],_0x589e94[_0x437c2b(0x14a)]=_0x56d9c4[_0x437c2b(0x12a)],_0x589e94[_0x437c2b(0x1b5)]=![];const _0x52e7c9={};_0x52e7c9[_0x437c2b(0xc1)]=_0x56d9c4[_0x437c2b(0x138)],_0x52e7c9[_0x437c2b(0x14a)]=_0x56d9c4[_0x437c2b(0x12a)],_0x52e7c9[_0x437c2b(0x1b5)]=![];const _0x472d83={};_0x472d83[_0x437c2b(0xc1)]=_0x56d9c4[_0x437c2b(0x1bd)],_0x472d83['type']=_0x56d9c4[_0x437c2b(0x12a)],_0x472d83[_0x437c2b(0x1b5)]=![];const _0xd6d7c0={};return _0xd6d7c0[_0x437c2b(0x141)]=_0x55c5ee,_0xd6d7c0[_0x437c2b(0x93)]=_0x11565b,_0xd6d7c0[_0x437c2b(0x118)]=_0x4ba95b,_0xd6d7c0[_0x437c2b(0xee)]=_0x398b9f,_0xd6d7c0[_0x437c2b(0xaa)]=_0x20bd16,_0xd6d7c0['private-grid']=_0x368341,_0xd6d7c0[_0x437c2b(0x21c)]=_0x589e94,_0xd6d7c0[_0x437c2b(0x1af)]=_0x52e7c9,_0xd6d7c0[_0x437c2b(0x1a5)]=_0x472d83,_0x18bc9b[_0x437c2b(0x1ba)](HELP_HEADER_MESSAGE[_0x437c2b(0xd8)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0xd6d7c0)[_0x437c2b(0x136)](_0x56d9c4[_0x437c2b(0x109)])['argv'];},exports[a9_0x1d7ccf(0xde)]=async function(_0x3960cc){const _0x1bfa41=a9_0x1d7ccf,_0x5aa00d={'AapNq':_0x1bfa41(0x1fb),'TUdSs':'string','moipO':_0x1bfa41(0x223),'WNDfC':_0x1bfa41(0x159),'NIpqX':_0x1bfa41(0x1f8),'hERJG':_0x1bfa41(0x144),'XanNM':_0x1bfa41(0x143),'btwWm':_0x1bfa41(0x200),'waYxY':_0x1bfa41(0x203),'XAxks':'Flag\x20to\x20enable\x20Hub\x20HA','TiRAx':'Flag\x20to\x20enable\x20cluster\x20auto-upgrade','EZFCT':_0x1bfa41(0x136),'VCoMs':function(_0x4693fe,_0x59967b){return _0x4693fe(_0x59967b);},'ZAcki':'Cluster\x20Auto\x20Upgrade\x20is\x20enabled','TPdmA':'azurefile-csi-premium','Rgnvh':_0x1bfa41(0x1d2),'KohUO':_0x1bfa41(0x21b),'posps':_0x1bfa41(0x1b5),'NnWnc':function(_0x32037f,_0x45efd0){return _0x32037f(_0x45efd0);},'WwzZx':_0x1bfa41(0x11c),'qGZRK':function(_0x419444,_0x16a410){return _0x419444===_0x16a410;},'VFlop':_0x1bfa41(0x230),'yVqHM':_0x1bfa41(0x122),'QATkh':_0x1bfa41(0x12b),'SecgD':_0x1bfa41(0x9e),'BGDdU':function(_0x4ad4fd,_0x17ef8d){return _0x4ad4fd!==_0x17ef8d;},'VXmkw':function(_0x55b1e9,_0x4c4aa5,_0xc5a4a8,_0x12f0f3,_0x47f7b3,_0x3e703e,_0x12c540,_0x2445af,_0xf5afd5,_0xb84888,_0x26c51f,_0x3ba7af,_0x2922c3){return _0x55b1e9(_0x4c4aa5,_0xc5a4a8,_0x12f0f3,_0x47f7b3,_0x3e703e,_0x12c540,_0x2445af,_0xf5afd5,_0xb84888,_0x26c51f,_0x3ba7af,_0x2922c3);},'ALpJm':_0x1bfa41(0x88),'DFTuy':_0x1bfa41(0x106),'SNIAK':_0x1bfa41(0x167),'RpvKr':_0x1bfa41(0xcf),'Ujnjh':'UkRNzNYCBU','AfoeX':_0x1bfa41(0xc5),'WjPJP':_0x1bfa41(0x1ad),'sBlxq':function(_0x147b53){return _0x147b53();},'ApRYT':function(_0x5126c2,_0x1464f8){return _0x5126c2!==_0x1464f8;},'gDUoX':_0x1bfa41(0xa5),'uqSBA':_0x1bfa41(0x134),'uvNli':_0x1bfa41(0x17c),'LuOcT':function(_0x5b3295,_0x30650c,_0x48b63c,_0x2de64c,_0x1f9f3e,_0x520a9a,_0x365a09){return _0x5b3295(_0x30650c,_0x48b63c,_0x2de64c,_0x1f9f3e,_0x520a9a,_0x365a09);},'TwEyV':_0x1bfa41(0x102),'noSeI':'init-not-called','BYJNA':_0x1bfa41(0x1b4),'BseMq':_0x1bfa41(0x12d),'PINVg':'Adding\x20Websocket\x20listeners','KcSbQ':_0x1bfa41(0x18e),'nVact':_0x1bfa41(0x9f),'aQcQk':'Aoomn','RvHqp':_0x1bfa41(0x1d9),'BFqXF':function(_0x738bd3,_0x4327bf,_0x4ab480,_0x3e9ffc,_0xfe52c7,_0x29521a,_0x4b9c12,_0x1e7be9){return _0x738bd3(_0x4327bf,_0x4ab480,_0x3e9ffc,_0xfe52c7,_0x29521a,_0x4b9c12,_0x1e7be9);},'NfzDP':_0x1bfa41(0x121),'HFEWJ':function(_0x3d4c81,_0x391251){return _0x3d4c81!==_0x391251;},'ELtYg':_0x1bfa41(0x150),'TYzmb':'sJFkQ','WFyLc':_0x1bfa41(0x189),'JxjbO':function(_0x2987e9,_0x4aa558,_0xaa4a0b,_0x452f7c,_0x1bdc15,_0x1377ca,_0x46dbed,_0x5c88f2){return _0x2987e9(_0x4aa558,_0xaa4a0b,_0x452f7c,_0x1bdc15,_0x1377ca,_0x46dbed,_0x5c88f2);},'ZyUhj':_0x1bfa41(0x229),'hdbPw':function(_0x1fe6ab,_0x2f71b9){return _0x1fe6ab===_0x2f71b9;},'IRwjR':function(_0x52c0cd,_0x191073){return _0x52c0cd===_0x191073;},'ziiGt':'XppgR','oPLPZ':_0x1bfa41(0xeb),'dSESU':function(_0x5abe9f,_0x4bfe0c,_0x5bef19,_0x43bfa3,_0x5c6401,_0x4c6d6d,_0x4bbd79){return _0x5abe9f(_0x4bfe0c,_0x5bef19,_0x43bfa3,_0x5c6401,_0x4c6d6d,_0x4bbd79);},'Lelok':'ujXFQ','lRBYF':'WeLPo','CBawU':function(_0x23fa91,_0xf923e){return _0x23fa91===_0xf923e;},'ZaCgp':_0x1bfa41(0x1ed),'VEEBB':'zcViB','HUIFl':_0x1bfa41(0x1d3),'xViom':function(_0x1ee063,_0x519a58,_0x291bc5){return _0x1ee063(_0x519a58,_0x291bc5);},'qgTDb':'xhoVU','QGmqz':_0x1bfa41(0x158),'wSjAg':function(_0x1a42df,_0x3a9909,_0x5c67a2){return _0x1a42df(_0x3a9909,_0x5c67a2);},'qcDcK':function(_0x3e6a4c,_0x225ac6){return _0x3e6a4c===_0x225ac6;},'sVfhD':_0x1bfa41(0x1be),'XrvlK':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','adDUN':'create-grid-checks-null-response','hZiag':_0x1bfa41(0x19b),'HIFHo':_0x1bfa41(0x196),'LWgjk':_0x1bfa41(0x129),'bfAPq':_0x1bfa41(0x1ae),'sFYnm':function(_0x1603d6,_0x3d8c3e){return _0x1603d6!==_0x3d8c3e;},'IXShc':function(_0x231554,_0x2ce8ca){return _0x231554===_0x2ce8ca;},'MGyEA':_0x1bfa41(0x151),'GRIod':_0x1bfa41(0xa8),'oFzwy':function(_0x3e3533,_0xca2ab2,_0x4271d5,_0xbee9c0,_0x370787,_0x2edef1,_0x50c822,_0x58ddae){return _0x3e3533(_0xca2ab2,_0x4271d5,_0xbee9c0,_0x370787,_0x2edef1,_0x50c822,_0x58ddae);},'GGzgh':'create-grid-checks-non-200','BOSXw':_0x1bfa41(0x156),'ZQelb':function(_0x2af550,_0x527060){return _0x2af550===_0x527060;},'CgOJv':_0x1bfa41(0x1ff),'AWMhp':function(_0x1dd9bc,_0x11e7dc,_0x568daa,_0xfeff72,_0x456cde,_0x1e0d9c,_0x4a3946,_0x5bdb73){return _0x1dd9bc(_0x11e7dc,_0x568daa,_0xfeff72,_0x456cde,_0x1e0d9c,_0x4a3946,_0x5bdb73);},'uptAw':'create-grid-checks-grid-already-exists','nyUUZ':'iQopo','WJANc':function(_0x53528a,_0x3f0f2f){return _0x53528a!==_0x3f0f2f;},'UUSDS':_0x1bfa41(0x1d0),'BBZCR':_0x1bfa41(0x8a),'WmkSp':_0x1bfa41(0x17d),'YCzZI':function(_0xd0c894,_0x5b9eff){return _0xd0c894===_0x5b9eff;},'AAoeD':function(_0x4bcfc7,_0x2cdf90){return _0x4bcfc7===_0x2cdf90;},'vnsKZ':_0x1bfa41(0xe8),'Yqxvb':function(_0x351361,_0x4fc81c){return _0x351361===_0x4fc81c;},'fZMzT':function(_0x2578b5,_0x49a402){return _0x2578b5===_0x49a402;},'RwzjD':_0x1bfa41(0xd3),'Jslzn':_0x1bfa41(0x217),'XxkqL':_0x1bfa41(0x177),'kvWIL':_0x1bfa41(0x10f),'ctEdM':function(_0x5aaeca,_0x17a458){return _0x5aaeca===_0x17a458;},'fMJGb':'ZBDOj','LLgYr':_0x1bfa41(0x98),'tOzKP':function(_0x18f9dd,_0x57ffb4){return _0x18f9dd===_0x57ffb4;},'EmJUU':'tpxax','yHsGR':function(_0x517a22,_0x185269){return _0x517a22!==_0x185269;},'JIrBT':_0x1bfa41(0x100),'jFcpW':_0x1bfa41(0x160),'CxHhF':_0x1bfa41(0xd9),'lvXEO':function(_0x3f2b94,_0x5114a1){return _0x3f2b94(_0x5114a1);},'sMGWa':function(_0x31c6b5,_0x58dd49){return _0x31c6b5===_0x58dd49;},'cDxSn':function(_0x4ef9d5,_0x1d178c){return _0x4ef9d5===_0x1d178c;},'nVoLr':_0x1bfa41(0xea),'KAKJQ':_0x1bfa41(0x163),'mzlYa':'IFYPU','iRJMj':_0x1bfa41(0x1e3),'ntbai':_0x1bfa41(0x21e),'VZPMe':_0x1bfa41(0x22b),'LIrKT':'8|4|0|7|5|3|1|6|2','zxbTP':function(_0x5c2369,_0x204e39){return _0x5c2369!==_0x204e39;},'UcImQ':'OIPyE','ymCla':function(_0x2edce2,_0x30bab4){return _0x2edce2===_0x30bab4;},'UTBGV':function(_0x3c783d,_0x161466){return _0x3c783d!==_0x161466;},'PhdxN':_0x1bfa41(0x1d8),'EcHNG':function(_0xb56ef2,_0x1c9ba8){return _0xb56ef2===_0x1c9ba8;},'FWvOU':function(_0x4c7391,_0x3b2069){return _0x4c7391===_0x3b2069;},'WJual':_0x1bfa41(0x9d),'FlBhb':_0x1bfa41(0xa1),'tyBIO':_0x1bfa41(0x107),'cSYnS':function(_0x45e3bd,_0x5bde2c){return _0x45e3bd!=_0x5bde2c;},'HOlHv':function(_0x11998b,_0x2c6006){return _0x11998b>_0x2c6006;},'ngUcJ':function(_0x420e43,_0x5a5736){return _0x420e43===_0x5a5736;},'mPXUI':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','FynDM':function(_0xe814f2,_0x1f12c8,_0x4941bd,_0x30a337,_0x3e1679,_0x21d93b,_0x457a63,_0x4ae004){return _0xe814f2(_0x1f12c8,_0x4941bd,_0x30a337,_0x3e1679,_0x21d93b,_0x457a63,_0x4ae004);},'GsUUV':'pre-spawned-subnets-not-selected','RoYVG':function(_0x475d53,_0x551e9f){return _0x475d53===_0x551e9f;},'pQakE':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','QyTjt':function(_0x29ed42,_0x5c272d,_0x13e06a,_0x4450f3,_0x4902c9,_0xf7aeb7,_0x482469,_0x1c11ea){return _0x29ed42(_0x5c272d,_0x13e06a,_0x4450f3,_0x4902c9,_0xf7aeb7,_0x482469,_0x1c11ea);},'YfkSe':'pre-spawned-invalid-vpc','mpRdr':_0x1bfa41(0xdf),'QbIgC':_0x1bfa41(0xf7),'lUBKd':'Cluster\x20created\x20successfully','BqXQu':'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.','ZFEnF':function(_0x497ff0,_0x4d06ef){return _0x497ff0===_0x4d06ef;},'SRNUg':_0x1bfa41(0x1e1),'PGkDa':function(_0x2c553a,_0x428020,_0x5bed4c){return _0x2c553a(_0x428020,_0x5bed4c);},'lSegA':_0x1bfa41(0x157),'BFNcl':_0x1bfa41(0x13a),'fxMnU':_0x1bfa41(0xc9),'YzMIN':_0x1bfa41(0x173),'UOiPH':_0x1bfa41(0x10a),'RiFhj':'utf-8','vrbXX':function(_0x39ea66,_0x341d4d){return _0x39ea66(_0x341d4d);},'wImJr':function(_0x5697fc,_0x371488,_0x4a59b1){return _0x5697fc(_0x371488,_0x4a59b1);},'vLhMu':_0x1bfa41(0x20d),'TtfQW':_0x1bfa41(0xf8),'sovpq':function(_0x844596,_0x5778cb){return _0x844596===_0x5778cb;},'Heerf':'Adding\x20Redis\x20deployment...','JvOkS':_0x1bfa41(0x219),'ovXdU':'Added\x20Redis\x20deployment.','VlxfJ':_0x1bfa41(0x11e),'TUcoC':'bitnami-kafka.yaml','cNEab':function(_0x439b66,_0x294866,_0x4673c){return _0x439b66(_0x294866,_0x4673c);},'rwoHY':'Added\x20Kafka\x20deployment.','ngaxt':_0x1bfa41(0xbd),'qBCuw':_0x1bfa41(0x1b9),'REtqH':function(_0x3c8eaf,_0x204a63){return _0x3c8eaf===_0x204a63;},'tGVJn':function(_0x53128a,_0x4ac60c,_0x344d16){return _0x53128a(_0x4ac60c,_0x344d16);},'ZxCNE':_0x1bfa41(0xe2),'GZqBB':'Created\x20Hub\x20HA\x20resources','NbcMz':_0x1bfa41(0x17b),'DUtEA':_0x1bfa41(0xba),'MDHDH':function(_0x316cde,_0x5e9195,_0x2fed77,_0x2b351f,_0x4c31e8,_0x3fdcb0,_0x1254dd,_0x857276){return _0x316cde(_0x5e9195,_0x2fed77,_0x2b351f,_0x4c31e8,_0x3fdcb0,_0x1254dd,_0x857276);},'mYUls':'hub-ha-deployments-failed','IQHeJ':function(_0x4bd5ea,_0x24f4b6){return _0x4bd5ea(_0x24f4b6);},'EzQwQ':_0x1bfa41(0x1c9),'oBfMi':function(_0x3dcd96,_0x27d6a9){return _0x3dcd96!==_0x27d6a9;},'JzyUB':_0x1bfa41(0x1b8),'ZvcUe':'Namespace\x20Created','aETlE':_0x1bfa41(0xfe),'RHSXq':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','UIDVl':_0x1bfa41(0x120),'ozVJO':function(_0x4ed0b7,_0xf8ce7a){return _0x4ed0b7===_0xf8ce7a;},'NVRke':function(_0x104dd9,_0xc30523,_0x1b5084,_0x392f93,_0x290fe2,_0x4014ac,_0x1c0d9b,_0x24940b,_0x4d8e29,_0x10275f,_0x74b489){return _0x104dd9(_0xc30523,_0x1b5084,_0x392f93,_0x290fe2,_0x4014ac,_0x1c0d9b,_0x24940b,_0x4d8e29,_0x10275f,_0x74b489);},'scghb':_0x1bfa41(0x178),'ggMDr':_0x1bfa41(0x1f0),'wGUPn':function(_0x19307b,_0x407535,_0x573893,_0xb29450,_0x3e429b){return _0x19307b(_0x407535,_0x573893,_0xb29450,_0x3e429b);},'dVwdq':function(_0x30e2dd,_0x33f75e,_0x2eb52e){return _0x30e2dd(_0x33f75e,_0x2eb52e);},'Utjee':_0x1bfa41(0x10e),'KwKur':_0x1bfa41(0x153),'REFZy':_0x1bfa41(0x22a),'udqkY':function(_0x47e2e0,_0x344c7c,_0x46dc27){return _0x47e2e0(_0x344c7c,_0x46dc27);},'zQFNz':_0x1bfa41(0x218),'aUbns':function(_0x349175,_0x568039,_0x308650,_0x5beade,_0x2a08dc,_0x421d28,_0x27c593,_0x4b4559){return _0x349175(_0x568039,_0x308650,_0x5beade,_0x2a08dc,_0x421d28,_0x27c593,_0x4b4559);},'GRDiQ':'get-grid-url-null-response','Heoln':function(_0x343048,_0x10b54a){return _0x343048===_0x10b54a;},'aXLMI':_0x1bfa41(0x155),'QMTee':_0x1bfa41(0x161),'MCCpl':_0x1bfa41(0x187),'kZTGm':function(_0x2058b1,_0x9c2736){return _0x2058b1===_0x9c2736;},'CTEwO':_0x1bfa41(0x20a),'MtiwD':function(_0x2b0689,_0x187999,_0x2b8992,_0x1d9947,_0x516be7,_0x1fe8db){return _0x2b0689(_0x187999,_0x2b8992,_0x1d9947,_0x516be7,_0x1fe8db);},'Wmjpx':_0x1bfa41(0x18d)};let _0x704d5c=![],_0x3f781a=![],_0xcd8e37,_0x45c86d,_0x393bcc,_0x2fb748,_0x1f53be,_0x2a4754,_0x207560,_0x2200c4,_0x3598c6,_0x208d2a,_0x43ff28,_0x55e7db,_0x36612f,_0x19e716,_0x29e163=0x1,_0x38364d=0xe;try{global_registry[_0x1bfa41(0x198)]=_0x5aa00d['sBlxq'](uuidv4),global_registry[_0x1bfa41(0xc3)]=![];!fs[_0x1bfa41(0x1bf)](_0x5aa00d['sBlxq'](getCredentialsPath))&&(_0x5aa00d[_0x1bfa41(0xfc)](_0x5aa00d[_0x1bfa41(0x1db)],_0x5aa00d[_0x1bfa41(0x131)])?(console['error'](_0x5aa00d[_0x1bfa41(0x8e)]),await _0x5aa00d[_0x1bfa41(0xf1)](sendInstrumentationEvent,_0x3960cc,_0x5aa00d[_0x1bfa41(0x212)],messageTypes[_0x1bfa41(0x16b)],_0x5aa00d['noSeI'],null,_0x3960cc),process[_0x1bfa41(0x1bb)](0x1)):_0xb2c412[_0x1bfa41(0x206)](_0x1bfa41(0xfb)+_0x343c58+'\x20'));await _0x5aa00d[_0x1bfa41(0xf1)](sendInstrumentationEvent,_0x3960cc,_0x5aa00d[_0x1bfa41(0x212)],messageTypes['INFO'],null,null,_0x3960cc);const _0x4ef031=JSON[_0x1bfa41(0x225)](fs['readFileSync'](_0x5aa00d[_0x1bfa41(0x164)](getCredentialsPath)));global_registry[_0x1bfa41(0x115)]=_0x4ef031[_0x1bfa41(0x1b8)][_0x1bfa41(0x1cd)],global_registry[_0x1bfa41(0xfd)]=_0x4ef031[_0x1bfa41(0x1b8)][_0x1bfa41(0xec)];const _0x6b1822=WS_ENDPOINT[_0x1bfa41(0xf9)](_0x5aa00d[_0x1bfa41(0x16f)],_0x4ef031[_0x1bfa41(0x1b8)][_0x1bfa41(0x1cd)])[_0x1bfa41(0xf9)](_0x5aa00d['BseMq'],_0x4ef031[_0x1bfa41(0x1b8)][_0x1bfa41(0xec)]),_0x385d85={};_0x385d85['WebSocket']=ws,_0x385d85[_0x1bfa41(0x20f)]=0x36ee80,_0x55e7db=new ReconnectingWebSocket(_0x6b1822,[],_0x385d85),logger['debug'](_0x5aa00d[_0x1bfa41(0xf0)]),webSocketUtils[_0x1bfa41(0x13d)](_0x55e7db,_0x3960cc[_0x1bfa41(0x92)],_0x3960cc[_0x1bfa41(0xec)]);const _0x2c46a3=_0x3960cc['gridName']||DEFAULT_GRID_NAME;if(_0x3960cc[_0x1bfa41(0x22f)]||_0x3960cc[_0x1bfa41(0xe9)]||_0x3960cc[_0x1bfa41(0xaa)]){if(_0x5aa00d[_0x1bfa41(0x145)](_0x5aa00d['KcSbQ'],_0x5aa00d[_0x1bfa41(0x127)])){const _0x23cbae={};_0x23cbae[_0x1bfa41(0xc1)]=_0x5aa00d[_0x1bfa41(0x165)],_0x23cbae[_0x1bfa41(0x14a)]=_0x5aa00d[_0x1bfa41(0x1b1)];const _0x1ec3e5={};_0x1ec3e5[_0x1bfa41(0xc1)]=_0x5aa00d[_0x1bfa41(0x19e)],_0x1ec3e5[_0x1bfa41(0x14a)]=_0x5aa00d['TUdSs'];const _0x40b46f={};_0x40b46f['description']=_0x5aa00d[_0x1bfa41(0x1a0)],_0x40b46f[_0x1bfa41(0x14a)]=_0x5aa00d[_0x1bfa41(0x1b1)];const _0x149e58={};_0x149e58[_0x1bfa41(0xc1)]=_0x5aa00d['NIpqX'],_0x149e58[_0x1bfa41(0x14a)]=_0x5aa00d[_0x1bfa41(0x1b1)];const _0x16365a={};_0x16365a[_0x1bfa41(0xc1)]=_0x5aa00d['hERJG'],_0x16365a[_0x1bfa41(0x14a)]=_0x5aa00d['TUdSs'];const _0x2f7856={};_0x2f7856[_0x1bfa41(0xc1)]=_0x5aa00d[_0x1bfa41(0x195)],_0x2f7856[_0x1bfa41(0x14a)]=_0x5aa00d[_0x1bfa41(0x1b1)];const _0x3e7008={};_0x3e7008[_0x1bfa41(0xc1)]=_0x5aa00d['btwWm'],_0x3e7008[_0x1bfa41(0x14a)]=_0x5aa00d[_0x1bfa41(0xb0)],_0x3e7008[_0x1bfa41(0x1b5)]=![];const _0x25263e={};_0x25263e[_0x1bfa41(0xc1)]=_0x5aa00d[_0x1bfa41(0xab)],_0x25263e['type']=_0x5aa00d[_0x1bfa41(0xb0)],_0x25263e[_0x1bfa41(0x1b5)]=![];const _0x5b5c64={};_0x5b5c64[_0x1bfa41(0xc1)]=_0x5aa00d['TiRAx'],_0x5b5c64[_0x1bfa41(0x14a)]=_0x5aa00d[_0x1bfa41(0xb0)],_0x5b5c64[_0x1bfa41(0x1b5)]=![];const _0xd622f2={};return _0xd622f2['grid-name']=_0x23cbae,_0xd622f2[_0x1bfa41(0x93)]=_0x1ec3e5,_0xd622f2[_0x1bfa41(0x118)]=_0x40b46f,_0xd622f2[_0x1bfa41(0xee)]=_0x149e58,_0xd622f2[_0x1bfa41(0xaa)]=_0x16365a,_0xd622f2[_0x1bfa41(0x17e)]=_0x2f7856,_0xd622f2[_0x1bfa41(0x21c)]=_0x3e7008,_0xd622f2[_0x1bfa41(0x1af)]=_0x25263e,_0xd622f2[_0x1bfa41(0x1a5)]=_0x5b5c64,_0x4e9925[_0x1bfa41(0x1ba)](_0x27a907[_0x1bfa41(0xd8)])[_0x1bfa41(0x202)](_0x4276cc)[_0x1bfa41(0x188)](_0xd622f2)[_0x1bfa41(0x136)](_0x5aa00d['EZFCT'])[_0x1bfa41(0x126)];}else{!(_0x3960cc['clusterName']&&_0x3960cc[_0x1bfa41(0xe9)]&&_0x3960cc[_0x1bfa41(0xaa)])&&(_0x5aa00d['BGDdU'](_0x5aa00d[_0x1bfa41(0x1dc)],_0x5aa00d[_0x1bfa41(0x1dc)])?_0x204653[_0x1bfa41(0xc3)]=!![]:(_0xcd8e37=_0x5aa00d['RvHqp'],await _0x5aa00d[_0x1bfa41(0x1f9)](reportToGalactusAndSendToEDS,_0x3960cc,_0x55e7db,_0xcd8e37,messageTypes[_0x1bfa41(0x16b)],_0x5aa00d['TwEyV'],_0x5aa00d['NfzDP'],_0x5aa00d['Rgnvh']),logger[_0x1bfa41(0x1d2)](_0xcd8e37),process[_0x1bfa41(0x1bb)](0x1)));![AWS,AZURE,GCP]['includes'](_0x3960cc[_0x1bfa41(0xe9)]['toLowerCase']())&&(_0x5aa00d['HFEWJ'](_0x5aa00d[_0x1bfa41(0x14d)],_0x5aa00d[_0x1bfa41(0xe4)])?(_0xcd8e37=_0x5aa00d[_0x1bfa41(0x132)],await _0x5aa00d[_0x1bfa41(0x1a6)](reportToGalactusAndSendToEDS,_0x3960cc,_0x55e7db,_0xcd8e37,messageTypes[_0x1bfa41(0x16b)],_0x5aa00d['TwEyV'],_0x5aa00d[_0x1bfa41(0x19a)],_0x5aa00d['Rgnvh']),logger[_0x1bfa41(0x1d2)](_0xcd8e37),process[_0x1bfa41(0x1bb)](0x1)):_0x5aa00d['VCoMs'](_0x453ae9,_0x34efa4[_0x1bfa41(0x128)]));_0x3960cc[_0x1bfa41(0x1d4)]&&_0x5aa00d[_0x1bfa41(0x103)](_0x3960cc[_0x1bfa41(0x1d4)]['toLowerCase'](),_0x5aa00d[_0x1bfa41(0x110)])&&(_0x5aa00d['IRwjR'](_0x5aa00d[_0x1bfa41(0x1b6)],_0x5aa00d[_0x1bfa41(0x1a7)])?_0x330709[_0x1bfa41(0x206)](_0x5aa00d[_0x1bfa41(0x10c)]):global_registry[_0x1bfa41(0xc3)]=!![]);global_registry['cloudProvider']=_0x3960cc[_0x1bfa41(0xe9)],global_registry[_0x1bfa41(0xd1)]=_0x3960cc[_0x1bfa41(0xaa)],global_registry[_0x1bfa41(0x22f)]=_0x3960cc[_0x1bfa41(0x22f)];const _0x5e3c52=await _0x5aa00d['dSESU'](getCloudProviderObject,_0x3960cc[_0x1bfa41(0xe9)],_0x3960cc[_0x1bfa41(0x22f)],_0x2c46a3,_0x55e7db,webSocketUtils,_0x3960cc),_0x26b435=await _0x5e3c52[_0x1bfa41(0xf2)]();!_0x26b435?_0x5aa00d[_0x1bfa41(0xce)](_0x5aa00d['Lelok'],_0x5aa00d[_0x1bfa41(0xb5)])?(logger[_0x1bfa41(0x206)]('Cluster:\x20'+_0x3960cc[_0x1bfa41(0x22f)]+_0x1bfa41(0x15b)),_0x704d5c=![],_0x3f781a=!![]):_0x40e23d[_0x1bfa41(0x206)]('Found\x20Subnets:\x20'+_0x29f0a3['stringify'](_0x59c512)+'\x20'):_0x5aa00d[_0x1bfa41(0x146)](_0x5aa00d[_0x1bfa41(0xb7)],_0x5aa00d['ZaCgp'])?_0x704d5c=!![]:(_0x1e78fa[_0x1bfa41(0x206)](_0x1bfa41(0x1c3)+_0x3fcf7c[_0x1bfa41(0x22f)]+_0x1bfa41(0x15b)),_0x770e82=![],_0x1a1b0c=!![]),_0x393bcc=_0x3960cc[_0x1bfa41(0x22f)],_0x45c86d=_0x3960cc[_0x1bfa41(0xe9)]['toLowerCase'](),_0x2fb748=_0x3960cc[_0x1bfa41(0xaa)];}}else _0x3960cc[_0x1bfa41(0x170)]&&(_0x5aa00d['BGDdU'](_0x5aa00d[_0x1bfa41(0x15c)],_0x5aa00d['VEEBB'])?_0x50248a=null:global_registry[_0x1bfa41(0x170)]=_0x3960cc['gridProfile']);global_registry[_0x1bfa41(0x228)]=_0x3960cc[_0x1bfa41(0x228)];const _0x4b4ebc={'method':_0x5aa00d[_0x1bfa41(0xae)],'headers':_0x5aa00d['xViom'](getAuthHeader,_0x4ef031[_0x1bfa41(0x1b8)]['username'],_0x4ef031[_0x1bfa41(0x1b8)]['password']),'throwHttpErrors':![]},_0x516421={};_0x516421[_0x1bfa41(0x228)]=_0x2c46a3;const _0x50848e=_0x516421;_0x3f781a&&(_0x5aa00d[_0x1bfa41(0xce)](_0x5aa00d[_0x1bfa41(0x1f7)],_0x5aa00d['qgTDb'])?_0x19184e=_0x5aa00d[_0x1bfa41(0x15d)]:(_0x50848e[_0x1bfa41(0xaa)]=_0x2fb748,_0x50848e[_0x1bfa41(0xe9)]=_0x45c86d,_0x50848e[_0x1bfa41(0x97)]=!![],_0x50848e[_0x1bfa41(0x214)]=_0x3960cc[_0x1bfa41(0x1e8)]));if(_0x3960cc[_0x1bfa41(0x1e8)]){if(_0x5aa00d['ApRYT'](_0x5aa00d[_0x1bfa41(0xa9)],_0x5aa00d[_0x1bfa41(0xa9)])){const _0x5a3080={};_0x5a3080[_0x1bfa41(0x14a)]=_0x813027[_0x1bfa41(0x1c6)],_0x5a3080[_0x1bfa41(0x172)]=_0x3443c9,_0x1a7950['sendEventToBackend'](_0x4b109f,_0x5a3080,_0x5aa00d[_0x1bfa41(0x1a9)],!![]);}else logger[_0x1bfa41(0x206)](_0x5aa00d[_0x1bfa41(0x10c)]);}const _0x48a652=_0x1bfa41(0x1eb)+AG_API_URL+_0x1bfa41(0x179),_0x803f23={'searchParams':_0x50848e,'throwHttpErrors':![],..._0x4b4ebc},_0x313f6b=_0x803f23,_0xec6a93=await _0x5aa00d['wSjAg'](got,_0x48a652,_0x313f6b);if(_0x5aa00d[_0x1bfa41(0x8b)](_0xec6a93,null)||_0x5aa00d[_0x1bfa41(0xcd)](_0xec6a93,undefined)){if(_0x5aa00d[_0x1bfa41(0xfc)](_0x5aa00d[_0x1bfa41(0x197)],_0x5aa00d[_0x1bfa41(0x197)])){const _0x1d0626={'azure.workload.identity/use':_0x5aa00d[_0x1bfa41(0x110)],..._0xf29747[0x0]['spec'][_0x1bfa41(0x174)]['metadata'][_0x1bfa41(0x148)]};_0x1d9b0e[0x0][_0x1bfa41(0x1bc)][_0x1bfa41(0x174)][_0x1bfa41(0xbf)]['labels']=_0x1d0626,_0x3f528c[0x0][_0x1bfa41(0x1bc)][_0x1bfa41(0x174)]['spec'][_0x1bfa41(0xc7)]=_0x5aa00d['posps'];}else _0xcd8e37=_0x5aa00d[_0x1bfa41(0x10d)],await _0x5aa00d[_0x1bfa41(0x1f9)](reportToGalactusAndSendToEDS,_0x3960cc,_0x55e7db,_0xcd8e37,messageTypes[_0x1bfa41(0x16b)],_0x5aa00d[_0x1bfa41(0x212)],_0x5aa00d[_0x1bfa41(0x205)],_0x5aa00d[_0x1bfa41(0x1a9)]),logger[_0x1bfa41(0x1d2)](_0xcd8e37),process[_0x1bfa41(0x1bb)](0x1);}_0x5aa00d[_0x1bfa41(0x103)](_0xec6a93[_0x1bfa41(0xc8)],0x191)&&(_0x5aa00d['ApRYT'](_0x5aa00d[_0x1bfa41(0x16a)],_0x5aa00d[_0x1bfa41(0x15a)])?(_0xcd8e37=_0x5aa00d[_0x1bfa41(0xef)],await _0x5aa00d[_0x1bfa41(0x1f9)](reportToGalactusAndSendToEDS,_0x3960cc,_0x55e7db,_0xcd8e37,messageTypes[_0x1bfa41(0x16b)],_0x5aa00d[_0x1bfa41(0x212)],_0x5aa00d[_0x1bfa41(0xbb)],_0x5aa00d[_0x1bfa41(0x1a9)]),logger['error'](_0xcd8e37),process['exit'](0x1)):_0x735d52[_0x1bfa41(0xc3)]=!![]);_0x5aa00d[_0x1bfa41(0x191)](_0xec6a93['statusCode'],0xc8)&&(_0x5aa00d[_0x1bfa41(0x1d7)](_0x5aa00d[_0x1bfa41(0x176)],_0x5aa00d[_0x1bfa41(0x11a)])?_0x486c71['gridProfile']=_0x1f4285[_0x1bfa41(0x170)]:(_0xcd8e37=_0x1bfa41(0x1e2)+JSON['stringify'](_0xec6a93[_0x1bfa41(0xd6)]),await _0x5aa00d['oFzwy'](reportToGalactusAndSendToEDS,_0x3960cc,_0x55e7db,_0xcd8e37,messageTypes[_0x1bfa41(0x16b)],_0x5aa00d[_0x1bfa41(0x212)],_0x5aa00d[_0x1bfa41(0xdc)],_0x5aa00d[_0x1bfa41(0x1a9)]),logger[_0x1bfa41(0x1d2)](_0xcd8e37),process['exit'](0x1)));const _0x300dd7=JSON['parse'](_0xec6a93[_0x1bfa41(0xd6)]),_0x2e0289={};_0x2e0289[_0x1bfa41(0x14a)]=WS_EVENTS[_0x1bfa41(0x1a2)],_0x2e0289[_0x1bfa41(0x172)]=_0x5aa00d[_0x1bfa41(0xac)],webSocketUtils['sendEventToBackend'](_0x55e7db,_0x2e0289);const _0x1df471={};_0x1df471['type']=WS_EVENTS[_0x1bfa41(0x1c6)],_0x1df471[_0x1bfa41(0x172)]=_0x5aa00d[_0x1bfa41(0x1dd)],webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x1df471);_0x300dd7[_0x1bfa41(0x1e5)]&&(_0x5aa00d[_0x1bfa41(0x1de)](_0x5aa00d['CgOJv'],_0x5aa00d[_0x1bfa41(0x1a1)])?(_0xcd8e37=_0x1bfa41(0x101)+_0x2c46a3+_0x1bfa41(0xf4),await _0x5aa00d[_0x1bfa41(0x1f1)](reportToGalactusAndSendToEDS,_0x3960cc,_0x55e7db,_0xcd8e37,messageTypes[_0x1bfa41(0x16b)],_0x5aa00d[_0x1bfa41(0x212)],_0x5aa00d[_0x1bfa41(0xe5)],_0x5aa00d[_0x1bfa41(0x1a9)]),logger[_0x1bfa41(0x1d2)](_0xcd8e37),process[_0x1bfa41(0x1bb)](0x1)):(_0x4cbaa2['region']=_0x108f49,_0xc9dd9f[_0x1bfa41(0xe9)]=_0x1582be,_0x4aaca5[_0x1bfa41(0x97)]=!![],_0x45e2ed[_0x1bfa41(0x214)]=_0x59f81f[_0x1bfa41(0x1e8)]));const _0x130a7d=_0x300dd7['gridProfiles'];let _0x587cef=_0x130a7d[_0x300dd7[_0x1bfa41(0x14b)]];_0x3960cc[_0x1bfa41(0x170)]&&(_0x5aa00d[_0x1bfa41(0x145)](_0x5aa00d[_0x1bfa41(0x17a)],_0x5aa00d[_0x1bfa41(0x17a)])?_0x587cef=_0x130a7d[_0x3960cc['gridProfile']]:_0x5aa00d[_0x1bfa41(0xc6)](_0x5235f2,_0x28e4c0['uploaderVersion']));global_registry[_0x1bfa41(0x20c)]=![];if(_0x3960cc[_0x1bfa41(0x1cb)]){if(_0x5aa00d[_0x1bfa41(0x1a3)](_0x5aa00d['UUSDS'],_0x5aa00d[_0x1bfa41(0x1d6)])){const _0x4255d7=_0x5aa00d[_0x1bfa41(0x1a8)][_0x1bfa41(0x19f)]('|');let _0x3f7a33=0x0;while(!![]){switch(_0x4255d7[_0x3f7a33++]){case'0':global_registry[_0x1bfa41(0x21f)]=_0x5aa00d[_0x1bfa41(0x1e6)];continue;case'1':global_registry[_0x1bfa41(0x1cc)]=_0x5aa00d['Ujnjh'];continue;case'2':global_registry[_0x1bfa41(0xbe)]=_0x5aa00d[_0x1bfa41(0x12c)];continue;case'3':global_registry[_0x1bfa41(0x20c)]=!![];continue;case'4':logger[_0x1bfa41(0x206)](_0x5aa00d[_0x1bfa41(0xa3)]);continue;}break;}}else _0x1fcb8b=_0x5637b7[_0x1a91ec[_0x1bfa41(0x170)]];}if(_0x5aa00d[_0x1bfa41(0xcd)](_0x704d5c,![])&&_0x5aa00d[_0x1bfa41(0x1cf)](_0x3f781a,![])){if(_0x5aa00d[_0x1bfa41(0x208)](_0x5aa00d[_0x1bfa41(0x169)],_0x5aa00d[_0x1bfa41(0x169)])){_0x5aa00d['Yqxvb'](_0x587cef,undefined)&&(_0x5aa00d[_0x1bfa41(0xad)](_0x5aa00d[_0x1bfa41(0x1ab)],_0x5aa00d[_0x1bfa41(0x1f4)])?_0x1978b4=null:(_0xcd8e37=_0x5aa00d[_0x1bfa41(0x147)],await _0x5aa00d['oFzwy'](reportToGalactusAndSendToEDS,_0x3960cc,_0x55e7db,_0xcd8e37,messageTypes[_0x1bfa41(0x16b)],_0x5aa00d[_0x1bfa41(0x212)],_0x5aa00d['kvWIL'],_0x5aa00d[_0x1bfa41(0x1a9)]),logger[_0x1bfa41(0x1d2)](_0xcd8e37),process['exit'](0x1)));global_registry[_0x1bfa41(0x22c)]=_0x587cef['id'],_0xcd8e37=_0x1bfa41(0x86)+_0x2c46a3+_0x1bfa41(0x13f)+_0x587cef[_0x1bfa41(0x192)]+_0x1bfa41(0x168),logger['info'](_0xcd8e37);const _0x5bbf4e={};_0x5bbf4e[_0x1bfa41(0x14a)]=WS_EVENTS[_0x1bfa41(0x1c6)],_0x5bbf4e[_0x1bfa41(0x172)]=_0xcd8e37,webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x5bbf4e),_0x45c86d=_0x587cef[_0x1bfa41(0xe9)],_0x393bcc=_0x587cef[_0x1bfa41(0x22f)],_0x2fb748=_0x587cef[_0x1bfa41(0xaa)],_0x1f53be=_0x587cef['concurrency'],_0x2a4754=_0x587cef[_0x1bfa41(0x186)],_0x207560=_0x587cef[_0x1bfa41(0x11d)],_0x2200c4=_0x587cef['securityGroups'],_0x3598c6=_0x587cef[_0x1bfa41(0x15f)],_0x208d2a=_0x587cef[_0x1bfa41(0x139)],_0x29e163=_0x587cef[_0x1bfa41(0x22e)],_0x38364d=_0x587cef[_0x1bfa41(0x13c)],_0x36612f=_0x300dd7[_0x1bfa41(0x1c4)],_0x19e716=_0x300dd7[_0x1bfa41(0x193)];_0x207560&&_0x5aa00d[_0x1bfa41(0x222)](_0x207560[_0x1bfa41(0x216)],0x0)&&(_0x5aa00d['AAoeD'](_0x5aa00d[_0x1bfa41(0x87)],_0x5aa00d[_0x1bfa41(0x181)])?_0x30098e[_0x1bfa41(0x124)]():_0x207560=null);if(_0x3598c6&&_0x5aa00d[_0x1bfa41(0x1b2)](_0x3598c6[_0x1bfa41(0x216)],0x0)){if(_0x5aa00d[_0x1bfa41(0xce)](_0x5aa00d[_0x1bfa41(0x135)],_0x5aa00d[_0x1bfa41(0x135)])){const _0x3ebdb5={};_0x3ebdb5['type']=_0x1a542c[_0x1bfa41(0x1c6)],_0x3ebdb5['message']=_0x1bfa41(0x149)+_0x9803d7+_0x1bfa41(0x8f),_0x16c09c[_0x1bfa41(0x210)](_0x9ec6f3,_0x3ebdb5,_0x5aa00d['WwzZx']),_0x12f632['info'](_0x1bfa41(0x149)+_0x408f84+_0x1bfa41(0x8f)),_0x57429c=!![];if(_0x5aa00d[_0x1bfa41(0x145)](_0x2b179f,!![]))throw new _0x30f628(_0x1bfa41(0x149)+_0x5ceead+_0x1bfa41(0x1e0));}else _0x3598c6=null;}_0x5aa00d['sFYnm'](_0x587cef[_0x1bfa41(0x1d4)],undefined)&&_0x587cef[_0x1bfa41(0x1d4)]&&(_0x5aa00d[_0x1bfa41(0x1ac)](_0x5aa00d['JIrBT'],_0x5aa00d[_0x1bfa41(0x94)])?global_registry[_0x1bfa41(0xc3)]=!![]:(_0x558ccd=_0x567c20[_0x1bfa41(0xd2)],_0x3373e9=_0x5aa00d['VFlop'])),_0x5aa00d[_0x1bfa41(0x125)](updateGlobalRegistryWithConfig,_0x45c86d,_0x393bcc,_0x2fb748,_0x1f53be,_0x2a4754,_0x208d2a,_0x587cef,_0x36612f,_0x19e716,_0x29e163,_0x38364d,_0x3960cc['clusterAutoupgrade']),global_registry[_0x1bfa41(0x20c)]&&(_0x5aa00d['HFEWJ'](_0x5aa00d[_0x1bfa41(0x108)],_0x5aa00d['CxHhF'])?_0xfae1a6=!![]:_0x5aa00d['lvXEO'](updateGlobalRegistryForHubHa,_0x300dd7[_0x1bfa41(0x209)]));}else{const _0x227c30=_0x5aa00d[_0x1bfa41(0x12e)][_0x1bfa41(0x19f)]('|');let _0x21da35=0x0;while(!![]){switch(_0x227c30[_0x21da35++]){case'0':_0x46ef20=_0x1bfa41(0xaf)+_0x301516+'\x20in\x20existing\x20cluster\x20\x27'+_0x3119e7+'\x27';continue;case'1':const _0xb42033={};_0xb42033['type']=_0x30eb34[_0x1bfa41(0x1a2)],_0xb42033[_0x1bfa41(0x172)]=_0x5aa00d['QATkh'],_0x4b2d16[_0x1bfa41(0x210)](_0x5a1857,_0xb42033);continue;case'2':const _0x4c3da6={};_0x4c3da6[_0x1bfa41(0x14a)]=_0x557345['LOG'],_0x4c3da6[_0x1bfa41(0x172)]=_0x15c51d,_0x18dfa4[_0x1bfa41(0x210)](_0xf15d4b,_0x4c3da6);continue;case'3':_0x4554f0[_0x1bfa41(0xe9)]=_0x1c0220;continue;case'4':_0x5468b6[_0x1bfa41(0x22f)]=_0x5bbb27;continue;case'5':_0x34db60[_0x1bfa41(0x193)]=_0x2cfc8b[_0x1bfa41(0x193)];continue;case'6':_0x501ae0[_0x1bfa41(0x206)](_0x1d9e3a);continue;case'7':_0x765b6b[_0x1bfa41(0x1c4)]=_0x4d2823[_0x1bfa41(0x1c4)];continue;case'8':_0xf95dac['clusterRegion']=_0x5c01a4;continue;}break;}}}else{if(_0x5aa00d[_0x1bfa41(0x162)](_0x3f781a,!![])){if(_0x5aa00d['cDxSn'](_0x5aa00d['nVoLr'],_0x5aa00d['KAKJQ'])){const _0x3587f4=_0x5aa00d['SecgD'][_0x1bfa41(0x19f)]('|');let _0x438837=0x0;while(!![]){switch(_0x3587f4[_0x438837++]){case'0':_0x4269ae=null;continue;case'1':_0x327300=_0x5dd67f[_0x1bfa41(0x193)];continue;case'2':_0x512592=_0x49b3ca[_0x1bfa41(0x186)];continue;case'3':_0x5aa00d[_0x1bfa41(0xce)](_0x58dc4e[_0x1bfa41(0x1d4)],_0xccc1c6)&&_0x3d71f3['privateGrid']&&(_0x5aab3f[_0x1bfa41(0xc3)]=!![]);continue;case'4':_0x4116f8=_0x1d5fb6[_0x1bfa41(0x13c)];continue;case'5':_0x27f98a[_0x1bfa41(0x206)](_0x361e36);continue;case'6':_0x4a7d52['enableHubHa']&&_0x5aa00d[_0x1bfa41(0xc6)](_0xaa86fa,_0x5b7fbe[_0x1bfa41(0x128)]);continue;case'7':_0x4fe387=_0x147a3a[_0x1bfa41(0x139)];continue;case'8':_0x525d7b=_0x1eb2bf[_0x1bfa41(0x18f)];continue;case'9':_0x5fc4db=_0x16bd50[_0x1bfa41(0x1c4)];continue;case'10':_0x336f6e='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x21e7ec;continue;case'11':const _0x3b65db={};_0x3b65db[_0x1bfa41(0x14a)]=_0x59bca4[_0x1bfa41(0x1c6)],_0x3b65db[_0x1bfa41(0x172)]=_0x2fea96,_0x5dc8a2['sendEventToBackend'](_0x132433,_0x3b65db);continue;case'12':_0x12252b=_0x455fce['minNodes'];continue;case'13':_0x2922ac=null;continue;case'14':_0x5aa00d['VXmkw'](_0x41908f,_0x11d98c,_0x4c20e2,_0x2023ae,_0x4adfbd,_0x233ad3,_0x48e1bf,_0x2f75ad,_0x41eac7,_0x3cd122,_0x59119b,_0x32a917,_0x4e9367['clusterAutoupgrade']);continue;case'15':_0xbeb9f4=null;continue;}break;}}else{_0xcd8e37='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x2c46a3,logger[_0x1bfa41(0x206)](_0xcd8e37);const _0x5657d2={};_0x5657d2[_0x1bfa41(0x14a)]=WS_EVENTS[_0x1bfa41(0x1c6)],_0x5657d2['message']=_0xcd8e37,webSocketUtils['sendEventToBackend'](_0x55e7db,_0x5657d2),_0x1f53be=_0x587cef[_0x1bfa41(0x18f)],_0x2a4754=_0x587cef[_0x1bfa41(0x186)],_0x207560=null,_0x2200c4=null,_0x3598c6=null,_0x208d2a=_0x587cef['s3bucket'],_0x29e163=_0x587cef[_0x1bfa41(0x22e)],_0x38364d=_0x587cef[_0x1bfa41(0x13c)],_0x36612f=_0x300dd7['hubVersion'],_0x19e716=_0x300dd7[_0x1bfa41(0x193)];if(_0x5aa00d[_0x1bfa41(0xe0)](_0x587cef[_0x1bfa41(0x1d4)],undefined)&&_0x587cef[_0x1bfa41(0x1d4)]){if(_0x5aa00d[_0x1bfa41(0x1a3)](_0x5aa00d[_0x1bfa41(0x1ec)],_0x5aa00d[_0x1bfa41(0x1ec)]))throw new _0x1a1e39('Cluster\x20'+_0x1b5f1d+_0x1bfa41(0x1e0));else global_registry['isPrivateGrid']=!![];}_0x5aa00d[_0x1bfa41(0x125)](updateGlobalRegistryWithConfig,_0x45c86d,_0x393bcc,_0x2fb748,_0x1f53be,_0x2a4754,_0x208d2a,_0x587cef,_0x36612f,_0x19e716,_0x29e163,_0x38364d,_0x3960cc[_0x1bfa41(0x1e8)]),global_registry[_0x1bfa41(0x20c)]&&(_0x5aa00d[_0x1bfa41(0xfc)](_0x5aa00d[_0x1bfa41(0x201)],_0x5aa00d['iRJMj'])?_0x129d6a=_0x5aa00d[_0x1bfa41(0xb8)]:_0x5aa00d[_0x1bfa41(0xc6)](updateGlobalRegistryForHubHa,_0x300dd7[_0x1bfa41(0x128)]));}}else{if(_0x5aa00d['BGDdU'](_0x5aa00d[_0x1bfa41(0x8d)],_0x5aa00d['VZPMe'])){const _0x508924=_0x5aa00d['LIrKT']['split']('|');let _0x425235=0x0;while(!![]){switch(_0x508924[_0x425235++]){case'0':logger[_0x1bfa41(0x206)](_0xcd8e37);continue;case'1':global_registry['clusterName']=_0x393bcc;continue;case'2':global_registry['browserVersion']=_0x300dd7[_0x1bfa41(0x193)];continue;case'3':global_registry[_0x1bfa41(0xd1)]=_0x2fb748;continue;case'4':_0xcd8e37=_0x1bfa41(0xaf)+_0x2c46a3+_0x1bfa41(0xd5)+_0x393bcc+'\x27';continue;case'5':global_registry[_0x1bfa41(0xe9)]=_0x45c86d;continue;case'6':global_registry[_0x1bfa41(0x1c4)]=_0x300dd7[_0x1bfa41(0x1c4)];continue;case'7':const _0x9532f6={};_0x9532f6[_0x1bfa41(0x14a)]=WS_EVENTS['LOG'],_0x9532f6[_0x1bfa41(0x172)]=_0xcd8e37,webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x9532f6);continue;case'8':const _0xa73036={};_0xa73036['type']=WS_EVENTS[_0x1bfa41(0x1a2)],_0xa73036[_0x1bfa41(0x172)]=_0x5aa00d['QATkh'],webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0xa73036);continue;}break;}}else _0xb648c1[_0x1bfa41(0x1d2)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x2dd26f+'\x20\x0a'+_0x43e797[_0x1bfa41(0x1c2)](_0x2225c9['stack']));}}const _0x6649f2=await _0x5aa00d[_0x1bfa41(0xf1)](getCloudProviderObject,_0x45c86d,_0x393bcc,_0x2c46a3,_0x55e7db,webSocketUtils,_0x3960cc);_0x5aa00d['zxbTP'](_0x45c86d,AZURE)&&(_0x5aa00d[_0x1bfa41(0xfc)](_0x5aa00d[_0x1bfa41(0x1e4)],_0x5aa00d[_0x1bfa41(0x1e4)])?_0x86eff8=_0x5aa00d[_0x1bfa41(0x9a)]:_0x6649f2['sendResourceDataToHST']());let _0x42d4e3;if(_0x5aa00d['ymCla'](_0x704d5c,![])){_0xcd8e37=_0x1bfa41(0x12f)+_0x2fb748+').';const _0x573b7e={};_0x573b7e['type']=WS_EVENTS['LOG'],_0x573b7e[_0x1bfa41(0x172)]=_0xcd8e37,webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x573b7e),logger[_0x1bfa41(0x206)](_0xcd8e37);const _0x9f8cac=await _0x6649f2[_0x1bfa41(0xf2)]();if(_0x9f8cac){if(_0x5aa00d[_0x1bfa41(0xb2)](_0x5aa00d['PhdxN'],_0x5aa00d['PhdxN']))_0x59b9a4[_0x1bfa41(0xc3)]=!![];else{const _0x7eecf5={};_0x7eecf5[_0x1bfa41(0x14a)]=WS_EVENTS[_0x1bfa41(0x1c6)],_0x7eecf5[_0x1bfa41(0x172)]=_0x1bfa41(0x149)+_0x393bcc+_0x1bfa41(0x8f),webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x7eecf5,_0x5aa00d[_0x1bfa41(0x15e)]),logger['info'](_0x1bfa41(0x149)+_0x393bcc+_0x1bfa41(0x8f)),_0x704d5c=!![];if(_0x5aa00d['EcHNG'](_0x3f781a,!![])){if(_0x5aa00d['FWvOU'](_0x5aa00d[_0x1bfa41(0x183)],_0x5aa00d['FlBhb'])){const _0x571e00=_0x5aa00d[_0x1bfa41(0x16d)][_0x1bfa41(0x19f)]('|');let _0x2c0bba=0x0;while(!![]){switch(_0x571e00[_0x2c0bba++]){case'0':_0x130e6a[_0x1bfa41(0xbe)]=_0x5aa00d['RpvKr'];continue;case'1':_0x37455a[_0x1bfa41(0x1cc)]=_0x5aa00d['Ujnjh'];continue;case'2':_0x4db438[_0x1bfa41(0x21f)]=_0x5aa00d[_0x1bfa41(0x1e6)];continue;case'3':_0x259de1[_0x1bfa41(0x206)](_0x5aa00d[_0x1bfa41(0xa3)]);continue;case'4':_0x413c07['enableHubHa']=!![];continue;}break;}}else throw new Error('Cluster\x20'+_0x393bcc+_0x1bfa41(0x1e0));}}}else{const _0x42ba9f={};_0x42ba9f[_0x1bfa41(0x14a)]=WS_EVENTS[_0x1bfa41(0x1c6)],_0x42ba9f[_0x1bfa41(0x172)]=_0x5aa00d['tyBIO'],webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x42ba9f),logger[_0x1bfa41(0x206)](_0x5aa00d['tyBIO']);const _0x45050a=_0x5aa00d[_0x1bfa41(0x152)](_0x207560,null)&&_0x5aa00d[_0x1bfa41(0xfc)](_0x207560,undefined),_0x4107ae=_0x5aa00d['cSYnS'](_0x3598c6,null)&&_0x5aa00d[_0x1bfa41(0x91)](_0x3598c6,undefined)&&_0x5aa00d[_0x1bfa41(0xe1)](_0x3598c6[_0x1bfa41(0x216)],0x0);if(_0x45050a){_0x5aa00d[_0x1bfa41(0xe7)](_0x4107ae,![])&&(_0xcd8e37=_0x5aa00d[_0x1bfa41(0x1c5)],await _0x5aa00d[_0x1bfa41(0xd7)](reportToGalactusAndSendToEDS,_0x3960cc,_0x55e7db,_0xcd8e37,messageTypes['ERROR'],_0x5aa00d[_0x1bfa41(0x212)],_0x5aa00d[_0x1bfa41(0x1ca)],_0x5aa00d[_0x1bfa41(0x1a9)]),logger['error'](_0xcd8e37),process[_0x1bfa41(0x1bb)](0x1));const _0x25be6f=await _0x6649f2['isVPCPresent'](_0x207560);_0x5aa00d[_0x1bfa41(0x226)](_0x25be6f,![])?(_0xcd8e37=_0x5aa00d['pQakE'],await _0x5aa00d[_0x1bfa41(0x1fe)](reportToGalactusAndSendToEDS,_0x3960cc,_0x55e7db,_0xcd8e37,messageTypes['ERROR'],_0x5aa00d[_0x1bfa41(0x212)],_0x5aa00d['YfkSe'],_0x5aa00d[_0x1bfa41(0x1a9)]),logger[_0x1bfa41(0x1d2)](_0xcd8e37),process['exit'](0x1)):logger[_0x1bfa41(0x206)](_0x1bfa41(0xfb)+_0x207560+'\x20');const _0x19cf62=await _0x6649f2[_0x1bfa41(0xa4)](_0x3598c6,_0x207560);_0x5aa00d[_0x1bfa41(0xe7)](_0x19cf62[0x0],![])?(_0xcd8e37=_0x1bfa41(0xb4)+JSON[_0x1bfa41(0x1c2)](_0x19cf62[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x207560+_0x1bfa41(0x1f2),await _0x5aa00d[_0x1bfa41(0xd7)](reportToGalactusAndSendToEDS,_0x3960cc,_0x55e7db,_0xcd8e37,messageTypes[_0x1bfa41(0x16b)],_0x5aa00d[_0x1bfa41(0x212)],_0x5aa00d[_0x1bfa41(0xa7)],_0x5aa00d['Rgnvh']),logger[_0x1bfa41(0x1d2)](_0xcd8e37),process[_0x1bfa41(0x1bb)](0x1)):logger['info'](_0x1bfa41(0x9c)+JSON[_0x1bfa41(0x1c2)](_0x3598c6)+'\x20'),[_0x207560,_0x3598c6]=await _0x6649f2[_0x1bfa41(0x1fc)](_0x207560,_0x3598c6);}else{const _0x11c3e0=_0x5aa00d[_0x1bfa41(0xa6)]['split']('|');let _0x3749d2=0x0;while(!![]){switch(_0x11c3e0[_0x3749d2++]){case'0':const _0x4fd668={};_0x4fd668['type']=WS_EVENTS[_0x1bfa41(0x1c6)],_0x4fd668['message']=_0x5aa00d[_0x1bfa41(0x85)],webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x4fd668);continue;case'1':const _0x17d1f2={};_0x17d1f2[_0x1bfa41(0x14a)]=WS_EVENTS[_0x1bfa41(0x1c6)],_0x17d1f2['message']=_0x5aa00d[_0x1bfa41(0xa0)],webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x17d1f2);continue;case'2':logger[_0x1bfa41(0x206)](_0x5aa00d[_0x1bfa41(0x85)]);continue;case'3':logger[_0x1bfa41(0x206)](_0x5aa00d[_0x1bfa41(0xa0)]);continue;case'4':[_0x207560,_0x3598c6]=await _0x6649f2[_0x1bfa41(0x1fc)](_0x207560,_0x3598c6);continue;}break;}}}}_0x704d5c&&_0x5aa00d['fZMzT'](_0x45c86d,AZURE)&&(await _0x6649f2['updateClusterAlreadyPresent'](),await _0x6649f2[_0x1bfa41(0x1fd)]());const [_0x32c67a,_0x51895c,_0x33cbab,_0x3ad241,_0x2c1742,_0x3aea1f,_0x3c2ae5]=await _0x5aa00d[_0x1bfa41(0x213)](createK8sClient,_0x6649f2,_0x3960cc[_0x1bfa41(0x96)]);_0x5aa00d[_0x1bfa41(0x1cf)](_0x704d5c,![])&&_0x5aa00d[_0x1bfa41(0x22d)](_0x45c86d,AWS)&&(global_registry[_0x1bfa41(0x1f6)]=!![],_0x42d4e3=await _0x6649f2[_0x1bfa41(0x154)](_0x32c67a,_0x3960cc));if(_0x5aa00d[_0x1bfa41(0x162)](_0x704d5c,![])&&global_registry[_0x1bfa41(0x20c)])try{await _0x6649f2[_0x1bfa41(0xdb)](_0x3aea1f,_0x3c2ae5,_0x3960cc,_0x207560,_0x3598c6);const _0x37a478={};_0x37a478['type']=WS_EVENTS['LOG'],_0x37a478[_0x1bfa41(0x172)]=_0x5aa00d['SRNUg'],webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x37a478);!await _0x5aa00d[_0x1bfa41(0x123)](namespaceExists,_0x32c67a,global_registry[_0x1bfa41(0x21f)])&&await _0x5aa00d[_0x1bfa41(0x14e)](createNamespace,_0x32c67a,global_registry[_0x1bfa41(0x21f)]);logger[_0x1bfa41(0x206)](_0x5aa00d['lSegA']);let _0x403091=await fs[_0x1bfa41(0x211)](path[_0x1bfa41(0x1df)](__dirname,_0x5aa00d['BFNcl'],_0x5aa00d[_0x1bfa41(0x180)],_0x5aa00d[_0x1bfa41(0x19d)],_0x5aa00d[_0x1bfa41(0x227)]),_0x5aa00d[_0x1bfa41(0x18b)]);_0x403091=_0x403091['replace'](/<RedisClientPassword>/g,_0x5aa00d[_0x1bfa41(0x116)](encodeBase64,global_registry[_0x1bfa41(0x1cc)])),_0x403091=_0x403091[_0x1bfa41(0xf9)](/<KafkaClientPassword>/g,_0x5aa00d['NnWnc'](encodeBase64,global_registry[_0x1bfa41(0xbe)])),_0x403091=_0x403091[_0x1bfa41(0xf9)](/<BstackUsername>/g,_0x5aa00d[_0x1bfa41(0x112)](encodeBase64,global_registry[_0x1bfa41(0x115)])),_0x403091=_0x403091[_0x1bfa41(0xf9)](/<BstackAccessKey>/g,_0x5aa00d['NnWnc'](encodeBase64,global_registry[_0x1bfa41(0xfd)]));const _0xc1043d=yaml['loadAll'](_0x403091);await _0x5aa00d[_0x1bfa41(0x1f5)](kubeApply,_0xc1043d,_0x3c2ae5),logger[_0x1bfa41(0x206)](_0x5aa00d[_0x1bfa41(0xe3)]);let _0x13c37b=_0x5aa00d[_0x1bfa41(0x215)];if(_0x5aa00d[_0x1bfa41(0x1da)](_0x45c86d,AZURE))_0x13c37b=_0x5aa00d[_0x1bfa41(0x15d)];else _0x5aa00d[_0x1bfa41(0xcd)](_0x45c86d,GCP)&&(_0x13c37b=_0x5aa00d[_0x1bfa41(0xb8)]);logger['info'](_0x5aa00d[_0x1bfa41(0x224)]);let _0x23796c=await fs['readFileAsync'](path[_0x1bfa41(0x1df)](__dirname,_0x5aa00d['BFNcl'],_0x5aa00d[_0x1bfa41(0x180)],_0x5aa00d[_0x1bfa41(0x19d)],_0x5aa00d[_0x1bfa41(0x221)]),_0x5aa00d[_0x1bfa41(0x18b)]);_0x23796c=_0x23796c[_0x1bfa41(0xf9)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x23796c=_0x23796c[_0x1bfa41(0xf9)](/<StorageClassName>/g,_0x13c37b);const _0x5cf5aa=yaml[_0x1bfa41(0x20b)](_0x23796c);await _0x5aa00d['wSjAg'](kubeApply,_0x5cf5aa,_0x3c2ae5),logger[_0x1bfa41(0x206)](_0x5aa00d['ovXdU']),logger[_0x1bfa41(0x206)](_0x5aa00d['VlxfJ']);let _0x309647=await fs['readFileAsync'](path['join'](__dirname,_0x5aa00d[_0x1bfa41(0x1ea)],_0x5aa00d[_0x1bfa41(0x180)],_0x5aa00d['YzMIN'],_0x5aa00d[_0x1bfa41(0xa2)]),_0x5aa00d[_0x1bfa41(0x18b)]);_0x309647=_0x309647[_0x1bfa41(0xf9)](/<HubHaNameSpace>/g,global_registry[_0x1bfa41(0x21f)]),_0x309647=_0x309647[_0x1bfa41(0xf9)](/<StorageClassName>/g,_0x13c37b);const _0xdbde83=yaml['loadAll'](_0x309647);await _0x5aa00d[_0x1bfa41(0x199)](kubeApply,_0xdbde83,_0x3c2ae5),logger[_0x1bfa41(0x206)](_0x5aa00d[_0x1bfa41(0x105)]),logger[_0x1bfa41(0x206)](_0x5aa00d[_0x1bfa41(0x18a)]);let _0x43835c=await fs['readFileAsync'](path[_0x1bfa41(0x1df)](__dirname,_0x5aa00d[_0x1bfa41(0x1ea)],_0x5aa00d[_0x1bfa41(0x180)],_0x5aa00d[_0x1bfa41(0x19d)],_0x5aa00d['qBCuw']),_0x5aa00d[_0x1bfa41(0x18b)]);_0x43835c=_0x43835c[_0x1bfa41(0xf9)](/<UploaderImageVersion>/g,global_registry[_0x1bfa41(0x9b)]),_0x43835c=_0x43835c[_0x1bfa41(0xf9)](/<HubHaNameSpace>/g,global_registry[_0x1bfa41(0x21f)]);const _0x295970=yaml['loadAll'](_0x43835c);_0x5aa00d[_0x1bfa41(0x11b)](global_registry[_0x1bfa41(0xe9)],AZURE)&&(_0x295970[0x0]['spec'][_0x1bfa41(0x174)]['metadata'][_0x1bfa41(0x148)]={'azure.workload.identity/use':_0x5aa00d[_0x1bfa41(0x110)],..._0x295970[0x0][_0x1bfa41(0x1bc)]['template'][_0x1bfa41(0xbf)][_0x1bfa41(0x148)]},_0x295970[0x0]['spec'][_0x1bfa41(0x174)][_0x1bfa41(0x1bc)][_0x1bfa41(0xc7)]=_0x5aa00d[_0x1bfa41(0x204)]);await _0x5aa00d[_0x1bfa41(0x1e9)](kubeApply,_0x295970,_0x3c2ae5),logger[_0x1bfa41(0x206)](_0x5aa00d['ZxCNE']);const _0x339c98={};_0x339c98[_0x1bfa41(0x14a)]=WS_EVENTS[_0x1bfa41(0x1c6)],_0x339c98['message']=_0x5aa00d['GZqBB'],webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x339c98),logger[_0x1bfa41(0x206)](_0x5aa00d[_0x1bfa41(0xc2)]);}catch(_0x38c99d){const _0x4fbbf0=_0x5aa00d['DUtEA']['split']('|');let _0xfb97c6=0x0;while(!![]){switch(_0x4fbbf0[_0xfb97c6++]){case'0':await _0x6649f2['deleteCluster'](_0x32c67a,global_registry[_0x1bfa41(0xd1)]);continue;case'1':logger['error'](_0xcd8e37);continue;case'2':process[_0x1bfa41(0x1bb)](0x1);continue;case'3':await _0x5aa00d[_0x1bfa41(0xf5)](reportToGalactusAndSendToEDS,_0x3960cc,_0x55e7db,_0xcd8e37,messageTypes[_0x1bfa41(0x16b)],_0x5aa00d[_0x1bfa41(0x212)],_0x5aa00d[_0x1bfa41(0xf3)],_0x5aa00d[_0x1bfa41(0x1a9)]);continue;case'4':_0xcd8e37=_0x1bfa41(0x194)+_0x38c99d[_0x1bfa41(0x172)];continue;}break;}}try{_0x43ff28=_0x5aa00d['IQHeJ'](kebabCase,_0x2c46a3),logger[_0x1bfa41(0x206)](_0x5aa00d[_0x1bfa41(0x1ef)]);const _0x37078b={};_0x37078b[_0x1bfa41(0x14a)]=WS_EVENTS[_0x1bfa41(0x1c6)],_0x37078b[_0x1bfa41(0x172)]=_0x5aa00d[_0x1bfa41(0x1ef)],webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x37078b);if(_0x5aa00d[_0x1bfa41(0x137)](_0x43ff28,_0x5aa00d[_0x1bfa41(0x204)])){const _0x2aae1b={};_0x2aae1b[_0x1bfa41(0x99)]=_0x5aa00d['JzyUB'],_0x2aae1b[_0x1bfa41(0x18c)]=_0x5aa00d[_0x1bfa41(0x171)];const _0x423da2={};_0x423da2[_0x1bfa41(0x192)]=_0x43ff28,_0x423da2[_0x1bfa41(0xb6)]=_0x2aae1b;const _0x2b1bc3={};_0x2b1bc3['metadata']=_0x423da2;const _0x16efa8=_0x2b1bc3,_0x202bdf={};_0x202bdf[_0x1bfa41(0xd6)]=_0x16efa8,await _0x32c67a[_0x1bfa41(0xb3)](_0x202bdf),logger[_0x1bfa41(0x206)](_0x5aa00d[_0x1bfa41(0x142)]);}const _0x2a77e9={};_0x2a77e9[_0x1bfa41(0x14a)]=WS_EVENTS[_0x1bfa41(0x1c6)],_0x2a77e9[_0x1bfa41(0x172)]=_0x5aa00d[_0x1bfa41(0x182)],webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x2a77e9);const _0x297dc5={};_0x297dc5[_0x1bfa41(0x14a)]=WS_EVENTS[_0x1bfa41(0x1c6)],_0x297dc5[_0x1bfa41(0x172)]=_0x5aa00d['RHSXq'],webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x297dc5),logger[_0x1bfa41(0x206)](_0x5aa00d[_0x1bfa41(0x104)]);let _0x3df405={};_0x5aa00d[_0x1bfa41(0x1ce)](_0x45c86d,AZURE)&&(_0x3df405={'clientId':await _0x6649f2[_0x1bfa41(0x220)](_0x1bfa41(0xd0)+_0x393bcc)});await _0x5aa00d[_0x1bfa41(0x13b)](addGridComponents,_0x32c67a,_0x51895c,_0x33cbab,_0x3ad241,_0x43ff28,_0x393bcc,_0x42d4e3,_0x2c1742,_0x3c2ae5,_0x3df405),_0xcd8e37=_0x5aa00d['scghb'],logger['info'](_0xcd8e37);const _0x26118e={};_0x26118e[_0x1bfa41(0x14a)]=WS_EVENTS[_0x1bfa41(0x1c6)],_0x26118e[_0x1bfa41(0x172)]=_0xcd8e37,webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x26118e),_0xcd8e37=_0x5aa00d['ggMDr'],logger['info'](_0xcd8e37);const _0x32411d={};_0x32411d['type']=WS_EVENTS['LOG'],_0x32411d[_0x1bfa41(0x172)]=_0xcd8e37,webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x32411d),await _0x5aa00d[_0x1bfa41(0x8c)](waitForDeployment,_0x51895c,_0x43ff28,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x46e5db=await _0x5aa00d['dVwdq'](getNamespaceUID,_0x32c67a,_0x43ff28),_0x4351c0=global_registry[_0x1bfa41(0xc3)]?_0x5aa00d[_0x1bfa41(0x1c7)]:_0x5aa00d['KwKur'],_0x2bbca4={};_0x2bbca4[_0x1bfa41(0x192)]=_0x4351c0,_0x2bbca4['namespace']=_0x5aa00d['REFZy'];const _0x9319dc=await _0x32c67a[_0x1bfa41(0x1d5)](_0x2bbca4);let _0x40504e=_0x6649f2[_0x1bfa41(0x19c)](_0x9319dc)+'/'+_0x43ff28,_0x188f7f=_0x5aa00d[_0x1bfa41(0x9a)];try{const _0x29de93='https://'+AG_API_URL+_0x1bfa41(0xd4)+_0x46e5db,_0x1fbaa5=await _0x5aa00d[_0x1bfa41(0x1fa)](got,_0x29de93,_0x4b4ebc);(_0x5aa00d[_0x1bfa41(0xad)](_0x1fbaa5,null)||_0x5aa00d[_0x1bfa41(0x1de)](_0x1fbaa5,undefined))&&(_0xcd8e37=_0x5aa00d['zQFNz'],await _0x5aa00d[_0x1bfa41(0x1aa)](reportToGalactusAndSendToEDS,_0x3960cc,_0x55e7db,_0xcd8e37,messageTypes['ERROR'],_0x5aa00d[_0x1bfa41(0x212)],_0x5aa00d[_0x1bfa41(0xbc)],_0x5aa00d[_0x1bfa41(0x1a9)]),logger[_0x1bfa41(0x1d2)](_0xcd8e37),process['exit'](0x1));_0x5aa00d[_0x1bfa41(0xc0)](_0x1fbaa5[_0x1bfa41(0xc8)],0x191)&&(_0xcd8e37=_0x5aa00d[_0x1bfa41(0xda)],await _0x5aa00d['QyTjt'](reportToGalactusAndSendToEDS,_0x3960cc,_0x55e7db,_0xcd8e37,messageTypes['ERROR'],_0x5aa00d['TwEyV'],_0x5aa00d[_0x1bfa41(0x20e)],_0x5aa00d[_0x1bfa41(0x1a9)]),logger[_0x1bfa41(0x1d2)](_0xcd8e37),process['exit'](0x1));_0x5aa00d['WJANc'](_0x1fbaa5[_0x1bfa41(0xc8)],0xc8)&&(_0xcd8e37=_0x1bfa41(0x184)+JSON[_0x1bfa41(0x1c2)](_0x1fbaa5),await _0x5aa00d[_0x1bfa41(0xf5)](reportToGalactusAndSendToEDS,_0x3960cc,_0x55e7db,_0xcd8e37,messageTypes[_0x1bfa41(0x16b)],_0x5aa00d[_0x1bfa41(0x212)],_0x5aa00d[_0x1bfa41(0x1f3)],_0x5aa00d[_0x1bfa41(0x1a9)]),logger[_0x1bfa41(0x1d2)](_0xcd8e37),process['exit'](0x1));const _0x791898=JSON[_0x1bfa41(0x225)](_0x1fbaa5['body']);_0x791898[_0x1bfa41(0xd2)]&&(_0x40504e=_0x791898['route53'],_0x188f7f=_0x5aa00d[_0x1bfa41(0x1b7)]),global_registry[_0x1bfa41(0xc3)]&&(_0x188f7f=_0x5aa00d['DFTuy']);}catch(_0x710ba2){}_0xcd8e37='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x40504e+'\x20',logger[_0x1bfa41(0x206)](_0xcd8e37);const _0x365118={};_0x365118[_0x1bfa41(0x14a)]=WS_EVENTS[_0x1bfa41(0x1c6)],_0x365118[_0x1bfa41(0x172)]=_0xcd8e37,webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x365118),_0xcd8e37=_0x1bfa41(0x1c8)+_0x188f7f+_0x1bfa41(0x130)+_0x40504e+_0x1bfa41(0xb9),logger[_0x1bfa41(0x206)](_0xcd8e37);const _0xd45729={};_0xd45729[_0x1bfa41(0x14a)]=WS_EVENTS[_0x1bfa41(0x1c6)],_0xd45729[_0x1bfa41(0x172)]=_0xcd8e37,webSocketUtils['sendEventToBackend'](_0x55e7db,_0xd45729);const _0x3e0513={};_0x3e0513[_0x1bfa41(0x14a)]=WS_EVENTS[_0x1bfa41(0xed)],_0x3e0513[_0x1bfa41(0x172)]=_0x1bfa41(0x1b3)+_0x40504e,webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x3e0513),await webSocketUtils[_0x1bfa41(0x21d)](0x7d0);}catch(_0x39dfc0){logger['error']('Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20'+_0x39dfc0+'\x20\x0a'+JSON['stringify'](_0x39dfc0[_0x1bfa41(0x13e)]));if(_0x5aa00d[_0x1bfa41(0x166)](_0x704d5c,![]))try{logger['info'](_0x5aa00d['CTEwO']),await _0x5aa00d[_0x1bfa41(0xdd)](removeGridComponents,_0x32c67a,_0x51895c,_0x33cbab,_0x3ad241,_0x43ff28),await _0x6649f2['deleteCluster'](_0x32c67a,global_registry[_0x1bfa41(0xd1)]);}catch(_0x897fb8){logger['error']('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x897fb8+'\x20\x0a'+JSON[_0x1bfa41(0x1c2)](_0x897fb8[_0x1bfa41(0x13e)]));}throw _0x39dfc0;}}catch(_0x4bfad5){const _0x3de34c=_0x1bfa41(0x133)+_0x4bfad5+'\x20\x0a'+JSON['stringify'](_0x4bfad5[_0x1bfa41(0x13e)]);if(_0x55e7db){const _0x1151c8={};_0x1151c8[_0x1bfa41(0x14a)]=WS_EVENTS[_0x1bfa41(0x1c6)],_0x1151c8[_0x1bfa41(0x172)]=_0x3de34c,webSocketUtils[_0x1bfa41(0x210)](_0x55e7db,_0x1151c8,_0x5aa00d[_0x1bfa41(0x1a9)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x420a08={};_0x420a08[_0x1bfa41(0x1d2)]=_0x3de34c,await _0x5aa00d[_0x1bfa41(0x16e)](sendInstrumentationEvent,_0x3960cc,_0x5aa00d[_0x1bfa41(0x212)],messageTypes[_0x1bfa41(0x16b)],_0x5aa00d[_0x1bfa41(0x14f)],_0x420a08,_0x3960cc),logger[_0x1bfa41(0x1d2)](_0x3de34c);}process['exit'](0x0);};function a9_0x4296(){const _0x23812f=['https','lUBKd','Will\x20be\x20spawning\x20the\x20grid\x20','fMJGb','premium-rwo','HfZLG','buszp','qcDcK','wGUPn','ntbai','uvNli','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','uuid','zxbTP','user','grid-profile','jFcpW','../../utils/webSocketUtils','skipTlsCertVerify','newCluster','CgWof','createdBy','DFTuy','uploaderImageVersion','Found\x20Subnets:\x20','GVbPt','10|5|11|8|2|15|13|0|7|12|4|9|1|3|14|6','HArVX','BqXQu','OeGhx','TUcoC','WjPJP','isSubnetsValid','jrlbS','QbIgC','mpRdr','XwJrU','QGmqz','region','XAxks','QATkh','fZMzT','HUIFl','Spawning\x20the\x20grid\x20','waYxY','js-yaml','UTBGV','createNamespace','Subnets:\x20','lRBYF','annotations','ZaCgp','ALpJm','/wd/hub','4|1|3|0|2','bfAPq','GRDiQ','Adding\x20Turboscale\x20Uploader\x20deployment...','kafkaPassword','metadata','Heoln','description','NbcMz','isPrivateGrid','20CBgluc','browserstack','NnWnc','serviceAccountName','statusCode','templates','2753527EfxVNI','path','taJVX','IRwjR','BGDdU','Epyd5nXbRK','turboscale-managed-identity-','clusterRegion','route53','pzvnX','/packages/cli/get-grid-url?gridIdentifier=','\x20in\x20existing\x20cluster\x20\x27','body','FynDM','create','uznga','aXLMI','setupHubHa','GGzgh','MtiwD','handler','pre-spawned-invalid-subnets','HFEWJ','HOlHv','Added\x20Turboscale\x20Uploader\x20deployment.','vLhMu','TYzmb','uptAw','udKYt','ngUcJ','LwcCM','cloudProvider','KwCaF','FkZDf','password','CLI_RUN_FINISHED','cloud-provider','LWgjk','PINVg','LuOcT','isClusterPresent','mYUls','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','MDHDH','../../config/logger','1|3|4|0|2','efs-csi','replace','831065xJXwQm','Found\x20VPC:\x20','ApRYT','bstackAccesskey','Namespace\x20created','qUdMR','UAvpn','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','create-grid-called','hdbPw','UIDVl','rwoHY','http','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','CxHhF','liPXI','browserstack-secret.yaml','5474282XyBXqK','ZAcki','XrvlK','private-ingress-nginx-controller','create-grid-checks-invalid-profile','KohUO','../../utils/utilityMethods','VCoMs','cqDaz','reconnecting-websocket','bstackUsername','vrbXX','npWNg','cluster-name','2294010VGJuXR','GRIod','REtqH','warn','vpc','Adding\x20Kafka\x20deployment...','Create\x20a\x20new\x20Automation\x20grid.','Spawning\x20Grid\x20on\x20the\x20Cluster','prespawned-cluster-args-not-passed','1|0|6|2|3|8|4|7|5','PGkDa','sendResourceDataToHST','VXmkw','argv','nVact','kafkaUploader','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','fCZdu','CLI\x20run\x20started','RpvKr','<PasswordPlaceholder>','yVqHM','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','://','uqSBA','WFyLc','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','yvxnS','EmJUU','help','oBfMi','ZOfuH','s3bucket','../..','NVRke','maxNodes','addListeners','stack','\x20using\x20\x27','113024Yedwze','grid-name','ZvcUe','Create\x20a\x20private/public\x20grid.','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','qGZRK','CBawU','XxkqL','labels','Cluster\x20','type','defaultGridProfile','command','ELtYg','xViom','Wmjpx','hcQWz','kgFWc','cSYnS','ingress-nginx-controller','setupAutoscaler','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','Grid\x20profile\x20fetched\x20from\x20backend','Adding\x20Secret\x20Mapping','teerp','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','HIFHo','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','VEEBB','TPdmA','WwzZx','subnets','uCSby','get-grid-url-auth-failed','sMGWa','eNcNJ','sBlxq','AapNq','kZTGm','3|2|1|0|4','\x27\x20grid\x20profile','vnsKZ','hZiag','ERROR','40vvmFrO','SNIAK','dSESU','BYJNA','gridProfile','JzyUB','message','hubharesources','template','198372iPLLkW','MGyEA','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','Grid\x20spawned\x20on\x20the\x20cluster','/packages/cli/create-grid-checks','nyUUZ','Hub\x20HA\x20setup\x20completed\x20successfully.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','4|0|1|2|3','private-grid','8mpYYvq','fxMnU','LLgYr','aETlE','WJual','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','instanceType','get-grid-url-non-200','options','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','ngaxt','RiFhj','managedBy','grid-spawning-failed','GHBwN','concurrency','uOdCw','sFYnm','name','browserVersion','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','XanNM','KyqPk','sVfhD','requestId','cNEab','ZyUhj','bEMll','getGridHostname','YzMIN','moipO','split','WNDfC','CgOJv','CLI_RUN_STARTED','WJANc','../../utils/gridComponents','cluster-autoupgrade','JxjbO','oPLPZ','WmkSp','Rgnvh','aUbns','RwzjD','yHsGR','Enabling\x20Hub\x20HA\x20flow','create-grid-checks-auth-failed','hub-ha','../../utils/createk8sClient','TUdSs','tOzKP','CLI\x20run\x20finished:\x20','<UsernamePlaceholder>','default','ziiGt','VFlop','Browserstack','turboscale-uploader.yaml','usage','exit','spec','JjJbW','bGYKl','existsSync','oisZg','string','stringify','Cluster:\x20','hubVersion','mPXUI','LOG','Utjee','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','Creating\x20namespace','GsUUV','hubHa','redisPassword','username','ozVJO','YCzZI','NLNCw','6ZoTDyd','error','GET','privateGrid','readNamespacedService','BBZCR','IXShc','eQXoF','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','sovpq','gDUoX','aQcQk','BOSXw','ZQelb','join','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','Creating\x20Hub\x20HA\x20resources','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','QKbKI','UcImQ','alreadyPresent','AfoeX','got','clusterAutoupgrade','tGVJn','BFNcl','https://','mzlYa','pQQzj','5163723Rquaqx','EzQwQ','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','AWMhp','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','MCCpl','Jslzn','wImJr','isNewAWSCluster','qgTDb','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','BFqXF','udqkY','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','setupNewCluster','createOtherResources','QyTjt','MLHND','Skip\x20insecure\x20cert\x20verification.','iRJMj','epilogue','boolean','posps','adDUN','info','../../config/constants','AAoeD','uploaderVersion','Deleting\x20the\x20CloudFormation\x20Stacks','loadAll','enableHubHa','Added\x20Secret\x20Mapping','QMTee','connectionTimeout','sendEventToBackend','readFileAsync','TwEyV','wSjAg','clusterAutoUpgrade','TtfQW','length','XUUsb','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','bitnami-redis.yaml','../../utils/instrumentationUtils','true','skip-tls-cert-verify','delay','NmykY','hubHaNameSpace','getResourceClientId','JvOkS','ctEdM','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Heerf','parse','RoYVG','UOiPH','gridName','non-aws-azure-cluster','ingress-nginx','DFpGP','gridProfileId','ZFEnF','minNodes','clusterName'];a9_0x4296=function(){return _0x23812f;};return a9_0x4296();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a10_0x21e6(_0x2d0fab,_0x72b7bf){const _0x380426=a10_0x3804();return a10_0x21e6=function(_0x21e674,_0x5c61ab){_0x21e674=_0x21e674-0x1b3;let _0x387515=_0x380426[_0x21e674];return _0x387515;},a10_0x21e6(_0x2d0fab,_0x72b7bf);}const a10_0x38fb03=a10_0x21e6;(function(_0x269402,_0x55735d){const _0x40ed90=a10_0x21e6,_0x5695c4=_0x269402();while(!![]){try{const _0x436bdd=parseInt(_0x40ed90(0x1cc))/0x1+parseInt(_0x40ed90(0x1cb))/0x2*(-parseInt(_0x40ed90(0x1c6))/0x3)+parseInt(_0x40ed90(0x1c9))/0x4*(parseInt(_0x40ed90(0x1ba))/0x5)+parseInt(_0x40ed90(0x1c2))/0x6+-parseInt(_0x40ed90(0x1c8))/0x7*(parseInt(_0x40ed90(0x1ce))/0x8)+parseInt(_0x40ed90(0x1c1))/0x9*(-parseInt(_0x40ed90(0x1bf))/0xa)+-parseInt(_0x40ed90(0x1b5))/0xb*(-parseInt(_0x40ed90(0x1b4))/0xc);if(_0x436bdd===_0x55735d)break;else _0x5695c4['push'](_0x5695c4['shift']());}catch(_0x49bdbb){_0x5695c4['push'](_0x5695c4['shift']());}}}(a10_0x3804,0xb2c2e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x38fb03(0x1b9));function a10_0x3804(){const _0x4b2f2f=['usage','63HtlUgA','405528RlXWbY','builder','recommendCommands','strict','1031541nnEqlx','handler','28eMwtnQ','4784464lviLhw','help','8uvHtYY','3524UcIOFQ','command','1359728YOHFGu','delete','12ELCjfm','24166582zTduke','oHYLC','desc','epilogue','../config/constants','5kvrJRu','delete_commands','eLTOr','List\x20Grid\x20resources.','commandDir','966760FSGGcB'];a10_0x3804=function(){return _0x4b2f2f;};return a10_0x3804();}exports[a10_0x38fb03(0x1cd)]=a10_0x38fb03(0x1b3),exports[a10_0x38fb03(0x1b7)]=a10_0x38fb03(0x1bd),exports[a10_0x38fb03(0x1c3)]=function(_0x5c4026){const _0x14c680=a10_0x38fb03,_0x4b309c={};_0x4b309c[_0x14c680(0x1bc)]=_0x14c680(0x1bb),_0x4b309c['oHYLC']=_0x14c680(0x1ca);const _0x38b9d3=_0x4b309c;return _0x5c4026[_0x14c680(0x1c0)](HELP_HEADER_MESSAGE['delete'])[_0x14c680(0x1b8)](HELP_FOOTER_MESSAGE)[_0x14c680(0x1be)](_0x38b9d3['eLTOr'])['demandCommand']()[_0x14c680(0x1c4)]()[_0x14c680(0x1c5)]()[_0x14c680(0x1ca)](_0x38b9d3[_0x14c680(0x1b6)]);},exports[a10_0x38fb03(0x1c7)]=function(_0x69612e){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11_0x13a50d=a11_0x162a;function a11_0x162a(_0x917247,_0x464d25){const _0xa2dd64=a11_0xa2dd();return a11_0x162a=function(_0x162a04,_0x54ea27){_0x162a04=_0x162a04-0x1aa;let _0x1df49b=_0xa2dd64[_0x162a04];return _0x1df49b;},a11_0x162a(_0x917247,_0x464d25);}(function(_0x4c7d2b,_0x29b3ce){const _0xeebc64=a11_0x162a,_0xb36654=_0x4c7d2b();while(!![]){try{const _0x14e62a=-parseInt(_0xeebc64(0x23f))/0x1+parseInt(_0xeebc64(0x1fd))/0x2*(parseInt(_0xeebc64(0x23a))/0x3)+parseInt(_0xeebc64(0x230))/0x4+parseInt(_0xeebc64(0x241))/0x5*(parseInt(_0xeebc64(0x1be))/0x6)+-parseInt(_0xeebc64(0x234))/0x7*(-parseInt(_0xeebc64(0x20f))/0x8)+-parseInt(_0xeebc64(0x233))/0x9*(-parseInt(_0xeebc64(0x205))/0xa)+-parseInt(_0xeebc64(0x240))/0xb;if(_0x14e62a===_0x29b3ce)break;else _0xb36654['push'](_0xb36654['shift']());}catch(_0x184960){_0xb36654['push'](_0xb36654['shift']());}}}(a11_0xa2dd,0x82324));const fs=require('fs'),got=require(a11_0x13a50d(0x1b7)),{v4:uuidv4}=require(a11_0x13a50d(0x222)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x13a50d(0x1cf)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require('../../config/constants'),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x13a50d(0x20b)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x13a50d(0x1bc)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require('../../utils/userInput'),{createK8sClient}=require(a11_0x13a50d(0x246)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x13a50d(0x1d9)),webSocketUtils=require(a11_0x13a50d(0x1fa));function a11_0xa2dd(){const _0x27261f=['LGFOf','stack','CGkfN','warn','oLpoC','rEBtR','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','unknown-error','kOiBl','boolean','ZXbDd','fPYVh','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','ZOEdb','clusterName','TNTJL','uuid','string','parse','<PasswordPlaceholder>','delete-grid-called','fVxyO','zhwxq','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','QFUHS','VbbBw','delete','handler','yVahh','1579628SfpUrs','message','usage','52110gkNEIA','382109Agocid','WebSocket','https://','GiPdP','HimMa','help','84207vEvceL','KvJIe','xbQit','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','default','430240JpcFkW','18539334JBWyVY','75oBiIgN','region','readNamespace','xEqFW','command','../../utils/createk8sClient','FDmqs','aCIXk','<UsernamePlaceholder>','qcuSl','isClusterPresent','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','cVvvT','skipTlsCertVerify','then','clusterRegion','oGuGF','DsiHH','catch','GTKMi','ERROR','got','ytsdg','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','Skip\x20insecure\x20cert\x20verification.','mkDVP','../../utils/gridComponents','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','186486yClZHW','Ptfhl','\x22\x20and\x20ID\x20','YGBMu','TXIuT','type','Yakkd','gbGws','exit','\x22\x20with\x20ID\x20','OpfiQ','username','OkRDn','info','error','onlyGridInCluster','/packages/cli/grid/','reconnecting-websocket','niDcN','gridId','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','INFO','description','epilogue','SJcha','replace','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','../../utils/utilityMethods','dqNty','existsSync','init-not-called','tdDYF','kvnNb','cpEBA','connectionTimeout','BniQG','Cluster:\x20','name','Failed\x20to\x20delete\x20resources!\x20Error:\x20','lLwKa','GPvLA','invalid-grid-id','bZYRh','stringify','WXSLG','UrttC','server-error','ACClt','nEEcf','cUaWH','TyfHK','heKWi','options','requestId','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','pIKuX','readFileSync','invalid-input','kdpJT','tWlRL','../../utils/webSocketUtils','KCweG','HFaXW','46RZwgiD','statusCode','IIzUQ','clusterId','Jvyij','ZGDIl','password','ADcVM','370TdnVlV','Namespace:\x20','JYNDi','Browserstack','grid-id','grid','../../cloudproviders/utils','XNLnn','body','skip-tls-cert-verify','136CrnWBt','PRJkt'];a11_0xa2dd=function(){return _0x27261f;};return a11_0xa2dd();}exports[a11_0x13a50d(0x245)]=a11_0x13a50d(0x20a),exports['desc']='Delete\x20an\x20Automation\x20grid.',exports['builder']=function(_0x22f85f){const _0x395ff0=a11_0x13a50d,_0x3de173={};_0x3de173[_0x395ff0(0x1c8)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x3de173[_0x395ff0(0x21f)]=_0x395ff0(0x223),_0x3de173[_0x395ff0(0x1dd)]=_0x395ff0(0x1ba),_0x3de173[_0x395ff0(0x1c1)]='boolean',_0x3de173[_0x395ff0(0x23c)]=_0x395ff0(0x239);const _0x5b466c=_0x3de173,_0x3ee0c3={};_0x3ee0c3['description']=_0x5b466c[_0x395ff0(0x1c8)],_0x3ee0c3[_0x395ff0(0x1c3)]=_0x5b466c['ZOEdb'];const _0x2c1398={};_0x2c1398['description']=_0x5b466c['tdDYF'],_0x2c1398['type']=_0x5b466c[_0x395ff0(0x1c1)],_0x2c1398[_0x395ff0(0x23e)]=![];const _0x4880af={};return _0x4880af[_0x395ff0(0x209)]=_0x3ee0c3,_0x4880af[_0x395ff0(0x20e)]=_0x2c1398,_0x22f85f['usage'](HELP_HEADER_MESSAGE[_0x395ff0(0x22d)])[_0x395ff0(0x1d5)](HELP_FOOTER_MESSAGE)['options'](_0x4880af)['help'](_0x5b466c[_0x395ff0(0x23c)])['argv'];},exports[a11_0x13a50d(0x22e)]=async function(_0x3fb338){const _0x353a0f=a11_0x13a50d,_0x486106={'DsiHH':'Successfully\x20deleted\x20the\x20grid','KCweG':'Pass\x20the\x20ID\x20of\x20the\x20Grid','nEEcf':'string','TXIuT':'Skip\x20insecure\x20cert\x20verification.','qcuSl':_0x353a0f(0x21a),'bZYRh':_0x353a0f(0x239),'ytsdg':_0x353a0f(0x217),'TNTJL':function(_0x2cfb7a,_0x1d795e){return _0x2cfb7a!==_0x1d795e;},'tWlRL':_0x353a0f(0x211),'FDmqs':_0x353a0f(0x1d6),'fVxyO':function(_0x28c74d,_0x3c1236){return _0x28c74d===_0x3c1236;},'ddxyZ':_0x353a0f(0x20c),'cUaWH':_0x353a0f(0x1d2),'vdvGe':function(_0x1d0a63){return _0x1d0a63();},'Ptfhl':function(_0x43c834){return _0x43c834();},'YiESl':_0x353a0f(0x1d0),'cpEBA':_0x353a0f(0x1f0),'yVahh':_0x353a0f(0x23d),'GiPdP':function(_0x147221,_0x8cb099,_0x14b4eb,_0x36736e,_0x103925,_0x4a5655,_0x3d6c3d){return _0x147221(_0x8cb099,_0x14b4eb,_0x36736e,_0x103925,_0x4a5655,_0x3d6c3d);},'zhwxq':_0x353a0f(0x226),'rEBtR':_0x353a0f(0x1dc),'IIzUQ':function(_0x4464c5,_0x510799,_0x59dafc,_0x364959,_0x37ec47,_0x132d9c,_0x352b3d){return _0x4464c5(_0x510799,_0x59dafc,_0x364959,_0x37ec47,_0x132d9c,_0x352b3d);},'WXSLG':function(_0x404cd3,_0x3d3d29){return _0x404cd3!==_0x3d3d29;},'gbGws':_0x353a0f(0x238),'BExXM':_0x353a0f(0x1c4),'GoTlO':function(_0x54353b,_0x1cf1ad,_0xeb1a4d,_0x449fb8){return _0x54353b(_0x1cf1ad,_0xeb1a4d,_0x449fb8);},'GTKMi':_0x353a0f(0x208),'ACClt':function(_0x40f806,_0xebbd90){return _0x40f806===_0xebbd90;},'GPvLA':'iwHCv','UmBHn':function(_0x561ee0,_0x232555){return _0x561ee0(_0x232555);},'JYNDi':function(_0x1e5a3d,_0x1ff078){return _0x1e5a3d===_0x1ff078;},'PRJkt':function(_0x1687a5,_0x54b452){return _0x1687a5===_0x54b452;},'aCIXk':_0x353a0f(0x1de),'BniQG':_0x353a0f(0x22a),'fPYVh':_0x353a0f(0x1f7),'ZGDIl':_0x353a0f(0x21b),'CGkfN':_0x353a0f(0x204),'heKWi':_0x353a0f(0x1aa),'dqNty':_0x353a0f(0x225),'UrttC':function(_0x4fee81,_0x2ced60){return _0x4fee81(_0x2ced60);},'oLpoC':function(_0x58ed08,_0x56e712,_0x2bb427){return _0x58ed08(_0x56e712,_0x2bb427);},'HFaXW':function(_0x20050c,_0x29eb33,_0x458136,_0x2b31e1,_0x17295c,_0x1c285b){return _0x20050c(_0x29eb33,_0x458136,_0x2b31e1,_0x17295c,_0x1c285b);},'Jvyij':'ZMHMe','gxfqO':'TeXWa','jbYdS':function(_0x23d475,_0x4bff31){return _0x23d475!==_0x4bff31;},'FULZf':_0x353a0f(0x244),'DSqGB':_0x353a0f(0x1f5),'HDRVG':'DELETE','VbbBw':function(_0x9606fd,_0x4d78c3,_0x2ccaf8){return _0x9606fd(_0x4d78c3,_0x2ccaf8);},'OkRDn':function(_0x462dc6,_0x13aad6){return _0x462dc6!==_0x13aad6;},'kEZWe':function(_0x51be3e,_0x21e9b8,_0x5560bb,_0x314796,_0x1e13e1,_0x6f8f85,_0x345994){return _0x51be3e(_0x21e9b8,_0x5560bb,_0x314796,_0x1e13e1,_0x6f8f85,_0x345994);},'kdpJT':_0x353a0f(0x1ec),'wwfeQ':function(_0x275c30,_0x2e7bba){return _0x275c30===_0x2e7bba;},'mkDVP':_0x353a0f(0x1ad),'oGuGF':'unauthorised','QFUHS':_0x353a0f(0x1e7),'kOiBl':function(_0x1670d2,_0x2e71d3,_0x5b0fbc,_0x6ff5b5,_0x42f5f6,_0x42abf9,_0x24616e){return _0x1670d2(_0x2e71d3,_0x5b0fbc,_0x6ff5b5,_0x42f5f6,_0x42abf9,_0x24616e);},'KvJIe':function(_0x30f545,_0x1d162e,_0x4464ff,_0x274bd0,_0x7b4bf0,_0x199561,_0x17cf12){return _0x30f545(_0x1d162e,_0x4464ff,_0x274bd0,_0x7b4bf0,_0x199561,_0x17cf12);},'cVvvT':_0x353a0f(0x218)};try{global_registry[_0x353a0f(0x1f3)]=_0x486106['vdvGe'](uuidv4);!fs[_0x353a0f(0x1db)](_0x486106[_0x353a0f(0x1bf)](getCredentialsPath))&&(_0x486106[_0x353a0f(0x221)](_0x486106['YiESl'],_0x486106[_0x353a0f(0x1df)])?(console[_0x353a0f(0x1cc)](_0x486106[_0x353a0f(0x22f)]),await _0x486106[_0x353a0f(0x237)](sendInstrumentationEvent,_0x3fb338,_0x486106[_0x353a0f(0x228)],messageTypes[_0x353a0f(0x1b6)],_0x486106[_0x353a0f(0x216)],null,_0x3fb338),process[_0x353a0f(0x1c6)](0x1)):(_0xc46109['info'](_0x486106['DsiHH']),_0x445f5e[_0x353a0f(0x1c6)](0x0)));_0x486106[_0x353a0f(0x1ff)](sendInstrumentationEvent,_0x3fb338,_0x486106[_0x353a0f(0x228)],messageTypes[_0x353a0f(0x1d3)],null,null,_0x3fb338);!_0x3fb338[_0x353a0f(0x1d1)]&&(_0x486106[_0x353a0f(0x1ea)](_0x486106[_0x353a0f(0x1c5)],_0x486106['BExXM'])?(console[_0x353a0f(0x1cc)](_0x486106[_0x353a0f(0x1ef)]),process[_0x353a0f(0x1c6)](0x1)):_0x1b07d4[_0x353a0f(0x214)](_0x353a0f(0x1e2)+_0x32b7b7[_0x353a0f(0x220)]+_0x353a0f(0x1f4)));const _0x139f32=JSON['parse'](fs[_0x353a0f(0x1f6)](_0x486106[_0x353a0f(0x1bf)](getCredentialsPath))),[_0x456eb5,_0x4f01d3]=await _0x486106['GoTlO'](getGridDetails,_0x139f32[_0x353a0f(0x208)][_0x353a0f(0x1c9)],_0x139f32[_0x353a0f(0x208)][_0x353a0f(0x203)],_0x3fb338[_0x353a0f(0x1d1)]);if(_0x4f01d3){const _0x4018ff=_0x4f01d3[_0x353a0f(0x1cb)];let _0x251871=_0x353a0f(0x1d8)+_0x4018ff[_0x353a0f(0x1e3)]+'\x22\x20and\x20ID\x20'+_0x4018ff['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';if(_0x4f01d3[_0x353a0f(0x1cd)]&&_0x486106[_0x353a0f(0x227)](_0x4f01d3['clusterSpawnedVia'],_0x486106[_0x353a0f(0x1b5)])){if(_0x486106[_0x353a0f(0x1ed)](_0x486106[_0x353a0f(0x1e6)],_0x486106['GPvLA']))_0x251871=_0x353a0f(0x1d8)+_0x4018ff[_0x353a0f(0x1e3)]+_0x353a0f(0x1c0)+_0x4018ff['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x4018ff[_0x353a0f(0x220)]+'\x22\x20with\x20ID\x20'+_0x4018ff['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';else{const _0x409f4d={};_0x409f4d[_0x353a0f(0x1d4)]=_0x486106[_0x353a0f(0x1fb)],_0x409f4d['type']=_0x486106[_0x353a0f(0x1ee)];const _0xe73208={};_0xe73208['description']=_0x486106[_0x353a0f(0x1c2)],_0xe73208[_0x353a0f(0x1c3)]=_0x486106[_0x353a0f(0x1ab)],_0xe73208[_0x353a0f(0x23e)]=![];const _0x2c3bda={};return _0x2c3bda[_0x353a0f(0x209)]=_0x409f4d,_0x2c3bda[_0x353a0f(0x20e)]=_0xe73208,_0x315cec[_0x353a0f(0x232)](_0x312bbe[_0x353a0f(0x22d)])[_0x353a0f(0x1d5)](_0x2cc218)[_0x353a0f(0x1f2)](_0x2c3bda)[_0x353a0f(0x239)](_0x486106[_0x353a0f(0x1e8)])['argv'];}}const _0x2a8a25=await _0x486106['UmBHn'](inputConfirmation,_0x251871);(_0x486106['ACClt'](_0x2a8a25,undefined)||_0x486106[_0x353a0f(0x207)](_0x2a8a25,null)||!(_0x486106['fVxyO'](_0x2a8a25['toLowerCase'](),'y')||_0x486106[_0x353a0f(0x210)](_0x2a8a25['toLowerCase'](),'n')))&&(_0x486106['ACClt'](_0x486106[_0x353a0f(0x248)],_0x486106['aCIXk'])?(console[_0x353a0f(0x1cc)](_0x486106[_0x353a0f(0x1e1)]),await _0x486106['GiPdP'](sendInstrumentationEvent,_0x3fb338,_0x486106[_0x353a0f(0x228)],messageTypes[_0x353a0f(0x1b6)],_0x486106[_0x353a0f(0x21c)],null,_0x3fb338),process[_0x353a0f(0x1c6)](0x1)):_0x332c57[_0x353a0f(0x1c6)](0x0));_0x486106[_0x353a0f(0x227)](_0x2a8a25['toLowerCase'](),'n')&&(_0x486106['JYNDi'](_0x486106[_0x353a0f(0x202)],_0x486106[_0x353a0f(0x213)])?_0x1caa4f=_0x353a0f(0x1d8)+_0x41b82f[_0x353a0f(0x1e3)]+_0x353a0f(0x1c0)+_0x2baae7['id']+_0x353a0f(0x229)+_0x2aa22e['clusterName']+_0x353a0f(0x1c7)+_0x37b44f[_0x353a0f(0x200)]+_0x353a0f(0x1b9):process[_0x353a0f(0x1c6)](0x0));const _0x183844=WS_ENDPOINT[_0x353a0f(0x1d7)](_0x486106[_0x353a0f(0x1f1)],_0x139f32['Browserstack'][_0x353a0f(0x1c9)])[_0x353a0f(0x1d7)](_0x486106[_0x353a0f(0x1da)],_0x139f32[_0x353a0f(0x208)][_0x353a0f(0x203)]),_0x286f17={};_0x286f17[_0x353a0f(0x235)]=ws,_0x286f17[_0x353a0f(0x1e0)]=0x36ee80;const _0xb29e30=new ReconnectingWebSocket(_0x183844,[],_0x286f17);global_registry[_0x353a0f(0x1b1)]=_0x4018ff[_0x353a0f(0x242)];const _0x5863c6=_0x4018ff['cloudProvider'],_0x21c630=await _0x486106[_0x353a0f(0x237)](getCloudProviderObject,_0x5863c6,_0x4018ff['clusterName'],_0x4018ff[_0x353a0f(0x1e3)],_0xb29e30,webSocketUtils,_0x3fb338),_0x1cdb26=await _0x21c630[_0x353a0f(0x1ac)]();if(_0x1cdb26){const _0xaedd27=_0x486106[_0x353a0f(0x1eb)](kebabCase,_0x4018ff[_0x353a0f(0x1e3)]),[_0x3fd57a,_0x37d44a,_0x1548ab,_0x2e050c,_0x132afe,_0x4aa21b]=await _0x486106[_0x353a0f(0x215)](createK8sClient,_0x21c630,_0x3fb338[_0x353a0f(0x1af)]);let _0x26f91e=!![];const _0x26c767={};_0x26c767[_0x353a0f(0x1e3)]=_0xaedd27,await _0x3fd57a[_0x353a0f(0x243)](_0x26c767)[_0x353a0f(0x1b0)](_0x23dac3=>{const _0x2c52bb=_0x353a0f,_0xc6f1={};_0xc6f1[_0x2c52bb(0x1e5)]=_0x486106[_0x2c52bb(0x1b8)];const _0x18cb66=_0xc6f1;_0x486106[_0x2c52bb(0x221)](_0x486106[_0x2c52bb(0x1f9)],_0x486106[_0x2c52bb(0x247)])?logger[_0x2c52bb(0x1cb)](_0x2c52bb(0x206)+_0xaedd27+_0x2c52bb(0x21d)):_0x345e5f[_0x2c52bb(0x214)](_0x18cb66[_0x2c52bb(0x1e5)]);})[_0x353a0f(0x1b4)](_0x3821ee=>{const _0x2036c0=_0x353a0f;_0x486106[_0x2036c0(0x227)](_0x486106['ddxyZ'],_0x486106['ddxyZ'])?(logger['warn']('Namespace:\x20'+_0xaedd27+'\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted'),_0x26f91e=![]):_0x307af8[_0x2036c0(0x1cb)](_0x2036c0(0x206)+_0xa616dd+_0x2036c0(0x21d));});if(_0x26f91e){await _0x486106[_0x353a0f(0x1fc)](removeGridComponents,_0x3fd57a,_0x37d44a,_0x1548ab,_0x2e050c,_0xaedd27);if(_0x4f01d3[_0x353a0f(0x1cd)]){const _0x219d13=await _0x21c630['isBrowserstackCluster']();_0x219d13?_0x486106['JYNDi'](_0x486106[_0x353a0f(0x201)],_0x486106['gxfqO'])?(_0x230982['warn']('Namespace:\x20'+_0x4758ed+_0x353a0f(0x1bd)),_0x497fd2=![]):await _0x21c630['deleteCluster'](_0x3fd57a,_0x4018ff[_0x353a0f(0x242)]):_0x486106['jbYdS'](_0x486106['FULZf'],_0x486106['DSqGB'])?logger[_0x353a0f(0x214)](_0x353a0f(0x1e2)+_0x4018ff[_0x353a0f(0x220)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'):(_0x454ff4[_0x353a0f(0x1cc)](_0x486106[_0x353a0f(0x1ef)]),_0x354bcc[_0x353a0f(0x1c6)](0x1));}}}else logger[_0x353a0f(0x214)](_0x486106[_0x353a0f(0x1b8)]);const _0x5a14d5=_0x353a0f(0x236)+AG_API_URL+_0x353a0f(0x1ce)+_0x3fb338[_0x353a0f(0x1d1)],_0x3305f6={'method':_0x486106['HDRVG'],'headers':_0x486106['oLpoC'](getAuthHeader,_0x139f32[_0x353a0f(0x208)][_0x353a0f(0x1c9)],_0x139f32['Browserstack']['password']),'throwHttpErrors':![]},_0x3d8dae=await _0x486106[_0x353a0f(0x22c)](got,_0x5a14d5,_0x3305f6);_0x486106['TNTJL'](_0x3d8dae,null)&&_0x486106[_0x353a0f(0x1ca)](_0x3d8dae,undefined)&&_0x486106[_0x353a0f(0x210)](_0x3d8dae[_0x353a0f(0x1fe)],0xc8)&&(logger['info'](_0x486106[_0x353a0f(0x1b3)]),process[_0x353a0f(0x1c6)](0x0)),logger[_0x353a0f(0x1cc)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x3d8dae[_0x353a0f(0x20d)]),await _0x486106['kEZWe'](sendInstrumentationEvent,_0x3fb338,_0x486106[_0x353a0f(0x228)],messageTypes['ERROR'],_0x486106[_0x353a0f(0x1f8)],_0x456eb5,_0x3fb338),process[_0x353a0f(0x1c6)](0x1);}_0x486106['wwfeQ'](_0x456eb5['statusCode'],0x191)&&(logger[_0x353a0f(0x1cc)](_0x486106[_0x353a0f(0x1bb)]),await _0x486106['GiPdP'](sendInstrumentationEvent,_0x3fb338,_0x486106['zhwxq'],messageTypes[_0x353a0f(0x1b6)],_0x486106[_0x353a0f(0x1b2)],null,_0x3fb338),process[_0x353a0f(0x1c6)](0x1)),_0x486106['fVxyO'](_0x456eb5[_0x353a0f(0x1fe)],0x190)&&(logger[_0x353a0f(0x1cc)](JSON[_0x353a0f(0x224)](_0x456eb5[_0x353a0f(0x20d)])[_0x353a0f(0x231)]),await _0x486106[_0x353a0f(0x1ff)](sendInstrumentationEvent,_0x3fb338,_0x486106[_0x353a0f(0x228)],messageTypes[_0x353a0f(0x1b6)],_0x486106[_0x353a0f(0x22b)],null,_0x3fb338),process['exit'](0x1)),logger[_0x353a0f(0x1cc)](_0x353a0f(0x21e)+JSON[_0x353a0f(0x1e9)](_0x456eb5)),await _0x486106[_0x353a0f(0x219)](sendInstrumentationEvent,_0x3fb338,_0x486106[_0x353a0f(0x228)],messageTypes[_0x353a0f(0x1b6)],_0x486106[_0x353a0f(0x1f8)],_0x456eb5,_0x3fb338),process[_0x353a0f(0x1c6)](0x1);}catch(_0x406bcc){logger[_0x353a0f(0x1cc)](_0x353a0f(0x1e4)+_0x406bcc[_0x353a0f(0x212)]),await _0x486106[_0x353a0f(0x23b)](sendInstrumentationEvent,_0x3fb338,_0x486106[_0x353a0f(0x228)],messageTypes['ERROR'],_0x486106[_0x353a0f(0x1ae)],_0x406bcc,_0x3fb338),process[_0x353a0f(0x1c6)](0x1);}};
|
|
1
|
+
function a11_0x5452(){const _0x320eff=['HwXiK','toLowerCase','builder','1652GZTUOr','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','../../utils/gridComponents','209467ehSiFG','Cluster:\x20','invalid-grid-id','1150020prtRJb','Delete\x20an\x20Automation\x20grid.','QCTHf','UFTZi','Browserstack','Skip\x20insecure\x20cert\x20verification.','zCUdO','RwxAb','eZeJU','readNamespace','urYIy','ivALy','invalid-input','username','boolean','\x22\x20with\x20ID\x20','ewGnx','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Diggj','requestId','xiZNv','YykNw','../../utils/createk8sClient','ENEGU','../../config/logger','HaSon','dsTgo','help','error','readFileSync','PBDCi','tJqzF','ERROR','got','xeWjO','Pass\x20the\x20ID\x20of\x20the\x20Grid','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','default','hMbup','clusterSpawnedVia','HFxWi','exit','OlJfv','DELETE','../../utils/userInput','VnOsZ','statusCode','connectionTimeout','VPDBs','grid-id','eccBo','czTuU','pecwo','delete','24vjMauI','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','description','WFRdi','KFpLB','376YEjwIb','33204dpPhYd','reconnecting-websocket','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','KpqAU','TZxuL','../../utils/instrumentationUtils','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','hZnVW','clusterName','gridId','XEfRW','uuid','unknown-error','KpPcC','mDOtq','zWFnz','uUgYj','AnPeR','catch','stringify','RrnmC','../../config/constants','xRGEa','FgAYz','region','string','warn','TtHkO','clusterRegion','xcuYN','AeyZO','\x22\x20and\x20ID\x20','TnGOj','INFO','type','hyXKs','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','Namespace:\x20','onlyGridInCluster','isBrowserstackCluster','then','command','handler','parse','SjMto','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','usage','Aoebc','cloudProvider','<PasswordPlaceholder>','../../cloudproviders/utils','ByaTu','AnYYp','uMlqt','isClusterPresent','qWFpu','name','JkOFh','/packages/cli/grid/','BteXt','3706938LouFEL','136540rwmCpJ','message','password','delete-grid-called','epilogue','GxEdr','Failed\x20to\x20delete\x20resources!\x20Error:\x20','../../utils/utilityMethods','sTFfx','lYFaq','argv','KofVX','10bEKIJA','<UsernamePlaceholder>','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','Zawog','rfqAM','OWVKO','unauthorised','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','72MiFAvg','UfTmU','body','grid','replace','kMjpr','deleteCluster','9575049kQRbFV','xClIG','server-error','info','dvfMA','ZhkKC','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option'];a11_0x5452=function(){return _0x320eff;};return a11_0x5452();}const a11_0x195390=a11_0x312e;(function(_0x520ef3,_0x3a5c03){const _0x2a85f4=a11_0x312e,_0x4df77b=_0x520ef3();while(!![]){try{const _0x5419f7=parseInt(_0x2a85f4(0x1c8))/0x1+-parseInt(_0x2a85f4(0x1cb))/0x2+parseInt(_0x2a85f4(0x1b4))/0x3*(parseInt(_0x2a85f4(0x208))/0x4)+-parseInt(_0x2a85f4(0x1a0))/0x5*(-parseInt(_0x2a85f4(0x201))/0x6)+-parseInt(_0x2a85f4(0x1c5))/0x7*(-parseInt(_0x2a85f4(0x207))/0x8)+-parseInt(_0x2a85f4(0x19f))/0x9+parseInt(_0x2a85f4(0x1ac))/0xa*(parseInt(_0x2a85f4(0x1bb))/0xb);if(_0x5419f7===_0x3a5c03)break;else _0x4df77b['push'](_0x4df77b['shift']());}catch(_0x51af14){_0x4df77b['push'](_0x4df77b['shift']());}}}(a11_0x5452,0x64ba6));const fs=require('fs'),got=require(a11_0x195390(0x1ec)),{v4:uuidv4}=require(a11_0x195390(0x213)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x195390(0x209)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x195390(0x21d)),{logger}=require(a11_0x195390(0x1e3)),{getCloudProviderObject}=require(a11_0x195390(0x195)),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x195390(0x1c7)),{sendInstrumentationEvent}=require(a11_0x195390(0x20d)),{inputConfirmation}=require(a11_0x195390(0x1f7)),{createK8sClient}=require(a11_0x195390(0x1e1)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x195390(0x1a7)),webSocketUtils=require('../../utils/webSocketUtils');function a11_0x312e(_0x56305b,_0x4a2f5e){const _0x545263=a11_0x5452();return a11_0x312e=function(_0x312e3f,_0x3e70e2){_0x312e3f=_0x312e3f-0x195;let _0x116a48=_0x545263[_0x312e3f];return _0x116a48;},a11_0x312e(_0x56305b,_0x4a2f5e);}exports[a11_0x195390(0x231)]=a11_0x195390(0x1b7),exports['desc']=a11_0x195390(0x1cc),exports[a11_0x195390(0x1c4)]=function(_0x3cf554){const _0x5896ff=a11_0x195390,_0x2f9c4f={};_0x2f9c4f['vNSkK']='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x2f9c4f['VPDBs']=_0x5896ff(0x221),_0x2f9c4f[_0x5896ff(0x1af)]=_0x5896ff(0x1d0),_0x2f9c4f[_0x5896ff(0x212)]=_0x5896ff(0x1d9),_0x2f9c4f[_0x5896ff(0x215)]=_0x5896ff(0x1e6);const _0x43ea10=_0x2f9c4f,_0x4f8813={};_0x4f8813[_0x5896ff(0x204)]=_0x43ea10['vNSkK'],_0x4f8813[_0x5896ff(0x22a)]=_0x43ea10[_0x5896ff(0x1fb)];const _0x155a7c={};_0x155a7c['description']=_0x43ea10['Zawog'],_0x155a7c['type']=_0x43ea10[_0x5896ff(0x212)],_0x155a7c[_0x5896ff(0x1f0)]=![];const _0x30ae6f={};return _0x30ae6f[_0x5896ff(0x1fc)]=_0x4f8813,_0x30ae6f['skip-tls-cert-verify']=_0x155a7c,_0x3cf554[_0x5896ff(0x236)](HELP_HEADER_MESSAGE[_0x5896ff(0x200)])[_0x5896ff(0x1a4)](HELP_FOOTER_MESSAGE)['options'](_0x30ae6f)[_0x5896ff(0x1e6)](_0x43ea10[_0x5896ff(0x215)])[_0x5896ff(0x1aa)];},exports[a11_0x195390(0x232)]=async function(_0x5c4033){const _0x3cbbc6=a11_0x195390,_0x4a78f6={'mDOtq':_0x3cbbc6(0x235),'urYIy':_0x3cbbc6(0x1ee),'HaSon':_0x3cbbc6(0x221),'OlJfv':_0x3cbbc6(0x1d0),'qWFpu':_0x3cbbc6(0x1d9),'lYFaq':_0x3cbbc6(0x1e6),'kMjpr':_0x3cbbc6(0x1c1),'zCUdO':function(_0x39b4d8,_0x1a75dc){return _0x39b4d8!==_0x1a75dc;},'zWFnz':_0x3cbbc6(0x1dd),'rfqAM':_0x3cbbc6(0x21f),'DgORN':function(_0x756ca1,_0x56c49d){return _0x756ca1===_0x56c49d;},'OWVKO':_0x3cbbc6(0x1cd),'VmdeY':_0x3cbbc6(0x19c),'RrnmC':'Successfully\x20deleted\x20the\x20grid','xRGEa':function(_0x4700b3){return _0x4700b3();},'RUIUw':function(_0x391f2d){return _0x391f2d();},'pecwo':'hfwiC','ZhkKC':_0x3cbbc6(0x1ef),'ewGnx':function(_0x59d62a,_0x212cb6,_0x1551dd,_0x3231c2,_0x3b7b6f,_0x489354,_0x2f0fcf){return _0x59d62a(_0x212cb6,_0x1551dd,_0x3231c2,_0x3b7b6f,_0x489354,_0x2f0fcf);},'HwXiK':_0x3cbbc6(0x1a3),'IsBLg':'init-not-called','xeWjO':function(_0x3a426c,_0xc7235d){return _0x3a426c!==_0xc7235d;},'xiZNv':_0x3cbbc6(0x1d6),'ByaTu':'Zmmbc','hyXKs':function(_0x2e5488,_0x2b2d5e,_0x46a915,_0x11576c){return _0x2e5488(_0x2b2d5e,_0x46a915,_0x11576c);},'KofVX':function(_0x2810c6,_0x1826eb){return _0x2810c6===_0x1826eb;},'EVgVD':_0x3cbbc6(0x1cf),'sTFfx':function(_0x309cdf,_0x14bea2){return _0x309cdf!==_0x14bea2;},'ENEGU':'tnfAm','VnOsZ':function(_0x188746,_0x5c5d2c){return _0x188746(_0x5c5d2c);},'xClIG':function(_0x51530b,_0x6ead6){return _0x51530b===_0x6ead6;},'YykNw':function(_0x538a0e,_0x42962c){return _0x538a0e===_0x42962c;},'AeyZO':_0x3cbbc6(0x1fe),'VerIT':_0x3cbbc6(0x1b3),'TnGOj':_0x3cbbc6(0x1d7),'UfTmU':function(_0x350fa3,_0x3fdc8e){return _0x350fa3===_0x3fdc8e;},'KFpLB':function(_0xbbc034,_0x130743){return _0xbbc034===_0x130743;},'AnYYp':_0x3cbbc6(0x223),'uDYLh':'TKHna','hZnVW':_0x3cbbc6(0x1ad),'hMbup':_0x3cbbc6(0x239),'eZeJU':function(_0x2066af,_0x2996e3,_0xc58fdb){return _0x2066af(_0x2996e3,_0xc58fdb);},'xcuYN':function(_0x2e4dd4,_0xac6415,_0x448385,_0x30bc27,_0x21d5f0,_0x33091e){return _0x2e4dd4(_0xac6415,_0x448385,_0x30bc27,_0x21d5f0,_0x33091e);},'uMlqt':function(_0x508d04,_0x309c52){return _0x508d04===_0x309c52;},'dsTgo':'ZuLgP','uUgYj':_0x3cbbc6(0x20c),'KpqAU':_0x3cbbc6(0x234),'dvfMA':_0x3cbbc6(0x1f6),'noMmm':function(_0x1eb086,_0x1b7f94){return _0x1eb086!==_0x1b7f94;},'PBDCi':function(_0x400e6c,_0x49e1b9){return _0x400e6c!==_0x49e1b9;},'GxEdr':function(_0x195b75,_0x24ef9b){return _0x195b75===_0x24ef9b;},'eccBo':function(_0x55f7b0,_0x1fda6d,_0x59a647,_0x27a57e,_0x25ce90,_0x4a480c,_0x25dbc6){return _0x55f7b0(_0x1fda6d,_0x59a647,_0x27a57e,_0x25ce90,_0x4a480c,_0x25dbc6);},'HFxWi':_0x3cbbc6(0x1bd),'BteXt':function(_0x19633f,_0x3672df){return _0x19633f===_0x3672df;},'AnPeR':_0x3cbbc6(0x1dc),'RwxAb':function(_0x642f3a,_0x874b2f,_0x3649f5,_0x4afe25,_0x1e4fda,_0x486411,_0x235791){return _0x642f3a(_0x874b2f,_0x3649f5,_0x4afe25,_0x1e4fda,_0x486411,_0x235791);},'WFRdi':_0x3cbbc6(0x1b2),'Aoebc':function(_0x38890f,_0x14fd51){return _0x38890f===_0x14fd51;},'UJDsR':_0x3cbbc6(0x1ca),'UFTZi':_0x3cbbc6(0x214)};try{global_registry[_0x3cbbc6(0x1de)]=_0x4a78f6[_0x3cbbc6(0x21e)](uuidv4);!fs['existsSync'](_0x4a78f6['RUIUw'](getCredentialsPath))&&(_0x4a78f6['zCUdO'](_0x4a78f6[_0x3cbbc6(0x1ff)],_0x4a78f6[_0x3cbbc6(0x1ff)])?_0x6b4922[_0x3cbbc6(0x1f4)](0x0):(console['error'](_0x4a78f6[_0x3cbbc6(0x1c0)]),await _0x4a78f6[_0x3cbbc6(0x1db)](sendInstrumentationEvent,_0x5c4033,_0x4a78f6[_0x3cbbc6(0x1c2)],messageTypes[_0x3cbbc6(0x1eb)],_0x4a78f6['IsBLg'],null,_0x5c4033),process[_0x3cbbc6(0x1f4)](0x1)));_0x4a78f6[_0x3cbbc6(0x1db)](sendInstrumentationEvent,_0x5c4033,_0x4a78f6[_0x3cbbc6(0x1c2)],messageTypes[_0x3cbbc6(0x229)],null,null,_0x5c4033);!_0x5c4033['gridId']&&(_0x4a78f6[_0x3cbbc6(0x1ed)](_0x4a78f6[_0x3cbbc6(0x1df)],_0x4a78f6[_0x3cbbc6(0x196)])?(console[_0x3cbbc6(0x1e7)](_0x4a78f6[_0x3cbbc6(0x1b9)]),process[_0x3cbbc6(0x1f4)](0x1)):_0xbacd6['warn'](_0x3cbbc6(0x1c9)+_0x3f592a['clusterName']+_0x3cbbc6(0x203)));const _0x3018e2=JSON[_0x3cbbc6(0x233)](fs[_0x3cbbc6(0x1e8)](_0x4a78f6[_0x3cbbc6(0x21e)](getCredentialsPath))),[_0x158948,_0x1a3531]=await _0x4a78f6[_0x3cbbc6(0x22b)](getGridDetails,_0x3018e2['Browserstack'][_0x3cbbc6(0x1d8)],_0x3018e2[_0x3cbbc6(0x1cf)]['password'],_0x5c4033[_0x3cbbc6(0x211)]);if(_0x1a3531){const _0x1e22ac=_0x1a3531[_0x3cbbc6(0x1be)];let _0x5b72d2=_0x3cbbc6(0x1c6)+_0x1e22ac['name']+_0x3cbbc6(0x227)+_0x1e22ac['id']+_0x3cbbc6(0x20e);_0x1a3531[_0x3cbbc6(0x22e)]&&_0x4a78f6[_0x3cbbc6(0x1ab)](_0x1a3531[_0x3cbbc6(0x1f2)],_0x4a78f6['EVgVD'])&&(_0x4a78f6[_0x3cbbc6(0x1a8)](_0x4a78f6['ENEGU'],_0x4a78f6[_0x3cbbc6(0x1e2)])?_0x5d5d5e[_0x3cbbc6(0x222)](_0x4a78f6[_0x3cbbc6(0x216)]):_0x5b72d2=_0x3cbbc6(0x1c6)+_0x1e22ac[_0x3cbbc6(0x19b)]+_0x3cbbc6(0x227)+_0x1e22ac['id']+_0x3cbbc6(0x202)+_0x1e22ac[_0x3cbbc6(0x210)]+_0x3cbbc6(0x1da)+_0x1e22ac['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');const _0xbf7583=await _0x4a78f6['VnOsZ'](inputConfirmation,_0x5b72d2);if(_0x4a78f6[_0x3cbbc6(0x1bc)](_0xbf7583,undefined)||_0x4a78f6[_0x3cbbc6(0x1e0)](_0xbf7583,null)||!(_0x4a78f6[_0x3cbbc6(0x1ab)](_0xbf7583['toLowerCase'](),'y')||_0x4a78f6['KofVX'](_0xbf7583[_0x3cbbc6(0x1c3)](),'n'))){if(_0x4a78f6[_0x3cbbc6(0x1bc)](_0x4a78f6[_0x3cbbc6(0x226)],_0x4a78f6[_0x3cbbc6(0x226)]))console[_0x3cbbc6(0x1e7)](_0x4a78f6['VerIT']),await _0x4a78f6[_0x3cbbc6(0x1db)](sendInstrumentationEvent,_0x5c4033,_0x4a78f6[_0x3cbbc6(0x1c2)],messageTypes['ERROR'],_0x4a78f6[_0x3cbbc6(0x228)],null,_0x5c4033),process[_0x3cbbc6(0x1f4)](0x1);else{const _0x10deec={};_0x10deec[_0x3cbbc6(0x204)]=_0x4a78f6[_0x3cbbc6(0x1d5)],_0x10deec[_0x3cbbc6(0x22a)]=_0x4a78f6[_0x3cbbc6(0x1e4)];const _0xa03c51={};_0xa03c51[_0x3cbbc6(0x204)]=_0x4a78f6[_0x3cbbc6(0x1f5)],_0xa03c51[_0x3cbbc6(0x22a)]=_0x4a78f6[_0x3cbbc6(0x19a)],_0xa03c51['default']=![];const _0x58a910={};return _0x58a910[_0x3cbbc6(0x1fc)]=_0x10deec,_0x58a910['skip-tls-cert-verify']=_0xa03c51,_0x4f8586['usage'](_0x5af765[_0x3cbbc6(0x200)])['epilogue'](_0x1e1ba2)['options'](_0x58a910)[_0x3cbbc6(0x1e6)](_0x4a78f6[_0x3cbbc6(0x1a9)])[_0x3cbbc6(0x1aa)];}}_0x4a78f6[_0x3cbbc6(0x1b5)](_0xbf7583[_0x3cbbc6(0x1c3)](),'n')&&(_0x4a78f6[_0x3cbbc6(0x206)](_0x4a78f6[_0x3cbbc6(0x197)],_0x4a78f6['uDYLh'])?_0x307c95=_0x3cbbc6(0x1c6)+_0xf7820[_0x3cbbc6(0x19b)]+_0x3cbbc6(0x227)+_0x711c72['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x3e0b0f[_0x3cbbc6(0x210)]+_0x3cbbc6(0x1da)+_0x396eb0['clusterId']+_0x3cbbc6(0x20e):process['exit'](0x0));const _0x29c38e=WS_ENDPOINT['replace'](_0x4a78f6[_0x3cbbc6(0x20f)],_0x3018e2['Browserstack'][_0x3cbbc6(0x1d8)])[_0x3cbbc6(0x1b8)](_0x4a78f6[_0x3cbbc6(0x1f1)],_0x3018e2[_0x3cbbc6(0x1cf)][_0x3cbbc6(0x1a2)]),_0x4072e0={};_0x4072e0['WebSocket']=ws,_0x4072e0[_0x3cbbc6(0x1fa)]=0x36ee80;const _0x3edae6=new ReconnectingWebSocket(_0x29c38e,[],_0x4072e0);global_registry[_0x3cbbc6(0x224)]=_0x1e22ac['region'];const _0x406b5d=_0x1e22ac[_0x3cbbc6(0x238)],_0x2156f4=await _0x4a78f6[_0x3cbbc6(0x1db)](getCloudProviderObject,_0x406b5d,_0x1e22ac[_0x3cbbc6(0x210)],_0x1e22ac[_0x3cbbc6(0x19b)],_0x3edae6,webSocketUtils,_0x5c4033),_0x1656ed=await _0x2156f4[_0x3cbbc6(0x199)]();if(_0x1656ed){const _0x5d8476=_0x4a78f6[_0x3cbbc6(0x1f8)](kebabCase,_0x1e22ac[_0x3cbbc6(0x19b)]),[_0x4477af,_0x2517cd,_0x37354e,_0x5b43a0,_0x50dd2e,_0x4380f9]=await _0x4a78f6['eZeJU'](createK8sClient,_0x2156f4,_0x5c4033['skipTlsCertVerify']);let _0x45380d=!![];const _0x124660={};_0x124660[_0x3cbbc6(0x19b)]=_0x5d8476,await _0x4477af[_0x3cbbc6(0x1d4)](_0x124660)[_0x3cbbc6(0x230)](_0x1dab27=>{const _0x2534b0=_0x3cbbc6,_0x12e918={};_0x12e918[_0x2534b0(0x1ea)]=_0x4a78f6[_0x2534b0(0x1b9)];const _0x3f083b=_0x12e918;_0x4a78f6[_0x2534b0(0x1d1)](_0x4a78f6[_0x2534b0(0x217)],_0x4a78f6[_0x2534b0(0x1b0)])?logger['info'](_0x2534b0(0x22d)+_0x5d8476+_0x2534b0(0x1ae)):(_0x4c9b3a['error'](_0x3f083b['tJqzF']),_0x549df[_0x2534b0(0x1f4)](0x1));})[_0x3cbbc6(0x21a)](_0x5dce40=>{const _0x2d5254=_0x3cbbc6;_0x4a78f6['DgORN'](_0x4a78f6[_0x2d5254(0x1b1)],_0x4a78f6['VmdeY'])?_0x4d4977[_0x2d5254(0x1be)](_0x2d5254(0x22d)+_0x196f12+_0x2d5254(0x1ae)):(logger['warn'](_0x2d5254(0x22d)+_0x5d8476+_0x2d5254(0x20a)),_0x45380d=![]);});if(_0x45380d){await _0x4a78f6[_0x3cbbc6(0x225)](removeGridComponents,_0x4477af,_0x2517cd,_0x37354e,_0x5b43a0,_0x5d8476);if(_0x1a3531[_0x3cbbc6(0x22e)]){const _0x2869cc=await _0x2156f4[_0x3cbbc6(0x22f)]();_0x2869cc?_0x4a78f6[_0x3cbbc6(0x198)](_0x4a78f6['dsTgo'],_0x4a78f6[_0x3cbbc6(0x1e5)])?await _0x2156f4[_0x3cbbc6(0x1ba)](_0x4477af,_0x1e22ac[_0x3cbbc6(0x220)]):(_0x2dbb51[_0x3cbbc6(0x1be)](_0x4a78f6['RrnmC']),_0x4985fe[_0x3cbbc6(0x1f4)](0x0)):_0x4a78f6[_0x3cbbc6(0x1bc)](_0x4a78f6[_0x3cbbc6(0x218)],_0x4a78f6[_0x3cbbc6(0x20b)])?(_0x13f0c6[_0x3cbbc6(0x222)]('Namespace:\x20'+_0x51fe6d+_0x3cbbc6(0x20a)),_0x2929f6=![]):logger['warn'](_0x3cbbc6(0x1c9)+_0x1e22ac[_0x3cbbc6(0x210)]+_0x3cbbc6(0x203));}}}else logger[_0x3cbbc6(0x222)](_0x4a78f6[_0x3cbbc6(0x216)]);const _0x2d1b28='https://'+AG_API_URL+_0x3cbbc6(0x19d)+_0x5c4033[_0x3cbbc6(0x211)],_0x54b4b8={'method':_0x4a78f6[_0x3cbbc6(0x1bf)],'headers':_0x4a78f6[_0x3cbbc6(0x1d3)](getAuthHeader,_0x3018e2[_0x3cbbc6(0x1cf)][_0x3cbbc6(0x1d8)],_0x3018e2[_0x3cbbc6(0x1cf)]['password']),'throwHttpErrors':![]},_0x33ab61=await _0x4a78f6[_0x3cbbc6(0x1d3)](got,_0x2d1b28,_0x54b4b8);_0x4a78f6['noMmm'](_0x33ab61,null)&&_0x4a78f6[_0x3cbbc6(0x1e9)](_0x33ab61,undefined)&&_0x4a78f6[_0x3cbbc6(0x1a5)](_0x33ab61[_0x3cbbc6(0x1f9)],0xc8)&&(logger[_0x3cbbc6(0x1be)](_0x4a78f6[_0x3cbbc6(0x21c)]),process['exit'](0x0)),logger[_0x3cbbc6(0x1e7)](_0x3cbbc6(0x22c)+_0x33ab61['body']),await _0x4a78f6[_0x3cbbc6(0x1fd)](sendInstrumentationEvent,_0x5c4033,_0x4a78f6[_0x3cbbc6(0x1c2)],messageTypes[_0x3cbbc6(0x1eb)],_0x4a78f6['HFxWi'],_0x158948,_0x5c4033),process[_0x3cbbc6(0x1f4)](0x1);}_0x4a78f6[_0x3cbbc6(0x19e)](_0x158948[_0x3cbbc6(0x1f9)],0x191)&&(logger['error'](_0x4a78f6[_0x3cbbc6(0x219)]),await _0x4a78f6[_0x3cbbc6(0x1d2)](sendInstrumentationEvent,_0x5c4033,_0x4a78f6[_0x3cbbc6(0x1c2)],messageTypes[_0x3cbbc6(0x1eb)],_0x4a78f6[_0x3cbbc6(0x205)],null,_0x5c4033),process[_0x3cbbc6(0x1f4)](0x1)),_0x4a78f6[_0x3cbbc6(0x237)](_0x158948[_0x3cbbc6(0x1f9)],0x190)&&(logger[_0x3cbbc6(0x1e7)](JSON[_0x3cbbc6(0x233)](_0x158948[_0x3cbbc6(0x1b6)])[_0x3cbbc6(0x1a1)]),await _0x4a78f6['RwxAb'](sendInstrumentationEvent,_0x5c4033,_0x4a78f6['HwXiK'],messageTypes[_0x3cbbc6(0x1eb)],_0x4a78f6['UJDsR'],null,_0x5c4033),process['exit'](0x1)),logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x3cbbc6(0x21b)](_0x158948)),await _0x4a78f6[_0x3cbbc6(0x1db)](sendInstrumentationEvent,_0x5c4033,_0x4a78f6[_0x3cbbc6(0x1c2)],messageTypes[_0x3cbbc6(0x1eb)],_0x4a78f6[_0x3cbbc6(0x1f3)],_0x158948,_0x5c4033),process['exit'](0x1);}catch(_0x58274e){logger[_0x3cbbc6(0x1e7)](_0x3cbbc6(0x1a6)+_0x58274e['stack']),await _0x4a78f6[_0x3cbbc6(0x1fd)](sendInstrumentationEvent,_0x5c4033,_0x4a78f6[_0x3cbbc6(0x1c2)],messageTypes[_0x3cbbc6(0x1eb)],_0x4a78f6[_0x3cbbc6(0x1ce)],_0x58274e,_0x5c4033),process['exit'](0x1);}};
|
package/ats/src/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a12_0x156b(){const _0x237f06=['readFileSync','FGeJx','strict','tdKfG','oFLBl','bstack-username','gaqjg','kXvxU','wkPDQ','../utils/utilityMethods','xijQj','gNQts','AFsgg','NkdgR','aXdHH','LtywI','stack','fpkNy','vEFam','../utils/instrumentationUtils','env','vVTJG','argv','../config/constants','../utils/userInput','https://','947463WvrpAq','ERROR','1834461iLyRQZ','description','usage','AEuvh','XPvTy','init','options','password','ciEtw','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','PgBRe','hQfCa','stringify','OVxKL','pTMDC','bstackUsername','uuid','bNAob','33564bpSPJz','41889896YQPpei','command','BROWSERSTACK_USERNAME','dfbPR','debug','pnWMo','pkFIJ','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','requestId','exit','wrong-creds','LlCCV','ZJvew','283184ziUCKZ','muwWW','bstack-accesskey','BROWSERSTACK_ACCESS_KEY','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','lLzUE','qiqrg','jCuIa','util','30966VDTtBD','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','GET','parse','epilogue','type','bstackAccesskey','1395JtTfEZ','fbTWo','writeFileSync','Browserstack','statusCode','bplrf','mYRjt','username','EkoNn','KJuNF','ozfpR','voVcC','utf-8','lfrNy','existsSync','wuJEI','builder','9981517Ixpedj','HVaIb','desc','mkdirSync','string','unknown-error','YyRKc','WaXtu','nLohu','recommendCommands','../config/logger','help','Kclnh','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','NQyzc','SCglR'];a12_0x156b=function(){return _0x237f06;};return a12_0x156b();}const a12_0x5847ac=a12_0x3b06;(function(_0xeb506c,_0x508305){const _0x1ff11f=a12_0x3b06,_0x40e9ae=_0xeb506c();while(!![]){try{const _0x24a4b2=-parseInt(_0x1ff11f(0xf1))/0x1+parseInt(_0x1ff11f(0x105))/0x2+-parseInt(_0x1ff11f(0xf3))/0x3+-parseInt(_0x1ff11f(0x113))/0x4+-parseInt(_0x1ff11f(0x123))/0x5*(parseInt(_0x1ff11f(0x11c))/0x6)+-parseInt(_0x1ff11f(0x134))/0x7+parseInt(_0x1ff11f(0x106))/0x8;if(_0x24a4b2===_0x508305)break;else _0x40e9ae['push'](_0x40e9ae['shift']());}catch(_0x15a3cf){_0x40e9ae['push'](_0x40e9ae['shift']());}}}(a12_0x156b,0xb8eaf));const fs=require('fs'),util=require(a12_0x5847ac(0x11b)),got=require('got'),{v4:uuidv4}=require(a12_0x5847ac(0x103)),{logger}=require(a12_0x5847ac(0x13e)),{inputBstackKeys}=require(a12_0x5847ac(0xef)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x5847ac(0xee)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x5847ac(0xe0)),{sendInstrumentationEvent}=require(a12_0x5847ac(0xea));function a12_0x3b06(_0x26daea,_0x15acb2){const _0x156ba2=a12_0x156b();return a12_0x3b06=function(_0x3b06df,_0xad685a){_0x3b06df=_0x3b06df-0xde;let _0x1dbf10=_0x156ba2[_0x3b06df];return _0x1dbf10;},a12_0x3b06(_0x26daea,_0x15acb2);}exports[a12_0x5847ac(0x107)]=a12_0x5847ac(0xf8),exports[a12_0x5847ac(0x136)]=a12_0x5847ac(0x117),exports[a12_0x5847ac(0x133)]=function(_0x5c98fc){const _0x348188=a12_0x5847ac,_0x568041={};_0x568041[_0x348188(0xfb)]=_0x348188(0x11d),_0x568041['nNlGZ']='string',_0x568041['AEuvh']=_0x348188(0x10d),_0x568041[_0x348188(0x101)]='help';const _0x59eafc=_0x568041,_0x468867={};_0x468867[_0x348188(0xf4)]=_0x59eafc[_0x348188(0xfb)],_0x468867['type']=_0x59eafc['nNlGZ'];const _0x2590ee={};_0x2590ee[_0x348188(0xf4)]=_0x59eafc[_0x348188(0xf6)],_0x2590ee[_0x348188(0x121)]=_0x59eafc['nNlGZ'];const _0x1655f2={};return _0x1655f2[_0x348188(0x149)]=_0x468867,_0x1655f2['bstack-accesskey']=_0x2590ee,_0x5c98fc[_0x348188(0xf5)](HELP_HEADER_MESSAGE[_0x348188(0xf8)])[_0x348188(0x120)](HELP_FOOTER_MESSAGE)['options'](_0x1655f2)[_0x348188(0x13d)]()[_0x348188(0x146)]()[_0x348188(0x13f)](_0x59eafc[_0x348188(0x101)])[_0x348188(0xed)];},exports['handler']=async function(_0x2e58a8){const _0x46fc65=a12_0x5847ac,_0xffb5a9={'RQbXl':_0x46fc65(0x11d),'LlCCV':_0x46fc65(0x138),'voVcC':_0x46fc65(0x10d),'vEFam':'help','mYRjt':function(_0x395180){return _0x395180();},'pnWMo':_0x46fc65(0x12f),'wkPDQ':function(_0x223cc6,_0x59a608,_0x223b7b,_0x393a65,_0x48c43f,_0x1592bf,_0x18feda){return _0x223cc6(_0x59a608,_0x223b7b,_0x393a65,_0x48c43f,_0x1592bf,_0x18feda);},'WaXtu':'init-called','YyRKc':function(_0x2c7866,_0x31433c){return _0x2c7866!==_0x31433c;},'oFLBl':_0x46fc65(0x11a),'lLzUE':_0x46fc65(0x145),'NQyzc':function(_0x2b6c1c,_0x20f86d){return _0x2b6c1c===_0x20f86d;},'IkQxF':_0x46fc65(0x104),'AFsgg':_0x46fc65(0x124),'qiqrg':_0x46fc65(0xde),'QucsM':'fKEbZ','xijQj':function(_0x1822a1,_0x142a89){return _0x1822a1===_0x142a89;},'vVTJG':_0x46fc65(0x12c),'Kclnh':_0x46fc65(0xfe),'gaqjg':function(_0x1f4660,_0x48753c){return _0x1f4660===_0x48753c;},'LtywI':function(_0x2e65e8,_0x92de4e){return _0x2e65e8!==_0x92de4e;},'gNQts':_0x46fc65(0xe5),'wuJEI':_0x46fc65(0x141),'OVxKL':function(_0x541c95){return _0x541c95();},'TePLa':_0x46fc65(0x11e),'EkoNn':function(_0x4167ad,_0x1d7953,_0xd0d493){return _0x4167ad(_0x1d7953,_0xd0d493);},'pkFIJ':function(_0x1cba27,_0x5b95eb){return _0x1cba27===_0x5b95eb;},'dfbPR':function(_0x6b5171,_0x1aaa36){return _0x6b5171!==_0x1aaa36;},'SCglR':_0x46fc65(0x13c),'tdKfG':_0x46fc65(0xe4),'bplrf':function(_0x1ae155,_0x17ce4a){return _0x1ae155!==_0x17ce4a;},'muwWW':_0x46fc65(0x135),'ozfpR':_0x46fc65(0xf7),'ZJvew':'qdYqY','lfrNy':_0x46fc65(0xfc),'PgBRe':_0x46fc65(0x110),'fpkNy':_0x46fc65(0x139)};try{global_registry[_0x46fc65(0x10e)]=_0xffb5a9[_0x46fc65(0x129)](uuidv4),_0xffb5a9[_0x46fc65(0xdf)](sendInstrumentationEvent,_0x2e58a8,_0xffb5a9[_0x46fc65(0x13b)],messageTypes['INFO'],null,null,_0x2e58a8);const _0x4c66a3=_0xffb5a9[_0x46fc65(0x129)](getDirForConfig);!fs[_0x46fc65(0x131)](_0x4c66a3)&&(_0xffb5a9[_0x46fc65(0x13a)](_0xffb5a9[_0x46fc65(0x148)],_0xffb5a9[_0x46fc65(0x118)])?fs['mkdirSync'](_0x4c66a3):_0x164239[_0x46fc65(0x137)](_0x46958a));let _0x36ebbc,_0x11141e;process['env'][_0x46fc65(0x108)]&&(_0xffb5a9[_0x46fc65(0x142)](_0xffb5a9['IkQxF'],_0xffb5a9[_0x46fc65(0xe3)])?_0x1ab574=_0x316d52[_0x46fc65(0x102)]:_0x36ebbc=process[_0x46fc65(0xeb)][_0x46fc65(0x108)]);process[_0x46fc65(0xeb)][_0x46fc65(0x116)]&&(_0xffb5a9['NQyzc'](_0xffb5a9[_0x46fc65(0x119)],_0xffb5a9['QucsM'])?_0x19060b=!![]:_0x11141e=process[_0x46fc65(0xeb)][_0x46fc65(0x116)]);_0x2e58a8['bstackUsername']&&(_0xffb5a9[_0x46fc65(0xe1)](_0xffb5a9[_0x46fc65(0xec)],_0xffb5a9[_0x46fc65(0xec)])?_0x36ebbc=_0x2e58a8['bstackUsername']:_0x5430e7=_0x1aec4b['env']['BROWSERSTACK_USERNAME']);_0x2e58a8[_0x46fc65(0x122)]&&(_0xffb5a9[_0x46fc65(0x13a)](_0xffb5a9['Kclnh'],_0xffb5a9[_0x46fc65(0x140)])?_0x1a7efa=_0x110f6c[_0x46fc65(0xeb)][_0x46fc65(0x116)]:_0x11141e=_0x2e58a8[_0x46fc65(0x122)]);if(_0xffb5a9[_0x46fc65(0x14a)](_0x36ebbc,undefined)||_0xffb5a9[_0x46fc65(0x14a)](_0x11141e,undefined)){if(_0xffb5a9[_0x46fc65(0xe6)](_0xffb5a9[_0x46fc65(0xe2)],_0xffb5a9[_0x46fc65(0xe2)])){const _0x2ee01a={};_0x2ee01a['description']=_0xffb5a9['RQbXl'],_0x2ee01a[_0x46fc65(0x121)]=_0xffb5a9[_0x46fc65(0x111)];const _0x2a3931={};_0x2a3931[_0x46fc65(0xf4)]=_0xffb5a9[_0x46fc65(0x12e)],_0x2a3931[_0x46fc65(0x121)]=_0xffb5a9[_0x46fc65(0x111)];const _0x3d56d7={};return _0x3d56d7[_0x46fc65(0x149)]=_0x2ee01a,_0x3d56d7[_0x46fc65(0x115)]=_0x2a3931,_0x5c9f16['usage'](_0x40298f[_0x46fc65(0xf8)])[_0x46fc65(0x120)](_0x4f7a50)[_0x46fc65(0xf9)](_0x3d56d7)[_0x46fc65(0x13d)]()['strict']()[_0x46fc65(0x13f)](_0xffb5a9[_0x46fc65(0xe9)])[_0x46fc65(0xed)];}else{logger[_0x46fc65(0x10a)](_0xffb5a9[_0x46fc65(0x132)]);const [_0x3e0e49,_0x8c1330]=await _0xffb5a9[_0x46fc65(0x100)](inputBstackKeys);_0x36ebbc=_0x3e0e49,_0x11141e=_0x8c1330;}}let _0x1f119a=![];const _0x1b3532=_0x46fc65(0xf0)+_0x36ebbc+':'+_0x11141e+'@'+BS_API_URL+'/automate/plan.json',_0x22dd26={'method':_0xffb5a9['TePLa'],'headers':_0xffb5a9[_0x46fc65(0x12b)](getAuthHeader,_0x36ebbc,_0x11141e),'throwHttpErrors':![]},_0x1e1034=await _0xffb5a9[_0x46fc65(0x12b)](got,_0x1b3532,_0x22dd26);if(_0xffb5a9[_0x46fc65(0x13a)](_0x1e1034,null)&&_0xffb5a9[_0x46fc65(0xe6)](_0x1e1034,undefined)&&_0xffb5a9[_0x46fc65(0x10c)](_0x1e1034[_0x46fc65(0x127)],0xc8)){if(_0xffb5a9[_0x46fc65(0x109)](_0xffb5a9[_0x46fc65(0x143)],_0xffb5a9[_0x46fc65(0x147)]))_0x1f119a=!![];else{let _0x30ade8={};const _0x3b2e73=_0xffb5a9['mYRjt'](_0x5990f6);_0x3669f3[_0x46fc65(0x131)](_0x3b2e73)&&(_0x30ade8=_0x4f2b30[_0x46fc65(0x11f)](_0x447791[_0x46fc65(0x144)](_0x3b2e73,_0xffb5a9[_0x46fc65(0x10b)])));const _0x22ca75={};_0x22ca75['username']=_0x53dac1,_0x22ca75[_0x46fc65(0xfa)]=_0x1642f1,_0x30ade8[_0x46fc65(0x126)]=_0x22ca75,_0x20e922['writeFileSync'](_0x3b2e73,_0x39bf02[_0x46fc65(0xff)](_0x30ade8)),_0x261e33[_0x46fc65(0x10f)](0x0);}}if(_0x1f119a){if(_0xffb5a9[_0x46fc65(0x128)](_0xffb5a9[_0x46fc65(0x114)],_0xffb5a9[_0x46fc65(0x114)]))_0x30c5e8=_0x573a56[_0x46fc65(0x11f)](_0x477e9e['readFileSync'](_0x1183e8,_0xffb5a9[_0x46fc65(0x10b)]));else{let _0x4b9a9e={};const _0x565dc6=_0xffb5a9[_0x46fc65(0x100)](getCredentialsPath);fs[_0x46fc65(0x131)](_0x565dc6)&&(_0xffb5a9[_0x46fc65(0x10c)](_0xffb5a9[_0x46fc65(0x12d)],_0xffb5a9[_0x46fc65(0x112)])?_0x5d410a=_0x5a1691[_0x46fc65(0x122)]:_0x4b9a9e=JSON[_0x46fc65(0x11f)](fs[_0x46fc65(0x144)](_0x565dc6,_0xffb5a9['pnWMo'])));const _0x4124c4={};_0x4124c4[_0x46fc65(0x12a)]=_0x36ebbc,_0x4124c4[_0x46fc65(0xfa)]=_0x11141e,_0x4b9a9e[_0x46fc65(0x126)]=_0x4124c4,fs[_0x46fc65(0x125)](_0x565dc6,JSON[_0x46fc65(0xff)](_0x4b9a9e)),process['exit'](0x0);}}else logger['error'](_0xffb5a9[_0x46fc65(0x130)]),await _0xffb5a9[_0x46fc65(0xdf)](sendInstrumentationEvent,_0x2e58a8,_0xffb5a9['WaXtu'],messageTypes[_0x46fc65(0xf2)],_0xffb5a9[_0x46fc65(0xfd)],null,_0x2e58a8),process[_0x46fc65(0x10f)](0x1);}catch(_0x2c93b3){logger['error'](_0x2c93b3[_0x46fc65(0xe7)]),await _0xffb5a9[_0x46fc65(0xdf)](sendInstrumentationEvent,_0x2e58a8,_0xffb5a9[_0x46fc65(0x13b)],messageTypes['ERROR'],_0xffb5a9[_0x46fc65(0xe8)],_0x2c93b3,_0x2e58a8),process['exit'](0x1);}};
|
|
1
|
+
const a12_0x3f85a9=a12_0x4197;function a12_0x5036(){const _0x50c04f=['207799wDyLmL','uuid','exit','BROWSERSTACK_USERNAME','bstack-accesskey','1305872SBfyBH','BROWSERSTACK_ACCESS_KEY','WnwnG','bstackAccesskey','uHtXu','EQXpX','password','AJHmD','rFTQK','1549638IrJHiL','GMeLp','VZweP','got','cKvKP','../config/logger','zgyiG','KYhKD','wOXTn','readFileSync','Jbcns','recommendCommands','nmlLe','lJqhx','KgExy','desc','LAlQx','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','2744392JMZVWA','../utils/userInput','type','bIJSH','strict','SBJeD','wBZjA','command','ulYaB','ZBGOz','INFO','zdWQW','statusCode','stack','../config/constants','debug','eKIMf','existsSync','zNOUG','../utils/instrumentationUtils','EQdNZ','init','username','UONNG','zNKDZ','rpQID','wrong-creds','usage','description','ERROR','unknown-error','WEMYi','4737362rYuXBU','gzApO','../utils/utilityMethods','mnXCY','jZUfh','help','Neskk','xaOSy','YBHct','options','CEWZO','10njtUrK','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','utf-8','env','hTeRF','stringify','zhGsM','FFwTX','xjHRY','KHAzw','writeFileSync','dZqVD','DTKND','fdOoL','error','/automate/plan.json','epilogue','bstackUsername','parse','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstack-username','389184LqgJqM','mkdirSync','JnZXO','YgVwV','argv','KVTuz','qkkgr','384159jbAiwV','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','vPkwP','ZynSL','string'];a12_0x5036=function(){return _0x50c04f;};return a12_0x5036();}function a12_0x4197(_0x2dbe81,_0x1fef54){const _0x50369b=a12_0x5036();return a12_0x4197=function(_0x4197da,_0x235f8a){_0x4197da=_0x4197da-0xda;let _0x599ea6=_0x50369b[_0x4197da];return _0x599ea6;},a12_0x4197(_0x2dbe81,_0x1fef54);}(function(_0x25ab47,_0x5ba1f5){const _0x40bb57=a12_0x4197,_0x56fe87=_0x25ab47();while(!![]){try{const _0x4e4aa7=-parseInt(_0x40bb57(0x144))/0x1+parseInt(_0x40bb57(0xe5))/0x2+parseInt(_0x40bb57(0x13f))/0x3+-parseInt(_0x40bb57(0xdc))/0x4*(-parseInt(_0x40bb57(0x122))/0x5)+parseInt(_0x40bb57(0x138))/0x6+-parseInt(_0x40bb57(0x117))/0x7+-parseInt(_0x40bb57(0xf7))/0x8;if(_0x4e4aa7===_0x5ba1f5)break;else _0x56fe87['push'](_0x56fe87['shift']());}catch(_0x25d027){_0x56fe87['push'](_0x56fe87['shift']());}}}(a12_0x5036,0x5ff62));const fs=require('fs'),util=require('util'),got=require(a12_0x3f85a9(0xe8)),{v4:uuidv4}=require(a12_0x3f85a9(0x145)),{logger}=require(a12_0x3f85a9(0xea)),{inputBstackKeys}=require(a12_0x3f85a9(0xf8)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x3f85a9(0x105)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x3f85a9(0x119)),{sendInstrumentationEvent}=require(a12_0x3f85a9(0x10a));exports[a12_0x3f85a9(0xfe)]=a12_0x3f85a9(0x10c),exports[a12_0x3f85a9(0xf4)]=a12_0x3f85a9(0x135),exports['builder']=function(_0x3559e5){const _0x5cef07=a12_0x3f85a9,_0x4ed61b={};_0x4ed61b[_0x5cef07(0x10b)]=_0x5cef07(0x136),_0x4ed61b[_0x5cef07(0x121)]='string',_0x4ed61b[_0x5cef07(0x13d)]=_0x5cef07(0x123),_0x4ed61b[_0x5cef07(0xfc)]=_0x5cef07(0x11c);const _0x13c5e9=_0x4ed61b,_0x113239={};_0x113239['description']=_0x13c5e9[_0x5cef07(0x10b)],_0x113239[_0x5cef07(0xf9)]=_0x13c5e9['CEWZO'];const _0x57e18c={};_0x57e18c[_0x5cef07(0x113)]=_0x13c5e9[_0x5cef07(0x13d)],_0x57e18c['type']=_0x13c5e9[_0x5cef07(0x121)];const _0x2be238={};return _0x2be238[_0x5cef07(0x137)]=_0x113239,_0x2be238[_0x5cef07(0xdb)]=_0x57e18c,_0x3559e5[_0x5cef07(0x112)](HELP_HEADER_MESSAGE[_0x5cef07(0x10c)])[_0x5cef07(0x132)](HELP_FOOTER_MESSAGE)[_0x5cef07(0x120)](_0x2be238)['recommendCommands']()[_0x5cef07(0xfb)]()[_0x5cef07(0x11c)](_0x13c5e9[_0x5cef07(0xfc)])['argv'];},exports['handler']=async function(_0x24d0c6){const _0x229f6c=a12_0x3f85a9,_0x4f714e={'VZweP':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','dZqVD':_0x229f6c(0x143),'LAlQx':_0x229f6c(0x123),'YgVwV':'help','UONNG':function(_0x2e39ad){return _0x2e39ad();},'JnZXO':_0x229f6c(0x124),'Neskk':function(_0x20cf56,_0x346bbc,_0x580281,_0x2b2dba,_0x14a0bf,_0x2ac180,_0xb71d4b){return _0x20cf56(_0x346bbc,_0x580281,_0x2b2dba,_0x14a0bf,_0x2ac180,_0xb71d4b);},'hTeRF':'init-called','AJHmD':function(_0x49a928){return _0x49a928();},'wBZjA':function(_0x196b0a,_0x21de4b){return _0x196b0a!==_0x21de4b;},'ncnkN':'hKMPa','vPkwP':_0x229f6c(0x12e),'WEMYi':function(_0x1639c9,_0x156902){return _0x1639c9===_0x156902;},'zgyiG':'QjkUh','ZBGOz':_0x229f6c(0xe6),'lJqhx':function(_0x224a0f,_0x5bcdf1){return _0x224a0f===_0x5bcdf1;},'ulYaB':_0x229f6c(0x110),'gzApO':function(_0xfe6df8,_0x2c6b34){return _0xfe6df8!==_0x2c6b34;},'rFTQK':_0x229f6c(0x12a),'zNKDZ':_0x229f6c(0x107),'dxhct':function(_0x1843ac,_0x26ea0d){return _0x1843ac===_0x26ea0d;},'mnXCY':'DGqAY','YBHct':function(_0x56352c,_0x421367){return _0x56352c===_0x421367;},'KQkcU':_0x229f6c(0xf3),'PSKSI':_0x229f6c(0x142),'zdWQW':_0x229f6c(0x140),'llvCA':'GET','Jbcns':function(_0x5595da,_0x3dfae6,_0x59cce2){return _0x5595da(_0x3dfae6,_0x59cce2);},'jZUfh':function(_0x65118,_0x32e53c){return _0x65118!==_0x32e53c;},'wOXTn':function(_0x42d99c,_0xabbdc3){return _0x42d99c!==_0xabbdc3;},'MgzYW':function(_0x5d6624,_0x13ebdd){return _0x5d6624===_0x13ebdd;},'cKvKP':function(_0x4f58b0,_0x14737d){return _0x4f58b0!==_0x14737d;},'KYhKD':_0x229f6c(0x129),'nmlLe':_0x229f6c(0x11e),'DwEgH':_0x229f6c(0x13e),'EQXpX':'rbDSq','bIJSH':function(_0x43a428){return _0x43a428();},'WnwnG':function(_0x5a75ec,_0x2d1917){return _0x5a75ec===_0x2d1917;},'zNOUG':_0x229f6c(0xe0),'IFpOU':'twdEM','KHAzw':_0x229f6c(0xf6),'zhGsM':_0x229f6c(0x111),'fdOoL':function(_0x33d076,_0x5916a1,_0x5919ba,_0x6b9054,_0x5c4186,_0x498fef,_0x142cf2){return _0x33d076(_0x5916a1,_0x5919ba,_0x6b9054,_0x5c4186,_0x498fef,_0x142cf2);},'QMbHb':_0x229f6c(0x115)};try{global_registry['requestId']=_0x4f714e[_0x229f6c(0x10e)](uuidv4),_0x4f714e[_0x229f6c(0x11d)](sendInstrumentationEvent,_0x24d0c6,_0x4f714e['hTeRF'],messageTypes[_0x229f6c(0x101)],null,null,_0x24d0c6);const _0x293654=_0x4f714e[_0x229f6c(0xe3)](getDirForConfig);!fs[_0x229f6c(0x108)](_0x293654)&&(_0x4f714e[_0x229f6c(0xfd)](_0x4f714e['ncnkN'],_0x4f714e[_0x229f6c(0x141)])?fs[_0x229f6c(0x139)](_0x293654):_0x5b00de=_0x333efa[_0x229f6c(0x133)]);let _0x186ca7,_0x2a9a97;process[_0x229f6c(0x125)][_0x229f6c(0xda)]&&(_0x4f714e['WEMYi'](_0x4f714e[_0x229f6c(0xeb)],_0x4f714e[_0x229f6c(0x100)])?_0x40e3aa[_0x229f6c(0x139)](_0x562e4f):_0x186ca7=process['env']['BROWSERSTACK_USERNAME']);process[_0x229f6c(0x125)][_0x229f6c(0xdd)]&&(_0x4f714e[_0x229f6c(0xf2)](_0x4f714e[_0x229f6c(0xff)],_0x4f714e[_0x229f6c(0xff)])?_0x2a9a97=process[_0x229f6c(0x125)][_0x229f6c(0xdd)]:_0x3906c7=_0x470f25['bstackAccesskey']);if(_0x24d0c6[_0x229f6c(0x133)]){if(_0x4f714e[_0x229f6c(0x118)](_0x4f714e[_0x229f6c(0xe4)],_0x4f714e[_0x229f6c(0x10f)]))_0x186ca7=_0x24d0c6[_0x229f6c(0x133)];else{const _0x3b44b6={};_0x3b44b6[_0x229f6c(0x113)]=_0x4f714e[_0x229f6c(0xe7)],_0x3b44b6[_0x229f6c(0xf9)]=_0x4f714e[_0x229f6c(0x12d)];const _0x2abd9a={};_0x2abd9a[_0x229f6c(0x113)]=_0x4f714e[_0x229f6c(0xf5)],_0x2abd9a[_0x229f6c(0xf9)]=_0x4f714e['dZqVD'];const _0x55e42d={};return _0x55e42d[_0x229f6c(0x137)]=_0x3b44b6,_0x55e42d['bstack-accesskey']=_0x2abd9a,_0x5dee33['usage'](_0x49301d[_0x229f6c(0x10c)])[_0x229f6c(0x132)](_0x3639f4)[_0x229f6c(0x120)](_0x55e42d)[_0x229f6c(0xf0)]()[_0x229f6c(0xfb)]()[_0x229f6c(0x11c)](_0x4f714e[_0x229f6c(0x13b)])[_0x229f6c(0x13c)];}}if(_0x24d0c6['bstackAccesskey']){if(_0x4f714e['dxhct'](_0x4f714e[_0x229f6c(0x11a)],_0x4f714e[_0x229f6c(0x11a)]))_0x2a9a97=_0x24d0c6[_0x229f6c(0xdf)];else{let _0xc95a52={};const _0x562791=_0x4f714e[_0x229f6c(0x10e)](_0x112523);_0x1251c2['existsSync'](_0x562791)&&(_0xc95a52=_0x87371e[_0x229f6c(0x134)](_0x1142ce[_0x229f6c(0xee)](_0x562791,_0x4f714e['JnZXO'])));const _0x473345={};_0x473345[_0x229f6c(0x10d)]=_0x1ff4a6,_0x473345[_0x229f6c(0xe2)]=_0x583a56,_0xc95a52['Browserstack']=_0x473345,_0x7d60a2['writeFileSync'](_0x562791,_0x35df5e[_0x229f6c(0x127)](_0xc95a52)),_0x4289a2[_0x229f6c(0x146)](0x0);}}if(_0x4f714e[_0x229f6c(0x11f)](_0x186ca7,undefined)||_0x4f714e[_0x229f6c(0x11f)](_0x2a9a97,undefined)){if(_0x4f714e[_0x229f6c(0xfd)](_0x4f714e['KQkcU'],_0x4f714e['PSKSI'])){logger[_0x229f6c(0x106)](_0x4f714e[_0x229f6c(0x102)]);const [_0x14047a,_0x2d2882]=await _0x4f714e[_0x229f6c(0x10e)](inputBstackKeys);_0x186ca7=_0x14047a,_0x2a9a97=_0x2d2882;}else _0x50781b=_0x1ee0ee['env'][_0x229f6c(0xda)];}let _0x1dd4a2=![];const _0x2d1a24='https://'+_0x186ca7+':'+_0x2a9a97+'@'+BS_API_URL+_0x229f6c(0x131),_0x322325={'method':_0x4f714e['llvCA'],'headers':_0x4f714e[_0x229f6c(0xef)](getAuthHeader,_0x186ca7,_0x2a9a97),'throwHttpErrors':![]},_0x17a690=await _0x4f714e[_0x229f6c(0xef)](got,_0x2d1a24,_0x322325);_0x4f714e[_0x229f6c(0x11b)](_0x17a690,null)&&_0x4f714e[_0x229f6c(0xed)](_0x17a690,undefined)&&_0x4f714e['MgzYW'](_0x17a690[_0x229f6c(0x103)],0xc8)&&(_0x4f714e[_0x229f6c(0xe9)](_0x4f714e[_0x229f6c(0xec)],_0x4f714e[_0x229f6c(0xf1)])?_0x1dd4a2=!![]:_0x5b64d0=_0x5a5cc0[_0x229f6c(0x134)](_0x401e05[_0x229f6c(0xee)](_0x3c4094,_0x4f714e[_0x229f6c(0x13a)])));if(_0x1dd4a2){if(_0x4f714e[_0x229f6c(0x116)](_0x4f714e['DwEgH'],_0x4f714e[_0x229f6c(0xe1)]))_0x4f228c=!![];else{let _0x4db59a={};const _0x5a05f2=_0x4f714e[_0x229f6c(0xfa)](getCredentialsPath);fs[_0x229f6c(0x108)](_0x5a05f2)&&(_0x4f714e[_0x229f6c(0xde)](_0x4f714e[_0x229f6c(0x109)],_0x4f714e['IFpOU'])?_0x41ba60=_0x2fec87[_0x229f6c(0x125)][_0x229f6c(0xdd)]:_0x4db59a=JSON[_0x229f6c(0x134)](fs['readFileSync'](_0x5a05f2,_0x4f714e['JnZXO'])));const _0x1e9748={};_0x1e9748[_0x229f6c(0x10d)]=_0x186ca7,_0x1e9748[_0x229f6c(0xe2)]=_0x2a9a97,_0x4db59a['Browserstack']=_0x1e9748,fs[_0x229f6c(0x12c)](_0x5a05f2,JSON[_0x229f6c(0x127)](_0x4db59a)),process['exit'](0x0);}}else logger[_0x229f6c(0x130)](_0x4f714e[_0x229f6c(0x12b)]),await _0x4f714e[_0x229f6c(0x11d)](sendInstrumentationEvent,_0x24d0c6,_0x4f714e[_0x229f6c(0x126)],messageTypes['ERROR'],_0x4f714e[_0x229f6c(0x128)],null,_0x24d0c6),process['exit'](0x1);}catch(_0x300649){logger[_0x229f6c(0x130)](_0x300649[_0x229f6c(0x104)]),await _0x4f714e[_0x229f6c(0x12f)](sendInstrumentationEvent,_0x24d0c6,_0x4f714e[_0x229f6c(0x126)],messageTypes[_0x229f6c(0x114)],_0x4f714e['QMbHb'],_0x300649,_0x24d0c6),process[_0x229f6c(0x146)](0x1);}};
|
package/ats/src/commands/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13_0x249212=a13_0x17e6;function a13_0x17e6(_0x50beab,_0x248da4){const _0x109521=a13_0x1095();return a13_0x17e6=function(_0x17e616,_0x177bdc){_0x17e616=_0x17e616-0x143;let _0x42b201=_0x109521[_0x17e616];return _0x42b201;},a13_0x17e6(_0x50beab,_0x248da4);}(function(_0x5448f6,_0x154c49){const _0x115e58=a13_0x17e6,_0x127c7e=_0x5448f6();while(!![]){try{const _0xb35ee7=-parseInt(_0x115e58(0x144))/0x1+parseInt(_0x115e58(0x14c))/0x2*(parseInt(_0x115e58(0x151))/0x3)+-parseInt(_0x115e58(0x155))/0x4*(parseInt(_0x115e58(0x148))/0x5)+-parseInt(_0x115e58(0x145))/0x6+-parseInt(_0x115e58(0x158))/0x7+-parseInt(_0x115e58(0x153))/0x8*(-parseInt(_0x115e58(0x14f))/0x9)+parseInt(_0x115e58(0x14d))/0xa;if(_0xb35ee7===_0x154c49)break;else _0x127c7e['push'](_0x127c7e['shift']());}catch(_0x152333){_0x127c7e['push'](_0x127c7e['shift']());}}}(a13_0x1095,0xc5cf9));function a13_0x1095(){const _0x39dae6=['198098hlOVys','27825890CSKPSR','list_commands','9ysimUT','epilogue','6hQcSur','commandDir','6247048fDLOyQ','list','3641452jTistl','qoxZR','desc','9567362dWxgom','builder','demandCommand','strict','633598YZypoe','243648Vlnnru','command','help','5KALegS','List\x20down\x20the\x20Grid\x20resources.','root','uqEVB'];a13_0x1095=function(){return _0x39dae6;};return a13_0x1095();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a13_0x249212(0x146)]=a13_0x249212(0x154),exports[a13_0x249212(0x157)]=a13_0x249212(0x149),exports[a13_0x249212(0x159)]=function(_0x2e8844){const _0x4f78b5=a13_0x249212,_0x4dfd1d={};_0x4dfd1d[_0x4f78b5(0x156)]=_0x4f78b5(0x14e),_0x4dfd1d[_0x4f78b5(0x14b)]=_0x4f78b5(0x147);const _0x336a20=_0x4dfd1d;return _0x2e8844[_0x4f78b5(0x152)](_0x336a20['qoxZR'])[_0x4f78b5(0x15a)]()['usage'](HELP_HEADER_MESSAGE[_0x4f78b5(0x154)][_0x4f78b5(0x14a)])[_0x4f78b5(0x150)](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x4f78b5(0x143)]()['help'](_0x336a20[_0x4f78b5(0x14b)]);},exports['handler']=function(_0x1d7357){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0xd9e19f=a14_0xefd2;function a14_0xefd2(_0x535e00,_0xb69446){const _0x418dc9=a14_0x418d();return a14_0xefd2=function(_0xefd2c8,_0x3977c8){_0xefd2c8=_0xefd2c8-0x15a;let _0x5c10b9=_0x418dc9[_0xefd2c8];return _0x5c10b9;},a14_0xefd2(_0x535e00,_0xb69446);}(function(_0x311ce9,_0x2042d9){const _0x3b20ae=a14_0xefd2,_0xf672d0=_0x311ce9();while(!![]){try{const _0x2fd198=-parseInt(_0x3b20ae(0x18c))/0x1+parseInt(_0x3b20ae(0x175))/0x2*(-parseInt(_0x3b20ae(0x15f))/0x3)+-parseInt(_0x3b20ae(0x191))/0x4*(parseInt(_0x3b20ae(0x194))/0x5)+parseInt(_0x3b20ae(0x166))/0x6+parseInt(_0x3b20ae(0x196))/0x7+parseInt(_0x3b20ae(0x183))/0x8*(-parseInt(_0x3b20ae(0x16b))/0x9)+parseInt(_0x3b20ae(0x188))/0xa*(-parseInt(_0x3b20ae(0x16c))/0xb);if(_0x2fd198===_0x2042d9)break;else _0xf672d0['push'](_0xf672d0['shift']());}catch(_0x1bb77d){_0xf672d0['push'](_0xf672d0['shift']());}}}(a14_0x418d,0xe63bd));function a14_0x418d(){const _0x37c342=['body','gridProfile','password','../../config/constants','aICfF','2Yrcwux','stringify','LDgAE','tmkEf','ASeAQ','QCqmO','tvurg','log','GET','xvzdc','handler','boolean','grid-profiles','list','25616mYTsSM','Browserstack','desc','init-not-called','requestId','126850ozkgZQ','qRfky','help','MUCSr','155552lJVMOz','Failed\x20to\x20list\x20resources!\x20Error:\x20','unknown-error','uOejF','allGridProfiles','32guvmUH','error','myGvj','266330lMNKUd','https://','8284661DlVoDT','server-error','push','concurrency','jsKvJ','../../utils/instrumentationUtils','description','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stack','parse','exit','forEach','/packages/cli/get-grid-profiles','readFileSync','existsSync','all-grid-profiles','fzALV','LgcHE','lOWwq','Pxkxy','cloud-provider','options','INFO','region','tpVmf','ERROR','cloudProvider','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','uuid','ddxQR','1093449YWiZnO','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','username','type','OvGSJ','table','uYVCp','8009994CUbIhK','tfskm','unauthorised','statusCode','bstackAccesskey','414fublQD','418CKQISF','grid-profile-name','/packages/cli/get-all-grid-profiles','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.'];a14_0x418d=function(){return _0x37c342;};return a14_0x418d();}const fs=require('fs'),got=require('got'),{table}=require(a14_0xd9e19f(0x164)),{v4:uuidv4}=require(a14_0xd9e19f(0x15d)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0xd9e19f(0x173)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0xd9e19f(0x19b));exports['command']=a14_0xd9e19f(0x181),exports[a14_0xd9e19f(0x185)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x35fe8f){const _0xbbedb9=a14_0xd9e19f,_0x214a45={};_0x214a45[_0xbbedb9(0x189)]=_0xbbedb9(0x160),_0x214a45[_0xbbedb9(0x1a6)]=_0xbbedb9(0x180),_0x214a45[_0xbbedb9(0x1a7)]='help';const _0x1fb64f=_0x214a45,_0x2187c5={};_0x2187c5[_0xbbedb9(0x19c)]=_0x1fb64f['qRfky'],_0x2187c5[_0xbbedb9(0x162)]=_0x1fb64f[_0xbbedb9(0x1a6)];const _0x1b5a5b={};return _0x1b5a5b[_0xbbedb9(0x1a5)]=_0x2187c5,_0x35fe8f['usage'](HELP_HEADER_MESSAGE[_0xbbedb9(0x182)][_0xbbedb9(0x171)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xbbedb9(0x1ab)](_0x1b5a5b)[_0xbbedb9(0x18a)](_0x1fb64f[_0xbbedb9(0x1a7)])['argv'];},exports[a14_0xd9e19f(0x17f)]=async function(_0x248168){const _0x569f8d=a14_0xd9e19f,_0xfa927c={'myGvj':function(_0x276233){return _0x276233();},'LDgAE':function(_0x37e14e){return _0x37e14e();},'xvzdc':_0x569f8d(0x16f),'uOejF':function(_0x135e43,_0x30ce35,_0x1f1ed8,_0x5ee974,_0x1904b7,_0x2719ef,_0x4a8a2f){return _0x135e43(_0x30ce35,_0x1f1ed8,_0x5ee974,_0x1904b7,_0x2719ef,_0x4a8a2f);},'ddxQR':'list-grid-profiles-called','MUCSr':_0x569f8d(0x186),'xsWnk':_0x569f8d(0x17d),'Pxkxy':function(_0x25a452,_0x300da6,_0xd8c9fb){return _0x25a452(_0x300da6,_0xd8c9fb);},'QpqTw':function(_0x2529f3,_0xb7baeb,_0x387128){return _0x2529f3(_0xb7baeb,_0x387128);},'tvurg':function(_0x280e23,_0x55de57){return _0x280e23!==_0x55de57;},'ASeAQ':function(_0x4873ce,_0x4482dd){return _0x4873ce===_0x4482dd;},'lOWwq':_0x569f8d(0x15c),'aICfF':_0x569f8d(0x16d),'tfskm':_0x569f8d(0x1aa),'QCqmO':_0x569f8d(0x1ad),'xqPpx':_0x569f8d(0x199),'tpVmf':function(_0x3f56a0,_0x547fb0){return _0x3f56a0(_0x547fb0);},'TBkeg':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','tmkEf':function(_0x26891e,_0x3ad2ab,_0x31b2de,_0x387ed6,_0x4c98c5,_0x4ae131,_0x51b8a2){return _0x26891e(_0x3ad2ab,_0x31b2de,_0x387ed6,_0x4c98c5,_0x4ae131,_0x51b8a2);},'uYVCp':_0x569f8d(0x168),'OvGSJ':_0x569f8d(0x197),'jsKvJ':function(_0x560b6e,_0x5bf9e2,_0x5a8b6e,_0x5ad2b0,_0x2cf3d1,_0x216c30,_0x43336e){return _0x560b6e(_0x5bf9e2,_0x5a8b6e,_0x5ad2b0,_0x2cf3d1,_0x216c30,_0x43336e);},'CPldM':_0x569f8d(0x18e)};try{global_registry[_0x569f8d(0x187)]=_0xfa927c[_0x569f8d(0x193)](uuidv4);let _0x40d1be=_0x569f8d(0x195)+AG_API_URL+_0x569f8d(0x1a2);_0x248168[_0x569f8d(0x190)]&&(_0x40d1be='https://'+AG_API_URL+_0x569f8d(0x16e));!fs[_0x569f8d(0x1a4)](_0xfa927c[_0x569f8d(0x177)](getCredentialsPath))&&(console[_0x569f8d(0x192)](_0xfa927c[_0x569f8d(0x17e)]),await _0xfa927c[_0x569f8d(0x18f)](sendInstrumentationEvent,_0x248168,_0xfa927c[_0x569f8d(0x15e)],messageTypes['ERROR'],_0xfa927c[_0x569f8d(0x18b)],null,_0x248168),process[_0x569f8d(0x1a0)](0x1));const _0xce5385=JSON['parse'](fs[_0x569f8d(0x1a3)](_0xfa927c['LDgAE'](getCredentialsPath))),_0x43e7a8={'method':_0xfa927c['xsWnk'],'headers':_0xfa927c[_0x569f8d(0x1a9)](getAuthHeader,_0xce5385[_0x569f8d(0x184)][_0x569f8d(0x161)],_0xce5385[_0x569f8d(0x184)][_0x569f8d(0x172)]),'throwHttpErrors':![]};global_registry['bstackUsername']=_0xce5385[_0x569f8d(0x184)][_0x569f8d(0x161)],global_registry[_0x569f8d(0x16a)]=_0xce5385[_0x569f8d(0x184)][_0x569f8d(0x172)],_0xfa927c[_0x569f8d(0x18f)](sendInstrumentationEvent,_0x248168,_0xfa927c['ddxQR'],messageTypes[_0x569f8d(0x1ac)],null,null,_0x248168);const _0x451228=await _0xfa927c['QpqTw'](got,_0x40d1be,_0x43e7a8);if(_0xfa927c[_0x569f8d(0x17b)](_0x451228,null)&&_0xfa927c[_0x569f8d(0x17b)](_0x451228,undefined)&&_0xfa927c[_0x569f8d(0x179)](_0x451228[_0x569f8d(0x169)],0xc8)){const _0x56fea4=JSON[_0x569f8d(0x19f)](_0x451228[_0x569f8d(0x170)]);console['log'](_0xfa927c[_0x569f8d(0x1a8)]);const _0xd6f6f8=[];_0xd6f6f8['push']([_0xfa927c[_0x569f8d(0x174)],_0xfa927c[_0x569f8d(0x167)],_0xfa927c[_0x569f8d(0x17a)],_0xfa927c['xqPpx']]),_0x56fea4[_0x569f8d(0x1a1)](_0xcebd85=>{const _0x3169be=_0x569f8d;_0xd6f6f8[_0x3169be(0x198)]([_0xcebd85['name'],_0xcebd85[_0x3169be(0x15b)],_0xcebd85[_0x3169be(0x1ad)],_0xcebd85[_0x3169be(0x199)]]);}),console[_0x569f8d(0x17c)](_0xfa927c[_0x569f8d(0x1ae)](table,_0xd6f6f8)),process[_0x569f8d(0x1a0)](0x0);}_0xfa927c[_0x569f8d(0x179)](_0x451228[_0x569f8d(0x169)],0x191)&&(console[_0x569f8d(0x192)](_0xfa927c['TBkeg']),await _0xfa927c[_0x569f8d(0x178)](sendInstrumentationEvent,_0x248168,_0xfa927c[_0x569f8d(0x15e)],messageTypes[_0x569f8d(0x15a)],_0xfa927c[_0x569f8d(0x165)],null,_0x248168),process[_0x569f8d(0x1a0)](0x1)),console[_0x569f8d(0x192)](_0x569f8d(0x19d)+JSON[_0x569f8d(0x176)](_0x451228)),await _0xfa927c[_0x569f8d(0x18f)](sendInstrumentationEvent,_0x248168,_0xfa927c[_0x569f8d(0x15e)],messageTypes['ERROR'],_0xfa927c[_0x569f8d(0x163)],_0x451228,_0x248168),process['exit'](0x1);}catch(_0x498448){console['error'](_0x569f8d(0x18d)+_0x498448[_0x569f8d(0x19e)]),await _0xfa927c[_0x569f8d(0x19a)](sendInstrumentationEvent,_0x248168,_0xfa927c[_0x569f8d(0x15e)],messageTypes[_0x569f8d(0x15a)],_0xfa927c['CPldM'],_0x498448,_0x248168),process[_0x569f8d(0x1a0)](0x1);}};
|