browserstack-node-sdk 1.34.12 → 1.34.13

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 (126) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/utils/AWSUtils.js +1 -1
  25. package/ats/src/utils/createAutoscalerStack.js +1 -1
  26. package/ats/src/utils/createClusterStack.js +1 -1
  27. package/ats/src/utils/createk8sClient.js +1 -1
  28. package/ats/src/utils/deleteStack.js +1 -1
  29. package/ats/src/utils/gridComponents.js +1 -1
  30. package/ats/src/utils/hstUtils.js +1 -1
  31. package/ats/src/utils/instrumentationUtils.js +1 -1
  32. package/ats/src/utils/userInput.js +1 -1
  33. package/ats/src/utils/utilityMethods.js +1 -1
  34. package/ats/src/utils/webSocketUtils.js +1 -1
  35. package/package.json +1 -1
  36. package/src/ai-sdk-node/bundle.js +1 -1
  37. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  38. package/src/bin/codeceptjs/command.js +1 -1
  39. package/src/bin/codeceptjs/helper.js +1 -1
  40. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  41. package/src/bin/cucumber-js/command.js +1 -1
  42. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  43. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  44. package/src/bin/cucumber-js/test-observability.js +1 -1
  45. package/src/bin/cucumber-js/test.setup.js +1 -1
  46. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  47. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  48. package/src/bin/integrations/command.js +1 -1
  49. package/src/bin/integrations/constants.js +1 -1
  50. package/src/bin/jest/command.js +1 -1
  51. package/src/bin/jest/customImplements/customCircus.js +1 -1
  52. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  53. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  54. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  55. package/src/bin/jest/jest.setup.js +1 -1
  56. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  57. package/src/bin/jest/test-observability/helper.js +1 -1
  58. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  59. package/src/bin/jest/test-observability/test-details.js +1 -1
  60. package/src/bin/jest/test_before.setup.js +1 -1
  61. package/src/bin/launcher/launcher.js +1 -1
  62. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  63. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  64. package/src/bin/mocha/command.js +1 -1
  65. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  66. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  67. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  68. package/src/bin/mocha/test.setup.js +1 -1
  69. package/src/bin/nightwatch/command.js +1 -1
  70. package/src/bin/playwright/accessibility-helper.js +1 -1
  71. package/src/bin/playwright/command.js +1 -1
  72. package/src/bin/playwright/globalSetup.js +1 -1
  73. package/src/bin/playwright/mock-process.js +1 -1
  74. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  75. package/src/bin/playwright/patches.js +1 -1
  76. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  77. package/src/bin/playwright/reporter/reporter.js +1 -1
  78. package/src/bin/playwright/reporter/test-details.js +1 -1
  79. package/src/bin/playwright/sessionDetails.js +1 -1
  80. package/src/bin/runner.js +1 -1
  81. package/src/bin/setup.js +1 -1
  82. package/src/bin/test-runner/index.js +1 -1
  83. package/src/bin/test-runner/runTest.js +1 -1
  84. package/src/bin/test-runner/testWorker.js +1 -1
  85. package/src/bin/utils/constants.js +1 -1
  86. package/src/bin/utils/log4jsAppender.js +1 -1
  87. package/src/bin/utils/logPatcher.js +1 -1
  88. package/src/bin/utils/logReportingAPI.js +1 -1
  89. package/src/bin/vanilla-js/command.js +1 -1
  90. package/src/browserStackSdk.js +1 -1
  91. package/src/helpers/BrowserStackSetup.js +1 -1
  92. package/src/helpers/accessibility-automation/constants.js +1 -1
  93. package/src/helpers/accessibility-automation/helper.js +1 -1
  94. package/src/helpers/accessibility-automation/scripts.js +1 -1
  95. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  96. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  97. package/src/helpers/ats/constants.js +1 -1
  98. package/src/helpers/ats/helper.js +1 -1
  99. package/src/helpers/capsMapping.js +1 -1
  100. package/src/helpers/globals.js +1 -1
  101. package/src/helpers/helper.js +1 -1
  102. package/src/helpers/logger.js +1 -1
  103. package/src/helpers/patchHelpers.js +1 -1
  104. package/src/helpers/percy/Percy.js +1 -1
  105. package/src/helpers/percy/PercyBinary.js +1 -1
  106. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  107. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  108. package/src/helpers/percy/PercySDK.js +1 -1
  109. package/src/helpers/percy/index.js +1 -1
  110. package/src/helpers/percy/utils.js +1 -1
  111. package/src/helpers/performance-tester.js +1 -1
  112. package/src/helpers/request-spy.js +1 -1
  113. package/src/helpers/setKeepAlive.js +1 -1
  114. package/src/helpers/test-observability/constants.js +1 -1
  115. package/src/helpers/test-observability/error-handler.js +1 -1
  116. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  117. package/src/helpers/test-observability/sessionHandler.js +1 -1
  118. package/src/helpers/test-observability/utils.js +1 -1
  119. package/src/helpers/testhub/constants.js +1 -1
  120. package/src/helpers/testhub/testhubHandler.js +1 -1
  121. package/src/helpers/testhub/utils.js +1 -1
  122. package/src/helpers/timeoutPromise.js +1 -1
  123. package/src/helpers/utilities.js +1 -1
  124. package/src/helpers/w3cMapping.js +1 -1
  125. package/src/hubAllocationMethods.js +1 -1
  126. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a3_0x122961=a3_0x5e07;(function(_0x3c004f,_0x272089){const _0x1ad32b=a3_0x5e07,_0x495aa4=_0x3c004f();while(!![]){try{const _0x5f0e7f=parseInt(_0x1ad32b(0x140))/0x1*(parseInt(_0x1ad32b(0xce))/0x2)+parseInt(_0x1ad32b(0x10c))/0x3+-parseInt(_0x1ad32b(0x189))/0x4+-parseInt(_0x1ad32b(0xad))/0x5*(parseInt(_0x1ad32b(0x180))/0x6)+-parseInt(_0x1ad32b(0x1d5))/0x7+parseInt(_0x1ad32b(0x1cd))/0x8+parseInt(_0x1ad32b(0x9f))/0x9;if(_0x5f0e7f===_0x272089)break;else _0x495aa4['push'](_0x495aa4['shift']());}catch(_0x387062){_0x495aa4['push'](_0x495aa4['shift']());}}}(a3_0x37d7,0xa7a4e));const fs=require('fs'),path=require(a3_0x122961(0xe0)),got=require(a3_0x122961(0xbb)),util=require(a3_0x122961(0x1a7)),cp=require('child_process'),{google}=require(a3_0x122961(0x16e)),compute=require(a3_0x122961(0x16b)),container=require(a3_0x122961(0xd7)),{ProjectsClient}=require(a3_0x122961(0xfa))['v3'],{logger}=require(a3_0x122961(0x1db)),{CloudProvider}=require(a3_0x122961(0x174)),{getDirForConfig,getAuthHeader}=require('../utils/utilityMethods'),{deleteRoutingDeps,deleteAgent}=require(a3_0x122961(0x122)),{inputConfirmation,closeInput}=require(a3_0x122961(0xdb)),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x122961(0x17a));function a3_0x5e07(_0x23ebcc,_0x5c3572){const _0x37d763=a3_0x37d7();return a3_0x5e07=function(_0x5e07e5,_0x9e63bf){_0x5e07e5=_0x5e07e5-0x93;let _0x55ae72=_0x37d763[_0x5e07e5];return _0x55ae72;},a3_0x5e07(_0x23ebcc,_0x5c3572);}class GoogleCloudProvider extends CloudProvider{constructor(_0x59eb2f,_0x26c821,_0x2cc315,_0x4cdd61){const _0x335b2e=a3_0x122961,_0x527ebf={};_0x527ebf[_0x335b2e(0x104)]='8|5|4|2|3|6|0|1|7',_0x527ebf['kdVUN']=_0x335b2e(0x14a),_0x527ebf[_0x335b2e(0x133)]=_0x335b2e(0x1bb);const _0x52bf8d=_0x527ebf,_0x52af19=_0x52bf8d[_0x335b2e(0x104)]['split']('|');let _0x1b2ebc=0x0;while(!![]){switch(_0x52af19[_0x1b2ebc++]){case'0':this[_0x335b2e(0x1ca)]=null;continue;case'1':this[_0x335b2e(0x9d)]=_0x52bf8d[_0x335b2e(0x194)];continue;case'2':this[_0x335b2e(0x138)]=null;continue;case'3':this[_0x335b2e(0x1a3)]=null;continue;case'4':this[_0x335b2e(0x1e4)]=null;continue;case'5':this[_0x335b2e(0x1e7)]=null;continue;case'6':this[_0x335b2e(0x10d)]=null;continue;case'7':this[_0x335b2e(0x192)]=_0x52bf8d['ZyxUQ'];continue;case'8':super(GCP,_0x59eb2f,_0x26c821,_0x2cc315,_0x4cdd61);continue;}break;}}async[a3_0x122961(0x19d)](){const _0x1624b6=a3_0x122961;this['sendGCPInfoToHST'](this[_0x1624b6(0x1f7)]);}async['init'](){const _0x45e2e3=a3_0x122961;await super[_0x45e2e3(0xa6)]();const _0x5301a5=this[_0x45e2e3(0x10d)],_0x342b02={};_0x342b02['keyFile']=_0x5301a5,this[_0x45e2e3(0x1e7)]=new container['v1'][(_0x45e2e3(0x1c7))](_0x342b02);const _0x3beb88={};_0x3beb88[_0x45e2e3(0x126)]=_0x5301a5,this[_0x45e2e3(0x1e4)]=new compute['v1'][(_0x45e2e3(0x173))](_0x3beb88);const _0x4e3b3a={};return _0x4e3b3a['keyFile']=_0x5301a5,this[_0x45e2e3(0x138)]=new ProjectsClient(_0x4e3b3a),this[_0x45e2e3(0x1a3)]=google['iam']('v1'),this;}async[a3_0x122961(0x1be)](_0x1c8a74,_0xe9c789){const _0x27a402=a3_0x122961,_0x47bd50={'ZVdRj':function(_0x3ce379,_0x370bce){return _0x3ce379(_0x370bce);},'ehLEH':_0x27a402(0x142),'hBYrt':function(_0x17157f){return _0x17157f();},'ofpoL':_0x27a402(0xed)},_0x4aeb6c=await _0x47bd50[_0x27a402(0x13f)](_0x1c8a74,_0x47bd50['ehLEH']);let _0x3eb7ab=await fs['readFileAsync'](_0x4aeb6c);_0x3eb7ab=_0x3eb7ab['toString']();const _0x188d47=_0x47bd50['hBYrt'](getDirForConfig),_0x2d8753=path[_0x27a402(0xc7)](_0x188d47,_0x47bd50[_0x27a402(0x1d1)]);fs['writeFileSync'](_0x2d8753,_0x3eb7ab),this[_0x27a402(0x10d)]=_0x2d8753;const _0x240e57={};return _0x240e57['keyFile']=_0x2d8753,_0xe9c789['cloudProvider'][GCP]=_0x240e57,_0x3eb7ab=JSON[_0x27a402(0x1c8)](_0x3eb7ab),this[_0x27a402(0x1ca)]=_0x3eb7ab[_0x27a402(0xc6)],_0xe9c789;}async['setCachedCredsInRegistry'](_0x52edab){const _0x1c11b5=a3_0x122961;this[_0x1c11b5(0x10d)]=_0x52edab[this[_0x1c11b5(0x18c)]][_0x1c11b5(0x126)];let _0x397f12=await fs['readFileAsync'](this[_0x1c11b5(0x10d)]);_0x397f12=JSON[_0x1c11b5(0x1c8)](_0x397f12),this[_0x1c11b5(0x1ca)]=_0x397f12[_0x1c11b5(0xc6)];}[a3_0x122961(0x1dd)](_0x284b31){const _0x16238e=a3_0x122961;return _0x284b31[_0x16238e(0x1ad)][_0x16238e(0x1f6)][_0x16238e(0x96)][0x0]['ip'];}async[a3_0x122961(0x1b7)](){const _0x3a1d63=a3_0x122961,_0x502041={};_0x502041[_0x3a1d63(0xfd)]=function(_0x34f160,_0x97798c){return _0x34f160!==_0x97798c;},_0x502041[_0x3a1d63(0x13e)]='Blpcz',_0x502041['fnfJf']=function(_0x21784b,_0x461cb6){return _0x21784b===_0x461cb6;},_0x502041[_0x3a1d63(0x105)]=_0x3a1d63(0x97),_0x502041[_0x3a1d63(0x177)]=_0x3a1d63(0x103),_0x502041[_0x3a1d63(0x12c)]=_0x3a1d63(0x14f),_0x502041[_0x3a1d63(0x1a4)]=function(_0x35b1ff,_0x133a40){return _0x35b1ff===_0x133a40;},_0x502041[_0x3a1d63(0x158)]=_0x3a1d63(0x1d3),_0x502041['qQvIB']='fnLpC';const _0x220fe2=_0x502041;try{if(_0x220fe2[_0x3a1d63(0xfd)](_0x220fe2[_0x3a1d63(0x13e)],_0x220fe2[_0x3a1d63(0x13e)]))return _0x220fe2['MCefp'](_0x15ed22['clusterRegion'],_0x2a1c04[0x0])&&(_0x15f4d8[_0x3a1d63(0x168)]=_0x306688[0x0],this[_0x3a1d63(0x135)]()),!![];else{const _0xa5a3bf=await this[_0x3a1d63(0x1f5)]();if(_0xa5a3bf[0x0]?.[_0x3a1d63(0xbe)]?.['managedby']){if(_0x220fe2['fnfJf'](_0x220fe2['lopdX'],_0x220fe2[_0x3a1d63(0x177)]))return _0x830cf1['status'][_0x3a1d63(0x1f6)][_0x3a1d63(0x96)][0x0]['ip'];else{const _0x47f91f=_0xa5a3bf[0x0]?.[_0x3a1d63(0xbe)]?.[_0x3a1d63(0xd0)];return _0x47f91f&&_0x220fe2[_0x3a1d63(0x1aa)](_0x47f91f[_0x3a1d63(0x1e1)](),_0x220fe2[_0x3a1d63(0x12c)]);}}}}catch(_0x13eed0){return _0x220fe2[_0x3a1d63(0x1a4)](_0x220fe2[_0x3a1d63(0x158)],_0x220fe2['qQvIB'])?!![]:![];}return![];}async[a3_0x122961(0xe2)](){const _0x5e8e08=a3_0x122961,_0x4277ee={'cXBFL':_0x5e8e08(0xda),'xwheQ':function(_0x4140dc,_0x589037){return _0x4140dc-_0x589037;},'lWtiM':function(_0x435ebc,_0x3e829d){return _0x435ebc===_0x3e829d;},'kAhMV':_0x5e8e08(0x14f),'wTJwy':function(_0x58c938,_0x1a7abf){return _0x58c938+_0x1a7abf;},'ziSeX':_0x5e8e08(0x1c9),'cqayz':_0x5e8e08(0xb1),'RVocS':'gcpresources','HbjcD':_0x5e8e08(0x12e),'FBlYC':_0x5e8e08(0xe9),'IRYOi':function(_0x294eed,_0x42ccff){return _0x294eed!==_0x42ccff;},'BriKi':function(_0x17e20d,_0x12c953){return _0x17e20d!==_0x12c953;},'aaaRk':_0x5e8e08(0x131),'oEHEO':_0x5e8e08(0xe7),'wTXIS':_0x5e8e08(0x18d),'lMBvh':_0x5e8e08(0x10a),'RHBmJ':function(_0x2906f4,_0xdf9950){return _0x2906f4===_0xdf9950;},'rZRrV':function(_0x224189,_0x2ce42a){return _0x224189!==_0x2ce42a;},'xJsBU':_0x5e8e08(0x10f),'PZjOG':_0x5e8e08(0x93),'eTQuj':function(_0x4f0518,_0x3898b9){return _0x4f0518===_0x3898b9;},'XCDKD':function(_0x38574e,_0x1fdf8e){return _0x38574e!==_0x1fdf8e;},'cCjZO':_0x5e8e08(0xe4),'mLyax':'dXjIs','zwZex':function(_0x125785,_0x475d42){return _0x125785!==_0x475d42;},'EvBWD':function(_0x51577b,_0x5e19d4){return _0x51577b===_0x5e19d4;},'WqFNE':_0x5e8e08(0x17f),'knzrf':_0x5e8e08(0x1f0),'FnbZS':function(_0x2ccce9,_0x46cb2c){return _0x2ccce9>_0x46cb2c;},'UcUxR':_0x5e8e08(0x98),'jDuAQ':function(_0x39d786,_0x495193){return _0x39d786<_0x495193;},'HHrFr':_0x5e8e08(0x9a),'IuVgh':function(_0x1effe9,_0x5096ef){return _0x1effe9+_0x5096ef;},'NyvEH':function(_0x56d4ef,_0x433fe0){return _0x56d4ef(_0x433fe0);},'TEYjS':_0x5e8e08(0x160),'ymnUc':function(_0x123943,_0x10fd96){return _0x123943(_0x10fd96);},'EMXmc':function(_0x297e96,_0x4f513f){return _0x297e96<=_0x4f513f;},'oxfBM':function(_0x59c8e6,_0x959f07){return _0x59c8e6!==_0x959f07;},'ZnlIY':_0x5e8e08(0x14c),'oSPbY':function(_0x15c320){return _0x15c320();},'MSEcU':function(_0x15d0cb,_0x1453c3){return _0x15d0cb-_0x1453c3;},'smeYL':_0x5e8e08(0x16a),'CNnLN':_0x5e8e08(0xdf)};let _0x1f3480=await fs[_0x5e8e08(0x1c5)](path[_0x5e8e08(0xc7)](__dirname,'..',_0x4277ee[_0x5e8e08(0x1e6)],_0x4277ee[_0x5e8e08(0x1b5)],_0x4277ee[_0x5e8e08(0xac)]),_0x4277ee[_0x5e8e08(0xe6)]);_0x1f3480=JSON[_0x5e8e08(0x1c8)](_0x1f3480);let _0xf958cf=[global_registry['clusterRegion']];if(_0x4277ee[_0x5e8e08(0x183)](_0x1f3480[global_registry[_0x5e8e08(0x168)]],undefined)){if(_0x4277ee[_0x5e8e08(0x1f4)](_0x4277ee[_0x5e8e08(0x154)],_0x4277ee[_0x5e8e08(0x154)]))return![];else _0xf958cf=_0xf958cf[_0x5e8e08(0x1ac)](_0x1f3480[global_registry[_0x5e8e08(0x168)]]);}const _0x25e0cc=[];for await(const _0x15690d of _0xf958cf){if(_0x4277ee[_0x5e8e08(0xc1)](_0x4277ee[_0x5e8e08(0x13d)],_0x4277ee[_0x5e8e08(0x166)]))_0x40a5c8['error'](_0x4277ee['cXBFL']),_0x22b7e4[_0x5e8e08(0xc8)](0x1);else{const _0xee1471={};_0xee1471['parent']=_0x5e8e08(0x101)+this[_0x5e8e08(0x1ca)]+_0x5e8e08(0xcb)+_0x15690d;const _0x3aa8a2=_0xee1471,_0x3159cd=await this[_0x5e8e08(0x1e7)][_0x5e8e08(0xc3)](_0x3aa8a2);for(const _0x3b861e of _0x3159cd[0x0][_0x5e8e08(0x1b8)]){_0x4277ee[_0x5e8e08(0x183)](_0x4277ee[_0x5e8e08(0x148)],_0x4277ee['lMBvh'])?_0x4a0fc5[_0x5e8e08(0xfe)][_0x5e8e08(0x1bc)](_0x4f8481):_0x4277ee[_0x5e8e08(0x1e5)](_0x3b861e[_0x5e8e08(0xef)],this[_0x5e8e08(0xc2)])&&(_0x4277ee[_0x5e8e08(0xde)](_0x4277ee[_0x5e8e08(0xbc)],_0x4277ee['PZjOG'])?_0x25e0cc['push'](_0x15690d):(_0x50c48f[_0x5e8e08(0x168)]=_0x3a1520[_0x4277ee['xwheQ'](_0x32fe16,0x1)],this[_0x5e8e08(0x135)]()));}}}const _0x429314=_0x25e0cc[_0x5e8e08(0x100)];if(_0x4277ee[_0x5e8e08(0xaf)](_0x429314,0x1)){if(_0x4277ee[_0x5e8e08(0xc9)](_0x4277ee['cCjZO'],_0x4277ee['mLyax']))return _0x4277ee[_0x5e8e08(0x1ae)](global_registry[_0x5e8e08(0x168)],_0x25e0cc[0x0])&&(_0x4277ee[_0x5e8e08(0x1f9)](_0x4277ee[_0x5e8e08(0x1ea)],_0x4277ee['knzrf'])?_0x4277ee[_0x5e8e08(0xc1)](_0x5499ad[_0x5e8e08(0xef)],this['clusterName'])&&_0x5dbf65[_0x5e8e08(0x1bc)](_0x34d2e7):(global_registry[_0x5e8e08(0x168)]=_0x25e0cc[0x0],this['updateClusterRegion']())),!![];else{if(_0x4277ee[_0x5e8e08(0xc1)](_0x4e1511?.[_0x5e8e08(0xef)],_0x5e8e08(0x101)+this[_0x5e8e08(0x1ca)]+_0x5e8e08(0x10b)+this[_0x5e8e08(0x192)]+'@'+this[_0x5e8e08(0x1ca)]+'.iam.gserviceaccount.com'))return!![];}}else{if(_0x4277ee['FnbZS'](_0x429314,0x1)){if(_0x4277ee[_0x5e8e08(0xaf)](_0x4277ee[_0x5e8e08(0x1b4)],_0x4277ee['UcUxR'])){console[_0x5e8e08(0x10e)](_0x5e8e08(0x186)+this[_0x5e8e08(0xc2)]+_0x5e8e08(0x175));for(let _0x4364c3=0x0;_0x4277ee[_0x5e8e08(0xa7)](_0x4364c3,_0x429314);_0x4364c3+=0x1){if(_0x4277ee['lWtiM'](_0x4277ee[_0x5e8e08(0xa4)],_0x4277ee[_0x5e8e08(0xa4)]))console[_0x5e8e08(0x10e)]('['+_0x4277ee[_0x5e8e08(0xb3)](_0x4364c3,0x1)+']\x20'+_0x25e0cc[_0x4364c3]);else return![];}const _0x2b5056=await _0x4277ee[_0x5e8e08(0xae)](inputConfirmation,_0x4277ee[_0x5e8e08(0x1b1)]),_0x13e5cb=_0x4277ee['NyvEH'](Number,_0x2b5056);if(_0x4277ee[_0x5e8e08(0xd3)](isNaN,_0x13e5cb)||_0x4277ee[_0x5e8e08(0x11c)](_0x13e5cb,0x0)||_0x4277ee[_0x5e8e08(0x1cc)](_0x13e5cb,_0x429314)){if(_0x4277ee[_0x5e8e08(0x1da)](_0x4277ee[_0x5e8e08(0x1b2)],_0x4277ee[_0x5e8e08(0x1b2)])){const _0x4836fc=_0xa01537[0x0]?.[_0x5e8e08(0xbe)]?.[_0x5e8e08(0xd0)];return _0x4836fc&&_0x4277ee[_0x5e8e08(0xc1)](_0x4836fc[_0x5e8e08(0x1e1)](),_0x4277ee[_0x5e8e08(0x118)]);}else console['error'](_0x4277ee[_0x5e8e08(0x1d8)]),process['exit'](0x1);}return _0x4277ee[_0x5e8e08(0x1c0)](closeInput),logger[_0x5e8e08(0x1e3)]('Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20'+_0x25e0cc[_0x4277ee[_0x5e8e08(0xd1)](_0x13e5cb,0x1)]),_0x4277ee['oxfBM'](global_registry[_0x5e8e08(0x168)],_0x25e0cc[_0x4277ee['xwheQ'](_0x13e5cb,0x1)])&&(_0x4277ee[_0x5e8e08(0x1f9)](_0x4277ee[_0x5e8e08(0xd8)],_0x4277ee[_0x5e8e08(0x129)])?_0x522768[_0x5e8e08(0x10e)]('['+_0x4277ee[_0x5e8e08(0x14d)](_0x44794e,0x1)+']\x20'+_0x3c13f7[_0x318274]):(global_registry[_0x5e8e08(0x168)]=_0x25e0cc[_0x4277ee[_0x5e8e08(0xb7)](_0x13e5cb,0x1)],this[_0x5e8e08(0x135)]())),!![];}else _0xa8bc10[_0x5e8e08(0x1e3)](_0x4277ee[_0x5e8e08(0x1cf)]);}}return![];}async[a3_0x122961(0x1f5)](){const _0x338aed=a3_0x122961,_0x434b17=await this[_0x338aed(0x1e7)][_0x338aed(0x150)]({'name':_0x338aed(0x101)+this[_0x338aed(0x1ca)]+_0x338aed(0xcb)+global_registry[_0x338aed(0x168)]+_0x338aed(0xf7)+this[_0x338aed(0xc2)]});return _0x434b17;}async[a3_0x122961(0x119)](){const _0x220f9d=a3_0x122961,_0x5229aa={};_0x5229aa[_0x220f9d(0x1dc)]=_0x220f9d(0x1c6),_0x5229aa[_0x220f9d(0x172)]=_0x220f9d(0xb1),_0x5229aa[_0x220f9d(0xa2)]=_0x220f9d(0x152),_0x5229aa[_0x220f9d(0x9e)]=_0x220f9d(0x188);const _0x4c1ce7=_0x5229aa;cp[_0x220f9d(0xec)](_0x4c1ce7['zIHYB']),cp[_0x220f9d(0x145)](_0x220f9d(0x1a1)+this[_0x220f9d(0x10d)]);const _0x38f262=await this['getClusterInfo'](),_0x5e9d5d=_0x220f9d(0xd2)+this[_0x220f9d(0x1ca)]+'_'+global_registry[_0x220f9d(0x168)]+'_'+this['clusterName'];let _0x5584d4=await fs[_0x220f9d(0x1c5)](path['join'](__dirname,'..',_0x4c1ce7['HtAdl'],_0x4c1ce7[_0x220f9d(0xa2)],_0x4c1ce7['jnaed']));return _0x5584d4=_0x5584d4[_0x220f9d(0xbd)](),_0x5584d4=_0x5584d4['replace'](/<CLUSTER_NAME>/g,_0x5e9d5d),_0x5584d4=_0x5584d4['replace'](/<CLUSTER_URL>/g,'https://'+_0x38f262[0x0][_0x220f9d(0x9c)]),_0x5584d4=_0x5584d4[_0x220f9d(0x113)](/<CERTIFICATE_DATA>/g,_0x38f262[0x0][_0x220f9d(0xf6)][_0x220f9d(0xd9)]),_0x5584d4;}async[a3_0x122961(0x11f)](){const _0x2e0198=a3_0x122961,_0x731ff4={};_0x731ff4['RUyLj']=_0x2e0198(0x161),_0x731ff4[_0x2e0198(0x195)]=function(_0x5e9e36,_0x36a2ed){return _0x5e9e36!==_0x36a2ed;},_0x731ff4[_0x2e0198(0xd6)]=_0x2e0198(0x19f),_0x731ff4[_0x2e0198(0x15f)]=_0x2e0198(0xff),_0x731ff4['sXAwA']=function(_0x3c88ee,_0x451fb7){return _0x3c88ee===_0x451fb7;},_0x731ff4['emSxI']='llOKW',_0x731ff4[_0x2e0198(0xa0)]=_0x2e0198(0x1a8),_0x731ff4[_0x2e0198(0x1f3)]=_0x2e0198(0x171);const _0x40d24e=_0x731ff4,_0x414dc4={};_0x414dc4[_0x2e0198(0x106)]=[_0x40d24e[_0x2e0198(0x111)]],_0x414dc4[_0x2e0198(0x126)]=this[_0x2e0198(0x10d)];const _0x1877aa=await google['auth'][_0x2e0198(0x11a)](_0x414dc4),_0x74af7f=await this['iamClient']['projects'][_0x2e0198(0xa8)]['list']({'name':_0x2e0198(0x101)+this[_0x2e0198(0x1ca)],'auth':_0x1877aa});if(_0x74af7f?.[_0x2e0198(0xdc)]?.[_0x2e0198(0x1f1)]){if(_0x40d24e[_0x2e0198(0x195)](_0x40d24e['xKTIc'],_0x40d24e[_0x2e0198(0x15f)]))for(const _0x36660a of _0x74af7f[_0x2e0198(0xdc)]['accounts']){if(_0x40d24e[_0x2e0198(0xa9)](_0x40d24e['emSxI'],_0x40d24e['qUMQm']))_0x2b9795=_0x41fd30['concat'](_0x748006[_0x1f8210[_0x2e0198(0x168)]]);else{if(_0x40d24e[_0x2e0198(0xa9)](_0x36660a?.[_0x2e0198(0xef)],'projects/'+this[_0x2e0198(0x1ca)]+_0x2e0198(0x10b)+this[_0x2e0198(0x192)]+'@'+this[_0x2e0198(0x1ca)]+_0x2e0198(0x1cb))){if(_0x40d24e[_0x2e0198(0x195)](_0x40d24e[_0x2e0198(0x1f3)],_0x40d24e['hcuAM']))_0x22a353[_0x2e0198(0xec)](_0x2e0198(0x1de)+this[_0x2e0198(0xc2)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+_0x1085a3[_0x2e0198(0x168)]+_0x2e0198(0x178));else return!![];}}}else _0x17ac74[_0x2e0198(0x1bc)](_0x397964);}return![];}async[a3_0x122961(0x19b)](){const _0x56df03=a3_0x122961,_0x4e78fd={};_0x4e78fd['qSMJD']=function(_0x1a98af,_0x489e12){return _0x1a98af===_0x489e12;},_0x4e78fd[_0x56df03(0x1af)]='SpwYh',_0x4e78fd['zjHVA']=_0x56df03(0x1c1),_0x4e78fd['kOPAY']=_0x56df03(0x182),_0x4e78fd[_0x56df03(0xc0)]=_0x56df03(0x123),_0x4e78fd['UqGGN']=_0x56df03(0x161),_0x4e78fd[_0x56df03(0x1e8)]=_0x56df03(0x167),_0x4e78fd[_0x56df03(0xb4)]='storage.buckets.create',_0x4e78fd['nnSGn']='storage.buckets.createTagBinding',_0x4e78fd['FHyAZ']=_0x56df03(0xa3),_0x4e78fd[_0x56df03(0x1c3)]=_0x56df03(0x15b),_0x4e78fd[_0x56df03(0xba)]=_0x56df03(0x1eb),_0x4e78fd[_0x56df03(0x11b)]='storage.buckets.getIamPolicy',_0x4e78fd[_0x56df03(0x1e0)]=_0x56df03(0x1ed),_0x4e78fd[_0x56df03(0x127)]=_0x56df03(0x17c),_0x4e78fd[_0x56df03(0x1a2)]='storage.buckets.listEffectiveTags',_0x4e78fd[_0x56df03(0x109)]=_0x56df03(0x184),_0x4e78fd['JdLbD']='storage.buckets.setIamPolicy',_0x4e78fd['lJrXh']=_0x56df03(0xd5),_0x4e78fd['YGquh']=_0x56df03(0x13b),_0x4e78fd[_0x56df03(0x13a)]=_0x56df03(0x1ab),_0x4e78fd[_0x56df03(0x162)]=_0x56df03(0x108),_0x4e78fd[_0x56df03(0x1ce)]=_0x56df03(0x1a5),_0x4e78fd['WLNot']=_0x56df03(0x13c),_0x4e78fd['OKHnW']=_0x56df03(0x107),_0x4e78fd[_0x56df03(0x11d)]=_0x56df03(0x112),_0x4e78fd[_0x56df03(0x1d7)]='storage.objects.getIamPolicy',_0x4e78fd[_0x56df03(0xcc)]='storage.objects.list',_0x4e78fd[_0x56df03(0x1a0)]=_0x56df03(0xd4),_0x4e78fd['TPXBP']=_0x56df03(0x181),_0x4e78fd[_0x56df03(0x1b9)]=_0x56df03(0x17d),_0x4e78fd[_0x56df03(0x176)]=_0x56df03(0x125);const _0x2377b3=_0x4e78fd,_0x4e6558=await this[_0x56df03(0x11f)]();if(_0x4e6558){if(_0x2377b3[_0x56df03(0x18b)](_0x2377b3[_0x56df03(0x1af)],_0x2377b3['zjHVA']))return!![];else{logger[_0x56df03(0x1e3)](_0x2377b3[_0x56df03(0x187)]);return;}}logger[_0x56df03(0x1e3)](_0x2377b3['YsSjx']);const _0x439c4a={};_0x439c4a[_0x56df03(0x106)]=[_0x2377b3[_0x56df03(0xb8)]],_0x439c4a[_0x56df03(0x126)]=this[_0x56df03(0x10d)];const _0x503436=await google[_0x56df03(0xc5)][_0x56df03(0x11a)](_0x439c4a),_0x2f5fcb={};_0x2f5fcb['includedPermissions']=[_0x2377b3[_0x56df03(0x1e8)],_0x2377b3[_0x56df03(0xb4)],_0x2377b3[_0x56df03(0xcf)],_0x2377b3[_0x56df03(0x18a)],_0x2377b3[_0x56df03(0x1c3)],_0x2377b3[_0x56df03(0xba)],_0x2377b3['WwdqF'],_0x2377b3['yCMIX'],_0x2377b3['moveh'],_0x2377b3[_0x56df03(0x1a2)],_0x2377b3[_0x56df03(0x109)],_0x2377b3[_0x56df03(0x139)],_0x2377b3['lJrXh'],_0x2377b3['YGquh'],_0x2377b3[_0x56df03(0x13a)],_0x2377b3['IbxVy'],_0x2377b3[_0x56df03(0x1ce)],_0x2377b3[_0x56df03(0xee)],_0x2377b3['OKHnW'],_0x2377b3[_0x56df03(0x11d)],_0x2377b3['DYsOG'],_0x2377b3[_0x56df03(0xcc)],_0x2377b3[_0x56df03(0x1a0)],_0x2377b3[_0x56df03(0x19a)]],_0x2f5fcb[_0x56df03(0x1ef)]=_0x2377b3[_0x56df03(0x1b9)],await this[_0x56df03(0x1a3)]['organizations'][_0x56df03(0xf9)][_0x56df03(0x1c2)]({'parent':'projects/'+this[_0x56df03(0x1ca)],'requestBody':{'role':_0x2f5fcb,'roleId':this['customRoleName']},'auth':_0x503436});const _0x37af65={};_0x37af65[_0x56df03(0xef)]=_0x56df03(0x101)+this[_0x56df03(0x1ca)],_0x37af65[_0x56df03(0x159)]={},_0x37af65[_0x56df03(0xc5)]=_0x503436,_0x37af65[_0x56df03(0x159)]['accountId']=this[_0x56df03(0x192)];const _0x1bc735=_0x37af65;await this[_0x56df03(0x1a3)]['projects']['serviceAccounts'][_0x56df03(0x1c2)](_0x1bc735);let _0x3a535c=await this['resourcemanagerClient'][_0x56df03(0x1bd)]({'resource':_0x56df03(0x101)+this[_0x56df03(0x1ca)]});_0x3a535c=_0x3a535c[0x0]['bindings'];const _0x4c7652={};_0x4c7652[_0x56df03(0x199)]=_0x56df03(0x101)+this[_0x56df03(0x1ca)]+'/roles/'+this[_0x56df03(0x9d)],_0x4c7652[_0x56df03(0x1ee)]=[_0x56df03(0xf5)+this[_0x56df03(0x192)]+'@'+this['projectId']+_0x56df03(0x1cb)],_0x3a535c[_0x56df03(0x1bc)](_0x4c7652);const _0x2abe6d={};_0x2abe6d[_0x56df03(0x19e)]=_0x3a535c,await this[_0x56df03(0x138)][_0x56df03(0x155)]({'resource':'projects/'+this[_0x56df03(0x1ca)],'policy':_0x2abe6d}),logger[_0x56df03(0x1e3)](_0x2377b3['GKslt']);}async[a3_0x122961(0x102)](_0x2177a2=a3_0x122961(0x1f2),_0x52940c=['default']){const _0x1ef094=a3_0x122961,_0x48920d={};_0x48920d['hlszS']=_0x1ef094(0x1f2),_0x48920d[_0x1ef094(0x146)]=function(_0x50c0ba,_0x4380a6){return _0x50c0ba===_0x4380a6;},_0x48920d['ZWFmA']=_0x1ef094(0xb9),_0x48920d[_0x1ef094(0x1a9)]='Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x48920d[_0x1ef094(0x121)]=function(_0x30a5d3,_0x39bb42){return _0x30a5d3===_0x39bb42;},_0x48920d[_0x1ef094(0x191)]=_0x1ef094(0x94),_0x48920d[_0x1ef094(0xdd)]=function(_0x27a240,_0x29505f){return _0x27a240===_0x29505f;},_0x48920d[_0x1ef094(0x110)]=function(_0x249203,_0x416e36){return _0x249203!==_0x416e36;},_0x48920d[_0x1ef094(0x190)]='ydtKU';const _0x285f09=_0x48920d,_0x724796={};_0x724796[_0x1ef094(0xea)]=WS_EVENTS['LOG'],_0x724796[_0x1ef094(0xca)]=_0x285f09[_0x1ef094(0xf3)],this[_0x1ef094(0x147)][_0x1ef094(0x120)](this['rws'],_0x724796),logger[_0x1ef094(0x1e3)](_0x285f09[_0x1ef094(0x1a9)]);!_0x2177a2&&(_0x285f09[_0x1ef094(0x121)](_0x285f09['MDCZx'],_0x285f09[_0x1ef094(0x191)])?_0x2177a2=_0x285f09[_0x1ef094(0xe1)]:_0x3c9504=_0x285f09[_0x1ef094(0xe1)]);if(!_0x52940c||_0x285f09[_0x1ef094(0xdd)](_0x52940c[_0x1ef094(0x100)],0x0)){if(_0x285f09[_0x1ef094(0x110)](_0x285f09[_0x1ef094(0x190)],_0x285f09[_0x1ef094(0x190)])){const _0x1215b5=_0x1ef094(0xb5)+this[_0x1ef094(0x1ca)]+_0x1ef094(0x16f)+_0x2fb472[_0x1ef094(0x168)]+_0x1ef094(0x15e)+_0x13138b[0x0];if(_0x285f09[_0x1ef094(0x146)](_0x1215b5,_0x4d4699))return[!![],_0x346082];}else _0x52940c=[_0x285f09[_0x1ef094(0xe1)]];}return await this[_0x1ef094(0x19b)](),await this[_0x1ef094(0x16d)](_0x2177a2,_0x52940c),await this[_0x1ef094(0x144)](),!![];}async[a3_0x122961(0x16d)](_0x59211b=a3_0x122961(0x1f2),_0x2f1d4a=[a3_0x122961(0x1f2)]){const _0x4f5077=a3_0x122961,_0x46f25b={};_0x46f25b[_0x4f5077(0xb6)]=_0x4f5077(0x1f2),_0x46f25b[_0x4f5077(0x132)]=function(_0x289cfd,_0x1019c8){return _0x289cfd===_0x1019c8;},_0x46f25b[_0x4f5077(0x1d0)]=_0x4f5077(0x157),_0x46f25b['YtMGK']=_0x4f5077(0x134),_0x46f25b[_0x4f5077(0x1b0)]=_0x4f5077(0x1d2),_0x46f25b['AkvCp']='templates',_0x46f25b[_0x4f5077(0x130)]=_0x4f5077(0x152),_0x46f25b[_0x4f5077(0xa5)]=_0x4f5077(0x196),_0x46f25b[_0x4f5077(0x115)]='utf-8',_0x46f25b[_0x4f5077(0x14e)]=_0x4f5077(0x12e),_0x46f25b[_0x4f5077(0xeb)]=function(_0xf418ac,_0x2b01a7){return _0xf418ac*_0x2b01a7;},_0x46f25b[_0x4f5077(0xcd)]=function(_0x224749,_0x507cf8){return _0x224749!==_0x507cf8;},_0x46f25b[_0x4f5077(0x9b)]='VkVee',_0x46f25b[_0x4f5077(0xb0)]=function(_0x5035a7,_0x2694b1){return _0x5035a7===_0x2694b1;},_0x46f25b['iSmxN']=_0x4f5077(0x137),_0x46f25b[_0x4f5077(0x12a)]=_0x4f5077(0x114),_0x46f25b[_0x4f5077(0x149)]=_0x4f5077(0x170),_0x46f25b[_0x4f5077(0x1ec)]=_0x4f5077(0x1c9);const _0x3f673c=_0x46f25b;try{if(_0x3f673c['wBfBa'](_0x3f673c['TpbPG'],_0x3f673c['YtMGK']))return!![];else{logger[_0x4f5077(0x1e3)](_0x3f673c[_0x4f5077(0x1b0)]);let _0x27811a=await fs[_0x4f5077(0x1c5)](path[_0x4f5077(0xc7)](__dirname,'..',_0x3f673c[_0x4f5077(0x1d9)],_0x3f673c['XqrGa'],_0x3f673c[_0x4f5077(0xa5)]),_0x3f673c[_0x4f5077(0x115)]);_0x27811a=JSON['parse'](_0x27811a);let _0x5e80af=await fs[_0x4f5077(0x1c5)](path[_0x4f5077(0xc7)](__dirname,'..',_0x3f673c[_0x4f5077(0x1d9)],_0x3f673c[_0x4f5077(0x130)],_0x3f673c[_0x4f5077(0x14e)]),_0x3f673c[_0x4f5077(0x115)]);_0x5e80af=JSON[_0x4f5077(0x1c8)](_0x5e80af),_0x27811a[_0x4f5077(0xef)]=this['clusterName'],_0x27811a[_0x4f5077(0xfc)][0x0][_0x4f5077(0x17b)][_0x4f5077(0xe5)]=global_registry[_0x4f5077(0x1d6)],_0x27811a[_0x4f5077(0xfc)][0x1]['config'][_0x4f5077(0xe5)]=global_registry[_0x4f5077(0x1d6)],_0x27811a[_0x4f5077(0xfc)][0x0][_0x4f5077(0x17b)][_0x4f5077(0x169)]=this[_0x4f5077(0x192)]+'@'+this[_0x4f5077(0x1ca)]+_0x4f5077(0x1cb),_0x27811a[_0x4f5077(0xfc)][0x1]['config'][_0x4f5077(0x169)]=this[_0x4f5077(0x192)]+'@'+this[_0x4f5077(0x1ca)]+_0x4f5077(0x1cb),_0x27811a[_0x4f5077(0xfc)][0x0][_0x4f5077(0x15d)]['minNodeCount']=global_registry[_0x4f5077(0xf4)],_0x27811a[_0x4f5077(0xfc)][0x1]['autoscaling'][_0x4f5077(0x1b3)]=0x0,_0x27811a[_0x4f5077(0xfc)][0x0]['autoscaling'][_0x4f5077(0x19c)]=global_registry[_0x4f5077(0x143)],_0x27811a[_0x4f5077(0xfc)][0x1]['autoscaling'][_0x4f5077(0x19c)]=global_registry[_0x4f5077(0x143)],_0x27811a[_0x4f5077(0x17e)]=global_registry[_0x4f5077(0x168)],_0x27811a[_0x4f5077(0xf0)]=[_0x5e80af[global_registry[_0x4f5077(0x168)]][0x0]],_0x27811a[_0x4f5077(0x99)]=_0x4f5077(0x101)+this[_0x4f5077(0x1ca)]+_0x4f5077(0xa1)+_0x59211b,_0x27811a['subnetwork']=_0x4f5077(0x101)+this[_0x4f5077(0x1ca)]+_0x4f5077(0x16f)+global_registry[_0x4f5077(0x168)]+_0x4f5077(0x15e)+_0x2f1d4a[0x0];const _0x58f2f7=await this[_0x4f5077(0x1e7)][_0x4f5077(0x16d)]({'cluster':_0x27811a,'parent':_0x4f5077(0x101)+this[_0x4f5077(0x1ca)]+_0x4f5077(0xcb)+global_registry[_0x4f5077(0x168)]});await this[_0x4f5077(0x147)][_0x4f5077(0x15c)](_0x3f673c[_0x4f5077(0xeb)](_0x3f673c[_0x4f5077(0xeb)](0x7,0x3c),0x3e8));}}catch(_0x52d261){if(_0x3f673c[_0x4f5077(0xcd)](_0x3f673c[_0x4f5077(0x9b)],_0x3f673c[_0x4f5077(0x9b)]))this['sendGCPInfoToHST'](this['rws']);else{const _0x29e6eb=await this[_0x4f5077(0xe2)]();_0x29e6eb?_0x3f673c['nPBEa'](_0x3f673c[_0x4f5077(0x117)],_0x3f673c['iSmxN'])?(logger[_0x4f5077(0x1e3)](_0x3f673c['KluCE'],_0x52d261[_0x4f5077(0x1c4)]),await this[_0x4f5077(0xbf)]()):_0x4925a4=[_0x3f673c[_0x4f5077(0xb6)]]:_0x3f673c[_0x4f5077(0xcd)](_0x3f673c['CGPeL'],_0x3f673c[_0x4f5077(0x149)])?(_0x32aae1[_0x4f5077(0x168)]=_0x2f6767[0x0],this[_0x4f5077(0x135)]()):logger['info'](_0x3f673c['wtBmg']);throw _0x52d261;}}}async[a3_0x122961(0x144)](){const _0x560617=a3_0x122961;cp[_0x560617(0xec)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x560617(0xc2)]+_0x560617(0x1d4)+global_registry[_0x560617(0x168)]+_0x560617(0x178));}async['deleteCluster'](_0x21a611,_0x433a5e){const _0x399506=a3_0x122961,_0x32b005={'UrJoj':function(_0x34f8e5,_0x16725e){return _0x34f8e5===_0x16725e;},'lDLNS':_0x399506(0x182),'ALojo':function(_0x3cfa67,_0x2a752f){return _0x3cfa67!==_0x2a752f;},'yblhR':_0x399506(0x197),'AMCLS':function(_0x5614e8,_0x5ebff2){return _0x5614e8(_0x5ebff2);},'mSExY':function(_0xace801,_0x3e0308){return _0xace801===_0x3e0308;},'poYRm':_0x399506(0x16c),'UESIz':_0x399506(0xab),'UGIZJ':_0x399506(0x1ba),'lsMSI':_0x399506(0x198),'xjAHP':'Cluster\x20deletion\x20completed','fVBhz':_0x399506(0x1df),'TRtIG':_0x399506(0x136)};try{if(_0x32b005[_0x399506(0x1bf)](_0x32b005[_0x399506(0x185)],_0x32b005[_0x399506(0x185)]))for(const _0x5a85d1 of _0x44f2b5[_0x399506(0xdc)]['accounts']){if(_0x32b005[_0x399506(0xe8)](_0x5a85d1?.[_0x399506(0xef)],_0x399506(0x101)+this[_0x399506(0x1ca)]+_0x399506(0x10b)+this['serviceAccountName']+'@'+this[_0x399506(0x1ca)]+'.iam.gserviceaccount.com'))return!![];}else{await _0x32b005['AMCLS'](deleteAgent,_0x21a611),await _0x32b005[_0x399506(0x116)](deleteRoutingDeps,_0x21a611),logger[_0x399506(0x1e3)](_0x399506(0x1e9)+this['clusterName']);const _0x38ea3a=await this[_0x399506(0x1e7)][_0x399506(0xbf)]({'name':_0x399506(0x101)+this[_0x399506(0x1ca)]+'/locations/'+global_registry[_0x399506(0x168)]+_0x399506(0xf7)+this['clusterName']});if(_0x32b005[_0x399506(0x12d)](_0x38ea3a[0x0]?.[_0x399506(0x1ad)],_0x32b005[_0x399506(0x1e2)])||_0x32b005[_0x399506(0xe8)](_0x38ea3a[0x0]?.[_0x399506(0x1ad)],_0x32b005[_0x399506(0x95)])){if(_0x32b005['UrJoj'](_0x32b005['UGIZJ'],_0x32b005[_0x399506(0x179)])){_0x12ef2c[_0x399506(0x1e3)](_0x32b005[_0x399506(0x165)]);return;}else return!![];}logger[_0x399506(0x1e3)](_0x32b005[_0x399506(0x14b)]);}}catch(_0x21fec1){if(_0x32b005[_0x399506(0xe8)](_0x32b005[_0x399506(0x1a6)],_0x32b005[_0x399506(0x1a6)])){logger[_0x399506(0x1e3)](_0x32b005[_0x399506(0x18f)]);throw _0x21fec1;}else return _0x544ffe[_0x399506(0x193)](_0x399506(0x1f8)+_0x28ce17+_0x399506(0xb2)+_0x16fa55),[![],[]];}}async['isVPCPresent'](_0x5697c8){const _0x1ccbaa=a3_0x122961,_0x45b54f={};_0x45b54f[_0x1ccbaa(0xfb)]=_0x1ccbaa(0x136),_0x45b54f[_0x1ccbaa(0xaa)]=function(_0x2e2e2f,_0x1b8245){return _0x2e2e2f!==_0x1b8245;},_0x45b54f['HvxvT']=_0x1ccbaa(0xf1),_0x45b54f['Umsei']=function(_0x1c5563,_0x19c65){return _0x1c5563>_0x19c65;},_0x45b54f[_0x1ccbaa(0x12f)]=function(_0x14a21f,_0x4ae66d){return _0x14a21f===_0x4ae66d;},_0x45b54f[_0x1ccbaa(0x141)]=_0x1ccbaa(0x15a);const _0x3c9687=_0x45b54f;try{if(_0x3c9687[_0x1ccbaa(0xaa)](_0x3c9687[_0x1ccbaa(0x128)],_0x3c9687['HvxvT']))return[!![],_0x111a40];else{const _0x410311=await this[_0x1ccbaa(0x1e4)][_0x1ccbaa(0x153)]({'project':this['projectId'],'network':_0x5697c8});if(_0x3c9687[_0x1ccbaa(0x12b)](_0x410311[_0x1ccbaa(0x100)],0x0)&&_0x3c9687[_0x1ccbaa(0x12f)](_0x410311[0x0][_0x1ccbaa(0xef)],_0x5697c8)){if(_0x3c9687['rjVeb'](_0x3c9687[_0x1ccbaa(0x141)],_0x3c9687[_0x1ccbaa(0x141)]))return!![];else{_0x4873ae['info'](_0x3c9687[_0x1ccbaa(0xfb)]);throw _0x519b34;}}}}catch(_0x248540){return![];}return![];}async['isSubnetsValid'](_0x4f6c49,_0x19a1fc){const _0x4709e2=a3_0x122961,_0xd87a75={};_0xd87a75[_0x4709e2(0x163)]=function(_0x4ead10,_0xb8baa6){return _0x4ead10===_0xb8baa6;};const _0xd37175=_0xd87a75;try{const _0xaf9cbd=await this[_0x4709e2(0x1e4)]['get']({'project':this['projectId'],'network':_0x19a1fc});for(const _0xf3da5f of _0xaf9cbd[0x0]['subnetworks']){const _0xbc4d19='https://www.googleapis.com/compute/v1/projects/'+this['projectId']+_0x4709e2(0x16f)+global_registry[_0x4709e2(0x168)]+'/subnetworks/'+_0x4f6c49[0x0];if(_0xd37175[_0x4709e2(0x163)](_0xbc4d19,_0xf3da5f))return[!![],_0x4f6c49];}}catch(_0x3eca6a){return logger[_0x4709e2(0x193)](_0x4709e2(0x1f8)+_0x4f6c49+_0x4709e2(0xb2)+_0x3eca6a),[![],[]];}return[![],[]];}async['sendGCPInfoToHST'](){const _0x3d6d62=a3_0x122961,_0x4236bb=await this['networkClient'][_0x3d6d62(0xf2)]({'project':this[_0x3d6d62(0x1ca)]}),_0x595b3d={};_0x595b3d['username']=global_registry[_0x3d6d62(0xf8)],_0x595b3d[_0x3d6d62(0x124)]=global_registry[_0x3d6d62(0x156)],_0x595b3d['cloudProvider']=GCP,_0x595b3d[_0x3d6d62(0xfe)]=[];const _0x2e389a=_0x595b3d;for(const _0x1495f6 of _0x4236bb){_0x2e389a[_0x3d6d62(0xfe)][_0x3d6d62(0x1bc)](_0x1495f6);}const _0x27e758={};_0x27e758[_0x3d6d62(0xea)]=WS_EVENTS['RESOURCES'],_0x27e758[_0x3d6d62(0xca)]=_0x2e389a,this[_0x3d6d62(0x147)][_0x3d6d62(0x120)](this['rws'],_0x27e758);}async['updateClusterRegion'](){const _0x5ccb5c=a3_0x122961,_0x5f5131={'ArsuK':function(_0x572b99,_0x143eba,_0x34df68){return _0x572b99(_0x143eba,_0x34df68);},'XqhFT':'PUT','NNRtb':_0x5ccb5c(0xe3)},_0x1070df='https://'+AG_API_URL+_0x5ccb5c(0x151),_0x59745e={};_0x59745e['profileId']=global_registry[_0x5ccb5c(0x1b6)];const _0xdf94cd={};_0xdf94cd[_0x5ccb5c(0xc4)]=global_registry[_0x5ccb5c(0x168)];const _0x530343={'searchParams':_0x59745e,'json':_0xdf94cd,'headers':_0x5f5131[_0x5ccb5c(0x164)](getAuthHeader,global_registry[_0x5ccb5c(0xf8)],global_registry[_0x5ccb5c(0x156)]),'method':_0x5f5131['XqhFT'],'responseType':_0x5f5131[_0x5ccb5c(0x11e)],'throwHttpErrors':![]},_0x100ea4=await _0x5f5131[_0x5ccb5c(0x164)](got,_0x1070df,_0x530343);}}const a3_0x3e5f67={};a3_0x3e5f67['GoogleCloudProvider']=GoogleCloudProvider,module[a3_0x122961(0x18e)]=a3_0x3e5f67;function a3_0x37d7(){const _0x4bd49b=['error','kdVUN','PbCDP','gkecluster.json','KtzFk','UbrNo','role','TPXBP','setupServiceAccount','maxNodeCount','sendResourceDataToHST','bindings','EaSGW','rUslk','gcloud\x20auth\x20login\x20--cred-file=','VbXVs','iamClient','aEeJO','storage.multipartUploads.listParts','fVBhz','util','accfE','KdarS','fnfJf','storage.multipartUploads.create','concat','status','zwZex','CmSlm','pzDce','TEYjS','ZnlIY','minNodeCount','UcUxR','RVocS','gridProfileId','isBrowserstackCluster','clusters','XifmW','bcrbv','turboscale-service-account','push','getIamPolicy','getUserInput','ALojo','oSPbY','Nnrnp','create','aHSdu','stack','readFileAsync','gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false','ClusterManagerClient','parse','Cluster\x20creation\x20failed','projectId','.iam.gserviceaccount.com','FnbZS','3186976ZWnVOm','OgsbY','ziSeX','TpbPG','ofpoL','Creating\x20GKE\x20Cluster','qaVBC','\x20--windows-os-version=ltsc2022\x20--region\x20','1528296VPYpSA','instanceType','DYsOG','cXBFL','AkvCp','oxfBM','../config/logger','zIHYB','getGridHostname','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','umfxB','yCMIX','toLowerCase','poYRm','info','networkClient','RHBmJ','cqayz','containerClient','eLjIE','Deleting\x20the\x20cluster\x20','WqFNE','storage.buckets.get','wtBmg','storage.buckets.getObjectInsights','members','title','iTbwz','accounts','default','hcuAM','BriKi','getClusterInfo','loadBalancer','rws','Cannot\x20find\x20subnets\x20','EvBWD','qstdV','oCTTZ','UESIz','ingress','nKBmz','zsYgE','network','CviNF','TgBAz','endpoint','customRoleName','jnaed','6553332DOUBuz','qUMQm','/global/networks/','yrHMt','storage.buckets.delete','HHrFr','dQCrz','init','jDuAQ','serviceAccounts','sXAwA','VxaWw','DONE','HbjcD','420zZUTmX','NyvEH','eTQuj','nPBEa','templates','.\x20Error:\x20','IuVgh','ycNhX','https://www.googleapis.com/compute/v1/projects/','IfeYj','xwheQ','UqGGN','Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account','CBigw','got','xJsBU','toString','resourceLabels','deleteCluster','YsSjx','lWtiM','clusterName','listClusters','newRegion','auth','project_id','join','exit','XCDKD','message','/locations/','mSSOI','CYfMk','8516JUjprn','nnSGn','managedby','MSEcU','gke_','ymnUc','storage.objects.setIamPolicy','storage.buckets.update','xKTIc','@google-cloud/container','smeYL','clusterCaCertificate','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','../utils/userInput','data','kQUka','rZRrV','loQWr','path','hlszS','isClusterPresent','json','DNkBR','machineType','FBlYC','DQRgC','UrJoj','utf-8','type','ghsyR','execSync','gcp_credentials.json','WLNot','name','locations','EPtmD','list','ZWFmA','minNodes','serviceAccount:','masterAuth','/clusters/','bstackUsername','roles','@google-cloud/resource-manager','gKYdJ','nodePools','MCefp','vpcInfo','giAkO','length','projects/','setupNewCluster','xJjsy','SUErp','lopdX','scopes','storage.objects.delete','storage.multipartUploads.list','KFXBx','NWeUH','/serviceAccounts/','2658327PLidik','credentialsPath','log','pCGJI','uBfnn','RUyLj','storage.objects.get','replace','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','NuLpD','AMCLS','iSmxN','kAhMV','getKubeConfigData','getClient','WwdqF','EMXmc','ftcLk','NNRtb','checkServiceAccount','sendEventToBackend','nVMcR','../utils/gridComponents','Creating\x20service\x20account','accessKey','Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation','keyFile','moveh','HvxvT','CNnLN','KluCE','Umsei','rZxhJ','mSExY','regionmap.json','rjVeb','XqrGa','azFAm','wBfBa','ZyxUQ','pFsbf','updateClusterRegion','GKE\x20Cluster\x20deletion\x20failed','myEHg','resourcemanagerClient','JdLbD','Ojbtf','storage.multipartUploads.abort','storage.objects.create','oEHEO','YmdVW','ZVdRj','113UUtSeA','JHdlR','Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','maxNodes','updateWindowsNodeGroup','exec','bVozF','webSocketUtils','lMBvh','CGPeL','turboscale_custom_role','xjAHP','sIegZ','wTJwy','PnOWn','browserstack','getCluster','/packages/cli/update-cluster-region','gcpresources','get','aaaRk','setIamPolicy','bstackAccesskey','oGTsJ','qhsNG','requestBody','syKfi','storage.buckets.deleteTagBinding','delay','autoscaling','/subnetworks/','UGuMi','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','https://www.googleapis.com/auth/cloud-platform','IbxVy','YNZVK','ArsuK','lDLNS','wTXIS','iam.serviceAccounts.signBlob','clusterRegion','serviceAccount','DTbWX','@google-cloud/compute','RUNNING','createCluster','googleapis','/regions/','rzEsK','yChrp','HtAdl','NetworksClient','./CloudProvider','\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:','GKslt','PDtCz','\x20--quiet\x20--user-output-enabled=false','lsMSI','../config/constants','config','storage.buckets.list','Turboscale\x20Custom\x20Role','location','qzGpv','60846PRPmYe','storage.objects.update','Service\x20account\x20already\x20exists,\x20skipping','IRYOi','storage.buckets.listTagBindings','yblhR','Found\x20cluster\x20with\x20name\x20\x27','kOPAY','KubeConfigTemplate.yaml','2947764SHRZQE','FHyAZ','qSMJD','cloudProviderName','NMNDN','exports','TRtIG','juGEM','MDCZx','serviceAccountName'];a3_0x37d7=function(){return _0x4bd49b;};return a3_0x37d7();}
1
+ const a3_0x2b0fb6=a3_0x7d4d;(function(_0x50c3dc,_0x3374b8){const _0x2f5aaf=a3_0x7d4d,_0x2a9934=_0x50c3dc();while(!![]){try{const _0x165303=parseInt(_0x2f5aaf(0x176))/0x1*(-parseInt(_0x2f5aaf(0x168))/0x2)+-parseInt(_0x2f5aaf(0x19e))/0x3*(-parseInt(_0x2f5aaf(0x127))/0x4)+parseInt(_0x2f5aaf(0x1f3))/0x5*(parseInt(_0x2f5aaf(0xda))/0x6)+-parseInt(_0x2f5aaf(0xc7))/0x7+-parseInt(_0x2f5aaf(0x1c2))/0x8*(parseInt(_0x2f5aaf(0x9f))/0x9)+-parseInt(_0x2f5aaf(0x10f))/0xa*(-parseInt(_0x2f5aaf(0x1e4))/0xb)+-parseInt(_0x2f5aaf(0x13d))/0xc*(-parseInt(_0x2f5aaf(0xb3))/0xd);if(_0x165303===_0x3374b8)break;else _0x2a9934['push'](_0x2a9934['shift']());}catch(_0x5c918c){_0x2a9934['push'](_0x2a9934['shift']());}}}(a3_0x5def,0x9db3e));const fs=require('fs'),path=require(a3_0x2b0fb6(0xac)),got=require('got'),util=require(a3_0x2b0fb6(0x1d3)),cp=require(a3_0x2b0fb6(0x1dc)),{google}=require(a3_0x2b0fb6(0xb0)),compute=require(a3_0x2b0fb6(0xdf)),container=require(a3_0x2b0fb6(0x109)),{ProjectsClient}=require('@google-cloud/resource-manager')['v3'],{logger}=require(a3_0x2b0fb6(0x97)),{CloudProvider}=require('./CloudProvider'),{getDirForConfig,getAuthHeader}=require('../utils/utilityMethods'),{deleteRoutingDeps,deleteAgent}=require(a3_0x2b0fb6(0x1c4)),{inputConfirmation,closeInput}=require('../utils/userInput'),{GCP,AG_API_URL,WS_EVENTS,global_registry}=require(a3_0x2b0fb6(0x1f4));class GoogleCloudProvider extends CloudProvider{constructor(_0x1cd849,_0x2d30c2,_0x2abb0a,_0x5eba5b){const _0x321bb5=a3_0x2b0fb6,_0x4aae42={};_0x4aae42['dJzwc']=_0x321bb5(0xd3),_0x4aae42[_0x321bb5(0x1d0)]='turboscale_custom_role',_0x4aae42[_0x321bb5(0x1e5)]=_0x321bb5(0x1a0);const _0x80155f=_0x4aae42,_0x26ee32=_0x80155f[_0x321bb5(0x135)][_0x321bb5(0x162)]('|');let _0xaf9bc2=0x0;while(!![]){switch(_0x26ee32[_0xaf9bc2++]){case'0':this[_0x321bb5(0x1ee)]=_0x80155f[_0x321bb5(0x1d0)];continue;case'1':this[_0x321bb5(0x1b5)]=null;continue;case'2':this[_0x321bb5(0x1db)]=null;continue;case'3':this[_0x321bb5(0x1ac)]=null;continue;case'4':this[_0x321bb5(0x15e)]=_0x80155f[_0x321bb5(0x1e5)];continue;case'5':super(GCP,_0x1cd849,_0x2d30c2,_0x2abb0a,_0x5eba5b);continue;case'6':this[_0x321bb5(0x139)]=null;continue;case'7':this['containerClient']=null;continue;case'8':this[_0x321bb5(0xc4)]=null;continue;}break;}}async['sendResourceDataToHST'](){const _0x510e8e=a3_0x2b0fb6;this[_0x510e8e(0x1bd)](this['rws']);}async[a3_0x2b0fb6(0x11c)](){const _0x25e0cc=a3_0x2b0fb6;await super[_0x25e0cc(0x11c)]();const _0x3c13df=this[_0x25e0cc(0x139)],_0x3f1e6f={};_0x3f1e6f['keyFile']=_0x3c13df,this[_0x25e0cc(0xaa)]=new container['v1'][(_0x25e0cc(0x1be))](_0x3f1e6f);const _0xea0d26={};_0xea0d26['keyFile']=_0x3c13df,this['networkClient']=new compute['v1'][(_0x25e0cc(0xb6))](_0xea0d26);const _0x20f2c1={};return _0x20f2c1[_0x25e0cc(0x143)]=_0x3c13df,this[_0x25e0cc(0x1ac)]=new ProjectsClient(_0x20f2c1),this[_0x25e0cc(0x1db)]=google[_0x25e0cc(0x114)]('v1'),this;}async[a3_0x2b0fb6(0xd9)](_0xa09c54,_0xb043e3){const _0x278337=a3_0x2b0fb6,_0x275c17={'KxLqI':function(_0x3ca164,_0x4d1cba){return _0x3ca164(_0x4d1cba);},'koJQQ':'Enter\x20Key\x20file\x20(.json)\x20path\x20for\x20GCP\x20Service\x20Account:\x20','OpVIK':function(_0x18c584){return _0x18c584();},'rNTte':_0x278337(0xbb)},_0x2fc82d=await _0x275c17[_0x278337(0x16d)](_0xa09c54,_0x275c17[_0x278337(0xf4)]);let _0x58dcd5=await fs[_0x278337(0x12c)](_0x2fc82d);_0x58dcd5=_0x58dcd5['toString']();const _0x450682=_0x275c17[_0x278337(0xd5)](getDirForConfig),_0x123c75=path[_0x278337(0x180)](_0x450682,_0x275c17[_0x278337(0x1aa)]);fs[_0x278337(0xdb)](_0x123c75,_0x58dcd5),this['credentialsPath']=_0x123c75;const _0x96917f={};return _0x96917f[_0x278337(0x143)]=_0x123c75,_0xb043e3[_0x278337(0xbd)][GCP]=_0x96917f,_0x58dcd5=JSON['parse'](_0x58dcd5),this[_0x278337(0xc4)]=_0x58dcd5[_0x278337(0x10a)],_0xb043e3;}async[a3_0x2b0fb6(0xcf)](_0x32057a){const _0x17d44a=a3_0x2b0fb6;this[_0x17d44a(0x139)]=_0x32057a[this[_0x17d44a(0xe3)]][_0x17d44a(0x143)];let _0x26a947=await fs['readFileAsync'](this[_0x17d44a(0x139)]);_0x26a947=JSON[_0x17d44a(0x1c0)](_0x26a947),this[_0x17d44a(0xc4)]=_0x26a947[_0x17d44a(0x10a)];}[a3_0x2b0fb6(0xfa)](_0x2a0d4c){const _0x284bb9=a3_0x2b0fb6;return _0x2a0d4c[_0x284bb9(0x105)][_0x284bb9(0x9a)]['ingress'][0x0]['ip'];}async[a3_0x2b0fb6(0xe4)](){const _0x3db757=a3_0x2b0fb6,_0x199be0={};_0x199be0['YeuJz']=function(_0x2de211,_0x5e271c){return _0x2de211+_0x5e271c;},_0x199be0[_0x3db757(0x12e)]=function(_0x18f579,_0x1daedb){return _0x18f579===_0x1daedb;},_0x199be0[_0x3db757(0x122)]=_0x3db757(0x110),_0x199be0['tpwvh']='wUOYo',_0x199be0[_0x3db757(0xe6)]=_0x3db757(0x1ca),_0x199be0[_0x3db757(0xbe)]=function(_0x29a8cc,_0x295b23){return _0x29a8cc===_0x295b23;},_0x199be0[_0x3db757(0x1f5)]=_0x3db757(0x197),_0x199be0[_0x3db757(0x1c5)]=function(_0x463c4b,_0x387061){return _0x463c4b!==_0x387061;},_0x199be0[_0x3db757(0xf7)]=_0x3db757(0x1e9);const _0x75226a=_0x199be0;try{if(_0x75226a['vkCVX'](_0x75226a[_0x3db757(0x122)],_0x75226a[_0x3db757(0xe2)]))return _0x4d6b50[_0x3db757(0xde)](_0x3db757(0x178)+_0x15f956+_0x3db757(0x1e2)+_0x3bc324),[![],[]];else{const _0x315dac=await this[_0x3db757(0xd7)]();if(_0x315dac[0x0]?.[_0x3db757(0x154)]?.[_0x3db757(0xe0)]){if(_0x75226a[_0x3db757(0x12e)](_0x75226a[_0x3db757(0xe6)],_0x75226a['gAKoT'])){const _0x149ea8=_0x315dac[0x0]?.[_0x3db757(0x154)]?.[_0x3db757(0xe0)];return _0x149ea8&&_0x75226a['VIGNN'](_0x149ea8['toLowerCase'](),_0x75226a[_0x3db757(0x1f5)]);}else return!![];}}}catch(_0x2ae3f2){if(_0x75226a['xFqjF'](_0x75226a[_0x3db757(0xf7)],_0x75226a[_0x3db757(0xf7)]))_0x4575d8['log']('['+_0x75226a[_0x3db757(0x16a)](_0x140f26,0x1)+']\x20'+_0x2a7de3[_0x3bf4b3]);else return![];}return![];}async['isClusterPresent'](){const _0x152f65=a3_0x2b0fb6,_0x2cf903={'eRIQc':function(_0x461f88,_0x58198d){return _0x461f88!==_0x58198d;},'QEuKj':_0x152f65(0xc3),'aCHPG':_0x152f65(0xed),'bmeWC':function(_0x430854,_0x1a457d){return _0x430854===_0x1a457d;},'quNAC':_0x152f65(0x15a),'WHGqF':function(_0x5dbbd1,_0x3b0e55){return _0x5dbbd1-_0x3b0e55;},'bVfTc':_0x152f65(0x132),'LGVYF':_0x152f65(0x1a5),'lddEc':'regionmap.json','Jcjdy':'utf-8','hrLpU':function(_0x320255,_0x4a96c9){return _0x320255!==_0x4a96c9;},'QDIzl':_0x152f65(0x10d),'IJnww':_0x152f65(0x90),'XrvRA':function(_0x20e4c0,_0x253ecc){return _0x20e4c0===_0x253ecc;},'uadbz':_0x152f65(0x1ea),'OITtG':function(_0x225d8f,_0x366628){return _0x225d8f!==_0x366628;},'sYAYG':_0x152f65(0x199),'nWyXg':_0x152f65(0x174),'TvMFf':function(_0x25c13d,_0x569a42){return _0x25c13d!==_0x569a42;},'GUCcc':_0x152f65(0x1c6),'ZmSri':_0x152f65(0xb5),'FOdEK':function(_0x529e0e,_0x38dbd8){return _0x529e0e===_0x38dbd8;},'SXLYa':function(_0x1294c3,_0x20ffe1){return _0x1294c3!==_0x20ffe1;},'dxITv':_0x152f65(0x146),'SdSsQ':'TxYJW','UInOz':_0x152f65(0x113),'FQSSw':function(_0x5a1e58,_0x42468b){return _0x5a1e58>_0x42468b;},'VtNpu':'YJrkj','zPCHL':'qTbSx','loZCp':function(_0x513d3d,_0x245c7b){return _0x513d3d<_0x245c7b;},'RimTQ':function(_0x12a866,_0x156f8e){return _0x12a866!==_0x156f8e;},'bWeMS':_0x152f65(0x142),'OBWAN':'vzAJS','lPLcK':function(_0x2398c0,_0xd089f0){return _0x2398c0+_0xd089f0;},'Coyon':function(_0x1fa410,_0x4752c6){return _0x1fa410(_0x4752c6);},'KQfLT':_0x152f65(0x15b),'SwKkL':function(_0x3c2869,_0x41a1b5){return _0x3c2869<=_0x41a1b5;},'PRurl':function(_0x181f02,_0x4fba52){return _0x181f02>_0x4fba52;},'qKKWm':'zmBXO','HfUug':function(_0x4103e1){return _0x4103e1();},'BkwDv':function(_0x3a51bc,_0xf84a0c){return _0x3a51bc!==_0xf84a0c;},'RcvUW':function(_0xb8f0c9,_0x358d4d){return _0xb8f0c9===_0x358d4d;},'XukGm':'SuzrM','DKecU':_0x152f65(0x17b),'RbgtC':function(_0x3b4b77,_0x3d6bf4){return _0x3b4b77-_0x3d6bf4;}};let _0x39ec98=await fs[_0x152f65(0x12c)](path[_0x152f65(0x180)](__dirname,'..',_0x2cf903[_0x152f65(0x1e1)],_0x2cf903[_0x152f65(0x1bf)],_0x2cf903[_0x152f65(0xa7)]),_0x2cf903[_0x152f65(0x1df)]);_0x39ec98=JSON[_0x152f65(0x1c0)](_0x39ec98);let _0x3694b8=[global_registry[_0x152f65(0x11b)]];if(_0x2cf903['hrLpU'](_0x39ec98[global_registry[_0x152f65(0x11b)]],undefined)){if(_0x2cf903[_0x152f65(0xa3)](_0x2cf903[_0x152f65(0x1ef)],_0x2cf903['IJnww']))return _0x2cf903[_0x152f65(0x1bb)](_0xdd987c['clusterRegion'],_0x38a26b[0x0])&&(_0x3fe779[_0x152f65(0x11b)]=_0xf33fd[0x0],this['updateClusterRegion']()),!![];else _0x3694b8=_0x3694b8[_0x152f65(0x103)](_0x39ec98[global_registry['clusterRegion']]);}const _0x169562=[];for await(const _0x2c5570 of _0x3694b8){if(_0x2cf903[_0x152f65(0x1d8)](_0x2cf903[_0x152f65(0x17d)],_0x2cf903[_0x152f65(0x17d)])){const _0x365149={};_0x365149[_0x152f65(0xb4)]='projects/'+this[_0x152f65(0xc4)]+_0x152f65(0x167)+_0x2c5570;const _0x544703=_0x365149,_0x166dc8=await this['containerClient'][_0x152f65(0x1e0)](_0x544703);for(const _0x2e02c6 of _0x166dc8[0x0][_0x152f65(0x161)]){_0x2cf903['OITtG'](_0x2cf903[_0x152f65(0xcd)],_0x2cf903[_0x152f65(0x19c)])?_0x2cf903[_0x152f65(0xa3)](_0x2e02c6[_0x152f65(0x98)],this[_0x152f65(0x1f1)])&&(_0x2cf903[_0x152f65(0x155)](_0x2cf903['GUCcc'],_0x2cf903[_0x152f65(0x14f)])?_0x169562['push'](_0x2c5570):(_0x4b152f[_0x152f65(0xde)](_0x2cf903['QEuKj']),_0x2ac38d[_0x152f65(0x129)](0x1))):_0x257258[_0x152f65(0xa6)](_0x2cf903['aCHPG']);}}else{const _0x29e696=_0x152f65(0x169)+this['projectId']+_0x152f65(0x185)+_0x8cbc67[_0x152f65(0x11b)]+_0x152f65(0x150)+_0x125f06[0x0];if(_0x2cf903[_0x152f65(0xa3)](_0x29e696,_0x527862))return[!![],_0x5d1564];}}const _0x2295b2=_0x169562[_0x152f65(0x1ad)];if(_0x2cf903[_0x152f65(0x158)](_0x2295b2,0x1))return _0x2cf903[_0x152f65(0xaf)](_0x2cf903[_0x152f65(0x173)],_0x2cf903[_0x152f65(0xef)])?(_0x2cf903[_0x152f65(0x149)](global_registry[_0x152f65(0x11b)],_0x169562[0x0])&&(_0x2cf903[_0x152f65(0xaf)](_0x2cf903['UInOz'],_0x2cf903[_0x152f65(0x128)])?_0x2e25e9=_0x2b180c[_0x152f65(0x103)](_0xfd1215[_0x5b8c0c[_0x152f65(0x11b)]]):(global_registry[_0x152f65(0x11b)]=_0x169562[0x0],this[_0x152f65(0xf9)]())),!![]):!![];else{if(_0x2cf903['FQSSw'](_0x2295b2,0x1)){if(_0x2cf903[_0x152f65(0xa3)](_0x2cf903[_0x152f65(0x138)],_0x2cf903['zPCHL'])){_0x4f6116['info'](_0x2cf903['quNAC']);throw _0x19a687;}else{console[_0x152f65(0x140)](_0x152f65(0x165)+this['clusterName']+'\x27\x20in\x20multiple\x20locations,\x20select\x20a\x20location\x20to\x20proceed:');for(let _0x341ecb=0x0;_0x2cf903[_0x152f65(0x182)](_0x341ecb,_0x2295b2);_0x341ecb+=0x1){_0x2cf903[_0x152f65(0x94)](_0x2cf903[_0x152f65(0x17c)],_0x2cf903[_0x152f65(0x196)])?console['log']('['+_0x2cf903[_0x152f65(0x153)](_0x341ecb,0x1)+']\x20'+_0x169562[_0x341ecb]):_0x2cf903[_0x152f65(0xa3)](_0x212576[_0x152f65(0x98)],this['clusterName'])&&_0x5bd61f[_0x152f65(0x1cf)](_0x62c8fb);}const _0x5bc94f=await _0x2cf903[_0x152f65(0x117)](inputConfirmation,_0x2cf903[_0x152f65(0xc8)]),_0x54c10f=_0x2cf903['Coyon'](Number,_0x5bc94f);(_0x2cf903[_0x152f65(0x117)](isNaN,_0x54c10f)||_0x2cf903['SwKkL'](_0x54c10f,0x0)||_0x2cf903[_0x152f65(0xe9)](_0x54c10f,_0x2295b2))&&(_0x2cf903[_0x152f65(0x94)](_0x2cf903[_0x152f65(0x11e)],_0x2cf903[_0x152f65(0x11e)])?(_0x50d1fc[_0x152f65(0x11b)]=_0x17ee0e[_0x2cf903[_0x152f65(0xd4)](_0x37e2e7,0x1)],this['updateClusterRegion']()):(console[_0x152f65(0xde)](_0x2cf903[_0x152f65(0x164)]),process[_0x152f65(0x129)](0x1)));_0x2cf903[_0x152f65(0x1d5)](closeInput),logger[_0x152f65(0xa6)]('Proceeding\x20with\x20the\x20cluster\x20in\x20the\x20location\x20-\x20'+_0x169562[_0x2cf903[_0x152f65(0xd4)](_0x54c10f,0x1)]);if(_0x2cf903[_0x152f65(0xca)](global_registry[_0x152f65(0x11b)],_0x169562[_0x2cf903['WHGqF'](_0x54c10f,0x1)])){if(_0x2cf903[_0x152f65(0x183)](_0x2cf903[_0x152f65(0x134)],_0x2cf903[_0x152f65(0x99)]))return![];else global_registry[_0x152f65(0x11b)]=_0x169562[_0x2cf903[_0x152f65(0x1a8)](_0x54c10f,0x1)],this[_0x152f65(0xf9)]();}return!![];}}}return![];}async[a3_0x2b0fb6(0xd7)](){const _0x36bef1=a3_0x2b0fb6,_0x3d0e6f=await this['containerClient'][_0x36bef1(0xb2)]({'name':'projects/'+this[_0x36bef1(0xc4)]+_0x36bef1(0x167)+global_registry[_0x36bef1(0x11b)]+_0x36bef1(0x1e3)+this['clusterName']});return _0x3d0e6f;}async['getKubeConfigData'](){const _0x3db3e3=a3_0x2b0fb6,_0x4517a5={};_0x4517a5[_0x3db3e3(0x179)]='gcloud\x20components\x20install\x20gke-gcloud-auth-plugin\x20--quiet\x20--user-output-enabled=false',_0x4517a5[_0x3db3e3(0xa4)]='templates',_0x4517a5['oGgev']=_0x3db3e3(0x1a5),_0x4517a5[_0x3db3e3(0x195)]=_0x3db3e3(0x1f0);const _0x54b5af=_0x4517a5;cp[_0x3db3e3(0x189)](_0x54b5af[_0x3db3e3(0x179)]),cp[_0x3db3e3(0x121)](_0x3db3e3(0x16f)+this[_0x3db3e3(0x139)]);const _0x19cf2c=await this['getClusterInfo'](),_0x3d671d='gke_'+this[_0x3db3e3(0xc4)]+'_'+global_registry[_0x3db3e3(0x11b)]+'_'+this[_0x3db3e3(0x1f1)];let _0x480251=await fs['readFileAsync'](path[_0x3db3e3(0x180)](__dirname,'..',_0x54b5af[_0x3db3e3(0xa4)],_0x54b5af[_0x3db3e3(0x18c)],_0x54b5af['eiIlV']));return _0x480251=_0x480251[_0x3db3e3(0x18e)](),_0x480251=_0x480251[_0x3db3e3(0x1a6)](/<CLUSTER_NAME>/g,_0x3d671d),_0x480251=_0x480251[_0x3db3e3(0x1a6)](/<CLUSTER_URL>/g,_0x3db3e3(0x147)+_0x19cf2c[0x0][_0x3db3e3(0xcc)]),_0x480251=_0x480251[_0x3db3e3(0x1a6)](/<CERTIFICATE_DATA>/g,_0x19cf2c[0x0][_0x3db3e3(0xd0)][_0x3db3e3(0x106)]),_0x480251;}async[a3_0x2b0fb6(0x131)](){const _0x392623=a3_0x2b0fb6,_0x414330={};_0x414330[_0x392623(0x1d1)]=function(_0x41d5fb,_0x3e7341){return _0x41d5fb===_0x3e7341;},_0x414330[_0x392623(0x163)]=_0x392623(0x197),_0x414330[_0x392623(0x101)]=_0x392623(0x1ba),_0x414330[_0x392623(0x18a)]=_0x392623(0x19b),_0x414330[_0x392623(0x93)]=function(_0x2ef98b,_0x5cbaa7){return _0x2ef98b===_0x5cbaa7;},_0x414330[_0x392623(0x15f)]=_0x392623(0x1a7),_0x414330['vVBrd']=function(_0x22e2c0,_0x11b897){return _0x22e2c0!==_0x11b897;},_0x414330[_0x392623(0xc2)]=_0x392623(0xbf),_0x414330[_0x392623(0x11d)]=_0x392623(0x1eb),_0x414330[_0x392623(0x8f)]=_0x392623(0x193);const _0x48a887=_0x414330,_0x3c0c68={};_0x3c0c68[_0x392623(0x9b)]=[_0x48a887[_0x392623(0x18a)]],_0x3c0c68[_0x392623(0x143)]=this[_0x392623(0x139)];const _0x11143a=await google['auth'][_0x392623(0x170)](_0x3c0c68),_0x5a0b98=await this[_0x392623(0x1db)]['projects']['serviceAccounts'][_0x392623(0xdc)]({'name':_0x392623(0xff)+this[_0x392623(0xc4)],'auth':_0x11143a});if(_0x5a0b98?.[_0x392623(0x9e)]?.['accounts']){if(_0x48a887[_0x392623(0x93)](_0x48a887[_0x392623(0x15f)],_0x48a887[_0x392623(0x15f)]))for(const _0x338ff5 of _0x5a0b98['data'][_0x392623(0xe8)]){if(_0x48a887[_0x392623(0x1b2)](_0x48a887['XEEHk'],_0x48a887[_0x392623(0x11d)])){if(_0x48a887[_0x392623(0x1d1)](_0x338ff5?.[_0x392623(0x98)],'projects/'+this[_0x392623(0xc4)]+_0x392623(0x187)+this[_0x392623(0x15e)]+'@'+this[_0x392623(0xc4)]+_0x392623(0xab))){if(_0x48a887['HFFOM'](_0x48a887['wcnpM'],_0x48a887[_0x392623(0x8f)]))return!![];else{const _0x7d2f21=_0x250864[0x0]?.[_0x392623(0x154)]?.[_0x392623(0xe0)];return _0x7d2f21&&_0x48a887[_0x392623(0x1d1)](_0x7d2f21[_0x392623(0xf0)](),_0x48a887['Eavao']);}}}else _0x53602a=_0x48a887[_0x392623(0x101)];}else _0x2c5dc0[_0x392623(0xa1)]['push'](_0x3a1303);}return![];}async[a3_0x2b0fb6(0x118)](){const _0x1851c4=a3_0x2b0fb6,_0x2f920f={};_0x2f920f[_0x1851c4(0xc1)]=function(_0x5cc02b,_0x2d3942){return _0x5cc02b!==_0x2d3942;},_0x2f920f[_0x1851c4(0x194)]=_0x1851c4(0x91),_0x2f920f['cXtxN']=_0x1851c4(0x1cb),_0x2f920f['nvPzz']=_0x1851c4(0x10e),_0x2f920f[_0x1851c4(0xce)]=_0x1851c4(0x19b),_0x2f920f['MboxT']='iam.serviceAccounts.signBlob',_0x2f920f[_0x1851c4(0x1c9)]='storage.buckets.create',_0x2f920f[_0x1851c4(0xba)]=_0x1851c4(0x16b),_0x2f920f[_0x1851c4(0x14c)]=_0x1851c4(0xcb),_0x2f920f['sNqPe']=_0x1851c4(0x1c3),_0x2f920f[_0x1851c4(0x1b8)]='storage.buckets.get',_0x2f920f['xdJDS']='storage.buckets.getIamPolicy',_0x2f920f[_0x1851c4(0xc9)]=_0x1851c4(0x17e),_0x2f920f[_0x1851c4(0xb1)]='storage.buckets.list',_0x2f920f[_0x1851c4(0x12b)]='storage.buckets.listEffectiveTags',_0x2f920f[_0x1851c4(0x1d7)]=_0x1851c4(0x10b),_0x2f920f[_0x1851c4(0xe7)]=_0x1851c4(0x1ec),_0x2f920f[_0x1851c4(0x1d9)]='storage.buckets.update',_0x2f920f[_0x1851c4(0xf3)]=_0x1851c4(0xec),_0x2f920f[_0x1851c4(0x95)]=_0x1851c4(0x1a3),_0x2f920f['irUUe']=_0x1851c4(0x96),_0x2f920f[_0x1851c4(0x1af)]='storage.multipartUploads.listParts',_0x2f920f[_0x1851c4(0x1a1)]=_0x1851c4(0xe5),_0x2f920f[_0x1851c4(0x184)]=_0x1851c4(0x1a2),_0x2f920f['IgIyJ']=_0x1851c4(0x16e),_0x2f920f[_0x1851c4(0x186)]=_0x1851c4(0x14a),_0x2f920f[_0x1851c4(0x19f)]=_0x1851c4(0x111),_0x2f920f['RGeZS']='storage.objects.setIamPolicy',_0x2f920f[_0x1851c4(0x13c)]=_0x1851c4(0xbc),_0x2f920f[_0x1851c4(0x160)]='Turboscale\x20Custom\x20Role',_0x2f920f[_0x1851c4(0x1da)]='Service\x20Account\x20created,\x20proceeding\x20with\x20Cluster\x20creation';const _0x65490e=_0x2f920f,_0x47da66=await this[_0x1851c4(0x131)]();if(_0x47da66){if(_0x65490e[_0x1851c4(0xc1)](_0x65490e[_0x1851c4(0x194)],_0x65490e['xDBLn']))_0x5a2297[_0x1851c4(0x189)]('gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster='+this[_0x1851c4(0x1f1)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+_0x3fbfdb[_0x1851c4(0x11b)]+_0x1851c4(0x1d4));else{logger[_0x1851c4(0xa6)](_0x65490e['cXtxN']);return;}}logger[_0x1851c4(0xa6)](_0x65490e['nvPzz']);const _0x5072d7={};_0x5072d7[_0x1851c4(0x9b)]=[_0x65490e[_0x1851c4(0xce)]],_0x5072d7[_0x1851c4(0x143)]=this['credentialsPath'];const _0x529cda=await google[_0x1851c4(0xb9)][_0x1851c4(0x170)](_0x5072d7),_0x5ca42b={};_0x5ca42b['includedPermissions']=[_0x65490e[_0x1851c4(0xa0)],_0x65490e[_0x1851c4(0x1c9)],_0x65490e[_0x1851c4(0xba)],_0x65490e['gIvoX'],_0x65490e['sNqPe'],_0x65490e['LFgQV'],_0x65490e[_0x1851c4(0x12a)],_0x65490e[_0x1851c4(0xc9)],_0x65490e[_0x1851c4(0xb1)],_0x65490e[_0x1851c4(0x12b)],_0x65490e['oCFLm'],_0x65490e[_0x1851c4(0xe7)],_0x65490e[_0x1851c4(0x1d9)],_0x65490e[_0x1851c4(0xf3)],_0x65490e[_0x1851c4(0x95)],_0x65490e[_0x1851c4(0x1bc)],_0x65490e['mGZfC'],_0x65490e[_0x1851c4(0x1a1)],_0x65490e['IfiCW'],_0x65490e[_0x1851c4(0x104)],_0x65490e[_0x1851c4(0x186)],_0x65490e[_0x1851c4(0x19f)],_0x65490e[_0x1851c4(0x9c)],_0x65490e[_0x1851c4(0x13c)]],_0x5ca42b[_0x1851c4(0x14b)]=_0x65490e['MfIKN'],await this['iamClient'][_0x1851c4(0xd6)][_0x1851c4(0x16c)][_0x1851c4(0x1ce)]({'parent':_0x1851c4(0xff)+this[_0x1851c4(0xc4)],'requestBody':{'role':_0x5ca42b,'roleId':this[_0x1851c4(0x1ee)]},'auth':_0x529cda});const _0x447304={};_0x447304[_0x1851c4(0x98)]='projects/'+this[_0x1851c4(0xc4)],_0x447304['requestBody']={},_0x447304['auth']=_0x529cda,_0x447304['requestBody']['accountId']=this['serviceAccountName'];const _0x20ab35=_0x447304;await this[_0x1851c4(0x1db)][_0x1851c4(0x190)][_0x1851c4(0x1b4)][_0x1851c4(0x1ce)](_0x20ab35);let _0x54fdcc=await this[_0x1851c4(0x1ac)][_0x1851c4(0x130)]({'resource':'projects/'+this[_0x1851c4(0xc4)]});_0x54fdcc=_0x54fdcc[0x0][_0x1851c4(0x144)];const _0x20a6af={};_0x20a6af[_0x1851c4(0x148)]='projects/'+this['projectId']+_0x1851c4(0xae)+this[_0x1851c4(0x1ee)],_0x20a6af[_0x1851c4(0x18f)]=[_0x1851c4(0x14d)+this['serviceAccountName']+'@'+this[_0x1851c4(0xc4)]+_0x1851c4(0xab)],_0x54fdcc[_0x1851c4(0x1cf)](_0x20a6af);const _0x1c2ebb={};_0x1c2ebb[_0x1851c4(0x144)]=_0x54fdcc,await this[_0x1851c4(0x1ac)]['setIamPolicy']({'resource':'projects/'+this[_0x1851c4(0xc4)],'policy':_0x1c2ebb}),logger[_0x1851c4(0xa6)](_0x65490e['joBma']);}async[a3_0x2b0fb6(0x12f)](_0x2ac1dc='default',_0x2f9cf3=['default']){const _0x20000b=a3_0x2b0fb6,_0x50c403={};_0x50c403[_0x20000b(0x1e6)]='Creating\x20required\x20resources\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x50c403[_0x20000b(0xa9)]='Creating\x20required\x20dependencies\x20-\x20GKE\x20Cluster\x20and\x20Service\x20Account',_0x50c403['JaUcw']=function(_0x5b3633,_0x1c8d26){return _0x5b3633===_0x1c8d26;},_0x50c403[_0x20000b(0x12d)]=_0x20000b(0x166),_0x50c403[_0x20000b(0x1c8)]=_0x20000b(0x1ba),_0x50c403['bqrao']=function(_0x4fd21f,_0x1c27bb){return _0x4fd21f===_0x1c27bb;},_0x50c403['OjfHo']=_0x20000b(0x172),_0x50c403[_0x20000b(0x1b3)]=_0x20000b(0xfd);const _0x4321e9=_0x50c403,_0x4d860f={};_0x4d860f['type']=WS_EVENTS[_0x20000b(0x188)],_0x4d860f[_0x20000b(0x13b)]=_0x4321e9[_0x20000b(0x1e6)],this[_0x20000b(0x1cc)]['sendEventToBackend'](this[_0x20000b(0x1ae)],_0x4d860f),logger['info'](_0x4321e9[_0x20000b(0xa9)]);if(!_0x2ac1dc){if(_0x4321e9[_0x20000b(0xea)](_0x4321e9[_0x20000b(0x12d)],_0x4321e9[_0x20000b(0x12d)]))_0x2ac1dc=_0x4321e9[_0x20000b(0x1c8)];else return![];}return(!_0x2f9cf3||_0x4321e9['bqrao'](_0x2f9cf3[_0x20000b(0x1ad)],0x0))&&(_0x4321e9[_0x20000b(0x92)](_0x4321e9[_0x20000b(0x1a9)],_0x4321e9['lWsRx'])?(_0x3898fc[_0x20000b(0x11b)]=_0x517362[0x0],this[_0x20000b(0xf9)]()):_0x2f9cf3=[_0x4321e9[_0x20000b(0x1c8)]]),await this['setupServiceAccount'](),await this[_0x20000b(0x124)](_0x2ac1dc,_0x2f9cf3),await this[_0x20000b(0x133)](),!![];}async[a3_0x2b0fb6(0x124)](_0x2ac73c=a3_0x2b0fb6(0x1ba),_0x7f756f=[a3_0x2b0fb6(0x1ba)]){const _0x13e63d=a3_0x2b0fb6,_0x5cfccd={};_0x5cfccd[_0x13e63d(0x100)]=_0x13e63d(0x1ba),_0x5cfccd['YARFU']=function(_0x41f6ee,_0x458ffb){return _0x41f6ee===_0x458ffb;},_0x5cfccd[_0x13e63d(0x1e7)]=function(_0x1401fb,_0xd4bb5e){return _0x1401fb===_0xd4bb5e;},_0x5cfccd[_0x13e63d(0x112)]='pMNrx',_0x5cfccd[_0x13e63d(0x1c7)]=_0x13e63d(0x10c),_0x5cfccd[_0x13e63d(0xfc)]=_0x13e63d(0x159),_0x5cfccd['njwoP']=_0x13e63d(0x132),_0x5cfccd[_0x13e63d(0x17a)]=_0x13e63d(0x1a5),_0x5cfccd['sFUOA']=_0x13e63d(0xf2),_0x5cfccd[_0x13e63d(0xd1)]='utf-8',_0x5cfccd['RBrdY']=_0x13e63d(0xad),_0x5cfccd[_0x13e63d(0x108)]=function(_0x20cc87,_0x2700c8){return _0x20cc87*_0x2700c8;},_0x5cfccd[_0x13e63d(0xb7)]=function(_0x355fbd,_0x5737b8){return _0x355fbd*_0x5737b8;},_0x5cfccd['ZaPsX']=function(_0x25a49f,_0x4b6629){return _0x25a49f!==_0x4b6629;},_0x5cfccd[_0x13e63d(0x115)]=_0x13e63d(0x13a),_0x5cfccd[_0x13e63d(0x14e)]='zNHcZ',_0x5cfccd['eokMv']=function(_0x201a1a,_0x40802d){return _0x201a1a===_0x40802d;},_0x5cfccd['zEyAV']=_0x13e63d(0xf6),_0x5cfccd[_0x13e63d(0xf5)]=_0x13e63d(0x1b7),_0x5cfccd[_0x13e63d(0x116)]=_0x13e63d(0xd8),_0x5cfccd['WAehM']='Cluster\x20creation\x20failed';const _0x3c7054=_0x5cfccd;try{if(_0x3c7054[_0x13e63d(0x1e7)](_0x3c7054[_0x13e63d(0x112)],_0x3c7054[_0x13e63d(0x1c7)]))return!![];else{logger[_0x13e63d(0xa6)](_0x3c7054[_0x13e63d(0xfc)]);let _0x433f5d=await fs['readFileAsync'](path[_0x13e63d(0x180)](__dirname,'..',_0x3c7054['njwoP'],_0x3c7054[_0x13e63d(0x17a)],_0x3c7054[_0x13e63d(0x120)]),_0x3c7054[_0x13e63d(0xd1)]);_0x433f5d=JSON[_0x13e63d(0x1c0)](_0x433f5d);let _0x3900be=await fs['readFileAsync'](path[_0x13e63d(0x180)](__dirname,'..',_0x3c7054[_0x13e63d(0x18d)],_0x3c7054[_0x13e63d(0x17a)],_0x3c7054[_0x13e63d(0x156)]),_0x3c7054[_0x13e63d(0xd1)]);_0x3900be=JSON[_0x13e63d(0x1c0)](_0x3900be),_0x433f5d[_0x13e63d(0x98)]=this[_0x13e63d(0x1f1)],_0x433f5d[_0x13e63d(0x1a4)][0x0]['config'][_0x13e63d(0x15d)]=global_registry[_0x13e63d(0x192)],_0x433f5d[_0x13e63d(0x1a4)][0x1]['config'][_0x13e63d(0x15d)]=global_registry[_0x13e63d(0x192)],_0x433f5d[_0x13e63d(0x1a4)][0x0][_0x13e63d(0xf8)][_0x13e63d(0x136)]=this['serviceAccountName']+'@'+this[_0x13e63d(0xc4)]+_0x13e63d(0xab),_0x433f5d[_0x13e63d(0x1a4)][0x1][_0x13e63d(0xf8)]['serviceAccount']=this[_0x13e63d(0x15e)]+'@'+this[_0x13e63d(0xc4)]+_0x13e63d(0xab),_0x433f5d['nodePools'][0x0]['autoscaling'][_0x13e63d(0x151)]=global_registry[_0x13e63d(0x107)],_0x433f5d[_0x13e63d(0x1a4)][0x1][_0x13e63d(0x145)][_0x13e63d(0x151)]=0x0,_0x433f5d[_0x13e63d(0x1a4)][0x0][_0x13e63d(0x145)][_0x13e63d(0x141)]=global_registry['maxNodes'],_0x433f5d['nodePools'][0x1][_0x13e63d(0x145)]['maxNodeCount']=global_registry['maxNodes'],_0x433f5d['location']=global_registry[_0x13e63d(0x11b)],_0x433f5d['locations']=[_0x3900be[global_registry[_0x13e63d(0x11b)]][0x0]],_0x433f5d[_0x13e63d(0x13f)]=_0x13e63d(0xff)+this[_0x13e63d(0xc4)]+_0x13e63d(0xe1)+_0x2ac73c,_0x433f5d[_0x13e63d(0x1b6)]='projects/'+this['projectId']+_0x13e63d(0x185)+global_registry['clusterRegion']+_0x13e63d(0x150)+_0x7f756f[0x0];const _0x34de08=await this['containerClient']['createCluster']({'cluster':_0x433f5d,'parent':_0x13e63d(0xff)+this[_0x13e63d(0xc4)]+'/locations/'+global_registry[_0x13e63d(0x11b)]});await this[_0x13e63d(0x1cc)][_0x13e63d(0x18b)](_0x3c7054['RPXoX'](_0x3c7054[_0x13e63d(0xb7)](0x7,0x3c),0x3e8));}}catch(_0x49f5e8){if(_0x3c7054[_0x13e63d(0xee)](_0x3c7054[_0x13e63d(0x115)],_0x3c7054[_0x13e63d(0x14e)])){const _0x5d2420=await this[_0x13e63d(0xa8)]();if(_0x5d2420)_0x3c7054['eokMv'](_0x3c7054['zEyAV'],_0x3c7054['zEyAV'])?(logger['info'](_0x3c7054[_0x13e63d(0xf5)],_0x49f5e8[_0x13e63d(0x181)]),await this[_0x13e63d(0xeb)]()):_0x210012=[_0x3c7054['ctHxD']];else{if(_0x3c7054[_0x13e63d(0xee)](_0x3c7054[_0x13e63d(0x116)],_0x3c7054[_0x13e63d(0x116)]))for(const _0x2dd84c of _0x3acd48[_0x13e63d(0x9e)][_0x13e63d(0xe8)]){if(_0x3c7054[_0x13e63d(0x13e)](_0x2dd84c?.['name'],_0x13e63d(0xff)+this['projectId']+_0x13e63d(0x187)+this[_0x13e63d(0x15e)]+'@'+this[_0x13e63d(0xc4)]+_0x13e63d(0xab)))return!![];}else logger[_0x13e63d(0xa6)](_0x3c7054['WAehM']);}throw _0x49f5e8;}else this['sendGCPInfoToHST'](this['rws']);}}async[a3_0x2b0fb6(0x133)](){const _0x2eb01a=a3_0x2b0fb6;cp['execSync'](_0x2eb01a(0x1b1)+this[_0x2eb01a(0x1f1)]+'\x20--windows-os-version=ltsc2022\x20--region\x20'+global_registry[_0x2eb01a(0x11b)]+_0x2eb01a(0x1d4));}async[a3_0x2b0fb6(0xeb)](_0x5389c8,_0x3aebf1){const _0x47a764=a3_0x2b0fb6,_0x5dd8c5={'pSXYf':_0x47a764(0x1cb),'fPCOk':function(_0x7317c1,_0x3415eb){return _0x7317c1!==_0x3415eb;},'zVyXS':_0x47a764(0xa5),'lrLZS':function(_0x2ece5e,_0x526f27){return _0x2ece5e(_0x526f27);},'kSVYj':function(_0x502d77,_0x2750af){return _0x502d77===_0x2750af;},'RIeYD':_0x47a764(0xb8),'OWfFy':'DONE','fUNVw':'xOrUa','cbaZL':_0x47a764(0x17f),'QXoPK':'Cluster\x20deletion\x20completed','KYkMf':function(_0x359573,_0x2e3c4d){return _0x359573!==_0x2e3c4d;},'JkCrh':'UCpaA','LyIJM':'GKE\x20Cluster\x20deletion\x20failed'};try{if(_0x5dd8c5['fPCOk'](_0x5dd8c5[_0x47a764(0x1dd)],_0x5dd8c5[_0x47a764(0x1dd)]))return _0x1d49d4[_0x47a764(0x105)][_0x47a764(0x9a)]['ingress'][0x0]['ip'];else{await _0x5dd8c5['lrLZS'](deleteAgent,_0x5389c8),await _0x5dd8c5['lrLZS'](deleteRoutingDeps,_0x5389c8),logger[_0x47a764(0xa6)]('Deleting\x20the\x20cluster\x20'+this['clusterName']);const _0x14ae22=await this['containerClient'][_0x47a764(0xeb)]({'name':'projects/'+this[_0x47a764(0xc4)]+'/locations/'+global_registry[_0x47a764(0x11b)]+'/clusters/'+this[_0x47a764(0x1f1)]});if(_0x5dd8c5[_0x47a764(0x9d)](_0x14ae22[0x0]?.[_0x47a764(0x105)],_0x5dd8c5[_0x47a764(0x1de)])||_0x5dd8c5['kSVYj'](_0x14ae22[0x0]?.[_0x47a764(0x105)],_0x5dd8c5[_0x47a764(0x175)])){if(_0x5dd8c5[_0x47a764(0x1f2)](_0x5dd8c5[_0x47a764(0x157)],_0x5dd8c5['cbaZL']))return!![];else{_0x10a6c8['info'](_0x5dd8c5['pSXYf']);return;}}logger['info'](_0x5dd8c5[_0x47a764(0x171)]);}}catch(_0x41f069){if(_0x5dd8c5[_0x47a764(0x19a)](_0x5dd8c5[_0x47a764(0x137)],_0x5dd8c5['JkCrh']))return[!![],_0xb13715];else{logger['info'](_0x5dd8c5[_0x47a764(0xdd)]);throw _0x41f069;}}}async[a3_0x2b0fb6(0x152)](_0x85d8){const _0x2e25c8=a3_0x2b0fb6,_0x59a109={};_0x59a109[_0x2e25c8(0x119)]=function(_0x2d6f3e,_0x2a12db){return _0x2d6f3e===_0x2a12db;},_0x59a109[_0x2e25c8(0xc5)]=function(_0x4319c7,_0x259ed8){return _0x4319c7===_0x259ed8;},_0x59a109[_0x2e25c8(0x1c1)]=_0x2e25c8(0xf1),_0x59a109[_0x2e25c8(0x1ed)]=function(_0x571919,_0x3172bc){return _0x571919>_0x3172bc;},_0x59a109['VFYbW']=function(_0x1ff712,_0x4a95fc){return _0x1ff712===_0x4a95fc;},_0x59a109[_0x2e25c8(0xc0)]=function(_0x36c314,_0x3900d8){return _0x36c314!==_0x3900d8;},_0x59a109[_0x2e25c8(0x198)]='ybEFi',_0x59a109[_0x2e25c8(0x126)]=_0x2e25c8(0x19d);const _0x13274b=_0x59a109;try{if(_0x13274b[_0x2e25c8(0xc5)](_0x13274b[_0x2e25c8(0x1c1)],_0x13274b[_0x2e25c8(0x1c1)])){const _0x2bdd74=await this[_0x2e25c8(0x1b5)]['get']({'project':this[_0x2e25c8(0xc4)],'network':_0x85d8});if(_0x13274b[_0x2e25c8(0x1ed)](_0x2bdd74[_0x2e25c8(0x1ad)],0x0)&&_0x13274b[_0x2e25c8(0x123)](_0x2bdd74[0x0][_0x2e25c8(0x98)],_0x85d8)){if(_0x13274b[_0x2e25c8(0xc0)](_0x13274b['rDEUa'],_0x13274b[_0x2e25c8(0x126)]))return!![];else{if(_0x13274b[_0x2e25c8(0x119)](_0x1206a4?.[_0x2e25c8(0x98)],'projects/'+this[_0x2e25c8(0xc4)]+_0x2e25c8(0x187)+this[_0x2e25c8(0x15e)]+'@'+this[_0x2e25c8(0xc4)]+_0x2e25c8(0xab)))return!![];}}}else _0x4e1f1d['push'](_0x3c6e74);}catch(_0x1e74ed){return![];}return![];}async[a3_0x2b0fb6(0x125)](_0x38c31d,_0x5424f4){const _0x53799c=a3_0x2b0fb6,_0x360241={};_0x360241[_0x53799c(0x1b0)]=function(_0x408b27,_0x215ec3){return _0x408b27===_0x215ec3;};const _0x247284=_0x360241;try{const _0x23b810=await this['networkClient'][_0x53799c(0xa2)]({'project':this['projectId'],'network':_0x5424f4});for(const _0x540a4f of _0x23b810[0x0][_0x53799c(0x15c)]){const _0x1759cc=_0x53799c(0x169)+this[_0x53799c(0xc4)]+_0x53799c(0x185)+global_registry[_0x53799c(0x11b)]+_0x53799c(0x150)+_0x38c31d[0x0];if(_0x247284[_0x53799c(0x1b0)](_0x1759cc,_0x540a4f))return[!![],_0x38c31d];}}catch(_0x4d964b){return logger[_0x53799c(0xde)]('Cannot\x20find\x20subnets\x20'+_0x38c31d+_0x53799c(0x1e2)+_0x4d964b),[![],[]];}return[![],[]];}async[a3_0x2b0fb6(0x1bd)](){const _0x939e06=a3_0x2b0fb6,_0x55733c=await this['networkClient'][_0x939e06(0xdc)]({'project':this['projectId']}),_0x4ef623={};_0x4ef623['username']=global_registry[_0x939e06(0xd2)],_0x4ef623[_0x939e06(0x1b9)]=global_registry[_0x939e06(0xfe)],_0x4ef623[_0x939e06(0xbd)]=GCP,_0x4ef623[_0x939e06(0xa1)]=[];const _0x480ac1=_0x4ef623;for(const _0x11a6c8 of _0x55733c){_0x480ac1[_0x939e06(0xa1)][_0x939e06(0x1cf)](_0x11a6c8);}const _0x30a57={};_0x30a57[_0x939e06(0x11a)]=WS_EVENTS[_0x939e06(0xc6)],_0x30a57[_0x939e06(0x13b)]=_0x480ac1,this['webSocketUtils'][_0x939e06(0x1d2)](this[_0x939e06(0x1ae)],_0x30a57);}async[a3_0x2b0fb6(0xf9)](){const _0x2480bc=a3_0x2b0fb6,_0x176786={'eWgcw':function(_0x57e897,_0xc536b8,_0x418a32){return _0x57e897(_0xc536b8,_0x418a32);},'lqEkV':_0x2480bc(0x1e8),'ERTQC':_0x2480bc(0x191),'WZMwF':function(_0x100e08,_0x4d8e57,_0x2fb905){return _0x100e08(_0x4d8e57,_0x2fb905);}},_0xec469a=_0x2480bc(0x147)+AG_API_URL+_0x2480bc(0x11f),_0x4b43b0={};_0x4b43b0[_0x2480bc(0x1ab)]=global_registry['gridProfileId'];const _0x4cb585={};_0x4cb585['newRegion']=global_registry[_0x2480bc(0x11b)];const _0x26ed4a={'searchParams':_0x4b43b0,'json':_0x4cb585,'headers':_0x176786['eWgcw'](getAuthHeader,global_registry[_0x2480bc(0xd2)],global_registry[_0x2480bc(0xfe)]),'method':_0x176786[_0x2480bc(0x177)],'responseType':_0x176786[_0x2480bc(0xfb)],'throwHttpErrors':![]},_0x167673=await _0x176786[_0x2480bc(0x1d6)](got,_0xec469a,_0x26ed4a);}}function a3_0x7d4d(_0x503e63,_0x86c541){const _0x5def36=a3_0x5def();return a3_0x7d4d=function(_0x7d4d2b,_0x6bb6b){_0x7d4d2b=_0x7d4d2b-0x8f;let _0x159db1=_0x5def36[_0x7d4d2b];return _0x159db1;},a3_0x7d4d(_0x503e63,_0x86c541);}function a3_0x5def(){const _0x1cc52b=['sendGCPInfoToHST','ClusterManagerClient','LGVYF','parse','nWHwT','24FDdfJB','storage.buckets.deleteTagBinding','../utils/gridComponents','xFqjF','CKByD','HKnue','nOYmN','UGIgQ','mzvEI','Service\x20account\x20already\x20exists,\x20skipping','webSocketUtils','GoogleCloudProvider','create','push','iHDQq','ILmlD','sendEventToBackend','util','\x20--quiet\x20--user-output-enabled=false','HfUug','WZMwF','oCFLm','XrvRA','ImFJJ','joBma','iamClient','child_process','zVyXS','RIeYD','Jcjdy','listClusters','bVfTc','.\x20Error:\x20','/clusters/','11ftKpNB','isrQf','pwZoV','WNZMo','PUT','dFYzA','UYhhR','gOgSU','storage.buckets.setIamPolicy','NaRzb','customRoleName','QDIzl','KubeConfigTemplate.yaml','clusterName','fPCOk','1480fULXTr','../config/constants','PUXcQ','wcnpM','VEBhf','xgIKT','bqrao','HFFOM','RimTQ','sjPSB','storage.multipartUploads.list','../config/logger','name','DKecU','loadBalancer','scopes','RGeZS','kSVYj','data','1528479BCUeYI','MboxT','vpcInfo','get','bmeWC','hbzKa','ewNQt','info','lddEc','isClusterPresent','HnDAq','containerClient','.iam.gserviceaccount.com','path','regionmap.json','/roles/','SXLYa','googleapis','uZRbh','getCluster','13mFvKTc','parent','taAuk','NetworksClient','iNUWy','RUNNING','auth','oVrDP','gcp_credentials.json','storage.objects.update','cloudProvider','VIGNN','slxCj','EqZon','PBTPz','XEEHk','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','projectId','Yrkri','RESOURCES','5762666wUjHJW','KQfLT','duiKm','BkwDv','storage.buckets.delete','endpoint','sYAYG','lMrej','setCachedCredsInRegistry','masterAuth','NLXuG','bstackUsername','5|7|1|3|2|6|8|0|4','WHGqF','OpVIK','organizations','getClusterInfo','TuDDC','getUserInput','11436GOlOta','writeFileSync','list','LyIJM','error','@google-cloud/compute','managedby','/global/networks/','tpwvh','cloudProviderName','isBrowserstackCluster','storage.objects.create','gAKoT','ECInQ','accounts','PRurl','JaUcw','deleteCluster','storage.multipartUploads.abort','Cluster\x20creation\x20failed','ZaPsX','SdSsQ','toLowerCase','OZKxI','gkecluster.json','diyYk','koJQQ','nptaK','QROpT','srpmX','config','updateClusterRegion','getGridHostname','ERTQC','jvMUv','mfVBD','bstackAccesskey','projects/','ctHxD','INWLL','exports','concat','IgIyJ','status','clusterCaCertificate','minNodes','RPXoX','@google-cloud/container','project_id','storage.buckets.listTagBindings','btsHC','zAuti','Creating\x20service\x20account','10868730JBPLaB','AdDGH','storage.objects.list','XCaqR','ERLYh','iam','IBCry','ZVxwx','Coyon','setupServiceAccount','yCkUZ','type','clusterRegion','init','UfYLi','qKKWm','/packages/cli/update-cluster-region','sFUOA','exec','sDFOW','VFYbW','createCluster','isSubnetsValid','FlUTe','25708rTFUVz','UInOz','exit','xdJDS','NQNNU','readFileAsync','zhLop','vkCVX','setupNewCluster','getIamPolicy','checkServiceAccount','templates','updateWindowsNodeGroup','XukGm','dJzwc','serviceAccount','JkCrh','VtNpu','credentialsPath','ZQGGj','message','iPqkY','11624124oDnWSw','YARFU','network','log','maxNodeCount','SAcMs','keyFile','bindings','autoscaling','jQGVv','https://','role','OITtG','storage.objects.getIamPolicy','title','gIvoX','serviceAccount:','ooAjY','ZmSri','/subnetworks/','minNodeCount','isVPCPresent','lPLcK','resourceLabels','TvMFf','RBrdY','fUNVw','FOdEK','Creating\x20GKE\x20Cluster','GKE\x20Cluster\x20deletion\x20failed','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','subnetworks','machineType','serviceAccountName','HWsvo','MfIKN','clusters','split','Eavao','QEuKj','Found\x20cluster\x20with\x20name\x20\x27','iZpjT','/locations/','95086TLSqiZ','https://www.googleapis.com/compute/v1/projects/','YeuJz','storage.buckets.createTagBinding','roles','KxLqI','storage.objects.get','gcloud\x20auth\x20login\x20--cred-file=','getClient','QXoPK','PFrXt','dxITv','ApVIX','OWfFy','22iutOJH','lqEkV','Cannot\x20find\x20subnets\x20','UViho','Bxiwz','rJqVg','bWeMS','uadbz','storage.buckets.getObjectInsights','JWMGi','join','stack','loZCp','RcvUW','IfiCW','/regions/','FeeCm','/serviceAccounts/','LOG','execSync','ltVOH','delay','oGgev','njwoP','toString','members','projects','json','instanceType','cEBTH','xDBLn','eiIlV','OBWAN','browserstack','rDEUa','XBywX','KYkMf','https://www.googleapis.com/auth/cloud-platform','nWyXg','rRJkr','189InOehK','SNvKC','turboscale-service-account','fxgMI','storage.objects.delete','storage.multipartUploads.create','nodePools','gcpresources','replace','FhgHF','RbgtC','OjfHo','rNTte','profileId','resourcemanagerClient','length','rws','mGZfC','xkWWo','gcloud\x20container\x20node-pools\x20update\x20windows-pool\x20--cluster=','vVBrd','lWsRx','serviceAccounts','networkClient','subnetwork','Cluster\x20creation\x20failed,\x20rolling\x20back\x20cluster\x20creation:\x20','LFgQV','accessKey','default','eRIQc','irUUe'];a3_0x5def=function(){return _0x1cc52b;};return a3_0x5def();}const a3_0x5678a1={};a3_0x5678a1[a3_0x2b0fb6(0x1cd)]=GoogleCloudProvider,module[a3_0x2b0fb6(0x102)]=a3_0x5678a1;
@@ -1 +1 @@
1
- const a4_0x59ef18=a4_0x36e2;(function(_0x435fa2,_0x4908a6){const _0x5aac0b=a4_0x36e2,_0x3f1013=_0x435fa2();while(!![]){try{const _0x34d4d5=parseInt(_0x5aac0b(0x83))/0x1+-parseInt(_0x5aac0b(0x9a))/0x2*(parseInt(_0x5aac0b(0x8d))/0x3)+-parseInt(_0x5aac0b(0x95))/0x4+-parseInt(_0x5aac0b(0x81))/0x5+-parseInt(_0x5aac0b(0x8e))/0x6+parseInt(_0x5aac0b(0x82))/0x7+parseInt(_0x5aac0b(0x89))/0x8;if(_0x34d4d5===_0x4908a6)break;else _0x3f1013['push'](_0x3f1013['shift']());}catch(_0x26802a){_0x3f1013['push'](_0x3f1013['shift']());}}}(a4_0x1729,0xddceb));function a4_0x36e2(_0x310be4,_0x5d77d2){const _0x172919=a4_0x1729();return a4_0x36e2=function(_0x36e2b1,_0x337e3b){_0x36e2b1=_0x36e2b1-0x7f;let _0xaf2e68=_0x172919[_0x36e2b1];return _0xaf2e68;},a4_0x36e2(_0x310be4,_0x5d77d2);}function a4_0x1729(){const _0x40ae5d=['xAkcO','Unknown\x20cloud\x20provider\x20found\x20-\x20','2796086IpCxIW',',\x20stacktrace:\x20','SNiqN','../utils/instrumentationUtils','stack','../config/logger','3455835vhKqOC','6366787YYsGpq','1563147hiYxRE','./GoogleCloudProvider','error','eXQJw','DbgWK','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20','15427576BVeSNe','getCloudProviderObject','EqeCY','create-grid-called','3WVzcSw','1051110HDUrGY','message','grid-spawning-failed','RlHae','./AWS','init','exit','4912868kOwsyh','Current\x20Node.js\x20version\x20','../config/constants'];a4_0x1729=function(){return _0x40ae5d;};return a4_0x1729();}const {AWSCloudProvider}=require(a4_0x59ef18(0x92)),{GoogleCloudProvider}=require(a4_0x59ef18(0x84)),{installAzurePackages}=require('../utils/utilityMethods'),{AWS,AZURE,GCP,messageTypes}=require(a4_0x59ef18(0x97)),{sendInstrumentationEvent}=require(a4_0x59ef18(0x9d)),{logger}=require(a4_0x59ef18(0x80));exports[a4_0x59ef18(0x8a)]=async(_0xaaa30,_0xe12050,_0x272f41,_0x4a369f,_0x56cf1b,_0x2e2df8)=>{const _0x5b1821=a4_0x59ef18,_0x2dcf53={'xAkcO':function(_0xa10fe9){return _0xa10fe9();},'DbgWK':function(_0x57150c,_0x4a5f81){return _0x57150c(_0x4a5f81);},'EqeCY':'./Azure','RlHae':function(_0x17f5f3,_0x431cf6,_0x778539,_0x57faff,_0x1d257b,_0x41f673,_0x55715d){return _0x17f5f3(_0x431cf6,_0x778539,_0x57faff,_0x1d257b,_0x41f673,_0x55715d);},'SNiqN':_0x5b1821(0x8c),'eXQJw':_0x5b1821(0x90)};switch(_0xaaa30){case AWS:{const _0x1957a1=new AWSCloudProvider(_0xe12050,_0x272f41,_0x4a369f,_0x56cf1b);return await _0x1957a1[_0x5b1821(0x93)]();}case GCP:{const _0x551c2a=new GoogleCloudProvider(_0xe12050,_0x272f41,_0x4a369f,_0x56cf1b);return await _0x551c2a['init']();}case AZURE:{try{await _0x2dcf53[_0x5b1821(0x98)](installAzurePackages);const {AzureCloudProvider:_0x469ee3}=_0x2dcf53[_0x5b1821(0x87)](require,_0x2dcf53[_0x5b1821(0x8b)]),_0x578bde=new _0x469ee3(_0xe12050,_0x272f41,_0x4a369f,_0x56cf1b);return await _0x578bde[_0x5b1821(0x93)]();}catch(_0x16f3bd){const _0x3cacf8=_0x5b1821(0x96)+process['versions']['node']+_0x5b1821(0x88)+_0x16f3bd[_0x5b1821(0x8f)]+_0x5b1821(0x9b)+_0x16f3bd[_0x5b1821(0x7f)];logger[_0x5b1821(0x85)](_0x3cacf8);const _0x5474f8={};_0x5474f8[_0x5b1821(0x85)]=_0x3cacf8,await _0x2dcf53[_0x5b1821(0x91)](sendInstrumentationEvent,_0x2e2df8,_0x2dcf53[_0x5b1821(0x9c)],messageTypes['ERROR'],_0x2dcf53[_0x5b1821(0x86)],_0x5474f8,_0x2e2df8),process[_0x5b1821(0x94)](0x1);}}default:logger[_0x5b1821(0x85)](_0x5b1821(0x99)+_0xaaa30),process[_0x5b1821(0x94)](0x1);}};
1
+ function a4_0x2b38(){const _0x3d625c=['cAwGM','Current\x20Node.js\x20version\x20','1904648QtUaTg','VRZuu','./Azure','538804BGBFDd','../config/logger','../config/constants','207072TsricC','message','./GoogleCloudProvider','293812EORPPi','ERROR','9AZaWFJ','exit','Unknown\x20cloud\x20provider\x20found\x20-\x20','grid-spawning-failed','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20','node','1172710bZJmNz','20219fqbZmm','stack','25560lOpFnv','init',',\x20stacktrace:\x20','getCloudProviderObject','110cpDxfe','qwZCl','error'];a4_0x2b38=function(){return _0x3d625c;};return a4_0x2b38();}const a4_0x38060e=a4_0x2aff;(function(_0x390c33,_0x50b075){const _0x26dda=a4_0x2aff,_0x409a0f=_0x390c33();while(!![]){try{const _0x563a60=parseInt(_0x26dda(0x1f7))/0x1+-parseInt(_0x26dda(0x1ee))/0x2+-parseInt(_0x26dda(0x1eb))/0x3+parseInt(_0x26dda(0x1e8))/0x4+-parseInt(_0x26dda(0x1e0))/0x5*(-parseInt(_0x26dda(0x1f9))/0x6)+-parseInt(_0x26dda(0x1f6))/0x7+parseInt(_0x26dda(0x1e5))/0x8*(parseInt(_0x26dda(0x1f0))/0x9);if(_0x563a60===_0x50b075)break;else _0x409a0f['push'](_0x409a0f['shift']());}catch(_0x43b4cf){_0x409a0f['push'](_0x409a0f['shift']());}}}(a4_0x2b38,0x1935d));const {AWSCloudProvider}=require('./AWS'),{GoogleCloudProvider}=require(a4_0x38060e(0x1ed)),{installAzurePackages}=require('../utils/utilityMethods'),{AWS,AZURE,GCP,messageTypes}=require(a4_0x38060e(0x1ea)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),{logger}=require(a4_0x38060e(0x1e9));function a4_0x2aff(_0x18c288,_0x20a987){const _0x2b385f=a4_0x2b38();return a4_0x2aff=function(_0x2aff0d,_0x2dc435){_0x2aff0d=_0x2aff0d-0x1dd;let _0x3b0c1f=_0x2b385f[_0x2aff0d];return _0x3b0c1f;},a4_0x2aff(_0x18c288,_0x20a987);}exports[a4_0x38060e(0x1df)]=async(_0xfc5da4,_0x44fbb4,_0x3547a0,_0x14f989,_0x399f7a,_0xe10f20)=>{const _0x24938d=a4_0x38060e,_0x51a80d={'cKHQZ':function(_0x4438d1){return _0x4438d1();},'vvykV':function(_0x29632f,_0x4a4496){return _0x29632f(_0x4a4496);},'cAwGM':_0x24938d(0x1e7),'dANyM':function(_0xc2320a,_0x4bb07d,_0x1f81d4,_0x55c543,_0x36057e,_0x2834ae,_0x4e1f06){return _0xc2320a(_0x4bb07d,_0x1f81d4,_0x55c543,_0x36057e,_0x2834ae,_0x4e1f06);},'qwZCl':'create-grid-called','VRZuu':_0x24938d(0x1f3)};switch(_0xfc5da4){case AWS:{const _0x4ac7bb=new AWSCloudProvider(_0x44fbb4,_0x3547a0,_0x14f989,_0x399f7a);return await _0x4ac7bb[_0x24938d(0x1dd)]();}case GCP:{const _0x3042cc=new GoogleCloudProvider(_0x44fbb4,_0x3547a0,_0x14f989,_0x399f7a);return await _0x3042cc[_0x24938d(0x1dd)]();}case AZURE:{try{await _0x51a80d['cKHQZ'](installAzurePackages);const {AzureCloudProvider:_0x3d4935}=_0x51a80d['vvykV'](require,_0x51a80d[_0x24938d(0x1e3)]),_0x17b50a=new _0x3d4935(_0x44fbb4,_0x3547a0,_0x14f989,_0x399f7a);return await _0x17b50a[_0x24938d(0x1dd)]();}catch(_0x5d0d48){const _0x21a0c=_0x24938d(0x1e4)+process['versions'][_0x24938d(0x1f5)]+_0x24938d(0x1f4)+_0x5d0d48[_0x24938d(0x1ec)]+_0x24938d(0x1de)+_0x5d0d48[_0x24938d(0x1f8)];logger[_0x24938d(0x1e2)](_0x21a0c);const _0x3570fc={};_0x3570fc[_0x24938d(0x1e2)]=_0x21a0c,await _0x51a80d['dANyM'](sendInstrumentationEvent,_0xe10f20,_0x51a80d[_0x24938d(0x1e1)],messageTypes[_0x24938d(0x1ef)],_0x51a80d[_0x24938d(0x1e6)],_0x3570fc,_0xe10f20),process['exit'](0x1);}}default:logger[_0x24938d(0x1e2)](_0x24938d(0x1f2)+_0xfc5da4),process[_0x24938d(0x1f1)](0x1);}};
@@ -1 +1 @@
1
- const a5_0xa628b3=a5_0x20d6;(function(_0x1ff9ed,_0x4572ba){const _0x4ea9bd=a5_0x20d6,_0x17bda6=_0x1ff9ed();while(!![]){try{const _0x13e1a5=-parseInt(_0x4ea9bd(0x125))/0x1+parseInt(_0x4ea9bd(0xf2))/0x2+-parseInt(_0x4ea9bd(0xe3))/0x3+parseInt(_0x4ea9bd(0xfe))/0x4*(-parseInt(_0x4ea9bd(0x106))/0x5)+-parseInt(_0x4ea9bd(0x10a))/0x6+-parseInt(_0x4ea9bd(0x12f))/0x7*(-parseInt(_0x4ea9bd(0x132))/0x8)+parseInt(_0x4ea9bd(0x133))/0x9*(parseInt(_0x4ea9bd(0xe2))/0xa);if(_0x13e1a5===_0x4572ba)break;else _0x17bda6['push'](_0x17bda6['shift']());}catch(_0x3d7af0){_0x17bda6['push'](_0x17bda6['shift']());}}}(a5_0x5b78,0x7e2bb));const fs=require('fs'),got=require(a5_0xa628b3(0x10e)),{v4:uuidv4}=require('uuid'),{inputConfirmation,closeInput}=require(a5_0xa628b3(0x101)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0xa628b3(0x12b)),{getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a5_0xa628b3(0x100));function a5_0x5b78(){const _0x5ead68=['readFileSync','2046756qmnqdI','INFO','eYmGa','ERROR','exit','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','requestId','lENYA','builder','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','parse','8lrSraC','dEOJJ','../utils/instrumentationUtils','../utils/userInput','YEPaV','/packages/cli/configure','WWTxj','jJodw','2419765UeigRs','body','HVRRo','KKTEY','1619634maJcAx','BwSUX','Updated\x20default\x20Grid\x20Profile\x20successfully','BdZrn','got','statusCode','ZVsXS','help','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','GET','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','configure-called','error','TbnGX','handler','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','qxprq','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','existsSync','https://','PHTsK','desc','zrbne','log','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','SDzES','argv','342410luxnwf','configure','jBoZn','TxPHP','password','list','../config/constants','nxDCu','fzxAC','unknown-error','5152OBDNMD','cUtpS','EPybs','3776ozTTCl','6426162yqTbBT','tCauB','active','command','HfeYo','wYEBq','invalid-selection','invalid-input','WRSzd','PUT','\x20\x20username:\x20','epilogue','Failed\x20to\x20configure\x20resources!\x20Error:\x20','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','oVNOO','wZYzJ','\x20\x20grid-profile:\x20','20KlTJGU','2105268xvfywb','lAHzs','username','toLowerCase','rgAjP','VSnTq','usage','Eecbt','stringify','server-error','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','Browserstack','ilWFS','ZaLPf'];a5_0x5b78=function(){return _0x5ead68;};return a5_0x5b78();}function a5_0x20d6(_0xde82b3,_0x48bd9f){const _0x5b78f0=a5_0x5b78();return a5_0x20d6=function(_0x20d66b,_0x1426b2){_0x20d66b=_0x20d66b-0xd9;let _0x5b9053=_0x5b78f0[_0x20d66b];return _0x5b9053;},a5_0x20d6(_0xde82b3,_0x48bd9f);}exports[a5_0xa628b3(0x136)]=a5_0xa628b3(0x126),exports[a5_0xa628b3(0x11f)]=a5_0xa628b3(0x11b),exports[a5_0xa628b3(0xfb)]=function(_0x2ae106){const _0x21bebc=a5_0xa628b3,_0x50d43c={};_0x50d43c[_0x21bebc(0x10b)]=_0x21bebc(0x111);const _0x119c3c=_0x50d43c;return _0x2ae106[_0x21bebc(0xe9)](HELP_HEADER_MESSAGE[_0x21bebc(0x126)])[_0x21bebc(0xdc)](HELP_FOOTER_MESSAGE)[_0x21bebc(0x111)](_0x119c3c[_0x21bebc(0x10b)])['recommendCommands']()['strict']()[_0x21bebc(0x124)];},exports[a5_0xa628b3(0x118)]=async function(_0x26ff8f){const _0x9ea73d=a5_0xa628b3,_0x14588d={'KKTEY':function(_0x5f0b55){return _0x5f0b55();},'wYEBq':function(_0x1f33ca){return _0x1f33ca();},'XQFKm':_0x9ea73d(0x114),'ZaLPf':function(_0x2284c9,_0x1c67a6,_0x59ba33,_0x4572aa,_0x2818fb,_0x553662,_0x17b10c){return _0x2284c9(_0x1c67a6,_0x59ba33,_0x4572aa,_0x2818fb,_0x553662,_0x17b10c);},'BdZrn':_0x9ea73d(0x115),'SDzES':'init-not-called','WWTxj':_0x9ea73d(0x113),'nxDCu':function(_0x4e6e45,_0x25f077,_0xf51c6c){return _0x4e6e45(_0x25f077,_0xf51c6c);},'WQNRD':function(_0x1291f6,_0x12cd75,_0x15cf25){return _0x1291f6(_0x12cd75,_0x15cf25);},'HVRRo':function(_0xee10b0,_0x49b4f7){return _0xee10b0!==_0x49b4f7;},'lENYA':function(_0x2c05df,_0x113b4c){return _0x2c05df!==_0x113b4c;},'PHTsK':function(_0x4dd6d8,_0x45e429){return _0x4dd6d8===_0x45e429;},'EPybs':_0x9ea73d(0x122),'ilWFS':'core:','encqT':function(_0x58844e,_0x3201c9){return _0x58844e(_0x3201c9);},'rgAjP':_0x9ea73d(0xf8),'HfeYo':function(_0x46f7f6,_0x43fe5f){return _0x46f7f6===_0x43fe5f;},'zrbne':_0x9ea73d(0x112),'YEPaV':function(_0x48a28c,_0x492881,_0x47d6c4,_0xbfbd54,_0x59548d,_0x2701b7,_0xea86e4){return _0x48a28c(_0x492881,_0x47d6c4,_0xbfbd54,_0x59548d,_0x2701b7,_0xea86e4);},'WRSzd':_0x9ea73d(0x13a),'PpZHF':function(_0x53c825,_0xa5025){return _0x53c825===_0xa5025;},'jBoZn':_0x9ea73d(0xfc),'zhLnQ':function(_0x2d2e89,_0x1ef642){return _0x2d2e89<_0x1ef642;},'dEOJJ':function(_0x1a1fc9,_0x384049){return _0x1a1fc9+_0x384049;},'eYmGa':function(_0x18fea2,_0x4e7694){return _0x18fea2(_0x4e7694);},'lAHzs':_0x9ea73d(0xf7),'jJodw':function(_0x318c06,_0x321336){return _0x318c06(_0x321336);},'KjJeX':function(_0x33628c,_0x29f157){return _0x33628c<=_0x29f157;},'ltLuE':function(_0x12c2ad,_0x4e2407){return _0x12c2ad>_0x4e2407;},'llppn':function(_0x46346b,_0x315efd,_0x2a467b,_0x457a2d,_0x45e9e8,_0x246540,_0x5bd6a4){return _0x46346b(_0x315efd,_0x2a467b,_0x457a2d,_0x45e9e8,_0x246540,_0x5bd6a4);},'tCauB':_0x9ea73d(0x139),'jnwFt':function(_0x48fcf0){return _0x48fcf0();},'TbnGX':function(_0x2c4f0b,_0x2b9849){return _0x2c4f0b-_0x2b9849;},'TxPHP':_0x9ea73d(0xda),'jtdGT':'json','fzxAC':function(_0x59f2b3,_0x30cf7c){return _0x59f2b3!==_0x30cf7c;},'ZVsXS':function(_0x58063c,_0x45d4e9){return _0x58063c===_0x45d4e9;},'ZwFfy':_0x9ea73d(0x10c),'VSnTq':'Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','qxprq':function(_0x21ce96,_0x7a92c5,_0xe3daef,_0x381f61,_0x39a67a,_0xd42fe7,_0x4bc8b1){return _0x21ce96(_0x7a92c5,_0xe3daef,_0x381f61,_0x39a67a,_0xd42fe7,_0x4bc8b1);},'wZYzJ':'unauthorised','oVNOO':function(_0x1b01cb,_0x44546e,_0x4c4667,_0x2f64a7,_0x226efb,_0x151c58,_0x33de27){return _0x1b01cb(_0x44546e,_0x4c4667,_0x2f64a7,_0x226efb,_0x151c58,_0x33de27);},'cUtpS':_0x9ea73d(0xec),'Vnkyq':function(_0x514977,_0x53fab1){return _0x514977===_0x53fab1;},'JLYCK':_0x9ea73d(0x119),'dncnf':function(_0xf0f9f6,_0x4cec5a,_0x3db1c7,_0x2110f7,_0x382a02,_0x342d80,_0x177ee9){return _0xf0f9f6(_0x4cec5a,_0x3db1c7,_0x2110f7,_0x382a02,_0x342d80,_0x177ee9);},'Eecbt':_0x9ea73d(0x12e)};try{global_registry[_0x9ea73d(0xf9)]=_0x14588d['KKTEY'](uuidv4);const _0x8d9eb=_0x9ea73d(0x11d)+AG_API_URL+_0x9ea73d(0x103);!fs[_0x9ea73d(0x11c)](_0x14588d[_0x9ea73d(0x138)](getCredentialsPath))&&(console[_0x9ea73d(0x116)](_0x14588d['XQFKm']),await _0x14588d[_0x9ea73d(0xf0)](sendInstrumentationEvent,_0x26ff8f,_0x14588d[_0x9ea73d(0x10d)],messageTypes['ERROR'],_0x14588d[_0x9ea73d(0x123)],null,_0x26ff8f),process['exit'](0x1));await _0x14588d[_0x9ea73d(0xf0)](sendInstrumentationEvent,_0x26ff8f,_0x14588d['BdZrn'],messageTypes[_0x9ea73d(0xf3)],null,null,_0x26ff8f);const _0x10dbc8=JSON[_0x9ea73d(0xfd)](fs[_0x9ea73d(0xf1)](_0x14588d[_0x9ea73d(0x109)](getCredentialsPath))),_0x4961df={'method':_0x14588d[_0x9ea73d(0x104)],'headers':_0x14588d[_0x9ea73d(0x12c)](getAuthHeader,_0x10dbc8[_0x9ea73d(0xee)][_0x9ea73d(0xe5)],_0x10dbc8['Browserstack'][_0x9ea73d(0x129)]),'throwHttpErrors':![]},_0x44425e=await _0x14588d['WQNRD'](got,_0x8d9eb,_0x4961df);if(_0x14588d[_0x9ea73d(0x108)](_0x44425e,null)&&_0x14588d[_0x9ea73d(0xfa)](_0x44425e,undefined)&&_0x14588d['PHTsK'](_0x44425e[_0x9ea73d(0x10f)],0xc8)){const _0x47dbec=JSON[_0x9ea73d(0xfd)](_0x44425e[_0x9ea73d(0x107)]);console[_0x9ea73d(0x121)](_0x14588d[_0x9ea73d(0x131)]),console[_0x9ea73d(0x121)](_0x14588d[_0x9ea73d(0xef)]),console['log'](_0x9ea73d(0xdb)+_0x10dbc8[_0x9ea73d(0xee)][_0x9ea73d(0xe5)]),console[_0x9ea73d(0x121)](_0x9ea73d(0xe1)+_0x47dbec[_0x9ea73d(0x135)]['name']);const _0x510604=await _0x14588d['encqT'](inputConfirmation,_0x14588d[_0x9ea73d(0xe7)]);(_0x14588d[_0x9ea73d(0x11e)](_0x510604,undefined)||_0x14588d[_0x9ea73d(0x137)](_0x510604,null)||!(_0x14588d['PHTsK'](_0x510604[_0x9ea73d(0xe6)](),'y')||_0x14588d[_0x9ea73d(0x11e)](_0x510604[_0x9ea73d(0xe6)](),'n')))&&(console[_0x9ea73d(0x116)](_0x14588d['zrbne']),await _0x14588d[_0x9ea73d(0x102)](sendInstrumentationEvent,_0x26ff8f,_0x14588d[_0x9ea73d(0x10d)],messageTypes[_0x9ea73d(0xf5)],_0x14588d[_0x9ea73d(0xd9)],null,_0x26ff8f),process['exit'](0x1));_0x14588d['PpZHF'](_0x510604[_0x9ea73d(0xe6)](),'n')&&process[_0x9ea73d(0xf6)](0x0);console['log'](_0x14588d[_0x9ea73d(0x127)]);const _0x2e6e18=_0x47dbec['list']['length'];for(let _0x5c7181=0x0;_0x14588d['zhLnQ'](_0x5c7181,_0x2e6e18);_0x5c7181+=0x1){console[_0x9ea73d(0x121)]('['+_0x14588d[_0x9ea73d(0xff)](_0x5c7181,0x1)+']\x20'+_0x47dbec[_0x9ea73d(0x12a)][_0x5c7181]['name']);}const _0x2e47bc=await _0x14588d[_0x9ea73d(0xf4)](inputConfirmation,_0x14588d[_0x9ea73d(0xe4)]),_0x9799f0=_0x14588d[_0x9ea73d(0x105)](Number,_0x2e47bc);(_0x14588d[_0x9ea73d(0xf4)](isNaN,_0x9799f0)||_0x14588d['KjJeX'](_0x9799f0,0x0)||_0x14588d['ltLuE'](_0x9799f0,_0x2e6e18))&&(console['error'](_0x14588d[_0x9ea73d(0x120)]),await _0x14588d['llppn'](sendInstrumentationEvent,_0x26ff8f,_0x14588d[_0x9ea73d(0x10d)],messageTypes[_0x9ea73d(0xf5)],_0x14588d[_0x9ea73d(0x134)],null,_0x26ff8f),process[_0x9ea73d(0xf6)](0x1));_0x14588d['jnwFt'](closeInput);const _0x37ccc9=_0x47dbec[_0x9ea73d(0x12a)][_0x14588d[_0x9ea73d(0x117)](_0x9799f0,0x1)]['id'],_0x4c2d48={};_0x4c2d48['profileId']=_0x37ccc9;const _0x170d4c={'method':_0x14588d[_0x9ea73d(0x128)],'headers':_0x14588d[_0x9ea73d(0x12c)](getAuthHeader,_0x10dbc8[_0x9ea73d(0xee)]['username'],_0x10dbc8[_0x9ea73d(0xee)][_0x9ea73d(0x129)]),'json':_0x4c2d48,'responseType':_0x14588d['jtdGT'],'throwHttpErrors':![]},_0x394201=await _0x14588d['WQNRD'](got,_0x8d9eb,_0x170d4c);_0x14588d[_0x9ea73d(0x12d)](_0x394201,null)&&_0x14588d[_0x9ea73d(0xfa)](_0x394201,undefined)&&_0x14588d[_0x9ea73d(0x110)](_0x394201[_0x9ea73d(0x10f)],0xc8)&&(console[_0x9ea73d(0x121)](_0x14588d['ZwFfy']),process['exit'](0x0)),_0x14588d['PpZHF'](_0x394201['statusCode'],0x191)&&(console['error'](_0x14588d[_0x9ea73d(0xe8)]),await _0x14588d[_0x9ea73d(0x11a)](sendInstrumentationEvent,_0x26ff8f,_0x14588d[_0x9ea73d(0x10d)],messageTypes[_0x9ea73d(0xf5)],_0x14588d[_0x9ea73d(0xe0)],null,_0x26ff8f),process[_0x9ea73d(0xf6)](0x1)),console[_0x9ea73d(0x116)](_0x9ea73d(0xed)+JSON['stringify'](_0x394201)),await _0x14588d[_0x9ea73d(0xdf)](sendInstrumentationEvent,_0x26ff8f,_0x14588d[_0x9ea73d(0x10d)],messageTypes[_0x9ea73d(0xf5)],_0x14588d[_0x9ea73d(0x130)],_0x394201,_0x26ff8f),process[_0x9ea73d(0xf6)](0x1);}_0x14588d['Vnkyq'](_0x44425e[_0x9ea73d(0x10f)],0x191)&&(console[_0x9ea73d(0x116)](_0x14588d['JLYCK']),await _0x14588d[_0x9ea73d(0x11a)](sendInstrumentationEvent,_0x26ff8f,_0x14588d[_0x9ea73d(0x10d)],messageTypes[_0x9ea73d(0xf5)],_0x14588d[_0x9ea73d(0xe0)],null,_0x26ff8f),process[_0x9ea73d(0xf6)](0x1)),console[_0x9ea73d(0x116)](_0x9ea73d(0xde)+JSON[_0x9ea73d(0xeb)](_0x44425e)),await _0x14588d['dncnf'](sendInstrumentationEvent,_0x26ff8f,_0x14588d[_0x9ea73d(0x10d)],messageTypes['ERROR'],_0x14588d[_0x9ea73d(0x130)],_0x44425e,_0x26ff8f),process[_0x9ea73d(0xf6)](0x1);}catch(_0x25e8b5){console[_0x9ea73d(0x116)](_0x9ea73d(0xdd)+_0x25e8b5['stack']),await _0x14588d[_0x9ea73d(0xdf)](sendInstrumentationEvent,_0x26ff8f,_0x14588d[_0x9ea73d(0x10d)],messageTypes[_0x9ea73d(0xf5)],_0x14588d[_0x9ea73d(0xea)],_0x25e8b5,_0x26ff8f),process[_0x9ea73d(0xf6)](0x1);}};
1
+ function a5_0x134a(){const _0x5d6328=['server-error','core:','kLOYU','334598KmACzb','XKBvO','FlbGx','zBvTY','unauthorised','PDhnP','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','hSxCs','builder','HiYmv','toLowerCase','../config/constants','json','mQxCA','oycZZ','\x20\x20username:\x20','18WijPir','197488oyJjiM','error','../utils/instrumentationUtils','NlJOY','6906681eRpjXv','requestId','invalid-input','command','PYnzo','invalid-selection','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','GET','svWyl','QFXVV','/packages/cli/configure','yzpiL','handler','TYwaG','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','help','active','INFO','jebMn','msOUM','fbJoP','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','XSRLQ','length','rKSId','301QFRPmX','wXlbu','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','srCzB','PUT','yLcWW','583468oLoCwm','\x20\x20grid-profile:\x20','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','khYdD','rTqaN','3930916mPwuZY','nIBER','Updated\x20default\x20Grid\x20Profile\x20successfully','log','body','TCoXE','username','QEdzf','uuid','GYDAO','IbbLx','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','2UuZiaP','SWRyb','ERROR','exit','recommendCommands','password','255655ACuoif','statusCode','epilogue','659064BxibEP','name','unknown-error','dMvhW','stringify','../utils/userInput','strict','ybsyt','1450JAUSMX','KXzrG','desc','stack','https://','tvpSt','list','Browserstack'];a5_0x134a=function(){return _0x5d6328;};return a5_0x134a();}const a5_0x3e60cf=a5_0x110f;(function(_0x119d04,_0x34e683){const _0x6d920c=a5_0x110f,_0x4cd28d=_0x119d04();while(!![]){try{const _0x329dea=-parseInt(_0x6d920c(0x12f))/0x1*(parseInt(_0x6d920c(0x11e))/0x2)+-parseInt(_0x6d920c(0x138))/0x3+-parseInt(_0x6d920c(0x123))/0x4+-parseInt(_0x6d920c(0x135))/0x5*(parseInt(_0x6d920c(0xf9))/0x6)+-parseInt(_0x6d920c(0x117))/0x7*(parseInt(_0x6d920c(0xfa))/0x8)+-parseInt(_0x6d920c(0xfe))/0x9+parseInt(_0x6d920c(0x140))/0xa*(parseInt(_0x6d920c(0x14b))/0xb);if(_0x329dea===_0x34e683)break;else _0x4cd28d['push'](_0x4cd28d['shift']());}catch(_0x42cf04){_0x4cd28d['push'](_0x4cd28d['shift']());}}}(a5_0x134a,0x9cd79));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a5_0x3e60cf(0x12b)),{inputConfirmation,closeInput}=require(a5_0x3e60cf(0x13d)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x3e60cf(0xf4)),{getCredentialsPath,getAuthHeader}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a5_0x3e60cf(0xfc));function a5_0x110f(_0x18bccb,_0x3361dd){const _0x134a63=a5_0x134a();return a5_0x110f=function(_0x110f27,_0x159a70){_0x110f27=_0x110f27-0xec;let _0x237899=_0x134a63[_0x110f27];return _0x237899;},a5_0x110f(_0x18bccb,_0x3361dd);}exports[a5_0x3e60cf(0x101)]='configure',exports[a5_0x3e60cf(0x142)]=a5_0x3e60cf(0x104),exports[a5_0x3e60cf(0xf1)]=function(_0x10359e){const _0xfa2eca=a5_0x3e60cf,_0xf0e138={};_0xf0e138[_0xfa2eca(0x102)]=_0xfa2eca(0x10d);const _0x4c568d=_0xf0e138;return _0x10359e['usage'](HELP_HEADER_MESSAGE['configure'])[_0xfa2eca(0x137)](HELP_FOOTER_MESSAGE)['help'](_0x4c568d[_0xfa2eca(0x102)])[_0xfa2eca(0x133)]()[_0xfa2eca(0x13e)]()['argv'];},exports[a5_0x3e60cf(0x10a)]=async function(_0x5d0148){const _0x4865ce=a5_0x3e60cf,_0x128b60={'QFXVV':function(_0x4d4b15){return _0x4d4b15();},'SWRyb':function(_0x47ba37){return _0x47ba37();},'Iaggw':_0x4865ce(0xef),'PhzYB':function(_0x5b5a18,_0x3b417a,_0x19dc4d,_0x5199ca,_0x1b216c,_0x25da96,_0x408455){return _0x5b5a18(_0x3b417a,_0x19dc4d,_0x5199ca,_0x1b216c,_0x25da96,_0x408455);},'srCzB':'configure-called','GYDAO':'init-not-called','nIBER':function(_0x44af4b){return _0x44af4b();},'NlJOY':_0x4865ce(0x105),'rKSId':function(_0x12654d,_0x4dbc3b,_0x434d9b){return _0x12654d(_0x4dbc3b,_0x434d9b);},'FlbGx':function(_0x73b40b,_0x4fd04c,_0x43bbea){return _0x73b40b(_0x4fd04c,_0x43bbea);},'QEdzf':function(_0xc89c10,_0x3ea435){return _0xc89c10!==_0x3ea435;},'ybsyt':function(_0x114a0c,_0x13c6f4){return _0x114a0c===_0x13c6f4;},'QzJRz':_0x4865ce(0x120),'rTqaN':_0x4865ce(0x149),'khYdD':function(_0xaf277c,_0x1c99dd){return _0xaf277c(_0x1c99dd);},'AbLlF':_0x4865ce(0x113),'dMvhW':function(_0xb2a508,_0xebc18b){return _0xb2a508===_0xebc18b;},'TYwaG':function(_0x529927,_0x59f05f){return _0x529927===_0x59f05f;},'fbJoP':function(_0x3db547,_0x34e1f3){return _0x3db547===_0x34e1f3;},'msOUM':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','svWyl':function(_0x35b531,_0x19523d,_0x2ab1c0,_0x416d30,_0x45fdd0,_0x147035,_0x35cfda){return _0x35b531(_0x19523d,_0x2ab1c0,_0x416d30,_0x45fdd0,_0x147035,_0x35cfda);},'oycZZ':_0x4865ce(0x100),'HiYmv':function(_0x14a447,_0x1666e4){return _0x14a447===_0x1666e4;},'jebMn':'What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','XSRLQ':function(_0x4a8c22,_0x4f174b){return _0x4a8c22<_0x4f174b;},'XqHcT':function(_0x4611a7,_0x2777ee){return _0x4611a7+_0x2777ee;},'tvpSt':_0x4865ce(0x11a),'Sgipx':function(_0x269303,_0x3550d5){return _0x269303<=_0x3550d5;},'KXzrG':function(_0x3db93f,_0xf88f23){return _0x3db93f>_0xf88f23;},'zBvTY':function(_0x48d709,_0x109edc,_0x1dd7bf,_0x4576d1,_0x2f55cd,_0x2aecb9,_0x716ea8){return _0x48d709(_0x109edc,_0x1dd7bf,_0x4576d1,_0x2f55cd,_0x2aecb9,_0x716ea8);},'kOgpg':_0x4865ce(0x103),'mQxCA':function(_0x4bec46){return _0x4bec46();},'TCoXE':function(_0x5fd400,_0x5f2c49){return _0x5fd400-_0x5f2c49;},'FdOzZ':_0x4865ce(0x11c),'yzpiL':_0x4865ce(0xf5),'yLcWW':function(_0x3b4c7f,_0x5589df){return _0x3b4c7f!==_0x5589df;},'hSxCs':function(_0xe34e9d,_0x12feb1){return _0xe34e9d===_0x12feb1;},'vKcgb':_0x4865ce(0x125),'dClBZ':_0x4865ce(0x119),'IbbLx':_0x4865ce(0xed),'wXlbu':_0x4865ce(0x148),'PDhnP':_0x4865ce(0x10c),'sYOFa':function(_0x4d5b44,_0x2a4fe0,_0x388dc7,_0x571a21,_0x3b7b79,_0x402b47,_0x38c819){return _0x4d5b44(_0x2a4fe0,_0x388dc7,_0x571a21,_0x3b7b79,_0x402b47,_0x38c819);},'kLOYU':function(_0x17768f,_0xf31a86,_0x249145,_0x1e1585,_0x342441,_0x42fe29,_0x494233){return _0x17768f(_0xf31a86,_0x249145,_0x1e1585,_0x342441,_0x42fe29,_0x494233);},'XKBvO':_0x4865ce(0x13a)};try{global_registry[_0x4865ce(0xff)]=_0x128b60[_0x4865ce(0x107)](uuidv4);const _0x1830e4=_0x4865ce(0x144)+AG_API_URL+_0x4865ce(0x108);!fs['existsSync'](_0x128b60[_0x4865ce(0x130)](getCredentialsPath))&&(console[_0x4865ce(0xfb)](_0x128b60['Iaggw']),await _0x128b60['PhzYB'](sendInstrumentationEvent,_0x5d0148,_0x128b60[_0x4865ce(0x11b)],messageTypes[_0x4865ce(0x131)],_0x128b60[_0x4865ce(0x12c)],null,_0x5d0148),process[_0x4865ce(0x132)](0x1));await _0x128b60['PhzYB'](sendInstrumentationEvent,_0x5d0148,_0x128b60[_0x4865ce(0x11b)],messageTypes[_0x4865ce(0x10f)],null,null,_0x5d0148);const _0x4678f4=JSON['parse'](fs['readFileSync'](_0x128b60[_0x4865ce(0x124)](getCredentialsPath))),_0x3032a3={'method':_0x128b60[_0x4865ce(0xfd)],'headers':_0x128b60[_0x4865ce(0x116)](getAuthHeader,_0x4678f4[_0x4865ce(0x147)][_0x4865ce(0x129)],_0x4678f4[_0x4865ce(0x147)][_0x4865ce(0x134)]),'throwHttpErrors':![]},_0x250e3=await _0x128b60['FlbGx'](got,_0x1830e4,_0x3032a3);if(_0x128b60[_0x4865ce(0x12a)](_0x250e3,null)&&_0x128b60['QEdzf'](_0x250e3,undefined)&&_0x128b60[_0x4865ce(0x13f)](_0x250e3[_0x4865ce(0x136)],0xc8)){const _0x345797=JSON['parse'](_0x250e3[_0x4865ce(0x127)]);console['log'](_0x128b60['QzJRz']),console[_0x4865ce(0x126)](_0x128b60[_0x4865ce(0x122)]),console['log'](_0x4865ce(0xf8)+_0x4678f4[_0x4865ce(0x147)][_0x4865ce(0x129)]),console[_0x4865ce(0x126)](_0x4865ce(0x11f)+_0x345797[_0x4865ce(0x10e)][_0x4865ce(0x139)]);const _0x4265ea=await _0x128b60[_0x4865ce(0x121)](inputConfirmation,_0x128b60['AbLlF']);(_0x128b60[_0x4865ce(0x13b)](_0x4265ea,undefined)||_0x128b60[_0x4865ce(0x10b)](_0x4265ea,null)||!(_0x128b60[_0x4865ce(0x13b)](_0x4265ea[_0x4865ce(0xf3)](),'y')||_0x128b60[_0x4865ce(0x112)](_0x4265ea['toLowerCase'](),'n')))&&(console[_0x4865ce(0xfb)](_0x128b60[_0x4865ce(0x111)]),await _0x128b60[_0x4865ce(0x106)](sendInstrumentationEvent,_0x5d0148,_0x128b60[_0x4865ce(0x11b)],messageTypes[_0x4865ce(0x131)],_0x128b60[_0x4865ce(0xf7)],null,_0x5d0148),process[_0x4865ce(0x132)](0x1));_0x128b60[_0x4865ce(0xf2)](_0x4265ea[_0x4865ce(0xf3)](),'n')&&process['exit'](0x0);console[_0x4865ce(0x126)](_0x128b60[_0x4865ce(0x110)]);const _0x1fd44a=_0x345797[_0x4865ce(0x146)][_0x4865ce(0x115)];for(let _0x109363=0x0;_0x128b60[_0x4865ce(0x114)](_0x109363,_0x1fd44a);_0x109363+=0x1){console[_0x4865ce(0x126)]('['+_0x128b60['XqHcT'](_0x109363,0x1)+']\x20'+_0x345797['list'][_0x109363][_0x4865ce(0x139)]);}const _0xa81509=await _0x128b60[_0x4865ce(0x121)](inputConfirmation,_0x128b60[_0x4865ce(0x145)]),_0x352967=_0x128b60[_0x4865ce(0x121)](Number,_0xa81509);(_0x128b60[_0x4865ce(0x121)](isNaN,_0x352967)||_0x128b60['Sgipx'](_0x352967,0x0)||_0x128b60[_0x4865ce(0x141)](_0x352967,_0x1fd44a))&&(console[_0x4865ce(0xfb)](_0x128b60[_0x4865ce(0x111)]),await _0x128b60[_0x4865ce(0xec)](sendInstrumentationEvent,_0x5d0148,_0x128b60['srCzB'],messageTypes[_0x4865ce(0x131)],_0x128b60['kOgpg'],null,_0x5d0148),process[_0x4865ce(0x132)](0x1));_0x128b60[_0x4865ce(0xf6)](closeInput);const _0x2f1132=_0x345797[_0x4865ce(0x146)][_0x128b60[_0x4865ce(0x128)](_0x352967,0x1)]['id'],_0x44f560={};_0x44f560['profileId']=_0x2f1132;const _0x4b12d2={'method':_0x128b60['FdOzZ'],'headers':_0x128b60[_0x4865ce(0x14d)](getAuthHeader,_0x4678f4['Browserstack'][_0x4865ce(0x129)],_0x4678f4['Browserstack']['password']),'json':_0x44f560,'responseType':_0x128b60[_0x4865ce(0x109)],'throwHttpErrors':![]},_0x51adb7=await _0x128b60['rKSId'](got,_0x1830e4,_0x4b12d2);_0x128b60[_0x4865ce(0x11d)](_0x51adb7,null)&&_0x128b60[_0x4865ce(0x11d)](_0x51adb7,undefined)&&_0x128b60[_0x4865ce(0xf0)](_0x51adb7[_0x4865ce(0x136)],0xc8)&&(console[_0x4865ce(0x126)](_0x128b60['vKcgb']),process[_0x4865ce(0x132)](0x0)),_0x128b60[_0x4865ce(0xf2)](_0x51adb7[_0x4865ce(0x136)],0x191)&&(console['error'](_0x128b60['dClBZ']),await _0x128b60['PhzYB'](sendInstrumentationEvent,_0x5d0148,_0x128b60[_0x4865ce(0x11b)],messageTypes[_0x4865ce(0x131)],_0x128b60[_0x4865ce(0x12d)],null,_0x5d0148),process[_0x4865ce(0x132)](0x1)),console[_0x4865ce(0xfb)]('Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20'+JSON[_0x4865ce(0x13c)](_0x51adb7)),await _0x128b60[_0x4865ce(0x106)](sendInstrumentationEvent,_0x5d0148,_0x128b60['srCzB'],messageTypes[_0x4865ce(0x131)],_0x128b60[_0x4865ce(0x118)],_0x51adb7,_0x5d0148),process['exit'](0x1);}_0x128b60[_0x4865ce(0x112)](_0x250e3['statusCode'],0x191)&&(console[_0x4865ce(0xfb)](_0x128b60[_0x4865ce(0xee)]),await _0x128b60['sYOFa'](sendInstrumentationEvent,_0x5d0148,_0x128b60[_0x4865ce(0x11b)],messageTypes['ERROR'],_0x128b60['IbbLx'],null,_0x5d0148),process[_0x4865ce(0x132)](0x1)),console['error'](_0x4865ce(0x12e)+JSON[_0x4865ce(0x13c)](_0x250e3)),await _0x128b60[_0x4865ce(0x14a)](sendInstrumentationEvent,_0x5d0148,_0x128b60[_0x4865ce(0x11b)],messageTypes[_0x4865ce(0x131)],_0x128b60[_0x4865ce(0x118)],_0x250e3,_0x5d0148),process[_0x4865ce(0x132)](0x1);}catch(_0x210a73){console['error']('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x210a73[_0x4865ce(0x143)]),await _0x128b60[_0x4865ce(0xec)](sendInstrumentationEvent,_0x5d0148,_0x128b60['srCzB'],messageTypes[_0x4865ce(0x131)],_0x128b60[_0x4865ce(0x14c)],_0x210a73,_0x5d0148),process[_0x4865ce(0x132)](0x1);}};
@@ -1 +1 @@
1
- const a6_0x131d88=a6_0x44f6;(function(_0x2c839a,_0x4e15df){const _0x4eacd3=a6_0x44f6,_0x59e1db=_0x2c839a();while(!![]){try{const _0x32bf38=-parseInt(_0x4eacd3(0x1a7))/0x1+parseInt(_0x4eacd3(0x19d))/0x2+parseInt(_0x4eacd3(0x19c))/0x3*(-parseInt(_0x4eacd3(0x1a2))/0x4)+-parseInt(_0x4eacd3(0x198))/0x5*(parseInt(_0x4eacd3(0x1a0))/0x6)+parseInt(_0x4eacd3(0x19b))/0x7*(-parseInt(_0x4eacd3(0x1ac))/0x8)+-parseInt(_0x4eacd3(0x196))/0x9*(-parseInt(_0x4eacd3(0x19a))/0xa)+parseInt(_0x4eacd3(0x1a8))/0xb;if(_0x32bf38===_0x4e15df)break;else _0x59e1db['push'](_0x59e1db['shift']());}catch(_0x8bc711){_0x59e1db['push'](_0x59e1db['shift']());}}}(a6_0x12fd,0x4a418));function a6_0x44f6(_0x35b4fa,_0x2982f7){const _0x12fdd7=a6_0x12fd();return a6_0x44f6=function(_0x44f63b,_0x277624){_0x44f63b=_0x44f63b-0x195;let _0x4c64b0=_0x12fdd7[_0x44f63b];return _0x4c64b0;},a6_0x44f6(_0x35b4fa,_0x2982f7);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a6_0x12fd(){const _0x5e0735=['zBQUL','desc','command','8xecSmn','demandCommand','971217UrAVUB','builder','12055hnNMBO','help','30IJbekB','2649003osysIC','195nLuxXI','893546oduRxy','handler','usage','606WIqGPx','commandDir','29364bnEQhx','LRErg','connect','epilogue','connect_commands','250054IVvjHt','9710789JyBeKc'];a6_0x12fd=function(){return _0x5e0735;};return a6_0x12fd();}exports[a6_0x131d88(0x1ab)]=a6_0x131d88(0x1a4),exports[a6_0x131d88(0x1aa)]='Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment',exports[a6_0x131d88(0x197)]=function(_0xef5184){const _0x2253d7=a6_0x131d88,_0x5cbaa8={};_0x5cbaa8[_0x2253d7(0x1a9)]=_0x2253d7(0x1a6),_0x5cbaa8[_0x2253d7(0x1a3)]='help';const _0x2f6726=_0x5cbaa8;return _0xef5184[_0x2253d7(0x19f)](HELP_HEADER_MESSAGE[_0x2253d7(0x1a4)])[_0x2253d7(0x1a5)](HELP_FOOTER_MESSAGE)[_0x2253d7(0x1a1)](_0x2f6726[_0x2253d7(0x1a9)])[_0x2253d7(0x195)]()['recommendCommands']()['strict']()[_0x2253d7(0x199)](_0x2f6726[_0x2253d7(0x1a3)]);},exports[a6_0x131d88(0x19e)]=function(_0x981ca3){};
1
+ const a6_0x1ddf97=a6_0x2f76;(function(_0x361a72,_0x2ec74f){const _0x20afb6=a6_0x2f76,_0x49aa82=_0x361a72();while(!![]){try{const _0x521dd6=-parseInt(_0x20afb6(0xa5))/0x1*(parseInt(_0x20afb6(0xae))/0x2)+parseInt(_0x20afb6(0xad))/0x3+-parseInt(_0x20afb6(0xb0))/0x4*(-parseInt(_0x20afb6(0xa4))/0x5)+parseInt(_0x20afb6(0xb3))/0x6*(parseInt(_0x20afb6(0xaa))/0x7)+-parseInt(_0x20afb6(0xa3))/0x8+parseInt(_0x20afb6(0xb4))/0x9+-parseInt(_0x20afb6(0xab))/0xa;if(_0x521dd6===_0x2ec74f)break;else _0x49aa82['push'](_0x49aa82['shift']());}catch(_0x4e9837){_0x49aa82['push'](_0x49aa82['shift']());}}}(a6_0xbe6d,0xc0c4c));function a6_0x2f76(_0x1935b1,_0x4830e9){const _0xbe6dd0=a6_0xbe6d();return a6_0x2f76=function(_0x2f7603,_0x5aa589){_0x2f7603=_0x2f7603-0xa1;let _0x37366c=_0xbe6dd0[_0x2f7603];return _0x37366c;},a6_0x2f76(_0x1935b1,_0x4830e9);}function a6_0xbe6d(){const _0x2c3beb=['13349763cMfSlU','../config/constants','demandCommand','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','QauPh','5229528upodbb','7351460lboKZx','1bMqsmT','handler','strict','help','connect_commands','610127zfFhwg','19415270PzSYSz','connect','1189887zNHeQz','2720012LEDGqK','commandDir','4vQTXJf','command','xYnHv','96kcHcKG'];a6_0xbe6d=function(){return _0x2c3beb;};return a6_0xbe6d();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x1ddf97(0xb5));exports[a6_0x1ddf97(0xb1)]='connect',exports['desc']=a6_0x1ddf97(0xa1),exports['builder']=function(_0x6b5d93){const _0x564b92=a6_0x1ddf97,_0x2950b3={};_0x2950b3[_0x564b92(0xb2)]=_0x564b92(0xa9),_0x2950b3[_0x564b92(0xa2)]=_0x564b92(0xa8);const _0x5c91c7=_0x2950b3;return _0x6b5d93['usage'](HELP_HEADER_MESSAGE[_0x564b92(0xac)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x564b92(0xaf)](_0x5c91c7[_0x564b92(0xb2)])[_0x564b92(0xb6)]()['recommendCommands']()[_0x564b92(0xa7)]()[_0x564b92(0xa8)](_0x5c91c7['QauPh']);},exports[a6_0x1ddf97(0xa6)]=function(_0x34fda5){};
@@ -1 +1 @@
1
- function a7_0x3a87(_0x564739,_0x5de547){const _0x57429f=a7_0x5742();return a7_0x3a87=function(_0x3a8797,_0x187082){_0x3a8797=_0x3a8797-0x146;let _0x753a95=_0x57429f[_0x3a8797];return _0x753a95;},a7_0x3a87(_0x564739,_0x5de547);}const a7_0x25d6c7=a7_0x3a87;(function(_0x775fe9,_0x27b7c9){const _0x1c79a4=a7_0x3a87,_0x1ca6a9=_0x775fe9();while(!![]){try{const _0x3d566d=-parseInt(_0x1c79a4(0x147))/0x1+-parseInt(_0x1c79a4(0x14f))/0x2*(parseInt(_0x1c79a4(0x198))/0x3)+parseInt(_0x1c79a4(0x172))/0x4*(parseInt(_0x1c79a4(0x1ad))/0x5)+parseInt(_0x1c79a4(0x15e))/0x6+-parseInt(_0x1c79a4(0x1a7))/0x7*(parseInt(_0x1c79a4(0x1aa))/0x8)+-parseInt(_0x1c79a4(0x18e))/0x9*(parseInt(_0x1c79a4(0x1a5))/0xa)+parseInt(_0x1c79a4(0x168))/0xb;if(_0x3d566d===_0x27b7c9)break;else _0x1ca6a9['push'](_0x1ca6a9['shift']());}catch(_0x37c972){_0x1ca6a9['push'](_0x1ca6a9['shift']());}}}(a7_0x5742,0xf19ea));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x25d6c7(0x171)),{logger}=require('../../config/logger'),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x25d6c7(0x149));function a7_0x5742(){const _0x12dc2f=['mtVgc','isTrialGrid','gridId','Ifzur','lJxtu','tgUvm','isRunning','kaDfP','nNwTB','1220GrJJPo','epilogue','7mZtEiD','HjGch','BzvGx','8984944bhosjd','jCukk','beforeExit','5365rvJzmx','qqYcH','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','1691136pnZclo','DDUrb','../../utils/utilityMethods','Pass\x20the\x20ID\x20of\x20the\x20Grid','browserStackLocalOptions','PNyXg','advance-options','smvhC','1486164TdUnqg','ImRSp','cvWOn','hgnRx','GzNrJ','JVPVN','GyFPt','imPaD','ImNvx','xwhqX','lAiDT','error','NXiVi','accessKey','SIGTERM','11010222yhSDnr','info','MtlkS','nmlrv','description','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.','poHWo','bstack-accesskey','zyumx','peocL','22930710fsKcSI','TEfkZ','LZVMz','UblMk','customRepeaters','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','create','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','IiNOD','../../config/constants','4132odvPjt','nSYDt','FQLeR','mMWBS','Advance\x20options\x20for\x20Browserstack\x20Local','OitKo','XbVFt','argv','ZWwRu','IPBwO','usage','njovS','help','LiCaM','nyBYY','bstackUsername','handler','FhYnu','VvliD','command','SIGINT','grid','exit','xGTob','JrfMH','Grid\x20type:\x20Trial','string','type','35487LDolGz','true','iANQj','use-staging','eVqYQ','DLoUB','builder','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','options','bstack-username','3jLgaur','vBagt','advanceOptions','demandOption'];a7_0x5742=function(){return _0x12dc2f;};return a7_0x5742();}exports[a7_0x25d6c7(0x185)]=a7_0x25d6c7(0x187),exports['desc']='This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC',exports[a7_0x25d6c7(0x194)]=_0x24f5f0=>{const _0x8078d5=a7_0x25d6c7,_0x1f1937={};_0x1f1937[_0x8078d5(0x169)]=_0x8078d5(0x16d),_0x1f1937[_0x8078d5(0x17d)]=_0x8078d5(0x18c),_0x1f1937[_0x8078d5(0x177)]=_0x8078d5(0x146),_0x1f1937[_0x8078d5(0x17a)]=_0x8078d5(0x14a),_0x1f1937['BzvGx']=_0x8078d5(0x16f),_0x1f1937[_0x8078d5(0x150)]=_0x8078d5(0x176),_0x1f1937[_0x8078d5(0x199)]=_0x8078d5(0x17e);const _0x1909be=_0x1f1937,_0x5f16d4={};_0x5f16d4[_0x8078d5(0x162)]=_0x1909be[_0x8078d5(0x169)],_0x5f16d4[_0x8078d5(0x18d)]=_0x1909be[_0x8078d5(0x17d)];const _0x3be5ad={};_0x3be5ad[_0x8078d5(0x162)]=_0x1909be[_0x8078d5(0x177)],_0x3be5ad['type']=_0x1909be[_0x8078d5(0x17d)];const _0x269c4c={};_0x269c4c[_0x8078d5(0x19b)]=!![],_0x269c4c[_0x8078d5(0x162)]=_0x1909be[_0x8078d5(0x17a)],_0x269c4c[_0x8078d5(0x18d)]=_0x1909be['njovS'];const _0x420688={};_0x420688[_0x8078d5(0x162)]=_0x1909be[_0x8078d5(0x1a9)],_0x420688[_0x8078d5(0x18d)]=_0x1909be[_0x8078d5(0x17d)];const _0xf14675={};_0xf14675[_0x8078d5(0x162)]=_0x1909be[_0x8078d5(0x150)],_0xf14675[_0x8078d5(0x18d)]=_0x1909be[_0x8078d5(0x17d)];const _0x3a28a1={};return _0x3a28a1[_0x8078d5(0x197)]=_0x5f16d4,_0x3a28a1[_0x8078d5(0x165)]=_0x3be5ad,_0x3a28a1['grid-id']=_0x269c4c,_0x3a28a1[_0x8078d5(0x191)]=_0x420688,_0x3a28a1[_0x8078d5(0x14d)]=_0xf14675,_0x24f5f0['usage'](HELP_HEADER_MESSAGE[_0x8078d5(0x16e)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x8078d5(0x196)](_0x3a28a1)[_0x8078d5(0x17e)](_0x1909be[_0x8078d5(0x199)])[_0x8078d5(0x179)];},exports[a7_0x25d6c7(0x182)]=async _0xa5c881=>{const _0x3bd8fc=a7_0x25d6c7,_0xe734d2={'nSYDt':function(_0x496009,_0x3a16bc){return _0x496009(_0x3a16bc);},'nmlrv':_0x3bd8fc(0x195),'cvWOn':function(_0x51efe7,_0x342a8f){return _0x51efe7!==_0x342a8f;},'jCukk':'tVHsZ','iANQj':_0x3bd8fc(0x17b),'DLoUB':function(_0x209c97,_0x2f45fe){return _0x209c97===_0x2f45fe;},'FQLeR':function(_0x677239,_0x34cf89){return _0x677239(_0x34cf89);},'nNwTB':_0x3bd8fc(0x18b),'YdPyp':function(_0x57ae4d,_0x326341){return _0x57ae4d(_0x326341);},'GKovQ':_0x3bd8fc(0x1ac),'mtVgc':_0x3bd8fc(0x186),'UblMk':_0x3bd8fc(0x15d),'imPaD':_0x3bd8fc(0x163),'DDUrb':function(_0x2e845d,_0x173028){return _0x2e845d(_0x173028);},'FhYnu':'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','NXiVi':function(_0x22e0e2,_0x24198b){return _0x22e0e2(_0x24198b);},'LiCaM':function(_0x4a0a73,_0x4d08be){return _0x4a0a73(_0x4d08be);},'PNyXg':_0x3bd8fc(0x16d),'lAiDT':_0x3bd8fc(0x18c),'zyumx':_0x3bd8fc(0x146),'lJxtu':_0x3bd8fc(0x14a),'xwhqX':_0x3bd8fc(0x16f),'xGTob':_0x3bd8fc(0x176),'TpRxh':'help','poHWo':function(_0x1eed3b,_0x88d195){return _0x1eed3b===_0x88d195;},'OEFXw':'lEoLU','ImNvx':function(_0x4accfa,_0x3fc25a){return _0x4accfa===_0x3fc25a;},'uBcha':function(_0x469016,_0x498851){return _0x469016(_0x498851);},'IiNOD':function(_0x3cfd75,_0xba3589){return _0x3cfd75(_0xba3589);},'mMWBS':'Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','JrfMH':function(_0x48bc8b,_0x54e7b5,_0x2f16ff){return _0x48bc8b(_0x54e7b5,_0x2f16ff);},'GyFPt':function(_0x3470ec,_0x3da471){return _0x3470ec&&_0x3da471;},'Ifzur':function(_0x1ccd4c,_0x41745c){return _0x1ccd4c!==_0x41745c;},'BvrBM':_0x3bd8fc(0x16a),'YZODS':'xCDQy','nDOBh':function(_0x380a5a,_0x52d155,_0x32df8f,_0x575674){return _0x380a5a(_0x52d155,_0x32df8f,_0x575674);},'hgnRx':_0x3bd8fc(0x1a1),'GzNrJ':function(_0x5db392,_0x54ebc6){return _0x5db392(_0x54ebc6);},'peocL':_0x3bd8fc(0x18f),'eVqYQ':function(_0x53288e,_0x26c49e){return _0x53288e!==_0x26c49e;},'VvliD':_0x3bd8fc(0x178),'nyBYY':_0x3bd8fc(0x160),'qqYcH':function(_0x5bb8f1,_0x10f091){return _0x5bb8f1(_0x10f091);},'JVPVN':_0x3bd8fc(0x1a3)};let _0x38b659=_0xa5c881[_0x3bd8fc(0x181)],_0x4b6aab=_0xa5c881['bstackAccesskey'];const _0x30a63d=_0xa5c881[_0x3bd8fc(0x19a)],_0x392060=_0x5bf05f=>{const _0x52bd49=_0x3bd8fc;_0xe734d2[_0x52bd49(0x151)](_0xe734d2[_0x52bd49(0x1ab)],_0xe734d2[_0x52bd49(0x190)])?(logger[_0x52bd49(0x15a)](_0x5bf05f),process[_0x52bd49(0x188)](0x1)):_0xe734d2[_0x52bd49(0x173)](_0xe52b2c,_0xe734d2['nmlrv']);};[_0x38b659,_0x4b6aab]=_0xe734d2[_0x3bd8fc(0x18a)](fetchOrUpdateUserConfig,_0x38b659,_0x4b6aab);if(!_0xe734d2[_0x3bd8fc(0x155)](_0x38b659,_0x4b6aab)){if(_0xe734d2[_0x3bd8fc(0x19f)](_0xe734d2['BvrBM'],_0xe734d2['YZODS']))_0xe734d2[_0x3bd8fc(0x17f)](_0x392060,_0xe734d2[_0x3bd8fc(0x161)]);else{let _0x54cca8=_0xe734d2['nNwTB'];_0x3121b9[_0x3bd8fc(0x15f)](_0x54cca8);try{const _0x59844f={};_0x59844f[_0x3bd8fc(0x15c)]=_0x47f773,_0x59844f[_0x3bd8fc(0x16c)]=_0x4187a6[_0x3bd8fc(0x16c)],_0x59844f[_0x3bd8fc(0x14b)]=_0x269dc9;const _0x5023cf=_0x59844f,_0x261e70=_0xe734d2['YdPyp'](_0x3a69ec,_0x5023cf);let _0x536de7=0x0;const _0x192475=async()=>{const _0x40cfee=_0x3bd8fc;_0x536de7++,_0xe734d2[_0x40cfee(0x193)](_0x536de7,0x1)&&_0x261e70&&_0x261e70[_0x40cfee(0x1a2)]()&&_0xe734d2[_0x40cfee(0x174)](_0xc20380,_0x261e70);};_0x4a2ed3['on'](_0xe734d2['GKovQ'],_0x192475),_0x4348eb['on'](_0xe734d2[_0x3bd8fc(0x19c)],_0x192475),_0x52469e['on'](_0xe734d2[_0x3bd8fc(0x16b)],_0x192475),_0x54cca8=_0xe734d2[_0x3bd8fc(0x156)],_0x86850e[_0x3bd8fc(0x15f)](_0x54cca8);}catch(_0x31f0e4){_0xe734d2[_0x3bd8fc(0x148)](_0x470758,_0xe734d2['FhYnu']);}}}const _0x6b8a1c=_0xa5c881[_0x3bd8fc(0x19e)],[_0x402c3f,_0x421046]=await _0xe734d2['nDOBh'](getGridDetails,_0x38b659,_0x4b6aab,_0x6b8a1c);if(!_0x421046){if(_0xe734d2[_0x3bd8fc(0x19f)](_0xe734d2[_0x3bd8fc(0x152)],_0xe734d2['hgnRx'])){const _0x338754={};_0x338754[_0x3bd8fc(0x15c)]=_0x248ee1,_0x338754[_0x3bd8fc(0x16c)]=_0x39c9cf['customRepeaters'],_0x338754[_0x3bd8fc(0x14b)]=_0x377dab;const _0x429681=_0x338754,_0x2ac36a=_0xe734d2[_0x3bd8fc(0x17f)](_0x49a528,_0x429681);let _0x433538=0x0;const _0x81b6f0=async()=>{const _0x4a25d2=_0x3bd8fc;_0x433538++,_0xe734d2['DLoUB'](_0x433538,0x1)&&_0x2ac36a&&_0x2ac36a['isRunning']()&&_0xe734d2[_0x4a25d2(0x15b)](_0x509c5b,_0x2ac36a);};_0x4f563e['on'](_0xe734d2['GKovQ'],_0x81b6f0),_0xfe3364['on'](_0xe734d2[_0x3bd8fc(0x19c)],_0x81b6f0),_0x132142['on'](_0xe734d2[_0x3bd8fc(0x16b)],_0x81b6f0),_0x4359d6=_0xe734d2[_0x3bd8fc(0x156)],_0xe700c8[_0x3bd8fc(0x15f)](_0x2a2f19);}else _0xe734d2[_0x3bd8fc(0x153)](_0x392060,_0xe734d2[_0x3bd8fc(0x175)]);}const _0x51e709=_0xe734d2[_0x3bd8fc(0x193)](_0xa5c881['useStaging'],_0xe734d2[_0x3bd8fc(0x167)])?!![]:![];if(_0x421046&&_0x421046[_0x3bd8fc(0x19d)]&&_0x51e709){if(_0xe734d2[_0x3bd8fc(0x192)](_0xe734d2[_0x3bd8fc(0x184)],_0xe734d2[_0x3bd8fc(0x184)])){const _0x24b408={};_0x24b408[_0x3bd8fc(0x162)]=_0xe734d2[_0x3bd8fc(0x14c)],_0x24b408[_0x3bd8fc(0x18d)]=_0xe734d2[_0x3bd8fc(0x159)];const _0x5431d1={};_0x5431d1[_0x3bd8fc(0x162)]=_0xe734d2[_0x3bd8fc(0x166)],_0x5431d1[_0x3bd8fc(0x18d)]=_0xe734d2[_0x3bd8fc(0x159)];const _0x5179f7={};_0x5179f7['demandOption']=!![],_0x5179f7[_0x3bd8fc(0x162)]=_0xe734d2[_0x3bd8fc(0x1a0)],_0x5179f7[_0x3bd8fc(0x18d)]=_0xe734d2[_0x3bd8fc(0x159)];const _0x5a7478={};_0x5a7478[_0x3bd8fc(0x162)]=_0xe734d2[_0x3bd8fc(0x158)],_0x5a7478[_0x3bd8fc(0x18d)]=_0xe734d2[_0x3bd8fc(0x159)];const _0x1ac551={};_0x1ac551[_0x3bd8fc(0x162)]=_0xe734d2[_0x3bd8fc(0x189)],_0x1ac551['type']=_0xe734d2['lAiDT'];const _0x321e5e={};return _0x321e5e[_0x3bd8fc(0x197)]=_0x24b408,_0x321e5e[_0x3bd8fc(0x165)]=_0x5431d1,_0x321e5e['grid-id']=_0x5179f7,_0x321e5e[_0x3bd8fc(0x191)]=_0x5a7478,_0x321e5e['advance-options']=_0x1ac551,_0x32abe3[_0x3bd8fc(0x17c)](_0x7bd4e5['create'])[_0x3bd8fc(0x1a6)](_0x5f5da6)[_0x3bd8fc(0x196)](_0x321e5e)[_0x3bd8fc(0x17e)](_0xe734d2['TpRxh'])['argv'];}else{let _0x23a77e=_0xe734d2[_0x3bd8fc(0x1a4)];logger[_0x3bd8fc(0x15f)](_0x23a77e);try{if(_0xe734d2[_0x3bd8fc(0x192)](_0xe734d2[_0x3bd8fc(0x180)],_0xe734d2['nyBYY']))_0x42aa32[_0x3bd8fc(0x15a)](_0x3c4efc),_0x61c6dd[_0x3bd8fc(0x188)](0x1);else{const _0x1af91b={};_0x1af91b[_0x3bd8fc(0x15c)]=_0x4b6aab,_0x1af91b[_0x3bd8fc(0x16c)]=_0x421046[_0x3bd8fc(0x16c)],_0x1af91b[_0x3bd8fc(0x14b)]=_0x30a63d;const _0x188a77=_0x1af91b,_0x59dd65=_0xe734d2[_0x3bd8fc(0x1ae)](startLocalBinarySync,_0x188a77);let _0x5809f1=0x0;const _0x307c8a=async()=>{const _0xe9c84=_0x3bd8fc,_0x5750fd={'smvhC':function(_0x3ef07f,_0x34b447){const _0x11065b=a7_0x3a87;return _0xe734d2[_0x11065b(0x193)](_0x3ef07f,_0x34b447);},'HjGch':function(_0x23dd00,_0x4e295c){const _0x4e5047=a7_0x3a87;return _0xe734d2[_0x4e5047(0x15b)](_0x23dd00,_0x4e295c);}};_0xe734d2[_0xe9c84(0x164)](_0xe734d2['OEFXw'],_0xe734d2['OEFXw'])?(_0x5809f1++,_0xe734d2[_0xe9c84(0x157)](_0x5809f1,0x1)&&_0x59dd65&&_0x59dd65[_0xe9c84(0x1a2)]()&&_0xe734d2['uBcha'](stopLocalBinary,_0x59dd65)):(_0x1d562b++,_0x5750fd[_0xe9c84(0x14e)](_0x3f9933,0x1)&&_0x559ccb&&_0x135c30[_0xe9c84(0x1a2)]()&&_0x5750fd[_0xe9c84(0x1a8)](_0x44c59d,_0x3caec5));};process['on'](_0xe734d2['GKovQ'],_0x307c8a),process['on'](_0xe734d2[_0x3bd8fc(0x19c)],_0x307c8a),process['on'](_0xe734d2['UblMk'],_0x307c8a),_0x23a77e=_0xe734d2[_0x3bd8fc(0x156)],logger['info'](_0x23a77e);}}catch(_0x480e2b){_0xe734d2[_0x3bd8fc(0x157)](_0xe734d2[_0x3bd8fc(0x154)],_0xe734d2[_0x3bd8fc(0x154)])?_0xe734d2['qqYcH'](_0x392060,_0xe734d2[_0x3bd8fc(0x183)]):_0xe734d2[_0x3bd8fc(0x170)](_0x437485,_0xe734d2['mMWBS']);}}}process['exit'](0x0);};
1
+ const a7_0x5d8c31=a7_0x57db;(function(_0x4f6cb6,_0x12d8a6){const _0x37abb6=a7_0x57db,_0x4eb245=_0x4f6cb6();while(!![]){try{const _0xb75b8f=-parseInt(_0x37abb6(0x1da))/0x1+parseInt(_0x37abb6(0x1f0))/0x2*(-parseInt(_0x37abb6(0x1ed))/0x3)+-parseInt(_0x37abb6(0x23a))/0x4*(parseInt(_0x37abb6(0x203))/0x5)+-parseInt(_0x37abb6(0x23d))/0x6*(parseInt(_0x37abb6(0x207))/0x7)+parseInt(_0x37abb6(0x20f))/0x8+-parseInt(_0x37abb6(0x22d))/0x9+-parseInt(_0x37abb6(0x21e))/0xa*(-parseInt(_0x37abb6(0x209))/0xb);if(_0xb75b8f===_0x12d8a6)break;else _0x4eb245['push'](_0x4eb245['shift']());}catch(_0x170ce2){_0x4eb245['push'](_0x4eb245['shift']());}}}(a7_0x1914,0xbaa23));function a7_0x57db(_0x317a89,_0x389f89){const _0x1914d0=a7_0x1914();return a7_0x57db=function(_0x57db99,_0x53e46b){_0x57db99=_0x57db99-0x1d9;let _0x3c3b7d=_0x1914d0[_0x57db99];return _0x3c3b7d;},a7_0x57db(_0x317a89,_0x389f89);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x5d8c31(0x211)),{logger}=require(a7_0x5d8c31(0x1ff)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x5d8c31(0x1fb));exports['command']=a7_0x5d8c31(0x21a),exports[a7_0x5d8c31(0x20e)]='This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC',exports[a7_0x5d8c31(0x1df)]=_0x544292=>{const _0x4c05c8=a7_0x5d8c31,_0x941724={};_0x941724[_0x4c05c8(0x1ef)]=_0x4c05c8(0x202),_0x941724[_0x4c05c8(0x20a)]=_0x4c05c8(0x23f),_0x941724[_0x4c05c8(0x246)]=_0x4c05c8(0x230),_0x941724[_0x4c05c8(0x221)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x941724[_0x4c05c8(0x23e)]=_0x4c05c8(0x243),_0x941724['EdNhO']=_0x4c05c8(0x1e1),_0x941724[_0x4c05c8(0x23b)]=_0x4c05c8(0x223);const _0x552e28=_0x941724,_0x5d3a89={};_0x5d3a89[_0x4c05c8(0x228)]=_0x552e28[_0x4c05c8(0x1ef)],_0x5d3a89[_0x4c05c8(0x215)]=_0x552e28[_0x4c05c8(0x20a)];const _0x4879d9={};_0x4879d9['description']=_0x552e28[_0x4c05c8(0x246)],_0x4879d9[_0x4c05c8(0x215)]=_0x552e28[_0x4c05c8(0x20a)];const _0x5d5a45={};_0x5d5a45[_0x4c05c8(0x1e3)]=!![],_0x5d5a45[_0x4c05c8(0x228)]=_0x552e28['EgHSG'],_0x5d5a45['type']=_0x552e28[_0x4c05c8(0x20a)];const _0x4af081={};_0x4af081[_0x4c05c8(0x228)]=_0x552e28[_0x4c05c8(0x23e)],_0x4af081['type']=_0x552e28['KBMDZ'];const _0x44e79c={};_0x44e79c[_0x4c05c8(0x228)]=_0x552e28[_0x4c05c8(0x217)],_0x44e79c[_0x4c05c8(0x215)]=_0x552e28[_0x4c05c8(0x20a)];const _0x4f48b7={};return _0x4f48b7['bstack-username']=_0x5d3a89,_0x4f48b7[_0x4c05c8(0x214)]=_0x4879d9,_0x4f48b7['grid-id']=_0x5d5a45,_0x4f48b7[_0x4c05c8(0x227)]=_0x4af081,_0x4f48b7[_0x4c05c8(0x20c)]=_0x44e79c,_0x544292['usage'](HELP_HEADER_MESSAGE[_0x4c05c8(0x245)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4c05c8(0x219)](_0x4f48b7)[_0x4c05c8(0x223)](_0x552e28[_0x4c05c8(0x23b)])[_0x4c05c8(0x226)];},exports[a7_0x5d8c31(0x1f8)]=async _0x4b4bd5=>{const _0x156cf6=a7_0x5d8c31,_0x2d3e25={'saZrW':function(_0x3ddb75,_0x2d00d9){return _0x3ddb75===_0x2d00d9;},'hZSkD':function(_0x58f09c,_0x140ae3){return _0x58f09c(_0x140ae3);},'zCPvm':_0x156cf6(0x1f9),'Xtihb':_0x156cf6(0x1f7),'aTrfU':function(_0x2e65c8,_0x1c90d0){return _0x2e65c8(_0x1c90d0);},'uvFIE':'Grid\x20type:\x20Trial','VoonS':function(_0x5d6ee5,_0x22bdb9){return _0x5d6ee5(_0x22bdb9);},'jczpW':_0x156cf6(0x212),'NKgWo':_0x156cf6(0x241),'ZUhmF':'SIGTERM','XlsAn':_0x156cf6(0x21b),'adsSc':_0x156cf6(0x1e6),'rTzoZ':_0x156cf6(0x202),'RzAUF':_0x156cf6(0x23f),'qwSeH':_0x156cf6(0x230),'UGitG':_0x156cf6(0x238),'bxGZL':_0x156cf6(0x243),'IXDtm':_0x156cf6(0x1e1),'IziJt':'help','ozViw':_0x156cf6(0x1f5),'nWSQe':'caGVb','uZmKL':_0x156cf6(0x1eb),'eRGoe':function(_0x301551,_0x53cd3f,_0x20a3b9){return _0x301551(_0x53cd3f,_0x20a3b9);},'XwFVw':function(_0x58f7e1,_0x85f0b5){return _0x58f7e1&&_0x85f0b5;},'QQkTO':function(_0x1c3589,_0x12a460){return _0x1c3589!==_0x12a460;},'BNSNT':_0x156cf6(0x1f1),'WBvGE':_0x156cf6(0x201),'mCHtl':function(_0x2afa76,_0x14da4b,_0x1fe268,_0xed38a2){return _0x2afa76(_0x14da4b,_0x1fe268,_0xed38a2);},'gXbZI':function(_0x4c2038,_0x1e34e6){return _0x4c2038===_0x1e34e6;},'CUVOp':_0x156cf6(0x1fa),'MwfQp':_0x156cf6(0x1de),'DHfdp':function(_0x4e4884,_0x3f8b0d){return _0x4e4884(_0x3f8b0d);},'uStMl':_0x156cf6(0x21f),'EXUie':_0x156cf6(0x21d),'LWTHn':function(_0x761a8e,_0x3c80d9){return _0x761a8e!==_0x3c80d9;},'nVDZr':_0x156cf6(0x200),'sTNmj':function(_0x53f963,_0x1fc64f){return _0x53f963===_0x1fc64f;},'IvJBj':_0x156cf6(0x23c),'pbMSa':function(_0x5b712f,_0x4de81e){return _0x5b712f!==_0x4de81e;},'BOVuc':'iZrRZ'};let _0x42ab1e=_0x4b4bd5[_0x156cf6(0x225)],_0x539c64=_0x4b4bd5[_0x156cf6(0x22c)];const _0x18ff09=_0x4b4bd5[_0x156cf6(0x22b)],_0x2fa09a=_0x205124=>{const _0x4866fc=_0x156cf6,_0x96e877={'dERxO':function(_0x2091d2,_0x3de077){return _0x2d3e25['saZrW'](_0x2091d2,_0x3de077);},'NnddH':function(_0x485bef,_0x1e6e93){const _0x562bbb=a7_0x57db;return _0x2d3e25[_0x562bbb(0x210)](_0x485bef,_0x1e6e93);}};_0x2d3e25[_0x4866fc(0x22f)](_0x2d3e25[_0x4866fc(0x1f4)],_0x2d3e25[_0x4866fc(0x1e5)])?(_0x1fc377++,_0x96e877[_0x4866fc(0x1e7)](_0x1c1ad0,0x1)&&_0x45722f&&_0x3324d0[_0x4866fc(0x20b)]()&&_0x96e877[_0x4866fc(0x1f3)](_0x59f143,_0x44592b)):(logger[_0x4866fc(0x21c)](_0x205124),process[_0x4866fc(0x1ea)](0x1));};[_0x42ab1e,_0x539c64]=_0x2d3e25[_0x156cf6(0x222)](fetchOrUpdateUserConfig,_0x42ab1e,_0x539c64);if(!_0x2d3e25[_0x156cf6(0x1ee)](_0x42ab1e,_0x539c64)){if(_0x2d3e25[_0x156cf6(0x234)](_0x2d3e25[_0x156cf6(0x208)],_0x2d3e25[_0x156cf6(0x1dd)]))_0x2d3e25[_0x156cf6(0x237)](_0x2fa09a,_0x2d3e25[_0x156cf6(0x1e4)]);else{let _0x5d37ae=_0x2d3e25[_0x156cf6(0x218)];_0xf0d4f8[_0x156cf6(0x239)](_0x5d37ae);try{const _0x3c937c={};_0x3c937c[_0x156cf6(0x1e2)]=_0x55d56f,_0x3c937c['customRepeaters']=_0x4886ee[_0x156cf6(0x244)],_0x3c937c['browserStackLocalOptions']=_0x422598;const _0x4d417b=_0x3c937c,_0x3915a7=_0x2d3e25[_0x156cf6(0x229)](_0x393764,_0x4d417b);let _0x902186=0x0;const _0x34d804=async()=>{const _0x5efa03=_0x156cf6;_0x902186++,_0x2d3e25[_0x5efa03(0x22f)](_0x902186,0x1)&&_0x3915a7&&_0x3915a7[_0x5efa03(0x20b)]()&&_0x2d3e25[_0x5efa03(0x237)](_0x3299f5,_0x3915a7);};_0x27b338['on'](_0x2d3e25[_0x156cf6(0x1f2)],_0x34d804),_0x282b4d['on'](_0x2d3e25[_0x156cf6(0x204)],_0x34d804),_0x265ade['on'](_0x2d3e25[_0x156cf6(0x1d9)],_0x34d804),_0x5d37ae=_0x2d3e25['XlsAn'],_0xc6b567[_0x156cf6(0x239)](_0x5d37ae);}catch(_0x232ddc){_0x2d3e25[_0x156cf6(0x237)](_0x342971,_0x2d3e25[_0x156cf6(0x216)]);}}}const _0x519710=_0x4b4bd5['gridId'],[_0x1e9870,_0x49579c]=await _0x2d3e25['mCHtl'](getGridDetails,_0x42ab1e,_0x539c64,_0x519710);if(!_0x49579c){if(_0x2d3e25[_0x156cf6(0x240)](_0x2d3e25['CUVOp'],_0x2d3e25[_0x156cf6(0x206)])){const _0x1ce8e4={};_0x1ce8e4[_0x156cf6(0x228)]=_0x2d3e25[_0x156cf6(0x224)],_0x1ce8e4['type']=_0x2d3e25['RzAUF'];const _0x2e3a48={};_0x2e3a48[_0x156cf6(0x228)]=_0x2d3e25[_0x156cf6(0x233)],_0x2e3a48['type']=_0x2d3e25[_0x156cf6(0x1db)];const _0x48be5e={};_0x48be5e[_0x156cf6(0x1e3)]=!![],_0x48be5e[_0x156cf6(0x228)]=_0x2d3e25['UGitG'],_0x48be5e['type']=_0x2d3e25[_0x156cf6(0x1db)];const _0x595f3d={};_0x595f3d['description']=_0x2d3e25[_0x156cf6(0x1fd)],_0x595f3d['type']=_0x2d3e25[_0x156cf6(0x1db)];const _0x173935={};_0x173935[_0x156cf6(0x228)]=_0x2d3e25['IXDtm'],_0x173935[_0x156cf6(0x215)]=_0x2d3e25['RzAUF'];const _0x4f6336={};return _0x4f6336[_0x156cf6(0x1fe)]=_0x1ce8e4,_0x4f6336[_0x156cf6(0x214)]=_0x2e3a48,_0x4f6336[_0x156cf6(0x220)]=_0x48be5e,_0x4f6336[_0x156cf6(0x227)]=_0x595f3d,_0x4f6336[_0x156cf6(0x20c)]=_0x173935,_0x1cdba2['usage'](_0x231222['create'])[_0x156cf6(0x205)](_0x49ab44)['options'](_0x4f6336)[_0x156cf6(0x223)](_0x2d3e25['IziJt'])['argv'];}else _0x2d3e25[_0x156cf6(0x22e)](_0x2fa09a,_0x2d3e25[_0x156cf6(0x231)]);}const _0x246da5=_0x2d3e25['saZrW'](_0x4b4bd5[_0x156cf6(0x235)],_0x2d3e25[_0x156cf6(0x242)])?!![]:![];if(_0x49579c&&_0x49579c[_0x156cf6(0x1f6)]&&_0x246da5){if(_0x2d3e25[_0x156cf6(0x1fc)](_0x2d3e25[_0x156cf6(0x1e0)],_0x2d3e25[_0x156cf6(0x1e0)]))_0x2d3e25[_0x156cf6(0x237)](_0x543b2f,_0x2d3e25[_0x156cf6(0x216)]);else{let _0x2d78f5=_0x2d3e25['uvFIE'];logger[_0x156cf6(0x239)](_0x2d78f5);try{if(_0x2d3e25['sTNmj'](_0x2d3e25[_0x156cf6(0x1ec)],_0x2d3e25[_0x156cf6(0x1ec)])){const _0x5cd109={};_0x5cd109['accessKey']=_0x539c64,_0x5cd109[_0x156cf6(0x244)]=_0x49579c['customRepeaters'],_0x5cd109['browserStackLocalOptions']=_0x18ff09;const _0x10f0bb=_0x5cd109,_0x596229=_0x2d3e25[_0x156cf6(0x210)](startLocalBinarySync,_0x10f0bb);let _0x5d540e=0x0;const _0x3aed91=async()=>{const _0x1dbab1=_0x156cf6,_0x33048b={'OlFpT':function(_0x12d006,_0xd5304b){const _0x2dced9=a7_0x57db;return _0x2d3e25[_0x2dced9(0x22f)](_0x12d006,_0xd5304b);},'kKMas':function(_0x13d5c7,_0x5c83ba){const _0x291107=a7_0x57db;return _0x2d3e25[_0x291107(0x210)](_0x13d5c7,_0x5c83ba);}};if(_0x2d3e25[_0x1dbab1(0x22f)](_0x2d3e25[_0x1dbab1(0x236)],_0x2d3e25[_0x1dbab1(0x213)])){const _0x4688e4={};_0x4688e4[_0x1dbab1(0x1e2)]=_0x3a22d2,_0x4688e4[_0x1dbab1(0x244)]=_0x381401[_0x1dbab1(0x244)],_0x4688e4[_0x1dbab1(0x1e9)]=_0x547014;const _0x3b7dd4=_0x4688e4,_0x2a165a=_0x2d3e25[_0x1dbab1(0x237)](_0x41e548,_0x3b7dd4);let _0x582ce4=0x0;const _0x2dbcf3=async()=>{const _0x12ef8f=_0x1dbab1;_0x582ce4++,_0x33048b[_0x12ef8f(0x1dc)](_0x582ce4,0x1)&&_0x2a165a&&_0x2a165a[_0x12ef8f(0x20b)]()&&_0x33048b[_0x12ef8f(0x1e8)](_0x31deff,_0x2a165a);};_0x1d2ec1['on'](_0x2d3e25[_0x1dbab1(0x1f2)],_0x2dbcf3),_0x541c57['on'](_0x2d3e25[_0x1dbab1(0x204)],_0x2dbcf3),_0x55ec46['on'](_0x2d3e25[_0x1dbab1(0x1d9)],_0x2dbcf3),_0xcf5dfe=_0x2d3e25['XlsAn'],_0x42f8ed[_0x1dbab1(0x239)](_0x2925aa);}else _0x5d540e++,_0x2d3e25[_0x1dbab1(0x22f)](_0x5d540e,0x1)&&_0x596229&&_0x596229['isRunning']()&&_0x2d3e25[_0x1dbab1(0x210)](stopLocalBinary,_0x596229);};process['on'](_0x2d3e25['jczpW'],_0x3aed91),process['on'](_0x2d3e25['NKgWo'],_0x3aed91),process['on'](_0x2d3e25[_0x156cf6(0x1d9)],_0x3aed91),_0x2d78f5=_0x2d3e25[_0x156cf6(0x20d)],logger['info'](_0x2d78f5);}else _0x2d3e25[_0x156cf6(0x210)](_0x157fb0,_0x2d3e25['uZmKL']);}catch(_0x6e7b9c){_0x2d3e25[_0x156cf6(0x22a)](_0x2d3e25[_0x156cf6(0x232)],_0x2d3e25['BOVuc'])?(_0x4bdf2a[_0x156cf6(0x21c)](_0x3900f5),_0x41c879[_0x156cf6(0x1ea)](0x1)):_0x2d3e25[_0x156cf6(0x22e)](_0x2fa09a,_0x2d3e25[_0x156cf6(0x216)]);}}}process['exit'](0x0);};function a7_0x1914(){const _0x34811c=['200TjGPaY','NKgWo','epilogue','MwfQp','70pnhBCD','BNSNT','1056UkQIuz','KBMDZ','isRunning','advance-options','XlsAn','desc','4520512bivzAL','hZSkD','../../config/constants','beforeExit','nWSQe','bstack-accesskey','type','adsSc','EdNhO','uvFIE','options','grid','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.','error','true','320900kDfIyL','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','grid-id','EgHSG','eRGoe','help','rTzoZ','bstackUsername','argv','use-staging','description','VoonS','pbMSa','advanceOptions','bstackAccesskey','1077093PRRDfM','DHfdp','saZrW','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','uStMl','BOVuc','qwSeH','QQkTO','useStaging','ozViw','aTrfU','Pass\x20the\x20ID\x20of\x20the\x20Grid','info','111116QFiQdA','TUkFV','AVlzb','152094vMeThL','cSmeo','string','gXbZI','SIGINT','EXUie','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','customRepeaters','create','DTbTc','ZUhmF','665667Mblsub','RzAUF','OlFpT','WBvGE','xxlAS','builder','nVDZr','Advance\x20options\x20for\x20Browserstack\x20Local','accessKey','demandOption','uZmKL','Xtihb','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','dERxO','kKMas','browserStackLocalOptions','exit','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','IvJBj','2193777EPWxSd','XwFVw','XTXcH','2UBwABO','LsqcA','jczpW','NnddH','zCPvm','uxHpK','isTrialGrid','IHOOj','handler','MutDd','LcHUL','../../utils/utilityMethods','LWTHn','bxGZL','bstack-username','../../config/logger','bIebD','kQRRR','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.'];a7_0x1914=function(){return _0x34811c;};return a7_0x1914();}
@@ -1 +1 @@
1
- function a8_0x3f36(_0x2bfc30,_0x1db72c){const _0x2fb979=a8_0x2fb9();return a8_0x3f36=function(_0x3f3672,_0x506f68){_0x3f3672=_0x3f3672-0x1bd;let _0x575f8f=_0x2fb979[_0x3f3672];return _0x575f8f;},a8_0x3f36(_0x2bfc30,_0x1db72c);}const a8_0x534f66=a8_0x3f36;(function(_0x52e16a,_0x3c105e){const _0xb0afad=a8_0x3f36,_0x23e0b1=_0x52e16a();while(!![]){try{const _0x529f4b=parseInt(_0xb0afad(0x1cd))/0x1*(parseInt(_0xb0afad(0x1d2))/0x2)+-parseInt(_0xb0afad(0x1c0))/0x3*(parseInt(_0xb0afad(0x1ce))/0x4)+-parseInt(_0xb0afad(0x1c6))/0x5+parseInt(_0xb0afad(0x1c8))/0x6+-parseInt(_0xb0afad(0x1c5))/0x7*(parseInt(_0xb0afad(0x1c2))/0x8)+parseInt(_0xb0afad(0x1d0))/0x9+parseInt(_0xb0afad(0x1c4))/0xa*(-parseInt(_0xb0afad(0x1c7))/0xb);if(_0x529f4b===_0x3c105e)break;else _0x23e0b1['push'](_0x23e0b1['shift']());}catch(_0x1286a7){_0x23e0b1['push'](_0x23e0b1['shift']());}}}(a8_0x2fb9,0x96d78));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a8_0x2fb9(){const _0x4a2593=['demandCommand','desc','91986ZjEgzE','create_commands','312056NneLlg','FhNhJ','20TumJsV','7ZQtSUa','2367605AiMmEn','4143799ezBtwR','6304716yfiBTb','create','help','epilogue','strict','60VrLdcU','84rbWrVS','usage','7821450vsFHXv','iPkiG','20262IjpJDC','Create\x20a\x20new\x20Automation\x20grid.','commandDir','builder'];a8_0x2fb9=function(){return _0x4a2593;};return a8_0x2fb9();}exports['command']=a8_0x534f66(0x1c9),exports[a8_0x534f66(0x1bf)]=a8_0x534f66(0x1d3),exports[a8_0x534f66(0x1bd)]=function(_0x14459f){const _0x58646d=a8_0x534f66,_0x429014={};_0x429014[_0x58646d(0x1c3)]=_0x58646d(0x1c1),_0x429014[_0x58646d(0x1d1)]='help';const _0x3432c8=_0x429014;return _0x14459f[_0x58646d(0x1cf)](HELP_HEADER_MESSAGE[_0x58646d(0x1c9)])[_0x58646d(0x1cb)](HELP_FOOTER_MESSAGE)[_0x58646d(0x1d4)](_0x3432c8[_0x58646d(0x1c3)])[_0x58646d(0x1be)]()['recommendCommands']()[_0x58646d(0x1cc)]()[_0x58646d(0x1ca)](_0x3432c8['iPkiG']);},exports['handler']=function(_0x2134d4){};
1
+ const a8_0x56033c=a8_0xd3b3;(function(_0x1e25b7,_0x12f6ee){const _0x102cee=a8_0xd3b3,_0x2bff29=_0x1e25b7();while(!![]){try{const _0x354fee=-parseInt(_0x102cee(0xa8))/0x1+parseInt(_0x102cee(0xb4))/0x2*(parseInt(_0x102cee(0xaa))/0x3)+-parseInt(_0x102cee(0xa5))/0x4*(parseInt(_0x102cee(0xb8))/0x5)+-parseInt(_0x102cee(0xbb))/0x6+parseInt(_0x102cee(0xb1))/0x7*(parseInt(_0x102cee(0xae))/0x8)+-parseInt(_0x102cee(0xb2))/0x9*(-parseInt(_0x102cee(0xa7))/0xa)+-parseInt(_0x102cee(0xa9))/0xb*(-parseInt(_0x102cee(0xbd))/0xc);if(_0x354fee===_0x12f6ee)break;else _0x2bff29['push'](_0x2bff29['shift']());}catch(_0xad0c3){_0x2bff29['push'](_0x2bff29['shift']());}}}(a8_0x1182,0x1db43));function a8_0x1182(){const _0x3dc0e1=['7CyejtK','9BfdKlV','recommendCommands','2geBwXu','builder','epilogue','usage','2560zFCvMo','Create\x20a\x20new\x20Automation\x20grid.','desc','1428462TbNzCE','../config/constants','376764qUuxYs','help','1036UNJCAn','demandCommand','1454110lbywKJ','111897aQvlRo','33KJCWdC','586884lnxPMV','create','strict','fUvYO','1352152Ifiucm','create_commands','handler'];a8_0x1182=function(){return _0x3dc0e1;};return a8_0x1182();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x56033c(0xbc));function a8_0xd3b3(_0x317f81,_0x1c9642){const _0x11826c=a8_0x1182();return a8_0xd3b3=function(_0xd3b3a9,_0x563ee5){_0xd3b3a9=_0xd3b3a9-0xa5;let _0xa7e2d9=_0x11826c[_0xd3b3a9];return _0xa7e2d9;},a8_0xd3b3(_0x317f81,_0x1c9642);}exports['command']=a8_0x56033c(0xab),exports[a8_0x56033c(0xba)]=a8_0x56033c(0xb9),exports[a8_0x56033c(0xb5)]=function(_0x2e8be6){const _0x25795f=a8_0x56033c,_0x3cc714={};_0x3cc714['EPDAQ']=_0x25795f(0xaf),_0x3cc714[_0x25795f(0xad)]=_0x25795f(0xbe);const _0x2420dc=_0x3cc714;return _0x2e8be6[_0x25795f(0xb7)](HELP_HEADER_MESSAGE['create'])[_0x25795f(0xb6)](HELP_FOOTER_MESSAGE)['commandDir'](_0x2420dc['EPDAQ'])[_0x25795f(0xa6)]()[_0x25795f(0xb3)]()[_0x25795f(0xac)]()[_0x25795f(0xbe)](_0x2420dc[_0x25795f(0xad)]);},exports[a8_0x56033c(0xb0)]=function(_0x46389a){};