browserstack-node-sdk 1.28.2 → 1.28.4

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 (99) 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/templates/gcpresources/gkecluster.json +6 -0
  22. package/ats/src/utils/AWSUtils.js +1 -1
  23. package/ats/src/utils/createAutoscalerStack.js +1 -1
  24. package/ats/src/utils/createClusterStack.js +1 -1
  25. package/ats/src/utils/createk8sClient.js +1 -1
  26. package/ats/src/utils/deleteStack.js +1 -1
  27. package/ats/src/utils/gridComponents.js +1 -1
  28. package/ats/src/utils/hstUtils.js +1 -1
  29. package/ats/src/utils/instrumentationUtils.js +1 -1
  30. package/ats/src/utils/userInput.js +1 -1
  31. package/ats/src/utils/utilityMethods.js +1 -1
  32. package/ats/src/utils/webSocketUtils.js +1 -1
  33. package/package.json +1 -1
  34. package/src/assets/report.html +184 -0
  35. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  36. package/src/bin/codeceptjs/command.js +1 -1
  37. package/src/bin/cucumber-js/command.js +1 -1
  38. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  39. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  40. package/src/bin/cucumber-js/test.setup.js +1 -1
  41. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  42. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  43. package/src/bin/jest/command.js +1 -1
  44. package/src/bin/jest/customEnvironment.js +1 -1
  45. package/src/bin/jest/customTestRunnerTemplate.js +1 -1
  46. package/src/bin/jest/jest.setup.js +1 -1
  47. package/src/bin/jest/test_before.setup.js +1 -1
  48. package/src/bin/launcher/launcher.js +1 -1
  49. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  50. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  51. package/src/bin/mocha/command.js +1 -1
  52. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  53. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  54. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  55. package/src/bin/mocha/test.setup.js +1 -1
  56. package/src/bin/nightwatch/command.js +1 -1
  57. package/src/bin/playwright/accessibility-helper.js +1 -1
  58. package/src/bin/playwright/command.js +1 -1
  59. package/src/bin/playwright/globalSetup.js +1 -1
  60. package/src/bin/playwright/mock-process.js +1 -1
  61. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  62. package/src/bin/playwright/reporter/reporter.js +1 -1
  63. package/src/bin/playwright/reporter/test-details.js +1 -1
  64. package/src/bin/runner.js +1 -1
  65. package/src/bin/setup.js +1 -1
  66. package/src/bin/test-runner/index.js +1 -1
  67. package/src/bin/test-runner/runTest.js +1 -1
  68. package/src/bin/test-runner/testWorker.js +1 -1
  69. package/src/bin/utils/constants.js +1 -1
  70. package/src/bin/utils/log4jsAppender.js +1 -1
  71. package/src/bin/utils/logPatcher.js +1 -1
  72. package/src/bin/utils/logReportingAPI.js +1 -1
  73. package/src/bin/vanilla-js/command.js +1 -1
  74. package/src/helpers/BrowserStackSetup.js +1 -1
  75. package/src/helpers/accessibility-automation/constants.js +1 -1
  76. package/src/helpers/accessibility-automation/helper.js +1 -1
  77. package/src/helpers/ats/constants.js +1 -1
  78. package/src/helpers/ats/helper.js +1 -1
  79. package/src/helpers/capsMapping.js +1 -1
  80. package/src/helpers/helper.js +1 -1
  81. package/src/helpers/logger.js +1 -1
  82. package/src/helpers/patchHelpers.js +1 -1
  83. package/src/helpers/percy/Percy.js +1 -0
  84. package/src/helpers/percy/PercyBinary.js +1 -0
  85. package/src/helpers/percy/PercyCaptureMap.js +1 -0
  86. package/src/helpers/percy/PercyCaptureModes.js +1 -0
  87. package/src/helpers/percy/PercySDK.js +1 -0
  88. package/src/helpers/percy/index.js +1 -0
  89. package/src/helpers/request-spy.js +1 -1
  90. package/src/helpers/setKeepAlive.js +1 -1
  91. package/src/helpers/test-observability/constants.js +1 -1
  92. package/src/helpers/test-observability/error-handler.js +1 -1
  93. package/src/helpers/test-observability/performance-tester.js +1 -1
  94. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  95. package/src/helpers/test-observability/sessionHandler.js +1 -1
  96. package/src/helpers/test-observability/utils.js +1 -1
  97. package/src/helpers/w3cMapping.js +1 -1
  98. package/src/hubAllocationMethods.js +1 -1
  99. package/src/index.js +1 -1
@@ -1 +1 @@
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
+ const a0_0x4edae1=a0_0x47af;(function(_0x357396,_0x1c73ce){const _0x1b160d=a0_0x47af,_0x336a6b=_0x357396();while(!![]){try{const _0x519f75=parseInt(_0x1b160d(0x242))/0x1*(parseInt(_0x1b160d(0x254))/0x2)+-parseInt(_0x1b160d(0x155))/0x3*(parseInt(_0x1b160d(0x268))/0x4)+-parseInt(_0x1b160d(0x274))/0x5+parseInt(_0x1b160d(0x1fc))/0x6+-parseInt(_0x1b160d(0x263))/0x7*(parseInt(_0x1b160d(0x166))/0x8)+parseInt(_0x1b160d(0x177))/0x9*(-parseInt(_0x1b160d(0x1e7))/0xa)+parseInt(_0x1b160d(0x24c))/0xb*(parseInt(_0x1b160d(0x21f))/0xc);if(_0x519f75===_0x1c73ce)break;else _0x336a6b['push'](_0x336a6b['shift']());}catch(_0x5df6a1){_0x336a6b['push'](_0x336a6b['shift']());}}}(a0_0x31a4,0x7dfc4));const fs=require('fs'),path=require(a0_0x4edae1(0x243)),yaml=require(a0_0x4edae1(0x1ac)),awsSDK=require(a0_0x4edae1(0x272)),{logger}=require('../config/logger'),{CloudProvider}=require(a0_0x4edae1(0x192)),{sendAWSInfoToHST}=require(a0_0x4edae1(0x269)),{deleteClusterStack}=require('../utils/deleteStack'),{createClusterStack}=require(a0_0x4edae1(0x1a0)),{deleteClusterAndDependencies,deleteRoutingDeps}=require(a0_0x4edae1(0x23e)),{createAutoscalerStack}=require('../utils/createAutoscalerStack'),{getDirForConfig,reportToGalactusAndSendToEDS}=require(a0_0x4edae1(0x17c)),{IAM_USER_NAME,AWS,WS_EVENTS,CLUSTER_DEP_STACK_NAME,global_registry,messageTypes}=require(a0_0x4edae1(0x232));class AWSCloudProvider extends CloudProvider{constructor(_0x55934f,_0x2ac5cc,_0x267c5c,_0x4e03df){super(AWS,_0x55934f,_0x2ac5cc,_0x267c5c,_0x4e03df);}[a0_0x4edae1(0x1bc)](){const _0x5e5503=a0_0x4edae1,_0x398ac3={'MiLug':function(_0x401f33,_0x4a0dc5){return _0x401f33(_0x4a0dc5);},'JvOpL':function(_0x7c6309,_0x672b4b){return _0x7c6309(_0x672b4b);},'GnPDX':function(_0x5ee646,_0x38243b){return _0x5ee646===_0x38243b;},'RlrMa':_0x5e5503(0x1c4)};!this['isConfigured']()&&(_0x398ac3['GnPDX'](_0x398ac3[_0x5e5503(0x16e)],_0x398ac3[_0x5e5503(0x16e)])?this[_0x5e5503(0x23b)]():(_0x2b627f[_0x5e5503(0x1dd)]['includes'](this[_0x5e5503(0x1e9)])&&_0x398ac3['MiLug'](_0x21509a,!![]),_0x398ac3[_0x5e5503(0x168)](_0x4127ae,![])));}['isConfigured'](){const _0x13feea=a0_0x4edae1,_0x39838c={};_0x39838c[_0x13feea(0x169)]=function(_0x3fd3c5,_0x26d9c1){return _0x3fd3c5===_0x26d9c1;};const _0x4d937c=_0x39838c;return _0x4d937c[_0x13feea(0x169)](global_registry[_0x13feea(0x14f)],!![]);}[a0_0x4edae1(0x23b)](){const _0xaf43f1=a0_0x4edae1,_0x31cfff={};_0x31cfff['region']=global_registry[_0xaf43f1(0x22d)],_0x31cfff[_0xaf43f1(0x21e)]=global_registry['cloudProviderAccessKey'],_0x31cfff['secretAccessKey']=global_registry[_0xaf43f1(0x1e8)],awsSDK['config'][_0xaf43f1(0x197)](_0x31cfff),global_registry[_0xaf43f1(0x14f)]=!![];}async[a0_0x4edae1(0x170)](_0x40bc44){const _0x1eec17=a0_0x4edae1;global_registry[_0x1eec17(0x1a2)]=_0x40bc44[this['cloudProviderName']]['accessKey'],global_registry[_0x1eec17(0x1e8)]=_0x40bc44[this['cloudProviderName']][_0x1eec17(0x250)];}[a0_0x4edae1(0x21c)](_0x44e92b){const _0x41a2f4=a0_0x4edae1;return _0x44e92b[_0x41a2f4(0x1fd)][_0x41a2f4(0x219)]['loadBalancer'][_0x41a2f4(0x204)][0x0][_0x41a2f4(0x1d3)];}async[a0_0x4edae1(0x163)](){const _0x1f0670=a0_0x4edae1,_0x40edb0={'CxlDi':function(_0x1e812a,_0x3684dd){return _0x1e812a(_0x3684dd);},'lPQmz':_0x1f0670(0x202),'GExzQ':function(_0x317d5c,_0xfaf785){return _0x317d5c!==_0xfaf785;},'RnGXd':_0x1f0670(0x181),'PksJJ':_0x1f0670(0x23a),'jJaYr':_0x1f0670(0x1f3),'JKbCR':'vBxpV','POoEi':function(_0x269ea8,_0x386bad){return _0x269ea8===_0x386bad;},'JPjUr':_0x1f0670(0x1f9),'neFWV':_0x1f0670(0x1fb),'ntytT':_0x1f0670(0x18f),'zVhUN':'epczG'};try{if(_0x40edb0['GExzQ'](_0x40edb0[_0x1f0670(0x200)],_0x40edb0[_0x1f0670(0x215)])){const _0x3a761e=await this['getClusterInfo']();if(_0x3a761e[_0x1f0670(0x1ad)]){if(_0x40edb0[_0x1f0670(0x22f)](_0x40edb0['jJaYr'],_0x40edb0[_0x1f0670(0x1d9)])){const _0x3cf19a=_0x3a761e[_0x1f0670(0x1ad)]['tags'];return _0x3cf19a&&_0x40edb0[_0x1f0670(0x16c)](_0x3cf19a[_0x40edb0[_0x1f0670(0x158)]][_0x1f0670(0x1a9)](),_0x40edb0[_0x1f0670(0x1eb)]);}else _0x366213[_0x1f0670(0x1e1)](_0x432390),_0x40edb0[_0x1f0670(0x248)](_0x4a94f0,_0x46c436);}}else _0x40edb0[_0x1f0670(0x248)](_0x535bb6,!![]);}catch(_0x1366f1){if(_0x40edb0[_0x1f0670(0x16c)](_0x40edb0[_0x1f0670(0x1ec)],_0x40edb0['zVhUN']))_0x48badf['info'](_0x40edb0['lPQmz']);else return![];}return![];}async[a0_0x4edae1(0x1f8)](){const _0x1e2d2f=a0_0x4edae1;return this['configureIfNotConfigured'](),this[_0x1e2d2f(0x15d)]();}async[a0_0x4edae1(0x236)](){const _0xae00bf=a0_0x4edae1,_0x236f14={};_0x236f14['KsAGg']=_0xae00bf(0x1ca);const _0x5bd74=_0x236f14,_0x494b4e={};_0x494b4e['apiVersion']=_0x5bd74[_0xae00bf(0x150)];const _0x48f209=new awsSDK['EKS'](_0x494b4e),_0x1caa8b={};return _0x1caa8b[_0xae00bf(0x1c2)]=this[_0xae00bf(0x1e9)],_0x48f209[_0xae00bf(0x153)](_0x1caa8b)[_0xae00bf(0x226)]();}async[a0_0x4edae1(0x1bf)](_0x5720f6){const _0x185691=a0_0x4edae1,_0x9d0cd5={};_0x9d0cd5[_0x185691(0x19e)]=_0x185691(0x1dc),_0x9d0cd5[_0x185691(0x255)]=_0x185691(0x17f),_0x9d0cd5[_0x185691(0x206)]=_0x185691(0x1da),_0x9d0cd5['WMHlK']='<ARN>';const _0x5f4919=_0x9d0cd5,_0x251591=await fs[_0x185691(0x1b6)](path[_0x185691(0x1a3)](__dirname,'..',_0x5f4919['yeHwq'],_0x5f4919[_0x185691(0x255)]),_0x5f4919[_0x185691(0x206)]),_0x22488e=yaml['load'](_0x251591);return _0x22488e['data'][_0x185691(0x194)]=_0x22488e['data'][_0x185691(0x194)]['replace'](_0x5f4919[_0x185691(0x15a)],_0x5720f6),_0x22488e;}async['getNodeGroupInfo'](_0x296621){const _0x1c8968=a0_0x4edae1,_0x2add02={};_0x2add02[_0x1c8968(0x185)]=_0x1c8968(0x1ca);const _0x1478cc=_0x2add02,_0x51b060={};_0x51b060['apiVersion']=_0x1478cc['ZZlBz'];const _0x38cb3b=new awsSDK[(_0x1c8968(0x25d))](_0x51b060),_0xdd0d91={};return _0xdd0d91['clusterName']=this[_0x1c8968(0x1e9)],_0xdd0d91[_0x1c8968(0x1ff)]=_0x296621,_0x38cb3b[_0x1c8968(0x1a1)](_0xdd0d91)['promise']();}async[a0_0x4edae1(0x15d)](){const _0x56bd1e=a0_0x4edae1,_0x3f4e20={'eCFwd':function(_0x3d44da,_0x4d8987){return _0x3d44da!==_0x4d8987;},'OQUPZ':'cHApv','SMQZm':function(_0x599165,_0x4d5ae3){return _0x599165===_0x4d5ae3;},'shAxw':'ILdAh','jKyvo':_0x56bd1e(0x273),'mJEjD':function(_0x27e0d0,_0x3ce1a9){return _0x27e0d0(_0x3ce1a9);},'DbFDY':function(_0x1c6893,_0xbbd3b2){return _0x1c6893(_0xbbd3b2);},'gAjyq':function(_0x1833eb,_0x4ba197){return _0x1833eb!==_0x4ba197;},'DJXrl':_0x56bd1e(0x154),'AFivt':function(_0x3a13cc,_0x5cbcc6){return _0x3a13cc!==_0x5cbcc6;},'efhbX':'LPgnv','zhfjh':_0x56bd1e(0x26e),'hLwIl':_0x56bd1e(0x1ca)};return new Promise((_0x568d59,_0x466025)=>{const _0x5cc0bc=_0x56bd1e;if(_0x3f4e20[_0x5cc0bc(0x18e)](_0x3f4e20[_0x5cc0bc(0x161)],_0x3f4e20[_0x5cc0bc(0x19b)])){const _0x4cab3c={};_0x4cab3c[_0x5cc0bc(0x212)]=_0x3f4e20['hLwIl'];const _0x21408d=new awsSDK[(_0x5cc0bc(0x25d))](_0x4cab3c);_0x21408d[_0x5cc0bc(0x257)]()[_0x5cc0bc(0x226)]()['then'](_0x1e2a2f=>{const _0x48ba79=_0x5cc0bc;if(_0x3f4e20[_0x48ba79(0x1cf)](_0x3f4e20[_0x48ba79(0x1cd)],_0x3f4e20[_0x48ba79(0x1cd)]))return _0x46940a[_0x48ba79(0x1c0)](_0x4f8415),![];else _0x1e2a2f['clusters'][_0x48ba79(0x24f)](this[_0x48ba79(0x1e9)])&&(_0x3f4e20[_0x48ba79(0x26f)](_0x3f4e20[_0x48ba79(0x18d)],_0x3f4e20[_0x48ba79(0x191)])?!this['isConfigured']()&&this[_0x48ba79(0x23b)]():_0x3f4e20[_0x48ba79(0x233)](_0x568d59,!![])),_0x3f4e20['DbFDY'](_0x568d59,![]);})[_0x5cc0bc(0x259)](_0x4dd428=>{const _0x35f67=_0x5cc0bc;_0x3f4e20[_0x35f67(0x1e6)](_0x3f4e20[_0x35f67(0x23f)],_0x3f4e20[_0x35f67(0x23f)])?(_0x481a9f[_0x35f67(0x1a2)]=_0x54dc2d[this['cloudProviderName']][_0x35f67(0x1c8)],_0x315a3c[_0x35f67(0x1e8)]=_0x4c9d1c[this['cloudProviderName']][_0x35f67(0x250)]):(logger['error'](_0x4dd428),_0x3f4e20['mJEjD'](_0x466025,_0x4dd428));});}else return![];});}async[a0_0x4edae1(0x19a)](_0x10234b,_0x5beb94){const _0x46f32a=a0_0x4edae1,_0x543ba4={'ryETk':function(_0x5051c0,_0x22d0b7){return _0x5051c0(_0x22d0b7);}},_0x294065=this[_0x46f32a(0x16a)][_0x46f32a(0x201)](),_0x4e0487=await _0x543ba4[_0x46f32a(0x25a)](_0x10234b,_0x294065+_0x46f32a(0x1e0)),_0x5d32d7=await _0x543ba4[_0x46f32a(0x25a)](_0x10234b,_0x294065+_0x46f32a(0x1d0));global_registry['cloudProviderAccessKey']=_0x4e0487,global_registry[_0x46f32a(0x1e8)]=_0x5d32d7;const _0x3e35d6={};return _0x3e35d6['accessKey']=_0x4e0487,_0x3e35d6['secret']=_0x5d32d7,_0x5beb94[_0x46f32a(0x24d)][AWS]=_0x3e35d6,_0x5beb94;}async[a0_0x4edae1(0x178)](){const _0x4565a5=a0_0x4edae1,_0x3c48d0={'haEGK':function(_0x44d79a){return _0x44d79a();},'IHkDV':'aws_credentials','zQaFA':_0x4565a5(0x1dc),'WoxIq':_0x4565a5(0x19d)},_0x311ec6=_0x3c48d0[_0x4565a5(0x1c6)](getDirForConfig),_0x3bf9ba=await this['getClusterInfo'](),_0x5ca41c=path['join'](_0x311ec6,_0x3c48d0[_0x4565a5(0x25b)]),_0x11ef7d=_0x4565a5(0x1b7)+global_registry[_0x4565a5(0x1a2)]+_0x4565a5(0x17b)+global_registry[_0x4565a5(0x1e8)];fs['writeFileSync'](_0x5ca41c,_0x11ef7d);let _0x4099f5=await fs['readFileAsync'](path['join'](__dirname,'..',_0x3c48d0[_0x4565a5(0x15b)],_0x3c48d0['WoxIq']));return _0x4099f5=_0x4099f5[_0x4565a5(0x16d)](),_0x4099f5=_0x4099f5[_0x4565a5(0x1ab)](/<CLUSTER_NAME>/g,this[_0x4565a5(0x1e9)]),_0x4099f5=_0x4099f5[_0x4565a5(0x1ab)](/<CLUSTER_URL>/g,_0x3bf9ba[_0x4565a5(0x1ad)][_0x4565a5(0x1ce)]),_0x4099f5=_0x4099f5['replace'](/<CERTIFICATE_DATA>/g,_0x3bf9ba[_0x4565a5(0x1ad)][_0x4565a5(0x1bb)][_0x4565a5(0x1c7)]),_0x4099f5=_0x4099f5[_0x4565a5(0x1ab)](/<CLUSTER_REGION>/g,global_registry[_0x4565a5(0x22d)]),_0x4099f5=_0x4099f5['replace'](/<CLUSTER_NAME_USER>/g,IAM_USER_NAME),_0x4099f5=_0x4099f5['replace'](/<CLOUD_PROVIDER_ACCESS_KEY>/g,global_registry[_0x4565a5(0x1a2)]),_0x4099f5=_0x4099f5[_0x4565a5(0x1ab)](/<CLOUD_PROVIDER_SECRET>/g,global_registry[_0x4565a5(0x1e8)]),_0x4099f5=_0x4099f5[_0x4565a5(0x1ab)](/<AWS_CONFIG_FILE_PATH>/g,_0x5ca41c),_0x4099f5;}async[a0_0x4edae1(0x1ea)](_0x5180fc=null,_0x58bd37=null){const _0x1254e4=a0_0x4edae1,_0x19aae0={'nuUmp':function(_0x2d7786,_0x36b06d){return _0x2d7786(_0x36b06d);},'cRErC':_0x1254e4(0x179),'ucngH':_0x1254e4(0x1d8),'fObsd':function(_0x16b06e,_0x4a0422,_0x56dd5d,_0x3b4d19,_0x29580e,_0xd6fc66){return _0x16b06e(_0x4a0422,_0x56dd5d,_0x3b4d19,_0x29580e,_0xd6fc66);},'xpyOR':'Following\x20resources\x20are\x20created:','YRJCI':function(_0x58a283,_0x3e6b61){return _0x58a283===_0x3e6b61;},'mchLA':function(_0x537dd6,_0x11f118){return _0x537dd6===_0x11f118;},'cyxpF':'IptUy','KXAZD':_0x1254e4(0x160)};_0x19aae0[_0x1254e4(0x203)](sendAWSInfoToHST,this['rws']);const _0x2a08bc={};_0x2a08bc[_0x1254e4(0x244)]=WS_EVENTS['LOG'],_0x2a08bc[_0x1254e4(0x230)]=_0x19aae0['cRErC'],this['webSocketUtils'][_0x1254e4(0x198)](this[_0x1254e4(0x267)],_0x2a08bc),logger[_0x1254e4(0x1db)](_0x19aae0['ucngH']);const _0x233d8d=global_registry['minNodes'],_0x2be4b0=global_registry[_0x1254e4(0x17e)],_0x441f20=await _0x19aae0['fObsd'](createClusterStack,this[_0x1254e4(0x1e9)],_0x233d8d,_0x2be4b0,_0x5180fc,_0x58bd37),_0x1b3ce6=_0x441f20[_0x1254e4(0x1e4)][0x0][_0x1254e4(0x22b)][0x0]['OutputValue']['split'](','),_0x5a31b3=_0x441f20[_0x1254e4(0x1e4)][0x0]['Outputs'][0x1][_0x1254e4(0x164)],_0x4af88f=_0x441f20[_0x1254e4(0x1e4)][0x0][_0x1254e4(0x22b)][0x3]['OutputValue'],_0x37ddc2=_0x441f20[_0x1254e4(0x1e4)][0x0]['Outputs'][0x4][_0x1254e4(0x164)];logger[_0x1254e4(0x1db)](_0x19aae0[_0x1254e4(0x239)]),logger[_0x1254e4(0x1db)](_0x1254e4(0x247)+_0x4af88f+'\x20'),logger['info'](_0x1254e4(0x256)+_0x5a31b3+'\x20'),logger[_0x1254e4(0x1db)](_0x1254e4(0x189)+_0x1b3ce6+'\x20'),logger['info']('NodeRole\x20=>\x20'+_0x37ddc2+'\x20');let _0x264ffd=_0x1254e4(0x249)+_0x4af88f+',\x20ClusterRole\x20=>\x20'+_0x5a31b3+_0x1254e4(0x190)+_0x1b3ce6+_0x1254e4(0x1d7)+_0x37ddc2+'\x20';if(_0x19aae0[_0x1254e4(0x171)](_0x5180fc,null)&&_0x19aae0['YRJCI'](_0x58bd37,null)){if(_0x19aae0['mchLA'](_0x19aae0['cyxpF'],_0x19aae0['KXAZD']))this[_0x1254e4(0x23b)]();else{const _0x5a07bc=_0x441f20[_0x1254e4(0x1e4)][0x0]['Outputs'][0x2][_0x1254e4(0x164)],_0x2d998a=_0x441f20[_0x1254e4(0x1e4)][0x0][_0x1254e4(0x22b)][0x5][_0x1254e4(0x164)][_0x1254e4(0x1de)](',');logger[_0x1254e4(0x1db)]('VPC\x20=>\x20'+_0x5a07bc+'\x20'),logger[_0x1254e4(0x1db)](_0x1254e4(0x20d)+_0x2d998a+'\x20'),_0x264ffd+=_0x1254e4(0x174)+_0x5a07bc+_0x1254e4(0x208)+_0x2d998a+',\x20';}}const _0x5d501d={};_0x5d501d[_0x1254e4(0x244)]=WS_EVENTS['LOG'],_0x5d501d[_0x1254e4(0x230)]=_0x264ffd,this['webSocketUtils'][_0x1254e4(0x198)](this[_0x1254e4(0x267)],_0x5d501d);}async[a0_0x4edae1(0x238)](_0x43cc04,_0x36a50f){const _0x4c80cc=a0_0x4edae1,_0x16f2e6={'eSMIk':function(_0x51a5f3,_0x169feb){return _0x51a5f3(_0x169feb);}};await _0x16f2e6[_0x4c80cc(0x186)](deleteRoutingDeps,_0x43cc04),await _0x16f2e6[_0x4c80cc(0x186)](deleteClusterAndDependencies,_0x36a50f);}async[a0_0x4edae1(0x1d1)](_0x53d5a8,_0x5494c1){const _0x55f3c1=a0_0x4edae1,_0x2ec07e={'ZeWnr':function(_0x11d0b5,_0x5129d5){return _0x11d0b5===_0x5129d5;},'DlJTO':function(_0x5db7d1,_0x135987){return _0x5db7d1(_0x135987);},'mCsdb':function(_0x1f876c,_0x499f44){return _0x1f876c(_0x499f44);},'pYaba':function(_0x1bb644,_0x358d1a){return _0x1bb644(_0x358d1a);},'nvYEb':_0x55f3c1(0x1ca),'MUrII':'KvxxN','NFLSQ':_0x55f3c1(0x1b1),'Wgilu':_0x55f3c1(0x202),'Xvddq':_0x55f3c1(0x22a),'ZDSQZ':function(_0x5979c6,_0x2c4e26){return _0x5979c6!==_0x2c4e26;},'QXyUV':_0x55f3c1(0x260),'FHPbf':function(_0x4f9e6c,_0x4d8ab5){return _0x4f9e6c(_0x4d8ab5);},'lSUEU':function(_0x1cbff9,_0x54b2ba){return _0x1cbff9===_0x54b2ba;},'byCqE':_0x55f3c1(0x1a7),'QQVRx':_0x55f3c1(0x167),'HbzrC':_0x55f3c1(0x20f),'Dfmpj':'nOcAa','TfZVk':function(_0xc985d8,_0x1259a3,_0x4caf2d,_0x2693fb,_0x5a997f,_0x3c2729,_0x1cbb90,_0x36b3a7){return _0xc985d8(_0x1259a3,_0x4caf2d,_0x2693fb,_0x5a997f,_0x3c2729,_0x1cbb90,_0x36b3a7);},'iVuwk':'create-grid-called','iiSLJ':_0x55f3c1(0x20a),'febds':'warning','vNTJK':'hOnGg','yAFlC':_0x55f3c1(0x1d5),'RXkfo':_0x55f3c1(0x1c5),'fAmty':function(_0x1b0293,_0x40a332,_0x5e63b7,_0x21b431,_0x4421fd,_0x4273f3,_0x4aa387,_0x1a73f6){return _0x1b0293(_0x40a332,_0x5e63b7,_0x21b431,_0x4421fd,_0x4273f3,_0x4aa387,_0x1a73f6);},'kThdR':_0x55f3c1(0x173),'poNkp':_0x55f3c1(0x1e1),'YkQmG':_0x55f3c1(0x1a4)};let _0x1fbb7f,_0x4de9ac;const _0x37428c={};_0x37428c[_0x55f3c1(0x244)]=WS_EVENTS[_0x55f3c1(0x270)],_0x37428c[_0x55f3c1(0x230)]=_0x2ec07e[_0x55f3c1(0x1b5)],this[_0x55f3c1(0x261)][_0x55f3c1(0x198)](this[_0x55f3c1(0x267)],_0x37428c),logger[_0x55f3c1(0x1db)](_0x2ec07e[_0x55f3c1(0x1b5)]);try{if(_0x2ec07e['ZDSQZ'](_0x2ec07e[_0x55f3c1(0x214)],_0x2ec07e[_0x55f3c1(0x214)]))return this[_0x55f3c1(0x1bc)](),this[_0x55f3c1(0x15d)]();else{const _0x58a591=await _0x2ec07e[_0x55f3c1(0x1f1)](createAutoscalerStack,this[_0x55f3c1(0x1e9)]);_0x4de9ac=_0x58a591[_0x55f3c1(0x1e4)][0x0]['Outputs'][0x2][_0x55f3c1(0x164)];const _0x105e3a={};_0x105e3a[_0x55f3c1(0x244)]=WS_EVENTS['LOG'],_0x105e3a[_0x55f3c1(0x230)]=_0x55f3c1(0x1fa)+_0x4de9ac+'\x20',this[_0x55f3c1(0x261)]['sendEventToBackend'](this[_0x55f3c1(0x267)],_0x105e3a),logger[_0x55f3c1(0x1db)](_0x55f3c1(0x1fa)+_0x4de9ac+'\x20');}}catch(_0x3154cb){if(_0x2ec07e[_0x55f3c1(0x26b)](_0x2ec07e[_0x55f3c1(0x1ba)],_0x2ec07e[_0x55f3c1(0x22c)]))return _0x42c1c6[_0x55f3c1(0x1fd)][_0x55f3c1(0x219)]['loadBalancer'][_0x55f3c1(0x204)][0x0]['hostname'];else{if(_0x2ec07e[_0x55f3c1(0x180)](_0x3154cb[_0x55f3c1(0x230)][_0x55f3c1(0x227)](/already exists/),null)||_0x2ec07e[_0x55f3c1(0x180)](_0x3154cb[_0x55f3c1(0x230)][_0x55f3c1(0x227)](/already exists/),undefined)){if(_0x2ec07e['ZeWnr'](_0x2ec07e['HbzrC'],_0x2ec07e['Dfmpj']))return _0x2ec07e['ZeWnr'](_0x35b76a[_0x55f3c1(0x14f)],!![]);else _0x1fbb7f=_0x55f3c1(0x1b9)+_0x3154cb[_0x55f3c1(0x230)],await _0x2ec07e[_0x55f3c1(0x1a6)](reportToGalactusAndSendToEDS,_0x5494c1,this[_0x55f3c1(0x267)],_0x1fbb7f,messageTypes['WARNING'],_0x2ec07e['iVuwk'],_0x2ec07e['iiSLJ'],_0x2ec07e[_0x55f3c1(0x1c3)]),logger[_0x55f3c1(0x231)](_0x1fbb7f);}else{if(_0x2ec07e['lSUEU'](_0x2ec07e[_0x55f3c1(0x1ee)],_0x2ec07e[_0x55f3c1(0x1f4)]))_0x2ec07e[_0x55f3c1(0x195)](_0x350d19,!![]);else{const _0x5d21e1=_0x2ec07e[_0x55f3c1(0x222)]['split']('|');let _0x14f7b7=0x0;while(!![]){switch(_0x5d21e1[_0x14f7b7++]){case'0':process['exit'](0x1);continue;case'1':await _0x2ec07e[_0x55f3c1(0x234)](reportToGalactusAndSendToEDS,_0x5494c1,this[_0x55f3c1(0x267)],_0x1fbb7f,messageTypes[_0x55f3c1(0x1b8)],_0x2ec07e['iVuwk'],_0x2ec07e[_0x55f3c1(0x1f7)],_0x2ec07e[_0x55f3c1(0x162)]);continue;case'2':logger[_0x55f3c1(0x1e1)](_0x1fbb7f);continue;case'3':_0x1fbb7f=_0x55f3c1(0x224)+_0x3154cb[_0x55f3c1(0x230)]+'.\x20Deleting\x20all\x20the\x20stacks';continue;case'4':await _0x2ec07e[_0x55f3c1(0x195)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;}break;}}}}}let _0x1fa818=await this['getNodeGroupInfo'](this[_0x55f3c1(0x1e9)]+_0x55f3c1(0x175));const _0x481a45=_0x1fa818[_0x55f3c1(0x229)][_0x55f3c1(0x1a8)],_0x146b8b=await this['createAuthConfigMap'](_0x481a45);return await _0x53d5a8[_0x55f3c1(0x159)](_0x2ec07e[_0x55f3c1(0x1c1)],_0x146b8b)[_0x55f3c1(0x259)](_0x51476a=>{const _0x39a653=_0x55f3c1,_0x1986da={'DIPxZ':function(_0x10e435,_0x4beae1){const _0x1db15a=a0_0x47af;return _0x2ec07e[_0x1db15a(0x1ae)](_0x10e435,_0x4beae1);},'KPnjx':function(_0x48d9f9,_0x27a84a){const _0x4dd138=a0_0x47af;return _0x2ec07e[_0x4dd138(0x23c)](_0x48d9f9,_0x27a84a);},'YItpT':_0x2ec07e['nvYEb']};if(_0x2ec07e[_0x39a653(0x216)](_0x2ec07e[_0x39a653(0x1e3)],_0x2ec07e[_0x39a653(0x1d2)])){const _0x407be1={'ywiiG':function(_0x2c0f45,_0xf3c7a1){const _0x5c6a5b=_0x39a653;return _0x1986da[_0x5c6a5b(0x264)](_0x2c0f45,_0xf3c7a1);}},_0x3d1f24={};_0x3d1f24['apiVersion']=_0x1986da[_0x39a653(0x228)];const _0x8d8ed4=new _0x281991[(_0x39a653(0x25d))](_0x3d1f24);_0x8d8ed4[_0x39a653(0x257)]()['promise']()['then'](_0x5313e2=>{const _0x248721=_0x39a653;_0x5313e2[_0x248721(0x1dd)][_0x248721(0x24f)](this[_0x248721(0x1e9)])&&_0x407be1[_0x248721(0x217)](_0x1aa72f,!![]),_0x407be1[_0x248721(0x217)](_0x151398,![]);})[_0x39a653(0x259)](_0x527e7e=>{const _0x2d3be5=_0x39a653;_0x20c48d['error'](_0x527e7e),_0x1986da[_0x2d3be5(0x18c)](_0x54af9e,_0x527e7e);});}else logger[_0x39a653(0x1db)](_0x2ec07e[_0x39a653(0x1b4)]);}),_0x4de9ac;}[a0_0x4edae1(0x1f5)](_0x3fa432){const _0x19d3d7=a0_0x4edae1,_0x3de2e2={'dXGui':function(_0x4caef0,_0x3d8aa3){return _0x4caef0===_0x3d8aa3;},'WJrzD':_0x19d3d7(0x205),'VKVcj':function(_0x59670c,_0x47e141){return _0x59670c(_0x47e141);},'LTwge':'wmHTn','eMTfD':function(_0x2d1f62,_0x2f7adb){return _0x2d1f62(_0x2f7adb);},'fDSdG':function(_0x10fff3,_0x537020){return _0x10fff3!==_0x537020;},'XkRpk':'XHRvK','myLtM':'fpVVB','AZOCL':'2016-11-15'},_0x4029bb={};_0x4029bb[_0x19d3d7(0x26d)]=[_0x3fa432];let _0x54aca1=_0x4029bb;return new Promise((_0x29b1b2,_0x12c010)=>{const _0x493d85=_0x19d3d7,_0x4120a6={'azCnc':function(_0x264ae7,_0x4cd462){const _0x133576=a0_0x47af;return _0x3de2e2[_0x133576(0x17a)](_0x264ae7,_0x4cd462);},'HSdVn':_0x3de2e2[_0x493d85(0x252)],'WfWMo':function(_0x12131c,_0x1e86f1){return _0x3de2e2['eMTfD'](_0x12131c,_0x1e86f1);}};if(_0x3de2e2[_0x493d85(0x22e)](_0x3de2e2['XkRpk'],_0x3de2e2['myLtM'])){const _0x222380={};_0x222380['apiVersion']=_0x3de2e2[_0x493d85(0x172)],_0x222380[_0x493d85(0x18b)]=global_registry['clusterRegion'];const _0x17d286=new awsSDK[(_0x493d85(0x17d))](_0x222380);_0x17d286['describeVpcs'](_0x54aca1)[_0x493d85(0x226)]()[_0x493d85(0x165)](_0x56387e=>{const _0x2c7a50=_0x493d85;_0x3de2e2[_0x2c7a50(0x17a)](_0x3de2e2[_0x2c7a50(0x20b)],_0x3de2e2[_0x2c7a50(0x20b)])?_0x3de2e2[_0x2c7a50(0x1be)](_0x29b1b2,!![]):_0x564f99['push'](_0x47482e[_0x2c7a50(0x1f6)]);})[_0x493d85(0x259)](_0x3af90c=>{const _0x4eb27e=_0x493d85;if(_0x4120a6[_0x4eb27e(0x1df)](_0x4120a6[_0x4eb27e(0x1e2)],_0x4120a6[_0x4eb27e(0x1e2)]))logger[_0x4eb27e(0x1e1)](_0x4eb27e(0x1aa)+_0x3fa432+_0x4eb27e(0x275)+global_registry[_0x4eb27e(0x22d)]+_0x4eb27e(0x21a)),_0x4120a6[_0x4eb27e(0x1fe)](_0x29b1b2,![]);else{const _0x577993=_0x594a35[_0x4eb27e(0x1e4)][0x0][_0x4eb27e(0x22b)][0x2][_0x4eb27e(0x164)],_0x79b4dd=_0xad09aa[_0x4eb27e(0x1e4)][0x0]['Outputs'][0x5][_0x4eb27e(0x164)][_0x4eb27e(0x1de)](',');_0x1b95cb[_0x4eb27e(0x1db)](_0x4eb27e(0x225)+_0x577993+'\x20'),_0x46f8ce['info'](_0x4eb27e(0x20d)+_0x79b4dd+'\x20'),_0x8c5a98+=_0x4eb27e(0x174)+_0x577993+_0x4eb27e(0x208)+_0x79b4dd+',\x20';}});}else _0x350d1c[_0x493d85(0x1e1)](_0x493d85(0x25e)+_0x268425+_0x493d85(0x275)+_0x523d15[_0x493d85(0x22d)]+'.\x20Error:\x20'+_0x415354),_0x4120a6[_0x493d85(0x1fe)](_0x207519,[![],[]]);});}['isSubnetsValid'](_0xf33f26,_0x346db7){const _0x21cab1=a0_0x4edae1,_0x202f86={'sZolk':_0x21cab1(0x1ca),'HRtLS':function(_0x26068f,_0x9be4f0){return _0x26068f===_0x9be4f0;},'FSIhv':_0x21cab1(0x21b),'IUOoy':function(_0x23faec,_0x365584){return _0x23faec(_0x365584);},'ThYQX':_0x21cab1(0x184),'BHdSh':'YtYVU','UmYHX':function(_0x109ab2,_0x359640){return _0x109ab2!==_0x359640;},'xbLZB':_0x21cab1(0x1b2),'UPLxB':_0x21cab1(0x262),'QSNDy':_0x21cab1(0x1bd),'xkurd':_0x21cab1(0x1d4),'wEcNW':_0x21cab1(0x152),'RsWnC':function(_0x54bb5b,_0x470205){return _0x54bb5b(_0x470205);},'dbSSP':function(_0x1fcfa1,_0x527221){return _0x1fcfa1!==_0x527221;},'yMFqu':_0x21cab1(0x15c),'QwQDm':'PDPpS','RMgCz':function(_0x1c4c3e,_0x4227c9){return _0x1c4c3e(_0x4227c9);},'TRbsA':_0x21cab1(0x1f9),'DgYRZ':_0x21cab1(0x1fb),'nBYtr':function(_0x510165,_0x22bf01){return _0x510165!==_0x22bf01;},'zjNOD':_0x21cab1(0x151),'yFBQA':_0x21cab1(0x223),'vTfXy':_0x21cab1(0x157)},_0x563185={};_0x563185[_0x21cab1(0x1a5)]=_0x202f86[_0x21cab1(0x193)],_0x563185[_0x21cab1(0x24e)]=[_0x346db7];const _0x3c587e={};_0x3c587e[_0x21cab1(0x209)]=[_0x563185];let _0x2923e3=_0x3c587e;return new Promise((_0x55f2ab,_0x5a711e)=>{const _0x1b9aa5=_0x21cab1,_0x58f9db={'aTpxg':_0x202f86[_0x1b9aa5(0x245)],'dMgGL':function(_0x50af1d,_0x3831ec){return _0x202f86['HRtLS'](_0x50af1d,_0x3831ec);},'zaQTr':_0x202f86[_0x1b9aa5(0x1ed)],'zvHPc':function(_0x4e8b13,_0x29d597){const _0xf475f4=_0x1b9aa5;return _0x202f86[_0xf475f4(0x26c)](_0x4e8b13,_0x29d597);},'jxVBn':_0x202f86[_0x1b9aa5(0x246)],'TNBfR':_0x202f86[_0x1b9aa5(0x241)],'xgEpR':function(_0x50148d,_0x2bf001){const _0x12ba47=_0x1b9aa5;return _0x202f86[_0x12ba47(0x19f)](_0x50148d,_0x2bf001);},'tESpj':_0x202f86['xbLZB'],'qKBhl':_0x202f86['UPLxB'],'VQhZY':_0x202f86[_0x1b9aa5(0x187)],'vglNs':_0x202f86[_0x1b9aa5(0x213)],'yZbxT':_0x202f86['wEcNW'],'ZgrhO':function(_0x175c0e,_0xd16434){return _0x202f86['RsWnC'](_0x175c0e,_0xd16434);},'ciNEU':function(_0x1c9946,_0x1baf5f){const _0x576538=_0x1b9aa5;return _0x202f86[_0x576538(0x26c)](_0x1c9946,_0x1baf5f);},'praQW':function(_0x54d4bc,_0x56c09){return _0x202f86['dbSSP'](_0x54d4bc,_0x56c09);},'mjZnB':_0x202f86[_0x1b9aa5(0x1c9)],'npXQE':_0x202f86['QwQDm'],'eOYGA':function(_0x433965,_0x19ee21){const _0x3f70e4=_0x1b9aa5;return _0x202f86[_0x3f70e4(0x16b)](_0x433965,_0x19ee21);},'zNaiV':_0x202f86[_0x1b9aa5(0x182)],'KLpaf':_0x202f86[_0x1b9aa5(0x1b3)]};if(_0x202f86[_0x1b9aa5(0x218)](_0x202f86[_0x1b9aa5(0x237)],_0x202f86[_0x1b9aa5(0x25c)])){const _0xacbf8b={};_0xacbf8b['apiVersion']=_0x202f86[_0x1b9aa5(0x246)],_0xacbf8b['region']=global_registry[_0x1b9aa5(0x22d)];const _0x4a636d=new awsSDK[(_0x1b9aa5(0x17d))](_0xacbf8b);_0x4a636d[_0x1b9aa5(0x15f)](_0x2923e3)[_0x1b9aa5(0x226)]()[_0x1b9aa5(0x165)](_0x370e13=>{const _0xd1d37a=_0x1b9aa5,_0xd7b4d9={'nfgDg':_0x58f9db['aTpxg'],'FDSuP':function(_0x45afb8,_0x129522){const _0xfb2648=a0_0x47af;return _0x58f9db[_0xfb2648(0x20e)](_0x45afb8,_0x129522);},'HFRAj':_0x58f9db[_0xd1d37a(0x24b)],'tvOwp':function(_0x26484d,_0x4ee039){const _0x2b9959=_0xd1d37a;return _0x58f9db[_0x2b9959(0x1cb)](_0x26484d,_0x4ee039);},'xhUmr':_0x58f9db[_0xd1d37a(0x25f)],'YDQvU':_0x58f9db[_0xd1d37a(0x211)],'IchkO':function(_0x510ee2,_0x473ea9){return _0x58f9db['xgEpR'](_0x510ee2,_0x473ea9);},'OBgKn':_0x58f9db[_0xd1d37a(0x1d6)],'ptDmI':function(_0x45e1d8,_0x2fc974){const _0x1548bc=_0xd1d37a;return _0x58f9db[_0x1548bc(0x199)](_0x45e1d8,_0x2fc974);},'iHstG':_0x58f9db[_0xd1d37a(0x1cc)],'yVySr':_0x58f9db['VQhZY']};if(_0x58f9db[_0xd1d37a(0x20e)](_0x58f9db['vglNs'],_0x58f9db[_0xd1d37a(0x266)]))return!![];else{const _0x337948=[],_0xc6ebfa=[];_0x370e13['Subnets'][_0xd1d37a(0x18a)](_0x5be078=>{const _0x752666=_0xd1d37a;if(_0xd7b4d9[_0x752666(0x210)](_0xd7b4d9[_0x752666(0x265)],_0xd7b4d9[_0x752666(0x265)]))_0x337948[_0x752666(0x1c0)](_0x5be078['SubnetId']);else{const _0xd9a1a2={};_0xd9a1a2[_0x752666(0x212)]=_0xd7b4d9[_0x752666(0x24a)];const _0x29ad9c=new _0x12b543[(_0x752666(0x25d))](_0xd9a1a2),_0x31dbaa={};return _0x31dbaa[_0x752666(0x1c2)]=this[_0x752666(0x1e9)],_0x29ad9c[_0x752666(0x153)](_0x31dbaa)[_0x752666(0x226)]();}});const _0x2813e2=_0xf33f26[_0xd1d37a(0x240)](_0x239f23=>{const _0x42fc46=_0xd1d37a,_0x23ba81={'aqBwH':function(_0x3d0455,_0xabf00f){const _0xc78b77=a0_0x47af;return _0xd7b4d9[_0xc78b77(0x1b0)](_0x3d0455,_0xabf00f);},'KeRfm':_0xd7b4d9[_0x42fc46(0x271)],'vgOwv':function(_0x266425,_0x398463){const _0x488873=_0x42fc46;return _0xd7b4d9[_0x488873(0x1b0)](_0x266425,_0x398463);}};if(_0xd7b4d9[_0x42fc46(0x210)](_0xd7b4d9['YDQvU'],_0xd7b4d9[_0x42fc46(0x26a)])){if(_0x337948[_0x42fc46(0x24f)](_0x239f23))return _0xd7b4d9[_0x42fc46(0x188)](_0xd7b4d9['OBgKn'],_0xd7b4d9['OBgKn'])?_0xf33e5d[_0x42fc46(0x24f)](_0x5f23a3)?!![]:(_0x7d88a1[_0x42fc46(0x1c0)](_0x564ed6),![]):!![];else{if(_0xd7b4d9[_0x42fc46(0x258)](_0xd7b4d9[_0x42fc46(0x207)],_0xd7b4d9[_0x42fc46(0x183)]))return _0xc6ebfa['push'](_0x239f23),![];else{const _0xafad1b={'jsOxN':function(_0x1295d7,_0x43d336){const _0x18c562=_0x42fc46;return _0x23ba81[_0x18c562(0x156)](_0x1295d7,_0x43d336);},'LNzwl':function(_0x5c1320,_0x12bfc0){const _0x1c9f78=_0x42fc46;return _0x23ba81[_0x1c9f78(0x156)](_0x5c1320,_0x12bfc0);},'nmCwU':_0x23ba81['KeRfm']},_0x31fac9={};_0x31fac9[_0x42fc46(0x26d)]=[_0x202db1];let _0x15d598=_0x31fac9;return new _0x3ec102((_0x4f40d6,_0x4808fe)=>{const _0x287ce3=_0x42fc46,_0x3cd094={'lzrut':function(_0x5ef609,_0xb2eb39){const _0x39c991=a0_0x47af;return _0xafad1b[_0x39c991(0x16f)](_0x5ef609,_0xb2eb39);},'tSmJt':function(_0x3bd801,_0x1bce39){return _0xafad1b['LNzwl'](_0x3bd801,_0x1bce39);}},_0x175137={};_0x175137[_0x287ce3(0x212)]=_0xafad1b[_0x287ce3(0x1ef)],_0x175137[_0x287ce3(0x18b)]=_0x200174['clusterRegion'];const _0x3773b6=new _0x18d11c['EC2'](_0x175137);_0x3773b6['describeVpcs'](_0x15d598)[_0x287ce3(0x226)]()[_0x287ce3(0x165)](_0x50329e=>{_0x3cd094['lzrut'](_0x4f40d6,!![]);})[_0x287ce3(0x259)](_0x20cca3=>{const _0x417063=_0x287ce3;_0x29923d[_0x417063(0x1e1)](_0x417063(0x1aa)+_0x2885b0+_0x417063(0x275)+_0x434351[_0x417063(0x22d)]+_0x417063(0x21a)),_0x3cd094[_0x417063(0x19c)](_0x4f40d6,![]);});});}}}else{const _0x1f16da={'phTQM':function(_0x1d808b,_0x2dce26){return _0x23ba81['aqBwH'](_0x1d808b,_0x2dce26);}},_0x75058e={};_0x75058e[_0x42fc46(0x212)]=_0x23ba81[_0x42fc46(0x1af)],_0x75058e[_0x42fc46(0x18b)]=_0x387029[_0x42fc46(0x22d)];const _0xf641e5=new _0x31fb27[(_0x42fc46(0x17d))](_0x75058e);_0xf641e5[_0x42fc46(0x20c)](_0x1d81a0)['promise']()[_0x42fc46(0x165)](_0x1f41fd=>{const _0x6de4b0=_0x42fc46;_0x23ba81[_0x6de4b0(0x1f2)](_0x24f06d,!![]);})[_0x42fc46(0x259)](_0x58cfdf=>{const _0x339b81=_0x42fc46;_0x8423f1[_0x339b81(0x1e1)](_0x339b81(0x1aa)+_0x23c4df+_0x339b81(0x275)+_0x2d32aa['clusterRegion']+_0x339b81(0x21a)),_0x1f16da[_0x339b81(0x253)](_0x4df60a,![]);});}});_0x58f9db[_0xd1d37a(0x15e)](_0x55f2ab,[_0x2813e2,_0xc6ebfa]);}})[_0x1b9aa5(0x259)](_0x51133c=>{const _0x697d77=_0x1b9aa5;_0x58f9db[_0x697d77(0x235)](_0x58f9db[_0x697d77(0x196)],_0x58f9db['npXQE'])?(logger[_0x697d77(0x1e1)](_0x697d77(0x25e)+_0xf33f26+'\x20in\x20region\x20'+global_registry[_0x697d77(0x22d)]+_0x697d77(0x251)+_0x51133c),_0x58f9db[_0x697d77(0x220)](_0x55f2ab,[![],[]])):(_0xda9a8d[_0x697d77(0x1e1)](_0x697d77(0x1aa)+_0x17c683+'\x20in\x20region\x20'+_0x6f107d[_0x697d77(0x22d)]+_0x697d77(0x21a)),_0x58f9db[_0x697d77(0x221)](_0x201bb5,![]));});}else{const _0x4eb927=_0x2c7dea['cluster'][_0x1b9aa5(0x23d)];return _0x4eb927&&_0x58f9db[_0x1b9aa5(0x20e)](_0x4eb927[_0x58f9db[_0x1b9aa5(0x1f0)]][_0x1b9aa5(0x1a9)](),_0x58f9db[_0x1b9aa5(0x21d)]);}});}}function a0_0x47af(_0x13ac18,_0x4d191e){const _0x31a49a=a0_0x31a4();return a0_0x47af=function(_0x47af2d,_0x31da61){_0x47af2d=_0x47af2d-0x14f;let _0x4bf3fc=_0x31a49a[_0x47af2d];return _0x4bf3fc;},a0_0x47af(_0x13ac18,_0x4d191e);}function a0_0x31a4(){const _0x4ce93d=['zNaiV','FHPbf','vgOwv','TJcZJ','yAFlC','isVPCPresent','SubnetId','kThdR','isClusterPresent','browserstack:managedBy','Autoscaler\x20Role\x20created.ARN:\x20','browserstack','544626GuFvgr','body','WfWMo','nodegroupName','RnGXd','toUpperCase','Authmap\x20already\x20exists.\x20Not\x20updating','nuUmp','ingress','YjRlQ','OhMKg','iHstG',',\x20Subnets\x20=>\x20','Filters','reportToGalactusAndSendToEDS','WJrzD','describeVpcs','Subnets\x20=>\x20','dMgGL','wjoBM','FDSuP','TNBfR','apiVersion','xkurd','QXyUV','PksJJ','ZeWnr','ywiiG','nBYtr','status','.\x20Please\x20Check\x20and\x20try\x20again','xlwQg','getGridHostname','KLpaf','accessKeyId','12QmZfnX','eOYGA','ciNEU','RXkfo','JqHml','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','VPC\x20=>\x20','promise','match','YItpT','nodegroup','Creating\x20Autoscaler\x20Role','Outputs','QQVRx','clusterRegion','fDSdG','GExzQ','message','warn','../config/constants','mJEjD','fAmty','praQW','getClusterInfo','zjNOD','deleteCluster','xpyOR','fdcfH','setConfig','pYaba','tags','../utils/gridComponents','DJXrl','every','BHdSh','10763ieKDhk','path','type','sZolk','ThYQX','Cluster\x20=>\x20','CxlDi','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','nfgDg','zaQTr','29500603Htqxvc','cloudProvider','Values','includes','secret','.\x20Error:\x20','LTwge','phTQM','2NOOhAi','VRYil','ClusterRole\x20=>\x20','listClusters','ptDmI','catch','ryETk','IHkDV','yFBQA','EKS','Cannot\x20find\x20subnets\x20','jxVBn','Zxlsl','webSocketUtils','EJbLA','1430086bwhKqr','KPnjx','HFRAj','yZbxT','rws','692iiTkVT','../utils/hstUtils','YDQvU','lSUEU','IUOoy','VpcIds','SkNDO','SMQZm','LOG','xhUmr','aws-sdk','zsjoO','626930jasZjk','\x20in\x20region\x20','awsConfigSet','KsAGg','asooe','QbWHL','describeCluster','AaZZI','16563wDVMCd','aqBwH','vpc-id','JPjUr','createNamespacedConfigMap','WMHlK','zQaFA','fOAtQ','checkClusterCreated','ZgrhO','describeSubnets','tcppS','efhbX','poNkp','isBrowserstackCluster','OutputValue','then','8sQpFNk','pvaCC','JvOpL','uJeJf','cloudProviderName','RMgCz','POoEi','toString','RlrMa','jsOxN','fetchLocalCreds','YRJCI','AZOCL','autoscaler-creation-failed',',VPC\x20=>\x20','-NodeGroup','exports','18fCTuJI','getKubeConfigData','Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','dXGui','\x0aaws_secret_access_key\x20=\x20','../utils/utilityMethods','EC2','maxNodes','aws-auth-cm.yaml','ZDSQZ','flnNW','TRbsA','yVySr','2016-11-15','ZZlBz','eSMIk','QSNDy','IchkO','SecurityGroups\x20=>\x20','forEach','region','DIPxZ','shAxw','AFivt','zVrrP',',\x20SecurityGroups\x20=>\x20','jKyvo','./CloudProvider','vTfXy','mapRoles','DlJTO','mjZnB','update','sendEventToBackend','xgEpR','getUserInput','zhfjh','tSmJt','KubeConfigTemplate.yaml','yeHwq','UmYHX','../utils/createClusterStack','describeNodegroup','cloudProviderAccessKey','join','kube-system','Name','TfZVk','UCBeu','nodeRole','toLowerCase','Cannot\x20find\x20VPC\x20','replace','js-yaml','cluster','mCsdb','KeRfm','tvOwp','VHcSB','bjAWX','DgYRZ','Wgilu','Xvddq','readFileAsync','[ats]\x0aaws_access_key_id\x20=\x20','ERROR','Skipping\x20Autoscaler\x20due\x20to:\x20','byCqE','certificateAuthority','configureIfNotConfigured','iRKce','VKVcj','createAuthConfigMap','push','YkQmG','name','febds','meciB','3|1|2|4|0','haEGK','data','accessKey','yMFqu','2017-11-01','zvHPc','qKBhl','OQUPZ','endpoint','eCFwd','\x20SECRET\x20KEY:\x20','setupAutoscaler','NFLSQ','hostname','yxVOJ','NBfkm','tESpj',',\x20NodeRole\x20=>\x20','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','JKbCR','utf-8','info','templates','clusters','split','azCnc','\x20ACCESS\x20KEY:\x20','error','HSdVn','MUrII','Stacks','AWSCloudProvider','gAjyq','4912770CddWlj','cloudProviderSecretKey','clusterName','setupNewCluster','neFWV','ntytT','FSIhv','vNTJK','nmCwU'];a0_0x31a4=function(){return _0x4ce93d;};return a0_0x31a4();}const a0_0x143ad7={};a0_0x143ad7[a0_0x4edae1(0x1e5)]=AWSCloudProvider,module[a0_0x4edae1(0x176)]=a0_0x143ad7;
@@ -1 +1 @@
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
+ const a1_0x401023=a1_0x48cf;(function(_0x5d085e,_0x3dde23){const _0x31d694=a1_0x48cf,_0xba4ffa=_0x5d085e();while(!![]){try{const _0x43d2db=parseInt(_0x31d694(0xcf))/0x1+-parseInt(_0x31d694(0xd9))/0x2*(parseInt(_0x31d694(0xd6))/0x3)+-parseInt(_0x31d694(0xcd))/0x4+parseInt(_0x31d694(0xdd))/0x5*(-parseInt(_0x31d694(0xd4))/0x6)+-parseInt(_0x31d694(0xd3))/0x7+-parseInt(_0x31d694(0xde))/0x8*(-parseInt(_0x31d694(0xdc))/0x9)+parseInt(_0x31d694(0xd1))/0xa;if(_0x43d2db===_0x3dde23)break;else _0xba4ffa['push'](_0xba4ffa['shift']());}catch(_0x3dcc0f){_0xba4ffa['push'](_0xba4ffa['shift']());}}}(a1_0x4251,0x4f5ec));const fs=require('fs'),path=require(a1_0x401023(0xd8)),yaml=require(a1_0x401023(0xda)),{logger}=require(a1_0x401023(0xd7)),{CloudProvider}=require(a1_0x401023(0xcb)),{AZURE,WS_EVENTS,global_registry}=require('../config/constants'),{deleteRoutingDeps}=require(a1_0x401023(0xd0));function a1_0x48cf(_0x3d3deb,_0x398c60){const _0x425174=a1_0x4251();return a1_0x48cf=function(_0x48cfa8,_0x9601eb){_0x48cfa8=_0x48cfa8-0xcb;let _0xd1cb3c=_0x425174[_0x48cfa8];return _0xd1cb3c;},a1_0x48cf(_0x3d3deb,_0x398c60);}class AzureCloudProvider extends CloudProvider{constructor(_0x327acc,_0x396b1b,_0x154366,_0x21a30e){const _0x365310=a1_0x401023,_0x2afc9a={};_0x2afc9a['sZCIU']='0|2|1|4|3|5';const _0x32e14f=_0x2afc9a,_0x397a8a=_0x32e14f[_0x365310(0xce)][_0x365310(0xcc)]('|');let _0x160497=0x0;while(!![]){switch(_0x397a8a[_0x160497++]){case'0':super(AZURE,_0x327acc,_0x396b1b,_0x154366,_0x21a30e);continue;case'1':this['containerClient']=null;continue;case'2':this['clusterInfo']=null;continue;case'3':this['resourceClient']=null;continue;case'4':this['storageClient']=null;continue;case'5':this[_0x365310(0xd5)]=null;continue;}break;}}}const a1_0x4e9498={};function a1_0x4251(){const _0x4f1140=['12531080xUjhBU','AzureCloudProvider','1558711UdyjRD','1116942CFvAye','networkClient','432114jzGcYt','../config/logger','path','8aZurEI','js-yaml','exports','358929dWpXxg','5xqbUwg','16dEAPMm','./CloudProvider','split','2001736hLDUJx','sZCIU','477646ufbMVH','../utils/gridComponents'];a1_0x4251=function(){return _0x4f1140;};return a1_0x4251();}a1_0x4e9498[a1_0x401023(0xd2)]=AzureCloudProvider,module[a1_0x401023(0xdb)]=a1_0x4e9498;
@@ -1 +1 @@
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
+ var a2_0x2a821c=a2_0x3be6;(function(_0x28fbf6,_0x50bf34){var _0x3a8e43=a2_0x3be6,_0x45b506=_0x28fbf6();while(!![]){try{var _0x5ec1a4=parseInt(_0x3a8e43(0x1e9))/0x1+parseInt(_0x3a8e43(0x1f6))/0x2*(-parseInt(_0x3a8e43(0x1ea))/0x3)+parseInt(_0x3a8e43(0x1fa))/0x4*(-parseInt(_0x3a8e43(0x1f2))/0x5)+parseInt(_0x3a8e43(0x1f3))/0x6*(parseInt(_0x3a8e43(0x1ec))/0x7)+parseInt(_0x3a8e43(0x1ed))/0x8*(parseInt(_0x3a8e43(0x1f0))/0x9)+-parseInt(_0x3a8e43(0x1ef))/0xa+parseInt(_0x3a8e43(0x1f8))/0xb;if(_0x5ec1a4===_0x50bf34)break;else _0x45b506['push'](_0x45b506['shift']());}catch(_0x5a0665){_0x45b506['push'](_0x45b506['shift']());}}}(a2_0x1b8a,0x4013f));class CloudProvider{constructor(_0x577921,_0x1de30b,_0x3b35d0,_0x94ffb4,_0x264e26){var _0x12266f=a2_0x3be6,_0x55c305={};_0x55c305['zMpOO']=_0x12266f(0x1f1);var _0x4ba22e=_0x55c305,_0x37af8f=_0x4ba22e['zMpOO'][_0x12266f(0x1f4)]('|'),_0x33208e=0x0;while(!![]){switch(_0x37af8f[_0x33208e++]){case'0':this[_0x12266f(0x1f7)]=_0x3b35d0;continue;case'1':this[_0x12266f(0x1ee)]=_0x577921;continue;case'2':this[_0x12266f(0x1f5)]=_0x94ffb4;continue;case'3':this[_0x12266f(0x1eb)]=_0x264e26;continue;case'4':this['clusterName']=_0x1de30b;continue;}break;}}}function a2_0x3be6(_0x268d2c,_0x3fb78a){var _0x1b8a6a=a2_0x1b8a();return a2_0x3be6=function(_0x3be6a5,_0x923f83){_0x3be6a5=_0x3be6a5-0x1e9;var _0x3f5ed7=_0x1b8a6a[_0x3be6a5];return _0x3f5ed7;},a2_0x3be6(_0x268d2c,_0x3fb78a);}function a2_0x1b8a(){var _0x52312f=['9mvNOdj','webSocketUtils','131341oPQXzU','61840nNHvvB','cloudProviderName','3799090LHVvdU','9lzoJLg','1|4|0|2|3','1847865aRAFwA','126toXWcV','split','rws','90198aTnuuj','gridName','7721219fxfjqn','CloudProvider','4SOCjut','43560eenBOY'];a2_0x1b8a=function(){return _0x52312f;};return a2_0x1b8a();}var a2_0x41d8f2={};a2_0x41d8f2[a2_0x2a821c(0x1f9)]=CloudProvider,module['exports']=a2_0x41d8f2;
@@ -1 +1 @@
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
+ function a3_0x3646(_0x5e3924,_0x325a1a){const _0x54affb=a3_0x54af();return a3_0x3646=function(_0x3646bc,_0x334a3a){_0x3646bc=_0x3646bc-0x11f;let _0x10e27a=_0x54affb[_0x3646bc];return _0x10e27a;},a3_0x3646(_0x5e3924,_0x325a1a);}const a3_0x27a9a8=a3_0x3646;(function(_0x5b1024,_0x44754b){const _0x14de1e=a3_0x3646,_0xf57592=_0x5b1024();while(!![]){try{const _0x2201c6=parseInt(_0x14de1e(0x195))/0x1*(parseInt(_0x14de1e(0x1ef))/0x2)+-parseInt(_0x14de1e(0x1b8))/0x3+-parseInt(_0x14de1e(0x174))/0x4*(-parseInt(_0x14de1e(0x1f2))/0x5)+parseInt(_0x14de1e(0x1eb))/0x6*(-parseInt(_0x14de1e(0x12b))/0x7)+parseInt(_0x14de1e(0x197))/0x8*(-parseInt(_0x14de1e(0x1e5))/0x9)+parseInt(_0x14de1e(0x176))/0xa*(parseInt(_0x14de1e(0x16f))/0xb)+-parseInt(_0x14de1e(0x186))/0xc*(parseInt(_0x14de1e(0x12e))/0xd);if(_0x2201c6===_0x44754b)break;else _0xf57592['push'](_0xf57592['shift']());}catch(_0x5469b4){_0xf57592['push'](_0xf57592['shift']());}}}(a3_0x54af,0xa8d9a));const fs=require('fs'),path=require(a3_0x27a9a8(0x23e)),cp=require('child_process'),{google}=require('googleapis'),compute=require(a3_0x27a9a8(0x229)),container=require('@google-cloud/container'),{ProjectsClient}=require(a3_0x27a9a8(0x1bc))['v3'],{logger}=require(a3_0x27a9a8(0x23b)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig}=require(a3_0x27a9a8(0x1f8)),{deleteRoutingDeps}=require('../utils/gridComponents'),{GCP,WS_EVENTS,global_registry}=require('../config/constants');function a3_0x54af(){const _0x4c4fc5=['GKE\x20Cluster\x20deletion\x20failed','nodePools','GnQxL','maxNodes','storage.objects.update','zIvgD','bONSi','jmmZF','keyFile','Xsbcm','gke_','toLowerCase','loadBalancer','Cluster\x20creation\x20failed','JlsOe','Turboscale\x20Custom\x20Role','default','getIamPolicy','setupNewCluster','storage.buckets.listEffectiveTags','bqPHW','BJFBh','rEQvC','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','gblPd','ihudX','masterAuth','storage.multipartUploads.create','WeSWu','gkecluster.json','gcpresources','members','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','Cannot\x20find\x20subnets\x20','maxNodeCount','projects/','listClusters','RASOT','templates','locations','1233gplwJi','HBhqp','xpTAr','SYild','getClient','dVazt','8099256TjHvAW','managedby','serviceAccountName','setupServiceAccount','2NmWGxV','checkServiceAccount','VEVGp','3093490rrSQph','status','instanceType','replace','DAcdp','dlmFv','../utils/utilityMethods','browserstack','type','storage.buckets.getIamPolicy','cOeSA','error','rjxHA','Wjkqh','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','tTNWT','huuPj','iam','serviceAccount:','mzuzk','gcpConfigSet','role','mTRRA','QNylj','UvCkU','xRysl','hROro','/subnetworks/','oWHYV','BEism','resourcemanagerClient','gRprx','title','NSAhY','KrQue','nzOWZ','isBrowserstackCluster','YJJeu','storage.buckets.listTagBindings','storage.buckets.delete','zWNaG','storage.buckets.createTagBinding','yJJsf','length','Service\x20account\x20already\x20exists,\x20skipping','https://','cloudProvider','parse','DIawc','isVPCPresent','rQAFu','setConfig','storage.buckets.update','ctBhf','/clusters/','@google-cloud/compute','DONE','FDMEV','storage.buckets.list','execSync','Creating\x20GKE\x20Cluster','Deleting\x20the\x20cluster\x20','minNodeCount','KXPBX','2|1|4|5|3|0','clusters','qnNDw','zzCTA','ClusterManagerClient','YcLMG','storage.objects.getIamPolicy','deleteCluster','TgWKg','../config/logger','project_id','get','path','RwuAI','storage.objects.get','machineType','DipSu','join','bOeCT','KubeConfigTemplate.yaml','clusterName','autoscaling','dYxrz','exec','bnLPO','configureIfNotConfigured','sendEventToBackend','WGXvV','storage.buckets.getObjectInsights','nEKdU','getCluster','dSSUl','rws','acckz','turboscale_custom_role','pOtmx','gZSgn','NetworksClient','.iam.gserviceaccount.com','IIYrO','EQfxr','dwjwR','vgfgY','isClusterPresent','readFileAsync','toString','IQhMm','GIvaB','location','7dgRtPX','nzsJE','delay','221YHUUAy','GoogleCloudProvider','TzimU','lAkBV','storage.buckets.deleteTagBinding','ljpWz','hYnWq','storage.objects.delete','AkLrS','oPvKg','turboscale-service-account','BSOJV','fKBMn','credentialsPath','/roles/','setIamPolicy','create','isConfigured','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','xoHmd','DndjH','endpoint','xTERZ','gjYkE','includedPermissions','tsXlw','YjclY','serviceAccounts','bRNwv','sCUCF','iamClient','rXSrk','Jfxcb','ocSrE','LOG','RUNNING','csDYe','list','stack','getClusterInfo','exports','WcEDc','createCluster','clusterRegion','iYjhz','BUFkT','sYKtN','info','sendGCPInfoToHST','uoWOf','name','body','LXHLI','storage.multipartUploads.listParts','projects','WnPhH','https://www.googleapis.com/auth/cloud-platform','webSocketUtils','wvNnX','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','project','/global/networks/','QvdEL','xoobh','bstackUsername','9193063nKwPIW','containerClient','iam.serviceAccounts.signBlob','jjHeC','yNddE','4qaTqLd','fetchLocalCreds','10rWhWnh','split','config','storage.objects.create','WTqhw','HHjUG','RYhMf','AvbcZ','mLSJL','FjctF','gcloud\x20auth\x20login\x20--cred-file=','sZCxe','Cluster\x20deletion\x20completed','/locations/','siDod','accessKey','203112eWTFaf','ZHfit','tqvWY','bstackAccesskey','roles','regionmap.json','yuQTg','iQfoB','networkClient','push','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','csEzT','network','getGridHostname','FUdOY','1230806rSRMeo','.\x20Error:\x20','7664onPFUE','/regions/','xTtof','ZumLR','RESOURCES','AqXmG','LbHZt','cloudProviderName','sGFdc','pMDuo','https://www.googleapis.com/compute/v1/projects/','accounts','Rrmfm','requestBody','auth','vpcInfo','data','ZSwyh','message','parent','Wxmqv','storage.objects.setIamPolicy','GphaL','customRoleName','tjtVe','XPssk','ZYsCj','utf-8','minNodes','storage.buckets.get','alwDJ','projectId','feGeL','674289nESnDu','zqmsc','resourceLabels','oGfCO','@google-cloud/resource-manager'];a3_0x54af=function(){return _0x4c4fc5;};return a3_0x54af();}class GoogleCloudProvider extends CloudProvider{constructor(_0x1115b7,_0x274582,_0x583bf1,_0x474e4c){const _0x525de2=a3_0x27a9a8,_0x22b2de={};_0x22b2de[_0x525de2(0x1bb)]='8|4|0|2|7|5|3|6|1',_0x22b2de[_0x525de2(0x201)]=_0x525de2(0x138),_0x22b2de['csDYe']=_0x525de2(0x254);const _0x23d6a1=_0x22b2de,_0x5b8c44=_0x23d6a1[_0x525de2(0x1bb)][_0x525de2(0x177)]('|');let _0x167ff4=0x0;while(!![]){switch(_0x5b8c44[_0x167ff4++]){case'0':this['networkClient']=null;continue;case'1':this[_0x525de2(0x1ed)]=_0x23d6a1[_0x525de2(0x201)];continue;case'2':this[_0x525de2(0x210)]=null;continue;case'3':this[_0x525de2(0x1b6)]=null;continue;case'4':this['containerClient']=null;continue;case'5':this['credentialsPath']=null;continue;case'6':this['customRoleName']=_0x23d6a1[_0x525de2(0x152)];continue;case'7':this[_0x525de2(0x14c)]=null;continue;case'8':super(GCP,_0x1115b7,_0x274582,_0x583bf1,_0x474e4c);continue;}break;}}[a3_0x27a9a8(0x24b)](){const _0xbf28c6=a3_0x27a9a8,_0x4ca645={};_0x4ca645['iehIP']=function(_0x291419,_0x5bb5d3){return _0x291419!==_0x5bb5d3;},_0x4ca645[_0xbf28c6(0x134)]=_0xbf28c6(0x21c),_0x4ca645['sTBcr']=_0xbf28c6(0x205);const _0x4d5f28=_0x4ca645;if(!this[_0xbf28c6(0x13f)]()){if(_0x4d5f28['iehIP'](_0x4d5f28[_0xbf28c6(0x134)],_0x4d5f28['sTBcr']))this['setConfig']();else return _0x53142f[_0xbf28c6(0x1fd)](_0xbf28c6(0x1de)+_0x314f22+'.\x20Error:\x20'+_0x49feda),[![],[]];}}[a3_0x27a9a8(0x13f)](){const _0x40aa16=a3_0x27a9a8,_0x5b7e1d={};_0x5b7e1d[_0x40aa16(0x188)]=function(_0x2c5270,_0x11b08f){return _0x2c5270===_0x11b08f;};const _0x4edff3=_0x5b7e1d;return _0x4edff3[_0x40aa16(0x188)](global_registry[_0x40aa16(0x206)],!![]);}[a3_0x27a9a8(0x225)](){const _0x2efbec=a3_0x27a9a8,_0x177767=this[_0x2efbec(0x13b)],_0x304c69={};_0x304c69[_0x2efbec(0x1c5)]=_0x177767,this[_0x2efbec(0x170)]=new container['v1'][(_0x2efbec(0x236))](_0x304c69);const _0x5ea950={};_0x5ea950[_0x2efbec(0x1c5)]=_0x177767,this[_0x2efbec(0x18e)]=new compute['v1'][(_0x2efbec(0x11f))](_0x5ea950);const _0x5bb5ef={};_0x5bb5ef[_0x2efbec(0x1c5)]=_0x177767,this[_0x2efbec(0x210)]=new ProjectsClient(_0x5bb5ef),this[_0x2efbec(0x14c)]=google[_0x2efbec(0x203)]('v1'),global_registry[_0x2efbec(0x206)]=!![];}async['getUserInput'](_0x61e6a9,_0x2b6846){const _0x3b3608=a3_0x27a9a8,_0x1dc2b6={'WnPhH':function(_0x19b002,_0x299efe){return _0x19b002(_0x299efe);},'TgWKg':function(_0x3505fa){return _0x3505fa();},'xpTAr':'gcp_credentials.json'},_0x300b73=await _0x1dc2b6[_0x3b3608(0x165)](_0x61e6a9,_0x3b3608(0x200));let _0x56196b=await fs[_0x3b3608(0x126)](_0x300b73);_0x56196b=_0x56196b['toString']();const _0x30a704=_0x1dc2b6[_0x3b3608(0x23a)](getDirForConfig),_0x5bf78a=path[_0x3b3608(0x243)](_0x30a704,_0x1dc2b6[_0x3b3608(0x1e7)]);fs['writeFileSync'](_0x5bf78a,_0x56196b),this[_0x3b3608(0x13b)]=_0x5bf78a;const _0x27441b={};return _0x27441b[_0x3b3608(0x1c5)]=_0x5bf78a,_0x2b6846['cloudProvider'][GCP]=_0x27441b,_0x56196b=JSON[_0x3b3608(0x221)](_0x56196b),this[_0x3b3608(0x1b6)]=_0x56196b[_0x3b3608(0x23c)],_0x2b6846;}async[a3_0x27a9a8(0x175)](_0x322449){const _0x3bc92e=a3_0x27a9a8;this[_0x3bc92e(0x13b)]=_0x322449[this[_0x3bc92e(0x19e)]][_0x3bc92e(0x1c5)];let _0x25e6b4=await fs[_0x3bc92e(0x126)](this[_0x3bc92e(0x13b)]);_0x25e6b4=JSON[_0x3bc92e(0x221)](_0x25e6b4),this['projectId']=_0x25e6b4[_0x3bc92e(0x23c)];}[a3_0x27a9a8(0x193)](_0x577261){const _0x41b1ea=a3_0x27a9a8;return _0x577261[_0x41b1ea(0x161)][_0x41b1ea(0x1f3)][_0x41b1ea(0x1c9)]['ingress'][0x0]['ip'];}async[a3_0x27a9a8(0x216)](){const _0x559711=a3_0x27a9a8,_0x75e1ff={};_0x75e1ff[_0x559711(0x15c)]=function(_0x1e2aa2,_0x177ec4){return _0x1e2aa2===_0x177ec4;},_0x75e1ff['SBkQt']=_0x559711(0x1f9),_0x75e1ff['zWNaG']=function(_0x43a047,_0x11c71c){return _0x43a047!==_0x11c71c;},_0x75e1ff['BEism']=_0x559711(0x237),_0x75e1ff[_0x559711(0x15f)]=_0x559711(0x1d5),_0x75e1ff[_0x559711(0x1bf)]=_0x559711(0x172),_0x75e1ff['YjclY']=_0x559711(0x1b0);const _0x6b110d=_0x75e1ff;try{if(_0x6b110d[_0x559711(0x21a)](_0x6b110d[_0x559711(0x20f)],_0x6b110d[_0x559711(0x20f)]))return!![];else{const _0x887094=await this[_0x559711(0x155)]();if(_0x887094[0x0]?.['resourceLabels']?.[_0x559711(0x1ec)]){if(_0x6b110d[_0x559711(0x15c)](_0x6b110d['uoWOf'],_0x6b110d[_0x559711(0x15f)])){const _0x408dbd=_0x887094[0x0]?.['resourceLabels']?.['managedby'];return _0x408dbd&&_0x6b110d['sYKtN'](_0x408dbd[_0x559711(0x1c8)](),_0x6b110d['SBkQt']);}else return!![];}}}catch(_0x3161a1){if(_0x6b110d[_0x559711(0x21a)](_0x6b110d[_0x559711(0x1bf)],_0x6b110d[_0x559711(0x148)]))return![];else{const _0x127dcd=_0x3332a9[0x0]?.[_0x559711(0x1ba)]?.[_0x559711(0x1ec)];return _0x127dcd&&_0x6b110d[_0x559711(0x15c)](_0x127dcd[_0x559711(0x1c8)](),_0x6b110d['SBkQt']);}}return![];}async['isClusterPresent'](){const _0x387c24=a3_0x27a9a8,_0x176edd={};_0x176edd[_0x387c24(0x128)]=function(_0x3934b9,_0x56d37c){return _0x3934b9===_0x56d37c;},_0x176edd[_0x387c24(0x208)]=_0x387c24(0x1e2),_0x176edd['WeSWu']=function(_0x55ca1b,_0x443ed4){return _0x55ca1b===_0x443ed4;},_0x176edd[_0x387c24(0x133)]=_0x387c24(0x1a3);const _0x14ef6=_0x176edd;this[_0x387c24(0x24b)]();const _0x181106={};_0x181106[_0x387c24(0x1aa)]=_0x387c24(0x1e0)+this[_0x387c24(0x1b6)]+_0x387c24(0x183)+global_registry[_0x387c24(0x159)];const _0x4035fc=_0x181106,_0x21045=await this[_0x387c24(0x170)][_0x387c24(0x1e1)](_0x4035fc);for(const _0x12f9e9 of _0x21045[0x0][_0x387c24(0x233)]){if(_0x14ef6['IQhMm'](_0x14ef6[_0x387c24(0x208)],_0x14ef6[_0x387c24(0x208)])){if(_0x14ef6['WeSWu'](_0x12f9e9['name'],this['clusterName']))return _0x14ef6[_0x387c24(0x1d9)](_0x14ef6[_0x387c24(0x133)],_0x14ef6[_0x387c24(0x133)])?!![]:![];}else return _0x37bc8c[_0x387c24(0x161)]['status'][_0x387c24(0x1c9)]['ingress'][0x0]['ip'];}return![];}async['getClusterInfo'](){const _0x55568f=a3_0x27a9a8,_0x2d97d5=await this[_0x55568f(0x170)][_0x55568f(0x250)]({'name':_0x55568f(0x1e0)+this[_0x55568f(0x1b6)]+_0x55568f(0x183)+global_registry[_0x55568f(0x159)]+_0x55568f(0x228)+this['clusterName']});return _0x2d97d5;}async['getKubeConfigData'](){const _0x3bc0e4=a3_0x27a9a8,_0x1d9896={};_0x1d9896[_0x3bc0e4(0x1ab)]=_0x3bc0e4(0x1e3),_0x1d9896[_0x3bc0e4(0x121)]=_0x3bc0e4(0x1db),_0x1d9896[_0x3bc0e4(0x14a)]=_0x3bc0e4(0x245);const _0xee4630=_0x1d9896;cp[_0x3bc0e4(0x22d)](_0x3bc0e4(0x1dd)),cp[_0x3bc0e4(0x249)](_0x3bc0e4(0x180)+this[_0x3bc0e4(0x13b)]);const _0x56e7c5=await this[_0x3bc0e4(0x155)](),_0x490d12=_0x3bc0e4(0x1c7)+this[_0x3bc0e4(0x1b6)]+'_'+global_registry[_0x3bc0e4(0x159)]+'_'+this[_0x3bc0e4(0x246)];let _0x31cb7e=await fs[_0x3bc0e4(0x126)](path[_0x3bc0e4(0x243)](__dirname,'..',_0xee4630[_0x3bc0e4(0x1ab)],_0xee4630[_0x3bc0e4(0x121)],_0xee4630[_0x3bc0e4(0x14a)]));return _0x31cb7e=_0x31cb7e[_0x3bc0e4(0x127)](),_0x31cb7e=_0x31cb7e[_0x3bc0e4(0x1f5)](/<CLUSTER_NAME>/g,_0x490d12),_0x31cb7e=_0x31cb7e[_0x3bc0e4(0x1f5)](/<CLUSTER_URL>/g,_0x3bc0e4(0x21f)+_0x56e7c5[0x0][_0x3bc0e4(0x143)]),_0x31cb7e=_0x31cb7e[_0x3bc0e4(0x1f5)](/<CERTIFICATE_DATA>/g,_0x56e7c5[0x0][_0x3bc0e4(0x1d7)]['clusterCaCertificate']),_0x31cb7e;}async[a3_0x27a9a8(0x1f0)](){const _0x12e411=a3_0x27a9a8,_0x419f93={};_0x419f93[_0x12e411(0x1c6)]='GKE\x20Cluster\x20deletion\x20failed',_0x419f93['dqmZK']=_0x12e411(0x166),_0x419f93[_0x12e411(0x255)]=function(_0x1fa81e,_0x59f574){return _0x1fa81e===_0x59f574;},_0x419f93[_0x12e411(0x202)]='vzsFr',_0x419f93[_0x12e411(0x123)]=_0x12e411(0x211),_0x419f93['dVazt']=function(_0x34063c,_0x300e30){return _0x34063c===_0x300e30;},_0x419f93[_0x12e411(0x1ff)]=function(_0x19e117,_0x2856a9){return _0x19e117===_0x2856a9;},_0x419f93[_0x12e411(0x253)]=_0x12e411(0x24a),_0x419f93[_0x12e411(0x168)]=_0x12e411(0x235);const _0x4a087f=_0x419f93,_0x34427f={};_0x34427f['scopes']=[_0x4a087f['dqmZK']],_0x34427f['keyFile']=this[_0x12e411(0x13b)];const _0x1671cc=await google[_0x12e411(0x1a5)]['getClient'](_0x34427f),_0x404c6e=await this[_0x12e411(0x14c)][_0x12e411(0x164)][_0x12e411(0x149)]['list']({'name':'projects/'+this[_0x12e411(0x1b6)],'auth':_0x1671cc});for(const _0x3e6f7a of _0x404c6e?.[_0x12e411(0x1a7)]?.[_0x12e411(0x1a2)]){if(_0x4a087f[_0x12e411(0x255)](_0x4a087f[_0x12e411(0x202)],_0x4a087f[_0x12e411(0x123)])){const _0x4a794e=this['credentialsPath'],_0x3ca281={};_0x3ca281[_0x12e411(0x1c5)]=_0x4a794e,this[_0x12e411(0x170)]=new _0x287972['v1']['ClusterManagerClient'](_0x3ca281);const _0x25e904={};_0x25e904[_0x12e411(0x1c5)]=_0x4a794e,this['networkClient']=new _0x18a0ea['v1']['NetworksClient'](_0x25e904);const _0x206dd2={};_0x206dd2['keyFile']=_0x4a794e,this[_0x12e411(0x210)]=new _0xa2c090(_0x206dd2),this[_0x12e411(0x14c)]=_0x4c3dc2[_0x12e411(0x203)]('v1'),_0x47129c[_0x12e411(0x206)]=!![];}else{if(_0x4a087f[_0x12e411(0x1ea)](_0x3e6f7a?.[_0x12e411(0x160)],_0x12e411(0x1e0)+this[_0x12e411(0x1b6)]+'/serviceAccounts/'+this[_0x12e411(0x1ed)]+'@'+this['projectId']+_0x12e411(0x120))){if(_0x4a087f[_0x12e411(0x1ff)](_0x4a087f['acckz'],_0x4a087f[_0x12e411(0x168)])){_0x24fe59['info'](_0x4a087f[_0x12e411(0x1c6)]);throw _0x252b97;}else return!![];}}}return![];}async[a3_0x27a9a8(0x1ee)](){const _0x21eefc=a3_0x27a9a8,_0xdf9c79={};_0xdf9c79[_0x21eefc(0x20c)]=function(_0x4c5ce6,_0x4ae452){return _0x4c5ce6===_0x4ae452;},_0xdf9c79[_0x21eefc(0x15a)]=function(_0x5edb06,_0x4c36db){return _0x5edb06===_0x4c36db;},_0xdf9c79[_0x21eefc(0x1c2)]=_0x21eefc(0x20e),_0xdf9c79[_0x21eefc(0x199)]=_0x21eefc(0x19c),_0xdf9c79[_0x21eefc(0x137)]=_0x21eefc(0x21e),_0xdf9c79[_0x21eefc(0x224)]='Creating\x20service\x20account',_0xdf9c79[_0x21eefc(0x14b)]=_0x21eefc(0x166),_0xdf9c79[_0x21eefc(0x18c)]=_0x21eefc(0x171),_0xdf9c79[_0x21eefc(0x157)]='storage.buckets.create',_0xdf9c79[_0x21eefc(0x144)]=_0x21eefc(0x21b),_0xdf9c79[_0x21eefc(0x18d)]=_0x21eefc(0x219),_0xdf9c79[_0x21eefc(0x1cb)]=_0x21eefc(0x132),_0xdf9c79[_0x21eefc(0x1a0)]=_0x21eefc(0x1b4),_0xdf9c79['fncRi']=_0x21eefc(0x1fb),_0xdf9c79['vgfgY']=_0x21eefc(0x24e),_0xdf9c79[_0x21eefc(0x17c)]=_0x21eefc(0x22c),_0xdf9c79[_0x21eefc(0x14e)]=_0x21eefc(0x1d0),_0xdf9c79[_0x21eefc(0x1d1)]=_0x21eefc(0x218),_0xdf9c79[_0x21eefc(0x209)]='storage.buckets.setIamPolicy',_0xdf9c79[_0x21eefc(0x16c)]=_0x21eefc(0x226),_0xdf9c79[_0x21eefc(0x173)]='storage.multipartUploads.abort',_0xdf9c79[_0x21eefc(0x234)]=_0x21eefc(0x1d8),_0xdf9c79[_0x21eefc(0x181)]='storage.multipartUploads.list',_0xdf9c79[_0x21eefc(0x20a)]=_0x21eefc(0x163),_0xdf9c79[_0x21eefc(0x1af)]=_0x21eefc(0x179),_0xdf9c79[_0x21eefc(0x242)]=_0x21eefc(0x135),_0xdf9c79[_0x21eefc(0x16d)]=_0x21eefc(0x240),_0xdf9c79[_0x21eefc(0x145)]=_0x21eefc(0x238),_0xdf9c79[_0x21eefc(0x13a)]='storage.objects.list',_0xdf9c79[_0x21eefc(0x1a8)]=_0x21eefc(0x1ac),_0xdf9c79[_0x21eefc(0x1f7)]=_0x21eefc(0x1c1),_0xdf9c79[_0x21eefc(0x14d)]=_0x21eefc(0x1cc),_0xdf9c79['KrQue']=_0x21eefc(0x1d4);const _0x216d75=_0xdf9c79,_0x58feed=await this[_0x21eefc(0x1f0)]();if(_0x58feed){if(_0x216d75['iYjhz'](_0x216d75[_0x21eefc(0x1c2)],_0x216d75[_0x21eefc(0x199)]))return _0x216d75['hROro'](_0x3a3a42[_0x21eefc(0x206)],!![]);else{logger[_0x21eefc(0x15d)](_0x216d75[_0x21eefc(0x137)]);return;}}logger[_0x21eefc(0x15d)](_0x216d75[_0x21eefc(0x224)]);const _0x4d16aa={};_0x4d16aa['scopes']=[_0x216d75[_0x21eefc(0x14b)]],_0x4d16aa[_0x21eefc(0x1c5)]=this['credentialsPath'];const _0x5de611=await google[_0x21eefc(0x1a5)][_0x21eefc(0x1e9)](_0x4d16aa),_0x1f7e90={};_0x1f7e90[_0x21eefc(0x146)]=[_0x216d75['yuQTg'],_0x216d75[_0x21eefc(0x157)],_0x216d75[_0x21eefc(0x144)],_0x216d75[_0x21eefc(0x18d)],_0x216d75[_0x21eefc(0x1cb)],_0x216d75['pMDuo'],_0x216d75['fncRi'],_0x216d75[_0x21eefc(0x124)],_0x216d75['RYhMf'],_0x216d75[_0x21eefc(0x14e)],_0x216d75[_0x21eefc(0x1d1)],_0x216d75['QNylj'],_0x216d75['QvdEL'],_0x216d75[_0x21eefc(0x173)],_0x216d75[_0x21eefc(0x234)],_0x216d75[_0x21eefc(0x181)],_0x216d75['UvCkU'],_0x216d75['tjtVe'],_0x216d75[_0x21eefc(0x242)],_0x216d75[_0x21eefc(0x16d)],_0x216d75[_0x21eefc(0x145)],_0x216d75[_0x21eefc(0x13a)],_0x216d75[_0x21eefc(0x1a8)],_0x216d75[_0x21eefc(0x1f7)]],_0x1f7e90[_0x21eefc(0x212)]=_0x216d75[_0x21eefc(0x14d)],await this[_0x21eefc(0x14c)]['organizations'][_0x21eefc(0x18a)][_0x21eefc(0x13e)]({'parent':_0x21eefc(0x1e0)+this[_0x21eefc(0x1b6)],'requestBody':{'role':_0x1f7e90,'roleId':this[_0x21eefc(0x1ae)]},'auth':_0x5de611});const _0x50041b={};_0x50041b['name']=_0x21eefc(0x1e0)+this[_0x21eefc(0x1b6)],_0x50041b[_0x21eefc(0x1a4)]={},_0x50041b[_0x21eefc(0x1a5)]=_0x5de611,_0x50041b[_0x21eefc(0x1a4)]['accountId']=this[_0x21eefc(0x1ed)];const _0x459b0=_0x50041b;await this['iamClient']['projects'][_0x21eefc(0x149)]['create'](_0x459b0);let _0x15c283=await this[_0x21eefc(0x210)][_0x21eefc(0x1ce)]({'resource':_0x21eefc(0x1e0)+this[_0x21eefc(0x1b6)]});_0x15c283=_0x15c283[0x0]['bindings'];const _0x2ce8ea={};_0x2ce8ea[_0x21eefc(0x207)]='projects/'+this[_0x21eefc(0x1b6)]+_0x21eefc(0x13c)+this[_0x21eefc(0x1ae)],_0x2ce8ea[_0x21eefc(0x1dc)]=[_0x21eefc(0x204)+this[_0x21eefc(0x1ed)]+'@'+this[_0x21eefc(0x1b6)]+_0x21eefc(0x120)],_0x15c283['push'](_0x2ce8ea);const _0x20244a={};_0x20244a['bindings']=_0x15c283,await this[_0x21eefc(0x210)][_0x21eefc(0x13d)]({'resource':_0x21eefc(0x1e0)+this[_0x21eefc(0x1b6)],'policy':_0x20244a}),logger[_0x21eefc(0x15d)](_0x216d75[_0x21eefc(0x214)]);}async[a3_0x27a9a8(0x1cf)](_0x3a2b3d=a3_0x27a9a8(0x1cd),_0x5567ae=[a3_0x27a9a8(0x1cd)]){const _0x56ce04=a3_0x27a9a8,_0x4d46bd={};_0x4d46bd[_0x56ce04(0x15b)]=_0x56ce04(0x232),_0x4d46bd[_0x56ce04(0x136)]=_0x56ce04(0x190),_0x4d46bd['ctBhf']=_0x56ce04(0x169);const _0x14cc75=_0x4d46bd,_0x56b60c=_0x14cc75[_0x56ce04(0x15b)]['split']('|');let _0x42b564=0x0;while(!![]){switch(_0x56b60c[_0x42b564++]){case'0':return!![];case'1':const _0x1c8cb6={};_0x1c8cb6['type']=WS_EVENTS[_0x56ce04(0x150)],_0x1c8cb6[_0x56ce04(0x1a9)]=_0x14cc75['AkLrS'],this[_0x56ce04(0x167)][_0x56ce04(0x24c)](this[_0x56ce04(0x252)],_0x1c8cb6);continue;case'2':this['sendGCPInfoToHST'](this[_0x56ce04(0x252)]);continue;case'3':await this[_0x56ce04(0x158)](_0x3a2b3d,_0x5567ae);continue;case'4':logger[_0x56ce04(0x15d)](_0x14cc75[_0x56ce04(0x227)]);continue;case'5':await this[_0x56ce04(0x1ee)]();continue;}break;}}async[a3_0x27a9a8(0x158)](_0x464440=a3_0x27a9a8(0x1cd),_0x528a74=[a3_0x27a9a8(0x1cd)]){const _0x2c758a=a3_0x27a9a8,_0x46b860={};_0x46b860['KXPBX']=function(_0x385f42,_0x2de123){return _0x385f42===_0x2de123;},_0x46b860['wtxGw']=_0x2c758a(0x21e),_0x46b860[_0x2c758a(0x23f)]=function(_0x59ba35,_0x35ced6){return _0x59ba35!==_0x35ced6;},_0x46b860[_0x2c758a(0x142)]='GYrEZ',_0x46b860[_0x2c758a(0x162)]=_0x2c758a(0x22e),_0x46b860[_0x2c758a(0x1f6)]=_0x2c758a(0x1e3),_0x46b860[_0x2c758a(0x141)]=_0x2c758a(0x1db),_0x46b860[_0x2c758a(0x191)]=_0x2c758a(0x1da),_0x46b860[_0x2c758a(0x217)]=_0x2c758a(0x1b2),_0x46b860[_0x2c758a(0x19a)]=_0x2c758a(0x18b),_0x46b860[_0x2c758a(0x17d)]=function(_0xfce396,_0x3234d5){return _0xfce396*_0x3234d5;},_0x46b860[_0x2c758a(0x20b)]=function(_0x3a4ede,_0x5a1da4){return _0x3a4ede*_0x5a1da4;},_0x46b860[_0x2c758a(0x122)]=_0x2c758a(0x251),_0x46b860[_0x2c758a(0x244)]=_0x2c758a(0x1fe),_0x46b860[_0x2c758a(0x1b5)]='VDfVe',_0x46b860[_0x2c758a(0x1f1)]=_0x2c758a(0x140),_0x46b860[_0x2c758a(0x24d)]=function(_0x418f91,_0x2dcee0){return _0x418f91!==_0x2dcee0;},_0x46b860[_0x2c758a(0x1fc)]=_0x2c758a(0x22b),_0x46b860[_0x2c758a(0x248)]='Cluster\x20creation\x20failed';const _0x310b22=_0x46b860;try{if(_0x310b22[_0x2c758a(0x23f)](_0x310b22[_0x2c758a(0x142)],_0x310b22[_0x2c758a(0x142)])){if(_0x310b22[_0x2c758a(0x231)](_0x458719?.[_0x2c758a(0x160)],_0x2c758a(0x1e0)+this['projectId']+'/serviceAccounts/'+this[_0x2c758a(0x1ed)]+'@'+this[_0x2c758a(0x1b6)]+_0x2c758a(0x120)))return!![];}else{logger['info'](_0x310b22[_0x2c758a(0x162)]);let _0x323ad3=await fs[_0x2c758a(0x126)](path[_0x2c758a(0x243)](__dirname,'..',_0x310b22[_0x2c758a(0x1f6)],_0x310b22['xoHmd'],_0x310b22[_0x2c758a(0x191)]),_0x310b22[_0x2c758a(0x217)]);_0x323ad3=JSON[_0x2c758a(0x221)](_0x323ad3);let _0x2d4bde=await fs[_0x2c758a(0x126)](path['join'](__dirname,'..',_0x310b22['DAcdp'],_0x310b22['xoHmd'],_0x310b22[_0x2c758a(0x19a)]),_0x310b22[_0x2c758a(0x217)]);_0x2d4bde=JSON['parse'](_0x2d4bde),_0x323ad3['name']=this[_0x2c758a(0x246)],_0x323ad3['nodePools'][0x0][_0x2c758a(0x178)][_0x2c758a(0x241)]=global_registry[_0x2c758a(0x1f4)],_0x323ad3[_0x2c758a(0x1be)][0x0][_0x2c758a(0x178)]['serviceAccount']=this[_0x2c758a(0x1ed)]+'@'+this[_0x2c758a(0x1b6)]+'.iam.gserviceaccount.com',_0x323ad3['nodePools'][0x0][_0x2c758a(0x247)][_0x2c758a(0x230)]=global_registry[_0x2c758a(0x1b3)],_0x323ad3['nodePools'][0x0][_0x2c758a(0x247)][_0x2c758a(0x1df)]=global_registry[_0x2c758a(0x1c0)],_0x323ad3[_0x2c758a(0x12a)]=global_registry['clusterRegion'],_0x323ad3[_0x2c758a(0x1e4)]=[_0x2d4bde[global_registry[_0x2c758a(0x159)]][0x0]],_0x323ad3[_0x2c758a(0x192)]=_0x2c758a(0x1e0)+this[_0x2c758a(0x1b6)]+_0x2c758a(0x16b)+_0x464440,_0x323ad3['subnetwork']=_0x2c758a(0x1e0)+this['projectId']+'/regions/'+global_registry[_0x2c758a(0x159)]+_0x2c758a(0x20d)+_0x528a74[0x0];const _0x48b7f6=await this[_0x2c758a(0x170)][_0x2c758a(0x158)]({'cluster':_0x323ad3,'parent':_0x2c758a(0x1e0)+this[_0x2c758a(0x1b6)]+_0x2c758a(0x183)+global_registry[_0x2c758a(0x159)]});await this[_0x2c758a(0x167)][_0x2c758a(0x12d)](_0x310b22['AvbcZ'](_0x310b22['xRysl'](0x7,0x3c),0x3e8));}}catch(_0x7c2e87){if(_0x310b22[_0x2c758a(0x231)](_0x310b22[_0x2c758a(0x122)],_0x310b22['EQfxr'])){const _0x385e5c=await this[_0x2c758a(0x125)]();if(_0x385e5c){if(_0x310b22[_0x2c758a(0x23f)](_0x310b22[_0x2c758a(0x244)],_0x310b22[_0x2c758a(0x1b5)]))logger[_0x2c758a(0x15d)](_0x310b22[_0x2c758a(0x1f1)],_0x7c2e87[_0x2c758a(0x154)]),await this['deleteCluster']();else{_0x5b1a76[_0x2c758a(0x15d)](_0x310b22['wtxGw']);return;}}else{if(_0x310b22[_0x2c758a(0x24d)](_0x310b22[_0x2c758a(0x1fc)],_0x310b22['cOeSA']))return[!![],_0x33d003];else logger[_0x2c758a(0x15d)](_0x310b22[_0x2c758a(0x248)]);}throw _0x7c2e87;}else!this['isConfigured']()&&this[_0x2c758a(0x225)]();}}async[a3_0x27a9a8(0x239)](_0x54b28b,_0x5298f6){const _0x382e9e=a3_0x27a9a8,_0x5a96c5={'zWhGc':_0x382e9e(0x1ca),'gZSgn':function(_0x166896,_0x2291e1){return _0x166896===_0x2291e1;},'FUdOY':function(_0x18f1b0,_0x209c59){return _0x18f1b0===_0x209c59;},'nEKdU':_0x382e9e(0x1b9),'ZHfit':function(_0x40b1e3,_0x24f96c){return _0x40b1e3(_0x24f96c);},'GIvaB':_0x382e9e(0x151),'XFKGu':_0x382e9e(0x22a),'BSOJV':function(_0x3fe3ad,_0x1a1265){return _0x3fe3ad!==_0x1a1265;},'tsXlw':_0x382e9e(0x1e6),'feGeL':'TpUTn','bONSi':_0x382e9e(0x17b),'nzsJE':_0x382e9e(0x213),'jmmZF':_0x382e9e(0x1bd)};try{if(_0x5a96c5[_0x382e9e(0x194)](_0x5a96c5[_0x382e9e(0x24f)],_0x5a96c5[_0x382e9e(0x24f)])){await _0x5a96c5[_0x382e9e(0x187)](deleteRoutingDeps,_0x54b28b),logger['info'](_0x382e9e(0x22f)+this[_0x382e9e(0x246)]);const _0x536714=await this[_0x382e9e(0x170)]['deleteCluster']({'name':_0x382e9e(0x1e0)+this[_0x382e9e(0x1b6)]+_0x382e9e(0x183)+global_registry[_0x382e9e(0x159)]+_0x382e9e(0x228)+this[_0x382e9e(0x246)]});if(_0x5a96c5[_0x382e9e(0x256)](_0x536714[0x0]?.['status'],_0x5a96c5[_0x382e9e(0x129)])||_0x5a96c5[_0x382e9e(0x256)](_0x536714[0x0]?.[_0x382e9e(0x1f3)],_0x5a96c5['XFKGu']))return _0x5a96c5[_0x382e9e(0x139)](_0x5a96c5[_0x382e9e(0x147)],_0x5a96c5[_0x382e9e(0x1b7)])?!![]:![];logger['info'](_0x382e9e(0x182));}else _0x4a1690[_0x382e9e(0x15d)](_0x5a96c5['zWhGc']);}catch(_0x243f58){if(_0x5a96c5[_0x382e9e(0x256)](_0x5a96c5[_0x382e9e(0x1c3)],_0x5a96c5[_0x382e9e(0x12c)])){const _0x54c7df='https://www.googleapis.com/compute/v1/projects/'+this['projectId']+_0x382e9e(0x198)+_0x334b2e[_0x382e9e(0x159)]+_0x382e9e(0x20d)+_0x4331ec[0x0];if(_0x5a96c5['gZSgn'](_0x54c7df,_0x55d818))return[!![],_0x4b526e];}else{logger['info'](_0x5a96c5[_0x382e9e(0x1c4)]);throw _0x243f58;}}}async[a3_0x27a9a8(0x223)](_0x15e6ad){const _0x1f2e15=a3_0x27a9a8,_0x178022={};_0x178022['ihudX']=function(_0x207c92,_0x482f44){return _0x207c92!==_0x482f44;},_0x178022[_0x1f2e15(0x17a)]='oiouw',_0x178022[_0x1f2e15(0x130)]=function(_0x53b0ff,_0x1f149f){return _0x53b0ff>_0x1f149f;},_0x178022[_0x1f2e15(0x17f)]=function(_0x469cfd,_0x1d01e8){return _0x469cfd===_0x1d01e8;},_0x178022[_0x1f2e15(0x19f)]=function(_0x21ec99,_0x3a92c6){return _0x21ec99===_0x3a92c6;},_0x178022['siDod']=_0x1f2e15(0x222),_0x178022['rEQvC']=function(_0x29434c,_0x34f6cc){return _0x29434c===_0x34f6cc;},_0x178022['ocSrE']='liXuz';const _0x4e01f1=_0x178022;try{if(_0x4e01f1[_0x1f2e15(0x1d6)](_0x4e01f1[_0x1f2e15(0x17a)],_0x4e01f1[_0x1f2e15(0x17a)]))_0x52dd33[_0x1f2e15(0x1a6)][_0x1f2e15(0x18f)](_0x13e536);else{const _0x31d37c={};_0x31d37c[_0x1f2e15(0x16a)]=projectId,_0x31d37c[_0x1f2e15(0x192)]=_0x15e6ad;const _0x405e0b=await networkClient[_0x1f2e15(0x23d)](_0x31d37c);if(_0x4e01f1['TzimU'](_0x405e0b[_0x1f2e15(0x21d)],0x0)&&_0x4e01f1[_0x1f2e15(0x17f)](_0x405e0b[0x0][_0x1f2e15(0x160)],_0x15e6ad))return _0x4e01f1['sGFdc'](_0x4e01f1[_0x1f2e15(0x184)],_0x4e01f1[_0x1f2e15(0x184)])?!![]:!![];}}catch(_0xc455ef){return _0x4e01f1[_0x1f2e15(0x1d3)](_0x4e01f1[_0x1f2e15(0x14f)],_0x4e01f1['ocSrE'])?![]:!![];}return![];}async['isSubnetsValid'](_0x4fc1af,_0x507f4f){const _0x21a897=a3_0x27a9a8,_0x124faf={};_0x124faf[_0x21a897(0x1b1)]=function(_0x5b0a73,_0x115513){return _0x5b0a73===_0x115513;},_0x124faf[_0x21a897(0x131)]='QzVyT',_0x124faf[_0x21a897(0x1e8)]=_0x21a897(0x1d2),_0x124faf['nzOWZ']=function(_0x26e0b4,_0x6f8011){return _0x26e0b4===_0x6f8011;},_0x124faf[_0x21a897(0x17e)]=function(_0x2d9110,_0x4bcf6c){return _0x2d9110!==_0x4bcf6c;},_0x124faf[_0x21a897(0x1ad)]=_0x21a897(0x19d),_0x124faf['PTBhN']='sDnEb';const _0x1b1107=_0x124faf;try{const _0x401e99={};_0x401e99[_0x21a897(0x16a)]=projectId,_0x401e99[_0x21a897(0x192)]=_0x507f4f;const _0x4b65a5=await networkClient[_0x21a897(0x23d)](_0x401e99);for(const _0x4904a4 of _0x4b65a5[0x0]['subnetworks']){if(_0x1b1107['ZYsCj'](_0x1b1107[_0x21a897(0x131)],_0x1b1107[_0x21a897(0x1e8)]))this[_0x21a897(0x225)]();else{const _0x201556=_0x21a897(0x1a1)+this[_0x21a897(0x1b6)]+_0x21a897(0x198)+global_registry[_0x21a897(0x159)]+_0x21a897(0x20d)+_0x4fc1af[0x0];if(_0x1b1107[_0x21a897(0x215)](_0x201556,_0x4904a4)){if(_0x1b1107[_0x21a897(0x17e)](_0x1b1107[_0x21a897(0x1ad)],_0x1b1107['PTBhN']))return[!![],_0x4fc1af];else{if(_0x1b1107[_0x21a897(0x1b1)](_0x507999['name'],this[_0x21a897(0x246)]))return!![];}}}}}catch(_0x354e2b){return logger[_0x21a897(0x1fd)](_0x21a897(0x1de)+_0x4fc1af+_0x21a897(0x196)+_0x354e2b),[![],[]];}return[![],[]];}async[a3_0x27a9a8(0x15e)](){const _0x16d953=a3_0x27a9a8,_0x232fb3=await this[_0x16d953(0x18e)][_0x16d953(0x153)]({'project':this['projectId']}),_0x197614={};_0x197614['username']=global_registry[_0x16d953(0x16e)],_0x197614[_0x16d953(0x185)]=global_registry[_0x16d953(0x189)],_0x197614[_0x16d953(0x220)]=GCP,_0x197614[_0x16d953(0x1a6)]=[];const _0x1d47d7=_0x197614;for(const _0xd2c69e of _0x232fb3){_0x1d47d7[_0x16d953(0x1a6)][_0x16d953(0x18f)](_0xd2c69e);}const _0x25d646={};_0x25d646[_0x16d953(0x1fa)]=WS_EVENTS[_0x16d953(0x19b)],_0x25d646[_0x16d953(0x1a9)]=_0x1d47d7,this[_0x16d953(0x167)][_0x16d953(0x24c)](this[_0x16d953(0x252)],_0x25d646);}}const a3_0x3ce431={};a3_0x3ce431[a3_0x27a9a8(0x12f)]=GoogleCloudProvider,module[a3_0x27a9a8(0x156)]=a3_0x3ce431;
@@ -1 +1 @@
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
+ function a4_0x3fa8(_0x4726d6,_0x7c7f75){const _0x230c5e=a4_0x230c();return a4_0x3fa8=function(_0x3fa813,_0x528e3d){_0x3fa813=_0x3fa813-0x158;let _0x2cb701=_0x230c5e[_0x3fa813];return _0x2cb701;},a4_0x3fa8(_0x4726d6,_0x7c7f75);}function a4_0x230c(){const _0xe20359=['get','10866PWhACy','jZItN','/Users/user/Downloads/bstack-turboscale-staging-1a66b19ac9fd.json','NetworksClient','googleapis','9633833rJQstn','10006KBzJuC','63kOVYgH','keyFile','log','2121100osrTyG','12GpUjBM','@google-cloud/iam','@google-cloud/compute','62WkYqjQ','@kubernetes/client-node','18aagNCI','path','PxfSH','108mcrkRG','test-vpc-1','wHABM','38079275WlOApD','73256HbiRqr','@google-cloud/container','133Ibbnmz','js-yaml','bstack-turboscale-staging','2416110wtGuHI'];a4_0x230c=function(){return _0xe20359;};return a4_0x230c();}const a4_0x40cb8d=a4_0x3fa8;(function(_0x2cb056,_0x195287){const _0xcbb1d8=a4_0x3fa8,_0x298ff5=_0x2cb056();while(!![]){try{const _0x2695b6=-parseInt(_0xcbb1d8(0x164))/0x1*(-parseInt(_0xcbb1d8(0x16c))/0x2)+parseInt(_0xcbb1d8(0x15e))/0x3*(-parseInt(_0xcbb1d8(0x171))/0x4)+-parseInt(_0xcbb1d8(0x168))/0x5*(-parseInt(_0xcbb1d8(0x16e))/0x6)+parseInt(_0xcbb1d8(0x159))/0x7*(-parseInt(_0xcbb1d8(0x175))/0x8)+parseInt(_0xcbb1d8(0x165))/0x9*(parseInt(_0xcbb1d8(0x15c))/0xa)+parseInt(_0xcbb1d8(0x163))/0xb+parseInt(_0xcbb1d8(0x169))/0xc*(-parseInt(_0xcbb1d8(0x174))/0xd);if(_0x2695b6===_0x195287)break;else _0x298ff5['push'](_0x298ff5['shift']());}catch(_0x155f19){_0x298ff5['push'](_0x298ff5['shift']());}}}(a4_0x230c,0xe7aee));const fs=require('fs'),path=require(a4_0x40cb8d(0x16f)),os=require('os'),yaml=require(a4_0x40cb8d(0x15a)),container=require(a4_0x40cb8d(0x158)),k8s=require(a4_0x40cb8d(0x16d)),compute=require(a4_0x40cb8d(0x16b)),{google}=require(a4_0x40cb8d(0x162)),{PoliciesClient}=require(a4_0x40cb8d(0x16a))['v2'],{iam}=require('@google-cloud/iam');async function main(){const _0x552ed0=a4_0x40cb8d,_0x4e9d6f={};_0x4e9d6f[_0x552ed0(0x170)]=_0x552ed0(0x160),_0x4e9d6f[_0x552ed0(0x173)]=_0x552ed0(0x15b),_0x4e9d6f[_0x552ed0(0x15f)]=_0x552ed0(0x172);const _0x423be5=_0x4e9d6f;try{let _0x4db367=_0x423be5[_0x552ed0(0x170)];const _0x3239ed=_0x423be5[_0x552ed0(0x173)],_0x1dd196={};_0x1dd196[_0x552ed0(0x166)]=_0x4db367;const _0x20c3ad=new compute['v1'][(_0x552ed0(0x161))](_0x1dd196),_0x39b739={};_0x39b739['project']=_0x3239ed,_0x39b739['network']=_0x423be5[_0x552ed0(0x15f)];const _0x118b4d=await _0x20c3ad[_0x552ed0(0x15d)](_0x39b739);console[_0x552ed0(0x167)](_0x118b4d);}catch(_0x21436e){console[_0x552ed0(0x167)](_0x21436e);}}main();
@@ -1 +1 @@
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
+ const a5_0x31bbda=a5_0x32f5;function a5_0x5301(){const _0x4c6f07=['./GoogleCloudProvider','../config/constants','12PJBThG','getCloudProviderObject','exit','1821294bqcyie','16SQdiMU','./Azure','Unknown\x20cloud\x20provider\x20found\x20-\x20','231893ZhdTls','69939pbEWDW','error','2029510OYxprr','1506ExVCof','54485YUOdJq','26cJuNJg','./AWS','260456GsBOVp'];a5_0x5301=function(){return _0x4c6f07;};return a5_0x5301();}(function(_0x5be05c,_0x52bb2e){const _0x54817f=a5_0x32f5,_0x2ac7f2=_0x5be05c();while(!![]){try{const _0xce4a64=-parseInt(_0x54817f(0x1ae))/0x1+-parseInt(_0x54817f(0x1b4))/0x2*(-parseInt(_0x54817f(0x1af))/0x3)+parseInt(_0x54817f(0x1b9))/0x4*(-parseInt(_0x54817f(0x1b3))/0x5)+parseInt(_0x54817f(0x1b2))/0x6+-parseInt(_0x54817f(0x1b6))/0x7+-parseInt(_0x54817f(0x1bd))/0x8*(-parseInt(_0x54817f(0x1bc))/0x9)+-parseInt(_0x54817f(0x1b1))/0xa;if(_0xce4a64===_0x52bb2e)break;else _0x2ac7f2['push'](_0x2ac7f2['shift']());}catch(_0x22df44){_0x2ac7f2['push'](_0x2ac7f2['shift']());}}}(a5_0x5301,0x31a2d));const {AWSCloudProvider}=require(a5_0x31bbda(0x1b5)),{AzureCloudProvider}=require(a5_0x31bbda(0x1be)),{GoogleCloudProvider}=require(a5_0x31bbda(0x1b7)),{AWS,AZURE,GCP}=require(a5_0x31bbda(0x1b8));function a5_0x32f5(_0x3fbfb0,_0x2fa7cd){const _0x5301dc=a5_0x5301();return a5_0x32f5=function(_0x32f59f,_0x4a892f){_0x32f59f=_0x32f59f-0x1ae;let _0x15b3fc=_0x5301dc[_0x32f59f];return _0x15b3fc;},a5_0x32f5(_0x3fbfb0,_0x2fa7cd);}exports[a5_0x31bbda(0x1ba)]=(_0x336c11,_0x5f3956,_0x3cca56,_0x539709,_0x191342)=>{const _0x291082=a5_0x31bbda;switch(_0x336c11){case AWS:return new AWSCloudProvider(_0x5f3956,_0x3cca56,_0x539709,_0x191342);case GCP:return new GoogleCloudProvider(_0x5f3956,_0x3cca56,_0x539709,_0x191342);default:console[_0x291082(0x1b0)](_0x291082(0x1bf)+_0x336c11),process[_0x291082(0x1bb)](0x1);}};
@@ -1 +1 @@
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
+ const a6_0x194bbc=a6_0x4485;function a6_0x468d(){const _0x3bce42=['toLowerCase','GAXqe','lRKUL','YCMuP','error','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','/packages/cli/configure','77qGiPGP','strict','profileId','QcqGR','GabWq','handler','RynQb','gTzlh','dtjyu','stack','builder','list','jgzJV','QWrAr','910010JlpFBM','9057uqksls','active','Browserstack','75822ZLUwxB','Wvodd','zwmZE','Failed\x20to\x20configure\x20resources!\x20Error:\x20','PUT','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','body','exit','username','../utils/instrumentationUtils','json','configure-called','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','\x20\x20username:\x20','Updated\x20default\x20Grid\x20Profile\x20successfully','yGBIy','ZQGYW','../utils/userInput','wzBma','invalid-selection','password','MTqzw','uuid','MKszm','usage','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','MLfvU','stringify','core:','AHpuy','DtvRE','recommendCommands','statusCode','parse','unauthorised','name','yoxDX','qesXE','590337hYvVbO','KSMzH','epilogue','wpGzm','IfAYu','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','tPNRv','aavPZ','init-not-called','method','RFowS','IXDRN','nwqEb','invalid-input','CpXOl','45UEJyfH','url','requestId','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','util','131557knJbDh','tcTfA','help','https://','command','dbSnR','log','Ioogh','433880XmOdBh','ERROR','INFO','promisify','desc','rGwNY','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','PAxmX','25824ZSazMU','../utils/utilityMethods','118GhlGla'];a6_0x468d=function(){return _0x3bce42;};return a6_0x468d();}(function(_0x5b3698,_0x4cdd0a){const _0x30af0c=a6_0x4485,_0x27b9ea=_0x5b3698();while(!![]){try{const _0x551663=parseInt(_0x30af0c(0x154))/0x1+-parseInt(_0x30af0c(0x166))/0x2*(-parseInt(_0x30af0c(0x17d))/0x3)+-parseInt(_0x30af0c(0x164))/0x4*(parseInt(_0x30af0c(0x14f))/0x5)+-parseInt(_0x30af0c(0x180))/0x6*(parseInt(_0x30af0c(0x16e))/0x7)+parseInt(_0x30af0c(0x15c))/0x8+parseInt(_0x30af0c(0x140))/0x9+-parseInt(_0x30af0c(0x17c))/0xa;if(_0x551663===_0x4cdd0a)break;else _0x27b9ea['push'](_0x27b9ea['shift']());}catch(_0x37755e){_0x27b9ea['push'](_0x27b9ea['shift']());}}}(a6_0x468d,0x22852));const fs=require('fs'),util=require(a6_0x194bbc(0x153)),request=require('request'),{v4:uuidv4}=require(a6_0x194bbc(0x196)),{inputConfirmation,closeInput}=require(a6_0x194bbc(0x191)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getCredentialsPath}=require(a6_0x194bbc(0x165)),{sendInstrumentationEvent}=require(a6_0x194bbc(0x189)),promisifiedRequest=util[a6_0x194bbc(0x15f)](request);function a6_0x4485(_0x108738,_0x34b294){const _0x468d98=a6_0x468d();return a6_0x4485=function(_0x4485cf,_0xc7e3f5){_0x4485cf=_0x4485cf-0x134;let _0x1d28b5=_0x468d98[_0x4485cf];return _0x1d28b5;},a6_0x4485(_0x108738,_0x34b294);}exports[a6_0x194bbc(0x158)]='configure',exports[a6_0x194bbc(0x160)]='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports[a6_0x194bbc(0x178)]=function(_0x34c894){const _0x2cfbba=a6_0x194bbc,_0x1dad92={};_0x1dad92['bcLOx']=_0x2cfbba(0x156);const _0x159d09=_0x1dad92;return _0x34c894[_0x2cfbba(0x198)](HELP_HEADER_MESSAGE['configure'])[_0x2cfbba(0x142)](HELP_FOOTER_MESSAGE)[_0x2cfbba(0x156)](_0x159d09['bcLOx'])[_0x2cfbba(0x139)]()[_0x2cfbba(0x16f)]()['argv'];},exports[a6_0x194bbc(0x173)]=async function(_0x2f8893){const _0x504b7e=a6_0x194bbc,_0x542fb2={'gTzlh':function(_0x57409d){return _0x57409d();},'PAxmX':_0x504b7e(0x185),'aavPZ':function(_0x1a3f13,_0x5dfadd,_0x2a8dc9,_0x444414,_0x22cafa,_0x2545fa,_0x224957){return _0x1a3f13(_0x5dfadd,_0x2a8dc9,_0x444414,_0x22cafa,_0x2545fa,_0x224957);},'MTqzw':_0x504b7e(0x18b),'GAXqe':_0x504b7e(0x148),'RFowS':function(_0x585f3d,_0x1dff64,_0xd65c00,_0x4d0669,_0x43a66f,_0x278f20,_0x18abc5){return _0x585f3d(_0x1dff64,_0xd65c00,_0x4d0669,_0x43a66f,_0x278f20,_0x18abc5);},'IfAYu':function(_0x31dc48){return _0x31dc48();},'QcqGR':'GET','rXvJU':function(_0x1bdc52,_0x10b1f3){return _0x1bdc52(_0x10b1f3);},'tcTfA':function(_0x4be5b6,_0x2486f8){return _0x4be5b6!==_0x2486f8;},'AHpuy':function(_0x15070b,_0x170b24){return _0x15070b!==_0x170b24;},'nwqEb':function(_0x24cef1,_0x5bafd9){return _0x24cef1===_0x5bafd9;},'MLfvU':_0x504b7e(0x16c),'Wvodd':_0x504b7e(0x136),'lRKUL':function(_0x73610,_0x5c46a4){return _0x73610(_0x5c46a4);},'yoxDX':_0x504b7e(0x152),'dbSnR':function(_0x1359a1,_0x175c30){return _0x1359a1===_0x175c30;},'jgzJV':function(_0x4f16e2,_0x1b8eaf){return _0x4f16e2===_0x1b8eaf;},'dtjyu':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','pQlYb':function(_0x514335,_0x416c99,_0x4ffdab,_0x36a8fb,_0xa09486,_0x59f5d7,_0x14e09b){return _0x514335(_0x416c99,_0x4ffdab,_0x36a8fb,_0xa09486,_0x59f5d7,_0x14e09b);},'ZQGYW':_0x504b7e(0x14d),'RynQb':'What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','qvFPu':function(_0x268a8d,_0x1ef82a){return _0x268a8d<_0x1ef82a;},'PdiZK':function(_0x1b8801,_0x365a2a){return _0x1b8801+_0x365a2a;},'IXDRN':function(_0x3d48f7,_0x5b953b){return _0x3d48f7(_0x5b953b);},'qesXE':_0x504b7e(0x199),'QWrAr':function(_0x5c1ac7,_0x1b6833){return _0x5c1ac7(_0x1b6833);},'GabWq':function(_0x2d9877,_0x1048e3){return _0x2d9877<=_0x1048e3;},'KSMzH':function(_0x5e5017,_0x3e0b29){return _0x5e5017>_0x3e0b29;},'rrttu':_0x504b7e(0x193),'lHmJu':function(_0x1a97f6,_0x1e4585){return _0x1a97f6-_0x1e4585;},'DtvRE':_0x504b7e(0x184),'zwmZE':function(_0x16563c,_0x1163fa){return _0x16563c(_0x1163fa);},'yGBIy':function(_0x3b8277,_0x45fd4f){return _0x3b8277!==_0x45fd4f;},'OCWYz':_0x504b7e(0x18e),'tPNRv':function(_0x4e4a37,_0x32f6cb){return _0x4e4a37===_0x32f6cb;},'wpGzm':_0x504b7e(0x13c),'rGwNY':function(_0x1410ea,_0x5d4034,_0x508ce9,_0x5efae2,_0xab4d2e,_0xe86e1b,_0x3bcbb5){return _0x1410ea(_0x5d4034,_0x508ce9,_0x5efae2,_0xab4d2e,_0xe86e1b,_0x3bcbb5);},'Ioogh':'server-error','CpXOl':function(_0x524ff3,_0x5c4f1e){return _0x524ff3===_0x5c4f1e;},'WOZzQ':function(_0x5479d0,_0x5f1174,_0x302b3d,_0x1adc53,_0x1d9960,_0x5d0a86,_0x4028c9){return _0x5479d0(_0x5f1174,_0x302b3d,_0x1adc53,_0x1d9960,_0x5d0a86,_0x4028c9);},'YCMuP':function(_0x38d759,_0x4b206e,_0xd16e5b,_0x18580d,_0x56ac07,_0xdcfe5d,_0x45c6a4){return _0x38d759(_0x4b206e,_0xd16e5b,_0x18580d,_0x56ac07,_0xdcfe5d,_0x45c6a4);},'wzBma':function(_0x558228,_0x43c08a,_0x269a9f,_0x4433ef,_0x256d57,_0x22ae59,_0x1767b7){return _0x558228(_0x43c08a,_0x269a9f,_0x4433ef,_0x256d57,_0x22ae59,_0x1767b7);},'MKszm':'unknown-error'};try{global_registry[_0x504b7e(0x151)]=_0x542fb2['gTzlh'](uuidv4);const _0x34af09=_0x504b7e(0x157)+AG_API_URL+_0x504b7e(0x16d);!fs['existsSync'](_0x542fb2[_0x504b7e(0x175)](getCredentialsPath))&&(console['error'](_0x542fb2[_0x504b7e(0x163)]),await _0x542fb2[_0x504b7e(0x147)](sendInstrumentationEvent,_0x2f8893,_0x542fb2[_0x504b7e(0x195)],messageTypes[_0x504b7e(0x15d)],_0x542fb2[_0x504b7e(0x168)],null,_0x2f8893),process[_0x504b7e(0x187)](0x1));await _0x542fb2[_0x504b7e(0x14a)](sendInstrumentationEvent,_0x2f8893,_0x542fb2[_0x504b7e(0x195)],messageTypes[_0x504b7e(0x15e)],null,null,_0x2f8893);const _0x19e530=JSON[_0x504b7e(0x13b)](fs['readFileSync'](_0x542fb2[_0x504b7e(0x144)](getCredentialsPath))),_0x4e39b7={};_0x4e39b7[_0x504b7e(0x188)]=_0x19e530[_0x504b7e(0x17f)][_0x504b7e(0x188)],_0x4e39b7[_0x504b7e(0x194)]=_0x19e530[_0x504b7e(0x17f)][_0x504b7e(0x194)];const _0x1135d8={};_0x1135d8[_0x504b7e(0x150)]=_0x34af09,_0x1135d8[_0x504b7e(0x149)]=_0x542fb2[_0x504b7e(0x171)],_0x1135d8['auth']=_0x4e39b7;const _0x2857b3=_0x1135d8,_0xf9c8b1=await _0x542fb2['rXvJU'](promisifiedRequest,_0x2857b3);if(_0x542fb2[_0x504b7e(0x155)](_0xf9c8b1,null)&&_0x542fb2[_0x504b7e(0x137)](_0xf9c8b1,undefined)&&_0x542fb2['nwqEb'](_0xf9c8b1[_0x504b7e(0x13a)],0xc8)){const _0x382ed3=JSON[_0x504b7e(0x13b)](_0xf9c8b1[_0x504b7e(0x186)]);console['log'](_0x542fb2[_0x504b7e(0x134)]),console['log'](_0x542fb2[_0x504b7e(0x181)]),console[_0x504b7e(0x15a)](_0x504b7e(0x18d)+_0x19e530[_0x504b7e(0x17f)][_0x504b7e(0x188)]),console['log']('\x20\x20grid-profile:\x20'+_0x382ed3[_0x504b7e(0x17e)]['name']);const _0x46e32a=await _0x542fb2[_0x504b7e(0x169)](inputConfirmation,_0x542fb2[_0x504b7e(0x13e)]);(_0x542fb2[_0x504b7e(0x159)](_0x46e32a,undefined)||_0x542fb2[_0x504b7e(0x159)](_0x46e32a,null)||!(_0x542fb2[_0x504b7e(0x17a)](_0x46e32a[_0x504b7e(0x167)](),'y')||_0x542fb2[_0x504b7e(0x17a)](_0x46e32a[_0x504b7e(0x167)](),'n')))&&(console['error'](_0x542fb2[_0x504b7e(0x176)]),await _0x542fb2['pQlYb'](sendInstrumentationEvent,_0x2f8893,_0x542fb2[_0x504b7e(0x195)],messageTypes[_0x504b7e(0x15d)],_0x542fb2[_0x504b7e(0x190)],null,_0x2f8893),process[_0x504b7e(0x187)](0x1));_0x542fb2[_0x504b7e(0x159)](_0x46e32a['toLowerCase'](),'n')&&process[_0x504b7e(0x187)](0x0);console[_0x504b7e(0x15a)](_0x542fb2[_0x504b7e(0x174)]);const _0x48fa6a=_0x382ed3[_0x504b7e(0x179)]['length'];for(let _0x34ea06=0x0;_0x542fb2['qvFPu'](_0x34ea06,_0x48fa6a);_0x34ea06+=0x1){console[_0x504b7e(0x15a)]('['+_0x542fb2['PdiZK'](_0x34ea06,0x1)+']\x20'+_0x382ed3[_0x504b7e(0x179)][_0x34ea06][_0x504b7e(0x13d)]);}const _0xa5a9d0=await _0x542fb2[_0x504b7e(0x14b)](inputConfirmation,_0x542fb2[_0x504b7e(0x13f)]),_0x29d434=_0x542fb2[_0x504b7e(0x17b)](Number,_0xa5a9d0);(_0x542fb2[_0x504b7e(0x17b)](isNaN,_0x29d434)||_0x542fb2[_0x504b7e(0x172)](_0x29d434,0x0)||_0x542fb2[_0x504b7e(0x141)](_0x29d434,_0x48fa6a))&&(console[_0x504b7e(0x16b)](_0x542fb2[_0x504b7e(0x176)]),await _0x542fb2['RFowS'](sendInstrumentationEvent,_0x2f8893,_0x542fb2[_0x504b7e(0x195)],messageTypes[_0x504b7e(0x15d)],_0x542fb2['rrttu'],null,_0x2f8893),process['exit'](0x1));_0x542fb2[_0x504b7e(0x144)](closeInput);const _0x458066=_0x382ed3[_0x504b7e(0x179)][_0x542fb2['lHmJu'](_0x29d434,0x1)]['id'],_0x467d18={};_0x467d18[_0x504b7e(0x188)]=_0x19e530[_0x504b7e(0x17f)][_0x504b7e(0x188)],_0x467d18[_0x504b7e(0x194)]=_0x19e530[_0x504b7e(0x17f)][_0x504b7e(0x194)];const _0x16cb1f={};_0x16cb1f[_0x504b7e(0x170)]=_0x458066;const _0x14d8c2={};_0x14d8c2[_0x504b7e(0x150)]=_0x34af09,_0x14d8c2[_0x504b7e(0x149)]=_0x542fb2[_0x504b7e(0x138)],_0x14d8c2['auth']=_0x467d18,_0x14d8c2[_0x504b7e(0x186)]=_0x16cb1f,_0x14d8c2[_0x504b7e(0x18a)]=!![];const _0x4d7b4b=_0x14d8c2,_0xd90f03=await _0x542fb2[_0x504b7e(0x182)](promisifiedRequest,_0x4d7b4b);_0x542fb2[_0x504b7e(0x155)](_0xd90f03,null)&&_0x542fb2[_0x504b7e(0x18f)](_0xd90f03,undefined)&&_0x542fb2[_0x504b7e(0x14c)](_0xd90f03[_0x504b7e(0x13a)],0xc8)&&(console[_0x504b7e(0x15a)](_0x542fb2['OCWYz']),process[_0x504b7e(0x187)](0x0)),_0x542fb2[_0x504b7e(0x146)](_0xd90f03[_0x504b7e(0x13a)],0x191)&&(console[_0x504b7e(0x16b)](_0x504b7e(0x162)),await _0x542fb2[_0x504b7e(0x14a)](sendInstrumentationEvent,_0x2f8893,_0x542fb2[_0x504b7e(0x195)],messageTypes[_0x504b7e(0x15d)],_0x542fb2[_0x504b7e(0x143)],null,_0x2f8893),process[_0x504b7e(0x187)](0x1)),console[_0x504b7e(0x16b)]('Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0xd90f03)),await _0x542fb2[_0x504b7e(0x161)](sendInstrumentationEvent,_0x2f8893,_0x542fb2['MTqzw'],messageTypes[_0x504b7e(0x15d)],_0x542fb2[_0x504b7e(0x15b)],_0xd90f03,_0x2f8893),process[_0x504b7e(0x187)](0x1);}_0x542fb2[_0x504b7e(0x14e)](_0xf9c8b1[_0x504b7e(0x13a)],0x191)&&(console[_0x504b7e(0x16b)](_0x504b7e(0x145)),await _0x542fb2['WOZzQ'](sendInstrumentationEvent,_0x2f8893,_0x542fb2[_0x504b7e(0x195)],messageTypes[_0x504b7e(0x15d)],_0x542fb2[_0x504b7e(0x143)],null,_0x2f8893),process[_0x504b7e(0x187)](0x1)),console['error'](_0x504b7e(0x18c)+JSON[_0x504b7e(0x135)](_0xf9c8b1)),await _0x542fb2[_0x504b7e(0x16a)](sendInstrumentationEvent,_0x2f8893,_0x542fb2[_0x504b7e(0x195)],messageTypes[_0x504b7e(0x15d)],_0x542fb2[_0x504b7e(0x15b)],_0xf9c8b1,_0x2f8893),process['exit'](0x1);}catch(_0x548019){console[_0x504b7e(0x16b)](_0x504b7e(0x183)+_0x548019[_0x504b7e(0x177)]),await _0x542fb2[_0x504b7e(0x192)](sendInstrumentationEvent,_0x2f8893,_0x542fb2[_0x504b7e(0x195)],messageTypes[_0x504b7e(0x15d)],_0x542fb2[_0x504b7e(0x197)],_0x548019,_0x2f8893),process[_0x504b7e(0x187)](0x1);}};
@@ -1 +1 @@
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
+ function a7_0x511f(_0x4620dd,_0x41709e){const _0x364937=a7_0x3649();return a7_0x511f=function(_0x511f79,_0x2213b7){_0x511f79=_0x511f79-0x9c;let _0x395f9d=_0x364937[_0x511f79];return _0x395f9d;},a7_0x511f(_0x4620dd,_0x41709e);}const a7_0x256b71=a7_0x511f;(function(_0x160bb5,_0x190ca0){const _0xd8e295=a7_0x511f,_0x3f0586=_0x160bb5();while(!![]){try{const _0x52461f=-parseInt(_0xd8e295(0xa7))/0x1+-parseInt(_0xd8e295(0xad))/0x2+-parseInt(_0xd8e295(0xa5))/0x3+-parseInt(_0xd8e295(0xb4))/0x4+parseInt(_0xd8e295(0xa2))/0x5*(-parseInt(_0xd8e295(0xa6))/0x6)+parseInt(_0xd8e295(0xa8))/0x7+-parseInt(_0xd8e295(0xb2))/0x8*(-parseInt(_0xd8e295(0xa0))/0x9);if(_0x52461f===_0x190ca0)break;else _0x3f0586['push'](_0x3f0586['shift']());}catch(_0x3e68fd){_0x3f0586['push'](_0x3f0586['shift']());}}}(a7_0x3649,0x498e4));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x256b71(0xa1));exports[a7_0x256b71(0xac)]=a7_0x256b71(0xa4),exports[a7_0x256b71(0xa3)]=a7_0x256b71(0x9e),exports[a7_0x256b71(0xae)]=function(_0x483a3b){const _0x3d4413=a7_0x256b71,_0x25f720={};_0x25f720[_0x3d4413(0xb3)]=_0x3d4413(0xab),_0x25f720['EhCrT']=_0x3d4413(0x9f);const _0x4e3945=_0x25f720;return _0x483a3b[_0x3d4413(0x9d)](HELP_HEADER_MESSAGE[_0x3d4413(0xa4)])[_0x3d4413(0xaf)](HELP_FOOTER_MESSAGE)['commandDir'](_0x4e3945['jPMIb'])[_0x3d4413(0x9c)]()[_0x3d4413(0xaa)]()[_0x3d4413(0xb1)]()[_0x3d4413(0x9f)](_0x4e3945[_0x3d4413(0xa9)]);},exports[a7_0x256b71(0xb0)]=function(_0x2422a6){};function a7_0x3649(){const _0xe5ed29=['connect_commands','command','956262GUcnpv','builder','epilogue','handler','strict','619192qKrRKx','jPMIb','1612544WNFjsP','demandCommand','usage','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','help','189CHSlDV','../config/constants','15AOnttF','desc','connect','1479402WSwFBC','305202bITxYl','269423pACMqM','3306310TVbbhr','EhCrT','recommendCommands'];a7_0x3649=function(){return _0xe5ed29;};return a7_0x3649();}
@@ -1 +1 @@
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);};
1
+ function a8_0x39d5(){const _0x3d8747=['SgJpX','dFABf','KwOiA','100410SYJwMR','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','DOxsM','XlFKs','help','YOlvc','mMKRU','lDReU','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','JEbBy','Advance\x20options\x20for\x20Browserstack\x20Local','Jslxs','CubOU','elgVf','grid','10661IbKbZw','sSCRl','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','accessKey','IBBhA','bstack-accesskey','aYXxX','../../config/logger','xfJxn','customRepeaters','cBPMq','11229669WeKjbD','string','useStaging','RHOkt','PdWiM','ZrJCG','options','advance-options','oKXXT','create','usage','gpAst','1844202YhbxaO','itSBw','Pass\x20the\x20ID\x20of\x20the\x20Grid','slrTt','tHAeT','QSaKq','browserStackLocalOptions','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','10eVOiGX','26173gjAwnW','FcTyY','SIGTERM','desc','gridId','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','NUDsw','info','yOeAM','2502CPvUJG','ChnZr','52946399dSyDdx','xURfr','demandOption','LVABB','exit','isTrialGrid','EPRXQ','XkzGJ','KdwEy','type','jrTGv','command','isRunning','Use\x20corresponding\x20access-key\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.','../../utils/utilityMethods','GtubY','7905624bIGvcY','EvEzh','use-staging','bIMgc','jznWV','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','argv','handler','grid-id','aswzw','bstack-username','obaki','NJyUK','laXPX','sKVdU','epilogue','NQXix','lqFpt','vbEgq','FAubd','40UCyqZB','dmJTa','WuVwU','XdAqE','QsDBm','142mnWhhX','error','MmLMG','rRfRA','VBBEg','SIGINT','hZyIp','beforeExit','INtlJ','Grid\x20type:\x20Trial','description','JnvRg'];a8_0x39d5=function(){return _0x3d8747;};return a8_0x39d5();}const a8_0x3fa10e=a8_0x95da;(function(_0x175cb0,_0x30da19){const _0x141c0b=a8_0x95da,_0x20fdbd=_0x175cb0();while(!![]){try{const _0x2bd5af=-parseInt(_0x141c0b(0x1ae))/0x1*(-parseInt(_0x141c0b(0x190))/0x2)+-parseInt(_0x141c0b(0x1c5))/0x3+-parseInt(_0x141c0b(0x18b))/0x4*(parseInt(_0x141c0b(0x19f))/0x5)+-parseInt(_0x141c0b(0x164))/0x6*(parseInt(_0x141c0b(0x1ce))/0x7)+-parseInt(_0x141c0b(0x177))/0x8+-parseInt(_0x141c0b(0x1b9))/0x9+parseInt(_0x141c0b(0x1cd))/0xa*(parseInt(_0x141c0b(0x166))/0xb);if(_0x2bd5af===_0x30da19)break;else _0x20fdbd['push'](_0x20fdbd['shift']());}catch(_0x2c4b33){_0x20fdbd['push'](_0x20fdbd['shift']());}}}(a8_0x39d5,0xea45b));function a8_0x95da(_0x4330c4,_0xded9d3){const _0x39d57c=a8_0x39d5();return a8_0x95da=function(_0x95dace,_0x9113f8){_0x95dace=_0x95dace-0x163;let _0x370885=_0x39d57c[_0x95dace];return _0x370885;},a8_0x95da(_0x4330c4,_0xded9d3);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require(a8_0x3fa10e(0x1b5)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a8_0x3fa10e(0x175));exports[a8_0x3fa10e(0x171)]=a8_0x3fa10e(0x1ad),exports[a8_0x3fa10e(0x1d1)]=a8_0x3fa10e(0x17c),exports['builder']=_0x45f826=>{const _0x25b733=a8_0x3fa10e,_0x54d1c3={};_0x54d1c3[_0x25b733(0x192)]=_0x25b733(0x1a7),_0x54d1c3['rRfRA']=_0x25b733(0x1ba),_0x54d1c3[_0x25b733(0x1a8)]=_0x25b733(0x173),_0x54d1c3[_0x25b733(0x1c9)]=_0x25b733(0x1c7),_0x54d1c3[_0x25b733(0x163)]='Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.',_0x54d1c3[_0x25b733(0x169)]=_0x25b733(0x1a9),_0x54d1c3[_0x25b733(0x1d4)]='help';const _0x4c94a2=_0x54d1c3,_0x424fc9={};_0x424fc9['description']=_0x4c94a2[_0x25b733(0x192)],_0x424fc9['type']=_0x4c94a2[_0x25b733(0x193)];const _0x5a7e21={};_0x5a7e21[_0x25b733(0x19a)]=_0x4c94a2[_0x25b733(0x1a8)],_0x5a7e21[_0x25b733(0x16f)]=_0x4c94a2[_0x25b733(0x193)];const _0x275d95={};_0x275d95['demandOption']=!![],_0x275d95[_0x25b733(0x19a)]=_0x4c94a2[_0x25b733(0x1c9)],_0x275d95['type']=_0x4c94a2[_0x25b733(0x193)];const _0x3d1dc7={};_0x3d1dc7[_0x25b733(0x19a)]=_0x4c94a2[_0x25b733(0x163)],_0x3d1dc7['type']=_0x4c94a2[_0x25b733(0x193)];const _0x49f156={};_0x49f156[_0x25b733(0x19a)]=_0x4c94a2[_0x25b733(0x169)],_0x49f156[_0x25b733(0x16f)]=_0x4c94a2[_0x25b733(0x193)];const _0x5f2531={};return _0x5f2531[_0x25b733(0x181)]=_0x424fc9,_0x5f2531[_0x25b733(0x1b3)]=_0x5a7e21,_0x5f2531[_0x25b733(0x17f)]=_0x275d95,_0x5f2531['use-staging']=_0x3d1dc7,_0x5f2531['advance-options']=_0x49f156,_0x45f826[_0x25b733(0x1c3)](HELP_HEADER_MESSAGE[_0x25b733(0x1c2)])[_0x25b733(0x186)](HELP_FOOTER_MESSAGE)[_0x25b733(0x1bf)](_0x5f2531)[_0x25b733(0x1a3)](_0x4c94a2[_0x25b733(0x1d4)])[_0x25b733(0x17d)];},exports[a8_0x3fa10e(0x17e)]=async _0x478e2a=>{const _0x1f9998=a8_0x3fa10e,_0x525a3b={'lDReU':_0x1f9998(0x1a7),'AopKA':_0x1f9998(0x1ba),'mMKRU':_0x1f9998(0x173),'GDAZg':_0x1f9998(0x1c7),'Jslxs':_0x1f9998(0x1d3),'XlFKs':_0x1f9998(0x1a9),'lqFpt':_0x1f9998(0x1a3),'xURfr':function(_0x3c4733,_0x47992a){return _0x3c4733===_0x47992a;},'itSBw':_0x1f9998(0x1b8),'hrAEB':_0x1f9998(0x1b6),'laXPX':function(_0x2f2c55,_0x139f7c){return _0x2f2c55(_0x139f7c);},'VBBEg':function(_0x54d6c2,_0x34efd9){return _0x54d6c2==_0x34efd9;},'hZyIp':function(_0xd5ac3e,_0x2ce244){return _0xd5ac3e(_0x2ce244);},'sKVdU':function(_0x46d6e8,_0x364ae9){return _0x46d6e8(_0x364ae9);},'dmJTa':_0x1f9998(0x197),'KwOiA':_0x1f9998(0x195),'elgVf':_0x1f9998(0x1d0),'QsDBm':function(_0x1508c6,_0xc9454){return _0x1508c6!==_0xc9454;},'KdwEy':_0x1f9998(0x1ca),'gpAst':function(_0x3b21fc,_0x4187b0){return _0x3b21fc(_0x4187b0);},'yMseC':function(_0x865957,_0xe5c4f7){return _0x865957(_0xe5c4f7);},'SgJpX':function(_0x4be4b0,_0x105909,_0x317cd9){return _0x4be4b0(_0x105909,_0x317cd9);},'NQXix':function(_0x40486f,_0x36aae8){return _0x40486f&&_0x36aae8;},'sSCRl':'tasYq','kfnvU':_0x1f9998(0x18d),'ChnZr':function(_0x5d0484,_0x2a60bb,_0x51544d,_0x4a8cc8){return _0x5d0484(_0x2a60bb,_0x51544d,_0x4a8cc8);},'NJyUK':function(_0x220e67,_0x35b754){return _0x220e67!==_0x35b754;},'aHSaN':_0x1f9998(0x1a1),'IBBhA':_0x1f9998(0x1ab),'NItDI':'true','cGetU':_0x1f9998(0x1bc),'EvEzh':'DzStl','JnvRg':_0x1f9998(0x1b4),'zLyiV':function(_0x1fa32a,_0x44a88a){return _0x1fa32a!==_0x44a88a;},'JqQAx':_0x1f9998(0x17a),'FcTyY':_0x1f9998(0x170),'FAubd':function(_0x5887b5,_0x4e0f9b){return _0x5887b5(_0x4e0f9b);}};let _0x141dba=_0x478e2a['bstackUsername'],_0x265188=_0x478e2a['bstackAccesskey'],_0x18b6ec=_0x478e2a['advanceOptions'];const _0x2f38ef=_0x1f66b6=>{const _0x1d07b3=_0x1f9998,_0x2de185={};_0x2de185[_0x1d07b3(0x176)]=_0x525a3b[_0x1d07b3(0x1a6)],_0x2de185[_0x1d07b3(0x19d)]=_0x525a3b['AopKA'],_0x2de185[_0x1d07b3(0x17b)]=_0x525a3b[_0x1d07b3(0x1a5)],_0x2de185['XkzGJ']=_0x525a3b['GDAZg'],_0x2de185[_0x1d07b3(0x18e)]=_0x525a3b[_0x1d07b3(0x1aa)],_0x2de185[_0x1d07b3(0x180)]=_0x525a3b[_0x1d07b3(0x1a2)],_0x2de185[_0x1d07b3(0x1be)]=_0x525a3b[_0x1d07b3(0x188)];const _0x5b4003=_0x2de185;if(_0x525a3b['xURfr'](_0x525a3b[_0x1d07b3(0x1c6)],_0x525a3b['hrAEB'])){const _0xfa7027={};_0xfa7027[_0x1d07b3(0x19a)]=_0x5b4003[_0x1d07b3(0x176)],_0xfa7027[_0x1d07b3(0x16f)]=_0x5b4003[_0x1d07b3(0x19d)];const _0x5b4f33={};_0x5b4f33[_0x1d07b3(0x19a)]=_0x5b4003[_0x1d07b3(0x17b)],_0x5b4f33['type']=_0x5b4003[_0x1d07b3(0x19d)];const _0x594989={};_0x594989[_0x1d07b3(0x168)]=!![],_0x594989[_0x1d07b3(0x19a)]=_0x5b4003[_0x1d07b3(0x16d)],_0x594989[_0x1d07b3(0x16f)]=_0x5b4003[_0x1d07b3(0x19d)];const _0x2b2672={};_0x2b2672[_0x1d07b3(0x19a)]=_0x5b4003[_0x1d07b3(0x18e)],_0x2b2672[_0x1d07b3(0x16f)]=_0x5b4003[_0x1d07b3(0x19d)];const _0x57115a={};_0x57115a['description']=_0x5b4003[_0x1d07b3(0x180)],_0x57115a[_0x1d07b3(0x16f)]=_0x5b4003[_0x1d07b3(0x19d)];const _0x511d1d={};return _0x511d1d[_0x1d07b3(0x181)]=_0xfa7027,_0x511d1d[_0x1d07b3(0x1b3)]=_0x5b4f33,_0x511d1d[_0x1d07b3(0x17f)]=_0x594989,_0x511d1d[_0x1d07b3(0x179)]=_0x2b2672,_0x511d1d[_0x1d07b3(0x1c0)]=_0x57115a,_0x3d30b7[_0x1d07b3(0x1c3)](_0x58a182[_0x1d07b3(0x1c2)])[_0x1d07b3(0x186)](_0x2a6c72)[_0x1d07b3(0x1bf)](_0x511d1d)[_0x1d07b3(0x1a3)](_0x5b4003[_0x1d07b3(0x1be)])[_0x1d07b3(0x17d)];}else logger[_0x1d07b3(0x191)](_0x1f66b6),process[_0x1d07b3(0x16a)](0x1);};[_0x141dba,_0x265188]=_0x525a3b[_0x1f9998(0x19c)](fetchOrUpdateUserConfig,_0x141dba,_0x265188);!_0x525a3b[_0x1f9998(0x187)](_0x141dba,_0x265188)&&(_0x525a3b[_0x1f9998(0x167)](_0x525a3b[_0x1f9998(0x1af)],_0x525a3b['kfnvU'])?_0x525a3b['laXPX'](_0x28e701,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier'):_0x525a3b[_0x1f9998(0x196)](_0x2f38ef,_0x1f9998(0x1b0)));let _0x6b5f4a=_0x478e2a[_0x1f9998(0x1d2)],[_0x2adda7,_0x3abc0d]=await _0x525a3b[_0x1f9998(0x165)](getGridDetails,_0x141dba,_0x265188,_0x6b5f4a);if(!_0x3abc0d){if(_0x525a3b[_0x1f9998(0x183)](_0x525a3b['aHSaN'],_0x525a3b[_0x1f9998(0x1b2)]))_0x525a3b[_0x1f9998(0x184)](_0x2f38ef,_0x1f9998(0x1cc));else{const _0x23c060={'vbEgq':function(_0x111aab,_0x5bbf7a){const _0x3e3d2f=_0x1f9998;return _0x525a3b[_0x3e3d2f(0x194)](_0x111aab,_0x5bbf7a);},'INtlJ':function(_0x3459cd,_0x320869){return _0x525a3b['hZyIp'](_0x3459cd,_0x320869);}};_0x1a85c1=_0x1f9998(0x199),_0x40565d[_0x1f9998(0x1d5)](_0x4a7902);try{const _0x40ee56={};_0x40ee56['accessKey']=_0xa78e27,_0x40ee56['customRepeaters']=_0x4a51b8[_0x1f9998(0x1b7)],_0x40ee56['browserStackLocalOptions']=_0x141cd0;const _0x57d93b=_0x40ee56,_0xe2ef76=_0x525a3b[_0x1f9998(0x185)](_0x5304cb,_0x57d93b);let _0x44db40=0x0;const _0x15de07=async()=>{const _0x47a5a2=_0x1f9998;_0x44db40++,_0x23c060[_0x47a5a2(0x189)](_0x44db40,0x1)&&_0xe2ef76&&_0xe2ef76['isRunning']()&&_0x23c060[_0x47a5a2(0x198)](_0x4b5580,_0xe2ef76);};_0x651c0['on'](_0x525a3b['dmJTa'],_0x15de07),_0x1715e7['on'](_0x525a3b[_0x1f9998(0x19e)],_0x15de07),_0x1680c3['on'](_0x525a3b['elgVf'],_0x15de07),_0x1d7584=_0x1f9998(0x174),_0x1a0f79[_0x1f9998(0x1d5)](_0x14f784);}catch(_0x27a4b9){_0x525a3b[_0x1f9998(0x185)](_0x204323,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}}let _0x2834ff=_0x525a3b['xURfr'](_0x478e2a[_0x1f9998(0x1bb)],_0x525a3b['NItDI'])?!![]:![];if(_0x3abc0d&&_0x3abc0d[_0x1f9998(0x16b)]&&_0x2834ff){if(_0x525a3b[_0x1f9998(0x167)](_0x525a3b['cGetU'],_0x525a3b[_0x1f9998(0x178)]))_0x204226[_0x1f9998(0x191)](_0x5e7351),_0x588f43[_0x1f9998(0x16a)](0x1);else{logMessage=_0x1f9998(0x199),logger['info'](logMessage);try{if(_0x525a3b[_0x1f9998(0x18f)](_0x525a3b[_0x1f9998(0x19b)],_0x525a3b[_0x1f9998(0x19b)]))_0x525a3b[_0x1f9998(0x196)](_0x5b6b94,_0x1f9998(0x1a0));else{const _0x1acfdb={};_0x1acfdb['accessKey']=_0x265188,_0x1acfdb[_0x1f9998(0x1b7)]=_0x3abc0d[_0x1f9998(0x1b7)],_0x1acfdb[_0x1f9998(0x1cb)]=_0x18b6ec;const _0x3f839d=_0x1acfdb,_0x5f4c57=_0x525a3b[_0x1f9998(0x184)](startLocalBinarySync,_0x3f839d);let _0x5e9494=0x0;const _0x1480d2=async()=>{const _0x9753f=_0x1f9998,_0x4189ef={'EPRXQ':function(_0x1d6ecf,_0x31f22a){const _0x4807f3=a8_0x95da;return _0x525a3b[_0x4807f3(0x194)](_0x1d6ecf,_0x31f22a);},'obaki':function(_0x148192,_0x15e382){const _0x150f08=a8_0x95da;return _0x525a3b[_0x150f08(0x185)](_0x148192,_0x15e382);},'slrTt':function(_0xff958b,_0x4a456d){const _0x5dc047=a8_0x95da;return _0x525a3b[_0x5dc047(0x184)](_0xff958b,_0x4a456d);},'YOlvc':_0x525a3b[_0x9753f(0x18c)],'PdWiM':_0x525a3b['KwOiA'],'oKXXT':_0x525a3b[_0x9753f(0x1ac)]};if(_0x525a3b[_0x9753f(0x18f)](_0x525a3b[_0x9753f(0x16e)],_0x525a3b[_0x9753f(0x16e)])){const _0x2fb58e={};_0x2fb58e[_0x9753f(0x1b1)]=_0x4d45f7,_0x2fb58e[_0x9753f(0x1b7)]=_0x26681f['customRepeaters'],_0x2fb58e[_0x9753f(0x1cb)]=_0x4480a4;const _0x24482d=_0x2fb58e,_0x1e97ce=_0x4189ef[_0x9753f(0x1c8)](_0x275286,_0x24482d);let _0x3f534a=0x0;const _0x3623cc=async()=>{const _0x4df285=_0x9753f;_0x3f534a++,_0x4189ef[_0x4df285(0x16c)](_0x3f534a,0x1)&&_0x1e97ce&&_0x1e97ce[_0x4df285(0x172)]()&&_0x4189ef[_0x4df285(0x182)](_0x403a45,_0x1e97ce);};_0x41bdcb['on'](_0x4189ef[_0x9753f(0x1a4)],_0x3623cc),_0xdada48['on'](_0x4189ef[_0x9753f(0x1bd)],_0x3623cc),_0xe471b7['on'](_0x4189ef[_0x9753f(0x1c1)],_0x3623cc),_0x1403d0=_0x9753f(0x174),_0x26c2b7[_0x9753f(0x1d5)](_0x2ceff8);}else _0x5e9494++,_0x525a3b[_0x9753f(0x194)](_0x5e9494,0x1)&&_0x5f4c57&&_0x5f4c57['isRunning']()&&_0x525a3b[_0x9753f(0x1c4)](stopLocalBinary,_0x5f4c57);};process['on'](_0x525a3b['dmJTa'],_0x1480d2),process['on'](_0x525a3b[_0x1f9998(0x19e)],_0x1480d2),process['on'](_0x525a3b[_0x1f9998(0x1ac)],_0x1480d2),logMessage='We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.',logger[_0x1f9998(0x1d5)](logMessage);}}catch(_0x55879d){_0x525a3b['zLyiV'](_0x525a3b['JqQAx'],_0x525a3b[_0x1f9998(0x1cf)])?_0x525a3b[_0x1f9998(0x18a)](_0x2f38ef,_0x1f9998(0x1a0)):(_0x3a75db++,_0x525a3b[_0x1f9998(0x194)](_0x235107,0x1)&&_0x398825&&_0x1d2c71[_0x1f9998(0x172)]()&&_0x525a3b['yMseC'](_0x4a11af,_0xd68164));}}}process[_0x1f9998(0x16a)](0x0);};