browserstack-node-sdk 1.29.3 → 1.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/gcs.js +1 -1
  6. package/ats/src/cloudproviders/utils.js +1 -1
  7. package/ats/src/commands/configure.js +1 -1
  8. package/ats/src/commands/connect.js +1 -1
  9. package/ats/src/commands/connect_commands/grid.js +1 -1
  10. package/ats/src/commands/create.js +1 -1
  11. package/ats/src/commands/create_commands/grid.js +1 -1
  12. package/ats/src/commands/delete.js +1 -1
  13. package/ats/src/commands/delete_commands/grid.js +1 -1
  14. package/ats/src/commands/init.js +1 -1
  15. package/ats/src/commands/list.js +1 -1
  16. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  17. package/ats/src/commands/list_commands/grids.js +1 -1
  18. package/ats/src/config/constants.js +1 -1
  19. package/ats/src/config/logger.js +1 -1
  20. package/ats/src/index.js +1 -1
  21. package/ats/src/utils/AWSUtils.js +1 -1
  22. package/ats/src/utils/createAutoscalerStack.js +1 -1
  23. package/ats/src/utils/createClusterStack.js +1 -1
  24. package/ats/src/utils/createk8sClient.js +1 -1
  25. package/ats/src/utils/deleteStack.js +1 -1
  26. package/ats/src/utils/gridComponents.js +1 -1
  27. package/ats/src/utils/hstUtils.js +1 -1
  28. package/ats/src/utils/instrumentationUtils.js +1 -1
  29. package/ats/src/utils/userInput.js +1 -1
  30. package/ats/src/utils/utilityMethods.js +1 -1
  31. package/ats/src/utils/webSocketUtils.js +1 -1
  32. package/package.json +1 -1
  33. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  34. package/src/bin/codeceptjs/command.js +1 -1
  35. package/src/bin/cucumber-js/command.js +1 -1
  36. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  37. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  38. package/src/bin/cucumber-js/test.setup.js +1 -1
  39. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  40. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  41. package/src/bin/jest/command.js +1 -1
  42. package/src/bin/jest/customImplements/customCircus.js +1 -0
  43. package/src/bin/jest/customImplements/customEnvironment.js +1 -0
  44. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -0
  45. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -0
  46. package/src/bin/jest/jest.setup.js +1 -1
  47. package/src/bin/jest/test-observability/data-hooks.js +1 -0
  48. package/src/bin/jest/test-observability/helper.js +1 -0
  49. package/src/bin/jest/test-observability/obsReporter.js +1 -0
  50. package/src/bin/jest/test-observability/test-details.js +1 -0
  51. package/src/bin/jest/test_before.setup.js +1 -1
  52. package/src/bin/launcher/launcher.js +1 -1
  53. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  54. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  55. package/src/bin/mocha/command.js +1 -1
  56. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  57. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  58. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  59. package/src/bin/mocha/test.setup.js +1 -1
  60. package/src/bin/nightwatch/command.js +1 -1
  61. package/src/bin/playwright/accessibility-helper.js +1 -1
  62. package/src/bin/playwright/command.js +1 -1
  63. package/src/bin/playwright/globalSetup.js +1 -1
  64. package/src/bin/playwright/mock-process.js +1 -1
  65. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  66. package/src/bin/playwright/reporter/reporter.js +1 -1
  67. package/src/bin/playwright/reporter/test-details.js +1 -1
  68. package/src/bin/runner.js +1 -1
  69. package/src/bin/setup.js +1 -1
  70. package/src/bin/test-runner/index.js +1 -1
  71. package/src/bin/test-runner/runTest.js +1 -1
  72. package/src/bin/test-runner/testWorker.js +1 -1
  73. package/src/bin/utils/constants.js +1 -1
  74. package/src/bin/utils/log4jsAppender.js +1 -1
  75. package/src/bin/utils/logPatcher.js +1 -1
  76. package/src/bin/utils/logReportingAPI.js +1 -1
  77. package/src/bin/vanilla-js/command.js +1 -1
  78. package/src/helpers/BrowserStackSetup.js +1 -1
  79. package/src/helpers/accessibility-automation/constants.js +1 -1
  80. package/src/helpers/accessibility-automation/helper.js +1 -1
  81. package/src/helpers/ats/constants.js +1 -1
  82. package/src/helpers/ats/helper.js +1 -1
  83. package/src/helpers/capsMapping.js +1 -1
  84. package/src/helpers/helper.js +1 -1
  85. package/src/helpers/logger.js +1 -1
  86. package/src/helpers/patchHelpers.js +1 -1
  87. package/src/helpers/percy/Percy.js +1 -1
  88. package/src/helpers/percy/PercyBinary.js +1 -1
  89. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  90. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  91. package/src/helpers/percy/PercySDK.js +1 -1
  92. package/src/helpers/percy/index.js +1 -1
  93. package/src/helpers/request-spy.js +1 -1
  94. package/src/helpers/setKeepAlive.js +1 -1
  95. package/src/helpers/test-observability/constants.js +1 -1
  96. package/src/helpers/test-observability/error-handler.js +1 -1
  97. package/src/helpers/test-observability/performance-tester.js +1 -1
  98. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  99. package/src/helpers/test-observability/sessionHandler.js +1 -1
  100. package/src/helpers/test-observability/utils.js +1 -1
  101. package/src/helpers/w3cMapping.js +1 -1
  102. package/src/hubAllocationMethods.js +1 -1
  103. package/src/index.js +1 -1
  104. package/src/bin/jest/customEnvironment.js +0 -1
  105. package/src/bin/jest/customTestRunnerTemplate.js +0 -1
@@ -1 +1 @@
1
- const a0_0x32995e=a0_0x1ee1;(function(_0x26509b,_0x35f2a3){const _0xc0c650=a0_0x1ee1,_0x30dfcd=_0x26509b();while(!![]){try{const _0xf477b3=parseInt(_0xc0c650(0x192))/0x1+-parseInt(_0xc0c650(0xc0))/0x2+-parseInt(_0xc0c650(0x14e))/0x3+parseInt(_0xc0c650(0xc7))/0x4+parseInt(_0xc0c650(0x13b))/0x5+parseInt(_0xc0c650(0x1a9))/0x6+-parseInt(_0xc0c650(0x9d))/0x7*(parseInt(_0xc0c650(0x92))/0x8);if(_0xf477b3===_0x35f2a3)break;else _0x30dfcd['push'](_0x30dfcd['shift']());}catch(_0x4ae94){_0x30dfcd['push'](_0x30dfcd['shift']());}}}(a0_0x5048,0x2fd4f));const fs=require('fs'),path=require(a0_0x32995e(0xe1)),yaml=require(a0_0x32995e(0xb2)),awsSDK=require(a0_0x32995e(0xa4)),{logger}=require('../config/logger'),{CloudProvider}=require(a0_0x32995e(0xf8)),{sendAWSInfoToHST}=require(a0_0x32995e(0x125)),{deleteClusterStack}=require('../utils/deleteStack'),{createClusterStack}=require(a0_0x32995e(0x99)),{deleteClusterAndDependencies,deleteRoutingDeps}=require(a0_0x32995e(0xe0)),{createAutoscalerStack}=require(a0_0x32995e(0x191)),{getDirForConfig,reportToGalactusAndSendToEDS}=require(a0_0x32995e(0x177)),{IAM_USER_NAME,AWS,WS_EVENTS,CLUSTER_DEP_STACK_NAME,global_registry,messageTypes}=require('../config/constants');class AWSCloudProvider extends CloudProvider{constructor(_0xe38d2d,_0x26737f,_0x48f5f7,_0x1d329c){super(AWS,_0xe38d2d,_0x26737f,_0x48f5f7,_0x1d329c);}[a0_0x32995e(0xad)](){const _0x13c1db=a0_0x32995e,_0x508dee={};_0x508dee[_0x13c1db(0x90)]=function(_0x206afe,_0x3b4f33){return _0x206afe!==_0x3b4f33;},_0x508dee[_0x13c1db(0xa5)]='tYIVW';const _0x406f7f=_0x508dee;!this['isConfigured']()&&(_0x406f7f[_0x13c1db(0x90)](_0x406f7f[_0x13c1db(0xa5)],_0x406f7f[_0x13c1db(0xa5)])?(_0x657e4d[_0x13c1db(0x162)]=_0x3dd66c[this['cloudProviderName']][_0x13c1db(0xbf)],_0x404cb6[_0x13c1db(0x9e)]=_0x64acde[this['cloudProviderName']][_0x13c1db(0x120)]):this[_0x13c1db(0xf5)]());}[a0_0x32995e(0x113)](){const _0x215a95=a0_0x32995e,_0x42dfb7={};_0x42dfb7[_0x215a95(0xdf)]=function(_0x16a79f,_0x1ddd0b){return _0x16a79f===_0x1ddd0b;};const _0x4e0085=_0x42dfb7;return _0x4e0085[_0x215a95(0xdf)](global_registry[_0x215a95(0x10c)],!![]);}['setConfig'](){const _0x598eee=a0_0x32995e,_0x5b2665={};_0x5b2665[_0x598eee(0x123)]=global_registry[_0x598eee(0x102)],_0x5b2665[_0x598eee(0x8f)]=global_registry[_0x598eee(0x162)],_0x5b2665[_0x598eee(0xb4)]=global_registry[_0x598eee(0x9e)],awsSDK[_0x598eee(0x154)][_0x598eee(0x168)](_0x5b2665),global_registry[_0x598eee(0x10c)]=!![];}async[a0_0x32995e(0xd7)](_0x49cc5b){const _0x50c4e3=a0_0x32995e;global_registry[_0x50c4e3(0x162)]=_0x49cc5b[this[_0x50c4e3(0xfd)]][_0x50c4e3(0xbf)],global_registry[_0x50c4e3(0x9e)]=_0x49cc5b[this[_0x50c4e3(0xfd)]][_0x50c4e3(0x120)];}[a0_0x32995e(0xe5)](_0x18f860){const _0x29c212=a0_0x32995e;return _0x18f860['body'][_0x29c212(0x12f)][_0x29c212(0xb9)][_0x29c212(0xe9)][0x0]['hostname'];}async[a0_0x32995e(0x1a5)](){const _0x519d6b=a0_0x32995e,_0x5653d2={'xULNh':function(_0x639ace,_0x31c558){return _0x639ace(_0x31c558);},'JHCon':function(_0x50fed1,_0x552729){return _0x50fed1(_0x552729);},'pNPGD':_0x519d6b(0xbc),'zeSnt':function(_0x488284,_0x25108a){return _0x488284===_0x25108a;},'dwlyS':_0x519d6b(0x175),'dfLgi':function(_0xa9d2c2,_0x463df4){return _0xa9d2c2!==_0x463df4;},'MyvyD':'LZyps','NAEUa':_0x519d6b(0x14a),'iXPXQ':function(_0x4a3bcc,_0x3ff59b){return _0x4a3bcc===_0x3ff59b;},'xLfoC':'browserstack:managedBy','jVVIX':_0x519d6b(0x14c),'DrTky':function(_0x4dcc5e,_0x398764){return _0x4dcc5e!==_0x398764;},'vWstx':_0x519d6b(0x16a)};try{if(_0x5653d2[_0x519d6b(0xa9)](_0x5653d2[_0x519d6b(0x110)],_0x5653d2[_0x519d6b(0x110)])){const _0x3940d4=await this[_0x519d6b(0xc2)]();if(_0x3940d4['cluster']){if(_0x5653d2[_0x519d6b(0xa7)](_0x5653d2[_0x519d6b(0x143)],_0x5653d2[_0x519d6b(0xd3)])){const _0x4fbd58=_0x3940d4[_0x519d6b(0x117)]['tags'];return _0x4fbd58&&_0x5653d2[_0x519d6b(0x112)](_0x4fbd58[_0x5653d2['xLfoC']]['toLowerCase'](),_0x5653d2[_0x519d6b(0xff)]);}else{const _0x45c9db={'XDcTl':function(_0x4ad515,_0xae0c3e){return _0x5653d2['JHCon'](_0x4ad515,_0xae0c3e);}},_0x59fb01={};_0x59fb01[_0x519d6b(0xac)]=_0x5653d2[_0x519d6b(0x158)];const _0x4c3826=new _0x788453[(_0x519d6b(0x14b))](_0x59fb01);_0x4c3826[_0x519d6b(0x10d)]()[_0x519d6b(0x19a)]()[_0x519d6b(0xf4)](_0x881fcf=>{const _0x4ae7c7=_0x519d6b;_0x881fcf[_0x4ae7c7(0xee)][_0x4ae7c7(0x181)](this['clusterName'])&&_0x45c9db[_0x4ae7c7(0x13d)](_0x129d99,!![]),_0x45c9db[_0x4ae7c7(0x13d)](_0xc8b734,![]);})[_0x519d6b(0x1a2)](_0x267200=>{const _0x1853ce=_0x519d6b;_0x20b5ae[_0x1853ce(0xcd)](_0x267200),_0x5653d2['xULNh'](_0x492ef4,_0x267200);});}}}else{const _0x193aa4={};_0x193aa4[_0x519d6b(0x123)]=_0x473458['clusterRegion'],_0x193aa4[_0x519d6b(0x8f)]=_0x4de0b7['cloudProviderAccessKey'],_0x193aa4[_0x519d6b(0xb4)]=_0xec820a[_0x519d6b(0x9e)],_0x1011e0['config'][_0x519d6b(0x168)](_0x193aa4),_0x5a69db[_0x519d6b(0x10c)]=!![];}}catch(_0x552501){return _0x5653d2[_0x519d6b(0x18a)](_0x5653d2[_0x519d6b(0xe7)],_0x5653d2['vWstx'])?!![]:![];}return![];}async['isClusterPresent'](){const _0x42cb15=a0_0x32995e;return this[_0x42cb15(0xad)](),this[_0x42cb15(0x129)]();}async[a0_0x32995e(0xc2)](){const _0x5420cb=a0_0x32995e,_0x338977={};_0x338977[_0x5420cb(0x142)]=_0x5420cb(0xbc);const _0x4f101f=_0x338977,_0x2da330={};_0x2da330[_0x5420cb(0xac)]=_0x4f101f[_0x5420cb(0x142)];const _0x28a333=new awsSDK[(_0x5420cb(0x14b))](_0x2da330),_0x58e3bd={};return _0x58e3bd[_0x5420cb(0x184)]=this[_0x5420cb(0x171)],_0x28a333[_0x5420cb(0x98)](_0x58e3bd)[_0x5420cb(0x19a)]();}async['createAuthConfigMap'](_0x657784){const _0x5384ee=a0_0x32995e,_0x2aa508={};_0x2aa508['TAqrW']=_0x5384ee(0x15e),_0x2aa508[_0x5384ee(0x14d)]='aws-auth-cm.yaml',_0x2aa508[_0x5384ee(0xb5)]='utf-8',_0x2aa508['Dimmv']=_0x5384ee(0x19d);const _0x202c21=_0x2aa508,_0x115f2c=await fs[_0x5384ee(0xe3)](path[_0x5384ee(0xc1)](__dirname,'..',_0x202c21[_0x5384ee(0xab)],_0x202c21[_0x5384ee(0x14d)]),_0x202c21[_0x5384ee(0xb5)]),_0x525048=yaml['load'](_0x115f2c);return _0x525048[_0x5384ee(0xfa)][_0x5384ee(0x109)]=_0x525048[_0x5384ee(0xfa)][_0x5384ee(0x109)][_0x5384ee(0x11c)](_0x202c21[_0x5384ee(0x19b)],_0x657784),_0x525048;}async[a0_0x32995e(0x86)](_0x5eb5ba){const _0x1dc228=a0_0x32995e,_0x43cf19={};_0x43cf19[_0x1dc228(0xda)]=_0x1dc228(0xbc);const _0xe83c43=_0x43cf19,_0x41269c={};_0x41269c['apiVersion']=_0xe83c43[_0x1dc228(0xda)];const _0x9d9093=new awsSDK[(_0x1dc228(0x14b))](_0x41269c),_0x4df3f4={};return _0x4df3f4['clusterName']=this[_0x1dc228(0x171)],_0x4df3f4[_0x1dc228(0x11d)]=_0x5eb5ba,_0x9d9093[_0x1dc228(0xae)](_0x4df3f4)[_0x1dc228(0x19a)]();}async['checkClusterCreated'](){const _0x1a137d=a0_0x32995e,_0x1ed745={'HIAzA':_0x1a137d(0x126),'OraaO':function(_0x170d42,_0x3c8800){return _0x170d42(_0x3c8800);},'IaNJi':_0x1a137d(0xa3),'DPtex':function(_0xddda13,_0xfbb1c){return _0xddda13===_0xfbb1c;},'DFckl':_0x1a137d(0xc6),'ZQvbw':'VReOw','RWOzx':'uggeA','smbnx':function(_0x53e8ef,_0x223741){return _0x53e8ef!==_0x223741;},'dbpIR':_0x1a137d(0x174),'bqEvo':_0x1a137d(0x165),'fnAFg':function(_0x58ebe2,_0x22d659){return _0x58ebe2(_0x22d659);},'TEDga':function(_0xee257b,_0x6796d1){return _0xee257b===_0x6796d1;},'efcmO':_0x1a137d(0x139),'AVGpS':'HHWAo','LHnmJ':'2017-11-01'};return new Promise((_0x3ec59e,_0x31ff6d)=>{const _0x447208=_0x1a137d,_0x54584f={'gsHut':_0x1ed745[_0x447208(0xa1)],'RtAom':function(_0x4b78f7,_0x31ee25){return _0x1ed745['OraaO'](_0x4b78f7,_0x31ee25);},'ojFto':_0x1ed745[_0x447208(0x91)],'YfcKX':function(_0x1bc3d9,_0x276c5f){const _0x23ba01=_0x447208;return _0x1ed745[_0x23ba01(0x17a)](_0x1bc3d9,_0x276c5f);},'ZUenV':_0x1ed745[_0x447208(0x167)],'NAUVf':function(_0x7462dc,_0x373932){const _0x5801a1=_0x447208;return _0x1ed745[_0x5801a1(0x17a)](_0x7462dc,_0x373932);},'LBJkd':_0x1ed745['ZQvbw'],'VEHHF':_0x1ed745[_0x447208(0x164)],'glHDW':function(_0x4143bd,_0x49ba0b){return _0x1ed745['smbnx'](_0x4143bd,_0x49ba0b);},'lAJVw':_0x1ed745[_0x447208(0xed)],'PyRzN':_0x1ed745[_0x447208(0x13e)],'bdpyA':function(_0xd2c158,_0x481e85){const _0x1c8fc7=_0x447208;return _0x1ed745[_0x1c8fc7(0xf3)](_0xd2c158,_0x481e85);}};if(_0x1ed745[_0x447208(0x16d)](_0x1ed745[_0x447208(0xc3)],_0x1ed745['AVGpS']))_0x5571e7[_0x447208(0x87)](_0x54584f[_0x447208(0x97)]);else{const _0x3f35ae={};_0x3f35ae[_0x447208(0xac)]=_0x1ed745[_0x447208(0x101)];const _0x220bb9=new awsSDK[(_0x447208(0x14b))](_0x3f35ae);_0x220bb9[_0x447208(0x10d)]()[_0x447208(0x19a)]()[_0x447208(0xf4)](_0x1e58ee=>{const _0x5cb7e9=_0x447208,_0x2237ab={'yHMhq':function(_0x3affae,_0x3b5c60){const _0x2ea686=a0_0x1ee1;return _0x54584f[_0x2ea686(0xf6)](_0x3affae,_0x3b5c60);},'JGgwE':function(_0x257409,_0x8be71e){const _0x169cef=a0_0x1ee1;return _0x54584f[_0x169cef(0xf6)](_0x257409,_0x8be71e);},'lPMLD':_0x54584f[_0x5cb7e9(0xba)]};if(_0x54584f[_0x5cb7e9(0xd6)](_0x54584f[_0x5cb7e9(0x12c)],_0x54584f[_0x5cb7e9(0x12c)])){if(_0x1e58ee[_0x5cb7e9(0xee)][_0x5cb7e9(0x181)](this['clusterName'])){if(_0x54584f[_0x5cb7e9(0x157)](_0x54584f[_0x5cb7e9(0xcb)],_0x54584f['VEHHF']))return this[_0x5cb7e9(0xad)](),this[_0x5cb7e9(0x129)]();else _0x54584f['RtAom'](_0x3ec59e,!![]);}_0x54584f['RtAom'](_0x3ec59e,![]);}else{const _0x3f91e1={'veXke':function(_0x319c02,_0x104a89){const _0x40ff54=_0x5cb7e9;return _0x2237ab[_0x40ff54(0x19c)](_0x319c02,_0x104a89);},'dicSn':function(_0x1355cd,_0x15c4fd){const _0x2bba93=_0x5cb7e9;return _0x2237ab[_0x2bba93(0x11e)](_0x1355cd,_0x15c4fd);},'cBqSW':_0x2237ab['lPMLD']},_0x465b09={};_0x465b09['VpcIds']=[_0x9b449b];let _0x430adb=_0x465b09;return new _0x39b74b((_0x33177a,_0x5ce243)=>{const _0x1d6121=_0x5cb7e9,_0x38c34b={'NDNnd':function(_0x87b8ca,_0x3a8ba4){const _0x3929e8=a0_0x1ee1;return _0x3f91e1[_0x3929e8(0x11a)](_0x87b8ca,_0x3a8ba4);},'HTlEE':function(_0x24f912,_0x3c23bf){const _0x2f0877=a0_0x1ee1;return _0x3f91e1[_0x2f0877(0x12e)](_0x24f912,_0x3c23bf);}},_0x3172f4={};_0x3172f4['apiVersion']=_0x3f91e1['cBqSW'],_0x3172f4[_0x1d6121(0x123)]=_0x40d650[_0x1d6121(0x102)];const _0x5074a6=new _0x142a05[(_0x1d6121(0x16f))](_0x3172f4);_0x5074a6[_0x1d6121(0xc5)](_0x430adb)['promise']()[_0x1d6121(0xf4)](_0xfec2fc=>{_0x38c34b['NDNnd'](_0x33177a,!![]);})[_0x1d6121(0x1a2)](_0x339d62=>{const _0x473fa4=_0x1d6121;_0x446fb1[_0x473fa4(0xcd)]('Cannot\x20find\x20VPC\x20'+_0x57e238+'\x20in\x20region\x20'+_0x55a72f[_0x473fa4(0x102)]+_0x473fa4(0x14f)),_0x38c34b['HTlEE'](_0x33177a,![]);});});}})['catch'](_0x5c0b36=>{const _0x47f060=_0x447208;_0x54584f[_0x47f060(0xfe)](_0x54584f[_0x47f060(0xdd)],_0x54584f['PyRzN'])?(logger[_0x47f060(0xcd)](_0x5c0b36),_0x54584f['bdpyA'](_0x31ff6d,_0x5c0b36)):this[_0x47f060(0xf5)]();});}});}async[a0_0x32995e(0xd8)](_0x5df0a5,_0x2dca5b){const _0x52e279=a0_0x32995e,_0x1b3a4a={'itlbA':function(_0xd58573,_0x54caad){return _0xd58573(_0x54caad);}},_0x3b540b=this['cloudProviderName'][_0x52e279(0x8e)](),_0x5bcacd=await _0x1b3a4a['itlbA'](_0x5df0a5,_0x3b540b+'\x20ACCESS\x20KEY:\x20'),_0x20b58f=await _0x1b3a4a[_0x52e279(0x13a)](_0x5df0a5,_0x3b540b+_0x52e279(0xe2));global_registry['cloudProviderAccessKey']=_0x5bcacd,global_registry[_0x52e279(0x9e)]=_0x20b58f;const _0x51409e={};return _0x51409e[_0x52e279(0xbf)]=_0x5bcacd,_0x51409e['secret']=_0x20b58f,_0x2dca5b[_0x52e279(0x15f)][AWS]=_0x51409e,_0x2dca5b;}async[a0_0x32995e(0x9f)](){const _0x52b8cf=a0_0x32995e,_0x91ccbe={'JgiKh':function(_0x311f3e){return _0x311f3e();},'wlCHL':_0x52b8cf(0x199),'uXaWj':_0x52b8cf(0x15e),'erDLp':_0x52b8cf(0x119)},_0x2d4edc=_0x91ccbe[_0x52b8cf(0xdc)](getDirForConfig),_0x54aa07=await this['getClusterInfo'](),_0x42eb75=path[_0x52b8cf(0xc1)](_0x2d4edc,_0x91ccbe[_0x52b8cf(0xc9)]),_0x3a165a=_0x52b8cf(0x197)+global_registry[_0x52b8cf(0x162)]+_0x52b8cf(0x15a)+global_registry[_0x52b8cf(0x9e)];fs[_0x52b8cf(0x116)](_0x42eb75,_0x3a165a);let _0x4dc3d2=await fs[_0x52b8cf(0xe3)](path[_0x52b8cf(0xc1)](__dirname,'..',_0x91ccbe[_0x52b8cf(0xa6)],_0x91ccbe[_0x52b8cf(0x12d)]));return _0x4dc3d2=_0x4dc3d2[_0x52b8cf(0x18e)](),_0x4dc3d2=_0x4dc3d2[_0x52b8cf(0x11c)](/<CLUSTER_NAME>/g,this[_0x52b8cf(0x171)]),_0x4dc3d2=_0x4dc3d2['replace'](/<CLUSTER_URL>/g,_0x54aa07[_0x52b8cf(0x117)][_0x52b8cf(0x104)]),_0x4dc3d2=_0x4dc3d2['replace'](/<CERTIFICATE_DATA>/g,_0x54aa07[_0x52b8cf(0x117)]['certificateAuthority'][_0x52b8cf(0xfa)]),_0x4dc3d2=_0x4dc3d2[_0x52b8cf(0x11c)](/<CLUSTER_REGION>/g,global_registry[_0x52b8cf(0x102)]),_0x4dc3d2=_0x4dc3d2[_0x52b8cf(0x11c)](/<CLUSTER_NAME_USER>/g,IAM_USER_NAME),_0x4dc3d2=_0x4dc3d2[_0x52b8cf(0x11c)](/<CLOUD_PROVIDER_ACCESS_KEY>/g,global_registry['cloudProviderAccessKey']),_0x4dc3d2=_0x4dc3d2[_0x52b8cf(0x11c)](/<CLOUD_PROVIDER_SECRET>/g,global_registry[_0x52b8cf(0x9e)]),_0x4dc3d2=_0x4dc3d2[_0x52b8cf(0x11c)](/<AWS_CONFIG_FILE_PATH>/g,_0x42eb75),_0x4dc3d2;}async[a0_0x32995e(0x193)](_0x51234=null,_0x2b141d=null){const _0x553897=a0_0x32995e,_0x2eb81d={'onfxV':function(_0x18384a,_0x24207e){return _0x18384a(_0x24207e);},'uluVO':'Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','bAzJN':_0x553897(0x156),'fCxiG':function(_0x3ebd71,_0x12c792,_0x35f654,_0x2072c8,_0x391cad,_0x159f56){return _0x3ebd71(_0x12c792,_0x35f654,_0x2072c8,_0x391cad,_0x159f56);},'bjkTU':_0x553897(0x9b),'TLdPI':function(_0x318af6,_0x3a1653){return _0x318af6===_0x3a1653;},'yDIBG':function(_0x117fc0,_0x471bdd){return _0x117fc0===_0x471bdd;},'HxNIE':_0x553897(0x12b)};_0x2eb81d[_0x553897(0x169)](sendAWSInfoToHST,this[_0x553897(0x132)]);const _0x5d8879={};_0x5d8879['type']=WS_EVENTS['LOG'],_0x5d8879[_0x553897(0x172)]=_0x2eb81d[_0x553897(0x10f)],this[_0x553897(0xb0)][_0x553897(0x153)](this[_0x553897(0x132)],_0x5d8879),logger['info'](_0x2eb81d[_0x553897(0x17c)]);const _0x2b3e6f=global_registry['minNodes'],_0x553614=global_registry[_0x553897(0x10e)],_0x12dff6=await _0x2eb81d['fCxiG'](createClusterStack,this[_0x553897(0x171)],_0x2b3e6f,_0x553614,_0x51234,_0x2b141d),_0x34d331=_0x12dff6[_0x553897(0x8a)][0x0]['Outputs'][0x0][_0x553897(0x8b)]['split'](','),_0x41cd99=_0x12dff6[_0x553897(0x8a)][0x0][_0x553897(0xc4)][0x1][_0x553897(0x8b)],_0x4fd76e=_0x12dff6[_0x553897(0x8a)][0x0][_0x553897(0xc4)][0x3][_0x553897(0x8b)],_0x540107=_0x12dff6['Stacks'][0x0][_0x553897(0xc4)][0x4][_0x553897(0x8b)];logger[_0x553897(0x87)](_0x2eb81d['bjkTU']),logger[_0x553897(0x87)](_0x553897(0xea)+_0x4fd76e+'\x20'),logger[_0x553897(0x87)]('ClusterRole\x20=>\x20'+_0x41cd99+'\x20'),logger[_0x553897(0x87)](_0x553897(0xd9)+_0x34d331+'\x20'),logger[_0x553897(0x87)](_0x553897(0xaa)+_0x540107+'\x20');let _0x59efc0=_0x553897(0x178)+_0x4fd76e+',\x20ClusterRole\x20=>\x20'+_0x41cd99+_0x553897(0x9a)+_0x34d331+_0x553897(0x183)+_0x540107+'\x20';if(_0x2eb81d['TLdPI'](_0x51234,null)&&_0x2eb81d[_0x553897(0xb6)](_0x2b141d,null)){if(_0x2eb81d[_0x553897(0xb6)](_0x2eb81d[_0x553897(0x130)],_0x2eb81d[_0x553897(0x130)])){const _0x59647a=_0x12dff6[_0x553897(0x8a)][0x0][_0x553897(0xc4)][0x2][_0x553897(0x8b)],_0x4c012a=_0x12dff6['Stacks'][0x0]['Outputs'][0x5][_0x553897(0x8b)][_0x553897(0x111)](',');logger[_0x553897(0x87)]('VPC\x20=>\x20'+_0x59647a+'\x20'),logger[_0x553897(0x87)](_0x553897(0x180)+_0x4c012a+'\x20'),_0x59efc0+=_0x553897(0xe8)+_0x59647a+_0x553897(0x179)+_0x4c012a+',\x20';}else _0x2eb81d[_0x553897(0x169)](_0x1f17d5,!![]);}const _0x5ebb7e={};_0x5ebb7e['type']=WS_EVENTS[_0x553897(0x13f)],_0x5ebb7e[_0x553897(0x172)]=_0x59efc0,this[_0x553897(0xb0)][_0x553897(0x153)](this[_0x553897(0x132)],_0x5ebb7e);}async['deleteCluster'](_0x94f54e,_0x585ba7){const _0x3e6009=a0_0x32995e,_0x10282a={'BaNFH':function(_0x505cfd,_0x5a3419){return _0x505cfd(_0x5a3419);},'imhmh':function(_0x486e8f,_0x2743a7){return _0x486e8f(_0x2743a7);}};await _0x10282a['BaNFH'](deleteRoutingDeps,_0x94f54e),await _0x10282a[_0x3e6009(0xf0)](deleteClusterAndDependencies,_0x585ba7);}async['setupAutoscaler'](_0x442e99,_0x55707b){const _0x2805f0=a0_0x32995e,_0xb4054d={'VcvOL':function(_0x1a7565,_0x2dc066){return _0x1a7565(_0x2dc066);},'WSNxI':function(_0x1729a1,_0x582bf9){return _0x1729a1(_0x582bf9);},'uqWtr':function(_0x353be4,_0x9bebee){return _0x353be4(_0x9bebee);},'DJoNU':'2016-11-15','jyYOg':function(_0x397253,_0x20f36e){return _0x397253!==_0x20f36e;},'FRYfn':'eynlC','Dcyvr':'UrVFa','KKQxd':_0x2805f0(0x126),'CDgbB':_0x2805f0(0xb8),'DZENP':function(_0x598b3a,_0x4f9d8f){return _0x598b3a!==_0x4f9d8f;},'uVHZL':'FMWyQ','FBPHe':_0x2805f0(0x95),'BZKdv':function(_0x12cb2a,_0x39ac82){return _0x12cb2a(_0x39ac82);},'CAmRF':function(_0x23ff89,_0x479662){return _0x23ff89===_0x479662;},'CKhbU':_0x2805f0(0x145),'MHYHl':function(_0x12ab77,_0x7ba512){return _0x12ab77===_0x7ba512;},'LEZuE':_0x2805f0(0xd1),'ROaXV':_0x2805f0(0xcc),'uBqMT':function(_0x194fa6,_0x482d93,_0x4f25fa,_0x190d9a,_0x382aed,_0x53a39c,_0x402c2a,_0x300bd3){return _0x194fa6(_0x482d93,_0x4f25fa,_0x190d9a,_0x382aed,_0x53a39c,_0x402c2a,_0x300bd3);},'qHJXX':_0x2805f0(0x138),'FZSWj':'reportToGalactusAndSendToEDS','akmuH':_0x2805f0(0x9c),'Ecqdk':_0x2805f0(0x1a0),'mAcJC':_0x2805f0(0x185),'qMbNs':function(_0x4f5ee3,_0x2dba8,_0x2ec92e,_0xfa86f5,_0x99ba55,_0xcfb783,_0x521b3f,_0x1723a4){return _0x4f5ee3(_0x2dba8,_0x2ec92e,_0xfa86f5,_0x99ba55,_0xcfb783,_0x521b3f,_0x1723a4);},'KLWIj':_0x2805f0(0x152),'acFIm':_0x2805f0(0xcd),'azdER':_0x2805f0(0x133)};let _0x2ed01e,_0x24c1e0;const _0x4165b9={};_0x4165b9[_0x2805f0(0xf1)]=WS_EVENTS[_0x2805f0(0x13f)],_0x4165b9[_0x2805f0(0x172)]=_0xb4054d[_0x2805f0(0x155)],this[_0x2805f0(0xb0)][_0x2805f0(0x153)](this[_0x2805f0(0x132)],_0x4165b9),logger[_0x2805f0(0x87)](_0xb4054d['CDgbB']);try{if(_0xb4054d[_0x2805f0(0x17d)](_0xb4054d[_0x2805f0(0x196)],_0xb4054d[_0x2805f0(0x15c)])){const _0x4d1f60=await _0xb4054d['BZKdv'](createAutoscalerStack,this[_0x2805f0(0x171)]);_0x24c1e0=_0x4d1f60[_0x2805f0(0x8a)][0x0][_0x2805f0(0xc4)][0x2][_0x2805f0(0x8b)];const _0x995bff={};_0x995bff[_0x2805f0(0xf1)]=WS_EVENTS[_0x2805f0(0x13f)],_0x995bff[_0x2805f0(0x172)]=_0x2805f0(0x96)+_0x24c1e0+'\x20',this[_0x2805f0(0xb0)]['sendEventToBackend'](this[_0x2805f0(0x132)],_0x995bff),logger['info'](_0x2805f0(0x96)+_0x24c1e0+'\x20');}else _0x1f777a[_0x2805f0(0xcd)](_0x3db987),_0xb4054d['VcvOL'](_0x350b4a,_0x515173);}catch(_0x54e85a){if(_0xb4054d['CAmRF'](_0xb4054d[_0x2805f0(0x161)],_0xb4054d[_0x2805f0(0x161)])){if(_0xb4054d['jyYOg'](_0x54e85a[_0x2805f0(0x172)][_0x2805f0(0x114)](/already exists/),null)||_0xb4054d[_0x2805f0(0xf2)](_0x54e85a[_0x2805f0(0x172)][_0x2805f0(0x114)](/already exists/),undefined))_0xb4054d['MHYHl'](_0xb4054d[_0x2805f0(0xce)],_0xb4054d[_0x2805f0(0xdb)])?(_0x2fa64c[_0x2805f0(0xcd)](_0x2805f0(0x187)+_0x3e824f+_0x2805f0(0x1a3)+_0x298cca['clusterRegion']+'.\x20Error:\x20'+_0x59acc5),_0xb4054d[_0x2805f0(0x173)](_0x5abd7e,[![],[]])):(_0x2ed01e=_0x2805f0(0x147)+_0x54e85a['message'],await _0xb4054d['uBqMT'](reportToGalactusAndSendToEDS,_0x55707b,this[_0x2805f0(0x132)],_0x2ed01e,messageTypes[_0x2805f0(0x17f)],_0xb4054d[_0x2805f0(0x131)],_0xb4054d[_0x2805f0(0x186)],_0xb4054d[_0x2805f0(0xb1)]),logger['warn'](_0x2ed01e));else{if(_0xb4054d['MHYHl'](_0xb4054d[_0x2805f0(0xcf)],_0xb4054d[_0x2805f0(0xcf)])){const _0x1c755b=_0xb4054d[_0x2805f0(0xe4)]['split']('|');let _0xdf2f00=0x0;while(!![]){switch(_0x1c755b[_0xdf2f00++]){case'0':await _0xb4054d[_0x2805f0(0x146)](reportToGalactusAndSendToEDS,_0x55707b,this['rws'],_0x2ed01e,messageTypes[_0x2805f0(0xfc)],_0xb4054d['qHJXX'],_0xb4054d[_0x2805f0(0x137)],_0xb4054d[_0x2805f0(0xbd)]);continue;case'1':await _0xb4054d['WSNxI'](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'2':logger['error'](_0x2ed01e);continue;case'3':process['exit'](0x1);continue;case'4':_0x2ed01e='Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20'+_0x54e85a[_0x2805f0(0x172)]+_0x2805f0(0x11b);continue;}break;}}else return _0x507278['body']['status']['loadBalancer'][_0x2805f0(0xe9)][0x0][_0x2805f0(0x8c)];}}else _0x152b8a[_0x2805f0(0xcd)](_0x2805f0(0x134)+_0x5019ad+_0x2805f0(0x1a3)+_0x5b0b5b['clusterRegion']+_0x2805f0(0x14f)),_0xb4054d[_0x2805f0(0xd4)](_0x878ef2,![]);}let _0x303386=await this[_0x2805f0(0x86)](this[_0x2805f0(0x171)]+_0x2805f0(0x148));const _0xf44fc=_0x303386['nodegroup']['nodeRole'],_0x12cf28=await this[_0x2805f0(0x13c)](_0xf44fc);return await _0x442e99[_0x2805f0(0xde)](_0xb4054d[_0x2805f0(0xa0)],_0x12cf28)[_0x2805f0(0x1a2)](_0x322d5b=>{const _0x8ee108=_0x2805f0,_0xe8d713={'LKcRz':function(_0x7ebc1d,_0x934927){const _0x1e1a26=a0_0x1ee1;return _0xb4054d[_0x1e1a26(0x173)](_0x7ebc1d,_0x934927);},'FWQKY':function(_0x23424c,_0x2deed4){return _0xb4054d['WSNxI'](_0x23424c,_0x2deed4);}};if(_0xb4054d[_0x8ee108(0xf2)](_0xb4054d[_0x8ee108(0x127)],_0xb4054d[_0x8ee108(0x16c)]))logger[_0x8ee108(0x87)](_0xb4054d[_0x8ee108(0x11f)]);else{const _0x4927a4={};_0x4927a4[_0x8ee108(0xac)]=_0xb4054d[_0x8ee108(0xa2)],_0x4927a4['region']=_0x594288[_0x8ee108(0x102)];const _0x593478=new _0x46fbf0['EC2'](_0x4927a4);_0x593478[_0x8ee108(0xc5)](_0x1013e4)[_0x8ee108(0x19a)]()[_0x8ee108(0xf4)](_0x1a46f3=>{const _0x35b066=_0x8ee108;_0xe8d713[_0x35b066(0x1a7)](_0x202ccf,!![]);})[_0x8ee108(0x1a2)](_0x2da898=>{const _0x597cdd=_0x8ee108;_0x1ef46e[_0x597cdd(0xcd)](_0x597cdd(0x134)+_0x544c47+_0x597cdd(0x1a3)+_0x5d3fa6[_0x597cdd(0x102)]+_0x597cdd(0x14f)),_0xe8d713[_0x597cdd(0x18f)](_0x26d537,![]);});}}),_0x24c1e0;}[a0_0x32995e(0x150)](_0xb4233c){const _0x338018=a0_0x32995e,_0x584770={'HdkKz':function(_0x592c97,_0x4efae3){return _0x592c97!==_0x4efae3;},'DPeek':_0x338018(0xf7),'TWOJW':function(_0x2a9ebe,_0x4793b0){return _0x2a9ebe(_0x4793b0);},'przAj':function(_0x1eebb9,_0x51b3c0){return _0x1eebb9===_0x51b3c0;},'WgOxL':_0x338018(0xf9),'rGTYe':_0x338018(0x88),'cmeCI':'qLPip','VfutO':'mdPqF','JnoWS':'2016-11-15'},_0x2f5a36={};_0x2f5a36[_0x338018(0xb3)]=[_0xb4233c];let _0x4e825d=_0x2f5a36;return new Promise((_0x57a150,_0x5d2d22)=>{const _0x451939=_0x338018,_0x2793f4={'VtVUa':function(_0x597c03,_0x22284c){return _0x584770['HdkKz'](_0x597c03,_0x22284c);},'yscBG':_0x584770[_0x451939(0x151)],'zIjxu':function(_0x5bd645,_0x57f520){const _0x2edc78=_0x451939;return _0x584770[_0x2edc78(0x121)](_0x5bd645,_0x57f520);},'kjbKy':function(_0x4a0ca9,_0x523e93){return _0x584770['przAj'](_0x4a0ca9,_0x523e93);},'kbjNt':_0x584770[_0x451939(0x1a8)],'pGNMt':_0x584770[_0x451939(0x103)]};if(_0x584770[_0x451939(0x198)](_0x584770[_0x451939(0x89)],_0x584770[_0x451939(0x16b)]))!this[_0x451939(0x113)]()&&this[_0x451939(0xf5)]();else{const _0x2d6fad={};_0x2d6fad['apiVersion']=_0x584770[_0x451939(0x189)],_0x2d6fad[_0x451939(0x123)]=global_registry['clusterRegion'];const _0x1b1ca0=new awsSDK[(_0x451939(0x16f))](_0x2d6fad);_0x1b1ca0[_0x451939(0xc5)](_0x4e825d)[_0x451939(0x19a)]()[_0x451939(0xf4)](_0x284fb6=>{const _0x1a4d20=_0x451939;if(_0x2793f4[_0x1a4d20(0xa8)](_0x2793f4[_0x1a4d20(0x19f)],_0x2793f4['yscBG']))return _0x3e5a70[_0x1a4d20(0x181)](_0x581965)?!![]:(_0x6f3422['push'](_0x592c0e),![]);else _0x2793f4[_0x1a4d20(0x135)](_0x57a150,!![]);})[_0x451939(0x1a2)](_0x1df813=>{const _0x506915=_0x451939;if(_0x2793f4['kjbKy'](_0x2793f4[_0x506915(0x18d)],_0x2793f4[_0x506915(0xca)])){const _0x1f977c=_0x58d853[_0x506915(0x8a)][0x0][_0x506915(0xc4)][0x2][_0x506915(0x8b)],_0x7c8153=_0x5a8eb3[_0x506915(0x8a)][0x0][_0x506915(0xc4)][0x5][_0x506915(0x8b)][_0x506915(0x111)](',');_0x120b88['info']('VPC\x20=>\x20'+_0x1f977c+'\x20'),_0x3dbfa3['info'](_0x506915(0x180)+_0x7c8153+'\x20'),_0x4c07fe+=_0x506915(0xe8)+_0x1f977c+_0x506915(0x179)+_0x7c8153+',\x20';}else logger[_0x506915(0xcd)](_0x506915(0x134)+_0xb4233c+'\x20in\x20region\x20'+global_registry[_0x506915(0x102)]+_0x506915(0x14f)),_0x2793f4[_0x506915(0x135)](_0x57a150,![]);});}});}[a0_0x32995e(0x115)](_0x185221,_0x217cda){const _0x24ad8c=a0_0x32995e,_0xe75662={'EmOLa':'2017-11-01','iFHiO':function(_0xac805b,_0x174cd5){return _0xac805b===_0x174cd5;},'ORTyg':_0x24ad8c(0x17b),'VZYxZ':function(_0x5f5a14,_0x314339){return _0x5f5a14(_0x314339);},'dcTgG':function(_0x2fa9d8,_0x120ece){return _0x2fa9d8(_0x120ece);},'COcJY':function(_0x57c836,_0x15ca27){return _0x57c836!==_0x15ca27;},'cOuqU':_0x24ad8c(0x100),'qFROl':_0x24ad8c(0x195),'OiyhT':_0x24ad8c(0x18c),'qZEXX':function(_0x196ca4,_0x2ba0a4){return _0x196ca4!==_0x2ba0a4;},'sWTlA':_0x24ad8c(0x140),'gZROK':function(_0x241b96,_0x4edf86){return _0x241b96===_0x4edf86;},'lzIWh':_0x24ad8c(0x106),'zzHyO':_0x24ad8c(0xd2),'CKVxX':_0x24ad8c(0x1a6),'HnodT':_0x24ad8c(0xeb),'luOyh':_0x24ad8c(0x118),'zBRvD':'2016-11-15','XKhFx':_0x24ad8c(0xc8)},_0x11554f={};_0x11554f[_0x24ad8c(0x182)]=_0xe75662[_0x24ad8c(0x149)],_0x11554f[_0x24ad8c(0x144)]=[_0x217cda];const _0x47ba8e={};_0x47ba8e[_0x24ad8c(0x128)]=[_0x11554f];let _0x567a00=_0x47ba8e;return new Promise((_0x329a4a,_0x26fcb9)=>{const _0x1d1a0f=_0x24ad8c,_0x3c8fd3={'GfSIF':function(_0x33ac12,_0x53d344){const _0xb8b4e7=a0_0x1ee1;return _0xe75662[_0xb8b4e7(0x8d)](_0x33ac12,_0x53d344);},'Fjpuc':_0xe75662[_0x1d1a0f(0x166)],'uPCkR':function(_0x1513c2,_0x2c2765){const _0x20b6f1=_0x1d1a0f;return _0xe75662[_0x20b6f1(0x12a)](_0x1513c2,_0x2c2765);}};if(_0xe75662[_0x1d1a0f(0x10a)](_0xe75662[_0x1d1a0f(0x18b)],_0xe75662['luOyh'])){const _0x5ce45b={};_0x5ce45b[_0x1d1a0f(0xac)]=_0xe75662[_0x1d1a0f(0x141)],_0x5ce45b[_0x1d1a0f(0x123)]=global_registry[_0x1d1a0f(0x102)];const _0x59ca02=new awsSDK[(_0x1d1a0f(0x16f))](_0x5ce45b);_0x59ca02[_0x1d1a0f(0x159)](_0x567a00)[_0x1d1a0f(0x19a)]()[_0x1d1a0f(0xf4)](_0x2ca4ce=>{const _0x1bc861=_0x1d1a0f,_0x8351dd={'GJwGz':_0xe75662[_0x1bc861(0x107)],'DuzMD':function(_0x4e08eb,_0x1a4e14){const _0x150fc6=_0x1bc861;return _0xe75662[_0x150fc6(0x17e)](_0x4e08eb,_0x1a4e14);},'rXcVS':_0xe75662[_0x1bc861(0xef)],'SSYHm':function(_0x58afd5,_0x147823){const _0x32fe7a=_0x1bc861;return _0xe75662[_0x32fe7a(0x12a)](_0x58afd5,_0x147823);},'vgTop':function(_0x1ff5b3,_0x707d7e){const _0x1d543e=_0x1bc861;return _0xe75662[_0x1d543e(0x12a)](_0x1ff5b3,_0x707d7e);},'hpFzx':function(_0x500fa6,_0x3d445f){const _0x2f54b6=_0x1bc861;return _0xe75662[_0x2f54b6(0xfb)](_0x500fa6,_0x3d445f);},'YPuTE':function(_0x58e338,_0x2f4e7d){const _0x4253a4=_0x1bc861;return _0xe75662[_0x4253a4(0x17e)](_0x58e338,_0x2f4e7d);},'ilyEW':function(_0x417f2e,_0x5965ba){const _0x38f70e=_0x1bc861;return _0xe75662[_0x38f70e(0x10a)](_0x417f2e,_0x5965ba);},'AzqNF':_0xe75662[_0x1bc861(0x188)],'KoZhO':function(_0x1c8ee9,_0x52f100){const _0x4bcea4=_0x1bc861;return _0xe75662[_0x4bcea4(0x10a)](_0x1c8ee9,_0x52f100);},'vweLD':_0xe75662[_0x1bc861(0x105)],'wIqdU':_0xe75662[_0x1bc861(0x19e)],'hjWAT':function(_0x491806,_0x5623e8){const _0x251e4b=_0x1bc861;return _0xe75662[_0x251e4b(0x170)](_0x491806,_0x5623e8);},'ddwjn':_0xe75662[_0x1bc861(0x93)]};if(_0xe75662[_0x1bc861(0x8d)](_0xe75662[_0x1bc861(0x136)],_0xe75662['zzHyO'])){const _0x45e7f6={};_0x45e7f6[_0x1bc861(0xac)]=_0x8351dd[_0x1bc861(0x176)];const _0x44f92d=new _0x5632c6['EKS'](_0x45e7f6),_0x31c462={};return _0x31c462[_0x1bc861(0x184)]=this['clusterName'],_0x44f92d[_0x1bc861(0x98)](_0x31c462)[_0x1bc861(0x19a)]();}else{const _0x2448e1=[],_0x3dcbb0=[];_0x2ca4ce[_0x1bc861(0x190)][_0x1bc861(0x85)](_0x334df2=>{const _0x2d32d3=_0x1bc861,_0x2875ee={};_0x2875ee['qDeYC']=_0x8351dd['GJwGz'];const _0x33a80b=_0x2875ee;if(_0x8351dd[_0x2d32d3(0x1a1)](_0x8351dd['rXcVS'],_0x8351dd[_0x2d32d3(0x10b)]))_0x2448e1[_0x2d32d3(0xb7)](_0x334df2[_0x2d32d3(0x16e)]);else{const _0x1793cd={};_0x1793cd[_0x2d32d3(0xac)]=_0x33a80b[_0x2d32d3(0x94)];const _0x276a3a=new _0x2a8787[(_0x2d32d3(0x14b))](_0x1793cd),_0x3633ab={};return _0x3633ab['clusterName']=this[_0x2d32d3(0x171)],_0x3633ab[_0x2d32d3(0x11d)]=_0x551603,_0x276a3a[_0x2d32d3(0xae)](_0x3633ab)['promise']();}});const _0x498a9e=_0x185221[_0x1bc861(0x108)](_0x548f9d=>{const _0x42168f=_0x1bc861,_0x568f30={'ZSKaZ':function(_0x267fb9,_0x443d6f){const _0x511ad9=a0_0x1ee1;return _0x8351dd[_0x511ad9(0xd5)](_0x267fb9,_0x443d6f);}};if(_0x8351dd[_0x42168f(0xaf)](_0x8351dd[_0x42168f(0x15b)],_0x8351dd[_0x42168f(0x15b)]))_0x8351dd[_0x42168f(0xd0)](_0x5021f9,!![]);else{if(_0x2448e1[_0x42168f(0x181)](_0x548f9d)){if(_0x8351dd[_0x42168f(0x194)](_0x8351dd[_0x42168f(0xec)],_0x8351dd[_0x42168f(0x1a4)]))return!![];else _0x485a5c[_0x42168f(0xee)][_0x42168f(0x181)](this[_0x42168f(0x171)])&&_0x8351dd[_0x42168f(0x15d)](_0x5ecb99,!![]),_0x8351dd[_0x42168f(0x124)](_0x1d4f78,![]);}else return _0x8351dd['hjWAT'](_0x8351dd['ddwjn'],_0x8351dd[_0x42168f(0xbe)])?_0x568f30[_0x42168f(0x163)](_0x5da754[_0x42168f(0x10c)],!![]):(_0x3dcbb0[_0x42168f(0xb7)](_0x548f9d),![]);}});_0xe75662[_0x1bc861(0xfb)](_0x329a4a,[_0x498a9e,_0x3dcbb0]);}})[_0x1d1a0f(0x1a2)](_0x59ce8a=>{const _0x490978=_0x1d1a0f;if(_0x3c8fd3['GfSIF'](_0x3c8fd3[_0x490978(0x160)],_0x3c8fd3[_0x490978(0x160)]))logger['error'](_0x490978(0x187)+_0x185221+_0x490978(0x1a3)+global_registry[_0x490978(0x102)]+_0x490978(0xbb)+_0x59ce8a),_0x3c8fd3['uPCkR'](_0x329a4a,[![],[]]);else return![];});}else _0x49c4d0[_0x1d1a0f(0xb7)](_0x2e8fd4['SubnetId']);});}}function a0_0x5048(){const _0x289839=['iFHiO','WARNING','Subnets\x20=>\x20','includes','Name',',\x20NodeRole\x20=>\x20','name','4|0|2|1|3','FZSWj','Cannot\x20find\x20subnets\x20','cOuqU','JnoWS','DrTky','HnodT','bSwIM','kbjNt','toString','FWQKY','Subnets','../utils/createAutoscalerStack','19599BqNBvT','setupNewCluster','KoZhO','SOjip','uVHZL','[ats]\x0aaws_access_key_id\x20=\x20','przAj','aws_credentials','promise','Dimmv','yHMhq','<ARN>','OiyhT','yscBG','VrPun','DuzMD','catch','\x20in\x20region\x20','wIqdU','isBrowserstackCluster','BeigL','LKcRz','WgOxL','1007658kILiJT','forEach','getNodeGroupInfo','info','jkqDc','cmeCI','Stacks','OutputValue','hostname','gZROK','toUpperCase','accessKeyId','Utevu','IaNJi','16oOSgjR','sWTlA','qDeYC','rFpVD','Autoscaler\x20Role\x20created.ARN:\x20','gsHut','describeCluster','../utils/createClusterStack',',\x20SecurityGroups\x20=>\x20','Following\x20resources\x20are\x20created:','warning','1095220vgYYcq','cloudProviderSecretKey','getKubeConfigData','azdER','HIAzA','DJoNU','2016-11-15','aws-sdk','KBnzY','uXaWj','dfLgi','VtVUa','zeSnt','NodeRole\x20=>\x20','TAqrW','apiVersion','configureIfNotConfigured','describeNodegroup','ilyEW','webSocketUtils','akmuH','js-yaml','VpcIds','secretAccessKey','kkpZB','yDIBG','push','Creating\x20Autoscaler\x20Role','loadBalancer','ojFto','.\x20Error:\x20','2017-11-01','acFIm','ddwjn','accessKey','154844WGjfZZ','join','getClusterInfo','efcmO','Outputs','describeVpcs','BtwGJ','997616vYLRDT','vpc-id','wlCHL','pGNMt','LBJkd','SXyqH','error','LEZuE','Ecqdk','SSYHm','NNsWX','ZDGkI','NAEUa','uqWtr','YPuTE','YfcKX','fetchLocalCreds','getUserInput','SecurityGroups\x20=>\x20','JSfVq','ROaXV','JgiKh','lAJVw','createNamespacedConfigMap','Dvkyi','../utils/gridComponents','path','\x20SECRET\x20KEY:\x20','readFileAsync','mAcJC','getGridHostname','AWSCloudProvider','vWstx',',VPC\x20=>\x20','ingress','Cluster\x20=>\x20','FiItF','vweLD','dbpIR','clusters','ORTyg','imhmh','type','jyYOg','fnAFg','then','setConfig','RtAom','doIme','./CloudProvider','duIQE','data','dcTgG','ERROR','cloudProviderName','glHDW','jVVIX','bYSHB','LHnmJ','clusterRegion','rGTYe','endpoint','qFROl','BuwSd','EmOLa','every','mapRoles','COcJY','rXcVS','awsConfigSet','listClusters','maxNodes','uluVO','dwlyS','split','iXPXQ','isConfigured','match','isSubnetsValid','writeFileSync','cluster','vlbkJ','KubeConfigTemplate.yaml','veXke','.\x20Deleting\x20all\x20the\x20stacks','replace','nodegroupName','JGgwE','KKQxd','secret','TWOJW','exports','region','hpFzx','../utils/hstUtils','Authmap\x20already\x20exists.\x20Not\x20updating','FRYfn','Filters','checkClusterCreated','VZYxZ','cCpLM','ZUenV','erDLp','dicSn','status','HxNIE','qHJXX','rws','kube-system','Cannot\x20find\x20VPC\x20','zIjxu','lzIWh','KLWIj','create-grid-called','mzadR','itlbA','1570965pypnsE','createAuthConfigMap','XDcTl','bqEvo','LOG','sNxPQ','zBRvD','olhMs','MyvyD','Values','fgmSs','qMbNs','Skipping\x20Autoscaler\x20due\x20to:\x20','-NodeGroup','XKhFx','RwHxC','EKS','browserstack','FfVAI','494634RBQUGK','.\x20Please\x20Check\x20and\x20try\x20again','isVPCPresent','DPeek','autoscaler-creation-failed','sendEventToBackend','config','CDgbB','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','NAUVf','pNPGD','describeSubnets','\x0aaws_secret_access_key\x20=\x20','AzqNF','FBPHe','vgTop','templates','cloudProvider','Fjpuc','CKhbU','cloudProviderAccessKey','ZSKaZ','RWOzx','MDuao','CKVxX','DFckl','update','onfxV','kplVc','VfutO','Dcyvr','TEDga','SubnetId','EC2','qZEXX','clusterName','message','WSNxI','ucroQ','JXZtp','GJwGz','../utils/utilityMethods','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20',',\x20Subnets\x20=>\x20','DPtex','eRheV','bAzJN','DZENP'];a0_0x5048=function(){return _0x289839;};return a0_0x5048();}function a0_0x1ee1(_0x27655a,_0x486301){const _0x50486f=a0_0x5048();return a0_0x1ee1=function(_0x1ee195,_0x5b9c3b){_0x1ee195=_0x1ee195-0x85;let _0x5613c7=_0x50486f[_0x1ee195];return _0x5613c7;},a0_0x1ee1(_0x27655a,_0x486301);}const a0_0x182b32={};a0_0x182b32[a0_0x32995e(0xe6)]=AWSCloudProvider,module[a0_0x32995e(0x122)]=a0_0x182b32;
1
+ const a0_0x39894e=a0_0x460f;function a0_0x460f(_0x5664e6,_0x17bb20){const _0x4cb8f2=a0_0x4cb8();return a0_0x460f=function(_0x460f63,_0x4e014b){_0x460f63=_0x460f63-0xe9;let _0x56643e=_0x4cb8f2[_0x460f63];return _0x56643e;},a0_0x460f(_0x5664e6,_0x17bb20);}(function(_0x27a2df,_0x1d0c4c){const _0x4fd87f=a0_0x460f,_0x54c57c=_0x27a2df();while(!![]){try{const _0x3793ee=-parseInt(_0x4fd87f(0x128))/0x1*(-parseInt(_0x4fd87f(0x1a2))/0x2)+-parseInt(_0x4fd87f(0x16d))/0x3*(parseInt(_0x4fd87f(0x1b9))/0x4)+parseInt(_0x4fd87f(0x119))/0x5*(parseInt(_0x4fd87f(0x13c))/0x6)+parseInt(_0x4fd87f(0x1b3))/0x7+-parseInt(_0x4fd87f(0x132))/0x8*(parseInt(_0x4fd87f(0x179))/0x9)+parseInt(_0x4fd87f(0x10a))/0xa+-parseInt(_0x4fd87f(0x129))/0xb;if(_0x3793ee===_0x1d0c4c)break;else _0x54c57c['push'](_0x54c57c['shift']());}catch(_0x30ad70){_0x54c57c['push'](_0x54c57c['shift']());}}}(a0_0x4cb8,0xae0be));const fs=require('fs'),path=require(a0_0x39894e(0x13f)),yaml=require('js-yaml'),awsSDK=require(a0_0x39894e(0x121)),{logger}=require(a0_0x39894e(0x112)),{CloudProvider}=require(a0_0x39894e(0x17a)),{sendAWSInfoToHST}=require('../utils/hstUtils'),{deleteClusterStack}=require(a0_0x39894e(0x15a)),{createClusterStack}=require(a0_0x39894e(0x15f)),{deleteClusterAndDependencies,deleteRoutingDeps}=require(a0_0x39894e(0x1c2)),{createAutoscalerStack}=require(a0_0x39894e(0xff)),{getDirForConfig,reportToGalactusAndSendToEDS}=require(a0_0x39894e(0x1af)),{IAM_USER_NAME,AWS,WS_EVENTS,CLUSTER_DEP_STACK_NAME,global_registry,messageTypes}=require(a0_0x39894e(0x100));class AWSCloudProvider extends CloudProvider{constructor(_0x2f41cd,_0x2a58b5,_0x5b95a7,_0x5a9fe2){super(AWS,_0x2f41cd,_0x2a58b5,_0x5b95a7,_0x5a9fe2);}[a0_0x39894e(0x187)](){const _0x37a0b5=a0_0x39894e,_0x53c578={};_0x53c578[_0x37a0b5(0x105)]=_0x37a0b5(0x174),_0x53c578[_0x37a0b5(0x142)]=function(_0x359c8d,_0x2c4f00){return _0x359c8d===_0x2c4f00;},_0x53c578[_0x37a0b5(0x17f)]=_0x37a0b5(0x200);const _0x46c63e=_0x53c578;!this['isConfigured']()&&(_0x46c63e[_0x37a0b5(0x142)](_0x46c63e['uXPBZ'],_0x46c63e[_0x37a0b5(0x17f)])?this['setConfig']():_0x5b948b[_0x37a0b5(0xee)](_0x46c63e['hgmPb']));}[a0_0x39894e(0x19d)](){const _0x1d8489=a0_0x39894e,_0x4f11a9={};_0x4f11a9[_0x1d8489(0x12c)]=function(_0x1c34ab,_0x481590){return _0x1c34ab===_0x481590;};const _0x36e98f=_0x4f11a9;return _0x36e98f[_0x1d8489(0x12c)](global_registry['awsConfigSet'],!![]);}[a0_0x39894e(0x1b2)](){const _0x1cec33=a0_0x39894e,_0x4df115={};_0x4df115[_0x1cec33(0x1ec)]=global_registry['clusterRegion'],_0x4df115['accessKeyId']=global_registry[_0x1cec33(0x1c4)],_0x4df115[_0x1cec33(0x1c9)]=global_registry[_0x1cec33(0x201)],awsSDK['config']['update'](_0x4df115),global_registry[_0x1cec33(0x1a5)]=!![];}async[a0_0x39894e(0x106)](_0x3137c8){const _0xdc2491=a0_0x39894e;global_registry[_0xdc2491(0x1c4)]=_0x3137c8[this[_0xdc2491(0x1eb)]][_0xdc2491(0x1ae)],global_registry[_0xdc2491(0x201)]=_0x3137c8[this['cloudProviderName']][_0xdc2491(0x101)];}['getGridHostname'](_0x30cc10){const _0x409b26=a0_0x39894e;return _0x30cc10[_0x409b26(0x104)][_0x409b26(0xfe)]['loadBalancer'][_0x409b26(0x10d)][0x0][_0x409b26(0x137)];}async[a0_0x39894e(0x1b1)](){const _0x33b560=a0_0x39894e,_0x2e7f50={'YSnbK':function(_0x146a4a,_0x25667f){return _0x146a4a(_0x25667f);},'Tcrph':function(_0x55ac3d,_0x43c4eb){return _0x55ac3d!==_0x43c4eb;},'EyxFd':_0x33b560(0x1aa),'OLHNv':function(_0x424579,_0xa762f0){return _0x424579!==_0xa762f0;},'KvxGs':'ZWiuI','fMZrF':function(_0x461a92,_0x5084c5){return _0x461a92===_0x5084c5;},'xKdtT':'browserstack:managedBy','CyRnE':'browserstack','tjDJV':'OmKNE','UcOQA':_0x33b560(0x1b5)};try{if(_0x2e7f50[_0x33b560(0x190)](_0x2e7f50['EyxFd'],_0x2e7f50[_0x33b560(0x122)]))return _0x19ad55[_0x33b560(0x125)](_0x1ce87c)?!![]:(_0x3103a7[_0x33b560(0x203)](_0x7af7c6),![]);else{const _0x1fb8e2=await this[_0x33b560(0x1e8)]();if(_0x1fb8e2[_0x33b560(0x204)]){if(_0x2e7f50[_0x33b560(0x17b)](_0x2e7f50['KvxGs'],_0x2e7f50['KvxGs']))_0x2e7f50['YSnbK'](_0x3be84c,!![]);else{const _0x54cff2=_0x1fb8e2[_0x33b560(0x204)][_0x33b560(0x115)];return _0x54cff2&&_0x2e7f50[_0x33b560(0x195)](_0x54cff2[_0x2e7f50[_0x33b560(0x14c)]][_0x33b560(0x141)](),_0x2e7f50[_0x33b560(0x123)]);}}}}catch(_0x277f3d){return _0x2e7f50[_0x33b560(0x195)](_0x2e7f50[_0x33b560(0x134)],_0x2e7f50[_0x33b560(0x1ba)])?(_0x5d64dc['push'](_0xa91951),![]):![];}return![];}async[a0_0x39894e(0xeb)](){const _0x351b21=a0_0x39894e;return this[_0x351b21(0x187)](),this[_0x351b21(0x170)]();}async[a0_0x39894e(0x1e8)](){const _0x47f027=a0_0x39894e,_0x55fc71={};_0x55fc71['dZKmx']=_0x47f027(0x180);const _0x58c4e4=_0x55fc71,_0x2397ef={};_0x2397ef['apiVersion']=_0x58c4e4['dZKmx'];const _0x24822e=new awsSDK[(_0x47f027(0x1d7))](_0x2397ef),_0x118dca={};return _0x118dca['name']=this[_0x47f027(0x1a3)],_0x24822e[_0x47f027(0x11e)](_0x118dca)[_0x47f027(0x1da)]();}async['createAuthConfigMap'](_0x5ef00e){const _0x5834cf=a0_0x39894e,_0x147ee4={};_0x147ee4['vEJPr']=_0x5834cf(0x1c7),_0x147ee4[_0x5834cf(0x16b)]=_0x5834cf(0x1ef),_0x147ee4[_0x5834cf(0x139)]=_0x5834cf(0x1b7),_0x147ee4['cXnXD']=_0x5834cf(0x156);const _0x443d42=_0x147ee4,_0x4fee0e=await fs[_0x5834cf(0x12a)](path[_0x5834cf(0xf5)](__dirname,'..',_0x443d42['vEJPr'],_0x443d42[_0x5834cf(0x16b)]),_0x443d42[_0x5834cf(0x139)]),_0x49693e=yaml[_0x5834cf(0xfa)](_0x4fee0e);return _0x49693e[_0x5834cf(0x1b0)][_0x5834cf(0x1f8)]=_0x49693e[_0x5834cf(0x1b0)][_0x5834cf(0x1f8)][_0x5834cf(0x14f)](_0x443d42[_0x5834cf(0x1d5)],_0x5ef00e),_0x49693e;}async[a0_0x39894e(0x1ce)](_0x722a73){const _0x163367=a0_0x39894e,_0x287341={};_0x287341[_0x163367(0x157)]=_0x163367(0x180);const _0x4855bd=_0x287341,_0x205439={};_0x205439[_0x163367(0x1fb)]=_0x4855bd[_0x163367(0x157)];const _0x369974=new awsSDK[(_0x163367(0x1d7))](_0x205439),_0x3ecfc0={};return _0x3ecfc0[_0x163367(0x1a3)]=this[_0x163367(0x1a3)],_0x3ecfc0[_0x163367(0x16c)]=_0x722a73,_0x369974['describeNodegroup'](_0x3ecfc0)['promise']();}async[a0_0x39894e(0x170)](){const _0x41d30a=a0_0x39894e,_0x1e4270={'IarNQ':function(_0x3149b1,_0x42598e){return _0x3149b1===_0x42598e;},'oIVxw':_0x41d30a(0x116),'eBtXH':'browserstack','fruBr':function(_0x4d1900,_0x57e7e5){return _0x4d1900(_0x57e7e5);},'pvxJv':function(_0x30c56b,_0x42ba03){return _0x30c56b!==_0x42ba03;},'kWucC':_0x41d30a(0x15e),'fjMGO':'iMeMT','RGHeU':_0x41d30a(0x173),'aKVoP':_0x41d30a(0x169),'aUlgL':function(_0x55b67a,_0x5996ae){return _0x55b67a(_0x5996ae);},'PHqCu':function(_0x21f1e7,_0x4bc997){return _0x21f1e7(_0x4bc997);},'CtjpL':_0x41d30a(0x166),'EqNgg':function(_0x272de9,_0x19e6fd){return _0x272de9!==_0x19e6fd;},'VOuKD':'cQwDk','dJqxL':_0x41d30a(0x1c0),'gRFTK':_0x41d30a(0x1ee),'lnLSH':_0x41d30a(0x180)};return new Promise((_0x5394ec,_0x235361)=>{const _0x81aa76=_0x41d30a,_0x5b7518={'bQeCE':function(_0x1abdd8,_0x1144aa){const _0x4b2cd4=a0_0x460f;return _0x1e4270[_0x4b2cd4(0x13d)](_0x1abdd8,_0x1144aa);},'nJQGn':_0x1e4270[_0x81aa76(0x1a8)],'wnsaR':_0x1e4270['eBtXH'],'euHZa':function(_0x16364b,_0x235308){return _0x1e4270['fruBr'](_0x16364b,_0x235308);},'APmGW':function(_0x586184,_0x4ecf39){const _0x2b20d9=_0x81aa76;return _0x1e4270[_0x2b20d9(0xfc)](_0x586184,_0x4ecf39);},'xdLKm':_0x1e4270[_0x81aa76(0x18b)],'ADffr':_0x1e4270[_0x81aa76(0x14e)],'jQdaC':_0x1e4270['RGHeU'],'jmpbC':_0x1e4270[_0x81aa76(0x1c8)],'MoXDz':function(_0x14ef2b,_0x59f6f9){const _0x13c3c4=_0x81aa76;return _0x1e4270[_0x13c3c4(0x20b)](_0x14ef2b,_0x59f6f9);},'EcRpB':function(_0x2f9887,_0x558a27){const _0xd4929b=_0x81aa76;return _0x1e4270[_0xd4929b(0x1f1)](_0x2f9887,_0x558a27);},'hPLZN':function(_0x319345,_0x7cd2b3){const _0x2d727a=_0x81aa76;return _0x1e4270[_0x2d727a(0x15c)](_0x319345,_0x7cd2b3);},'xFNdd':_0x1e4270['CtjpL'],'jfUcR':function(_0x1d70b8,_0x2e9e9f){const _0x9bec93=_0x81aa76;return _0x1e4270[_0x9bec93(0x135)](_0x1d70b8,_0x2e9e9f);},'VkMhm':_0x1e4270['VOuKD'],'JDhkI':_0x1e4270[_0x81aa76(0x191)]};if(_0x1e4270[_0x81aa76(0x13d)](_0x1e4270[_0x81aa76(0x1f9)],_0x1e4270[_0x81aa76(0x1f9)])){const _0x26a3f6={};_0x26a3f6[_0x81aa76(0x1fb)]=_0x1e4270[_0x81aa76(0xf4)];const _0x236c60=new awsSDK['EKS'](_0x26a3f6);_0x236c60[_0x81aa76(0x205)]()[_0x81aa76(0x1da)]()['then'](_0x451e6a=>{const _0x156fef=_0x81aa76,_0x1c087e={'egLnQ':function(_0x3d3f6d,_0x914000){const _0x4fe9a9=a0_0x460f;return _0x5b7518[_0x4fe9a9(0x182)](_0x3d3f6d,_0x914000);},'tTxZQ':_0x5b7518[_0x156fef(0x1ff)],'WmmuO':_0x5b7518[_0x156fef(0x1a6)],'MBbfL':function(_0x56ed29,_0xf1c4a9){const _0x433126=_0x156fef;return _0x5b7518[_0x433126(0x16a)](_0x56ed29,_0xf1c4a9);}};if(_0x5b7518[_0x156fef(0x1ed)](_0x5b7518[_0x156fef(0x160)],_0x5b7518['ADffr'])){if(_0x451e6a['clusters'][_0x156fef(0x125)](this[_0x156fef(0x1a3)])){if(_0x5b7518[_0x156fef(0x1ed)](_0x5b7518['jQdaC'],_0x5b7518[_0x156fef(0x1a0)]))_0x5b7518[_0x156fef(0x136)](_0x5394ec,!![]);else{const _0x332f3b=_0x27b198[_0x156fef(0x204)]['tags'];return _0x332f3b&&_0x1c087e[_0x156fef(0x159)](_0x332f3b[_0x1c087e['tTxZQ']][_0x156fef(0x141)](),_0x1c087e[_0x156fef(0xf9)]);}}_0x5b7518[_0x156fef(0x11c)](_0x5394ec,![]);}else _0x40aa17[_0x156fef(0x185)](_0x2c4c07),_0x1c087e[_0x156fef(0x1b4)](_0x3f183e,_0x269a57);})['catch'](_0x27a91f=>{const _0x275933=_0x81aa76,_0x524b87={'jtrVc':function(_0xeb3980,_0x300ee7){const _0x38c449=a0_0x460f;return _0x5b7518[_0x38c449(0x11d)](_0xeb3980,_0x300ee7);},'AnDfQ':_0x5b7518[_0x275933(0x20a)]};if(_0x5b7518[_0x275933(0x147)](_0x5b7518[_0x275933(0x17d)],_0x5b7518[_0x275933(0x1e1)]))logger['error'](_0x27a91f),_0x5b7518['euHZa'](_0x235361,_0x27a91f);else{const _0x388aeb={};_0x388aeb[_0x275933(0x1fb)]=_0x524b87[_0x275933(0x1cb)],_0x388aeb['region']=_0xb1939c[_0x275933(0x1df)];const _0x1935e4=new _0x5711a3['EC2'](_0x388aeb);_0x1935e4[_0x275933(0x162)](_0x2f7e9a)[_0x275933(0x1da)]()[_0x275933(0x1bc)](_0x441df9=>{const _0x3df0c8=_0x275933;_0x524b87[_0x3df0c8(0x13a)](_0x195dc1,!![]);})[_0x275933(0x109)](_0x1592fa=>{const _0x1e22b2=_0x275933;_0x1e5ce3[_0x1e22b2(0x185)](_0x1e22b2(0x188)+_0x44f990+_0x1e22b2(0x1cd)+_0x98e707[_0x1e22b2(0x1df)]+_0x1e22b2(0x127)),_0x524b87[_0x1e22b2(0x13a)](_0x442ab2,![]);});}});}else return this[_0x81aa76(0x187)](),this[_0x81aa76(0x170)]();});}async[a0_0x39894e(0x10f)](_0x37bba8,_0x44651f){const _0x2887b1=a0_0x39894e,_0x42c61d={'ZIsGC':function(_0x346d80,_0x48a427){return _0x346d80(_0x48a427);}},_0x34e9ec=this['cloudProviderName'][_0x2887b1(0x103)](),_0x4fb00=await _0x42c61d['ZIsGC'](_0x37bba8,_0x34e9ec+_0x2887b1(0x1fd)),_0x4c1318=await _0x42c61d[_0x2887b1(0x163)](_0x37bba8,_0x34e9ec+_0x2887b1(0x108));global_registry[_0x2887b1(0x1c4)]=_0x4fb00,global_registry['cloudProviderSecretKey']=_0x4c1318;const _0x5760b4={};return _0x5760b4[_0x2887b1(0x1ae)]=_0x4fb00,_0x5760b4[_0x2887b1(0x101)]=_0x4c1318,_0x44651f[_0x2887b1(0x198)][AWS]=_0x5760b4,_0x44651f;}async[a0_0x39894e(0x113)](){const _0x48122d=a0_0x39894e,_0x2658e9={'sTqat':function(_0x1b1bea){return _0x1b1bea();},'mBdJQ':'aws_credentials','kdqgH':_0x48122d(0x1c7),'KkUxl':_0x48122d(0x202)},_0x2c9150=_0x2658e9[_0x48122d(0x186)](getDirForConfig),_0x3c73d1=await this[_0x48122d(0x1e8)](),_0x4a774e=path[_0x48122d(0xf5)](_0x2c9150,_0x2658e9['mBdJQ']),_0x24af05='[ats]\x0aaws_access_key_id\x20=\x20'+global_registry['cloudProviderAccessKey']+_0x48122d(0x1d4)+global_registry[_0x48122d(0x201)];fs[_0x48122d(0x165)](_0x4a774e,_0x24af05);let _0x4a03ef=await fs[_0x48122d(0x12a)](path[_0x48122d(0xf5)](__dirname,'..',_0x2658e9[_0x48122d(0x16f)],_0x2658e9[_0x48122d(0x110)]));return _0x4a03ef=_0x4a03ef[_0x48122d(0x1f2)](),_0x4a03ef=_0x4a03ef[_0x48122d(0x14f)](/<CLUSTER_NAME>/g,this[_0x48122d(0x1a3)]),_0x4a03ef=_0x4a03ef[_0x48122d(0x14f)](/<CLUSTER_URL>/g,_0x3c73d1[_0x48122d(0x204)][_0x48122d(0x1fc)]),_0x4a03ef=_0x4a03ef[_0x48122d(0x14f)](/<CERTIFICATE_DATA>/g,_0x3c73d1[_0x48122d(0x204)][_0x48122d(0x1c6)][_0x48122d(0x1b0)]),_0x4a03ef=_0x4a03ef['replace'](/<CLUSTER_REGION>/g,global_registry['clusterRegion']),_0x4a03ef=_0x4a03ef[_0x48122d(0x14f)](/<CLUSTER_NAME_USER>/g,IAM_USER_NAME),_0x4a03ef=_0x4a03ef[_0x48122d(0x14f)](/<CLOUD_PROVIDER_ACCESS_KEY>/g,global_registry['cloudProviderAccessKey']),_0x4a03ef=_0x4a03ef['replace'](/<CLOUD_PROVIDER_SECRET>/g,global_registry[_0x48122d(0x201)]),_0x4a03ef=_0x4a03ef['replace'](/<AWS_CONFIG_FILE_PATH>/g,_0x4a774e),_0x4a03ef;}async[a0_0x39894e(0x149)](_0x1b64fa=null,_0x4b0fbc=null){const _0x52d025=a0_0x39894e,_0x1cdd9b={'nxLkv':function(_0x285f1e,_0x10f00b){return _0x285f1e(_0x10f00b);},'xvStX':'Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','cCOGA':_0x52d025(0x1b6),'yDAar':function(_0x22f48a,_0x1344d8,_0x59b8ee,_0x198754,_0x3a3ab9,_0xae29de){return _0x22f48a(_0x1344d8,_0x59b8ee,_0x198754,_0x3a3ab9,_0xae29de);},'SPspJ':'Following\x20resources\x20are\x20created:','nEeWk':function(_0x33ed8a,_0x495652){return _0x33ed8a===_0x495652;},'BNOpw':function(_0x4037d3,_0x1fc517){return _0x4037d3===_0x1fc517;},'GrzRS':'eZdvG'};_0x1cdd9b['nxLkv'](sendAWSInfoToHST,this[_0x52d025(0xf1)]);const _0x5246f8={};_0x5246f8[_0x52d025(0x18e)]=WS_EVENTS['LOG'],_0x5246f8[_0x52d025(0x167)]=_0x1cdd9b[_0x52d025(0x1e3)],this[_0x52d025(0x15b)][_0x52d025(0x19f)](this['rws'],_0x5246f8),logger['info'](_0x1cdd9b['cCOGA']);const _0x124070=global_registry[_0x52d025(0x1db)],_0xce9866=global_registry['maxNodes'],_0x4d2908=await _0x1cdd9b[_0x52d025(0x1d1)](createClusterStack,this[_0x52d025(0x1a3)],_0x124070,_0xce9866,_0x1b64fa,_0x4b0fbc),_0x40f2f4=_0x4d2908[_0x52d025(0x10c)][0x0]['Outputs'][0x0][_0x52d025(0xed)][_0x52d025(0x172)](','),_0x5b81f1=_0x4d2908[_0x52d025(0x10c)][0x0]['Outputs'][0x1]['OutputValue'],_0x19a5af=_0x4d2908['Stacks'][0x0]['Outputs'][0x3][_0x52d025(0xed)],_0x3144a4=_0x4d2908[_0x52d025(0x10c)][0x0][_0x52d025(0x1a4)][0x4]['OutputValue'];logger[_0x52d025(0xee)](_0x1cdd9b['SPspJ']),logger[_0x52d025(0xee)]('Cluster\x20=>\x20'+_0x19a5af+'\x20'),logger[_0x52d025(0xee)]('ClusterRole\x20=>\x20'+_0x5b81f1+'\x20'),logger['info'](_0x52d025(0x1ca)+_0x40f2f4+'\x20'),logger[_0x52d025(0xee)](_0x52d025(0x164)+_0x3144a4+'\x20');let _0x1b4f58=_0x52d025(0x1c5)+_0x19a5af+_0x52d025(0x17c)+_0x5b81f1+_0x52d025(0x1a1)+_0x40f2f4+_0x52d025(0x18a)+_0x3144a4+'\x20';if(_0x1cdd9b[_0x52d025(0x155)](_0x1b64fa,null)&&_0x1cdd9b['BNOpw'](_0x4b0fbc,null)){if(_0x1cdd9b['nEeWk'](_0x1cdd9b[_0x52d025(0x1f4)],_0x1cdd9b[_0x52d025(0x1f4)])){const _0x43e8d2=_0x4d2908['Stacks'][0x0][_0x52d025(0x1a4)][0x2]['OutputValue'],_0x226c8f=_0x4d2908[_0x52d025(0x10c)][0x0][_0x52d025(0x1a4)][0x5][_0x52d025(0xed)][_0x52d025(0x172)](',');logger[_0x52d025(0xee)](_0x52d025(0xef)+_0x43e8d2+'\x20'),logger[_0x52d025(0xee)](_0x52d025(0x153)+_0x226c8f+'\x20'),_0x1b4f58+=_0x52d025(0x178)+_0x43e8d2+_0x52d025(0x197)+_0x226c8f+',\x20';}else return _0x2da2f9[_0x52d025(0x104)][_0x52d025(0xfe)][_0x52d025(0x117)][_0x52d025(0x10d)][0x0][_0x52d025(0x137)];}const _0x1f13fc={};_0x1f13fc[_0x52d025(0x18e)]=WS_EVENTS['LOG'],_0x1f13fc[_0x52d025(0x167)]=_0x1b4f58,this[_0x52d025(0x15b)][_0x52d025(0x19f)](this[_0x52d025(0xf1)],_0x1f13fc);}async[a0_0x39894e(0x1f5)](_0x6d95a8,_0x38424c){const _0xe0ecc=a0_0x39894e,_0x162bd2={'hAbep':function(_0x52f9ea,_0xc4cc0f){return _0x52f9ea(_0xc4cc0f);},'gZCry':function(_0x46579a,_0x3b1c5d){return _0x46579a(_0x3b1c5d);}};await _0x162bd2[_0xe0ecc(0x1d6)](deleteRoutingDeps,_0x6d95a8),await _0x162bd2[_0xe0ecc(0x1d9)](deleteClusterAndDependencies,_0x38424c);}async[a0_0x39894e(0x1bd)](_0x36ed53,_0x5157d7){const _0x332bbc=a0_0x39894e,_0x584575={'dbVHa':function(_0x137b10,_0x11678c){return _0x137b10(_0x11678c);},'WbZYa':function(_0x36c1b5,_0x3fe2ae){return _0x36c1b5(_0x3fe2ae);},'KaQiA':function(_0x19ccf7,_0x14ab0f){return _0x19ccf7(_0x14ab0f);},'Lvuyf':function(_0x43e72c,_0x157ec2){return _0x43e72c(_0x157ec2);},'OvzKu':_0x332bbc(0x166),'cHpkw':function(_0x4785a4,_0x57845e){return _0x4785a4(_0x57845e);},'fNXCg':function(_0x1bd2bb,_0x4030c7){return _0x1bd2bb===_0x4030c7;},'WefrA':_0x332bbc(0x144),'lXsIW':_0x332bbc(0x174),'rwEcs':'Creating\x20Autoscaler\x20Role','TOqAS':function(_0x45f67e,_0x381fd4){return _0x45f67e!==_0x381fd4;},'LNymW':_0x332bbc(0x181),'vlbGd':function(_0x1e1202,_0x59531b){return _0x1e1202(_0x59531b);},'erRmd':_0x332bbc(0x11a),'WMfOR':function(_0x25ac08,_0x11b098){return _0x25ac08!==_0x11b098;},'nFfMk':function(_0x207872,_0x5158ab){return _0x207872!==_0x5158ab;},'hWlOd':_0x332bbc(0xf2),'uThHY':_0x332bbc(0x13b),'UNxvz':function(_0x2834a2,_0x3b81af,_0x3eca6a,_0x5d087e,_0x3a12ca,_0x448ca4,_0x9bce6e,_0x2605f4){return _0x2834a2(_0x3b81af,_0x3eca6a,_0x5d087e,_0x3a12ca,_0x448ca4,_0x9bce6e,_0x2605f4);},'uQdSH':_0x332bbc(0x1be),'Vckdg':_0x332bbc(0x1fe),'nmAvR':_0x332bbc(0x1d3),'jtIeq':'NZuEF','Yucqq':_0x332bbc(0x175),'XKXfZ':function(_0x5b8dae,_0x2c4bb7,_0x923834,_0x371762,_0x525e22,_0x474691,_0x2e8531,_0x297e22){return _0x5b8dae(_0x2c4bb7,_0x923834,_0x371762,_0x525e22,_0x474691,_0x2e8531,_0x297e22);},'PVdHC':_0x332bbc(0x1de),'YQHKB':_0x332bbc(0x185),'mfvBZ':_0x332bbc(0x1c3)};let _0x3e13ae,_0x41ce59;const _0x43f780={};_0x43f780[_0x332bbc(0x18e)]=WS_EVENTS['LOG'],_0x43f780[_0x332bbc(0x167)]=_0x584575['rwEcs'],this[_0x332bbc(0x15b)][_0x332bbc(0x19f)](this[_0x332bbc(0xf1)],_0x43f780),logger['info'](_0x584575[_0x332bbc(0x1e5)]);try{if(_0x584575[_0x332bbc(0x176)](_0x584575['LNymW'],_0x584575[_0x332bbc(0x10e)]))_0x48c0ea[_0x332bbc(0x158)]['includes'](this[_0x332bbc(0x1a3)])&&_0x584575['dbVHa'](_0x4a135a,!![]),_0x584575[_0x332bbc(0x1ea)](_0x134ebe,![]);else{const _0x4f5e85=await _0x584575[_0x332bbc(0xea)](createAutoscalerStack,this[_0x332bbc(0x1a3)]);_0x41ce59=_0x4f5e85[_0x332bbc(0x10c)][0x0][_0x332bbc(0x1a4)][0x2][_0x332bbc(0xed)];const _0x24ce73={};_0x24ce73[_0x332bbc(0x18e)]=WS_EVENTS['LOG'],_0x24ce73['message']=_0x332bbc(0x131)+_0x41ce59+'\x20',this['webSocketUtils'][_0x332bbc(0x19f)](this[_0x332bbc(0xf1)],_0x24ce73),logger[_0x332bbc(0xee)](_0x332bbc(0x131)+_0x41ce59+'\x20');}}catch(_0x15c019){if(_0x584575[_0x332bbc(0x194)](_0x584575[_0x332bbc(0xfb)],_0x584575[_0x332bbc(0xfb)])){if(_0x584575[_0x332bbc(0x10b)](_0x15c019[_0x332bbc(0x167)]['match'](/already exists/),null)||_0x584575[_0x332bbc(0x1f6)](_0x15c019[_0x332bbc(0x167)][_0x332bbc(0x152)](/already exists/),undefined))_0x584575['WMfOR'](_0x584575[_0x332bbc(0x14b)],_0x584575[_0x332bbc(0x177)])?(_0x3e13ae=_0x332bbc(0x145)+_0x15c019[_0x332bbc(0x167)],await _0x584575[_0x332bbc(0x118)](reportToGalactusAndSendToEDS,_0x5157d7,this[_0x332bbc(0xf1)],_0x3e13ae,messageTypes['WARNING'],_0x584575[_0x332bbc(0x18c)],_0x584575['Vckdg'],_0x584575['nmAvR']),logger[_0x332bbc(0x1a7)](_0x3e13ae)):_0x584575[_0x332bbc(0x12e)](_0x3c7220,!![]);else{if(_0x584575[_0x332bbc(0x194)](_0x584575[_0x332bbc(0x133)],_0x584575['jtIeq'])){const _0x3ced8b=_0x584575[_0x332bbc(0x1d8)][_0x332bbc(0x172)]('|');let _0x1129ef=0x0;while(!![]){switch(_0x3ced8b[_0x1129ef++]){case'0':_0x3e13ae='Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20'+_0x15c019['message']+_0x332bbc(0x1e0);continue;case'1':process['exit'](0x1);continue;case'2':logger[_0x332bbc(0x185)](_0x3e13ae);continue;case'3':await _0x584575[_0x332bbc(0x111)](reportToGalactusAndSendToEDS,_0x5157d7,this[_0x332bbc(0xf1)],_0x3e13ae,messageTypes['ERROR'],_0x584575[_0x332bbc(0x18c)],_0x584575['PVdHC'],_0x584575[_0x332bbc(0x1b8)]);continue;case'4':await _0x584575[_0x332bbc(0x1ea)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;}break;}}else{const _0x5c1eb9={'FNTHB':function(_0x220ff9,_0x13a1ea){const _0x4a9e4e=_0x332bbc;return _0x584575[_0x4a9e4e(0x1ad)](_0x220ff9,_0x13a1ea);}},_0x1ffbe3={};_0x1ffbe3['VpcIds']=[_0xa7cb];let _0x370a0c=_0x1ffbe3;return new _0x3da27d((_0x3779bc,_0xcad9a7)=>{const _0x51113a=_0x332bbc,_0x2c6b2c={'AkwrX':function(_0x4485a6,_0x10684d){const _0x1d009e=a0_0x460f;return _0x584575[_0x1d009e(0xe9)](_0x4485a6,_0x10684d);}},_0x44192={};_0x44192[_0x51113a(0x1fb)]=_0x584575[_0x51113a(0x184)],_0x44192['region']=_0x3c2f59[_0x51113a(0x1df)];const _0xb7ef29=new _0x420ac3[(_0x51113a(0x1c1))](_0x44192);_0xb7ef29[_0x51113a(0x162)](_0x370a0c)[_0x51113a(0x1da)]()[_0x51113a(0x1bc)](_0x445b60=>{const _0x42913b=_0x51113a;_0x5c1eb9[_0x42913b(0x120)](_0x3779bc,!![]);})[_0x51113a(0x109)](_0x2963e5=>{const _0x29e1fb=_0x51113a;_0x5625a4['error'](_0x29e1fb(0x188)+_0x22fff7+_0x29e1fb(0x1cd)+_0x2bad7a[_0x29e1fb(0x1df)]+'.\x20Please\x20Check\x20and\x20try\x20again'),_0x2c6b2c['AkwrX'](_0x3779bc,![]);});});}}}else!this['isConfigured']()&&this[_0x332bbc(0x1b2)]();}let _0xa09674=await this['getNodeGroupInfo'](this[_0x332bbc(0x1a3)]+'-NodeGroup');const _0x50ca90=_0xa09674[_0x332bbc(0x15d)]['nodeRole'],_0x2e64c6=await this[_0x332bbc(0xfd)](_0x50ca90);return await _0x36ed53['createNamespacedConfigMap'](_0x584575[_0x332bbc(0x1f7)],_0x2e64c6)['catch'](_0x55d722=>{const _0x762d02=_0x332bbc,_0x100120={'kgYeW':function(_0x1819c2,_0x56352f){const _0x171863=a0_0x460f;return _0x584575[_0x171863(0x12e)](_0x1819c2,_0x56352f);}};_0x584575['fNXCg'](_0x584575[_0x762d02(0x1fa)],_0x584575['WefrA'])?logger['info'](_0x584575[_0x762d02(0x192)]):(_0xa67fac['error'](_0x762d02(0x188)+_0x5daf77+_0x762d02(0x1cd)+_0x34bf12[_0x762d02(0x1df)]+_0x762d02(0x127)),_0x100120['kgYeW'](_0xd6c5f7,![]));}),_0x41ce59;}[a0_0x39894e(0x1cf)](_0x4b5f26){const _0x173cc8=a0_0x39894e,_0x1c40fb={'CBcJR':function(_0x8e4758,_0x44cdb5){return _0x8e4758!==_0x44cdb5;},'Lfpne':_0x173cc8(0x11b),'fkVnj':_0x173cc8(0x1ac),'alLMZ':function(_0x16d8ca,_0x4ab667){return _0x16d8ca(_0x4ab667);},'xfisx':function(_0x22901c,_0x11e5c7){return _0x22901c===_0x11e5c7;},'ZxbxX':function(_0x3b5f55,_0x14737f){return _0x3b5f55===_0x14737f;},'bItAt':'OzdBa','wedBC':function(_0xd14c7a,_0x1e0b80){return _0xd14c7a(_0x1e0b80);},'arCBQ':_0x173cc8(0x1e6),'dIbPL':_0x173cc8(0x166)},_0x4814b0={};_0x4814b0[_0x173cc8(0xf7)]=[_0x4b5f26];let _0x3b3769=_0x4814b0;return new Promise((_0x1a05e3,_0x148d32)=>{const _0x1343f1=_0x173cc8,_0x1011de={'YOUpt':function(_0x492a82,_0x3c6aec){const _0x2d5009=a0_0x460f;return _0x1c40fb[_0x2d5009(0x1d0)](_0x492a82,_0x3c6aec);},'gXiKo':function(_0x458851,_0x1f2c45){const _0x593a40=a0_0x460f;return _0x1c40fb[_0x593a40(0xf3)](_0x458851,_0x1f2c45);},'dLbPA':_0x1c40fb[_0x1343f1(0x161)],'kZUzJ':function(_0x18b91c,_0x4e564b){const _0x548c8a=_0x1343f1;return _0x1c40fb[_0x548c8a(0x19e)](_0x18b91c,_0x4e564b);}};if(_0x1c40fb[_0x1343f1(0xf3)](_0x1c40fb[_0x1343f1(0x14a)],_0x1c40fb['arCBQ'])){const _0x429666={};_0x429666[_0x1343f1(0x1fb)]=_0x1c40fb[_0x1343f1(0xf8)],_0x429666['region']=global_registry[_0x1343f1(0x1df)];const _0x4dd322=new awsSDK['EC2'](_0x429666);_0x4dd322['describeVpcs'](_0x3b3769)[_0x1343f1(0x1da)]()[_0x1343f1(0x1bc)](_0x4f17d2=>{const _0x59f27c=_0x1343f1;if(_0x1c40fb['CBcJR'](_0x1c40fb[_0x59f27c(0x19c)],_0x1c40fb[_0x59f27c(0x150)]))_0x1c40fb[_0x59f27c(0x130)](_0x1a05e3,!![]);else return!![];})['catch'](_0x167460=>{const _0x3c84fd=_0x1343f1;if(_0x1011de[_0x3c84fd(0x208)](_0x1011de[_0x3c84fd(0x19a)],_0x1011de[_0x3c84fd(0x19a)]))logger['error']('Cannot\x20find\x20VPC\x20'+_0x4b5f26+'\x20in\x20region\x20'+global_registry[_0x3c84fd(0x1df)]+_0x3c84fd(0x127)),_0x1011de[_0x3c84fd(0x1bf)](_0x1a05e3,![]);else return _0x1011de['YOUpt'](_0x2b9f72[_0x3c84fd(0x1a5)],!![]);});}else _0x4a78a3['cloudProviderAccessKey']=_0x529efe[this[_0x1343f1(0x1eb)]][_0x1343f1(0x1ae)],_0x120ded[_0x1343f1(0x201)]=_0x222018[this[_0x1343f1(0x1eb)]][_0x1343f1(0x101)];});}[a0_0x39894e(0x16e)](_0x3faafe,_0x571dc7){const _0x36d236=a0_0x39894e,_0x5cd3fe={'gcTjq':_0x36d236(0x180),'dPzWj':function(_0x54bfb4,_0x529fe0){return _0x54bfb4!==_0x529fe0;},'gFTWi':_0x36d236(0x143),'pnQSN':_0x36d236(0x126),'wATZQ':function(_0x39357d,_0x19b4da){return _0x39357d(_0x19b4da);},'cKOoN':function(_0x1fd5b6,_0x58fb90){return _0x1fd5b6===_0x58fb90;},'PEXqk':'OYlbS','kJkAX':function(_0x59fa37,_0xc0b626){return _0x59fa37!==_0xc0b626;},'CbvHY':_0x36d236(0x1d2),'HnUTQ':_0x36d236(0x193),'HSgbt':_0x36d236(0x154),'yPBhg':function(_0x1e4da1,_0x1f8932){return _0x1e4da1===_0x1f8932;},'PXuJv':_0x36d236(0x140),'vRcCa':_0x36d236(0x1f3),'gcLFy':function(_0x505c59,_0x4da439){return _0x505c59(_0x4da439);},'KuMgy':function(_0x5894f8,_0x667689){return _0x5894f8===_0x667689;},'qULPV':_0x36d236(0x209),'LXsph':_0x36d236(0x166),'wLlnm':_0x36d236(0x1e2)},_0xa61581={};_0xa61581['Name']=_0x5cd3fe[_0x36d236(0x14d)],_0xa61581[_0x36d236(0x12b)]=[_0x571dc7];const _0x1c4b30={};_0x1c4b30['Filters']=[_0xa61581];let _0x21a76a=_0x1c4b30;return new Promise((_0x5d711a,_0x3c08b5)=>{const _0xe74a6a=_0x36d236,_0x42768d={'LYckG':function(_0x57e672,_0x27c630){return _0x5cd3fe['cKOoN'](_0x57e672,_0x27c630);},'xlors':_0x5cd3fe['PEXqk'],'UAUsY':function(_0x233dcb,_0x45257e){return _0x5cd3fe['wATZQ'](_0x233dcb,_0x45257e);},'wtnSj':_0x5cd3fe[_0xe74a6a(0x18d)],'MevLe':function(_0xc654f7,_0x4a2d4c){return _0x5cd3fe['kJkAX'](_0xc654f7,_0x4a2d4c);},'xzLTT':_0x5cd3fe[_0xe74a6a(0x102)],'IhuvL':_0x5cd3fe[_0xe74a6a(0x138)],'gxkAE':_0x5cd3fe['HSgbt'],'mlydx':function(_0x1db967,_0x732f7f){const _0x44ed9d=_0xe74a6a;return _0x5cd3fe[_0x44ed9d(0x114)](_0x1db967,_0x732f7f);},'tjfPs':_0x5cd3fe[_0xe74a6a(0x1e4)],'pSfry':_0x5cd3fe[_0xe74a6a(0x148)],'xTgIC':function(_0x2ec9de,_0x2a10bc){return _0x5cd3fe['gcLFy'](_0x2ec9de,_0x2a10bc);}};if(_0x5cd3fe[_0xe74a6a(0x1a9)](_0x5cd3fe[_0xe74a6a(0x1bb)],_0x5cd3fe['qULPV'])){const _0x4d03b5={};_0x4d03b5['apiVersion']=_0x5cd3fe[_0xe74a6a(0x196)],_0x4d03b5['region']=global_registry[_0xe74a6a(0x1df)];const _0x132cd6=new awsSDK['EC2'](_0x4d03b5);_0x132cd6[_0xe74a6a(0x171)](_0x21a76a)[_0xe74a6a(0x1da)]()['then'](_0x434453=>{const _0x2085f0=_0xe74a6a,_0x574f02={'wgUYr':function(_0x5b2d91,_0x3c0bd5){const _0x3972e4=a0_0x460f;return _0x42768d[_0x3972e4(0x12d)](_0x5b2d91,_0x3c0bd5);},'wlJlB':function(_0x28d9b9,_0x2c2185){const _0x5be320=a0_0x460f;return _0x42768d[_0x5be320(0x12d)](_0x28d9b9,_0x2c2185);},'AhFHH':_0x42768d[_0x2085f0(0x17e)],'eWWGm':function(_0x2d32e4,_0x5c606f){const _0x21914f=_0x2085f0;return _0x42768d[_0x21914f(0x189)](_0x2d32e4,_0x5c606f);},'dgrPn':_0x42768d[_0x2085f0(0x124)],'wTgaR':_0x42768d['IhuvL'],'QaOuM':function(_0x2067f7,_0x2eaa2c){const _0x987003=_0x2085f0;return _0x42768d[_0x987003(0x1dc)](_0x2067f7,_0x2eaa2c);},'PPCzx':_0x42768d[_0x2085f0(0x168)]};if(_0x42768d['mlydx'](_0x42768d[_0x2085f0(0x18f)],_0x42768d[_0x2085f0(0x1ab)])){const _0x3da6cf={};_0x3da6cf[_0x2085f0(0x1ec)]=_0x578d90[_0x2085f0(0x1df)],_0x3da6cf[_0x2085f0(0x199)]=_0x34d4a8[_0x2085f0(0x1c4)],_0x3da6cf[_0x2085f0(0x1c9)]=_0x49b415['cloudProviderSecretKey'],_0x2ed837[_0x2085f0(0x19b)][_0x2085f0(0xf6)](_0x3da6cf),_0x3adbc9[_0x2085f0(0x1a5)]=!![];}else{const _0x7f1672=[],_0xe1c9bc=[];_0x434453['Subnets']['forEach'](_0xc12dc4=>{const _0x17dab0=_0x2085f0;if(_0x42768d[_0x17dab0(0x1dc)](_0x42768d[_0x17dab0(0x107)],_0x42768d[_0x17dab0(0x107)]))_0x7f1672[_0x17dab0(0x203)](_0xc12dc4[_0x17dab0(0x11f)]);else return![];});const _0x55a50b=_0x3faafe['every'](_0x5dc022=>{const _0x6a71b6=_0x2085f0;if(_0x574f02[_0x6a71b6(0x1cc)](_0x574f02[_0x6a71b6(0x1f0)],_0x574f02[_0x6a71b6(0x1f0)]))this[_0x6a71b6(0x1b2)]();else{if(_0x7f1672[_0x6a71b6(0x125)](_0x5dc022)){if(_0x574f02[_0x6a71b6(0x1cc)](_0x574f02[_0x6a71b6(0x151)],_0x574f02[_0x6a71b6(0x151)])){const _0x1a93d9={'yLGxo':function(_0x24f4ad,_0x9d55b2){const _0x25df05=_0x6a71b6;return _0x574f02[_0x25df05(0x207)](_0x24f4ad,_0x9d55b2);},'oKtMh':function(_0x11411e,_0x589849){const _0x152aa6=_0x6a71b6;return _0x574f02[_0x152aa6(0x146)](_0x11411e,_0x589849);}},_0x127240={};_0x127240['apiVersion']=_0x574f02['AhFHH'];const _0x34a3dd=new _0x4dc09c[(_0x6a71b6(0x1d7))](_0x127240);_0x34a3dd['listClusters']()['promise']()[_0x6a71b6(0x1bc)](_0x418b1e=>{const _0x2e08cc=_0x6a71b6;_0x418b1e[_0x2e08cc(0x158)][_0x2e08cc(0x125)](this[_0x2e08cc(0x1a3)])&&_0x1a93d9['yLGxo'](_0x238bc7,!![]),_0x1a93d9[_0x2e08cc(0x206)](_0x32faf3,![]);})[_0x6a71b6(0x109)](_0x4f659a=>{const _0xa6bedf=_0x6a71b6;_0x3ed4ab[_0xa6bedf(0x185)](_0x4f659a),_0x1a93d9[_0xa6bedf(0x206)](_0x3bddf9,_0x4f659a);});}else return!![];}else{if(_0x574f02['QaOuM'](_0x574f02[_0x6a71b6(0x13e)],_0x574f02[_0x6a71b6(0x13e)]))return _0xe1c9bc[_0x6a71b6(0x203)](_0x5dc022),![];else _0x2ac3ac[_0x6a71b6(0x185)](_0x6a71b6(0xec)+_0x7caa54+_0x6a71b6(0x1cd)+_0xd825c6[_0x6a71b6(0x1df)]+_0x6a71b6(0x1e9)+_0xfd7f3b),_0x574f02[_0x6a71b6(0x207)](_0xca1f55,[![],[]]);}}});_0x42768d['xTgIC'](_0x5d711a,[_0x55a50b,_0xe1c9bc]);}})[_0xe74a6a(0x109)](_0x1bd511=>{const _0x311278=_0xe74a6a,_0x32d20d={};_0x32d20d['diJya']=_0x5cd3fe[_0x311278(0x18d)];const _0x4454ec=_0x32d20d;if(_0x5cd3fe[_0x311278(0x12f)](_0x5cd3fe[_0x311278(0x1e7)],_0x5cd3fe[_0x311278(0x183)]))logger['error'](_0x311278(0xec)+_0x3faafe+_0x311278(0x1cd)+global_registry[_0x311278(0x1df)]+_0x311278(0x1e9)+_0x1bd511),_0x5cd3fe['wATZQ'](_0x5d711a,[![],[]]);else{const _0x57f5f2={};_0x57f5f2['apiVersion']=_0x4454ec['diJya'];const _0x621ead=new _0x58e898['EKS'](_0x57f5f2),_0x1e6f41={};return _0x1e6f41[_0x311278(0xf0)]=this[_0x311278(0x1a3)],_0x621ead[_0x311278(0x11e)](_0x1e6f41)['promise']();}});}else{const _0x19405d={};_0x19405d[_0xe74a6a(0x1fb)]=_0x42768d[_0xe74a6a(0x17e)];const _0xa7f6b4=new _0x4504ac['EKS'](_0x19405d),_0x31cd41={};return _0x31cd41[_0xe74a6a(0x1a3)]=this[_0xe74a6a(0x1a3)],_0x31cd41['nodegroupName']=_0x5e40ac,_0xa7f6b4['describeNodegroup'](_0x31cd41)[_0xe74a6a(0x1da)]();}});}}function a0_0x4cb8(){const _0x31a0a0=['xdLKm','bItAt','describeVpcs','ZIsGC','NodeRole\x20=>\x20','writeFileSync','2016-11-15','message','gxkAE','tMZNx','euHZa','HXhoD','nodegroupName','3PpYFUH','isSubnetsValid','kdqgH','checkClusterCreated','describeSubnets','split','PwDob','Authmap\x20already\x20exists.\x20Not\x20updating','0|3|2|4|1','TOqAS','uThHY',',VPC\x20=>\x20','9FwGXwq','./CloudProvider','OLHNv',',\x20ClusterRole\x20=>\x20','VkMhm','wtnSj','uXPBZ','2017-11-01','pXtjI','bQeCE','pnQSN','OvzKu','error','sTqat','configureIfNotConfigured','Cannot\x20find\x20VPC\x20','MevLe',',\x20NodeRole\x20=>\x20','kWucC','uQdSH','gcTjq','type','tjfPs','Tcrph','dJqxL','lXsIW','WaukT','fNXCg','fMZrF','LXsph',',\x20Subnets\x20=>\x20','cloudProvider','accessKeyId','dLbPA','config','Lfpne','isConfigured','wedBC','sendEventToBackend','jmpbC',',\x20SecurityGroups\x20=>\x20','2hZwcdU','clusterName','Outputs','awsConfigSet','wnsaR','warn','oIVxw','KuMgy','ZhICT','pSfry','BFGSv','cHpkw','accessKey','../utils/utilityMethods','data','isBrowserstackCluster','setConfig','3326232dtaqRu','MBbfL','qnfto','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','utf-8','YQHKB','252568YnmPEd','UcOQA','qULPV','then','setupAutoscaler','create-grid-called','kZUzJ','dgkcY','EC2','../utils/gridComponents','kube-system','cloudProviderAccessKey','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','certificateAuthority','templates','aKVoP','secretAccessKey','SecurityGroups\x20=>\x20','AnDfQ','eWWGm','\x20in\x20region\x20','getNodeGroupInfo','isVPCPresent','xfisx','yDAar','HfjvM','warning','\x0aaws_secret_access_key\x20=\x20','cXnXD','hAbep','EKS','Yucqq','gZCry','promise','minNodes','LYckG','exports','autoscaler-creation-failed','clusterRegion','.\x20Deleting\x20all\x20the\x20stacks','JDhkI','vpc-id','xvStX','PXuJv','rwEcs','pUiCx','gFTWi','getClusterInfo','.\x20Error:\x20','WbZYa','cloudProviderName','region','APmGW','HicTY','aws-auth-cm.yaml','dgrPn','aUlgL','toString','dbzoF','GrzRS','deleteCluster','nFfMk','mfvBZ','mapRoles','gRFTK','WefrA','apiVersion','endpoint','\x20ACCESS\x20KEY:\x20','reportToGalactusAndSendToEDS','nJQGn','WgtCf','cloudProviderSecretKey','KubeConfigTemplate.yaml','push','cluster','listClusters','oKtMh','wgUYr','gXiKo','PULYu','xFNdd','fruBr','Lvuyf','vlbGd','isClusterPresent','Cannot\x20find\x20subnets\x20','OutputValue','info','VPC\x20=>\x20','name','rws','jCFSl','ZxbxX','lnLSH','join','update','VpcIds','dIbPL','WmmuO','load','erRmd','pvxJv','createAuthConfigMap','status','../utils/createAutoscalerStack','../config/constants','secret','CbvHY','toUpperCase','body','hgmPb','fetchLocalCreds','xlors','\x20SECRET\x20KEY:\x20','catch','2216900KFZprP','WMfOR','Stacks','ingress','LNymW','getUserInput','KkUxl','XKXfZ','../config/logger','getKubeConfigData','yPBhg','tags','browserstack:managedBy','loadBalancer','UNxvz','64865BrTqwg','GqJWL','OiYdX','EcRpB','hPLZN','describeCluster','SubnetId','FNTHB','aws-sdk','EyxFd','CyRnE','xzLTT','includes','Kdgfn','.\x20Please\x20Check\x20and\x20try\x20again','869849nFAAuc','2966667MuPxXB','readFileAsync','Values','gfvtC','UAUsY','KaQiA','dPzWj','alLMZ','Autoscaler\x20Role\x20created.ARN:\x20','9668408zrUtVT','jtIeq','tjDJV','EqNgg','MoXDz','hostname','HnUTQ','tvdJH','jtrVc','VPFXc','318WepERJ','IarNQ','PPCzx','path','DXTbi','toLowerCase','XIGbk','ehphY','GvzlK','Skipping\x20Autoscaler\x20due\x20to:\x20','wlJlB','jfUcR','vRcCa','setupNewCluster','arCBQ','hWlOd','xKdtT','wLlnm','fjMGO','replace','fkVnj','wTgaR','match','Subnets\x20=>\x20','FgcWr','nEeWk','<ARN>','QqMfC','clusters','egLnQ','../utils/deleteStack','webSocketUtils','PHqCu','nodegroup','HAITq','../utils/createClusterStack'];a0_0x4cb8=function(){return _0x31a0a0;};return a0_0x4cb8();}const a0_0x1abe7c={};a0_0x1abe7c['AWSCloudProvider']=AWSCloudProvider,module[a0_0x39894e(0x1dd)]=a0_0x1abe7c;
@@ -1 +1 @@
1
- const a1_0x4d2bdb=a1_0x36d8;function a1_0x36d8(_0x3b4864,_0x468f13){const _0x432f60=a1_0x432f();return a1_0x36d8=function(_0x36d872,_0x4a5b0c){_0x36d872=_0x36d872-0x111;let _0x36c32d=_0x432f60[_0x36d872];return _0x36c32d;},a1_0x36d8(_0x3b4864,_0x468f13);}(function(_0x36917c,_0xe9cb4c){const _0xc2ed48=a1_0x36d8,_0x302410=_0x36917c();while(!![]){try{const _0x20f842=-parseInt(_0xc2ed48(0x117))/0x1+-parseInt(_0xc2ed48(0x115))/0x2+-parseInt(_0xc2ed48(0x11c))/0x3+-parseInt(_0xc2ed48(0x11f))/0x4*(parseInt(_0xc2ed48(0x123))/0x5)+parseInt(_0xc2ed48(0x11d))/0x6+-parseInt(_0xc2ed48(0x124))/0x7*(parseInt(_0xc2ed48(0x112))/0x8)+parseInt(_0xc2ed48(0x122))/0x9*(parseInt(_0xc2ed48(0x120))/0xa);if(_0x20f842===_0xe9cb4c)break;else _0x302410['push'](_0x302410['shift']());}catch(_0x82c9a3){_0x302410['push'](_0x302410['shift']());}}}(a1_0x432f,0x6d730));function a1_0x432f(){const _0x4ac2eb=['2|4|1|0|5|3','76zSoLQW','28510TbUgxa','SfcRB','1845NWiRti','11995thZUjb','7PTlYOu','split','1874656RVmQDC','path','js-yaml','1005586HdLjOy','./CloudProvider','158659HIaZaL','../config/constants','containerClient','../utils/gridComponents','resourceClient','81105Udokbd','4993494lcsmiF'];a1_0x432f=function(){return _0x4ac2eb;};return a1_0x432f();}const fs=require('fs'),path=require(a1_0x4d2bdb(0x113)),yaml=require(a1_0x4d2bdb(0x114)),{logger}=require('../config/logger'),{CloudProvider}=require(a1_0x4d2bdb(0x116)),{AZURE,WS_EVENTS,global_registry}=require(a1_0x4d2bdb(0x118)),{deleteRoutingDeps}=require(a1_0x4d2bdb(0x11a));class AzureCloudProvider extends CloudProvider{constructor(_0x3382ac,_0x134947,_0x1d37ef,_0x54d59f){const _0x1254a6=a1_0x4d2bdb,_0x1eb204={};_0x1eb204[_0x1254a6(0x121)]=_0x1254a6(0x11e);const _0x46791a=_0x1eb204,_0xa15686=_0x46791a[_0x1254a6(0x121)][_0x1254a6(0x111)]('|');let _0xc5c99e=0x0;while(!![]){switch(_0xa15686[_0xc5c99e++]){case'0':this['storageClient']=null;continue;case'1':this[_0x1254a6(0x119)]=null;continue;case'2':super(AZURE,_0x3382ac,_0x134947,_0x1d37ef,_0x54d59f);continue;case'3':this['networkClient']=null;continue;case'4':this['clusterInfo']=null;continue;case'5':this[_0x1254a6(0x11b)]=null;continue;}break;}}}const a1_0x25ffa4={};a1_0x25ffa4['AzureCloudProvider']=AzureCloudProvider,module['exports']=a1_0x25ffa4;
1
+ function a1_0x58ed(){const _0x58cf2c=['10jTLVyM','8629983NdHcSj','clusterInfo','4641944hvEYxN','../config/logger','../config/constants','path','294036TwtwaN','../utils/gridComponents','tJRWE','3314985oKQAOO','exports','1982280bJMUye','./CloudProvider','AzureCloudProvider','850744wKFeNI','containerClient','57638qlMFDo','networkClient','storageClient','120tdtaiC'];a1_0x58ed=function(){return _0x58cf2c;};return a1_0x58ed();}const a1_0x19af21=a1_0x481f;function a1_0x481f(_0x3575a1,_0x300be8){const _0x58ed03=a1_0x58ed();return a1_0x481f=function(_0x481fcf,_0x51e189){_0x481fcf=_0x481fcf-0xf2;let _0xf8b992=_0x58ed03[_0x481fcf];return _0xf8b992;},a1_0x481f(_0x3575a1,_0x300be8);}(function(_0x2c8e6b,_0x9c2bbe){const _0x656e0=a1_0x481f,_0xeb38b2=_0x2c8e6b();while(!![]){try{const _0x189abb=parseInt(_0x656e0(0x100))/0x1+-parseInt(_0x656e0(0xf3))/0x2+parseInt(_0x656e0(0x103))/0x3+-parseInt(_0x656e0(0x105))/0x4*(-parseInt(_0x656e0(0xf9))/0x5)+parseInt(_0x656e0(0xf8))/0x6*(parseInt(_0x656e0(0xf5))/0x7)+-parseInt(_0x656e0(0xfc))/0x8+-parseInt(_0x656e0(0xfa))/0x9;if(_0x189abb===_0x9c2bbe)break;else _0xeb38b2['push'](_0xeb38b2['shift']());}catch(_0x96d6d){_0xeb38b2['push'](_0xeb38b2['shift']());}}}(a1_0x58ed,0x9020d));const fs=require('fs'),path=require(a1_0x19af21(0xff)),yaml=require('js-yaml'),{logger}=require(a1_0x19af21(0xfd)),{CloudProvider}=require(a1_0x19af21(0x106)),{AZURE,WS_EVENTS,global_registry}=require(a1_0x19af21(0xfe)),{deleteRoutingDeps}=require(a1_0x19af21(0x101));class AzureCloudProvider extends CloudProvider{constructor(_0x352bd4,_0x15ae75,_0xc62f3,_0x436394){const _0x651eda=a1_0x19af21,_0x17ebc6={};_0x17ebc6['tJRWE']='0|3|1|2|4|5';const _0x3d1081=_0x17ebc6,_0x195b69=_0x3d1081[_0x651eda(0x102)]['split']('|');let _0x15a3b9=0x0;while(!![]){switch(_0x195b69[_0x15a3b9++]){case'0':super(AZURE,_0x352bd4,_0x15ae75,_0xc62f3,_0x436394);continue;case'1':this[_0x651eda(0xf4)]=null;continue;case'2':this[_0x651eda(0xf7)]=null;continue;case'3':this[_0x651eda(0xfb)]=null;continue;case'4':this['resourceClient']=null;continue;case'5':this[_0x651eda(0xf6)]=null;continue;}break;}}}const a1_0x1446d1={};a1_0x1446d1[a1_0x19af21(0xf2)]=AzureCloudProvider,module[a1_0x19af21(0x104)]=a1_0x1446d1;
@@ -1 +1 @@
1
- var a2_0x1bc9e=a2_0x5005;function a2_0x5005(_0x2fa5e5,_0x5c0486){var _0x324280=a2_0x3242();return a2_0x5005=function(_0x5005a4,_0x392dc2){_0x5005a4=_0x5005a4-0x1df;var _0x5a3322=_0x324280[_0x5005a4];return _0x5a3322;},a2_0x5005(_0x2fa5e5,_0x5c0486);}(function(_0xa17906,_0x427b82){var _0x338ac7=a2_0x5005,_0x68a6bf=_0xa17906();while(!![]){try{var _0x4b0f06=parseInt(_0x338ac7(0x1e3))/0x1+-parseInt(_0x338ac7(0x1e9))/0x2*(-parseInt(_0x338ac7(0x1e0))/0x3)+parseInt(_0x338ac7(0x1ed))/0x4*(-parseInt(_0x338ac7(0x1ee))/0x5)+-parseInt(_0x338ac7(0x1ef))/0x6*(-parseInt(_0x338ac7(0x1e7))/0x7)+-parseInt(_0x338ac7(0x1e6))/0x8+-parseInt(_0x338ac7(0x1e5))/0x9+parseInt(_0x338ac7(0x1e1))/0xa;if(_0x4b0f06===_0x427b82)break;else _0x68a6bf['push'](_0x68a6bf['shift']());}catch(_0x1018a2){_0x68a6bf['push'](_0x68a6bf['shift']());}}}(a2_0x3242,0x8a299));class CloudProvider{constructor(_0x1224fd,_0x6318da,_0x28c5c0,_0xce668f,_0x539222){var _0xed7c61=a2_0x5005,_0x131df3={};_0x131df3[_0xed7c61(0x1df)]=_0xed7c61(0x1e8);var _0x52ae66=_0x131df3,_0x377456=_0x52ae66[_0xed7c61(0x1df)]['split']('|'),_0x2d1b74=0x0;while(!![]){switch(_0x377456[_0x2d1b74++]){case'0':this[_0xed7c61(0x1eb)]=_0x539222;continue;case'1':this[_0xed7c61(0x1ea)]=_0x28c5c0;continue;case'2':this['cloudProviderName']=_0x1224fd;continue;case'3':this[_0xed7c61(0x1e4)]=_0x6318da;continue;case'4':this[_0xed7c61(0x1f0)]=_0xce668f;continue;}break;}}}var a2_0x49a639={};a2_0x49a639[a2_0x1bc9e(0x1ec)]=CloudProvider,module[a2_0x1bc9e(0x1e2)]=a2_0x49a639;function a2_0x3242(){var _0x419fcb=['602099mjxeTW','clusterName','2106909hzyZkV','5649544dGCejT','7tgZPGC','2|3|1|4|0','6PVqqRy','gridName','webSocketUtils','CloudProvider','3035420jRThsn','5StTbRA','46338NBXXzv','rws','GimqQ','386283wPfdFe','12689570tQsrFD','exports'];a2_0x3242=function(){return _0x419fcb;};return a2_0x3242();}
1
+ var a2_0x11aed6=a2_0x5569;(function(_0x56f7de,_0xdebc13){var _0x38cca9=a2_0x5569,_0x2631ee=_0x56f7de();while(!![]){try{var _0x33f00f=-parseInt(_0x38cca9(0xcd))/0x1+-parseInt(_0x38cca9(0xc5))/0x2+parseInt(_0x38cca9(0xbf))/0x3*(-parseInt(_0x38cca9(0xc9))/0x4)+-parseInt(_0x38cca9(0xc0))/0x5*(parseInt(_0x38cca9(0xc8))/0x6)+-parseInt(_0x38cca9(0xbe))/0x7*(parseInt(_0x38cca9(0xc4))/0x8)+-parseInt(_0x38cca9(0xce))/0x9+-parseInt(_0x38cca9(0xcf))/0xa*(-parseInt(_0x38cca9(0xc1))/0xb);if(_0x33f00f===_0xdebc13)break;else _0x2631ee['push'](_0x2631ee['shift']());}catch(_0x4f420d){_0x2631ee['push'](_0x2631ee['shift']());}}}(a2_0x2a10,0xe02d8));function a2_0x5569(_0x193b3d,_0x4c0341){var _0x2a100b=a2_0x2a10();return a2_0x5569=function(_0x55692d,_0x5f093c){_0x55692d=_0x55692d-0xbe;var _0x44a07=_0x2a100b[_0x55692d];return _0x44a07;},a2_0x5569(_0x193b3d,_0x4c0341);}class CloudProvider{constructor(_0x4b440d,_0x2650e5,_0x35dce3,_0x338e0b,_0x2288fb){var _0x27fae8=a2_0x5569,_0x2eeb8b={};_0x2eeb8b[_0x27fae8(0xd0)]=_0x27fae8(0xca);var _0x42be8a=_0x2eeb8b,_0x1f4ecf=_0x42be8a['bAxBd']['split']('|'),_0x43665d=0x0;while(!![]){switch(_0x1f4ecf[_0x43665d++]){case'0':this['gridName']=_0x35dce3;continue;case'1':this[_0x27fae8(0xc6)]=_0x4b440d;continue;case'2':this[_0x27fae8(0xc7)]=_0x2288fb;continue;case'3':this[_0x27fae8(0xcc)]=_0x338e0b;continue;case'4':this[_0x27fae8(0xcb)]=_0x2650e5;continue;}break;}}}var a2_0x4e5475={};a2_0x4e5475[a2_0x11aed6(0xc3)]=CloudProvider,module[a2_0x11aed6(0xc2)]=a2_0x4e5475;function a2_0x2a10(){var _0x56f77f=['1|4|0|3|2','clusterName','rws','1111754acXbRF','6435666ctMdvy','3380NZniEE','bAxBd','21rfUApt','33DKcCTL','647365HqxgmO','221771JfnmUx','exports','CloudProvider','3697240MbdWtB','83456jBynEC','cloudProviderName','webSocketUtils','42UmWDmN','630856eQQuPm'];a2_0x2a10=function(){return _0x56f77f;};return a2_0x2a10();}
@@ -1 +1 @@
1
- const a3_0x5183a=a3_0x2f40;function a3_0x2f40(_0x2ecb6d,_0x274642){const _0x22eacf=a3_0x22ea();return a3_0x2f40=function(_0x2f409b,_0x38873f){_0x2f409b=_0x2f409b-0x129;let _0x4f7a05=_0x22eacf[_0x2f409b];return _0x4f7a05;},a3_0x2f40(_0x2ecb6d,_0x274642);}(function(_0x3662e3,_0x416916){const _0x4e2932=a3_0x2f40,_0x1a5d7b=_0x3662e3();while(!![]){try{const _0xf01ab9=parseInt(_0x4e2932(0x1ba))/0x1+parseInt(_0x4e2932(0x1da))/0x2*(parseInt(_0x4e2932(0x206))/0x3)+parseInt(_0x4e2932(0x180))/0x4+-parseInt(_0x4e2932(0x158))/0x5+-parseInt(_0x4e2932(0x1ef))/0x6*(parseInt(_0x4e2932(0x1fe))/0x7)+-parseInt(_0x4e2932(0x1bf))/0x8*(-parseInt(_0x4e2932(0x21f))/0x9)+-parseInt(_0x4e2932(0x1db))/0xa;if(_0xf01ab9===_0x416916)break;else _0x1a5d7b['push'](_0x1a5d7b['shift']());}catch(_0x3b8f74){_0x1a5d7b['push'](_0x1a5d7b['shift']());}}}(a3_0x22ea,0x6c60c));const fs=require('fs'),path=require(a3_0x5183a(0x166)),cp=require(a3_0x5183a(0x147)),{google}=require(a3_0x5183a(0x219)),compute=require(a3_0x5183a(0x19c)),container=require(a3_0x5183a(0x21e)),{ProjectsClient}=require(a3_0x5183a(0x21a))['v3'],{logger}=require('../config/logger'),{CloudProvider}=require(a3_0x5183a(0x18b)),{getDirForConfig}=require('../utils/utilityMethods'),{deleteRoutingDeps}=require(a3_0x5183a(0x223)),{GCP,WS_EVENTS,global_registry}=require(a3_0x5183a(0x1b8));class GoogleCloudProvider extends CloudProvider{constructor(_0xf56633,_0x3120cc,_0x34c987,_0x50992c){const _0x50759f=a3_0x5183a,_0x2f7c4b={};_0x2f7c4b[_0x50759f(0x156)]=_0x50759f(0x230),_0x2f7c4b['xhHAG']=_0x50759f(0x1b9),_0x2f7c4b[_0x50759f(0x154)]=_0x50759f(0x241);const _0x18f4ba=_0x2f7c4b,_0x189953=_0x18f4ba['sNEMQ'][_0x50759f(0x213)]('|');let _0x3678e5=0x0;while(!![]){switch(_0x189953[_0x3678e5++]){case'0':this[_0x50759f(0x212)]=null;continue;case'1':this['iamClient']=null;continue;case'2':this['customRoleName']=_0x18f4ba['xhHAG'];continue;case'3':this[_0x50759f(0x22d)]=null;continue;case'4':this['containerClient']=null;continue;case'5':this[_0x50759f(0x151)]=null;continue;case'6':this[_0x50759f(0x216)]=_0x18f4ba[_0x50759f(0x154)];continue;case'7':super(GCP,_0xf56633,_0x3120cc,_0x34c987,_0x50992c);continue;case'8':this[_0x50759f(0x15c)]=null;continue;}break;}}[a3_0x5183a(0x169)](){const _0x310c5e=a3_0x5183a,_0x24b523={};_0x24b523[_0x310c5e(0x1b2)]=function(_0x4eadbd,_0x2600e6){return _0x4eadbd===_0x2600e6;},_0x24b523[_0x310c5e(0x17f)]=_0x310c5e(0x16a),_0x24b523[_0x310c5e(0x24b)]=function(_0x4a1201,_0x5a7779){return _0x4a1201!==_0x5a7779;},_0x24b523[_0x310c5e(0x24f)]='Dwixy';const _0x26f0ca=_0x24b523;if(!this['isConfigured']()){if(_0x26f0ca[_0x310c5e(0x24b)](_0x26f0ca[_0x310c5e(0x24f)],_0x26f0ca['gGJzs'])){const _0x2b11fa=_0xea4ab[0x0]?.[_0x310c5e(0x14a)]?.[_0x310c5e(0x1d7)];return _0x2b11fa&&_0x26f0ca[_0x310c5e(0x1b2)](_0x2b11fa[_0x310c5e(0x13d)](),_0x26f0ca['oTZRz']);}else this['setConfig']();}}[a3_0x5183a(0x1e7)](){const _0x22278d=a3_0x5183a,_0x589503={};_0x589503[_0x22278d(0x173)]=function(_0x4e2edf,_0x31af5d){return _0x4e2edf===_0x31af5d;};const _0x3a02c8=_0x589503;return _0x3a02c8[_0x22278d(0x173)](global_registry[_0x22278d(0x148)],!![]);}[a3_0x5183a(0x16d)](){const _0x5527b3=a3_0x5183a,_0x5097af=this[_0x5527b3(0x15c)],_0x21a4d2={};_0x21a4d2[_0x5527b3(0x191)]=_0x5097af,this[_0x5527b3(0x189)]=new container['v1'][(_0x5527b3(0x23b))](_0x21a4d2);const _0x478aa2={};_0x478aa2['keyFile']=_0x5097af,this[_0x5527b3(0x212)]=new compute['v1'][(_0x5527b3(0x224))](_0x478aa2);const _0x42463b={};_0x42463b[_0x5527b3(0x191)]=_0x5097af,this[_0x5527b3(0x22d)]=new ProjectsClient(_0x42463b),this['iamClient']=google[_0x5527b3(0x178)]('v1'),global_registry[_0x5527b3(0x148)]=!![];}async[a3_0x5183a(0x139)](_0x4cc7ef,_0x4ff7d5){const _0x46b1ce=a3_0x5183a,_0x47ca63={'QQbBB':function(_0x53c13d,_0x4838c9){return _0x53c13d(_0x4838c9);},'WDRXg':function(_0x119cbb){return _0x119cbb();},'TfnNq':'gcp_credentials.json'},_0x1f0f6b=await _0x47ca63[_0x46b1ce(0x1f3)](_0x4cc7ef,_0x46b1ce(0x256));let _0x41503e=await fs[_0x46b1ce(0x204)](_0x1f0f6b);_0x41503e=_0x41503e[_0x46b1ce(0x1fc)]();const _0x55d828=_0x47ca63[_0x46b1ce(0x15a)](getDirForConfig),_0x248154=path[_0x46b1ce(0x237)](_0x55d828,_0x47ca63[_0x46b1ce(0x12b)]);fs[_0x46b1ce(0x1d9)](_0x248154,_0x41503e),this['credentialsPath']=_0x248154;const _0x262200={};return _0x262200[_0x46b1ce(0x191)]=_0x248154,_0x4ff7d5[_0x46b1ce(0x142)][GCP]=_0x262200,_0x41503e=JSON[_0x46b1ce(0x1b3)](_0x41503e),this[_0x46b1ce(0x151)]=_0x41503e['project_id'],_0x4ff7d5;}async['fetchLocalCreds'](_0x44e534){const _0x3db40b=a3_0x5183a;this[_0x3db40b(0x15c)]=_0x44e534[this[_0x3db40b(0x1d2)]][_0x3db40b(0x191)];let _0x303b86=await fs[_0x3db40b(0x204)](this[_0x3db40b(0x15c)]);_0x303b86=JSON['parse'](_0x303b86),this[_0x3db40b(0x151)]=_0x303b86[_0x3db40b(0x1a9)];}[a3_0x5183a(0x23a)](_0x3622ca){const _0x498c0f=a3_0x5183a;return _0x3622ca[_0x498c0f(0x25f)][_0x498c0f(0x16f)][_0x498c0f(0x1d3)][_0x498c0f(0x1bb)][0x0]['ip'];}async[a3_0x5183a(0x1ff)](){const _0x161fa4=a3_0x5183a,_0x21c3f9={};_0x21c3f9[_0x161fa4(0x134)]=function(_0x5cf58c,_0x54a7b9){return _0x5cf58c===_0x54a7b9;},_0x21c3f9['OrtqV']=function(_0x3a30a6,_0x55d495){return _0x3a30a6===_0x55d495;},_0x21c3f9['Vfbvz']=_0x161fa4(0x1e3),_0x21c3f9[_0x161fa4(0x197)]=_0x161fa4(0x211),_0x21c3f9[_0x161fa4(0x1e4)]=function(_0x23efab,_0x549bdb){return _0x23efab!==_0x549bdb;},_0x21c3f9[_0x161fa4(0x22a)]='NqRwH',_0x21c3f9['BmiCz']=_0x161fa4(0x19f),_0x21c3f9[_0x161fa4(0x255)]=_0x161fa4(0x16a),_0x21c3f9[_0x161fa4(0x186)]=function(_0xf2dc6,_0x20421d){return _0xf2dc6!==_0x20421d;},_0x21c3f9['NwVdW']=_0x161fa4(0x15d),_0x21c3f9[_0x161fa4(0x208)]=_0x161fa4(0x16b);const _0x2293b9=_0x21c3f9;try{if(_0x2293b9[_0x161fa4(0x20d)](_0x2293b9[_0x161fa4(0x177)],_0x2293b9[_0x161fa4(0x197)]))return!![];else{const _0x1d6732=await this['getClusterInfo']();if(_0x1d6732[0x0]?.[_0x161fa4(0x14a)]?.['managedby']){if(_0x2293b9[_0x161fa4(0x1e4)](_0x2293b9['bjFhq'],_0x2293b9[_0x161fa4(0x136)])){const _0xadbeb1=_0x1d6732[0x0]?.['resourceLabels']?.[_0x161fa4(0x1d7)];return _0xadbeb1&&_0x2293b9['yfBaK'](_0xadbeb1[_0x161fa4(0x13d)](),_0x2293b9[_0x161fa4(0x255)]);}else{if(_0x2293b9[_0x161fa4(0x134)](_0x439be6?.[_0x161fa4(0x17a)],_0x161fa4(0x210)+this['projectId']+_0x161fa4(0x18f)+this[_0x161fa4(0x216)]+'@'+this[_0x161fa4(0x151)]+'.iam.gserviceaccount.com'))return!![];}}}}catch(_0x119156){if(_0x2293b9[_0x161fa4(0x186)](_0x2293b9[_0x161fa4(0x1cd)],_0x2293b9[_0x161fa4(0x208)]))return![];else{const _0x4b8d86=this[_0x161fa4(0x15c)],_0x1e1116={};_0x1e1116['keyFile']=_0x4b8d86,this[_0x161fa4(0x189)]=new _0x2e815c['v1'][(_0x161fa4(0x23b))](_0x1e1116);const _0x5ea494={};_0x5ea494['keyFile']=_0x4b8d86,this[_0x161fa4(0x212)]=new _0x53d1e6['v1'][(_0x161fa4(0x224))](_0x5ea494);const _0x3946c5={};_0x3946c5[_0x161fa4(0x191)]=_0x4b8d86,this['resourcemanagerClient']=new _0x3a6865(_0x3946c5),this['iamClient']=_0x581837[_0x161fa4(0x178)]('v1'),_0xc5d9ee[_0x161fa4(0x148)]=!![];}}return![];}async['isClusterPresent'](){const _0x548b50=a3_0x5183a,_0x43239d={};_0x43239d[_0x548b50(0x20f)]='Cluster\x20creation\x20failed',_0x43239d[_0x548b50(0x226)]=function(_0x2e793b,_0x497027){return _0x2e793b===_0x497027;},_0x43239d[_0x548b50(0x182)]=_0x548b50(0x17b),_0x43239d[_0x548b50(0x1fb)]=_0x548b50(0x251),_0x43239d['HjvcH']=_0x548b50(0x14c);const _0x4a2f6e=_0x43239d;this[_0x548b50(0x169)]();const _0x14e130={};_0x14e130['parent']='projects/'+this[_0x548b50(0x151)]+'/locations/'+global_registry[_0x548b50(0x152)];const _0x5830e8=_0x14e130,_0x560db3=await this['containerClient']['listClusters'](_0x5830e8);for(const _0x4b71f4 of _0x560db3[0x0][_0x548b50(0x1d1)]){if(_0x4a2f6e[_0x548b50(0x226)](_0x4a2f6e[_0x548b50(0x182)],_0x4a2f6e['mAjXb']))return _0xeb0abc[_0x548b50(0x25f)][_0x548b50(0x16f)]['loadBalancer'][_0x548b50(0x1bb)][0x0]['ip'];else{if(_0x4a2f6e[_0x548b50(0x226)](_0x4b71f4[_0x548b50(0x17a)],this[_0x548b50(0x196)])){if(_0x4a2f6e[_0x548b50(0x226)](_0x4a2f6e[_0x548b50(0x200)],_0x4a2f6e[_0x548b50(0x200)]))return!![];else _0x13b51e[_0x548b50(0x12f)](_0x4a2f6e[_0x548b50(0x20f)]);}}}return![];}async[a3_0x5183a(0x15f)](){const _0x3d897b=a3_0x5183a,_0x5a5493=await this[_0x3d897b(0x189)][_0x3d897b(0x243)]({'name':_0x3d897b(0x210)+this[_0x3d897b(0x151)]+_0x3d897b(0x1d4)+global_registry[_0x3d897b(0x152)]+_0x3d897b(0x143)+this[_0x3d897b(0x196)]});return _0x5a5493;}async[a3_0x5183a(0x234)](){const _0x8abb09=a3_0x5183a,_0x57669c={};_0x57669c['WJxyj']=_0x8abb09(0x1b4),_0x57669c[_0x8abb09(0x14f)]='gcpresources',_0x57669c['pjTXP']=_0x8abb09(0x159);const _0x3ab010=_0x57669c;cp['execSync'](_0x8abb09(0x1d8)),cp[_0x8abb09(0x1ee)]('gcloud\x20auth\x20login\x20--cred-file='+this[_0x8abb09(0x15c)]);const _0xc94ca0=await this[_0x8abb09(0x15f)](),_0x22d474=_0x8abb09(0x227)+this[_0x8abb09(0x151)]+'_'+global_registry['clusterRegion']+'_'+this[_0x8abb09(0x196)];let _0xdf05f0=await fs['readFileAsync'](path['join'](__dirname,'..',_0x3ab010[_0x8abb09(0x254)],_0x3ab010[_0x8abb09(0x14f)],_0x3ab010[_0x8abb09(0x232)]));return _0xdf05f0=_0xdf05f0[_0x8abb09(0x1fc)](),_0xdf05f0=_0xdf05f0[_0x8abb09(0x250)](/<CLUSTER_NAME>/g,_0x22d474),_0xdf05f0=_0xdf05f0[_0x8abb09(0x250)](/<CLUSTER_URL>/g,_0x8abb09(0x13a)+_0xc94ca0[0x0][_0x8abb09(0x1e5)]),_0xdf05f0=_0xdf05f0[_0x8abb09(0x250)](/<CERTIFICATE_DATA>/g,_0xc94ca0[0x0][_0x8abb09(0x1c3)]['clusterCaCertificate']),_0xdf05f0;}async[a3_0x5183a(0x18a)](){const _0x23e897=a3_0x5183a,_0x597e8c={};_0x597e8c['pztzZ']=function(_0x438307,_0x286c7d){return _0x438307===_0x286c7d;},_0x597e8c[_0x23e897(0x20b)]=_0x23e897(0x15b),_0x597e8c[_0x23e897(0x176)]=_0x23e897(0x19a),_0x597e8c[_0x23e897(0x23d)]=function(_0x179012,_0x4a5961){return _0x179012===_0x4a5961;},_0x597e8c[_0x23e897(0x13f)]=_0x23e897(0x252),_0x597e8c[_0x23e897(0x1c8)]=function(_0x46ca13,_0x49c9bc){return _0x46ca13===_0x49c9bc;},_0x597e8c[_0x23e897(0x135)]=_0x23e897(0x21c),_0x597e8c['BKwYK']=_0x23e897(0x1af);const _0x10a6de=_0x597e8c,_0x9c425b={};_0x9c425b[_0x23e897(0x1b1)]=[_0x10a6de[_0x23e897(0x176)]],_0x9c425b[_0x23e897(0x191)]=this['credentialsPath'];const _0x41210a=await google[_0x23e897(0x218)][_0x23e897(0x12e)](_0x9c425b),_0x5273ca=await this[_0x23e897(0x20a)]['projects'][_0x23e897(0x248)][_0x23e897(0x188)]({'name':_0x23e897(0x210)+this[_0x23e897(0x151)],'auth':_0x41210a});for(const _0x116cc6 of _0x5273ca?.[_0x23e897(0x1bd)]?.[_0x23e897(0x13c)]){if(_0x10a6de[_0x23e897(0x23d)](_0x10a6de[_0x23e897(0x13f)],_0x10a6de[_0x23e897(0x13f)])){if(_0x10a6de[_0x23e897(0x1c8)](_0x116cc6?.['name'],_0x23e897(0x210)+this['projectId']+_0x23e897(0x18f)+this[_0x23e897(0x216)]+'@'+this[_0x23e897(0x151)]+_0x23e897(0x260))){if(_0x10a6de['pztzZ'](_0x10a6de[_0x23e897(0x135)],_0x10a6de[_0x23e897(0x222)])){if(_0x10a6de[_0x23e897(0x238)](_0x43f045[_0x23e897(0x17a)],this['clusterName']))return!![];}else return!![];}}else{_0x5b8130['info'](_0x10a6de[_0x23e897(0x20b)]);return;}}return![];}async[a3_0x5183a(0x12c)](){const _0x2fcd65=a3_0x5183a,_0x56f848={};_0x56f848[_0x2fcd65(0x240)]=function(_0x267cd6,_0x2e40bf){return _0x267cd6!==_0x2e40bf;},_0x56f848['dYQRC']='UHOeH',_0x56f848[_0x2fcd65(0x20e)]=_0x2fcd65(0x190),_0x56f848[_0x2fcd65(0x1fa)]=_0x2fcd65(0x15b),_0x56f848[_0x2fcd65(0x149)]=_0x2fcd65(0x249),_0x56f848[_0x2fcd65(0x194)]=_0x2fcd65(0x19a),_0x56f848[_0x2fcd65(0x132)]=_0x2fcd65(0x23c),_0x56f848[_0x2fcd65(0x15e)]=_0x2fcd65(0x168),_0x56f848[_0x2fcd65(0x17d)]=_0x2fcd65(0x1a1),_0x56f848[_0x2fcd65(0x1d0)]='storage.buckets.delete',_0x56f848['GEHEM']=_0x2fcd65(0x220),_0x56f848['aoqbk']=_0x2fcd65(0x1c1),_0x56f848[_0x2fcd65(0x1ad)]=_0x2fcd65(0x201),_0x56f848['vsEZd']='storage.buckets.getObjectInsights',_0x56f848[_0x2fcd65(0x12a)]=_0x2fcd65(0x170),_0x56f848[_0x2fcd65(0x1ce)]='storage.buckets.listEffectiveTags',_0x56f848['TRNgD']=_0x2fcd65(0x258),_0x56f848[_0x2fcd65(0x22b)]=_0x2fcd65(0x246),_0x56f848['iafTc']=_0x2fcd65(0x179),_0x56f848['DTGny']=_0x2fcd65(0x195),_0x56f848[_0x2fcd65(0x175)]=_0x2fcd65(0x209),_0x56f848[_0x2fcd65(0x24c)]=_0x2fcd65(0x214),_0x56f848[_0x2fcd65(0x165)]=_0x2fcd65(0x21d),_0x56f848[_0x2fcd65(0x141)]='storage.objects.create',_0x56f848[_0x2fcd65(0x199)]='storage.objects.delete',_0x56f848['PHLhk']=_0x2fcd65(0x24d),_0x56f848[_0x2fcd65(0x1b5)]=_0x2fcd65(0x137),_0x56f848[_0x2fcd65(0x25c)]='storage.objects.list',_0x56f848[_0x2fcd65(0x163)]=_0x2fcd65(0x20c),_0x56f848[_0x2fcd65(0x131)]=_0x2fcd65(0x1e0),_0x56f848[_0x2fcd65(0x245)]=_0x2fcd65(0x236),_0x56f848['phHwS']=_0x2fcd65(0x1dd);const _0x5f4912=_0x56f848,_0x515182=await this['checkServiceAccount']();if(_0x515182){if(_0x5f4912[_0x2fcd65(0x240)](_0x5f4912['dYQRC'],_0x5f4912[_0x2fcd65(0x20e)])){logger[_0x2fcd65(0x12f)](_0x5f4912['UIpap']);return;}else return![];}logger[_0x2fcd65(0x12f)](_0x5f4912['InXGR']);const _0xee5607={};_0xee5607['scopes']=[_0x5f4912['mxCad']],_0xee5607[_0x2fcd65(0x191)]=this[_0x2fcd65(0x15c)];const _0x66b0e6=await google[_0x2fcd65(0x218)]['getClient'](_0xee5607),_0x3c371d={};_0x3c371d[_0x2fcd65(0x19d)]=[_0x5f4912[_0x2fcd65(0x132)],_0x5f4912[_0x2fcd65(0x15e)],_0x5f4912[_0x2fcd65(0x17d)],_0x5f4912[_0x2fcd65(0x1d0)],_0x5f4912[_0x2fcd65(0x130)],_0x5f4912[_0x2fcd65(0x1b7)],_0x5f4912[_0x2fcd65(0x1ad)],_0x5f4912[_0x2fcd65(0x1f2)],_0x5f4912[_0x2fcd65(0x12a)],_0x5f4912['hOoyB'],_0x5f4912[_0x2fcd65(0x215)],_0x5f4912[_0x2fcd65(0x22b)],_0x5f4912[_0x2fcd65(0x17e)],_0x5f4912[_0x2fcd65(0x157)],_0x5f4912['Awoqi'],_0x5f4912[_0x2fcd65(0x24c)],_0x5f4912['aTMJT'],_0x5f4912['WySMK'],_0x5f4912[_0x2fcd65(0x199)],_0x5f4912[_0x2fcd65(0x1a5)],_0x5f4912[_0x2fcd65(0x1b5)],_0x5f4912['SSbcQ'],_0x5f4912[_0x2fcd65(0x163)],_0x5f4912[_0x2fcd65(0x131)]],_0x3c371d[_0x2fcd65(0x261)]=_0x5f4912[_0x2fcd65(0x245)],await this['iamClient'][_0x2fcd65(0x1e9)]['roles'][_0x2fcd65(0x247)]({'parent':_0x2fcd65(0x210)+this[_0x2fcd65(0x151)],'requestBody':{'role':_0x3c371d,'roleId':this[_0x2fcd65(0x1f4)]},'auth':_0x66b0e6});const _0x39a8df={};_0x39a8df['name']=_0x2fcd65(0x210)+this[_0x2fcd65(0x151)],_0x39a8df[_0x2fcd65(0x1bc)]={},_0x39a8df[_0x2fcd65(0x218)]=_0x66b0e6,_0x39a8df[_0x2fcd65(0x1bc)][_0x2fcd65(0x217)]=this[_0x2fcd65(0x216)];const _0x247396=_0x39a8df;await this[_0x2fcd65(0x20a)]['projects'][_0x2fcd65(0x248)][_0x2fcd65(0x247)](_0x247396);let _0x517ff4=await this[_0x2fcd65(0x22d)]['getIamPolicy']({'resource':'projects/'+this[_0x2fcd65(0x151)]});_0x517ff4=_0x517ff4[0x0][_0x2fcd65(0x1c2)];const _0x4c8eda={};_0x4c8eda[_0x2fcd65(0x198)]=_0x2fcd65(0x210)+this[_0x2fcd65(0x151)]+_0x2fcd65(0x181)+this['customRoleName'],_0x4c8eda[_0x2fcd65(0x183)]=[_0x2fcd65(0x160)+this[_0x2fcd65(0x216)]+'@'+this[_0x2fcd65(0x151)]+_0x2fcd65(0x260)],_0x517ff4[_0x2fcd65(0x1cf)](_0x4c8eda);const _0x33aa9d={};_0x33aa9d[_0x2fcd65(0x1c2)]=_0x517ff4,await this['resourcemanagerClient'][_0x2fcd65(0x1a2)]({'resource':'projects/'+this[_0x2fcd65(0x151)],'policy':_0x33aa9d}),logger[_0x2fcd65(0x12f)](_0x5f4912['phHwS']);}async[a3_0x5183a(0x235)](_0x491995=a3_0x5183a(0x1be),_0x552721=[a3_0x5183a(0x1be)]){const _0xf3340c=a3_0x5183a,_0x4883b8={};_0x4883b8[_0xf3340c(0x150)]=_0xf3340c(0x25a),_0x4883b8[_0xf3340c(0x22c)]=_0xf3340c(0x1ac),_0x4883b8[_0xf3340c(0x19b)]=_0xf3340c(0x229);const _0x21d423=_0x4883b8,_0x24b13f=_0x21d423[_0xf3340c(0x150)][_0xf3340c(0x213)]('|');let _0x5aa3c6=0x0;while(!![]){switch(_0x24b13f[_0x5aa3c6++]){case'0':const _0x1e734d={};_0x1e734d[_0xf3340c(0x153)]=WS_EVENTS['LOG'],_0x1e734d[_0xf3340c(0x1c6)]=_0x21d423['VvfqJ'],this[_0xf3340c(0x207)][_0xf3340c(0x23e)](this[_0xf3340c(0x203)],_0x1e734d);continue;case'1':return!![];case'2':await this[_0xf3340c(0x12c)]();continue;case'3':await this[_0xf3340c(0x16e)](_0x491995,_0x552721);continue;case'4':this['sendGCPInfoToHST'](this[_0xf3340c(0x203)]);continue;case'5':logger[_0xf3340c(0x12f)](_0x21d423[_0xf3340c(0x19b)]);continue;}break;}}async[a3_0x5183a(0x16e)](_0x18168b=a3_0x5183a(0x1be),_0xfc95a9=[a3_0x5183a(0x1be)]){const _0x4cb2da=a3_0x5183a,_0x31c830={};_0x31c830[_0x4cb2da(0x231)]=function(_0x6bbc5f,_0x1fb8b4){return _0x6bbc5f===_0x1fb8b4;},_0x31c830[_0x4cb2da(0x1d5)]=function(_0x385b9c,_0x438177){return _0x385b9c!==_0x438177;},_0x31c830[_0x4cb2da(0x1c4)]=_0x4cb2da(0x1e8),_0x31c830['mPFSd']=_0x4cb2da(0x1aa),_0x31c830[_0x4cb2da(0x1c0)]='templates',_0x31c830['DNlMm']=_0x4cb2da(0x24e),_0x31c830[_0x4cb2da(0x1ec)]=_0x4cb2da(0x1cc),_0x31c830[_0x4cb2da(0x193)]=_0x4cb2da(0x24a),_0x31c830[_0x4cb2da(0x18e)]='regionmap.json',_0x31c830[_0x4cb2da(0x12d)]=function(_0x1dfc9c,_0x164ca5){return _0x1dfc9c*_0x164ca5;},_0x31c830[_0x4cb2da(0x233)]=function(_0x17b534,_0x581a20){return _0x17b534*_0x581a20;},_0x31c830[_0x4cb2da(0x172)]=_0x4cb2da(0x1eb),_0x31c830[_0x4cb2da(0x1f7)]=_0x4cb2da(0x1a7),_0x31c830[_0x4cb2da(0x1d6)]=function(_0x1554f9,_0x2e6b9f){return _0x1554f9===_0x2e6b9f;},_0x31c830[_0x4cb2da(0x1e2)]=_0x4cb2da(0x1f8),_0x31c830['XgMxf']=_0x4cb2da(0x228),_0x31c830[_0x4cb2da(0x133)]=_0x4cb2da(0x253),_0x31c830[_0x4cb2da(0x259)]=function(_0x54666c,_0x411e0f){return _0x54666c===_0x411e0f;},_0x31c830[_0x4cb2da(0x1cb)]=_0x4cb2da(0x1fd),_0x31c830['IiwcT']=_0x4cb2da(0x13e),_0x31c830[_0x4cb2da(0x174)]='Cluster\x20creation\x20failed';const _0x1e1fef=_0x31c830;try{if(_0x1e1fef[_0x4cb2da(0x1d5)](_0x1e1fef[_0x4cb2da(0x1c4)],_0x1e1fef['elXsw']))this[_0x4cb2da(0x16d)]();else{logger['info'](_0x1e1fef[_0x4cb2da(0x14d)]);let _0x4ad5b9=await fs['readFileAsync'](path[_0x4cb2da(0x237)](__dirname,'..',_0x1e1fef[_0x4cb2da(0x1c0)],_0x1e1fef[_0x4cb2da(0x1c9)],_0x1e1fef['kKkVV']),_0x1e1fef[_0x4cb2da(0x193)]);_0x4ad5b9=JSON['parse'](_0x4ad5b9);let _0x56786f=await fs[_0x4cb2da(0x204)](path[_0x4cb2da(0x237)](__dirname,'..',_0x1e1fef[_0x4cb2da(0x1c0)],_0x1e1fef[_0x4cb2da(0x1c9)],_0x1e1fef[_0x4cb2da(0x18e)]),_0x1e1fef[_0x4cb2da(0x193)]);_0x56786f=JSON[_0x4cb2da(0x1b3)](_0x56786f),_0x4ad5b9['name']=this[_0x4cb2da(0x196)],_0x4ad5b9['nodePools'][0x0]['config'][_0x4cb2da(0x225)]=global_registry['instanceType'],_0x4ad5b9['nodePools'][0x0][_0x4cb2da(0x164)]['serviceAccount']=this[_0x4cb2da(0x216)]+'@'+this[_0x4cb2da(0x151)]+_0x4cb2da(0x260),_0x4ad5b9[_0x4cb2da(0x22e)][0x0]['autoscaling'][_0x4cb2da(0x244)]=global_registry[_0x4cb2da(0x1ae)],_0x4ad5b9['nodePools'][0x0][_0x4cb2da(0x171)][_0x4cb2da(0x25e)]=global_registry[_0x4cb2da(0x16c)],_0x4ad5b9['location']=global_registry['clusterRegion'],_0x4ad5b9['locations']=[_0x56786f[global_registry[_0x4cb2da(0x152)]][0x0]],_0x4ad5b9[_0x4cb2da(0x1c7)]=_0x4cb2da(0x210)+this['projectId']+'/global/networks/'+_0x18168b,_0x4ad5b9[_0x4cb2da(0x1a0)]='projects/'+this[_0x4cb2da(0x151)]+_0x4cb2da(0x17c)+global_registry[_0x4cb2da(0x152)]+_0x4cb2da(0x129)+_0xfc95a9[0x0];const _0x59beec=await this['containerClient'][_0x4cb2da(0x16e)]({'cluster':_0x4ad5b9,'parent':'projects/'+this[_0x4cb2da(0x151)]+_0x4cb2da(0x1d4)+global_registry['clusterRegion']});await this[_0x4cb2da(0x207)]['delay'](_0x1e1fef[_0x4cb2da(0x12d)](_0x1e1fef[_0x4cb2da(0x233)](0x7,0x3c),0x3e8));}}catch(_0x118ffe){if(_0x1e1fef['iryvS'](_0x1e1fef[_0x4cb2da(0x172)],_0x1e1fef[_0x4cb2da(0x1f7)])){const _0x5ebef5=await this['isClusterPresent']();if(_0x5ebef5){if(_0x1e1fef[_0x4cb2da(0x1d6)](_0x1e1fef[_0x4cb2da(0x1e2)],_0x1e1fef[_0x4cb2da(0x1a8)]))return![];else logger[_0x4cb2da(0x12f)](_0x1e1fef[_0x4cb2da(0x133)],_0x118ffe[_0x4cb2da(0x202)]),await this[_0x4cb2da(0x1a3)]();}else{if(_0x1e1fef[_0x4cb2da(0x259)](_0x1e1fef[_0x4cb2da(0x1cb)],_0x1e1fef[_0x4cb2da(0x185)]))return!![];else logger[_0x4cb2da(0x12f)](_0x1e1fef[_0x4cb2da(0x174)]);}throw _0x118ffe;}else return _0x1e1fef['IegQu'](_0x886b02['gcpConfigSet'],!![]);}}async[a3_0x5183a(0x1a3)](_0x50bc68,_0x31d2b9){const _0x220713=a3_0x5183a,_0x3997aa={'ozVJT':function(_0x54f2f0,_0x2532c5){return _0x54f2f0===_0x2532c5;},'FuKkj':'HttWO','bhaWg':function(_0x3c593a,_0x5c0092){return _0x3c593a(_0x5c0092);},'iMBcQ':'RUNNING','fdRMd':'DONE','LNIEd':function(_0x5cb450,_0xb9801d){return _0x5cb450!==_0xb9801d;},'QlbTL':_0x220713(0x257),'vRKMJ':function(_0x2a4ed6,_0x4ba5d3){return _0x2a4ed6===_0x4ba5d3;},'Jkmif':'uxyrA','QYmbp':_0x220713(0x1ca),'gBhKz':_0x220713(0x1c5)};try{if(_0x3997aa[_0x220713(0x1a4)](_0x3997aa[_0x220713(0x184)],_0x3997aa['FuKkj'])){await _0x3997aa[_0x220713(0x1dc)](deleteRoutingDeps,_0x50bc68),logger[_0x220713(0x12f)]('Deleting\x20the\x20cluster\x20'+this[_0x220713(0x196)]);const _0x285242=await this[_0x220713(0x189)][_0x220713(0x1a3)]({'name':_0x220713(0x210)+this[_0x220713(0x151)]+_0x220713(0x1d4)+global_registry[_0x220713(0x152)]+'/clusters/'+this['clusterName']});if(_0x3997aa[_0x220713(0x1a4)](_0x285242[0x0]?.[_0x220713(0x16f)],_0x3997aa[_0x220713(0x192)])||_0x3997aa['ozVJT'](_0x285242[0x0]?.['status'],_0x3997aa[_0x220713(0x162)])){if(_0x3997aa[_0x220713(0x145)](_0x3997aa[_0x220713(0x21b)],_0x3997aa[_0x220713(0x21b)]))_0x44c9f4['vpcInfo'][_0x220713(0x1cf)](_0x32452b);else return!![];}logger[_0x220713(0x12f)]('Cluster\x20deletion\x20completed');}else return[!![],_0x5642bd];}catch(_0x1314ed){if(_0x3997aa['vRKMJ'](_0x3997aa['Jkmif'],_0x3997aa['QYmbp']))!this[_0x220713(0x1e7)]()&&this['setConfig']();else{logger[_0x220713(0x12f)](_0x3997aa[_0x220713(0x140)]);throw _0x1314ed;}}}async[a3_0x5183a(0x25d)](_0x96905){const _0x2cb742=a3_0x5183a,_0x3b36b9={};_0x3b36b9[_0x2cb742(0x239)]=function(_0x182d13,_0x3a9ca3){return _0x182d13===_0x3a9ca3;},_0x3b36b9[_0x2cb742(0x1e1)]=function(_0x34ef21,_0x586313){return _0x34ef21!==_0x586313;},_0x3b36b9[_0x2cb742(0x13b)]=_0x2cb742(0x138),_0x3b36b9[_0x2cb742(0x221)]='JymEy',_0x3b36b9[_0x2cb742(0x1ed)]=function(_0x41fdf8,_0xa3a508){return _0x41fdf8>_0xa3a508;},_0x3b36b9[_0x2cb742(0x14b)]=function(_0x4ce13a,_0x573750){return _0x4ce13a===_0x573750;},_0x3b36b9[_0x2cb742(0x144)]=function(_0x97864b,_0x2fa15c){return _0x97864b===_0x2fa15c;},_0x3b36b9[_0x2cb742(0x1a6)]=_0x2cb742(0x1b6),_0x3b36b9['JJlPM']=function(_0x4984b3,_0x3cf90d){return _0x4984b3===_0x3cf90d;},_0x3b36b9[_0x2cb742(0x1de)]=_0x2cb742(0x1ab);const _0x52cdb5=_0x3b36b9;try{if(_0x52cdb5[_0x2cb742(0x1e1)](_0x52cdb5[_0x2cb742(0x13b)],_0x52cdb5['ZKryS'])){const _0x5d5e79={};_0x5d5e79[_0x2cb742(0x25b)]=projectId,_0x5d5e79[_0x2cb742(0x1c7)]=_0x96905;const _0xe4c0e=await networkClient[_0x2cb742(0x18c)](_0x5d5e79);if(_0x52cdb5[_0x2cb742(0x1ed)](_0xe4c0e['length'],0x0)&&_0x52cdb5['wLlPG'](_0xe4c0e[0x0]['name'],_0x96905)){if(_0x52cdb5['EhsTy'](_0x52cdb5[_0x2cb742(0x1a6)],_0x52cdb5['pADXq']))return!![];else{const _0x104ada='https://www.googleapis.com/compute/v1/projects/'+this[_0x2cb742(0x151)]+'/regions/'+_0x657b1d[_0x2cb742(0x152)]+_0x2cb742(0x129)+_0x47e004[0x0];if(_0x52cdb5['SKMIY'](_0x104ada,_0x8b00e9))return[!![],_0x3444a5];}}}else return!![];}catch(_0xcbe0be){return _0x52cdb5['JJlPM'](_0x52cdb5['pwYPW'],_0x52cdb5[_0x2cb742(0x1de)])?![]:(_0x4c8b42[_0x2cb742(0x1df)](_0x2cb742(0x1f5)+_0x142d6c+_0x2cb742(0x19e)+_0x37a2fe),[![],[]]);}return![];}async[a3_0x5183a(0x242)](_0x20eab8,_0x30f237){const _0x2ee152=a3_0x5183a,_0x4db2f5={};_0x4db2f5[_0x2ee152(0x18d)]=_0x2ee152(0x1c5),_0x4db2f5['gCMWL']=function(_0x1ca953,_0x385dc2){return _0x1ca953===_0x385dc2;},_0x4db2f5['lfvvk']='femsU',_0x4db2f5[_0x2ee152(0x205)]=_0x2ee152(0x23f),_0x4db2f5[_0x2ee152(0x22f)]=function(_0x3549e3,_0x39a7f4){return _0x3549e3===_0x39a7f4;},_0x4db2f5[_0x2ee152(0x187)]=_0x2ee152(0x167),_0x4db2f5['OuKve']=_0x2ee152(0x1ea);const _0x33c720=_0x4db2f5;try{const _0x5048b5={};_0x5048b5[_0x2ee152(0x25b)]=projectId,_0x5048b5[_0x2ee152(0x1c7)]=_0x30f237;const _0x452aa6=await networkClient[_0x2ee152(0x18c)](_0x5048b5);for(const _0x23c29a of _0x452aa6[0x0]['subnetworks']){if(_0x33c720[_0x2ee152(0x1f9)](_0x33c720[_0x2ee152(0x146)],_0x33c720['aOWfo'])){_0x4666f0[_0x2ee152(0x12f)](_0x33c720['NBCWC']);throw _0x102b65;}else{const _0x13dbc6='https://www.googleapis.com/compute/v1/projects/'+this[_0x2ee152(0x151)]+'/regions/'+global_registry[_0x2ee152(0x152)]+'/subnetworks/'+_0x20eab8[0x0];if(_0x33c720[_0x2ee152(0x1f9)](_0x13dbc6,_0x23c29a))return _0x33c720['NsuYZ'](_0x33c720[_0x2ee152(0x187)],_0x33c720[_0x2ee152(0x1e6)])?!![]:[!![],_0x20eab8];}}}catch(_0x1c85b9){return logger['error'](_0x2ee152(0x1f5)+_0x20eab8+_0x2ee152(0x19e)+_0x1c85b9),[![],[]];}return[![],[]];}async['sendGCPInfoToHST'](){const _0x472ae0=a3_0x5183a,_0x17bd44=await this[_0x472ae0(0x212)][_0x472ae0(0x188)]({'project':this[_0x472ae0(0x151)]}),_0x4521c4={};_0x4521c4[_0x472ae0(0x1f0)]=global_registry[_0x472ae0(0x155)],_0x4521c4[_0x472ae0(0x1b0)]=global_registry['bstackAccesskey'],_0x4521c4[_0x472ae0(0x142)]=GCP,_0x4521c4[_0x472ae0(0x1f6)]=[];const _0x5bc096=_0x4521c4;for(const _0x40fd8c of _0x17bd44){_0x5bc096[_0x472ae0(0x1f6)][_0x472ae0(0x1cf)](_0x40fd8c);}const _0x148840={};_0x148840[_0x472ae0(0x153)]=WS_EVENTS[_0x472ae0(0x14e)],_0x148840[_0x472ae0(0x1c6)]=_0x5bc096,this[_0x472ae0(0x207)][_0x472ae0(0x23e)](this['rws'],_0x148840);}}function a3_0x22ea(){const _0x1daf7a=['wLlPG','aCQZg','mPFSd','RESOURCES','TVwyS','EDyPO','projectId','clusterRegion','type','HcwUk','bstackUsername','sNEMQ','DTGny','296275pNgItZ','KubeConfigTemplate.yaml','WDRXg','Service\x20account\x20already\x20exists,\x20skipping','credentialsPath','CMEvu','BLBYx','getClusterInfo','serviceAccount:','exports','fdRMd','JNFzg','config','aTMJT','path','fNCos','storage.buckets.create','configureIfNotConfigured','browserstack','MLsbs','maxNodes','setConfig','createCluster','status','storage.buckets.list','autoscaling','kZopc','RlHSa','yNEyl','Awoqi','WMpPN','Vfbvz','iam','storage.buckets.update','name','ytNuA','/regions/','FYeNB','iafTc','oTZRz','2077104yWdozB','/roles/','OlTsM','members','FuKkj','IiwcT','Uwlou','FUJAx','list','containerClient','checkServiceAccount','./CloudProvider','get','NBCWC','DhaSC','/serviceAccounts/','TwOWF','keyFile','iMBcQ','fUbHn','mxCad','storage.multipartUploads.abort','clusterName','uzRee','role','ufXIt','https://www.googleapis.com/auth/cloud-platform','CnExm','@google-cloud/compute','includedPermissions','.\x20Error:\x20','feWDR','subnetwork','storage.buckets.createTagBinding','setIamPolicy','deleteCluster','ozVJT','PHLhk','pADXq','GyprV','XgMxf','project_id','Creating\x20GKE\x20Cluster','JzZCg','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','IMMIB','minNodes','sxMbG','accessKey','scopes','DwyUp','parse','templates','OuDtE','oonaN','aoqbk','../config/constants','turboscale_custom_role','438475EaiWxc','ingress','requestBody','data','default','127800jYYrgD','IuVCq','storage.buckets.get','bindings','masterAuth','elXsw','GKE\x20Cluster\x20deletion\x20failed','message','network','EFbWM','DNlMm','XlxCp','HvTAn','gkecluster.json','NwVdW','hOoyB','push','xGnDc','clusters','cloudProviderName','loadBalancer','/locations/','iryvS','WBxvV','managedby','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','writeFileSync','245902JeuPeA','10357250huTIUl','bhaWg','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','pwYPW','error','storage.objects.update','KrPku','dRlJh','nzbsU','mCQYw','endpoint','OuKve','isConfigured','CbqwU','organizations','thRzU','coBZV','kKkVV','yQuqB','exec','336uLslSS','username','GoogleCloudProvider','vsEZd','QQbBB','customRoleName','Cannot\x20find\x20subnets\x20','vpcInfo','XqWoI','sTJQn','gCMWL','UIpap','mAjXb','toString','ALPqB','2632sxxDqS','isBrowserstackCluster','HjvcH','storage.buckets.getIamPolicy','stack','rws','readFileAsync','aOWfo','3zuBzWZ','webSocketUtils','ASzKy','storage.multipartUploads.create','iamClient','nPsTQ','storage.objects.setIamPolicy','OrtqV','JoMGt','GUFMq','projects/','uvMNm','networkClient','split','storage.multipartUploads.list','TRNgD','serviceAccountName','accountId','auth','googleapis','@google-cloud/resource-manager','QlbTL','yjaTc','storage.multipartUploads.listParts','@google-cloud/container','270QdlJQv','storage.buckets.deleteTagBinding','ZKryS','BKwYK','../utils/gridComponents','NetworksClient','machineType','JxIae','gke_','izwux','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','bjFhq','XJvkI','VvfqJ','resourcemanagerClient','nodePools','NsuYZ','7|4|0|3|1|8|5|2|6','IegQu','pjTXP','GDVqs','getKubeConfigData','setupNewCluster','Turboscale\x20Custom\x20Role','join','pztzZ','SKMIY','getGridHostname','ClusterManagerClient','iam.serviceAccounts.signBlob','etUGO','sendEventToBackend','USZZv','zAxVj','turboscale-service-account','isSubnetsValid','getCluster','minNodeCount','TkrLl','storage.buckets.setIamPolicy','create','serviceAccounts','Creating\x20service\x20account','utf-8','TRluN','pyKdp','storage.objects.get','gcpresources','gGJzs','replace','zBZUa','jLcIp','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','WJxyj','akgTF','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','MHBDq','storage.buckets.listTagBindings','hXIud','4|0|5|2|3|1','project','SSbcQ','isVPCPresent','maxNodeCount','body','.iam.gserviceaccount.com','title','/subnetworks/','kunqT','TfnNq','setupServiceAccount','WDRkZ','getClient','info','GEHEM','cpHAP','hRtgc','rDNRS','yfBaK','wQblq','BmiCz','storage.objects.getIamPolicy','aSJtp','getUserInput','https://','hHdDf','accounts','toLowerCase','WnilT','yfCim','gBhKz','WySMK','cloudProvider','/clusters/','EhsTy','LNIEd','lfvvk','child_process','gcpConfigSet','InXGR','resourceLabels'];a3_0x22ea=function(){return _0x1daf7a;};return a3_0x22ea();}const a3_0x3aae44={};a3_0x3aae44[a3_0x5183a(0x1f1)]=GoogleCloudProvider,module[a3_0x5183a(0x161)]=a3_0x3aae44;
1
+ const a3_0xf2414=a3_0xddf4;(function(_0x5580bb,_0x16185c){const _0x3e5800=a3_0xddf4,_0x45f69c=_0x5580bb();while(!![]){try{const _0x4b6758=parseInt(_0x3e5800(0x15e))/0x1+parseInt(_0x3e5800(0x1b9))/0x2*(-parseInt(_0x3e5800(0x94))/0x3)+parseInt(_0x3e5800(0x12e))/0x4*(parseInt(_0x3e5800(0x116))/0x5)+-parseInt(_0x3e5800(0x119))/0x6+-parseInt(_0x3e5800(0x1b5))/0x7+-parseInt(_0x3e5800(0xc9))/0x8*(-parseInt(_0x3e5800(0x1a3))/0x9)+parseInt(_0x3e5800(0xc8))/0xa;if(_0x4b6758===_0x16185c)break;else _0x45f69c['push'](_0x45f69c['shift']());}catch(_0x4fbb3c){_0x45f69c['push'](_0x45f69c['shift']());}}}(a3_0x194c,0x50552));function a3_0x194c(){const _0x47fc4f=['sendGCPInfoToHST','list','toLowerCase','info','LzejF','33687wzkcID','DvHBG','JALld','storage.objects.getIamPolicy','../utils/utilityMethods','machineType','NetworksClient','containerClient','eoGLR','exec','storage.objects.delete','serviceAccountName','../config/logger','gcp_credentials.json','getClient','create','/regions/','.iam.gserviceaccount.com','4293576ZHxJhF','KubeConfigTemplate.yaml','loadBalancer','uOwce','7022TLzNCS','Cluster\x20deletion\x20completed','networkClient','roles','lhrBx','byQJW','sendEventToBackend','storage.buckets.createTagBinding','bindings','opfld','status','path','WnZlN','mSffx','57SSCqYX','IUPez','autoscaling','egIrV','GFVDu','jXFaE','khGmI','RUjFw','fUDlW','mTsAy','length','setIamPolicy','parent','join','name','FJfMk','serviceAccount','AsMTD','TsFIA','XfrsX','data','fDeaW','auth','Pwuys','webSocketUtils','instanceType','storage.buckets.create','MPSRd','body','ASxbS','clusters','TKfRi','KgVtx','wImdF','error','/clusters/','storage.objects.get','VSreD','Creating\x20service\x20account','erPYJ','tpKoE','network','cAQXB','agriz','storage.buckets.get','get','storage.buckets.listTagBindings','wqaJW','KcmJw','EdcoG','storage.buckets.update','XfKAO','2254830VdxppG','904WWreMx','vRckz','iamClient','rkXKL','YIrAf','split','VHPdo','STclc','RVqUm','bstackAccesskey','BSiMO','UwDyh','storage.buckets.list','5|1|8|3|4|0|7|2|6','ZIgHU','ejeKx','stack','fetchLocalCreds','project_id','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','nPbXb','clusterName','nsvAE','minNodes','https://www.googleapis.com/compute/v1/projects/','RUNNING','ZaYEo','push','accountId','googleapis','getGridHostname','AUGEE','DJnbr','accounts','JaYkh','tUXat','Service\x20account\x20already\x20exists,\x20skipping','DNJIC','kvUnj','qprWF','/roles/','writeFileSync','XPhuW','OaSjp','QURbQ','projects/','rERkb','YQnOr','storage.objects.update','wXaGi','/subnetworks/','requestBody','TKSDc','kyEWh','storage.objects.list','zYFpd','XqstT','cloudProvider','hqpei','setupServiceAccount','deleteCluster','XDKJa','storage.multipartUploads.create','vpcInfo','rws','yVaDY','pfcEB','SkgRH','getClusterInfo','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','cGRUa','replace','managedby','jipjP','rRQQM','config','checkServiceAccount','3157985lEJqyC','isBrowserstackCluster','LOG','3548148TyaTZJ','JpVUM','turboscale_custom_role','project','cloudProviderName','SeWMp','QGYvO','JzxOe','projectId','ttpER','igjmy','spvSF','DhQEK','McdOg','readFileAsync','Turboscale\x20Custom\x20Role','maxNodeCount','resourceLabels','Znfwy','serviceAccount:','EHGkZ','4RWnAVw','5|3|4|0|1|2','storage.multipartUploads.listParts','SmKEL','getCluster','gcpresources','role','clusterCaCertificate','vHRTv','scopes','resourcemanagerClient','username','https://www.googleapis.com/auth/cloud-platform','pLdrm','FHBic','QjlTO','nAZtA','/serviceAccounts/','gcpConfigSet','iwhgK','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','regionmap.json','clusterRegion','gedOF','RUbcM','BuPzp','YCCOQ','tVEhp','/global/networks/','@google-cloud/container','serviceAccounts','accessKey','isConfigured','kzXOE','https://','locations','location','GKE\x20Cluster\x20deletion\x20failed','projects','IqzkQ','customRoleName','Cluster\x20creation\x20failed','storage.buckets.listEffectiveTags','BLSuK','dlMMw','gke_','nodePools','gJWPd','320438KosDKu','fMGVv','Bnuyw','templates','setConfig','child_process','Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','ytOHe','iam','message','credentialsPath','/locations/','storage.objects.create','kzbtN','socaA','includedPermissions','getKubeConfigData','storage.buckets.getIamPolicy','YEiWP','gDSkB','plEhg','GJVVh','GbRxO','ShoWc','title','ybvLy','MgZIU','XuqXB','qFJgv','wTKOQ','LdzyV','gcloud\x20auth\x20login\x20--cred-file=','configureIfNotConfigured','jIABb','ClusterManagerClient','DeZhX','uAyUt','parse','storage.buckets.delete','toString','setupNewCluster','@google-cloud/resource-manager','SAYjP','gJwai','zsLEE','CgOQY','ZWCwL','Cannot\x20find\x20subnets\x20','PIoDQ','createCluster','maxNodes','zsxuq','CPext','.\x20Error:\x20','ksvaZ','jTJka','DONE','default','GLtkC','keyFile','browserstack','getIamPolicy','storage.buckets.deleteTagBinding','uyIky'];a3_0x194c=function(){return _0x47fc4f;};return a3_0x194c();}function a3_0xddf4(_0x156911,_0x23fdc5){const _0x194c54=a3_0x194c();return a3_0xddf4=function(_0xddf435,_0xf5e1d3){_0xddf435=_0xddf435-0x87;let _0x2e6e26=_0x194c54[_0xddf435];return _0x2e6e26;},a3_0xddf4(_0x156911,_0x23fdc5);}const fs=require('fs'),path=require(a3_0xf2414(0x91)),cp=require(a3_0xf2414(0x163)),{google}=require(a3_0xf2414(0xe6)),compute=require('@google-cloud/compute'),container=require(a3_0xf2414(0x14b)),{ProjectsClient}=require(a3_0xf2414(0x187))['v3'],{logger}=require(a3_0xf2414(0x1af)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig}=require(a3_0xf2414(0x1a7)),{deleteRoutingDeps}=require('../utils/gridComponents'),{GCP,WS_EVENTS,global_registry}=require('../config/constants');class GoogleCloudProvider extends CloudProvider{constructor(_0x3e5ad9,_0x449434,_0xcc9af2,_0x37bb1f){const _0x2d3d4f=a3_0xf2414,_0x928b88={};_0x928b88[_0x2d3d4f(0x145)]=_0x2d3d4f(0xd6),_0x928b88[_0x2d3d4f(0x12b)]=_0x2d3d4f(0x11b),_0x928b88[_0x2d3d4f(0x9a)]='turboscale-service-account';const _0x250842=_0x928b88,_0x1dea56=_0x250842[_0x2d3d4f(0x145)][_0x2d3d4f(0xce)]('|');let _0x4b232c=0x0;while(!![]){switch(_0x1dea56[_0x4b232c++]){case'0':this[_0x2d3d4f(0x168)]=null;continue;case'1':this[_0x2d3d4f(0x1aa)]=null;continue;case'2':this[_0x2d3d4f(0x156)]=_0x250842['Znfwy'];continue;case'3':this[_0x2d3d4f(0x138)]=null;continue;case'4':this[_0x2d3d4f(0xcb)]=null;continue;case'5':super(GCP,_0x3e5ad9,_0x449434,_0xcc9af2,_0x37bb1f);continue;case'6':this['serviceAccountName']=_0x250842['khGmI'];continue;case'7':this[_0x2d3d4f(0x121)]=null;continue;case'8':this[_0x2d3d4f(0x88)]=null;continue;}break;}}[a3_0xf2414(0x17e)](){const _0x52c736=a3_0xf2414,_0x5d2261={};_0x5d2261[_0x52c736(0x15f)]=function(_0x31b95f,_0x4c015b){return _0x31b95f!==_0x4c015b;},_0x5d2261['DvHBG']=_0x52c736(0x170);const _0x1088da=_0x5d2261;if(!this['isConfigured']()){if(_0x1088da[_0x52c736(0x15f)](_0x1088da[_0x52c736(0x1a4)],_0x1088da[_0x52c736(0x1a4)]))return![];else this[_0x52c736(0x162)]();}}['isConfigured'](){const _0x1a48bb=a3_0xf2414,_0x559707={};_0x559707[_0x1a48bb(0x92)]=function(_0x242209,_0x2feb6c){return _0x242209===_0x2feb6c;};const _0x45bdf0=_0x559707;return _0x45bdf0[_0x1a48bb(0x92)](global_registry[_0x1a48bb(0x140)],!![]);}[a3_0xf2414(0x162)](){const _0x7acb3e=a3_0xf2414,_0x172d2a=this[_0x7acb3e(0x168)],_0x534d8e={};_0x534d8e[_0x7acb3e(0x199)]=_0x172d2a,this[_0x7acb3e(0x1aa)]=new container['v1'][(_0x7acb3e(0x180))](_0x534d8e);const _0x470024={};_0x470024[_0x7acb3e(0x199)]=_0x172d2a,this[_0x7acb3e(0x88)]=new compute['v1'][(_0x7acb3e(0x1a9))](_0x470024);const _0x50f09d={};_0x50f09d['keyFile']=_0x172d2a,this[_0x7acb3e(0x138)]=new ProjectsClient(_0x50f09d),this[_0x7acb3e(0xcb)]=google[_0x7acb3e(0x166)]('v1'),global_registry[_0x7acb3e(0x140)]=!![];}async['getUserInput'](_0x37ca3a,_0x49ba1e){const _0x3723bd=a3_0xf2414,_0x8b0175={'AezoP':function(_0x2761c2,_0xe272ec){return _0x2761c2(_0xe272ec);},'TKfRi':function(_0x5318ca){return _0x5318ca();},'XfKAO':_0x3723bd(0x1b0)},_0x391d37=await _0x8b0175['AezoP'](_0x37ca3a,_0x3723bd(0x10e));let _0x149edb=await fs[_0x3723bd(0x127)](_0x391d37);_0x149edb=_0x149edb[_0x3723bd(0x185)]();const _0x1c0d90=_0x8b0175[_0x3723bd(0xb3)](getDirForConfig),_0x442329=path[_0x3723bd(0xa1)](_0x1c0d90,_0x8b0175[_0x3723bd(0xc7)]);fs[_0x3723bd(0xf2)](_0x442329,_0x149edb),this['credentialsPath']=_0x442329;const _0x1c2a2a={};return _0x1c2a2a[_0x3723bd(0x199)]=_0x442329,_0x49ba1e[_0x3723bd(0x102)][GCP]=_0x1c2a2a,_0x149edb=JSON[_0x3723bd(0x183)](_0x149edb),this[_0x3723bd(0x121)]=_0x149edb[_0x3723bd(0xdb)],_0x49ba1e;}async[a3_0xf2414(0xda)](_0x18c212){const _0x1e42bd=a3_0xf2414;this[_0x1e42bd(0x168)]=_0x18c212[this[_0x1e42bd(0x11d)]][_0x1e42bd(0x199)];let _0x1cfa3f=await fs['readFileAsync'](this['credentialsPath']);_0x1cfa3f=JSON[_0x1e42bd(0x183)](_0x1cfa3f),this[_0x1e42bd(0x121)]=_0x1cfa3f['project_id'];}[a3_0xf2414(0xe7)](_0x2e738c){const _0x4f3d4e=a3_0xf2414;return _0x2e738c[_0x4f3d4e(0xb0)][_0x4f3d4e(0x90)]['loadBalancer']['ingress'][0x0]['ip'];}async[a3_0xf2414(0x117)](){const _0x2d1de3=a3_0xf2414,_0x1f2ab4={};_0x1f2ab4[_0x2d1de3(0x17a)]=function(_0x407399,_0x524187){return _0x407399!==_0x524187;},_0x1f2ab4[_0x2d1de3(0xd7)]=_0x2d1de3(0x194),_0x1f2ab4[_0x2d1de3(0x9c)]=function(_0x51aa9a,_0x27f175){return _0x51aa9a===_0x27f175;},_0x1f2ab4['kyEWh']='XWHZo',_0x1f2ab4[_0x2d1de3(0xe8)]=_0x2d1de3(0x178),_0x1f2ab4['DNJIC']=_0x2d1de3(0x19a),_0x1f2ab4['GREeW']=function(_0x1d4772,_0xe47536){return _0x1d4772===_0xe47536;},_0x1f2ab4[_0x2d1de3(0x123)]='kFMlE';const _0x29ff25=_0x1f2ab4;try{if(_0x29ff25['qFJgv'](_0x29ff25['ZIgHU'],_0x29ff25[_0x2d1de3(0xd7)]))return _0x572bb6[_0x2d1de3(0xb0)][_0x2d1de3(0x90)][_0x2d1de3(0x1b7)]['ingress'][0x0]['ip'];else{const _0x1295d9=await this[_0x2d1de3(0x10d)]();if(_0x1295d9[0x0]?.['resourceLabels']?.['managedby']){if(_0x29ff25[_0x2d1de3(0x9c)](_0x29ff25[_0x2d1de3(0xfe)],_0x29ff25[_0x2d1de3(0xe8)]))return _0x24b22c[_0x2d1de3(0xb6)](_0x2d1de3(0x18d)+_0x3c2229+_0x2d1de3(0x193)+_0x5381ab),[![],[]];else{const _0x32dbc6=_0x1295d9[0x0]?.[_0x2d1de3(0x12a)]?.['managedby'];return _0x32dbc6&&_0x29ff25[_0x2d1de3(0x9c)](_0x32dbc6[_0x2d1de3(0x1a0)](),_0x29ff25[_0x2d1de3(0xee)]);}}}}catch(_0x4d2071){return _0x29ff25['GREeW'](_0x29ff25[_0x2d1de3(0x123)],_0x29ff25['igjmy'])?![]:!![];}return![];}async['isClusterPresent'](){const _0x2f08d2=a3_0xf2414,_0x29954f={};_0x29954f[_0x2f08d2(0x106)]=function(_0x3bdc4d,_0x357fd){return _0x3bdc4d===_0x357fd;},_0x29954f[_0x2f08d2(0xc5)]=function(_0x31137f,_0x3ea319){return _0x31137f===_0x3ea319;},_0x29954f[_0x2f08d2(0x147)]='uKGBd',_0x29954f[_0x2f08d2(0xc4)]=_0x2f08d2(0x10f),_0x29954f[_0x2f08d2(0xd8)]=function(_0x4241ce,_0x2f88df){return _0x4241ce===_0x2f88df;},_0x29954f[_0x2f08d2(0xa5)]='RgDJo';const _0x501931=_0x29954f;this[_0x2f08d2(0x17e)]();const _0x240169={};_0x240169[_0x2f08d2(0xa0)]=_0x2f08d2(0xf6)+this[_0x2f08d2(0x121)]+'/locations/'+global_registry[_0x2f08d2(0x144)];const _0x4dfab0=_0x240169,_0x23521f=await this[_0x2f08d2(0x1aa)]['listClusters'](_0x4dfab0);for(const _0x544a42 of _0x23521f[0x0][_0x2f08d2(0xb2)]){if(_0x501931['EdcoG'](_0x501931[_0x2f08d2(0x147)],_0x501931[_0x2f08d2(0xc4)]))return _0x501931[_0x2f08d2(0x106)](_0xa7a2dc['gcpConfigSet'],!![]);else{if(_0x501931[_0x2f08d2(0x106)](_0x544a42[_0x2f08d2(0xa2)],this[_0x2f08d2(0xde)])){if(_0x501931[_0x2f08d2(0xd8)](_0x501931[_0x2f08d2(0xa5)],_0x501931[_0x2f08d2(0xa5)]))return!![];else{if(_0x501931[_0x2f08d2(0x106)](_0x115412[_0x2f08d2(0xa2)],this[_0x2f08d2(0xde)]))return!![];}}}}return![];}async[a3_0xf2414(0x10d)](){const _0x5a7a67=a3_0xf2414,_0x494f84=await this['containerClient'][_0x5a7a67(0x132)]({'name':_0x5a7a67(0xf6)+this[_0x5a7a67(0x121)]+_0x5a7a67(0x169)+global_registry['clusterRegion']+_0x5a7a67(0xb7)+this[_0x5a7a67(0xde)]});return _0x494f84;}async[a3_0xf2414(0x16e)](){const _0x46cffc=a3_0xf2414,_0x999886={};_0x999886['FlbXM']=_0x46cffc(0x161),_0x999886['byQJW']=_0x46cffc(0x133),_0x999886[_0x46cffc(0x195)]=_0x46cffc(0x1b6);const _0x17a1fd=_0x999886;cp['execSync']('gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false'),cp[_0x46cffc(0x1ac)](_0x46cffc(0x17d)+this[_0x46cffc(0x168)]);const _0x596210=await this[_0x46cffc(0x10d)](),_0x17dde5=_0x46cffc(0x15b)+this[_0x46cffc(0x121)]+'_'+global_registry['clusterRegion']+'_'+this[_0x46cffc(0xde)];let _0x5c524f=await fs[_0x46cffc(0x127)](path[_0x46cffc(0xa1)](__dirname,'..',_0x17a1fd['FlbXM'],_0x17a1fd[_0x46cffc(0x8b)],_0x17a1fd[_0x46cffc(0x195)]));return _0x5c524f=_0x5c524f[_0x46cffc(0x185)](),_0x5c524f=_0x5c524f[_0x46cffc(0x110)](/<CLUSTER_NAME>/g,_0x17dde5),_0x5c524f=_0x5c524f['replace'](/<CLUSTER_URL>/g,_0x46cffc(0x150)+_0x596210[0x0]['endpoint']),_0x5c524f=_0x5c524f[_0x46cffc(0x110)](/<CERTIFICATE_DATA>/g,_0x596210[0x0]['masterAuth'][_0x46cffc(0x135)]),_0x5c524f;}async[a3_0xf2414(0x115)](){const _0x2efe00=a3_0xf2414,_0x4c2698={};_0x4c2698['WzTMt']=function(_0x48f91b,_0x1b3763){return _0x48f91b===_0x1b3763;},_0x4c2698['plEhg']=_0x2efe00(0x13a),_0x4c2698[_0x2efe00(0x11f)]=function(_0x5ad4f9,_0x26541a){return _0x5ad4f9!==_0x26541a;},_0x4c2698['gEXte']=_0x2efe00(0x100),_0x4c2698['tVEhp']='RzcyH',_0x4c2698[_0x2efe00(0x8a)]=function(_0x4d3fab,_0x169fb4){return _0x4d3fab!==_0x169fb4;},_0x4c2698[_0x2efe00(0x188)]=_0x2efe00(0x125),_0x4c2698[_0x2efe00(0xd3)]=_0x2efe00(0xfa);const _0x1fd217=_0x4c2698,_0x2e7ec9={};_0x2e7ec9[_0x2efe00(0x137)]=[_0x1fd217[_0x2efe00(0x172)]],_0x2e7ec9['keyFile']=this[_0x2efe00(0x168)];const _0x5c20b8=await google[_0x2efe00(0xaa)][_0x2efe00(0x1b1)](_0x2e7ec9),_0xf81b01=await this[_0x2efe00(0xcb)][_0x2efe00(0x154)][_0x2efe00(0x14c)][_0x2efe00(0x19f)]({'name':_0x2efe00(0xf6)+this[_0x2efe00(0x121)],'auth':_0x5c20b8});for(const _0x2282a8 of _0xf81b01?.[_0x2efe00(0xa8)]?.[_0x2efe00(0xea)]){if(_0x1fd217[_0x2efe00(0x11f)](_0x1fd217['gEXte'],_0x1fd217[_0x2efe00(0x149)])){if(_0x1fd217['WzTMt'](_0x2282a8?.[_0x2efe00(0xa2)],_0x2efe00(0xf6)+this[_0x2efe00(0x121)]+_0x2efe00(0x13f)+this[_0x2efe00(0x1ae)]+'@'+this[_0x2efe00(0x121)]+_0x2efe00(0x1b4))){if(_0x1fd217['lhrBx'](_0x1fd217[_0x2efe00(0x188)],_0x1fd217[_0x2efe00(0xd3)]))return!![];else{const _0x2162ad=_0x2efe00(0xe1)+this[_0x2efe00(0x121)]+_0x2efe00(0x1b3)+_0x25dfcc[_0x2efe00(0x144)]+_0x2efe00(0xfb)+_0x508898[0x0];if(_0x1fd217['WzTMt'](_0x2162ad,_0x132ac5))return[!![],_0x349dc5];}}}else return!![];}return![];}async[a3_0xf2414(0x104)](){const _0x45ce38=a3_0xf2414,_0x128b41={};_0x128b41[_0x45ce38(0xcd)]=function(_0x16f047,_0x510d64){return _0x16f047===_0x510d64;},_0x128b41[_0x45ce38(0xbb)]=_0x45ce38(0x11a),_0x128b41[_0x45ce38(0xa9)]=_0x45ce38(0x192),_0x128b41['zsxuq']=_0x45ce38(0xed),_0x128b41[_0x45ce38(0xcc)]=_0x45ce38(0xba),_0x128b41['eoGLR']=_0x45ce38(0x13a),_0x128b41['JzxOe']='iam.serviceAccounts.signBlob',_0x128b41[_0x45ce38(0xa3)]=_0x45ce38(0xae),_0x128b41[_0x45ce38(0x19d)]=_0x45ce38(0x8d),_0x128b41[_0x45ce38(0x182)]=_0x45ce38(0x184),_0x128b41[_0x45ce38(0x126)]=_0x45ce38(0x19c),_0x128b41[_0x45ce38(0x159)]=_0x45ce38(0xc0),_0x128b41[_0x45ce38(0xf4)]=_0x45ce38(0x16f),_0x128b41['TKSDc']='storage.buckets.getObjectInsights',_0x128b41[_0x45ce38(0xbe)]=_0x45ce38(0xd5),_0x128b41[_0x45ce38(0x9b)]=_0x45ce38(0x158),_0x128b41['wImdF']=_0x45ce38(0xc2),_0x128b41[_0x45ce38(0x1b8)]='storage.buckets.setIamPolicy',_0x128b41[_0x45ce38(0xe9)]=_0x45ce38(0xc6),_0x128b41['STclc']='storage.multipartUploads.abort',_0x128b41['pfcEB']=_0x45ce38(0x107),_0x128b41[_0x45ce38(0x189)]='storage.multipartUploads.list',_0x128b41[_0x45ce38(0x11e)]=_0x45ce38(0x130),_0x128b41['pLdrm']=_0x45ce38(0x16a),_0x128b41[_0x45ce38(0xa7)]=_0x45ce38(0x1ad),_0x128b41[_0x45ce38(0xab)]=_0x45ce38(0xb8),_0x128b41['rmshV']=_0x45ce38(0x1a6),_0x128b41[_0x45ce38(0xdd)]=_0x45ce38(0xff),_0x128b41[_0x45ce38(0x146)]='storage.objects.setIamPolicy',_0x128b41[_0x45ce38(0xdf)]=_0x45ce38(0xf9),_0x128b41[_0x45ce38(0x173)]=_0x45ce38(0x128),_0x128b41[_0x45ce38(0x9d)]=_0x45ce38(0xdc);const _0x1917bd=_0x128b41,_0x1d55b2=await this[_0x45ce38(0x115)]();if(_0x1d55b2){if(_0x1917bd[_0x45ce38(0xcd)](_0x1917bd[_0x45ce38(0xbb)],_0x1917bd[_0x45ce38(0xa9)]))!this[_0x45ce38(0x14e)]()&&this[_0x45ce38(0x162)]();else{logger[_0x45ce38(0x1a1)](_0x1917bd[_0x45ce38(0x191)]);return;}}logger[_0x45ce38(0x1a1)](_0x1917bd[_0x45ce38(0xcc)]);const _0x2cde87={};_0x2cde87[_0x45ce38(0x137)]=[_0x1917bd[_0x45ce38(0x1ab)]],_0x2cde87['keyFile']=this[_0x45ce38(0x168)];const _0xa1ed21=await google['auth'][_0x45ce38(0x1b1)](_0x2cde87),_0x40fb7a={};_0x40fb7a[_0x45ce38(0x16d)]=[_0x1917bd[_0x45ce38(0x120)],_0x1917bd[_0x45ce38(0xa3)],_0x1917bd['uyIky'],_0x1917bd[_0x45ce38(0x182)],_0x1917bd[_0x45ce38(0x126)],_0x1917bd[_0x45ce38(0x159)],_0x1917bd['OaSjp'],_0x1917bd[_0x45ce38(0xfd)],_0x1917bd[_0x45ce38(0xbe)],_0x1917bd['RUjFw'],_0x1917bd[_0x45ce38(0xb5)],_0x1917bd[_0x45ce38(0x1b8)],_0x1917bd[_0x45ce38(0xe9)],_0x1917bd[_0x45ce38(0xd0)],_0x1917bd[_0x45ce38(0x10b)],_0x1917bd[_0x45ce38(0x189)],_0x1917bd[_0x45ce38(0x11e)],_0x1917bd[_0x45ce38(0x13b)],_0x1917bd[_0x45ce38(0xa7)],_0x1917bd['Pwuys'],_0x1917bd['rmshV'],_0x1917bd[_0x45ce38(0xdd)],_0x1917bd[_0x45ce38(0x146)],_0x1917bd[_0x45ce38(0xdf)]],_0x40fb7a[_0x45ce38(0x176)]=_0x1917bd[_0x45ce38(0x173)],await this[_0x45ce38(0xcb)]['organizations'][_0x45ce38(0x89)]['create']({'parent':_0x45ce38(0xf6)+this[_0x45ce38(0x121)],'requestBody':{'role':_0x40fb7a,'roleId':this[_0x45ce38(0x156)]},'auth':_0xa1ed21});const _0x11e81c={};_0x11e81c['name']=_0x45ce38(0xf6)+this['projectId'],_0x11e81c[_0x45ce38(0xfc)]={},_0x11e81c[_0x45ce38(0xaa)]=_0xa1ed21,_0x11e81c[_0x45ce38(0xfc)][_0x45ce38(0xe5)]=this[_0x45ce38(0x1ae)];const _0x5ee747=_0x11e81c;await this[_0x45ce38(0xcb)][_0x45ce38(0x154)][_0x45ce38(0x14c)][_0x45ce38(0x1b2)](_0x5ee747);let _0x2074fd=await this[_0x45ce38(0x138)][_0x45ce38(0x19b)]({'resource':_0x45ce38(0xf6)+this['projectId']});_0x2074fd=_0x2074fd[0x0]['bindings'];const _0x40e74f={};_0x40e74f[_0x45ce38(0x134)]=_0x45ce38(0xf6)+this['projectId']+_0x45ce38(0xf1)+this[_0x45ce38(0x156)],_0x40e74f['members']=[_0x45ce38(0x12c)+this[_0x45ce38(0x1ae)]+'@'+this[_0x45ce38(0x121)]+_0x45ce38(0x1b4)],_0x2074fd[_0x45ce38(0xe4)](_0x40e74f);const _0x27fbde={};_0x27fbde[_0x45ce38(0x8e)]=_0x2074fd,await this[_0x45ce38(0x138)][_0x45ce38(0x9f)]({'resource':'projects/'+this[_0x45ce38(0x121)],'policy':_0x27fbde}),logger['info'](_0x1917bd['mTsAy']);}async[a3_0xf2414(0x186)](_0x527e6d=a3_0xf2414(0x197),_0x2402f0=[a3_0xf2414(0x197)]){const _0x518d73=a3_0xf2414,_0x2b3677={};_0x2b3677['jIABb']=_0x518d73(0x12f),_0x2b3677[_0x518d73(0x113)]='Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x2b3677[_0x518d73(0x198)]=_0x518d73(0x164);const _0x961f5f=_0x2b3677,_0x494b3a=_0x961f5f[_0x518d73(0x17f)]['split']('|');let _0x1d8086=0x0;while(!![]){switch(_0x494b3a[_0x1d8086++]){case'0':await this[_0x518d73(0x104)]();continue;case'1':await this[_0x518d73(0x18f)](_0x527e6d,_0x2402f0);continue;case'2':return!![];case'3':const _0x5f5342={};_0x5f5342['type']=WS_EVENTS[_0x518d73(0x118)],_0x5f5342[_0x518d73(0x167)]=_0x961f5f[_0x518d73(0x113)],this[_0x518d73(0xac)]['sendEventToBackend'](this[_0x518d73(0x109)],_0x5f5342);continue;case'4':logger[_0x518d73(0x1a1)](_0x961f5f[_0x518d73(0x198)]);continue;case'5':this['sendGCPInfoToHST'](this['rws']);continue;}break;}}async[a3_0xf2414(0x18f)](_0x1c6918='default',_0x4cb71e=[a3_0xf2414(0x197)]){const _0x56a060=a3_0xf2414,_0x58da4c={};_0x58da4c[_0x56a060(0x141)]=_0x56a060(0x153),_0x58da4c[_0x56a060(0xec)]=function(_0x56ab8f,_0x5ce17e){return _0x56ab8f===_0x5ce17e;},_0x58da4c[_0x56a060(0xf8)]=_0x56a060(0x10a),_0x58da4c['DeZhX']=_0x56a060(0x165),_0x58da4c['KgVtx']='Creating\x20GKE\x20Cluster',_0x58da4c[_0x56a060(0xb9)]='templates',_0x58da4c['zsLEE']=_0x56a060(0x133),_0x58da4c['ZaYEo']='gkecluster.json',_0x58da4c[_0x56a060(0xbc)]='utf-8',_0x58da4c[_0x56a060(0x17c)]=_0x56a060(0x143),_0x58da4c[_0x56a060(0x174)]=function(_0x4ce87f,_0x3907d9){return _0x4ce87f*_0x3907d9;},_0x58da4c[_0x56a060(0xf0)]=function(_0x3e6802,_0x124e2d){return _0x3e6802*_0x124e2d;},_0x58da4c['QURbQ']=function(_0x212e21,_0x4def29){return _0x212e21===_0x4def29;},_0x58da4c['nAZtA']=_0x56a060(0xb1),_0x58da4c['ShoWc']=_0x56a060(0x131),_0x58da4c[_0x56a060(0x136)]=function(_0x395753,_0x3b97a3){return _0x395753===_0x3b97a3;},_0x58da4c[_0x56a060(0x17b)]='DnYQF',_0x58da4c[_0x56a060(0x160)]=_0x56a060(0x142),_0x58da4c[_0x56a060(0x124)]=function(_0x3fd9c4,_0x88333c){return _0x3fd9c4===_0x88333c;},_0x58da4c[_0x56a060(0x18c)]=_0x56a060(0x98),_0x58da4c['IUPez']=_0x56a060(0x157);const _0x12a31e=_0x58da4c;try{if(_0x12a31e[_0x56a060(0xec)](_0x12a31e[_0x56a060(0xf8)],_0x12a31e[_0x56a060(0x181)])){_0x439eaf[_0x56a060(0x1a1)](_0x12a31e['iwhgK']);throw _0x5f25f9;}else{logger[_0x56a060(0x1a1)](_0x12a31e[_0x56a060(0xb4)]);let _0x42980a=await fs['readFileAsync'](path[_0x56a060(0xa1)](__dirname,'..',_0x12a31e[_0x56a060(0xb9)],_0x12a31e['zsLEE'],_0x12a31e[_0x56a060(0xe3)]),_0x12a31e[_0x56a060(0xbc)]);_0x42980a=JSON[_0x56a060(0x183)](_0x42980a);let _0x45cae5=await fs[_0x56a060(0x127)](path[_0x56a060(0xa1)](__dirname,'..',_0x12a31e[_0x56a060(0xb9)],_0x12a31e[_0x56a060(0x18a)],_0x12a31e[_0x56a060(0x17c)]),_0x12a31e[_0x56a060(0xbc)]);_0x45cae5=JSON['parse'](_0x45cae5),_0x42980a[_0x56a060(0xa2)]=this[_0x56a060(0xde)],_0x42980a['nodePools'][0x0][_0x56a060(0x114)][_0x56a060(0x1a8)]=global_registry[_0x56a060(0xad)],_0x42980a[_0x56a060(0x15c)][0x0][_0x56a060(0x114)][_0x56a060(0xa4)]=this[_0x56a060(0x1ae)]+'@'+this[_0x56a060(0x121)]+'.iam.gserviceaccount.com',_0x42980a['nodePools'][0x0][_0x56a060(0x96)]['minNodeCount']=global_registry[_0x56a060(0xe0)],_0x42980a[_0x56a060(0x15c)][0x0][_0x56a060(0x96)][_0x56a060(0x129)]=global_registry[_0x56a060(0x190)],_0x42980a[_0x56a060(0x152)]=global_registry[_0x56a060(0x144)],_0x42980a[_0x56a060(0x151)]=[_0x45cae5[global_registry[_0x56a060(0x144)]][0x0]],_0x42980a[_0x56a060(0xbd)]='projects/'+this[_0x56a060(0x121)]+_0x56a060(0x14a)+_0x1c6918,_0x42980a['subnetwork']=_0x56a060(0xf6)+this[_0x56a060(0x121)]+'/regions/'+global_registry[_0x56a060(0x144)]+'/subnetworks/'+_0x4cb71e[0x0];const _0x538f39=await this[_0x56a060(0x1aa)]['createCluster']({'cluster':_0x42980a,'parent':_0x56a060(0xf6)+this[_0x56a060(0x121)]+_0x56a060(0x169)+global_registry['clusterRegion']});await this[_0x56a060(0xac)]['delay'](_0x12a31e[_0x56a060(0x174)](_0x12a31e['qprWF'](0x7,0x3c),0x3e8));}}catch(_0x4ec148){if(_0x12a31e[_0x56a060(0xf5)](_0x12a31e[_0x56a060(0x13e)],_0x12a31e[_0x56a060(0x175)]))_0x1509f8[_0x56a060(0x108)][_0x56a060(0xe4)](_0x41c44b);else{const _0x1d8c5f=await this['isClusterPresent']();if(_0x1d8c5f){if(_0x12a31e[_0x56a060(0x136)](_0x12a31e['wTKOQ'],_0x12a31e[_0x56a060(0x17b)]))logger[_0x56a060(0x1a1)](_0x12a31e['Bnuyw'],_0x4ec148[_0x56a060(0xd9)]),await this[_0x56a060(0x105)]();else return!![];}else{if(_0x12a31e[_0x56a060(0x124)](_0x12a31e[_0x56a060(0x18c)],_0x12a31e['ZWCwL']))logger[_0x56a060(0x1a1)](_0x12a31e[_0x56a060(0x95)]);else{const _0x2404ba=this[_0x56a060(0x168)],_0x210adf={};_0x210adf[_0x56a060(0x199)]=_0x2404ba,this[_0x56a060(0x1aa)]=new _0x40f2fd['v1'][(_0x56a060(0x180))](_0x210adf);const _0x40d4bf={};_0x40d4bf[_0x56a060(0x199)]=_0x2404ba,this['networkClient']=new _0x106276['v1'][(_0x56a060(0x1a9))](_0x40d4bf);const _0xa8cabb={};_0xa8cabb[_0x56a060(0x199)]=_0x2404ba,this[_0x56a060(0x138)]=new _0x7ae75(_0xa8cabb),this[_0x56a060(0xcb)]=_0x9c7c6b[_0x56a060(0x166)]('v1'),_0x3c679f['gcpConfigSet']=!![];}}throw _0x4ec148;}}}async[a3_0xf2414(0x105)](_0x3f5f0e,_0x381d3e){const _0x48a493=a3_0xf2414,_0xf9e574={'tEBPQ':_0x48a493(0x157),'hqpei':_0x48a493(0xed),'kvUnj':function(_0x2a49c5,_0x417a50){return _0x2a49c5!==_0x417a50;},'vRckz':_0x48a493(0x179),'LzejF':function(_0x10da3a,_0x563ebe){return _0x10da3a(_0x563ebe);},'dlMMw':function(_0x213beb,_0x1d9053){return _0x213beb===_0x1d9053;},'ybvLy':_0x48a493(0xe2),'EHGkZ':_0x48a493(0x196),'ppvBZ':function(_0x15104e,_0x2522f9){return _0x15104e!==_0x2522f9;},'JaYkh':_0x48a493(0x155),'SkgRH':_0x48a493(0x171),'TsFIA':function(_0x205c7a,_0x432827){return _0x205c7a===_0x432827;},'kzXOE':'WIIun','cnKWa':_0x48a493(0x153)};try{if(_0xf9e574[_0x48a493(0xef)](_0xf9e574['vRckz'],_0xf9e574[_0x48a493(0xca)]))_0x20017a['info'](_0xf9e574['tEBPQ']);else{await _0xf9e574[_0x48a493(0x1a2)](deleteRoutingDeps,_0x3f5f0e),logger[_0x48a493(0x1a1)]('Deleting\x20the\x20cluster\x20'+this[_0x48a493(0xde)]);const _0x281ddb=await this[_0x48a493(0x1aa)][_0x48a493(0x105)]({'name':_0x48a493(0xf6)+this[_0x48a493(0x121)]+_0x48a493(0x169)+global_registry[_0x48a493(0x144)]+_0x48a493(0xb7)+this[_0x48a493(0xde)]});if(_0xf9e574[_0x48a493(0x15a)](_0x281ddb[0x0]?.['status'],_0xf9e574[_0x48a493(0x177)])||_0xf9e574[_0x48a493(0x15a)](_0x281ddb[0x0]?.[_0x48a493(0x90)],_0xf9e574[_0x48a493(0x12d)])){if(_0xf9e574['ppvBZ'](_0xf9e574[_0x48a493(0xeb)],_0xf9e574[_0x48a493(0x10c)]))return!![];else{_0x224f81[_0x48a493(0x1a1)](_0xf9e574[_0x48a493(0x103)]);return;}}logger[_0x48a493(0x1a1)](_0x48a493(0x87));}}catch(_0x2a8ace){if(_0xf9e574[_0x48a493(0xa6)](_0xf9e574[_0x48a493(0x14f)],_0xf9e574[_0x48a493(0x14f)])){logger[_0x48a493(0x1a1)](_0xf9e574['cnKWa']);throw _0x2a8ace;}else return[!![],_0x3417f4];}}async['isVPCPresent'](_0x806215){const _0x38fcfd=a3_0xf2414,_0x2a4223={};_0x2a4223[_0x38fcfd(0xc3)]=function(_0x1261eb,_0x2f6a67){return _0x1261eb===_0x2f6a67;},_0x2a4223[_0x38fcfd(0x97)]=_0x38fcfd(0x19a),_0x2a4223[_0x38fcfd(0x15d)]=function(_0x54e601,_0x15c4c8){return _0x54e601===_0x15c4c8;},_0x2a4223[_0x38fcfd(0x8f)]='lECfW',_0x2a4223['CgOQY']=function(_0x435a86,_0x2bb2ff){return _0x435a86>_0x2bb2ff;},_0x2a4223['ttpER']=function(_0x38b09e,_0x17d17a){return _0x38b09e===_0x17d17a;},_0x2a4223[_0x38fcfd(0x101)]=function(_0x31d0d8,_0x40d854){return _0x31d0d8!==_0x40d854;},_0x2a4223['kzbtN']=_0x38fcfd(0x93),_0x2a4223[_0x38fcfd(0x112)]=_0x38fcfd(0x13d),_0x2a4223[_0x38fcfd(0x16c)]=_0x38fcfd(0x1a5),_0x2a4223['RVqUm']=_0x38fcfd(0xaf);const _0x297c7f=_0x2a4223;try{if(_0x297c7f['gJWPd'](_0x297c7f[_0x38fcfd(0x8f)],_0x297c7f[_0x38fcfd(0x8f)])){const _0x509f06={};_0x509f06[_0x38fcfd(0x11c)]=projectId,_0x509f06[_0x38fcfd(0xbd)]=_0x806215;const _0x14add9=await networkClient['get'](_0x509f06);if(_0x297c7f[_0x38fcfd(0x18b)](_0x14add9[_0x38fcfd(0x9e)],0x0)&&_0x297c7f[_0x38fcfd(0x122)](_0x14add9[0x0]['name'],_0x806215))return _0x297c7f['XqstT'](_0x297c7f[_0x38fcfd(0x16b)],_0x297c7f[_0x38fcfd(0x112)])?!![]:![];}else{const _0x35e8e9=_0x380073[0x0]?.[_0x38fcfd(0x12a)]?.[_0x38fcfd(0x111)];return _0x35e8e9&&_0x297c7f[_0x38fcfd(0xc3)](_0x35e8e9[_0x38fcfd(0x1a0)](),_0x297c7f['egIrV']);}}catch(_0x33f81f){return _0x297c7f[_0x38fcfd(0x101)](_0x297c7f['socaA'],_0x297c7f[_0x38fcfd(0xd1)])?![]:!![];}return![];}async['isSubnetsValid'](_0x521d68,_0x330ea6){const _0x18a64e=a3_0xf2414,_0x1e3735={};_0x1e3735[_0x18a64e(0x99)]=function(_0x35888c,_0x340ca4){return _0x35888c===_0x340ca4;},_0x1e3735[_0x18a64e(0x148)]=function(_0x42dac0,_0x3e9983){return _0x42dac0===_0x3e9983;},_0x1e3735[_0x18a64e(0xbf)]=_0x18a64e(0xf3),_0x1e3735[_0x18a64e(0xd4)]=function(_0xc871f,_0xea7478){return _0xc871f===_0xea7478;},_0x1e3735[_0x18a64e(0x18e)]=_0x18a64e(0x13c),_0x1e3735[_0x18a64e(0xcf)]=_0x18a64e(0xf7);const _0x2a0ec2=_0x1e3735;try{const _0x1dbfdd={};_0x1dbfdd[_0x18a64e(0x11c)]=projectId,_0x1dbfdd['network']=_0x330ea6;const _0x49d266=await networkClient[_0x18a64e(0xc1)](_0x1dbfdd);for(const _0x342766 of _0x49d266[0x0]['subnetworks']){if(_0x2a0ec2[_0x18a64e(0x148)](_0x2a0ec2[_0x18a64e(0xbf)],_0x2a0ec2['agriz'])){const _0x573923=_0x18a64e(0xe1)+this[_0x18a64e(0x121)]+_0x18a64e(0x1b3)+global_registry['clusterRegion']+_0x18a64e(0xfb)+_0x521d68[0x0];if(_0x2a0ec2[_0x18a64e(0xd4)](_0x573923,_0x342766)){if(_0x2a0ec2['YCCOQ'](_0x2a0ec2[_0x18a64e(0x18e)],_0x2a0ec2[_0x18a64e(0xcf)]))this[_0x18a64e(0x162)]();else return[!![],_0x521d68];}}else{if(_0x2a0ec2[_0x18a64e(0x99)](_0x4065bc?.['name'],_0x18a64e(0xf6)+this['projectId']+_0x18a64e(0x13f)+this[_0x18a64e(0x1ae)]+'@'+this[_0x18a64e(0x121)]+_0x18a64e(0x1b4)))return!![];}}}catch(_0x54e80e){return logger[_0x18a64e(0xb6)]('Cannot\x20find\x20subnets\x20'+_0x521d68+_0x18a64e(0x193)+_0x54e80e),[![],[]];}return[![],[]];}async[a3_0xf2414(0x19e)](){const _0x2bc26e=a3_0xf2414,_0x3430d8=await this[_0x2bc26e(0x88)][_0x2bc26e(0x19f)]({'project':this[_0x2bc26e(0x121)]}),_0xeb9a98={};_0xeb9a98[_0x2bc26e(0x139)]=global_registry['bstackUsername'],_0xeb9a98[_0x2bc26e(0x14d)]=global_registry[_0x2bc26e(0xd2)],_0xeb9a98[_0x2bc26e(0x102)]=GCP,_0xeb9a98[_0x2bc26e(0x108)]=[];const _0x2c92ea=_0xeb9a98;for(const _0x1288c1 of _0x3430d8){_0x2c92ea[_0x2bc26e(0x108)][_0x2bc26e(0xe4)](_0x1288c1);}const _0x129b0d={};_0x129b0d['type']=WS_EVENTS['RESOURCES'],_0x129b0d[_0x2bc26e(0x167)]=_0x2c92ea,this[_0x2bc26e(0xac)][_0x2bc26e(0x8c)](this['rws'],_0x129b0d);}}const a3_0x5e3909={};a3_0x5e3909['GoogleCloudProvider']=GoogleCloudProvider,module['exports']=a3_0x5e3909;
@@ -1 +1 @@
1
- const a4_0x455d27=a4_0x3963;function a4_0x3963(_0xe8e741,_0x516ce6){const _0x282d98=a4_0x282d();return a4_0x3963=function(_0x3963a9,_0x2360ea){_0x3963a9=_0x3963a9-0x16b;let _0x9ac696=_0x282d98[_0x3963a9];return _0x9ac696;},a4_0x3963(_0xe8e741,_0x516ce6);}(function(_0x3e6eb9,_0x1ac911){const _0x220043=a4_0x3963,_0x5e0b26=_0x3e6eb9();while(!![]){try{const _0x252e23=parseInt(_0x220043(0x17e))/0x1+parseInt(_0x220043(0x17c))/0x2*(parseInt(_0x220043(0x185))/0x3)+-parseInt(_0x220043(0x16b))/0x4*(parseInt(_0x220043(0x173))/0x5)+parseInt(_0x220043(0x16d))/0x6*(parseInt(_0x220043(0x183))/0x7)+parseInt(_0x220043(0x177))/0x8*(parseInt(_0x220043(0x182))/0x9)+parseInt(_0x220043(0x171))/0xa+-parseInt(_0x220043(0x17d))/0xb;if(_0x252e23===_0x1ac911)break;else _0x5e0b26['push'](_0x5e0b26['shift']());}catch(_0xae005f){_0x5e0b26['push'](_0x5e0b26['shift']());}}}(a4_0x282d,0x5b388));const fs=require('fs'),path=require(a4_0x455d27(0x186)),os=require('os'),yaml=require(a4_0x455d27(0x181)),container=require(a4_0x455d27(0x175)),k8s=require('@kubernetes/client-node'),compute=require(a4_0x455d27(0x176)),{google}=require(a4_0x455d27(0x16c)),{PoliciesClient}=require(a4_0x455d27(0x16f))['v2'],{iam}=require(a4_0x455d27(0x16f));async function main(){const _0x17f665=a4_0x455d27,_0x24d96e={};_0x24d96e['nGwDI']=_0x17f665(0x179),_0x24d96e['Pwtgo']=_0x17f665(0x17f),_0x24d96e[_0x17f665(0x172)]=_0x17f665(0x16e);const _0x39ee6b=_0x24d96e;try{let _0x28d0f7=_0x39ee6b['nGwDI'];const _0x49d2a9=_0x39ee6b[_0x17f665(0x184)],_0x1b1d8d={};_0x1b1d8d[_0x17f665(0x17a)]=_0x28d0f7;const _0x414ab8=new compute['v1'][(_0x17f665(0x178))](_0x1b1d8d),_0x40e1b3={};_0x40e1b3[_0x17f665(0x17b)]=_0x49d2a9,_0x40e1b3[_0x17f665(0x180)]=_0x39ee6b[_0x17f665(0x172)];const _0x1f4018=await _0x414ab8[_0x17f665(0x174)](_0x40e1b3);console[_0x17f665(0x170)](_0x1f4018);}catch(_0xfb4a42){console['log'](_0xfb4a42);}}function a4_0x282d(){const _0x35db0e=['@google-cloud/compute','6104vqAPjg','NetworksClient','/Users/user/Downloads/bstack-turboscale-staging-1a66b19ac9fd.json','keyFile','project','37078PDDkct','14283731iojgQH','364139pTXasn','bstack-turboscale-staging','network','js-yaml','6768xKgQUA','21kFLNZt','Pwtgo','87KjcQqQ','path','2408540AVrOjS','googleapis','455082WVvNGM','test-vpc-1','@google-cloud/iam','log','5712090FIxpsc','DDNOn','5ULazJi','get','@google-cloud/container'];a4_0x282d=function(){return _0x35db0e;};return a4_0x282d();}main();
1
+ const a4_0x32b6a4=a4_0x2112;function a4_0x4100(){const _0x5eb18a=['get','@kubernetes/client-node','18676jFAymW','CkDvC','1844664JlbrMB','js-yaml','39048LfEWEO','@google-cloud/iam','259uOlnNO','@google-cloud/container','1308355qhUMaM','test-vpc-1','network','22HhLnka','30tHfVvH','/Users/user/Downloads/bstack-turboscale-staging-1a66b19ac9fd.json','832959tGTgFF','4570908JYQbBY','TNSXi','project','CpiXh','8jHeAms','NetworksClient','947145qcLAPw','1ricqeb','googleapis','@google-cloud/compute','log'];a4_0x4100=function(){return _0x5eb18a;};return a4_0x4100();}function a4_0x2112(_0x568566,_0x66d9f3){const _0x410043=a4_0x4100();return a4_0x2112=function(_0x2112f7,_0x5da09d){_0x2112f7=_0x2112f7-0x117;let _0x2d7723=_0x410043[_0x2112f7];return _0x2d7723;},a4_0x2112(_0x568566,_0x66d9f3);}(function(_0x4a183e,_0x104f23){const _0x56c27e=a4_0x2112,_0x5025be=_0x4a183e();while(!![]){try{const _0x319b70=parseInt(_0x56c27e(0x126))/0x1*(-parseInt(_0x56c27e(0x12c))/0x2)+-parseInt(_0x56c27e(0x125))/0x3+-parseInt(_0x56c27e(0x123))/0x4*(parseInt(_0x56c27e(0x118))/0x5)+parseInt(_0x56c27e(0x12e))/0x6+parseInt(_0x56c27e(0x132))/0x7*(-parseInt(_0x56c27e(0x130))/0x8)+-parseInt(_0x56c27e(0x11e))/0x9*(-parseInt(_0x56c27e(0x11c))/0xa)+-parseInt(_0x56c27e(0x11b))/0xb*(-parseInt(_0x56c27e(0x11f))/0xc);if(_0x319b70===_0x104f23)break;else _0x5025be['push'](_0x5025be['shift']());}catch(_0x55bba7){_0x5025be['push'](_0x5025be['shift']());}}}(a4_0x4100,0x4d9e3));const fs=require('fs'),path=require('path'),os=require('os'),yaml=require(a4_0x32b6a4(0x12f)),container=require(a4_0x32b6a4(0x117)),k8s=require(a4_0x32b6a4(0x12b)),compute=require(a4_0x32b6a4(0x128)),{google}=require(a4_0x32b6a4(0x127)),{PoliciesClient}=require(a4_0x32b6a4(0x131))['v2'],{iam}=require(a4_0x32b6a4(0x131));async function main(){const _0x337048=a4_0x32b6a4,_0x1b2512={};_0x1b2512['TNSXi']=_0x337048(0x11d),_0x1b2512[_0x337048(0x122)]='bstack-turboscale-staging',_0x1b2512[_0x337048(0x12d)]=_0x337048(0x119);const _0x2746ff=_0x1b2512;try{let _0x2b8933=_0x2746ff[_0x337048(0x120)];const _0x5c2fb8=_0x2746ff[_0x337048(0x122)],_0x2c86c6={};_0x2c86c6['keyFile']=_0x2b8933;const _0xa8fbd0=new compute['v1'][(_0x337048(0x124))](_0x2c86c6),_0x17630a={};_0x17630a[_0x337048(0x121)]=_0x5c2fb8,_0x17630a[_0x337048(0x11a)]=_0x2746ff[_0x337048(0x12d)];const _0x1dcb4f=await _0xa8fbd0[_0x337048(0x12a)](_0x17630a);console[_0x337048(0x129)](_0x1dcb4f);}catch(_0x146909){console[_0x337048(0x129)](_0x146909);}}main();
@@ -1 +1 @@
1
- const a5_0x297ad6=a5_0x562b;(function(_0x1de772,_0x2fd2bd){const _0x31a62c=a5_0x562b,_0x25d012=_0x1de772();while(!![]){try{const _0x54bdca=parseInt(_0x31a62c(0xfe))/0x1*(-parseInt(_0x31a62c(0x106))/0x2)+-parseInt(_0x31a62c(0xfd))/0x3*(-parseInt(_0x31a62c(0x100))/0x4)+parseInt(_0x31a62c(0x109))/0x5+-parseInt(_0x31a62c(0x105))/0x6+parseInt(_0x31a62c(0xfb))/0x7+-parseInt(_0x31a62c(0x104))/0x8+-parseInt(_0x31a62c(0xff))/0x9*(-parseInt(_0x31a62c(0x102))/0xa);if(_0x54bdca===_0x2fd2bd)break;else _0x25d012['push'](_0x25d012['shift']());}catch(_0x9d89ad){_0x25d012['push'](_0x25d012['shift']());}}}(a5_0x4c8a,0xadb30));function a5_0x562b(_0x316e7e,_0x2bad7e){const _0x4c8a9a=a5_0x4c8a();return a5_0x562b=function(_0x562baa,_0x1f20ac){_0x562baa=_0x562baa-0xfa;let _0x4656c5=_0x4c8a9a[_0x562baa];return _0x4656c5;},a5_0x562b(_0x316e7e,_0x2bad7e);}function a5_0x4c8a(){const _0x56447d=['1154908OZHDbP','./Azure','3339630OKQFcz','Unknown\x20cloud\x20provider\x20found\x20-\x20','155336BdZtPW','5390604DdSgvU','4996utkAmt','error','./GoogleCloudProvider','3687635jVoUpy','getCloudProviderObject','4226866OVuoAt','./AWS','3pTVyug','134fSlIsP','9onlTiO'];a5_0x4c8a=function(){return _0x56447d;};return a5_0x4c8a();}const {AWSCloudProvider}=require(a5_0x297ad6(0xfc)),{AzureCloudProvider}=require(a5_0x297ad6(0x101)),{GoogleCloudProvider}=require(a5_0x297ad6(0x108)),{AWS,AZURE,GCP}=require('../config/constants');exports[a5_0x297ad6(0xfa)]=(_0x481d7e,_0x2528ac,_0xdc5ae4,_0x466d9b,_0x41211b)=>{const _0x346286=a5_0x297ad6;switch(_0x481d7e){case AWS:return new AWSCloudProvider(_0x2528ac,_0xdc5ae4,_0x466d9b,_0x41211b);case GCP:return new GoogleCloudProvider(_0x2528ac,_0xdc5ae4,_0x466d9b,_0x41211b);default:console[_0x346286(0x107)](_0x346286(0x103)+_0x481d7e),process['exit'](0x1);}};
1
+ function a5_0x7222(_0x2b4ecb,_0x4f9cf7){const _0x30e95e=a5_0x30e9();return a5_0x7222=function(_0x722291,_0x32bbd0){_0x722291=_0x722291-0xed;let _0x24965f=_0x30e95e[_0x722291];return _0x24965f;},a5_0x7222(_0x2b4ecb,_0x4f9cf7);}const a5_0xd7eba1=a5_0x7222;(function(_0x359ad7,_0x2519ee){const _0x34012e=a5_0x7222,_0xe0b31d=_0x359ad7();while(!![]){try{const _0x232807=parseInt(_0x34012e(0xed))/0x1+parseInt(_0x34012e(0xf7))/0x2+-parseInt(_0x34012e(0xf4))/0x3+parseInt(_0x34012e(0xf5))/0x4*(parseInt(_0x34012e(0xee))/0x5)+parseInt(_0x34012e(0xf2))/0x6*(parseInt(_0x34012e(0xf0))/0x7)+-parseInt(_0x34012e(0xfc))/0x8*(-parseInt(_0x34012e(0xfb))/0x9)+-parseInt(_0x34012e(0xf3))/0xa*(parseInt(_0x34012e(0xf6))/0xb);if(_0x232807===_0x2519ee)break;else _0xe0b31d['push'](_0xe0b31d['shift']());}catch(_0x481930){_0xe0b31d['push'](_0xe0b31d['shift']());}}}(a5_0x30e9,0xc54cb));function a5_0x30e9(){const _0x19476a=['76312htLCVy','777523rPRrLd','10hYsipa','getCloudProviderObject','21LnqLHC','./Azure','219678eMesqZ','182330wivsaW','2568864rLbvLx','1597624XbuMmc','935MnFpuN','308884JxVNEz','./GoogleCloudProvider','error','Unknown\x20cloud\x20provider\x20found\x20-\x20','1296YOvVGP'];a5_0x30e9=function(){return _0x19476a;};return a5_0x30e9();}const {AWSCloudProvider}=require('./AWS'),{AzureCloudProvider}=require(a5_0xd7eba1(0xf1)),{GoogleCloudProvider}=require(a5_0xd7eba1(0xf8)),{AWS,AZURE,GCP}=require('../config/constants');exports[a5_0xd7eba1(0xef)]=(_0x3fa3ce,_0x516dd4,_0x4328e5,_0xd01b6,_0xcb82cc)=>{const _0xa6ab8e=a5_0xd7eba1;switch(_0x3fa3ce){case AWS:return new AWSCloudProvider(_0x516dd4,_0x4328e5,_0xd01b6,_0xcb82cc);case GCP:return new GoogleCloudProvider(_0x516dd4,_0x4328e5,_0xd01b6,_0xcb82cc);default:console[_0xa6ab8e(0xf9)](_0xa6ab8e(0xfa)+_0x3fa3ce),process['exit'](0x1);}};
@@ -1 +1 @@
1
- function a6_0x5345(_0xcf3065,_0x15d7cf){const _0x440842=a6_0x4408();return a6_0x5345=function(_0x534506,_0x31c932){_0x534506=_0x534506-0x12a;let _0x37b028=_0x440842[_0x534506];return _0x37b028;},a6_0x5345(_0xcf3065,_0x15d7cf);}const a6_0x5c3a57=a6_0x5345;(function(_0x511686,_0x21b5c2){const _0x7e5f1c=a6_0x5345,_0xde5648=_0x511686();while(!![]){try{const _0x4d161e=parseInt(_0x7e5f1c(0x140))/0x1*(-parseInt(_0x7e5f1c(0x167))/0x2)+-parseInt(_0x7e5f1c(0x16c))/0x3*(parseInt(_0x7e5f1c(0x172))/0x4)+parseInt(_0x7e5f1c(0x18c))/0x5*(parseInt(_0x7e5f1c(0x135))/0x6)+-parseInt(_0x7e5f1c(0x18e))/0x7+-parseInt(_0x7e5f1c(0x178))/0x8+-parseInt(_0x7e5f1c(0x182))/0x9*(parseInt(_0x7e5f1c(0x136))/0xa)+parseInt(_0x7e5f1c(0x149))/0xb;if(_0x4d161e===_0x21b5c2)break;else _0xde5648['push'](_0xde5648['shift']());}catch(_0x4338b5){_0xde5648['push'](_0xde5648['shift']());}}}(a6_0x4408,0x97c9f));const fs=require('fs'),util=require(a6_0x5c3a57(0x16d)),request=require('request'),{v4:uuidv4}=require(a6_0x5c3a57(0x157)),{inputConfirmation,closeInput}=require(a6_0x5c3a57(0x144)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a6_0x5c3a57(0x164)),{getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a6_0x5c3a57(0x16b)),promisifiedRequest=util[a6_0x5c3a57(0x12c)](request);function a6_0x4408(){const _0x597df1=['uuid','oflvA','iOUeV','fCaRm','aUlKS','statusCode','MDHlQ','command','invalid-selection','ERROR','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','Djtgj','json','../config/constants','builder','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','2jLSFFB','CYaQn','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','fPRsu','../utils/instrumentationUtils','9rWkvOh','util','nPaYM','argv','active','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','1005164WeWeOd','PiXRI','Kdykj','\x20\x20grid-profile:\x20','stringify','init-not-called','5214512NTOKYN','zAOod','body','\x20\x20username:\x20','sWCpt','dIAPM','eGOcu','error','epilogue','RyRcd','36ZhrkOe','name','readFileSync','help','UaNHd','usage','unknown-error','TltUW','ddVvl','yAVFE','84895TfNjqA','Updated\x20default\x20Grid\x20Profile\x20successfully','7453446ESbQgw','profileId','TrVtl','Wnieg','method','stack','promisify','unauthorised','requestId','toLowerCase','PUT','configure','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','Jqkiw','oZdRu','204GSBitH','2118660yfHeAq','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','password','auth','mazgR','list','FahvX','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','waGSj','Browserstack','871649QeAHqJ','recommendCommands','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','parse','../utils/userInput','NomfS','username','https://','znuOO','46574209arcgBx','INFO','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','exit','url','mcnhX','GET','log','/packages/cli/configure','aPNVS','configure-called','EkJOk','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','yGNbr'];a6_0x4408=function(){return _0x597df1;};return a6_0x4408();}exports[a6_0x5c3a57(0x15e)]=a6_0x5c3a57(0x131),exports['desc']=a6_0x5c3a57(0x142),exports[a6_0x5c3a57(0x165)]=function(_0x1f55cf){const _0x20e5df=a6_0x5c3a57,_0xd25556={};_0xd25556[_0x20e5df(0x159)]=_0x20e5df(0x185);const _0x3d3d8a=_0xd25556;return _0x1f55cf[_0x20e5df(0x187)](HELP_HEADER_MESSAGE[_0x20e5df(0x131)])[_0x20e5df(0x180)](HELP_FOOTER_MESSAGE)[_0x20e5df(0x185)](_0x3d3d8a['iOUeV'])[_0x20e5df(0x141)]()['strict']()[_0x20e5df(0x16f)];},exports['handler']=async function(_0xf6f913){const _0x5bb7dc=a6_0x5c3a57,_0x4b0f2={'mcnhX':function(_0x2db230){return _0x2db230();},'fCaRm':function(_0x3d72c9){return _0x3d72c9();},'PiXRI':_0x5bb7dc(0x161),'oflvA':function(_0x22b4d8,_0x3abfb0,_0x71d9e8,_0x3af8f2,_0x4abe3c,_0x4f055b,_0x18eb75){return _0x22b4d8(_0x3abfb0,_0x71d9e8,_0x3af8f2,_0x4abe3c,_0x4f055b,_0x18eb75);},'eGOcu':_0x5bb7dc(0x153),'AhlTC':_0x5bb7dc(0x177),'NomfS':_0x5bb7dc(0x14f),'Djtgj':function(_0x24cb74,_0x5e9693){return _0x24cb74(_0x5e9693);},'aPNVS':function(_0x5c148c,_0x23ce38){return _0x5c148c!==_0x23ce38;},'DryxD':function(_0x48456c,_0x1febe0){return _0x48456c===_0x1febe0;},'oZdRu':_0x5bb7dc(0x13d),'TrVtl':'core:','CYaQn':function(_0x400050,_0x183025){return _0x400050(_0x183025);},'zAOod':_0x5bb7dc(0x132),'Wnieg':function(_0x5e9dfc,_0x46d893){return _0x5e9dfc===_0x46d893;},'sWCpt':function(_0x7a0105,_0x497446){return _0x7a0105===_0x497446;},'UaNHd':_0x5bb7dc(0x14b),'yGNbr':'invalid-input','dIAPM':_0x5bb7dc(0x137),'nPaYM':function(_0x2fa328,_0x282a62){return _0x2fa328<_0x282a62;},'ddVvl':function(_0x24a504,_0x55b707){return _0x24a504+_0x55b707;},'waGSj':'Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','yAVFE':function(_0x3d7894,_0x5caa21){return _0x3d7894(_0x5caa21);},'eliqQ':function(_0x23bff3,_0x46a7d9){return _0x23bff3(_0x46a7d9);},'znuOO':function(_0x6edc88,_0x72c4f1){return _0x6edc88<=_0x72c4f1;},'mazgR':function(_0x299782,_0x31c5c3){return _0x299782>_0x31c5c3;},'Kdykj':_0x5bb7dc(0x15f),'RyRcd':function(_0x46ddc6){return _0x46ddc6();},'edxNy':function(_0x1ba921,_0x2e9ba4){return _0x1ba921-_0x2e9ba4;},'FahvX':_0x5bb7dc(0x130),'EkJOk':function(_0x1fb6b9,_0x10937b){return _0x1fb6b9(_0x10937b);},'TltUW':function(_0x5f3b4b,_0x11a81f){return _0x5f3b4b!==_0x11a81f;},'YTMWF':_0x5bb7dc(0x18d),'MDHlQ':function(_0x27ce9f,_0x47cf0f){return _0x27ce9f===_0x47cf0f;},'Jqkiw':_0x5bb7dc(0x12d),'aUlKS':'server-error','fPRsu':function(_0x4dcf36,_0xc3b542,_0x587a50,_0x82c672,_0x27d121,_0x338f28,_0x219004){return _0x4dcf36(_0xc3b542,_0x587a50,_0x82c672,_0x27d121,_0x338f28,_0x219004);},'KeijN':_0x5bb7dc(0x188)};try{global_registry[_0x5bb7dc(0x12e)]=_0x4b0f2[_0x5bb7dc(0x14e)](uuidv4);const _0x160483=_0x5bb7dc(0x147)+AG_API_URL+_0x5bb7dc(0x151);!fs['existsSync'](_0x4b0f2[_0x5bb7dc(0x15a)](getCredentialsPath))&&(console[_0x5bb7dc(0x17f)](_0x4b0f2[_0x5bb7dc(0x173)]),await _0x4b0f2['oflvA'](sendInstrumentationEvent,_0xf6f913,_0x4b0f2['eGOcu'],messageTypes[_0x5bb7dc(0x160)],_0x4b0f2['AhlTC'],null,_0xf6f913),process[_0x5bb7dc(0x14c)](0x1));await _0x4b0f2['oflvA'](sendInstrumentationEvent,_0xf6f913,_0x4b0f2['eGOcu'],messageTypes[_0x5bb7dc(0x14a)],null,null,_0xf6f913);const _0x3adbbb=JSON[_0x5bb7dc(0x143)](fs[_0x5bb7dc(0x184)](_0x4b0f2['fCaRm'](getCredentialsPath))),_0x417bba={};_0x417bba[_0x5bb7dc(0x146)]=_0x3adbbb[_0x5bb7dc(0x13f)][_0x5bb7dc(0x146)],_0x417bba[_0x5bb7dc(0x138)]=_0x3adbbb['Browserstack'][_0x5bb7dc(0x138)];const _0x170f8b={};_0x170f8b[_0x5bb7dc(0x14d)]=_0x160483,_0x170f8b[_0x5bb7dc(0x12a)]=_0x4b0f2[_0x5bb7dc(0x145)],_0x170f8b[_0x5bb7dc(0x139)]=_0x417bba;const _0x57d392=_0x170f8b,_0x52606b=await _0x4b0f2[_0x5bb7dc(0x162)](promisifiedRequest,_0x57d392);if(_0x4b0f2[_0x5bb7dc(0x152)](_0x52606b,null)&&_0x4b0f2['aPNVS'](_0x52606b,undefined)&&_0x4b0f2['DryxD'](_0x52606b[_0x5bb7dc(0x15c)],0xc8)){const _0x57e6cb=JSON[_0x5bb7dc(0x143)](_0x52606b[_0x5bb7dc(0x17a)]);console[_0x5bb7dc(0x150)](_0x4b0f2[_0x5bb7dc(0x134)]),console[_0x5bb7dc(0x150)](_0x4b0f2[_0x5bb7dc(0x190)]),console['log'](_0x5bb7dc(0x17b)+_0x3adbbb[_0x5bb7dc(0x13f)]['username']),console[_0x5bb7dc(0x150)](_0x5bb7dc(0x175)+_0x57e6cb[_0x5bb7dc(0x170)][_0x5bb7dc(0x183)]);const _0x2ecfde=await _0x4b0f2[_0x5bb7dc(0x168)](inputConfirmation,_0x4b0f2[_0x5bb7dc(0x179)]);(_0x4b0f2['DryxD'](_0x2ecfde,undefined)||_0x4b0f2[_0x5bb7dc(0x191)](_0x2ecfde,null)||!(_0x4b0f2[_0x5bb7dc(0x17c)](_0x2ecfde[_0x5bb7dc(0x12f)](),'y')||_0x4b0f2[_0x5bb7dc(0x17c)](_0x2ecfde['toLowerCase'](),'n')))&&(console[_0x5bb7dc(0x17f)](_0x4b0f2['UaNHd']),await _0x4b0f2[_0x5bb7dc(0x158)](sendInstrumentationEvent,_0xf6f913,_0x4b0f2[_0x5bb7dc(0x17e)],messageTypes[_0x5bb7dc(0x160)],_0x4b0f2[_0x5bb7dc(0x156)],null,_0xf6f913),process['exit'](0x1));_0x4b0f2[_0x5bb7dc(0x191)](_0x2ecfde[_0x5bb7dc(0x12f)](),'n')&&process[_0x5bb7dc(0x14c)](0x0);console[_0x5bb7dc(0x150)](_0x4b0f2[_0x5bb7dc(0x17d)]);const _0x146b57=_0x57e6cb[_0x5bb7dc(0x13b)]['length'];for(let _0x2ca594=0x0;_0x4b0f2[_0x5bb7dc(0x16e)](_0x2ca594,_0x146b57);_0x2ca594+=0x1){console[_0x5bb7dc(0x150)]('['+_0x4b0f2[_0x5bb7dc(0x18a)](_0x2ca594,0x1)+']\x20'+_0x57e6cb[_0x5bb7dc(0x13b)][_0x2ca594][_0x5bb7dc(0x183)]);}const _0x461cc7=await _0x4b0f2['Djtgj'](inputConfirmation,_0x4b0f2[_0x5bb7dc(0x13e)]),_0x1255ec=_0x4b0f2[_0x5bb7dc(0x18b)](Number,_0x461cc7);(_0x4b0f2['eliqQ'](isNaN,_0x1255ec)||_0x4b0f2[_0x5bb7dc(0x148)](_0x1255ec,0x0)||_0x4b0f2[_0x5bb7dc(0x13a)](_0x1255ec,_0x146b57))&&(console[_0x5bb7dc(0x17f)](_0x4b0f2[_0x5bb7dc(0x186)]),await _0x4b0f2['oflvA'](sendInstrumentationEvent,_0xf6f913,_0x4b0f2[_0x5bb7dc(0x17e)],messageTypes[_0x5bb7dc(0x160)],_0x4b0f2[_0x5bb7dc(0x174)],null,_0xf6f913),process['exit'](0x1));_0x4b0f2[_0x5bb7dc(0x181)](closeInput);const _0x5ee22a=_0x57e6cb['list'][_0x4b0f2['edxNy'](_0x1255ec,0x1)]['id'],_0x4bb57b={};_0x4bb57b[_0x5bb7dc(0x146)]=_0x3adbbb[_0x5bb7dc(0x13f)]['username'],_0x4bb57b['password']=_0x3adbbb[_0x5bb7dc(0x13f)][_0x5bb7dc(0x138)];const _0x3c282c={};_0x3c282c[_0x5bb7dc(0x18f)]=_0x5ee22a;const _0x173973={};_0x173973[_0x5bb7dc(0x14d)]=_0x160483,_0x173973[_0x5bb7dc(0x12a)]=_0x4b0f2[_0x5bb7dc(0x13c)],_0x173973['auth']=_0x4bb57b,_0x173973[_0x5bb7dc(0x17a)]=_0x3c282c,_0x173973[_0x5bb7dc(0x163)]=!![];const _0x4fa163=_0x173973,_0x68952a=await _0x4b0f2[_0x5bb7dc(0x154)](promisifiedRequest,_0x4fa163);_0x4b0f2[_0x5bb7dc(0x152)](_0x68952a,null)&&_0x4b0f2[_0x5bb7dc(0x189)](_0x68952a,undefined)&&_0x4b0f2[_0x5bb7dc(0x17c)](_0x68952a[_0x5bb7dc(0x15c)],0xc8)&&(console[_0x5bb7dc(0x150)](_0x4b0f2['YTMWF']),process[_0x5bb7dc(0x14c)](0x0)),_0x4b0f2[_0x5bb7dc(0x15d)](_0x68952a[_0x5bb7dc(0x15c)],0x191)&&(console[_0x5bb7dc(0x17f)](_0x5bb7dc(0x169)),await _0x4b0f2[_0x5bb7dc(0x158)](sendInstrumentationEvent,_0xf6f913,_0x4b0f2[_0x5bb7dc(0x17e)],messageTypes[_0x5bb7dc(0x160)],_0x4b0f2[_0x5bb7dc(0x133)],null,_0xf6f913),process[_0x5bb7dc(0x14c)](0x1)),console['error'](_0x5bb7dc(0x155)+JSON[_0x5bb7dc(0x176)](_0x68952a)),await _0x4b0f2[_0x5bb7dc(0x158)](sendInstrumentationEvent,_0xf6f913,_0x4b0f2[_0x5bb7dc(0x17e)],messageTypes['ERROR'],_0x4b0f2[_0x5bb7dc(0x15b)],_0x68952a,_0xf6f913),process[_0x5bb7dc(0x14c)](0x1);}_0x4b0f2[_0x5bb7dc(0x191)](_0x52606b[_0x5bb7dc(0x15c)],0x191)&&(console[_0x5bb7dc(0x17f)](_0x5bb7dc(0x171)),await _0x4b0f2[_0x5bb7dc(0x158)](sendInstrumentationEvent,_0xf6f913,_0x4b0f2[_0x5bb7dc(0x17e)],messageTypes['ERROR'],_0x4b0f2[_0x5bb7dc(0x133)],null,_0xf6f913),process['exit'](0x1)),console[_0x5bb7dc(0x17f)](_0x5bb7dc(0x166)+JSON['stringify'](_0x52606b)),await _0x4b0f2[_0x5bb7dc(0x16a)](sendInstrumentationEvent,_0xf6f913,_0x4b0f2[_0x5bb7dc(0x17e)],messageTypes[_0x5bb7dc(0x160)],_0x4b0f2[_0x5bb7dc(0x15b)],_0x52606b,_0xf6f913),process[_0x5bb7dc(0x14c)](0x1);}catch(_0x550cc7){console[_0x5bb7dc(0x17f)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x550cc7[_0x5bb7dc(0x12b)]),await _0x4b0f2['oflvA'](sendInstrumentationEvent,_0xf6f913,_0x4b0f2[_0x5bb7dc(0x17e)],messageTypes['ERROR'],_0x4b0f2['KeijN'],_0x550cc7,_0xf6f913),process[_0x5bb7dc(0x14c)](0x1);}};
1
+ const a6_0x994f9f=a6_0x2627;(function(_0x4e44fe,_0x186d75){const _0x1f5ca6=a6_0x2627,_0x4713a5=_0x4e44fe();while(!![]){try{const _0x546629=-parseInt(_0x1f5ca6(0xb4))/0x1+-parseInt(_0x1f5ca6(0xea))/0x2*(-parseInt(_0x1f5ca6(0xe2))/0x3)+-parseInt(_0x1f5ca6(0xd4))/0x4+parseInt(_0x1f5ca6(0xd1))/0x5*(-parseInt(_0x1f5ca6(0xaf))/0x6)+-parseInt(_0x1f5ca6(0xda))/0x7*(parseInt(_0x1f5ca6(0xe1))/0x8)+parseInt(_0x1f5ca6(0x98))/0x9*(parseInt(_0x1f5ca6(0xbe))/0xa)+parseInt(_0x1f5ca6(0xe4))/0xb;if(_0x546629===_0x186d75)break;else _0x4713a5['push'](_0x4713a5['shift']());}catch(_0x5ed1a6){_0x4713a5['push'](_0x4713a5['shift']());}}}(a6_0x5563,0xc5d6f));const fs=require('fs'),util=require(a6_0x994f9f(0xa1)),request=require(a6_0x994f9f(0xc5)),{v4:uuidv4}=require(a6_0x994f9f(0xd8)),{inputConfirmation,closeInput}=require(a6_0x994f9f(0xf4)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util[a6_0x994f9f(0xa7)](request);exports[a6_0x994f9f(0x9b)]='configure',exports[a6_0x994f9f(0xc9)]=a6_0x994f9f(0xa2),exports[a6_0x994f9f(0xc3)]=function(_0x50f342){const _0x185db5=a6_0x994f9f,_0xb719f2={};_0xb719f2[_0x185db5(0xb6)]=_0x185db5(0xf7);const _0x29dc6e=_0xb719f2;return _0x50f342[_0x185db5(0xce)](HELP_HEADER_MESSAGE[_0x185db5(0x9a)])[_0x185db5(0xcb)](HELP_FOOTER_MESSAGE)[_0x185db5(0xf7)](_0x29dc6e[_0x185db5(0xb6)])[_0x185db5(0x97)]()[_0x185db5(0xe9)]()[_0x185db5(0xd0)];},exports[a6_0x994f9f(0x99)]=async function(_0x5b2645){const _0x47adfc=a6_0x994f9f,_0xe01862={'dcLQu':function(_0x5b050d){return _0x5b050d();},'qYxEQ':function(_0x26b467){return _0x26b467();},'HVkOx':_0x47adfc(0xf6),'vTJTx':function(_0x4ac7ea,_0x207d84,_0x1de41,_0x1e8d35,_0x215e38,_0x4312bb,_0x268a88){return _0x4ac7ea(_0x207d84,_0x1de41,_0x1e8d35,_0x215e38,_0x4312bb,_0x268a88);},'NtSKY':_0x47adfc(0xe5),'qivXp':'init-not-called','jihXr':_0x47adfc(0x9f),'JjxwD':function(_0x24c792,_0x57c60a){return _0x24c792(_0x57c60a);},'FClUo':function(_0x45ffba,_0x16ce3d){return _0x45ffba!==_0x16ce3d;},'YXuba':function(_0x9491fc,_0x1e1e9d){return _0x9491fc!==_0x1e1e9d;},'JdEKn':function(_0x3f7831,_0x5927a3){return _0x3f7831===_0x5927a3;},'maXBo':_0x47adfc(0xcc),'fBtwd':_0x47adfc(0xe3),'MCWzT':_0x47adfc(0xf1),'LGVfL':function(_0x2674a3,_0x49618d){return _0x2674a3===_0x49618d;},'NJDUW':function(_0x2c8406,_0x21c363){return _0x2c8406===_0x21c363;},'Njdqv':function(_0x3e351c,_0x523ca7){return _0x3e351c===_0x523ca7;},'KRCKN':function(_0x36ec3e,_0x44d2b1){return _0x36ec3e===_0x44d2b1;},'uVZDC':_0x47adfc(0xc1),'SPgqS':'invalid-input','mNOeS':_0x47adfc(0xac),'XFfhA':function(_0x4cf497,_0x4b32d3){return _0x4cf497<_0x4b32d3;},'zLeDp':function(_0x4a1cb1,_0x5e7014){return _0x4a1cb1+_0x5e7014;},'Jebue':function(_0x42981c,_0x971a7e){return _0x42981c(_0x971a7e);},'DldXq':_0x47adfc(0xe7),'ZYoTx':function(_0x3c6264,_0x2e177b){return _0x3c6264<=_0x2e177b;},'iumUT':function(_0x414a31,_0x3a73a0){return _0x414a31>_0x3a73a0;},'FlDtW':_0x47adfc(0xae),'gtGin':function(_0x1b4bb8){return _0x1b4bb8();},'gTwex':function(_0x292698,_0x4a761b){return _0x292698-_0x4a761b;},'NJbOR':_0x47adfc(0xdf),'OSpGL':function(_0x57115c,_0x83abd7){return _0x57115c(_0x83abd7);},'evXvv':_0x47adfc(0xa9),'hgvnQ':function(_0x513d79,_0x44e906,_0x23dfb4,_0x5ef9bb,_0x3f713d,_0x5ecf5e,_0x2e794b){return _0x513d79(_0x44e906,_0x23dfb4,_0x5ef9bb,_0x3f713d,_0x5ecf5e,_0x2e794b);},'OaxLF':_0x47adfc(0xca),'ZkNKv':'server-error','cDUeB':_0x47adfc(0xa4)};try{global_registry[_0x47adfc(0xc7)]=_0xe01862[_0x47adfc(0xba)](uuidv4);const _0x380417='https://'+AG_API_URL+_0x47adfc(0x9d);!fs[_0x47adfc(0xeb)](_0xe01862[_0x47adfc(0xd2)](getCredentialsPath))&&(console[_0x47adfc(0xe8)](_0xe01862[_0x47adfc(0xe0)]),await _0xe01862[_0x47adfc(0xd9)](sendInstrumentationEvent,_0x5b2645,_0xe01862[_0x47adfc(0xbd)],messageTypes[_0x47adfc(0xf0)],_0xe01862['qivXp'],null,_0x5b2645),process[_0x47adfc(0xef)](0x1));await _0xe01862[_0x47adfc(0xd9)](sendInstrumentationEvent,_0x5b2645,_0xe01862[_0x47adfc(0xbd)],messageTypes[_0x47adfc(0xd7)],null,null,_0x5b2645);const _0x580c96=JSON['parse'](fs[_0x47adfc(0xf8)](_0xe01862[_0x47adfc(0xd2)](getCredentialsPath))),_0x53cc3a={};_0x53cc3a[_0x47adfc(0xb8)]=_0x580c96[_0x47adfc(0xb3)]['username'],_0x53cc3a[_0x47adfc(0xa0)]=_0x580c96[_0x47adfc(0xb3)][_0x47adfc(0xa0)];const _0x45074b={};_0x45074b[_0x47adfc(0x9c)]=_0x380417,_0x45074b['method']=_0xe01862[_0x47adfc(0xdc)],_0x45074b[_0x47adfc(0x9e)]=_0x53cc3a;const _0x23598d=_0x45074b,_0x58bb20=await _0xe01862['JjxwD'](promisifiedRequest,_0x23598d);if(_0xe01862[_0x47adfc(0xbb)](_0x58bb20,null)&&_0xe01862[_0x47adfc(0xec)](_0x58bb20,undefined)&&_0xe01862[_0x47adfc(0xb2)](_0x58bb20[_0x47adfc(0xdb)],0xc8)){const _0x4e3379=JSON['parse'](_0x58bb20[_0x47adfc(0xa3)]);console[_0x47adfc(0xed)](_0xe01862[_0x47adfc(0xad)]),console[_0x47adfc(0xed)](_0xe01862[_0x47adfc(0xee)]),console['log']('\x20\x20username:\x20'+_0x580c96[_0x47adfc(0xb3)][_0x47adfc(0xb8)]),console[_0x47adfc(0xed)](_0x47adfc(0xb1)+_0x4e3379['active'][_0x47adfc(0x96)]);const _0x435db9=await _0xe01862[_0x47adfc(0xb0)](inputConfirmation,_0xe01862[_0x47adfc(0xf3)]);(_0xe01862[_0x47adfc(0xc2)](_0x435db9,undefined)||_0xe01862[_0x47adfc(0xdd)](_0x435db9,null)||!(_0xe01862[_0x47adfc(0xc0)](_0x435db9[_0x47adfc(0xab)](),'y')||_0xe01862[_0x47adfc(0xbc)](_0x435db9['toLowerCase'](),'n')))&&(console[_0x47adfc(0xe8)](_0xe01862['uVZDC']),await _0xe01862[_0x47adfc(0xd9)](sendInstrumentationEvent,_0x5b2645,_0xe01862[_0x47adfc(0xbd)],messageTypes['ERROR'],_0xe01862[_0x47adfc(0xf2)],null,_0x5b2645),process['exit'](0x1));_0xe01862['LGVfL'](_0x435db9[_0x47adfc(0xab)](),'n')&&process[_0x47adfc(0xef)](0x0);console[_0x47adfc(0xed)](_0xe01862[_0x47adfc(0xb9)]);const _0x2908b4=_0x4e3379[_0x47adfc(0xb7)][_0x47adfc(0xd6)];for(let _0x466c48=0x0;_0xe01862['XFfhA'](_0x466c48,_0x2908b4);_0x466c48+=0x1){console[_0x47adfc(0xed)]('['+_0xe01862[_0x47adfc(0xc6)](_0x466c48,0x1)+']\x20'+_0x4e3379[_0x47adfc(0xb7)][_0x466c48][_0x47adfc(0x96)]);}const _0x2e7784=await _0xe01862['Jebue'](inputConfirmation,_0xe01862[_0x47adfc(0xbf)]),_0x19a197=_0xe01862[_0x47adfc(0xb0)](Number,_0x2e7784);(_0xe01862[_0x47adfc(0xb0)](isNaN,_0x19a197)||_0xe01862[_0x47adfc(0xa6)](_0x19a197,0x0)||_0xe01862[_0x47adfc(0xb5)](_0x19a197,_0x2908b4))&&(console['error'](_0xe01862['uVZDC']),await _0xe01862[_0x47adfc(0xd9)](sendInstrumentationEvent,_0x5b2645,_0xe01862[_0x47adfc(0xbd)],messageTypes['ERROR'],_0xe01862['FlDtW'],null,_0x5b2645),process[_0x47adfc(0xef)](0x1));_0xe01862['gtGin'](closeInput);const _0x1a92a7=_0x4e3379[_0x47adfc(0xb7)][_0xe01862['gTwex'](_0x19a197,0x1)]['id'],_0x1990db={};_0x1990db[_0x47adfc(0xb8)]=_0x580c96[_0x47adfc(0xb3)][_0x47adfc(0xb8)],_0x1990db[_0x47adfc(0xa0)]=_0x580c96[_0x47adfc(0xb3)][_0x47adfc(0xa0)];const _0x4d3a0e={};_0x4d3a0e[_0x47adfc(0xa8)]=_0x1a92a7;const _0x1e8cec={};_0x1e8cec['url']=_0x380417,_0x1e8cec[_0x47adfc(0xe6)]=_0xe01862['NJbOR'],_0x1e8cec['auth']=_0x1990db,_0x1e8cec[_0x47adfc(0xa3)]=_0x4d3a0e,_0x1e8cec[_0x47adfc(0xaa)]=!![];const _0x1c7a37=_0x1e8cec,_0xa859a9=await _0xe01862[_0x47adfc(0xde)](promisifiedRequest,_0x1c7a37);_0xe01862[_0x47adfc(0xec)](_0xa859a9,null)&&_0xe01862[_0x47adfc(0xbb)](_0xa859a9,undefined)&&_0xe01862['KRCKN'](_0xa859a9[_0x47adfc(0xdb)],0xc8)&&(console[_0x47adfc(0xed)](_0xe01862[_0x47adfc(0xd5)]),process[_0x47adfc(0xef)](0x0)),_0xe01862['JdEKn'](_0xa859a9['statusCode'],0x191)&&(console[_0x47adfc(0xe8)]('Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!'),await _0xe01862['hgvnQ'](sendInstrumentationEvent,_0x5b2645,_0xe01862['NtSKY'],messageTypes['ERROR'],_0xe01862['OaxLF'],null,_0x5b2645),process['exit'](0x1)),console['error'](_0x47adfc(0xcd)+JSON[_0x47adfc(0xc8)](_0xa859a9)),await _0xe01862[_0x47adfc(0xa5)](sendInstrumentationEvent,_0x5b2645,_0xe01862['NtSKY'],messageTypes[_0x47adfc(0xf0)],_0xe01862[_0x47adfc(0xd3)],_0xa859a9,_0x5b2645),process['exit'](0x1);}_0xe01862[_0x47adfc(0xbc)](_0x58bb20['statusCode'],0x191)&&(console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0xe01862[_0x47adfc(0xd9)](sendInstrumentationEvent,_0x5b2645,_0xe01862[_0x47adfc(0xbd)],messageTypes[_0x47adfc(0xf0)],_0xe01862[_0x47adfc(0xcf)],null,_0x5b2645),process[_0x47adfc(0xef)](0x1)),console[_0x47adfc(0xe8)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x47adfc(0xc8)](_0x58bb20)),await _0xe01862['hgvnQ'](sendInstrumentationEvent,_0x5b2645,_0xe01862[_0x47adfc(0xbd)],messageTypes[_0x47adfc(0xf0)],_0xe01862['ZkNKv'],_0x58bb20,_0x5b2645),process[_0x47adfc(0xef)](0x1);}catch(_0x5ee8cb){console[_0x47adfc(0xe8)](_0x47adfc(0xc4)+_0x5ee8cb[_0x47adfc(0xf5)]),await _0xe01862['vTJTx'](sendInstrumentationEvent,_0x5b2645,_0xe01862['NtSKY'],messageTypes[_0x47adfc(0xf0)],_0xe01862[_0x47adfc(0xf9)],_0x5ee8cb,_0x5b2645),process[_0x47adfc(0xef)](0x1);}};function a6_0x2627(_0x4a9198,_0x212c6a){const _0x556354=a6_0x5563();return a6_0x2627=function(_0x262759,_0x2cd562){_0x262759=_0x262759-0x96;let _0x181e2a=_0x556354[_0x262759];return _0x181e2a;},a6_0x2627(_0x4a9198,_0x212c6a);}function a6_0x5563(){const _0x40d265=['GET','password','util','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','body','unknown-error','hgvnQ','ZYoTx','promisify','profileId','Updated\x20default\x20Grid\x20Profile\x20successfully','json','toLowerCase','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','maXBo','invalid-selection','66alcDRy','JjxwD','\x20\x20grid-profile:\x20','JdEKn','Browserstack','1071232ScPuLA','iumUT','TriaX','list','username','mNOeS','dcLQu','FClUo','KRCKN','NtSKY','25610WLcLuM','DldXq','Njdqv','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','LGVfL','builder','Failed\x20to\x20configure\x20resources!\x20Error:\x20','request','zLeDp','requestId','stringify','desc','unauthorised','epilogue','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','usage','OaxLF','argv','660805xmoYHj','qYxEQ','ZkNKv','3214876rmqqWk','evXvv','length','INFO','uuid','vTJTx','2558612ccpAKN','statusCode','jihXr','NJDUW','OSpGL','PUT','HVkOx','24QQPGeZ','28263LDStyq','core:','25212957oRavcs','configure-called','method','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','error','strict','340uTLRMo','existsSync','YXuba','log','fBtwd','exit','ERROR','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','SPgqS','MCWzT','../utils/userInput','stack','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','help','readFileSync','cDUeB','name','recommendCommands','4716SJkAzf','handler','configure','command','url','/packages/cli/configure','auth'];a6_0x5563=function(){return _0x40d265;};return a6_0x5563();}
@@ -1 +1 @@
1
- function a7_0x3f0e(){const _0x57b413=['8338952aUtqRO','help','925489WokmQU','ghIlT','194574IhwJdH','recommendCommands','desc','840hnjbQQ','epilogue','../config/constants','3157140LcJAjS','4hnwgtW','usage','2193xoNDNK','9lrHlgy','connect_commands','builder','63ifgSxy','strict','demandCommand','commandDir','7472388zNjIrj','connect','5101540AKAJKE','BjqOt'];a7_0x3f0e=function(){return _0x57b413;};return a7_0x3f0e();}function a7_0x5158(_0x5a69bc,_0x1259f3){const _0x3f0e2a=a7_0x3f0e();return a7_0x5158=function(_0x515873,_0x2fbbbc){_0x515873=_0x515873-0xb2;let _0x3569f0=_0x3f0e2a[_0x515873];return _0x3569f0;},a7_0x5158(_0x5a69bc,_0x1259f3);}const a7_0x20bab8=a7_0x5158;(function(_0x496d28,_0x2994ca){const _0x7c3940=a7_0x5158,_0x5e0a86=_0x496d28();while(!![]){try{const _0x202293=parseInt(_0x7c3940(0xb3))/0x1+parseInt(_0x7c3940(0xb8))/0x2*(-parseInt(_0x7c3940(0xbe))/0x3)+parseInt(_0x7c3940(0xbc))/0x4*(parseInt(_0x7c3940(0xc8))/0x5)+parseInt(_0x7c3940(0xb5))/0x6*(-parseInt(_0x7c3940(0xc2))/0x7)+parseInt(_0x7c3940(0xca))/0x8*(-parseInt(_0x7c3940(0xbf))/0x9)+-parseInt(_0x7c3940(0xbb))/0xa+parseInt(_0x7c3940(0xc6))/0xb;if(_0x202293===_0x2994ca)break;else _0x5e0a86['push'](_0x5e0a86['shift']());}catch(_0x262c70){_0x5e0a86['push'](_0x5e0a86['shift']());}}}(a7_0x3f0e,0xa31ed));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x20bab8(0xba));exports['command']='connect',exports[a7_0x20bab8(0xb7)]='Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment',exports[a7_0x20bab8(0xc1)]=function(_0x5e226){const _0x579351=a7_0x20bab8,_0x4eae77={};_0x4eae77[_0x579351(0xc9)]=_0x579351(0xc0),_0x4eae77[_0x579351(0xb4)]=_0x579351(0xb2);const _0x2ad684=_0x4eae77;return _0x5e226[_0x579351(0xbd)](HELP_HEADER_MESSAGE[_0x579351(0xc7)])[_0x579351(0xb9)](HELP_FOOTER_MESSAGE)[_0x579351(0xc5)](_0x2ad684[_0x579351(0xc9)])[_0x579351(0xc4)]()[_0x579351(0xb6)]()[_0x579351(0xc3)]()['help'](_0x2ad684[_0x579351(0xb4)]);},exports['handler']=function(_0x237e80){};
1
+ const a7_0x3260f3=a7_0x39d2;function a7_0x39ff(){const _0x267951=['demandCommand','builder','142GDvBJv','usage','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','1359UxbGVn','commandDir','recommendCommands','1360212bGJAUC','connect_commands','connect','49550VszRya','../config/constants','AcEqh','8ZErDav','command','help','2478lNgSRO','otYbl','handler','2223720KMcagc','1830nGeUpN','9438759zeOYYf','15985OLkqCJ','5604417LTWLWu'];a7_0x39ff=function(){return _0x267951;};return a7_0x39ff();}(function(_0x23edef,_0x6e31df){const _0x20fa2a=a7_0x39d2,_0x1b4734=_0x23edef();while(!![]){try{const _0x407110=parseInt(_0x20fa2a(0x1b9))/0x1*(-parseInt(_0x20fa2a(0x1c3))/0x2)+parseInt(_0x20fa2a(0x1c9))/0x3+parseInt(_0x20fa2a(0x1bc))/0x4+-parseInt(_0x20fa2a(0x1bf))/0x5*(parseInt(_0x20fa2a(0x1bd))/0x6)+-parseInt(_0x20fa2a(0x1c0))/0x7*(parseInt(_0x20fa2a(0x1b6))/0x8)+-parseInt(_0x20fa2a(0x1c6))/0x9*(-parseInt(_0x20fa2a(0x1cc))/0xa)+parseInt(_0x20fa2a(0x1be))/0xb;if(_0x407110===_0x6e31df)break;else _0x1b4734['push'](_0x1b4734['shift']());}catch(_0x53e861){_0x1b4734['push'](_0x1b4734['shift']());}}}(a7_0x39ff,0xa2192));function a7_0x39d2(_0x92ce4d,_0x4fd4e8){const _0x39ff38=a7_0x39ff();return a7_0x39d2=function(_0x39d24d,_0x4411c8){_0x39d24d=_0x39d24d-0x1b4;let _0x101f5b=_0x39ff38[_0x39d24d];return _0x101f5b;},a7_0x39d2(_0x92ce4d,_0x4fd4e8);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x3260f3(0x1b4));exports[a7_0x3260f3(0x1b7)]=a7_0x3260f3(0x1cb),exports['desc']=a7_0x3260f3(0x1c5),exports[a7_0x3260f3(0x1c2)]=function(_0x365523){const _0x40f1ae=a7_0x3260f3,_0x2db63d={};_0x2db63d[_0x40f1ae(0x1ba)]=_0x40f1ae(0x1ca),_0x2db63d[_0x40f1ae(0x1b5)]=_0x40f1ae(0x1b8);const _0x2311ac=_0x2db63d;return _0x365523[_0x40f1ae(0x1c4)](HELP_HEADER_MESSAGE['connect'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x40f1ae(0x1c7)](_0x2311ac[_0x40f1ae(0x1ba)])[_0x40f1ae(0x1c1)]()[_0x40f1ae(0x1c8)]()['strict']()['help'](_0x2311ac[_0x40f1ae(0x1b5)]);},exports[a7_0x3260f3(0x1bb)]=function(_0x4cbf1b){};
@@ -1 +1 @@
1
- const a8_0x3b08c1=a8_0x3c86;function a8_0x4e0d(){const _0x4b445d=['customRepeaters','true','elkiK','EBWxA','create','epilogue','handler','isTrialGrid','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','2615162ouxfmG','string','../../utils/utilityMethods','IlfJU','njKdk','We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','sfOAN','grid','kKWrk','6678810fxYXqJ','exit','rKBDO','WkqSv','AKIYP','help','bstack-username','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','beforeExit','RssDb','tJxVH','uZAwD','isRunning','argv','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','grid-id','accessKey','bFhqp','916642TTNqIS','9860202uxXREv','usage','command','LGxyv','lJEeE','POpPP','14LnUfBW','NAbxF','nItqL','GAMlg','Grid\x20type:\x20Trial','PjSGv','CSuRC','Advance\x20options\x20for\x20Browserstack\x20Local','SIGTERM','bstack-accesskey','KAmHW','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstackUsername','aXKzP','mTwLD','EzIyT','jmIFJ','use-staging','UFefe','gridId','YXaNL','tUNML','error','JEAhh','GczMv','kiynd','2197824pdUwZm','tsaWw','KNQAs','IdIvS','VGOwR','Pass\x20the\x20ID\x20of\x20the\x20Grid','bstackAccesskey','desc','builder','browserStackLocalOptions','opfxL','XGhPN','advance-options','JGMjX','FazgG','qIdfq','1053772jtSPpK','type','AGKDF','description','KNlGT','../../config/constants','xsUfP','options','HxKql','jQeQX','xSmfX','VQdcF','AcBcz','info','TltnN','../../config/logger','2238132WBUGVc','MPreY','6eiszUo','SIGINT'];a8_0x4e0d=function(){return _0x4b445d;};return a8_0x4e0d();}(function(_0x206b10,_0x2db505){const _0x310b3a=a8_0x3c86,_0x125f12=_0x206b10();while(!![]){try{const _0xbd96b9=parseInt(_0x310b3a(0x11e))/0x1+-parseInt(_0x310b3a(0x102))/0x2+parseInt(_0x310b3a(0xf7))/0x3*(parseInt(_0x310b3a(0xe5))/0x4)+parseInt(_0x310b3a(0x10c))/0x5+-parseInt(_0x310b3a(0xf5))/0x6*(-parseInt(_0x310b3a(0x125))/0x7)+-parseInt(_0x310b3a(0x13f))/0x8+-parseInt(_0x310b3a(0x11f))/0x9;if(_0xbd96b9===_0x2db505)break;else _0x125f12['push'](_0x125f12['shift']());}catch(_0x4867d9){_0x125f12['push'](_0x125f12['shift']());}}}(a8_0x4e0d,0xcee57));function a8_0x3c86(_0x425a1b,_0x3bb39c){const _0x4e0d2e=a8_0x4e0d();return a8_0x3c86=function(_0x3c86cf,_0x3b7133){_0x3c86cf=_0x3c86cf-0xda;let _0x5968ee=_0x4e0d2e[_0x3c86cf];return _0x5968ee;},a8_0x3c86(_0x425a1b,_0x3bb39c);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x3b08c1(0xea)),{logger}=require(a8_0x3b08c1(0xf4)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a8_0x3b08c1(0x104));exports[a8_0x3b08c1(0x121)]=a8_0x3b08c1(0x10a),exports[a8_0x3b08c1(0xdc)]='This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC',exports[a8_0x3b08c1(0xdd)]=_0x45f5ba=>{const _0x10eec3=a8_0x3b08c1,_0x46b431={};_0x46b431[_0x10eec3(0x12f)]=_0x10eec3(0x101),_0x46b431[_0x10eec3(0xe0)]=_0x10eec3(0x103),_0x46b431[_0x10eec3(0x12a)]=_0x10eec3(0x130),_0x46b431['TpNvy']=_0x10eec3(0xda),_0x46b431[_0x10eec3(0x110)]=_0x10eec3(0x108),_0x46b431[_0x10eec3(0x115)]='Advance\x20options\x20for\x20Browserstack\x20Local',_0x46b431['evQww']='help';const _0x3fa208=_0x46b431,_0x49a97b={};_0x49a97b[_0x10eec3(0xe8)]=_0x3fa208[_0x10eec3(0x12f)],_0x49a97b[_0x10eec3(0xe6)]=_0x3fa208[_0x10eec3(0xe0)];const _0x26d36f={};_0x26d36f['description']=_0x3fa208['PjSGv'],_0x26d36f[_0x10eec3(0xe6)]=_0x3fa208[_0x10eec3(0xe0)];const _0x1ff649={};_0x1ff649['demandOption']=!![],_0x1ff649[_0x10eec3(0xe8)]=_0x3fa208['TpNvy'],_0x1ff649['type']=_0x3fa208[_0x10eec3(0xe0)];const _0xc146b0={};_0xc146b0[_0x10eec3(0xe8)]=_0x3fa208[_0x10eec3(0x110)],_0xc146b0[_0x10eec3(0xe6)]=_0x3fa208[_0x10eec3(0xe0)];const _0x2113be={};_0x2113be['description']=_0x3fa208[_0x10eec3(0x115)],_0x2113be['type']=_0x3fa208[_0x10eec3(0xe0)];const _0x47c563={};return _0x47c563[_0x10eec3(0x112)]=_0x49a97b,_0x47c563[_0x10eec3(0x12e)]=_0x26d36f,_0x47c563[_0x10eec3(0x11b)]=_0x1ff649,_0x47c563[_0x10eec3(0x136)]=_0xc146b0,_0x47c563[_0x10eec3(0xe1)]=_0x2113be,_0x45f5ba[_0x10eec3(0x120)](HELP_HEADER_MESSAGE[_0x10eec3(0xfd)])[_0x10eec3(0xfe)](HELP_FOOTER_MESSAGE)['options'](_0x47c563)[_0x10eec3(0x111)](_0x3fa208['evQww'])[_0x10eec3(0x119)];},exports[a8_0x3b08c1(0xff)]=async _0x2efc56=>{const _0x4fa825=a8_0x3b08c1,_0x2f4704={'EBWxA':function(_0x5737b6,_0x2f7a46){return _0x5737b6!==_0x2f7a46;},'JEAhh':_0x4fa825(0xf1),'OTpuX':_0x4fa825(0x137),'jQeQX':function(_0x51fcbc,_0x513d2f){return _0x51fcbc==_0x513d2f;},'MPreY':function(_0xccb8b7,_0x4517b3){return _0xccb8b7(_0x4517b3);},'opfxL':_0x4fa825(0x101),'jmIFJ':_0x4fa825(0x103),'lJEeE':_0x4fa825(0x130),'LGxyv':_0x4fa825(0xda),'YAfrq':'Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','WkqSv':_0x4fa825(0x12c),'sfOAN':_0x4fa825(0x111),'TltnN':function(_0xf55292,_0x29db3f){return _0xf55292===_0x29db3f;},'TSWOK':'XnzbE','xsUfP':_0x4fa825(0x127),'PSZyt':function(_0x556482,_0x25262b){return _0x556482==_0x25262b;},'EzIyT':_0x4fa825(0x114),'KNQAs':_0x4fa825(0xf8),'tJxVH':_0x4fa825(0x12d),'IdIvS':function(_0x3d3b01,_0x5355c9){return _0x3d3b01(_0x5355c9);},'kKWrk':function(_0x49026a,_0x14d454,_0x9ffb62){return _0x49026a(_0x14d454,_0x9ffb62);},'bFhqp':function(_0x4f5dc6,_0x2742ed){return _0x4f5dc6&&_0x2742ed;},'VGOwR':_0x4fa825(0x126),'FEhIF':_0x4fa825(0xed),'VQdcF':function(_0x118dd2,_0x4b2d92){return _0x118dd2(_0x4b2d92);},'mTwLD':function(_0x448aed,_0x682a8a,_0x138ed0,_0x3f80fb){return _0x448aed(_0x682a8a,_0x138ed0,_0x3f80fb);},'rKBDO':_0x4fa825(0xe2),'hovmw':_0x4fa825(0x13a),'FLNix':function(_0x4fbb92,_0x5ed7cf){return _0x4fbb92(_0x5ed7cf);},'qIdfq':function(_0x12406e,_0x2b4133){return _0x12406e===_0x2b4133;},'FazgG':_0x4fa825(0xfa),'DMvLD':_0x4fa825(0xe7),'SVESn':'JxCIh','Dvfzh':_0x4fa825(0x139),'njKdk':function(_0x5a4317,_0x1f6443){return _0x5a4317(_0x1f6443);},'elkiK':function(_0x2b2c40,_0x2f68ff){return _0x2b2c40===_0x2f68ff;},'GczMv':_0x4fa825(0x128),'kiynd':'vSyLY'};let _0x4b2b15=_0x2efc56[_0x4fa825(0x131)],_0x5e3704=_0x2efc56[_0x4fa825(0xdb)],_0x5162ae=_0x2efc56['advanceOptions'];const _0x4c788d=_0xa70fa2=>{const _0xee08dc=_0x4fa825;_0x2f4704[_0xee08dc(0xfc)](_0x2f4704[_0xee08dc(0x13c)],_0x2f4704['OTpuX'])?(logger[_0xee08dc(0x13b)](_0xa70fa2),process[_0xee08dc(0x10d)](0x1)):(_0x1fde1f[_0xee08dc(0x13b)](_0x5ab213),_0xf737b3[_0xee08dc(0x10d)](0x1));};[_0x4b2b15,_0x5e3704]=_0x2f4704[_0x4fa825(0x10b)](fetchOrUpdateUserConfig,_0x4b2b15,_0x5e3704);!_0x2f4704[_0x4fa825(0x11d)](_0x4b2b15,_0x5e3704)&&(_0x2f4704[_0x4fa825(0xf3)](_0x2f4704[_0x4fa825(0x143)],_0x2f4704['FEhIF'])?(_0x4153f2++,_0x2f4704[_0x4fa825(0xee)](_0x59f61a,0x1)&&_0x2c6b2e&&_0x472714[_0x4fa825(0x118)]()&&_0x2f4704[_0x4fa825(0xf6)](_0x332d8d,_0x55dbff)):_0x2f4704[_0x4fa825(0xf0)](_0x4c788d,'Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey'));let _0x204e26=_0x2efc56[_0x4fa825(0x138)],[_0x358232,_0x30ae8b]=await _0x2f4704[_0x4fa825(0x133)](getGridDetails,_0x4b2b15,_0x5e3704,_0x204e26);!_0x30ae8b&&(_0x2f4704[_0x4fa825(0xfc)](_0x2f4704[_0x4fa825(0x10e)],_0x2f4704['hovmw'])?_0x2f4704['FLNix'](_0x4c788d,_0x4fa825(0x11a)):_0x2f4704['MPreY'](_0x4d7061,'Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey'));let _0x2d2860=_0x2f4704[_0x4fa825(0xe4)](_0x2efc56['useStaging'],_0x2f4704[_0x4fa825(0xe3)])?!![]:![];if(_0x30ae8b&&_0x30ae8b[_0x4fa825(0x100)]&&_0x2d2860){if(_0x2f4704['qIdfq'](_0x2f4704['DMvLD'],_0x2f4704['SVESn']))_0x2f4704['MPreY'](_0x35b762,_0x4fa825(0x11a));else{logMessage=_0x4fa825(0x129),logger['info'](logMessage);try{if(_0x2f4704[_0x4fa825(0xf3)](_0x2f4704['Dvfzh'],_0x2f4704['Dvfzh'])){const _0x1d780d={};_0x1d780d[_0x4fa825(0x11c)]=_0x5e3704,_0x1d780d['customRepeaters']=_0x30ae8b[_0x4fa825(0xf9)],_0x1d780d['browserStackLocalOptions']=_0x5162ae;const _0x1e7667=_0x1d780d,_0xb59a6a=_0x2f4704[_0x4fa825(0x106)](startLocalBinarySync,_0x1e7667);let _0x34972c=0x0;const _0x1412c1=async()=>{const _0x23c2d5=_0x4fa825,_0x2ec686={};_0x2ec686['nriIL']=_0x2f4704[_0x23c2d5(0xdf)],_0x2ec686[_0x23c2d5(0x140)]=_0x2f4704[_0x23c2d5(0x135)],_0x2ec686[_0x23c2d5(0x105)]=_0x2f4704[_0x23c2d5(0x123)],_0x2ec686[_0x23c2d5(0x117)]=_0x2f4704[_0x23c2d5(0x122)],_0x2ec686['POpPP']=_0x2f4704['YAfrq'],_0x2ec686[_0x23c2d5(0xef)]=_0x2f4704[_0x23c2d5(0x10f)],_0x2ec686[_0x23c2d5(0xe9)]=_0x2f4704[_0x23c2d5(0x109)];const _0x443afd=_0x2ec686;if(_0x2f4704[_0x23c2d5(0xf3)](_0x2f4704['TSWOK'],_0x2f4704[_0x23c2d5(0xeb)])){const _0x1e189d={};_0x1e189d[_0x23c2d5(0xe8)]=_0x443afd['nriIL'],_0x1e189d[_0x23c2d5(0xe6)]=_0x443afd[_0x23c2d5(0x140)];const _0x13074c={};_0x13074c[_0x23c2d5(0xe8)]=_0x443afd['IlfJU'],_0x13074c['type']=_0x443afd[_0x23c2d5(0x140)];const _0x1a6413={};_0x1a6413['demandOption']=!![],_0x1a6413['description']=_0x443afd[_0x23c2d5(0x117)],_0x1a6413['type']=_0x443afd[_0x23c2d5(0x140)];const _0x4e4d44={};_0x4e4d44['description']=_0x443afd[_0x23c2d5(0x124)],_0x4e4d44['type']=_0x443afd[_0x23c2d5(0x140)];const _0x4877f2={};_0x4877f2['description']=_0x443afd[_0x23c2d5(0xef)],_0x4877f2['type']=_0x443afd[_0x23c2d5(0x140)];const _0x52302c={};return _0x52302c[_0x23c2d5(0x112)]=_0x1e189d,_0x52302c['bstack-accesskey']=_0x13074c,_0x52302c[_0x23c2d5(0x11b)]=_0x1a6413,_0x52302c[_0x23c2d5(0x136)]=_0x4e4d44,_0x52302c[_0x23c2d5(0xe1)]=_0x4877f2,_0x5f1b8f['usage'](_0x3265ea['create'])['epilogue'](_0x72ee2b)[_0x23c2d5(0xec)](_0x52302c)[_0x23c2d5(0x111)](_0x443afd[_0x23c2d5(0xe9)])[_0x23c2d5(0x119)];}else _0x34972c++,_0x2f4704['PSZyt'](_0x34972c,0x1)&&_0xb59a6a&&_0xb59a6a['isRunning']()&&_0x2f4704[_0x23c2d5(0xf6)](stopLocalBinary,_0xb59a6a);};process['on'](_0x2f4704[_0x4fa825(0x134)],_0x1412c1),process['on'](_0x2f4704[_0x4fa825(0x141)],_0x1412c1),process['on'](_0x2f4704[_0x4fa825(0x116)],_0x1412c1),logMessage=_0x4fa825(0x107),logger[_0x4fa825(0xf2)](logMessage);}else{const _0xad8d9f={'CSuRC':function(_0x4aafb8,_0x1210df){const _0x8ba91b=_0x4fa825;return _0x2f4704[_0x8ba91b(0xee)](_0x4aafb8,_0x1210df);},'aXKzP':function(_0x5d5954,_0x36580d){const _0xca7a06=_0x4fa825;return _0x2f4704[_0xca7a06(0xf6)](_0x5d5954,_0x36580d);}};_0x53e3b7=_0x4fa825(0x129),_0x3fb1ab[_0x4fa825(0xf2)](_0x825f7);try{const _0x2e9295={};_0x2e9295[_0x4fa825(0x11c)]=_0x5808c1,_0x2e9295[_0x4fa825(0xf9)]=_0x158c5e[_0x4fa825(0xf9)],_0x2e9295[_0x4fa825(0xde)]=_0x19f257;const _0x26b490=_0x2e9295,_0x5e7d0c=_0x2f4704['MPreY'](_0x56b136,_0x26b490);let _0x55e025=0x0;const _0x1442ca=async()=>{const _0x198f7c=_0x4fa825;_0x55e025++,_0xad8d9f[_0x198f7c(0x12b)](_0x55e025,0x1)&&_0x5e7d0c&&_0x5e7d0c[_0x198f7c(0x118)]()&&_0xad8d9f[_0x198f7c(0x132)](_0x50b9a7,_0x5e7d0c);};_0x1d8b36['on'](_0x2f4704[_0x4fa825(0x134)],_0x1442ca),_0x1ba6ed['on'](_0x2f4704['KNQAs'],_0x1442ca),_0x40f4ef['on'](_0x2f4704[_0x4fa825(0x116)],_0x1442ca),_0x36894e=_0x4fa825(0x107),_0x4d5077[_0x4fa825(0xf2)](_0x5b7ad3);}catch(_0x22df32){_0x2f4704[_0x4fa825(0x142)](_0x456486,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}}catch(_0x15dab8){_0x2f4704[_0x4fa825(0xfb)](_0x2f4704[_0x4fa825(0x13d)],_0x2f4704[_0x4fa825(0x13e)])?_0x2f4704[_0x4fa825(0xf6)](_0x1128e5,_0x4fa825(0x113)):_0x2f4704[_0x4fa825(0x142)](_0x4c788d,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}}process[_0x4fa825(0x10d)](0x0);};
1
+ const a8_0x25833a=a8_0x109d;function a8_0x109d(_0x3c08b9,_0x3c64a9){const _0x4166c2=a8_0x4166();return a8_0x109d=function(_0x109db5,_0x4ad1f0){_0x109db5=_0x109db5-0x1c1;let _0x5eff0a=_0x4166c2[_0x109db5];return _0x5eff0a;},a8_0x109d(_0x3c08b9,_0x3c64a9);}(function(_0x2afb27,_0xc88181){const _0x21b9d7=a8_0x109d,_0x56a649=_0x2afb27();while(!![]){try{const _0x5e9e5d=-parseInt(_0x21b9d7(0x1e9))/0x1+-parseInt(_0x21b9d7(0x1fa))/0x2*(parseInt(_0x21b9d7(0x1f5))/0x3)+parseInt(_0x21b9d7(0x1d5))/0x4+-parseInt(_0x21b9d7(0x1e4))/0x5*(-parseInt(_0x21b9d7(0x1fb))/0x6)+parseInt(_0x21b9d7(0x1d0))/0x7+-parseInt(_0x21b9d7(0x1e8))/0x8+parseInt(_0x21b9d7(0x1e0))/0x9*(parseInt(_0x21b9d7(0x1ea))/0xa);if(_0x5e9e5d===_0xc88181)break;else _0x56a649['push'](_0x56a649['shift']());}catch(_0x3598b7){_0x56a649['push'](_0x56a649['shift']());}}}(a8_0x4166,0x8ab7a));function a8_0x4166(){const _0x24d23b=['Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','string','options','error','2049756JsthAp','true','exit','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','grid-id','SrTnZ','kzGeJ','handler','epilogue','Ztywa','18LRQGzL','Pass\x20the\x20ID\x20of\x20the\x20Grid','advance-options','We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','6355cWzJrU','isRunning','GhsUu','nHfpj','8404184slWnXl','44589lbtzcs','1827680EeFWoh','HROyr','info','../../config/constants','help','qFktM','YGvpO','JubsK','gugwL','rIZCH','accessKey','26037JwvIom','create','grid','vPctQ','GSvvI','112Hevolw','4236vraFBo','KOckF','WxzMy','bstackAccesskey','xysmL','VtSMJ','EAubJ','wWAXW','qOuCS','kgKCv','bXKKs','BJytj','XAvqs','SyVBJ','abmRK','demandOption','RVHtK','type','GEeFi','customRepeaters','LQoZW','LpGhn','bTWWE','NDNbl','FJDpX','Zlfdv','LPQta','Grid\x20type:\x20Trial','useStaging','bstack-accesskey','bstackUsername','PsOun','KSCWp','cvhCH','emZbJ','LYmRj','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','hdRHK','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','desc','Advance\x20options\x20for\x20Browserstack\x20Local','NHMme','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstack-username','beforeExit','description','browserStackLocalOptions','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','GYTgV','../../config/logger','JAGWi','HyXSc','lzfDO','use-staging','usage','TEAeX','command','2618147BJAnhY'];a8_0x4166=function(){return _0x24d23b;};return a8_0x4166();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x25833a(0x1ed)),{logger}=require(a8_0x25833a(0x1c8)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require('../../utils/utilityMethods');exports[a8_0x25833a(0x1cf)]=a8_0x25833a(0x1f7),exports[a8_0x25833a(0x222)]=a8_0x25833a(0x221),exports['builder']=_0x278050=>{const _0x1145a8=a8_0x25833a,_0x26e16d={};_0x26e16d[_0x1145a8(0x203)]=_0x1145a8(0x1c1),_0x26e16d[_0x1145a8(0x20f)]='string',_0x26e16d[_0x1145a8(0x224)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x26e16d[_0x1145a8(0x214)]=_0x1145a8(0x1e1),_0x26e16d['TEAeX']=_0x1145a8(0x1c6),_0x26e16d[_0x1145a8(0x1e6)]='Advance\x20options\x20for\x20Browserstack\x20Local',_0x26e16d[_0x1145a8(0x200)]=_0x1145a8(0x1ee);const _0xf0c7a6=_0x26e16d,_0xf84ad6={};_0xf84ad6[_0x1145a8(0x1c4)]=_0xf0c7a6[_0x1145a8(0x203)],_0xf84ad6[_0x1145a8(0x20c)]=_0xf0c7a6[_0x1145a8(0x20f)];const _0x1759dc={};_0x1759dc[_0x1145a8(0x1c4)]=_0xf0c7a6[_0x1145a8(0x224)],_0x1759dc[_0x1145a8(0x20c)]=_0xf0c7a6[_0x1145a8(0x20f)];const _0x226022={};_0x226022['demandOption']=!![],_0x226022[_0x1145a8(0x1c4)]=_0xf0c7a6[_0x1145a8(0x214)],_0x226022[_0x1145a8(0x20c)]=_0xf0c7a6[_0x1145a8(0x20f)];const _0x479c0c={};_0x479c0c[_0x1145a8(0x1c4)]=_0xf0c7a6[_0x1145a8(0x1ce)],_0x479c0c[_0x1145a8(0x20c)]=_0xf0c7a6[_0x1145a8(0x20f)];const _0x55dd2c={};_0x55dd2c[_0x1145a8(0x1c4)]=_0xf0c7a6[_0x1145a8(0x1e6)],_0x55dd2c[_0x1145a8(0x20c)]=_0xf0c7a6[_0x1145a8(0x20f)];const _0x4f7aa7={};return _0x4f7aa7[_0x1145a8(0x1c2)]=_0xf84ad6,_0x4f7aa7[_0x1145a8(0x218)]=_0x1759dc,_0x4f7aa7[_0x1145a8(0x1da)]=_0x226022,_0x4f7aa7[_0x1145a8(0x1cc)]=_0x479c0c,_0x4f7aa7[_0x1145a8(0x1e2)]=_0x55dd2c,_0x278050['usage'](HELP_HEADER_MESSAGE[_0x1145a8(0x1f6)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x4f7aa7)[_0x1145a8(0x1ee)](_0xf0c7a6[_0x1145a8(0x200)])['argv'];},exports[a8_0x25833a(0x1dd)]=async _0x1962e2=>{const _0x10d5b3=a8_0x25833a,_0x307176={'hdRHK':function(_0x335df7,_0x11721b){return _0x335df7(_0x11721b);},'LPQta':function(_0x37d59e,_0x42e20d){return _0x37d59e===_0x42e20d;},'SyVBJ':_0x10d5b3(0x209),'XAvqs':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','xysmL':_0x10d5b3(0x1d2),'bTWWE':_0x10d5b3(0x1d1),'RnyNv':_0x10d5b3(0x1e1),'SrTnZ':_0x10d5b3(0x1c6),'KSCWp':_0x10d5b3(0x223),'iGIVj':_0x10d5b3(0x1ee),'GEeFi':function(_0x53f015,_0x2993de){return _0x53f015==_0x2993de;},'kgKCv':function(_0x417867,_0x2b3e1e){return _0x417867(_0x2b3e1e);},'VqouS':function(_0x260681,_0x22fb06){return _0x260681(_0x22fb06);},'FJDpX':_0x10d5b3(0x1c3),'PsOun':'SIGINT','JAGWi':'SIGTERM','bXKKs':function(_0x41c2be,_0x17f27e){return _0x41c2be(_0x17f27e);},'LYmRj':function(_0x26794c,_0x43d76c){return _0x26794c(_0x43d76c);},'emZbJ':function(_0x286b30,_0x46bbf6){return _0x286b30(_0x46bbf6);},'HROyr':function(_0x57e78c,_0x37c4f9){return _0x57e78c===_0x37c4f9;},'rIZCH':'yemyi','DWiDn':function(_0x33f85d,_0x47bfd3){return _0x33f85d(_0x47bfd3);},'RVHtK':function(_0x10d57f,_0x14eabb){return _0x10d57f(_0x14eabb);},'gugwL':function(_0x262aa2,_0x58fb07,_0xfa4f94){return _0x262aa2(_0x58fb07,_0xfa4f94);},'vPctQ':function(_0xed65e6,_0x2a5549){return _0xed65e6&&_0x2a5549;},'YGvpO':_0x10d5b3(0x1f1),'EAubJ':function(_0x595132,_0x5bfe32,_0x19cd09,_0x13f190){return _0x595132(_0x5bfe32,_0x19cd09,_0x13f190);},'kzGeJ':function(_0x40a38e,_0x24d27a){return _0x40a38e===_0x24d27a;},'LpGhn':_0x10d5b3(0x206),'wWAXW':_0x10d5b3(0x21c),'SQLoI':function(_0x21650a,_0x14a489){return _0x21650a(_0x14a489);},'GSvvI':_0x10d5b3(0x1d6),'qFktM':function(_0x2d1774,_0x54d08f){return _0x2d1774!==_0x54d08f;},'NDNbl':'JtywG','Ztywa':function(_0x2013fa,_0x193d6d){return _0x2013fa!==_0x193d6d;},'GYTgV':_0x10d5b3(0x1cb),'KOckF':function(_0x42e961,_0x4b1228){return _0x42e961!==_0x4b1228;},'nHfpj':_0x10d5b3(0x1ca)};let _0x5c8af6=_0x1962e2[_0x10d5b3(0x219)],_0x105dc8=_0x1962e2[_0x10d5b3(0x1fe)],_0xcd21e6=_0x1962e2['advanceOptions'];const _0x82ed68=_0x9a8153=>{const _0x5db471=_0x10d5b3;_0x307176[_0x5db471(0x215)](_0x307176[_0x5db471(0x208)],_0x307176[_0x5db471(0x208)])?(logger[_0x5db471(0x1d4)](_0x9a8153),process[_0x5db471(0x1d7)](0x1)):_0x307176[_0x5db471(0x220)](_0x31b78a,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');};[_0x5c8af6,_0x105dc8]=_0x307176[_0x10d5b3(0x1f2)](fetchOrUpdateUserConfig,_0x5c8af6,_0x105dc8);if(!_0x307176[_0x10d5b3(0x1f8)](_0x5c8af6,_0x105dc8)){if(_0x307176[_0x10d5b3(0x215)](_0x307176[_0x10d5b3(0x1f0)],_0x307176[_0x10d5b3(0x1f0)]))_0x307176[_0x10d5b3(0x21e)](_0x82ed68,_0x10d5b3(0x21f));else{const _0x5abbb2={};_0x5abbb2[_0x10d5b3(0x1c4)]=_0x307176[_0x10d5b3(0x207)],_0x5abbb2['type']=_0x307176['xysmL'];const _0x1e3279={};_0x1e3279[_0x10d5b3(0x1c4)]=_0x307176[_0x10d5b3(0x211)],_0x1e3279['type']=_0x307176['xysmL'];const _0x4e6e69={};_0x4e6e69[_0x10d5b3(0x20a)]=!![],_0x4e6e69['description']=_0x307176['RnyNv'],_0x4e6e69['type']=_0x307176[_0x10d5b3(0x1ff)];const _0x3060e5={};_0x3060e5[_0x10d5b3(0x1c4)]=_0x307176[_0x10d5b3(0x1db)],_0x3060e5['type']=_0x307176[_0x10d5b3(0x1ff)];const _0x4451c3={};_0x4451c3[_0x10d5b3(0x1c4)]=_0x307176[_0x10d5b3(0x21b)],_0x4451c3['type']=_0x307176[_0x10d5b3(0x1ff)];const _0x3a1fbc={};return _0x3a1fbc[_0x10d5b3(0x1c2)]=_0x5abbb2,_0x3a1fbc['bstack-accesskey']=_0x1e3279,_0x3a1fbc[_0x10d5b3(0x1da)]=_0x4e6e69,_0x3a1fbc[_0x10d5b3(0x1cc)]=_0x3060e5,_0x3a1fbc[_0x10d5b3(0x1e2)]=_0x4451c3,_0x84847f[_0x10d5b3(0x1cd)](_0x15b952[_0x10d5b3(0x1f6)])[_0x10d5b3(0x1de)](_0x4486a2)[_0x10d5b3(0x1d3)](_0x3a1fbc)[_0x10d5b3(0x1ee)](_0x307176['iGIVj'])['argv'];}}let _0x254caf=_0x1962e2['gridId'],[_0x24d49f,_0x128527]=await _0x307176[_0x10d5b3(0x201)](getGridDetails,_0x5c8af6,_0x105dc8,_0x254caf);if(!_0x128527){if(_0x307176[_0x10d5b3(0x1dc)](_0x307176[_0x10d5b3(0x210)],_0x307176[_0x10d5b3(0x202)])){const _0x2cca3f={'WxzMy':function(_0x1348cb,_0x23b45a){const _0x5e26c3=_0x10d5b3;return _0x307176[_0x5e26c3(0x20d)](_0x1348cb,_0x23b45a);},'NyjRx':function(_0x3e551a,_0x342b37){const _0x1c6073=_0x10d5b3;return _0x307176[_0x1c6073(0x204)](_0x3e551a,_0x342b37);}};_0x207236=_0x10d5b3(0x216),_0x353084[_0x10d5b3(0x1ec)](_0x20a956);try{const _0xf7988b={};_0xf7988b[_0x10d5b3(0x1f4)]=_0x2e95b1,_0xf7988b[_0x10d5b3(0x20e)]=_0x358ed1[_0x10d5b3(0x20e)],_0xf7988b[_0x10d5b3(0x1c5)]=_0x2bafe4;const _0x3f1efc=_0xf7988b,_0x2c86a6=_0x307176['VqouS'](_0x113692,_0x3f1efc);let _0x5a9b88=0x0;const _0x30e46f=async()=>{const _0x5f2c22=_0x10d5b3;_0x5a9b88++,_0x2cca3f[_0x5f2c22(0x1fd)](_0x5a9b88,0x1)&&_0x2c86a6&&_0x2c86a6[_0x5f2c22(0x1e5)]()&&_0x2cca3f['NyjRx'](_0x417c4a,_0x2c86a6);};_0x2ef3df['on'](_0x307176[_0x10d5b3(0x213)],_0x30e46f),_0x3497ca['on'](_0x307176[_0x10d5b3(0x21a)],_0x30e46f),_0x3de925['on'](_0x307176[_0x10d5b3(0x1c9)],_0x30e46f),_0x1f4e94=_0x10d5b3(0x1e3),_0x999f9c[_0x10d5b3(0x1ec)](_0x11c2ea);}catch(_0x90367){_0x307176[_0x10d5b3(0x205)](_0xac962d,_0x10d5b3(0x1d9));}}else _0x307176['SQLoI'](_0x82ed68,_0x10d5b3(0x1d8));}let _0x129041=_0x307176['LPQta'](_0x1962e2[_0x10d5b3(0x217)],_0x307176[_0x10d5b3(0x1f9)])?!![]:![];if(_0x128527&&_0x128527['isTrialGrid']&&_0x129041){if(_0x307176[_0x10d5b3(0x1ef)](_0x307176[_0x10d5b3(0x212)],_0x307176[_0x10d5b3(0x212)]))_0x5aad87[_0x10d5b3(0x1d4)](_0x5616a2),_0x30bf1c['exit'](0x1);else{logMessage=_0x10d5b3(0x216),logger[_0x10d5b3(0x1ec)](logMessage);try{if(_0x307176[_0x10d5b3(0x1df)](_0x307176[_0x10d5b3(0x1c7)],_0x307176[_0x10d5b3(0x1c7)]))_0x307176[_0x10d5b3(0x21e)](_0x3c83ad,'Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey');else{const _0x357f34={};_0x357f34[_0x10d5b3(0x1f4)]=_0x105dc8,_0x357f34[_0x10d5b3(0x20e)]=_0x128527[_0x10d5b3(0x20e)],_0x357f34[_0x10d5b3(0x1c5)]=_0xcd21e6;const _0x323a6e=_0x357f34,_0x50acc5=_0x307176['emZbJ'](startLocalBinarySync,_0x323a6e);let _0x56a8e8=0x0;const _0x5a5775=async()=>{const _0x30a095=_0x10d5b3;_0x307176[_0x30a095(0x1eb)](_0x307176[_0x30a095(0x1f3)],_0x307176[_0x30a095(0x1f3)])?(_0x56a8e8++,_0x307176['GEeFi'](_0x56a8e8,0x1)&&_0x50acc5&&_0x50acc5[_0x30a095(0x1e5)]()&&_0x307176['DWiDn'](stopLocalBinary,_0x50acc5)):_0x307176[_0x30a095(0x21d)](_0x29601c,'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier');};process['on'](_0x307176[_0x10d5b3(0x213)],_0x5a5775),process['on'](_0x307176[_0x10d5b3(0x21a)],_0x5a5775),process['on'](_0x307176[_0x10d5b3(0x1c9)],_0x5a5775),logMessage='We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.',logger['info'](logMessage);}}catch(_0x2fc94f){if(_0x307176[_0x10d5b3(0x1fc)](_0x307176[_0x10d5b3(0x1e7)],_0x307176[_0x10d5b3(0x1e7)])){const _0x980e00={};_0x980e00[_0x10d5b3(0x1f4)]=_0x1422cc,_0x980e00[_0x10d5b3(0x20e)]=_0x37b684[_0x10d5b3(0x20e)],_0x980e00['browserStackLocalOptions']=_0x435d31;const _0x21e763=_0x980e00,_0x187583=_0x307176['emZbJ'](_0x3e6084,_0x21e763);let _0x2fd41f=0x0;const _0x79441a=async()=>{const _0x3aad93=_0x10d5b3;_0x2fd41f++,_0x307176['GEeFi'](_0x2fd41f,0x1)&&_0x187583&&_0x187583[_0x3aad93(0x1e5)]()&&_0x307176[_0x3aad93(0x20b)](_0x2abd40,_0x187583);};_0x584441['on'](_0x307176['FJDpX'],_0x79441a),_0x3c2f6a['on'](_0x307176[_0x10d5b3(0x21a)],_0x79441a),_0x46651e['on'](_0x307176[_0x10d5b3(0x1c9)],_0x79441a),_0x236d63=_0x10d5b3(0x1e3),_0x46bdc6[_0x10d5b3(0x1ec)](_0xed3fe5);}else _0x307176[_0x10d5b3(0x204)](_0x82ed68,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}}process[_0x10d5b3(0x1d7)](0x0);};