browserstack-node-sdk 1.32.0 → 1.32.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/utils/AWSUtils.js +1 -1
  25. package/ats/src/utils/createAutoscalerStack.js +1 -1
  26. package/ats/src/utils/createClusterStack.js +1 -1
  27. package/ats/src/utils/createk8sClient.js +1 -1
  28. package/ats/src/utils/deleteStack.js +1 -1
  29. package/ats/src/utils/gridComponents.js +1 -1
  30. package/ats/src/utils/hstUtils.js +1 -1
  31. package/ats/src/utils/instrumentationUtils.js +1 -1
  32. package/ats/src/utils/userInput.js +1 -1
  33. package/ats/src/utils/utilityMethods.js +1 -1
  34. package/ats/src/utils/webSocketUtils.js +1 -1
  35. package/package.json +1 -1
  36. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  37. package/src/bin/codeceptjs/command.js +1 -1
  38. package/src/bin/codeceptjs/helper.js +1 -1
  39. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  40. package/src/bin/cucumber-js/command.js +1 -1
  41. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  42. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  43. package/src/bin/cucumber-js/test.setup.js +1 -1
  44. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  45. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  46. package/src/bin/jest/command.js +1 -1
  47. package/src/bin/jest/customImplements/customCircus.js +1 -1
  48. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  49. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  50. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  51. package/src/bin/jest/jest.setup.js +1 -1
  52. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  53. package/src/bin/jest/test-observability/helper.js +1 -1
  54. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  55. package/src/bin/jest/test-observability/test-details.js +1 -1
  56. package/src/bin/jest/test_before.setup.js +1 -1
  57. package/src/bin/launcher/launcher.js +1 -1
  58. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  59. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  60. package/src/bin/mocha/command.js +1 -1
  61. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  62. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  63. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  64. package/src/bin/mocha/test.setup.js +1 -1
  65. package/src/bin/nightwatch/command.js +1 -1
  66. package/src/bin/playwright/accessibility-helper.js +1 -1
  67. package/src/bin/playwright/command.js +1 -1
  68. package/src/bin/playwright/globalSetup.js +1 -1
  69. package/src/bin/playwright/mock-process.js +1 -1
  70. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  71. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  72. package/src/bin/playwright/reporter/reporter.js +1 -1
  73. package/src/bin/playwright/reporter/test-details.js +1 -1
  74. package/src/bin/playwright/sessionDetails.js +1 -1
  75. package/src/bin/runner.js +1 -1
  76. package/src/bin/setup.js +1 -1
  77. package/src/bin/test-runner/index.js +1 -1
  78. package/src/bin/test-runner/runTest.js +1 -1
  79. package/src/bin/test-runner/testWorker.js +1 -1
  80. package/src/bin/utils/constants.js +1 -1
  81. package/src/bin/utils/log4jsAppender.js +1 -1
  82. package/src/bin/utils/logPatcher.js +1 -1
  83. package/src/bin/utils/logReportingAPI.js +1 -1
  84. package/src/bin/vanilla-js/command.js +1 -1
  85. package/src/browserStackSdk.js +1 -1
  86. package/src/helpers/BrowserStackSetup.js +1 -1
  87. package/src/helpers/accessibility-automation/constants.js +1 -1
  88. package/src/helpers/accessibility-automation/helper.js +1 -1
  89. package/src/helpers/accessibility-automation/scripts.js +1 -1
  90. package/src/helpers/ats/constants.js +1 -1
  91. package/src/helpers/ats/helper.js +1 -1
  92. package/src/helpers/capsMapping.js +1 -1
  93. package/src/helpers/globals.js +1 -1
  94. package/src/helpers/helper.js +1 -1
  95. package/src/helpers/logger.js +1 -1
  96. package/src/helpers/patchHelpers.js +1 -1
  97. package/src/helpers/percy/Percy.js +1 -1
  98. package/src/helpers/percy/PercyBinary.js +1 -1
  99. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  100. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  101. package/src/helpers/percy/PercySDK.js +1 -1
  102. package/src/helpers/percy/index.js +1 -1
  103. package/src/helpers/percy/utils.js +1 -1
  104. package/src/helpers/performance-tester.js +1 -1
  105. package/src/helpers/request-spy.js +1 -1
  106. package/src/helpers/setKeepAlive.js +1 -1
  107. package/src/helpers/test-observability/constants.js +1 -1
  108. package/src/helpers/test-observability/error-handler.js +1 -1
  109. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  110. package/src/helpers/test-observability/sessionHandler.js +1 -1
  111. package/src/helpers/test-observability/utils.js +1 -1
  112. package/src/helpers/w3cMapping.js +1 -1
  113. package/src/hubAllocationMethods.js +1 -1
  114. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a0_0x2dc2(_0x2ebebd,_0x5e754b){const _0x40e306=a0_0x40e3();return a0_0x2dc2=function(_0x2dc269,_0xb3d3a7){_0x2dc269=_0x2dc269-0x10d;let _0x1b5da4=_0x40e306[_0x2dc269];return _0x1b5da4;},a0_0x2dc2(_0x2ebebd,_0x5e754b);}const a0_0x578bf4=a0_0x2dc2;(function(_0x4ee58b,_0x24429f){const _0x3e233f=a0_0x2dc2,_0x19b016=_0x4ee58b();while(!![]){try{const _0x174251=parseInt(_0x3e233f(0x1ee))/0x1+-parseInt(_0x3e233f(0x16a))/0x2*(-parseInt(_0x3e233f(0x1df))/0x3)+parseInt(_0x3e233f(0x22a))/0x4+-parseInt(_0x3e233f(0x228))/0x5+-parseInt(_0x3e233f(0x162))/0x6*(-parseInt(_0x3e233f(0x1ef))/0x7)+parseInt(_0x3e233f(0x225))/0x8*(-parseInt(_0x3e233f(0x135))/0x9)+-parseInt(_0x3e233f(0x1a6))/0xa*(parseInt(_0x3e233f(0x1de))/0xb);if(_0x174251===_0x24429f)break;else _0x19b016['push'](_0x19b016['shift']());}catch(_0xe95b6c){_0x19b016['push'](_0x19b016['shift']());}}}(a0_0x40e3,0xb43bc));const fs=require('fs'),path=require(a0_0x578bf4(0x1b2)),yaml=require(a0_0x578bf4(0x206)),awsSDK=require(a0_0x578bf4(0x190)),{logger}=require(a0_0x578bf4(0x1d6)),{CloudProvider}=require(a0_0x578bf4(0x19f)),{sendAWSInfoToHST}=require(a0_0x578bf4(0x18b)),{deleteClusterStack}=require(a0_0x578bf4(0x1b8)),{createClusterStack}=require(a0_0x578bf4(0x1dc)),{deleteClusterAndDependencies,deleteRoutingDeps,deleteAgent}=require('../utils/gridComponents'),{createAutoscalerStack}=require(a0_0x578bf4(0x1fe)),{getDirForConfig,reportToGalactusAndSendToEDS}=require('../utils/utilityMethods'),{IAM_USER_NAME,AWS,WS_EVENTS,CLUSTER_DEP_STACK_NAME,global_registry,messageTypes}=require(a0_0x578bf4(0x1d8));class AWSCloudProvider extends CloudProvider{constructor(_0x891ff3,_0xede377,_0x4059b3,_0x188045){super(AWS,_0x891ff3,_0xede377,_0x4059b3,_0x188045);}['configureIfNotConfigured'](){const _0x4e5520=a0_0x578bf4,_0x30d800={'dZqVh':function(_0x4b9901,_0x1e051f){return _0x4b9901(_0x1e051f);},'LOpIQ':function(_0x4d7597,_0x25df16){return _0x4d7597!==_0x25df16;},'IUncG':'BkxIE'};!this[_0x4e5520(0x183)]()&&(_0x30d800[_0x4e5520(0x209)](_0x30d800['IUncG'],_0x30d800['IUncG'])?(_0x2b5fc2[_0x4e5520(0x16b)](_0x311130),_0x30d800[_0x4e5520(0x1d9)](_0xa5e411,_0x221e49)):this[_0x4e5520(0x197)]());}[a0_0x578bf4(0x183)](){const _0x2b1702=a0_0x578bf4,_0x177535={};_0x177535['AzXik']=function(_0xecdd90,_0x224565){return _0xecdd90===_0x224565;};const _0xd88b4d=_0x177535;return _0xd88b4d[_0x2b1702(0x218)](global_registry[_0x2b1702(0x202)],!![]);}[a0_0x578bf4(0x197)](){const _0x435028=a0_0x578bf4,_0x20bab1={};_0x20bab1[_0x435028(0x15c)]=global_registry[_0x435028(0x1a3)],_0x20bab1['accessKeyId']=global_registry[_0x435028(0x1a8)],_0x20bab1[_0x435028(0x1c4)]=global_registry[_0x435028(0x13a)],awsSDK[_0x435028(0x1c5)]['update'](_0x20bab1),global_registry[_0x435028(0x202)]=!![];}async[a0_0x578bf4(0x15a)](_0x3aab7a){const _0x414368=a0_0x578bf4;global_registry['cloudProviderAccessKey']=_0x3aab7a[this[_0x414368(0x148)]][_0x414368(0x17d)],global_registry[_0x414368(0x13a)]=_0x3aab7a[this[_0x414368(0x148)]][_0x414368(0x138)];}[a0_0x578bf4(0x126)](_0x26ab6c){const _0x828073=a0_0x578bf4;return _0x26ab6c[_0x828073(0x11a)][_0x828073(0x133)][_0x828073(0x157)][0x0][_0x828073(0x1c8)];}async[a0_0x578bf4(0x17e)](){const _0x3b95ee=a0_0x578bf4,_0x317254={'zGDhl':function(_0x54101a,_0x5729c5){return _0x54101a(_0x5729c5);},'kiQKU':function(_0x51ffee,_0x828c6f){return _0x51ffee===_0x828c6f;},'XJary':function(_0x588b07,_0x138ce7){return _0x588b07!==_0x138ce7;},'WExHJ':'umYSE','kXwSU':'TgVYP','rQXkD':function(_0xf7fd96,_0x21d10d){return _0xf7fd96===_0x21d10d;},'tsgsp':'uoRXV','EtjBX':_0x3b95ee(0x1b5),'NJuLc':_0x3b95ee(0x23b),'Gcajq':function(_0x66b094,_0xadc290){return _0x66b094===_0xadc290;},'bculD':'TByLo','UWSsJ':_0x3b95ee(0x1c9)};try{if(_0x317254[_0x3b95ee(0x15f)](_0x317254[_0x3b95ee(0x17f)],_0x317254[_0x3b95ee(0x124)])){const _0x105e95=await this[_0x3b95ee(0x199)]();if(_0x105e95[_0x3b95ee(0x211)]){if(_0x317254[_0x3b95ee(0x20e)](_0x317254[_0x3b95ee(0x1d5)],_0x317254['tsgsp'])){const _0x1cb9f2=_0x105e95[_0x3b95ee(0x211)][_0x3b95ee(0x196)];return _0x1cb9f2&&_0x317254[_0x3b95ee(0x1bb)](_0x1cb9f2[_0x317254['EtjBX']][_0x3b95ee(0x1b4)](),_0x317254[_0x3b95ee(0x1ab)]);}else _0x5640ac[_0x3b95ee(0x16b)](_0x3b95ee(0x1e0)+_0xa548b+_0x3b95ee(0x20c)+_0x5d2b54['clusterRegion']+_0x3b95ee(0x1d0)+_0x2ada33),_0x317254['zGDhl'](_0x396b03,[![],[]]);}}else _0x11ed17[_0x3b95ee(0x16b)](_0x3b95ee(0x1c3)+_0xca5cbc+_0x3b95ee(0x20c)+_0x28f313['clusterRegion']+_0x3b95ee(0x19d)),_0x317254[_0x3b95ee(0x1b0)](_0x1b2273,![]);}catch(_0x5ebb26){return _0x317254[_0x3b95ee(0x201)](_0x317254[_0x3b95ee(0x1b3)],_0x317254[_0x3b95ee(0x229)])?_0x317254[_0x3b95ee(0x1bb)](_0x4b156c[_0x3b95ee(0x202)],!![]):![];}return![];}async[a0_0x578bf4(0x208)](){const _0x38a51c=a0_0x578bf4;return this[_0x38a51c(0x21a)](),this[_0x38a51c(0x1fc)]();}async[a0_0x578bf4(0x199)](){const _0x445a00=a0_0x578bf4,_0x237f5d={};_0x237f5d['MvbUm']=_0x445a00(0x19e);const _0x4cd328=_0x237f5d,_0x185627={};_0x185627['apiVersion']=_0x4cd328[_0x445a00(0x18c)];const _0x485676=new awsSDK['EKS'](_0x185627),_0x24aada={};return _0x24aada[_0x445a00(0x216)]=this[_0x445a00(0x182)],_0x485676[_0x445a00(0x204)](_0x24aada)[_0x445a00(0x118)]();}async[a0_0x578bf4(0x1b6)](_0x3a51fa){const _0x56d7ae=a0_0x578bf4,_0xcce357={};_0xcce357[_0x56d7ae(0x125)]=_0x56d7ae(0x17b),_0xcce357[_0x56d7ae(0x113)]=_0x56d7ae(0x143),_0xcce357['iLKVh']='utf-8',_0xcce357[_0x56d7ae(0x161)]='<ARN>';const _0x4c359a=_0xcce357,_0x2cb010=await fs[_0x56d7ae(0x188)](path[_0x56d7ae(0x1f1)](__dirname,'..',_0x4c359a[_0x56d7ae(0x125)],_0x4c359a[_0x56d7ae(0x113)]),_0x4c359a[_0x56d7ae(0x1ca)]),_0x4f1e64=yaml[_0x56d7ae(0x1d2)](_0x2cb010);return _0x4f1e64['data'][_0x56d7ae(0x1dd)]=_0x4f1e64[_0x56d7ae(0x1d4)]['mapRoles']['replace'](_0x4c359a['BlDxc'],_0x3a51fa),_0x4f1e64;}async[a0_0x578bf4(0x14d)](_0x44a2c3){const _0x1e3c06=a0_0x578bf4,_0x383708={};_0x383708[_0x1e3c06(0x1d1)]=_0x1e3c06(0x19e);const _0x3792f6=_0x383708,_0x50a339={};_0x50a339['apiVersion']=_0x3792f6['uaDtv'];const _0x162af4=new awsSDK['EKS'](_0x50a339),_0x389152={};return _0x389152['clusterName']=this[_0x1e3c06(0x182)],_0x389152['nodegroupName']=_0x44a2c3,_0x162af4[_0x1e3c06(0x110)](_0x389152)[_0x1e3c06(0x118)]();}async[a0_0x578bf4(0x1fc)](){const _0x70d462=a0_0x578bf4,_0x2eb116={'ssFPY':function(_0x165db2,_0x18dc42){return _0x165db2===_0x18dc42;},'pcTGy':_0x70d462(0x186),'wbEDd':_0x70d462(0x170),'Voyxe':_0x70d462(0x119),'JUkzu':function(_0x5ca6e2,_0x3da1d9){return _0x5ca6e2(_0x3da1d9);},'aPfIR':function(_0x283f57,_0x1d67c7){return _0x283f57(_0x1d67c7);},'gHrMV':'2016-11-15','OGqdc':function(_0x3010ef,_0x54d0f2){return _0x3010ef!==_0x54d0f2;},'bKAMO':_0x70d462(0x1ad),'DztXs':'nyASG','VJklV':_0x70d462(0x233),'PDAbq':_0x70d462(0x19e)};return new Promise((_0x438287,_0x4aa1ba)=>{const _0x11ee51=_0x70d462,_0x4794fb={'PETDU':function(_0x30b60a,_0x1dbbaf){const _0x29e61e=a0_0x2dc2;return _0x2eb116[_0x29e61e(0x13f)](_0x30b60a,_0x1dbbaf);},'PjWat':_0x2eb116['pcTGy'],'SSNML':_0x2eb116[_0x11ee51(0x1bf)],'uOhAd':_0x2eb116['Voyxe'],'pnNDV':function(_0x3c86d1,_0x20ab09){const _0x516384=_0x11ee51;return _0x2eb116[_0x516384(0x17c)](_0x3c86d1,_0x20ab09);},'EIZbQ':function(_0x27f6f5,_0x1fad6c){const _0x20bec5=_0x11ee51;return _0x2eb116[_0x20bec5(0x17c)](_0x27f6f5,_0x1fad6c);},'cuOFS':function(_0x5df326,_0x5c0859){const _0x230ad8=_0x11ee51;return _0x2eb116[_0x230ad8(0x17c)](_0x5df326,_0x5c0859);},'RwxZn':function(_0x57c503,_0x53fdc4){const _0x14a676=_0x11ee51;return _0x2eb116[_0x14a676(0x238)](_0x57c503,_0x53fdc4);},'fhFsN':_0x2eb116[_0x11ee51(0x224)],'efWLY':function(_0xa39aa4,_0x5cb354){return _0x2eb116['OGqdc'](_0xa39aa4,_0x5cb354);},'YmyUL':_0x2eb116[_0x11ee51(0x1c7)],'HUpZU':_0x2eb116[_0x11ee51(0x22d)]};if(_0x2eb116[_0x11ee51(0x13f)](_0x2eb116[_0x11ee51(0x10f)],_0x2eb116[_0x11ee51(0x10f)])){const _0x418148={};_0x418148['apiVersion']=_0x2eb116[_0x11ee51(0x15e)];const _0x3c7701=new awsSDK[(_0x11ee51(0x16c))](_0x418148);_0x3c7701[_0x11ee51(0x187)]()[_0x11ee51(0x118)]()[_0x11ee51(0x142)](_0x45b2ca=>{const _0x40db37=_0x11ee51;if(_0x4794fb[_0x40db37(0x159)](_0x4794fb[_0x40db37(0x1e1)],_0x4794fb[_0x40db37(0x144)]))return _0x5d7db3[_0x40db37(0x116)](_0x21ae4b),![];else{if(_0x45b2ca['clusters'][_0x40db37(0x14b)](this[_0x40db37(0x182)])){if(_0x4794fb[_0x40db37(0x159)](_0x4794fb['uOhAd'],_0x4794fb[_0x40db37(0x12d)]))_0x4794fb['pnNDV'](_0x438287,!![]);else return _0x7e9c1d[_0x40db37(0x14b)](_0x27857b)?!![]:(_0x23eac3[_0x40db37(0x116)](_0x24188a),![]);}_0x4794fb[_0x40db37(0x1cb)](_0x438287,![]);}})[_0x11ee51(0x139)](_0x37225f=>{const _0x61418c=_0x11ee51;if(_0x4794fb['efWLY'](_0x4794fb[_0x61418c(0x1eb)],_0x4794fb[_0x61418c(0x123)]))logger[_0x61418c(0x16b)](_0x37225f),_0x4794fb[_0x61418c(0x227)](_0x4aa1ba,_0x37225f);else{const _0x29cdb5={'HbIvt':function(_0x559bed,_0x49ff2b){const _0x3ef221=_0x61418c;return _0x4794fb[_0x3ef221(0x227)](_0x559bed,_0x49ff2b);},'zYHcu':function(_0x1222aa,_0x4365f0){const _0xfbc578=_0x61418c;return _0x4794fb[_0xfbc578(0x181)](_0x1222aa,_0x4365f0);},'UbQBd':_0x4794fb['fhFsN']},_0x4e52b6={};_0x4e52b6[_0x61418c(0x12a)]=[_0x5757a1];let _0x25e7c1=_0x4e52b6;return new _0x1ef4bd((_0x51e6ad,_0x13e0f2)=>{const _0x3c76ee=_0x61418c,_0x4d1180={'fhVPj':function(_0x504438,_0x129096){const _0x12b615=a0_0x2dc2;return _0x29cdb5[_0x12b615(0x1ff)](_0x504438,_0x129096);}},_0x355ade={};_0x355ade['apiVersion']=_0x29cdb5['UbQBd'],_0x355ade[_0x3c76ee(0x15c)]=_0x3799fe[_0x3c76ee(0x1a3)];const _0x37d261=new _0x2f5ca8['EC2'](_0x355ade);_0x37d261['describeVpcs'](_0x25e7c1)[_0x3c76ee(0x118)]()['then'](_0x461395=>{const _0x2a643d=_0x3c76ee;_0x4d1180[_0x2a643d(0x180)](_0x51e6ad,!![]);})[_0x3c76ee(0x139)](_0x4784f2=>{const _0x1d6791=_0x3c76ee;_0x5013a3[_0x1d6791(0x16b)](_0x1d6791(0x1c3)+_0x316443+_0x1d6791(0x20c)+_0x549260[_0x1d6791(0x1a3)]+_0x1d6791(0x19d)),_0x29cdb5[_0x1d6791(0x1a1)](_0x51e6ad,![]);});});}});}else{const _0x4fb4bf=_0x2b3167[_0x11ee51(0x1aa)][0x0]['Outputs'][0x2][_0x11ee51(0x115)],_0x5eabdb=_0xeb4b6d[_0x11ee51(0x1aa)][0x0][_0x11ee51(0x13e)][0x5][_0x11ee51(0x115)][_0x11ee51(0x172)](',');_0x281185[_0x11ee51(0x19a)](_0x11ee51(0x230)+_0x4fb4bf+'\x20'),_0x3fb6be['info'](_0x11ee51(0x1bd)+_0x5eabdb+'\x20'),_0x3c2b74+=_0x11ee51(0x210)+_0x4fb4bf+',\x20Subnets\x20=>\x20'+_0x5eabdb+',\x20';}});}async[a0_0x578bf4(0x117)](_0x5d9a16,_0xabe8a9){const _0x4107ae=a0_0x578bf4,_0x5c6098={'nkEoD':function(_0x224562,_0x388f0d){return _0x224562(_0x388f0d);},'rXbvI':function(_0x348c31,_0xc04e67){return _0x348c31(_0xc04e67);}},_0x1c8d3a=this['cloudProviderName'][_0x4107ae(0x223)](),_0x4983aa=await _0x5c6098[_0x4107ae(0x156)](_0x5d9a16,_0x1c8d3a+_0x4107ae(0x195)),_0x4baf58=await _0x5c6098[_0x4107ae(0x131)](_0x5d9a16,_0x1c8d3a+_0x4107ae(0x128));global_registry['cloudProviderAccessKey']=_0x4983aa,global_registry[_0x4107ae(0x13a)]=_0x4baf58;const _0x3a100b={};return _0x3a100b[_0x4107ae(0x17d)]=_0x4983aa,_0x3a100b[_0x4107ae(0x138)]=_0x4baf58,_0xabe8a9['cloudProvider'][AWS]=_0x3a100b,_0xabe8a9;}async['getKubeConfigData'](){const _0x187987=a0_0x578bf4,_0x557b37={'CzooF':function(_0x42cc46){return _0x42cc46();},'lLDPW':_0x187987(0x11d),'nqfdP':'templates','qjGLR':'KubeConfigTemplate.yaml'},_0x470060=_0x557b37['CzooF'](getDirForConfig),_0x1db752=await this[_0x187987(0x199)](),_0x357aee=path[_0x187987(0x1f1)](_0x470060,_0x557b37['lLDPW']),_0x2ca3b1=_0x187987(0x152)+global_registry[_0x187987(0x1a8)]+_0x187987(0x149)+global_registry[_0x187987(0x13a)];fs[_0x187987(0x17a)](_0x357aee,_0x2ca3b1);let _0x2a018b=await fs[_0x187987(0x188)](path[_0x187987(0x1f1)](__dirname,'..',_0x557b37[_0x187987(0x111)],_0x557b37[_0x187987(0x19b)]));return _0x2a018b=_0x2a018b[_0x187987(0x192)](),_0x2a018b=_0x2a018b['replace'](/<CLUSTER_NAME>/g,this['clusterName']),_0x2a018b=_0x2a018b['replace'](/<CLUSTER_URL>/g,_0x1db752[_0x187987(0x211)][_0x187987(0x179)]),_0x2a018b=_0x2a018b['replace'](/<CERTIFICATE_DATA>/g,_0x1db752[_0x187987(0x211)]['certificateAuthority'][_0x187987(0x1d4)]),_0x2a018b=_0x2a018b[_0x187987(0x1b9)](/<CLUSTER_REGION>/g,global_registry[_0x187987(0x1a3)]),_0x2a018b=_0x2a018b['replace'](/<CLUSTER_NAME_USER>/g,IAM_USER_NAME),_0x2a018b=_0x2a018b[_0x187987(0x1b9)](/<CLOUD_PROVIDER_ACCESS_KEY>/g,global_registry[_0x187987(0x1a8)]),_0x2a018b=_0x2a018b[_0x187987(0x1b9)](/<CLOUD_PROVIDER_SECRET>/g,global_registry[_0x187987(0x13a)]),_0x2a018b=_0x2a018b['replace'](/<AWS_CONFIG_FILE_PATH>/g,_0x357aee),_0x2a018b;}async[a0_0x578bf4(0x214)](_0x2f2c3b=null,_0x3c008a=null){const _0x5bc20b=a0_0x578bf4,_0x438992={'dzuJh':function(_0x420ea5,_0x338e2a){return _0x420ea5(_0x338e2a);},'xuNVe':'Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','kfXqF':_0x5bc20b(0x169),'QBEyS':function(_0x466b26,_0x39c84f,_0x161881,_0x310ff4,_0x3e335e,_0x5a0820){return _0x466b26(_0x39c84f,_0x161881,_0x310ff4,_0x3e335e,_0x5a0820);},'hwQQB':_0x5bc20b(0x1ae),'ZrJKd':function(_0x590c9c,_0x40b304){return _0x590c9c===_0x40b304;},'URqST':'Tzvme'};_0x438992['dzuJh'](sendAWSInfoToHST,this[_0x5bc20b(0x1e6)]);const _0x337b15={};_0x337b15[_0x5bc20b(0x120)]=WS_EVENTS[_0x5bc20b(0x1c1)],_0x337b15['message']=_0x438992[_0x5bc20b(0x1c2)],this[_0x5bc20b(0x22b)][_0x5bc20b(0x1d7)](this[_0x5bc20b(0x1e6)],_0x337b15),logger[_0x5bc20b(0x19a)](_0x438992[_0x5bc20b(0x11c)]);const _0x43b957=global_registry[_0x5bc20b(0x158)],_0x29e5ba=global_registry[_0x5bc20b(0x165)],_0x11f046=await _0x438992[_0x5bc20b(0x12f)](createClusterStack,this[_0x5bc20b(0x182)],_0x43b957,_0x29e5ba,_0x2f2c3b,_0x3c008a),_0x4c5db3=_0x11f046[_0x5bc20b(0x1aa)][0x0][_0x5bc20b(0x13e)][0x0][_0x5bc20b(0x115)]['split'](','),_0x27ebed=_0x11f046[_0x5bc20b(0x1aa)][0x0][_0x5bc20b(0x13e)][0x1]['OutputValue'],_0x4d66b9=_0x11f046['Stacks'][0x0]['Outputs'][0x3][_0x5bc20b(0x115)],_0x1bc502=_0x11f046[_0x5bc20b(0x1aa)][0x0][_0x5bc20b(0x13e)][0x4]['OutputValue'];logger[_0x5bc20b(0x19a)](_0x438992[_0x5bc20b(0x189)]),logger[_0x5bc20b(0x19a)](_0x5bc20b(0x1a9)+_0x4d66b9+'\x20'),logger[_0x5bc20b(0x19a)](_0x5bc20b(0x198)+_0x27ebed+'\x20'),logger[_0x5bc20b(0x19a)](_0x5bc20b(0x234)+_0x4c5db3+'\x20'),logger[_0x5bc20b(0x19a)](_0x5bc20b(0x239)+_0x1bc502+'\x20');let _0x474258=_0x5bc20b(0x12b)+_0x4d66b9+_0x5bc20b(0x219)+_0x27ebed+_0x5bc20b(0x184)+_0x4c5db3+',\x20NodeRole\x20=>\x20'+_0x1bc502+'\x20';if(_0x438992[_0x5bc20b(0x112)](_0x2f2c3b,null)&&_0x438992[_0x5bc20b(0x112)](_0x3c008a,null)){if(_0x438992[_0x5bc20b(0x112)](_0x438992[_0x5bc20b(0x21e)],_0x438992['URqST'])){const _0x37c9e4=_0x11f046['Stacks'][0x0][_0x5bc20b(0x13e)][0x2][_0x5bc20b(0x115)],_0x5f290a=_0x11f046[_0x5bc20b(0x1aa)][0x0][_0x5bc20b(0x13e)][0x5]['OutputValue'][_0x5bc20b(0x172)](',');logger[_0x5bc20b(0x19a)](_0x5bc20b(0x230)+_0x37c9e4+'\x20'),logger[_0x5bc20b(0x19a)](_0x5bc20b(0x1bd)+_0x5f290a+'\x20'),_0x474258+=',VPC\x20=>\x20'+_0x37c9e4+_0x5bc20b(0x1a5)+_0x5f290a+',\x20';}else{const _0x4ec90e={};_0x4ec90e[_0x5bc20b(0x15c)]=_0x2a15c9[_0x5bc20b(0x1a3)],_0x4ec90e['accessKeyId']=_0x45e079[_0x5bc20b(0x1a8)],_0x4ec90e['secretAccessKey']=_0x3aa346[_0x5bc20b(0x13a)],_0x5f5790[_0x5bc20b(0x1c5)][_0x5bc20b(0x232)](_0x4ec90e),_0x59339d[_0x5bc20b(0x202)]=!![];}}const _0x2ac4a0={};_0x2ac4a0[_0x5bc20b(0x120)]=WS_EVENTS[_0x5bc20b(0x1c1)],_0x2ac4a0[_0x5bc20b(0x134)]=_0x474258,this[_0x5bc20b(0x22b)][_0x5bc20b(0x1d7)](this['rws'],_0x2ac4a0);}async[a0_0x578bf4(0x1ba)](_0x483400,_0x325a52){const _0x12e633=a0_0x578bf4,_0x250cf4={'wzbCJ':function(_0x4d7f47,_0x381350){return _0x4d7f47(_0x381350);}};await _0x250cf4[_0x12e633(0x21f)](deleteAgent,_0x483400),await _0x250cf4[_0x12e633(0x21f)](deleteRoutingDeps,_0x483400),await _0x250cf4[_0x12e633(0x21f)](deleteClusterAndDependencies,_0x325a52);}async[a0_0x578bf4(0x12c)](_0x11ebc4,_0x7e4f82){const _0x51ec77=a0_0x578bf4,_0x390d03={'vorkT':_0x51ec77(0x19e),'OtVKx':function(_0x113eab,_0x458b8b){return _0x113eab(_0x458b8b);},'KRASc':function(_0x3eee72,_0x54187e){return _0x3eee72(_0x54187e);},'kxUGP':function(_0x33be07,_0x338bac){return _0x33be07(_0x338bac);},'JvXks':function(_0xb9fd25,_0x443567){return _0xb9fd25===_0x443567;},'FAQkE':_0x51ec77(0x1b5),'dVfLF':_0x51ec77(0x23b),'IOLpb':function(_0x9226a1,_0xef3e5f){return _0x9226a1!==_0xef3e5f;},'fIiXS':_0x51ec77(0x185),'NzcAk':_0x51ec77(0x1ec),'QaZmC':_0x51ec77(0x176),'yUXxQ':function(_0x47a642,_0x4e1fc8){return _0x47a642!==_0x4e1fc8;},'PyBUG':'pyrbc','ObMjV':_0x51ec77(0x129),'SxpRh':function(_0xf11fd6,_0x1e2b9a){return _0xf11fd6(_0x1e2b9a);},'RufaQ':'PYICj','rKQkj':'VBQci','Zwkbi':'mEArn','JVjCw':function(_0x36eb4d,_0x5dddfc,_0x3d9df8,_0x144875,_0x1b2a84,_0x57a08f,_0x4dcf6a,_0x579f78){return _0x36eb4d(_0x5dddfc,_0x3d9df8,_0x144875,_0x1b2a84,_0x57a08f,_0x4dcf6a,_0x579f78);},'bFzCx':_0x51ec77(0x193),'yIhgo':_0x51ec77(0x1e9),'BLtSZ':'warning','FmSfn':function(_0x5ae388,_0x20f9a3){return _0x5ae388===_0x20f9a3;},'FdoGV':_0x51ec77(0x18d),'cSsqo':_0x51ec77(0x1ed),'vrhPo':_0x51ec77(0x212),'ZNQoe':_0x51ec77(0x1af),'NXSZQ':_0x51ec77(0x16b),'tgMHD':_0x51ec77(0x174)};let _0x38262b,_0x209627;const _0x26926c={};_0x26926c[_0x51ec77(0x120)]=WS_EVENTS[_0x51ec77(0x1c1)],_0x26926c['message']=_0x390d03[_0x51ec77(0x18e)],this[_0x51ec77(0x22b)][_0x51ec77(0x1d7)](this[_0x51ec77(0x1e6)],_0x26926c),logger['info'](_0x390d03[_0x51ec77(0x18e)]);try{if(_0x390d03['yUXxQ'](_0x390d03[_0x51ec77(0x167)],_0x390d03[_0x51ec77(0x153)])){const _0xf1a027=await _0x390d03[_0x51ec77(0x23a)](createAutoscalerStack,this[_0x51ec77(0x182)]);_0x209627=_0xf1a027[_0x51ec77(0x1aa)][0x0][_0x51ec77(0x13e)][0x2][_0x51ec77(0x115)];const _0x2fee8e={};_0x2fee8e['type']=WS_EVENTS['LOG'],_0x2fee8e[_0x51ec77(0x134)]='Autoscaler\x20Role\x20created.ARN:\x20'+_0x209627+'\x20',this[_0x51ec77(0x22b)]['sendEventToBackend'](this[_0x51ec77(0x1e6)],_0x2fee8e),logger['info'](_0x51ec77(0x137)+_0x209627+'\x20');}else _0xddfe42[_0x51ec77(0x116)](_0x38154f[_0x51ec77(0x1f7)]);}catch(_0x3b8da2){if(_0x390d03[_0x51ec77(0x236)](_0x390d03[_0x51ec77(0x10d)],_0x390d03[_0x51ec77(0x1db)])){const _0x3b02f5={};_0x3b02f5[_0x51ec77(0x1f6)]=_0x390d03['vorkT'];const _0x854131=new _0x26df20[(_0x51ec77(0x16c))](_0x3b02f5),_0x34562e={};return _0x34562e[_0x51ec77(0x216)]=this[_0x51ec77(0x182)],_0x854131['describeCluster'](_0x34562e)[_0x51ec77(0x118)]();}else{if(_0x390d03[_0x51ec77(0x1c0)](_0x3b8da2[_0x51ec77(0x134)][_0x51ec77(0x146)](/already exists/),null)||_0x390d03[_0x51ec77(0x130)](_0x3b8da2[_0x51ec77(0x134)]['match'](/already exists/),undefined)){if(_0x390d03[_0x51ec77(0x236)](_0x390d03[_0x51ec77(0x166)],_0x390d03['Zwkbi']))_0x38262b=_0x51ec77(0x1fa)+_0x3b8da2[_0x51ec77(0x134)],await _0x390d03[_0x51ec77(0x20f)](reportToGalactusAndSendToEDS,_0x7e4f82,this[_0x51ec77(0x1e6)],_0x38262b,messageTypes[_0x51ec77(0x18a)],_0x390d03[_0x51ec77(0x145)],_0x390d03[_0x51ec77(0x231)],_0x390d03[_0x51ec77(0x154)]),logger[_0x51ec77(0x16f)](_0x38262b);else{const _0x331005={'clIKI':function(_0x12cbac,_0x21d008){return _0x390d03['kxUGP'](_0x12cbac,_0x21d008);}},_0x2aec4f={};_0x2aec4f[_0x51ec77(0x1f6)]=_0x390d03[_0x51ec77(0x235)];const _0x3ea978=new _0x45515e['EKS'](_0x2aec4f);_0x3ea978[_0x51ec77(0x187)]()['promise']()['then'](_0x5ae7d0=>{const _0x317ad4=_0x51ec77;_0x5ae7d0[_0x317ad4(0x168)][_0x317ad4(0x14b)](this['clusterName'])&&_0x390d03[_0x317ad4(0x1f3)](_0x3d3f2e,!![]),_0x390d03['KRASc'](_0xa61836,![]);})[_0x51ec77(0x139)](_0x370a6a=>{const _0x129aba=_0x51ec77;_0x34925f[_0x129aba(0x16b)](_0x370a6a),_0x331005[_0x129aba(0x14f)](_0x4ffbce,_0x370a6a);});}}else{if(_0x390d03[_0x51ec77(0x160)](_0x390d03[_0x51ec77(0x22f)],_0x390d03[_0x51ec77(0x237)])){const _0x443b6c={};_0x443b6c[_0x51ec77(0x1f6)]=_0x390d03['vorkT'];const _0x2b8736=new _0x461c6f[(_0x51ec77(0x16c))](_0x443b6c),_0x10ed80={};return _0x10ed80[_0x51ec77(0x182)]=this[_0x51ec77(0x182)],_0x10ed80['nodegroupName']=_0x50663f,_0x2b8736[_0x51ec77(0x110)](_0x10ed80)[_0x51ec77(0x118)]();}else{const _0x51d58b=_0x390d03[_0x51ec77(0x207)][_0x51ec77(0x172)]('|');let _0x5d57aa=0x0;while(!![]){switch(_0x51d58b[_0x5d57aa++]){case'0':process[_0x51ec77(0x1cd)](0x1);continue;case'1':_0x38262b=_0x51ec77(0x20d)+_0x3b8da2['message']+_0x51ec77(0x1f9);continue;case'2':logger['error'](_0x38262b);continue;case'3':await _0x390d03[_0x51ec77(0x23a)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'4':await _0x390d03[_0x51ec77(0x20f)](reportToGalactusAndSendToEDS,_0x7e4f82,this[_0x51ec77(0x1e6)],_0x38262b,messageTypes[_0x51ec77(0x1f4)],_0x390d03[_0x51ec77(0x145)],_0x390d03[_0x51ec77(0x21c)],_0x390d03[_0x51ec77(0x18f)]);continue;}break;}}}}}let _0x40d960=await this[_0x51ec77(0x14d)](this[_0x51ec77(0x182)]+_0x51ec77(0x164));const _0x2317f3=_0x40d960[_0x51ec77(0x1f8)][_0x51ec77(0x140)],_0xae042f=await this[_0x51ec77(0x1b6)](_0x2317f3),_0x5657b0={};return _0x5657b0['namespace']=_0x390d03[_0x51ec77(0x173)],_0x5657b0[_0x51ec77(0x221)]=_0xae042f,await _0x11ebc4[_0x51ec77(0x150)](_0x5657b0)[_0x51ec77(0x139)](_0x118247=>{const _0x110b71=_0x51ec77,_0x2e7653={'mUEKe':function(_0x532a58,_0x3157bb){const _0x3de80e=a0_0x2dc2;return _0x390d03[_0x3de80e(0x236)](_0x532a58,_0x3157bb);},'MyMiX':_0x390d03[_0x110b71(0x11e)],'pqLmo':_0x390d03['dVfLF']};if(_0x390d03[_0x110b71(0x1c0)](_0x390d03['fIiXS'],_0x390d03[_0x110b71(0x171)])){const _0x555167=_0x350d80[_0x110b71(0x211)][_0x110b71(0x196)];return _0x555167&&_0x2e7653['mUEKe'](_0x555167[_0x2e7653[_0x110b71(0x14a)]][_0x110b71(0x1b4)](),_0x2e7653[_0x110b71(0x222)]);}else logger[_0x110b71(0x19a)](_0x390d03[_0x110b71(0x1fb)]);}),_0x209627;}[a0_0x578bf4(0x151)](_0x46b6e4){const _0x49e8e3=a0_0x578bf4,_0xb0c4bb={'pkiCW':function(_0x4eefda,_0x4a2ede){return _0x4eefda!==_0x4a2ede;},'eotLM':'IWKYO','NTcTC':'SCJVC','FkJrb':function(_0x5826fe,_0x116ae4){return _0x5826fe(_0x116ae4);},'YvHbD':function(_0x30fedc,_0x546264){return _0x30fedc(_0x546264);},'bZdwG':function(_0x3a6947,_0xa76158){return _0x3a6947(_0xa76158);},'pEGwk':function(_0x19adbe,_0x1419b4){return _0x19adbe===_0x1419b4;},'dvkTA':_0x49e8e3(0x194),'FEBJT':function(_0x5dbaaa,_0xe7b843){return _0x5dbaaa===_0xe7b843;},'JtiSm':_0x49e8e3(0x12e),'jEHtp':'STiMw','HVXIN':_0x49e8e3(0x178)},_0x32424e={};_0x32424e[_0x49e8e3(0x12a)]=[_0x46b6e4];let _0x533d42=_0x32424e;return new Promise((_0x3e6b06,_0x11220b)=>{const _0x457823=_0x49e8e3,_0x45f00e={'YTDlw':function(_0x5b8703,_0x2493f6){const _0x4016d3=a0_0x2dc2;return _0xb0c4bb[_0x4016d3(0x213)](_0x5b8703,_0x2493f6);},'DURcg':function(_0x145a07,_0x58955b){const _0x46e748=a0_0x2dc2;return _0xb0c4bb[_0x46e748(0x14c)](_0x145a07,_0x58955b);},'AMRLd':function(_0x4ce813,_0x454199){const _0x51531d=a0_0x2dc2;return _0xb0c4bb[_0x51531d(0x1a2)](_0x4ce813,_0x454199);},'JzAxn':_0xb0c4bb['dvkTA'],'VbjZf':function(_0xfb578a,_0x235354){return _0xb0c4bb['bZdwG'](_0xfb578a,_0x235354);}};if(_0xb0c4bb[_0x457823(0x177)](_0xb0c4bb[_0x457823(0x19c)],_0xb0c4bb[_0x457823(0x175)]))_0x183961[_0x457823(0x168)][_0x457823(0x14b)](this['clusterName'])&&_0x45f00e[_0x457823(0x1cc)](_0x58aaa2,!![]),_0x45f00e['DURcg'](_0xce08bc,![]);else{const _0x302fb6={};_0x302fb6[_0x457823(0x1f6)]=_0xb0c4bb[_0x457823(0x1bc)],_0x302fb6[_0x457823(0x15c)]=global_registry[_0x457823(0x1a3)];const _0x1e028c=new awsSDK[(_0x457823(0x122))](_0x302fb6);_0x1e028c[_0x457823(0x22c)](_0x533d42)[_0x457823(0x118)]()[_0x457823(0x142)](_0x32c7a8=>{const _0x154f61=_0x457823,_0x5880c9={'XFJeP':function(_0x5e50b8,_0x3af88f){const _0x4d0d0b=a0_0x2dc2;return _0x45f00e[_0x4d0d0b(0x1cc)](_0x5e50b8,_0x3af88f);}};_0x45f00e[_0x154f61(0x16d)](_0x45f00e[_0x154f61(0x217)],_0x45f00e[_0x154f61(0x217)])?_0x45f00e[_0x154f61(0x1da)](_0x3e6b06,!![]):_0x5880c9[_0x154f61(0x200)](_0x2603a2,!![]);})[_0x457823(0x139)](_0x1e614c=>{const _0x3fa107=_0x457823;_0xb0c4bb[_0x3fa107(0x1f2)](_0xb0c4bb[_0x3fa107(0x21d)],_0xb0c4bb[_0x3fa107(0x1e4)])?(logger[_0x3fa107(0x16b)](_0x3fa107(0x1c3)+_0x46b6e4+'\x20in\x20region\x20'+global_registry[_0x3fa107(0x1a3)]+_0x3fa107(0x19d)),_0xb0c4bb[_0x3fa107(0x114)](_0x3e6b06,![])):!this[_0x3fa107(0x183)]()&&this['setConfig']();});}});}['isSubnetsValid'](_0x844d31,_0x49111c){const _0x4e1159=a0_0x578bf4,_0x46edc1={'sqqWL':function(_0x124809,_0x269f68){return _0x124809(_0x269f68);},'WMADQ':_0x4e1159(0x178),'fMoOZ':function(_0x15e858,_0x5ce861){return _0x15e858===_0x5ce861;},'vpzTL':_0x4e1159(0x121),'wbiBa':'cbqeU','WtwnH':function(_0x5a33eb,_0x26175c){return _0x5a33eb===_0x26175c;},'ZNSyF':_0x4e1159(0x1a4),'qfIIV':function(_0x3baa39,_0x20d75a){return _0x3baa39!==_0x20d75a;},'AiaHK':_0x4e1159(0x15d),'nvphq':'Authmap\x20already\x20exists.\x20Not\x20updating','HXnwb':function(_0x1eab4c,_0x3dc3f5){return _0x1eab4c!==_0x3dc3f5;},'IkOCY':'gWEAr','zwcCJ':_0x4e1159(0x1ea),'UoONR':function(_0x12689c,_0x26f370){return _0x12689c!==_0x26f370;},'QcWDh':_0x4e1159(0x1c6),'frLxn':_0x4e1159(0x1a0),'SbFgU':function(_0x26aff0,_0x82290f){return _0x26aff0!==_0x82290f;},'SewGJ':'xChSn','UIcaF':_0x4e1159(0x1f5),'OUskO':_0x4e1159(0x13b),'adtnL':_0x4e1159(0x1be),'PcWiY':_0x4e1159(0x226)},_0x5557b0={};_0x5557b0[_0x4e1159(0x21b)]=_0x46edc1['PcWiY'],_0x5557b0['Values']=[_0x49111c];const _0x2a8833={};_0x2a8833[_0x4e1159(0x191)]=[_0x5557b0];let _0x582420=_0x2a8833;return new Promise((_0x420c5f,_0x6376e7)=>{const _0xe3a3b3=_0x4e1159,_0xc87703={'JoBdF':_0x46edc1[_0xe3a3b3(0x13c)],'KIvzF':function(_0x1198f2,_0xf9d4bc){const _0x4c6654=_0xe3a3b3;return _0x46edc1[_0x4c6654(0x220)](_0x1198f2,_0xf9d4bc);},'UjGNq':_0x46edc1[_0xe3a3b3(0x1b1)],'PlYhq':_0x46edc1[_0xe3a3b3(0x1fd)],'mWYqg':function(_0x2156bc,_0xb60972){const _0x440dc7=_0xe3a3b3;return _0x46edc1[_0x440dc7(0x203)](_0x2156bc,_0xb60972);},'ETqsG':_0x46edc1[_0xe3a3b3(0x215)],'AhGgN':_0x46edc1[_0xe3a3b3(0x16e)],'tIDYa':function(_0x1ff52f,_0x4e4441){const _0x54a878=_0xe3a3b3;return _0x46edc1[_0x54a878(0x1b7)](_0x1ff52f,_0x4e4441);},'VZNvV':_0x46edc1[_0xe3a3b3(0x1ac)],'VcNit':_0x46edc1[_0xe3a3b3(0x13d)]};if(_0x46edc1[_0xe3a3b3(0x20b)](_0x46edc1['OUskO'],_0x46edc1[_0xe3a3b3(0x1cf)])){const _0x396ae3={};_0x396ae3[_0xe3a3b3(0x1f6)]=_0x46edc1[_0xe3a3b3(0x1a7)],_0x396ae3[_0xe3a3b3(0x15c)]=global_registry[_0xe3a3b3(0x1a3)];const _0x2c792b=new awsSDK[(_0xe3a3b3(0x122))](_0x396ae3);_0x2c792b[_0xe3a3b3(0x10e)](_0x582420)[_0xe3a3b3(0x118)]()[_0xe3a3b3(0x142)](_0x13d79b=>{const _0x146f27=_0xe3a3b3,_0x512be8={'oDqCa':function(_0x4645fa,_0x5193b1){const _0x126499=a0_0x2dc2;return _0x46edc1[_0x126499(0x1d3)](_0x4645fa,_0x5193b1);},'WQXAV':_0x46edc1[_0x146f27(0x1a7)],'RVhQi':function(_0x5dcf9e,_0x17bd4a){const _0x121ada=_0x146f27;return _0x46edc1[_0x121ada(0x11f)](_0x5dcf9e,_0x17bd4a);},'NqmqT':_0x46edc1['vpzTL'],'vWqbm':_0x46edc1[_0x146f27(0x136)]};if(_0x46edc1[_0x146f27(0x1e8)](_0x46edc1[_0x146f27(0x132)],_0x46edc1[_0x146f27(0x132)])){const _0x588c06=[],_0xae8fbb=[];_0x13d79b['Subnets'][_0x146f27(0x1e3)](_0x45a469=>{const _0x58753d=_0x146f27,_0x4d3379={'MbGFZ':function(_0x459e89,_0x3a2de8){const _0x46992a=a0_0x2dc2;return _0x512be8[_0x46992a(0x1ce)](_0x459e89,_0x3a2de8);}};if(_0x512be8[_0x58753d(0x11b)](_0x512be8[_0x58753d(0x205)],_0x512be8['vWqbm'])){const _0x45d5fb={'RnpSa':function(_0x142e36,_0x347ee0){const _0x12341f=_0x58753d;return _0x512be8[_0x12341f(0x1ce)](_0x142e36,_0x347ee0);}},_0x1e5d46={};_0x1e5d46[_0x58753d(0x1f6)]=_0x512be8['WQXAV'],_0x1e5d46[_0x58753d(0x15c)]=_0x8ba0e2[_0x58753d(0x1a3)];const _0xad42a3=new _0x2be6ba[(_0x58753d(0x122))](_0x1e5d46);_0xad42a3[_0x58753d(0x22c)](_0x4b7665)['promise']()[_0x58753d(0x142)](_0x3aa9e9=>{const _0x3e8de4=_0x58753d;_0x4d3379[_0x3e8de4(0x163)](_0x3d53c5,!![]);})[_0x58753d(0x139)](_0x2ea8a4=>{const _0x417a03=_0x58753d;_0x14653f[_0x417a03(0x16b)](_0x417a03(0x1c3)+_0x399fc4+_0x417a03(0x20c)+_0x3c5a9f[_0x417a03(0x1a3)]+_0x417a03(0x19d)),_0x45d5fb[_0x417a03(0x147)](_0x219baf,![]);});}else _0x588c06[_0x58753d(0x116)](_0x45a469[_0x58753d(0x1f7)]);});const _0x5ca16e=_0x844d31[_0x146f27(0x22e)](_0x17846f=>{const _0x1545a7=_0x146f27,_0x90fd01={};_0x90fd01[_0x1545a7(0x141)]=_0xc87703['JoBdF'];const _0x1355f3=_0x90fd01;if(_0xc87703[_0x1545a7(0x20a)](_0xc87703[_0x1545a7(0x1f0)],_0xc87703[_0x1545a7(0x127)])){if(_0x588c06[_0x1545a7(0x14b)](_0x17846f))return _0xc87703['mWYqg'](_0xc87703['ETqsG'],_0xc87703[_0x1545a7(0x155)])?!![]:!![];else{if(_0xc87703[_0x1545a7(0x1e2)](_0xc87703[_0x1545a7(0x1e5)],_0xc87703[_0x1545a7(0x14e)]))return _0xae8fbb[_0x1545a7(0x116)](_0x17846f),![];else _0x148b76[_0x1545a7(0x19a)](_0x1355f3[_0x1545a7(0x141)]);}}else this[_0x1545a7(0x197)]();});_0x46edc1[_0x146f27(0x1d3)](_0x420c5f,[_0x5ca16e,_0xae8fbb]);}else return this[_0x146f27(0x21a)](),this[_0x146f27(0x1fc)]();})[_0xe3a3b3(0x139)](_0x151f9c=>{const _0x1ef17f=_0xe3a3b3;if(_0x46edc1[_0x1ef17f(0x20b)](_0x46edc1[_0x1ef17f(0x15b)],_0x46edc1['AiaHK']))return![];else logger[_0x1ef17f(0x16b)](_0x1ef17f(0x1e0)+_0x844d31+_0x1ef17f(0x20c)+global_registry[_0x1ef17f(0x1a3)]+_0x1ef17f(0x1d0)+_0x151f9c),_0x46edc1[_0x1ef17f(0x1d3)](_0x420c5f,[![],[]]);});}else return _0x4abe37[_0xe3a3b3(0x11a)][_0xe3a3b3(0x133)][_0xe3a3b3(0x157)][0x0][_0xe3a3b3(0x1c8)];});}}const a0_0x319d1d={};function a0_0x40e3(){const _0x5edb87=['vpc-id','cuOFS','56080DKfJGR','UWSsJ','61764cXWtnv','webSocketUtils','describeVpcs','DztXs','every','FdoGV','VPC\x20=>\x20','yIhgo','update','intPo','SecurityGroups\x20=>\x20','vorkT','JvXks','cSsqo','aPfIR','NodeRole\x20=>\x20','SxpRh','browserstack','RufaQ','describeSubnets','VJklV','describeNodegroup','nqfdP','ZrJKd','TXeXK','FkJrb','OutputValue','push','getUserInput','promise','sbMvM','status','RVhQi','kfXqF','aws_credentials','FAQkE','fMoOZ','type','dWAzJ','EC2','HUpZU','kXwSU','CIkEJ','getGridHostname','PlYhq','\x20SECRET\x20KEY:\x20','VxRTn','VpcIds','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','setupAutoscaler','uOhAd','sbxfu','QBEyS','yUXxQ','rXbvI','ZNSyF','loadBalancer','message','1445976lDedWS','wbiBa','Autoscaler\x20Role\x20created.ARN:\x20','secret','catch','cloudProviderSecretKey','Hqcxn','nvphq','UIcaF','Outputs','ssFPY','nodeRole','xsxjK','then','aws-auth-cm.yaml','SSNML','bFzCx','match','RnpSa','cloudProviderName','\x0aaws_secret_access_key\x20=\x20','MyMiX','includes','bZdwG','getNodeGroupInfo','VcNit','clIKI','createNamespacedConfigMap','isVPCPresent','[ats]\x0aaws_access_key_id\x20=\x20','ObMjV','BLtSZ','AhGgN','nkEoD','ingress','minNodes','PETDU','fetchLocalCreds','AiaHK','region','NVrnK','PDAbq','XJary','FmSfn','BlDxc','916404VFmPPC','MbGFZ','-NodeGroup','maxNodes','Zwkbi','PyBUG','clusters','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','1883894truJdJ','error','EKS','AMRLd','frLxn','warn','qSNzo','fIiXS','split','tgMHD','kube-system','jEHtp','Creating\x20Autoscaler\x20Role','FEBJT','2016-11-15','endpoint','writeFileSync','templates','JUkzu','accessKey','isBrowserstackCluster','WExHJ','fhVPj','RwxZn','clusterName','isConfigured',',\x20SecurityGroups\x20=>\x20','bgiSl','wtyKD','listClusters','readFileAsync','hwQQB','WARNING','../utils/hstUtils','MvbUm','WEHit','QaZmC','NXSZQ','aws-sdk','Filters','toString','create-grid-called','OOlyP','\x20ACCESS\x20KEY:\x20','tags','setConfig','ClusterRole\x20=>\x20','getClusterInfo','info','qjGLR','JtiSm','.\x20Please\x20Check\x20and\x20try\x20again','2017-11-01','./CloudProvider','aRyIk','HbIvt','pEGwk','clusterRegion','RXKRW',',\x20Subnets\x20=>\x20','10DhOhVG','WMADQ','cloudProviderAccessKey','Cluster\x20=>\x20','Stacks','NJuLc','SewGJ','CuSUE','Following\x20resources\x20are\x20created:','autoscaler-creation-failed','zGDhl','IkOCY','path','bculD','toLowerCase','browserstack:managedBy','createAuthConfigMap','SbFgU','../utils/deleteStack','replace','deleteCluster','kiQKU','HVXIN','Subnets\x20=>\x20','UjSQF','wbEDd','IOLpb','LOG','xuNVe','Cannot\x20find\x20VPC\x20','secretAccessKey','config','Mbyfw','bKAMO','hostname','KeDtq','iLKVh','EIZbQ','YTDlw','exit','oDqCa','adtnL','.\x20Error:\x20','uaDtv','load','sqqWL','data','tsgsp','../config/logger','sendEventToBackend','../config/constants','dZqVh','VbjZf','rKQkj','../utils/createClusterStack','mapRoles','14693371lmiNAy','3qZXmUU','Cannot\x20find\x20subnets\x20','PjWat','tIDYa','forEach','NTcTC','VZNvV','rws','AWSCloudProvider','WtwnH','reportToGalactusAndSendToEDS','sCbFp','YmyUL','Authmap\x20already\x20exists.\x20Not\x20updating','oAQZV','846147ZIKkDl','35YhXUoj','UjGNq','join','pkiCW','OtVKx','ERROR','FBKfg','apiVersion','SubnetId','nodegroup','.\x20Deleting\x20all\x20the\x20stacks','Skipping\x20Autoscaler\x20due\x20to:\x20','NzcAk','checkClusterCreated','zwcCJ','../utils/createAutoscalerStack','zYHcu','XFJeP','Gcajq','awsConfigSet','UoONR','describeCluster','NqmqT','js-yaml','vrhPo','isClusterPresent','LOpIQ','KIvzF','qfIIV','\x20in\x20region\x20','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','rQXkD','JVjCw',',VPC\x20=>\x20','cluster','1|4|2|3|0','YvHbD','setupNewCluster','QcWDh','name','JzAxn','AzXik',',\x20ClusterRole\x20=>\x20','configureIfNotConfigured','Name','ZNQoe','eotLM','URqST','wzbCJ','HXnwb','body','pqLmo','toUpperCase','gHrMV','24DCrrsT'];a0_0x40e3=function(){return _0x5edb87;};return a0_0x40e3();}a0_0x319d1d[a0_0x578bf4(0x1e7)]=AWSCloudProvider,module['exports']=a0_0x319d1d;
1
+ const a0_0x49f4a0=a0_0x1680;(function(_0x3ac814,_0x39d31a){const _0x14f5f8=a0_0x1680,_0x46d382=_0x3ac814();while(!![]){try{const _0x2a4973=parseInt(_0x14f5f8(0x14b))/0x1*(-parseInt(_0x14f5f8(0x15b))/0x2)+parseInt(_0x14f5f8(0x218))/0x3*(-parseInt(_0x14f5f8(0x193))/0x4)+-parseInt(_0x14f5f8(0x1b3))/0x5+parseInt(_0x14f5f8(0x1c7))/0x6+-parseInt(_0x14f5f8(0x1c3))/0x7+-parseInt(_0x14f5f8(0x165))/0x8+-parseInt(_0x14f5f8(0x24a))/0x9*(-parseInt(_0x14f5f8(0x19e))/0xa);if(_0x2a4973===_0x39d31a)break;else _0x46d382['push'](_0x46d382['shift']());}catch(_0x2e6acd){_0x46d382['push'](_0x46d382['shift']());}}}(a0_0x4a9d,0x8f457));const fs=require('fs'),path=require('path'),yaml=require(a0_0x49f4a0(0x167)),awsSDK=require(a0_0x49f4a0(0x23f)),{logger}=require('../config/logger'),{CloudProvider}=require(a0_0x49f4a0(0x24c)),{sendAWSInfoToHST}=require(a0_0x49f4a0(0x17a)),{deleteClusterStack}=require(a0_0x49f4a0(0x22d)),{createClusterStack}=require(a0_0x49f4a0(0x1b2)),{deleteClusterAndDependencies,deleteRoutingDeps,deleteAgent}=require(a0_0x49f4a0(0x19b)),{createAutoscalerStack}=require('../utils/createAutoscalerStack'),{getDirForConfig,reportToGalactusAndSendToEDS}=require('../utils/utilityMethods'),{IAM_USER_NAME,AWS,WS_EVENTS,CLUSTER_DEP_STACK_NAME,global_registry,messageTypes}=require(a0_0x49f4a0(0x177));class AWSCloudProvider extends CloudProvider{constructor(_0x42a590,_0x178cdf,_0x7e8344,_0x55bbbc){super(AWS,_0x42a590,_0x178cdf,_0x7e8344,_0x55bbbc);}[a0_0x49f4a0(0x168)](){const _0x5ebe91=a0_0x49f4a0,_0x4380cd={};_0x4380cd['WgoXM']=function(_0x588aef,_0x4aff5e){return _0x588aef===_0x4aff5e;},_0x4380cd[_0x5ebe91(0x238)]=_0x5ebe91(0x1ec),_0x4380cd['YWMmI']='EyHOb';const _0x33e647=_0x4380cd;if(!this[_0x5ebe91(0x1e7)]()){if(_0x33e647['WgoXM'](_0x33e647[_0x5ebe91(0x238)],_0x33e647[_0x5ebe91(0x229)])){const _0x304fc=_0x205ede['Stacks'][0x0][_0x5ebe91(0x1b7)][0x2][_0x5ebe91(0x12c)],_0x4731c0=_0x18a573[_0x5ebe91(0x1bc)][0x0][_0x5ebe91(0x1b7)][0x5]['OutputValue']['split'](',');_0x963f4b[_0x5ebe91(0x209)](_0x5ebe91(0x141)+_0x304fc+'\x20'),_0x596b66[_0x5ebe91(0x209)](_0x5ebe91(0x255)+_0x4731c0+'\x20'),_0x57a48a+=',VPC\x20=>\x20'+_0x304fc+_0x5ebe91(0x17b)+_0x4731c0+',\x20';}else this[_0x5ebe91(0x254)]();}}[a0_0x49f4a0(0x1e7)](){const _0x4726d2=a0_0x49f4a0,_0x5564ef={};_0x5564ef[_0x4726d2(0x1c8)]=function(_0x31cd2b,_0x327e6e){return _0x31cd2b===_0x327e6e;};const _0x58c0df=_0x5564ef;return _0x58c0df[_0x4726d2(0x1c8)](global_registry[_0x4726d2(0x1ae)],!![]);}['setConfig'](){const _0x4e3475=a0_0x49f4a0,_0x434e47={};_0x434e47[_0x4e3475(0x205)]=global_registry[_0x4e3475(0x163)],_0x434e47['accessKeyId']=global_registry[_0x4e3475(0x1d4)],_0x434e47[_0x4e3475(0x1b4)]=global_registry[_0x4e3475(0x18f)],awsSDK[_0x4e3475(0x13d)]['update'](_0x434e47),global_registry[_0x4e3475(0x1ae)]=!![];}async['fetchLocalCreds'](_0x594efe){const _0x46d264=a0_0x49f4a0;global_registry[_0x46d264(0x1d4)]=_0x594efe[this['cloudProviderName']][_0x46d264(0x199)],global_registry[_0x46d264(0x18f)]=_0x594efe[this[_0x46d264(0x1f4)]][_0x46d264(0x236)];}['getGridHostname'](_0xc3732b){const _0x1ccfb7=a0_0x49f4a0;return _0xc3732b[_0x1ccfb7(0x16c)][_0x1ccfb7(0x1d1)][_0x1ccfb7(0x204)][0x0][_0x1ccfb7(0x250)];}async['isBrowserstackCluster'](){const _0x2c4a8e=a0_0x49f4a0,_0x1d25dc={'IAATc':function(_0x459a88,_0x5249ab){return _0x459a88(_0x5249ab);},'wxuyB':function(_0x58b7ac,_0x3fd838){return _0x58b7ac===_0x3fd838;},'MVsPA':_0x2c4a8e(0x23b),'zBkyu':function(_0x58f161,_0x4abcb4){return _0x58f161!==_0x4abcb4;},'FVEZF':_0x2c4a8e(0x252),'FLQuX':_0x2c4a8e(0x137),'iTERC':'browserstack','cCbdw':_0x2c4a8e(0x23a),'aaSYh':_0x2c4a8e(0x14c)};try{if(_0x1d25dc[_0x2c4a8e(0x19d)](_0x1d25dc[_0x2c4a8e(0x24d)],_0x1d25dc[_0x2c4a8e(0x24d)])){const _0x583f58=await this[_0x2c4a8e(0x24b)]();if(_0x583f58[_0x2c4a8e(0x15a)]){if(_0x1d25dc[_0x2c4a8e(0x1bb)](_0x1d25dc['FVEZF'],_0x1d25dc[_0x2c4a8e(0x1dd)]))_0x1d25dc[_0x2c4a8e(0x20f)](_0x1aa50c,!![]);else{const _0x4d4a9a=_0x583f58[_0x2c4a8e(0x15a)][_0x2c4a8e(0x12f)];return _0x4d4a9a&&_0x1d25dc[_0x2c4a8e(0x19d)](_0x4d4a9a[_0x1d25dc[_0x2c4a8e(0x1a8)]]['toLowerCase'](),_0x1d25dc[_0x2c4a8e(0x1c9)]);}}}else return _0x1d25dc['wxuyB'](_0x455bb2[_0x2c4a8e(0x1ae)],!![]);}catch(_0x55f959){return _0x1d25dc['zBkyu'](_0x1d25dc[_0x2c4a8e(0x256)],_0x1d25dc[_0x2c4a8e(0x17d)])?![]:(_0x18f62b['push'](_0x412c0e),![]);}return![];}async[a0_0x49f4a0(0x1ea)](){const _0x2a4ab6=a0_0x49f4a0;return this[_0x2a4ab6(0x168)](),this[_0x2a4ab6(0x1c0)]();}async[a0_0x49f4a0(0x24b)](){const _0x127458=a0_0x49f4a0,_0x20982e={};_0x20982e[_0x127458(0x245)]='2017-11-01';const _0x4c5a7f=_0x20982e,_0x5e0268={};_0x5e0268['apiVersion']=_0x4c5a7f[_0x127458(0x245)];const _0xcdbd64=new awsSDK[(_0x127458(0x1ab))](_0x5e0268),_0x218346={};return _0x218346[_0x127458(0x16d)]=this[_0x127458(0x212)],_0xcdbd64[_0x127458(0x13e)](_0x218346)[_0x127458(0x258)]();}async[a0_0x49f4a0(0x1ee)](_0x1ed906){const _0x4fa18e=a0_0x49f4a0,_0x493095={};_0x493095[_0x4fa18e(0x1cc)]=_0x4fa18e(0x1dc),_0x493095[_0x4fa18e(0x228)]=_0x4fa18e(0x1df),_0x493095[_0x4fa18e(0x21b)]=_0x4fa18e(0x235),_0x493095[_0x4fa18e(0x171)]=_0x4fa18e(0x239);const _0x1a1ac=_0x493095,_0x4f6725=await fs[_0x4fa18e(0x18b)](path[_0x4fa18e(0x224)](__dirname,'..',_0x1a1ac['GYmuq'],_0x1a1ac[_0x4fa18e(0x228)]),_0x1a1ac[_0x4fa18e(0x21b)]),_0x4b3808=yaml[_0x4fa18e(0x147)](_0x4f6725);return _0x4b3808[_0x4fa18e(0x194)][_0x4fa18e(0x13f)]=_0x4b3808[_0x4fa18e(0x194)][_0x4fa18e(0x13f)][_0x4fa18e(0x1cf)](_0x1a1ac['WAfcp'],_0x1ed906),_0x4b3808;}async[a0_0x49f4a0(0x1cd)](_0x25c537){const _0x31c447=a0_0x49f4a0,_0x17b35d={};_0x17b35d[_0x31c447(0x251)]=_0x31c447(0x19a);const _0x4ff280=_0x17b35d,_0x1e3bd2={};_0x1e3bd2[_0x31c447(0x223)]=_0x4ff280[_0x31c447(0x251)];const _0x42dc1b=new awsSDK[(_0x31c447(0x1ab))](_0x1e3bd2),_0x1a30e4={};return _0x1a30e4[_0x31c447(0x212)]=this[_0x31c447(0x212)],_0x1a30e4[_0x31c447(0x149)]=_0x25c537,_0x42dc1b[_0x31c447(0x23c)](_0x1a30e4)[_0x31c447(0x258)]();}async[a0_0x49f4a0(0x1c0)](){const _0x2bc716=a0_0x49f4a0,_0x2a9408={'EqiWk':function(_0x52725b,_0x1e8c03){return _0x52725b(_0x1e8c03);},'Uklok':function(_0x43ec43,_0x36e1f2){return _0x43ec43===_0x36e1f2;},'cAQiK':_0x2bc716(0x20d),'muScg':'qSciI','JDXPj':function(_0x14354e,_0x322f02){return _0x14354e!==_0x322f02;},'OiFji':_0x2bc716(0x15f),'VhauP':_0x2bc716(0x1fd),'rSQUj':_0x2bc716(0x22e),'pJKha':_0x2bc716(0x18d),'jENIg':function(_0x134ff3,_0x4a0129){return _0x134ff3!==_0x4a0129;},'XgnSe':'DPfDb','jsjqP':'2017-11-01'};return new Promise((_0x172ac0,_0x186feb)=>{const _0xf46506=_0x2bc716,_0x90eeae={'AkxlO':function(_0x20d05e,_0x3e0af1){const _0x575288=a0_0x1680;return _0x2a9408[_0x575288(0x248)](_0x20d05e,_0x3e0af1);},'mZEgS':function(_0x25ba46,_0x24975c){return _0x2a9408['Uklok'](_0x25ba46,_0x24975c);},'kXAsj':_0x2a9408[_0xf46506(0x1a1)],'EfOoF':_0x2a9408[_0xf46506(0x18a)],'zLJNy':function(_0x3f2cf2,_0x54c6da){const _0xd1c098=_0xf46506;return _0x2a9408[_0xd1c098(0x1e5)](_0x3f2cf2,_0x54c6da);},'nPLEn':_0x2a9408['OiFji'],'iFdkv':_0x2a9408['VhauP'],'Cajuf':_0x2a9408[_0xf46506(0x1c4)],'EoKzZ':_0x2a9408['pJKha']};if(_0x2a9408[_0xf46506(0x1e8)](_0x2a9408[_0xf46506(0x13b)],_0x2a9408[_0xf46506(0x13b)])){const _0x569c7c={};_0x569c7c[_0xf46506(0x205)]=_0x11deb7[_0xf46506(0x163)],_0x569c7c['accessKeyId']=_0x59b7cd[_0xf46506(0x1d4)],_0x569c7c[_0xf46506(0x1b4)]=_0xcc35fd[_0xf46506(0x18f)],_0x50c2e1[_0xf46506(0x13d)][_0xf46506(0x1d6)](_0x569c7c),_0x12ba34[_0xf46506(0x1ae)]=!![];}else{const _0x5eea94={};_0x5eea94['apiVersion']=_0x2a9408[_0xf46506(0x203)];const _0x1d62d6=new awsSDK[(_0xf46506(0x1ab))](_0x5eea94);_0x1d62d6[_0xf46506(0x150)]()['promise']()[_0xf46506(0x246)](_0x5ecc1b=>{const _0x1926ce=_0xf46506,_0x2edec2={'xkkUZ':function(_0x12f755,_0xd072de){const _0x135c40=a0_0x1680;return _0x90eeae[_0x135c40(0x157)](_0x12f755,_0xd072de);}};if(_0x90eeae['mZEgS'](_0x90eeae[_0x1926ce(0x1be)],_0x90eeae[_0x1926ce(0x145)]))return _0x293e2e[_0x1926ce(0x16c)][_0x1926ce(0x1d1)][_0x1926ce(0x204)][0x0]['hostname'];else _0x5ecc1b[_0x1926ce(0x1fc)][_0x1926ce(0x225)](this[_0x1926ce(0x212)])&&(_0x90eeae[_0x1926ce(0x259)](_0x90eeae[_0x1926ce(0x243)],_0x90eeae[_0x1926ce(0x208)])?_0x90eeae['AkxlO'](_0x172ac0,!![]):(_0x7eaaaf[_0x1926ce(0x1fc)][_0x1926ce(0x225)](this[_0x1926ce(0x212)])&&_0x2edec2[_0x1926ce(0x1b6)](_0x1a5fab,!![]),_0x2edec2[_0x1926ce(0x1b6)](_0x166464,![]))),_0x90eeae[_0x1926ce(0x157)](_0x172ac0,![]);})['catch'](_0x2cc65a=>{const _0x510fd7=_0xf46506;if(_0x90eeae[_0x510fd7(0x234)](_0x90eeae[_0x510fd7(0x213)],_0x90eeae[_0x510fd7(0x175)]))return![];else logger[_0x510fd7(0x12e)](_0x2cc65a),_0x90eeae['AkxlO'](_0x186feb,_0x2cc65a);});}});}async[a0_0x49f4a0(0x22c)](_0x5b1b80,_0x1c8d17){const _0x29ce0d=a0_0x49f4a0,_0x3281fd={'TLHqR':function(_0x3761e8,_0x378308){return _0x3761e8(_0x378308);}},_0x40c1ea=this['cloudProviderName'][_0x29ce0d(0x1d3)](),_0x491253=await _0x3281fd[_0x29ce0d(0x202)](_0x5b1b80,_0x40c1ea+_0x29ce0d(0x1f1)),_0x380278=await _0x3281fd['TLHqR'](_0x5b1b80,_0x40c1ea+_0x29ce0d(0x180));global_registry[_0x29ce0d(0x1d4)]=_0x491253,global_registry['cloudProviderSecretKey']=_0x380278;const _0x133612={};return _0x133612[_0x29ce0d(0x199)]=_0x491253,_0x133612[_0x29ce0d(0x236)]=_0x380278,_0x1c8d17[_0x29ce0d(0x201)][AWS]=_0x133612,_0x1c8d17;}async['getKubeConfigData'](){const _0x2e5600=a0_0x49f4a0,_0x2d22a9={'HnZoI':function(_0x2681a7){return _0x2681a7();},'SDTIf':_0x2e5600(0x138),'kSoln':_0x2e5600(0x1dc),'ULPZv':'KubeConfigTemplate.yaml'},_0xf03837=_0x2d22a9[_0x2e5600(0x20b)](getDirForConfig),_0x2efd71=await this[_0x2e5600(0x24b)](),_0x29ee73=path[_0x2e5600(0x224)](_0xf03837,_0x2d22a9['SDTIf']),_0xa98b67='[ats]\x0aaws_access_key_id\x20=\x20'+global_registry[_0x2e5600(0x1d4)]+_0x2e5600(0x143)+global_registry[_0x2e5600(0x18f)];fs['writeFileSync'](_0x29ee73,_0xa98b67);let _0x4bc2af=await fs['readFileAsync'](path[_0x2e5600(0x224)](__dirname,'..',_0x2d22a9[_0x2e5600(0x249)],_0x2d22a9[_0x2e5600(0x14d)]));return _0x4bc2af=_0x4bc2af['toString'](),_0x4bc2af=_0x4bc2af['replace'](/<CLUSTER_NAME>/g,this['clusterName']),_0x4bc2af=_0x4bc2af[_0x2e5600(0x1cf)](/<CLUSTER_URL>/g,_0x2efd71[_0x2e5600(0x15a)][_0x2e5600(0x187)]),_0x4bc2af=_0x4bc2af['replace'](/<CERTIFICATE_DATA>/g,_0x2efd71[_0x2e5600(0x15a)]['certificateAuthority'][_0x2e5600(0x194)]),_0x4bc2af=_0x4bc2af['replace'](/<CLUSTER_REGION>/g,global_registry[_0x2e5600(0x163)]),_0x4bc2af=_0x4bc2af['replace'](/<CLUSTER_NAME_USER>/g,IAM_USER_NAME),_0x4bc2af=_0x4bc2af[_0x2e5600(0x1cf)](/<CLOUD_PROVIDER_ACCESS_KEY>/g,global_registry[_0x2e5600(0x1d4)]),_0x4bc2af=_0x4bc2af['replace'](/<CLOUD_PROVIDER_SECRET>/g,global_registry[_0x2e5600(0x18f)]),_0x4bc2af=_0x4bc2af[_0x2e5600(0x1cf)](/<AWS_CONFIG_FILE_PATH>/g,_0x29ee73),_0x4bc2af;}async[a0_0x49f4a0(0x130)](_0x1d5b42=null,_0x1ee99d=null){const _0x15abe9=a0_0x49f4a0,_0x545965={'LkyIV':function(_0x1fc69c,_0x3f8af3){return _0x1fc69c(_0x3f8af3);},'EOhxE':function(_0x11959a,_0x252dd9){return _0x11959a(_0x252dd9);},'mFfbv':_0x15abe9(0x19a),'VPNcj':'Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','HMbvn':_0x15abe9(0x136),'smdnr':function(_0x546d5c,_0x26220f,_0x13c4a3,_0x18f048,_0xbc298b,_0x1865cf){return _0x546d5c(_0x26220f,_0x13c4a3,_0x18f048,_0xbc298b,_0x1865cf);},'VzyjB':_0x15abe9(0x24e),'bnhIB':function(_0x2e4e70,_0x387597){return _0x2e4e70===_0x387597;},'wMUzm':function(_0x1f6d6a,_0x119570){return _0x1f6d6a===_0x119570;},'GgLge':function(_0x2556f0,_0x1446dc){return _0x2556f0===_0x1446dc;},'pJYTB':'RpcQF'};_0x545965[_0x15abe9(0x1de)](sendAWSInfoToHST,this[_0x15abe9(0x237)]);const _0x3efeed={};_0x3efeed[_0x15abe9(0x1f2)]=WS_EVENTS[_0x15abe9(0x227)],_0x3efeed[_0x15abe9(0x1fb)]=_0x545965[_0x15abe9(0x158)],this[_0x15abe9(0x1ce)][_0x15abe9(0x1bd)](this['rws'],_0x3efeed),logger[_0x15abe9(0x209)](_0x545965[_0x15abe9(0x19c)]);const _0xbfbeaf=global_registry['minNodes'],_0x13e3ab=global_registry['maxNodes'],_0x212a11=await _0x545965['smdnr'](createClusterStack,this[_0x15abe9(0x212)],_0xbfbeaf,_0x13e3ab,_0x1d5b42,_0x1ee99d),_0x88eef8=_0x212a11[_0x15abe9(0x1bc)][0x0][_0x15abe9(0x1b7)][0x0]['OutputValue'][_0x15abe9(0x1a6)](','),_0x511ca4=_0x212a11[_0x15abe9(0x1bc)][0x0][_0x15abe9(0x1b7)][0x1][_0x15abe9(0x12c)],_0x3054d2=_0x212a11[_0x15abe9(0x1bc)][0x0][_0x15abe9(0x1b7)][0x3][_0x15abe9(0x12c)],_0x5a2372=_0x212a11[_0x15abe9(0x1bc)][0x0][_0x15abe9(0x1b7)][0x4]['OutputValue'];logger[_0x15abe9(0x209)](_0x545965[_0x15abe9(0x153)]),logger[_0x15abe9(0x209)](_0x15abe9(0x14f)+_0x3054d2+'\x20'),logger['info'](_0x15abe9(0x140)+_0x511ca4+'\x20'),logger[_0x15abe9(0x209)](_0x15abe9(0x178)+_0x88eef8+'\x20'),logger[_0x15abe9(0x209)](_0x15abe9(0x21a)+_0x5a2372+'\x20');let _0x40c90a=_0x15abe9(0x197)+_0x3054d2+_0x15abe9(0x1a5)+_0x511ca4+_0x15abe9(0x164)+_0x88eef8+_0x15abe9(0x182)+_0x5a2372+'\x20';if(_0x545965[_0x15abe9(0x215)](_0x1d5b42,null)&&_0x545965[_0x15abe9(0x172)](_0x1ee99d,null)){if(_0x545965[_0x15abe9(0x210)](_0x545965[_0x15abe9(0x20e)],_0x545965[_0x15abe9(0x20e)])){const _0x7bd3f7=_0x212a11[_0x15abe9(0x1bc)][0x0][_0x15abe9(0x1b7)][0x2]['OutputValue'],_0x10ae48=_0x212a11['Stacks'][0x0][_0x15abe9(0x1b7)][0x5][_0x15abe9(0x12c)][_0x15abe9(0x1a6)](',');logger[_0x15abe9(0x209)]('VPC\x20=>\x20'+_0x7bd3f7+'\x20'),logger['info'](_0x15abe9(0x255)+_0x10ae48+'\x20'),_0x40c90a+=_0x15abe9(0x1cb)+_0x7bd3f7+_0x15abe9(0x17b)+_0x10ae48+',\x20';}else{const _0x221a2c={};_0x221a2c[_0x15abe9(0x223)]=_0x545965[_0x15abe9(0x151)];const _0x27cb05=new _0x38db52[(_0x15abe9(0x1ab))](_0x221a2c);_0x27cb05[_0x15abe9(0x150)]()[_0x15abe9(0x258)]()['then'](_0x215cdc=>{const _0x7c8a90=_0x15abe9;_0x215cdc[_0x7c8a90(0x1fc)][_0x7c8a90(0x225)](this[_0x7c8a90(0x212)])&&_0x545965['LkyIV'](_0x4b38f2,!![]),_0x545965[_0x7c8a90(0x1de)](_0x4c1c82,![]);})[_0x15abe9(0x226)](_0x2cf727=>{const _0x3e8522=_0x15abe9;_0x55ddb4['error'](_0x2cf727),_0x545965[_0x3e8522(0x181)](_0xdca6b2,_0x2cf727);});}}const _0x2c990a={};_0x2c990a[_0x15abe9(0x1f2)]=WS_EVENTS['LOG'],_0x2c990a[_0x15abe9(0x1fb)]=_0x40c90a,this[_0x15abe9(0x1ce)][_0x15abe9(0x1bd)](this['rws'],_0x2c990a);}async[a0_0x49f4a0(0x240)](_0x194faf,_0x2cfa84){const _0x5e0830=a0_0x49f4a0,_0x20176a={'xsnLZ':function(_0x9b0471,_0x558fc4){return _0x9b0471(_0x558fc4);}};await _0x20176a[_0x5e0830(0x1e6)](deleteAgent,_0x194faf),await _0x20176a[_0x5e0830(0x1e6)](deleteRoutingDeps,_0x194faf),await _0x20176a['xsnLZ'](deleteClusterAndDependencies,_0x2cfa84);}async[a0_0x49f4a0(0x17c)](_0x116b16,_0x4aed24){const _0x382d39=a0_0x49f4a0,_0xd9ccc={'rNVVW':function(_0x3f7a27,_0x4a0ad5){return _0x3f7a27(_0x4a0ad5);},'RRGNS':function(_0x580481,_0x1ec4f7){return _0x580481(_0x1ec4f7);},'opZoN':function(_0x2f2f78,_0x18c5b3){return _0x2f2f78===_0x18c5b3;},'LxvYr':_0x382d39(0x137),'tuCar':_0x382d39(0x214),'AxAma':function(_0x47d379,_0x1a14a3){return _0x47d379!==_0x1a14a3;},'NimFQ':_0x382d39(0x220),'oWpOx':'JiyVw','fVtwF':'Authmap\x20already\x20exists.\x20Not\x20updating','iQpOf':_0x382d39(0x23d),'tfJKA':'VjYCO','YAxPu':function(_0x66d0f,_0x53987a){return _0x66d0f(_0x53987a);},'AjrKi':function(_0x489019,_0x444a0a){return _0x489019===_0x444a0a;},'lIrDz':'wVeov','JzxJg':function(_0x232c9c,_0x2042a7){return _0x232c9c!==_0x2042a7;},'qXFOt':function(_0x2e47f6,_0xc48a53){return _0x2e47f6!==_0xc48a53;},'WfmrN':_0x382d39(0x13c),'TzxaN':_0x382d39(0x12d),'PvKGs':function(_0x32022a,_0xa6d3dd,_0x1853a7,_0x20c55c,_0x191af8,_0xe2742a,_0x47c20f,_0x289aba){return _0x32022a(_0xa6d3dd,_0x1853a7,_0x20c55c,_0x191af8,_0xe2742a,_0x47c20f,_0x289aba);},'LTxap':_0x382d39(0x142),'eznwq':_0x382d39(0x253),'mQzQk':'warning','BtfVA':_0x382d39(0x244),'ASshT':_0x382d39(0x135),'jtyZa':_0x382d39(0x1d5),'Cavuu':_0x382d39(0x1f3),'FBrGK':_0x382d39(0x12e),'Sngqq':function(_0x2a0d84,_0x26eed6){return _0x2a0d84(_0x26eed6);},'mUIlN':_0x382d39(0x207)};let _0x22f880,_0x16955e;const _0x376203={};_0x376203[_0x382d39(0x1f2)]=WS_EVENTS[_0x382d39(0x227)],_0x376203[_0x382d39(0x1fb)]=_0xd9ccc[_0x382d39(0x1f6)],this[_0x382d39(0x1ce)]['sendEventToBackend'](this[_0x382d39(0x237)],_0x376203),logger['info'](_0xd9ccc[_0x382d39(0x1f6)]);try{if(_0xd9ccc[_0x382d39(0x1b0)](_0xd9ccc[_0x382d39(0x18e)],_0xd9ccc[_0x382d39(0x18e)])){const _0x3da907=await _0xd9ccc[_0x382d39(0x1b5)](createAutoscalerStack,this['clusterName']);_0x16955e=_0x3da907[_0x382d39(0x1bc)][0x0][_0x382d39(0x1b7)][0x2][_0x382d39(0x12c)];const _0x8acd37={};_0x8acd37['type']=WS_EVENTS['LOG'],_0x8acd37['message']='Autoscaler\x20Role\x20created.ARN:\x20'+_0x16955e+'\x20',this[_0x382d39(0x1ce)][_0x382d39(0x1bd)](this[_0x382d39(0x237)],_0x8acd37),logger[_0x382d39(0x209)](_0x382d39(0x16e)+_0x16955e+'\x20');}else _0x422139[_0x382d39(0x12e)](_0x3ab1fa),_0xd9ccc[_0x382d39(0x1b9)](_0x36cb58,_0x1cf4b0);}catch(_0x56fe65){if(_0xd9ccc[_0x382d39(0x242)](_0xd9ccc[_0x382d39(0x155)],_0xd9ccc[_0x382d39(0x155)])){if(_0xd9ccc['AxAma'](_0x56fe65[_0x382d39(0x1fb)][_0x382d39(0x1c2)](/already exists/),null)||_0xd9ccc['JzxJg'](_0x56fe65[_0x382d39(0x1fb)][_0x382d39(0x1c2)](/already exists/),undefined))_0xd9ccc[_0x382d39(0x133)](_0xd9ccc[_0x382d39(0x211)],_0xd9ccc[_0x382d39(0x233)])?(_0x22f880='Skipping\x20Autoscaler\x20due\x20to:\x20'+_0x56fe65[_0x382d39(0x1fb)],await _0xd9ccc[_0x382d39(0x241)](reportToGalactusAndSendToEDS,_0x4aed24,this[_0x382d39(0x237)],_0x22f880,messageTypes[_0x382d39(0x1db)],_0xd9ccc[_0x382d39(0x1b8)],_0xd9ccc[_0x382d39(0x1c6)],_0xd9ccc[_0x382d39(0x221)]),logger[_0x382d39(0x1eb)](_0x22f880)):(_0x42bf56['error'](_0x382d39(0x169)+_0xa2b762+_0x382d39(0x196)+_0x4e2f78[_0x382d39(0x163)]+'.\x20Please\x20Check\x20and\x20try\x20again'),_0xd9ccc[_0x382d39(0x1b9)](_0x54a53a,![]));else{if(_0xd9ccc[_0x382d39(0x242)](_0xd9ccc[_0x382d39(0x1ba)],_0xd9ccc[_0x382d39(0x1d7)]))return this['configureIfNotConfigured'](),this[_0x382d39(0x1c0)]();else{const _0x28d272=_0xd9ccc['jtyZa'][_0x382d39(0x1a6)]('|');let _0x51aeb0=0x0;while(!![]){switch(_0x28d272[_0x51aeb0++]){case'0':logger[_0x382d39(0x12e)](_0x22f880);continue;case'1':await _0xd9ccc[_0x382d39(0x241)](reportToGalactusAndSendToEDS,_0x4aed24,this[_0x382d39(0x237)],_0x22f880,messageTypes['ERROR'],_0xd9ccc[_0x382d39(0x1b8)],_0xd9ccc['Cavuu'],_0xd9ccc['FBrGK']);continue;case'2':process[_0x382d39(0x1da)](0x1);continue;case'3':_0x22f880=_0x382d39(0x16f)+_0x56fe65[_0x382d39(0x1fb)]+'.\x20Deleting\x20all\x20the\x20stacks';continue;case'4':await _0xd9ccc[_0x382d39(0x179)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;}break;}}}}else _0x20129f[_0x382d39(0x12e)](_0x382d39(0x1e4)+_0x1f6783+_0x382d39(0x196)+_0x5645eb[_0x382d39(0x163)]+_0x382d39(0x1ad)+_0xcbc502),_0xd9ccc[_0x382d39(0x247)](_0x3484eb,[![],[]]);}let _0x406867=await this[_0x382d39(0x1cd)](this[_0x382d39(0x212)]+_0x382d39(0x1ac));const _0x8202db=_0x406867[_0x382d39(0x24f)][_0x382d39(0x1f5)],_0x26ed9b=await this['createAuthConfigMap'](_0x8202db),_0x1c1d06={};return _0x1c1d06[_0x382d39(0x131)]=_0xd9ccc[_0x382d39(0x184)],_0x1c1d06[_0x382d39(0x1d8)]=_0x26ed9b,await _0x116b16[_0x382d39(0x1d9)](_0x1c1d06)[_0x382d39(0x226)](_0x41c633=>{const _0x563f61=_0x382d39;if(_0xd9ccc[_0x563f61(0x161)](_0xd9ccc[_0x563f61(0x192)],_0xd9ccc[_0x563f61(0x156)]))logger[_0x563f61(0x209)](_0xd9ccc[_0x563f61(0x1f7)]);else{const _0x131c62=_0x270c4a['cluster']['tags'];return _0x131c62&&_0xd9ccc[_0x563f61(0x1b0)](_0x131c62[_0xd9ccc[_0x563f61(0x1a3)]][_0x563f61(0x195)](),_0xd9ccc[_0x563f61(0x15e)]);}}),_0x16955e;}['isVPCPresent'](_0x51b77c){const _0x501fec=a0_0x49f4a0,_0xd45851={'jyhZn':function(_0x587c2c,_0x58e784){return _0x587c2c!==_0x58e784;},'FdxYl':'EadXn','jxMmu':_0x501fec(0x170),'VbikO':function(_0x3afa38,_0x3f76d1){return _0x3afa38(_0x3f76d1);},'CFAgO':_0x501fec(0x13a),'XbkCY':function(_0x1c1bf5,_0xd97918){return _0x1c1bf5===_0xd97918;},'oHggZ':'ukeqo','QhJMH':_0x501fec(0x21e),'UBZZB':function(_0xedf09f,_0xe708d6){return _0xedf09f(_0xe708d6);},'fCqCz':_0x501fec(0x19a),'bCyLx':_0x501fec(0x1e2),'LAOEc':_0x501fec(0x230),'Oeutc':_0x501fec(0x154)},_0x31b99c={};_0x31b99c['VpcIds']=[_0x51b77c];let _0x2a4c8c=_0x31b99c;return new Promise((_0xd7bbb3,_0x1d3ab3)=>{const _0x1906c9=_0x501fec,_0x1c6705={'JIBsM':_0xd45851['CFAgO'],'Cgcep':function(_0x2c9c29,_0x547800){const _0x1dbeeb=a0_0x1680;return _0xd45851[_0x1dbeeb(0x1a7)](_0x2c9c29,_0x547800);},'oEOKq':_0xd45851[_0x1906c9(0x186)],'YhkZv':_0xd45851[_0x1906c9(0x257)],'qHeBa':function(_0x1df532,_0x36059f){const _0x3c809a=_0x1906c9;return _0xd45851[_0x3c809a(0x14e)](_0x1df532,_0x36059f);},'aycaL':_0xd45851[_0x1906c9(0x23e)]};if(_0xd45851[_0x1906c9(0x188)](_0xd45851[_0x1906c9(0x21f)],_0xd45851['LAOEc'])){const _0x71b0a6={};_0x71b0a6[_0x1906c9(0x223)]=_0xd45851[_0x1906c9(0x152)],_0x71b0a6['region']=global_registry[_0x1906c9(0x163)];const _0x4afd9a=new awsSDK['EC2'](_0x71b0a6);_0x4afd9a[_0x1906c9(0x21c)](_0x2a4c8c)['promise']()[_0x1906c9(0x246)](_0x527f94=>{const _0x177a7d=_0x1906c9;_0x1c6705[_0x177a7d(0x19f)](_0x1c6705['oEOKq'],_0x1c6705['YhkZv'])?_0x48a9d3[_0x177a7d(0x209)](_0x1c6705[_0x177a7d(0x1b1)]):_0x1c6705[_0x177a7d(0x217)](_0xd7bbb3,!![]);})[_0x1906c9(0x226)](_0x33773a=>{const _0x445ed3=_0x1906c9;if(_0xd45851[_0x445ed3(0x188)](_0xd45851[_0x445ed3(0x160)],_0xd45851[_0x445ed3(0x1c5)]))logger['error']('Cannot\x20find\x20VPC\x20'+_0x51b77c+_0x445ed3(0x196)+global_registry[_0x445ed3(0x163)]+_0x445ed3(0x22a)),_0xd45851['VbikO'](_0xd7bbb3,![]);else{const _0xff425d={};_0xff425d[_0x445ed3(0x223)]=_0x1c6705[_0x445ed3(0x1a0)];const _0x5c5fde=new _0x18c217[(_0x445ed3(0x1ab))](_0xff425d),_0x26bbb4={};return _0x26bbb4[_0x445ed3(0x212)]=this[_0x445ed3(0x212)],_0x26bbb4[_0x445ed3(0x149)]=_0x555610,_0x5c5fde['describeNodegroup'](_0x26bbb4)[_0x445ed3(0x258)]();}});}else{const _0x5bc32f={};_0x5bc32f[_0x1906c9(0x223)]=_0x1c6705[_0x1906c9(0x1a0)];const _0x3a9121=new _0x36f0ef[(_0x1906c9(0x1ab))](_0x5bc32f),_0x557d6b={};return _0x557d6b[_0x1906c9(0x16d)]=this[_0x1906c9(0x212)],_0x3a9121[_0x1906c9(0x13e)](_0x557d6b)[_0x1906c9(0x258)]();}});}[a0_0x49f4a0(0x22f)](_0x215dc5,_0x5cac02){const _0x2970f7=a0_0x49f4a0,_0x3ea724={'GGRNK':function(_0x33ecfd,_0x1b755d){return _0x33ecfd===_0x1b755d;},'ofMJQ':_0x2970f7(0x231),'CKZIj':function(_0x3024c4,_0x3b7945){return _0x3024c4(_0x3b7945);},'OMmYa':_0x2970f7(0x154),'lKGzY':function(_0x535c6,_0x20d064){return _0x535c6!==_0x20d064;},'TMjVY':'CveLl','idKhZ':_0x2970f7(0x1e1),'uroIV':_0x2970f7(0x189),'foHvD':_0x2970f7(0x18c),'efgXh':_0x2970f7(0x206),'lvhZK':_0x2970f7(0x183),'YvJsz':'hnIkx','cGJWp':function(_0x3404af,_0x264a6b){return _0x3404af(_0x264a6b);},'xUCIM':_0x2970f7(0x1d0),'cQepR':_0x2970f7(0x1e3)},_0x5252fa={};_0x5252fa['Name']=_0x3ea724[_0x2970f7(0x134)],_0x5252fa[_0x2970f7(0x1f9)]=[_0x5cac02];const _0xd970a4={};_0xd970a4[_0x2970f7(0x1a4)]=[_0x5252fa];let _0x1819ec=_0xd970a4;return new Promise((_0x292367,_0x1486ef)=>{const _0x557cba=_0x2970f7,_0x2e6743={'pHgyq':function(_0x51995b,_0x4a78ae){const _0x2382b7=a0_0x1680;return _0x3ea724[_0x2382b7(0x185)](_0x51995b,_0x4a78ae);},'uUprY':_0x3ea724[_0x557cba(0x16a)],'INKaI':function(_0x71b088,_0xf50324){return _0x3ea724['CKZIj'](_0x71b088,_0xf50324);},'BPRMx':_0x3ea724[_0x557cba(0x219)],'NQvjT':function(_0x230075,_0x6872d2){const _0x4b608b=_0x557cba;return _0x3ea724[_0x4b608b(0x22b)](_0x230075,_0x6872d2);},'AGYZJ':_0x3ea724[_0x557cba(0x20a)],'shBqE':_0x3ea724[_0x557cba(0x148)],'fECUi':_0x3ea724[_0x557cba(0x139)],'FOrXN':function(_0x17fc51,_0x3009f9){const _0xe85d28=_0x557cba;return _0x3ea724[_0xe85d28(0x22b)](_0x17fc51,_0x3009f9);},'iLHvj':_0x3ea724[_0x557cba(0x1e0)],'yEZfD':_0x3ea724[_0x557cba(0x15c)],'gVKrR':_0x3ea724[_0x557cba(0x174)],'TNztD':function(_0x452129,_0x2fb84d){const _0x462c78=_0x557cba;return _0x3ea724[_0x462c78(0x22b)](_0x452129,_0x2fb84d);},'McEIo':_0x3ea724[_0x557cba(0x17e)],'dzAfb':function(_0x38f358,_0x67a56e){const _0x659bcc=_0x557cba;return _0x3ea724[_0x659bcc(0x1a2)](_0x38f358,_0x67a56e);}};if(_0x3ea724[_0x557cba(0x185)](_0x3ea724[_0x557cba(0x1f0)],_0x3ea724[_0x557cba(0x1f0)])){const _0x1b7463={};_0x1b7463[_0x557cba(0x223)]=_0x3ea724[_0x557cba(0x219)],_0x1b7463[_0x557cba(0x205)]=global_registry[_0x557cba(0x163)];const _0x2664c5=new awsSDK[(_0x557cba(0x1ed))](_0x1b7463);_0x2664c5[_0x557cba(0x1aa)](_0x1819ec)[_0x557cba(0x258)]()[_0x557cba(0x246)](_0xfc666e=>{const _0x35249=_0x557cba,_0x4ae50e={'vzyZs':function(_0x3d6370,_0x4067cd){return _0x2e6743['pHgyq'](_0x3d6370,_0x4067cd);},'eARWT':_0x2e6743[_0x35249(0x25a)],'Xoffj':function(_0x321faf,_0x3103b1){return _0x2e6743['INKaI'](_0x321faf,_0x3103b1);},'QYIps':_0x2e6743[_0x35249(0x14a)],'McKfC':function(_0x1b874c,_0x1b14fa){const _0x43c7f8=_0x35249;return _0x2e6743[_0x43c7f8(0x162)](_0x1b874c,_0x1b14fa);},'iHZqf':function(_0x5d26a6,_0x41927b){const _0x3692a4=_0x35249;return _0x2e6743[_0x3692a4(0x1af)](_0x5d26a6,_0x41927b);},'cqawa':_0x2e6743[_0x35249(0x16b)],'touZA':_0x2e6743[_0x35249(0x159)],'SfbGw':function(_0x136c83,_0x4d3311){const _0x134af8=_0x35249;return _0x2e6743[_0x134af8(0x1af)](_0x136c83,_0x4d3311);},'nczOm':_0x2e6743[_0x35249(0x146)],'NCnPi':function(_0xbc947b,_0x37158a){const _0x5416c1=_0x35249;return _0x2e6743[_0x5416c1(0x176)](_0xbc947b,_0x37158a);},'WfYBn':_0x2e6743[_0x35249(0x1ef)],'MespT':_0x2e6743['yEZfD']};if(_0x2e6743[_0x35249(0x1d2)](_0x2e6743[_0x35249(0x166)],_0x2e6743[_0x35249(0x166)])){const _0x2764a9=[],_0x3e377b=[];_0xfc666e[_0x35249(0x144)][_0x35249(0x1f8)](_0x323bae=>{const _0x30711d=_0x35249;if(_0x4ae50e[_0x30711d(0x1fa)](_0x4ae50e['eARWT'],_0x4ae50e[_0x30711d(0x222)]))_0x2764a9[_0x30711d(0x1fe)](_0x323bae[_0x30711d(0x200)]);else return _0x4037d6[_0x30711d(0x225)](_0x464de4)?!![]:(_0x5ce5ff[_0x30711d(0x1fe)](_0x2659f7),![]);});const _0x298b19=_0x215dc5[_0x35249(0x21d)](_0x390d4e=>{const _0x57cd13=_0x35249,_0x2f8104={'IQTSQ':_0x4ae50e[_0x57cd13(0x216)],'ikkGK':function(_0x5af733,_0x1443b7){const _0x4bea78=_0x57cd13;return _0x4ae50e[_0x4bea78(0x1a9)](_0x5af733,_0x1443b7);}};if(_0x4ae50e[_0x57cd13(0x17f)](_0x4ae50e[_0x57cd13(0x1bf)],_0x4ae50e[_0x57cd13(0x191)])){if(_0x2764a9['includes'](_0x390d4e)){if(_0x4ae50e['SfbGw'](_0x4ae50e[_0x57cd13(0x173)],_0x4ae50e[_0x57cd13(0x173)])){const _0x519326={'hVxGP':function(_0x12a5b2,_0x542b3f){const _0x452691=_0x57cd13;return _0x2f8104[_0x452691(0x1ca)](_0x12a5b2,_0x542b3f);},'ZgrsS':function(_0x7e5e81,_0x1d7b30){const _0x46e0a9=_0x57cd13;return _0x2f8104[_0x46e0a9(0x1ca)](_0x7e5e81,_0x1d7b30);}},_0x3eef3b={};_0x3eef3b[_0x57cd13(0x198)]=[_0x224b49];let _0x28107d=_0x3eef3b;return new _0x2455c8((_0x1c274c,_0x547e32)=>{const _0x6fe469=_0x57cd13,_0x15d099={};_0x15d099[_0x6fe469(0x223)]=_0x2f8104['IQTSQ'],_0x15d099[_0x6fe469(0x205)]=_0x99cd13[_0x6fe469(0x163)];const _0xba6a4b=new _0x19d718[(_0x6fe469(0x1ed))](_0x15d099);_0xba6a4b[_0x6fe469(0x21c)](_0x28107d)[_0x6fe469(0x258)]()[_0x6fe469(0x246)](_0x4032e1=>{const _0xbe3052=_0x6fe469;_0x519326[_0xbe3052(0x132)](_0x1c274c,!![]);})[_0x6fe469(0x226)](_0x248816=>{const _0x44950f=_0x6fe469;_0x54c35e[_0x44950f(0x12e)](_0x44950f(0x169)+_0x235508+_0x44950f(0x196)+_0x4898f1[_0x44950f(0x163)]+'.\x20Please\x20Check\x20and\x20try\x20again'),_0x519326[_0x44950f(0x190)](_0x1c274c,![]);});});}else return!![];}else{if(_0x4ae50e[_0x57cd13(0x1c1)](_0x4ae50e['WfYBn'],_0x4ae50e['MespT']))return _0x3e377b[_0x57cd13(0x1fe)](_0x390d4e),![];else _0x4ae50e[_0x57cd13(0x20c)](_0x12f35c,!![]);}}else this[_0x57cd13(0x254)]();});_0x2e6743['INKaI'](_0x292367,[_0x298b19,_0x3e377b]);}else return!![];})['catch'](_0x16bd8d=>{const _0x4fa66a=_0x557cba;_0x2e6743[_0x4fa66a(0x15d)](_0x2e6743[_0x4fa66a(0x1e9)],_0x2e6743['McEIo'])?!this[_0x4fa66a(0x1e7)]()&&this[_0x4fa66a(0x254)]():(logger[_0x4fa66a(0x12e)](_0x4fa66a(0x1e4)+_0x215dc5+_0x4fa66a(0x196)+global_registry[_0x4fa66a(0x163)]+_0x4fa66a(0x1ad)+_0x16bd8d),_0x2e6743[_0x4fa66a(0x162)](_0x292367,[![],[]]));});}else{const _0x2c4f9d={'YkjBj':function(_0x460c23,_0x1403f6){return _0x2e6743['dzAfb'](_0x460c23,_0x1403f6);},'tYGEl':function(_0x5c5fad,_0x24fc4c){return _0x2e6743['INKaI'](_0x5c5fad,_0x24fc4c);}},_0x56afdd={};_0x56afdd[_0x557cba(0x223)]=_0x2e6743[_0x557cba(0x14a)],_0x56afdd[_0x557cba(0x205)]=_0x7ca004[_0x557cba(0x163)];const _0x51b8f8=new _0x51307e[(_0x557cba(0x1ed))](_0x56afdd);_0x51b8f8['describeVpcs'](_0x267a13)[_0x557cba(0x258)]()['then'](_0x4d6b7a=>{_0x2c4f9d['YkjBj'](_0x189316,!![]);})[_0x557cba(0x226)](_0x3d3016=>{const _0x23d84e=_0x557cba;_0x4837c3[_0x23d84e(0x12e)](_0x23d84e(0x169)+_0x5dd3a4+_0x23d84e(0x196)+_0x5beaed['clusterRegion']+_0x23d84e(0x22a)),_0x2c4f9d[_0x23d84e(0x1ff)](_0x4ff7f8,![]);});}});}}const a0_0xf62ff1={};a0_0xf62ff1['AWSCloudProvider']=AWSCloudProvider,module[a0_0x49f4a0(0x232)]=a0_0xf62ff1;function a0_0x1680(_0x1585d3,_0x4430f4){const _0x4a9d40=a0_0x4a9d();return a0_0x1680=function(_0x168090,_0x54d8f4){_0x168090=_0x168090-0x12c;let _0x5990d0=_0x4a9d40[_0x168090];return _0x5990d0;},a0_0x1680(_0x1585d3,_0x4430f4);}function a0_0x4a9d(){const _0x232ad6=['SqwAi','EC2','createAuthConfigMap','iLHvj','xUCIM','\x20ACCESS\x20KEY:\x20','type','autoscaler-creation-failed','cloudProviderName','nodeRole','iQpOf','fVtwF','forEach','Values','vzyZs','message','clusters','AKNJE','push','tYGEl','SubnetId','cloudProvider','TLHqR','jsjqP','ingress','region','wvSGp','kube-system','iFdkv','info','TMjVY','HnZoI','Xoffj','nLnaz','pJYTB','IAATc','GgLge','WfmrN','clusterName','Cajuf','browserstack','bnhIB','QYIps','qHeBa','3MaVdmb','OMmYa','NodeRole\x20=>\x20','nzWwe','describeVpcs','every','DKIRn','bCyLx','lcpui','mQzQk','eARWT','apiVersion','join','includes','catch','LOG','dTJgS','YWMmI','.\x20Please\x20Check\x20and\x20try\x20again','lKGzY','getUserInput','../utils/deleteStack','houju','isSubnetsValid','ywFIq','GTvrx','exports','TzxaN','mZEgS','utf-8','secret','rws','LGnHl','<ARN>','zIyXh','tVTYl','describeNodegroup','Creating\x20Autoscaler\x20Role','fCqCz','aws-sdk','deleteCluster','PvKGs','AjrKi','nPLEn','XIRsP','vMeHZ','then','RRGNS','EqiWk','kSoln','20536452qtCwFv','getClusterInfo','./CloudProvider','MVsPA','Following\x20resources\x20are\x20created:','nodegroup','hostname','eoQdu','BDQUJ','reportToGalactusAndSendToEDS','setConfig','Subnets\x20=>\x20','cCbdw','QhJMH','promise','zLJNy','uUprY','OutputValue','WQKjs','error','tags','setupNewCluster','namespace','hVxGP','qXFOt','cQepR','WmNYE','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','browserstack:managedBy','aws_credentials','uroIV','Authmap\x20already\x20exists.\x20Not\x20updating','XgnSe','veBNO','config','describeCluster','mapRoles','ClusterRole\x20=>\x20','VPC\x20=>\x20','create-grid-called','\x0aaws_secret_access_key\x20=\x20','Subnets','EfOoF','fECUi','load','idKhZ','nodegroupName','BPRMx','195131VKzXGM','CcVax','ULPZv','UBZZB','Cluster\x20=>\x20','listClusters','mFfbv','Oeutc','VzyjB','2016-11-15','lIrDz','oWpOx','AkxlO','VPNcj','shBqE','cluster','2ArHrPX','efgXh','TNztD','tuCar','MreXa','FdxYl','AxAma','INKaI','clusterRegion',',\x20SecurityGroups\x20=>\x20','2804704otYmmf','gVKrR','js-yaml','configureIfNotConfigured','Cannot\x20find\x20VPC\x20','ofMJQ','AGYZJ','status','name','Autoscaler\x20Role\x20created.ARN:\x20','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','jnSmV','WAfcp','wMUzm','nczOm','lvhZK','EoKzZ','FOrXN','../config/constants','SecurityGroups\x20=>\x20','Sngqq','../utils/hstUtils',',\x20Subnets\x20=>\x20','setupAutoscaler','aaSYh','YvJsz','iHZqf','\x20SECRET\x20KEY:\x20','EOhxE',',\x20NodeRole\x20=>\x20','KtLAm','mUIlN','GGRNK','oHggZ','endpoint','jyhZn','GlfWu','muScg','readFileAsync','ZcHAL','mDPMf','tfJKA','cloudProviderSecretKey','ZgrsS','touZA','NimFQ','1722188uAdRcK','data','toLowerCase','\x20in\x20region\x20','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','VpcIds','accessKey','2017-11-01','../utils/gridComponents','HMbvn','wxuyB','10yEINJm','Cgcep','aycaL','cAQiK','cGJWp','LxvYr','Filters',',\x20ClusterRole\x20=>\x20','split','XbkCY','FLQuX','McKfC','describeSubnets','EKS','-NodeGroup','.\x20Error:\x20','awsConfigSet','NQvjT','opZoN','JIBsM','../utils/createClusterStack','3145995yFyxPj','secretAccessKey','YAxPu','xkkUZ','Outputs','LTxap','rNVVW','BtfVA','zBkyu','Stacks','sendEventToBackend','kXAsj','cqawa','checkClusterCreated','NCnPi','match','6553267iTqyHF','rSQUj','jxMmu','eznwq','5079942lFbrUI','TewBk','iTERC','ikkGK',',VPC\x20=>\x20','GYmuq','getNodeGroupInfo','webSocketUtils','replace','bBSfY','loadBalancer','pHgyq','toUpperCase','cloudProviderAccessKey','3|1|0|4|2','update','ASshT','body','createNamespacedConfigMap','exit','WARNING','templates','FVEZF','LkyIV','aws-auth-cm.yaml','foHvD','KJJgR','mbTCA','vpc-id','Cannot\x20find\x20subnets\x20','JDXPj','xsnLZ','isConfigured','jENIg','McEIo','isClusterPresent','warn'];a0_0x4a9d=function(){return _0x232ad6;};return a0_0x4a9d();}
@@ -1 +1 @@
1
- function a1_0x26c9(){const _0x27942f=['782520MWMPnD','../config/constants','1128CuipxD','containerClient','js-yaml','resourceClient','path','136329mkzGYE','20wRtmOf','networkClient','./CloudProvider','474EqySGc','20874OcbaAP','0|5|4|1|2|3','1731835fAtmyE','AzureCloudProvider','93411ANQcYf','clusterInfo','storageClient','111666KSlGcJ','1912ZaXbeq','yjama','split'];a1_0x26c9=function(){return _0x27942f;};return a1_0x26c9();}const a1_0x3c9de2=a1_0xa534;(function(_0x3b26b7,_0x493782){const _0x123043=a1_0xa534,_0x4bd11f=_0x3b26b7();while(!![]){try{const _0x53abd4=parseInt(_0x123043(0x10c))/0x1+parseInt(_0x123043(0x101))/0x2+parseInt(_0x123043(0x107))/0x3*(-parseInt(_0x123043(0x102))/0x4)+parseInt(_0x123043(0xfc))/0x5+parseInt(_0x123043(0x110))/0x6*(-parseInt(_0x123043(0x111))/0x7)+parseInt(_0x123043(0x105))/0x8+-parseInt(_0x123043(0xfe))/0x9*(parseInt(_0x123043(0x10d))/0xa);if(_0x53abd4===_0x493782)break;else _0x4bd11f['push'](_0x4bd11f['shift']());}catch(_0x58492a){_0x4bd11f['push'](_0x4bd11f['shift']());}}}(a1_0x26c9,0x30e58));const fs=require('fs'),path=require(a1_0x3c9de2(0x10b)),yaml=require(a1_0x3c9de2(0x109)),{logger}=require('../config/logger'),{CloudProvider}=require(a1_0x3c9de2(0x10f)),{AZURE,WS_EVENTS,global_registry}=require(a1_0x3c9de2(0x106)),{deleteRoutingDeps}=require('../utils/gridComponents');class AzureCloudProvider extends CloudProvider{constructor(_0x2f5ab6,_0x2ae3a4,_0x15f489,_0x588143){const _0x13dae3=a1_0x3c9de2,_0x5903f1={};_0x5903f1[_0x13dae3(0x103)]=_0x13dae3(0x112);const _0x178a7c=_0x5903f1,_0x33dda9=_0x178a7c['yjama'][_0x13dae3(0x104)]('|');let _0x2af521=0x0;while(!![]){switch(_0x33dda9[_0x2af521++]){case'0':super(AZURE,_0x2f5ab6,_0x2ae3a4,_0x15f489,_0x588143);continue;case'1':this[_0x13dae3(0x100)]=null;continue;case'2':this[_0x13dae3(0x10a)]=null;continue;case'3':this[_0x13dae3(0x10e)]=null;continue;case'4':this[_0x13dae3(0x108)]=null;continue;case'5':this[_0x13dae3(0xff)]=null;continue;}break;}}}const a1_0x569d18={};function a1_0xa534(_0x199d34,_0x30880c){const _0x26c908=a1_0x26c9();return a1_0xa534=function(_0xa53457,_0x312a24){_0xa53457=_0xa53457-0xfc;let _0xddebf6=_0x26c908[_0xa53457];return _0xddebf6;},a1_0xa534(_0x199d34,_0x30880c);}a1_0x569d18[a1_0x3c9de2(0xfd)]=AzureCloudProvider,module['exports']=a1_0x569d18;
1
+ const a1_0x268dc6=a1_0x2ef2;(function(_0xf4219c,_0x24d8c0){const _0x410a73=a1_0x2ef2,_0x1bbe25=_0xf4219c();while(!![]){try{const _0x28a80e=-parseInt(_0x410a73(0x163))/0x1+-parseInt(_0x410a73(0x15e))/0x2+parseInt(_0x410a73(0x168))/0x3+parseInt(_0x410a73(0x171))/0x4*(parseInt(_0x410a73(0x16f))/0x5)+parseInt(_0x410a73(0x169))/0x6+-parseInt(_0x410a73(0x16d))/0x7*(-parseInt(_0x410a73(0x16b))/0x8)+-parseInt(_0x410a73(0x160))/0x9*(parseInt(_0x410a73(0x16c))/0xa);if(_0x28a80e===_0x24d8c0)break;else _0x1bbe25['push'](_0x1bbe25['shift']());}catch(_0xe34f50){_0x1bbe25['push'](_0x1bbe25['shift']());}}}(a1_0x1586,0xda48c));const fs=require('fs'),path=require(a1_0x268dc6(0x15d)),yaml=require('js-yaml'),{logger}=require(a1_0x268dc6(0x170)),{CloudProvider}=require(a1_0x268dc6(0x16a)),{AZURE,WS_EVENTS,global_registry}=require(a1_0x268dc6(0x15c)),{deleteRoutingDeps}=require(a1_0x268dc6(0x162));class AzureCloudProvider extends CloudProvider{constructor(_0x586859,_0xfd9b94,_0x3b6047,_0x3f191a){const _0x2728b6=a1_0x268dc6,_0x40dac5={};_0x40dac5['xfHRN']=_0x2728b6(0x15f);const _0x4fb7aa=_0x40dac5,_0x21caa0=_0x4fb7aa[_0x2728b6(0x16e)]['split']('|');let _0x2acbd5=0x0;while(!![]){switch(_0x21caa0[_0x2acbd5++]){case'0':super(AZURE,_0x586859,_0xfd9b94,_0x3b6047,_0x3f191a);continue;case'1':this[_0x2728b6(0x15b)]=null;continue;case'2':this[_0x2728b6(0x165)]=null;continue;case'3':this['resourceClient']=null;continue;case'4':this[_0x2728b6(0x164)]=null;continue;case'5':this[_0x2728b6(0x161)]=null;continue;}break;}}}const a1_0x5f1e13={};function a1_0x2ef2(_0x3c062c,_0x22e50e){const _0x1586f0=a1_0x1586();return a1_0x2ef2=function(_0x2ef275,_0x7cac7){_0x2ef275=_0x2ef275-0x15b;let _0x437262=_0x1586f0[_0x2ef275];return _0x437262;},a1_0x2ef2(_0x3c062c,_0x22e50e);}function a1_0x1586(){const _0x5c2c2f=['../config/constants','path','2354436TFqihb','0|5|1|2|3|4','27QXQZpk','clusterInfo','../utils/gridComponents','866599ZFxOIm','networkClient','storageClient','AzureCloudProvider','exports','2815170ivUKcy','1672290Viunfh','./CloudProvider','1145416WZFWyj','805010KVVSSY','49zOevtO','xfHRN','20PBiGZC','../config/logger','960068kAbYRy','containerClient'];a1_0x1586=function(){return _0x5c2c2f;};return a1_0x1586();}a1_0x5f1e13[a1_0x268dc6(0x166)]=AzureCloudProvider,module[a1_0x268dc6(0x167)]=a1_0x5f1e13;
@@ -1 +1 @@
1
- var a2_0xf648b=a2_0x312a;(function(_0xa65dc,_0x5a835b){var _0x27b1de=a2_0x312a,_0x355f9f=_0xa65dc();while(!![]){try{var _0x3fae93=parseInt(_0x27b1de(0x1bd))/0x1+parseInt(_0x27b1de(0x1b9))/0x2+parseInt(_0x27b1de(0x1b8))/0x3*(-parseInt(_0x27b1de(0x1c0))/0x4)+parseInt(_0x27b1de(0x1c2))/0x5*(parseInt(_0x27b1de(0x1bf))/0x6)+parseInt(_0x27b1de(0x1c1))/0x7+-parseInt(_0x27b1de(0x1be))/0x8*(parseInt(_0x27b1de(0x1c7))/0x9)+-parseInt(_0x27b1de(0x1c5))/0xa*(parseInt(_0x27b1de(0x1bb))/0xb);if(_0x3fae93===_0x5a835b)break;else _0x355f9f['push'](_0x355f9f['shift']());}catch(_0x4fd037){_0x355f9f['push'](_0x355f9f['shift']());}}}(a2_0x68ef,0x8a211));class CloudProvider{constructor(_0x592c7c,_0x25707b,_0x593d12,_0x41763e,_0x23b492){var _0x374e99=a2_0x312a,_0x5851b0={};_0x5851b0['IRaRm']='3|0|2|1|4';var _0x4eb118=_0x5851b0,_0x3ac8c1=_0x4eb118[_0x374e99(0x1c8)][_0x374e99(0x1bc)]('|'),_0x3cb9d9=0x0;while(!![]){switch(_0x3ac8c1[_0x3cb9d9++]){case'0':this[_0x374e99(0x1c3)]=_0x25707b;continue;case'1':this[_0x374e99(0x1c9)]=_0x41763e;continue;case'2':this[_0x374e99(0x1c4)]=_0x593d12;continue;case'3':this[_0x374e99(0x1ca)]=_0x592c7c;continue;case'4':this[_0x374e99(0x1c6)]=_0x23b492;continue;}break;}}}var a2_0x1c15e4={};function a2_0x312a(_0x652d9e,_0x3dec24){var _0x68ef48=a2_0x68ef();return a2_0x312a=function(_0x312a9d,_0x1fd9c6){_0x312a9d=_0x312a9d-0x1b8;var _0xfa856d=_0x68ef48[_0x312a9d];return _0xfa856d;},a2_0x312a(_0x652d9e,_0x3dec24);}a2_0x1c15e4['CloudProvider']=CloudProvider,module[a2_0xf648b(0x1ba)]=a2_0x1c15e4;function a2_0x68ef(){var _0x37969f=['cloudProviderName','3sCdrkT','136834KxHBZv','exports','33kTewpm','split','498785XLJAcj','1597664zPmAkz','402bmpHfO','137948bZxOOX','210042hpZxHE','57740nawypD','clusterName','gridName','1237480efZBql','webSocketUtils','18oOBWwr','IRaRm','rws'];a2_0x68ef=function(){return _0x37969f;};return a2_0x68ef();}
1
+ var a2_0x6331ed=a2_0x9252;function a2_0x9252(_0xd8134,_0x21467a){var _0x363fe1=a2_0x363f();return a2_0x9252=function(_0x92528a,_0x2267d2){_0x92528a=_0x92528a-0xe8;var _0x57846f=_0x363fe1[_0x92528a];return _0x57846f;},a2_0x9252(_0xd8134,_0x21467a);}(function(_0x214dd4,_0xbd417f){var _0x22d81c=a2_0x9252,_0x3aba02=_0x214dd4();while(!![]){try{var _0x36c6c2=parseInt(_0x22d81c(0xf2))/0x1+-parseInt(_0x22d81c(0xf8))/0x2+parseInt(_0x22d81c(0xf9))/0x3*(parseInt(_0x22d81c(0xf0))/0x4)+parseInt(_0x22d81c(0xf3))/0x5+-parseInt(_0x22d81c(0xee))/0x6+-parseInt(_0x22d81c(0xf7))/0x7*(parseInt(_0x22d81c(0xf1))/0x8)+parseInt(_0x22d81c(0xea))/0x9;if(_0x36c6c2===_0xbd417f)break;else _0x3aba02['push'](_0x3aba02['shift']());}catch(_0x436bbd){_0x3aba02['push'](_0x3aba02['shift']());}}}(a2_0x363f,0xcfb7b));class CloudProvider{constructor(_0x47df5c,_0x2a8587,_0x554276,_0xfbda9b,_0x4725c1){var _0x2228d4=a2_0x9252,_0x5385e9={};_0x5385e9[_0x2228d4(0xe8)]=_0x2228d4(0xf4);var _0x44e0ef=_0x5385e9,_0x148dac=_0x44e0ef[_0x2228d4(0xe8)][_0x2228d4(0xef)]('|'),_0x33efb0=0x0;while(!![]){switch(_0x148dac[_0x33efb0++]){case'0':this[_0x2228d4(0xeb)]=_0x4725c1;continue;case'1':this[_0x2228d4(0xe9)]=_0xfbda9b;continue;case'2':this[_0x2228d4(0xed)]=_0x554276;continue;case'3':this[_0x2228d4(0xec)]=_0x47df5c;continue;case'4':this['clusterName']=_0x2a8587;continue;}break;}}}var a2_0x179214={};function a2_0x363f(){var _0x21721b=['CloudProvider','5721646MZWWmP','2945202YVxIne','1252722wOaXvW','NJErs','rws','18932805gPOAaO','webSocketUtils','cloudProviderName','gridName','6131562SkbjXR','split','8bxBrja','8LmTnGW','783263BtkKoM','2203305tJsvAs','3|4|2|1|0','exports'];a2_0x363f=function(){return _0x21721b;};return a2_0x363f();}a2_0x179214[a2_0x6331ed(0xf6)]=CloudProvider,module[a2_0x6331ed(0xf5)]=a2_0x179214;
@@ -1 +1 @@
1
- const a3_0x165ac2=a3_0x46bd;function a3_0x3a33(){const _0x1248f1=['ujLkW','WXIvD','boNaE','rhGJD','storage.multipartUploads.abort','profileId','TbRVG','getClusterInfo','execSync','VfznP','gcp_credentials.json','https://www.googleapis.com/compute/v1/projects/','ZJjNg','YGmrz','configureIfNotConfigured','credentialsPath','NeKTW','UkyXs','setupServiceAccount','LMVNR','1315283orqhEb','accounts','vpcInfo','sjNaQ','exec','toLowerCase','SyAsa','Cannot\x20find\x20subnets\x20','autoscaling','getGridHostname','keyFile','gcloud\x20auth\x20login\x20--cred-file=','projectId','NetworksClient','gridProfileId','wqlad','updateWindowsNodeGroup','Cluster\x20creation\x20failed','name','resourceLabels','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','mbZhd','eiFGl','UYVwi','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','GKWMV','6|2|3|5|0|1|4','storage.buckets.update','isClusterPresent','jGdAu','ekohI','NgExk','ARSKM','IAWmj','UwSKj','replace','MyDoM','baSGU','storage.buckets.listTagBindings','/serviceAccounts/','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','gIkyT','vSmSs','networkClient','RUNNING','bstackUsername','CQWHx','WEenQ','storage.objects.create','instanceType','/subnetworks/','jrMdq','gkecluster.json','RMYzB','XUaoi','templates','abLsS','setIamPolicy','iamClient','length','type','ingress','Ukmzk','yxYGh','YOAiQ','parent','../utils/userInput','KHMMX','../config/logger','lcMbS','machineType','utf-8','DYkvu','fetchLocalCreds','Service\x20account\x20already\x20exists,\x20skipping','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','balZw','NTTYt','isVPCPresent','DaslB','ArbiR','checkServiceAccount','dMajK','isSubnetsValid','./CloudProvider','GKE\x20Cluster\x20deletion\x20failed','isBrowserstackCluster','serviceAccountName','DoqzS','omlXG','unrZW','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','eguBt','GkNgB','ePFle','mfksa','roles','EBgLQ','klgzx','QNYrL','serviceAccount:','json','djyUA','organizations','info','nosEw','yqNXB','Found\x20cluster\x20with\x20name\x20\x27','storage.buckets.delete','VjkAi','OChco','managedby','EiiFb','containerClient','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','../utils/utilityMethods','fZtVm','qWwQj','create','bindings','Uvoig','exit','KubeConfigTemplate.yaml','DKIge','includedPermissions','ZMyAZ','/roles/','list','maxNodeCount','358850oWfoOo','@google-cloud/container','Creating\x20service\x20account','subnetwork','requestBody','cloudProviderName','gcpConfigSet','updateClusterRegion','UHTzW','resourcemanagerClient','KMLHq','minNodes','5979320MnqYLF','kVuBD','storage.objects.update','gcpresources','PkqlB','config','browserstack','storage.multipartUploads.list','storage.multipartUploads.create','RlPaG','GOKyo','lsNzF','6186327oTcnTk','dQuZh','rXqIc','deleteCluster','/clusters/','QLreF','vzyjr','aVsPy','customRoleName','dVIMb','rws','parse','CrNye','createCluster','storage.buckets.setIamPolicy','delay','qwMKA','error','projects/','TpYPG','Dltsv','turboscale_custom_role','GLGMG','qHVce','cDMAq','fnemw','endpoint','CDAmN','wDJba','piDJZ','Swgoj','evuJD','FdbVm','network','iam','ejTGM','jbhjL','webSocketUtils','maxNodes','Fkkib','FcIGY','xOTBc','EhFBq','clusterRegion','nbGKk','title','yhYwl','bmezA','serviceAccounts','listClusters','isConfigured','yJGsA','DwrZU','lfJGx','readFileAsync','ueFst','project','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','Deleting\x20the\x20cluster\x20','auth','KgMRa','iam.serviceAccounts.signBlob','rJUvh','clusterName','serviceAccount','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','getKubeConfigData','loadBalancer','../utils/gridComponents','aNzPZ','WtwjF','DjtjL','rTOoX','jGJyK','Vasvy','masterAuth','child_process','1110792rwpjKx','newRegion','EmYnf','YtayK','11725152VmnbzL','getCluster','LdHKC','\x20--windows-os-version=ltsc2022\x20--region\x20','2ZCJaPx','rnDep','YybFx','storage.objects.get','oCoXw','toString','message','googleapis','pwBrQ','subnetworks','push','getIamPolicy','storage.objects.delete','stack','OdiCz','VydDe','/regions/','PkSIl','join','CwXzA','RESOURCES','nixyQ','faths','getUserInput','minNodeCount','data','sendGCPInfoToHST','fFJIn','KqnFn','ClusterManagerClient','accessKey','accountId','YbspO','getClient','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','../config/constants','SITbc','storage.buckets.get','12654616efuKOg','@google-cloud/resource-manager','status','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','EpOqA','log','nodePools','ESIYl','regionmap.json','bIyfi','xuTAC','xKxNN','exports','setConfig','GoogleCloudProvider','HBIFQ','cloudProvider','https://','UpNrB','pDQHU','sehIg','storage.multipartUploads.listParts','jvTOV','DAamN','fsiHG','Cluster\x20deletion\x20completed','OtRRZ','LJoMk','eTHaT','util','XIEzP','LOG','projects','location','tjQsZ','rtxQR','project_id','storage.buckets.getObjectInsights','DOUQT','default','\x20--quiet\x20--user-output-enabled=false','ANsNR','uWSCR','jMKzY','concat','Thojv','split','bstackAccesskey','clusterCaCertificate','bplpo','@google-cloud/compute','.iam.gserviceaccount.com','.\x20Error:\x20','FelQf','xeZWX','oMBxU','TcyfR','/locations/','mgEXc','FuTTA','tYQNr'];a3_0x3a33=function(){return _0x1248f1;};return a3_0x3a33();}(function(_0x12d3bb,_0x25cc86){const _0x1df70e=a3_0x46bd,_0x46d35e=_0x12d3bb();while(!![]){try{const _0x352f02=-parseInt(_0x1df70e(0x188))/0x1*(parseInt(_0x1df70e(0x276))/0x2)+parseInt(_0x1df70e(0x26e))/0x3+parseInt(_0x1df70e(0x215))/0x4+-parseInt(_0x1df70e(0x209))/0x5+-parseInt(_0x1df70e(0x272))/0x6+parseInt(_0x1df70e(0x221))/0x7+parseInt(_0x1df70e(0x29c))/0x8;if(_0x352f02===_0x25cc86)break;else _0x46d35e['push'](_0x46d35e['shift']());}catch(_0xe90201){_0x46d35e['push'](_0x46d35e['shift']());}}}(a3_0x3a33,0xf18fd));const fs=require('fs'),path=require('path'),got=require('got'),util=require(a3_0x165ac2(0x2b9)),cp=require(a3_0x165ac2(0x26d)),{google}=require(a3_0x165ac2(0x27d)),compute=require(a3_0x165ac2(0x2ce)),container=require(a3_0x165ac2(0x20a)),{ProjectsClient}=require(a3_0x165ac2(0x29d))['v3'],{logger}=require(a3_0x165ac2(0x1cc)),{CloudProvider}=require(a3_0x165ac2(0x1dc)),{getDirForConfig,getAuthHeader}=require(a3_0x165ac2(0x1fb)),{deleteRoutingDeps,deleteAgent}=require(a3_0x165ac2(0x265)),{inputConfirmation,closeInput}=require(a3_0x165ac2(0x1ca)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x165ac2(0x299));function a3_0x46bd(_0x91674e,_0x217b0d){const _0x3a33c3=a3_0x3a33();return a3_0x46bd=function(_0x46bd46,_0x22bb7c){_0x46bd46=_0x46bd46-0x172;let _0x4fe3ac=_0x3a33c3[_0x46bd46];return _0x4fe3ac;},a3_0x46bd(_0x91674e,_0x217b0d);}class GoogleCloudProvider extends CloudProvider{constructor(_0x81c277,_0x191296,_0x5f5076,_0xdd6cb5){const _0x5f308d=a3_0x165ac2,_0x7be2b4={};_0x7be2b4[_0x5f308d(0x1b7)]='7|2|4|5|6|1|0|8|3',_0x7be2b4[_0x5f308d(0x2b7)]='turboscale-service-account',_0x7be2b4[_0x5f308d(0x1e0)]=_0x5f308d(0x236);const _0x404cfa=_0x7be2b4,_0x1c78cd=_0x404cfa[_0x5f308d(0x1b7)][_0x5f308d(0x2ca)]('|');let _0x1a0131=0x0;while(!![]){switch(_0x1c78cd[_0x1a0131++]){case'0':this[_0x5f308d(0x194)]=null;continue;case'1':this[_0x5f308d(0x183)]=null;continue;case'2':this[_0x5f308d(0x1f9)]=null;continue;case'3':this['serviceAccountName']=_0x404cfa[_0x5f308d(0x2b7)];continue;case'4':this[_0x5f308d(0x1b3)]=null;continue;case'5':this['resourcemanagerClient']=null;continue;case'6':this[_0x5f308d(0x1c2)]=null;continue;case'7':super(GCP,_0x81c277,_0x191296,_0x5f5076,_0xdd6cb5);continue;case'8':this[_0x5f308d(0x229)]=_0x404cfa['DoqzS'];continue;}break;}}[a3_0x165ac2(0x182)](){const _0x57f0e9=a3_0x165ac2,_0x567aa6={};_0x567aa6[_0x57f0e9(0x269)]=_0x57f0e9(0x1b0),_0x567aa6[_0x57f0e9(0x291)]=function(_0xa52d6,_0x410dab){return _0xa52d6!==_0x410dab;},_0x567aa6[_0x57f0e9(0x278)]=_0x57f0e9(0x176);const _0x3a7379=_0x567aa6;!this[_0x57f0e9(0x253)]()&&(_0x3a7379[_0x57f0e9(0x291)](_0x3a7379[_0x57f0e9(0x278)],_0x3a7379['YybFx'])?(_0x450a4f[_0x57f0e9(0x232)](_0x3a7379[_0x57f0e9(0x269)]),_0x4c0812[_0x57f0e9(0x201)](0x1)):this[_0x57f0e9(0x2a9)]());}[a3_0x165ac2(0x253)](){const _0x43e42a=a3_0x165ac2,_0xc2d83d={};_0xc2d83d[_0x43e42a(0x184)]=function(_0x26e504,_0x24fc37){return _0x26e504===_0x24fc37;};const _0x4d6914=_0xc2d83d;return _0x4d6914['NeKTW'](global_registry[_0x43e42a(0x20f)],!![]);}[a3_0x165ac2(0x2a9)](){const _0x33565c=a3_0x165ac2,_0x392e3d=this[_0x33565c(0x183)],_0x2eb062={};_0x2eb062['keyFile']=_0x392e3d,this['containerClient']=new container['v1'][(_0x33565c(0x293))](_0x2eb062);const _0x206fa3={};_0x206fa3[_0x33565c(0x192)]=_0x392e3d,this[_0x33565c(0x1b3)]=new compute['v1']['NetworksClient'](_0x206fa3);const _0x433079={};_0x433079[_0x33565c(0x192)]=_0x392e3d,this[_0x33565c(0x212)]=new ProjectsClient(_0x433079),this[_0x33565c(0x1c2)]=google[_0x33565c(0x243)]('v1'),global_registry[_0x33565c(0x20f)]=!![];}async[a3_0x165ac2(0x28d)](_0x405e4f,_0x11ab28){const _0x2d0a03=a3_0x165ac2,_0x1da822={'balZw':function(_0x76421a,_0x27caac){return _0x76421a(_0x27caac);},'qJzSt':function(_0x540b5d){return _0x540b5d();},'EhFBq':_0x2d0a03(0x17e)},_0x174576=await _0x1da822[_0x2d0a03(0x1d4)](_0x405e4f,_0x2d0a03(0x1e3));let _0x16079a=await fs[_0x2d0a03(0x257)](_0x174576);_0x16079a=_0x16079a['toString']();const _0x1bd128=_0x1da822['qJzSt'](getDirForConfig),_0x345a97=path[_0x2d0a03(0x288)](_0x1bd128,_0x1da822[_0x2d0a03(0x24b)]);fs['writeFileSync'](_0x345a97,_0x16079a),this['credentialsPath']=_0x345a97;const _0x43c835={};return _0x43c835[_0x2d0a03(0x192)]=_0x345a97,_0x11ab28['cloudProvider'][GCP]=_0x43c835,_0x16079a=JSON[_0x2d0a03(0x22c)](_0x16079a),this[_0x2d0a03(0x194)]=_0x16079a['project_id'],_0x11ab28;}async[a3_0x165ac2(0x1d1)](_0x4a39fe){const _0x1dad9a=a3_0x165ac2;this[_0x1dad9a(0x183)]=_0x4a39fe[this[_0x1dad9a(0x20e)]]['keyFile'];let _0x53ebce=await fs[_0x1dad9a(0x257)](this[_0x1dad9a(0x183)]);_0x53ebce=JSON[_0x1dad9a(0x22c)](_0x53ebce),this[_0x1dad9a(0x194)]=_0x53ebce[_0x1dad9a(0x2c0)];}[a3_0x165ac2(0x191)](_0x3253c9){const _0x3998c5=a3_0x165ac2;return _0x3253c9[_0x3998c5(0x29e)][_0x3998c5(0x264)]['ingress'][0x0]['ip'];}async[a3_0x165ac2(0x1de)](){const _0x349dda=a3_0x165ac2,_0x2b0750={};_0x2b0750[_0x349dda(0x24f)]=_0x349dda(0x199),_0x2b0750[_0x349dda(0x23d)]=function(_0x541745,_0x3464b){return _0x541745===_0x3464b;},_0x2b0750['qEkVE']='beOTf',_0x2b0750[_0x349dda(0x248)]=_0x349dda(0x2b6),_0x2b0750['piDJZ']='iGYsi',_0x2b0750['XUaoi']='mLLRG',_0x2b0750[_0x349dda(0x1ee)]=_0x349dda(0x21b),_0x2b0750[_0x349dda(0x2c6)]=_0x349dda(0x234);const _0x2a8c58=_0x2b0750;try{if(_0x2a8c58['wDJba'](_0x2a8c58['qEkVE'],_0x2a8c58[_0x349dda(0x248)]))_0x436991[_0x349dda(0x1f0)](_0x2a8c58['yhYwl']);else{const _0x282a5e=await this['getClusterInfo']();if(_0x282a5e[0x0]?.['resourceLabels']?.[_0x349dda(0x1f7)]){if(_0x2a8c58[_0x349dda(0x23d)](_0x2a8c58[_0x349dda(0x23e)],_0x2a8c58[_0x349dda(0x1be)]))_0x2df448[_0x349dda(0x17c)](_0x349dda(0x1d3)+this[_0x349dda(0x260)]+_0x349dda(0x275)+_0x3536ca[_0x349dda(0x24c)]+'\x20--quiet\x20--user-output-enabled=false');else{const _0x49fe29=_0x282a5e[0x0]?.['resourceLabels']?.['managedby'];return _0x49fe29&&_0x2a8c58[_0x349dda(0x23d)](_0x49fe29[_0x349dda(0x18d)](),_0x2a8c58[_0x349dda(0x1ee)]);}}}}catch(_0x49448b){return _0x2a8c58['wDJba'](_0x2a8c58['uWSCR'],_0x2a8c58['uWSCR'])?![]:(_0xc836fd[_0x349dda(0x232)]('Cannot\x20find\x20subnets\x20'+_0x4e60be+_0x349dda(0x2d0)+_0x48a46f),[![],[]]);}return![];}async[a3_0x165ac2(0x1a4)](){const _0x17bae9=a3_0x165ac2,_0x57ecf1={'DjtjL':function(_0x1f3bf5,_0x1d54dc){return _0x1f3bf5!==_0x1d54dc;},'JLkHM':_0x17bae9(0x1dd),'eTHaT':function(_0x69481e,_0x37f388){return _0x69481e-_0x37f388;},'lfJGx':function(_0x5e32a0,_0x4272aa){return _0x5e32a0===_0x4272aa;},'ikcav':_0x17bae9(0x21b),'JAjHA':_0x17bae9(0x1bf),'orFLq':_0x17bae9(0x218),'CwXzA':_0x17bae9(0x2a4),'zwWXZ':_0x17bae9(0x1cf),'kHgpx':_0x17bae9(0x1a7),'SITbc':function(_0x21188a,_0xadf746){return _0x21188a===_0xadf746;},'Swgoj':'ykAiy','gIkyT':function(_0x3d01a9,_0x43a38a){return _0x3d01a9!==_0x43a38a;},'EBgLQ':'NcDHt','eguBt':'bmtYy','GkNgB':_0x17bae9(0x2b2),'QeCYv':function(_0x487a7a,_0x35438b){return _0x487a7a===_0x35438b;},'lcMbS':_0x17bae9(0x244),'uJdxq':function(_0x30149e,_0x17bd53){return _0x30149e!==_0x17bd53;},'aVsPy':function(_0x35c5f8,_0x27708c){return _0x35c5f8!==_0x27708c;},'mfksa':_0x17bae9(0x266),'nhCnP':function(_0x53e470,_0x366915){return _0x53e470>_0x366915;},'ArbiR':function(_0xbd3181,_0x3d3229){return _0xbd3181===_0x3d3229;},'PkqlB':_0x17bae9(0x267),'qwMKA':function(_0x516a36,_0x3d5d53){return _0x516a36<_0x3d5d53;},'jMKzY':_0x17bae9(0x19d),'ZJjNg':function(_0x27fb0f,_0x1e61df){return _0x27fb0f+_0x1e61df;},'Dltsv':function(_0x4504d9,_0x20c122){return _0x4504d9(_0x20c122);},'fsiHG':_0x17bae9(0x29f),'DOUQT':function(_0x4ccea7,_0x3461e9){return _0x4ccea7(_0x3461e9);},'ooWys':function(_0x2356e3,_0xfd4dbb){return _0x2356e3<=_0xfd4dbb;},'ARSKM':_0x17bae9(0x1a9),'ueFst':_0x17bae9(0x1b0),'KHMMX':function(_0x5eacd8){return _0x5eacd8();},'YOAiQ':function(_0x38d91c,_0x408688){return _0x38d91c-_0x408688;},'EiiFb':function(_0xf6ee5b,_0xad5fc5){return _0xf6ee5b!==_0xad5fc5;},'VfznP':_0x17bae9(0x173),'rhGJD':_0x17bae9(0x245)};this[_0x17bae9(0x182)]();let _0x2d5b85=await fs[_0x17bae9(0x257)](path['join'](__dirname,'..',_0x57ecf1['JAjHA'],_0x57ecf1['orFLq'],_0x57ecf1[_0x17bae9(0x289)]),_0x57ecf1['zwWXZ']);_0x2d5b85=JSON[_0x17bae9(0x22c)](_0x2d5b85);let _0x3df31c=[global_registry[_0x17bae9(0x24c)]];if(_0x57ecf1[_0x17bae9(0x268)](_0x2d5b85[global_registry[_0x17bae9(0x24c)]],undefined)){if(_0x57ecf1[_0x17bae9(0x256)](_0x57ecf1['kHgpx'],_0x57ecf1['kHgpx']))_0x3df31c=_0x3df31c['concat'](_0x2d5b85[global_registry[_0x17bae9(0x24c)]]);else return _0x57ecf1[_0x17bae9(0x268)](_0x98fcfc[_0x17bae9(0x24c)],_0x45ccc3[0x0])&&(_0x15eae6['clusterRegion']=_0x40f273[0x0],this[_0x17bae9(0x210)]()),!![];}const _0x42e265=[];for await(let _0x39848c of _0x3df31c){if(_0x57ecf1[_0x17bae9(0x29a)](_0x57ecf1[_0x17bae9(0x23f)],_0x57ecf1[_0x17bae9(0x23f)])){const _0x285554={};_0x285554[_0x17bae9(0x1c9)]=_0x17bae9(0x233)+this[_0x17bae9(0x194)]+_0x17bae9(0x2d5)+_0x39848c;const _0x3ade1f=_0x285554,_0x20f45e=await this[_0x17bae9(0x1f9)][_0x17bae9(0x252)](_0x3ade1f);for(const _0x473e80 of _0x20f45e[0x0]['clusters']){if(_0x57ecf1['gIkyT'](_0x57ecf1[_0x17bae9(0x1e9)],_0x57ecf1[_0x17bae9(0x1e9)])){_0x1fa4c4['info'](_0x57ecf1['JLkHM']);throw _0x244db0;}else _0x57ecf1['SITbc'](_0x473e80[_0x17bae9(0x19a)],this[_0x17bae9(0x260)])&&(_0x57ecf1[_0x17bae9(0x1b1)](_0x57ecf1[_0x17bae9(0x1e4)],_0x57ecf1[_0x17bae9(0x1e5)])?_0x42e265['push'](_0x39848c):(_0x370d0c['clusterRegion']=_0x3fc46e[_0x57ecf1[_0x17bae9(0x2b8)](_0x466adb,0x1)],this[_0x17bae9(0x210)]()));}}else return!![];}const _0x5681b6=_0x42e265[_0x17bae9(0x1c3)];if(_0x57ecf1['QeCYv'](_0x5681b6,0x1))return _0x57ecf1['lfJGx'](_0x57ecf1[_0x17bae9(0x1cd)],_0x57ecf1[_0x17bae9(0x1cd)])?(_0x57ecf1['uJdxq'](global_registry[_0x17bae9(0x24c)],_0x42e265[0x0])&&(_0x57ecf1[_0x17bae9(0x228)](_0x57ecf1[_0x17bae9(0x1e7)],_0x57ecf1[_0x17bae9(0x1e7)])?(_0x480518['clusterRegion']=_0x566149[0x0],this[_0x17bae9(0x210)]()):(global_registry[_0x17bae9(0x24c)]=_0x42e265[0x0],this[_0x17bae9(0x210)]())),!![]):![];else{if(_0x57ecf1['nhCnP'](_0x5681b6,0x1)){if(_0x57ecf1[_0x17bae9(0x1d8)](_0x57ecf1['PkqlB'],_0x57ecf1[_0x17bae9(0x219)])){console[_0x17bae9(0x2a1)](_0x17bae9(0x1f3)+this[_0x17bae9(0x260)]+_0x17bae9(0x1fa));for(let _0x3e0b34=0x0;_0x57ecf1[_0x17bae9(0x231)](_0x3e0b34,_0x5681b6);_0x3e0b34+=0x1){_0x57ecf1[_0x17bae9(0x29a)](_0x57ecf1['jMKzY'],_0x57ecf1[_0x17bae9(0x2c7)])?console[_0x17bae9(0x2a1)]('['+_0x57ecf1[_0x17bae9(0x180)](_0x3e0b34,0x1)+']\x20'+_0x42e265[_0x3e0b34]):!this[_0x17bae9(0x253)]()&&this[_0x17bae9(0x2a9)]();}const _0x5a2ba9=await _0x57ecf1[_0x17bae9(0x235)](inputConfirmation,_0x57ecf1[_0x17bae9(0x2b4)]),_0x56a76d=_0x57ecf1[_0x17bae9(0x2c2)](Number,_0x5a2ba9);if(_0x57ecf1[_0x17bae9(0x2c2)](isNaN,_0x56a76d)||_0x57ecf1['ooWys'](_0x56a76d,0x0)||_0x57ecf1['nhCnP'](_0x56a76d,_0x5681b6)){if(_0x57ecf1['QeCYv'](_0x57ecf1[_0x17bae9(0x1a8)],_0x57ecf1[_0x17bae9(0x1a8)]))console[_0x17bae9(0x232)](_0x57ecf1[_0x17bae9(0x258)]),process[_0x17bae9(0x201)](0x1);else{const _0x344bc8=_0x17bae9(0x17f)+this[_0x17bae9(0x194)]+'/regions/'+_0x334b9c[_0x17bae9(0x24c)]+_0x17bae9(0x1ba)+_0x2f1999[0x0];if(_0x57ecf1[_0x17bae9(0x256)](_0x344bc8,_0x57ce71))return[!![],_0x2f9d48];}}_0x57ecf1[_0x17bae9(0x1cb)](closeInput),logger[_0x17bae9(0x1f0)](_0x17bae9(0x262)+_0x42e265[_0x57ecf1[_0x17bae9(0x1c8)](_0x56a76d,0x1)]);if(_0x57ecf1[_0x17bae9(0x1f8)](global_registry[_0x17bae9(0x24c)],_0x42e265[_0x57ecf1[_0x17bae9(0x2b8)](_0x56a76d,0x1)])){if(_0x57ecf1['QeCYv'](_0x57ecf1[_0x17bae9(0x17d)],_0x57ecf1[_0x17bae9(0x177)])){const _0x972e82=_0x302717[0x0]?.[_0x17bae9(0x19b)]?.[_0x17bae9(0x1f7)];return _0x972e82&&_0x57ecf1[_0x17bae9(0x256)](_0x972e82[_0x17bae9(0x18d)](),_0x57ecf1['ikcav']);}else global_registry['clusterRegion']=_0x42e265[_0x57ecf1[_0x17bae9(0x1c8)](_0x56a76d,0x1)],this[_0x17bae9(0x210)]();}return!![];}else return!![];}}return![];}async[a3_0x165ac2(0x17b)](){const _0x3e7c83=a3_0x165ac2,_0x503c61=await this[_0x3e7c83(0x1f9)][_0x3e7c83(0x273)]({'name':_0x3e7c83(0x233)+this['projectId']+_0x3e7c83(0x2d5)+global_registry[_0x3e7c83(0x24c)]+_0x3e7c83(0x225)+this[_0x3e7c83(0x260)]});return _0x503c61;}async[a3_0x165ac2(0x263)](){const _0x2d37c5=a3_0x165ac2,_0x3fffd9={};_0x3fffd9[_0x2d37c5(0x284)]=_0x2d37c5(0x1bf),_0x3fffd9[_0x2d37c5(0x1a1)]=_0x2d37c5(0x218),_0x3fffd9[_0x2d37c5(0x17a)]=_0x2d37c5(0x202);const _0x31756f=_0x3fffd9;cp[_0x2d37c5(0x17c)](_0x2d37c5(0x25a)),cp[_0x2d37c5(0x18c)](_0x2d37c5(0x193)+this[_0x2d37c5(0x183)]);const _0x10bcb8=await this['getClusterInfo'](),_0x23f152='gke_'+this['projectId']+'_'+global_registry[_0x2d37c5(0x24c)]+'_'+this[_0x2d37c5(0x260)];let _0x45d1ac=await fs['readFileAsync'](path[_0x2d37c5(0x288)](__dirname,'..',_0x31756f['OdiCz'],_0x31756f[_0x2d37c5(0x1a1)],_0x31756f[_0x2d37c5(0x17a)]));return _0x45d1ac=_0x45d1ac[_0x2d37c5(0x27b)](),_0x45d1ac=_0x45d1ac[_0x2d37c5(0x1ab)](/<CLUSTER_NAME>/g,_0x23f152),_0x45d1ac=_0x45d1ac[_0x2d37c5(0x1ab)](/<CLUSTER_URL>/g,'https://'+_0x10bcb8[0x0][_0x2d37c5(0x23b)]),_0x45d1ac=_0x45d1ac[_0x2d37c5(0x1ab)](/<CERTIFICATE_DATA>/g,_0x10bcb8[0x0][_0x2d37c5(0x26c)][_0x2d37c5(0x2cc)]),_0x45d1ac;}async[a3_0x165ac2(0x1d9)](){const _0x52a4d9=a3_0x165ac2,_0x565b0f={};_0x565b0f['cDMAq']=function(_0x2bf2d7,_0x5857bf){return _0x2bf2d7===_0x5857bf;},_0x565b0f[_0x52a4d9(0x21f)]='https://www.googleapis.com/auth/cloud-platform',_0x565b0f[_0x52a4d9(0x1c0)]=function(_0x340572,_0x2144e7){return _0x340572===_0x2144e7;},_0x565b0f[_0x52a4d9(0x1f5)]='wPcKI',_0x565b0f[_0x52a4d9(0x240)]=_0x52a4d9(0x1da),_0x565b0f['Thojv']=function(_0x2c269f,_0x1ae29a){return _0x2c269f===_0x1ae29a;},_0x565b0f[_0x52a4d9(0x1e6)]=_0x52a4d9(0x205),_0x565b0f['oMBxU']=_0x52a4d9(0x1ac);const _0xa67b7c=_0x565b0f,_0xf6aa7={};_0xf6aa7['scopes']=[_0xa67b7c[_0x52a4d9(0x21f)]],_0xf6aa7[_0x52a4d9(0x192)]=this[_0x52a4d9(0x183)];const _0x27ee11=await google[_0x52a4d9(0x25c)][_0x52a4d9(0x297)](_0xf6aa7),_0x4bcf60=await this[_0x52a4d9(0x1c2)]['projects'][_0x52a4d9(0x251)][_0x52a4d9(0x207)]({'name':_0x52a4d9(0x233)+this[_0x52a4d9(0x194)],'auth':_0x27ee11});for(const _0x5099a7 of _0x4bcf60?.[_0x52a4d9(0x28f)]?.[_0x52a4d9(0x189)]){if(_0xa67b7c['abLsS'](_0xa67b7c['VjkAi'],_0xa67b7c[_0x52a4d9(0x240)]))return![];else{if(_0xa67b7c[_0x52a4d9(0x2c9)](_0x5099a7?.['name'],_0x52a4d9(0x233)+this[_0x52a4d9(0x194)]+_0x52a4d9(0x1af)+this[_0x52a4d9(0x1df)]+'@'+this[_0x52a4d9(0x194)]+_0x52a4d9(0x2cf))){if(_0xa67b7c['cDMAq'](_0xa67b7c[_0x52a4d9(0x1e6)],_0xa67b7c[_0x52a4d9(0x2d3)])){if(_0xa67b7c[_0x52a4d9(0x239)](_0x108269?.[_0x52a4d9(0x19a)],_0x52a4d9(0x233)+this[_0x52a4d9(0x194)]+_0x52a4d9(0x1af)+this[_0x52a4d9(0x1df)]+'@'+this['projectId']+_0x52a4d9(0x2cf)))return!![];}else return!![];}}}return![];}async[a3_0x165ac2(0x186)](){const _0x1b39ec=a3_0x165ac2,_0xa733d5={};_0xa733d5['PkSIl']=function(_0xff2ce5,_0x2cc1a6){return _0xff2ce5!==_0x2cc1a6;},_0xa733d5[_0x1b39ec(0x24a)]=_0x1b39ec(0x18b),_0xa733d5['nosEw']=_0x1b39ec(0x2ab),_0xa733d5['jGJyK']=_0x1b39ec(0x1d2),_0xa733d5['tjQsZ']=_0x1b39ec(0x20b),_0xa733d5[_0x1b39ec(0x274)]='https://www.googleapis.com/auth/cloud-platform',_0xa733d5[_0x1b39ec(0x2ba)]=_0x1b39ec(0x25e),_0xa733d5[_0x1b39ec(0x1eb)]='storage.buckets.create',_0xa733d5[_0x1b39ec(0x2b3)]='storage.buckets.createTagBinding',_0xa733d5[_0x1b39ec(0x2af)]=_0x1b39ec(0x1f4),_0xa733d5[_0x1b39ec(0x1fd)]='storage.buckets.deleteTagBinding',_0xa733d5[_0x1b39ec(0x296)]=_0x1b39ec(0x29b),_0xa733d5[_0x1b39ec(0x1b2)]='storage.buckets.getIamPolicy',_0xa733d5['omlXG']=_0x1b39ec(0x2c1),_0xa733d5[_0x1b39ec(0x2a3)]='storage.buckets.list',_0xa733d5['UwSKj']='storage.buckets.listEffectiveTags',_0xa733d5[_0x1b39ec(0x223)]=_0x1b39ec(0x1ae),_0xa733d5['iRIeJ']=_0x1b39ec(0x22f),_0xa733d5['kVuBD']=_0x1b39ec(0x1a3),_0xa733d5['pgxld']=_0x1b39ec(0x178),_0xa733d5['dVIMb']=_0x1b39ec(0x21d),_0xa733d5[_0x1b39ec(0x1fc)]=_0x1b39ec(0x21c),_0xa733d5[_0x1b39ec(0x2d6)]=_0x1b39ec(0x2b1),_0xa733d5['UkyXs']=_0x1b39ec(0x1b8),_0xa733d5[_0x1b39ec(0x1c7)]=_0x1b39ec(0x282),_0xa733d5['CrNye']=_0x1b39ec(0x279),_0xa733d5[_0x1b39ec(0x213)]='storage.objects.getIamPolicy',_0xa733d5['rnDep']='storage.objects.list',_0xa733d5[_0x1b39ec(0x26b)]='storage.objects.setIamPolicy',_0xa733d5[_0x1b39ec(0x27a)]=_0x1b39ec(0x217),_0xa733d5[_0x1b39ec(0x285)]='Turboscale\x20Custom\x20Role',_0xa733d5[_0x1b39ec(0x200)]='Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation';const _0x54db84=_0xa733d5,_0x5e40ef=await this[_0x1b39ec(0x1d9)]();if(_0x5e40ef){if(_0x54db84[_0x1b39ec(0x287)](_0x54db84[_0x1b39ec(0x24a)],_0x54db84[_0x1b39ec(0x1f1)])){logger['info'](_0x54db84[_0x1b39ec(0x26a)]);return;}else this[_0x1b39ec(0x2a9)]();}logger[_0x1b39ec(0x1f0)](_0x54db84[_0x1b39ec(0x2be)]);const _0xc558eb={};_0xc558eb['scopes']=[_0x54db84[_0x1b39ec(0x274)]],_0xc558eb[_0x1b39ec(0x192)]=this[_0x1b39ec(0x183)];const _0x17405e=await google[_0x1b39ec(0x25c)][_0x1b39ec(0x297)](_0xc558eb),_0x4d7a29={};_0x4d7a29[_0x1b39ec(0x204)]=[_0x54db84[_0x1b39ec(0x2ba)],_0x54db84[_0x1b39ec(0x1eb)],_0x54db84[_0x1b39ec(0x2b3)],_0x54db84[_0x1b39ec(0x2af)],_0x54db84[_0x1b39ec(0x1fd)],_0x54db84[_0x1b39ec(0x296)],_0x54db84['vSmSs'],_0x54db84[_0x1b39ec(0x1e1)],_0x54db84[_0x1b39ec(0x2a3)],_0x54db84[_0x1b39ec(0x1aa)],_0x54db84['rXqIc'],_0x54db84['iRIeJ'],_0x54db84[_0x1b39ec(0x216)],_0x54db84['pgxld'],_0x54db84[_0x1b39ec(0x22a)],_0x54db84['fZtVm'],_0x54db84[_0x1b39ec(0x2d6)],_0x54db84[_0x1b39ec(0x185)],_0x54db84[_0x1b39ec(0x1c7)],_0x54db84[_0x1b39ec(0x22d)],_0x54db84[_0x1b39ec(0x213)],_0x54db84[_0x1b39ec(0x277)],_0x54db84['Vasvy'],_0x54db84['oCoXw']],_0x4d7a29[_0x1b39ec(0x24e)]=_0x54db84['VydDe'],await this[_0x1b39ec(0x1c2)][_0x1b39ec(0x1ef)][_0x1b39ec(0x1e8)][_0x1b39ec(0x1fe)]({'parent':_0x1b39ec(0x233)+this[_0x1b39ec(0x194)],'requestBody':{'role':_0x4d7a29,'roleId':this['customRoleName']},'auth':_0x17405e});const _0x2ffffd={};_0x2ffffd[_0x1b39ec(0x19a)]=_0x1b39ec(0x233)+this[_0x1b39ec(0x194)],_0x2ffffd[_0x1b39ec(0x20d)]={},_0x2ffffd[_0x1b39ec(0x25c)]=_0x17405e,_0x2ffffd[_0x1b39ec(0x20d)][_0x1b39ec(0x295)]=this['serviceAccountName'];const _0x1fd3bb=_0x2ffffd;await this[_0x1b39ec(0x1c2)][_0x1b39ec(0x2bc)][_0x1b39ec(0x251)]['create'](_0x1fd3bb);let _0x3a0221=await this['resourcemanagerClient'][_0x1b39ec(0x281)]({'resource':_0x1b39ec(0x233)+this[_0x1b39ec(0x194)]});_0x3a0221=_0x3a0221[0x0][_0x1b39ec(0x1ff)];const _0x5d1269={};_0x5d1269['role']=_0x1b39ec(0x233)+this['projectId']+_0x1b39ec(0x206)+this[_0x1b39ec(0x229)],_0x5d1269['members']=[_0x1b39ec(0x1ec)+this['serviceAccountName']+'@'+this[_0x1b39ec(0x194)]+_0x1b39ec(0x2cf)],_0x3a0221['push'](_0x5d1269);const _0x11a1ba={};_0x11a1ba[_0x1b39ec(0x1ff)]=_0x3a0221,await this[_0x1b39ec(0x212)][_0x1b39ec(0x1c1)]({'resource':_0x1b39ec(0x233)+this['projectId'],'policy':_0x11a1ba}),logger[_0x1b39ec(0x1f0)](_0x54db84[_0x1b39ec(0x200)]);}async['setupNewCluster'](_0x5af08f='default',_0x50ecd8=[a3_0x165ac2(0x2c3)]){const _0xcea199=a3_0x165ac2,_0x37b8c0={};_0x37b8c0[_0xcea199(0x2d1)]=_0xcea199(0x1a2),_0x37b8c0[_0xcea199(0x249)]=_0xcea199(0x1a0),_0x37b8c0['dQuZh']=_0xcea199(0x19c);const _0x1f2d4a=_0x37b8c0,_0x3fa293=_0x1f2d4a['FelQf']['split']('|');let _0x126199=0x0;while(!![]){switch(_0x3fa293[_0x126199++]){case'0':await this[_0xcea199(0x22e)](_0x5af08f,_0x50ecd8);continue;case'1':await this[_0xcea199(0x198)]();continue;case'2':const _0x520d9d={};_0x520d9d[_0xcea199(0x1c4)]=WS_EVENTS[_0xcea199(0x2bb)],_0x520d9d[_0xcea199(0x27c)]=_0x1f2d4a[_0xcea199(0x249)],this[_0xcea199(0x246)]['sendEventToBackend'](this['rws'],_0x520d9d);continue;case'3':logger[_0xcea199(0x1f0)](_0x1f2d4a[_0xcea199(0x222)]);continue;case'4':return!![];case'5':await this[_0xcea199(0x186)]();continue;case'6':this[_0xcea199(0x290)](this['rws']);continue;}break;}}async[a3_0x165ac2(0x22e)](_0x14ee9e=a3_0x165ac2(0x2c3),_0x4f4bdc=['default']){const _0x12c5f3=a3_0x165ac2,_0x6f0ddf={};_0x6f0ddf[_0x12c5f3(0x241)]=function(_0x2fa137,_0x226ed8){return _0x2fa137===_0x226ed8;},_0x6f0ddf['FuTTA']=_0x12c5f3(0x1bd),_0x6f0ddf[_0x12c5f3(0x2d2)]='RgcRc',_0x6f0ddf[_0x12c5f3(0x1b6)]='Creating\x20GKE\x20Cluster',_0x6f0ddf[_0x12c5f3(0x1d0)]=_0x12c5f3(0x1bf),_0x6f0ddf[_0x12c5f3(0x226)]='gcpresources',_0x6f0ddf[_0x12c5f3(0x1f2)]=_0x12c5f3(0x1bc),_0x6f0ddf[_0x12c5f3(0x21e)]=_0x12c5f3(0x1cf),_0x6f0ddf[_0x12c5f3(0x203)]=_0x12c5f3(0x2a4),_0x6f0ddf[_0x12c5f3(0x2a5)]=function(_0x54a049,_0x3b0e01){return _0x54a049*_0x3b0e01;},_0x6f0ddf['faths']=function(_0x8cbe62,_0x2a7190){return _0x8cbe62*_0x2a7190;},_0x6f0ddf[_0x12c5f3(0x25d)]=function(_0x33a171,_0x245d80){return _0x33a171!==_0x245d80;},_0x6f0ddf['Otibn']=_0x12c5f3(0x271),_0x6f0ddf['JMHcX']=_0x12c5f3(0x254),_0x6f0ddf[_0x12c5f3(0x2ae)]=_0x12c5f3(0x23a),_0x6f0ddf['OChco']=_0x12c5f3(0x298),_0x6f0ddf[_0x12c5f3(0x1ea)]=function(_0xcc1ecb,_0x47b28c){return _0xcc1ecb===_0x47b28c;},_0x6f0ddf[_0x12c5f3(0x27e)]=_0x12c5f3(0x174),_0x6f0ddf[_0x12c5f3(0x2a7)]='Cluster\x20creation\x20failed';const _0x34db8b=_0x6f0ddf;try{if(_0x34db8b[_0x12c5f3(0x241)](_0x34db8b[_0x12c5f3(0x172)],_0x34db8b[_0x12c5f3(0x2d2)]))return[!![],_0xcc27ef];else{logger[_0x12c5f3(0x1f0)](_0x34db8b[_0x12c5f3(0x1b6)]);let _0x273bfe=await fs['readFileAsync'](path[_0x12c5f3(0x288)](__dirname,'..',_0x34db8b[_0x12c5f3(0x1d0)],_0x34db8b['QLreF'],_0x34db8b[_0x12c5f3(0x1f2)]),_0x34db8b[_0x12c5f3(0x21e)]);_0x273bfe=JSON[_0x12c5f3(0x22c)](_0x273bfe);let _0x4df972=await fs['readFileAsync'](path['join'](__dirname,'..',_0x34db8b[_0x12c5f3(0x1d0)],_0x34db8b[_0x12c5f3(0x226)],_0x34db8b[_0x12c5f3(0x203)]),_0x34db8b['RlPaG']);_0x4df972=JSON[_0x12c5f3(0x22c)](_0x4df972),_0x273bfe[_0x12c5f3(0x19a)]=this[_0x12c5f3(0x260)],_0x273bfe[_0x12c5f3(0x2a2)][0x0][_0x12c5f3(0x21a)]['machineType']=global_registry[_0x12c5f3(0x1b9)],_0x273bfe[_0x12c5f3(0x2a2)][0x1][_0x12c5f3(0x21a)][_0x12c5f3(0x1ce)]=global_registry['instanceType'],_0x273bfe[_0x12c5f3(0x2a2)][0x0][_0x12c5f3(0x21a)][_0x12c5f3(0x261)]=this[_0x12c5f3(0x1df)]+'@'+this[_0x12c5f3(0x194)]+'.iam.gserviceaccount.com',_0x273bfe[_0x12c5f3(0x2a2)][0x1][_0x12c5f3(0x21a)][_0x12c5f3(0x261)]=this['serviceAccountName']+'@'+this[_0x12c5f3(0x194)]+_0x12c5f3(0x2cf),_0x273bfe[_0x12c5f3(0x2a2)][0x0][_0x12c5f3(0x190)]['minNodeCount']=global_registry[_0x12c5f3(0x214)],_0x273bfe[_0x12c5f3(0x2a2)][0x1][_0x12c5f3(0x190)][_0x12c5f3(0x28e)]=0x0,_0x273bfe[_0x12c5f3(0x2a2)][0x0][_0x12c5f3(0x190)][_0x12c5f3(0x208)]=global_registry[_0x12c5f3(0x247)],_0x273bfe[_0x12c5f3(0x2a2)][0x1][_0x12c5f3(0x190)][_0x12c5f3(0x208)]=global_registry[_0x12c5f3(0x247)],_0x273bfe[_0x12c5f3(0x2bd)]=global_registry['clusterRegion'],_0x273bfe['locations']=[_0x4df972[global_registry[_0x12c5f3(0x24c)]][0x0]],_0x273bfe[_0x12c5f3(0x242)]=_0x12c5f3(0x233)+this[_0x12c5f3(0x194)]+'/global/networks/'+_0x14ee9e,_0x273bfe[_0x12c5f3(0x20c)]=_0x12c5f3(0x233)+this[_0x12c5f3(0x194)]+_0x12c5f3(0x286)+global_registry['clusterRegion']+_0x12c5f3(0x1ba)+_0x4f4bdc[0x0];const _0x17b31c=await this[_0x12c5f3(0x1f9)][_0x12c5f3(0x22e)]({'cluster':_0x273bfe,'parent':_0x12c5f3(0x233)+this[_0x12c5f3(0x194)]+'/locations/'+global_registry[_0x12c5f3(0x24c)]});await this[_0x12c5f3(0x246)][_0x12c5f3(0x230)](_0x34db8b[_0x12c5f3(0x2a5)](_0x34db8b[_0x12c5f3(0x28c)](0x7,0x3c),0x3e8));}}catch(_0x5d1626){if(_0x34db8b[_0x12c5f3(0x25d)](_0x34db8b['Otibn'],_0x34db8b['JMHcX'])){const _0x16e51a=await this[_0x12c5f3(0x1a4)]();_0x16e51a?_0x34db8b[_0x12c5f3(0x241)](_0x34db8b['UpNrB'],_0x34db8b[_0x12c5f3(0x2ae)])?(logger[_0x12c5f3(0x1f0)](_0x34db8b[_0x12c5f3(0x1f6)],_0x5d1626[_0x12c5f3(0x283)]),await this[_0x12c5f3(0x224)]()):_0x5d5b25['vpcInfo'][_0x12c5f3(0x280)](_0x210ba6):_0x34db8b[_0x12c5f3(0x1ea)](_0x34db8b['pwBrQ'],_0x34db8b['pwBrQ'])?logger[_0x12c5f3(0x1f0)](_0x34db8b['xKxNN']):_0x1cf73e=_0x26f752[_0x12c5f3(0x2c8)](_0x2106ce[_0x44ede7[_0x12c5f3(0x24c)]]);throw _0x5d1626;}else return!![];}}async[a3_0x165ac2(0x198)](){const _0x55bfc8=a3_0x165ac2;cp['execSync'](_0x55bfc8(0x1d3)+this[_0x55bfc8(0x260)]+_0x55bfc8(0x275)+global_registry[_0x55bfc8(0x24c)]+_0x55bfc8(0x2c4));}async[a3_0x165ac2(0x224)](_0x5ee076,_0x2bd933){const _0x1d7c4c=a3_0x165ac2,_0x54e5f8={'SyAsa':function(_0x1e2c3b,_0x357867){return _0x1e2c3b+_0x357867;},'xuTAC':function(_0xd198af,_0x2ffd2f){return _0xd198af===_0x2ffd2f;},'nbGKk':'jUiCj','GLGMG':function(_0x26955d,_0x7ddd41){return _0x26955d(_0x7ddd41);},'baSGU':_0x1d7c4c(0x1b4),'unrZW':function(_0x5fa836,_0x2bfc53){return _0x5fa836===_0x2bfc53;},'sehIg':'DONE','KqnFn':function(_0x3ae2cc,_0x46517d){return _0x3ae2cc!==_0x46517d;},'lsNzF':'BuYuE','cNCGf':_0x1d7c4c(0x19f),'DwrZU':_0x1d7c4c(0x1d7),'LMVNR':_0x1d7c4c(0x1dd)};try{if(_0x54e5f8[_0x1d7c4c(0x2a6)](_0x54e5f8[_0x1d7c4c(0x24d)],_0x54e5f8[_0x1d7c4c(0x24d)])){await _0x54e5f8[_0x1d7c4c(0x237)](deleteAgent,_0x5ee076),await _0x54e5f8[_0x1d7c4c(0x237)](deleteRoutingDeps,_0x5ee076),logger[_0x1d7c4c(0x1f0)](_0x1d7c4c(0x25b)+this['clusterName']);const _0x57a317=await this['containerClient'][_0x1d7c4c(0x224)]({'name':'projects/'+this[_0x1d7c4c(0x194)]+_0x1d7c4c(0x2d5)+global_registry['clusterRegion']+_0x1d7c4c(0x225)+this['clusterName']});if(_0x54e5f8[_0x1d7c4c(0x2a6)](_0x57a317[0x0]?.[_0x1d7c4c(0x29e)],_0x54e5f8[_0x1d7c4c(0x1ad)])||_0x54e5f8[_0x1d7c4c(0x1e2)](_0x57a317[0x0]?.[_0x1d7c4c(0x29e)],_0x54e5f8[_0x1d7c4c(0x2b0)])){if(_0x54e5f8[_0x1d7c4c(0x292)](_0x54e5f8[_0x1d7c4c(0x220)],_0x54e5f8[_0x1d7c4c(0x220)]))_0x203140[_0x1d7c4c(0x2a1)]('['+_0x54e5f8[_0x1d7c4c(0x18e)](_0x315ea6,0x1)+']\x20'+_0x4eff85[_0x4b030b]);else return!![];}logger[_0x1d7c4c(0x1f0)](_0x1d7c4c(0x2b5));}else _0x460faf[_0x1d7c4c(0x280)](_0x418167);}catch(_0x209f71){if(_0x54e5f8[_0x1d7c4c(0x1e2)](_0x54e5f8['cNCGf'],_0x54e5f8[_0x1d7c4c(0x255)])){const _0x14b64b=this[_0x1d7c4c(0x183)],_0x1d64ea={};_0x1d64ea[_0x1d7c4c(0x192)]=_0x14b64b,this[_0x1d7c4c(0x1f9)]=new _0x20514a['v1'][(_0x1d7c4c(0x293))](_0x1d64ea);const _0x32fe98={};_0x32fe98[_0x1d7c4c(0x192)]=_0x14b64b,this['networkClient']=new _0x8a27f6['v1'][(_0x1d7c4c(0x195))](_0x32fe98);const _0x6de3f9={};_0x6de3f9[_0x1d7c4c(0x192)]=_0x14b64b,this[_0x1d7c4c(0x212)]=new _0x35f9ac(_0x6de3f9),this[_0x1d7c4c(0x1c2)]=_0x27797d[_0x1d7c4c(0x243)]('v1'),_0x286b36[_0x1d7c4c(0x20f)]=!![];}else{logger['info'](_0x54e5f8[_0x1d7c4c(0x187)]);throw _0x209f71;}}}async[a3_0x165ac2(0x1d6)](_0x4028c2){const _0x4151e7=a3_0x165ac2,_0x1ad168={};_0x1ad168[_0x4151e7(0x25f)]=function(_0x313b4e,_0x5bb6c4){return _0x313b4e===_0x5bb6c4;},_0x1ad168[_0x4151e7(0x1bb)]=function(_0x35cb92,_0x100ef6){return _0x35cb92!==_0x100ef6;},_0x1ad168['ekohI']=_0x4151e7(0x23c),_0x1ad168[_0x4151e7(0x2cd)]=function(_0x29c940,_0x5cfeee){return _0x29c940>_0x5cfeee;},_0x1ad168[_0x4151e7(0x2a0)]=function(_0x2333de,_0x24d1cd){return _0x2333de===_0x24d1cd;},_0x1ad168['YGmrz']=_0x4151e7(0x2bf),_0x1ad168[_0x4151e7(0x238)]=_0x4151e7(0x19e),_0x1ad168[_0x4151e7(0x28b)]=_0x4151e7(0x270);const _0x6af86=_0x1ad168;try{if(_0x6af86[_0x4151e7(0x1bb)](_0x6af86[_0x4151e7(0x1a6)],_0x6af86[_0x4151e7(0x1a6)]))return _0x6af86['rJUvh'](_0x1400aa[_0x4151e7(0x20f)],!![]);else{const _0x4bd41c={};_0x4bd41c[_0x4151e7(0x259)]=projectId,_0x4bd41c[_0x4151e7(0x242)]=_0x4028c2;const _0x5ae5f9=await networkClient['get'](_0x4bd41c);if(_0x6af86[_0x4151e7(0x2cd)](_0x5ae5f9['length'],0x0)&&_0x6af86[_0x4151e7(0x2a0)](_0x5ae5f9[0x0][_0x4151e7(0x19a)],_0x4028c2))return _0x6af86[_0x4151e7(0x1bb)](_0x6af86[_0x4151e7(0x181)],_0x6af86[_0x4151e7(0x238)])?!![]:_0x2e7662[_0x4151e7(0x29e)][_0x4151e7(0x264)][_0x4151e7(0x1c5)][0x0]['ip'];}}catch(_0x27f131){if(_0x6af86['rJUvh'](_0x6af86[_0x4151e7(0x28b)],_0x6af86['nixyQ']))return![];else _0x6af86['rJUvh'](_0x1e7d02[_0x4151e7(0x19a)],this[_0x4151e7(0x260)])&&_0x3dc933['push'](_0x414a4d);}return![];}async[a3_0x165ac2(0x1db)](_0x19b650,_0x4b913d){const _0x5a3f4b=a3_0x165ac2,_0x22415c={};_0x22415c[_0x5a3f4b(0x227)]=_0x5a3f4b(0x1d2),_0x22415c[_0x5a3f4b(0x1c6)]=function(_0x2ef469,_0xc85d3f){return _0x2ef469===_0xc85d3f;},_0x22415c[_0x5a3f4b(0x1d5)]=function(_0x251a3d,_0x126c42){return _0x251a3d!==_0x126c42;},_0x22415c[_0x5a3f4b(0x2c5)]=_0x5a3f4b(0x2d4),_0x22415c[_0x5a3f4b(0x197)]=_0x5a3f4b(0x1a5);const _0x545a1c=_0x22415c;try{const _0x3d414f={};_0x3d414f['project']=projectId,_0x3d414f[_0x5a3f4b(0x242)]=_0x4b913d;const _0x3f065b=await networkClient['get'](_0x3d414f);for(const _0x52d117 of _0x3f065b[0x0][_0x5a3f4b(0x27f)]){const _0x3e5de2='https://www.googleapis.com/compute/v1/projects/'+this[_0x5a3f4b(0x194)]+_0x5a3f4b(0x286)+global_registry[_0x5a3f4b(0x24c)]+_0x5a3f4b(0x1ba)+_0x19b650[0x0];if(_0x545a1c[_0x5a3f4b(0x1c6)](_0x3e5de2,_0x52d117)){if(_0x545a1c[_0x5a3f4b(0x1d5)](_0x545a1c[_0x5a3f4b(0x2c5)],_0x545a1c['wqlad']))return[!![],_0x19b650];else{_0x6bf5e2[_0x5a3f4b(0x1f0)](_0x545a1c['vzyjr']);return;}}}}catch(_0x471523){return logger[_0x5a3f4b(0x232)](_0x5a3f4b(0x18f)+_0x19b650+_0x5a3f4b(0x2d0)+_0x471523),[![],[]];}return[![],[]];}async[a3_0x165ac2(0x290)](){const _0x4d7763=a3_0x165ac2,_0x4268b5=await this[_0x4d7763(0x1b3)][_0x4d7763(0x207)]({'project':this[_0x4d7763(0x194)]}),_0x11aa13={};_0x11aa13['username']=global_registry[_0x4d7763(0x1b5)],_0x11aa13[_0x4d7763(0x294)]=global_registry[_0x4d7763(0x2cb)],_0x11aa13[_0x4d7763(0x2ac)]=GCP,_0x11aa13[_0x4d7763(0x18a)]=[];const _0x584a42=_0x11aa13;for(const _0x290c66 of _0x4268b5){_0x584a42[_0x4d7763(0x18a)]['push'](_0x290c66);}const _0x150059={};_0x150059[_0x4d7763(0x1c4)]=WS_EVENTS[_0x4d7763(0x28a)],_0x150059[_0x4d7763(0x27c)]=_0x584a42,this[_0x4d7763(0x246)]['sendEventToBackend'](this[_0x4d7763(0x22b)],_0x150059);}async[a3_0x165ac2(0x210)](){const _0x27d141=a3_0x165ac2,_0x391dd2={'IHrWG':function(_0x5b2151,_0x23a963,_0x228e10){return _0x5b2151(_0x23a963,_0x228e10);},'UHTzW':'PUT','WXIvD':_0x27d141(0x1ed),'bmezA':function(_0x450671,_0x4f79b3,_0x330fdf){return _0x450671(_0x4f79b3,_0x330fdf);}},_0x35e32b=_0x27d141(0x2ad)+AG_API_URL+'/packages/cli/update-cluster-region',_0x1f34df={};_0x1f34df[_0x27d141(0x179)]=global_registry[_0x27d141(0x196)];const _0x3c6ddb={};_0x3c6ddb[_0x27d141(0x26f)]=global_registry['clusterRegion'];const _0x1a1686={'searchParams':_0x1f34df,'json':_0x3c6ddb,'headers':_0x391dd2['IHrWG'](getAuthHeader,global_registry[_0x27d141(0x1b5)],global_registry[_0x27d141(0x2cb)]),'method':_0x391dd2[_0x27d141(0x211)],'responseType':_0x391dd2[_0x27d141(0x175)]},_0x3fedf5=await _0x391dd2[_0x27d141(0x250)](got,_0x35e32b,_0x1a1686);}}const a3_0x43eb09={};a3_0x43eb09[a3_0x165ac2(0x2aa)]=GoogleCloudProvider,module[a3_0x165ac2(0x2a8)]=a3_0x43eb09;
1
+ const a3_0xc6ef5c=a3_0x37c0;(function(_0x25f77e,_0x2da539){const _0x2c2e44=a3_0x37c0,_0x3bdd97=_0x25f77e();while(!![]){try{const _0xed62d6=parseInt(_0x2c2e44(0xe8))/0x1*(-parseInt(_0x2c2e44(0xc7))/0x2)+-parseInt(_0x2c2e44(0x1c8))/0x3+-parseInt(_0x2c2e44(0x1c1))/0x4*(-parseInt(_0x2c2e44(0x102))/0x5)+-parseInt(_0x2c2e44(0x151))/0x6*(-parseInt(_0x2c2e44(0x175))/0x7)+-parseInt(_0x2c2e44(0x142))/0x8+parseInt(_0x2c2e44(0x172))/0x9+parseInt(_0x2c2e44(0xea))/0xa;if(_0xed62d6===_0x2da539)break;else _0x3bdd97['push'](_0x3bdd97['shift']());}catch(_0x50c59b){_0x3bdd97['push'](_0x3bdd97['shift']());}}}(a3_0x2291,0xd8d1f));const fs=require('fs'),path=require(a3_0xc6ef5c(0xa2)),got=require('got'),util=require(a3_0xc6ef5c(0x1ab)),cp=require(a3_0xc6ef5c(0x70)),{google}=require('googleapis'),compute=require(a3_0xc6ef5c(0xa8)),container=require(a3_0xc6ef5c(0x193)),{ProjectsClient}=require(a3_0xc6ef5c(0xb0))['v3'],{logger}=require(a3_0xc6ef5c(0x1d2)),{CloudProvider}=require(a3_0xc6ef5c(0xc4)),{getDirForConfig,getAuthHeader}=require(a3_0xc6ef5c(0xf5)),{deleteRoutingDeps,deleteAgent}=require('../utils/gridComponents'),{inputConfirmation,closeInput}=require(a3_0xc6ef5c(0x10d)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0xc6ef5c(0x104));function a3_0x37c0(_0x2c3519,_0x222315){const _0x2291a6=a3_0x2291();return a3_0x37c0=function(_0x37c0f4,_0x45542b){_0x37c0f4=_0x37c0f4-0x6a;let _0x401785=_0x2291a6[_0x37c0f4];return _0x401785;},a3_0x37c0(_0x2c3519,_0x222315);}class GoogleCloudProvider extends CloudProvider{constructor(_0x3b7f2e,_0x420582,_0x16e2ff,_0x3fb5c0){const _0x4b0b59=a3_0xc6ef5c,_0x47f86d={};_0x47f86d[_0x4b0b59(0x13c)]=_0x4b0b59(0x12e),_0x47f86d[_0x4b0b59(0xa9)]=_0x4b0b59(0x1b1),_0x47f86d[_0x4b0b59(0xab)]=_0x4b0b59(0x110);const _0x20bb79=_0x47f86d,_0x3d3794=_0x20bb79[_0x4b0b59(0x13c)][_0x4b0b59(0x1a2)]('|');let _0x9f00cb=0x0;while(!![]){switch(_0x3d3794[_0x9f00cb++]){case'0':this[_0x4b0b59(0xae)]=null;continue;case'1':this['customRoleName']=_0x20bb79[_0x4b0b59(0xa9)];continue;case'2':this[_0x4b0b59(0x6c)]=null;continue;case'3':this[_0x4b0b59(0x1bc)]=null;continue;case'4':this[_0x4b0b59(0x111)]=null;continue;case'5':this['iamClient']=null;continue;case'6':this['projectId']=null;continue;case'7':super(GCP,_0x3b7f2e,_0x420582,_0x16e2ff,_0x3fb5c0);continue;case'8':this['serviceAccountName']=_0x20bb79['qIwTt'];continue;}break;}}[a3_0xc6ef5c(0x73)](){const _0xd8428b=a3_0xc6ef5c,_0x2de184={};_0x2de184[_0xd8428b(0x8d)]=function(_0x377d84,_0x5e4983){return _0x377d84===_0x5e4983;},_0x2de184[_0xd8428b(0x82)]=_0xd8428b(0xb5);const _0x36865c=_0x2de184;!this[_0xd8428b(0x9c)]()&&(_0x36865c[_0xd8428b(0x8d)](_0x36865c[_0xd8428b(0x82)],_0x36865c[_0xd8428b(0x82)])?this['setConfig']():!this[_0xd8428b(0x9c)]()&&this[_0xd8428b(0x159)]());}[a3_0xc6ef5c(0x9c)](){const _0x14ddf6=a3_0xc6ef5c,_0x56ae8b={};_0x56ae8b['LDigS']=function(_0x403af4,_0x435082){return _0x403af4===_0x435082;};const _0x1fd860=_0x56ae8b;return _0x1fd860['LDigS'](global_registry[_0x14ddf6(0x16e)],!![]);}['setConfig'](){const _0x556a12=a3_0xc6ef5c,_0x18296e=this['credentialsPath'],_0x2b1bff={};_0x2b1bff[_0x556a12(0xb1)]=_0x18296e,this['containerClient']=new container['v1'][(_0x556a12(0x1b5))](_0x2b1bff);const _0x5cdf34={};_0x5cdf34[_0x556a12(0xb1)]=_0x18296e,this[_0x556a12(0x111)]=new compute['v1'][(_0x556a12(0xd1))](_0x5cdf34);const _0x29c4c8={};_0x29c4c8['keyFile']=_0x18296e,this[_0x556a12(0xae)]=new ProjectsClient(_0x29c4c8),this[_0x556a12(0x1a1)]=google[_0x556a12(0x15c)]('v1'),global_registry[_0x556a12(0x16e)]=!![];}async[a3_0xc6ef5c(0x118)](_0x54be16,_0x4a0248){const _0xce0b13=a3_0xc6ef5c,_0x5452d9={'kNaEJ':function(_0x30e58a,_0x1ab464){return _0x30e58a(_0x1ab464);},'ajGzN':function(_0x5ea21e){return _0x5ea21e();},'WXzVA':'gcp_credentials.json'},_0x1fcfdd=await _0x5452d9['kNaEJ'](_0x54be16,_0xce0b13(0xfc));let _0x47ee64=await fs[_0xce0b13(0x189)](_0x1fcfdd);_0x47ee64=_0x47ee64['toString']();const _0x1e3062=_0x5452d9[_0xce0b13(0x198)](getDirForConfig),_0x2c3316=path[_0xce0b13(0xdd)](_0x1e3062,_0x5452d9[_0xce0b13(0xed)]);fs['writeFileSync'](_0x2c3316,_0x47ee64),this['credentialsPath']=_0x2c3316;const _0x24ad6d={};return _0x24ad6d[_0xce0b13(0xb1)]=_0x2c3316,_0x4a0248[_0xce0b13(0x1c7)][GCP]=_0x24ad6d,_0x47ee64=JSON['parse'](_0x47ee64),this[_0xce0b13(0x13f)]=_0x47ee64[_0xce0b13(0xfe)],_0x4a0248;}async[a3_0xc6ef5c(0x103)](_0x5b344d){const _0x21e11f=a3_0xc6ef5c;this[_0x21e11f(0x1bc)]=_0x5b344d[this[_0x21e11f(0x16d)]][_0x21e11f(0xb1)];let _0x38a62b=await fs[_0x21e11f(0x189)](this[_0x21e11f(0x1bc)]);_0x38a62b=JSON[_0x21e11f(0x113)](_0x38a62b),this[_0x21e11f(0x13f)]=_0x38a62b[_0x21e11f(0xfe)];}[a3_0xc6ef5c(0x1bd)](_0x3317f1){const _0x42a97d=a3_0xc6ef5c;return _0x3317f1[_0x42a97d(0x165)][_0x42a97d(0x146)]['ingress'][0x0]['ip'];}async[a3_0xc6ef5c(0x99)](){const _0x50a07c=a3_0xc6ef5c,_0x2e5609={};_0x2e5609['KlFKN']=function(_0x12d46f,_0x309b93){return _0x12d46f===_0x309b93;},_0x2e5609[_0x50a07c(0x124)]=function(_0x1bf28b,_0x1800b6){return _0x1bf28b!==_0x1800b6;},_0x2e5609[_0x50a07c(0x6d)]=_0x50a07c(0x6a),_0x2e5609[_0x50a07c(0x92)]=function(_0x5cd302,_0x28382c){return _0x5cd302===_0x28382c;},_0x2e5609[_0x50a07c(0x16b)]=_0x50a07c(0xe6),_0x2e5609['tYWoB']=_0x50a07c(0x87),_0x2e5609[_0x50a07c(0x12f)]=function(_0x1c8a35,_0x232caa){return _0x1c8a35===_0x232caa;},_0x2e5609[_0x50a07c(0xaa)]='browserstack',_0x2e5609[_0x50a07c(0x18b)]=function(_0x461d6c,_0x1759e8){return _0x461d6c===_0x1759e8;},_0x2e5609[_0x50a07c(0x144)]=_0x50a07c(0x19a),_0x2e5609[_0x50a07c(0x19c)]='vANyt';const _0x44fe12=_0x2e5609;try{if(_0x44fe12['VIPGB'](_0x44fe12[_0x50a07c(0x6d)],_0x44fe12[_0x50a07c(0x6d)]))return _0x49ed9f[_0x50a07c(0xf3)]('Cannot\x20find\x20subnets\x20'+_0x2cf39e+_0x50a07c(0xbf)+_0x4fa7b0),[![],[]];else{const _0x35cf32=await this[_0x50a07c(0xf0)]();if(_0x35cf32[0x0]?.['resourceLabels']?.[_0x50a07c(0x17d)]){if(_0x44fe12['VGekO'](_0x44fe12['LYxhW'],_0x44fe12[_0x50a07c(0xbb)])){if(_0x44fe12[_0x50a07c(0x1cf)](_0x10ece0?.[_0x50a07c(0x15b)],_0x50a07c(0x188)+this[_0x50a07c(0x13f)]+_0x50a07c(0x1de)+this[_0x50a07c(0x1a7)]+'@'+this[_0x50a07c(0x13f)]+_0x50a07c(0x78)))return!![];}else{const _0x3ebd48=_0x35cf32[0x0]?.[_0x50a07c(0x1c3)]?.[_0x50a07c(0x17d)];return _0x3ebd48&&_0x44fe12[_0x50a07c(0x12f)](_0x3ebd48[_0x50a07c(0x171)](),_0x44fe12[_0x50a07c(0xaa)]);}}}}catch(_0x1ef532){if(_0x44fe12['wlhhz'](_0x44fe12[_0x50a07c(0x144)],_0x44fe12[_0x50a07c(0x19c)]))_0x2f0aa4[_0x50a07c(0x1b0)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x50a07c(0xf1)]+_0x50a07c(0x1c5)+_0xcd951c[_0x50a07c(0x15f)]+'\x20--quiet\x20--user-output-enabled=false');else return![];}return![];}async['isClusterPresent'](){const _0x27107d=a3_0xc6ef5c,_0x439b17={'qvuxO':function(_0x221587,_0x50fe78){return _0x221587!==_0x50fe78;},'uJtzo':function(_0x159b2b,_0x5aa9ed){return _0x159b2b+_0x5aa9ed;},'hMEvB':function(_0x32114e,_0x25b323){return _0x32114e===_0x25b323;},'jBZmB':function(_0x3bc2b0,_0x5977a1){return _0x3bc2b0===_0x5977a1;},'COFJK':_0x27107d(0x1a5),'MrUov':_0x27107d(0x79),'LNEvU':_0x27107d(0x11b),'bjYHh':_0x27107d(0x174),'lsNWA':'PKtpu','RAnxB':function(_0x4bba61,_0x4df601){return _0x4bba61!==_0x4df601;},'fwfPP':_0x27107d(0x1d0),'KyEal':_0x27107d(0x163),'jFnbT':_0x27107d(0x1e1),'AVqfP':function(_0x15600d,_0x24c767){return _0x15600d===_0x24c767;},'GJusc':function(_0x58eb1e,_0x329b72){return _0x58eb1e===_0x329b72;},'LckHh':_0x27107d(0x14c),'HFpyh':_0x27107d(0x126),'myxem':function(_0x2c8713,_0x276b97){return _0x2c8713===_0x276b97;},'zIVFZ':_0x27107d(0x1ba),'atiVE':_0x27107d(0xa0),'bwVSG':function(_0xfe667a,_0x105c26){return _0xfe667a!==_0x105c26;},'jpObz':function(_0x2e3e66,_0x140830){return _0x2e3e66===_0x140830;},'RaLsm':_0x27107d(0x182),'jtNvW':function(_0x3f166c,_0x21dee0){return _0x3f166c>_0x21dee0;},'IhEnT':_0x27107d(0x179),'cfsms':function(_0x21f240,_0xc41c84){return _0x21f240<_0xc41c84;},'RktUy':function(_0x2a7184,_0x22d5af){return _0x2a7184!==_0x22d5af;},'aKbpx':_0x27107d(0x7b),'fRkIN':function(_0x419352,_0x335fac){return _0x419352(_0x335fac);},'pJdNc':_0x27107d(0x11f),'vYHwc':function(_0x337481,_0x580bcd){return _0x337481(_0x580bcd);},'HGNXD':function(_0x18f0ef,_0x446f8d){return _0x18f0ef<=_0x446f8d;},'XJEHy':function(_0x30375c,_0x4eb74a){return _0x30375c>_0x4eb74a;},'yvwzD':function(_0x25f22f,_0x57ecdb){return _0x25f22f===_0x57ecdb;},'ZyRBf':'PyMTh','JEkEg':_0x27107d(0xbe),'QdYZA':function(_0x35cddf){return _0x35cddf();},'HUbac':function(_0x537212,_0x5a8047){return _0x537212-_0x5a8047;},'xCPrZ':function(_0x4e9e60,_0x497932){return _0x4e9e60-_0x497932;},'nZSIM':'qTVGy'};this[_0x27107d(0x73)]();let _0x203b95=await fs[_0x27107d(0x189)](path['join'](__dirname,'..',_0x439b17[_0x27107d(0x152)],_0x439b17[_0x27107d(0x11a)],_0x439b17[_0x27107d(0x162)]),_0x439b17[_0x27107d(0x132)]);_0x203b95=JSON[_0x27107d(0x113)](_0x203b95);let _0x3fd987=[global_registry[_0x27107d(0x15f)]];if(_0x439b17[_0x27107d(0x137)](_0x203b95[global_registry[_0x27107d(0x15f)]],undefined)){if(_0x439b17[_0x27107d(0xf6)](_0x439b17['lsNWA'],_0x439b17[_0x27107d(0x98)]))_0x3fd987=_0x3fd987[_0x27107d(0x6f)](_0x203b95[global_registry[_0x27107d(0x15f)]]);else return!![];}const _0x5aacd1=[];for await(let _0x3571c6 of _0x3fd987){if(_0x439b17[_0x27107d(0x13b)](_0x439b17[_0x27107d(0x19d)],_0x439b17[_0x27107d(0x19d)]))return _0x203441['status'][_0x27107d(0x146)][_0x27107d(0x1be)][0x0]['ip'];else{const _0x2b7b7d={};_0x2b7b7d['parent']='projects/'+this[_0x27107d(0x13f)]+_0x27107d(0x90)+_0x3571c6;const _0x48dac6=_0x2b7b7d,_0x321b1e=await this['containerClient'][_0x27107d(0xd2)](_0x48dac6);for(const _0x839117 of _0x321b1e[0x0][_0x27107d(0x84)]){if(_0x439b17['jBZmB'](_0x439b17[_0x27107d(0x14b)],_0x439b17['jFnbT']))return _0x439b17['qvuxO'](_0x518aa0[_0x27107d(0x15f)],_0x4ab5d6[0x0])&&(_0x35d1f9[_0x27107d(0x15f)]=_0xccf22d[0x0],this[_0x27107d(0x10a)]()),!![];else{if(_0x439b17[_0x27107d(0xbd)](_0x839117[_0x27107d(0x15b)],this['clusterName'])){if(_0x439b17['GJusc'](_0x439b17['LckHh'],_0x439b17[_0x27107d(0xd6)])){const _0x255060=this['credentialsPath'],_0x135b21={};_0x135b21['keyFile']=_0x255060,this['containerClient']=new _0x135556['v1']['ClusterManagerClient'](_0x135b21);const _0x27fb39={};_0x27fb39[_0x27107d(0xb1)]=_0x255060,this[_0x27107d(0x111)]=new _0x4c1917['v1'][(_0x27107d(0xd1))](_0x27fb39);const _0x5a53aa={};_0x5a53aa[_0x27107d(0xb1)]=_0x255060,this[_0x27107d(0xae)]=new _0x135143(_0x5a53aa),this[_0x27107d(0x1a1)]=_0x5862a8[_0x27107d(0x15c)]('v1'),_0xd2c43a[_0x27107d(0x16e)]=!![];}else _0x5aacd1[_0x27107d(0x166)](_0x3571c6);}}}}}const _0x168b19=_0x5aacd1['length'];if(_0x439b17[_0x27107d(0xbd)](_0x168b19,0x1))return _0x439b17[_0x27107d(0x14d)](_0x439b17[_0x27107d(0x80)],_0x439b17[_0x27107d(0x18e)])?!![]:(_0x439b17['bwVSG'](global_registry[_0x27107d(0x15f)],_0x5aacd1[0x0])&&(_0x439b17[_0x27107d(0xf9)](_0x439b17[_0x27107d(0xcd)],_0x439b17[_0x27107d(0xcd)])?(global_registry[_0x27107d(0x15f)]=_0x5aacd1[0x0],this[_0x27107d(0x10a)]()):(_0xffa9b5[_0x27107d(0x15f)]=_0x241e08[0x0],this['updateClusterRegion']())),!![]);else{if(_0x439b17[_0x27107d(0x86)](_0x168b19,0x1)){if(_0x439b17[_0x27107d(0x13b)](_0x439b17[_0x27107d(0x155)],_0x439b17['IhEnT']))_0x5c943e[_0x27107d(0xaf)]('['+_0x439b17[_0x27107d(0x157)](_0xd83fb8,0x1)+']\x20'+_0xa4bc5f[_0x4535bd]);else{console['log'](_0x27107d(0x1b4)+this[_0x27107d(0xf1)]+'\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:');for(let _0x243349=0x0;_0x439b17[_0x27107d(0x1da)](_0x243349,_0x168b19);_0x243349+=0x1){if(_0x439b17[_0x27107d(0x18f)](_0x439b17[_0x27107d(0x156)],_0x439b17[_0x27107d(0x156)])){const _0x2fb690=_0x27107d(0xdc)+this['projectId']+_0x27107d(0x134)+_0xa45597[_0x27107d(0x15f)]+'/subnetworks/'+_0x5ca238[0x0];if(_0x439b17[_0x27107d(0xf6)](_0x2fb690,_0x2338be))return[!![],_0x530551];}else console[_0x27107d(0xaf)]('['+_0x439b17[_0x27107d(0x157)](_0x243349,0x1)+']\x20'+_0x5aacd1[_0x243349]);}const _0x17685e=await _0x439b17[_0x27107d(0x93)](inputConfirmation,_0x439b17[_0x27107d(0x1a8)]),_0x24a632=_0x439b17[_0x27107d(0x1a6)](Number,_0x17685e);if(_0x439b17[_0x27107d(0x1a6)](isNaN,_0x24a632)||_0x439b17[_0x27107d(0x1c4)](_0x24a632,0x0)||_0x439b17[_0x27107d(0xfd)](_0x24a632,_0x168b19)){if(_0x439b17[_0x27107d(0x128)](_0x439b17['ZyRBf'],_0x439b17['ZyRBf']))console['error'](_0x439b17[_0x27107d(0xe4)]),process[_0x27107d(0x191)](0x1);else return![];}return _0x439b17[_0x27107d(0x176)](closeInput),logger[_0x27107d(0x13a)](_0x27107d(0x13e)+_0x5aacd1[_0x439b17[_0x27107d(0x6e)](_0x24a632,0x1)]),_0x439b17[_0x27107d(0x18f)](global_registry['clusterRegion'],_0x5aacd1[_0x439b17[_0x27107d(0x135)](_0x24a632,0x1)])&&(_0x439b17[_0x27107d(0x18f)](_0x439b17[_0x27107d(0x154)],_0x439b17[_0x27107d(0x154)])?_0x439b17[_0x27107d(0x120)](_0x16285b[_0x27107d(0x15b)],this[_0x27107d(0xf1)])&&_0x96b9ad[_0x27107d(0x166)](_0x45d1fe):(global_registry[_0x27107d(0x15f)]=_0x5aacd1[_0x439b17['HUbac'](_0x24a632,0x1)],this[_0x27107d(0x10a)]())),!![];}}}return![];}async[a3_0xc6ef5c(0xf0)](){const _0x5c5ba0=a3_0xc6ef5c,_0x488a0a=await this[_0x5c5ba0(0x6c)][_0x5c5ba0(0x85)]({'name':_0x5c5ba0(0x188)+this[_0x5c5ba0(0x13f)]+_0x5c5ba0(0x90)+global_registry['clusterRegion']+_0x5c5ba0(0xad)+this['clusterName']});return _0x488a0a;}async[a3_0xc6ef5c(0xb4)](){const _0xc9ac6b=a3_0xc6ef5c,_0x5c1c26={};_0x5c1c26[_0xc9ac6b(0x1d7)]=_0xc9ac6b(0x1a5),_0x5c1c26['wDLtO']=_0xc9ac6b(0x79),_0x5c1c26[_0xc9ac6b(0x169)]=_0xc9ac6b(0xec);const _0x48e8f8=_0x5c1c26;cp['execSync'](_0xc9ac6b(0x1ce)),cp[_0xc9ac6b(0x123)](_0xc9ac6b(0x11e)+this['credentialsPath']);const _0x27f59f=await this[_0xc9ac6b(0xf0)](),_0x5b27e0='gke_'+this['projectId']+'_'+global_registry['clusterRegion']+'_'+this[_0xc9ac6b(0xf1)];let _0x9b5427=await fs[_0xc9ac6b(0x189)](path['join'](__dirname,'..',_0x48e8f8[_0xc9ac6b(0x1d7)],_0x48e8f8['wDLtO'],_0x48e8f8[_0xc9ac6b(0x169)]));return _0x9b5427=_0x9b5427[_0xc9ac6b(0x190)](),_0x9b5427=_0x9b5427[_0xc9ac6b(0x1a9)](/<CLUSTER_NAME>/g,_0x5b27e0),_0x9b5427=_0x9b5427[_0xc9ac6b(0x1a9)](/<CLUSTER_URL>/g,_0xc9ac6b(0x1b2)+_0x27f59f[0x0][_0xc9ac6b(0xb2)]),_0x9b5427=_0x9b5427[_0xc9ac6b(0x1a9)](/<CERTIFICATE_DATA>/g,_0x27f59f[0x0][_0xc9ac6b(0x130)][_0xc9ac6b(0x1b8)]),_0x9b5427;}async['checkServiceAccount'](){const _0x37782e=a3_0xc6ef5c,_0x20aecb={};_0x20aecb['qvnII']=_0x37782e(0xdb),_0x20aecb['hqSyJ']=function(_0xd0cff8,_0x2e5e26){return _0xd0cff8===_0x2e5e26;},_0x20aecb[_0x37782e(0x129)]=_0x37782e(0x108),_0x20aecb['mexPH']='qHvgH',_0x20aecb[_0x37782e(0x10e)]=_0x37782e(0x1cd);const _0x4a119d=_0x20aecb,_0x53a53f={};_0x53a53f[_0x37782e(0x149)]=[_0x4a119d[_0x37782e(0x1d8)]],_0x53a53f[_0x37782e(0xb1)]=this[_0x37782e(0x1bc)];const _0x589f40=await google[_0x37782e(0xbc)][_0x37782e(0x12a)](_0x53a53f),_0x31f2ba=await this[_0x37782e(0x1a1)][_0x37782e(0x17a)][_0x37782e(0x1b3)]['list']({'name':_0x37782e(0x188)+this[_0x37782e(0x13f)],'auth':_0x589f40});for(const _0x2c7600 of _0x31f2ba?.[_0x37782e(0x18a)]?.['accounts']){if(_0x4a119d['hqSyJ'](_0x4a119d[_0x37782e(0x129)],_0x4a119d[_0x37782e(0x129)])){if(_0x4a119d[_0x37782e(0x143)](_0x2c7600?.[_0x37782e(0x15b)],_0x37782e(0x188)+this[_0x37782e(0x13f)]+'/serviceAccounts/'+this[_0x37782e(0x1a7)]+'@'+this[_0x37782e(0x13f)]+_0x37782e(0x78)))return _0x4a119d['hqSyJ'](_0x4a119d[_0x37782e(0xfb)],_0x4a119d['Pdocf'])?[!![],_0x22ee11]:!![];}else _0x42e93e[_0x37782e(0x1af)][_0x37782e(0x166)](_0x50d769);}return![];}async[a3_0xc6ef5c(0x133)](){const _0x960ba0=a3_0xc6ef5c,_0x280e43={};_0x280e43[_0x960ba0(0x10f)]=_0x960ba0(0x83),_0x280e43[_0x960ba0(0xb8)]=function(_0x365bf3,_0x3e1395){return _0x365bf3===_0x3e1395;},_0x280e43[_0x960ba0(0x187)]=_0x960ba0(0xe0),_0x280e43[_0x960ba0(0x1d4)]=_0x960ba0(0xd8),_0x280e43[_0x960ba0(0xf2)]=_0x960ba0(0x173),_0x280e43[_0x960ba0(0xce)]=_0x960ba0(0x185),_0x280e43[_0x960ba0(0xac)]='https://www.googleapis.com/auth/cloud-platform',_0x280e43[_0x960ba0(0xa1)]=_0x960ba0(0x1ae),_0x280e43[_0x960ba0(0x145)]=_0x960ba0(0xa4),_0x280e43[_0x960ba0(0x6b)]=_0x960ba0(0x1c2),_0x280e43[_0x960ba0(0x177)]='storage.buckets.delete',_0x280e43[_0x960ba0(0xd3)]=_0x960ba0(0x10b),_0x280e43[_0x960ba0(0x164)]=_0x960ba0(0x114),_0x280e43[_0x960ba0(0x1bf)]='storage.buckets.getIamPolicy',_0x280e43['GOLMg']=_0x960ba0(0xb7),_0x280e43[_0x960ba0(0xd7)]=_0x960ba0(0x12b),_0x280e43[_0x960ba0(0x106)]=_0x960ba0(0x18d),_0x280e43[_0x960ba0(0x1c9)]=_0x960ba0(0xc3),_0x280e43[_0x960ba0(0x1a0)]='storage.buckets.setIamPolicy',_0x280e43['Inkwz']='storage.buckets.update',_0x280e43[_0x960ba0(0x127)]=_0x960ba0(0x1d5),_0x280e43['vtZYb']=_0x960ba0(0x12c),_0x280e43[_0x960ba0(0x16f)]=_0x960ba0(0xc2),_0x280e43[_0x960ba0(0x71)]=_0x960ba0(0x17c),_0x280e43[_0x960ba0(0x1df)]=_0x960ba0(0x105),_0x280e43[_0x960ba0(0x7c)]=_0x960ba0(0xde),_0x280e43[_0x960ba0(0xc6)]='storage.objects.get',_0x280e43[_0x960ba0(0x141)]=_0x960ba0(0x1b9),_0x280e43[_0x960ba0(0x17b)]=_0x960ba0(0xb3),_0x280e43[_0x960ba0(0xd4)]=_0x960ba0(0x109),_0x280e43[_0x960ba0(0x136)]=_0x960ba0(0x1ac),_0x280e43[_0x960ba0(0xf4)]=_0x960ba0(0x1dd),_0x280e43['AhNeR']=_0x960ba0(0xd9);const _0x187309=_0x280e43,_0x23c378=await this[_0x960ba0(0x89)]();if(_0x23c378){if(_0x187309['zxHhO'](_0x187309[_0x960ba0(0x187)],_0x187309[_0x960ba0(0x1d4)]))_0x3d5d26[_0x960ba0(0x13a)](_0x187309['wzUPE']);else{logger[_0x960ba0(0x13a)](_0x187309['VDDhK']);return;}}logger[_0x960ba0(0x13a)](_0x187309[_0x960ba0(0xce)]);const _0x3c981d={};_0x3c981d['scopes']=[_0x187309[_0x960ba0(0xac)]],_0x3c981d[_0x960ba0(0xb1)]=this[_0x960ba0(0x1bc)];const _0x2f95dc=await google[_0x960ba0(0xbc)][_0x960ba0(0x12a)](_0x3c981d),_0xdac7fd={};_0xdac7fd[_0x960ba0(0x19f)]=[_0x187309[_0x960ba0(0xa1)],_0x187309[_0x960ba0(0x145)],_0x187309[_0x960ba0(0x6b)],_0x187309[_0x960ba0(0x177)],_0x187309['qisJY'],_0x187309[_0x960ba0(0x164)],_0x187309['VaUQK'],_0x187309[_0x960ba0(0x1d9)],_0x187309[_0x960ba0(0xd7)],_0x187309[_0x960ba0(0x106)],_0x187309[_0x960ba0(0x1c9)],_0x187309['ytTmn'],_0x187309[_0x960ba0(0x196)],_0x187309[_0x960ba0(0x127)],_0x187309['vtZYb'],_0x187309[_0x960ba0(0x16f)],_0x187309['BoZmm'],_0x187309[_0x960ba0(0x1df)],_0x187309[_0x960ba0(0x7c)],_0x187309[_0x960ba0(0xc6)],_0x187309[_0x960ba0(0x141)],_0x187309[_0x960ba0(0x17b)],_0x187309[_0x960ba0(0xd4)],_0x187309[_0x960ba0(0x136)]],_0xdac7fd[_0x960ba0(0xf7)]=_0x187309['LopWt'],await this[_0x960ba0(0x1a1)][_0x960ba0(0x19b)][_0x960ba0(0x7a)][_0x960ba0(0x153)]({'parent':'projects/'+this[_0x960ba0(0x13f)],'requestBody':{'role':_0xdac7fd,'roleId':this[_0x960ba0(0xa5)]},'auth':_0x2f95dc});const _0x2a86f5={};_0x2a86f5['name']='projects/'+this[_0x960ba0(0x13f)],_0x2a86f5[_0x960ba0(0x194)]={},_0x2a86f5[_0x960ba0(0xbc)]=_0x2f95dc,_0x2a86f5[_0x960ba0(0x194)]['accountId']=this[_0x960ba0(0x1a7)];const _0x310f3c=_0x2a86f5;await this[_0x960ba0(0x1a1)][_0x960ba0(0x17a)][_0x960ba0(0x1b3)]['create'](_0x310f3c);let _0x491a0f=await this['resourcemanagerClient'][_0x960ba0(0xb9)]({'resource':_0x960ba0(0x188)+this[_0x960ba0(0x13f)]});_0x491a0f=_0x491a0f[0x0][_0x960ba0(0x192)];const _0x91bbe4={};_0x91bbe4[_0x960ba0(0x107)]=_0x960ba0(0x188)+this[_0x960ba0(0x13f)]+_0x960ba0(0x168)+this[_0x960ba0(0xa5)],_0x91bbe4[_0x960ba0(0x15a)]=[_0x960ba0(0x1e0)+this['serviceAccountName']+'@'+this[_0x960ba0(0x13f)]+_0x960ba0(0x78)],_0x491a0f[_0x960ba0(0x166)](_0x91bbe4);const _0x1b3aa0={};_0x1b3aa0[_0x960ba0(0x192)]=_0x491a0f,await this[_0x960ba0(0xae)][_0x960ba0(0xe2)]({'resource':_0x960ba0(0x188)+this[_0x960ba0(0x13f)],'policy':_0x1b3aa0}),logger['info'](_0x187309['AhNeR']);}async[a3_0xc6ef5c(0xeb)](_0x39ecc1=a3_0xc6ef5c(0x167),_0x364640=[a3_0xc6ef5c(0x167)]){const _0x2d30ac=a3_0xc6ef5c,_0x5be03f={};_0x5be03f[_0x2d30ac(0x8c)]=_0x2d30ac(0x1ca),_0x5be03f[_0x2d30ac(0x158)]=_0x2d30ac(0x9b),_0x5be03f[_0x2d30ac(0x1ad)]='Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account';const _0x3b6159=_0x5be03f,_0x488b8e=_0x3b6159[_0x2d30ac(0x8c)][_0x2d30ac(0x1a2)]('|');let _0x78172c=0x0;while(!![]){switch(_0x488b8e[_0x78172c++]){case'0':await this[_0x2d30ac(0x1d3)](_0x39ecc1,_0x364640);continue;case'1':logger['info'](_0x3b6159[_0x2d30ac(0x158)]);continue;case'2':this[_0x2d30ac(0xcb)](this[_0x2d30ac(0xa3)]);continue;case'3':return!![];case'4':await this[_0x2d30ac(0x133)]();continue;case'5':const _0x1899a4={};_0x1899a4['type']=WS_EVENTS[_0x2d30ac(0x125)],_0x1899a4['message']=_0x3b6159[_0x2d30ac(0x1ad)],this[_0x2d30ac(0x183)][_0x2d30ac(0xe3)](this['rws'],_0x1899a4);continue;case'6':await this['updateWindowsNodeGroup']();continue;}break;}}async['createCluster'](_0xaec2b=a3_0xc6ef5c(0x167),_0x18fc69=['default']){const _0xffa084=a3_0xc6ef5c,_0x2c4115={};_0x2c4115[_0xffa084(0xe1)]=function(_0x5a1eda,_0x2c58e4){return _0x5a1eda===_0x2c58e4;},_0x2c4115[_0xffa084(0x7e)]=_0xffa084(0x76),_0x2c4115[_0xffa084(0x95)]=function(_0x339342,_0x473583){return _0x339342===_0x473583;},_0x2c4115[_0xffa084(0x100)]='Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.',_0x2c4115[_0xffa084(0x1b7)]=_0xffa084(0x77),_0x2c4115[_0xffa084(0x13d)]=_0xffa084(0x180),_0x2c4115[_0xffa084(0x1c6)]=_0xffa084(0x1a5),_0x2c4115['ujjkH']=_0xffa084(0x79),_0x2c4115[_0xffa084(0x12d)]=_0xffa084(0x119),_0x2c4115['IiXto']=_0xffa084(0x174),_0x2c4115['VFqTg']='regionmap.json',_0x2c4115[_0xffa084(0x19e)]=function(_0x2d65bb,_0x280be8){return _0x2d65bb*_0x280be8;},_0x2c4115[_0xffa084(0x11d)]=function(_0x15dc9e,_0x2061d2){return _0x15dc9e*_0x2061d2;},_0x2c4115['CzTgM']=function(_0x2706bb,_0x27a969){return _0x2706bb===_0x27a969;},_0x2c4115['vcaLW']=_0xffa084(0x1dc),_0x2c4115[_0xffa084(0x1a4)]=function(_0x38b1a9,_0x4fdf14){return _0x38b1a9===_0x4fdf14;},_0x2c4115[_0xffa084(0xdf)]=_0xffa084(0x184),_0x2c4115[_0xffa084(0x150)]=_0xffa084(0x75),_0x2c4115[_0xffa084(0x94)]=_0xffa084(0x1db),_0x2c4115[_0xffa084(0x14a)]=_0xffa084(0x83);const _0x366694=_0x2c4115;try{if(_0x366694[_0xffa084(0xe1)](_0x366694['UrEur'],_0x366694[_0xffa084(0x1b7)])){logger[_0xffa084(0x13a)](_0x366694[_0xffa084(0x13d)]);let _0x599049=await fs[_0xffa084(0x189)](path[_0xffa084(0xdd)](__dirname,'..',_0x366694[_0xffa084(0x1c6)],_0x366694[_0xffa084(0x199)],_0x366694[_0xffa084(0x12d)]),_0x366694[_0xffa084(0x10c)]);_0x599049=JSON['parse'](_0x599049);let _0x324c7e=await fs[_0xffa084(0x189)](path[_0xffa084(0xdd)](__dirname,'..',_0x366694[_0xffa084(0x1c6)],_0x366694[_0xffa084(0x199)],_0x366694[_0xffa084(0x181)]),_0x366694[_0xffa084(0x10c)]);_0x324c7e=JSON[_0xffa084(0x113)](_0x324c7e),_0x599049[_0xffa084(0x15b)]=this[_0xffa084(0xf1)],_0x599049[_0xffa084(0x178)][0x0][_0xffa084(0x72)][_0xffa084(0x11c)]=global_registry['instanceType'],_0x599049[_0xffa084(0x178)][0x1][_0xffa084(0x72)]['machineType']=global_registry[_0xffa084(0xfa)],_0x599049[_0xffa084(0x178)][0x0][_0xffa084(0x72)]['serviceAccount']=this[_0xffa084(0x1a7)]+'@'+this[_0xffa084(0x13f)]+_0xffa084(0x78),_0x599049[_0xffa084(0x178)][0x1][_0xffa084(0x72)][_0xffa084(0x1b6)]=this[_0xffa084(0x1a7)]+'@'+this['projectId']+_0xffa084(0x78),_0x599049[_0xffa084(0x178)][0x0]['autoscaling']['minNodeCount']=global_registry['minNodes'],_0x599049[_0xffa084(0x178)][0x1][_0xffa084(0x131)][_0xffa084(0xf8)]=0x0,_0x599049[_0xffa084(0x178)][0x0]['autoscaling'][_0xffa084(0x9f)]=global_registry[_0xffa084(0x17f)],_0x599049[_0xffa084(0x178)][0x1]['autoscaling'][_0xffa084(0x9f)]=global_registry[_0xffa084(0x17f)],_0x599049[_0xffa084(0x96)]=global_registry[_0xffa084(0x15f)],_0x599049[_0xffa084(0x161)]=[_0x324c7e[global_registry[_0xffa084(0x15f)]][0x0]],_0x599049['network']=_0xffa084(0x188)+this[_0xffa084(0x13f)]+_0xffa084(0x138)+_0xaec2b,_0x599049['subnetwork']=_0xffa084(0x188)+this['projectId']+_0xffa084(0x134)+global_registry[_0xffa084(0x15f)]+_0xffa084(0x122)+_0x18fc69[0x0];const _0x2bf663=await this[_0xffa084(0x6c)][_0xffa084(0x1d3)]({'cluster':_0x599049,'parent':_0xffa084(0x188)+this[_0xffa084(0x13f)]+_0xffa084(0x90)+global_registry[_0xffa084(0x15f)]});await this['webSocketUtils']['delay'](_0x366694[_0xffa084(0x19e)](_0x366694[_0xffa084(0x11d)](0x7,0x3c),0x3e8));}else{const _0x11589c=_0x3b1d21[0x0]?.[_0xffa084(0x1c3)]?.['managedby'];return _0x11589c&&_0x366694[_0xffa084(0xe1)](_0x11589c[_0xffa084(0x171)](),_0x366694['FkOen']);}}catch(_0x3bee71){if(_0x366694[_0xffa084(0xcc)](_0x366694[_0xffa084(0x97)],_0x366694[_0xffa084(0x97)])){const _0x47d4f9=await this[_0xffa084(0x117)]();if(_0x47d4f9){if(_0x366694[_0xffa084(0x1a4)](_0x366694[_0xffa084(0xdf)],_0x366694['nHRdD']))logger[_0xffa084(0x13a)](_0x366694[_0xffa084(0x150)],_0x3bee71[_0xffa084(0x7d)]),await this[_0xffa084(0xa6)]();else return!![];}else{if(_0x366694[_0xffa084(0x1a4)](_0x366694['eZiQo'],_0x366694[_0xffa084(0x94)]))logger[_0xffa084(0x13a)](_0x366694['AEdWV']);else return _0x366694[_0xffa084(0x95)](_0x171175['gcpConfigSet'],!![]);}throw _0x3bee71;}else _0x536847[_0xffa084(0xf3)](_0x366694[_0xffa084(0x100)]),_0x55e263['exit'](0x1);}}async[a3_0xc6ef5c(0x17e)](){const _0x227e84=a3_0xc6ef5c;cp[_0x227e84(0x1b0)](_0x227e84(0x1e2)+this['clusterName']+'\x20--windows-os-version=ltsc2022\x20--region\x20'+global_registry[_0x227e84(0x15f)]+_0x227e84(0xd5));}async[a3_0xc6ef5c(0xa6)](_0x235c50,_0x20e58e){const _0x6fa114=a3_0xc6ef5c,_0x3a4eb7={'DRCCt':function(_0x5cdc96,_0x29f975){return _0x5cdc96-_0x29f975;},'QotZX':_0x6fa114(0x173),'Iiysx':function(_0x1252e7,_0x376241){return _0x1252e7===_0x376241;},'kPNqo':_0x6fa114(0x9a),'MBctu':function(_0x291916,_0x28e21b){return _0x291916(_0x28e21b);},'NaHmf':_0x6fa114(0x14f),'LDGzJ':_0x6fa114(0x9d),'MfNyl':function(_0x9e360a,_0x21d72e){return _0x9e360a!==_0x21d72e;},'lbOBj':'ZEHSL','wxRnj':function(_0x482166,_0xa65d27){return _0x482166!==_0xa65d27;},'HDPoM':_0x6fa114(0x197),'HuDMF':_0x6fa114(0x16c),'lhUmE':_0x6fa114(0x1c0)};try{if(_0x3a4eb7[_0x6fa114(0x170)](_0x3a4eb7[_0x6fa114(0xc8)],_0x3a4eb7[_0x6fa114(0xc8)])){await _0x3a4eb7[_0x6fa114(0x88)](deleteAgent,_0x235c50),await _0x3a4eb7['MBctu'](deleteRoutingDeps,_0x235c50),logger[_0x6fa114(0x13a)](_0x6fa114(0x16a)+this[_0x6fa114(0xf1)]);const _0x59b9b0=await this[_0x6fa114(0x6c)][_0x6fa114(0xa6)]({'name':_0x6fa114(0x188)+this[_0x6fa114(0x13f)]+_0x6fa114(0x90)+global_registry[_0x6fa114(0x15f)]+_0x6fa114(0xad)+this[_0x6fa114(0xf1)]});if(_0x3a4eb7[_0x6fa114(0x170)](_0x59b9b0[0x0]?.['status'],_0x3a4eb7[_0x6fa114(0x140)])||_0x3a4eb7['Iiysx'](_0x59b9b0[0x0]?.['status'],_0x3a4eb7[_0x6fa114(0x15e)])){if(_0x3a4eb7[_0x6fa114(0x121)](_0x3a4eb7[_0x6fa114(0x8e)],_0x3a4eb7['lbOBj']))_0x28c81f[_0x6fa114(0x166)](_0x8316c7);else return!![];}logger[_0x6fa114(0x13a)](_0x6fa114(0x14e));}else _0x142ab9[_0x6fa114(0x15f)]=_0x1b4bdf[_0x3a4eb7[_0x6fa114(0x1cb)](_0x534e51,0x1)],this['updateClusterRegion']();}catch(_0x35dd22){if(_0x3a4eb7[_0x6fa114(0x195)](_0x3a4eb7[_0x6fa114(0xca)],_0x3a4eb7['HuDMF'])){logger[_0x6fa114(0x13a)](_0x3a4eb7[_0x6fa114(0xe9)]);throw _0x35dd22;}else{_0xc4a1d2[_0x6fa114(0x13a)](_0x3a4eb7[_0x6fa114(0xc9)]);return;}}}async[a3_0xc6ef5c(0xe7)](_0x3aec6d){const _0xce6968=a3_0xc6ef5c,_0x531789={};_0x531789[_0xce6968(0xba)]=function(_0x1cae14,_0x30701c){return _0x1cae14===_0x30701c;},_0x531789['MNzZk']=_0xce6968(0xc5),_0x531789[_0xce6968(0x8b)]=function(_0x3a5a6a,_0x457ea3){return _0x3a5a6a>_0x457ea3;},_0x531789[_0xce6968(0xb6)]=function(_0x4c5e3c,_0x208929){return _0x4c5e3c===_0x208929;},_0x531789[_0xce6968(0x160)]=function(_0x159125,_0x3b0767){return _0x159125===_0x3b0767;},_0x531789[_0xce6968(0x74)]=_0xce6968(0x101),_0x531789['YJffq']=function(_0x49e410,_0x2aa522){return _0x49e410===_0x2aa522;},_0x531789[_0xce6968(0xee)]=_0xce6968(0xa7);const _0x22337f=_0x531789;try{if(_0x22337f[_0xce6968(0xba)](_0x22337f[_0xce6968(0x81)],_0x22337f[_0xce6968(0x81)])){const _0x22888e={};_0x22888e[_0xce6968(0xef)]=projectId,_0x22888e[_0xce6968(0x139)]=_0x3aec6d;const _0x2b3b65=await networkClient[_0xce6968(0x91)](_0x22888e);if(_0x22337f[_0xce6968(0x8b)](_0x2b3b65[_0xce6968(0x1cc)],0x0)&&_0x22337f['hJMSk'](_0x2b3b65[0x0][_0xce6968(0x15b)],_0x3aec6d)){if(_0x22337f['FCvbU'](_0x22337f[_0xce6968(0x74)],_0x22337f[_0xce6968(0x74)]))return!![];else _0x3e8484=_0xd76ca6[_0xce6968(0x6f)](_0xf84b6d[_0x4f4e47[_0xce6968(0x15f)]]);}}else return![];}catch(_0x255e9d){if(_0x22337f['YJffq'](_0x22337f['CyDCw'],_0x22337f[_0xce6968(0xee)]))return![];else this[_0xce6968(0x159)]();}return![];}async[a3_0xc6ef5c(0xe5)](_0x4a1155,_0x2c1949){const _0x20a3bd=a3_0xc6ef5c,_0x773696={};_0x773696[_0x20a3bd(0x1aa)]='GKE\x20Cluster\x20deletion\x20failed',_0x773696[_0x20a3bd(0x112)]=function(_0x4ba59a,_0x44a862){return _0x4ba59a===_0x44a862;},_0x773696[_0x20a3bd(0x1a3)]=function(_0x19f2c5,_0xb90c14){return _0x19f2c5===_0xb90c14;},_0x773696[_0x20a3bd(0xd0)]='kADNX',_0x773696[_0x20a3bd(0x115)]='eHxhk';const _0x5eee5d=_0x773696;try{const _0x4fe869={};_0x4fe869[_0x20a3bd(0xef)]=projectId,_0x4fe869[_0x20a3bd(0x139)]=_0x2c1949;const _0x42431c=await networkClient[_0x20a3bd(0x91)](_0x4fe869);for(const _0x35f624 of _0x42431c[0x0][_0x20a3bd(0x8a)]){const _0x4ddc72=_0x20a3bd(0xdc)+this[_0x20a3bd(0x13f)]+'/regions/'+global_registry[_0x20a3bd(0x15f)]+_0x20a3bd(0x122)+_0x4a1155[0x0];if(_0x5eee5d['WEPhY'](_0x4ddc72,_0x35f624)){if(_0x5eee5d['NSNvu'](_0x5eee5d[_0x20a3bd(0xd0)],_0x5eee5d[_0x20a3bd(0x115)])){_0x24bf04[_0x20a3bd(0x13a)](_0x5eee5d[_0x20a3bd(0x1aa)]);throw _0x39ff15;}else return[!![],_0x4a1155];}}}catch(_0xc96b3c){return logger[_0x20a3bd(0xf3)](_0x20a3bd(0x9e)+_0x4a1155+'.\x20Error:\x20'+_0xc96b3c),[![],[]];}return[![],[]];}async['sendGCPInfoToHST'](){const _0x162210=a3_0xc6ef5c,_0x2ac875=await this['networkClient'][_0x162210(0x1d1)]({'project':this[_0x162210(0x13f)]}),_0x5b945d={};_0x5b945d[_0x162210(0xcf)]=global_registry['bstackUsername'],_0x5b945d['accessKey']=global_registry[_0x162210(0x15d)],_0x5b945d[_0x162210(0x1c7)]=GCP,_0x5b945d['vpcInfo']=[];const _0x10cb1c=_0x5b945d;for(const _0x3e9938 of _0x2ac875){_0x10cb1c['vpcInfo'][_0x162210(0x166)](_0x3e9938);}const _0x162917={};_0x162917[_0x162210(0xc0)]=WS_EVENTS[_0x162210(0x1d6)],_0x162917[_0x162210(0x186)]=_0x10cb1c,this[_0x162210(0x183)][_0x162210(0xe3)](this[_0x162210(0xa3)],_0x162917);}async[a3_0xc6ef5c(0x10a)](){const _0x590cf5=a3_0xc6ef5c,_0x2181fe={'eiiwu':function(_0x3baae,_0x5e6911,_0xe1e242){return _0x3baae(_0x5e6911,_0xe1e242);},'OCGvo':_0x590cf5(0x7f),'suHKN':_0x590cf5(0xda),'uUyaf':function(_0x1a558c,_0x56e716,_0x3ef602){return _0x1a558c(_0x56e716,_0x3ef602);}},_0x20f63a='https://'+AG_API_URL+_0x590cf5(0x8f),_0x5e3494={};_0x5e3494['profileId']=global_registry[_0x590cf5(0x148)];const _0x1050b0={};_0x1050b0['newRegion']=global_registry[_0x590cf5(0x15f)];const _0x3cc012={'searchParams':_0x5e3494,'json':_0x1050b0,'headers':_0x2181fe[_0x590cf5(0xc1)](getAuthHeader,global_registry[_0x590cf5(0x147)],global_registry['bstackAccesskey']),'method':_0x2181fe[_0x590cf5(0x116)],'responseType':_0x2181fe[_0x590cf5(0xff)]},_0x2d9beb=await _0x2181fe[_0x590cf5(0x1bb)](got,_0x20f63a,_0x3cc012);}}const a3_0x1247ad={};function a3_0x2291(){const _0x6f45e8=['clusters','getCluster','jtNvW','yuXJe','MBctu','checkServiceAccount','subnetworks','bBvqq','pWMsA','khpvH','lbOBj','/packages/cli/update-cluster-region','/locations/','get','VGekO','fRkIN','eZiQo','UuDph','location','vcaLW','lsNWA','isBrowserstackCluster','LSAHj','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','isConfigured','DONE','Cannot\x20find\x20subnets\x20','maxNodeCount','Hleac','NzFnO','path','rws','storage.buckets.create','customRoleName','deleteCluster','zmYzH','@google-cloud/compute','iysMe','bpyAU','qIwTt','HKyOG','/clusters/','resourcemanagerClient','log','@google-cloud/resource-manager','keyFile','endpoint','storage.objects.list','getKubeConfigData','lOTHN','hJMSk','storage.buckets.getObjectInsights','zxHhO','getIamPolicy','FkXJu','tYWoB','auth','AVqfP','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','.\x20Error:\x20','type','eiiwu','storage.multipartUploads.list','storage.buckets.listTagBindings','./CloudProvider','ADAQM','BxAvl','2517498aSSAyq','kPNqo','QotZX','HDPoM','sendGCPInfoToHST','CzTgM','RaLsm','pqroP','username','tprst','NetworksClient','listClusters','qisJY','gBfTm','\x20--quiet\x20--user-output-enabled=false','HFpyh','GeCmj','uUhHi','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','json','https://www.googleapis.com/auth/cloud-platform','https://www.googleapis.com/compute/v1/projects/','join','storage.objects.delete','nHRdD','RRRGZ','IHNGN','setIamPolicy','sendEventToBackend','JEkEg','isSubnetsValid','oePkV','isVPCPresent','1CbEeVb','lhUmE','22331060tZtKDS','setupNewCluster','KubeConfigTemplate.yaml','WXzVA','CyDCw','project','getClusterInfo','clusterName','VDDhK','error','LopWt','../utils/utilityMethods','hMEvB','title','minNodeCount','jpObz','instanceType','mexPH','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','XJEHy','project_id','suHKN','YZUUL','Djegq','15UJXkJP','fetchLocalCreds','../config/constants','storage.objects.create','kPDAg','role','MYfkL','storage.objects.setIamPolicy','updateClusterRegion','storage.buckets.deleteTagBinding','IiXto','../utils/userInput','Pdocf','wzUPE','turboscale-service-account','networkClient','WEPhY','parse','storage.buckets.get','dfUvU','OCGvo','isClusterPresent','getUserInput','gkecluster.json','MrUov','regionmap.json','machineType','veDDR','gcloud\x20auth\x20login\x20--cred-file=','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','jBZmB','MfNyl','/subnetworks/','exec','VIPGB','LOG','fHROZ','wYLFM','yvwzD','oxnys','getClient','storage.buckets.list','storage.multipartUploads.create','iPWMR','7|2|4|0|5|3|6|1|8','uOOai','masterAuth','autoscaling','bjYHh','setupServiceAccount','/regions/','xCPrZ','VGNSS','qvuxO','/global/networks/','network','info','RAnxB','qwSDT','fTjqo','Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20','projectId','NaHmf','UybRJ','6157680SOmNdo','hqSyJ','NufKJ','tfNGo','loadBalancer','bstackUsername','gridProfileId','scopes','AEdWV','KyEal','SxmDd','myxem','Cluster\x20deletion\x20completed','RUNNING','vQDBz','30AKzTHF','COFJK','create','nZSIM','IhEnT','aKbpx','uJtzo','Zeick','setConfig','members','name','iam','bstackAccesskey','LDGzJ','clusterRegion','FCvbU','locations','LNEvU','lIKaF','PIMhm','status','push','default','/roles/','gCfSS','Deleting\x20the\x20cluster\x20','LYxhW','qHyoe','cloudProviderName','gcpConfigSet','IIbkc','Iiysx','toLowerCase','11253627gLWgNv','Service\x20account\x20already\x20exists,\x20skipping','utf-8','76097EPiYFm','QdYZA','QNgpB','nodePools','dGZoA','projects','aQYym','storage.multipartUploads.listParts','managedby','updateWindowsNodeGroup','maxNodes','Creating\x20GKE\x20Cluster','VFqTg','ZXHET','webSocketUtils','tguiC','Creating\x20service\x20account','message','RzhGB','projects/','readFileAsync','data','wlhhz','GoogleCloudProvider','storage.buckets.listEffectiveTags','atiVE','RktUy','toString','exit','bindings','@google-cloud/container','requestBody','wxRnj','Inkwz','ssXXP','ajGzN','ujjkH','BbySN','organizations','yHMWZ','fwfPP','ybHXu','includedPermissions','ytTmn','iamClient','split','NSNvu','Edlct','templates','vYHwc','serviceAccountName','pJdNc','replace','GLzPv','util','storage.objects.update','uvoPA','iam.serviceAccounts.signBlob','vpcInfo','execSync','turboscale_custom_role','https://','serviceAccounts','Found\x20cluster\x20with\x20name\x20\x27','ClusterManagerClient','serviceAccount','UrEur','clusterCaCertificate','storage.objects.getIamPolicy','vlMAB','uUyaf','credentialsPath','getGridHostname','ingress','VaUQK','GKE\x20Cluster\x20deletion\x20failed','491412duKklY','storage.buckets.createTagBinding','resourceLabels','HGNXD','\x20--windows-os-version=ltsc2022\x20--region\x20','NXqfG','cloudProvider','2969607WhaOiE','NjTJI','2|5|1|4|0|6|3','DRCCt','length','HCvjl','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','KlFKN','MpEzC','list','../config/logger','createCluster','nDrfH','storage.multipartUploads.abort','RESOURCES','psfcL','qvnII','GOLMg','cfsms','SnaOc','njWGi','Turboscale\x20Custom\x20Role','/serviceAccounts/','eTraw','serviceAccount:','tKJdj','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','tRynK','oNCIM','containerClient','soVzD','HUbac','concat','child_process','BoZmm','config','configureIfNotConfigured','gYTxo','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','browserstack','ASiEm','.iam.gserviceaccount.com','gcpresources','roles','rsNOF','WkqYO','stack','FkOen','PUT','zIVFZ','MNzZk','MfuwC','Cluster\x20creation\x20failed'];a3_0x2291=function(){return _0x6f45e8;};return a3_0x2291();}a3_0x1247ad[a3_0xc6ef5c(0x18c)]=GoogleCloudProvider,module['exports']=a3_0x1247ad;
@@ -1 +1 @@
1
- const a4_0x21b633=a4_0x499f;(function(_0x5a1661,_0x39a9c6){const _0x2e6c9e=a4_0x499f,_0x10391b=_0x5a1661();while(!![]){try{const _0x57fd80=parseInt(_0x2e6c9e(0x1dc))/0x1*(parseInt(_0x2e6c9e(0x1df))/0x2)+parseInt(_0x2e6c9e(0x1e8))/0x3+parseInt(_0x2e6c9e(0x1e4))/0x4+parseInt(_0x2e6c9e(0x1e1))/0x5*(parseInt(_0x2e6c9e(0x1e9))/0x6)+parseInt(_0x2e6c9e(0x1e6))/0x7+parseInt(_0x2e6c9e(0x1e3))/0x8+parseInt(_0x2e6c9e(0x1dd))/0x9*(-parseInt(_0x2e6c9e(0x1e2))/0xa);if(_0x57fd80===_0x39a9c6)break;else _0x10391b['push'](_0x10391b['shift']());}catch(_0x2c9d83){_0x10391b['push'](_0x10391b['shift']());}}}(a4_0x29e1,0x66f4c));function a4_0x29e1(){const _0x3bb806=['getCloudProviderObject','2403180SengjH','175434StInng','./GoogleCloudProvider','error','Unknown\x20cloud\x20provider\x20found\x20-\x20','25VoTBCk','1530AJbMKG','exit','57070dcwBiw','../config/constants','80MoMGzj','162820nrpxeE','6635224AYBoMr','1346064kUHPFF','./Azure','290290ZRYVoN'];a4_0x29e1=function(){return _0x3bb806;};return a4_0x29e1();}const {AWSCloudProvider}=require('./AWS'),{AzureCloudProvider}=require(a4_0x21b633(0x1e5)),{GoogleCloudProvider}=require(a4_0x21b633(0x1ea)),{AWS,AZURE,GCP}=require(a4_0x21b633(0x1e0));function a4_0x499f(_0x49aef4,_0x72776b){const _0x29e162=a4_0x29e1();return a4_0x499f=function(_0x499fd3,_0x488de0){_0x499fd3=_0x499fd3-0x1dc;let _0x5bdd9c=_0x29e162[_0x499fd3];return _0x5bdd9c;},a4_0x499f(_0x49aef4,_0x72776b);}exports[a4_0x21b633(0x1e7)]=(_0x4680d0,_0x47c708,_0x5ba76b,_0x4c240c,_0x121e22)=>{const _0x5e1267=a4_0x21b633;switch(_0x4680d0){case AWS:return new AWSCloudProvider(_0x47c708,_0x5ba76b,_0x4c240c,_0x121e22);case GCP:return new GoogleCloudProvider(_0x47c708,_0x5ba76b,_0x4c240c,_0x121e22);default:console[_0x5e1267(0x1eb)](_0x5e1267(0x1ec)+_0x4680d0),process[_0x5e1267(0x1de)](0x1);}};
1
+ const a4_0x253d95=a4_0x143b;(function(_0x53968e,_0x34558d){const _0x19884d=a4_0x143b,_0x2c25cd=_0x53968e();while(!![]){try{const _0x966809=-parseInt(_0x19884d(0x1f9))/0x1*(parseInt(_0x19884d(0x1f3))/0x2)+parseInt(_0x19884d(0x1f5))/0x3*(parseInt(_0x19884d(0x1f4))/0x4)+parseInt(_0x19884d(0x1f2))/0x5+parseInt(_0x19884d(0x1f8))/0x6+parseInt(_0x19884d(0x1ef))/0x7+parseInt(_0x19884d(0x1f7))/0x8*(parseInt(_0x19884d(0x1fd))/0x9)+-parseInt(_0x19884d(0x1f1))/0xa;if(_0x966809===_0x34558d)break;else _0x2c25cd['push'](_0x2c25cd['shift']());}catch(_0x1298ea){_0x2c25cd['push'](_0x2c25cd['shift']());}}}(a4_0x2290,0xa5f69));const {AWSCloudProvider}=require('./AWS'),{AzureCloudProvider}=require('./Azure'),{GoogleCloudProvider}=require(a4_0x253d95(0x1fc)),{AWS,AZURE,GCP}=require(a4_0x253d95(0x1f0));function a4_0x143b(_0x18b963,_0x2e1fc9){const _0x22905d=a4_0x2290();return a4_0x143b=function(_0x143b91,_0x38fde2){_0x143b91=_0x143b91-0x1ef;let _0x2b9ac5=_0x22905d[_0x143b91];return _0x2b9ac5;},a4_0x143b(_0x18b963,_0x2e1fc9);}exports[a4_0x253d95(0x1fa)]=(_0x3d6504,_0x3735f7,_0x3b9a6c,_0x319add,_0x4b885c)=>{const _0x2d73e4=a4_0x253d95;switch(_0x3d6504){case AWS:return new AWSCloudProvider(_0x3735f7,_0x3b9a6c,_0x319add,_0x4b885c);case GCP:return new GoogleCloudProvider(_0x3735f7,_0x3b9a6c,_0x319add,_0x4b885c);default:console['error'](_0x2d73e4(0x1fb)+_0x3d6504),process[_0x2d73e4(0x1f6)](0x1);}};function a4_0x2290(){const _0x2bc6d3=['../config/constants','37569000kmUfOv','2859520AajnHW','1079786AaMseo','5405156XVzIup','3jXQlNS','exit','41352urNlaV','4676322EaMPdk','1eLmajS','getCloudProviderObject','Unknown\x20cloud\x20provider\x20found\x20-\x20','./GoogleCloudProvider','1647RqQGMB','9296497vToGwq'];a4_0x2290=function(){return _0x2bc6d3;};return a4_0x2290();}
@@ -1 +1 @@
1
- function a5_0x4dd6(_0x51d721,_0x1bd80f){const _0x2977ca=a5_0x2977();return a5_0x4dd6=function(_0x4dd606,_0x299ae4){_0x4dd606=_0x4dd606-0x80;let _0x139631=_0x2977ca[_0x4dd606];return _0x139631;},a5_0x4dd6(_0x51d721,_0x1bd80f);}const a5_0xadaaab=a5_0x4dd6;(function(_0x34bf02,_0x1dc0ae){const _0x2a5277=a5_0x4dd6,_0x75be41=_0x34bf02();while(!![]){try{const _0x3b8cbb=parseInt(_0x2a5277(0xdc))/0x1+parseInt(_0x2a5277(0x99))/0x2*(parseInt(_0x2a5277(0xc4))/0x3)+parseInt(_0x2a5277(0xc2))/0x4+parseInt(_0x2a5277(0xd7))/0x5*(-parseInt(_0x2a5277(0x92))/0x6)+parseInt(_0x2a5277(0xc7))/0x7*(-parseInt(_0x2a5277(0xbc))/0x8)+parseInt(_0x2a5277(0x83))/0x9+parseInt(_0x2a5277(0xc3))/0xa*(-parseInt(_0x2a5277(0x9e))/0xb);if(_0x3b8cbb===_0x1dc0ae)break;else _0x75be41['push'](_0x75be41['shift']());}catch(_0x28cbef){_0x75be41['push'](_0x75be41['shift']());}}}(a5_0x2977,0x3cc20));function a5_0x2977(){const _0x53d5fe=['length','rXjip','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','UZLah','\x20\x20username:\x20','parse','stringify','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','profileId','invalid-selection','Failed\x20to\x20configure\x20resources!\x20Error:\x20','1080CymTGK','pqskM','DoReK','stack','GET','HTuAA','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','188WprstC','readFileSync','SmLPi','KRVau','INFO','11uVLbuH','mtGTd','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','error','uuid','QOxQh','init-not-called','PHRNB','Uifka','pHKkL','PUT','SafRK','Browserstack','Ntxxe','LPZsD','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','iVCXV','EVsEI','active','help','\x20\x20grid-profile:\x20','usage','fakks','exit','username','kaAXi','PaoMI','recommendCommands','GFBXj','275624NigVFh','uBBOW','yfHre','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','Zcfbw','command','1483404BalWPO','4006430XtsWNt','13353DFLPPN','got','Yiega','21fBDfWI','name','unauthorised','list','IBDuM','log','builder','configure','eDfEf','WGouR','statusCode','password','Updated\x20default\x20Grid\x20Profile\x20successfully','../utils/utilityMethods','IZgrN','CCShP','9515trPess','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','AJSNF','ERROR','CHMsZ','237200mfkObx','VbeOd','configure-called','handler','strict','requestId','dFalK','sewOW','hKSdy','620649dJTvCg','toLowerCase','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','/packages/cli/configure'];a5_0x2977=function(){return _0x53d5fe;};return a5_0x2977();}const fs=require('fs'),got=require(a5_0xadaaab(0xc5)),{v4:uuidv4}=require(a5_0xadaaab(0xa2)),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getCredentialsPath,getAuthHeader}=require(a5_0xadaaab(0xd4)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a5_0xadaaab(0xc1)]=a5_0xadaaab(0xce),exports['desc']=a5_0xadaaab(0x98),exports[a5_0xadaaab(0xcd)]=function(_0x167365){const _0x4a47f0=a5_0xadaaab,_0x3c2138={};_0x3c2138[_0x4a47f0(0xbe)]=_0x4a47f0(0xb2);const _0x4e6e3a=_0x3c2138;return _0x167365[_0x4a47f0(0xb4)](HELP_HEADER_MESSAGE['configure'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4a47f0(0xb2)](_0x4e6e3a[_0x4a47f0(0xbe)])[_0x4a47f0(0xba)]()[_0x4a47f0(0xe0)]()['argv'];},exports[a5_0xadaaab(0xdf)]=async function(_0x379b1c){const _0x24e2a3=a5_0xadaaab,_0x3d69c3={'dFalK':function(_0xa7662b){return _0xa7662b();},'pHKkL':function(_0x5e4a76){return _0x5e4a76();},'kMpyr':_0x24e2a3(0xa0),'PaoMI':function(_0x1a955e,_0x36901d,_0x4b45ce,_0x429eb7,_0x4b1dc1,_0x5bd56c,_0x2cb76f){return _0x1a955e(_0x36901d,_0x4b45ce,_0x429eb7,_0x4b1dc1,_0x5bd56c,_0x2cb76f);},'rXjip':_0x24e2a3(0xde),'iVCXV':_0x24e2a3(0xa4),'IZgrN':function(_0x484e04){return _0x484e04();},'gAMXx':_0x24e2a3(0x96),'kaAXi':function(_0x28f366,_0x4f3862,_0x5aee03){return _0x28f366(_0x4f3862,_0x5aee03);},'qXaaE':function(_0x3e08db,_0x2858cc,_0x20d4be){return _0x3e08db(_0x2858cc,_0x20d4be);},'SmLPi':function(_0x287434,_0x3395df){return _0x287434!==_0x3395df;},'HTuAA':function(_0x4c5e68,_0x1f54e0){return _0x4c5e68!==_0x1f54e0;},'mtGTd':function(_0x3485b6,_0x5f1c01){return _0x3485b6===_0x5f1c01;},'EVsEI':_0x24e2a3(0x85),'JqAOV':'core:','GFBXj':function(_0x22cd05,_0x1cf7ec){return _0x22cd05(_0x1cf7ec);},'uBBOW':'Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','SmDhX':function(_0x2f71c8,_0x1696a9){return _0x2f71c8===_0x1696a9;},'CCShP':_0x24e2a3(0x89),'Yiega':function(_0x4d90e9,_0x2f680e,_0x33ab05,_0xc968b4,_0x5060b6,_0xa41119,_0x420685){return _0x4d90e9(_0x2f680e,_0x33ab05,_0xc968b4,_0x5060b6,_0xa41119,_0x420685);},'KRVau':'invalid-input','UZLah':function(_0x79f6cc,_0x2f9091){return _0x79f6cc===_0x2f9091;},'oXWFS':_0x24e2a3(0xbf),'VbeOd':function(_0x38d7d7,_0x1de6ea){return _0x38d7d7<_0x1de6ea;},'LPZsD':function(_0x2bbbfe,_0xf9c791){return _0x2bbbfe+_0xf9c791;},'DoReK':function(_0x454733,_0x4f5637){return _0x454733(_0x4f5637);},'sewOW':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','eDfEf':function(_0x59ada0,_0x4abb4f){return _0x59ada0(_0x4abb4f);},'MoynR':function(_0x2d4e7b,_0x296e1c){return _0x2d4e7b<=_0x296e1c;},'pqskM':function(_0x13bc5a,_0x461239){return _0x13bc5a>_0x461239;},'Uifka':function(_0x4c04e6,_0x853538,_0xa910bc,_0x2cab18,_0x3bdb4f,_0x3cbe69,_0x2eea67){return _0x4c04e6(_0x853538,_0xa910bc,_0x2cab18,_0x3bdb4f,_0x3cbe69,_0x2eea67);},'AJSNF':_0x24e2a3(0x90),'Ntxxe':function(_0x2460f0,_0x53581c){return _0x2460f0-_0x53581c;},'fakks':_0x24e2a3(0xa8),'QOxQh':function(_0x255f94,_0x22babc,_0x31d384){return _0x255f94(_0x22babc,_0x31d384);},'hKSdy':'json','CHMsZ':function(_0x45be0f,_0x2825ad){return _0x45be0f===_0x2825ad;},'Zcfbw':_0x24e2a3(0xd3),'SnfWk':function(_0x469c32,_0xbf32e3){return _0x469c32===_0xbf32e3;},'EsNGO':_0x24e2a3(0xc9),'PHRNB':'server-error','IBDuM':function(_0x47bbd0,_0x51eb94){return _0x47bbd0===_0x51eb94;},'SafRK':function(_0x16c6fe,_0x571516,_0x42710d,_0x4a5d2f,_0x169559,_0x5a3afb,_0x157043){return _0x16c6fe(_0x571516,_0x42710d,_0x4a5d2f,_0x169559,_0x5a3afb,_0x157043);},'WGouR':function(_0x50171e,_0x300c53,_0x4a3c08,_0x1c2235,_0x54a70d,_0x55a620,_0x3fd4d2){return _0x50171e(_0x300c53,_0x4a3c08,_0x1c2235,_0x54a70d,_0x55a620,_0x3fd4d2);},'CWUCc':'unknown-error'};try{global_registry[_0x24e2a3(0xe1)]=_0x3d69c3[_0x24e2a3(0x80)](uuidv4);const _0x160cd1='https://'+AG_API_URL+_0x24e2a3(0x86);!fs['existsSync'](_0x3d69c3[_0x24e2a3(0xa7)](getCredentialsPath))&&(console[_0x24e2a3(0xa1)](_0x3d69c3['kMpyr']),await _0x3d69c3[_0x24e2a3(0xb9)](sendInstrumentationEvent,_0x379b1c,_0x3d69c3[_0x24e2a3(0x88)],messageTypes['ERROR'],_0x3d69c3[_0x24e2a3(0xaf)],null,_0x379b1c),process[_0x24e2a3(0xb6)](0x1));await _0x3d69c3[_0x24e2a3(0xb9)](sendInstrumentationEvent,_0x379b1c,_0x3d69c3[_0x24e2a3(0x88)],messageTypes[_0x24e2a3(0x9d)],null,null,_0x379b1c);const _0x45ec25=JSON['parse'](fs[_0x24e2a3(0x9a)](_0x3d69c3[_0x24e2a3(0xd5)](getCredentialsPath))),_0x351e37={'method':_0x3d69c3['gAMXx'],'headers':_0x3d69c3[_0x24e2a3(0xb8)](getAuthHeader,_0x45ec25['Browserstack'][_0x24e2a3(0xb7)],_0x45ec25[_0x24e2a3(0xaa)]['password'])},_0x3401df=await _0x3d69c3['qXaaE'](got,_0x160cd1,_0x351e37);if(_0x3d69c3[_0x24e2a3(0x9b)](_0x3401df,null)&&_0x3d69c3[_0x24e2a3(0x97)](_0x3401df,undefined)&&_0x3d69c3['mtGTd'](_0x3401df[_0x24e2a3(0xd1)],0xc8)){const _0x35686f=JSON[_0x24e2a3(0x8c)](_0x3401df['body']);console[_0x24e2a3(0xcc)](_0x3d69c3[_0x24e2a3(0xb0)]),console[_0x24e2a3(0xcc)](_0x3d69c3['JqAOV']),console[_0x24e2a3(0xcc)](_0x24e2a3(0x8b)+_0x45ec25[_0x24e2a3(0xaa)][_0x24e2a3(0xb7)]),console[_0x24e2a3(0xcc)](_0x24e2a3(0xb3)+_0x35686f[_0x24e2a3(0xb1)][_0x24e2a3(0xc8)]);const _0x3013ca=await _0x3d69c3[_0x24e2a3(0xbb)](inputConfirmation,_0x3d69c3[_0x24e2a3(0xbd)]);(_0x3d69c3[_0x24e2a3(0x9f)](_0x3013ca,undefined)||_0x3d69c3[_0x24e2a3(0x9f)](_0x3013ca,null)||!(_0x3d69c3['mtGTd'](_0x3013ca[_0x24e2a3(0x84)](),'y')||_0x3d69c3['SmDhX'](_0x3013ca[_0x24e2a3(0x84)](),'n')))&&(console[_0x24e2a3(0xa1)](_0x3d69c3[_0x24e2a3(0xd6)]),await _0x3d69c3[_0x24e2a3(0xc6)](sendInstrumentationEvent,_0x379b1c,_0x3d69c3[_0x24e2a3(0x88)],messageTypes['ERROR'],_0x3d69c3[_0x24e2a3(0x9c)],null,_0x379b1c),process['exit'](0x1));_0x3d69c3[_0x24e2a3(0x8a)](_0x3013ca[_0x24e2a3(0x84)](),'n')&&process[_0x24e2a3(0xb6)](0x0);console[_0x24e2a3(0xcc)](_0x3d69c3['oXWFS']);const _0x2c9b05=_0x35686f[_0x24e2a3(0xca)][_0x24e2a3(0x87)];for(let _0x163762=0x0;_0x3d69c3[_0x24e2a3(0xdd)](_0x163762,_0x2c9b05);_0x163762+=0x1){console['log']('['+_0x3d69c3[_0x24e2a3(0xac)](_0x163762,0x1)+']\x20'+_0x35686f[_0x24e2a3(0xca)][_0x163762]['name']);}const _0x446a11=await _0x3d69c3[_0x24e2a3(0x94)](inputConfirmation,_0x3d69c3[_0x24e2a3(0x81)]),_0xe03f43=_0x3d69c3[_0x24e2a3(0xcf)](Number,_0x446a11);(_0x3d69c3[_0x24e2a3(0x94)](isNaN,_0xe03f43)||_0x3d69c3['MoynR'](_0xe03f43,0x0)||_0x3d69c3[_0x24e2a3(0x93)](_0xe03f43,_0x2c9b05))&&(console['error'](_0x3d69c3[_0x24e2a3(0xd6)]),await _0x3d69c3[_0x24e2a3(0xa6)](sendInstrumentationEvent,_0x379b1c,_0x3d69c3[_0x24e2a3(0x88)],messageTypes[_0x24e2a3(0xda)],_0x3d69c3[_0x24e2a3(0xd9)],null,_0x379b1c),process[_0x24e2a3(0xb6)](0x1));_0x3d69c3[_0x24e2a3(0xd5)](closeInput);const _0x15d127=_0x35686f[_0x24e2a3(0xca)][_0x3d69c3[_0x24e2a3(0xab)](_0xe03f43,0x1)]['id'],_0x57dbfe={};_0x57dbfe[_0x24e2a3(0x8f)]=_0x15d127;const _0xa2e371={'method':_0x3d69c3[_0x24e2a3(0xb5)],'headers':_0x3d69c3[_0x24e2a3(0xa3)](getAuthHeader,_0x45ec25['Browserstack'][_0x24e2a3(0xb7)],_0x45ec25[_0x24e2a3(0xaa)][_0x24e2a3(0xd2)]),'json':_0x57dbfe,'responseType':_0x3d69c3[_0x24e2a3(0x82)]},_0x27a524=await _0x3d69c3[_0x24e2a3(0xb8)](got,_0x160cd1,_0xa2e371);_0x3d69c3[_0x24e2a3(0x9b)](_0x27a524,null)&&_0x3d69c3[_0x24e2a3(0x97)](_0x27a524,undefined)&&_0x3d69c3[_0x24e2a3(0xdb)](_0x27a524['statusCode'],0xc8)&&(console[_0x24e2a3(0xcc)](_0x3d69c3[_0x24e2a3(0xc0)]),process['exit'](0x0)),_0x3d69c3['SnfWk'](_0x27a524[_0x24e2a3(0xd1)],0x191)&&(console[_0x24e2a3(0xa1)](_0x24e2a3(0x8e)),await _0x3d69c3['Uifka'](sendInstrumentationEvent,_0x379b1c,_0x3d69c3['rXjip'],messageTypes[_0x24e2a3(0xda)],_0x3d69c3['EsNGO'],null,_0x379b1c),process[_0x24e2a3(0xb6)](0x1)),console[_0x24e2a3(0xa1)](_0x24e2a3(0xad)+JSON[_0x24e2a3(0x8d)](_0x27a524)),await _0x3d69c3[_0x24e2a3(0xb9)](sendInstrumentationEvent,_0x379b1c,_0x3d69c3[_0x24e2a3(0x88)],messageTypes[_0x24e2a3(0xda)],_0x3d69c3[_0x24e2a3(0xa5)],_0x27a524,_0x379b1c),process[_0x24e2a3(0xb6)](0x1);}_0x3d69c3[_0x24e2a3(0xcb)](_0x3401df[_0x24e2a3(0xd1)],0x191)&&(console['error'](_0x24e2a3(0xd8)),await _0x3d69c3[_0x24e2a3(0xc6)](sendInstrumentationEvent,_0x379b1c,_0x3d69c3['rXjip'],messageTypes[_0x24e2a3(0xda)],_0x3d69c3['EsNGO'],null,_0x379b1c),process['exit'](0x1)),console[_0x24e2a3(0xa1)](_0x24e2a3(0xae)+JSON[_0x24e2a3(0x8d)](_0x3401df)),await _0x3d69c3[_0x24e2a3(0xa9)](sendInstrumentationEvent,_0x379b1c,_0x3d69c3['rXjip'],messageTypes[_0x24e2a3(0xda)],_0x3d69c3[_0x24e2a3(0xa5)],_0x3401df,_0x379b1c),process[_0x24e2a3(0xb6)](0x1);}catch(_0x53bfb2){console['error'](_0x24e2a3(0x91)+_0x53bfb2[_0x24e2a3(0x95)]),await _0x3d69c3[_0x24e2a3(0xd0)](sendInstrumentationEvent,_0x379b1c,_0x3d69c3[_0x24e2a3(0x88)],messageTypes['ERROR'],_0x3d69c3['CWUCc'],_0x53bfb2,_0x379b1c),process[_0x24e2a3(0xb6)](0x1);}};
1
+ function a5_0x24f3(_0x2cacb6,_0x443729){const _0x1d17d0=a5_0x1d17();return a5_0x24f3=function(_0x24f378,_0x4ff548){_0x24f378=_0x24f378-0x172;let _0x1e5af8=_0x1d17d0[_0x24f378];return _0x1e5af8;},a5_0x24f3(_0x2cacb6,_0x443729);}const a5_0x24e318=a5_0x24f3;(function(_0x3a9b90,_0x2a0b03){const _0x4c5ae9=a5_0x24f3,_0x5b6385=_0x3a9b90();while(!![]){try{const _0x1ac214=parseInt(_0x4c5ae9(0x1a9))/0x1*(parseInt(_0x4c5ae9(0x183))/0x2)+parseInt(_0x4c5ae9(0x1d2))/0x3*(-parseInt(_0x4c5ae9(0x17c))/0x4)+-parseInt(_0x4c5ae9(0x1a0))/0x5+parseInt(_0x4c5ae9(0x19b))/0x6*(parseInt(_0x4c5ae9(0x1a8))/0x7)+-parseInt(_0x4c5ae9(0x185))/0x8*(-parseInt(_0x4c5ae9(0x198))/0x9)+-parseInt(_0x4c5ae9(0x194))/0xa*(-parseInt(_0x4c5ae9(0x1b8))/0xb)+parseInt(_0x4c5ae9(0x1c3))/0xc*(parseInt(_0x4c5ae9(0x1cd))/0xd);if(_0x1ac214===_0x2a0b03)break;else _0x5b6385['push'](_0x5b6385['shift']());}catch(_0x1bc01f){_0x5b6385['push'](_0x5b6385['shift']());}}}(a5_0x1d17,0xb46cc));const fs=require('fs'),got=require(a5_0x24e318(0x1b6)),{v4:uuidv4}=require(a5_0x24e318(0x1b0)),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x24e318(0x1be)),{getCredentialsPath,getAuthHeader}=require(a5_0x24e318(0x19c)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');function a5_0x1d17(){const _0x3ee786=['Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','recommendCommands','\x20\x20grid-profile:\x20','toLowerCase','uuid','password','KrooE','log','desc','Browserstack','got','invalid-selection','894531pBUJuN','name','requestId','invalid-input','readFileSync','unauthorised','../config/constants','dTVZg','existsSync','active','AkjyK','87744kcbIKM','YejKA','stringify','fgUlm','list','oVCxt','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','SQchM','trJqZ','Kbpgw','1001eLsVJf','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','configure','ajEEd','fFSWJ','254406gwcsjl','dqPVe','tpdFr','server-error','ZmwnX','MaDne','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','https://','ujEdR','profileId','usage','body','4nKDJKF','init-not-called','unknown-error','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','argv','ERROR','tpSIM','454MOaBVm','JZJTr','40nUZpQb','strict','username','POEcV','Jzcwe','stack','vCdhH','length','vjmxd','dyYeW','rCVqP','statusCode','ZYzGX','wDPnb','olvTy','90RtciLN','GxBdh','VGCdy','imHtu','1152045XPYgJm','RaUua','\x20\x20username:\x20','534CNTJGx','../utils/utilityMethods','zGglU','/packages/cli/configure','error','7199945InXtUx','exit','ZEJpm','Failed\x20to\x20configure\x20resources!\x20Error:\x20','BaoMW','BYWHP','help','tBCFo','9905vOwEPV','894EyyUrs','parse','epilogue'];a5_0x1d17=function(){return _0x3ee786;};return a5_0x1d17();}exports['command']='configure',exports[a5_0x24e318(0x1b4)]=a5_0x24e318(0x1ac),exports['builder']=function(_0x490774){const _0x522295=a5_0x24e318,_0xb40d6a={};_0xb40d6a[_0x522295(0x1cc)]=_0x522295(0x1a6);const _0xc5489a=_0xb40d6a;return _0x490774[_0x522295(0x17a)](HELP_HEADER_MESSAGE[_0x522295(0x1cf)])[_0x522295(0x1ab)](HELP_FOOTER_MESSAGE)[_0x522295(0x1a6)](_0xc5489a[_0x522295(0x1cc)])[_0x522295(0x1ad)]()[_0x522295(0x186)]()[_0x522295(0x180)];},exports['handler']=async function(_0xd35ee9){const _0x11f595=a5_0x24e318,_0x25e087={'GxBdh':function(_0xbf8a11){return _0xbf8a11();},'ZmwnX':_0x11f595(0x176),'JZJTr':function(_0x3f88df,_0x145c49,_0x377b69,_0x47afe3,_0x53d252,_0x36b39e,_0x4774e4){return _0x3f88df(_0x145c49,_0x377b69,_0x47afe3,_0x53d252,_0x36b39e,_0x4774e4);},'POEcV':'configure-called','ujEdR':_0x11f595(0x17d),'ZEJpm':function(_0x227b22,_0x3d5d6e,_0x29463b,_0x3dd493,_0x1e9d98,_0x3f4630,_0x453631){return _0x227b22(_0x3d5d6e,_0x29463b,_0x3dd493,_0x1e9d98,_0x3f4630,_0x453631);},'BaoMW':'GET','tBCFo':function(_0x276af0,_0x2724a0,_0xaed6a){return _0x276af0(_0x2724a0,_0xaed6a);},'KrooE':function(_0x18bac6,_0x5395b7){return _0x18bac6!==_0x5395b7;},'ajEEd':function(_0x374ceb,_0x27d085){return _0x374ceb===_0x27d085;},'BYWHP':_0x11f595(0x1c9),'SQchM':'core:','LVxtu':function(_0xcc321d,_0x966d82){return _0xcc321d(_0x966d82);},'fgUlm':'Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','ZYzGX':function(_0x1c157a,_0x380d7b){return _0x1c157a===_0x380d7b;},'YPkDl':function(_0x4fef9d,_0x189549){return _0x4fef9d===_0x189549;},'VGCdy':function(_0x3f9984,_0x403b4b){return _0x3f9984===_0x403b4b;},'Jzcwe':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','wttTU':_0x11f595(0x1bb),'dVWVY':function(_0x3b62fa,_0x5debc3){return _0x3b62fa===_0x5debc3;},'Ngbyc':_0x11f595(0x1ce),'tpdFr':function(_0x33a509,_0x578717){return _0x33a509<_0x578717;},'oVCxt':function(_0x4e4548,_0x3c7ebf){return _0x4e4548+_0x3c7ebf;},'YejKA':function(_0x150c01,_0x5014c5){return _0x150c01(_0x5014c5);},'dqwxn':_0x11f595(0x17f),'vjmxd':function(_0x158306,_0x19e940){return _0x158306(_0x19e940);},'zGglU':function(_0x2b1003,_0x3b58af){return _0x2b1003<=_0x3b58af;},'trJqZ':function(_0x5832e4,_0x5aa599){return _0x5832e4>_0x5aa599;},'wDPnb':function(_0x5bdf51,_0x44f774,_0x171c62,_0xd37ad0,_0x327d67,_0x5870dd,_0x1639de){return _0x5bdf51(_0x44f774,_0x171c62,_0xd37ad0,_0x327d67,_0x5870dd,_0x1639de);},'RaUua':_0x11f595(0x1b7),'dqPVe':function(_0x32e84d){return _0x32e84d();},'rCVqP':function(_0x2303d4,_0x42a895){return _0x2303d4-_0x42a895;},'dTVZg':'PUT','vCdhH':'json','fFSWJ':function(_0x553f09,_0x4a63a6){return _0x553f09!==_0x4a63a6;},'IeBdg':'Updated\x20default\x20Grid\x20Profile\x20successfully','imHtu':function(_0x2d424a,_0x29714e){return _0x2d424a===_0x29714e;},'AkjyK':function(_0x4a6daa,_0x52840c,_0x1229b3,_0x239317,_0x511524,_0x106a94,_0x5cdaeb){return _0x4a6daa(_0x52840c,_0x1229b3,_0x239317,_0x511524,_0x106a94,_0x5cdaeb);},'olvTy':_0x11f595(0x1bd),'AiLde':function(_0x274a91,_0x40281b,_0x19a021,_0x474678,_0x5b6269,_0x6f88c3,_0x4208ad){return _0x274a91(_0x40281b,_0x19a021,_0x474678,_0x5b6269,_0x6f88c3,_0x4208ad);},'tpSIM':_0x11f595(0x173),'UtGLo':function(_0x14ee00,_0x3f1159){return _0x14ee00===_0x3f1159;},'MaDne':function(_0x5025fc,_0x26bb51,_0x4049d3,_0x3a264d,_0x29f5e5,_0xbdddec,_0x3af005){return _0x5025fc(_0x26bb51,_0x4049d3,_0x3a264d,_0x29f5e5,_0xbdddec,_0x3af005);},'dyYeW':_0x11f595(0x17e)};try{global_registry[_0x11f595(0x1ba)]=_0x25e087[_0x11f595(0x195)](uuidv4);const _0x2682f1=_0x11f595(0x177)+AG_API_URL+_0x11f595(0x19e);!fs[_0x11f595(0x1c0)](_0x25e087[_0x11f595(0x195)](getCredentialsPath))&&(console[_0x11f595(0x19f)](_0x25e087[_0x11f595(0x174)]),await _0x25e087[_0x11f595(0x184)](sendInstrumentationEvent,_0xd35ee9,_0x25e087[_0x11f595(0x188)],messageTypes[_0x11f595(0x181)],_0x25e087[_0x11f595(0x178)],null,_0xd35ee9),process['exit'](0x1));await _0x25e087['ZEJpm'](sendInstrumentationEvent,_0xd35ee9,_0x25e087[_0x11f595(0x188)],messageTypes['INFO'],null,null,_0xd35ee9);const _0xa031e7=JSON[_0x11f595(0x1aa)](fs[_0x11f595(0x1bc)](_0x25e087[_0x11f595(0x195)](getCredentialsPath))),_0x10ebe7={'method':_0x25e087[_0x11f595(0x1a4)],'headers':_0x25e087[_0x11f595(0x1a7)](getAuthHeader,_0xa031e7[_0x11f595(0x1b5)][_0x11f595(0x187)],_0xa031e7[_0x11f595(0x1b5)][_0x11f595(0x1b1)])},_0x46a351=await _0x25e087[_0x11f595(0x1a7)](got,_0x2682f1,_0x10ebe7);if(_0x25e087['KrooE'](_0x46a351,null)&&_0x25e087[_0x11f595(0x1b2)](_0x46a351,undefined)&&_0x25e087[_0x11f595(0x1d0)](_0x46a351[_0x11f595(0x190)],0xc8)){const _0x3d9510=JSON[_0x11f595(0x1aa)](_0x46a351[_0x11f595(0x17b)]);console[_0x11f595(0x1b3)](_0x25e087[_0x11f595(0x1a5)]),console[_0x11f595(0x1b3)](_0x25e087[_0x11f595(0x1ca)]),console['log'](_0x11f595(0x19a)+_0xa031e7[_0x11f595(0x1b5)][_0x11f595(0x187)]),console[_0x11f595(0x1b3)](_0x11f595(0x1ae)+_0x3d9510[_0x11f595(0x1c1)][_0x11f595(0x1b9)]);const _0x4819bb=await _0x25e087['LVxtu'](inputConfirmation,_0x25e087[_0x11f595(0x1c6)]);(_0x25e087[_0x11f595(0x191)](_0x4819bb,undefined)||_0x25e087[_0x11f595(0x1d0)](_0x4819bb,null)||!(_0x25e087['YPkDl'](_0x4819bb[_0x11f595(0x1af)](),'y')||_0x25e087[_0x11f595(0x196)](_0x4819bb[_0x11f595(0x1af)](),'n')))&&(console[_0x11f595(0x19f)](_0x25e087[_0x11f595(0x189)]),await _0x25e087[_0x11f595(0x1a2)](sendInstrumentationEvent,_0xd35ee9,_0x25e087[_0x11f595(0x188)],messageTypes[_0x11f595(0x181)],_0x25e087['wttTU'],null,_0xd35ee9),process[_0x11f595(0x1a1)](0x1));_0x25e087['dVWVY'](_0x4819bb[_0x11f595(0x1af)](),'n')&&process[_0x11f595(0x1a1)](0x0);console[_0x11f595(0x1b3)](_0x25e087['Ngbyc']);const _0x357b03=_0x3d9510[_0x11f595(0x1c7)][_0x11f595(0x18c)];for(let _0x384c08=0x0;_0x25e087[_0x11f595(0x172)](_0x384c08,_0x357b03);_0x384c08+=0x1){console['log']('['+_0x25e087[_0x11f595(0x1c8)](_0x384c08,0x1)+']\x20'+_0x3d9510[_0x11f595(0x1c7)][_0x384c08]['name']);}const _0xfb8580=await _0x25e087[_0x11f595(0x1c4)](inputConfirmation,_0x25e087['dqwxn']),_0x360981=_0x25e087[_0x11f595(0x18d)](Number,_0xfb8580);(_0x25e087['vjmxd'](isNaN,_0x360981)||_0x25e087[_0x11f595(0x19d)](_0x360981,0x0)||_0x25e087[_0x11f595(0x1cb)](_0x360981,_0x357b03))&&(console['error'](_0x25e087[_0x11f595(0x189)]),await _0x25e087[_0x11f595(0x192)](sendInstrumentationEvent,_0xd35ee9,_0x25e087[_0x11f595(0x188)],messageTypes[_0x11f595(0x181)],_0x25e087[_0x11f595(0x199)],null,_0xd35ee9),process[_0x11f595(0x1a1)](0x1));_0x25e087[_0x11f595(0x1d3)](closeInput);const _0xa8733e=_0x3d9510['list'][_0x25e087[_0x11f595(0x18f)](_0x360981,0x1)]['id'],_0x1ba0b8={};_0x1ba0b8[_0x11f595(0x179)]=_0xa8733e;const _0x222e8c={'method':_0x25e087[_0x11f595(0x1bf)],'headers':_0x25e087[_0x11f595(0x1a7)](getAuthHeader,_0xa031e7[_0x11f595(0x1b5)][_0x11f595(0x187)],_0xa031e7[_0x11f595(0x1b5)][_0x11f595(0x1b1)]),'json':_0x1ba0b8,'responseType':_0x25e087[_0x11f595(0x18b)]},_0x29cdb6=await _0x25e087[_0x11f595(0x1a7)](got,_0x2682f1,_0x222e8c);_0x25e087[_0x11f595(0x1b2)](_0x29cdb6,null)&&_0x25e087[_0x11f595(0x1d1)](_0x29cdb6,undefined)&&_0x25e087[_0x11f595(0x1d0)](_0x29cdb6[_0x11f595(0x190)],0xc8)&&(console[_0x11f595(0x1b3)](_0x25e087['IeBdg']),process['exit'](0x0)),_0x25e087[_0x11f595(0x197)](_0x29cdb6[_0x11f595(0x190)],0x191)&&(console['error']('Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!'),await _0x25e087[_0x11f595(0x1c2)](sendInstrumentationEvent,_0xd35ee9,_0x25e087[_0x11f595(0x188)],messageTypes[_0x11f595(0x181)],_0x25e087[_0x11f595(0x193)],null,_0xd35ee9),process['exit'](0x1)),console[_0x11f595(0x19f)]('Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20'+JSON['stringify'](_0x29cdb6)),await _0x25e087['AiLde'](sendInstrumentationEvent,_0xd35ee9,_0x25e087[_0x11f595(0x188)],messageTypes[_0x11f595(0x181)],_0x25e087['tpSIM'],_0x29cdb6,_0xd35ee9),process[_0x11f595(0x1a1)](0x1);}_0x25e087['UtGLo'](_0x46a351['statusCode'],0x191)&&(console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x25e087[_0x11f595(0x175)](sendInstrumentationEvent,_0xd35ee9,_0x25e087[_0x11f595(0x188)],messageTypes[_0x11f595(0x181)],_0x25e087['olvTy'],null,_0xd35ee9),process[_0x11f595(0x1a1)](0x1)),console[_0x11f595(0x19f)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x11f595(0x1c5)](_0x46a351)),await _0x25e087[_0x11f595(0x192)](sendInstrumentationEvent,_0xd35ee9,_0x25e087['POEcV'],messageTypes[_0x11f595(0x181)],_0x25e087[_0x11f595(0x182)],_0x46a351,_0xd35ee9),process['exit'](0x1);}catch(_0xce9d6b){console['error'](_0x11f595(0x1a3)+_0xce9d6b[_0x11f595(0x18a)]),await _0x25e087[_0x11f595(0x184)](sendInstrumentationEvent,_0xd35ee9,_0x25e087[_0x11f595(0x188)],messageTypes[_0x11f595(0x181)],_0x25e087[_0x11f595(0x18e)],_0xce9d6b,_0xd35ee9),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a6_0x2784(_0x32890c,_0x2edb48){const _0x4a074f=a6_0x4a07();return a6_0x2784=function(_0x27843b,_0x28df3f){_0x27843b=_0x27843b-0x84;let _0x54cf57=_0x4a074f[_0x27843b];return _0x54cf57;},a6_0x2784(_0x32890c,_0x2edb48);}function a6_0x4a07(){const _0x491dc1=['help','23348bTZOWz','httdA','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','handler','37744zgnkvw','611244BqocyD','connect_commands','usage','connect','4005295yxVxBz','642768hNZLXy','commandDir','JvrjB','../config/constants','builder','epilogue','84mNVirz','recommendCommands','17793YutReP','27ZDfGOb','command','11935503RdLXQk'];a6_0x4a07=function(){return _0x491dc1;};return a6_0x4a07();}const a6_0x80547c=a6_0x2784;(function(_0x2b2771,_0x114289){const _0xf0734e=a6_0x2784,_0x167566=_0x2b2771();while(!![]){try{const _0xfa67c1=parseInt(_0xf0734e(0x96))/0x1+parseInt(_0xf0734e(0x84))/0x2*(-parseInt(_0xf0734e(0x97))/0x3)+-parseInt(_0xf0734e(0x89))/0x4+-parseInt(_0xf0734e(0x8d))/0x5+-parseInt(_0xf0734e(0x94))/0x6*(-parseInt(_0xf0734e(0x88))/0x7)+parseInt(_0xf0734e(0x8e))/0x8+parseInt(_0xf0734e(0x99))/0x9;if(_0xfa67c1===_0x114289)break;else _0x167566['push'](_0x167566['shift']());}catch(_0x4a6de1){_0x167566['push'](_0x167566['shift']());}}}(a6_0x4a07,0x6ba1a));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x80547c(0x91));exports[a6_0x80547c(0x98)]='connect',exports['desc']=a6_0x80547c(0x86),exports[a6_0x80547c(0x92)]=function(_0x1078bb){const _0x53f404=a6_0x80547c,_0x58762a={};_0x58762a['JvrjB']=_0x53f404(0x8a),_0x58762a['httdA']='help';const _0x59bf3d=_0x58762a;return _0x1078bb[_0x53f404(0x8b)](HELP_HEADER_MESSAGE[_0x53f404(0x8c)])[_0x53f404(0x93)](HELP_FOOTER_MESSAGE)[_0x53f404(0x8f)](_0x59bf3d[_0x53f404(0x90)])['demandCommand']()[_0x53f404(0x95)]()['strict']()[_0x53f404(0x9a)](_0x59bf3d[_0x53f404(0x85)]);},exports[a6_0x80547c(0x87)]=function(_0xb19e33){};
1
+ function a6_0x1ee6(){const _0x11ebe5=['CLdWT','1388412YxYgBp','3520650JBzbKM','28695XisboK','778VPjFoJ','connect_commands','epilogue','strict','529PCDwTv','../config/constants','handler','4826682YXKqWU','desc','help','12898457IwcgGV','88raIvSy','command','nANxi','usage','85162AEiSxU','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','builder','10MhFlup','184vvXOBj','connect'];a6_0x1ee6=function(){return _0x11ebe5;};return a6_0x1ee6();}const a6_0x26d568=a6_0x6102;(function(_0x4ff371,_0x368ea6){const _0x3a346f=a6_0x6102,_0x5b7213=_0x4ff371();while(!![]){try{const _0x311b04=parseInt(_0x3a346f(0x105))/0x1*(-parseInt(_0x3a346f(0x101))/0x2)+-parseInt(_0x3a346f(0xfe))/0x3+-parseInt(_0x3a346f(0xfb))/0x4*(parseInt(_0x3a346f(0x100))/0x5)+-parseInt(_0x3a346f(0xff))/0x6+-parseInt(_0x3a346f(0xf7))/0x7*(-parseInt(_0x3a346f(0x10c))/0x8)+parseInt(_0x3a346f(0x108))/0x9+-parseInt(_0x3a346f(0xfa))/0xa*(-parseInt(_0x3a346f(0x10b))/0xb);if(_0x311b04===_0x368ea6)break;else _0x5b7213['push'](_0x5b7213['shift']());}catch(_0x20067f){_0x5b7213['push'](_0x5b7213['shift']());}}}(a6_0x1ee6,0x4ef1d));function a6_0x6102(_0xe35fef,_0x1bd27a){const _0x1ee630=a6_0x1ee6();return a6_0x6102=function(_0x6102d5,_0x15953d){_0x6102d5=_0x6102d5-0xf6;let _0x384f9a=_0x1ee630[_0x6102d5];return _0x384f9a;},a6_0x6102(_0xe35fef,_0x1bd27a);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x26d568(0x106));exports[a6_0x26d568(0x10d)]=a6_0x26d568(0xfc),exports[a6_0x26d568(0x109)]=a6_0x26d568(0xf8),exports[a6_0x26d568(0xf9)]=function(_0x14d0b8){const _0x2dac5d=a6_0x26d568,_0x1800d1={};_0x1800d1[_0x2dac5d(0xfd)]=_0x2dac5d(0x102),_0x1800d1[_0x2dac5d(0x10e)]=_0x2dac5d(0x10a);const _0x3f0ed5=_0x1800d1;return _0x14d0b8[_0x2dac5d(0xf6)](HELP_HEADER_MESSAGE[_0x2dac5d(0xfc)])[_0x2dac5d(0x103)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3f0ed5[_0x2dac5d(0xfd)])['demandCommand']()['recommendCommands']()[_0x2dac5d(0x104)]()[_0x2dac5d(0x10a)](_0x3f0ed5[_0x2dac5d(0x10e)]);},exports[a6_0x26d568(0x107)]=function(_0x3a46db){};