browserstack-node-sdk 1.34.2 → 1.34.3
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/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/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.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/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_before.setup.js +1 -1
- package/src/bin/launcher/launcher.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/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/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.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/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.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-tester.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/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/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0xb1d4d5=a3_0x4da8;function a3_0xbeb3(){const _0xc4b204=['NBQta','WcKUS','gcloud\x20auth\x20login\x20--cred-file=','storage.buckets.delete','turboscale-service-account','vwzZb','aCcux','XePDE','gRcsg','gkecluster.json','init','Found\x20cluster\x20with\x20name\x20\x27','2364350RkobMk','rtKFC','data','ufNhw','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','QvvBt','/clusters/','gsRYT','members','projectId','jNmOa','iNjjU','FtGiP','bGwor','config','vpcInfo','381366zvTZkk','aNHOg','icJqW','../utils/gridComponents','HYVFt','containerClient','BsjmM','https://','configureIfNotConfigured','subnetworks','vPjmr','maxNodes','nodePools','../utils/userInput','masterAuth','QyybE','gvwON','uJxrX','push','type','zUaTS','mypTi','YNNNK','LOG','SiFKX','bstackUsername','zwalV','lzOws','getUserInput','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','requestBody','aBQUn','NZPra','browserstack','json','resourcemanagerClient','Creating\x20GKE\x20Cluster','create','exec','serviceAccounts','HXmTy','WnDEy','sWPRk','6OwecbI','yBAil','Deleting\x20the\x20cluster\x20','cvNpd','readFileAsync','gke_','../config/constants','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','RVbVB','minNodes','iamClient','WmjLL','isSubnetsValid','Oawtn','/locations/','@google-cloud/resource-manager','auth','ynlqY','PltZA','ZaalI','NAUdA','storage.buckets.get','profileId','xJXUb','rezUS','LlJrH','list','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','lKpIC','kIDNf','YXXrj','PzThh','Service\x20account\x20already\x20exists,\x20skipping','Jqdzd','oWguw','oswDC','parse','CjwjR','storage.buckets.listEffectiveTags','https://www.googleapis.com/compute/v1/projects/','OzOjz','message','toLowerCase','accessKey','Uuqaa','DCSIy','../config/logger','rzFer','glTPQ','NKKEo','GXnsO','listClusters','JiJaL','maXKB','setupServiceAccount','machineType','YgsSV','IHqrY','xwQFc','keyFile','PrHhU','zTijJ','imZIM','GScZR','setupNewCluster','rThmA','bJgxp','KgvnC','Cannot\x20find\x20subnets\x20','project_id','got','split','cFlzg','join','GKE\x20Cluster\x20deletion\x20failed','oMVvy','iXYhY','storage.objects.create','grlRq','jiqPu','3|2|5|4|0|1','parent','3395883vTBSga','Cluster\x20creation\x20failed','nKfUH','XpfWG','3231984QlgmJv','gcp_credentials.json','lycge','GoogleCloudProvider','IqZrb','storage.buckets.deleteTagBinding','storage.objects.list','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','exports','BzRTz','organizations','1831425bmiotw','iaPsc','KuIwm','sendEventToBackend','nRaOH','webSocketUtils','roles','storage.multipartUploads.listParts','getClusterInfo','projects/','gcpresources','RvPSL','projects','/packages/cli/update-cluster-region','WvfuW','clusterRegion','getCluster','rfXHx','storage.buckets.create','updateClusterRegion','error','customRoleName','sendGCPInfoToHST','createCluster','lyCQS','rlJFY','isClusterPresent','5|6|2|3|7|4|0|8|1','instanceType','kuVLe','/regions/','jHxIj','EbarY','ANISf','wIRmt','deleteCluster','AsrzS','xJdle','96sWzATx','iybGG','default','execSync','vVOrn','oMPKP','.\x20Error:\x20','managedby','/roles/','clusters','FYYNi','locations','stack','credentialsPath','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','serviceAccountName','OyoGc','storage.objects.get','../utils/utilityMethods','HSKSQ','storage.multipartUploads.list','sAMui','googleapis','KxMlM','accounts','OOLJR','YsezP','zKLMH','replace','syWoj','tkfrp','xgDDZ','wEOMe','zrfWF','UDgXf','Turboscale\x20Custom\x20Role','location','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','toString','storage.objects.getIamPolicy','PUT','ndeUy','BlZch','accountId','HevXO','xXcfK','length','PwaiP','hWFmP','autoscaling','Cluster\x20deletion\x20completed','MllIC','uOvOp','gridProfileId','Yvglb','iqcNy','npQvC','getIamPolicy','zaRlY','HiBdP','GpXWx','dhNbS','sendResourceDataToHST','Ttbjl','RUNNING','.iam.gserviceaccount.com','get','name','NMElK','gxmmv','storage.objects.update','iam.serviceAccounts.signBlob','dukxh','YybHL','/serviceAccounts/','TsAaD','mbvpv','1619716WnZTrc','getClient','isBrowserstackCluster','updateWindowsNodeGroup','clusterName','mXLVF','wySHc','cloudProvider','getGridHostname','network','nueqG','role','UsApH','bXoum','\x20--quiet\x20--user-output-enabled=false','regionmap.json','qpLWH','xjNVg','concat','storage.buckets.getIamPolicy','log','QjTRY','sYmLX','status','storage.buckets.list','storage.multipartUploads.abort','DbETS','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','networkClient','rofOo','pamsU','xlLCn','/subnetworks/','bindings','newRegion','gKzzr','GUERC','oNqGz','clusterCaCertificate','turboscale_custom_role','ingress','checkServiceAccount','504445KySvUH','wxDSQ','storage.buckets.getObjectInsights','writeFileSync','FovDR','ORwjD','exit','agshI','BwDZj','RmwTq','loadBalancer','NpbaX','utf-8','lEPAL','CefMI','rws','storage.objects.setIamPolicy','setCachedCredsInRegistry','scopes','dKdcY','ZGZgB','templates','xHoIG','qcQzt','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','hJEyO','YppFC','ONily','maxNodeCount','PQEaD','https://www.googleapis.com/auth/cloud-platform','HPUet','info'];a3_0xbeb3=function(){return _0xc4b204;};return a3_0xbeb3();}(function(_0x3aacba,_0x3fac01){const _0x9d6dff=a3_0x4da8,_0x134dd7=_0x3aacba();while(!![]){try{const _0x38cf57=-parseInt(_0x9d6dff(0x1e6))/0x1+parseInt(_0x9d6dff(0x213))/0x2+parseInt(_0x9d6dff(0x13a))/0x3+-parseInt(_0x9d6dff(0x13e))/0x4+-parseInt(_0x9d6dff(0x149))/0x5*(-parseInt(_0x9d6dff(0xe8))/0x6)+-parseInt(_0x9d6dff(0x1bc))/0x7+parseInt(_0x9d6dff(0x16f))/0x8*(-parseInt(_0x9d6dff(0x224))/0x9);if(_0x38cf57===_0x3fac01)break;else _0x134dd7['push'](_0x134dd7['shift']());}catch(_0x5ec5f9){_0x134dd7['push'](_0x134dd7['shift']());}}}(a3_0xbeb3,0x99588));const fs=require('fs'),path=require('path'),got=require(a3_0xb1d4d5(0x12e)),util=require('util'),cp=require('child_process'),{google}=require(a3_0xb1d4d5(0x185)),compute=require('@google-cloud/compute'),container=require('@google-cloud/container'),{ProjectsClient}=require(a3_0xb1d4d5(0xf7))['v3'],{logger}=require(a3_0xb1d4d5(0x116)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig,getAuthHeader}=require(a3_0xb1d4d5(0x181)),{deleteRoutingDeps,deleteAgent}=require(a3_0xb1d4d5(0x227)),{inputConfirmation,closeInput}=require(a3_0xb1d4d5(0xca)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0xb1d4d5(0xee));class GoogleCloudProvider extends CloudProvider{constructor(_0x20813e,_0x4653f6,_0x32be02,_0x1dbd9a){const _0x364336=a3_0xb1d4d5,_0x5adebc={};_0x5adebc[_0x364336(0x1cc)]=_0x364336(0x164),_0x5adebc[_0x364336(0x154)]=_0x364336(0x20b),_0x5adebc[_0x364336(0xfc)]=_0x364336(0x1e3);const _0x23ce31=_0x5adebc,_0x52a8d4=_0x23ce31[_0x364336(0x1cc)]['split']('|');let _0x19b348=0x0;while(!![]){switch(_0x52a8d4[_0x19b348++]){case'0':this[_0x364336(0x21d)]=null;continue;case'1':this['serviceAccountName']=_0x23ce31[_0x364336(0x154)];continue;case'2':this[_0x364336(0x1d8)]=null;continue;case'3':this['resourcemanagerClient']=null;continue;case'4':this[_0x364336(0x17c)]=null;continue;case'5':super(GCP,_0x20813e,_0x4653f6,_0x32be02,_0x1dbd9a);continue;case'6':this[_0x364336(0xc2)]=null;continue;case'7':this['iamClient']=null;continue;case'8':this[_0x364336(0x15e)]=_0x23ce31[_0x364336(0xfc)];continue;}break;}}async[a3_0xb1d4d5(0x1ad)](){const _0x30b946=a3_0xb1d4d5;this[_0x30b946(0x15f)](this[_0x30b946(0x1f5)]);}async[a3_0xb1d4d5(0x211)](){const _0x246bbd=a3_0xb1d4d5;await super[_0x246bbd(0x211)]();const _0x2a8ad1=this[_0x246bbd(0x17c)],_0x41c8e9={};_0x41c8e9[_0x246bbd(0x123)]=_0x2a8ad1,this[_0x246bbd(0xc2)]=new container['v1']['ClusterManagerClient'](_0x41c8e9);const _0x4fa71b={};_0x4fa71b[_0x246bbd(0x123)]=_0x2a8ad1,this[_0x246bbd(0x1d8)]=new compute['v1']['NetworksClient'](_0x4fa71b);const _0x8ada51={};return _0x8ada51[_0x246bbd(0x123)]=_0x2a8ad1,this[_0x246bbd(0xe0)]=new ProjectsClient(_0x8ada51),this[_0x246bbd(0xf2)]=google['iam']('v1'),this;}async[a3_0xb1d4d5(0xd9)](_0x31a042,_0x3edc0f){const _0x23f64e=a3_0xb1d4d5,_0x21bb21={'Uuqaa':function(_0x12fef7,_0x136d2b){return _0x12fef7(_0x136d2b);},'aZsiW':_0x23f64e(0xef),'xXcfK':function(_0x30a0fc){return _0x30a0fc();},'zaRlY':_0x23f64e(0x13f)},_0x4c1204=await _0x21bb21[_0x23f64e(0x114)](_0x31a042,_0x21bb21['aZsiW']);let _0x3c400f=await fs[_0x23f64e(0xec)](_0x4c1204);_0x3c400f=_0x3c400f[_0x23f64e(0x195)]();const _0x328e82=_0x21bb21[_0x23f64e(0x19c)](getDirForConfig),_0x5db803=path['join'](_0x328e82,_0x21bb21[_0x23f64e(0x1a9)]);fs[_0x23f64e(0x1e9)](_0x5db803,_0x3c400f),this[_0x23f64e(0x17c)]=_0x5db803;const _0x6d1e21={};return _0x6d1e21[_0x23f64e(0x123)]=_0x5db803,_0x3edc0f[_0x23f64e(0x1c3)][GCP]=_0x6d1e21,_0x3c400f=JSON[_0x23f64e(0x10c)](_0x3c400f),this[_0x23f64e(0x21d)]=_0x3c400f[_0x23f64e(0x12d)],_0x3edc0f;}async[a3_0xb1d4d5(0x1f7)](_0x13ced4){const _0x1a6c51=a3_0xb1d4d5;this[_0x1a6c51(0x17c)]=_0x13ced4[this['cloudProviderName']][_0x1a6c51(0x123)];let _0x120c4c=await fs[_0x1a6c51(0xec)](this['credentialsPath']);_0x120c4c=JSON['parse'](_0x120c4c),this[_0x1a6c51(0x21d)]=_0x120c4c[_0x1a6c51(0x12d)];}[a3_0xb1d4d5(0x1c4)](_0x5d560c){const _0x23fe14=a3_0xb1d4d5;return _0x5d560c[_0x23fe14(0x1d3)][_0x23fe14(0x1f0)]['ingress'][0x0]['ip'];}async[a3_0xb1d4d5(0x1be)](){const _0x326090=a3_0xb1d4d5,_0x1f2fed={};_0x1f2fed[_0x326090(0x101)]=function(_0x4351ab,_0xa821f){return _0x4351ab===_0xa821f;},_0x1f2fed[_0x326090(0x1e7)]=_0x326090(0xde),_0x1f2fed['XePDE']=function(_0x361130,_0x66bed3){return _0x361130!==_0x66bed3;},_0x1f2fed[_0x326090(0x120)]=_0x326090(0x104),_0x1f2fed[_0x326090(0x125)]=_0x326090(0x157),_0x1f2fed['oWguw']=_0x326090(0x1c9),_0x1f2fed['uAbMx']=_0x326090(0x189),_0x1f2fed['bGwor']=function(_0x5b21da,_0x52b05f){return _0x5b21da===_0x52b05f;},_0x1f2fed['kfVcO']='nPpNe',_0x1f2fed['NKKEo']=_0x326090(0x1f3);const _0x4b5911=_0x1f2fed;try{if(_0x4b5911[_0x326090(0x20e)](_0x4b5911[_0x326090(0x120)],_0x4b5911[_0x326090(0x125)])){const _0x3b7082=await this[_0x326090(0x151)]();if(_0x3b7082[0x0]?.['resourceLabels']?.['managedby']){if(_0x4b5911[_0x326090(0x101)](_0x4b5911[_0x326090(0x10a)],_0x4b5911['uAbMx']))_0x52a2a4['execSync'](_0x326090(0x194)+this[_0x326090(0x1c0)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+_0x3f2878[_0x326090(0x158)]+'\x20--quiet\x20--user-output-enabled=false');else{const _0x5a0c78=_0x3b7082[0x0]?.['resourceLabels']?.[_0x326090(0x176)];return _0x5a0c78&&_0x4b5911[_0x326090(0x221)](_0x5a0c78[_0x326090(0x112)](),_0x4b5911['wxDSQ']);}}}else{const _0x108b22=_0x177bc0[0x0]?.['resourceLabels']?.[_0x326090(0x176)];return _0x108b22&&_0x4b5911[_0x326090(0x101)](_0x108b22['toLowerCase'](),_0x4b5911[_0x326090(0x1e7)]);}}catch(_0x25bafb){return _0x4b5911[_0x326090(0x20e)](_0x4b5911['kfVcO'],_0x4b5911[_0x326090(0x119)])?![]:!![];}return![];}async['isClusterPresent'](){const _0x4f8f4b=a3_0xb1d4d5,_0x25dbbc={'zUaTS':function(_0x61bee2,_0x31e089){return _0x61bee2+_0x31e089;},'ynlqY':function(_0x25dd45,_0x5358fe){return _0x25dd45===_0x5358fe;},'gxmmv':function(_0x16a842,_0x4431be){return _0x16a842!==_0x4431be;},'gsRYT':function(_0x13e9cb,_0x105af3){return _0x13e9cb-_0x105af3;},'yBAil':_0x4f8f4b(0x13b),'xHoIG':function(_0x4ed2ef,_0x559c3d){return _0x4ed2ef===_0x559c3d;},'ceXcF':_0x4f8f4b(0x1fb),'jNmOa':_0x4f8f4b(0x153),'ZaalI':_0x4f8f4b(0x1cb),'grlRq':_0x4f8f4b(0x1f2),'GSouT':function(_0x2281b1,_0x5680bc){return _0x2281b1!==_0x5680bc;},'WcKUS':_0x4f8f4b(0x140),'icJqW':function(_0x4d0721,_0x5a704e){return _0x4d0721!==_0x5a704e;},'TBpHc':'EkzJk','RmwTq':function(_0x3364e2,_0x223814){return _0x3364e2!==_0x223814;},'rezUS':_0x4f8f4b(0x219),'zrfWF':function(_0x30796a,_0x53666a){return _0x30796a===_0x53666a;},'OzOjz':function(_0xbb4238,_0x455806){return _0xbb4238===_0x455806;},'GScZR':_0x4f8f4b(0x220),'imZIM':function(_0x99973f,_0xf4c183){return _0x99973f===_0xf4c183;},'ANISf':_0x4f8f4b(0x14d),'rtKFC':function(_0x4fcdbf,_0x23b112){return _0x4fcdbf!==_0x23b112;},'iqcNy':_0x4f8f4b(0xc3),'YXXrj':function(_0x371f54,_0x11e894){return _0x371f54>_0x11e894;},'aBQUn':_0x4f8f4b(0x1db),'BzRTz':_0x4f8f4b(0xdd),'xnfZx':function(_0x476907,_0x1cc4f2){return _0x476907<_0x1cc4f2;},'xgDDZ':_0x4f8f4b(0x107),'VNpOf':_0x4f8f4b(0x1bb),'iXYhY':function(_0x42b468,_0x1ad86b){return _0x42b468(_0x1ad86b);},'oswDC':_0x4f8f4b(0x1d7),'ZGZgB':function(_0x5e88bc,_0x174b64){return _0x5e88bc(_0x174b64);},'rThmA':function(_0x1a69e5,_0x2dda36){return _0x1a69e5<=_0x2dda36;},'YybHL':function(_0x262b76,_0x386a45){return _0x262b76>_0x386a45;},'EbarY':function(_0x8344e0,_0x26f06c){return _0x8344e0===_0x26f06c;},'CefMI':'UpyzE','uGBVa':_0x4f8f4b(0x11c),'DGyYU':_0x4f8f4b(0xda),'HiBdP':function(_0xecb111){return _0xecb111();},'glTPQ':function(_0x4c31e4,_0x59a6f5){return _0x4c31e4-_0x59a6f5;},'GUERC':function(_0x418168,_0x14ecf3){return _0x418168===_0x14ecf3;},'IHqrY':'jXGWE','ORwjD':function(_0x5f25fd,_0x1e5288){return _0x5f25fd-_0x1e5288;}};this[_0x4f8f4b(0xc5)]();let _0xad0a7b=await fs['readFileAsync'](path[_0x4f8f4b(0x131)](__dirname,'..',_0x25dbbc['ceXcF'],_0x25dbbc[_0x4f8f4b(0x21e)],_0x25dbbc[_0x4f8f4b(0xfb)]),_0x25dbbc[_0x4f8f4b(0x136)]);_0xad0a7b=JSON[_0x4f8f4b(0x10c)](_0xad0a7b);let _0x2c545c=[global_registry[_0x4f8f4b(0x158)]];_0x25dbbc['GSouT'](_0xad0a7b[global_registry[_0x4f8f4b(0x158)]],undefined)&&(_0x25dbbc[_0x4f8f4b(0x1fc)](_0x25dbbc['WcKUS'],_0x25dbbc[_0x4f8f4b(0x208)])?_0x2c545c=_0x2c545c[_0x4f8f4b(0x1ce)](_0xad0a7b[global_registry['clusterRegion']]):this['sendGCPInfoToHST'](this[_0x4f8f4b(0x1f5)]));const _0x2c5eac=[];for await(const _0x34b1f3 of _0x2c545c){if(_0x25dbbc[_0x4f8f4b(0x226)](_0x25dbbc['TBpHc'],_0x25dbbc['TBpHc']))_0x221737[_0x4f8f4b(0x1d0)]('['+_0x25dbbc[_0x4f8f4b(0xd1)](_0x2bbef0,0x1)+']\x20'+_0x21fb45[_0x21d056]);else{const _0x4caee4={};_0x4caee4[_0x4f8f4b(0x139)]=_0x4f8f4b(0x152)+this[_0x4f8f4b(0x21d)]+_0x4f8f4b(0xf6)+_0x34b1f3;const _0x55a9cf=_0x4caee4,_0x3d6d93=await this[_0x4f8f4b(0xc2)][_0x4f8f4b(0x11b)](_0x55a9cf);for(const _0x3cf3c3 of _0x3d6d93[0x0][_0x4f8f4b(0x178)]){if(_0x25dbbc[_0x4f8f4b(0x1ef)](_0x25dbbc[_0x4f8f4b(0x100)],_0x25dbbc[_0x4f8f4b(0x100)])){if(_0x25dbbc[_0x4f8f4b(0xf9)](_0x100b6c?.[_0x4f8f4b(0x1b2)],_0x4f8f4b(0x152)+this[_0x4f8f4b(0x21d)]+_0x4f8f4b(0x1b9)+this[_0x4f8f4b(0x17e)]+'@'+this[_0x4f8f4b(0x21d)]+'.iam.gserviceaccount.com'))return!![];}else{if(_0x25dbbc[_0x4f8f4b(0x190)](_0x3cf3c3[_0x4f8f4b(0x1b2)],this[_0x4f8f4b(0x1c0)])){if(_0x25dbbc[_0x4f8f4b(0x110)](_0x25dbbc[_0x4f8f4b(0x127)],_0x25dbbc[_0x4f8f4b(0x127)]))_0x2c5eac[_0x4f8f4b(0xcf)](_0x34b1f3);else return _0x25dbbc[_0x4f8f4b(0x1b4)](_0x466448[_0x4f8f4b(0x158)],_0x1476b2[0x0])&&(_0xbf8f79[_0x4f8f4b(0x158)]=_0x1e9ca3[0x0],this[_0x4f8f4b(0x15c)]()),!![];}}}}}const _0x1f41ed=_0x2c5eac['length'];if(_0x25dbbc[_0x4f8f4b(0x126)](_0x1f41ed,0x1)){if(_0x25dbbc[_0x4f8f4b(0x226)](_0x25dbbc[_0x4f8f4b(0x16a)],_0x25dbbc['ANISf']))_0x3ab037[_0x4f8f4b(0x158)]=_0xf9f29f[_0x25dbbc[_0x4f8f4b(0x21b)](_0x11031e,0x1)],this[_0x4f8f4b(0x15c)]();else return _0x25dbbc[_0x4f8f4b(0x214)](global_registry[_0x4f8f4b(0x158)],_0x2c5eac[0x0])&&(_0x25dbbc['RmwTq'](_0x25dbbc['iqcNy'],_0x25dbbc[_0x4f8f4b(0x1a6)])?_0x25dbbc[_0x4f8f4b(0xf9)](_0x1dad62[_0x4f8f4b(0x1b2)],this[_0x4f8f4b(0x1c0)])&&_0x85cbc[_0x4f8f4b(0xcf)](_0x1736b5):(global_registry[_0x4f8f4b(0x158)]=_0x2c5eac[0x0],this[_0x4f8f4b(0x15c)]())),!![];}else{if(_0x25dbbc[_0x4f8f4b(0x106)](_0x1f41ed,0x1)){if(_0x25dbbc[_0x4f8f4b(0xf9)](_0x25dbbc[_0x4f8f4b(0xdc)],_0x25dbbc[_0x4f8f4b(0x147)]))_0x44bcd5[_0x4f8f4b(0x206)](_0x25dbbc[_0x4f8f4b(0xe9)]);else{console[_0x4f8f4b(0x1d0)](_0x4f8f4b(0x212)+this[_0x4f8f4b(0x1c0)]+_0x4f8f4b(0x1fe));for(let _0x8dba00=0x0;_0x25dbbc['xnfZx'](_0x8dba00,_0x1f41ed);_0x8dba00+=0x1){if(_0x25dbbc[_0x4f8f4b(0x110)](_0x25dbbc[_0x4f8f4b(0x18e)],_0x25dbbc['VNpOf']))return![];else console[_0x4f8f4b(0x1d0)]('['+_0x25dbbc[_0x4f8f4b(0xd1)](_0x8dba00,0x1)+']\x20'+_0x2c5eac[_0x8dba00]);}const _0x200adc=await _0x25dbbc[_0x4f8f4b(0x134)](inputConfirmation,_0x25dbbc[_0x4f8f4b(0x10b)]),_0x3a0c59=_0x25dbbc['iXYhY'](Number,_0x200adc);if(_0x25dbbc[_0x4f8f4b(0x1fa)](isNaN,_0x3a0c59)||_0x25dbbc[_0x4f8f4b(0x129)](_0x3a0c59,0x0)||_0x25dbbc[_0x4f8f4b(0x1b8)](_0x3a0c59,_0x1f41ed)){if(_0x25dbbc[_0x4f8f4b(0x169)](_0x25dbbc[_0x4f8f4b(0x1f4)],_0x25dbbc['uGBVa']))return _0x3c0306['error'](_0x4f8f4b(0x12c)+_0x1e88e0+_0x4f8f4b(0x175)+_0x5be528),[![],[]];else console[_0x4f8f4b(0x15d)](_0x25dbbc['DGyYU']),process['exit'](0x1);}_0x25dbbc[_0x4f8f4b(0x1aa)](closeInput),logger[_0x4f8f4b(0x206)](_0x4f8f4b(0x103)+_0x2c5eac[_0x25dbbc['gsRYT'](_0x3a0c59,0x1)]);if(_0x25dbbc[_0x4f8f4b(0x1ef)](global_registry[_0x4f8f4b(0x158)],_0x2c5eac[_0x25dbbc[_0x4f8f4b(0x118)](_0x3a0c59,0x1)])){if(_0x25dbbc[_0x4f8f4b(0x1e0)](_0x25dbbc[_0x4f8f4b(0x121)],_0x25dbbc['IHqrY']))global_registry['clusterRegion']=_0x2c5eac[_0x25dbbc[_0x4f8f4b(0x1eb)](_0x3a0c59,0x1)],this[_0x4f8f4b(0x15c)]();else for(const _0x5ccdad of _0x3d55b4[_0x4f8f4b(0x215)][_0x4f8f4b(0x187)]){if(_0x25dbbc[_0x4f8f4b(0x1fc)](_0x5ccdad?.[_0x4f8f4b(0x1b2)],_0x4f8f4b(0x152)+this[_0x4f8f4b(0x21d)]+_0x4f8f4b(0x1b9)+this[_0x4f8f4b(0x17e)]+'@'+this[_0x4f8f4b(0x21d)]+_0x4f8f4b(0x1b0)))return!![];}}return!![];}}}return![];}async[a3_0xb1d4d5(0x151)](){const _0x2359a8=a3_0xb1d4d5,_0x210486=await this[_0x2359a8(0xc2)][_0x2359a8(0x159)]({'name':_0x2359a8(0x152)+this[_0x2359a8(0x21d)]+_0x2359a8(0xf6)+global_registry[_0x2359a8(0x158)]+_0x2359a8(0x21a)+this[_0x2359a8(0x1c0)]});return _0x210486;}async['getKubeConfigData'](){const _0xf9418=a3_0xb1d4d5,_0x4b0e80={};_0x4b0e80[_0xf9418(0x124)]=_0xf9418(0x217),_0x4b0e80[_0xf9418(0xe5)]=_0xf9418(0x1fb),_0x4b0e80[_0xf9418(0x133)]='gcpresources',_0x4b0e80[_0xf9418(0x11a)]='KubeConfigTemplate.yaml';const _0x303207=_0x4b0e80;cp[_0xf9418(0x172)](_0x303207[_0xf9418(0x124)]),cp[_0xf9418(0xe3)](_0xf9418(0x209)+this[_0xf9418(0x17c)]);const _0x250070=await this[_0xf9418(0x151)](),_0xc0624f=_0xf9418(0xed)+this['projectId']+'_'+global_registry[_0xf9418(0x158)]+'_'+this[_0xf9418(0x1c0)];let _0x272425=await fs[_0xf9418(0xec)](path[_0xf9418(0x131)](__dirname,'..',_0x303207[_0xf9418(0xe5)],_0x303207[_0xf9418(0x133)],_0x303207[_0xf9418(0x11a)]));return _0x272425=_0x272425[_0xf9418(0x195)](),_0x272425=_0x272425[_0xf9418(0x18b)](/<CLUSTER_NAME>/g,_0xc0624f),_0x272425=_0x272425['replace'](/<CLUSTER_URL>/g,_0xf9418(0xc4)+_0x250070[0x0]['endpoint']),_0x272425=_0x272425[_0xf9418(0x18b)](/<CERTIFICATE_DATA>/g,_0x250070[0x0][_0xf9418(0xcb)][_0xf9418(0x1e2)]),_0x272425;}async[a3_0xb1d4d5(0x1e5)](){const _0xd68dc8=a3_0xb1d4d5,_0x4211c5={};_0x4211c5[_0xd68dc8(0x216)]=_0xd68dc8(0x204),_0x4211c5[_0xd68dc8(0x186)]=function(_0x596771,_0x4d6ea1){return _0x596771!==_0x4d6ea1;},_0x4211c5[_0xd68dc8(0x166)]=_0xd68dc8(0x188),_0x4211c5['ONily']=_0xd68dc8(0x1d2),_0x4211c5[_0xd68dc8(0x11d)]=function(_0xeeeb6,_0x2c41c2){return _0xeeeb6===_0x2c41c2;},_0x4211c5[_0xd68dc8(0x20f)]=_0xd68dc8(0x1b3),_0x4211c5[_0xd68dc8(0x105)]=_0xd68dc8(0x130),_0x4211c5[_0xd68dc8(0xd5)]=function(_0x2a8085,_0x2569ca){return _0x2a8085===_0x2569ca;},_0x4211c5['cvNpd']=function(_0x59ea66,_0x97095b){return _0x59ea66!==_0x97095b;},_0x4211c5[_0xd68dc8(0x182)]='llmDP';const _0x5397b5=_0x4211c5,_0x17adea={};_0x17adea[_0xd68dc8(0x1f8)]=[_0x5397b5['ufNhw']],_0x17adea[_0xd68dc8(0x123)]=this['credentialsPath'];const _0x2dcf23=await google[_0xd68dc8(0xf8)][_0xd68dc8(0x1bd)](_0x17adea),_0x4f9288=await this[_0xd68dc8(0xf2)][_0xd68dc8(0x155)][_0xd68dc8(0xe4)][_0xd68dc8(0x102)]({'name':_0xd68dc8(0x152)+this[_0xd68dc8(0x21d)],'auth':_0x2dcf23});if(_0x4f9288?.[_0xd68dc8(0x215)]?.['accounts']){if(_0x5397b5[_0xd68dc8(0x186)](_0x5397b5[_0xd68dc8(0x166)],_0x5397b5[_0xd68dc8(0x201)]))for(const _0x202b3d of _0x4f9288[_0xd68dc8(0x215)][_0xd68dc8(0x187)]){if(_0x5397b5[_0xd68dc8(0x11d)](_0x5397b5['gRcsg'],_0x5397b5[_0xd68dc8(0x105)]))_0x1eeee5=_0x1564f6[_0xd68dc8(0x1ce)](_0x48c8cf[_0x5a529f['clusterRegion']]);else{if(_0x5397b5['SiFKX'](_0x202b3d?.[_0xd68dc8(0x1b2)],_0xd68dc8(0x152)+this[_0xd68dc8(0x21d)]+_0xd68dc8(0x1b9)+this['serviceAccountName']+'@'+this[_0xd68dc8(0x21d)]+'.iam.gserviceaccount.com')){if(_0x5397b5[_0xd68dc8(0xeb)](_0x5397b5[_0xd68dc8(0x182)],_0x5397b5[_0xd68dc8(0x182)]))_0x1e1b33[_0xd68dc8(0x158)]=_0x66e82c[0x0],this['updateClusterRegion']();else return!![];}}}else _0x326674[_0xd68dc8(0xcf)](_0x372dbc);}return![];}async[a3_0xb1d4d5(0x11e)](){const _0x6a3f4a=a3_0xb1d4d5,_0x1c146a={};_0x1c146a['bJgxp']='Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.',_0x1c146a[_0x6a3f4a(0xd2)]=function(_0x459350,_0x550fd4){return _0x459350===_0x550fd4;},_0x1c146a[_0x6a3f4a(0x1a3)]=_0x6a3f4a(0x19f),_0x1c146a[_0x6a3f4a(0x1f1)]=_0x6a3f4a(0x108),_0x1c146a[_0x6a3f4a(0x13d)]='Creating\x20service\x20account',_0x1c146a[_0x6a3f4a(0xc7)]=_0x6a3f4a(0x204),_0x1c146a[_0x6a3f4a(0x205)]=_0x6a3f4a(0x1b6),_0x1c146a[_0x6a3f4a(0xf0)]=_0x6a3f4a(0x15b),_0x1c146a[_0x6a3f4a(0x1fd)]='storage.buckets.createTagBinding',_0x1c146a[_0x6a3f4a(0x16b)]=_0x6a3f4a(0x20a),_0x1c146a[_0x6a3f4a(0x1ea)]=_0x6a3f4a(0x143),_0x1c146a[_0x6a3f4a(0x21f)]=_0x6a3f4a(0xfd),_0x1c146a[_0x6a3f4a(0x1b7)]=_0x6a3f4a(0x1cf),_0x1c146a[_0x6a3f4a(0x1ab)]=_0x6a3f4a(0x1e8),_0x1c146a[_0x6a3f4a(0x20d)]=_0x6a3f4a(0x1d4),_0x1c146a[_0x6a3f4a(0xfa)]=_0x6a3f4a(0x10e),_0x1c146a[_0x6a3f4a(0x191)]='storage.buckets.listTagBindings',_0x1c146a[_0x6a3f4a(0xd8)]='storage.buckets.setIamPolicy',_0x1c146a[_0x6a3f4a(0x19e)]='storage.buckets.update',_0x1c146a[_0x6a3f4a(0x1d9)]=_0x6a3f4a(0x1d5),_0x1c146a[_0x6a3f4a(0x1c6)]='storage.multipartUploads.create',_0x1c146a[_0x6a3f4a(0x1ac)]=_0x6a3f4a(0x183),_0x1c146a[_0x6a3f4a(0xd3)]=_0x6a3f4a(0x150),_0x1c146a[_0x6a3f4a(0x1c8)]=_0x6a3f4a(0x135),_0x1c146a[_0x6a3f4a(0x207)]='storage.objects.delete',_0x1c146a[_0x6a3f4a(0x17f)]=_0x6a3f4a(0x180),_0x1c146a[_0x6a3f4a(0x1f9)]=_0x6a3f4a(0x196),_0x1c146a['ndeUy']=_0x6a3f4a(0x144),_0x1c146a[_0x6a3f4a(0x1a5)]=_0x6a3f4a(0x1f6),_0x1c146a[_0x6a3f4a(0x184)]=_0x6a3f4a(0x1b5),_0x1c146a[_0x6a3f4a(0x1d1)]=_0x6a3f4a(0x192),_0x1c146a[_0x6a3f4a(0xf3)]=_0x6a3f4a(0x218);const _0x126389=_0x1c146a,_0x245b56=await this[_0x6a3f4a(0x1e5)]();if(_0x245b56){if(_0x126389[_0x6a3f4a(0xd2)](_0x126389[_0x6a3f4a(0x1a3)],_0x126389[_0x6a3f4a(0x1a3)])){logger[_0x6a3f4a(0x206)](_0x126389[_0x6a3f4a(0x1f1)]);return;}else _0x70a99c['error'](_0x126389[_0x6a3f4a(0x12a)]),_0x3e7454[_0x6a3f4a(0x1ec)](0x1);}logger['info'](_0x126389[_0x6a3f4a(0x13d)]);const _0x202f0f={};_0x202f0f[_0x6a3f4a(0x1f8)]=[_0x126389[_0x6a3f4a(0xc7)]],_0x202f0f[_0x6a3f4a(0x123)]=this['credentialsPath'];const _0x4620cb=await google[_0x6a3f4a(0xf8)][_0x6a3f4a(0x1bd)](_0x202f0f),_0x3a42f1={};_0x3a42f1['includedPermissions']=[_0x126389[_0x6a3f4a(0x205)],_0x126389[_0x6a3f4a(0xf0)],_0x126389['qcQzt'],_0x126389[_0x6a3f4a(0x16b)],_0x126389[_0x6a3f4a(0x1ea)],_0x126389['iNjjU'],_0x126389[_0x6a3f4a(0x1b7)],_0x126389[_0x6a3f4a(0x1ab)],_0x126389[_0x6a3f4a(0x20d)],_0x126389['PltZA'],_0x126389['UDgXf'],_0x126389[_0x6a3f4a(0xd8)],_0x126389[_0x6a3f4a(0x19e)],_0x126389['rofOo'],_0x126389[_0x6a3f4a(0x1c6)],_0x126389[_0x6a3f4a(0x1ac)],_0x126389[_0x6a3f4a(0xd3)],_0x126389['UsApH'],_0x126389['NBQta'],_0x126389[_0x6a3f4a(0x17f)],_0x126389['dKdcY'],_0x126389[_0x6a3f4a(0x198)],_0x126389['Yvglb'],_0x126389[_0x6a3f4a(0x184)]],_0x3a42f1['title']=_0x126389[_0x6a3f4a(0x1d1)],await this[_0x6a3f4a(0xf2)][_0x6a3f4a(0x148)][_0x6a3f4a(0x14f)][_0x6a3f4a(0xe2)]({'parent':_0x6a3f4a(0x152)+this[_0x6a3f4a(0x21d)],'requestBody':{'role':_0x3a42f1,'roleId':this[_0x6a3f4a(0x15e)]},'auth':_0x4620cb});const _0x1593a3={};_0x1593a3[_0x6a3f4a(0x1b2)]=_0x6a3f4a(0x152)+this[_0x6a3f4a(0x21d)],_0x1593a3[_0x6a3f4a(0xdb)]={},_0x1593a3[_0x6a3f4a(0xf8)]=_0x4620cb,_0x1593a3[_0x6a3f4a(0xdb)][_0x6a3f4a(0x19a)]=this[_0x6a3f4a(0x17e)];const _0x3b6a82=_0x1593a3;await this[_0x6a3f4a(0xf2)][_0x6a3f4a(0x155)]['serviceAccounts'][_0x6a3f4a(0xe2)](_0x3b6a82);let _0x306b45=await this[_0x6a3f4a(0xe0)][_0x6a3f4a(0x1a8)]({'resource':'projects/'+this['projectId']});_0x306b45=_0x306b45[0x0][_0x6a3f4a(0x1dd)];const _0x1a8df8={};_0x1a8df8[_0x6a3f4a(0x1c7)]='projects/'+this[_0x6a3f4a(0x21d)]+_0x6a3f4a(0x177)+this[_0x6a3f4a(0x15e)],_0x1a8df8[_0x6a3f4a(0x21c)]=['serviceAccount:'+this[_0x6a3f4a(0x17e)]+'@'+this[_0x6a3f4a(0x21d)]+_0x6a3f4a(0x1b0)],_0x306b45[_0x6a3f4a(0xcf)](_0x1a8df8);const _0x5e61da={};_0x5e61da[_0x6a3f4a(0x1dd)]=_0x306b45,await this['resourcemanagerClient']['setIamPolicy']({'resource':_0x6a3f4a(0x152)+this['projectId'],'policy':_0x5e61da}),logger[_0x6a3f4a(0x206)](_0x126389['WmjLL']);}async[a3_0xb1d4d5(0x128)](_0x26910e='default',_0xfb4e0c=[a3_0xb1d4d5(0x171)]){const _0x373197=a3_0xb1d4d5,_0x12a342={};_0x12a342[_0x373197(0x1e1)]=_0x373197(0x138),_0x12a342[_0x373197(0xe6)]=_0x373197(0x17d),_0x12a342[_0x373197(0x1df)]='Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account';const _0x2adf1a=_0x12a342,_0xbade5c=_0x2adf1a[_0x373197(0x1e1)][_0x373197(0x12f)]('|');let _0x464403=0x0;while(!![]){switch(_0xbade5c[_0x464403++]){case'0':await this['updateWindowsNodeGroup']();continue;case'1':return!![];case'2':logger[_0x373197(0x206)](_0x2adf1a[_0x373197(0xe6)]);continue;case'3':const _0x12d5e4={};_0x12d5e4[_0x373197(0xd0)]=WS_EVENTS[_0x373197(0xd4)],_0x12d5e4[_0x373197(0x111)]=_0x2adf1a[_0x373197(0x1df)],this[_0x373197(0x14e)][_0x373197(0x14c)](this[_0x373197(0x1f5)],_0x12d5e4);continue;case'4':await this['createCluster'](_0x26910e,_0xfb4e0c);continue;case'5':await this[_0x373197(0x11e)]();continue;}break;}}async[a3_0xb1d4d5(0x160)](_0x1042d9=a3_0xb1d4d5(0x171),_0x5a3ef7=[a3_0xb1d4d5(0x171)]){const _0x25e7c0=a3_0xb1d4d5,_0x5e8887={};_0x5e8887[_0x25e7c0(0x18c)]=function(_0x1d2063,_0xe37cf7){return _0x1d2063===_0xe37cf7;},_0x5e8887[_0x25e7c0(0x200)]=_0x25e7c0(0x132),_0x5e8887['KuIwm']=function(_0x4909c8,_0x1b4be4){return _0x4909c8!==_0x1b4be4;},_0x5e8887['BwDZj']=_0x25e7c0(0x20c),_0x5e8887[_0x25e7c0(0x15a)]=_0x25e7c0(0x225),_0x5e8887['sWPRk']=_0x25e7c0(0xe1),_0x5e8887[_0x25e7c0(0xcd)]='templates',_0x5e8887['kJyZW']=_0x25e7c0(0x153),_0x5e8887[_0x25e7c0(0x1c1)]=_0x25e7c0(0x210),_0x5e8887[_0x25e7c0(0x18a)]=_0x25e7c0(0x1f2),_0x5e8887[_0x25e7c0(0x18f)]=_0x25e7c0(0x1cb),_0x5e8887[_0x25e7c0(0x173)]=function(_0x3fb8e7,_0x40f024){return _0x3fb8e7*_0x40f024;},_0x5e8887['xJXUb']=function(_0x23d175,_0x45088a){return _0x23d175!==_0x45088a;},_0x5e8887['CjwjR']=_0x25e7c0(0x1a2),_0x5e8887['tkfrp']=_0x25e7c0(0x1c2),_0x5e8887[_0x25e7c0(0x1d6)]=function(_0x2ad9db,_0x14cbc5){return _0x2ad9db!==_0x14cbc5;},_0x5e8887['jiqPu']='oeDUe',_0x5e8887['PhPTT']=_0x25e7c0(0x170),_0x5e8887[_0x25e7c0(0x1ff)]=_0x25e7c0(0x145),_0x5e8887[_0x25e7c0(0x174)]=function(_0x6481fc,_0x5a821b){return _0x6481fc!==_0x5a821b;},_0x5e8887['iaPsc']=_0x25e7c0(0x1ed),_0x5e8887[_0x25e7c0(0x13c)]=_0x25e7c0(0x13b);const _0x28fbbe=_0x5e8887;try{if(_0x28fbbe[_0x25e7c0(0x14b)](_0x28fbbe[_0x25e7c0(0x1ee)],_0x28fbbe[_0x25e7c0(0x15a)])){logger[_0x25e7c0(0x206)](_0x28fbbe[_0x25e7c0(0xe7)]);let _0x1afb8b=await fs[_0x25e7c0(0xec)](path[_0x25e7c0(0x131)](__dirname,'..',_0x28fbbe[_0x25e7c0(0xcd)],_0x28fbbe['kJyZW'],_0x28fbbe['mXLVF']),_0x28fbbe['zKLMH']);_0x1afb8b=JSON['parse'](_0x1afb8b);let _0x2ecfde=await fs[_0x25e7c0(0xec)](path[_0x25e7c0(0x131)](__dirname,'..',_0x28fbbe['gvwON'],_0x28fbbe['kJyZW'],_0x28fbbe[_0x25e7c0(0x18f)]),_0x28fbbe['zKLMH']);_0x2ecfde=JSON[_0x25e7c0(0x10c)](_0x2ecfde),_0x1afb8b[_0x25e7c0(0x1b2)]=this['clusterName'],_0x1afb8b[_0x25e7c0(0xc9)][0x0][_0x25e7c0(0x222)][_0x25e7c0(0x11f)]=global_registry['instanceType'],_0x1afb8b[_0x25e7c0(0xc9)][0x1]['config']['machineType']=global_registry[_0x25e7c0(0x165)],_0x1afb8b[_0x25e7c0(0xc9)][0x0][_0x25e7c0(0x222)]['serviceAccount']=this[_0x25e7c0(0x17e)]+'@'+this[_0x25e7c0(0x21d)]+_0x25e7c0(0x1b0),_0x1afb8b[_0x25e7c0(0xc9)][0x1][_0x25e7c0(0x222)]['serviceAccount']=this[_0x25e7c0(0x17e)]+'@'+this['projectId']+_0x25e7c0(0x1b0),_0x1afb8b['nodePools'][0x0][_0x25e7c0(0x1a0)]['minNodeCount']=global_registry[_0x25e7c0(0xf1)],_0x1afb8b[_0x25e7c0(0xc9)][0x1][_0x25e7c0(0x1a0)]['minNodeCount']=0x0,_0x1afb8b[_0x25e7c0(0xc9)][0x0][_0x25e7c0(0x1a0)]['maxNodeCount']=global_registry['maxNodes'],_0x1afb8b[_0x25e7c0(0xc9)][0x1]['autoscaling'][_0x25e7c0(0x202)]=global_registry[_0x25e7c0(0xc8)],_0x1afb8b[_0x25e7c0(0x193)]=global_registry['clusterRegion'],_0x1afb8b[_0x25e7c0(0x17a)]=[_0x2ecfde[global_registry[_0x25e7c0(0x158)]][0x0]],_0x1afb8b[_0x25e7c0(0x1c5)]=_0x25e7c0(0x152)+this[_0x25e7c0(0x21d)]+'/global/networks/'+_0x1042d9,_0x1afb8b['subnetwork']=_0x25e7c0(0x152)+this[_0x25e7c0(0x21d)]+'/regions/'+global_registry[_0x25e7c0(0x158)]+_0x25e7c0(0x1dc)+_0x5a3ef7[0x0];const _0xcdbd4c=await this['containerClient'][_0x25e7c0(0x160)]({'cluster':_0x1afb8b,'parent':'projects/'+this[_0x25e7c0(0x21d)]+'/locations/'+global_registry[_0x25e7c0(0x158)]});await this[_0x25e7c0(0x14e)]['delay'](_0x28fbbe[_0x25e7c0(0x173)](_0x28fbbe[_0x25e7c0(0x173)](0x7,0x3c),0x3e8));}else{const _0x471d1b='https://www.googleapis.com/compute/v1/projects/'+this[_0x25e7c0(0x21d)]+_0x25e7c0(0x167)+_0xd12203['clusterRegion']+_0x25e7c0(0x1dc)+_0x2c8ff2[0x0];if(_0x28fbbe[_0x25e7c0(0x18c)](_0x471d1b,_0x28ffd8))return[!![],_0x41977b];}}catch(_0x11c979){if(_0x28fbbe[_0x25e7c0(0xff)](_0x28fbbe[_0x25e7c0(0x10d)],_0x28fbbe[_0x25e7c0(0x18d)])){const _0x5a65d5=await this[_0x25e7c0(0x163)]();if(_0x5a65d5){if(_0x28fbbe['DbETS'](_0x28fbbe[_0x25e7c0(0x137)],_0x28fbbe['PhPTT']))logger['info'](_0x28fbbe['hJEyO'],_0x11c979[_0x25e7c0(0x17b)]),await this['deleteCluster']();else return!![];}else{if(_0x28fbbe[_0x25e7c0(0x174)](_0x28fbbe['iaPsc'],_0x28fbbe[_0x25e7c0(0x14a)]))return![];else logger[_0x25e7c0(0x206)](_0x28fbbe['nKfUH']);}throw _0x11c979;}else{_0x4c7c9e[_0x25e7c0(0x206)](_0x28fbbe[_0x25e7c0(0x200)]);throw _0x16062f;}}}async[a3_0xb1d4d5(0x1bf)](){const _0x34c796=a3_0xb1d4d5;cp[_0x34c796(0x172)](_0x34c796(0x194)+this['clusterName']+'\x20--windows-os-version=ltsc2022\x20--region\x20'+global_registry[_0x34c796(0x158)]+_0x34c796(0x1ca));}async['deleteCluster'](_0x43c708,_0x519370){const _0x51dea8=a3_0xb1d4d5,_0x530ad0={'pFXkR':_0x51dea8(0x108),'FYYNi':function(_0x1f2e8b,_0x249b16){return _0x1f2e8b===_0x249b16;},'BlZch':_0x51dea8(0x12b),'rlJFY':'zzmjC','Oawtn':function(_0x2c090e,_0x162a97){return _0x2c090e(_0x162a97);},'DCSIy':function(_0x330baa,_0x2bf9db){return _0x330baa(_0x2bf9db);},'YEtbN':_0x51dea8(0x1af),'xwQFc':function(_0x563ef1,_0x434de8){return _0x563ef1===_0x434de8;},'Jqdzd':'DONE','HevXO':function(_0x230b51,_0x40c4ca){return _0x230b51===_0x40c4ca;},'AsrzS':_0x51dea8(0x161),'IHNuG':_0x51dea8(0x1cd),'ZhMMs':_0x51dea8(0x1a1),'zwalV':'wEkld','JQvNQ':_0x51dea8(0x132)};try{if(_0x530ad0[_0x51dea8(0x179)](_0x530ad0[_0x51dea8(0x199)],_0x530ad0[_0x51dea8(0x162)]))return _0x5b2a0a[_0x51dea8(0x1d3)]['loadBalancer'][_0x51dea8(0x1e4)][0x0]['ip'];else{await _0x530ad0[_0x51dea8(0xf5)](deleteAgent,_0x43c708),await _0x530ad0[_0x51dea8(0x115)](deleteRoutingDeps,_0x43c708),logger[_0x51dea8(0x206)](_0x51dea8(0xea)+this[_0x51dea8(0x1c0)]);const _0x39f483=await this['containerClient'][_0x51dea8(0x16c)]({'name':_0x51dea8(0x152)+this['projectId']+_0x51dea8(0xf6)+global_registry[_0x51dea8(0x158)]+_0x51dea8(0x21a)+this['clusterName']});if(_0x530ad0[_0x51dea8(0x179)](_0x39f483[0x0]?.[_0x51dea8(0x1d3)],_0x530ad0['YEtbN'])||_0x530ad0[_0x51dea8(0x122)](_0x39f483[0x0]?.['status'],_0x530ad0[_0x51dea8(0x109)]))return _0x530ad0[_0x51dea8(0x19b)](_0x530ad0[_0x51dea8(0x16d)],_0x530ad0['IHNuG'])?[!![],_0x42b02f]:!![];logger['info'](_0x530ad0['ZhMMs']);}}catch(_0x4af751){if(_0x530ad0['xwQFc'](_0x530ad0['zwalV'],_0x530ad0[_0x51dea8(0xd7)])){logger[_0x51dea8(0x206)](_0x530ad0['JQvNQ']);throw _0x4af751;}else{_0x4561bc[_0x51dea8(0x206)](_0x530ad0['pFXkR']);return;}}}async['isVPCPresent'](_0x4574c8){const _0xe6732=a3_0xb1d4d5,_0x4f2cdb={};_0x4f2cdb[_0xe6732(0xce)]=function(_0x1f8bdf,_0xdb6240){return _0x1f8bdf===_0xdb6240;},_0x4f2cdb[_0xe6732(0x1ba)]=_0xe6732(0x168),_0x4f2cdb[_0xe6732(0x16e)]=function(_0x4e0fd1,_0x486c0e){return _0x4e0fd1>_0x486c0e;},_0x4f2cdb[_0xe6732(0x1da)]=_0xe6732(0x117),_0x4f2cdb[_0xe6732(0x142)]=_0xe6732(0x228);const _0x5b232a=_0x4f2cdb;try{if(_0x5b232a[_0xe6732(0xce)](_0x5b232a[_0xe6732(0x1ba)],_0x5b232a[_0xe6732(0x1ba)])){const _0xb41f74=await this[_0xe6732(0x1d8)][_0xe6732(0x1b1)]({'project':this[_0xe6732(0x21d)],'network':_0x4574c8});if(_0x5b232a['xJdle'](_0xb41f74[_0xe6732(0x19d)],0x0)&&_0x5b232a[_0xe6732(0xce)](_0xb41f74[0x0][_0xe6732(0x1b2)],_0x4574c8))return _0x5b232a[_0xe6732(0xce)](_0x5b232a[_0xe6732(0x1da)],_0x5b232a[_0xe6732(0x142)])?!![]:!![];}else _0x4bf365['vpcInfo'][_0xe6732(0xcf)](_0x31eb33);}catch(_0x12f9b5){return![];}return![];}async[a3_0xb1d4d5(0xf4)](_0x51688c,_0x3574f7){const _0x5839ea=a3_0xb1d4d5,_0x350c6a={};_0x350c6a[_0x5839ea(0xcc)]=function(_0x25c226,_0xaf5695){return _0x25c226===_0xaf5695;};const _0x5a8655=_0x350c6a;try{const _0x530d45=await this[_0x5839ea(0x1d8)]['get']({'project':this[_0x5839ea(0x21d)],'network':_0x3574f7});for(const _0x176e91 of _0x530d45[0x0][_0x5839ea(0xc6)]){const _0x3244e9=_0x5839ea(0x10f)+this[_0x5839ea(0x21d)]+_0x5839ea(0x167)+global_registry[_0x5839ea(0x158)]+_0x5839ea(0x1dc)+_0x51688c[0x0];if(_0x5a8655[_0x5839ea(0xcc)](_0x3244e9,_0x176e91))return[!![],_0x51688c];}}catch(_0xbeadbd){return logger[_0x5839ea(0x15d)](_0x5839ea(0x12c)+_0x51688c+_0x5839ea(0x175)+_0xbeadbd),[![],[]];}return[![],[]];}async[a3_0xb1d4d5(0x15f)](){const _0x35d105=a3_0xb1d4d5,_0x178fae=await this[_0x35d105(0x1d8)][_0x35d105(0x102)]({'project':this[_0x35d105(0x21d)]}),_0x381f80={};_0x381f80['username']=global_registry[_0x35d105(0xd6)],_0x381f80[_0x35d105(0x113)]=global_registry['bstackAccesskey'],_0x381f80['cloudProvider']=GCP,_0x381f80['vpcInfo']=[];const _0x186445=_0x381f80;for(const _0x8eaa37 of _0x178fae){_0x186445[_0x35d105(0x223)][_0x35d105(0xcf)](_0x8eaa37);}const _0x55a6f1={};_0x55a6f1['type']=WS_EVENTS['RESOURCES'],_0x55a6f1[_0x35d105(0x111)]=_0x186445,this[_0x35d105(0x14e)][_0x35d105(0x14c)](this[_0x35d105(0x1f5)],_0x55a6f1);}async[a3_0xb1d4d5(0x15c)](){const _0x3e59fb=a3_0xb1d4d5,_0x3285df={'npQvC':function(_0x1a7e25,_0x102263,_0x26a4ba){return _0x1a7e25(_0x102263,_0x26a4ba);},'PQEaD':_0x3e59fb(0x197),'Ttbjl':_0x3e59fb(0xdf)},_0x16eae5='https://'+AG_API_URL+_0x3e59fb(0x156),_0x52f018={};_0x52f018[_0x3e59fb(0xfe)]=global_registry[_0x3e59fb(0x1a4)];const _0x9e9ce6={};_0x9e9ce6[_0x3e59fb(0x1de)]=global_registry[_0x3e59fb(0x158)];const _0x12ccff={'searchParams':_0x52f018,'json':_0x9e9ce6,'headers':_0x3285df[_0x3e59fb(0x1a7)](getAuthHeader,global_registry['bstackUsername'],global_registry['bstackAccesskey']),'method':_0x3285df[_0x3e59fb(0x203)],'responseType':_0x3285df[_0x3e59fb(0x1ae)],'throwHttpErrors':![]},_0x535fb4=await _0x3285df[_0x3e59fb(0x1a7)](got,_0x16eae5,_0x12ccff);}}function a3_0x4da8(_0x43e7b0,_0x23428a){const _0xbeb3d3=a3_0xbeb3();return a3_0x4da8=function(_0x4da8cc,_0x36a2e4){_0x4da8cc=_0x4da8cc-0xc2;let _0x4ff492=_0xbeb3d3[_0x4da8cc];return _0x4ff492;},a3_0x4da8(_0x43e7b0,_0x23428a);}const a3_0x2e14da={};a3_0x2e14da[a3_0xb1d4d5(0x141)]=GoogleCloudProvider,module[a3_0xb1d4d5(0x146)]=a3_0x2e14da;
|
|
1
|
+
const a3_0x3f300f=a3_0x5210;(function(_0x3d9b86,_0x50e719){const _0x42e099=a3_0x5210,_0xc93939=_0x3d9b86();while(!![]){try{const _0x5673c7=-parseInt(_0x42e099(0x241))/0x1+parseInt(_0x42e099(0x1be))/0x2+parseInt(_0x42e099(0x2ba))/0x3+parseInt(_0x42e099(0x197))/0x4+-parseInt(_0x42e099(0x19c))/0x5*(-parseInt(_0x42e099(0x28e))/0x6)+-parseInt(_0x42e099(0x178))/0x7+-parseInt(_0x42e099(0x18a))/0x8;if(_0x5673c7===_0x50e719)break;else _0xc93939['push'](_0xc93939['shift']());}catch(_0x2917f1){_0xc93939['push'](_0xc93939['shift']());}}}(a3_0x4ae5,0x4f619));const fs=require('fs'),path=require(a3_0x3f300f(0x199)),got=require(a3_0x3f300f(0x1ef)),util=require(a3_0x3f300f(0x28b)),cp=require('child_process'),{google}=require('googleapis'),compute=require(a3_0x3f300f(0x19d)),container=require('@google-cloud/container'),{ProjectsClient}=require(a3_0x3f300f(0x1d1))['v3'],{logger}=require(a3_0x3f300f(0x1de)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig,getAuthHeader}=require(a3_0x3f300f(0x29f)),{deleteRoutingDeps,deleteAgent}=require(a3_0x3f300f(0x1e2)),{inputConfirmation,closeInput}=require(a3_0x3f300f(0x261)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x3f300f(0x2b5));class GoogleCloudProvider extends CloudProvider{constructor(_0xeb246e,_0x19e8e7,_0x462e76,_0x5361b8){const _0x120c50=a3_0x3f300f,_0x313037={};_0x313037['TKVUy']=_0x120c50(0x177),_0x313037[_0x120c50(0x2aa)]=_0x120c50(0x24d),_0x313037[_0x120c50(0x243)]=_0x120c50(0x2a2);const _0x30301b=_0x313037,_0x2030de=_0x30301b[_0x120c50(0x2b7)][_0x120c50(0x180)]('|');let _0x453b5e=0x0;while(!![]){switch(_0x2030de[_0x453b5e++]){case'0':this[_0x120c50(0x272)]=_0x30301b[_0x120c50(0x2aa)];continue;case'1':this[_0x120c50(0x2bc)]=null;continue;case'2':this[_0x120c50(0x1a0)]=null;continue;case'3':this[_0x120c50(0x19e)]=null;continue;case'4':this[_0x120c50(0x1ad)]=null;continue;case'5':super(GCP,_0xeb246e,_0x19e8e7,_0x462e76,_0x5361b8);continue;case'6':this[_0x120c50(0x282)]=null;continue;case'7':this[_0x120c50(0x1e7)]=_0x30301b[_0x120c50(0x243)];continue;case'8':this['resourcemanagerClient']=null;continue;}break;}}async[a3_0x3f300f(0x284)](){const _0x37b7bd=a3_0x3f300f;this[_0x37b7bd(0x2c6)](this[_0x37b7bd(0x275)]);}async[a3_0x3f300f(0x1e8)](){const _0x56bfd5=a3_0x3f300f;await super[_0x56bfd5(0x1e8)]();const _0x1410ae=this[_0x56bfd5(0x282)],_0x8d8460={};_0x8d8460[_0x56bfd5(0x27d)]=_0x1410ae,this[_0x56bfd5(0x2bc)]=new container['v1'][(_0x56bfd5(0x166))](_0x8d8460);const _0x11af6b={};_0x11af6b[_0x56bfd5(0x27d)]=_0x1410ae,this[_0x56bfd5(0x1a0)]=new compute['v1'][(_0x56bfd5(0x23c))](_0x11af6b);const _0x54b4dc={};return _0x54b4dc['keyFile']=_0x1410ae,this[_0x56bfd5(0x19f)]=new ProjectsClient(_0x54b4dc),this[_0x56bfd5(0x19e)]=google[_0x56bfd5(0x26a)]('v1'),this;}async[a3_0x3f300f(0x1b7)](_0x807405,_0x2b572c){const _0x36a127=a3_0x3f300f,_0x3ffe9a={'vOPMK':function(_0x45059f,_0x48a12a){return _0x45059f(_0x48a12a);},'QsuFv':_0x36a127(0x1d0),'ukPuO':function(_0x26deca){return _0x26deca();},'ovoCf':_0x36a127(0x18f)},_0x10f0fb=await _0x3ffe9a[_0x36a127(0x269)](_0x807405,_0x3ffe9a[_0x36a127(0x246)]);let _0x16edb3=await fs[_0x36a127(0x273)](_0x10f0fb);_0x16edb3=_0x16edb3[_0x36a127(0x2ab)]();const _0x3c1613=_0x3ffe9a[_0x36a127(0x182)](getDirForConfig),_0x2b6f69=path[_0x36a127(0x226)](_0x3c1613,_0x3ffe9a[_0x36a127(0x1db)]);fs[_0x36a127(0x1e3)](_0x2b6f69,_0x16edb3),this[_0x36a127(0x282)]=_0x2b6f69;const _0x1c4548={};return _0x1c4548['keyFile']=_0x2b6f69,_0x2b572c[_0x36a127(0x1d7)][GCP]=_0x1c4548,_0x16edb3=JSON[_0x36a127(0x253)](_0x16edb3),this[_0x36a127(0x1ad)]=_0x16edb3['project_id'],_0x2b572c;}async[a3_0x3f300f(0x23a)](_0x51e4a8){const _0x182e8e=a3_0x3f300f;this[_0x182e8e(0x282)]=_0x51e4a8[this[_0x182e8e(0x173)]][_0x182e8e(0x27d)];let _0x3587d5=await fs[_0x182e8e(0x273)](this[_0x182e8e(0x282)]);_0x3587d5=JSON[_0x182e8e(0x253)](_0x3587d5),this['projectId']=_0x3587d5['project_id'];}[a3_0x3f300f(0x1c4)](_0x5e24bf){const _0x454df1=a3_0x3f300f;return _0x5e24bf[_0x454df1(0x17a)][_0x454df1(0x1df)][_0x454df1(0x245)][0x0]['ip'];}async[a3_0x3f300f(0x196)](){const _0x38e0ad=a3_0x3f300f,_0x5101b9={};_0x5101b9[_0x38e0ad(0x258)]=_0x38e0ad(0x1ce),_0x5101b9[_0x38e0ad(0x1a6)]=_0x38e0ad(0x1f6),_0x5101b9[_0x38e0ad(0x264)]=function(_0x426b54,_0x1c665a){return _0x426b54===_0x1c665a;},_0x5101b9['uqoKF']='VxJUb',_0x5101b9[_0x38e0ad(0x2c7)]=_0x38e0ad(0x1c8),_0x5101b9[_0x38e0ad(0x25b)]=function(_0x34f482,_0x5012ae){return _0x34f482!==_0x5012ae;},_0x5101b9['qlrWa']=_0x38e0ad(0x25e),_0x5101b9[_0x38e0ad(0x27b)]='BjzGb',_0x5101b9['tZCtl']=function(_0x32741c,_0x239f93){return _0x32741c===_0x239f93;},_0x5101b9[_0x38e0ad(0x172)]='browserstack',_0x5101b9[_0x38e0ad(0x268)]=_0x38e0ad(0x18c);const _0x43586e=_0x5101b9;try{if(_0x43586e[_0x38e0ad(0x264)](_0x43586e[_0x38e0ad(0x198)],_0x43586e[_0x38e0ad(0x2c7)])){_0x3d3e9d['info'](_0x43586e[_0x38e0ad(0x258)]);throw _0x5cd9ce;}else{const _0x405dbd=await this[_0x38e0ad(0x294)]();if(_0x405dbd[0x0]?.[_0x38e0ad(0x281)]?.[_0x38e0ad(0x2ae)]){if(_0x43586e['dpLhf'](_0x43586e[_0x38e0ad(0x2c5)],_0x43586e['VspDS'])){const _0x1bb217=_0x405dbd[0x0]?.['resourceLabels']?.[_0x38e0ad(0x2ae)];return _0x1bb217&&_0x43586e[_0x38e0ad(0x230)](_0x1bb217[_0x38e0ad(0x26c)](),_0x43586e[_0x38e0ad(0x172)]);}else _0x591274[_0x38e0ad(0x20e)](_0x43586e[_0x38e0ad(0x1a6)]),_0x5bf908[_0x38e0ad(0x1e1)](0x1);}}}catch(_0x4f5c06){return _0x43586e[_0x38e0ad(0x230)](_0x43586e[_0x38e0ad(0x268)],_0x43586e[_0x38e0ad(0x268)])?![]:!![];}return![];}async[a3_0x3f300f(0x16c)](){const _0x2df545=a3_0x3f300f,_0x2eceb6={'nCffD':function(_0x546f57,_0x3b79bd){return _0x546f57===_0x3b79bd;},'WIfWz':_0x2df545(0x225),'rpYpq':function(_0x1c93eb,_0x1247f0){return _0x1c93eb-_0x1247f0;},'SWwQO':_0x2df545(0x218),'KtOpf':'gcpresources','fIAdQ':_0x2df545(0x186),'QEBIm':_0x2df545(0x228),'dDxPh':function(_0x319d04,_0x2a61bb){return _0x319d04!==_0x2a61bb;},'SbCmy':_0x2df545(0x1bf),'BzHUF':_0x2df545(0x28f),'mRRZn':'aVaWj','GuwRZ':_0x2df545(0x2b2),'hbSbQ':'FpcWu','ZtRah':'ahJFt','aUzGx':'XqWPy','KzCbS':function(_0x2406a4,_0x56f978){return _0x2406a4!==_0x56f978;},'ShAUr':_0x2df545(0x260),'zvRCt':function(_0x396789,_0x200dde){return _0x396789>_0x200dde;},'VDgft':function(_0x101864,_0xb11800){return _0x101864===_0xb11800;},'dAEns':_0x2df545(0x20f),'Bzccy':'MqWzy','otfNK':function(_0x1dce65,_0x1e6c7c){return _0x1dce65<_0x1e6c7c;},'rmDII':_0x2df545(0x22c),'oruQd':'bkRnI','GjTnz':function(_0x765f33,_0x44a5d5){return _0x765f33+_0x44a5d5;},'mQwiO':function(_0x2e37f9,_0xa17198){return _0x2e37f9(_0xa17198);},'WCJfP':_0x2df545(0x1a5),'pEnuR':function(_0x277794,_0x27009a){return _0x277794(_0x27009a);},'uvCcK':function(_0x3164c9,_0x24ebe5){return _0x3164c9<=_0x24ebe5;},'ILJOx':function(_0x2c567a,_0x340993){return _0x2c567a>_0x340993;},'fXsjA':_0x2df545(0x1b3),'nPwZC':_0x2df545(0x1f6),'GtueH':function(_0x55181d){return _0x55181d();},'IXVMq':function(_0x3b534b,_0x299a0f){return _0x3b534b-_0x299a0f;},'dTVkt':function(_0x11f60d,_0x38ec30){return _0x11f60d===_0x38ec30;},'oXdhB':_0x2df545(0x185),'fEhUv':'Lzhzr'};this[_0x2df545(0x220)]();let _0x579cd3=await fs[_0x2df545(0x273)](path[_0x2df545(0x226)](__dirname,'..',_0x2eceb6[_0x2df545(0x18d)],_0x2eceb6['KtOpf'],_0x2eceb6[_0x2df545(0x168)]),_0x2eceb6[_0x2df545(0x29e)]);_0x579cd3=JSON[_0x2df545(0x253)](_0x579cd3);let _0x454ac7=[global_registry[_0x2df545(0x1d3)]];if(_0x2eceb6[_0x2df545(0x22d)](_0x579cd3[global_registry['clusterRegion']],undefined)){if(_0x2eceb6['dDxPh'](_0x2eceb6['SbCmy'],_0x2eceb6['BzHUF']))_0x454ac7=_0x454ac7[_0x2df545(0x19a)](_0x579cd3[global_registry[_0x2df545(0x1d3)]]);else return![];}const _0x40b85c=[];for await(const _0x56d52e of _0x454ac7){if(_0x2eceb6[_0x2df545(0x23b)](_0x2eceb6['mRRZn'],_0x2eceb6[_0x2df545(0x191)])){const _0x3fffed={};_0x3fffed[_0x2df545(0x21e)]=_0x2df545(0x1c0)+this[_0x2df545(0x1ad)]+_0x2df545(0x1d9)+_0x56d52e;const _0x1469e7=_0x3fffed,_0x3f8108=await this[_0x2df545(0x2bc)][_0x2df545(0x2a4)](_0x1469e7);for(const _0x451acd of _0x3f8108[0x0]['clusters']){if(_0x2eceb6[_0x2df545(0x23b)](_0x2eceb6[_0x2df545(0x1f4)],_0x2eceb6[_0x2df545(0x239)]))for(const _0x27e289 of _0x314cac[_0x2df545(0x1d2)]['accounts']){if(_0x2eceb6['nCffD'](_0x27e289?.['name'],_0x2df545(0x1c0)+this[_0x2df545(0x1ad)]+_0x2df545(0x2b8)+this[_0x2df545(0x272)]+'@'+this[_0x2df545(0x1ad)]+_0x2df545(0x1ff)))return!![];}else _0x2eceb6[_0x2df545(0x23b)](_0x451acd[_0x2df545(0x2ad)],this[_0x2df545(0x29b)])&&(_0x2eceb6[_0x2df545(0x22d)](_0x2eceb6[_0x2df545(0x270)],_0x2eceb6[_0x2df545(0x270)])?_0x287106[_0x2df545(0x1f2)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x2df545(0x29b)]+_0x2df545(0x280)+_0x5e2880[_0x2df545(0x1d3)]+_0x2df545(0x244)):_0x40b85c[_0x2df545(0x283)](_0x56d52e));}}else return[!![],_0xa7645d];}const _0x832e95=_0x40b85c['length'];if(_0x2eceb6[_0x2df545(0x23b)](_0x832e95,0x1)){if(_0x2eceb6[_0x2df545(0x23b)](_0x2eceb6[_0x2df545(0x290)],_0x2eceb6[_0x2df545(0x290)]))return _0x2eceb6[_0x2df545(0x181)](global_registry['clusterRegion'],_0x40b85c[0x0])&&(_0x2eceb6[_0x2df545(0x23b)](_0x2eceb6[_0x2df545(0x1e0)],_0x2eceb6[_0x2df545(0x1e0)])?(global_registry[_0x2df545(0x1d3)]=_0x40b85c[0x0],this[_0x2df545(0x16e)]()):_0x24c0e5[_0x2df545(0x293)](_0x2eceb6[_0x2df545(0x242)])),!![];else{const _0x1c4acf=_0x2df545(0x262)+this[_0x2df545(0x1ad)]+_0x2df545(0x1bb)+_0x1968d1['clusterRegion']+_0x2df545(0x274)+_0xb3421a[0x0];if(_0x2eceb6[_0x2df545(0x23b)](_0x1c4acf,_0x5e38f5))return[!![],_0xc3d90b];}}else{if(_0x2eceb6[_0x2df545(0x15f)](_0x832e95,0x1)){if(_0x2eceb6[_0x2df545(0x287)](_0x2eceb6[_0x2df545(0x2a9)],_0x2eceb6[_0x2df545(0x2c4)]))_0x2eceb6[_0x2df545(0x23b)](_0x2cb52f[_0x2df545(0x2ad)],this[_0x2df545(0x29b)])&&_0x5b3108[_0x2df545(0x283)](_0x28a8da);else{console[_0x2df545(0x271)](_0x2df545(0x2bb)+this[_0x2df545(0x29b)]+_0x2df545(0x1f0));for(let _0x1fe338=0x0;_0x2eceb6[_0x2df545(0x235)](_0x1fe338,_0x832e95);_0x1fe338+=0x1){_0x2eceb6['KzCbS'](_0x2eceb6[_0x2df545(0x1aa)],_0x2eceb6[_0x2df545(0x25d)])?console[_0x2df545(0x271)]('['+_0x2eceb6[_0x2df545(0x24c)](_0x1fe338,0x1)+']\x20'+_0x40b85c[_0x1fe338]):(_0x39af23['clusterRegion']=_0x27f87b[_0x2eceb6[_0x2df545(0x1a4)](_0x157041,0x1)],this[_0x2df545(0x16e)]());}const _0x5ac9a2=await _0x2eceb6[_0x2df545(0x29a)](inputConfirmation,_0x2eceb6[_0x2df545(0x285)]),_0x364a09=_0x2eceb6[_0x2df545(0x23e)](Number,_0x5ac9a2);(_0x2eceb6['pEnuR'](isNaN,_0x364a09)||_0x2eceb6[_0x2df545(0x249)](_0x364a09,0x0)||_0x2eceb6['ILJOx'](_0x364a09,_0x832e95))&&(_0x2eceb6['KzCbS'](_0x2eceb6['fXsjA'],_0x2eceb6[_0x2df545(0x1a9)])?this[_0x2df545(0x2c6)](this[_0x2df545(0x275)]):(console[_0x2df545(0x20e)](_0x2eceb6[_0x2df545(0x1dd)]),process[_0x2df545(0x1e1)](0x1)));_0x2eceb6[_0x2df545(0x28c)](closeInput),logger[_0x2df545(0x293)]('Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20'+_0x40b85c[_0x2eceb6[_0x2df545(0x16d)](_0x364a09,0x1)]);if(_0x2eceb6[_0x2df545(0x22d)](global_registry[_0x2df545(0x1d3)],_0x40b85c[_0x2eceb6['rpYpq'](_0x364a09,0x1)])){if(_0x2eceb6['dTVkt'](_0x2eceb6[_0x2df545(0x276)],_0x2eceb6['fEhUv']))return![];else global_registry[_0x2df545(0x1d3)]=_0x40b85c[_0x2eceb6[_0x2df545(0x16d)](_0x364a09,0x1)],this['updateClusterRegion']();}return!![];}}}return![];}async['getClusterInfo'](){const _0x1c75b8=a3_0x3f300f,_0x22763b=await this[_0x1c75b8(0x2bc)]['getCluster']({'name':_0x1c75b8(0x1c0)+this[_0x1c75b8(0x1ad)]+_0x1c75b8(0x1d9)+global_registry[_0x1c75b8(0x1d3)]+_0x1c75b8(0x17d)+this[_0x1c75b8(0x29b)]});return _0x22763b;}async[a3_0x3f300f(0x2be)](){const _0xa199db=a3_0x3f300f,_0x2bacb3={};_0x2bacb3[_0xa199db(0x193)]=_0xa199db(0x1f8),_0x2bacb3['DEFEx']=_0xa199db(0x218),_0x2bacb3['lAxFT']=_0xa199db(0x167),_0x2bacb3[_0xa199db(0x1c5)]=_0xa199db(0x1cd);const _0x5588c8=_0x2bacb3;cp[_0xa199db(0x1f2)](_0x5588c8[_0xa199db(0x193)]),cp['exec'](_0xa199db(0x2b9)+this[_0xa199db(0x282)]);const _0xb37622=await this[_0xa199db(0x294)](),_0x3e655d=_0xa199db(0x2c3)+this[_0xa199db(0x1ad)]+'_'+global_registry[_0xa199db(0x1d3)]+'_'+this[_0xa199db(0x29b)];let _0x105094=await fs[_0xa199db(0x273)](path[_0xa199db(0x226)](__dirname,'..',_0x5588c8[_0xa199db(0x1e5)],_0x5588c8[_0xa199db(0x234)],_0x5588c8[_0xa199db(0x1c5)]));return _0x105094=_0x105094[_0xa199db(0x2ab)](),_0x105094=_0x105094[_0xa199db(0x215)](/<CLUSTER_NAME>/g,_0x3e655d),_0x105094=_0x105094[_0xa199db(0x215)](/<CLUSTER_URL>/g,'https://'+_0xb37622[0x0][_0xa199db(0x206)]),_0x105094=_0x105094[_0xa199db(0x215)](/<CERTIFICATE_DATA>/g,_0xb37622[0x0]['masterAuth'][_0xa199db(0x24e)]),_0x105094;}async[a3_0x3f300f(0x160)](){const _0x17fc3a=a3_0x3f300f,_0x1d2631={};_0x1d2631[_0x17fc3a(0x19b)]=function(_0x19be84,_0x58628b){return _0x19be84+_0x58628b;},_0x1d2631[_0x17fc3a(0x238)]=function(_0x52d7ee,_0x1689e4){return _0x52d7ee!==_0x1689e4;},_0x1d2631[_0x17fc3a(0x171)]='https://www.googleapis.com/auth/cloud-platform',_0x1d2631[_0x17fc3a(0x2b6)]=function(_0x78a863,_0x5aa073){return _0x78a863===_0x5aa073;},_0x1d2631[_0x17fc3a(0x24b)]=_0x17fc3a(0x203),_0x1d2631[_0x17fc3a(0x163)]='VdZCe',_0x1d2631['yplxM']=_0x17fc3a(0x16f),_0x1d2631[_0x17fc3a(0x1ae)]=function(_0x3b2066,_0x2743d0){return _0x3b2066===_0x2743d0;},_0x1d2631['kpFym']=function(_0x126d62,_0x530328){return _0x126d62!==_0x530328;},_0x1d2631['VvQSb']=_0x17fc3a(0x1a8),_0x1d2631[_0x17fc3a(0x291)]=_0x17fc3a(0x187);const _0x5445b7=_0x1d2631,_0x3453e8={};_0x3453e8['scopes']=[_0x5445b7['MkwcY']],_0x3453e8[_0x17fc3a(0x27d)]=this[_0x17fc3a(0x282)];const _0x5ccf80=await google['auth']['getClient'](_0x3453e8),_0x134b76=await this[_0x17fc3a(0x19e)][_0x17fc3a(0x221)][_0x17fc3a(0x1f9)][_0x17fc3a(0x188)]({'name':'projects/'+this[_0x17fc3a(0x1ad)],'auth':_0x5ccf80});if(_0x134b76?.[_0x17fc3a(0x1d2)]?.[_0x17fc3a(0x21d)]){if(_0x5445b7[_0x17fc3a(0x2b6)](_0x5445b7[_0x17fc3a(0x24b)],_0x5445b7[_0x17fc3a(0x163)]))_0x1bf49a['log']('['+_0x5445b7[_0x17fc3a(0x19b)](_0x5b543d,0x1)+']\x20'+_0x2d9f37[_0x54a1b1]);else for(const _0x115c2e of _0x134b76[_0x17fc3a(0x1d2)][_0x17fc3a(0x21d)]){if(_0x5445b7[_0x17fc3a(0x2b6)](_0x5445b7[_0x17fc3a(0x299)],_0x5445b7[_0x17fc3a(0x299)])){if(_0x5445b7['pJsmq'](_0x115c2e?.[_0x17fc3a(0x2ad)],_0x17fc3a(0x1c0)+this[_0x17fc3a(0x1ad)]+'/serviceAccounts/'+this[_0x17fc3a(0x272)]+'@'+this['projectId']+'.iam.gserviceaccount.com'))return _0x5445b7[_0x17fc3a(0x20a)](_0x5445b7['VvQSb'],_0x5445b7[_0x17fc3a(0x291)])?!![]:(_0x5445b7[_0x17fc3a(0x238)](_0x5f3758[_0x17fc3a(0x1d3)],_0x2978ba[0x0])&&(_0x9775b8[_0x17fc3a(0x1d3)]=_0x5cdffa[0x0],this[_0x17fc3a(0x16e)]()),!![]);}else return _0x491872['status']['loadBalancer'][_0x17fc3a(0x245)][0x0]['ip'];}}return![];}async[a3_0x3f300f(0x213)](){const _0x4eba6b=a3_0x3f300f,_0x57e27b={};_0x57e27b[_0x4eba6b(0x1fd)]=function(_0x2d9242,_0x576e17){return _0x2d9242===_0x576e17;},_0x57e27b[_0x4eba6b(0x232)]=_0x4eba6b(0x23d),_0x57e27b[_0x4eba6b(0x1f7)]=function(_0x7374fa,_0x23f6aa){return _0x7374fa!==_0x23f6aa;},_0x57e27b[_0x4eba6b(0x1da)]=_0x4eba6b(0x1fc),_0x57e27b[_0x4eba6b(0x1a3)]=_0x4eba6b(0x279),_0x57e27b[_0x4eba6b(0x22b)]=_0x4eba6b(0x165),_0x57e27b[_0x4eba6b(0x1e9)]=_0x4eba6b(0x26d),_0x57e27b['zlJxO']=_0x4eba6b(0x219),_0x57e27b['CqMeN']=_0x4eba6b(0x1ec),_0x57e27b[_0x4eba6b(0x217)]=_0x4eba6b(0x1ee),_0x57e27b[_0x4eba6b(0x212)]=_0x4eba6b(0x2b4),_0x57e27b[_0x4eba6b(0x21c)]=_0x4eba6b(0x297),_0x57e27b['VZqPL']=_0x4eba6b(0x21a),_0x57e27b[_0x4eba6b(0x29c)]=_0x4eba6b(0x278),_0x57e27b[_0x4eba6b(0x164)]=_0x4eba6b(0x1b5),_0x57e27b[_0x4eba6b(0x192)]=_0x4eba6b(0x2a5),_0x57e27b[_0x4eba6b(0x202)]='storage.buckets.list',_0x57e27b['tvsnW']=_0x4eba6b(0x162),_0x57e27b[_0x4eba6b(0x288)]=_0x4eba6b(0x210),_0x57e27b[_0x4eba6b(0x28d)]=_0x4eba6b(0x16a),_0x57e27b['xHGzx']=_0x4eba6b(0x26b),_0x57e27b['xUnpP']=_0x4eba6b(0x1bc),_0x57e27b['MIdai']=_0x4eba6b(0x259),_0x57e27b[_0x4eba6b(0x1eb)]=_0x4eba6b(0x190),_0x57e27b[_0x4eba6b(0x18b)]=_0x4eba6b(0x1cb),_0x57e27b[_0x4eba6b(0x1ac)]='storage.objects.create',_0x57e27b[_0x4eba6b(0x1f5)]='storage.objects.delete',_0x57e27b['SmHjW']=_0x4eba6b(0x229),_0x57e27b['TmjeV']='storage.objects.getIamPolicy',_0x57e27b[_0x4eba6b(0x24a)]=_0x4eba6b(0x255),_0x57e27b['GAqHA']=_0x4eba6b(0x227),_0x57e27b[_0x4eba6b(0x236)]=_0x4eba6b(0x2a3),_0x57e27b[_0x4eba6b(0x233)]=_0x4eba6b(0x240),_0x57e27b[_0x4eba6b(0x205)]='Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation';const _0x20203c=_0x57e27b,_0xe4b2e9=await this['checkServiceAccount']();if(_0xe4b2e9){if(_0x20203c[_0x4eba6b(0x1f7)](_0x20203c[_0x4eba6b(0x1da)],_0x20203c[_0x4eba6b(0x1a3)])){logger['info'](_0x20203c['wPflb']);return;}else{const _0x4e6328=_0x400879[0x0]?.['resourceLabels']?.['managedby'];return _0x4e6328&&_0x20203c[_0x4eba6b(0x1fd)](_0x4e6328['toLowerCase'](),_0x20203c[_0x4eba6b(0x232)]);}}logger['info'](_0x20203c[_0x4eba6b(0x1e9)]);const _0x1d01ec={};_0x1d01ec[_0x4eba6b(0x201)]=[_0x20203c[_0x4eba6b(0x1b4)]],_0x1d01ec[_0x4eba6b(0x27d)]=this[_0x4eba6b(0x282)];const _0x4513b3=await google['auth']['getClient'](_0x1d01ec),_0x45b0d6={};_0x45b0d6[_0x4eba6b(0x250)]=[_0x20203c[_0x4eba6b(0x252)],_0x20203c[_0x4eba6b(0x217)],_0x20203c['DWJPm'],_0x20203c['gvxQK'],_0x20203c[_0x4eba6b(0x22f)],_0x20203c[_0x4eba6b(0x29c)],_0x20203c[_0x4eba6b(0x164)],_0x20203c[_0x4eba6b(0x192)],_0x20203c[_0x4eba6b(0x202)],_0x20203c[_0x4eba6b(0x247)],_0x20203c['BHMbH'],_0x20203c[_0x4eba6b(0x28d)],_0x20203c[_0x4eba6b(0x209)],_0x20203c[_0x4eba6b(0x2bf)],_0x20203c['MIdai'],_0x20203c[_0x4eba6b(0x1eb)],_0x20203c[_0x4eba6b(0x18b)],_0x20203c[_0x4eba6b(0x1ac)],_0x20203c[_0x4eba6b(0x1f5)],_0x20203c['SmHjW'],_0x20203c[_0x4eba6b(0x1cc)],_0x20203c[_0x4eba6b(0x24a)],_0x20203c[_0x4eba6b(0x1e6)],_0x20203c[_0x4eba6b(0x236)]],_0x45b0d6[_0x4eba6b(0x25c)]=_0x20203c[_0x4eba6b(0x233)],await this[_0x4eba6b(0x19e)][_0x4eba6b(0x17f)]['roles'][_0x4eba6b(0x200)]({'parent':_0x4eba6b(0x1c0)+this[_0x4eba6b(0x1ad)],'requestBody':{'role':_0x45b0d6,'roleId':this['customRoleName']},'auth':_0x4513b3});const _0x2dda4a={};_0x2dda4a[_0x4eba6b(0x2ad)]=_0x4eba6b(0x1c0)+this[_0x4eba6b(0x1ad)],_0x2dda4a['requestBody']={},_0x2dda4a[_0x4eba6b(0x237)]=_0x4513b3,_0x2dda4a['requestBody']['accountId']=this[_0x4eba6b(0x272)];const _0x1b327a=_0x2dda4a;await this['iamClient'][_0x4eba6b(0x221)][_0x4eba6b(0x1f9)][_0x4eba6b(0x200)](_0x1b327a);let _0x502f93=await this[_0x4eba6b(0x19f)]['getIamPolicy']({'resource':_0x4eba6b(0x1c0)+this[_0x4eba6b(0x1ad)]});_0x502f93=_0x502f93[0x0]['bindings'];const _0x452619={};_0x452619[_0x4eba6b(0x170)]=_0x4eba6b(0x1c0)+this['projectId']+_0x4eba6b(0x1b0)+this[_0x4eba6b(0x1e7)],_0x452619[_0x4eba6b(0x204)]=[_0x4eba6b(0x296)+this[_0x4eba6b(0x272)]+'@'+this[_0x4eba6b(0x1ad)]+_0x4eba6b(0x1ff)],_0x502f93[_0x4eba6b(0x283)](_0x452619);const _0x1cf6c3={};_0x1cf6c3[_0x4eba6b(0x222)]=_0x502f93,await this[_0x4eba6b(0x19f)][_0x4eba6b(0x1ea)]({'resource':'projects/'+this[_0x4eba6b(0x1ad)],'policy':_0x1cf6c3}),logger['info'](_0x20203c[_0x4eba6b(0x205)]);}async['setupNewCluster'](_0x1d7136=a3_0x3f300f(0x21b),_0x6cd5df=[a3_0x3f300f(0x21b)]){const _0x167496=a3_0x3f300f,_0x47f62e={};_0x47f62e[_0x167496(0x28a)]=_0x167496(0x1ca),_0x47f62e[_0x167496(0x2a8)]=_0x167496(0x2b0),_0x47f62e['zfIuU']=_0x167496(0x267);const _0x45f4a6=_0x47f62e,_0x15e57f=_0x45f4a6['oAArm'][_0x167496(0x180)]('|');let _0x41371c=0x0;while(!![]){switch(_0x15e57f[_0x41371c++]){case'0':const _0xee34c7={};_0xee34c7[_0x167496(0x207)]=WS_EVENTS['LOG'],_0xee34c7[_0x167496(0x1c7)]=_0x45f4a6[_0x167496(0x2a8)],this['webSocketUtils'][_0x167496(0x1b6)](this[_0x167496(0x275)],_0xee34c7);continue;case'1':await this[_0x167496(0x292)](_0x1d7136,_0x6cd5df);continue;case'2':await this['updateWindowsNodeGroup']();continue;case'3':await this[_0x167496(0x213)]();continue;case'4':logger[_0x167496(0x293)](_0x45f4a6[_0x167496(0x223)]);continue;case'5':return!![];}break;}}async['createCluster'](_0x26efb3=a3_0x3f300f(0x21b),_0x55fe0b=[a3_0x3f300f(0x21b)]){const _0x298d7b=a3_0x3f300f,_0x271dd5={};_0x271dd5[_0x298d7b(0x2b1)]=function(_0x2b7475,_0x350959){return _0x2b7475===_0x350959;},_0x271dd5['Jlshj']=_0x298d7b(0x17e),_0x271dd5['ocVow']=_0x298d7b(0x1c2),_0x271dd5['OESWY']=_0x298d7b(0x248),_0x271dd5[_0x298d7b(0x1fe)]='templates',_0x271dd5['RAjXN']=_0x298d7b(0x167),_0x271dd5[_0x298d7b(0x25a)]=_0x298d7b(0x20c),_0x271dd5['SNJoJ']=_0x298d7b(0x228),_0x271dd5[_0x298d7b(0x1a7)]=_0x298d7b(0x186),_0x271dd5[_0x298d7b(0x179)]=function(_0x2b4ffd,_0x445c71){return _0x2b4ffd*_0x445c71;},_0x271dd5['siPEI']=function(_0x261b34,_0x5d46f5){return _0x261b34===_0x5d46f5;},_0x271dd5['HpwSo']=_0x298d7b(0x1c9),_0x271dd5[_0x298d7b(0x16b)]=_0x298d7b(0x27f),_0x271dd5[_0x298d7b(0x27a)]=function(_0x3911b3,_0x5a017c){return _0x3911b3!==_0x5a017c;},_0x271dd5['nqfGY']=_0x298d7b(0x1c3),_0x271dd5[_0x298d7b(0x161)]=_0x298d7b(0x211),_0x271dd5['eiaVU']=function(_0xe28883,_0x1dd0e2){return _0xe28883===_0x1dd0e2;},_0x271dd5[_0x298d7b(0x1a2)]=_0x298d7b(0x175),_0x271dd5[_0x298d7b(0x1d5)]=_0x298d7b(0x225);const _0x3848da=_0x271dd5;try{if(_0x3848da[_0x298d7b(0x2b1)](_0x3848da[_0x298d7b(0x15e)],_0x3848da['ocVow']))return!![];else{logger[_0x298d7b(0x293)](_0x3848da[_0x298d7b(0x22e)]);let _0x465875=await fs[_0x298d7b(0x273)](path[_0x298d7b(0x226)](__dirname,'..',_0x3848da[_0x298d7b(0x1fe)],_0x3848da[_0x298d7b(0x257)],_0x3848da[_0x298d7b(0x25a)]),_0x3848da[_0x298d7b(0x1f1)]);_0x465875=JSON[_0x298d7b(0x253)](_0x465875);let _0x261a76=await fs[_0x298d7b(0x273)](path[_0x298d7b(0x226)](__dirname,'..',_0x3848da[_0x298d7b(0x1fe)],_0x3848da[_0x298d7b(0x257)],_0x3848da[_0x298d7b(0x1a7)]),_0x3848da[_0x298d7b(0x1f1)]);_0x261a76=JSON['parse'](_0x261a76),_0x465875[_0x298d7b(0x2ad)]=this['clusterName'],_0x465875[_0x298d7b(0x208)][0x0][_0x298d7b(0x1d6)][_0x298d7b(0x216)]=global_registry[_0x298d7b(0x298)],_0x465875[_0x298d7b(0x208)][0x1]['config'][_0x298d7b(0x216)]=global_registry[_0x298d7b(0x298)],_0x465875[_0x298d7b(0x208)][0x0][_0x298d7b(0x1d6)][_0x298d7b(0x189)]=this['serviceAccountName']+'@'+this[_0x298d7b(0x1ad)]+_0x298d7b(0x1ff),_0x465875['nodePools'][0x1][_0x298d7b(0x1d6)][_0x298d7b(0x189)]=this[_0x298d7b(0x272)]+'@'+this[_0x298d7b(0x1ad)]+_0x298d7b(0x1ff),_0x465875[_0x298d7b(0x208)][0x0][_0x298d7b(0x194)][_0x298d7b(0x1a1)]=global_registry['minNodes'],_0x465875['nodePools'][0x1][_0x298d7b(0x194)][_0x298d7b(0x1a1)]=0x0,_0x465875['nodePools'][0x0]['autoscaling'][_0x298d7b(0x20b)]=global_registry[_0x298d7b(0x27c)],_0x465875['nodePools'][0x1][_0x298d7b(0x194)][_0x298d7b(0x20b)]=global_registry['maxNodes'],_0x465875[_0x298d7b(0x295)]=global_registry[_0x298d7b(0x1d3)],_0x465875[_0x298d7b(0x184)]=[_0x261a76[global_registry['clusterRegion']][0x0]],_0x465875[_0x298d7b(0x29d)]=_0x298d7b(0x1c0)+this[_0x298d7b(0x1ad)]+_0x298d7b(0x231)+_0x26efb3,_0x465875[_0x298d7b(0x266)]=_0x298d7b(0x1c0)+this[_0x298d7b(0x1ad)]+'/regions/'+global_registry[_0x298d7b(0x1d3)]+_0x298d7b(0x274)+_0x55fe0b[0x0];const _0x839d6d=await this[_0x298d7b(0x2bc)]['createCluster']({'cluster':_0x465875,'parent':'projects/'+this['projectId']+_0x298d7b(0x1d9)+global_registry[_0x298d7b(0x1d3)]});await this[_0x298d7b(0x174)][_0x298d7b(0x26e)](_0x3848da[_0x298d7b(0x179)](_0x3848da[_0x298d7b(0x179)](0x7,0x3c),0x3e8));}}catch(_0x1f0143){if(_0x3848da[_0x298d7b(0x20d)](_0x3848da['HpwSo'],_0x3848da[_0x298d7b(0x16b)]))_0x149697=_0x343330[_0x298d7b(0x19a)](_0x18efa7[_0x52756a[_0x298d7b(0x1d3)]]);else{const _0x4d0dbe=await this[_0x298d7b(0x16c)]();_0x4d0dbe?_0x3848da[_0x298d7b(0x27a)](_0x3848da[_0x298d7b(0x256)],_0x3848da[_0x298d7b(0x256)])?_0x2c719c['push'](_0x25c3bb):(logger['info'](_0x3848da[_0x298d7b(0x161)],_0x1f0143['stack']),await this[_0x298d7b(0x1b1)]()):_0x3848da[_0x298d7b(0x277)](_0x3848da[_0x298d7b(0x1a2)],_0x3848da['AtFBp'])?logger[_0x298d7b(0x293)](_0x3848da[_0x298d7b(0x1d5)]):_0x1e8b8d[_0x298d7b(0x183)][_0x298d7b(0x283)](_0x1d799c);throw _0x1f0143;}}}async[a3_0x3f300f(0x2c0)](){const _0x558156=a3_0x3f300f;cp[_0x558156(0x1f2)](_0x558156(0x1d8)+this['clusterName']+_0x558156(0x280)+global_registry[_0x558156(0x1d3)]+'\x20--quiet\x20--user-output-enabled=false');}async[a3_0x3f300f(0x1b1)](_0x35adc2,_0x5440eb){const _0x1c4a4d=a3_0x3f300f,_0x553459={'QdurW':function(_0x1adfa1,_0x11f4a6){return _0x1adfa1===_0x11f4a6;},'ATMBd':_0x1c4a4d(0x2a0),'KFUqc':function(_0x31c8bb,_0x48715a){return _0x31c8bb(_0x48715a);},'PoNIx':function(_0x2a51b4,_0xecc72a){return _0x2a51b4(_0xecc72a);},'PqkSR':_0x1c4a4d(0x1ba),'dQcEw':function(_0x573d36,_0xa18352){return _0x573d36===_0xa18352;},'ATZFa':_0x1c4a4d(0x2a7),'QYWGI':function(_0x20ea15,_0x1aa321){return _0x20ea15!==_0x1aa321;},'yjqRE':_0x1c4a4d(0x289),'ixjfL':'KweSs','lMmck':_0x1c4a4d(0x17b),'gAZax':function(_0x28bb8e,_0xccc000){return _0x28bb8e===_0xccc000;},'EFsee':_0x1c4a4d(0x1cf),'KEdlV':'FRIxd','cDMua':_0x1c4a4d(0x1ce)};try{if(_0x553459[_0x1c4a4d(0x1b8)](_0x553459[_0x1c4a4d(0x1fb)],_0x553459[_0x1c4a4d(0x1fb)])){await _0x553459['KFUqc'](deleteAgent,_0x35adc2),await _0x553459[_0x1c4a4d(0x1af)](deleteRoutingDeps,_0x35adc2),logger[_0x1c4a4d(0x293)](_0x1c4a4d(0x25f)+this['clusterName']);const _0x27a2d7=await this[_0x1c4a4d(0x2bc)]['deleteCluster']({'name':_0x1c4a4d(0x1c0)+this[_0x1c4a4d(0x1ad)]+'/locations/'+global_registry[_0x1c4a4d(0x1d3)]+'/clusters/'+this[_0x1c4a4d(0x29b)]});if(_0x553459[_0x1c4a4d(0x1b8)](_0x27a2d7[0x0]?.[_0x1c4a4d(0x17a)],_0x553459['PqkSR'])||_0x553459['dQcEw'](_0x27a2d7[0x0]?.[_0x1c4a4d(0x17a)],_0x553459[_0x1c4a4d(0x2af)]))return _0x553459['QYWGI'](_0x553459[_0x1c4a4d(0x263)],_0x553459['ixjfL'])?!![]:!![];logger[_0x1c4a4d(0x293)](_0x553459[_0x1c4a4d(0x2b3)]);}else return _0x4c4b95[_0x1c4a4d(0x20e)](_0x1c4a4d(0x214)+_0x5e39d2+_0x1c4a4d(0x2c1)+_0x409ba8),[![],[]];}catch(_0x18e6bf){if(_0x553459[_0x1c4a4d(0x2a6)](_0x553459['EFsee'],_0x553459[_0x1c4a4d(0x1fa)]))_0x347a9e[_0x1c4a4d(0x1d3)]=_0x2fc38e[0x0],this[_0x1c4a4d(0x16e)]();else{logger[_0x1c4a4d(0x293)](_0x553459[_0x1c4a4d(0x17c)]);throw _0x18e6bf;}}}async['isVPCPresent'](_0x541820){const _0xcd2009=a3_0x3f300f,_0x51d689={};_0x51d689[_0xcd2009(0x1ed)]=function(_0x139cb6,_0x400636){return _0x139cb6===_0x400636;},_0x51d689[_0xcd2009(0x1e4)]=_0xcd2009(0x165),_0x51d689[_0xcd2009(0x1bd)]=function(_0x5eeaa5,_0xcb7f51){return _0x5eeaa5!==_0xcb7f51;},_0x51d689[_0xcd2009(0x169)]='KhtiS',_0x51d689[_0xcd2009(0x254)]=function(_0x234ec7,_0x52ff21){return _0x234ec7>_0x52ff21;},_0x51d689[_0xcd2009(0x1c1)]=function(_0x484133,_0x3e8731){return _0x484133===_0x3e8731;},_0x51d689['jGego']=function(_0x4b300b,_0x392509){return _0x4b300b===_0x392509;},_0x51d689[_0xcd2009(0x1b2)]='RgaCf',_0x51d689[_0xcd2009(0x265)]=_0xcd2009(0x1ab);const _0x559748=_0x51d689;try{if(_0x559748[_0xcd2009(0x1bd)](_0x559748[_0xcd2009(0x169)],_0x559748[_0xcd2009(0x169)])){if(_0x559748[_0xcd2009(0x1ed)](_0x1a9de1?.['name'],_0xcd2009(0x1c0)+this[_0xcd2009(0x1ad)]+'/serviceAccounts/'+this[_0xcd2009(0x272)]+'@'+this['projectId']+_0xcd2009(0x1ff)))return!![];}else{const _0x13a656=await this['networkClient']['get']({'project':this['projectId'],'network':_0x541820});if(_0x559748['kYzJP'](_0x13a656[_0xcd2009(0x27e)],0x0)&&_0x559748['llFNu'](_0x13a656[0x0]['name'],_0x541820)){if(_0x559748[_0xcd2009(0x1c6)](_0x559748[_0xcd2009(0x1b2)],_0x559748['GTsnk'])){_0x327c22[_0xcd2009(0x293)](_0x559748[_0xcd2009(0x1e4)]);return;}else return!![];}}}catch(_0x45cd11){return![];}return![];}async['isSubnetsValid'](_0x50cd10,_0x400092){const _0x507990=a3_0x3f300f,_0x20bba8={};_0x20bba8[_0x507990(0x224)]=function(_0x4067a2,_0x5c2ed4){return _0x4067a2===_0x5c2ed4;};const _0x292fba=_0x20bba8;try{const _0xb4abce=await this[_0x507990(0x1a0)][_0x507990(0x2bd)]({'project':this[_0x507990(0x1ad)],'network':_0x400092});for(const _0x444866 of _0xb4abce[0x0][_0x507990(0x1b9)]){const _0x339466=_0x507990(0x262)+this[_0x507990(0x1ad)]+_0x507990(0x1bb)+global_registry[_0x507990(0x1d3)]+_0x507990(0x274)+_0x50cd10[0x0];if(_0x292fba[_0x507990(0x224)](_0x339466,_0x444866))return[!![],_0x50cd10];}}catch(_0x305025){return logger[_0x507990(0x20e)](_0x507990(0x214)+_0x50cd10+'.\x20Error:\x20'+_0x305025),[![],[]];}return[![],[]];}async[a3_0x3f300f(0x2c6)](){const _0x567ecf=a3_0x3f300f,_0x1dcc50=await this['networkClient'][_0x567ecf(0x188)]({'project':this['projectId']}),_0x4f1652={};_0x4f1652[_0x567ecf(0x1dc)]=global_registry[_0x567ecf(0x18e)],_0x4f1652[_0x567ecf(0x286)]=global_registry[_0x567ecf(0x21f)],_0x4f1652['cloudProvider']=GCP,_0x4f1652[_0x567ecf(0x183)]=[];const _0x1b6405=_0x4f1652;for(const _0x1e6c92 of _0x1dcc50){_0x1b6405[_0x567ecf(0x183)][_0x567ecf(0x283)](_0x1e6c92);}const _0x2f8bba={};_0x2f8bba[_0x567ecf(0x207)]=WS_EVENTS[_0x567ecf(0x2a1)],_0x2f8bba['message']=_0x1b6405,this[_0x567ecf(0x174)]['sendEventToBackend'](this[_0x567ecf(0x275)],_0x2f8bba);}async['updateClusterRegion'](){const _0x598644=a3_0x3f300f,_0x4d516a={'JZSiR':function(_0x3a4b00,_0x2899a0,_0x5f2093){return _0x3a4b00(_0x2899a0,_0x5f2093);},'yfqeg':_0x598644(0x195),'eIOFu':_0x598644(0x24f)},_0x3a5df5=_0x598644(0x176)+AG_API_URL+_0x598644(0x22a),_0x124079={};_0x124079[_0x598644(0x2ac)]=global_registry[_0x598644(0x1f3)];const _0x59494f={};_0x59494f[_0x598644(0x23f)]=global_registry['clusterRegion'];const _0x219c7e={'searchParams':_0x124079,'json':_0x59494f,'headers':_0x4d516a[_0x598644(0x2c2)](getAuthHeader,global_registry['bstackUsername'],global_registry[_0x598644(0x21f)]),'method':_0x4d516a[_0x598644(0x26f)],'responseType':_0x4d516a[_0x598644(0x251)],'throwHttpErrors':![]},_0x373bb8=await _0x4d516a[_0x598644(0x2c2)](got,_0x3a5df5,_0x219c7e);}}function a3_0x5210(_0x3a4b5e,_0x41003d){const _0x4ae566=a3_0x4ae5();return a3_0x5210=function(_0x5210f7,_0x102b7f){_0x5210f7=_0x5210f7-0x15e;let _0x3e8f78=_0x4ae566[_0x5210f7];return _0x3e8f78;},a3_0x5210(_0x3a4b5e,_0x41003d);}function a3_0x4ae5(){const _0x5cf423=['MkwcY','nNSSn','cloudProviderName','webSocketUtils','yKuiD','https://','5|1|2|8|3|6|4|7|0','2454942zVmnQx','YjsHu','status','Cluster\x20deletion\x20completed','cDMua','/clusters/','TBynE','organizations','split','KzCbS','ukPuO','vpcInfo','locations','XZqlc','regionmap.json','mFoWL','list','serviceAccount','3016888TVDIxQ','SRVgd','itqeW','SWwQO','bstackUsername','gcp_credentials.json','storage.multipartUploads.list','mRRZn','cFdxU','mljSG','autoscaling','PUT','isBrowserstackCluster','1006520DRSSQE','uqoKF','path','concat','KTmOw','109195aIFDwy','@google-cloud/compute','iamClient','resourcemanagerClient','networkClient','minNodeCount','AtFBp','dAiia','rpYpq','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','MnTgu','ddhoP','zBADb','fXsjA','rmDII','ZafaJ','yDeSX','projectId','pJsmq','PoNIx','/roles/','deleteCluster','bgcCA','xUOwr','zlJxO','storage.buckets.getIamPolicy','sendEventToBackend','getUserInput','QdurW','subnetworks','RUNNING','/regions/','storage.multipartUploads.abort','ygYKI','393960ogcyZl','rurrk','projects/','llFNu','Nppts','SAEnK','getGridHostname','XZiXc','jGego','message','btynS','bwGxU','0|4|3|1|2|5','storage.multipartUploads.listParts','TmjeV','KubeConfigTemplate.yaml','GKE\x20Cluster\x20deletion\x20failed','ogagR','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','@google-cloud/resource-manager','data','clusterRegion','GoogleCloudProvider','XJDjJ','config','cloudProvider','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','/locations/','VjloO','ovoCf','username','nPwZC','../config/logger','loadBalancer','ShAUr','exit','../utils/gridComponents','writeFileSync','xAcBc','DEFEx','GAqHA','customRoleName','init','dfeNL','setIamPolicy','PTOjc','iam.serviceAccounts.signBlob','SwkCT','storage.buckets.create','got','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','SNJoJ','execSync','gridProfileId','GuwRZ','GTZAR','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','kPBsD','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','serviceAccounts','KEdlV','ATMBd','miLmo','xksGw','wCRuX','.iam.gserviceaccount.com','create','scopes','NxVdw','iiupw','members','iUQmf','endpoint','type','nodePools','xHGzx','kpFym','maxNodeCount','gkecluster.json','siPEI','error','rurnZ','storage.buckets.listTagBindings','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','DWJPm','setupServiceAccount','Cannot\x20find\x20subnets\x20','replace','machineType','wIxNW','templates','https://www.googleapis.com/auth/cloud-platform','storage.buckets.deleteTagBinding','default','gvxQK','accounts','parent','bstackAccesskey','configureIfNotConfigured','projects','bindings','zfIuU','LZzwa','Cluster\x20creation\x20failed','join','storage.objects.setIamPolicy','utf-8','storage.objects.get','/packages/cli/update-cluster-region','wPflb','fSDfj','dDxPh','OESWY','VZqPL','tZCtl','/global/networks/','AvgrX','HTcXw','lAxFT','otfNK','jpWsF','auth','pWdpm','hbSbQ','setCachedCredsInRegistry','nCffD','NetworksClient','browserstack','pEnuR','newRegion','Turboscale\x20Custom\x20Role','519804JmqPZD','WIfWz','IlGKF','\x20--quiet\x20--user-output-enabled=false','ingress','QsuFv','tvsnW','Creating\x20GKE\x20Cluster','uvCcK','ApGnl','fYrUX','GjTnz','turboscale-service-account','clusterCaCertificate','json','includedPermissions','eIOFu','CqMeN','parse','kYzJP','storage.objects.list','nqfGY','RAjXN','MVKSl','storage.multipartUploads.create','assba','dpLhf','title','oruQd','PbTsp','Deleting\x20the\x20cluster\x20','VmIkz','../utils/userInput','https://www.googleapis.com/compute/v1/projects/','yjqRE','uUzFf','GTsnk','subnetwork','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','XyGcu','vOPMK','iam','storage.buckets.update','toLowerCase','Creating\x20service\x20account','delay','yfqeg','ZtRah','log','serviceAccountName','readFileAsync','/subnetworks/','rws','oXdhB','eiaVU','storage.buckets.get','MTCqi','kifMn','VspDS','maxNodes','keyFile','length','hBBOt','\x20--windows-os-version=ltsc2022\x20--region\x20','resourceLabels','credentialsPath','push','sendResourceDataToHST','WCJfP','accessKey','VDgft','BHMbH','qyaRG','oAArm','util','GtueH','exxNi','174IeUeDl','NhUno','aUzGx','dayBi','createCluster','info','getClusterInfo','location','serviceAccount:','storage.buckets.delete','instanceType','yplxM','mQwiO','clusterName','uzDeW','network','QEBIm','../utils/utilityMethods','CxZAF','RESOURCES','turboscale_custom_role','storage.objects.update','listClusters','storage.buckets.getObjectInsights','gAZax','DONE','axPYu','dAEns','uJHqv','toString','profileId','name','managedby','ATZFa','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','XbrWX','TPShs','lMmck','storage.buckets.createTagBinding','../config/constants','JQgTQ','TKVUy','/serviceAccounts/','gcloud\x20auth\x20login\x20--cred-file=','1472475kCjNsR','Found\x20cluster\x20with\x20name\x20\x27','containerClient','get','getKubeConfigData','xUnpP','updateWindowsNodeGroup','.\x20Error:\x20','JZSiR','gke_','Bzccy','qlrWa','sendGCPInfoToHST','ZllyE','Jlshj','zvRCt','checkServiceAccount','QVjVa','storage.buckets.listEffectiveTags','ycqvd','PsWrw','Service\x20account\x20already\x20exists,\x20skipping','ClusterManagerClient','gcpresources','fIAdQ','PFKKE','storage.buckets.setIamPolicy','PnDRS','isClusterPresent','IXVMq','updateClusterRegion','sdEGJ','role'];a3_0x4ae5=function(){return _0x5cf423;};return a3_0x4ae5();}const a3_0x589534={};a3_0x589534[a3_0x3f300f(0x1d4)]=GoogleCloudProvider,module['exports']=a3_0x589534;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x2e3338=a4_0x3098;function a4_0x3098(_0x1f03e8,_0x5d83fb){const _0x385c85=a4_0x385c();return a4_0x3098=function(_0x309834,_0x22b668){_0x309834=_0x309834-0xf3;let _0x470d52=_0x385c85[_0x309834];return _0x470d52;},a4_0x3098(_0x1f03e8,_0x5d83fb);}(function(_0x42d710,_0x24fd72){const _0x54f916=a4_0x3098,_0x21ac2e=_0x42d710();while(!![]){try{const _0x1b6435=-parseInt(_0x54f916(0x10c))/0x1+parseInt(_0x54f916(0x10a))/0x2+-parseInt(_0x54f916(0xf4))/0x3+-parseInt(_0x54f916(0xfa))/0x4+parseInt(_0x54f916(0xff))/0x5*(-parseInt(_0x54f916(0x110))/0x6)+-parseInt(_0x54f916(0x112))/0x7*(parseInt(_0x54f916(0xf7))/0x8)+-parseInt(_0x54f916(0x10b))/0x9*(-parseInt(_0x54f916(0xf6))/0xa);if(_0x1b6435===_0x24fd72)break;else _0x21ac2e['push'](_0x21ac2e['shift']());}catch(_0x52393e){_0x21ac2e['push'](_0x21ac2e['shift']());}}}(a4_0x385c,0x372cd));const {AWSCloudProvider}=require(a4_0x2e3338(0x101)),{GoogleCloudProvider}=require(a4_0x2e3338(0x102)),{installAzurePackages}=require(a4_0x2e3338(0x107)),{AWS,AZURE,GCP,messageTypes}=require(a4_0x2e3338(0x10d)),{sendInstrumentationEvent}=require(a4_0x2e3338(0xf5)),{logger}=require(a4_0x2e3338(0x104));function a4_0x385c(){const _0x12397a=['./AWS','./GoogleCloudProvider','bgagf','../config/logger','init','Unknown\x20cloud\x20provider\x20found\x20-\x20','../utils/utilityMethods','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure','error','841156KMhCwZ','3518712QYyohH','299772qKxyuN','../config/constants','getCloudProviderObject','grid-spawning-failed','50706cSZUWr','./Azure','203EHKVQl','LNPpR','51924HvLhRf','../utils/instrumentationUtils','30lyPZIT','99896zLMPAt','eYqAf','xfdkj','1637596sDXyBG','node','create-grid-called','fgMmb','UEEdm','165xANcnw','versions'];a4_0x385c=function(){return _0x12397a;};return a4_0x385c();}exports[a4_0x2e3338(0x10e)]=async(_0x52255d,_0x466d88,_0x424fd3,_0x1bc177,_0x1fe495,_0x2be00d)=>{const _0x1a6887=a4_0x2e3338,_0x441253={'fgMmb':function(_0x38e70f){return _0x38e70f();},'LNPpR':function(_0x310769,_0x5d9585){return _0x310769(_0x5d9585);},'eYqAf':_0x1a6887(0x111),'xfdkj':function(_0x1b4c7a,_0x263a62,_0xb0fa3d,_0x302bd4,_0x4d138d,_0x54baf6,_0x2c6121){return _0x1b4c7a(_0x263a62,_0xb0fa3d,_0x302bd4,_0x4d138d,_0x54baf6,_0x2c6121);},'bgagf':_0x1a6887(0xfc),'UEEdm':_0x1a6887(0x10f)};switch(_0x52255d){case AWS:{const _0x2d1c2f=new AWSCloudProvider(_0x466d88,_0x424fd3,_0x1bc177,_0x1fe495);return await _0x2d1c2f[_0x1a6887(0x105)]();}case GCP:{const _0x3a87b9=new GoogleCloudProvider(_0x466d88,_0x424fd3,_0x1bc177,_0x1fe495);return await _0x3a87b9[_0x1a6887(0x105)]();}case AZURE:{try{await _0x441253[_0x1a6887(0xfd)](installAzurePackages);const {AzureCloudProvider:_0x38fba7}=_0x441253[_0x1a6887(0xf3)](require,_0x441253[_0x1a6887(0xf8)]),_0x42d8f4=new _0x38fba7(_0x466d88,_0x424fd3,_0x1bc177,_0x1fe495);return await _0x42d8f4[_0x1a6887(0x105)]();}catch(_0x4c45fd){const _0x2ca767='Current\x20Node.js\x20version\x20'+process[_0x1a6887(0x100)][_0x1a6887(0xfb)]+_0x1a6887(0x108);logger[_0x1a6887(0x109)](_0x2ca767);const _0x31368e={};_0x31368e['error']=_0x2ca767,await _0x441253[_0x1a6887(0xf9)](sendInstrumentationEvent,_0x2be00d,_0x441253[_0x1a6887(0x103)],messageTypes['ERROR'],_0x441253[_0x1a6887(0xfe)],_0x31368e,_0x2be00d),process['exit'](0x1);}}default:logger[_0x1a6887(0x109)](_0x1a6887(0x106)+_0x52255d),process['exit'](0x1);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5_0x8e39b8=a5_0x12e6;function a5_0x392e(){const _0x433250=['got','NGjHH','FZwvF','NpDAl','username','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','../config/constants','DbaCj','exit','configure-called','yfvIU','json','/packages/cli/configure','ERROR','zJWRS','lxcrn','server-error','existsSync','command','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','GET','AxzTo','eBQEv','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','145790ENcuQT','5071896RRRJeN','name','AaMAs','https://','Browserstack','handler','zTXjk','list','ElIXR','SKCEv','HSyfZ','KppoO','log','init-not-called','bgDan','\x20\x20username:\x20','2ZzvQIW','PUT','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','qFYVu','configure','pFHul','recommendCommands','requestId','../utils/instrumentationUtils','WLuVt','13951OYeUFx','parse','password','stringify','282190oBMkrX','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','INFO','YvpKx','USTkl','tATYe','126mWyZbi','KYbZA','KMIpP','1715855YalXKI','../utils/userInput','uuid','cleNU','profileId','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','core:','usage','desc','help','VcEDR','HPJYp','24623852RNhjPp','cCOnE','EfjYq','Failed\x20to\x20configure\x20resources!\x20Error:\x20','length','gUCCQ','toLowerCase','ihSzH','wWuKb','byluD','\x20\x20grid-profile:\x20','QXKDu','2464227GUVbPd','ktfUj','argv','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','statusCode','9pYOXBe','JLANv','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','body','1216jBidhr','stack','Vgduq','error','VMSXi','swvZG','invalid-selection','Updated\x20default\x20Grid\x20Profile\x20successfully'];a5_0x392e=function(){return _0x433250;};return a5_0x392e();}(function(_0x4ca7e8,_0x21e584){const _0x145ecc=a5_0x12e6,_0x4267df=_0x4ca7e8();while(!![]){try{const _0x472820=-parseInt(_0x145ecc(0x1fa))/0x1*(-parseInt(_0x145ecc(0x1e3))/0x2)+-parseInt(_0x145ecc(0x212))/0x3+-parseInt(_0x145ecc(0x1d3))/0x4+-parseInt(_0x145ecc(0x1f1))/0x5*(parseInt(_0x145ecc(0x1f7))/0x6)+-parseInt(_0x145ecc(0x1ed))/0x7*(-parseInt(_0x145ecc(0x21b))/0x8)+parseInt(_0x145ecc(0x217))/0x9*(parseInt(_0x145ecc(0x1d2))/0xa)+parseInt(_0x145ecc(0x206))/0xb;if(_0x472820===_0x21e584)break;else _0x4267df['push'](_0x4267df['shift']());}catch(_0x287c0b){_0x4267df['push'](_0x4267df['shift']());}}}(a5_0x392e,0xf37c9));const fs=require('fs'),got=require(a5_0x8e39b8(0x1ba)),{v4:uuidv4}=require(a5_0x8e39b8(0x1fc)),{inputConfirmation,closeInput}=require(a5_0x8e39b8(0x1fb)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x8e39b8(0x1c0)),{getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a5_0x8e39b8(0x1eb));function a5_0x12e6(_0x1bbac2,_0x33f1e5){const _0x392e05=a5_0x392e();return a5_0x12e6=function(_0x12e604,_0x631339){_0x12e604=_0x12e604-0x1b8;let _0x3e8be2=_0x392e05[_0x12e604];return _0x3e8be2;},a5_0x12e6(_0x1bbac2,_0x33f1e5);}exports[a5_0x8e39b8(0x1cc)]=a5_0x8e39b8(0x1e7),exports[a5_0x8e39b8(0x202)]='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports['builder']=function(_0x453f2a){const _0x1d83fb=a5_0x8e39b8,_0x262247={};_0x262247[_0x1d83fb(0x208)]='help';const _0xc33364=_0x262247;return _0x453f2a[_0x1d83fb(0x201)](HELP_HEADER_MESSAGE[_0x1d83fb(0x1e7)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1d83fb(0x203)](_0xc33364['EfjYq'])[_0x1d83fb(0x1e9)]()['strict']()[_0x1d83fb(0x214)];},exports[a5_0x8e39b8(0x1d8)]=async function(_0x41f5ed){const _0x5eccc2=a5_0x8e39b8,_0x536904={'Vgduq':function(_0x432ef1){return _0x432ef1();},'VMSXi':_0x5eccc2(0x1cd),'SKCEv':function(_0x1745a8,_0x43556b,_0x3461e5,_0x5040c0,_0x4e1645,_0x3d4043,_0x13be28){return _0x1745a8(_0x43556b,_0x3461e5,_0x5040c0,_0x4e1645,_0x3d4043,_0x13be28);},'USTkl':_0x5eccc2(0x1c3),'AaMAs':_0x5eccc2(0x1e0),'HSyfZ':function(_0x4fd140){return _0x4fd140();},'KppoO':_0x5eccc2(0x1ce),'YvpKx':function(_0xe3ac7c,_0x1bdd18,_0x4d2a11){return _0xe3ac7c(_0x1bdd18,_0x4d2a11);},'ihSzH':function(_0x1a54ff,_0x4acec3){return _0x1a54ff!==_0x4acec3;},'qFYVu':function(_0xbeaf16,_0x37cf21){return _0xbeaf16===_0x37cf21;},'tlwGJ':_0x5eccc2(0x1d1),'zTXjk':_0x5eccc2(0x200),'yfvIU':function(_0x47eb71,_0x198884){return _0x47eb71(_0x198884);},'tATYe':_0x5eccc2(0x1bf),'zJWRS':function(_0x3a480e,_0x54f65b){return _0x3a480e===_0x54f65b;},'FZwvF':function(_0x37a04b,_0x298be3){return _0x37a04b===_0x298be3;},'pFHul':function(_0x2be33f,_0x3f91da){return _0x2be33f===_0x3f91da;},'eBQEv':function(_0x53fd60,_0x5c4544){return _0x53fd60===_0x5c4544;},'VcEDR':_0x5eccc2(0x1f2),'WLuVt':'invalid-input','aeHta':_0x5eccc2(0x215),'ktfUj':function(_0x4148b9,_0x335ba2){return _0x4148b9<_0x335ba2;},'QXKDu':function(_0x554ec7,_0x333d47){return _0x554ec7+_0x333d47;},'NGjHH':function(_0x12bad0,_0x56e631){return _0x12bad0(_0x56e631);},'hERbR':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','lxcrn':function(_0x47a378,_0x5edff7){return _0x47a378(_0x5edff7);},'WYpQJ':function(_0x73e7ca,_0xbc77c0){return _0x73e7ca(_0xbc77c0);},'NpDAl':function(_0x526307,_0x390d0f){return _0x526307<=_0x390d0f;},'DbaCj':function(_0x2efe9f,_0x27de6e){return _0x2efe9f>_0x27de6e;},'byluD':_0x5eccc2(0x1b8),'cCOnE':function(_0x1d82f5){return _0x1d82f5();},'SIbKz':function(_0x27c5a8,_0x438b07){return _0x27c5a8-_0x438b07;},'KYbZA':_0x5eccc2(0x1e4),'JLANv':function(_0x523c39,_0x4e4f74,_0x1984c7){return _0x523c39(_0x4e4f74,_0x1984c7);},'FEdra':_0x5eccc2(0x1c5),'MlIqL':function(_0x1d886e,_0x55bf90,_0x5b3937){return _0x1d886e(_0x55bf90,_0x5b3937);},'HPJYp':function(_0x4a3d8f,_0x197e47){return _0x4a3d8f!==_0x197e47;},'lgkrb':function(_0x631acb,_0x78f349){return _0x631acb!==_0x78f349;},'bgDan':_0x5eccc2(0x1b9),'gUCCQ':_0x5eccc2(0x1e5),'KMIpP':'unauthorised','ElIXR':function(_0x125ede,_0x5c89fe,_0x5d74df,_0x54ca55,_0x4e3608,_0x46dd94,_0x5c3589){return _0x125ede(_0x5c89fe,_0x5d74df,_0x54ca55,_0x4e3608,_0x46dd94,_0x5c3589);},'AxzTo':_0x5eccc2(0x1ca),'swvZG':function(_0x33fe93,_0x5ad6ea){return _0x33fe93===_0x5ad6ea;},'wWuKb':_0x5eccc2(0x1ff),'cleNU':function(_0x219b64,_0x3405aa,_0x31b2cd,_0x3bd1e2,_0x2e663a,_0x4d3cd0,_0x2c703b){return _0x219b64(_0x3405aa,_0x31b2cd,_0x3bd1e2,_0x2e663a,_0x4d3cd0,_0x2c703b);},'RaOMk':'unknown-error'};try{global_registry[_0x5eccc2(0x1ea)]=_0x536904[_0x5eccc2(0x21d)](uuidv4);const _0x17cc07=_0x5eccc2(0x1d6)+AG_API_URL+_0x5eccc2(0x1c6);!fs[_0x5eccc2(0x1cb)](_0x536904[_0x5eccc2(0x21d)](getCredentialsPath))&&(console['error'](_0x536904[_0x5eccc2(0x21f)]),await _0x536904['SKCEv'](sendInstrumentationEvent,_0x41f5ed,_0x536904[_0x5eccc2(0x1f5)],messageTypes[_0x5eccc2(0x1c7)],_0x536904[_0x5eccc2(0x1d5)],null,_0x41f5ed),process[_0x5eccc2(0x1c2)](0x1));await _0x536904[_0x5eccc2(0x1dc)](sendInstrumentationEvent,_0x41f5ed,_0x536904[_0x5eccc2(0x1f5)],messageTypes[_0x5eccc2(0x1f3)],null,null,_0x41f5ed);const _0x1a4cf3=JSON[_0x5eccc2(0x1ee)](fs['readFileSync'](_0x536904[_0x5eccc2(0x1dd)](getCredentialsPath))),_0x6dd0cb={'method':_0x536904[_0x5eccc2(0x1de)],'headers':_0x536904[_0x5eccc2(0x1f4)](getAuthHeader,_0x1a4cf3['Browserstack']['username'],_0x1a4cf3[_0x5eccc2(0x1d7)][_0x5eccc2(0x1ef)]),'throwHttpErrors':![]},_0x2d0e23=await _0x536904[_0x5eccc2(0x1f4)](got,_0x17cc07,_0x6dd0cb);if(_0x536904[_0x5eccc2(0x20d)](_0x2d0e23,null)&&_0x536904[_0x5eccc2(0x20d)](_0x2d0e23,undefined)&&_0x536904[_0x5eccc2(0x1e6)](_0x2d0e23['statusCode'],0xc8)){const _0x4b4baa=JSON['parse'](_0x2d0e23[_0x5eccc2(0x21a)]);console['log'](_0x536904['tlwGJ']),console[_0x5eccc2(0x1df)](_0x536904[_0x5eccc2(0x1d9)]),console[_0x5eccc2(0x1df)](_0x5eccc2(0x1e2)+_0x1a4cf3[_0x5eccc2(0x1d7)]['username']),console['log'](_0x5eccc2(0x210)+_0x4b4baa['active'][_0x5eccc2(0x1d4)]);const _0x894a5d=await _0x536904[_0x5eccc2(0x1c4)](inputConfirmation,_0x536904[_0x5eccc2(0x1f6)]);(_0x536904[_0x5eccc2(0x1c8)](_0x894a5d,undefined)||_0x536904[_0x5eccc2(0x1bc)](_0x894a5d,null)||!(_0x536904[_0x5eccc2(0x1e8)](_0x894a5d[_0x5eccc2(0x20c)](),'y')||_0x536904['eBQEv'](_0x894a5d[_0x5eccc2(0x20c)](),'n')))&&(console[_0x5eccc2(0x21e)](_0x536904['VcEDR']),await _0x536904['SKCEv'](sendInstrumentationEvent,_0x41f5ed,_0x536904[_0x5eccc2(0x1f5)],messageTypes['ERROR'],_0x536904[_0x5eccc2(0x1ec)],null,_0x41f5ed),process['exit'](0x1));_0x536904[_0x5eccc2(0x1c8)](_0x894a5d['toLowerCase'](),'n')&&process[_0x5eccc2(0x1c2)](0x0);console[_0x5eccc2(0x1df)](_0x536904['aeHta']);const _0x51e00f=_0x4b4baa[_0x5eccc2(0x1da)][_0x5eccc2(0x20a)];for(let _0xa5484=0x0;_0x536904[_0x5eccc2(0x213)](_0xa5484,_0x51e00f);_0xa5484+=0x1){console[_0x5eccc2(0x1df)]('['+_0x536904[_0x5eccc2(0x211)](_0xa5484,0x1)+']\x20'+_0x4b4baa[_0x5eccc2(0x1da)][_0xa5484][_0x5eccc2(0x1d4)]);}const _0x162b04=await _0x536904[_0x5eccc2(0x1bb)](inputConfirmation,_0x536904['hERbR']),_0x1aca8b=_0x536904[_0x5eccc2(0x1c9)](Number,_0x162b04);(_0x536904['WYpQJ'](isNaN,_0x1aca8b)||_0x536904[_0x5eccc2(0x1bd)](_0x1aca8b,0x0)||_0x536904[_0x5eccc2(0x1c1)](_0x1aca8b,_0x51e00f))&&(console['error'](_0x536904[_0x5eccc2(0x204)]),await _0x536904[_0x5eccc2(0x1dc)](sendInstrumentationEvent,_0x41f5ed,_0x536904[_0x5eccc2(0x1f5)],messageTypes['ERROR'],_0x536904[_0x5eccc2(0x20f)],null,_0x41f5ed),process[_0x5eccc2(0x1c2)](0x1));_0x536904[_0x5eccc2(0x207)](closeInput);const _0x5103e4=_0x4b4baa['list'][_0x536904['SIbKz'](_0x1aca8b,0x1)]['id'],_0xe3b373={};_0xe3b373[_0x5eccc2(0x1fe)]=_0x5103e4;const _0x4645fc={'method':_0x536904[_0x5eccc2(0x1f8)],'headers':_0x536904[_0x5eccc2(0x218)](getAuthHeader,_0x1a4cf3[_0x5eccc2(0x1d7)][_0x5eccc2(0x1be)],_0x1a4cf3[_0x5eccc2(0x1d7)][_0x5eccc2(0x1ef)]),'json':_0xe3b373,'responseType':_0x536904['FEdra'],'throwHttpErrors':![]},_0xf33b10=await _0x536904['MlIqL'](got,_0x17cc07,_0x4645fc);_0x536904[_0x5eccc2(0x205)](_0xf33b10,null)&&_0x536904['lgkrb'](_0xf33b10,undefined)&&_0x536904[_0x5eccc2(0x1d0)](_0xf33b10[_0x5eccc2(0x216)],0xc8)&&(console[_0x5eccc2(0x1df)](_0x536904[_0x5eccc2(0x1e1)]),process['exit'](0x0)),_0x536904[_0x5eccc2(0x1e8)](_0xf33b10[_0x5eccc2(0x216)],0x191)&&(console[_0x5eccc2(0x21e)](_0x536904[_0x5eccc2(0x20b)]),await _0x536904[_0x5eccc2(0x1dc)](sendInstrumentationEvent,_0x41f5ed,_0x536904[_0x5eccc2(0x1f5)],messageTypes['ERROR'],_0x536904['KMIpP'],null,_0x41f5ed),process[_0x5eccc2(0x1c2)](0x1)),console[_0x5eccc2(0x21e)]('Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20'+JSON[_0x5eccc2(0x1f0)](_0xf33b10)),await _0x536904[_0x5eccc2(0x1db)](sendInstrumentationEvent,_0x41f5ed,_0x536904['USTkl'],messageTypes[_0x5eccc2(0x1c7)],_0x536904['AxzTo'],_0xf33b10,_0x41f5ed),process['exit'](0x1);}_0x536904[_0x5eccc2(0x220)](_0x2d0e23[_0x5eccc2(0x216)],0x191)&&(console['error'](_0x536904[_0x5eccc2(0x20e)]),await _0x536904[_0x5eccc2(0x1fd)](sendInstrumentationEvent,_0x41f5ed,_0x536904['USTkl'],messageTypes[_0x5eccc2(0x1c7)],_0x536904[_0x5eccc2(0x1f9)],null,_0x41f5ed),process[_0x5eccc2(0x1c2)](0x1)),console['error'](_0x5eccc2(0x219)+JSON[_0x5eccc2(0x1f0)](_0x2d0e23)),await _0x536904[_0x5eccc2(0x1fd)](sendInstrumentationEvent,_0x41f5ed,_0x536904[_0x5eccc2(0x1f5)],messageTypes['ERROR'],_0x536904[_0x5eccc2(0x1cf)],_0x2d0e23,_0x41f5ed),process[_0x5eccc2(0x1c2)](0x1);}catch(_0x54df17){console['error'](_0x5eccc2(0x209)+_0x54df17[_0x5eccc2(0x21c)]),await _0x536904[_0x5eccc2(0x1dc)](sendInstrumentationEvent,_0x41f5ed,_0x536904[_0x5eccc2(0x1f5)],messageTypes[_0x5eccc2(0x1c7)],_0x536904['RaOMk'],_0x54df17,_0x41f5ed),process[_0x5eccc2(0x1c2)](0x1);}};
|
|
1
|
+
const a5_0x358dd1=a5_0x2dc9;(function(_0x5159bd,_0x526466){const _0x1b2210=a5_0x2dc9,_0x18098c=_0x5159bd();while(!![]){try{const _0x5dd969=parseInt(_0x1b2210(0x1b6))/0x1+parseInt(_0x1b2210(0x1c8))/0x2+-parseInt(_0x1b2210(0x1ce))/0x3+parseInt(_0x1b2210(0x1c3))/0x4*(-parseInt(_0x1b2210(0x1bb))/0x5)+-parseInt(_0x1b2210(0x1a9))/0x6+-parseInt(_0x1b2210(0x189))/0x7+-parseInt(_0x1b2210(0x19f))/0x8*(-parseInt(_0x1b2210(0x1c2))/0x9);if(_0x5dd969===_0x526466)break;else _0x18098c['push'](_0x18098c['shift']());}catch(_0x335e3b){_0x18098c['push'](_0x18098c['shift']());}}}(a5_0x2b46,0x302c9));const fs=require('fs'),got=require(a5_0x358dd1(0x1a5)),{v4:uuidv4}=require(a5_0x358dd1(0x193)),{inputConfirmation,closeInput}=require(a5_0x358dd1(0x197)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x358dd1(0x1da)),{getCredentialsPath,getAuthHeader}=require(a5_0x358dd1(0x1b7)),{sendInstrumentationEvent}=require(a5_0x358dd1(0x1dd));function a5_0x2dc9(_0xa89fa,_0x205ef4){const _0x2b46c5=a5_0x2b46();return a5_0x2dc9=function(_0x2dc969,_0x408544){_0x2dc969=_0x2dc969-0x179;let _0x564869=_0x2b46c5[_0x2dc969];return _0x564869;},a5_0x2dc9(_0xa89fa,_0x205ef4);}exports['command']=a5_0x358dd1(0x1be),exports[a5_0x358dd1(0x1ca)]=a5_0x358dd1(0x19d),exports[a5_0x358dd1(0x1ae)]=function(_0x136d24){const _0x5bc06f=a5_0x358dd1,_0xdb63d7={};_0xdb63d7[_0x5bc06f(0x19c)]=_0x5bc06f(0x181);const _0x153238=_0xdb63d7;return _0x136d24[_0x5bc06f(0x1d9)](HELP_HEADER_MESSAGE['configure'])['epilogue'](HELP_FOOTER_MESSAGE)['help'](_0x153238[_0x5bc06f(0x19c)])[_0x5bc06f(0x1de)]()[_0x5bc06f(0x1a1)]()[_0x5bc06f(0x1d2)];},exports['handler']=async function(_0x548eae){const _0x5ce34e=a5_0x358dd1,_0x34c0a3={'Lpjfm':function(_0x45fca0){return _0x45fca0();},'TjPlV':function(_0x3ad494){return _0x3ad494();},'WNTRO':_0x5ce34e(0x1c6),'KZkel':function(_0x3ba7d6,_0x5c4425,_0x5b3778,_0x197e55,_0x295e70,_0x540506,_0x1931d1){return _0x3ba7d6(_0x5c4425,_0x5b3778,_0x197e55,_0x295e70,_0x540506,_0x1931d1);},'nndgH':'configure-called','pOaFi':_0x5ce34e(0x188),'TIKKt':function(_0x13d0b4,_0x5d1b67,_0x37ed71,_0x106bf2,_0x894adb,_0x59af37,_0x1ce74f){return _0x13d0b4(_0x5d1b67,_0x37ed71,_0x106bf2,_0x894adb,_0x59af37,_0x1ce74f);},'OVETr':function(_0x4cea08){return _0x4cea08();},'vJzaK':_0x5ce34e(0x1d6),'jSWEm':function(_0x132222,_0x3ee66e,_0x565045){return _0x132222(_0x3ee66e,_0x565045);},'DkhnB':function(_0x2b9249,_0x51af31,_0x48cebe){return _0x2b9249(_0x51af31,_0x48cebe);},'caTZG':function(_0x508992,_0xf5c24){return _0x508992!==_0xf5c24;},'tHUbl':function(_0x2b7cee,_0x348ff1){return _0x2b7cee===_0x348ff1;},'pnaHS':_0x5ce34e(0x1a0),'QOOgp':_0x5ce34e(0x1bc),'foLjc':function(_0x45e370,_0x2f24f8){return _0x45e370(_0x2f24f8);},'cfhVT':_0x5ce34e(0x17b),'uBwxS':function(_0x4efeb1,_0x4c97cd){return _0x4efeb1===_0x4c97cd;},'ILAPr':function(_0x6891d3,_0x153c44){return _0x6891d3===_0x153c44;},'cpUnc':function(_0x3c2d72,_0x596420){return _0x3c2d72===_0x596420;},'oFdYx':_0x5ce34e(0x17f),'TofeI':_0x5ce34e(0x1d0),'XWasG':_0x5ce34e(0x1bd),'MjOMH':function(_0xecdcff,_0x27a94e){return _0xecdcff<_0x27a94e;},'JuFnR':function(_0x4f55e2,_0x457d19){return _0x4f55e2+_0x457d19;},'hcyjq':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','nzcnK':function(_0x5c4bf5,_0x2f56da){return _0x5c4bf5(_0x2f56da);},'DDvkH':function(_0xe3c7f4,_0x5e5142){return _0xe3c7f4(_0x5e5142);},'SOTdi':function(_0x157aa8,_0x4d01aa){return _0x157aa8<=_0x4d01aa;},'iTlPY':function(_0x2fcd2e,_0x499fd9){return _0x2fcd2e>_0x499fd9;},'PFJug':_0x5ce34e(0x1ba),'udCKZ':function(_0x219998){return _0x219998();},'INHjK':function(_0x5e291d,_0x4baf68){return _0x5e291d-_0x4baf68;},'ogDCH':_0x5ce34e(0x1a8),'HpVTw':_0x5ce34e(0x1db),'BboRN':function(_0x1d1856,_0x4c0e7c,_0x1bf4e5){return _0x1d1856(_0x4c0e7c,_0x1bf4e5);},'eWNjO':function(_0x12b119,_0xe5069f){return _0x12b119!==_0xe5069f;},'nPeOE':function(_0x20e398,_0x1c2a39){return _0x20e398!==_0x1c2a39;},'DwJGi':_0x5ce34e(0x191),'HcwMd':function(_0x465ab2,_0x341204){return _0x465ab2===_0x341204;},'QilfQ':'Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','vtnzy':_0x5ce34e(0x183),'yfxUn':function(_0x1779df,_0x3d3a73,_0x1a4c2c,_0x5354e8,_0x3f60a3,_0x59729d,_0x171764){return _0x1779df(_0x3d3a73,_0x1a4c2c,_0x5354e8,_0x3f60a3,_0x59729d,_0x171764);},'HQkhq':_0x5ce34e(0x17c),'tTGeA':_0x5ce34e(0x1dc),'iGwHv':function(_0x5101fd,_0x4d8968,_0x1536e7,_0x3a1c23,_0x545ce7,_0x54b4d3,_0x5c2f38){return _0x5101fd(_0x4d8968,_0x1536e7,_0x3a1c23,_0x545ce7,_0x54b4d3,_0x5c2f38);},'WGQRO':function(_0x17c059,_0x87b307,_0x3faff7,_0x4f17ea,_0x14b4bd,_0x5a3fd3,_0x51ca1a){return _0x17c059(_0x87b307,_0x3faff7,_0x4f17ea,_0x14b4bd,_0x5a3fd3,_0x51ca1a);},'VXjWJ':function(_0x57a194,_0xa7784f,_0x1a50cd,_0x2e9d5b,_0x783c3b,_0x3b67c4,_0x1a7813){return _0x57a194(_0xa7784f,_0x1a50cd,_0x2e9d5b,_0x783c3b,_0x3b67c4,_0x1a7813);},'axqjz':_0x5ce34e(0x19a)};try{global_registry['requestId']=_0x34c0a3[_0x5ce34e(0x1a3)](uuidv4);const _0x22a6bb=_0x5ce34e(0x1b3)+AG_API_URL+'/packages/cli/configure';!fs[_0x5ce34e(0x1a4)](_0x34c0a3[_0x5ce34e(0x1af)](getCredentialsPath))&&(console['error'](_0x34c0a3[_0x5ce34e(0x1d8)]),await _0x34c0a3[_0x5ce34e(0x1b4)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3[_0x5ce34e(0x184)],null,_0x548eae),process[_0x5ce34e(0x1d5)](0x1));await _0x34c0a3[_0x5ce34e(0x18e)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x1cb)],null,null,_0x548eae);const _0x58b300=JSON['parse'](fs[_0x5ce34e(0x1a7)](_0x34c0a3[_0x5ce34e(0x1df)](getCredentialsPath))),_0x25892f={'method':_0x34c0a3['vJzaK'],'headers':_0x34c0a3[_0x5ce34e(0x1b0)](getAuthHeader,_0x58b300[_0x5ce34e(0x1cf)][_0x5ce34e(0x1cd)],_0x58b300['Browserstack'][_0x5ce34e(0x1a2)]),'throwHttpErrors':![]},_0x21ec90=await _0x34c0a3['DkhnB'](got,_0x22a6bb,_0x25892f);if(_0x34c0a3['caTZG'](_0x21ec90,null)&&_0x34c0a3[_0x5ce34e(0x1e1)](_0x21ec90,undefined)&&_0x34c0a3[_0x5ce34e(0x1ad)](_0x21ec90[_0x5ce34e(0x17d)],0xc8)){const _0xebed5=JSON['parse'](_0x21ec90[_0x5ce34e(0x1ac)]);console[_0x5ce34e(0x194)](_0x34c0a3[_0x5ce34e(0x1ab)]),console['log'](_0x34c0a3[_0x5ce34e(0x18b)]),console[_0x5ce34e(0x194)](_0x5ce34e(0x1aa)+_0x58b300[_0x5ce34e(0x1cf)][_0x5ce34e(0x1cd)]),console['log'](_0x5ce34e(0x1c0)+_0xebed5[_0x5ce34e(0x187)][_0x5ce34e(0x195)]);const _0x1b57d4=await _0x34c0a3[_0x5ce34e(0x1cc)](inputConfirmation,_0x34c0a3['cfhVT']);(_0x34c0a3[_0x5ce34e(0x17e)](_0x1b57d4,undefined)||_0x34c0a3[_0x5ce34e(0x18a)](_0x1b57d4,null)||!(_0x34c0a3['cpUnc'](_0x1b57d4[_0x5ce34e(0x1b2)](),'y')||_0x34c0a3[_0x5ce34e(0x17e)](_0x1b57d4['toLowerCase'](),'n')))&&(console['error'](_0x34c0a3[_0x5ce34e(0x1b5)]),await _0x34c0a3['TIKKt'](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3['TofeI'],null,_0x548eae),process['exit'](0x1));_0x34c0a3[_0x5ce34e(0x18a)](_0x1b57d4['toLowerCase'](),'n')&&process[_0x5ce34e(0x1d5)](0x0);console[_0x5ce34e(0x194)](_0x34c0a3[_0x5ce34e(0x18f)]);const _0x76004d=_0xebed5[_0x5ce34e(0x1e0)][_0x5ce34e(0x1d7)];for(let _0x4fdd17=0x0;_0x34c0a3['MjOMH'](_0x4fdd17,_0x76004d);_0x4fdd17+=0x1){console[_0x5ce34e(0x194)]('['+_0x34c0a3[_0x5ce34e(0x180)](_0x4fdd17,0x1)+']\x20'+_0xebed5['list'][_0x4fdd17]['name']);}const _0xdbfd5b=await _0x34c0a3['foLjc'](inputConfirmation,_0x34c0a3[_0x5ce34e(0x1c4)]),_0x2362c6=_0x34c0a3['nzcnK'](Number,_0xdbfd5b);(_0x34c0a3[_0x5ce34e(0x179)](isNaN,_0x2362c6)||_0x34c0a3[_0x5ce34e(0x1d1)](_0x2362c6,0x0)||_0x34c0a3['iTlPY'](_0x2362c6,_0x76004d))&&(console[_0x5ce34e(0x1d4)](_0x34c0a3[_0x5ce34e(0x1b5)]),await _0x34c0a3[_0x5ce34e(0x1b4)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes['ERROR'],_0x34c0a3[_0x5ce34e(0x19b)],null,_0x548eae),process[_0x5ce34e(0x1d5)](0x1));_0x34c0a3['udCKZ'](closeInput);const _0x294d32=_0xebed5['list'][_0x34c0a3[_0x5ce34e(0x198)](_0x2362c6,0x1)]['id'],_0xf338cd={};_0xf338cd[_0x5ce34e(0x1b9)]=_0x294d32;const _0xd14662={'method':_0x34c0a3[_0x5ce34e(0x19e)],'headers':_0x34c0a3[_0x5ce34e(0x199)](getAuthHeader,_0x58b300[_0x5ce34e(0x1cf)][_0x5ce34e(0x1cd)],_0x58b300[_0x5ce34e(0x1cf)][_0x5ce34e(0x1a2)]),'json':_0xf338cd,'responseType':_0x34c0a3[_0x5ce34e(0x192)],'throwHttpErrors':![]},_0x2be90c=await _0x34c0a3['BboRN'](got,_0x22a6bb,_0xd14662);_0x34c0a3[_0x5ce34e(0x1bf)](_0x2be90c,null)&&_0x34c0a3[_0x5ce34e(0x182)](_0x2be90c,undefined)&&_0x34c0a3[_0x5ce34e(0x18a)](_0x2be90c['statusCode'],0xc8)&&(console['log'](_0x34c0a3['DwJGi']),process[_0x5ce34e(0x1d5)](0x0)),_0x34c0a3[_0x5ce34e(0x190)](_0x2be90c[_0x5ce34e(0x17d)],0x191)&&(console[_0x5ce34e(0x1d4)](_0x34c0a3[_0x5ce34e(0x1d3)]),await _0x34c0a3[_0x5ce34e(0x1b4)](sendInstrumentationEvent,_0x548eae,_0x34c0a3['nndgH'],messageTypes[_0x5ce34e(0x185)],_0x34c0a3[_0x5ce34e(0x1c7)],null,_0x548eae),process[_0x5ce34e(0x1d5)](0x1)),console[_0x5ce34e(0x1d4)]('Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20'+JSON[_0x5ce34e(0x196)](_0x2be90c)),await _0x34c0a3[_0x5ce34e(0x18d)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3[_0x5ce34e(0x1c9)],_0x2be90c,_0x548eae),process['exit'](0x1);}_0x34c0a3[_0x5ce34e(0x190)](_0x21ec90['statusCode'],0x191)&&(console[_0x5ce34e(0x1d4)](_0x34c0a3[_0x5ce34e(0x1b8)]),await _0x34c0a3[_0x5ce34e(0x1a6)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3[_0x5ce34e(0x1c7)],null,_0x548eae),process[_0x5ce34e(0x1d5)](0x1)),console[_0x5ce34e(0x1d4)](_0x5ce34e(0x18c)+JSON[_0x5ce34e(0x196)](_0x21ec90)),await _0x34c0a3[_0x5ce34e(0x1c1)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3['HQkhq'],_0x21ec90,_0x548eae),process['exit'](0x1);}catch(_0x205d94){console[_0x5ce34e(0x1d4)](_0x5ce34e(0x1b1)+_0x205d94[_0x5ce34e(0x17a)]),await _0x34c0a3[_0x5ce34e(0x186)](sendInstrumentationEvent,_0x548eae,_0x34c0a3[_0x5ce34e(0x1c5)],messageTypes[_0x5ce34e(0x185)],_0x34c0a3[_0x5ce34e(0x1e2)],_0x205d94,_0x548eae),process[_0x5ce34e(0x1d5)](0x1);}};function a5_0x2b46(){const _0x6fc5c9=['got','iGwHv','readFileSync','PUT','1374402uBRdOB','\x20\x20username:\x20','pnaHS','body','tHUbl','builder','TjPlV','jSWEm','Failed\x20to\x20configure\x20resources!\x20Error:\x20','toLowerCase','https://','KZkel','oFdYx','106955syCMFU','../utils/utilityMethods','tTGeA','profileId','invalid-selection','104610pNBeAV','core:','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','configure','eWNjO','\x20\x20grid-profile:\x20','WGQRO','315TcKbmU','12FFDqGU','hcyjq','nndgH','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','vtnzy','91728TIfBmd','HQkhq','desc','INFO','foLjc','username','482307KlWgyb','Browserstack','invalid-input','SOTdi','argv','QilfQ','error','exit','GET','length','WNTRO','usage','../config/constants','json','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../utils/instrumentationUtils','recommendCommands','OVETr','list','caTZG','axqjz','DDvkH','stack','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','server-error','statusCode','uBwxS','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','JuFnR','help','nPeOE','unauthorised','pOaFi','ERROR','VXjWJ','active','init-not-called','885437OsSKYV','ILAPr','QOOgp','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','yfxUn','TIKKt','XWasG','HcwMd','Updated\x20default\x20Grid\x20Profile\x20successfully','HpVTw','uuid','log','name','stringify','../utils/userInput','INHjK','DkhnB','unknown-error','PFJug','isbeI','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','ogDCH','142536LXJnRu','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','strict','password','Lpjfm','existsSync'];a5_0x2b46=function(){return _0x6fc5c9;};return a5_0x2b46();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a6_0x144ae0=a6_0x34d9;(function(_0x228374,_0xb035d8){const _0x489e4d=a6_0x34d9,_0x4b3ba1=_0x228374();while(!![]){try{const _0x50a1e9=-parseInt(_0x489e4d(0xfd))/0x1*(parseInt(_0x489e4d(0xf3))/0x2)+-parseInt(_0x489e4d(0x10b))/0x3*(parseInt(_0x489e4d(0x104))/0x4)+-parseInt(_0x489e4d(0xff))/0x5+-parseInt(_0x489e4d(0xf6))/0x6+-parseInt(_0x489e4d(0xf2))/0x7*(parseInt(_0x489e4d(0xf5))/0x8)+-parseInt(_0x489e4d(0x103))/0x9+parseInt(_0x489e4d(0xf7))/0xa;if(_0x50a1e9===_0xb035d8)break;else _0x4b3ba1['push'](_0x4b3ba1['shift']());}catch(_0x16187a){_0x4b3ba1['push'](_0x4b3ba1['shift']());}}}(a6_0x3af4,0xac120));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x144ae0(0x106));function a6_0x34d9(_0x5ea994,_0x266756){const _0x3af46c=a6_0x3af4();return a6_0x34d9=function(_0x34d9ec,_0xe6e154){_0x34d9ec=_0x34d9ec-0xf2;let _0x4f9410=_0x3af46c[_0x34d9ec];return _0x4f9410;},a6_0x34d9(_0x5ea994,_0x266756);}exports[a6_0x144ae0(0xfa)]=a6_0x144ae0(0xfc),exports[a6_0x144ae0(0xfb)]=a6_0x144ae0(0x101),exports[a6_0x144ae0(0x107)]=function(_0x5e0e38){const _0xa8d4f9=a6_0x144ae0,_0x5b005d={};_0x5b005d[_0xa8d4f9(0x102)]='connect_commands',_0x5b005d[_0xa8d4f9(0x100)]=_0xa8d4f9(0xf8);const _0x5d5551=_0x5b005d;return _0x5e0e38[_0xa8d4f9(0x105)](HELP_HEADER_MESSAGE[_0xa8d4f9(0xfc)])[_0xa8d4f9(0xfe)](HELP_FOOTER_MESSAGE)[_0xa8d4f9(0x109)](_0x5d5551[_0xa8d4f9(0x102)])[_0xa8d4f9(0x10a)]()[_0xa8d4f9(0xf4)]()[_0xa8d4f9(0xf9)]()[_0xa8d4f9(0xf8)](_0x5d5551[_0xa8d4f9(0x100)]);},exports[a6_0x144ae0(0x108)]=function(_0x11c245){};function a6_0x3af4(){const _0xb118ba=['desc','connect','2gPflZB','epilogue','4528980YxZPRJ','MEura','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','ABDqi','6012567nEengE','9304tBPEXv','usage','../config/constants','builder','handler','commandDir','demandCommand','1476ETABXm','1367219AHNhmo','580194eHRklK','recommendCommands','56TOsTGP','3721194UWsSGl','59906630ABgMhM','help','strict','command'];a6_0x3af4=function(){return _0xb118ba;};return a6_0x3af4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7_0x327af8=a7_0x9dd0;function a7_0x9dd0(_0x237c64,_0x11274b){const _0x5f09dc=a7_0x5f09();return a7_0x9dd0=function(_0x9dd0ba,_0x2b088e){_0x9dd0ba=_0x9dd0ba-0xda;let _0x173f0b=_0x5f09dc[_0x9dd0ba];return _0x173f0b;},a7_0x9dd0(_0x237c64,_0x11274b);}(function(_0x46604f,_0x5d6445){const _0x13b582=a7_0x9dd0,_0x6e07bf=_0x46604f();while(!![]){try{const _0x37fd48=parseInt(_0x13b582(0x119))/0x1+-parseInt(_0x13b582(0x13b))/0x2*(parseInt(_0x13b582(0x126))/0x3)+-parseInt(_0x13b582(0xdf))/0x4+parseInt(_0x13b582(0x104))/0x5+parseInt(_0x13b582(0x12c))/0x6+parseInt(_0x13b582(0x131))/0x7*(-parseInt(_0x13b582(0x121))/0x8)+parseInt(_0x13b582(0x11a))/0x9*(parseInt(_0x13b582(0x143))/0xa);if(_0x37fd48===_0x5d6445)break;else _0x6e07bf['push'](_0x6e07bf['shift']());}catch(_0x2dcaa4){_0x6e07bf['push'](_0x6e07bf['shift']());}}}(a7_0x5f09,0xde1d3));function a7_0x5f09(){const _0x58bc28=['IPEGa','../../config/logger','cmltg','2415657eczhSF','bstack-username','bstackAccesskey','OIngZ','ewIha','yqQYi','2278962nosVjy','KFhSn','GqsVt','LNIoF','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','45731Vqdrxq','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.','help','../../utils/utilityMethods','sQAhj','Pass\x20the\x20ID\x20of\x20the\x20Grid','isTrialGrid','UnozB','command','mUNYG','4ETlcRN','Advance\x20options\x20for\x20Browserstack\x20Local','DFMSM','ZhQxO','OZXRB','GefDE','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','exit','30YBNfCo','aMUPN','JYuRg','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','options','OGttp','advance-options','wEQik','YXcAv','VFXZD','SACXZ','handler','KJunr','usage','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','isRunning','grid-id','true','LCilL','2660132blYnmO','bRbDK','pQrED','IAKJb','customRepeaters','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','wvEDr','mzJwn','MNjLb','FTKQo','SinVm','tENUX','HoCMW','ELJnB','Grid\x20type:\x20Trial','SIGINT','XrubO','create','epilogue','dKsUw','desc','description','lRuhB','../../config/constants','bstack-accesskey','Cqrso','FvONt','DUHsB','accessKey','oDOBY','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','ApjAL','info','argv','yrgDf','DELjK','gridId','5577435zuIaNI','OssSj','NWFBf','ORNUE','VtkTm','dCKlC','xWrRn','PkOoI','string','type','HhOzS','use-staging','tZEOk','CcZSo','browserStackLocalOptions','EuFHk','SIGTERM','OTAJG','deRfP','KCeje','grid','1643994PBdxpU','3665646PcIjIf','uvtfb','useStaging','fXBNO','cVPeB','bcois','error','1440XwzSio','PTHUD'];a7_0x5f09=function(){return _0x58bc28;};return a7_0x5f09();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x327af8(0xf6)),{logger}=require(a7_0x327af8(0x124)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x327af8(0x134));exports[a7_0x327af8(0x139)]=a7_0x327af8(0x118),exports[a7_0x327af8(0xf3)]=a7_0x327af8(0x130),exports['builder']=_0x59a924=>{const _0x4a2a19=a7_0x327af8,_0x1a71d5={};_0x1a71d5[_0x4a2a19(0xf5)]=_0x4a2a19(0xda),_0x1a71d5[_0x4a2a19(0x11b)]=_0x4a2a19(0x10c),_0x1a71d5[_0x4a2a19(0x14f)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x1a71d5['ZtrYG']=_0x4a2a19(0x136),_0x1a71d5['DUHsB']=_0x4a2a19(0x146),_0x1a71d5['DFMSM']=_0x4a2a19(0x13c),_0x1a71d5[_0x4a2a19(0xe5)]=_0x4a2a19(0x133);const _0x455c85=_0x1a71d5,_0x14c210={};_0x14c210['description']=_0x455c85[_0x4a2a19(0xf5)],_0x14c210[_0x4a2a19(0x10d)]=_0x455c85[_0x4a2a19(0x11b)];const _0x5ba438={};_0x5ba438[_0x4a2a19(0xf4)]=_0x455c85[_0x4a2a19(0x14f)],_0x5ba438['type']=_0x455c85['uvtfb'];const _0x5f1144={};_0x5f1144['demandOption']=!![],_0x5f1144[_0x4a2a19(0xf4)]=_0x455c85['ZtrYG'],_0x5f1144[_0x4a2a19(0x10d)]=_0x455c85[_0x4a2a19(0x11b)];const _0x36d5ff={};_0x36d5ff['description']=_0x455c85[_0x4a2a19(0xfa)],_0x36d5ff[_0x4a2a19(0x10d)]=_0x455c85['uvtfb'];const _0x5e27c2={};_0x5e27c2[_0x4a2a19(0xf4)]=_0x455c85[_0x4a2a19(0x13d)],_0x5e27c2[_0x4a2a19(0x10d)]=_0x455c85[_0x4a2a19(0x11b)];const _0x50ee50={};return _0x50ee50[_0x4a2a19(0x127)]=_0x14c210,_0x50ee50['bstack-accesskey']=_0x5ba438,_0x50ee50[_0x4a2a19(0xdc)]=_0x5f1144,_0x50ee50[_0x4a2a19(0x10f)]=_0x36d5ff,_0x50ee50[_0x4a2a19(0x149)]=_0x5e27c2,_0x59a924[_0x4a2a19(0x150)](HELP_HEADER_MESSAGE[_0x4a2a19(0xf0)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4a2a19(0x147)](_0x50ee50)[_0x4a2a19(0x133)](_0x455c85[_0x4a2a19(0xe5)])['argv'];},exports[a7_0x327af8(0x14e)]=async _0x10aa36=>{const _0x9e4a7c=a7_0x327af8,_0x5694a8={'OTAJG':function(_0x156bc0,_0x240d09){return _0x156bc0(_0x240d09);},'yrgDf':_0x9e4a7c(0x141),'owGsY':function(_0x476252,_0x47679b){return _0x476252===_0x47679b;},'dCKlC':_0x9e4a7c(0x138),'dKsUw':_0x9e4a7c(0x14d),'LCilL':function(_0x475e37,_0x1d5be4){return _0x475e37(_0x1d5be4);},'OssSj':_0x9e4a7c(0xfd),'pQrED':function(_0x4262b4,_0x2c6df9){return _0x4262b4===_0x2c6df9;},'PkOoI':function(_0x656aff,_0x29afa4){return _0x656aff(_0x29afa4);},'ORNUE':'beforeExit','Cqrso':_0x9e4a7c(0xee),'ELJnB':_0x9e4a7c(0x114),'NWFBf':_0x9e4a7c(0x132),'OIngZ':function(_0x506a31,_0x119be3){return _0x506a31!==_0x119be3;},'fXBNO':_0x9e4a7c(0x140),'wEQik':function(_0x44d245,_0x28ff6d){return _0x44d245===_0x28ff6d;},'IAKJb':function(_0xe4bf56,_0x47ab8c){return _0xe4bf56===_0x47ab8c;},'HoCMW':_0x9e4a7c(0xed),'ZhQxO':function(_0x4b1b1c,_0x20a6a2){return _0x4b1b1c(_0x20a6a2);},'CcZSo':function(_0x41e41c,_0x28d310){return _0x41e41c(_0x28d310);},'KCeje':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','aMUPN':'string','MNjLb':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','DELjK':_0x9e4a7c(0x136),'sQAhj':_0x9e4a7c(0x146),'EuFHk':_0x9e4a7c(0x13c),'taGUP':_0x9e4a7c(0x133),'yqQYi':function(_0x5de12d,_0x4bc98a,_0x4548f9){return _0x5de12d(_0x4bc98a,_0x4548f9);},'HhOzS':function(_0xeac787,_0x1c0e01){return _0xeac787&&_0x1c0e01;},'PTHUD':function(_0x189376,_0x5273d4){return _0x189376!==_0x5273d4;},'IPEGa':_0x9e4a7c(0x125),'ApjAL':_0x9e4a7c(0xe4),'VtkTm':function(_0x293640,_0x25560c,_0x277e57,_0x37f5fb){return _0x293640(_0x25560c,_0x277e57,_0x37f5fb);},'YXcAv':_0x9e4a7c(0x116),'bRbDK':_0x9e4a7c(0x12f),'JYuRg':function(_0x6908b7,_0x303c81){return _0x6908b7(_0x303c81);},'oDOBY':function(_0x3de565,_0x7b991c){return _0x3de565===_0x7b991c;},'mzJwn':_0x9e4a7c(0xdd),'mUNYG':_0x9e4a7c(0x148),'FvONt':_0x9e4a7c(0xe8),'SinVm':function(_0x105cf3,_0x4cfc14){return _0x105cf3===_0x4cfc14;},'VFXZD':_0x9e4a7c(0xef),'tENUX':_0x9e4a7c(0x13f),'TlPWL':_0x9e4a7c(0x12d)};let _0x410d79=_0x10aa36['bstackUsername'],_0x216e8e=_0x10aa36[_0x9e4a7c(0x128)];const _0x4558c3=_0x10aa36['advanceOptions'],_0x172cba=_0x171863=>{const _0x5eedb6=_0x9e4a7c;_0x5694a8['owGsY'](_0x5694a8[_0x5eedb6(0x109)],_0x5694a8[_0x5eedb6(0xf2)])?_0x5694a8['OTAJG'](_0x59234e,_0x5694a8['yrgDf']):(logger[_0x5eedb6(0x120)](_0x171863),process['exit'](0x1));};[_0x410d79,_0x216e8e]=_0x5694a8[_0x9e4a7c(0x12b)](fetchOrUpdateUserConfig,_0x410d79,_0x216e8e);!_0x5694a8[_0x9e4a7c(0x10e)](_0x410d79,_0x216e8e)&&(_0x5694a8[_0x9e4a7c(0x122)](_0x5694a8[_0x9e4a7c(0x123)],_0x5694a8[_0x9e4a7c(0x123)])?(_0x4b3928[_0x9e4a7c(0x120)](_0x51109c),_0x819a14['exit'](0x1)):_0x5694a8[_0x9e4a7c(0xde)](_0x172cba,_0x5694a8[_0x9e4a7c(0xfe)]));const _0x2f601a=_0x10aa36[_0x9e4a7c(0x103)],[_0xf7c0af,_0x5b3b61]=await _0x5694a8[_0x9e4a7c(0x108)](getGridDetails,_0x410d79,_0x216e8e,_0x2f601a);!_0x5b3b61&&(_0x5694a8[_0x9e4a7c(0x129)](_0x5694a8[_0x9e4a7c(0x14b)],_0x5694a8[_0x9e4a7c(0xe0)])?_0x5694a8[_0x9e4a7c(0x145)](_0x172cba,_0x5694a8[_0x9e4a7c(0x101)]):_0x5694a8[_0x9e4a7c(0xde)](_0x11f955,_0x5694a8[_0x9e4a7c(0x105)]));const _0x3a089b=_0x5694a8[_0x9e4a7c(0xfc)](_0x10aa36[_0x9e4a7c(0x11c)],_0x5694a8[_0x9e4a7c(0xe6)])?!![]:![];if(_0x5b3b61&&_0x5b3b61[_0x9e4a7c(0x137)]&&_0x3a089b){if(_0x5694a8['OIngZ'](_0x5694a8[_0x9e4a7c(0x13a)],_0x5694a8[_0x9e4a7c(0xf9)])){let _0x5c679a=_0x5694a8[_0x9e4a7c(0xeb)];logger[_0x9e4a7c(0xff)](_0x5c679a);try{if(_0x5694a8[_0x9e4a7c(0xe9)](_0x5694a8[_0x9e4a7c(0x14c)],_0x5694a8[_0x9e4a7c(0x14c)])){const _0xa5bd31={};_0xa5bd31[_0x9e4a7c(0xfb)]=_0x216e8e,_0xa5bd31['customRepeaters']=_0x5b3b61['customRepeaters'],_0xa5bd31[_0x9e4a7c(0x112)]=_0x4558c3;const _0x509437=_0xa5bd31,_0x1146fe=_0x5694a8[_0x9e4a7c(0xde)](startLocalBinarySync,_0x509437);let _0x28c5f3=0x0;const _0xcf83b=async()=>{const _0x111e05=_0x9e4a7c,_0x4be89f={'GqsVt':function(_0x350d19,_0x5756eb){const _0x45f0a5=a7_0x9dd0;return _0x5694a8[_0x45f0a5(0xe1)](_0x350d19,_0x5756eb);},'tZEOk':function(_0x483c2b,_0x52915d){return _0x5694a8['OTAJG'](_0x483c2b,_0x52915d);},'ewIha':function(_0x1cc0ba,_0x3877f2){const _0x262bd6=a7_0x9dd0;return _0x5694a8[_0x262bd6(0x10b)](_0x1cc0ba,_0x3877f2);},'bcois':_0x5694a8[_0x111e05(0x107)],'sgkcr':_0x5694a8[_0x111e05(0xf8)],'xWrRn':_0x5694a8[_0x111e05(0xec)],'cVPeB':_0x5694a8['NWFBf']};if(_0x5694a8['OIngZ'](_0x5694a8['fXBNO'],_0x5694a8[_0x111e05(0x11d)])){const _0x329f03={};_0x329f03['accessKey']=_0x1518c2,_0x329f03[_0x111e05(0xe3)]=_0x121579[_0x111e05(0xe3)],_0x329f03['browserStackLocalOptions']=_0xad35f7;const _0x271754=_0x329f03,_0x73112e=_0x4be89f[_0x111e05(0x12a)](_0x3d17ec,_0x271754);let _0x52748f=0x0;const _0x169a4e=async()=>{const _0x5e4748=_0x111e05;_0x52748f++,_0x4be89f[_0x5e4748(0x12e)](_0x52748f,0x1)&&_0x73112e&&_0x73112e['isRunning']()&&_0x4be89f[_0x5e4748(0x110)](_0x4f8466,_0x73112e);};_0x13f10c['on'](_0x4be89f[_0x111e05(0x11f)],_0x169a4e),_0xa1bb0a['on'](_0x4be89f['sgkcr'],_0x169a4e),_0x2c0caf['on'](_0x4be89f[_0x111e05(0x10a)],_0x169a4e),_0x24c6f7=_0x4be89f[_0x111e05(0x11e)],_0x3fc4f8['info'](_0x65bb09);}else _0x28c5f3++,_0x5694a8[_0x111e05(0x14a)](_0x28c5f3,0x1)&&_0x1146fe&&_0x1146fe['isRunning']()&&_0x5694a8['LCilL'](stopLocalBinary,_0x1146fe);};process['on'](_0x5694a8[_0x9e4a7c(0x107)],_0xcf83b),process['on'](_0x5694a8['Cqrso'],_0xcf83b),process['on'](_0x5694a8['ELJnB'],_0xcf83b),_0x5c679a=_0x5694a8['NWFBf'],logger[_0x9e4a7c(0xff)](_0x5c679a);}else{let _0x3d8b97=_0x5694a8[_0x9e4a7c(0xeb)];_0x372371[_0x9e4a7c(0xff)](_0x3d8b97);try{const _0x25295e={};_0x25295e[_0x9e4a7c(0xfb)]=_0x4b6158,_0x25295e[_0x9e4a7c(0xe3)]=_0x417ca0[_0x9e4a7c(0xe3)],_0x25295e[_0x9e4a7c(0x112)]=_0x3862df;const _0x1aecc0=_0x25295e,_0x3d838b=_0x5694a8['ZhQxO'](_0x39e8f8,_0x1aecc0);let _0x1574c8=0x0;const _0x3f9ada=async()=>{const _0x1d6674=_0x9e4a7c;_0x1574c8++,_0x5694a8[_0x1d6674(0xe2)](_0x1574c8,0x1)&&_0x3d838b&&_0x3d838b['isRunning']()&&_0x5694a8[_0x1d6674(0x10b)](_0x45ecae,_0x3d838b);};_0x3fd9de['on'](_0x5694a8[_0x9e4a7c(0x107)],_0x3f9ada),_0x60d456['on'](_0x5694a8[_0x9e4a7c(0xf8)],_0x3f9ada),_0x198e21['on'](_0x5694a8[_0x9e4a7c(0xec)],_0x3f9ada),_0x3d8b97=_0x5694a8[_0x9e4a7c(0x106)],_0xff9d6d[_0x9e4a7c(0xff)](_0x3d8b97);}catch(_0x280731){_0x5694a8[_0x9e4a7c(0x115)](_0x570c07,_0x5694a8['OssSj']);}}}catch(_0x40efb9){_0x5694a8['SinVm'](_0x5694a8[_0x9e4a7c(0xea)],_0x5694a8['TlPWL'])?(_0x1c1f6b++,_0x5694a8[_0x9e4a7c(0xe2)](_0x19fb18,0x1)&&_0x53d231&&_0x29ea43[_0x9e4a7c(0xdb)]()&&_0x5694a8[_0x9e4a7c(0x111)](_0xfd1d91,_0x47ff4c)):_0x5694a8[_0x9e4a7c(0x13e)](_0x172cba,_0x5694a8['OssSj']);}}else{const _0x2f9c09={};_0x2f9c09[_0x9e4a7c(0xf4)]=_0x5694a8[_0x9e4a7c(0x117)],_0x2f9c09['type']=_0x5694a8['aMUPN'];const _0x4d3874={};_0x4d3874[_0x9e4a7c(0xf4)]=_0x5694a8[_0x9e4a7c(0xe7)],_0x4d3874[_0x9e4a7c(0x10d)]=_0x5694a8[_0x9e4a7c(0x144)];const _0x4db897={};_0x4db897['demandOption']=!![],_0x4db897['description']=_0x5694a8[_0x9e4a7c(0x102)],_0x4db897[_0x9e4a7c(0x10d)]=_0x5694a8[_0x9e4a7c(0x144)];const _0x590e6d={};_0x590e6d[_0x9e4a7c(0xf4)]=_0x5694a8[_0x9e4a7c(0x135)],_0x590e6d[_0x9e4a7c(0x10d)]=_0x5694a8[_0x9e4a7c(0x144)];const _0xe1cb41={};_0xe1cb41[_0x9e4a7c(0xf4)]=_0x5694a8[_0x9e4a7c(0x113)],_0xe1cb41[_0x9e4a7c(0x10d)]=_0x5694a8[_0x9e4a7c(0x144)];const _0x4b650f={};return _0x4b650f[_0x9e4a7c(0x127)]=_0x2f9c09,_0x4b650f[_0x9e4a7c(0xf7)]=_0x4d3874,_0x4b650f[_0x9e4a7c(0xdc)]=_0x4db897,_0x4b650f['use-staging']=_0x590e6d,_0x4b650f[_0x9e4a7c(0x149)]=_0xe1cb41,_0x3870f2[_0x9e4a7c(0x150)](_0x5ee7e8[_0x9e4a7c(0xf0)])[_0x9e4a7c(0xf1)](_0x2973a1)['options'](_0x4b650f)['help'](_0x5694a8['taGUP'])[_0x9e4a7c(0x100)];}}process[_0x9e4a7c(0x142)](0x0);};
|
|
1
|
+
const a7_0x3b79d6=a7_0x4db8;(function(_0x19bba9,_0x1e04a3){const _0x4d1706=a7_0x4db8,_0x25f08b=_0x19bba9();while(!![]){try{const _0x45d774=parseInt(_0x4d1706(0x12a))/0x1*(parseInt(_0x4d1706(0x101))/0x2)+parseInt(_0x4d1706(0x124))/0x3+-parseInt(_0x4d1706(0x11e))/0x4*(-parseInt(_0x4d1706(0xde))/0x5)+parseInt(_0x4d1706(0xf9))/0x6*(-parseInt(_0x4d1706(0x110))/0x7)+-parseInt(_0x4d1706(0xd7))/0x8+parseInt(_0x4d1706(0xf1))/0x9+parseInt(_0x4d1706(0xd9))/0xa;if(_0x45d774===_0x1e04a3)break;else _0x25f08b['push'](_0x25f08b['shift']());}catch(_0x5ce815){_0x25f08b['push'](_0x25f08b['shift']());}}}(a7_0x57a3,0x75f82));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require(a7_0x3b79d6(0xe5)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x3b79d6(0xfc));function a7_0x4db8(_0x3cd2e2,_0x2d6eeb){const _0x57a333=a7_0x57a3();return a7_0x4db8=function(_0x4db8e3,_0x12f8d6){_0x4db8e3=_0x4db8e3-0xce;let _0x42970e=_0x57a333[_0x4db8e3];return _0x42970e;},a7_0x4db8(_0x3cd2e2,_0x2d6eeb);}function a7_0x57a3(){const _0x13ce70=['jmLCe','sZagc','QCJou','wcBBC','ATkbJ','zXeBV','36bDmhZd','JROlI','eFGJx','desc','RpZdt','vFBzo','1466010JNLLVD','dIVeK','advance-options','type','UpwJp','mYlvN','305587UtHFdC','Advance\x20options\x20for\x20Browserstack\x20Local','argv','EXmtg','ATFUe','customRepeaters','rWrOm','usage','LOagz','options','FVLwk','info','bstackAccesskey','epilogue','ZXoCn','grid','isRunning','BlDBh','7546640eMENph','lEUeB','4984600WxPBaL','NqynJ','handler','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','nAtIb','78695mxAEgV','beforeExit','MRclU','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','help','GmEBE','UvgOr','../../config/logger','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','OYNva','bstack-accesskey','DJUcJ','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','aSvZg','error','demandOption','RVYVu','IASYk','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','5505246fxYpgN','GHXlh','create','jPlIT','gridId','Grid\x20type:\x20Trial','PsVjz','DxYHp','247812cRfkxl','SxUPA','hkfBR','../../utils/utilityMethods','Pass\x20the\x20ID\x20of\x20the\x20Grid','FiNJT','QqDYu','browserStackLocalOptions','2ACDvSs','GcZjQ','mEqvF','IywRW','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','true','description','FQVop','exit','ODSwg','rdpPb','DKDHK','accessKey','qdfuC','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','105CPGRDq','isTrialGrid','TahaT','vguiU','bstack-username','grid-id','GXpSz','string'];a7_0x57a3=function(){return _0x13ce70;};return a7_0x57a3();}exports['command']=a7_0x3b79d6(0xd4),exports[a7_0x3b79d6(0x121)]=a7_0x3b79d6(0xf0),exports['builder']=_0x23390a=>{const _0x175254=a7_0x3b79d6,_0x164c45={};_0x164c45[_0x175254(0x10e)]=_0x175254(0xe6),_0x164c45['UvgOr']=_0x175254(0x117),_0x164c45['IywRW']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x164c45[_0x175254(0xcf)]=_0x175254(0xfd),_0x164c45[_0x175254(0xe7)]=_0x175254(0x105),_0x164c45[_0x175254(0x112)]=_0x175254(0x12b),_0x164c45['DxYHp']=_0x175254(0xe2);const _0x2cd0cf=_0x164c45,_0x1a5d95={};_0x1a5d95['description']=_0x2cd0cf[_0x175254(0x10e)],_0x1a5d95[_0x175254(0x127)]=_0x2cd0cf[_0x175254(0xe4)];const _0x325557={};_0x325557[_0x175254(0x107)]=_0x2cd0cf[_0x175254(0x104)],_0x325557[_0x175254(0x127)]=_0x2cd0cf[_0x175254(0xe4)];const _0x3ab7d7={};_0x3ab7d7[_0x175254(0xed)]=!![],_0x3ab7d7[_0x175254(0x107)]=_0x2cd0cf[_0x175254(0xcf)],_0x3ab7d7[_0x175254(0x127)]=_0x2cd0cf[_0x175254(0xe4)];const _0x31002d={};_0x31002d[_0x175254(0x107)]=_0x2cd0cf['OYNva'],_0x31002d['type']=_0x2cd0cf[_0x175254(0xe4)];const _0x412de4={};_0x412de4[_0x175254(0x107)]=_0x2cd0cf[_0x175254(0x112)],_0x412de4[_0x175254(0x127)]=_0x2cd0cf[_0x175254(0xe4)];const _0x11e14b={};return _0x11e14b['bstack-username']=_0x1a5d95,_0x11e14b[_0x175254(0xe8)]=_0x325557,_0x11e14b['grid-id']=_0x3ab7d7,_0x11e14b['use-staging']=_0x31002d,_0x11e14b[_0x175254(0x126)]=_0x412de4,_0x23390a[_0x175254(0x131)](HELP_HEADER_MESSAGE[_0x175254(0xf3)])[_0x175254(0xd2)](HELP_FOOTER_MESSAGE)[_0x175254(0xce)](_0x11e14b)[_0x175254(0xe2)](_0x2cd0cf[_0x175254(0xf8)])[_0x175254(0x12c)];},exports[a7_0x3b79d6(0xdb)]=async _0x2f3c4c=>{const _0x5ff7c=a7_0x3b79d6,_0x362762={'ATFUe':function(_0x1df997,_0x122f8f){return _0x1df997(_0x122f8f);},'ODSwg':_0x5ff7c(0xdc),'DJUcJ':function(_0x164dd3,_0x1955a7){return _0x164dd3!==_0x1955a7;},'dIVeK':_0x5ff7c(0xdd),'mEqvF':_0x5ff7c(0x10f),'jmLCe':_0x5ff7c(0xe6),'QCJou':_0x5ff7c(0x117),'NqynJ':_0x5ff7c(0xe1),'JROlI':'Pass\x20the\x20ID\x20of\x20the\x20Grid','GHXlh':_0x5ff7c(0x105),'sZagc':_0x5ff7c(0x12b),'ATkbJ':_0x5ff7c(0xe2),'vguiU':function(_0x534a5c,_0x81d90e){return _0x534a5c===_0x81d90e;},'GcZjQ':function(_0x26fac5,_0x530c3a){return _0x26fac5(_0x530c3a);},'EXmtg':_0x5ff7c(0xea),'fkiFU':function(_0x527325,_0xa31340){return _0x527325!==_0xa31340;},'DKDHK':_0x5ff7c(0x128),'rWrOm':function(_0x2fb491,_0x3916f4){return _0x2fb491===_0x3916f4;},'RVYVu':function(_0x3426ec,_0x39d193){return _0x3426ec(_0x39d193);},'GmEBE':function(_0x4e647f,_0x1e45e7){return _0x4e647f(_0x1e45e7);},'mYlvN':_0x5ff7c(0xdf),'MRclU':'SIGINT','hkfBR':'SIGTERM','FiNJT':'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.','IASYk':function(_0x542a81,_0x153e6c,_0x3f6553){return _0x542a81(_0x153e6c,_0x3f6553);},'rdpPb':function(_0x1ee472,_0x5cdf57){return _0x1ee472&&_0x5cdf57;},'FQVop':_0x5ff7c(0x11d),'RNgav':function(_0x18fb6c,_0xa44b3a,_0x13501f,_0x15a0ba){return _0x18fb6c(_0xa44b3a,_0x13501f,_0x15a0ba);},'lEUeB':'PepJs','BlDBh':'PAFHp','SxUPA':function(_0xf202b,_0xb5d57b){return _0xf202b(_0xb5d57b);},'LOagz':_0x5ff7c(0x106),'dzWGq':_0x5ff7c(0x11b),'GXpSz':_0x5ff7c(0xf7),'ZXoCn':_0x5ff7c(0xf6),'eFGJx':_0x5ff7c(0xf4),'vFBzo':_0x5ff7c(0xeb),'GQUvo':_0x5ff7c(0x122)};let _0x9c2435=_0x2f3c4c['bstackUsername'],_0x44ba4e=_0x2f3c4c[_0x5ff7c(0xd1)];const _0x23e2aa=_0x2f3c4c['advanceOptions'],_0x23dd1e=_0x3ba6a3=>{const _0x369fcf=_0x5ff7c,_0x1fb5e8={'fGofQ':function(_0x76474,_0x2fd897){const _0x3c7ed2=a7_0x4db8;return _0x362762[_0x3c7ed2(0x12e)](_0x76474,_0x2fd897);},'QqDYu':_0x362762[_0x369fcf(0x10a)]};_0x362762[_0x369fcf(0xe9)](_0x362762[_0x369fcf(0x125)],_0x362762[_0x369fcf(0x125)])?_0x1fb5e8['fGofQ'](_0x17fd8d,_0x1fb5e8[_0x369fcf(0xff)]):(logger[_0x369fcf(0xec)](_0x3ba6a3),process[_0x369fcf(0x109)](0x1));};[_0x9c2435,_0x44ba4e]=_0x362762[_0x5ff7c(0xef)](fetchOrUpdateUserConfig,_0x9c2435,_0x44ba4e);!_0x362762[_0x5ff7c(0x10b)](_0x9c2435,_0x44ba4e)&&(_0x362762[_0x5ff7c(0xe9)](_0x362762[_0x5ff7c(0x108)],_0x362762[_0x5ff7c(0x108)])?_0x362762[_0x5ff7c(0x12e)](_0xb67a79,_0x362762[_0x5ff7c(0x103)]):_0x362762[_0x5ff7c(0x102)](_0x23dd1e,_0x362762[_0x5ff7c(0x10a)]));const _0xc848c1=_0x2f3c4c[_0x5ff7c(0xf5)],[_0xc5e3e3,_0x13aada]=await _0x362762['RNgav'](getGridDetails,_0x9c2435,_0x44ba4e,_0xc848c1);if(!_0x13aada){if(_0x362762['fkiFU'](_0x362762[_0x5ff7c(0xd8)],_0x362762[_0x5ff7c(0xd6)]))_0x362762[_0x5ff7c(0xfa)](_0x23dd1e,_0x362762[_0x5ff7c(0x12d)]);else{const _0x21ec02={};_0x21ec02[_0x5ff7c(0x107)]=_0x362762[_0x5ff7c(0x118)],_0x21ec02[_0x5ff7c(0x127)]=_0x362762['QCJou'];const _0x5efbec={};_0x5efbec[_0x5ff7c(0x107)]=_0x362762[_0x5ff7c(0xda)],_0x5efbec[_0x5ff7c(0x127)]=_0x362762['QCJou'];const _0x30f863={};_0x30f863[_0x5ff7c(0xed)]=!![],_0x30f863[_0x5ff7c(0x107)]=_0x362762[_0x5ff7c(0x11f)],_0x30f863[_0x5ff7c(0x127)]=_0x362762[_0x5ff7c(0x11a)];const _0x138f8e={};_0x138f8e[_0x5ff7c(0x107)]=_0x362762[_0x5ff7c(0xf2)],_0x138f8e[_0x5ff7c(0x127)]=_0x362762['QCJou'];const _0x1e8a99={};_0x1e8a99[_0x5ff7c(0x107)]=_0x362762[_0x5ff7c(0x119)],_0x1e8a99[_0x5ff7c(0x127)]=_0x362762[_0x5ff7c(0x11a)];const _0x306424={};return _0x306424[_0x5ff7c(0x114)]=_0x21ec02,_0x306424[_0x5ff7c(0xe8)]=_0x5efbec,_0x306424[_0x5ff7c(0x115)]=_0x30f863,_0x306424['use-staging']=_0x138f8e,_0x306424[_0x5ff7c(0x126)]=_0x1e8a99,_0x51b430[_0x5ff7c(0x131)](_0x275ac4[_0x5ff7c(0xf3)])[_0x5ff7c(0xd2)](_0x3d1eef)[_0x5ff7c(0xce)](_0x306424)[_0x5ff7c(0xe2)](_0x362762[_0x5ff7c(0x11c)])[_0x5ff7c(0x12c)];}}const _0xc82276=_0x362762[_0x5ff7c(0x130)](_0x2f3c4c['useStaging'],_0x362762[_0x5ff7c(0x132)])?!![]:![];if(_0x13aada&&_0x13aada[_0x5ff7c(0x111)]&&_0xc82276){if(_0x362762[_0x5ff7c(0x130)](_0x362762['dzWGq'],_0x362762[_0x5ff7c(0x116)]))_0x54e8e9++,_0x362762[_0x5ff7c(0x113)](_0x530d31,0x1)&&_0x580d87&&_0x515759[_0x5ff7c(0xd5)]()&&_0x362762[_0x5ff7c(0x102)](_0x2471d7,_0xe2a085);else{let _0x580d6f=_0x362762[_0x5ff7c(0xd3)];logger[_0x5ff7c(0xd0)](_0x580d6f);try{if(_0x362762[_0x5ff7c(0xe9)](_0x362762[_0x5ff7c(0x120)],_0x362762[_0x5ff7c(0x120)]))_0x362762['GcZjQ'](_0x9a4e03,_0x362762['EXmtg']);else{const _0x4b86a4={};_0x4b86a4[_0x5ff7c(0x10d)]=_0x44ba4e,_0x4b86a4[_0x5ff7c(0x12f)]=_0x13aada[_0x5ff7c(0x12f)],_0x4b86a4[_0x5ff7c(0x100)]=_0x23e2aa;const _0x1b595f=_0x4b86a4,_0x3fee5c=_0x362762['GmEBE'](startLocalBinarySync,_0x1b595f);let _0x562812=0x0;const _0x4ef0e9=async()=>{const _0x2ecb91=_0x5ff7c;_0x362762['fkiFU'](_0x362762[_0x2ecb91(0x10c)],_0x362762[_0x2ecb91(0x10c)])?(_0x4e3aac[_0x2ecb91(0xec)](_0x2139c7),_0xd31c63['exit'](0x1)):(_0x562812++,_0x362762[_0x2ecb91(0x130)](_0x562812,0x1)&&_0x3fee5c&&_0x3fee5c[_0x2ecb91(0xd5)]()&&_0x362762[_0x2ecb91(0xee)](stopLocalBinary,_0x3fee5c));};process['on'](_0x362762[_0x5ff7c(0x129)],_0x4ef0e9),process['on'](_0x362762[_0x5ff7c(0xe0)],_0x4ef0e9),process['on'](_0x362762['hkfBR'],_0x4ef0e9),_0x580d6f=_0x362762[_0x5ff7c(0xfe)],logger[_0x5ff7c(0xd0)](_0x580d6f);}}catch(_0x245bb3){if(_0x362762[_0x5ff7c(0x130)](_0x362762[_0x5ff7c(0x123)],_0x362762['GQUvo'])){const _0x2f2555={};_0x2f2555['accessKey']=_0x2d9cdc,_0x2f2555[_0x5ff7c(0x12f)]=_0x48278b[_0x5ff7c(0x12f)],_0x2f2555[_0x5ff7c(0x100)]=_0x53e3cf;const _0x12d6de=_0x2f2555,_0x5aa507=_0x362762['GcZjQ'](_0x566a71,_0x12d6de);let _0xa4aacb=0x0;const _0x1e5c99=async()=>{const _0x34871d=_0x5ff7c;_0xa4aacb++,_0x362762[_0x34871d(0x130)](_0xa4aacb,0x1)&&_0x5aa507&&_0x5aa507['isRunning']()&&_0x362762[_0x34871d(0xe3)](_0x1069d0,_0x5aa507);};_0x7ec49b['on'](_0x362762[_0x5ff7c(0x129)],_0x1e5c99),_0x262156['on'](_0x362762[_0x5ff7c(0xe0)],_0x1e5c99),_0x3085a9['on'](_0x362762[_0x5ff7c(0xfb)],_0x1e5c99),_0xd7dbed=_0x362762[_0x5ff7c(0xfe)],_0x22fc1b[_0x5ff7c(0xd0)](_0x3352cb);}else _0x362762[_0x5ff7c(0x12e)](_0x23dd1e,_0x362762[_0x5ff7c(0x103)]);}}}process[_0x5ff7c(0x109)](0x0);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8_0x29e3e8=a8_0x4075;(function(_0x750dcd,_0x3c1fdc){const _0xa50cf8=a8_0x4075,_0x24b480=_0x750dcd();while(!![]){try{const _0x4d6fa9=parseInt(_0xa50cf8(0x155))/0x1+-parseInt(_0xa50cf8(0x146))/0x2+parseInt(_0xa50cf8(0x158))/0x3+parseInt(_0xa50cf8(0x150))/0x4+-parseInt(_0xa50cf8(0x14e))/0x5*(-parseInt(_0xa50cf8(0x14f))/0x6)+-parseInt(_0xa50cf8(0x152))/0x7*(-parseInt(_0xa50cf8(0x14b))/0x8)+-parseInt(_0xa50cf8(0x154))/0x9*(parseInt(_0xa50cf8(0x153))/0xa);if(_0x4d6fa9===_0x3c1fdc)break;else _0x24b480['push'](_0x24b480['shift']());}catch(_0x822ca2){_0x24b480['push'](_0x24b480['shift']());}}}(a8_0x1965,0x5d445));function a8_0x1965(){const _0x480481=['desc','create','demandCommand','3192vLZplN','HNUzb','JdiSM','1975855XllSEl','6tuuLxh','1228296tsHMrP','help','12957lDMCqN','20IjXikN','7270614YtrPLJ','351798LzuNYA','strict','handler','1286505RVzqGd','commandDir','Create\x20a\x20new\x20Automation\x20grid.','447428xnINgb','usage'];a8_0x1965=function(){return _0x480481;};return a8_0x1965();}function a8_0x4075(_0x4b489f,_0x3c52c6){const _0x1965d1=a8_0x1965();return a8_0x4075=function(_0x40758d,_0x49c1e0){_0x40758d=_0x40758d-0x144;let _0x329924=_0x1965d1[_0x40758d];return _0x329924;},a8_0x4075(_0x4b489f,_0x3c52c6);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports['command']=a8_0x29e3e8(0x149),exports[a8_0x29e3e8(0x148)]=a8_0x29e3e8(0x145),exports['builder']=function(_0x2a1d3d){const _0x43f6cd=a8_0x29e3e8,_0x4df003={};_0x4df003[_0x43f6cd(0x14d)]='create_commands',_0x4df003[_0x43f6cd(0x14c)]=_0x43f6cd(0x151);const _0x1215d3=_0x4df003;return _0x2a1d3d[_0x43f6cd(0x147)](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x43f6cd(0x144)](_0x1215d3[_0x43f6cd(0x14d)])[_0x43f6cd(0x14a)]()['recommendCommands']()[_0x43f6cd(0x156)]()[_0x43f6cd(0x151)](_0x1215d3[_0x43f6cd(0x14c)]);},exports[a8_0x29e3e8(0x157)]=function(_0x3bb9ed){};
|