browserstack-node-sdk 1.31.19 → 1.31.21

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 (109) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/utils/AWSUtils.js +1 -1
  25. package/ats/src/utils/createAutoscalerStack.js +1 -1
  26. package/ats/src/utils/createClusterStack.js +1 -1
  27. package/ats/src/utils/createk8sClient.js +1 -1
  28. package/ats/src/utils/deleteStack.js +1 -1
  29. package/ats/src/utils/gridComponents.js +1 -1
  30. package/ats/src/utils/hstUtils.js +1 -1
  31. package/ats/src/utils/instrumentationUtils.js +1 -1
  32. package/ats/src/utils/userInput.js +1 -1
  33. package/ats/src/utils/utilityMethods.js +1 -1
  34. package/ats/src/utils/webSocketUtils.js +1 -1
  35. package/package.json +1 -1
  36. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  37. package/src/bin/codeceptjs/command.js +1 -1
  38. package/src/bin/cucumber-js/command.js +1 -1
  39. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  40. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  41. package/src/bin/cucumber-js/test.setup.js +1 -1
  42. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  43. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  44. package/src/bin/jest/command.js +1 -1
  45. package/src/bin/jest/customImplements/customCircus.js +1 -1
  46. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  47. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  48. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  49. package/src/bin/jest/jest.setup.js +1 -1
  50. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  51. package/src/bin/jest/test-observability/helper.js +1 -1
  52. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  53. package/src/bin/jest/test-observability/test-details.js +1 -1
  54. package/src/bin/jest/test_before.setup.js +1 -1
  55. package/src/bin/launcher/launcher.js +1 -1
  56. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  57. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  58. package/src/bin/mocha/command.js +1 -1
  59. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  60. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  61. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  62. package/src/bin/mocha/test.setup.js +1 -1
  63. package/src/bin/nightwatch/command.js +1 -1
  64. package/src/bin/playwright/accessibility-helper.js +1 -1
  65. package/src/bin/playwright/command.js +1 -1
  66. package/src/bin/playwright/globalSetup.js +1 -1
  67. package/src/bin/playwright/mock-process.js +1 -1
  68. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  69. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  70. package/src/bin/playwright/reporter/reporter.js +1 -1
  71. package/src/bin/playwright/reporter/test-details.js +1 -1
  72. package/src/bin/runner.js +1 -1
  73. package/src/bin/setup.js +1 -1
  74. package/src/bin/test-runner/index.js +1 -1
  75. package/src/bin/test-runner/runTest.js +1 -1
  76. package/src/bin/test-runner/testWorker.js +1 -1
  77. package/src/bin/utils/constants.js +1 -1
  78. package/src/bin/utils/log4jsAppender.js +1 -1
  79. package/src/bin/utils/logPatcher.js +1 -1
  80. package/src/bin/utils/logReportingAPI.js +1 -1
  81. package/src/bin/vanilla-js/command.js +1 -1
  82. package/src/browserStackSdk.js +1 -1
  83. package/src/helpers/BrowserStackSetup.js +1 -1
  84. package/src/helpers/accessibility-automation/constants.js +1 -1
  85. package/src/helpers/accessibility-automation/helper.js +1 -1
  86. package/src/helpers/ats/constants.js +1 -1
  87. package/src/helpers/ats/helper.js +1 -1
  88. package/src/helpers/capsMapping.js +1 -1
  89. package/src/helpers/helper.js +1 -1
  90. package/src/helpers/logger.js +1 -1
  91. package/src/helpers/patchHelpers.js +1 -1
  92. package/src/helpers/percy/Percy.js +1 -1
  93. package/src/helpers/percy/PercyBinary.js +1 -1
  94. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  95. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  96. package/src/helpers/percy/PercySDK.js +1 -1
  97. package/src/helpers/percy/index.js +1 -1
  98. package/src/helpers/percy/utils.js +1 -1
  99. package/src/helpers/performance-tester.js +1 -1
  100. package/src/helpers/request-spy.js +1 -1
  101. package/src/helpers/setKeepAlive.js +1 -1
  102. package/src/helpers/test-observability/constants.js +1 -1
  103. package/src/helpers/test-observability/error-handler.js +1 -1
  104. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  105. package/src/helpers/test-observability/sessionHandler.js +1 -1
  106. package/src/helpers/test-observability/utils.js +1 -1
  107. package/src/helpers/w3cMapping.js +1 -1
  108. package/src/hubAllocationMethods.js +1 -1
  109. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a0_0x17db(_0x4fcc32,_0x139c1e){const _0x4bd0c0=a0_0x4bd0();return a0_0x17db=function(_0x17db3c,_0x62c59a){_0x17db3c=_0x17db3c-0x8b;let _0x1a1d38=_0x4bd0c0[_0x17db3c];return _0x1a1d38;},a0_0x17db(_0x4fcc32,_0x139c1e);}const a0_0xd08285=a0_0x17db;(function(_0x153d51,_0x1376be){const _0x2632b7=a0_0x17db,_0x705ebe=_0x153d51();while(!![]){try{const _0x2fb7be=-parseInt(_0x2632b7(0xe5))/0x1*(parseInt(_0x2632b7(0x141))/0x2)+parseInt(_0x2632b7(0x113))/0x3*(-parseInt(_0x2632b7(0xe0))/0x4)+-parseInt(_0x2632b7(0x145))/0x5*(parseInt(_0x2632b7(0x11f))/0x6)+-parseInt(_0x2632b7(0x1be))/0x7+parseInt(_0x2632b7(0x10e))/0x8+parseInt(_0x2632b7(0xff))/0x9*(-parseInt(_0x2632b7(0xed))/0xa)+parseInt(_0x2632b7(0xe8))/0xb*(parseInt(_0x2632b7(0x1b0))/0xc);if(_0x2fb7be===_0x1376be)break;else _0x705ebe['push'](_0x705ebe['shift']());}catch(_0x323e05){_0x705ebe['push'](_0x705ebe['shift']());}}}(a0_0x4bd0,0x4f364));const fs=require('fs'),path=require(a0_0xd08285(0x117)),yaml=require(a0_0xd08285(0x1b4)),awsSDK=require(a0_0xd08285(0xc2)),{logger}=require(a0_0xd08285(0x130)),{CloudProvider}=require(a0_0xd08285(0x8c)),{sendAWSInfoToHST}=require('../utils/hstUtils'),{deleteClusterStack}=require(a0_0xd08285(0xaf)),{createClusterStack}=require(a0_0xd08285(0xa7)),{deleteClusterAndDependencies,deleteRoutingDeps,deleteAgent}=require(a0_0xd08285(0xb4)),{createAutoscalerStack}=require(a0_0xd08285(0x143)),{getDirForConfig,reportToGalactusAndSendToEDS}=require(a0_0xd08285(0x164)),{IAM_USER_NAME,AWS,WS_EVENTS,CLUSTER_DEP_STACK_NAME,global_registry,messageTypes}=require('../config/constants');class AWSCloudProvider extends CloudProvider{constructor(_0x36ce38,_0x5e0135,_0x48bca0,_0x4e35cb){super(AWS,_0x36ce38,_0x5e0135,_0x48bca0,_0x4e35cb);}[a0_0xd08285(0x19d)](){const _0x3121ae=a0_0xd08285,_0x39740e={'MztXJ':function(_0x4079b1,_0x320dc6){return _0x4079b1(_0x320dc6);},'AwjKb':function(_0x3420d1,_0x361e1){return _0x3420d1!==_0x361e1;},'PcLsO':'ggdaA','wrGwt':'hpFwu'};!this['isConfigured']()&&(_0x39740e['AwjKb'](_0x39740e[_0x3121ae(0x9d)],_0x39740e[_0x3121ae(0x1a6)])?this['setConfig']():(_0x815586[_0x3121ae(0x1ae)]('Cannot\x20find\x20VPC\x20'+_0x2baa57+_0x3121ae(0xd5)+_0x2de133['clusterRegion']+_0x3121ae(0xb3)),_0x39740e[_0x3121ae(0x137)](_0x320dfc,![])));}[a0_0xd08285(0x18b)](){const _0x3d74de=a0_0xd08285,_0x5808fe={};_0x5808fe[_0x3d74de(0x176)]=function(_0x43532,_0x4626d7){return _0x43532===_0x4626d7;};const _0xf57bf8=_0x5808fe;return _0xf57bf8[_0x3d74de(0x176)](global_registry[_0x3d74de(0x1bc)],!![]);}[a0_0xd08285(0x92)](){const _0x3d1c5e=a0_0xd08285,_0x515ab3={};_0x515ab3[_0x3d1c5e(0x105)]=global_registry['clusterRegion'],_0x515ab3['accessKeyId']=global_registry['cloudProviderAccessKey'],_0x515ab3['secretAccessKey']=global_registry[_0x3d1c5e(0x14f)],awsSDK[_0x3d1c5e(0x174)][_0x3d1c5e(0x180)](_0x515ab3),global_registry['awsConfigSet']=!![];}async[a0_0xd08285(0x170)](_0x4049eb){const _0x4d7adb=a0_0xd08285;global_registry['cloudProviderAccessKey']=_0x4049eb[this[_0x4d7adb(0x1bd)]][_0x4d7adb(0x173)],global_registry[_0x4d7adb(0x14f)]=_0x4049eb[this[_0x4d7adb(0x1bd)]][_0x4d7adb(0xfa)];}['getGridHostname'](_0x3d9b93){const _0x9241d1=a0_0xd08285;return _0x3d9b93[_0x9241d1(0xa0)][_0x9241d1(0x108)][_0x9241d1(0x119)][0x0][_0x9241d1(0x1ab)];}async[a0_0xd08285(0x10d)](){const _0x4a3646=a0_0xd08285,_0x8eaa86={};_0x8eaa86[_0x4a3646(0x14a)]=_0x4a3646(0x10a),_0x8eaa86[_0x4a3646(0xde)]=function(_0x3a3a8f,_0x271deb){return _0x3a3a8f!==_0x271deb;},_0x8eaa86[_0x4a3646(0x13d)]='exMDN',_0x8eaa86[_0x4a3646(0x167)]=_0x4a3646(0x181),_0x8eaa86['qObwJ']=function(_0x3a148d,_0x368ed8){return _0x3a148d===_0x368ed8;},_0x8eaa86[_0x4a3646(0x171)]=_0x4a3646(0x115),_0x8eaa86[_0x4a3646(0xb8)]=_0x4a3646(0xe6),_0x8eaa86[_0x4a3646(0x116)]=_0x4a3646(0x91),_0x8eaa86[_0x4a3646(0x112)]=_0x4a3646(0xd1),_0x8eaa86[_0x4a3646(0x1a9)]=function(_0x2d2f30,_0x5e95fc){return _0x2d2f30===_0x5e95fc;},_0x8eaa86['JrLCh']='Nobdi';const _0x42355b=_0x8eaa86;try{if(_0x42355b[_0x4a3646(0xde)](_0x42355b[_0x4a3646(0x13d)],_0x42355b[_0x4a3646(0x167)])){const _0x36c000=await this['getClusterInfo']();if(_0x36c000[_0x4a3646(0xd7)]){if(_0x42355b['qObwJ'](_0x42355b[_0x4a3646(0x171)],_0x42355b[_0x4a3646(0xb8)])){const _0x783a0={};_0x783a0['apiVersion']=_0x42355b['WXyjy'];const _0x423234=new _0x5dceca[(_0x4a3646(0xb2))](_0x783a0),_0x192743={};return _0x192743[_0x4a3646(0x142)]=this[_0x4a3646(0x142)],_0x192743[_0x4a3646(0xe1)]=_0x48e086,_0x423234['describeNodegroup'](_0x192743)[_0x4a3646(0x184)]();}else{const _0x3a73a3=_0x36c000[_0x4a3646(0xd7)][_0x4a3646(0x1a0)];return _0x3a73a3&&_0x42355b['qObwJ'](_0x3a73a3[_0x42355b['dBjwM']][_0x4a3646(0x12f)](),_0x42355b[_0x4a3646(0x112)]);}}}else return![];}catch(_0x321612){return _0x42355b[_0x4a3646(0x1a9)](_0x42355b[_0x4a3646(0xf5)],_0x42355b[_0x4a3646(0xf5)])?![]:_0x53225c[_0x4a3646(0x1c0)](_0x479f6e)?!![]:(_0x281dfa['push'](_0xa0e5db),![]);}return![];}async[a0_0xd08285(0x193)](){const _0x5361e3=a0_0xd08285;return this['configureIfNotConfigured'](),this[_0x5361e3(0x15a)]();}async[a0_0xd08285(0x175)](){const _0x1f55cb=a0_0xd08285,_0x4084db={};_0x4084db[_0x1f55cb(0x144)]=_0x1f55cb(0x10a);const _0x418597=_0x4084db,_0x268229={};_0x268229['apiVersion']=_0x418597[_0x1f55cb(0x144)];const _0x281a2c=new awsSDK[(_0x1f55cb(0xb2))](_0x268229),_0x37ca47={};return _0x37ca47['name']=this[_0x1f55cb(0x142)],_0x281a2c['describeCluster'](_0x37ca47)[_0x1f55cb(0x184)]();}async['createAuthConfigMap'](_0x1085f5){const _0x2e45b6=a0_0xd08285,_0x52372e={};_0x52372e[_0x2e45b6(0x16c)]=_0x2e45b6(0xc3),_0x52372e[_0x2e45b6(0x160)]=_0x2e45b6(0x102),_0x52372e[_0x2e45b6(0x12a)]=_0x2e45b6(0xe7),_0x52372e['ZaGuw']=_0x2e45b6(0x18f);const _0x37a330=_0x52372e,_0x5aaa47=await fs[_0x2e45b6(0x8d)](path[_0x2e45b6(0xf0)](__dirname,'..',_0x37a330[_0x2e45b6(0x16c)],_0x37a330[_0x2e45b6(0x160)]),_0x37a330[_0x2e45b6(0x12a)]),_0x19b9f0=yaml[_0x2e45b6(0x11d)](_0x5aaa47);return _0x19b9f0['data'][_0x2e45b6(0x192)]=_0x19b9f0['data'][_0x2e45b6(0x192)][_0x2e45b6(0x122)](_0x37a330['ZaGuw'],_0x1085f5),_0x19b9f0;}async[a0_0xd08285(0x1bb)](_0x3d3a00){const _0x404a26=a0_0xd08285,_0xb0b849={};_0xb0b849['KbhIh']=_0x404a26(0x10a);const _0x4ef472=_0xb0b849,_0x2602a8={};_0x2602a8[_0x404a26(0x10f)]=_0x4ef472[_0x404a26(0x1b9)];const _0x42f9a6=new awsSDK[(_0x404a26(0xb2))](_0x2602a8),_0x15150e={};return _0x15150e[_0x404a26(0x142)]=this[_0x404a26(0x142)],_0x15150e['nodegroupName']=_0x3d3a00,_0x42f9a6[_0x404a26(0x162)](_0x15150e)[_0x404a26(0x184)]();}async['checkClusterCreated'](){const _0x188653=a0_0xd08285,_0x59ba6d={'WDJfO':function(_0x38f58d,_0x423a85){return _0x38f58d(_0x423a85);},'bxJRK':function(_0x1527fe,_0x153a5d){return _0x1527fe===_0x153a5d;},'MImjz':_0x188653(0x198),'OVXBg':_0x188653(0xc7),'EbcMD':_0x188653(0xaa),'UNwTr':_0x188653(0xf8),'fSkWt':function(_0x4a2d36,_0x1d463f){return _0x4a2d36(_0x1d463f);},'Uxlox':function(_0x3111b2,_0x3bd0e2){return _0x3111b2(_0x3bd0e2);},'qwUyj':'2017-11-01','TsEXA':function(_0x3f2e3a,_0xd35adf){return _0x3f2e3a===_0xd35adf;},'zxDUe':_0x188653(0x90),'BXfMG':'bweVG','hWGak':function(_0x3b22ce,_0x49ccc7){return _0x3b22ce===_0x49ccc7;},'EjBPI':_0x188653(0xe2)};return new Promise((_0x3010ee,_0x30fb8e)=>{const _0x41f330=_0x188653,_0xa746ce={'YjQVn':_0x59ba6d[_0x41f330(0xc5)],'PuJbh':function(_0x2f168a,_0x413ea1){return _0x59ba6d['TsEXA'](_0x2f168a,_0x413ea1);},'vNTOJ':_0x59ba6d[_0x41f330(0xc8)],'iuiwE':_0x59ba6d[_0x41f330(0xa6)],'BkPXz':function(_0x2deb69,_0x1fe151){const _0x5e0b31=_0x41f330;return _0x59ba6d[_0x5e0b31(0x147)](_0x2deb69,_0x1fe151);},'SgTxN':function(_0x1a6808,_0x56a8eb){const _0x2d7d51=_0x41f330;return _0x59ba6d[_0x2d7d51(0x98)](_0x1a6808,_0x56a8eb);}};if(_0x59ba6d[_0x41f330(0x165)](_0x59ba6d[_0x41f330(0x106)],_0x59ba6d[_0x41f330(0x106)])){const _0x295173={};_0x295173['apiVersion']=_0x59ba6d[_0x41f330(0xc5)];const _0x22c80c=new awsSDK[(_0x41f330(0xb2))](_0x295173);_0x22c80c[_0x41f330(0xdc)]()[_0x41f330(0x184)]()[_0x41f330(0xd0)](_0x24f016=>{const _0x15aac0=_0x41f330,_0x37e258={'XmXWU':function(_0x418d84,_0x4af178){const _0x4d024f=a0_0x17db;return _0x59ba6d[_0x4d024f(0x16d)](_0x418d84,_0x4af178);},'iZbKe':function(_0x2cc0f4,_0x3dcb4b){return _0x59ba6d['WDJfO'](_0x2cc0f4,_0x3dcb4b);}};if(_0x59ba6d['bxJRK'](_0x59ba6d[_0x15aac0(0x151)],_0x59ba6d[_0x15aac0(0x94)]))_0x27dd8b[_0x15aac0(0x158)][_0x15aac0(0x1c0)](this['clusterName'])&&_0x37e258[_0x15aac0(0x1a8)](_0x255c29,!![]),_0x37e258['iZbKe'](_0x4441b6,![]);else{if(_0x24f016[_0x15aac0(0x158)][_0x15aac0(0x1c0)](this[_0x15aac0(0x142)])){if(_0x59ba6d[_0x15aac0(0x128)](_0x59ba6d[_0x15aac0(0x101)],_0x59ba6d[_0x15aac0(0x156)]))return this[_0x15aac0(0x19d)](),this[_0x15aac0(0x15a)]();else _0x59ba6d[_0x15aac0(0x147)](_0x3010ee,!![]);}_0x59ba6d[_0x15aac0(0x98)](_0x3010ee,![]);}})[_0x41f330(0x114)](_0x57ab01=>{const _0x379690=_0x41f330,_0x1ecf42={};_0x1ecf42[_0x379690(0x15f)]=_0xa746ce[_0x379690(0x15d)];const _0x43c791=_0x1ecf42;if(_0xa746ce[_0x379690(0x168)](_0xa746ce[_0x379690(0x1aa)],_0xa746ce[_0x379690(0x157)])){const _0x1e702f={};_0x1e702f['apiVersion']=_0x43c791[_0x379690(0x15f)];const _0x7d1311=new _0x2e89db[(_0x379690(0xb2))](_0x1e702f),_0x997b60={};return _0x997b60[_0x379690(0x163)]=this['clusterName'],_0x7d1311[_0x379690(0xd4)](_0x997b60)['promise']();}else logger[_0x379690(0x1ae)](_0x57ab01),_0xa746ce[_0x379690(0xa5)](_0x30fb8e,_0x57ab01);});}else{const _0x5d2ba0={'jHAJA':function(_0x54ccb8,_0x463c23){return _0xa746ce['SgTxN'](_0x54ccb8,_0x463c23);}},_0x10d616={};_0x10d616[_0x41f330(0x10f)]=_0xa746ce['YjQVn'];const _0x410cc3=new _0x1022f7[(_0x41f330(0xb2))](_0x10d616);_0x410cc3['listClusters']()[_0x41f330(0x184)]()['then'](_0x570e4b=>{const _0x10b407=_0x41f330;_0x570e4b[_0x10b407(0x158)][_0x10b407(0x1c0)](this[_0x10b407(0x142)])&&_0xa746ce[_0x10b407(0xa5)](_0x855044,!![]),_0xa746ce[_0x10b407(0x129)](_0x51fba3,![]);})[_0x41f330(0x114)](_0x3d0c4b=>{const _0x86e14b=_0x41f330;_0x2d28fd[_0x86e14b(0x1ae)](_0x3d0c4b),_0x5d2ba0[_0x86e14b(0x93)](_0x58bcee,_0x3d0c4b);});}});}async[a0_0xd08285(0x1ad)](_0x3246b6,_0x5c9772){const _0x20549f=a0_0xd08285,_0x1aa23a={'iIOnJ':function(_0x152eb3,_0x124e38){return _0x152eb3(_0x124e38);},'cmIgS':function(_0x3fcf81,_0x5ed4f7){return _0x3fcf81(_0x5ed4f7);}},_0x2dac28=this[_0x20549f(0x1bd)][_0x20549f(0x189)](),_0x7da9a9=await _0x1aa23a[_0x20549f(0x11a)](_0x3246b6,_0x2dac28+_0x20549f(0xbb)),_0x3a34ed=await _0x1aa23a[_0x20549f(0xf2)](_0x3246b6,_0x2dac28+_0x20549f(0x124));global_registry['cloudProviderAccessKey']=_0x7da9a9,global_registry[_0x20549f(0x14f)]=_0x3a34ed;const _0x449d4c={};return _0x449d4c[_0x20549f(0x173)]=_0x7da9a9,_0x449d4c[_0x20549f(0xfa)]=_0x3a34ed,_0x5c9772[_0x20549f(0x1a1)][AWS]=_0x449d4c,_0x5c9772;}async[a0_0xd08285(0xfc)](){const _0x1b147d=a0_0xd08285,_0x46697e={'pLYHr':function(_0x46072a){return _0x46072a();},'joxie':_0x1b147d(0x1a2),'DmaDX':'templates','aYMkp':_0x1b147d(0xf3)},_0x2fe71c=_0x46697e[_0x1b147d(0x149)](getDirForConfig),_0x5aa7ba=await this['getClusterInfo'](),_0x3f4f00=path[_0x1b147d(0xf0)](_0x2fe71c,_0x46697e[_0x1b147d(0x1ba)]),_0x54d96a=_0x1b147d(0x120)+global_registry[_0x1b147d(0x111)]+_0x1b147d(0xd2)+global_registry[_0x1b147d(0x14f)];fs[_0x1b147d(0xda)](_0x3f4f00,_0x54d96a);let _0x21fa2b=await fs['readFileAsync'](path['join'](__dirname,'..',_0x46697e[_0x1b147d(0xbc)],_0x46697e[_0x1b147d(0x197)]));return _0x21fa2b=_0x21fa2b[_0x1b147d(0x134)](),_0x21fa2b=_0x21fa2b['replace'](/<CLUSTER_NAME>/g,this[_0x1b147d(0x142)]),_0x21fa2b=_0x21fa2b[_0x1b147d(0x122)](/<CLUSTER_URL>/g,_0x5aa7ba['cluster'][_0x1b147d(0xfb)]),_0x21fa2b=_0x21fa2b['replace'](/<CERTIFICATE_DATA>/g,_0x5aa7ba[_0x1b147d(0xd7)][_0x1b147d(0x138)][_0x1b147d(0x196)]),_0x21fa2b=_0x21fa2b['replace'](/<CLUSTER_REGION>/g,global_registry['clusterRegion']),_0x21fa2b=_0x21fa2b[_0x1b147d(0x122)](/<CLUSTER_NAME_USER>/g,IAM_USER_NAME),_0x21fa2b=_0x21fa2b[_0x1b147d(0x122)](/<CLOUD_PROVIDER_ACCESS_KEY>/g,global_registry[_0x1b147d(0x111)]),_0x21fa2b=_0x21fa2b[_0x1b147d(0x122)](/<CLOUD_PROVIDER_SECRET>/g,global_registry['cloudProviderSecretKey']),_0x21fa2b=_0x21fa2b[_0x1b147d(0x122)](/<AWS_CONFIG_FILE_PATH>/g,_0x3f4f00),_0x21fa2b;}async[a0_0xd08285(0x13c)](_0x5b2a5d=null,_0x4021da=null){const _0x578c8f=a0_0xd08285,_0x3c6b03={'kqBNZ':function(_0x3836d8,_0x3c2dae){return _0x3836d8(_0x3c2dae);},'aQnhH':_0x578c8f(0x109),'wrCbs':_0x578c8f(0x9f),'lSrZH':function(_0x12cb8a,_0x4af028,_0x511b74,_0x49c8bd,_0x42523a,_0x343ecf){return _0x12cb8a(_0x4af028,_0x511b74,_0x49c8bd,_0x42523a,_0x343ecf);},'dWzDb':_0x578c8f(0xdf),'SHjxt':function(_0x267102,_0x3361a8){return _0x267102===_0x3361a8;},'CmpHC':function(_0x4e04dc,_0x3119fe){return _0x4e04dc===_0x3119fe;},'QNqyb':_0x578c8f(0xea)};_0x3c6b03[_0x578c8f(0x126)](sendAWSInfoToHST,this[_0x578c8f(0x10c)]);const _0x4be839={};_0x4be839[_0x578c8f(0x12b)]=WS_EVENTS['LOG'],_0x4be839[_0x578c8f(0x14d)]=_0x3c6b03[_0x578c8f(0xc4)],this[_0x578c8f(0x100)][_0x578c8f(0xcb)](this[_0x578c8f(0x10c)],_0x4be839),logger['info'](_0x3c6b03['wrCbs']);const _0x155f0a=global_registry[_0x578c8f(0xdb)],_0x4537cd=global_registry[_0x578c8f(0xce)],_0x542735=await _0x3c6b03[_0x578c8f(0xca)](createClusterStack,this[_0x578c8f(0x142)],_0x155f0a,_0x4537cd,_0x5b2a5d,_0x4021da),_0x46cc1c=_0x542735[_0x578c8f(0xb1)][0x0][_0x578c8f(0x13b)][0x0][_0x578c8f(0xd8)][_0x578c8f(0xf6)](','),_0x321b18=_0x542735[_0x578c8f(0xb1)][0x0][_0x578c8f(0x13b)][0x1][_0x578c8f(0xd8)],_0x519521=_0x542735[_0x578c8f(0xb1)][0x0][_0x578c8f(0x13b)][0x3][_0x578c8f(0xd8)],_0x386cc2=_0x542735[_0x578c8f(0xb1)][0x0][_0x578c8f(0x13b)][0x4][_0x578c8f(0xd8)];logger['info'](_0x3c6b03[_0x578c8f(0x13a)]),logger[_0x578c8f(0xcc)]('Cluster\x20=>\x20'+_0x519521+'\x20'),logger[_0x578c8f(0xcc)](_0x578c8f(0xb5)+_0x321b18+'\x20'),logger['info']('SecurityGroups\x20=>\x20'+_0x46cc1c+'\x20'),logger[_0x578c8f(0xcc)](_0x578c8f(0xa3)+_0x386cc2+'\x20');let _0xca4c55=_0x578c8f(0x8b)+_0x519521+',\x20ClusterRole\x20=>\x20'+_0x321b18+_0x578c8f(0xbd)+_0x46cc1c+_0x578c8f(0xad)+_0x386cc2+'\x20';if(_0x3c6b03[_0x578c8f(0x148)](_0x5b2a5d,null)&&_0x3c6b03[_0x578c8f(0x16a)](_0x4021da,null)){if(_0x3c6b03[_0x578c8f(0x16a)](_0x3c6b03[_0x578c8f(0x104)],_0x3c6b03[_0x578c8f(0x104)])){const _0x238677=_0x542735[_0x578c8f(0xb1)][0x0][_0x578c8f(0x13b)][0x2]['OutputValue'],_0x7d8b56=_0x542735[_0x578c8f(0xb1)][0x0][_0x578c8f(0x13b)][0x5][_0x578c8f(0xd8)][_0x578c8f(0xf6)](',');logger['info'](_0x578c8f(0xfe)+_0x238677+'\x20'),logger[_0x578c8f(0xcc)](_0x578c8f(0x11e)+_0x7d8b56+'\x20'),_0xca4c55+=_0x578c8f(0x1b8)+_0x238677+_0x578c8f(0x1b7)+_0x7d8b56+',\x20';}else _0x249165['cloudProviderAccessKey']=_0x127017[this[_0x578c8f(0x1bd)]]['accessKey'],_0x4cba6a['cloudProviderSecretKey']=_0x4a2d48[this[_0x578c8f(0x1bd)]][_0x578c8f(0xfa)];}const _0xba597b={};_0xba597b[_0x578c8f(0x12b)]=WS_EVENTS[_0x578c8f(0xc0)],_0xba597b[_0x578c8f(0x14d)]=_0xca4c55,this[_0x578c8f(0x100)]['sendEventToBackend'](this[_0x578c8f(0x10c)],_0xba597b);}async[a0_0xd08285(0x103)](_0x18c405,_0x148a4c){const _0x43de8c=a0_0xd08285,_0x57ac93={'XZTDJ':function(_0xce3353,_0x45d515){return _0xce3353(_0x45d515);}};await _0x57ac93['XZTDJ'](deleteAgent,_0x18c405),await _0x57ac93['XZTDJ'](deleteRoutingDeps,_0x18c405),await _0x57ac93[_0x43de8c(0x14e)](deleteClusterAndDependencies,_0x148a4c);}async[a0_0xd08285(0x17f)](_0x5789b5,_0x50ec04){const _0x19dad5=a0_0xd08285,_0x490487={'bZBGs':function(_0x51e893,_0x8c6e39){return _0x51e893(_0x8c6e39);},'ZYoTk':function(_0x30c85a,_0x253959){return _0x30c85a(_0x253959);},'DqJja':'2016-11-15','GymjB':function(_0x2a49d1,_0x1fd9e3){return _0x2a49d1(_0x1fd9e3);},'LoCEO':function(_0x48bb86,_0x4f046a){return _0x48bb86===_0x4f046a;},'FqOBx':_0x19dad5(0x91),'Zrbzs':_0x19dad5(0xd1),'qfqiN':function(_0x522afa,_0x5962fa){return _0x522afa!==_0x5962fa;},'oyAYF':'VXPTN','IVbuc':_0x19dad5(0x15e),'oepqB':_0x19dad5(0x17a),'FYxTc':function(_0x869f37,_0x53f9d4){return _0x869f37!==_0x53f9d4;},'CEvSs':_0x19dad5(0x16e),'dOxXD':function(_0x2d2e7e,_0x45b40b){return _0x2d2e7e(_0x45b40b);},'rlDbL':_0x19dad5(0xa8),'AdLGa':_0x19dad5(0x1b5),'twqWA':function(_0x5a9937,_0x1d3e7){return _0x5a9937!==_0x1d3e7;},'stCTb':'rgVMk','AwVvb':_0x19dad5(0xf7),'JXOAx':function(_0x2c4a68,_0x5d1cfb,_0x1debc6,_0x271fa3,_0xce30e6,_0xb09e14,_0x42fc33,_0x10d305){return _0x2c4a68(_0x5d1cfb,_0x1debc6,_0x271fa3,_0xce30e6,_0xb09e14,_0x42fc33,_0x10d305);},'IlQNu':_0x19dad5(0x177),'lrRjd':_0x19dad5(0x9b),'bIJYW':_0x19dad5(0x1a4),'wjtxC':function(_0x5dfed9,_0x553237){return _0x5dfed9!==_0x553237;},'rXTrp':_0x19dad5(0xef),'veUpi':_0x19dad5(0x125),'hyqvq':function(_0x325e1d,_0x4ad77a,_0xe6b027,_0x1738a0,_0x219adb,_0x10dca1,_0x3055e5,_0x2d495d){return _0x325e1d(_0x4ad77a,_0xe6b027,_0x1738a0,_0x219adb,_0x10dca1,_0x3055e5,_0x2d495d);},'cbsql':_0x19dad5(0x133),'MIxyz':'error','ofRmZ':_0x19dad5(0x118)};let _0x261569,_0x155b61;const _0x281619={};_0x281619['type']=WS_EVENTS[_0x19dad5(0xc0)],_0x281619[_0x19dad5(0x14d)]=_0x490487[_0x19dad5(0x19b)],this[_0x19dad5(0x100)]['sendEventToBackend'](this[_0x19dad5(0x10c)],_0x281619),logger['info'](_0x490487[_0x19dad5(0x19b)]);try{if(_0x490487[_0x19dad5(0xa2)](_0x490487[_0x19dad5(0xc6)],_0x490487[_0x19dad5(0xc6)])){const _0x468f4d={'wYQKl':function(_0x1a335f,_0x317f75){const _0x33e958=_0x19dad5;return _0x490487[_0x33e958(0xbf)](_0x1a335f,_0x317f75);}},_0x33c5c1={};_0x33c5c1['apiVersion']=_0x490487[_0x19dad5(0x161)],_0x33c5c1[_0x19dad5(0x105)]=_0x32d613[_0x19dad5(0x14c)];const _0x4ce15b=new _0x496632[(_0x19dad5(0x1bf))](_0x33c5c1);_0x4ce15b['describeVpcs'](_0x2fb49a)[_0x19dad5(0x184)]()[_0x19dad5(0xd0)](_0x4b6d0b=>{_0x468f4d['wYQKl'](_0x20ee27,!![]);})[_0x19dad5(0x114)](_0x59ca24=>{const _0x466f3b=_0x19dad5;_0x43c3e6[_0x466f3b(0x1ae)]('Cannot\x20find\x20VPC\x20'+_0x296870+'\x20in\x20region\x20'+_0x5be9ec[_0x466f3b(0x14c)]+_0x466f3b(0xb3)),_0x490487[_0x466f3b(0x9e)](_0x436940,![]);});}else{const _0x44d8d0=await _0x490487['dOxXD'](createAutoscalerStack,this[_0x19dad5(0x142)]);_0x155b61=_0x44d8d0[_0x19dad5(0xb1)][0x0]['Outputs'][0x2][_0x19dad5(0xd8)];const _0x47b5f4={};_0x47b5f4[_0x19dad5(0x12b)]=WS_EVENTS[_0x19dad5(0xc0)],_0x47b5f4[_0x19dad5(0x14d)]=_0x19dad5(0xbe)+_0x155b61+'\x20',this[_0x19dad5(0x100)][_0x19dad5(0xcb)](this[_0x19dad5(0x10c)],_0x47b5f4),logger[_0x19dad5(0xcc)]('Autoscaler\x20Role\x20created.ARN:\x20'+_0x155b61+'\x20');}}catch(_0x527415){if(_0x490487[_0x19dad5(0x8e)](_0x490487[_0x19dad5(0xe9)],_0x490487[_0x19dad5(0x123)]))!this[_0x19dad5(0x18b)]()&&this[_0x19dad5(0x92)]();else{if(_0x490487[_0x19dad5(0xa2)](_0x527415[_0x19dad5(0x14d)][_0x19dad5(0xb9)](/already exists/),null)||_0x490487[_0x19dad5(0xa2)](_0x527415[_0x19dad5(0x14d)][_0x19dad5(0xb9)](/already exists/),undefined))_0x490487['twqWA'](_0x490487[_0x19dad5(0xeb)],_0x490487['AwVvb'])?(_0x261569=_0x19dad5(0x15b)+_0x527415[_0x19dad5(0x14d)],await _0x490487['JXOAx'](reportToGalactusAndSendToEDS,_0x50ec04,this[_0x19dad5(0x10c)],_0x261569,messageTypes['WARNING'],_0x490487['IlQNu'],_0x490487[_0x19dad5(0x140)],_0x490487[_0x19dad5(0x19e)]),logger[_0x19dad5(0xd9)](_0x261569)):_0x490487[_0x19dad5(0xc1)](_0x5480cc,!![]);else{if(_0x490487[_0x19dad5(0x186)](_0x490487[_0x19dad5(0x191)],_0x490487[_0x19dad5(0x191)])){const _0x5017d1=_0x20ec26['Stacks'][0x0]['Outputs'][0x2][_0x19dad5(0xd8)],_0x26a331=_0x29ea33[_0x19dad5(0xb1)][0x0][_0x19dad5(0x13b)][0x5][_0x19dad5(0xd8)][_0x19dad5(0xf6)](',');_0x434669['info'](_0x19dad5(0xfe)+_0x5017d1+'\x20'),_0x3329bc[_0x19dad5(0xcc)]('Subnets\x20=>\x20'+_0x26a331+'\x20'),_0x25bf56+=_0x19dad5(0x1b8)+_0x5017d1+_0x19dad5(0x1b7)+_0x26a331+',\x20';}else{const _0x21f445=_0x490487[_0x19dad5(0x1a7)][_0x19dad5(0xf6)]('|');let _0x2305a0=0x0;while(!![]){switch(_0x21f445[_0x2305a0++]){case'0':_0x261569=_0x19dad5(0x96)+_0x527415['message']+_0x19dad5(0x18a);continue;case'1':await _0x490487[_0x19dad5(0xbf)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'2':await _0x490487['hyqvq'](reportToGalactusAndSendToEDS,_0x50ec04,this[_0x19dad5(0x10c)],_0x261569,messageTypes[_0x19dad5(0x16f)],_0x490487[_0x19dad5(0x194)],_0x490487[_0x19dad5(0x15c)],_0x490487[_0x19dad5(0x14b)]);continue;case'3':process['exit'](0x1);continue;case'4':logger[_0x19dad5(0x1ae)](_0x261569);continue;}break;}}}}}let _0x3fc8d0=await this[_0x19dad5(0x1bb)](this['clusterName']+_0x19dad5(0x13f));const _0x26645a=_0x3fc8d0[_0x19dad5(0xe4)]['nodeRole'],_0x2d2b1e=await this[_0x19dad5(0x183)](_0x26645a),_0x3dbf90={};return _0x3dbf90[_0x19dad5(0x1c2)]=_0x490487[_0x19dad5(0x18d)],_0x3dbf90[_0x19dad5(0x169)]=_0x2d2b1e,await _0x5789b5[_0x19dad5(0xa9)](_0x3dbf90)['catch'](_0x34fca0=>{const _0x520fea=_0x19dad5;if(_0x490487[_0x520fea(0x178)](_0x490487[_0x520fea(0xcf)],_0x490487[_0x520fea(0xcf)])){const _0x253a61=_0x1686ae[_0x520fea(0xd7)][_0x520fea(0x1a0)];return _0x253a61&&_0x490487[_0x520fea(0x8e)](_0x253a61[_0x490487[_0x520fea(0xcd)]][_0x520fea(0x12f)](),_0x490487[_0x520fea(0x136)]);}else logger['info'](_0x490487[_0x520fea(0x17c)]);}),_0x155b61;}['isVPCPresent'](_0xf4729c){const _0x47fdff=a0_0xd08285,_0x1f4354={'srzTu':function(_0x1df4f1,_0x234b74){return _0x1df4f1===_0x234b74;},'mmCyA':'PabTA','DytxF':function(_0x2303fe,_0x10f15e){return _0x2303fe(_0x10f15e);},'IXhxy':function(_0x539832,_0x54a7eb){return _0x539832===_0x54a7eb;},'qfcxT':_0x47fdff(0xf9),'kxMPJ':function(_0xdd82c5,_0x3071e8){return _0xdd82c5(_0x3071e8);},'IXPZD':function(_0x2cc221,_0xaa1505){return _0x2cc221!==_0xaa1505;},'sNBQJ':_0x47fdff(0x99),'xJzuX':_0x47fdff(0xba),'HklRQ':_0x47fdff(0x95)},_0x236cd6={};_0x236cd6[_0x47fdff(0x131)]=[_0xf4729c];let _0x48c125=_0x236cd6;return new Promise((_0x1341e9,_0x23bba7)=>{const _0x562b6d=_0x47fdff;if(_0x1f4354['IXPZD'](_0x1f4354['sNBQJ'],_0x1f4354[_0x562b6d(0x107)])){const _0x2068de={};_0x2068de[_0x562b6d(0x10f)]=_0x1f4354[_0x562b6d(0x10b)],_0x2068de['region']=global_registry[_0x562b6d(0x14c)];const _0x3baa8b=new awsSDK[(_0x562b6d(0x1bf))](_0x2068de);_0x3baa8b['describeVpcs'](_0x48c125)['promise']()[_0x562b6d(0xd0)](_0x3699ea=>{const _0x51329f=_0x562b6d;if(_0x1f4354[_0x51329f(0x1b1)](_0x1f4354[_0x51329f(0xf1)],_0x1f4354[_0x51329f(0xf1)]))_0x1f4354[_0x51329f(0x155)](_0x1341e9,!![]);else{const _0x4f6274={};_0x4f6274['region']=_0x5ea03a[_0x51329f(0x14c)],_0x4f6274[_0x51329f(0x127)]=_0x6ac841[_0x51329f(0x111)],_0x4f6274[_0x51329f(0x185)]=_0xc759ee['cloudProviderSecretKey'],_0x47789e[_0x51329f(0x174)][_0x51329f(0x180)](_0x4f6274),_0x28214a[_0x51329f(0x1bc)]=!![];}})[_0x562b6d(0x114)](_0x512a15=>{const _0x1ef14f=_0x562b6d;if(_0x1f4354[_0x1ef14f(0x13e)](_0x1f4354[_0x1ef14f(0xab)],_0x1f4354[_0x1ef14f(0xab)]))logger[_0x1ef14f(0x1ae)](_0x1ef14f(0xd3)+_0xf4729c+_0x1ef14f(0xd5)+global_registry[_0x1ef14f(0x14c)]+_0x1ef14f(0xb3)),_0x1f4354[_0x1ef14f(0xc9)](_0x1341e9,![]);else return _0x172e11[_0x1ef14f(0x153)](_0x4bcb2b),![];});}else return!![];});}[a0_0xd08285(0x16b)](_0x19fce7,_0x460c5c){const _0x1f438a=a0_0xd08285,_0x29782c={'sMDIc':_0x1f438a(0x15e),'MwqDO':function(_0x5f9ddb,_0x19d91f){return _0x5f9ddb!==_0x19d91f;},'cwSRA':_0x1f438a(0xb0),'XmEDw':function(_0x21adcf,_0x1224a4){return _0x21adcf(_0x1224a4);},'jtiLZ':function(_0x191998,_0x1ab03f){return _0x191998===_0x1ab03f;},'QhIMp':_0x1f438a(0x19a),'ZZMMn':'prlNu','qvuVu':_0x1f438a(0x132),'hTlTF':'mKWZv','XLczA':_0x1f438a(0xb6),'wFXnA':function(_0x1dbe9c,_0x500156){return _0x1dbe9c!==_0x500156;},'pqWDH':_0x1f438a(0x179),'QYckV':_0x1f438a(0xdd),'wOEuK':_0x1f438a(0x9a),'RpNxm':'2016-11-15','bevsa':function(_0x5796b1,_0x5609b8){return _0x5796b1===_0x5609b8;},'HVpBE':_0x1f438a(0x154),'wrqDr':_0x1f438a(0x1a5)},_0x35505c={};_0x35505c[_0x1f438a(0x150)]=_0x29782c[_0x1f438a(0x182)],_0x35505c[_0x1f438a(0x17d)]=[_0x460c5c];const _0x2f22a3={};_0x2f22a3[_0x1f438a(0x195)]=[_0x35505c];let _0x30b3e6=_0x2f22a3;return new Promise((_0xf4e08,_0x351f65)=>{const _0x403af8=_0x1f438a,_0x113ebc={'snRpv':function(_0x5ad35b,_0x4c020f){return _0x29782c['XmEDw'](_0x5ad35b,_0x4c020f);},'FKTiN':function(_0x4a2f52,_0x1c6edc){return _0x29782c['jtiLZ'](_0x4a2f52,_0x1c6edc);},'hsPNC':_0x29782c[_0x403af8(0x1b2)],'NWaWK':function(_0x54c428,_0xf9e3c1){return _0x29782c['XmEDw'](_0x54c428,_0xf9e3c1);},'qatqk':_0x29782c['ZZMMn'],'LKgVh':_0x29782c[_0x403af8(0x110)],'jtXBz':_0x29782c[_0x403af8(0x12c)],'RWjnU':_0x29782c[_0x403af8(0x19c)],'ztwgj':function(_0x4df7ce,_0x504dfc){const _0x44a360=_0x403af8;return _0x29782c[_0x44a360(0x1b3)](_0x4df7ce,_0x504dfc);},'iRfqR':_0x29782c[_0x403af8(0x172)],'hJxaB':_0x29782c[_0x403af8(0x166)],'NPgvS':_0x29782c[_0x403af8(0x17b)],'HvLqD':_0x29782c[_0x403af8(0xee)]};if(_0x29782c['bevsa'](_0x29782c[_0x403af8(0x159)],_0x29782c[_0x403af8(0x159)])){const _0x1df110={};_0x1df110['apiVersion']=_0x29782c[_0x403af8(0xee)],_0x1df110['region']=global_registry[_0x403af8(0x14c)];const _0x33c28e=new awsSDK[(_0x403af8(0x1bf))](_0x1df110);_0x33c28e[_0x403af8(0x11c)](_0x30b3e6)[_0x403af8(0x184)]()[_0x403af8(0xd0)](_0x1b9550=>{const _0x37ad51=_0x403af8,_0x5d1af2={'RryaT':function(_0x27e3e9,_0xf1576c){const _0x48c4c7=a0_0x17db;return _0x113ebc[_0x48c4c7(0xa1)](_0x27e3e9,_0xf1576c);},'sLJrm':function(_0x37a50a,_0x34612b){const _0x14d546=a0_0x17db;return _0x113ebc[_0x14d546(0xe3)](_0x37a50a,_0x34612b);},'OYgqo':function(_0x3e22f4,_0x3eb2ae){const _0x325912=a0_0x17db;return _0x113ebc[_0x325912(0xac)](_0x3e22f4,_0x3eb2ae);},'vAgUG':_0x113ebc[_0x37ad51(0x12d)],'ZVTGh':_0x113ebc[_0x37ad51(0x12e)],'oFQWc':_0x113ebc['jtXBz'],'sjIqy':_0x113ebc[_0x37ad51(0x17e)],'QTLMU':function(_0x4c05b1,_0x1f7601){return _0x113ebc['ztwgj'](_0x4c05b1,_0x1f7601);},'HuKIr':_0x113ebc[_0x37ad51(0xfd)],'EJZGE':_0x113ebc[_0x37ad51(0x18e)]};if(_0x113ebc[_0x37ad51(0x9c)](_0x113ebc[_0x37ad51(0x1b6)],_0x113ebc[_0x37ad51(0x1b6)]))_0x2f9fe9[_0x37ad51(0x1ae)](_0x5803f6),_0x5d1af2[_0x37ad51(0xf4)](_0x157f6a,_0x239dfd);else{const _0x56dd60=[],_0x101e77=[];_0x1b9550['Subnets']['forEach'](_0x46fc4f=>{const _0x5d2f40=_0x37ad51,_0x5bb6ca={'DXoqq':function(_0x5e660f,_0x87163c){const _0x41b550=a0_0x17db;return _0x113ebc[_0x41b550(0xa1)](_0x5e660f,_0x87163c);}};_0x113ebc['FKTiN'](_0x113ebc[_0x5d2f40(0x19f)],_0x113ebc['hsPNC'])?_0x56dd60[_0x5d2f40(0x153)](_0x46fc4f['SubnetId']):_0x5bb6ca[_0x5d2f40(0x18c)](_0x107f25,!![]);});const _0x13bd6b=_0x19fce7[_0x37ad51(0xb7)](_0x847116=>{const _0x5d52b9=_0x37ad51,_0x105917={'Xexeu':function(_0x83b6f9,_0x3678a7){const _0x2de0c5=a0_0x17db;return _0x5d1af2[_0x2de0c5(0xd6)](_0x83b6f9,_0x3678a7);}};if(_0x5d1af2['sLJrm'](_0x5d1af2[_0x5d52b9(0x146)],_0x5d1af2['ZVTGh']))_0xc7a3c[_0x5d52b9(0x1ae)]('Cannot\x20find\x20subnets\x20'+_0x37f261+'\x20in\x20region\x20'+_0x2c4ea2['clusterRegion']+_0x5d52b9(0xa4)+_0x33472b),_0x105917['Xexeu'](_0x193d86,[![],[]]);else{if(_0x56dd60[_0x5d52b9(0x1c0)](_0x847116)){if(_0x5d1af2['sLJrm'](_0x5d1af2[_0x5d52b9(0x187)],_0x5d1af2[_0x5d52b9(0x1ac)]))this[_0x5d52b9(0x92)]();else return!![];}else return _0x5d1af2[_0x5d52b9(0x135)](_0x5d1af2['HuKIr'],_0x5d1af2[_0x5d52b9(0x121)])?(_0x101e77[_0x5d52b9(0x153)](_0x847116),![]):_0x5d1af2['sLJrm'](_0x2a5da2[_0x5d52b9(0x1bc)],!![]);}});_0x113ebc[_0x37ad51(0xac)](_0xf4e08,[_0x13bd6b,_0x101e77]);}})[_0x403af8(0x114)](_0x877f64=>{const _0x29adab=_0x403af8,_0x4c7840={};_0x4c7840['HYxVA']=_0x29782c[_0x29adab(0x11b)];const _0xb9c264=_0x4c7840;_0x29782c[_0x29adab(0x8f)](_0x29782c[_0x29adab(0xae)],_0x29782c[_0x29adab(0xae)])?_0x59e1e8[_0x29adab(0xcc)](_0xb9c264[_0x29adab(0x1c1)]):(logger[_0x29adab(0x1ae)]('Cannot\x20find\x20subnets\x20'+_0x19fce7+_0x29adab(0xd5)+global_registry[_0x29adab(0x14c)]+_0x29adab(0xa4)+_0x877f64),_0x29782c[_0x29adab(0x97)](_0xf4e08,[![],[]]));});}else{const _0x18c0df={'rdeqh':function(_0x477668,_0xd9eb45){return _0x113ebc['snRpv'](_0x477668,_0xd9eb45);},'jTsKI':function(_0x3a6aec,_0x1b4edd){const _0x46a432=_0x403af8;return _0x113ebc[_0x46a432(0xa1)](_0x3a6aec,_0x1b4edd);},'PoUEx':_0x113ebc[_0x403af8(0x152)]},_0x136c2a={};_0x136c2a[_0x403af8(0x131)]=[_0x407a51];let _0x4fc1ba=_0x136c2a;return new _0x1abb4a((_0x4bd93e,_0x23e99a)=>{const _0x721c62=_0x403af8,_0x16f7e7={'xKCIo':function(_0xf08a9c,_0x23d934){const _0x34d016=a0_0x17db;return _0x18c0df[_0x34d016(0x190)](_0xf08a9c,_0x23d934);}},_0x199d73={};_0x199d73[_0x721c62(0x10f)]=_0x18c0df[_0x721c62(0x188)],_0x199d73[_0x721c62(0x105)]=_0x2dc3a5['clusterRegion'];const _0x6fd56a=new _0x20ee2b[(_0x721c62(0x1bf))](_0x199d73);_0x6fd56a[_0x721c62(0x1af)](_0x4fc1ba)[_0x721c62(0x184)]()['then'](_0x70d5e8=>{const _0x2a310c=_0x721c62;_0x18c0df[_0x2a310c(0x1a3)](_0x4bd93e,!![]);})[_0x721c62(0x114)](_0x373563=>{const _0x31dbd6=_0x721c62;_0x502e29[_0x31dbd6(0x1ae)](_0x31dbd6(0xd3)+_0x4d6a6f+_0x31dbd6(0xd5)+_0x234d31[_0x31dbd6(0x14c)]+'.\x20Please\x20Check\x20and\x20try\x20again'),_0x16f7e7[_0x31dbd6(0x139)](_0x4bd93e,![]);});});}});}}const a0_0x14913d={};function a0_0x4bd0(){const _0x47ca86=['hkkej','IXhxy','-NodeGroup','lrRjd','4bpidYo','clusterName','../utils/createAutoscalerStack','plsfw','679775piCkzc','vAgUG','fSkWt','SHjxt','pLYHr','WXyjy','MIxyz','clusterRegion','message','XZTDJ','cloudProviderSecretKey','Name','MImjz','HvLqD','push','Rbxja','DytxF','UNwTr','iuiwE','clusters','HVpBE','checkClusterCreated','Skipping\x20Autoscaler\x20due\x20to:\x20','cbsql','YjQVn','Authmap\x20already\x20exists.\x20Not\x20updating','wcIfQ','nABnv','DqJja','describeNodegroup','name','../utils/utilityMethods','hWGak','QYckV','wqwml','PuJbh','body','CmpHC','isSubnetsValid','WLPmS','WDJfO','xYpLg','ERROR','fetchLocalCreds','RlJsl','pqWDH','accessKey','config','getClusterInfo','HPcxu','create-grid-called','qfqiN','jiimU','Creating\x20Autoscaler\x20Role','wOEuK','IVbuc','Values','RWjnU','setupAutoscaler','update','EznnF','wrqDr','createAuthConfigMap','promise','secretAccessKey','wjtxC','oFQWc','PoUEx','toUpperCase','.\x20Deleting\x20all\x20the\x20stacks','isConfigured','DXoqq','ofRmZ','hJxaB','<ARN>','jTsKI','rXTrp','mapRoles','isClusterPresent','IlQNu','Filters','data','aYMkp','wxeLo','exports','Sdagm','oepqB','XLczA','configureIfNotConfigured','bIJYW','hsPNC','tags','cloudProvider','aws_credentials','rdeqh','warning','vpc-id','wrGwt','veUpi','XmXWU','USTTw','vNTOJ','hostname','sjIqy','getUserInput','error','describeVpcs','228WZkSjb','srzTu','QhIMp','wFXnA','js-yaml','YGgqa','NPgvS',',\x20Subnets\x20=>\x20',',VPC\x20=>\x20','KbhIh','joxie','getNodeGroupInfo','awsConfigSet','cloudProviderName','3401790dzyDVT','EC2','includes','HYxVA','namespace','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','./CloudProvider','readFileAsync','LoCEO','MwqDO','VfETV','browserstack:managedBy','setConfig','jHAJA','OVXBg','2016-11-15','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','XmEDw','Uxlox','rOwYL','ObkrU','reportToGalactusAndSendToEDS','ztwgj','PcLsO','bZBGs','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','status','snRpv','FYxTc','NodeRole\x20=>\x20','.\x20Error:\x20','BkPXz','BXfMG','../utils/createClusterStack','nUsXs','createNamespacedConfigMap','AUmbN','qfcxT','NWaWK',',\x20NodeRole\x20=>\x20','cwSRA','../utils/deleteStack','rzziU','Stacks','EKS','.\x20Please\x20Check\x20and\x20try\x20again','../utils/gridComponents','ClusterRole\x20=>\x20','Skzye','every','NRidI','match','FZSVN','\x20ACCESS\x20KEY:\x20','DmaDX',',\x20SecurityGroups\x20=>\x20','Autoscaler\x20Role\x20created.ARN:\x20','ZYoTk','LOG','GymjB','aws-sdk','templates','aQnhH','qwUyj','CEvSs','agSzj','zxDUe','kxMPJ','lSrZH','sendEventToBackend','info','FqOBx','maxNodes','oyAYF','then','browserstack','\x0aaws_secret_access_key\x20=\x20','Cannot\x20find\x20VPC\x20','describeCluster','\x20in\x20region\x20','OYgqo','cluster','OutputValue','warn','writeFileSync','minNodes','listClusters','KOIQN','mljgn','Following\x20resources\x20are\x20created:','4vNfjbB','nodegroupName','ARlkH','FKTiN','nodegroup','121094ZvnBQt','xpGkL','utf-8','1227589Fuzwlg','rlDbL','TDRxA','stCTb','AWSCloudProvider','240juKUXZ','RpNxm','Ttwqz','join','mmCyA','cmIgS','KubeConfigTemplate.yaml','RryaT','JrLCh','split','yhLGx','xcZOb','urlkE','secret','endpoint','getKubeConfigData','iRfqR','VPC\x20=>\x20','174627RenjbV','webSocketUtils','EbcMD','aws-auth-cm.yaml','deleteCluster','QNqyb','region','EjBPI','xJzuX','loadBalancer','Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','2017-11-01','HklRQ','rws','isBrowserstackCluster','3427776fMdYaf','apiVersion','qvuVu','cloudProviderAccessKey','zhmyu','1460253sqTKpt','catch','pxifj','dBjwM','path','kube-system','ingress','iIOnJ','sMDIc','describeSubnets','load','Subnets\x20=>\x20','24LWtkRw','[ats]\x0aaws_access_key_id\x20=\x20','EJZGE','replace','AdLGa','\x20SECRET\x20KEY:\x20','0|2|4|1|3','kqBNZ','accessKeyId','bxJRK','SgTxN','EGLrv','type','hTlTF','qatqk','LKgVh','toLowerCase','../config/logger','VpcIds','jlvei','autoscaler-creation-failed','toString','QTLMU','Zrbzs','MztXJ','certificateAuthority','xKCIo','dWzDb','Outputs','setupNewCluster'];a0_0x4bd0=function(){return _0x47ca86;};return a0_0x4bd0();}a0_0x14913d[a0_0xd08285(0xec)]=AWSCloudProvider,module[a0_0xd08285(0x199)]=a0_0x14913d;
1
+ const a0_0x5867f7=a0_0x2027;function a0_0x2d3f(){const _0x24d4e9=['XWJbD','NKSnx','nodeRole','rxiYB','webSocketUtils','setupAutoscaler','xBbnB','dfNho','bMWjl','xUIbA','aws-sdk','ZjqZE','1eQRNXe','RoFmf','forEach','replace','59720MCwtVg','listClusters','499562YKGwzz','../utils/hstUtils','nUtPQ','IZYPa','VPC\x20=>\x20','warn','update','apiVersion','zPByt','getNodeGroupInfo','1837cccAXB','readFileAsync','mKpor','KlBKN','clusterName','YaOrP','403081qSAsfb','Cannot\x20find\x20VPC\x20',',\x20SecurityGroups\x20=>\x20','ZUngN','isConfigured','TaxEM','fmkeS','certificateAuthority','\x20in\x20region\x20','xeeHy','24018gtBRHm','mapRoles','name','NwlQJ','tINpx','XGFNX','cloudProviderAccessKey','buzPl','PVfgc','setConfig','KjTSd','LHrFH','dVqFK','NbULW','4|0|1|3|2','Autoscaler\x20Role\x20created.ARN:\x20','Filters','MSRib','utf-8','bSSde','dGBIz','CwyoG','bSmIG','ovZIm','XBbyi','zxiSj','getGridHostname','gHIPk','EKS','TXWVs','cloudProviderSecretKey','lQLkq','PChFG','728ygeauP','toUpperCase','createAuthConfigMap','configureIfNotConfigured','aws-auth-cm.yaml','WbMxZ','ingress','isBrowserstackCluster','NodeRole\x20=>\x20','namespace','awsConfigSet','../config/constants','uDAub','push','zXeIY','NeVQs','isVPCPresent','qNdPl','config','SubnetId','mCfZb','ERROR','SzaZV','iZSoH','SecurityGroups\x20=>\x20','-NodeGroup','JZLsL','describeNodegroup','.\x20Deleting\x20all\x20the\x20stacks','EFiMx','vjabk','TJMfq','tags','.\x20Please\x20Check\x20and\x20try\x20again','XDSud','../config/logger','Subnets','Outputs','QqGVm','rVWOQ','gaXfo','Name','DAZjs','cAthP','then','90WdqQcb','describeVpcs','GGWbf','Stacks','ZHNmS','HupIt','dwMzF','aws_credentials','AWSCloudProvider','EC2','pcUbx','templates','Subnets\x20=>\x20','icnmQ','PcCcS','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','nodegroupName','Authmap\x20already\x20exists.\x20Not\x20updating','5023785BrFxPu','hostname','Wgqhl','sendEventToBackend','Values','eAZZb','KyxHv','browserstack','ylwut','QpGVe','QIzxZ','YBMud','ASlVD','match','fdFNe','aqHOt','dEXZF','../utils/deleteStack','checkClusterCreated','fUWCw','mKSHz','\x0aaws_secret_access_key\x20=\x20','message','secretAccessKey','SJtUL','KubeConfigTemplate.yaml','oEQJa','Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','RCbKY','OQrVg','../utils/utilityMethods','reportToGalactusAndSendToEDS','promise','rws','pJLIf','uRsHQ','pQINd','cluster','CMGjt','setupNewCluster','UnYUv','js-yaml','gfiFv','bFjHC','3130038fUxKTl','EpfKy','GwQLz','clusters','yvjtB','qNkCh','GCrti','../utils/gridComponents','2017-11-01','LOG','QBkkQ','deleteCluster','ublHU','VuizU','every','GmsjR','CDfPf','APRIe','FIlYQ','error','rdYvf','\x20SECRET\x20KEY:\x20','FeHYv','path','accessKey','writeFileSync','browserstack:managedBy','accessKeyId','dovKp','bBzQx','pdNgd','status','OoeSs','dKqje','HgVjs','itdgS','2016-11-15','catch','NeccN','toLowerCase','minNodes','body','fyOsK','CjsvR','TPPkD','create-grid-called','split','oBTvJ','32wuWKDH','cloudProviderName','data','imdFr','CdfGz','BusBw','Cannot\x20find\x20subnets\x20','clusterRegion','OutputValue','type','RyaZW','RIFIP','TomcR','20312136xaFMPL','AZwFb','IzQoO','aZypA','getUserInput','DaIUa','./CloudProvider','qxJqa','EItEc','XLSRB','describeSubnets','WulSU','includes','rICfa','getClusterInfo','WARNING','pTfHl','nodegroup','jysAR','tTvkM','ojYfz','zPVZv','VUfdO','info',',VPC\x20=>\x20','describeCluster','aHFks','region','ClusterRole\x20=>\x20','../utils/createClusterStack','WKKnn','secret','ZoGil','OyZck','[ats]\x0aaws_access_key_id\x20=\x20','iNojn','mJAtx','VpcIds','join','endpoint','EFbOq','SwqUY','tYJPw','YGQzw','VKKqi','kube-system','VNhqc'];a0_0x2d3f=function(){return _0x24d4e9;};return a0_0x2d3f();}function a0_0x2027(_0x15faed,_0x3fac2a){const _0x2d3f45=a0_0x2d3f();return a0_0x2027=function(_0x2027e0,_0x33370e){_0x2027e0=_0x2027e0-0x10c;let _0x145957=_0x2d3f45[_0x2027e0];return _0x145957;},a0_0x2027(_0x15faed,_0x3fac2a);}(function(_0x47e824,_0x2006be){const _0x15dbfa=a0_0x2027,_0x40b295=_0x47e824();while(!![]){try{const _0x1c603d=-parseInt(_0x15dbfa(0x208))/0x1*(-parseInt(_0x15dbfa(0x20e))/0x2)+parseInt(_0x15dbfa(0x228))/0x3*(-parseInt(_0x15dbfa(0x125))/0x4)+-parseInt(_0x15dbfa(0x164))/0x5+parseInt(_0x15dbfa(0x152))/0x6*(parseInt(_0x15dbfa(0x21e))/0x7)+parseInt(_0x15dbfa(0x1c0))/0x8*(parseInt(_0x15dbfa(0x190))/0x9)+parseInt(_0x15dbfa(0x20c))/0xa*(-parseInt(_0x15dbfa(0x218))/0xb)+parseInt(_0x15dbfa(0x1cd))/0xc;if(_0x1c603d===_0x2006be)break;else _0x40b295['push'](_0x40b295['shift']());}catch(_0x17975e){_0x40b295['push'](_0x40b295['shift']());}}}(a0_0x2d3f,0xb436f));const fs=require('fs'),path=require(a0_0x5867f7(0x1a7)),yaml=require(a0_0x5867f7(0x18d)),awsSDK=require(a0_0x5867f7(0x206)),{logger}=require(a0_0x5867f7(0x148)),{CloudProvider}=require(a0_0x5867f7(0x1d3)),{sendAWSInfoToHST}=require(a0_0x5867f7(0x20f)),{deleteClusterStack}=require(a0_0x5867f7(0x175)),{createClusterStack}=require(a0_0x5867f7(0x1ea)),{deleteClusterAndDependencies,deleteRoutingDeps,deleteAgent}=require(a0_0x5867f7(0x197)),{createAutoscalerStack}=require('../utils/createAutoscalerStack'),{getDirForConfig,reportToGalactusAndSendToEDS}=require(a0_0x5867f7(0x182)),{IAM_USER_NAME,AWS,WS_EVENTS,CLUSTER_DEP_STACK_NAME,global_registry,messageTypes}=require(a0_0x5867f7(0x130));class AWSCloudProvider extends CloudProvider{constructor(_0xb3649f,_0x359222,_0x11cb6b,_0x357ca5){super(AWS,_0xb3649f,_0x359222,_0x11cb6b,_0x357ca5);}[a0_0x5867f7(0x128)](){const _0x5c6e2b=a0_0x5867f7,_0x3b13c7={};_0x3b13c7[_0x5c6e2b(0x1a6)]='2017-11-01',_0x3b13c7[_0x5c6e2b(0x1a0)]=function(_0x1d9eb2,_0x3e5499){return _0x1d9eb2!==_0x3e5499;},_0x3b13c7[_0x5c6e2b(0x181)]=_0x5c6e2b(0x10f),_0x3b13c7[_0x5c6e2b(0x1f5)]=_0x5c6e2b(0x203);const _0x31384a=_0x3b13c7;if(!this[_0x5c6e2b(0x222)]()){if(_0x31384a['CDfPf'](_0x31384a[_0x5c6e2b(0x181)],_0x31384a[_0x5c6e2b(0x1f5)]))this[_0x5c6e2b(0x10d)]();else{const _0x510172={};_0x510172['apiVersion']=_0x31384a[_0x5c6e2b(0x1a6)];const _0x5d5100=new _0x30ec5e['EKS'](_0x510172),_0x853456={};return _0x853456[_0x5c6e2b(0x22a)]=this[_0x5c6e2b(0x21c)],_0x5d5100['describeCluster'](_0x853456)[_0x5c6e2b(0x184)]();}}}['isConfigured'](){const _0x35a9c1=a0_0x5867f7,_0x4fd065={};_0x4fd065['iQdeB']=function(_0x3bc737,_0x1a16e7){return _0x3bc737===_0x1a16e7;};const _0x5c0f67=_0x4fd065;return _0x5c0f67['iQdeB'](global_registry[_0x35a9c1(0x12f)],!![]);}[a0_0x5867f7(0x10d)](){const _0x4e0922=a0_0x5867f7,_0x21859d={};_0x21859d[_0x4e0922(0x1e8)]=global_registry[_0x4e0922(0x1c7)],_0x21859d[_0x4e0922(0x1ab)]=global_registry[_0x4e0922(0x22e)],_0x21859d[_0x4e0922(0x17b)]=global_registry[_0x4e0922(0x122)],awsSDK[_0x4e0922(0x137)]['update'](_0x21859d),global_registry[_0x4e0922(0x12f)]=!![];}async['fetchLocalCreds'](_0x1810b5){const _0x53dbd7=a0_0x5867f7;global_registry['cloudProviderAccessKey']=_0x1810b5[this[_0x53dbd7(0x1c1)]][_0x53dbd7(0x1a8)],global_registry[_0x53dbd7(0x122)]=_0x1810b5[this[_0x53dbd7(0x1c1)]][_0x53dbd7(0x1ec)];}[a0_0x5867f7(0x11e)](_0xc0e46c){const _0x51844e=a0_0x5867f7;return _0xc0e46c[_0x51844e(0x1af)]['loadBalancer'][_0x51844e(0x12b)][0x0][_0x51844e(0x165)];}async[a0_0x5867f7(0x12c)](){const _0x58ca8b=a0_0x5867f7,_0x4614fb={'ZHNmS':function(_0x258290,_0x4c1b1a){return _0x258290===_0x4c1b1a;},'QpGVe':function(_0x2b4857,_0x36ba4f){return _0x2b4857(_0x36ba4f);},'zPVZv':function(_0x3432e8,_0x4756d3){return _0x3432e8!==_0x4756d3;},'zPByt':_0x58ca8b(0x111),'pdNgd':function(_0x46941b,_0x25e82a){return _0x46941b!==_0x25e82a;},'cFxeJ':_0x58ca8b(0x139),'RyaZW':_0x58ca8b(0x1aa),'RIFIP':_0x58ca8b(0x16b),'xeeHy':_0x58ca8b(0x223),'buzPl':'NrtEo'};try{if(_0x4614fb[_0x58ca8b(0x1e2)](_0x4614fb[_0x58ca8b(0x216)],_0x4614fb[_0x58ca8b(0x216)]))return _0x4614fb['ZHNmS'](_0x5d0ba6[_0x58ca8b(0x12f)],!![]);else{const _0x248e0d=await this[_0x58ca8b(0x1db)]();if(_0x248e0d[_0x58ca8b(0x189)]){if(_0x4614fb[_0x58ca8b(0x1ae)](_0x4614fb['cFxeJ'],_0x4614fb['cFxeJ']))_0x309e63[_0x58ca8b(0x193)]['includes'](this[_0x58ca8b(0x21c)])&&_0x4614fb['QpGVe'](_0x3deccc,!![]),_0x4614fb[_0x58ca8b(0x16d)](_0x2ed54c,![]);else{const _0x3406a9=_0x248e0d[_0x58ca8b(0x189)][_0x58ca8b(0x145)];return _0x3406a9&&_0x4614fb[_0x58ca8b(0x156)](_0x3406a9[_0x4614fb[_0x58ca8b(0x1ca)]][_0x58ca8b(0x1b7)](),_0x4614fb[_0x58ca8b(0x1cb)]);}}}}catch(_0xb2af6){return _0x4614fb[_0x58ca8b(0x1ae)](_0x4614fb[_0x58ca8b(0x227)],_0x4614fb[_0x58ca8b(0x22f)])?![]:_0x2746fb[_0x58ca8b(0x1d9)](_0x135e6a)?!![]:(_0x3ba1b6[_0x58ca8b(0x132)](_0xff00c4),![]);}return![];}async['isClusterPresent'](){const _0x9bb7a4=a0_0x5867f7;return this['configureIfNotConfigured'](),this[_0x9bb7a4(0x176)]();}async[a0_0x5867f7(0x1db)](){const _0x4be164=a0_0x5867f7,_0x17ca0c={};_0x17ca0c[_0x4be164(0x224)]=_0x4be164(0x198);const _0x3f87f0=_0x17ca0c,_0x176190={};_0x176190[_0x4be164(0x215)]=_0x3f87f0['fmkeS'];const _0x5431fa=new awsSDK[(_0x4be164(0x120))](_0x176190),_0x49f4ca={};return _0x49f4ca[_0x4be164(0x22a)]=this[_0x4be164(0x21c)],_0x5431fa[_0x4be164(0x1e6)](_0x49f4ca)[_0x4be164(0x184)]();}async['createAuthConfigMap'](_0x45457b){const _0x296b7e=a0_0x5867f7,_0x3685c9={};_0x3685c9[_0x296b7e(0x1dd)]=_0x296b7e(0x15d),_0x3685c9[_0x296b7e(0x133)]=_0x296b7e(0x129),_0x3685c9[_0x296b7e(0x19c)]=_0x296b7e(0x116),_0x3685c9['CMGjt']='<ARN>';const _0x502bcd=_0x3685c9,_0x57b3de=await fs[_0x296b7e(0x219)](path[_0x296b7e(0x1f3)](__dirname,'..',_0x502bcd['pTfHl'],_0x502bcd['zXeIY']),_0x502bcd['ublHU']),_0x5066c0=yaml['load'](_0x57b3de);return _0x5066c0[_0x296b7e(0x1c2)][_0x296b7e(0x229)]=_0x5066c0[_0x296b7e(0x1c2)][_0x296b7e(0x229)][_0x296b7e(0x20b)](_0x502bcd[_0x296b7e(0x18a)],_0x45457b),_0x5066c0;}async[a0_0x5867f7(0x217)](_0x5af3bb){const _0x17ab7e=a0_0x5867f7,_0x648254={};_0x648254['mKSHz']=_0x17ab7e(0x198);const _0x3fbd2b=_0x648254,_0xc0623e={};_0xc0623e[_0x17ab7e(0x215)]=_0x3fbd2b[_0x17ab7e(0x178)];const _0x597568=new awsSDK['EKS'](_0xc0623e),_0x3e3b07={};return _0x3e3b07[_0x17ab7e(0x21c)]=this['clusterName'],_0x3e3b07[_0x17ab7e(0x162)]=_0x5af3bb,_0x597568[_0x17ab7e(0x140)](_0x3e3b07)['promise']();}async['checkClusterCreated'](){const _0x44e8b5=a0_0x5867f7,_0x5923f7={'aHFks':function(_0x3b82f2,_0x12dd29){return _0x3b82f2!==_0x12dd29;},'GmsjR':_0x44e8b5(0x1bc),'oeFfg':_0x44e8b5(0x110),'dovKp':function(_0x14f12a,_0x1f0ea6){return _0x14f12a===_0x1f0ea6;},'hwZbl':_0x44e8b5(0x10e),'fyOsK':function(_0x7a2090,_0xea6b84){return _0x7a2090(_0xea6b84);},'yvjtB':function(_0x479cb7,_0x3ba351){return _0x479cb7===_0x3ba351;},'oBTvJ':_0x44e8b5(0x1e0),'XkjJv':function(_0xa70d95,_0x3e74af){return _0xa70d95(_0x3e74af);},'NwlQJ':function(_0x2207a0,_0x23b5fb){return _0x2207a0===_0x23b5fb;},'YaOrP':_0x44e8b5(0x14c),'FIlYQ':'dqhbQ','WulSU':'2017-11-01'};return new Promise((_0x457632,_0x2f6014)=>{const _0x5f06b5=_0x44e8b5,_0x4e1bb7={'ZUngN':function(_0x1398e9,_0x5a0aea){const _0x375ac1=a0_0x2027;return _0x5923f7[_0x375ac1(0x1e7)](_0x1398e9,_0x5a0aea);},'ZdmTK':_0x5923f7[_0x5f06b5(0x19f)],'UnYUv':_0x5923f7['oeFfg'],'pJLIf':function(_0x5e0e6d,_0x1d0045){const _0x1e2c3f=_0x5f06b5;return _0x5923f7[_0x1e2c3f(0x1ac)](_0x5e0e6d,_0x1d0045);},'dGBIz':_0x5923f7['hwZbl'],'ZjqZE':function(_0x3c15eb,_0x2fae4f){return _0x5923f7['fyOsK'](_0x3c15eb,_0x2fae4f);},'AZwFb':function(_0x52a6ef,_0xfedf5f){const _0x233c2=_0x5f06b5;return _0x5923f7[_0x233c2(0x1ba)](_0x52a6ef,_0xfedf5f);},'GGWbf':function(_0x243e92,_0x56077f){const _0x262aae=_0x5f06b5;return _0x5923f7[_0x262aae(0x194)](_0x243e92,_0x56077f);},'BusBw':_0x5923f7[_0x5f06b5(0x1bf)],'rOVqK':function(_0x1085ba,_0x19b585){return _0x5923f7['XkjJv'](_0x1085ba,_0x19b585);}};if(_0x5923f7[_0x5f06b5(0x22b)](_0x5923f7[_0x5f06b5(0x21d)],_0x5923f7[_0x5f06b5(0x1a2)]))return![];else{const _0x3f3527={};_0x3f3527[_0x5f06b5(0x215)]=_0x5923f7[_0x5f06b5(0x1d8)];const _0x16e455=new awsSDK['EKS'](_0x3f3527);_0x16e455['listClusters']()[_0x5f06b5(0x184)]()[_0x5f06b5(0x151)](_0x4ae479=>{const _0x45cd2f=_0x5f06b5;if(_0x4e1bb7[_0x45cd2f(0x221)](_0x4e1bb7['ZdmTK'],_0x4e1bb7[_0x45cd2f(0x18c)]))_0x4ae479[_0x45cd2f(0x193)]['includes'](this[_0x45cd2f(0x21c)])&&(_0x4e1bb7[_0x45cd2f(0x186)](_0x4e1bb7[_0x45cd2f(0x118)],_0x4e1bb7['dGBIz'])?_0x4e1bb7[_0x45cd2f(0x207)](_0x457632,!![]):(_0x3ea83a[_0x45cd2f(0x22e)]=_0x3ed5cd[this[_0x45cd2f(0x1c1)]]['accessKey'],_0x34b28f['cloudProviderSecretKey']=_0x112ffe[this['cloudProviderName']][_0x45cd2f(0x1ec)])),_0x4e1bb7[_0x45cd2f(0x1ce)](_0x457632,![]);else{const _0x408b9e=_0x3f73ac[_0x45cd2f(0x155)][0x0][_0x45cd2f(0x14a)][0x2][_0x45cd2f(0x1c8)],_0x2d4708=_0xa327c5['Stacks'][0x0]['Outputs'][0x5][_0x45cd2f(0x1c8)][_0x45cd2f(0x1be)](',');_0x276b77[_0x45cd2f(0x1e4)](_0x45cd2f(0x212)+_0x408b9e+'\x20'),_0x47682f[_0x45cd2f(0x1e4)](_0x45cd2f(0x15e)+_0x2d4708+'\x20'),_0x5d4e33+=_0x45cd2f(0x1e5)+_0x408b9e+',\x20Subnets\x20=>\x20'+_0x2d4708+',\x20';}})[_0x5f06b5(0x1b5)](_0x5a1d45=>{const _0x37f99f=_0x5f06b5;if(_0x4e1bb7[_0x37f99f(0x154)](_0x4e1bb7[_0x37f99f(0x1c5)],_0x4e1bb7['BusBw']))logger[_0x37f99f(0x1a3)](_0x5a1d45),_0x4e1bb7['rOVqK'](_0x2f6014,_0x5a1d45);else return this[_0x37f99f(0x128)](),this[_0x37f99f(0x176)]();});}});}async[a0_0x5867f7(0x1d1)](_0x6db238,_0x875e58){const _0x91e53b=a0_0x5867f7,_0x579ba8={'TtZZQ':function(_0x4b8cf6,_0x1f8df9){return _0x4b8cf6(_0x1f8df9);},'pQINd':function(_0x1c2904,_0x215ea7){return _0x1c2904(_0x215ea7);}},_0x4694e4=this[_0x91e53b(0x1c1)][_0x91e53b(0x126)](),_0x50b9e1=await _0x579ba8['TtZZQ'](_0x6db238,_0x4694e4+'\x20ACCESS\x20KEY:\x20'),_0x16c02e=await _0x579ba8[_0x91e53b(0x188)](_0x6db238,_0x4694e4+_0x91e53b(0x1a5));global_registry[_0x91e53b(0x22e)]=_0x50b9e1,global_registry[_0x91e53b(0x122)]=_0x16c02e;const _0x881d90={};return _0x881d90[_0x91e53b(0x1a8)]=_0x50b9e1,_0x881d90['secret']=_0x16c02e,_0x875e58['cloudProvider'][AWS]=_0x881d90,_0x875e58;}async['getKubeConfigData'](){const _0x36d15c=a0_0x5867f7,_0x102cc2={'NleKP':function(_0xf5d89){return _0xf5d89();},'XDSud':_0x36d15c(0x159),'aqHOt':'templates','VNhqc':_0x36d15c(0x17d)},_0x1d2fb7=_0x102cc2['NleKP'](getDirForConfig),_0x2436b1=await this['getClusterInfo'](),_0x27cd70=path['join'](_0x1d2fb7,_0x102cc2[_0x36d15c(0x147)]),_0x40f1ac=_0x36d15c(0x1ef)+global_registry[_0x36d15c(0x22e)]+_0x36d15c(0x179)+global_registry[_0x36d15c(0x122)];fs[_0x36d15c(0x1a9)](_0x27cd70,_0x40f1ac);let _0x278417=await fs['readFileAsync'](path[_0x36d15c(0x1f3)](__dirname,'..',_0x102cc2[_0x36d15c(0x173)],_0x102cc2[_0x36d15c(0x1fb)]));return _0x278417=_0x278417['toString'](),_0x278417=_0x278417[_0x36d15c(0x20b)](/<CLUSTER_NAME>/g,this['clusterName']),_0x278417=_0x278417['replace'](/<CLUSTER_URL>/g,_0x2436b1['cluster'][_0x36d15c(0x1f4)]),_0x278417=_0x278417[_0x36d15c(0x20b)](/<CERTIFICATE_DATA>/g,_0x2436b1[_0x36d15c(0x189)][_0x36d15c(0x225)][_0x36d15c(0x1c2)]),_0x278417=_0x278417[_0x36d15c(0x20b)](/<CLUSTER_REGION>/g,global_registry[_0x36d15c(0x1c7)]),_0x278417=_0x278417[_0x36d15c(0x20b)](/<CLUSTER_NAME_USER>/g,IAM_USER_NAME),_0x278417=_0x278417['replace'](/<CLOUD_PROVIDER_ACCESS_KEY>/g,global_registry[_0x36d15c(0x22e)]),_0x278417=_0x278417[_0x36d15c(0x20b)](/<CLOUD_PROVIDER_SECRET>/g,global_registry['cloudProviderSecretKey']),_0x278417=_0x278417[_0x36d15c(0x20b)](/<AWS_CONFIG_FILE_PATH>/g,_0x27cd70),_0x278417;}async[a0_0x5867f7(0x18b)](_0x3fb393=null,_0x1a73b7=null){const _0x43bf68=a0_0x5867f7,_0x2e7638={'iZSoH':function(_0xc532eb,_0x3cc13c){return _0xc532eb(_0x3cc13c);},'qxJqa':_0x43bf68(0x17f),'EFiMx':'Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','PcCcS':function(_0x24d7f6,_0x4bc310,_0x49d900,_0x2b642b,_0x4e8c89,_0x3da193){return _0x24d7f6(_0x4bc310,_0x49d900,_0x2b642b,_0x4e8c89,_0x3da193);},'PChFG':'Following\x20resources\x20are\x20created:','OyZck':function(_0x54134e,_0x374d3a){return _0x54134e===_0x374d3a;},'ylwut':function(_0x39b4c3,_0x4e4b68){return _0x39b4c3!==_0x4e4b68;},'APRIe':_0x43bf68(0x1f9),'XWJbD':'zLmgz'};_0x2e7638[_0x43bf68(0x13c)](sendAWSInfoToHST,this['rws']);const _0x1a389c={};_0x1a389c[_0x43bf68(0x1c9)]=WS_EVENTS[_0x43bf68(0x199)],_0x1a389c['message']=_0x2e7638[_0x43bf68(0x1d4)],this['webSocketUtils']['sendEventToBackend'](this[_0x43bf68(0x185)],_0x1a389c),logger['info'](_0x2e7638[_0x43bf68(0x142)]);const _0x2986d3=global_registry[_0x43bf68(0x1b8)],_0x378182=global_registry['maxNodes'],_0x1fbe78=await _0x2e7638[_0x43bf68(0x160)](createClusterStack,this[_0x43bf68(0x21c)],_0x2986d3,_0x378182,_0x3fb393,_0x1a73b7),_0x305d45=_0x1fbe78[_0x43bf68(0x155)][0x0][_0x43bf68(0x14a)][0x0][_0x43bf68(0x1c8)][_0x43bf68(0x1be)](','),_0x546d9e=_0x1fbe78['Stacks'][0x0][_0x43bf68(0x14a)][0x1][_0x43bf68(0x1c8)],_0x10edce=_0x1fbe78[_0x43bf68(0x155)][0x0][_0x43bf68(0x14a)][0x3]['OutputValue'],_0x1c5f6f=_0x1fbe78[_0x43bf68(0x155)][0x0]['Outputs'][0x4][_0x43bf68(0x1c8)];logger[_0x43bf68(0x1e4)](_0x2e7638[_0x43bf68(0x124)]),logger[_0x43bf68(0x1e4)]('Cluster\x20=>\x20'+_0x10edce+'\x20'),logger[_0x43bf68(0x1e4)](_0x43bf68(0x1e9)+_0x546d9e+'\x20'),logger[_0x43bf68(0x1e4)](_0x43bf68(0x13d)+_0x305d45+'\x20'),logger['info'](_0x43bf68(0x12d)+_0x1c5f6f+'\x20');let _0x4e2cfd='Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20'+_0x10edce+',\x20ClusterRole\x20=>\x20'+_0x546d9e+_0x43bf68(0x220)+_0x305d45+',\x20NodeRole\x20=>\x20'+_0x1c5f6f+'\x20';if(_0x2e7638[_0x43bf68(0x1ee)](_0x3fb393,null)&&_0x2e7638[_0x43bf68(0x1ee)](_0x1a73b7,null)){if(_0x2e7638[_0x43bf68(0x16c)](_0x2e7638[_0x43bf68(0x1a1)],_0x2e7638[_0x43bf68(0x1fc)])){const _0x251819=_0x1fbe78[_0x43bf68(0x155)][0x0][_0x43bf68(0x14a)][0x2][_0x43bf68(0x1c8)],_0x4730ac=_0x1fbe78[_0x43bf68(0x155)][0x0][_0x43bf68(0x14a)][0x5][_0x43bf68(0x1c8)][_0x43bf68(0x1be)](',');logger[_0x43bf68(0x1e4)]('VPC\x20=>\x20'+_0x251819+'\x20'),logger[_0x43bf68(0x1e4)](_0x43bf68(0x15e)+_0x4730ac+'\x20'),_0x4e2cfd+=',VPC\x20=>\x20'+_0x251819+',\x20Subnets\x20=>\x20'+_0x4730ac+',\x20';}else return!![];}const _0x380438={};_0x380438[_0x43bf68(0x1c9)]=WS_EVENTS[_0x43bf68(0x199)],_0x380438['message']=_0x4e2cfd,this[_0x43bf68(0x200)][_0x43bf68(0x167)](this[_0x43bf68(0x185)],_0x380438);}async[a0_0x5867f7(0x19b)](_0x187709,_0x54f48f){const _0xf518d9=a0_0x5867f7,_0x4b7de7={'zxiSj':function(_0x1be910,_0x3e3ab9){return _0x1be910(_0x3e3ab9);},'TJMfq':function(_0xfda842,_0x3c65dd){return _0xfda842(_0x3c65dd);}};await _0x4b7de7[_0xf518d9(0x11d)](deleteAgent,_0x187709),await _0x4b7de7[_0xf518d9(0x144)](deleteRoutingDeps,_0x187709),await _0x4b7de7[_0xf518d9(0x144)](deleteClusterAndDependencies,_0x54f48f);}async[a0_0x5867f7(0x201)](_0x4c16b0,_0x4c0682){const _0x2b4c80=a0_0x5867f7,_0x57cf4c={'mJAtx':_0x2b4c80(0x1b4),'gfiFv':function(_0x29625c,_0x2cf211){return _0x29625c(_0x2cf211);},'eAZZb':_0x2b4c80(0x198),'DwleV':function(_0x12b9a2,_0x431a61){return _0x12b9a2(_0x431a61);},'TomcR':function(_0x273804,_0x35ffc2){return _0x273804!==_0x35ffc2;},'uDAub':_0x2b4c80(0x211),'CwyoG':'wgLUZ','MSRib':_0x2b4c80(0x163),'itdgS':'Creating\x20Autoscaler\x20Role','HupIt':function(_0x492cc1,_0x3ce180){return _0x492cc1===_0x3ce180;},'tRqQm':_0x2b4c80(0x204),'rxiYB':_0x2b4c80(0x191),'SJtUL':function(_0x397bfc,_0x2b0a81){return _0x397bfc!==_0x2b0a81;},'SxKoO':function(_0x70737a,_0x239869){return _0x70737a===_0x239869;},'cpKgD':_0x2b4c80(0x11f),'aYxKL':'XoWxy','dKqje':function(_0x14442f,_0x279c89,_0x352f7a,_0x5e4af2,_0x5e8787,_0xf9153f,_0x3b84c1,_0xf9e0af){return _0x14442f(_0x279c89,_0x352f7a,_0x5e4af2,_0x5e8787,_0xf9153f,_0x3b84c1,_0xf9e0af);},'dEXZF':_0x2b4c80(0x1bd),'TXWVs':_0x2b4c80(0x183),'icnmQ':'warning','RoFmf':function(_0x2e7af6,_0x580ceb){return _0x2e7af6!==_0x580ceb;},'QqGVm':'VPDmq','ZoGil':_0x2b4c80(0x112),'VuizU':'autoscaler-creation-failed','rdYvf':_0x2b4c80(0x1a3),'bBzQx':function(_0x21fab0,_0x57fffe){return _0x21fab0(_0x57fffe);},'SzaZV':_0x2b4c80(0x1fa)};let _0x14a47e,_0x4340db;const _0x55d1a4={};_0x55d1a4[_0x2b4c80(0x1c9)]=WS_EVENTS[_0x2b4c80(0x199)],_0x55d1a4[_0x2b4c80(0x17a)]=_0x57cf4c[_0x2b4c80(0x1b3)],this[_0x2b4c80(0x200)][_0x2b4c80(0x167)](this[_0x2b4c80(0x185)],_0x55d1a4),logger['info'](_0x57cf4c[_0x2b4c80(0x1b3)]);try{if(_0x57cf4c[_0x2b4c80(0x157)](_0x57cf4c['tRqQm'],_0x57cf4c['tRqQm'])){const _0x302ef3=await _0x57cf4c[_0x2b4c80(0x18e)](createAutoscalerStack,this['clusterName']);_0x4340db=_0x302ef3[_0x2b4c80(0x155)][0x0][_0x2b4c80(0x14a)][0x2]['OutputValue'];const _0x5b31fd={};_0x5b31fd[_0x2b4c80(0x1c9)]=WS_EVENTS[_0x2b4c80(0x199)],_0x5b31fd[_0x2b4c80(0x17a)]='Autoscaler\x20Role\x20created.ARN:\x20'+_0x4340db+'\x20',this[_0x2b4c80(0x200)][_0x2b4c80(0x167)](this['rws'],_0x5b31fd),logger[_0x2b4c80(0x1e4)](_0x2b4c80(0x113)+_0x4340db+'\x20');}else return _0x2376a3[_0x2b4c80(0x1af)]['loadBalancer'][_0x2b4c80(0x12b)][0x0]['hostname'];}catch(_0x39d4c7){if(_0x57cf4c[_0x2b4c80(0x1cc)](_0x57cf4c[_0x2b4c80(0x1ff)],_0x57cf4c[_0x2b4c80(0x1ff)])){const _0x262fe0={'OoeSs':function(_0x391291,_0x48668c){return _0x57cf4c['gfiFv'](_0x391291,_0x48668c);},'NeVQs':function(_0xfaa03,_0x17448d){return _0x57cf4c['gfiFv'](_0xfaa03,_0x17448d);}},_0x27f05b={};_0x27f05b[_0x2b4c80(0x1f2)]=[_0x2f4f7f];let _0x5db850=_0x27f05b;return new _0x44b011((_0x476c4b,_0x449a3a)=>{const _0x5b44e7=_0x2b4c80,_0x59293b={};_0x59293b['apiVersion']=_0x57cf4c[_0x5b44e7(0x1f1)],_0x59293b[_0x5b44e7(0x1e8)]=_0x5c004e['clusterRegion'];const _0x229081=new _0x8e16ff[(_0x5b44e7(0x15b))](_0x59293b);_0x229081[_0x5b44e7(0x153)](_0x5db850)[_0x5b44e7(0x184)]()[_0x5b44e7(0x151)](_0x22aa76=>{const _0x18dc2f=_0x5b44e7;_0x262fe0[_0x18dc2f(0x1b0)](_0x476c4b,!![]);})[_0x5b44e7(0x1b5)](_0x15d79d=>{const _0x41320f=_0x5b44e7;_0x2d7505['error'](_0x41320f(0x21f)+_0x49a2f9+'\x20in\x20region\x20'+_0x31c400[_0x41320f(0x1c7)]+_0x41320f(0x146)),_0x262fe0[_0x41320f(0x134)](_0x476c4b,![]);});});}else{if(_0x57cf4c[_0x2b4c80(0x1cc)](_0x39d4c7['message'][_0x2b4c80(0x171)](/already exists/),null)||_0x57cf4c[_0x2b4c80(0x17c)](_0x39d4c7[_0x2b4c80(0x17a)][_0x2b4c80(0x171)](/already exists/),undefined))_0x57cf4c['SxKoO'](_0x57cf4c['cpKgD'],_0x57cf4c['aYxKL'])?_0x452dd6[_0x2b4c80(0x132)](_0x211336[_0x2b4c80(0x138)]):(_0x14a47e='Skipping\x20Autoscaler\x20due\x20to:\x20'+_0x39d4c7[_0x2b4c80(0x17a)],await _0x57cf4c['dKqje'](reportToGalactusAndSendToEDS,_0x4c0682,this[_0x2b4c80(0x185)],_0x14a47e,messageTypes[_0x2b4c80(0x1dc)],_0x57cf4c[_0x2b4c80(0x174)],_0x57cf4c[_0x2b4c80(0x121)],_0x57cf4c[_0x2b4c80(0x15f)]),logger[_0x2b4c80(0x213)](_0x14a47e));else{if(_0x57cf4c[_0x2b4c80(0x209)](_0x57cf4c[_0x2b4c80(0x14b)],_0x57cf4c[_0x2b4c80(0x14b)])){const _0x246ced={};_0x246ced[_0x2b4c80(0x215)]=_0x57cf4c[_0x2b4c80(0x169)];const _0xfe1a9e=new _0x4e827d[(_0x2b4c80(0x120))](_0x246ced),_0x8a3e19={};return _0x8a3e19[_0x2b4c80(0x21c)]=this['clusterName'],_0x8a3e19[_0x2b4c80(0x162)]=_0x2c24c,_0xfe1a9e[_0x2b4c80(0x140)](_0x8a3e19)[_0x2b4c80(0x184)]();}else{const _0x9b4688=_0x57cf4c[_0x2b4c80(0x1ed)][_0x2b4c80(0x1be)]('|');let _0x5dcdc2=0x0;while(!![]){switch(_0x9b4688[_0x5dcdc2++]){case'0':await _0x57cf4c[_0x2b4c80(0x1b1)](reportToGalactusAndSendToEDS,_0x4c0682,this[_0x2b4c80(0x185)],_0x14a47e,messageTypes[_0x2b4c80(0x13a)],_0x57cf4c['dEXZF'],_0x57cf4c[_0x2b4c80(0x19d)],_0x57cf4c[_0x2b4c80(0x1a4)]);continue;case'1':logger[_0x2b4c80(0x1a3)](_0x14a47e);continue;case'2':process['exit'](0x1);continue;case'3':await _0x57cf4c[_0x2b4c80(0x1ad)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'4':_0x14a47e=_0x2b4c80(0x161)+_0x39d4c7['message']+_0x2b4c80(0x141);continue;}break;}}}}}let _0x80832=await this['getNodeGroupInfo'](this['clusterName']+_0x2b4c80(0x13e));const _0x8e219f=_0x80832[_0x2b4c80(0x1de)][_0x2b4c80(0x1fe)],_0x4b625c=await this[_0x2b4c80(0x127)](_0x8e219f),_0x3ca40f={};return _0x3ca40f[_0x2b4c80(0x12e)]=_0x57cf4c[_0x2b4c80(0x13b)],_0x3ca40f[_0x2b4c80(0x1b9)]=_0x4b625c,await _0x4c16b0['createNamespacedConfigMap'](_0x3ca40f)[_0x2b4c80(0x1b5)](_0x210b52=>{const _0x574ec2=_0x2b4c80,_0x21e235={'YGQzw':function(_0x25c52c,_0x12260c){return _0x57cf4c['DwleV'](_0x25c52c,_0x12260c);},'QBkkQ':_0x57cf4c['eAZZb']};if(_0x57cf4c[_0x574ec2(0x1cc)](_0x57cf4c[_0x574ec2(0x131)],_0x57cf4c[_0x574ec2(0x119)]))logger[_0x574ec2(0x1e4)](_0x57cf4c[_0x574ec2(0x115)]);else{const _0x42ba9f={'XLSRB':function(_0x45c495,_0x5e342c){return _0x21e235['YGQzw'](_0x45c495,_0x5e342c);},'QIzxZ':function(_0x23b6b7,_0x71cd3f){const _0x3c0ae1=_0x574ec2;return _0x21e235[_0x3c0ae1(0x1f8)](_0x23b6b7,_0x71cd3f);}},_0x5b302f={};_0x5b302f[_0x574ec2(0x215)]=_0x21e235[_0x574ec2(0x19a)];const _0x2daae=new _0x4f21dd[(_0x574ec2(0x120))](_0x5b302f);_0x2daae[_0x574ec2(0x20d)]()[_0x574ec2(0x184)]()[_0x574ec2(0x151)](_0xc99ff3=>{const _0x4655fb=_0x574ec2;_0xc99ff3[_0x4655fb(0x193)]['includes'](this[_0x4655fb(0x21c)])&&_0x42ba9f[_0x4655fb(0x1d6)](_0x225440,!![]),_0x42ba9f[_0x4655fb(0x16e)](_0x233b04,![]);})[_0x574ec2(0x1b5)](_0x493b5e=>{const _0x312f0b=_0x574ec2;_0x482ff5[_0x312f0b(0x1a3)](_0x493b5e),_0x42ba9f[_0x312f0b(0x16e)](_0x44d5a5,_0x493b5e);});}}),_0x4340db;}[a0_0x5867f7(0x135)](_0x2f6716){const _0x59bdb7=a0_0x5867f7,_0x41ad97={'bFjHC':function(_0x17f069,_0x416a1d){return _0x17f069===_0x416a1d;},'mKpor':_0x59bdb7(0x1aa),'MCkPP':'browserstack','pcUbx':'Tbpuf','NdtMW':_0x59bdb7(0x172),'bSmIG':function(_0x37c955,_0x595f87){return _0x37c955(_0x595f87);},'GCrti':function(_0xf7d3d8,_0x137dfc){return _0xf7d3d8===_0x137dfc;},'tYJPw':_0x59bdb7(0x21b),'HgVjs':'QWhFM','XyeEe':function(_0x57d30c,_0x5e429f){return _0x57d30c(_0x5e429f);},'oEQJa':function(_0x445317,_0x42f010){return _0x445317(_0x42f010);},'DaIUa':function(_0x3c8c5e,_0x17da3d){return _0x3c8c5e!==_0x17da3d;},'fUWCw':_0x59bdb7(0x1e3),'BdRuB':'2016-11-15'},_0x223778={};_0x223778[_0x59bdb7(0x1f2)]=[_0x2f6716];let _0x50e6d0=_0x223778;return new Promise((_0x15820d,_0x2d8400)=>{const _0x1b9e49=_0x59bdb7,_0x39107d={'CdfGz':function(_0x45208a,_0x287d27){const _0x1b291c=a0_0x2027;return _0x41ad97[_0x1b291c(0x17e)](_0x45208a,_0x287d27);}};if(_0x41ad97[_0x1b9e49(0x1d2)](_0x41ad97[_0x1b9e49(0x177)],_0x41ad97[_0x1b9e49(0x177)]))_0x39107d[_0x1b9e49(0x1c4)](_0x3aef0c,!![]);else{const _0x2c3556={};_0x2c3556[_0x1b9e49(0x215)]=_0x41ad97['BdRuB'],_0x2c3556[_0x1b9e49(0x1e8)]=global_registry['clusterRegion'];const _0x2db442=new awsSDK['EC2'](_0x2c3556);_0x2db442[_0x1b9e49(0x153)](_0x50e6d0)[_0x1b9e49(0x184)]()[_0x1b9e49(0x151)](_0x315177=>{const _0x49522a=_0x1b9e49,_0x16a2f4={'Bzmzc':function(_0xcd0f73,_0x17498b){const _0x208b7d=a0_0x2027;return _0x41ad97[_0x208b7d(0x18f)](_0xcd0f73,_0x17498b);},'XBbyi':_0x41ad97[_0x49522a(0x21a)],'Wgqhl':_0x41ad97['MCkPP']};if(_0x41ad97['bFjHC'](_0x41ad97[_0x49522a(0x15c)],_0x41ad97['NdtMW'])){const _0x302bc7=_0x235992[_0x49522a(0x189)][_0x49522a(0x145)];return _0x302bc7&&_0x16a2f4['Bzmzc'](_0x302bc7[_0x16a2f4[_0x49522a(0x11c)]][_0x49522a(0x1b7)](),_0x16a2f4[_0x49522a(0x166)]);}else _0x41ad97[_0x49522a(0x11a)](_0x15820d,!![]);})[_0x1b9e49(0x1b5)](_0xbdbc00=>{const _0x1dd425=_0x1b9e49;_0x41ad97[_0x1dd425(0x196)](_0x41ad97[_0x1dd425(0x1f7)],_0x41ad97[_0x1dd425(0x1b2)])?!this[_0x1dd425(0x222)]()&&this['setConfig']():(logger['error'](_0x1dd425(0x21f)+_0x2f6716+_0x1dd425(0x226)+global_registry['clusterRegion']+_0x1dd425(0x146)),_0x41ad97['XyeEe'](_0x15820d,![]));});}});}['isSubnetsValid'](_0x5eb1ee,_0x46adae){const _0x3df001=a0_0x5867f7,_0x23195b={'KyxHv':function(_0x54b401,_0x4885aa){return _0x54b401(_0x4885aa);},'xUIbA':function(_0x60180a,_0x4457e0){return _0x60180a!==_0x4457e0;},'dwMzF':_0x3df001(0x10c),'NKSnx':function(_0x267509,_0x369abb){return _0x267509(_0x369abb);},'vjabk':_0x3df001(0x163),'yDrAD':_0x3df001(0x1d5),'ojYfz':_0x3df001(0x1da),'gaXfo':function(_0x1f578e,_0x5cb472){return _0x1f578e===_0x5cb472;},'DAZjs':_0x3df001(0x117),'jysAR':_0x3df001(0x1eb),'fWivb':_0x3df001(0x1cf),'IYBdo':_0x3df001(0x22c),'OBmvm':_0x3df001(0x1f6),'imdFr':_0x3df001(0x22d),'ASlVD':'qnZFK','GwQLz':_0x3df001(0x1b4),'JZLsL':'vpc-id'},_0x45cb44={};_0x45cb44[_0x3df001(0x14e)]=_0x23195b[_0x3df001(0x13f)],_0x45cb44[_0x3df001(0x168)]=[_0x46adae];const _0x4f7af6={};_0x4f7af6[_0x3df001(0x114)]=[_0x45cb44];let _0x406834=_0x4f7af6;return new Promise((_0x5f5745,_0x592557)=>{const _0x2f187e=_0x3df001,_0x2b2833={'qNdPl':_0x23195b[_0x2f187e(0x143)],'YBMud':function(_0x355115,_0x91a22d){const _0x34a63b=_0x2f187e;return _0x23195b[_0x34a63b(0x205)](_0x355115,_0x91a22d);},'nUtPQ':_0x23195b['yDrAD'],'Oynpa':_0x23195b[_0x2f187e(0x1e1)],'wbgRv':function(_0x11afc2,_0x3476f7){const _0x1e817c=_0x2f187e;return _0x23195b[_0x1e817c(0x14d)](_0x11afc2,_0x3476f7);},'lQLkq':_0x23195b[_0x2f187e(0x14f)],'iNojn':function(_0x4d81f4,_0x2ba8f6){const _0x3ff473=_0x2f187e;return _0x23195b[_0x3ff473(0x205)](_0x4d81f4,_0x2ba8f6);},'uRsHQ':_0x23195b[_0x2f187e(0x1df)],'ovZIm':function(_0xe6f9a6,_0x3ba63f){const _0x75bd3a=_0x2f187e;return _0x23195b[_0x75bd3a(0x1fd)](_0xe6f9a6,_0x3ba63f);},'QCUos':function(_0x12f267,_0x6e9d90){const _0xad8c08=_0x2f187e;return _0x23195b[_0xad8c08(0x205)](_0x12f267,_0x6e9d90);},'lGdcZ':_0x23195b['fWivb'],'cAthP':_0x23195b['IYBdo'],'NeccN':_0x23195b['OBmvm'],'CjsvR':_0x23195b[_0x2f187e(0x1c3)]};if(_0x23195b[_0x2f187e(0x205)](_0x23195b[_0x2f187e(0x170)],_0x23195b[_0x2f187e(0x170)])){const _0x5db136={};_0x5db136[_0x2f187e(0x1e8)]=_0x4add02[_0x2f187e(0x1c7)],_0x5db136[_0x2f187e(0x1ab)]=_0x3d3b36[_0x2f187e(0x22e)],_0x5db136[_0x2f187e(0x17b)]=_0x161219[_0x2f187e(0x122)],_0x5aa195[_0x2f187e(0x137)][_0x2f187e(0x214)](_0x5db136),_0x49ea6e['awsConfigSet']=!![];}else{const _0x1013fc={};_0x1013fc[_0x2f187e(0x215)]=_0x23195b[_0x2f187e(0x192)],_0x1013fc['region']=global_registry[_0x2f187e(0x1c7)];const _0x501d1d=new awsSDK['EC2'](_0x1013fc);_0x501d1d[_0x2f187e(0x1d7)](_0x406834)['promise']()[_0x2f187e(0x151)](_0x42312c=>{const _0x5b6d2e=_0x2f187e,_0x435398={'WbMxZ':function(_0x51b39c,_0x425216){const _0x450a06=a0_0x2027;return _0x2b2833[_0x450a06(0x11b)](_0x51b39c,_0x425216);},'RCbKY':function(_0x34a781,_0x33a09d){return _0x2b2833['QCUos'](_0x34a781,_0x33a09d);},'aZypA':_0x2b2833['lGdcZ'],'qNkCh':_0x2b2833[_0x5b6d2e(0x150)]};if(_0x2b2833[_0x5b6d2e(0x16f)](_0x2b2833[_0x5b6d2e(0x1b6)],_0x2b2833[_0x5b6d2e(0x1bb)])){const _0x53c2ae=[],_0x578310=[];_0x42312c[_0x5b6d2e(0x149)][_0x5b6d2e(0x20a)](_0x2b73ba=>{const _0x218178=_0x5b6d2e;_0x435398[_0x218178(0x180)](_0x435398[_0x218178(0x1d0)],_0x435398[_0x218178(0x195)])?_0x53c2ae['push'](_0x2b73ba[_0x218178(0x138)]):_0x435398[_0x218178(0x12a)](_0x28e590,!![]);});const _0x2de9dc=_0x5eb1ee[_0x5b6d2e(0x19e)](_0x202470=>{const _0x107fa4=_0x5b6d2e,_0x122516={};_0x122516[_0x107fa4(0x202)]=_0x2b2833[_0x107fa4(0x136)];const _0xf24219=_0x122516;if(_0x2b2833[_0x107fa4(0x16f)](_0x2b2833[_0x107fa4(0x210)],_0x2b2833['Oynpa'])){if(_0x53c2ae[_0x107fa4(0x1d9)](_0x202470))return _0x2b2833['wbgRv'](_0x2b2833['lQLkq'],_0x2b2833[_0x107fa4(0x123)])?!![]:(_0x890dd8['push'](_0xa0c2df),![]);else{if(_0x2b2833[_0x107fa4(0x1f0)](_0x2b2833[_0x107fa4(0x187)],_0x2b2833[_0x107fa4(0x187)]))this[_0x107fa4(0x10d)]();else return _0x578310[_0x107fa4(0x132)](_0x202470),![];}}else _0x684bc9[_0x107fa4(0x1e4)](_0xf24219[_0x107fa4(0x202)]);});_0x2b2833[_0x5b6d2e(0x11b)](_0x5f5745,[_0x2de9dc,_0x578310]);}else _0x358e48[_0x5b6d2e(0x1a3)](_0x5b6d2e(0x21f)+_0x4a45f1+_0x5b6d2e(0x226)+_0x4cf001[_0x5b6d2e(0x1c7)]+_0x5b6d2e(0x146)),_0x435398['WbMxZ'](_0x104745,![]);})['catch'](_0x238f95=>{const _0x17ba16=_0x2f187e,_0x5b4ae9={'kSZjf':function(_0x3cb45f,_0x46e124){const _0x2b969f=a0_0x2027;return _0x23195b[_0x2b969f(0x16a)](_0x3cb45f,_0x46e124);}};_0x23195b[_0x17ba16(0x205)](_0x23195b[_0x17ba16(0x158)],_0x23195b[_0x17ba16(0x158)])?(_0x3924c0['error']('Cannot\x20find\x20subnets\x20'+_0x58273e+_0x17ba16(0x226)+_0x300526[_0x17ba16(0x1c7)]+'.\x20Error:\x20'+_0x5c212c),_0x5b4ae9['kSZjf'](_0x240ff5,[![],[]])):(logger[_0x17ba16(0x1a3)](_0x17ba16(0x1c6)+_0x5eb1ee+_0x17ba16(0x226)+global_registry[_0x17ba16(0x1c7)]+'.\x20Error:\x20'+_0x238f95),_0x23195b[_0x17ba16(0x1fd)](_0x5f5745,[![],[]]));});}});}}const a0_0x509a6a={};a0_0x509a6a[a0_0x5867f7(0x15a)]=AWSCloudProvider,module['exports']=a0_0x509a6a;
@@ -1 +1 @@
1
- const a1_0x45e459=a1_0x4cc7;(function(_0x54d9e3,_0x333e9f){const _0x1e38d6=a1_0x4cc7,_0x1bc964=_0x54d9e3();while(!![]){try{const _0xa4cd6=-parseInt(_0x1e38d6(0xc1))/0x1*(-parseInt(_0x1e38d6(0xcd))/0x2)+parseInt(_0x1e38d6(0xd4))/0x3+-parseInt(_0x1e38d6(0xd2))/0x4*(-parseInt(_0x1e38d6(0xc3))/0x5)+parseInt(_0x1e38d6(0xc5))/0x6*(parseInt(_0x1e38d6(0xcf))/0x7)+parseInt(_0x1e38d6(0xcb))/0x8*(-parseInt(_0x1e38d6(0xc0))/0x9)+-parseInt(_0x1e38d6(0xd0))/0xa*(parseInt(_0x1e38d6(0xd3))/0xb)+-parseInt(_0x1e38d6(0xc4))/0xc;if(_0xa4cd6===_0x333e9f)break;else _0x1bc964['push'](_0x1bc964['shift']());}catch(_0x521c0c){_0x1bc964['push'](_0x1bc964['shift']());}}}(a1_0x5191,0x6edaf));function a1_0x5191(){const _0x467e47=['exports','2129690gIbeaB','5105928vyfonm','6dTwfpD','AzureCloudProvider','resourceClient','js-yaml','../config/logger','4|0|1|5|2|3','6660376IBWoLh','containerClient','4rYmmvN','clusterInfo','3076633YMWfAx','70rmskJt','path','4pofXNm','564971GQWeHT','1349148uSrybz','qKVxZ','networkClient','9jAqtdO','378229kijHJm'];a1_0x5191=function(){return _0x467e47;};return a1_0x5191();}const fs=require('fs'),path=require(a1_0x45e459(0xd1)),yaml=require(a1_0x45e459(0xc8)),{logger}=require(a1_0x45e459(0xc9)),{CloudProvider}=require('./CloudProvider'),{AZURE,WS_EVENTS,global_registry}=require('../config/constants'),{deleteRoutingDeps}=require('../utils/gridComponents');function a1_0x4cc7(_0x617baa,_0x52f298){const _0x519149=a1_0x5191();return a1_0x4cc7=function(_0x4cc7b2,_0xfdc0b4){_0x4cc7b2=_0x4cc7b2-0xbe;let _0x597a49=_0x519149[_0x4cc7b2];return _0x597a49;},a1_0x4cc7(_0x617baa,_0x52f298);}class AzureCloudProvider extends CloudProvider{constructor(_0x8d8e88,_0x3b325c,_0x32d060,_0x5ca634){const _0x59df99=a1_0x45e459,_0x301aa4={};_0x301aa4[_0x59df99(0xbe)]=_0x59df99(0xca);const _0x93c578=_0x301aa4,_0xea5444=_0x93c578['qKVxZ']['split']('|');let _0x428370=0x0;while(!![]){switch(_0xea5444[_0x428370++]){case'0':this[_0x59df99(0xce)]=null;continue;case'1':this[_0x59df99(0xcc)]=null;continue;case'2':this[_0x59df99(0xc7)]=null;continue;case'3':this[_0x59df99(0xbf)]=null;continue;case'4':super(AZURE,_0x8d8e88,_0x3b325c,_0x32d060,_0x5ca634);continue;case'5':this['storageClient']=null;continue;}break;}}}const a1_0x19099a={};a1_0x19099a[a1_0x45e459(0xc6)]=AzureCloudProvider,module[a1_0x45e459(0xc2)]=a1_0x19099a;
1
+ const a1_0x389663=a1_0x56ba;(function(_0x31ceff,_0x4f91fc){const _0x8a2ed3=a1_0x56ba,_0x2e905f=_0x31ceff();while(!![]){try{const _0x47d35c=parseInt(_0x8a2ed3(0xe6))/0x1*(parseInt(_0x8a2ed3(0xfb))/0x2)+-parseInt(_0x8a2ed3(0xea))/0x3*(parseInt(_0x8a2ed3(0xec))/0x4)+parseInt(_0x8a2ed3(0xf4))/0x5*(-parseInt(_0x8a2ed3(0xf6))/0x6)+parseInt(_0x8a2ed3(0xed))/0x7+-parseInt(_0x8a2ed3(0xe8))/0x8*(parseInt(_0x8a2ed3(0xf9))/0x9)+parseInt(_0x8a2ed3(0xe5))/0xa+-parseInt(_0x8a2ed3(0xee))/0xb;if(_0x47d35c===_0x4f91fc)break;else _0x2e905f['push'](_0x2e905f['shift']());}catch(_0x58ada4){_0x2e905f['push'](_0x2e905f['shift']());}}}(a1_0x12d3,0x4e4b4));function a1_0x56ba(_0x277a49,_0x315732){const _0x12d3e8=a1_0x12d3();return a1_0x56ba=function(_0x56ba1c,_0x4624eb){_0x56ba1c=_0x56ba1c-0xe5;let _0x2ea6ac=_0x12d3e8[_0x56ba1c];return _0x2ea6ac;},a1_0x56ba(_0x277a49,_0x315732);}const fs=require('fs'),path=require(a1_0x389663(0xfa)),yaml=require(a1_0x389663(0xf5)),{logger}=require(a1_0x389663(0xf8)),{CloudProvider}=require('./CloudProvider'),{AZURE,WS_EVENTS,global_registry}=require(a1_0x389663(0xf1)),{deleteRoutingDeps}=require(a1_0x389663(0xeb));class AzureCloudProvider extends CloudProvider{constructor(_0x1cad27,_0xdc9816,_0x2e9f1c,_0x121137){const _0x585538=a1_0x389663,_0x47c6cb={};_0x47c6cb['ljVgD']=_0x585538(0xe7);const _0x19cbdc=_0x47c6cb,_0x491985=_0x19cbdc[_0x585538(0xef)][_0x585538(0xf7)]('|');let _0xdd13eb=0x0;while(!![]){switch(_0x491985[_0xdd13eb++]){case'0':this['networkClient']=null;continue;case'1':this[_0x585538(0xfc)]=null;continue;case'2':this[_0x585538(0xf3)]=null;continue;case'3':this[_0x585538(0xe9)]=null;continue;case'4':this[_0x585538(0xf0)]=null;continue;case'5':super(AZURE,_0x1cad27,_0xdc9816,_0x2e9f1c,_0x121137);continue;}break;}}}const a1_0x4fa80b={};function a1_0x12d3(){const _0x4b40e9=['ljVgD','resourceClient','../config/constants','exports','storageClient','675xcKEld','js-yaml','2094DojQcV','split','../config/logger','9BOVAnQ','path','2cwyReD','containerClient','AzureCloudProvider','2002060CNFkrv','144626ZMtTRM','5|3|1|2|4|0','2123688WNyjBo','clusterInfo','6VAaxle','../utils/gridComponents','10372wrqHBA','3111094CRNHAK','1659020QGiVDn'];a1_0x12d3=function(){return _0x4b40e9;};return a1_0x12d3();}a1_0x4fa80b[a1_0x389663(0xfd)]=AzureCloudProvider,module[a1_0x389663(0xf2)]=a1_0x4fa80b;
@@ -1 +1 @@
1
- var a2_0x4a9549=a2_0xb80d;(function(_0x2d10aa,_0x1bf9d9){var _0x4320ed=a2_0xb80d,_0x2068e3=_0x2d10aa();while(!![]){try{var _0x101ec3=-parseInt(_0x4320ed(0x1c9))/0x1+-parseInt(_0x4320ed(0x1d8))/0x2*(-parseInt(_0x4320ed(0x1d1))/0x3)+parseInt(_0x4320ed(0x1d0))/0x4+-parseInt(_0x4320ed(0x1da))/0x5*(-parseInt(_0x4320ed(0x1ce))/0x6)+parseInt(_0x4320ed(0x1d5))/0x7*(-parseInt(_0x4320ed(0x1d4))/0x8)+-parseInt(_0x4320ed(0x1cb))/0x9+parseInt(_0x4320ed(0x1d3))/0xa;if(_0x101ec3===_0x1bf9d9)break;else _0x2068e3['push'](_0x2068e3['shift']());}catch(_0x5b74eb){_0x2068e3['push'](_0x2068e3['shift']());}}}(a2_0x3309,0x6f466));function a2_0xb80d(_0x435179,_0x156825){var _0x3309b2=a2_0x3309();return a2_0xb80d=function(_0xb80d50,_0x425aa0){_0xb80d50=_0xb80d50-0x1c9;var _0x51f8b1=_0x3309b2[_0xb80d50];return _0x51f8b1;},a2_0xb80d(_0x435179,_0x156825);}class CloudProvider{constructor(_0x3e70eb,_0x5d30bc,_0x5294f7,_0xab1b9a,_0x3ab85d){var _0x5d63ce=a2_0xb80d,_0x35beab={};_0x35beab[_0x5d63ce(0x1d7)]=_0x5d63ce(0x1d2);var _0x103859=_0x35beab,_0x3948bd=_0x103859['WJvSq'][_0x5d63ce(0x1d6)]('|'),_0x53b5bd=0x0;while(!![]){switch(_0x3948bd[_0x53b5bd++]){case'0':this[_0x5d63ce(0x1d9)]=_0x5294f7;continue;case'1':this[_0x5d63ce(0x1cf)]=_0x5d30bc;continue;case'2':this[_0x5d63ce(0x1ca)]=_0x3ab85d;continue;case'3':this['cloudProviderName']=_0x3e70eb;continue;case'4':this['rws']=_0xab1b9a;continue;}break;}}}var a2_0x4ac5bd={};a2_0x4ac5bd[a2_0x4a9549(0x1cc)]=CloudProvider,module[a2_0x4a9549(0x1cd)]=a2_0x4ac5bd;function a2_0x3309(){var _0x1e901a=['gridName','5UeOzfO','301810wroyOZ','webSocketUtils','1505340neBnkP','CloudProvider','exports','1812666CgfIBG','clusterName','2693256JbBunB','57NpOdUQ','3|1|0|4|2','355610crTALb','708536oPjVKv','56tgxCZV','split','WJvSq','65516JPTXlC'];a2_0x3309=function(){return _0x1e901a;};return a2_0x3309();}
1
+ var a2_0x51f7ab=a2_0x2f84;(function(_0x37189c,_0x1ef5ee){var _0x3186ed=a2_0x2f84,_0x188d6a=_0x37189c();while(!![]){try{var _0x5eaa69=parseInt(_0x3186ed(0x101))/0x1*(-parseInt(_0x3186ed(0x111))/0x2)+parseInt(_0x3186ed(0x103))/0x3*(parseInt(_0x3186ed(0x105))/0x4)+parseInt(_0x3186ed(0x106))/0x5*(-parseInt(_0x3186ed(0x10f))/0x6)+-parseInt(_0x3186ed(0x10a))/0x7*(parseInt(_0x3186ed(0x102))/0x8)+parseInt(_0x3186ed(0x10e))/0x9+parseInt(_0x3186ed(0x10b))/0xa+parseInt(_0x3186ed(0x110))/0xb*(parseInt(_0x3186ed(0xff))/0xc);if(_0x5eaa69===_0x1ef5ee)break;else _0x188d6a['push'](_0x188d6a['shift']());}catch(_0x5a1fa4){_0x188d6a['push'](_0x188d6a['shift']());}}}(a2_0x1d20,0x89276));class CloudProvider{constructor(_0x26ad46,_0x1c5b8a,_0x3f26fc,_0x223953,_0x5a14dd){var _0x402160=a2_0x2f84,_0x463c77={};_0x463c77[_0x402160(0x104)]=_0x402160(0x107);var _0x3d9d7f=_0x463c77,_0x2abe9e=_0x3d9d7f['DMsbV']['split']('|'),_0x1f14cb=0x0;while(!![]){switch(_0x2abe9e[_0x1f14cb++]){case'0':this['cloudProviderName']=_0x26ad46;continue;case'1':this[_0x402160(0x109)]=_0x1c5b8a;continue;case'2':this[_0x402160(0x10c)]=_0x5a14dd;continue;case'3':this[_0x402160(0x100)]=_0x3f26fc;continue;case'4':this[_0x402160(0x112)]=_0x223953;continue;}break;}}}function a2_0x1d20(){var _0x20828e=['CloudProvider','clusterName','191107MPVuvB','9673390xDIXwD','webSocketUtils','exports','1518102HwxMhP','42oflGIQ','1617BKOHkj','42508IwPbEC','rws','14652LmQuJz','gridName','42OBXGAq','88ZELEZM','42jeeXeP','DMsbV','174388PvxcWy','122215VtYYpB','0|1|3|4|2'];a2_0x1d20=function(){return _0x20828e;};return a2_0x1d20();}function a2_0x2f84(_0x45345a,_0x17e387){var _0x1d204f=a2_0x1d20();return a2_0x2f84=function(_0x2f84c6,_0x1a75d0){_0x2f84c6=_0x2f84c6-0xff;var _0x53f140=_0x1d204f[_0x2f84c6];return _0x53f140;},a2_0x2f84(_0x45345a,_0x17e387);}var a2_0x4103cd={};a2_0x4103cd[a2_0x51f7ab(0x108)]=CloudProvider,module[a2_0x51f7ab(0x10d)]=a2_0x4103cd;
@@ -1 +1 @@
1
- const a3_0x9077de=a3_0x3c8d;function a3_0x5c25(){const _0x122648=['getKubeConfigData','storage.buckets.getObjectInsights','zcHAy','projects','storage.objects.setIamPolicy','/global/networks/','role','3307160xMzVbR','uHQUU','@google-cloud/compute','VQnGN','info','zCZQt','VHCFR','oythH','JGjmF','KsURU','rOZIo','accessKey','GYDOG','PEplc','regionmap.json','storage.buckets.delete','qSkgD','storage.buckets.setIamPolicy','FfIiV','HVgfe','CtvdW','location','BMHwq','vJKxf','1|6|0|2|3|5|4','googleapis','setupNewCluster','browserstack','resourceLabels','ingress','nzvyc','bstackUsername','gcpConfigSet','jpGYA','machineType','teuao','Found\x20cluster\x20with\x20name\x20\x27','rsErd','YyRgF','gDKDR','replace','4IpLYdA','setConfig','CbZPT','FWJkA','subnetwork','create','maxNodes','lLYyz','networkClient','GGaEQ','rcqqP','project','yfGbt','yupjs','mrXAW','348345BlHkbz','isConfigured','/locations/','network','keCbF','GKE\x20Cluster\x20deletion\x20failed','23159qGygUP','uVLKT','writeFileSync','fgKya','oMFSH','qNvPl','gcpresources','../config/logger','NISbX','ACvxB','.iam.gserviceaccount.com','maxNodeCount','Nvotu','HPVSQ','EHYvP','ytJgn','TKlBo','wvnjH','NetworksClient','FZptW','minNodeCount','project_id','hezwK','wrFeE','ZUdBq','storage.buckets.create','TzDCm','storage.objects.create','ohzec','storage.multipartUploads.create','ilsZZ','sendGCPInfoToHST','https://www.googleapis.com/compute/v1/projects/','gmZXd','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','requestBody','../utils/gridComponents','nodePools','\x20--quiet\x20--user-output-enabled=false','jBAIO','11526858YyTlus','loadBalancer','ckOqt','projectId','instanceType','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','PCBDv','doAcg','qSWql','parent','Cannot\x20find\x20subnets\x20','pdRFT','ezVBY','iMtbZ','zhrjo','oVeUV','readFileAsync','CWHxl','got','accountId','\x20--windows-os-version=ltsc2022\x20--region\x20','auth','MQooB','storage.buckets.list','setupServiceAccount','oMWYk','nIPFD','cloudProviderName','VLhST','TJwYi','toString','PkOsr','jPEVF','yYAfe','storage.buckets.deleteTagBinding','dSHEp','members','JIRKx','credentialsPath','dMjzL','EOgEU','Vqfwo','WRIgZ','createCluster','DgKml','execSync','kZOkc','CSOcR','WRUtx','stack','isClusterPresent','qbQiB','GPxPP','clusterRegion','list','cONED','3184237ZCefxE','sendEventToBackend','jdRrZ','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','scopes','FzErd','gridProfileId','yKsoc','XRvyj','autoscaling','WcKcp','Rkumy','username','containerClient','pfrcL','setIamPolicy','path','cUqMj','USYeW','checkServiceAccount','wdCDv','updateWindowsNodeGroup','BLgAV','parse','qqAcC','get','deleteCluster','QiJkh','default','SSNgc','dBWZE','iam','efWMh','isVPCPresent','bCMxA','Deleting\x20the\x20cluster\x20','McHee','AYuHF','XKDHM','BFDXx','status','VSutJ','MLVtz','KubeConfigTemplate.yaml','IYwUc','1269828RetVTZ','ZautM','delay','kfOOr','Service\x20account\x20already\x20exists,\x20skipping','rws','LlaPf','log','type','resourcemanagerClient','accounts','CITJe','pzLgi','cloudProvider','wYeBN','DONE','XNxEZ','aILcT','igyiU','listClusters','storage.multipartUploads.list','keyFile','join','XyUTC','utf-8','ngsrl','/regions/','GoogleCloudProvider','child_process','templates','fetchLocalCreds','roles','vHHps','dDVYp','BGxuc','xAIBw','name','Cluster\x20creation\x20failed','serviceAccountName','kBepW','storage.multipartUploads.abort','updateClusterRegion','push','SwybP','config','Creating\x20GKE\x20Cluster','error','jTDbR','tSvvh','clusterName','iamClient','ZJurr','concat','YuGtP','message','qKGSb','/clusters/','../config/constants','rqvSX','EJXGE','ClusterManagerClient','data','getClusterInfo','kIiGN','title','RuHvm','XJJAV','exports','OxxEh','NCMUu','VcoGP','includedPermissions','exec','RUNNING','clusterCaCertificate','bbaGp','gcloud\x20auth\x20login\x20--cred-file=','xbPMf','TAdhl','serviceAccounts','isBrowserstackCluster','KWBdL','thNIo','length','odCLP','lSeII','EUAlW','hVxlC','BdmRV','hAMJd','XltEb','rMVAo','vpcInfo','./CloudProvider','https://','/subnetworks/','tnFNY','managedby','storage.objects.update','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','projects/','pXaSr','getClient','RmEQP','BEOsL','XqDaY','BxJQn','../utils/utilityMethods','locations','gxQvL','GvPTF','LOG','HuEzV','customRoleName','split','bindings','webSocketUtils','GkgsJ','configureIfNotConfigured','JQrbz','jrMuf','nuanY','/roles/','CdOAA','NqUcD','pkhat','subnetworks','1478352MSQXeU','tlows','toLowerCase','tGdqT','getUserInput','iDKvw','DKuGH','https://www.googleapis.com/auth/cloud-platform','minNodes','zIaxn','NmWuh','.\x20Error:\x20','iyJWo','bstackAccesskey','fTcmh','serviceAccount','LnPMh','RESOURCES','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','MhssT','fdkYh','18UEHTCT','storage.buckets.update'];a3_0x5c25=function(){return _0x122648;};return a3_0x5c25();}(function(_0x1969ba,_0x4c809c){const _0x44cc34=a3_0x3c8d,_0x14fbdc=_0x1969ba();while(!![]){try{const _0x2d7203=parseInt(_0x44cc34(0xd3))/0x1*(parseInt(_0x44cc34(0x1f4))/0x2)+parseInt(_0x44cc34(0x1df))/0x3*(-parseInt(_0x44cc34(0xbe))/0x4)+-parseInt(_0x44cc34(0xcd))/0x5+parseInt(_0x44cc34(0x160))/0x6+-parseInt(_0x44cc34(0x133))/0x7+-parseInt(_0x44cc34(0x95))/0x8+parseInt(_0x44cc34(0xfb))/0x9;if(_0x2d7203===_0x4c809c)break;else _0x14fbdc['push'](_0x14fbdc['shift']());}catch(_0x17069a){_0x14fbdc['push'](_0x14fbdc['shift']());}}}(a3_0x5c25,0x41f0c));const fs=require('fs'),path=require(a3_0x9077de(0x143)),got=require(a3_0x9077de(0x10d)),util=require('util'),cp=require(a3_0x9077de(0x17c)),{google}=require(a3_0x9077de(0xae)),compute=require(a3_0x9077de(0x97)),container=require('@google-cloud/container'),{ProjectsClient}=require('@google-cloud/resource-manager')['v3'],{logger}=require(a3_0x9077de(0xda)),{CloudProvider}=require(a3_0x9077de(0x1bd)),{getDirForConfig,getAuthHeader}=require(a3_0x9077de(0x1cb)),{deleteRoutingDeps,deleteAgent}=require(a3_0x9077de(0xf7)),{inputConfirmation,closeInput}=require('../utils/userInput'),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x9077de(0x199));class GoogleCloudProvider extends CloudProvider{constructor(_0x54d64a,_0x44d44c,_0x3e615a,_0x3c91e0){const _0x196039=a3_0x9077de,_0x47ac87={};_0x47ac87['BMHwq']='1|7|3|4|6|8|5|2|0',_0x47ac87[_0x196039(0x1ab)]='turboscale-service-account',_0x47ac87[_0x196039(0x138)]='turboscale_custom_role';const _0x8d96e1=_0x47ac87,_0x46d793=_0x8d96e1[_0x196039(0xab)][_0x196039(0x1d2)]('|');let _0x1b76ec=0x0;while(!![]){switch(_0x46d793[_0x1b76ec++]){case'0':this[_0x196039(0x186)]=_0x8d96e1[_0x196039(0x1ab)];continue;case'1':super(GCP,_0x54d64a,_0x44d44c,_0x3e615a,_0x3c91e0);continue;case'2':this[_0x196039(0x1d1)]=_0x8d96e1[_0x196039(0x138)];continue;case'3':this[_0x196039(0xc6)]=null;continue;case'4':this[_0x196039(0x169)]=null;continue;case'5':this[_0x196039(0xfe)]=null;continue;case'6':this[_0x196039(0x192)]=null;continue;case'7':this['containerClient']=null;continue;case'8':this[_0x196039(0x121)]=null;continue;}break;}}[a3_0x9077de(0x1d6)](){const _0x52bfbf=a3_0x9077de,_0x378826={};_0x378826[_0x52bfbf(0x129)]=function(_0x1bfcd0,_0x4b58a0){return _0x1bfcd0===_0x4b58a0;},_0x378826[_0x52bfbf(0x12f)]='browserstack',_0x378826[_0x52bfbf(0x102)]=function(_0x1f00aa,_0x50bb5f){return _0x1f00aa===_0x50bb5f;},_0x378826[_0x52bfbf(0x1b2)]=_0x52bfbf(0x181),_0x378826[_0x52bfbf(0x1c0)]=_0x52bfbf(0x125);const _0x214e97=_0x378826;if(!this['isConfigured']()){if(_0x214e97[_0x52bfbf(0x102)](_0x214e97[_0x52bfbf(0x1b2)],_0x214e97['tnFNY'])){const _0x8e7432=_0x65e701[0x0]?.[_0x52bfbf(0xb1)]?.['managedby'];return _0x8e7432&&_0x214e97[_0x52bfbf(0x129)](_0x8e7432[_0x52bfbf(0x1e1)](),_0x214e97[_0x52bfbf(0x12f)]);}else this['setConfig']();}}[a3_0x9077de(0xce)](){const _0x35863e=a3_0x9077de,_0x46c504={};_0x46c504[_0x35863e(0x1db)]=function(_0x210cd3,_0x55e4fe){return _0x210cd3===_0x55e4fe;};const _0xf71e11=_0x46c504;return _0xf71e11['CdOAA'](global_registry['gcpConfigSet'],!![]);}[a3_0x9077de(0xbf)](){const _0x509de2=a3_0x9077de,_0x4d1ddc=this['credentialsPath'],_0x5e45fd={};_0x5e45fd[_0x509de2(0x175)]=_0x4d1ddc,this['containerClient']=new container['v1'][(_0x509de2(0x19c))](_0x5e45fd);const _0x3e4825={};_0x3e4825[_0x509de2(0x175)]=_0x4d1ddc,this['networkClient']=new compute['v1'][(_0x509de2(0xe5))](_0x3e4825);const _0x319762={};_0x319762['keyFile']=_0x4d1ddc,this[_0x509de2(0x169)]=new ProjectsClient(_0x319762),this[_0x509de2(0x192)]=google[_0x509de2(0x152)]('v1'),global_registry[_0x509de2(0xb5)]=!![];}async[a3_0x9077de(0x1e3)](_0x48958f,_0x9011e8){const _0x54dec3=a3_0x9077de,_0x442c0c={'ngsrl':function(_0x2ffb56,_0x136259){return _0x2ffb56(_0x136259);},'HVgfe':function(_0x4f3d55){return _0x4f3d55();},'Mjybd':'gcp_credentials.json'},_0xc981fc=await _0x442c0c[_0x54dec3(0x179)](_0x48958f,'Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20');let _0x500727=await fs['readFileAsync'](_0xc981fc);_0x500727=_0x500727[_0x54dec3(0x119)]();const _0x3d763d=_0x442c0c[_0x54dec3(0xa8)](getDirForConfig),_0x496ffe=path[_0x54dec3(0x176)](_0x3d763d,_0x442c0c['Mjybd']);fs[_0x54dec3(0xd5)](_0x496ffe,_0x500727),this[_0x54dec3(0x121)]=_0x496ffe;const _0x29314b={};return _0x29314b[_0x54dec3(0x175)]=_0x496ffe,_0x9011e8[_0x54dec3(0x16d)][GCP]=_0x29314b,_0x500727=JSON[_0x54dec3(0x14a)](_0x500727),this['projectId']=_0x500727[_0x54dec3(0xe8)],_0x9011e8;}async[a3_0x9077de(0x17e)](_0x5275ac){const _0x4ba666=a3_0x9077de;this[_0x4ba666(0x121)]=_0x5275ac[this[_0x4ba666(0x116)]]['keyFile'];let _0x75acf7=await fs[_0x4ba666(0x10b)](this[_0x4ba666(0x121)]);_0x75acf7=JSON[_0x4ba666(0x14a)](_0x75acf7),this['projectId']=_0x75acf7['project_id'];}['getGridHostname'](_0x24e9f6){const _0x1b82af=a3_0x9077de;return _0x24e9f6['status']['loadBalancer'][_0x1b82af(0xb2)][0x0]['ip'];}async[a3_0x9077de(0x1b0)](){const _0x1e5e7c=a3_0x9077de,_0x3304f3={};_0x3304f3[_0x1e5e7c(0xf4)]=function(_0x57e779,_0x43a27b){return _0x57e779!==_0x43a27b;},_0x3304f3[_0x1e5e7c(0xca)]='vJhdD',_0x3304f3[_0x1e5e7c(0x197)]=function(_0x4f59b0,_0x3dfa5f){return _0x4f59b0!==_0x3dfa5f;},_0x3304f3[_0x1e5e7c(0x172)]=_0x1e5e7c(0x163),_0x3304f3['PEplc']=_0x1e5e7c(0xe3),_0x3304f3[_0x1e5e7c(0x106)]=function(_0x55fcb6,_0x5b74de){return _0x55fcb6===_0x5b74de;},_0x3304f3[_0x1e5e7c(0x122)]=_0x1e5e7c(0xb0),_0x3304f3[_0x1e5e7c(0xea)]=function(_0x1550c8,_0x16c5bc){return _0x1550c8===_0x16c5bc;},_0x3304f3[_0x1e5e7c(0xc7)]=_0x1e5e7c(0x190),_0x3304f3[_0x1e5e7c(0x9c)]=_0x1e5e7c(0x1f2);const _0x34a4b6=_0x3304f3;try{if(_0x34a4b6['gmZXd'](_0x34a4b6[_0x1e5e7c(0xca)],_0x34a4b6[_0x1e5e7c(0xca)]))return![];else{const _0x52dfaa=await this['getClusterInfo']();if(_0x52dfaa[0x0]?.[_0x1e5e7c(0xb1)]?.['managedby']){if(_0x34a4b6[_0x1e5e7c(0x197)](_0x34a4b6[_0x1e5e7c(0x172)],_0x34a4b6[_0x1e5e7c(0xa2)])){const _0x3b595d=_0x52dfaa[0x0]?.['resourceLabels']?.[_0x1e5e7c(0x1c1)];return _0x3b595d&&_0x34a4b6['pdRFT'](_0x3b595d[_0x1e5e7c(0x1e1)](),_0x34a4b6['dMjzL']);}else return[!![],_0x3d755a];}}}catch(_0x4d2d6e){return _0x34a4b6[_0x1e5e7c(0xea)](_0x34a4b6[_0x1e5e7c(0xc7)],_0x34a4b6['oythH'])?(_0x199ed6[_0x1e5e7c(0x18e)](_0x1e5e7c(0x105)+_0x4329f5+'.\x20Error:\x20'+_0x58d14a),[![],[]]):![];}return![];}async['isClusterPresent'](){const _0x448d23=a3_0x9077de,_0xe8c32a={'XltEb':_0x448d23(0x164),'pzLgi':function(_0x1d4980,_0x3df564){return _0x1d4980===_0x3df564;},'jlFlG':'GKE\x20Cluster\x20deletion\x20failed','IYwUc':_0x448d23(0x1c3),'pXaSr':_0x448d23(0x17d),'MQooB':_0x448d23(0xd9),'VSutJ':_0x448d23(0xa3),'Gdaus':_0x448d23(0x178),'hAMJd':function(_0x5239e9,_0x51e88f){return _0x5239e9!==_0x51e88f;},'zCZQt':function(_0x10963b,_0xa76ada){return _0x10963b!==_0xa76ada;},'KsURU':'plPZn','OxxEh':_0x448d23(0x1ef),'CbZPT':function(_0x1c84c8,_0x4b6323){return _0x1c84c8===_0x4b6323;},'XKDHM':_0x448d23(0x157),'kIiGN':_0x448d23(0x114),'zcHAy':_0x448d23(0x13e),'akEPj':_0x448d23(0xfa),'wdCDv':_0x448d23(0xc8),'NmWuh':_0x448d23(0x1ad),'jTDbR':function(_0x378440,_0x1350be){return _0x378440!==_0x1350be;},'BdmRV':function(_0x5695cc,_0x26ac48){return _0x5695cc!==_0x26ac48;},'ZaQRp':'tLShR','BxJQn':function(_0x3811be,_0x2f3ece){return _0x3811be>_0x2f3ece;},'EFDMt':_0x448d23(0x107),'TAdhl':'obsJa','JQrbz':function(_0x5c3955,_0x95a136){return _0x5c3955<_0x95a136;},'fgKya':_0x448d23(0x96),'pkVnZ':_0x448d23(0x115),'XJJAV':function(_0x1b939e,_0x33252b){return _0x1b939e+_0x33252b;},'SSNgc':function(_0xf6f713,_0x1760d4){return _0xf6f713(_0x1760d4);},'pWzeL':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','jpGYA':function(_0x3fb894,_0x48cefc){return _0x3fb894(_0x48cefc);},'FfIiV':function(_0x439856,_0xd4b33e){return _0x439856<=_0xd4b33e;},'bCMxA':_0x448d23(0x123),'bYuNJ':_0x448d23(0x1a6),'HZDug':function(_0xa770ae){return _0xa770ae();},'RmEQP':function(_0x4a18e2,_0x5e25a5){return _0x4a18e2-_0x5e25a5;},'dSHEp':function(_0x1f43aa,_0x83bbee){return _0x1f43aa!==_0x83bbee;},'pkhat':_0x448d23(0x117),'JIRKx':_0x448d23(0x144)};this[_0x448d23(0x1d6)]();let _0x5d9085=await fs['readFileAsync'](path[_0x448d23(0x176)](__dirname,'..',_0xe8c32a[_0x448d23(0x1c5)],_0xe8c32a[_0x448d23(0x111)],_0xe8c32a[_0x448d23(0x15c)]),_0xe8c32a['Gdaus']);_0x5d9085=JSON[_0x448d23(0x14a)](_0x5d9085);let _0x2e2350=[global_registry['clusterRegion']];if(_0xe8c32a[_0x448d23(0x1b9)](_0x5d9085[global_registry['clusterRegion']],undefined)){if(_0xe8c32a[_0x448d23(0x9a)](_0xe8c32a[_0x448d23(0x9e)],_0xe8c32a[_0x448d23(0x1a4)]))_0x2e2350=_0x2e2350[_0x448d23(0x194)](_0x5d9085[global_registry[_0x448d23(0x130)]]);else return![];}const _0x50c359=[];for await(let _0x17d321 of _0x2e2350){if(_0xe8c32a[_0x448d23(0xc0)](_0xe8c32a[_0x448d23(0x159)],_0xe8c32a[_0x448d23(0x19f)]))_0x581091['vpcInfo'][_0x448d23(0x18a)](_0x5abf9c);else{const _0x43b6a4={};_0x43b6a4[_0x448d23(0x104)]=_0x448d23(0x1c4)+this[_0x448d23(0xfe)]+_0x448d23(0xcf)+_0x17d321;const _0x1c85be=_0x43b6a4,_0x4db5fb=await this[_0x448d23(0x140)][_0x448d23(0x173)](_0x1c85be);for(const _0x3c0d47 of _0x4db5fb[0x0]['clusters']){if(_0xe8c32a[_0x448d23(0x16c)](_0xe8c32a[_0x448d23(0x90)],_0xe8c32a['zcHAy']))_0xe8c32a[_0x448d23(0xc0)](_0x3c0d47[_0x448d23(0x184)],this[_0x448d23(0x191)])&&(_0xe8c32a['zCZQt'](_0xe8c32a['akEPj'],_0xe8c32a[_0x448d23(0x147)])?_0x50c359[_0x448d23(0x18a)](_0x17d321):_0x2d94db['push'](_0x11e063));else{_0x121d96[_0x448d23(0x99)](_0xe8c32a[_0x448d23(0x1ba)]);return;}}}}const _0x11af74=_0x50c359['length'];if(_0xe8c32a[_0x448d23(0xc0)](_0x11af74,0x1))return _0xe8c32a[_0x448d23(0x9a)](_0xe8c32a['NmWuh'],_0xe8c32a[_0x448d23(0x1e9)])?!![]:(_0xe8c32a['jTDbR'](global_registry[_0x448d23(0x130)],_0x50c359[0x0])&&(_0xe8c32a[_0x448d23(0x1b8)](_0xe8c32a['ZaQRp'],_0xe8c32a['ZaQRp'])?_0xe8c32a['pzLgi'](_0x5bc74e[_0x448d23(0x184)],this['clusterName'])&&_0x111471['push'](_0xdf7353):(global_registry[_0x448d23(0x130)]=_0x50c359[0x0],this[_0x448d23(0x189)]())),!![]);else{if(_0xe8c32a[_0x448d23(0x1ca)](_0x11af74,0x1)){if(_0xe8c32a['CbZPT'](_0xe8c32a['EFDMt'],_0xe8c32a[_0x448d23(0x1ae)])){const _0x3ad92a=this[_0x448d23(0x121)],_0x5b72d2={};_0x5b72d2[_0x448d23(0x175)]=_0x3ad92a,this['containerClient']=new _0x50a49f['v1'][(_0x448d23(0x19c))](_0x5b72d2);const _0x55e3dd={};_0x55e3dd[_0x448d23(0x175)]=_0x3ad92a,this['networkClient']=new _0x10b5bd['v1'][(_0x448d23(0xe5))](_0x55e3dd);const _0x13cab0={};_0x13cab0['keyFile']=_0x3ad92a,this[_0x448d23(0x169)]=new _0x300362(_0x13cab0),this['iamClient']=_0xf58331[_0x448d23(0x152)]('v1'),_0x32dd40['gcpConfigSet']=!![];}else{console['log'](_0x448d23(0xb9)+this[_0x448d23(0x191)]+'\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:');for(let _0x4e0107=0x0;_0xe8c32a[_0x448d23(0x1d7)](_0x4e0107,_0x11af74);_0x4e0107+=0x1){if(_0xe8c32a[_0x448d23(0x18f)](_0xe8c32a[_0x448d23(0xd6)],_0xe8c32a['pkVnZ']))console[_0x448d23(0x167)]('['+_0xe8c32a[_0x448d23(0x1a2)](_0x4e0107,0x1)+']\x20'+_0x50c359[_0x4e0107]);else{_0x3dd496[_0x448d23(0x99)](_0xe8c32a['jlFlG']);throw _0x1e06fd;}}const _0x1d724d=await _0xe8c32a[_0x448d23(0x150)](inputConfirmation,_0xe8c32a['pWzeL']),_0x3a71d7=_0xe8c32a[_0x448d23(0x150)](Number,_0x1d724d);return(_0xe8c32a[_0x448d23(0xb6)](isNaN,_0x3a71d7)||_0xe8c32a[_0x448d23(0xa7)](_0x3a71d7,0x0)||_0xe8c32a[_0x448d23(0x1ca)](_0x3a71d7,_0x11af74))&&(_0xe8c32a[_0x448d23(0xc0)](_0xe8c32a[_0x448d23(0x155)],_0xe8c32a['bYuNJ'])?(_0xeb4ef5[_0x448d23(0x18e)](_0xe8c32a[_0x448d23(0x15f)]),_0x47b321['exit'](0x1)):(console['error'](_0xe8c32a[_0x448d23(0x15f)]),process['exit'](0x1))),_0xe8c32a['HZDug'](closeInput),logger['info'](_0x448d23(0x136)+_0x50c359[_0xe8c32a[_0x448d23(0x1c7)](_0x3a71d7,0x1)]),_0xe8c32a['zCZQt'](global_registry[_0x448d23(0x130)],_0x50c359[_0xe8c32a[_0x448d23(0x1c7)](_0x3a71d7,0x1)])&&(_0xe8c32a[_0x448d23(0x11e)](_0xe8c32a[_0x448d23(0x1dd)],_0xe8c32a[_0x448d23(0x120)])?(global_registry[_0x448d23(0x130)]=_0x50c359[_0xe8c32a[_0x448d23(0x1c7)](_0x3a71d7,0x1)],this[_0x448d23(0x189)]()):_0x14b250['execSync'](_0x448d23(0xf5)+this[_0x448d23(0x191)]+_0x448d23(0x10f)+_0x103f57[_0x448d23(0x130)]+_0x448d23(0xf9))),!![];}}}return![];}async[a3_0x9077de(0x19e)](){const _0x45409b=a3_0x9077de,_0x18462b=await this[_0x45409b(0x140)]['getCluster']({'name':_0x45409b(0x1c4)+this[_0x45409b(0xfe)]+_0x45409b(0xcf)+global_registry[_0x45409b(0x130)]+_0x45409b(0x198)+this[_0x45409b(0x191)]});return _0x18462b;}async[a3_0x9077de(0x8e)](){const _0x5d96a9=a3_0x9077de,_0x3504e2={};_0x3504e2['qSWql']=_0x5d96a9(0x17d),_0x3504e2[_0x5d96a9(0x141)]='gcpresources',_0x3504e2[_0x5d96a9(0xe0)]=_0x5d96a9(0x15e);const _0x351821=_0x3504e2;cp[_0x5d96a9(0x128)]('gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false'),cp[_0x5d96a9(0x1a8)](_0x5d96a9(0x1ac)+this[_0x5d96a9(0x121)]);const _0x470f59=await this[_0x5d96a9(0x19e)](),_0x108fb2='gke_'+this['projectId']+'_'+global_registry[_0x5d96a9(0x130)]+'_'+this[_0x5d96a9(0x191)];let _0x53b1a7=await fs['readFileAsync'](path['join'](__dirname,'..',_0x351821[_0x5d96a9(0x103)],_0x351821[_0x5d96a9(0x141)],_0x351821[_0x5d96a9(0xe0)]));return _0x53b1a7=_0x53b1a7[_0x5d96a9(0x119)](),_0x53b1a7=_0x53b1a7[_0x5d96a9(0xbd)](/<CLUSTER_NAME>/g,_0x108fb2),_0x53b1a7=_0x53b1a7[_0x5d96a9(0xbd)](/<CLUSTER_URL>/g,'https://'+_0x470f59[0x0]['endpoint']),_0x53b1a7=_0x53b1a7[_0x5d96a9(0xbd)](/<CERTIFICATE_DATA>/g,_0x470f59[0x0]['masterAuth'][_0x5d96a9(0x1aa)]),_0x53b1a7;}async['checkServiceAccount'](){const _0x47e0bf=a3_0x9077de,_0x3af293={};_0x3af293[_0x47e0bf(0x109)]=function(_0x2bac80,_0x3e6453){return _0x2bac80===_0x3e6453;},_0x3af293[_0x47e0bf(0xe9)]=_0x47e0bf(0x1e6),_0x3af293[_0x47e0bf(0x15a)]=_0x47e0bf(0x135),_0x3af293[_0x47e0bf(0x10c)]=function(_0x3911a9,_0x178da3){return _0x3911a9!==_0x178da3;},_0x3af293[_0x47e0bf(0xd4)]=_0x47e0bf(0x153),_0x3af293[_0x47e0bf(0x1f3)]=_0x47e0bf(0x16b);const _0x15cf71=_0x3af293,_0x26ddb0={};_0x26ddb0[_0x47e0bf(0x137)]=[_0x15cf71['hezwK']],_0x26ddb0[_0x47e0bf(0x175)]=this[_0x47e0bf(0x121)];const _0xd4c0e8=await google[_0x47e0bf(0x110)][_0x47e0bf(0x1c6)](_0x26ddb0),_0xd8b698=await this[_0x47e0bf(0x192)][_0x47e0bf(0x91)][_0x47e0bf(0x1af)][_0x47e0bf(0x131)]({'name':_0x47e0bf(0x1c4)+this[_0x47e0bf(0xfe)],'auth':_0xd4c0e8});for(const _0x38bc3e of _0xd8b698?.[_0x47e0bf(0x19d)]?.[_0x47e0bf(0x16a)]){if(_0x15cf71[_0x47e0bf(0x109)](_0x15cf71[_0x47e0bf(0x15a)],_0x15cf71[_0x47e0bf(0x15a)])){if(_0x15cf71['zhrjo'](_0x38bc3e?.['name'],_0x47e0bf(0x1c4)+this['projectId']+'/serviceAccounts/'+this[_0x47e0bf(0x186)]+'@'+this[_0x47e0bf(0xfe)]+'.iam.gserviceaccount.com')){if(_0x15cf71[_0x47e0bf(0x10c)](_0x15cf71[_0x47e0bf(0xd4)],_0x15cf71['fdkYh']))return!![];else _0x2748a6=_0x51717a['concat'](_0x191c39[_0x4569a0[_0x47e0bf(0x130)]]);}}else{const _0x245abf='https://www.googleapis.com/compute/v1/projects/'+this[_0x47e0bf(0xfe)]+_0x47e0bf(0x17a)+_0x50085a[_0x47e0bf(0x130)]+_0x47e0bf(0x1bf)+_0x5aa5ba[0x0];if(_0x15cf71['zhrjo'](_0x245abf,_0x1bd290))return[!![],_0x3524c2];}}return![];}async[a3_0x9077de(0x113)](){const _0x1fbd9c=a3_0x9077de,_0x8de2e7={};_0x8de2e7[_0x1fbd9c(0xdf)]=function(_0x2f7ce0,_0x57dd58){return _0x2f7ce0===_0x57dd58;},_0x8de2e7[_0x1fbd9c(0x1ce)]=function(_0x3a754e,_0x7a0e8f){return _0x3a754e===_0x7a0e8f;},_0x8de2e7[_0x1fbd9c(0x9f)]='oYBuj',_0x8de2e7[_0x1fbd9c(0x1ed)]=_0x1fbd9c(0x180),_0x8de2e7['mcsnw']='Service\x20account\x20already\x20exists,\x20skipping',_0x8de2e7[_0x1fbd9c(0xdb)]='Creating\x20service\x20account',_0x8de2e7[_0x1fbd9c(0x101)]='https://www.googleapis.com/auth/cloud-platform',_0x8de2e7['xNHFr']='iam.serviceAccounts.signBlob',_0x8de2e7[_0x1fbd9c(0xc5)]=_0x1fbd9c(0xec),_0x8de2e7[_0x1fbd9c(0x1b5)]='storage.buckets.createTagBinding',_0x8de2e7[_0x1fbd9c(0xd8)]=_0x1fbd9c(0xa4),_0x8de2e7[_0x1fbd9c(0xac)]=_0x1fbd9c(0x11d),_0x8de2e7[_0x1fbd9c(0x187)]='storage.buckets.get',_0x8de2e7[_0x1fbd9c(0xeb)]='storage.buckets.getIamPolicy',_0x8de2e7[_0x1fbd9c(0x13b)]=_0x1fbd9c(0x8f),_0x8de2e7[_0x1fbd9c(0x1d9)]=_0x1fbd9c(0x112),_0x8de2e7['wvnjH']='storage.buckets.listEffectiveTags',_0x8de2e7['PfLLP']='storage.buckets.listTagBindings',_0x8de2e7[_0x1fbd9c(0x161)]=_0x1fbd9c(0xa6),_0x8de2e7[_0x1fbd9c(0x1eb)]=_0x1fbd9c(0x8d),_0x8de2e7[_0x1fbd9c(0xf1)]=_0x1fbd9c(0x188),_0x8de2e7[_0x1fbd9c(0x127)]=_0x1fbd9c(0xf0),_0x8de2e7['EPOzf']=_0x1fbd9c(0x174),_0x8de2e7[_0x1fbd9c(0x1c9)]='storage.multipartUploads.listParts',_0x8de2e7[_0x1fbd9c(0x1e4)]=_0x1fbd9c(0xee),_0x8de2e7['XNxEZ']='storage.objects.delete',_0x8de2e7[_0x1fbd9c(0x195)]='storage.objects.get',_0x8de2e7[_0x1fbd9c(0x108)]='storage.objects.getIamPolicy',_0x8de2e7[_0x1fbd9c(0xfd)]='storage.objects.list',_0x8de2e7[_0x1fbd9c(0x1e0)]=_0x1fbd9c(0x92),_0x8de2e7[_0x1fbd9c(0x1a5)]=_0x1fbd9c(0x1c2),_0x8de2e7[_0x1fbd9c(0x182)]='Turboscale\x20Custom\x20Role',_0x8de2e7[_0x1fbd9c(0x15d)]=_0x1fbd9c(0x1f1);const _0x21679e=_0x8de2e7,_0x53b8c8=await this[_0x1fbd9c(0x146)]();if(_0x53b8c8){if(_0x21679e[_0x1fbd9c(0x1ce)](_0x21679e[_0x1fbd9c(0x9f)],_0x21679e[_0x1fbd9c(0x1ed)])){if(_0x21679e[_0x1fbd9c(0xdf)](_0x356f6a?.[_0x1fbd9c(0x184)],'projects/'+this[_0x1fbd9c(0xfe)]+'/serviceAccounts/'+this[_0x1fbd9c(0x186)]+'@'+this[_0x1fbd9c(0xfe)]+_0x1fbd9c(0xdd)))return!![];}else{logger[_0x1fbd9c(0x99)](_0x21679e['mcsnw']);return;}}logger['info'](_0x21679e['NISbX']);const _0x54217d={};_0x54217d[_0x1fbd9c(0x137)]=[_0x21679e[_0x1fbd9c(0x101)]],_0x54217d[_0x1fbd9c(0x175)]=this[_0x1fbd9c(0x121)];const _0x4379de=await google['auth'][_0x1fbd9c(0x1c6)](_0x54217d),_0x2209ff={};_0x2209ff[_0x1fbd9c(0x1a7)]=[_0x21679e['xNHFr'],_0x21679e[_0x1fbd9c(0xc5)],_0x21679e[_0x1fbd9c(0x1b5)],_0x21679e['qNvPl'],_0x21679e[_0x1fbd9c(0xac)],_0x21679e[_0x1fbd9c(0x187)],_0x21679e['ZUdBq'],_0x21679e[_0x1fbd9c(0x13b)],_0x21679e[_0x1fbd9c(0x1d9)],_0x21679e[_0x1fbd9c(0xe4)],_0x21679e['PfLLP'],_0x21679e[_0x1fbd9c(0x161)],_0x21679e[_0x1fbd9c(0x1eb)],_0x21679e[_0x1fbd9c(0xf1)],_0x21679e[_0x1fbd9c(0x127)],_0x21679e['EPOzf'],_0x21679e[_0x1fbd9c(0x1c9)],_0x21679e[_0x1fbd9c(0x1e4)],_0x21679e[_0x1fbd9c(0x170)],_0x21679e[_0x1fbd9c(0x195)],_0x21679e[_0x1fbd9c(0x108)],_0x21679e['ckOqt'],_0x21679e[_0x1fbd9c(0x1e0)],_0x21679e[_0x1fbd9c(0x1a5)]],_0x2209ff[_0x1fbd9c(0x1a0)]=_0x21679e[_0x1fbd9c(0x182)],await this['iamClient']['organizations'][_0x1fbd9c(0x17f)][_0x1fbd9c(0xc3)]({'parent':_0x1fbd9c(0x1c4)+this[_0x1fbd9c(0xfe)],'requestBody':{'role':_0x2209ff,'roleId':this[_0x1fbd9c(0x1d1)]},'auth':_0x4379de});const _0x5b96f3={};_0x5b96f3[_0x1fbd9c(0x184)]=_0x1fbd9c(0x1c4)+this[_0x1fbd9c(0xfe)],_0x5b96f3[_0x1fbd9c(0xf6)]={},_0x5b96f3['auth']=_0x4379de,_0x5b96f3[_0x1fbd9c(0xf6)][_0x1fbd9c(0x10e)]=this[_0x1fbd9c(0x186)];const _0x5733f8=_0x5b96f3;await this['iamClient'][_0x1fbd9c(0x91)][_0x1fbd9c(0x1af)][_0x1fbd9c(0xc3)](_0x5733f8);let _0x4d7b89=await this[_0x1fbd9c(0x169)]['getIamPolicy']({'resource':_0x1fbd9c(0x1c4)+this['projectId']});_0x4d7b89=_0x4d7b89[0x0][_0x1fbd9c(0x1d3)];const _0x13348b={};_0x13348b[_0x1fbd9c(0x94)]=_0x1fbd9c(0x1c4)+this[_0x1fbd9c(0xfe)]+_0x1fbd9c(0x1da)+this[_0x1fbd9c(0x1d1)],_0x13348b[_0x1fbd9c(0x11f)]=['serviceAccount:'+this[_0x1fbd9c(0x186)]+'@'+this['projectId']+_0x1fbd9c(0xdd)],_0x4d7b89[_0x1fbd9c(0x18a)](_0x13348b);const _0x35b0de={};_0x35b0de[_0x1fbd9c(0x1d3)]=_0x4d7b89,await this[_0x1fbd9c(0x169)][_0x1fbd9c(0x142)]({'resource':'projects/'+this['projectId'],'policy':_0x35b0de}),logger[_0x1fbd9c(0x99)](_0x21679e[_0x1fbd9c(0x15d)]);}async[a3_0x9077de(0xaf)](_0x335ce4='default',_0x509111=[a3_0x9077de(0x14f)]){const _0x26ba10=a3_0x9077de,_0x2f959d={};_0x2f959d[_0x26ba10(0x1d0)]=_0x26ba10(0xad),_0x2f959d['VQnGN']='Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x2f959d[_0x26ba10(0xcc)]=_0x26ba10(0x100);const _0x6d8579=_0x2f959d,_0x5230db=_0x6d8579[_0x26ba10(0x1d0)]['split']('|');let _0x25e689=0x0;while(!![]){switch(_0x5230db[_0x25e689++]){case'0':logger[_0x26ba10(0x99)](_0x6d8579[_0x26ba10(0x98)]);continue;case'1':this['sendGCPInfoToHST'](this['rws']);continue;case'2':await this[_0x26ba10(0x113)]();continue;case'3':await this[_0x26ba10(0x126)](_0x335ce4,_0x509111);continue;case'4':return!![];case'5':await this['updateWindowsNodeGroup']();continue;case'6':const _0x16faa7={};_0x16faa7[_0x26ba10(0x168)]=WS_EVENTS[_0x26ba10(0x1cf)],_0x16faa7[_0x26ba10(0x196)]=_0x6d8579[_0x26ba10(0xcc)],this[_0x26ba10(0x1d4)][_0x26ba10(0x134)](this[_0x26ba10(0x165)],_0x16faa7);continue;}break;}}async[a3_0x9077de(0x126)](_0x30c702=a3_0x9077de(0x14f),_0x53823c=[a3_0x9077de(0x14f)]){const _0x4c21d9=a3_0x9077de,_0x49924f={};_0x49924f[_0x4c21d9(0x11c)]=function(_0x532e29,_0x4ef6c1){return _0x532e29!==_0x4ef6c1;},_0x49924f['AYuHF']=_0x4c21d9(0x185),_0x49924f['RuHvm']=function(_0x2305b6,_0x1e4704){return _0x2305b6-_0x1e4704;},_0x49924f[_0x4c21d9(0x11b)]=function(_0x1307cb,_0x2d4750){return _0x1307cb===_0x2d4750;},_0x49924f['Vqfwo']=_0x4c21d9(0xa9),_0x49924f[_0x4c21d9(0x9d)]=_0x4c21d9(0x18d),_0x49924f['PkOsr']=_0x4c21d9(0x17d),_0x49924f[_0x4c21d9(0x166)]=_0x4c21d9(0xd9),_0x49924f['QMJSN']='gkecluster.json',_0x49924f[_0x4c21d9(0xa5)]=_0x4c21d9(0x178),_0x49924f[_0x4c21d9(0x1b7)]=_0x4c21d9(0xa3),_0x49924f[_0x4c21d9(0x13d)]=function(_0x352c27,_0x10f076){return _0x352c27*_0x10f076;},_0x49924f['EHYvP']=function(_0x1e8396,_0xb5fcc8){return _0x1e8396*_0xb5fcc8;},_0x49924f[_0x4c21d9(0xbc)]=function(_0x5af557,_0x203217){return _0x5af557!==_0x203217;},_0x49924f[_0x4c21d9(0x1bb)]=_0x4c21d9(0x16e),_0x49924f[_0x4c21d9(0x14b)]='lwDpd',_0x49924f[_0x4c21d9(0x183)]=_0x4c21d9(0x1e8),_0x49924f[_0x4c21d9(0x13a)]=_0x4c21d9(0x118),_0x49924f['FZptW']='Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20',_0x49924f[_0x4c21d9(0x12e)]='yQhey';const _0x7a5ee8=_0x49924f;try{if(_0x7a5ee8[_0x4c21d9(0x11b)](_0x7a5ee8[_0x4c21d9(0x124)],_0x7a5ee8['Vqfwo'])){logger[_0x4c21d9(0x99)](_0x7a5ee8[_0x4c21d9(0x9d)]);let _0x1c57da=await fs[_0x4c21d9(0x10b)](path[_0x4c21d9(0x176)](__dirname,'..',_0x7a5ee8[_0x4c21d9(0x11a)],_0x7a5ee8[_0x4c21d9(0x166)],_0x7a5ee8['QMJSN']),_0x7a5ee8[_0x4c21d9(0xa5)]);_0x1c57da=JSON[_0x4c21d9(0x14a)](_0x1c57da);let _0x572e07=await fs[_0x4c21d9(0x10b)](path[_0x4c21d9(0x176)](__dirname,'..',_0x7a5ee8[_0x4c21d9(0x11a)],_0x7a5ee8[_0x4c21d9(0x166)],_0x7a5ee8[_0x4c21d9(0x1b7)]),_0x7a5ee8['qSkgD']);_0x572e07=JSON['parse'](_0x572e07),_0x1c57da[_0x4c21d9(0x184)]=this[_0x4c21d9(0x191)],_0x1c57da['nodePools'][0x0][_0x4c21d9(0x18c)][_0x4c21d9(0xb7)]=global_registry[_0x4c21d9(0xff)],_0x1c57da[_0x4c21d9(0xf8)][0x1]['config'][_0x4c21d9(0xb7)]=global_registry[_0x4c21d9(0xff)],_0x1c57da[_0x4c21d9(0xf8)][0x0][_0x4c21d9(0x18c)][_0x4c21d9(0x1ee)]=this['serviceAccountName']+'@'+this['projectId']+_0x4c21d9(0xdd),_0x1c57da['nodePools'][0x1][_0x4c21d9(0x18c)][_0x4c21d9(0x1ee)]=this['serviceAccountName']+'@'+this['projectId']+_0x4c21d9(0xdd),_0x1c57da['nodePools'][0x0]['autoscaling']['minNodeCount']=global_registry[_0x4c21d9(0x1e7)],_0x1c57da[_0x4c21d9(0xf8)][0x1]['autoscaling'][_0x4c21d9(0xe7)]=0x0,_0x1c57da['nodePools'][0x0][_0x4c21d9(0x13c)][_0x4c21d9(0xde)]=global_registry[_0x4c21d9(0xc4)],_0x1c57da[_0x4c21d9(0xf8)][0x1][_0x4c21d9(0x13c)][_0x4c21d9(0xde)]=global_registry[_0x4c21d9(0xc4)],_0x1c57da[_0x4c21d9(0xaa)]=global_registry[_0x4c21d9(0x130)],_0x1c57da[_0x4c21d9(0x1cc)]=[_0x572e07[global_registry[_0x4c21d9(0x130)]][0x0]],_0x1c57da[_0x4c21d9(0xd0)]='projects/'+this['projectId']+_0x4c21d9(0x93)+_0x30c702,_0x1c57da[_0x4c21d9(0xc2)]=_0x4c21d9(0x1c4)+this['projectId']+_0x4c21d9(0x17a)+global_registry[_0x4c21d9(0x130)]+_0x4c21d9(0x1bf)+_0x53823c[0x0];const _0x25810c=await this[_0x4c21d9(0x140)][_0x4c21d9(0x126)]({'cluster':_0x1c57da,'parent':_0x4c21d9(0x1c4)+this['projectId']+_0x4c21d9(0xcf)+global_registry[_0x4c21d9(0x130)]});await this['webSocketUtils'][_0x4c21d9(0x162)](_0x7a5ee8['WcKcp'](_0x7a5ee8[_0x4c21d9(0xe1)](0x7,0x3c),0x3e8));}else return _0x7a5ee8[_0x4c21d9(0x11c)](_0x173690['clusterRegion'],_0x241b32[0x0])&&(_0x24d6d3[_0x4c21d9(0x130)]=_0x5b554c[0x0],this[_0x4c21d9(0x189)]()),!![];}catch(_0x5598fc){if(_0x7a5ee8[_0x4c21d9(0xbc)](_0x7a5ee8[_0x4c21d9(0x1bb)],_0x7a5ee8[_0x4c21d9(0x14b)])){const _0x1a2dcd=await this[_0x4c21d9(0x12d)]();_0x1a2dcd?_0x7a5ee8['yYAfe'](_0x7a5ee8[_0x4c21d9(0x183)],_0x7a5ee8[_0x4c21d9(0x13a)])?(logger[_0x4c21d9(0x99)](_0x7a5ee8[_0x4c21d9(0xe6)],_0x5598fc[_0x4c21d9(0x12c)]),await this[_0x4c21d9(0x14d)]()):_0x245c69[_0x4c21d9(0x99)](_0x7a5ee8[_0x4c21d9(0x158)]):_0x7a5ee8[_0x4c21d9(0x11b)](_0x7a5ee8[_0x4c21d9(0x12e)],_0x7a5ee8['qbQiB'])?logger[_0x4c21d9(0x99)](_0x7a5ee8[_0x4c21d9(0x158)]):(_0x2de46c[_0x4c21d9(0x130)]=_0x3f7e45[_0x7a5ee8[_0x4c21d9(0x1a1)](_0x15f1fe,0x1)],this['updateClusterRegion']());throw _0x5598fc;}else!this['isConfigured']()&&this[_0x4c21d9(0xbf)]();}}async[a3_0x9077de(0x148)](){const _0x2ab09c=a3_0x9077de;cp[_0x2ab09c(0x128)](_0x2ab09c(0xf5)+this[_0x2ab09c(0x191)]+_0x2ab09c(0x10f)+global_registry[_0x2ab09c(0x130)]+_0x2ab09c(0xf9));}async['deleteCluster'](_0x5db65a,_0x321b63){const _0x836a40=a3_0x9077de,_0xb168a6={'FWJkA':function(_0x100364,_0x159629){return _0x100364===_0x159629;},'qooag':_0x836a40(0x1b4),'KWBdL':'ytyKN','keCbF':function(_0x114af3,_0xe20584){return _0x114af3(_0xe20584);},'GYDOG':function(_0x436097,_0xe44ee4){return _0x436097===_0xe44ee4;},'SwybP':_0x836a40(0x1a9),'XyUTC':_0x836a40(0x16f),'DKuGH':function(_0x3a3340,_0x25e14f){return _0x3a3340!==_0x25e14f;},'qCBAG':_0x836a40(0x12b),'BLgAV':_0x836a40(0xe2),'EUAlW':_0x836a40(0xd7),'jrMuf':_0x836a40(0xd2)};try{if(_0xb168a6[_0x836a40(0xc1)](_0xb168a6['qooag'],_0xb168a6[_0x836a40(0x1b1)]))this['setConfig']();else{await _0xb168a6[_0x836a40(0xd1)](deleteAgent,_0x5db65a),await _0xb168a6['keCbF'](deleteRoutingDeps,_0x5db65a),logger[_0x836a40(0x99)](_0x836a40(0x156)+this[_0x836a40(0x191)]);const _0x289ee4=await this[_0x836a40(0x140)]['deleteCluster']({'name':_0x836a40(0x1c4)+this[_0x836a40(0xfe)]+_0x836a40(0xcf)+global_registry[_0x836a40(0x130)]+'/clusters/'+this['clusterName']});if(_0xb168a6[_0x836a40(0xa1)](_0x289ee4[0x0]?.[_0x836a40(0x15b)],_0xb168a6[_0x836a40(0x18b)])||_0xb168a6[_0x836a40(0xc1)](_0x289ee4[0x0]?.['status'],_0xb168a6[_0x836a40(0x177)]))return _0xb168a6['DKuGH'](_0xb168a6['qCBAG'],_0xb168a6['qCBAG'])?!![]:!![];logger['info']('Cluster\x20deletion\x20completed');}}catch(_0x2a036b){if(_0xb168a6[_0x836a40(0x1e5)](_0xb168a6[_0x836a40(0x149)],_0xb168a6[_0x836a40(0x1b6)])){logger[_0x836a40(0x99)](_0xb168a6[_0x836a40(0x1d8)]);throw _0x2a036b;}else return!![];}}async[a3_0x9077de(0x154)](_0x19ea17){const _0xd31670=a3_0x9077de,_0x2f0cdd={};_0x2f0cdd[_0xd31670(0xb3)]=function(_0x1544e4,_0x2344b1){return _0x1544e4===_0x2344b1;},_0x2f0cdd[_0xd31670(0x12a)]=function(_0x2773b9,_0x260387){return _0x2773b9+_0x260387;},_0x2f0cdd[_0xd31670(0xed)]=function(_0x12e57c,_0x3f7773){return _0x12e57c!==_0x3f7773;},_0x2f0cdd[_0xd31670(0x171)]=_0xd31670(0xbb),_0x2f0cdd[_0xd31670(0x1dc)]=_0xd31670(0x1e2),_0x2f0cdd[_0xd31670(0x1c8)]=function(_0x834c06,_0x5e30e1){return _0x834c06>_0x5e30e1;},_0x2f0cdd[_0xd31670(0x9b)]=function(_0x3701dc,_0x242409){return _0x3701dc===_0x242409;},_0x2f0cdd[_0xd31670(0x1cd)]=function(_0x10810c,_0x52219e){return _0x10810c!==_0x52219e;},_0x2f0cdd[_0xd31670(0x151)]=_0xd31670(0x10a),_0x2f0cdd[_0xd31670(0xdc)]=_0xd31670(0x1d5),_0x2f0cdd[_0xd31670(0x132)]=function(_0x132e28,_0x2f211b){return _0x132e28===_0x2f211b;},_0x2f0cdd[_0xd31670(0x145)]=_0xd31670(0xef),_0x2f0cdd[_0xd31670(0xba)]='UAnjY';const _0x2eb0a5=_0x2f0cdd;try{if(_0x2eb0a5[_0xd31670(0xed)](_0x2eb0a5['aILcT'],_0x2eb0a5['NqUcD'])){const _0xddc410={};_0xddc410[_0xd31670(0xc9)]=projectId,_0xddc410[_0xd31670(0xd0)]=_0x19ea17;const _0x5e7e04=await networkClient[_0xd31670(0x14c)](_0xddc410);if(_0x2eb0a5[_0xd31670(0x1c8)](_0x5e7e04[_0xd31670(0x1b3)],0x0)&&_0x2eb0a5[_0xd31670(0x9b)](_0x5e7e04[0x0][_0xd31670(0x184)],_0x19ea17))return _0x2eb0a5['gxQvL'](_0x2eb0a5['dBWZE'],_0x2eb0a5['ACvxB'])?!![]:_0x2eb0a5[_0xd31670(0xb3)](_0x565826[_0xd31670(0xb5)],!![]);}else _0x4661be[_0xd31670(0x167)]('['+_0x2eb0a5[_0xd31670(0x12a)](_0x523f55,0x1)+']\x20'+_0x5aa7de[_0x2e6506]);}catch(_0x1331d1){if(_0x2eb0a5[_0xd31670(0x132)](_0x2eb0a5[_0xd31670(0x145)],_0x2eb0a5[_0xd31670(0xba)]))_0x2bc8f8[_0xd31670(0x130)]=_0x10db72[0x0],this[_0xd31670(0x189)]();else return![];}return![];}async['isSubnetsValid'](_0x5b5c8c,_0x4483c9){const _0x2ef30a=a3_0x9077de,_0x4b66ae={};_0x4b66ae[_0x2ef30a(0xb8)]=function(_0x357fed,_0x349444){return _0x357fed===_0x349444;},_0x4b66ae['rqvSX']=function(_0x19b9c8,_0x531b4e){return _0x19b9c8!==_0x531b4e;},_0x4b66ae[_0x2ef30a(0x19b)]='jRaEb';const _0x40386d=_0x4b66ae;try{const _0x5e3413={};_0x5e3413[_0x2ef30a(0xc9)]=projectId,_0x5e3413[_0x2ef30a(0xd0)]=_0x4483c9;const _0x132870=await networkClient['get'](_0x5e3413);for(const _0x485ca7 of _0x132870[0x0][_0x2ef30a(0x1de)]){const _0x477d46=_0x2ef30a(0xf3)+this['projectId']+_0x2ef30a(0x17a)+global_registry[_0x2ef30a(0x130)]+_0x2ef30a(0x1bf)+_0x5b5c8c[0x0];if(_0x40386d[_0x2ef30a(0xb8)](_0x477d46,_0x485ca7))return _0x40386d[_0x2ef30a(0x19a)](_0x40386d['EJXGE'],_0x40386d['EJXGE'])?_0x1eb58f[_0x2ef30a(0x15b)][_0x2ef30a(0xfc)]['ingress'][0x0]['ip']:[!![],_0x5b5c8c];}}catch(_0xd400e1){return logger['error'](_0x2ef30a(0x105)+_0x5b5c8c+_0x2ef30a(0x1ea)+_0xd400e1),[![],[]];}return[![],[]];}async[a3_0x9077de(0xf2)](){const _0x57bb92=a3_0x9077de,_0xa07b78=await this[_0x57bb92(0xc6)][_0x57bb92(0x131)]({'project':this[_0x57bb92(0xfe)]}),_0x405d98={};_0x405d98[_0x57bb92(0x13f)]=global_registry['bstackUsername'],_0x405d98[_0x57bb92(0xa0)]=global_registry[_0x57bb92(0x1ec)],_0x405d98[_0x57bb92(0x16d)]=GCP,_0x405d98[_0x57bb92(0x1bc)]=[];const _0x19577e=_0x405d98;for(const _0x33d2d6 of _0xa07b78){_0x19577e[_0x57bb92(0x1bc)]['push'](_0x33d2d6);}const _0x57b4bd={};_0x57b4bd['type']=WS_EVENTS[_0x57bb92(0x1f0)],_0x57b4bd[_0x57bb92(0x196)]=_0x19577e,this['webSocketUtils'][_0x57bb92(0x134)](this[_0x57bb92(0x165)],_0x57b4bd);}async[a3_0x9077de(0x189)](){const _0x423c25=a3_0x9077de,_0x191287={'nizsw':function(_0x5cc4b1,_0x2f0223,_0x319fc7){return _0x5cc4b1(_0x2f0223,_0x319fc7);},'yupjs':'PUT','QiJkh':'json','ZJurr':function(_0x4c8e68,_0x50815d,_0x41517f){return _0x4c8e68(_0x50815d,_0x41517f);}},_0x145110=_0x423c25(0x1be)+AG_API_URL+'/packages/cli/update-cluster-region',_0x350a11={};_0x350a11['profileId']=global_registry[_0x423c25(0x139)];const _0x33fed3={};_0x33fed3['newRegion']=global_registry[_0x423c25(0x130)];const _0x551192={'searchParams':_0x350a11,'json':_0x33fed3,'headers':_0x191287['nizsw'](getAuthHeader,global_registry[_0x423c25(0xb4)],global_registry[_0x423c25(0x1ec)]),'method':_0x191287[_0x423c25(0xcb)],'responseType':_0x191287[_0x423c25(0x14e)]},_0x100496=await _0x191287[_0x423c25(0x193)](got,_0x145110,_0x551192);}}function a3_0x3c8d(_0x468938,_0x4b02e7){const _0x5c25f2=a3_0x5c25();return a3_0x3c8d=function(_0x3c8dc4,_0x1e3aa1){_0x3c8dc4=_0x3c8dc4-0x8d;let _0x493ac0=_0x5c25f2[_0x3c8dc4];return _0x493ac0;},a3_0x3c8d(_0x468938,_0x4b02e7);}const a3_0x466263={};a3_0x466263[a3_0x9077de(0x17b)]=GoogleCloudProvider,module[a3_0x9077de(0x1a3)]=a3_0x466263;
1
+ const a3_0x115dd8=a3_0x2871;function a3_0x2b5c(){const _0x5a1c46=['mLWjP','aOvtu','storage.objects.create','resourceLabels','rws','status','27vxorAx','fZwkU','nodePools','project','bdiHs','iUCZf','storage.buckets.deleteTagBinding','/subnetworks/','GoogleCloudProvider','bindings','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','title','HTdWD','svxkt','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','nHJON','readFileAsync','toLowerCase','QheiJ','accountId','feqUs','json','setConfig','storage.multipartUploads.listParts','/serviceAccounts/','AQfOe','/locations/','../config/constants','iam.serviceAccounts.signBlob','wuVrl','4372336msxHjf','QfEKp','create','LniHP','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','customRoleName','TkBnK','turboscale-service-account','PUT','split','locations','storage.objects.update','/clusters/','KUpUl','moNgA','maxNodes','@google-cloud/container','storage.buckets.getIamPolicy','PpITa','storage.buckets.get','project_id','VXOMP','ZWsbt','voWxb','osdUP','UFCzy','MQmPN','sVkRZ','containerClient','yitFI','Cluster\x20creation\x20failed','GGYQQ','replace','getClient','BcWLX','VRUvK','xAuqq','NOiVE','storage.buckets.list','GoiuT','members','util','name','YJhoO','vDiqX','ClusterManagerClient','accessKey','iam','storage.objects.getIamPolicy','rASVc','config','qUIsw','cgoDV','qBCtx','praUX','FKLDY','getIamPolicy','lULTX','/packages/cli/update-cluster-region','autoscaling','createCluster','regionmap.json','QaNsm','Zweaa','.iam.gserviceaccount.com','GKE\x20Cluster\x20deletion\x20failed','xGpDl','managedby','subnetwork','utf-8','KsauG','PLIQX','IcwDl','BcApE','type','WIctD','mZKYK','networkClient','wHCRz','gVRqy','clusters','KLWaS','fetchLocalCreds','nTuji','Service\x20account\x20already\x20exists,\x20skipping','storage.buckets.update','YfzXk','push','YQakj','auth','lxTlP','storage.buckets.delete','xBNDQ','KubeConfigTemplate.yaml','network','kxtQW','bstackUsername','mbpOu','scopes','credentialsPath','EtFgx','requestBody','rXdgV','projects','OaufC','isBrowserstackCluster','Cluster\x20deletion\x20completed','Creating\x20service\x20account','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','Cannot\x20find\x20subnets\x20','ZoAHl','pCxqm','templates','setupNewCluster','zCKDw','listClusters','concat','\x20--windows-os-version=ltsc2022\x20--region\x20','GIzEm','isConfigured','VeKkv','https://www.googleapis.com/auth/cloud-platform','keyFile','AEGmm','bstackAccesskey','log','GilnF','maxNodeCount','serviceAccount','updateClusterRegion','10JSMWFV','organizations','ujHxk','uNMJd','qIsCd','message','rDPFP','@google-cloud/compute','NepDr','PdNfZ','iHvzS','UBobb','storage.objects.setIamPolicy','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','4MapBaH','exports','minNodeCount','TmDYS','iamClient','https://www.googleapis.com/compute/v1/projects/','VjbYw','LOG','IkPNR','goaWc','IuFGW','qMIMp','AUKkB','vpcInfo','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','@google-cloud/resource-manager','../utils/userInput','parse','PSBTp','489860OJbjzS','gcp_credentials.json','lPhzW','join','turboscale_custom_role','webSocketUtils','kEfSG','storage.buckets.listEffectiveTags','QVeQB','xthke','Qzrxk','delay','oIGus','MfTOI','location','fsfQp','UwfGq','xqRGh','afeUs','0|3|5|1|4|6|2','DfrQU','get','Turboscale\x20Custom\x20Role','QSZse','2510524hwZTFj','KkJtP','error','unZmY','NIpDo','setupServiceAccount','gCGHB','OnhAG','kwCFn','execSync','ingress','tlUUD','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','getGridHostname','list','BcluU','cloudProvider','svgAk','eBdxJ','configureIfNotConfigured','\x20--quiet\x20--user-output-enabled=false','xgYYv','EZLYl','length','2149347SWrNeU','https://','BLbMK','projects/','JStpp','vJxAV','Creating\x20GKE\x20Cluster','vvYRM','Deleting\x20the\x20cluster\x20','pJvaf','BlFVw','GWLFN','jNVKN','gcpConfigSet','NetworksClient','resourcemanagerClient','masterAuth','aCChk','OMZfm','BwAgt','XNfFl','qDONu','sIUxn','FUhll','xfASH','instanceType','/regions/','BkDir','Radjx','HbmZH','hOcjo','serviceAccountName','AlFjr','AgIVB','KAkoi','DYNaE','clusterName','LHaZS','yPqaX','DONE','UpoYY','qAFuh','exit','UMOrL','storage.buckets.create','deleteCluster','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','RUuni','kTlPR','stack','sendEventToBackend','accounts','../utils/gridComponents','loadBalancer','Gvnun','MohNy','10219340pnLkVR','fYSqo','child_process','storage.multipartUploads.create','getClusterInfo','checkServiceAccount','parent','IfNrI','38910sJtSOY','path','includedPermissions','GkvSR','getKubeConfigData','sfhVb','storage.buckets.listTagBindings','default','ATObM','pGBso','oMgyc','oHiiX','got','toString','writeFileSync','NGwuv','PzgkR','clusterRegion','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','fZAMu','HRzkr','getUserInput','storage.objects.list','gke_','info','isClusterPresent','NsjKS','BGGVB','../config/logger','qBVKo','projectId','HnVyo','3063123wOdTFP','JaVdM','Rikjl','gkecluster.json','pbMjx','storage.multipartUploads.abort','updateWindowsNodeGroup','BXmpr','tZEPD','serviceAccounts','CYVEB','AMPLY','ydbEk','role','../utils/utilityMethods','iqoof','sendGCPInfoToHST','QTjaG','gcpresources'];a3_0x2b5c=function(){return _0x5a1c46;};return a3_0x2b5c();}(function(_0x3e8848,_0x2b435f){const _0x3e50a0=a3_0x2871,_0x23e7aa=_0x3e8848();while(!![]){try{const _0x54c163=parseInt(_0x3e50a0(0x106))/0x1+parseInt(_0x3e50a0(0xf3))/0x2*(parseInt(_0x3e50a0(0x136))/0x3)+parseInt(_0x3e50a0(0x11e))/0x4*(-parseInt(_0x3e50a0(0xe5))/0x5)+-parseInt(_0x3e50a0(0x176))/0x6+-parseInt(_0x3e50a0(0x196))/0x7+-parseInt(_0x3e50a0(0x1cd))/0x8*(-parseInt(_0x3e50a0(0x1af))/0x9)+-parseInt(_0x3e50a0(0x16e))/0xa;if(_0x54c163===_0x2b435f)break;else _0x23e7aa['push'](_0x23e7aa['shift']());}catch(_0xa4437a){_0x23e7aa['push'](_0x23e7aa['shift']());}}}(a3_0x2b5c,0xcd59a));const fs=require('fs'),path=require(a3_0x115dd8(0x177)),got=require(a3_0x115dd8(0x182)),util=require(a3_0x115dd8(0x1f6)),cp=require(a3_0x115dd8(0x170)),{google}=require('googleapis'),compute=require(a3_0x115dd8(0xec)),container=require(a3_0x115dd8(0x1dd)),{ProjectsClient}=require(a3_0x115dd8(0x102))['v3'],{logger}=require(a3_0x115dd8(0x192)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig,getAuthHeader}=require(a3_0x115dd8(0x1a4)),{deleteRoutingDeps,deleteAgent}=require(a3_0x115dd8(0x16a)),{inputConfirmation,closeInput}=require(a3_0x115dd8(0x103)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x115dd8(0x1ca));function a3_0x2871(_0x56d578,_0x4ac8d7){const _0x2b5ca2=a3_0x2b5c();return a3_0x2871=function(_0x2871d5,_0x117bd0){_0x2871d5=_0x2871d5-0xb0;let _0x4591b9=_0x2b5ca2[_0x2871d5];return _0x4591b9;},a3_0x2871(_0x56d578,_0x4ac8d7);}class GoogleCloudProvider extends CloudProvider{constructor(_0x94d518,_0x76bd36,_0x3eac68,_0x5ef227){const _0x4014e9=a3_0x115dd8,_0x467af7={};_0x467af7[_0x4014e9(0x122)]='1|5|4|8|6|3|0|2|7',_0x467af7['jNVKN']=_0x4014e9(0x10a),_0x467af7[_0x4014e9(0x185)]=_0x4014e9(0x1d4);const _0x3c07c0=_0x467af7,_0x8e8f05=_0x3c07c0[_0x4014e9(0x122)][_0x4014e9(0x1d6)]('|');let _0x18d9fe=0x0;while(!![]){switch(_0x8e8f05[_0x18d9fe++]){case'0':this['projectId']=null;continue;case'1':super(GCP,_0x94d518,_0x76bd36,_0x3eac68,_0x5ef227);continue;case'2':this[_0x4014e9(0x1d2)]=_0x3c07c0[_0x4014e9(0x142)];continue;case'3':this[_0x4014e9(0xc6)]=null;continue;case'4':this[_0x4014e9(0xb0)]=null;continue;case'5':this['containerClient']=null;continue;case'6':this[_0x4014e9(0xf7)]=null;continue;case'7':this[_0x4014e9(0x155)]=_0x3c07c0[_0x4014e9(0x185)];continue;case'8':this['resourcemanagerClient']=null;continue;}break;}}[a3_0x115dd8(0x131)](){const _0x1d49a3=a3_0x115dd8,_0x3cf4cd={};_0x3cf4cd[_0x1d49a3(0x195)]=_0x1d49a3(0xb7),_0x3cf4cd[_0x1d49a3(0x138)]=function(_0x12c5a1,_0x396e45){return _0x12c5a1===_0x396e45;},_0x3cf4cd[_0x1d49a3(0x13b)]=_0x1d49a3(0x12f);const _0x4e3944=_0x3cf4cd;if(!this['isConfigured']()){if(_0x4e3944[_0x1d49a3(0x138)](_0x4e3944[_0x1d49a3(0x13b)],_0x4e3944[_0x1d49a3(0x13b)]))this[_0x1d49a3(0x1c5)]();else{_0x5d4eca[_0x1d49a3(0x18e)](_0x4e3944[_0x1d49a3(0x195)]);return;}}}['isConfigured'](){const _0x5851fb=a3_0x115dd8,_0x4fc1f7={};_0x4fc1f7['UMOrL']=function(_0x3abe68,_0x408279){return _0x3abe68===_0x408279;};const _0x43f1d8=_0x4fc1f7;return _0x43f1d8[_0x5851fb(0x161)](global_registry['gcpConfigSet'],!![]);}[a3_0x115dd8(0x1c5)](){const _0x4d8e84=a3_0x115dd8,_0x5b96ac=this['credentialsPath'],_0x1468ff={};_0x1468ff[_0x4d8e84(0xdd)]=_0x5b96ac,this[_0x4d8e84(0x1e9)]=new container['v1']['ClusterManagerClient'](_0x1468ff);const _0x2446da={};_0x2446da[_0x4d8e84(0xdd)]=_0x5b96ac,this[_0x4d8e84(0xb0)]=new compute['v1'][(_0x4d8e84(0x144))](_0x2446da);const _0x4d9d42={};_0x4d9d42[_0x4d8e84(0xdd)]=_0x5b96ac,this[_0x4d8e84(0x145)]=new ProjectsClient(_0x4d9d42),this['iamClient']=google[_0x4d8e84(0x1fc)]('v1'),global_registry[_0x4d8e84(0x143)]=!![];}async[a3_0x115dd8(0x18b)](_0x3502a9,_0x2f1424){const _0x49dca2=a3_0x115dd8,_0x285f86={'moNgA':function(_0x13e0d0,_0x3476af){return _0x13e0d0(_0x3476af);},'YfzXk':function(_0x46224e){return _0x46224e();},'JHyRY':_0x49dca2(0x107)},_0x3fa0bc=await _0x285f86[_0x49dca2(0x1db)](_0x3502a9,_0x49dca2(0x188));let _0x24992c=await fs[_0x49dca2(0x1bf)](_0x3fa0bc);_0x24992c=_0x24992c[_0x49dca2(0x183)]();const _0x317fd7=_0x285f86[_0x49dca2(0xb9)](getDirForConfig),_0x55a2ab=path[_0x49dca2(0x109)](_0x317fd7,_0x285f86['JHyRY']);fs[_0x49dca2(0x184)](_0x55a2ab,_0x24992c),this[_0x49dca2(0xc6)]=_0x55a2ab;const _0x556410={};return _0x556410[_0x49dca2(0xdd)]=_0x55a2ab,_0x2f1424[_0x49dca2(0x12e)][GCP]=_0x556410,_0x24992c=JSON[_0x49dca2(0x104)](_0x24992c),this[_0x49dca2(0x194)]=_0x24992c[_0x49dca2(0x1e1)],_0x2f1424;}async[a3_0x115dd8(0xb5)](_0x2d19ec){const _0xaec05c=a3_0x115dd8;this[_0xaec05c(0xc6)]=_0x2d19ec[this['cloudProviderName']]['keyFile'];let _0x4a1830=await fs['readFileAsync'](this[_0xaec05c(0xc6)]);_0x4a1830=JSON[_0xaec05c(0x104)](_0x4a1830),this[_0xaec05c(0x194)]=_0x4a1830['project_id'];}[a3_0x115dd8(0x12b)](_0x448b1e){const _0x3c403b=a3_0x115dd8;return _0x448b1e[_0x3c403b(0x1ae)][_0x3c403b(0x16b)][_0x3c403b(0x128)][0x0]['ip'];}async[a3_0x115dd8(0xcc)](){const _0x5ce258=a3_0x115dd8,_0x32f36a={};_0x32f36a[_0x5ce258(0x148)]=function(_0x387ccd,_0x420730){return _0x387ccd===_0x420730;},_0x32f36a[_0x5ce258(0x1da)]=_0x5ce258(0xfe),_0x32f36a[_0x5ce258(0xb2)]='YKcSw',_0x32f36a[_0x5ce258(0x1b3)]=_0x5ce258(0xbb),_0x32f36a[_0x5ce258(0x1df)]=_0x5ce258(0xfd),_0x32f36a[_0x5ce258(0xdb)]=function(_0x4dd7aa,_0x13e5bf){return _0x4dd7aa===_0x13e5bf;},_0x32f36a[_0x5ce258(0xf0)]='browserstack',_0x32f36a[_0x5ce258(0xe7)]=function(_0x429951,_0x3b2325){return _0x429951===_0x3b2325;},_0x32f36a[_0x5ce258(0x213)]=_0x5ce258(0xbf),_0x32f36a[_0x5ce258(0x156)]=_0x5ce258(0x157);const _0xb7b509=_0x32f36a;try{if(_0xb7b509[_0x5ce258(0x148)](_0xb7b509[_0x5ce258(0x1da)],_0xb7b509['gVRqy']))return![];else{const _0x4cdf4f=await this['getClusterInfo']();if(_0x4cdf4f[0x0]?.[_0x5ce258(0x1ac)]?.[_0x5ce258(0x210)]){if(_0xb7b509[_0x5ce258(0x148)](_0xb7b509[_0x5ce258(0x1b3)],_0xb7b509[_0x5ce258(0x1df)]))!this[_0x5ce258(0xda)]()&&this[_0x5ce258(0x1c5)]();else{const _0xa3eb6=_0x4cdf4f[0x0]?.[_0x5ce258(0x1ac)]?.[_0x5ce258(0x210)];return _0xa3eb6&&_0xb7b509[_0x5ce258(0xdb)](_0xa3eb6[_0x5ce258(0x1c0)](),_0xb7b509[_0x5ce258(0xf0)]);}}}}catch(_0xf63493){return _0xb7b509['ujHxk'](_0xb7b509['KsauG'],_0xb7b509[_0x5ce258(0x156)])?(_0x487ff6[_0x5ce258(0x120)](_0x5ce258(0xd0)+_0x3bfcd2+'.\x20Error:\x20'+_0x3f9bd7),[![],[]]):![];}return![];}async['isClusterPresent'](){const _0x353fcb=a3_0x115dd8,_0x39e076={'zCKDw':function(_0x4029e0,_0x5c729b){return _0x4029e0===_0x5c729b;},'VjbYw':function(_0x204f2e,_0x1a0fa8){return _0x204f2e!==_0x1a0fa8;},'ljIGX':_0x353fcb(0x20e),'BZQfo':'browserstack','oIGus':'templates','Gvnun':_0x353fcb(0x1a8),'qDONu':'regionmap.json','loiWd':_0x353fcb(0x212),'goaWc':function(_0x37f923,_0x2bfa9c){return _0x37f923!==_0x2bfa9c;},'BcApE':function(_0x3652ae,_0x34faf0){return _0x3652ae===_0x34faf0;},'OpSwP':_0x353fcb(0xd2),'QfEKp':'dPgGl','fZwkU':_0x353fcb(0x1e6),'IfNrI':function(_0x2ec271,_0x1e0494){return _0x2ec271===_0x1e0494;},'NOiVE':_0x353fcb(0x18a),'EZLYl':function(_0x47dc0e,_0x11d7a7){return _0x47dc0e===_0x11d7a7;},'ceLTP':_0x353fcb(0x118),'Opkkl':function(_0xf1e5df,_0x50123b){return _0xf1e5df===_0x50123b;},'NsjKS':_0x353fcb(0x1e5),'FSytK':function(_0x35254d,_0x5ee9dd){return _0x35254d===_0x5ee9dd;},'kTlPR':_0x353fcb(0x13d),'mkixB':_0x353fcb(0x19e),'GkvSR':function(_0x561bef,_0xf740bb){return _0x561bef>_0xf740bb;},'wuVrl':'WFtCH','rgAoJ':function(_0x3d042e,_0x2167ea){return _0x3d042e<_0x2167ea;},'ydbEk':function(_0x30906d,_0x2ac89e){return _0x30906d!==_0x2ac89e;},'oHiiX':_0x353fcb(0x1e2),'tMiQm':_0x353fcb(0x201),'QSZse':function(_0x1cc414,_0x4fb1c2){return _0x1cc414+_0x4fb1c2;},'xgYYv':function(_0x3b1a6f,_0x5b4e90){return _0x3b1a6f(_0x5b4e90);},'Qzrxk':_0x353fcb(0x101),'UpoYY':function(_0x331745,_0x2b5ed9){return _0x331745<=_0x2b5ed9;},'VDyRT':_0x353fcb(0x15c),'TkBnK':_0x353fcb(0x1c1),'sIzfs':_0x353fcb(0x164),'JStpp':function(_0x38e114){return _0x38e114();},'PzgkR':function(_0xa3d269,_0x4c7917){return _0xa3d269-_0x4c7917;},'nHJON':function(_0x5a0e0c,_0x4e8d02){return _0x5a0e0c!==_0x4e8d02;},'eBdxJ':_0x353fcb(0x124),'AEGmm':'zFOdX'};this[_0x353fcb(0x131)]();let _0xffd3ee=await fs[_0x353fcb(0x1bf)](path['join'](__dirname,'..',_0x39e076[_0x353fcb(0x112)],_0x39e076[_0x353fcb(0x16c)],_0x39e076[_0x353fcb(0x14b)]),_0x39e076['loiWd']);_0xffd3ee=JSON[_0x353fcb(0x104)](_0xffd3ee);let _0x1c86c2=[global_registry[_0x353fcb(0x187)]];_0x39e076[_0x353fcb(0xfc)](_0xffd3ee[global_registry[_0x353fcb(0x187)]],undefined)&&(_0x39e076[_0x353fcb(0x216)](_0x39e076['OpSwP'],_0x39e076[_0x353fcb(0x1ce)])?_0x5002e2['execSync']('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x353fcb(0x15a)]+_0x353fcb(0xd8)+_0x4d0cbc[_0x353fcb(0x187)]+_0x353fcb(0x132)):_0x1c86c2=_0x1c86c2[_0x353fcb(0xd7)](_0xffd3ee[global_registry[_0x353fcb(0x187)]]));const _0x249a58=[];for await(let _0x218eaa of _0x1c86c2){if(_0x39e076[_0x353fcb(0x216)](_0x39e076[_0x353fcb(0x1b0)],_0x39e076[_0x353fcb(0x1b0)])){const _0x4128c5={};_0x4128c5[_0x353fcb(0x174)]=_0x353fcb(0x139)+this[_0x353fcb(0x194)]+_0x353fcb(0x1c9)+_0x218eaa;const _0x2c484b=_0x4128c5,_0x85bd35=await this[_0x353fcb(0x1e9)][_0x353fcb(0xd6)](_0x2c484b);for(const _0x4e8bd0 of _0x85bd35[0x0][_0x353fcb(0xb3)]){if(_0x39e076[_0x353fcb(0x175)](_0x39e076[_0x353fcb(0x1f2)],_0x39e076['NOiVE'])){if(_0x39e076[_0x353fcb(0x175)](_0x4e8bd0[_0x353fcb(0x1f7)],this[_0x353fcb(0x15a)])){if(_0x39e076[_0x353fcb(0x134)](_0x39e076['ceLTP'],_0x39e076['ceLTP']))_0x249a58['push'](_0x218eaa);else return[!![],_0x251d41];}}else _0x5bc0d9=_0x3f7642[_0x353fcb(0xd7)](_0x2d1fc7[_0x19227c[_0x353fcb(0x187)]]);}}else{const _0x3a7074=_0x353fcb(0xf8)+this[_0x353fcb(0x194)]+_0x353fcb(0x150)+_0x1bc964[_0x353fcb(0x187)]+'/subnetworks/'+_0x52e2f9[0x0];if(_0x39e076['zCKDw'](_0x3a7074,_0x25d0d4))return[!![],_0x1a9634];}}const _0xa0b121=_0x249a58[_0x353fcb(0x135)];if(_0x39e076['Opkkl'](_0xa0b121,0x1))return _0x39e076[_0x353fcb(0xfc)](_0x39e076[_0x353fcb(0x190)],_0x39e076[_0x353fcb(0x190)])?(_0x39e076['VjbYw'](_0x1cfc1c['clusterRegion'],_0x41cb5f[0x0])&&(_0x2827a1[_0x353fcb(0x187)]=_0x401d08[0x0],this[_0x353fcb(0xe4)]()),!![]):(_0x39e076[_0x353fcb(0xf9)](global_registry[_0x353fcb(0x187)],_0x249a58[0x0])&&(_0x39e076['FSytK'](_0x39e076[_0x353fcb(0x166)],_0x39e076['mkixB'])?_0x39e076[_0x353fcb(0xd5)](_0x3662d0[_0x353fcb(0x1f7)],this[_0x353fcb(0x15a)])&&_0x4f08d2[_0x353fcb(0xba)](_0x160dc5):(global_registry['clusterRegion']=_0x249a58[0x0],this[_0x353fcb(0xe4)]())),!![]);else{if(_0x39e076[_0x353fcb(0x179)](_0xa0b121,0x1)){if(_0x39e076[_0x353fcb(0xd5)](_0x39e076[_0x353fcb(0x1cc)],_0x39e076[_0x353fcb(0x1cc)])){console['log']('Found\x20cluster\x20with\x20name\x20\x27'+this[_0x353fcb(0x15a)]+_0x353fcb(0x1b9));for(let _0x3fbebe=0x0;_0x39e076['rgAoJ'](_0x3fbebe,_0xa0b121);_0x3fbebe+=0x1){if(_0x39e076[_0x353fcb(0x1a2)](_0x39e076[_0x353fcb(0x181)],_0x39e076['tMiQm']))console['log']('['+_0x39e076[_0x353fcb(0x11d)](_0x3fbebe,0x1)+']\x20'+_0x249a58[_0x3fbebe]);else{_0x266545[_0x353fcb(0x18e)](_0x39e076['ljIGX']);throw _0x31023b;}}const _0x23ae25=await _0x39e076['xgYYv'](inputConfirmation,_0x39e076[_0x353fcb(0x110)]),_0x444aa1=_0x39e076['xgYYv'](Number,_0x23ae25);if(_0x39e076[_0x353fcb(0x133)](isNaN,_0x444aa1)||_0x39e076[_0x353fcb(0x15e)](_0x444aa1,0x0)||_0x39e076[_0x353fcb(0x179)](_0x444aa1,_0xa0b121)){if(_0x39e076[_0x353fcb(0x175)](_0x39e076['VDyRT'],_0x39e076[_0x353fcb(0x1d3)])){const _0x427c17=_0x4b9293[0x0]?.['resourceLabels']?.[_0x353fcb(0x210)];return _0x427c17&&_0x39e076[_0x353fcb(0xd5)](_0x427c17[_0x353fcb(0x1c0)](),_0x39e076['BZQfo']);}else console[_0x353fcb(0x120)](_0x39e076['sIzfs']),process[_0x353fcb(0x160)](0x1);}return _0x39e076[_0x353fcb(0x13a)](closeInput),logger[_0x353fcb(0x18e)](_0x353fcb(0xf2)+_0x249a58[_0x39e076[_0x353fcb(0x186)](_0x444aa1,0x1)]),_0x39e076[_0x353fcb(0x1be)](global_registry[_0x353fcb(0x187)],_0x249a58[_0x39e076['PzgkR'](_0x444aa1,0x1)])&&(_0x39e076[_0x353fcb(0x1be)](_0x39e076[_0x353fcb(0x130)],_0x39e076[_0x353fcb(0xde)])?(global_registry[_0x353fcb(0x187)]=_0x249a58[_0x39e076['PzgkR'](_0x444aa1,0x1)],this['updateClusterRegion']()):this[_0x353fcb(0x1c5)]()),!![];}else{const _0x2b7bb6=this['credentialsPath'],_0x1fc9f9={};_0x1fc9f9[_0x353fcb(0xdd)]=_0x2b7bb6,this['containerClient']=new _0x480613['v1'][(_0x353fcb(0x1fa))](_0x1fc9f9);const _0x2a26d5={};_0x2a26d5[_0x353fcb(0xdd)]=_0x2b7bb6,this['networkClient']=new _0x133382['v1'][(_0x353fcb(0x144))](_0x2a26d5);const _0x3a6cb6={};_0x3a6cb6[_0x353fcb(0xdd)]=_0x2b7bb6,this[_0x353fcb(0x145)]=new _0x5bf171(_0x3a6cb6),this['iamClient']=_0x4793c8[_0x353fcb(0x1fc)]('v1'),_0x437f32[_0x353fcb(0x143)]=!![];}}}return![];}async[a3_0x115dd8(0x172)](){const _0x565106=a3_0x115dd8,_0x3fa7da=await this['containerClient']['getCluster']({'name':_0x565106(0x139)+this[_0x565106(0x194)]+_0x565106(0x1c9)+global_registry[_0x565106(0x187)]+_0x565106(0x1d9)+this['clusterName']});return _0x3fa7da;}async[a3_0x115dd8(0x17a)](){const _0xa0e54=a3_0x115dd8,_0x408ae3={};_0x408ae3[_0xa0e54(0x180)]='templates',_0x408ae3[_0xa0e54(0x125)]='gcpresources',_0x408ae3[_0xa0e54(0x1f9)]=_0xa0e54(0xc0);const _0x288927=_0x408ae3;cp[_0xa0e54(0x127)]('gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false'),cp['exec']('gcloud\x20auth\x20login\x20--cred-file='+this[_0xa0e54(0xc6)]);const _0x4908f4=await this['getClusterInfo'](),_0x34dfcd=_0xa0e54(0x18d)+this[_0xa0e54(0x194)]+'_'+global_registry[_0xa0e54(0x187)]+'_'+this['clusterName'];let _0x5bb317=await fs[_0xa0e54(0x1bf)](path[_0xa0e54(0x109)](__dirname,'..',_0x288927[_0xa0e54(0x180)],_0x288927[_0xa0e54(0x125)],_0x288927[_0xa0e54(0x1f9)]));return _0x5bb317=_0x5bb317[_0xa0e54(0x183)](),_0x5bb317=_0x5bb317[_0xa0e54(0x1ed)](/<CLUSTER_NAME>/g,_0x34dfcd),_0x5bb317=_0x5bb317[_0xa0e54(0x1ed)](/<CLUSTER_URL>/g,_0xa0e54(0x137)+_0x4908f4[0x0]['endpoint']),_0x5bb317=_0x5bb317[_0xa0e54(0x1ed)](/<CERTIFICATE_DATA>/g,_0x4908f4[0x0][_0xa0e54(0x146)]['clusterCaCertificate']),_0x5bb317;}async[a3_0x115dd8(0x173)](){const _0x1db360=a3_0x115dd8,_0x22240f={};_0x22240f['EtFgx']=function(_0x550a84,_0x9b0c4a){return _0x550a84===_0x9b0c4a;},_0x22240f[_0x1db360(0x19d)]=_0x1db360(0xdc),_0x22240f[_0x1db360(0x105)]=function(_0x2c61fa,_0x18806d){return _0x2c61fa===_0x18806d;},_0x22240f[_0x1db360(0xbd)]='KcmNh',_0x22240f[_0x1db360(0x11f)]='azrxj',_0x22240f[_0x1db360(0x141)]=function(_0xa9cc9a,_0x33d502){return _0xa9cc9a===_0x33d502;},_0x22240f[_0x1db360(0x12d)]=_0x1db360(0x10c),_0x22240f[_0x1db360(0x1a1)]='PxYfL';const _0x454fcf=_0x22240f,_0x5ce4b8={};_0x5ce4b8[_0x1db360(0xc5)]=[_0x454fcf[_0x1db360(0x19d)]],_0x5ce4b8[_0x1db360(0xdd)]=this[_0x1db360(0xc6)];const _0x414341=await google[_0x1db360(0xbc)]['getClient'](_0x5ce4b8),_0x4d8f92=await this[_0x1db360(0xf7)][_0x1db360(0xca)][_0x1db360(0x19f)][_0x1db360(0x12c)]({'name':_0x1db360(0x139)+this[_0x1db360(0x194)],'auth':_0x414341});for(const _0x12841a of _0x4d8f92?.['data']?.[_0x1db360(0x169)]){if(_0x454fcf[_0x1db360(0x105)](_0x454fcf[_0x1db360(0xbd)],_0x454fcf[_0x1db360(0x11f)])){if(_0x454fcf[_0x1db360(0xc7)](_0x48ccf0?.['name'],_0x1db360(0x139)+this[_0x1db360(0x194)]+_0x1db360(0x1c7)+this[_0x1db360(0x155)]+'@'+this[_0x1db360(0x194)]+_0x1db360(0x20d)))return!![];}else{if(_0x454fcf[_0x1db360(0x105)](_0x12841a?.[_0x1db360(0x1f7)],_0x1db360(0x139)+this['projectId']+'/serviceAccounts/'+this[_0x1db360(0x155)]+'@'+this['projectId']+_0x1db360(0x20d)))return _0x454fcf[_0x1db360(0x141)](_0x454fcf[_0x1db360(0x12d)],_0x454fcf[_0x1db360(0x1a1)])?!![]:!![];}}return![];}async[a3_0x115dd8(0x123)](){const _0x4bc4ff=a3_0x115dd8,_0x1cbd84={};_0x1cbd84['ZoReJ']=function(_0x5ae3c3,_0x2c21c2){return _0x5ae3c3+_0x2c21c2;},_0x1cbd84[_0x4bc4ff(0x16f)]=function(_0x190b1a,_0x3b1ace){return _0x190b1a===_0x3b1ace;},_0x1cbd84[_0x4bc4ff(0x16d)]=_0x4bc4ff(0x1bc),_0x1cbd84['OaufC']='Service\x20account\x20already\x20exists,\x20skipping',_0x1cbd84[_0x4bc4ff(0xeb)]=_0x4bc4ff(0xce),_0x1cbd84['wJERp']='https://www.googleapis.com/auth/cloud-platform',_0x1cbd84[_0x4bc4ff(0x189)]=_0x4bc4ff(0x1cb),_0x1cbd84[_0x4bc4ff(0x1e3)]=_0x4bc4ff(0x162),_0x1cbd84[_0x4bc4ff(0x1ea)]='storage.buckets.createTagBinding',_0x1cbd84['AUKkB']=_0x4bc4ff(0xbe),_0x1cbd84['ElKud']=_0x4bc4ff(0x1b5),_0x1cbd84[_0x4bc4ff(0x1ef)]=_0x4bc4ff(0x1e0),_0x1cbd84[_0x4bc4ff(0x20f)]=_0x4bc4ff(0x1de),_0x1cbd84['tlUUD']='storage.buckets.getObjectInsights',_0x1cbd84[_0x4bc4ff(0xb6)]=_0x4bc4ff(0x1f3),_0x1cbd84[_0x4bc4ff(0x165)]=_0x4bc4ff(0x10d),_0x1cbd84[_0x4bc4ff(0x115)]=_0x4bc4ff(0x17c),_0x1cbd84[_0x4bc4ff(0x10f)]='storage.buckets.setIamPolicy',_0x1cbd84[_0x4bc4ff(0xc9)]=_0x4bc4ff(0xb8),_0x1cbd84[_0x4bc4ff(0x206)]=_0x4bc4ff(0x19b),_0x1cbd84[_0x4bc4ff(0xe9)]=_0x4bc4ff(0x171),_0x1cbd84['VkQGD']='storage.multipartUploads.list',_0x1cbd84[_0x4bc4ff(0x17f)]=_0x4bc4ff(0x1c6),_0x1cbd84[_0x4bc4ff(0x1f1)]=_0x4bc4ff(0x1ab),_0x1cbd84[_0x4bc4ff(0x20b)]='storage.objects.delete',_0x1cbd84[_0x4bc4ff(0xe8)]='storage.objects.get',_0x1cbd84['BwAgt']=_0x4bc4ff(0x1fd),_0x1cbd84[_0x4bc4ff(0x219)]=_0x4bc4ff(0x18c),_0x1cbd84[_0x4bc4ff(0xfb)]=_0x4bc4ff(0xf1),_0x1cbd84[_0x4bc4ff(0x14c)]=_0x4bc4ff(0x1d8),_0x1cbd84['AQfOe']=_0x4bc4ff(0x11c),_0x1cbd84['FifmV']=_0x4bc4ff(0x1bd);const _0xe1e71a=_0x1cbd84,_0x157e1d=await this[_0x4bc4ff(0x173)]();if(_0x157e1d){if(_0xe1e71a[_0x4bc4ff(0x16f)](_0xe1e71a['MohNy'],_0xe1e71a[_0x4bc4ff(0x16d)])){logger[_0x4bc4ff(0x18e)](_0xe1e71a[_0x4bc4ff(0xcb)]);return;}else _0xf3f958[_0x4bc4ff(0xe0)]('['+_0xe1e71a['ZoReJ'](_0x4c4662,0x1)+']\x20'+_0x177d6b[_0x5416e9]);}logger[_0x4bc4ff(0x18e)](_0xe1e71a['rDPFP']);const _0x3cff6a={};_0x3cff6a[_0x4bc4ff(0xc5)]=[_0xe1e71a['wJERp']],_0x3cff6a['keyFile']=this[_0x4bc4ff(0xc6)];const _0x432258=await google['auth'][_0x4bc4ff(0x1ee)](_0x3cff6a),_0x1874b1={};_0x1874b1[_0x4bc4ff(0x178)]=[_0xe1e71a[_0x4bc4ff(0x189)],_0xe1e71a[_0x4bc4ff(0x1e3)],_0xe1e71a['yitFI'],_0xe1e71a[_0x4bc4ff(0xff)],_0xe1e71a['ElKud'],_0xe1e71a['BcWLX'],_0xe1e71a[_0x4bc4ff(0x20f)],_0xe1e71a[_0x4bc4ff(0x129)],_0xe1e71a[_0x4bc4ff(0xb6)],_0xe1e71a[_0x4bc4ff(0x165)],_0xe1e71a[_0x4bc4ff(0x115)],_0xe1e71a[_0x4bc4ff(0x10f)],_0xe1e71a['rXdgV'],_0xe1e71a[_0x4bc4ff(0x206)],_0xe1e71a['qIsCd'],_0xe1e71a['VkQGD'],_0xe1e71a[_0x4bc4ff(0x17f)],_0xe1e71a[_0x4bc4ff(0x1f1)],_0xe1e71a[_0x4bc4ff(0x20b)],_0xe1e71a['uNMJd'],_0xe1e71a[_0x4bc4ff(0x149)],_0xe1e71a['mZKYK'],_0xe1e71a[_0x4bc4ff(0xfb)],_0xe1e71a[_0x4bc4ff(0x14c)]],_0x1874b1[_0x4bc4ff(0x1ba)]=_0xe1e71a[_0x4bc4ff(0x1c8)],await this[_0x4bc4ff(0xf7)][_0x4bc4ff(0xe6)]['roles'][_0x4bc4ff(0x1cf)]({'parent':_0x4bc4ff(0x139)+this['projectId'],'requestBody':{'role':_0x1874b1,'roleId':this[_0x4bc4ff(0x1d2)]},'auth':_0x432258});const _0x4e760b={};_0x4e760b[_0x4bc4ff(0x1f7)]=_0x4bc4ff(0x139)+this['projectId'],_0x4e760b[_0x4bc4ff(0xc8)]={},_0x4e760b[_0x4bc4ff(0xbc)]=_0x432258,_0x4e760b[_0x4bc4ff(0xc8)][_0x4bc4ff(0x1c2)]=this[_0x4bc4ff(0x155)];const _0x1368f1=_0x4e760b;await this[_0x4bc4ff(0xf7)][_0x4bc4ff(0xca)][_0x4bc4ff(0x19f)][_0x4bc4ff(0x1cf)](_0x1368f1);let _0x2825c9=await this[_0x4bc4ff(0x145)][_0x4bc4ff(0x205)]({'resource':'projects/'+this[_0x4bc4ff(0x194)]});_0x2825c9=_0x2825c9[0x0][_0x4bc4ff(0x1b8)];const _0x2fbc58={};_0x2fbc58[_0x4bc4ff(0x1a3)]=_0x4bc4ff(0x139)+this[_0x4bc4ff(0x194)]+'/roles/'+this['customRoleName'],_0x2fbc58[_0x4bc4ff(0x1f5)]=['serviceAccount:'+this[_0x4bc4ff(0x155)]+'@'+this[_0x4bc4ff(0x194)]+_0x4bc4ff(0x20d)],_0x2825c9[_0x4bc4ff(0xba)](_0x2fbc58);const _0x2aac85={};_0x2aac85[_0x4bc4ff(0x1b8)]=_0x2825c9,await this[_0x4bc4ff(0x145)]['setIamPolicy']({'resource':_0x4bc4ff(0x139)+this[_0x4bc4ff(0x194)],'policy':_0x2aac85}),logger[_0x4bc4ff(0x18e)](_0xe1e71a['FifmV']);}async[a3_0x115dd8(0xd4)](_0xb0824e=a3_0x115dd8(0x17d),_0x23ad85=[a3_0x115dd8(0x17d)]){const _0x13cca0=a3_0x115dd8,_0x534d5a={};_0x534d5a[_0x13cca0(0x121)]=_0x13cca0(0x119),_0x534d5a[_0x13cca0(0x153)]=_0x13cca0(0x1d1),_0x534d5a['iqoof']='Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account';const _0x17882a=_0x534d5a,_0x30f276=_0x17882a[_0x13cca0(0x121)][_0x13cca0(0x1d6)]('|');let _0x5bc68b=0x0;while(!![]){switch(_0x30f276[_0x5bc68b++]){case'0':this['sendGCPInfoToHST'](this['rws']);continue;case'1':await this[_0x13cca0(0x123)]();continue;case'2':return!![];case'3':const _0x2faba5={};_0x2faba5[_0x13cca0(0x217)]=WS_EVENTS[_0x13cca0(0xfa)],_0x2faba5[_0x13cca0(0xea)]=_0x17882a[_0x13cca0(0x153)],this[_0x13cca0(0x10b)]['sendEventToBackend'](this[_0x13cca0(0x1ad)],_0x2faba5);continue;case'4':await this[_0x13cca0(0x209)](_0xb0824e,_0x23ad85);continue;case'5':logger[_0x13cca0(0x18e)](_0x17882a[_0x13cca0(0x1a5)]);continue;case'6':await this['updateWindowsNodeGroup']();continue;}break;}}async[a3_0x115dd8(0x209)](_0x13ea79=a3_0x115dd8(0x17d),_0x1f96bd=[a3_0x115dd8(0x17d)]){const _0x4ba110=a3_0x115dd8,_0x2b43ab={};_0x2b43ab[_0x4ba110(0x108)]=function(_0x32cb0c,_0x70c113){return _0x32cb0c-_0x70c113;},_0x2b43ab['DYNaE']=function(_0x4b97f2,_0x1a75d9){return _0x4b97f2===_0x1a75d9;},_0x2b43ab[_0x4ba110(0x1a9)]=function(_0x50f572,_0x5cbe89){return _0x50f572!==_0x5cbe89;},_0x2b43ab['aCChk']=_0x4ba110(0xe1),_0x2b43ab['NNOLu']=_0x4ba110(0x215),_0x2b43ab[_0x4ba110(0x218)]=_0x4ba110(0x13c),_0x2b43ab[_0x4ba110(0x10e)]=_0x4ba110(0xd3),_0x2b43ab[_0x4ba110(0x197)]=_0x4ba110(0x1a8),_0x2b43ab[_0x4ba110(0xd1)]=_0x4ba110(0x199),_0x2b43ab[_0x4ba110(0x15f)]=_0x4ba110(0x212),_0x2b43ab[_0x4ba110(0x1ec)]=_0x4ba110(0x20a),_0x2b43ab[_0x4ba110(0x1e4)]=function(_0x56442f,_0x5ed107){return _0x56442f*_0x5ed107;},_0x2b43ab['FUhll']=function(_0x321e26,_0x58b6fa){return _0x321e26!==_0x58b6fa;},_0x2b43ab['PdNfZ']='qBwmq',_0x2b43ab[_0x4ba110(0x198)]=_0x4ba110(0x191),_0x2b43ab[_0x4ba110(0x1c3)]=_0x4ba110(0x193),_0x2b43ab[_0x4ba110(0x202)]=_0x4ba110(0x1b4),_0x2b43ab['LHaZS']=_0x4ba110(0x12a),_0x2b43ab[_0x4ba110(0x13f)]=_0x4ba110(0x1f8),_0x2b43ab[_0x4ba110(0x1e7)]=_0x4ba110(0xed),_0x2b43ab[_0x4ba110(0x19a)]='Cluster\x20creation\x20failed';const _0x3dc7e4=_0x2b43ab;try{if(_0x3dc7e4[_0x4ba110(0x1a9)](_0x3dc7e4[_0x4ba110(0x147)],_0x3dc7e4['NNOLu'])){logger[_0x4ba110(0x18e)](_0x3dc7e4['WIctD']);let _0x27a935=await fs['readFileAsync'](path[_0x4ba110(0x109)](__dirname,'..',_0x3dc7e4['QVeQB'],_0x3dc7e4[_0x4ba110(0x197)],_0x3dc7e4[_0x4ba110(0xd1)]),_0x3dc7e4['qAFuh']);_0x27a935=JSON[_0x4ba110(0x104)](_0x27a935);let _0x113020=await fs[_0x4ba110(0x1bf)](path[_0x4ba110(0x109)](__dirname,'..',_0x3dc7e4[_0x4ba110(0x10e)],_0x3dc7e4[_0x4ba110(0x197)],_0x3dc7e4['GGYQQ']),_0x3dc7e4[_0x4ba110(0x15f)]);_0x113020=JSON[_0x4ba110(0x104)](_0x113020),_0x27a935[_0x4ba110(0x1f7)]=this[_0x4ba110(0x15a)],_0x27a935[_0x4ba110(0x1b1)][0x0][_0x4ba110(0x1ff)]['machineType']=global_registry['instanceType'],_0x27a935[_0x4ba110(0x1b1)][0x1][_0x4ba110(0x1ff)]['machineType']=global_registry[_0x4ba110(0x14f)],_0x27a935[_0x4ba110(0x1b1)][0x0][_0x4ba110(0x1ff)]['serviceAccount']=this[_0x4ba110(0x155)]+'@'+this[_0x4ba110(0x194)]+_0x4ba110(0x20d),_0x27a935[_0x4ba110(0x1b1)][0x1]['config'][_0x4ba110(0xe3)]=this[_0x4ba110(0x155)]+'@'+this['projectId']+_0x4ba110(0x20d),_0x27a935['nodePools'][0x0][_0x4ba110(0x208)][_0x4ba110(0xf5)]=global_registry['minNodes'],_0x27a935[_0x4ba110(0x1b1)][0x1]['autoscaling'][_0x4ba110(0xf5)]=0x0,_0x27a935['nodePools'][0x0][_0x4ba110(0x208)][_0x4ba110(0xe2)]=global_registry['maxNodes'],_0x27a935[_0x4ba110(0x1b1)][0x1][_0x4ba110(0x208)][_0x4ba110(0xe2)]=global_registry[_0x4ba110(0x1dc)],_0x27a935[_0x4ba110(0x114)]=global_registry[_0x4ba110(0x187)],_0x27a935[_0x4ba110(0x1d7)]=[_0x113020[global_registry[_0x4ba110(0x187)]][0x0]],_0x27a935['network']=_0x4ba110(0x139)+this[_0x4ba110(0x194)]+'/global/networks/'+_0x13ea79,_0x27a935[_0x4ba110(0x211)]=_0x4ba110(0x139)+this[_0x4ba110(0x194)]+_0x4ba110(0x150)+global_registry[_0x4ba110(0x187)]+'/subnetworks/'+_0x1f96bd[0x0];const _0x2cb691=await this[_0x4ba110(0x1e9)][_0x4ba110(0x209)]({'cluster':_0x27a935,'parent':'projects/'+this[_0x4ba110(0x194)]+_0x4ba110(0x1c9)+global_registry[_0x4ba110(0x187)]});await this[_0x4ba110(0x10b)][_0x4ba110(0x111)](_0x3dc7e4[_0x4ba110(0x1e4)](_0x3dc7e4[_0x4ba110(0x1e4)](0x7,0x3c),0x3e8));}else _0x1e31df[_0x4ba110(0x187)]=_0x19a634[_0x3dc7e4[_0x4ba110(0x108)](_0x2565b2,0x1)],this[_0x4ba110(0xe4)]();}catch(_0x7872a4){if(_0x3dc7e4[_0x4ba110(0x14d)](_0x3dc7e4[_0x4ba110(0xee)],_0x3dc7e4[_0x4ba110(0x198)])){const _0x3a9ef6=await this[_0x4ba110(0x18f)]();if(_0x3a9ef6){if(_0x3dc7e4[_0x4ba110(0x159)](_0x3dc7e4['feqUs'],_0x3dc7e4[_0x4ba110(0x202)]))return!![];else logger[_0x4ba110(0x18e)](_0x3dc7e4[_0x4ba110(0x15b)],_0x7872a4[_0x4ba110(0x167)]),await this[_0x4ba110(0x163)]();}else{if(_0x3dc7e4[_0x4ba110(0x159)](_0x3dc7e4[_0x4ba110(0x13f)],_0x3dc7e4[_0x4ba110(0x1e7)]))return _0x3dc7e4[_0x4ba110(0x159)](_0x480a00['gcpConfigSet'],!![]);else logger[_0x4ba110(0x18e)](_0x3dc7e4[_0x4ba110(0x19a)]);}throw _0x7872a4;}else return _0x5a1f45[_0x4ba110(0x1ae)][_0x4ba110(0x16b)][_0x4ba110(0x128)][0x0]['ip'];}}async[a3_0x115dd8(0x19c)](){const _0x1a9cdb=a3_0x115dd8;cp['execSync'](_0x1a9cdb(0xcf)+this['clusterName']+_0x1a9cdb(0xd8)+global_registry[_0x1a9cdb(0x187)]+'\x20--quiet\x20--user-output-enabled=false');}async[a3_0x115dd8(0x163)](_0x4f0a8a,_0x460a6e){const _0x58ab78=a3_0x115dd8,_0x4bc5ae={'ATObM':_0x58ab78(0x164),'KAkoi':function(_0x2cb254,_0x49dda2){return _0x2cb254===_0x49dda2;},'QTjaG':_0x58ab78(0x1e8),'rASVc':_0x58ab78(0xc2),'CYVEB':function(_0x58ea25,_0x465748){return _0x58ea25(_0x465748);},'eTHYS':function(_0x1e4fe1,_0x5b7eae){return _0x1e4fe1(_0x5b7eae);},'jckHr':'RUNNING','LniHP':function(_0x3eeda7,_0x4f3114){return _0x3eeda7===_0x4f3114;},'xNiHx':_0x58ab78(0x15d),'TmDYS':function(_0x1f7bcd,_0x1e30b1){return _0x1f7bcd!==_0x1e30b1;},'GIzEm':'AAIjO','xqRGh':_0x58ab78(0x113),'GoiuT':function(_0x56857d,_0x1683cb){return _0x56857d===_0x1683cb;},'erxMJ':_0x58ab78(0x1aa),'sfhVb':'lIRTu','iHvzS':'GKE\x20Cluster\x20deletion\x20failed'};try{if(_0x4bc5ae[_0x58ab78(0x158)](_0x4bc5ae[_0x58ab78(0x1a7)],_0x4bc5ae[_0x58ab78(0x1fe)]))return!![];else{await _0x4bc5ae[_0x58ab78(0x1a0)](deleteAgent,_0x4f0a8a),await _0x4bc5ae['eTHYS'](deleteRoutingDeps,_0x4f0a8a),logger[_0x58ab78(0x18e)](_0x58ab78(0x13e)+this[_0x58ab78(0x15a)]);const _0x366789=await this[_0x58ab78(0x1e9)][_0x58ab78(0x163)]({'name':_0x58ab78(0x139)+this[_0x58ab78(0x194)]+_0x58ab78(0x1c9)+global_registry[_0x58ab78(0x187)]+_0x58ab78(0x1d9)+this[_0x58ab78(0x15a)]});if(_0x4bc5ae[_0x58ab78(0x158)](_0x366789[0x0]?.[_0x58ab78(0x1ae)],_0x4bc5ae['jckHr'])||_0x4bc5ae[_0x58ab78(0x1d0)](_0x366789[0x0]?.[_0x58ab78(0x1ae)],_0x4bc5ae['xNiHx'])){if(_0x4bc5ae[_0x58ab78(0xf6)](_0x4bc5ae[_0x58ab78(0xd9)],_0x4bc5ae[_0x58ab78(0x117)]))return!![];else _0x301dbf[_0x58ab78(0x120)](_0x4bc5ae[_0x58ab78(0x17e)]),_0x529073[_0x58ab78(0x160)](0x1);}logger[_0x58ab78(0x18e)](_0x58ab78(0xcd));}}catch(_0x529cf0){if(_0x4bc5ae[_0x58ab78(0x1f4)](_0x4bc5ae['erxMJ'],_0x4bc5ae[_0x58ab78(0x17b)]))_0x509de4[_0x58ab78(0xba)](_0xec8ea);else{logger[_0x58ab78(0x18e)](_0x4bc5ae[_0x58ab78(0xef)]);throw _0x529cf0;}}}async['isVPCPresent'](_0x49babb){const _0x160528=a3_0x115dd8,_0x57a863={};_0x57a863[_0x160528(0x200)]=_0x160528(0x1eb),_0x57a863[_0x160528(0x14e)]=function(_0x240cc6,_0x44b3c3){return _0x240cc6!==_0x44b3c3;},_0x57a863[_0x160528(0x116)]=_0x160528(0x214),_0x57a863[_0x160528(0x1f0)]=function(_0x39f58c,_0x2bf5c8){return _0x39f58c>_0x2bf5c8;},_0x57a863['XNfFl']=function(_0x6ee609,_0x5998a0){return _0x6ee609===_0x5998a0;},_0x57a863[_0x160528(0x203)]=function(_0x3467f4,_0x2f07c4){return _0x3467f4!==_0x2f07c4;},_0x57a863[_0x160528(0xb4)]=_0x160528(0xc4),_0x57a863[_0x160528(0x152)]=_0x160528(0x126),_0x57a863['FKLDY']=_0x160528(0xb1);const _0x3eb357=_0x57a863;try{if(_0x3eb357[_0x160528(0x14e)](_0x3eb357['UwfGq'],_0x3eb357[_0x160528(0x116)]))return![];else{const _0x282b39={};_0x282b39[_0x160528(0x1b2)]=projectId,_0x282b39[_0x160528(0xc1)]=_0x49babb;const _0x2bd5af=await networkClient[_0x160528(0x11b)](_0x282b39);if(_0x3eb357[_0x160528(0x1f0)](_0x2bd5af[_0x160528(0x135)],0x0)&&_0x3eb357[_0x160528(0x14a)](_0x2bd5af[0x0][_0x160528(0x1f7)],_0x49babb)){if(_0x3eb357[_0x160528(0x203)](_0x3eb357[_0x160528(0xb4)],_0x3eb357[_0x160528(0xb4)]))_0x3a7166[_0x160528(0x187)]=_0x4a0b92[0x0],this[_0x160528(0xe4)]();else return!![];}}}catch(_0x56a0ee){if(_0x3eb357[_0x160528(0x203)](_0x3eb357[_0x160528(0x152)],_0x3eb357[_0x160528(0x204)]))return![];else _0x89ef9a[_0x160528(0x18e)](_0x3eb357[_0x160528(0x200)]);}return![];}async['isSubnetsValid'](_0x1f90d2,_0xf9125){const _0x2374c1=a3_0x115dd8,_0x13dc7e={};_0x13dc7e[_0x2374c1(0x140)]=function(_0x39da8e,_0x4fb375){return _0x39da8e===_0x4fb375;},_0x13dc7e[_0x2374c1(0x154)]=function(_0x9ab75c,_0x1aba86){return _0x9ab75c!==_0x1aba86;},_0x13dc7e[_0x2374c1(0x20c)]=_0x2374c1(0x1bb);const _0x5a2dc1=_0x13dc7e;try{const _0x18b32f={};_0x18b32f[_0x2374c1(0x1b2)]=projectId,_0x18b32f[_0x2374c1(0xc1)]=_0xf9125;const _0x5c02e2=await networkClient[_0x2374c1(0x11b)](_0x18b32f);for(const _0x1aeaeb of _0x5c02e2[0x0]['subnetworks']){const _0x47de81='https://www.googleapis.com/compute/v1/projects/'+this[_0x2374c1(0x194)]+_0x2374c1(0x150)+global_registry[_0x2374c1(0x187)]+_0x2374c1(0x1b6)+_0x1f90d2[0x0];if(_0x5a2dc1[_0x2374c1(0x140)](_0x47de81,_0x1aeaeb)){if(_0x5a2dc1['hOcjo'](_0x5a2dc1[_0x2374c1(0x20c)],_0x5a2dc1[_0x2374c1(0x20c)]))_0x277ed6[_0x2374c1(0x100)][_0x2374c1(0xba)](_0xa073a9);else return[!![],_0x1f90d2];}}}catch(_0x229fae){return logger[_0x2374c1(0x120)]('Cannot\x20find\x20subnets\x20'+_0x1f90d2+'.\x20Error:\x20'+_0x229fae),[![],[]];}return[![],[]];}async[a3_0x115dd8(0x1a6)](){const _0x49aeb6=a3_0x115dd8,_0x1488ab=await this[_0x49aeb6(0xb0)][_0x49aeb6(0x12c)]({'project':this[_0x49aeb6(0x194)]}),_0x361a8b={};_0x361a8b['username']=global_registry[_0x49aeb6(0xc3)],_0x361a8b[_0x49aeb6(0x1fb)]=global_registry['bstackAccesskey'],_0x361a8b[_0x49aeb6(0x12e)]=GCP,_0x361a8b[_0x49aeb6(0x100)]=[];const _0x2ce260=_0x361a8b;for(const _0x5b7d30 of _0x1488ab){_0x2ce260['vpcInfo']['push'](_0x5b7d30);}const _0x2d38a8={};_0x2d38a8[_0x49aeb6(0x217)]=WS_EVENTS['RESOURCES'],_0x2d38a8[_0x49aeb6(0xea)]=_0x2ce260,this[_0x49aeb6(0x10b)][_0x49aeb6(0x168)](this[_0x49aeb6(0x1ad)],_0x2d38a8);}async[a3_0x115dd8(0xe4)](){const _0x47b2df=a3_0x115dd8,_0x48f6e9={'DfrQU':function(_0x51dcf9,_0x2af573,_0x3a2e19){return _0x51dcf9(_0x2af573,_0x3a2e19);},'BkDir':_0x47b2df(0x1d5),'MBKjP':_0x47b2df(0x1c4),'OzWPT':function(_0x4e7e4c,_0x29d3f1,_0x3feb6e){return _0x4e7e4c(_0x29d3f1,_0x3feb6e);}},_0x1fd69c=_0x47b2df(0x137)+AG_API_URL+_0x47b2df(0x207),_0x3596b8={};_0x3596b8['profileId']=global_registry['gridProfileId'];const _0x47c4ca={};_0x47c4ca['newRegion']=global_registry[_0x47b2df(0x187)];const _0x436607={'searchParams':_0x3596b8,'json':_0x47c4ca,'headers':_0x48f6e9[_0x47b2df(0x11a)](getAuthHeader,global_registry[_0x47b2df(0xc3)],global_registry[_0x47b2df(0xdf)]),'method':_0x48f6e9[_0x47b2df(0x151)],'responseType':_0x48f6e9['MBKjP']},_0x13c9cd=await _0x48f6e9['OzWPT'](got,_0x1fd69c,_0x436607);}}const a3_0x211755={};a3_0x211755[a3_0x115dd8(0x1b7)]=GoogleCloudProvider,module[a3_0x115dd8(0xf4)]=a3_0x211755;
@@ -1 +1 @@
1
- function a4_0x58c8(_0x31698f,_0x4dd6dd){const _0x50cedf=a4_0x50ce();return a4_0x58c8=function(_0x58c802,_0x17f307){_0x58c802=_0x58c802-0xb1;let _0x2f5140=_0x50cedf[_0x58c802];return _0x2f5140;},a4_0x58c8(_0x31698f,_0x4dd6dd);}const a4_0x396e26=a4_0x58c8;function a4_0x50ce(){const _0x3ff069=['123597EkclUH','208AqqOjq','174905oSgxgn','81757rpcquw','46353oIeBXH','exit','6771028QuUWDu','42qYncCd','2bhjlUY','68SLWcZG','getCloudProviderObject','2423050TCAevJ','3492550AUAVXv','Unknown\x20cloud\x20provider\x20found\x20-\x20','./Azure'];a4_0x50ce=function(){return _0x3ff069;};return a4_0x50ce();}(function(_0x81694f,_0x404047){const _0x369913=a4_0x58c8,_0x2f23a0=_0x81694f();while(!![]){try{const _0x256e4c=-parseInt(_0x369913(0xbb))/0x1*(parseInt(_0x369913(0xb1))/0x2)+parseInt(_0x369913(0xbc))/0x3*(-parseInt(_0x369913(0xb2))/0x4)+parseInt(_0x369913(0xba))/0x5*(-parseInt(_0x369913(0xbf))/0x6)+parseInt(_0x369913(0xb4))/0x7+-parseInt(_0x369913(0xb9))/0x8*(-parseInt(_0x369913(0xb8))/0x9)+-parseInt(_0x369913(0xb5))/0xa+parseInt(_0x369913(0xbe))/0xb;if(_0x256e4c===_0x404047)break;else _0x2f23a0['push'](_0x2f23a0['shift']());}catch(_0x520e59){_0x2f23a0['push'](_0x2f23a0['shift']());}}}(a4_0x50ce,0x5cd32));const {AWSCloudProvider}=require('./AWS'),{AzureCloudProvider}=require(a4_0x396e26(0xb7)),{GoogleCloudProvider}=require('./GoogleCloudProvider'),{AWS,AZURE,GCP}=require('../config/constants');exports[a4_0x396e26(0xb3)]=(_0x3aabc0,_0x1d64ab,_0x54e63e,_0x432b9c,_0x4a84da)=>{const _0x3e0d2a=a4_0x396e26;switch(_0x3aabc0){case AWS:return new AWSCloudProvider(_0x1d64ab,_0x54e63e,_0x432b9c,_0x4a84da);case GCP:return new GoogleCloudProvider(_0x1d64ab,_0x54e63e,_0x432b9c,_0x4a84da);default:console['error'](_0x3e0d2a(0xb6)+_0x3aabc0),process[_0x3e0d2a(0xbd)](0x1);}};
1
+ function a4_0x1451(_0x3fa66d,_0x5b9224){const _0x1d866a=a4_0x1d86();return a4_0x1451=function(_0x1451cc,_0x2b6672){_0x1451cc=_0x1451cc-0x6d;let _0x6231cb=_0x1d866a[_0x1451cc];return _0x6231cb;},a4_0x1451(_0x3fa66d,_0x5b9224);}const a4_0x4ed6db=a4_0x1451;(function(_0x39011b,_0x365de2){const _0x4eefc7=a4_0x1451,_0x38a0ea=_0x39011b();while(!![]){try{const _0x5257bf=parseInt(_0x4eefc7(0x79))/0x1*(-parseInt(_0x4eefc7(0x7b))/0x2)+parseInt(_0x4eefc7(0x6f))/0x3*(parseInt(_0x4eefc7(0x78))/0x4)+-parseInt(_0x4eefc7(0x73))/0x5+-parseInt(_0x4eefc7(0x75))/0x6+parseInt(_0x4eefc7(0x72))/0x7+parseInt(_0x4eefc7(0x70))/0x8+parseInt(_0x4eefc7(0x6e))/0x9;if(_0x5257bf===_0x365de2)break;else _0x38a0ea['push'](_0x38a0ea['shift']());}catch(_0x1a8c30){_0x38a0ea['push'](_0x38a0ea['shift']());}}}(a4_0x1d86,0x8b34f));function a4_0x1d86(){const _0x4c89c1=['2459331iBYMJG','5427195FUGEdx','../config/constants','3413838OCnBYa','./GoogleCloudProvider','./Azure','546196wIGPgb','115UIbTKI','getCloudProviderObject','10402RilFfy','./AWS','15247971GUHYrX','3EESyGY','5124936GKPCzY','Unknown\x20cloud\x20provider\x20found\x20-\x20'];a4_0x1d86=function(){return _0x4c89c1;};return a4_0x1d86();}const {AWSCloudProvider}=require(a4_0x4ed6db(0x6d)),{AzureCloudProvider}=require(a4_0x4ed6db(0x77)),{GoogleCloudProvider}=require(a4_0x4ed6db(0x76)),{AWS,AZURE,GCP}=require(a4_0x4ed6db(0x74));exports[a4_0x4ed6db(0x7a)]=(_0x6ab457,_0x26eaa1,_0x2f5c0c,_0x350d34,_0x51a300)=>{const _0x45cfe0=a4_0x4ed6db;switch(_0x6ab457){case AWS:return new AWSCloudProvider(_0x26eaa1,_0x2f5c0c,_0x350d34,_0x51a300);case GCP:return new GoogleCloudProvider(_0x26eaa1,_0x2f5c0c,_0x350d34,_0x51a300);default:console['error'](_0x45cfe0(0x71)+_0x6ab457),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a5_0x1b4043=a5_0x9ba1;function a5_0x3b88(){const _0x86985d=['qmWtZ','epilogue','stringify','nSPqj','TnVIN','../config/constants','adAdd','error','zhCCU','IbfrP','ERROR','BOMAE','fpTHC','23943892wezBau','core:','got','log','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','name','btGAs','exit','nkFQa','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','veqRA','906316GnalQd','invalid-selection','stack','parse','4718655FkxFVX','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','requestId','4845348bdCUqJ','PUT','cODCy','Daadr','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','syIaW','lCTct','handler','../utils/instrumentationUtils','ImCvb','ckylu','readFileSync','invalid-input','lUoJz','hVKiL','JdZpQ','jZOIX','qVGcX','init-not-called','list','UXUux','recommendCommands','https://','uyscm','QwSha','uuid','mfwAG','3221268qOCDMb','existsSync','profileId','OVLkr','Failed\x20to\x20configure\x20resources!\x20Error:\x20','../utils/userInput','nOijh','ZDyTB','argv','OeDMd','vSumL','Tmcpx','1727901WmMGTJ','xvcdh','Zrbpb','Browserstack','toLowerCase','aZpyX','1188639SkWHvG','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','statusCode','vmJZf','builder','body','INFO','strict','username','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','unknown-error','GET','\x20\x20username:\x20','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','active','wthrT','vlFPc','configure','QLHtU','command'];a5_0x3b88=function(){return _0x86985d;};return a5_0x3b88();}(function(_0x2c7235,_0x5d2b60){const _0x59704e=a5_0x9ba1,_0x53d100=_0x2c7235();while(!![]){try{const _0xc7c11=-parseInt(_0x59704e(0x216))/0x1+-parseInt(_0x59704e(0x1e8))/0x2+parseInt(_0x59704e(0x21c))/0x3+-parseInt(_0x59704e(0x20a))/0x4+parseInt(_0x59704e(0x1ec))/0x5+-parseInt(_0x59704e(0x1ef))/0x6+parseInt(_0x59704e(0x23f))/0x7;if(_0xc7c11===_0x5d2b60)break;else _0x53d100['push'](_0x53d100['shift']());}catch(_0x35814a){_0x53d100['push'](_0x53d100['shift']());}}}(a5_0x3b88,0xebfa6));const fs=require('fs'),got=require(a5_0x1b4043(0x241)),{v4:uuidv4}=require(a5_0x1b4043(0x208)),{inputConfirmation,closeInput}=require(a5_0x1b4043(0x20f)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x1b4043(0x237)),{getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a5_0x1b4043(0x1f7));function a5_0x9ba1(_0x135354,_0x277ccf){const _0x3b885d=a5_0x3b88();return a5_0x9ba1=function(_0x9ba1d6,_0xf25048){_0x9ba1d6=_0x9ba1d6-0x1e7;let _0x101134=_0x3b885d[_0x9ba1d6];return _0x101134;},a5_0x9ba1(_0x135354,_0x277ccf);}exports[a5_0x1b4043(0x231)]='configure',exports['desc']=a5_0x1b4043(0x225),exports[a5_0x1b4043(0x220)]=function(_0x16fe2b){const _0x4adb2d=a5_0x1b4043,_0x504e90={};_0x504e90[_0x4adb2d(0x230)]='help';const _0x224e88=_0x504e90;return _0x16fe2b['usage'](HELP_HEADER_MESSAGE[_0x4adb2d(0x22f)])[_0x4adb2d(0x233)](HELP_FOOTER_MESSAGE)['help'](_0x224e88[_0x4adb2d(0x230)])[_0x4adb2d(0x204)]()[_0x4adb2d(0x223)]()[_0x4adb2d(0x212)];},exports[a5_0x1b4043(0x1f6)]=async function(_0x540d1b){const _0x10fc63=a5_0x1b4043,_0x309f02={'nSPqj':function(_0x5180c3){return _0x5180c3();},'wthrT':function(_0x20ca3b){return _0x20ca3b();},'IbfrP':_0x10fc63(0x229),'aZpyX':function(_0x3f9ba0,_0x38a7b1,_0x35308f,_0x106d2a,_0x5cd1e6,_0xe489e0,_0xd35087){return _0x3f9ba0(_0x38a7b1,_0x35308f,_0x106d2a,_0x5cd1e6,_0xe489e0,_0xd35087);},'cODCy':'configure-called','CsVnQ':_0x10fc63(0x201),'mfwAG':function(_0x250400,_0x48b49c,_0x8a967f,_0x16c8f5,_0x317ddd,_0x3e1e16,_0x157942){return _0x250400(_0x48b49c,_0x8a967f,_0x16c8f5,_0x317ddd,_0x3e1e16,_0x157942);},'uyscm':_0x10fc63(0x227),'xvcdh':function(_0x27037b,_0x36454c,_0x25edfc){return _0x27037b(_0x36454c,_0x25edfc);},'Zrbpb':function(_0x54a3e8,_0x54097f,_0x47651d){return _0x54a3e8(_0x54097f,_0x47651d);},'OVLkr':function(_0x3b6124,_0x31f5af){return _0x3b6124!==_0x31f5af;},'TnVIN':function(_0x2b8b7e,_0x471c19){return _0x2b8b7e===_0x471c19;},'btGAs':'\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','Tmcpx':_0x10fc63(0x240),'QwSha':function(_0x38716c,_0x20b80e){return _0x38716c(_0x20b80e);},'Daadr':_0x10fc63(0x22a),'UXUux':function(_0x174302,_0x1cdcc3){return _0x174302===_0x1cdcc3;},'ckylu':_0x10fc63(0x243),'ImCvb':_0x10fc63(0x1fb),'BOMAE':'What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','advDR':function(_0x39295e,_0x47f863){return _0x39295e<_0x47f863;},'jZOIX':function(_0x5755a2,_0x29f913){return _0x5755a2+_0x29f913;},'adAdd':_0x10fc63(0x1ed),'vlFPc':function(_0x20353a,_0x4e3372){return _0x20353a(_0x4e3372);},'ZDyTB':function(_0x2082d1,_0x2c7ac0){return _0x2082d1<=_0x2c7ac0;},'hVKiL':function(_0x5701fd,_0x34052d){return _0x5701fd>_0x34052d;},'nOijh':_0x10fc63(0x1e9),'vSumL':function(_0x3b90e5,_0x32a44e){return _0x3b90e5-_0x32a44e;},'syIaW':_0x10fc63(0x1f0),'veqRA':'json','lUoJz':function(_0x13f4bb,_0x2c8b54,_0xc3d76a){return _0x13f4bb(_0x2c8b54,_0xc3d76a);},'faywx':function(_0x423c65,_0x522d66){return _0x423c65!==_0x522d66;},'lCTct':function(_0x48157d,_0x4d310d){return _0x48157d===_0x4d310d;},'qmWtZ':'Updated\x20default\x20Grid\x20Profile\x20successfully','fpTHC':'unauthorised','zhCCU':'server-error','OeDMd':function(_0x56bd22,_0x581883){return _0x56bd22===_0x581883;},'nkFQa':function(_0x312ab0,_0x540605,_0x11484e,_0x212b4c,_0x5dd19c,_0x2b7869,_0x34ae95){return _0x312ab0(_0x540605,_0x11484e,_0x212b4c,_0x5dd19c,_0x2b7869,_0x34ae95);},'JdZpQ':function(_0x1f54d0,_0x4b5145,_0x47fb88,_0x3d0cb8,_0x5aab35,_0xa1ae31,_0x4fb2de){return _0x1f54d0(_0x4b5145,_0x47fb88,_0x3d0cb8,_0x5aab35,_0xa1ae31,_0x4fb2de);},'vmJZf':function(_0x5e6464,_0xa11983,_0x25642d,_0x10782a,_0x3fb62e,_0x2d3155,_0x23a01b){return _0x5e6464(_0xa11983,_0x25642d,_0x10782a,_0x3fb62e,_0x2d3155,_0x23a01b);},'qVGcX':_0x10fc63(0x226)};try{global_registry[_0x10fc63(0x1ee)]=_0x309f02[_0x10fc63(0x235)](uuidv4);const _0x574716=_0x10fc63(0x205)+AG_API_URL+'/packages/cli/configure';!fs[_0x10fc63(0x20b)](_0x309f02['wthrT'](getCredentialsPath))&&(console[_0x10fc63(0x239)](_0x309f02[_0x10fc63(0x23b)]),await _0x309f02[_0x10fc63(0x21b)](sendInstrumentationEvent,_0x540d1b,_0x309f02['cODCy'],messageTypes['ERROR'],_0x309f02['CsVnQ'],null,_0x540d1b),process['exit'](0x1));await _0x309f02['mfwAG'](sendInstrumentationEvent,_0x540d1b,_0x309f02[_0x10fc63(0x1f1)],messageTypes[_0x10fc63(0x222)],null,null,_0x540d1b);const _0xa56a48=JSON['parse'](fs[_0x10fc63(0x1fa)](_0x309f02[_0x10fc63(0x235)](getCredentialsPath))),_0x116f49={'method':_0x309f02[_0x10fc63(0x206)],'headers':_0x309f02[_0x10fc63(0x217)](getAuthHeader,_0xa56a48[_0x10fc63(0x219)]['username'],_0xa56a48[_0x10fc63(0x219)]['password'])},_0x134440=await _0x309f02[_0x10fc63(0x218)](got,_0x574716,_0x116f49);if(_0x309f02[_0x10fc63(0x20d)](_0x134440,null)&&_0x309f02['OVLkr'](_0x134440,undefined)&&_0x309f02['TnVIN'](_0x134440['statusCode'],0xc8)){const _0x1f8682=JSON[_0x10fc63(0x1eb)](_0x134440[_0x10fc63(0x221)]);console[_0x10fc63(0x242)](_0x309f02[_0x10fc63(0x245)]),console['log'](_0x309f02[_0x10fc63(0x215)]),console[_0x10fc63(0x242)](_0x10fc63(0x228)+_0xa56a48[_0x10fc63(0x219)][_0x10fc63(0x224)]),console[_0x10fc63(0x242)]('\x20\x20grid-profile:\x20'+_0x1f8682[_0x10fc63(0x22c)][_0x10fc63(0x244)]);const _0x4e24ae=await _0x309f02[_0x10fc63(0x207)](inputConfirmation,_0x309f02[_0x10fc63(0x1f2)]);(_0x309f02[_0x10fc63(0x236)](_0x4e24ae,undefined)||_0x309f02['UXUux'](_0x4e24ae,null)||!(_0x309f02[_0x10fc63(0x236)](_0x4e24ae[_0x10fc63(0x21a)](),'y')||_0x309f02[_0x10fc63(0x203)](_0x4e24ae[_0x10fc63(0x21a)](),'n')))&&(console[_0x10fc63(0x239)](_0x309f02[_0x10fc63(0x1f9)]),await _0x309f02[_0x10fc63(0x21b)](sendInstrumentationEvent,_0x540d1b,_0x309f02['cODCy'],messageTypes[_0x10fc63(0x23c)],_0x309f02[_0x10fc63(0x1f8)],null,_0x540d1b),process[_0x10fc63(0x246)](0x1));_0x309f02['UXUux'](_0x4e24ae['toLowerCase'](),'n')&&process[_0x10fc63(0x246)](0x0);console[_0x10fc63(0x242)](_0x309f02[_0x10fc63(0x23d)]);const _0x49c596=_0x1f8682[_0x10fc63(0x202)]['length'];for(let _0x358eec=0x0;_0x309f02['advDR'](_0x358eec,_0x49c596);_0x358eec+=0x1){console[_0x10fc63(0x242)]('['+_0x309f02[_0x10fc63(0x1ff)](_0x358eec,0x1)+']\x20'+_0x1f8682['list'][_0x358eec][_0x10fc63(0x244)]);}const _0x2ef425=await _0x309f02['QwSha'](inputConfirmation,_0x309f02[_0x10fc63(0x238)]),_0x5d6bef=_0x309f02['QwSha'](Number,_0x2ef425);(_0x309f02[_0x10fc63(0x22e)](isNaN,_0x5d6bef)||_0x309f02[_0x10fc63(0x211)](_0x5d6bef,0x0)||_0x309f02[_0x10fc63(0x1fd)](_0x5d6bef,_0x49c596))&&(console[_0x10fc63(0x239)](_0x309f02[_0x10fc63(0x1f9)]),await _0x309f02[_0x10fc63(0x21b)](sendInstrumentationEvent,_0x540d1b,_0x309f02[_0x10fc63(0x1f1)],messageTypes[_0x10fc63(0x23c)],_0x309f02[_0x10fc63(0x210)],null,_0x540d1b),process[_0x10fc63(0x246)](0x1));_0x309f02[_0x10fc63(0x22d)](closeInput);const _0x2a869c=_0x1f8682['list'][_0x309f02[_0x10fc63(0x214)](_0x5d6bef,0x1)]['id'],_0x3d1cc3={};_0x3d1cc3[_0x10fc63(0x20c)]=_0x2a869c;const _0x52dcb9={'method':_0x309f02[_0x10fc63(0x1f4)],'headers':_0x309f02[_0x10fc63(0x217)](getAuthHeader,_0xa56a48[_0x10fc63(0x219)][_0x10fc63(0x224)],_0xa56a48['Browserstack']['password']),'json':_0x3d1cc3,'responseType':_0x309f02[_0x10fc63(0x1e7)]},_0x49755d=await _0x309f02[_0x10fc63(0x1fc)](got,_0x574716,_0x52dcb9);_0x309f02['OVLkr'](_0x49755d,null)&&_0x309f02['faywx'](_0x49755d,undefined)&&_0x309f02[_0x10fc63(0x1f5)](_0x49755d['statusCode'],0xc8)&&(console[_0x10fc63(0x242)](_0x309f02[_0x10fc63(0x232)]),process[_0x10fc63(0x246)](0x0)),_0x309f02['lCTct'](_0x49755d['statusCode'],0x191)&&(console['error'](_0x10fc63(0x1f3)),await _0x309f02[_0x10fc63(0x209)](sendInstrumentationEvent,_0x540d1b,_0x309f02[_0x10fc63(0x1f1)],messageTypes[_0x10fc63(0x23c)],_0x309f02[_0x10fc63(0x23e)],null,_0x540d1b),process['exit'](0x1)),console['error'](_0x10fc63(0x21d)+JSON[_0x10fc63(0x234)](_0x49755d)),await _0x309f02[_0x10fc63(0x21b)](sendInstrumentationEvent,_0x540d1b,_0x309f02[_0x10fc63(0x1f1)],messageTypes[_0x10fc63(0x23c)],_0x309f02[_0x10fc63(0x23a)],_0x49755d,_0x540d1b),process[_0x10fc63(0x246)](0x1);}_0x309f02[_0x10fc63(0x213)](_0x134440[_0x10fc63(0x21e)],0x191)&&(console[_0x10fc63(0x239)](_0x10fc63(0x248)),await _0x309f02[_0x10fc63(0x247)](sendInstrumentationEvent,_0x540d1b,_0x309f02['cODCy'],messageTypes[_0x10fc63(0x23c)],_0x309f02[_0x10fc63(0x23e)],null,_0x540d1b),process[_0x10fc63(0x246)](0x1)),console[_0x10fc63(0x239)](_0x10fc63(0x22b)+JSON['stringify'](_0x134440)),await _0x309f02[_0x10fc63(0x1fe)](sendInstrumentationEvent,_0x540d1b,_0x309f02[_0x10fc63(0x1f1)],messageTypes[_0x10fc63(0x23c)],_0x309f02['zhCCU'],_0x134440,_0x540d1b),process[_0x10fc63(0x246)](0x1);}catch(_0x24444e){console[_0x10fc63(0x239)](_0x10fc63(0x20e)+_0x24444e[_0x10fc63(0x1ea)]),await _0x309f02[_0x10fc63(0x21f)](sendInstrumentationEvent,_0x540d1b,_0x309f02['cODCy'],messageTypes['ERROR'],_0x309f02[_0x10fc63(0x200)],_0x24444e,_0x540d1b),process[_0x10fc63(0x246)](0x1);}};
1
+ const a5_0x77f325=a5_0x1e07;function a5_0x1e07(_0x3131fa,_0x1348d5){const _0x40ac0a=a5_0x40ac();return a5_0x1e07=function(_0x1e070b,_0x465c22){_0x1e070b=_0x1e070b-0x1c9;let _0xd68e92=_0x40ac0a[_0x1e070b];return _0xd68e92;},a5_0x1e07(_0x3131fa,_0x1348d5);}(function(_0x4bdb91,_0x1cf062){const _0x55d919=a5_0x1e07,_0x5f02f4=_0x4bdb91();while(!![]){try{const _0x289c35=parseInt(_0x55d919(0x1f5))/0x1*(parseInt(_0x55d919(0x1cc))/0x2)+-parseInt(_0x55d919(0x20a))/0x3+-parseInt(_0x55d919(0x21b))/0x4*(parseInt(_0x55d919(0x20e))/0x5)+parseInt(_0x55d919(0x222))/0x6*(parseInt(_0x55d919(0x1f3))/0x7)+-parseInt(_0x55d919(0x1f9))/0x8*(-parseInt(_0x55d919(0x1fe))/0x9)+-parseInt(_0x55d919(0x232))/0xa+parseInt(_0x55d919(0x20d))/0xb;if(_0x289c35===_0x1cf062)break;else _0x5f02f4['push'](_0x5f02f4['shift']());}catch(_0x367044){_0x5f02f4['push'](_0x5f02f4['shift']());}}}(a5_0x40ac,0xb6089));const fs=require('fs'),got=require(a5_0x77f325(0x212)),{v4:uuidv4}=require(a5_0x77f325(0x1d8)),{inputConfirmation,closeInput}=require(a5_0x77f325(0x208)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x77f325(0x1e2)),{getCredentialsPath,getAuthHeader}=require(a5_0x77f325(0x215)),{sendInstrumentationEvent}=require(a5_0x77f325(0x22e));exports[a5_0x77f325(0x1c9)]=a5_0x77f325(0x21a),exports['desc']=a5_0x77f325(0x1e6),exports['builder']=function(_0x307a6b){const _0x3fe3e0=a5_0x77f325,_0x2bff91={};_0x2bff91['XGPpp']='help';const _0x4b11f0=_0x2bff91;return _0x307a6b[_0x3fe3e0(0x225)](HELP_HEADER_MESSAGE[_0x3fe3e0(0x21a)])[_0x3fe3e0(0x1cd)](HELP_FOOTER_MESSAGE)[_0x3fe3e0(0x202)](_0x4b11f0[_0x3fe3e0(0x1e5)])[_0x3fe3e0(0x213)]()['strict']()[_0x3fe3e0(0x1e7)];},exports[a5_0x77f325(0x206)]=async function(_0x4f6e01){const _0x4ea930=a5_0x77f325,_0x577238={'RQqmR':function(_0x41f8c2){return _0x41f8c2();},'mSkPr':_0x4ea930(0x214),'LxoFn':function(_0x1ed9d0,_0x4b332e,_0x3dd8e0,_0x466bb4,_0xbaba39,_0x35d7fa,_0x262bb4){return _0x1ed9d0(_0x4b332e,_0x3dd8e0,_0x466bb4,_0xbaba39,_0x35d7fa,_0x262bb4);},'iWLVN':'configure-called','sqerk':_0x4ea930(0x20f),'XXfLr':function(_0x5904eb){return _0x5904eb();},'obDNp':_0x4ea930(0x20c),'lnOaf':function(_0x448c8d,_0x2baf04,_0xfc94d1){return _0x448c8d(_0x2baf04,_0xfc94d1);},'RqtaK':function(_0xa73e73,_0x3067aa){return _0xa73e73!==_0x3067aa;},'VghoN':function(_0x438612,_0xef47f6){return _0x438612!==_0xef47f6;},'VQmqx':function(_0x1c8cdd,_0x3e3d7d){return _0x1c8cdd===_0x3e3d7d;},'Egvaa':_0x4ea930(0x217),'lpIbi':'core:','KfhqQ':function(_0x34916b,_0x1fa0eb){return _0x34916b(_0x1fa0eb);},'EGDfU':_0x4ea930(0x1d0),'QNHiN':function(_0x1c3de3,_0x3380f0){return _0x1c3de3===_0x3380f0;},'qotST':_0x4ea930(0x1fc),'CFUMB':'invalid-input','sClQd':function(_0x38255c,_0xad7c06){return _0x38255c===_0xad7c06;},'aYOLz':_0x4ea930(0x1dc),'Ppfqz':function(_0x5bc1a8,_0x41f455){return _0x5bc1a8<_0x41f455;},'esxzi':function(_0x4e08e3,_0x49dfd5){return _0x4e08e3+_0x49dfd5;},'Radys':function(_0x2437be,_0x5c1606){return _0x2437be(_0x5c1606);},'sLfrF':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','JLcPV':function(_0x31d6b3,_0x583faa){return _0x31d6b3<=_0x583faa;},'Ehmbm':function(_0x52ca87,_0x429b57){return _0x52ca87>_0x429b57;},'dESHw':function(_0x4745a6,_0x38065b,_0x268b94,_0x57939b,_0x6775f3,_0x57c736,_0x27b615){return _0x4745a6(_0x38065b,_0x268b94,_0x57939b,_0x6775f3,_0x57c736,_0x27b615);},'mKlSc':_0x4ea930(0x21d),'qAxQW':function(_0x39500c){return _0x39500c();},'HvTae':function(_0x46374e,_0x19574a){return _0x46374e-_0x19574a;},'hfyGU':_0x4ea930(0x209),'muLLC':function(_0xe80017,_0x41c909,_0x2003a5){return _0xe80017(_0x41c909,_0x2003a5);},'OsDrY':_0x4ea930(0x1d5),'BISlW':function(_0x3e1b37,_0x3dd7f2){return _0x3e1b37!==_0x3dd7f2;},'YuJOp':function(_0x5c4768,_0xd03bf9){return _0x5c4768===_0xd03bf9;},'UXSwA':'Updated\x20default\x20Grid\x20Profile\x20successfully','WdvTV':function(_0x3e731f,_0x159f83){return _0x3e731f===_0x159f83;},'oXOQC':function(_0x2fede3,_0x2a1995,_0x588949,_0x3f7b81,_0x8c0c5a,_0xbeba18,_0x2ce421){return _0x2fede3(_0x2a1995,_0x588949,_0x3f7b81,_0x8c0c5a,_0xbeba18,_0x2ce421);},'FimvP':_0x4ea930(0x1e4),'wTSlW':function(_0x3b5c7f,_0x883ef5,_0x516876,_0x6adf6e,_0x299c62,_0x13a905,_0x12f3a0){return _0x3b5c7f(_0x883ef5,_0x516876,_0x6adf6e,_0x299c62,_0x13a905,_0x12f3a0);},'rGEho':_0x4ea930(0x201),'FkEdA':function(_0x41f24c,_0x395689){return _0x41f24c===_0x395689;},'JlySi':function(_0x24caba,_0x10e6fd,_0x3d0832,_0x3328c4,_0x264fdb,_0x4fae6d,_0xfe86ba){return _0x24caba(_0x10e6fd,_0x3d0832,_0x3328c4,_0x264fdb,_0x4fae6d,_0xfe86ba);},'qMHNz':function(_0x3f5e59,_0x549293,_0x144ab1,_0xc220e,_0x2339ae,_0x54cbcc,_0x432891){return _0x3f5e59(_0x549293,_0x144ab1,_0xc220e,_0x2339ae,_0x54cbcc,_0x432891);},'RBipp':_0x4ea930(0x216)};try{global_registry[_0x4ea930(0x1db)]=_0x577238[_0x4ea930(0x1ea)](uuidv4);const _0x39ba6e=_0x4ea930(0x231)+AG_API_URL+_0x4ea930(0x1e8);!fs[_0x4ea930(0x1d6)](_0x577238[_0x4ea930(0x1ea)](getCredentialsPath))&&(console[_0x4ea930(0x1fd)](_0x577238[_0x4ea930(0x1d7)]),await _0x577238[_0x4ea930(0x220)](sendInstrumentationEvent,_0x4f6e01,_0x577238['iWLVN'],messageTypes[_0x4ea930(0x1ed)],_0x577238[_0x4ea930(0x1eb)],null,_0x4f6e01),process[_0x4ea930(0x22f)](0x1));await _0x577238['LxoFn'](sendInstrumentationEvent,_0x4f6e01,_0x577238[_0x4ea930(0x22a)],messageTypes[_0x4ea930(0x1ee)],null,null,_0x4f6e01);const _0x1bc649=JSON[_0x4ea930(0x1ff)](fs[_0x4ea930(0x203)](_0x577238[_0x4ea930(0x1f0)](getCredentialsPath))),_0x5a229c={'method':_0x577238[_0x4ea930(0x221)],'headers':_0x577238[_0x4ea930(0x1fb)](getAuthHeader,_0x1bc649[_0x4ea930(0x205)][_0x4ea930(0x1f1)],_0x1bc649[_0x4ea930(0x205)]['password'])},_0x4b0194=await _0x577238['lnOaf'](got,_0x39ba6e,_0x5a229c);if(_0x577238['RqtaK'](_0x4b0194,null)&&_0x577238[_0x4ea930(0x1f8)](_0x4b0194,undefined)&&_0x577238[_0x4ea930(0x1d2)](_0x4b0194[_0x4ea930(0x1f4)],0xc8)){const _0x1ed8b1=JSON[_0x4ea930(0x1ff)](_0x4b0194[_0x4ea930(0x1ec)]);console[_0x4ea930(0x1d3)](_0x577238[_0x4ea930(0x1f2)]),console[_0x4ea930(0x1d3)](_0x577238[_0x4ea930(0x1e1)]),console[_0x4ea930(0x1d3)](_0x4ea930(0x1ef)+_0x1bc649[_0x4ea930(0x205)][_0x4ea930(0x1f1)]),console[_0x4ea930(0x1d3)](_0x4ea930(0x1f6)+_0x1ed8b1['active']['name']);const _0x2b57ad=await _0x577238[_0x4ea930(0x1d1)](inputConfirmation,_0x577238['EGDfU']);(_0x577238[_0x4ea930(0x1d2)](_0x2b57ad,undefined)||_0x577238[_0x4ea930(0x1d2)](_0x2b57ad,null)||!(_0x577238[_0x4ea930(0x1d2)](_0x2b57ad[_0x4ea930(0x223)](),'y')||_0x577238[_0x4ea930(0x226)](_0x2b57ad[_0x4ea930(0x223)](),'n')))&&(console['error'](_0x577238[_0x4ea930(0x1da)]),await _0x577238['LxoFn'](sendInstrumentationEvent,_0x4f6e01,_0x577238[_0x4ea930(0x22a)],messageTypes[_0x4ea930(0x1ed)],_0x577238['CFUMB'],null,_0x4f6e01),process[_0x4ea930(0x22f)](0x1));_0x577238['sClQd'](_0x2b57ad[_0x4ea930(0x223)](),'n')&&process[_0x4ea930(0x22f)](0x0);console[_0x4ea930(0x1d3)](_0x577238['aYOLz']);const _0x106be5=_0x1ed8b1[_0x4ea930(0x1cf)]['length'];for(let _0x34a804=0x0;_0x577238[_0x4ea930(0x1fa)](_0x34a804,_0x106be5);_0x34a804+=0x1){console[_0x4ea930(0x1d3)]('['+_0x577238[_0x4ea930(0x224)](_0x34a804,0x1)+']\x20'+_0x1ed8b1[_0x4ea930(0x1cf)][_0x34a804][_0x4ea930(0x1e3)]);}const _0x5b35ca=await _0x577238['Radys'](inputConfirmation,_0x577238[_0x4ea930(0x1df)]),_0xec67b4=_0x577238[_0x4ea930(0x229)](Number,_0x5b35ca);(_0x577238[_0x4ea930(0x1d1)](isNaN,_0xec67b4)||_0x577238[_0x4ea930(0x218)](_0xec67b4,0x0)||_0x577238[_0x4ea930(0x211)](_0xec67b4,_0x106be5))&&(console[_0x4ea930(0x1fd)](_0x577238[_0x4ea930(0x1da)]),await _0x577238['dESHw'](sendInstrumentationEvent,_0x4f6e01,_0x577238[_0x4ea930(0x22a)],messageTypes[_0x4ea930(0x1ed)],_0x577238[_0x4ea930(0x210)],null,_0x4f6e01),process[_0x4ea930(0x22f)](0x1));_0x577238[_0x4ea930(0x1e0)](closeInput);const _0x4d2aa2=_0x1ed8b1[_0x4ea930(0x1cf)][_0x577238[_0x4ea930(0x230)](_0xec67b4,0x1)]['id'],_0xac1250={};_0xac1250['profileId']=_0x4d2aa2;const _0x96bccd={'method':_0x577238['hfyGU'],'headers':_0x577238[_0x4ea930(0x22b)](getAuthHeader,_0x1bc649['Browserstack'][_0x4ea930(0x1f1)],_0x1bc649[_0x4ea930(0x205)][_0x4ea930(0x1ce)]),'json':_0xac1250,'responseType':_0x577238[_0x4ea930(0x219)]},_0x5f29c8=await _0x577238['muLLC'](got,_0x39ba6e,_0x96bccd);_0x577238[_0x4ea930(0x1d4)](_0x5f29c8,null)&&_0x577238[_0x4ea930(0x1d4)](_0x5f29c8,undefined)&&_0x577238[_0x4ea930(0x204)](_0x5f29c8[_0x4ea930(0x1f4)],0xc8)&&(console[_0x4ea930(0x1d3)](_0x577238[_0x4ea930(0x228)]),process[_0x4ea930(0x22f)](0x0)),_0x577238[_0x4ea930(0x200)](_0x5f29c8[_0x4ea930(0x1f4)],0x191)&&(console[_0x4ea930(0x1fd)](_0x4ea930(0x22c)),await _0x577238[_0x4ea930(0x207)](sendInstrumentationEvent,_0x4f6e01,_0x577238['iWLVN'],messageTypes['ERROR'],_0x577238[_0x4ea930(0x21e)],null,_0x4f6e01),process['exit'](0x1)),console[_0x4ea930(0x1fd)](_0x4ea930(0x1ca)+JSON[_0x4ea930(0x227)](_0x5f29c8)),await _0x577238[_0x4ea930(0x1de)](sendInstrumentationEvent,_0x4f6e01,_0x577238[_0x4ea930(0x22a)],messageTypes[_0x4ea930(0x1ed)],_0x577238['rGEho'],_0x5f29c8,_0x4f6e01),process[_0x4ea930(0x22f)](0x1);}_0x577238[_0x4ea930(0x1cb)](_0x4b0194[_0x4ea930(0x1f4)],0x191)&&(console[_0x4ea930(0x1fd)](_0x4ea930(0x1f7)),await _0x577238[_0x4ea930(0x21c)](sendInstrumentationEvent,_0x4f6e01,_0x577238[_0x4ea930(0x22a)],messageTypes['ERROR'],_0x577238[_0x4ea930(0x21e)],null,_0x4f6e01),process[_0x4ea930(0x22f)](0x1)),console['error'](_0x4ea930(0x1d9)+JSON[_0x4ea930(0x227)](_0x4b0194)),await _0x577238[_0x4ea930(0x20b)](sendInstrumentationEvent,_0x4f6e01,_0x577238['iWLVN'],messageTypes[_0x4ea930(0x1ed)],_0x577238[_0x4ea930(0x1dd)],_0x4b0194,_0x4f6e01),process[_0x4ea930(0x22f)](0x1);}catch(_0xf22582){console[_0x4ea930(0x1fd)](_0x4ea930(0x22d)+_0xf22582['stack']),await _0x577238[_0x4ea930(0x21f)](sendInstrumentationEvent,_0x4f6e01,_0x577238[_0x4ea930(0x22a)],messageTypes['ERROR'],_0x577238[_0x4ea930(0x1e9)],_0xf22582,_0x4f6e01),process['exit'](0x1);}};function a5_0x40ac(){const _0x1ca24c=['BISlW','json','existsSync','mSkPr','uuid','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','qotST','requestId','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','rGEho','wTSlW','sLfrF','qAxQW','lpIbi','../config/constants','name','unauthorised','XGPpp','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','argv','/packages/cli/configure','RBipp','RQqmR','sqerk','body','ERROR','INFO','\x20\x20username:\x20','XXfLr','username','Egvaa','147dlQgbA','statusCode','109309jPrHQc','\x20\x20grid-profile:\x20','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','VghoN','75536QWsJvw','Ppfqz','lnOaf','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','error','765ImOLuD','parse','WdvTV','server-error','help','readFileSync','YuJOp','Browserstack','handler','oXOQC','../utils/userInput','PUT','1922460lRHOoQ','dESHw','GET','15113461vkzFPU','155NUnAmq','init-not-called','mKlSc','Ehmbm','got','recommendCommands','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','../utils/utilityMethods','unknown-error','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','JLcPV','OsDrY','configure','25108ZGXMyR','JlySi','invalid-selection','FimvP','qMHNz','LxoFn','obDNp','46194YPoZfe','toLowerCase','esxzi','usage','QNHiN','stringify','UXSwA','Radys','iWLVN','muLLC','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','Failed\x20to\x20configure\x20resources!\x20Error:\x20','../utils/instrumentationUtils','exit','HvTae','https://','14130380XhWTNg','command','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','FkEdA','12UWXSHA','epilogue','password','list','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','KfhqQ','VQmqx','log'];a5_0x40ac=function(){return _0x1ca24c;};return a5_0x40ac();}
@@ -1 +1 @@
1
- const a6_0x23bb4b=a6_0x198a;function a6_0x198a(_0x32f3f0,_0x529c94){const _0x23a8f4=a6_0x23a8();return a6_0x198a=function(_0x198ae2,_0x313714){_0x198ae2=_0x198ae2-0x8c;let _0x33351f=_0x23a8f4[_0x198ae2];return _0x33351f;},a6_0x198a(_0x32f3f0,_0x529c94);}(function(_0x562396,_0x4c730a){const _0x8d9a3d=a6_0x198a,_0xc5622b=_0x562396();while(!![]){try{const _0x5d18ab=parseInt(_0x8d9a3d(0x8d))/0x1+parseInt(_0x8d9a3d(0x9c))/0x2+parseInt(_0x8d9a3d(0x9e))/0x3+parseInt(_0x8d9a3d(0x8c))/0x4*(parseInt(_0x8d9a3d(0x9d))/0x5)+-parseInt(_0x8d9a3d(0x9a))/0x6+parseInt(_0x8d9a3d(0x94))/0x7+-parseInt(_0x8d9a3d(0x99))/0x8*(parseInt(_0x8d9a3d(0xa1))/0x9);if(_0x5d18ab===_0x4c730a)break;else _0xc5622b['push'](_0xc5622b['shift']());}catch(_0x443cd0){_0xc5622b['push'](_0xc5622b['shift']());}}}(a6_0x23a8,0xe613e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x23bb4b(0x95));function a6_0x23a8(){const _0x1fc3ad=['handler','513880YWjFZE','7608360PQSnoU','epilogue','916180qCubmU','280iZwnIo','1126308CeVKQj','vpSuL','KILBb','27PjcGHK','desc','strict','usage','62024SoGkiH','292918iAopah','command','commandDir','recommendCommands','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','connect','help','2858681SFumMV','../config/constants','demandCommand','connect_commands'];a6_0x23a8=function(){return _0x1fc3ad;};return a6_0x23a8();}exports[a6_0x23bb4b(0x8e)]=a6_0x23bb4b(0x92),exports[a6_0x23bb4b(0xa2)]=a6_0x23bb4b(0x91),exports['builder']=function(_0x89b774){const _0x2a5a92=a6_0x23bb4b,_0x5efc3a={};_0x5efc3a[_0x2a5a92(0x9f)]=_0x2a5a92(0x97),_0x5efc3a[_0x2a5a92(0xa0)]=_0x2a5a92(0x93);const _0x569363=_0x5efc3a;return _0x89b774[_0x2a5a92(0xa4)](HELP_HEADER_MESSAGE['connect'])[_0x2a5a92(0x9b)](HELP_FOOTER_MESSAGE)[_0x2a5a92(0x8f)](_0x569363[_0x2a5a92(0x9f)])[_0x2a5a92(0x96)]()[_0x2a5a92(0x90)]()[_0x2a5a92(0xa3)]()[_0x2a5a92(0x93)](_0x569363[_0x2a5a92(0xa0)]);},exports[a6_0x23bb4b(0x98)]=function(_0x2ac6cb){};
1
+ function a6_0x3b2d(){const _0x1e379a=['2755wTjemI','desc','command','9kObwfA','2928NQsjVd','575296ckvhrv','commandDir','73882jIDcfX','2ujziKv','TrblP','3720744BUXDvQ','usage','epilogue','handler','842199BFUJuD','10051410WtPDLR','strict','recommendCommands','help','455833PVActl','demandCommand','connect','connect_commands','builder','DPQTz','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment'];a6_0x3b2d=function(){return _0x1e379a;};return a6_0x3b2d();}const a6_0x2c4c54=a6_0x25ab;(function(_0x3f8e68,_0x53ab66){const _0x1f6111=a6_0x25ab,_0x178a3f=_0x3f8e68();while(!![]){try{const _0x461890=-parseInt(_0x1f6111(0x17c))/0x1+parseInt(_0x1f6111(0x17d))/0x2*(parseInt(_0x1f6111(0x183))/0x3)+-parseInt(_0x1f6111(0x17a))/0x4+parseInt(_0x1f6111(0x175))/0x5*(-parseInt(_0x1f6111(0x179))/0x6)+-parseInt(_0x1f6111(0x16e))/0x7+-parseInt(_0x1f6111(0x17f))/0x8+-parseInt(_0x1f6111(0x178))/0x9*(-parseInt(_0x1f6111(0x184))/0xa);if(_0x461890===_0x53ab66)break;else _0x178a3f['push'](_0x178a3f['shift']());}catch(_0x12d236){_0x178a3f['push'](_0x178a3f['shift']());}}}(a6_0x3b2d,0x41b0c));function a6_0x25ab(_0x2392cc,_0x3a9175){const _0x3b2de5=a6_0x3b2d();return a6_0x25ab=function(_0x25abdf,_0x345c7a){_0x25abdf=_0x25abdf-0x16d;let _0x3140eb=_0x3b2de5[_0x25abdf];return _0x3140eb;},a6_0x25ab(_0x2392cc,_0x3a9175);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a6_0x2c4c54(0x177)]=a6_0x2c4c54(0x170),exports[a6_0x2c4c54(0x176)]=a6_0x2c4c54(0x174),exports[a6_0x2c4c54(0x172)]=function(_0x2fec54){const _0x40c42f=a6_0x2c4c54,_0x23e116={};_0x23e116[_0x40c42f(0x173)]=_0x40c42f(0x171),_0x23e116[_0x40c42f(0x17e)]=_0x40c42f(0x16d);const _0x5e833f=_0x23e116;return _0x2fec54[_0x40c42f(0x180)](HELP_HEADER_MESSAGE['connect'])[_0x40c42f(0x181)](HELP_FOOTER_MESSAGE)[_0x40c42f(0x17b)](_0x5e833f[_0x40c42f(0x173)])[_0x40c42f(0x16f)]()[_0x40c42f(0x186)]()[_0x40c42f(0x185)]()[_0x40c42f(0x16d)](_0x5e833f[_0x40c42f(0x17e)]);},exports[a6_0x2c4c54(0x182)]=function(_0x526a36){};