browserstack-node-sdk 1.28.1 → 1.28.2

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 (97) 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/customEnvironment.js +1 -1
  43. package/src/bin/jest/customTestRunnerTemplate.js +1 -1
  44. package/src/bin/jest/jest.setup.js +1 -1
  45. package/src/bin/jest/test_before.setup.js +1 -1
  46. package/src/bin/launcher/launcher.js +1 -1
  47. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  48. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  49. package/src/bin/mocha/command.js +1 -1
  50. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  51. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  52. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  53. package/src/bin/mocha/test.setup.js +1 -1
  54. package/src/bin/nightwatch/command.js +1 -1
  55. package/src/bin/playwright/accessibility-helper.js +1 -1
  56. package/src/bin/playwright/command.js +1 -1
  57. package/src/bin/playwright/globalSetup.js +1 -1
  58. package/src/bin/playwright/mock-process.js +1 -1
  59. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  60. package/src/bin/playwright/reporter/reporter.js +1 -1
  61. package/src/bin/playwright/reporter/test-details.js +1 -1
  62. package/src/bin/runner.js +1 -1
  63. package/src/bin/setup.js +1 -1
  64. package/src/bin/test-runner/index.js +1 -1
  65. package/src/bin/test-runner/runTest.js +1 -1
  66. package/src/bin/test-runner/testWorker.js +1 -1
  67. package/src/bin/utils/constants.js +1 -1
  68. package/src/bin/utils/log4jsAppender.js +1 -1
  69. package/src/bin/utils/logPatcher.js +1 -1
  70. package/src/bin/utils/logReportingAPI.js +1 -1
  71. package/src/bin/vanilla-js/command.js +1 -1
  72. package/src/helpers/BrowserStackSetup.js +1 -1
  73. package/src/helpers/accessibility-automation/constants.js +1 -1
  74. package/src/helpers/accessibility-automation/helper.js +1 -1
  75. package/src/helpers/ats/constants.js +1 -1
  76. package/src/helpers/ats/helper.js +1 -1
  77. package/src/helpers/capsMapping.js +1 -1
  78. package/src/helpers/helper.js +1 -1
  79. package/src/helpers/logger.js +1 -1
  80. package/src/helpers/patchHelpers.js +1 -1
  81. package/src/helpers/request-spy.js +1 -1
  82. package/src/helpers/setKeepAlive.js +1 -1
  83. package/src/helpers/test-observability/constants.js +1 -1
  84. package/src/helpers/test-observability/error-handler.js +1 -1
  85. package/src/helpers/test-observability/performance-tester.js +1 -1
  86. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  87. package/src/helpers/test-observability/sessionHandler.js +1 -1
  88. package/src/helpers/test-observability/utils.js +1 -1
  89. package/src/helpers/w3cMapping.js +1 -1
  90. package/src/hubAllocationMethods.js +1 -1
  91. package/src/index.js +1 -1
  92. package/src/helpers/percy/Percy.js +0 -1
  93. package/src/helpers/percy/PercyBinary.js +0 -1
  94. package/src/helpers/percy/PercyCaptureMap.js +0 -1
  95. package/src/helpers/percy/PercyCaptureModes.js +0 -1
  96. package/src/helpers/percy/PercySDK.js +0 -1
  97. package/src/helpers/percy/index.js +0 -1
@@ -1 +1 @@
1
- const a0_0x24b25a=a0_0x4245;(function(_0x58fd07,_0x46f073){const _0x4b7601=a0_0x4245,_0x54f708=_0x58fd07();while(!![]){try{const _0x4d82a5=parseInt(_0x4b7601(0xcf))/0x1+-parseInt(_0x4b7601(0x159))/0x2*(-parseInt(_0x4b7601(0xc5))/0x3)+-parseInt(_0x4b7601(0x12a))/0x4*(parseInt(_0x4b7601(0x14a))/0x5)+-parseInt(_0x4b7601(0x128))/0x6*(parseInt(_0x4b7601(0x1bb))/0x7)+parseInt(_0x4b7601(0x177))/0x8*(-parseInt(_0x4b7601(0x10c))/0x9)+parseInt(_0x4b7601(0x138))/0xa+-parseInt(_0x4b7601(0xeb))/0xb*(parseInt(_0x4b7601(0x111))/0xc);if(_0x4d82a5===_0x46f073)break;else _0x54f708['push'](_0x54f708['shift']());}catch(_0x4fd0fb){_0x54f708['push'](_0x54f708['shift']());}}}(a0_0x429a,0xbeea3));const fs=require('fs'),path=require(a0_0x24b25a(0x1dc)),yaml=require('js-yaml'),awsSDK=require(a0_0x24b25a(0xe5)),{logger}=require(a0_0x24b25a(0x11d)),{CloudProvider}=require(a0_0x24b25a(0x1d6)),{sendAWSInfoToHST}=require(a0_0x24b25a(0x121)),{deleteClusterStack}=require(a0_0x24b25a(0xc7)),{createClusterStack}=require(a0_0x24b25a(0x1d2)),{deleteClusterAndDependencies,deleteRoutingDeps}=require(a0_0x24b25a(0x117)),{createAutoscalerStack}=require(a0_0x24b25a(0x158)),{getDirForConfig,reportToGalactusAndSendToEDS}=require('../utils/utilityMethods'),{IAM_USER_NAME,AWS,WS_EVENTS,CLUSTER_DEP_STACK_NAME,global_registry,messageTypes}=require(a0_0x24b25a(0x166));function a0_0x429a(){const _0x333c54=['isClusterPresent','xLIXM','6ZGLhuu','AOoaW','696204sGqbGM','accessKeyId','IdQpe','YgpWw','gDlKU','HsJyq','uPFoy','jhrhj','VpcIds','ingress','\x20ACCESS\x20KEY:\x20','aws-auth-cm.yaml','\x20SECRET\x20KEY:\x20','AWSCloudProvider','14885900uogArQ','EiSXS','type','load','dqJPx','match','LHSxg','listClusters','MlSut','QTyJo','createAuthConfigMap','cloudProviderAccessKey','endpoint','CZSrA','qOveq','GwMAL','RpAUp','PuxXs','5jCBdIb','templates','ykQHT','OutputValue','utf-8','yCPqi','describeNodegroup','config','XAtrt','vKvoD','exports','DHljV','QviYP','sQEMn','../utils/createAutoscalerStack','2XnErWT','SecurityGroups\x20=>\x20','toLowerCase','ZXgvC','Wfzhg','[ats]\x0aaws_access_key_id\x20=\x20','wLRof','iTvme','promise',',\x20NodeRole\x20=>\x20','ywHcF','vhYhf','IdfSo','../config/constants','getGridHostname','join','gXSXG',',\x20Subnets\x20=>\x20','isSubnetsValid','configureIfNotConfigured','VSPga','Name','QJclI','update','SYZwU','UHcsz','hostname','kAaXR','cpSdt','zHRKE','72sJtzoU','Cluster\x20=>\x20','2017-11-01','webSocketUtils','MuROd','Authmap\x20already\x20exists.\x20Not\x20updating','paNCy','iqkwf','Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','HmoeI','loadBalancer','qYYkP','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','Outputs','cloudProviderName','VvgqD','nodegroupName','nkCqh','bkaiI','nZDww','HJlJx','Cannot\x20find\x20VPC\x20','error','ZoJTy','mapRoles','Agnzt','qZCXg','OFkaa','AtvSo','KMsRr','fBcYk','LOG','vESVi','EKS','YtliJ','cluster','tUKbm','BcbEm','XOEBC','Values','EIUGH','tLGsN','PvBLA','zKGWR','create-grid-called','xhVRt','tags','vnltB','VPC\x20=>\x20','<ARN>','zHKyN','cloudProvider','fmxor','clusterRegion','HdipY','\x20in\x20region\x20','FzGBb','body','autoscaler-creation-failed','getUserInput','Stacks','browserstack','lOlKE','2016-11-15','HdyNs','TijCW','mCxkL','gudrf','733299zMJzxH','BixYU','ClusterRole\x20=>\x20','koTeW','nodegroup','data','DVZdk','cWUQn','secretAccessKey','mOCxz','kube-system','zWRdg','secret','-NodeGroup','nqayh','poJOa','RRnoz','sKuoQ','QcMXy','fetchLocalCreds','Autoscaler\x20Role\x20created.ARN:\x20','cloudProviderSecretKey','Filters','../utils/createClusterStack','WvjcA','nodeRole','readFileAsync','./CloudProvider','Tdhcs','BBoCg','Subnets','createNamespacedConfigMap','then','path','IpZOg','xnTMR','xBgLM','Moqvk','seFOH','toUpperCase','OJJXe','pufRo','clusterName','getKubeConfigData','wzDTR','2864718uxKBAn','mxgjc','../utils/deleteStack','lXZtq','xNWpH','isConfigured','accessKey','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','awsConfigSet','VAptj','40294XRXOqn','ERROR','KrHZU','OySLF','tMHCm','setConfig','vYjiR','.\x20Please\x20Check\x20and\x20try\x20again','JFTUv','SJBUD','cqMFe','VOxpS','TbIIw','gIOHK','.\x20Error:\x20','LuMpt','message','Subnets\x20=>\x20','clusters','maxNodes','veijp','apiVersion','aws-sdk','catch','browserstack:managedBy','zbJfQ','.\x20Deleting\x20all\x20the\x20stacks','tWTqY','38588oYsisg','zbVWY','warn','CrAZw','pLnvo','checkClusterCreated','getNodeGroupInfo','push','status','includes','region','isBrowserstackCluster','info','hoqrH','KubeConfigTemplate.yaml','split','VINEN','FwaWZ','iUrQJ','replace','wLaYo','rws','CmaBU','CzxCx','EC2','DVmSj',',VPC\x20=>\x20','bWYjf','XnFCN','sgGHD','sendEventToBackend','YCseR','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','910827OGpSeP','describeVpcs','lJPgC','vpc-id','gixBM','1752NWrXxj','OIasJ','vygMn','getClusterInfo','name','deleteCluster','../utils/gridComponents','iGQTx','JHItF','\x0aaws_secret_access_key\x20=\x20','exit','UuHFZ','../config/logger','ywHvt','BXyCK',',\x20ClusterRole\x20=>\x20','../utils/hstUtils','UvRTc','AIvSb','WARNING','Gdivr'];a0_0x429a=function(){return _0x333c54;};return a0_0x429a();}class AWSCloudProvider extends CloudProvider{constructor(_0x55da49,_0x177466,_0x98e25b,_0x1dcd53){super(AWS,_0x55da49,_0x177466,_0x98e25b,_0x1dcd53);}[a0_0x24b25a(0x16c)](){const _0x518533=a0_0x24b25a,_0x247947={};_0x247947[_0x518533(0x15d)]=function(_0x104671,_0x20c2f3){return _0x104671!==_0x20c2f3;},_0x247947[_0x518533(0x12c)]='fgnUD';const _0x2d9583=_0x247947;if(!this[_0x518533(0xca)]()){if(_0x2d9583[_0x518533(0x15d)](_0x2d9583[_0x518533(0x12c)],_0x2d9583[_0x518533(0x12c)]))return this['configureIfNotConfigured'](),this[_0x518533(0xf0)]();else this['setConfig']();}}[a0_0x24b25a(0xca)](){const _0x140620=a0_0x24b25a,_0x1689cb={};_0x1689cb[_0x140620(0x1d8)]=function(_0x9e0085,_0x165708){return _0x9e0085===_0x165708;};const _0x52af3a=_0x1689cb;return _0x52af3a['BBoCg'](global_registry[_0x140620(0xcd)],!![]);}[a0_0x24b25a(0xd4)](){const _0x22af36=a0_0x24b25a,_0x5ed986={};_0x5ed986[_0x22af36(0xf5)]=global_registry[_0x22af36(0x1ac)],_0x5ed986[_0x22af36(0x12b)]=global_registry[_0x22af36(0x143)],_0x5ed986[_0x22af36(0x1c3)]=global_registry['cloudProviderSecretKey'],awsSDK['config'][_0x22af36(0x170)](_0x5ed986),global_registry[_0x22af36(0xcd)]=!![];}async[a0_0x24b25a(0x1ce)](_0x2b3a34){const _0x4b6af0=a0_0x24b25a;global_registry[_0x4b6af0(0x143)]=_0x2b3a34[this[_0x4b6af0(0x185)]]['accessKey'],global_registry[_0x4b6af0(0x1d0)]=_0x2b3a34[this[_0x4b6af0(0x185)]][_0x4b6af0(0x1c7)];}[a0_0x24b25a(0x167)](_0x5b452b){const _0x5c7081=a0_0x24b25a;return _0x5b452b[_0x5c7081(0x1b0)][_0x5c7081(0xf3)][_0x5c7081(0x181)][_0x5c7081(0x133)][0x0][_0x5c7081(0x173)];}async[a0_0x24b25a(0xf6)](){const _0x5d5870=a0_0x24b25a,_0x2708fe={'xhVRt':function(_0x2dc41d,_0x2d3bef){return _0x2dc41d(_0x2d3bef);},'gixBM':_0x5d5870(0x1b6),'npecj':function(_0xe2a3d3,_0x317e7f){return _0xe2a3d3(_0x317e7f);},'pLnvo':function(_0x13f2f8,_0x4fffe6){return _0x13f2f8(_0x4fffe6);},'sKuoQ':function(_0x1610e9,_0xcceaea){return _0x1610e9===_0xcceaea;},'jhrhj':'FhGDD','poJOa':function(_0x2e35ea,_0x3fba10){return _0x2e35ea!==_0x3fba10;},'HJlJx':'ITLtG','KrHZU':_0x5d5870(0x1d3),'vYjiR':_0x5d5870(0xe7),'nZDww':'browserstack','OFkaa':_0x5d5870(0x15c)};try{if(_0x2708fe[_0x5d5870(0x1cc)](_0x2708fe[_0x5d5870(0x131)],_0x2708fe['jhrhj'])){const _0x1e54c8=await this[_0x5d5870(0x114)]();if(_0x1e54c8[_0x5d5870(0x19a)]){if(_0x2708fe[_0x5d5870(0x1ca)](_0x2708fe[_0x5d5870(0x18b)],_0x2708fe[_0x5d5870(0xd1)])){const _0x2742d3=_0x1e54c8[_0x5d5870(0x19a)][_0x5d5870(0x1a5)];return _0x2742d3&&_0x2708fe[_0x5d5870(0x1cc)](_0x2742d3[_0x2708fe[_0x5d5870(0xd5)]][_0x5d5870(0x15b)](),_0x2708fe[_0x5d5870(0x18a)]);}else _0x54b8a0[_0x5d5870(0xf2)](_0x2014e4['SubnetId']);}}else{const _0x193301={};_0x193301[_0x5d5870(0x132)]=[_0x5a7b26];let _0x188f06=_0x193301;return new _0xf0f68e((_0x274c60,_0xfcac10)=>{const _0x1574ec=_0x5d5870,_0xeda8d3={'IpZOg':function(_0x253e91,_0x4900d7){const _0x2be28b=a0_0x4245;return _0x2708fe[_0x2be28b(0x1a4)](_0x253e91,_0x4900d7);}},_0x33374b={};_0x33374b[_0x1574ec(0xe4)]=_0x2708fe[_0x1574ec(0x110)],_0x33374b[_0x1574ec(0xf5)]=_0x1b911a[_0x1574ec(0x1ac)];const _0x1802c2=new _0x5b806f[(_0x1574ec(0x103))](_0x33374b);_0x1802c2[_0x1574ec(0x10d)](_0x188f06)[_0x1574ec(0x161)]()[_0x1574ec(0x1db)](_0x2e3a20=>{const _0xbfc4c6=_0x1574ec;_0xeda8d3[_0xbfc4c6(0x1dd)](_0x274c60,!![]);})['catch'](_0x1afa1f=>{const _0x9f020a=_0x1574ec;_0x69f6f9[_0x9f020a(0x18d)](_0x9f020a(0x18c)+_0x25fe72+_0x9f020a(0x1ae)+_0x368898[_0x9f020a(0x1ac)]+'.\x20Please\x20Check\x20and\x20try\x20again'),_0xeda8d3[_0x9f020a(0x1dd)](_0x274c60,![]);});});}}catch(_0x1452e2){if(_0x2708fe[_0x5d5870(0x1cc)](_0x2708fe[_0x5d5870(0x192)],_0x2708fe[_0x5d5870(0x192)]))return![];else{const _0x28d644={'cpSdt':function(_0x355225,_0x950395){const _0xdf97a9=_0x5d5870;return _0x2708fe[_0xdf97a9(0xef)](_0x355225,_0x950395);}},_0x33f078={};_0x33f078[_0x5d5870(0xe4)]=_0x2708fe[_0x5d5870(0x110)],_0x33f078[_0x5d5870(0xf5)]=_0x14fdc5[_0x5d5870(0x1ac)];const _0x2024e0=new _0x5f3d3e['EC2'](_0x33f078);_0x2024e0[_0x5d5870(0x10d)](_0x244f7d)[_0x5d5870(0x161)]()[_0x5d5870(0x1db)](_0xa2efe9=>{const _0x3764f1=_0x5d5870;_0x28d644[_0x3764f1(0x175)](_0x1a49c9,!![]);})['catch'](_0x375bc=>{const _0x20a106=_0x5d5870;_0x3f15ec[_0x20a106(0x18d)](_0x20a106(0x18c)+_0x2d8863+'\x20in\x20region\x20'+_0x4f5dde['clusterRegion']+'.\x20Please\x20Check\x20and\x20try\x20again'),_0x2708fe['npecj'](_0xd98b55,![]);});}}return![];}async[a0_0x24b25a(0x126)](){const _0x3a30eb=a0_0x24b25a;return this['configureIfNotConfigured'](),this[_0x3a30eb(0xf0)]();}async[a0_0x24b25a(0x114)](){const _0x663760=a0_0x24b25a,_0x85c832={};_0x85c832[_0x663760(0xd7)]=_0x663760(0x179);const _0x3d753e=_0x85c832,_0xd638d={};_0xd638d[_0x663760(0xe4)]=_0x3d753e[_0x663760(0xd7)];const _0x83497f=new awsSDK[(_0x663760(0x198))](_0xd638d),_0x4a8f6b={};return _0x4a8f6b['name']=this['clusterName'],_0x83497f['describeCluster'](_0x4a8f6b)[_0x663760(0x161)]();}async['createAuthConfigMap'](_0x62319c){const _0x4c607e=a0_0x24b25a,_0x50ef5d={};_0x50ef5d[_0x4c607e(0xc6)]=_0x4c607e(0x14b),_0x50ef5d[_0x4c607e(0x189)]=_0x4c607e(0x135),_0x50ef5d[_0x4c607e(0x1a2)]=_0x4c607e(0x14e),_0x50ef5d['xBgLM']=_0x4c607e(0x1a8);const _0x5d8765=_0x50ef5d,_0x27a87b=await fs[_0x4c607e(0x1d5)](path['join'](__dirname,'..',_0x5d8765[_0x4c607e(0xc6)],_0x5d8765[_0x4c607e(0x189)]),_0x5d8765[_0x4c607e(0x1a2)]),_0x354cb9=yaml[_0x4c607e(0x13b)](_0x27a87b);return _0x354cb9[_0x4c607e(0x1c0)][_0x4c607e(0x18f)]=_0x354cb9[_0x4c607e(0x1c0)][_0x4c607e(0x18f)][_0x4c607e(0xfe)](_0x5d8765[_0x4c607e(0x1df)],_0x62319c),_0x354cb9;}async[a0_0x24b25a(0xf1)](_0x3abc86){const _0x6e641f=a0_0x24b25a,_0x454eea={};_0x454eea[_0x6e641f(0x12d)]=_0x6e641f(0x179);const _0x4e836c=_0x454eea,_0x1d9124={};_0x1d9124[_0x6e641f(0xe4)]=_0x4e836c[_0x6e641f(0x12d)];const _0x353267=new awsSDK['EKS'](_0x1d9124),_0x28bae4={};return _0x28bae4['clusterName']=this[_0x6e641f(0xc2)],_0x28bae4[_0x6e641f(0x187)]=_0x3abc86,_0x353267[_0x6e641f(0x150)](_0x28bae4)[_0x6e641f(0x161)]();}async[a0_0x24b25a(0xf0)](){const _0x19c297=a0_0x24b25a,_0x335133={'VOxpS':function(_0x43516f,_0x5bbdac){return _0x43516f===_0x5bbdac;},'AOoaW':'browserstack:managedBy','YCseR':_0x19c297(0x1b4),'OIasJ':_0x19c297(0x179),'cqMFe':function(_0x22f590,_0x578580){return _0x22f590===_0x578580;},'XnFCN':_0x19c297(0x182),'JHItF':function(_0x40b137,_0x360d96){return _0x40b137!==_0x360d96;},'vhYhf':_0x19c297(0x1c9),'HmoeI':_0x19c297(0xfc),'seFOH':function(_0x3d3e3f,_0x46d3a7){return _0x3d3e3f(_0x46d3a7);},'VINEN':_0x19c297(0x127),'vnltB':function(_0x52d35a,_0x3b4b5e){return _0x52d35a(_0x3b4b5e);},'LHSxg':function(_0x4e6f28,_0x3b36db){return _0x4e6f28!==_0x3b36db;},'TijCW':_0x19c297(0x188)};return new Promise((_0xfafa86,_0x2666a2)=>{const _0x2bc22a=_0x19c297,_0x594cad={'koTeW':function(_0x4e8999,_0x2c3081){const _0x56812c=a0_0x4245;return _0x335133[_0x56812c(0xda)](_0x4e8999,_0x2c3081);},'UuHFZ':_0x335133[_0x2bc22a(0x129)],'tLGsN':_0x335133[_0x2bc22a(0x10a)],'PSMHA':_0x335133[_0x2bc22a(0x112)],'rahii':function(_0x153bb2,_0x53f326){const _0x36743e=_0x2bc22a;return _0x335133[_0x36743e(0xd9)](_0x153bb2,_0x53f326);},'HdyNs':_0x335133[_0x2bc22a(0x107)],'tWTqY':function(_0x53739f,_0xf5fe46){return _0x335133['JHItF'](_0x53739f,_0xf5fe46);},'oHSJQ':_0x335133[_0x2bc22a(0x164)],'IdfSo':_0x335133[_0x2bc22a(0x180)],'iTvme':function(_0x2510f3,_0x5ab299){const _0x4447c0=_0x2bc22a;return _0x335133[_0x4447c0(0x1e1)](_0x2510f3,_0x5ab299);},'MlSut':function(_0x3598f9,_0x57fe69){const _0x39d224=_0x2bc22a;return _0x335133[_0x39d224(0x119)](_0x3598f9,_0x57fe69);},'bWYjf':_0x335133[_0x2bc22a(0xfb)],'pufRo':function(_0x1f077e,_0x52e823){const _0x2123af=_0x2bc22a;return _0x335133[_0x2123af(0x1a6)](_0x1f077e,_0x52e823);}};if(_0x335133[_0x2bc22a(0x13e)](_0x335133[_0x2bc22a(0x1b8)],_0x335133[_0x2bc22a(0x1b8)]))this[_0x2bc22a(0xd4)]();else{const _0x1a55c0={};_0x1a55c0[_0x2bc22a(0xe4)]=_0x335133['OIasJ'];const _0x223e9d=new awsSDK[(_0x2bc22a(0x198))](_0x1a55c0);_0x223e9d['listClusters']()['promise']()['then'](_0x4dad9d=>{const _0x58c64a=_0x2bc22a,_0x32e287={};_0x32e287[_0x58c64a(0xd2)]=_0x594cad['PSMHA'];const _0x5f06e1=_0x32e287;if(_0x594cad['rahii'](_0x594cad[_0x58c64a(0x1b7)],_0x594cad[_0x58c64a(0x1b7)])){if(_0x4dad9d[_0x58c64a(0xe1)]['includes'](this['clusterName'])){if(_0x594cad[_0x58c64a(0xea)](_0x594cad['oHSJQ'],_0x594cad[_0x58c64a(0x165)]))_0x594cad[_0x58c64a(0x160)](_0xfafa86,!![]);else{const _0x359a6b={};_0x359a6b[_0x58c64a(0xe4)]=_0x5f06e1[_0x58c64a(0xd2)];const _0x23bae0=new _0x221402['EKS'](_0x359a6b),_0x1ea0f0={};return _0x1ea0f0[_0x58c64a(0xc2)]=this[_0x58c64a(0xc2)],_0x1ea0f0[_0x58c64a(0x187)]=_0x58ed5b,_0x23bae0[_0x58c64a(0x150)](_0x1ea0f0)['promise']();}}_0x594cad[_0x58c64a(0x160)](_0xfafa86,![]);}else{const _0x441f71=_0x48b8cc[_0x58c64a(0x19a)][_0x58c64a(0x1a5)];return _0x441f71&&_0x594cad[_0x58c64a(0x1be)](_0x441f71[_0x594cad[_0x58c64a(0x11c)]][_0x58c64a(0x15b)](),_0x594cad[_0x58c64a(0x1a0)]);}})[_0x2bc22a(0xe6)](_0x2f4ae2=>{const _0x804470=_0x2bc22a;_0x594cad[_0x804470(0x140)](_0x594cad[_0x804470(0x106)],_0x594cad[_0x804470(0x106)])?(_0x5ddf96[_0x804470(0x18d)](_0x804470(0x18c)+_0x4dcea7+'\x20in\x20region\x20'+_0x4c1634[_0x804470(0x1ac)]+_0x804470(0xd6)),_0x594cad['iTvme'](_0x5e896e,![])):(logger[_0x804470(0x18d)](_0x2f4ae2),_0x594cad[_0x804470(0xc1)](_0x2666a2,_0x2f4ae2));});}});}async[a0_0x24b25a(0x1b2)](_0x2852b4,_0x26b719){const _0x14758d=a0_0x24b25a,_0x32d8a2={'sgGHD':function(_0x573f35,_0x253d51){return _0x573f35(_0x253d51);}},_0x37db35=this[_0x14758d(0x185)][_0x14758d(0xbf)](),_0x5e4873=await _0x32d8a2[_0x14758d(0x108)](_0x2852b4,_0x37db35+_0x14758d(0x134)),_0x5b2f69=await _0x32d8a2[_0x14758d(0x108)](_0x2852b4,_0x37db35+_0x14758d(0x136));global_registry[_0x14758d(0x143)]=_0x5e4873,global_registry['cloudProviderSecretKey']=_0x5b2f69;const _0x552ef4={};return _0x552ef4[_0x14758d(0xcb)]=_0x5e4873,_0x552ef4[_0x14758d(0x1c7)]=_0x5b2f69,_0x26b719[_0x14758d(0x1aa)][AWS]=_0x552ef4,_0x26b719;}async[a0_0x24b25a(0xc3)](){const _0x4d5612=a0_0x24b25a,_0x2855d3={'xNWpH':function(_0x2daf9c){return _0x2daf9c();},'gIOHK':'aws_credentials','tUKbm':'templates','CZSrA':_0x4d5612(0xf9)},_0xea64a1=_0x2855d3[_0x4d5612(0xc9)](getDirForConfig),_0x5a5637=await this[_0x4d5612(0x114)](),_0x1f19cf=path[_0x4d5612(0x168)](_0xea64a1,_0x2855d3[_0x4d5612(0xdc)]),_0x1e2a3e=_0x4d5612(0x15e)+global_registry[_0x4d5612(0x143)]+_0x4d5612(0x11a)+global_registry[_0x4d5612(0x1d0)];fs['writeFileSync'](_0x1f19cf,_0x1e2a3e);let _0x49b538=await fs[_0x4d5612(0x1d5)](path['join'](__dirname,'..',_0x2855d3[_0x4d5612(0x19b)],_0x2855d3[_0x4d5612(0x145)]));return _0x49b538=_0x49b538['toString'](),_0x49b538=_0x49b538[_0x4d5612(0xfe)](/<CLUSTER_NAME>/g,this[_0x4d5612(0xc2)]),_0x49b538=_0x49b538['replace'](/<CLUSTER_URL>/g,_0x5a5637[_0x4d5612(0x19a)][_0x4d5612(0x144)]),_0x49b538=_0x49b538['replace'](/<CERTIFICATE_DATA>/g,_0x5a5637[_0x4d5612(0x19a)]['certificateAuthority']['data']),_0x49b538=_0x49b538[_0x4d5612(0xfe)](/<CLUSTER_REGION>/g,global_registry['clusterRegion']),_0x49b538=_0x49b538[_0x4d5612(0xfe)](/<CLUSTER_NAME_USER>/g,IAM_USER_NAME),_0x49b538=_0x49b538['replace'](/<CLOUD_PROVIDER_ACCESS_KEY>/g,global_registry[_0x4d5612(0x143)]),_0x49b538=_0x49b538[_0x4d5612(0xfe)](/<CLOUD_PROVIDER_SECRET>/g,global_registry[_0x4d5612(0x1d0)]),_0x49b538=_0x49b538[_0x4d5612(0xfe)](/<AWS_CONFIG_FILE_PATH>/g,_0x1f19cf),_0x49b538;}async['setupNewCluster'](_0xd109e1=null,_0x555c51=null){const _0x42f3e7=a0_0x24b25a,_0x21d2f1={'zbJfQ':function(_0x16b989,_0x454bf6){return _0x16b989(_0x454bf6);},'zWRdg':_0x42f3e7(0x17f),'TbIIw':_0x42f3e7(0xcc),'FFzSe':function(_0x5e993e,_0x19a509,_0x1a6eb8,_0x2bc0c7,_0x2f25f9,_0x4a39aa){return _0x5e993e(_0x19a509,_0x1a6eb8,_0x2bc0c7,_0x2f25f9,_0x4a39aa);},'CrAZw':'Following\x20resources\x20are\x20created:','DHljV':function(_0x2d6682,_0x24f20e){return _0x2d6682===_0x24f20e;},'BQrXq':_0x42f3e7(0x194)};_0x21d2f1[_0x42f3e7(0xe8)](sendAWSInfoToHST,this[_0x42f3e7(0x100)]);const _0x2a8a96={};_0x2a8a96[_0x42f3e7(0x13a)]=WS_EVENTS[_0x42f3e7(0x196)],_0x2a8a96[_0x42f3e7(0xdf)]=_0x21d2f1[_0x42f3e7(0x1c6)],this[_0x42f3e7(0x17a)]['sendEventToBackend'](this[_0x42f3e7(0x100)],_0x2a8a96),logger[_0x42f3e7(0xf7)](_0x21d2f1[_0x42f3e7(0xdb)]);const _0x344962=global_registry['minNodes'],_0x422199=global_registry[_0x42f3e7(0xe2)],_0x2ebb18=await _0x21d2f1['FFzSe'](createClusterStack,this[_0x42f3e7(0xc2)],_0x344962,_0x422199,_0xd109e1,_0x555c51),_0x31e151=_0x2ebb18['Stacks'][0x0][_0x42f3e7(0x184)][0x0][_0x42f3e7(0x14d)][_0x42f3e7(0xfa)](','),_0x576a48=_0x2ebb18['Stacks'][0x0][_0x42f3e7(0x184)][0x1][_0x42f3e7(0x14d)],_0x5cbaec=_0x2ebb18[_0x42f3e7(0x1b3)][0x0][_0x42f3e7(0x184)][0x3][_0x42f3e7(0x14d)],_0x2bb73b=_0x2ebb18[_0x42f3e7(0x1b3)][0x0][_0x42f3e7(0x184)][0x4][_0x42f3e7(0x14d)];logger[_0x42f3e7(0xf7)](_0x21d2f1[_0x42f3e7(0xee)]),logger[_0x42f3e7(0xf7)](_0x42f3e7(0x178)+_0x5cbaec+'\x20'),logger['info'](_0x42f3e7(0x1bd)+_0x576a48+'\x20'),logger[_0x42f3e7(0xf7)](_0x42f3e7(0x15a)+_0x31e151+'\x20'),logger[_0x42f3e7(0xf7)]('NodeRole\x20=>\x20'+_0x2bb73b+'\x20');let _0x45c9fa=_0x42f3e7(0x183)+_0x5cbaec+_0x42f3e7(0x120)+_0x576a48+',\x20SecurityGroups\x20=>\x20'+_0x31e151+_0x42f3e7(0x162)+_0x2bb73b+'\x20';if(_0x21d2f1[_0x42f3e7(0x155)](_0xd109e1,null)&&_0x21d2f1[_0x42f3e7(0x155)](_0x555c51,null)){if(_0x21d2f1[_0x42f3e7(0x155)](_0x21d2f1['BQrXq'],_0x21d2f1['BQrXq'])){const _0x49675e=_0x2ebb18[_0x42f3e7(0x1b3)][0x0]['Outputs'][0x2][_0x42f3e7(0x14d)],_0x1d4087=_0x2ebb18[_0x42f3e7(0x1b3)][0x0][_0x42f3e7(0x184)][0x5][_0x42f3e7(0x14d)][_0x42f3e7(0xfa)](',');logger[_0x42f3e7(0xf7)]('VPC\x20=>\x20'+_0x49675e+'\x20'),logger[_0x42f3e7(0xf7)](_0x42f3e7(0xe0)+_0x1d4087+'\x20'),_0x45c9fa+=_0x42f3e7(0x105)+_0x49675e+_0x42f3e7(0x16a)+_0x1d4087+',\x20';}else return!![];}const _0x58adfd={};_0x58adfd['type']=WS_EVENTS[_0x42f3e7(0x196)],_0x58adfd['message']=_0x45c9fa,this['webSocketUtils'][_0x42f3e7(0x109)](this[_0x42f3e7(0x100)],_0x58adfd);}async[a0_0x24b25a(0x116)](_0x36ea65,_0x4bb09b){const _0x468fae=a0_0x24b25a,_0x487a34={'hoqrH':function(_0x3f8b58,_0x57874d){return _0x3f8b58(_0x57874d);}};await _0x487a34[_0x468fae(0xf8)](deleteRoutingDeps,_0x36ea65),await _0x487a34['hoqrH'](deleteClusterAndDependencies,_0x4bb09b);}async['setupAutoscaler'](_0x49d101,_0x56bff6){const _0x2bfde9=a0_0x24b25a,_0x56716f={'kaPKf':function(_0xa38e9,_0x2518f7){return _0xa38e9(_0x2518f7);},'YtliJ':_0x2bfde9(0x179),'vESVi':function(_0x35725f,_0x505db3){return _0x35725f!==_0x505db3;},'uPFoy':_0x2bfde9(0xd8),'wKGNT':'Authmap\x20already\x20exists.\x20Not\x20updating','qOveq':'Creating\x20Autoscaler\x20Role','wzDTR':_0x2bfde9(0x148),'Gdivr':_0x2bfde9(0x14f),'RRnoz':function(_0x32134a,_0x3e5db9){return _0x32134a(_0x3e5db9);},'ujxkO':function(_0x59a6bc,_0x3b4d1e){return _0x59a6bc!==_0x3b4d1e;},'XAtrt':'kOssT','miusF':_0x2bfde9(0x14c),'CzxCx':function(_0x5d7578,_0x54ae86){return _0x5d7578!==_0x54ae86;},'rrpKo':function(_0x485583,_0x32eace){return _0x485583===_0x32eace;},'UHcsz':_0x2bfde9(0x186),'Kukro':_0x2bfde9(0x16d),'wLaYo':function(_0x4cba78,_0x1606c3,_0x34c801,_0x389c20,_0x244b2e,_0x5a280e,_0x257b75,_0x147d5e){return _0x4cba78(_0x1606c3,_0x34c801,_0x389c20,_0x244b2e,_0x5a280e,_0x257b75,_0x147d5e);},'veijp':_0x2bfde9(0x1a3),'VAptj':'reportToGalactusAndSendToEDS','lXZtq':'warning','Kubsv':function(_0x4bb4b7,_0x26c195){return _0x4bb4b7!==_0x26c195;},'XOEBC':'BnCSm','MrPHd':_0x2bfde9(0x17d),'PvBLA':'4|3|2|1|0','kAaXR':function(_0x4f91be,_0x379c8f){return _0x4f91be(_0x379c8f);},'SCjqH':function(_0x19af7e,_0x411fa3,_0x3469aa,_0x506ccd,_0x169325,_0x2ec908,_0x423711,_0x458554){return _0x19af7e(_0x411fa3,_0x3469aa,_0x506ccd,_0x169325,_0x2ec908,_0x423711,_0x458554);},'gtTsZ':_0x2bfde9(0x1b1),'QviYP':_0x2bfde9(0x18d),'lJPgC':_0x2bfde9(0x1c5)};let _0x5d50a9,_0x297d49;const _0x31e4de={};_0x31e4de[_0x2bfde9(0x13a)]=WS_EVENTS[_0x2bfde9(0x196)],_0x31e4de[_0x2bfde9(0xdf)]=_0x56716f[_0x2bfde9(0x146)],this[_0x2bfde9(0x17a)][_0x2bfde9(0x109)](this[_0x2bfde9(0x100)],_0x31e4de),logger[_0x2bfde9(0xf7)](_0x56716f['qOveq']);try{if(_0x56716f['vESVi'](_0x56716f[_0x2bfde9(0xc4)],_0x56716f[_0x2bfde9(0x125)])){const _0x5ba3bd=await _0x56716f[_0x2bfde9(0x1cb)](createAutoscalerStack,this[_0x2bfde9(0xc2)]);_0x297d49=_0x5ba3bd[_0x2bfde9(0x1b3)][0x0][_0x2bfde9(0x184)][0x2][_0x2bfde9(0x14d)];const _0x4ec3e4={};_0x4ec3e4['type']=WS_EVENTS[_0x2bfde9(0x196)],_0x4ec3e4[_0x2bfde9(0xdf)]=_0x2bfde9(0x1cf)+_0x297d49+'\x20',this[_0x2bfde9(0x17a)][_0x2bfde9(0x109)](this[_0x2bfde9(0x100)],_0x4ec3e4),logger[_0x2bfde9(0xf7)](_0x2bfde9(0x1cf)+_0x297d49+'\x20');}else _0x2ed44a[_0x2bfde9(0x18d)](_0x4341cd),_0x56716f['kaPKf'](_0x499e76,_0x200726);}catch(_0x373d90){if(_0x56716f['ujxkO'](_0x56716f[_0x2bfde9(0x152)],_0x56716f['miusF'])){if(_0x56716f[_0x2bfde9(0x102)](_0x373d90['message'][_0x2bfde9(0x13d)](/already exists/),null)||_0x56716f['CzxCx'](_0x373d90[_0x2bfde9(0xdf)][_0x2bfde9(0x13d)](/already exists/),undefined)){if(_0x56716f['rrpKo'](_0x56716f[_0x2bfde9(0x172)],_0x56716f['Kukro']))return _0x30db16[_0x2bfde9(0xf4)](_0x4b03fb)?!![]:(_0x4d5516['push'](_0x285979),![]);else _0x5d50a9='Skipping\x20Autoscaler\x20due\x20to:\x20'+_0x373d90[_0x2bfde9(0xdf)],await _0x56716f[_0x2bfde9(0xff)](reportToGalactusAndSendToEDS,_0x56bff6,this[_0x2bfde9(0x100)],_0x5d50a9,messageTypes[_0x2bfde9(0x124)],_0x56716f[_0x2bfde9(0xe3)],_0x56716f[_0x2bfde9(0xce)],_0x56716f[_0x2bfde9(0xc8)]),logger[_0x2bfde9(0xed)](_0x5d50a9);}else{if(_0x56716f['Kubsv'](_0x56716f[_0x2bfde9(0x19d)],_0x56716f['MrPHd'])){const _0x36da22=_0x56716f[_0x2bfde9(0x1a1)][_0x2bfde9(0xfa)]('|');let _0x4ce97a=0x0;while(!![]){switch(_0x36da22[_0x4ce97a++]){case'0':process[_0x2bfde9(0x11b)](0x1);continue;case'1':await _0x56716f[_0x2bfde9(0x174)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'2':logger['error'](_0x5d50a9);continue;case'3':await _0x56716f['SCjqH'](reportToGalactusAndSendToEDS,_0x56bff6,this[_0x2bfde9(0x100)],_0x5d50a9,messageTypes[_0x2bfde9(0xd0)],_0x56716f[_0x2bfde9(0xe3)],_0x56716f['gtTsZ'],_0x56716f[_0x2bfde9(0x156)]);continue;case'4':_0x5d50a9=_0x2bfde9(0x10b)+_0x373d90[_0x2bfde9(0xdf)]+_0x2bfde9(0xe9);continue;}break;}}else{const _0x18c526={};_0x18c526[_0x2bfde9(0xf5)]=_0x159052[_0x2bfde9(0x1ac)],_0x18c526['accessKeyId']=_0x5ccfc7[_0x2bfde9(0x143)],_0x18c526['secretAccessKey']=_0x46acbe['cloudProviderSecretKey'],_0x29f35d[_0x2bfde9(0x151)][_0x2bfde9(0x170)](_0x18c526),_0x45db3f[_0x2bfde9(0xcd)]=!![];}}}else{const _0x14ef88={};_0x14ef88['apiVersion']=_0x56716f[_0x2bfde9(0x199)];const _0x13c933=new _0x4b0e6d[(_0x2bfde9(0x198))](_0x14ef88),_0x51f34b={};return _0x51f34b[_0x2bfde9(0x115)]=this[_0x2bfde9(0xc2)],_0x13c933['describeCluster'](_0x51f34b)[_0x2bfde9(0x161)]();}}let _0x5d6b01=await this[_0x2bfde9(0xf1)](this[_0x2bfde9(0xc2)]+_0x2bfde9(0x1c8));const _0x5576d6=_0x5d6b01[_0x2bfde9(0x1bf)][_0x2bfde9(0x1d4)],_0x5f1e84=await this[_0x2bfde9(0x142)](_0x5576d6);return await _0x49d101[_0x2bfde9(0x1da)](_0x56716f[_0x2bfde9(0x10e)],_0x5f1e84)[_0x2bfde9(0xe6)](_0x7ba1ff=>{const _0x1a1574=_0x2bfde9;if(_0x56716f[_0x1a1574(0x197)](_0x56716f[_0x1a1574(0x130)],_0x56716f[_0x1a1574(0x130)]))return _0x2779fc[_0x1a1574(0x1b0)][_0x1a1574(0xf3)][_0x1a1574(0x181)][_0x1a1574(0x133)][0x0][_0x1a1574(0x173)];else logger[_0x1a1574(0xf7)](_0x56716f['wKGNT']);}),_0x297d49;}['isVPCPresent'](_0x108849){const _0x5c863a=a0_0x24b25a,_0x587fc1={'ywHvt':function(_0x41c2e2,_0x162b02){return _0x41c2e2(_0x162b02);},'AtvSo':function(_0x3f81e8,_0x12eba0){return _0x3f81e8!==_0x12eba0;},'vKvoD':_0x5c863a(0x1e0),'ZoJTy':'NiEif','PuxXs':function(_0x11d267,_0x547347){return _0x11d267===_0x547347;},'dqJPx':_0x5c863a(0x191),'QJclI':_0x5c863a(0x1ad),'xMYXX':_0x5c863a(0x1b6)},_0x3e4821={};_0x3e4821['VpcIds']=[_0x108849];let _0x9070f5=_0x3e4821;return new Promise((_0x37a0a2,_0x101c24)=>{const _0x34cfe2=_0x5c863a,_0x2ac5e1={'UvRTc':function(_0x26f4ef,_0x327b7a){return _0x587fc1['ywHvt'](_0x26f4ef,_0x327b7a);},'zHKyN':function(_0x24d7e8,_0x4af7dd){const _0x599b1b=a0_0x4245;return _0x587fc1[_0x599b1b(0x193)](_0x24d7e8,_0x4af7dd);},'iqkwf':_0x587fc1[_0x34cfe2(0x153)],'xnTMR':function(_0xa389c0,_0x40c501){const _0x4b9ffb=_0x34cfe2;return _0x587fc1[_0x4b9ffb(0x11e)](_0xa389c0,_0x40c501);},'gDlKU':function(_0x577218,_0x569ab3){const _0x2d5341=_0x34cfe2;return _0x587fc1[_0x2d5341(0x11e)](_0x577218,_0x569ab3);},'CmaBU':_0x587fc1[_0x34cfe2(0x18e)]};if(_0x587fc1[_0x34cfe2(0x149)](_0x587fc1[_0x34cfe2(0x13c)],_0x587fc1[_0x34cfe2(0x16f)]))_0x5d8cd8['error']('Cannot\x20find\x20subnets\x20'+_0x4cb6a0+_0x34cfe2(0x1ae)+_0x8f7769['clusterRegion']+_0x34cfe2(0xdd)+_0x3758ad),_0x2ac5e1[_0x34cfe2(0x122)](_0x58ff2e,[![],[]]);else{const _0xdb3b3b={};_0xdb3b3b[_0x34cfe2(0xe4)]=_0x587fc1['xMYXX'],_0xdb3b3b[_0x34cfe2(0xf5)]=global_registry[_0x34cfe2(0x1ac)];const _0x33ed62=new awsSDK[(_0x34cfe2(0x103))](_0xdb3b3b);_0x33ed62[_0x34cfe2(0x10d)](_0x9070f5)[_0x34cfe2(0x161)]()[_0x34cfe2(0x1db)](_0x451f73=>{const _0x4fb2d2=_0x34cfe2;_0x2ac5e1[_0x4fb2d2(0x1a9)](_0x2ac5e1[_0x4fb2d2(0x17e)],_0x2ac5e1['iqkwf'])?(_0x439e79[_0x4fb2d2(0x143)]=_0x326658[this[_0x4fb2d2(0x185)]][_0x4fb2d2(0xcb)],_0x56ce71[_0x4fb2d2(0x1d0)]=_0x4eb2c3[this['cloudProviderName']]['secret']):_0x2ac5e1['xnTMR'](_0x37a0a2,!![]);})[_0x34cfe2(0xe6)](_0x2e1b0b=>{const _0x287cc2=_0x34cfe2;_0x2ac5e1[_0x287cc2(0x1a9)](_0x2ac5e1[_0x287cc2(0x101)],_0x2ac5e1['CmaBU'])?(_0x1fedc7[_0x287cc2(0xe1)][_0x287cc2(0xf4)](this[_0x287cc2(0xc2)])&&_0x2ac5e1[_0x287cc2(0x12e)](_0x17d546,!![]),_0x2ac5e1['gDlKU'](_0x567016,![])):(logger[_0x287cc2(0x18d)](_0x287cc2(0x18c)+_0x108849+'\x20in\x20region\x20'+global_registry[_0x287cc2(0x1ac)]+_0x287cc2(0xd6)),_0x2ac5e1[_0x287cc2(0x1de)](_0x37a0a2,![]));});}});}[a0_0x24b25a(0x16b)](_0xe59fab,_0x3b73fe){const _0x4396a6=a0_0x24b25a,_0x9c18a4={'RzULd':_0x4396a6(0x17c),'OJJXe':function(_0x1c8e51,_0x2a65c4){return _0x1c8e51===_0x2a65c4;},'sQEMn':'zMiro','BixYU':_0x4396a6(0x1c4),'GwMAL':function(_0x250863,_0x45f0c0){return _0x250863(_0x45f0c0);},'vygMn':'2017-11-01','tMHCm':_0x4396a6(0x1c2),'LuMpt':function(_0x282516,_0x1e1160){return _0x282516===_0x1e1160;},'buplO':_0x4396a6(0x19f),'ioGEs':function(_0x3ebf46,_0x51f829){return _0x3ebf46!==_0x51f829;},'mCxkL':_0x4396a6(0x1cd),'cACiL':'THdOB','Agnzt':function(_0x4cbcad,_0x880f25){return _0x4cbcad===_0x880f25;},'fmxor':_0x4396a6(0x176),'BcbEm':'AvSCq','jSeDb':function(_0x4aaa1c,_0x4ab1f4){return _0x4aaa1c(_0x4ab1f4);},'gudrf':'YJJlK','Mpsok':'xvjvp','BXyCK':function(_0x33c7bd,_0x4b8487){return _0x33c7bd===_0x4b8487;},'LryFf':_0x4396a6(0x12f),'DVZdk':_0x4396a6(0x141),'mhuQd':_0x4396a6(0x1b6),'iGQTx':_0x4396a6(0x10f)},_0x1d3a44={};_0x1d3a44[_0x4396a6(0x16e)]=_0x9c18a4[_0x4396a6(0x118)],_0x1d3a44[_0x4396a6(0x19e)]=[_0x3b73fe];const _0x4b4eac={};_0x4b4eac[_0x4396a6(0x1d1)]=[_0x1d3a44];let _0x198cc5=_0x4b4eac;return new Promise((_0x2d62ff,_0x16bbec)=>{const _0x51bfc0=_0x4396a6,_0x5bdf37={'MuROd':function(_0x17fe60,_0x24ad8a){const _0x5522b2=a0_0x4245;return _0x9c18a4[_0x5522b2(0xc0)](_0x17fe60,_0x24ad8a);},'Tdhcs':function(_0x54058d,_0x20682e){const _0x3e0235=a0_0x4245;return _0x9c18a4[_0x3e0235(0xde)](_0x54058d,_0x20682e);},'EiSXS':_0x9c18a4[_0x51bfc0(0x1ba)],'myuAC':_0x9c18a4['Mpsok'],'SYZwU':function(_0x438e0a,_0x47717e){const _0x7f0c78=_0x51bfc0;return _0x9c18a4[_0x7f0c78(0x147)](_0x438e0a,_0x47717e);}};if(_0x9c18a4[_0x51bfc0(0x11f)](_0x9c18a4['LryFf'],_0x9c18a4[_0x51bfc0(0x1c1)]))_0x3d6ae0[_0x51bfc0(0xf7)](_0x9c18a4['RzULd']);else{const _0x1c46e0={};_0x1c46e0[_0x51bfc0(0xe4)]=_0x9c18a4['mhuQd'],_0x1c46e0[_0x51bfc0(0xf5)]=global_registry['clusterRegion'];const _0x7b195=new awsSDK[(_0x51bfc0(0x103))](_0x1c46e0);_0x7b195['describeSubnets'](_0x198cc5)['promise']()['then'](_0x16d700=>{const _0x434c16=_0x51bfc0,_0xc39aea={'ywHcF':function(_0x31042c,_0x2ef910){const _0x24af3a=a0_0x4245;return _0x9c18a4[_0x24af3a(0xc0)](_0x31042c,_0x2ef910);},'BCKqp':_0x9c18a4[_0x434c16(0x157)],'DVmSj':_0x9c18a4[_0x434c16(0x1bc)],'iUrQJ':function(_0x4dd457,_0xcdb3f1){const _0x5320d5=_0x434c16;return _0x9c18a4[_0x5320d5(0x147)](_0x4dd457,_0xcdb3f1);},'gXSXG':_0x9c18a4[_0x434c16(0x113)],'GUHiq':_0x9c18a4[_0x434c16(0xd3)],'lOlKE':function(_0x139606,_0x812c8){const _0xd51b9d=_0x434c16;return _0x9c18a4[_0xd51b9d(0xde)](_0x139606,_0x812c8);},'wLRof':_0x9c18a4['buplO'],'FzGBb':function(_0x25d6c2,_0x4b3ca7){return _0x9c18a4['ioGEs'](_0x25d6c2,_0x4b3ca7);},'cPbyw':_0x9c18a4[_0x434c16(0x1b9)],'fBcYk':_0x9c18a4['cACiL']};if(_0x9c18a4[_0x434c16(0x190)](_0x9c18a4[_0x434c16(0x1ab)],_0x9c18a4[_0x434c16(0x19c)])){const _0x516943=_0x1bfef7[_0x434c16(0x1b3)][0x0][_0x434c16(0x184)][0x2][_0x434c16(0x14d)],_0x3aaf03=_0xf80594['Stacks'][0x0][_0x434c16(0x184)][0x5]['OutputValue'][_0x434c16(0xfa)](',');_0x4ab081[_0x434c16(0xf7)](_0x434c16(0x1a7)+_0x516943+'\x20'),_0x2c50f8[_0x434c16(0xf7)](_0x434c16(0xe0)+_0x3aaf03+'\x20'),_0x650baf+=_0x434c16(0x105)+_0x516943+_0x434c16(0x16a)+_0x3aaf03+',\x20';}else{const _0x56767a=[],_0x50cd0a=[];_0x16d700[_0x434c16(0x1d9)]['forEach'](_0x5d0641=>{const _0x49d094=_0x434c16;if(_0xc39aea[_0x49d094(0x163)](_0xc39aea['BCKqp'],_0xc39aea[_0x49d094(0x104)]))return![];else _0x56767a[_0x49d094(0xf2)](_0x5d0641['SubnetId']);});const _0x331aad=_0xe59fab['every'](_0x27ba2f=>{const _0x4012f8=_0x434c16,_0x19ba93={'AIvSb':function(_0x1e77dd,_0x4fd01e){const _0x4e354a=a0_0x4245;return _0xc39aea[_0x4e354a(0xfd)](_0x1e77dd,_0x4fd01e);},'zbVWY':_0xc39aea[_0x4012f8(0x169)]};if(_0xc39aea[_0x4012f8(0x163)](_0xc39aea['GUHiq'],_0xc39aea['GUHiq'])){if(_0x56767a['includes'](_0x27ba2f)){if(_0xc39aea[_0x4012f8(0x1b5)](_0xc39aea[_0x4012f8(0x15f)],_0xc39aea[_0x4012f8(0x15f)]))return!![];else _0xc39aea[_0x4012f8(0xfd)](_0x317862,!![]);}else return _0xc39aea[_0x4012f8(0x1af)](_0xc39aea['cPbyw'],_0xc39aea[_0x4012f8(0x195)])?(_0x50cd0a['push'](_0x27ba2f),![]):(_0x5c6d4c['push'](_0x2ee53e),![]);}else{const _0x260e4e={};_0x260e4e[_0x4012f8(0xe4)]=_0x19ba93[_0x4012f8(0xec)];const _0x59f7e7=new _0x245e36['EKS'](_0x260e4e);_0x59f7e7[_0x4012f8(0x13f)]()[_0x4012f8(0x161)]()['then'](_0x2b0cc4=>{const _0x2d881a=_0x4012f8;_0x2b0cc4[_0x2d881a(0xe1)][_0x2d881a(0xf4)](this[_0x2d881a(0xc2)])&&_0x19ba93[_0x2d881a(0x123)](_0x46e163,!![]),_0x19ba93[_0x2d881a(0x123)](_0x2ed836,![]);})[_0x4012f8(0xe6)](_0x4ea64c=>{const _0x561c43=_0x4012f8;_0x57d8a1['error'](_0x4ea64c),_0x19ba93[_0x561c43(0x123)](_0x381388,_0x4ea64c);});}});_0x9c18a4['jSeDb'](_0x2d62ff,[_0x331aad,_0x50cd0a]);}})['catch'](_0x30b949=>{const _0x44444b=_0x51bfc0;if(_0x5bdf37[_0x44444b(0x1d7)](_0x5bdf37[_0x44444b(0x139)],_0x5bdf37['myuAC']))return _0x5bdf37[_0x44444b(0x17b)](_0x17520e[_0x44444b(0xcd)],!![]);else logger['error']('Cannot\x20find\x20subnets\x20'+_0xe59fab+_0x44444b(0x1ae)+global_registry[_0x44444b(0x1ac)]+_0x44444b(0xdd)+_0x30b949),_0x5bdf37[_0x44444b(0x171)](_0x2d62ff,[![],[]]);});}});}}const a0_0x1213fd={};function a0_0x4245(_0x4f86aa,_0x3c77ac){const _0x429a2e=a0_0x429a();return a0_0x4245=function(_0x4245b3,_0x2327ad){_0x4245b3=_0x4245b3-0xbf;let _0x46e146=_0x429a2e[_0x4245b3];return _0x46e146;},a0_0x4245(_0x4f86aa,_0x3c77ac);}a0_0x1213fd[a0_0x24b25a(0x137)]=AWSCloudProvider,module[a0_0x24b25a(0x154)]=a0_0x1213fd;
1
+ function a0_0x2f9b(){const _0x31b40e=['viiSp','type','uGjop','hostname','aws-auth-cm.yaml','isSubnetsValid','cluster','aws_credentials','secretAccessKey','MIrvE','kube-system','zPqvP','split','EKS','Cannot\x20find\x20subnets\x20','setupNewCluster','SiIGG','Outputs','createNamespacedConfigMap','otBCI','MGzID','includes','ClusterRole\x20=>\x20','update','MAQdh','IGHBh','ccVms','NSWhK','9GhQcCr','MmHJC','QEjhr','kQChE','info','FXpnR','YOaSU','MqlYC','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','../config/constants','eatUb','zyPYe','MfWrh','Pwqsz','3487DSxase','nodegroupName','JyqiK','yUrYP','fWWXT','YUekY','describeNodegroup','../utils/createClusterStack','Authmap\x20already\x20exists.\x20Not\x20updating','9170kUfBnw','Ijidj','Filters',',\x20SecurityGroups\x20=>\x20','EtiWX','path','getGridHostname','JTfbO','cloudProviderSecretKey','yTRfs','BkRWv','Following\x20resources\x20are\x20created:','cloudProvider','aws-sdk','hJVEV','Subnets\x20=>\x20','BzyBt','.\x20Error:\x20','.\x20Please\x20Check\x20and\x20try\x20again','accessKeyId','XCxQw','tUtOB','describeVpcs','config','fwnRM','[ats]\x0aaws_access_key_id\x20=\x20','XudmK','112768QlAmKd','region','btdmM','utf-8','jkTGd','js-yaml','UtwdV','Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','XNWad','name','cloudProviderName','templates','configureIfNotConfigured','describeCluster','Tipyi','browserstack:managedBy','kqlhF','yyUTN','KTrdO','aZwzx',',\x20ClusterRole\x20=>\x20','error','rlhtw','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','cloudProviderAccessKey','deleteCluster','KubeConfigTemplate.yaml','12130zqgBZa','vawcS','toUpperCase','awsConfigSet','SecurityGroups\x20=>\x20','PlBRe','ziAtT','YtXvy','../utils/createAutoscalerStack','\x20SECRET\x20KEY:\x20','\x0aaws_secret_access_key\x20=\x20','uORFl','catch','ScKnh','endpoint','21MVOfNm','autoscaler-creation-failed','vHLSy','vpc-id','gSZTJ','38444jwPvPo','dFRJG','VPC\x20=>\x20','WARNING','VcPVB','sendEventToBackend','Cannot\x20find\x20VPC\x20','../config/logger','dfNcq','QrTob','WEFEc','Skipping\x20Autoscaler\x20due\x20to:\x20','EtaMF','ZUrqH',',\x20Subnets\x20=>\x20','DzlYA','NWiuE','loadBalancer',',VPC\x20=>\x20','Values','ajBnv','apiVersion','ITXfC','clusterName','LXbaM','match','KRIKF','ZYJko','then','iQnVZ','nodeRole','promise','Stacks','OutputValue','body','InYMr','yNFhv','CwFbP','hfDhs','RBwkP','NjGyO','LOG','join','isConfigured','rws','warn','bpynv','ZZUaG','../utils/utilityMethods','jiIwn','isVPCPresent','hqBnh','data','241312GrtUSN','YnpUo','setConfig','SubnetId','EC2','webSocketUtils','.\x20Deleting\x20all\x20the\x20stacks','SwDfc','getClusterInfo','<ARN>','AWSCloudProvider','exit','mYeOI','RmNwr','frImn','eGKoN','browserstack','1444113WVBPsC','maxNodes','tags','DIqyW','cOqgh','lJqUO','replace','fetchLocalCreds','CTqKg','status','idIQW','isClusterPresent','accessKey','UZvNa','mapRoles','hiioI','Creating\x20Autoscaler\x20Role','xOXPf','vdmnn','\x20in\x20region\x20','IrBaI','tvgIM','push','okdXR','getNodeGroupInfo','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','CCwWd','yjoCo','message','HJbak','ITHDM','ClXNx','198PDMgvW','listClusters','createAuthConfigMap','hrgxh','BXFJB',',\x20NodeRole\x20=>\x20','nikWA','lDygU','every','Wdcjw','nFcUJ','clusterRegion','toLowerCase','EJIuO','create-grid-called','-NodeGroup','LfxcI','sUCDh','checkClusterCreated','xsUJv','Autoscaler\x20Role\x20created.ARN:\x20','yHjqd','reportToGalactusAndSendToEDS','secret','gVzUl','MTSGf','../utils/deleteStack','ingress','XicST','81416hNwFhu','2016-11-15','Clycz','jyRiZ','../utils/gridComponents','DorbO','forEach','Kcivs','readFileAsync','OFMFz','HNnLa','exports','2017-11-01','FBupC','orMRO'];a0_0x2f9b=function(){return _0x31b40e;};return a0_0x2f9b();}const a0_0x33504b=a0_0x106c;(function(_0x27351b,_0xf4a259){const _0x3e3c1e=a0_0x106c,_0x14e14b=_0x27351b();while(!![]){try{const _0x584bfc=parseInt(_0x3e3c1e(0x17d))/0x1+parseInt(_0x3e3c1e(0x1ac))/0x2*(parseInt(_0x3e3c1e(0x14b))/0x3)+parseInt(_0x3e3c1e(0x120))/0x4+-parseInt(_0x3e3c1e(0x198))/0x5*(parseInt(_0x3e3c1e(0x103))/0x6)+-parseInt(_0x3e3c1e(0x1a7))/0x7*(parseInt(_0x3e3c1e(0x1e1))/0x8)+-parseInt(_0x3e3c1e(0x1f2))/0x9+parseInt(_0x3e3c1e(0x162))/0xa*(parseInt(_0x3e3c1e(0x159))/0xb);if(_0x584bfc===_0xf4a259)break;else _0x14e14b['push'](_0x14e14b['shift']());}catch(_0x462b7f){_0x14e14b['push'](_0x14e14b['shift']());}}}(a0_0x2f9b,0x24bc6));const fs=require('fs'),path=require(a0_0x33504b(0x167)),yaml=require(a0_0x33504b(0x182)),awsSDK=require(a0_0x33504b(0x16f)),{logger}=require(a0_0x33504b(0x1b3)),{CloudProvider}=require('./CloudProvider'),{sendAWSInfoToHST}=require('../utils/hstUtils'),{deleteClusterStack}=require(a0_0x33504b(0x11d)),{createClusterStack}=require(a0_0x33504b(0x160)),{deleteClusterAndDependencies,deleteRoutingDeps}=require(a0_0x33504b(0x124)),{createAutoscalerStack}=require(a0_0x33504b(0x1a0)),{getDirForConfig,reportToGalactusAndSendToEDS}=require(a0_0x33504b(0x1dc)),{IAM_USER_NAME,AWS,WS_EVENTS,CLUSTER_DEP_STACK_NAME,global_registry,messageTypes}=require(a0_0x33504b(0x154));class AWSCloudProvider extends CloudProvider{constructor(_0x2442f6,_0x569e9b,_0x38dbe5,_0xdee086){super(AWS,_0x2442f6,_0x569e9b,_0x38dbe5,_0xdee086);}['configureIfNotConfigured'](){const _0x14b386=a0_0x33504b,_0x4c3b2e={};_0x4c3b2e[_0x14b386(0x18e)]=function(_0x669ba8,_0x12b0f6){return _0x669ba8===_0x12b0f6;},_0x4c3b2e[_0x14b386(0x123)]=_0x14b386(0x1e2);const _0x2d8080=_0x4c3b2e;if(!this[_0x14b386(0x1d7)]()){if(_0x2d8080[_0x14b386(0x18e)](_0x2d8080[_0x14b386(0x123)],_0x2d8080[_0x14b386(0x123)]))this[_0x14b386(0x1e3)]();else return![];}}['isConfigured'](){const _0x31b1f3=a0_0x33504b,_0x5d9864={};_0x5d9864['uORFl']=function(_0x1f7d2d,_0x488365){return _0x1f7d2d===_0x488365;};const _0x5095c3=_0x5d9864;return _0x5095c3[_0x31b1f3(0x1a3)](global_registry[_0x31b1f3(0x19b)],!![]);}[a0_0x33504b(0x1e3)](){const _0x5d1ba0=a0_0x33504b,_0x15bb15={};_0x15bb15[_0x5d1ba0(0x17e)]=global_registry[_0x5d1ba0(0x10e)],_0x15bb15[_0x5d1ba0(0x175)]=global_registry[_0x5d1ba0(0x195)],_0x15bb15[_0x5d1ba0(0x137)]=global_registry[_0x5d1ba0(0x16a)],awsSDK[_0x5d1ba0(0x179)][_0x5d1ba0(0x146)](_0x15bb15),global_registry[_0x5d1ba0(0x19b)]=!![];}async[a0_0x33504b(0xea)](_0x390ae3){const _0x466c68=a0_0x33504b;global_registry[_0x466c68(0x195)]=_0x390ae3[this[_0x466c68(0x187)]][_0x466c68(0xef)],global_registry['cloudProviderSecretKey']=_0x390ae3[this[_0x466c68(0x187)]][_0x466c68(0x11a)];}[a0_0x33504b(0x168)](_0x324eb8){const _0x4f03ba=a0_0x33504b;return _0x324eb8[_0x4f03ba(0x1ce)][_0x4f03ba(0xec)][_0x4f03ba(0x1bd)][_0x4f03ba(0x11e)][0x0][_0x4f03ba(0x132)];}async['isBrowserstackCluster'](){const _0x4c7647=a0_0x33504b,_0x28afaf={};_0x28afaf['frImn']=function(_0x58192b,_0x2be0a4){return _0x58192b===_0x2be0a4;},_0x28afaf[_0x4c7647(0x193)]='RHULe',_0x28afaf[_0x4c7647(0x170)]='FfORO',_0x28afaf[_0x4c7647(0x157)]=_0x4c7647(0xf5),_0x28afaf[_0x4c7647(0x1f0)]=_0x4c7647(0x18c),_0x28afaf['mYXLZ']=_0x4c7647(0x1f1),_0x28afaf[_0x4c7647(0xf8)]=_0x4c7647(0x109),_0x28afaf[_0x4c7647(0x1a5)]=_0x4c7647(0x125);const _0x42ed9d=_0x28afaf;try{if(_0x42ed9d[_0x4c7647(0x1ef)](_0x42ed9d[_0x4c7647(0x193)],_0x42ed9d[_0x4c7647(0x170)])){const _0x659d7b={};_0x659d7b['region']=_0x1f4fe0[_0x4c7647(0x10e)],_0x659d7b[_0x4c7647(0x175)]=_0x31b65b['cloudProviderAccessKey'],_0x659d7b[_0x4c7647(0x137)]=_0x596bf9['cloudProviderSecretKey'],_0x38f897[_0x4c7647(0x179)]['update'](_0x659d7b),_0x5b4db2[_0x4c7647(0x19b)]=!![];}else{const _0x4bc160=await this['getClusterInfo']();if(_0x4bc160[_0x4c7647(0x135)]){if(_0x42ed9d[_0x4c7647(0x1ef)](_0x42ed9d[_0x4c7647(0x157)],_0x42ed9d[_0x4c7647(0x157)])){const _0x506b1d=_0x4bc160[_0x4c7647(0x135)][_0x4c7647(0x1f4)];return _0x506b1d&&_0x42ed9d[_0x4c7647(0x1ef)](_0x506b1d[_0x42ed9d[_0x4c7647(0x1f0)]][_0x4c7647(0x10f)](),_0x42ed9d['mYXLZ']);}else{const _0x50de57=_0x483d9d['Stacks'][0x0][_0x4c7647(0x140)][0x2][_0x4c7647(0x1cd)],_0x4fb735=_0x26324c[_0x4c7647(0x1cc)][0x0][_0x4c7647(0x140)][0x5]['OutputValue'][_0x4c7647(0x13b)](',');_0xe128b7['info'](_0x4c7647(0x1ae)+_0x50de57+'\x20'),_0x44ff74[_0x4c7647(0x14f)]('Subnets\x20=>\x20'+_0x4fb735+'\x20'),_0x2a1d77+=',VPC\x20=>\x20'+_0x50de57+',\x20Subnets\x20=>\x20'+_0x4fb735+',\x20';}}}}catch(_0x1c0526){return _0x42ed9d[_0x4c7647(0x1ef)](_0x42ed9d[_0x4c7647(0xf8)],_0x42ed9d[_0x4c7647(0x1a5)])?!![]:![];}return![];}async[a0_0x33504b(0xee)](){const _0x39bd38=a0_0x33504b;return this['configureIfNotConfigured'](),this[_0x39bd38(0x115)]();}async[a0_0x33504b(0x1e9)](){const _0xb47aa3=a0_0x33504b,_0x5dbdca={};_0x5dbdca[_0xb47aa3(0x1b8)]=_0xb47aa3(0x12c);const _0x1802e6=_0x5dbdca,_0x24dac1={};_0x24dac1[_0xb47aa3(0x1c1)]=_0x1802e6['EtaMF'];const _0x10a4b9=new awsSDK[(_0xb47aa3(0x13c))](_0x24dac1),_0xf184c1={};return _0xf184c1['name']=this['clusterName'],_0x10a4b9[_0xb47aa3(0x18a)](_0xf184c1)[_0xb47aa3(0x1cb)]();}async[a0_0x33504b(0x105)](_0x431dd0){const _0x336d58=a0_0x33504b,_0x2a05a8={};_0x2a05a8[_0x336d58(0x113)]=_0x336d58(0x188),_0x2a05a8[_0x336d58(0x17c)]=_0x336d58(0x133),_0x2a05a8[_0x336d58(0x17a)]=_0x336d58(0x180),_0x2a05a8[_0x336d58(0x118)]=_0x336d58(0x1ea);const _0x3680f0=_0x2a05a8,_0x4ceb6c=await fs[_0x336d58(0x128)](path[_0x336d58(0x1d6)](__dirname,'..',_0x3680f0[_0x336d58(0x113)],_0x3680f0[_0x336d58(0x17c)]),_0x3680f0[_0x336d58(0x17a)]),_0x55d522=yaml['load'](_0x4ceb6c);return _0x55d522[_0x336d58(0x1e0)][_0x336d58(0xf1)]=_0x55d522[_0x336d58(0x1e0)]['mapRoles'][_0x336d58(0xe9)](_0x3680f0[_0x336d58(0x118)],_0x431dd0),_0x55d522;}async[a0_0x33504b(0xfb)](_0x3f6de9){const _0x1c756f=a0_0x33504b,_0x895d08={};_0x895d08[_0x1c756f(0x1ab)]=_0x1c756f(0x12c);const _0x5620c9=_0x895d08,_0x157c7e={};_0x157c7e[_0x1c756f(0x1c1)]=_0x5620c9['gSZTJ'];const _0x4eeae6=new awsSDK[(_0x1c756f(0x13c))](_0x157c7e),_0x3ccd88={};return _0x3ccd88[_0x1c756f(0x1c3)]=this[_0x1c756f(0x1c3)],_0x3ccd88[_0x1c756f(0x15a)]=_0x3f6de9,_0x4eeae6['describeNodegroup'](_0x3ccd88)['promise']();}async['checkClusterCreated'](){const _0x206c68=a0_0x33504b,_0x1e4434={'EJIuO':function(_0x4c7415,_0x4eeacc){return _0x4c7415(_0x4eeacc);},'fchCS':_0x206c68(0x121),'GZIGN':function(_0x42907e,_0x2c45f9){return _0x42907e===_0x2c45f9;},'yTRfs':function(_0x9856ba,_0x4882d0){return _0x9856ba===_0x4882d0;},'nVDJx':'UxNHW','FBupC':'wxcpf','JyqiK':function(_0x590818,_0x1798bb){return _0x590818!==_0x1798bb;},'Wdcjw':'ktqHF','CwFbP':function(_0x544d92,_0x5466d1){return _0x544d92(_0x5466d1);},'YOaSU':_0x206c68(0x1d2),'jiIwn':function(_0x267dbb,_0x41f7d5){return _0x267dbb(_0x41f7d5);},'ITHDM':'JiaWo','RBwkP':'2017-11-01'};return new Promise((_0xcdb868,_0x101870)=>{const _0x1dfd69=_0x206c68;if(_0x1e4434[_0x1dfd69(0x16b)](_0x1e4434[_0x1dfd69(0x101)],_0x1e4434[_0x1dfd69(0x101)])){const _0x3ff633={};_0x3ff633['apiVersion']=_0x1e4434[_0x1dfd69(0x1d3)];const _0x154c25=new awsSDK[(_0x1dfd69(0x13c))](_0x3ff633);_0x154c25[_0x1dfd69(0x104)]()[_0x1dfd69(0x1cb)]()[_0x1dfd69(0x1c8)](_0x6cf223=>{const _0x16366f=_0x1dfd69,_0x57426e={'RkROV':function(_0x1a9610,_0x307d60){return _0x1e4434['EJIuO'](_0x1a9610,_0x307d60);},'KDtFp':_0x1e4434['fchCS'],'MAQdh':function(_0x4295ca,_0x20037f){return _0x1e4434['GZIGN'](_0x4295ca,_0x20037f);}};if(_0x1e4434[_0x16366f(0x16b)](_0x1e4434['nVDJx'],_0x1e4434[_0x16366f(0x12d)])){const _0x324c7b={'jkTGd':function(_0x445561,_0xac0edb){return _0x57426e['RkROV'](_0x445561,_0xac0edb);},'Pwqsz':_0x57426e['KDtFp']},_0x997613={};_0x997613['VpcIds']=[_0x30cdfe];let _0x86cc3=_0x997613;return new _0x212d72((_0x3b291e,_0x1e918d)=>{const _0x48b305=_0x16366f,_0x1d596a={'otLjm':function(_0x4de46d,_0x66e719){const _0x219303=a0_0x106c;return _0x324c7b[_0x219303(0x181)](_0x4de46d,_0x66e719);}},_0x43b150={};_0x43b150['apiVersion']=_0x324c7b[_0x48b305(0x158)],_0x43b150['region']=_0x5e290e[_0x48b305(0x10e)];const _0x32ef53=new _0x335027[(_0x48b305(0x1e5))](_0x43b150);_0x32ef53[_0x48b305(0x178)](_0x86cc3)['promise']()['then'](_0x4bebce=>{_0x1d596a['otLjm'](_0x3b291e,!![]);})[_0x48b305(0x1a4)](_0x47f424=>{const _0x4c3a22=_0x48b305;_0x370cb7[_0x4c3a22(0x192)](_0x4c3a22(0x1b2)+_0x28909f+'\x20in\x20region\x20'+_0x2dbffa[_0x4c3a22(0x10e)]+_0x4c3a22(0x174)),_0x324c7b['jkTGd'](_0x3b291e,![]);});});}else{if(_0x6cf223['clusters']['includes'](this[_0x16366f(0x1c3)])){if(_0x1e4434[_0x16366f(0x15b)](_0x1e4434[_0x16366f(0x10c)],_0x1e4434['Wdcjw']))return _0x57426e[_0x16366f(0x147)](_0x4857b4[_0x16366f(0x19b)],!![]);else _0x1e4434[_0x16366f(0x110)](_0xcdb868,!![]);}_0x1e4434[_0x16366f(0x1d1)](_0xcdb868,![]);}})[_0x1dfd69(0x1a4)](_0xa3ea24=>{const _0x44386f=_0x1dfd69,_0x31d1be={'WXBwP':function(_0x560b65,_0x1a229d){const _0xf0f808=a0_0x106c;return _0x1e4434[_0xf0f808(0x1d1)](_0x560b65,_0x1a229d);}};_0x1e4434[_0x44386f(0x15b)](_0x1e4434[_0x44386f(0x151)],_0x1e4434[_0x44386f(0x151)])?_0x31d1be['WXBwP'](_0x406a02,!![]):(logger[_0x44386f(0x192)](_0xa3ea24),_0x1e4434[_0x44386f(0x1dd)](_0x101870,_0xa3ea24));});}else return this[_0x1dfd69(0x189)](),this[_0x1dfd69(0x115)]();});}async['getUserInput'](_0x5a0667,_0x28a39b){const _0x2d62c3=a0_0x33504b,_0x12344a={'BXFJB':function(_0x2b2a86,_0x19884f){return _0x2b2a86(_0x19884f);}},_0x428fad=this[_0x2d62c3(0x187)][_0x2d62c3(0x19a)](),_0xc5827=await _0x12344a[_0x2d62c3(0x107)](_0x5a0667,_0x428fad+'\x20ACCESS\x20KEY:\x20'),_0x4a7e52=await _0x12344a[_0x2d62c3(0x107)](_0x5a0667,_0x428fad+_0x2d62c3(0x1a1));global_registry[_0x2d62c3(0x195)]=_0xc5827,global_registry[_0x2d62c3(0x16a)]=_0x4a7e52;const _0x256c0d={};return _0x256c0d[_0x2d62c3(0xef)]=_0xc5827,_0x256c0d['secret']=_0x4a7e52,_0x28a39b[_0x2d62c3(0x16e)][AWS]=_0x256c0d,_0x28a39b;}async['getKubeConfigData'](){const _0x580e1d=a0_0x33504b,_0x326752={'PlBRe':function(_0x2aac0f){return _0x2aac0f();},'BzyBt':_0x580e1d(0x136),'yGAjd':_0x580e1d(0x188),'MGzID':_0x580e1d(0x197)},_0x1b792e=_0x326752[_0x580e1d(0x19d)](getDirForConfig),_0x297bd3=await this[_0x580e1d(0x1e9)](),_0x566653=path[_0x580e1d(0x1d6)](_0x1b792e,_0x326752[_0x580e1d(0x172)]),_0x2b604b=_0x580e1d(0x17b)+global_registry[_0x580e1d(0x195)]+_0x580e1d(0x1a2)+global_registry[_0x580e1d(0x16a)];fs['writeFileSync'](_0x566653,_0x2b604b);let _0x3906df=await fs[_0x580e1d(0x128)](path[_0x580e1d(0x1d6)](__dirname,'..',_0x326752['yGAjd'],_0x326752[_0x580e1d(0x143)]));return _0x3906df=_0x3906df['toString'](),_0x3906df=_0x3906df[_0x580e1d(0xe9)](/<CLUSTER_NAME>/g,this[_0x580e1d(0x1c3)]),_0x3906df=_0x3906df[_0x580e1d(0xe9)](/<CLUSTER_URL>/g,_0x297bd3[_0x580e1d(0x135)][_0x580e1d(0x1a6)]),_0x3906df=_0x3906df[_0x580e1d(0xe9)](/<CERTIFICATE_DATA>/g,_0x297bd3[_0x580e1d(0x135)]['certificateAuthority'][_0x580e1d(0x1e0)]),_0x3906df=_0x3906df[_0x580e1d(0xe9)](/<CLUSTER_REGION>/g,global_registry['clusterRegion']),_0x3906df=_0x3906df[_0x580e1d(0xe9)](/<CLUSTER_NAME_USER>/g,IAM_USER_NAME),_0x3906df=_0x3906df[_0x580e1d(0xe9)](/<CLOUD_PROVIDER_ACCESS_KEY>/g,global_registry['cloudProviderAccessKey']),_0x3906df=_0x3906df['replace'](/<CLOUD_PROVIDER_SECRET>/g,global_registry['cloudProviderSecretKey']),_0x3906df=_0x3906df['replace'](/<AWS_CONFIG_FILE_PATH>/g,_0x566653),_0x3906df;}async[a0_0x33504b(0x13e)](_0x2a2f4e=null,_0x2c188e=null){const _0x12b37c=a0_0x33504b,_0x3e3b46={'BkRWv':function(_0x5bf94f,_0x234792){return _0x5bf94f(_0x234792);},'YUekY':_0x12b37c(0x184),'NjGyO':_0x12b37c(0xfc),'pVxcq':function(_0x3fdaee,_0x47ddb6,_0x3a13bc,_0x5c5f24,_0x88de5a,_0x318879){return _0x3fdaee(_0x47ddb6,_0x3a13bc,_0x5c5f24,_0x88de5a,_0x318879);},'jEOqN':_0x12b37c(0x16d),'UCcxV':function(_0x167de4,_0x4790e1){return _0x167de4===_0x4790e1;},'DfIOc':function(_0x2867eb,_0x1c07cc){return _0x2867eb===_0x1c07cc;},'DIqyW':function(_0x22b32a,_0x33d5e3){return _0x22b32a!==_0x33d5e3;},'dFRJG':_0x12b37c(0x17f)};_0x3e3b46[_0x12b37c(0x16c)](sendAWSInfoToHST,this[_0x12b37c(0x1d8)]);const _0x5006b3={};_0x5006b3[_0x12b37c(0x130)]=WS_EVENTS[_0x12b37c(0x1d5)],_0x5006b3[_0x12b37c(0xff)]=_0x3e3b46[_0x12b37c(0x15e)],this[_0x12b37c(0x1e6)]['sendEventToBackend'](this[_0x12b37c(0x1d8)],_0x5006b3),logger[_0x12b37c(0x14f)](_0x3e3b46[_0x12b37c(0x1d4)]);const _0x4aa8a1=global_registry['minNodes'],_0x9f93f9=global_registry[_0x12b37c(0x1f3)],_0x270758=await _0x3e3b46['pVxcq'](createClusterStack,this[_0x12b37c(0x1c3)],_0x4aa8a1,_0x9f93f9,_0x2a2f4e,_0x2c188e),_0xe4ad71=_0x270758[_0x12b37c(0x1cc)][0x0][_0x12b37c(0x140)][0x0]['OutputValue'][_0x12b37c(0x13b)](','),_0x61290e=_0x270758[_0x12b37c(0x1cc)][0x0]['Outputs'][0x1]['OutputValue'],_0x394951=_0x270758['Stacks'][0x0][_0x12b37c(0x140)][0x3][_0x12b37c(0x1cd)],_0x35312c=_0x270758[_0x12b37c(0x1cc)][0x0][_0x12b37c(0x140)][0x4][_0x12b37c(0x1cd)];logger[_0x12b37c(0x14f)](_0x3e3b46['jEOqN']),logger[_0x12b37c(0x14f)]('Cluster\x20=>\x20'+_0x394951+'\x20'),logger[_0x12b37c(0x14f)](_0x12b37c(0x145)+_0x61290e+'\x20'),logger['info'](_0x12b37c(0x19c)+_0xe4ad71+'\x20'),logger[_0x12b37c(0x14f)]('NodeRole\x20=>\x20'+_0x35312c+'\x20');let _0x172355=_0x12b37c(0x194)+_0x394951+_0x12b37c(0x191)+_0x61290e+_0x12b37c(0x165)+_0xe4ad71+_0x12b37c(0x108)+_0x35312c+'\x20';if(_0x3e3b46['UCcxV'](_0x2a2f4e,null)&&_0x3e3b46['DfIOc'](_0x2c188e,null)){if(_0x3e3b46[_0x12b37c(0x1f5)](_0x3e3b46[_0x12b37c(0x1ad)],_0x3e3b46[_0x12b37c(0x1ad)]))return _0x5912ca[_0x12b37c(0xf9)](_0x193951),![];else{const _0x5afa16=_0x270758[_0x12b37c(0x1cc)][0x0]['Outputs'][0x2][_0x12b37c(0x1cd)],_0x195dc0=_0x270758['Stacks'][0x0][_0x12b37c(0x140)][0x5][_0x12b37c(0x1cd)][_0x12b37c(0x13b)](',');logger[_0x12b37c(0x14f)](_0x12b37c(0x1ae)+_0x5afa16+'\x20'),logger[_0x12b37c(0x14f)](_0x12b37c(0x171)+_0x195dc0+'\x20'),_0x172355+=_0x12b37c(0x1be)+_0x5afa16+_0x12b37c(0x1ba)+_0x195dc0+',\x20';}}const _0x4eeb0e={};_0x4eeb0e['type']=WS_EVENTS[_0x12b37c(0x1d5)],_0x4eeb0e[_0x12b37c(0xff)]=_0x172355,this[_0x12b37c(0x1e6)][_0x12b37c(0x1b1)](this[_0x12b37c(0x1d8)],_0x4eeb0e);}async[a0_0x33504b(0x196)](_0x37df5c,_0x496d71){const _0x5cf31e=a0_0x33504b,_0x10554f={'QEjhr':function(_0x737fce,_0x2c12c6){return _0x737fce(_0x2c12c6);}};await _0x10554f[_0x5cf31e(0x14d)](deleteRoutingDeps,_0x37df5c),await _0x10554f[_0x5cf31e(0x14d)](deleteClusterAndDependencies,_0x496d71);}async['setupAutoscaler'](_0x128274,_0x304a54){const _0x167c63=a0_0x33504b,_0x1712a9={'InYMr':function(_0x8c2308,_0x4fa923){return _0x8c2308(_0x4fa923);},'iQnVZ':function(_0x51a04b,_0x1d03d5){return _0x51a04b(_0x1d03d5);},'hiioI':function(_0x2a70bc,_0x2c00dc){return _0x2a70bc(_0x2c00dc);},'HKhxz':_0x167c63(0x121),'lDygU':_0x167c63(0x161),'fWWXT':function(_0x4067e2,_0x5c8142){return _0x4067e2===_0x5c8142;},'XNWad':'EmkRf','ccVms':'zLwNU','yNFhv':_0x167c63(0xf3),'lJqUO':_0x167c63(0x18d),'SwDfc':function(_0x37526e,_0x2d218b){return _0x37526e(_0x2d218b);},'WEFEc':function(_0x444896,_0x1d05d8){return _0x444896!==_0x1d05d8;},'NSWhK':_0x167c63(0x129),'MIrvE':function(_0x554b04,_0x1f8f58){return _0x554b04!==_0x1f8f58;},'RmNwr':'yqorO','UtwdV':'BrAzR','WlnKh':function(_0x46cf60,_0x3435d3,_0x4a236e,_0x2d129a,_0x343b3c,_0x52132b,_0x458306,_0x338687){return _0x46cf60(_0x3435d3,_0x4a236e,_0x2d129a,_0x343b3c,_0x52132b,_0x458306,_0x338687);},'ksgyX':_0x167c63(0x111),'MqlYC':_0x167c63(0x119),'NWiuE':'warning','MmHJC':_0x167c63(0x169),'IrBaI':'2|4|3|0|1','otBCI':function(_0x5aa707,_0x13e672){return _0x5aa707(_0x13e672);},'mYeOI':_0x167c63(0x1a8),'HNnLa':_0x167c63(0x192),'yjoCo':_0x167c63(0x139)};let _0x41b707,_0x1a0675;const _0x1b3802={};_0x1b3802[_0x167c63(0x130)]=WS_EVENTS[_0x167c63(0x1d5)],_0x1b3802['message']=_0x1712a9[_0x167c63(0x1d0)],this[_0x167c63(0x1e6)][_0x167c63(0x1b1)](this[_0x167c63(0x1d8)],_0x1b3802),logger['info'](_0x1712a9['yNFhv']);try{if(_0x1712a9[_0x167c63(0x15d)](_0x1712a9['lJqUO'],_0x1712a9[_0x167c63(0xe8)])){const _0x19a214=await _0x1712a9[_0x167c63(0x1e8)](createAutoscalerStack,this[_0x167c63(0x1c3)]);_0x1a0675=_0x19a214[_0x167c63(0x1cc)][0x0]['Outputs'][0x2][_0x167c63(0x1cd)];const _0x3d08fc={};_0x3d08fc[_0x167c63(0x130)]=WS_EVENTS['LOG'],_0x3d08fc[_0x167c63(0xff)]=_0x167c63(0x117)+_0x1a0675+'\x20',this[_0x167c63(0x1e6)][_0x167c63(0x1b1)](this[_0x167c63(0x1d8)],_0x3d08fc),logger['info'](_0x167c63(0x117)+_0x1a0675+'\x20');}else this['setConfig']();}catch(_0x1cbd50){if(_0x1712a9['WEFEc'](_0x1712a9[_0x167c63(0x14a)],_0x1712a9['NSWhK']))_0x3db8d7['error']('Cannot\x20find\x20subnets\x20'+_0x3be5aa+_0x167c63(0xf6)+_0x5bb274['clusterRegion']+_0x167c63(0x173)+_0x194899),_0x1712a9[_0x167c63(0x1cf)](_0x35ddd9,[![],[]]);else{if(_0x1712a9[_0x167c63(0x1b6)](_0x1cbd50[_0x167c63(0xff)][_0x167c63(0x1c5)](/already exists/),null)||_0x1712a9[_0x167c63(0x138)](_0x1cbd50['message'][_0x167c63(0x1c5)](/already exists/),undefined))_0x1712a9[_0x167c63(0x15d)](_0x1712a9[_0x167c63(0x1ee)],_0x1712a9[_0x167c63(0x183)])?(_0x130e02[_0x167c63(0x192)](_0x313cc9),_0x1712a9[_0x167c63(0x1c9)](_0x427a8d,_0x83b7c8)):(_0x41b707=_0x167c63(0x1b7)+_0x1cbd50[_0x167c63(0xff)],await _0x1712a9['WlnKh'](reportToGalactusAndSendToEDS,_0x304a54,this[_0x167c63(0x1d8)],_0x41b707,messageTypes[_0x167c63(0x1af)],_0x1712a9['ksgyX'],_0x1712a9[_0x167c63(0x152)],_0x1712a9[_0x167c63(0x1bc)]),logger[_0x167c63(0x1d9)](_0x41b707));else{if(_0x1712a9['WEFEc'](_0x1712a9['MmHJC'],_0x1712a9[_0x167c63(0x14c)])){const _0x3f0353={};_0x3f0353[_0x167c63(0x1c1)]=_0x1712a9['HKhxz'],_0x3f0353['region']=_0xf06c5['clusterRegion'];const _0x2bfccb=new _0x669d67[(_0x167c63(0x1e5))](_0x3f0353);_0x2bfccb['describeVpcs'](_0xbe902e)[_0x167c63(0x1cb)]()[_0x167c63(0x1c8)](_0x4b60e3=>{const _0x85ef1a=_0x167c63;_0x1712a9[_0x85ef1a(0x1c9)](_0x2cf7f1,!![]);})[_0x167c63(0x1a4)](_0x5bc43f=>{const _0x1e32b9=_0x167c63;_0xd65f13[_0x1e32b9(0x192)]('Cannot\x20find\x20VPC\x20'+_0x4cb886+'\x20in\x20region\x20'+_0x3d426e['clusterRegion']+'.\x20Please\x20Check\x20and\x20try\x20again'),_0x1712a9[_0x1e32b9(0xf2)](_0x3671a3,![]);});}else{const _0x3d01d1=_0x1712a9[_0x167c63(0xf7)][_0x167c63(0x13b)]('|');let _0x5a728f=0x0;while(!![]){switch(_0x3d01d1[_0x5a728f++]){case'0':await _0x1712a9[_0x167c63(0x142)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'1':process[_0x167c63(0x1ec)](0x1);continue;case'2':_0x41b707=_0x167c63(0x153)+_0x1cbd50[_0x167c63(0xff)]+_0x167c63(0x1e7);continue;case'3':logger[_0x167c63(0x192)](_0x41b707);continue;case'4':await _0x1712a9['WlnKh'](reportToGalactusAndSendToEDS,_0x304a54,this[_0x167c63(0x1d8)],_0x41b707,messageTypes['ERROR'],_0x1712a9['ksgyX'],_0x1712a9[_0x167c63(0x1ed)],_0x1712a9[_0x167c63(0x12a)]);continue;}break;}}}}}let _0xbf520a=await this[_0x167c63(0xfb)](this[_0x167c63(0x1c3)]+_0x167c63(0x112));const _0x2168c5=_0xbf520a['nodegroup'][_0x167c63(0x1ca)],_0x2d954a=await this[_0x167c63(0x105)](_0x2168c5);return await _0x128274[_0x167c63(0x141)](_0x1712a9[_0x167c63(0xfe)],_0x2d954a)[_0x167c63(0x1a4)](_0x4a4cdb=>{const _0x33c9c7=_0x167c63,_0x6b2702={};_0x6b2702[_0x33c9c7(0x14e)]=_0x1712a9[_0x33c9c7(0x10a)];const _0x46b7b3=_0x6b2702;_0x1712a9[_0x33c9c7(0x15d)](_0x1712a9[_0x33c9c7(0x185)],_0x1712a9[_0x33c9c7(0x149)])?_0x5e8a44[_0x33c9c7(0x14f)](_0x46b7b3[_0x33c9c7(0x14e)]):logger[_0x33c9c7(0x14f)](_0x1712a9['lDygU']);}),_0x1a0675;}[a0_0x33504b(0x1de)](_0x546e10){const _0x12f72b=a0_0x33504b,_0x2574b6={'SiIGG':function(_0x5efcec,_0x9c219a){return _0x5efcec===_0x9c219a;},'KTrdO':_0x12f72b(0x131),'vHLSy':function(_0x4ac5f7,_0x9bb2e1){return _0x4ac5f7(_0x9bb2e1);},'EtiWX':_0x12f72b(0x12c),'XicST':_0x12f72b(0x148),'tnEli':function(_0x3e2a01,_0x16aeed){return _0x3e2a01!==_0x16aeed;},'CTqKg':'qDrQL','UZvNa':_0x12f72b(0x121)},_0x53ed25={};_0x53ed25['VpcIds']=[_0x546e10];let _0x459113=_0x53ed25;return new Promise((_0x3c7110,_0x2be778)=>{const _0x47bec1=_0x12f72b,_0x3bb4b5={'FXpnR':function(_0x931b3f,_0x534ae2){const _0x2e4fdb=a0_0x106c;return _0x2574b6[_0x2e4fdb(0x1a9)](_0x931b3f,_0x534ae2);},'MOyER':_0x2574b6[_0x47bec1(0x166)],'bpynv':function(_0xd1f0ba,_0x3d9d2f){return _0x2574b6['SiIGG'](_0xd1f0ba,_0x3d9d2f);},'hrgxh':_0x2574b6[_0x47bec1(0x11f)]};if(_0x2574b6['tnEli'](_0x2574b6[_0x47bec1(0xeb)],_0x2574b6[_0x47bec1(0xeb)]))_0x3bb4b5[_0x47bec1(0x150)](_0x4a3f96,!![]);else{const _0x484b37={};_0x484b37[_0x47bec1(0x1c1)]=_0x2574b6[_0x47bec1(0xf0)],_0x484b37[_0x47bec1(0x17e)]=global_registry[_0x47bec1(0x10e)];const _0x40d963=new awsSDK[(_0x47bec1(0x1e5))](_0x484b37);_0x40d963[_0x47bec1(0x178)](_0x459113)[_0x47bec1(0x1cb)]()['then'](_0x1324c0=>{const _0x3def1f=_0x47bec1;_0x2574b6[_0x3def1f(0x13f)](_0x2574b6[_0x3def1f(0x18f)],_0x2574b6[_0x3def1f(0x18f)])?_0x2574b6[_0x3def1f(0x1a9)](_0x3c7110,!![]):_0x475c7e['push'](_0x29bbbc[_0x3def1f(0x1e4)]);})[_0x47bec1(0x1a4)](_0x3e030b=>{const _0x13e9f7=_0x47bec1,_0x4dd4c7={};_0x4dd4c7[_0x13e9f7(0x11b)]=_0x3bb4b5['MOyER'];const _0x7328c4=_0x4dd4c7;if(_0x3bb4b5[_0x13e9f7(0x1da)](_0x3bb4b5[_0x13e9f7(0x106)],_0x3bb4b5[_0x13e9f7(0x106)]))logger['error']('Cannot\x20find\x20VPC\x20'+_0x546e10+'\x20in\x20region\x20'+global_registry[_0x13e9f7(0x10e)]+_0x13e9f7(0x174)),_0x3bb4b5['FXpnR'](_0x3c7110,![]);else{const _0x3fcee9={};_0x3fcee9[_0x13e9f7(0x1c1)]=_0x7328c4[_0x13e9f7(0x11b)];const _0x446a91=new _0x5126e2[(_0x13e9f7(0x13c))](_0x3fcee9),_0x247ccf={};return _0x247ccf[_0x13e9f7(0x186)]=this['clusterName'],_0x446a91[_0x13e9f7(0x18a)](_0x247ccf)[_0x13e9f7(0x1cb)]();}});}});}[a0_0x33504b(0x134)](_0x5f10da,_0x53bf56){const _0x5b09c4=a0_0x33504b,_0x26948a={'ajBnv':function(_0x405c71,_0x193fe6){return _0x405c71(_0x193fe6);},'QecTE':function(_0x515eba,_0xf93261){return _0x515eba!==_0xf93261;},'ZZUaG':_0x5b09c4(0x176),'ClXNx':'ZTAwC','knMOx':function(_0x2f7c34,_0x2d94b2){return _0x2f7c34===_0x2d94b2;},'sUCDh':_0x5b09c4(0x122),'Kcivs':'lVwxB','cOqgh':_0x5b09c4(0x18c),'TZhiC':_0x5b09c4(0x1f1),'MTSGf':function(_0x417197,_0x438bac){return _0x417197===_0x438bac;},'ziAtT':_0x5b09c4(0xfa),'hqBnh':_0x5b09c4(0x12c),'BpHhE':_0x5b09c4(0x177),'xOXPf':function(_0xf1c70f,_0x135b71){return _0xf1c70f(_0x135b71);},'HJbak':_0x5b09c4(0x13a),'CCwWd':_0x5b09c4(0x163),'IHnoT':_0x5b09c4(0x18b),'vawcS':_0x5b09c4(0x121),'idIQW':_0x5b09c4(0x1aa)},_0x485983={};_0x485983['Name']=_0x26948a[_0x5b09c4(0xed)],_0x485983[_0x5b09c4(0x1bf)]=[_0x53bf56];const _0x3a4611={};_0x3a4611[_0x5b09c4(0x164)]=[_0x485983];let _0x1c5949=_0x3a4611;return new Promise((_0xec2244,_0x36d8f4)=>{const _0x24e17b=_0x5b09c4,_0x31e676={'qhuiU':function(_0x86cb40,_0x38cade){return _0x26948a['QecTE'](_0x86cb40,_0x38cade);},'jZspN':_0x26948a[_0x24e17b(0x1db)],'VcPVB':_0x26948a[_0x24e17b(0x102)],'QrTob':function(_0x8aa967,_0x3aed89){return _0x26948a['knMOx'](_0x8aa967,_0x3aed89);},'xsUJv':_0x26948a[_0x24e17b(0x114)],'yUrYP':_0x26948a[_0x24e17b(0x127)],'CjVTu':_0x26948a[_0x24e17b(0x1f6)],'YwwfO':_0x26948a['TZhiC'],'YtXvy':function(_0x2f59d5,_0xc7950c){const _0x4a5f4c=_0x24e17b;return _0x26948a[_0x4a5f4c(0x11c)](_0x2f59d5,_0xc7950c);},'orMRO':_0x26948a[_0x24e17b(0x19e)],'eatUb':function(_0x53c1cd,_0x1356e1){const _0x551a8b=_0x24e17b;return _0x26948a[_0x551a8b(0x1c0)](_0x53c1cd,_0x1356e1);},'viiSp':_0x26948a[_0x24e17b(0x1df)],'dfNcq':_0x26948a['BpHhE'],'tNKUe':function(_0xee7311,_0x30c33c){const _0xed7f97=_0x24e17b;return _0x26948a[_0xed7f97(0xf4)](_0xee7311,_0x30c33c);},'DzlYA':_0x26948a[_0x24e17b(0x100)]};if(_0x26948a['QecTE'](_0x26948a[_0x24e17b(0xfd)],_0x26948a['IHnoT'])){const _0x2e0ec1={};_0x2e0ec1[_0x24e17b(0x1c1)]=_0x26948a[_0x24e17b(0x199)],_0x2e0ec1[_0x24e17b(0x17e)]=global_registry['clusterRegion'];const _0x289941=new awsSDK[(_0x24e17b(0x1e5))](_0x2e0ec1);_0x289941['describeSubnets'](_0x1c5949)['promise']()['then'](_0xaf4455=>{const _0x4a3e5e=_0x24e17b,_0x504196={'ITXfC':function(_0x4c58a7,_0x5a1dab){const _0xe908da=a0_0x106c;return _0x31e676[_0xe908da(0x1b5)](_0x4c58a7,_0x5a1dab);},'aZwzx':_0x31e676['CjVTu'],'tthYA':_0x31e676['YwwfO'],'LXbaM':function(_0x4a94b7,_0x2d6e15){const _0x235ae6=a0_0x106c;return _0x31e676[_0x235ae6(0x19f)](_0x4a94b7,_0x2d6e15);},'KRIKF':_0x31e676[_0x4a3e5e(0x12e)],'gcdUN':function(_0x5bfc75,_0x5cff1d){const _0x1898a6=_0x4a3e5e;return _0x31e676[_0x1898a6(0x155)](_0x5bfc75,_0x5cff1d);},'ZUrqH':_0x31e676[_0x4a3e5e(0x12f)]};if(_0x31e676['qhuiU'](_0x31e676[_0x4a3e5e(0x1b4)],_0x31e676[_0x4a3e5e(0x1b4)]))return _0x16cb7a['includes'](_0x43455a)?!![]:(_0x26f365[_0x4a3e5e(0xf9)](_0x5d96c0),![]);else{const _0x5d3327=[],_0xe06ad=[];_0xaf4455['Subnets'][_0x4a3e5e(0x126)](_0x43b803=>{const _0x26b34b=_0x4a3e5e,_0x5a97db={'eQRWk':function(_0x17b02d,_0x45574c){const _0x5f0e02=a0_0x106c;return _0x504196[_0x5f0e02(0x1c2)](_0x17b02d,_0x45574c);},'zyPYe':_0x504196[_0x26b34b(0x190)],'ZYJko':_0x504196['tthYA']};if(_0x504196[_0x26b34b(0x1c4)](_0x504196['KRIKF'],_0x504196[_0x26b34b(0x1c6)]))_0x5d3327[_0x26b34b(0xf9)](_0x43b803['SubnetId']);else{const _0x37f034=_0x5c83d4[_0x26b34b(0x135)]['tags'];return _0x37f034&&_0x5a97db['eQRWk'](_0x37f034[_0x5a97db[_0x26b34b(0x156)]][_0x26b34b(0x10f)](),_0x5a97db[_0x26b34b(0x1c7)]);}});const _0x5cb6b1=_0x5f10da[_0x4a3e5e(0x10b)](_0x4486b3=>{const _0x247551=_0x4a3e5e;if(_0x31e676['qhuiU'](_0x31e676['jZspN'],_0x31e676[_0x247551(0x1b0)])){if(_0x5d3327[_0x247551(0x144)](_0x4486b3)){if(_0x31e676[_0x247551(0x1b5)](_0x31e676[_0x247551(0x116)],_0x31e676[_0x247551(0x116)]))return!![];else{const _0x4da1bc={'nFcUJ':function(_0x1d440e,_0x3b5a95){return _0x504196['gcdUN'](_0x1d440e,_0x3b5a95);}},_0x12bfc0={};_0x12bfc0[_0x247551(0x1c1)]=_0x504196[_0x247551(0x1b9)];const _0x105091=new _0x1c2326[(_0x247551(0x13c))](_0x12bfc0);_0x105091['listClusters']()[_0x247551(0x1cb)]()[_0x247551(0x1c8)](_0x5f2de2=>{const _0x435719=_0x247551;_0x5f2de2['clusters'][_0x435719(0x144)](this[_0x435719(0x1c3)])&&_0x4da1bc[_0x435719(0x10d)](_0x3e56d9,!![]),_0x4da1bc[_0x435719(0x10d)](_0x46ebf6,![]);})[_0x247551(0x1a4)](_0x3085b0=>{const _0x5532a1=_0x247551;_0x186ac3[_0x5532a1(0x192)](_0x3085b0),_0x4da1bc[_0x5532a1(0x10d)](_0x43c655,_0x3085b0);});}}else return _0x31e676[_0x247551(0x1b5)](_0x31e676[_0x247551(0x15c)],_0x31e676[_0x247551(0x15c)])?(_0xe06ad[_0x247551(0xf9)](_0x4486b3),![]):_0x22d3dd['body'][_0x247551(0xec)][_0x247551(0x1bd)][_0x247551(0x11e)][0x0]['hostname'];}else!this[_0x247551(0x1d7)]()&&this['setConfig']();});_0x31e676['tNKUe'](_0xec2244,[_0x5cb6b1,_0xe06ad]);}})[_0x24e17b(0x1a4)](_0x55cb98=>{const _0x434523=_0x24e17b;if(_0x31e676[_0x434523(0x1b5)](_0x31e676['DzlYA'],_0x31e676[_0x434523(0x1bb)]))logger[_0x434523(0x192)](_0x434523(0x13d)+_0x5f10da+'\x20in\x20region\x20'+global_registry[_0x434523(0x10e)]+_0x434523(0x173)+_0x55cb98),_0x31e676[_0x434523(0x155)](_0xec2244,[![],[]]);else{const _0xcc9de2={};_0xcc9de2['apiVersion']=_0x31e676[_0x434523(0x12f)];const _0x4d18a2=new _0x449653[(_0x434523(0x13c))](_0xcc9de2),_0x2a7bd7={};return _0x2a7bd7['clusterName']=this[_0x434523(0x1c3)],_0x2a7bd7[_0x434523(0x15a)]=_0x29221d,_0x4d18a2[_0x434523(0x15f)](_0x2a7bd7)[_0x434523(0x1cb)]();}});}else _0x2767c7['error'](_0x24e17b(0x1b2)+_0x407aac+'\x20in\x20region\x20'+_0x4633e0[_0x24e17b(0x10e)]+_0x24e17b(0x174)),_0x26948a[_0x24e17b(0x1c0)](_0x595258,![]);});}}function a0_0x106c(_0x418f9e,_0x4f386c){const _0x2f9bfa=a0_0x2f9b();return a0_0x106c=function(_0x106c89,_0x187b13){_0x106c89=_0x106c89-0xe8;let _0x183b12=_0x2f9bfa[_0x106c89];return _0x183b12;},a0_0x106c(_0x418f9e,_0x4f386c);}const a0_0x584e76={};a0_0x584e76[a0_0x33504b(0x1eb)]=AWSCloudProvider,module[a0_0x33504b(0x12b)]=a0_0x584e76;
@@ -1 +1 @@
1
- const a1_0x1b2d5a=a1_0x163c;(function(_0x5e7269,_0x2aeb07){const _0x2ef68c=a1_0x163c,_0x4d5719=_0x5e7269();while(!![]){try{const _0x31f626=parseInt(_0x2ef68c(0x202))/0x1+-parseInt(_0x2ef68c(0x207))/0x2+-parseInt(_0x2ef68c(0x1f7))/0x3+-parseInt(_0x2ef68c(0x201))/0x4*(parseInt(_0x2ef68c(0x208))/0x5)+-parseInt(_0x2ef68c(0x1f8))/0x6*(-parseInt(_0x2ef68c(0x1fa))/0x7)+-parseInt(_0x2ef68c(0x1f3))/0x8+-parseInt(_0x2ef68c(0x203))/0x9*(-parseInt(_0x2ef68c(0x1fe))/0xa);if(_0x31f626===_0x2aeb07)break;else _0x4d5719['push'](_0x4d5719['shift']());}catch(_0x33ab05){_0x4d5719['push'](_0x4d5719['shift']());}}}(a1_0x58bc,0x5efeb));const fs=require('fs'),path=require(a1_0x1b2d5a(0x205)),yaml=require('js-yaml'),{logger}=require(a1_0x1b2d5a(0x1f6)),{CloudProvider}=require(a1_0x1b2d5a(0x204)),{AZURE,WS_EVENTS,global_registry}=require(a1_0x1b2d5a(0x1f5)),{deleteRoutingDeps}=require(a1_0x1b2d5a(0x1f4));function a1_0x163c(_0x2e8150,_0x4add72){const _0x58bcaa=a1_0x58bc();return a1_0x163c=function(_0x163c5e,_0x1caead){_0x163c5e=_0x163c5e-0x1f3;let _0x13e660=_0x58bcaa[_0x163c5e];return _0x13e660;},a1_0x163c(_0x2e8150,_0x4add72);}class AzureCloudProvider extends CloudProvider{constructor(_0x59f351,_0x18505d,_0x44560b,_0x36ffe7){const _0x2903bd=a1_0x1b2d5a,_0x4fe891={};_0x4fe891[_0x2903bd(0x1f9)]='5|0|4|1|3|2';const _0x3e669b=_0x4fe891,_0x145205=_0x3e669b[_0x2903bd(0x1f9)][_0x2903bd(0x206)]('|');let _0x3131ba=0x0;while(!![]){switch(_0x145205[_0x3131ba++]){case'0':this[_0x2903bd(0x1ff)]=null;continue;case'1':this['storageClient']=null;continue;case'2':this[_0x2903bd(0x200)]=null;continue;case'3':this[_0x2903bd(0x1fd)]=null;continue;case'4':this['containerClient']=null;continue;case'5':super(AZURE,_0x59f351,_0x18505d,_0x44560b,_0x36ffe7);continue;}break;}}}function a1_0x58bc(){const _0x147022=['5488240whhYGd','../utils/gridComponents','../config/constants','../config/logger','1206507MuqNph','528hTezmu','eKPmI','17843cuhNEH','AzureCloudProvider','exports','resourceClient','275070bOzZDH','clusterInfo','networkClient','2816644ESHOin','377091kryPTf','621AkhMBu','./CloudProvider','path','split','635854NuxCsU','5FyytPY'];a1_0x58bc=function(){return _0x147022;};return a1_0x58bc();}const a1_0x536e42={};a1_0x536e42[a1_0x1b2d5a(0x1fb)]=AzureCloudProvider,module[a1_0x1b2d5a(0x1fc)]=a1_0x536e42;
1
+ function a1_0xe9fa(){const _0x58a390=['path','containerClient','../config/logger','split','688814ZpkBxB','22468gDWecH','js-yaml','storageClient','2422152XIIODW','networkClient','142AuwADV','AzureCloudProvider','5403411uYCvFZ','358521xEUDFD','clusterInfo','resourceClient','exports','3191840DlXifE','fHoOn','9393SnGBxb','90GnuKnt','1|2|0|3|5|4'];a1_0xe9fa=function(){return _0x58a390;};return a1_0xe9fa();}const a1_0x24fbf4=a1_0x17ac;(function(_0x5dfab9,_0x359b06){const _0x7cfa8=a1_0x17ac,_0x422834=_0x5dfab9();while(!![]){try{const _0x2646e8=-parseInt(_0x7cfa8(0xb2))/0x1+-parseInt(_0x7cfa8(0xc5))/0x2*(-parseInt(_0x7cfa8(0xb8))/0x3)+-parseInt(_0x7cfa8(0xc0))/0x4*(-parseInt(_0x7cfa8(0xb9))/0x5)+parseInt(_0x7cfa8(0xc3))/0x6+parseInt(_0x7cfa8(0xbf))/0x7+parseInt(_0x7cfa8(0xb6))/0x8+-parseInt(_0x7cfa8(0xb1))/0x9;if(_0x2646e8===_0x359b06)break;else _0x422834['push'](_0x422834['shift']());}catch(_0x19dfbc){_0x422834['push'](_0x422834['shift']());}}}(a1_0xe9fa,0x40d6d));const fs=require('fs'),path=require(a1_0x24fbf4(0xbb)),yaml=require(a1_0x24fbf4(0xc1)),{logger}=require(a1_0x24fbf4(0xbd)),{CloudProvider}=require('./CloudProvider'),{AZURE,WS_EVENTS,global_registry}=require('../config/constants'),{deleteRoutingDeps}=require('../utils/gridComponents');function a1_0x17ac(_0x2ad673,_0xc2147b){const _0xe9fa71=a1_0xe9fa();return a1_0x17ac=function(_0x17ac37,_0x4eaeac){_0x17ac37=_0x17ac37-0xb1;let _0x3e85a3=_0xe9fa71[_0x17ac37];return _0x3e85a3;},a1_0x17ac(_0x2ad673,_0xc2147b);}class AzureCloudProvider extends CloudProvider{constructor(_0x476efe,_0xe4081d,_0xbc600,_0x5dc513){const _0x6c2302=a1_0x24fbf4,_0x2bf19c={};_0x2bf19c[_0x6c2302(0xb7)]=_0x6c2302(0xba);const _0x3c57fe=_0x2bf19c,_0x51f8ce=_0x3c57fe[_0x6c2302(0xb7)][_0x6c2302(0xbe)]('|');let _0x50eaf5=0x0;while(!![]){switch(_0x51f8ce[_0x50eaf5++]){case'0':this[_0x6c2302(0xbc)]=null;continue;case'1':super(AZURE,_0x476efe,_0xe4081d,_0xbc600,_0x5dc513);continue;case'2':this[_0x6c2302(0xb3)]=null;continue;case'3':this[_0x6c2302(0xc2)]=null;continue;case'4':this[_0x6c2302(0xc4)]=null;continue;case'5':this[_0x6c2302(0xb4)]=null;continue;}break;}}}const a1_0x83f49d={};a1_0x83f49d[a1_0x24fbf4(0xc6)]=AzureCloudProvider,module[a1_0x24fbf4(0xb5)]=a1_0x83f49d;
@@ -1 +1 @@
1
- var a2_0x574d15=a2_0x1339;(function(_0x3107ad,_0x40f594){var _0x9263e1=a2_0x1339,_0x2c5f21=_0x3107ad();while(!![]){try{var _0xe688b5=-parseInt(_0x9263e1(0xaf))/0x1*(parseInt(_0x9263e1(0xac))/0x2)+parseInt(_0x9263e1(0xb0))/0x3*(-parseInt(_0x9263e1(0xba))/0x4)+parseInt(_0x9263e1(0xbb))/0x5*(-parseInt(_0x9263e1(0xb7))/0x6)+-parseInt(_0x9263e1(0xae))/0x7+-parseInt(_0x9263e1(0xb8))/0x8+-parseInt(_0x9263e1(0xb2))/0x9+parseInt(_0x9263e1(0xb6))/0xa;if(_0xe688b5===_0x40f594)break;else _0x2c5f21['push'](_0x2c5f21['shift']());}catch(_0x400d28){_0x2c5f21['push'](_0x2c5f21['shift']());}}}(a2_0x33e8,0x38028));class CloudProvider{constructor(_0x513de4,_0x2effbc,_0x127dc0,_0x33f522,_0x5e4223){var _0x45deaa=a2_0x1339,_0x2a2c6d={};_0x2a2c6d[_0x45deaa(0xb3)]='1|0|4|2|3';var _0x7c8148=_0x2a2c6d,_0x5f14ce=_0x7c8148[_0x45deaa(0xb3)]['split']('|'),_0x392016=0x0;while(!![]){switch(_0x5f14ce[_0x392016++]){case'0':this[_0x45deaa(0xb5)]=_0x2effbc;continue;case'1':this[_0x45deaa(0xb9)]=_0x513de4;continue;case'2':this['rws']=_0x33f522;continue;case'3':this['webSocketUtils']=_0x5e4223;continue;case'4':this[_0x45deaa(0xad)]=_0x127dc0;continue;}break;}}}function a2_0x1339(_0x2e721a,_0x18929d){var _0x33e8b3=a2_0x33e8();return a2_0x1339=function(_0x133904,_0xa4de4c){_0x133904=_0x133904-0xac;var _0x21fbbd=_0x33e8b3[_0x133904];return _0x21fbbd;},a2_0x1339(_0x2e721a,_0x18929d);}function a2_0x33e8(){var _0x57e81e=['3179648pjcSvR','cloudProviderName','307612UlDpwP','5rMFQQz','14YeRvuX','gridName','1595818zMzJSr','15887OQiFRL','3MqLZuV','exports','1865709kjMAtU','PuJXt','CloudProvider','clusterName','13366000AhCCax','518046kZSQxR'];a2_0x33e8=function(){return _0x57e81e;};return a2_0x33e8();}var a2_0x359f40={};a2_0x359f40[a2_0x574d15(0xb4)]=CloudProvider,module[a2_0x574d15(0xb1)]=a2_0x359f40;
1
+ var a2_0x398ca2=a2_0x5e44;function a2_0x3cac(){var _0x584510=['2011455zgvkZQ','147KvkUsN','10sWgDUD','1737140oGTlqO','CloudProvider','10917336xtsEuy','6vBNCup','211832wEBBgQ','webSocketUtils','4|1|0|2|3','cloudProviderName','clusterName','gridName','6881270myitje','57592nOiWDu','cxbco','20404NFFDom','rws','186qfVGfj','13KOvNDJ','9SWlMeM','exports'];a2_0x3cac=function(){return _0x584510;};return a2_0x3cac();}(function(_0x5624ad,_0x5dfed3){var _0x200760=a2_0x5e44,_0x585eec=_0x5624ad();while(!![]){try{var _0x3fc846=-parseInt(_0x200760(0x178))/0x1*(parseInt(_0x200760(0x180))/0x2)+parseInt(_0x200760(0x17a))/0x3*(-parseInt(_0x200760(0x176))/0x4)+-parseInt(_0x200760(0x17e))/0x5*(parseInt(_0x200760(0x16e))/0x6)+-parseInt(_0x200760(0x17f))/0x7*(-parseInt(_0x200760(0x16f))/0x8)+parseInt(_0x200760(0x17c))/0x9*(-parseInt(_0x200760(0x181))/0xa)+parseInt(_0x200760(0x175))/0xb+parseInt(_0x200760(0x183))/0xc*(parseInt(_0x200760(0x17b))/0xd);if(_0x3fc846===_0x5dfed3)break;else _0x585eec['push'](_0x585eec['shift']());}catch(_0x2efe82){_0x585eec['push'](_0x585eec['shift']());}}}(a2_0x3cac,0x7f202));class CloudProvider{constructor(_0x1c575e,_0x301dfc,_0x3d0e4c,_0x4fb827,_0x50cb03){var _0x43a6a1=a2_0x5e44,_0x455200={};_0x455200['cxbco']=_0x43a6a1(0x171);var _0x9a0793=_0x455200,_0x12bfdb=_0x9a0793[_0x43a6a1(0x177)]['split']('|'),_0x85ba5b=0x0;while(!![]){switch(_0x12bfdb[_0x85ba5b++]){case'0':this[_0x43a6a1(0x174)]=_0x3d0e4c;continue;case'1':this[_0x43a6a1(0x173)]=_0x301dfc;continue;case'2':this[_0x43a6a1(0x179)]=_0x4fb827;continue;case'3':this[_0x43a6a1(0x170)]=_0x50cb03;continue;case'4':this[_0x43a6a1(0x172)]=_0x1c575e;continue;}break;}}}function a2_0x5e44(_0x34d3a4,_0x1813e6){var _0x3cac0e=a2_0x3cac();return a2_0x5e44=function(_0x5e4453,_0x47d789){_0x5e4453=_0x5e4453-0x16e;var _0x3972ed=_0x3cac0e[_0x5e4453];return _0x3972ed;},a2_0x5e44(_0x34d3a4,_0x1813e6);}var a2_0x2e1a63={};a2_0x2e1a63[a2_0x398ca2(0x182)]=CloudProvider,module[a2_0x398ca2(0x17d)]=a2_0x2e1a63;
@@ -1 +1 @@
1
- function a3_0xa26d(){const _0x4d76a1=['@google-cloud/container','WTUxS','sendEventToBackend','list','minNodeCount','783682kpyxSm','instanceType','kxpvb','storage.multipartUploads.abort','ZVOEU','https://','IuJZh','storage.objects.setIamPolicy','locations','DrlYn','delay','GKE\x20Cluster\x20deletion\x20failed','SDlGM','serviceAccountName','432676QZuLKm','gkecluster.json','../utils/utilityMethods','jCJZg','pvGQi','RUNNING','CgloC','LOG','Creating\x20GKE\x20Cluster','/clusters/','masterAuth','HSgGX','clusters','caZjc','subnetwork','minNodes','lPNaA','irEER','members','ETyGF','clusterRegion','exports','AOhEc','join','loeBl','/locations/','managedby','storage.multipartUploads.list','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','configureIfNotConfigured','XJsok','BFTbF','Service\x20account\x20already\x20exists,\x20skipping','ANMvv','getKubeConfigData','gcloud\x20auth\x20login\x20--cred-file=','cloudProviderName','ldWsq','xNDgI','isClusterPresent','/roles/','gcp_credentials.json','credentialsPath','project_id','oNAFA','wdhSY','autoscaling','xHYTH','Erouj','PZhoa','luVtH','SrvZs','storage.objects.get','fvzyX','eCKay','iQAzs','ZpOZi','webSocketUtils','gcpresources','toLowerCase','JvxBQ','qAzHB','xwGZI','tSMAP','cloudProvider','Nnrws','1460ojvgLM','loadBalancer','KwqqL','resourceLabels','1657352sNjUYa','YKxfs','TBOIE','vetJu','nodePools','config','error','dCqrL','../config/logger','sQIzM','kjBIH','PmhuT','get','body','XlgAT','mhiSl','FBHsj','machineType','cbTgi','tjuIY','parse','role','info','type','rkXjO','Bkhyi','gDpDD','yFaUJ','storage.buckets.setIamPolicy','bHYin','HCTAb','kASuB','https://www.googleapis.com/auth/cloud-platform','iDthA','RPBZJ','maxNodeCount','onnFG','/subnetworks/','CEdGj','getClusterInfo','qmqcZ','child_process','title','exec','NGCgG','IfaUX','ShpKJ','GcRzL','subnetworks','MfrQd','FKFDM','Cluster\x20creation\x20failed','setupServiceAccount','cwXwd','setIamPolicy','iam','UGdtA','name','clusterName','/serviceAccounts/','DONE','setConfig','Deleting\x20the\x20cluster\x20','sendGCPInfoToHST','3jbPbIs','username','tIwVh','requestBody','isBrowserstackCluster','storage.buckets.listEffectiveTags','resourcemanagerClient','idzre','bstackAccesskey','parent','turboscale-service-account','wwYyE','projectId','XaIOU','4|0|2|3|5|1','auth','/regions/','KfTCT','BGzUv','toString','pLTss','https://www.googleapis.com/compute/v1/projects/','networkClient','Tymai','iamClient','setupNewCluster','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','accessKey','split','kqLOm','PYnkR','checkServiceAccount','gcpConfigSet','utf-8','storage.objects.list','bstackUsername','nWgpA','cPZJh','googleapis','NetworksClient','qXgtX','customRoleName','stack','storage.multipartUploads.create','RLARO','status','YYUOL','BwJhs','storage.buckets.create','browserstack','ljRNE','iam.serviceAccounts.signBlob','message','QkxCb','5|1|7|8|4|2|6|0|3','mMjJA','project','WkOsp','KERtM','YSotJ','172515ZRVSsO','serviceAccount:','rUFAu','keyFile','replace','qPbVn','Eptnw','KubeConfigTemplate.yaml','.\x20Error:\x20','fPMhs','Ngwed','deleteCluster','storage.objects.getIamPolicy','writeFileSync','GtsqA','@google-cloud/resource-manager','.iam.gserviceaccount.com','iyJhw','UebGY','amjYH','storage.buckets.deleteTagBinding','aqxnq','7YUHdYZ','Turboscale\x20Custom\x20Role','isConfigured','projects','286722TwJuEE','lRbMZ','OkqdH','vosSd','push','listClusters','HWbLE','HKuAe','containerClient','EYrBM','storage.buckets.listTagBindings','gALWX','fgToL','Cannot\x20find\x20subnets\x20','GoogleCloudProvider','QQuoA','10jHeSwe','QzYPT','storage.buckets.get','bindings','1327470EmuWby','RBZAC','Creating\x20service\x20account','readFileAsync','21549UBRdhY','nvvII','projects/','createCluster','data','rws','turboscale_custom_role','endpoint','SPPSz','scopes','accountId','OgZWq','getClient','qaZHA','lBTZO','EYCwE','roles','storage.multipartUploads.listParts','vpcInfo','WIocy','network','serviceAccounts','jKYVE','qOhcI','getGridHostname','zbtHm','UdOLr','pkSaN','templates','storage.buckets.delete','TuICL','fetchLocalCreds','../utils/gridComponents','@google-cloud/compute','gke_','path','storage.buckets.getObjectInsights','accounts','qngxN','Eygrj','xxdBO','mlfdb','default','create','hkdIL','bAiyh','ingress'];a3_0xa26d=function(){return _0x4d76a1;};return a3_0xa26d();}const a3_0x46fdf6=a3_0x1129;(function(_0x39760e,_0xe363cb){const _0x25d99a=a3_0x1129,_0x12d9e0=_0x39760e();while(!![]){try{const _0xc981a=parseInt(_0x25d99a(0x245))/0x1+-parseInt(_0x25d99a(0x2ab))/0x2+-parseInt(_0x25d99a(0x209))/0x3*(parseInt(_0x25d99a(0x2b9))/0x4)+parseInt(_0x25d99a(0x26f))/0x5*(parseInt(_0x25d99a(0x273))/0x6)+parseInt(_0x25d99a(0x25b))/0x7*(-parseInt(_0x25d99a(0x2ff))/0x8)+parseInt(_0x25d99a(0x25f))/0x9+-parseInt(_0x25d99a(0x2fb))/0xa*(-parseInt(_0x25d99a(0x277))/0xb);if(_0xc981a===_0xe363cb)break;else _0x12d9e0['push'](_0x12d9e0['shift']());}catch(_0x27e214){_0x12d9e0['push'](_0x12d9e0['shift']());}}}(a3_0xa26d,0x371a2));const fs=require('fs'),path=require(a3_0x46fdf6(0x29a)),cp=require(a3_0x46fdf6(0x1f2)),{google}=require(a3_0x46fdf6(0x22f)),compute=require(a3_0x46fdf6(0x298)),container=require(a3_0x46fdf6(0x2a6)),{ProjectsClient}=require(a3_0x46fdf6(0x254))['v3'],{logger}=require(a3_0x46fdf6(0x307)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig}=require(a3_0x46fdf6(0x2bb)),{deleteRoutingDeps}=require(a3_0x46fdf6(0x297)),{GCP,WS_EVENTS,global_registry}=require('../config/constants');function a3_0x1129(_0x162a33,_0x39c341){const _0xa26d57=a3_0xa26d();return a3_0x1129=function(_0x112910,_0x5542ea){_0x112910=_0x112910-0x1f0;let _0x39b15f=_0xa26d57[_0x112910];return _0x39b15f;},a3_0x1129(_0x162a33,_0x39c341);}class GoogleCloudProvider extends CloudProvider{constructor(_0x7cfd5c,_0x250c11,_0x153c52,_0x13166f){const _0x1839be=a3_0x46fdf6,_0x3e2cf1={};_0x3e2cf1['XfjuW']=_0x1839be(0x23f),_0x3e2cf1[_0x1839be(0x1f7)]=_0x1839be(0x27d),_0x3e2cf1[_0x1839be(0x1f1)]=_0x1839be(0x213);const _0x3bd741=_0x3e2cf1,_0x47dd1c=_0x3bd741['XfjuW'][_0x1839be(0x225)]('|');let _0x358434=0x0;while(!![]){switch(_0x47dd1c[_0x358434++]){case'0':this[_0x1839be(0x232)]=_0x3bd741['ShpKJ'];continue;case'1':this[_0x1839be(0x267)]=null;continue;case'2':this[_0x1839be(0x2e3)]=null;continue;case'3':this['serviceAccountName']=_0x3bd741[_0x1839be(0x1f1)];continue;case'4':this[_0x1839be(0x221)]=null;continue;case'5':super(GCP,_0x7cfd5c,_0x250c11,_0x153c52,_0x13166f);continue;case'6':this[_0x1839be(0x215)]=null;continue;case'7':this[_0x1839be(0x21f)]=null;continue;case'8':this[_0x1839be(0x20f)]=null;continue;}break;}}['configureIfNotConfigured'](){const _0x5c04cf=a3_0x46fdf6,_0x474ca1={};_0x474ca1['YXoEC']=function(_0x38f35c,_0x240114){return _0x38f35c===_0x240114;},_0x474ca1[_0x5c04cf(0x1f6)]='browserstack',_0x474ca1[_0x5c04cf(0x2b4)]=function(_0xd785a9,_0x323c18){return _0xd785a9===_0x323c18;},_0x474ca1[_0x5c04cf(0x243)]=_0x5c04cf(0x306),_0x474ca1[_0x5c04cf(0x2de)]='FbIQX';const _0x4a3f14=_0x474ca1;if(!this['isConfigured']()){if(_0x4a3f14[_0x5c04cf(0x2b4)](_0x4a3f14['KERtM'],_0x4a3f14[_0x5c04cf(0x2de)])){const _0x393f3e=_0x3851bf[0x0]?.[_0x5c04cf(0x2fe)]?.[_0x5c04cf(0x2d3)];return _0x393f3e&&_0x4a3f14['YXoEC'](_0x393f3e[_0x5c04cf(0x2f4)](),_0x4a3f14['IfaUX']);}else this[_0x5c04cf(0x206)]();}}[a3_0x46fdf6(0x25d)](){const _0xd230b1=a3_0x46fdf6,_0x71b290={};_0x71b290[_0xd230b1(0x2df)]=function(_0x5d81d1,_0x3c8129){return _0x5d81d1===_0x3c8129;};const _0x353324=_0x71b290;return _0x353324[_0xd230b1(0x2df)](global_registry[_0xd230b1(0x229)],!![]);}[a3_0x46fdf6(0x206)](){const _0x558d58=a3_0x46fdf6,_0x5c96eb=this[_0x558d58(0x2e3)],_0x36a668={};_0x36a668[_0x558d58(0x248)]=_0x5c96eb,this['containerClient']=new container['v1']['ClusterManagerClient'](_0x36a668);const _0x146567={};_0x146567[_0x558d58(0x248)]=_0x5c96eb,this[_0x558d58(0x21f)]=new compute['v1']['NetworksClient'](_0x146567);const _0x2eedbf={};_0x2eedbf['keyFile']=_0x5c96eb,this['resourcemanagerClient']=new ProjectsClient(_0x2eedbf),this[_0x558d58(0x221)]=google[_0x558d58(0x200)]('v1'),global_registry[_0x558d58(0x229)]=!![];}async['getUserInput'](_0x483b2a,_0x268792){const _0x11e1dd=a3_0x46fdf6,_0x4892bd={'GcRzL':function(_0x35705b,_0x294d25){return _0x35705b(_0x294d25);},'Efrup':function(_0x365294){return _0x365294();},'nWgpA':_0x11e1dd(0x2e2)},_0x1250c1=await _0x4892bd[_0x11e1dd(0x1f8)](_0x483b2a,_0x11e1dd(0x2d5));let _0xf472e5=await fs[_0x11e1dd(0x276)](_0x1250c1);_0xf472e5=_0xf472e5[_0x11e1dd(0x21c)]();const _0x1d9273=_0x4892bd['Efrup'](getDirForConfig),_0x2469f1=path[_0x11e1dd(0x2d0)](_0x1d9273,_0x4892bd[_0x11e1dd(0x22d)]);fs[_0x11e1dd(0x252)](_0x2469f1,_0xf472e5),this[_0x11e1dd(0x2e3)]=_0x2469f1;const _0x4a640c={};return _0x4a640c[_0x11e1dd(0x248)]=_0x2469f1,_0x268792[_0x11e1dd(0x2f9)][GCP]=_0x4a640c,_0xf472e5=JSON[_0x11e1dd(0x313)](_0xf472e5),this[_0x11e1dd(0x215)]=_0xf472e5[_0x11e1dd(0x2e4)],_0x268792;}async[a3_0x46fdf6(0x296)](_0x323027){const _0x43afae=a3_0x46fdf6;this[_0x43afae(0x2e3)]=_0x323027[this[_0x43afae(0x2dd)]]['keyFile'];let _0x54c8ab=await fs[_0x43afae(0x276)](this[_0x43afae(0x2e3)]);_0x54c8ab=JSON[_0x43afae(0x313)](_0x54c8ab),this[_0x43afae(0x215)]=_0x54c8ab[_0x43afae(0x2e4)];}[a3_0x46fdf6(0x28f)](_0x3876bd){const _0x52eb92=a3_0x46fdf6;return _0x3876bd[_0x52eb92(0x30c)][_0x52eb92(0x236)][_0x52eb92(0x2fc)][_0x52eb92(0x2a5)][0x0]['ip'];}async[a3_0x46fdf6(0x20d)](){const _0x46bfb4=a3_0x46fdf6,_0x7be797={};_0x7be797[_0x46bfb4(0x311)]=function(_0x57d11e,_0x13592a){return _0x57d11e===_0x13592a;},_0x7be797[_0x46bfb4(0x274)]=_0x46bfb4(0x2bc),_0x7be797['PLCHZ']=_0x46bfb4(0x2e8),_0x7be797[_0x46bfb4(0x2eb)]=function(_0x4d6f11,_0x475f01){return _0x4d6f11!==_0x475f01;},_0x7be797['Eptnw']=_0x46bfb4(0x2a0),_0x7be797[_0x46bfb4(0x2f8)]=_0x46bfb4(0x31c),_0x7be797['QTlEm']=function(_0x2aca38,_0x1788cb){return _0x2aca38===_0x1788cb;},_0x7be797[_0x46bfb4(0x2a4)]=_0x46bfb4(0x23a),_0x7be797[_0x46bfb4(0x325)]=_0x46bfb4(0x321);const _0x212503=_0x7be797;try{if(_0x212503[_0x46bfb4(0x311)](_0x212503[_0x46bfb4(0x274)],_0x212503['PLCHZ'])){const _0x47b366=_0x46bfb4(0x21e)+this[_0x46bfb4(0x215)]+'/regions/'+_0x1fe97d[_0x46bfb4(0x2cd)]+'/subnetworks/'+_0x1de4b1[0x0];if(_0x212503[_0x46bfb4(0x311)](_0x47b366,_0x172df2))return[!![],_0x2f4d51];}else{const _0x1de2c6=await this['getClusterInfo']();if(_0x1de2c6[0x0]?.[_0x46bfb4(0x2fe)]?.[_0x46bfb4(0x2d3)]){if(_0x212503[_0x46bfb4(0x2eb)](_0x212503[_0x46bfb4(0x24b)],_0x212503['tSMAP'])){const _0x24eb97=_0x1de2c6[0x0]?.[_0x46bfb4(0x2fe)]?.[_0x46bfb4(0x2d3)];return _0x24eb97&&_0x212503['QTlEm'](_0x24eb97['toLowerCase'](),_0x212503['bAiyh']);}else return![];}}}catch(_0x563914){return _0x212503[_0x46bfb4(0x2eb)](_0x212503[_0x46bfb4(0x325)],_0x212503['CEdGj'])?(_0x175bea[_0x46bfb4(0x305)](_0x46bfb4(0x26c)+_0x2d2f0c+_0x46bfb4(0x24d)+_0xd3c097),[![],[]]):![];}return![];}async['isClusterPresent'](){const _0x2d39a7=a3_0x46fdf6,_0x5e9687={};_0x5e9687[_0x2d39a7(0x30e)]=function(_0x2a5c3d,_0x4c98f1){return _0x2a5c3d===_0x4c98f1;},_0x5e9687[_0x2d39a7(0x216)]=_0x2d39a7(0x31a),_0x5e9687[_0x2d39a7(0x2f7)]=_0x2d39a7(0x30d),_0x5e9687[_0x2d39a7(0x2a7)]=function(_0x4882d9,_0x5cd4e2){return _0x4882d9===_0x5cd4e2;},_0x5e9687[_0x2d39a7(0x2b7)]=_0x2d39a7(0x268);const _0x361972=_0x5e9687;this[_0x2d39a7(0x2d6)]();const _0x4cc1b8={};_0x4cc1b8[_0x2d39a7(0x212)]='projects/'+this[_0x2d39a7(0x215)]+_0x2d39a7(0x2d2)+global_registry[_0x2d39a7(0x2cd)];const _0x5e3fc2=_0x4cc1b8,_0x9bfdb3=await this[_0x2d39a7(0x267)][_0x2d39a7(0x264)](_0x5e3fc2);for(const _0x49c6d0 of _0x9bfdb3[0x0][_0x2d39a7(0x2c5)]){if(_0x361972[_0x2d39a7(0x30e)](_0x361972[_0x2d39a7(0x216)],_0x361972[_0x2d39a7(0x2f7)]))return!![];else{if(_0x361972['mhiSl'](_0x49c6d0[_0x2d39a7(0x202)],this['clusterName'])){if(_0x361972[_0x2d39a7(0x2a7)](_0x361972[_0x2d39a7(0x2b7)],_0x361972['SDlGM']))return!![];else{const _0x5017d1=this['credentialsPath'],_0x20682b={};_0x20682b['keyFile']=_0x5017d1,this[_0x2d39a7(0x267)]=new _0x544ae5['v1']['ClusterManagerClient'](_0x20682b);const _0x5b3777={};_0x5b3777[_0x2d39a7(0x248)]=_0x5017d1,this[_0x2d39a7(0x21f)]=new _0x254614['v1'][(_0x2d39a7(0x230))](_0x5b3777);const _0x10837e={};_0x10837e['keyFile']=_0x5017d1,this[_0x2d39a7(0x20f)]=new _0x319409(_0x10837e),this[_0x2d39a7(0x221)]=_0xf4ea32[_0x2d39a7(0x200)]('v1'),_0x47953b[_0x2d39a7(0x229)]=!![];}}}}return![];}async[a3_0x46fdf6(0x1f0)](){const _0x8988d3=a3_0x46fdf6,_0x5e54d8=await this[_0x8988d3(0x267)]['getCluster']({'name':'projects/'+this['projectId']+'/locations/'+global_registry[_0x8988d3(0x2cd)]+_0x8988d3(0x2c2)+this[_0x8988d3(0x203)]});return _0x5e54d8;}async[a3_0x46fdf6(0x2db)](){const _0x6bbdaa=a3_0x46fdf6,_0x3026f0={};_0x3026f0['lBTZO']=_0x6bbdaa(0x293),_0x3026f0[_0x6bbdaa(0x2ec)]=_0x6bbdaa(0x2f3),_0x3026f0[_0x6bbdaa(0x28e)]=_0x6bbdaa(0x24c);const _0x3ee0c2=_0x3026f0;cp[_0x6bbdaa(0x1f4)](_0x6bbdaa(0x2dc)+this[_0x6bbdaa(0x2e3)]);const _0x3e6097=await this[_0x6bbdaa(0x1f0)](),_0x18c147=_0x6bbdaa(0x299)+this['projectId']+'_'+global_registry[_0x6bbdaa(0x2cd)]+'_'+this[_0x6bbdaa(0x203)];let _0x168cea=await fs[_0x6bbdaa(0x276)](path['join'](__dirname,'..',_0x3ee0c2[_0x6bbdaa(0x285)],_0x3ee0c2[_0x6bbdaa(0x2ec)],_0x3ee0c2[_0x6bbdaa(0x28e)]));return _0x168cea=_0x168cea[_0x6bbdaa(0x21c)](),_0x168cea=_0x168cea['replace'](/<CLUSTER_NAME>/g,_0x18c147),_0x168cea=_0x168cea[_0x6bbdaa(0x249)](/<CLUSTER_URL>/g,_0x6bbdaa(0x2b0)+_0x3e6097[0x0][_0x6bbdaa(0x27e)]),_0x168cea=_0x168cea[_0x6bbdaa(0x249)](/<CERTIFICATE_DATA>/g,_0x3e6097[0x0][_0x6bbdaa(0x2c3)]['clusterCaCertificate']),_0x168cea;}async[a3_0x46fdf6(0x228)](){const _0x5e2c21=a3_0x46fdf6,_0x56a22b={};_0x56a22b['TBOIE']=_0x5e2c21(0x2d9),_0x56a22b['onnFG']=_0x5e2c21(0x1fc),_0x56a22b[_0x5e2c21(0x2a3)]=_0x5e2c21(0x31f),_0x56a22b[_0x5e2c21(0x2d8)]=function(_0x537e96,_0x341dc6){return _0x537e96!==_0x341dc6;},_0x56a22b[_0x5e2c21(0x256)]='tdtko',_0x56a22b[_0x5e2c21(0x286)]=_0x5e2c21(0x290),_0x56a22b[_0x5e2c21(0x318)]=function(_0x4c86f3,_0x1243cf){return _0x4c86f3===_0x1243cf;},_0x56a22b[_0x5e2c21(0x320)]=function(_0x20dc89,_0x4f7db0){return _0x20dc89!==_0x4f7db0;},_0x56a22b[_0x5e2c21(0x31e)]=_0x5e2c21(0x2d7),_0x56a22b['fgToL']=_0x5e2c21(0x295);const _0x2dfa7a=_0x56a22b,_0x43a929={};_0x43a929[_0x5e2c21(0x280)]=[_0x2dfa7a[_0x5e2c21(0x2a3)]],_0x43a929[_0x5e2c21(0x248)]=this[_0x5e2c21(0x2e3)];const _0xd735f0=await google[_0x5e2c21(0x218)][_0x5e2c21(0x283)](_0x43a929),_0x51122a=await this[_0x5e2c21(0x221)][_0x5e2c21(0x25e)][_0x5e2c21(0x28c)]['list']({'name':_0x5e2c21(0x279)+this['projectId'],'auth':_0xd735f0});for(const _0x4a4e58 of _0x51122a?.[_0x5e2c21(0x27b)]?.[_0x5e2c21(0x29c)]){if(_0x2dfa7a[_0x5e2c21(0x2d8)](_0x2dfa7a[_0x5e2c21(0x256)],_0x2dfa7a[_0x5e2c21(0x286)])){if(_0x2dfa7a[_0x5e2c21(0x318)](_0x4a4e58?.['name'],_0x5e2c21(0x279)+this['projectId']+_0x5e2c21(0x204)+this[_0x5e2c21(0x2b8)]+'@'+this[_0x5e2c21(0x215)]+_0x5e2c21(0x255))){if(_0x2dfa7a[_0x5e2c21(0x320)](_0x2dfa7a[_0x5e2c21(0x31e)],_0x2dfa7a[_0x5e2c21(0x26b)]))return!![];else{_0x146a37[_0x5e2c21(0x315)](_0x2dfa7a[_0x5e2c21(0x301)]);return;}}}else _0xbad7a2[_0x5e2c21(0x315)](_0x2dfa7a[_0x5e2c21(0x323)]);}return![];}async[a3_0x46fdf6(0x1fd)](){const _0x1e7d89=a3_0x46fdf6,_0x362f24={};_0x362f24[_0x1e7d89(0x2e5)]=function(_0x109905,_0x3e9a16){return _0x109905===_0x3e9a16;},_0x362f24[_0x1e7d89(0x319)]=function(_0x46f1ed,_0x3882d7){return _0x46f1ed!==_0x3882d7;},_0x362f24[_0x1e7d89(0x30a)]=_0x1e7d89(0x220),_0x362f24['igGgn']='qJhik',_0x362f24[_0x1e7d89(0x2f6)]='Service\x20account\x20already\x20exists,\x20skipping',_0x362f24['OkqdH']=_0x1e7d89(0x275),_0x362f24[_0x1e7d89(0x2bf)]='https://www.googleapis.com/auth/cloud-platform',_0x362f24[_0x1e7d89(0x247)]=_0x1e7d89(0x23c),_0x362f24['iQAzs']=_0x1e7d89(0x239),_0x362f24['gALWX']='storage.buckets.createTagBinding',_0x362f24['sQIzM']=_0x1e7d89(0x294),_0x362f24[_0x1e7d89(0x2ef)]=_0x1e7d89(0x259),_0x362f24[_0x1e7d89(0x244)]=_0x1e7d89(0x271),_0x362f24['VlNID']='storage.buckets.getIamPolicy',_0x362f24[_0x1e7d89(0x23e)]=_0x1e7d89(0x29b),_0x362f24[_0x1e7d89(0x2fa)]='storage.buckets.list',_0x362f24[_0x1e7d89(0x21a)]=_0x1e7d89(0x20e),_0x362f24[_0x1e7d89(0x2da)]=_0x1e7d89(0x269),_0x362f24['RLARO']=_0x1e7d89(0x31b),_0x362f24[_0x1e7d89(0x242)]='storage.buckets.update',_0x362f24[_0x1e7d89(0x24e)]=_0x1e7d89(0x2ae),_0x362f24['ljRNE']=_0x1e7d89(0x234),_0x362f24[_0x1e7d89(0x260)]=_0x1e7d89(0x2d4),_0x362f24[_0x1e7d89(0x30f)]=_0x1e7d89(0x288),_0x362f24[_0x1e7d89(0x26e)]='storage.objects.create',_0x362f24[_0x1e7d89(0x29e)]='storage.objects.delete',_0x362f24['BGzUv']=_0x1e7d89(0x2ed),_0x362f24['pSwbM']=_0x1e7d89(0x251),_0x362f24['tjuIY']=_0x1e7d89(0x22b),_0x362f24['AOhEc']=_0x1e7d89(0x2b2),_0x362f24[_0x1e7d89(0x231)]='storage.objects.update',_0x362f24[_0x1e7d89(0x227)]=_0x1e7d89(0x25c),_0x362f24[_0x1e7d89(0x24f)]='Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation';const _0x22bc62=_0x362f24,_0x32bda1=await this[_0x1e7d89(0x228)]();if(_0x32bda1){if(_0x22bc62['gDpDD'](_0x22bc62[_0x1e7d89(0x30a)],_0x22bc62['igGgn'])){logger[_0x1e7d89(0x315)](_0x22bc62[_0x1e7d89(0x2f6)]);return;}else{if(_0x22bc62['oNAFA'](_0x58b784?.['name'],_0x1e7d89(0x279)+this[_0x1e7d89(0x215)]+_0x1e7d89(0x204)+this[_0x1e7d89(0x2b8)]+'@'+this['projectId']+_0x1e7d89(0x255)))return!![];}}logger[_0x1e7d89(0x315)](_0x22bc62[_0x1e7d89(0x261)]);const _0x379238={};_0x379238[_0x1e7d89(0x280)]=[_0x22bc62[_0x1e7d89(0x2bf)]],_0x379238['keyFile']=this[_0x1e7d89(0x2e3)];const _0xf07cd2=await google[_0x1e7d89(0x218)]['getClient'](_0x379238),_0x3e292a={};_0x3e292a['includedPermissions']=[_0x22bc62[_0x1e7d89(0x247)],_0x22bc62[_0x1e7d89(0x2f0)],_0x22bc62[_0x1e7d89(0x26a)],_0x22bc62[_0x1e7d89(0x308)],_0x22bc62[_0x1e7d89(0x2ef)],_0x22bc62[_0x1e7d89(0x244)],_0x22bc62['VlNID'],_0x22bc62[_0x1e7d89(0x23e)],_0x22bc62['Nnrws'],_0x22bc62[_0x1e7d89(0x21a)],_0x22bc62[_0x1e7d89(0x2da)],_0x22bc62[_0x1e7d89(0x235)],_0x22bc62[_0x1e7d89(0x242)],_0x22bc62['fPMhs'],_0x22bc62[_0x1e7d89(0x23b)],_0x22bc62['lRbMZ'],_0x22bc62[_0x1e7d89(0x30f)],_0x22bc62[_0x1e7d89(0x26e)],_0x22bc62[_0x1e7d89(0x29e)],_0x22bc62[_0x1e7d89(0x21b)],_0x22bc62['pSwbM'],_0x22bc62[_0x1e7d89(0x312)],_0x22bc62[_0x1e7d89(0x2cf)],_0x22bc62[_0x1e7d89(0x231)]],_0x3e292a[_0x1e7d89(0x1f3)]=_0x22bc62[_0x1e7d89(0x227)],await this['iamClient']['organizations'][_0x1e7d89(0x287)][_0x1e7d89(0x2a2)]({'parent':_0x1e7d89(0x279)+this['projectId'],'requestBody':{'role':_0x3e292a,'roleId':this[_0x1e7d89(0x232)]},'auth':_0xf07cd2});const _0x53a441={};_0x53a441[_0x1e7d89(0x202)]=_0x1e7d89(0x279)+this['projectId'],_0x53a441[_0x1e7d89(0x20c)]={},_0x53a441[_0x1e7d89(0x218)]=_0xf07cd2,_0x53a441[_0x1e7d89(0x20c)][_0x1e7d89(0x281)]=this[_0x1e7d89(0x2b8)];const _0x3b652f=_0x53a441;await this[_0x1e7d89(0x221)][_0x1e7d89(0x25e)]['serviceAccounts'][_0x1e7d89(0x2a2)](_0x3b652f);let _0x26c739=await this[_0x1e7d89(0x20f)]['getIamPolicy']({'resource':'projects/'+this[_0x1e7d89(0x215)]});_0x26c739=_0x26c739[0x0][_0x1e7d89(0x272)];const _0x38d0a7={};_0x38d0a7[_0x1e7d89(0x314)]=_0x1e7d89(0x279)+this[_0x1e7d89(0x215)]+_0x1e7d89(0x2e1)+this[_0x1e7d89(0x232)],_0x38d0a7[_0x1e7d89(0x2cb)]=[_0x1e7d89(0x246)+this[_0x1e7d89(0x2b8)]+'@'+this[_0x1e7d89(0x215)]+_0x1e7d89(0x255)],_0x26c739[_0x1e7d89(0x263)](_0x38d0a7);const _0x832e20={};_0x832e20[_0x1e7d89(0x272)]=_0x26c739,await this[_0x1e7d89(0x20f)][_0x1e7d89(0x1ff)]({'resource':_0x1e7d89(0x279)+this[_0x1e7d89(0x215)],'policy':_0x832e20}),logger['info'](_0x22bc62[_0x1e7d89(0x24f)]);}async[a3_0x46fdf6(0x222)](_0x4fb0b5='default',_0x3e76b7=['default']){const _0x22d70e=a3_0x46fdf6,_0x5a308b={};_0x5a308b[_0x22d70e(0x214)]=_0x22d70e(0x217),_0x5a308b[_0x22d70e(0x1fa)]='Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x5a308b[_0x22d70e(0x22e)]='Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account';const _0xe0c47b=_0x5a308b,_0x5c8ff7=_0xe0c47b['wwYyE'][_0x22d70e(0x225)]('|');let _0x225645=0x0;while(!![]){switch(_0x5c8ff7[_0x225645++]){case'0':const _0x28b36f={};_0x28b36f[_0x22d70e(0x316)]=WS_EVENTS[_0x22d70e(0x2c0)],_0x28b36f[_0x22d70e(0x23d)]=_0xe0c47b['MfrQd'],this['webSocketUtils']['sendEventToBackend'](this[_0x22d70e(0x27c)],_0x28b36f);continue;case'1':return!![];case'2':logger[_0x22d70e(0x315)](_0xe0c47b['cPZJh']);continue;case'3':await this['setupServiceAccount']();continue;case'4':this['sendGCPInfoToHST'](this['rws']);continue;case'5':await this[_0x22d70e(0x27a)](_0x4fb0b5,_0x3e76b7);continue;}break;}}async[a3_0x46fdf6(0x27a)](_0x1f9c4d=a3_0x46fdf6(0x2a1),_0x282324=[a3_0x46fdf6(0x2a1)]){const _0x57b7ce=a3_0x46fdf6,_0x4aa2d8={};_0x4aa2d8['PZhoa']=function(_0x4f6fe3,_0x10a139){return _0x4f6fe3===_0x10a139;},_0x4aa2d8[_0x57b7ce(0x2e9)]='FnJyf',_0x4aa2d8[_0x57b7ce(0x2c9)]=_0x57b7ce(0x2c1),_0x4aa2d8[_0x57b7ce(0x2ad)]='templates',_0x4aa2d8[_0x57b7ce(0x292)]=_0x57b7ce(0x2f3),_0x4aa2d8[_0x57b7ce(0x309)]=_0x57b7ce(0x2ba),_0x4aa2d8[_0x57b7ce(0x20b)]=_0x57b7ce(0x22a),_0x4aa2d8['BwJhs']='regionmap.json',_0x4aa2d8[_0x57b7ce(0x265)]=function(_0x45e05b,_0x2959d0){return _0x45e05b*_0x2959d0;},_0x4aa2d8[_0x57b7ce(0x210)]=_0x57b7ce(0x1f5),_0x4aa2d8[_0x57b7ce(0x2af)]='ZdLnp',_0x4aa2d8[_0x57b7ce(0x2d1)]=function(_0x2f6238,_0x320538){return _0x2f6238!==_0x320538;},_0x4aa2d8[_0x57b7ce(0x300)]=_0x57b7ce(0x29f),_0x4aa2d8[_0x57b7ce(0x24a)]=_0x57b7ce(0x223),_0x4aa2d8['nvvII']=_0x57b7ce(0x270),_0x4aa2d8[_0x57b7ce(0x240)]=_0x57b7ce(0x1fc);const _0x4935b5=_0x4aa2d8;try{if(_0x4935b5['PZhoa'](_0x4935b5[_0x57b7ce(0x2e9)],_0x4935b5['Erouj'])){logger[_0x57b7ce(0x315)](_0x4935b5[_0x57b7ce(0x2c9)]);let _0x25cdcd=await fs[_0x57b7ce(0x276)](path[_0x57b7ce(0x2d0)](__dirname,'..',_0x4935b5[_0x57b7ce(0x2ad)],_0x4935b5[_0x57b7ce(0x292)],_0x4935b5[_0x57b7ce(0x309)]),_0x4935b5[_0x57b7ce(0x20b)]);_0x25cdcd=JSON[_0x57b7ce(0x313)](_0x25cdcd);let _0x29fcac=await fs['readFileAsync'](path[_0x57b7ce(0x2d0)](__dirname,'..',_0x4935b5[_0x57b7ce(0x2ad)],_0x4935b5[_0x57b7ce(0x292)],_0x4935b5[_0x57b7ce(0x238)]),_0x4935b5[_0x57b7ce(0x20b)]);_0x29fcac=JSON[_0x57b7ce(0x313)](_0x29fcac),_0x25cdcd[_0x57b7ce(0x202)]=this[_0x57b7ce(0x203)],_0x25cdcd[_0x57b7ce(0x303)][0x0]['config'][_0x57b7ce(0x310)]=global_registry[_0x57b7ce(0x2ac)],_0x25cdcd[_0x57b7ce(0x303)][0x0][_0x57b7ce(0x304)]['serviceAccount']=this[_0x57b7ce(0x2b8)]+'@'+this[_0x57b7ce(0x215)]+_0x57b7ce(0x255),_0x25cdcd[_0x57b7ce(0x303)][0x0][_0x57b7ce(0x2e7)][_0x57b7ce(0x2aa)]=global_registry[_0x57b7ce(0x2c8)],_0x25cdcd[_0x57b7ce(0x303)][0x0][_0x57b7ce(0x2e7)][_0x57b7ce(0x322)]=global_registry['maxNodes'],_0x25cdcd['location']=global_registry[_0x57b7ce(0x2cd)],_0x25cdcd[_0x57b7ce(0x2b3)]=[_0x29fcac[global_registry[_0x57b7ce(0x2cd)]][0x0]],_0x25cdcd[_0x57b7ce(0x28b)]='projects/'+this[_0x57b7ce(0x215)]+'/global/networks/'+_0x1f9c4d,_0x25cdcd[_0x57b7ce(0x2c7)]='projects/'+this['projectId']+_0x57b7ce(0x219)+global_registry[_0x57b7ce(0x2cd)]+_0x57b7ce(0x324)+_0x282324[0x0];const _0x55b17f=await this[_0x57b7ce(0x267)][_0x57b7ce(0x27a)]({'cluster':_0x25cdcd,'parent':'projects/'+this[_0x57b7ce(0x215)]+_0x57b7ce(0x2d2)+global_registry[_0x57b7ce(0x2cd)]});await this[_0x57b7ce(0x2f2)][_0x57b7ce(0x2b5)](_0x4935b5[_0x57b7ce(0x265)](_0x4935b5[_0x57b7ce(0x265)](0x7,0x3c),0x3e8));}else return _0x4bb99b[_0x57b7ce(0x30c)][_0x57b7ce(0x236)][_0x57b7ce(0x2fc)][_0x57b7ce(0x2a5)][0x0]['ip'];}catch(_0x37c588){if(_0x4935b5[_0x57b7ce(0x2ea)](_0x4935b5[_0x57b7ce(0x210)],_0x4935b5[_0x57b7ce(0x2af)]))return[!![],_0x5d7dbb];else{const _0x3839cf=await this[_0x57b7ce(0x2e0)]();if(_0x3839cf)_0x4935b5[_0x57b7ce(0x2d1)](_0x4935b5['YKxfs'],_0x4935b5[_0x57b7ce(0x300)])?_0x2739d9[_0x57b7ce(0x289)][_0x57b7ce(0x263)](_0xb5243):(logger[_0x57b7ce(0x315)](_0x4935b5['qPbVn'],_0x37c588[_0x57b7ce(0x233)]),await this[_0x57b7ce(0x250)]());else{if(_0x4935b5[_0x57b7ce(0x2ea)](_0x4935b5[_0x57b7ce(0x278)],_0x4935b5['nvvII']))logger[_0x57b7ce(0x315)](_0x4935b5[_0x57b7ce(0x240)]);else return!![];}throw _0x37c588;}}}async[a3_0x46fdf6(0x250)](_0x27269e,_0x29b4a9){const _0x55b676=a3_0x46fdf6,_0x7e8e31={'rkXjO':_0x55b676(0x2b6),'qngxN':function(_0x41eb3c,_0x3bbfae){return _0x41eb3c!==_0x3bbfae;},'pvGQi':_0x55b676(0x302),'KwqqL':function(_0xfd6821,_0x1ff886){return _0xfd6821(_0x1ff886);},'caZjc':function(_0x33dd23,_0x52b74b){return _0x33dd23===_0x52b74b;},'wdhSY':_0x55b676(0x2be),'yneLA':function(_0x301ec6,_0x3253f3){return _0x301ec6===_0x3253f3;},'irEER':_0x55b676(0x205),'WIocy':_0x55b676(0x237),'kqLOm':function(_0x514ccd,_0x509837){return _0x514ccd!==_0x509837;},'cLYQK':_0x55b676(0x2c4),'vosSd':_0x55b676(0x25a)};try{if(_0x7e8e31[_0x55b676(0x29d)](_0x7e8e31[_0x55b676(0x2bd)],_0x7e8e31[_0x55b676(0x2bd)]))return!![];else{await _0x7e8e31[_0x55b676(0x2fd)](deleteRoutingDeps,_0x27269e),logger[_0x55b676(0x315)](_0x55b676(0x207)+this[_0x55b676(0x203)]);const _0x5c1fa9=await this[_0x55b676(0x267)][_0x55b676(0x250)]({'name':_0x55b676(0x279)+this['projectId']+_0x55b676(0x2d2)+global_registry[_0x55b676(0x2cd)]+'/clusters/'+this[_0x55b676(0x203)]});if(_0x7e8e31[_0x55b676(0x2c6)](_0x5c1fa9[0x0]?.['status'],_0x7e8e31[_0x55b676(0x2e6)])||_0x7e8e31['yneLA'](_0x5c1fa9[0x0]?.[_0x55b676(0x236)],_0x7e8e31[_0x55b676(0x2ca)]))return _0x7e8e31['yneLA'](_0x7e8e31[_0x55b676(0x28a)],_0x7e8e31[_0x55b676(0x28a)])?!![]:![];logger[_0x55b676(0x315)]('Cluster\x20deletion\x20completed');}}catch(_0x4ea653){if(_0x7e8e31[_0x55b676(0x226)](_0x7e8e31['cLYQK'],_0x7e8e31[_0x55b676(0x262)])){logger[_0x55b676(0x315)](_0x7e8e31[_0x55b676(0x317)]);throw _0x4ea653;}else{_0x452f0a[_0x55b676(0x315)](_0x7e8e31['rkXjO']);throw _0x3bb036;}}}async['isVPCPresent'](_0x4c2b6b){const _0x3c9ccc=a3_0x46fdf6,_0x3a5731={};_0x3a5731[_0x3c9ccc(0x257)]=function(_0xca637f,_0x1b3349){return _0xca637f===_0x1b3349;},_0x3a5731[_0x3c9ccc(0x2f5)]=function(_0x3d82cc,_0x454093){return _0x3d82cc===_0x454093;},_0x3a5731[_0x3c9ccc(0x21d)]=function(_0x321e6c,_0x5dd7a7){return _0x321e6c===_0x5dd7a7;},_0x3a5731[_0x3c9ccc(0x282)]=_0x3c9ccc(0x2ee),_0x3a5731[_0x3c9ccc(0x1fb)]=function(_0x30a53a,_0x1a7f17){return _0x30a53a>_0x1a7f17;},_0x3a5731['MXJDy']=function(_0x1e6685,_0x25d4a1){return _0x1e6685===_0x25d4a1;},_0x3a5731[_0x3c9ccc(0x284)]=function(_0x125d8c,_0x5f157d){return _0x125d8c===_0x5f157d;},_0x3a5731[_0x3c9ccc(0x253)]=_0x3c9ccc(0x2cc),_0x3a5731[_0x3c9ccc(0x2f1)]=function(_0x2003b8,_0x19777c){return _0x2003b8!==_0x19777c;},_0x3a5731['UGdtA']='DpAnt',_0x3a5731['HKuAe']=_0x3c9ccc(0x2b1);const _0x4697bb=_0x3a5731;try{if(_0x4697bb[_0x3c9ccc(0x21d)](_0x4697bb[_0x3c9ccc(0x282)],_0x4697bb[_0x3c9ccc(0x282)])){const _0xdc3b60={};_0xdc3b60[_0x3c9ccc(0x241)]=projectId,_0xdc3b60[_0x3c9ccc(0x28b)]=_0x4c2b6b;const _0x519235=await networkClient[_0x3c9ccc(0x30b)](_0xdc3b60);if(_0x4697bb[_0x3c9ccc(0x1fb)](_0x519235['length'],0x0)&&_0x4697bb['MXJDy'](_0x519235[0x0][_0x3c9ccc(0x202)],_0x4c2b6b)){if(_0x4697bb[_0x3c9ccc(0x284)](_0x4697bb[_0x3c9ccc(0x253)],_0x4697bb[_0x3c9ccc(0x253)]))return!![];else!this[_0x3c9ccc(0x25d)]()&&this[_0x3c9ccc(0x206)]();}}else return _0x4697bb[_0x3c9ccc(0x257)](_0x43f96f['gcpConfigSet'],!![]);}catch(_0x1609d2){if(_0x4697bb['ZpOZi'](_0x4697bb[_0x3c9ccc(0x201)],_0x4697bb[_0x3c9ccc(0x266)]))return![];else{if(_0x4697bb[_0x3c9ccc(0x2f5)](_0x1572b0[_0x3c9ccc(0x202)],this['clusterName']))return!![];}}return![];}async['isSubnetsValid'](_0x584d34,_0x992444){const _0x30175e=a3_0x46fdf6,_0x4b2b13={};_0x4b2b13[_0x30175e(0x258)]=function(_0x2493dc,_0x13e03b){return _0x2493dc!==_0x13e03b;},_0x4b2b13['SPPSz']='IWbMW',_0x4b2b13[_0x30175e(0x31d)]=function(_0x28ba8b,_0x15c000){return _0x28ba8b===_0x15c000;},_0x4b2b13['UdOLr']=function(_0x1f613c,_0x1664e9){return _0x1f613c!==_0x1664e9;},_0x4b2b13[_0x30175e(0x28d)]=_0x30175e(0x1fe);const _0xf1f066=_0x4b2b13;try{const _0x80b2a7={};_0x80b2a7[_0x30175e(0x241)]=projectId,_0x80b2a7[_0x30175e(0x28b)]=_0x992444;const _0x372ef4=await networkClient[_0x30175e(0x30b)](_0x80b2a7);for(const _0x3f0cff of _0x372ef4[0x0][_0x30175e(0x1f9)]){if(_0xf1f066['amjYH'](_0xf1f066[_0x30175e(0x27f)],_0xf1f066[_0x30175e(0x27f)]))this['setConfig']();else{const _0x5b3e9a=_0x30175e(0x21e)+this[_0x30175e(0x215)]+_0x30175e(0x219)+global_registry[_0x30175e(0x2cd)]+'/subnetworks/'+_0x584d34[0x0];if(_0xf1f066[_0x30175e(0x31d)](_0x5b3e9a,_0x3f0cff))return _0xf1f066[_0x30175e(0x291)](_0xf1f066[_0x30175e(0x28d)],_0xf1f066[_0x30175e(0x28d)])?!![]:[!![],_0x584d34];}}}catch(_0x55f6de){return logger[_0x30175e(0x305)](_0x30175e(0x26c)+_0x584d34+_0x30175e(0x24d)+_0x55f6de),[![],[]];}return[![],[]];}async[a3_0x46fdf6(0x208)](){const _0x59043f=a3_0x46fdf6,_0x3a84cf=await this['networkClient'][_0x59043f(0x2a9)]({'project':this['projectId']}),_0x55b403={};_0x55b403[_0x59043f(0x20a)]=global_registry[_0x59043f(0x22c)],_0x55b403[_0x59043f(0x224)]=global_registry[_0x59043f(0x211)],_0x55b403[_0x59043f(0x2f9)]=GCP,_0x55b403['vpcInfo']=[];const _0x19a9e9=_0x55b403;for(const _0x194bd2 of _0x3a84cf){_0x19a9e9['vpcInfo'][_0x59043f(0x263)](_0x194bd2);}const _0x182053={};_0x182053[_0x59043f(0x316)]=WS_EVENTS['RESOURCES'],_0x182053[_0x59043f(0x23d)]=_0x19a9e9,this[_0x59043f(0x2f2)][_0x59043f(0x2a8)](this['rws'],_0x182053);}}const a3_0x462a4b={};a3_0x462a4b[a3_0x46fdf6(0x26d)]=GoogleCloudProvider,module[a3_0x46fdf6(0x2ce)]=a3_0x462a4b;
1
+ const a3_0x3fb72e=a3_0x2fc1;(function(_0x53f601,_0xacf0d5){const _0x4de0ff=a3_0x2fc1,_0xac6f9e=_0x53f601();while(!![]){try{const _0x11f02a=-parseInt(_0x4de0ff(0x25c))/0x1+parseInt(_0x4de0ff(0x2b5))/0x2*(parseInt(_0x4de0ff(0x27e))/0x3)+parseInt(_0x4de0ff(0x267))/0x4+parseInt(_0x4de0ff(0x263))/0x5*(parseInt(_0x4de0ff(0x264))/0x6)+-parseInt(_0x4de0ff(0x1fb))/0x7+parseInt(_0x4de0ff(0x206))/0x8+-parseInt(_0x4de0ff(0x30d))/0x9;if(_0x11f02a===_0xacf0d5)break;else _0xac6f9e['push'](_0xac6f9e['shift']());}catch(_0x53c2f4){_0xac6f9e['push'](_0xac6f9e['shift']());}}}(a3_0x3654,0x36440));const fs=require('fs'),path=require(a3_0x3fb72e(0x243)),cp=require('child_process'),{google}=require(a3_0x3fb72e(0x1fd)),compute=require(a3_0x3fb72e(0x289)),container=require(a3_0x3fb72e(0x24f)),{ProjectsClient}=require(a3_0x3fb72e(0x29e))['v3'],{logger}=require('../config/logger'),{CloudProvider}=require('./CloudProvider'),{getDirForConfig}=require(a3_0x3fb72e(0x2b6)),{deleteRoutingDeps}=require(a3_0x3fb72e(0x1ed)),{GCP,WS_EVENTS,global_registry}=require(a3_0x3fb72e(0x278));class GoogleCloudProvider extends CloudProvider{constructor(_0x112cce,_0x516b9e,_0x2b1206,_0x27e439){const _0x254595=a3_0x3fb72e,_0x19f63e={};_0x19f63e[_0x254595(0x2ec)]=_0x254595(0x258),_0x19f63e[_0x254595(0x2d8)]=_0x254595(0x1e2),_0x19f63e[_0x254595(0x2a1)]=_0x254595(0x2e0);const _0x3716d1=_0x19f63e,_0x43258b=_0x3716d1['BYPPe']['split']('|');let _0x2aeff9=0x0;while(!![]){switch(_0x43258b[_0x2aeff9++]){case'0':this[_0x254595(0x268)]=null;continue;case'1':this[_0x254595(0x225)]=null;continue;case'2':this[_0x254595(0x281)]=null;continue;case'3':this[_0x254595(0x2fb)]=null;continue;case'4':this['serviceAccountName']=_0x3716d1[_0x254595(0x2d8)];continue;case'5':this[_0x254595(0x22d)]=null;continue;case'6':this['customRoleName']=_0x3716d1['YmTVz'];continue;case'7':super(GCP,_0x112cce,_0x516b9e,_0x2b1206,_0x27e439);continue;case'8':this['iamClient']=null;continue;}break;}}['configureIfNotConfigured'](){const _0x29b3bd=a3_0x3fb72e,_0x28da46={};_0x28da46[_0x29b3bd(0x310)]=function(_0x5e7772,_0x400a02){return _0x5e7772===_0x400a02;},_0x28da46[_0x29b3bd(0x20a)]=function(_0x180cfe,_0x5ebd8a){return _0x180cfe!==_0x5ebd8a;},_0x28da46[_0x29b3bd(0x27c)]='iqath';const _0x24aa79=_0x28da46;if(!this[_0x29b3bd(0x2a8)]()){if(_0x24aa79[_0x29b3bd(0x20a)](_0x24aa79[_0x29b3bd(0x27c)],_0x24aa79[_0x29b3bd(0x27c)]))return _0x24aa79['JgFxU'](_0x44c709[_0x29b3bd(0x2bb)],!![]);else this[_0x29b3bd(0x2f8)]();}}['isConfigured'](){const _0x122edd=a3_0x3fb72e,_0x390de1={};_0x390de1[_0x122edd(0x224)]=function(_0x3610ea,_0x203995){return _0x3610ea===_0x203995;};const _0x3d6b1b=_0x390de1;return _0x3d6b1b[_0x122edd(0x224)](global_registry['gcpConfigSet'],!![]);}[a3_0x3fb72e(0x2f8)](){const _0x2c55e8=a3_0x3fb72e,_0x3611e5=this[_0x2c55e8(0x2fb)],_0xe9e37a={};_0xe9e37a['keyFile']=_0x3611e5,this[_0x2c55e8(0x268)]=new container['v1'][(_0x2c55e8(0x236))](_0xe9e37a);const _0xb5d1a7={};_0xb5d1a7[_0x2c55e8(0x2e5)]=_0x3611e5,this['networkClient']=new compute['v1'][(_0x2c55e8(0x251))](_0xb5d1a7);const _0x3c1ab3={};_0x3c1ab3[_0x2c55e8(0x2e5)]=_0x3611e5,this['resourcemanagerClient']=new ProjectsClient(_0x3c1ab3),this[_0x2c55e8(0x26a)]=google['iam']('v1'),global_registry[_0x2c55e8(0x2bb)]=!![];}async[a3_0x3fb72e(0x24b)](_0x46bc56,_0x3ab09b){const _0x5b3878=a3_0x3fb72e,_0x234859={'wAEyg':function(_0x9f6501,_0x4012a8){return _0x9f6501(_0x4012a8);},'XpGdy':function(_0x36f493){return _0x36f493();},'xVdTG':'gcp_credentials.json'},_0x25cd39=await _0x234859[_0x5b3878(0x2ea)](_0x46bc56,'Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20');let _0x3af457=await fs[_0x5b3878(0x2f6)](_0x25cd39);_0x3af457=_0x3af457['toString']();const _0x216b49=_0x234859[_0x5b3878(0x249)](getDirForConfig),_0x58a28c=path['join'](_0x216b49,_0x234859['xVdTG']);fs['writeFileSync'](_0x58a28c,_0x3af457),this[_0x5b3878(0x2fb)]=_0x58a28c;const _0x52c210={};return _0x52c210['keyFile']=_0x58a28c,_0x3ab09b[_0x5b3878(0x282)][GCP]=_0x52c210,_0x3af457=JSON[_0x5b3878(0x24d)](_0x3af457),this['projectId']=_0x3af457['project_id'],_0x3ab09b;}async[a3_0x3fb72e(0x272)](_0x33cab4){const _0x5c62c1=a3_0x3fb72e;this[_0x5c62c1(0x2fb)]=_0x33cab4[this['cloudProviderName']][_0x5c62c1(0x2e5)];let _0x10dddd=await fs[_0x5c62c1(0x2f6)](this[_0x5c62c1(0x2fb)]);_0x10dddd=JSON['parse'](_0x10dddd),this[_0x5c62c1(0x225)]=_0x10dddd[_0x5c62c1(0x28a)];}[a3_0x3fb72e(0x21a)](_0x2e29f4){const _0x30ddd4=a3_0x3fb72e;return _0x2e29f4['body'][_0x30ddd4(0x234)]['loadBalancer'][_0x30ddd4(0x211)][0x0]['ip'];}async[a3_0x3fb72e(0x208)](){const _0x5da989=a3_0x3fb72e,_0x5ef285={};_0x5ef285[_0x5da989(0x216)]=function(_0x1d3670,_0x5146b4){return _0x1d3670===_0x5146b4;},_0x5ef285['crIfS']='hkbMq',_0x5ef285[_0x5da989(0x2a4)]=_0x5da989(0x2ce),_0x5ef285['DpTEG']=function(_0x4cfb15,_0x1d0a49){return _0x4cfb15!==_0x1d0a49;},_0x5ef285[_0x5da989(0x2ab)]='ZFtuX',_0x5ef285['NinOj']=_0x5da989(0x27f),_0x5ef285[_0x5da989(0x30b)]=function(_0x31b120,_0x25ca36){return _0x31b120===_0x25ca36;},_0x5ef285[_0x5da989(0x280)]=_0x5da989(0x1e7),_0x5ef285[_0x5da989(0x2db)]=function(_0x247ee3,_0x419034){return _0x247ee3===_0x419034;},_0x5ef285['TpFLG']=_0x5da989(0x2be);const _0x505bea=_0x5ef285;try{if(_0x505bea[_0x5da989(0x216)](_0x505bea['crIfS'],_0x505bea[_0x5da989(0x2a4)]))return[!![],_0xe25cca];else{const _0x50f736=await this[_0x5da989(0x293)]();if(_0x50f736[0x0]?.[_0x5da989(0x247)]?.[_0x5da989(0x2cd)]){if(_0x505bea['DpTEG'](_0x505bea[_0x5da989(0x2ab)],_0x505bea[_0x5da989(0x2b1)])){const _0x19429f=_0x50f736[0x0]?.[_0x5da989(0x247)]?.[_0x5da989(0x2cd)];return _0x19429f&&_0x505bea[_0x5da989(0x30b)](_0x19429f[_0x5da989(0x2d3)](),_0x505bea['LvvxB']);}else return!![];}}}catch(_0x2f7e47){return _0x505bea[_0x5da989(0x2db)](_0x505bea[_0x5da989(0x259)],_0x505bea[_0x5da989(0x259)])?![]:!![];}return![];}async['isClusterPresent'](){const _0x357872=a3_0x3fb72e,_0x22fa56={};_0x22fa56['XuzpO']=function(_0x44c86b,_0x550f1d){return _0x44c86b===_0x550f1d;},_0x22fa56[_0x357872(0x212)]=function(_0x124e20,_0x40d13c){return _0x124e20===_0x40d13c;},_0x22fa56[_0x357872(0x222)]=_0x357872(0x285),_0x22fa56[_0x357872(0x25e)]=_0x357872(0x25d),_0x22fa56[_0x357872(0x291)]=function(_0x2ebb17,_0x2fcc60){return _0x2ebb17===_0x2fcc60;},_0x22fa56[_0x357872(0x248)]=function(_0x5e5897,_0x2b64ac){return _0x5e5897!==_0x2b64ac;},_0x22fa56[_0x357872(0x20e)]=_0x357872(0x2b8),_0x22fa56[_0x357872(0x287)]='NmZLP';const _0x4f79e2=_0x22fa56;this[_0x357872(0x2e6)]();const _0x5f0a46={};_0x5f0a46[_0x357872(0x2ae)]='projects/'+this['projectId']+_0x357872(0x1e4)+global_registry[_0x357872(0x2a2)];const _0x3780d3=_0x5f0a46,_0x14d962=await this[_0x357872(0x268)]['listClusters'](_0x3780d3);for(const _0x584c5f of _0x14d962[0x0][_0x357872(0x2ca)]){if(_0x4f79e2[_0x357872(0x212)](_0x4f79e2[_0x357872(0x222)],_0x4f79e2[_0x357872(0x25e)])){if(_0x4f79e2[_0x357872(0x2a6)](_0x5658e6?.[_0x357872(0x2fd)],_0x357872(0x292)+this['projectId']+'/serviceAccounts/'+this[_0x357872(0x2f7)]+'@'+this[_0x357872(0x225)]+'.iam.gserviceaccount.com'))return!![];}else{if(_0x4f79e2[_0x357872(0x291)](_0x584c5f['name'],this['clusterName'])){if(_0x4f79e2[_0x357872(0x248)](_0x4f79e2[_0x357872(0x20e)],_0x4f79e2[_0x357872(0x287)]))return!![];else{const _0x22bb7f=this[_0x357872(0x2fb)],_0x4d1759={};_0x4d1759[_0x357872(0x2e5)]=_0x22bb7f,this[_0x357872(0x268)]=new _0x253702['v1'][(_0x357872(0x236))](_0x4d1759);const _0x52e01b={};_0x52e01b[_0x357872(0x2e5)]=_0x22bb7f,this[_0x357872(0x22d)]=new _0xe9874f['v1'][(_0x357872(0x251))](_0x52e01b);const _0x4a47db={};_0x4a47db[_0x357872(0x2e5)]=_0x22bb7f,this[_0x357872(0x281)]=new _0x2714ec(_0x4a47db),this[_0x357872(0x26a)]=_0x3771e1[_0x357872(0x1ef)]('v1'),_0x17df30[_0x357872(0x2bb)]=!![];}}}}return![];}async[a3_0x3fb72e(0x293)](){const _0x250a97=a3_0x3fb72e,_0x4d97b0=await this[_0x250a97(0x268)][_0x250a97(0x2c4)]({'name':_0x250a97(0x292)+this['projectId']+_0x250a97(0x1e4)+global_registry[_0x250a97(0x2a2)]+'/clusters/'+this['clusterName']});return _0x4d97b0;}async[a3_0x3fb72e(0x2f5)](){const _0x9cef94=a3_0x3fb72e,_0x3bfd9c={};_0x3bfd9c[_0x9cef94(0x233)]=_0x9cef94(0x218),_0x3bfd9c[_0x9cef94(0x2aa)]=_0x9cef94(0x2da),_0x3bfd9c[_0x9cef94(0x2c7)]=_0x9cef94(0x28b);const _0x52da65=_0x3bfd9c;cp['exec'](_0x9cef94(0x29a)+this[_0x9cef94(0x2fb)]);const _0x1a2f30=await this[_0x9cef94(0x293)](),_0x4b1292=_0x9cef94(0x2a3)+this[_0x9cef94(0x225)]+'_'+global_registry[_0x9cef94(0x2a2)]+'_'+this[_0x9cef94(0x2cc)];let _0x4f2981=await fs['readFileAsync'](path['join'](__dirname,'..',_0x52da65['WslLn'],_0x52da65[_0x9cef94(0x2aa)],_0x52da65[_0x9cef94(0x2c7)]));return _0x4f2981=_0x4f2981['toString'](),_0x4f2981=_0x4f2981[_0x9cef94(0x2a0)](/<CLUSTER_NAME>/g,_0x4b1292),_0x4f2981=_0x4f2981[_0x9cef94(0x2a0)](/<CLUSTER_URL>/g,_0x9cef94(0x305)+_0x1a2f30[0x0][_0x9cef94(0x223)]),_0x4f2981=_0x4f2981['replace'](/<CERTIFICATE_DATA>/g,_0x1a2f30[0x0][_0x9cef94(0x255)]['clusterCaCertificate']),_0x4f2981;}async['checkServiceAccount'](){const _0x4d13ab=a3_0x3fb72e,_0x1c4320={};_0x1c4320[_0x4d13ab(0x240)]=_0x4d13ab(0x246),_0x1c4320[_0x4d13ab(0x294)]=function(_0x35f0b8,_0x323fd5){return _0x35f0b8===_0x323fd5;},_0x1c4320[_0x4d13ab(0x296)]=_0x4d13ab(0x30f),_0x1c4320[_0x4d13ab(0x257)]=function(_0x31c4bc,_0x255f3d){return _0x31c4bc!==_0x255f3d;},_0x1c4320[_0x4d13ab(0x215)]='boUXq',_0x1c4320[_0x4d13ab(0x226)]='HvlFX';const _0x2af197=_0x1c4320,_0x5c4d10={};_0x5c4d10[_0x4d13ab(0x220)]=[_0x2af197['zttNk']],_0x5c4d10['keyFile']=this['credentialsPath'];const _0x177998=await google[_0x4d13ab(0x260)][_0x4d13ab(0x2af)](_0x5c4d10),_0x4159ce=await this['iamClient']['projects'][_0x4d13ab(0x2e9)]['list']({'name':_0x4d13ab(0x292)+this['projectId'],'auth':_0x177998});for(const _0x2d9e11 of _0x4159ce?.[_0x4d13ab(0x21d)]?.[_0x4d13ab(0x2ac)]){if(_0x2af197[_0x4d13ab(0x294)](_0x2af197[_0x4d13ab(0x296)],_0x2af197['LaVvp'])){if(_0x2af197['iofXW'](_0x2d9e11?.[_0x4d13ab(0x2fd)],'projects/'+this['projectId']+_0x4d13ab(0x1f7)+this['serviceAccountName']+'@'+this[_0x4d13ab(0x225)]+'.iam.gserviceaccount.com')){if(_0x2af197[_0x4d13ab(0x257)](_0x2af197[_0x4d13ab(0x215)],_0x2af197['exRid']))return!![];else!this['isConfigured']()&&this[_0x4d13ab(0x2f8)]();}}else return![];}return![];}async['setupServiceAccount'](){const _0xfc08ab=a3_0x3fb72e,_0x5c86c4={};_0x5c86c4[_0xfc08ab(0x229)]=_0xfc08ab(0x30e),_0x5c86c4[_0xfc08ab(0x239)]=function(_0x5c31a9,_0x4d6314){return _0x5c31a9===_0x4d6314;},_0x5c86c4[_0xfc08ab(0x205)]=_0xfc08ab(0x2d1),_0x5c86c4['UhMFB']='Service\x20account\x20already\x20exists,\x20skipping',_0x5c86c4[_0xfc08ab(0x26f)]=_0xfc08ab(0x2f4),_0x5c86c4[_0xfc08ab(0x2b7)]=_0xfc08ab(0x246),_0x5c86c4[_0xfc08ab(0x1e6)]=_0xfc08ab(0x20c),_0x5c86c4['ukPZZ']=_0xfc08ab(0x23f),_0x5c86c4['VecYq']=_0xfc08ab(0x29f),_0x5c86c4[_0xfc08ab(0x266)]=_0xfc08ab(0x2b0),_0x5c86c4[_0xfc08ab(0x1f5)]='storage.buckets.deleteTagBinding',_0x5c86c4[_0xfc08ab(0x202)]=_0xfc08ab(0x1e8),_0x5c86c4[_0xfc08ab(0x242)]='storage.buckets.getIamPolicy',_0x5c86c4[_0xfc08ab(0x288)]='storage.buckets.getObjectInsights',_0x5c86c4['XaJNN']='storage.buckets.list',_0x5c86c4['TTEDS']=_0xfc08ab(0x274),_0x5c86c4[_0xfc08ab(0x221)]=_0xfc08ab(0x27a),_0x5c86c4['bLkaR']=_0xfc08ab(0x2c0),_0x5c86c4[_0xfc08ab(0x2b9)]=_0xfc08ab(0x24a),_0x5c86c4[_0xfc08ab(0x253)]=_0xfc08ab(0x1e0),_0x5c86c4[_0xfc08ab(0x217)]=_0xfc08ab(0x29d),_0x5c86c4[_0xfc08ab(0x26c)]=_0xfc08ab(0x265),_0x5c86c4[_0xfc08ab(0x1f0)]='storage.multipartUploads.listParts',_0x5c86c4[_0xfc08ab(0x1fe)]=_0xfc08ab(0x270),_0x5c86c4[_0xfc08ab(0x22b)]=_0xfc08ab(0x1ff),_0x5c86c4[_0xfc08ab(0x311)]='storage.objects.get',_0x5c86c4[_0xfc08ab(0x26e)]=_0xfc08ab(0x283),_0x5c86c4[_0xfc08ab(0x2de)]=_0xfc08ab(0x302),_0x5c86c4[_0xfc08ab(0x210)]=_0xfc08ab(0x201),_0x5c86c4[_0xfc08ab(0x2cf)]=_0xfc08ab(0x232),_0x5c86c4[_0xfc08ab(0x312)]=_0xfc08ab(0x307),_0x5c86c4['TLCBB']='Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation';const _0x205e8a=_0x5c86c4,_0x101b23=await this[_0xfc08ab(0x2d7)]();if(_0x101b23){if(_0x205e8a[_0xfc08ab(0x239)](_0x205e8a[_0xfc08ab(0x205)],_0x205e8a[_0xfc08ab(0x205)])){logger[_0xfc08ab(0x1e1)](_0x205e8a[_0xfc08ab(0x28c)]);return;}else{_0x5f1a0c['info'](_0x205e8a[_0xfc08ab(0x229)]);throw _0x207e1c;}}logger['info'](_0x205e8a[_0xfc08ab(0x26f)]);const _0x5cca96={};_0x5cca96[_0xfc08ab(0x220)]=[_0x205e8a['JGGFt']],_0x5cca96[_0xfc08ab(0x2e5)]=this[_0xfc08ab(0x2fb)];const _0x4f8ab7=await google[_0xfc08ab(0x260)][_0xfc08ab(0x2af)](_0x5cca96),_0x51ba61={};_0x51ba61[_0xfc08ab(0x2ee)]=[_0x205e8a[_0xfc08ab(0x1e6)],_0x205e8a[_0xfc08ab(0x22c)],_0x205e8a[_0xfc08ab(0x2f1)],_0x205e8a[_0xfc08ab(0x266)],_0x205e8a[_0xfc08ab(0x1f5)],_0x205e8a[_0xfc08ab(0x202)],_0x205e8a[_0xfc08ab(0x242)],_0x205e8a[_0xfc08ab(0x288)],_0x205e8a['XaJNN'],_0x205e8a[_0xfc08ab(0x2a9)],_0x205e8a[_0xfc08ab(0x221)],_0x205e8a['bLkaR'],_0x205e8a['eVJzC'],_0x205e8a[_0xfc08ab(0x253)],_0x205e8a[_0xfc08ab(0x217)],_0x205e8a['iREMZ'],_0x205e8a[_0xfc08ab(0x1f0)],_0x205e8a[_0xfc08ab(0x1fe)],_0x205e8a[_0xfc08ab(0x22b)],_0x205e8a['aYFMC'],_0x205e8a[_0xfc08ab(0x26e)],_0x205e8a[_0xfc08ab(0x2de)],_0x205e8a['asXZg'],_0x205e8a['yIBue']],_0x51ba61[_0xfc08ab(0x245)]=_0x205e8a['VpIOv'],await this[_0xfc08ab(0x26a)][_0xfc08ab(0x1f8)][_0xfc08ab(0x2fa)][_0xfc08ab(0x303)]({'parent':_0xfc08ab(0x292)+this['projectId'],'requestBody':{'role':_0x51ba61,'roleId':this['customRoleName']},'auth':_0x4f8ab7});const _0x50de99={};_0x50de99[_0xfc08ab(0x2fd)]='projects/'+this[_0xfc08ab(0x225)],_0x50de99[_0xfc08ab(0x219)]={},_0x50de99[_0xfc08ab(0x260)]=_0x4f8ab7,_0x50de99[_0xfc08ab(0x219)]['accountId']=this[_0xfc08ab(0x2f7)];const _0x1d6127=_0x50de99;await this[_0xfc08ab(0x26a)][_0xfc08ab(0x27b)][_0xfc08ab(0x2e9)][_0xfc08ab(0x303)](_0x1d6127);let _0x3aaa9f=await this[_0xfc08ab(0x281)][_0xfc08ab(0x2b2)]({'resource':_0xfc08ab(0x292)+this[_0xfc08ab(0x225)]});_0x3aaa9f=_0x3aaa9f[0x0][_0xfc08ab(0x1eb)];const _0x146a10={};_0x146a10[_0xfc08ab(0x27d)]='projects/'+this[_0xfc08ab(0x225)]+_0xfc08ab(0x238)+this['customRoleName'],_0x146a10['members']=[_0xfc08ab(0x271)+this[_0xfc08ab(0x2f7)]+'@'+this['projectId']+'.iam.gserviceaccount.com'],_0x3aaa9f['push'](_0x146a10);const _0x36ebd7={};_0x36ebd7[_0xfc08ab(0x1eb)]=_0x3aaa9f,await this['resourcemanagerClient'][_0xfc08ab(0x297)]({'resource':'projects/'+this[_0xfc08ab(0x225)],'policy':_0x36ebd7}),logger[_0xfc08ab(0x1e1)](_0x205e8a[_0xfc08ab(0x290)]);}async['setupNewCluster'](_0x90db94='default',_0x22f809=['default']){const _0x1fee74=a3_0x3fb72e,_0x2fa38f={};_0x2fa38f['aqkYq']=_0x1fee74(0x1ea),_0x2fa38f[_0x1fee74(0x203)]=_0x1fee74(0x20b),_0x2fa38f[_0x1fee74(0x306)]=_0x1fee74(0x276);const _0x4876c5=_0x2fa38f,_0x11e885=_0x4876c5[_0x1fee74(0x30a)][_0x1fee74(0x2e4)]('|');let _0x51e822=0x0;while(!![]){switch(_0x11e885[_0x51e822++]){case'0':await this[_0x1fee74(0x230)](_0x90db94,_0x22f809);continue;case'1':logger['info'](_0x4876c5[_0x1fee74(0x203)]);continue;case'2':await this[_0x1fee74(0x300)]();continue;case'3':return!![];case'4':const _0xf77283={};_0xf77283[_0x1fee74(0x29b)]=WS_EVENTS[_0x1fee74(0x2a5)],_0xf77283[_0x1fee74(0x2ff)]=_0x4876c5[_0x1fee74(0x306)],this[_0x1fee74(0x23c)]['sendEventToBackend'](this[_0x1fee74(0x308)],_0xf77283);continue;case'5':this[_0x1fee74(0x1fa)](this[_0x1fee74(0x308)]);continue;}break;}}async[a3_0x3fb72e(0x230)](_0x1a6b86=a3_0x3fb72e(0x256),_0x31cd09=[a3_0x3fb72e(0x256)]){const _0x1cbf95=a3_0x3fb72e,_0x5eabf8={};_0x5eabf8[_0x1cbf95(0x23a)]='Service\x20account\x20already\x20exists,\x20skipping',_0x5eabf8[_0x1cbf95(0x21e)]=function(_0xe41f84,_0x37ff99){return _0xe41f84===_0x37ff99;},_0x5eabf8[_0x1cbf95(0x1ec)]=_0x1cbf95(0x2c1),_0x5eabf8[_0x1cbf95(0x23d)]=_0x1cbf95(0x2c8),_0x5eabf8[_0x1cbf95(0x2e3)]='templates',_0x5eabf8[_0x1cbf95(0x2dc)]='gcpresources',_0x5eabf8[_0x1cbf95(0x2f0)]=_0x1cbf95(0x2bf),_0x5eabf8[_0x1cbf95(0x2df)]=_0x1cbf95(0x2a7),_0x5eabf8[_0x1cbf95(0x2c5)]=_0x1cbf95(0x275),_0x5eabf8['MQfKV']=function(_0x2b89b2,_0x166f21){return _0x2b89b2*_0x166f21;},_0x5eabf8[_0x1cbf95(0x301)]=function(_0x3e1260,_0x349fb9){return _0x3e1260!==_0x349fb9;},_0x5eabf8[_0x1cbf95(0x1f2)]='FxwZz',_0x5eabf8[_0x1cbf95(0x1ee)]=_0x1cbf95(0x235),_0x5eabf8[_0x1cbf95(0x213)]=_0x1cbf95(0x2ef),_0x5eabf8[_0x1cbf95(0x1e9)]=function(_0x531704,_0x2903b9){return _0x531704!==_0x2903b9;},_0x5eabf8[_0x1cbf95(0x2bd)]=_0x1cbf95(0x2d2),_0x5eabf8[_0x1cbf95(0x2f3)]=_0x1cbf95(0x262),_0x5eabf8[_0x1cbf95(0x1f3)]=_0x1cbf95(0x1f6);const _0x21571a=_0x5eabf8;try{if(_0x21571a['jqDmL'](_0x21571a[_0x1cbf95(0x1ec)],_0x21571a['QDiJb'])){logger[_0x1cbf95(0x1e1)](_0x21571a[_0x1cbf95(0x23d)]);let _0x7959cd=await fs[_0x1cbf95(0x2f6)](path[_0x1cbf95(0x26d)](__dirname,'..',_0x21571a[_0x1cbf95(0x2e3)],_0x21571a[_0x1cbf95(0x2dc)],_0x21571a['dFQjS']),_0x21571a['yIQCx']);_0x7959cd=JSON['parse'](_0x7959cd);let _0x585400=await fs[_0x1cbf95(0x2f6)](path['join'](__dirname,'..',_0x21571a[_0x1cbf95(0x2e3)],_0x21571a[_0x1cbf95(0x2dc)],_0x21571a['PdLGD']),_0x21571a['yIQCx']);_0x585400=JSON['parse'](_0x585400),_0x7959cd[_0x1cbf95(0x2fd)]=this[_0x1cbf95(0x2cc)],_0x7959cd[_0x1cbf95(0x26b)][0x0][_0x1cbf95(0x227)]['machineType']=global_registry['instanceType'],_0x7959cd[_0x1cbf95(0x26b)][0x0][_0x1cbf95(0x227)][_0x1cbf95(0x2eb)]=this['serviceAccountName']+'@'+this[_0x1cbf95(0x225)]+_0x1cbf95(0x2f2),_0x7959cd[_0x1cbf95(0x26b)][0x0]['autoscaling'][_0x1cbf95(0x24c)]=global_registry[_0x1cbf95(0x286)],_0x7959cd[_0x1cbf95(0x26b)][0x0][_0x1cbf95(0x2e7)][_0x1cbf95(0x273)]=global_registry['maxNodes'],_0x7959cd['location']=global_registry['clusterRegion'],_0x7959cd[_0x1cbf95(0x214)]=[_0x585400[global_registry['clusterRegion']][0x0]],_0x7959cd[_0x1cbf95(0x2f9)]=_0x1cbf95(0x292)+this[_0x1cbf95(0x225)]+'/global/networks/'+_0x1a6b86,_0x7959cd[_0x1cbf95(0x295)]=_0x1cbf95(0x292)+this[_0x1cbf95(0x225)]+_0x1cbf95(0x2d6)+global_registry['clusterRegion']+_0x1cbf95(0x21f)+_0x31cd09[0x0];const _0x32bedd=await this[_0x1cbf95(0x268)][_0x1cbf95(0x230)]({'cluster':_0x7959cd,'parent':_0x1cbf95(0x292)+this[_0x1cbf95(0x225)]+_0x1cbf95(0x1e4)+global_registry[_0x1cbf95(0x2a2)]});await this['webSocketUtils']['delay'](_0x21571a[_0x1cbf95(0x2e2)](_0x21571a[_0x1cbf95(0x2e2)](0x7,0x3c),0x3e8));}else return![];}catch(_0x5cc2a4){if(_0x21571a[_0x1cbf95(0x301)](_0x21571a[_0x1cbf95(0x1f2)],_0x21571a[_0x1cbf95(0x1f2)]))return _0x3c3013[_0x1cbf95(0x25b)](_0x1cbf95(0x277)+_0x1ef410+'.\x20Error:\x20'+_0x518102),[![],[]];else{const _0x21ace4=await this['isClusterPresent']();if(_0x21ace4){if(_0x21571a[_0x1cbf95(0x301)](_0x21571a[_0x1cbf95(0x1ee)],_0x21571a[_0x1cbf95(0x1ee)])){_0x55a43b[_0x1cbf95(0x1e1)](_0x21571a[_0x1cbf95(0x23a)]);return;}else logger[_0x1cbf95(0x1e1)](_0x21571a[_0x1cbf95(0x213)],_0x5cc2a4['stack']),await this[_0x1cbf95(0x29c)]();}else{if(_0x21571a[_0x1cbf95(0x1e9)](_0x21571a[_0x1cbf95(0x2bd)],_0x21571a['eVeTn']))logger['info'](_0x21571a['UidVX']);else return _0x539bc1[_0x1cbf95(0x209)][_0x1cbf95(0x234)][_0x1cbf95(0x309)]['ingress'][0x0]['ip'];}throw _0x5cc2a4;}}}async[a3_0x3fb72e(0x29c)](_0x14a275,_0x134d74){const _0x35af72=a3_0x3fb72e,_0x27063c={'KmUEA':function(_0x4375b0,_0x530ce7){return _0x4375b0===_0x530ce7;},'rKAid':'bAlam','NhjDA':_0x35af72(0x250),'uoBNn':function(_0xf0c7d2,_0x50befd){return _0xf0c7d2(_0x50befd);},'NLqQY':function(_0x76fd6,_0x181cc0){return _0x76fd6===_0x181cc0;},'BVTUI':'RUNNING','MCMqV':function(_0x4ad28f,_0x362e74){return _0x4ad28f===_0x362e74;},'tHHTd':_0x35af72(0x228),'iZncz':function(_0x2cd260,_0x45d20b){return _0x2cd260!==_0x45d20b;},'slwvr':_0x35af72(0x30c),'MiWhR':_0x35af72(0x28d),'rracQ':_0x35af72(0x269),'DYJZr':_0x35af72(0x30e)};try{if(_0x27063c[_0x35af72(0x24e)](_0x27063c[_0x35af72(0x2d5)],_0x27063c[_0x35af72(0x299)]))this[_0x35af72(0x2f8)]();else{await _0x27063c[_0x35af72(0x25a)](deleteRoutingDeps,_0x14a275),logger[_0x35af72(0x1e1)](_0x35af72(0x2d9)+this['clusterName']);const _0x3ebd0f=await this[_0x35af72(0x268)][_0x35af72(0x29c)]({'name':'projects/'+this[_0x35af72(0x225)]+_0x35af72(0x1e4)+global_registry[_0x35af72(0x2a2)]+'/clusters/'+this[_0x35af72(0x2cc)]});if(_0x27063c[_0x35af72(0x22e)](_0x3ebd0f[0x0]?.['status'],_0x27063c[_0x35af72(0x298)])||_0x27063c[_0x35af72(0x304)](_0x3ebd0f[0x0]?.['status'],_0x27063c[_0x35af72(0x2cb)])){if(_0x27063c['iZncz'](_0x27063c['slwvr'],_0x27063c[_0x35af72(0x261)]))return!![];else _0x4b3e89[_0x35af72(0x231)][_0x35af72(0x2c9)](_0x5b89af);}logger[_0x35af72(0x1e1)](_0x35af72(0x2c3));}}catch(_0x45959e){if(_0x27063c[_0x35af72(0x304)](_0x27063c[_0x35af72(0x2c2)],_0x27063c['rracQ'])){logger[_0x35af72(0x1e1)](_0x27063c[_0x35af72(0x2dd)]);throw _0x45959e;}else return!![];}}async['isVPCPresent'](_0x24621e){const _0x1371ab=a3_0x3fb72e,_0x1993c1={};_0x1993c1[_0x1371ab(0x252)]=function(_0x403cb4,_0x198824){return _0x403cb4===_0x198824;},_0x1993c1['QPLha']=function(_0x34df0a,_0x44f463){return _0x34df0a===_0x44f463;},_0x1993c1[_0x1371ab(0x23e)]=_0x1371ab(0x1e7),_0x1993c1[_0x1371ab(0x2ba)]=function(_0x5ef264,_0x3db302){return _0x5ef264!==_0x3db302;},_0x1993c1[_0x1371ab(0x254)]=_0x1371ab(0x20d),_0x1993c1['fPsNJ']=function(_0x5f0118,_0x47f547){return _0x5f0118>_0x47f547;},_0x1993c1['dbARS']=function(_0xce072,_0xdb4713){return _0xce072===_0xdb4713;},_0x1993c1[_0x1371ab(0x2b3)]=function(_0x5094ed,_0x1afe69){return _0x5094ed!==_0x1afe69;},_0x1993c1[_0x1371ab(0x28e)]=_0x1371ab(0x204),_0x1993c1[_0x1371ab(0x22a)]=_0x1371ab(0x241),_0x1993c1['efxva']=function(_0x4b41bf,_0x415a06){return _0x4b41bf===_0x415a06;},_0x1993c1['yCRAa']=_0x1371ab(0x1fc),_0x1993c1[_0x1371ab(0x28f)]='xSiGf';const _0x44cedb=_0x1993c1;try{if(_0x44cedb[_0x1371ab(0x2ba)](_0x44cedb[_0x1371ab(0x254)],_0x44cedb[_0x1371ab(0x254)]))return!![];else{const _0x1b85e4={};_0x1b85e4[_0x1371ab(0x2b4)]=projectId,_0x1b85e4[_0x1371ab(0x2f9)]=_0x24621e;const _0x426908=await networkClient['get'](_0x1b85e4);if(_0x44cedb[_0x1371ab(0x20f)](_0x426908[_0x1371ab(0x2bc)],0x0)&&_0x44cedb[_0x1371ab(0x1f4)](_0x426908[0x0]['name'],_0x24621e)){if(_0x44cedb[_0x1371ab(0x2b3)](_0x44cedb['XcTAI'],_0x44cedb[_0x1371ab(0x22a)]))return!![];else{if(_0x44cedb[_0x1371ab(0x252)](_0x57175d[_0x1371ab(0x2fd)],this[_0x1371ab(0x2cc)]))return!![];}}}}catch(_0x426f78){if(_0x44cedb[_0x1371ab(0x1f9)](_0x44cedb['yCRAa'],_0x44cedb[_0x1371ab(0x28f)])){const _0x4bdc09=_0x40937e[0x0]?.[_0x1371ab(0x247)]?.[_0x1371ab(0x2cd)];return _0x4bdc09&&_0x44cedb[_0x1371ab(0x200)](_0x4bdc09['toLowerCase'](),_0x44cedb[_0x1371ab(0x23e)]);}else return![];}return![];}async[a3_0x3fb72e(0x2d4)](_0x1cacdb,_0x5b9704){const _0x1e35e2=a3_0x3fb72e,_0xe2cce6={};_0xe2cce6[_0x1e35e2(0x1f1)]=_0x1e35e2(0x1f6),_0xe2cce6['EwhXD']=function(_0x4e2bbe,_0x2eaac1){return _0x4e2bbe===_0x2eaac1;},_0xe2cce6[_0x1e35e2(0x22f)]=function(_0x4bee1d,_0x2904c4){return _0x4bee1d===_0x2904c4;},_0xe2cce6[_0x1e35e2(0x2fc)]=_0x1e35e2(0x1e5),_0xe2cce6[_0x1e35e2(0x25f)]='UXYEZ',_0xe2cce6[_0x1e35e2(0x2e1)]=function(_0x5eba8,_0x5d324c){return _0x5eba8!==_0x5d324c;},_0xe2cce6[_0x1e35e2(0x2c6)]='MDndt',_0xe2cce6[_0x1e35e2(0x237)]=_0x1e35e2(0x244);const _0x142629=_0xe2cce6;try{const _0x528fe5={};_0x528fe5[_0x1e35e2(0x2b4)]=projectId,_0x528fe5['network']=_0x5b9704;const _0x2ca772=await networkClient[_0x1e35e2(0x207)](_0x528fe5);for(const _0x25d0e0 of _0x2ca772[0x0][_0x1e35e2(0x2ad)]){if(_0x142629['yPNxx'](_0x142629[_0x1e35e2(0x2fc)],_0x142629[_0x1e35e2(0x25f)]))_0xf06eb7[_0x1e35e2(0x1e1)](_0x142629['ofRhT']);else{const _0x163271='https://www.googleapis.com/compute/v1/projects/'+this[_0x1e35e2(0x225)]+_0x1e35e2(0x2d6)+global_registry[_0x1e35e2(0x2a2)]+_0x1e35e2(0x21f)+_0x1cacdb[0x0];if(_0x142629[_0x1e35e2(0x22f)](_0x163271,_0x25d0e0)){if(_0x142629[_0x1e35e2(0x2e1)](_0x142629[_0x1e35e2(0x2c6)],_0x142629[_0x1e35e2(0x237)]))return[!![],_0x1cacdb];else{const _0x1346e0=_0x1e35e2(0x2e8)+this['projectId']+_0x1e35e2(0x2d6)+_0x185794[_0x1e35e2(0x2a2)]+_0x1e35e2(0x21f)+_0x4bd2c8[0x0];if(_0x142629[_0x1e35e2(0x2d0)](_0x1346e0,_0x38c2a9))return[!![],_0x317cd0];}}}}}catch(_0x2691b4){return logger[_0x1e35e2(0x25b)]('Cannot\x20find\x20subnets\x20'+_0x1cacdb+_0x1e35e2(0x279)+_0x2691b4),[![],[]];}return[![],[]];}async['sendGCPInfoToHST'](){const _0x57dc6b=a3_0x3fb72e,_0x5949d9=await this['networkClient']['list']({'project':this[_0x57dc6b(0x225)]}),_0x56b9d4={};_0x56b9d4[_0x57dc6b(0x2fe)]=global_registry[_0x57dc6b(0x21c)],_0x56b9d4[_0x57dc6b(0x1e3)]=global_registry['bstackAccesskey'],_0x56b9d4[_0x57dc6b(0x282)]=GCP,_0x56b9d4[_0x57dc6b(0x231)]=[];const _0x385dfb=_0x56b9d4;for(const _0x584c2a of _0x5949d9){_0x385dfb['vpcInfo'][_0x57dc6b(0x2c9)](_0x584c2a);}const _0xc9f01f={};_0xc9f01f[_0x57dc6b(0x29b)]=WS_EVENTS[_0x57dc6b(0x21b)],_0xc9f01f[_0x57dc6b(0x2ff)]=_0x385dfb,this[_0x57dc6b(0x23c)][_0x57dc6b(0x284)](this['rws'],_0xc9f01f);}}const a3_0x1c671f={};function a3_0x2fc1(_0x358bb4,_0x8b1503){const _0x3654a9=a3_0x3654();return a3_0x2fc1=function(_0x2fc19d,_0x2989a1){_0x2fc19d=_0x2fc19d-0x1e0;let _0x279d62=_0x3654a9[_0x2fc19d];return _0x279d62;},a3_0x2fc1(_0x358bb4,_0x8b1503);}function a3_0x3654(){const _0x32d48c=['resourceLabels','OWTcr','XpGdy','storage.buckets.update','getUserInput','minNodeCount','parse','KmUEA','@google-cloud/container','TVDen','NetworksClient','gboAT','CrURb','ZrVrI','masterAuth','default','mnwaY','7|0|5|2|8|3|1|6|4','TpFLG','uoBNn','error','406943cQQiOc','KQRTo','LJlnc','VEomA','auth','MiWhR','uchyB','41535xUzJJR','36kGymRf','storage.multipartUploads.list','RSqua','793744siYQxa','containerClient','MviFX','iamClient','nodePools','iREMZ','join','xVifW','Uotee','storage.objects.create','serviceAccount:','fetchLocalCreds','maxNodeCount','storage.buckets.listEffectiveTags','regionmap.json','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','Cannot\x20find\x20subnets\x20','../config/constants','.\x20Error:\x20','storage.buckets.listTagBindings','projects','CFyoY','role','20241scrYMg','fgwyr','LvvxB','resourcemanagerClient','cloudProvider','storage.objects.getIamPolicy','sendEventToBackend','zKwJR','minNodes','uWOUW','GiFWA','@google-cloud/compute','project_id','KubeConfigTemplate.yaml','UhMFB','rvBiJ','XcTAI','aIeTh','TLCBB','duGaE','projects/','getClusterInfo','iofXW','subnetwork','LaVvp','setIamPolicy','BVTUI','NhjDA','gcloud\x20auth\x20login\x20--cred-file=','type','deleteCluster','storage.multipartUploads.create','@google-cloud/resource-manager','storage.buckets.createTagBinding','replace','YmTVz','clusterRegion','gke_','DKkOF','LOG','XuzpO','utf-8','isConfigured','TTEDS','VTWRq','XHvyT','accounts','subnetworks','parent','getClient','storage.buckets.delete','NinOj','getIamPolicy','IwXeR','project','46URohfx','../utils/utilityMethods','JGGFt','ulDYh','eVJzC','BTTZe','gcpConfigSet','length','vGkmP','scUPl','gkecluster.json','storage.buckets.setIamPolicy','PHJBF','rracQ','Cluster\x20deletion\x20completed','getCluster','PdLGD','zGakX','kUrHY','Creating\x20GKE\x20Cluster','push','clusters','tHHTd','clusterName','managedby','zWFdQ','yIBue','EwhXD','SMfgV','fisJo','toLowerCase','isSubnetsValid','rKAid','/regions/','checkServiceAccount','kdBzX','Deleting\x20the\x20cluster\x20','gcpresources','AAENn','htQGY','DYJZr','FRque','yIQCx','turboscale_custom_role','rwyPR','MQfKV','LiKZZ','split','keyFile','configureIfNotConfigured','autoscaling','https://www.googleapis.com/compute/v1/projects/','serviceAccounts','wAEyg','serviceAccount','BYPPe','GoogleCloudProvider','includedPermissions','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','dFQjS','VecYq','.iam.gserviceaccount.com','eVeTn','Creating\x20service\x20account','getKubeConfigData','readFileAsync','serviceAccountName','setConfig','network','roles','credentialsPath','VPRSN','name','username','message','setupServiceAccount','hogys','storage.objects.list','create','MCMqV','https://','LDWzQ','Turboscale\x20Custom\x20Role','rws','loadBalancer','aqkYq','cjvdy','HlEwF','394929YJXthf','GKE\x20Cluster\x20deletion\x20failed','tvMjV','JgFxU','aYFMC','VpIOv','storage.multipartUploads.abort','info','turboscale-service-account','accessKey','/locations/','btCiZ','hJEZt','browserstack','storage.buckets.get','qWyqq','5|4|1|2|0|3','bindings','QDiJb','../utils/gridComponents','XBgAz','iam','UpafX','ofRhT','GWolB','UidVX','dbARS','FOwwf','Cluster\x20creation\x20failed','/serviceAccounts/','organizations','efxva','sendGCPInfoToHST','151368kYQcZG','verzS','googleapis','PihLY','storage.objects.delete','QPLha','storage.objects.setIamPolicy','OyviN','IMARx','ePiiY','dqofc','2330088qUSrzO','get','isBrowserstackCluster','body','AZdkM','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','iam.serviceAccounts.signBlob','sDebA','AegLe','fPsNJ','asXZg','ingress','iiDLf','fiPYj','locations','yWjsS','GDzOd','SfsMP','templates','requestBody','getGridHostname','RESOURCES','bstackUsername','data','jqDmL','/subnetworks/','scopes','KTSFt','MGhAt','endpoint','YHLas','projectId','exRid','config','DONE','KoHeC','qijSP','zfUKR','ukPZZ','networkClient','NLqQY','yPNxx','createCluster','vpcInfo','storage.objects.update','WslLn','status','XxHyS','ClusterManagerClient','GIYOQ','/roles/','feYuH','lkbDp','exports','webSocketUtils','GvBXA','vqSws','storage.buckets.create','zttNk','jwDUs','HIlkE','path','oyvzR','title','https://www.googleapis.com/auth/cloud-platform'];a3_0x3654=function(){return _0x32d48c;};return a3_0x3654();}a3_0x1c671f[a3_0x3fb72e(0x2ed)]=GoogleCloudProvider,module[a3_0x3fb72e(0x23b)]=a3_0x1c671f;
@@ -1 +1 @@
1
- function a4_0x5344(){const _0xdfa32b=['get','2815602rkYLIw','network','@google-cloud/compute','/Users/user/Downloads/bstack-turboscale-staging-1a66b19ac9fd.json','js-yaml','project','4084940eTuSvt','637eeUNzX','1810HivYIh','@google-cloud/container','96246lrMZCZ','oZwVh','path','SYzcl','keyFile','29912lRAvks','30TDrXiM','log','3103415ZppkXx','544428FUDxYM','@google-cloud/iam','NetworksClient','212588sgVBql','@kubernetes/client-node'];a4_0x5344=function(){return _0xdfa32b;};return a4_0x5344();}const a4_0x422675=a4_0x4074;function a4_0x4074(_0x50045a,_0x296b9f){const _0x534464=a4_0x5344();return a4_0x4074=function(_0x407463,_0x114745){_0x407463=_0x407463-0x13d;let _0x21b720=_0x534464[_0x407463];return _0x21b720;},a4_0x4074(_0x50045a,_0x296b9f);}(function(_0x391cab,_0x489f75){const _0x28297e=a4_0x4074,_0x246bcf=_0x391cab();while(!![]){try{const _0x2b6fec=-parseInt(_0x28297e(0x14a))/0x1+parseInt(_0x28297e(0x14d))/0x2*(-parseInt(_0x28297e(0x147))/0x3)+parseInt(_0x28297e(0x13d))/0x4+-parseInt(_0x28297e(0x149))/0x5+-parseInt(_0x28297e(0x150))/0x6+-parseInt(_0x28297e(0x13e))/0x7*(-parseInt(_0x28297e(0x146))/0x8)+-parseInt(_0x28297e(0x141))/0x9*(-parseInt(_0x28297e(0x13f))/0xa);if(_0x2b6fec===_0x489f75)break;else _0x246bcf['push'](_0x246bcf['shift']());}catch(_0x471e08){_0x246bcf['push'](_0x246bcf['shift']());}}}(a4_0x5344,0x926e4));const fs=require('fs'),path=require(a4_0x422675(0x143)),os=require('os'),yaml=require(a4_0x422675(0x154)),container=require(a4_0x422675(0x140)),k8s=require(a4_0x422675(0x14e)),compute=require(a4_0x422675(0x152)),{google}=require('googleapis'),{PoliciesClient}=require(a4_0x422675(0x14b))['v2'],{iam}=require(a4_0x422675(0x14b));async function main(){const _0x1b1d31=a4_0x422675,_0x96c2cb={};_0x96c2cb[_0x1b1d31(0x142)]=_0x1b1d31(0x153),_0x96c2cb['rgYBk']='bstack-turboscale-staging',_0x96c2cb[_0x1b1d31(0x144)]='test-vpc-1';const _0x3992a9=_0x96c2cb;try{let _0x51d58d=_0x3992a9[_0x1b1d31(0x142)];const _0x5488ac=_0x3992a9['rgYBk'],_0x260949={};_0x260949[_0x1b1d31(0x145)]=_0x51d58d;const _0x176e41=new compute['v1'][(_0x1b1d31(0x14c))](_0x260949),_0x5e46bb={};_0x5e46bb[_0x1b1d31(0x155)]=_0x5488ac,_0x5e46bb[_0x1b1d31(0x151)]=_0x3992a9['SYzcl'];const _0xf841b6=await _0x176e41[_0x1b1d31(0x14f)](_0x5e46bb);console[_0x1b1d31(0x148)](_0xf841b6);}catch(_0x3fd477){console[_0x1b1d31(0x148)](_0x3fd477);}}main();
1
+ const a4_0x169f79=a4_0x5a41;(function(_0x50f0b8,_0x1ff90f){const _0x3e2689=a4_0x5a41,_0x23476f=_0x50f0b8();while(!![]){try{const _0x289db2=parseInt(_0x3e2689(0x1e8))/0x1*(-parseInt(_0x3e2689(0x1f2))/0x2)+parseInt(_0x3e2689(0x1f8))/0x3+-parseInt(_0x3e2689(0x1ea))/0x4*(-parseInt(_0x3e2689(0x1e9))/0x5)+parseInt(_0x3e2689(0x1f1))/0x6+-parseInt(_0x3e2689(0x1fd))/0x7+parseInt(_0x3e2689(0x1ee))/0x8+-parseInt(_0x3e2689(0x1fb))/0x9;if(_0x289db2===_0x1ff90f)break;else _0x23476f['push'](_0x23476f['shift']());}catch(_0x4c371c){_0x23476f['push'](_0x23476f['shift']());}}}(a4_0x3fe1,0x1bafb));const fs=require('fs'),path=require(a4_0x169f79(0x1fc)),os=require('os'),yaml=require('js-yaml'),container=require(a4_0x169f79(0x1f3)),k8s=require(a4_0x169f79(0x1ef)),compute=require(a4_0x169f79(0x1e7)),{google}=require('googleapis'),{PoliciesClient}=require('@google-cloud/iam')['v2'],{iam}=require(a4_0x169f79(0x1fa));async function main(){const _0x30c8d1=a4_0x169f79,_0x5c8262={};_0x5c8262[_0x30c8d1(0x1ec)]=_0x30c8d1(0x1ed),_0x5c8262[_0x30c8d1(0x1e6)]=_0x30c8d1(0x1eb),_0x5c8262[_0x30c8d1(0x1f0)]=_0x30c8d1(0x1f5);const _0x10864e=_0x5c8262;try{let _0x105f81=_0x10864e[_0x30c8d1(0x1ec)];const _0x30d75d=_0x10864e['tVrhe'],_0x774de={};_0x774de[_0x30c8d1(0x1f7)]=_0x105f81;const _0xa222f6=new compute['v1']['NetworksClient'](_0x774de),_0x321089={};_0x321089['project']=_0x30d75d,_0x321089[_0x30c8d1(0x1f6)]=_0x10864e[_0x30c8d1(0x1f0)];const _0x2b19d7=await _0xa222f6[_0x30c8d1(0x1f4)](_0x321089);console[_0x30c8d1(0x1f9)](_0x2b19d7);}catch(_0x3c131f){console[_0x30c8d1(0x1f9)](_0x3c131f);}}function a4_0x5a41(_0x523d77,_0x1451b5){const _0x3fe14a=a4_0x3fe1();return a4_0x5a41=function(_0x5a41d8,_0x4dabb1){_0x5a41d8=_0x5a41d8-0x1e6;let _0x46cb49=_0x3fe14a[_0x5a41d8];return _0x46cb49;},a4_0x5a41(_0x523d77,_0x1451b5);}function a4_0x3fe1(){const _0x1cc568=['@kubernetes/client-node','ClXzd','388830PqPpcm','2gLtyts','@google-cloud/container','get','test-vpc-1','network','keyFile','574605eWfFnu','log','@google-cloud/iam','1706373oOQkGG','path','868938rbccBj','tVrhe','@google-cloud/compute','129587TUlcMF','50uhZjPu','39836RfFIiQ','bstack-turboscale-staging','wmVXy','/Users/user/Downloads/bstack-turboscale-staging-1a66b19ac9fd.json','1606328IWtuEx'];a4_0x3fe1=function(){return _0x1cc568;};return a4_0x3fe1();}main();
@@ -1 +1 @@
1
- function a5_0x137f(_0x5a683f,_0x237b48){const _0x2306ad=a5_0x2306();return a5_0x137f=function(_0x137fcf,_0x44af10){_0x137fcf=_0x137fcf-0x1ce;let _0x5b9ad5=_0x2306ad[_0x137fcf];return _0x5b9ad5;},a5_0x137f(_0x5a683f,_0x237b48);}const a5_0x58b540=a5_0x137f;(function(_0x1fb85b,_0xdbb76c){const _0x3d143b=a5_0x137f,_0x2dc8c9=_0x1fb85b();while(!![]){try{const _0x3aa51a=parseInt(_0x3d143b(0x1d4))/0x1+-parseInt(_0x3d143b(0x1de))/0x2+parseInt(_0x3d143b(0x1d8))/0x3+parseInt(_0x3d143b(0x1d5))/0x4*(parseInt(_0x3d143b(0x1d2))/0x5)+parseInt(_0x3d143b(0x1d3))/0x6*(-parseInt(_0x3d143b(0x1d6))/0x7)+-parseInt(_0x3d143b(0x1d9))/0x8*(-parseInt(_0x3d143b(0x1d7))/0x9)+-parseInt(_0x3d143b(0x1cf))/0xa*(-parseInt(_0x3d143b(0x1dc))/0xb);if(_0x3aa51a===_0xdbb76c)break;else _0x2dc8c9['push'](_0x2dc8c9['shift']());}catch(_0x4e5362){_0x2dc8c9['push'](_0x2dc8c9['shift']());}}}(a5_0x2306,0x7b442));const {AWSCloudProvider}=require(a5_0x58b540(0x1da)),{AzureCloudProvider}=require('./Azure'),{GoogleCloudProvider}=require(a5_0x58b540(0x1dd)),{AWS,AZURE,GCP}=require(a5_0x58b540(0x1ce));exports[a5_0x58b540(0x1d0)]=(_0x5b552b,_0x4f2587,_0x43d9c1,_0x27ba84,_0x679f21)=>{const _0x18be62=a5_0x58b540;switch(_0x5b552b){case AWS:return new AWSCloudProvider(_0x4f2587,_0x43d9c1,_0x27ba84,_0x679f21);case GCP:return new GoogleCloudProvider(_0x4f2587,_0x43d9c1,_0x27ba84,_0x679f21);default:console['error'](_0x18be62(0x1d1)+_0x5b552b),process[_0x18be62(0x1db)](0x1);}};function a5_0x2306(){const _0xbaf968=['115226PWKUPl','2617812wXzXfu','4155879PIFlaN','45Atubue','562317sYFwbn','33952eNiuVy','./AWS','exit','3861wtLoRT','./GoogleCloudProvider','1751060HlpMUd','../config/constants','28370yRJgci','getCloudProviderObject','Unknown\x20cloud\x20provider\x20found\x20-\x20','5VtIMJT','6MFtsdj'];a5_0x2306=function(){return _0xbaf968;};return a5_0x2306();}
1
+ const a5_0x2001c2=a5_0x280f;(function(_0xfda103,_0x110d9a){const _0x31571e=a5_0x280f,_0x51c340=_0xfda103();while(!![]){try{const _0x5d9981=parseInt(_0x31571e(0x1f6))/0x1*(parseInt(_0x31571e(0x1ef))/0x2)+parseInt(_0x31571e(0x1f3))/0x3*(-parseInt(_0x31571e(0x1f7))/0x4)+parseInt(_0x31571e(0x1f5))/0x5+-parseInt(_0x31571e(0x1ea))/0x6+-parseInt(_0x31571e(0x1eb))/0x7+parseInt(_0x31571e(0x1ee))/0x8+-parseInt(_0x31571e(0x1f9))/0x9*(parseInt(_0x31571e(0x1f1))/0xa);if(_0x5d9981===_0x110d9a)break;else _0x51c340['push'](_0x51c340['shift']());}catch(_0x5ae1a2){_0x51c340['push'](_0x51c340['shift']());}}}(a5_0xb09d,0xa7349));function a5_0xb09d(){const _0x4c3af1=['5599700eaNapg','510856VyXghF','2039036oMSGOG','./GoogleCloudProvider','1937880jNOhTu','3637836LjxiWp','4821957kTkRGX','exit','../config/constants','6230216EScOTF','4vneNei','./Azure','20TXvfFm','Unknown\x20cloud\x20provider\x20found\x20-\x20','3CmFdyY','error'];a5_0xb09d=function(){return _0x4c3af1;};return a5_0xb09d();}const {AWSCloudProvider}=require('./AWS'),{AzureCloudProvider}=require(a5_0x2001c2(0x1f0)),{GoogleCloudProvider}=require(a5_0x2001c2(0x1f8)),{AWS,AZURE,GCP}=require(a5_0x2001c2(0x1ed));function a5_0x280f(_0x5e3573,_0x5e1eca){const _0xb09d29=a5_0xb09d();return a5_0x280f=function(_0x280f1f,_0x500863){_0x280f1f=_0x280f1f-0x1ea;let _0x5605fb=_0xb09d29[_0x280f1f];return _0x5605fb;},a5_0x280f(_0x5e3573,_0x5e1eca);}exports['getCloudProviderObject']=(_0x209c3c,_0x3cb754,_0x2a5804,_0x3a4c3f,_0x4a4ef5)=>{const _0x280046=a5_0x2001c2;switch(_0x209c3c){case AWS:return new AWSCloudProvider(_0x3cb754,_0x2a5804,_0x3a4c3f,_0x4a4ef5);case GCP:return new GoogleCloudProvider(_0x3cb754,_0x2a5804,_0x3a4c3f,_0x4a4ef5);default:console[_0x280046(0x1f4)](_0x280046(0x1f2)+_0x209c3c),process[_0x280046(0x1ec)](0x1);}};
@@ -1 +1 @@
1
- const a6_0x1aa83e=a6_0x3f6a;function a6_0x4cb7(){const _0x1699ad=['init-not-called','list','method','1161jhMJCX','configure','core:','oomWO','recommendCommands','KRpjq','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','rdhSF','active','HHOMg','parse','VdIhl','yYJBH','invalid-input','CBTEG','ERROR','unauthorised','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','../utils/utilityMethods','builder','GET','invalid-selection','385JoJBFQ','icijO','VbPiU','requestId','epilogue','22206VGenEu','wwLpC','promisify','Yobys','statusCode','url','119610gmmQUJ','CVUyk','436qZBTnu','4390815gUDZMT','hFFzj','json','Failed\x20to\x20configure\x20resources!\x20Error:\x20','Browserstack','strict','ESGbt','uuid','cQmaW','63715fkTPrZ','12gfEVhb','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','https://','profileId','../config/constants','wQjnn','SQmZn','error','unknown-error','util','existsSync','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','stack','INFO','\x20\x20username:\x20','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','mAPfC','6HUPuDX','834588diZOTl','IQSRl','help','ediaD','auth','gJjuB','username','wGCSi','QUrSw','10412080vhUJyM','stringify','gYJRN','log','exit','qvgkp','jVoXf','LalLY','password','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','name','jpQQN','hkAnw','configure-called','ZlTqn','bPPqg','lhjuD','SMVru','JRNEh','382018QBhSkg','usage','JNBox','ASeJD','Updated\x20default\x20Grid\x20Profile\x20successfully','pVfje','server-error','toLowerCase','body','nnbnQ','desc','../utils/userInput','YJFxO','../utils/instrumentationUtils'];a6_0x4cb7=function(){return _0x1699ad;};return a6_0x4cb7();}function a6_0x3f6a(_0x2463a9,_0x4b7efc){const _0x4cb70e=a6_0x4cb7();return a6_0x3f6a=function(_0x3f6a53,_0x33bd6a){_0x3f6a53=_0x3f6a53-0xc5;let _0x469ca9=_0x4cb70e[_0x3f6a53];return _0x469ca9;},a6_0x3f6a(_0x2463a9,_0x4b7efc);}(function(_0x3351d6,_0x932c0a){const _0x3a63ff=a6_0x3f6a,_0x5c4d66=_0x3351d6();while(!![]){try{const _0x2d7f9b=-parseInt(_0x3a63ff(0xe6))/0x1*(-parseInt(_0x3a63ff(0xd3))/0x2)+parseInt(_0x3a63ff(0xdc))/0x3+parseInt(_0x3a63ff(0xdb))/0x4*(parseInt(_0x3a63ff(0xe5))/0x5)+parseInt(_0x3a63ff(0xf7))/0x6*(parseInt(_0x3a63ff(0x114))/0x7)+-parseInt(_0x3a63ff(0x101))/0x8+-parseInt(_0x3a63ff(0x125))/0x9*(-parseInt(_0x3a63ff(0xd9))/0xa)+parseInt(_0x3a63ff(0xce))/0xb*(-parseInt(_0x3a63ff(0xf8))/0xc);if(_0x2d7f9b===_0x932c0a)break;else _0x5c4d66['push'](_0x5c4d66['shift']());}catch(_0x5c4d07){_0x5c4d66['push'](_0x5c4d66['shift']());}}}(a6_0x4cb7,0xcef1e));const fs=require('fs'),util=require(a6_0x1aa83e(0xef)),request=require('request'),{v4:uuidv4}=require(a6_0x1aa83e(0xe3)),{inputConfirmation,closeInput}=require(a6_0x1aa83e(0x11f)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a6_0x1aa83e(0xea)),{getCredentialsPath}=require(a6_0x1aa83e(0xca)),{sendInstrumentationEvent}=require(a6_0x1aa83e(0x121)),promisifiedRequest=util[a6_0x1aa83e(0xd5)](request);exports['command']='configure',exports[a6_0x1aa83e(0x11e)]=a6_0x1aa83e(0xf1),exports[a6_0x1aa83e(0xcb)]=function(_0x231f80){const _0x2a7afa=a6_0x1aa83e,_0x4de1b8={};_0x4de1b8[_0x2a7afa(0x131)]=_0x2a7afa(0xfa);const _0xb09238=_0x4de1b8;return _0x231f80[_0x2a7afa(0x115)](HELP_HEADER_MESSAGE[_0x2a7afa(0x126)])[_0x2a7afa(0xd2)](HELP_FOOTER_MESSAGE)[_0x2a7afa(0xfa)](_0xb09238[_0x2a7afa(0x131)])[_0x2a7afa(0x129)]()[_0x2a7afa(0xe1)]()['argv'];},exports['handler']=async function(_0xa6e03e){const _0x2aaa1f=a6_0x1aa83e,_0x533d07={'lhjuD':function(_0xa65763){return _0xa65763();},'mAPfC':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','QUrSw':function(_0x40bd57,_0x39de7b,_0x529694,_0x48ea7e,_0x32ddba,_0x1ae6d5,_0x47604c){return _0x40bd57(_0x39de7b,_0x529694,_0x48ea7e,_0x32ddba,_0x1ae6d5,_0x47604c);},'KRpjq':_0x2aaa1f(0x10e),'ediaD':_0x2aaa1f(0x122),'ESGbt':function(_0x51f58f,_0x172122,_0x179a22,_0x4e3da4,_0x4a3b4b,_0x5922a6,_0x58ed18){return _0x51f58f(_0x172122,_0x179a22,_0x4e3da4,_0x4a3b4b,_0x5922a6,_0x58ed18);},'wGCSi':function(_0x5440d2){return _0x5440d2();},'jVoXf':_0x2aaa1f(0xcc),'wwLpC':function(_0x57ced6,_0x2004c3){return _0x57ced6(_0x2004c3);},'IQSRl':function(_0x4b107f,_0x7347ea){return _0x4b107f!==_0x7347ea;},'nnbnQ':function(_0x1060e0,_0x4a054f){return _0x1060e0!==_0x4a054f;},'pVfje':function(_0x5af5e9,_0x46ce7e){return _0x5af5e9===_0x46ce7e;},'VPLcB':_0x2aaa1f(0xe7),'CVUyk':_0x2aaa1f(0x127),'LalLY':'Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','JRNEh':function(_0x48ac3f,_0x50203c){return _0x48ac3f===_0x50203c;},'gYJRN':function(_0xbc9b7f,_0x1a441f){return _0xbc9b7f===_0x1a441f;},'wQjnn':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','MhjTA':_0x2aaa1f(0xc5),'jpQQN':function(_0x139226,_0x47465f){return _0x139226===_0x47465f;},'qvgkp':_0x2aaa1f(0xc9),'wgBic':function(_0x5b1996,_0x632e8b){return _0x5b1996<_0x632e8b;},'VdIhl':function(_0x95c550,_0x335ded){return _0x95c550+_0x335ded;},'SQmZn':function(_0x337224,_0x198a34){return _0x337224(_0x198a34);},'JNBox':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','HAvYL':function(_0x1c1e0a,_0x466307){return _0x1c1e0a<=_0x466307;},'SMVru':function(_0x972770,_0x56598a){return _0x972770>_0x56598a;},'hkAnw':_0x2aaa1f(0xcd),'UDJmZ':function(_0x5bbb2f,_0x121649){return _0x5bbb2f-_0x121649;},'icijO':'PUT','VbPiU':function(_0x74b788,_0x39a400){return _0x74b788(_0x39a400);},'gJjuB':function(_0x3ce26b,_0x5e9898){return _0x3ce26b!==_0x5e9898;},'CBTEG':function(_0x2bf0ea,_0x35a19f){return _0x2bf0ea!==_0x35a19f;},'HHOMg':function(_0x338c02,_0x1b0265){return _0x338c02===_0x1b0265;},'bPPqg':_0x2aaa1f(0x118),'Yobys':function(_0x2a213f,_0x23e29d){return _0x2a213f===_0x23e29d;},'rdhSF':function(_0x4aeb3d,_0x24c982,_0x202eb0,_0x142c8b,_0x18f7f1,_0x8224e6,_0x75126f){return _0x4aeb3d(_0x24c982,_0x202eb0,_0x142c8b,_0x18f7f1,_0x8224e6,_0x75126f);},'oomWO':_0x2aaa1f(0xc8),'ZlTqn':function(_0x3891a0,_0x5c2851,_0x4c2b84,_0x23f4fa,_0x5120e8,_0x39f877,_0x17d90e){return _0x3891a0(_0x5c2851,_0x4c2b84,_0x23f4fa,_0x5120e8,_0x39f877,_0x17d90e);},'hFFzj':_0x2aaa1f(0x11a),'YJFxO':function(_0x3e5e99,_0x534602,_0x589c09,_0x35d941,_0x18de05,_0x17d13b,_0x549a25){return _0x3e5e99(_0x534602,_0x589c09,_0x35d941,_0x18de05,_0x17d13b,_0x549a25);},'ASeJD':function(_0x2979b1,_0x1bea6d,_0x18109b,_0x4e4ca6,_0x1c64c3,_0xfe348c,_0x1cc2ed){return _0x2979b1(_0x1bea6d,_0x18109b,_0x4e4ca6,_0x1c64c3,_0xfe348c,_0x1cc2ed);},'cQmaW':_0x2aaa1f(0xee)};try{global_registry[_0x2aaa1f(0xd1)]=_0x533d07[_0x2aaa1f(0x111)](uuidv4);const _0x14d068=_0x2aaa1f(0xe8)+AG_API_URL+'/packages/cli/configure';!fs[_0x2aaa1f(0xf0)](_0x533d07[_0x2aaa1f(0x111)](getCredentialsPath))&&(console[_0x2aaa1f(0xed)](_0x533d07[_0x2aaa1f(0xf6)]),await _0x533d07[_0x2aaa1f(0x100)](sendInstrumentationEvent,_0xa6e03e,_0x533d07[_0x2aaa1f(0x12a)],messageTypes['ERROR'],_0x533d07[_0x2aaa1f(0xfb)],null,_0xa6e03e),process[_0x2aaa1f(0x105)](0x1));await _0x533d07[_0x2aaa1f(0xe2)](sendInstrumentationEvent,_0xa6e03e,_0x533d07[_0x2aaa1f(0x12a)],messageTypes[_0x2aaa1f(0xf3)],null,null,_0xa6e03e);const _0x6d05ed=JSON['parse'](fs['readFileSync'](_0x533d07[_0x2aaa1f(0xff)](getCredentialsPath))),_0x4ef6bc={};_0x4ef6bc[_0x2aaa1f(0xfe)]=_0x6d05ed['Browserstack'][_0x2aaa1f(0xfe)],_0x4ef6bc[_0x2aaa1f(0x109)]=_0x6d05ed[_0x2aaa1f(0xe0)]['password'];const _0x103068={};_0x103068[_0x2aaa1f(0xd8)]=_0x14d068,_0x103068[_0x2aaa1f(0x124)]=_0x533d07[_0x2aaa1f(0x107)],_0x103068[_0x2aaa1f(0xfc)]=_0x4ef6bc;const _0x51de96=_0x103068,_0x304ec4=await _0x533d07[_0x2aaa1f(0xd4)](promisifiedRequest,_0x51de96);if(_0x533d07[_0x2aaa1f(0xf9)](_0x304ec4,null)&&_0x533d07[_0x2aaa1f(0x11d)](_0x304ec4,undefined)&&_0x533d07['pVfje'](_0x304ec4[_0x2aaa1f(0xd7)],0xc8)){const _0x74c7f1=JSON[_0x2aaa1f(0x12f)](_0x304ec4[_0x2aaa1f(0x11c)]);console['log'](_0x533d07['VPLcB']),console[_0x2aaa1f(0x104)](_0x533d07[_0x2aaa1f(0xda)]),console[_0x2aaa1f(0x104)](_0x2aaa1f(0xf4)+_0x6d05ed[_0x2aaa1f(0xe0)][_0x2aaa1f(0xfe)]),console[_0x2aaa1f(0x104)]('\x20\x20grid-profile:\x20'+_0x74c7f1[_0x2aaa1f(0x12d)][_0x2aaa1f(0x10b)]);const _0x3e655a=await _0x533d07['wwLpC'](inputConfirmation,_0x533d07[_0x2aaa1f(0x108)]);(_0x533d07[_0x2aaa1f(0x119)](_0x3e655a,undefined)||_0x533d07[_0x2aaa1f(0x113)](_0x3e655a,null)||!(_0x533d07[_0x2aaa1f(0x113)](_0x3e655a[_0x2aaa1f(0x11b)](),'y')||_0x533d07[_0x2aaa1f(0x103)](_0x3e655a[_0x2aaa1f(0x11b)](),'n')))&&(console[_0x2aaa1f(0xed)](_0x533d07['wQjnn']),await _0x533d07['ESGbt'](sendInstrumentationEvent,_0xa6e03e,_0x533d07[_0x2aaa1f(0x12a)],messageTypes[_0x2aaa1f(0xc7)],_0x533d07['MhjTA'],null,_0xa6e03e),process[_0x2aaa1f(0x105)](0x1));_0x533d07[_0x2aaa1f(0x10c)](_0x3e655a[_0x2aaa1f(0x11b)](),'n')&&process[_0x2aaa1f(0x105)](0x0);console['log'](_0x533d07[_0x2aaa1f(0x106)]);const _0x4de148=_0x74c7f1['list']['length'];for(let _0xba90f0=0x0;_0x533d07['wgBic'](_0xba90f0,_0x4de148);_0xba90f0+=0x1){console['log']('['+_0x533d07[_0x2aaa1f(0x130)](_0xba90f0,0x1)+']\x20'+_0x74c7f1[_0x2aaa1f(0x123)][_0xba90f0][_0x2aaa1f(0x10b)]);}const _0x2db438=await _0x533d07[_0x2aaa1f(0xec)](inputConfirmation,_0x533d07[_0x2aaa1f(0x116)]),_0x45e0be=_0x533d07[_0x2aaa1f(0xd4)](Number,_0x2db438);(_0x533d07['wwLpC'](isNaN,_0x45e0be)||_0x533d07['HAvYL'](_0x45e0be,0x0)||_0x533d07[_0x2aaa1f(0x112)](_0x45e0be,_0x4de148))&&(console[_0x2aaa1f(0xed)](_0x533d07[_0x2aaa1f(0xeb)]),await _0x533d07['QUrSw'](sendInstrumentationEvent,_0xa6e03e,_0x533d07[_0x2aaa1f(0x12a)],messageTypes[_0x2aaa1f(0xc7)],_0x533d07[_0x2aaa1f(0x10d)],null,_0xa6e03e),process[_0x2aaa1f(0x105)](0x1));_0x533d07[_0x2aaa1f(0xff)](closeInput);const _0x5dd8a1=_0x74c7f1['list'][_0x533d07['UDJmZ'](_0x45e0be,0x1)]['id'],_0x2e4a31={};_0x2e4a31[_0x2aaa1f(0xfe)]=_0x6d05ed[_0x2aaa1f(0xe0)]['username'],_0x2e4a31['password']=_0x6d05ed[_0x2aaa1f(0xe0)][_0x2aaa1f(0x109)];const _0x3570c3={};_0x3570c3[_0x2aaa1f(0xe9)]=_0x5dd8a1;const _0x5720e7={};_0x5720e7[_0x2aaa1f(0xd8)]=_0x14d068,_0x5720e7[_0x2aaa1f(0x124)]=_0x533d07[_0x2aaa1f(0xcf)],_0x5720e7[_0x2aaa1f(0xfc)]=_0x2e4a31,_0x5720e7[_0x2aaa1f(0x11c)]=_0x3570c3,_0x5720e7[_0x2aaa1f(0xde)]=!![];const _0x246d90=_0x5720e7,_0x390428=await _0x533d07[_0x2aaa1f(0xd0)](promisifiedRequest,_0x246d90);_0x533d07[_0x2aaa1f(0xfd)](_0x390428,null)&&_0x533d07[_0x2aaa1f(0xc6)](_0x390428,undefined)&&_0x533d07[_0x2aaa1f(0x12e)](_0x390428[_0x2aaa1f(0xd7)],0xc8)&&(console[_0x2aaa1f(0x104)](_0x533d07[_0x2aaa1f(0x110)]),process['exit'](0x0)),_0x533d07[_0x2aaa1f(0xd6)](_0x390428[_0x2aaa1f(0xd7)],0x191)&&(console['error'](_0x2aaa1f(0xf5)),await _0x533d07[_0x2aaa1f(0x12c)](sendInstrumentationEvent,_0xa6e03e,_0x533d07['KRpjq'],messageTypes[_0x2aaa1f(0xc7)],_0x533d07[_0x2aaa1f(0x128)],null,_0xa6e03e),process[_0x2aaa1f(0x105)](0x1)),console[_0x2aaa1f(0xed)](_0x2aaa1f(0x10a)+JSON[_0x2aaa1f(0x102)](_0x390428)),await _0x533d07[_0x2aaa1f(0x10f)](sendInstrumentationEvent,_0xa6e03e,_0x533d07['KRpjq'],messageTypes['ERROR'],_0x533d07[_0x2aaa1f(0xdd)],_0x390428,_0xa6e03e),process['exit'](0x1);}_0x533d07[_0x2aaa1f(0x10c)](_0x304ec4[_0x2aaa1f(0xd7)],0x191)&&(console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x533d07[_0x2aaa1f(0x120)](sendInstrumentationEvent,_0xa6e03e,_0x533d07[_0x2aaa1f(0x12a)],messageTypes[_0x2aaa1f(0xc7)],_0x533d07[_0x2aaa1f(0x128)],null,_0xa6e03e),process[_0x2aaa1f(0x105)](0x1)),console[_0x2aaa1f(0xed)](_0x2aaa1f(0x12b)+JSON['stringify'](_0x304ec4)),await _0x533d07[_0x2aaa1f(0x117)](sendInstrumentationEvent,_0xa6e03e,_0x533d07[_0x2aaa1f(0x12a)],messageTypes[_0x2aaa1f(0xc7)],_0x533d07[_0x2aaa1f(0xdd)],_0x304ec4,_0xa6e03e),process[_0x2aaa1f(0x105)](0x1);}catch(_0x3cf3c8){console[_0x2aaa1f(0xed)](_0x2aaa1f(0xdf)+_0x3cf3c8[_0x2aaa1f(0xf2)]),await _0x533d07[_0x2aaa1f(0x10f)](sendInstrumentationEvent,_0xa6e03e,_0x533d07['KRpjq'],messageTypes[_0x2aaa1f(0xc7)],_0x533d07[_0x2aaa1f(0xe4)],_0x3cf3c8,_0xa6e03e),process[_0x2aaa1f(0x105)](0x1);}};
1
+ const a6_0x433faa=a6_0x2bd4;function a6_0x2bd4(_0x46c0c5,_0x4447c1){const _0x4d02d6=a6_0x4d02();return a6_0x2bd4=function(_0x2bd459,_0xc4c202){_0x2bd459=_0x2bd459-0x1a9;let _0x4e78aa=_0x4d02d6[_0x2bd459];return _0x4e78aa;},a6_0x2bd4(_0x46c0c5,_0x4447c1);}function a6_0x4d02(){const _0x574ca0=['stringify','log','uPnDp','fTjRp','profileId','cgphn','list','\x20\x20username:\x20','toLowerCase','gQRis','2867408MULBFb','ESypW','ERROR','exit','https://','aYROD','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','NSOdQ','cHFUI','../utils/utilityMethods','qGeDa','NRojw','handler','error','method','iYtRo','/packages/cli/configure','RDpMx','rDGSS','CmUrt','28qGMDnZ','xAKxu','url','../config/constants','Updated\x20default\x20Grid\x20Profile\x20successfully','ajDRn','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','statusCode','promisify','sKhLs','UoXfy','invalid-selection','uuid','username','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','BgZwR','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','WaRmd','configure','uXYfZ','JwQTU','unauthorised','1750XTzcVh','auth','LysJo','9frvBuT','VbiFs','active','Browserstack','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','body','pAUcG','RSDPT','INFO','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','1496648bPDASv','password','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','JSSXG','readFileSync','7871170QVdFtg','WCvCE','server-error','sMHqG','../utils/userInput','argv','sFWbD','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','NTVCB','GET','init-not-called','tbxJG','QpvIU','name','1524970nsxfaq','core:','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','length','3107886ofAtNV','KEhgD','\x20\x20grid-profile:\x20','invalid-input','recommendCommands','1811732FQdcuz','23958GLbwCg','configure-called','builder','UwrpN','parse','json','existsSync'];a6_0x4d02=function(){return _0x574ca0;};return a6_0x4d02();}(function(_0x3a410f,_0x49e46f){const _0x21a431=a6_0x2bd4,_0x448350=_0x3a410f();while(!![]){try{const _0x3b5464=-parseInt(_0x21a431(0x204))/0x1+parseInt(_0x21a431(0x1fb))/0x2+parseInt(_0x21a431(0x1de))/0x3*(parseInt(_0x21a431(0x1e8))/0x4)+-parseInt(_0x21a431(0x1ed))/0x5+parseInt(_0x21a431(0x1ff))/0x6+-parseInt(_0x21a431(0x1c5))/0x7*(-parseInt(_0x21a431(0x1b1))/0x8)+parseInt(_0x21a431(0x205))/0x9*(parseInt(_0x21a431(0x1db))/0xa);if(_0x3b5464===_0x49e46f)break;else _0x448350['push'](_0x448350['shift']());}catch(_0x28a486){_0x448350['push'](_0x448350['shift']());}}}(a6_0x4d02,0xdfc3c));const fs=require('fs'),util=require('util'),request=require('request'),{v4:uuidv4}=require(a6_0x433faa(0x1d1)),{inputConfirmation,closeInput}=require(a6_0x433faa(0x1f1)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a6_0x433faa(0x1c8)),{getCredentialsPath}=require(a6_0x433faa(0x1ba)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util[a6_0x433faa(0x1cd)](request);exports['command']=a6_0x433faa(0x1d7),exports['desc']=a6_0x433faa(0x1d3),exports[a6_0x433faa(0x207)]=function(_0x160377){const _0x1a89ad=a6_0x433faa,_0x274596={};_0x274596['CmUrt']='help';const _0x4dbfce=_0x274596;return _0x160377['usage'](HELP_HEADER_MESSAGE['configure'])['epilogue'](HELP_FOOTER_MESSAGE)['help'](_0x4dbfce[_0x1a89ad(0x1c4)])[_0x1a89ad(0x203)]()['strict']()[_0x1a89ad(0x1f2)];},exports[a6_0x433faa(0x1bd)]=async function(_0x15123b){const _0x44f852=a6_0x433faa,_0x3b28d6={'WCvCE':function(_0x18693b){return _0x18693b();},'KEhgD':_0x44f852(0x1b7),'Eevdi':function(_0x4b8dec,_0x1d1fce,_0x393e09,_0xd843b,_0x293004,_0x3e0859,_0x418b36){return _0x4b8dec(_0x1d1fce,_0x393e09,_0xd843b,_0x293004,_0x3e0859,_0x418b36);},'NSOdQ':_0x44f852(0x206),'iYtRo':_0x44f852(0x1f7),'ESypW':function(_0x2a47b2,_0x8c0fc1,_0x162cd8,_0x573eaf,_0x1e04d6,_0x26c07b,_0x9f4f98){return _0x2a47b2(_0x8c0fc1,_0x162cd8,_0x573eaf,_0x1e04d6,_0x26c07b,_0x9f4f98);},'JSSXG':function(_0x3c3c75){return _0x3c3c75();},'XXmup':_0x44f852(0x1f6),'uXYfZ':function(_0x1a370e,_0xc83e6b){return _0x1a370e(_0xc83e6b);},'UoXfy':function(_0x247c2e,_0x4aba1e){return _0x247c2e!==_0x4aba1e;},'gQRis':function(_0x4adf1a,_0x4bba39){return _0x4adf1a===_0x4bba39;},'TQATY':_0x44f852(0x1ea),'QpvIU':_0x44f852(0x1fc),'aYROD':'Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','RVkZd':function(_0x2fe7ba,_0x153787){return _0x2fe7ba===_0x153787;},'sMHqG':function(_0x5962f2,_0xb2fb28){return _0x5962f2===_0xb2fb28;},'hJPnF':function(_0x570560,_0x3b610e){return _0x570560===_0x3b610e;},'NRojw':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','rDGSS':function(_0x114f00,_0x4df57a,_0x1ee02b,_0x32c92b,_0x4b47f3,_0x5bf050,_0x39ad1b){return _0x114f00(_0x4df57a,_0x1ee02b,_0x32c92b,_0x4b47f3,_0x5bf050,_0x39ad1b);},'Phdoo':_0x44f852(0x202),'JwQTU':_0x44f852(0x1cb),'VbiFs':function(_0x10b0c3,_0x4e4b60){return _0x10b0c3<_0x4e4b60;},'fzbEW':function(_0x51d11b,_0xddbbf1){return _0x51d11b+_0xddbbf1;},'RDpMx':function(_0x4b64a6,_0x5d163b){return _0x4b64a6(_0x5d163b);},'tbxJG':_0x44f852(0x1e7),'BgZwR':function(_0x4aa8c2,_0x41614d){return _0x4aa8c2(_0x41614d);},'sKhLs':function(_0x3b9dd1,_0x462dca){return _0x3b9dd1(_0x462dca);},'sFWbD':function(_0x709090,_0x260008){return _0x709090<=_0x260008;},'pAUcG':function(_0x9f2c80,_0x178038){return _0x9f2c80>_0x178038;},'qRNOg':function(_0x53780c,_0x1c0069,_0x3a8815,_0x582276,_0x199e24,_0x2ac28e,_0x1e1e4f){return _0x53780c(_0x1c0069,_0x3a8815,_0x582276,_0x199e24,_0x2ac28e,_0x1e1e4f);},'xAKxu':_0x44f852(0x1d0),'VmXuw':function(_0x52fd94){return _0x52fd94();},'LysJo':function(_0x2e4ec2,_0x599394){return _0x2e4ec2-_0x599394;},'cgphn':'PUT','NTVCB':function(_0x57ed2a,_0x357b6f){return _0x57ed2a(_0x357b6f);},'UwrpN':function(_0x43ec10,_0x29b7ad){return _0x43ec10!==_0x29b7ad;},'qGeDa':_0x44f852(0x1c9),'RSDPT':_0x44f852(0x1da),'WaRmd':_0x44f852(0x1ef),'ajDRn':function(_0x1078ce,_0x2d855c){return _0x1078ce===_0x2d855c;},'fTjRp':function(_0x2f950c,_0x114f6e,_0x2f0ba4,_0x210867,_0x53b0a7,_0x13525c,_0x4633be){return _0x2f950c(_0x114f6e,_0x2f0ba4,_0x210867,_0x53b0a7,_0x13525c,_0x4633be);},'uPnDp':function(_0x357d0e,_0x667a27,_0x3ecd87,_0x53095e,_0x348abe,_0x2aa5db,_0x51c0f8){return _0x357d0e(_0x667a27,_0x3ecd87,_0x53095e,_0x348abe,_0x2aa5db,_0x51c0f8);},'cHFUI':'unknown-error'};try{global_registry['requestId']=_0x3b28d6[_0x44f852(0x1ee)](uuidv4);const _0x1de1e2=_0x44f852(0x1b5)+AG_API_URL+_0x44f852(0x1c1);!fs[_0x44f852(0x20b)](_0x3b28d6['WCvCE'](getCredentialsPath))&&(console[_0x44f852(0x1be)](_0x3b28d6[_0x44f852(0x200)]),await _0x3b28d6['Eevdi'](sendInstrumentationEvent,_0x15123b,_0x3b28d6[_0x44f852(0x1b8)],messageTypes[_0x44f852(0x1b3)],_0x3b28d6[_0x44f852(0x1c0)],null,_0x15123b),process['exit'](0x1));await _0x3b28d6[_0x44f852(0x1b2)](sendInstrumentationEvent,_0x15123b,_0x3b28d6['NSOdQ'],messageTypes[_0x44f852(0x1e6)],null,null,_0x15123b);const _0x510036=JSON[_0x44f852(0x209)](fs[_0x44f852(0x1ec)](_0x3b28d6[_0x44f852(0x1eb)](getCredentialsPath))),_0x409935={};_0x409935[_0x44f852(0x1d2)]=_0x510036[_0x44f852(0x1e1)][_0x44f852(0x1d2)],_0x409935[_0x44f852(0x1e9)]=_0x510036[_0x44f852(0x1e1)][_0x44f852(0x1e9)];const _0x2e7b06={};_0x2e7b06['url']=_0x1de1e2,_0x2e7b06[_0x44f852(0x1bf)]=_0x3b28d6['XXmup'],_0x2e7b06[_0x44f852(0x1dc)]=_0x409935;const _0x174289=_0x2e7b06,_0x5e14a0=await _0x3b28d6[_0x44f852(0x1d8)](promisifiedRequest,_0x174289);if(_0x3b28d6[_0x44f852(0x1cf)](_0x5e14a0,null)&&_0x3b28d6[_0x44f852(0x1cf)](_0x5e14a0,undefined)&&_0x3b28d6['gQRis'](_0x5e14a0[_0x44f852(0x1cc)],0xc8)){const _0x2f4de6=JSON[_0x44f852(0x209)](_0x5e14a0[_0x44f852(0x1e3)]);console[_0x44f852(0x20d)](_0x3b28d6['TQATY']),console['log'](_0x3b28d6[_0x44f852(0x1f9)]),console['log'](_0x44f852(0x1ae)+_0x510036[_0x44f852(0x1e1)][_0x44f852(0x1d2)]),console[_0x44f852(0x20d)](_0x44f852(0x201)+_0x2f4de6[_0x44f852(0x1e0)][_0x44f852(0x1fa)]);const _0x204993=await _0x3b28d6[_0x44f852(0x1d8)](inputConfirmation,_0x3b28d6[_0x44f852(0x1b6)]);(_0x3b28d6[_0x44f852(0x1b0)](_0x204993,undefined)||_0x3b28d6['RVkZd'](_0x204993,null)||!(_0x3b28d6[_0x44f852(0x1f0)](_0x204993[_0x44f852(0x1af)](),'y')||_0x3b28d6['hJPnF'](_0x204993[_0x44f852(0x1af)](),'n')))&&(console[_0x44f852(0x1be)](_0x3b28d6[_0x44f852(0x1bc)]),await _0x3b28d6['rDGSS'](sendInstrumentationEvent,_0x15123b,_0x3b28d6[_0x44f852(0x1b8)],messageTypes[_0x44f852(0x1b3)],_0x3b28d6['Phdoo'],null,_0x15123b),process[_0x44f852(0x1b4)](0x1));_0x3b28d6[_0x44f852(0x1b0)](_0x204993[_0x44f852(0x1af)](),'n')&&process[_0x44f852(0x1b4)](0x0);console[_0x44f852(0x20d)](_0x3b28d6[_0x44f852(0x1d9)]);const _0x3f0f74=_0x2f4de6[_0x44f852(0x1ad)][_0x44f852(0x1fe)];for(let _0x262170=0x0;_0x3b28d6[_0x44f852(0x1df)](_0x262170,_0x3f0f74);_0x262170+=0x1){console[_0x44f852(0x20d)]('['+_0x3b28d6['fzbEW'](_0x262170,0x1)+']\x20'+_0x2f4de6[_0x44f852(0x1ad)][_0x262170][_0x44f852(0x1fa)]);}const _0x56dffb=await _0x3b28d6[_0x44f852(0x1c2)](inputConfirmation,_0x3b28d6[_0x44f852(0x1f8)]),_0xfc2d5e=_0x3b28d6[_0x44f852(0x1d4)](Number,_0x56dffb);(_0x3b28d6[_0x44f852(0x1ce)](isNaN,_0xfc2d5e)||_0x3b28d6[_0x44f852(0x1f3)](_0xfc2d5e,0x0)||_0x3b28d6[_0x44f852(0x1e4)](_0xfc2d5e,_0x3f0f74))&&(console[_0x44f852(0x1be)](_0x3b28d6[_0x44f852(0x1bc)]),await _0x3b28d6['qRNOg'](sendInstrumentationEvent,_0x15123b,_0x3b28d6[_0x44f852(0x1b8)],messageTypes[_0x44f852(0x1b3)],_0x3b28d6[_0x44f852(0x1c6)],null,_0x15123b),process[_0x44f852(0x1b4)](0x1));_0x3b28d6['VmXuw'](closeInput);const _0x2ad132=_0x2f4de6['list'][_0x3b28d6[_0x44f852(0x1dd)](_0xfc2d5e,0x1)]['id'],_0x522f92={};_0x522f92[_0x44f852(0x1d2)]=_0x510036['Browserstack'][_0x44f852(0x1d2)],_0x522f92[_0x44f852(0x1e9)]=_0x510036[_0x44f852(0x1e1)][_0x44f852(0x1e9)];const _0x42afb1={};_0x42afb1[_0x44f852(0x1ab)]=_0x2ad132;const _0x2dac59={};_0x2dac59[_0x44f852(0x1c7)]=_0x1de1e2,_0x2dac59[_0x44f852(0x1bf)]=_0x3b28d6[_0x44f852(0x1ac)],_0x2dac59[_0x44f852(0x1dc)]=_0x522f92,_0x2dac59[_0x44f852(0x1e3)]=_0x42afb1,_0x2dac59[_0x44f852(0x20a)]=!![];const _0x443fb9=_0x2dac59,_0x386f17=await _0x3b28d6[_0x44f852(0x1f5)](promisifiedRequest,_0x443fb9);_0x3b28d6[_0x44f852(0x208)](_0x386f17,null)&&_0x3b28d6[_0x44f852(0x208)](_0x386f17,undefined)&&_0x3b28d6['RVkZd'](_0x386f17['statusCode'],0xc8)&&(console['log'](_0x3b28d6[_0x44f852(0x1bb)]),process[_0x44f852(0x1b4)](0x0)),_0x3b28d6['hJPnF'](_0x386f17['statusCode'],0x191)&&(console[_0x44f852(0x1be)](_0x44f852(0x1e2)),await _0x3b28d6['qRNOg'](sendInstrumentationEvent,_0x15123b,_0x3b28d6['NSOdQ'],messageTypes['ERROR'],_0x3b28d6['RSDPT'],null,_0x15123b),process[_0x44f852(0x1b4)](0x1)),console[_0x44f852(0x1be)](_0x44f852(0x1d5)+JSON[_0x44f852(0x20c)](_0x386f17)),await _0x3b28d6[_0x44f852(0x1c3)](sendInstrumentationEvent,_0x15123b,_0x3b28d6[_0x44f852(0x1b8)],messageTypes[_0x44f852(0x1b3)],_0x3b28d6[_0x44f852(0x1d6)],_0x386f17,_0x15123b),process[_0x44f852(0x1b4)](0x1);}_0x3b28d6[_0x44f852(0x1ca)](_0x5e14a0[_0x44f852(0x1cc)],0x191)&&(console[_0x44f852(0x1be)](_0x44f852(0x1fd)),await _0x3b28d6[_0x44f852(0x1aa)](sendInstrumentationEvent,_0x15123b,_0x3b28d6['NSOdQ'],messageTypes['ERROR'],_0x3b28d6[_0x44f852(0x1e5)],null,_0x15123b),process['exit'](0x1)),console['error'](_0x44f852(0x1f4)+JSON['stringify'](_0x5e14a0)),await _0x3b28d6[_0x44f852(0x1a9)](sendInstrumentationEvent,_0x15123b,_0x3b28d6[_0x44f852(0x1b8)],messageTypes['ERROR'],_0x3b28d6[_0x44f852(0x1d6)],_0x5e14a0,_0x15123b),process[_0x44f852(0x1b4)](0x1);}catch(_0x5231e7){console[_0x44f852(0x1be)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x5231e7['stack']),await _0x3b28d6[_0x44f852(0x1a9)](sendInstrumentationEvent,_0x15123b,_0x3b28d6[_0x44f852(0x1b8)],messageTypes['ERROR'],_0x3b28d6[_0x44f852(0x1b9)],_0x5231e7,_0x15123b),process[_0x44f852(0x1b4)](0x1);}};
@@ -1 +1 @@
1
- const a7_0x18028a=a7_0x45fe;(function(_0x130131,_0x1c791a){const _0x363a11=a7_0x45fe,_0x2d9494=_0x130131();while(!![]){try{const _0x30d736=parseInt(_0x363a11(0xb3))/0x1*(parseInt(_0x363a11(0xad))/0x2)+parseInt(_0x363a11(0xba))/0x3*(parseInt(_0x363a11(0xab))/0x4)+-parseInt(_0x363a11(0xa7))/0x5+parseInt(_0x363a11(0xb5))/0x6+-parseInt(_0x363a11(0xb2))/0x7*(-parseInt(_0x363a11(0xb7))/0x8)+-parseInt(_0x363a11(0xb9))/0x9*(parseInt(_0x363a11(0xb4))/0xa)+parseInt(_0x363a11(0xaa))/0xb;if(_0x30d736===_0x1c791a)break;else _0x2d9494['push'](_0x2d9494['shift']());}catch(_0x270ba8){_0x2d9494['push'](_0x2d9494['shift']());}}}(a7_0x1419,0x2e641));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x18028a(0xbd));exports[a7_0x18028a(0xb8)]=a7_0x18028a(0xb1),exports[a7_0x18028a(0xaf)]=a7_0x18028a(0xbe),exports[a7_0x18028a(0xa4)]=function(_0x1fc0bc){const _0x5a4095=a7_0x18028a,_0x481928={};_0x481928[_0x5a4095(0xb0)]=_0x5a4095(0xa9),_0x481928[_0x5a4095(0xbc)]=_0x5a4095(0xa6);const _0x3d71d5=_0x481928;return _0x1fc0bc[_0x5a4095(0xae)](HELP_HEADER_MESSAGE[_0x5a4095(0xb1)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x5a4095(0xbb)](_0x3d71d5[_0x5a4095(0xb0)])[_0x5a4095(0xac)]()[_0x5a4095(0xa8)]()[_0x5a4095(0xb6)]()[_0x5a4095(0xa6)](_0x3d71d5[_0x5a4095(0xbc)]);},exports[a7_0x18028a(0xa5)]=function(_0x3e18e6){};function a7_0x45fe(_0x139214,_0x162cd5){const _0x1419e7=a7_0x1419();return a7_0x45fe=function(_0x45fe9f,_0x377ba4){_0x45fe9f=_0x45fe9f-0xa4;let _0x925c48=_0x1419e7[_0x45fe9f];return _0x925c48;},a7_0x45fe(_0x139214,_0x162cd5);}function a7_0x1419(){const _0x11a250=['recommendCommands','connect_commands','320837qUIfvB','11112JIZEUI','demandCommand','31538RfczwB','usage','desc','ZsKWI','connect','18347UkyUVD','5dywpSA','10arHcbk','1706658mjdDQb','strict','232eUlExK','command','1482444eprtfb','12MQtIxZ','commandDir','qFskX','../config/constants','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','builder','handler','help','624215bewvWJ'];a7_0x1419=function(){return _0x11a250;};return a7_0x1419();}
1
+ const a7_0x5d98f4=a7_0x2a70;function a7_0x2a70(_0x30020e,_0x21ae4c){const _0x5b21b0=a7_0x5b21();return a7_0x2a70=function(_0x2a7042,_0x4e61ab){_0x2a7042=_0x2a7042-0x1b8;let _0x1541b3=_0x5b21b0[_0x2a7042];return _0x1541b3;},a7_0x2a70(_0x30020e,_0x21ae4c);}function a7_0x5b21(){const _0x3df6f0=['usage','desc','hfSRp','commandDir','12nAmnIR','recommendCommands','720347oBYHUw','builder','help','10465776dAubwO','connect_commands','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','2480442mdEUKZ','connect','MGCRm','../config/constants','2189695fubuSh','2064881NbYsnw','1054484tociVB','811204GyGEwb','strict','demandCommand'];a7_0x5b21=function(){return _0x3df6f0;};return a7_0x5b21();}(function(_0x551a7f,_0x452005){const _0x6cda30=a7_0x2a70,_0x119756=_0x551a7f();while(!![]){try{const _0x18f516=parseInt(_0x6cda30(0x1ca))/0x1+parseInt(_0x6cda30(0x1c0))/0x2+-parseInt(_0x6cda30(0x1ba))/0x3+-parseInt(_0x6cda30(0x1c1))/0x4+-parseInt(_0x6cda30(0x1be))/0x5+parseInt(_0x6cda30(0x1c8))/0x6*(-parseInt(_0x6cda30(0x1bf))/0x7)+parseInt(_0x6cda30(0x1cd))/0x8;if(_0x18f516===_0x452005)break;else _0x119756['push'](_0x119756['shift']());}catch(_0x8531f8){_0x119756['push'](_0x119756['shift']());}}}(a7_0x5b21,0x79a73));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x5d98f4(0x1bd));exports['command']=a7_0x5d98f4(0x1bb),exports[a7_0x5d98f4(0x1c5)]=a7_0x5d98f4(0x1b9),exports[a7_0x5d98f4(0x1cb)]=function(_0x402bc8){const _0x24f12c=a7_0x5d98f4,_0x4be1c6={};_0x4be1c6[_0x24f12c(0x1bc)]=_0x24f12c(0x1b8),_0x4be1c6[_0x24f12c(0x1c6)]='help';const _0x28f578=_0x4be1c6;return _0x402bc8[_0x24f12c(0x1c4)](HELP_HEADER_MESSAGE[_0x24f12c(0x1bb)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x24f12c(0x1c7)](_0x28f578[_0x24f12c(0x1bc)])[_0x24f12c(0x1c3)]()[_0x24f12c(0x1c9)]()[_0x24f12c(0x1c2)]()[_0x24f12c(0x1cc)](_0x28f578['hfSRp']);},exports['handler']=function(_0x250c9){};
@@ -1 +1 @@
1
- function a8_0x3128(_0x382adf,_0x5c6710){const _0x2732e5=a8_0x2732();return a8_0x3128=function(_0x312864,_0x138c63){_0x312864=_0x312864-0x155;let _0x5d72e9=_0x2732e5[_0x312864];return _0x5d72e9;},a8_0x3128(_0x382adf,_0x5c6710);}const a8_0x772cf1=a8_0x3128;(function(_0x305d75,_0x79975c){const _0x3ea2f8=a8_0x3128,_0x108f27=_0x305d75();while(!![]){try{const _0x2bc522=parseInt(_0x3ea2f8(0x1a6))/0x1*(-parseInt(_0x3ea2f8(0x185))/0x2)+parseInt(_0x3ea2f8(0x156))/0x3+-parseInt(_0x3ea2f8(0x155))/0x4+parseInt(_0x3ea2f8(0x157))/0x5+parseInt(_0x3ea2f8(0x183))/0x6*(-parseInt(_0x3ea2f8(0x196))/0x7)+-parseInt(_0x3ea2f8(0x18a))/0x8*(-parseInt(_0x3ea2f8(0x18d))/0x9)+parseInt(_0x3ea2f8(0x181))/0xa*(-parseInt(_0x3ea2f8(0x177))/0xb);if(_0x2bc522===_0x79975c)break;else _0x108f27['push'](_0x108f27['shift']());}catch(_0x13733b){_0x108f27['push'](_0x108f27['shift']());}}}(a8_0x2732,0x21dd2));function a8_0x2732(){const _0x6a3217=['argv','lTbEj','nvTcL','SVHPF','useStaging','info','beforeExit','CsXAR','DBvtm','epilogue','description','842288lYRLwC','765228nwEBLC','1374275LFDPHS','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','DEGRz','ULeOA','NGoKM','command','mgjrM','XPqUe','FUyFR','btkcW','Nsxgv','advanceOptions','EwyxM','RxpIx','XYhsG','options','customRepeaters','TFUEd','browserStackLocalOptions','Advance\x20options\x20for\x20Browserstack\x20Local','rZrJH','type','../../utils/utilityMethods','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','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.','gwubu','error','usage','dBJZL','exit','isRunning','bstackUsername','3469015KCXMxV','Grid\x20type:\x20Trial','PdCiY','XxGOC','desc','SIGTERM','advance-options','PpoDP','dqsll','string','10OtglLB','../../config/constants','18NzmAis','IQtuo','4VRjhoR','create','bstack-username','stHIh','VmXqe','1537144Mypcvi','uMxhn','ioeUS','9MQnnfg','true','help','NLCwo','use-staging','ktgiy','vVtlf','handler','psvTL','15603ILDkOP','ONLfJ','rlkde','hzqaN','EGQhy','kNPec','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','BGlSJ','ZtjbE','demandOption','bPxII','jZDCR','GUFUY','BAWIH','25372Aedspv','accessKey','grid-id','mXfhY','vnRxv','ZonKf','builder','iSqsm','HxKfW','bstack-accesskey','Pass\x20the\x20ID\x20of\x20the\x20Grid','gGdBY','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','JMKGS','bstackAccesskey'];a8_0x2732=function(){return _0x6a3217;};return a8_0x2732();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x772cf1(0x182)),{logger}=require('../../config/logger'),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a8_0x772cf1(0x16d));exports[a8_0x772cf1(0x15c)]='grid',exports[a8_0x772cf1(0x17b)]='This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC',exports[a8_0x772cf1(0x1ac)]=_0xf3654e=>{const _0x55277b=a8_0x772cf1,_0x207682={};_0x207682[_0x55277b(0x18b)]=_0x55277b(0x16e),_0x207682['EwyxM']=_0x55277b(0x180),_0x207682[_0x55277b(0x195)]=_0x55277b(0x158),_0x207682['HxKfW']=_0x55277b(0x1b0),_0x207682[_0x55277b(0x1a0)]=_0x55277b(0x1b2),_0x207682[_0x55277b(0x18c)]=_0x55277b(0x16a),_0x207682['btkcW']='help';const _0x1cb27a=_0x207682,_0x3caf6e={};_0x3caf6e[_0x55277b(0x1bf)]=_0x1cb27a[_0x55277b(0x18b)],_0x3caf6e[_0x55277b(0x16c)]=_0x1cb27a[_0x55277b(0x163)];const _0x437c15={};_0x437c15[_0x55277b(0x1bf)]=_0x1cb27a[_0x55277b(0x195)],_0x437c15['type']=_0x1cb27a[_0x55277b(0x163)];const _0x12fa9c={};_0x12fa9c[_0x55277b(0x1a1)]=!![],_0x12fa9c['description']=_0x1cb27a[_0x55277b(0x1ae)],_0x12fa9c[_0x55277b(0x16c)]=_0x1cb27a[_0x55277b(0x163)];const _0x4804bb={};_0x4804bb[_0x55277b(0x1bf)]=_0x1cb27a[_0x55277b(0x1a0)],_0x4804bb[_0x55277b(0x16c)]=_0x1cb27a[_0x55277b(0x163)];const _0x3d663d={};_0x3d663d[_0x55277b(0x1bf)]=_0x1cb27a[_0x55277b(0x18c)],_0x3d663d['type']=_0x1cb27a[_0x55277b(0x163)];const _0x2ba927={};return _0x2ba927[_0x55277b(0x187)]=_0x3caf6e,_0x2ba927[_0x55277b(0x1af)]=_0x437c15,_0x2ba927[_0x55277b(0x1a8)]=_0x12fa9c,_0x2ba927[_0x55277b(0x191)]=_0x4804bb,_0x2ba927[_0x55277b(0x17d)]=_0x3d663d,_0xf3654e[_0x55277b(0x172)](HELP_HEADER_MESSAGE[_0x55277b(0x186)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x2ba927)[_0x55277b(0x18f)](_0x1cb27a[_0x55277b(0x160)])[_0x55277b(0x1b5)];},exports[a8_0x772cf1(0x194)]=async _0x52f754=>{const _0xfb4604=a8_0x772cf1,_0x2baf67={'nvTcL':function(_0x2bbdc7,_0x18d216){return _0x2bbdc7(_0x18d216);},'SVHPF':function(_0x462f39,_0x2165cb){return _0x462f39!==_0x2165cb;},'FUyFR':'kIzNf','PpoDP':function(_0x957bb0,_0x189d2f){return _0x957bb0==_0x189d2f;},'BAWIH':function(_0x407702,_0x379b8b){return _0x407702(_0x379b8b);},'dqsll':_0xfb4604(0x1bb),'IQtuo':'SIGINT','DEGRz':_0xfb4604(0x17c),'NLCwo':function(_0xb3bd4c,_0x221239){return _0xb3bd4c==_0x221239;},'mXfhY':function(_0x41e1f3,_0x38e0bf){return _0x41e1f3(_0x38e0bf);},'PdCiY':function(_0x42583a,_0x446078){return _0x42583a===_0x446078;},'stHIh':_0xfb4604(0x1b6),'nsesW':_0xfb4604(0x1b3),'WmFdQ':function(_0x33874e,_0x118aaf){return _0x33874e(_0x118aaf);},'CsXAR':_0xfb4604(0x16e),'DBvtm':_0xfb4604(0x180),'ktgiy':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','XPqUe':'Pass\x20the\x20ID\x20of\x20the\x20Grid','XYhsG':_0xfb4604(0x1b2),'SYSEB':'Advance\x20options\x20for\x20Browserstack\x20Local','iSqsm':_0xfb4604(0x18f),'TFUEd':function(_0x50836d,_0x2c9154){return _0x50836d==_0x2c9154;},'gwubu':function(_0x7d9b6,_0x132825){return _0x7d9b6(_0x132825);},'rlkde':function(_0x6031f2,_0x3e2f2a){return _0x6031f2(_0x3e2f2a);},'kqoGc':function(_0x479c0f,_0xecc2cf){return _0x479c0f(_0xecc2cf);},'RxpIx':function(_0x6a17d5,_0x3c1567,_0x367f52){return _0x6a17d5(_0x3c1567,_0x367f52);},'vVtlf':function(_0x52c039,_0x511181){return _0x52c039&&_0x511181;},'ULeOA':function(_0x4deebc,_0x4ad2e4){return _0x4deebc===_0x4ad2e4;},'WaLow':_0xfb4604(0x197),'gGdBY':_0xfb4604(0x189),'XxGOC':function(_0x44609c,_0x1a6933){return _0x44609c(_0x1a6933);},'kNPec':function(_0x27966e,_0x194162,_0x2ba63f,_0x34e0f9){return _0x27966e(_0x194162,_0x2ba63f,_0x34e0f9);},'Nsxgv':function(_0x96a1ac,_0x5d616d){return _0x96a1ac!==_0x5d616d;},'mgjrM':_0xfb4604(0x1ab),'dBJZL':_0xfb4604(0x18e),'GUFUY':_0xfb4604(0x1a2),'jZDCR':_0xfb4604(0x19f),'NGoKM':'LxYxQ'};let _0x4643a3=_0x52f754[_0xfb4604(0x176)],_0x11d9dd=_0x52f754[_0xfb4604(0x1b4)],_0x17e3dc=_0x52f754[_0xfb4604(0x162)];const _0x420778=_0x599a38=>{const _0x563d6b=_0xfb4604;_0x2baf67[_0x563d6b(0x1b8)](_0x2baf67[_0x563d6b(0x15f)],_0x2baf67[_0x563d6b(0x15f)])?_0x2baf67[_0x563d6b(0x1b7)](_0x37d20f,_0x563d6b(0x19e)):(logger[_0x563d6b(0x171)](_0x599a38),process[_0x563d6b(0x174)](0x1));};[_0x4643a3,_0x11d9dd]=_0x2baf67[_0xfb4604(0x164)](fetchOrUpdateUserConfig,_0x4643a3,_0x11d9dd);if(!_0x2baf67[_0xfb4604(0x193)](_0x4643a3,_0x11d9dd)){if(_0x2baf67[_0xfb4604(0x15a)](_0x2baf67['WaLow'],_0x2baf67[_0xfb4604(0x1b1)])){const _0x5b8745={'vnRxv':function(_0x517faf,_0x39ca4e){return _0x2baf67['PpoDP'](_0x517faf,_0x39ca4e);},'hzqaN':function(_0x2539a8,_0x3136c5){const _0x13190a=_0xfb4604;return _0x2baf67[_0x13190a(0x1b7)](_0x2539a8,_0x3136c5);}},_0x41050f={};_0x41050f[_0xfb4604(0x1a7)]=_0x2988a9,_0x41050f[_0xfb4604(0x167)]=_0xf93bdb[_0xfb4604(0x167)],_0x41050f[_0xfb4604(0x169)]=_0x52a9fd;const _0x519562=_0x41050f,_0x35cfa2=_0x2baf67[_0xfb4604(0x1a5)](_0x5d89f7,_0x519562);let _0x5748f7=0x0;const _0xd2da74=async()=>{const _0x30fe85=_0xfb4604;_0x5748f7++,_0x5b8745[_0x30fe85(0x1aa)](_0x5748f7,0x1)&&_0x35cfa2&&_0x35cfa2[_0x30fe85(0x175)]()&&_0x5b8745[_0x30fe85(0x199)](_0x1ee848,_0x35cfa2);};_0x3322f9['on'](_0x2baf67[_0xfb4604(0x17f)],_0xd2da74),_0x25c72b['on'](_0x2baf67['IQtuo'],_0xd2da74),_0x357bf4['on'](_0x2baf67[_0xfb4604(0x159)],_0xd2da74),_0x174848=_0xfb4604(0x16f),_0x10e1f6[_0xfb4604(0x1ba)](_0x49b718);}else _0x2baf67[_0xfb4604(0x17a)](_0x420778,_0xfb4604(0x19d));}let _0x397069=_0x52f754['gridId'],[_0x119240,_0xe2af4a]=await _0x2baf67[_0xfb4604(0x19b)](getGridDetails,_0x4643a3,_0x11d9dd,_0x397069);!_0xe2af4a&&(_0x2baf67[_0xfb4604(0x161)](_0x2baf67['mgjrM'],_0x2baf67[_0xfb4604(0x15d)])?_0x2baf67[_0xfb4604(0x1a5)](_0x286a31,_0xfb4604(0x19c)):_0x2baf67[_0xfb4604(0x170)](_0x420778,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier'));let _0x1232d0=_0x2baf67[_0xfb4604(0x15a)](_0x52f754[_0xfb4604(0x1b9)],_0x2baf67[_0xfb4604(0x173)])?!![]:![];if(_0xe2af4a&&_0xe2af4a['isTrialGrid']&&_0x1232d0){if(_0x2baf67[_0xfb4604(0x1b8)](_0x2baf67[_0xfb4604(0x1a4)],_0x2baf67[_0xfb4604(0x1a4)]))_0x2baf67[_0xfb4604(0x1a5)](_0x46e15b,_0xfb4604(0x19d));else{logMessage=_0xfb4604(0x178),logger[_0xfb4604(0x1ba)](logMessage);try{if(_0x2baf67[_0xfb4604(0x15a)](_0x2baf67[_0xfb4604(0x1a3)],_0x2baf67[_0xfb4604(0x1a3)])){const _0x58822f={};_0x58822f[_0xfb4604(0x1a7)]=_0x11d9dd,_0x58822f['customRepeaters']=_0xe2af4a['customRepeaters'],_0x58822f[_0xfb4604(0x169)]=_0x17e3dc;const _0x5175ff=_0x58822f,_0x3d92c9=_0x2baf67[_0xfb4604(0x198)](startLocalBinarySync,_0x5175ff);let _0x3ef114=0x0;const _0x1446b4=async()=>{const _0x15851b=_0xfb4604;_0x2baf67[_0x15851b(0x179)](_0x2baf67[_0x15851b(0x188)],_0x2baf67['nsesW'])?(_0x43141a++,_0x2baf67[_0x15851b(0x190)](_0x2fbac9,0x1)&&_0x484f68&&_0x75826c[_0x15851b(0x175)]()&&_0x2baf67[_0x15851b(0x1a9)](_0x5c56cf,_0x5ffb8)):(_0x3ef114++,_0x2baf67[_0x15851b(0x17e)](_0x3ef114,0x1)&&_0x3d92c9&&_0x3d92c9[_0x15851b(0x175)]()&&_0x2baf67['WmFdQ'](stopLocalBinary,_0x3d92c9));};process['on'](_0x2baf67[_0xfb4604(0x17f)],_0x1446b4),process['on'](_0x2baf67[_0xfb4604(0x184)],_0x1446b4),process['on'](_0x2baf67[_0xfb4604(0x159)],_0x1446b4),logMessage=_0xfb4604(0x16f),logger[_0xfb4604(0x1ba)](logMessage);}else{const _0x5c54f7={};_0x5c54f7[_0xfb4604(0x1bf)]=_0x2baf67[_0xfb4604(0x1bc)],_0x5c54f7['type']=_0x2baf67['DBvtm'];const _0x32a17b={};_0x32a17b[_0xfb4604(0x1bf)]=_0x2baf67[_0xfb4604(0x192)],_0x32a17b[_0xfb4604(0x16c)]=_0x2baf67[_0xfb4604(0x1bd)];const _0x434680={};_0x434680[_0xfb4604(0x1a1)]=!![],_0x434680[_0xfb4604(0x1bf)]=_0x2baf67[_0xfb4604(0x15e)],_0x434680['type']=_0x2baf67[_0xfb4604(0x1bd)];const _0x422339={};_0x422339[_0xfb4604(0x1bf)]=_0x2baf67[_0xfb4604(0x165)],_0x422339[_0xfb4604(0x16c)]=_0x2baf67['DBvtm'];const _0x3d3f88={};_0x3d3f88[_0xfb4604(0x1bf)]=_0x2baf67['SYSEB'],_0x3d3f88[_0xfb4604(0x16c)]=_0x2baf67[_0xfb4604(0x1bd)];const _0x53cd9d={};return _0x53cd9d[_0xfb4604(0x187)]=_0x5c54f7,_0x53cd9d[_0xfb4604(0x1af)]=_0x32a17b,_0x53cd9d[_0xfb4604(0x1a8)]=_0x434680,_0x53cd9d['use-staging']=_0x422339,_0x53cd9d[_0xfb4604(0x17d)]=_0x3d3f88,_0x2aca7d[_0xfb4604(0x172)](_0x189471[_0xfb4604(0x186)])[_0xfb4604(0x1be)](_0x5e7667)[_0xfb4604(0x166)](_0x53cd9d)[_0xfb4604(0x18f)](_0x2baf67[_0xfb4604(0x1ad)])[_0xfb4604(0x1b5)];}}catch(_0x1c075e){if(_0x2baf67[_0xfb4604(0x161)](_0x2baf67[_0xfb4604(0x15b)],_0x2baf67['NGoKM'])){const _0x505cd2={'rZrJH':function(_0x322348,_0x2547a3){const _0xaaf9c2=_0xfb4604;return _0x2baf67[_0xaaf9c2(0x168)](_0x322348,_0x2547a3);},'EGQhy':function(_0x3e8c37,_0x2f5d21){const _0x51ea76=_0xfb4604;return _0x2baf67[_0x51ea76(0x170)](_0x3e8c37,_0x2f5d21);}};_0x5df6be=_0xfb4604(0x178),_0x1ed2a3[_0xfb4604(0x1ba)](_0x4c04d8);try{const _0x5bfe84={};_0x5bfe84['accessKey']=_0x9405d8,_0x5bfe84[_0xfb4604(0x167)]=_0x75c148['customRepeaters'],_0x5bfe84[_0xfb4604(0x169)]=_0x3240c1;const _0xfd9e06=_0x5bfe84,_0x25ed9b=_0x2baf67[_0xfb4604(0x198)](_0x224963,_0xfd9e06);let _0x1029b4=0x0;const _0x1ef1b5=async()=>{const _0x5b9230=_0xfb4604;_0x1029b4++,_0x505cd2[_0x5b9230(0x16b)](_0x1029b4,0x1)&&_0x25ed9b&&_0x25ed9b[_0x5b9230(0x175)]()&&_0x505cd2[_0x5b9230(0x19a)](_0x41dabd,_0x25ed9b);};_0x774fea['on'](_0x2baf67[_0xfb4604(0x17f)],_0x1ef1b5),_0x165590['on'](_0x2baf67['IQtuo'],_0x1ef1b5),_0x13d1a7['on'](_0x2baf67['DEGRz'],_0x1ef1b5),_0x5b8689='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.',_0x39d138[_0xfb4604(0x1ba)](_0x266dc7);}catch(_0x2e2735){_0x2baf67['kqoGc'](_0x32cb6b,_0xfb4604(0x19e));}}else _0x2baf67[_0xfb4604(0x17a)](_0x420778,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}}process['exit'](0x0);};
1
+ const a8_0x2b74e2=a8_0x3f9d;(function(_0x3896f8,_0x1fa7e4){const _0x3920d1=a8_0x3f9d,_0x58c282=_0x3896f8();while(!![]){try{const _0x42cdc3=parseInt(_0x3920d1(0x161))/0x1*(parseInt(_0x3920d1(0x165))/0x2)+-parseInt(_0x3920d1(0x154))/0x3+parseInt(_0x3920d1(0x147))/0x4+parseInt(_0x3920d1(0x16f))/0x5+parseInt(_0x3920d1(0x135))/0x6+parseInt(_0x3920d1(0x176))/0x7*(-parseInt(_0x3920d1(0x16d))/0x8)+parseInt(_0x3920d1(0x18d))/0x9*(-parseInt(_0x3920d1(0x12d))/0xa);if(_0x42cdc3===_0x1fa7e4)break;else _0x58c282['push'](_0x58c282['shift']());}catch(_0x55d004){_0x58c282['push'](_0x58c282['shift']());}}}(a8_0x4601,0xf1083));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x2b74e2(0x158)),{logger}=require('../../config/logger'),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a8_0x2b74e2(0x134));function a8_0x4601(){const _0x16b960=['eGstK','beforeExit','grid-id','573616InHSYo','oVWrf','217390oOQxRB','pLXkN','builder','RFGit','yJUvb','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','bstack-username','63QYLPsc','usage','PbnRu','ODoXs','LNsvp','isjIi','isRunning','XqDrq','browserStackLocalOptions','uQGXN','oGCiL','DcnTS','isTrialGrid','PvHmn','true','type','UjvpH','cVWva','handler','ZHANL','info','bstack-accesskey','Grid\x20type:\x20Trial','45gTddUJ','useStaging','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','error','description','tQQif','iDbmv','1669270igQaAh','bstackUsername','VuvZC','pBlEb','customRepeaters','use-staging','LIucs','../../utils/utilityMethods','8719902QQhSCd','Pass\x20the\x20ID\x20of\x20the\x20Grid','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','string','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.','advance-options','SjtQq','help','BWuob','fdcYh','SiaoZ','oQnKg','grid','advanceOptions','MnWoj','cLuot','IADAu','XvyPu','3960736cVxTET','epilogue','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','exit','DANLI','gXlMV','iolAs','SIGINT','hGJpt','BFhjK','xsqPP','jXxtU','dIpko','4844454wQHMAY','Advance\x20options\x20for\x20Browserstack\x20Local','dYmKg','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','../../config/constants','jfpKe','argv','demandOption','IVjYy','KImWq','create','bstackAccesskey','KOemu','1tvwQDY','dlovD','fROUq','accessKey','3190118TqSQjQ','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','options','SIGTERM','hOoQF'];a8_0x4601=function(){return _0x16b960;};return a8_0x4601();}function a8_0x3f9d(_0x12953c,_0x4c07e7){const _0x4601be=a8_0x4601();return a8_0x3f9d=function(_0x3f9df6,_0x2eecf3){_0x3f9df6=_0x3f9df6-0x12d;let _0x16d47b=_0x4601be[_0x3f9df6];return _0x16d47b;},a8_0x3f9d(_0x12953c,_0x4c07e7);}exports['command']=a8_0x2b74e2(0x141),exports['desc']=a8_0x2b74e2(0x166),exports[a8_0x2b74e2(0x171)]=_0x1107bf=>{const _0xec512b=a8_0x2b74e2,_0x113a20={};_0x113a20[_0xec512b(0x16a)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x113a20[_0xec512b(0x153)]=_0xec512b(0x138),_0x113a20[_0xec512b(0x143)]=_0xec512b(0x157),_0x113a20['UrOLo']=_0xec512b(0x136),_0x113a20[_0xec512b(0x17a)]=_0xec512b(0x174),_0x113a20[_0xec512b(0x14f)]=_0xec512b(0x155),_0x113a20[_0xec512b(0x16e)]=_0xec512b(0x13c);const _0x4d756c=_0x113a20,_0x502973={};_0x502973[_0xec512b(0x191)]=_0x4d756c[_0xec512b(0x16a)],_0x502973[_0xec512b(0x185)]=_0x4d756c['dIpko'];const _0x4fbf26={};_0x4fbf26[_0xec512b(0x191)]=_0x4d756c[_0xec512b(0x143)],_0x4fbf26['type']=_0x4d756c['dIpko'];const _0x1f63b5={};_0x1f63b5[_0xec512b(0x15b)]=!![],_0x1f63b5[_0xec512b(0x191)]=_0x4d756c['UrOLo'],_0x1f63b5[_0xec512b(0x185)]=_0x4d756c[_0xec512b(0x153)];const _0x48f191={};_0x48f191[_0xec512b(0x191)]=_0x4d756c[_0xec512b(0x17a)],_0x48f191['type']=_0x4d756c['dIpko'];const _0x45ca9b={};_0x45ca9b[_0xec512b(0x191)]=_0x4d756c[_0xec512b(0x14f)],_0x45ca9b[_0xec512b(0x185)]=_0x4d756c[_0xec512b(0x153)];const _0x485cdd={};return _0x485cdd[_0xec512b(0x175)]=_0x502973,_0x485cdd[_0xec512b(0x18b)]=_0x4fbf26,_0x485cdd[_0xec512b(0x16c)]=_0x1f63b5,_0x485cdd['use-staging']=_0x48f191,_0x485cdd[_0xec512b(0x13a)]=_0x45ca9b,_0x1107bf[_0xec512b(0x177)](HELP_HEADER_MESSAGE[_0xec512b(0x15e)])[_0xec512b(0x148)](HELP_FOOTER_MESSAGE)[_0xec512b(0x167)](_0x485cdd)[_0xec512b(0x13c)](_0x4d756c[_0xec512b(0x16e)])[_0xec512b(0x15a)];},exports[a8_0x2b74e2(0x188)]=async _0x1ff7a8=>{const _0x1345e8=a8_0x2b74e2,_0x958c45={'dYmKg':function(_0x4bded5,_0x120c5e){return _0x4bded5===_0x120c5e;},'iDbmv':_0x1345e8(0x13d),'oQnKg':_0x1345e8(0x172),'SjtQq':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','tQQif':_0x1345e8(0x138),'jXxtU':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','cVWva':_0x1345e8(0x136),'iolAs':_0x1345e8(0x174),'fdcYh':_0x1345e8(0x155),'DcnTS':_0x1345e8(0x13c),'jfpKe':function(_0x55430e,_0x5a3ad9){return _0x55430e(_0x5a3ad9);},'dlovD':function(_0x312d71,_0x32affb){return _0x312d71(_0x32affb);},'yJUvb':function(_0x4facc5,_0x3ea125){return _0x4facc5==_0x3ea125;},'hsYVs':function(_0x186e95,_0x39aa1a){return _0x186e95(_0x39aa1a);},'isjIi':function(_0x396a56,_0x2d475b){return _0x396a56===_0x2d475b;},'DANLI':_0x1345e8(0x130),'hOoQF':_0x1345e8(0x170),'OsLnR':function(_0xd2719d,_0x54d3e9){return _0xd2719d==_0x54d3e9;},'XvyPu':_0x1345e8(0x16b),'ntYuk':_0x1345e8(0x14e),'whiqA':_0x1345e8(0x168),'LIucs':function(_0x5497a4,_0x55c653){return _0x5497a4(_0x55c653);},'RVDzn':function(_0x138293,_0x18bb0e,_0x357fb2){return _0x138293(_0x18bb0e,_0x357fb2);},'oljYx':function(_0xa951f2,_0x23675a){return _0xa951f2&&_0x23675a;},'KImWq':function(_0x5a8efa,_0x2eb5fe){return _0x5a8efa!==_0x2eb5fe;},'gXlMV':_0x1345e8(0x186),'IADAu':function(_0x4b3a1d,_0xfab8da){return _0x4b3a1d(_0xfab8da);},'SiaoZ':function(_0x5c9b89,_0x1f6bec,_0x17a73f,_0x3b9b5c){return _0x5c9b89(_0x1f6bec,_0x17a73f,_0x3b9b5c);},'oGCiL':_0x1345e8(0x189),'cLuot':_0x1345e8(0x151),'ODoXs':function(_0x92cb88,_0x2051ce){return _0x92cb88(_0x2051ce);},'fROUq':function(_0x4f14cf,_0x2f4c32){return _0x4f14cf===_0x2f4c32;},'PvHmn':_0x1345e8(0x184),'KOemu':_0x1345e8(0x178),'IZiGw':function(_0x1bd653,_0x556fd2){return _0x1bd653!==_0x556fd2;},'VuvZC':'jNyBU','XqDrq':function(_0x172705,_0x65ec65){return _0x172705===_0x65ec65;},'wDvMi':_0x1345e8(0x150),'uQGXN':_0x1345e8(0x15c)};let _0x5d0a2b=_0x1ff7a8[_0x1345e8(0x12e)],_0x2f92d8=_0x1ff7a8[_0x1345e8(0x15f)],_0x4684ea=_0x1ff7a8[_0x1345e8(0x142)];const _0x26435e=_0x5df241=>{const _0x457dbb=_0x1345e8;_0x958c45[_0x457dbb(0x156)](_0x958c45[_0x457dbb(0x193)],_0x958c45[_0x457dbb(0x140)])?(_0x1fe2a7[_0x457dbb(0x190)](_0x21b434),_0x46adf7[_0x457dbb(0x14a)](0x1)):(logger[_0x457dbb(0x190)](_0x5df241),process[_0x457dbb(0x14a)](0x1));};[_0x5d0a2b,_0x2f92d8]=_0x958c45['RVDzn'](fetchOrUpdateUserConfig,_0x5d0a2b,_0x2f92d8);if(!_0x958c45['oljYx'](_0x5d0a2b,_0x2f92d8)){if(_0x958c45['KImWq'](_0x958c45[_0x1345e8(0x14c)],_0x958c45[_0x1345e8(0x14c)])){const _0x13f7f6={};_0x13f7f6[_0x1345e8(0x191)]=_0x958c45[_0x1345e8(0x13b)],_0x13f7f6[_0x1345e8(0x185)]=_0x958c45[_0x1345e8(0x192)];const _0x5e5450={};_0x5e5450[_0x1345e8(0x191)]=_0x958c45[_0x1345e8(0x152)],_0x5e5450[_0x1345e8(0x185)]=_0x958c45[_0x1345e8(0x192)];const _0x421caf={};_0x421caf[_0x1345e8(0x15b)]=!![],_0x421caf[_0x1345e8(0x191)]=_0x958c45[_0x1345e8(0x187)],_0x421caf['type']=_0x958c45['tQQif'];const _0x45e82d={};_0x45e82d[_0x1345e8(0x191)]=_0x958c45[_0x1345e8(0x14d)],_0x45e82d[_0x1345e8(0x185)]=_0x958c45['tQQif'];const _0x324a4f={};_0x324a4f['description']=_0x958c45[_0x1345e8(0x13e)],_0x324a4f['type']=_0x958c45[_0x1345e8(0x192)];const _0x59c5fc={};return _0x59c5fc[_0x1345e8(0x175)]=_0x13f7f6,_0x59c5fc[_0x1345e8(0x18b)]=_0x5e5450,_0x59c5fc[_0x1345e8(0x16c)]=_0x421caf,_0x59c5fc[_0x1345e8(0x132)]=_0x45e82d,_0x59c5fc[_0x1345e8(0x13a)]=_0x324a4f,_0x110c5f['usage'](_0x48552e['create'])[_0x1345e8(0x148)](_0xf1f9a4)[_0x1345e8(0x167)](_0x59c5fc)[_0x1345e8(0x13c)](_0x958c45[_0x1345e8(0x181)])[_0x1345e8(0x15a)];}else _0x958c45[_0x1345e8(0x145)](_0x26435e,_0x1345e8(0x149));}let _0x5d8985=_0x1ff7a8['gridId'],[_0x57fce9,_0x243f9a]=await _0x958c45[_0x1345e8(0x13f)](getGridDetails,_0x5d0a2b,_0x2f92d8,_0x5d8985);!_0x243f9a&&(_0x958c45['KImWq'](_0x958c45[_0x1345e8(0x180)],_0x958c45[_0x1345e8(0x144)])?_0x958c45[_0x1345e8(0x179)](_0x26435e,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier'):_0x958c45['jfpKe'](_0x4e039a,_0x1345e8(0x137)));let _0x39103d=_0x958c45[_0x1345e8(0x163)](_0x1ff7a8[_0x1345e8(0x18e)],_0x958c45[_0x1345e8(0x183)])?!![]:![];if(_0x243f9a&&_0x243f9a[_0x1345e8(0x182)]&&_0x39103d){if(_0x958c45[_0x1345e8(0x15d)](_0x958c45[_0x1345e8(0x160)],_0x958c45[_0x1345e8(0x160)]))_0x958c45[_0x1345e8(0x159)](_0xdfa428,_0x1345e8(0x18f));else{logMessage='Grid\x20type:\x20Trial',logger[_0x1345e8(0x18a)](logMessage);try{if(_0x958c45['IZiGw'](_0x958c45[_0x1345e8(0x12f)],_0x958c45[_0x1345e8(0x12f)]))_0x958c45[_0x1345e8(0x162)](_0x5ae69d,_0x1345e8(0x149));else{const _0x49c700={};_0x49c700['accessKey']=_0x2f92d8,_0x49c700[_0x1345e8(0x131)]=_0x243f9a['customRepeaters'],_0x49c700['browserStackLocalOptions']=_0x4684ea;const _0x2abb83=_0x49c700,_0x41cc3f=_0x958c45[_0x1345e8(0x145)](startLocalBinarySync,_0x2abb83);let _0x26c71e=0x0;const _0x17350c=async()=>{const _0x4921d1=_0x1345e8;_0x958c45[_0x4921d1(0x17b)](_0x958c45[_0x4921d1(0x14b)],_0x958c45[_0x4921d1(0x169)])?(_0xfcf49c++,_0x958c45['yJUvb'](_0x2617b9,0x1)&&_0x584345&&_0x2d1560[_0x4921d1(0x17c)]()&&_0x958c45['hsYVs'](_0x359b5d,_0x4787c5)):(_0x26c71e++,_0x958c45[_0x4921d1(0x173)](_0x26c71e,0x1)&&_0x41cc3f&&_0x41cc3f['isRunning']()&&_0x958c45['jfpKe'](stopLocalBinary,_0x41cc3f));};process['on'](_0x958c45['XvyPu'],_0x17350c),process['on'](_0x958c45['ntYuk'],_0x17350c),process['on'](_0x958c45['whiqA'],_0x17350c),logMessage=_0x1345e8(0x139),logger[_0x1345e8(0x18a)](logMessage);}}catch(_0x3dab2b){if(_0x958c45[_0x1345e8(0x17d)](_0x958c45['wDvMi'],_0x958c45[_0x1345e8(0x17f)])){_0x156961=_0x1345e8(0x18c),_0x305f49[_0x1345e8(0x18a)](_0x446d29);try{const _0xc21fe0={};_0xc21fe0[_0x1345e8(0x164)]=_0x534c77,_0xc21fe0[_0x1345e8(0x131)]=_0x5c6cc6[_0x1345e8(0x131)],_0xc21fe0[_0x1345e8(0x17e)]=_0x522611;const _0x804015=_0xc21fe0,_0x512aca=_0x958c45[_0x1345e8(0x159)](_0xff4286,_0x804015);let _0x46752=0x0;const _0x4f897e=async()=>{const _0x5a7544=_0x1345e8;_0x46752++,_0x958c45['OsLnR'](_0x46752,0x1)&&_0x512aca&&_0x512aca['isRunning']()&&_0x958c45[_0x5a7544(0x162)](_0x243607,_0x512aca);};_0x476935['on'](_0x958c45[_0x1345e8(0x146)],_0x4f897e),_0x28d375['on'](_0x958c45['ntYuk'],_0x4f897e),_0x1869f0['on'](_0x958c45['whiqA'],_0x4f897e),_0x20aa13=_0x1345e8(0x139),_0x253f66['info'](_0x3740c5);}catch(_0x204a8d){_0x958c45[_0x1345e8(0x133)](_0x1356be,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}else _0x958c45[_0x1345e8(0x159)](_0x26435e,_0x1345e8(0x18f));}}}process[_0x1345e8(0x14a)](0x0);};