browserstack-node-sdk 1.32.16 → 1.33.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/utils/AWSUtils.js +1 -1
  25. package/ats/src/utils/createAutoscalerStack.js +1 -1
  26. package/ats/src/utils/createClusterStack.js +1 -1
  27. package/ats/src/utils/createk8sClient.js +1 -1
  28. package/ats/src/utils/deleteStack.js +1 -1
  29. package/ats/src/utils/gridComponents.js +1 -1
  30. package/ats/src/utils/hstUtils.js +1 -1
  31. package/ats/src/utils/instrumentationUtils.js +1 -1
  32. package/ats/src/utils/userInput.js +1 -1
  33. package/ats/src/utils/utilityMethods.js +1 -1
  34. package/ats/src/utils/webSocketUtils.js +1 -1
  35. package/package.json +1 -1
  36. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  37. package/src/bin/codeceptjs/command.js +1 -1
  38. package/src/bin/codeceptjs/helper.js +1 -1
  39. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  40. package/src/bin/cucumber-js/command.js +1 -1
  41. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  42. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  43. package/src/bin/cucumber-js/test.setup.js +1 -1
  44. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  45. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  46. package/src/bin/integrations/command.js +1 -1
  47. package/src/bin/integrations/constants.js +1 -1
  48. package/src/bin/jest/command.js +1 -1
  49. package/src/bin/jest/customImplements/customCircus.js +1 -1
  50. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  51. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  52. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  53. package/src/bin/jest/jest.setup.js +1 -1
  54. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  55. package/src/bin/jest/test-observability/helper.js +1 -1
  56. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  57. package/src/bin/jest/test-observability/test-details.js +1 -1
  58. package/src/bin/jest/test_before.setup.js +1 -1
  59. package/src/bin/launcher/launcher.js +1 -1
  60. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  61. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  62. package/src/bin/mocha/command.js +1 -1
  63. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  64. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  65. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  66. package/src/bin/mocha/test.setup.js +1 -1
  67. package/src/bin/nightwatch/command.js +1 -1
  68. package/src/bin/playwright/accessibility-helper.js +1 -1
  69. package/src/bin/playwright/command.js +1 -1
  70. package/src/bin/playwright/globalSetup.js +1 -1
  71. package/src/bin/playwright/mock-process.js +1 -1
  72. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  73. package/src/bin/playwright/patches.js +1 -1
  74. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  75. package/src/bin/playwright/reporter/reporter.js +1 -1
  76. package/src/bin/playwright/reporter/test-details.js +1 -1
  77. package/src/bin/playwright/sessionDetails.js +1 -1
  78. package/src/bin/runner.js +1 -1
  79. package/src/bin/setup.js +1 -1
  80. package/src/bin/test-runner/index.js +1 -1
  81. package/src/bin/test-runner/runTest.js +1 -1
  82. package/src/bin/test-runner/testWorker.js +1 -1
  83. package/src/bin/utils/constants.js +1 -1
  84. package/src/bin/utils/log4jsAppender.js +1 -1
  85. package/src/bin/utils/logPatcher.js +1 -1
  86. package/src/bin/utils/logReportingAPI.js +1 -1
  87. package/src/bin/vanilla-js/command.js +1 -1
  88. package/src/browserStackSdk.js +1 -1
  89. package/src/helpers/BrowserStackSetup.js +1 -1
  90. package/src/helpers/accessibility-automation/constants.js +1 -1
  91. package/src/helpers/accessibility-automation/helper.js +1 -1
  92. package/src/helpers/accessibility-automation/scripts.js +1 -1
  93. package/src/helpers/ats/constants.js +1 -1
  94. package/src/helpers/ats/helper.js +1 -1
  95. package/src/helpers/capsMapping.js +1 -1
  96. package/src/helpers/globals.js +1 -1
  97. package/src/helpers/helper.js +1 -1
  98. package/src/helpers/logger.js +1 -1
  99. package/src/helpers/patchHelpers.js +1 -1
  100. package/src/helpers/percy/Percy.js +1 -1
  101. package/src/helpers/percy/PercyBinary.js +1 -1
  102. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  103. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  104. package/src/helpers/percy/PercySDK.js +1 -1
  105. package/src/helpers/percy/index.js +1 -1
  106. package/src/helpers/percy/utils.js +1 -1
  107. package/src/helpers/performance-tester.js +1 -1
  108. package/src/helpers/request-spy.js +1 -1
  109. package/src/helpers/setKeepAlive.js +1 -1
  110. package/src/helpers/test-observability/constants.js +1 -1
  111. package/src/helpers/test-observability/error-handler.js +1 -1
  112. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  113. package/src/helpers/test-observability/sessionHandler.js +1 -1
  114. package/src/helpers/test-observability/utils.js +1 -1
  115. package/src/helpers/testhub/constants.js +1 -1
  116. package/src/helpers/testhub/testhubHandler.js +1 -1
  117. package/src/helpers/testhub/utils.js +1 -1
  118. package/src/helpers/w3cMapping.js +1 -1
  119. package/src/hubAllocationMethods.js +1 -1
  120. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a3_0x123ef6=a3_0x507f;function a3_0xe1b9(){const _0xf7c118=['EXTru','webSocketUtils','zoXAe','fOqoJ','accounts','lCues','members','listClusters','tEzWu','olZJt','getGridHostname','log','parent','gke_','oCFBM','replace','@google-cloud/resource-manager','isClusterPresent','VsHQD','../config/constants','network','EzRIt','vHtNA','HNcEd','jLKeL','iPXvh','gAEDP','871050Pqetxa','networkClient','split','iamClient','stack','iam','bixjp','serviceAccountName','ClusterManagerClient','PwSRE','729640TnMLAL','parse','storage.objects.setIamPolicy','type','join','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','PUT','customRoleName','/roles/','cXBQq','/subnetworks/','uADsg','sendGCPInfoToHST','create','dOQgi','HsQrL','nodePools','cAajk','util','keyFile','iKOZt','sSHOz','containerClient','ygPbS','tdesa','getClient','WSToc','mPDLN','fetchLocalCreds','Cannot\x20find\x20subnets\x20','turboscale-service-account','LttBq','rws','roles','DkKql','SmmEx','autoscaling','createCluster','xzXXu','/regions/','vgLmy','UdePS','data','getClusterInfo','NFTRG','pAViC','xstMP','ffCyi','wzrOW','RbTKZ','\x20--quiet\x20--user-output-enabled=false','/global/networks/','@google-cloud/container','maxNodes','VeNns','https://www.googleapis.com/auth/cloud-platform','bSLOF','sendResourceDataToHST','configureIfNotConfigured','isConfigured','fJFkw','/clusters/','655536mMWlFM','GKE\x20Cluster\x20deletion\x20failed','fITUN','qmWRP','accountId','ENhCe','./CloudProvider','projects','profileId','googleapis','OLvVu','GBhNl','tHGIl','storage.buckets.listTagBindings','setConfig','gpAPT','get','updateWindowsNodeGroup','anDJy','TTpvd','QMeXJ','SgHby','yOgTL','ilzzs','MMIBM','GoogleCloudProvider','cloudProvider','serviceAccounts','ywilv','bstackUsername','uyDIS','storage.objects.list','wMYmu','checkServiceAccount','.iam.gserviceaccount.com','NPjRj','auth','IgZuj','username','DvzOi','KqNWm','JxjkN','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','seTXn','config','gcpresources','/serviceAccounts/','path','sendEventToBackend','atbMC','project','OZWIJ','ebnaV','templates','MXYMG','/packages/cli/update-cluster-region','location','Deleting\x20the\x20cluster\x20','storage.multipartUploads.create','TFZXy','getUserInput','Wxkjl','Dwppv','DONE','sycWQ','WFJMZ','requestBody','vorZF','writeFileSync','tRSvl','list','icRWZ','setIamPolicy','TdWQT','regionmap.json','mKemr','PepTG','deleteCluster','turboscale_custom_role','HAIsg','storage.buckets.create','1LLxtYr','3|4|5|0|1|2','setupServiceAccount','RUNNING','fOjpF','jNBsJ','delay','251654rBzezE','exports','../utils/userInput','scopes','MCVus','Fwtyp','kazRM','RESOURCES','JTLdl','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','kaTkf','AsMOs','utf-8','serviceAccount','storage.buckets.update','mXtfA','minNodeCount','iWrCA','onePv','yNWHd','masterAuth','storage.buckets.delete','iUmOJ','FpyyU','storage.multipartUploads.list','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','isSubnetsValid','vndEA','resourceLabels','MWXUY','CXtEu','wFqal','bstackAccesskey','TOnct','FEwOc','NetworksClient','uKlls','storage.buckets.createTagBinding','UCMcO','isVPCPresent','MLoLx','lBPYX','bBGus','name','message','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','QVEjn','vPvuP','default','getCluster','RajKv','machineType','SYQrE','storage.buckets.setIamPolicy','vpcInfo','storage.objects.getIamPolicy','error','SCXaj','UUZtW','storage.objects.get','includedPermissions','fuoiL','cWWpF','WISgW','ZGouV','mAQzp','instanceType','DUWWy','toString','gridProfileId','GUbga','Rmwml','organizations','ulohD','role','gkecluster.json','bWKPu','107787HnTsOI','toLowerCase','bindings','Cluster\x20creation\x20failed','updateClusterRegion','loadBalancer','eVlQg','maxNodeCount','ingress','exit','push','.\x20Error:\x20','gPHrv','readFileAsync','doAHO','exec','yvKDy','projects/','LOG','serviceAccount:','taXXv','LGzgu','qjcqy','cloudProviderName','QmAQu','EhdRt','YysMO','clusterName','bRsGq','CeBJH','LPPBw','project_id','status','jbOnR','isBrowserstackCluster','iooLI','RVKvV','vMduT','TWCZC','projectId','clusterRegion','UeTtW','kLPpT','locations','eWQxh','credentialsPath','crGXU','bzkQX','iam.serviceAccounts.signBlob','XBQVD','aNeVo','Found\x20cluster\x20with\x20name\x20\x27','storage.multipartUploads.listParts','managedby','UriYE','info','browserstack','PqhkO','tEfGA','FFIkY','nILRh','length','IWmke','gcloud\x20auth\x20login\x20--cred-file=','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','\x20--windows-os-version=ltsc2022\x20--region\x20','newRegion','concat','kIkpS','yptpq','jpqfH','OvAku','gcpConfigSet','execSync','storage.buckets.list','Creating\x20GKE\x20Cluster','jLtSq','resourcemanagerClient','QrSZo','https://','uXVjS','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','CsaoS','oajLj','nwSYA','wrwFM','smbaz','yZYuR','ToxCF','sTpqF','vbeHG','1207722DHHWVo','gcp_credentials.json','IuUil','NCxJx','child_process','208028FleAGi','MutZE','/locations/','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.'];a3_0xe1b9=function(){return _0xf7c118;};return a3_0xe1b9();}(function(_0x32176f,_0x157880){const _0xb3b1e3=a3_0x507f,_0x19b456=_0x32176f();while(!![]){try{const _0x5c482d=parseInt(_0xb3b1e3(0x8e))/0x1*(parseInt(_0xb3b1e3(0x95))/0x2)+-parseInt(_0xb3b1e3(0xe2))/0x3+parseInt(_0xb3b1e3(0x142))/0x4+-parseInt(_0xb3b1e3(0x161))/0x5+parseInt(_0xb3b1e3(0x13d))/0x6+parseInt(_0xb3b1e3(0x1a9))/0x7+-parseInt(_0xb3b1e3(0x16b))/0x8;if(_0x5c482d===_0x157880)break;else _0x19b456['push'](_0x19b456['shift']());}catch(_0xc947d5){_0x19b456['push'](_0x19b456['shift']());}}}(a3_0xe1b9,0x29da1));const fs=require('fs'),path=require(a3_0x123ef6(0x1d8)),got=require('got'),util=require(a3_0x123ef6(0x17d)),cp=require(a3_0x123ef6(0x141)),{google}=require(a3_0x123ef6(0x1b2)),compute=require('@google-cloud/compute'),container=require(a3_0x123ef6(0x19f)),{ProjectsClient}=require(a3_0x123ef6(0x156))['v3'],{logger}=require('../config/logger'),{CloudProvider}=require(a3_0x123ef6(0x1af)),{getDirForConfig,getAuthHeader}=require('../utils/utilityMethods'),{deleteRoutingDeps,deleteAgent}=require('../utils/gridComponents'),{inputConfirmation,closeInput}=require(a3_0x123ef6(0x97)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x123ef6(0x159));class GoogleCloudProvider extends CloudProvider{constructor(_0x53743e,_0x2b4c08,_0x1c2299,_0x153826){const _0x468e82=a3_0x123ef6,_0x5ed969={};_0x5ed969[_0x468e82(0x136)]='7|8|1|5|4|3|0|6|2',_0x5ed969[_0x468e82(0x1cc)]=_0x468e82(0x189),_0x5ed969['ywilv']=_0x468e82(0x1f7);const _0x496da8=_0x5ed969,_0x47ccea=_0x496da8[_0x468e82(0x136)][_0x468e82(0x163)]('|');let _0x59ff46=0x0;while(!![]){switch(_0x47ccea[_0x59ff46++]){case'0':this[_0x468e82(0x109)]=null;continue;case'1':this[_0x468e82(0x162)]=null;continue;case'2':this[_0x468e82(0x168)]=_0x496da8['NPjRj'];continue;case'3':this[_0x468e82(0x10f)]=null;continue;case'4':this[_0x468e82(0x164)]=null;continue;case'5':this['resourcemanagerClient']=null;continue;case'6':this[_0x468e82(0x172)]=_0x496da8[_0x468e82(0x1c5)];continue;case'7':super(GCP,_0x53743e,_0x2b4c08,_0x1c2299,_0x153826);continue;case'8':this[_0x468e82(0x181)]=null;continue;}break;}}[a3_0x123ef6(0x1a5)](){const _0x29263b=a3_0x123ef6,_0xb32407={};_0xb32407['LPPBw']=function(_0x2cfb41,_0x446981){return _0x2cfb41===_0x446981;},_0xb32407[_0x29263b(0xa0)]=function(_0x24ce9a,_0x241d39){return _0x24ce9a!==_0x241d39;},_0xb32407[_0x29263b(0xbe)]=_0x29263b(0x1f4),_0xb32407[_0x29263b(0x99)]=_0x29263b(0xac);const _0x35b8c7=_0xb32407;!this[_0x29263b(0x1a6)]()&&(_0x35b8c7[_0x29263b(0xa0)](_0x35b8c7[_0x29263b(0xbe)],_0x35b8c7[_0x29263b(0x99)])?this['setConfig']():_0x35b8c7[_0x29263b(0x100)](_0x414c5f['name'],this['clusterName'])&&_0x39de88[_0x29263b(0xec)](_0x4d6ceb));}async[a3_0x123ef6(0x1a4)](){const _0x597eae=a3_0x123ef6;this[_0x597eae(0x177)](this[_0x597eae(0x18b)]);}[a3_0x123ef6(0x1a6)](){const _0x28dab5=a3_0x123ef6,_0x5ddd19={};_0x5ddd19['CsaoS']=function(_0x118915,_0xc18c61){return _0x118915===_0xc18c61;};const _0x3da015=_0x5ddd19;return _0x3da015[_0x28dab5(0x134)](global_registry[_0x28dab5(0x12a)],!![]);}['setConfig'](){const _0x2e1203=a3_0x123ef6,_0x594fda=this[_0x2e1203(0x10f)],_0x34f363={};_0x34f363[_0x2e1203(0x17e)]=_0x594fda,this['containerClient']=new container['v1']['ClusterManagerClient'](_0x34f363);const _0x35cf9c={};_0x35cf9c[_0x2e1203(0x17e)]=_0x594fda,this[_0x2e1203(0x162)]=new compute['v1']['NetworksClient'](_0x35cf9c);const _0xd830f1={};_0xd830f1[_0x2e1203(0x17e)]=_0x594fda,this[_0x2e1203(0x12f)]=new ProjectsClient(_0xd830f1),this[_0x2e1203(0x164)]=google[_0x2e1203(0x166)]('v1'),global_registry[_0x2e1203(0x12a)]=!![];}async[a3_0x123ef6(0x1e5)](_0x3a8e11,_0x474281){const _0x7cda9e=a3_0x123ef6,_0x21f507={'vtxwj':function(_0x17643c,_0x5844fd){return _0x17643c(_0x5844fd);},'OLvVu':function(_0x4c5cc0){return _0x4c5cc0();},'smbaz':_0x7cda9e(0x13e)},_0x4d6a2c=await _0x21f507['vtxwj'](_0x3a8e11,'Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20');let _0x143f09=await fs['readFileAsync'](_0x4d6a2c);_0x143f09=_0x143f09[_0x7cda9e(0xd9)]();const _0x1ef5aa=_0x21f507[_0x7cda9e(0x1b3)](getDirForConfig),_0x2919c6=path['join'](_0x1ef5aa,_0x21f507[_0x7cda9e(0x138)]);fs[_0x7cda9e(0x1ed)](_0x2919c6,_0x143f09),this[_0x7cda9e(0x10f)]=_0x2919c6;const _0x2e6523={};return _0x2e6523[_0x7cda9e(0x17e)]=_0x2919c6,_0x474281[_0x7cda9e(0x1c3)][GCP]=_0x2e6523,_0x143f09=JSON['parse'](_0x143f09),this['projectId']=_0x143f09[_0x7cda9e(0x101)],_0x474281;}async[a3_0x123ef6(0x187)](_0x4ef410){const _0x598513=a3_0x123ef6;this[_0x598513(0x10f)]=_0x4ef410[this[_0x598513(0xf9)]]['keyFile'];let _0x199eb1=await fs[_0x598513(0xef)](this['credentialsPath']);_0x199eb1=JSON['parse'](_0x199eb1),this['projectId']=_0x199eb1[_0x598513(0x101)];}[a3_0x123ef6(0x150)](_0x1cb052){const _0x5a2482=a3_0x123ef6;return _0x1cb052[_0x5a2482(0x102)]['loadBalancer'][_0x5a2482(0xea)][0x0]['ip'];}async[a3_0x123ef6(0x104)](){const _0x105a39=a3_0x123ef6,_0x1be7ac={};_0x1be7ac[_0x105a39(0x15c)]=function(_0x54f0b1,_0x339c20){return _0x54f0b1!==_0x339c20;},_0x1be7ac[_0x105a39(0xb2)]=function(_0x4e625b,_0x4cb32d){return _0x4e625b===_0x4cb32d;},_0x1be7ac[_0x105a39(0xbb)]=_0x105a39(0x11a),_0x1be7ac[_0x105a39(0x18e)]='iTurC',_0x1be7ac[_0x105a39(0xfc)]=function(_0x3cf5b2,_0xbe2c16){return _0x3cf5b2!==_0xbe2c16;},_0x1be7ac[_0x105a39(0x14f)]=_0x105a39(0xc4),_0x1be7ac[_0x105a39(0x1dc)]=function(_0x44e0f1,_0x161a3d){return _0x44e0f1===_0x161a3d;},_0x1be7ac[_0x105a39(0xc3)]=function(_0x541f2e,_0x13a784){return _0x541f2e!==_0x13a784;},_0x1be7ac[_0x105a39(0xcf)]=_0x105a39(0xd5);const _0x2faf75=_0x1be7ac;try{if(_0x2faf75[_0x105a39(0xb2)](_0x2faf75['SmmEx'],_0x2faf75['SmmEx'])){const _0x42911b=await this[_0x105a39(0x196)]();if(_0x42911b[0x0]?.[_0x105a39(0xb1)]?.['managedby']){if(_0x2faf75[_0x105a39(0xfc)](_0x2faf75[_0x105a39(0x14f)],_0x2faf75['olZJt']))return!![];else{const _0x51de34=_0x42911b[0x0]?.['resourceLabels']?.[_0x105a39(0x117)];return _0x51de34&&_0x2faf75[_0x105a39(0x1dc)](_0x51de34[_0x105a39(0xe3)](),_0x2faf75[_0x105a39(0xbb)]);}}}else return _0x2faf75['vHtNA'](_0x254d1b[_0x105a39(0x10a)],_0xf8e0ff[0x0])&&(_0x97511a['clusterRegion']=_0x443b86[0x0],this[_0x105a39(0xe6)]()),!![];}catch(_0x264623){if(_0x2faf75[_0x105a39(0xc3)](_0x2faf75[_0x105a39(0xcf)],_0x2faf75[_0x105a39(0xcf)])){const _0x463e39=_0x1b4466[0x0]?.['resourceLabels']?.[_0x105a39(0x117)];return _0x463e39&&_0x2faf75[_0x105a39(0xb2)](_0x463e39[_0x105a39(0xe3)](),_0x2faf75[_0x105a39(0xbb)]);}else return![];}return![];}async['isClusterPresent'](){const _0x12f2c1=a3_0x123ef6,_0x3977a7={'doAHO':_0x12f2c1(0x145),'iUmOJ':'Service\x20account\x20already\x20exists,\x20skipping','UeTtW':function(_0x5a6c53,_0x322d1){return _0x5a6c53===_0x322d1;},'nILRh':function(_0x4d6c55,_0x237f35){return _0x4d6c55+_0x237f35;},'cAajk':function(_0x5f47a2,_0x4ebd61){return _0x5f47a2===_0x4ebd61;},'yNWHd':_0x12f2c1(0x1de),'DOaGn':'gcpresources','tEfGA':_0x12f2c1(0x1f3),'xstMP':'utf-8','ulohD':function(_0x5b42e9,_0x1e2237){return _0x5b42e9!==_0x1e2237;},'FFIkY':function(_0x4f16c2,_0x3df01c){return _0x4f16c2===_0x3df01c;},'DtRTc':_0x12f2c1(0x105),'PepTG':_0x12f2c1(0x13c),'JTLdl':_0x12f2c1(0x1b5),'JxjkN':_0x12f2c1(0x113),'WISgW':_0x12f2c1(0x182),'HoUJw':function(_0x521f6e,_0x19dd50){return _0x521f6e!==_0x19dd50;},'RvtxE':'YxJIw','loGOS':'IZYrq','gpAPT':function(_0x332f26,_0x123c42){return _0x332f26>_0x123c42;},'Fwtyp':function(_0x2e9b3b,_0x23ffc7){return _0x2e9b3b===_0x23ffc7;},'bRsGq':_0x12f2c1(0x17a),'RajKv':function(_0x2b7864,_0x3cf608){return _0x2b7864<_0x3cf608;},'EIsEX':'CdCCT','PLaTs':function(_0x43aa74,_0x39ea4b){return _0x43aa74(_0x39ea4b);},'vgLmy':_0x12f2c1(0xae),'oajLj':function(_0x5de989,_0x16d08b){return _0x5de989(_0x16d08b);},'ffCyi':function(_0x729efe,_0x5271ad){return _0x729efe(_0x5271ad);},'wMYmu':function(_0x518b93,_0x329a0e){return _0x518b93<=_0x329a0e;},'MutZE':function(_0x51a4e3,_0x2dcdd1){return _0x51a4e3>_0x2dcdd1;},'QMeXJ':_0x12f2c1(0x185),'wzrOW':function(_0x18b249){return _0x18b249();},'vndEA':function(_0x435626,_0x5d7ce5){return _0x435626-_0x5d7ce5;},'eVlQg':function(_0x4f29e2,_0x483e99){return _0x4f29e2!==_0x483e99;},'anDJy':'zBAAr','hFxTe':_0x12f2c1(0x1d1),'ilzzs':function(_0x2343d8,_0x403f4d){return _0x2343d8-_0x403f4d;}};this['configureIfNotConfigured']();let _0x32b714=await fs[_0x12f2c1(0xef)](path[_0x12f2c1(0x16f)](__dirname,'..',_0x3977a7[_0x12f2c1(0xa8)],_0x3977a7['DOaGn'],_0x3977a7[_0x12f2c1(0x11c)]),_0x3977a7[_0x12f2c1(0x199)]);_0x32b714=JSON['parse'](_0x32b714);let _0xfc93f4=[global_registry['clusterRegion']];_0x3977a7['ulohD'](_0x32b714[global_registry[_0x12f2c1(0x10a)]],undefined)&&(_0x3977a7['FFIkY'](_0x3977a7['DtRTc'],_0x3977a7['DtRTc'])?_0xfc93f4=_0xfc93f4[_0x12f2c1(0x125)](_0x32b714[global_registry['clusterRegion']]):(_0x42aea1[_0x12f2c1(0xcd)](_0x3977a7['doAHO']),_0x339721[_0x12f2c1(0xeb)](0x1)));const _0x3af969=[];for await(let _0x1e4103 of _0xfc93f4){if(_0x3977a7[_0x12f2c1(0x17c)](_0x3977a7[_0x12f2c1(0x1f5)],_0x3977a7[_0x12f2c1(0x1f5)])){const _0x28193b={};_0x28193b[_0x12f2c1(0x152)]='projects/'+this[_0x12f2c1(0x109)]+_0x12f2c1(0x144)+_0x1e4103;const _0x86a354=_0x28193b,_0x12258d=await this[_0x12f2c1(0x181)][_0x12f2c1(0x14d)](_0x86a354);for(const _0x52d1ec of _0x12258d[0x0]['clusters']){if(_0x3977a7[_0x12f2c1(0x17c)](_0x3977a7['JTLdl'],_0x3977a7[_0x12f2c1(0x9d)])){if(_0x3977a7[_0x12f2c1(0x17c)](_0x52d1ec[_0x12f2c1(0xc0)],this[_0x12f2c1(0xfd)])){if(_0x3977a7[_0x12f2c1(0xde)](_0x3977a7[_0x12f2c1(0x1d2)],_0x3977a7[_0x12f2c1(0x1d2)]))return![];else _0x3af969[_0x12f2c1(0xec)](_0x1e4103);}}else{_0x9d21cc[_0x12f2c1(0x119)](_0x3977a7[_0x12f2c1(0xab)]);return;}}}else{if(_0x3977a7[_0x12f2c1(0x10b)](_0x5aa29c?.[_0x12f2c1(0xc0)],_0x12f2c1(0xf3)+this[_0x12f2c1(0x109)]+'/serviceAccounts/'+this['serviceAccountName']+'@'+this[_0x12f2c1(0x109)]+_0x12f2c1(0x1cb)))return!![];}}const _0x570934=_0x3af969['length'];if(_0x3977a7[_0x12f2c1(0x11d)](_0x570934,0x1))return _0x3977a7[_0x12f2c1(0x10b)](_0x3977a7[_0x12f2c1(0xd4)],_0x3977a7['WISgW'])?(_0x3977a7['HoUJw'](global_registry[_0x12f2c1(0x10a)],_0x3af969[0x0])&&(_0x3977a7[_0x12f2c1(0xde)](_0x3977a7['RvtxE'],_0x3977a7['loGOS'])?(global_registry[_0x12f2c1(0x10a)]=_0x3af969[0x0],this[_0x12f2c1(0xe6)]()):this['sendGCPInfoToHST'](this['rws'])),!![]):!![];else{if(_0x3977a7[_0x12f2c1(0x1b8)](_0x570934,0x1)){if(_0x3977a7[_0x12f2c1(0x9a)](_0x3977a7[_0x12f2c1(0xfe)],_0x3977a7['bRsGq'])){console[_0x12f2c1(0x151)](_0x12f2c1(0x115)+this[_0x12f2c1(0xfd)]+_0x12f2c1(0x1d3));for(let _0x4c3fe5=0x0;_0x3977a7[_0x12f2c1(0xc7)](_0x4c3fe5,_0x570934);_0x4c3fe5+=0x1){_0x3977a7[_0x12f2c1(0x10b)](_0x3977a7['EIsEX'],_0x3977a7['EIsEX'])?console[_0x12f2c1(0x151)]('['+_0x3977a7[_0x12f2c1(0x11e)](_0x4c3fe5,0x1)+']\x20'+_0x3af969[_0x4c3fe5]):_0x719058[_0x12f2c1(0x151)]('['+_0x3977a7[_0x12f2c1(0x11e)](_0x439e22,0x1)+']\x20'+_0x2bc72e[_0x5ab735]);}const _0x4be577=await _0x3977a7['PLaTs'](inputConfirmation,_0x3977a7[_0x12f2c1(0x193)]),_0x235f28=_0x3977a7[_0x12f2c1(0x135)](Number,_0x4be577);if(_0x3977a7[_0x12f2c1(0x19a)](isNaN,_0x235f28)||_0x3977a7[_0x12f2c1(0x1c9)](_0x235f28,0x0)||_0x3977a7[_0x12f2c1(0x143)](_0x235f28,_0x570934)){if(_0x3977a7['FFIkY'](_0x3977a7['QMeXJ'],_0x3977a7[_0x12f2c1(0x1bd)]))console[_0x12f2c1(0xcd)](_0x3977a7[_0x12f2c1(0xf0)]),process[_0x12f2c1(0xeb)](0x1);else{const _0x5a1ac7='https://www.googleapis.com/compute/v1/projects/'+this[_0x12f2c1(0x109)]+_0x12f2c1(0x192)+_0x45ec19[_0x12f2c1(0x10a)]+_0x12f2c1(0x175)+_0x210b51[0x0];if(_0x3977a7['cAajk'](_0x5a1ac7,_0x5b36e1))return[!![],_0x3331cf];}}_0x3977a7[_0x12f2c1(0x19b)](closeInput),logger['info']('Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20'+_0x3af969[_0x3977a7['vndEA'](_0x235f28,0x1)]);if(_0x3977a7[_0x12f2c1(0xe8)](global_registry[_0x12f2c1(0x10a)],_0x3af969[_0x3977a7[_0x12f2c1(0xb0)](_0x235f28,0x1)])){if(_0x3977a7['UeTtW'](_0x3977a7[_0x12f2c1(0x1bb)],_0x3977a7['hFxTe']))return _0x3a07f0[_0x12f2c1(0xcd)](_0x12f2c1(0x188)+_0x17eb5a+_0x12f2c1(0xed)+_0x2e319c),[![],[]];else global_registry['clusterRegion']=_0x3af969[_0x3977a7[_0x12f2c1(0x1c0)](_0x235f28,0x1)],this['updateClusterRegion']();}return!![];}else return _0x3977a7[_0x12f2c1(0x17c)](_0x3d83ce[_0x12f2c1(0x12a)],!![]);}}return![];}async['getClusterInfo'](){const _0x554067=a3_0x123ef6,_0x547309=await this[_0x554067(0x181)][_0x554067(0xc6)]({'name':'projects/'+this['projectId']+_0x554067(0x144)+global_registry[_0x554067(0x10a)]+_0x554067(0x1a8)+this[_0x554067(0xfd)]});return _0x547309;}async['getKubeConfigData'](){const _0x4fe17c=a3_0x123ef6,_0x2bf0dc={};_0x2bf0dc[_0x4fe17c(0x158)]='templates',_0x2bf0dc[_0x4fe17c(0x93)]='gcpresources',_0x2bf0dc[_0x4fe17c(0x1dd)]='KubeConfigTemplate.yaml';const _0x22b419=_0x2bf0dc;cp['execSync'](_0x4fe17c(0x9e)),cp[_0x4fe17c(0xf1)](_0x4fe17c(0x121)+this['credentialsPath']);const _0x239ba=await this[_0x4fe17c(0x196)](),_0x14b207=_0x4fe17c(0x153)+this[_0x4fe17c(0x109)]+'_'+global_registry[_0x4fe17c(0x10a)]+'_'+this['clusterName'];let _0x39ba34=await fs[_0x4fe17c(0xef)](path[_0x4fe17c(0x16f)](__dirname,'..',_0x22b419[_0x4fe17c(0x158)],_0x22b419[_0x4fe17c(0x93)],_0x22b419[_0x4fe17c(0x1dd)]));return _0x39ba34=_0x39ba34[_0x4fe17c(0xd9)](),_0x39ba34=_0x39ba34[_0x4fe17c(0x155)](/<CLUSTER_NAME>/g,_0x14b207),_0x39ba34=_0x39ba34[_0x4fe17c(0x155)](/<CLUSTER_URL>/g,_0x4fe17c(0x131)+_0x239ba[0x0]['endpoint']),_0x39ba34=_0x39ba34[_0x4fe17c(0x155)](/<CERTIFICATE_DATA>/g,_0x239ba[0x0][_0x4fe17c(0xa9)]['clusterCaCertificate']),_0x39ba34;}async['checkServiceAccount'](){const _0x321298=a3_0x123ef6,_0x1ef285={};_0x1ef285['EzRIt']=_0x321298(0xe5),_0x1ef285[_0x321298(0x1f2)]=_0x321298(0x1a2),_0x1ef285['tEzWu']=function(_0x34044c,_0x4bc2a3){return _0x34044c!==_0x4bc2a3;},_0x1ef285[_0x321298(0x18a)]=_0x321298(0x146),_0x1ef285['vMduT']=function(_0x368c64,_0x337368){return _0x368c64===_0x337368;},_0x1ef285[_0x321298(0xd8)]=_0x321298(0xf7);const _0xf4c3cc=_0x1ef285,_0x9aa63c={};_0x9aa63c[_0x321298(0x98)]=[_0xf4c3cc['TdWQT']],_0x9aa63c[_0x321298(0x17e)]=this['credentialsPath'];const _0x1d51bf=await google[_0x321298(0x1cd)][_0x321298(0x184)](_0x9aa63c),_0x312eb9=await this[_0x321298(0x164)]['projects'][_0x321298(0x1c4)]['list']({'name':_0x321298(0xf3)+this[_0x321298(0x109)],'auth':_0x1d51bf});for(const _0x3a3a52 of _0x312eb9?.[_0x321298(0x195)]?.[_0x321298(0x14a)]){if(_0xf4c3cc[_0x321298(0x14e)](_0xf4c3cc[_0x321298(0x18a)],_0xf4c3cc[_0x321298(0x18a)]))_0x471620[_0x321298(0x119)](_0xf4c3cc[_0x321298(0x15b)]);else{if(_0xf4c3cc['vMduT'](_0x3a3a52?.['name'],_0x321298(0xf3)+this['projectId']+_0x321298(0x1d7)+this[_0x321298(0x168)]+'@'+this[_0x321298(0x109)]+'.iam.gserviceaccount.com')){if(_0xf4c3cc[_0x321298(0x107)](_0xf4c3cc['DUWWy'],_0xf4c3cc[_0x321298(0xd8)]))return!![];else _0xafb068[_0x321298(0x10a)]=_0x468e38[0x0],this['updateClusterRegion']();}}}return![];}async[a3_0x123ef6(0x90)](){const _0x4c168b=a3_0x123ef6,_0xfb4aff={};_0xfb4aff[_0x4c168b(0x15e)]=function(_0x1c087d,_0x5c6a91){return _0x1c087d===_0x5c6a91;},_0xfb4aff[_0x4c168b(0x92)]=_0x4c168b(0x16a),_0xfb4aff['Hdten']='Service\x20account\x20already\x20exists,\x20skipping',_0xfb4aff['DwiLT']='Creating\x20service\x20account',_0xfb4aff['GBhNl']=_0x4c168b(0x1a2),_0xfb4aff['uADsg']=_0x4c168b(0x112),_0xfb4aff[_0x4c168b(0x160)]=_0x4c168b(0x1f9),_0xfb4aff[_0x4c168b(0x1e7)]=_0x4c168b(0xba),_0xfb4aff[_0x4c168b(0xd2)]=_0x4c168b(0xaa),_0xfb4aff[_0x4c168b(0x191)]='storage.buckets.deleteTagBinding',_0xfb4aff[_0x4c168b(0xd3)]='storage.buckets.get',_0xfb4aff['AmVWY']='storage.buckets.getIamPolicy',_0xfb4aff['yptpq']='storage.buckets.getObjectInsights',_0xfb4aff[_0x4c168b(0xdc)]=_0x4c168b(0x12c),_0xfb4aff[_0x4c168b(0x1ae)]='storage.buckets.listEffectiveTags',_0xfb4aff[_0x4c168b(0xf6)]=_0x4c168b(0x1b6),_0xfb4aff[_0x4c168b(0x183)]=_0x4c168b(0xca),_0xfb4aff[_0x4c168b(0x14b)]=_0x4c168b(0xa3),_0xfb4aff[_0x4c168b(0x1ce)]='storage.multipartUploads.abort',_0xfb4aff[_0x4c168b(0x167)]=_0x4c168b(0x1e3),_0xfb4aff['seTXn']=_0x4c168b(0xad),_0xfb4aff[_0x4c168b(0x13a)]=_0x4c168b(0x116),_0xfb4aff['mXtfA']='storage.objects.create',_0xfb4aff[_0x4c168b(0x106)]='storage.objects.delete',_0xfb4aff[_0x4c168b(0x19c)]=_0x4c168b(0xd0),_0xfb4aff[_0x4c168b(0x15d)]=_0x4c168b(0xcc),_0xfb4aff[_0x4c168b(0x1c1)]=_0x4c168b(0x1c8),_0xfb4aff[_0x4c168b(0x130)]=_0x4c168b(0x16d),_0xfb4aff[_0x4c168b(0x15f)]='storage.objects.update',_0xfb4aff[_0x4c168b(0xce)]='Turboscale\x20Custom\x20Role',_0xfb4aff[_0x4c168b(0x137)]=_0x4c168b(0x133);const _0x5153ae=_0xfb4aff,_0x34179d=await this[_0x4c168b(0x1ca)]();if(_0x34179d){if(_0x5153ae[_0x4c168b(0x15e)](_0x5153ae[_0x4c168b(0x92)],_0x5153ae['fOjpF'])){logger[_0x4c168b(0x119)](_0x5153ae['Hdten']);return;}else _0x25d533[_0x4c168b(0x12b)](_0x4c168b(0x170)+this[_0x4c168b(0xfd)]+_0x4c168b(0x123)+_0x4d488c[_0x4c168b(0x10a)]+'\x20--quiet\x20--user-output-enabled=false');}logger[_0x4c168b(0x119)](_0x5153ae['DwiLT']);const _0x35223f={};_0x35223f['scopes']=[_0x5153ae[_0x4c168b(0x1b4)]],_0x35223f[_0x4c168b(0x17e)]=this[_0x4c168b(0x10f)];const _0x238b3c=await google[_0x4c168b(0x1cd)][_0x4c168b(0x184)](_0x35223f),_0x300f8c={};_0x300f8c[_0x4c168b(0xd1)]=[_0x5153ae[_0x4c168b(0x176)],_0x5153ae['gAEDP'],_0x5153ae['Dwppv'],_0x5153ae[_0x4c168b(0xd2)],_0x5153ae[_0x4c168b(0x191)],_0x5153ae['cWWpF'],_0x5153ae['AmVWY'],_0x5153ae[_0x4c168b(0x127)],_0x5153ae[_0x4c168b(0xdc)],_0x5153ae[_0x4c168b(0x1ae)],_0x5153ae[_0x4c168b(0xf6)],_0x5153ae[_0x4c168b(0x183)],_0x5153ae[_0x4c168b(0x14b)],_0x5153ae[_0x4c168b(0x1ce)],_0x5153ae[_0x4c168b(0x167)],_0x5153ae[_0x4c168b(0x1d4)],_0x5153ae[_0x4c168b(0x13a)],_0x5153ae[_0x4c168b(0xa4)],_0x5153ae['RVKvV'],_0x5153ae[_0x4c168b(0x19c)],_0x5153ae[_0x4c168b(0x15d)],_0x5153ae[_0x4c168b(0x1c1)],_0x5153ae[_0x4c168b(0x130)],_0x5153ae[_0x4c168b(0x15f)]],_0x300f8c['title']=_0x5153ae[_0x4c168b(0xce)],await this['iamClient'][_0x4c168b(0xdd)][_0x4c168b(0x18c)]['create']({'parent':_0x4c168b(0xf3)+this[_0x4c168b(0x109)],'requestBody':{'role':_0x300f8c,'roleId':this[_0x4c168b(0x172)]},'auth':_0x238b3c});const _0x5b7d85={};_0x5b7d85['name']=_0x4c168b(0xf3)+this[_0x4c168b(0x109)],_0x5b7d85[_0x4c168b(0x1eb)]={},_0x5b7d85[_0x4c168b(0x1cd)]=_0x238b3c,_0x5b7d85[_0x4c168b(0x1eb)][_0x4c168b(0x1ad)]=this['serviceAccountName'];const _0x595723=_0x5b7d85;await this[_0x4c168b(0x164)][_0x4c168b(0x1b0)][_0x4c168b(0x1c4)][_0x4c168b(0x178)](_0x595723);let _0x10fcd0=await this[_0x4c168b(0x12f)]['getIamPolicy']({'resource':_0x4c168b(0xf3)+this['projectId']});_0x10fcd0=_0x10fcd0[0x0][_0x4c168b(0xe4)];const _0x455a27={};_0x455a27[_0x4c168b(0xdf)]=_0x4c168b(0xf3)+this[_0x4c168b(0x109)]+_0x4c168b(0x173)+this[_0x4c168b(0x172)],_0x455a27[_0x4c168b(0x14c)]=[_0x4c168b(0xf5)+this['serviceAccountName']+'@'+this['projectId']+_0x4c168b(0x1cb)],_0x10fcd0['push'](_0x455a27);const _0x409120={};_0x409120[_0x4c168b(0xe4)]=_0x10fcd0,await this[_0x4c168b(0x12f)][_0x4c168b(0x1f1)]({'resource':_0x4c168b(0xf3)+this['projectId'],'policy':_0x409120}),logger[_0x4c168b(0x119)](_0x5153ae[_0x4c168b(0x137)]);}async['setupNewCluster'](_0x4d88ce=a3_0x123ef6(0xc5),_0x90eeb7=[a3_0x123ef6(0xc5)]){const _0x56da32=a3_0x123ef6,_0x4237ba={};_0x4237ba[_0x56da32(0x154)]=_0x56da32(0x8f),_0x4237ba[_0x56da32(0x9b)]=_0x56da32(0xc2),_0x4237ba[_0x56da32(0xfb)]=_0x56da32(0x122);const _0x29c5d4=_0x4237ba,_0x2841bb=_0x29c5d4[_0x56da32(0x154)][_0x56da32(0x163)]('|');let _0x103edd=0x0;while(!![]){switch(_0x2841bb[_0x103edd++]){case'0':await this[_0x56da32(0x190)](_0x4d88ce,_0x90eeb7);continue;case'1':await this['updateWindowsNodeGroup']();continue;case'2':return!![];case'3':const _0x3adcb9={};_0x3adcb9[_0x56da32(0x16e)]=WS_EVENTS[_0x56da32(0xf4)],_0x3adcb9[_0x56da32(0xc1)]=_0x29c5d4[_0x56da32(0x9b)],this['webSocketUtils'][_0x56da32(0x1d9)](this[_0x56da32(0x18b)],_0x3adcb9);continue;case'4':logger[_0x56da32(0x119)](_0x29c5d4[_0x56da32(0xfb)]);continue;case'5':await this[_0x56da32(0x90)]();continue;}break;}}async[a3_0x123ef6(0x190)](_0x558735=a3_0x123ef6(0xc5),_0x57358d=[a3_0x123ef6(0xc5)]){const _0x19ffa4=a3_0x123ef6,_0x39dae1={};_0x39dae1[_0x19ffa4(0x139)]=function(_0x944334,_0x2f5bab){return _0x944334!==_0x2f5bab;},_0x39dae1['kaTkf']=_0x19ffa4(0x1a3),_0x39dae1[_0x19ffa4(0x197)]=_0x19ffa4(0x18d),_0x39dae1[_0x19ffa4(0xb7)]=_0x19ffa4(0x12d),_0x39dae1[_0x19ffa4(0x180)]=_0x19ffa4(0x1de),_0x39dae1['CeBJH']=_0x19ffa4(0x1d6),_0x39dae1['DvzOi']=_0x19ffa4(0xe0),_0x39dae1[_0x19ffa4(0x114)]=_0x19ffa4(0xa1),_0x39dae1[_0x19ffa4(0x1ee)]=_0x19ffa4(0x1f3),_0x39dae1[_0x19ffa4(0xa7)]=function(_0x558265,_0x407c3f){return _0x558265*_0x407c3f;},_0x39dae1[_0x19ffa4(0xa6)]=function(_0x51ef43,_0x42a1f6){return _0x51ef43*_0x42a1f6;},_0x39dae1[_0x19ffa4(0xb9)]=function(_0x1b22b0,_0x12dfb4){return _0x1b22b0===_0x12dfb4;},_0x39dae1[_0x19ffa4(0x149)]=_0x19ffa4(0xbd),_0x39dae1[_0x19ffa4(0x126)]=_0x19ffa4(0x120),_0x39dae1[_0x19ffa4(0x129)]=function(_0x4af00a,_0xac6b5c){return _0x4af00a!==_0xac6b5c;},_0x39dae1['mAQzp']=_0x19ffa4(0xdb),_0x39dae1[_0x19ffa4(0x1e4)]='Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20',_0x39dae1['yvKDy']=function(_0x129a62,_0x2ad21b){return _0x129a62===_0x2ad21b;},_0x39dae1[_0x19ffa4(0x174)]=_0x19ffa4(0x1da),_0x39dae1[_0x19ffa4(0x1bc)]=_0x19ffa4(0x1e6),_0x39dae1[_0x19ffa4(0x10e)]=_0x19ffa4(0xe5);const _0x4e7284=_0x39dae1;try{if(_0x4e7284[_0x19ffa4(0x139)](_0x4e7284[_0x19ffa4(0x9f)],_0x4e7284[_0x19ffa4(0x197)])){logger[_0x19ffa4(0x119)](_0x4e7284[_0x19ffa4(0xb7)]);let _0xf685ad=await fs['readFileAsync'](path[_0x19ffa4(0x16f)](__dirname,'..',_0x4e7284[_0x19ffa4(0x180)],_0x4e7284['CeBJH'],_0x4e7284[_0x19ffa4(0x1d0)]),_0x4e7284['aNeVo']);_0xf685ad=JSON[_0x19ffa4(0x16c)](_0xf685ad);let _0x3d86ee=await fs['readFileAsync'](path[_0x19ffa4(0x16f)](__dirname,'..',_0x4e7284[_0x19ffa4(0x180)],_0x4e7284[_0x19ffa4(0xff)],_0x4e7284[_0x19ffa4(0x1ee)]),_0x4e7284[_0x19ffa4(0x114)]);_0x3d86ee=JSON['parse'](_0x3d86ee),_0xf685ad[_0x19ffa4(0xc0)]=this['clusterName'],_0xf685ad[_0x19ffa4(0x17b)][0x0][_0x19ffa4(0x1d5)][_0x19ffa4(0xc8)]=global_registry[_0x19ffa4(0xd7)],_0xf685ad[_0x19ffa4(0x17b)][0x1]['config'][_0x19ffa4(0xc8)]=global_registry[_0x19ffa4(0xd7)],_0xf685ad[_0x19ffa4(0x17b)][0x0][_0x19ffa4(0x1d5)][_0x19ffa4(0xa2)]=this[_0x19ffa4(0x168)]+'@'+this['projectId']+_0x19ffa4(0x1cb),_0xf685ad['nodePools'][0x1][_0x19ffa4(0x1d5)][_0x19ffa4(0xa2)]=this[_0x19ffa4(0x168)]+'@'+this[_0x19ffa4(0x109)]+_0x19ffa4(0x1cb),_0xf685ad['nodePools'][0x0]['autoscaling']['minNodeCount']=global_registry['minNodes'],_0xf685ad[_0x19ffa4(0x17b)][0x1][_0x19ffa4(0x18f)][_0x19ffa4(0xa5)]=0x0,_0xf685ad['nodePools'][0x0]['autoscaling'][_0x19ffa4(0xe9)]=global_registry[_0x19ffa4(0x1a0)],_0xf685ad[_0x19ffa4(0x17b)][0x1][_0x19ffa4(0x18f)]['maxNodeCount']=global_registry['maxNodes'],_0xf685ad[_0x19ffa4(0x1e1)]=global_registry[_0x19ffa4(0x10a)],_0xf685ad[_0x19ffa4(0x10d)]=[_0x3d86ee[global_registry[_0x19ffa4(0x10a)]][0x0]],_0xf685ad[_0x19ffa4(0x15a)]=_0x19ffa4(0xf3)+this[_0x19ffa4(0x109)]+_0x19ffa4(0x19e)+_0x558735,_0xf685ad['subnetwork']='projects/'+this[_0x19ffa4(0x109)]+_0x19ffa4(0x192)+global_registry[_0x19ffa4(0x10a)]+_0x19ffa4(0x175)+_0x57358d[0x0];const _0x371c98=await this[_0x19ffa4(0x181)][_0x19ffa4(0x190)]({'cluster':_0xf685ad,'parent':'projects/'+this[_0x19ffa4(0x109)]+_0x19ffa4(0x144)+global_registry[_0x19ffa4(0x10a)]});await this[_0x19ffa4(0x147)][_0x19ffa4(0x94)](_0x4e7284[_0x19ffa4(0xa7)](_0x4e7284[_0x19ffa4(0xa6)](0x7,0x3c),0x3e8));}else return!![];}catch(_0x3fd644){if(_0x4e7284[_0x19ffa4(0xb9)](_0x4e7284[_0x19ffa4(0x149)],_0x4e7284['kIkpS']))_0x944e2e=_0x4047e4[_0x19ffa4(0x125)](_0x4e14ca[_0x536141[_0x19ffa4(0x10a)]]);else{const _0x8ecd29=await this[_0x19ffa4(0x157)]();if(_0x8ecd29){if(_0x4e7284[_0x19ffa4(0x129)](_0x4e7284[_0x19ffa4(0xd6)],_0x4e7284[_0x19ffa4(0xd6)]))return[!![],_0x1047a0];else logger['info'](_0x4e7284[_0x19ffa4(0x1e4)],_0x3fd644[_0x19ffa4(0x165)]),await this[_0x19ffa4(0x1f6)]();}else _0x4e7284[_0x19ffa4(0xf2)](_0x4e7284[_0x19ffa4(0x174)],_0x4e7284[_0x19ffa4(0x1bc)])?!this[_0x19ffa4(0x1a6)]()&&this['setConfig']():logger[_0x19ffa4(0x119)](_0x4e7284[_0x19ffa4(0x10e)]);throw _0x3fd644;}}}async[a3_0x123ef6(0x1ba)](){const _0x344742=a3_0x123ef6;cp[_0x344742(0x12b)](_0x344742(0x170)+this[_0x344742(0xfd)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+global_registry['clusterRegion']+_0x344742(0x19d));}async[a3_0x123ef6(0x1f6)](_0x266e98,_0x23d355){const _0x40287b=a3_0x123ef6,_0x13cd00={'CXtEu':function(_0x50d626,_0x57314d){return _0x50d626===_0x57314d;},'gEXUU':_0x40287b(0x1e9),'NCxJx':_0x40287b(0x17f),'uXVjS':function(_0x1ec83d,_0x14e0c7){return _0x1ec83d(_0x14e0c7);},'fITUN':function(_0xcff220,_0x16a51d){return _0xcff220(_0x16a51d);},'yOgTL':_0x40287b(0x91),'UdePS':function(_0x1d6837,_0x130d44){return _0x1d6837===_0x130d44;},'jpqfH':_0x40287b(0x1e8),'jbOnR':function(_0x1d0f31,_0x11b524){return _0x1d0f31===_0x11b524;},'wFqal':_0x40287b(0x1a7),'QmAQu':'gLhvv','SYQrE':_0x40287b(0x1ec),'SgHby':_0x40287b(0x148),'qmWRP':_0x40287b(0x1aa)};try{if(_0x13cd00[_0x40287b(0xb3)](_0x13cd00['gEXUU'],_0x13cd00[_0x40287b(0x140)]))return![];else{await _0x13cd00[_0x40287b(0x132)](deleteAgent,_0x266e98),await _0x13cd00[_0x40287b(0x1ab)](deleteRoutingDeps,_0x266e98),logger['info'](_0x40287b(0x1e2)+this[_0x40287b(0xfd)]);const _0x4206e6=await this[_0x40287b(0x181)]['deleteCluster']({'name':_0x40287b(0xf3)+this[_0x40287b(0x109)]+_0x40287b(0x144)+global_registry['clusterRegion']+_0x40287b(0x1a8)+this['clusterName']});if(_0x13cd00[_0x40287b(0xb3)](_0x4206e6[0x0]?.[_0x40287b(0x102)],_0x13cd00[_0x40287b(0x1bf)])||_0x13cd00[_0x40287b(0x194)](_0x4206e6[0x0]?.['status'],_0x13cd00[_0x40287b(0x128)])){if(_0x13cd00[_0x40287b(0x103)](_0x13cd00[_0x40287b(0xb4)],_0x13cd00[_0x40287b(0xfa)]))_0x1fbf88[_0x40287b(0xcb)][_0x40287b(0xec)](_0x1fd2d6);else return!![];}logger['info']('Cluster\x20deletion\x20completed');}}catch(_0x43dd48){if(_0x13cd00[_0x40287b(0x194)](_0x13cd00[_0x40287b(0xc9)],_0x13cd00[_0x40287b(0x1be)]))this[_0x40287b(0x1b7)]();else{logger[_0x40287b(0x119)](_0x13cd00[_0x40287b(0x1ac)]);throw _0x43dd48;}}}async[a3_0x123ef6(0xbc)](_0x3f01b0){const _0x4cfe15=a3_0x123ef6,_0x3c2f74={};_0x3c2f74[_0x4cfe15(0x186)]=_0x4cfe15(0x1aa),_0x3c2f74[_0x4cfe15(0x110)]=function(_0x45cefd,_0xbeb114){return _0x45cefd===_0xbeb114;},_0x3c2f74[_0x4cfe15(0xe1)]=_0x4cfe15(0x108),_0x3c2f74[_0x4cfe15(0xbf)]=function(_0x45d30f,_0x2f5701){return _0x45d30f>_0x2f5701;},_0x3c2f74[_0x4cfe15(0xee)]=function(_0x29f5b0,_0x30cfb3){return _0x29f5b0!==_0x30cfb3;},_0x3c2f74['VvuSv']=_0x4cfe15(0x1c7),_0x3c2f74[_0x4cfe15(0x198)]=_0x4cfe15(0x13b),_0x3c2f74[_0x4cfe15(0x1f0)]=function(_0x1e1137,_0xa147fc){return _0x1e1137===_0xa147fc;},_0x3c2f74['qjcqy']=_0x4cfe15(0x1ea);const _0x52b534=_0x3c2f74;try{if(_0x52b534[_0x4cfe15(0x110)](_0x52b534[_0x4cfe15(0xe1)],_0x52b534['bWKPu'])){const _0x1a3f12={};_0x1a3f12[_0x4cfe15(0x1db)]=projectId,_0x1a3f12[_0x4cfe15(0x15a)]=_0x3f01b0;const _0x5dc398=await networkClient[_0x4cfe15(0x1b9)](_0x1a3f12);if(_0x52b534[_0x4cfe15(0xbf)](_0x5dc398[_0x4cfe15(0x11f)],0x0)&&_0x52b534[_0x4cfe15(0x110)](_0x5dc398[0x0][_0x4cfe15(0xc0)],_0x3f01b0)){if(_0x52b534['gPHrv'](_0x52b534['VvuSv'],_0x52b534[_0x4cfe15(0x198)]))return!![];else{_0x8d62df['info'](_0x52b534[_0x4cfe15(0x186)]);throw _0x502ca6;}}}else _0x3da24c[_0x4cfe15(0xec)](_0x2aefbd);}catch(_0x55c1f9){if(_0x52b534[_0x4cfe15(0x1f0)](_0x52b534['qjcqy'],_0x52b534[_0x4cfe15(0xf8)]))return![];else{const _0x3ed8e6=this[_0x4cfe15(0x10f)],_0x5385f0={};_0x5385f0[_0x4cfe15(0x17e)]=_0x3ed8e6,this[_0x4cfe15(0x181)]=new _0x5a063d['v1'][(_0x4cfe15(0x169))](_0x5385f0);const _0xec9eeb={};_0xec9eeb['keyFile']=_0x3ed8e6,this[_0x4cfe15(0x162)]=new _0x2e7da8['v1'][(_0x4cfe15(0xb8))](_0xec9eeb);const _0xcd8b5a={};_0xcd8b5a[_0x4cfe15(0x17e)]=_0x3ed8e6,this[_0x4cfe15(0x12f)]=new _0x42a4b4(_0xcd8b5a),this['iamClient']=_0x5958bf['iam']('v1'),_0x14f9e4[_0x4cfe15(0x12a)]=!![];}}return![];}async[a3_0x123ef6(0xaf)](_0x653372,_0x4f6dd2){const _0xb07ba5=a3_0x123ef6,_0x5e52c0={};_0x5e52c0[_0xb07ba5(0x11b)]=function(_0x2da983,_0x2641a7){return _0x2da983-_0x2641a7;},_0x5e52c0['TOnct']=function(_0x4551a7,_0x5a45a5){return _0x4551a7===_0x5a45a5;},_0x5e52c0[_0xb07ba5(0x10c)]='IeeYB',_0x5e52c0[_0xb07ba5(0x1a1)]=_0xb07ba5(0x118),_0x5e52c0[_0xb07ba5(0x1f8)]=function(_0x1f490d,_0x171152){return _0x1f490d===_0x171152;},_0x5e52c0[_0xb07ba5(0x179)]=function(_0x41e7a8,_0x4b8316){return _0x41e7a8!==_0x4b8316;},_0x5e52c0[_0xb07ba5(0x13f)]=_0xb07ba5(0x1df);const _0x2df98c=_0x5e52c0;try{const _0x54df43={};_0x54df43[_0xb07ba5(0x1db)]=projectId,_0x54df43[_0xb07ba5(0x15a)]=_0x4f6dd2;const _0x5761b2=await networkClient[_0xb07ba5(0x1b9)](_0x54df43);for(const _0x10484e of _0x5761b2[0x0]['subnetworks']){if(_0x2df98c[_0xb07ba5(0xb6)](_0x2df98c[_0xb07ba5(0x10c)],_0x2df98c['VeNns']))return _0x3f5736['status'][_0xb07ba5(0xe7)]['ingress'][0x0]['ip'];else{const _0x1aa852='https://www.googleapis.com/compute/v1/projects/'+this[_0xb07ba5(0x109)]+'/regions/'+global_registry[_0xb07ba5(0x10a)]+_0xb07ba5(0x175)+_0x653372[0x0];if(_0x2df98c[_0xb07ba5(0x1f8)](_0x1aa852,_0x10484e)){if(_0x2df98c[_0xb07ba5(0x179)](_0x2df98c[_0xb07ba5(0x13f)],_0x2df98c['IuUil']))_0x12d7de[_0xb07ba5(0x10a)]=_0x1053da[_0x2df98c[_0xb07ba5(0x11b)](_0x2d5388,0x1)],this[_0xb07ba5(0xe6)]();else return[!![],_0x653372];}}}}catch(_0x1b4bf6){return logger['error'](_0xb07ba5(0x188)+_0x653372+_0xb07ba5(0xed)+_0x1b4bf6),[![],[]];}return[![],[]];}async[a3_0x123ef6(0x177)](){const _0x32d239=a3_0x123ef6,_0x2d0ebe=await this[_0x32d239(0x162)][_0x32d239(0x1ef)]({'project':this['projectId']}),_0x16ee8c={};_0x16ee8c[_0x32d239(0x1cf)]=global_registry[_0x32d239(0x1c6)],_0x16ee8c['accessKey']=global_registry['bstackAccesskey'],_0x16ee8c[_0x32d239(0x1c3)]=GCP,_0x16ee8c['vpcInfo']=[];const _0x52ecc0=_0x16ee8c;for(const _0x3f2ec5 of _0x2d0ebe){_0x52ecc0[_0x32d239(0xcb)][_0x32d239(0xec)](_0x3f2ec5);}const _0x285961={};_0x285961[_0x32d239(0x16e)]=WS_EVENTS[_0x32d239(0x9c)],_0x285961[_0x32d239(0xc1)]=_0x52ecc0,this[_0x32d239(0x147)][_0x32d239(0x1d9)](this[_0x32d239(0x18b)],_0x285961);}async['updateClusterRegion'](){const _0x3063a2=a3_0x123ef6,_0x2d1871={'JAapr':function(_0x1e1c48,_0x22176c,_0x2cf610){return _0x1e1c48(_0x22176c,_0x2cf610);},'jLtSq':_0x3063a2(0x171),'bzkQX':'json','PJMpt':function(_0x187245,_0x3b495c,_0x579ee9){return _0x187245(_0x3b495c,_0x579ee9);}},_0x133208=_0x3063a2(0x131)+AG_API_URL+_0x3063a2(0x1e0),_0x4e4c22={};_0x4e4c22[_0x3063a2(0x1b1)]=global_registry[_0x3063a2(0xda)];const _0x2f3b24={};_0x2f3b24[_0x3063a2(0x124)]=global_registry['clusterRegion'];const _0x30f8fd={'searchParams':_0x4e4c22,'json':_0x2f3b24,'headers':_0x2d1871['JAapr'](getAuthHeader,global_registry[_0x3063a2(0x1c6)],global_registry[_0x3063a2(0xb5)]),'method':_0x2d1871[_0x3063a2(0x12e)],'responseType':_0x2d1871[_0x3063a2(0x111)],'throwHttpErrors':![]},_0x327a3e=await _0x2d1871['PJMpt'](got,_0x133208,_0x30f8fd);}}function a3_0x507f(_0x3c9e86,_0x210b9d){const _0xe1b938=a3_0xe1b9();return a3_0x507f=function(_0x507f3c,_0x1c8917){_0x507f3c=_0x507f3c-0x8e;let _0x4989d5=_0xe1b938[_0x507f3c];return _0x4989d5;},a3_0x507f(_0x3c9e86,_0x210b9d);}const a3_0x1c4341={};a3_0x1c4341[a3_0x123ef6(0x1c2)]=GoogleCloudProvider,module[a3_0x123ef6(0x96)]=a3_0x1c4341;
1
+ function a3_0x36a3(_0x1a410c,_0x413c5a){const _0x617d47=a3_0x617d();return a3_0x36a3=function(_0x36a351,_0xd70142){_0x36a351=_0x36a351-0x81;let _0x406770=_0x617d47[_0x36a351];return _0x406770;},a3_0x36a3(_0x1a410c,_0x413c5a);}function a3_0x617d(){const _0x5eb5fb=['FQpTP','/global/networks/','storage.multipartUploads.abort','HuWai','/roles/','https://www.googleapis.com/compute/v1/projects/','bstackAccesskey','EzJXu','clusterName','DRVmm','https://www.googleapis.com/auth/cloud-platform','list','profileId','default','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','mveiy','fWzKn','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','storage.objects.update','sQoRV','WAJKL','storage.buckets.list','ANCro','TzbiE','isBrowserstackCluster','customRoleName','ACjIY','hympb','get','cloudProviderName','vevLJ','project','storage.buckets.listTagBindings','browserstack','SUKAj','VoDik','message','mSoVF','resourcemanagerClient','error','nwWiL','VAeuI','akXIb','cBvjH','roles','Pcixt','RaphE','templates','xvgOU','fcjts','yuRQK','vROzm','data','info','CXOaM','ZdUfC','peDaV','PRGEx','URSUl','storage.buckets.setIamPolicy','vPrzk','maxNodes','setupServiceAccount','vvPRL','Ripfh','VcDdF','Cluster\x20creation\x20failed','auth','uUJRL','RQTLm','pGBBV','7VvEEYu','storage.buckets.deleteTagBinding','subnetworks','0|4|7|2|5|8|3|1|6','rws','getKubeConfigData','yQEkG','getUserInput','zQSOP','Deleting\x20the\x20cluster\x20','DyBxb','EZzmb','PUT','regionmap.json','GKE\x20Cluster\x20deletion\x20failed','accessKey','7093272gRNJMZ','storage.multipartUploads.create','containerClient','inDkc','QkrbK','credentialsPath','serviceAccounts','MwvpE','gimdb','naHLs','/regions/','delay','parse','PnZmy','/packages/cli/update-cluster-region','storage.objects.setIamPolicy','Creating\x20GKE\x20Cluster','OoMfh','gridProfileId','resourceLabels','fzsmv','RRQKg','WRRuX','Creating\x20service\x20account','getGridHostname','exit','gkecluster.json','aZszm','eKBJr','../utils/gridComponents','eNKnI','join','OUeCY','ktXDU','./CloudProvider','storage.buckets.update','FPgSo','aCVtx','giaEk','../utils/userInput','qzrwh','mdssK','jgvZe','accounts','RESOURCES','Pcaid','got','@google-cloud/resource-manager','bSlfx','updateWindowsNodeGroup','json','jwrpC','storage.multipartUploads.listParts','networkClient','Turboscale\x20Custom\x20Role','gVQSn','isVPCPresent','scopes','16GBnyjs','path','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','EgqwL','ChuKH','HbMkt','serviceAccountName','readFileAsync','lZpla','utf-8','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','autoscaling','wrFOH','title','amwgu','listClusters','BCXsF','webSocketUtils','PzVgY','gcloud\x20auth\x20login\x20--cred-file=','minNodeCount','AVkGP','loadBalancer','bCbDM','https://','OcQMu','clusterRegion','sendGCPInfoToHST','role','tkEnN','/locations/','/serviceAccounts/','log','dyyZz','subnetwork','replace','VkpgE','clusterCaCertificate','kIgZn','opFqP','ClusterManagerClient','projectId','ZmmST','projects','storage.buckets.getIamPolicy','ccFKs','configureIfNotConfigured','CUhCK','hMgTV','storage.multipartUploads.list','concat','storage.buckets.listEffectiveTags','location','split','requestBody','storage.objects.get','OnMAV','OwloM','storage.objects.list','rRmne','projects/','create','CDbOa','ircZe','getCluster','kUsCK','dwiOr','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','iamClient','gepBA','setConfig','NWmMv','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','lBqtY','pEQoJ','.\x20Error:\x20','tjNzr','iam','OGxqT','UYAtV','aDyKt','exec','type','createCluster','@google-cloud/container','SdpSu','aUQFI','cloudProvider','bstackUsername','ZLOWZ','nVMmA','toLowerCase','XqjNM','ZSeDp','sendResourceDataToHST','exports','/subnetworks/','storage.buckets.getObjectInsights','dstpS','fetchLocalCreds','uqpKa','setIamPolicy','qJHaa','WlRrK','maxNodeCount','HsodL','xIVwo','nodePools','voAKa','BmfKI','AjHrY','yWYXg','deleteCluster','name','RrvVO','gke_','qfGzY','TeofC','\x20--windows-os-version=ltsc2022\x20--region\x20','turboscale-service-account','DNDjQ','WOjZI','lNawu','../utils/utilityMethods','instanceType','UeGnw','RUNNING','EcRwH','RbtZY','config','2439918ykIIWo','pfnLj','nueKh','RArvj','NetworksClient','serviceAccount','oolxH','mMHLz','storage.buckets.create','xbVHz','isSubnetsValid','xYMNc','status','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','jyrwm','checkServiceAccount','xCYzn','storage.objects.create','util','../config/constants','isConfigured','MGcbl','project_id','push','ZjaUR','tAaNA','8701980IciIDg','keyFile','execSync','WpwiC','fkfWP','bEBtf','members','DIOrH','getIamPolicy','BtWZK','1558Vltvbt','IHnwc','network','mMvBv','toString','ZuApH','\x20--quiet\x20--user-output-enabled=false','CQNJM','723892EAkKLB','masterAuth','gMgFW','Service\x20account\x20already\x20exists,\x20skipping','pLdSF','parent','/clusters/','KFXqg','yeGnJ','KlroI','YZyqh','updateClusterRegion','length','xNxAQ','qrukN','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','UhTNH','gcpresources','vpcInfo','serviceAccount:','3694476eBuhZx','bKrWY','storage.buckets.createTagBinding','gcp_credentials.json','aTfbb','cjwgv','1947365ieopjh','GoogleCloudProvider','GqeFS','sendEventToBackend','rArjz','bindings','PWsfq','KHcQx','UQQZZ','jaJHn','nKsyZ','cARWl','machineType','.iam.gserviceaccount.com','gcpConfigSet','managedby','minNodes','YJztK','isClusterPresent'];a3_0x617d=function(){return _0x5eb5fb;};return a3_0x617d();}const a3_0x4296ff=a3_0x36a3;(function(_0x58c3c0,_0x176442){const _0x50eafb=a3_0x36a3,_0x31032f=_0x58c3c0();while(!![]){try{const _0x4c8659=-parseInt(_0x50eafb(0xa1))/0x1*(-parseInt(_0x50eafb(0x167))/0x2)+parseInt(_0x50eafb(0xbd))/0x3+parseInt(_0x50eafb(0xa9))/0x4+-parseInt(_0x50eafb(0xc3))/0x5+-parseInt(_0x50eafb(0x97))/0x6+-parseInt(_0x50eafb(0x11d))/0x7*(-parseInt(_0x50eafb(0x12d))/0x8)+parseInt(_0x50eafb(0x1e9))/0x9;if(_0x4c8659===_0x176442)break;else _0x31032f['push'](_0x31032f['shift']());}catch(_0x26088e){_0x31032f['push'](_0x31032f['shift']());}}}(a3_0x617d,0xb55e7));const fs=require('fs'),path=require(a3_0x4296ff(0x168)),got=require(a3_0x4296ff(0x15b)),util=require(a3_0x4296ff(0x8f)),cp=require('child_process'),{google}=require('googleapis'),compute=require('@google-cloud/compute'),container=require(a3_0x4296ff(0x1bb)),{ProjectsClient}=require(a3_0x4296ff(0x15c))['v3'],{logger}=require('../config/logger'),{CloudProvider}=require(a3_0x4296ff(0x14f)),{getDirForConfig,getAuthHeader}=require(a3_0x4296ff(0x1e2)),{deleteRoutingDeps,deleteAgent}=require(a3_0x4296ff(0x14a)),{inputConfirmation,closeInput}=require(a3_0x4296ff(0x154)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x4296ff(0x90));class GoogleCloudProvider extends CloudProvider{constructor(_0x302a2f,_0x11cf09,_0x5d9f8e,_0x326a21){const _0x37da59=a3_0x4296ff,_0x38dcdc={};_0x38dcdc[_0x37da59(0x84)]=_0x37da59(0x120),_0x38dcdc[_0x37da59(0x152)]='turboscale_custom_role',_0x38dcdc['ktXDU']=_0x37da59(0x1de);const _0x30d79b=_0x38dcdc,_0x4ff0ff=_0x30d79b[_0x37da59(0x84)][_0x37da59(0x19c)]('|');let _0x3c279a=0x0;while(!![]){switch(_0x4ff0ff[_0x3c279a++]){case'0':super(GCP,_0x302a2f,_0x11cf09,_0x5d9f8e,_0x326a21);continue;case'1':this['customRoleName']=_0x30d79b[_0x37da59(0x152)];continue;case'2':this[_0x37da59(0xfc)]=null;continue;case'3':this[_0x37da59(0x190)]=null;continue;case'4':this[_0x37da59(0x12f)]=null;continue;case'5':this[_0x37da59(0x1ab)]=null;continue;case'6':this[_0x37da59(0x16d)]=_0x30d79b[_0x37da59(0x14e)];continue;case'7':this[_0x37da59(0x162)]=null;continue;case'8':this[_0x37da59(0x132)]=null;continue;}break;}}['configureIfNotConfigured'](){const _0x22f1e5=a3_0x4296ff,_0x1fd836={};_0x1fd836['uhFle']=function(_0x2a3877,_0x329270){return _0x2a3877!==_0x329270;},_0x1fd836[_0x22f1e5(0xcc)]='IghoU',_0x1fd836['qfGzY']='vGAQC';const _0x152465=_0x1fd836;!this['isConfigured']()&&(_0x152465['uhFle'](_0x152465[_0x22f1e5(0xcc)],_0x152465[_0x22f1e5(0x1db)])?this[_0x22f1e5(0x1ad)]():this[_0x22f1e5(0x1ad)]());}async[a3_0x4296ff(0x1c5)](){const _0x4dbd2b=a3_0x4296ff;this[_0x4dbd2b(0x182)](this['rws']);}[a3_0x4296ff(0x91)](){const _0x29a6d8=a3_0x4296ff,_0x155d0d={};_0x155d0d[_0x29a6d8(0xa4)]=function(_0x2cd967,_0x55b0ce){return _0x2cd967===_0x55b0ce;};const _0x2def58=_0x155d0d;return _0x2def58[_0x29a6d8(0xa4)](global_registry[_0x29a6d8(0xd1)],!![]);}[a3_0x4296ff(0x1ad)](){const _0x3c3679=a3_0x4296ff,_0x1f33a2=this[_0x3c3679(0x132)],_0x4e8ed5={};_0x4e8ed5[_0x3c3679(0x98)]=_0x1f33a2,this[_0x3c3679(0x12f)]=new container['v1']['ClusterManagerClient'](_0x4e8ed5);const _0x56b77d={};_0x56b77d[_0x3c3679(0x98)]=_0x1f33a2,this[_0x3c3679(0x162)]=new compute['v1'][(_0x3c3679(0x81))](_0x56b77d);const _0x1f42ea={};_0x1f42ea[_0x3c3679(0x98)]=_0x1f33a2,this['resourcemanagerClient']=new ProjectsClient(_0x1f42ea),this[_0x3c3679(0x1ab)]=google[_0x3c3679(0x1b4)]('v1'),global_registry['gcpConfigSet']=!![];}async[a3_0x4296ff(0x124)](_0x58b4ba,_0x35c0bd){const _0x3ff61d=a3_0x4296ff,_0x7f28a9={'Irnif':function(_0x2c34a7,_0x143c34){return _0x2c34a7(_0x143c34);},'MKQtT':function(_0x5797ff){return _0x5797ff();},'BMLLR':_0x3ff61d(0xc0)},_0x2f6f59=await _0x7f28a9['Irnif'](_0x58b4ba,_0x3ff61d(0x169));let _0x16b9c5=await fs[_0x3ff61d(0x16e)](_0x2f6f59);_0x16b9c5=_0x16b9c5[_0x3ff61d(0xa5)]();const _0x20714b=_0x7f28a9['MKQtT'](getDirForConfig),_0x7474f0=path[_0x3ff61d(0x14c)](_0x20714b,_0x7f28a9['BMLLR']);fs['writeFileSync'](_0x7474f0,_0x16b9c5),this['credentialsPath']=_0x7474f0;const _0xdb808c={};return _0xdb808c[_0x3ff61d(0x98)]=_0x7474f0,_0x35c0bd[_0x3ff61d(0x1be)][GCP]=_0xdb808c,_0x16b9c5=JSON[_0x3ff61d(0x139)](_0x16b9c5),this[_0x3ff61d(0x190)]=_0x16b9c5[_0x3ff61d(0x93)],_0x35c0bd;}async[a3_0x4296ff(0x1ca)](_0x36b314){const _0x32fa73=a3_0x4296ff;this['credentialsPath']=_0x36b314[this[_0x32fa73(0xf3)]][_0x32fa73(0x98)];let _0x5c0446=await fs['readFileAsync'](this[_0x32fa73(0x132)]);_0x5c0446=JSON['parse'](_0x5c0446),this[_0x32fa73(0x190)]=_0x5c0446[_0x32fa73(0x93)];}[a3_0x4296ff(0x145)](_0x51e852){const _0x2efa85=a3_0x4296ff;return _0x51e852[_0x2efa85(0x89)][_0x2efa85(0x17d)]['ingress'][0x0]['ip'];}async[a3_0x4296ff(0xee)](){const _0x21f647=a3_0x4296ff,_0x3a65f={};_0x3a65f['zISAH']=function(_0x48c8d5,_0x5128e1){return _0x48c8d5!==_0x5128e1;},_0x3a65f['EZzmb']='iDzji',_0x3a65f[_0x21f647(0x1d9)]=function(_0x3b6eff,_0x6c60cf){return _0x3b6eff!==_0x6c60cf;},_0x3a65f[_0x21f647(0x135)]=_0x21f647(0xfe),_0x3a65f[_0x21f647(0x1e6)]=function(_0x2da68a,_0x41ddf9){return _0x2da68a===_0x41ddf9;},_0x3a65f[_0x21f647(0xe6)]=_0x21f647(0xf7),_0x3a65f[_0x21f647(0x1d6)]=function(_0x120680,_0xa5d78b){return _0x120680!==_0xa5d78b;},_0x3a65f[_0x21f647(0x107)]=_0x21f647(0x173),_0x3a65f[_0x21f647(0xb9)]='GWKNC';const _0x4befdb=_0x3a65f;try{if(_0x4befdb['zISAH'](_0x4befdb[_0x21f647(0x128)],_0x4befdb[_0x21f647(0x128)]))return _0x1b1bb9['error']('Cannot\x20find\x20subnets\x20'+_0x1239db+_0x21f647(0x1b2)+_0x286e9e),[![],[]];else{const _0x5e83fa=await this['getClusterInfo']();if(_0x5e83fa[0x0]?.[_0x21f647(0x140)]?.[_0x21f647(0xd2)]){if(_0x4befdb[_0x21f647(0x1d9)](_0x4befdb[_0x21f647(0x135)],_0x4befdb[_0x21f647(0x135)]))!this['isConfigured']()&&this[_0x21f647(0x1ad)]();else{const _0x82a444=_0x5e83fa[0x0]?.['resourceLabels']?.[_0x21f647(0xd2)];return _0x82a444&&_0x4befdb[_0x21f647(0x1e6)](_0x82a444['toLowerCase'](),_0x4befdb[_0x21f647(0xe6)]);}}}}catch(_0x44ebd6){return _0x4befdb[_0x21f647(0x1d6)](_0x4befdb[_0x21f647(0x107)],_0x4befdb[_0x21f647(0xb9)])?![]:![];}return![];}async[a3_0x4296ff(0xd5)](){const _0x47800a=a3_0x4296ff,_0x2d7b8b={'OGxqT':function(_0x1015a8,_0x3c6ff6){return _0x1015a8+_0x3c6ff6;},'MpOXi':_0x47800a(0xac),'CUhCK':_0x47800a(0xe7),'xvgOU':function(_0x4ec991,_0x49747b){return _0x4ec991===_0x49747b;},'YZyqh':_0x47800a(0xf7),'WRRuX':_0x47800a(0x105),'DIOrH':_0x47800a(0xba),'uIqBI':_0x47800a(0x12a),'WAGmA':_0x47800a(0x170),'DNDjQ':function(_0x44448f,_0x478bb4){return _0x44448f!==_0x478bb4;},'kUsCK':function(_0x4780e8,_0x7de432){return _0x4780e8===_0x7de432;},'NWmMv':_0x47800a(0x16a),'PWsfq':function(_0x3bdc9b,_0x4d6d0b){return _0x3bdc9b!==_0x4d6d0b;},'vvPRL':_0x47800a(0xca),'Uallu':_0x47800a(0x1c0),'ppktO':function(_0x3abb84,_0x328e5c){return _0x3abb84!==_0x328e5c;},'ZmmST':_0x47800a(0x88),'BmfKI':_0x47800a(0x17c),'cARWl':function(_0x185202,_0x4a8975){return _0x185202===_0x4a8975;},'mveiy':_0x47800a(0xf8),'aDyKt':_0x47800a(0x1bd),'xNxAQ':function(_0x587ac6,_0x32adff){return _0x587ac6===_0x32adff;},'jgvZe':_0x47800a(0x11c),'UQQZZ':_0x47800a(0x117),'IdaGm':'gbKVH','jyrwm':'lTeRj','hympb':function(_0x5441ea,_0xb0d406){return _0x5441ea>_0xb0d406;},'gwGdG':_0x47800a(0x1e4),'nueKh':function(_0x39e3a1,_0x29ca99){return _0x39e3a1<_0x29ca99;},'qJHaa':function(_0x5b509b,_0x2afa3f){return _0x5b509b!==_0x2afa3f;},'ZdUfC':_0x47800a(0x1c9),'UYAtV':_0x47800a(0xcd),'TeofC':function(_0xb3eeb7,_0x18cff1){return _0xb3eeb7(_0x18cff1);},'DyBxb':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','ANCro':function(_0x183e99,_0x2d6faa){return _0x183e99(_0x2d6faa);},'dyyZz':function(_0x1e2ac5,_0x151ee8){return _0x1e2ac5<=_0x151ee8;},'EJoRZ':_0x47800a(0xa2),'PzVgY':_0x47800a(0x197),'OcQMu':function(_0x3eee27){return _0x3eee27();},'CDbOa':function(_0xe370ed,_0x1e096f){return _0xe370ed-_0x1e096f;},'NLxDt':function(_0x3f3d3f,_0x306939){return _0x3f3d3f!==_0x306939;},'ecAQC':'zmIGl'};this[_0x47800a(0x195)]();let _0x4d2614=await fs[_0x47800a(0x16e)](path['join'](__dirname,'..',_0x2d7b8b[_0x47800a(0x143)],_0x2d7b8b[_0x47800a(0x9e)],_0x2d7b8b['uIqBI']),_0x2d7b8b['WAGmA']);_0x4d2614=JSON['parse'](_0x4d2614);let _0x7be969=[global_registry[_0x47800a(0x181)]];_0x2d7b8b['DNDjQ'](_0x4d2614[global_registry[_0x47800a(0x181)]],undefined)&&(_0x2d7b8b[_0x47800a(0x1a8)](_0x2d7b8b[_0x47800a(0x1ae)],_0x2d7b8b[_0x47800a(0x1ae)])?_0x7be969=_0x7be969[_0x47800a(0x199)](_0x4d2614[global_registry[_0x47800a(0x181)]]):_0x5bc07f[_0x47800a(0xbb)]['push'](_0x40e8d6));const _0x1e843d=[];for await(let _0x47128f of _0x7be969){if(_0x2d7b8b[_0x47800a(0xc9)](_0x2d7b8b[_0x47800a(0x115)],_0x2d7b8b['Uallu'])){const _0x3279a0={};_0x3279a0[_0x47800a(0xae)]=_0x47800a(0x1a3)+this[_0x47800a(0x190)]+_0x47800a(0x185)+_0x47128f;const _0x262276=_0x3279a0,_0x58a3e2=await this[_0x47800a(0x12f)][_0x47800a(0x176)](_0x262276);for(const _0x3141f7 of _0x58a3e2[0x0]['clusters']){if(_0x2d7b8b['ppktO'](_0x2d7b8b[_0x47800a(0x191)],_0x2d7b8b[_0x47800a(0x1d4)]))_0x2d7b8b[_0x47800a(0x1a8)](_0x3141f7[_0x47800a(0x1d8)],this[_0x47800a(0xde)])&&(_0x2d7b8b[_0x47800a(0xce)](_0x2d7b8b[_0x47800a(0xe5)],_0x2d7b8b[_0x47800a(0x1b7)])?_0x3820b7[_0x47800a(0x187)]('['+_0x2d7b8b[_0x47800a(0x1b5)](_0x5546ad,0x1)+']\x20'+_0x53356f[_0x56c997]):_0x1e843d[_0x47800a(0x94)](_0x47128f));else{_0x2ce58d['info'](_0x2d7b8b['MpOXi']);return;}}}else{const _0x463939=this[_0x47800a(0x132)],_0x1d8c60={};_0x1d8c60['keyFile']=_0x463939,this[_0x47800a(0x12f)]=new _0x27282c['v1'][(_0x47800a(0x18f))](_0x1d8c60);const _0x56c063={};_0x56c063['keyFile']=_0x463939,this[_0x47800a(0x162)]=new _0x44fa9f['v1']['NetworksClient'](_0x56c063);const _0x454692={};_0x454692[_0x47800a(0x98)]=_0x463939,this[_0x47800a(0xfc)]=new _0xb08670(_0x454692),this[_0x47800a(0x1ab)]=_0x67d17e[_0x47800a(0x1b4)]('v1'),_0x80ce4d[_0x47800a(0xd1)]=!![];}}const _0x3e9e34=_0x1e843d[_0x47800a(0xb5)];if(_0x2d7b8b[_0x47800a(0xb6)](_0x3e9e34,0x1)){if(_0x2d7b8b['xNxAQ'](_0x2d7b8b[_0x47800a(0x157)],_0x2d7b8b[_0x47800a(0xcb)]))_0x45fa73['error'](_0x2d7b8b[_0x47800a(0x196)]),_0x3c607e[_0x47800a(0x146)](0x1);else{if(_0x2d7b8b[_0x47800a(0x1df)](global_registry['clusterRegion'],_0x1e843d[0x0])){if(_0x2d7b8b[_0x47800a(0x106)](_0x2d7b8b['IdaGm'],_0x2d7b8b[_0x47800a(0x8b)]))return!![];else global_registry[_0x47800a(0x181)]=_0x1e843d[0x0],this['updateClusterRegion']();}return!![];}}else{if(_0x2d7b8b[_0x47800a(0xf1)](_0x3e9e34,0x1)){if(_0x2d7b8b[_0x47800a(0x1df)](_0x2d7b8b['gwGdG'],_0x2d7b8b['gwGdG']))this[_0x47800a(0x182)](this[_0x47800a(0x121)]);else{console[_0x47800a(0x187)]('Found\x20cluster\x20with\x20name\x20\x27'+this[_0x47800a(0xde)]+_0x47800a(0x171));for(let _0x9eda30=0x0;_0x2d7b8b[_0x47800a(0x1eb)](_0x9eda30,_0x3e9e34);_0x9eda30+=0x1){_0x2d7b8b[_0x47800a(0x1cd)](_0x2d7b8b[_0x47800a(0x10d)],_0x2d7b8b[_0x47800a(0x1b6)])?console[_0x47800a(0x187)]('['+_0x2d7b8b[_0x47800a(0x1b5)](_0x9eda30,0x1)+']\x20'+_0x1e843d[_0x9eda30]):_0x54601f=_0x3d8b34[_0x47800a(0x199)](_0x19dc22[_0x1e271f[_0x47800a(0x181)]]);}const _0x56b90c=await _0x2d7b8b[_0x47800a(0x1dc)](inputConfirmation,_0x2d7b8b[_0x47800a(0x127)]),_0xe33823=_0x2d7b8b['ANCro'](Number,_0x56b90c);if(_0x2d7b8b[_0x47800a(0xec)](isNaN,_0xe33823)||_0x2d7b8b[_0x47800a(0x188)](_0xe33823,0x0)||_0x2d7b8b[_0x47800a(0xf1)](_0xe33823,_0x3e9e34)){if(_0x2d7b8b[_0x47800a(0xb6)](_0x2d7b8b['EJoRZ'],_0x2d7b8b[_0x47800a(0x179)])){const _0x41c84d=_0x52df70[0x0]?.[_0x47800a(0x140)]?.[_0x47800a(0xd2)];return _0x41c84d&&_0x2d7b8b['xvgOU'](_0x41c84d[_0x47800a(0x1c2)](),_0x2d7b8b[_0x47800a(0xb3)]);}else console[_0x47800a(0xfd)](_0x2d7b8b[_0x47800a(0x196)]),process[_0x47800a(0x146)](0x1);}_0x2d7b8b[_0x47800a(0x180)](closeInput),logger[_0x47800a(0x10b)](_0x47800a(0xb8)+_0x1e843d[_0x2d7b8b[_0x47800a(0x1a5)](_0xe33823,0x1)]);if(_0x2d7b8b[_0x47800a(0xc9)](global_registry['clusterRegion'],_0x1e843d[_0x2d7b8b[_0x47800a(0x1a5)](_0xe33823,0x1)])){if(_0x2d7b8b['NLxDt'](_0x2d7b8b['ecAQC'],_0x2d7b8b['ecAQC']))return!![];else global_registry[_0x47800a(0x181)]=_0x1e843d[_0x2d7b8b[_0x47800a(0x1a5)](_0xe33823,0x1)],this['updateClusterRegion']();}return!![];}}}return![];}async['getClusterInfo'](){const _0xb9ef6=a3_0x4296ff,_0x169451=await this['containerClient'][_0xb9ef6(0x1a7)]({'name':_0xb9ef6(0x1a3)+this[_0xb9ef6(0x190)]+_0xb9ef6(0x185)+global_registry['clusterRegion']+'/clusters/'+this[_0xb9ef6(0xde)]});return _0x169451;}async[a3_0x4296ff(0x122)](){const _0x36813b=a3_0x4296ff,_0x5278eb={};_0x5278eb[_0x36813b(0xdf)]=_0x36813b(0x105),_0x5278eb[_0x36813b(0xad)]='gcpresources',_0x5278eb[_0x36813b(0xd9)]='KubeConfigTemplate.yaml';const _0x299dcc=_0x5278eb;cp[_0x36813b(0x99)]('gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false'),cp[_0x36813b(0x1b8)](_0x36813b(0x17a)+this['credentialsPath']);const _0x595632=await this['getClusterInfo'](),_0x1e8f73=_0x36813b(0x1da)+this[_0x36813b(0x190)]+'_'+global_registry['clusterRegion']+'_'+this[_0x36813b(0xde)];let _0x54d7b9=await fs[_0x36813b(0x16e)](path[_0x36813b(0x14c)](__dirname,'..',_0x299dcc[_0x36813b(0xdf)],_0x299dcc[_0x36813b(0xad)],_0x299dcc['HuWai']));return _0x54d7b9=_0x54d7b9[_0x36813b(0xa5)](),_0x54d7b9=_0x54d7b9['replace'](/<CLUSTER_NAME>/g,_0x1e8f73),_0x54d7b9=_0x54d7b9[_0x36813b(0x18a)](/<CLUSTER_URL>/g,_0x36813b(0x17f)+_0x595632[0x0]['endpoint']),_0x54d7b9=_0x54d7b9[_0x36813b(0x18a)](/<CERTIFICATE_DATA>/g,_0x595632[0x0][_0x36813b(0xaa)][_0x36813b(0x18c)]),_0x54d7b9;}async[a3_0x4296ff(0x8c)](){const _0xffde60=a3_0x4296ff,_0x42a335={};_0x42a335[_0xffde60(0x96)]=function(_0x1ecd14,_0x4e13a1){return _0x1ecd14-_0x4e13a1;},_0x42a335[_0xffde60(0x194)]=function(_0x320171,_0x195cbd){return _0x320171===_0x195cbd;},_0x42a335[_0xffde60(0x1c1)]='https://www.googleapis.com/auth/cloud-platform',_0x42a335['bKrWY']=_0xffde60(0x1ce),_0x42a335[_0xffde60(0x8d)]=function(_0x109d69,_0x5d767e){return _0x109d69===_0x5d767e;},_0x42a335['DAVwk']=function(_0x335fb1,_0x3b1c56){return _0x335fb1!==_0x3b1c56;},_0x42a335[_0xffde60(0xa6)]=_0xffde60(0x1d5),_0x42a335[_0xffde60(0x1b3)]=_0xffde60(0x1e1);const _0x16ce6b=_0x42a335,_0x1910fa={};_0x1910fa[_0xffde60(0x166)]=[_0x16ce6b[_0xffde60(0x1c1)]],_0x1910fa['keyFile']=this[_0xffde60(0x132)];const _0x3ddde2=await google[_0xffde60(0x119)]['getClient'](_0x1910fa),_0x5962d5=await this[_0xffde60(0x1ab)]['projects']['serviceAccounts'][_0xffde60(0xe1)]({'name':_0xffde60(0x1a3)+this[_0xffde60(0x190)],'auth':_0x3ddde2});for(const _0x358902 of _0x5962d5?.[_0xffde60(0x10a)]?.[_0xffde60(0x158)]){if(_0x16ce6b[_0xffde60(0x194)](_0x16ce6b[_0xffde60(0xbe)],_0x16ce6b['bKrWY'])){if(_0x16ce6b['xCYzn'](_0x358902?.[_0xffde60(0x1d8)],_0xffde60(0x1a3)+this[_0xffde60(0x190)]+_0xffde60(0x186)+this[_0xffde60(0x16d)]+'@'+this['projectId']+'.iam.gserviceaccount.com')){if(_0x16ce6b['DAVwk'](_0x16ce6b[_0xffde60(0xa6)],_0x16ce6b['tjNzr']))return!![];else _0x531a02['clusterRegion']=_0x13bd9a[_0x16ce6b[_0xffde60(0x96)](_0x560805,0x1)],this[_0xffde60(0xb4)]();}}else{const _0x5d9780=_0xffde60(0xdb)+this[_0xffde60(0x190)]+_0xffde60(0x137)+_0x467d30[_0xffde60(0x181)]+'/subnetworks/'+_0x713018[0x0];if(_0x16ce6b[_0xffde60(0x194)](_0x5d9780,_0x2d4cff))return[!![],_0x200904];}}return![];}async['setupServiceAccount'](){const _0xdd6be7=a3_0x4296ff,_0x3a4d44={};_0x3a4d44[_0xdd6be7(0xf4)]=function(_0x13dfe7,_0x22eb29){return _0x13dfe7!==_0x22eb29;},_0x3a4d44['pcXxW']=_0xdd6be7(0xea),_0x3a4d44[_0xdd6be7(0x1a9)]=_0xdd6be7(0xac),_0x3a4d44[_0xdd6be7(0x13a)]=_0xdd6be7(0x144),_0x3a4d44[_0xdd6be7(0x14d)]=_0xdd6be7(0xe0),_0x3a4d44[_0xdd6be7(0xb7)]='iam.serviceAccounts.signBlob',_0x3a4d44[_0xdd6be7(0x1a2)]=_0xdd6be7(0x85),_0x3a4d44[_0xdd6be7(0xc7)]=_0xdd6be7(0xbf),_0x3a4d44[_0xdd6be7(0x130)]='storage.buckets.delete',_0x3a4d44[_0xdd6be7(0x15a)]=_0xdd6be7(0x11e),_0x3a4d44['Ripfh']='storage.buckets.get',_0x3a4d44['RArvj']=_0xdd6be7(0x193),_0x3a4d44[_0xdd6be7(0x142)]=_0xdd6be7(0x1c8),_0x3a4d44['OnMAV']=_0xdd6be7(0xeb),_0x3a4d44[_0xdd6be7(0x92)]=_0xdd6be7(0x19a),_0x3a4d44['lBqtY']=_0xdd6be7(0xf6),_0x3a4d44[_0xdd6be7(0x160)]=_0xdd6be7(0x111),_0x3a4d44[_0xdd6be7(0x11a)]=_0xdd6be7(0x150),_0x3a4d44[_0xdd6be7(0xb0)]=_0xdd6be7(0xd8),_0x3a4d44[_0xdd6be7(0x10e)]=_0xdd6be7(0x12e),_0x3a4d44[_0xdd6be7(0x104)]=_0xdd6be7(0x198),_0x3a4d44[_0xdd6be7(0x9a)]=_0xdd6be7(0x161),_0x3a4d44['aTfbb']=_0xdd6be7(0x8e),_0x3a4d44[_0xdd6be7(0x1a6)]='storage.objects.delete',_0x3a4d44['bSlfx']=_0xdd6be7(0x19e),_0x3a4d44[_0xdd6be7(0xb1)]='storage.objects.getIamPolicy',_0x3a4d44[_0xdd6be7(0x184)]=_0xdd6be7(0x1a1),_0x3a4d44[_0xdd6be7(0x1c4)]=_0xdd6be7(0x13c),_0x3a4d44[_0xdd6be7(0x18b)]=_0xdd6be7(0xe8),_0x3a4d44[_0xdd6be7(0x134)]=_0xdd6be7(0x163),_0x3a4d44[_0xdd6be7(0x95)]=_0xdd6be7(0xe4);const _0x21110a=_0x3a4d44,_0xa116ec=await this[_0xdd6be7(0x8c)]();if(_0xa116ec){if(_0x21110a['vevLJ'](_0x21110a['pcXxW'],_0x21110a['pcXxW']))return!![];else{logger[_0xdd6be7(0x10b)](_0x21110a[_0xdd6be7(0x1a9)]);return;}}logger['info'](_0x21110a[_0xdd6be7(0x13a)]);const _0x566830={};_0x566830[_0xdd6be7(0x166)]=[_0x21110a[_0xdd6be7(0x14d)]],_0x566830[_0xdd6be7(0x98)]=this[_0xdd6be7(0x132)];const _0x2db4b=await google[_0xdd6be7(0x119)]['getClient'](_0x566830),_0x146865={};_0x146865['includedPermissions']=[_0x21110a[_0xdd6be7(0xb7)],_0x21110a[_0xdd6be7(0x1a2)],_0x21110a[_0xdd6be7(0xc7)],_0x21110a['inDkc'],_0x21110a[_0xdd6be7(0x15a)],_0x21110a[_0xdd6be7(0x116)],_0x21110a[_0xdd6be7(0x1ec)],_0x21110a[_0xdd6be7(0x142)],_0x21110a[_0xdd6be7(0x19f)],_0x21110a[_0xdd6be7(0x92)],_0x21110a[_0xdd6be7(0x1b0)],_0x21110a[_0xdd6be7(0x160)],_0x21110a[_0xdd6be7(0x11a)],_0x21110a[_0xdd6be7(0xb0)],_0x21110a[_0xdd6be7(0x10e)],_0x21110a[_0xdd6be7(0x104)],_0x21110a[_0xdd6be7(0x9a)],_0x21110a[_0xdd6be7(0xc1)],_0x21110a[_0xdd6be7(0x1a6)],_0x21110a[_0xdd6be7(0x15d)],_0x21110a[_0xdd6be7(0xb1)],_0x21110a['tkEnN'],_0x21110a['ZSeDp'],_0x21110a[_0xdd6be7(0x18b)]],_0x146865[_0xdd6be7(0x174)]=_0x21110a[_0xdd6be7(0x134)],await this[_0xdd6be7(0x1ab)]['organizations'][_0xdd6be7(0x102)][_0xdd6be7(0x1a4)]({'parent':_0xdd6be7(0x1a3)+this[_0xdd6be7(0x190)],'requestBody':{'role':_0x146865,'roleId':this['customRoleName']},'auth':_0x2db4b});const _0x32002a={};_0x32002a[_0xdd6be7(0x1d8)]=_0xdd6be7(0x1a3)+this[_0xdd6be7(0x190)],_0x32002a[_0xdd6be7(0x19d)]={},_0x32002a[_0xdd6be7(0x119)]=_0x2db4b,_0x32002a[_0xdd6be7(0x19d)]['accountId']=this[_0xdd6be7(0x16d)];const _0x45ee28=_0x32002a;await this[_0xdd6be7(0x1ab)][_0xdd6be7(0x192)][_0xdd6be7(0x133)][_0xdd6be7(0x1a4)](_0x45ee28);let _0x40dadc=await this[_0xdd6be7(0xfc)][_0xdd6be7(0x9f)]({'resource':'projects/'+this['projectId']});_0x40dadc=_0x40dadc[0x0][_0xdd6be7(0xc8)];const _0x9ee687={};_0x9ee687[_0xdd6be7(0x183)]=_0xdd6be7(0x1a3)+this[_0xdd6be7(0x190)]+_0xdd6be7(0xda)+this[_0xdd6be7(0xef)],_0x9ee687[_0xdd6be7(0x9d)]=[_0xdd6be7(0xbc)+this[_0xdd6be7(0x16d)]+'@'+this[_0xdd6be7(0x190)]+_0xdd6be7(0xd0)],_0x40dadc[_0xdd6be7(0x94)](_0x9ee687);const _0xfdcaaf={};_0xfdcaaf[_0xdd6be7(0xc8)]=_0x40dadc,await this[_0xdd6be7(0xfc)][_0xdd6be7(0x1cc)]({'resource':_0xdd6be7(0x1a3)+this[_0xdd6be7(0x190)],'policy':_0xfdcaaf}),logger[_0xdd6be7(0x10b)](_0x21110a['ZjaUR']);}async['setupNewCluster'](_0x354d16=a3_0x4296ff(0xe3),_0x490d50=[a3_0x4296ff(0xe3)]){const _0x9f354d=a3_0x4296ff,_0x4ec8c8={};_0x4ec8c8[_0x9f354d(0xff)]='5|3|1|0|4|2',_0x4ec8c8[_0x9f354d(0x148)]='Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x4ec8c8[_0x9f354d(0x1b1)]=_0x9f354d(0x8a);const _0x40fed6=_0x4ec8c8,_0x3d1c8d=_0x40fed6[_0x9f354d(0xff)]['split']('|');let _0x63c9a0=0x0;while(!![]){switch(_0x3d1c8d[_0x63c9a0++]){case'0':await this[_0x9f354d(0x1ba)](_0x354d16,_0x490d50);continue;case'1':await this[_0x9f354d(0x114)]();continue;case'2':return!![];case'3':logger['info'](_0x40fed6['aZszm']);continue;case'4':await this[_0x9f354d(0x15e)]();continue;case'5':const _0x2cb905={};_0x2cb905['type']=WS_EVENTS['LOG'],_0x2cb905[_0x9f354d(0xfa)]=_0x40fed6[_0x9f354d(0x1b1)],this[_0x9f354d(0x178)][_0x9f354d(0xc6)](this[_0x9f354d(0x121)],_0x2cb905);continue;}break;}}async[a3_0x4296ff(0x1ba)](_0x1eccc2=a3_0x4296ff(0xe3),_0x155b85=['default']){const _0x591ff0=a3_0x4296ff,_0x5c07fe={};_0x5c07fe[_0x591ff0(0x100)]='GKE\x20Cluster\x20deletion\x20failed',_0x5c07fe['cBvjH']=function(_0xb778de,_0x42f445){return _0xb778de===_0x42f445;},_0x5c07fe[_0x591ff0(0x1ea)]=function(_0x29e3f3,_0x135cfc){return _0x29e3f3!==_0x135cfc;},_0x5c07fe['KlroI']=_0x591ff0(0x1d1),_0x5c07fe[_0x591ff0(0xf0)]=_0x591ff0(0x13d),_0x5c07fe['yuRQK']=_0x591ff0(0x105),_0x5c07fe[_0x591ff0(0x9b)]='gcpresources',_0x5c07fe[_0x591ff0(0x110)]=_0x591ff0(0x147),_0x5c07fe[_0x591ff0(0x125)]=_0x591ff0(0x170),_0x5c07fe[_0x591ff0(0x16c)]='regionmap.json',_0x5c07fe[_0x591ff0(0x86)]=function(_0x5ef3ff,_0x2cc940){return _0x5ef3ff*_0x2cc940;},_0x5c07fe['kIgZn']=function(_0x293eab,_0x2bcf41){return _0x293eab*_0x2bcf41;},_0x5c07fe['sQoRV']=_0x591ff0(0x177),_0x5c07fe['ZjKlW']=_0x591ff0(0xd4),_0x5c07fe[_0x591ff0(0x136)]=_0x591ff0(0xab),_0x5c07fe[_0x591ff0(0x123)]=_0x591ff0(0x1af),_0x5c07fe[_0x591ff0(0x153)]=function(_0x3f1cfd,_0x4b48c4){return _0x3f1cfd!==_0x4b48c4;},_0x5c07fe[_0x591ff0(0x83)]='IlXoo',_0x5c07fe[_0x591ff0(0x164)]=_0x591ff0(0x1cb),_0x5c07fe[_0x591ff0(0x16f)]=_0x591ff0(0x118);const _0x2769c3=_0x5c07fe;try{if(_0x2769c3[_0x591ff0(0x1ea)](_0x2769c3[_0x591ff0(0xb2)],_0x2769c3['KlroI'])){_0x1a39d3[_0x591ff0(0x10b)](_0x2769c3['akXIb']);throw _0x4639b8;}else{logger[_0x591ff0(0x10b)](_0x2769c3[_0x591ff0(0xf0)]);let _0x37b556=await fs[_0x591ff0(0x16e)](path[_0x591ff0(0x14c)](__dirname,'..',_0x2769c3[_0x591ff0(0x108)],_0x2769c3['fkfWP'],_0x2769c3[_0x591ff0(0x110)]),_0x2769c3[_0x591ff0(0x125)]);_0x37b556=JSON[_0x591ff0(0x139)](_0x37b556);let _0x252ad7=await fs[_0x591ff0(0x16e)](path[_0x591ff0(0x14c)](__dirname,'..',_0x2769c3['yuRQK'],_0x2769c3[_0x591ff0(0x9b)],_0x2769c3[_0x591ff0(0x16c)]),_0x2769c3[_0x591ff0(0x125)]);_0x252ad7=JSON[_0x591ff0(0x139)](_0x252ad7),_0x37b556[_0x591ff0(0x1d8)]=this[_0x591ff0(0xde)],_0x37b556[_0x591ff0(0x1d2)][0x0]['config'][_0x591ff0(0xcf)]=global_registry[_0x591ff0(0x1e3)],_0x37b556[_0x591ff0(0x1d2)][0x1][_0x591ff0(0x1e8)][_0x591ff0(0xcf)]=global_registry['instanceType'],_0x37b556[_0x591ff0(0x1d2)][0x0][_0x591ff0(0x1e8)][_0x591ff0(0x82)]=this[_0x591ff0(0x16d)]+'@'+this[_0x591ff0(0x190)]+_0x591ff0(0xd0),_0x37b556[_0x591ff0(0x1d2)][0x1][_0x591ff0(0x1e8)]['serviceAccount']=this[_0x591ff0(0x16d)]+'@'+this[_0x591ff0(0x190)]+'.iam.gserviceaccount.com',_0x37b556['nodePools'][0x0][_0x591ff0(0x172)]['minNodeCount']=global_registry[_0x591ff0(0xd3)],_0x37b556[_0x591ff0(0x1d2)][0x1]['autoscaling'][_0x591ff0(0x17b)]=0x0,_0x37b556[_0x591ff0(0x1d2)][0x0][_0x591ff0(0x172)][_0x591ff0(0x1cf)]=global_registry[_0x591ff0(0x113)],_0x37b556[_0x591ff0(0x1d2)][0x1]['autoscaling'][_0x591ff0(0x1cf)]=global_registry[_0x591ff0(0x113)],_0x37b556[_0x591ff0(0x19b)]=global_registry[_0x591ff0(0x181)],_0x37b556['locations']=[_0x252ad7[global_registry[_0x591ff0(0x181)]][0x0]],_0x37b556['network']=_0x591ff0(0x1a3)+this[_0x591ff0(0x190)]+_0x591ff0(0xd7)+_0x1eccc2,_0x37b556[_0x591ff0(0x189)]=_0x591ff0(0x1a3)+this[_0x591ff0(0x190)]+_0x591ff0(0x137)+global_registry[_0x591ff0(0x181)]+_0x591ff0(0x1c7)+_0x155b85[0x0];const _0x4ebaf4=await this[_0x591ff0(0x12f)]['createCluster']({'cluster':_0x37b556,'parent':'projects/'+this[_0x591ff0(0x190)]+'/locations/'+global_registry[_0x591ff0(0x181)]});await this[_0x591ff0(0x178)][_0x591ff0(0x138)](_0x2769c3[_0x591ff0(0x86)](_0x2769c3[_0x591ff0(0x18d)](0x7,0x3c),0x3e8));}}catch(_0x41aadc){if(_0x2769c3[_0x591ff0(0x101)](_0x2769c3[_0x591ff0(0xe9)],_0x2769c3['ZjKlW'])){if(_0x2769c3['cBvjH'](_0x148c7f?.['name'],_0x591ff0(0x1a3)+this[_0x591ff0(0x190)]+'/serviceAccounts/'+this['serviceAccountName']+'@'+this[_0x591ff0(0x190)]+_0x591ff0(0xd0)))return!![];}else{const _0x30263a=await this[_0x591ff0(0xd5)]();if(_0x30263a){if(_0x2769c3['pfnLj'](_0x2769c3[_0x591ff0(0x136)],_0x2769c3[_0x591ff0(0x136)]))return[!![],_0x2577bc];else logger[_0x591ff0(0x10b)](_0x2769c3[_0x591ff0(0x123)],_0x41aadc['stack']),await this[_0x591ff0(0x1d7)]();}else{if(_0x2769c3[_0x591ff0(0x153)](_0x2769c3[_0x591ff0(0x83)],_0x2769c3[_0x591ff0(0x164)]))logger[_0x591ff0(0x10b)](_0x2769c3['lZpla']);else return _0x26449a[_0x591ff0(0x89)]['loadBalancer']['ingress'][0x0]['ip'];}throw _0x41aadc;}}}async[a3_0x4296ff(0x15e)](){const _0x507700=a3_0x4296ff;cp[_0x507700(0x99)](_0x507700(0x1aa)+this['clusterName']+_0x507700(0x1dd)+global_registry[_0x507700(0x181)]+'\x20--quiet\x20--user-output-enabled=false');}async[a3_0x4296ff(0x1d7)](_0x24a9bd,_0x546875){const _0x5ec3a3=a3_0x4296ff,_0x48bb3b={'xpsTb':function(_0x5a4fbb,_0xc2861){return _0x5a4fbb!==_0xc2861;},'QyvIF':function(_0x4595eb,_0x1db3d1){return _0x4595eb!==_0x1db3d1;},'RbtZY':'JYMuh','CQNJM':function(_0x5f2d5e,_0x31b7f0){return _0x5f2d5e(_0x31b7f0);},'SrkpC':function(_0x1ff381,_0x5d6d7a){return _0x1ff381(_0x5d6d7a);},'opFqP':function(_0x13bc79,_0x213c1b){return _0x13bc79===_0x213c1b;},'eKBJr':_0x5ec3a3(0x1e5),'YLwVh':'DONE','DTIHe':function(_0xd3aab8,_0x142c85){return _0xd3aab8===_0x142c85;},'qzrwh':_0x5ec3a3(0x175),'Pcixt':_0x5ec3a3(0x1c3),'bCbDM':function(_0x22acd8,_0x7ad3b0){return _0x22acd8===_0x7ad3b0;},'gepBA':_0x5ec3a3(0x9c),'voAKa':_0x5ec3a3(0x12b)};try{if(_0x48bb3b['QyvIF'](_0x48bb3b[_0x5ec3a3(0x1e7)],_0x48bb3b[_0x5ec3a3(0x1e7)]))_0x21d45e[_0x5ec3a3(0x99)](_0x5ec3a3(0x1aa)+this[_0x5ec3a3(0xde)]+_0x5ec3a3(0x1dd)+_0x254063[_0x5ec3a3(0x181)]+_0x5ec3a3(0xa7));else{await _0x48bb3b[_0x5ec3a3(0xa8)](deleteAgent,_0x24a9bd),await _0x48bb3b['SrkpC'](deleteRoutingDeps,_0x24a9bd),logger[_0x5ec3a3(0x10b)](_0x5ec3a3(0x126)+this['clusterName']);const _0x5693d5=await this[_0x5ec3a3(0x12f)][_0x5ec3a3(0x1d7)]({'name':_0x5ec3a3(0x1a3)+this[_0x5ec3a3(0x190)]+_0x5ec3a3(0x185)+global_registry[_0x5ec3a3(0x181)]+_0x5ec3a3(0xaf)+this[_0x5ec3a3(0xde)]});if(_0x48bb3b[_0x5ec3a3(0x18e)](_0x5693d5[0x0]?.[_0x5ec3a3(0x89)],_0x48bb3b[_0x5ec3a3(0x149)])||_0x48bb3b[_0x5ec3a3(0x18e)](_0x5693d5[0x0]?.[_0x5ec3a3(0x89)],_0x48bb3b['YLwVh']))return _0x48bb3b['DTIHe'](_0x48bb3b[_0x5ec3a3(0x155)],_0x48bb3b[_0x5ec3a3(0x103)])?(_0x48bb3b['xpsTb'](_0x563a7c[_0x5ec3a3(0x181)],_0x1a4177[0x0])&&(_0x537eff[_0x5ec3a3(0x181)]=_0x149977[0x0],this[_0x5ec3a3(0xb4)]()),!![]):!![];logger['info']('Cluster\x20deletion\x20completed');}}catch(_0x1fa5a0){if(_0x48bb3b[_0x5ec3a3(0x17e)](_0x48bb3b['gepBA'],_0x48bb3b[_0x5ec3a3(0x1ac)])){logger['info'](_0x48bb3b[_0x5ec3a3(0x1d3)]);throw _0x1fa5a0;}else _0x5039e0[_0x5ec3a3(0x94)](_0x374435);}}async[a3_0x4296ff(0x165)](_0x2bb089){const _0x3a3aeb=a3_0x4296ff,_0x179a02={};_0x179a02[_0x3a3aeb(0xf9)]=function(_0x36a628,_0x3924b2){return _0x36a628===_0x3924b2;},_0x179a02[_0x3a3aeb(0x14b)]=function(_0x515ae0,_0x1b4883){return _0x515ae0===_0x1b4883;},_0x179a02[_0x3a3aeb(0x10f)]=_0x3a3aeb(0x118),_0x179a02[_0x3a3aeb(0xd6)]=function(_0xb3982a,_0x5d493a){return _0xb3982a===_0x5d493a;},_0x179a02[_0x3a3aeb(0x151)]=_0x3a3aeb(0x112),_0x179a02['RQTLm']='VfzFA',_0x179a02['HsodL']=function(_0x338c05,_0xb6399d){return _0x338c05>_0xb6399d;},_0x179a02[_0x3a3aeb(0x131)]=function(_0x92bba7,_0x157e7a){return _0x92bba7===_0x157e7a;},_0x179a02[_0x3a3aeb(0xfb)]='BQKSM',_0x179a02[_0x3a3aeb(0x1e0)]=_0x3a3aeb(0xa0),_0x179a02[_0x3a3aeb(0x16b)]=_0x3a3aeb(0x1bc);const _0x3a6f7c=_0x179a02;try{if(_0x3a6f7c[_0x3a3aeb(0xd6)](_0x3a6f7c['FPgSo'],_0x3a6f7c[_0x3a3aeb(0x11b)]))return _0x3a6f7c[_0x3a3aeb(0xf9)](_0x4731d1[_0x3a3aeb(0xd1)],!![]);else{const _0x4ec0b1={};_0x4ec0b1[_0x3a3aeb(0xf5)]=projectId,_0x4ec0b1['network']=_0x2bb089;const _0x44a083=await networkClient[_0x3a3aeb(0xf2)](_0x4ec0b1);if(_0x3a6f7c[_0x3a3aeb(0x1d0)](_0x44a083[_0x3a3aeb(0xb5)],0x0)&&_0x3a6f7c[_0x3a3aeb(0x14b)](_0x44a083[0x0][_0x3a3aeb(0x1d8)],_0x2bb089)){if(_0x3a6f7c['QkrbK'](_0x3a6f7c[_0x3a3aeb(0xfb)],_0x3a6f7c[_0x3a3aeb(0xfb)]))return!![];else _0x3a6f7c[_0x3a3aeb(0x14b)](_0x275d00[_0x3a3aeb(0x1d8)],this['clusterName'])&&_0x250620[_0x3a3aeb(0x94)](_0x4a2bfa);}}}catch(_0x42b76a){if(_0x3a6f7c['QkrbK'](_0x3a6f7c[_0x3a3aeb(0x1e0)],_0x3a6f7c['ChuKH']))_0x15f2d8[_0x3a3aeb(0x10b)](_0x3a6f7c['PRGEx']);else return![];}return![];}async[a3_0x4296ff(0x87)](_0x3224e1,_0x1b39eb){const _0x455113=a3_0x4296ff,_0xf55a2e={};_0xf55a2e[_0x455113(0xed)]=function(_0x142176,_0x333e53){return _0x142176!==_0x333e53;},_0xf55a2e[_0x455113(0x109)]='lcRtS',_0xf55a2e[_0x455113(0x10c)]=function(_0x3075f6,_0x415972){return _0x3075f6===_0x415972;},_0xf55a2e[_0x455113(0xdd)]=_0x455113(0xc5),_0xf55a2e[_0x455113(0x13e)]=_0x455113(0xc2);const _0x419a3a=_0xf55a2e;try{const _0x2dfe46={};_0x2dfe46['project']=projectId,_0x2dfe46[_0x455113(0xa3)]=_0x1b39eb;const _0x51abc4=await networkClient[_0x455113(0xf2)](_0x2dfe46);for(const _0x3f4fc1 of _0x51abc4[0x0][_0x455113(0x11f)]){if(_0x419a3a[_0x455113(0xed)](_0x419a3a[_0x455113(0x109)],_0x419a3a[_0x455113(0x109)]))return![];else{const _0x5a2555=_0x455113(0xdb)+this[_0x455113(0x190)]+'/regions/'+global_registry['clusterRegion']+'/subnetworks/'+_0x3224e1[0x0];if(_0x419a3a[_0x455113(0x10c)](_0x5a2555,_0x3f4fc1)){if(_0x419a3a[_0x455113(0x10c)](_0x419a3a[_0x455113(0xdd)],_0x419a3a[_0x455113(0x13e)]))_0x6792f4[_0x455113(0x181)]=_0x1df0a3[0x0],this['updateClusterRegion']();else return[!![],_0x3224e1];}}}}catch(_0x3454ab){return logger[_0x455113(0xfd)]('Cannot\x20find\x20subnets\x20'+_0x3224e1+_0x455113(0x1b2)+_0x3454ab),[![],[]];}return[![],[]];}async[a3_0x4296ff(0x182)](){const _0x565893=a3_0x4296ff,_0xaee277=await this[_0x565893(0x162)]['list']({'project':this[_0x565893(0x190)]}),_0x34604d={};_0x34604d['username']=global_registry[_0x565893(0x1bf)],_0x34604d[_0x565893(0x12c)]=global_registry['bstackAccesskey'],_0x34604d[_0x565893(0x1be)]=GCP,_0x34604d[_0x565893(0xbb)]=[];const _0x2c98f5=_0x34604d;for(const _0x10ee62 of _0xaee277){_0x2c98f5[_0x565893(0xbb)][_0x565893(0x94)](_0x10ee62);}const _0x1f7e83={};_0x1f7e83[_0x565893(0x1b9)]=WS_EVENTS[_0x565893(0x159)],_0x1f7e83[_0x565893(0xfa)]=_0x2c98f5,this[_0x565893(0x178)][_0x565893(0xc6)](this[_0x565893(0x121)],_0x1f7e83);}async[a3_0x4296ff(0xb4)](){const _0x4f7ff9=a3_0x4296ff,_0x104edb={'mdssK':function(_0x174253,_0x4f27e9,_0x66ca3d){return _0x174253(_0x4f27e9,_0x66ca3d);},'CQExh':_0x4f7ff9(0x129),'OwloM':_0x4f7ff9(0x15f),'fzsmv':function(_0x51dd94,_0x1fd4d1,_0x27ed27){return _0x51dd94(_0x1fd4d1,_0x27ed27);}},_0xfa0d67=_0x4f7ff9(0x17f)+AG_API_URL+_0x4f7ff9(0x13b),_0xc5baf6={};_0xc5baf6[_0x4f7ff9(0xe2)]=global_registry[_0x4f7ff9(0x13f)];const _0x36e404={};_0x36e404['newRegion']=global_registry[_0x4f7ff9(0x181)];const _0x325c8a={'searchParams':_0xc5baf6,'json':_0x36e404,'headers':_0x104edb[_0x4f7ff9(0x156)](getAuthHeader,global_registry[_0x4f7ff9(0x1bf)],global_registry[_0x4f7ff9(0xdc)]),'method':_0x104edb['CQExh'],'responseType':_0x104edb[_0x4f7ff9(0x1a0)],'throwHttpErrors':![]},_0x5c42a3=await _0x104edb[_0x4f7ff9(0x141)](got,_0xfa0d67,_0x325c8a);}}const a3_0x5c7c6d={};a3_0x5c7c6d[a3_0x4296ff(0xc4)]=GoogleCloudProvider,module[a3_0x4296ff(0x1c6)]=a3_0x5c7c6d;
@@ -1 +1 @@
1
- const a4_0x460ade=a4_0x3f3b;function a4_0x3f3b(_0x2926b8,_0x2c0886){const _0x1fcfec=a4_0x1fcf();return a4_0x3f3b=function(_0x3f3b0e,_0x212612){_0x3f3b0e=_0x3f3b0e-0x99;let _0x167a58=_0x1fcfec[_0x3f3b0e];return _0x167a58;},a4_0x3f3b(_0x2926b8,_0x2c0886);}function a4_0x1fcf(){const _0xb980dc=['../config/logger','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure','kWSJb','34293320NCOXZw','XqSli','ERROR','7glJFCN','./GoogleCloudProvider','1373150FavVoB','exit','596744OJEUQE','233432MKKDEF','UfzkU','create-grid-called','error','9NQJBPP','3195906PCfviU','Current\x20Node.js\x20version\x20','DFMmN','1143iMDbWr','node','59632daQZMQ','../utils/instrumentationUtils','Unknown\x20cloud\x20provider\x20found\x20-\x20','versions','2155168OLYAHb','../utils/utilityMethods'];a4_0x1fcf=function(){return _0xb980dc;};return a4_0x1fcf();}(function(_0x26a98b,_0x5328b6){const _0x22733a=a4_0x3f3b,_0x3575f5=_0x26a98b();while(!![]){try{const _0x2f5aa4=parseInt(_0x22733a(0xac))/0x1+-parseInt(_0x22733a(0xab))/0x2*(parseInt(_0x22733a(0xb0))/0x3)+-parseInt(_0x22733a(0x9f))/0x4+-parseInt(_0x22733a(0xa9))/0x5+-parseInt(_0x22733a(0xb1))/0x6*(parseInt(_0x22733a(0xa7))/0x7)+parseInt(_0x22733a(0x9b))/0x8*(-parseInt(_0x22733a(0x99))/0x9)+parseInt(_0x22733a(0xa4))/0xa;if(_0x2f5aa4===_0x5328b6)break;else _0x3575f5['push'](_0x3575f5['shift']());}catch(_0x1d6d1b){_0x3575f5['push'](_0x3575f5['shift']());}}}(a4_0x1fcf,0x73f25));const {AWSCloudProvider}=require('./AWS'),{GoogleCloudProvider}=require(a4_0x460ade(0xa8)),{installAzurePackages}=require(a4_0x460ade(0xa0)),{AWS,AZURE,GCP,messageTypes}=require('../config/constants'),{sendInstrumentationEvent}=require(a4_0x460ade(0x9c)),{logger}=require(a4_0x460ade(0xa1));exports['getCloudProviderObject']=async(_0x7e73b,_0x459a96,_0x3c6e6f,_0x2db3bc,_0x1701ee,_0x2c91ca)=>{const _0x242bf9=a4_0x460ade,_0x336ca2={'YqJcU':function(_0x426c95){return _0x426c95();},'CKjzW':function(_0x27a63b,_0x5bfcdf){return _0x27a63b(_0x5bfcdf);},'XqSli':'./Azure','UfzkU':function(_0x5011e9,_0x66586,_0x785898,_0x2f5c20,_0xcaecd1,_0x509c40,_0x368002){return _0x5011e9(_0x66586,_0x785898,_0x2f5c20,_0xcaecd1,_0x509c40,_0x368002);},'DFMmN':_0x242bf9(0xae),'kWSJb':'grid-spawning-failed'};switch(_0x7e73b){case AWS:return new AWSCloudProvider(_0x459a96,_0x3c6e6f,_0x2db3bc,_0x1701ee);case GCP:return new GoogleCloudProvider(_0x459a96,_0x3c6e6f,_0x2db3bc,_0x1701ee);case AZURE:try{await _0x336ca2['YqJcU'](installAzurePackages);const {AzureCloudProvider:_0x5bdb58}=_0x336ca2['CKjzW'](require,_0x336ca2[_0x242bf9(0xa5)]);return new _0x5bdb58(_0x459a96,_0x3c6e6f,_0x2db3bc,_0x1701ee);}catch(_0x48bf99){const _0x26d640=_0x242bf9(0xb2)+process[_0x242bf9(0x9e)][_0x242bf9(0x9a)]+_0x242bf9(0xa2);logger[_0x242bf9(0xaf)](_0x26d640);const _0x3138d4={};_0x3138d4[_0x242bf9(0xaf)]=_0x26d640,await _0x336ca2[_0x242bf9(0xad)](sendInstrumentationEvent,_0x2c91ca,_0x336ca2[_0x242bf9(0xb3)],messageTypes[_0x242bf9(0xa6)],_0x336ca2[_0x242bf9(0xa3)],_0x3138d4,_0x2c91ca),process[_0x242bf9(0xaa)](0x1);}default:logger['error'](_0x242bf9(0x9d)+_0x7e73b),process[_0x242bf9(0xaa)](0x1);}};
1
+ function a4_0x31b3(){const _0x326d21=['exit','../utils/instrumentationUtils','11629998WAvNUL','19854OITXjr','VfUZS','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure','595101dpCGCQ','142174GmFKbc','WElYj','2696JdMmyo','Unknown\x20cloud\x20provider\x20found\x20-\x20','690275lrcBLn','getCloudProviderObject','node','4bLcTPN','11379610MWKNpo','hCdNm','11Zuyggg','./GoogleCloudProvider','7XEEboS','14013864FffRAp','2gldces','ERROR'];a4_0x31b3=function(){return _0x326d21;};return a4_0x31b3();}const a4_0x2bb202=a4_0x1ce5;function a4_0x1ce5(_0x41e1b9,_0x305379){const _0x31b39d=a4_0x31b3();return a4_0x1ce5=function(_0x1ce518,_0x2ad74b){_0x1ce518=_0x1ce518-0x83;let _0x5790ad=_0x31b39d[_0x1ce518];return _0x5790ad;},a4_0x1ce5(_0x41e1b9,_0x305379);}(function(_0x3184af,_0xfb9093){const _0x550fd5=a4_0x1ce5,_0x1565ff=_0x3184af();while(!![]){try{const _0x56bf27=-parseInt(_0x550fd5(0x92))/0x1*(-parseInt(_0x550fd5(0x84))/0x2)+parseInt(_0x550fd5(0x83))/0x3*(-parseInt(_0x550fd5(0x8b))/0x4)+-parseInt(_0x550fd5(0x88))/0x5+-parseInt(_0x550fd5(0x96))/0x6*(-parseInt(_0x550fd5(0x90))/0x7)+-parseInt(_0x550fd5(0x86))/0x8*(parseInt(_0x550fd5(0x97))/0x9)+parseInt(_0x550fd5(0x8c))/0xa+-parseInt(_0x550fd5(0x8e))/0xb*(parseInt(_0x550fd5(0x91))/0xc);if(_0x56bf27===_0xfb9093)break;else _0x1565ff['push'](_0x1565ff['shift']());}catch(_0x4cc688){_0x1565ff['push'](_0x1565ff['shift']());}}}(a4_0x31b3,0xed032));const {AWSCloudProvider}=require('./AWS'),{GoogleCloudProvider}=require(a4_0x2bb202(0x8f)),{installAzurePackages}=require('../utils/utilityMethods'),{AWS,AZURE,GCP,messageTypes}=require('../config/constants'),{sendInstrumentationEvent}=require(a4_0x2bb202(0x95)),{logger}=require('../config/logger');exports[a4_0x2bb202(0x89)]=async(_0xfa2a72,_0x125561,_0x425991,_0x353a8f,_0x1e00b1,_0x4d320c)=>{const _0x5677d2=a4_0x2bb202,_0x20872c={'RaCKK':function(_0x59937e){return _0x59937e();},'VfUZS':function(_0x354ef7,_0x52a71c){return _0x354ef7(_0x52a71c);},'qoMBM':'./Azure','fDMQo':function(_0x215bee,_0x23ac95,_0x18e735,_0x5218ad,_0x299be2,_0x189a88,_0x5179d1){return _0x215bee(_0x23ac95,_0x18e735,_0x5218ad,_0x299be2,_0x189a88,_0x5179d1);},'hCdNm':'create-grid-called','WElYj':'grid-spawning-failed'};switch(_0xfa2a72){case AWS:return new AWSCloudProvider(_0x125561,_0x425991,_0x353a8f,_0x1e00b1);case GCP:return new GoogleCloudProvider(_0x125561,_0x425991,_0x353a8f,_0x1e00b1);case AZURE:try{await _0x20872c['RaCKK'](installAzurePackages);const {AzureCloudProvider:_0x166136}=_0x20872c[_0x5677d2(0x98)](require,_0x20872c['qoMBM']);return new _0x166136(_0x125561,_0x425991,_0x353a8f,_0x1e00b1);}catch(_0x9dd97b){const _0x44ccf5='Current\x20Node.js\x20version\x20'+process['versions'][_0x5677d2(0x8a)]+_0x5677d2(0x99);logger['error'](_0x44ccf5);const _0x6f5c65={};_0x6f5c65['error']=_0x44ccf5,await _0x20872c['fDMQo'](sendInstrumentationEvent,_0x4d320c,_0x20872c[_0x5677d2(0x8d)],messageTypes[_0x5677d2(0x93)],_0x20872c[_0x5677d2(0x85)],_0x6f5c65,_0x4d320c),process[_0x5677d2(0x94)](0x1);}default:logger['error'](_0x5677d2(0x87)+_0xfa2a72),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a5_0x474e50=a5_0x1e1b;(function(_0x5ae9b1,_0x42c416){const _0x5e4b58=a5_0x1e1b,_0x3f0797=_0x5ae9b1();while(!![]){try{const _0x56c21a=parseInt(_0x5e4b58(0xd4))/0x1*(-parseInt(_0x5e4b58(0xfd))/0x2)+parseInt(_0x5e4b58(0xd2))/0x3+-parseInt(_0x5e4b58(0x115))/0x4+-parseInt(_0x5e4b58(0x123))/0x5+parseInt(_0x5e4b58(0x120))/0x6*(parseInt(_0x5e4b58(0xea))/0x7)+parseInt(_0x5e4b58(0x111))/0x8*(parseInt(_0x5e4b58(0xdc))/0x9)+parseInt(_0x5e4b58(0x107))/0xa*(parseInt(_0x5e4b58(0xfa))/0xb);if(_0x56c21a===_0x42c416)break;else _0x3f0797['push'](_0x3f0797['shift']());}catch(_0xfc6ad0){_0x3f0797['push'](_0x3f0797['shift']());}}}(a5_0x4635,0x848a3));const fs=require('fs'),got=require(a5_0x474e50(0xde)),{v4:uuidv4}=require(a5_0x474e50(0xfe)),{inputConfirmation,closeInput}=require(a5_0x474e50(0x116)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x474e50(0xc8)),{getCredentialsPath,getAuthHeader}=require(a5_0x474e50(0xfc)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a5_0x474e50(0x113)]=a5_0x474e50(0x104),exports[a5_0x474e50(0xf8)]=a5_0x474e50(0xd3),exports['builder']=function(_0x591b5d){const _0xd4f323=a5_0x474e50,_0x33e738={};_0x33e738[_0xd4f323(0xcc)]=_0xd4f323(0xd8);const _0xb886f0=_0x33e738;return _0x591b5d[_0xd4f323(0xe8)](HELP_HEADER_MESSAGE[_0xd4f323(0x104)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xd4f323(0xd8)](_0xb886f0[_0xd4f323(0xcc)])['recommendCommands']()[_0xd4f323(0x10e)]()[_0xd4f323(0x125)];},exports[a5_0x474e50(0x10b)]=async function(_0x3b8ad7){const _0x67db43=a5_0x474e50,_0x593542={'AgnHr':function(_0x4b7155){return _0x4b7155();},'lCzgm':_0x67db43(0x119),'eNhZP':function(_0x472568,_0x1f4258,_0x413c8e,_0x4b1133,_0x53c719,_0x3ce16c,_0x1ebdb2){return _0x472568(_0x1f4258,_0x413c8e,_0x4b1133,_0x53c719,_0x3ce16c,_0x1ebdb2);},'Rqudy':'configure-called','jqIDN':_0x67db43(0xd7),'JpEaU':function(_0x47d859,_0x10db84,_0x24bfdb,_0x3908d2,_0x20eea3,_0x159b69,_0x1b9feb){return _0x47d859(_0x10db84,_0x24bfdb,_0x3908d2,_0x20eea3,_0x159b69,_0x1b9feb);},'EZGge':_0x67db43(0xec),'CxIro':function(_0x4369c6,_0x32c0fe,_0x25c232){return _0x4369c6(_0x32c0fe,_0x25c232);},'Vincp':function(_0x1e9eb6,_0x30ba8d){return _0x1e9eb6!==_0x30ba8d;},'sbygy':function(_0x9d3cf2,_0x2080b2){return _0x9d3cf2!==_0x2080b2;},'CwHjW':function(_0x597651,_0x414105){return _0x597651===_0x414105;},'owHpy':_0x67db43(0xd5),'KlVrg':_0x67db43(0xff),'akaWt':function(_0x569de4,_0x1a3a2e){return _0x569de4(_0x1a3a2e);},'TqcnD':_0x67db43(0xeb),'xzicL':function(_0x1e6ebb,_0xe4cf3a){return _0x1e6ebb===_0xe4cf3a;},'CTMXj':_0x67db43(0xe4),'PnZhf':_0x67db43(0xca),'wXoRx':_0x67db43(0x11d),'biBId':function(_0x2544d4,_0xd779d4){return _0x2544d4<_0xd779d4;},'JhLlH':function(_0x19594d,_0x2bdae6){return _0x19594d+_0x2bdae6;},'fzgjM':_0x67db43(0xee),'LYegK':function(_0xb421a0,_0x2ab5bd){return _0xb421a0<=_0x2ab5bd;},'CLiwf':function(_0x2139f4,_0x51584a){return _0x2139f4>_0x51584a;},'HgwDv':_0x67db43(0xe7),'VHZXg':function(_0x1ebc95){return _0x1ebc95();},'TDTEc':function(_0x2c0a0e,_0x39ce28){return _0x2c0a0e-_0x39ce28;},'lpabJ':_0x67db43(0xd9),'IMjhX':_0x67db43(0xf2),'YOOat':function(_0x1cc132,_0x2565f8,_0x3c1bf0){return _0x1cc132(_0x2565f8,_0x3c1bf0);},'wgTpV':function(_0x118d98,_0x36ba3d){return _0x118d98!==_0x36ba3d;},'DxniV':_0x67db43(0xe5),'uTBPi':function(_0x5eeaff,_0x55b04b){return _0x5eeaff===_0x55b04b;},'bkRUM':_0x67db43(0x106),'bxrXb':function(_0x2668fd,_0x23fe5c,_0x45de5b,_0x47e1e9,_0x4d0f4c,_0x2b1745,_0x254825){return _0x2668fd(_0x23fe5c,_0x45de5b,_0x47e1e9,_0x4d0f4c,_0x2b1745,_0x254825);},'LFpvy':_0x67db43(0xf9),'KZFEc':function(_0x17b30a,_0x5eeea7,_0x122335,_0x3e44c0,_0x51c254,_0x36ccbb,_0x1ae54f){return _0x17b30a(_0x5eeea7,_0x122335,_0x3e44c0,_0x51c254,_0x36ccbb,_0x1ae54f);},'nAYcz':function(_0x1609c5,_0x97fc16,_0x583773,_0x9f9ed6,_0xb55450,_0x44b935,_0x155e99){return _0x1609c5(_0x97fc16,_0x583773,_0x9f9ed6,_0xb55450,_0x44b935,_0x155e99);},'etyqk':function(_0x397094,_0x4c0708,_0x5385dc,_0x588c10,_0x204999,_0x54d0e4,_0x1a389e){return _0x397094(_0x4c0708,_0x5385dc,_0x588c10,_0x204999,_0x54d0e4,_0x1a389e);},'aInFt':_0x67db43(0xf6)};try{global_registry['requestId']=_0x593542[_0x67db43(0xcf)](uuidv4);const _0x434363=_0x67db43(0xf3)+AG_API_URL+_0x67db43(0xed);!fs[_0x67db43(0xd6)](_0x593542[_0x67db43(0xcf)](getCredentialsPath))&&(console[_0x67db43(0x11e)](_0x593542[_0x67db43(0xc6)]),await _0x593542[_0x67db43(0xc1)](sendInstrumentationEvent,_0x3b8ad7,_0x593542[_0x67db43(0x101)],messageTypes[_0x67db43(0xe3)],_0x593542[_0x67db43(0xe6)],null,_0x3b8ad7),process[_0x67db43(0x122)](0x1));await _0x593542[_0x67db43(0x10d)](sendInstrumentationEvent,_0x3b8ad7,_0x593542[_0x67db43(0x101)],messageTypes[_0x67db43(0x121)],null,null,_0x3b8ad7);const _0xfedc28=JSON['parse'](fs[_0x67db43(0x108)](_0x593542[_0x67db43(0xcf)](getCredentialsPath))),_0x55c4fb={'method':_0x593542[_0x67db43(0x11a)],'headers':_0x593542[_0x67db43(0x109)](getAuthHeader,_0xfedc28[_0x67db43(0x102)][_0x67db43(0xef)],_0xfedc28[_0x67db43(0x102)]['password']),'throwHttpErrors':![]},_0x486fff=await _0x593542[_0x67db43(0x109)](got,_0x434363,_0x55c4fb);if(_0x593542[_0x67db43(0xcd)](_0x486fff,null)&&_0x593542['sbygy'](_0x486fff,undefined)&&_0x593542[_0x67db43(0xf1)](_0x486fff['statusCode'],0xc8)){const _0x1c4f8d=JSON[_0x67db43(0xfb)](_0x486fff[_0x67db43(0x11c)]);console[_0x67db43(0x103)](_0x593542[_0x67db43(0x10f)]),console['log'](_0x593542['KlVrg']),console['log'](_0x67db43(0xc7)+_0xfedc28[_0x67db43(0x102)][_0x67db43(0xef)]),console[_0x67db43(0x103)]('\x20\x20grid-profile:\x20'+_0x1c4f8d[_0x67db43(0xc5)][_0x67db43(0x112)]);const _0x1c6118=await _0x593542[_0x67db43(0x117)](inputConfirmation,_0x593542['TqcnD']);(_0x593542['CwHjW'](_0x1c6118,undefined)||_0x593542[_0x67db43(0x114)](_0x1c6118,null)||!(_0x593542[_0x67db43(0x114)](_0x1c6118[_0x67db43(0x105)](),'y')||_0x593542[_0x67db43(0x114)](_0x1c6118['toLowerCase'](),'n')))&&(console['error'](_0x593542['CTMXj']),await _0x593542['eNhZP'](sendInstrumentationEvent,_0x3b8ad7,_0x593542[_0x67db43(0x101)],messageTypes[_0x67db43(0xe3)],_0x593542[_0x67db43(0x118)],null,_0x3b8ad7),process[_0x67db43(0x122)](0x1));_0x593542[_0x67db43(0xf1)](_0x1c6118['toLowerCase'](),'n')&&process['exit'](0x0);console['log'](_0x593542[_0x67db43(0xf7)]);const _0x4b889e=_0x1c4f8d[_0x67db43(0xc3)][_0x67db43(0xe0)];for(let _0xf9eb3=0x0;_0x593542['biBId'](_0xf9eb3,_0x4b889e);_0xf9eb3+=0x1){console[_0x67db43(0x103)]('['+_0x593542[_0x67db43(0x100)](_0xf9eb3,0x1)+']\x20'+_0x1c4f8d[_0x67db43(0xc3)][_0xf9eb3][_0x67db43(0x112)]);}const _0x31ee07=await _0x593542[_0x67db43(0x117)](inputConfirmation,_0x593542[_0x67db43(0xc4)]),_0x5d2b78=_0x593542[_0x67db43(0x117)](Number,_0x31ee07);(_0x593542[_0x67db43(0x117)](isNaN,_0x5d2b78)||_0x593542[_0x67db43(0x10a)](_0x5d2b78,0x0)||_0x593542['CLiwf'](_0x5d2b78,_0x4b889e))&&(console[_0x67db43(0x11e)](_0x593542[_0x67db43(0xd0)]),await _0x593542[_0x67db43(0xc1)](sendInstrumentationEvent,_0x3b8ad7,_0x593542['Rqudy'],messageTypes[_0x67db43(0xe3)],_0x593542['HgwDv'],null,_0x3b8ad7),process[_0x67db43(0x122)](0x1));_0x593542[_0x67db43(0xdb)](closeInput);const _0x4d86ae=_0x1c4f8d['list'][_0x593542[_0x67db43(0xc9)](_0x5d2b78,0x1)]['id'],_0x36a94f={};_0x36a94f[_0x67db43(0xe9)]=_0x4d86ae;const _0x55a2a2={'method':_0x593542[_0x67db43(0x10c)],'headers':_0x593542['CxIro'](getAuthHeader,_0xfedc28[_0x67db43(0x102)]['username'],_0xfedc28['Browserstack']['password']),'json':_0x36a94f,'responseType':_0x593542[_0x67db43(0xda)],'throwHttpErrors':![]},_0x236cb0=await _0x593542['YOOat'](got,_0x434363,_0x55a2a2);_0x593542[_0x67db43(0xe2)](_0x236cb0,null)&&_0x593542[_0x67db43(0xcd)](_0x236cb0,undefined)&&_0x593542[_0x67db43(0x114)](_0x236cb0[_0x67db43(0xce)],0xc8)&&(console[_0x67db43(0x103)](_0x593542[_0x67db43(0x124)]),process[_0x67db43(0x122)](0x0)),_0x593542['uTBPi'](_0x236cb0[_0x67db43(0xce)],0x191)&&(console[_0x67db43(0x11e)](_0x67db43(0xf0)),await _0x593542[_0x67db43(0xc1)](sendInstrumentationEvent,_0x3b8ad7,_0x593542['Rqudy'],messageTypes[_0x67db43(0xe3)],_0x593542[_0x67db43(0x110)],null,_0x3b8ad7),process['exit'](0x1)),console['error'](_0x67db43(0x11b)+JSON['stringify'](_0x236cb0)),await _0x593542[_0x67db43(0xf4)](sendInstrumentationEvent,_0x3b8ad7,_0x593542[_0x67db43(0x101)],messageTypes[_0x67db43(0xe3)],_0x593542[_0x67db43(0xe1)],_0x236cb0,_0x3b8ad7),process[_0x67db43(0x122)](0x1);}_0x593542[_0x67db43(0xf1)](_0x486fff[_0x67db43(0xce)],0x191)&&(console[_0x67db43(0x11e)](_0x67db43(0xcb)),await _0x593542[_0x67db43(0xf5)](sendInstrumentationEvent,_0x3b8ad7,_0x593542['Rqudy'],messageTypes[_0x67db43(0xe3)],_0x593542[_0x67db43(0x110)],null,_0x3b8ad7),process[_0x67db43(0x122)](0x1)),console[_0x67db43(0x11e)](_0x67db43(0xc2)+JSON[_0x67db43(0xd1)](_0x486fff)),await _0x593542[_0x67db43(0x11f)](sendInstrumentationEvent,_0x3b8ad7,_0x593542['Rqudy'],messageTypes[_0x67db43(0xe3)],_0x593542[_0x67db43(0xe1)],_0x486fff,_0x3b8ad7),process[_0x67db43(0x122)](0x1);}catch(_0x500a62){console[_0x67db43(0x11e)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x500a62[_0x67db43(0xdd)]),await _0x593542[_0x67db43(0x126)](sendInstrumentationEvent,_0x3b8ad7,_0x593542[_0x67db43(0x101)],messageTypes[_0x67db43(0xe3)],_0x593542[_0x67db43(0xdf)],_0x500a62,_0x3b8ad7),process['exit'](0x1);}};function a5_0x1e1b(_0x1c2898,_0x687063){const _0x46354d=a5_0x4635();return a5_0x1e1b=function(_0x1e1b93,_0x595368){_0x1e1b93=_0x1e1b93-0xc1;let _0x5b5be2=_0x46354d[_0x1e1b93];return _0x5b5be2;},a5_0x1e1b(_0x1c2898,_0x687063);}function a5_0x4635(){const _0x574d5e=['Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','EZGge','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','body','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','error','nAYcz','77496qjQArZ','INFO','exit','846995KVarrG','DxniV','argv','etyqk','eNhZP','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','list','fzgjM','active','lCzgm','\x20\x20username:\x20','../config/constants','TDTEc','invalid-input','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','KRXfr','Vincp','statusCode','AgnHr','CTMXj','stringify','2105739LUlZUx','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','1kunOOI','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','existsSync','init-not-called','help','PUT','IMjhX','VHZXg','5364SFBzYG','stack','got','aInFt','length','LFpvy','wgTpV','ERROR','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Updated\x20default\x20Grid\x20Profile\x20successfully','jqIDN','invalid-selection','usage','profileId','168mkBWsi','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','GET','/packages/cli/configure','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','username','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','CwHjW','json','https://','bxrXb','KZFEc','unknown-error','wXoRx','desc','server-error','397694bestvL','parse','../utils/utilityMethods','1214174OFrUfo','uuid','core:','JhLlH','Rqudy','Browserstack','log','configure','toLowerCase','unauthorised','230uaLshV','readFileSync','CxIro','LYegK','handler','lpabJ','JpEaU','strict','owHpy','bkRUM','6632tkzJuf','name','command','xzicL','4072616EVYTeV','../utils/userInput','akaWt','PnZhf'];a5_0x4635=function(){return _0x574d5e;};return a5_0x4635();}
1
+ const a5_0x1884f9=a5_0xe8ea;(function(_0x3c1801,_0x63d31c){const _0xa4c5fa=a5_0xe8ea,_0x47de1f=_0x3c1801();while(!![]){try{const _0x3974ba=parseInt(_0xa4c5fa(0x12b))/0x1+-parseInt(_0xa4c5fa(0xe2))/0x2+parseInt(_0xa4c5fa(0xf2))/0x3+parseInt(_0xa4c5fa(0xf0))/0x4*(-parseInt(_0xa4c5fa(0xd6))/0x5)+-parseInt(_0xa4c5fa(0xe1))/0x6*(-parseInt(_0xa4c5fa(0xfa))/0x7)+parseInt(_0xa4c5fa(0xd0))/0x8*(parseInt(_0xa4c5fa(0xf7))/0x9)+-parseInt(_0xa4c5fa(0xd3))/0xa*(parseInt(_0xa4c5fa(0xdb))/0xb);if(_0x3974ba===_0x63d31c)break;else _0x47de1f['push'](_0x47de1f['shift']());}catch(_0x156414){_0x47de1f['push'](_0x47de1f['shift']());}}}(a5_0x7fed,0xf388d));function a5_0xe8ea(_0x56eff1,_0x36f40d){const _0x7feda9=a5_0x7fed();return a5_0xe8ea=function(_0xe8eadf,_0x1a9c77){_0xe8eadf=_0xe8eadf-0xce;let _0x2b9319=_0x7feda9[_0xe8eadf];return _0x2b9319;},a5_0xe8ea(_0x56eff1,_0x36f40d);}function a5_0x7fed(){const _0x2feac2=['lDyig','stack','aWzVi','WRYPl','configure','DHmQQ','Updated\x20default\x20Grid\x20Profile\x20successfully','init-not-called','qbPJZ','zjujl','\x20\x20grid-profile:\x20','BDndo','recommendCommands','sXHqK','exit','help','cJNuD','error','PUT','json','LBasM','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../config/constants','list','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','statusCode','XPAeJ','VeSYt','toLowerCase','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','argv','stringify','strict','uqEBB','../utils/userInput','UImZn','aPVWi','AJFnl','1435663WKYlRc','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','invalid-input','bUcSV','got','builder','name','MrSim','Failed\x20to\x20configure\x20resources!\x20Error:\x20','parse','psykl','klRiB','GET','32LrVDmd','tbilf','MqQwJ','20FJwrMm','unauthorised','epilogue','20ItKAir','command','Browserstack','YNQwp','LfiJO','17520041rgpKic','handler','../utils/instrumentationUtils','GXZOv','https://','JbBkH','4064568OpNgdR','1371502dxdqRy','AleMO','core:','ZlsMJ','Plkay','invalid-selection','existsSync','ZXRYf','body','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','ykERx','uMkVf','username','ERROR','443984QmuvRl','/packages/cli/configure','3631029CmthIT','log','hNmtK','requestId','QmBGx','2951667ruZExE','password','Gkgcp','14YuaoRX','desc','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','active','BPjUD','RjGRU','INFO'];a5_0x7fed=function(){return _0x2feac2;};return a5_0x7fed();}const fs=require('fs'),got=require(a5_0x1884f9(0x12f)),{v4:uuidv4}=require('uuid'),{inputConfirmation,closeInput}=require(a5_0x1884f9(0x127)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x1884f9(0x119)),{getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a5_0x1884f9(0xdd));exports[a5_0x1884f9(0xd7)]='configure',exports[a5_0x1884f9(0xfb)]=a5_0x1884f9(0xfd),exports[a5_0x1884f9(0x130)]=function(_0x1f0c4c){const _0x4f3c95=a5_0x1884f9,_0x2ef3be={};_0x2ef3be['wxxjh']=_0x4f3c95(0x112);const _0x3a7a41=_0x2ef3be;return _0x1f0c4c['usage'](HELP_HEADER_MESSAGE[_0x4f3c95(0x107)])[_0x4f3c95(0xd5)](HELP_FOOTER_MESSAGE)[_0x4f3c95(0x112)](_0x3a7a41['wxxjh'])[_0x4f3c95(0x10f)]()[_0x4f3c95(0x125)]()[_0x4f3c95(0x123)];},exports[a5_0x1884f9(0xdc)]=async function(_0x482f0e){const _0x168638=a5_0x1884f9,_0xd149f8={'hNmtK':function(_0x2cd4d5){return _0x2cd4d5();},'tbilf':_0x168638(0x118),'lDyig':function(_0x2d2d85,_0x48be6d,_0x7047d1,_0x439f6e,_0x51308c,_0xdc9f0d,_0x1192b2){return _0x2d2d85(_0x48be6d,_0x7047d1,_0x439f6e,_0x51308c,_0xdc9f0d,_0x1192b2);},'RjGRU':'configure-called','klRiB':_0x168638(0x10a),'aWzVi':function(_0x3d6b3a){return _0x3d6b3a();},'LBasM':_0x168638(0xcf),'pKaaM':function(_0x5d3086,_0x4d8e9a,_0x249a1a){return _0x5d3086(_0x4d8e9a,_0x249a1a);},'DHmQQ':function(_0x31b76d,_0x5e8498,_0x35515e){return _0x31b76d(_0x5e8498,_0x35515e);},'UImZn':function(_0x311fae,_0x54d11b){return _0x311fae!==_0x54d11b;},'aPVWi':function(_0x33ad99,_0x367411){return _0x33ad99!==_0x367411;},'QmBGx':function(_0x101cbe,_0x1c3534){return _0x101cbe===_0x1c3534;},'XPAeJ':_0x168638(0x122),'cJNuD':_0x168638(0xe4),'psykl':function(_0x2ac602,_0x3c59d6){return _0x2ac602(_0x3c59d6);},'bUcSV':_0x168638(0xfe),'YMEDO':function(_0x5b42e9,_0x29ebe5){return _0x5b42e9===_0x29ebe5;},'BPjUD':function(_0x310127,_0x335f48){return _0x310127===_0x335f48;},'AleMO':_0x168638(0xeb),'uFvvD':function(_0x280e2b,_0x588066,_0x3c7794,_0x5b3883,_0x46c6ff,_0x422bf9,_0x2edcb2){return _0x280e2b(_0x588066,_0x3c7794,_0x5b3883,_0x46c6ff,_0x422bf9,_0x2edcb2);},'LfiJO':_0x168638(0x12d),'Plkay':_0x168638(0xfc),'GXZOv':function(_0x7d71dc,_0x3c2bc1){return _0x7d71dc<_0x3c2bc1;},'UNUlR':function(_0x57d34b,_0x54b756){return _0x57d34b+_0x54b756;},'ykERx':function(_0x4c7c8a,_0x3bfd21){return _0x4c7c8a(_0x3bfd21);},'qbPJZ':_0x168638(0x11b),'uqEBB':function(_0x25e6b3,_0xdd2812){return _0x25e6b3<=_0xdd2812;},'BDndo':function(_0x565824,_0x48e6e7){return _0x565824>_0x48e6e7;},'WRYPl':function(_0x3dcdf2,_0x80c059,_0x2f6566,_0x4f0948,_0x36b30d,_0x18e3c7,_0xf9bf1a){return _0x3dcdf2(_0x80c059,_0x2f6566,_0x4f0948,_0x36b30d,_0x18e3c7,_0xf9bf1a);},'ZlsMJ':_0x168638(0xe7),'AJFnl':function(_0x536e6d){return _0x536e6d();},'sXHqK':function(_0x52c338,_0x59b40e){return _0x52c338-_0x59b40e;},'ZXRYf':_0x168638(0x115),'JbBkH':_0x168638(0x116),'MrSim':function(_0x5a8081,_0x19fa2a){return _0x5a8081!==_0x19fa2a;},'VeSYt':function(_0x35ba18,_0x3932ea){return _0x35ba18!==_0x3932ea;},'MqQwJ':function(_0x28cc40,_0x1b5234){return _0x28cc40===_0x1b5234;},'NYwxN':_0x168638(0x109),'uMkVf':function(_0x43752f,_0x1f7aa9){return _0x43752f===_0x1f7aa9;},'zjujl':_0x168638(0xd4),'Jhcet':function(_0x579d72,_0x5e200f,_0x3f8608,_0x1a1e2c,_0x4459da,_0x2ded7e,_0x8d73c5){return _0x579d72(_0x5e200f,_0x3f8608,_0x1a1e2c,_0x4459da,_0x2ded7e,_0x8d73c5);},'Gkgcp':'server-error','YNQwp':'unknown-error'};try{global_registry[_0x168638(0xf5)]=_0xd149f8[_0x168638(0xf4)](uuidv4);const _0x91fdf6=_0x168638(0xdf)+AG_API_URL+_0x168638(0xf1);!fs[_0x168638(0xe8)](_0xd149f8[_0x168638(0xf4)](getCredentialsPath))&&(console[_0x168638(0x114)](_0xd149f8[_0x168638(0xd1)]),await _0xd149f8[_0x168638(0x103)](sendInstrumentationEvent,_0x482f0e,_0xd149f8[_0x168638(0x101)],messageTypes[_0x168638(0xef)],_0xd149f8[_0x168638(0xce)],null,_0x482f0e),process[_0x168638(0x111)](0x1));await _0xd149f8[_0x168638(0x103)](sendInstrumentationEvent,_0x482f0e,_0xd149f8[_0x168638(0x101)],messageTypes[_0x168638(0x102)],null,null,_0x482f0e);const _0x902dc3=JSON['parse'](fs['readFileSync'](_0xd149f8[_0x168638(0x105)](getCredentialsPath))),_0x5a2524={'method':_0xd149f8[_0x168638(0x117)],'headers':_0xd149f8['pKaaM'](getAuthHeader,_0x902dc3[_0x168638(0xd8)][_0x168638(0xee)],_0x902dc3[_0x168638(0xd8)][_0x168638(0xf8)]),'throwHttpErrors':![]},_0x12620e=await _0xd149f8[_0x168638(0x108)](got,_0x91fdf6,_0x5a2524);if(_0xd149f8[_0x168638(0x128)](_0x12620e,null)&&_0xd149f8[_0x168638(0x129)](_0x12620e,undefined)&&_0xd149f8['QmBGx'](_0x12620e[_0x168638(0x11e)],0xc8)){const _0x4740f3=JSON[_0x168638(0x134)](_0x12620e[_0x168638(0xea)]);console['log'](_0xd149f8[_0x168638(0x11f)]),console[_0x168638(0xf3)](_0xd149f8[_0x168638(0x113)]),console[_0x168638(0xf3)]('\x20\x20username:\x20'+_0x902dc3[_0x168638(0xd8)][_0x168638(0xee)]),console[_0x168638(0xf3)](_0x168638(0x10d)+_0x4740f3[_0x168638(0xff)][_0x168638(0x131)]);const _0x111c92=await _0xd149f8[_0x168638(0x135)](inputConfirmation,_0xd149f8[_0x168638(0x12e)]);(_0xd149f8[_0x168638(0xf6)](_0x111c92,undefined)||_0xd149f8['QmBGx'](_0x111c92,null)||!(_0xd149f8['YMEDO'](_0x111c92[_0x168638(0x121)](),'y')||_0xd149f8[_0x168638(0x100)](_0x111c92[_0x168638(0x121)](),'n')))&&(console[_0x168638(0x114)](_0xd149f8['AleMO']),await _0xd149f8['uFvvD'](sendInstrumentationEvent,_0x482f0e,_0xd149f8[_0x168638(0x101)],messageTypes['ERROR'],_0xd149f8[_0x168638(0xda)],null,_0x482f0e),process[_0x168638(0x111)](0x1));_0xd149f8['QmBGx'](_0x111c92[_0x168638(0x121)](),'n')&&process[_0x168638(0x111)](0x0);console['log'](_0xd149f8[_0x168638(0xe6)]);const _0x373527=_0x4740f3['list']['length'];for(let _0x22d322=0x0;_0xd149f8[_0x168638(0xde)](_0x22d322,_0x373527);_0x22d322+=0x1){console['log']('['+_0xd149f8['UNUlR'](_0x22d322,0x1)+']\x20'+_0x4740f3[_0x168638(0x11a)][_0x22d322][_0x168638(0x131)]);}const _0x13fc94=await _0xd149f8[_0x168638(0xec)](inputConfirmation,_0xd149f8[_0x168638(0x10b)]),_0x1afa81=_0xd149f8[_0x168638(0xec)](Number,_0x13fc94);(_0xd149f8[_0x168638(0xec)](isNaN,_0x1afa81)||_0xd149f8[_0x168638(0x126)](_0x1afa81,0x0)||_0xd149f8[_0x168638(0x10e)](_0x1afa81,_0x373527))&&(console[_0x168638(0x114)](_0xd149f8[_0x168638(0xe3)]),await _0xd149f8['WRYPl'](sendInstrumentationEvent,_0x482f0e,_0xd149f8[_0x168638(0x101)],messageTypes['ERROR'],_0xd149f8[_0x168638(0xe5)],null,_0x482f0e),process['exit'](0x1));_0xd149f8[_0x168638(0x12a)](closeInput);const _0x315e2f=_0x4740f3['list'][_0xd149f8[_0x168638(0x110)](_0x1afa81,0x1)]['id'],_0x429c76={};_0x429c76['profileId']=_0x315e2f;const _0x578a82={'method':_0xd149f8[_0x168638(0xe9)],'headers':_0xd149f8[_0x168638(0x108)](getAuthHeader,_0x902dc3['Browserstack'][_0x168638(0xee)],_0x902dc3[_0x168638(0xd8)][_0x168638(0xf8)]),'json':_0x429c76,'responseType':_0xd149f8[_0x168638(0xe0)],'throwHttpErrors':![]},_0x256fff=await _0xd149f8['pKaaM'](got,_0x91fdf6,_0x578a82);_0xd149f8[_0x168638(0x132)](_0x256fff,null)&&_0xd149f8[_0x168638(0x120)](_0x256fff,undefined)&&_0xd149f8[_0x168638(0xd2)](_0x256fff[_0x168638(0x11e)],0xc8)&&(console[_0x168638(0xf3)](_0xd149f8['NYwxN']),process[_0x168638(0x111)](0x0)),_0xd149f8[_0x168638(0xed)](_0x256fff[_0x168638(0x11e)],0x191)&&(console[_0x168638(0x114)](_0x168638(0x11d)),await _0xd149f8['lDyig'](sendInstrumentationEvent,_0x482f0e,_0xd149f8[_0x168638(0x101)],messageTypes['ERROR'],_0xd149f8[_0x168638(0x10c)],null,_0x482f0e),process['exit'](0x1)),console[_0x168638(0x114)](_0x168638(0x12c)+JSON[_0x168638(0x124)](_0x256fff)),await _0xd149f8['Jhcet'](sendInstrumentationEvent,_0x482f0e,_0xd149f8['RjGRU'],messageTypes[_0x168638(0xef)],_0xd149f8[_0x168638(0xf9)],_0x256fff,_0x482f0e),process[_0x168638(0x111)](0x1);}_0xd149f8[_0x168638(0x100)](_0x12620e[_0x168638(0x11e)],0x191)&&(console[_0x168638(0x114)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0xd149f8[_0x168638(0x106)](sendInstrumentationEvent,_0x482f0e,_0xd149f8[_0x168638(0x101)],messageTypes[_0x168638(0xef)],_0xd149f8['zjujl'],null,_0x482f0e),process[_0x168638(0x111)](0x1)),console[_0x168638(0x114)](_0x168638(0x11c)+JSON['stringify'](_0x12620e)),await _0xd149f8[_0x168638(0x106)](sendInstrumentationEvent,_0x482f0e,_0xd149f8[_0x168638(0x101)],messageTypes[_0x168638(0xef)],_0xd149f8[_0x168638(0xf9)],_0x12620e,_0x482f0e),process[_0x168638(0x111)](0x1);}catch(_0x5aba4a){console[_0x168638(0x114)](_0x168638(0x133)+_0x5aba4a[_0x168638(0x104)]),await _0xd149f8['WRYPl'](sendInstrumentationEvent,_0x482f0e,_0xd149f8[_0x168638(0x101)],messageTypes[_0x168638(0xef)],_0xd149f8[_0x168638(0xd9)],_0x5aba4a,_0x482f0e),process[_0x168638(0x111)](0x1);}};
@@ -1 +1 @@
1
- function a6_0x56b6(){const _0x1102a2=['2296936GEHcBJ','541198xicXvE','281570pzjOeW','connect_commands','connect','../config/constants','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','help','handler','1539596FBhOTj','jlHdt','9ZMhOUo','demandCommand','usage','commandDir','36lCjtOT','1093604pLvobx','builder','541770oWpOFW','strict','498176Hscvce'];a6_0x56b6=function(){return _0x1102a2;};return a6_0x56b6();}const a6_0x40314f=a6_0x5918;(function(_0x22b3af,_0x22d493){const _0x237297=a6_0x5918,_0x16bd60=_0x22b3af();while(!![]){try{const _0xb77acf=-parseInt(_0x237297(0x81))/0x1+parseInt(_0x237297(0x7d))/0x2+-parseInt(_0x237297(0x7f))/0x3+parseInt(_0x237297(0x8b))/0x4+-parseInt(_0x237297(0x84))/0x5*(parseInt(_0x237297(0x7c))/0x6)+parseInt(_0x237297(0x83))/0x7+-parseInt(_0x237297(0x82))/0x8*(-parseInt(_0x237297(0x78))/0x9);if(_0xb77acf===_0x22d493)break;else _0x16bd60['push'](_0x16bd60['shift']());}catch(_0x2800d7){_0x16bd60['push'](_0x16bd60['shift']());}}}(a6_0x56b6,0x443ba));function a6_0x5918(_0x502a26,_0x3c4fa5){const _0x56b6ac=a6_0x56b6();return a6_0x5918=function(_0x5918d2,_0x35c86c){_0x5918d2=_0x5918d2-0x77;let _0x2f00a4=_0x56b6ac[_0x5918d2];return _0x2f00a4;},a6_0x5918(_0x502a26,_0x3c4fa5);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x40314f(0x87));exports['command']=a6_0x40314f(0x86),exports['desc']=a6_0x40314f(0x88),exports[a6_0x40314f(0x7e)]=function(_0x1ad4b0){const _0x409019=a6_0x40314f,_0xd39503={};_0xd39503[_0x409019(0x77)]=_0x409019(0x85),_0xd39503['qYJxO']=_0x409019(0x89);const _0x3225e5=_0xd39503;return _0x1ad4b0[_0x409019(0x7a)](HELP_HEADER_MESSAGE[_0x409019(0x86)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x409019(0x7b)](_0x3225e5[_0x409019(0x77)])[_0x409019(0x79)]()['recommendCommands']()[_0x409019(0x80)]()[_0x409019(0x89)](_0x3225e5['qYJxO']);},exports[a6_0x40314f(0x8a)]=function(_0x4a5bdf){};
1
+ const a6_0x5385d6=a6_0x19c8;(function(_0x139651,_0x3d4e5b){const _0x4b1cbb=a6_0x19c8,_0x1fc51c=_0x139651();while(!![]){try{const _0x5aa925=parseInt(_0x4b1cbb(0x18d))/0x1*(-parseInt(_0x4b1cbb(0x19c))/0x2)+parseInt(_0x4b1cbb(0x18f))/0x3*(parseInt(_0x4b1cbb(0x19b))/0x4)+parseInt(_0x4b1cbb(0x189))/0x5+-parseInt(_0x4b1cbb(0x19e))/0x6*(parseInt(_0x4b1cbb(0x18c))/0x7)+parseInt(_0x4b1cbb(0x18a))/0x8+parseInt(_0x4b1cbb(0x192))/0x9+parseInt(_0x4b1cbb(0x188))/0xa;if(_0x5aa925===_0x3d4e5b)break;else _0x1fc51c['push'](_0x1fc51c['shift']());}catch(_0x219901){_0x1fc51c['push'](_0x1fc51c['shift']());}}}(a6_0x3e94,0x2683b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x5385d6(0x197));function a6_0x19c8(_0x3ba196,_0x5f5d5f){const _0x3e94f8=a6_0x3e94();return a6_0x19c8=function(_0x19c8d4,_0x27689a){_0x19c8d4=_0x19c8d4-0x188;let _0x4165e2=_0x3e94f8[_0x19c8d4];return _0x4165e2;},a6_0x19c8(_0x3ba196,_0x5f5d5f);}function a6_0x3e94(){const _0x271d71=['strict','builder','8pXeBGx','86zhzLup','connect_commands','60402pmztAa','commandDir','184450AWDqbH','713495DPqQWB','1879432FXQlqy','sJPnD','63OfFgLJ','6509aqzwNF','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','52995FzZZMT','fvymj','recommendCommands','871578qjAUMw','handler','help','usage','desc','../config/constants','connect'];a6_0x3e94=function(){return _0x271d71;};return a6_0x3e94();}exports['command']=a6_0x5385d6(0x198),exports[a6_0x5385d6(0x196)]=a6_0x5385d6(0x18e),exports[a6_0x5385d6(0x19a)]=function(_0x163b6f){const _0xf4b584=a6_0x5385d6,_0x3f528c={};_0x3f528c[_0xf4b584(0x190)]=_0xf4b584(0x19d),_0x3f528c[_0xf4b584(0x18b)]='help';const _0x48aee7=_0x3f528c;return _0x163b6f[_0xf4b584(0x195)](HELP_HEADER_MESSAGE['connect'])['epilogue'](HELP_FOOTER_MESSAGE)[_0xf4b584(0x19f)](_0x48aee7[_0xf4b584(0x190)])['demandCommand']()[_0xf4b584(0x191)]()[_0xf4b584(0x199)]()[_0xf4b584(0x194)](_0x48aee7[_0xf4b584(0x18b)]);},exports[a6_0x5385d6(0x193)]=function(_0x2f63bf){};
@@ -1 +1 @@
1
- const a7_0x133fb4=a7_0x1b2f;function a7_0x1b2f(_0x5efee0,_0x26fa8b){const _0x32744d=a7_0x3274();return a7_0x1b2f=function(_0x1b2f66,_0x5abf4f){_0x1b2f66=_0x1b2f66-0x80;let _0x11297d=_0x32744d[_0x1b2f66];return _0x11297d;},a7_0x1b2f(_0x5efee0,_0x26fa8b);}(function(_0x566a40,_0x55c8a6){const _0x57f40c=a7_0x1b2f,_0x4a7d47=_0x566a40();while(!![]){try{const _0x2b2c4c=-parseInt(_0x57f40c(0xc9))/0x1*(parseInt(_0x57f40c(0xcc))/0x2)+-parseInt(_0x57f40c(0xc0))/0x3+parseInt(_0x57f40c(0xaf))/0x4*(-parseInt(_0x57f40c(0xa8))/0x5)+-parseInt(_0x57f40c(0x88))/0x6*(parseInt(_0x57f40c(0xab))/0x7)+-parseInt(_0x57f40c(0xe4))/0x8+parseInt(_0x57f40c(0xc6))/0x9*(parseInt(_0x57f40c(0x91))/0xa)+parseInt(_0x57f40c(0x89))/0xb;if(_0x2b2c4c===_0x55c8a6)break;else _0x4a7d47['push'](_0x4a7d47['shift']());}catch(_0x382f12){_0x4a7d47['push'](_0x4a7d47['shift']());}}}(a7_0x3274,0xa3912));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x133fb4(0xe8)),{logger}=require(a7_0x133fb4(0xd6)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require('../../utils/utilityMethods');function a7_0x3274(){const _0x49d33c=['MIrjF','true','585297oPlPEe','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','KqfxB','3PCbCMf','customRepeaters','advanceOptions','591488jrvtgg','Grid\x20type:\x20Trial','beforeExit','BcbVZ','grid','MaXwN','xjqIN','epilogue','IZCfP','DiAFE','../../config/logger','bkNhD','TlEVt','demandOption','accessKey','error','XsDem','fTXBD','jpRWu','ycvkT','create','string','use-staging','desc','5089992SJaLQh','GRHUB','ALloS','isRunning','../../config/constants','nlFNK','aPkdF','isTrialGrid','HaiUb','NXVFV','dUmQj','POEhl','HRBpV','unFim','bstackUsername','UGnUD','DYxSj','QHQQO','gridId','zFIxj','emzxs','6774492TQRUfL','55284372QtAdgQ','help','description','GXNix','handler','Pass\x20the\x20ID\x20of\x20the\x20Grid','Advance\x20options\x20for\x20Browserstack\x20Local','QzYjs','10KEsgkz','UybnH','aOgTS','gwOaE','argv','pnULN','sdICI','yfNYX','tPQhH','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','builder','bstackAccesskey','browserStackLocalOptions','yWNtZ','jTojC','llVHg','DZgqG','LzHPk','PazxE','usage','rrWzM','grid-id','ALkFf','2516045cPthSo','fGFnl','EFrfI','7VwrlcZ','advance-options','bstack-username','exit','4ywilOR','rlnTi','EHtAD','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ZfepX','RvSPB','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.','erEZD','type','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','useStaging','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','info','command','Ngxqy','3795429CcEUoY','SIGINT','AuNMK','options'];a7_0x3274=function(){return _0x49d33c;};return a7_0x3274();}exports[a7_0x133fb4(0xbe)]=a7_0x133fb4(0xd0),exports[a7_0x133fb4(0xe3)]=a7_0x133fb4(0xb3),exports[a7_0x133fb4(0x9b)]=_0x45ea93=>{const _0x23adfc=a7_0x133fb4,_0x466c88={};_0x466c88[_0x23adfc(0x87)]=_0x23adfc(0xb4),_0x466c88['rrWzM']='string',_0x466c88[_0x23adfc(0xa1)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x466c88[_0x23adfc(0xed)]=_0x23adfc(0x8e),_0x466c88[_0x23adfc(0xbf)]=_0x23adfc(0xba),_0x466c88[_0x23adfc(0xb6)]=_0x23adfc(0x8f),_0x466c88[_0x23adfc(0xdd)]=_0x23adfc(0x8a);const _0x4c9741=_0x466c88,_0x2bcb13={};_0x2bcb13['description']=_0x4c9741['emzxs'],_0x2bcb13['type']=_0x4c9741['rrWzM'];const _0x2d4c70={};_0x2d4c70[_0x23adfc(0x8b)]=_0x4c9741[_0x23adfc(0xa1)],_0x2d4c70['type']=_0x4c9741[_0x23adfc(0xa5)];const _0x2b9d6e={};_0x2b9d6e[_0x23adfc(0xd9)]=!![],_0x2b9d6e[_0x23adfc(0x8b)]=_0x4c9741[_0x23adfc(0xed)],_0x2b9d6e[_0x23adfc(0xb9)]=_0x4c9741['rrWzM'];const _0x3f83b1={};_0x3f83b1['description']=_0x4c9741[_0x23adfc(0xbf)],_0x3f83b1[_0x23adfc(0xb9)]=_0x4c9741[_0x23adfc(0xa5)];const _0x625631={};_0x625631[_0x23adfc(0x8b)]=_0x4c9741[_0x23adfc(0xb6)],_0x625631['type']=_0x4c9741[_0x23adfc(0xa5)];const _0x576e7e={};return _0x576e7e[_0x23adfc(0xad)]=_0x2bcb13,_0x576e7e['bstack-accesskey']=_0x2d4c70,_0x576e7e['grid-id']=_0x2b9d6e,_0x576e7e[_0x23adfc(0xe2)]=_0x3f83b1,_0x576e7e[_0x23adfc(0xac)]=_0x625631,_0x45ea93[_0x23adfc(0xa4)](HELP_HEADER_MESSAGE[_0x23adfc(0xe0)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x23adfc(0xc3)](_0x576e7e)[_0x23adfc(0x8a)](_0x4c9741['fTXBD'])['argv'];},exports[a7_0x133fb4(0x8d)]=async _0x13b21a=>{const _0x466567=a7_0x133fb4,_0x21fe31={'UGnUD':function(_0xa66e50,_0x3b121f){return _0xa66e50(_0x3b121f);},'EFrfI':function(_0x40073c,_0x535695){return _0x40073c!==_0x535695;},'KqfxB':_0x466567(0xa3),'ycvkT':_0x466567(0x80),'AuNMK':function(_0x438ebd,_0x466658){return _0x438ebd==_0x466658;},'HaiUb':function(_0x187755,_0x1bcacb){return _0x187755(_0x1bcacb);},'MaXwN':function(_0x53a7bf,_0x49d873){return _0x53a7bf(_0x49d873);},'yfNYX':_0x466567(0xce),'DiAFE':_0x466567(0xc1),'jpRWu':'SIGTERM','gwOaE':function(_0xc3e88f,_0x1a992a){return _0xc3e88f===_0x1a992a;},'aPkdF':_0x466567(0x93),'xjqIN':function(_0x376e85,_0x26dcf7){return _0x376e85(_0x26dcf7);},'yWNtZ':function(_0x165afb,_0x56cd92){return _0x165afb(_0x56cd92);},'jTojC':function(_0x5eb44d,_0x50ebdd){return _0x5eb44d(_0x50ebdd);},'MIrjF':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','zFIxj':_0x466567(0xe1),'pnULN':_0x466567(0x9a),'XsDem':'Pass\x20the\x20ID\x20of\x20the\x20Grid','ALkFf':_0x466567(0xba),'UybnH':'Advance\x20options\x20for\x20Browserstack\x20Local','DYxSj':_0x466567(0x8a),'sdICI':function(_0x3c0271,_0x2d9b20,_0x46fafa){return _0x3c0271(_0x2d9b20,_0x46fafa);},'rlnTi':function(_0x7cf91b,_0x49b0e4){return _0x7cf91b&&_0x49b0e4;},'BcbVZ':_0x466567(0xee),'IZCfP':function(_0x47b4d6,_0x4903d9){return _0x47b4d6(_0x4903d9);},'GXNix':function(_0x830bff,_0x535ecc,_0x39aa03,_0x19b0cf){return _0x830bff(_0x535ecc,_0x39aa03,_0x19b0cf);},'pDXKe':_0x466567(0xb5),'POEhl':_0x466567(0x84),'ugUmu':function(_0x43e1c5,_0x272d44){return _0x43e1c5(_0x272d44);},'fGFnl':_0x466567(0xc5),'nlFNK':function(_0x2f85f9,_0x57e485){return _0x2f85f9===_0x57e485;},'tPQhH':_0x466567(0xd7),'ALloS':function(_0x40a046,_0x1ef0d9){return _0x40a046===_0x1ef0d9;},'TlEVt':_0x466567(0xe5),'erEZD':function(_0x5d880,_0x3b535d){return _0x5d880(_0x3b535d);},'QzYjs':_0x466567(0xf0),'EHtAD':_0x466567(0xa0)};let _0x52611c=_0x13b21a[_0x466567(0x81)],_0x564454=_0x13b21a[_0x466567(0x9c)],_0x3087e5=_0x13b21a[_0x466567(0xcb)];const _0x164e12=_0x57c6db=>{const _0x2083be=_0x466567;_0x21fe31[_0x2083be(0xaa)](_0x21fe31[_0x2083be(0xc8)],_0x21fe31[_0x2083be(0xdf)])?(logger['error'](_0x57c6db),process[_0x2083be(0xae)](0x1)):_0x21fe31[_0x2083be(0x82)](_0x288f37,_0x2083be(0xbc));};[_0x52611c,_0x564454]=_0x21fe31[_0x466567(0x97)](fetchOrUpdateUserConfig,_0x52611c,_0x564454);if(!_0x21fe31[_0x466567(0xb0)](_0x52611c,_0x564454)){if(_0x21fe31[_0x466567(0x94)](_0x21fe31[_0x466567(0xcf)],_0x21fe31['BcbVZ']))_0x21fe31[_0x466567(0xd4)](_0x164e12,_0x466567(0xc7));else{const _0x1b47ef={};_0x1b47ef['accessKey']=_0x11a79c,_0x1b47ef[_0x466567(0xca)]=_0x25e284[_0x466567(0xca)],_0x1b47ef[_0x466567(0x9d)]=_0x355112;const _0x1a3e4e=_0x1b47ef,_0xe3c23=_0x21fe31[_0x466567(0xd1)](_0x235c21,_0x1a3e4e);let _0x33aede=0x0;const _0x122db7=async()=>{const _0x5958fd=_0x466567;_0x33aede++,_0x21fe31[_0x5958fd(0xc2)](_0x33aede,0x1)&&_0xe3c23&&_0xe3c23[_0x5958fd(0xe7)]()&&_0x21fe31[_0x5958fd(0xec)](_0xe20065,_0xe3c23);};_0x50842e['on'](_0x21fe31[_0x466567(0x98)],_0x122db7),_0x445893['on'](_0x21fe31[_0x466567(0xd5)],_0x122db7),_0x5546bc['on'](_0x21fe31[_0x466567(0xde)],_0x122db7),_0x224316=_0x466567(0xb7),_0x3ff940['info'](_0x3ab355);}}let _0x55f5be=_0x13b21a[_0x466567(0x85)],[_0xa14796,_0x33d7b2]=await _0x21fe31[_0x466567(0x8c)](getGridDetails,_0x52611c,_0x564454,_0x55f5be);!_0x33d7b2&&(_0x21fe31[_0x466567(0x94)](_0x21fe31['pDXKe'],_0x21fe31[_0x466567(0xef)])?_0x21fe31['HaiUb'](_0x3614ac,'Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey'):_0x21fe31['ugUmu'](_0x164e12,_0x466567(0xbc)));let _0x2e0d56=_0x21fe31['gwOaE'](_0x13b21a[_0x466567(0xbb)],_0x21fe31[_0x466567(0xa9)])?!![]:![];if(_0x33d7b2&&_0x33d7b2[_0x466567(0xeb)]&&_0x2e0d56){if(_0x21fe31[_0x466567(0xe9)](_0x21fe31[_0x466567(0x99)],_0x21fe31[_0x466567(0x99)])){logMessage='Grid\x20type:\x20Trial',logger[_0x466567(0xbd)](logMessage);try{if(_0x21fe31[_0x466567(0xe6)](_0x21fe31[_0x466567(0xd8)],_0x21fe31[_0x466567(0xd8)])){const _0x2bd4d2={};_0x2bd4d2[_0x466567(0xda)]=_0x564454,_0x2bd4d2[_0x466567(0xca)]=_0x33d7b2['customRepeaters'],_0x2bd4d2[_0x466567(0x9d)]=_0x3087e5;const _0x11a231=_0x2bd4d2,_0x135020=_0x21fe31[_0x466567(0xb8)](startLocalBinarySync,_0x11a231);let _0xa5c60=0x0;const _0x2546ad=async()=>{const _0x240ed6=_0x466567;_0x21fe31[_0x240ed6(0x94)](_0x21fe31[_0x240ed6(0xea)],_0x21fe31[_0x240ed6(0xea)])?(_0xa5c60++,_0x21fe31[_0x240ed6(0xc2)](_0xa5c60,0x1)&&_0x135020&&_0x135020[_0x240ed6(0xe7)]()&&_0x21fe31[_0x240ed6(0xd2)](stopLocalBinary,_0x135020)):(_0x4dec60[_0x240ed6(0xdb)](_0x33256d),_0x2d88ff[_0x240ed6(0xae)](0x1));};process['on'](_0x21fe31['yfNYX'],_0x2546ad),process['on'](_0x21fe31[_0x466567(0xd5)],_0x2546ad),process['on'](_0x21fe31[_0x466567(0xde)],_0x2546ad),logMessage=_0x466567(0xb7),logger[_0x466567(0xbd)](logMessage);}else{const _0x1d3ec2={'HShOd':function(_0x2abdf9,_0x40ec1a){const _0x396e0b=_0x466567;return _0x21fe31[_0x396e0b(0xc2)](_0x2abdf9,_0x40ec1a);},'LzHPk':function(_0x4d1398,_0xc21e36){const _0x2af2ac=_0x466567;return _0x21fe31[_0x2af2ac(0x82)](_0x4d1398,_0xc21e36);}};_0x359b45=_0x466567(0xcd),_0xa218e3[_0x466567(0xbd)](_0x59e11f);try{const _0x56b111={};_0x56b111[_0x466567(0xda)]=_0x148d63,_0x56b111['customRepeaters']=_0x1f48e7['customRepeaters'],_0x56b111[_0x466567(0x9d)]=_0x82341b;const _0x5df83a=_0x56b111,_0xdced83=_0x21fe31[_0x466567(0x9e)](_0x350b21,_0x5df83a);let _0x2e02f5=0x0;const _0x4dcf3c=async()=>{const _0x180bc3=_0x466567;_0x2e02f5++,_0x1d3ec2['HShOd'](_0x2e02f5,0x1)&&_0xdced83&&_0xdced83[_0x180bc3(0xe7)]()&&_0x1d3ec2[_0x180bc3(0xa2)](_0x82dfeb,_0xdced83);};_0x4f2a9c['on'](_0x21fe31[_0x466567(0x98)],_0x4dcf3c),_0x23fd7a['on'](_0x21fe31[_0x466567(0xd5)],_0x4dcf3c),_0x108e71['on'](_0x21fe31[_0x466567(0xde)],_0x4dcf3c),_0x3d81ef=_0x466567(0xb7),_0x69bfd5[_0x466567(0xbd)](_0x4d3b00);}catch(_0x71b6bb){_0x21fe31[_0x466567(0x9e)](_0x2a2db7,_0x466567(0xb2));}}}catch(_0x436495){_0x21fe31[_0x466567(0xaa)](_0x21fe31[_0x466567(0x90)],_0x21fe31[_0x466567(0xb1)])?_0x21fe31['UGnUD'](_0x164e12,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid'):_0x21fe31[_0x466567(0x9f)](_0x2eeed2,_0x466567(0xb2));}}else{const _0x4d2ca7={};_0x4d2ca7[_0x466567(0x8b)]=_0x21fe31[_0x466567(0xc4)],_0x4d2ca7[_0x466567(0xb9)]=_0x21fe31[_0x466567(0x86)];const _0x5621d0={};_0x5621d0[_0x466567(0x8b)]=_0x21fe31[_0x466567(0x96)],_0x5621d0[_0x466567(0xb9)]=_0x21fe31[_0x466567(0x86)];const _0x3fb801={};_0x3fb801[_0x466567(0xd9)]=!![],_0x3fb801[_0x466567(0x8b)]=_0x21fe31[_0x466567(0xdc)],_0x3fb801[_0x466567(0xb9)]=_0x21fe31['zFIxj'];const _0x5a10b4={};_0x5a10b4[_0x466567(0x8b)]=_0x21fe31[_0x466567(0xa7)],_0x5a10b4[_0x466567(0xb9)]=_0x21fe31[_0x466567(0x86)];const _0x55f29d={};_0x55f29d[_0x466567(0x8b)]=_0x21fe31[_0x466567(0x92)],_0x55f29d[_0x466567(0xb9)]=_0x21fe31[_0x466567(0x86)];const _0x5b4b24={};return _0x5b4b24[_0x466567(0xad)]=_0x4d2ca7,_0x5b4b24['bstack-accesskey']=_0x5621d0,_0x5b4b24[_0x466567(0xa6)]=_0x3fb801,_0x5b4b24[_0x466567(0xe2)]=_0x5a10b4,_0x5b4b24[_0x466567(0xac)]=_0x55f29d,_0x25920b['usage'](_0x5ced80[_0x466567(0xe0)])[_0x466567(0xd3)](_0x52892b)[_0x466567(0xc3)](_0x5b4b24)[_0x466567(0x8a)](_0x21fe31[_0x466567(0x83)])[_0x466567(0x95)];}}process[_0x466567(0xae)](0x0);};
1
+ function a7_0x5827(){const _0x3ff71e=['command','handler','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.','VtWJS','jpaHx','zhzeH','opaOn','726102WlgpGL','BbSVe','100860ZtvzZX','grid','gridId','argv','CwGUG','epilogue','lYTap','customRepeaters','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','dyXSQ','aYeLA','zBmNA','zgUqn','../../config/constants','zsMDl','198upzVTN','help','bstackAccesskey','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','bstack-accesskey','chGws','grid-id','desc','isRunning','1583600yTVeJc','GsVJl','853838NwHFCT','qNWge','iwRxj','3fyUFGn','description','info','deAYJ','Advance\x20options\x20for\x20Browserstack\x20Local','jZMfL','SIGINT','Ankyp','HILql','5949040bjwpWk','../../utils/utilityMethods','fuOgQ','usage','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','browserStackLocalOptions','advanceOptions','ipuMl','beforeExit','DyIxm','KXzta','Grid\x20type:\x20Trial','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','ZnvlX','1904320wEkGrE','OKycn','uOZop','HjPmx','bstackUsername','pUnmm','BHtKL','LWvIJ','YJLiY','string','options','exit','1093015XBINJM','18GeoSXs','xwXOp','accessKey','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','use-staging','HnBQI','OgoOj','OZzAX','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','YWguD','iIDzr','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','NSVAc','eTtAb','kGsig','bstack-username','isTrialGrid','error','YutID','create','type','NyRoj','yHNfN','DvrQh','oTJjS','Jnath','xJaNY','LaKDj','useStaging','advance-options','demandOption'];a7_0x5827=function(){return _0x3ff71e;};return a7_0x5827();}const a7_0x2da35b=a7_0x2672;function a7_0x2672(_0x31035d,_0x116ee0){const _0x58276f=a7_0x5827();return a7_0x2672=function(_0x2672d1,_0x314dbf){_0x2672d1=_0x2672d1-0x1c7;let _0xb8e192=_0x58276f[_0x2672d1];return _0xb8e192;},a7_0x2672(_0x31035d,_0x116ee0);}(function(_0x5e6382,_0x2cf1cb){const _0x47a696=a7_0x2672,_0x14d7b5=_0x5e6382();while(!![]){try{const _0x2415dc=-parseInt(_0x47a696(0x206))/0x1*(parseInt(_0x47a696(0x203))/0x2)+-parseInt(_0x47a696(0x1e7))/0x3+-parseInt(_0x47a696(0x21d))/0x4+parseInt(_0x47a696(0x1e9))/0x5*(parseInt(_0x47a696(0x22a))/0x6)+-parseInt(_0x47a696(0x229))/0x7+-parseInt(_0x47a696(0x20f))/0x8+parseInt(_0x47a696(0x1f8))/0x9*(parseInt(_0x47a696(0x201))/0xa);if(_0x2415dc===_0x2cf1cb)break;else _0x14d7b5['push'](_0x14d7b5['shift']());}catch(_0x474258){_0x14d7b5['push'](_0x14d7b5['shift']());}}}(a7_0x5827,0x9da9e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x2da35b(0x1f6)),{logger}=require('../../config/logger'),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x2da35b(0x210));exports[a7_0x2da35b(0x1e0)]=a7_0x2da35b(0x1ea),exports[a7_0x2da35b(0x1ff)]=a7_0x2da35b(0x22d),exports['builder']=_0x2c7dbb=>{const _0x4cbfc7=a7_0x2da35b,_0x23b8ae={};_0x23b8ae[_0x4cbfc7(0x1ef)]=_0x4cbfc7(0x213),_0x23b8ae[_0x4cbfc7(0x1e6)]=_0x4cbfc7(0x226),_0x23b8ae['BHtKL']=_0x4cbfc7(0x1f1),_0x23b8ae[_0x4cbfc7(0x225)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x23b8ae[_0x4cbfc7(0x1fd)]=_0x4cbfc7(0x1cc),_0x23b8ae[_0x4cbfc7(0x220)]=_0x4cbfc7(0x20a),_0x23b8ae[_0x4cbfc7(0x1f3)]=_0x4cbfc7(0x1f9);const _0x2ff46b=_0x23b8ae,_0x5dc840={};_0x5dc840[_0x4cbfc7(0x207)]=_0x2ff46b[_0x4cbfc7(0x1ef)],_0x5dc840[_0x4cbfc7(0x1d5)]=_0x2ff46b[_0x4cbfc7(0x1e6)];const _0x4ef30c={};_0x4ef30c[_0x4cbfc7(0x207)]=_0x2ff46b[_0x4cbfc7(0x223)],_0x4ef30c[_0x4cbfc7(0x1d5)]=_0x2ff46b[_0x4cbfc7(0x1e6)];const _0x3fd689={};_0x3fd689[_0x4cbfc7(0x1df)]=!![],_0x3fd689[_0x4cbfc7(0x207)]=_0x2ff46b[_0x4cbfc7(0x225)],_0x3fd689['type']=_0x2ff46b[_0x4cbfc7(0x1e6)];const _0x3ebf35={};_0x3ebf35[_0x4cbfc7(0x207)]=_0x2ff46b[_0x4cbfc7(0x1fd)],_0x3ebf35[_0x4cbfc7(0x1d5)]=_0x2ff46b[_0x4cbfc7(0x1e6)];const _0x503b7f={};_0x503b7f[_0x4cbfc7(0x207)]=_0x2ff46b[_0x4cbfc7(0x220)],_0x503b7f['type']=_0x2ff46b[_0x4cbfc7(0x1e6)];const _0x419253={};return _0x419253[_0x4cbfc7(0x1d0)]=_0x5dc840,_0x419253[_0x4cbfc7(0x1fc)]=_0x4ef30c,_0x419253[_0x4cbfc7(0x1fe)]=_0x3fd689,_0x419253[_0x4cbfc7(0x22e)]=_0x3ebf35,_0x419253[_0x4cbfc7(0x1de)]=_0x503b7f,_0x2c7dbb[_0x4cbfc7(0x212)](HELP_HEADER_MESSAGE[_0x4cbfc7(0x1d4)])[_0x4cbfc7(0x1ee)](HELP_FOOTER_MESSAGE)[_0x4cbfc7(0x227)](_0x419253)['help'](_0x2ff46b['aYeLA'])[_0x4cbfc7(0x1ec)];},exports[a7_0x2da35b(0x1e1)]=async _0x5add6f=>{const _0x3be052=a7_0x2da35b,_0x5a7c19={'Ankyp':function(_0x51a9a7,_0x325647){return _0x51a9a7(_0x325647);},'LWvIJ':_0x3be052(0x217),'yGVdi':_0x3be052(0x20c),'CwGUG':'SIGTERM','dyXSQ':function(_0x451c7e,_0x32829a){return _0x451c7e(_0x32829a);},'jphYn':function(_0x57f79c,_0x15d1ac){return _0x57f79c==_0x15d1ac;},'jpaHx':function(_0x6aa45b,_0x5738bc){return _0x6aa45b(_0x5738bc);},'OZzAX':function(_0x5e712a,_0x10c3b0){return _0x5e712a===_0x10c3b0;},'DvrQh':'qZRBA','YutID':'vdJKm','xwXOp':function(_0x26f607,_0x46fee2){return _0x26f607(_0x46fee2);},'ZnvlX':_0x3be052(0x213),'zsMDl':_0x3be052(0x226),'Jnath':_0x3be052(0x1f1),'oTJjS':'Pass\x20the\x20ID\x20of\x20the\x20Grid','iIDzr':'Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','VtWJS':_0x3be052(0x20a),'zgUqn':_0x3be052(0x1f9),'DyIxm':function(_0x38bebf,_0xd8904e){return _0x38bebf===_0xd8904e;},'eTtAb':'scimb','ELdbP':_0x3be052(0x1d6),'OgoOj':function(_0x2f9e14,_0x56ff53){return _0x2f9e14==_0x56ff53;},'HILql':function(_0x50b596,_0x3ff8aa){return _0x50b596==_0x3ff8aa;},'jZMfL':function(_0x3ee40d,_0x139ed2){return _0x3ee40d==_0x139ed2;},'yHNfN':function(_0x27c329,_0x1a7bd7,_0x1f2ef5){return _0x27c329(_0x1a7bd7,_0x1f2ef5);},'xFMhM':function(_0x1c7463,_0x43fcb1){return _0x1c7463&&_0x43fcb1;},'OsSac':_0x3be052(0x216),'SqfRM':_0x3be052(0x1f4),'uOZop':function(_0x48096d,_0xa8d1e3){return _0x48096d(_0xa8d1e3);},'LaKDj':function(_0x4a9173,_0x30c30a,_0x486a18,_0x34fbb7){return _0x4a9173(_0x30c30a,_0x486a18,_0x34fbb7);},'NSVAc':_0x3be052(0x1ca),'deAYJ':'true','GsVJl':function(_0x594359,_0x5aeb05){return _0x594359!==_0x5aeb05;},'OKycn':_0x3be052(0x211),'qNWge':_0x3be052(0x1cf),'HnBQI':_0x3be052(0x205),'kxYYW':_0x3be052(0x222),'NFiXs':function(_0x56aa0d,_0x57833a){return _0x56aa0d!==_0x57833a;},'aodKD':_0x3be052(0x1e8),'uCVDf':_0x3be052(0x219),'zhzeH':function(_0x273e36,_0x3f3794){return _0x273e36(_0x3f3794);}};let _0x4eab6b=_0x5add6f[_0x3be052(0x221)],_0x562e40=_0x5add6f[_0x3be052(0x1fa)],_0x347277=_0x5add6f[_0x3be052(0x215)];const _0x3d76cb=_0x2c0c81=>{const _0xbb1e3f=_0x3be052,_0x15360c={'yNkvM':function(_0x1776b8,_0x3884a5){return _0x5a7c19['jphYn'](_0x1776b8,_0x3884a5);},'xJaNY':function(_0x489498,_0x499253){const _0x39167c=a7_0x2672;return _0x5a7c19[_0x39167c(0x1e4)](_0x489498,_0x499253);}};if(_0x5a7c19['OZzAX'](_0x5a7c19[_0xbb1e3f(0x1d8)],_0x5a7c19[_0xbb1e3f(0x1d3)])){_0x27d888=_0xbb1e3f(0x21a),_0x3398c9[_0xbb1e3f(0x208)](_0x3acff0);try{const _0x323b29={};_0x323b29[_0xbb1e3f(0x22c)]=_0x18233e,_0x323b29['customRepeaters']=_0x45f9f8['customRepeaters'],_0x323b29[_0xbb1e3f(0x214)]=_0x4a0b82;const _0x28c015=_0x323b29,_0x311b66=_0x5a7c19[_0xbb1e3f(0x20d)](_0x3b1f68,_0x28c015);let _0x288adb=0x0;const _0x3427dc=async()=>{const _0x297926=_0xbb1e3f;_0x288adb++,_0x15360c['yNkvM'](_0x288adb,0x1)&&_0x311b66&&_0x311b66[_0x297926(0x200)]()&&_0x15360c[_0x297926(0x1db)](_0x28d3e6,_0x311b66);};_0x53bbc1['on'](_0x5a7c19[_0xbb1e3f(0x224)],_0x3427dc),_0x5c0d1c['on'](_0x5a7c19['yGVdi'],_0x3427dc),_0x238afe['on'](_0x5a7c19[_0xbb1e3f(0x1ed)],_0x3427dc),_0x133a83=_0xbb1e3f(0x1e2),_0x53a8db[_0xbb1e3f(0x208)](_0x5ee3a9);}catch(_0x2fed32){_0x5a7c19[_0xbb1e3f(0x1f2)](_0x46a044,_0xbb1e3f(0x21b));}}else logger[_0xbb1e3f(0x1d2)](_0x2c0c81),process[_0xbb1e3f(0x228)](0x1);};[_0x4eab6b,_0x562e40]=_0x5a7c19[_0x3be052(0x1d7)](fetchOrUpdateUserConfig,_0x4eab6b,_0x562e40);!_0x5a7c19['xFMhM'](_0x4eab6b,_0x562e40)&&(_0x5a7c19['DyIxm'](_0x5a7c19['OsSac'],_0x5a7c19['SqfRM'])?_0x5a7c19[_0x3be052(0x22b)](_0x26cff2,_0x3be052(0x21b)):_0x5a7c19[_0x3be052(0x21f)](_0x3d76cb,_0x3be052(0x1fb)));let _0x1a59c9=_0x5add6f[_0x3be052(0x1eb)],[_0x3b0775,_0x120477]=await _0x5a7c19[_0x3be052(0x1dc)](getGridDetails,_0x4eab6b,_0x562e40,_0x1a59c9);!_0x120477&&(_0x5a7c19[_0x3be052(0x1c8)](_0x5a7c19[_0x3be052(0x1cd)],_0x5a7c19[_0x3be052(0x1cd)])?_0x5a7c19[_0x3be052(0x20d)](_0x3d76cb,_0x3be052(0x1c9)):_0x5a7c19['Ankyp'](_0x544586,'Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey'));let _0x1047f4=_0x5a7c19[_0x3be052(0x1c8)](_0x5add6f[_0x3be052(0x1dd)],_0x5a7c19[_0x3be052(0x209)])?!![]:![];if(_0x120477&&_0x120477[_0x3be052(0x1d1)]&&_0x1047f4){if(_0x5a7c19[_0x3be052(0x202)](_0x5a7c19[_0x3be052(0x21e)],_0x5a7c19[_0x3be052(0x204)])){logMessage=_0x3be052(0x21a),logger[_0x3be052(0x208)](logMessage);try{if(_0x5a7c19[_0x3be052(0x218)](_0x5a7c19[_0x3be052(0x22f)],_0x5a7c19['kxYYW'])){const _0x49a56d={};_0x49a56d['description']=_0x5a7c19[_0x3be052(0x21c)],_0x49a56d[_0x3be052(0x1d5)]=_0x5a7c19[_0x3be052(0x1f7)];const _0x2b2484={};_0x2b2484[_0x3be052(0x207)]=_0x5a7c19[_0x3be052(0x1da)],_0x2b2484[_0x3be052(0x1d5)]=_0x5a7c19[_0x3be052(0x1f7)];const _0x5ca2aa={};_0x5ca2aa[_0x3be052(0x1df)]=!![],_0x5ca2aa['description']=_0x5a7c19[_0x3be052(0x1d9)],_0x5ca2aa[_0x3be052(0x1d5)]=_0x5a7c19[_0x3be052(0x1f7)];const _0x32bde5={};_0x32bde5[_0x3be052(0x207)]=_0x5a7c19[_0x3be052(0x1cb)],_0x32bde5[_0x3be052(0x1d5)]=_0x5a7c19[_0x3be052(0x1f7)];const _0x54d63b={};_0x54d63b[_0x3be052(0x207)]=_0x5a7c19[_0x3be052(0x1e3)],_0x54d63b[_0x3be052(0x1d5)]=_0x5a7c19[_0x3be052(0x1f7)];const _0x30a100={};return _0x30a100[_0x3be052(0x1d0)]=_0x49a56d,_0x30a100[_0x3be052(0x1fc)]=_0x2b2484,_0x30a100['grid-id']=_0x5ca2aa,_0x30a100[_0x3be052(0x22e)]=_0x32bde5,_0x30a100[_0x3be052(0x1de)]=_0x54d63b,_0x25f063[_0x3be052(0x212)](_0x297767[_0x3be052(0x1d4)])['epilogue'](_0xd86417)[_0x3be052(0x227)](_0x30a100)['help'](_0x5a7c19[_0x3be052(0x1f5)])[_0x3be052(0x1ec)];}else{const _0x19be73={};_0x19be73[_0x3be052(0x22c)]=_0x562e40,_0x19be73[_0x3be052(0x1f0)]=_0x120477[_0x3be052(0x1f0)],_0x19be73[_0x3be052(0x214)]=_0x347277;const _0x36751d=_0x19be73,_0x45179f=_0x5a7c19[_0x3be052(0x22b)](startLocalBinarySync,_0x36751d);let _0x21e56e=0x0;const _0x2e32e6=async()=>{const _0x2b02d8=_0x3be052;_0x5a7c19[_0x2b02d8(0x218)](_0x5a7c19[_0x2b02d8(0x1ce)],_0x5a7c19['ELdbP'])?(_0xa7eb88[_0x2b02d8(0x1d2)](_0x184ad8),_0x68735a[_0x2b02d8(0x228)](0x1)):(_0x21e56e++,_0x5a7c19[_0x2b02d8(0x1c7)](_0x21e56e,0x1)&&_0x45179f&&_0x45179f[_0x2b02d8(0x200)]()&&_0x5a7c19[_0x2b02d8(0x1e4)](stopLocalBinary,_0x45179f));};process['on'](_0x5a7c19[_0x3be052(0x224)],_0x2e32e6),process['on'](_0x5a7c19['yGVdi'],_0x2e32e6),process['on'](_0x5a7c19[_0x3be052(0x1ed)],_0x2e32e6),logMessage='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.',logger['info'](logMessage);}}catch(_0x36e8a8){_0x5a7c19['NFiXs'](_0x5a7c19['aodKD'],_0x5a7c19['uCVDf'])?_0x5a7c19[_0x3be052(0x1e5)](_0x3d76cb,_0x3be052(0x21b)):(_0x15c47f++,_0x5a7c19[_0x3be052(0x20e)](_0xb03ad1,0x1)&&_0x183d43&&_0x9db81b['isRunning']()&&_0x5a7c19[_0x3be052(0x22b)](_0x32f95e,_0x586727));}}else{const _0xef1fd6={};_0xef1fd6[_0x3be052(0x22c)]=_0x1c33a0,_0xef1fd6[_0x3be052(0x1f0)]=_0x3f2d9c[_0x3be052(0x1f0)],_0xef1fd6[_0x3be052(0x214)]=_0x399064;const _0x2d3d98=_0xef1fd6,_0x8299a3=_0x5a7c19[_0x3be052(0x1f2)](_0x18e3e8,_0x2d3d98);let _0x5f44fb=0x0;const _0x58220d=async()=>{const _0x5e247c=_0x3be052;_0x5f44fb++,_0x5a7c19[_0x5e247c(0x20b)](_0x5f44fb,0x1)&&_0x8299a3&&_0x8299a3[_0x5e247c(0x200)]()&&_0x5a7c19[_0x5e247c(0x22b)](_0x2e4428,_0x8299a3);};_0x1306da['on'](_0x5a7c19['LWvIJ'],_0x58220d),_0x502882['on'](_0x5a7c19['yGVdi'],_0x58220d),_0xdd3475['on'](_0x5a7c19['CwGUG'],_0x58220d),_0x3d1dba=_0x3be052(0x1e2),_0x444caf[_0x3be052(0x208)](_0x5934bd);}}process[_0x3be052(0x228)](0x0);};
@@ -1 +1 @@
1
- function a8_0x3717(){const _0x4d5760=['12GeWhbX','strict','322zuJRcr','epilogue','XthzE','875876jGUjWR','builder','139774VfvIuY','9wpFeqm','39119IBpkCA','create','4330623CvMkEQ','create_commands','../config/constants','command','Create\x20a\x20new\x20Automation\x20grid.','commandDir','NQElM','5fAzIVM','demandCommand','1752jXgUAe','558890PgwXnR','help','12VMrjRz','1470390NiKzfp'];a8_0x3717=function(){return _0x4d5760;};return a8_0x3717();}const a8_0xa86cdb=a8_0x4d88;function a8_0x4d88(_0x56ef83,_0x4afe28){const _0x37170f=a8_0x3717();return a8_0x4d88=function(_0x4d8847,_0x2a1d85){_0x4d8847=_0x4d8847-0x150;let _0x12a2c=_0x37170f[_0x4d8847];return _0x12a2c;},a8_0x4d88(_0x56ef83,_0x4afe28);}(function(_0x426dfb,_0x182f74){const _0x1d6b7e=a8_0x4d88,_0xdf6702=_0x426dfb();while(!![]){try{const _0xbbe45d=-parseInt(_0x1d6b7e(0x153))/0x1+-parseInt(_0x1d6b7e(0x151))/0x2*(parseInt(_0x1d6b7e(0x161))/0x3)+-parseInt(_0x1d6b7e(0x168))/0x4+parseInt(_0x1d6b7e(0x15c))/0x5*(parseInt(_0x1d6b7e(0x162))/0x6)+-parseInt(_0x1d6b7e(0x165))/0x7*(parseInt(_0x1d6b7e(0x15e))/0x8)+parseInt(_0x1d6b7e(0x152))/0x9*(parseInt(_0x1d6b7e(0x15f))/0xa)+-parseInt(_0x1d6b7e(0x155))/0xb*(-parseInt(_0x1d6b7e(0x163))/0xc);if(_0xbbe45d===_0x182f74)break;else _0xdf6702['push'](_0xdf6702['shift']());}catch(_0x2b319a){_0xdf6702['push'](_0xdf6702['shift']());}}}(a8_0x3717,0x23df9));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0xa86cdb(0x157));exports[a8_0xa86cdb(0x158)]=a8_0xa86cdb(0x154),exports['desc']=a8_0xa86cdb(0x159),exports[a8_0xa86cdb(0x150)]=function(_0x32c5a2){const _0x4ce2b2=a8_0xa86cdb,_0x25d3ea={};_0x25d3ea[_0x4ce2b2(0x15b)]=_0x4ce2b2(0x156),_0x25d3ea[_0x4ce2b2(0x167)]='help';const _0x513523=_0x25d3ea;return _0x32c5a2['usage'](HELP_HEADER_MESSAGE[_0x4ce2b2(0x154)])[_0x4ce2b2(0x166)](HELP_FOOTER_MESSAGE)[_0x4ce2b2(0x15a)](_0x513523[_0x4ce2b2(0x15b)])[_0x4ce2b2(0x15d)]()['recommendCommands']()[_0x4ce2b2(0x164)]()[_0x4ce2b2(0x160)](_0x513523[_0x4ce2b2(0x167)]);},exports['handler']=function(_0x573ba4){};
1
+ const a8_0x3f6a19=a8_0x31ae;(function(_0x80b7b,_0x4e4ff3){const _0xbd69b=a8_0x31ae,_0xd20f17=_0x80b7b();while(!![]){try{const _0x4f6e80=parseInt(_0xbd69b(0x1a9))/0x1*(-parseInt(_0xbd69b(0x1b1))/0x2)+-parseInt(_0xbd69b(0x1b0))/0x3*(-parseInt(_0xbd69b(0x1b6))/0x4)+parseInt(_0xbd69b(0x1aa))/0x5+-parseInt(_0xbd69b(0x1ae))/0x6+parseInt(_0xbd69b(0x1a7))/0x7*(parseInt(_0xbd69b(0x1a8))/0x8)+parseInt(_0xbd69b(0x1bd))/0x9*(-parseInt(_0xbd69b(0x1a6))/0xa)+parseInt(_0xbd69b(0x1ab))/0xb;if(_0x4f6e80===_0x4e4ff3)break;else _0xd20f17['push'](_0xd20f17['shift']());}catch(_0x5a387a){_0xd20f17['push'](_0xd20f17['shift']());}}}(a8_0x1904,0x9f121));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a8_0x31ae(_0x5e3a4a,_0x4387b2){const _0x1904a5=a8_0x1904();return a8_0x31ae=function(_0x31ae8c,_0x448c4d){_0x31ae8c=_0x31ae8c-0x1a6;let _0x58cbb2=_0x1904a5[_0x31ae8c];return _0x58cbb2;},a8_0x31ae(_0x5e3a4a,_0x4387b2);}exports['command']=a8_0x3f6a19(0x1ba),exports[a8_0x3f6a19(0x1b4)]=a8_0x3f6a19(0x1b7),exports[a8_0x3f6a19(0x1b2)]=function(_0x3e8c51){const _0x4c6c80=a8_0x3f6a19,_0x4a5391={};_0x4a5391['ecaeS']=_0x4c6c80(0x1be),_0x4a5391[_0x4c6c80(0x1ad)]='help';const _0xf212b9=_0x4a5391;return _0x3e8c51[_0x4c6c80(0x1b8)](HELP_HEADER_MESSAGE[_0x4c6c80(0x1ba)])[_0x4c6c80(0x1b5)](HELP_FOOTER_MESSAGE)[_0x4c6c80(0x1af)](_0xf212b9[_0x4c6c80(0x1ac)])[_0x4c6c80(0x1bb)]()[_0x4c6c80(0x1bc)]()[_0x4c6c80(0x1b9)]()['help'](_0xf212b9['tzdnh']);},exports[a8_0x3f6a19(0x1b3)]=function(_0x2c4628){};function a8_0x1904(){const _0x29bdcb=['29608RsFUqQ','925041zrWLLp','3280710wqJpxV','36488650xcmTes','ecaeS','tzdnh','7514628sILulU','commandDir','96981EXDmwv','2Nyyyzi','builder','handler','desc','epilogue','4SVCvHS','Create\x20a\x20new\x20Automation\x20grid.','usage','strict','create','demandCommand','recommendCommands','18hNiGoy','create_commands','6012470WLYbhQ','49ODFXjr'];a8_0x1904=function(){return _0x29bdcb;};return a8_0x1904();}