browserstack-node-sdk 1.49.4 → 1.49.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/precheck.js +1 -1
- package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customSequencer.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test.setup.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/load/index.js +1 -1
- package/src/bin/load/loadUtils.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/apiUtilityMethods.js +1 -1
- package/src/bin/utils/clientTroubleshootingService.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/utils/playwright-patcher.js +1 -1
- package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
- package/src/bin/utils/sharedUtils.js +1 -1
- package/src/bin/v2/TestInfo.js +1 -1
- package/src/bin/v2/browserstackCLI.js +1 -1
- package/src/bin/v2/cliUtils.js +1 -1
- package/src/bin/v2/customTagManager.js +1 -1
- package/src/bin/v2/eventDispatcher.js +1 -1
- package/src/bin/v2/framework/automationFramework.js +1 -1
- package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
- package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
- package/src/bin/v2/framework/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
|
|
1
|
+
function a2_0x15e6(){const _0x2a37d6=['2929077SjjkxA','CloudProvider','exports','102LjPCYX','15MDiyOq','writeFileSync','2|3|0|1|4','8TnVvlh','811245NveZPO','5304733MAbLnv','../utils/userInput','setCachedCredsInRegistry','22aDtdQC','QhTsW','nvFik','debug','info','init','AKiay','330116ujNfvw','cloudProvider','88490CkPXkN','hjXRo','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','RRMMf','YgBoq','../utils/utilityMethods','split','LOG','sendEventToBackend','7668910WlMgVD','rws','stringify','type','849018zosSnA','webSocketUtils','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20perform\x20actions','ttqHQ','FlAYM','gridName','cloudProviderName'];a2_0x15e6=function(){return _0x2a37d6;};return a2_0x15e6();}const a2_0x419e5b=a2_0x5974;(function(_0x2718ac,_0x51d89c){const _0x165123=a2_0x5974,_0x410c30=_0x2718ac();while(!![]){try{const _0x3c47c0=-parseInt(_0x165123(0x6b))/0x1+-parseInt(_0x165123(0x85))/0x2+parseInt(_0x165123(0x67))/0x3*(-parseInt(_0x165123(0x76))/0x4)+parseInt(_0x165123(0x78))/0x5*(parseInt(_0x165123(0x66))/0x6)+parseInt(_0x165123(0x6c))/0x7+-parseInt(_0x165123(0x6a))/0x8*(parseInt(_0x165123(0x8c))/0x9)+parseInt(_0x165123(0x81))/0xa*(parseInt(_0x165123(0x6f))/0xb);if(_0x3c47c0===_0x51d89c)break;else _0x410c30['push'](_0x410c30['shift']());}catch(_0x4a009c){_0x410c30['push'](_0x410c30['shift']());}}}(a2_0x15e6,0x97077));const fs=require('fs'),{getCredentialsPath,isUndefined}=require(a2_0x419e5b(0x7d)),{logger}=require('../config/logger'),{inputCloudProviderKeys}=require(a2_0x419e5b(0x6d)),{WS_EVENTS}=require('../config/constants');function a2_0x5974(_0x21e902,_0x3dac5d){const _0x15e69d=a2_0x15e6();return a2_0x5974=function(_0x5974b8,_0x38577b){_0x5974b8=_0x5974b8-0x65;let _0xe68bbe=_0x15e69d[_0x5974b8];return _0xe68bbe;},a2_0x5974(_0x21e902,_0x3dac5d);}class CloudProvider{constructor(_0x558b71,_0x51a76f,_0x238075,_0x4be715,_0x3ddf73){const _0x25ffbd=a2_0x419e5b,_0xbba6d4={};_0xbba6d4[_0x25ffbd(0x7c)]=_0x25ffbd(0x69);const _0x1d21db=_0xbba6d4,_0x345bf6=_0x1d21db[_0x25ffbd(0x7c)][_0x25ffbd(0x7e)]('|');let _0x194b83=0x0;while(!![]){switch(_0x345bf6[_0x194b83++]){case'0':this[_0x25ffbd(0x8a)]=_0x238075;continue;case'1':this[_0x25ffbd(0x82)]=_0x4be715;continue;case'2':this['cloudProviderName']=_0x558b71;continue;case'3':this['clusterName']=_0x51a76f;continue;case'4':this[_0x25ffbd(0x86)]=_0x3ddf73;continue;}break;}}async[a2_0x419e5b(0x74)](){const _0x55d301=a2_0x419e5b,_0x599a4a={'RRMMf':function(_0x2ad73d){return _0x2ad73d();},'QhTsW':function(_0x41b4e6,_0xd091aa){return _0x41b4e6(_0xd091aa);},'hjXRo':_0x55d301(0x7a),'nvFik':function(_0x4d8268,_0x311685){return _0x4d8268(_0x311685);},'FlAYM':function(_0x1ccd8b,_0x5e080c,_0x2cbe9f,_0x40dddf){return _0x1ccd8b(_0x5e080c,_0x2cbe9f,_0x40dddf);},'ttqHQ':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','AKiay':_0x55d301(0x87)},_0x4ddde=JSON['parse'](fs['readFileSync'](_0x599a4a[_0x55d301(0x7b)](getCredentialsPath))),_0x3f1385=_0x4ddde[_0x55d301(0x77)]||{};if(_0x599a4a[_0x55d301(0x70)](isUndefined,_0x3f1385[this[_0x55d301(0x8b)]])){logger[_0x55d301(0x73)](_0x599a4a[_0x55d301(0x79)]);_0x599a4a[_0x55d301(0x71)](isUndefined,_0x4ddde[_0x55d301(0x77)])&&(_0x4ddde[_0x55d301(0x77)]={});_0x4ddde['cloudProvider'][this[_0x55d301(0x8b)]]={};const _0x2b4f5b=await _0x599a4a[_0x55d301(0x89)](inputCloudProviderKeys,this['cloudProviderName'],_0x4ddde,this);fs[_0x55d301(0x68)](_0x599a4a[_0x55d301(0x7b)](getCredentialsPath),JSON[_0x55d301(0x83)](_0x2b4f5b)),logger[_0x55d301(0x72)](_0x599a4a[_0x55d301(0x88)]);}else{const _0x43e82d=_0x599a4a[_0x55d301(0x75)],_0x5187a9={};_0x5187a9[_0x55d301(0x84)]=WS_EVENTS[_0x55d301(0x7f)],_0x5187a9['message']=_0x43e82d,this[_0x55d301(0x86)][_0x55d301(0x80)](this[_0x55d301(0x82)],_0x5187a9),logger[_0x55d301(0x73)](_0x43e82d),await this[_0x55d301(0x6e)](_0x3f1385);}}}const a2_0xb36817={};a2_0xb36817[a2_0x419e5b(0x8d)]=CloudProvider,module[a2_0x419e5b(0x65)]=a2_0xb36817;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x4e9fe9=a3_0x1f49;function a3_0x1f49(_0x83986d,_0x7ba7db){const _0x29173b=a3_0x2917();return a3_0x1f49=function(_0x1f4926,_0x4d1f1b){_0x1f4926=_0x1f4926-0x1cc;let _0x4cb69b=_0x29173b[_0x1f4926];return _0x4cb69b;},a3_0x1f49(_0x83986d,_0x7ba7db);}(function(_0x54aed9,_0x449381){const _0x1e1dd9=a3_0x1f49,_0x244950=_0x54aed9();while(!![]){try{const _0x38f814=-parseInt(_0x1e1dd9(0x322))/0x1+parseInt(_0x1e1dd9(0x203))/0x2*(parseInt(_0x1e1dd9(0x2f9))/0x3)+-parseInt(_0x1e1dd9(0x2d5))/0x4*(-parseInt(_0x1e1dd9(0x345))/0x5)+parseInt(_0x1e1dd9(0x23e))/0x6+parseInt(_0x1e1dd9(0x294))/0x7*(-parseInt(_0x1e1dd9(0x215))/0x8)+-parseInt(_0x1e1dd9(0x30c))/0x9+-parseInt(_0x1e1dd9(0x2ca))/0xa*(-parseInt(_0x1e1dd9(0x1e2))/0xb);if(_0x38f814===_0x449381)break;else _0x244950['push'](_0x244950['shift']());}catch(_0x9585f8){_0x244950['push'](_0x244950['shift']());}}}(a3_0x2917,0xb584f));const fs=require('fs'),path=require(a3_0x4e9fe9(0x2b3)),got=require('got'),util=require(a3_0x4e9fe9(0x34e)),cp=require(a3_0x4e9fe9(0x239)),{google}=require('googleapis'),compute=require(a3_0x4e9fe9(0x2fe)),container=require(a3_0x4e9fe9(0x306)),{ProjectsClient}=require(a3_0x4e9fe9(0x36e))['v3'],{logger}=require(a3_0x4e9fe9(0x2dc)),{CloudProvider}=require(a3_0x4e9fe9(0x342)),{getDirForConfig,getAuthHeader,runCommand}=require(a3_0x4e9fe9(0x1f2)),{deleteRoutingDeps,deleteAgent}=require('../utils/gridComponents'),{inputConfirmation,closeInput}=require(a3_0x4e9fe9(0x222)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x4e9fe9(0x1cf)),PERMISSIONS=require('../permissions/GCP.json');function a3_0x2917(){const _0x413c6b=['IoDHR','aLBlj','LsLCf','FBNyo','OQCeA','TtzZa','24ZaJsmv','serviceAccount:','Frual','lZKeh','YLLRH','warn','minNodeCount','RuqVL','qVcMm','debug','OUQAv','fXLwf','managedby','../utils/userInput','CJcmv','replace','dAZwN','iam','KOExs','wKqET','config','nodePools','utf-8','isClusterPresent','XCkDK','clusterAutoUpgrade','pyydq','fTqMb','LhlID','rniyP','TdMpy','Service\x20account\x20already\x20exists,\x20skipping','WVsnb','loWoF','Intercepted','writeFileSync','child_process','Cpagi','create','fIyZO','VaTpN','381882WbsSqC','\x20--windows-os-version=ltsc2022\x20--region\x20','EVdIG','bfqwZ','Please\x20install\x20gcloud\x20CLI\x20tool.\x20Error\x20:\x20','mohHc','afxrq','xyKYE','IFOdk','JJlws','WPZfC','webSocketUtils','qpwkJ','projectId','/regions/','4|6|8|5|2|7|0|1|3','/subnetworks/','ANRTK','json','HlXqU','KrTQm','ozFJi','\x20--quiet\x20--user-output-enabled=false','ajXER','ixihJ','jiujm','nLBej','gridProfileId','toLowerCase','HVNQX','YlKAx','CNkjd','DIUly','ZZZad','clusterRegion','profileId','storage.buckets.update','sendResourceDataToHST','setIamPolicy','lpNPN','aOPpY','PNrxk','xmlVN','nVvZQ','deDgy','HuNhv','gcloud\x20--version','aWAaJ','OzWQx','resourcemanagerClient','iSuWr','keyFile','zrGvf','WOgKu','gcp_credentials.json','vDLiz','turboscale_custom_role','createCluster','LYrCm','toString','hckVu','cnHQG','VKKde','listClusters','NBzmV','xaGuO','storage.objects.create','HFFUH','QcMhr','UgbVx','PtIzx','nFNiC','LPTnZ','storage.buckets.list','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','gfvOE','getClient','Xzhya','KubeConfigTemplate.yaml','accountId','KyMBX','zfXES','stringify','vEODb','sOBLe','gvQrp','757897EEqahc','HqZsZ','exports','ClusterManagerClient','subnetwork','NetworksClient','bvzlc','roles','getUserInput','kRbNC','YctSE','minNodes','bstackUsername','.iam.gserviceaccount.com','LPHwl','Creating\x20GKE\x20Cluster','lpZds','accounts','qfmNx','cXVGZ','templates','clusters','bBDSI','mwykv','execSync','keys','denied','NNRSO','machineType','jHOqZ','network','path','gcloud\x20auth\x20login\x20--cred-file=','getGridHostname','turboscale-service-account','tbdpI','auth','PdXYO','vmbFS','SQMxz','EdQVJ','RUNNING','tIJak','qMvwR','qTmHz','bDvwd','FNCPJ','rrURh','pEMMr','CIDZk','storage.buckets.createTagBinding','TpYsQ','qdGYq','push','7690UNHSgz','ZhjVY','parent','qTbhY','xEuqP','/locations/','containerClient','tqWtN','cloudProvider','getClusterInfo','bKyaF','8DVQtkE','isVPCPresent','permissions\x20check\x20response\x20for\x20','readFileAsync','FNgfM','xWEJK','data','../config/logger','\x20:\x20','regionmap.json','isSubnetsValid','resourceLabels','pceOQ','log','hQvRa','storage.objects.get','.\x20Error:\x20','ZdhDy','GKE\x20Cluster\x20deletion\x20failed','checkAccess','role','IIiaX','TxHsz','parse','OxjAx','rgbpW','vUJaX','shCua','rws','RTDOB','Found\x20cluster\x20with\x20name\x20\x27','masterAuth','includes','/global/networks/','entries','sendEventToBackend','3QWsSsD','lfLFE','stack','oNeBM','get','@google-cloud/compute','EHUnr','PUT','isBrowserstackCluster','getKubeConfigData','RZRla','sendGCPInfoToHST','serviceAccountName','@google-cloud/container','project_id','Cluster\x20creation\x20failed','status','/roles/','NPnrk','8696826EiQbKC','EFrru','dVuCX','NAMBA','GoogleCloudProvider','join','updateClusterRegion','BWyiB','ICkAO','ltOjZ','ucVjm','members','yLPRv','ingress','credentialsPath','exec','SYzES','vNKex','setupHubHa','storage.objects.setIamPolicy','HPYxC','blpHg','829210Rvduhm','maxNodes','storage.objects.list','pNjdt','scopes','PDQaa','concat','YtLBg','gkecluster.json','IwJEU','YRFpC','/clusters/','FJHpm','gcpresources','updateWindowsNodeGroup','setCachedCredsInRegistry','Turboscale\x20Custom\x20Role','prRkl','storage.multipartUploads.abort','xsFGA','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','storage.objects.update','requestBody','FvosQ','instanceType','Fmqwp','DXeqH','list','xVjCO','projects','yDVQC','XWQYL','./CloudProvider','/serviceAccounts/','loadBalancer','714230FBuRfF','KWwNg','storage.multipartUploads.listParts','KofGe','clusterName','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','IgjAg','cdVCU','bstackAccesskey','util','kgjfG','channel','EExEC','RXvWM','EPfvi','dbuGk','qWMzq','deleteCluster','NtAkJ','UkUfh','storage.buckets.create','LhzxJ','wagYA','message','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','length','xUDjV','SaRxt','projects/','customRoleName','REGULAR','dtgPT','https://','storage.buckets.getIamPolicy','bCjNC','isCliToolInstalled','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','cloudProviderName','jqHid','accessKey','tqSim','@google-cloud/resource-manager','subnetworks','oarkr','networkClient','../config/constants','HshiI','default','mYKQP','oxhMV','NfnZn','Bcoju','vpcInfo','maxNodeCount','lrGNG','DONE','XDGTZ','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','serviceAccounts','lIVFQ','Cannot\x20find\x20subnets\x20','TvBfs','allowed','info','15103ZnEYen','yWaHo','exit','HRJUH','browserstack','OcfBp','zLCSJ','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--no-user-output-enabled','NlQgK','init','XNujJ','releaseChannel','aQwrg','HBQbg','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','uodDC','../utils/utilityMethods','TGcsX','vaWlH','https://www.googleapis.com/compute/v1/projects/','management','HvpXV','wJJJH','LOG','RrFST','https://www.googleapis.com/auth/cloud-platform','locations','VdVRk','permissions','Deleting\x20the\x20cluster\x20','checkServiceAccount','iamClient','type','2917328hzlYry','error','IhzLA','name','split','autoUpgrade','setupServiceAccount','cMsmh','pXrgk','BCjao','serviceAccount','storage.objects.delete'];a3_0x2917=function(){return _0x413c6b;};return a3_0x2917();}class GoogleCloudProvider extends CloudProvider{constructor(_0x511cfe,_0x4ba33a,_0x3f1d7b,_0x312957){const _0x46dba5=a3_0x4e9fe9,_0x457495={};_0x457495[_0x46dba5(0x1f7)]=_0x46dba5(0x24d),_0x457495['EHUnr']=_0x46dba5(0x276),_0x457495['iSuWr']=_0x46dba5(0x2b6);const _0x168b98=_0x457495,_0x3eb5c3=_0x168b98[_0x46dba5(0x1f7)][_0x46dba5(0x207)]('|');let _0x14e8d9=0x0;while(!![]){switch(_0x3eb5c3[_0x14e8d9++]){case'0':this[_0x46dba5(0x24b)]=null;continue;case'1':this['customRoleName']=_0x168b98[_0x46dba5(0x2ff)];continue;case'2':this['iamClient']=null;continue;case'3':this['serviceAccountName']=_0x168b98[_0x46dba5(0x270)];continue;case'4':super(GCP,_0x511cfe,_0x4ba33a,_0x3f1d7b,_0x312957);continue;case'5':this[_0x46dba5(0x26f)]=null;continue;case'6':this['containerClient']=null;continue;case'7':this[_0x46dba5(0x31a)]=null;continue;case'8':this['networkClient']=null;continue;}break;}}async[a3_0x4e9fe9(0x263)](){const _0x1196bd=a3_0x4e9fe9;this[_0x1196bd(0x304)](this[_0x1196bd(0x2f1)]);}async[a3_0x4e9fe9(0x1eb)](){const _0x207bc5=a3_0x4e9fe9;await super[_0x207bc5(0x1eb)]();const _0x4343aa=this[_0x207bc5(0x31a)],_0x40d87={};_0x40d87[_0x207bc5(0x271)]=_0x4343aa,this[_0x207bc5(0x2d0)]=new container['v1'][(_0x207bc5(0x297))](_0x40d87);const _0x198d4e={};_0x198d4e[_0x207bc5(0x271)]=_0x4343aa,this[_0x207bc5(0x1ce)]=new compute['v1'][(_0x207bc5(0x299))](_0x198d4e);const _0x3ac1be={};return _0x3ac1be['keyFile']=_0x4343aa,this[_0x207bc5(0x26f)]=new ProjectsClient(_0x3ac1be),this[_0x207bc5(0x201)]=google[_0x207bc5(0x226)]('v1'),this;}async[a3_0x4e9fe9(0x29c)](_0x31cc8e,_0x129003){const _0x56e0b8=a3_0x4e9fe9,_0x1cb8f9={'WPZfC':function(_0x249e04,_0x4c8fbd){return _0x249e04(_0x4c8fbd);},'cMsmh':_0x56e0b8(0x369),'UgbVx':function(_0xd4023d){return _0xd4023d();},'KWwNg':_0x56e0b8(0x274)},_0x1b266c=await _0x1cb8f9[_0x56e0b8(0x248)](_0x31cc8e,_0x1cb8f9[_0x56e0b8(0x20a)]);let _0x3d7d05=await fs['readFileAsync'](_0x1b266c);_0x3d7d05=_0x3d7d05[_0x56e0b8(0x279)]();const _0xa2e357=_0x1cb8f9[_0x56e0b8(0x283)](getDirForConfig),_0x2bb695=path['join'](_0xa2e357,_0x1cb8f9[_0x56e0b8(0x346)]);fs[_0x56e0b8(0x238)](_0x2bb695,_0x3d7d05),this['credentialsPath']=_0x2bb695;const _0x4c74a0={};return _0x4c74a0[_0x56e0b8(0x271)]=_0x2bb695,_0x129003[_0x56e0b8(0x2d2)][GCP]=_0x4c74a0,_0x3d7d05=JSON['parse'](_0x3d7d05),this[_0x56e0b8(0x24b)]=_0x3d7d05[_0x56e0b8(0x307)],_0x129003;}async[a3_0x4e9fe9(0x331)](_0x27611c){const _0x45b043=a3_0x4e9fe9;this['credentialsPath']=_0x27611c[this[_0x45b043(0x36a)]]['keyFile'];let _0x147dc3=await fs['readFileAsync'](this[_0x45b043(0x31a)]);_0x147dc3=JSON[_0x45b043(0x2ec)](_0x147dc3),this['projectId']=_0x147dc3[_0x45b043(0x307)];}[a3_0x4e9fe9(0x2b5)](_0x311160){const _0x4e0b76=a3_0x4e9fe9;return _0x311160[_0x4e0b76(0x309)][_0x4e0b76(0x344)][_0x4e0b76(0x319)][0x0]['ip'];}async[a3_0x4e9fe9(0x301)](){const _0x92e8fc=a3_0x4e9fe9,_0x1b008e={};_0x1b008e[_0x92e8fc(0x34c)]=function(_0xd1ecf9,_0x9bdc9f){return _0xd1ecf9===_0x9bdc9f;},_0x1b008e[_0x92e8fc(0x35b)]=function(_0x3db39a,_0x1c7a8a){return _0x3db39a!==_0x1c7a8a;},_0x1b008e[_0x92e8fc(0x33c)]=_0x92e8fc(0x23d),_0x1b008e['tqWtN']=function(_0x538134,_0x4b762d){return _0x538134!==_0x4b762d;},_0x1b008e[_0x92e8fc(0x1fa)]=_0x92e8fc(0x303),_0x1b008e[_0x92e8fc(0x228)]=function(_0x5491bf,_0x7ad3f8){return _0x5491bf===_0x7ad3f8;},_0x1b008e[_0x92e8fc(0x244)]='browserstack',_0x1b008e[_0x92e8fc(0x1ec)]=_0x92e8fc(0x2a7);const _0x452292=_0x1b008e;try{if(_0x452292[_0x92e8fc(0x35b)](_0x452292[_0x92e8fc(0x33c)],_0x452292[_0x92e8fc(0x33c)]))for(const _0x32d20a of _0x39a22b[_0x92e8fc(0x2db)][_0x92e8fc(0x2a5)]){if(_0x452292[_0x92e8fc(0x34c)](_0x32d20a?.[_0x92e8fc(0x206)],_0x92e8fc(0x361)+this['projectId']+_0x92e8fc(0x343)+this[_0x92e8fc(0x305)]+'@'+this[_0x92e8fc(0x24b)]+_0x92e8fc(0x2a1)))return!![];}else{const _0x2e4453=await this['getClusterInfo']();if(_0x2e4453[0x0]?.[_0x92e8fc(0x2e0)]?.[_0x92e8fc(0x221)]){if(_0x452292[_0x92e8fc(0x2d1)](_0x452292['RrFST'],_0x452292[_0x92e8fc(0x1fa)]))return _0x452292[_0x92e8fc(0x35b)](_0x592065[_0x92e8fc(0x260)],_0x55a0b3[0x0])&&(_0x373bde[_0x92e8fc(0x260)]=_0x192a34[0x0],this[_0x92e8fc(0x312)]()),!![];else{const _0x48666a=_0x2e4453[0x0]?.['resourceLabels']?.[_0x92e8fc(0x221)];return _0x48666a&&_0x452292[_0x92e8fc(0x228)](_0x48666a[_0x92e8fc(0x25a)](),_0x452292[_0x92e8fc(0x244)]);}}}}catch(_0x2c6ba0){if(_0x452292[_0x92e8fc(0x34c)](_0x452292[_0x92e8fc(0x1ec)],_0x452292[_0x92e8fc(0x1ec)]))return![];else _0x3ecfba['push'](_0x2be94f);}return![];}async[a3_0x4e9fe9(0x22c)](){const _0x30b99b=a3_0x4e9fe9,_0x5d2374={'VKKde':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','HlXqU':function(_0x5cccea,_0x3ee1dc){return _0x5cccea===_0x3ee1dc;},'nVvZQ':function(_0x443fcb,_0x1f5578){return _0x443fcb===_0x1f5578;},'ICkAO':_0x30b99b(0x1e6),'IIiaX':'REGULAR','ltOjZ':function(_0x51c238,_0x6af926){return _0x51c238+_0x6af926;},'LYrCm':_0x30b99b(0x2a8),'CNkjd':_0x30b99b(0x32f),'vetHV':_0x30b99b(0x2de),'tnllH':_0x30b99b(0x22b),'lZKeh':function(_0x14b4e1,_0x183671){return _0x14b4e1!==_0x183671;},'NBzmV':_0x30b99b(0x31c),'PNrxk':_0x30b99b(0x2be),'TIzRB':function(_0x213a96,_0x56290a){return _0x213a96===_0x56290a;},'nMwot':_0x30b99b(0x1ea),'glhkR':_0x30b99b(0x2b7),'qVcMm':_0x30b99b(0x291),'fIyZO':'EmGoC','XDGTZ':function(_0xb251c4,_0x31b9b2){return _0xb251c4===_0x31b9b2;},'mohHc':_0x30b99b(0x30d),'cbGEN':_0x30b99b(0x333),'pNjdt':function(_0x2f6b6d,_0xfb32ad){return _0x2f6b6d===_0xfb32ad;},'eOrif':_0x30b99b(0x335),'mhdnj':_0x30b99b(0x1df),'xEuqP':function(_0x99cb50,_0x419a2f){return _0x99cb50!==_0x419a2f;},'yLPRv':function(_0x463f7e,_0x1c84a7){return _0x463f7e!==_0x1c84a7;},'IhzLA':_0x30b99b(0x24f),'ixihJ':function(_0x2d6ddd,_0x1e4c8c){return _0x2d6ddd>_0x1e4c8c;},'FJHpm':function(_0x76628b,_0x9ca61){return _0x76628b===_0x9ca61;},'LVyXT':_0x30b99b(0x2bf),'yDVQC':function(_0x104071,_0x577850){return _0x104071<_0x577850;},'XLqUk':function(_0x12f5cd,_0x36d849){return _0x12f5cd!==_0x36d849;},'jiujm':_0x30b99b(0x230),'BCjao':_0x30b99b(0x1fd),'ZdhDy':function(_0x3d3051,_0x3f9283){return _0x3d3051+_0x3f9283;},'xUDjV':function(_0x20748b,_0xc3a3f8){return _0x20748b(_0xc3a3f8);},'xmlVN':_0x30b99b(0x35d),'HPYxC':function(_0x1b2f8d,_0x21562f){return _0x1b2f8d(_0x21562f);},'ZhjVY':function(_0xb72f9f,_0x32fdc6){return _0xb72f9f<=_0x32fdc6;},'aOPpY':function(_0x4457e0,_0x42317d){return _0x4457e0>_0x42317d;},'OcfBp':'oIUKj','lpNPN':function(_0x3bf49e){return _0x3bf49e();},'fXLwf':function(_0x20082d,_0x496448){return _0x20082d-_0x496448;},'CiDdo':function(_0x109f5b,_0x17d20f){return _0x109f5b!==_0x17d20f;},'Xzhya':_0x30b99b(0x23a),'ZDHPe':function(_0x25ee1f,_0x49e39c){return _0x25ee1f-_0x49e39c;}};let _0x57756c=await fs[_0x30b99b(0x2d8)](path[_0x30b99b(0x311)](__dirname,'..',_0x5d2374[_0x30b99b(0x278)],_0x5d2374[_0x30b99b(0x25d)],_0x5d2374['vetHV']),_0x5d2374['tnllH']);_0x57756c=JSON['parse'](_0x57756c);let _0x3ca22a=[global_registry[_0x30b99b(0x260)]];_0x5d2374[_0x30b99b(0x218)](_0x57756c[global_registry[_0x30b99b(0x260)]],undefined)&&(_0x5d2374[_0x30b99b(0x218)](_0x5d2374[_0x30b99b(0x27e)],_0x5d2374[_0x30b99b(0x267)])?_0x3ca22a=_0x3ca22a['concat'](_0x57756c[global_registry[_0x30b99b(0x260)]]):_0x54c4c5[_0x30b99b(0x309)]=![]);const _0xb3ae5b=[];for await(const _0x578b0a of _0x3ca22a){if(_0x5d2374['TIzRB'](_0x5d2374['nMwot'],_0x5d2374['glhkR']))_0x177008[_0x30b99b(0x260)]=_0x351847[0x0],this['updateClusterRegion']();else{const _0x48338f={};_0x48338f[_0x30b99b(0x2cc)]=_0x30b99b(0x361)+this[_0x30b99b(0x24b)]+_0x30b99b(0x2cf)+_0x578b0a;const _0x228d03=_0x48338f,_0x3c95a2=await this[_0x30b99b(0x2d0)][_0x30b99b(0x27d)](_0x228d03);for(const _0x4f03b7 of _0x3c95a2[0x0][_0x30b99b(0x2a9)]){_0x5d2374[_0x30b99b(0x269)](_0x5d2374[_0x30b99b(0x21d)],_0x5d2374[_0x30b99b(0x23c)])?_0x2aa81c=_0x355758[_0x30b99b(0x328)](_0x15207e[_0xbd3f8d['clusterRegion']]):_0x5d2374[_0x30b99b(0x1da)](_0x4f03b7[_0x30b99b(0x206)],this[_0x30b99b(0x349)])&&(_0x5d2374[_0x30b99b(0x269)](_0x5d2374[_0x30b99b(0x243)],_0x5d2374['cbGEN'])?(_0x431a3f[_0x30b99b(0x204)](_0x5d2374[_0x30b99b(0x27c)]),_0x4cc9b9['exit'](0x1)):_0xb3ae5b[_0x30b99b(0x2c9)](_0x578b0a));}}}const _0x48589a=_0xb3ae5b[_0x30b99b(0x35e)];if(_0x5d2374[_0x30b99b(0x325)](_0x48589a,0x1)){if(_0x5d2374[_0x30b99b(0x218)](_0x5d2374['eOrif'],_0x5d2374['mhdnj']))return _0x5d2374[_0x30b99b(0x2ce)](global_registry[_0x30b99b(0x260)],_0xb3ae5b[0x0])&&(_0x5d2374[_0x30b99b(0x318)](_0x5d2374['IhzLA'],_0x5d2374[_0x30b99b(0x205)])?_0x5d2374[_0x30b99b(0x251)](_0x43a5a9['name'],this[_0x30b99b(0x349)])&&_0x1166ea[_0x30b99b(0x2c9)](_0x17cf42):(global_registry[_0x30b99b(0x260)]=_0xb3ae5b[0x0],this[_0x30b99b(0x312)]())),!![];else{const _0x27c946=_0x568bcc[0x0]?.['resourceLabels']?.[_0x30b99b(0x221)];return _0x27c946&&_0x5d2374[_0x30b99b(0x269)](_0x27c946[_0x30b99b(0x25a)](),_0x5d2374[_0x30b99b(0x314)]);}}else{if(_0x5d2374[_0x30b99b(0x256)](_0x48589a,0x1)){if(_0x5d2374[_0x30b99b(0x32e)](_0x5d2374['LVyXT'],_0x5d2374['LVyXT'])){console['log'](_0x30b99b(0x2f3)+this[_0x30b99b(0x349)]+'\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:');for(let _0x143a9f=0x0;_0x5d2374[_0x30b99b(0x340)](_0x143a9f,_0x48589a);_0x143a9f+=0x1){if(_0x5d2374['XLqUk'](_0x5d2374[_0x30b99b(0x257)],_0x5d2374[_0x30b99b(0x20c)]))console[_0x30b99b(0x2e2)]('['+_0x5d2374[_0x30b99b(0x2e6)](_0x143a9f,0x1)+']\x20'+_0xb3ae5b[_0x143a9f]);else{const _0x152dc5={};_0x152dc5[_0x30b99b(0x350)]=_0x5d2374[_0x30b99b(0x2ea)],_0x4dfb97[_0x30b99b(0x1ed)]=_0x152dc5;}}const _0x30c4bb=await _0x5d2374[_0x30b99b(0x35f)](inputConfirmation,_0x5d2374[_0x30b99b(0x268)]),_0x586ab0=_0x5d2374[_0x30b99b(0x320)](Number,_0x30c4bb);if(_0x5d2374[_0x30b99b(0x35f)](isNaN,_0x586ab0)||_0x5d2374[_0x30b99b(0x2cb)](_0x586ab0,0x0)||_0x5d2374[_0x30b99b(0x266)](_0x586ab0,_0x48589a)){if(_0x5d2374[_0x30b99b(0x269)](_0x5d2374[_0x30b99b(0x1e7)],_0x5d2374[_0x30b99b(0x1e7)]))console[_0x30b99b(0x204)](_0x5d2374[_0x30b99b(0x27c)]),process[_0x30b99b(0x1e4)](0x1);else return!![];}_0x5d2374[_0x30b99b(0x265)](closeInput),logger[_0x30b99b(0x1e1)](_0x30b99b(0x1db)+_0xb3ae5b[_0x5d2374[_0x30b99b(0x220)](_0x586ab0,0x1)]);if(_0x5d2374[_0x30b99b(0x218)](global_registry['clusterRegion'],_0xb3ae5b[_0x5d2374[_0x30b99b(0x220)](_0x586ab0,0x1)])){if(_0x5d2374['CiDdo'](_0x5d2374[_0x30b99b(0x28b)],_0x5d2374[_0x30b99b(0x28b)]))return!![];else global_registry[_0x30b99b(0x260)]=_0xb3ae5b[_0x5d2374['ZDHPe'](_0x586ab0,0x1)],this[_0x30b99b(0x312)]();}return!![];}else _0x484978[_0x30b99b(0x2e2)]('['+_0x5d2374[_0x30b99b(0x315)](_0x1ccf3d,0x1)+']\x20'+_0x4f7b8a[_0x241a22]);}}return![];}async[a3_0x4e9fe9(0x2d3)](){const _0x3b5f03=a3_0x4e9fe9,_0x4b5f9c=await this[_0x3b5f03(0x2d0)]['getCluster']({'name':_0x3b5f03(0x361)+this['projectId']+_0x3b5f03(0x2cf)+global_registry[_0x3b5f03(0x260)]+_0x3b5f03(0x32d)+this[_0x3b5f03(0x349)]});return _0x4b5f9c;}async[a3_0x4e9fe9(0x302)](){const _0xd61b71=a3_0x4e9fe9,_0x21ca73={};_0x21ca73[_0xd61b71(0x357)]=_0xd61b71(0x1e9),_0x21ca73[_0xd61b71(0x2ef)]=_0xd61b71(0x2a8),_0x21ca73[_0xd61b71(0x2ed)]='gcpresources',_0x21ca73[_0xd61b71(0x25b)]=_0xd61b71(0x28c);const _0x1fda38=_0x21ca73;cp[_0xd61b71(0x2ac)](_0x1fda38[_0xd61b71(0x357)]),cp[_0xd61b71(0x31b)](_0xd61b71(0x2b4)+this[_0xd61b71(0x31a)]);const _0x153624=await this[_0xd61b71(0x2d3)](),_0x1e7237='gke_'+this['projectId']+'_'+global_registry[_0xd61b71(0x260)]+'_'+this[_0xd61b71(0x349)];let _0x161f31=await fs['readFileAsync'](path['join'](__dirname,'..',_0x1fda38[_0xd61b71(0x2ef)],_0x1fda38[_0xd61b71(0x2ed)],_0x1fda38[_0xd61b71(0x25b)]));return _0x161f31=_0x161f31[_0xd61b71(0x279)](),_0x161f31=_0x161f31[_0xd61b71(0x224)](/<CLUSTER_NAME>/g,_0x1e7237),_0x161f31=_0x161f31['replace'](/<CLUSTER_URL>/g,_0xd61b71(0x365)+_0x153624[0x0]['endpoint']),_0x161f31=_0x161f31[_0xd61b71(0x224)](/<CERTIFICATE_DATA>/g,_0x153624[0x0][_0xd61b71(0x2f4)]['clusterCaCertificate']),_0x161f31;}async['checkServiceAccount'](){const _0x29a5d4=a3_0x4e9fe9,_0x5c5a72={};_0x5c5a72['lfLFE']=_0x29a5d4(0x1d1),_0x5c5a72[_0x29a5d4(0x247)]=_0x29a5d4(0x1e0),_0x5c5a72['qfmNx']=_0x29a5d4(0x2ae),_0x5c5a72[_0x29a5d4(0x231)]=_0x29a5d4(0x1fb),_0x5c5a72[_0x29a5d4(0x29a)]=function(_0x5b4bed,_0x32fc9a){return _0x5b4bed!==_0x32fc9a;},_0x5c5a72['CJcmv']='ElRXh',_0x5c5a72[_0x29a5d4(0x25e)]=function(_0x36afac,_0x1e7f70){return _0x36afac===_0x1e7f70;},_0x5c5a72[_0x29a5d4(0x1e5)]=_0x29a5d4(0x31d),_0x5c5a72[_0x29a5d4(0x232)]=function(_0x536a88,_0x5124f8){return _0x536a88===_0x5124f8;},_0x5c5a72[_0x29a5d4(0x1dd)]=_0x29a5d4(0x2a2);const _0x1bdb3c=_0x5c5a72,_0x163f45={};_0x163f45[_0x29a5d4(0x326)]=[_0x1bdb3c[_0x29a5d4(0x231)]],_0x163f45[_0x29a5d4(0x271)]=this[_0x29a5d4(0x31a)];const _0x5d87db=await google[_0x29a5d4(0x2b8)][_0x29a5d4(0x28a)](_0x163f45),_0x2021b5=await this[_0x29a5d4(0x201)][_0x29a5d4(0x33f)][_0x29a5d4(0x1dc)][_0x29a5d4(0x33d)]({'name':_0x29a5d4(0x361)+this[_0x29a5d4(0x24b)],'auth':_0x5d87db});if(_0x2021b5?.[_0x29a5d4(0x2db)]?.['accounts']){if(_0x1bdb3c['bvzlc'](_0x1bdb3c[_0x29a5d4(0x223)],_0x1bdb3c[_0x29a5d4(0x223)]))_0xf0cf91=_0x1bdb3c[_0x29a5d4(0x2fa)];else for(const _0x2a8aaf of _0x2021b5[_0x29a5d4(0x2db)]['accounts']){if(_0x1bdb3c[_0x29a5d4(0x25e)](_0x1bdb3c[_0x29a5d4(0x1e5)],_0x1bdb3c[_0x29a5d4(0x1e5)])){if(_0x1bdb3c[_0x29a5d4(0x232)](_0x2a8aaf?.[_0x29a5d4(0x206)],_0x29a5d4(0x361)+this[_0x29a5d4(0x24b)]+'/serviceAccounts/'+this['serviceAccountName']+'@'+this[_0x29a5d4(0x24b)]+'.iam.gserviceaccount.com')){if(_0x1bdb3c[_0x29a5d4(0x29a)](_0x1bdb3c['lIVFQ'],_0x1bdb3c[_0x29a5d4(0x1dd)]))_0x19c2e0[_0x29a5d4(0x21a)](_0x1fe109);else return!![];}}else{const _0x13f8ed=_0x1a4c4e[_0x29a5d4(0x1fe)]['includes'](_0x3355cb);_0x57c206+='\x0a\x09'+_0x3210ef+_0x29a5d4(0x2dd)+(_0x13f8ed?_0x1bdb3c['JJlws']:_0x1bdb3c[_0x29a5d4(0x2a6)]),!_0x13f8ed&&(_0x4d41bb[_0x29a5d4(0x309)]=![]);}}}return![];}async['setupServiceAccount'](){const _0x53e1f7=a3_0x4e9fe9,_0x49c176={};_0x49c176[_0x53e1f7(0x2b9)]=function(_0x4b91be,_0x5ef003){return _0x4b91be!==_0x5ef003;},_0x49c176[_0x53e1f7(0x2bb)]=_0x53e1f7(0x2fc),_0x49c176[_0x53e1f7(0x219)]=_0x53e1f7(0x289),_0x49c176['RXvWM']=_0x53e1f7(0x234),_0x49c176[_0x53e1f7(0x22f)]='Creating\x20service\x20account',_0x49c176[_0x53e1f7(0x358)]=_0x53e1f7(0x1fb),_0x49c176[_0x53e1f7(0x313)]='iam.serviceAccounts.signBlob',_0x49c176['wJJJH']=_0x53e1f7(0x359),_0x49c176[_0x53e1f7(0x236)]=_0x53e1f7(0x2c6),_0x49c176['IoDHR']='storage.buckets.delete',_0x49c176['xyKYE']='storage.buckets.deleteTagBinding',_0x49c176['FvosQ']='storage.buckets.get',_0x49c176[_0x53e1f7(0x2e1)]=_0x53e1f7(0x366),_0x49c176[_0x53e1f7(0x26a)]='storage.buckets.getObjectInsights',_0x49c176['jHOqZ']=_0x53e1f7(0x287),_0x49c176[_0x53e1f7(0x1e8)]='storage.buckets.listEffectiveTags',_0x49c176[_0x53e1f7(0x246)]='storage.buckets.listTagBindings',_0x49c176[_0x53e1f7(0x281)]='storage.buckets.setIamPolicy',_0x49c176[_0x53e1f7(0x2c4)]=_0x53e1f7(0x262),_0x49c176[_0x53e1f7(0x2ee)]=_0x53e1f7(0x334),_0x49c176[_0x53e1f7(0x255)]='storage.multipartUploads.create',_0x49c176[_0x53e1f7(0x26e)]='storage.multipartUploads.list',_0x49c176['vDLiz']=_0x53e1f7(0x347),_0x49c176[_0x53e1f7(0x1ee)]=_0x53e1f7(0x280),_0x49c176[_0x53e1f7(0x2d4)]=_0x53e1f7(0x20e),_0x49c176[_0x53e1f7(0x217)]=_0x53e1f7(0x2e4),_0x49c176[_0x53e1f7(0x227)]='storage.objects.getIamPolicy',_0x49c176[_0x53e1f7(0x33b)]=_0x53e1f7(0x324),_0x49c176['KrTQm']=_0x53e1f7(0x31f),_0x49c176[_0x53e1f7(0x36b)]=_0x53e1f7(0x337),_0x49c176[_0x53e1f7(0x28e)]=_0x53e1f7(0x332),_0x49c176[_0x53e1f7(0x29d)]=_0x53e1f7(0x336);const _0x41afc1=_0x49c176,_0x270f8e=await this[_0x53e1f7(0x200)]();if(_0x270f8e){if(_0x41afc1[_0x53e1f7(0x2b9)](_0x41afc1['SQMxz'],_0x41afc1['YLLRH'])){logger[_0x53e1f7(0x1e1)](_0x41afc1[_0x53e1f7(0x352)]);return;}else return _0x2736a1[_0x53e1f7(0x309)][_0x53e1f7(0x344)][_0x53e1f7(0x319)][0x0]['ip'];}logger['info'](_0x41afc1[_0x53e1f7(0x22f)]);const _0x223ace={};_0x223ace[_0x53e1f7(0x326)]=[_0x41afc1[_0x53e1f7(0x358)]],_0x223ace[_0x53e1f7(0x271)]=this[_0x53e1f7(0x31a)];const _0x15d32c=await google[_0x53e1f7(0x2b8)][_0x53e1f7(0x28a)](_0x223ace),_0x251b48={};_0x251b48['includedPermissions']=[_0x41afc1[_0x53e1f7(0x313)],_0x41afc1[_0x53e1f7(0x1f8)],_0x41afc1[_0x53e1f7(0x236)],_0x41afc1[_0x53e1f7(0x20f)],_0x41afc1[_0x53e1f7(0x245)],_0x41afc1[_0x53e1f7(0x339)],_0x41afc1['pceOQ'],_0x41afc1[_0x53e1f7(0x26a)],_0x41afc1[_0x53e1f7(0x2b1)],_0x41afc1[_0x53e1f7(0x1e8)],_0x41afc1[_0x53e1f7(0x246)],_0x41afc1[_0x53e1f7(0x281)],_0x41afc1[_0x53e1f7(0x2c4)],_0x41afc1[_0x53e1f7(0x2ee)],_0x41afc1[_0x53e1f7(0x255)],_0x41afc1[_0x53e1f7(0x26e)],_0x41afc1[_0x53e1f7(0x275)],_0x41afc1[_0x53e1f7(0x1ee)],_0x41afc1[_0x53e1f7(0x2d4)],_0x41afc1['Frual'],_0x41afc1[_0x53e1f7(0x227)],_0x41afc1[_0x53e1f7(0x33b)],_0x41afc1[_0x53e1f7(0x252)],_0x41afc1[_0x53e1f7(0x36b)]],_0x251b48['title']=_0x41afc1[_0x53e1f7(0x28e)],await this['iamClient']['organizations'][_0x53e1f7(0x29b)]['create']({'parent':'projects/'+this[_0x53e1f7(0x24b)],'requestBody':{'role':_0x251b48,'roleId':this[_0x53e1f7(0x362)]},'auth':_0x15d32c});const _0x27e9a3={};_0x27e9a3[_0x53e1f7(0x206)]=_0x53e1f7(0x361)+this[_0x53e1f7(0x24b)],_0x27e9a3[_0x53e1f7(0x338)]={},_0x27e9a3[_0x53e1f7(0x2b8)]=_0x15d32c,_0x27e9a3[_0x53e1f7(0x338)][_0x53e1f7(0x28d)]=this[_0x53e1f7(0x305)];const _0x17f879=_0x27e9a3;await this[_0x53e1f7(0x201)][_0x53e1f7(0x33f)][_0x53e1f7(0x1dc)][_0x53e1f7(0x23b)](_0x17f879);let _0x442508=await this[_0x53e1f7(0x26f)]['getIamPolicy']({'resource':'projects/'+this['projectId']});_0x442508=_0x442508[0x0]['bindings'];const _0x5eedb6={};_0x5eedb6[_0x53e1f7(0x2e9)]='projects/'+this[_0x53e1f7(0x24b)]+_0x53e1f7(0x30a)+this[_0x53e1f7(0x362)],_0x5eedb6[_0x53e1f7(0x317)]=[_0x53e1f7(0x216)+this[_0x53e1f7(0x305)]+'@'+this[_0x53e1f7(0x24b)]+_0x53e1f7(0x2a1)],_0x442508['push'](_0x5eedb6);const _0xe847d8={};_0xe847d8['bindings']=_0x442508,await this[_0x53e1f7(0x26f)][_0x53e1f7(0x264)]({'resource':_0x53e1f7(0x361)+this['projectId'],'policy':_0xe847d8}),logger['info'](_0x41afc1['kRbNC']);}async['setupNewCluster'](_0x4fdeef=a3_0x4e9fe9(0x1d1),_0x4dd5f6=['default']){const _0x44176c=a3_0x4e9fe9,_0x41f6e9={};_0x41f6e9[_0x44176c(0x2a4)]='Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x41f6e9['FNgfM']=_0x44176c(0x34a),_0x41f6e9[_0x44176c(0x2c3)]=function(_0x3dbdab,_0x31be84){return _0x3dbdab!==_0x31be84;},_0x41f6e9[_0x44176c(0x32c)]='FyvET',_0x41f6e9['FNCPJ']=_0x44176c(0x282),_0x41f6e9[_0x44176c(0x210)]=_0x44176c(0x1d1),_0x41f6e9['blpHg']=function(_0x4bbeb6,_0x2e43e2){return _0x4bbeb6===_0x2e43e2;},_0x41f6e9['CQKJb']=function(_0x3bf42a,_0x2dcd62){return _0x3bf42a===_0x2dcd62;},_0x41f6e9[_0x44176c(0x2c1)]=_0x44176c(0x1d3),_0x41f6e9[_0x44176c(0x1cd)]=_0x44176c(0x354);const _0x30630a=_0x41f6e9,_0xf90dfa={};_0xf90dfa['type']=WS_EVENTS[_0x44176c(0x1f9)],_0xf90dfa[_0x44176c(0x35c)]=_0x30630a[_0x44176c(0x2a4)],this[_0x44176c(0x249)][_0x44176c(0x2f8)](this[_0x44176c(0x2f1)],_0xf90dfa),logger[_0x44176c(0x1e1)](_0x30630a[_0x44176c(0x2d9)]);if(!_0x4fdeef){if(_0x30630a['rrURh'](_0x30630a['YRFpC'],_0x30630a[_0x44176c(0x2c2)]))_0x4fdeef=_0x30630a['aLBlj'];else return!![];}return(!_0x4dd5f6||_0x30630a[_0x44176c(0x321)](_0x4dd5f6[_0x44176c(0x35e)],0x0))&&(_0x30630a['CQKJb'](_0x30630a[_0x44176c(0x2c1)],_0x30630a['oarkr'])?_0x52872b[_0x44176c(0x21e)](_0x498f12):_0x4dd5f6=[_0x30630a['aLBlj']]),await this[_0x44176c(0x209)](),await this['createCluster'](_0x4fdeef,_0x4dd5f6),await this[_0x44176c(0x330)](),[_0x4fdeef,_0x4dd5f6];}async[a3_0x4e9fe9(0x277)](_0x5f1568=a3_0x4e9fe9(0x1d1),_0x1bea82=[a3_0x4e9fe9(0x1d1)]){const _0x3ad103=a3_0x4e9fe9,_0x1d3c59={};_0x1d3c59[_0x3ad103(0x272)]=function(_0x18c81a,_0x2760cf){return _0x18c81a===_0x2760cf;},_0x1d3c59[_0x3ad103(0x27f)]='default',_0x1d3c59[_0x3ad103(0x28f)]=_0x3ad103(0x36d),_0x1d3c59['aWAaJ']=_0x3ad103(0x351),_0x1d3c59[_0x3ad103(0x214)]=_0x3ad103(0x2a3),_0x1d3c59[_0x3ad103(0x284)]=_0x3ad103(0x2a8),_0x1d3c59['kgjfG']=_0x3ad103(0x32f),_0x1d3c59['TxHsz']=_0x3ad103(0x32a),_0x1d3c59[_0x3ad103(0x1e3)]=_0x3ad103(0x22b),_0x1d3c59[_0x3ad103(0x21c)]=_0x3ad103(0x2de),_0x1d3c59[_0x3ad103(0x2c0)]=_0x3ad103(0x329),_0x1d3c59['FMkgI']=_0x3ad103(0x2e3),_0x1d3c59['YctSE']=_0x3ad103(0x363),_0x1d3c59['RTDOB']=function(_0x325bcc,_0x309fb9){return _0x325bcc*_0x309fb9;},_0x1d3c59[_0x3ad103(0x1f4)]=function(_0x15224c,_0x497089){return _0x15224c*_0x497089;},_0x1d3c59['qWMzq']=_0x3ad103(0x360),_0x1d3c59[_0x3ad103(0x211)]=function(_0x144fe8,_0x563041){return _0x144fe8===_0x563041;},_0x1d3c59[_0x3ad103(0x2ba)]=_0x3ad103(0x26b),_0x1d3c59[_0x3ad103(0x1d2)]=_0x3ad103(0x316),_0x1d3c59[_0x3ad103(0x30e)]=_0x3ad103(0x288),_0x1d3c59['TpYsQ']=_0x3ad103(0x2af),_0x1d3c59['IqbRi']=_0x3ad103(0x364),_0x1d3c59[_0x3ad103(0x293)]='Cluster\x20creation\x20failed';const _0x2035c4=_0x1d3c59;try{if(_0x2035c4[_0x3ad103(0x272)](_0x2035c4[_0x3ad103(0x28f)],_0x2035c4[_0x3ad103(0x26d)]))return![];else{logger[_0x3ad103(0x1e1)](_0x2035c4[_0x3ad103(0x214)]);let _0xcea4a1=await fs[_0x3ad103(0x2d8)](path[_0x3ad103(0x311)](__dirname,'..',_0x2035c4['PtIzx'],_0x2035c4[_0x3ad103(0x34f)],_0x2035c4[_0x3ad103(0x2eb)]),_0x2035c4[_0x3ad103(0x1e3)]);_0xcea4a1=JSON[_0x3ad103(0x2ec)](_0xcea4a1);let _0x17b6ed=await fs[_0x3ad103(0x2d8)](path[_0x3ad103(0x311)](__dirname,'..',_0x2035c4[_0x3ad103(0x284)],_0x2035c4[_0x3ad103(0x34f)],_0x2035c4[_0x3ad103(0x21c)]),_0x2035c4['yWaHo']);_0x17b6ed=JSON[_0x3ad103(0x2ec)](_0x17b6ed);const _0x58f181=global_registry[_0x3ad103(0x22e)];_0xcea4a1[_0x3ad103(0x206)]=this[_0x3ad103(0x349)],_0xcea4a1['nodePools'][0x0]['config'][_0x3ad103(0x2b0)]=global_registry[_0x3ad103(0x33a)],_0xcea4a1['nodePools'][0x1][_0x3ad103(0x229)][_0x3ad103(0x2b0)]=global_registry[_0x3ad103(0x33a)],_0xcea4a1['nodePools'][0x0]['config']['serviceAccount']=this['serviceAccountName']+'@'+this['projectId']+'.iam.gserviceaccount.com',_0xcea4a1[_0x3ad103(0x22a)][0x1][_0x3ad103(0x229)][_0x3ad103(0x20d)]=this[_0x3ad103(0x305)]+'@'+this[_0x3ad103(0x24b)]+_0x3ad103(0x2a1),_0xcea4a1['nodePools'][0x0]['autoscaling'][_0x3ad103(0x21b)]=global_registry[_0x3ad103(0x29f)],_0xcea4a1[_0x3ad103(0x22a)][0x1]['autoscaling']['minNodeCount']=0x0,_0xcea4a1[_0x3ad103(0x22a)][0x0]['management'][_0x3ad103(0x208)]=_0x58f181,_0xcea4a1['nodePools'][0x1][_0x3ad103(0x1f6)][_0x3ad103(0x208)]=_0x58f181,_0xcea4a1[_0x3ad103(0x22a)][0x0]['autoscaling'][_0x3ad103(0x1d7)]=global_registry[_0x3ad103(0x323)],_0xcea4a1[_0x3ad103(0x22a)][0x1]['autoscaling'][_0x3ad103(0x1d7)]=global_registry['maxNodes'],_0xcea4a1['location']=global_registry[_0x3ad103(0x260)],_0xcea4a1[_0x3ad103(0x1fc)]=[_0x17b6ed[global_registry['clusterRegion']][0x0]],_0xcea4a1[_0x3ad103(0x2b2)]=_0x3ad103(0x361)+this['projectId']+_0x3ad103(0x2f6)+_0x5f1568,_0xcea4a1[_0x3ad103(0x298)]=_0x3ad103(0x361)+this[_0x3ad103(0x24b)]+'/regions/'+global_registry[_0x3ad103(0x260)]+'/subnetworks/'+_0x1bea82[0x0];if(_0x58f181){if(_0x2035c4[_0x3ad103(0x272)](_0x2035c4[_0x3ad103(0x2c0)],_0x2035c4['FMkgI']))return![];else{const _0x10b12e={};_0x10b12e[_0x3ad103(0x350)]=_0x2035c4[_0x3ad103(0x29e)],_0xcea4a1['releaseChannel']=_0x10b12e;}}const _0x5ba2e7=await this[_0x3ad103(0x2d0)][_0x3ad103(0x277)]({'cluster':_0xcea4a1,'parent':_0x3ad103(0x361)+this[_0x3ad103(0x24b)]+_0x3ad103(0x2cf)+global_registry[_0x3ad103(0x260)]});await this[_0x3ad103(0x249)]['delay'](_0x2035c4[_0x3ad103(0x2f2)](_0x2035c4[_0x3ad103(0x1f4)](0x7,0x3c),0x3e8));}}catch(_0xe7c81c){if(_0x2035c4[_0x3ad103(0x272)](_0x2035c4[_0x3ad103(0x355)],_0x2035c4[_0x3ad103(0x355)])){const _0x382d2c=await this['isClusterPresent']();if(_0x382d2c){if(_0x2035c4[_0x3ad103(0x211)](_0x2035c4[_0x3ad103(0x2ba)],_0x2035c4[_0x3ad103(0x1d2)])){if(_0x2035c4[_0x3ad103(0x272)](_0x32de5a?.[_0x3ad103(0x206)],'projects/'+this[_0x3ad103(0x24b)]+_0x3ad103(0x343)+this[_0x3ad103(0x305)]+'@'+this['projectId']+'.iam.gserviceaccount.com'))return!![];}else logger[_0x3ad103(0x1e1)](_0x2035c4['dVuCX'],_0xe7c81c[_0x3ad103(0x2fb)]),await this[_0x3ad103(0x356)]();}else _0x2035c4[_0x3ad103(0x211)](_0x2035c4[_0x3ad103(0x2c7)],_0x2035c4['IqbRi'])?_0x1d962e=[_0x2035c4[_0x3ad103(0x27f)]]:logger['info'](_0x2035c4[_0x3ad103(0x293)]);throw _0xe7c81c;}else{const _0x1a2e50=_0x3ad103(0x1f5)+this[_0x3ad103(0x24b)]+_0x3ad103(0x24c)+_0x149d4f['clusterRegion']+_0x3ad103(0x24e)+_0x5746a8[0x0];if(_0x2035c4['zrGvf'](_0x1a2e50,_0x59c736))return[!![],_0x575155];}}}async[a3_0x4e9fe9(0x31e)](_0x3f6f2f,_0x3cfd5f,_0x32e363,_0x23cf60,_0x36f343){}async[a3_0x4e9fe9(0x330)](){const _0x3f8073=a3_0x4e9fe9;cp[_0x3f8073(0x2ac)](_0x3f8073(0x1f0)+this[_0x3f8073(0x349)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+global_registry['clusterRegion']+_0x3f8073(0x254));}async['deleteCluster'](_0x5e70d7,_0x4d226e){const _0x4afc33=a3_0x4e9fe9,_0x314e89={'NAMBA':_0x4afc33(0x234),'OQCeA':function(_0x33788b,_0x2e5ac1){return _0x33788b!==_0x2e5ac1;},'iFfCr':_0x4afc33(0x2aa),'hckVu':_0x4afc33(0x253),'QGBpn':function(_0x24f905,_0x3442c4){return _0x24f905(_0x3442c4);},'Bcoju':function(_0x3486ce,_0x1f8d11){return _0x3486ce(_0x1f8d11);},'JadCc':function(_0x41bcd1,_0x13caaa){return _0x41bcd1===_0x13caaa;},'bjdYU':_0x4afc33(0x2bd),'qTbhY':_0x4afc33(0x1d9),'TdMpy':function(_0x373558,_0x4fa448){return _0x373558!==_0x4fa448;},'XWQYL':'gMfcJ','AeXWv':'Cluster\x20deletion\x20completed','cnHQG':function(_0x1c8d68,_0x519fc6){return _0x1c8d68===_0x519fc6;},'uodDC':_0x4afc33(0x35a),'HshiI':_0x4afc33(0x348),'LPTnZ':_0x4afc33(0x2e7)};try{if(_0x314e89[_0x4afc33(0x213)](_0x314e89['iFfCr'],_0x314e89[_0x4afc33(0x27a)])){await _0x314e89['QGBpn'](deleteAgent,_0x5e70d7),await _0x314e89[_0x4afc33(0x1d5)](deleteRoutingDeps,_0x5e70d7),logger[_0x4afc33(0x1e1)](_0x4afc33(0x1ff)+this[_0x4afc33(0x349)]);const _0xac07a0=await this['containerClient']['deleteCluster']({'name':_0x4afc33(0x361)+this[_0x4afc33(0x24b)]+'/locations/'+global_registry[_0x4afc33(0x260)]+_0x4afc33(0x32d)+this[_0x4afc33(0x349)]});if(_0x314e89['JadCc'](_0xac07a0[0x0]?.[_0x4afc33(0x309)],_0x314e89['bjdYU'])||_0x314e89['JadCc'](_0xac07a0[0x0]?.[_0x4afc33(0x309)],_0x314e89[_0x4afc33(0x2cd)])){if(_0x314e89[_0x4afc33(0x233)](_0x314e89[_0x4afc33(0x341)],_0x314e89[_0x4afc33(0x341)]))_0x3009fe[_0x4afc33(0x1d6)][_0x4afc33(0x2c9)](_0x56fcab);else return!![];}logger[_0x4afc33(0x1e1)](_0x314e89['AeXWv']);}else this['sendGCPInfoToHST'](this['rws']);}catch(_0x3c3b67){if(_0x314e89[_0x4afc33(0x27b)](_0x314e89[_0x4afc33(0x1f1)],_0x314e89[_0x4afc33(0x1d0)])){_0x5ed8c0[_0x4afc33(0x1e1)](_0x314e89[_0x4afc33(0x30f)]);return;}else{logger[_0x4afc33(0x1e1)](_0x314e89[_0x4afc33(0x286)]);throw _0x3c3b67;}}}async[a3_0x4e9fe9(0x2d6)](_0x31a6a1){const _0x1a05a0=a3_0x4e9fe9,_0x24f5ca={};_0x24f5ca['YlKAx']=function(_0x2aa67b,_0x52a4bd){return _0x2aa67b===_0x52a4bd;},_0x24f5ca['TGcsX']=_0x1a05a0(0x2da),_0x24f5ca[_0x1a05a0(0x295)]=function(_0x4a9b4e,_0xe34fcb){return _0x4a9b4e>_0xe34fcb;},_0x24f5ca[_0x1a05a0(0x353)]=function(_0x2a1d0b,_0x2cc4ff){return _0x2a1d0b!==_0x2cc4ff;},_0x24f5ca['sOBLe']=_0x1a05a0(0x30b),_0x24f5ca['IgjAg']='MWcuI';const _0x4b840e=_0x24f5ca;try{if(_0x4b840e[_0x1a05a0(0x25c)](_0x4b840e[_0x1a05a0(0x1f3)],_0x4b840e['TGcsX'])){const _0x3f271f=await this['networkClient'][_0x1a05a0(0x2fd)]({'project':this[_0x1a05a0(0x24b)],'network':_0x31a6a1});if(_0x4b840e[_0x1a05a0(0x295)](_0x3f271f[_0x1a05a0(0x35e)],0x0)&&_0x4b840e[_0x1a05a0(0x25c)](_0x3f271f[0x0][_0x1a05a0(0x206)],_0x31a6a1)){if(_0x4b840e[_0x1a05a0(0x353)](_0x4b840e['sOBLe'],_0x4b840e[_0x1a05a0(0x292)]))_0x32d655[_0x1a05a0(0x204)]('error\x20:\x20'+_0x2b4f30+_0x1a05a0(0x2dd)+_0x315be0['stack']),_0x28590f[_0x1a05a0(0x2db)]=_0x1a05a0(0x242)+_0x3fb221,_0x696940[_0x1a05a0(0x204)]=_0x46127c;else return!![];}}else return[!![],_0xfcfe14];}catch(_0x38b9c1){if(_0x4b840e[_0x1a05a0(0x25c)](_0x4b840e[_0x1a05a0(0x34b)],_0x4b840e['IgjAg']))return![];else _0x15f406[_0x1a05a0(0x204)]=_0x1a2394;}return![];}async[a3_0x4e9fe9(0x2df)](_0x1b35bb,_0x5b6cc){const _0x26331c=a3_0x4e9fe9,_0x195358={};_0x195358['UalgQ']=_0x26331c(0x2e7),_0x195358['HBQbg']=function(_0xb47ee,_0x5b174e){return _0xb47ee-_0x5b174e;},_0x195358[_0x26331c(0x2f0)]=_0x26331c(0x308),_0x195358['qpwkJ']=function(_0x5b26e2,_0x45599f){return _0x5b26e2!==_0x45599f;},_0x195358[_0x26331c(0x2c8)]=_0x26331c(0x285),_0x195358['WVsnb']=_0x26331c(0x25f),_0x195358[_0x26331c(0x33e)]=function(_0x27f0b6,_0x5f20bb){return _0x27f0b6===_0x5f20bb;},_0x195358[_0x26331c(0x225)]=function(_0x54dcf1,_0x124df3){return _0x54dcf1!==_0x124df3;},_0x195358[_0x26331c(0x2c5)]='nqiaj',_0x195358[_0x26331c(0x240)]=function(_0x2d2158,_0x53e026){return _0x2d2158!==_0x53e026;},_0x195358[_0x26331c(0x241)]=_0x26331c(0x273);const _0x3d7efa=_0x195358;try{if(_0x3d7efa['qpwkJ'](_0x3d7efa[_0x26331c(0x2c8)],_0x3d7efa['qdGYq'])){_0x4fc1c7[_0x26331c(0x1e1)](_0x3d7efa['UalgQ']);throw _0x17e9c0;}else{const _0x1e0041=await this[_0x26331c(0x1ce)][_0x26331c(0x2fd)]({'project':this[_0x26331c(0x24b)],'network':_0x5b6cc});for(const _0x4236e1 of _0x1e0041[0x0][_0x26331c(0x1cc)]){if(_0x3d7efa[_0x26331c(0x24a)](_0x3d7efa[_0x26331c(0x235)],_0x3d7efa['WVsnb']))_0x29289f[_0x26331c(0x2ac)](_0x26331c(0x1f0)+this['clusterName']+_0x26331c(0x23f)+_0x4c07b1[_0x26331c(0x260)]+'\x20--quiet\x20--user-output-enabled=false');else{const _0x326f37=_0x26331c(0x1f5)+this[_0x26331c(0x24b)]+_0x26331c(0x24c)+global_registry[_0x26331c(0x260)]+_0x26331c(0x24e)+_0x1b35bb[0x0];if(_0x3d7efa[_0x26331c(0x33e)](_0x326f37,_0x4236e1)){if(_0x3d7efa[_0x26331c(0x225)](_0x3d7efa['CIDZk'],_0x3d7efa[_0x26331c(0x2c5)]))_0x530487[_0x26331c(0x260)]=_0x4361d5[_0x3d7efa[_0x26331c(0x1ef)](_0x519eaf,0x1)],this['updateClusterRegion']();else return[!![],_0x1b35bb];}}}}}catch(_0x4afc1c){if(_0x3d7efa[_0x26331c(0x240)](_0x3d7efa[_0x26331c(0x241)],_0x3d7efa[_0x26331c(0x241)]))_0x377cc4['info'](_0x3d7efa[_0x26331c(0x2f0)]);else return logger[_0x26331c(0x204)](_0x26331c(0x1de)+_0x1b35bb+_0x26331c(0x2e5)+_0x4afc1c),[![],[]];}return[![],[]];}async[a3_0x4e9fe9(0x304)](){const _0x3769c1=a3_0x4e9fe9,_0x42c069={};_0x42c069[_0x3769c1(0x212)]=function(_0x22d498,_0x3b1d13){return _0x22d498===_0x3b1d13;},_0x42c069[_0x3769c1(0x1d8)]=_0x3769c1(0x20b);const _0x530be7=_0x42c069,_0x2c550e=await this[_0x3769c1(0x1ce)][_0x3769c1(0x33d)]({'project':this[_0x3769c1(0x24b)]}),_0x302926={};_0x302926['username']=global_registry[_0x3769c1(0x2a0)],_0x302926[_0x3769c1(0x36c)]=global_registry[_0x3769c1(0x34d)],_0x302926[_0x3769c1(0x2d2)]=GCP,_0x302926[_0x3769c1(0x1d6)]=[];const _0x3e9fe6=_0x302926;for(const _0x10055e of _0x2c550e){if(_0x530be7['FBNyo'](_0x530be7[_0x3769c1(0x1d8)],_0x530be7[_0x3769c1(0x1d8)]))_0x3e9fe6[_0x3769c1(0x1d6)][_0x3769c1(0x2c9)](_0x10055e);else return _0x5d81d5[_0x3769c1(0x204)]('Cannot\x20find\x20subnets\x20'+_0x4bae76+_0x3769c1(0x2e5)+_0x1706d1),[![],[]];}const _0x48c944={};_0x48c944[_0x3769c1(0x202)]=WS_EVENTS['RESOURCES'],_0x48c944['message']=_0x3e9fe6,this[_0x3769c1(0x249)][_0x3769c1(0x2f8)](this[_0x3769c1(0x2f1)],_0x48c944);}async[a3_0x4e9fe9(0x312)](){const _0x39706e=a3_0x4e9fe9,_0x1809c8={'IwJEU':function(_0x3b5a09,_0x5bc83f,_0x489285){return _0x3b5a09(_0x5bc83f,_0x489285);},'nLBej':_0x39706e(0x300),'NfnZn':_0x39706e(0x250)},_0x208082=_0x39706e(0x365)+AG_API_URL+'/packages/cli/update-cluster-region',_0x2da588={};_0x2da588[_0x39706e(0x261)]=global_registry[_0x39706e(0x259)];const _0x285d74={};_0x285d74['newRegion']=global_registry[_0x39706e(0x260)];const _0x1ea8d5={'searchParams':_0x2da588,'json':_0x285d74,'headers':_0x1809c8[_0x39706e(0x32b)](getAuthHeader,global_registry[_0x39706e(0x2a0)],global_registry[_0x39706e(0x34d)]),'method':_0x1809c8[_0x39706e(0x258)],'responseType':_0x1809c8[_0x39706e(0x1d4)],'throwHttpErrors':![]},_0x3becfe=await _0x1809c8['IwJEU'](got,_0x208082,_0x1ea8d5);}async[a3_0x4e9fe9(0x368)](){const _0x441b35=a3_0x4e9fe9,_0x3238ff={'bCjNC':function(_0x4604fa,_0x54344b){return _0x4604fa(_0x54344b);},'XCkDK':_0x441b35(0x26c),'OUQAv':_0x441b35(0x237),'PDQaa':'cli\x20tool\x20is\x20installed'},_0x3d5182={};_0x3d5182['status']=![],_0x3d5182['error']=null,_0x3d5182[_0x441b35(0x2db)]='';const _0x3c98fa=_0x3d5182;try{const _0x199466=await _0x3238ff[_0x441b35(0x367)](runCommand,_0x3238ff[_0x441b35(0x22d)]);_0x199466['startsWith'](_0x3238ff[_0x441b35(0x21f)])?logger[_0x441b35(0x21a)](_0x199466):logger['debug'](_0x199466),_0x3c98fa[_0x441b35(0x309)]=!![],_0x3c98fa['data']=_0x3238ff[_0x441b35(0x327)];}catch(_0x391635){logger[_0x441b35(0x204)]('error\x20:\x20'+_0x391635+_0x441b35(0x2dd)+_0x391635[_0x441b35(0x2fb)]),_0x3c98fa[_0x441b35(0x2db)]=_0x441b35(0x242)+_0x391635,_0x3c98fa[_0x441b35(0x204)]=_0x391635;}return _0x3c98fa;}async[a3_0x4e9fe9(0x2e8)](){const _0x392a91=a3_0x4e9fe9,_0x1ca5d6={};_0x1ca5d6[_0x392a91(0x2bc)]=_0x392a91(0x1e0),_0x1ca5d6['mwykv']='denied';const _0x39f651=_0x1ca5d6,_0x573b01={};_0x573b01[_0x392a91(0x309)]=![],_0x573b01['error']=null,_0x573b01[_0x392a91(0x2db)]='';const _0x1df81f=_0x573b01;try{let _0x29486a='';const _0x50f54e='projects/'+this['projectId'],[_0xb7f288]=await this[_0x392a91(0x26f)]['testIamPermissions']({'resource':_0x50f54e,'permissions':Object[_0x392a91(0x2ad)](PERMISSIONS)});_0x1df81f[_0x392a91(0x309)]=!![],logger[_0x392a91(0x21e)](_0x392a91(0x2d7)+_0x50f54e+':\x20'+JSON[_0x392a91(0x290)](_0xb7f288)),Object[_0x392a91(0x2f7)](PERMISSIONS)['forEach'](([_0x607c4d,_0x572e5f])=>{const _0x365368=_0x392a91,_0x19483b=_0xb7f288[_0x365368(0x1fe)][_0x365368(0x2f5)](_0x607c4d);_0x29486a+='\x0a\x09'+_0x572e5f+'\x20:\x20'+(_0x19483b?_0x39f651[_0x365368(0x2bc)]:_0x39f651[_0x365368(0x2ab)]),!_0x19483b&&(_0x1df81f['status']=![]);}),_0x1df81f[_0x392a91(0x2db)]=_0x29486a;}catch(_0x28ab93){_0x1df81f['error']=_0x28ab93;}return _0x1df81f;}}const a3_0x3f58ed={};a3_0x3f58ed[a3_0x4e9fe9(0x310)]=GoogleCloudProvider,module[a3_0x4e9fe9(0x296)]=a3_0x3f58ed;
|
|
1
|
+
const a3_0xb069c4=a3_0x86c1;function a3_0x86c1(_0x145862,_0x5eb45f){const _0x207dbe=a3_0x207d();return a3_0x86c1=function(_0x86c177,_0x476127){_0x86c177=_0x86c177-0x1e4;let _0x44a04f=_0x207dbe[_0x86c177];return _0x44a04f;},a3_0x86c1(_0x145862,_0x5eb45f);}(function(_0x5a35b8,_0x1f308e){const _0x173d36=a3_0x86c1,_0x48adb3=_0x5a35b8();while(!![]){try{const _0x11f49b=parseInt(_0x173d36(0x302))/0x1*(-parseInt(_0x173d36(0x258))/0x2)+-parseInt(_0x173d36(0x327))/0x3+-parseInt(_0x173d36(0x1eb))/0x4*(-parseInt(_0x173d36(0x275))/0x5)+-parseInt(_0x173d36(0x257))/0x6*(parseInt(_0x173d36(0x1f5))/0x7)+-parseInt(_0x173d36(0x32a))/0x8+parseInt(_0x173d36(0x2db))/0x9+parseInt(_0x173d36(0x30e))/0xa;if(_0x11f49b===_0x1f308e)break;else _0x48adb3['push'](_0x48adb3['shift']());}catch(_0x14df13){_0x48adb3['push'](_0x48adb3['shift']());}}}(a3_0x207d,0x9d09b));const fs=require('fs'),path=require('path'),got=require('got'),util=require(a3_0xb069c4(0x290)),cp=require(a3_0xb069c4(0x2c9)),{google}=require(a3_0xb069c4(0x325)),compute=require('@google-cloud/compute'),container=require(a3_0xb069c4(0x33f)),{ProjectsClient}=require(a3_0xb069c4(0x235))['v3'],{logger}=require(a3_0xb069c4(0x2b5)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig,getAuthHeader,runCommand}=require(a3_0xb069c4(0x2fb)),{deleteRoutingDeps,deleteAgent}=require('../utils/gridComponents'),{inputConfirmation,closeInput}=require('../utils/userInput'),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0xb069c4(0x2b1)),PERMISSIONS=require(a3_0xb069c4(0x1fb));function a3_0x207d(){const _0x4ea49a=['../utils/utilityMethods','ybDfR','frXwj','OVDik','projects/','scopes','vmEQR','1sCPbCb','sendEventToBackend','jZzUq','EWBLP','nodePools','WTLhG','PbQhN','qApgV','credentialsPath','setCachedCredsInRegistry','AevZx','zToGi','27882610QkdVuS','isBrowserstackCluster','LcNlS','locations','mbYCD','KwaNr','Creating\x20service\x20account','HfRZT','storage.buckets.list','fOkJR','init','VigMw','GecLT','getClusterInfo','serviceAccountName','qfSwb','list','ttoNo','FGctG','serviceAccount:','SmJri','hfWwN','cIUxD','googleapis','bIPHH','3735132zIpgAC','maxNodes','bindings','4524536OxVEHL','Found\x20cluster\x20with\x20name\x20\x27','storage.buckets.listEffectiveTags','regionmap.json','BBzCE','fcwWo','ZZRPf','pgdSi','Mrnve','testIamPermissions','stack','BpMyd','/clusters/','hYXjx','.\x20Error:\x20','\x20--quiet\x20--user-output-enabled=false','hEiUK','krtmk','QvsDQ','toString','3|8|6|2|5|4|7|0|1','@google-cloud/container','create','eJGhK','mKloO','name','igDDQ','bkBwO','nJgrD','WBpFQ','setIamPolicy','getUserInput','SZPlb','WkhIA','Cannot\x20find\x20subnets\x20','stringify','MlrIy','setupHubHa','upFcG','RCFIb','storage.multipartUploads.create','customRoleName','fFLLi','default','qwiNw','aKDWv','updateWindowsNodeGroup','debug','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','Cluster\x20deletion\x20completed','FiCVg','akhdI','FPViT','lBgpk','ZCycC','KubeConfigTemplate.yaml','QHDfW','push','resourcemanagerClient','iam.serviceAccounts.signBlob','gcp_credentials.json','nNJis','/roles/','PjNmw','NFZcD','NZuuh','DONE','gridProfileId','gcpresources','GKE\x20Cluster\x20deletion\x20failed','cLYWy','forEach','LNYkN','instanceType','jiSGb','isCliToolInstalled','minNodes','requestBody','YPlqR','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','zsTyG','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','channel','ycVwE','tghrY','RZIjl','endpoint','jEBnw','UsIXh','cloudProvider','gke_','storage.buckets.getObjectInsights','YvaxY','ejGOJ','CStrI','ZHPyB','cMkpX','TYeoM','WVprk','yIjUU','vbSbb','42916GLSgWA','VVxTM','members','https://www.googleapis.com/auth/cloud-platform','BpoGu','qHNNT','xDxep','storage.multipartUploads.abort','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','serviceAccount','1712578wsDtqs','.iam.gserviceaccount.com','https://www.googleapis.com/compute/v1/projects/','info','storage.buckets.update','gcloud\x20--version','../permissions/GCP.json','eCBjW','length','project_id','TLDYw','XfgiL','browserstack','BzGyC','getKubeConfigData','deleteCluster','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','dUqPU','checkAccess','getClient','includes','permissions\x20check\x20response\x20for\x20','bstackAccesskey','/global/networks/','aimGQ','PWowL','pbkUj','cYFdy','SVNPJ','diTNJ','eVQXO','NAIeF','network','zglbb','getIamPolicy','wmjhw','XicfV','error','updateClusterRegion','ZkkBo','nMFoH','QKaMt','JCXjE','error\x20:\x20','listClusters','oExqc','iam','yxmfd','clusterName','releaseChannel','accountId','ZuEQo','CmvIi','utf-8','LrPhw','storage.objects.list','PFaXD','isClusterPresent','projectId','EbPsW','maxNodeCount','storage.objects.update','username','resourceLabels','@google-cloud/resource-manager','MPBLa','/packages/cli/update-cluster-region','Cluster\x20creation\x20failed','parent','BhZHn','createCluster','keyFile','setupServiceAccount','join','webSocketUtils','hgQku','hmJRs','tsFbY','tGFGr','UpljX','includedPermissions','type','aUQxu','HPuBP','TMxBt','https://','isVPCPresent','OaDJb','sendResourceDataToHST','Deleting\x20the\x20cluster\x20','storage.buckets.deleteTagBinding','QnctX','accounts','zfYuQ','hIyzo','exports','cli\x20tool\x20is\x20installed','TbMQq','30bTmSRx','669442IfENYV','masterAuth','aIxDv','ZadxO','writeFileSync','/locations/','GvOAt','gMhAQ','BrDOO','dNZyk','kRmYC','storage.objects.getIamPolicy','rws','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--no-user-output-enabled','YGlDf','startsWith','projects','rMZYZ','storage.objects.get','data','config','templates','allowed','wPhCK','/serviceAccounts/','KUmHs','PiygC','gMyYo','gODQv','5tpLPyi','wCYtg','subnetwork','nTXfL','jHpiW','njEyb','readFileAsync','zmlIm','storage.buckets.create','xPbpa','\x20:\x20','auth','OPFLs','REGULAR','managedby','Wnxrn','rqBLi','Service\x20account\x20already\x20exists,\x20skipping','toLowerCase','XztDj','clusterRegion','lOLOE','networkClient','IFtSg','message','autoscaling','aysol','util','LHowP','eicYg','oCKGE','turboscale_custom_role','storage.buckets.createTagBinding','pNyMc','profileId','storage.buckets.delete','aNJra','qJPls','organizations','bjiOP','BlGXQ','sendGCPInfoToHST','machineType','autoUpgrade','/subnetworks/','XDVAB','serviceAccounts','execSync','hJmtY','GoogleCloudProvider','checkServiceAccount','Creating\x20GKE\x20Cluster','XzntZ','ylfdZ','kIwpZ','AUuZT','VdVdO','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','ClusterManagerClient','vpcInfo','../config/constants','FLRjL','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','role','../config/logger','sdvEO','MHfKQ','storage.multipartUploads.list','status','sjhzQ','iqVsR','XjrvU','containerClient','NKPkr','hLiNl','TWrys','oWiEf','KNyIb','keys','vAung','hxMCV','permissions','turboscale-service-account','storage.multipartUploads.listParts','child_process','replace','RTEXD','QXmna','iamClient','NetworksClient','oHnWh','clusterAutoUpgrade','newRegion','GPczX','subnetworks','YTlGZ','storage.objects.delete','denied','RmTcH','concat','JPhPM','wxytW','10915551LWBpkt','get','gcloud\x20auth\x20login\x20--cred-file=','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','log','gxskk','loadBalancer','Please\x20install\x20gcloud\x20CLI\x20tool.\x20Error\x20:\x20','pVjYS','SyTuo','xwQUZ','NQyhe','FLGWZ','accessKey','BmoFq','caBhB','bstackUsername','PdAVf','parse','pDkCO','IZWjk','XTBRS','warn','storage.buckets.listTagBindings','NYcaJ','setupNewCluster','management','DnTXn','split','IWkhV','/regions/','kmrfh'];a3_0x207d=function(){return _0x4ea49a;};return a3_0x207d();}class GoogleCloudProvider extends CloudProvider{constructor(_0x1a9863,_0x10866b,_0x4aebe1,_0x520810){const _0x31c80e=a3_0xb069c4,_0x2ec3bb={};_0x2ec3bb['DnTXn']=_0x31c80e(0x33e),_0x2ec3bb['TuApb']=_0x31c80e(0x294),_0x2ec3bb[_0x31c80e(0x2be)]=_0x31c80e(0x2c7);const _0xc8fa73=_0x2ec3bb,_0x4538a5=_0xc8fa73[_0x31c80e(0x2f6)][_0x31c80e(0x2f7)]('|');let _0x1350b7=0x0;while(!![]){switch(_0x4538a5[_0x1350b7++]){case'0':this[_0x31c80e(0x353)]=_0xc8fa73['TuApb'];continue;case'1':this[_0x31c80e(0x31c)]=_0xc8fa73['NKPkr'];continue;case'2':this[_0x31c80e(0x364)]=null;continue;case'3':super(GCP,_0x1a9863,_0x10866b,_0x4aebe1,_0x520810);continue;case'4':this[_0x31c80e(0x30a)]=null;continue;case'5':this[_0x31c80e(0x2cd)]=null;continue;case'6':this[_0x31c80e(0x28b)]=null;continue;case'7':this['projectId']=null;continue;case'8':this[_0x31c80e(0x2bd)]=null;continue;}break;}}async[a3_0xb069c4(0x24d)](){const _0x2583ba=a3_0xb069c4;this['sendGCPInfoToHST'](this[_0x2583ba(0x264)]);}async[a3_0xb069c4(0x318)](){const _0x38d159=a3_0xb069c4;await super['init']();const _0x33402d=this[_0x38d159(0x30a)],_0x7dd3dd={};_0x7dd3dd[_0x38d159(0x23c)]=_0x33402d,this['containerClient']=new container['v1'][(_0x38d159(0x2af))](_0x7dd3dd);const _0x27f772={};_0x27f772['keyFile']=_0x33402d,this['networkClient']=new compute['v1'][(_0x38d159(0x2ce))](_0x27f772);const _0x20586e={};return _0x20586e['keyFile']=_0x33402d,this[_0x38d159(0x364)]=new ProjectsClient(_0x20586e),this[_0x38d159(0x2cd)]=google[_0x38d159(0x223)]('v1'),this;}async[a3_0xb069c4(0x349)](_0xfadade,_0x5e02dd){const _0x3bc64e=a3_0xb069c4,_0x597911={'CmvIi':function(_0x230d23,_0xb5c3a){return _0x230d23(_0xb5c3a);},'HDlzn':_0x3bc64e(0x37b),'MPBLa':function(_0x46b99d){return _0x46b99d();},'eCBjW':_0x3bc64e(0x366)},_0x5bea23=await _0x597911[_0x3bc64e(0x229)](_0xfadade,_0x597911['HDlzn']);let _0x3d7369=await fs[_0x3bc64e(0x27b)](_0x5bea23);_0x3d7369=_0x3d7369['toString']();const _0x193c66=_0x597911[_0x3bc64e(0x236)](getDirForConfig),_0x2ea596=path[_0x3bc64e(0x23e)](_0x193c66,_0x597911[_0x3bc64e(0x1fc)]);fs[_0x3bc64e(0x25c)](_0x2ea596,_0x3d7369),this[_0x3bc64e(0x30a)]=_0x2ea596;const _0x4330ea={};return _0x4330ea[_0x3bc64e(0x23c)]=_0x2ea596,_0x5e02dd['cloudProvider'][GCP]=_0x4330ea,_0x3d7369=JSON[_0x3bc64e(0x2ed)](_0x3d7369),this['projectId']=_0x3d7369[_0x3bc64e(0x1fe)],_0x5e02dd;}async[a3_0xb069c4(0x30b)](_0x38bf58){const _0x2ed484=a3_0xb069c4;this[_0x2ed484(0x30a)]=_0x38bf58[this['cloudProviderName']]['keyFile'];let _0x273593=await fs['readFileAsync'](this[_0x2ed484(0x30a)]);_0x273593=JSON[_0x2ed484(0x2ed)](_0x273593),this[_0x2ed484(0x22f)]=_0x273593[_0x2ed484(0x1fe)];}['getGridHostname'](_0x40d14c){const _0x3922c8=a3_0xb069c4;return _0x40d14c[_0x3922c8(0x2b9)][_0x3922c8(0x2e1)]['ingress'][0x0]['ip'];}async[a3_0xb069c4(0x30f)](){const _0x54efbf=a3_0xb069c4,_0x21761c={};_0x21761c[_0x54efbf(0x271)]=function(_0x428c39,_0x4d62bc){return _0x428c39!==_0x4d62bc;},_0x21761c[_0x54efbf(0x33a)]=_0x54efbf(0x286),_0x21761c[_0x54efbf(0x317)]='lICJP',_0x21761c['SyTuo']=function(_0x719db,_0x13ede8){return _0x719db===_0x13ede8;},_0x21761c['hLiNl']='kKlps',_0x21761c['HCJwd']=_0x54efbf(0x362),_0x21761c[_0x54efbf(0x2ee)]=function(_0x2401e7,_0x187a18){return _0x2401e7===_0x187a18;},_0x21761c[_0x54efbf(0x2ab)]='browserstack',_0x21761c[_0x54efbf(0x2bb)]=function(_0x291265,_0x572a10){return _0x291265!==_0x572a10;},_0x21761c['pNyMc']=_0x54efbf(0x32f),_0x21761c[_0x54efbf(0x2c2)]=_0x54efbf(0x2c1);const _0x1f9339=_0x21761c;try{if(_0x1f9339['KUmHs'](_0x1f9339[_0x54efbf(0x317)],_0x1f9339[_0x54efbf(0x317)]))return _0x1f9339[_0x54efbf(0x271)](_0x3f7328[_0x54efbf(0x289)],_0x33ce97[0x0])&&(_0x4763a2['clusterRegion']=_0xbf24f5[0x0],this[_0x54efbf(0x21b)]()),!![];else{const _0x133e8c=await this[_0x54efbf(0x31b)]();if(_0x133e8c[0x0]?.[_0x54efbf(0x234)]?.[_0x54efbf(0x283)]){if(_0x1f9339[_0x54efbf(0x2e4)](_0x1f9339[_0x54efbf(0x2bf)],_0x1f9339['HCJwd'])){_0x1d2928['info'](_0x1f9339[_0x54efbf(0x33a)]);return;}else{const _0x49841a=_0x133e8c[0x0]?.[_0x54efbf(0x234)]?.['managedby'];return _0x49841a&&_0x1f9339['pDkCO'](_0x49841a[_0x54efbf(0x287)](),_0x1f9339['kIwpZ']);}}}}catch(_0x5c2fc9){return _0x1f9339[_0x54efbf(0x2bb)](_0x1f9339[_0x54efbf(0x296)],_0x1f9339[_0x54efbf(0x2c2)])?![]:!![];}return![];}async['isClusterPresent'](){const _0x5b7989=a3_0xb069c4,_0x5b919a={'ylfdZ':_0x5b7989(0x36f),'MlrIy':_0x5b7989(0x282),'YvaxY':function(_0x3257f3,_0x8e5b3c){return _0x3257f3+_0x8e5b3c;},'ybDfR':_0x5b7989(0x26d),'tghrY':_0x5b7989(0x36e),'FfNWo':_0x5b7989(0x32d),'QvsDQ':_0x5b7989(0x22a),'zfYuQ':function(_0x499ed1,_0x221263){return _0x499ed1!==_0x221263;},'hfWwN':function(_0x17f073,_0x2ff26e){return _0x17f073===_0x2ff26e;},'NebWT':_0x5b7989(0x27e),'UpljX':'zKeyg','BmoFq':function(_0x57648e,_0xa2434b){return _0x57648e!==_0xa2434b;},'LNYkN':_0x5b7989(0x309),'eVQXO':function(_0x29a281,_0x6f8992){return _0x29a281===_0x6f8992;},'OaDJb':_0x5b7989(0x248),'NYcaJ':_0x5b7989(0x35c),'XTBRS':function(_0x335ccb,_0x540530){return _0x335ccb===_0x540530;},'ZHPyB':function(_0x385d56,_0x3a80bc){return _0x385d56!==_0x3a80bc;},'tGFGr':'lNqdm','WVprk':_0x5b7989(0x2d2),'bkBwO':_0x5b7989(0x219),'BpMyd':function(_0x7bb464,_0x13ef25){return _0x7bb464===_0x13ef25;},'vmEQR':_0x5b7989(0x37f),'pVjYS':_0x5b7989(0x21e),'zsTyG':function(_0x3d6054,_0x3efa19){return _0x3d6054>_0x3efa19;},'OPFLs':'FyjHE','lOLOE':_0x5b7989(0x222),'bPGxM':function(_0x5c3f32,_0x53385e){return _0x5c3f32<_0x53385e;},'qwiNw':_0x5b7989(0x25a),'UsIXh':_0x5b7989(0x2b7),'SmJri':function(_0x26d5c5,_0x2cfc9a){return _0x26d5c5+_0x2cfc9a;},'lBgpk':function(_0x221653,_0x46f7ee){return _0x221653(_0x46f7ee);},'sjhzQ':_0x5b7989(0x379),'wpNMH':function(_0x559fa4,_0x24d10d){return _0x559fa4(_0x24d10d);},'eJGhK':function(_0x256818,_0x4892c2){return _0x256818(_0x4892c2);},'FPViT':function(_0x34a82e,_0x5d4d92){return _0x34a82e<=_0x5d4d92;},'xOQqW':'vrwJh','jtSSH':'ThnbJ','dTeaB':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','mbYCD':function(_0x677b2d){return _0x677b2d();},'diTNJ':function(_0x36abff,_0x13ca5e){return _0x36abff-_0x13ca5e;},'CNtVv':function(_0x3ed3f8,_0x32abd5){return _0x3ed3f8!==_0x32abd5;},'krtmk':_0x5b7989(0x307),'xwQUZ':_0x5b7989(0x313),'NQyhe':function(_0x15b188,_0x39411a){return _0x15b188-_0x39411a;}};let _0x3c7748=await fs[_0x5b7989(0x27b)](path[_0x5b7989(0x23e)](__dirname,'..',_0x5b919a[_0x5b7989(0x2fc)],_0x5b919a[_0x5b7989(0x37e)],_0x5b919a['FfNWo']),_0x5b919a[_0x5b7989(0x33c)]);_0x3c7748=JSON['parse'](_0x3c7748);let _0x13a929=[global_registry[_0x5b7989(0x289)]];if(_0x5b919a[_0x5b7989(0x252)](_0x3c7748[global_registry[_0x5b7989(0x289)]],undefined)){if(_0x5b919a[_0x5b7989(0x323)](_0x5b919a['NebWT'],_0x5b919a[_0x5b7989(0x244)])){_0x1136c9[_0x5b7989(0x1f8)](_0x5b919a[_0x5b7989(0x2aa)]);throw _0x4e7521;}else _0x13a929=_0x13a929[_0x5b7989(0x2d8)](_0x3c7748[global_registry['clusterRegion']]);}const _0xabd26d=[];for await(const _0x445981 of _0x13a929){if(_0x5b919a['BmoFq'](_0x5b919a[_0x5b7989(0x372)],_0x5b919a[_0x5b7989(0x372)]))return![];else{const _0x55031f={};_0x55031f[_0x5b7989(0x239)]=_0x5b7989(0x2ff)+this[_0x5b7989(0x22f)]+_0x5b7989(0x25d)+_0x445981;const _0x606b5c=_0x55031f,_0x52f187=await this['containerClient'][_0x5b7989(0x221)](_0x606b5c);for(const _0x168294 of _0x52f187[0x0]['clusters']){if(_0x5b919a[_0x5b7989(0x213)](_0x5b919a[_0x5b7989(0x24c)],_0x5b919a[_0x5b7989(0x2f3)]))return![];else _0x5b919a[_0x5b7989(0x2f0)](_0x168294['name'],this[_0x5b7989(0x225)])&&(_0x5b919a[_0x5b7989(0x1e5)](_0x5b919a[_0x5b7989(0x243)],_0x5b919a['tGFGr'])?this[_0x5b7989(0x29e)](this[_0x5b7989(0x264)]):_0xabd26d['push'](_0x445981));}}}const _0xf0f900=_0xabd26d[_0x5b7989(0x1fd)];if(_0x5b919a['eVQXO'](_0xf0f900,0x1)){if(_0x5b919a[_0x5b7989(0x2e9)](_0x5b919a[_0x5b7989(0x1e8)],_0x5b919a[_0x5b7989(0x345)])){if(_0x5b919a['zfYuQ'](global_registry[_0x5b7989(0x289)],_0xabd26d[0x0])){if(_0x5b919a[_0x5b7989(0x335)](_0x5b919a[_0x5b7989(0x301)],_0x5b919a[_0x5b7989(0x2e3)]))return!![];else global_registry[_0x5b7989(0x289)]=_0xabd26d[0x0],this[_0x5b7989(0x21b)]();}return!![];}else{const _0x92b2f3={};_0x92b2f3[_0x5b7989(0x37c)]=_0x5b919a[_0x5b7989(0x34e)],_0x42f337[_0x5b7989(0x226)]=_0x92b2f3;}}else{if(_0x5b919a[_0x5b7989(0x37a)](_0xf0f900,0x1)){if(_0x5b919a[_0x5b7989(0x2f0)](_0x5b919a[_0x5b7989(0x281)],_0x5b919a[_0x5b7989(0x28a)]))_0x3737b5[_0x5b7989(0x363)](_0x538a8b);else{console[_0x5b7989(0x2df)](_0x5b7989(0x32b)+this[_0x5b7989(0x225)]+_0x5b7989(0x205));for(let _0x411c8=0x0;_0x5b919a['bPGxM'](_0x411c8,_0xf0f900);_0x411c8+=0x1){_0x5b919a[_0x5b7989(0x1e5)](_0x5b919a[_0x5b7989(0x356)],_0x5b919a[_0x5b7989(0x382)])?console[_0x5b7989(0x2df)]('['+_0x5b919a[_0x5b7989(0x322)](_0x411c8,0x1)+']\x20'+_0xabd26d[_0x411c8]):_0x168e4d[_0x5b7989(0x2df)]('['+_0x5b919a[_0x5b7989(0x386)](_0x140444,0x1)+']\x20'+_0x3847ac[_0x4a7df9]);}const _0x2bbef9=await _0x5b919a[_0x5b7989(0x35f)](inputConfirmation,_0x5b919a[_0x5b7989(0x2ba)]),_0x283aaf=_0x5b919a['wpNMH'](Number,_0x2bbef9);(_0x5b919a[_0x5b7989(0x341)](isNaN,_0x283aaf)||_0x5b919a[_0x5b7989(0x35e)](_0x283aaf,0x0)||_0x5b919a[_0x5b7989(0x37a)](_0x283aaf,_0xf0f900))&&(_0x5b919a['BpMyd'](_0x5b919a['xOQqW'],_0x5b919a['jtSSH'])?_0x3aeff5[_0x5b7989(0x2f1)](_0x3d85e0):(console[_0x5b7989(0x21a)](_0x5b919a['dTeaB']),process['exit'](0x1)));_0x5b919a[_0x5b7989(0x312)](closeInput),logger[_0x5b7989(0x1f8)](_0x5b7989(0x2de)+_0xabd26d[_0x5b919a[_0x5b7989(0x212)](_0x283aaf,0x1)]);if(_0x5b919a[_0x5b7989(0x252)](global_registry['clusterRegion'],_0xabd26d[_0x5b919a[_0x5b7989(0x212)](_0x283aaf,0x1)])){if(_0x5b919a['CNtVv'](_0x5b919a[_0x5b7989(0x33b)],_0x5b919a[_0x5b7989(0x2e5)]))global_registry[_0x5b7989(0x289)]=_0xabd26d[_0x5b919a[_0x5b7989(0x2e6)](_0x283aaf,0x1)],this[_0x5b7989(0x21b)]();else return _0x408117[_0x5b7989(0x21a)](_0x5b7989(0x34c)+_0x409ecd+_0x5b7989(0x338)+_0x117774),[![],[]];}return!![];}}}return![];}async[a3_0xb069c4(0x31b)](){const _0x4774a8=a3_0xb069c4,_0x16a306=await this[_0x4774a8(0x2bd)]['getCluster']({'name':_0x4774a8(0x2ff)+this[_0x4774a8(0x22f)]+'/locations/'+global_registry[_0x4774a8(0x289)]+_0x4774a8(0x336)+this[_0x4774a8(0x225)]});return _0x16a306;}async[a3_0xb069c4(0x203)](){const _0x406e37=a3_0xb069c4,_0x3a5518={};_0x3a5518[_0x406e37(0x319)]=_0x406e37(0x265),_0x3a5518[_0x406e37(0x36b)]=_0x406e37(0x26d),_0x3a5518['YGlDf']=_0x406e37(0x36e),_0x3a5518[_0x406e37(0x32e)]=_0x406e37(0x361);const _0x30519c=_0x3a5518;cp[_0x406e37(0x2a4)](_0x30519c[_0x406e37(0x319)]),cp['exec'](_0x406e37(0x2dd)+this['credentialsPath']);const _0x3e8bc0=await this[_0x406e37(0x31b)](),_0x32c326=_0x406e37(0x384)+this[_0x406e37(0x22f)]+'_'+global_registry[_0x406e37(0x289)]+'_'+this[_0x406e37(0x225)];let _0x24f0c5=await fs[_0x406e37(0x27b)](path[_0x406e37(0x23e)](__dirname,'..',_0x30519c['NZuuh'],_0x30519c[_0x406e37(0x266)],_0x30519c['BBzCE']));return _0x24f0c5=_0x24f0c5[_0x406e37(0x33d)](),_0x24f0c5=_0x24f0c5[_0x406e37(0x2ca)](/<CLUSTER_NAME>/g,_0x32c326),_0x24f0c5=_0x24f0c5['replace'](/<CLUSTER_URL>/g,'https://'+_0x3e8bc0[0x0][_0x406e37(0x380)]),_0x24f0c5=_0x24f0c5['replace'](/<CERTIFICATE_DATA>/g,_0x3e8bc0[0x0][_0x406e37(0x259)]['clusterCaCertificate']),_0x24f0c5;}async[a3_0xb069c4(0x2a7)](){const _0x5b689c=a3_0xb069c4,_0x169106={};_0x169106['BrDOO']='Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.',_0x169106[_0x5b689c(0x337)]=_0x5b689c(0x1ee),_0x169106[_0x5b689c(0x276)]=function(_0x1bc6dd,_0xb39dc){return _0x1bc6dd!==_0xb39dc;},_0x169106[_0x5b689c(0x285)]=_0x5b689c(0x347),_0x169106[_0x5b689c(0x2b2)]=function(_0x32b5c9,_0x267ecd){return _0x32b5c9===_0x267ecd;},_0x169106['XfgiL']=_0x5b689c(0x35d),_0x169106['xDxep']=function(_0x20a262,_0x5a21bf){return _0x20a262===_0x5a21bf;},_0x169106['vbSbb']=function(_0x26142e,_0x3af2d2){return _0x26142e===_0x3af2d2;},_0x169106[_0x5b689c(0x247)]=_0x5b689c(0x29d);const _0x58671a=_0x169106,_0x583283={};_0x583283['scopes']=[_0x58671a[_0x5b689c(0x337)]],_0x583283['keyFile']=this[_0x5b689c(0x30a)];const _0x2535d0=await google[_0x5b689c(0x280)][_0x5b689c(0x208)](_0x583283),_0x2de583=await this[_0x5b689c(0x2cd)][_0x5b689c(0x268)][_0x5b689c(0x2a3)][_0x5b689c(0x31e)]({'name':'projects/'+this[_0x5b689c(0x22f)],'auth':_0x2535d0});if(_0x2de583?.['data']?.[_0x5b689c(0x251)]){if(_0x58671a[_0x5b689c(0x276)](_0x58671a['rqBLi'],_0x58671a[_0x5b689c(0x285)]))return!![];else for(const _0x5ec1e7 of _0x2de583[_0x5b689c(0x26b)][_0x5b689c(0x251)]){if(_0x58671a[_0x5b689c(0x2b2)](_0x58671a[_0x5b689c(0x200)],_0x58671a[_0x5b689c(0x200)])){if(_0x58671a[_0x5b689c(0x1f1)](_0x5ec1e7?.[_0x5b689c(0x343)],_0x5b689c(0x2ff)+this[_0x5b689c(0x22f)]+'/serviceAccounts/'+this[_0x5b689c(0x31c)]+'@'+this[_0x5b689c(0x22f)]+_0x5b689c(0x1f6))){if(_0x58671a[_0x5b689c(0x1ea)](_0x58671a[_0x5b689c(0x247)],_0x58671a['aUQxu']))return!![];else _0x33244c[_0x5b689c(0x2b9)]=![];}}else _0x727ee6['error'](_0x58671a[_0x5b689c(0x260)]),_0x24de8e['exit'](0x1);}}return![];}async[a3_0xb069c4(0x23d)](){const _0x7ace27=a3_0xb069c4,_0x29abf3={};_0x29abf3[_0x7ace27(0x34b)]=function(_0x330917,_0x14a922){return _0x330917===_0x14a922;},_0x29abf3[_0x7ace27(0x315)]='stfTB',_0x29abf3[_0x7ace27(0x2da)]=_0x7ace27(0x286),_0x29abf3[_0x7ace27(0x1e9)]=_0x7ace27(0x314),_0x29abf3[_0x7ace27(0x370)]=_0x7ace27(0x1ee),_0x29abf3[_0x7ace27(0x2cb)]=_0x7ace27(0x365),_0x29abf3[_0x7ace27(0x22d)]=_0x7ace27(0x27d),_0x29abf3[_0x7ace27(0x27a)]=_0x7ace27(0x295),_0x29abf3[_0x7ace27(0x31d)]=_0x7ace27(0x298),_0x29abf3['GecLT']=_0x7ace27(0x24f),_0x29abf3[_0x7ace27(0x2ac)]='storage.buckets.get',_0x29abf3[_0x7ace27(0x320)]='storage.buckets.getIamPolicy',_0x29abf3[_0x7ace27(0x2e7)]=_0x7ace27(0x385),_0x29abf3[_0x7ace27(0x2d9)]=_0x7ace27(0x316),_0x29abf3[_0x7ace27(0x326)]=_0x7ace27(0x32c),_0x29abf3[_0x7ace27(0x2ec)]=_0x7ace27(0x2f2),_0x29abf3[_0x7ace27(0x346)]='storage.buckets.setIamPolicy',_0x29abf3[_0x7ace27(0x21f)]=_0x7ace27(0x1f9),_0x29abf3['hXRZB']=_0x7ace27(0x1f2),_0x29abf3[_0x7ace27(0x37d)]=_0x7ace27(0x352),_0x29abf3[_0x7ace27(0x2a9)]=_0x7ace27(0x2b8),_0x29abf3[_0x7ace27(0x331)]=_0x7ace27(0x2c8),_0x29abf3[_0x7ace27(0x2ef)]='storage.objects.create',_0x29abf3[_0x7ace27(0x1e4)]=_0x7ace27(0x2d5),_0x29abf3[_0x7ace27(0x34a)]=_0x7ace27(0x26a),_0x29abf3[_0x7ace27(0x291)]=_0x7ace27(0x263),_0x29abf3[_0x7ace27(0x381)]=_0x7ace27(0x22c),_0x29abf3['sdvEO']='storage.objects.setIamPolicy',_0x29abf3['jZzUq']=_0x7ace27(0x232),_0x29abf3[_0x7ace27(0x2e0)]='Turboscale\x20Custom\x20Role',_0x29abf3['igDDQ']=_0x7ace27(0x1f3);const _0x115b0c=_0x29abf3,_0x45cd07=await this[_0x7ace27(0x2a7)]();if(_0x45cd07){if(_0x115b0c[_0x7ace27(0x34b)](_0x115b0c['HfRZT'],_0x115b0c[_0x7ace27(0x315)])){logger['info'](_0x115b0c[_0x7ace27(0x2da)]);return;}else return[!![],_0x280107];}logger[_0x7ace27(0x1f8)](_0x115b0c['yIjUU']);const _0x12c4c8={};_0x12c4c8[_0x7ace27(0x300)]=[_0x115b0c[_0x7ace27(0x370)]],_0x12c4c8[_0x7ace27(0x23c)]=this['credentialsPath'];const _0x4e8533=await google[_0x7ace27(0x280)][_0x7ace27(0x208)](_0x12c4c8),_0x231fbf={};_0x231fbf[_0x7ace27(0x245)]=[_0x115b0c[_0x7ace27(0x2cb)],_0x115b0c['PFaXD'],_0x115b0c['njEyb'],_0x115b0c[_0x7ace27(0x31d)],_0x115b0c[_0x7ace27(0x31a)],_0x115b0c[_0x7ace27(0x2ac)],_0x115b0c[_0x7ace27(0x320)],_0x115b0c['FLGWZ'],_0x115b0c['JPhPM'],_0x115b0c[_0x7ace27(0x326)],_0x115b0c['PdAVf'],_0x115b0c[_0x7ace27(0x346)],_0x115b0c[_0x7ace27(0x21f)],_0x115b0c['hXRZB'],_0x115b0c[_0x7ace27(0x37d)],_0x115b0c[_0x7ace27(0x2a9)],_0x115b0c['pgdSi'],_0x115b0c[_0x7ace27(0x2ef)],_0x115b0c['CStrI'],_0x115b0c['SZPlb'],_0x115b0c[_0x7ace27(0x291)],_0x115b0c['jEBnw'],_0x115b0c[_0x7ace27(0x2b6)],_0x115b0c[_0x7ace27(0x304)]],_0x231fbf['title']=_0x115b0c['gxskk'],await this[_0x7ace27(0x2cd)][_0x7ace27(0x29b)]['roles'][_0x7ace27(0x340)]({'parent':_0x7ace27(0x2ff)+this[_0x7ace27(0x22f)],'requestBody':{'role':_0x231fbf,'roleId':this[_0x7ace27(0x353)]},'auth':_0x4e8533});const _0x21df44={};_0x21df44[_0x7ace27(0x343)]=_0x7ace27(0x2ff)+this[_0x7ace27(0x22f)],_0x21df44[_0x7ace27(0x377)]={},_0x21df44['auth']=_0x4e8533,_0x21df44[_0x7ace27(0x377)][_0x7ace27(0x227)]=this[_0x7ace27(0x31c)];const _0x43bf17=_0x21df44;await this[_0x7ace27(0x2cd)][_0x7ace27(0x268)][_0x7ace27(0x2a3)][_0x7ace27(0x340)](_0x43bf17);let _0x550aec=await this[_0x7ace27(0x364)][_0x7ace27(0x217)]({'resource':_0x7ace27(0x2ff)+this[_0x7ace27(0x22f)]});_0x550aec=_0x550aec[0x0][_0x7ace27(0x329)];const _0x42226c={};_0x42226c[_0x7ace27(0x2b4)]=_0x7ace27(0x2ff)+this[_0x7ace27(0x22f)]+_0x7ace27(0x368)+this[_0x7ace27(0x353)],_0x42226c[_0x7ace27(0x1ed)]=[_0x7ace27(0x321)+this[_0x7ace27(0x31c)]+'@'+this[_0x7ace27(0x22f)]+_0x7ace27(0x1f6)],_0x550aec[_0x7ace27(0x363)](_0x42226c);const _0x101842={};_0x101842[_0x7ace27(0x329)]=_0x550aec,await this['resourcemanagerClient'][_0x7ace27(0x348)]({'resource':'projects/'+this[_0x7ace27(0x22f)],'policy':_0x101842}),logger[_0x7ace27(0x1f8)](_0x115b0c[_0x7ace27(0x344)]);}async[a3_0xb069c4(0x2f4)](_0x1687fa=a3_0xb069c4(0x355),_0x4eb64d=[a3_0xb069c4(0x355)]){const _0x165242=a3_0xb069c4,_0x5358bf={};_0x5358bf['qJPls']=function(_0x23a8ea,_0x2a66c1){return _0x23a8ea===_0x2a66c1;},_0x5358bf['aimGQ']=_0x165242(0x201),_0x5358bf[_0x165242(0x369)]='Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x5358bf['DRhSy']=_0x165242(0x35a),_0x5358bf[_0x165242(0x351)]=function(_0x39b50c,_0x56584d){return _0x39b50c!==_0x56584d;},_0x5358bf[_0x165242(0x30c)]='aWTID',_0x5358bf[_0x165242(0x249)]=_0x165242(0x374),_0x5358bf[_0x165242(0x1ef)]='default',_0x5358bf[_0x165242(0x378)]=function(_0x12c4bd,_0x27e8b5){return _0x12c4bd===_0x27e8b5;},_0x5358bf[_0x165242(0x293)]='CYkZg',_0x5358bf['kmrfh']='CCGox';const _0x1dfc40=_0x5358bf,_0x1a5d54={};_0x1a5d54[_0x165242(0x246)]=WS_EVENTS['LOG'],_0x1a5d54['message']=_0x1dfc40[_0x165242(0x369)],this['webSocketUtils'][_0x165242(0x303)](this['rws'],_0x1a5d54),logger['info'](_0x1dfc40['DRhSy']);if(!_0x1687fa){if(_0x1dfc40['RCFIb'](_0x1dfc40[_0x165242(0x30c)],_0x1dfc40[_0x165242(0x249)]))_0x1687fa=_0x1dfc40[_0x165242(0x1ef)];else{const _0x3a6734=_0x467ffe[0x0]?.['resourceLabels']?.['managedby'];return _0x3a6734&&_0x1dfc40[_0x165242(0x29a)](_0x3a6734[_0x165242(0x287)](),_0x1dfc40[_0x165242(0x20d)]);}}if(!_0x4eb64d||_0x1dfc40[_0x165242(0x378)](_0x4eb64d[_0x165242(0x1fd)],0x0)){if(_0x1dfc40['RCFIb'](_0x1dfc40[_0x165242(0x293)],_0x1dfc40[_0x165242(0x2fa)]))_0x4eb64d=[_0x1dfc40[_0x165242(0x1ef)]];else{if(_0x1dfc40[_0x165242(0x29a)](_0x19b624?.['name'],_0x165242(0x2ff)+this[_0x165242(0x22f)]+_0x165242(0x270)+this[_0x165242(0x31c)]+'@'+this[_0x165242(0x22f)]+_0x165242(0x1f6)))return!![];}}return await this['setupServiceAccount'](),await this[_0x165242(0x23b)](_0x1687fa,_0x4eb64d),await this[_0x165242(0x358)](),[_0x1687fa,_0x4eb64d];}async['createCluster'](_0x3eee94=a3_0xb069c4(0x355),_0x1b0348=[a3_0xb069c4(0x355)]){const _0x5333c1=a3_0xb069c4,_0x440295={};_0x440295[_0x5333c1(0x206)]=function(_0xee8e8b,_0x384079){return _0xee8e8b===_0x384079;},_0x440295[_0x5333c1(0x20e)]='default',_0x440295[_0x5333c1(0x273)]=_0x5333c1(0x26e),_0x440295['XDVAB']=_0x5333c1(0x2d6),_0x440295[_0x5333c1(0x241)]=_0x5333c1(0x305),_0x440295[_0x5333c1(0x288)]=_0x5333c1(0x2a8),_0x440295[_0x5333c1(0x274)]=_0x5333c1(0x26d),_0x440295[_0x5333c1(0x25f)]='gcpresources',_0x440295['EbPsW']='gkecluster.json',_0x440295[_0x5333c1(0x2fe)]=_0x5333c1(0x22a),_0x440295[_0x5333c1(0x1e6)]=_0x5333c1(0x32d),_0x440295[_0x5333c1(0x278)]=function(_0x381e3c,_0x3af2f0){return _0x381e3c!==_0x3af2f0;},_0x440295[_0x5333c1(0x279)]='sHPZe',_0x440295['yupgA']='PFeeg',_0x440295['MldgA']=_0x5333c1(0x282),_0x440295[_0x5333c1(0x250)]=function(_0x3e2f14,_0x34d5ca){return _0x3e2f14*_0x34d5ca;},_0x440295['jDdHf']=function(_0x2e826d,_0x2c7904){return _0x2e826d*_0x2c7904;},_0x440295[_0x5333c1(0x342)]=_0x5333c1(0x269),_0x440295['oHnWh']='HdrKa',_0x440295[_0x5333c1(0x228)]=function(_0x5df1f5,_0x2e591b){return _0x5df1f5!==_0x2e591b;},_0x440295[_0x5333c1(0x367)]='OLtHJ',_0x440295['uoUuM']=_0x5333c1(0x2b3),_0x440295[_0x5333c1(0x214)]=_0x5333c1(0x224),_0x440295['nBkqj']='zydHw',_0x440295[_0x5333c1(0x284)]='Cluster\x20creation\x20failed';const _0x4155c3=_0x440295;try{if(_0x4155c3[_0x5333c1(0x206)](_0x4155c3['hmJRs'],_0x4155c3[_0x5333c1(0x241)])){logger[_0x5333c1(0x1f8)](_0x4155c3['XztDj']);let _0x14e80f=await fs[_0x5333c1(0x27b)](path[_0x5333c1(0x23e)](__dirname,'..',_0x4155c3[_0x5333c1(0x274)],_0x4155c3[_0x5333c1(0x25f)],_0x4155c3[_0x5333c1(0x230)]),_0x4155c3[_0x5333c1(0x2fe)]);_0x14e80f=JSON[_0x5333c1(0x2ed)](_0x14e80f);let _0x567512=await fs[_0x5333c1(0x27b)](path[_0x5333c1(0x23e)](__dirname,'..',_0x4155c3[_0x5333c1(0x274)],_0x4155c3[_0x5333c1(0x25f)],_0x4155c3[_0x5333c1(0x1e6)]),_0x4155c3['OVDik']);_0x567512=JSON[_0x5333c1(0x2ed)](_0x567512);const _0x2e674a=global_registry[_0x5333c1(0x2d0)];_0x14e80f[_0x5333c1(0x343)]=this[_0x5333c1(0x225)],_0x14e80f[_0x5333c1(0x306)][0x0][_0x5333c1(0x26c)][_0x5333c1(0x29f)]=global_registry[_0x5333c1(0x373)],_0x14e80f[_0x5333c1(0x306)][0x1][_0x5333c1(0x26c)][_0x5333c1(0x29f)]=global_registry['instanceType'],_0x14e80f[_0x5333c1(0x306)][0x0][_0x5333c1(0x26c)][_0x5333c1(0x1f4)]=this['serviceAccountName']+'@'+this[_0x5333c1(0x22f)]+_0x5333c1(0x1f6),_0x14e80f[_0x5333c1(0x306)][0x1]['config'][_0x5333c1(0x1f4)]=this[_0x5333c1(0x31c)]+'@'+this[_0x5333c1(0x22f)]+_0x5333c1(0x1f6),_0x14e80f[_0x5333c1(0x306)][0x0]['autoscaling']['minNodeCount']=global_registry[_0x5333c1(0x376)],_0x14e80f['nodePools'][0x1][_0x5333c1(0x28e)]['minNodeCount']=0x0,_0x14e80f['nodePools'][0x0][_0x5333c1(0x2f5)][_0x5333c1(0x2a0)]=_0x2e674a,_0x14e80f[_0x5333c1(0x306)][0x1][_0x5333c1(0x2f5)][_0x5333c1(0x2a0)]=_0x2e674a,_0x14e80f[_0x5333c1(0x306)][0x0][_0x5333c1(0x28e)]['maxNodeCount']=global_registry[_0x5333c1(0x328)],_0x14e80f['nodePools'][0x1][_0x5333c1(0x28e)][_0x5333c1(0x231)]=global_registry['maxNodes'],_0x14e80f['location']=global_registry[_0x5333c1(0x289)],_0x14e80f[_0x5333c1(0x311)]=[_0x567512[global_registry['clusterRegion']][0x0]],_0x14e80f[_0x5333c1(0x215)]=_0x5333c1(0x2ff)+this[_0x5333c1(0x22f)]+_0x5333c1(0x20c)+_0x3eee94,_0x14e80f[_0x5333c1(0x277)]=_0x5333c1(0x2ff)+this['projectId']+_0x5333c1(0x2f9)+global_registry['clusterRegion']+_0x5333c1(0x2a1)+_0x1b0348[0x0];if(_0x2e674a){if(_0x4155c3[_0x5333c1(0x278)](_0x4155c3[_0x5333c1(0x279)],_0x4155c3['yupgA'])){const _0x19c705={};_0x19c705['channel']=_0x4155c3['MldgA'],_0x14e80f[_0x5333c1(0x226)]=_0x19c705;}else return _0x33c121[_0x5333c1(0x2b9)]['loadBalancer']['ingress'][0x0]['ip'];}const _0x170dae=await this[_0x5333c1(0x2bd)]['createCluster']({'cluster':_0x14e80f,'parent':'projects/'+this[_0x5333c1(0x22f)]+'/locations/'+global_registry[_0x5333c1(0x289)]});await this[_0x5333c1(0x23f)]['delay'](_0x4155c3['QnctX'](_0x4155c3['jDdHf'](0x7,0x3c),0x3e8));}else for(const _0x16220b of _0xc54775['data'][_0x5333c1(0x251)]){if(_0x4155c3[_0x5333c1(0x206)](_0x16220b?.[_0x5333c1(0x343)],_0x5333c1(0x2ff)+this[_0x5333c1(0x22f)]+_0x5333c1(0x270)+this[_0x5333c1(0x31c)]+'@'+this[_0x5333c1(0x22f)]+'.iam.gserviceaccount.com'))return!![];}}catch(_0x4fbc29){if(_0x4155c3[_0x5333c1(0x206)](_0x4155c3[_0x5333c1(0x342)],_0x4155c3[_0x5333c1(0x2cf)]))_0x3d5658=_0x4155c3[_0x5333c1(0x20e)];else{const _0x29cad9=await this[_0x5333c1(0x22e)]();if(_0x29cad9)_0x4155c3[_0x5333c1(0x228)](_0x4155c3[_0x5333c1(0x367)],_0x4155c3[_0x5333c1(0x367)])?_0x3b0804=[_0x4155c3[_0x5333c1(0x20e)]]:(logger[_0x5333c1(0x1f8)](_0x4155c3['uoUuM'],_0x4fbc29['stack']),await this['deleteCluster']());else{if(_0x4155c3[_0x5333c1(0x206)](_0x4155c3['NAIeF'],_0x4155c3['nBkqj'])){const _0x3aed69=_0x2c8d8d[_0x5333c1(0x2c6)][_0x5333c1(0x209)](_0x1adadb);_0x19894d+='\x0a\x09'+_0x5f1660+_0x5333c1(0x27f)+(_0x3aed69?_0x4155c3[_0x5333c1(0x273)]:_0x4155c3[_0x5333c1(0x2a2)]),!_0x3aed69&&(_0x53c435[_0x5333c1(0x2b9)]=![]);}else logger['info'](_0x4155c3[_0x5333c1(0x284)]);}throw _0x4fbc29;}}}async[a3_0xb069c4(0x34f)](_0x3db4d4,_0x1a9793,_0x565615,_0x2fcd8c,_0x36d6e5){}async['updateWindowsNodeGroup'](){const _0x4ee745=a3_0xb069c4;cp[_0x4ee745(0x2a4)](_0x4ee745(0x2ae)+this[_0x4ee745(0x225)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+global_registry[_0x4ee745(0x289)]+_0x4ee745(0x339));}async[a3_0xb069c4(0x204)](_0x5d72d1,_0x338a72){const _0x26e2b3=a3_0xb069c4,_0xf936e7={'RmTcH':_0x26e2b3(0x238),'eZTqy':function(_0x18f38e,_0x2f1666){return _0x18f38e===_0x2f1666;},'QXmna':function(_0x3ac09f,_0x41d042){return _0x3ac09f!==_0x41d042;},'frXwj':_0x26e2b3(0x218),'caBhB':_0x26e2b3(0x22b),'ZkkBo':function(_0x5823fc,_0x2d2af6){return _0x5823fc(_0x2d2af6);},'LAIyo':function(_0x208ed4,_0x509392){return _0x208ed4===_0x509392;},'TWrys':'RUNNING','ttoNo':function(_0x1d3d22,_0x2376ea){return _0x1d3d22===_0x2376ea;},'SVNPJ':_0x26e2b3(0x36c),'XjrvU':'ChnXH','aysol':_0x26e2b3(0x35b),'kKzQA':function(_0x5b26a4,_0x5c44ea){return _0x5b26a4!==_0x5c44ea;},'nMFoH':_0x26e2b3(0x1ec),'aNJra':_0x26e2b3(0x36f)};try{if(_0xf936e7[_0x26e2b3(0x2cc)](_0xf936e7[_0x26e2b3(0x2fd)],_0xf936e7[_0x26e2b3(0x2ea)])){await _0xf936e7[_0x26e2b3(0x21c)](deleteAgent,_0x5d72d1),await _0xf936e7[_0x26e2b3(0x21c)](deleteRoutingDeps,_0x5d72d1),logger[_0x26e2b3(0x1f8)](_0x26e2b3(0x24e)+this[_0x26e2b3(0x225)]);const _0x2cb2f2=await this[_0x26e2b3(0x2bd)][_0x26e2b3(0x204)]({'name':_0x26e2b3(0x2ff)+this[_0x26e2b3(0x22f)]+_0x26e2b3(0x25d)+global_registry[_0x26e2b3(0x289)]+'/clusters/'+this[_0x26e2b3(0x225)]});if(_0xf936e7['LAIyo'](_0x2cb2f2[0x0]?.[_0x26e2b3(0x2b9)],_0xf936e7[_0x26e2b3(0x2c0)])||_0xf936e7[_0x26e2b3(0x31f)](_0x2cb2f2[0x0]?.[_0x26e2b3(0x2b9)],_0xf936e7[_0x26e2b3(0x211)])){if(_0xf936e7['QXmna'](_0xf936e7[_0x26e2b3(0x2bc)],_0xf936e7['XjrvU']))_0x1a9f1f[_0x26e2b3(0x1f8)](_0xf936e7[_0x26e2b3(0x2d7)]);else return!![];}logger[_0x26e2b3(0x1f8)](_0xf936e7[_0x26e2b3(0x28f)]);}else _0xf936e7['eZTqy'](_0x52fe97[_0x26e2b3(0x343)],this['clusterName'])&&_0x5dc0e6[_0x26e2b3(0x363)](_0x55dbd1);}catch(_0x33b367){if(_0xf936e7['kKzQA'](_0xf936e7['nMFoH'],_0xf936e7[_0x26e2b3(0x21d)]))_0x230bc4[_0x26e2b3(0x21a)](_0x26e2b3(0x220)+_0x298823+_0x26e2b3(0x27f)+_0x435bbd[_0x26e2b3(0x334)]),_0x31f183['data']='Please\x20install\x20gcloud\x20CLI\x20tool.\x20Error\x20:\x20'+_0x391c7f,_0x5cfa95[_0x26e2b3(0x21a)]=_0x9458df;else{logger[_0x26e2b3(0x1f8)](_0xf936e7[_0x26e2b3(0x299)]);throw _0x33b367;}}}async[a3_0xb069c4(0x24b)](_0x1c4571){const _0x288d34=a3_0xb069c4,_0x34cd95={};_0x34cd95[_0x288d34(0x2f8)]=function(_0x544cf9,_0x14e539){return _0x544cf9-_0x14e539;},_0x34cd95['zglbb']=function(_0xd6f5fd,_0xeae566){return _0xd6f5fd!==_0xeae566;},_0x34cd95['CgMpf']=_0x288d34(0x2d4),_0x34cd95['SuGIn']=_0x288d34(0x2a5),_0x34cd95['pbkUj']=function(_0x3fef99,_0x4be1da){return _0x3fef99>_0x4be1da;},_0x34cd95[_0x288d34(0x1f0)]=function(_0x3d3b80,_0x259d01){return _0x3d3b80===_0x259d01;},_0x34cd95[_0x288d34(0x23a)]=function(_0x48b656,_0x2cf334){return _0x48b656===_0x2cf334;},_0x34cd95['BzGyC']=_0x288d34(0x30d),_0x34cd95[_0x288d34(0x28c)]=_0x288d34(0x272),_0x34cd95[_0x288d34(0x2ad)]=_0x288d34(0x332);const _0x471ef2=_0x34cd95;try{if(_0x471ef2[_0x288d34(0x216)](_0x471ef2['CgMpf'],_0x471ef2['SuGIn'])){const _0x6371ea=await this[_0x288d34(0x28b)][_0x288d34(0x2dc)]({'project':this[_0x288d34(0x22f)],'network':_0x1c4571});if(_0x471ef2[_0x288d34(0x20f)](_0x6371ea[_0x288d34(0x1fd)],0x0)&&_0x471ef2[_0x288d34(0x1f0)](_0x6371ea[0x0][_0x288d34(0x343)],_0x1c4571)){if(_0x471ef2[_0x288d34(0x23a)](_0x471ef2[_0x288d34(0x202)],_0x471ef2[_0x288d34(0x28c)]))_0x185c4f['vpcInfo'][_0x288d34(0x363)](_0x522303);else return!![];}}else _0x4489dd[_0x288d34(0x289)]=_0x4340ba[_0x471ef2[_0x288d34(0x2f8)](_0x34866f,0x1)],this[_0x288d34(0x21b)]();}catch(_0x4f36cb){if(_0x471ef2[_0x288d34(0x216)](_0x471ef2['VdVdO'],_0x471ef2['VdVdO']))_0x5df8b1['clusterRegion']=_0x4e11e0[0x0],this[_0x288d34(0x21b)]();else return![];}return![];}async['isSubnetsValid'](_0x32f58c,_0x34df26){const _0x4f7956=a3_0xb069c4,_0x519986={};_0x519986[_0x4f7956(0x240)]=function(_0x81369d,_0x3463f8){return _0x81369d===_0x3463f8;},_0x519986[_0x4f7956(0x360)]=function(_0x10fa0c,_0x17b7e4){return _0x10fa0c!==_0x17b7e4;},_0x519986[_0x4f7956(0x262)]='NksHO',_0x519986[_0x4f7956(0x1ff)]=_0x4f7956(0x2c4),_0x519986[_0x4f7956(0x29c)]=function(_0x5726d4,_0x336461){return _0x5726d4!==_0x336461;},_0x519986[_0x4f7956(0x308)]=_0x4f7956(0x27c),_0x519986['aKDWv']=function(_0x512d53,_0x5b4580){return _0x512d53===_0x5b4580;},_0x519986[_0x4f7956(0x25b)]='Jgepr',_0x519986[_0x4f7956(0x242)]=_0x4f7956(0x310),_0x519986['eicYg']=_0x4f7956(0x2c5),_0x519986[_0x4f7956(0x25e)]=_0x4f7956(0x36a);const _0x407e6a=_0x519986;try{if(_0x407e6a[_0x4f7956(0x360)](_0x407e6a[_0x4f7956(0x262)],_0x407e6a[_0x4f7956(0x1ff)])){const _0x44b24d=await this['networkClient'][_0x4f7956(0x2dc)]({'project':this[_0x4f7956(0x22f)],'network':_0x34df26});for(const _0x33b36e of _0x44b24d[0x0][_0x4f7956(0x2d3)]){if(_0x407e6a[_0x4f7956(0x29c)](_0x407e6a['PbQhN'],_0x407e6a[_0x4f7956(0x308)]))_0x522e05=_0x183ab[_0x4f7956(0x2d8)](_0x31835c[_0x3e1a2b[_0x4f7956(0x289)]]);else{const _0x2c1ef1=_0x4f7956(0x1f7)+this[_0x4f7956(0x22f)]+_0x4f7956(0x2f9)+global_registry[_0x4f7956(0x289)]+_0x4f7956(0x2a1)+_0x32f58c[0x0];if(_0x407e6a[_0x4f7956(0x357)](_0x2c1ef1,_0x33b36e)){if(_0x407e6a[_0x4f7956(0x357)](_0x407e6a['ZadxO'],_0x407e6a[_0x4f7956(0x242)])){const _0x80224e=_0x4f7956(0x1f7)+this[_0x4f7956(0x22f)]+_0x4f7956(0x2f9)+_0x150da5[_0x4f7956(0x289)]+'/subnetworks/'+_0x51155f[0x0];if(_0x407e6a['hgQku'](_0x80224e,_0x30a89a))return[!![],_0xe2e21a];}else return[!![],_0x32f58c];}}}}else _0x3d17c7[_0x4f7956(0x2a4)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x4f7956(0x225)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+_0x5a0346['clusterRegion']+_0x4f7956(0x339));}catch(_0x5aa062){if(_0x407e6a['aKDWv'](_0x407e6a[_0x4f7956(0x292)],_0x407e6a[_0x4f7956(0x25e)]))_0x429979['error']=_0x596c3d;else return logger['error'](_0x4f7956(0x34c)+_0x32f58c+'.\x20Error:\x20'+_0x5aa062),[![],[]];}return[![],[]];}async[a3_0xb069c4(0x29e)](){const _0x5a5eb6=a3_0xb069c4,_0x1ce37f={};_0x1ce37f[_0x5a5eb6(0x324)]=function(_0x3158f1,_0x408147){return _0x3158f1===_0x408147;},_0x1ce37f[_0x5a5eb6(0x26f)]=_0x5a5eb6(0x256);const _0x2a8107=_0x1ce37f,_0x20e6d5=await this[_0x5a5eb6(0x28b)][_0x5a5eb6(0x31e)]({'project':this[_0x5a5eb6(0x22f)]}),_0x13e200={};_0x13e200[_0x5a5eb6(0x233)]=global_registry[_0x5a5eb6(0x2eb)],_0x13e200[_0x5a5eb6(0x2e8)]=global_registry[_0x5a5eb6(0x20b)],_0x13e200[_0x5a5eb6(0x383)]=GCP,_0x13e200[_0x5a5eb6(0x2b0)]=[];const _0x564a2e=_0x13e200;for(const _0x4cf0b6 of _0x20e6d5){_0x2a8107['cIUxD'](_0x2a8107[_0x5a5eb6(0x26f)],_0x2a8107['wPhCK'])?_0x564a2e[_0x5a5eb6(0x2b0)][_0x5a5eb6(0x363)](_0x4cf0b6):_0x1017d0['debug'](_0xfc93fa);}const _0x2fd48e={};_0x2fd48e['type']=WS_EVENTS['RESOURCES'],_0x2fd48e[_0x5a5eb6(0x28d)]=_0x564a2e,this['webSocketUtils'][_0x5a5eb6(0x303)](this[_0x5a5eb6(0x264)],_0x2fd48e);}async[a3_0xb069c4(0x21b)](){const _0x51af77=a3_0xb069c4,_0x330769={'hIyzo':function(_0x1f69d7,_0x15b5d0,_0x468996){return _0x1f69d7(_0x15b5d0,_0x468996);},'fFLLi':'PUT','qsxme':'json','cYFdy':function(_0x3e3faf,_0x57776b,_0x2549b9){return _0x3e3faf(_0x57776b,_0x2549b9);}},_0x2f66ae=_0x51af77(0x24a)+AG_API_URL+_0x51af77(0x237),_0x3c97d4={};_0x3c97d4[_0x51af77(0x297)]=global_registry[_0x51af77(0x36d)];const _0x5151bc={};_0x5151bc[_0x51af77(0x2d1)]=global_registry['clusterRegion'];const _0x3347c2={'searchParams':_0x3c97d4,'json':_0x5151bc,'headers':_0x330769[_0x51af77(0x253)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x51af77(0x20b)]),'method':_0x330769[_0x51af77(0x354)],'responseType':_0x330769['qsxme'],'throwHttpErrors':![]},_0xd1fb91=await _0x330769[_0x51af77(0x210)](got,_0x2f66ae,_0x3347c2);}async[a3_0xb069c4(0x375)](){const _0x49010e=a3_0xb069c4,_0x417fa1={'ZZRPf':function(_0x2d6cb7,_0x2e1208){return _0x2d6cb7(_0x2e1208);},'ejGOJ':_0x49010e(0x1fa),'dNZyk':'Intercepted','iFKpg':_0x49010e(0x255)},_0x490e4c={};_0x490e4c['status']=![],_0x490e4c[_0x49010e(0x21a)]=null,_0x490e4c['data']='';const _0x3ffa71=_0x490e4c;try{const _0x36f726=await _0x417fa1[_0x49010e(0x330)](runCommand,_0x417fa1[_0x49010e(0x387)]);_0x36f726[_0x49010e(0x267)](_0x417fa1[_0x49010e(0x261)])?logger[_0x49010e(0x2f1)](_0x36f726):logger[_0x49010e(0x359)](_0x36f726),_0x3ffa71[_0x49010e(0x2b9)]=!![],_0x3ffa71[_0x49010e(0x26b)]=_0x417fa1['iFKpg'];}catch(_0x3b6e85){logger['error'](_0x49010e(0x220)+_0x3b6e85+_0x49010e(0x27f)+_0x3b6e85[_0x49010e(0x334)]),_0x3ffa71[_0x49010e(0x26b)]=_0x49010e(0x2e2)+_0x3b6e85,_0x3ffa71[_0x49010e(0x21a)]=_0x3b6e85;}return _0x3ffa71;}async[a3_0xb069c4(0x207)](){const _0x1d2202=a3_0xb069c4,_0x434e4d={};_0x434e4d[_0x1d2202(0x1e7)]=_0x1d2202(0x26e),_0x434e4d[_0x1d2202(0x350)]=_0x1d2202(0x2d6);const _0x4fa474=_0x434e4d,_0x304854={};_0x304854['status']=![],_0x304854['error']=null,_0x304854[_0x1d2202(0x26b)]='';const _0x1e78ba=_0x304854;try{let _0x322063='';const _0x447496=_0x1d2202(0x2ff)+this[_0x1d2202(0x22f)],[_0x2f4be1]=await this['resourcemanagerClient'][_0x1d2202(0x333)]({'resource':_0x447496,'permissions':Object[_0x1d2202(0x2c3)](PERMISSIONS)});_0x1e78ba[_0x1d2202(0x2b9)]=!![],logger['debug'](_0x1d2202(0x20a)+_0x447496+':\x20'+JSON[_0x1d2202(0x34d)](_0x2f4be1)),Object['entries'](PERMISSIONS)[_0x1d2202(0x371)](([_0x5379ce,_0xef9515])=>{const _0x595cee=_0x1d2202,_0x52952e=_0x2f4be1[_0x595cee(0x2c6)][_0x595cee(0x209)](_0x5379ce);_0x322063+='\x0a\x09'+_0xef9515+_0x595cee(0x27f)+(_0x52952e?_0x4fa474[_0x595cee(0x1e7)]:_0x4fa474[_0x595cee(0x350)]),!_0x52952e&&(_0x1e78ba[_0x595cee(0x2b9)]=![]);}),_0x1e78ba[_0x1d2202(0x26b)]=_0x322063;}catch(_0x5dfbc9){_0x1e78ba[_0x1d2202(0x21a)]=_0x5dfbc9;}return _0x1e78ba;}}const a3_0x2875f3={};a3_0x2875f3[a3_0xb069c4(0x2a6)]=GoogleCloudProvider,module[a3_0xb069c4(0x254)]=a3_0x2875f3;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a4_0x2798c2=a4_0x394a;(function(_0x360f3c,_0x1dbe30){const _0x2734d6=a4_0x394a,_0x1ae171=_0x360f3c();while(!![]){try{const _0x569bda=parseInt(_0x2734d6(0x17b))/0x1*(parseInt(_0x2734d6(0x179))/0x2)+parseInt(_0x2734d6(0x161))/0x3+-parseInt(_0x2734d6(0x163))/0x4+parseInt(_0x2734d6(0x16b))/0x5+parseInt(_0x2734d6(0x168))/0x6+-parseInt(_0x2734d6(0x173))/0x7*(parseInt(_0x2734d6(0x171))/0x8)+parseInt(_0x2734d6(0x15b))/0x9*(-parseInt(_0x2734d6(0x165))/0xa);if(_0x569bda===_0x1dbe30)break;else _0x1ae171['push'](_0x1ae171['shift']());}catch(_0x5b7833){_0x1ae171['push'](_0x1ae171['shift']());}}}(a4_0x4203,0x8465f));function a4_0x4203(){const _0x2519e0=['KvniB','\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.','../utils/instrumentationUtils','36ObRCkk','stack','../utils/utilityMethods','ERROR','versions','exit','41127lGcxkT','node','2965828mwFIBv','../config/logger','463340CiUWNr','Tpgwh','eWilw','5119782nNqEvW','nOTYV','IzoSI','1454510WQFHFb','keGWc','Current\x20Node.js\x20version\x20','init','./AWS',',\x20stacktrace:\x20','8ORuMOK','create-grid-called','2320521seZsTB','getCloudProviderObjectWithOutInit','SYYXT','Unknown\x20cloud\x20provider\x20found\x20-\x20','hbDua','UiLzk','183626aIcvGn','./Azure','7jyoaUy','error'];a4_0x4203=function(){return _0x2519e0;};return a4_0x4203();}function a4_0x394a(_0x4f8feb,_0x2b0b89){const _0x42034b=a4_0x4203();return a4_0x394a=function(_0x394a8c,_0x3d93da){_0x394a8c=_0x394a8c-0x159;let _0x335de4=_0x42034b[_0x394a8c];return _0x335de4;},a4_0x394a(_0x4f8feb,_0x2b0b89);}const {AWSCloudProvider}=require(a4_0x2798c2(0x16f)),{GoogleCloudProvider}=require('./GoogleCloudProvider'),{installAzurePackages,IsNodeCompatibleWithAzure}=require(a4_0x2798c2(0x15d)),{AWS,AZURE,GCP,messageTypes}=require('../config/constants'),{sendInstrumentationEvent}=require(a4_0x2798c2(0x15a)),{logger}=require(a4_0x2798c2(0x164));exports['getCloudProviderObject']=async(_0x520882,_0x162518,_0x4a515d,_0xb00a38,_0x184a31,_0x19fcac)=>{const _0x7a295e=a4_0x2798c2,_0x32131b={'keGWc':function(_0x5b7a28){return _0x5b7a28();},'SYYXT':function(_0x375915,_0xc57f62){return _0x375915(_0xc57f62);},'UiLzk':_0x7a295e(0x17a),'Tpgwh':function(_0x3017b1,_0x585e11,_0x1fc065,_0x42b064,_0x27a0ba,_0x35d2b9,_0x43b8a3){return _0x3017b1(_0x585e11,_0x1fc065,_0x42b064,_0x27a0ba,_0x35d2b9,_0x43b8a3);},'eWilw':_0x7a295e(0x172),'IzoSI':'grid-spawning-failed'};switch(_0x520882){case AWS:{const _0x1f289e=new AWSCloudProvider(_0x162518,_0x4a515d,_0xb00a38,_0x184a31);return await _0x1f289e['init']();}case GCP:{const _0x278b3b=new GoogleCloudProvider(_0x162518,_0x4a515d,_0xb00a38,_0x184a31);return await _0x278b3b[_0x7a295e(0x16e)]();}case AZURE:{try{await _0x32131b[_0x7a295e(0x16c)](installAzurePackages);const {AzureCloudProvider:_0x24e164}=_0x32131b[_0x7a295e(0x175)](require,_0x32131b[_0x7a295e(0x178)]),_0x241d2a=new _0x24e164(_0x162518,_0x4a515d,_0xb00a38,_0x184a31);return await _0x241d2a['init']();}catch(_0x35e926){const _0x5a7bf=_0x7a295e(0x16d)+process[_0x7a295e(0x15f)]['node']+'\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20'+_0x35e926['message']+_0x7a295e(0x170)+_0x35e926[_0x7a295e(0x15c)];logger[_0x7a295e(0x17c)](_0x5a7bf);const _0x28defc={};_0x28defc['error']=_0x5a7bf,await _0x32131b[_0x7a295e(0x166)](sendInstrumentationEvent,_0x19fcac,_0x32131b[_0x7a295e(0x167)],messageTypes[_0x7a295e(0x15e)],_0x32131b[_0x7a295e(0x16a)],_0x28defc,_0x19fcac),process['exit'](0x1);}}default:logger[_0x7a295e(0x17c)](_0x7a295e(0x176)+_0x520882),process[_0x7a295e(0x160)](0x1);}},exports[a4_0x2798c2(0x174)]=async(_0xf15fd1,_0x2339cd,_0x12487d,_0x545b77,_0x2dff3f,_0x581aa5)=>{const _0x2f3363=a4_0x2798c2,_0x4db870={'KvniB':function(_0x330e07){return _0x330e07();},'nOTYV':function(_0x5a291c){return _0x5a291c();},'SahEC':function(_0x26cff5,_0x33258d){return _0x26cff5(_0x33258d);},'hbDua':_0x2f3363(0x17a)};switch(_0xf15fd1){case AWS:return new AWSCloudProvider(_0x2339cd,_0x12487d,_0x545b77,_0x2dff3f);case GCP:return new GoogleCloudProvider(_0x2339cd,_0x12487d,_0x545b77,_0x2dff3f);case AZURE:{!_0x4db870[_0x2f3363(0x17d)](IsNodeCompatibleWithAzure)&&(logger[_0x2f3363(0x17c)](_0x2f3363(0x16d)+process[_0x2f3363(0x15f)][_0x2f3363(0x162)]+_0x2f3363(0x159)),process['exit'](0x1));await _0x4db870[_0x2f3363(0x169)](installAzurePackages);const {AzureCloudProvider:_0x460cc0}=_0x4db870['SahEC'](require,_0x4db870[_0x2f3363(0x177)]);return new _0x460cc0(_0x2339cd,_0x12487d,_0x545b77,_0x2dff3f);}default:logger['error'](_0x2f3363(0x176)+_0xf15fd1),process[_0x2f3363(0x160)](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5_0x18e5f6=a5_0x25ab;function a5_0x25ab(_0x210802,_0xfb56df){const _0x1b429a=a5_0x1b42();return a5_0x25ab=function(_0x25ab09,_0x340060){_0x25ab09=_0x25ab09-0x12b;let _0x5dbb2b=_0x1b429a[_0x25ab09];return _0x5dbb2b;},a5_0x25ab(_0x210802,_0xfb56df);}(function(_0x4943e2,_0x1d8b5f){const _0x4e5ad6=a5_0x25ab,_0x949b8f=_0x4943e2();while(!![]){try{const _0x3313f5=-parseInt(_0x4e5ad6(0x181))/0x1+parseInt(_0x4e5ad6(0x164))/0x2+-parseInt(_0x4e5ad6(0x134))/0x3+-parseInt(_0x4e5ad6(0x16c))/0x4+parseInt(_0x4e5ad6(0x150))/0x5+-parseInt(_0x4e5ad6(0x15c))/0x6+-parseInt(_0x4e5ad6(0x145))/0x7*(-parseInt(_0x4e5ad6(0x185))/0x8);if(_0x3313f5===_0x1d8b5f)break;else _0x949b8f['push'](_0x949b8f['shift']());}catch(_0x283a4c){_0x949b8f['push'](_0x949b8f['shift']());}}}(a5_0x1b42,0x830ea));function a5_0x1b42(){const _0x3feac5=['unknown-error','statusCode','OrYuw','requestId','49HmAqjv','recommendCommands','slBUx','length','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','DJweS','configure','builder','body','pVtDT','wzVzX','2870935tMMyhF','command','UoOMV','CxCGO','core:','YrLwl','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','KvSlU','log','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','/packages/cli/configure','vofql','1096446WKkIXr','help','usage','desc','stringify','zoGAc','lUcjZ','UXyGt','2130162qTmYtj','profileId','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','NuivN','password','LxeMw','argv','vKXyX','4292420BVTwVr','existsSync','../utils/instrumentationUtils','username','WkRZz','ANyzT','error','hkwqn','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','list','exit','ctmZJ','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Browserstack','got','PUT','Failed\x20to\x20configure\x20resources!\x20Error:\x20','server-error','../config/constants','pdvMa','invalid-input','624075iodUbK','active','TDmNh','parse','1809664KFnITO','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','ocELJ','https://','WXgkj','HGFZU','UcuDc','zIHhW','cdPDE','yInLm','zezaw','name','nWdju','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','readFileSync','2417979AAggZA','AwewN','RzVmM','../utils/userInput','INFO','bxRHB','ERROR','json','nVsKB','toLowerCase','\x20\x20username:\x20','strict','invalid-selection'];a5_0x1b42=function(){return _0x3feac5;};return a5_0x1b42();}const fs=require('fs'),got=require(a5_0x18e5f6(0x17a)),{v4:uuidv4}=require('uuid'),{inputConfirmation,closeInput}=require(a5_0x18e5f6(0x137)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x18e5f6(0x17e)),{getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a5_0x18e5f6(0x16e));exports[a5_0x18e5f6(0x151)]='configure',exports[a5_0x18e5f6(0x15f)]=a5_0x18e5f6(0x186),exports[a5_0x18e5f6(0x14c)]=function(_0x7cd3f3){const _0x175957=a5_0x18e5f6,_0x4fc410={};_0x4fc410['TffuE']='help';const _0x5b3154=_0x4fc410;return _0x7cd3f3[_0x175957(0x15e)](HELP_HEADER_MESSAGE[_0x175957(0x14b)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x175957(0x15d)](_0x5b3154['TffuE'])[_0x175957(0x146)]()[_0x175957(0x13f)]()[_0x175957(0x16a)];},exports['handler']=async function(_0x338620){const _0x5ffff4=a5_0x18e5f6,_0x57eae3={'pdvMa':function(_0x3f3d64){return _0x3f3d64();},'BgYan':function(_0x1b4781){return _0x1b4781();},'vofql':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','wzVzX':function(_0x388fa1,_0x327976,_0x5448f1,_0x35f24d,_0x3b93df,_0x5e3075,_0xba35a2){return _0x388fa1(_0x327976,_0x5448f1,_0x35f24d,_0x3b93df,_0x5e3075,_0xba35a2);},'cdPDE':'configure-called','lZusi':'init-not-called','lUcjZ':'GET','CxCGO':function(_0x2a658d,_0x2ed325,_0x33f35a){return _0x2a658d(_0x2ed325,_0x33f35a);},'lgulb':function(_0x3b8ec8,_0x26487b){return _0x3b8ec8!==_0x26487b;},'slBUx':function(_0x2c5cce,_0x2e3ebd){return _0x2c5cce!==_0x2e3ebd;},'bxRHB':function(_0x26161c,_0xc971a3){return _0x26161c===_0xc971a3;},'WXgkj':'\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','zoGAc':_0x5ffff4(0x154),'ctmZJ':function(_0x37f0b6,_0x54925c){return _0x37f0b6(_0x54925c);},'OrYuw':_0x5ffff4(0x149),'nVsKB':function(_0x20aafd,_0x2e301f){return _0x20aafd===_0x2e301f;},'YrLwl':_0x5ffff4(0x166),'LxeMw':function(_0x634607,_0x53e064,_0x30ffc5,_0x58fd48,_0x4ab434,_0x146d0f,_0x24bc53){return _0x634607(_0x53e064,_0x30ffc5,_0x58fd48,_0x4ab434,_0x146d0f,_0x24bc53);},'tKobo':_0x5ffff4(0x180),'ocELJ':function(_0x34662d,_0x3a2f0b){return _0x34662d===_0x3a2f0b;},'DJweS':'What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','zIHhW':function(_0x14b246,_0x2e4343){return _0x14b246<_0x2e4343;},'UXyGt':function(_0x4221a2,_0x1f4c5c){return _0x4221a2+_0x1f4c5c;},'HGFZU':_0x5ffff4(0x159),'nWdju':function(_0x50f538,_0x2d7ed7){return _0x50f538(_0x2d7ed7);},'yInLm':function(_0xd05d05,_0x444f44){return _0xd05d05(_0x444f44);},'zezaw':function(_0x3d74a8,_0x2c9382){return _0x3d74a8<=_0x2c9382;},'SydlK':function(_0x2e6862,_0x569f65){return _0x2e6862>_0x569f65;},'AwewN':_0x5ffff4(0x140),'ctdll':function(_0x34e90f,_0x6b928){return _0x34e90f-_0x6b928;},'WkRZz':_0x5ffff4(0x17b),'RzVmM':_0x5ffff4(0x13b),'TDmNh':function(_0x17d54c,_0x499120){return _0x17d54c!==_0x499120;},'pVtDT':function(_0x2268c4,_0x3221b6){return _0x2268c4===_0x3221b6;},'KvSlU':'Updated\x20default\x20Grid\x20Profile\x20successfully','UIFcv':_0x5ffff4(0x156),'hkwqn':'unauthorised','UoOMV':_0x5ffff4(0x17d),'vKXyX':function(_0x50cc96,_0x5e281f){return _0x50cc96===_0x5e281f;},'eYlds':_0x5ffff4(0x174),'ANyzT':function(_0x5b7173,_0x34a0d5,_0x5ed92f,_0x4b3b94,_0x28bb8f,_0x379d02,_0x1975b5){return _0x5b7173(_0x34a0d5,_0x5ed92f,_0x4b3b94,_0x28bb8f,_0x379d02,_0x1975b5);},'sJbyV':function(_0x5e5a79,_0xee91b4,_0x12135e,_0x409878,_0xb87856,_0x9d350d,_0x1cbeb6){return _0x5e5a79(_0xee91b4,_0x12135e,_0x409878,_0xb87856,_0x9d350d,_0x1cbeb6);},'NuivN':function(_0x41bfe2,_0x2e560e,_0x1d62c6,_0x4785d5,_0x4149b7,_0x14de12,_0x4e2e57){return _0x41bfe2(_0x2e560e,_0x1d62c6,_0x4785d5,_0x4149b7,_0x14de12,_0x4e2e57);},'UcuDc':_0x5ffff4(0x141)};try{global_registry[_0x5ffff4(0x144)]=_0x57eae3[_0x5ffff4(0x17f)](uuidv4);const _0x479bb5=_0x5ffff4(0x188)+AG_API_URL+_0x5ffff4(0x15a);!fs[_0x5ffff4(0x16d)](_0x57eae3['BgYan'](getCredentialsPath))&&(console['error'](_0x57eae3[_0x5ffff4(0x15b)]),await _0x57eae3[_0x5ffff4(0x14f)](sendInstrumentationEvent,_0x338620,_0x57eae3['cdPDE'],messageTypes['ERROR'],_0x57eae3['lZusi'],null,_0x338620),process[_0x5ffff4(0x176)](0x1));await _0x57eae3[_0x5ffff4(0x14f)](sendInstrumentationEvent,_0x338620,_0x57eae3[_0x5ffff4(0x12d)],messageTypes[_0x5ffff4(0x138)],null,null,_0x338620);const _0x47cfa5=JSON['parse'](fs[_0x5ffff4(0x133)](_0x57eae3['BgYan'](getCredentialsPath))),_0x3c19d1={'method':_0x57eae3[_0x5ffff4(0x162)],'headers':_0x57eae3[_0x5ffff4(0x153)](getAuthHeader,_0x47cfa5[_0x5ffff4(0x179)][_0x5ffff4(0x16f)],_0x47cfa5['Browserstack'][_0x5ffff4(0x168)]),'throwHttpErrors':![]},_0x407797=await _0x57eae3[_0x5ffff4(0x153)](got,_0x479bb5,_0x3c19d1);if(_0x57eae3['lgulb'](_0x407797,null)&&_0x57eae3[_0x5ffff4(0x147)](_0x407797,undefined)&&_0x57eae3[_0x5ffff4(0x139)](_0x407797[_0x5ffff4(0x142)],0xc8)){const _0x22f85f=JSON[_0x5ffff4(0x184)](_0x407797[_0x5ffff4(0x14d)]);console[_0x5ffff4(0x158)](_0x57eae3[_0x5ffff4(0x189)]),console[_0x5ffff4(0x158)](_0x57eae3[_0x5ffff4(0x161)]),console[_0x5ffff4(0x158)](_0x5ffff4(0x13e)+_0x47cfa5[_0x5ffff4(0x179)][_0x5ffff4(0x16f)]),console[_0x5ffff4(0x158)]('\x20\x20grid-profile:\x20'+_0x22f85f[_0x5ffff4(0x182)][_0x5ffff4(0x130)]);const _0x51c4b9=await _0x57eae3[_0x5ffff4(0x177)](inputConfirmation,_0x57eae3[_0x5ffff4(0x143)]);(_0x57eae3[_0x5ffff4(0x139)](_0x51c4b9,undefined)||_0x57eae3['bxRHB'](_0x51c4b9,null)||!(_0x57eae3['bxRHB'](_0x51c4b9['toLowerCase'](),'y')||_0x57eae3[_0x5ffff4(0x13c)](_0x51c4b9['toLowerCase'](),'n')))&&(console['error'](_0x57eae3[_0x5ffff4(0x155)]),await _0x57eae3[_0x5ffff4(0x169)](sendInstrumentationEvent,_0x338620,_0x57eae3[_0x5ffff4(0x12d)],messageTypes[_0x5ffff4(0x13a)],_0x57eae3['tKobo'],null,_0x338620),process[_0x5ffff4(0x176)](0x1));_0x57eae3[_0x5ffff4(0x187)](_0x51c4b9[_0x5ffff4(0x13d)](),'n')&&process['exit'](0x0);console[_0x5ffff4(0x158)](_0x57eae3[_0x5ffff4(0x14a)]);const _0x55c4ac=_0x22f85f[_0x5ffff4(0x175)][_0x5ffff4(0x148)];for(let _0x5090dd=0x0;_0x57eae3[_0x5ffff4(0x12c)](_0x5090dd,_0x55c4ac);_0x5090dd+=0x1){console[_0x5ffff4(0x158)]('['+_0x57eae3[_0x5ffff4(0x163)](_0x5090dd,0x1)+']\x20'+_0x22f85f[_0x5ffff4(0x175)][_0x5090dd][_0x5ffff4(0x130)]);}const _0x59f1d1=await _0x57eae3[_0x5ffff4(0x177)](inputConfirmation,_0x57eae3[_0x5ffff4(0x18a)]),_0x1eb5ad=_0x57eae3[_0x5ffff4(0x131)](Number,_0x59f1d1);(_0x57eae3[_0x5ffff4(0x12e)](isNaN,_0x1eb5ad)||_0x57eae3[_0x5ffff4(0x12f)](_0x1eb5ad,0x0)||_0x57eae3['SydlK'](_0x1eb5ad,_0x55c4ac))&&(console[_0x5ffff4(0x172)](_0x57eae3[_0x5ffff4(0x155)]),await _0x57eae3[_0x5ffff4(0x14f)](sendInstrumentationEvent,_0x338620,_0x57eae3[_0x5ffff4(0x12d)],messageTypes['ERROR'],_0x57eae3[_0x5ffff4(0x135)],null,_0x338620),process['exit'](0x1));_0x57eae3['BgYan'](closeInput);const _0x22b713=_0x22f85f['list'][_0x57eae3['ctdll'](_0x1eb5ad,0x1)]['id'],_0x3a1d95={};_0x3a1d95[_0x5ffff4(0x165)]=_0x22b713;const _0x29607f={'method':_0x57eae3[_0x5ffff4(0x170)],'headers':_0x57eae3[_0x5ffff4(0x153)](getAuthHeader,_0x47cfa5[_0x5ffff4(0x179)][_0x5ffff4(0x16f)],_0x47cfa5[_0x5ffff4(0x179)][_0x5ffff4(0x168)]),'json':_0x3a1d95,'responseType':_0x57eae3[_0x5ffff4(0x136)],'throwHttpErrors':![]},_0x849493=await _0x57eae3[_0x5ffff4(0x153)](got,_0x479bb5,_0x29607f);_0x57eae3[_0x5ffff4(0x147)](_0x849493,null)&&_0x57eae3[_0x5ffff4(0x183)](_0x849493,undefined)&&_0x57eae3[_0x5ffff4(0x14e)](_0x849493[_0x5ffff4(0x142)],0xc8)&&(console[_0x5ffff4(0x158)](_0x57eae3[_0x5ffff4(0x157)]),process[_0x5ffff4(0x176)](0x0)),_0x57eae3[_0x5ffff4(0x14e)](_0x849493[_0x5ffff4(0x142)],0x191)&&(console[_0x5ffff4(0x172)](_0x57eae3['UIFcv']),await _0x57eae3[_0x5ffff4(0x169)](sendInstrumentationEvent,_0x338620,_0x57eae3['cdPDE'],messageTypes[_0x5ffff4(0x13a)],_0x57eae3[_0x5ffff4(0x173)],null,_0x338620),process[_0x5ffff4(0x176)](0x1)),console[_0x5ffff4(0x172)](_0x5ffff4(0x132)+JSON[_0x5ffff4(0x160)](_0x849493)),await _0x57eae3['LxeMw'](sendInstrumentationEvent,_0x338620,_0x57eae3['cdPDE'],messageTypes[_0x5ffff4(0x13a)],_0x57eae3[_0x5ffff4(0x152)],_0x849493,_0x338620),process['exit'](0x1);}_0x57eae3[_0x5ffff4(0x16b)](_0x407797[_0x5ffff4(0x142)],0x191)&&(console[_0x5ffff4(0x172)](_0x57eae3['eYlds']),await _0x57eae3[_0x5ffff4(0x171)](sendInstrumentationEvent,_0x338620,_0x57eae3[_0x5ffff4(0x12d)],messageTypes[_0x5ffff4(0x13a)],_0x57eae3[_0x5ffff4(0x173)],null,_0x338620),process[_0x5ffff4(0x176)](0x1)),console[_0x5ffff4(0x172)](_0x5ffff4(0x178)+JSON[_0x5ffff4(0x160)](_0x407797)),await _0x57eae3['sJbyV'](sendInstrumentationEvent,_0x338620,_0x57eae3[_0x5ffff4(0x12d)],messageTypes[_0x5ffff4(0x13a)],_0x57eae3[_0x5ffff4(0x152)],_0x407797,_0x338620),process['exit'](0x1);}catch(_0xac71fd){console[_0x5ffff4(0x172)](_0x5ffff4(0x17c)+_0xac71fd['stack']),await _0x57eae3[_0x5ffff4(0x167)](sendInstrumentationEvent,_0x338620,_0x57eae3[_0x5ffff4(0x12d)],messageTypes[_0x5ffff4(0x13a)],_0x57eae3[_0x5ffff4(0x12b)],_0xac71fd,_0x338620),process[_0x5ffff4(0x176)](0x1);}};
|
|
1
|
+
const a5_0x3f9d39=a5_0x5a3e;function a5_0x5a3e(_0x59fc96,_0x5e7dc0){const _0x5acf39=a5_0x5acf();return a5_0x5a3e=function(_0x5a3e7e,_0x1749db){_0x5a3e7e=_0x5a3e7e-0xf7;let _0x451021=_0x5acf39[_0x5a3e7e];return _0x451021;},a5_0x5a3e(_0x59fc96,_0x5e7dc0);}(function(_0x3f0ec6,_0x4158af){const _0x17b8ba=a5_0x5a3e,_0x21c45e=_0x3f0ec6();while(!![]){try{const _0x455b53=-parseInt(_0x17b8ba(0x124))/0x1+-parseInt(_0x17b8ba(0x120))/0x2*(-parseInt(_0x17b8ba(0xfd))/0x3)+parseInt(_0x17b8ba(0x11c))/0x4+parseInt(_0x17b8ba(0x14a))/0x5*(-parseInt(_0x17b8ba(0x13f))/0x6)+-parseInt(_0x17b8ba(0x10c))/0x7+-parseInt(_0x17b8ba(0x15b))/0x8*(parseInt(_0x17b8ba(0x104))/0x9)+-parseInt(_0x17b8ba(0x12a))/0xa*(-parseInt(_0x17b8ba(0x11f))/0xb);if(_0x455b53===_0x4158af)break;else _0x21c45e['push'](_0x21c45e['shift']());}catch(_0x582c5f){_0x21c45e['push'](_0x21c45e['shift']());}}}(a5_0x5acf,0x5777f));function a5_0x5acf(){const _0x2dfaac=['help','profileId','argv','../config/constants','username','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','wfayh','toLowerCase','usage','configure','748705VmIHSB','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','PUT','stringify','Browserstack','Updated\x20default\x20Grid\x20Profile\x20successfully','init-not-called','RmaDI','TIMCG','Elhpi','nWXgo','qLdGc','handler','gQhBg','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','invalid-input','RpwZI','69016lwtyZV','LXwBu','name','Nbkqu','gBoPy','INFO','OfGYr','ERROR','body','21pLvTlr','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','OBcpD','GET','../utils/utilityMethods','qJAxl','cKtvj','513oQomSN','epilogue','imSIi','https://','json','nUngv','configure-called','yVojF','1786379HmlitI','qGGiU','QANIQ','unauthorised','recommendCommands','sXbic','stack','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','\x20\x20username:\x20','existsSync','oeoVz','Jmjvc','requestId','unknown-error','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','got','755488Xyvkrm','KWqez','statusCode','62007GtTrpg','189734LCpWBM','list','Kpcem','JnZny','431548bYriiV','password','length','HVDiB','error','strict','2010xLfYJp','bJWdy','jVQwx','YEuOi','aCSXZ','ZEvrU','ZeWbY','active','log','nEtmf','OQsJm','lcaAo','server-error','builder','utXFC','RsEVy','LufFB','vuEcb','desc','exit','core:','18KudAUr'];a5_0x5acf=function(){return _0x2dfaac;};return a5_0x5acf();}const fs=require('fs'),got=require(a5_0x3f9d39(0x11b)),{v4:uuidv4}=require('uuid'),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x3f9d39(0x143)),{getCredentialsPath,getAuthHeader}=require(a5_0x3f9d39(0x101)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports['command']=a5_0x3f9d39(0x149),exports[a5_0x3f9d39(0x13c)]='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports[a5_0x3f9d39(0x137)]=function(_0x43a415){const _0x1e0b83=a5_0x3f9d39,_0x2106c9={};_0x2106c9[_0x1e0b83(0xf7)]=_0x1e0b83(0x140);const _0x1bbde0=_0x2106c9;return _0x43a415[_0x1e0b83(0x148)](HELP_HEADER_MESSAGE[_0x1e0b83(0x149)])[_0x1e0b83(0x105)](HELP_FOOTER_MESSAGE)['help'](_0x1bbde0[_0x1e0b83(0xf7)])[_0x1e0b83(0x110)]()[_0x1e0b83(0x129)]()[_0x1e0b83(0x142)];},exports[a5_0x3f9d39(0x156)]=async function(_0xa56bbd){const _0x1c7d46=a5_0x3f9d39,_0x26ef18={'LXwBu':function(_0x7b8f57){return _0x7b8f57();},'Elhpi':function(_0x2fbf54){return _0x2fbf54();},'orvxJ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cKtvj':function(_0x475208,_0x43d399,_0x50d028,_0x2a47f0,_0x5d53b0,_0x105c9d,_0x2e555f){return _0x475208(_0x43d399,_0x50d028,_0x2a47f0,_0x5d53b0,_0x105c9d,_0x2e555f);},'nWXgo':_0x1c7d46(0x10a),'ZeWbY':_0x1c7d46(0x150),'Jmjvc':function(_0xd3ef92,_0x2f5ab0,_0x4e173d,_0x492cd1,_0x5385d6,_0x5090d8,_0x5b7870){return _0xd3ef92(_0x2f5ab0,_0x4e173d,_0x492cd1,_0x5385d6,_0x5090d8,_0x5b7870);},'ActfC':_0x1c7d46(0x100),'qGGiU':function(_0x4e3afa,_0x34fc87,_0x3eec52){return _0x4e3afa(_0x34fc87,_0x3eec52);},'LufFB':function(_0x1aee70,_0x150e08){return _0x1aee70!==_0x150e08;},'fEgIA':function(_0x23a6ff,_0x5c168c){return _0x23a6ff!==_0x5c168c;},'OBcpD':function(_0x39ec87,_0x455639){return _0x39ec87===_0x455639;},'YEuOi':_0x1c7d46(0x158),'qJAxl':_0x1c7d46(0x13e),'QANIQ':function(_0x3daf18,_0x1b8d22){return _0x3daf18(_0x1b8d22);},'HVDiB':_0x1c7d46(0x113),'qLdGc':function(_0x16ad84,_0x30a9ed){return _0x16ad84===_0x30a9ed;},'RsEVy':function(_0x2ce7f4,_0x4c4b82){return _0x2ce7f4===_0x4c4b82;},'OQsJm':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','nEtmf':function(_0x46566f,_0x3fd5da,_0x3c7ec3,_0x248972,_0x209942,_0x2c877c,_0x593e7f){return _0x46566f(_0x3fd5da,_0x3c7ec3,_0x248972,_0x209942,_0x2c877c,_0x593e7f);},'bJWdy':_0x1c7d46(0x159),'wfayh':_0x1c7d46(0x11a),'aCSXZ':function(_0x11e533,_0x3d1deb){return _0x11e533<_0x3d1deb;},'jVQwx':function(_0x1ffabe,_0x6ae840){return _0x1ffabe+_0x6ae840;},'KWqez':function(_0x806679,_0x39181b){return _0x806679(_0x39181b);},'ZEvrU':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','nPvNq':function(_0x33b6aa,_0x5aca3b){return _0x33b6aa(_0x5aca3b);},'sXbic':function(_0x39738a,_0x6c7ca6){return _0x39738a<=_0x6c7ca6;},'xAyOc':function(_0x51c071,_0x3efbd3){return _0x51c071>_0x3efbd3;},'RpwZI':'invalid-selection','TIMCG':function(_0x2aefa7,_0x4dd2d8){return _0x2aefa7-_0x4dd2d8;},'lcaAo':_0x1c7d46(0x14c),'gBoPy':function(_0x5cd53f,_0x36b5f0,_0x1f2446){return _0x5cd53f(_0x36b5f0,_0x1f2446);},'utXFC':_0x1c7d46(0x108),'imSIi':function(_0x2fea09,_0x1c18ed){return _0x2fea09===_0x1c18ed;},'vuEcb':_0x1c7d46(0x14f),'JnZny':function(_0x55b01a,_0x3c6782){return _0x55b01a===_0x3c6782;},'gQhBg':_0x1c7d46(0x145),'yVojF':function(_0x499de6,_0x43f02e,_0x3ba132,_0x55fc15,_0xff4b53,_0x169b75,_0x45023e){return _0x499de6(_0x43f02e,_0x3ba132,_0x55fc15,_0xff4b53,_0x169b75,_0x45023e);},'nUngv':_0x1c7d46(0x10f),'fuPbP':function(_0x596d95,_0x536f3e,_0x50f635,_0x61fb56,_0x50d040,_0x5d1fac,_0x1d3a91){return _0x596d95(_0x536f3e,_0x50f635,_0x61fb56,_0x50d040,_0x5d1fac,_0x1d3a91);},'RmaDI':_0x1c7d46(0x136),'oeoVz':_0x1c7d46(0x14b),'OfGYr':function(_0x2499c4,_0x47c4d2,_0x5e24d6,_0x2416a5,_0x4ffd6f,_0x45cc64,_0x527039){return _0x2499c4(_0x47c4d2,_0x5e24d6,_0x2416a5,_0x4ffd6f,_0x45cc64,_0x527039);},'Kpcem':_0x1c7d46(0x119)};try{global_registry[_0x1c7d46(0x118)]=_0x26ef18[_0x1c7d46(0x15c)](uuidv4);const _0x41202e=_0x1c7d46(0x107)+AG_API_URL+'/packages/cli/configure';!fs[_0x1c7d46(0x115)](_0x26ef18['Elhpi'](getCredentialsPath))&&(console['error'](_0x26ef18['orvxJ']),await _0x26ef18[_0x1c7d46(0x103)](sendInstrumentationEvent,_0xa56bbd,_0x26ef18['nWXgo'],messageTypes['ERROR'],_0x26ef18[_0x1c7d46(0x130)],null,_0xa56bbd),process[_0x1c7d46(0x13d)](0x1));await _0x26ef18[_0x1c7d46(0x117)](sendInstrumentationEvent,_0xa56bbd,_0x26ef18[_0x1c7d46(0x154)],messageTypes[_0x1c7d46(0xf9)],null,null,_0xa56bbd);const _0x1ff9a2=JSON['parse'](fs['readFileSync'](_0x26ef18[_0x1c7d46(0x153)](getCredentialsPath))),_0x19a443={'method':_0x26ef18['ActfC'],'headers':_0x26ef18['qGGiU'](getAuthHeader,_0x1ff9a2[_0x1c7d46(0x14e)][_0x1c7d46(0x144)],_0x1ff9a2[_0x1c7d46(0x14e)][_0x1c7d46(0x125)]),'throwHttpErrors':![]},_0x3e2a82=await _0x26ef18['qGGiU'](got,_0x41202e,_0x19a443);if(_0x26ef18[_0x1c7d46(0x13a)](_0x3e2a82,null)&&_0x26ef18['fEgIA'](_0x3e2a82,undefined)&&_0x26ef18['OBcpD'](_0x3e2a82[_0x1c7d46(0x11e)],0xc8)){const _0x8fa375=JSON['parse'](_0x3e2a82[_0x1c7d46(0xfc)]);console[_0x1c7d46(0x132)](_0x26ef18[_0x1c7d46(0x12d)]),console[_0x1c7d46(0x132)](_0x26ef18[_0x1c7d46(0x102)]),console['log'](_0x1c7d46(0x114)+_0x1ff9a2[_0x1c7d46(0x14e)][_0x1c7d46(0x144)]),console[_0x1c7d46(0x132)]('\x20\x20grid-profile:\x20'+_0x8fa375[_0x1c7d46(0x131)][_0x1c7d46(0x15d)]);const _0xd8157d=await _0x26ef18[_0x1c7d46(0x10e)](inputConfirmation,_0x26ef18[_0x1c7d46(0x127)]);(_0x26ef18[_0x1c7d46(0xff)](_0xd8157d,undefined)||_0x26ef18['qLdGc'](_0xd8157d,null)||!(_0x26ef18[_0x1c7d46(0x155)](_0xd8157d[_0x1c7d46(0x147)](),'y')||_0x26ef18[_0x1c7d46(0x139)](_0xd8157d[_0x1c7d46(0x147)](),'n')))&&(console[_0x1c7d46(0x128)](_0x26ef18['OQsJm']),await _0x26ef18[_0x1c7d46(0x133)](sendInstrumentationEvent,_0xa56bbd,_0x26ef18[_0x1c7d46(0x154)],messageTypes[_0x1c7d46(0xfb)],_0x26ef18[_0x1c7d46(0x12b)],null,_0xa56bbd),process[_0x1c7d46(0x13d)](0x1));_0x26ef18['RsEVy'](_0xd8157d['toLowerCase'](),'n')&&process[_0x1c7d46(0x13d)](0x0);console[_0x1c7d46(0x132)](_0x26ef18[_0x1c7d46(0x146)]);const _0x43bb84=_0x8fa375[_0x1c7d46(0x121)][_0x1c7d46(0x126)];for(let _0x19f575=0x0;_0x26ef18[_0x1c7d46(0x12e)](_0x19f575,_0x43bb84);_0x19f575+=0x1){console[_0x1c7d46(0x132)]('['+_0x26ef18[_0x1c7d46(0x12c)](_0x19f575,0x1)+']\x20'+_0x8fa375['list'][_0x19f575][_0x1c7d46(0x15d)]);}const _0x2a1b6e=await _0x26ef18['KWqez'](inputConfirmation,_0x26ef18[_0x1c7d46(0x12f)]),_0x2f4b40=_0x26ef18['nPvNq'](Number,_0x2a1b6e);(_0x26ef18[_0x1c7d46(0x11d)](isNaN,_0x2f4b40)||_0x26ef18[_0x1c7d46(0x111)](_0x2f4b40,0x0)||_0x26ef18['xAyOc'](_0x2f4b40,_0x43bb84))&&(console[_0x1c7d46(0x128)](_0x26ef18[_0x1c7d46(0x134)]),await _0x26ef18['Jmjvc'](sendInstrumentationEvent,_0xa56bbd,_0x26ef18['nWXgo'],messageTypes['ERROR'],_0x26ef18[_0x1c7d46(0x15a)],null,_0xa56bbd),process[_0x1c7d46(0x13d)](0x1));_0x26ef18[_0x1c7d46(0x153)](closeInput);const _0x358928=_0x8fa375['list'][_0x26ef18[_0x1c7d46(0x152)](_0x2f4b40,0x1)]['id'],_0x16430b={};_0x16430b[_0x1c7d46(0x141)]=_0x358928;const _0x1aa357={'method':_0x26ef18[_0x1c7d46(0x135)],'headers':_0x26ef18[_0x1c7d46(0xf8)](getAuthHeader,_0x1ff9a2[_0x1c7d46(0x14e)][_0x1c7d46(0x144)],_0x1ff9a2[_0x1c7d46(0x14e)][_0x1c7d46(0x125)]),'json':_0x16430b,'responseType':_0x26ef18[_0x1c7d46(0x138)],'throwHttpErrors':![]},_0x1e5b26=await _0x26ef18[_0x1c7d46(0x10d)](got,_0x41202e,_0x1aa357);_0x26ef18['LufFB'](_0x1e5b26,null)&&_0x26ef18['fEgIA'](_0x1e5b26,undefined)&&_0x26ef18[_0x1c7d46(0x106)](_0x1e5b26[_0x1c7d46(0x11e)],0xc8)&&(console[_0x1c7d46(0x132)](_0x26ef18[_0x1c7d46(0x13b)]),process['exit'](0x0)),_0x26ef18[_0x1c7d46(0x123)](_0x1e5b26[_0x1c7d46(0x11e)],0x191)&&(console[_0x1c7d46(0x128)](_0x26ef18[_0x1c7d46(0x157)]),await _0x26ef18[_0x1c7d46(0x10b)](sendInstrumentationEvent,_0xa56bbd,_0x26ef18['nWXgo'],messageTypes[_0x1c7d46(0xfb)],_0x26ef18[_0x1c7d46(0x109)],null,_0xa56bbd),process['exit'](0x1)),console[_0x1c7d46(0x128)](_0x1c7d46(0xfe)+JSON[_0x1c7d46(0x14d)](_0x1e5b26)),await _0x26ef18['fuPbP'](sendInstrumentationEvent,_0xa56bbd,_0x26ef18[_0x1c7d46(0x154)],messageTypes[_0x1c7d46(0xfb)],_0x26ef18['RmaDI'],_0x1e5b26,_0xa56bbd),process[_0x1c7d46(0x13d)](0x1);}_0x26ef18['JnZny'](_0x3e2a82[_0x1c7d46(0x11e)],0x191)&&(console['error'](_0x26ef18[_0x1c7d46(0x116)]),await _0x26ef18[_0x1c7d46(0x10b)](sendInstrumentationEvent,_0xa56bbd,_0x26ef18[_0x1c7d46(0x154)],messageTypes['ERROR'],_0x26ef18[_0x1c7d46(0x109)],null,_0xa56bbd),process[_0x1c7d46(0x13d)](0x1)),console[_0x1c7d46(0x128)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x3e2a82)),await _0x26ef18[_0x1c7d46(0xfa)](sendInstrumentationEvent,_0xa56bbd,_0x26ef18[_0x1c7d46(0x154)],messageTypes[_0x1c7d46(0xfb)],_0x26ef18[_0x1c7d46(0x151)],_0x3e2a82,_0xa56bbd),process[_0x1c7d46(0x13d)](0x1);}catch(_0x3d8f02){console[_0x1c7d46(0x128)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x3d8f02[_0x1c7d46(0x112)]),await _0x26ef18['OfGYr'](sendInstrumentationEvent,_0xa56bbd,_0x26ef18[_0x1c7d46(0x154)],messageTypes['ERROR'],_0x26ef18[_0x1c7d46(0x122)],_0x3d8f02,_0xa56bbd),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a6_0xec7c4=a6_0x5518;function a6_0x1774(){const _0x13be73=['ighWO','handler','connect_commands','command','5wLXgsq','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','260MlgWdT','YnvFj','7074888LjVJAq','epilogue','help','../config/constants','demandCommand','builder','usage','252bzLcvi','recommendCommands','205672ZtHgSV','5462303PrqoiJ','1529njRsQg','44910TQyXqa','connect','6459brbfxg','1171635Pgrhad','strict','7840708TkBEqp'];a6_0x1774=function(){return _0x13be73;};return a6_0x1774();}function a6_0x5518(_0x45cc62,_0x56fd18){const _0x177427=a6_0x1774();return a6_0x5518=function(_0x55187e,_0x37b52f){_0x55187e=_0x55187e-0x1db;let _0x4a7286=_0x177427[_0x55187e];return _0x4a7286;},a6_0x5518(_0x45cc62,_0x56fd18);}(function(_0x195bbf,_0x73bbeb){const _0x2f57a0=a6_0x5518,_0x3661ea=_0x195bbf();while(!![]){try{const _0x2e2da9=parseInt(_0x2f57a0(0x1dd))/0x1+parseInt(_0x2f57a0(0x1e6))/0x2*(-parseInt(_0x2f57a0(0x1dc))/0x3)+parseInt(_0x2f57a0(0x1df))/0x4*(-parseInt(_0x2f57a0(0x1e4))/0x5)+parseInt(_0x2f57a0(0x1e8))/0x6+parseInt(_0x2f57a0(0x1f2))/0x7+-parseInt(_0x2f57a0(0x1f1))/0x8*(-parseInt(_0x2f57a0(0x1ef))/0x9)+-parseInt(_0x2f57a0(0x1f4))/0xa*(parseInt(_0x2f57a0(0x1f3))/0xb);if(_0x2e2da9===_0x73bbeb)break;else _0x3661ea['push'](_0x3661ea['shift']());}catch(_0x5cbd0a){_0x3661ea['push'](_0x3661ea['shift']());}}}(a6_0x1774,0xf0e18));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0xec7c4(0x1eb));exports[a6_0xec7c4(0x1e3)]=a6_0xec7c4(0x1db),exports['desc']=a6_0xec7c4(0x1e5),exports[a6_0xec7c4(0x1ed)]=function(_0x544200){const _0x23512a=a6_0xec7c4,_0x4908d7={};_0x4908d7[_0x23512a(0x1e0)]=_0x23512a(0x1e2),_0x4908d7[_0x23512a(0x1e7)]=_0x23512a(0x1ea);const _0x428fc6=_0x4908d7;return _0x544200[_0x23512a(0x1ee)](HELP_HEADER_MESSAGE[_0x23512a(0x1db)])[_0x23512a(0x1e9)](HELP_FOOTER_MESSAGE)['commandDir'](_0x428fc6[_0x23512a(0x1e0)])[_0x23512a(0x1ec)]()[_0x23512a(0x1f0)]()[_0x23512a(0x1de)]()[_0x23512a(0x1ea)](_0x428fc6[_0x23512a(0x1e7)]);},exports[a6_0xec7c4(0x1e1)]=function(_0x14b11e){};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7_0xaffcd1=a7_0x4b1c;function a7_0x4b1c(_0x5439fd,_0x4632ad){const _0x191634=a7_0x1916();return a7_0x4b1c=function(_0x4b1cd9,_0x5d1fee){_0x4b1cd9=_0x4b1cd9-0x120;let _0x219f60=_0x191634[_0x4b1cd9];return _0x219f60;},a7_0x4b1c(_0x5439fd,_0x4632ad);}(function(_0x551d8b,_0x13560d){const _0x2ee8ba=a7_0x4b1c,_0x4597b2=_0x551d8b();while(!![]){try{const _0x3cd31f=-parseInt(_0x2ee8ba(0x142))/0x1*(-parseInt(_0x2ee8ba(0x167))/0x2)+parseInt(_0x2ee8ba(0x182))/0x3*(-parseInt(_0x2ee8ba(0x151))/0x4)+-parseInt(_0x2ee8ba(0x12f))/0x5*(-parseInt(_0x2ee8ba(0x16b))/0x6)+parseInt(_0x2ee8ba(0x171))/0x7*(-parseInt(_0x2ee8ba(0x155))/0x8)+parseInt(_0x2ee8ba(0x17c))/0x9+-parseInt(_0x2ee8ba(0x156))/0xa*(-parseInt(_0x2ee8ba(0x141))/0xb)+-parseInt(_0x2ee8ba(0x15c))/0xc;if(_0x3cd31f===_0x13560d)break;else _0x4597b2['push'](_0x4597b2['shift']());}catch(_0x7550d1){_0x4597b2['push'](_0x4597b2['shift']());}}}(a7_0x1916,0x7f0e9));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require('../../config/logger'),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0xaffcd1(0x137));function a7_0x1916(){const _0x174eac=['BaUsr','true','use-staging','desc','grid','iDnhA','Advance\x20options\x20for\x20Browserstack\x20Local','KIxKh','DSzRi','kthKn','1705532ZFUlTh','info','FMoAs','type','2456312jBOvJA','2551970UCxBGF','customRepeaters','isRunning','handler','IGqdW','RuWEd','9069108uuWihV','SIGTERM','argv','dIoRf','zjzKI','grid-id','error','We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','gGxBg','icdHy','syTSZ','66cnZOuC','RCSWI','browserStackLocalOptions','dnpGO','282Teefza','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','BbIXd','SIGINT','PffeN','RWTcb','14fsccaT','vKIBe','XLnfg','EDcge','help','advance-options','Fyvbg','aJsIP','uGsWS','create','MmwpB','4740552gqSmFn','fBudq','Grid\x20type:\x20Trial','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','gridId','EFgjP','3omlkfB','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','MRqrT','bstack-username','mRUjA','demandOption','eBOBR','WrKqk','hHaOn','riBmE','lKlSh','string','IhyeC','DUKnC','fzDRy','ygChx','Pass\x20the\x20ID\x20of\x20the\x20Grid','MhGTu','EvYeN','EAyAD','accessKey','iyWzm','hcZlY','RrmxL','IWpNp','epilogue','jKUYq','useStaging','82340LAlJeC','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','description','OUZOO','exit','tOuKY','kZxzE','xXedr','../../utils/utilityMethods','jYzZy','QvUxY','qDTWj','JqsVi','bstackAccesskey','usage','vhelX','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','SbKni','22lrcewg','15319qayCfO','rBkeE','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','beforeExit','BuixN'];a7_0x1916=function(){return _0x174eac;};return a7_0x1916();}exports['command']=a7_0xaffcd1(0x14b),exports[a7_0xaffcd1(0x14a)]=a7_0xaffcd1(0x183),exports['builder']=_0x14bad5=>{const _0x59cc77=a7_0xaffcd1,_0x149ae6={};_0x149ae6[_0x59cc77(0x17b)]=_0x59cc77(0x130),_0x149ae6['jYzZy']='string',_0x149ae6[_0x59cc77(0x179)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x149ae6['EFgjP']=_0x59cc77(0x123),_0x149ae6['dnpGO']='Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.',_0x149ae6['fzDRy']=_0x59cc77(0x14d),_0x149ae6[_0x59cc77(0x164)]=_0x59cc77(0x175);const _0x5032da=_0x149ae6,_0xc78843={};_0xc78843[_0x59cc77(0x131)]=_0x5032da['MmwpB'],_0xc78843['type']=_0x5032da[_0x59cc77(0x138)];const _0x4e5ec3={};_0x4e5ec3[_0x59cc77(0x131)]=_0x5032da[_0x59cc77(0x179)],_0x4e5ec3[_0x59cc77(0x154)]=_0x5032da[_0x59cc77(0x138)];const _0x1b1923={};_0x1b1923[_0x59cc77(0x187)]=!![],_0x1b1923[_0x59cc77(0x131)]=_0x5032da[_0x59cc77(0x181)],_0x1b1923[_0x59cc77(0x154)]=_0x5032da['jYzZy'];const _0x2b1b31={};_0x2b1b31[_0x59cc77(0x131)]=_0x5032da[_0x59cc77(0x16a)],_0x2b1b31[_0x59cc77(0x154)]=_0x5032da['jYzZy'];const _0x2617ef={};_0x2617ef[_0x59cc77(0x131)]=_0x5032da[_0x59cc77(0x121)],_0x2617ef['type']=_0x5032da[_0x59cc77(0x138)];const _0x37f730={};return _0x37f730[_0x59cc77(0x185)]=_0xc78843,_0x37f730['bstack-accesskey']=_0x4e5ec3,_0x37f730[_0x59cc77(0x161)]=_0x1b1923,_0x37f730[_0x59cc77(0x149)]=_0x2b1b31,_0x37f730[_0x59cc77(0x176)]=_0x2617ef,_0x14bad5[_0x59cc77(0x13d)](HELP_HEADER_MESSAGE[_0x59cc77(0x17a)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x37f730)[_0x59cc77(0x175)](_0x5032da['gGxBg'])[_0x59cc77(0x15e)];},exports[a7_0xaffcd1(0x159)]=async _0x133f90=>{const _0x197d14=a7_0xaffcd1,_0x10cb4f={'iyWzm':function(_0x56b5f0,_0x3b2f6e){return _0x56b5f0===_0x3b2f6e;},'DUKnC':function(_0x5abb7c,_0x542c7b){return _0x5abb7c(_0x542c7b);},'DSzRi':function(_0x29c975,_0x59b9ea){return _0x29c975!==_0x59b9ea;},'QvUxY':_0x197d14(0x15b),'RCSWI':_0x197d14(0x130),'EvYeN':_0x197d14(0x18d),'qDTWj':_0x197d14(0x17f),'pmMsQ':_0x197d14(0x123),'OUZOO':_0x197d14(0x16c),'VnYyw':_0x197d14(0x14d),'kthKn':_0x197d14(0x175),'xXedr':function(_0x31ae7a,_0x507d82){return _0x31ae7a(_0x507d82);},'BaUsr':_0x197d14(0x13f),'lgqkU':function(_0x3fcb85,_0x97b173){return _0x3fcb85(_0x97b173);},'IhyeC':_0x197d14(0x17e),'FMoAs':function(_0x59ad32,_0x250df1){return _0x59ad32(_0x250df1);},'BuixN':_0x197d14(0x145),'IGqdW':_0x197d14(0x16e),'MhGTu':_0x197d14(0x15d),'RrmxL':_0x197d14(0x163),'icdHy':_0x197d14(0x134),'aJsIP':function(_0x15d82e,_0x2885ae){return _0x15d82e===_0x2885ae;},'WrKqk':function(_0x59bee4,_0x4c4036){return _0x59bee4(_0x4c4036);},'EDcge':'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','vhelX':function(_0x6e2b69,_0x5caab5,_0x3bd8f9){return _0x6e2b69(_0x5caab5,_0x3bd8f9);},'rBkeE':function(_0x3722b9,_0x5186ff){return _0x3722b9&&_0x5186ff;},'BbIXd':'rBmnB','zjzKI':_0x197d14(0x184),'vKIBe':_0x197d14(0x144),'iDnhA':function(_0xe5ba99,_0x352e18,_0x25b409,_0x358812){return _0xe5ba99(_0x352e18,_0x25b409,_0x358812);},'PffeN':_0x197d14(0x170),'Fyvbg':'OuRzn','mRUjA':_0x197d14(0x148),'kZxzE':_0x197d14(0x126),'fBudq':function(_0x50b698,_0x273084){return _0x50b698===_0x273084;},'hHaOn':_0x197d14(0x173),'JqsVi':_0x197d14(0x188)};let _0x55c4b6=_0x133f90['bstackUsername'],_0x31ab7c=_0x133f90[_0x197d14(0x13c)];const _0x1afe6d=_0x133f90['advanceOptions'],_0x5decda=_0x3a7c0a=>{const _0x470c28=_0x197d14,_0x3a91d2={'hcZlY':function(_0x48837b,_0x5b84ef){const _0xcd8123=a7_0x4b1c;return _0x10cb4f[_0xcd8123(0x128)](_0x48837b,_0x5b84ef);},'HSKJV':function(_0x16dde2,_0x3d29cb){const _0xb34e04=a7_0x4b1c;return _0x10cb4f[_0xb34e04(0x120)](_0x16dde2,_0x3d29cb);}};_0x10cb4f['DSzRi'](_0x10cb4f[_0x470c28(0x139)],_0x10cb4f['QvUxY'])?(_0x45675b++,_0x3a91d2[_0x470c28(0x129)](_0xd82eb,0x1)&&_0x3cc19d&&_0x5d8d75[_0x470c28(0x158)]()&&_0x3a91d2['HSKJV'](_0x198f78,_0x12426a)):(logger[_0x470c28(0x162)](_0x3a7c0a),process[_0x470c28(0x133)](0x1));};[_0x55c4b6,_0x31ab7c]=_0x10cb4f[_0x197d14(0x13e)](fetchOrUpdateUserConfig,_0x55c4b6,_0x31ab7c);!_0x10cb4f[_0x197d14(0x143)](_0x55c4b6,_0x31ab7c)&&(_0x10cb4f[_0x197d14(0x14f)](_0x10cb4f[_0x197d14(0x16d)],_0x10cb4f[_0x197d14(0x160)])?_0x10cb4f[_0x197d14(0x189)](_0x5decda,_0x10cb4f[_0x197d14(0x172)]):(_0x19a307[_0x197d14(0x162)](_0x44e34d),_0x1838e0[_0x197d14(0x133)](0x1)));const _0x4facee=_0x133f90[_0x197d14(0x180)],[_0x1e087d,_0x2e291b]=await _0x10cb4f[_0x197d14(0x14c)](getGridDetails,_0x55c4b6,_0x31ab7c,_0x4facee);if(!_0x2e291b){if(_0x10cb4f[_0x197d14(0x14f)](_0x10cb4f[_0x197d14(0x16f)],_0x10cb4f[_0x197d14(0x177)]))_0x10cb4f[_0x197d14(0x136)](_0x5decda,_0x10cb4f['EDcge']);else{const _0x3b5b06={};_0x3b5b06[_0x197d14(0x131)]=_0x10cb4f[_0x197d14(0x168)],_0x3b5b06[_0x197d14(0x154)]=_0x10cb4f[_0x197d14(0x125)];const _0x478b8d={};_0x478b8d[_0x197d14(0x131)]=_0x10cb4f[_0x197d14(0x13a)],_0x478b8d[_0x197d14(0x154)]=_0x10cb4f[_0x197d14(0x125)];const _0x1835a1={};_0x1835a1['demandOption']=!![],_0x1835a1[_0x197d14(0x131)]=_0x10cb4f['pmMsQ'],_0x1835a1[_0x197d14(0x154)]=_0x10cb4f[_0x197d14(0x125)];const _0x555e3c={};_0x555e3c[_0x197d14(0x131)]=_0x10cb4f[_0x197d14(0x132)],_0x555e3c[_0x197d14(0x154)]=_0x10cb4f[_0x197d14(0x125)];const _0x36b0ef={};_0x36b0ef[_0x197d14(0x131)]=_0x10cb4f['VnYyw'],_0x36b0ef['type']=_0x10cb4f[_0x197d14(0x125)];const _0x489a81={};return _0x489a81['bstack-username']=_0x3b5b06,_0x489a81['bstack-accesskey']=_0x478b8d,_0x489a81[_0x197d14(0x161)]=_0x1835a1,_0x489a81[_0x197d14(0x149)]=_0x555e3c,_0x489a81['advance-options']=_0x36b0ef,_0x5e5dc6[_0x197d14(0x13d)](_0x1159bf[_0x197d14(0x17a)])[_0x197d14(0x12c)](_0x57a2b9)['options'](_0x489a81)[_0x197d14(0x175)](_0x10cb4f[_0x197d14(0x150)])[_0x197d14(0x15e)];}}const _0x2b37da=_0x10cb4f[_0x197d14(0x178)](_0x133f90[_0x197d14(0x12e)],_0x10cb4f[_0x197d14(0x186)])?!![]:![];if(_0x2e291b&&_0x2e291b['isTrialGrid']&&_0x2b37da){if(_0x10cb4f['DSzRi'](_0x10cb4f['kZxzE'],_0x10cb4f[_0x197d14(0x135)]))_0x10cb4f['xXedr'](_0x383969,_0x10cb4f[_0x197d14(0x147)]);else{let _0x29c897=_0x10cb4f['IhyeC'];logger[_0x197d14(0x152)](_0x29c897);try{if(_0x10cb4f[_0x197d14(0x17d)](_0x10cb4f[_0x197d14(0x18a)],_0x10cb4f['hHaOn'])){const _0x2e5dfe={};_0x2e5dfe[_0x197d14(0x127)]=_0x31ab7c,_0x2e5dfe[_0x197d14(0x157)]=_0x2e291b[_0x197d14(0x157)],_0x2e5dfe[_0x197d14(0x169)]=_0x1afe6d;const _0x2777b8=_0x2e5dfe,_0x24a66b=_0x10cb4f[_0x197d14(0x136)](startLocalBinarySync,_0x2777b8);let _0x54f6f2=0x0;const _0x51872e=async()=>{const _0x541fd5=_0x197d14,_0x4c4e21={'IWpNp':function(_0x2845a3,_0x5d9cb0){const _0x28a033=a7_0x4b1c;return _0x10cb4f[_0x28a033(0x128)](_0x2845a3,_0x5d9cb0);},'lKlSh':function(_0x146550,_0xca3223){return _0x10cb4f['lgqkU'](_0x146550,_0xca3223);},'jKUYq':_0x10cb4f[_0x541fd5(0x18e)],'uGaUF':function(_0x34dcee,_0xea1e38){const _0x2c0317=_0x541fd5;return _0x10cb4f[_0x2c0317(0x153)](_0x34dcee,_0xea1e38);},'riBmE':_0x10cb4f['BuixN'],'KIxKh':_0x10cb4f['IGqdW'],'ZEaIC':_0x10cb4f[_0x541fd5(0x124)],'qlifR':_0x10cb4f[_0x541fd5(0x12a)],'pvaUp':_0x10cb4f[_0x541fd5(0x147)]};if(_0x10cb4f[_0x541fd5(0x128)](_0x10cb4f[_0x541fd5(0x165)],_0x10cb4f[_0x541fd5(0x165)]))_0x54f6f2++,_0x10cb4f[_0x541fd5(0x178)](_0x54f6f2,0x1)&&_0x24a66b&&_0x24a66b[_0x541fd5(0x158)]()&&_0x10cb4f[_0x541fd5(0x136)](stopLocalBinary,_0x24a66b);else{const _0x548766={'dIoRf':function(_0x574ceb,_0x62c6d7){const _0x586370=_0x541fd5;return _0x4c4e21[_0x586370(0x12b)](_0x574ceb,_0x62c6d7);},'SbKni':function(_0x3d03ec,_0x155d37){return _0x4c4e21['lKlSh'](_0x3d03ec,_0x155d37);}};let _0x379a9d=_0x4c4e21[_0x541fd5(0x12d)];_0x539186['info'](_0x379a9d);try{const _0x4ad45e={};_0x4ad45e[_0x541fd5(0x127)]=_0xd47847,_0x4ad45e[_0x541fd5(0x157)]=_0x173972[_0x541fd5(0x157)],_0x4ad45e['browserStackLocalOptions']=_0x5c2657;const _0x4b1990=_0x4ad45e,_0x14f2c2=_0x4c4e21['uGaUF'](_0x26cc9a,_0x4b1990);let _0x4f1052=0x0;const _0x11a7d5=async()=>{const _0x4f0aff=_0x541fd5;_0x4f1052++,_0x548766[_0x4f0aff(0x15f)](_0x4f1052,0x1)&&_0x14f2c2&&_0x14f2c2[_0x4f0aff(0x158)]()&&_0x548766[_0x4f0aff(0x140)](_0x15b817,_0x14f2c2);};_0x509f51['on'](_0x4c4e21[_0x541fd5(0x18b)],_0x11a7d5),_0x35f631['on'](_0x4c4e21[_0x541fd5(0x14e)],_0x11a7d5),_0x326d99['on'](_0x4c4e21['ZEaIC'],_0x11a7d5),_0x379a9d=_0x4c4e21['qlifR'],_0x1b56d0['info'](_0x379a9d);}catch(_0x41e89e){_0x4c4e21[_0x541fd5(0x18c)](_0x5a8b49,_0x4c4e21['pvaUp']);}}};process['on'](_0x10cb4f[_0x197d14(0x146)],_0x51872e),process['on'](_0x10cb4f['IGqdW'],_0x51872e),process['on'](_0x10cb4f[_0x197d14(0x124)],_0x51872e),_0x29c897=_0x10cb4f['RrmxL'],logger[_0x197d14(0x152)](_0x29c897);}else{const _0x2613bf={'syTSZ':function(_0x32c3c0,_0x6799d4){const _0x325051=_0x197d14;return _0x10cb4f[_0x325051(0x128)](_0x32c3c0,_0x6799d4);},'ygChx':function(_0x141811,_0x109a1e){const _0x4f474b=_0x197d14;return _0x10cb4f[_0x4f474b(0x136)](_0x141811,_0x109a1e);}},_0x53d6bc={};_0x53d6bc[_0x197d14(0x127)]=_0x2bef2b,_0x53d6bc['customRepeaters']=_0x10e39b[_0x197d14(0x157)],_0x53d6bc[_0x197d14(0x169)]=_0x164de5;const _0x3051c2=_0x53d6bc,_0x107ab1=_0x10cb4f[_0x197d14(0x136)](_0x52530,_0x3051c2);let _0x2b9ce5=0x0;const _0xedba9f=async()=>{const _0x24fe68=_0x197d14;_0x2b9ce5++,_0x2613bf[_0x24fe68(0x166)](_0x2b9ce5,0x1)&&_0x107ab1&&_0x107ab1[_0x24fe68(0x158)]()&&_0x2613bf[_0x24fe68(0x122)](_0x3e7646,_0x107ab1);};_0x1be8a6['on'](_0x10cb4f[_0x197d14(0x146)],_0xedba9f),_0xcbafa8['on'](_0x10cb4f[_0x197d14(0x15a)],_0xedba9f),_0x25daa7['on'](_0x10cb4f[_0x197d14(0x124)],_0xedba9f),_0x310d57=_0x10cb4f[_0x197d14(0x12a)],_0x17b939[_0x197d14(0x152)](_0x36d692);}}catch(_0x27ad3c){_0x10cb4f[_0x197d14(0x17d)](_0x10cb4f[_0x197d14(0x13b)],_0x10cb4f['JqsVi'])?_0x10cb4f[_0x197d14(0x136)](_0x5decda,_0x10cb4f[_0x197d14(0x147)]):_0x10cb4f['WrKqk'](_0x40ffa6,_0x10cb4f[_0x197d14(0x174)]);}}}process['exit'](0x0);};
|
|
1
|
+
const a7_0x3b7dc4=a7_0x5d07;(function(_0x308792,_0x41c01a){const _0x500bd3=a7_0x5d07,_0x542ed7=_0x308792();while(!![]){try{const _0x545818=-parseInt(_0x500bd3(0x188))/0x1*(parseInt(_0x500bd3(0x1a1))/0x2)+parseInt(_0x500bd3(0x18a))/0x3*(parseInt(_0x500bd3(0x1bd))/0x4)+parseInt(_0x500bd3(0x17b))/0x5+-parseInt(_0x500bd3(0x158))/0x6*(-parseInt(_0x500bd3(0x15f))/0x7)+parseInt(_0x500bd3(0x198))/0x8+-parseInt(_0x500bd3(0x182))/0x9*(parseInt(_0x500bd3(0x177))/0xa)+parseInt(_0x500bd3(0x18e))/0xb*(-parseInt(_0x500bd3(0x1c7))/0xc);if(_0x545818===_0x41c01a)break;else _0x542ed7['push'](_0x542ed7['shift']());}catch(_0x2dac1f){_0x542ed7['push'](_0x542ed7['shift']());}}}(a7_0x31dd,0xe0fc5));function a7_0x5d07(_0x5d13cb,_0x123954){const _0x31dd28=a7_0x31dd();return a7_0x5d07=function(_0x5d071d,_0x1cf6f7){_0x5d071d=_0x5d071d-0x158;let _0x5d6c8d=_0x31dd28[_0x5d071d];return _0x5d6c8d;},a7_0x5d07(_0x5d13cb,_0x123954);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require(a7_0x3b7dc4(0x1a4)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x3b7dc4(0x1aa));function a7_0x31dd(){const _0x259d2a=['KRbvg','Pass\x20the\x20ID\x20of\x20the\x20Grid','ZYQYz','hjhLL','type','grid-id','XgIhv','VQTFz','demandOption','zuxDT','xNYdI','bstack-username','advance-options','LHuYt','LSZRp','yvxKi','create','NbZYl','12SHAosf','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','ztuiP','tnMng','handler','jskhZ','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','grid','VGnFl','use-staging','12IrEtHb','browserStackLocalOptions','options','dCTKz','6OoCbWK','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','gridId','string','help','PtnJM','accessKey','6355013asFQFE','RLPRj','AsPCh','hsSQg','ZpfkM','uaJIu','Hxivq','useStaging','HvNFI','customRepeaters','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','OfaXt','info','Lhojd','meRfq','zrNos','error','HKQBt','SIGTERM','isRunning','FuoUX','TncvP','dshQQ','EbHMh','3250ElljlG','mtMHv','cLPKu','eLXuu','1223345xTLeoQ','We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','KQrpJ','xjMDN','Zcrgj','arecO','bstack-accesskey','2151JhgnqI','Advance\x20options\x20for\x20Browserstack\x20Local','exit','ALJFY','tHpuY','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','9372CdFAMQ','argv','762873CvUzKx','YDCVE','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','QWbwe','15574207IwuNkK','builder','AgJOv','txHkq','bstackUsername','BCiJb','GQnCG','desc','KrOHg','OaELe','9020608mxpdZZ','epilogue','MUBSi','command','AuGWG','Grid\x20type:\x20Trial','fJzYh','eKOLp','GYllf','134hqdabc','usage','rLYaN','../../config/logger','bstackAccesskey','advanceOptions','aNfdt','QHLGI','description','../../utils/utilityMethods'];a7_0x31dd=function(){return _0x259d2a;};return a7_0x31dd();}exports[a7_0x3b7dc4(0x19b)]=a7_0x3b7dc4(0x1c4),exports[a7_0x3b7dc4(0x195)]=a7_0x3b7dc4(0x1be),exports[a7_0x3b7dc4(0x18f)]=_0x5592de=>{const _0x1c9f2a=a7_0x3b7dc4,_0x40c187={};_0x40c187[_0x1c9f2a(0x1b1)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x40c187['hjhLL']=_0x1c9f2a(0x15b),_0x40c187[_0x1c9f2a(0x19e)]=_0x1c9f2a(0x159),_0x40c187[_0x1c9f2a(0x16c)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x40c187[_0x1c9f2a(0x163)]=_0x1c9f2a(0x187),_0x40c187[_0x1c9f2a(0x19c)]=_0x1c9f2a(0x183),_0x40c187[_0x1c9f2a(0x161)]='help';const _0x2b9acf=_0x40c187,_0x43be81={};_0x43be81[_0x1c9f2a(0x1a9)]=_0x2b9acf[_0x1c9f2a(0x1b1)],_0x43be81[_0x1c9f2a(0x1af)]=_0x2b9acf[_0x1c9f2a(0x1ae)];const _0x3201c1={};_0x3201c1['description']=_0x2b9acf[_0x1c9f2a(0x19e)],_0x3201c1[_0x1c9f2a(0x1af)]=_0x2b9acf[_0x1c9f2a(0x1ae)];const _0x546bbe={};_0x546bbe[_0x1c9f2a(0x1b3)]=!![],_0x546bbe[_0x1c9f2a(0x1a9)]=_0x2b9acf[_0x1c9f2a(0x16c)],_0x546bbe[_0x1c9f2a(0x1af)]=_0x2b9acf[_0x1c9f2a(0x1ae)];const _0x249395={};_0x249395[_0x1c9f2a(0x1a9)]=_0x2b9acf[_0x1c9f2a(0x163)],_0x249395[_0x1c9f2a(0x1af)]=_0x2b9acf[_0x1c9f2a(0x1ae)];const _0x8fea02={};_0x8fea02['description']=_0x2b9acf[_0x1c9f2a(0x19c)],_0x8fea02[_0x1c9f2a(0x1af)]=_0x2b9acf[_0x1c9f2a(0x1ae)];const _0x33d78d={};return _0x33d78d[_0x1c9f2a(0x1b6)]=_0x43be81,_0x33d78d[_0x1c9f2a(0x181)]=_0x3201c1,_0x33d78d[_0x1c9f2a(0x1b0)]=_0x546bbe,_0x33d78d[_0x1c9f2a(0x1c6)]=_0x249395,_0x33d78d[_0x1c9f2a(0x1b7)]=_0x8fea02,_0x5592de[_0x1c9f2a(0x1a2)](HELP_HEADER_MESSAGE[_0x1c9f2a(0x1bb)])[_0x1c9f2a(0x199)](HELP_FOOTER_MESSAGE)['options'](_0x33d78d)[_0x1c9f2a(0x15c)](_0x2b9acf[_0x1c9f2a(0x161)])[_0x1c9f2a(0x189)];},exports[a7_0x3b7dc4(0x1c1)]=async _0x9b8318=>{const _0x2a64a0=a7_0x3b7dc4,_0x22f58d={'eKOLp':_0x2a64a0(0x19d),'QWbwe':function(_0x53741e,_0x3f55ca){return _0x53741e(_0x3f55ca);},'ZYQYz':'beforeExit','TncvP':'SIGINT','KrOHg':_0x2a64a0(0x171),'KRbvg':_0x2a64a0(0x17c),'cLPKu':_0x2a64a0(0x1c3),'BCiJb':function(_0x2c383a,_0x336f81){return _0x2c383a===_0x336f81;},'xjMDN':function(_0x5ed68e,_0x3c64ff){return _0x5ed68e(_0x3c64ff);},'gMXNh':function(_0x441958,_0xc5bc02){return _0x441958!==_0xc5bc02;},'tnMng':_0x2a64a0(0x1a3),'HvNFI':_0x2a64a0(0x175),'aNfdt':function(_0x12c078,_0x1c3f8b){return _0x12c078(_0x1c3f8b);},'eLXuu':_0x2a64a0(0x169),'tHpuY':function(_0x5e5fc8,_0x3f9ddb){return _0x5e5fc8===_0x3f9ddb;},'meRfq':function(_0x37bb97,_0x4b9839){return _0x37bb97(_0x4b9839);},'txHkq':function(_0x249098,_0x213163){return _0x249098!==_0x213163;},'KQrpJ':_0x2a64a0(0x160),'ALJFY':function(_0x71065e,_0x1ceaab){return _0x71065e===_0x1ceaab;},'OaELe':function(_0x43fdff,_0x20dcb0){return _0x43fdff(_0x20dcb0);},'LHuYt':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','GYllf':_0x2a64a0(0x15b),'oVroy':_0x2a64a0(0x159),'OfaXt':_0x2a64a0(0x1ac),'FuoUX':_0x2a64a0(0x187),'VGnFl':_0x2a64a0(0x183),'AgJOv':'help','Zcrgj':function(_0x4f7318,_0x5f381c){return _0x4f7318(_0x5f381c);},'ztuiP':_0x2a64a0(0x18c),'XhhIc':function(_0x440464,_0x153a7b,_0x16df1d){return _0x440464(_0x153a7b,_0x16df1d);},'QHLGI':function(_0x52861d,_0x17853f){return _0x52861d&&_0x17853f;},'hsSQg':function(_0x56001c,_0x1b6365){return _0x56001c===_0x1b6365;},'YDCVE':_0x2a64a0(0x164),'FDHZD':function(_0x56797a,_0x1705a1){return _0x56797a(_0x1705a1);},'MUBSi':function(_0xc90220,_0x3bfc49,_0x109b23,_0x36b823){return _0xc90220(_0x3bfc49,_0x109b23,_0x36b823);},'zuxDT':_0x2a64a0(0x180),'WSUdw':function(_0x395a9b,_0x332930){return _0x395a9b===_0x332930;},'HKQBt':'true','dCTKz':function(_0xb3a6ef,_0x21dfed){return _0xb3a6ef===_0x21dfed;},'OZvNQ':_0x2a64a0(0x194),'gxTLH':_0x2a64a0(0x178),'VQTFz':function(_0x3228c3,_0x1c634f){return _0x3228c3!==_0x1c634f;},'xNYdI':_0x2a64a0(0x1ba),'Hxivq':_0x2a64a0(0x1c2),'NbZYl':function(_0x34c078,_0x4eb344){return _0x34c078(_0x4eb344);},'LmtFt':function(_0x494b64,_0xae42f){return _0x494b64===_0xae42f;},'zrNos':'BjPRd'};let _0x3b27a7=_0x9b8318[_0x2a64a0(0x192)],_0x43f551=_0x9b8318[_0x2a64a0(0x1a5)];const _0x39c403=_0x9b8318[_0x2a64a0(0x1a6)],_0x3ac031=_0x323e32=>{const _0x564251=_0x2a64a0,_0xb84a0d={'PtnJM':function(_0x1a10ec,_0x3daaf6){const _0x41f952=a7_0x5d07;return _0x22f58d[_0x41f952(0x193)](_0x1a10ec,_0x3daaf6);},'uChvO':function(_0x578cf9,_0x4680cb){const _0xd82d2e=a7_0x5d07;return _0x22f58d[_0xd82d2e(0x17e)](_0x578cf9,_0x4680cb);}};if(_0x22f58d['gMXNh'](_0x22f58d[_0x564251(0x1c0)],_0x22f58d[_0x564251(0x167)]))logger[_0x564251(0x16f)](_0x323e32),process[_0x564251(0x184)](0x1);else{let _0x391923=_0x22f58d[_0x564251(0x19f)];_0xd3e645[_0x564251(0x16b)](_0x391923);try{const _0xb58dbb={};_0xb58dbb[_0x564251(0x15e)]=_0x50abd9,_0xb58dbb[_0x564251(0x168)]=_0x5c978b[_0x564251(0x168)],_0xb58dbb[_0x564251(0x1c8)]=_0x4fc2c0;const _0x1e2bce=_0xb58dbb,_0x78b5d6=_0x22f58d[_0x564251(0x18d)](_0x4351e9,_0x1e2bce);let _0x427cef=0x0;const _0x569d35=async()=>{const _0x2befb0=_0x564251;_0x427cef++,_0xb84a0d[_0x2befb0(0x15d)](_0x427cef,0x1)&&_0x78b5d6&&_0x78b5d6[_0x2befb0(0x172)]()&&_0xb84a0d['uChvO'](_0x231699,_0x78b5d6);};_0x224c49['on'](_0x22f58d['ZYQYz'],_0x569d35),_0x35c80c['on'](_0x22f58d[_0x564251(0x174)],_0x569d35),_0x5a396d['on'](_0x22f58d['KrOHg'],_0x569d35),_0x391923=_0x22f58d['KRbvg'],_0x299159[_0x564251(0x16b)](_0x391923);}catch(_0x49ba88){_0x22f58d[_0x564251(0x18d)](_0x4d1c31,_0x22f58d[_0x564251(0x179)]);}}};[_0x3b27a7,_0x43f551]=_0x22f58d['XhhIc'](fetchOrUpdateUserConfig,_0x3b27a7,_0x43f551);!_0x22f58d[_0x2a64a0(0x1a8)](_0x3b27a7,_0x43f551)&&(_0x22f58d[_0x2a64a0(0x162)](_0x22f58d['YDCVE'],_0x22f58d[_0x2a64a0(0x18b)])?_0x22f58d['FDHZD'](_0x3ac031,_0x22f58d['ztuiP']):_0x22f58d[_0x2a64a0(0x1a7)](_0x55a7cc,_0x22f58d[_0x2a64a0(0x17a)]));const _0x4bbaac=_0x9b8318[_0x2a64a0(0x15a)],[_0x2ea0f5,_0x4e3b4f]=await _0x22f58d[_0x2a64a0(0x19a)](getGridDetails,_0x3b27a7,_0x43f551,_0x4bbaac);!_0x4e3b4f&&(_0x22f58d[_0x2a64a0(0x186)](_0x22f58d[_0x2a64a0(0x1b4)],_0x22f58d[_0x2a64a0(0x1b4)])?_0x22f58d[_0x2a64a0(0x17e)](_0x3ac031,_0x22f58d[_0x2a64a0(0x17a)]):_0x22f58d[_0x2a64a0(0x17e)](_0x126000,_0x22f58d[_0x2a64a0(0x179)]));const _0x223ded=_0x22f58d['WSUdw'](_0x9b8318[_0x2a64a0(0x166)],_0x22f58d[_0x2a64a0(0x170)])?!![]:![];if(_0x4e3b4f&&_0x4e3b4f['isTrialGrid']&&_0x223ded){if(_0x22f58d[_0x2a64a0(0x1ca)](_0x22f58d['OZvNQ'],_0x22f58d['gxTLH'])){const _0xf44a25={'LSZRp':function(_0x3ffd54,_0x3fdb90){return _0x22f58d['tHpuY'](_0x3ffd54,_0x3fdb90);},'EbHMh':function(_0x4f19b4,_0x577aa4){return _0x22f58d['meRfq'](_0x4f19b4,_0x577aa4);}},_0x54444e={};_0x54444e[_0x2a64a0(0x15e)]=_0x1b490f,_0x54444e['customRepeaters']=_0x39c135['customRepeaters'],_0x54444e[_0x2a64a0(0x1c8)]=_0x4709c0;const _0x2fbc31=_0x54444e,_0x2b05de=_0x22f58d[_0x2a64a0(0x16d)](_0x14e2f9,_0x2fbc31);let _0xcd0ebc=0x0;const _0xca7ce9=async()=>{const _0x3f8c8e=_0x2a64a0;_0xcd0ebc++,_0xf44a25[_0x3f8c8e(0x1b9)](_0xcd0ebc,0x1)&&_0x2b05de&&_0x2b05de['isRunning']()&&_0xf44a25[_0x3f8c8e(0x176)](_0x3023de,_0x2b05de);};_0x30301f['on'](_0x22f58d[_0x2a64a0(0x1ad)],_0xca7ce9),_0x94c1f['on'](_0x22f58d[_0x2a64a0(0x174)],_0xca7ce9),_0xab4d['on'](_0x22f58d[_0x2a64a0(0x196)],_0xca7ce9),_0x1ce36c=_0x22f58d[_0x2a64a0(0x1ab)],_0x38fe12[_0x2a64a0(0x16b)](_0x367da6);}else{let _0x4065d1=_0x22f58d[_0x2a64a0(0x19f)];logger[_0x2a64a0(0x16b)](_0x4065d1);try{if(_0x22f58d[_0x2a64a0(0x1b2)](_0x22f58d[_0x2a64a0(0x1b5)],_0x22f58d[_0x2a64a0(0x165)])){const _0xd59f={};_0xd59f[_0x2a64a0(0x15e)]=_0x43f551,_0xd59f[_0x2a64a0(0x168)]=_0x4e3b4f[_0x2a64a0(0x168)],_0xd59f[_0x2a64a0(0x1c8)]=_0x39c403;const _0x2fbd74=_0xd59f,_0x48f1e8=_0x22f58d[_0x2a64a0(0x1bc)](startLocalBinarySync,_0x2fbd74);let _0x145252=0x0;const _0x57fbd3=async()=>{const _0x3d317d=_0x2a64a0;_0x22f58d[_0x3d317d(0x191)](_0x22f58d['KQrpJ'],_0x22f58d[_0x3d317d(0x17d)])?(_0x5b35f8[_0x3d317d(0x16f)](_0x788de1),_0x4d7ed6[_0x3d317d(0x184)](0x1)):(_0x145252++,_0x22f58d[_0x3d317d(0x185)](_0x145252,0x1)&&_0x48f1e8&&_0x48f1e8[_0x3d317d(0x172)]()&&_0x22f58d[_0x3d317d(0x197)](stopLocalBinary,_0x48f1e8));};process['on'](_0x22f58d[_0x2a64a0(0x1ad)],_0x57fbd3),process['on'](_0x22f58d[_0x2a64a0(0x174)],_0x57fbd3),process['on'](_0x22f58d[_0x2a64a0(0x196)],_0x57fbd3),_0x4065d1=_0x22f58d[_0x2a64a0(0x1ab)],logger['info'](_0x4065d1);}else{const _0x3ac66a={};_0x3ac66a[_0x2a64a0(0x1a9)]=_0x22f58d[_0x2a64a0(0x1b8)],_0x3ac66a[_0x2a64a0(0x1af)]=_0x22f58d[_0x2a64a0(0x1a0)];const _0xa6e162={};_0xa6e162['description']=_0x22f58d['oVroy'],_0xa6e162[_0x2a64a0(0x1af)]=_0x22f58d[_0x2a64a0(0x1a0)];const _0x39ced6={};_0x39ced6[_0x2a64a0(0x1b3)]=!![],_0x39ced6[_0x2a64a0(0x1a9)]=_0x22f58d[_0x2a64a0(0x16a)],_0x39ced6[_0x2a64a0(0x1af)]=_0x22f58d[_0x2a64a0(0x1a0)];const _0x3edb99={};_0x3edb99[_0x2a64a0(0x1a9)]=_0x22f58d[_0x2a64a0(0x173)],_0x3edb99[_0x2a64a0(0x1af)]=_0x22f58d[_0x2a64a0(0x1a0)];const _0x58193e={};_0x58193e[_0x2a64a0(0x1a9)]=_0x22f58d[_0x2a64a0(0x1c5)],_0x58193e[_0x2a64a0(0x1af)]=_0x22f58d['GYllf'];const _0x452dbf={};return _0x452dbf[_0x2a64a0(0x1b6)]=_0x3ac66a,_0x452dbf[_0x2a64a0(0x181)]=_0xa6e162,_0x452dbf[_0x2a64a0(0x1b0)]=_0x39ced6,_0x452dbf['use-staging']=_0x3edb99,_0x452dbf['advance-options']=_0x58193e,_0x27ba16[_0x2a64a0(0x1a2)](_0x857e06['create'])[_0x2a64a0(0x199)](_0x5c39dc)[_0x2a64a0(0x1c9)](_0x452dbf)[_0x2a64a0(0x15c)](_0x22f58d[_0x2a64a0(0x190)])[_0x2a64a0(0x189)];}}catch(_0x1dc64f){_0x22f58d['LmtFt'](_0x22f58d[_0x2a64a0(0x16e)],_0x22f58d[_0x2a64a0(0x16e)])?_0x22f58d[_0x2a64a0(0x18d)](_0x3ac031,_0x22f58d['cLPKu']):_0x22f58d[_0x2a64a0(0x17f)](_0x4eed76,_0x22f58d[_0x2a64a0(0x1bf)]);}}}process[_0x2a64a0(0x184)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x5da673=a8_0x1ea7;(function(_0x5b6ef3,_0x5ae5cd){const _0xafaced=a8_0x1ea7,_0x203d1e=_0x5b6ef3();while(!![]){try{const _0xc38859=parseInt(_0xafaced(0x165))/0x1*(-parseInt(_0xafaced(0x16a))/0x2)+-parseInt(_0xafaced(0x162))/0x3+-parseInt(_0xafaced(0x15c))/0x4*(-parseInt(_0xafaced(0x172))/0x5)+-parseInt(_0xafaced(0x173))/0x6*(parseInt(_0xafaced(0x174))/0x7)+parseInt(_0xafaced(0x16c))/0x8+-parseInt(_0xafaced(0x170))/0x9+parseInt(_0xafaced(0x160))/0xa*(parseInt(_0xafaced(0x16d))/0xb);if(_0xc38859===_0x5ae5cd)break;else _0x203d1e['push'](_0x203d1e['shift']());}catch(_0x4d5761){_0x203d1e['push'](_0x203d1e['shift']());}}}(a8_0x3f61,0x84017));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x5da673(0x161));function a8_0x3f61(){const _0x46ba9c=['../config/constants','798528iUWeQE','DQtVV','usage','584447QYWSfV','create_commands','Create\x20a\x20new\x20Automation\x20grid.','help','create','2xvJOxG','demandCommand','3573400DpNVTJ','11NXtMlN','strict','commandDir','1047555HxJMpW','cZrHQ','344705THzobI','4844874FxhjOx','7ggHEJm','44StHgYN','builder','desc','recommendCommands','11101660dMFXve'];a8_0x3f61=function(){return _0x46ba9c;};return a8_0x3f61();}function a8_0x1ea7(_0x5885e3,_0x3b2bae){const _0x3f6137=a8_0x3f61();return a8_0x1ea7=function(_0x1ea7d3,_0x452cee){_0x1ea7d3=_0x1ea7d3-0x15c;let _0x5e15d9=_0x3f6137[_0x1ea7d3];return _0x5e15d9;},a8_0x1ea7(_0x5885e3,_0x3b2bae);}exports['command']='create',exports[a8_0x5da673(0x15e)]=a8_0x5da673(0x167),exports[a8_0x5da673(0x15d)]=function(_0x4e3aa2){const _0x1b12b4=a8_0x5da673,_0x4c836a={};_0x4c836a[_0x1b12b4(0x163)]=_0x1b12b4(0x166),_0x4c836a[_0x1b12b4(0x171)]=_0x1b12b4(0x168);const _0x27c9f3=_0x4c836a;return _0x4e3aa2[_0x1b12b4(0x164)](HELP_HEADER_MESSAGE[_0x1b12b4(0x169)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1b12b4(0x16f)](_0x27c9f3[_0x1b12b4(0x163)])[_0x1b12b4(0x16b)]()[_0x1b12b4(0x15f)]()[_0x1b12b4(0x16e)]()['help'](_0x27c9f3[_0x1b12b4(0x171)]);},exports['handler']=function(_0x128f6e){};
|