browserstack-node-sdk 1.29.2 → 1.30.0

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 (105) 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/gcs.js +1 -1
  6. package/ats/src/cloudproviders/utils.js +1 -1
  7. package/ats/src/commands/configure.js +1 -1
  8. package/ats/src/commands/connect.js +1 -1
  9. package/ats/src/commands/connect_commands/grid.js +1 -1
  10. package/ats/src/commands/create.js +1 -1
  11. package/ats/src/commands/create_commands/grid.js +1 -1
  12. package/ats/src/commands/delete.js +1 -1
  13. package/ats/src/commands/delete_commands/grid.js +1 -1
  14. package/ats/src/commands/init.js +1 -1
  15. package/ats/src/commands/list.js +1 -1
  16. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  17. package/ats/src/commands/list_commands/grids.js +1 -1
  18. package/ats/src/config/constants.js +1 -1
  19. package/ats/src/config/logger.js +1 -1
  20. package/ats/src/index.js +1 -1
  21. package/ats/src/utils/AWSUtils.js +1 -1
  22. package/ats/src/utils/createAutoscalerStack.js +1 -1
  23. package/ats/src/utils/createClusterStack.js +1 -1
  24. package/ats/src/utils/createk8sClient.js +1 -1
  25. package/ats/src/utils/deleteStack.js +1 -1
  26. package/ats/src/utils/gridComponents.js +1 -1
  27. package/ats/src/utils/hstUtils.js +1 -1
  28. package/ats/src/utils/instrumentationUtils.js +1 -1
  29. package/ats/src/utils/userInput.js +1 -1
  30. package/ats/src/utils/utilityMethods.js +1 -1
  31. package/ats/src/utils/webSocketUtils.js +1 -1
  32. package/package.json +1 -1
  33. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  34. package/src/bin/codeceptjs/command.js +1 -1
  35. package/src/bin/cucumber-js/command.js +1 -1
  36. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  37. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  38. package/src/bin/cucumber-js/test.setup.js +1 -1
  39. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  40. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  41. package/src/bin/jest/command.js +1 -1
  42. package/src/bin/jest/customImplements/customCircus.js +1 -0
  43. package/src/bin/jest/customImplements/customEnvironment.js +1 -0
  44. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -0
  45. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -0
  46. package/src/bin/jest/jest.setup.js +1 -1
  47. package/src/bin/jest/test-observability/data-hooks.js +1 -0
  48. package/src/bin/jest/test-observability/helper.js +1 -0
  49. package/src/bin/jest/test-observability/obsReporter.js +1 -0
  50. package/src/bin/jest/test-observability/test-details.js +1 -0
  51. package/src/bin/jest/test_before.setup.js +1 -1
  52. package/src/bin/launcher/launcher.js +1 -1
  53. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  54. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  55. package/src/bin/mocha/command.js +1 -1
  56. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  57. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  58. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  59. package/src/bin/mocha/test.setup.js +1 -1
  60. package/src/bin/nightwatch/command.js +1 -1
  61. package/src/bin/playwright/accessibility-helper.js +1 -1
  62. package/src/bin/playwright/command.js +1 -1
  63. package/src/bin/playwright/globalSetup.js +1 -1
  64. package/src/bin/playwright/mock-process.js +1 -1
  65. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  66. package/src/bin/playwright/reporter/reporter.js +1 -1
  67. package/src/bin/playwright/reporter/test-details.js +1 -1
  68. package/src/bin/runner.js +1 -1
  69. package/src/bin/setup.js +1 -1
  70. package/src/bin/test-runner/index.js +1 -1
  71. package/src/bin/test-runner/runTest.js +1 -1
  72. package/src/bin/test-runner/testWorker.js +1 -1
  73. package/src/bin/utils/constants.js +1 -1
  74. package/src/bin/utils/log4jsAppender.js +1 -1
  75. package/src/bin/utils/logPatcher.js +1 -1
  76. package/src/bin/utils/logReportingAPI.js +1 -1
  77. package/src/bin/vanilla-js/command.js +1 -1
  78. package/src/helpers/BrowserStackSetup.js +1 -1
  79. package/src/helpers/accessibility-automation/constants.js +1 -1
  80. package/src/helpers/accessibility-automation/helper.js +1 -1
  81. package/src/helpers/ats/constants.js +1 -1
  82. package/src/helpers/ats/helper.js +1 -1
  83. package/src/helpers/capsMapping.js +1 -1
  84. package/src/helpers/helper.js +1 -1
  85. package/src/helpers/logger.js +1 -1
  86. package/src/helpers/patchHelpers.js +1 -1
  87. package/src/helpers/percy/Percy.js +1 -1
  88. package/src/helpers/percy/PercyBinary.js +1 -1
  89. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  90. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  91. package/src/helpers/percy/PercySDK.js +1 -1
  92. package/src/helpers/percy/index.js +1 -1
  93. package/src/helpers/request-spy.js +1 -1
  94. package/src/helpers/setKeepAlive.js +1 -1
  95. package/src/helpers/test-observability/constants.js +1 -1
  96. package/src/helpers/test-observability/error-handler.js +1 -1
  97. package/src/helpers/test-observability/performance-tester.js +1 -1
  98. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  99. package/src/helpers/test-observability/sessionHandler.js +1 -1
  100. package/src/helpers/test-observability/utils.js +1 -1
  101. package/src/helpers/w3cMapping.js +1 -1
  102. package/src/hubAllocationMethods.js +1 -1
  103. package/src/index.js +1 -1
  104. package/src/bin/jest/customEnvironment.js +0 -1
  105. package/src/bin/jest/customTestRunnerTemplate.js +0 -1
@@ -1 +1 @@
1
- const a0_0x4ab51f=a0_0x5d1a;(function(_0x58ac3d,_0x497631){const _0x1b5aa3=a0_0x5d1a,_0x4359d2=_0x58ac3d();while(!![]){try{const _0xf1b76f=-parseInt(_0x1b5aa3(0x263))/0x1+-parseInt(_0x1b5aa3(0x222))/0x2+parseInt(_0x1b5aa3(0x23e))/0x3+parseInt(_0x1b5aa3(0x251))/0x4*(-parseInt(_0x1b5aa3(0x2e1))/0x5)+parseInt(_0x1b5aa3(0x20d))/0x6+parseInt(_0x1b5aa3(0x2cd))/0x7+parseInt(_0x1b5aa3(0x2af))/0x8*(parseInt(_0x1b5aa3(0x200))/0x9);if(_0xf1b76f===_0x497631)break;else _0x4359d2['push'](_0x4359d2['shift']());}catch(_0xb1f0db){_0x4359d2['push'](_0x4359d2['shift']());}}}(a0_0x552f,0x25b32));const fs=require('fs'),path=require(a0_0x4ab51f(0x233)),yaml=require(a0_0x4ab51f(0x2e6)),awsSDK=require(a0_0x4ab51f(0x203)),{logger}=require(a0_0x4ab51f(0x270)),{CloudProvider}=require(a0_0x4ab51f(0x1ee)),{sendAWSInfoToHST}=require(a0_0x4ab51f(0x2c2)),{deleteClusterStack}=require(a0_0x4ab51f(0x296)),{createClusterStack}=require('../utils/createClusterStack'),{deleteClusterAndDependencies,deleteRoutingDeps}=require('../utils/gridComponents'),{createAutoscalerStack}=require(a0_0x4ab51f(0x2d3)),{getDirForConfig,reportToGalactusAndSendToEDS}=require(a0_0x4ab51f(0x2eb)),{IAM_USER_NAME,AWS,WS_EVENTS,CLUSTER_DEP_STACK_NAME,global_registry,messageTypes}=require(a0_0x4ab51f(0x294));function a0_0x552f(){const _0xe3dcfa=['promise','RWYcj','EC2','forEach','hjnXE','toUpperCase','IKjdj','nsEAG','FQWmP','data','5PkCWrU','umuvg','duSlD','njEbR','accessKeyId','js-yaml','tags','nodeRole','utf-8','ymRCI','../utils/utilityMethods','clusterRegion','rcVvK','Subnets\x20=>\x20','toLowerCase','KjPSr','Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','UKHYu','HAlxR','lElwh','clusterName','Filters','yxNEf','AatqZ','Following\x20resources\x20are\x20created:','\x0aaws_secret_access_key\x20=\x20',',VPC\x20=>\x20','OYEJL','XtyQa','rojIV','rqIXD','Subnets','nhDmY','describeCluster','WvtuZ','kfNNj','browserstack:managedBy','iPtXW','EAkSY','describeNodegroup','khtVP','qJVbc','ScaCf','OCwMU','cluster','exit','romzh','QSXoB','cCcwm','Values','iTQoZ','UVUMe','loadBalancer','config','Authmap\x20already\x20exists.\x20Not\x20updating','UIHYx','EKS','webSocketUtils','UBTZZ','./CloudProvider','EutJD','listClusters','zUJGF','match','DCUVs','reportToGalactusAndSendToEDS','BGoUV','PfeMk','create-grid-called','ETvoU','OutputValue','VPC\x20=>\x20','QoglC','.\x20Please\x20Check\x20and\x20try\x20again','Autoscaler\x20Role\x20created.ARN:\x20','Cannot\x20find\x20subnets\x20','Dkydq','927YdMzBZ','EdXvJ','<ARN>','aws-sdk','TovjZ','ltyqQ','WKrLW','vJyjF','evENf','qlcUy','eoBEJ','SjXAC','warning','65202KVjBPW','minNodes','secretAccessKey','cloudProviderSecretKey','Qxhcx','warn','ClusterRole\x20=>\x20','split','oqjTk','SecurityGroups\x20=>\x20','yHqKO','DmxxU','YAKKJ','mErWn','tgqfg','aws-auth-cm.yaml','Name','BQiWh','ZSwcx','ZjMeD','sendEventToBackend','499004RmDxpp','IlxyD','SubnetId','nodegroup','type','configureIfNotConfigured',',\x20ClusterRole\x20=>\x20','message','region','cloudProviderAccessKey','MDwsF','createNamespacedConfigMap','Outputs','zXmPb','[ats]\x0aaws_access_key_id\x20=\x20','JKWyH','cPrlg','path','Dbiar','2016-11-15','fetchLocalCreds','NodeRole\x20=>\x20','describeSubnets','LzzTI','YeEUI','AWSCloudProvider','cloudProviderName','vERbb','573270iWVihe','Jscgf','writeFileSync','pEaGZ','QQtQi','setupAutoscaler','join','Stacks','KcSMy','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','VpcIds','1|2|3|0|4','ebvrG','tEjdU','ZZqAr','PKNZL','getUserInput','mHWnX','HuaJx','154412HZClpB','MWGcv','AzKhb','fLMmv','clusters','Cannot\x20find\x20VPC\x20','wrtnt','LOG','yZLlt','rrsfh','gSWPB','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','ingress','rws','push','qIOvi','aEaua','QnmEv','222907PdwFmp','lbCKS','fNamu','Creating\x20Autoscaler\x20Role','status','getKubeConfigData',',\x20NodeRole\x20=>\x20','accessKey','body','GLRuW','describeVpcs','ZgsEh','.\x20Deleting\x20all\x20the\x20stacks','../config/logger','gtnHt','cloudProvider','IvjtL','AzsWX','nodegroupName','maxNodes','vpc-id','xXGbg','update','createAuthConfigMap','setupNewCluster','kube-system',',\x20Subnets\x20=>\x20','Cluster\x20=>\x20','secret','otnnW','RXytb','checkClusterCreated','GFnQq','YySTF','hostname','isSubnetsValid','then','readFileAsync','FVAOc','apiVersion','isClusterPresent','2017-11-01','VgSmy','mapRoles','includes','spQDH','error','XZfVk','GRIaH','../config/constants','UgOcn','../utils/deleteStack','mffyb','ERROR','FoTss','replace','getGridHostname','ervfd','ZiJlt','NIQlo','NUiNa','KfJKR','xoLXZ','oZOiE','Aqvmb','EyaEp','ztuPe','.\x20Error:\x20','getClusterInfo','BQUhq','catch','setConfig','uoCsg','ywSDv','\x20in\x20region\x20','kAEVm','21824gQSLgc','load','EEBgg','tFvdj','PzgZN','autoscaler-creation-failed','browserstack','name','awsConfigSet','VPRpZ','WQGbD','cepFS','\x20ACCESS\x20KEY:\x20','ZzLDD','VSuvq','wJEnj','XybwP','Skipping\x20Autoscaler\x20due\x20to:\x20','UGNBQ','../utils/hstUtils','info','rEgiQ','templates','toString','isConfigured','dPppU','YtVOe','endpoint','\x20SECRET\x20KEY:\x20','UpISw','1277423OIpETc','aws_credentials','getNodeGroupInfo','gjLAy','goGqR','uoHkb','../utils/createAutoscalerStack','WSlnD','cRKqz','zFNfu'];a0_0x552f=function(){return _0xe3dcfa;};return a0_0x552f();}class AWSCloudProvider extends CloudProvider{constructor(_0x4774f7,_0x5c0051,_0x4d33af,_0x483b8f){super(AWS,_0x4774f7,_0x5c0051,_0x4d33af,_0x483b8f);}['configureIfNotConfigured'](){const _0x3ea547=a0_0x4ab51f,_0xf353fc={};_0xf353fc[_0x3ea547(0x2db)]=function(_0x5223de,_0x22f5af){return _0x5223de===_0x22f5af;},_0xf353fc[_0x3ea547(0x303)]=_0x3ea547(0x1f1),_0xf353fc['goGqR']='yPnSL';const _0x2f21c1=_0xf353fc;if(!this[_0x3ea547(0x2c7)]()){if(_0x2f21c1[_0x3ea547(0x2db)](_0x2f21c1[_0x3ea547(0x303)],_0x2f21c1[_0x3ea547(0x2d1)]))return this[_0x3ea547(0x227)](),this[_0x3ea547(0x282)]();else this['setConfig']();}}['isConfigured'](){const _0x470c11=a0_0x4ab51f,_0x3aefac={};_0x3aefac[_0x470c11(0x21b)]=function(_0x2162e7,_0x45120a){return _0x2162e7===_0x45120a;};const _0x4a64fa=_0x3aefac;return _0x4a64fa[_0x470c11(0x21b)](global_registry[_0x470c11(0x2b7)],!![]);}[a0_0x4ab51f(0x2aa)](){const _0x2baa56=a0_0x4ab51f,_0x109e26={};_0x109e26['region']=global_registry['clusterRegion'],_0x109e26[_0x2baa56(0x2e5)]=global_registry[_0x2baa56(0x22b)],_0x109e26[_0x2baa56(0x20f)]=global_registry['cloudProviderSecretKey'],awsSDK[_0x2baa56(0x1e8)][_0x2baa56(0x279)](_0x109e26),global_registry[_0x2baa56(0x2b7)]=!![];}async[a0_0x4ab51f(0x236)](_0x3655f5){const _0x239f44=a0_0x4ab51f;global_registry[_0x239f44(0x22b)]=_0x3655f5[this[_0x239f44(0x23c)]]['accessKey'],global_registry['cloudProviderSecretKey']=_0x3655f5[this[_0x239f44(0x23c)]][_0x239f44(0x27f)];}[a0_0x4ab51f(0x29b)](_0x5a340f){const _0x3d97ca=a0_0x4ab51f;return _0x5a340f[_0x3d97ca(0x26b)][_0x3d97ca(0x267)][_0x3d97ca(0x1e7)][_0x3d97ca(0x25d)][0x0][_0x3d97ca(0x285)];}async['isBrowserstackCluster'](){const _0x5532c1=a0_0x4ab51f,_0x5f93f5={'KjPSr':function(_0x5b0bbe,_0xe2095d){return _0x5b0bbe(_0xe2095d);},'UGNBQ':function(_0x2f62c0,_0x1242ed){return _0x2f62c0(_0x1242ed);},'YySTF':_0x5532c1(0x235),'IKjdj':function(_0x187b9f,_0x145c95){return _0x187b9f===_0x145c95;},'ltyqQ':function(_0x4cebd6,_0x129045){return _0x4cebd6===_0x129045;},'ZiJlt':_0x5532c1(0x2a1),'CjQoV':'Ewteg','XZfVk':function(_0x4f58db,_0x4aa0c4){return _0x4f58db!==_0x4aa0c4;},'SjXAC':_0x5532c1(0x280),'UBTZZ':_0x5532c1(0x223),'MGKeO':_0x5532c1(0x305),'NENhP':_0x5532c1(0x2b5),'zjRLB':function(_0x4ba7ff,_0x5dff23){return _0x4ba7ff!==_0x5dff23;},'UgOcn':_0x5532c1(0x2df)};try{if(_0x5f93f5[_0x5532c1(0x205)](_0x5f93f5[_0x5532c1(0x29d)],_0x5f93f5['CjQoV'])){const _0x12a39d={'zXmPb':function(_0x31feb3,_0x338afa){const _0x309a13=_0x5532c1;return _0x5f93f5[_0x309a13(0x2c1)](_0x31feb3,_0x338afa);}},_0x4288ae={};_0x4288ae[_0x5532c1(0x28a)]=_0x5f93f5[_0x5532c1(0x284)],_0x4288ae['region']=_0x3915f9[_0x5532c1(0x2ec)];const _0x1a5025=new _0x5d141f[(_0x5532c1(0x2d9))](_0x4288ae);_0x1a5025[_0x5532c1(0x26d)](_0x3fda17)[_0x5532c1(0x2d7)]()[_0x5532c1(0x287)](_0x121063=>{const _0x57e4f8=_0x5532c1;_0x5f93f5[_0x57e4f8(0x2f0)](_0x538722,!![]);})[_0x5532c1(0x2a9)](_0x2e1489=>{const _0x22c79a=_0x5532c1;_0x128c79[_0x22c79a(0x291)](_0x22c79a(0x256)+_0x2de179+_0x22c79a(0x2ad)+_0x24ac3f[_0x22c79a(0x2ec)]+_0x22c79a(0x1fc)),_0x12a39d[_0x22c79a(0x22f)](_0x3873d6,![]);});}else{const _0x33df92=await this['getClusterInfo']();if(_0x33df92['cluster']){if(_0x5f93f5[_0x5532c1(0x292)](_0x5f93f5[_0x5532c1(0x20b)],_0x5f93f5[_0x5532c1(0x1ed)])){const _0x304afa=_0x33df92['cluster'][_0x5532c1(0x2e7)];return _0x304afa&&_0x5f93f5[_0x5532c1(0x205)](_0x304afa[_0x5f93f5['MGKeO']][_0x5532c1(0x2ef)](),_0x5f93f5['NENhP']);}else return _0x5f93f5[_0x5532c1(0x2dd)](_0x2294c5[_0x5532c1(0x2b7)],!![]);}}}catch(_0x4f31bb){if(_0x5f93f5['zjRLB'](_0x5f93f5[_0x5532c1(0x295)],_0x5f93f5[_0x5532c1(0x295)]))_0x122180[_0x5532c1(0x22b)]=_0xfc59a4[this['cloudProviderName']][_0x5532c1(0x26a)],_0x52d4ab[_0x5532c1(0x210)]=_0x117994[this['cloudProviderName']]['secret'];else return![];}return![];}async[a0_0x4ab51f(0x28b)](){const _0x385bde=a0_0x4ab51f;return this[_0x385bde(0x227)](),this[_0x385bde(0x282)]();}async['getClusterInfo'](){const _0x20891=a0_0x4ab51f,_0xe8ed03={};_0xe8ed03[_0x20891(0x241)]='2017-11-01';const _0x5b8783=_0xe8ed03,_0x244752={};_0x244752[_0x20891(0x28a)]=_0x5b8783[_0x20891(0x241)];const _0x3c8231=new awsSDK[(_0x20891(0x1eb))](_0x244752),_0x1e2627={};return _0x1e2627[_0x20891(0x2b6)]=this[_0x20891(0x2f5)],_0x3c8231[_0x20891(0x302)](_0x1e2627)[_0x20891(0x2d7)]();}async[a0_0x4ab51f(0x27a)](_0x17d8fe){const _0x244bef=a0_0x4ab51f,_0x3aef62={};_0x3aef62[_0x244bef(0x313)]='templates',_0x3aef62['EEBgg']=_0x244bef(0x21c),_0x3aef62['TcErQ']=_0x244bef(0x2e9),_0x3aef62[_0x244bef(0x1f8)]=_0x244bef(0x202);const _0x1c4ffa=_0x3aef62,_0x33bcaa=await fs[_0x244bef(0x288)](path[_0x244bef(0x244)](__dirname,'..',_0x1c4ffa[_0x244bef(0x313)],_0x1c4ffa[_0x244bef(0x2b1)]),_0x1c4ffa['TcErQ']),_0x37d0b8=yaml[_0x244bef(0x2b0)](_0x33bcaa);return _0x37d0b8[_0x244bef(0x2e0)][_0x244bef(0x28e)]=_0x37d0b8[_0x244bef(0x2e0)][_0x244bef(0x28e)][_0x244bef(0x29a)](_0x1c4ffa[_0x244bef(0x1f8)],_0x17d8fe),_0x37d0b8;}async['getNodeGroupInfo'](_0x33829d){const _0x46a957=a0_0x4ab51f,_0x3371ed={};_0x3371ed[_0x46a957(0x252)]=_0x46a957(0x28c);const _0x34b593=_0x3371ed,_0x3d0f48={};_0x3d0f48[_0x46a957(0x28a)]=_0x34b593['MWGcv'];const _0x493546=new awsSDK[(_0x46a957(0x1eb))](_0x3d0f48),_0x2fca0b={};return _0x2fca0b[_0x46a957(0x2f5)]=this[_0x46a957(0x2f5)],_0x2fca0b['nodegroupName']=_0x33829d,_0x493546[_0x46a957(0x308)](_0x2fca0b)['promise']();}async['checkClusterCreated'](){const _0x316cf9=a0_0x4ab51f,_0x5748fa={'VgSmy':function(_0x4b7838,_0x3f21be){return _0x4b7838(_0x3f21be);},'jDEbR':function(_0x1a9a84,_0x1d0a75){return _0x1a9a84===_0x1d0a75;},'eoBEJ':_0x316cf9(0x201),'GRIaH':function(_0x5944d9,_0x35cfc4){return _0x5944d9===_0x35cfc4;},'FgwSJ':_0x316cf9(0x2ae),'ZjMeD':'drYLa','EAkSY':function(_0x2074f1,_0x22c41f){return _0x2074f1(_0x22c41f);},'ciZFf':function(_0x448509,_0x2565eb){return _0x448509(_0x2565eb);},'cRKqz':function(_0x17627b,_0x4b03a7){return _0x17627b!==_0x4b03a7;},'khtVP':_0x316cf9(0x2f4),'RXytb':function(_0x275d0b,_0x4eeb8b){return _0x275d0b(_0x4eeb8b);},'mErWn':function(_0x271dec,_0x31a215){return _0x271dec===_0x31a215;},'DmxxU':_0x316cf9(0x2a5),'mHWnX':'stpSn','WSlnD':_0x316cf9(0x28c)};return new Promise((_0xd2d37a,_0x7ed0f0)=>{const _0x1b0b62=_0x316cf9;if(_0x5748fa[_0x1b0b62(0x21a)](_0x5748fa[_0x1b0b62(0x218)],_0x5748fa[_0x1b0b62(0x24f)]))return _0x465174['includes'](_0x227233)?!![]:(_0x3e1e45[_0x1b0b62(0x25f)](_0x3b39d1),![]);else{const _0x452a02={};_0x452a02[_0x1b0b62(0x28a)]=_0x5748fa[_0x1b0b62(0x2d4)];const _0x545426=new awsSDK[(_0x1b0b62(0x1eb))](_0x452a02);_0x545426[_0x1b0b62(0x1f0)]()[_0x1b0b62(0x2d7)]()['then'](_0xb3e67d=>{const _0x11fbbf=_0x1b0b62,_0x101017={'WKrLW':function(_0x20e92a,_0x43ec08){const _0x527920=a0_0x5d1a;return _0x5748fa[_0x527920(0x28d)](_0x20e92a,_0x43ec08);},'XtyQa':function(_0x375f96,_0x2a63fb){const _0x418adb=a0_0x5d1a;return _0x5748fa[_0x418adb(0x28d)](_0x375f96,_0x2a63fb);}};if(_0x5748fa['jDEbR'](_0x5748fa[_0x11fbbf(0x20a)],_0x5748fa[_0x11fbbf(0x20a)]))_0xb3e67d[_0x11fbbf(0x255)]['includes'](this[_0x11fbbf(0x2f5)])&&(_0x5748fa[_0x11fbbf(0x293)](_0x5748fa['FgwSJ'],_0x5748fa[_0x11fbbf(0x220)])?(_0x366398[_0x11fbbf(0x255)][_0x11fbbf(0x28f)](this[_0x11fbbf(0x2f5)])&&_0x101017[_0x11fbbf(0x206)](_0x3c0e4f,!![]),_0x101017[_0x11fbbf(0x2fd)](_0x178ded,![])):_0x5748fa[_0x11fbbf(0x307)](_0xd2d37a,!![])),_0x5748fa['ciZFf'](_0xd2d37a,![]);else return![];})[_0x1b0b62(0x2a9)](_0x6837c2=>{const _0x89354b=_0x1b0b62;_0x5748fa[_0x89354b(0x2d5)](_0x5748fa['khtVP'],_0x5748fa[_0x89354b(0x309)])?!this[_0x89354b(0x2c7)]()&&this[_0x89354b(0x2aa)]():(logger[_0x89354b(0x291)](_0x6837c2),_0x5748fa[_0x89354b(0x281)](_0x7ed0f0,_0x6837c2));});}});}async[a0_0x4ab51f(0x24e)](_0x20748e,_0x484ec7){const _0x28444f=a0_0x4ab51f,_0x51c50d={'duSlD':function(_0x1efb04,_0x3c9ec9){return _0x1efb04(_0x3c9ec9);}},_0x1b3648=this[_0x28444f(0x23c)][_0x28444f(0x2dc)](),_0x525934=await _0x51c50d[_0x28444f(0x2e3)](_0x20748e,_0x1b3648+_0x28444f(0x2bb)),_0x2100b2=await _0x51c50d[_0x28444f(0x2e3)](_0x20748e,_0x1b3648+_0x28444f(0x2cb));global_registry['cloudProviderAccessKey']=_0x525934,global_registry[_0x28444f(0x210)]=_0x2100b2;const _0x1111cd={};return _0x1111cd[_0x28444f(0x26a)]=_0x525934,_0x1111cd[_0x28444f(0x27f)]=_0x2100b2,_0x484ec7[_0x28444f(0x272)][AWS]=_0x1111cd,_0x484ec7;}async[a0_0x4ab51f(0x268)](){const _0x46533d=a0_0x4ab51f,_0x33cd80={'PzgZN':function(_0xd4e834){return _0xd4e834();},'UVUMe':_0x46533d(0x2ce),'LWxOS':_0x46533d(0x2c5),'KcSMy':'KubeConfigTemplate.yaml'},_0x1a1227=_0x33cd80[_0x46533d(0x2b3)](getDirForConfig),_0x53602e=await this[_0x46533d(0x2a7)](),_0x5b1502=path[_0x46533d(0x244)](_0x1a1227,_0x33cd80[_0x46533d(0x314)]),_0x3c8904=_0x46533d(0x230)+global_registry[_0x46533d(0x22b)]+_0x46533d(0x2fa)+global_registry[_0x46533d(0x210)];fs[_0x46533d(0x240)](_0x5b1502,_0x3c8904);let _0x1bc5dc=await fs[_0x46533d(0x288)](path[_0x46533d(0x244)](__dirname,'..',_0x33cd80['LWxOS'],_0x33cd80[_0x46533d(0x246)]));return _0x1bc5dc=_0x1bc5dc[_0x46533d(0x2c6)](),_0x1bc5dc=_0x1bc5dc[_0x46533d(0x29a)](/<CLUSTER_NAME>/g,this[_0x46533d(0x2f5)]),_0x1bc5dc=_0x1bc5dc[_0x46533d(0x29a)](/<CLUSTER_URL>/g,_0x53602e['cluster'][_0x46533d(0x2ca)]),_0x1bc5dc=_0x1bc5dc['replace'](/<CERTIFICATE_DATA>/g,_0x53602e[_0x46533d(0x30d)]['certificateAuthority']['data']),_0x1bc5dc=_0x1bc5dc['replace'](/<CLUSTER_REGION>/g,global_registry[_0x46533d(0x2ec)]),_0x1bc5dc=_0x1bc5dc['replace'](/<CLUSTER_NAME_USER>/g,IAM_USER_NAME),_0x1bc5dc=_0x1bc5dc[_0x46533d(0x29a)](/<CLOUD_PROVIDER_ACCESS_KEY>/g,global_registry[_0x46533d(0x22b)]),_0x1bc5dc=_0x1bc5dc[_0x46533d(0x29a)](/<CLOUD_PROVIDER_SECRET>/g,global_registry[_0x46533d(0x210)]),_0x1bc5dc=_0x1bc5dc[_0x46533d(0x29a)](/<AWS_CONFIG_FILE_PATH>/g,_0x5b1502),_0x1bc5dc;}async[a0_0x4ab51f(0x27b)](_0x5c7c93=null,_0x5836ce=null){const _0x2c74ed=a0_0x4ab51f,_0x34b199={'ZZqAr':function(_0x4cde5c,_0x4b9ee7){return _0x4cde5c(_0x4b9ee7);},'AzsWX':function(_0x4dae7f,_0x537405){return _0x4dae7f(_0x537405);},'vJyjF':_0x2c74ed(0x2f1),'aEaua':'Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','BafEk':function(_0x4e0f64,_0x445ef4,_0x7ab4f3,_0x3d06f4,_0x1fc00b,_0x32704a){return _0x4e0f64(_0x445ef4,_0x7ab4f3,_0x3d06f4,_0x1fc00b,_0x32704a);},'vERbb':_0x2c74ed(0x2f9),'yZLlt':function(_0x195ac6,_0x1f9ddc){return _0x195ac6===_0x1f9ddc;},'rojIV':function(_0x4599d1,_0x4e2f4b){return _0x4599d1===_0x4e2f4b;},'vSUcr':_0x2c74ed(0x26c),'gSWPB':_0x2c74ed(0x204)};_0x34b199[_0x2c74ed(0x274)](sendAWSInfoToHST,this['rws']);const _0x2e9d4b={};_0x2e9d4b[_0x2c74ed(0x226)]=WS_EVENTS[_0x2c74ed(0x258)],_0x2e9d4b['message']=_0x34b199[_0x2c74ed(0x207)],this[_0x2c74ed(0x1ec)][_0x2c74ed(0x221)](this[_0x2c74ed(0x25e)],_0x2e9d4b),logger[_0x2c74ed(0x2c3)](_0x34b199[_0x2c74ed(0x261)]);const _0x529d69=global_registry[_0x2c74ed(0x20e)],_0x19fab1=global_registry[_0x2c74ed(0x276)],_0x18b3eb=await _0x34b199['BafEk'](createClusterStack,this[_0x2c74ed(0x2f5)],_0x529d69,_0x19fab1,_0x5c7c93,_0x5836ce),_0x105ef0=_0x18b3eb[_0x2c74ed(0x245)][0x0][_0x2c74ed(0x22e)][0x0][_0x2c74ed(0x1f9)][_0x2c74ed(0x214)](','),_0x329e74=_0x18b3eb[_0x2c74ed(0x245)][0x0]['Outputs'][0x1][_0x2c74ed(0x1f9)],_0x4c6e42=_0x18b3eb[_0x2c74ed(0x245)][0x0][_0x2c74ed(0x22e)][0x3]['OutputValue'],_0x3d453f=_0x18b3eb[_0x2c74ed(0x245)][0x0]['Outputs'][0x4]['OutputValue'];logger[_0x2c74ed(0x2c3)](_0x34b199[_0x2c74ed(0x23d)]),logger[_0x2c74ed(0x2c3)](_0x2c74ed(0x27e)+_0x4c6e42+'\x20'),logger[_0x2c74ed(0x2c3)](_0x2c74ed(0x213)+_0x329e74+'\x20'),logger[_0x2c74ed(0x2c3)](_0x2c74ed(0x216)+_0x105ef0+'\x20'),logger['info'](_0x2c74ed(0x237)+_0x3d453f+'\x20');let _0x4d0da1=_0x2c74ed(0x25c)+_0x4c6e42+_0x2c74ed(0x228)+_0x329e74+',\x20SecurityGroups\x20=>\x20'+_0x105ef0+_0x2c74ed(0x269)+_0x3d453f+'\x20';if(_0x34b199[_0x2c74ed(0x259)](_0x5c7c93,null)&&_0x34b199['yZLlt'](_0x5836ce,null)){if(_0x34b199[_0x2c74ed(0x2fe)](_0x34b199['vSUcr'],_0x34b199[_0x2c74ed(0x25b)]))_0x57d7ed[_0x2c74ed(0x291)](_0x63d4a3),_0x34b199[_0x2c74ed(0x24c)](_0x1b34d8,_0x3bf2bb);else{const _0x263618=_0x18b3eb[_0x2c74ed(0x245)][0x0]['Outputs'][0x2][_0x2c74ed(0x1f9)],_0x323cec=_0x18b3eb[_0x2c74ed(0x245)][0x0][_0x2c74ed(0x22e)][0x5][_0x2c74ed(0x1f9)]['split'](',');logger[_0x2c74ed(0x2c3)](_0x2c74ed(0x1fa)+_0x263618+'\x20'),logger['info'](_0x2c74ed(0x2ee)+_0x323cec+'\x20'),_0x4d0da1+=',VPC\x20=>\x20'+_0x263618+',\x20Subnets\x20=>\x20'+_0x323cec+',\x20';}}const _0x4ef400={};_0x4ef400[_0x2c74ed(0x226)]=WS_EVENTS[_0x2c74ed(0x258)],_0x4ef400[_0x2c74ed(0x229)]=_0x4d0da1,this[_0x2c74ed(0x1ec)][_0x2c74ed(0x221)](this[_0x2c74ed(0x25e)],_0x4ef400);}async['deleteCluster'](_0x6a3916,_0x5fe18f){const _0x1500f7=a0_0x4ab51f,_0x10a1a5={'EutJD':function(_0x44f659,_0x5df254){return _0x44f659(_0x5df254);}};await _0x10a1a5[_0x1500f7(0x1ef)](deleteRoutingDeps,_0x6a3916),await _0x10a1a5['EutJD'](deleteClusterAndDependencies,_0x5fe18f);}async[a0_0x4ab51f(0x243)](_0x3daaf5,_0x40283c){const _0x28d1ba=a0_0x4ab51f,_0x119afe={'NIQlo':function(_0x450de3,_0x2d34ec){return _0x450de3(_0x2d34ec);},'rEgiQ':function(_0x129653,_0x52342e){return _0x129653!==_0x52342e;},'wrtnt':'vBEkj','ZzLDD':_0x28d1ba(0x1e9),'qlcUy':_0x28d1ba(0x266),'XybwP':function(_0x477c2e,_0x5d9495){return _0x477c2e===_0x5d9495;},'fLMmv':_0x28d1ba(0x2f3),'HuaJx':function(_0x5e03e8,_0x3b7107){return _0x5e03e8===_0x3b7107;},'EyaEp':'OkLJb','GFnQq':_0x28d1ba(0x289),'JKWyH':function(_0x188fef,_0xfd7295){return _0x188fef!==_0xfd7295;},'Jscgf':'CuSuk','Dbiar':_0x28d1ba(0x24b),'wECwl':function(_0x3849f3,_0x2a11be,_0x15ef55,_0x34b1d1,_0x4feb4f,_0x4136c7,_0x172b6a,_0x1dbd12){return _0x3849f3(_0x2a11be,_0x15ef55,_0x34b1d1,_0x4feb4f,_0x4136c7,_0x172b6a,_0x1dbd12);},'OCwMU':_0x28d1ba(0x1f7),'BGoUV':_0x28d1ba(0x1f4),'vzLvC':_0x28d1ba(0x20c),'UKHYu':function(_0x10e3f8,_0x55b9c3){return _0x10e3f8===_0x55b9c3;},'UpISw':_0x28d1ba(0x271),'cCcwm':_0x28d1ba(0x249),'evENf':function(_0x56b6bc,_0x364b6c){return _0x56b6bc(_0x364b6c);},'AzKhb':function(_0x3ff379,_0x4341db,_0x592f2e,_0x2c7f14,_0x261ad5,_0x22415d,_0x169656,_0x3e0313){return _0x3ff379(_0x4341db,_0x592f2e,_0x2c7f14,_0x261ad5,_0x22415d,_0x169656,_0x3e0313);},'QnmEv':_0x28d1ba(0x2b4),'spQDH':_0x28d1ba(0x291),'YeEUI':_0x28d1ba(0x27c)};let _0x5fa885,_0x13e306;const _0x2a5778={};_0x2a5778[_0x28d1ba(0x226)]=WS_EVENTS[_0x28d1ba(0x258)],_0x2a5778['message']=_0x119afe[_0x28d1ba(0x209)],this[_0x28d1ba(0x1ec)][_0x28d1ba(0x221)](this[_0x28d1ba(0x25e)],_0x2a5778),logger[_0x28d1ba(0x2c3)](_0x119afe['qlcUy']);try{if(_0x119afe[_0x28d1ba(0x2bf)](_0x119afe[_0x28d1ba(0x254)],_0x119afe[_0x28d1ba(0x254)])){const _0x23ba71=await _0x119afe[_0x28d1ba(0x29e)](createAutoscalerStack,this[_0x28d1ba(0x2f5)]);_0x13e306=_0x23ba71[_0x28d1ba(0x245)][0x0][_0x28d1ba(0x22e)][0x2][_0x28d1ba(0x1f9)];const _0x51e80a={};_0x51e80a[_0x28d1ba(0x226)]=WS_EVENTS[_0x28d1ba(0x258)],_0x51e80a[_0x28d1ba(0x229)]=_0x28d1ba(0x1fd)+_0x13e306+'\x20',this[_0x28d1ba(0x1ec)][_0x28d1ba(0x221)](this['rws'],_0x51e80a),logger[_0x28d1ba(0x2c3)]('Autoscaler\x20Role\x20created.ARN:\x20'+_0x13e306+'\x20');}else _0x42ab69[_0x28d1ba(0x291)](_0x28d1ba(0x1fe)+_0x512305+_0x28d1ba(0x2ad)+_0x517b05[_0x28d1ba(0x2ec)]+_0x28d1ba(0x2a6)+_0x517457),_0x119afe['NIQlo'](_0x42de55,[![],[]]);}catch(_0x28e4cc){if(_0x119afe[_0x28d1ba(0x250)](_0x119afe[_0x28d1ba(0x2a4)],_0x119afe[_0x28d1ba(0x283)]))_0x4322bd[_0x28d1ba(0x25f)](_0x1a7643[_0x28d1ba(0x224)]);else{if(_0x119afe[_0x28d1ba(0x231)](_0x28e4cc[_0x28d1ba(0x229)][_0x28d1ba(0x1f2)](/already exists/),null)||_0x119afe[_0x28d1ba(0x2c4)](_0x28e4cc[_0x28d1ba(0x229)][_0x28d1ba(0x1f2)](/already exists/),undefined))_0x119afe['HuaJx'](_0x119afe[_0x28d1ba(0x23f)],_0x119afe[_0x28d1ba(0x234)])?_0x119afe[_0x28d1ba(0x29e)](_0x5822b2,!![]):(_0x5fa885=_0x28d1ba(0x2c0)+_0x28e4cc[_0x28d1ba(0x229)],await _0x119afe['wECwl'](reportToGalactusAndSendToEDS,_0x40283c,this[_0x28d1ba(0x25e)],_0x5fa885,messageTypes['WARNING'],_0x119afe[_0x28d1ba(0x30c)],_0x119afe[_0x28d1ba(0x1f5)],_0x119afe['vzLvC']),logger[_0x28d1ba(0x212)](_0x5fa885));else{if(_0x119afe[_0x28d1ba(0x2f2)](_0x119afe[_0x28d1ba(0x2cc)],_0x119afe[_0x28d1ba(0x2cc)])){const _0x200f43=_0x119afe[_0x28d1ba(0x311)][_0x28d1ba(0x214)]('|');let _0x30c2a4=0x0;while(!![]){switch(_0x200f43[_0x30c2a4++]){case'0':await _0x119afe[_0x28d1ba(0x208)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'1':_0x5fa885=_0x28d1ba(0x247)+_0x28e4cc[_0x28d1ba(0x229)]+_0x28d1ba(0x26f);continue;case'2':await _0x119afe[_0x28d1ba(0x253)](reportToGalactusAndSendToEDS,_0x40283c,this[_0x28d1ba(0x25e)],_0x5fa885,messageTypes[_0x28d1ba(0x298)],_0x119afe[_0x28d1ba(0x30c)],_0x119afe[_0x28d1ba(0x262)],_0x119afe[_0x28d1ba(0x290)]);continue;case'3':logger[_0x28d1ba(0x291)](_0x5fa885);continue;case'4':process[_0x28d1ba(0x30e)](0x1);continue;}break;}}else return _0x131bfd[_0x28d1ba(0x26b)][_0x28d1ba(0x267)][_0x28d1ba(0x1e7)][_0x28d1ba(0x25d)][0x0][_0x28d1ba(0x285)];}}}let _0x2b98af=await this[_0x28d1ba(0x2cf)](this[_0x28d1ba(0x2f5)]+'-NodeGroup');const _0x3e7aef=_0x2b98af[_0x28d1ba(0x225)][_0x28d1ba(0x2e8)],_0x137031=await this[_0x28d1ba(0x27a)](_0x3e7aef);return await _0x3daaf5[_0x28d1ba(0x22d)](_0x119afe[_0x28d1ba(0x23a)],_0x137031)[_0x28d1ba(0x2a9)](_0x3f0b1b=>{const _0x48f09e=_0x28d1ba;if(_0x119afe['rEgiQ'](_0x119afe['wrtnt'],_0x119afe[_0x48f09e(0x257)])){const _0x3b0b9a=_0x20bc5e[_0x48f09e(0x245)][0x0][_0x48f09e(0x22e)][0x2]['OutputValue'],_0x336c70=_0x53b9be[_0x48f09e(0x245)][0x0][_0x48f09e(0x22e)][0x5]['OutputValue'][_0x48f09e(0x214)](',');_0x4f6eb0[_0x48f09e(0x2c3)](_0x48f09e(0x1fa)+_0x3b0b9a+'\x20'),_0x5b7a5b[_0x48f09e(0x2c3)]('Subnets\x20=>\x20'+_0x336c70+'\x20'),_0x4d2b71+=_0x48f09e(0x2fb)+_0x3b0b9a+_0x48f09e(0x27d)+_0x336c70+',\x20';}else logger[_0x48f09e(0x2c3)](_0x119afe[_0x48f09e(0x2bc)]);}),_0x13e306;}['isVPCPresent'](_0x127b6b){const _0x1b7712=a0_0x4ab51f,_0x194a5a={'PKNZL':function(_0x1b05f8,_0x3b6fb7){return _0x1b05f8(_0x3b6fb7);},'BQUhq':_0x1b7712(0x28c),'oqjTk':function(_0x250fa5,_0x2b7e6f){return _0x250fa5!==_0x2b7e6f;},'ervfd':_0x1b7712(0x21f),'Xqmoc':function(_0x26c1f3,_0x3be24d){return _0x26c1f3(_0x3be24d);},'Aqvmb':_0x1b7712(0x1e9),'nFBMo':'EzAMU','Qxhcx':function(_0x1693ed,_0x594935){return _0x1693ed(_0x594935);},'romzh':_0x1b7712(0x2a0),'BQiWh':_0x1b7712(0x235)},_0x3731cf={};_0x3731cf[_0x1b7712(0x248)]=[_0x127b6b];let _0x5629dc=_0x3731cf;return new Promise((_0x21f6b9,_0x5ead91)=>{const _0x58e6a9=_0x1b7712;if(_0x194a5a[_0x58e6a9(0x215)](_0x194a5a[_0x58e6a9(0x30f)],_0x194a5a[_0x58e6a9(0x30f)])){const _0x717355={};_0x717355[_0x58e6a9(0x22a)]=_0x2a9f2b[_0x58e6a9(0x2ec)],_0x717355[_0x58e6a9(0x2e5)]=_0x4061d3[_0x58e6a9(0x22b)],_0x717355[_0x58e6a9(0x20f)]=_0x58315f[_0x58e6a9(0x210)],_0x48029a[_0x58e6a9(0x1e8)][_0x58e6a9(0x279)](_0x717355),_0x833289[_0x58e6a9(0x2b7)]=!![];}else{const _0x49311b={};_0x49311b[_0x58e6a9(0x28a)]=_0x194a5a[_0x58e6a9(0x21e)],_0x49311b[_0x58e6a9(0x22a)]=global_registry[_0x58e6a9(0x2ec)];const _0x2b7124=new awsSDK[(_0x58e6a9(0x2d9))](_0x49311b);_0x2b7124[_0x58e6a9(0x26d)](_0x5629dc)['promise']()[_0x58e6a9(0x287)](_0x254547=>{const _0x42b326=_0x58e6a9,_0x28992f={'QQtQi':function(_0x1cba75,_0x5b46bb){const _0x520e02=a0_0x5d1a;return _0x194a5a[_0x520e02(0x24d)](_0x1cba75,_0x5b46bb);},'NUiNa':_0x194a5a[_0x42b326(0x2a8)]};if(_0x194a5a['oqjTk'](_0x194a5a['ervfd'],_0x194a5a[_0x42b326(0x29c)])){const _0x59c474={};_0x59c474[_0x42b326(0x28a)]=_0x28992f[_0x42b326(0x29f)];const _0x5f113a=new _0x4d45d3['EKS'](_0x59c474);_0x5f113a[_0x42b326(0x1f0)]()[_0x42b326(0x2d7)]()['then'](_0x52ab93=>{const _0x2e662f=_0x42b326;_0x52ab93[_0x2e662f(0x255)][_0x2e662f(0x28f)](this[_0x2e662f(0x2f5)])&&_0x28992f[_0x2e662f(0x242)](_0x1c7b6b,!![]),_0x28992f[_0x2e662f(0x242)](_0x40e79f,![]);})[_0x42b326(0x2a9)](_0x7a5fe9=>{const _0x4ff162=_0x42b326;_0x502e23[_0x4ff162(0x291)](_0x7a5fe9),_0x28992f[_0x4ff162(0x242)](_0x4123b7,_0x7a5fe9);});}else _0x194a5a['Xqmoc'](_0x21f6b9,!![]);})['catch'](_0x196946=>{const _0x9258df=_0x58e6a9,_0x56cd93={};_0x56cd93['CXqjm']=_0x194a5a[_0x9258df(0x2a3)];const _0x4b15ae=_0x56cd93;_0x194a5a['oqjTk'](_0x194a5a['nFBMo'],_0x194a5a['nFBMo'])?_0x4cec1[_0x9258df(0x2c3)](_0x4b15ae['CXqjm']):(logger[_0x9258df(0x291)]('Cannot\x20find\x20VPC\x20'+_0x127b6b+_0x9258df(0x2ad)+global_registry[_0x9258df(0x2ec)]+_0x9258df(0x1fc)),_0x194a5a[_0x9258df(0x211)](_0x21f6b9,![]));});}});}[a0_0x4ab51f(0x286)](_0x9aee75,_0x4a640d){const _0x42c7d8=a0_0x4ab51f,_0x18ae8e={'OYEJL':function(_0x4ab7d0,_0x260ba1){return _0x4ab7d0(_0x260ba1);},'rqIXD':function(_0x2cd29c,_0x4da8ac){return _0x2cd29c!==_0x4da8ac;},'QSXoB':'rsnHl','xXGbg':_0x42c7d8(0x306),'DCUVs':_0x42c7d8(0x273),'PBQAd':function(_0x5dfd81,_0x14e92d){return _0x5dfd81(_0x14e92d);},'cepFS':'2017-11-01','mffyb':function(_0x4b2e58,_0x1ca1d0){return _0x4b2e58!==_0x1ca1d0;},'lyDAA':'PaCzG','ncpeo':function(_0x3a2f2f,_0x31a3e9){return _0x3a2f2f(_0x31a3e9);},'YtVOe':function(_0x47967d,_0x192159){return _0x47967d===_0x192159;},'MDwsF':_0x42c7d8(0x305),'rcyis':'browserstack','ZgsEh':function(_0xaad7b,_0x5f2f4b){return _0xaad7b!==_0x5f2f4b;},'ebvrG':_0x42c7d8(0x2d2),'lbCKS':_0x42c7d8(0x30a),'cPrlg':function(_0x30676c,_0x8f711b){return _0x30676c===_0x8f711b;},'rcVvK':_0x42c7d8(0x2ac),'VPRpZ':_0x42c7d8(0x1f6),'zFNfu':_0x42c7d8(0x2b2),'YAKKJ':_0x42c7d8(0x304),'yHqKO':'2016-11-15','rrsfh':function(_0xeb0462,_0x53c28c){return _0xeb0462===_0x53c28c;},'gjLAy':'ImQih','jgSnt':_0x42c7d8(0x277)},_0x5f3fe3={};_0x5f3fe3[_0x42c7d8(0x21d)]=_0x18ae8e['jgSnt'],_0x5f3fe3[_0x42c7d8(0x312)]=[_0x4a640d];const _0x3abdd8={};_0x3abdd8[_0x42c7d8(0x2f6)]=[_0x5f3fe3];let _0x4380d1=_0x3abdd8;return new Promise((_0xbfcbc7,_0x24db38)=>{const _0x45204c=_0x42c7d8,_0x5a6f7b={'Gyfbc':function(_0x504191,_0x18e711){const _0x1096d0=a0_0x5d1a;return _0x18ae8e[_0x1096d0(0x2c9)](_0x504191,_0x18e711);},'wJEnj':_0x18ae8e[_0x45204c(0x22c)],'umuvg':_0x18ae8e['rcyis'],'ScaCf':function(_0x449cda,_0x32add6){const _0x5cbb3c=_0x45204c;return _0x18ae8e[_0x5cbb3c(0x26e)](_0x449cda,_0x32add6);},'AatqZ':_0x18ae8e[_0x45204c(0x24a)],'Dkydq':_0x18ae8e[_0x45204c(0x264)],'QoglC':function(_0x3c0234,_0x493e17){const _0x467afd=_0x45204c;return _0x18ae8e[_0x467afd(0x232)](_0x3c0234,_0x493e17);},'dPppU':_0x18ae8e[_0x45204c(0x2ed)],'uoCsg':_0x18ae8e[_0x45204c(0x2b8)],'fNamu':_0x18ae8e[_0x45204c(0x2d6)],'oZOiE':_0x18ae8e[_0x45204c(0x219)],'FoTss':function(_0xbfeb,_0x30ab3a){return _0x18ae8e['ncpeo'](_0xbfeb,_0x30ab3a);},'nsEAG':_0x18ae8e[_0x45204c(0x217)]};if(_0x18ae8e[_0x45204c(0x25a)](_0x18ae8e[_0x45204c(0x2d0)],_0x18ae8e[_0x45204c(0x2d0)])){const _0x3d2b7b={};_0x3d2b7b['apiVersion']=_0x18ae8e[_0x45204c(0x217)],_0x3d2b7b[_0x45204c(0x22a)]=global_registry['clusterRegion'];const _0x783a37=new awsSDK[(_0x45204c(0x2d9))](_0x3d2b7b);_0x783a37[_0x45204c(0x238)](_0x4380d1)['promise']()[_0x45204c(0x287)](_0x28a521=>{const _0x666d1c=_0x45204c,_0x1179a0={'njEbR':function(_0xe35dc0,_0x45567a){const _0x268b83=a0_0x5d1a;return _0x18ae8e[_0x268b83(0x2fc)](_0xe35dc0,_0x45567a);},'WQGbD':function(_0x57f95f,_0x57f2e2){const _0x4b2018=a0_0x5d1a;return _0x18ae8e[_0x4b2018(0x2ff)](_0x57f95f,_0x57f2e2);},'qIOvi':_0x18ae8e[_0x666d1c(0x310)]};if(_0x18ae8e['rqIXD'](_0x18ae8e[_0x666d1c(0x278)],_0x18ae8e[_0x666d1c(0x1f3)])){const _0xeaa6bc=[],_0x2aee27=[];_0x28a521[_0x666d1c(0x300)][_0x666d1c(0x2da)](_0x97f3dd=>{const _0x481384=_0x666d1c;_0x1179a0[_0x481384(0x2b9)](_0x1179a0[_0x481384(0x260)],_0x1179a0[_0x481384(0x260)])?_0x1179a0[_0x481384(0x2e4)](_0x28344c,!![]):_0xeaa6bc[_0x481384(0x25f)](_0x97f3dd[_0x481384(0x224)]);});const _0x41d84f=_0x9aee75['every'](_0x49a2ce=>{const _0x2b6a43=_0x666d1c,_0x419a74={'ymRCI':function(_0x138b07,_0x30bf62){return _0x5a6f7b['Gyfbc'](_0x138b07,_0x30bf62);},'RWYcj':_0x5a6f7b[_0x2b6a43(0x2be)],'nhDmY':_0x5a6f7b[_0x2b6a43(0x2e2)]};if(_0x5a6f7b[_0x2b6a43(0x30b)](_0x5a6f7b[_0x2b6a43(0x2f8)],_0x5a6f7b[_0x2b6a43(0x1ff)])){if(_0xeaa6bc[_0x2b6a43(0x28f)](_0x49a2ce))return _0x5a6f7b[_0x2b6a43(0x1fb)](_0x5a6f7b[_0x2b6a43(0x2c8)],_0x5a6f7b[_0x2b6a43(0x2ab)])?!![]:!![];else{if(_0x5a6f7b[_0x2b6a43(0x1fb)](_0x5a6f7b[_0x2b6a43(0x265)],_0x5a6f7b[_0x2b6a43(0x2a2)])){const _0x5bd2f0=_0x101068['cluster']['tags'];return _0x5bd2f0&&_0x419a74[_0x2b6a43(0x2ea)](_0x5bd2f0[_0x419a74[_0x2b6a43(0x2d8)]][_0x2b6a43(0x2ef)](),_0x419a74[_0x2b6a43(0x301)]);}else return _0x2aee27[_0x2b6a43(0x25f)](_0x49a2ce),![];}}else this[_0x2b6a43(0x2aa)]();});_0x18ae8e['PBQAd'](_0xbfcbc7,[_0x41d84f,_0x2aee27]);}else _0x4bc912['error'](_0x666d1c(0x256)+_0x46053c+'\x20in\x20region\x20'+_0x2472bb[_0x666d1c(0x2ec)]+_0x666d1c(0x1fc)),_0x1179a0[_0x666d1c(0x2e4)](_0x25a8b3,![]);})['catch'](_0x9196c2=>{const _0x3841a3=_0x45204c,_0x5bba8a={};_0x5bba8a[_0x3841a3(0x2bd)]=_0x18ae8e[_0x3841a3(0x2ba)];const _0x1704db=_0x5bba8a;if(_0x18ae8e[_0x3841a3(0x297)](_0x18ae8e['lyDAA'],_0x18ae8e['lyDAA'])){const _0x341869={};_0x341869[_0x3841a3(0x28a)]=_0x1704db[_0x3841a3(0x2bd)];const _0x40e574=new _0x434d5b['EKS'](_0x341869),_0x6ace7b={};return _0x6ace7b[_0x3841a3(0x2f5)]=this[_0x3841a3(0x2f5)],_0x6ace7b[_0x3841a3(0x275)]=_0x3c9d69,_0x40e574[_0x3841a3(0x308)](_0x6ace7b)[_0x3841a3(0x2d7)]();}else logger['error'](_0x3841a3(0x1fe)+_0x9aee75+_0x3841a3(0x2ad)+global_registry[_0x3841a3(0x2ec)]+'.\x20Error:\x20'+_0x9196c2),_0x18ae8e['ncpeo'](_0xbfcbc7,[![],[]]);});}else{const _0x34fa80={'UIHYx':function(_0xe67867,_0x537913){const _0x4dd025=_0x45204c;return _0x5a6f7b[_0x4dd025(0x299)](_0xe67867,_0x537913);},'yxNEf':_0x5a6f7b[_0x45204c(0x2de)]},_0x4148cf={};_0x4148cf['VpcIds']=[_0xf6e6f6];let _0x1cc41d=_0x4148cf;return new _0xdff9f9((_0x28389d,_0x7d3f3e)=>{const _0x26e541=_0x45204c,_0x5c7860={'LzzTI':function(_0x1f4854,_0x5c6448){const _0x2b0885=a0_0x5d1a;return _0x34fa80[_0x2b0885(0x1ea)](_0x1f4854,_0x5c6448);}},_0x188d79={};_0x188d79[_0x26e541(0x28a)]=_0x34fa80[_0x26e541(0x2f7)],_0x188d79[_0x26e541(0x22a)]=_0x307dc[_0x26e541(0x2ec)];const _0x758580=new _0x2a5cbf['EC2'](_0x188d79);_0x758580[_0x26e541(0x26d)](_0x1cc41d)[_0x26e541(0x2d7)]()[_0x26e541(0x287)](_0x347f25=>{const _0x2eb348=_0x26e541;_0x5c7860[_0x2eb348(0x239)](_0x28389d,!![]);})[_0x26e541(0x2a9)](_0x2cbe7c=>{const _0x216481=_0x26e541;_0x68bcae[_0x216481(0x291)](_0x216481(0x256)+_0x3651dd+_0x216481(0x2ad)+_0xc309f0['clusterRegion']+'.\x20Please\x20Check\x20and\x20try\x20again'),_0x5c7860[_0x216481(0x239)](_0x28389d,![]);});});}});}}function a0_0x5d1a(_0x54f85a,_0x1c4787){const _0x552f56=a0_0x552f();return a0_0x5d1a=function(_0x5d1ade,_0x2598cb){_0x5d1ade=_0x5d1ade-0x1e7;let _0x5745b6=_0x552f56[_0x5d1ade];return _0x5745b6;},a0_0x5d1a(_0x54f85a,_0x1c4787);}const a0_0x3d8533={};a0_0x3d8533[a0_0x4ab51f(0x23b)]=AWSCloudProvider,module['exports']=a0_0x3d8533;
1
+ const a0_0x39894e=a0_0x460f;function a0_0x460f(_0x5664e6,_0x17bb20){const _0x4cb8f2=a0_0x4cb8();return a0_0x460f=function(_0x460f63,_0x4e014b){_0x460f63=_0x460f63-0xe9;let _0x56643e=_0x4cb8f2[_0x460f63];return _0x56643e;},a0_0x460f(_0x5664e6,_0x17bb20);}(function(_0x27a2df,_0x1d0c4c){const _0x4fd87f=a0_0x460f,_0x54c57c=_0x27a2df();while(!![]){try{const _0x3793ee=-parseInt(_0x4fd87f(0x128))/0x1*(-parseInt(_0x4fd87f(0x1a2))/0x2)+-parseInt(_0x4fd87f(0x16d))/0x3*(parseInt(_0x4fd87f(0x1b9))/0x4)+parseInt(_0x4fd87f(0x119))/0x5*(parseInt(_0x4fd87f(0x13c))/0x6)+parseInt(_0x4fd87f(0x1b3))/0x7+-parseInt(_0x4fd87f(0x132))/0x8*(parseInt(_0x4fd87f(0x179))/0x9)+parseInt(_0x4fd87f(0x10a))/0xa+-parseInt(_0x4fd87f(0x129))/0xb;if(_0x3793ee===_0x1d0c4c)break;else _0x54c57c['push'](_0x54c57c['shift']());}catch(_0x30ad70){_0x54c57c['push'](_0x54c57c['shift']());}}}(a0_0x4cb8,0xae0be));const fs=require('fs'),path=require(a0_0x39894e(0x13f)),yaml=require('js-yaml'),awsSDK=require(a0_0x39894e(0x121)),{logger}=require(a0_0x39894e(0x112)),{CloudProvider}=require(a0_0x39894e(0x17a)),{sendAWSInfoToHST}=require('../utils/hstUtils'),{deleteClusterStack}=require(a0_0x39894e(0x15a)),{createClusterStack}=require(a0_0x39894e(0x15f)),{deleteClusterAndDependencies,deleteRoutingDeps}=require(a0_0x39894e(0x1c2)),{createAutoscalerStack}=require(a0_0x39894e(0xff)),{getDirForConfig,reportToGalactusAndSendToEDS}=require(a0_0x39894e(0x1af)),{IAM_USER_NAME,AWS,WS_EVENTS,CLUSTER_DEP_STACK_NAME,global_registry,messageTypes}=require(a0_0x39894e(0x100));class AWSCloudProvider extends CloudProvider{constructor(_0x2f41cd,_0x2a58b5,_0x5b95a7,_0x5a9fe2){super(AWS,_0x2f41cd,_0x2a58b5,_0x5b95a7,_0x5a9fe2);}[a0_0x39894e(0x187)](){const _0x37a0b5=a0_0x39894e,_0x53c578={};_0x53c578[_0x37a0b5(0x105)]=_0x37a0b5(0x174),_0x53c578[_0x37a0b5(0x142)]=function(_0x359c8d,_0x2c4f00){return _0x359c8d===_0x2c4f00;},_0x53c578[_0x37a0b5(0x17f)]=_0x37a0b5(0x200);const _0x46c63e=_0x53c578;!this['isConfigured']()&&(_0x46c63e[_0x37a0b5(0x142)](_0x46c63e['uXPBZ'],_0x46c63e[_0x37a0b5(0x17f)])?this['setConfig']():_0x5b948b[_0x37a0b5(0xee)](_0x46c63e['hgmPb']));}[a0_0x39894e(0x19d)](){const _0x1d8489=a0_0x39894e,_0x4f11a9={};_0x4f11a9[_0x1d8489(0x12c)]=function(_0x1c34ab,_0x481590){return _0x1c34ab===_0x481590;};const _0x36e98f=_0x4f11a9;return _0x36e98f[_0x1d8489(0x12c)](global_registry['awsConfigSet'],!![]);}[a0_0x39894e(0x1b2)](){const _0x1cec33=a0_0x39894e,_0x4df115={};_0x4df115[_0x1cec33(0x1ec)]=global_registry['clusterRegion'],_0x4df115['accessKeyId']=global_registry[_0x1cec33(0x1c4)],_0x4df115[_0x1cec33(0x1c9)]=global_registry[_0x1cec33(0x201)],awsSDK['config']['update'](_0x4df115),global_registry[_0x1cec33(0x1a5)]=!![];}async[a0_0x39894e(0x106)](_0x3137c8){const _0xdc2491=a0_0x39894e;global_registry[_0xdc2491(0x1c4)]=_0x3137c8[this[_0xdc2491(0x1eb)]][_0xdc2491(0x1ae)],global_registry[_0xdc2491(0x201)]=_0x3137c8[this['cloudProviderName']][_0xdc2491(0x101)];}['getGridHostname'](_0x30cc10){const _0x409b26=a0_0x39894e;return _0x30cc10[_0x409b26(0x104)][_0x409b26(0xfe)]['loadBalancer'][_0x409b26(0x10d)][0x0][_0x409b26(0x137)];}async[a0_0x39894e(0x1b1)](){const _0x33b560=a0_0x39894e,_0x2e7f50={'YSnbK':function(_0x146a4a,_0x25667f){return _0x146a4a(_0x25667f);},'Tcrph':function(_0x55ac3d,_0x43c4eb){return _0x55ac3d!==_0x43c4eb;},'EyxFd':_0x33b560(0x1aa),'OLHNv':function(_0x424579,_0xa762f0){return _0x424579!==_0xa762f0;},'KvxGs':'ZWiuI','fMZrF':function(_0x461a92,_0x5084c5){return _0x461a92===_0x5084c5;},'xKdtT':'browserstack:managedBy','CyRnE':'browserstack','tjDJV':'OmKNE','UcOQA':_0x33b560(0x1b5)};try{if(_0x2e7f50[_0x33b560(0x190)](_0x2e7f50['EyxFd'],_0x2e7f50[_0x33b560(0x122)]))return _0x19ad55[_0x33b560(0x125)](_0x1ce87c)?!![]:(_0x3103a7[_0x33b560(0x203)](_0x7af7c6),![]);else{const _0x1fb8e2=await this[_0x33b560(0x1e8)]();if(_0x1fb8e2[_0x33b560(0x204)]){if(_0x2e7f50[_0x33b560(0x17b)](_0x2e7f50['KvxGs'],_0x2e7f50['KvxGs']))_0x2e7f50['YSnbK'](_0x3be84c,!![]);else{const _0x54cff2=_0x1fb8e2[_0x33b560(0x204)][_0x33b560(0x115)];return _0x54cff2&&_0x2e7f50[_0x33b560(0x195)](_0x54cff2[_0x2e7f50[_0x33b560(0x14c)]][_0x33b560(0x141)](),_0x2e7f50[_0x33b560(0x123)]);}}}}catch(_0x277f3d){return _0x2e7f50[_0x33b560(0x195)](_0x2e7f50[_0x33b560(0x134)],_0x2e7f50[_0x33b560(0x1ba)])?(_0x5d64dc['push'](_0xa91951),![]):![];}return![];}async[a0_0x39894e(0xeb)](){const _0x351b21=a0_0x39894e;return this[_0x351b21(0x187)](),this[_0x351b21(0x170)]();}async[a0_0x39894e(0x1e8)](){const _0x47f027=a0_0x39894e,_0x55fc71={};_0x55fc71['dZKmx']=_0x47f027(0x180);const _0x58c4e4=_0x55fc71,_0x2397ef={};_0x2397ef['apiVersion']=_0x58c4e4['dZKmx'];const _0x24822e=new awsSDK[(_0x47f027(0x1d7))](_0x2397ef),_0x118dca={};return _0x118dca['name']=this[_0x47f027(0x1a3)],_0x24822e[_0x47f027(0x11e)](_0x118dca)[_0x47f027(0x1da)]();}async['createAuthConfigMap'](_0x5ef00e){const _0x5834cf=a0_0x39894e,_0x147ee4={};_0x147ee4['vEJPr']=_0x5834cf(0x1c7),_0x147ee4[_0x5834cf(0x16b)]=_0x5834cf(0x1ef),_0x147ee4[_0x5834cf(0x139)]=_0x5834cf(0x1b7),_0x147ee4['cXnXD']=_0x5834cf(0x156);const _0x443d42=_0x147ee4,_0x4fee0e=await fs[_0x5834cf(0x12a)](path[_0x5834cf(0xf5)](__dirname,'..',_0x443d42['vEJPr'],_0x443d42[_0x5834cf(0x16b)]),_0x443d42[_0x5834cf(0x139)]),_0x49693e=yaml[_0x5834cf(0xfa)](_0x4fee0e);return _0x49693e[_0x5834cf(0x1b0)][_0x5834cf(0x1f8)]=_0x49693e[_0x5834cf(0x1b0)][_0x5834cf(0x1f8)][_0x5834cf(0x14f)](_0x443d42[_0x5834cf(0x1d5)],_0x5ef00e),_0x49693e;}async[a0_0x39894e(0x1ce)](_0x722a73){const _0x163367=a0_0x39894e,_0x287341={};_0x287341[_0x163367(0x157)]=_0x163367(0x180);const _0x4855bd=_0x287341,_0x205439={};_0x205439[_0x163367(0x1fb)]=_0x4855bd[_0x163367(0x157)];const _0x369974=new awsSDK[(_0x163367(0x1d7))](_0x205439),_0x3ecfc0={};return _0x3ecfc0[_0x163367(0x1a3)]=this[_0x163367(0x1a3)],_0x3ecfc0[_0x163367(0x16c)]=_0x722a73,_0x369974['describeNodegroup'](_0x3ecfc0)['promise']();}async[a0_0x39894e(0x170)](){const _0x41d30a=a0_0x39894e,_0x1e4270={'IarNQ':function(_0x3149b1,_0x42598e){return _0x3149b1===_0x42598e;},'oIVxw':_0x41d30a(0x116),'eBtXH':'browserstack','fruBr':function(_0x4d1900,_0x57e7e5){return _0x4d1900(_0x57e7e5);},'pvxJv':function(_0x30c56b,_0x42ba03){return _0x30c56b!==_0x42ba03;},'kWucC':_0x41d30a(0x15e),'fjMGO':'iMeMT','RGHeU':_0x41d30a(0x173),'aKVoP':_0x41d30a(0x169),'aUlgL':function(_0x55b67a,_0x5996ae){return _0x55b67a(_0x5996ae);},'PHqCu':function(_0x21f1e7,_0x4bc997){return _0x21f1e7(_0x4bc997);},'CtjpL':_0x41d30a(0x166),'EqNgg':function(_0x272de9,_0x19e6fd){return _0x272de9!==_0x19e6fd;},'VOuKD':'cQwDk','dJqxL':_0x41d30a(0x1c0),'gRFTK':_0x41d30a(0x1ee),'lnLSH':_0x41d30a(0x180)};return new Promise((_0x5394ec,_0x235361)=>{const _0x81aa76=_0x41d30a,_0x5b7518={'bQeCE':function(_0x1abdd8,_0x1144aa){const _0x4b2cd4=a0_0x460f;return _0x1e4270[_0x4b2cd4(0x13d)](_0x1abdd8,_0x1144aa);},'nJQGn':_0x1e4270[_0x81aa76(0x1a8)],'wnsaR':_0x1e4270['eBtXH'],'euHZa':function(_0x16364b,_0x235308){return _0x1e4270['fruBr'](_0x16364b,_0x235308);},'APmGW':function(_0x586184,_0x4ecf39){const _0x2b20d9=_0x81aa76;return _0x1e4270[_0x2b20d9(0xfc)](_0x586184,_0x4ecf39);},'xdLKm':_0x1e4270[_0x81aa76(0x18b)],'ADffr':_0x1e4270[_0x81aa76(0x14e)],'jQdaC':_0x1e4270['RGHeU'],'jmpbC':_0x1e4270[_0x81aa76(0x1c8)],'MoXDz':function(_0x14ef2b,_0x59f6f9){const _0x13c3c4=_0x81aa76;return _0x1e4270[_0x13c3c4(0x20b)](_0x14ef2b,_0x59f6f9);},'EcRpB':function(_0x2f9887,_0x558a27){const _0xd4929b=_0x81aa76;return _0x1e4270[_0xd4929b(0x1f1)](_0x2f9887,_0x558a27);},'hPLZN':function(_0x319345,_0x7cd2b3){const _0x2d727a=_0x81aa76;return _0x1e4270[_0x2d727a(0x15c)](_0x319345,_0x7cd2b3);},'xFNdd':_0x1e4270['CtjpL'],'jfUcR':function(_0x1d70b8,_0x2e9e9f){const _0x9bec93=_0x81aa76;return _0x1e4270[_0x9bec93(0x135)](_0x1d70b8,_0x2e9e9f);},'VkMhm':_0x1e4270['VOuKD'],'JDhkI':_0x1e4270[_0x81aa76(0x191)]};if(_0x1e4270[_0x81aa76(0x13d)](_0x1e4270[_0x81aa76(0x1f9)],_0x1e4270[_0x81aa76(0x1f9)])){const _0x26a3f6={};_0x26a3f6[_0x81aa76(0x1fb)]=_0x1e4270[_0x81aa76(0xf4)];const _0x236c60=new awsSDK['EKS'](_0x26a3f6);_0x236c60[_0x81aa76(0x205)]()[_0x81aa76(0x1da)]()['then'](_0x451e6a=>{const _0x156fef=_0x81aa76,_0x1c087e={'egLnQ':function(_0x3d3f6d,_0x914000){const _0x4fe9a9=a0_0x460f;return _0x5b7518[_0x4fe9a9(0x182)](_0x3d3f6d,_0x914000);},'tTxZQ':_0x5b7518[_0x156fef(0x1ff)],'WmmuO':_0x5b7518[_0x156fef(0x1a6)],'MBbfL':function(_0x56ed29,_0xf1c4a9){const _0x433126=_0x156fef;return _0x5b7518[_0x433126(0x16a)](_0x56ed29,_0xf1c4a9);}};if(_0x5b7518[_0x156fef(0x1ed)](_0x5b7518[_0x156fef(0x160)],_0x5b7518['ADffr'])){if(_0x451e6a['clusters'][_0x156fef(0x125)](this[_0x156fef(0x1a3)])){if(_0x5b7518[_0x156fef(0x1ed)](_0x5b7518['jQdaC'],_0x5b7518[_0x156fef(0x1a0)]))_0x5b7518[_0x156fef(0x136)](_0x5394ec,!![]);else{const _0x332f3b=_0x27b198[_0x156fef(0x204)]['tags'];return _0x332f3b&&_0x1c087e[_0x156fef(0x159)](_0x332f3b[_0x1c087e['tTxZQ']][_0x156fef(0x141)](),_0x1c087e[_0x156fef(0xf9)]);}}_0x5b7518[_0x156fef(0x11c)](_0x5394ec,![]);}else _0x40aa17[_0x156fef(0x185)](_0x2c4c07),_0x1c087e[_0x156fef(0x1b4)](_0x3f183e,_0x269a57);})['catch'](_0x27a91f=>{const _0x275933=_0x81aa76,_0x524b87={'jtrVc':function(_0xeb3980,_0x300ee7){const _0x38c449=a0_0x460f;return _0x5b7518[_0x38c449(0x11d)](_0xeb3980,_0x300ee7);},'AnDfQ':_0x5b7518[_0x275933(0x20a)]};if(_0x5b7518[_0x275933(0x147)](_0x5b7518[_0x275933(0x17d)],_0x5b7518[_0x275933(0x1e1)]))logger['error'](_0x27a91f),_0x5b7518['euHZa'](_0x235361,_0x27a91f);else{const _0x388aeb={};_0x388aeb[_0x275933(0x1fb)]=_0x524b87[_0x275933(0x1cb)],_0x388aeb['region']=_0xb1939c[_0x275933(0x1df)];const _0x1935e4=new _0x5711a3['EC2'](_0x388aeb);_0x1935e4[_0x275933(0x162)](_0x2f7e9a)[_0x275933(0x1da)]()[_0x275933(0x1bc)](_0x441df9=>{const _0x3df0c8=_0x275933;_0x524b87[_0x3df0c8(0x13a)](_0x195dc1,!![]);})[_0x275933(0x109)](_0x1592fa=>{const _0x1e22b2=_0x275933;_0x1e5ce3[_0x1e22b2(0x185)](_0x1e22b2(0x188)+_0x44f990+_0x1e22b2(0x1cd)+_0x98e707[_0x1e22b2(0x1df)]+_0x1e22b2(0x127)),_0x524b87[_0x1e22b2(0x13a)](_0x442ab2,![]);});}});}else return this[_0x81aa76(0x187)](),this[_0x81aa76(0x170)]();});}async[a0_0x39894e(0x10f)](_0x37bba8,_0x44651f){const _0x2887b1=a0_0x39894e,_0x42c61d={'ZIsGC':function(_0x346d80,_0x48a427){return _0x346d80(_0x48a427);}},_0x34e9ec=this['cloudProviderName'][_0x2887b1(0x103)](),_0x4fb00=await _0x42c61d['ZIsGC'](_0x37bba8,_0x34e9ec+_0x2887b1(0x1fd)),_0x4c1318=await _0x42c61d[_0x2887b1(0x163)](_0x37bba8,_0x34e9ec+_0x2887b1(0x108));global_registry[_0x2887b1(0x1c4)]=_0x4fb00,global_registry['cloudProviderSecretKey']=_0x4c1318;const _0x5760b4={};return _0x5760b4[_0x2887b1(0x1ae)]=_0x4fb00,_0x5760b4[_0x2887b1(0x101)]=_0x4c1318,_0x44651f[_0x2887b1(0x198)][AWS]=_0x5760b4,_0x44651f;}async[a0_0x39894e(0x113)](){const _0x48122d=a0_0x39894e,_0x2658e9={'sTqat':function(_0x1b1bea){return _0x1b1bea();},'mBdJQ':'aws_credentials','kdqgH':_0x48122d(0x1c7),'KkUxl':_0x48122d(0x202)},_0x2c9150=_0x2658e9[_0x48122d(0x186)](getDirForConfig),_0x3c73d1=await this[_0x48122d(0x1e8)](),_0x4a774e=path[_0x48122d(0xf5)](_0x2c9150,_0x2658e9['mBdJQ']),_0x24af05='[ats]\x0aaws_access_key_id\x20=\x20'+global_registry['cloudProviderAccessKey']+_0x48122d(0x1d4)+global_registry[_0x48122d(0x201)];fs[_0x48122d(0x165)](_0x4a774e,_0x24af05);let _0x4a03ef=await fs[_0x48122d(0x12a)](path[_0x48122d(0xf5)](__dirname,'..',_0x2658e9[_0x48122d(0x16f)],_0x2658e9[_0x48122d(0x110)]));return _0x4a03ef=_0x4a03ef[_0x48122d(0x1f2)](),_0x4a03ef=_0x4a03ef[_0x48122d(0x14f)](/<CLUSTER_NAME>/g,this[_0x48122d(0x1a3)]),_0x4a03ef=_0x4a03ef[_0x48122d(0x14f)](/<CLUSTER_URL>/g,_0x3c73d1[_0x48122d(0x204)][_0x48122d(0x1fc)]),_0x4a03ef=_0x4a03ef[_0x48122d(0x14f)](/<CERTIFICATE_DATA>/g,_0x3c73d1[_0x48122d(0x204)][_0x48122d(0x1c6)][_0x48122d(0x1b0)]),_0x4a03ef=_0x4a03ef['replace'](/<CLUSTER_REGION>/g,global_registry['clusterRegion']),_0x4a03ef=_0x4a03ef[_0x48122d(0x14f)](/<CLUSTER_NAME_USER>/g,IAM_USER_NAME),_0x4a03ef=_0x4a03ef[_0x48122d(0x14f)](/<CLOUD_PROVIDER_ACCESS_KEY>/g,global_registry['cloudProviderAccessKey']),_0x4a03ef=_0x4a03ef['replace'](/<CLOUD_PROVIDER_SECRET>/g,global_registry[_0x48122d(0x201)]),_0x4a03ef=_0x4a03ef['replace'](/<AWS_CONFIG_FILE_PATH>/g,_0x4a774e),_0x4a03ef;}async[a0_0x39894e(0x149)](_0x1b64fa=null,_0x4b0fbc=null){const _0x52d025=a0_0x39894e,_0x1cdd9b={'nxLkv':function(_0x285f1e,_0x10f00b){return _0x285f1e(_0x10f00b);},'xvStX':'Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','cCOGA':_0x52d025(0x1b6),'yDAar':function(_0x22f48a,_0x1344d8,_0x59b8ee,_0x198754,_0x3a3ab9,_0xae29de){return _0x22f48a(_0x1344d8,_0x59b8ee,_0x198754,_0x3a3ab9,_0xae29de);},'SPspJ':'Following\x20resources\x20are\x20created:','nEeWk':function(_0x33ed8a,_0x495652){return _0x33ed8a===_0x495652;},'BNOpw':function(_0x4037d3,_0x1fc517){return _0x4037d3===_0x1fc517;},'GrzRS':'eZdvG'};_0x1cdd9b['nxLkv'](sendAWSInfoToHST,this[_0x52d025(0xf1)]);const _0x5246f8={};_0x5246f8[_0x52d025(0x18e)]=WS_EVENTS['LOG'],_0x5246f8[_0x52d025(0x167)]=_0x1cdd9b[_0x52d025(0x1e3)],this[_0x52d025(0x15b)][_0x52d025(0x19f)](this['rws'],_0x5246f8),logger['info'](_0x1cdd9b['cCOGA']);const _0x124070=global_registry[_0x52d025(0x1db)],_0xce9866=global_registry['maxNodes'],_0x4d2908=await _0x1cdd9b[_0x52d025(0x1d1)](createClusterStack,this[_0x52d025(0x1a3)],_0x124070,_0xce9866,_0x1b64fa,_0x4b0fbc),_0x40f2f4=_0x4d2908[_0x52d025(0x10c)][0x0]['Outputs'][0x0][_0x52d025(0xed)][_0x52d025(0x172)](','),_0x5b81f1=_0x4d2908[_0x52d025(0x10c)][0x0]['Outputs'][0x1]['OutputValue'],_0x19a5af=_0x4d2908['Stacks'][0x0]['Outputs'][0x3][_0x52d025(0xed)],_0x3144a4=_0x4d2908[_0x52d025(0x10c)][0x0][_0x52d025(0x1a4)][0x4]['OutputValue'];logger[_0x52d025(0xee)](_0x1cdd9b['SPspJ']),logger[_0x52d025(0xee)]('Cluster\x20=>\x20'+_0x19a5af+'\x20'),logger[_0x52d025(0xee)]('ClusterRole\x20=>\x20'+_0x5b81f1+'\x20'),logger['info'](_0x52d025(0x1ca)+_0x40f2f4+'\x20'),logger[_0x52d025(0xee)](_0x52d025(0x164)+_0x3144a4+'\x20');let _0x1b4f58=_0x52d025(0x1c5)+_0x19a5af+_0x52d025(0x17c)+_0x5b81f1+_0x52d025(0x1a1)+_0x40f2f4+_0x52d025(0x18a)+_0x3144a4+'\x20';if(_0x1cdd9b[_0x52d025(0x155)](_0x1b64fa,null)&&_0x1cdd9b['BNOpw'](_0x4b0fbc,null)){if(_0x1cdd9b['nEeWk'](_0x1cdd9b[_0x52d025(0x1f4)],_0x1cdd9b[_0x52d025(0x1f4)])){const _0x43e8d2=_0x4d2908['Stacks'][0x0][_0x52d025(0x1a4)][0x2]['OutputValue'],_0x226c8f=_0x4d2908[_0x52d025(0x10c)][0x0][_0x52d025(0x1a4)][0x5][_0x52d025(0xed)][_0x52d025(0x172)](',');logger[_0x52d025(0xee)](_0x52d025(0xef)+_0x43e8d2+'\x20'),logger[_0x52d025(0xee)](_0x52d025(0x153)+_0x226c8f+'\x20'),_0x1b4f58+=_0x52d025(0x178)+_0x43e8d2+_0x52d025(0x197)+_0x226c8f+',\x20';}else return _0x2da2f9[_0x52d025(0x104)][_0x52d025(0xfe)][_0x52d025(0x117)][_0x52d025(0x10d)][0x0][_0x52d025(0x137)];}const _0x1f13fc={};_0x1f13fc[_0x52d025(0x18e)]=WS_EVENTS['LOG'],_0x1f13fc[_0x52d025(0x167)]=_0x1b4f58,this[_0x52d025(0x15b)][_0x52d025(0x19f)](this[_0x52d025(0xf1)],_0x1f13fc);}async[a0_0x39894e(0x1f5)](_0x6d95a8,_0x38424c){const _0xe0ecc=a0_0x39894e,_0x162bd2={'hAbep':function(_0x52f9ea,_0xc4cc0f){return _0x52f9ea(_0xc4cc0f);},'gZCry':function(_0x46579a,_0x3b1c5d){return _0x46579a(_0x3b1c5d);}};await _0x162bd2[_0xe0ecc(0x1d6)](deleteRoutingDeps,_0x6d95a8),await _0x162bd2[_0xe0ecc(0x1d9)](deleteClusterAndDependencies,_0x38424c);}async[a0_0x39894e(0x1bd)](_0x36ed53,_0x5157d7){const _0x332bbc=a0_0x39894e,_0x584575={'dbVHa':function(_0x137b10,_0x11678c){return _0x137b10(_0x11678c);},'WbZYa':function(_0x36c1b5,_0x3fe2ae){return _0x36c1b5(_0x3fe2ae);},'KaQiA':function(_0x19ccf7,_0x14ab0f){return _0x19ccf7(_0x14ab0f);},'Lvuyf':function(_0x43e72c,_0x157ec2){return _0x43e72c(_0x157ec2);},'OvzKu':_0x332bbc(0x166),'cHpkw':function(_0x4785a4,_0x57845e){return _0x4785a4(_0x57845e);},'fNXCg':function(_0x1bd2bb,_0x4030c7){return _0x1bd2bb===_0x4030c7;},'WefrA':_0x332bbc(0x144),'lXsIW':_0x332bbc(0x174),'rwEcs':'Creating\x20Autoscaler\x20Role','TOqAS':function(_0x45f67e,_0x381fd4){return _0x45f67e!==_0x381fd4;},'LNymW':_0x332bbc(0x181),'vlbGd':function(_0x1e1202,_0x59531b){return _0x1e1202(_0x59531b);},'erRmd':_0x332bbc(0x11a),'WMfOR':function(_0x25ac08,_0x11b098){return _0x25ac08!==_0x11b098;},'nFfMk':function(_0x207872,_0x5158ab){return _0x207872!==_0x5158ab;},'hWlOd':_0x332bbc(0xf2),'uThHY':_0x332bbc(0x13b),'UNxvz':function(_0x2834a2,_0x3b81af,_0x3eca6a,_0x5d087e,_0x3a12ca,_0x448ca4,_0x9bce6e,_0x2605f4){return _0x2834a2(_0x3b81af,_0x3eca6a,_0x5d087e,_0x3a12ca,_0x448ca4,_0x9bce6e,_0x2605f4);},'uQdSH':_0x332bbc(0x1be),'Vckdg':_0x332bbc(0x1fe),'nmAvR':_0x332bbc(0x1d3),'jtIeq':'NZuEF','Yucqq':_0x332bbc(0x175),'XKXfZ':function(_0x5b8dae,_0x2c4bb7,_0x923834,_0x371762,_0x525e22,_0x474691,_0x2e8531,_0x297e22){return _0x5b8dae(_0x2c4bb7,_0x923834,_0x371762,_0x525e22,_0x474691,_0x2e8531,_0x297e22);},'PVdHC':_0x332bbc(0x1de),'YQHKB':_0x332bbc(0x185),'mfvBZ':_0x332bbc(0x1c3)};let _0x3e13ae,_0x41ce59;const _0x43f780={};_0x43f780[_0x332bbc(0x18e)]=WS_EVENTS['LOG'],_0x43f780[_0x332bbc(0x167)]=_0x584575['rwEcs'],this[_0x332bbc(0x15b)][_0x332bbc(0x19f)](this[_0x332bbc(0xf1)],_0x43f780),logger['info'](_0x584575[_0x332bbc(0x1e5)]);try{if(_0x584575[_0x332bbc(0x176)](_0x584575['LNymW'],_0x584575[_0x332bbc(0x10e)]))_0x48c0ea[_0x332bbc(0x158)]['includes'](this[_0x332bbc(0x1a3)])&&_0x584575['dbVHa'](_0x4a135a,!![]),_0x584575[_0x332bbc(0x1ea)](_0x134ebe,![]);else{const _0x4f5e85=await _0x584575[_0x332bbc(0xea)](createAutoscalerStack,this[_0x332bbc(0x1a3)]);_0x41ce59=_0x4f5e85[_0x332bbc(0x10c)][0x0][_0x332bbc(0x1a4)][0x2][_0x332bbc(0xed)];const _0x24ce73={};_0x24ce73[_0x332bbc(0x18e)]=WS_EVENTS['LOG'],_0x24ce73['message']=_0x332bbc(0x131)+_0x41ce59+'\x20',this['webSocketUtils'][_0x332bbc(0x19f)](this[_0x332bbc(0xf1)],_0x24ce73),logger[_0x332bbc(0xee)](_0x332bbc(0x131)+_0x41ce59+'\x20');}}catch(_0x15c019){if(_0x584575[_0x332bbc(0x194)](_0x584575[_0x332bbc(0xfb)],_0x584575[_0x332bbc(0xfb)])){if(_0x584575[_0x332bbc(0x10b)](_0x15c019[_0x332bbc(0x167)]['match'](/already exists/),null)||_0x584575[_0x332bbc(0x1f6)](_0x15c019[_0x332bbc(0x167)][_0x332bbc(0x152)](/already exists/),undefined))_0x584575['WMfOR'](_0x584575[_0x332bbc(0x14b)],_0x584575[_0x332bbc(0x177)])?(_0x3e13ae=_0x332bbc(0x145)+_0x15c019[_0x332bbc(0x167)],await _0x584575[_0x332bbc(0x118)](reportToGalactusAndSendToEDS,_0x5157d7,this[_0x332bbc(0xf1)],_0x3e13ae,messageTypes['WARNING'],_0x584575[_0x332bbc(0x18c)],_0x584575['Vckdg'],_0x584575['nmAvR']),logger[_0x332bbc(0x1a7)](_0x3e13ae)):_0x584575[_0x332bbc(0x12e)](_0x3c7220,!![]);else{if(_0x584575[_0x332bbc(0x194)](_0x584575[_0x332bbc(0x133)],_0x584575['jtIeq'])){const _0x3ced8b=_0x584575[_0x332bbc(0x1d8)][_0x332bbc(0x172)]('|');let _0x1129ef=0x0;while(!![]){switch(_0x3ced8b[_0x1129ef++]){case'0':_0x3e13ae='Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20'+_0x15c019['message']+_0x332bbc(0x1e0);continue;case'1':process['exit'](0x1);continue;case'2':logger[_0x332bbc(0x185)](_0x3e13ae);continue;case'3':await _0x584575[_0x332bbc(0x111)](reportToGalactusAndSendToEDS,_0x5157d7,this[_0x332bbc(0xf1)],_0x3e13ae,messageTypes['ERROR'],_0x584575[_0x332bbc(0x18c)],_0x584575['PVdHC'],_0x584575[_0x332bbc(0x1b8)]);continue;case'4':await _0x584575[_0x332bbc(0x1ea)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;}break;}}else{const _0x5c1eb9={'FNTHB':function(_0x220ff9,_0x13a1ea){const _0x4a9e4e=_0x332bbc;return _0x584575[_0x4a9e4e(0x1ad)](_0x220ff9,_0x13a1ea);}},_0x1ffbe3={};_0x1ffbe3['VpcIds']=[_0xa7cb];let _0x370a0c=_0x1ffbe3;return new _0x3da27d((_0x3779bc,_0xcad9a7)=>{const _0x51113a=_0x332bbc,_0x2c6b2c={'AkwrX':function(_0x4485a6,_0x10684d){const _0x1d009e=a0_0x460f;return _0x584575[_0x1d009e(0xe9)](_0x4485a6,_0x10684d);}},_0x44192={};_0x44192[_0x51113a(0x1fb)]=_0x584575[_0x51113a(0x184)],_0x44192['region']=_0x3c2f59[_0x51113a(0x1df)];const _0xb7ef29=new _0x420ac3[(_0x51113a(0x1c1))](_0x44192);_0xb7ef29[_0x51113a(0x162)](_0x370a0c)[_0x51113a(0x1da)]()[_0x51113a(0x1bc)](_0x445b60=>{const _0x42913b=_0x51113a;_0x5c1eb9[_0x42913b(0x120)](_0x3779bc,!![]);})[_0x51113a(0x109)](_0x2963e5=>{const _0x29e1fb=_0x51113a;_0x5625a4['error'](_0x29e1fb(0x188)+_0x22fff7+_0x29e1fb(0x1cd)+_0x2bad7a[_0x29e1fb(0x1df)]+'.\x20Please\x20Check\x20and\x20try\x20again'),_0x2c6b2c['AkwrX'](_0x3779bc,![]);});});}}}else!this['isConfigured']()&&this[_0x332bbc(0x1b2)]();}let _0xa09674=await this['getNodeGroupInfo'](this[_0x332bbc(0x1a3)]+'-NodeGroup');const _0x50ca90=_0xa09674[_0x332bbc(0x15d)]['nodeRole'],_0x2e64c6=await this[_0x332bbc(0xfd)](_0x50ca90);return await _0x36ed53['createNamespacedConfigMap'](_0x584575[_0x332bbc(0x1f7)],_0x2e64c6)['catch'](_0x55d722=>{const _0x762d02=_0x332bbc,_0x100120={'kgYeW':function(_0x1819c2,_0x56352f){const _0x171863=a0_0x460f;return _0x584575[_0x171863(0x12e)](_0x1819c2,_0x56352f);}};_0x584575['fNXCg'](_0x584575[_0x762d02(0x1fa)],_0x584575['WefrA'])?logger['info'](_0x584575[_0x762d02(0x192)]):(_0xa67fac['error'](_0x762d02(0x188)+_0x5daf77+_0x762d02(0x1cd)+_0x34bf12[_0x762d02(0x1df)]+_0x762d02(0x127)),_0x100120['kgYeW'](_0xd6c5f7,![]));}),_0x41ce59;}[a0_0x39894e(0x1cf)](_0x4b5f26){const _0x173cc8=a0_0x39894e,_0x1c40fb={'CBcJR':function(_0x8e4758,_0x44cdb5){return _0x8e4758!==_0x44cdb5;},'Lfpne':_0x173cc8(0x11b),'fkVnj':_0x173cc8(0x1ac),'alLMZ':function(_0x16d8ca,_0x4ab667){return _0x16d8ca(_0x4ab667);},'xfisx':function(_0x22901c,_0x11e5c7){return _0x22901c===_0x11e5c7;},'ZxbxX':function(_0x3b5f55,_0x14737f){return _0x3b5f55===_0x14737f;},'bItAt':'OzdBa','wedBC':function(_0xd14c7a,_0x1e0b80){return _0xd14c7a(_0x1e0b80);},'arCBQ':_0x173cc8(0x1e6),'dIbPL':_0x173cc8(0x166)},_0x4814b0={};_0x4814b0[_0x173cc8(0xf7)]=[_0x4b5f26];let _0x3b3769=_0x4814b0;return new Promise((_0x1a05e3,_0x148d32)=>{const _0x1343f1=_0x173cc8,_0x1011de={'YOUpt':function(_0x492a82,_0x3c6aec){const _0x2d5009=a0_0x460f;return _0x1c40fb[_0x2d5009(0x1d0)](_0x492a82,_0x3c6aec);},'gXiKo':function(_0x458851,_0x1f2c45){const _0x593a40=a0_0x460f;return _0x1c40fb[_0x593a40(0xf3)](_0x458851,_0x1f2c45);},'dLbPA':_0x1c40fb[_0x1343f1(0x161)],'kZUzJ':function(_0x18b91c,_0x4e564b){const _0x548c8a=_0x1343f1;return _0x1c40fb[_0x548c8a(0x19e)](_0x18b91c,_0x4e564b);}};if(_0x1c40fb[_0x1343f1(0xf3)](_0x1c40fb[_0x1343f1(0x14a)],_0x1c40fb['arCBQ'])){const _0x429666={};_0x429666[_0x1343f1(0x1fb)]=_0x1c40fb[_0x1343f1(0xf8)],_0x429666['region']=global_registry[_0x1343f1(0x1df)];const _0x4dd322=new awsSDK['EC2'](_0x429666);_0x4dd322['describeVpcs'](_0x3b3769)[_0x1343f1(0x1da)]()[_0x1343f1(0x1bc)](_0x4f17d2=>{const _0x59f27c=_0x1343f1;if(_0x1c40fb['CBcJR'](_0x1c40fb[_0x59f27c(0x19c)],_0x1c40fb[_0x59f27c(0x150)]))_0x1c40fb[_0x59f27c(0x130)](_0x1a05e3,!![]);else return!![];})['catch'](_0x167460=>{const _0x3c84fd=_0x1343f1;if(_0x1011de[_0x3c84fd(0x208)](_0x1011de[_0x3c84fd(0x19a)],_0x1011de[_0x3c84fd(0x19a)]))logger['error']('Cannot\x20find\x20VPC\x20'+_0x4b5f26+'\x20in\x20region\x20'+global_registry[_0x3c84fd(0x1df)]+_0x3c84fd(0x127)),_0x1011de[_0x3c84fd(0x1bf)](_0x1a05e3,![]);else return _0x1011de['YOUpt'](_0x2b9f72[_0x3c84fd(0x1a5)],!![]);});}else _0x4a78a3['cloudProviderAccessKey']=_0x529efe[this[_0x1343f1(0x1eb)]][_0x1343f1(0x1ae)],_0x120ded[_0x1343f1(0x201)]=_0x222018[this[_0x1343f1(0x1eb)]][_0x1343f1(0x101)];});}[a0_0x39894e(0x16e)](_0x3faafe,_0x571dc7){const _0x36d236=a0_0x39894e,_0x5cd3fe={'gcTjq':_0x36d236(0x180),'dPzWj':function(_0x54bfb4,_0x529fe0){return _0x54bfb4!==_0x529fe0;},'gFTWi':_0x36d236(0x143),'pnQSN':_0x36d236(0x126),'wATZQ':function(_0x39357d,_0x19b4da){return _0x39357d(_0x19b4da);},'cKOoN':function(_0x1fd5b6,_0x58fb90){return _0x1fd5b6===_0x58fb90;},'PEXqk':'OYlbS','kJkAX':function(_0x59fa37,_0xc0b626){return _0x59fa37!==_0xc0b626;},'CbvHY':_0x36d236(0x1d2),'HnUTQ':_0x36d236(0x193),'HSgbt':_0x36d236(0x154),'yPBhg':function(_0x1e4da1,_0x1f8932){return _0x1e4da1===_0x1f8932;},'PXuJv':_0x36d236(0x140),'vRcCa':_0x36d236(0x1f3),'gcLFy':function(_0x505c59,_0x4da439){return _0x505c59(_0x4da439);},'KuMgy':function(_0x5894f8,_0x667689){return _0x5894f8===_0x667689;},'qULPV':_0x36d236(0x209),'LXsph':_0x36d236(0x166),'wLlnm':_0x36d236(0x1e2)},_0xa61581={};_0xa61581['Name']=_0x5cd3fe[_0x36d236(0x14d)],_0xa61581[_0x36d236(0x12b)]=[_0x571dc7];const _0x1c4b30={};_0x1c4b30['Filters']=[_0xa61581];let _0x21a76a=_0x1c4b30;return new Promise((_0x5d711a,_0x3c08b5)=>{const _0xe74a6a=_0x36d236,_0x42768d={'LYckG':function(_0x57e672,_0x27c630){return _0x5cd3fe['cKOoN'](_0x57e672,_0x27c630);},'xlors':_0x5cd3fe['PEXqk'],'UAUsY':function(_0x233dcb,_0x45257e){return _0x5cd3fe['wATZQ'](_0x233dcb,_0x45257e);},'wtnSj':_0x5cd3fe[_0xe74a6a(0x18d)],'MevLe':function(_0xc654f7,_0x4a2d4c){return _0x5cd3fe['kJkAX'](_0xc654f7,_0x4a2d4c);},'xzLTT':_0x5cd3fe[_0xe74a6a(0x102)],'IhuvL':_0x5cd3fe[_0xe74a6a(0x138)],'gxkAE':_0x5cd3fe['HSgbt'],'mlydx':function(_0x1db967,_0x732f7f){const _0x44ed9d=_0xe74a6a;return _0x5cd3fe[_0x44ed9d(0x114)](_0x1db967,_0x732f7f);},'tjfPs':_0x5cd3fe[_0xe74a6a(0x1e4)],'pSfry':_0x5cd3fe[_0xe74a6a(0x148)],'xTgIC':function(_0x2ec9de,_0x2a10bc){return _0x5cd3fe['gcLFy'](_0x2ec9de,_0x2a10bc);}};if(_0x5cd3fe[_0xe74a6a(0x1a9)](_0x5cd3fe[_0xe74a6a(0x1bb)],_0x5cd3fe['qULPV'])){const _0x4d03b5={};_0x4d03b5['apiVersion']=_0x5cd3fe[_0xe74a6a(0x196)],_0x4d03b5['region']=global_registry[_0xe74a6a(0x1df)];const _0x132cd6=new awsSDK['EC2'](_0x4d03b5);_0x132cd6[_0xe74a6a(0x171)](_0x21a76a)[_0xe74a6a(0x1da)]()['then'](_0x434453=>{const _0x2085f0=_0xe74a6a,_0x574f02={'wgUYr':function(_0x5b2d91,_0x3c0bd5){const _0x3972e4=a0_0x460f;return _0x42768d[_0x3972e4(0x12d)](_0x5b2d91,_0x3c0bd5);},'wlJlB':function(_0x28d9b9,_0x2c2185){const _0x5be320=a0_0x460f;return _0x42768d[_0x5be320(0x12d)](_0x28d9b9,_0x2c2185);},'AhFHH':_0x42768d[_0x2085f0(0x17e)],'eWWGm':function(_0x2d32e4,_0x5c606f){const _0x21914f=_0x2085f0;return _0x42768d[_0x21914f(0x189)](_0x2d32e4,_0x5c606f);},'dgrPn':_0x42768d[_0x2085f0(0x124)],'wTgaR':_0x42768d['IhuvL'],'QaOuM':function(_0x2067f7,_0x2eaa2c){const _0x987003=_0x2085f0;return _0x42768d[_0x987003(0x1dc)](_0x2067f7,_0x2eaa2c);},'PPCzx':_0x42768d[_0x2085f0(0x168)]};if(_0x42768d['mlydx'](_0x42768d[_0x2085f0(0x18f)],_0x42768d[_0x2085f0(0x1ab)])){const _0x3da6cf={};_0x3da6cf[_0x2085f0(0x1ec)]=_0x578d90[_0x2085f0(0x1df)],_0x3da6cf[_0x2085f0(0x199)]=_0x34d4a8[_0x2085f0(0x1c4)],_0x3da6cf[_0x2085f0(0x1c9)]=_0x49b415['cloudProviderSecretKey'],_0x2ed837[_0x2085f0(0x19b)][_0x2085f0(0xf6)](_0x3da6cf),_0x3adbc9[_0x2085f0(0x1a5)]=!![];}else{const _0x7f1672=[],_0xe1c9bc=[];_0x434453['Subnets']['forEach'](_0xc12dc4=>{const _0x17dab0=_0x2085f0;if(_0x42768d[_0x17dab0(0x1dc)](_0x42768d[_0x17dab0(0x107)],_0x42768d[_0x17dab0(0x107)]))_0x7f1672[_0x17dab0(0x203)](_0xc12dc4[_0x17dab0(0x11f)]);else return![];});const _0x55a50b=_0x3faafe['every'](_0x5dc022=>{const _0x6a71b6=_0x2085f0;if(_0x574f02[_0x6a71b6(0x1cc)](_0x574f02[_0x6a71b6(0x1f0)],_0x574f02[_0x6a71b6(0x1f0)]))this[_0x6a71b6(0x1b2)]();else{if(_0x7f1672[_0x6a71b6(0x125)](_0x5dc022)){if(_0x574f02[_0x6a71b6(0x1cc)](_0x574f02[_0x6a71b6(0x151)],_0x574f02[_0x6a71b6(0x151)])){const _0x1a93d9={'yLGxo':function(_0x24f4ad,_0x9d55b2){const _0x25df05=_0x6a71b6;return _0x574f02[_0x25df05(0x207)](_0x24f4ad,_0x9d55b2);},'oKtMh':function(_0x11411e,_0x589849){const _0x152aa6=_0x6a71b6;return _0x574f02[_0x152aa6(0x146)](_0x11411e,_0x589849);}},_0x127240={};_0x127240['apiVersion']=_0x574f02['AhFHH'];const _0x34a3dd=new _0x4dc09c[(_0x6a71b6(0x1d7))](_0x127240);_0x34a3dd['listClusters']()['promise']()[_0x6a71b6(0x1bc)](_0x418b1e=>{const _0x2e08cc=_0x6a71b6;_0x418b1e[_0x2e08cc(0x158)][_0x2e08cc(0x125)](this[_0x2e08cc(0x1a3)])&&_0x1a93d9['yLGxo'](_0x238bc7,!![]),_0x1a93d9[_0x2e08cc(0x206)](_0x32faf3,![]);})[_0x6a71b6(0x109)](_0x4f659a=>{const _0xa6bedf=_0x6a71b6;_0x3ed4ab[_0xa6bedf(0x185)](_0x4f659a),_0x1a93d9[_0xa6bedf(0x206)](_0x3bddf9,_0x4f659a);});}else return!![];}else{if(_0x574f02['QaOuM'](_0x574f02[_0x6a71b6(0x13e)],_0x574f02[_0x6a71b6(0x13e)]))return _0xe1c9bc[_0x6a71b6(0x203)](_0x5dc022),![];else _0x2ac3ac[_0x6a71b6(0x185)](_0x6a71b6(0xec)+_0x7caa54+_0x6a71b6(0x1cd)+_0xd825c6[_0x6a71b6(0x1df)]+_0x6a71b6(0x1e9)+_0xfd7f3b),_0x574f02[_0x6a71b6(0x207)](_0xca1f55,[![],[]]);}}});_0x42768d['xTgIC'](_0x5d711a,[_0x55a50b,_0xe1c9bc]);}})[_0xe74a6a(0x109)](_0x1bd511=>{const _0x311278=_0xe74a6a,_0x32d20d={};_0x32d20d['diJya']=_0x5cd3fe[_0x311278(0x18d)];const _0x4454ec=_0x32d20d;if(_0x5cd3fe[_0x311278(0x12f)](_0x5cd3fe[_0x311278(0x1e7)],_0x5cd3fe[_0x311278(0x183)]))logger['error'](_0x311278(0xec)+_0x3faafe+_0x311278(0x1cd)+global_registry[_0x311278(0x1df)]+_0x311278(0x1e9)+_0x1bd511),_0x5cd3fe['wATZQ'](_0x5d711a,[![],[]]);else{const _0x57f5f2={};_0x57f5f2['apiVersion']=_0x4454ec['diJya'];const _0x621ead=new _0x58e898['EKS'](_0x57f5f2),_0x1e6f41={};return _0x1e6f41[_0x311278(0xf0)]=this[_0x311278(0x1a3)],_0x621ead[_0x311278(0x11e)](_0x1e6f41)['promise']();}});}else{const _0x19405d={};_0x19405d[_0xe74a6a(0x1fb)]=_0x42768d[_0xe74a6a(0x17e)];const _0xa7f6b4=new _0x4504ac['EKS'](_0x19405d),_0x31cd41={};return _0x31cd41[_0xe74a6a(0x1a3)]=this[_0xe74a6a(0x1a3)],_0x31cd41['nodegroupName']=_0x5e40ac,_0xa7f6b4['describeNodegroup'](_0x31cd41)[_0xe74a6a(0x1da)]();}});}}function a0_0x4cb8(){const _0x31a0a0=['xdLKm','bItAt','describeVpcs','ZIsGC','NodeRole\x20=>\x20','writeFileSync','2016-11-15','message','gxkAE','tMZNx','euHZa','HXhoD','nodegroupName','3PpYFUH','isSubnetsValid','kdqgH','checkClusterCreated','describeSubnets','split','PwDob','Authmap\x20already\x20exists.\x20Not\x20updating','0|3|2|4|1','TOqAS','uThHY',',VPC\x20=>\x20','9FwGXwq','./CloudProvider','OLHNv',',\x20ClusterRole\x20=>\x20','VkMhm','wtnSj','uXPBZ','2017-11-01','pXtjI','bQeCE','pnQSN','OvzKu','error','sTqat','configureIfNotConfigured','Cannot\x20find\x20VPC\x20','MevLe',',\x20NodeRole\x20=>\x20','kWucC','uQdSH','gcTjq','type','tjfPs','Tcrph','dJqxL','lXsIW','WaukT','fNXCg','fMZrF','LXsph',',\x20Subnets\x20=>\x20','cloudProvider','accessKeyId','dLbPA','config','Lfpne','isConfigured','wedBC','sendEventToBackend','jmpbC',',\x20SecurityGroups\x20=>\x20','2hZwcdU','clusterName','Outputs','awsConfigSet','wnsaR','warn','oIVxw','KuMgy','ZhICT','pSfry','BFGSv','cHpkw','accessKey','../utils/utilityMethods','data','isBrowserstackCluster','setConfig','3326232dtaqRu','MBbfL','qnfto','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','utf-8','YQHKB','252568YnmPEd','UcOQA','qULPV','then','setupAutoscaler','create-grid-called','kZUzJ','dgkcY','EC2','../utils/gridComponents','kube-system','cloudProviderAccessKey','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','certificateAuthority','templates','aKVoP','secretAccessKey','SecurityGroups\x20=>\x20','AnDfQ','eWWGm','\x20in\x20region\x20','getNodeGroupInfo','isVPCPresent','xfisx','yDAar','HfjvM','warning','\x0aaws_secret_access_key\x20=\x20','cXnXD','hAbep','EKS','Yucqq','gZCry','promise','minNodes','LYckG','exports','autoscaler-creation-failed','clusterRegion','.\x20Deleting\x20all\x20the\x20stacks','JDhkI','vpc-id','xvStX','PXuJv','rwEcs','pUiCx','gFTWi','getClusterInfo','.\x20Error:\x20','WbZYa','cloudProviderName','region','APmGW','HicTY','aws-auth-cm.yaml','dgrPn','aUlgL','toString','dbzoF','GrzRS','deleteCluster','nFfMk','mfvBZ','mapRoles','gRFTK','WefrA','apiVersion','endpoint','\x20ACCESS\x20KEY:\x20','reportToGalactusAndSendToEDS','nJQGn','WgtCf','cloudProviderSecretKey','KubeConfigTemplate.yaml','push','cluster','listClusters','oKtMh','wgUYr','gXiKo','PULYu','xFNdd','fruBr','Lvuyf','vlbGd','isClusterPresent','Cannot\x20find\x20subnets\x20','OutputValue','info','VPC\x20=>\x20','name','rws','jCFSl','ZxbxX','lnLSH','join','update','VpcIds','dIbPL','WmmuO','load','erRmd','pvxJv','createAuthConfigMap','status','../utils/createAutoscalerStack','../config/constants','secret','CbvHY','toUpperCase','body','hgmPb','fetchLocalCreds','xlors','\x20SECRET\x20KEY:\x20','catch','2216900KFZprP','WMfOR','Stacks','ingress','LNymW','getUserInput','KkUxl','XKXfZ','../config/logger','getKubeConfigData','yPBhg','tags','browserstack:managedBy','loadBalancer','UNxvz','64865BrTqwg','GqJWL','OiYdX','EcRpB','hPLZN','describeCluster','SubnetId','FNTHB','aws-sdk','EyxFd','CyRnE','xzLTT','includes','Kdgfn','.\x20Please\x20Check\x20and\x20try\x20again','869849nFAAuc','2966667MuPxXB','readFileAsync','Values','gfvtC','UAUsY','KaQiA','dPzWj','alLMZ','Autoscaler\x20Role\x20created.ARN:\x20','9668408zrUtVT','jtIeq','tjDJV','EqNgg','MoXDz','hostname','HnUTQ','tvdJH','jtrVc','VPFXc','318WepERJ','IarNQ','PPCzx','path','DXTbi','toLowerCase','XIGbk','ehphY','GvzlK','Skipping\x20Autoscaler\x20due\x20to:\x20','wlJlB','jfUcR','vRcCa','setupNewCluster','arCBQ','hWlOd','xKdtT','wLlnm','fjMGO','replace','fkVnj','wTgaR','match','Subnets\x20=>\x20','FgcWr','nEeWk','<ARN>','QqMfC','clusters','egLnQ','../utils/deleteStack','webSocketUtils','PHqCu','nodegroup','HAITq','../utils/createClusterStack'];a0_0x4cb8=function(){return _0x31a0a0;};return a0_0x4cb8();}const a0_0x1abe7c={};a0_0x1abe7c['AWSCloudProvider']=AWSCloudProvider,module[a0_0x39894e(0x1dd)]=a0_0x1abe7c;
@@ -1 +1 @@
1
- const a1_0x247660=a1_0x1250;function a1_0x1250(_0x2c4ef6,_0x23f6a6){const _0x2e7646=a1_0x2e76();return a1_0x1250=function(_0x125037,_0x5d5684){_0x125037=_0x125037-0x17d;let _0x2fb032=_0x2e7646[_0x125037];return _0x2fb032;},a1_0x1250(_0x2c4ef6,_0x23f6a6);}(function(_0xaec52c,_0x423faf){const _0x5dc04b=a1_0x1250,_0x2df4cb=_0xaec52c();while(!![]){try{const _0x159b27=parseInt(_0x5dc04b(0x183))/0x1*(parseInt(_0x5dc04b(0x193))/0x2)+-parseInt(_0x5dc04b(0x191))/0x3*(-parseInt(_0x5dc04b(0x184))/0x4)+-parseInt(_0x5dc04b(0x192))/0x5*(-parseInt(_0x5dc04b(0x17d))/0x6)+parseInt(_0x5dc04b(0x17e))/0x7*(-parseInt(_0x5dc04b(0x185))/0x8)+-parseInt(_0x5dc04b(0x18c))/0x9*(parseInt(_0x5dc04b(0x186))/0xa)+parseInt(_0x5dc04b(0x187))/0xb*(-parseInt(_0x5dc04b(0x18f))/0xc)+parseInt(_0x5dc04b(0x18a))/0xd;if(_0x159b27===_0x423faf)break;else _0x2df4cb['push'](_0x2df4cb['shift']());}catch(_0x48bf0f){_0x2df4cb['push'](_0x2df4cb['shift']());}}}(a1_0x2e76,0x4867d));const fs=require('fs'),path=require('path'),yaml=require('js-yaml'),{logger}=require(a1_0x247660(0x194)),{CloudProvider}=require(a1_0x247660(0x182)),{AZURE,WS_EVENTS,global_registry}=require(a1_0x247660(0x190)),{deleteRoutingDeps}=require(a1_0x247660(0x195));function a1_0x2e76(){const _0x2bf2b0=['47030SxHLhK','15565pGyOFn','networkClient','storageClient','7609810uyWrAC','clusterInfo','999WoIGWR','containerClient','AzureCloudProvider','2004CNQRpz','../config/constants','10635ICEzOs','5RMLDMr','171778ALimxm','../config/logger','../utils/gridComponents','exports','5|3|1|0|2|4','2097354lJlWAn','721ZhAQyR','NsZiv','split','resourceClient','./CloudProvider','2gkRiSK','212YDfJFT','18616sTnSPi'];a1_0x2e76=function(){return _0x2bf2b0;};return a1_0x2e76();}class AzureCloudProvider extends CloudProvider{constructor(_0x2d722f,_0x5073be,_0x4480c1,_0x3c2c64){const _0x2ee803=a1_0x247660,_0x24f5d9={};_0x24f5d9[_0x2ee803(0x17f)]=_0x2ee803(0x197);const _0x9d1dc4=_0x24f5d9,_0xf06871=_0x9d1dc4['NsZiv'][_0x2ee803(0x180)]('|');let _0x10bedb=0x0;while(!![]){switch(_0xf06871[_0x10bedb++]){case'0':this[_0x2ee803(0x189)]=null;continue;case'1':this[_0x2ee803(0x18d)]=null;continue;case'2':this[_0x2ee803(0x181)]=null;continue;case'3':this[_0x2ee803(0x18b)]=null;continue;case'4':this[_0x2ee803(0x188)]=null;continue;case'5':super(AZURE,_0x2d722f,_0x5073be,_0x4480c1,_0x3c2c64);continue;}break;}}}const a1_0x464b91={};a1_0x464b91[a1_0x247660(0x18e)]=AzureCloudProvider,module[a1_0x247660(0x196)]=a1_0x464b91;
1
+ function a1_0x58ed(){const _0x58cf2c=['10jTLVyM','8629983NdHcSj','clusterInfo','4641944hvEYxN','../config/logger','../config/constants','path','294036TwtwaN','../utils/gridComponents','tJRWE','3314985oKQAOO','exports','1982280bJMUye','./CloudProvider','AzureCloudProvider','850744wKFeNI','containerClient','57638qlMFDo','networkClient','storageClient','120tdtaiC'];a1_0x58ed=function(){return _0x58cf2c;};return a1_0x58ed();}const a1_0x19af21=a1_0x481f;function a1_0x481f(_0x3575a1,_0x300be8){const _0x58ed03=a1_0x58ed();return a1_0x481f=function(_0x481fcf,_0x51e189){_0x481fcf=_0x481fcf-0xf2;let _0xf8b992=_0x58ed03[_0x481fcf];return _0xf8b992;},a1_0x481f(_0x3575a1,_0x300be8);}(function(_0x2c8e6b,_0x9c2bbe){const _0x656e0=a1_0x481f,_0xeb38b2=_0x2c8e6b();while(!![]){try{const _0x189abb=parseInt(_0x656e0(0x100))/0x1+-parseInt(_0x656e0(0xf3))/0x2+parseInt(_0x656e0(0x103))/0x3+-parseInt(_0x656e0(0x105))/0x4*(-parseInt(_0x656e0(0xf9))/0x5)+parseInt(_0x656e0(0xf8))/0x6*(parseInt(_0x656e0(0xf5))/0x7)+-parseInt(_0x656e0(0xfc))/0x8+-parseInt(_0x656e0(0xfa))/0x9;if(_0x189abb===_0x9c2bbe)break;else _0xeb38b2['push'](_0xeb38b2['shift']());}catch(_0x96d6d){_0xeb38b2['push'](_0xeb38b2['shift']());}}}(a1_0x58ed,0x9020d));const fs=require('fs'),path=require(a1_0x19af21(0xff)),yaml=require('js-yaml'),{logger}=require(a1_0x19af21(0xfd)),{CloudProvider}=require(a1_0x19af21(0x106)),{AZURE,WS_EVENTS,global_registry}=require(a1_0x19af21(0xfe)),{deleteRoutingDeps}=require(a1_0x19af21(0x101));class AzureCloudProvider extends CloudProvider{constructor(_0x352bd4,_0x15ae75,_0xc62f3,_0x436394){const _0x651eda=a1_0x19af21,_0x17ebc6={};_0x17ebc6['tJRWE']='0|3|1|2|4|5';const _0x3d1081=_0x17ebc6,_0x195b69=_0x3d1081[_0x651eda(0x102)]['split']('|');let _0x15a3b9=0x0;while(!![]){switch(_0x195b69[_0x15a3b9++]){case'0':super(AZURE,_0x352bd4,_0x15ae75,_0xc62f3,_0x436394);continue;case'1':this[_0x651eda(0xf4)]=null;continue;case'2':this[_0x651eda(0xf7)]=null;continue;case'3':this[_0x651eda(0xfb)]=null;continue;case'4':this['resourceClient']=null;continue;case'5':this[_0x651eda(0xf6)]=null;continue;}break;}}}const a1_0x1446d1={};a1_0x1446d1[a1_0x19af21(0xf2)]=AzureCloudProvider,module[a1_0x19af21(0x104)]=a1_0x1446d1;
@@ -1 +1 @@
1
- var a2_0x2ae1a3=a2_0x5d63;function a2_0xde82(){var _0x5e8405=['split','4yeCLsn','10356DgcRnw','237EUwkZm','3331257ylifUC','10806tmIQVt','72397AwCrZk','7433934SczIIO','fXOeh','18728XQadiJ','webSocketUtils','rws','4680973AvfGBL','1141gscGuw','1|4|0|2|3','CloudProvider','1510310RuqQWz','gridName','5BvmdfN','18bYafUY','cloudProviderName'];a2_0xde82=function(){return _0x5e8405;};return a2_0xde82();}function a2_0x5d63(_0x3e143a,_0x2ef9ad){var _0xde8295=a2_0xde82();return a2_0x5d63=function(_0x5d630c,_0x213a8b){_0x5d630c=_0x5d630c-0x97;var _0x19933f=_0xde8295[_0x5d630c];return _0x19933f;},a2_0x5d63(_0x3e143a,_0x2ef9ad);}(function(_0x290b55,_0x1e9995){var _0x1b47a6=a2_0x5d63,_0x112872=_0x290b55();while(!![]){try{var _0x229bef=-parseInt(_0x1b47a6(0x98))/0x1*(parseInt(_0x1b47a6(0x9a))/0x2)+-parseInt(_0x1b47a6(0x99))/0x3*(parseInt(_0x1b47a6(0xab))/0x4)+-parseInt(_0x1b47a6(0xa7))/0x5*(parseInt(_0x1b47a6(0x9c))/0x6)+-parseInt(_0x1b47a6(0xa2))/0x7*(parseInt(_0x1b47a6(0x9e))/0x8)+-parseInt(_0x1b47a6(0xa8))/0x9*(-parseInt(_0x1b47a6(0xa5))/0xa)+-parseInt(_0x1b47a6(0xa1))/0xb+parseInt(_0x1b47a6(0x97))/0xc*(parseInt(_0x1b47a6(0x9b))/0xd);if(_0x229bef===_0x1e9995)break;else _0x112872['push'](_0x112872['shift']());}catch(_0x1e2e03){_0x112872['push'](_0x112872['shift']());}}}(a2_0xde82,0xa3d58));class CloudProvider{constructor(_0x3df183,_0x40c126,_0x56a8d3,_0x17c16c,_0x4d9c70){var _0xc5fd8e=a2_0x5d63,_0x4d6054={};_0x4d6054[_0xc5fd8e(0x9d)]=_0xc5fd8e(0xa3);var _0x3028c4=_0x4d6054,_0x144d59=_0x3028c4['fXOeh'][_0xc5fd8e(0xaa)]('|'),_0x455c9a=0x0;while(!![]){switch(_0x144d59[_0x455c9a++]){case'0':this[_0xc5fd8e(0xa6)]=_0x56a8d3;continue;case'1':this[_0xc5fd8e(0xa9)]=_0x3df183;continue;case'2':this[_0xc5fd8e(0xa0)]=_0x17c16c;continue;case'3':this[_0xc5fd8e(0x9f)]=_0x4d9c70;continue;case'4':this['clusterName']=_0x40c126;continue;}break;}}}var a2_0x483a70={};a2_0x483a70[a2_0x2ae1a3(0xa4)]=CloudProvider,module['exports']=a2_0x483a70;
1
+ var a2_0x11aed6=a2_0x5569;(function(_0x56f7de,_0xdebc13){var _0x38cca9=a2_0x5569,_0x2631ee=_0x56f7de();while(!![]){try{var _0x33f00f=-parseInt(_0x38cca9(0xcd))/0x1+-parseInt(_0x38cca9(0xc5))/0x2+parseInt(_0x38cca9(0xbf))/0x3*(-parseInt(_0x38cca9(0xc9))/0x4)+-parseInt(_0x38cca9(0xc0))/0x5*(parseInt(_0x38cca9(0xc8))/0x6)+-parseInt(_0x38cca9(0xbe))/0x7*(parseInt(_0x38cca9(0xc4))/0x8)+-parseInt(_0x38cca9(0xce))/0x9+-parseInt(_0x38cca9(0xcf))/0xa*(-parseInt(_0x38cca9(0xc1))/0xb);if(_0x33f00f===_0xdebc13)break;else _0x2631ee['push'](_0x2631ee['shift']());}catch(_0x4f420d){_0x2631ee['push'](_0x2631ee['shift']());}}}(a2_0x2a10,0xe02d8));function a2_0x5569(_0x193b3d,_0x4c0341){var _0x2a100b=a2_0x2a10();return a2_0x5569=function(_0x55692d,_0x5f093c){_0x55692d=_0x55692d-0xbe;var _0x44a07=_0x2a100b[_0x55692d];return _0x44a07;},a2_0x5569(_0x193b3d,_0x4c0341);}class CloudProvider{constructor(_0x4b440d,_0x2650e5,_0x35dce3,_0x338e0b,_0x2288fb){var _0x27fae8=a2_0x5569,_0x2eeb8b={};_0x2eeb8b[_0x27fae8(0xd0)]=_0x27fae8(0xca);var _0x42be8a=_0x2eeb8b,_0x1f4ecf=_0x42be8a['bAxBd']['split']('|'),_0x43665d=0x0;while(!![]){switch(_0x1f4ecf[_0x43665d++]){case'0':this['gridName']=_0x35dce3;continue;case'1':this[_0x27fae8(0xc6)]=_0x4b440d;continue;case'2':this[_0x27fae8(0xc7)]=_0x2288fb;continue;case'3':this[_0x27fae8(0xcc)]=_0x338e0b;continue;case'4':this[_0x27fae8(0xcb)]=_0x2650e5;continue;}break;}}}var a2_0x4e5475={};a2_0x4e5475[a2_0x11aed6(0xc3)]=CloudProvider,module[a2_0x11aed6(0xc2)]=a2_0x4e5475;function a2_0x2a10(){var _0x56f77f=['1|4|0|3|2','clusterName','rws','1111754acXbRF','6435666ctMdvy','3380NZniEE','bAxBd','21rfUApt','33DKcCTL','647365HqxgmO','221771JfnmUx','exports','CloudProvider','3697240MbdWtB','83456jBynEC','cloudProviderName','webSocketUtils','42UmWDmN','630856eQQuPm'];a2_0x2a10=function(){return _0x56f77f;};return a2_0x2a10();}
@@ -1 +1 @@
1
- const a3_0x25e790=a3_0x3b53;function a3_0x546b(){const _0x1b3e8e=['qCuTH','cViSf','rVNfk','YFJqF','osMpP','configureIfNotConfigured','cFQSU','AHsxg','includedPermissions','LYcFg','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','storage.objects.get','iam','yJZYn','aVsuH','xoSUT','accounts','credentialsPath','/clusters/','QaSQc','sendEventToBackend','regionmap.json','mSZxr','QTDaw','cloudProvider','createCluster','4|0|5|3|2|1','projects','@google-cloud/compute','clusterRegion','2832YIbpyi','deleteCluster','hdetx','MrlSv','https://','IwtNk','uHZQj','agjwT','auth','cloudProviderName','Xzjom','MvpLX','info','487718nxpxhw','sCDKW','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','https://www.googleapis.com/compute/v1/projects/','gkecluster.json','KDIXL','turboscale_custom_role','uHDwy','/subnetworks/','getClusterInfo','webSocketUtils','nNSfD','jWOUQ','DALsZ','.\x20Error:\x20','Creating\x20service\x20account','setupNewCluster','rws','jXJRq','storage.buckets.listEffectiveTags','IUEjy','muwqb','sendGCPInfoToHST','browserstack','aRLgn','128984YxgwoH','RESOURCES','monpa','xawdP','VPOAV','username','list','LTofZ','toString','HkORU','qbSQj','221005GZgMqx','DWnWg','sQPDr','scopes','Turboscale\x20Custom\x20Role','KubeConfigTemplate.yaml','minNodes','project_id','config','organizations','customRoleName','iam.serviceAccounts.signBlob','rSsJJ','cvaiZ','requestBody','project','join','path','dcuDn','VRhqH','exec','NfsBk','xlZfu','masterAuth','WJreL','RUNNING','utMHo','delay','storage.buckets.createTagBinding','ffnbn','name','error','GKE\x20Cluster\x20deletion\x20failed','reMNT','RkKoc','../config/constants','647505YPstLb','isSubnetsValid','cYFPr','getGridHostname','storage.multipartUploads.abort','storage.buckets.delete','pVZtb','autoscaling','GTHkO','iamClient','Deleting\x20the\x20cluster\x20','liiZy','uIlQW','bstackUsername','Pmxdd','parse','qecJo','resourcemanagerClient','LOG','@google-cloud/resource-manager','cVJmY','isConfigured','jKfRO','HNPXk','setIamPolicy','title','data','isVPCPresent','/locations/','wKfpo','machineType','qmHmC','vpcInfo','managedby','listClusters','KesuI','gDxRe','getClient','843ZCGvwU','GrNPf','ZHIaR','length','Service\x20account\x20already\x20exists,\x20skipping','UswpW','aFaQC','XNcaf','keyFile','storage.multipartUploads.listParts','nPYtQ','maxNodes','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','subnetworks','gke_','serviceAccounts','gzzKD','nAgat','LbMQG','OHaYd','Creating\x20GKE\x20Cluster','CGdlF','zIiFL','projects/','vvwYU','push','loadBalancer','dDxuS','2|8|6|0|1|7|4|3|5','tXWRz','child_process','CRIJF','ARltm','rkCsR','gcpresources','RPHAa','LRNec','Cannot\x20find\x20subnets\x20','GoogleCloudProvider','getIamPolicy','Cluster\x20creation\x20failed','status','LghaD','storage.objects.list','resourceLabels','exports','bindings','getUserInput','storage.buckets.get','storage.objects.create','IfIFF','storage.objects.delete','./CloudProvider','network','tpCwj','kmGXz','32AwRGoT','HcPaQ','containerClient','IvBsa','hHsTZ','.iam.gserviceaccount.com','default','LoMEF','80rQJNkz','BObxZ','ClusterManagerClient','oymSd','role','wcHzh','readFileAsync','giPnr','storage.buckets.list','CcYPq','EqpiS','fcGmb','GlpQI','storage.multipartUploads.create','FiWMM','clusterCaCertificate','turboscale-service-account','gcpConfigSet','AIpco','split','parent','mlWPJ','NetworksClient','roles','storage.buckets.setIamPolicy','IxStX','isClusterPresent','weNez','https://www.googleapis.com/auth/cloud-platform','JmFdk','minNodeCount','gcloud\x20auth\x20login\x20--cred-file=','lvKOR','checkServiceAccount','YQnmA','mBtvQ','vINzi','clusterName','replace','ZpliZ','accessKey','/regions/','projectId','gtzfl','vJcFE','eathL','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','OHQWA','templates','nJBla','instanceType','kXSsC','LaRdo','setConfig','bstackAccesskey','273628drctsJ','qaicL','iJcKa','type','DONE','storage.objects.getIamPolicy','storage.buckets.getIamPolicy','OdNSe','get','MPGgF','RwCHS','bqZzn','hydTz','wiNLa','CJWvZ','networkClient','@google-cloud/container','zEXKN','VHrJB','serviceAccountName','AqhPz','gcp_credentials.json','/serviceAccounts/','storage.objects.setIamPolicy','nodePools','JmUYh','18uCXWoD','QikZS','NXhnd','setupServiceAccount','3661esLcJR','fetchLocalCreds','iwKbt','KgHoh','message','storage.buckets.listTagBindings','toLowerCase','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','../utils/utilityMethods','MbnmO'];a3_0x546b=function(){return _0x1b3e8e;};return a3_0x546b();}(function(_0x3fbee8,_0x3ffeea){const _0x53c82=a3_0x3b53,_0x1e87a3=_0x3fbee8();while(!![]){try{const _0x5bcc24=-parseInt(_0x53c82(0x18d))/0x1+-parseInt(_0x53c82(0xcc))/0x2+parseInt(_0x53c82(0x167))/0x3+-parseInt(_0x53c82(0x8d))/0x4*(parseInt(_0x53c82(0x143))/0x5)+-parseInt(_0x53c82(0x112))/0x6*(-parseInt(_0x53c82(0xea))/0x7)+parseInt(_0x53c82(0x138))/0x8*(-parseInt(_0x53c82(0xe6))/0x9)+-parseInt(_0x53c82(0x95))/0xa*(-parseInt(_0x53c82(0x11f))/0xb);if(_0x5bcc24===_0x3ffeea)break;else _0x1e87a3['push'](_0x1e87a3['shift']());}catch(_0x1d7cba){_0x1e87a3['push'](_0x1e87a3['shift']());}}}(a3_0x546b,0x47bfc));const fs=require('fs'),path=require(a3_0x25e790(0x154)),cp=require(a3_0x25e790(0x73)),{google}=require('googleapis'),compute=require(a3_0x25e790(0x110)),container=require(a3_0x25e790(0xdc)),{ProjectsClient}=require(a3_0x25e790(0x17a))['v3'],{logger}=require('../config/logger'),{CloudProvider}=require(a3_0x25e790(0x89)),{getDirForConfig}=require(a3_0x25e790(0xf2)),{deleteRoutingDeps}=require('../utils/gridComponents'),{GCP,WS_EVENTS,global_registry}=require(a3_0x25e790(0x166));class GoogleCloudProvider extends CloudProvider{constructor(_0x587c3c,_0x1e1114,_0x38b95,_0x397c01){const _0x359089=a3_0x25e790,_0x3d79b2={};_0x3d79b2[_0x359089(0x120)]=_0x359089(0x71),_0x3d79b2[_0x359089(0x1a3)]=_0x359089(0x125),_0x3d79b2[_0x359089(0x107)]=_0x359089(0xa5);const _0x3281f3=_0x3d79b2,_0x8c2a97=_0x3281f3[_0x359089(0x120)][_0x359089(0xa8)]('|');let _0x3e089f=0x0;while(!![]){switch(_0x8c2a97[_0x3e089f++]){case'0':this[_0x359089(0x178)]=null;continue;case'1':this[_0x359089(0x170)]=null;continue;case'2':super(GCP,_0x587c3c,_0x1e1114,_0x38b95,_0x397c01);continue;case'3':this[_0x359089(0x14d)]=_0x3281f3[_0x359089(0x1a3)];continue;case'4':this[_0x359089(0xbf)]=null;continue;case'5':this[_0x359089(0xdf)]=_0x3281f3[_0x359089(0x107)];continue;case'6':this[_0x359089(0xdb)]=null;continue;case'7':this[_0x359089(0x105)]=null;continue;case'8':this[_0x359089(0x8f)]=null;continue;}break;}}[a3_0x25e790(0xf9)](){const _0x53d7e4=a3_0x25e790,_0x3ca0b8={};_0x3ca0b8[_0x53d7e4(0x137)]=function(_0x4378ad,_0x201265){return _0x4378ad===_0x201265;},_0x3ca0b8[_0x53d7e4(0x13a)]=_0x53d7e4(0x12c),_0x3ca0b8['BObxZ']=_0x53d7e4(0xc8);const _0x35c2f5=_0x3ca0b8;if(!this['isConfigured']()){if(_0x35c2f5[_0x53d7e4(0x137)](_0x35c2f5['monpa'],_0x35c2f5[_0x53d7e4(0x96)]))return!![];else this[_0x53d7e4(0xca)]();}}[a3_0x25e790(0x17c)](){const _0x32a928=a3_0x25e790,_0x4dd807={};_0x4dd807['jKfRO']=function(_0x1ce132,_0x386974){return _0x1ce132===_0x386974;};const _0x5423ec=_0x4dd807;return _0x5423ec[_0x32a928(0x17d)](global_registry[_0x32a928(0xa6)],!![]);}[a3_0x25e790(0xca)](){const _0x8f733c=a3_0x25e790,_0x51dacc=this['credentialsPath'],_0x215ed3={};_0x215ed3[_0x8f733c(0x195)]=_0x51dacc,this['containerClient']=new container['v1']['ClusterManagerClient'](_0x215ed3);const _0x56ca41={};_0x56ca41[_0x8f733c(0x195)]=_0x51dacc,this[_0x8f733c(0xdb)]=new compute['v1'][(_0x8f733c(0xab))](_0x56ca41);const _0x3e85e4={};_0x3e85e4[_0x8f733c(0x195)]=_0x51dacc,this[_0x8f733c(0x178)]=new ProjectsClient(_0x3e85e4),this['iamClient']=google[_0x8f733c(0x100)]('v1'),global_registry[_0x8f733c(0xa6)]=!![];}async[a3_0x25e790(0x84)](_0x1de311,_0xcca833){const _0x3210ec=a3_0x25e790,_0x289ae9={'KDIXL':function(_0x5b5207,_0x2115bf){return _0x5b5207(_0x2115bf);},'reMNT':function(_0x1f198d){return _0x1f198d();},'fvHEx':_0x3210ec(0xe1)},_0x5c9977=await _0x289ae9[_0x3210ec(0x124)](_0x1de311,_0x3210ec(0xc3));let _0x2ee3ae=await fs['readFileAsync'](_0x5c9977);_0x2ee3ae=_0x2ee3ae[_0x3210ec(0x140)]();const _0x565d00=_0x289ae9[_0x3210ec(0x164)](getDirForConfig),_0x1b27f7=path[_0x3210ec(0x153)](_0x565d00,_0x289ae9['fvHEx']);fs['writeFileSync'](_0x1b27f7,_0x2ee3ae),this[_0x3210ec(0x105)]=_0x1b27f7;const _0x3ebc11={};return _0x3ebc11['keyFile']=_0x1b27f7,_0xcca833[_0x3210ec(0x10c)][GCP]=_0x3ebc11,_0x2ee3ae=JSON[_0x3210ec(0x176)](_0x2ee3ae),this[_0x3210ec(0xbf)]=_0x2ee3ae['project_id'],_0xcca833;}async[a3_0x25e790(0xeb)](_0x3e4745){const _0x20f825=a3_0x25e790;this[_0x20f825(0x105)]=_0x3e4745[this[_0x20f825(0x11b)]]['keyFile'];let _0x351e41=await fs[_0x20f825(0x9b)](this['credentialsPath']);_0x351e41=JSON[_0x20f825(0x176)](_0x351e41),this[_0x20f825(0xbf)]=_0x351e41[_0x20f825(0x14a)];}[a3_0x25e790(0x16a)](_0x1ebe02){const _0x42688e=a3_0x25e790;return _0x1ebe02['body']['status'][_0x42688e(0x1a7)]['ingress'][0x0]['ip'];}async['isBrowserstackCluster'](){const _0x2869f7=a3_0x25e790,_0x36dd0a={};_0x36dd0a['iwKbt']=function(_0x1962b7,_0x3dc9cc){return _0x1962b7===_0x3dc9cc;},_0x36dd0a[_0x2869f7(0xda)]='soatN',_0x36dd0a['qaicL']=_0x2869f7(0x192),_0x36dd0a['muwqb']=function(_0x377214,_0x1ef033){return _0x377214===_0x1ef033;},_0x36dd0a[_0x2869f7(0x175)]=_0x2869f7(0xd9),_0x36dd0a[_0x2869f7(0x78)]=_0x2869f7(0x136),_0x36dd0a[_0x2869f7(0x11c)]=function(_0xa7e70c,_0x117f82){return _0xa7e70c===_0x117f82;},_0x36dd0a[_0x2869f7(0x90)]=_0x2869f7(0xe5),_0x36dd0a[_0x2869f7(0x13f)]=_0x2869f7(0x102);const _0x155707=_0x36dd0a;try{if(_0x155707[_0x2869f7(0xec)](_0x155707[_0x2869f7(0xda)],_0x155707[_0x2869f7(0xcd)])){const _0x245910=this['credentialsPath'],_0x57b7f6={};_0x57b7f6['keyFile']=_0x245910,this['containerClient']=new _0x49af04['v1'][(_0x2869f7(0x97))](_0x57b7f6);const _0x7762cc={};_0x7762cc[_0x2869f7(0x195)]=_0x245910,this[_0x2869f7(0xdb)]=new _0xa00952['v1'][(_0x2869f7(0xab))](_0x7762cc);const _0x41c534={};_0x41c534['keyFile']=_0x245910,this[_0x2869f7(0x178)]=new _0x8e4c4(_0x41c534),this[_0x2869f7(0x170)]=_0x4904da[_0x2869f7(0x100)]('v1'),_0x17b7ef[_0x2869f7(0xa6)]=!![];}else{const _0x185fd3=await this['getClusterInfo']();if(_0x185fd3[0x0]?.[_0x2869f7(0x81)]?.[_0x2869f7(0x188)]){if(_0x155707[_0x2869f7(0x134)](_0x155707[_0x2869f7(0x175)],_0x155707[_0x2869f7(0x175)])){const _0xca3964=_0x185fd3[0x0]?.[_0x2869f7(0x81)]?.[_0x2869f7(0x188)];return _0xca3964&&_0x155707[_0x2869f7(0x134)](_0xca3964[_0x2869f7(0xf0)](),_0x155707[_0x2869f7(0x78)]);}else!this[_0x2869f7(0x17c)]()&&this[_0x2869f7(0xca)]();}}}catch(_0x5c6e18){return _0x155707[_0x2869f7(0x11c)](_0x155707['IvBsa'],_0x155707[_0x2869f7(0x13f)])?[!![],_0x141b10]:![];}return![];}async[a3_0x25e790(0xaf)](){const _0x2f1bd4=a3_0x25e790,_0x5a6927={};_0x5a6927['IwtNk']=function(_0x3a07fd,_0x55b0e6){return _0x3a07fd!==_0x55b0e6;},_0x5a6927[_0x2f1bd4(0xc6)]=_0x2f1bd4(0xf4),_0x5a6927[_0x2f1bd4(0x169)]=function(_0xce8f99,_0x21f01f){return _0xce8f99===_0x21f01f;},_0x5a6927[_0x2f1bd4(0xfd)]=_0x2f1bd4(0x9e);const _0x2b1171=_0x5a6927;this[_0x2f1bd4(0xf9)]();const _0x58ad6b={};_0x58ad6b[_0x2f1bd4(0xa9)]=_0x2f1bd4(0x1a4)+this[_0x2f1bd4(0xbf)]+_0x2f1bd4(0x183)+global_registry[_0x2f1bd4(0x111)];const _0x33f69b=_0x58ad6b,_0x43e35c=await this[_0x2f1bd4(0x8f)][_0x2f1bd4(0x189)](_0x33f69b);for(const _0x5e4360 of _0x43e35c[0x0]['clusters']){if(_0x2b1171[_0x2f1bd4(0x117)](_0x2b1171['nJBla'],_0x2b1171[_0x2f1bd4(0xc6)]))return![];else{if(_0x2b1171[_0x2f1bd4(0x169)](_0x5e4360[_0x2f1bd4(0x161)],this[_0x2f1bd4(0xba)])){if(_0x2b1171[_0x2f1bd4(0x117)](_0x2b1171['LYcFg'],_0x2b1171[_0x2f1bd4(0xfd)]))_0xef4bce[_0x2f1bd4(0x187)]['push'](_0x47eb74);else return!![];}}}return![];}async[a3_0x25e790(0x128)](){const _0x1c367e=a3_0x25e790,_0x2ce619=await this[_0x1c367e(0x8f)]['getCluster']({'name':'projects/'+this[_0x1c367e(0xbf)]+_0x1c367e(0x183)+global_registry['clusterRegion']+_0x1c367e(0x106)+this[_0x1c367e(0xba)]});return _0x2ce619;}async['getKubeConfigData'](){const _0x1c39d0=a3_0x25e790,_0x7a5cfc={};_0x7a5cfc[_0x1c39d0(0x9a)]=_0x1c39d0(0xc5),_0x7a5cfc['jXJRq']=_0x1c39d0(0x77),_0x7a5cfc[_0x1c39d0(0xc9)]=_0x1c39d0(0x148);const _0x1ca773=_0x7a5cfc;cp['execSync']('gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false'),cp[_0x1c39d0(0x157)](_0x1c39d0(0xb4)+this[_0x1c39d0(0x105)]);const _0x3f26e0=await this[_0x1c39d0(0x128)](),_0x235d22=_0x1c39d0(0x19b)+this[_0x1c39d0(0xbf)]+'_'+global_registry['clusterRegion']+'_'+this[_0x1c39d0(0xba)];let _0x3bf33c=await fs[_0x1c39d0(0x9b)](path['join'](__dirname,'..',_0x1ca773[_0x1c39d0(0x9a)],_0x1ca773[_0x1c39d0(0x131)],_0x1ca773[_0x1c39d0(0xc9)]));return _0x3bf33c=_0x3bf33c[_0x1c39d0(0x140)](),_0x3bf33c=_0x3bf33c[_0x1c39d0(0xbb)](/<CLUSTER_NAME>/g,_0x235d22),_0x3bf33c=_0x3bf33c[_0x1c39d0(0xbb)](/<CLUSTER_URL>/g,_0x1c39d0(0x116)+_0x3f26e0[0x0]['endpoint']),_0x3bf33c=_0x3bf33c['replace'](/<CERTIFICATE_DATA>/g,_0x3f26e0[0x0][_0x1c39d0(0x15a)][_0x1c39d0(0xa4)]),_0x3bf33c;}async[a3_0x25e790(0xb6)](){const _0x218289=a3_0x25e790,_0x1ab4da={};_0x1ab4da[_0x218289(0xaa)]=function(_0x568435,_0x266c5c){return _0x568435===_0x266c5c;},_0x1ab4da['IUEjy']=_0x218289(0xb1),_0x1ab4da[_0x218289(0x141)]=function(_0x244c75,_0x1bf3e0){return _0x244c75!==_0x1bf3e0;},_0x1ab4da[_0x218289(0x1a0)]='AiDbI',_0x1ab4da[_0x218289(0xd8)]='lnMyA',_0x1ab4da[_0x218289(0xe0)]=function(_0x6b407,_0x4dab5d){return _0x6b407===_0x4dab5d;},_0x1ab4da[_0x218289(0x11d)]=function(_0xb2de85,_0x80234b){return _0xb2de85===_0x80234b;},_0x1ab4da[_0x218289(0x13c)]='myuQO',_0x1ab4da[_0x218289(0x177)]='TmUUS';const _0x3e7077=_0x1ab4da,_0x1ba042={};_0x1ba042[_0x218289(0x146)]=[_0x3e7077[_0x218289(0x133)]],_0x1ba042[_0x218289(0x195)]=this[_0x218289(0x105)];const _0x1f1083=await google[_0x218289(0x11a)][_0x218289(0x18c)](_0x1ba042),_0xa18027=await this[_0x218289(0x170)][_0x218289(0x10f)]['serviceAccounts'][_0x218289(0x13e)]({'name':'projects/'+this[_0x218289(0xbf)],'auth':_0x1f1083});for(const _0x3c91c4 of _0xa18027?.[_0x218289(0x181)]?.[_0x218289(0x104)]){if(_0x3e7077['HkORU'](_0x3e7077['OHaYd'],_0x3e7077[_0x218289(0xd8)])){if(_0x3e7077[_0x218289(0xe0)](_0x3c91c4?.['name'],_0x218289(0x1a4)+this[_0x218289(0xbf)]+_0x218289(0xe2)+this['serviceAccountName']+'@'+this[_0x218289(0xbf)]+_0x218289(0x92))){if(_0x3e7077[_0x218289(0x11d)](_0x3e7077[_0x218289(0x13c)],_0x3e7077['qecJo'])){if(_0x3e7077[_0x218289(0xaa)](_0x455525?.['name'],_0x218289(0x1a4)+this['projectId']+_0x218289(0xe2)+this[_0x218289(0xdf)]+'@'+this[_0x218289(0xbf)]+_0x218289(0x92)))return!![];}else return!![];}}else return _0x2a112f['body'][_0x218289(0x7e)][_0x218289(0x1a7)]['ingress'][0x0]['ip'];}return![];}async[a3_0x25e790(0xe9)](){const _0x100ab1=a3_0x25e790,_0x3d5c66={};_0x3d5c66[_0x100ab1(0x1a8)]=_0x100ab1(0x7d),_0x3d5c66[_0x100ab1(0x10a)]=function(_0x3a15e4,_0x204dde){return _0x3a15e4!==_0x204dde;},_0x3d5c66[_0x100ab1(0x79)]=_0x100ab1(0x160),_0x3d5c66[_0x100ab1(0x114)]=_0x100ab1(0xd3),_0x3d5c66[_0x100ab1(0xb7)]=_0x100ab1(0x191),_0x3d5c66[_0x100ab1(0x72)]=_0x100ab1(0x12e),_0x3d5c66[_0x100ab1(0x197)]=_0x100ab1(0xb1),_0x3d5c66['syWxB']=_0x100ab1(0x14e),_0x3d5c66[_0x100ab1(0x158)]='storage.buckets.create',_0x3d5c66['uHDwy']=_0x100ab1(0x15f),_0x3d5c66[_0x100ab1(0x118)]=_0x100ab1(0x16c),_0x3d5c66['LghaD']='storage.buckets.deleteTagBinding',_0x3d5c66[_0x100ab1(0x12b)]=_0x100ab1(0x85),_0x3d5c66[_0x100ab1(0xed)]=_0x100ab1(0xd2),_0x3d5c66[_0x100ab1(0x94)]='storage.buckets.getObjectInsights',_0x3d5c66[_0x100ab1(0x18b)]=_0x100ab1(0x9d),_0x3d5c66['dcuDn']=_0x100ab1(0x132),_0x3d5c66[_0x100ab1(0xb5)]=_0x100ab1(0xef),_0x3d5c66[_0x100ab1(0xb8)]=_0x100ab1(0xad),_0x3d5c66[_0x100ab1(0x173)]='storage.buckets.update',_0x3d5c66[_0x100ab1(0x8b)]=_0x100ab1(0x16b),_0x3d5c66[_0x100ab1(0xa1)]=_0x100ab1(0xa2),_0x3d5c66[_0x100ab1(0x172)]='storage.multipartUploads.list',_0x3d5c66[_0x100ab1(0x119)]=_0x100ab1(0x196),_0x3d5c66[_0x100ab1(0xf5)]=_0x100ab1(0x86),_0x3d5c66[_0x100ab1(0x1a2)]=_0x100ab1(0x88),_0x3d5c66[_0x100ab1(0x159)]=_0x100ab1(0xff),_0x3d5c66['fcGmb']=_0x100ab1(0xd1),_0x3d5c66['JmFdk']=_0x100ab1(0x80),_0x3d5c66[_0x100ab1(0x16d)]=_0x100ab1(0xe3),_0x3d5c66[_0x100ab1(0x186)]='storage.objects.update',_0x3d5c66[_0x100ab1(0xc1)]=_0x100ab1(0x147),_0x3d5c66[_0x100ab1(0x15d)]=_0x100ab1(0xfe);const _0x4992fc=_0x3d5c66,_0x9be951=await this[_0x100ab1(0xb6)]();if(_0x9be951){if(_0x4992fc['mSZxr'](_0x4992fc[_0x100ab1(0x79)],_0x4992fc[_0x100ab1(0x114)])){logger[_0x100ab1(0x11e)](_0x4992fc[_0x100ab1(0xb7)]);return;}else _0x47391f[_0x100ab1(0x11e)](_0x4992fc[_0x100ab1(0x1a8)]);}logger[_0x100ab1(0x11e)](_0x4992fc['tXWRz']);const _0x5576c0={};_0x5576c0[_0x100ab1(0x146)]=[_0x4992fc[_0x100ab1(0x197)]],_0x5576c0[_0x100ab1(0x195)]=this[_0x100ab1(0x105)];const _0x40621b=await google[_0x100ab1(0x11a)]['getClient'](_0x5576c0),_0x24344e={};_0x24344e[_0x100ab1(0xfc)]=[_0x4992fc['syWxB'],_0x4992fc['NfsBk'],_0x4992fc[_0x100ab1(0x126)],_0x4992fc[_0x100ab1(0x118)],_0x4992fc[_0x100ab1(0x7f)],_0x4992fc['jWOUQ'],_0x4992fc[_0x100ab1(0xed)],_0x4992fc[_0x100ab1(0x94)],_0x4992fc[_0x100ab1(0x18b)],_0x4992fc[_0x100ab1(0x155)],_0x4992fc['lvKOR'],_0x4992fc['mBtvQ'],_0x4992fc['uIlQW'],_0x4992fc[_0x100ab1(0x8b)],_0x4992fc[_0x100ab1(0xa1)],_0x4992fc[_0x100ab1(0x172)],_0x4992fc[_0x100ab1(0x119)],_0x4992fc[_0x100ab1(0xf5)],_0x4992fc['CGdlF'],_0x4992fc[_0x100ab1(0x159)],_0x4992fc[_0x100ab1(0xa0)],_0x4992fc[_0x100ab1(0xb2)],_0x4992fc[_0x100ab1(0x16d)],_0x4992fc[_0x100ab1(0x186)]],_0x24344e[_0x100ab1(0x180)]=_0x4992fc[_0x100ab1(0xc1)],await this[_0x100ab1(0x170)][_0x100ab1(0x14c)][_0x100ab1(0xac)]['create']({'parent':_0x100ab1(0x1a4)+this['projectId'],'requestBody':{'role':_0x24344e,'roleId':this['customRoleName']},'auth':_0x40621b});const _0x13910f={};_0x13910f[_0x100ab1(0x161)]=_0x100ab1(0x1a4)+this[_0x100ab1(0xbf)],_0x13910f[_0x100ab1(0x151)]={},_0x13910f[_0x100ab1(0x11a)]=_0x40621b,_0x13910f[_0x100ab1(0x151)]['accountId']=this[_0x100ab1(0xdf)];const _0x525c7f=_0x13910f;await this[_0x100ab1(0x170)][_0x100ab1(0x10f)][_0x100ab1(0x19c)]['create'](_0x525c7f);let _0xac4999=await this[_0x100ab1(0x178)][_0x100ab1(0x7c)]({'resource':'projects/'+this[_0x100ab1(0xbf)]});_0xac4999=_0xac4999[0x0]['bindings'];const _0x4a6e85={};_0x4a6e85[_0x100ab1(0x99)]=_0x100ab1(0x1a4)+this[_0x100ab1(0xbf)]+'/roles/'+this[_0x100ab1(0x14d)],_0x4a6e85['members']=['serviceAccount:'+this[_0x100ab1(0xdf)]+'@'+this[_0x100ab1(0xbf)]+_0x100ab1(0x92)],_0xac4999[_0x100ab1(0x1a6)](_0x4a6e85);const _0x1da09a={};_0x1da09a[_0x100ab1(0x83)]=_0xac4999,await this['resourcemanagerClient'][_0x100ab1(0x17f)]({'resource':_0x100ab1(0x1a4)+this[_0x100ab1(0xbf)],'policy':_0x1da09a}),logger[_0x100ab1(0x11e)](_0x4992fc[_0x100ab1(0x15d)]);}async[a3_0x25e790(0x12f)](_0x53e079='default',_0x37be3f=[a3_0x25e790(0x93)]){const _0x1dc13d=a3_0x25e790,_0x8ee28f={};_0x8ee28f[_0x1dc13d(0x87)]=_0x1dc13d(0x10e),_0x8ee28f[_0x1dc13d(0x165)]=_0x1dc13d(0x121),_0x8ee28f[_0x1dc13d(0x103)]=_0x1dc13d(0x199);const _0x4f14e6=_0x8ee28f,_0xaf0385=_0x4f14e6[_0x1dc13d(0x87)][_0x1dc13d(0xa8)]('|');let _0x1c3521=0x0;while(!![]){switch(_0xaf0385[_0x1c3521++]){case'0':const _0x4ad52c={};_0x4ad52c[_0x1dc13d(0xcf)]=WS_EVENTS[_0x1dc13d(0x179)],_0x4ad52c[_0x1dc13d(0xee)]=_0x4f14e6[_0x1dc13d(0x165)],this[_0x1dc13d(0x129)]['sendEventToBackend'](this[_0x1dc13d(0x130)],_0x4ad52c);continue;case'1':return!![];case'2':await this[_0x1dc13d(0x10d)](_0x53e079,_0x37be3f);continue;case'3':await this[_0x1dc13d(0xe9)]();continue;case'4':this[_0x1dc13d(0x135)](this[_0x1dc13d(0x130)]);continue;case'5':logger[_0x1dc13d(0x11e)](_0x4f14e6[_0x1dc13d(0x103)]);continue;}break;}}async[a3_0x25e790(0x10d)](_0x1ebb27=a3_0x25e790(0x93),_0x1a53be=[a3_0x25e790(0x93)]){const _0x107c01=a3_0x25e790,_0xec7ea0={};_0xec7ea0[_0x107c01(0xd7)]='GKE\x20Cluster\x20deletion\x20failed',_0xec7ea0[_0x107c01(0x8e)]=_0x107c01(0x191),_0xec7ea0[_0x107c01(0x156)]=function(_0x28d6e4,_0xc2e12a){return _0x28d6e4===_0xc2e12a;},_0xec7ea0[_0x107c01(0xfa)]=function(_0x122e99,_0x502c36){return _0x122e99===_0x502c36;},_0xec7ea0[_0x107c01(0x19e)]='browserstack',_0xec7ea0[_0x107c01(0x17e)]=function(_0x86af77,_0x4e582d){return _0x86af77!==_0x4e582d;},_0xec7ea0['LbMQG']=_0x107c01(0x9f),_0xec7ea0[_0x107c01(0xc2)]=_0x107c01(0x1a1),_0xec7ea0[_0x107c01(0x144)]=_0x107c01(0xc5),_0xec7ea0['sQPDr']=_0x107c01(0x77),_0xec7ea0['qbSQj']=_0x107c01(0x123),_0xec7ea0[_0x107c01(0x74)]='utf-8',_0xec7ea0[_0x107c01(0xc0)]=_0x107c01(0x109),_0xec7ea0[_0x107c01(0x184)]=function(_0x377dc6,_0x7835ca){return _0x377dc6*_0x7835ca;},_0xec7ea0[_0x107c01(0x98)]=function(_0x2a6546,_0x5225c2){return _0x2a6546*_0x5225c2;},_0xec7ea0[_0x107c01(0x194)]='ROwpj',_0xec7ea0[_0x107c01(0x91)]=_0x107c01(0xb9),_0xec7ea0[_0x107c01(0x8c)]=_0x107c01(0x115),_0xec7ea0[_0x107c01(0xae)]=_0x107c01(0xf1),_0xec7ea0['cVJmY']=function(_0x115d97,_0x53d4e1){return _0x115d97!==_0x53d4e1;},_0xec7ea0[_0x107c01(0x16f)]='NBUdu',_0xec7ea0[_0x107c01(0x9c)]=_0x107c01(0x7d);const _0x2c9448=_0xec7ea0;try{if(_0x2c9448['HNPXk'](_0x2c9448[_0x107c01(0x19f)],_0x2c9448[_0x107c01(0x19f)])){_0x55bd78[_0x107c01(0x11e)](_0x2c9448['bqZzn']);throw _0xe4e662;}else{logger[_0x107c01(0x11e)](_0x2c9448['eathL']);let _0xa41344=await fs[_0x107c01(0x9b)](path['join'](__dirname,'..',_0x2c9448[_0x107c01(0x144)],_0x2c9448[_0x107c01(0x145)],_0x2c9448[_0x107c01(0x142)]),_0x2c9448[_0x107c01(0x74)]);_0xa41344=JSON[_0x107c01(0x176)](_0xa41344);let _0x520b49=await fs[_0x107c01(0x9b)](path[_0x107c01(0x153)](__dirname,'..',_0x2c9448['DWnWg'],_0x2c9448['sQPDr'],_0x2c9448[_0x107c01(0xc0)]),_0x2c9448['CRIJF']);_0x520b49=JSON['parse'](_0x520b49),_0xa41344[_0x107c01(0x161)]=this[_0x107c01(0xba)],_0xa41344[_0x107c01(0xe4)][0x0][_0x107c01(0x14b)][_0x107c01(0x185)]=global_registry[_0x107c01(0xc7)],_0xa41344['nodePools'][0x0]['config']['serviceAccount']=this[_0x107c01(0xdf)]+'@'+this[_0x107c01(0xbf)]+_0x107c01(0x92),_0xa41344[_0x107c01(0xe4)][0x0][_0x107c01(0x16e)][_0x107c01(0xb3)]=global_registry[_0x107c01(0x149)],_0xa41344['nodePools'][0x0][_0x107c01(0x16e)]['maxNodeCount']=global_registry[_0x107c01(0x198)],_0xa41344['location']=global_registry[_0x107c01(0x111)],_0xa41344['locations']=[_0x520b49[global_registry[_0x107c01(0x111)]][0x0]],_0xa41344['network']=_0x107c01(0x1a4)+this[_0x107c01(0xbf)]+'/global/networks/'+_0x1ebb27,_0xa41344['subnetwork']=_0x107c01(0x1a4)+this[_0x107c01(0xbf)]+_0x107c01(0xbe)+global_registry[_0x107c01(0x111)]+_0x107c01(0x127)+_0x1a53be[0x0];const _0x4433a0=await this['containerClient']['createCluster']({'cluster':_0xa41344,'parent':_0x107c01(0x1a4)+this['projectId']+_0x107c01(0x183)+global_registry['clusterRegion']});await this['webSocketUtils'][_0x107c01(0x15e)](_0x2c9448['wKfpo'](_0x2c9448[_0x107c01(0x98)](0x7,0x3c),0x3e8));}}catch(_0x2a37ac){if(_0x2c9448[_0x107c01(0x156)](_0x2c9448['XNcaf'],_0x2c9448[_0x107c01(0x91)])){_0x107e38[_0x107c01(0x11e)](_0x2c9448[_0x107c01(0x8e)]);return;}else{const _0x5ed46c=await this['isClusterPresent']();if(_0x5ed46c){if(_0x2c9448['cFQSU'](_0x2c9448[_0x107c01(0x8c)],_0x2c9448[_0x107c01(0x8c)]))logger[_0x107c01(0x11e)](_0x2c9448[_0x107c01(0xae)],_0x2a37ac['stack']),await this[_0x107c01(0x113)]();else return _0x2c9448[_0x107c01(0x156)](_0x2ff40f[_0x107c01(0xa6)],!![]);}else{if(_0x2c9448[_0x107c01(0x17b)](_0x2c9448[_0x107c01(0x16f)],_0x2c9448[_0x107c01(0x16f)])){const _0x2b5e84=_0x1202b5[0x0]?.['resourceLabels']?.['managedby'];return _0x2b5e84&&_0x2c9448[_0x107c01(0xfa)](_0x2b5e84[_0x107c01(0xf0)](),_0x2c9448[_0x107c01(0x19e)]);}else logger[_0x107c01(0x11e)](_0x2c9448[_0x107c01(0x9c)]);}throw _0x2a37ac;}}}async[a3_0x25e790(0x113)](_0x1a00be,_0x1e8249){const _0x6adaf3=a3_0x25e790,_0x372fb7={'NXhnd':function(_0x25ff6c,_0x4dd047){return _0x25ff6c===_0x4dd047;},'ZpliZ':_0x6adaf3(0xf7),'FiWMM':_0x6adaf3(0x10b),'zEXKN':function(_0x35002e,_0x127d6d){return _0x35002e(_0x127d6d);},'uCEVp':function(_0xb4e8d4,_0x33b65a){return _0xb4e8d4===_0x33b65a;},'lvJrZ':_0x6adaf3(0x15c),'GrNPf':function(_0x2c43d2,_0x5aa406){return _0x2c43d2===_0x5aa406;},'OHQWA':_0x6adaf3(0xd0),'dxUeh':function(_0x108c57,_0x225092){return _0x108c57!==_0x225092;},'ogliU':_0x6adaf3(0xe7),'ZHIaR':_0x6adaf3(0x12a),'tOkyt':function(_0x761561,_0x4f141a){return _0x761561!==_0x4f141a;},'osMpP':_0x6adaf3(0x75),'aFaQC':_0x6adaf3(0x163)};try{if(_0x372fb7[_0x6adaf3(0xe8)](_0x372fb7[_0x6adaf3(0xbc)],_0x372fb7[_0x6adaf3(0xa3)]))return!![];else{await _0x372fb7[_0x6adaf3(0xdd)](deleteRoutingDeps,_0x1a00be),logger[_0x6adaf3(0x11e)](_0x6adaf3(0x171)+this[_0x6adaf3(0xba)]);const _0xd6c046=await this[_0x6adaf3(0x8f)][_0x6adaf3(0x113)]({'name':_0x6adaf3(0x1a4)+this[_0x6adaf3(0xbf)]+_0x6adaf3(0x183)+global_registry[_0x6adaf3(0x111)]+_0x6adaf3(0x106)+this[_0x6adaf3(0xba)]});if(_0x372fb7['uCEVp'](_0xd6c046[0x0]?.[_0x6adaf3(0x7e)],_0x372fb7['lvJrZ'])||_0x372fb7[_0x6adaf3(0x18e)](_0xd6c046[0x0]?.[_0x6adaf3(0x7e)],_0x372fb7[_0x6adaf3(0xc4)])){if(_0x372fb7['dxUeh'](_0x372fb7['ogliU'],_0x372fb7[_0x6adaf3(0x18f)]))return!![];else{if(_0x372fb7[_0x6adaf3(0xe8)](_0x1485c5['name'],this['clusterName']))return!![];}}logger['info']('Cluster\x20deletion\x20completed');}}catch(_0x238769){if(_0x372fb7['tOkyt'](_0x372fb7[_0x6adaf3(0xf8)],_0x372fb7[_0x6adaf3(0xf8)]))return _0x428cda[_0x6adaf3(0x162)](_0x6adaf3(0x7a)+_0x3e8685+_0x6adaf3(0x12d)+_0x505b31),[![],[]];else{logger['info'](_0x372fb7[_0x6adaf3(0x193)]);throw _0x238769;}}}async[a3_0x25e790(0x182)](_0x527efe){const _0x22751a=a3_0x25e790,_0x39b5a={};_0x39b5a['cvaiZ']=function(_0x2524e1,_0x4c3345){return _0x2524e1===_0x4c3345;},_0x39b5a[_0x22751a(0xd5)]=function(_0x44faca,_0x5e824c){return _0x44faca===_0x5e824c;},_0x39b5a['weNez']=_0x22751a(0xde),_0x39b5a['AyLHX']='lixaA',_0x39b5a[_0x22751a(0x1a5)]=function(_0x30c9ff,_0x1f84eb){return _0x30c9ff>_0x1f84eb;},_0x39b5a[_0x22751a(0xf3)]=function(_0x4d45d3,_0x34b259){return _0x4d45d3===_0x34b259;},_0x39b5a[_0x22751a(0x18a)]='TLsNu',_0x39b5a[_0x22751a(0x13b)]=_0x22751a(0xa7),_0x39b5a[_0x22751a(0x76)]=function(_0x15aed2,_0x330172){return _0x15aed2===_0x330172;},_0x39b5a[_0x22751a(0xfb)]=_0x22751a(0x19d);const _0x375b78=_0x39b5a;try{if(_0x375b78[_0x22751a(0xd5)](_0x375b78[_0x22751a(0xb0)],_0x375b78['AyLHX']))return!![];else{const _0x4ff143={};_0x4ff143['project']=projectId,_0x4ff143['network']=_0x527efe;const _0x36b3c4=await networkClient[_0x22751a(0xd4)](_0x4ff143);if(_0x375b78[_0x22751a(0x1a5)](_0x36b3c4[_0x22751a(0x190)],0x0)&&_0x375b78[_0x22751a(0xf3)](_0x36b3c4[0x0][_0x22751a(0x161)],_0x527efe)){if(_0x375b78['cvaiZ'](_0x375b78[_0x22751a(0x18a)],_0x375b78['xawdP'])){const _0x11af47=_0x22751a(0x122)+this['projectId']+'/regions/'+_0x148cc0[_0x22751a(0x111)]+_0x22751a(0x127)+_0x324c19[0x0];if(_0x375b78[_0x22751a(0x150)](_0x11af47,_0x946227))return[!![],_0x5b6f31];}else return!![];}}}catch(_0x4e4329){if(_0x375b78[_0x22751a(0x76)](_0x375b78[_0x22751a(0xfb)],_0x375b78[_0x22751a(0xfb)]))return![];else this[_0x22751a(0xca)]();}return![];}async[a3_0x25e790(0x168)](_0x3eb894,_0x49a7b6){const _0x3d4778=a3_0x25e790,_0x58cf7f={};_0x58cf7f[_0x3d4778(0x101)]=function(_0x441234,_0x1fad7b){return _0x441234!==_0x1fad7b;},_0x58cf7f[_0x3d4778(0x14f)]='zZeqS',_0x58cf7f[_0x3d4778(0xce)]='qLcOh',_0x58cf7f['WJreL']=function(_0x575ea4,_0xb1c02e){return _0x575ea4===_0xb1c02e;},_0x58cf7f[_0x3d4778(0xd6)]=_0x3d4778(0xf6);const _0x14ae94=_0x58cf7f;try{const _0x2e5898={};_0x2e5898[_0x3d4778(0x152)]=projectId,_0x2e5898[_0x3d4778(0x8a)]=_0x49a7b6;const _0x31c05b=await networkClient[_0x3d4778(0xd4)](_0x2e5898);for(const _0x5f252f of _0x31c05b[0x0][_0x3d4778(0x19a)]){if(_0x14ae94[_0x3d4778(0x101)](_0x14ae94[_0x3d4778(0x14f)],_0x14ae94[_0x3d4778(0xce)])){const _0x34bef6='https://www.googleapis.com/compute/v1/projects/'+this[_0x3d4778(0xbf)]+_0x3d4778(0xbe)+global_registry[_0x3d4778(0x111)]+_0x3d4778(0x127)+_0x3eb894[0x0];if(_0x14ae94[_0x3d4778(0x15b)](_0x34bef6,_0x5f252f))return _0x14ae94['WJreL'](_0x14ae94[_0x3d4778(0xd6)],_0x14ae94['RwCHS'])?[!![],_0x3eb894]:!![];}else return![];}}catch(_0x515ba0){return logger['error'](_0x3d4778(0x7a)+_0x3eb894+_0x3d4778(0x12d)+_0x515ba0),[![],[]];}return[![],[]];}async['sendGCPInfoToHST'](){const _0xf4c09e=a3_0x25e790,_0x298f9e=await this[_0xf4c09e(0xdb)][_0xf4c09e(0x13e)]({'project':this[_0xf4c09e(0xbf)]}),_0x3c25a5={};_0x3c25a5[_0xf4c09e(0x13d)]=global_registry[_0xf4c09e(0x174)],_0x3c25a5[_0xf4c09e(0xbd)]=global_registry[_0xf4c09e(0xcb)],_0x3c25a5[_0xf4c09e(0x10c)]=GCP,_0x3c25a5['vpcInfo']=[];const _0x16dc4f=_0x3c25a5;for(const _0x24db45 of _0x298f9e){_0x16dc4f[_0xf4c09e(0x187)]['push'](_0x24db45);}const _0x3016df={};_0x3016df[_0xf4c09e(0xcf)]=WS_EVENTS[_0xf4c09e(0x139)],_0x3016df[_0xf4c09e(0xee)]=_0x16dc4f,this[_0xf4c09e(0x129)][_0xf4c09e(0x108)](this[_0xf4c09e(0x130)],_0x3016df);}}const a3_0x1c76ff={};function a3_0x3b53(_0x1f0681,_0x40c104){const _0x546bdd=a3_0x546b();return a3_0x3b53=function(_0x3b5301,_0x5a3668){_0x3b5301=_0x3b5301-0x71;let _0x592ac7=_0x546bdd[_0x3b5301];return _0x592ac7;},a3_0x3b53(_0x1f0681,_0x40c104);}a3_0x1c76ff[a3_0x25e790(0x7b)]=GoogleCloudProvider,module[a3_0x25e790(0x82)]=a3_0x1c76ff;
1
+ const a3_0xf2414=a3_0xddf4;(function(_0x5580bb,_0x16185c){const _0x3e5800=a3_0xddf4,_0x45f69c=_0x5580bb();while(!![]){try{const _0x4b6758=parseInt(_0x3e5800(0x15e))/0x1+parseInt(_0x3e5800(0x1b9))/0x2*(-parseInt(_0x3e5800(0x94))/0x3)+parseInt(_0x3e5800(0x12e))/0x4*(parseInt(_0x3e5800(0x116))/0x5)+-parseInt(_0x3e5800(0x119))/0x6+-parseInt(_0x3e5800(0x1b5))/0x7+-parseInt(_0x3e5800(0xc9))/0x8*(-parseInt(_0x3e5800(0x1a3))/0x9)+parseInt(_0x3e5800(0xc8))/0xa;if(_0x4b6758===_0x16185c)break;else _0x45f69c['push'](_0x45f69c['shift']());}catch(_0x4fbb3c){_0x45f69c['push'](_0x45f69c['shift']());}}}(a3_0x194c,0x50552));function a3_0x194c(){const _0x47fc4f=['sendGCPInfoToHST','list','toLowerCase','info','LzejF','33687wzkcID','DvHBG','JALld','storage.objects.getIamPolicy','../utils/utilityMethods','machineType','NetworksClient','containerClient','eoGLR','exec','storage.objects.delete','serviceAccountName','../config/logger','gcp_credentials.json','getClient','create','/regions/','.iam.gserviceaccount.com','4293576ZHxJhF','KubeConfigTemplate.yaml','loadBalancer','uOwce','7022TLzNCS','Cluster\x20deletion\x20completed','networkClient','roles','lhrBx','byQJW','sendEventToBackend','storage.buckets.createTagBinding','bindings','opfld','status','path','WnZlN','mSffx','57SSCqYX','IUPez','autoscaling','egIrV','GFVDu','jXFaE','khGmI','RUjFw','fUDlW','mTsAy','length','setIamPolicy','parent','join','name','FJfMk','serviceAccount','AsMTD','TsFIA','XfrsX','data','fDeaW','auth','Pwuys','webSocketUtils','instanceType','storage.buckets.create','MPSRd','body','ASxbS','clusters','TKfRi','KgVtx','wImdF','error','/clusters/','storage.objects.get','VSreD','Creating\x20service\x20account','erPYJ','tpKoE','network','cAQXB','agriz','storage.buckets.get','get','storage.buckets.listTagBindings','wqaJW','KcmJw','EdcoG','storage.buckets.update','XfKAO','2254830VdxppG','904WWreMx','vRckz','iamClient','rkXKL','YIrAf','split','VHPdo','STclc','RVqUm','bstackAccesskey','BSiMO','UwDyh','storage.buckets.list','5|1|8|3|4|0|7|2|6','ZIgHU','ejeKx','stack','fetchLocalCreds','project_id','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','nPbXb','clusterName','nsvAE','minNodes','https://www.googleapis.com/compute/v1/projects/','RUNNING','ZaYEo','push','accountId','googleapis','getGridHostname','AUGEE','DJnbr','accounts','JaYkh','tUXat','Service\x20account\x20already\x20exists,\x20skipping','DNJIC','kvUnj','qprWF','/roles/','writeFileSync','XPhuW','OaSjp','QURbQ','projects/','rERkb','YQnOr','storage.objects.update','wXaGi','/subnetworks/','requestBody','TKSDc','kyEWh','storage.objects.list','zYFpd','XqstT','cloudProvider','hqpei','setupServiceAccount','deleteCluster','XDKJa','storage.multipartUploads.create','vpcInfo','rws','yVaDY','pfcEB','SkgRH','getClusterInfo','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','cGRUa','replace','managedby','jipjP','rRQQM','config','checkServiceAccount','3157985lEJqyC','isBrowserstackCluster','LOG','3548148TyaTZJ','JpVUM','turboscale_custom_role','project','cloudProviderName','SeWMp','QGYvO','JzxOe','projectId','ttpER','igjmy','spvSF','DhQEK','McdOg','readFileAsync','Turboscale\x20Custom\x20Role','maxNodeCount','resourceLabels','Znfwy','serviceAccount:','EHGkZ','4RWnAVw','5|3|4|0|1|2','storage.multipartUploads.listParts','SmKEL','getCluster','gcpresources','role','clusterCaCertificate','vHRTv','scopes','resourcemanagerClient','username','https://www.googleapis.com/auth/cloud-platform','pLdrm','FHBic','QjlTO','nAZtA','/serviceAccounts/','gcpConfigSet','iwhgK','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','regionmap.json','clusterRegion','gedOF','RUbcM','BuPzp','YCCOQ','tVEhp','/global/networks/','@google-cloud/container','serviceAccounts','accessKey','isConfigured','kzXOE','https://','locations','location','GKE\x20Cluster\x20deletion\x20failed','projects','IqzkQ','customRoleName','Cluster\x20creation\x20failed','storage.buckets.listEffectiveTags','BLSuK','dlMMw','gke_','nodePools','gJWPd','320438KosDKu','fMGVv','Bnuyw','templates','setConfig','child_process','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','ytOHe','iam','message','credentialsPath','/locations/','storage.objects.create','kzbtN','socaA','includedPermissions','getKubeConfigData','storage.buckets.getIamPolicy','YEiWP','gDSkB','plEhg','GJVVh','GbRxO','ShoWc','title','ybvLy','MgZIU','XuqXB','qFJgv','wTKOQ','LdzyV','gcloud\x20auth\x20login\x20--cred-file=','configureIfNotConfigured','jIABb','ClusterManagerClient','DeZhX','uAyUt','parse','storage.buckets.delete','toString','setupNewCluster','@google-cloud/resource-manager','SAYjP','gJwai','zsLEE','CgOQY','ZWCwL','Cannot\x20find\x20subnets\x20','PIoDQ','createCluster','maxNodes','zsxuq','CPext','.\x20Error:\x20','ksvaZ','jTJka','DONE','default','GLtkC','keyFile','browserstack','getIamPolicy','storage.buckets.deleteTagBinding','uyIky'];a3_0x194c=function(){return _0x47fc4f;};return a3_0x194c();}function a3_0xddf4(_0x156911,_0x23fdc5){const _0x194c54=a3_0x194c();return a3_0xddf4=function(_0xddf435,_0xf5e1d3){_0xddf435=_0xddf435-0x87;let _0x2e6e26=_0x194c54[_0xddf435];return _0x2e6e26;},a3_0xddf4(_0x156911,_0x23fdc5);}const fs=require('fs'),path=require(a3_0xf2414(0x91)),cp=require(a3_0xf2414(0x163)),{google}=require(a3_0xf2414(0xe6)),compute=require('@google-cloud/compute'),container=require(a3_0xf2414(0x14b)),{ProjectsClient}=require(a3_0xf2414(0x187))['v3'],{logger}=require(a3_0xf2414(0x1af)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig}=require(a3_0xf2414(0x1a7)),{deleteRoutingDeps}=require('../utils/gridComponents'),{GCP,WS_EVENTS,global_registry}=require('../config/constants');class GoogleCloudProvider extends CloudProvider{constructor(_0x3e5ad9,_0x449434,_0xcc9af2,_0x37bb1f){const _0x2d3d4f=a3_0xf2414,_0x928b88={};_0x928b88[_0x2d3d4f(0x145)]=_0x2d3d4f(0xd6),_0x928b88[_0x2d3d4f(0x12b)]=_0x2d3d4f(0x11b),_0x928b88[_0x2d3d4f(0x9a)]='turboscale-service-account';const _0x250842=_0x928b88,_0x1dea56=_0x250842[_0x2d3d4f(0x145)][_0x2d3d4f(0xce)]('|');let _0x4b232c=0x0;while(!![]){switch(_0x1dea56[_0x4b232c++]){case'0':this[_0x2d3d4f(0x168)]=null;continue;case'1':this[_0x2d3d4f(0x1aa)]=null;continue;case'2':this[_0x2d3d4f(0x156)]=_0x250842['Znfwy'];continue;case'3':this[_0x2d3d4f(0x138)]=null;continue;case'4':this[_0x2d3d4f(0xcb)]=null;continue;case'5':super(GCP,_0x3e5ad9,_0x449434,_0xcc9af2,_0x37bb1f);continue;case'6':this['serviceAccountName']=_0x250842['khGmI'];continue;case'7':this[_0x2d3d4f(0x121)]=null;continue;case'8':this[_0x2d3d4f(0x88)]=null;continue;}break;}}[a3_0xf2414(0x17e)](){const _0x52c736=a3_0xf2414,_0x5d2261={};_0x5d2261[_0x52c736(0x15f)]=function(_0x31b95f,_0x4c015b){return _0x31b95f!==_0x4c015b;},_0x5d2261['DvHBG']=_0x52c736(0x170);const _0x1088da=_0x5d2261;if(!this['isConfigured']()){if(_0x1088da[_0x52c736(0x15f)](_0x1088da[_0x52c736(0x1a4)],_0x1088da[_0x52c736(0x1a4)]))return![];else this[_0x52c736(0x162)]();}}['isConfigured'](){const _0x1a48bb=a3_0xf2414,_0x559707={};_0x559707[_0x1a48bb(0x92)]=function(_0x242209,_0x2feb6c){return _0x242209===_0x2feb6c;};const _0x45bdf0=_0x559707;return _0x45bdf0[_0x1a48bb(0x92)](global_registry[_0x1a48bb(0x140)],!![]);}[a3_0xf2414(0x162)](){const _0x7acb3e=a3_0xf2414,_0x172d2a=this[_0x7acb3e(0x168)],_0x534d8e={};_0x534d8e[_0x7acb3e(0x199)]=_0x172d2a,this[_0x7acb3e(0x1aa)]=new container['v1'][(_0x7acb3e(0x180))](_0x534d8e);const _0x470024={};_0x470024[_0x7acb3e(0x199)]=_0x172d2a,this[_0x7acb3e(0x88)]=new compute['v1'][(_0x7acb3e(0x1a9))](_0x470024);const _0x50f09d={};_0x50f09d['keyFile']=_0x172d2a,this[_0x7acb3e(0x138)]=new ProjectsClient(_0x50f09d),this[_0x7acb3e(0xcb)]=google[_0x7acb3e(0x166)]('v1'),global_registry[_0x7acb3e(0x140)]=!![];}async['getUserInput'](_0x37ca3a,_0x49ba1e){const _0x3723bd=a3_0xf2414,_0x8b0175={'AezoP':function(_0x2761c2,_0xe272ec){return _0x2761c2(_0xe272ec);},'TKfRi':function(_0x5318ca){return _0x5318ca();},'XfKAO':_0x3723bd(0x1b0)},_0x391d37=await _0x8b0175['AezoP'](_0x37ca3a,_0x3723bd(0x10e));let _0x149edb=await fs[_0x3723bd(0x127)](_0x391d37);_0x149edb=_0x149edb[_0x3723bd(0x185)]();const _0x1c0d90=_0x8b0175[_0x3723bd(0xb3)](getDirForConfig),_0x442329=path[_0x3723bd(0xa1)](_0x1c0d90,_0x8b0175[_0x3723bd(0xc7)]);fs[_0x3723bd(0xf2)](_0x442329,_0x149edb),this['credentialsPath']=_0x442329;const _0x1c2a2a={};return _0x1c2a2a[_0x3723bd(0x199)]=_0x442329,_0x49ba1e[_0x3723bd(0x102)][GCP]=_0x1c2a2a,_0x149edb=JSON[_0x3723bd(0x183)](_0x149edb),this[_0x3723bd(0x121)]=_0x149edb[_0x3723bd(0xdb)],_0x49ba1e;}async[a3_0xf2414(0xda)](_0x18c212){const _0x1e42bd=a3_0xf2414;this[_0x1e42bd(0x168)]=_0x18c212[this[_0x1e42bd(0x11d)]][_0x1e42bd(0x199)];let _0x1cfa3f=await fs['readFileAsync'](this['credentialsPath']);_0x1cfa3f=JSON[_0x1e42bd(0x183)](_0x1cfa3f),this[_0x1e42bd(0x121)]=_0x1cfa3f['project_id'];}[a3_0xf2414(0xe7)](_0x2e738c){const _0x4f3d4e=a3_0xf2414;return _0x2e738c[_0x4f3d4e(0xb0)][_0x4f3d4e(0x90)]['loadBalancer']['ingress'][0x0]['ip'];}async[a3_0xf2414(0x117)](){const _0x2d1de3=a3_0xf2414,_0x1f2ab4={};_0x1f2ab4[_0x2d1de3(0x17a)]=function(_0x407399,_0x524187){return _0x407399!==_0x524187;},_0x1f2ab4[_0x2d1de3(0xd7)]=_0x2d1de3(0x194),_0x1f2ab4[_0x2d1de3(0x9c)]=function(_0x51aa9a,_0x27f175){return _0x51aa9a===_0x27f175;},_0x1f2ab4['kyEWh']='XWHZo',_0x1f2ab4[_0x2d1de3(0xe8)]=_0x2d1de3(0x178),_0x1f2ab4['DNJIC']=_0x2d1de3(0x19a),_0x1f2ab4['GREeW']=function(_0x1d4772,_0xe47536){return _0x1d4772===_0xe47536;},_0x1f2ab4[_0x2d1de3(0x123)]='kFMlE';const _0x29ff25=_0x1f2ab4;try{if(_0x29ff25['qFJgv'](_0x29ff25['ZIgHU'],_0x29ff25[_0x2d1de3(0xd7)]))return _0x572bb6[_0x2d1de3(0xb0)][_0x2d1de3(0x90)][_0x2d1de3(0x1b7)]['ingress'][0x0]['ip'];else{const _0x1295d9=await this[_0x2d1de3(0x10d)]();if(_0x1295d9[0x0]?.['resourceLabels']?.['managedby']){if(_0x29ff25[_0x2d1de3(0x9c)](_0x29ff25[_0x2d1de3(0xfe)],_0x29ff25[_0x2d1de3(0xe8)]))return _0x24b22c[_0x2d1de3(0xb6)](_0x2d1de3(0x18d)+_0x3c2229+_0x2d1de3(0x193)+_0x5381ab),[![],[]];else{const _0x32dbc6=_0x1295d9[0x0]?.[_0x2d1de3(0x12a)]?.['managedby'];return _0x32dbc6&&_0x29ff25[_0x2d1de3(0x9c)](_0x32dbc6[_0x2d1de3(0x1a0)](),_0x29ff25[_0x2d1de3(0xee)]);}}}}catch(_0x4d2071){return _0x29ff25['GREeW'](_0x29ff25[_0x2d1de3(0x123)],_0x29ff25['igjmy'])?![]:!![];}return![];}async['isClusterPresent'](){const _0x2f08d2=a3_0xf2414,_0x29954f={};_0x29954f[_0x2f08d2(0x106)]=function(_0x3bdc4d,_0x357fd){return _0x3bdc4d===_0x357fd;},_0x29954f[_0x2f08d2(0xc5)]=function(_0x31137f,_0x3ea319){return _0x31137f===_0x3ea319;},_0x29954f[_0x2f08d2(0x147)]='uKGBd',_0x29954f[_0x2f08d2(0xc4)]=_0x2f08d2(0x10f),_0x29954f[_0x2f08d2(0xd8)]=function(_0x4241ce,_0x2f88df){return _0x4241ce===_0x2f88df;},_0x29954f[_0x2f08d2(0xa5)]='RgDJo';const _0x501931=_0x29954f;this[_0x2f08d2(0x17e)]();const _0x240169={};_0x240169[_0x2f08d2(0xa0)]=_0x2f08d2(0xf6)+this[_0x2f08d2(0x121)]+'/locations/'+global_registry[_0x2f08d2(0x144)];const _0x4dfab0=_0x240169,_0x23521f=await this[_0x2f08d2(0x1aa)]['listClusters'](_0x4dfab0);for(const _0x544a42 of _0x23521f[0x0][_0x2f08d2(0xb2)]){if(_0x501931['EdcoG'](_0x501931[_0x2f08d2(0x147)],_0x501931[_0x2f08d2(0xc4)]))return _0x501931[_0x2f08d2(0x106)](_0xa7a2dc['gcpConfigSet'],!![]);else{if(_0x501931[_0x2f08d2(0x106)](_0x544a42[_0x2f08d2(0xa2)],this[_0x2f08d2(0xde)])){if(_0x501931[_0x2f08d2(0xd8)](_0x501931[_0x2f08d2(0xa5)],_0x501931[_0x2f08d2(0xa5)]))return!![];else{if(_0x501931[_0x2f08d2(0x106)](_0x115412[_0x2f08d2(0xa2)],this[_0x2f08d2(0xde)]))return!![];}}}}return![];}async[a3_0xf2414(0x10d)](){const _0x5a7a67=a3_0xf2414,_0x494f84=await this['containerClient'][_0x5a7a67(0x132)]({'name':_0x5a7a67(0xf6)+this[_0x5a7a67(0x121)]+_0x5a7a67(0x169)+global_registry['clusterRegion']+_0x5a7a67(0xb7)+this[_0x5a7a67(0xde)]});return _0x494f84;}async[a3_0xf2414(0x16e)](){const _0x46cffc=a3_0xf2414,_0x999886={};_0x999886['FlbXM']=_0x46cffc(0x161),_0x999886['byQJW']=_0x46cffc(0x133),_0x999886[_0x46cffc(0x195)]=_0x46cffc(0x1b6);const _0x17a1fd=_0x999886;cp['execSync']('gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false'),cp[_0x46cffc(0x1ac)](_0x46cffc(0x17d)+this[_0x46cffc(0x168)]);const _0x596210=await this[_0x46cffc(0x10d)](),_0x17dde5=_0x46cffc(0x15b)+this[_0x46cffc(0x121)]+'_'+global_registry['clusterRegion']+'_'+this[_0x46cffc(0xde)];let _0x5c524f=await fs[_0x46cffc(0x127)](path[_0x46cffc(0xa1)](__dirname,'..',_0x17a1fd['FlbXM'],_0x17a1fd[_0x46cffc(0x8b)],_0x17a1fd[_0x46cffc(0x195)]));return _0x5c524f=_0x5c524f[_0x46cffc(0x185)](),_0x5c524f=_0x5c524f[_0x46cffc(0x110)](/<CLUSTER_NAME>/g,_0x17dde5),_0x5c524f=_0x5c524f['replace'](/<CLUSTER_URL>/g,_0x46cffc(0x150)+_0x596210[0x0]['endpoint']),_0x5c524f=_0x5c524f[_0x46cffc(0x110)](/<CERTIFICATE_DATA>/g,_0x596210[0x0]['masterAuth'][_0x46cffc(0x135)]),_0x5c524f;}async[a3_0xf2414(0x115)](){const _0x2efe00=a3_0xf2414,_0x4c2698={};_0x4c2698['WzTMt']=function(_0x48f91b,_0x1b3763){return _0x48f91b===_0x1b3763;},_0x4c2698['plEhg']=_0x2efe00(0x13a),_0x4c2698[_0x2efe00(0x11f)]=function(_0x5ad4f9,_0x26541a){return _0x5ad4f9!==_0x26541a;},_0x4c2698['gEXte']=_0x2efe00(0x100),_0x4c2698['tVEhp']='RzcyH',_0x4c2698[_0x2efe00(0x8a)]=function(_0x4d3fab,_0x169fb4){return _0x4d3fab!==_0x169fb4;},_0x4c2698[_0x2efe00(0x188)]=_0x2efe00(0x125),_0x4c2698[_0x2efe00(0xd3)]=_0x2efe00(0xfa);const _0x1fd217=_0x4c2698,_0x2e7ec9={};_0x2e7ec9[_0x2efe00(0x137)]=[_0x1fd217[_0x2efe00(0x172)]],_0x2e7ec9['keyFile']=this[_0x2efe00(0x168)];const _0x5c20b8=await google[_0x2efe00(0xaa)][_0x2efe00(0x1b1)](_0x2e7ec9),_0xf81b01=await this[_0x2efe00(0xcb)][_0x2efe00(0x154)][_0x2efe00(0x14c)][_0x2efe00(0x19f)]({'name':_0x2efe00(0xf6)+this[_0x2efe00(0x121)],'auth':_0x5c20b8});for(const _0x2282a8 of _0xf81b01?.[_0x2efe00(0xa8)]?.[_0x2efe00(0xea)]){if(_0x1fd217[_0x2efe00(0x11f)](_0x1fd217['gEXte'],_0x1fd217[_0x2efe00(0x149)])){if(_0x1fd217['WzTMt'](_0x2282a8?.[_0x2efe00(0xa2)],_0x2efe00(0xf6)+this[_0x2efe00(0x121)]+_0x2efe00(0x13f)+this[_0x2efe00(0x1ae)]+'@'+this[_0x2efe00(0x121)]+_0x2efe00(0x1b4))){if(_0x1fd217['lhrBx'](_0x1fd217[_0x2efe00(0x188)],_0x1fd217[_0x2efe00(0xd3)]))return!![];else{const _0x2162ad=_0x2efe00(0xe1)+this[_0x2efe00(0x121)]+_0x2efe00(0x1b3)+_0x25dfcc[_0x2efe00(0x144)]+_0x2efe00(0xfb)+_0x508898[0x0];if(_0x1fd217['WzTMt'](_0x2162ad,_0x132ac5))return[!![],_0x349dc5];}}}else return!![];}return![];}async[a3_0xf2414(0x104)](){const _0x45ce38=a3_0xf2414,_0x128b41={};_0x128b41[_0x45ce38(0xcd)]=function(_0x16f047,_0x510d64){return _0x16f047===_0x510d64;},_0x128b41[_0x45ce38(0xbb)]=_0x45ce38(0x11a),_0x128b41[_0x45ce38(0xa9)]=_0x45ce38(0x192),_0x128b41['zsxuq']=_0x45ce38(0xed),_0x128b41[_0x45ce38(0xcc)]=_0x45ce38(0xba),_0x128b41['eoGLR']=_0x45ce38(0x13a),_0x128b41['JzxOe']='iam.serviceAccounts.signBlob',_0x128b41[_0x45ce38(0xa3)]=_0x45ce38(0xae),_0x128b41[_0x45ce38(0x19d)]=_0x45ce38(0x8d),_0x128b41[_0x45ce38(0x182)]=_0x45ce38(0x184),_0x128b41[_0x45ce38(0x126)]=_0x45ce38(0x19c),_0x128b41[_0x45ce38(0x159)]=_0x45ce38(0xc0),_0x128b41[_0x45ce38(0xf4)]=_0x45ce38(0x16f),_0x128b41['TKSDc']='storage.buckets.getObjectInsights',_0x128b41[_0x45ce38(0xbe)]=_0x45ce38(0xd5),_0x128b41[_0x45ce38(0x9b)]=_0x45ce38(0x158),_0x128b41['wImdF']=_0x45ce38(0xc2),_0x128b41[_0x45ce38(0x1b8)]='storage.buckets.setIamPolicy',_0x128b41[_0x45ce38(0xe9)]=_0x45ce38(0xc6),_0x128b41['STclc']='storage.multipartUploads.abort',_0x128b41['pfcEB']=_0x45ce38(0x107),_0x128b41[_0x45ce38(0x189)]='storage.multipartUploads.list',_0x128b41[_0x45ce38(0x11e)]=_0x45ce38(0x130),_0x128b41['pLdrm']=_0x45ce38(0x16a),_0x128b41[_0x45ce38(0xa7)]=_0x45ce38(0x1ad),_0x128b41[_0x45ce38(0xab)]=_0x45ce38(0xb8),_0x128b41['rmshV']=_0x45ce38(0x1a6),_0x128b41[_0x45ce38(0xdd)]=_0x45ce38(0xff),_0x128b41[_0x45ce38(0x146)]='storage.objects.setIamPolicy',_0x128b41[_0x45ce38(0xdf)]=_0x45ce38(0xf9),_0x128b41[_0x45ce38(0x173)]=_0x45ce38(0x128),_0x128b41[_0x45ce38(0x9d)]=_0x45ce38(0xdc);const _0x1917bd=_0x128b41,_0x1d55b2=await this[_0x45ce38(0x115)]();if(_0x1d55b2){if(_0x1917bd[_0x45ce38(0xcd)](_0x1917bd[_0x45ce38(0xbb)],_0x1917bd[_0x45ce38(0xa9)]))!this[_0x45ce38(0x14e)]()&&this[_0x45ce38(0x162)]();else{logger[_0x45ce38(0x1a1)](_0x1917bd[_0x45ce38(0x191)]);return;}}logger[_0x45ce38(0x1a1)](_0x1917bd[_0x45ce38(0xcc)]);const _0x2cde87={};_0x2cde87[_0x45ce38(0x137)]=[_0x1917bd[_0x45ce38(0x1ab)]],_0x2cde87['keyFile']=this[_0x45ce38(0x168)];const _0xa1ed21=await google['auth'][_0x45ce38(0x1b1)](_0x2cde87),_0x40fb7a={};_0x40fb7a[_0x45ce38(0x16d)]=[_0x1917bd[_0x45ce38(0x120)],_0x1917bd[_0x45ce38(0xa3)],_0x1917bd['uyIky'],_0x1917bd[_0x45ce38(0x182)],_0x1917bd[_0x45ce38(0x126)],_0x1917bd[_0x45ce38(0x159)],_0x1917bd['OaSjp'],_0x1917bd[_0x45ce38(0xfd)],_0x1917bd[_0x45ce38(0xbe)],_0x1917bd['RUjFw'],_0x1917bd[_0x45ce38(0xb5)],_0x1917bd[_0x45ce38(0x1b8)],_0x1917bd[_0x45ce38(0xe9)],_0x1917bd[_0x45ce38(0xd0)],_0x1917bd[_0x45ce38(0x10b)],_0x1917bd[_0x45ce38(0x189)],_0x1917bd[_0x45ce38(0x11e)],_0x1917bd[_0x45ce38(0x13b)],_0x1917bd[_0x45ce38(0xa7)],_0x1917bd['Pwuys'],_0x1917bd['rmshV'],_0x1917bd[_0x45ce38(0xdd)],_0x1917bd[_0x45ce38(0x146)],_0x1917bd[_0x45ce38(0xdf)]],_0x40fb7a[_0x45ce38(0x176)]=_0x1917bd[_0x45ce38(0x173)],await this[_0x45ce38(0xcb)]['organizations'][_0x45ce38(0x89)]['create']({'parent':_0x45ce38(0xf6)+this[_0x45ce38(0x121)],'requestBody':{'role':_0x40fb7a,'roleId':this[_0x45ce38(0x156)]},'auth':_0xa1ed21});const _0x11e81c={};_0x11e81c['name']=_0x45ce38(0xf6)+this['projectId'],_0x11e81c[_0x45ce38(0xfc)]={},_0x11e81c[_0x45ce38(0xaa)]=_0xa1ed21,_0x11e81c[_0x45ce38(0xfc)][_0x45ce38(0xe5)]=this[_0x45ce38(0x1ae)];const _0x5ee747=_0x11e81c;await this[_0x45ce38(0xcb)][_0x45ce38(0x154)][_0x45ce38(0x14c)][_0x45ce38(0x1b2)](_0x5ee747);let _0x2074fd=await this[_0x45ce38(0x138)][_0x45ce38(0x19b)]({'resource':_0x45ce38(0xf6)+this['projectId']});_0x2074fd=_0x2074fd[0x0]['bindings'];const _0x40e74f={};_0x40e74f[_0x45ce38(0x134)]=_0x45ce38(0xf6)+this['projectId']+_0x45ce38(0xf1)+this[_0x45ce38(0x156)],_0x40e74f['members']=[_0x45ce38(0x12c)+this[_0x45ce38(0x1ae)]+'@'+this[_0x45ce38(0x121)]+_0x45ce38(0x1b4)],_0x2074fd[_0x45ce38(0xe4)](_0x40e74f);const _0x27fbde={};_0x27fbde[_0x45ce38(0x8e)]=_0x2074fd,await this[_0x45ce38(0x138)][_0x45ce38(0x9f)]({'resource':'projects/'+this[_0x45ce38(0x121)],'policy':_0x27fbde}),logger['info'](_0x1917bd['mTsAy']);}async[a3_0xf2414(0x186)](_0x527e6d=a3_0xf2414(0x197),_0x2402f0=[a3_0xf2414(0x197)]){const _0x518d73=a3_0xf2414,_0x2b3677={};_0x2b3677['jIABb']=_0x518d73(0x12f),_0x2b3677[_0x518d73(0x113)]='Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x2b3677[_0x518d73(0x198)]=_0x518d73(0x164);const _0x961f5f=_0x2b3677,_0x494b3a=_0x961f5f[_0x518d73(0x17f)]['split']('|');let _0x1d8086=0x0;while(!![]){switch(_0x494b3a[_0x1d8086++]){case'0':await this[_0x518d73(0x104)]();continue;case'1':await this[_0x518d73(0x18f)](_0x527e6d,_0x2402f0);continue;case'2':return!![];case'3':const _0x5f5342={};_0x5f5342['type']=WS_EVENTS[_0x518d73(0x118)],_0x5f5342[_0x518d73(0x167)]=_0x961f5f[_0x518d73(0x113)],this[_0x518d73(0xac)]['sendEventToBackend'](this[_0x518d73(0x109)],_0x5f5342);continue;case'4':logger[_0x518d73(0x1a1)](_0x961f5f[_0x518d73(0x198)]);continue;case'5':this['sendGCPInfoToHST'](this['rws']);continue;}break;}}async[a3_0xf2414(0x18f)](_0x1c6918='default',_0x4cb71e=[a3_0xf2414(0x197)]){const _0x56a060=a3_0xf2414,_0x58da4c={};_0x58da4c[_0x56a060(0x141)]=_0x56a060(0x153),_0x58da4c[_0x56a060(0xec)]=function(_0x56ab8f,_0x5ce17e){return _0x56ab8f===_0x5ce17e;},_0x58da4c[_0x56a060(0xf8)]=_0x56a060(0x10a),_0x58da4c['DeZhX']=_0x56a060(0x165),_0x58da4c['KgVtx']='Creating\x20GKE\x20Cluster',_0x58da4c[_0x56a060(0xb9)]='templates',_0x58da4c['zsLEE']=_0x56a060(0x133),_0x58da4c['ZaYEo']='gkecluster.json',_0x58da4c[_0x56a060(0xbc)]='utf-8',_0x58da4c[_0x56a060(0x17c)]=_0x56a060(0x143),_0x58da4c[_0x56a060(0x174)]=function(_0x4ce87f,_0x3907d9){return _0x4ce87f*_0x3907d9;},_0x58da4c[_0x56a060(0xf0)]=function(_0x3e6802,_0x124e2d){return _0x3e6802*_0x124e2d;},_0x58da4c['QURbQ']=function(_0x212e21,_0x4def29){return _0x212e21===_0x4def29;},_0x58da4c['nAZtA']=_0x56a060(0xb1),_0x58da4c['ShoWc']=_0x56a060(0x131),_0x58da4c[_0x56a060(0x136)]=function(_0x395753,_0x3b97a3){return _0x395753===_0x3b97a3;},_0x58da4c[_0x56a060(0x17b)]='DnYQF',_0x58da4c[_0x56a060(0x160)]=_0x56a060(0x142),_0x58da4c[_0x56a060(0x124)]=function(_0x3fd9c4,_0x88333c){return _0x3fd9c4===_0x88333c;},_0x58da4c[_0x56a060(0x18c)]=_0x56a060(0x98),_0x58da4c['IUPez']=_0x56a060(0x157);const _0x12a31e=_0x58da4c;try{if(_0x12a31e[_0x56a060(0xec)](_0x12a31e[_0x56a060(0xf8)],_0x12a31e[_0x56a060(0x181)])){_0x439eaf[_0x56a060(0x1a1)](_0x12a31e['iwhgK']);throw _0x5f25f9;}else{logger[_0x56a060(0x1a1)](_0x12a31e[_0x56a060(0xb4)]);let _0x42980a=await fs['readFileAsync'](path[_0x56a060(0xa1)](__dirname,'..',_0x12a31e[_0x56a060(0xb9)],_0x12a31e['zsLEE'],_0x12a31e[_0x56a060(0xe3)]),_0x12a31e[_0x56a060(0xbc)]);_0x42980a=JSON[_0x56a060(0x183)](_0x42980a);let _0x45cae5=await fs[_0x56a060(0x127)](path[_0x56a060(0xa1)](__dirname,'..',_0x12a31e[_0x56a060(0xb9)],_0x12a31e[_0x56a060(0x18a)],_0x12a31e[_0x56a060(0x17c)]),_0x12a31e[_0x56a060(0xbc)]);_0x45cae5=JSON['parse'](_0x45cae5),_0x42980a[_0x56a060(0xa2)]=this[_0x56a060(0xde)],_0x42980a['nodePools'][0x0][_0x56a060(0x114)][_0x56a060(0x1a8)]=global_registry[_0x56a060(0xad)],_0x42980a[_0x56a060(0x15c)][0x0][_0x56a060(0x114)][_0x56a060(0xa4)]=this[_0x56a060(0x1ae)]+'@'+this[_0x56a060(0x121)]+'.iam.gserviceaccount.com',_0x42980a['nodePools'][0x0][_0x56a060(0x96)]['minNodeCount']=global_registry[_0x56a060(0xe0)],_0x42980a[_0x56a060(0x15c)][0x0][_0x56a060(0x96)][_0x56a060(0x129)]=global_registry[_0x56a060(0x190)],_0x42980a[_0x56a060(0x152)]=global_registry[_0x56a060(0x144)],_0x42980a[_0x56a060(0x151)]=[_0x45cae5[global_registry[_0x56a060(0x144)]][0x0]],_0x42980a[_0x56a060(0xbd)]='projects/'+this[_0x56a060(0x121)]+_0x56a060(0x14a)+_0x1c6918,_0x42980a['subnetwork']=_0x56a060(0xf6)+this[_0x56a060(0x121)]+'/regions/'+global_registry[_0x56a060(0x144)]+'/subnetworks/'+_0x4cb71e[0x0];const _0x538f39=await this[_0x56a060(0x1aa)]['createCluster']({'cluster':_0x42980a,'parent':_0x56a060(0xf6)+this[_0x56a060(0x121)]+_0x56a060(0x169)+global_registry['clusterRegion']});await this[_0x56a060(0xac)]['delay'](_0x12a31e[_0x56a060(0x174)](_0x12a31e['qprWF'](0x7,0x3c),0x3e8));}}catch(_0x4ec148){if(_0x12a31e[_0x56a060(0xf5)](_0x12a31e[_0x56a060(0x13e)],_0x12a31e[_0x56a060(0x175)]))_0x1509f8[_0x56a060(0x108)][_0x56a060(0xe4)](_0x41c44b);else{const _0x1d8c5f=await this['isClusterPresent']();if(_0x1d8c5f){if(_0x12a31e[_0x56a060(0x136)](_0x12a31e['wTKOQ'],_0x12a31e[_0x56a060(0x17b)]))logger[_0x56a060(0x1a1)](_0x12a31e['Bnuyw'],_0x4ec148[_0x56a060(0xd9)]),await this[_0x56a060(0x105)]();else return!![];}else{if(_0x12a31e[_0x56a060(0x124)](_0x12a31e[_0x56a060(0x18c)],_0x12a31e['ZWCwL']))logger[_0x56a060(0x1a1)](_0x12a31e[_0x56a060(0x95)]);else{const _0x2404ba=this[_0x56a060(0x168)],_0x210adf={};_0x210adf[_0x56a060(0x199)]=_0x2404ba,this[_0x56a060(0x1aa)]=new _0x40f2fd['v1'][(_0x56a060(0x180))](_0x210adf);const _0x40d4bf={};_0x40d4bf[_0x56a060(0x199)]=_0x2404ba,this['networkClient']=new _0x106276['v1'][(_0x56a060(0x1a9))](_0x40d4bf);const _0xa8cabb={};_0xa8cabb[_0x56a060(0x199)]=_0x2404ba,this[_0x56a060(0x138)]=new _0x7ae75(_0xa8cabb),this[_0x56a060(0xcb)]=_0x9c7c6b[_0x56a060(0x166)]('v1'),_0x3c679f['gcpConfigSet']=!![];}}throw _0x4ec148;}}}async[a3_0xf2414(0x105)](_0x3f5f0e,_0x381d3e){const _0x48a493=a3_0xf2414,_0xf9e574={'tEBPQ':_0x48a493(0x157),'hqpei':_0x48a493(0xed),'kvUnj':function(_0x2a49c5,_0x417a50){return _0x2a49c5!==_0x417a50;},'vRckz':_0x48a493(0x179),'LzejF':function(_0x10da3a,_0x563ebe){return _0x10da3a(_0x563ebe);},'dlMMw':function(_0x213beb,_0x1d9053){return _0x213beb===_0x1d9053;},'ybvLy':_0x48a493(0xe2),'EHGkZ':_0x48a493(0x196),'ppvBZ':function(_0x15104e,_0x2522f9){return _0x15104e!==_0x2522f9;},'JaYkh':_0x48a493(0x155),'SkgRH':_0x48a493(0x171),'TsFIA':function(_0x205c7a,_0x432827){return _0x205c7a===_0x432827;},'kzXOE':'WIIun','cnKWa':_0x48a493(0x153)};try{if(_0xf9e574[_0x48a493(0xef)](_0xf9e574['vRckz'],_0xf9e574[_0x48a493(0xca)]))_0x20017a['info'](_0xf9e574['tEBPQ']);else{await _0xf9e574[_0x48a493(0x1a2)](deleteRoutingDeps,_0x3f5f0e),logger[_0x48a493(0x1a1)]('Deleting\x20the\x20cluster\x20'+this[_0x48a493(0xde)]);const _0x281ddb=await this[_0x48a493(0x1aa)][_0x48a493(0x105)]({'name':_0x48a493(0xf6)+this[_0x48a493(0x121)]+_0x48a493(0x169)+global_registry[_0x48a493(0x144)]+_0x48a493(0xb7)+this[_0x48a493(0xde)]});if(_0xf9e574[_0x48a493(0x15a)](_0x281ddb[0x0]?.['status'],_0xf9e574[_0x48a493(0x177)])||_0xf9e574[_0x48a493(0x15a)](_0x281ddb[0x0]?.[_0x48a493(0x90)],_0xf9e574[_0x48a493(0x12d)])){if(_0xf9e574['ppvBZ'](_0xf9e574[_0x48a493(0xeb)],_0xf9e574[_0x48a493(0x10c)]))return!![];else{_0x224f81[_0x48a493(0x1a1)](_0xf9e574[_0x48a493(0x103)]);return;}}logger[_0x48a493(0x1a1)](_0x48a493(0x87));}}catch(_0x2a8ace){if(_0xf9e574[_0x48a493(0xa6)](_0xf9e574[_0x48a493(0x14f)],_0xf9e574[_0x48a493(0x14f)])){logger[_0x48a493(0x1a1)](_0xf9e574['cnKWa']);throw _0x2a8ace;}else return[!![],_0x3417f4];}}async['isVPCPresent'](_0x806215){const _0x38fcfd=a3_0xf2414,_0x2a4223={};_0x2a4223[_0x38fcfd(0xc3)]=function(_0x1261eb,_0x2f6a67){return _0x1261eb===_0x2f6a67;},_0x2a4223[_0x38fcfd(0x97)]=_0x38fcfd(0x19a),_0x2a4223[_0x38fcfd(0x15d)]=function(_0x54e601,_0x15c4c8){return _0x54e601===_0x15c4c8;},_0x2a4223[_0x38fcfd(0x8f)]='lECfW',_0x2a4223['CgOQY']=function(_0x435a86,_0x2bb2ff){return _0x435a86>_0x2bb2ff;},_0x2a4223['ttpER']=function(_0x38b09e,_0x17d17a){return _0x38b09e===_0x17d17a;},_0x2a4223[_0x38fcfd(0x101)]=function(_0x31d0d8,_0x40d854){return _0x31d0d8!==_0x40d854;},_0x2a4223['kzbtN']=_0x38fcfd(0x93),_0x2a4223[_0x38fcfd(0x112)]=_0x38fcfd(0x13d),_0x2a4223[_0x38fcfd(0x16c)]=_0x38fcfd(0x1a5),_0x2a4223['RVqUm']=_0x38fcfd(0xaf);const _0x297c7f=_0x2a4223;try{if(_0x297c7f['gJWPd'](_0x297c7f[_0x38fcfd(0x8f)],_0x297c7f[_0x38fcfd(0x8f)])){const _0x509f06={};_0x509f06[_0x38fcfd(0x11c)]=projectId,_0x509f06[_0x38fcfd(0xbd)]=_0x806215;const _0x14add9=await networkClient['get'](_0x509f06);if(_0x297c7f[_0x38fcfd(0x18b)](_0x14add9[_0x38fcfd(0x9e)],0x0)&&_0x297c7f[_0x38fcfd(0x122)](_0x14add9[0x0]['name'],_0x806215))return _0x297c7f['XqstT'](_0x297c7f[_0x38fcfd(0x16b)],_0x297c7f[_0x38fcfd(0x112)])?!![]:![];}else{const _0x35e8e9=_0x380073[0x0]?.[_0x38fcfd(0x12a)]?.[_0x38fcfd(0x111)];return _0x35e8e9&&_0x297c7f[_0x38fcfd(0xc3)](_0x35e8e9[_0x38fcfd(0x1a0)](),_0x297c7f['egIrV']);}}catch(_0x33f81f){return _0x297c7f[_0x38fcfd(0x101)](_0x297c7f['socaA'],_0x297c7f[_0x38fcfd(0xd1)])?![]:!![];}return![];}async['isSubnetsValid'](_0x521d68,_0x330ea6){const _0x18a64e=a3_0xf2414,_0x1e3735={};_0x1e3735[_0x18a64e(0x99)]=function(_0x35888c,_0x340ca4){return _0x35888c===_0x340ca4;},_0x1e3735[_0x18a64e(0x148)]=function(_0x42dac0,_0x3e9983){return _0x42dac0===_0x3e9983;},_0x1e3735[_0x18a64e(0xbf)]=_0x18a64e(0xf3),_0x1e3735[_0x18a64e(0xd4)]=function(_0xc871f,_0xea7478){return _0xc871f===_0xea7478;},_0x1e3735[_0x18a64e(0x18e)]=_0x18a64e(0x13c),_0x1e3735[_0x18a64e(0xcf)]=_0x18a64e(0xf7);const _0x2a0ec2=_0x1e3735;try{const _0x1dbfdd={};_0x1dbfdd[_0x18a64e(0x11c)]=projectId,_0x1dbfdd['network']=_0x330ea6;const _0x49d266=await networkClient[_0x18a64e(0xc1)](_0x1dbfdd);for(const _0x342766 of _0x49d266[0x0]['subnetworks']){if(_0x2a0ec2[_0x18a64e(0x148)](_0x2a0ec2[_0x18a64e(0xbf)],_0x2a0ec2['agriz'])){const _0x573923=_0x18a64e(0xe1)+this[_0x18a64e(0x121)]+_0x18a64e(0x1b3)+global_registry['clusterRegion']+_0x18a64e(0xfb)+_0x521d68[0x0];if(_0x2a0ec2[_0x18a64e(0xd4)](_0x573923,_0x342766)){if(_0x2a0ec2['YCCOQ'](_0x2a0ec2[_0x18a64e(0x18e)],_0x2a0ec2[_0x18a64e(0xcf)]))this[_0x18a64e(0x162)]();else return[!![],_0x521d68];}}else{if(_0x2a0ec2[_0x18a64e(0x99)](_0x4065bc?.['name'],_0x18a64e(0xf6)+this['projectId']+_0x18a64e(0x13f)+this[_0x18a64e(0x1ae)]+'@'+this[_0x18a64e(0x121)]+_0x18a64e(0x1b4)))return!![];}}}catch(_0x54e80e){return logger[_0x18a64e(0xb6)]('Cannot\x20find\x20subnets\x20'+_0x521d68+_0x18a64e(0x193)+_0x54e80e),[![],[]];}return[![],[]];}async[a3_0xf2414(0x19e)](){const _0x2bc26e=a3_0xf2414,_0x3430d8=await this[_0x2bc26e(0x88)][_0x2bc26e(0x19f)]({'project':this[_0x2bc26e(0x121)]}),_0xeb9a98={};_0xeb9a98[_0x2bc26e(0x139)]=global_registry['bstackUsername'],_0xeb9a98[_0x2bc26e(0x14d)]=global_registry[_0x2bc26e(0xd2)],_0xeb9a98[_0x2bc26e(0x102)]=GCP,_0xeb9a98[_0x2bc26e(0x108)]=[];const _0x2c92ea=_0xeb9a98;for(const _0x1288c1 of _0x3430d8){_0x2c92ea[_0x2bc26e(0x108)][_0x2bc26e(0xe4)](_0x1288c1);}const _0x129b0d={};_0x129b0d['type']=WS_EVENTS['RESOURCES'],_0x129b0d[_0x2bc26e(0x167)]=_0x2c92ea,this[_0x2bc26e(0xac)][_0x2bc26e(0x8c)](this['rws'],_0x129b0d);}}const a3_0x5e3909={};a3_0x5e3909['GoogleCloudProvider']=GoogleCloudProvider,module['exports']=a3_0x5e3909;
@@ -1 +1 @@
1
- function a4_0xedcd(_0x3c595a,_0x409196){const _0x3a7592=a4_0x3a75();return a4_0xedcd=function(_0xedcd5c,_0x54d3d1){_0xedcd5c=_0xedcd5c-0x77;let _0x1c81e3=_0x3a7592[_0xedcd5c];return _0x1c81e3;},a4_0xedcd(_0x3c595a,_0x409196);}const a4_0x9ca01=a4_0xedcd;(function(_0x1d9e8e,_0x41c4b3){const _0x5bfb00=a4_0xedcd,_0x3f0e4a=_0x1d9e8e();while(!![]){try{const _0x4e9ac7=-parseInt(_0x5bfb00(0x82))/0x1+-parseInt(_0x5bfb00(0x83))/0x2*(-parseInt(_0x5bfb00(0x8b))/0x3)+parseInt(_0x5bfb00(0x8a))/0x4*(parseInt(_0x5bfb00(0x8d))/0x5)+-parseInt(_0x5bfb00(0x7f))/0x6+parseInt(_0x5bfb00(0x8e))/0x7*(-parseInt(_0x5bfb00(0x88))/0x8)+parseInt(_0x5bfb00(0x86))/0x9*(parseInt(_0x5bfb00(0x84))/0xa)+parseInt(_0x5bfb00(0x85))/0xb;if(_0x4e9ac7===_0x41c4b3)break;else _0x3f0e4a['push'](_0x3f0e4a['shift']());}catch(_0x44f1ca){_0x3f0e4a['push'](_0x3f0e4a['shift']());}}}(a4_0x3a75,0x59f1a));const fs=require('fs'),path=require(a4_0x9ca01(0x7e)),os=require('os'),yaml=require('js-yaml'),container=require(a4_0x9ca01(0x89)),k8s=require(a4_0x9ca01(0x78)),compute=require(a4_0x9ca01(0x81)),{google}=require('googleapis'),{PoliciesClient}=require(a4_0x9ca01(0x7c))['v2'],{iam}=require(a4_0x9ca01(0x7c));async function main(){const _0x43c7fa=a4_0x9ca01,_0x4acf4f={};_0x4acf4f['lIALw']='/Users/user/Downloads/bstack-turboscale-staging-1a66b19ac9fd.json',_0x4acf4f[_0x43c7fa(0x79)]=_0x43c7fa(0x8f),_0x4acf4f[_0x43c7fa(0x7d)]=_0x43c7fa(0x7b);const _0x4d73e7=_0x4acf4f;try{let _0x34f2c6=_0x4d73e7[_0x43c7fa(0x87)];const _0x42e21f=_0x4d73e7[_0x43c7fa(0x79)],_0x14bbbb={};_0x14bbbb['keyFile']=_0x34f2c6;const _0x430812=new compute['v1'][(_0x43c7fa(0x80))](_0x14bbbb),_0x23ba7b={};_0x23ba7b['project']=_0x42e21f,_0x23ba7b[_0x43c7fa(0x7a)]=_0x4d73e7[_0x43c7fa(0x7d)];const _0x34dfca=await _0x430812[_0x43c7fa(0x77)](_0x23ba7b);console[_0x43c7fa(0x8c)](_0x34dfca);}catch(_0x5eaead){console['log'](_0x5eaead);}}main();function a4_0x3a75(){const _0x344d35=['8HMrbTh','@google-cloud/container','5492RGnRmK','9684xBrvgD','log','995euuoHX','3543141Besicb','bstack-turboscale-staging','get','@kubernetes/client-node','nXkZZ','network','test-vpc-1','@google-cloud/iam','iqUhk','path','4003860rVuqOv','NetworksClient','@google-cloud/compute','61625DQAxhE','2YMPfeu','880CDoWvX','7416959ZgvqrB','66762TySoEv','lIALw'];a4_0x3a75=function(){return _0x344d35;};return a4_0x3a75();}
1
+ const a4_0x32b6a4=a4_0x2112;function a4_0x4100(){const _0x5eb18a=['get','@kubernetes/client-node','18676jFAymW','CkDvC','1844664JlbrMB','js-yaml','39048LfEWEO','@google-cloud/iam','259uOlnNO','@google-cloud/container','1308355qhUMaM','test-vpc-1','network','22HhLnka','30tHfVvH','/Users/user/Downloads/bstack-turboscale-staging-1a66b19ac9fd.json','832959tGTgFF','4570908JYQbBY','TNSXi','project','CpiXh','8jHeAms','NetworksClient','947145qcLAPw','1ricqeb','googleapis','@google-cloud/compute','log'];a4_0x4100=function(){return _0x5eb18a;};return a4_0x4100();}function a4_0x2112(_0x568566,_0x66d9f3){const _0x410043=a4_0x4100();return a4_0x2112=function(_0x2112f7,_0x5da09d){_0x2112f7=_0x2112f7-0x117;let _0x2d7723=_0x410043[_0x2112f7];return _0x2d7723;},a4_0x2112(_0x568566,_0x66d9f3);}(function(_0x4a183e,_0x104f23){const _0x56c27e=a4_0x2112,_0x5025be=_0x4a183e();while(!![]){try{const _0x319b70=parseInt(_0x56c27e(0x126))/0x1*(-parseInt(_0x56c27e(0x12c))/0x2)+-parseInt(_0x56c27e(0x125))/0x3+-parseInt(_0x56c27e(0x123))/0x4*(parseInt(_0x56c27e(0x118))/0x5)+parseInt(_0x56c27e(0x12e))/0x6+parseInt(_0x56c27e(0x132))/0x7*(-parseInt(_0x56c27e(0x130))/0x8)+-parseInt(_0x56c27e(0x11e))/0x9*(-parseInt(_0x56c27e(0x11c))/0xa)+-parseInt(_0x56c27e(0x11b))/0xb*(-parseInt(_0x56c27e(0x11f))/0xc);if(_0x319b70===_0x104f23)break;else _0x5025be['push'](_0x5025be['shift']());}catch(_0x55bba7){_0x5025be['push'](_0x5025be['shift']());}}}(a4_0x4100,0x4d9e3));const fs=require('fs'),path=require('path'),os=require('os'),yaml=require(a4_0x32b6a4(0x12f)),container=require(a4_0x32b6a4(0x117)),k8s=require(a4_0x32b6a4(0x12b)),compute=require(a4_0x32b6a4(0x128)),{google}=require(a4_0x32b6a4(0x127)),{PoliciesClient}=require(a4_0x32b6a4(0x131))['v2'],{iam}=require(a4_0x32b6a4(0x131));async function main(){const _0x337048=a4_0x32b6a4,_0x1b2512={};_0x1b2512['TNSXi']=_0x337048(0x11d),_0x1b2512[_0x337048(0x122)]='bstack-turboscale-staging',_0x1b2512[_0x337048(0x12d)]=_0x337048(0x119);const _0x2746ff=_0x1b2512;try{let _0x2b8933=_0x2746ff[_0x337048(0x120)];const _0x5c2fb8=_0x2746ff[_0x337048(0x122)],_0x2c86c6={};_0x2c86c6['keyFile']=_0x2b8933;const _0xa8fbd0=new compute['v1'][(_0x337048(0x124))](_0x2c86c6),_0x17630a={};_0x17630a[_0x337048(0x121)]=_0x5c2fb8,_0x17630a[_0x337048(0x11a)]=_0x2746ff[_0x337048(0x12d)];const _0x1dcb4f=await _0xa8fbd0[_0x337048(0x12a)](_0x17630a);console[_0x337048(0x129)](_0x1dcb4f);}catch(_0x146909){console[_0x337048(0x129)](_0x146909);}}main();
@@ -1 +1 @@
1
- function a5_0x2545(){const _0x34aeac=['650592vdkAOa','54845OsEgDP','636YnRHyf','error','6400584MrMOBg','../config/constants','18900QqyAZS','8204aHlAxJ','./Azure','13048344Njjhek','Unknown\x20cloud\x20provider\x20found\x20-\x20','./AWS','1969545DFSTmy','exit','1030zMDBti'];a5_0x2545=function(){return _0x34aeac;};return a5_0x2545();}function a5_0x27c7(_0x3727c0,_0x2a4a32){const _0x25458c=a5_0x2545();return a5_0x27c7=function(_0x27c72c,_0x10e062){_0x27c72c=_0x27c72c-0x101;let _0x1e7a4e=_0x25458c[_0x27c72c];return _0x1e7a4e;},a5_0x27c7(_0x3727c0,_0x2a4a32);}const a5_0x17d5ef=a5_0x27c7;(function(_0x1b9b08,_0x3ab40e){const _0x5efa7a=a5_0x27c7,_0x2e3eb5=_0x1b9b08();while(!![]){try{const _0x303d9f=parseInt(_0x5efa7a(0x106))/0x1+-parseInt(_0x5efa7a(0x10f))/0x2+parseInt(_0x5efa7a(0x10c))/0x3+parseInt(_0x5efa7a(0x107))/0x4*(parseInt(_0x5efa7a(0x10e))/0x5)+-parseInt(_0x5efa7a(0x102))/0x6*(parseInt(_0x5efa7a(0x101))/0x7)+-parseInt(_0x5efa7a(0x104))/0x8+parseInt(_0x5efa7a(0x109))/0x9;if(_0x303d9f===_0x3ab40e)break;else _0x2e3eb5['push'](_0x2e3eb5['shift']());}catch(_0x43a2cd){_0x2e3eb5['push'](_0x2e3eb5['shift']());}}}(a5_0x2545,0x907f2));const {AWSCloudProvider}=require(a5_0x17d5ef(0x10b)),{AzureCloudProvider}=require(a5_0x17d5ef(0x108)),{GoogleCloudProvider}=require('./GoogleCloudProvider'),{AWS,AZURE,GCP}=require(a5_0x17d5ef(0x105));exports['getCloudProviderObject']=(_0x4e2564,_0x298563,_0x34143a,_0x58eca7,_0x3c54f9)=>{const _0x5d7df5=a5_0x17d5ef;switch(_0x4e2564){case AWS:return new AWSCloudProvider(_0x298563,_0x34143a,_0x58eca7,_0x3c54f9);case GCP:return new GoogleCloudProvider(_0x298563,_0x34143a,_0x58eca7,_0x3c54f9);default:console[_0x5d7df5(0x103)](_0x5d7df5(0x10a)+_0x4e2564),process[_0x5d7df5(0x10d)](0x1);}};
1
+ function a5_0x7222(_0x2b4ecb,_0x4f9cf7){const _0x30e95e=a5_0x30e9();return a5_0x7222=function(_0x722291,_0x32bbd0){_0x722291=_0x722291-0xed;let _0x24965f=_0x30e95e[_0x722291];return _0x24965f;},a5_0x7222(_0x2b4ecb,_0x4f9cf7);}const a5_0xd7eba1=a5_0x7222;(function(_0x359ad7,_0x2519ee){const _0x34012e=a5_0x7222,_0xe0b31d=_0x359ad7();while(!![]){try{const _0x232807=parseInt(_0x34012e(0xed))/0x1+parseInt(_0x34012e(0xf7))/0x2+-parseInt(_0x34012e(0xf4))/0x3+parseInt(_0x34012e(0xf5))/0x4*(parseInt(_0x34012e(0xee))/0x5)+parseInt(_0x34012e(0xf2))/0x6*(parseInt(_0x34012e(0xf0))/0x7)+-parseInt(_0x34012e(0xfc))/0x8*(-parseInt(_0x34012e(0xfb))/0x9)+-parseInt(_0x34012e(0xf3))/0xa*(parseInt(_0x34012e(0xf6))/0xb);if(_0x232807===_0x2519ee)break;else _0xe0b31d['push'](_0xe0b31d['shift']());}catch(_0x481930){_0xe0b31d['push'](_0xe0b31d['shift']());}}}(a5_0x30e9,0xc54cb));function a5_0x30e9(){const _0x19476a=['76312htLCVy','777523rPRrLd','10hYsipa','getCloudProviderObject','21LnqLHC','./Azure','219678eMesqZ','182330wivsaW','2568864rLbvLx','1597624XbuMmc','935MnFpuN','308884JxVNEz','./GoogleCloudProvider','error','Unknown\x20cloud\x20provider\x20found\x20-\x20','1296YOvVGP'];a5_0x30e9=function(){return _0x19476a;};return a5_0x30e9();}const {AWSCloudProvider}=require('./AWS'),{AzureCloudProvider}=require(a5_0xd7eba1(0xf1)),{GoogleCloudProvider}=require(a5_0xd7eba1(0xf8)),{AWS,AZURE,GCP}=require('../config/constants');exports[a5_0xd7eba1(0xef)]=(_0x3fa3ce,_0x516dd4,_0x4328e5,_0xd01b6,_0xcb82cc)=>{const _0xa6ab8e=a5_0xd7eba1;switch(_0x3fa3ce){case AWS:return new AWSCloudProvider(_0x516dd4,_0x4328e5,_0xd01b6,_0xcb82cc);case GCP:return new GoogleCloudProvider(_0x516dd4,_0x4328e5,_0xd01b6,_0xcb82cc);default:console[_0xa6ab8e(0xf9)](_0xa6ab8e(0xfa)+_0x3fa3ce),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a6_0x2f9431=a6_0x19d6;(function(_0x498bd8,_0x22effd){const _0x1e4881=a6_0x19d6,_0x469cd9=_0x498bd8();while(!![]){try{const _0x900b2f=parseInt(_0x1e4881(0x1ad))/0x1*(-parseInt(_0x1e4881(0x193))/0x2)+parseInt(_0x1e4881(0x1d3))/0x3*(parseInt(_0x1e4881(0x195))/0x4)+parseInt(_0x1e4881(0x19f))/0x5+parseInt(_0x1e4881(0x196))/0x6*(-parseInt(_0x1e4881(0x1c6))/0x7)+parseInt(_0x1e4881(0x1b8))/0x8*(parseInt(_0x1e4881(0x1cd))/0x9)+parseInt(_0x1e4881(0x1a3))/0xa+-parseInt(_0x1e4881(0x1d2))/0xb;if(_0x900b2f===_0x22effd)break;else _0x469cd9['push'](_0x469cd9['shift']());}catch(_0x5ba6af){_0x469cd9['push'](_0x469cd9['shift']());}}}(a6_0x3f90,0x8c725));function a6_0x3f90(){const _0x59ce16=['Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ZUDMC','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','jxMmA','2AHOtVw','stack','12FjHspj','132jLNgVY','dEzGs','bLeYF','core:','url','password','xjAlL','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','uuid','5042740pfTfki','hRhsH','vlxrO','iIutx','7789900jrXTPc','wAWOW','list','active','../config/constants','help','length','invalid-input','server-error','command','1082327TxDYjV','promisify','Failed\x20to\x20configure\x20resources!\x20Error:\x20','usage','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','TpDuV','mPJEe','../utils/utilityMethods','gjhVM','error','/packages/cli/configure','53240VoooYo','NuUHE','argv','AfKVf','../utils/instrumentationUtils','rKnvV','YGwwk','CDwuC','FFeRx','HsWMD','acdEn','username','FCMpq','toLowerCase','239764RSfJNS','jPRPg','MwRoC','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','configure-called','tcgtR','495jsQCgF','vPhtC','util','ljmkC','BdTUA','5949636UMxcVF','798453rzdbKt','UpbqV','VlKjs','log','jwjXl','nxWlZ','recommendCommands','name','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','exit','body','INFO','yFbsZ','stringify','invalid-selection','handler','profileId','json','Browserstack','unknown-error','vRloX','parse','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','init-not-called','Updated\x20default\x20Grid\x20Profile\x20successfully','method','auth','rDIlb','RRqyf','desc','strict','DwTwB','existsSync','ERROR','IpBgU','statusCode'];a6_0x3f90=function(){return _0x59ce16;};return a6_0x3f90();}const fs=require('fs'),util=require(a6_0x2f9431(0x1cf)),request=require('request'),{v4:uuidv4}=require(a6_0x2f9431(0x19e)),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a6_0x2f9431(0x1a7)),{getCredentialsPath}=require(a6_0x2f9431(0x1b4)),{sendInstrumentationEvent}=require(a6_0x2f9431(0x1bc)),promisifiedRequest=util[a6_0x2f9431(0x1ae)](request);function a6_0x19d6(_0x4e8516,_0x60cddb){const _0x3f9035=a6_0x3f90();return a6_0x19d6=function(_0x19d6f2,_0xa6f3e5){_0x19d6f2=_0x19d6f2-0x17e;let _0x33190c=_0x3f9035[_0x19d6f2];return _0x33190c;},a6_0x19d6(_0x4e8516,_0x60cddb);}exports[a6_0x2f9431(0x1ac)]='configure',exports[a6_0x2f9431(0x188)]='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports['builder']=function(_0x481d4b){const _0x4f3eeb=a6_0x2f9431,_0x221103={};_0x221103[_0x4f3eeb(0x1b5)]=_0x4f3eeb(0x1a8);const _0x3c591f=_0x221103;return _0x481d4b[_0x4f3eeb(0x1b0)](HELP_HEADER_MESSAGE['configure'])['epilogue'](HELP_FOOTER_MESSAGE)['help'](_0x3c591f['gjhVM'])[_0x4f3eeb(0x1d9)]()[_0x4f3eeb(0x189)]()[_0x4f3eeb(0x1ba)];},exports[a6_0x2f9431(0x1e2)]=async function(_0x16b29d){const _0x536048=a6_0x2f9431,_0x344efa={'HsWMD':function(_0x432bbe){return _0x432bbe();},'wAWOW':function(_0x17c5af){return _0x17c5af();},'vPhtC':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','hRhsH':function(_0x380ae0,_0xa2b03c,_0x4e0439,_0x22eb59,_0x4858d1,_0x505724,_0x33b8ba){return _0x380ae0(_0xa2b03c,_0x4e0439,_0x22eb59,_0x4858d1,_0x505724,_0x33b8ba);},'jxMmA':_0x536048(0x1cb),'rKnvV':_0x536048(0x182),'AfKVf':function(_0x59aaaf,_0x1f48f0,_0x3c849d,_0xfa98ae,_0x549278,_0x4b0232,_0x18d5ec){return _0x59aaaf(_0x1f48f0,_0x3c849d,_0xfa98ae,_0x549278,_0x4b0232,_0x18d5ec);},'jPRPg':'GET','bLeYF':function(_0x46f9f8,_0x2c78de){return _0x46f9f8(_0x2c78de);},'tcgtR':function(_0x5ae7de,_0x44acd0){return _0x5ae7de!==_0x44acd0;},'dEzGs':function(_0x2940ef,_0x2d75d5){return _0x2940ef===_0x2d75d5;},'BdTUA':_0x536048(0x1c9),'ljmkC':_0x536048(0x199),'CDwuC':_0x536048(0x181),'iIutx':function(_0x2d21af,_0x32a2c0){return _0x2d21af===_0x32a2c0;},'nxWlZ':function(_0x49a547,_0x18e0cc){return _0x49a547===_0x18e0cc;},'FCMpq':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','MwRoC':function(_0x1e027f,_0x3ddb7b,_0x5c3ca4,_0xb8b7fd,_0x3c8e49,_0x3208e3,_0x402d4e){return _0x1e027f(_0x3ddb7b,_0x5c3ca4,_0xb8b7fd,_0x3c8e49,_0x3208e3,_0x402d4e);},'iAtFF':_0x536048(0x1aa),'xjAlL':_0x536048(0x1b1),'HGktg':function(_0xbc9a66,_0x14fa06){return _0xbc9a66<_0x14fa06;},'mPJEe':function(_0x312737,_0x2d1049){return _0x312737+_0x2d1049;},'rDIlb':_0x536048(0x1ca),'VlKjs':function(_0x499d36,_0x4325e3){return _0x499d36<=_0x4325e3;},'yFbsZ':function(_0x1f9665,_0x379af1){return _0x1f9665>_0x379af1;},'ZUDMC':function(_0x477b75,_0x3c1156,_0x3074db,_0x35434a,_0x349833,_0x50e573,_0x4ffc5d){return _0x477b75(_0x3c1156,_0x3074db,_0x35434a,_0x349833,_0x50e573,_0x4ffc5d);},'jwjXl':_0x536048(0x1e1),'UpbqV':function(_0xf93ac8,_0x505aa0){return _0xf93ac8-_0x505aa0;},'TpDuV':'PUT','RRqyf':function(_0x38a73b,_0x4f4e8b){return _0x38a73b(_0x4f4e8b);},'vRloX':function(_0x127832,_0xcaac66){return _0x127832!==_0xcaac66;},'FFeRx':function(_0x4ef200,_0x53a307){return _0x4ef200!==_0x53a307;},'YGwwk':_0x536048(0x183),'vlxrO':'unauthorised','IpBgU':_0x536048(0x1ab),'NuUHE':function(_0x15bbe7,_0x11473d,_0x599661,_0x2a6645,_0x45055e,_0x2bf342,_0x46f1a2){return _0x15bbe7(_0x11473d,_0x599661,_0x2a6645,_0x45055e,_0x2bf342,_0x46f1a2);},'DwTwB':function(_0x3ce801,_0x44bd44,_0x53f0ac,_0x5a5899,_0x1aadbc,_0x4c0183,_0x419ffd){return _0x3ce801(_0x44bd44,_0x53f0ac,_0x5a5899,_0x1aadbc,_0x4c0183,_0x419ffd);},'acdEn':_0x536048(0x17e)};try{global_registry['requestId']=_0x344efa[_0x536048(0x1c1)](uuidv4);const _0x11af63='https://'+AG_API_URL+_0x536048(0x1b7);!fs[_0x536048(0x18b)](_0x344efa[_0x536048(0x1a4)](getCredentialsPath))&&(console[_0x536048(0x1b6)](_0x344efa[_0x536048(0x1ce)]),await _0x344efa[_0x536048(0x1a0)](sendInstrumentationEvent,_0x16b29d,_0x344efa['jxMmA'],messageTypes['ERROR'],_0x344efa[_0x536048(0x1bd)],null,_0x16b29d),process[_0x536048(0x1dc)](0x1));await _0x344efa[_0x536048(0x1bb)](sendInstrumentationEvent,_0x16b29d,_0x344efa[_0x536048(0x192)],messageTypes[_0x536048(0x1de)],null,null,_0x16b29d);const _0x59e38c=JSON[_0x536048(0x180)](fs['readFileSync'](_0x344efa[_0x536048(0x1a4)](getCredentialsPath))),_0x5b9fc1={};_0x5b9fc1[_0x536048(0x1c3)]=_0x59e38c['Browserstack'][_0x536048(0x1c3)],_0x5b9fc1[_0x536048(0x19b)]=_0x59e38c[_0x536048(0x1e5)][_0x536048(0x19b)];const _0x332689={};_0x332689[_0x536048(0x19a)]=_0x11af63,_0x332689[_0x536048(0x184)]=_0x344efa[_0x536048(0x1c7)],_0x332689[_0x536048(0x185)]=_0x5b9fc1;const _0xc88964=_0x332689,_0xca291f=await _0x344efa['bLeYF'](promisifiedRequest,_0xc88964);if(_0x344efa[_0x536048(0x1cc)](_0xca291f,null)&&_0x344efa[_0x536048(0x1cc)](_0xca291f,undefined)&&_0x344efa[_0x536048(0x197)](_0xca291f['statusCode'],0xc8)){const _0x229e30=JSON[_0x536048(0x180)](_0xca291f[_0x536048(0x1dd)]);console[_0x536048(0x1d6)](_0x344efa[_0x536048(0x1d1)]),console[_0x536048(0x1d6)](_0x344efa[_0x536048(0x1d0)]),console[_0x536048(0x1d6)]('\x20\x20username:\x20'+_0x59e38c[_0x536048(0x1e5)][_0x536048(0x1c3)]),console[_0x536048(0x1d6)]('\x20\x20grid-profile:\x20'+_0x229e30[_0x536048(0x1a6)][_0x536048(0x1da)]);const _0x3777d1=await _0x344efa[_0x536048(0x198)](inputConfirmation,_0x344efa[_0x536048(0x1bf)]);(_0x344efa[_0x536048(0x1a2)](_0x3777d1,undefined)||_0x344efa['iIutx'](_0x3777d1,null)||!(_0x344efa[_0x536048(0x197)](_0x3777d1[_0x536048(0x1c5)](),'y')||_0x344efa[_0x536048(0x1d8)](_0x3777d1[_0x536048(0x1c5)](),'n')))&&(console[_0x536048(0x1b6)](_0x344efa[_0x536048(0x1c4)]),await _0x344efa[_0x536048(0x1c8)](sendInstrumentationEvent,_0x16b29d,_0x344efa[_0x536048(0x192)],messageTypes[_0x536048(0x18c)],_0x344efa['iAtFF'],null,_0x16b29d),process[_0x536048(0x1dc)](0x1));_0x344efa[_0x536048(0x1d8)](_0x3777d1[_0x536048(0x1c5)](),'n')&&process[_0x536048(0x1dc)](0x0);console[_0x536048(0x1d6)](_0x344efa[_0x536048(0x19c)]);const _0x3572be=_0x229e30[_0x536048(0x1a5)][_0x536048(0x1a9)];for(let _0x5cbaaf=0x0;_0x344efa['HGktg'](_0x5cbaaf,_0x3572be);_0x5cbaaf+=0x1){console[_0x536048(0x1d6)]('['+_0x344efa[_0x536048(0x1b3)](_0x5cbaaf,0x1)+']\x20'+_0x229e30[_0x536048(0x1a5)][_0x5cbaaf][_0x536048(0x1da)]);}const _0x66ffea=await _0x344efa['bLeYF'](inputConfirmation,_0x344efa[_0x536048(0x186)]),_0x14a2fc=_0x344efa[_0x536048(0x198)](Number,_0x66ffea);(_0x344efa[_0x536048(0x198)](isNaN,_0x14a2fc)||_0x344efa[_0x536048(0x1d5)](_0x14a2fc,0x0)||_0x344efa[_0x536048(0x1df)](_0x14a2fc,_0x3572be))&&(console[_0x536048(0x1b6)](_0x344efa[_0x536048(0x1c4)]),await _0x344efa[_0x536048(0x190)](sendInstrumentationEvent,_0x16b29d,_0x344efa[_0x536048(0x192)],messageTypes[_0x536048(0x18c)],_0x344efa[_0x536048(0x1d7)],null,_0x16b29d),process[_0x536048(0x1dc)](0x1));_0x344efa['wAWOW'](closeInput);const _0x11fbfe=_0x229e30[_0x536048(0x1a5)][_0x344efa[_0x536048(0x1d4)](_0x14a2fc,0x1)]['id'],_0x32c3af={};_0x32c3af[_0x536048(0x1c3)]=_0x59e38c[_0x536048(0x1e5)]['username'],_0x32c3af[_0x536048(0x19b)]=_0x59e38c[_0x536048(0x1e5)][_0x536048(0x19b)];const _0x188721={};_0x188721[_0x536048(0x1e3)]=_0x11fbfe;const _0x4d298a={};_0x4d298a['url']=_0x11af63,_0x4d298a[_0x536048(0x184)]=_0x344efa[_0x536048(0x1b2)],_0x4d298a['auth']=_0x32c3af,_0x4d298a[_0x536048(0x1dd)]=_0x188721,_0x4d298a[_0x536048(0x1e4)]=!![];const _0xf675c4=_0x4d298a,_0x16c595=await _0x344efa[_0x536048(0x187)](promisifiedRequest,_0xf675c4);_0x344efa[_0x536048(0x17f)](_0x16c595,null)&&_0x344efa[_0x536048(0x1c0)](_0x16c595,undefined)&&_0x344efa['iIutx'](_0x16c595[_0x536048(0x18e)],0xc8)&&(console[_0x536048(0x1d6)](_0x344efa[_0x536048(0x1be)]),process[_0x536048(0x1dc)](0x0)),_0x344efa['nxWlZ'](_0x16c595[_0x536048(0x18e)],0x191)&&(console[_0x536048(0x1b6)](_0x536048(0x19d)),await _0x344efa[_0x536048(0x1bb)](sendInstrumentationEvent,_0x16b29d,_0x344efa[_0x536048(0x192)],messageTypes['ERROR'],_0x344efa[_0x536048(0x1a1)],null,_0x16b29d),process[_0x536048(0x1dc)](0x1)),console[_0x536048(0x1b6)](_0x536048(0x1db)+JSON[_0x536048(0x1e0)](_0x16c595)),await _0x344efa['hRhsH'](sendInstrumentationEvent,_0x16b29d,_0x344efa[_0x536048(0x192)],messageTypes[_0x536048(0x18c)],_0x344efa[_0x536048(0x18d)],_0x16c595,_0x16b29d),process[_0x536048(0x1dc)](0x1);}_0x344efa[_0x536048(0x1d8)](_0xca291f['statusCode'],0x191)&&(console[_0x536048(0x1b6)](_0x536048(0x18f)),await _0x344efa[_0x536048(0x1b9)](sendInstrumentationEvent,_0x16b29d,_0x344efa[_0x536048(0x192)],messageTypes[_0x536048(0x18c)],_0x344efa['vlxrO'],null,_0x16b29d),process['exit'](0x1)),console['error'](_0x536048(0x191)+JSON['stringify'](_0xca291f)),await _0x344efa[_0x536048(0x18a)](sendInstrumentationEvent,_0x16b29d,_0x344efa[_0x536048(0x192)],messageTypes[_0x536048(0x18c)],_0x344efa[_0x536048(0x18d)],_0xca291f,_0x16b29d),process[_0x536048(0x1dc)](0x1);}catch(_0x25c6d3){console['error'](_0x536048(0x1af)+_0x25c6d3[_0x536048(0x194)]),await _0x344efa[_0x536048(0x1a0)](sendInstrumentationEvent,_0x16b29d,_0x344efa[_0x536048(0x192)],messageTypes[_0x536048(0x18c)],_0x344efa[_0x536048(0x1c2)],_0x25c6d3,_0x16b29d),process['exit'](0x1);}};
1
+ const a6_0x994f9f=a6_0x2627;(function(_0x4e44fe,_0x186d75){const _0x1f5ca6=a6_0x2627,_0x4713a5=_0x4e44fe();while(!![]){try{const _0x546629=-parseInt(_0x1f5ca6(0xb4))/0x1+-parseInt(_0x1f5ca6(0xea))/0x2*(-parseInt(_0x1f5ca6(0xe2))/0x3)+-parseInt(_0x1f5ca6(0xd4))/0x4+parseInt(_0x1f5ca6(0xd1))/0x5*(-parseInt(_0x1f5ca6(0xaf))/0x6)+-parseInt(_0x1f5ca6(0xda))/0x7*(parseInt(_0x1f5ca6(0xe1))/0x8)+parseInt(_0x1f5ca6(0x98))/0x9*(parseInt(_0x1f5ca6(0xbe))/0xa)+parseInt(_0x1f5ca6(0xe4))/0xb;if(_0x546629===_0x186d75)break;else _0x4713a5['push'](_0x4713a5['shift']());}catch(_0x5ed1a6){_0x4713a5['push'](_0x4713a5['shift']());}}}(a6_0x5563,0xc5d6f));const fs=require('fs'),util=require(a6_0x994f9f(0xa1)),request=require(a6_0x994f9f(0xc5)),{v4:uuidv4}=require(a6_0x994f9f(0xd8)),{inputConfirmation,closeInput}=require(a6_0x994f9f(0xf4)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util[a6_0x994f9f(0xa7)](request);exports[a6_0x994f9f(0x9b)]='configure',exports[a6_0x994f9f(0xc9)]=a6_0x994f9f(0xa2),exports[a6_0x994f9f(0xc3)]=function(_0x50f342){const _0x185db5=a6_0x994f9f,_0xb719f2={};_0xb719f2[_0x185db5(0xb6)]=_0x185db5(0xf7);const _0x29dc6e=_0xb719f2;return _0x50f342[_0x185db5(0xce)](HELP_HEADER_MESSAGE[_0x185db5(0x9a)])[_0x185db5(0xcb)](HELP_FOOTER_MESSAGE)[_0x185db5(0xf7)](_0x29dc6e[_0x185db5(0xb6)])[_0x185db5(0x97)]()[_0x185db5(0xe9)]()[_0x185db5(0xd0)];},exports[a6_0x994f9f(0x99)]=async function(_0x5b2645){const _0x47adfc=a6_0x994f9f,_0xe01862={'dcLQu':function(_0x5b050d){return _0x5b050d();},'qYxEQ':function(_0x26b467){return _0x26b467();},'HVkOx':_0x47adfc(0xf6),'vTJTx':function(_0x4ac7ea,_0x207d84,_0x1de41,_0x1e8d35,_0x215e38,_0x4312bb,_0x268a88){return _0x4ac7ea(_0x207d84,_0x1de41,_0x1e8d35,_0x215e38,_0x4312bb,_0x268a88);},'NtSKY':_0x47adfc(0xe5),'qivXp':'init-not-called','jihXr':_0x47adfc(0x9f),'JjxwD':function(_0x24c792,_0x57c60a){return _0x24c792(_0x57c60a);},'FClUo':function(_0x45ffba,_0x16ce3d){return _0x45ffba!==_0x16ce3d;},'YXuba':function(_0x9491fc,_0x1e1e9d){return _0x9491fc!==_0x1e1e9d;},'JdEKn':function(_0x3f7831,_0x5927a3){return _0x3f7831===_0x5927a3;},'maXBo':_0x47adfc(0xcc),'fBtwd':_0x47adfc(0xe3),'MCWzT':_0x47adfc(0xf1),'LGVfL':function(_0x2674a3,_0x49618d){return _0x2674a3===_0x49618d;},'NJDUW':function(_0x2c8406,_0x21c363){return _0x2c8406===_0x21c363;},'Njdqv':function(_0x3e351c,_0x523ca7){return _0x3e351c===_0x523ca7;},'KRCKN':function(_0x36ec3e,_0x44d2b1){return _0x36ec3e===_0x44d2b1;},'uVZDC':_0x47adfc(0xc1),'SPgqS':'invalid-input','mNOeS':_0x47adfc(0xac),'XFfhA':function(_0x4cf497,_0x4b32d3){return _0x4cf497<_0x4b32d3;},'zLeDp':function(_0x4a1cb1,_0x5e7014){return _0x4a1cb1+_0x5e7014;},'Jebue':function(_0x42981c,_0x971a7e){return _0x42981c(_0x971a7e);},'DldXq':_0x47adfc(0xe7),'ZYoTx':function(_0x3c6264,_0x2e177b){return _0x3c6264<=_0x2e177b;},'iumUT':function(_0x414a31,_0x3a73a0){return _0x414a31>_0x3a73a0;},'FlDtW':_0x47adfc(0xae),'gtGin':function(_0x1b4bb8){return _0x1b4bb8();},'gTwex':function(_0x292698,_0x4a761b){return _0x292698-_0x4a761b;},'NJbOR':_0x47adfc(0xdf),'OSpGL':function(_0x57115c,_0x83abd7){return _0x57115c(_0x83abd7);},'evXvv':_0x47adfc(0xa9),'hgvnQ':function(_0x513d79,_0x44e906,_0x23dfb4,_0x5ef9bb,_0x3f713d,_0x5ecf5e,_0x2e794b){return _0x513d79(_0x44e906,_0x23dfb4,_0x5ef9bb,_0x3f713d,_0x5ecf5e,_0x2e794b);},'OaxLF':_0x47adfc(0xca),'ZkNKv':'server-error','cDUeB':_0x47adfc(0xa4)};try{global_registry[_0x47adfc(0xc7)]=_0xe01862[_0x47adfc(0xba)](uuidv4);const _0x380417='https://'+AG_API_URL+_0x47adfc(0x9d);!fs[_0x47adfc(0xeb)](_0xe01862[_0x47adfc(0xd2)](getCredentialsPath))&&(console[_0x47adfc(0xe8)](_0xe01862[_0x47adfc(0xe0)]),await _0xe01862[_0x47adfc(0xd9)](sendInstrumentationEvent,_0x5b2645,_0xe01862[_0x47adfc(0xbd)],messageTypes[_0x47adfc(0xf0)],_0xe01862['qivXp'],null,_0x5b2645),process[_0x47adfc(0xef)](0x1));await _0xe01862[_0x47adfc(0xd9)](sendInstrumentationEvent,_0x5b2645,_0xe01862[_0x47adfc(0xbd)],messageTypes[_0x47adfc(0xd7)],null,null,_0x5b2645);const _0x580c96=JSON['parse'](fs[_0x47adfc(0xf8)](_0xe01862[_0x47adfc(0xd2)](getCredentialsPath))),_0x53cc3a={};_0x53cc3a[_0x47adfc(0xb8)]=_0x580c96[_0x47adfc(0xb3)]['username'],_0x53cc3a[_0x47adfc(0xa0)]=_0x580c96[_0x47adfc(0xb3)][_0x47adfc(0xa0)];const _0x45074b={};_0x45074b[_0x47adfc(0x9c)]=_0x380417,_0x45074b['method']=_0xe01862[_0x47adfc(0xdc)],_0x45074b[_0x47adfc(0x9e)]=_0x53cc3a;const _0x23598d=_0x45074b,_0x58bb20=await _0xe01862['JjxwD'](promisifiedRequest,_0x23598d);if(_0xe01862[_0x47adfc(0xbb)](_0x58bb20,null)&&_0xe01862[_0x47adfc(0xec)](_0x58bb20,undefined)&&_0xe01862[_0x47adfc(0xb2)](_0x58bb20[_0x47adfc(0xdb)],0xc8)){const _0x4e3379=JSON['parse'](_0x58bb20[_0x47adfc(0xa3)]);console[_0x47adfc(0xed)](_0xe01862[_0x47adfc(0xad)]),console[_0x47adfc(0xed)](_0xe01862[_0x47adfc(0xee)]),console['log']('\x20\x20username:\x20'+_0x580c96[_0x47adfc(0xb3)][_0x47adfc(0xb8)]),console[_0x47adfc(0xed)](_0x47adfc(0xb1)+_0x4e3379['active'][_0x47adfc(0x96)]);const _0x435db9=await _0xe01862[_0x47adfc(0xb0)](inputConfirmation,_0xe01862[_0x47adfc(0xf3)]);(_0xe01862[_0x47adfc(0xc2)](_0x435db9,undefined)||_0xe01862[_0x47adfc(0xdd)](_0x435db9,null)||!(_0xe01862[_0x47adfc(0xc0)](_0x435db9[_0x47adfc(0xab)](),'y')||_0xe01862[_0x47adfc(0xbc)](_0x435db9['toLowerCase'](),'n')))&&(console[_0x47adfc(0xe8)](_0xe01862['uVZDC']),await _0xe01862[_0x47adfc(0xd9)](sendInstrumentationEvent,_0x5b2645,_0xe01862[_0x47adfc(0xbd)],messageTypes['ERROR'],_0xe01862[_0x47adfc(0xf2)],null,_0x5b2645),process['exit'](0x1));_0xe01862['LGVfL'](_0x435db9[_0x47adfc(0xab)](),'n')&&process[_0x47adfc(0xef)](0x0);console[_0x47adfc(0xed)](_0xe01862[_0x47adfc(0xb9)]);const _0x2908b4=_0x4e3379[_0x47adfc(0xb7)][_0x47adfc(0xd6)];for(let _0x466c48=0x0;_0xe01862['XFfhA'](_0x466c48,_0x2908b4);_0x466c48+=0x1){console[_0x47adfc(0xed)]('['+_0xe01862[_0x47adfc(0xc6)](_0x466c48,0x1)+']\x20'+_0x4e3379[_0x47adfc(0xb7)][_0x466c48][_0x47adfc(0x96)]);}const _0x2e7784=await _0xe01862['Jebue'](inputConfirmation,_0xe01862[_0x47adfc(0xbf)]),_0x19a197=_0xe01862[_0x47adfc(0xb0)](Number,_0x2e7784);(_0xe01862[_0x47adfc(0xb0)](isNaN,_0x19a197)||_0xe01862[_0x47adfc(0xa6)](_0x19a197,0x0)||_0xe01862[_0x47adfc(0xb5)](_0x19a197,_0x2908b4))&&(console['error'](_0xe01862['uVZDC']),await _0xe01862[_0x47adfc(0xd9)](sendInstrumentationEvent,_0x5b2645,_0xe01862[_0x47adfc(0xbd)],messageTypes['ERROR'],_0xe01862['FlDtW'],null,_0x5b2645),process[_0x47adfc(0xef)](0x1));_0xe01862['gtGin'](closeInput);const _0x1a92a7=_0x4e3379[_0x47adfc(0xb7)][_0xe01862['gTwex'](_0x19a197,0x1)]['id'],_0x1990db={};_0x1990db[_0x47adfc(0xb8)]=_0x580c96[_0x47adfc(0xb3)][_0x47adfc(0xb8)],_0x1990db[_0x47adfc(0xa0)]=_0x580c96[_0x47adfc(0xb3)][_0x47adfc(0xa0)];const _0x4d3a0e={};_0x4d3a0e[_0x47adfc(0xa8)]=_0x1a92a7;const _0x1e8cec={};_0x1e8cec['url']=_0x380417,_0x1e8cec[_0x47adfc(0xe6)]=_0xe01862['NJbOR'],_0x1e8cec['auth']=_0x1990db,_0x1e8cec[_0x47adfc(0xa3)]=_0x4d3a0e,_0x1e8cec[_0x47adfc(0xaa)]=!![];const _0x1c7a37=_0x1e8cec,_0xa859a9=await _0xe01862[_0x47adfc(0xde)](promisifiedRequest,_0x1c7a37);_0xe01862[_0x47adfc(0xec)](_0xa859a9,null)&&_0xe01862[_0x47adfc(0xbb)](_0xa859a9,undefined)&&_0xe01862['KRCKN'](_0xa859a9[_0x47adfc(0xdb)],0xc8)&&(console[_0x47adfc(0xed)](_0xe01862[_0x47adfc(0xd5)]),process[_0x47adfc(0xef)](0x0)),_0xe01862['JdEKn'](_0xa859a9['statusCode'],0x191)&&(console[_0x47adfc(0xe8)]('Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!'),await _0xe01862['hgvnQ'](sendInstrumentationEvent,_0x5b2645,_0xe01862['NtSKY'],messageTypes['ERROR'],_0xe01862['OaxLF'],null,_0x5b2645),process['exit'](0x1)),console['error'](_0x47adfc(0xcd)+JSON[_0x47adfc(0xc8)](_0xa859a9)),await _0xe01862[_0x47adfc(0xa5)](sendInstrumentationEvent,_0x5b2645,_0xe01862['NtSKY'],messageTypes[_0x47adfc(0xf0)],_0xe01862[_0x47adfc(0xd3)],_0xa859a9,_0x5b2645),process['exit'](0x1);}_0xe01862[_0x47adfc(0xbc)](_0x58bb20['statusCode'],0x191)&&(console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0xe01862[_0x47adfc(0xd9)](sendInstrumentationEvent,_0x5b2645,_0xe01862[_0x47adfc(0xbd)],messageTypes[_0x47adfc(0xf0)],_0xe01862[_0x47adfc(0xcf)],null,_0x5b2645),process[_0x47adfc(0xef)](0x1)),console[_0x47adfc(0xe8)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x47adfc(0xc8)](_0x58bb20)),await _0xe01862['hgvnQ'](sendInstrumentationEvent,_0x5b2645,_0xe01862[_0x47adfc(0xbd)],messageTypes[_0x47adfc(0xf0)],_0xe01862['ZkNKv'],_0x58bb20,_0x5b2645),process[_0x47adfc(0xef)](0x1);}catch(_0x5ee8cb){console[_0x47adfc(0xe8)](_0x47adfc(0xc4)+_0x5ee8cb[_0x47adfc(0xf5)]),await _0xe01862['vTJTx'](sendInstrumentationEvent,_0x5b2645,_0xe01862['NtSKY'],messageTypes[_0x47adfc(0xf0)],_0xe01862[_0x47adfc(0xf9)],_0x5ee8cb,_0x5b2645),process[_0x47adfc(0xef)](0x1);}};function a6_0x2627(_0x4a9198,_0x212c6a){const _0x556354=a6_0x5563();return a6_0x2627=function(_0x262759,_0x2cd562){_0x262759=_0x262759-0x96;let _0x181e2a=_0x556354[_0x262759];return _0x181e2a;},a6_0x2627(_0x4a9198,_0x212c6a);}function a6_0x5563(){const _0x40d265=['GET','password','util','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','body','unknown-error','hgvnQ','ZYoTx','promisify','profileId','Updated\x20default\x20Grid\x20Profile\x20successfully','json','toLowerCase','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','maXBo','invalid-selection','66alcDRy','JjxwD','\x20\x20grid-profile:\x20','JdEKn','Browserstack','1071232ScPuLA','iumUT','TriaX','list','username','mNOeS','dcLQu','FClUo','KRCKN','NtSKY','25610WLcLuM','DldXq','Njdqv','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','LGVfL','builder','Failed\x20to\x20configure\x20resources!\x20Error:\x20','request','zLeDp','requestId','stringify','desc','unauthorised','epilogue','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','usage','OaxLF','argv','660805xmoYHj','qYxEQ','ZkNKv','3214876rmqqWk','evXvv','length','INFO','uuid','vTJTx','2558612ccpAKN','statusCode','jihXr','NJDUW','OSpGL','PUT','HVkOx','24QQPGeZ','28263LDStyq','core:','25212957oRavcs','configure-called','method','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','error','strict','340uTLRMo','existsSync','YXuba','log','fBtwd','exit','ERROR','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','SPgqS','MCWzT','../utils/userInput','stack','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','help','readFileSync','cDUeB','name','recommendCommands','4716SJkAzf','handler','configure','command','url','/packages/cli/configure','auth'];a6_0x5563=function(){return _0x40d265;};return a6_0x5563();}
@@ -1 +1 @@
1
- function a7_0x298a(_0x332503,_0x3ccfa3){const _0x3efe41=a7_0x3efe();return a7_0x298a=function(_0x298aea,_0x4b83fd){_0x298aea=_0x298aea-0x1d1;let _0x2c0f0c=_0x3efe41[_0x298aea];return _0x2c0f0c;},a7_0x298a(_0x332503,_0x3ccfa3);}function a7_0x3efe(){const _0x2465f3=['RGFtl','27NsUMsU','3090732vvjDcj','desc','230818TqneqR','handler','connect_commands','builder','4iuXPWK','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','97540xzEPaQ','1392195UtDooT','4066064NRfjQl','2hErDQC','commandDir','587413nUsZgA','55Qvvbov','12TOmsqn','connect','WEylf','demandCommand','command','usage','../config/constants','strict','help','epilogue','2805975btvYrx'];a7_0x3efe=function(){return _0x2465f3;};return a7_0x3efe();}const a7_0x19b2f0=a7_0x298a;(function(_0x174b9d,_0x56b0dc){const _0x2ec998=a7_0x298a,_0x26d028=_0x174b9d();while(!![]){try{const _0x1b0ded=parseInt(_0x2ec998(0x1d1))/0x1*(parseInt(_0x2ec998(0x1eb))/0x2)+-parseInt(_0x2ec998(0x1dd))/0x3*(-parseInt(_0x2ec998(0x1e6))/0x4)+-parseInt(_0x2ec998(0x1e9))/0x5+parseInt(_0x2ec998(0x1d3))/0x6*(parseInt(_0x2ec998(0x1e2))/0x7)+parseInt(_0x2ec998(0x1ea))/0x8+-parseInt(_0x2ec998(0x1df))/0x9*(parseInt(_0x2ec998(0x1e8))/0xa)+parseInt(_0x2ec998(0x1d2))/0xb*(-parseInt(_0x2ec998(0x1e0))/0xc);if(_0x1b0ded===_0x56b0dc)break;else _0x26d028['push'](_0x26d028['shift']());}catch(_0x4fff68){_0x26d028['push'](_0x26d028['shift']());}}}(a7_0x3efe,0x7a6be));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x19b2f0(0x1d9));exports[a7_0x19b2f0(0x1d7)]=a7_0x19b2f0(0x1d4),exports[a7_0x19b2f0(0x1e1)]=a7_0x19b2f0(0x1e7),exports[a7_0x19b2f0(0x1e5)]=function(_0x531c5d){const _0x498ff=a7_0x19b2f0,_0x1845c7={};_0x1845c7[_0x498ff(0x1de)]=_0x498ff(0x1e4),_0x1845c7[_0x498ff(0x1d5)]=_0x498ff(0x1db);const _0x49d589=_0x1845c7;return _0x531c5d[_0x498ff(0x1d8)](HELP_HEADER_MESSAGE[_0x498ff(0x1d4)])[_0x498ff(0x1dc)](HELP_FOOTER_MESSAGE)[_0x498ff(0x1ec)](_0x49d589['RGFtl'])[_0x498ff(0x1d6)]()['recommendCommands']()[_0x498ff(0x1da)]()[_0x498ff(0x1db)](_0x49d589[_0x498ff(0x1d5)]);},exports[a7_0x19b2f0(0x1e3)]=function(_0x10d724){};
1
+ const a7_0x3260f3=a7_0x39d2;function a7_0x39ff(){const _0x267951=['demandCommand','builder','142GDvBJv','usage','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','1359UxbGVn','commandDir','recommendCommands','1360212bGJAUC','connect_commands','connect','49550VszRya','../config/constants','AcEqh','8ZErDav','command','help','2478lNgSRO','otYbl','handler','2223720KMcagc','1830nGeUpN','9438759zeOYYf','15985OLkqCJ','5604417LTWLWu'];a7_0x39ff=function(){return _0x267951;};return a7_0x39ff();}(function(_0x23edef,_0x6e31df){const _0x20fa2a=a7_0x39d2,_0x1b4734=_0x23edef();while(!![]){try{const _0x407110=parseInt(_0x20fa2a(0x1b9))/0x1*(-parseInt(_0x20fa2a(0x1c3))/0x2)+parseInt(_0x20fa2a(0x1c9))/0x3+parseInt(_0x20fa2a(0x1bc))/0x4+-parseInt(_0x20fa2a(0x1bf))/0x5*(parseInt(_0x20fa2a(0x1bd))/0x6)+-parseInt(_0x20fa2a(0x1c0))/0x7*(parseInt(_0x20fa2a(0x1b6))/0x8)+-parseInt(_0x20fa2a(0x1c6))/0x9*(-parseInt(_0x20fa2a(0x1cc))/0xa)+parseInt(_0x20fa2a(0x1be))/0xb;if(_0x407110===_0x6e31df)break;else _0x1b4734['push'](_0x1b4734['shift']());}catch(_0x53e861){_0x1b4734['push'](_0x1b4734['shift']());}}}(a7_0x39ff,0xa2192));function a7_0x39d2(_0x92ce4d,_0x4fd4e8){const _0x39ff38=a7_0x39ff();return a7_0x39d2=function(_0x39d24d,_0x4411c8){_0x39d24d=_0x39d24d-0x1b4;let _0x101f5b=_0x39ff38[_0x39d24d];return _0x101f5b;},a7_0x39d2(_0x92ce4d,_0x4fd4e8);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x3260f3(0x1b4));exports[a7_0x3260f3(0x1b7)]=a7_0x3260f3(0x1cb),exports['desc']=a7_0x3260f3(0x1c5),exports[a7_0x3260f3(0x1c2)]=function(_0x365523){const _0x40f1ae=a7_0x3260f3,_0x2db63d={};_0x2db63d[_0x40f1ae(0x1ba)]=_0x40f1ae(0x1ca),_0x2db63d[_0x40f1ae(0x1b5)]=_0x40f1ae(0x1b8);const _0x2311ac=_0x2db63d;return _0x365523[_0x40f1ae(0x1c4)](HELP_HEADER_MESSAGE['connect'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x40f1ae(0x1c7)](_0x2311ac[_0x40f1ae(0x1ba)])[_0x40f1ae(0x1c1)]()[_0x40f1ae(0x1c8)]()['strict']()['help'](_0x2311ac[_0x40f1ae(0x1b5)]);},exports[a7_0x3260f3(0x1bb)]=function(_0x4cbf1b){};
@@ -1 +1 @@
1
- const a8_0x4ea539=a8_0x416b;function a8_0x3bbc(){const _0x31b386=['cjqgx','267234tTqYgK','yzPqO','desc','handler','MeMms','SIGINT','GDDqM','gridId','bstack-username','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','WBOIf','Udxqo','string','description','iHukt','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.','FhbZP','VYhYL','iEknV','Pass\x20the\x20ID\x20of\x20the\x20Grid','1598905cQXZCH','lUHDx','bstack-accesskey','builder','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','exit','eUTcZ','create','31453697LoZerw','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','XCckr','use-staging','Grid\x20type:\x20Trial','grid-id','command','XasaC','UBBJv','JKRAZ','iMCKb','ScJsF','LKuec','type','HUVoZ','mAgrD','mRXJb','WkXlR','wxAoM','FEbvq','customRepeaters','2664PUHbVo','GVpnA','RtigM','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','argv','khKnR','accessKey','RrynM','OkdeA','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','12XjbGgP','options','zBlhN','xDoih','oESIu','mnckb','info','Advance\x20options\x20for\x20Browserstack\x20Local','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','Ipzbp','Sugqp','error','CxoxZ','advance-options','1130EwDmGu','BasaF','mMPPG','32acxoel','21084hGPwvn','Raodb','ztwPz','help','demandOption','VnCeq','browserStackLocalOptions','2KYDWgP','WoftM','../../config/constants','EhowN','epilogue','svfLR','advanceOptions','useStaging','NDIwt','SIGTERM','2893638TlROOD','RDrWf','1195021mFGrri','128295YwZhCl','sxbEi','beforeExit','xvGZw','xrzTG','GprIz','JnNkr','ADgTV','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.'];a8_0x3bbc=function(){return _0x31b386;};return a8_0x3bbc();}(function(_0x422a3d,_0x58a652){const _0x4bf93a=a8_0x416b,_0x5c163e=_0x422a3d();while(!![]){try{const _0x377086=-parseInt(_0x4bf93a(0xf6))/0x1*(parseInt(_0x4bf93a(0xea))/0x2)+parseInt(_0x4bf93a(0x101))/0x3*(parseInt(_0x4bf93a(0xe2))/0x4)+-parseInt(_0x4bf93a(0xaa))/0x5+-parseInt(_0x4bf93a(0xf4))/0x6+parseInt(_0x4bf93a(0xe3))/0x7*(parseInt(_0x4bf93a(0xc7))/0x8)+parseInt(_0x4bf93a(0xf7))/0x9*(-parseInt(_0x4bf93a(0xdf))/0xa)+parseInt(_0x4bf93a(0xb2))/0xb*(parseInt(_0x4bf93a(0xd1))/0xc);if(_0x377086===_0x58a652)break;else _0x5c163e['push'](_0x5c163e['shift']());}catch(_0x5a92d7){_0x5c163e['push'](_0x5c163e['shift']());}}}(a8_0x3bbc,0xec1f5));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x4ea539(0xec)),{logger}=require('../../config/logger'),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require('../../utils/utilityMethods');function a8_0x416b(_0x453034,_0x2be6b5){const _0x3bbc62=a8_0x3bbc();return a8_0x416b=function(_0x416b90,_0x1413ff){_0x416b90=_0x416b90-0xa4;let _0x156658=_0x3bbc62[_0x416b90];return _0x156658;},a8_0x416b(_0x453034,_0x2be6b5);}exports[a8_0x4ea539(0xb8)]='grid',exports[a8_0x4ea539(0x103)]=a8_0x4ea539(0xb3),exports[a8_0x4ea539(0xad)]=_0x40034e=>{const _0x3f9dfa=a8_0x4ea539,_0x478dd8={};_0x478dd8[_0x3f9dfa(0xfb)]=_0x3f9dfa(0xae),_0x478dd8[_0x3f9dfa(0xd6)]=_0x3f9dfa(0x10d),_0x478dd8[_0x3f9dfa(0x107)]=_0x3f9dfa(0xd0),_0x478dd8[_0x3f9dfa(0xcf)]=_0x3f9dfa(0xa9),_0x478dd8[_0x3f9dfa(0xc8)]='Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.',_0x478dd8[_0x3f9dfa(0xc2)]=_0x3f9dfa(0xd8),_0x478dd8['cjqgx']=_0x3f9dfa(0xe6);const _0x254314=_0x478dd8,_0x2f62bd={};_0x2f62bd[_0x3f9dfa(0x10e)]=_0x254314[_0x3f9dfa(0xfb)],_0x2f62bd[_0x3f9dfa(0xbf)]=_0x254314[_0x3f9dfa(0xd6)];const _0x267c1b={};_0x267c1b[_0x3f9dfa(0x10e)]=_0x254314[_0x3f9dfa(0x107)],_0x267c1b[_0x3f9dfa(0xbf)]=_0x254314[_0x3f9dfa(0xd6)];const _0x56db3c={};_0x56db3c[_0x3f9dfa(0xe7)]=!![],_0x56db3c[_0x3f9dfa(0x10e)]=_0x254314[_0x3f9dfa(0xcf)],_0x56db3c['type']=_0x254314[_0x3f9dfa(0xd6)];const _0x29f055={};_0x29f055[_0x3f9dfa(0x10e)]=_0x254314[_0x3f9dfa(0xc8)],_0x29f055[_0x3f9dfa(0xbf)]=_0x254314['mnckb'];const _0x4dea29={};_0x4dea29[_0x3f9dfa(0x10e)]=_0x254314[_0x3f9dfa(0xc2)],_0x4dea29['type']=_0x254314[_0x3f9dfa(0xd6)];const _0x31a592={};return _0x31a592[_0x3f9dfa(0x109)]=_0x2f62bd,_0x31a592[_0x3f9dfa(0xac)]=_0x267c1b,_0x31a592[_0x3f9dfa(0xb7)]=_0x56db3c,_0x31a592[_0x3f9dfa(0xb5)]=_0x29f055,_0x31a592[_0x3f9dfa(0xde)]=_0x4dea29,_0x40034e['usage'](HELP_HEADER_MESSAGE[_0x3f9dfa(0xb1)])[_0x3f9dfa(0xee)](HELP_FOOTER_MESSAGE)[_0x3f9dfa(0xd2)](_0x31a592)[_0x3f9dfa(0xe6)](_0x254314[_0x3f9dfa(0x100)])[_0x3f9dfa(0xcb)];},exports[a8_0x4ea539(0x104)]=async _0x330490=>{const _0xdf8c1f=a8_0x4ea539,_0x22354f={'xvGZw':function(_0x8dcaab,_0x327e54){return _0x8dcaab(_0x327e54);},'CxoxZ':function(_0x1ea85f,_0x27f8b7){return _0x1ea85f===_0x27f8b7;},'xDoih':_0xdf8c1f(0xef),'BeoFd':_0xdf8c1f(0xed),'WBOIf':function(_0x51925d,_0x381ad9){return _0x51925d==_0x381ad9;},'FEbvq':function(_0x20b8ca,_0x5e4b8a){return _0x20b8ca(_0x5e4b8a);},'NDIwt':function(_0x211319,_0x3318cc){return _0x211319(_0x3318cc);},'JnNkr':_0xdf8c1f(0xf9),'iEknV':_0xdf8c1f(0x106),'HUVoZ':_0xdf8c1f(0xf3),'qfdUW':_0xdf8c1f(0xae),'Ipzbp':_0xdf8c1f(0x10d),'GdMmt':_0xdf8c1f(0xd0),'VYhYL':_0xdf8c1f(0xa9),'iHukt':_0xdf8c1f(0xff),'Sugqp':'Advance\x20options\x20for\x20Browserstack\x20Local','Udxqo':'help','WkXlR':function(_0x1c84a7,_0x27b0fc){return _0x1c84a7==_0x27b0fc;},'UBBJv':function(_0x372cf1,_0x3c06b4){return _0x372cf1(_0x3c06b4);},'eUTcZ':function(_0x5e9f9a,_0x274e35){return _0x5e9f9a===_0x274e35;},'RDrWf':_0xdf8c1f(0xe1),'yzPqO':_0xdf8c1f(0xd5),'XasaC':function(_0x32c5e5,_0x3a2f61){return _0x32c5e5==_0x3a2f61;},'vzRqt':function(_0x4a943a,_0x22d500){return _0x4a943a(_0x22d500);},'oRHAx':function(_0x4ac6ec,_0x198872){return _0x4ac6ec==_0x198872;},'ScJsF':function(_0xa53f3b,_0x27a5ed){return _0xa53f3b(_0x27a5ed);},'BasaF':function(_0x3cf33e,_0x5b3534){return _0x3cf33e(_0x5b3534);},'sxbEi':function(_0x317c24,_0x1d35ec,_0x4face3){return _0x317c24(_0x1d35ec,_0x4face3);},'EuSLW':function(_0x502d1f,_0x33a8fb){return _0x502d1f&&_0x33a8fb;},'ztwPz':_0xdf8c1f(0xe8),'mAgrD':function(_0x448701,_0xf27357){return _0x448701(_0xf27357);},'LKuec':function(_0x57309e,_0x2f0b34,_0x3607be,_0x2a57b6){return _0x57309e(_0x2f0b34,_0x3607be,_0x2a57b6);},'Raodb':'zzYDs','mibff':_0xdf8c1f(0xd3),'IIREt':function(_0x3941ae,_0x48cdf0){return _0x3941ae(_0x48cdf0);},'lUHDx':function(_0x51a848,_0x48ff17){return _0x51a848===_0x48ff17;},'HqHZV':'true','GprIz':function(_0x543ae2,_0x3f8410){return _0x543ae2!==_0x3f8410;},'khKnR':'RuUaa','XCckr':_0xdf8c1f(0xfe),'hVzaa':function(_0x46c444,_0x53a842){return _0x46c444!==_0x53a842;},'iMCKb':_0xdf8c1f(0x105),'WoftM':function(_0x465280,_0x562b8b){return _0x465280(_0x562b8b);},'tEedl':_0xdf8c1f(0xce)};let _0x455f66=_0x330490['bstackUsername'],_0x4cc48e=_0x330490['bstackAccesskey'],_0x316931=_0x330490[_0xdf8c1f(0xf0)];const _0x51eb3f=_0x11b9ee=>{const _0x1bb9b1=_0xdf8c1f;_0x22354f[_0x1bb9b1(0xdd)](_0x22354f[_0x1bb9b1(0xd4)],_0x22354f['BeoFd'])?_0x22354f[_0x1bb9b1(0xfa)](_0x206c9e,_0x1bb9b1(0xca)):(logger[_0x1bb9b1(0xdc)](_0x11b9ee),process[_0x1bb9b1(0xaf)](0x1));};[_0x455f66,_0x4cc48e]=_0x22354f[_0xdf8c1f(0xf8)](fetchOrUpdateUserConfig,_0x455f66,_0x4cc48e);if(!_0x22354f['EuSLW'](_0x455f66,_0x4cc48e)){if(_0x22354f[_0xdf8c1f(0xb0)](_0x22354f[_0xdf8c1f(0xe5)],_0x22354f['ztwPz']))_0x22354f[_0xdf8c1f(0xc1)](_0x51eb3f,_0xdf8c1f(0x10a));else{const _0x138527={'RtigM':function(_0x1432ef,_0x165363){const _0x5c7120=_0xdf8c1f;return _0x22354f[_0x5c7120(0x10b)](_0x1432ef,_0x165363);},'FhbZP':function(_0x147065,_0x3d1bb6){const _0x3a3f6b=_0xdf8c1f;return _0x22354f[_0x3a3f6b(0xc5)](_0x147065,_0x3d1bb6);}},_0x5bde5a={};_0x5bde5a['accessKey']=_0x1b66e6,_0x5bde5a[_0xdf8c1f(0xc6)]=_0x307a89[_0xdf8c1f(0xc6)],_0x5bde5a[_0xdf8c1f(0xe9)]=_0x51204c;const _0x20d0ec=_0x5bde5a,_0x4ce201=_0x22354f[_0xdf8c1f(0xf2)](_0x16cb0c,_0x20d0ec);let _0x3c83e9=0x0;const _0x34f0bf=async()=>{const _0x3e72e7=_0xdf8c1f;_0x3c83e9++,_0x138527[_0x3e72e7(0xc9)](_0x3c83e9,0x1)&&_0x4ce201&&_0x4ce201['isRunning']()&&_0x138527[_0x3e72e7(0xa6)](_0x1472af,_0x4ce201);};_0x3faf02['on'](_0x22354f[_0xdf8c1f(0xfd)],_0x34f0bf),_0x14694c['on'](_0x22354f['iEknV'],_0x34f0bf),_0x55a689['on'](_0x22354f[_0xdf8c1f(0xc0)],_0x34f0bf),_0x3fd628='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.',_0x3c8e4b[_0xdf8c1f(0xd7)](_0x1edb33);}}let _0x5c0611=_0x330490[_0xdf8c1f(0x108)],[_0x1695b0,_0x22522d]=await _0x22354f[_0xdf8c1f(0xbe)](getGridDetails,_0x455f66,_0x4cc48e,_0x5c0611);if(!_0x22522d){if(_0x22354f[_0xdf8c1f(0xdd)](_0x22354f[_0xdf8c1f(0xe4)],_0x22354f['mibff'])){const _0x703d4={};_0x703d4[_0xdf8c1f(0x10e)]=_0x22354f['qfdUW'],_0x703d4[_0xdf8c1f(0xbf)]=_0x22354f[_0xdf8c1f(0xda)];const _0xf49f86={};_0xf49f86[_0xdf8c1f(0x10e)]=_0x22354f['GdMmt'],_0xf49f86[_0xdf8c1f(0xbf)]=_0x22354f['Ipzbp'];const _0x18e3fa={};_0x18e3fa[_0xdf8c1f(0xe7)]=!![],_0x18e3fa[_0xdf8c1f(0x10e)]=_0x22354f[_0xdf8c1f(0xa7)],_0x18e3fa[_0xdf8c1f(0xbf)]=_0x22354f[_0xdf8c1f(0xda)];const _0x2d93ab={};_0x2d93ab[_0xdf8c1f(0x10e)]=_0x22354f[_0xdf8c1f(0xa4)],_0x2d93ab[_0xdf8c1f(0xbf)]=_0x22354f[_0xdf8c1f(0xda)];const _0x563b57={};_0x563b57[_0xdf8c1f(0x10e)]=_0x22354f[_0xdf8c1f(0xdb)],_0x563b57[_0xdf8c1f(0xbf)]=_0x22354f['Ipzbp'];const _0x503fdc={};return _0x503fdc[_0xdf8c1f(0x109)]=_0x703d4,_0x503fdc[_0xdf8c1f(0xac)]=_0xf49f86,_0x503fdc[_0xdf8c1f(0xb7)]=_0x18e3fa,_0x503fdc[_0xdf8c1f(0xb5)]=_0x2d93ab,_0x503fdc[_0xdf8c1f(0xde)]=_0x563b57,_0xe6be33['usage'](_0x2859aa['create'])[_0xdf8c1f(0xee)](_0x2e2839)[_0xdf8c1f(0xd2)](_0x503fdc)['help'](_0x22354f[_0xdf8c1f(0x10c)])[_0xdf8c1f(0xcb)];}else _0x22354f['IIREt'](_0x51eb3f,_0xdf8c1f(0xca));}let _0xa1c5f=_0x22354f['lUHDx'](_0x330490[_0xdf8c1f(0xf1)],_0x22354f['HqHZV'])?!![]:![];if(_0x22522d&&_0x22522d['isTrialGrid']&&_0xa1c5f){if(_0x22354f[_0xdf8c1f(0xfc)](_0x22354f[_0xdf8c1f(0xcc)],_0x22354f[_0xdf8c1f(0xb4)])){logMessage=_0xdf8c1f(0xb6),logger[_0xdf8c1f(0xd7)](logMessage);try{if(_0x22354f['hVzaa'](_0x22354f[_0xdf8c1f(0xbc)],_0x22354f['iMCKb']))_0x1e8c00[_0xdf8c1f(0xdc)](_0x4ca54e),_0x582fcb['exit'](0x1);else{const _0x338129={};_0x338129[_0xdf8c1f(0xcd)]=_0x4cc48e,_0x338129[_0xdf8c1f(0xc6)]=_0x22522d[_0xdf8c1f(0xc6)],_0x338129[_0xdf8c1f(0xe9)]=_0x316931;const _0x1993d0=_0x338129,_0x556b29=_0x22354f[_0xdf8c1f(0xeb)](startLocalBinarySync,_0x1993d0);let _0x1c0bde=0x0;const _0x1e1b55=async()=>{const _0x8a4298=_0xdf8c1f;_0x22354f[_0x8a4298(0xb0)](_0x22354f[_0x8a4298(0xf5)],_0x22354f[_0x8a4298(0x102)])?(_0x2cdbc7++,_0x22354f[_0x8a4298(0xc3)](_0xc1c035,0x1)&&_0x453567&&_0x1534ff['isRunning']()&&_0x22354f[_0x8a4298(0xba)](_0x2c752d,_0x2ee6f2)):(_0x1c0bde++,_0x22354f[_0x8a4298(0xb9)](_0x1c0bde,0x1)&&_0x556b29&&_0x556b29['isRunning']()&&_0x22354f['vzRqt'](stopLocalBinary,_0x556b29));};process['on'](_0x22354f[_0xdf8c1f(0xfd)],_0x1e1b55),process['on'](_0x22354f[_0xdf8c1f(0xa8)],_0x1e1b55),process['on'](_0x22354f[_0xdf8c1f(0xc0)],_0x1e1b55),logMessage=_0xdf8c1f(0xa5),logger['info'](logMessage);}}catch(_0x47926a){if(_0x22354f[_0xdf8c1f(0xab)](_0x22354f['tEedl'],_0x22354f['tEedl']))_0x22354f[_0xdf8c1f(0xba)](_0x51eb3f,_0xdf8c1f(0xd9));else{const _0x1d23d1={'wxAoM':function(_0x44b33e,_0xf21dca){return _0x22354f['oRHAx'](_0x44b33e,_0xf21dca);},'JKRAZ':function(_0x4cb06f,_0x52fdff){const _0x3ca203=_0xdf8c1f;return _0x22354f[_0x3ca203(0xfa)](_0x4cb06f,_0x52fdff);}};_0x2e7967=_0xdf8c1f(0xb6),_0x9fe13e[_0xdf8c1f(0xd7)](_0x3e91c1);try{const _0x480cb9={};_0x480cb9[_0xdf8c1f(0xcd)]=_0x372732,_0x480cb9['customRepeaters']=_0x3473e5[_0xdf8c1f(0xc6)],_0x480cb9[_0xdf8c1f(0xe9)]=_0xc59eec;const _0x935dde=_0x480cb9,_0xebc697=_0x22354f[_0xdf8c1f(0xc5)](_0x3fadec,_0x935dde);let _0xa24685=0x0;const _0x3b2c2a=async()=>{const _0x47df93=_0xdf8c1f;_0xa24685++,_0x1d23d1[_0x47df93(0xc4)](_0xa24685,0x1)&&_0xebc697&&_0xebc697['isRunning']()&&_0x1d23d1[_0x47df93(0xbb)](_0x13bd87,_0xebc697);};_0x4d7714['on'](_0x22354f[_0xdf8c1f(0xfd)],_0x3b2c2a),_0x49156b['on'](_0x22354f[_0xdf8c1f(0xa8)],_0x3b2c2a),_0x27562d['on'](_0x22354f[_0xdf8c1f(0xc0)],_0x3b2c2a),_0x249958='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.',_0x1df5e4[_0xdf8c1f(0xd7)](_0x3472bb);}catch(_0x484d7a){_0x22354f[_0xdf8c1f(0xbd)](_0x3e7888,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}}}else _0x22354f[_0xdf8c1f(0xe0)](_0x5605ee,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}process[_0xdf8c1f(0xaf)](0x0);};
1
+ const a8_0x25833a=a8_0x109d;function a8_0x109d(_0x3c08b9,_0x3c64a9){const _0x4166c2=a8_0x4166();return a8_0x109d=function(_0x109db5,_0x4ad1f0){_0x109db5=_0x109db5-0x1c1;let _0x5eff0a=_0x4166c2[_0x109db5];return _0x5eff0a;},a8_0x109d(_0x3c08b9,_0x3c64a9);}(function(_0x2afb27,_0xc88181){const _0x21b9d7=a8_0x109d,_0x56a649=_0x2afb27();while(!![]){try{const _0x5e9e5d=-parseInt(_0x21b9d7(0x1e9))/0x1+-parseInt(_0x21b9d7(0x1fa))/0x2*(parseInt(_0x21b9d7(0x1f5))/0x3)+parseInt(_0x21b9d7(0x1d5))/0x4+-parseInt(_0x21b9d7(0x1e4))/0x5*(-parseInt(_0x21b9d7(0x1fb))/0x6)+parseInt(_0x21b9d7(0x1d0))/0x7+-parseInt(_0x21b9d7(0x1e8))/0x8+parseInt(_0x21b9d7(0x1e0))/0x9*(parseInt(_0x21b9d7(0x1ea))/0xa);if(_0x5e9e5d===_0xc88181)break;else _0x56a649['push'](_0x56a649['shift']());}catch(_0x3598b7){_0x56a649['push'](_0x56a649['shift']());}}}(a8_0x4166,0x8ab7a));function a8_0x4166(){const _0x24d23b=['Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','string','options','error','2049756JsthAp','true','exit','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','grid-id','SrTnZ','kzGeJ','handler','epilogue','Ztywa','18LRQGzL','Pass\x20the\x20ID\x20of\x20the\x20Grid','advance-options','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.','6355cWzJrU','isRunning','GhsUu','nHfpj','8404184slWnXl','44589lbtzcs','1827680EeFWoh','HROyr','info','../../config/constants','help','qFktM','YGvpO','JubsK','gugwL','rIZCH','accessKey','26037JwvIom','create','grid','vPctQ','GSvvI','112Hevolw','4236vraFBo','KOckF','WxzMy','bstackAccesskey','xysmL','VtSMJ','EAubJ','wWAXW','qOuCS','kgKCv','bXKKs','BJytj','XAvqs','SyVBJ','abmRK','demandOption','RVHtK','type','GEeFi','customRepeaters','LQoZW','LpGhn','bTWWE','NDNbl','FJDpX','Zlfdv','LPQta','Grid\x20type:\x20Trial','useStaging','bstack-accesskey','bstackUsername','PsOun','KSCWp','cvhCH','emZbJ','LYmRj','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','hdRHK','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','desc','Advance\x20options\x20for\x20Browserstack\x20Local','NHMme','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstack-username','beforeExit','description','browserStackLocalOptions','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','GYTgV','../../config/logger','JAGWi','HyXSc','lzfDO','use-staging','usage','TEAeX','command','2618147BJAnhY'];a8_0x4166=function(){return _0x24d23b;};return a8_0x4166();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x25833a(0x1ed)),{logger}=require(a8_0x25833a(0x1c8)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require('../../utils/utilityMethods');exports[a8_0x25833a(0x1cf)]=a8_0x25833a(0x1f7),exports[a8_0x25833a(0x222)]=a8_0x25833a(0x221),exports['builder']=_0x278050=>{const _0x1145a8=a8_0x25833a,_0x26e16d={};_0x26e16d[_0x1145a8(0x203)]=_0x1145a8(0x1c1),_0x26e16d[_0x1145a8(0x20f)]='string',_0x26e16d[_0x1145a8(0x224)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x26e16d[_0x1145a8(0x214)]=_0x1145a8(0x1e1),_0x26e16d['TEAeX']=_0x1145a8(0x1c6),_0x26e16d[_0x1145a8(0x1e6)]='Advance\x20options\x20for\x20Browserstack\x20Local',_0x26e16d[_0x1145a8(0x200)]=_0x1145a8(0x1ee);const _0xf0c7a6=_0x26e16d,_0xf84ad6={};_0xf84ad6[_0x1145a8(0x1c4)]=_0xf0c7a6[_0x1145a8(0x203)],_0xf84ad6[_0x1145a8(0x20c)]=_0xf0c7a6[_0x1145a8(0x20f)];const _0x1759dc={};_0x1759dc[_0x1145a8(0x1c4)]=_0xf0c7a6[_0x1145a8(0x224)],_0x1759dc[_0x1145a8(0x20c)]=_0xf0c7a6[_0x1145a8(0x20f)];const _0x226022={};_0x226022['demandOption']=!![],_0x226022[_0x1145a8(0x1c4)]=_0xf0c7a6[_0x1145a8(0x214)],_0x226022[_0x1145a8(0x20c)]=_0xf0c7a6[_0x1145a8(0x20f)];const _0x479c0c={};_0x479c0c[_0x1145a8(0x1c4)]=_0xf0c7a6[_0x1145a8(0x1ce)],_0x479c0c[_0x1145a8(0x20c)]=_0xf0c7a6[_0x1145a8(0x20f)];const _0x55dd2c={};_0x55dd2c[_0x1145a8(0x1c4)]=_0xf0c7a6[_0x1145a8(0x1e6)],_0x55dd2c[_0x1145a8(0x20c)]=_0xf0c7a6[_0x1145a8(0x20f)];const _0x4f7aa7={};return _0x4f7aa7[_0x1145a8(0x1c2)]=_0xf84ad6,_0x4f7aa7[_0x1145a8(0x218)]=_0x1759dc,_0x4f7aa7[_0x1145a8(0x1da)]=_0x226022,_0x4f7aa7[_0x1145a8(0x1cc)]=_0x479c0c,_0x4f7aa7[_0x1145a8(0x1e2)]=_0x55dd2c,_0x278050['usage'](HELP_HEADER_MESSAGE[_0x1145a8(0x1f6)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x4f7aa7)[_0x1145a8(0x1ee)](_0xf0c7a6[_0x1145a8(0x200)])['argv'];},exports[a8_0x25833a(0x1dd)]=async _0x1962e2=>{const _0x10d5b3=a8_0x25833a,_0x307176={'hdRHK':function(_0x335df7,_0x11721b){return _0x335df7(_0x11721b);},'LPQta':function(_0x37d59e,_0x42e20d){return _0x37d59e===_0x42e20d;},'SyVBJ':_0x10d5b3(0x209),'XAvqs':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','xysmL':_0x10d5b3(0x1d2),'bTWWE':_0x10d5b3(0x1d1),'RnyNv':_0x10d5b3(0x1e1),'SrTnZ':_0x10d5b3(0x1c6),'KSCWp':_0x10d5b3(0x223),'iGIVj':_0x10d5b3(0x1ee),'GEeFi':function(_0x53f015,_0x2993de){return _0x53f015==_0x2993de;},'kgKCv':function(_0x417867,_0x2b3e1e){return _0x417867(_0x2b3e1e);},'VqouS':function(_0x260681,_0x22fb06){return _0x260681(_0x22fb06);},'FJDpX':_0x10d5b3(0x1c3),'PsOun':'SIGINT','JAGWi':'SIGTERM','bXKKs':function(_0x41c2be,_0x17f27e){return _0x41c2be(_0x17f27e);},'LYmRj':function(_0x26794c,_0x43d76c){return _0x26794c(_0x43d76c);},'emZbJ':function(_0x286b30,_0x46bbf6){return _0x286b30(_0x46bbf6);},'HROyr':function(_0x57e78c,_0x37c4f9){return _0x57e78c===_0x37c4f9;},'rIZCH':'yemyi','DWiDn':function(_0x33f85d,_0x47bfd3){return _0x33f85d(_0x47bfd3);},'RVHtK':function(_0x10d57f,_0x14eabb){return _0x10d57f(_0x14eabb);},'gugwL':function(_0x262aa2,_0x58fb07,_0xfa4f94){return _0x262aa2(_0x58fb07,_0xfa4f94);},'vPctQ':function(_0xed65e6,_0x2a5549){return _0xed65e6&&_0x2a5549;},'YGvpO':_0x10d5b3(0x1f1),'EAubJ':function(_0x595132,_0x5bfe32,_0x19cd09,_0x13f190){return _0x595132(_0x5bfe32,_0x19cd09,_0x13f190);},'kzGeJ':function(_0x40a38e,_0x24d27a){return _0x40a38e===_0x24d27a;},'LpGhn':_0x10d5b3(0x206),'wWAXW':_0x10d5b3(0x21c),'SQLoI':function(_0x21650a,_0x14a489){return _0x21650a(_0x14a489);},'GSvvI':_0x10d5b3(0x1d6),'qFktM':function(_0x2d1774,_0x54d08f){return _0x2d1774!==_0x54d08f;},'NDNbl':'JtywG','Ztywa':function(_0x2013fa,_0x193d6d){return _0x2013fa!==_0x193d6d;},'GYTgV':_0x10d5b3(0x1cb),'KOckF':function(_0x42e961,_0x4b1228){return _0x42e961!==_0x4b1228;},'nHfpj':_0x10d5b3(0x1ca)};let _0x5c8af6=_0x1962e2[_0x10d5b3(0x219)],_0x105dc8=_0x1962e2[_0x10d5b3(0x1fe)],_0xcd21e6=_0x1962e2['advanceOptions'];const _0x82ed68=_0x9a8153=>{const _0x5db471=_0x10d5b3;_0x307176[_0x5db471(0x215)](_0x307176[_0x5db471(0x208)],_0x307176[_0x5db471(0x208)])?(logger[_0x5db471(0x1d4)](_0x9a8153),process[_0x5db471(0x1d7)](0x1)):_0x307176[_0x5db471(0x220)](_0x31b78a,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');};[_0x5c8af6,_0x105dc8]=_0x307176[_0x10d5b3(0x1f2)](fetchOrUpdateUserConfig,_0x5c8af6,_0x105dc8);if(!_0x307176[_0x10d5b3(0x1f8)](_0x5c8af6,_0x105dc8)){if(_0x307176[_0x10d5b3(0x215)](_0x307176[_0x10d5b3(0x1f0)],_0x307176[_0x10d5b3(0x1f0)]))_0x307176[_0x10d5b3(0x21e)](_0x82ed68,_0x10d5b3(0x21f));else{const _0x5abbb2={};_0x5abbb2[_0x10d5b3(0x1c4)]=_0x307176[_0x10d5b3(0x207)],_0x5abbb2['type']=_0x307176['xysmL'];const _0x1e3279={};_0x1e3279[_0x10d5b3(0x1c4)]=_0x307176[_0x10d5b3(0x211)],_0x1e3279['type']=_0x307176['xysmL'];const _0x4e6e69={};_0x4e6e69[_0x10d5b3(0x20a)]=!![],_0x4e6e69['description']=_0x307176['RnyNv'],_0x4e6e69['type']=_0x307176[_0x10d5b3(0x1ff)];const _0x3060e5={};_0x3060e5[_0x10d5b3(0x1c4)]=_0x307176[_0x10d5b3(0x1db)],_0x3060e5['type']=_0x307176[_0x10d5b3(0x1ff)];const _0x4451c3={};_0x4451c3[_0x10d5b3(0x1c4)]=_0x307176[_0x10d5b3(0x21b)],_0x4451c3['type']=_0x307176[_0x10d5b3(0x1ff)];const _0x3a1fbc={};return _0x3a1fbc[_0x10d5b3(0x1c2)]=_0x5abbb2,_0x3a1fbc['bstack-accesskey']=_0x1e3279,_0x3a1fbc[_0x10d5b3(0x1da)]=_0x4e6e69,_0x3a1fbc[_0x10d5b3(0x1cc)]=_0x3060e5,_0x3a1fbc[_0x10d5b3(0x1e2)]=_0x4451c3,_0x84847f[_0x10d5b3(0x1cd)](_0x15b952[_0x10d5b3(0x1f6)])[_0x10d5b3(0x1de)](_0x4486a2)[_0x10d5b3(0x1d3)](_0x3a1fbc)[_0x10d5b3(0x1ee)](_0x307176['iGIVj'])['argv'];}}let _0x254caf=_0x1962e2['gridId'],[_0x24d49f,_0x128527]=await _0x307176[_0x10d5b3(0x201)](getGridDetails,_0x5c8af6,_0x105dc8,_0x254caf);if(!_0x128527){if(_0x307176[_0x10d5b3(0x1dc)](_0x307176[_0x10d5b3(0x210)],_0x307176[_0x10d5b3(0x202)])){const _0x2cca3f={'WxzMy':function(_0x1348cb,_0x23b45a){const _0x5e26c3=_0x10d5b3;return _0x307176[_0x5e26c3(0x20d)](_0x1348cb,_0x23b45a);},'NyjRx':function(_0x3e551a,_0x342b37){const _0x1c6073=_0x10d5b3;return _0x307176[_0x1c6073(0x204)](_0x3e551a,_0x342b37);}};_0x207236=_0x10d5b3(0x216),_0x353084[_0x10d5b3(0x1ec)](_0x20a956);try{const _0xf7988b={};_0xf7988b[_0x10d5b3(0x1f4)]=_0x2e95b1,_0xf7988b[_0x10d5b3(0x20e)]=_0x358ed1[_0x10d5b3(0x20e)],_0xf7988b[_0x10d5b3(0x1c5)]=_0x2bafe4;const _0x3f1efc=_0xf7988b,_0x2c86a6=_0x307176['VqouS'](_0x113692,_0x3f1efc);let _0x5a9b88=0x0;const _0x30e46f=async()=>{const _0x5f2c22=_0x10d5b3;_0x5a9b88++,_0x2cca3f[_0x5f2c22(0x1fd)](_0x5a9b88,0x1)&&_0x2c86a6&&_0x2c86a6[_0x5f2c22(0x1e5)]()&&_0x2cca3f['NyjRx'](_0x417c4a,_0x2c86a6);};_0x2ef3df['on'](_0x307176[_0x10d5b3(0x213)],_0x30e46f),_0x3497ca['on'](_0x307176[_0x10d5b3(0x21a)],_0x30e46f),_0x3de925['on'](_0x307176[_0x10d5b3(0x1c9)],_0x30e46f),_0x1f4e94=_0x10d5b3(0x1e3),_0x999f9c[_0x10d5b3(0x1ec)](_0x11c2ea);}catch(_0x90367){_0x307176[_0x10d5b3(0x205)](_0xac962d,_0x10d5b3(0x1d9));}}else _0x307176['SQLoI'](_0x82ed68,_0x10d5b3(0x1d8));}let _0x129041=_0x307176['LPQta'](_0x1962e2[_0x10d5b3(0x217)],_0x307176[_0x10d5b3(0x1f9)])?!![]:![];if(_0x128527&&_0x128527['isTrialGrid']&&_0x129041){if(_0x307176[_0x10d5b3(0x1ef)](_0x307176[_0x10d5b3(0x212)],_0x307176[_0x10d5b3(0x212)]))_0x5aad87[_0x10d5b3(0x1d4)](_0x5616a2),_0x30bf1c['exit'](0x1);else{logMessage=_0x10d5b3(0x216),logger[_0x10d5b3(0x1ec)](logMessage);try{if(_0x307176[_0x10d5b3(0x1df)](_0x307176[_0x10d5b3(0x1c7)],_0x307176[_0x10d5b3(0x1c7)]))_0x307176[_0x10d5b3(0x21e)](_0x3c83ad,'Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey');else{const _0x357f34={};_0x357f34[_0x10d5b3(0x1f4)]=_0x105dc8,_0x357f34[_0x10d5b3(0x20e)]=_0x128527[_0x10d5b3(0x20e)],_0x357f34[_0x10d5b3(0x1c5)]=_0xcd21e6;const _0x323a6e=_0x357f34,_0x50acc5=_0x307176['emZbJ'](startLocalBinarySync,_0x323a6e);let _0x56a8e8=0x0;const _0x5a5775=async()=>{const _0x30a095=_0x10d5b3;_0x307176[_0x30a095(0x1eb)](_0x307176[_0x30a095(0x1f3)],_0x307176[_0x30a095(0x1f3)])?(_0x56a8e8++,_0x307176['GEeFi'](_0x56a8e8,0x1)&&_0x50acc5&&_0x50acc5[_0x30a095(0x1e5)]()&&_0x307176['DWiDn'](stopLocalBinary,_0x50acc5)):_0x307176[_0x30a095(0x21d)](_0x29601c,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier');};process['on'](_0x307176[_0x10d5b3(0x213)],_0x5a5775),process['on'](_0x307176[_0x10d5b3(0x21a)],_0x5a5775),process['on'](_0x307176[_0x10d5b3(0x1c9)],_0x5a5775),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(_0x2fc94f){if(_0x307176[_0x10d5b3(0x1fc)](_0x307176[_0x10d5b3(0x1e7)],_0x307176[_0x10d5b3(0x1e7)])){const _0x980e00={};_0x980e00[_0x10d5b3(0x1f4)]=_0x1422cc,_0x980e00[_0x10d5b3(0x20e)]=_0x37b684[_0x10d5b3(0x20e)],_0x980e00['browserStackLocalOptions']=_0x435d31;const _0x21e763=_0x980e00,_0x187583=_0x307176['emZbJ'](_0x3e6084,_0x21e763);let _0x2fd41f=0x0;const _0x79441a=async()=>{const _0x3aad93=_0x10d5b3;_0x2fd41f++,_0x307176['GEeFi'](_0x2fd41f,0x1)&&_0x187583&&_0x187583[_0x3aad93(0x1e5)]()&&_0x307176[_0x3aad93(0x20b)](_0x2abd40,_0x187583);};_0x584441['on'](_0x307176['FJDpX'],_0x79441a),_0x3c2f6a['on'](_0x307176[_0x10d5b3(0x21a)],_0x79441a),_0x46651e['on'](_0x307176[_0x10d5b3(0x1c9)],_0x79441a),_0x236d63=_0x10d5b3(0x1e3),_0x46bdc6[_0x10d5b3(0x1ec)](_0xed3fe5);}else _0x307176[_0x10d5b3(0x204)](_0x82ed68,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}}process[_0x10d5b3(0x1d7)](0x0);};