browserstack-node-sdk 1.24.0 → 1.24.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/ats/src/commands/configure.js +1 -1
  2. package/ats/src/commands/connect.js +1 -1
  3. package/ats/src/commands/connect_commands/grid.js +1 -1
  4. package/ats/src/commands/create.js +1 -1
  5. package/ats/src/commands/create_commands/grid.js +1 -1
  6. package/ats/src/commands/delete.js +1 -1
  7. package/ats/src/commands/delete_commands/grid.js +1 -1
  8. package/ats/src/commands/init.js +1 -1
  9. package/ats/src/commands/list.js +1 -1
  10. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  11. package/ats/src/commands/list_commands/grids.js +1 -1
  12. package/ats/src/config/constants.js +1 -1
  13. package/ats/src/config/logger.js +1 -1
  14. package/ats/src/index.js +1 -1
  15. package/ats/src/utils/AWSUtils.js +1 -1
  16. package/ats/src/utils/createAutoscalerStack.js +1 -1
  17. package/ats/src/utils/createClusterStack.js +1 -1
  18. package/ats/src/utils/createk8sClient.js +1 -1
  19. package/ats/src/utils/deleteStack.js +1 -1
  20. package/ats/src/utils/gridComponents.js +1 -1
  21. package/ats/src/utils/hstUtils.js +1 -1
  22. package/ats/src/utils/instrumentationUtils.js +1 -1
  23. package/ats/src/utils/userInput.js +1 -1
  24. package/ats/src/utils/utilityMethods.js +1 -1
  25. package/ats/src/utils/webSocketUtils.js +1 -1
  26. package/package.json +1 -1
  27. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  28. package/src/bin/codeceptjs/command.js +1 -1
  29. package/src/bin/cucumber-js/command.js +1 -1
  30. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  31. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  32. package/src/bin/cucumber-js/test.setup.js +1 -1
  33. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  34. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  35. package/src/bin/jest/command.js +1 -1
  36. package/src/bin/jest/customEnvironment.js +1 -1
  37. package/src/bin/jest/customTestRunnerTemplate.js +1 -1
  38. package/src/bin/jest/jest.setup.js +1 -1
  39. package/src/bin/jest/test_before.setup.js +1 -1
  40. package/src/bin/launcher/launcher.js +1 -1
  41. package/src/bin/mocha/accessibility-automation/constants.js +1 -1
  42. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  43. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  44. package/src/bin/mocha/command.js +1 -1
  45. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  46. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  47. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  48. package/src/bin/mocha/test.setup.js +1 -1
  49. package/src/bin/nightwatch/command.js +1 -1
  50. package/src/bin/playwright/command.js +1 -1
  51. package/src/bin/playwright/globalSetup.js +1 -1
  52. package/src/bin/playwright/mock-process.js +1 -1
  53. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  54. package/src/bin/playwright/reporter/reporter.js +1 -1
  55. package/src/bin/playwright/reporter/test-details.js +1 -1
  56. package/src/bin/runner.js +1 -1
  57. package/src/bin/setup.js +1 -1
  58. package/src/bin/test-runner/index.js +1 -1
  59. package/src/bin/test-runner/runTest.js +1 -1
  60. package/src/bin/test-runner/testWorker.js +1 -1
  61. package/src/bin/utils/constants.js +1 -1
  62. package/src/bin/utils/log4jsAppender.js +1 -1
  63. package/src/bin/utils/logPatcher.js +1 -1
  64. package/src/bin/utils/logReportingAPI.js +1 -1
  65. package/src/bin/vanilla-js/command.js +1 -1
  66. package/src/helpers/BrowserStackSetup.js +1 -1
  67. package/src/helpers/capsMapping.js +1 -1
  68. package/src/helpers/helper.js +1 -1
  69. package/src/helpers/logger.js +1 -1
  70. package/src/helpers/patchHelpers.js +1 -1
  71. package/src/helpers/request-spy.js +1 -1
  72. package/src/helpers/setKeepAlive.js +1 -1
  73. package/src/helpers/test-observability/constants.js +1 -1
  74. package/src/helpers/test-observability/error-handler.js +1 -1
  75. package/src/helpers/test-observability/performance-tester.js +1 -1
  76. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  77. package/src/helpers/test-observability/sessionHandler.js +1 -1
  78. package/src/helpers/test-observability/utils.js +1 -1
  79. package/src/helpers/w3cMapping.js +1 -1
  80. package/src/hubAllocationMethods.js +1 -1
  81. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a0_0x284d97=a0_0x529e;function a0_0x529e(_0x294bd2,_0x134fdd){const _0x3daf02=a0_0x3daf();return a0_0x529e=function(_0x529e1c,_0x1ee872){_0x529e1c=_0x529e1c-0x88;let _0x400016=_0x3daf02[_0x529e1c];return _0x400016;},a0_0x529e(_0x294bd2,_0x134fdd);}(function(_0x2f6b3e,_0x8a379){const _0x516dea=a0_0x529e,_0x43ed5c=_0x2f6b3e();while(!![]){try{const _0x11488b=-parseInt(_0x516dea(0xda))/0x1+-parseInt(_0x516dea(0xc3))/0x2*(-parseInt(_0x516dea(0xce))/0x3)+parseInt(_0x516dea(0xac))/0x4+-parseInt(_0x516dea(0xb6))/0x5*(parseInt(_0x516dea(0x9e))/0x6)+parseInt(_0x516dea(0xf5))/0x7*(-parseInt(_0x516dea(0xeb))/0x8)+parseInt(_0x516dea(0xc7))/0x9+-parseInt(_0x516dea(0xf1))/0xa*(parseInt(_0x516dea(0xba))/0xb);if(_0x11488b===_0x8a379)break;else _0x43ed5c['push'](_0x43ed5c['shift']());}catch(_0x1b6d85){_0x43ed5c['push'](_0x43ed5c['shift']());}}}(a0_0x3daf,0xc5895));function a0_0x3daf(){const _0x2a3c9d=['help','taEPv','log','EKkDP','144BfKMES','PAjDo','request','method','json','DTzCN','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','Updated\x20default\x20Grid\x20Profile\x20successfully','argv','\x20\x20username:\x20','stringify','error','parse','/packages/cli/configure','5500876uSyimf','JjsEv','ezfRu','TCJNP','FzbBG','configure-called','relFp','unknown-error','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','list','281080PpOtrH','unauthorised','core:','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','2854577GzOknx','auth','AtUpy','bVPux','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','GET','qovMZ','lxzrh','EqWIT','208006qZovtZ','YVOBc','../config/constants','RZlTB','12252258WpvtiM','password','statusCode','YZaTl','TCCDz','INFO','init-not-called','9Urados','username','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','ERROR','https://','toLowerCase','Browserstack','handler','readFileSync','../utils/userInput','CKojl','usage','452021dxvBhl','TuKWi','../utils/utilityMethods','eYIII','server-error','Hhawa','amgts','invalid-input','name','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','zmKfT','pgUSw','body','uuid','ZnpzO','requestId','nJSHN','1430152DTaHME','url','zWgLy','util','BXTAY','exit','10SnnutX','zklyi','upbSW','jnkof','7ayWmuT','invalid-selection','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','profileId','gvGjd','builder','strict','PUT','qSMGn','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','tsijf','nngmR','active','SDmAq','stack','XjHmm','promisify','configure','hrdAN','epilogue'];a0_0x3daf=function(){return _0x2a3c9d;};return a0_0x3daf();}const fs=require('fs'),util=require(a0_0x284d97(0xee)),request=require(a0_0x284d97(0xa0)),{v4:uuidv4}=require(a0_0x284d97(0xe7)),{inputConfirmation,closeInput}=require(a0_0x284d97(0xd7)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a0_0x284d97(0xc5)),{getCredentialsPath}=require(a0_0x284d97(0xdc)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util[a0_0x284d97(0x96)](request);exports['command']=a0_0x284d97(0x97),exports['desc']=a0_0x284d97(0xe3),exports[a0_0x284d97(0x8b)]=function(_0x92674e){const _0x499313=a0_0x284d97,_0x2bef09={};_0x2bef09[_0x499313(0xaf)]=_0x499313(0x9a);const _0x179aa0=_0x2bef09;return _0x92674e[_0x499313(0xd9)](HELP_HEADER_MESSAGE[_0x499313(0x97)])[_0x499313(0x99)](HELP_FOOTER_MESSAGE)[_0x499313(0x9a)](_0x179aa0['TCJNP'])['recommendCommands']()[_0x499313(0x8c)]()[_0x499313(0xa6)];},exports[a0_0x284d97(0xd5)]=async function(_0x6504a3){const _0x6d133a=a0_0x284d97,_0x4e4e8a={'hrdAN':function(_0x48bbe7){return _0x48bbe7();},'taEPv':function(_0x2072fc){return _0x2072fc();},'Hhawa':_0x6d133a(0xb9),'amgts':function(_0x1807fd,_0x1bbc19,_0x2cf77e,_0x9875aa,_0x3b523b,_0x4dec43,_0x1242a3){return _0x1807fd(_0x1bbc19,_0x2cf77e,_0x9875aa,_0x3b523b,_0x4dec43,_0x1242a3);},'RZlTB':_0x6d133a(0xb1),'lxzrh':_0x6d133a(0xcd),'YZaTl':function(_0x493fea){return _0x493fea();},'zmKfT':_0x6d133a(0xbf),'TuKWi':function(_0x94a073,_0x10e1cf){return _0x94a073(_0x10e1cf);},'bVPux':function(_0x4bc1f2,_0x664cc4){return _0x4bc1f2!==_0x664cc4;},'ezfRu':function(_0x35f4c1,_0x1db0f6){return _0x35f4c1===_0x1db0f6;},'zklyi':'\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','jnkof':_0x6d133a(0xb8),'JjsEv':_0x6d133a(0x8f),'ewyPr':function(_0x8d01ea,_0x42de57){return _0x8d01ea===_0x42de57;},'nJSHN':function(_0x488b03,_0x1cfb21){return _0x488b03===_0x1cfb21;},'eryZV':function(_0x1e45c3,_0x27f5c0){return _0x1e45c3===_0x27f5c0;},'zWgLy':function(_0x42b859,_0x6df1b5){return _0x42b859===_0x6df1b5;},'gvGjd':_0x6d133a(0x88),'TCCDz':function(_0x1fb503,_0x371cdd,_0x4b551e,_0x294a79,_0x1e3430,_0x2f22b7,_0x3f9e8c){return _0x1fb503(_0x371cdd,_0x4b551e,_0x294a79,_0x1e3430,_0x2f22b7,_0x3f9e8c);},'SDmAq':_0x6d133a(0xe1),'EKkDP':_0x6d133a(0xb4),'XjHmm':function(_0x596258,_0xf99bed){return _0x596258<_0xf99bed;},'ZnpzO':function(_0x5af4ae,_0x282020){return _0x5af4ae+_0x282020;},'upbSW':function(_0x55d055,_0x25906f){return _0x55d055(_0x25906f);},'sZmEq':_0x6d133a(0xa4),'YVOBc':function(_0x7e7f51,_0xbdbbba){return _0x7e7f51(_0xbdbbba);},'BXTAY':function(_0x2544f4,_0x4b6be7){return _0x2544f4<_0x4b6be7;},'qovMZ':function(_0x191186,_0x9258c0){return _0x191186>_0x9258c0;},'VJKOM':function(_0x1b6a62,_0x10c180,_0x1e3098,_0x1061cc,_0x46a691,_0x33c9ec,_0x5042a0){return _0x1b6a62(_0x10c180,_0x1e3098,_0x1061cc,_0x46a691,_0x33c9ec,_0x5042a0);},'HPNxe':_0x6d133a(0xf6),'relFp':function(_0x4ed3d6,_0x49a5ab){return _0x4ed3d6-_0x49a5ab;},'qSMGn':_0x6d133a(0x8d),'EqWIT':function(_0x444aad,_0x1db6a7){return _0x444aad!==_0x1db6a7;},'eYIII':function(_0x308fb7,_0x3296fa){return _0x308fb7!==_0x3296fa;},'FzbBG':_0x6d133a(0xa5),'tsijf':function(_0x18806d,_0xb10c7b){return _0x18806d===_0xb10c7b;},'AtUpy':function(_0x237b20,_0x90d44a,_0x1067c8,_0x37b70b,_0x475c5c,_0x5649d6,_0x3585ce){return _0x237b20(_0x90d44a,_0x1067c8,_0x37b70b,_0x475c5c,_0x5649d6,_0x3585ce);},'DTzCN':_0x6d133a(0xb7),'pgUSw':_0x6d133a(0xde),'PAjDo':function(_0x4977ea,_0x2251e4){return _0x4977ea===_0x2251e4;},'nngmR':function(_0x40459b,_0x1e6157,_0x191c20,_0x4d4588,_0x46cb3c,_0x478dce,_0x2ca66a){return _0x40459b(_0x1e6157,_0x191c20,_0x4d4588,_0x46cb3c,_0x478dce,_0x2ca66a);},'CKojl':_0x6d133a(0xb3)};try{global_registry[_0x6d133a(0xe9)]=_0x4e4e8a[_0x6d133a(0x98)](uuidv4);const _0x1648ea=_0x6d133a(0xd2)+AG_API_URL+_0x6d133a(0xab);!fs['existsSync'](_0x4e4e8a[_0x6d133a(0x9b)](getCredentialsPath))&&(console[_0x6d133a(0xa9)](_0x4e4e8a[_0x6d133a(0xdf)]),await _0x4e4e8a['amgts'](sendInstrumentationEvent,_0x6504a3,_0x4e4e8a['RZlTB'],messageTypes[_0x6d133a(0xd1)],_0x4e4e8a[_0x6d133a(0xc1)],null,_0x6504a3),process[_0x6d133a(0xf0)](0x1));await _0x4e4e8a[_0x6d133a(0xe0)](sendInstrumentationEvent,_0x6504a3,_0x4e4e8a[_0x6d133a(0xc6)],messageTypes[_0x6d133a(0xcc)],null,null,_0x6504a3);const _0x5cdd01=JSON[_0x6d133a(0xaa)](fs[_0x6d133a(0xd6)](_0x4e4e8a[_0x6d133a(0xca)](getCredentialsPath))),_0x3bd295={};_0x3bd295[_0x6d133a(0xcf)]=_0x5cdd01[_0x6d133a(0xd4)]['username'],_0x3bd295[_0x6d133a(0xc8)]=_0x5cdd01['Browserstack'][_0x6d133a(0xc8)];const _0x222659={};_0x222659['url']=_0x1648ea,_0x222659[_0x6d133a(0xa1)]=_0x4e4e8a[_0x6d133a(0xe4)],_0x222659[_0x6d133a(0xbb)]=_0x3bd295;const _0x2b6ee2=_0x222659,_0x49f29b=await _0x4e4e8a[_0x6d133a(0xdb)](promisifiedRequest,_0x2b6ee2);if(_0x4e4e8a['bVPux'](_0x49f29b,null)&&_0x4e4e8a[_0x6d133a(0xbd)](_0x49f29b,undefined)&&_0x4e4e8a[_0x6d133a(0xae)](_0x49f29b[_0x6d133a(0xc9)],0xc8)){const _0x126e3e=JSON['parse'](_0x49f29b[_0x6d133a(0xe6)]);console[_0x6d133a(0x9c)](_0x4e4e8a[_0x6d133a(0xf2)]),console[_0x6d133a(0x9c)](_0x4e4e8a[_0x6d133a(0xf4)]),console['log'](_0x6d133a(0xa7)+_0x5cdd01[_0x6d133a(0xd4)][_0x6d133a(0xcf)]),console[_0x6d133a(0x9c)]('\x20\x20grid-profile:\x20'+_0x126e3e[_0x6d133a(0x92)]['name']);const _0xe60432=await _0x4e4e8a[_0x6d133a(0xdb)](inputConfirmation,_0x4e4e8a[_0x6d133a(0xad)]);(_0x4e4e8a['ewyPr'](_0xe60432,undefined)||_0x4e4e8a[_0x6d133a(0xea)](_0xe60432,null)||!(_0x4e4e8a['eryZV'](_0xe60432[_0x6d133a(0xd3)](),'y')||_0x4e4e8a['zWgLy'](_0xe60432[_0x6d133a(0xd3)](),'n')))&&(console[_0x6d133a(0xa9)](_0x4e4e8a[_0x6d133a(0x8a)]),await _0x4e4e8a[_0x6d133a(0xcb)](sendInstrumentationEvent,_0x6504a3,_0x4e4e8a[_0x6d133a(0xc6)],messageTypes[_0x6d133a(0xd1)],_0x4e4e8a[_0x6d133a(0x93)],null,_0x6504a3),process['exit'](0x1));_0x4e4e8a['zWgLy'](_0xe60432[_0x6d133a(0xd3)](),'n')&&process[_0x6d133a(0xf0)](0x0);console[_0x6d133a(0x9c)](_0x4e4e8a[_0x6d133a(0x9d)]);const _0x51ebf3=_0x126e3e[_0x6d133a(0xb5)]['length'];for(let _0x399c4f=0x0;_0x4e4e8a[_0x6d133a(0x95)](_0x399c4f,_0x51ebf3);_0x399c4f+=0x1){console[_0x6d133a(0x9c)]('['+_0x4e4e8a[_0x6d133a(0xe8)](_0x399c4f,0x1)+']\x20'+_0x126e3e['list'][_0x399c4f][_0x6d133a(0xe2)]);}const _0x404024=await _0x4e4e8a[_0x6d133a(0xf3)](inputConfirmation,_0x4e4e8a['sZmEq']),_0x42ed11=_0x4e4e8a[_0x6d133a(0xc4)](Number,_0x404024);(_0x4e4e8a[_0x6d133a(0xf3)](isNaN,_0x42ed11)||_0x4e4e8a[_0x6d133a(0xef)](_0x42ed11,0x0)||_0x4e4e8a[_0x6d133a(0xc0)](_0x42ed11,_0x51ebf3))&&(console['error'](_0x4e4e8a['gvGjd']),await _0x4e4e8a['VJKOM'](sendInstrumentationEvent,_0x6504a3,_0x4e4e8a[_0x6d133a(0xc6)],messageTypes[_0x6d133a(0xd1)],_0x4e4e8a['HPNxe'],null,_0x6504a3),process[_0x6d133a(0xf0)](0x1));_0x4e4e8a[_0x6d133a(0x9b)](closeInput);const _0x51eae2=_0x126e3e['list'][_0x4e4e8a[_0x6d133a(0xb2)](_0x42ed11,0x1)]['id'],_0x2bc1f2={};_0x2bc1f2[_0x6d133a(0xcf)]=_0x5cdd01['Browserstack'][_0x6d133a(0xcf)],_0x2bc1f2[_0x6d133a(0xc8)]=_0x5cdd01['Browserstack'][_0x6d133a(0xc8)];const _0x4b1bc0={};_0x4b1bc0[_0x6d133a(0x89)]=_0x51eae2;const _0x4bd16c={};_0x4bd16c[_0x6d133a(0xec)]=_0x1648ea,_0x4bd16c[_0x6d133a(0xa1)]=_0x4e4e8a[_0x6d133a(0x8e)],_0x4bd16c[_0x6d133a(0xbb)]=_0x2bc1f2,_0x4bd16c['body']=_0x4b1bc0,_0x4bd16c[_0x6d133a(0xa2)]=!![];const _0x518812=_0x4bd16c,_0x48f22a=await _0x4e4e8a[_0x6d133a(0xdb)](promisifiedRequest,_0x518812);_0x4e4e8a[_0x6d133a(0xc2)](_0x48f22a,null)&&_0x4e4e8a[_0x6d133a(0xdd)](_0x48f22a,undefined)&&_0x4e4e8a[_0x6d133a(0xed)](_0x48f22a[_0x6d133a(0xc9)],0xc8)&&(console[_0x6d133a(0x9c)](_0x4e4e8a[_0x6d133a(0xb0)]),process[_0x6d133a(0xf0)](0x0)),_0x4e4e8a[_0x6d133a(0x90)](_0x48f22a[_0x6d133a(0xc9)],0x191)&&(console[_0x6d133a(0xa9)](_0x6d133a(0xd0)),await _0x4e4e8a[_0x6d133a(0xbc)](sendInstrumentationEvent,_0x6504a3,_0x4e4e8a[_0x6d133a(0xc6)],messageTypes[_0x6d133a(0xd1)],_0x4e4e8a[_0x6d133a(0xa3)],null,_0x6504a3),process['exit'](0x1)),console[_0x6d133a(0xa9)](_0x6d133a(0xbe)+JSON[_0x6d133a(0xa8)](_0x48f22a)),await _0x4e4e8a[_0x6d133a(0xbc)](sendInstrumentationEvent,_0x6504a3,_0x4e4e8a[_0x6d133a(0xc6)],messageTypes[_0x6d133a(0xd1)],_0x4e4e8a[_0x6d133a(0xe5)],_0x48f22a,_0x6504a3),process['exit'](0x1);}_0x4e4e8a[_0x6d133a(0x9f)](_0x49f29b[_0x6d133a(0xc9)],0x191)&&(console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x4e4e8a[_0x6d133a(0xbc)](sendInstrumentationEvent,_0x6504a3,_0x4e4e8a[_0x6d133a(0xc6)],messageTypes[_0x6d133a(0xd1)],_0x4e4e8a['DTzCN'],null,_0x6504a3),process['exit'](0x1)),console[_0x6d133a(0xa9)]('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x6d133a(0xa8)](_0x49f29b)),await _0x4e4e8a[_0x6d133a(0x91)](sendInstrumentationEvent,_0x6504a3,_0x4e4e8a[_0x6d133a(0xc6)],messageTypes[_0x6d133a(0xd1)],_0x4e4e8a[_0x6d133a(0xe5)],_0x49f29b,_0x6504a3),process['exit'](0x1);}catch(_0x7479a5){console[_0x6d133a(0xa9)]('Failed\x20to\x20configure\x20resources!\x20Error:\x20'+_0x7479a5[_0x6d133a(0x94)]),await _0x4e4e8a['TCCDz'](sendInstrumentationEvent,_0x6504a3,_0x4e4e8a['RZlTB'],messageTypes[_0x6d133a(0xd1)],_0x4e4e8a[_0x6d133a(0xd8)],_0x7479a5,_0x6504a3),process['exit'](0x1);}};
1
+ const a0_0x15c0e4=a0_0x4386;(function(_0x5bbe20,_0x162651){const _0x109cd4=a0_0x4386,_0x231c5d=_0x5bbe20();while(!![]){try{const _0x7ffad0=parseInt(_0x109cd4(0x1fd))/0x1+-parseInt(_0x109cd4(0x21c))/0x2+parseInt(_0x109cd4(0x20e))/0x3*(parseInt(_0x109cd4(0x21f))/0x4)+parseInt(_0x109cd4(0x23d))/0x5+-parseInt(_0x109cd4(0x230))/0x6+parseInt(_0x109cd4(0x225))/0x7*(-parseInt(_0x109cd4(0x1eb))/0x8)+parseInt(_0x109cd4(0x216))/0x9;if(_0x7ffad0===_0x162651)break;else _0x231c5d['push'](_0x231c5d['shift']());}catch(_0x5d894d){_0x231c5d['push'](_0x231c5d['shift']());}}}(a0_0x4648,0x79563));const fs=require('fs'),util=require('util'),request=require(a0_0x15c0e4(0x22c)),{v4:uuidv4}=require(a0_0x15c0e4(0x22b)),{inputConfirmation,closeInput}=require(a0_0x15c0e4(0x22a)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a0_0x15c0e4(0x1e2)),{getCredentialsPath}=require(a0_0x15c0e4(0x217)),{sendInstrumentationEvent}=require(a0_0x15c0e4(0x21e)),promisifiedRequest=util['promisify'](request);function a0_0x4648(){const _0x2fc3dc=['username','hyvpg','\x20\x20username:\x20','requestId','kJFyY','strict','https://','handler','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','lUuCt','../config/constants','list','\x20\x20grid-profile:\x20','VjTxz','YdsmT','mQfxh','yejJg','length','unknown-error','16ftMJBq','Xdddi','init-not-called','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','exit','invalid-selection','method','body','stack','configure','hjfFU','url','Failed\x20to\x20configure\x20resources!\x20Error:\x20','PIokQ','password','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','hLjOr','461268vMyhrt','yCTqL','ZdGXg','/packages/cli/configure','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','LMzJM','PUT','stringify','yYTGa','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','error','readFileSync','name','argv','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','core:','builder','537564nFGoxr','existsSync','fosvW','NjInX','ERROR','OWcDr','FjSKx','desc','9611604LSuxhr','../utils/utilityMethods','log','INFO','Browserstack','CvegU','718306ySYHcE','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','../utils/instrumentationUtils','4TBQcZU','parse','lFhQI','profileId','oldZU','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','2121931wXZzEd','mNqdH','epilogue','What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','TDivE','../utils/userInput','uuid','request','diGCR','oKqGj','toLowerCase','4632612zqOPPw','json','help','adWrW','Zdmjq','RBZzZ','ySRkP','Aidnb','hndIR','uhozS','yruAM','WPayN','mSezP','2630520KSxTAG','BRevW','auth','configure-called','statusCode'];a0_0x4648=function(){return _0x2fc3dc;};return a0_0x4648();}function a0_0x4386(_0x1d9d1f,_0xd6118b){const _0x4648b4=a0_0x4648();return a0_0x4386=function(_0x438670,_0x355543){_0x438670=_0x438670-0x1e2;let _0x3a3db4=_0x4648b4[_0x438670];return _0x3a3db4;},a0_0x4386(_0x1d9d1f,_0xd6118b);}exports['command']='configure',exports[a0_0x15c0e4(0x215)]='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports[a0_0x15c0e4(0x20d)]=function(_0x330f36){const _0x15a9dc=a0_0x15c0e4,_0x11734c={};_0x11734c['FjSKx']=_0x15a9dc(0x232);const _0x2376ce=_0x11734c;return _0x330f36['usage'](HELP_HEADER_MESSAGE[_0x15a9dc(0x1f4)])[_0x15a9dc(0x227)](HELP_FOOTER_MESSAGE)[_0x15a9dc(0x232)](_0x2376ce[_0x15a9dc(0x214)])['recommendCommands']()[_0x15a9dc(0x247)]()[_0x15a9dc(0x20a)];},exports[a0_0x15c0e4(0x249)]=async function(_0x20a072){const _0xf3c8e2=a0_0x15c0e4,_0x4c8bbe={'oKqGj':function(_0x354834){return _0x354834();},'yejJg':function(_0xa647ec){return _0xa647ec();},'aHhTw':_0xf3c8e2(0x201),'LMzJM':function(_0x1c5488,_0x516516,_0x498b6,_0x2857c3,_0x5f4b67,_0x88b065,_0x258c1a){return _0x1c5488(_0x516516,_0x498b6,_0x2857c3,_0x5f4b67,_0x88b065,_0x258c1a);},'VjTxz':_0xf3c8e2(0x240),'Zdmjq':_0xf3c8e2(0x1ed),'tUwFE':function(_0x4a103e,_0x13b064,_0xeb3df6,_0x49fb0b,_0x20d34c,_0x30e9d4,_0x40ea24){return _0x4a103e(_0x13b064,_0xeb3df6,_0x49fb0b,_0x20d34c,_0x30e9d4,_0x40ea24);},'lFhQI':'GET','lUuCt':function(_0x430cd7,_0x3e2fcb){return _0x430cd7(_0x3e2fcb);},'uhozS':function(_0x5ec9b7,_0x45c428){return _0x5ec9b7!==_0x45c428;},'oxTeZ':function(_0x541638,_0xff40d5){return _0x541638!==_0xff40d5;},'hjfFU':function(_0x16b52c,_0xbdac5f){return _0x16b52c===_0xbdac5f;},'CvegU':_0xf3c8e2(0x224),'hyvpg':_0xf3c8e2(0x20c),'fosvW':_0xf3c8e2(0x24a),'YdsmT':function(_0x27c98b,_0x29293f){return _0x27c98b===_0x29293f;},'diGCR':function(_0x1e3569,_0x597618){return _0x1e3569===_0x597618;},'ZdGXg':_0xf3c8e2(0x20b),'oldZU':function(_0x3bb77a,_0x3e5f13,_0x2be582,_0x388b2c,_0xb721b3,_0x499e8d,_0xb172f4){return _0x3bb77a(_0x3e5f13,_0x2be582,_0x388b2c,_0xb721b3,_0x499e8d,_0xb172f4);},'adWrW':'invalid-input','mNqdH':function(_0x2ebdfc,_0x5d5cf2){return _0x2ebdfc===_0x5d5cf2;},'lrwgu':_0xf3c8e2(0x228),'hndIR':function(_0x3333b9,_0x4f283c){return _0x3333b9<_0x4f283c;},'mSezP':function(_0x463c44,_0x1ec86a){return _0x463c44+_0x1ec86a;},'WPayN':function(_0x8e1d66,_0x3af037){return _0x8e1d66(_0x3af037);},'Xdddi':_0xf3c8e2(0x21d),'OWcDr':function(_0x173a27,_0x11d806){return _0x173a27(_0x11d806);},'CuGZA':function(_0x6daa6c,_0x3193b7){return _0x6daa6c(_0x3193b7);},'BRevW':function(_0x19ab4e,_0x4fcede){return _0x19ab4e>_0x4fcede;},'kJFyY':_0xf3c8e2(0x1f0),'yYTGa':function(_0x4e6081){return _0x4e6081();},'PIokQ':function(_0x3e9f6b,_0x317e81){return _0x3e9f6b-_0x317e81;},'ySRkP':_0xf3c8e2(0x203),'yCTqL':function(_0x440671,_0x16a4b2){return _0x440671(_0x16a4b2);},'TDivE':function(_0x103464,_0x335965){return _0x103464!==_0x335965;},'yruAM':'Updated\x20default\x20Grid\x20Profile\x20successfully','mQfxh':function(_0x53e835,_0x2669df){return _0x53e835===_0x2669df;},'Aidnb':'unauthorised','hLjOr':'server-error','KulwR':function(_0x31647a,_0x5c2522){return _0x31647a===_0x5c2522;},'CxAOa':function(_0x135851,_0x4d2e35,_0x3f26aa,_0x5b6d31,_0x520028,_0xef425d,_0x580796){return _0x135851(_0x4d2e35,_0x3f26aa,_0x5b6d31,_0x520028,_0xef425d,_0x580796);},'gNmmG':function(_0x104d05,_0x285c7a,_0x2e143f,_0x268c94,_0x234570,_0xe9c2b7,_0x9015d2){return _0x104d05(_0x285c7a,_0x2e143f,_0x268c94,_0x234570,_0xe9c2b7,_0x9015d2);},'RBZzZ':function(_0x4d5c57,_0x2e3049,_0x28c962,_0xb61c7d,_0x4e3d28,_0x4d4229,_0x4adcc8){return _0x4d5c57(_0x2e3049,_0x28c962,_0xb61c7d,_0x4e3d28,_0x4d4229,_0x4adcc8);},'NjInX':_0xf3c8e2(0x1ea)};try{global_registry[_0xf3c8e2(0x245)]=_0x4c8bbe[_0xf3c8e2(0x22e)](uuidv4);const _0x3cc789=_0xf3c8e2(0x248)+AG_API_URL+_0xf3c8e2(0x200);!fs[_0xf3c8e2(0x20f)](_0x4c8bbe[_0xf3c8e2(0x1e8)](getCredentialsPath))&&(console[_0xf3c8e2(0x207)](_0x4c8bbe['aHhTw']),await _0x4c8bbe[_0xf3c8e2(0x202)](sendInstrumentationEvent,_0x20a072,_0x4c8bbe['VjTxz'],messageTypes['ERROR'],_0x4c8bbe[_0xf3c8e2(0x234)],null,_0x20a072),process[_0xf3c8e2(0x1ef)](0x1));await _0x4c8bbe['tUwFE'](sendInstrumentationEvent,_0x20a072,_0x4c8bbe[_0xf3c8e2(0x1e5)],messageTypes[_0xf3c8e2(0x219)],null,null,_0x20a072);const _0x1827f0=JSON[_0xf3c8e2(0x220)](fs[_0xf3c8e2(0x208)](_0x4c8bbe[_0xf3c8e2(0x1e8)](getCredentialsPath))),_0xd81b48={};_0xd81b48[_0xf3c8e2(0x242)]=_0x1827f0['Browserstack']['username'],_0xd81b48[_0xf3c8e2(0x1f9)]=_0x1827f0[_0xf3c8e2(0x21a)][_0xf3c8e2(0x1f9)];const _0x10fcf4={};_0x10fcf4['url']=_0x3cc789,_0x10fcf4[_0xf3c8e2(0x1f1)]=_0x4c8bbe[_0xf3c8e2(0x221)],_0x10fcf4[_0xf3c8e2(0x23f)]=_0xd81b48;const _0x5a5843=_0x10fcf4,_0x55ffd4=await _0x4c8bbe['lUuCt'](promisifiedRequest,_0x5a5843);if(_0x4c8bbe[_0xf3c8e2(0x239)](_0x55ffd4,null)&&_0x4c8bbe['oxTeZ'](_0x55ffd4,undefined)&&_0x4c8bbe[_0xf3c8e2(0x1f5)](_0x55ffd4[_0xf3c8e2(0x241)],0xc8)){const _0x43e868=JSON[_0xf3c8e2(0x220)](_0x55ffd4[_0xf3c8e2(0x1f2)]);console[_0xf3c8e2(0x218)](_0x4c8bbe[_0xf3c8e2(0x21b)]),console['log'](_0x4c8bbe[_0xf3c8e2(0x243)]),console[_0xf3c8e2(0x218)](_0xf3c8e2(0x244)+_0x1827f0['Browserstack']['username']),console[_0xf3c8e2(0x218)](_0xf3c8e2(0x1e4)+_0x43e868['active'][_0xf3c8e2(0x209)]);const _0x4137cc=await _0x4c8bbe[_0xf3c8e2(0x24b)](inputConfirmation,_0x4c8bbe[_0xf3c8e2(0x210)]);(_0x4c8bbe[_0xf3c8e2(0x1e6)](_0x4137cc,undefined)||_0x4c8bbe['YdsmT'](_0x4137cc,null)||!(_0x4c8bbe[_0xf3c8e2(0x1e6)](_0x4137cc['toLowerCase'](),'y')||_0x4c8bbe[_0xf3c8e2(0x22d)](_0x4137cc[_0xf3c8e2(0x22f)](),'n')))&&(console[_0xf3c8e2(0x207)](_0x4c8bbe[_0xf3c8e2(0x1ff)]),await _0x4c8bbe[_0xf3c8e2(0x223)](sendInstrumentationEvent,_0x20a072,_0x4c8bbe[_0xf3c8e2(0x1e5)],messageTypes[_0xf3c8e2(0x212)],_0x4c8bbe[_0xf3c8e2(0x233)],null,_0x20a072),process[_0xf3c8e2(0x1ef)](0x1));_0x4c8bbe[_0xf3c8e2(0x226)](_0x4137cc['toLowerCase'](),'n')&&process['exit'](0x0);console[_0xf3c8e2(0x218)](_0x4c8bbe['lrwgu']);const _0x48a288=_0x43e868[_0xf3c8e2(0x1e3)][_0xf3c8e2(0x1e9)];for(let _0x293d9a=0x0;_0x4c8bbe[_0xf3c8e2(0x238)](_0x293d9a,_0x48a288);_0x293d9a+=0x1){console[_0xf3c8e2(0x218)]('['+_0x4c8bbe[_0xf3c8e2(0x23c)](_0x293d9a,0x1)+']\x20'+_0x43e868[_0xf3c8e2(0x1e3)][_0x293d9a][_0xf3c8e2(0x209)]);}const _0x1343ad=await _0x4c8bbe[_0xf3c8e2(0x23b)](inputConfirmation,_0x4c8bbe[_0xf3c8e2(0x1ec)]),_0x33119a=_0x4c8bbe[_0xf3c8e2(0x213)](Number,_0x1343ad);(_0x4c8bbe['CuGZA'](isNaN,_0x33119a)||_0x4c8bbe[_0xf3c8e2(0x238)](_0x33119a,0x0)||_0x4c8bbe[_0xf3c8e2(0x23e)](_0x33119a,_0x48a288))&&(console[_0xf3c8e2(0x207)](_0x4c8bbe['ZdGXg']),await _0x4c8bbe[_0xf3c8e2(0x223)](sendInstrumentationEvent,_0x20a072,_0x4c8bbe[_0xf3c8e2(0x1e5)],messageTypes[_0xf3c8e2(0x212)],_0x4c8bbe[_0xf3c8e2(0x246)],null,_0x20a072),process[_0xf3c8e2(0x1ef)](0x1));_0x4c8bbe[_0xf3c8e2(0x205)](closeInput);const _0xb38390=_0x43e868[_0xf3c8e2(0x1e3)][_0x4c8bbe[_0xf3c8e2(0x1f8)](_0x33119a,0x1)]['id'],_0x2853e8={};_0x2853e8['username']=_0x1827f0['Browserstack'][_0xf3c8e2(0x242)],_0x2853e8[_0xf3c8e2(0x1f9)]=_0x1827f0['Browserstack'][_0xf3c8e2(0x1f9)];const _0x1c87df={};_0x1c87df[_0xf3c8e2(0x222)]=_0xb38390;const _0x2ae8bd={};_0x2ae8bd[_0xf3c8e2(0x1f6)]=_0x3cc789,_0x2ae8bd[_0xf3c8e2(0x1f1)]=_0x4c8bbe[_0xf3c8e2(0x236)],_0x2ae8bd[_0xf3c8e2(0x23f)]=_0x2853e8,_0x2ae8bd[_0xf3c8e2(0x1f2)]=_0x1c87df,_0x2ae8bd[_0xf3c8e2(0x231)]=!![];const _0xe63f41=_0x2ae8bd,_0x2c4c29=await _0x4c8bbe[_0xf3c8e2(0x1fe)](promisifiedRequest,_0xe63f41);_0x4c8bbe[_0xf3c8e2(0x229)](_0x2c4c29,null)&&_0x4c8bbe[_0xf3c8e2(0x239)](_0x2c4c29,undefined)&&_0x4c8bbe[_0xf3c8e2(0x22d)](_0x2c4c29[_0xf3c8e2(0x241)],0xc8)&&(console[_0xf3c8e2(0x218)](_0x4c8bbe[_0xf3c8e2(0x23a)]),process[_0xf3c8e2(0x1ef)](0x0)),_0x4c8bbe[_0xf3c8e2(0x1e7)](_0x2c4c29['statusCode'],0x191)&&(console[_0xf3c8e2(0x207)](_0xf3c8e2(0x1fb)),await _0x4c8bbe[_0xf3c8e2(0x223)](sendInstrumentationEvent,_0x20a072,_0x4c8bbe[_0xf3c8e2(0x1e5)],messageTypes[_0xf3c8e2(0x212)],_0x4c8bbe[_0xf3c8e2(0x237)],null,_0x20a072),process[_0xf3c8e2(0x1ef)](0x1)),console[_0xf3c8e2(0x207)](_0xf3c8e2(0x1fa)+JSON['stringify'](_0x2c4c29)),await _0x4c8bbe['oldZU'](sendInstrumentationEvent,_0x20a072,_0x4c8bbe[_0xf3c8e2(0x1e5)],messageTypes['ERROR'],_0x4c8bbe[_0xf3c8e2(0x1fc)],_0x2c4c29,_0x20a072),process['exit'](0x1);}_0x4c8bbe['KulwR'](_0x55ffd4[_0xf3c8e2(0x241)],0x191)&&(console[_0xf3c8e2(0x207)](_0xf3c8e2(0x1ee)),await _0x4c8bbe['CxAOa'](sendInstrumentationEvent,_0x20a072,_0x4c8bbe[_0xf3c8e2(0x1e5)],messageTypes['ERROR'],_0x4c8bbe['Aidnb'],null,_0x20a072),process[_0xf3c8e2(0x1ef)](0x1)),console[_0xf3c8e2(0x207)](_0xf3c8e2(0x206)+JSON[_0xf3c8e2(0x204)](_0x55ffd4)),await _0x4c8bbe['gNmmG'](sendInstrumentationEvent,_0x20a072,_0x4c8bbe[_0xf3c8e2(0x1e5)],messageTypes[_0xf3c8e2(0x212)],_0x4c8bbe[_0xf3c8e2(0x1fc)],_0x55ffd4,_0x20a072),process[_0xf3c8e2(0x1ef)](0x1);}catch(_0x477569){console[_0xf3c8e2(0x207)](_0xf3c8e2(0x1f7)+_0x477569[_0xf3c8e2(0x1f3)]),await _0x4c8bbe[_0xf3c8e2(0x235)](sendInstrumentationEvent,_0x20a072,_0x4c8bbe[_0xf3c8e2(0x1e5)],messageTypes[_0xf3c8e2(0x212)],_0x4c8bbe[_0xf3c8e2(0x211)],_0x477569,_0x20a072),process[_0xf3c8e2(0x1ef)](0x1);}};
@@ -1 +1 @@
1
- const a1_0x54404b=a1_0x4a39;function a1_0x304d(){const _0x5d1c1d=['540536vIFcuj','desc','5552oGnHxn','command','epilogue','13619705QOpSVO','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','connect','../config/constants','pwiOp','1105bHsdOd','30QvKdmg','handler','Ociup','strict','597090yUpHzE','builder','56eXHthN','demandCommand','5094mwlblu','213252ZJlaiB','help','connect_commands','15890AITlWd','4791522cFjsxX'];a1_0x304d=function(){return _0x5d1c1d;};return a1_0x304d();}function a1_0x4a39(_0x1ae9a6,_0x459655){const _0x304de9=a1_0x304d();return a1_0x4a39=function(_0x4a3926,_0x34c2dc){_0x4a3926=_0x4a3926-0x181;let _0x1db7cc=_0x304de9[_0x4a3926];return _0x1db7cc;},a1_0x4a39(_0x1ae9a6,_0x459655);}(function(_0x5c693a,_0x2fc370){const _0x442572=a1_0x4a39,_0x3255fb=_0x5c693a();while(!![]){try{const _0xdd851f=parseInt(_0x442572(0x193))/0x1+-parseInt(_0x442572(0x198))/0x2*(parseInt(_0x442572(0x18f))/0x3)+parseInt(_0x442572(0x186))/0x4*(parseInt(_0x442572(0x18e))/0x5)+-parseInt(_0x442572(0x183))/0x6+parseInt(_0x442572(0x195))/0x7*(-parseInt(_0x442572(0x184))/0x8)+parseInt(_0x442572(0x197))/0x9*(parseInt(_0x442572(0x182))/0xa)+parseInt(_0x442572(0x189))/0xb;if(_0xdd851f===_0x2fc370)break;else _0x3255fb['push'](_0x3255fb['shift']());}catch(_0x1ec690){_0x3255fb['push'](_0x3255fb['shift']());}}}(a1_0x304d,0x9b450));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a1_0x54404b(0x18c));exports[a1_0x54404b(0x187)]=a1_0x54404b(0x18b),exports[a1_0x54404b(0x185)]=a1_0x54404b(0x18a),exports[a1_0x54404b(0x194)]=function(_0x165798){const _0x2837a7=a1_0x54404b,_0x514e5e={};_0x514e5e[_0x2837a7(0x18d)]=_0x2837a7(0x181),_0x514e5e[_0x2837a7(0x191)]=_0x2837a7(0x199);const _0x94c867=_0x514e5e;return _0x165798['usage'](HELP_HEADER_MESSAGE[_0x2837a7(0x18b)])[_0x2837a7(0x188)](HELP_FOOTER_MESSAGE)['commandDir'](_0x94c867[_0x2837a7(0x18d)])[_0x2837a7(0x196)]()['recommendCommands']()[_0x2837a7(0x192)]()[_0x2837a7(0x199)](_0x94c867[_0x2837a7(0x191)]);},exports[a1_0x54404b(0x190)]=function(_0x304ab7){};
1
+ const a1_0x1ec7d5=a1_0x4a8c;(function(_0x3136f3,_0x58e386){const _0x2689d8=a1_0x4a8c,_0xd1a31e=_0x3136f3();while(!![]){try{const _0x356f69=-parseInt(_0x2689d8(0x137))/0x1+parseInt(_0x2689d8(0x13c))/0x2+-parseInt(_0x2689d8(0x136))/0x3+parseInt(_0x2689d8(0x13a))/0x4*(parseInt(_0x2689d8(0x14b))/0x5)+parseInt(_0x2689d8(0x139))/0x6*(parseInt(_0x2689d8(0x142))/0x7)+-parseInt(_0x2689d8(0x13b))/0x8+-parseInt(_0x2689d8(0x14a))/0x9;if(_0x356f69===_0x58e386)break;else _0xd1a31e['push'](_0xd1a31e['shift']());}catch(_0x59850f){_0xd1a31e['push'](_0xd1a31e['shift']());}}}(a1_0x32af,0xe3129));function a1_0x32af(){const _0xd12584=['13987560nWZvom','3688278xgBODn','builder','desc','connect','../config/constants','Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment','7xnYUHl','commandDir','connect_commands','Sbmxu','strict','epilogue','handler','command','14479704wFrGaA','1999400yLgdAh','VAPIr','help','1680942EIbjHY','29002wXGPNh','usage','10997562CxIvuS','12KQzfYX'];a1_0x32af=function(){return _0xd12584;};return a1_0x32af();}function a1_0x4a8c(_0x5a5c51,_0x3c5b33){const _0x32af07=a1_0x32af();return a1_0x4a8c=function(_0x4a8c18,_0x5618e1){_0x4a8c18=_0x4a8c18-0x136;let _0x437b18=_0x32af07[_0x4a8c18];return _0x437b18;},a1_0x4a8c(_0x5a5c51,_0x3c5b33);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a1_0x1ec7d5(0x140));exports[a1_0x1ec7d5(0x149)]=a1_0x1ec7d5(0x13f),exports[a1_0x1ec7d5(0x13e)]=a1_0x1ec7d5(0x141),exports[a1_0x1ec7d5(0x13d)]=function(_0xbcf176){const _0x42b16f=a1_0x1ec7d5,_0x5ecf7f={};_0x5ecf7f['Sbmxu']=_0x42b16f(0x144),_0x5ecf7f[_0x42b16f(0x14c)]='help';const _0x54c46f=_0x5ecf7f;return _0xbcf176[_0x42b16f(0x138)](HELP_HEADER_MESSAGE[_0x42b16f(0x13f)])[_0x42b16f(0x147)](HELP_FOOTER_MESSAGE)[_0x42b16f(0x143)](_0x54c46f[_0x42b16f(0x145)])['demandCommand']()['recommendCommands']()[_0x42b16f(0x146)]()[_0x42b16f(0x14d)](_0x54c46f[_0x42b16f(0x14c)]);},exports[a1_0x1ec7d5(0x148)]=function(_0x48c9c7){};
@@ -1 +1 @@
1
- const a2_0x9d08ed=a2_0x4184;(function(_0x48d624,_0x14f9c7){const _0x5133ff=a2_0x4184,_0x1b8f8a=_0x48d624();while(!![]){try{const _0x58ef10=parseInt(_0x5133ff(0xf4))/0x1+parseInt(_0x5133ff(0x10b))/0x2*(parseInt(_0x5133ff(0xff))/0x3)+parseInt(_0x5133ff(0xce))/0x4*(parseInt(_0x5133ff(0x105))/0x5)+-parseInt(_0x5133ff(0x102))/0x6*(-parseInt(_0x5133ff(0xc8))/0x7)+parseInt(_0x5133ff(0x121))/0x8*(-parseInt(_0x5133ff(0x111))/0x9)+parseInt(_0x5133ff(0x108))/0xa+parseInt(_0x5133ff(0xe5))/0xb*(-parseInt(_0x5133ff(0xec))/0xc);if(_0x58ef10===_0x14f9c7)break;else _0x1b8f8a['push'](_0x1b8f8a['shift']());}catch(_0x25d867){_0x1b8f8a['push'](_0x1b8f8a['shift']());}}}(a2_0x3b72,0xaeb6f));function a2_0x4184(_0x1884c7,_0xbf296f){const _0x3b72df=a2_0x3b72();return a2_0x4184=function(_0x41848b,_0x28e5b4){_0x41848b=_0x41848b-0xad;let _0x5d18ac=_0x3b72df[_0x41848b];return _0x5d18ac;},a2_0x4184(_0x1884c7,_0xbf296f);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a2_0x9d08ed(0x107)),{logger}=require(a2_0x9d08ed(0xe3)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a2_0x9d08ed(0xd6));function a2_0x3b72(){const _0x6b1568=['desc','../../config/logger','builder','951973HCIhOn','handler','lZpbh','beforeExit','porwh','QFdwQ','dLehT','372QPPAEu','argv','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.','info','useStaging','NKqRV','accessKey','rFHeB','794569jVoxTs','isRunning','string','gIfnJ','opGkA','pMaUW','jgJcm','exit','xvRAv','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','advanceOptions','3QVUldv','cfNCp','bstackAccesskey','2070GTtrYZ','VwvyJ','Asmiz','13045QYZory','EFYqT','../../config/constants','10009300xTFVrt','Eflck','customRepeaters','367490WmEXCb','IedLn','Advance\x20options\x20for\x20Browserstack\x20Local','IESCI','command','tnrqD','9jffUzK','hXJai','help','Pyuev','type','DqpOM','cEGIA','Qhftw','usage','LMivN','HozQZ','Pass\x20the\x20ID\x20of\x20the\x20Grid','kaqef','JfSKF','HgDzH','kVlHP','9043280XKElBM','ZfFFy','iNdZk','QqebC','xWCkl','xzQQz','LrnXp','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','RcKuG','SIGINT','Tzqea','yiOBb','BEwmR','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','bstack-username','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','sNeib','VuFsW','fUCup','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','epilogue','qzwQh','MXQro','YlkiE','ocFSs','demandOption','nIpbf','dCCfu','jjaAz','28175NzciiE','fuKXl','options','UmuER','description','ZEWLF','1780uffQIT','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','bstack-accesskey','ztWXq','pJItf','RJxED','grid','../../utils/utilityMethods','Grid\x20type:\x20Trial','create','advance-options','gridId','isTrialGrid','use-staging','browserStackLocalOptions','error','czlxl','SvDhz','JrACx'];a2_0x3b72=function(){return _0x6b1568;};return a2_0x3b72();}exports[a2_0x9d08ed(0x10f)]=a2_0x9d08ed(0xd5),exports[a2_0x9d08ed(0xe2)]=a2_0x9d08ed(0xcf),exports[a2_0x9d08ed(0xe4)]=_0x999029=>{const _0x345742=a2_0x9d08ed,_0x312f29={};_0x312f29[_0x345742(0xf7)]=_0x345742(0xba),_0x312f29[_0x345742(0x109)]=_0x345742(0xf6),_0x312f29['DkwsA']=_0x345742(0xd0),_0x312f29[_0x345742(0xb5)]=_0x345742(0x11c),_0x312f29[_0x345742(0xe0)]=_0x345742(0xb2),_0x312f29[_0x345742(0xc2)]=_0x345742(0x10d),_0x312f29[_0x345742(0x100)]=_0x345742(0x113);const _0x260047=_0x312f29,_0xe21e53={};_0xe21e53[_0x345742(0xcc)]=_0x260047['gIfnJ'],_0xe21e53[_0x345742(0x115)]=_0x260047[_0x345742(0x109)];const _0x55a115={};_0x55a115[_0x345742(0xcc)]=_0x260047['DkwsA'],_0x55a115[_0x345742(0x115)]=_0x260047['Eflck'];const _0x15a64b={};_0x15a64b[_0x345742(0xc4)]=!![],_0x15a64b[_0x345742(0xcc)]=_0x260047['Tzqea'],_0x15a64b['type']=_0x260047[_0x345742(0x109)];const _0x39157b={};_0x39157b[_0x345742(0xcc)]=_0x260047[_0x345742(0xe0)],_0x39157b[_0x345742(0x115)]=_0x260047[_0x345742(0x109)];const _0x817e5f={};_0x817e5f[_0x345742(0xcc)]=_0x260047[_0x345742(0xc2)],_0x817e5f[_0x345742(0x115)]=_0x260047[_0x345742(0x109)];const _0x478227={};return _0x478227[_0x345742(0xb9)]=_0xe21e53,_0x478227['bstack-accesskey']=_0x55a115,_0x478227['grid-id']=_0x15a64b,_0x478227[_0x345742(0xdc)]=_0x39157b,_0x478227[_0x345742(0xd9)]=_0x817e5f,_0x999029[_0x345742(0x119)](HELP_HEADER_MESSAGE[_0x345742(0xd8)])[_0x345742(0xbf)](HELP_FOOTER_MESSAGE)['options'](_0x478227)[_0x345742(0x113)](_0x260047[_0x345742(0x100)])[_0x345742(0xed)];},exports[a2_0x9d08ed(0xe6)]=async _0x54f101=>{const _0xc82c3f=a2_0x9d08ed,_0x70cc23={'lZpbh':function(_0x17b1fa,_0x9abc01){return _0x17b1fa(_0x9abc01);},'IESCI':function(_0x59ea7f,_0x2774e1){return _0x59ea7f===_0x2774e1;},'ocFSs':_0xc82c3f(0xd2),'EFYqT':_0xc82c3f(0x11d),'porwh':function(_0x53fcec,_0x3ca2b3){return _0x53fcec(_0x3ca2b3);},'iNdZk':function(_0x3f68a2,_0x23d8e8){return _0x3f68a2(_0x23d8e8);},'LrnXp':function(_0x312b10,_0x3bf042){return _0x312b10==_0x3bf042;},'DqpOM':_0xc82c3f(0xe8),'Asmiz':_0xc82c3f(0xb4),'Qhftw':'SIGTERM','JzuZg':function(_0x459ccf,_0x4761dc){return _0x459ccf(_0x4761dc);},'qzwQh':function(_0x8aabd,_0x7df7ed){return _0x8aabd!==_0x7df7ed;},'fuKXl':_0xc82c3f(0xea),'UmuER':_0xc82c3f(0x117),'opGkA':function(_0x3eba21,_0x3808d4){return _0x3eba21==_0x3808d4;},'VwvyJ':function(_0x3caa31,_0x190c19){return _0x3caa31(_0x190c19);},'NKqRV':_0xc82c3f(0xba),'pJItf':'string','fUCup':_0xc82c3f(0xd0),'LZycl':_0xc82c3f(0x11c),'dLehT':_0xc82c3f(0xb2),'rFHeB':_0xc82c3f(0x10d),'BEwmR':_0xc82c3f(0x113),'RJxED':function(_0x3e9794,_0x556e0e,_0x938af1){return _0x3e9794(_0x556e0e,_0x938af1);},'MXQro':function(_0x15cdf4,_0x3d73d2){return _0x15cdf4&&_0x3d73d2;},'nIpbf':_0xc82c3f(0xaf),'IedLn':_0xc82c3f(0xc7),'sNeib':function(_0x3a8e29,_0x2ef886){return _0x3a8e29(_0x2ef886);},'OVaPd':function(_0x5df748,_0x4aa59b,_0x5071c6,_0x332e20){return _0x5df748(_0x4aa59b,_0x5071c6,_0x332e20);},'BfBOn':_0xc82c3f(0xdf),'Pyuev':_0xc82c3f(0xf9),'QqebC':function(_0x5809dc,_0x11f507){return _0x5809dc(_0x11f507);},'jgJcm':function(_0x2ea27d,_0x1dde90){return _0x2ea27d===_0x1dde90;},'JrACx':'true','RVgPP':function(_0x38cb67,_0xb1a817){return _0x38cb67===_0xb1a817;},'LMivN':_0xc82c3f(0xcd),'RcKuG':function(_0xb83b12,_0x30afc5){return _0xb83b12!==_0x30afc5;},'HozQZ':_0xc82c3f(0x110),'HgDzH':_0xc82c3f(0xfc),'dCCfu':function(_0x104326,_0x1c6b0d){return _0x104326(_0x1c6b0d);}};let _0x439bc0=_0x54f101['bstackUsername'],_0xae069c=_0x54f101[_0xc82c3f(0x101)],_0xd59217=_0x54f101[_0xc82c3f(0xfe)];const _0x2e9e26=_0x11df31=>{const _0x5e9b80=_0xc82c3f,_0x42c1cd={'kVlHP':function(_0x138b53,_0x581027){const _0x4e5786=a2_0x4184;return _0x70cc23[_0x4e5786(0xe7)](_0x138b53,_0x581027);}};_0x70cc23[_0x5e9b80(0x10e)](_0x70cc23[_0x5e9b80(0xc3)],_0x70cc23[_0x5e9b80(0x106)])?_0x42c1cd[_0x5e9b80(0x120)](_0x7576e7,_0x5e9b80(0xb8)):(logger[_0x5e9b80(0xde)](_0x11df31),process[_0x5e9b80(0xfb)](0x1));};[_0x439bc0,_0xae069c]=_0x70cc23[_0xc82c3f(0xd4)](fetchOrUpdateUserConfig,_0x439bc0,_0xae069c);!_0x70cc23[_0xc82c3f(0xc1)](_0x439bc0,_0xae069c)&&(_0x70cc23['IESCI'](_0x70cc23[_0xc82c3f(0xc5)],_0x70cc23[_0xc82c3f(0x10c)])?_0x70cc23['porwh'](_0x13402a,_0xc82c3f(0xfd)):_0x70cc23[_0xc82c3f(0xbb)](_0x2e9e26,_0xc82c3f(0xfd)));let _0x93d705=_0x54f101[_0xc82c3f(0xda)],_0x509b8e=await _0x70cc23['OVaPd'](getGridDetails,_0x439bc0,_0xae069c,_0x93d705);!_0x509b8e&&(_0x70cc23[_0xc82c3f(0xc0)](_0x70cc23['BfBOn'],_0x70cc23[_0xc82c3f(0x114)])?_0x70cc23[_0xc82c3f(0xae)](_0x2e9e26,_0xc82c3f(0xb8)):_0x70cc23[_0xc82c3f(0xad)](_0x32bacd,_0xc82c3f(0xbe)));let _0x35d0a0=_0x70cc23[_0xc82c3f(0xfa)](_0x54f101[_0xc82c3f(0xf0)],_0x70cc23[_0xc82c3f(0xe1)])?!![]:![];if(_0x509b8e&&_0x509b8e[_0xc82c3f(0xdb)]&&_0x35d0a0){if(_0x70cc23['RVgPP'](_0x70cc23['LMivN'],_0x70cc23[_0xc82c3f(0x11a)])){logMessage='Grid\x20type:\x20Trial',logger[_0xc82c3f(0xef)](logMessage);try{if(_0x70cc23[_0xc82c3f(0xb3)](_0x70cc23['HozQZ'],_0x70cc23[_0xc82c3f(0x11b)])){const _0x5aa9af={'ZfFFy':function(_0x31b2f0,_0x1cd7bb){const _0x262d00=_0xc82c3f;return _0x70cc23[_0x262d00(0xb1)](_0x31b2f0,_0x1cd7bb);},'VuFsW':function(_0x3bf29a,_0x2cdd5f){const _0x21999a=_0xc82c3f;return _0x70cc23[_0x21999a(0xad)](_0x3bf29a,_0x2cdd5f);}};_0x83ffd1=_0xc82c3f(0xd7),_0x33b731[_0xc82c3f(0xef)](_0x528b22);try{const _0x6f3d8f={};_0x6f3d8f[_0xc82c3f(0xf2)]=_0x2cccd6,_0x6f3d8f[_0xc82c3f(0x10a)]=_0x455c06[_0xc82c3f(0x10a)],_0x6f3d8f[_0xc82c3f(0xdd)]=_0x2c2012;const _0x426ec3=_0x6f3d8f,_0x5ecdaa=_0x70cc23[_0xc82c3f(0xe9)](_0x11eea2,_0x426ec3);let _0x2576e5=0x0;const _0xc5866c=async()=>{const _0x1ff738=_0xc82c3f;_0x2576e5++,_0x5aa9af[_0x1ff738(0x122)](_0x2576e5,0x1)&&_0x5ecdaa&&_0x5ecdaa['isRunning']()&&_0x5aa9af[_0x1ff738(0xbc)](_0x4f3148,_0x5ecdaa);};_0x1e078c['on'](_0x70cc23[_0xc82c3f(0x116)],_0xc5866c),_0xbe8340['on'](_0x70cc23[_0xc82c3f(0x104)],_0xc5866c),_0x40bae9['on'](_0x70cc23['Qhftw'],_0xc5866c),_0x64856f=_0xc82c3f(0xee),_0x14374c[_0xc82c3f(0xef)](_0x26ac68);}catch(_0x43171e){_0x70cc23['JzuZg'](_0x29648c,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid');}}else{const _0x3cf391={};_0x3cf391[_0xc82c3f(0xf2)]=_0xae069c,_0x3cf391[_0xc82c3f(0x10a)]=_0x509b8e[_0xc82c3f(0x10a)],_0x3cf391[_0xc82c3f(0xdd)]=_0xd59217;const _0x3dc345=_0x3cf391,_0x2f7db2=_0x70cc23['QqebC'](startLocalBinarySync,_0x3dc345);let _0x58f1a0=0x0;const _0x416d8c=async()=>{const _0x35e53d=_0xc82c3f,_0x36941d={'yiOBb':function(_0x53999b,_0x7fa9c4){const _0x40a73f=a2_0x4184;return _0x70cc23[_0x40a73f(0xb1)](_0x53999b,_0x7fa9c4);},'JfSKF':function(_0x39ff6a,_0x40fb38){return _0x70cc23['JzuZg'](_0x39ff6a,_0x40fb38);},'ZoSfG':_0x70cc23['DqpOM'],'xzQQz':_0x70cc23['Asmiz'],'hXJai':_0x70cc23[_0x35e53d(0x118)]};if(_0x70cc23[_0x35e53d(0xc0)](_0x70cc23[_0x35e53d(0xc9)],_0x70cc23[_0x35e53d(0xcb)]))_0x58f1a0++,_0x70cc23[_0x35e53d(0xf8)](_0x58f1a0,0x1)&&_0x2f7db2&&_0x2f7db2[_0x35e53d(0xf5)]()&&_0x70cc23[_0x35e53d(0x103)](stopLocalBinary,_0x2f7db2);else{const _0x27a973={};_0x27a973[_0x35e53d(0xf2)]=_0x427989,_0x27a973[_0x35e53d(0x10a)]=_0x1663ba['customRepeaters'],_0x27a973[_0x35e53d(0xdd)]=_0x3964fa;const _0x11e930=_0x27a973,_0x5a35bd=_0x36941d[_0x35e53d(0x11e)](_0x1d4a71,_0x11e930);let _0x204940=0x0;const _0x1242ab=async()=>{const _0x4bb0bc=_0x35e53d;_0x204940++,_0x36941d[_0x4bb0bc(0xb6)](_0x204940,0x1)&&_0x5a35bd&&_0x5a35bd[_0x4bb0bc(0xf5)]()&&_0x36941d[_0x4bb0bc(0x11e)](_0x38f8ba,_0x5a35bd);};_0x46add0['on'](_0x36941d['ZoSfG'],_0x1242ab),_0x4eb39b['on'](_0x36941d[_0x35e53d(0xb0)],_0x1242ab),_0x1b42e['on'](_0x36941d[_0x35e53d(0x112)],_0x1242ab),_0x2de124=_0x35e53d(0xee),_0x19f009[_0x35e53d(0xef)](_0x4a40ec);}};process['on'](_0x70cc23[_0xc82c3f(0x116)],_0x416d8c),process['on'](_0x70cc23[_0xc82c3f(0x104)],_0x416d8c),process['on'](_0x70cc23[_0xc82c3f(0x118)],_0x416d8c),logMessage=_0xc82c3f(0xee),logger[_0xc82c3f(0xef)](logMessage);}}catch(_0x1f89f9){if(_0x70cc23[_0xc82c3f(0xfa)](_0x70cc23[_0xc82c3f(0x11f)],_0x70cc23[_0xc82c3f(0x11f)]))_0x70cc23[_0xc82c3f(0xc6)](_0x2e9e26,_0xc82c3f(0xbe));else{const _0xb6b18c={};_0xb6b18c[_0xc82c3f(0xcc)]=_0x70cc23[_0xc82c3f(0xf1)],_0xb6b18c[_0xc82c3f(0x115)]=_0x70cc23[_0xc82c3f(0xd3)];const _0x5d541a={};_0x5d541a[_0xc82c3f(0xcc)]=_0x70cc23[_0xc82c3f(0xbd)],_0x5d541a[_0xc82c3f(0x115)]=_0x70cc23[_0xc82c3f(0xd3)];const _0x48b84b={};_0x48b84b[_0xc82c3f(0xc4)]=!![],_0x48b84b[_0xc82c3f(0xcc)]=_0x70cc23['LZycl'],_0x48b84b[_0xc82c3f(0x115)]=_0x70cc23['pJItf'];const _0xb591e7={};_0xb591e7[_0xc82c3f(0xcc)]=_0x70cc23[_0xc82c3f(0xeb)],_0xb591e7[_0xc82c3f(0x115)]=_0x70cc23[_0xc82c3f(0xd3)];const _0x5db701={};_0x5db701[_0xc82c3f(0xcc)]=_0x70cc23[_0xc82c3f(0xf3)],_0x5db701[_0xc82c3f(0x115)]=_0x70cc23[_0xc82c3f(0xd3)];const _0x13edea={};return _0x13edea[_0xc82c3f(0xb9)]=_0xb6b18c,_0x13edea[_0xc82c3f(0xd1)]=_0x5d541a,_0x13edea['grid-id']=_0x48b84b,_0x13edea[_0xc82c3f(0xdc)]=_0xb591e7,_0x13edea[_0xc82c3f(0xd9)]=_0x5db701,_0x514a3f[_0xc82c3f(0x119)](_0x1be4ca[_0xc82c3f(0xd8)])['epilogue'](_0x4794b4)[_0xc82c3f(0xca)](_0x13edea)[_0xc82c3f(0x113)](_0x70cc23[_0xc82c3f(0xb7)])[_0xc82c3f(0xed)];}}}else _0x281d44++,_0x70cc23['opGkA'](_0x16fecd,0x1)&&_0x58005d&&_0x5d5cd9[_0xc82c3f(0xf5)]()&&_0x70cc23[_0xc82c3f(0x103)](_0x5af4af,_0x41e4ac);}process['exit'](0x0);};
1
+ const a2_0x369a87=a2_0x3826;(function(_0x196eeb,_0x5ba07c){const _0xc5cf7c=a2_0x3826,_0x12a767=_0x196eeb();while(!![]){try{const _0x55b55a=parseInt(_0xc5cf7c(0xc7))/0x1+-parseInt(_0xc5cf7c(0xb3))/0x2*(-parseInt(_0xc5cf7c(0xa0))/0x3)+-parseInt(_0xc5cf7c(0xa1))/0x4+-parseInt(_0xc5cf7c(0x73))/0x5+parseInt(_0xc5cf7c(0xb1))/0x6+-parseInt(_0xc5cf7c(0xbc))/0x7*(-parseInt(_0xc5cf7c(0xcd))/0x8)+parseInt(_0xc5cf7c(0xb8))/0x9*(-parseInt(_0xc5cf7c(0x92))/0xa);if(_0x55b55a===_0x5ba07c)break;else _0x12a767['push'](_0x12a767['shift']());}catch(_0x19c110){_0x12a767['push'](_0x12a767['shift']());}}}(a2_0x53b5,0xe4b98));function a2_0x53b5(){const _0x2f3f17=['create','4163140DeKMND','HnmcZ','use-staging','useStaging','FHIGJ','command','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','cMGbP','advance-options','LkiYY','MbzmF','HbiLz','uZhPw','advanceOptions','VQnqF','MSLYu','VwrZV','mRENI','Pass\x20the\x20ID\x20of\x20the\x20Grid','VPDmS','DWohi','Fqnkj','string','options','zTmPB','IiunY','../../config/logger','LJPBA','UWhDV','Eqbgn','isRunning','30womPpR','elUyy','grid-id','true','Hbibt','accessKey','SdgJD','ffbTq','NjPAJ','gridId','SIGINT','usage','WcByt','bstack-username','42NLSQNq','108448SPBuwS','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.','argv','BADYV','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','type','error','UhrNf','epilogue','jGEvN','FvoFi','customRepeaters','UlIyb','uZDvR','builder','TDPzJ','3395814zQxfyt','help','126858SRwfWE','NYoeU','description','vPTdm','khhjo','5345451bVZoIP','isTrialGrid','Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','QFbAI','7sSSnRe','desc','../../utils/utilityMethods','gWnpq','Mywlm','Advance\x20options\x20for\x20Browserstack\x20Local','grid','browserStackLocalOptions','CHfBD','exit','ObWLV','282869dnvPwH','grFGa','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','xGIqr','Grid\x20type:\x20Trial','bstack-accesskey','14732552zTDnWL','BcuiW','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','handler','gAHwj','info'];a2_0x53b5=function(){return _0x2f3f17;};return a2_0x53b5();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require(a2_0x369a87(0x8d)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a2_0x369a87(0xbe));function a2_0x3826(_0x535fe9,_0x4864ef){const _0x53b5ac=a2_0x53b5();return a2_0x3826=function(_0x382653,_0x174952){_0x382653=_0x382653-0x6f;let _0x5b1863=_0x53b5ac[_0x382653];return _0x5b1863;},a2_0x3826(_0x535fe9,_0x4864ef);}exports[a2_0x369a87(0x78)]=a2_0x369a87(0xc2),exports[a2_0x369a87(0xbd)]=a2_0x369a87(0xcf),exports[a2_0x369a87(0xaf)]=_0xfff293=>{const _0x5e7cce=a2_0x369a87,_0x6e9bd9={};_0x6e9bd9[_0x5e7cce(0xc6)]=_0x5e7cce(0xa5),_0x6e9bd9['FvoFi']=_0x5e7cce(0x89),_0x6e9bd9['vIcYG']='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x6e9bd9['QFbAI']=_0x5e7cce(0x85),_0x6e9bd9[_0x5e7cce(0xb7)]='Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.',_0x6e9bd9[_0x5e7cce(0x8c)]=_0x5e7cce(0xc1),_0x6e9bd9[_0x5e7cce(0x87)]='help';const _0x45d77f=_0x6e9bd9,_0x3df739={};_0x3df739['description']=_0x45d77f[_0x5e7cce(0xc6)],_0x3df739['type']=_0x45d77f[_0x5e7cce(0xab)];const _0x635340={};_0x635340[_0x5e7cce(0xb5)]=_0x45d77f['vIcYG'],_0x635340[_0x5e7cce(0xa6)]=_0x45d77f[_0x5e7cce(0xab)];const _0x2c89ab={};_0x2c89ab['demandOption']=!![],_0x2c89ab['description']=_0x45d77f[_0x5e7cce(0xbb)],_0x2c89ab['type']=_0x45d77f['FvoFi'];const _0x934d05={};_0x934d05[_0x5e7cce(0xb5)]=_0x45d77f['khhjo'],_0x934d05['type']=_0x45d77f[_0x5e7cce(0xab)];const _0x574045={};_0x574045[_0x5e7cce(0xb5)]=_0x45d77f['IiunY'],_0x574045[_0x5e7cce(0xa6)]=_0x45d77f[_0x5e7cce(0xab)];const _0x27b037={};return _0x27b037[_0x5e7cce(0x9f)]=_0x3df739,_0x27b037['bstack-accesskey']=_0x635340,_0x27b037[_0x5e7cce(0x94)]=_0x2c89ab,_0x27b037['use-staging']=_0x934d05,_0x27b037[_0x5e7cce(0x7b)]=_0x574045,_0xfff293[_0x5e7cce(0x9d)](HELP_HEADER_MESSAGE[_0x5e7cce(0x72)])[_0x5e7cce(0xa9)](HELP_FOOTER_MESSAGE)[_0x5e7cce(0x8a)](_0x27b037)[_0x5e7cce(0xb2)](_0x45d77f[_0x5e7cce(0x87)])[_0x5e7cce(0xa3)];},exports[a2_0x369a87(0x6f)]=async _0x373250=>{const _0x1f165d=a2_0x369a87,_0x3916a6={'gAHwj':function(_0x44fb10,_0x5c3553){return _0x44fb10!==_0x5c3553;},'LkiYY':_0x1f165d(0x7e),'VwrZV':function(_0x2fcd21,_0x5038aa){return _0x2fcd21(_0x5038aa);},'UhrNf':function(_0x153207,_0x41c45e){return _0x153207(_0x41c45e);},'NYoeU':_0x1f165d(0xa5),'VPDmS':_0x1f165d(0x89),'jGEvN':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','HUPdB':_0x1f165d(0x85),'LJPBA':'Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','pxccT':'Advance\x20options\x20for\x20Browserstack\x20Local','WcByt':_0x1f165d(0xb2),'Hbibt':function(_0x312590,_0x55c224){return _0x312590==_0x55c224;},'elUyy':function(_0x214626,_0x39f879){return _0x214626(_0x39f879);},'FHIGJ':function(_0x3aca92,_0xaac86e){return _0x3aca92(_0xaac86e);},'UlIyb':'beforeExit','cMGbP':_0x1f165d(0x9c),'CHfBD':'SIGTERM','vPTdm':_0x1f165d(0x8b),'VQnqF':_0x1f165d(0x82),'Mywlm':function(_0x34e9e8,_0x37912f){return _0x34e9e8(_0x37912f);},'iJCpt':function(_0x2090b2,_0x4e5698,_0x1cb4e4){return _0x2090b2(_0x4e5698,_0x1cb4e4);},'NjPAJ':function(_0x4e250d,_0x1c2168){return _0x4e250d&&_0x1c2168;},'TDPzJ':function(_0x532733,_0x3c7958){return _0x532733===_0x3c7958;},'ffbTq':_0x1f165d(0x90),'pCRYX':function(_0x569654,_0x43b1a3,_0x1bf38a,_0x970297){return _0x569654(_0x43b1a3,_0x1bf38a,_0x970297);},'HnmcZ':function(_0x558622,_0x5ada13){return _0x558622!==_0x5ada13;},'xGIqr':'MBaYg','gtMSB':'sPNVE','Fqnkj':function(_0x487690,_0x1e3e6d){return _0x487690===_0x1e3e6d;},'uZhPw':_0x1f165d(0x95),'mRENI':_0x1f165d(0xae),'XhLvk':_0x1f165d(0x98),'BcuiW':_0x1f165d(0xc8),'UWhDV':_0x1f165d(0xbf)};let _0x2fcb80=_0x373250['bstackUsername'],_0x12b5d1=_0x373250['bstackAccesskey'],_0x431b6c=_0x373250[_0x1f165d(0x80)];const _0x2d43b3=_0x1a870b=>{const _0x4e93d7=_0x1f165d;_0x3916a6[_0x4e93d7(0x70)](_0x3916a6[_0x4e93d7(0x7c)],_0x3916a6[_0x4e93d7(0x7c)])?(_0xaea783[_0x4e93d7(0xa7)](_0x37f756),_0x81833e[_0x4e93d7(0xc5)](0x1)):(logger['error'](_0x1a870b),process[_0x4e93d7(0xc5)](0x1));};[_0x2fcb80,_0x12b5d1]=_0x3916a6['iJCpt'](fetchOrUpdateUserConfig,_0x2fcb80,_0x12b5d1);!_0x3916a6[_0x1f165d(0x9a)](_0x2fcb80,_0x12b5d1)&&(_0x3916a6['TDPzJ'](_0x3916a6[_0x1f165d(0x99)],_0x3916a6[_0x1f165d(0x99)])?_0x3916a6[_0x1f165d(0xa8)](_0x2d43b3,_0x1f165d(0xba)):_0x3916a6[_0x1f165d(0x83)](_0x107c32,'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid'));let _0x17c108=_0x373250[_0x1f165d(0x9b)],_0x2fa7af=await _0x3916a6['pCRYX'](getGridDetails,_0x2fcb80,_0x12b5d1,_0x17c108);!_0x2fa7af&&(_0x3916a6[_0x1f165d(0x74)](_0x3916a6[_0x1f165d(0xca)],_0x3916a6['gtMSB'])?_0x3916a6[_0x1f165d(0x83)](_0x2d43b3,_0x1f165d(0xc9)):_0x3916a6['UhrNf'](_0x42464a,_0x1f165d(0xc9)));let _0xaef1c4=_0x3916a6[_0x1f165d(0x88)](_0x373250[_0x1f165d(0x76)],_0x3916a6[_0x1f165d(0x7f)])?!![]:![];if(_0x2fa7af&&_0x2fa7af[_0x1f165d(0xb9)]&&_0xaef1c4){if(_0x3916a6[_0x1f165d(0x88)](_0x3916a6[_0x1f165d(0x84)],_0x3916a6['XhLvk'])){const _0x311117={};_0x311117['description']=_0x3916a6[_0x1f165d(0xb4)],_0x311117[_0x1f165d(0xa6)]=_0x3916a6[_0x1f165d(0x86)];const _0x2b389a={};_0x2b389a[_0x1f165d(0xb5)]=_0x3916a6[_0x1f165d(0xaa)],_0x2b389a['type']=_0x3916a6[_0x1f165d(0x86)];const _0x544984={};_0x544984['demandOption']=!![],_0x544984['description']=_0x3916a6['HUPdB'],_0x544984[_0x1f165d(0xa6)]=_0x3916a6[_0x1f165d(0x86)];const _0x44606b={};_0x44606b['description']=_0x3916a6[_0x1f165d(0x8e)],_0x44606b[_0x1f165d(0xa6)]=_0x3916a6['VPDmS'];const _0x5f03d9={};_0x5f03d9[_0x1f165d(0xb5)]=_0x3916a6['pxccT'],_0x5f03d9[_0x1f165d(0xa6)]=_0x3916a6[_0x1f165d(0x86)];const _0x23f8a2={};return _0x23f8a2[_0x1f165d(0x9f)]=_0x311117,_0x23f8a2[_0x1f165d(0xcc)]=_0x2b389a,_0x23f8a2['grid-id']=_0x544984,_0x23f8a2[_0x1f165d(0x75)]=_0x44606b,_0x23f8a2[_0x1f165d(0x7b)]=_0x5f03d9,_0x42e0f5[_0x1f165d(0x9d)](_0x22ea5f[_0x1f165d(0x72)])[_0x1f165d(0xa9)](_0x25f5a8)[_0x1f165d(0x8a)](_0x23f8a2)[_0x1f165d(0xb2)](_0x3916a6[_0x1f165d(0x9e)])[_0x1f165d(0xa3)];}else{logMessage=_0x1f165d(0xcb),logger[_0x1f165d(0x71)](logMessage);try{if(_0x3916a6[_0x1f165d(0x74)](_0x3916a6[_0x1f165d(0xce)],_0x3916a6[_0x1f165d(0xce)])){const _0x4331b4={};_0x4331b4['accessKey']=_0x5200a6,_0x4331b4[_0x1f165d(0xac)]=_0x34b5e5[_0x1f165d(0xac)],_0x4331b4['browserStackLocalOptions']=_0x183b95;const _0x2b4bf1=_0x4331b4,_0xc99dc6=_0x3916a6[_0x1f165d(0x77)](_0x17c6eb,_0x2b4bf1);let _0x270ef6=0x0;const _0x18512f=async()=>{const _0x2a6f8d=_0x1f165d;_0x270ef6++,_0x3916a6[_0x2a6f8d(0x96)](_0x270ef6,0x1)&&_0xc99dc6&&_0xc99dc6[_0x2a6f8d(0x91)]()&&_0x3916a6[_0x2a6f8d(0x93)](_0x2cce7b,_0xc99dc6);};_0x23b3ca['on'](_0x3916a6[_0x1f165d(0xad)],_0x18512f),_0x4060c4['on'](_0x3916a6['cMGbP'],_0x18512f),_0x5618b9['on'](_0x3916a6[_0x1f165d(0xc4)],_0x18512f),_0x5bbd8d=_0x1f165d(0xa2),_0x2577a9['info'](_0x3fe9a0);}else{const _0x47812a={};_0x47812a[_0x1f165d(0x97)]=_0x12b5d1,_0x47812a[_0x1f165d(0xac)]=_0x2fa7af[_0x1f165d(0xac)],_0x47812a['browserStackLocalOptions']=_0x431b6c;const _0x5d502e=_0x47812a,_0x342d67=_0x3916a6[_0x1f165d(0x77)](startLocalBinarySync,_0x5d502e);let _0x47cfdd=0x0;const _0x2e5e0d=async()=>{const _0x258ce6=_0x1f165d;if(_0x3916a6['gAHwj'](_0x3916a6[_0x258ce6(0xb6)],_0x3916a6[_0x258ce6(0x81)]))_0x47cfdd++,_0x3916a6[_0x258ce6(0x96)](_0x47cfdd,0x1)&&_0x342d67&&_0x342d67[_0x258ce6(0x91)]()&&_0x3916a6[_0x258ce6(0xc0)](stopLocalBinary,_0x342d67);else{const _0x1f70b6={'BADYV':function(_0x4e37c,_0x5f3799){const _0x41f162=_0x258ce6;return _0x3916a6[_0x41f162(0x96)](_0x4e37c,_0x5f3799);},'MbzmF':function(_0x58470d,_0x55c970){return _0x3916a6['FHIGJ'](_0x58470d,_0x55c970);}};_0x57eea4=_0x258ce6(0xcb),_0x1ba16e[_0x258ce6(0x71)](_0x6b3b3f);try{const _0x2c1c88={};_0x2c1c88[_0x258ce6(0x97)]=_0x5c5d43,_0x2c1c88[_0x258ce6(0xac)]=_0x12a8ee['customRepeaters'],_0x2c1c88[_0x258ce6(0xc3)]=_0x2dd53c;const _0x228785=_0x2c1c88,_0x3a726=_0x3916a6[_0x258ce6(0x93)](_0x36ee83,_0x228785);let _0x323ccf=0x0;const _0x259285=async()=>{const _0x42f030=_0x258ce6;_0x323ccf++,_0x1f70b6[_0x42f030(0xa4)](_0x323ccf,0x1)&&_0x3a726&&_0x3a726[_0x42f030(0x91)]()&&_0x1f70b6[_0x42f030(0x7d)](_0x148aee,_0x3a726);};_0x27aba3['on'](_0x3916a6[_0x258ce6(0xad)],_0x259285),_0x1dfa6b['on'](_0x3916a6[_0x258ce6(0x7a)],_0x259285),_0x820a67['on'](_0x3916a6[_0x258ce6(0xc4)],_0x259285),_0x539d9e='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.',_0xe901c0['info'](_0xbed84b);}catch(_0x449d00){_0x3916a6['VwrZV'](_0x43b661,_0x258ce6(0x79));}}};process['on'](_0x3916a6[_0x1f165d(0xad)],_0x2e5e0d),process['on'](_0x3916a6['cMGbP'],_0x2e5e0d),process['on'](_0x3916a6[_0x1f165d(0xc4)],_0x2e5e0d),logMessage='We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.',logger[_0x1f165d(0x71)](logMessage);}}catch(_0x38deb8){_0x3916a6[_0x1f165d(0xb0)](_0x3916a6[_0x1f165d(0x8f)],_0x3916a6[_0x1f165d(0x8f)])?_0x3916a6[_0x1f165d(0xa8)](_0x2d43b3,_0x1f165d(0x79)):_0x3916a6[_0x1f165d(0x83)](_0x4ce5d3,_0x1f165d(0xba));}}}process[_0x1f165d(0xc5)](0x0);};
@@ -1 +1 @@
1
- function a3_0x4b43(_0x4ddc6d,_0x513924){const _0x21aaca=a3_0x21aa();return a3_0x4b43=function(_0x4b432c,_0x3a57f6){_0x4b432c=_0x4b432c-0xcf;let _0x35d8a6=_0x21aaca[_0x4b432c];return _0x35d8a6;},a3_0x4b43(_0x4ddc6d,_0x513924);}const a3_0x445b44=a3_0x4b43;function a3_0x21aa(){const _0x4ca0b0=['handler','9kNQdnn','demandCommand','desc','xsIZu','create','3139230tXsgbY','ybQpM','create_commands','127477LjFPUt','245NyXjIW','187176Xctjzm','recommendCommands','2GCkTar','6290328vQSpbm','usage','18952250RoqIws','help','builder','strict','329990bCEEZb','../config/constants','1931540qIKiMO'];a3_0x21aa=function(){return _0x4ca0b0;};return a3_0x21aa();}(function(_0x1f8528,_0x3723dc){const _0x1e908f=a3_0x4b43,_0x4669fc=_0x1f8528();while(!![]){try{const _0x3ec9ff=-parseInt(_0x1e908f(0xe4))/0x1*(-parseInt(_0x1e908f(0xd1))/0x2)+-parseInt(_0x1e908f(0xe1))/0x3+-parseInt(_0x1e908f(0xda))/0x4+-parseInt(_0x1e908f(0xd8))/0x5+parseInt(_0x1e908f(0xd2))/0x6+-parseInt(_0x1e908f(0xe5))/0x7*(parseInt(_0x1e908f(0xcf))/0x8)+-parseInt(_0x1e908f(0xdc))/0x9*(-parseInt(_0x1e908f(0xd4))/0xa);if(_0x3ec9ff===_0x3723dc)break;else _0x4669fc['push'](_0x4669fc['shift']());}catch(_0x17f46a){_0x4669fc['push'](_0x4669fc['shift']());}}}(a3_0x21aa,0xa0606));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a3_0x445b44(0xd9));exports['command']=a3_0x445b44(0xe0),exports[a3_0x445b44(0xde)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a3_0x445b44(0xd6)]=function(_0x13bd39){const _0x2746f5=a3_0x445b44,_0x190a51={};_0x190a51[_0x2746f5(0xdf)]=_0x2746f5(0xe3),_0x190a51['ybQpM']=_0x2746f5(0xd5);const _0x24f8e1=_0x190a51;return _0x13bd39[_0x2746f5(0xd3)](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x24f8e1[_0x2746f5(0xdf)])[_0x2746f5(0xdd)]()[_0x2746f5(0xd0)]()[_0x2746f5(0xd7)]()['help'](_0x24f8e1[_0x2746f5(0xe2)]);},exports[a3_0x445b44(0xdb)]=function(_0x3f42d5){};
1
+ const a3_0x2316a9=a3_0x138d;(function(_0x167556,_0x3b8fa0){const _0x595b92=a3_0x138d,_0x416432=_0x167556();while(!![]){try{const _0x3a4009=-parseInt(_0x595b92(0xf1))/0x1+parseInt(_0x595b92(0xfe))/0x2*(parseInt(_0x595b92(0xeb))/0x3)+-parseInt(_0x595b92(0xf2))/0x4*(parseInt(_0x595b92(0xfb))/0x5)+parseInt(_0x595b92(0xe8))/0x6*(parseInt(_0x595b92(0xff))/0x7)+-parseInt(_0x595b92(0xfc))/0x8*(-parseInt(_0x595b92(0xf9))/0x9)+-parseInt(_0x595b92(0xef))/0xa*(-parseInt(_0x595b92(0xf8))/0xb)+-parseInt(_0x595b92(0xfa))/0xc*(parseInt(_0x595b92(0xf6))/0xd);if(_0x3a4009===_0x3b8fa0)break;else _0x416432['push'](_0x416432['shift']());}catch(_0x37b8df){_0x416432['push'](_0x416432['shift']());}}}(a3_0x1c22,0x6a47c));function a3_0x1c22(){const _0x5c1ed4=['help','desc','345110MtnHJy','builder','417629TpYStN','500JQYriR','handler','epilogue','CJSJL','559OohCRS','../config/constants','121joppzQ','23121pZPhWj','215772zetGwd','24935hPbZTr','2504sNzLJo','usage','12644fdQzQE','917MylHzA','38970fVSRtd','create','Create\x20a\x20new\x20Automation\x20grid.','102dDmBLi','DOwYw'];a3_0x1c22=function(){return _0x5c1ed4;};return a3_0x1c22();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a3_0x2316a9(0xf7));function a3_0x138d(_0x2cf262,_0x2e4f93){const _0x1c222c=a3_0x1c22();return a3_0x138d=function(_0x138dff,_0xd04c17){_0x138dff=_0x138dff-0xe8;let _0xc6e506=_0x1c222c[_0x138dff];return _0xc6e506;},a3_0x138d(_0x2cf262,_0x2e4f93);}exports['command']=a3_0x2316a9(0xe9),exports[a3_0x2316a9(0xee)]=a3_0x2316a9(0xea),exports[a3_0x2316a9(0xf0)]=function(_0x40c830){const _0x56da80=a3_0x2316a9,_0x1f793a={};_0x1f793a[_0x56da80(0xf5)]='create_commands',_0x1f793a[_0x56da80(0xec)]=_0x56da80(0xed);const _0x5ae3a3=_0x1f793a;return _0x40c830[_0x56da80(0xfd)](HELP_HEADER_MESSAGE[_0x56da80(0xe9)])[_0x56da80(0xf4)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5ae3a3['CJSJL'])['demandCommand']()['recommendCommands']()['strict']()[_0x56da80(0xed)](_0x5ae3a3[_0x56da80(0xec)]);},exports[a3_0x2316a9(0xf3)]=function(_0x4d2d95){};
@@ -1 +1 @@
1
- function a4_0x198b(){const _0x10eb5c=['vpc','974898slRtdG','adYlp','SecurityGroups\x20=>\x20','130ciujTg','mNOaZ','xlWbo','708QGVtFv','sendEventToBackend','Mcefn','sxhMW','cnjwc',',\x20Subnets\x20=>\x20','VPC\x20=>\x20','create-grid-called','request','4|5|0|2|7|6|1|3','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','nGvuA','muYHX','split','name','hFQrz','createdBy','handler','concurrency','dvlQP','GVBLR','bstackAccesskey','../../utils/createAutoscalerStack','help','QaDWr','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','742326qWJVzv','Browserstack','Cluster\x20','../../utils/webSocketUtils','s3bucket','BSPWW','reCTQ','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','Stacks','HGCtK','555450TlrHiW','Configuring\x20AWS','ERROR','grid-profile','CoNxf','kuMhD','OutputValue','createNamespace','UmsNq','pre-spawned-invalid-subnets','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','EcuHn','ZMGRc','cloudProvider','status','CLI_RUN_FINISHED','Creating\x20namespace','QYbDP','/packages/cli/create-grid-checks?gridName=','oDjtk','ingress','tebxO','AneHf','PmEBe','../../utils/AWSUtils','match','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','stringify','8oGZSQr','gridName','Grid\x20spawned\x20on\x20the\x20cluster','kBsOi','cloud-provider','warn','4|1|2|0|3','Will\x20be\x20spawning\x20the\x20grid\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','MhTex','ILQfE','Following\x20resources\x20are\x20created:','WXhHj','non-aws-cluster','KottV','../../utils/utilityMethods','../../config/constants','Cluster\x20and\x20node\x20group\x20created\x20successfully','bqjbi','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','LWSfv','data','VdRfJ','znsnh','Deleting\x20the\x20CloudFormation\x20Stacks','HoQyY','cloudProviderAccessKey','gridProfiles','EIblZ','catch','Adding\x20Websocket\x20listeners','FrJDe','parse','replace','-NodeGroup','reportToGalactusAndSendToEDS','clusterName','dEceN','Bnnsn','Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','statusCode','string','uWLXR','addListeners','Creating\x20Autoscaler\x20Role','accessKey','util','Outputs','promisify','Autoscaler\x20Role\x20created.ARN:\x20','WFqmz','error','1249112fpXWgP','method','kube-system','EPDbV','LOG','WARNING','create-grid-checks-null-response','\x20are\x20not\x20present\x20in\x20VPC:\x20','auth','cluster','nduZS','GPIqi','then','../../utils/gridComponents','body','metadata','jOpaa','grid','tEZAC','XKJhl','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','gridProfileId','vazCd','CCzsm','ZOcOg','xBpMv','qaXdl','nodegroup','wERLn','gridProfile','Grid\x20profile\x20fetched\x20from\x20backend','GET','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','bRkaK','vlEsk','create-grid-checks-grid-already-exists','Spawning\x20Grid\x20on\x20the\x20Cluster','OLHyN','lRdYO','init-not-called','Coipy','wGLnV','1|5|7|0|2|3|4|6','create-grid-checks-non-200','VJanA','HRZQw','ithtD','rjeOZ','Found\x20Subnets:\x20','vkZCB','\x27\x20grid\x20profile','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','region','warning','52Myirzh','qiAyc','readNamespacedService','default','xaaLq','mLKXU','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','defaultGridProfile','HhNMt','hostname','7VRnJDM',',\x20SecurityGroups\x20=>\x20','../../utils/createk8sClient','WebSocket','uxTGC','Rvkdn','tpOWL','qugcr','Spawning\x20the\x20grid\x20','password','../../utils/instrumentationUtils','\x20in\x20existing\x20cluster\x20\x27','juKdK','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','lTgZx','The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','existsSync','endpoint','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Found\x20VPC:\x20','EaYdF','../../utils/hstUtils','../../config/logger','LcOth','GiHvv','pEoXL','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','usage','1ycpyeT','ClusterRole\x20=>\x20','pre-spawned-invalid-vpc','VoFSU','qnfOD','../../utils/deleteStack','cUrlj','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','PgAiL','delay','wjhbZ','fcXzF','zXAJH','sAnzT','cloudProviderSecretKey','kpMIr','JonZH','biXVb','user','requestId','YRAfN','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','mPtUq','Eokbw','1|5|2|6|3|4|0','info','Subnets:\x20','exit','XziBW','CLI_RUN_STARTED','builder','ceHqF','message','FQotu','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use--grid\x20-\x20name\x20option\x20to\x20provide\x20another\x20grid\x20name','3318840aVTpvH','createNamespacedConfigMap','type','kMlTi','nROFv','14122416DtkxAt','HZoWv',':4444/wd/hub','create-grid-checks-auth-failed','username','NodeRole\x20=>\x20','Cluster\x20=>\x20','Wjipb','<UsernamePlaceholder>','create-grid-checks-invalid-profile','PPLpP',',\x20VPC\x20=>\x20','ZDHem','toLowerCase','nOcZF','AfCzZ','sNnSM','fNZdu','Authmap\x20already\x20exists.\x20Not\x20updating','gHuEr','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','description','zYEkh','cluster-name','4|1|3|2|0','5sCbZEw','Grid\x20can\x20be\x20accessed\x20at:\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','subnets','debug','prespawned-cluster-args-not-passed','qQWxX','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20only\x20AWS\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','KoWTi','lUSiL','argv','269203wtufeY','clusterRegion','dkurn','create','VYUQc','../../utils/createClusterStack','RFABy','SloIg','hBdxO','https://','uuid','annotations','loadBalancer','autoscaler-creation-failed','MIslv','CnEai','IVcVx','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20http://','writeFileSync','rHfWe','epilogue','grid-name'];a4_0x198b=function(){return _0x10eb5c;};return a4_0x198b();}const a4_0x2c0ada=a4_0x45e5;(function(_0x5a2caa,_0x10b62c){const _0x16106b=a4_0x45e5,_0x5c1299=_0x5a2caa();while(!![]){try{const _0x5ebda9=-parseInt(_0x16106b(0x287))/0x1*(-parseInt(_0x16106b(0x22b))/0x2)+-parseInt(_0x16106b(0x1db))/0x3*(parseInt(_0x16106b(0x1f7))/0x4)+parseInt(_0x16106b(0x2c8))/0x5*(-parseInt(_0x16106b(0x1d1))/0x6)+-parseInt(_0x16106b(0x26b))/0x7*(parseInt(_0x16106b(0x2aa))/0x8)+parseInt(_0x16106b(0x2ea))/0x9*(-parseInt(_0x16106b(0x2ed))/0xa)+parseInt(_0x16106b(0x2d3))/0xb*(-parseInt(_0x16106b(0x2f0))/0xc)+parseInt(_0x16106b(0x261))/0xd*(parseInt(_0x16106b(0x2af))/0xe);if(_0x5ebda9===_0x10b62c)break;else _0x5c1299['push'](_0x5c1299['shift']());}catch(_0x223dc6){_0x5c1299['push'](_0x5c1299['shift']());}}}(a4_0x198b,0xdb603));const fs=require('fs'),ws=require('ws'),util=require(a4_0x2c0ada(0x225)),ReconnectingWebSocket=require('reconnecting-websocket'),request=require(a4_0x2c0ada(0x2f8)),{v4:uuidv4}=require(a4_0x2c0ada(0x2dd)),webSocketUtils=require(a4_0x2c0ada(0x1d4)),{logger}=require(a4_0x2c0ada(0x281)),{inputCloudProviderKeys}=require('../../utils/userInput'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a4_0x2c0ada(0x206)),{sendAWSInfoToHST}=require(a4_0x2c0ada(0x280)),{isClusterPresent,getClusterInfo,configureAWSIfNotConfigured,createAuthConfigMap,getNodeGroupInfo,isVPCPresent,isSubnetsValid}=require(a4_0x2c0ada(0x1f3)),{addGridComponents,deleteClusterAndDependencies,removeGridComponents}=require(a4_0x2c0ada(0x238)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,CLUSTER_DEP_STACK_NAME}=require(a4_0x2c0ada(0x207)),{createClusterStack}=require(a4_0x2c0ada(0x2d8)),{createAutoscalerStack}=require(a4_0x2c0ada(0x1cd)),{createK8sClient}=require(a4_0x2c0ada(0x26d)),{sendInstrumentationEvent}=require(a4_0x2c0ada(0x275)),{deleteClusterStack}=require(a4_0x2c0ada(0x28c)),promisifiedRequest=util[a4_0x2c0ada(0x227)](request);function a4_0x45e5(_0x36307d,_0x1b5a0d){const _0x198b98=a4_0x198b();return a4_0x45e5=function(_0x45e598,_0x28cde3){_0x45e598=_0x45e598-0x1c7;let _0x2ba1d3=_0x198b98[_0x45e598];return _0x2ba1d3;},a4_0x45e5(_0x36307d,_0x1b5a0d);}exports['command']=a4_0x2c0ada(0x23c),exports['desc']='Create\x20a\x20new\x20Automation\x20grid.',exports[a4_0x2c0ada(0x2a5)]=function(_0x55b067){const _0x3d30e5=a4_0x2c0ada,_0x2deeb4={};_0x2deeb4[_0x3d30e5(0x2ad)]=_0x3d30e5(0x2fa),_0x2deeb4[_0x3d30e5(0x2e1)]=_0x3d30e5(0x220),_0x2deeb4['Rwvpa']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x2deeb4[_0x3d30e5(0x28b)]=_0x3d30e5(0x1e5),_0x2deeb4['XKJhl']=_0x3d30e5(0x1ff),_0x2deeb4[_0x3d30e5(0x236)]=_0x3d30e5(0x2ca),_0x2deeb4['ZDHem']=_0x3d30e5(0x1ce);const _0x4d10a5=_0x2deeb4,_0x416057={};_0x416057[_0x3d30e5(0x2c4)]=_0x4d10a5[_0x3d30e5(0x2ad)],_0x416057[_0x3d30e5(0x2ac)]=_0x4d10a5[_0x3d30e5(0x2e1)];const _0x4e3cd5={};_0x4e3cd5[_0x3d30e5(0x2c4)]=_0x4d10a5['Rwvpa'],_0x4e3cd5[_0x3d30e5(0x2ac)]=_0x4d10a5[_0x3d30e5(0x2e1)];const _0x54a130={};_0x54a130[_0x3d30e5(0x2c4)]=_0x4d10a5[_0x3d30e5(0x28b)],_0x54a130['type']=_0x4d10a5[_0x3d30e5(0x2e1)];const _0x3711b8={};_0x3711b8['description']=_0x4d10a5[_0x3d30e5(0x23e)],_0x3711b8[_0x3d30e5(0x2ac)]=_0x4d10a5['MIslv'];const _0x3c028d={};_0x3c028d[_0x3d30e5(0x2c4)]=_0x4d10a5[_0x3d30e5(0x236)],_0x3c028d[_0x3d30e5(0x2ac)]=_0x4d10a5['MIslv'];const _0x16fb84={};return _0x16fb84[_0x3d30e5(0x2e8)]=_0x416057,_0x16fb84[_0x3d30e5(0x1de)]=_0x4e3cd5,_0x16fb84[_0x3d30e5(0x2c6)]=_0x54a130,_0x16fb84[_0x3d30e5(0x1fb)]=_0x3711b8,_0x16fb84['region']=_0x3c028d,_0x55b067[_0x3d30e5(0x286)](HELP_HEADER_MESSAGE[_0x3d30e5(0x2d6)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x16fb84)[_0x3d30e5(0x1ce)](_0x4d10a5[_0x3d30e5(0x2bb)])[_0x3d30e5(0x2d2)];},exports[a4_0x2c0ada(0x1c8)]=async function(_0x260e8e){const _0x281e7b=a4_0x2c0ada,_0x3b60bf={'sAnzT':_0x281e7b(0x1dc),'kBsOi':function(_0x6c77a9){return _0x6c77a9();},'CnEai':_0x281e7b(0x22a),'DIlit':_0x281e7b(0x2c1),'cnjwc':_0x281e7b(0x2f9),'adYlp':'0|3|2|1|4','KottV':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','zNiTq':'2|3|1|4|5|6|0','dtySr':_0x281e7b(0x2fa),'Eokbw':'string','lzMuP':_0x281e7b(0x27d),'pEoXL':_0x281e7b(0x1e5),'qQWxX':_0x281e7b(0x1ff),'BSPWW':_0x281e7b(0x2ca),'wERLn':_0x281e7b(0x1ce),'fAUCV':_0x281e7b(0x255),'gqDJr':function(_0x4dd491){return _0x4dd491();},'GiHvv':function(_0x1a794e,_0x56b089){return _0x1a794e!==_0x56b089;},'SloIg':'zUztB','Rvkdn':_0x281e7b(0x21c),'vlEsk':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','XziBW':function(_0x484c8f,_0x4fdc24,_0x3d6f54,_0x4e00bc,_0x1756b9,_0x3e90ed,_0x29fcad){return _0x484c8f(_0x4fdc24,_0x3d6f54,_0x4e00bc,_0x1756b9,_0x3e90ed,_0x29fcad);},'mPtUq':_0x281e7b(0x2f7),'vazCd':_0x281e7b(0x252),'FrJDe':function(_0x1b74b8,_0x25762c,_0x269e61,_0x1d170c,_0x444882,_0x1c138c,_0x40c884){return _0x1b74b8(_0x25762c,_0x269e61,_0x1d170c,_0x444882,_0x1c138c,_0x40c884);},'qugcr':function(_0x41356a){return _0x41356a();},'gHuEr':_0x281e7b(0x2b7),'EcuHn':'<PasswordPlaceholder>','biXVb':_0x281e7b(0x215),'kpMIr':function(_0x3effee,_0x1cb632){return _0x3effee===_0x1cb632;},'CCzsm':_0x281e7b(0x277),'zIDLl':_0x281e7b(0x262),'Coipy':_0x281e7b(0x244),'MhTex':_0x281e7b(0x1d0),'hBdxO':function(_0x51f2f2,_0x5272ae,_0x5cd44d,_0x17b17d,_0x7532a4,_0x539df4,_0x4578a1,_0x266c0b){return _0x51f2f2(_0x5272ae,_0x5cd44d,_0x17b17d,_0x7532a4,_0x539df4,_0x4578a1,_0x266c0b);},'QYbDP':_0x281e7b(0x2cd),'qBZXa':'aws','reCTQ':'RrvWe','tebxO':_0x281e7b(0x20e),'muYHX':_0x281e7b(0x2cf),'LWSfv':function(_0x489798,_0x125f6a,_0x26486a,_0x1d11b1,_0x5a303e,_0x508ba2,_0x530cb7,_0x310315){return _0x489798(_0x125f6a,_0x26486a,_0x1d11b1,_0x5a303e,_0x508ba2,_0x530cb7,_0x310315);},'sNnSM':_0x281e7b(0x204),'ceHqF':_0x281e7b(0x266),'WFqmz':function(_0x41a3b0,_0x2134e2){return _0x41a3b0===_0x2134e2;},'fcXzF':_0x281e7b(0x2f3),'jYIwH':_0x281e7b(0x24a),'lRdYO':function(_0x1d40f8,_0x1823be){return _0x1d40f8(_0x1823be);},'dkurn':function(_0xbf87b2,_0xe6635f){return _0xbf87b2==_0xe6635f;},'LcOth':function(_0x5cb642,_0x44d902){return _0x5cb642===_0x44d902;},'AneHf':_0x281e7b(0x279),'xaaLq':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','bhKsS':function(_0x3d7fdb,_0x51d126,_0x102c82,_0x3f26d4,_0xd68ac9,_0x196ff9,_0x16ab96,_0x59a9f5){return _0x3d7fdb(_0x51d126,_0x102c82,_0x3f26d4,_0xd68ac9,_0x196ff9,_0x16ab96,_0x59a9f5);},'TXQJl':_0x281e7b(0x231),'AfCzZ':function(_0x3083cf,_0xe4d6e0){return _0x3083cf===_0xe4d6e0;},'VYUQc':_0x281e7b(0x28f),'JonZH':_0x281e7b(0x1e3),'mNOaZ':_0x281e7b(0x2c3),'HZoWv':function(_0x579cb5,_0x3bc5a6,_0x20ec90,_0xc34d85,_0x4fa0ec,_0x5c1492,_0x52ee3e,_0x5bb8ce){return _0x579cb5(_0x3bc5a6,_0x20ec90,_0xc34d85,_0x4fa0ec,_0x5c1492,_0x52ee3e,_0x5bb8ce);},'edIkG':_0x281e7b(0x2b2),'Wjipb':'Tzvjj','oDjtk':_0x281e7b(0x250),'kleOR':_0x281e7b(0x256),'rjeOZ':_0x281e7b(0x249),'uxTGC':_0x281e7b(0x1ca),'CoNxf':'PTbOI','nFmDW':_0x281e7b(0x2a9),'RGNZh':_0x281e7b(0x24e),'UgqUn':function(_0x3dc19a,_0x2b6cb3){return _0x3dc19a!==_0x2b6cb3;},'jOpaa':'drJOS','rHfWe':_0x281e7b(0x2c0),'HoQyY':function(_0x36c185,_0x19d6b8){return _0x36c185===_0x19d6b8;},'nROFv':_0x281e7b(0x1cb),'tfBla':_0x281e7b(0x24b),'gacZq':_0x281e7b(0x2b8),'VoFSU':_0x281e7b(0x29f),'cUrlj':function(_0x226354,_0x3b0e4b){return _0x226354===_0x3b0e4b;},'zXAJH':_0x281e7b(0x1d8),'HRZQw':function(_0x49b96b,_0xdcbfd4){return _0x49b96b(_0xdcbfd4);},'KoWTi':function(_0x302bba){return _0x302bba();},'qaXdl':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','wjhbZ':_0x281e7b(0x2c7),'yTxbF':function(_0x5d33a8,_0x4572b6){return _0x5d33a8===_0x4572b6;},'EPDbV':function(_0x4031b9,_0x2dfec8,_0xfd0257){return _0x4031b9(_0x2dfec8,_0xfd0257);},'ZMGRc':_0x281e7b(0x1fc),'HhNMt':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','bqjbi':function(_0x5c8355,_0x33e0da){return _0x5c8355!=_0x33e0da;},'Mcefn':function(_0x4a8337,_0x477eb9){return _0x4a8337!==_0x477eb9;},'eqNNk':function(_0x30aba9,_0x5a19a5){return _0x30aba9!==_0x5a19a5;},'IVcVx':_0x281e7b(0x20a),'FQotu':function(_0x52553b,_0x17e9f0,_0x58d366,_0x1da5a7,_0x1d9c64,_0x5db480,_0x180d55,_0x902373){return _0x52553b(_0x17e9f0,_0x58d366,_0x1da5a7,_0x1d9c64,_0x5db480,_0x180d55,_0x902373);},'EaYdF':'pre-spawned-subnets-not-selected','ZOcOg':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','VJanA':_0x281e7b(0x289),'PPLpP':function(_0x506a2d,_0x7f68c5,_0x12e0f1,_0x73eb7a){return _0x506a2d(_0x7f68c5,_0x12e0f1,_0x73eb7a);},'HGCtK':function(_0x3d74d5,_0x1fa215){return _0x3d74d5===_0x1fa215;},'PmEBe':function(_0x4f3b74,_0x8e3d65,_0x583d25,_0x1c5bc6,_0x12cdd2,_0x25fc9c,_0x52dd4a,_0x327fcc){return _0x4f3b74(_0x8e3d65,_0x583d25,_0x1c5bc6,_0x12cdd2,_0x25fc9c,_0x52dd4a,_0x327fcc);},'WXhHj':_0x281e7b(0x1e4),'ithtD':_0x281e7b(0x202),'vkZCB':_0x281e7b(0x27a),'lUSiL':function(_0x53efc8,_0x4175b4){return _0x53efc8(_0x4175b4);},'nGvuA':_0x281e7b(0x21e),'pbcdJ':_0x281e7b(0x285),'kuMhD':_0x281e7b(0x208),'uWLXR':function(_0x132389,_0x35dbc3){return _0x132389(_0x35dbc3);},'nOcZF':function(_0x478d76,_0x1d4dac,_0x1ecb4b,_0x2bdf69,_0x5a0ef5){return _0x478d76(_0x1d4dac,_0x1ecb4b,_0x2bdf69,_0x5a0ef5);},'VdRfJ':function(_0x438822,_0x521b86){return _0x438822===_0x521b86;},'EIblZ':_0x281e7b(0x223),'ezePR':function(_0x4c45c7,_0xa25154){return _0x4c45c7!==_0xa25154;},'RFABy':_0x281e7b(0x21a),'tEZAC':_0x281e7b(0x260),'hFQrz':_0x281e7b(0x1fd),'tpOWL':function(_0x3e6f29,_0x3cd844){return _0x3e6f29(_0x3cd844);},'pUniO':_0x281e7b(0x2e0),'bRkaK':_0x281e7b(0x22d),'ILQfE':_0x281e7b(0x1eb),'sQzDP':function(_0xbea930,_0x2a88f0){return _0xbea930!==_0x2a88f0;},'Ktaei':_0x281e7b(0x264),'YRAfN':_0x281e7b(0x1d2),'QaDWr':'Namespace\x20Created','nduZS':'Namespace\x20created','WXoSl':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','Bnnsn':_0x281e7b(0x24f),'wGLnV':_0x281e7b(0x1f9),'FMyWJ':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','xlWbo':'browserstack-turboscale-grid-service','wkcbu':function(_0x538f8a,_0x40c53a,_0x53542d,_0x298240,_0x2ba7b6,_0xb746a5){return _0x538f8a(_0x40c53a,_0x53542d,_0x298240,_0x2ba7b6,_0xb746a5);},'zYEkh':'grid-spawning-failed'};let _0x54c76e=![],_0x1c2c75,_0x30e1e1,_0x223549,_0x2056e0,_0x1d620e,_0x3b18ce,_0x423c36,_0x1813dd,_0x32f191,_0x4aae3a;try{global_registry[_0x281e7b(0x29a)]=_0x3b60bf[_0x281e7b(0x1fa)](uuidv4);!fs[_0x281e7b(0x27b)](_0x3b60bf['gqDJr'](getCredentialsPath))&&(_0x3b60bf[_0x281e7b(0x283)](_0x3b60bf[_0x281e7b(0x2da)],_0x3b60bf[_0x281e7b(0x270)])?(console[_0x281e7b(0x22a)](_0x3b60bf[_0x281e7b(0x24d)]),await _0x3b60bf[_0x281e7b(0x2a3)](sendInstrumentationEvent,_0x260e8e,_0x3b60bf['mPtUq'],messageTypes[_0x281e7b(0x1dd)],_0x3b60bf[_0x281e7b(0x241)],null,_0x260e8e),process[_0x281e7b(0x2a2)](0x1)):(_0x430db8[_0x281e7b(0x2cc)](_0x3b60bf[_0x281e7b(0x294)]),_0x3b60bf[_0x281e7b(0x1fa)](_0x5d7bad)));await _0x3b60bf[_0x281e7b(0x216)](sendInstrumentationEvent,_0x260e8e,_0x3b60bf[_0x281e7b(0x29d)],messageTypes[_0x281e7b(0x1dd)],null,null,_0x260e8e);const _0x451381=JSON[_0x281e7b(0x217)](fs['readFileSync'](_0x3b60bf[_0x281e7b(0x272)](getCredentialsPath)));global_registry['bstackUsername']=_0x451381['Browserstack']['username'],global_registry[_0x281e7b(0x1cc)]=_0x451381[_0x281e7b(0x1d2)][_0x281e7b(0x274)];const _0x41cc67=WS_ENDPOINT['replace'](_0x3b60bf[_0x281e7b(0x2c2)],_0x451381[_0x281e7b(0x1d2)][_0x281e7b(0x2b3)])[_0x281e7b(0x218)](_0x3b60bf[_0x281e7b(0x1e6)],_0x451381['Browserstack']['password']),_0x4c3268={};_0x4c3268[_0x281e7b(0x26e)]=ws,_0x4aae3a=new ReconnectingWebSocket(_0x41cc67,[],_0x4c3268),logger[_0x281e7b(0x2cc)](_0x3b60bf[_0x281e7b(0x298)]),webSocketUtils[_0x281e7b(0x222)](_0x4aae3a,_0x260e8e[_0x281e7b(0x299)],_0x260e8e[_0x281e7b(0x274)]);let _0x4f4e04=DEFAULT_GRID_NAME;if(_0x260e8e['clusterName']||_0x260e8e[_0x281e7b(0x1e8)]||_0x260e8e['region']){if(_0x3b60bf[_0x281e7b(0x296)](_0x3b60bf[_0x281e7b(0x242)],_0x3b60bf[_0x281e7b(0x242)]))!(_0x260e8e[_0x281e7b(0x21b)]&&_0x260e8e[_0x281e7b(0x1e8)]&&_0x260e8e[_0x281e7b(0x25f)])&&(_0x3b60bf[_0x281e7b(0x296)](_0x3b60bf['zIDLl'],_0x3b60bf[_0x281e7b(0x253)])?_0x1c2c93=_0x4bbc0e['gridName']:(_0x1c2c75=_0x3b60bf[_0x281e7b(0x200)],await _0x3b60bf[_0x281e7b(0x2db)](reportToGalactusAndSendToEDS,_0x260e8e,_0x4aae3a,_0x1c2c75,messageTypes[_0x281e7b(0x1dd)],_0x3b60bf[_0x281e7b(0x29d)],_0x3b60bf[_0x281e7b(0x1ec)],_0x3b60bf[_0x281e7b(0x2e2)]),logger[_0x281e7b(0x22a)](_0x1c2c75),process['exit'](0x1))),_0x3b60bf[_0x281e7b(0x283)](_0x260e8e[_0x281e7b(0x1e8)][_0x281e7b(0x2bc)](),_0x3b60bf['qBZXa'])&&(_0x3b60bf[_0x281e7b(0x283)](_0x3b60bf[_0x281e7b(0x1d7)],_0x3b60bf[_0x281e7b(0x1f0)])?(_0x1c2c75=_0x3b60bf[_0x281e7b(0x2fc)],await _0x3b60bf[_0x281e7b(0x20b)](reportToGalactusAndSendToEDS,_0x260e8e,_0x4aae3a,_0x1c2c75,messageTypes['ERROR'],_0x3b60bf[_0x281e7b(0x29d)],_0x3b60bf[_0x281e7b(0x2bf)],_0x3b60bf[_0x281e7b(0x2e2)]),logger[_0x281e7b(0x22a)](_0x1c2c75),process[_0x281e7b(0x2a2)](0x1)):_0x2621e5=_0x31b38c[_0x25a797[_0x281e7b(0x248)]]),_0x54c76e=!![],_0x223549=_0x260e8e[_0x281e7b(0x21b)],_0x30e1e1=_0x260e8e[_0x281e7b(0x1e8)],_0x2056e0=_0x260e8e[_0x281e7b(0x25f)];else{const _0x4c0003={};_0x4c0003[_0x281e7b(0x2ac)]=_0xabe25a[_0x281e7b(0x22f)],_0x4c0003[_0x281e7b(0x2a7)]=_0x3023ca,_0x4abc13[_0x281e7b(0x2f1)](_0xb0d191,_0x4c0003,_0x3b60bf[_0x281e7b(0x2e2)],!![]);}}_0x260e8e[_0x281e7b(0x1f8)]&&(_0x3b60bf[_0x281e7b(0x296)](_0x3b60bf[_0x281e7b(0x2a6)],_0x3b60bf[_0x281e7b(0x2a6)])?_0x4f4e04=_0x260e8e[_0x281e7b(0x1f8)]:_0x30b72e[_0x281e7b(0x2a0)](_0x3b60bf['DIlit']));global_registry[_0x281e7b(0x1f8)]=_0x4f4e04;if(_0x3b60bf['kpMIr'](_0x54c76e,![])){if(_0x3b60bf[_0x281e7b(0x229)](_0x3b60bf['fcXzF'],_0x3b60bf[_0x281e7b(0x292)])){const _0x367a09=_0x281e7b(0x2dc)+AG_API_URL+_0x281e7b(0x1ed)+_0x4f4e04,_0x2535b5={};_0x2535b5[_0x281e7b(0x2b3)]=_0x451381[_0x281e7b(0x1d2)][_0x281e7b(0x2b3)],_0x2535b5['password']=_0x451381[_0x281e7b(0x1d2)][_0x281e7b(0x274)];const _0x158e0f={};_0x158e0f['url']=_0x367a09,_0x158e0f[_0x281e7b(0x22c)]=_0x3b60bf['jYIwH'],_0x158e0f[_0x281e7b(0x233)]=_0x2535b5;const _0x190c0d=_0x158e0f,_0x97caf=await _0x3b60bf['lRdYO'](promisifiedRequest,_0x190c0d);if(_0x3b60bf[_0x281e7b(0x2d5)](_0x97caf,null)||_0x3b60bf[_0x281e7b(0x2d5)](_0x97caf,undefined)){if(_0x3b60bf[_0x281e7b(0x282)](_0x3b60bf[_0x281e7b(0x1f1)],_0x3b60bf['AneHf']))_0x1c2c75=_0x3b60bf[_0x281e7b(0x265)],await _0x3b60bf['bhKsS'](reportToGalactusAndSendToEDS,_0x260e8e,_0x4aae3a,_0x1c2c75,messageTypes[_0x281e7b(0x1dd)],_0x3b60bf[_0x281e7b(0x29d)],_0x3b60bf['TXQJl'],_0x3b60bf[_0x281e7b(0x2e2)]),logger['error'](_0x1c2c75),process[_0x281e7b(0x2a2)](0x1);else{const _0x35acb6=_0x3b60bf[_0x281e7b(0x2f4)][_0x281e7b(0x2fd)]('|');let _0x24faa4=0x0;while(!![]){switch(_0x35acb6[_0x24faa4++]){case'0':_0x42ff3c[_0x281e7b(0x2a0)](_0x220aea);continue;case'1':const _0x2a1985={};_0x2a1985['type']=_0x2e7666[_0x281e7b(0x22f)],_0x2a1985[_0x281e7b(0x2a7)]=_0x22a79d,_0x24536b[_0x281e7b(0x2f1)](_0xf80afb,_0x2a1985);continue;case'2':const _0x423f3f={};_0x423f3f[_0x281e7b(0x2ac)]=_0x46d8f8['LOG'],_0x423f3f[_0x281e7b(0x2a7)]=_0x4772cd,_0x1a8a92[_0x281e7b(0x2f1)](_0x21b714,_0x423f3f);continue;case'3':const _0x1cf19f={};_0x1cf19f['type']=_0x5bf9af['CLI_RUN_FINISHED'],_0x1cf19f[_0x281e7b(0x2a7)]='CLI\x20run\x20finished:\x20'+_0x48a4a3,_0x37906f[_0x281e7b(0x2f1)](_0x360a45,_0x1cf19f);continue;case'4':_0x1daf10=_0x2c56d6[_0x281e7b(0x239)]['status'][_0x281e7b(0x2df)][_0x281e7b(0x1ef)][0x0][_0x281e7b(0x26a)];continue;case'5':_0x5e8676=_0x281e7b(0x2c9)+_0x50f299+'\x20';continue;case'6':_0x591ad0[_0x281e7b(0x2a0)](_0x1e6d72);continue;case'7':_0x37aee0=_0x281e7b(0x2e4)+_0x501004+_0x281e7b(0x2b1);continue;}break;}}}if(_0x3b60bf[_0x281e7b(0x2be)](_0x97caf['statusCode'],0x191)){if(_0x3b60bf[_0x281e7b(0x229)](_0x3b60bf[_0x281e7b(0x2d7)],_0x3b60bf[_0x281e7b(0x297)]))throw _0x379695;else _0x1c2c75=_0x3b60bf[_0x281e7b(0x2ee)],await _0x3b60bf[_0x281e7b(0x2b0)](reportToGalactusAndSendToEDS,_0x260e8e,_0x4aae3a,_0x1c2c75,messageTypes[_0x281e7b(0x1dd)],_0x3b60bf[_0x281e7b(0x29d)],_0x3b60bf['edIkG'],_0x3b60bf[_0x281e7b(0x2e2)]),logger[_0x281e7b(0x22a)](_0x1c2c75),process[_0x281e7b(0x2a2)](0x1);}_0x3b60bf['GiHvv'](_0x97caf[_0x281e7b(0x21f)],0xc8)&&(_0x3b60bf[_0x281e7b(0x283)](_0x3b60bf[_0x281e7b(0x2b6)],_0x3b60bf[_0x281e7b(0x1ee)])?(_0x1c2c75=_0x281e7b(0x278)+JSON[_0x281e7b(0x1f6)](_0x97caf),await _0x3b60bf['HZoWv'](reportToGalactusAndSendToEDS,_0x260e8e,_0x4aae3a,_0x1c2c75,messageTypes[_0x281e7b(0x1dd)],_0x3b60bf['mPtUq'],_0x3b60bf['kleOR'],_0x3b60bf[_0x281e7b(0x2e2)]),logger[_0x281e7b(0x22a)](_0x1c2c75),process[_0x281e7b(0x2a2)](0x1)):_0x28bfac['info'](_0x281e7b(0x25b)+_0xfd59d1[_0x281e7b(0x1f6)](_0x4b1f32)+'\x20'));const _0x527f77=JSON['parse'](_0x97caf[_0x281e7b(0x239)]),_0x5d6696={};_0x5d6696['type']=WS_EVENTS[_0x281e7b(0x2a4)],_0x5d6696[_0x281e7b(0x2a7)]='CLI\x20run\x20started',webSocketUtils[_0x281e7b(0x2f1)](_0x4aae3a,_0x5d6696);const _0x110e44={};_0x110e44[_0x281e7b(0x2ac)]=WS_EVENTS['LOG'],_0x110e44[_0x281e7b(0x2a7)]=_0x3b60bf[_0x281e7b(0x25a)],webSocketUtils[_0x281e7b(0x2f1)](_0x4aae3a,_0x110e44);_0x527f77['alreadyPresent']&&(_0x3b60bf[_0x281e7b(0x282)](_0x3b60bf[_0x281e7b(0x26f)],_0x3b60bf[_0x281e7b(0x1df)])?_0x526615[_0x281e7b(0x2a0)](_0x281e7b(0x27e)+_0x198715+'\x20'):(_0x1c2c75=_0x3b60bf['nFmDW'],await _0x3b60bf[_0x281e7b(0x20b)](reportToGalactusAndSendToEDS,_0x260e8e,_0x4aae3a,_0x1c2c75,messageTypes[_0x281e7b(0x1dd)],_0x3b60bf[_0x281e7b(0x29d)],_0x3b60bf['RGNZh'],_0x3b60bf[_0x281e7b(0x2e2)]),logger[_0x281e7b(0x22a)](_0x1c2c75),process[_0x281e7b(0x2a2)](0x1)));const _0x555e3a=_0x527f77[_0x281e7b(0x212)];let _0x21de97=_0x555e3a[_0x527f77[_0x281e7b(0x268)]];if(_0x260e8e[_0x281e7b(0x248)]){if(_0x3b60bf['UgqUn'](_0x3b60bf[_0x281e7b(0x23b)],_0x3b60bf[_0x281e7b(0x2e6)]))_0x21de97=_0x555e3a[_0x260e8e[_0x281e7b(0x248)]];else{const _0x1ce254=_0x3b60bf[_0x281e7b(0x2eb)][_0x281e7b(0x2fd)]('|');let _0x1faca7=0x0;while(!![]){switch(_0x1ce254[_0x1faca7++]){case'0':_0x4b9af1=_0x3b60bf[_0x281e7b(0x205)];continue;case'1':_0x3b5cf1[_0x281e7b(0x211)]=_0x1adbca[_0x5079b9][_0x281e7b(0x224)];continue;case'2':_0xbb1069[_0x281e7b(0x2a0)](_0xd9db5b);continue;case'3':const _0x1b0714={};_0x1b0714[_0x281e7b(0x2ac)]=_0x7086ec[_0x281e7b(0x22f)],_0x1b0714[_0x281e7b(0x2a7)]=_0x4f8368,_0x251410['sendEventToBackend'](_0x2b3a54,_0x1b0714);continue;case'4':_0x36adf1['cloudProviderSecretKey']=_0x2b7d57[_0xa15e9b]['secret'];continue;}break;}}}if(_0x3b60bf[_0x281e7b(0x282)](_0x21de97,undefined)){if(_0x3b60bf[_0x281e7b(0x210)](_0x3b60bf['nROFv'],_0x3b60bf[_0x281e7b(0x2ae)]))_0x1c2c75=_0x3b60bf['tfBla'],await _0x3b60bf[_0x281e7b(0x2b0)](reportToGalactusAndSendToEDS,_0x260e8e,_0x4aae3a,_0x1c2c75,messageTypes[_0x281e7b(0x1dd)],_0x3b60bf['mPtUq'],_0x3b60bf['gacZq'],_0x3b60bf['CnEai']),logger['error'](_0x1c2c75),process[_0x281e7b(0x2a2)](0x1);else{const _0x207c26=_0x3b60bf['zNiTq']['split']('|');let _0x3dcf57=0x0;while(!![]){switch(_0x207c26[_0x3dcf57++]){case'0':_0x51cdf8[_0x281e7b(0x21b)]=_0x40ad4c;continue;case'1':_0x191f23[_0x281e7b(0x2a0)](_0x8e8023);continue;case'2':const _0x1a6bb5={};_0x1a6bb5[_0x281e7b(0x2ac)]=_0x20e7e6[_0x281e7b(0x2a4)],_0x1a6bb5[_0x281e7b(0x2a7)]='CLI\x20run\x20started',_0x252af2[_0x281e7b(0x2f1)](_0x1d74a7,_0x1a6bb5);continue;case'3':_0x2b4b3e='Spawning\x20the\x20grid\x20'+_0x2bad5f+_0x281e7b(0x276)+_0x1b5c51+'\x27';continue;case'4':const _0x310eaf={};_0x310eaf['type']=_0x2dad25['LOG'],_0x310eaf[_0x281e7b(0x2a7)]=_0x30adf8,_0x5ceaa9[_0x281e7b(0x2f1)](_0x15c7b0,_0x310eaf);continue;case'5':_0x1ec211[_0x281e7b(0x1e8)]=_0x422f93;continue;case'6':_0x351006[_0x281e7b(0x2d4)]=_0x1a311e;continue;}break;}}}global_registry[_0x281e7b(0x240)]=_0x21de97['id'],_0x1c2c75=_0x281e7b(0x1fe)+_0x4f4e04+'\x20using\x20\x27'+_0x21de97[_0x281e7b(0x2fe)]+_0x281e7b(0x25d),logger['info'](_0x1c2c75);const _0x1b2bec={};_0x1b2bec[_0x281e7b(0x2ac)]=WS_EVENTS[_0x281e7b(0x22f)],_0x1b2bec[_0x281e7b(0x2a7)]=_0x1c2c75,webSocketUtils['sendEventToBackend'](_0x4aae3a,_0x1b2bec),_0x30e1e1=_0x21de97[_0x281e7b(0x1e8)],_0x223549=_0x21de97['clusterName'],_0x2056e0=_0x21de97[_0x281e7b(0x25f)],_0x1d620e=_0x21de97[_0x281e7b(0x1c9)],_0x3b18ce=_0x21de97['instanceType'],_0x423c36=_0x21de97[_0x281e7b(0x2e9)],securityGroups=_0x21de97['securityGroups'],subnets=_0x21de97[_0x281e7b(0x2cb)],_0x1813dd=_0x21de97[_0x281e7b(0x1d5)],_0x3b60bf['hBdxO'](updateGlobalRegistryWithConfig,_0x30e1e1,_0x223549,_0x2056e0,_0x1d620e,_0x3b18ce,_0x1813dd,_0x21de97);}else{const _0x24e207={};_0x24e207[_0x281e7b(0x2c4)]=_0x3b60bf['dtySr'],_0x24e207[_0x281e7b(0x2ac)]=_0x3b60bf['Eokbw'];const _0xdabb5c={};_0xdabb5c['description']=_0x3b60bf['lzMuP'],_0xdabb5c[_0x281e7b(0x2ac)]=_0x3b60bf[_0x281e7b(0x29e)];const _0x32c12d={};_0x32c12d['description']=_0x3b60bf[_0x281e7b(0x284)],_0x32c12d[_0x281e7b(0x2ac)]=_0x3b60bf[_0x281e7b(0x29e)];const _0x2538cc={};_0x2538cc[_0x281e7b(0x2c4)]=_0x3b60bf[_0x281e7b(0x2ce)],_0x2538cc['type']=_0x3b60bf[_0x281e7b(0x29e)];const _0xa4b13={};_0xa4b13['description']=_0x3b60bf[_0x281e7b(0x1d6)],_0xa4b13['type']=_0x3b60bf[_0x281e7b(0x29e)];const _0x1a436a={};return _0x1a436a[_0x281e7b(0x2e8)]=_0x24e207,_0x1a436a[_0x281e7b(0x1de)]=_0xdabb5c,_0x1a436a[_0x281e7b(0x2c6)]=_0x32c12d,_0x1a436a[_0x281e7b(0x1fb)]=_0x2538cc,_0x1a436a[_0x281e7b(0x25f)]=_0xa4b13,_0x1ec851[_0x281e7b(0x286)](_0x2251a7[_0x281e7b(0x2d6)])[_0x281e7b(0x2e7)](_0x252712)['options'](_0x1a436a)['help'](_0x3b60bf[_0x281e7b(0x247)])['argv'];}}else{const _0x3402a0=_0x3b60bf[_0x281e7b(0x28a)]['split']('|');let _0x5ab769=0x0;while(!![]){switch(_0x3402a0[_0x5ab769++]){case'0':global_registry[_0x281e7b(0x21b)]=_0x223549;continue;case'1':const _0x1989ec={};_0x1989ec['type']=WS_EVENTS['CLI_RUN_STARTED'],_0x1989ec['message']='CLI\x20run\x20started',webSocketUtils['sendEventToBackend'](_0x4aae3a,_0x1989ec);continue;case'2':logger[_0x281e7b(0x2a0)](_0x1c2c75);continue;case'3':global_registry['cloudProvider']=_0x30e1e1;continue;case'4':global_registry[_0x281e7b(0x2d4)]=_0x2056e0;continue;case'5':_0x1c2c75=_0x281e7b(0x273)+_0x4f4e04+'\x20in\x20existing\x20cluster\x20\x27'+_0x223549+'\x27';continue;case'6':const _0x53f0a3={};_0x53f0a3[_0x281e7b(0x2ac)]=WS_EVENTS['LOG'],_0x53f0a3[_0x281e7b(0x2a7)]=_0x1c2c75,webSocketUtils[_0x281e7b(0x2f1)](_0x4aae3a,_0x53f0a3);continue;}break;}}const _0x21e1c8=_0x451381[_0x281e7b(0x1e8)]||{};if(_0x3b60bf[_0x281e7b(0x28d)](_0x21e1c8[_0x30e1e1],undefined)){logger['info'](_0x3b60bf[_0x281e7b(0x293)]);const [_0x46d1df,_0x542d42]=await _0x3b60bf[_0x281e7b(0x258)](inputCloudProviderKeys,_0x30e1e1);_0x451381[_0x281e7b(0x1e8)]={};const _0x13f20e={};_0x13f20e[_0x281e7b(0x224)]=_0x46d1df,_0x13f20e['secret']=_0x542d42,_0x451381['cloudProvider'][_0x30e1e1]=_0x13f20e,fs[_0x281e7b(0x2e5)](_0x3b60bf[_0x281e7b(0x2d0)](getCredentialsPath),JSON[_0x281e7b(0x1f6)](_0x451381)),logger['debug'](_0x3b60bf[_0x281e7b(0x245)]),global_registry[_0x281e7b(0x211)]=_0x46d1df,global_registry[_0x281e7b(0x295)]=_0x542d42;}else{const _0x1e6a8a=_0x3b60bf[_0x281e7b(0x291)][_0x281e7b(0x2fd)]('|');let _0x2c762a=0x0;while(!![]){switch(_0x1e6a8a[_0x2c762a++]){case'0':global_registry[_0x281e7b(0x295)]=_0x21e1c8[_0x30e1e1]['secret'];continue;case'1':const _0x585431={};_0x585431['type']=WS_EVENTS['LOG'],_0x585431['message']=_0x1c2c75,webSocketUtils['sendEventToBackend'](_0x4aae3a,_0x585431);continue;case'2':global_registry[_0x281e7b(0x211)]=_0x21e1c8[_0x30e1e1][_0x281e7b(0x224)];continue;case'3':logger[_0x281e7b(0x2a0)](_0x1c2c75);continue;case'4':_0x1c2c75=_0x3b60bf[_0x281e7b(0x205)];continue;}break;}}_0x3b60bf['yTxbF'](_0x30e1e1,AWS)&&(logger[_0x281e7b(0x2cc)](_0x3b60bf['sAnzT']),_0x3b60bf[_0x281e7b(0x2d0)](configureAWSIfNotConfigured));let _0x530aaf,_0x384642;if(_0x3b60bf[_0x281e7b(0x28d)](_0x54c76e,![])){_0x1c2c75=_0x281e7b(0x23f)+_0x2056e0+').';const _0x46ee59={};_0x46ee59['type']=WS_EVENTS[_0x281e7b(0x22f)],_0x46ee59['message']=_0x1c2c75,webSocketUtils['sendEventToBackend'](_0x4aae3a,_0x46ee59),logger[_0x281e7b(0x2a0)](_0x1c2c75);const _0x337f19=await _0x3b60bf[_0x281e7b(0x22e)](isClusterPresent,_0x30e1e1,_0x223549);let _0x14e7c1;if(_0x337f19){const _0x2e5e9d={};_0x2e5e9d[_0x281e7b(0x2ac)]=WS_EVENTS['LOG'],_0x2e5e9d[_0x281e7b(0x2a7)]=_0x281e7b(0x1d3)+_0x223549+_0x281e7b(0x1f5),webSocketUtils['sendEventToBackend'](_0x4aae3a,_0x2e5e9d,_0x3b60bf[_0x281e7b(0x1e7)]),logger[_0x281e7b(0x1fc)](_0x281e7b(0x1d3)+_0x223549+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x530aaf=await _0x3b60bf[_0x281e7b(0x251)](getClusterInfo,_0x223549),_0x54c76e=!![];}else{const _0x295cf1={};_0x295cf1['type']=WS_EVENTS['LOG'],_0x295cf1[_0x281e7b(0x2a7)]=_0x3b60bf[_0x281e7b(0x269)],webSocketUtils[_0x281e7b(0x2f1)](_0x4aae3a,_0x295cf1),logger['info'](_0x3b60bf[_0x281e7b(0x269)]);const _0x4237c8=_0x3b60bf[_0x281e7b(0x209)](_0x423c36,null)&&_0x3b60bf[_0x281e7b(0x2f2)](_0x423c36,undefined),_0x50a5ac=_0x3b60bf['bqjbi'](subnets,null)&&_0x3b60bf['eqNNk'](subnets,undefined);let _0x56789d;if(_0x4237c8){_0x3b60bf[_0x281e7b(0x2be)](_0x50a5ac,![])&&(_0x1c2c75=_0x3b60bf[_0x281e7b(0x2e3)],await _0x3b60bf[_0x281e7b(0x2a8)](reportToGalactusAndSendToEDS,_0x260e8e,_0x4aae3a,_0x1c2c75,messageTypes[_0x281e7b(0x1dd)],_0x3b60bf[_0x281e7b(0x29d)],_0x3b60bf[_0x281e7b(0x27f)],_0x3b60bf[_0x281e7b(0x2e2)]),logger[_0x281e7b(0x22a)](_0x1c2c75),process[_0x281e7b(0x2a2)](0x1));const _0x2cf9db=await _0x3b60bf['EPDbV'](isVPCPresent,_0x423c36,_0x2056e0);_0x3b60bf[_0x281e7b(0x296)](_0x2cf9db,![])?(_0x1c2c75=_0x3b60bf[_0x281e7b(0x243)],await _0x3b60bf['bhKsS'](reportToGalactusAndSendToEDS,_0x260e8e,_0x4aae3a,_0x1c2c75,messageTypes[_0x281e7b(0x1dd)],_0x3b60bf[_0x281e7b(0x29d)],_0x3b60bf[_0x281e7b(0x257)],_0x3b60bf[_0x281e7b(0x2e2)]),logger[_0x281e7b(0x22a)](_0x1c2c75),process[_0x281e7b(0x2a2)](0x1)):logger[_0x281e7b(0x2a0)](_0x281e7b(0x27e)+_0x423c36+'\x20');const _0x416c64=await _0x3b60bf[_0x281e7b(0x2b9)](isSubnetsValid,subnets,_0x423c36,_0x2056e0);_0x3b60bf[_0x281e7b(0x1da)](_0x416c64[0x0],![])?(_0x1c2c75=_0x281e7b(0x2a1)+_0x416c64[0x1]+_0x281e7b(0x232)+_0x423c36+_0x281e7b(0x28e),await _0x3b60bf[_0x281e7b(0x1f2)](reportToGalactusAndSendToEDS,_0x260e8e,_0x4aae3a,_0x1c2c75,messageTypes['ERROR'],_0x3b60bf[_0x281e7b(0x29d)],_0x3b60bf[_0x281e7b(0x203)],_0x3b60bf[_0x281e7b(0x2e2)]),logger[_0x281e7b(0x22a)](_0x1c2c75),process['exit'](0x1)):logger['info']('Found\x20Subnets:\x20'+JSON[_0x281e7b(0x1f6)](subnets)+'\x20');const _0x2fc58f=await _0x3b60bf[_0x281e7b(0x2b9)](createClusterStack,_0x223549,_0x423c36,subnets);logger[_0x281e7b(0x2a0)](_0x3b60bf[_0x281e7b(0x259)]),logger[_0x281e7b(0x2a0)](_0x281e7b(0x2b5)+_0x2fc58f[_0x281e7b(0x1d9)][0x0][_0x281e7b(0x226)][0x3][_0x281e7b(0x1e1)]+'\x20'),logger['info'](_0x281e7b(0x288)+_0x2fc58f['Stacks'][0x0][_0x281e7b(0x226)][0x1]['OutputValue']+'\x20'),logger[_0x281e7b(0x2a0)](_0x281e7b(0x2ec)+_0x2fc58f[_0x281e7b(0x1d9)][0x0]['Outputs'][0x0][_0x281e7b(0x1e1)][_0x281e7b(0x2fd)](',')+'\x20'),logger[_0x281e7b(0x2a0)](_0x281e7b(0x2b4)+_0x2fc58f[_0x281e7b(0x1d9)][0x0][_0x281e7b(0x226)][0x4][_0x281e7b(0x1e1)]+'\x20');}else{const _0x5d4cb1={};_0x5d4cb1[_0x281e7b(0x2ac)]=WS_EVENTS[_0x281e7b(0x22f)],_0x5d4cb1[_0x281e7b(0x2a7)]=_0x3b60bf[_0x281e7b(0x25c)],webSocketUtils['sendEventToBackend'](_0x4aae3a,_0x5d4cb1),logger[_0x281e7b(0x2a0)](_0x3b60bf[_0x281e7b(0x25c)]),_0x3b60bf[_0x281e7b(0x2d1)](sendAWSInfoToHST,_0x4aae3a);const _0x55e632={};_0x55e632['type']=WS_EVENTS[_0x281e7b(0x22f)],_0x55e632[_0x281e7b(0x2a7)]=_0x3b60bf[_0x281e7b(0x2fb)],webSocketUtils[_0x281e7b(0x2f1)](_0x4aae3a,_0x55e632),logger[_0x281e7b(0x2a0)](_0x3b60bf['pbcdJ']);const _0x426ced=await _0x3b60bf[_0x281e7b(0x2d1)](createClusterStack,_0x223549),_0x554b09=_0x426ced['Stacks'][0x0]['Outputs'][0x0][_0x281e7b(0x1e1)]['split'](',');_0x56789d=_0x426ced[_0x281e7b(0x1d9)][0x0][_0x281e7b(0x226)][0x1][_0x281e7b(0x1e1)];const _0x3ab9f6=_0x426ced[_0x281e7b(0x1d9)][0x0][_0x281e7b(0x226)][0x2][_0x281e7b(0x1e1)],_0x319029=_0x426ced['Stacks'][0x0][_0x281e7b(0x226)][0x3][_0x281e7b(0x1e1)];_0x14e7c1=_0x426ced['Stacks'][0x0][_0x281e7b(0x226)][0x4]['OutputValue'];const _0x45714a=_0x426ced[_0x281e7b(0x1d9)][0x0][_0x281e7b(0x226)][0x5][_0x281e7b(0x1e1)][_0x281e7b(0x2fd)](','),_0x27671e={};_0x27671e['type']=WS_EVENTS[_0x281e7b(0x22f)],_0x27671e[_0x281e7b(0x2a7)]=_0x281e7b(0x267)+_0x319029+',\x20ClusterRole\x20=>\x20'+_0x56789d+_0x281e7b(0x2ba)+_0x3ab9f6+_0x281e7b(0x2f5)+_0x45714a+_0x281e7b(0x26c)+_0x554b09+',\x20NodeRole\x20=>\x20'+_0x14e7c1+'\x20',webSocketUtils['sendEventToBackend'](_0x4aae3a,_0x27671e),logger[_0x281e7b(0x2a0)](_0x3b60bf[_0x281e7b(0x259)]),logger['info'](_0x281e7b(0x2b5)+_0x319029+'\x20'),logger[_0x281e7b(0x2a0)](_0x281e7b(0x288)+_0x56789d+'\x20'),logger['info'](_0x281e7b(0x2f6)+_0x3ab9f6+'\x20'),logger['info']('Subnets\x20=>\x20'+_0x45714a+'\x20'),logger['info']('SecurityGroups\x20=>\x20'+_0x554b09+'\x20'),logger[_0x281e7b(0x2a0)](_0x281e7b(0x2b4)+_0x14e7c1+'\x20');const _0x1aa3aa={};_0x1aa3aa[_0x281e7b(0x2ac)]=WS_EVENTS[_0x281e7b(0x22f)],_0x1aa3aa[_0x281e7b(0x2a7)]=_0x281e7b(0x208),webSocketUtils['sendEventToBackend'](_0x4aae3a,_0x1aa3aa),logger[_0x281e7b(0x2a0)](_0x3b60bf[_0x281e7b(0x1e0)]);}}}_0x530aaf=await _0x3b60bf[_0x281e7b(0x221)](getClusterInfo,_0x223549);const [_0x291fa7,_0x2788ae,_0x3bece8,_0x5b344c]=await _0x3b60bf[_0x281e7b(0x2bd)](createK8sClient,_0x530aaf[_0x281e7b(0x234)][_0x281e7b(0x2fe)],_0x530aaf[_0x281e7b(0x234)][_0x281e7b(0x27c)],_0x530aaf[_0x281e7b(0x234)]['certificateAuthority'][_0x281e7b(0x20c)],global_registry[_0x281e7b(0x2d4)]);if(_0x3b60bf[_0x281e7b(0x20d)](_0x54c76e,![])){const _0x1a6a3e={};_0x1a6a3e['type']=WS_EVENTS[_0x281e7b(0x22f)],_0x1a6a3e[_0x281e7b(0x2a7)]=_0x3b60bf[_0x281e7b(0x213)],webSocketUtils[_0x281e7b(0x2f1)](_0x4aae3a,_0x1a6a3e),logger[_0x281e7b(0x2a0)](_0x3b60bf[_0x281e7b(0x213)]);try{const _0x4e4bc5=await _0x3b60bf['lRdYO'](createAutoscalerStack,_0x223549);_0x384642=_0x4e4bc5[_0x281e7b(0x1d9)][0x0][_0x281e7b(0x226)][0x2][_0x281e7b(0x1e1)];const _0x9013ff={};_0x9013ff[_0x281e7b(0x2ac)]=WS_EVENTS[_0x281e7b(0x22f)],_0x9013ff[_0x281e7b(0x2a7)]=_0x281e7b(0x228)+_0x384642+'\x20',webSocketUtils[_0x281e7b(0x2f1)](_0x4aae3a,_0x9013ff),logger[_0x281e7b(0x2a0)](_0x281e7b(0x228)+_0x384642+'\x20');}catch(_0x55279b){if(_0x3b60bf[_0x281e7b(0x2f2)](_0x55279b[_0x281e7b(0x2a7)][_0x281e7b(0x1f4)](/already exists/),null)||_0x3b60bf['ezePR'](_0x55279b['message']['match'](/already exists/),undefined))_0x1c2c75='Skipping\x20Autoscaler\x20due\x20to:\x20'+_0x55279b[_0x281e7b(0x2a7)],await _0x3b60bf[_0x281e7b(0x2a8)](reportToGalactusAndSendToEDS,_0x260e8e,_0x4aae3a,_0x1c2c75,messageTypes[_0x281e7b(0x230)],_0x3b60bf['mPtUq'],_0x3b60bf[_0x281e7b(0x2d9)],_0x3b60bf[_0x281e7b(0x23d)]),logger[_0x281e7b(0x1fc)](_0x1c2c75);else{const _0xd54cac=_0x3b60bf[_0x281e7b(0x2ff)][_0x281e7b(0x2fd)]('|');let _0x5223a6=0x0;while(!![]){switch(_0xd54cac[_0x5223a6++]){case'0':await _0x3b60bf[_0x281e7b(0x271)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'1':await _0x3b60bf[_0x281e7b(0x20b)](reportToGalactusAndSendToEDS,_0x260e8e,_0x4aae3a,_0x1c2c75,messageTypes['ERROR'],_0x3b60bf[_0x281e7b(0x29d)],_0x3b60bf['pUniO'],_0x3b60bf['CnEai']);continue;case'2':logger['error'](_0x1c2c75);continue;case'3':process[_0x281e7b(0x2a2)](0x1);continue;case'4':_0x1c2c75=_0x281e7b(0x29c)+_0x55279b['message']+'.\x20Deleting\x20all\x20the\x20stacks';continue;}break;}}}let _0x4b392c=await _0x3b60bf[_0x281e7b(0x22e)](getNodeGroupInfo,_0x223549,_0x223549+_0x281e7b(0x219));nodeRole=_0x4b392c[_0x281e7b(0x246)]['nodeRole'];const _0x5040bb=await _0x3b60bf[_0x281e7b(0x2d1)](createAuthConfigMap,nodeRole);await _0x291fa7[_0x281e7b(0x2ab)](_0x3b60bf[_0x281e7b(0x24c)],_0x5040bb)[_0x281e7b(0x214)](_0x512db2=>{const _0x5a74ad=_0x281e7b;logger[_0x5a74ad(0x2a0)](_0x3b60bf['DIlit']);});}try{_0x32f191=_0x3b60bf[_0x281e7b(0x2d1)](kebabCase,_0x4f4e04),logger['info'](_0x3b60bf[_0x281e7b(0x201)]);const _0x26575d={};_0x26575d[_0x281e7b(0x2ac)]=WS_EVENTS['LOG'],_0x26575d[_0x281e7b(0x2a7)]=_0x3b60bf['ILQfE'],webSocketUtils['sendEventToBackend'](_0x4aae3a,_0x26575d);if(_0x3b60bf['sQzDP'](_0x32f191,_0x3b60bf['Ktaei'])){const _0x55136b={};_0x55136b[_0x281e7b(0x1c7)]=_0x3b60bf[_0x281e7b(0x29b)],_0x55136b['managedBy']=_0x3b60bf['YRAfN'];const _0x40b058={};_0x40b058[_0x281e7b(0x2fe)]=_0x32f191,_0x40b058[_0x281e7b(0x2de)]=_0x55136b;const _0x3b1bc1={};_0x3b1bc1[_0x281e7b(0x23a)]=_0x40b058;let _0x525d33=_0x3b1bc1;await _0x291fa7[_0x281e7b(0x1e2)](_0x525d33),logger[_0x281e7b(0x2a0)](_0x3b60bf[_0x281e7b(0x1cf)]);}const _0x589cfe={};_0x589cfe['type']=WS_EVENTS[_0x281e7b(0x22f)],_0x589cfe[_0x281e7b(0x2a7)]=_0x3b60bf[_0x281e7b(0x235)],webSocketUtils[_0x281e7b(0x2f1)](_0x4aae3a,_0x589cfe);const _0x5545f7={};_0x5545f7[_0x281e7b(0x2ac)]=WS_EVENTS[_0x281e7b(0x22f)],_0x5545f7[_0x281e7b(0x2a7)]=_0x3b60bf['WXoSl'],webSocketUtils[_0x281e7b(0x2f1)](_0x4aae3a,_0x5545f7),logger[_0x281e7b(0x2a0)](_0x3b60bf[_0x281e7b(0x21d)]),await _0x3b60bf[_0x281e7b(0x20b)](addGridComponents,_0x291fa7,_0x2788ae,_0x3bece8,_0x5b344c,_0x32f191,_0x223549,_0x384642),_0x1c2c75=_0x3b60bf[_0x281e7b(0x254)],logger['info'](_0x1c2c75);const _0x194180={};_0x194180[_0x281e7b(0x2ac)]=WS_EVENTS[_0x281e7b(0x22f)],_0x194180['message']=_0x1c2c75,webSocketUtils['sendEventToBackend'](_0x4aae3a,_0x194180),_0x1c2c75=_0x3b60bf['FMyWJ'],logger[_0x281e7b(0x2a0)](_0x1c2c75);const _0x8a2432={};_0x8a2432[_0x281e7b(0x2ac)]=WS_EVENTS[_0x281e7b(0x22f)],_0x8a2432[_0x281e7b(0x2a7)]=_0x1c2c75,webSocketUtils[_0x281e7b(0x2f1)](_0x4aae3a,_0x8a2432),await webSocketUtils[_0x281e7b(0x290)](0x1388);let _0x30f039;await _0x291fa7[_0x281e7b(0x263)](_0x3b60bf[_0x281e7b(0x2ef)],_0x32f191)[_0x281e7b(0x237)](_0xaf94be=>{const _0x3906e1=_0x281e7b,_0x4906d3=_0x3b60bf['fAUCV']['split']('|');let _0xb49377=0x0;while(!![]){switch(_0x4906d3[_0xb49377++]){case'0':const _0xa8369a={};_0xa8369a['type']=WS_EVENTS[_0x3906e1(0x22f)],_0xa8369a[_0x3906e1(0x2a7)]=_0x1c2c75,webSocketUtils[_0x3906e1(0x2f1)](_0x4aae3a,_0xa8369a);continue;case'1':_0x30f039=_0xaf94be[_0x3906e1(0x239)][_0x3906e1(0x1e9)]['loadBalancer'][_0x3906e1(0x1ef)][0x0][_0x3906e1(0x26a)];continue;case'2':_0x1c2c75=_0x3906e1(0x2e4)+_0x30f039+_0x3906e1(0x2b1);continue;case'3':logger[_0x3906e1(0x2a0)](_0x1c2c75);continue;case'4':const _0x5b103f={};_0x5b103f['type']=WS_EVENTS['LOG'],_0x5b103f[_0x3906e1(0x2a7)]=_0x1c2c75,webSocketUtils['sendEventToBackend'](_0x4aae3a,_0x5b103f);continue;case'5':_0x1c2c75=_0x3906e1(0x2c9)+_0x30f039+'\x20';continue;case'6':const _0x284e7e={};_0x284e7e[_0x3906e1(0x2ac)]=WS_EVENTS[_0x3906e1(0x1ea)],_0x284e7e[_0x3906e1(0x2a7)]='CLI\x20run\x20finished:\x20'+_0x30f039,webSocketUtils['sendEventToBackend'](_0x4aae3a,_0x284e7e);continue;case'7':logger[_0x3906e1(0x2a0)](_0x1c2c75);continue;}break;}}),await webSocketUtils[_0x281e7b(0x290)](0x1f4);}catch(_0x3718ac){if(_0x3b60bf[_0x281e7b(0x282)](_0x54c76e,![]))try{logger[_0x281e7b(0x2a0)](_0x281e7b(0x20f)),await _0x3b60bf['wkcbu'](removeGridComponents,_0x291fa7,_0x2788ae,_0x3bece8,_0x5b344c,_0x32f191),await _0x3b60bf[_0x281e7b(0x2d1)](deleteClusterAndDependencies,global_registry['clusterRegion']);}catch(_0x34460a){throw _0x34460a;}throw _0x3718ac;}}catch(_0x538df4){const _0x37b0a1=_0x281e7b(0x25e)+_0x538df4+'\x20\x0a'+JSON[_0x281e7b(0x1f6)](_0x538df4)+'\x20';if(_0x4aae3a){const _0x55e4c7={};_0x55e4c7['type']=WS_EVENTS[_0x281e7b(0x22f)],_0x55e4c7[_0x281e7b(0x2a7)]=_0x37b0a1,webSocketUtils[_0x281e7b(0x2f1)](_0x4aae3a,_0x55e4c7,_0x3b60bf[_0x281e7b(0x2e2)],!![]);}const _0x1358ed={};_0x1358ed[_0x281e7b(0x22a)]=_0x37b0a1,await _0x3b60bf['FrJDe'](sendInstrumentationEvent,_0x260e8e,_0x3b60bf[_0x281e7b(0x29d)],messageTypes[_0x281e7b(0x1dd)],_0x3b60bf[_0x281e7b(0x2c5)],_0x1358ed,_0x260e8e),logger[_0x281e7b(0x22a)](_0x37b0a1);}process[_0x281e7b(0x2a2)](0x0);};
1
+ const a4_0x570ba1=a4_0x343f;(function(_0x276adf,_0x3fdb05){const _0x2201c0=a4_0x343f,_0x47760f=_0x276adf();while(!![]){try{const _0x333aa7=-parseInt(_0x2201c0(0x198))/0x1*(parseInt(_0x2201c0(0x18b))/0x2)+parseInt(_0x2201c0(0x10e))/0x3*(-parseInt(_0x2201c0(0x1da))/0x4)+-parseInt(_0x2201c0(0xe2))/0x5+-parseInt(_0x2201c0(0x1ef))/0x6+-parseInt(_0x2201c0(0x108))/0x7+-parseInt(_0x2201c0(0x138))/0x8*(parseInt(_0x2201c0(0x148))/0x9)+parseInt(_0x2201c0(0xcf))/0xa*(parseInt(_0x2201c0(0x1c7))/0xb);if(_0x333aa7===_0x3fdb05)break;else _0x47760f['push'](_0x47760f['shift']());}catch(_0xc02b44){_0x47760f['push'](_0x47760f['shift']());}}}(a4_0x214b,0x5bd5e));function a4_0x343f(_0x5cfff6,_0x4da4bb){const _0x214b2d=a4_0x214b();return a4_0x343f=function(_0x343f4d,_0x41adef){_0x343f4d=_0x343f4d-0xc0;let _0x135ee9=_0x214b2d[_0x343f4d];return _0x135ee9;},a4_0x343f(_0x5cfff6,_0x4da4bb);}const fs=require('fs'),ws=require('ws'),util=require(a4_0x570ba1(0xc6)),ReconnectingWebSocket=require(a4_0x570ba1(0x1be)),request=require(a4_0x570ba1(0xd6)),{v4:uuidv4}=require(a4_0x570ba1(0x1c1)),webSocketUtils=require(a4_0x570ba1(0x1ec)),{logger}=require(a4_0x570ba1(0x1b8)),{inputCloudProviderKeys}=require('../../utils/userInput'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{sendAWSInfoToHST}=require('../../utils/hstUtils'),{isClusterPresent,getClusterInfo,configureAWSIfNotConfigured,createAuthConfigMap,getNodeGroupInfo,isVPCPresent,isSubnetsValid}=require('../../utils/AWSUtils'),{addGridComponents,deleteClusterAndDependencies,removeGridComponents}=require(a4_0x570ba1(0x106)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,CLUSTER_DEP_STACK_NAME}=require(a4_0x570ba1(0xff)),{createClusterStack}=require(a4_0x570ba1(0x17c)),{createAutoscalerStack}=require(a4_0x570ba1(0x196)),{createK8sClient}=require(a4_0x570ba1(0x135)),{sendInstrumentationEvent}=require(a4_0x570ba1(0xeb)),{deleteClusterStack}=require(a4_0x570ba1(0x1a8)),promisifiedRequest=util[a4_0x570ba1(0x1cd)](request);function a4_0x214b(){const _0xf3cb1e=['ARuZU','bmUEm','iDxRK','info','create-grid-checks-auth-failed','PmsJR','wMWOs','type','IhXYo','builder','WJKsz','grid-profile','UnmTw','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','createNamespace','Stacks','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','sendEventToBackend','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Following\x20resources\x20are\x20created:\x20Cluster\x20=>\x20','desc','nodeRole','DeBId','Spawning\x20grid\x20on\x20to\x20the\x20cluster','WNXSi','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20http://','YeOGY','kqquv','../../utils/createk8sClient','kQQXs','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','16mXhpUl','wgheg','argv','CLI_RUN_STARTED','Creating\x20Autoscaler\x20Role','pre-spawned-invalid-vpc','s3bucket','debug','statusCode','XUbIO','NUThY','loadBalancer','Unable\x20to\x20spawn\x20Autoscaler\x20due\x20to:\x20','mBtpP','aUIFH','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','3137058vgKrnj','Creating\x20required\x20dependencies\x20-\x20EKS\x20Role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups\x20and\x20Cluster\x20and\x20Node\x20Group(s)','data','tPjHS','\x20in\x20existing\x20cluster\x20\x27','asCJY','qANki','YGSMb','AEUll','createdBy','warning','Found\x20VPC:\x20','vhKiW','<UsernamePlaceholder>','UsNsW','options','VPC\x20=>\x20','oeLTX','Cluster\x20=>\x20','PmSqF','WWzop','YpKPN','nmfOk','SecurityGroups\x20=>\x20','zGlOR','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','clusterRegion','secret',',\x20ClusterRole\x20=>\x20','TMnTZ','user','gxRvy','CLI_RUN_FINISHED','https://','RuDss','bstackAccesskey','Grid\x20can\x20be\x20accessed\x20at:\x20','ShGGM','WfVms','kMdad','string','pkOTv','IAJZS','LcrEB','instanceType','status','help','clusterName','-NodeGroup','sYfPZ','ZodvI','Mjkne','../../utils/createClusterStack','aOYfT','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','xcTZu','4|3|1|0|2','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','match','non-aws-cluster','Browserstack','gridProfiles','Configuring\x20AWS','Namespace\x20created','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','CLI\x20run\x20finished:\x20','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','13934ueqzEa','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','WfTLx','handler','annotations','UCdAY','IlXsx','aCspA','KOMEC','region','then','../../utils/createAutoscalerStack','JAKTL','21uFWsba','gridName','AVxsH','hchwl','wYxns','TTBPV','RYHJG','fYykT','meynl','reportToGalactusAndSendToEDS','erXCC','Xvzzg','XdpIC','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','default','qfsAM','../../utils/deleteStack','2|3|4|0|1','KFTjO','alreadyPresent','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','wTFyq','epilogue','bstackUsername','\x20using\x20\x27','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','FAvmj','OutputValue','Cluster\x20and\x20node\x20group\x20created\x20successfully','VmgVa','Adding\x20Websocket\x20listeners','create-grid-checks-invalid-profile','../../config/logger','jqWlb','warn','NodeRole\x20=>\x20','nLTfi','create-grid-checks-grid-already-exists','reconnecting-websocket','Deleting\x20the\x20CloudFormation\x20Stacks','stringify','uuid','create-grid-checks-non-200','requestId','ERROR','/packages/cli/create-grid-checks?gridName=','Gbasv','77aFXJKx','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20only\x20AWS\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','kvmls','nMrzS','ELcLo','FZXJG','promisify','certificateAuthority','existsSync','ingress','bwxlW','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','pre-spawned-invalid-subnets','parse','managedBy','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','eRkDx',':4444/wd/hub','error','4hVOwrZ','aRjSm','BQuFc','cloud-provider','subnets','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','YUiOZ',',\x20Subnets\x20=>\x20','vQAHS','grid-name','xeEgZ','<PasswordPlaceholder>','JJOFW','IznZf','KIvtO','ClusterRole\x20=>\x20','vpc','CjjDP','../../utils/webSocketUtils','Outputs','gridProfile','4251606fIyNQX','OpJhf','GET','ilDXK','FzzxK','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','Grid\x20spawned\x20on\x20the\x20cluster','WebSocket','metadata','TytgT','dLinr','.\x20Deleting\x20all\x20the\x20stacks','PZLfs','aydmn','pQkeM','biqnD','cluster','gqddA','util','oOEhp','hostname','rINsh','kube-system','rbOGC','securityGroups','tCYAs','7|2|3|0|6|5|4|1','4354830cSdmgP','Zvnof','usage','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Spawning\x20the\x20grid\x20','QNBfJ','lXfef','request','gkadd','password',',\x20SecurityGroups\x20=>\x20','accessKey','Cluster\x20','SMpeD','name','addListeners','uLSFM','QAWCy','Found\x20Subnets:\x20','2182610zPyLUz','gridProfileId','method','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','cWAEw','cloudProvider','fYNNM','CLI\x20run\x20started','cloudProviderAccessKey','../../utils/instrumentationUtils','XqBIO','WARNING','TsBMK','LGKoj','vWzyC','Authmap\x20already\x20exists.\x20Not\x20updating','BkNnB','Evctj','koBhU','body','Creating\x20required\x20resources\x20-\x20EKS\x20role(s),\x20VPC,\x20Subnets,\x20Security\x20Groups,\x20Cluster\x20and\x20Node\x20Group(s)','aMZsh','message','cluster-name','qdplX','IVWCO','Autoscaler\x20Role\x20created.ARN:\x20','createNamespacedConfigMap','Subnets\x20=>\x20','../../config/constants','username','create','lSndm','4|2|0|3|1','endpoint','hSwqK','../../utils/gridComponents','WUIVE','569730hEPuNt','ZLZll','prespawned-cluster-args-not-passed','LOG','toLowerCase','\x20are\x20not\x20present\x20in\x20VPC:\x20','1806837PXcQnc','exit','replace','catch','description','grid','PpdLh','megva','cloudProviderSecretKey','Subnets:\x20','split'];a4_0x214b=function(){return _0xf3cb1e;};return a4_0x214b();}exports['command']=a4_0x570ba1(0x113),exports[a4_0x570ba1(0x12d)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a4_0x570ba1(0x122)]=function(_0x41b5b5){const _0x27ca7d=a4_0x570ba1,_0x51e1ad={};_0x51e1ad[_0x27ca7d(0x11f)]=_0x27ca7d(0x188),_0x51e1ad[_0x27ca7d(0x11a)]=_0x27ca7d(0x170),_0x51e1ad[_0x27ca7d(0x1cb)]=_0x27ca7d(0x17e),_0x51e1ad[_0x27ca7d(0x197)]=_0x27ca7d(0x1d2),_0x51e1ad[_0x27ca7d(0x191)]=_0x27ca7d(0x18c),_0x51e1ad[_0x27ca7d(0x1cc)]=_0x27ca7d(0x1d6),_0x51e1ad[_0x27ca7d(0x156)]=_0x27ca7d(0x176);const _0x19a38d=_0x51e1ad,_0x355762={};_0x355762[_0x27ca7d(0x112)]=_0x19a38d[_0x27ca7d(0x11f)],_0x355762['type']=_0x19a38d[_0x27ca7d(0x11a)];const _0x1a671f={};_0x1a671f['description']=_0x19a38d[_0x27ca7d(0x1cb)],_0x1a671f[_0x27ca7d(0x120)]=_0x19a38d['bmUEm'];const _0x26caa8={};_0x26caa8[_0x27ca7d(0x112)]=_0x19a38d[_0x27ca7d(0x197)],_0x26caa8['type']=_0x19a38d[_0x27ca7d(0x11a)];const _0x38f09e={};_0x38f09e['description']=_0x19a38d[_0x27ca7d(0x191)],_0x38f09e[_0x27ca7d(0x120)]=_0x19a38d[_0x27ca7d(0x11a)];const _0x478776={};_0x478776['description']=_0x19a38d[_0x27ca7d(0x1cc)],_0x478776['type']=_0x19a38d[_0x27ca7d(0x11a)];const _0x103ca6={};return _0x103ca6[_0x27ca7d(0x1e3)]=_0x355762,_0x103ca6['grid-profile']=_0x1a671f,_0x103ca6[_0x27ca7d(0xf9)]=_0x26caa8,_0x103ca6[_0x27ca7d(0x1dd)]=_0x38f09e,_0x103ca6[_0x27ca7d(0x194)]=_0x478776,_0x41b5b5[_0x27ca7d(0xd1)](HELP_HEADER_MESSAGE[_0x27ca7d(0x101)])[_0x27ca7d(0x1ae)](HELP_FOOTER_MESSAGE)[_0x27ca7d(0x157)](_0x103ca6)['help'](_0x19a38d[_0x27ca7d(0x156)])['argv'];},exports[a4_0x570ba1(0x18e)]=async function(_0x1c764e){const _0x2faca7=a4_0x570ba1,_0x531648={'lcLgl':_0x2faca7(0x188),'IznZf':_0x2faca7(0x170),'fYNNM':_0x2faca7(0x17e),'uLSFM':_0x2faca7(0x1d2),'XZbvt':_0x2faca7(0x18c),'eAcwL':_0x2faca7(0x1d6),'oeLTX':'help','FAvmj':'7|6|5|3|4|0|2|1','wYxns':_0x2faca7(0xf1),'IAJZS':_0x2faca7(0x186),'SMpeD':function(_0x27735a){return _0x27735a();},'twEIB':_0x2faca7(0x1a9),'YUiOZ':_0x2faca7(0x161),'KOMEC':'3|1|2|5|6|4|0','koBhU':_0x2faca7(0x1d9),'XqBIO':_0x2faca7(0xce),'hchwl':function(_0x5aff28,_0x457758){return _0x5aff28===_0x457758;},'kvmls':_0x2faca7(0x167),'qANki':_0x2faca7(0x1eb),'fYykT':_0x2faca7(0x1b1),'sYfPZ':function(_0x18c2bd,_0x1e1892,_0x3f85ad,_0x36348b,_0x2554a2,_0x417979,_0x1d899d){return _0x18c2bd(_0x1e1892,_0x3f85ad,_0x36348b,_0x2554a2,_0x417979,_0x1d899d);},'cWAEw':'create-grid-called','WWzop':'init-not-called','dLinr':_0x2faca7(0x155),'iDxRK':_0x2faca7(0x1e5),'PmsJR':_0x2faca7(0x1b6),'hSwqK':function(_0x309ad1,_0x1730d4){return _0x309ad1===_0x1730d4;},'kQQXs':'yZHtJ','ShGGM':_0x2faca7(0x1e2),'Zvnof':function(_0x4754e6,_0x870bce){return _0x4754e6===_0x870bce;},'ZiapB':_0x2faca7(0x17d),'wTFyq':_0x2faca7(0x1a7),'ZodvI':_0x2faca7(0x1f4),'qdplX':function(_0x1a87cd,_0xe9754b,_0x4c95ed,_0x32d187,_0x509bee,_0x56e1f9,_0x6081bd,_0x129511){return _0x1a87cd(_0xe9754b,_0x4c95ed,_0x32d187,_0x509bee,_0x56e1f9,_0x6081bd,_0x129511);},'erXCC':_0x2faca7(0x10a),'oOEhp':function(_0x428964,_0x61be2c){return _0x428964!==_0x61be2c;},'WfTLx':'aws','HHQuc':_0x2faca7(0x1f2),'VmgVa':'YafQe','jqWlb':_0x2faca7(0x1c8),'IVWCO':_0x2faca7(0x183),'OpJhf':function(_0x448b21,_0x144c77){return _0x448b21===_0x144c77;},'rbOGC':_0x2faca7(0xf2),'Gbasv':_0x2faca7(0x15d),'kqquv':function(_0x17f3ce,_0x5900e8){return _0x17f3ce===_0x5900e8;},'YGSMb':function(_0x733b42,_0x367419){return _0x733b42===_0x367419;},'PmSqF':'ZlVBw','IhXYo':_0x2faca7(0x1f1),'TytgT':function(_0x44b7db,_0x571604){return _0x44b7db(_0x571604);},'dGSTw':function(_0xf16a6a,_0x149667){return _0xf16a6a==_0x149667;},'aRjSm':function(_0x41f03e,_0x5ed8a7){return _0x41f03e!==_0x5ed8a7;},'WUIVE':_0x2faca7(0xc5),'aMZsh':_0x2faca7(0x137),'Xvzzg':function(_0x36f360,_0x127347,_0x36a66f,_0x46092d,_0x4fb8dc,_0x4ce2a8,_0x5db4db,_0x253917){return _0x36f360(_0x127347,_0x36a66f,_0x46092d,_0x4fb8dc,_0x4ce2a8,_0x5db4db,_0x253917);},'aydmn':'create-grid-checks-null-response','Mjkne':_0x2faca7(0x115),'LcrEB':_0x2faca7(0x1ac),'aCspA':function(_0x45d09f,_0x1fd58a,_0x2602ef,_0x219d7b,_0x43f7fb,_0x921dd9,_0x1c4d6c,_0x35f973){return _0x45d09f(_0x1fd58a,_0x2602ef,_0x219d7b,_0x43f7fb,_0x921dd9,_0x1c4d6c,_0x35f973);},'ncCPK':_0x2faca7(0x11d),'XdpIC':_0x2faca7(0x15e),'muhht':_0x2faca7(0xd7),'PZLfs':_0x2faca7(0x1c2),'rINsh':'Grid\x20profile\x20fetched\x20from\x20backend','bnSRm':_0x2faca7(0xc2),'xeEgZ':'qGjKY','rQyQG':'An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use--grid\x20-\x20name\x20option\x20to\x20provide\x20another\x20grid\x20name','TTBPV':_0x2faca7(0x1bd),'YdZYm':'wBdbp','wgheg':_0x2faca7(0x1a0),'RYHJG':_0x2faca7(0xd4),'XUbIO':_0x2faca7(0x1d7),'WNXSi':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','XnOkl':_0x2faca7(0x1b7),'BzQcU':'3|0|1|4|2|5|6','WJKsz':_0x2faca7(0x126),'TsBMK':function(_0x41baaa,_0x1b6d4d){return _0x41baaa(_0x1b6d4d);},'TMnTZ':function(_0x1b5e90){return _0x1b5e90();},'bwxlW':_0x2faca7(0xe5),'KIvtO':_0x2faca7(0x103),'ARuZU':function(_0x15bace,_0x6ce8e2,_0x3ef234){return _0x15bace(_0x6ce8e2,_0x3ef234);},'vWzyC':_0x2faca7(0x1ba),'KFTjO':function(_0xee3caf,_0x55749b){return _0xee3caf(_0x55749b);},'lSndm':_0x2faca7(0x18a),'nLTfi':function(_0x5a4ac1,_0x333ea2){return _0x5a4ac1!=_0x333ea2;},'AVxsH':function(_0x16b78b,_0x32781a){return _0x16b78b!==_0x32781a;},'UnmTw':function(_0x3e7dee,_0x4fc0bb){return _0x3e7dee!=_0x4fc0bb;},'YeOGY':_0x2faca7(0x129),'HjWDT':'pre-spawned-subnets-not-selected','DeBId':function(_0x1a0d88,_0x23c4f7,_0x21a858){return _0x1a0d88(_0x23c4f7,_0x21a858);},'QAWCy':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','vhKiW':function(_0x11dc6b,_0x5065c5,_0xa25625,_0xe60a8f,_0x2d3889,_0x4aa53b,_0x1d125c,_0x277813){return _0x11dc6b(_0x5065c5,_0xa25625,_0xe60a8f,_0x2d3889,_0x4aa53b,_0x1d125c,_0x277813);},'aUcZX':_0x2faca7(0x13d),'mBtpP':function(_0x22a1a6,_0x357d8a,_0x10462f,_0x318950){return _0x22a1a6(_0x357d8a,_0x10462f,_0x318950);},'RuDss':function(_0x661060,_0x4d227f){return _0x661060===_0x4d227f;},'BQuFc':_0x2faca7(0x1d3),'rMCIw':function(_0x76e8c2,_0xdbf47e,_0x4ef550,_0x433aa1){return _0x76e8c2(_0xdbf47e,_0x4ef550,_0x433aa1);},'MDsBt':'Following\x20resources\x20are\x20created:','UCdAY':'The\x20grid\x20creation\x20is\x20in\x20progress.\x20It\x20could\x20take\x20as\x20long\x20as\x2015-20\x20minutes.\x20You\x20will\x20receive\x20an\x20email\x20notification\x20once\x20the\x20grid\x20is\x20ready.','PpdLh':_0x2faca7(0xf6),'Evctj':_0x2faca7(0x149),'WfVms':_0x2faca7(0x1b4),'ZLZll':function(_0x52f948,_0x334c5a){return _0x52f948(_0x334c5a);},'LGKoj':function(_0x25e207,_0x124312,_0x5b6a3b,_0x4d5b9b,_0x262d61){return _0x25e207(_0x124312,_0x5b6a3b,_0x4d5b9b,_0x262d61);},'pkOTv':function(_0x54dafc,_0x475ace){return _0x54dafc===_0x475ace;},'FzzxK':_0x2faca7(0x13c),'rfJNs':_0x2faca7(0x1a1),'aUIFH':_0x2faca7(0x152),'biqnD':_0x2faca7(0x180),'AEUll':function(_0x32a823,_0x463d97){return _0x32a823(_0x463d97);},'NUThY':'autoscaler-creation-failed','tCYAs':function(_0x6624ca,_0x43237b,_0x293877){return _0x6624ca(_0x43237b,_0x293877);},'asCJY':_0x2faca7(0xca),'xcTZu':'Creating\x20namespace','zGlOR':_0x2faca7(0x1a6),'tPjHS':'Browserstack','kMdad':'Namespace\x20Created','RMLbt':_0x2faca7(0x187),'lXfef':_0x2faca7(0x130),'JyvHc':'Spawning\x20Grid\x20on\x20the\x20Cluster','JJOFW':_0x2faca7(0x1f5),'nMrzS':_0x2faca7(0x12b),'yHrwy':'browserstack-turboscale-grid-service','fMywL':function(_0x35a315,_0x8dfe35,_0x57d7fa,_0x2bddc6,_0x25b7c0,_0x376713){return _0x35a315(_0x8dfe35,_0x57d7fa,_0x2bddc6,_0x25b7c0,_0x376713);},'qAama':'grid-spawning-failed'};let _0x2d994c=![],_0x48f3e1,_0xd093c6,_0x46ca4a,_0x2e9b01,_0xc0de1c,_0x38c16c,_0x89ce34,_0x31a620,_0x14f434,_0x5c025a;try{global_registry[_0x2faca7(0x1c3)]=_0x531648['SMpeD'](uuidv4);if(!fs[_0x2faca7(0x1cf)](_0x531648[_0x2faca7(0xdc)](getCredentialsPath))){if(_0x531648[_0x2faca7(0x19b)](_0x531648[_0x2faca7(0x1c9)],_0x531648[_0x2faca7(0x14e)])){const _0x57dca1={};_0x57dca1[_0x2faca7(0x112)]=_0x531648['lcLgl'],_0x57dca1['type']=_0x531648[_0x2faca7(0x1e7)];const _0xc08f8={};_0xc08f8[_0x2faca7(0x112)]=_0x531648[_0x2faca7(0xe8)],_0xc08f8[_0x2faca7(0x120)]=_0x531648[_0x2faca7(0x1e7)];const _0x444091={};_0x444091[_0x2faca7(0x112)]=_0x531648[_0x2faca7(0xdf)],_0x444091[_0x2faca7(0x120)]=_0x531648['IznZf'];const _0x50091c={};_0x50091c[_0x2faca7(0x112)]=_0x531648['XZbvt'],_0x50091c[_0x2faca7(0x120)]=_0x531648[_0x2faca7(0x1e7)];const _0x2dce04={};_0x2dce04[_0x2faca7(0x112)]=_0x531648['eAcwL'],_0x2dce04[_0x2faca7(0x120)]=_0x531648['IznZf'];const _0x5cc39f={};return _0x5cc39f[_0x2faca7(0x1e3)]=_0x57dca1,_0x5cc39f[_0x2faca7(0x124)]=_0xc08f8,_0x5cc39f['cluster-name']=_0x444091,_0x5cc39f[_0x2faca7(0x1dd)]=_0x50091c,_0x5cc39f[_0x2faca7(0x194)]=_0x2dce04,_0x704af['usage'](_0x42b40a[_0x2faca7(0x101)])['epilogue'](_0x14e369)['options'](_0x5cc39f)[_0x2faca7(0x176)](_0x531648[_0x2faca7(0x159)])[_0x2faca7(0x13a)];}else console[_0x2faca7(0x1d9)](_0x531648[_0x2faca7(0x19f)]),await _0x531648[_0x2faca7(0x179)](sendInstrumentationEvent,_0x1c764e,_0x531648['cWAEw'],messageTypes[_0x2faca7(0x1c4)],_0x531648[_0x2faca7(0x15c)],null,_0x1c764e),process['exit'](0x1);}await _0x531648['sYfPZ'](sendInstrumentationEvent,_0x1c764e,_0x531648[_0x2faca7(0xe6)],messageTypes[_0x2faca7(0x1c4)],null,null,_0x1c764e);const _0x30c744=JSON['parse'](fs['readFileSync'](_0x531648[_0x2faca7(0xdc)](getCredentialsPath)));global_registry[_0x2faca7(0x1af)]=_0x30c744[_0x2faca7(0x184)]['username'],global_registry[_0x2faca7(0x16b)]=_0x30c744[_0x2faca7(0x184)][_0x2faca7(0xd8)];const _0x9f18c1=WS_ENDPOINT[_0x2faca7(0x110)](_0x531648[_0x2faca7(0x1f9)],_0x30c744['Browserstack'][_0x2faca7(0x100)])[_0x2faca7(0x110)](_0x531648[_0x2faca7(0x11b)],_0x30c744[_0x2faca7(0x184)][_0x2faca7(0xd8)]),_0x45df65={};_0x45df65[_0x2faca7(0x1f6)]=ws,_0x5c025a=new ReconnectingWebSocket(_0x9f18c1,[],_0x45df65),logger[_0x2faca7(0x13f)](_0x531648[_0x2faca7(0x11e)]),webSocketUtils[_0x2faca7(0xde)](_0x5c025a,_0x1c764e[_0x2faca7(0x166)],_0x1c764e['password']);let _0x32e7ca=DEFAULT_GRID_NAME;if(_0x1c764e[_0x2faca7(0x177)]||_0x1c764e[_0x2faca7(0xe7)]||_0x1c764e[_0x2faca7(0x194)]){if(_0x531648[_0x2faca7(0x105)](_0x531648[_0x2faca7(0x136)],_0x531648[_0x2faca7(0x16d)])){const _0x5fcb2=_0x531648[_0x2faca7(0x1b2)][_0x2faca7(0x118)]('|');let _0x409c1d=0x0;while(!![]){switch(_0x5fcb2[_0x409c1d++]){case'0':_0x54fe7d[_0x2faca7(0x11c)](_0x7c811a);continue;case'1':const _0x487873={};_0x487873[_0x2faca7(0x120)]=_0x56dce0[_0x2faca7(0x168)],_0x487873[_0x2faca7(0xf8)]=_0x2faca7(0x189)+_0x2fac34,_0x44ba8c[_0x2faca7(0x12a)](_0x5824c0,_0x487873);continue;case'2':const _0x714e15={};_0x714e15[_0x2faca7(0x120)]=_0x1f8a49['LOG'],_0x714e15['message']=_0x3f5300,_0x1dce1a[_0x2faca7(0x12a)](_0x5292a6,_0x714e15);continue;case'3':const _0x35befd={};_0x35befd[_0x2faca7(0x120)]=_0x18f437[_0x2faca7(0x10b)],_0x35befd['message']=_0x10170d,_0x71a466[_0x2faca7(0x12a)](_0x677650,_0x35befd);continue;case'4':_0x537444='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20http://'+_0x44f364+_0x2faca7(0x1d8);continue;case'5':_0x4b96c1[_0x2faca7(0x11c)](_0x47d4ec);continue;case'6':_0xd4f0a5=_0x2faca7(0x16c)+_0x4c9dd9+'\x20';continue;case'7':_0x57f65b=_0x3df9b6[_0x2faca7(0xf5)]['status'][_0x2faca7(0x143)][_0x2faca7(0x1d0)][0x0][_0x2faca7(0xc8)];continue;}break;}}else!(_0x1c764e[_0x2faca7(0x177)]&&_0x1c764e[_0x2faca7(0xe7)]&&_0x1c764e[_0x2faca7(0x194)])&&(_0x531648[_0x2faca7(0xd0)](_0x531648['ZiapB'],_0x531648[_0x2faca7(0x1ad)])?_0x5afbc8[_0x2faca7(0x11c)](_0x531648[_0x2faca7(0x19c)]):(_0x48f3e1=_0x531648[_0x2faca7(0x17a)],await _0x531648['qdplX'](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes[_0x2faca7(0x1c4)],_0x531648[_0x2faca7(0xe6)],_0x531648[_0x2faca7(0x1a2)],_0x531648['koBhU']),logger['error'](_0x48f3e1),process[_0x2faca7(0x10f)](0x1))),_0x531648[_0x2faca7(0xc7)](_0x1c764e[_0x2faca7(0xe7)][_0x2faca7(0x10c)](),_0x531648[_0x2faca7(0x18d)])&&(_0x531648[_0x2faca7(0x105)](_0x531648['HHQuc'],_0x531648[_0x2faca7(0x1b5)])?_0x5f1a59[_0x2faca7(0x11c)](_0x2faca7(0x153)+_0x57391f+'\x20'):(_0x48f3e1=_0x531648[_0x2faca7(0x1b9)],await _0x531648['qdplX'](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes[_0x2faca7(0x1c4)],_0x531648[_0x2faca7(0xe6)],_0x531648[_0x2faca7(0xfb)],_0x531648[_0x2faca7(0xf4)]),logger[_0x2faca7(0x1d9)](_0x48f3e1),process[_0x2faca7(0x10f)](0x1))),_0x2d994c=!![],_0x46ca4a=_0x1c764e[_0x2faca7(0x177)],_0xd093c6=_0x1c764e[_0x2faca7(0xe7)],_0x2e9b01=_0x1c764e[_0x2faca7(0x194)];}_0x1c764e[_0x2faca7(0x199)]&&(_0x531648[_0x2faca7(0x1f0)](_0x531648[_0x2faca7(0xcb)],_0x531648[_0x2faca7(0x1c6)])?_0x2e6eec=_0x4cfcec[_0x205239['gridProfile']]:_0x32e7ca=_0x1c764e['gridName']);global_registry['gridName']=_0x32e7ca;if(_0x531648[_0x2faca7(0x134)](_0x2d994c,![])){if(_0x531648[_0x2faca7(0x14f)](_0x531648[_0x2faca7(0x15b)],_0x531648[_0x2faca7(0x15b)])){const _0x2fe65f=_0x2faca7(0x169)+AG_API_URL+_0x2faca7(0x1c5)+_0x32e7ca,_0x25e6b9={};_0x25e6b9[_0x2faca7(0x100)]=_0x30c744[_0x2faca7(0x184)][_0x2faca7(0x100)],_0x25e6b9[_0x2faca7(0xd8)]=_0x30c744[_0x2faca7(0x184)][_0x2faca7(0xd8)];const _0x10b076={};_0x10b076['url']=_0x2fe65f,_0x10b076[_0x2faca7(0xe4)]=_0x531648[_0x2faca7(0x121)],_0x10b076['auth']=_0x25e6b9;const _0x34b10b=_0x10b076,_0x3108f1=await _0x531648[_0x2faca7(0x1f8)](promisifiedRequest,_0x34b10b);(_0x531648['dGSTw'](_0x3108f1,null)||_0x531648['dGSTw'](_0x3108f1,undefined))&&(_0x531648[_0x2faca7(0x1db)](_0x531648[_0x2faca7(0x107)],_0x531648[_0x2faca7(0x107)])?(_0x2027f9[_0x2faca7(0x13f)](_0x531648['IAJZS']),_0x531648[_0x2faca7(0xdc)](_0x587764)):(_0x48f3e1=_0x531648[_0x2faca7(0xf7)],await _0x531648[_0x2faca7(0x1a3)](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes[_0x2faca7(0x1c4)],_0x531648[_0x2faca7(0xe6)],_0x531648[_0x2faca7(0xc1)],_0x531648[_0x2faca7(0xf4)]),logger[_0x2faca7(0x1d9)](_0x48f3e1),process[_0x2faca7(0x10f)](0x1)));_0x531648[_0x2faca7(0x14f)](_0x3108f1[_0x2faca7(0x140)],0x191)&&(_0x531648[_0x2faca7(0x14f)](_0x531648[_0x2faca7(0x17b)],_0x531648[_0x2faca7(0x17b)])?(_0x48f3e1=_0x531648[_0x2faca7(0x173)],await _0x531648[_0x2faca7(0x192)](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes['ERROR'],_0x531648[_0x2faca7(0xe6)],_0x531648['ncCPK'],_0x531648[_0x2faca7(0xf4)]),logger['error'](_0x48f3e1),process['exit'](0x1)):_0x104c6b=_0x30ed28['gridName']);if(_0x531648[_0x2faca7(0x1db)](_0x3108f1[_0x2faca7(0x140)],0xc8)){if(_0x531648['aRjSm'](_0x531648[_0x2faca7(0x1a4)],_0x531648['muhht']))_0x48f3e1=_0x2faca7(0xd2)+JSON[_0x2faca7(0x1c0)](_0x3108f1),await _0x531648[_0x2faca7(0x1a3)](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes[_0x2faca7(0x1c4)],_0x531648[_0x2faca7(0xe6)],_0x531648[_0x2faca7(0xc0)],_0x531648[_0x2faca7(0xf4)]),logger['error'](_0x48f3e1),process[_0x2faca7(0x10f)](0x1);else{const _0x5d1f00=_0x531648['twEIB'][_0x2faca7(0x118)]('|');let _0x232442=0x0;while(!![]){switch(_0x5d1f00[_0x232442++]){case'0':_0x5ec22e[_0x2faca7(0xea)]=_0x480541[_0x30a575][_0x2faca7(0xda)];continue;case'1':_0x1f6088[_0x2faca7(0x116)]=_0x895421[_0x41fdc5][_0x2faca7(0x163)];continue;case'2':_0x3590f0=_0x531648[_0x2faca7(0x1e0)];continue;case'3':const _0x316c29={};_0x316c29['type']=_0x3e13f5[_0x2faca7(0x10b)],_0x316c29[_0x2faca7(0xf8)]=_0x143166,_0x526215['sendEventToBackend'](_0x551e22,_0x316c29);continue;case'4':_0x1c863f['info'](_0x84835c);continue;}break;}}}const _0x3b0222=JSON[_0x2faca7(0x1d4)](_0x3108f1[_0x2faca7(0xf5)]),_0x50820c={};_0x50820c[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x13b)],_0x50820c[_0x2faca7(0xf8)]=_0x2faca7(0xe9),webSocketUtils['sendEventToBackend'](_0x5c025a,_0x50820c);const _0x248277={};_0x248277[_0x2faca7(0x120)]=WS_EVENTS['LOG'],_0x248277['message']=_0x531648[_0x2faca7(0xc9)],webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x248277);if(_0x3b0222[_0x2faca7(0x1ab)]){if(_0x531648[_0x2faca7(0x105)](_0x531648['bnSRm'],_0x531648[_0x2faca7(0x1e4)])){const _0x6f6aaa=_0x531648[_0x2faca7(0x193)]['split']('|');let _0x38b150=0x0;while(!![]){switch(_0x6f6aaa[_0x38b150++]){case'0':_0x1a9355[_0x2faca7(0x177)]=_0x2857d2;continue;case'1':_0x169424=_0x2faca7(0xd3)+_0x432d61+_0x2faca7(0x14c)+_0xfa1a94+'\x27';continue;case'2':_0x43f924['info'](_0x3fcfab);continue;case'3':const _0x43e368={};_0x43e368['type']=_0x2c6083[_0x2faca7(0x13b)],_0x43e368[_0x2faca7(0xf8)]='CLI\x20run\x20started',_0x33b88b[_0x2faca7(0x12a)](_0x53dc54,_0x43e368);continue;case'4':_0x11c2a6[_0x2faca7(0x162)]=_0x25a4e2;continue;case'5':const _0x27ed11={};_0x27ed11[_0x2faca7(0x120)]=_0x34da7f[_0x2faca7(0x10b)],_0x27ed11[_0x2faca7(0xf8)]=_0x2b52eb,_0x6604a1[_0x2faca7(0x12a)](_0x400e49,_0x27ed11);continue;case'6':_0x2fb6b4[_0x2faca7(0xe7)]=_0x4eff18;continue;}break;}}else _0x48f3e1=_0x531648['rQyQG'],await _0x531648['aCspA'](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes[_0x2faca7(0x1c4)],_0x531648['cWAEw'],_0x531648[_0x2faca7(0x19d)],_0x531648['koBhU']),logger['error'](_0x48f3e1),process['exit'](0x1);}const _0xe0fe04=_0x3b0222[_0x2faca7(0x185)];let _0x15e737=_0xe0fe04[_0x3b0222['defaultGridProfile']];_0x1c764e[_0x2faca7(0x1ee)]&&(_0x531648['OpJhf'](_0x531648['YdZYm'],_0x531648[_0x2faca7(0x139)])?_0x12ce77[_0x2faca7(0x11c)](_0x2faca7(0xe1)+_0x71c84f['stringify'](_0x5810bd)+'\x20'):_0x15e737=_0xe0fe04[_0x1c764e[_0x2faca7(0x1ee)]]);if(_0x531648[_0x2faca7(0xd0)](_0x15e737,undefined)){if(_0x531648[_0x2faca7(0x1f0)](_0x531648[_0x2faca7(0x19e)],_0x531648[_0x2faca7(0x141)])){const _0x45cd0e={};_0x45cd0e['type']=_0xb17dc0['LOG'],_0x45cd0e[_0x2faca7(0xf8)]=_0x5cd52c,_0x4bb0a7[_0x2faca7(0x12a)](_0x5ee03f,_0x45cd0e,_0x531648[_0x2faca7(0xf4)],!![]);}else _0x48f3e1=_0x531648[_0x2faca7(0x131)],await _0x531648[_0x2faca7(0x192)](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes[_0x2faca7(0x1c4)],_0x531648['cWAEw'],_0x531648['XnOkl'],_0x531648[_0x2faca7(0xf4)]),logger['error'](_0x48f3e1),process[_0x2faca7(0x10f)](0x1);}global_registry[_0x2faca7(0xe3)]=_0x15e737['id'],_0x48f3e1='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x32e7ca+_0x2faca7(0x1b0)+_0x15e737[_0x2faca7(0xdd)]+'\x27\x20grid\x20profile',logger[_0x2faca7(0x11c)](_0x48f3e1);const _0x5b8ea3={};_0x5b8ea3[_0x2faca7(0x120)]=WS_EVENTS['LOG'],_0x5b8ea3[_0x2faca7(0xf8)]=_0x48f3e1,webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x5b8ea3),_0xd093c6=_0x15e737[_0x2faca7(0xe7)],_0x46ca4a=_0x15e737[_0x2faca7(0x177)],_0x2e9b01=_0x15e737[_0x2faca7(0x194)],_0xc0de1c=_0x15e737['concurrency'],_0x38c16c=_0x15e737[_0x2faca7(0x174)],_0x89ce34=_0x15e737[_0x2faca7(0x1ea)],securityGroups=_0x15e737[_0x2faca7(0xcc)],subnets=_0x15e737[_0x2faca7(0x1de)],_0x31a620=_0x15e737[_0x2faca7(0x13e)],_0x531648['Xvzzg'](updateGlobalRegistryWithConfig,_0xd093c6,_0x46ca4a,_0x2e9b01,_0xc0de1c,_0x38c16c,_0x31a620,_0x15e737);}else throw _0xc93f78;}else{const _0x427e0a=_0x531648['BzQcU'][_0x2faca7(0x118)]('|');let _0x209d66=0x0;while(!![]){switch(_0x427e0a[_0x209d66++]){case'0':_0x48f3e1=_0x2faca7(0xd3)+_0x32e7ca+_0x2faca7(0x14c)+_0x46ca4a+'\x27';continue;case'1':logger[_0x2faca7(0x11c)](_0x48f3e1);continue;case'2':global_registry[_0x2faca7(0xe7)]=_0xd093c6;continue;case'3':const _0x516323={};_0x516323['type']=WS_EVENTS[_0x2faca7(0x13b)],_0x516323[_0x2faca7(0xf8)]='CLI\x20run\x20started',webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x516323);continue;case'4':const _0x3ca6dd={};_0x3ca6dd[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x3ca6dd['message']=_0x48f3e1,webSocketUtils['sendEventToBackend'](_0x5c025a,_0x3ca6dd);continue;case'5':global_registry['clusterRegion']=_0x2e9b01;continue;case'6':global_registry[_0x2faca7(0x177)]=_0x46ca4a;continue;}break;}}const _0x471292=_0x30c744[_0x2faca7(0xe7)]||{};if(_0x531648[_0x2faca7(0x1f0)](_0x471292[_0xd093c6],undefined)){logger['info'](_0x531648[_0x2faca7(0x123)]);const [_0x586bc7,_0x137438]=await _0x531648['TsBMK'](inputCloudProviderKeys,_0xd093c6);_0x30c744[_0x2faca7(0xe7)]={};const _0x4808ea={};_0x4808ea[_0x2faca7(0xda)]=_0x586bc7,_0x4808ea[_0x2faca7(0x163)]=_0x137438,_0x30c744['cloudProvider'][_0xd093c6]=_0x4808ea,fs['writeFileSync'](_0x531648[_0x2faca7(0x165)](getCredentialsPath),JSON[_0x2faca7(0x1c0)](_0x30c744)),logger[_0x2faca7(0x13f)](_0x531648[_0x2faca7(0x1d1)]),global_registry[_0x2faca7(0xea)]=_0x586bc7,global_registry['cloudProviderSecretKey']=_0x137438;}else{const _0x329190=_0x531648[_0x2faca7(0x1e8)][_0x2faca7(0x118)]('|');let _0xf48096=0x0;while(!![]){switch(_0x329190[_0xf48096++]){case'0':logger['info'](_0x48f3e1);continue;case'1':global_registry[_0x2faca7(0x116)]=_0x471292[_0xd093c6][_0x2faca7(0x163)];continue;case'2':const _0x53f8a8={};_0x53f8a8[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x53f8a8[_0x2faca7(0xf8)]=_0x48f3e1,webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x53f8a8);continue;case'3':global_registry[_0x2faca7(0xea)]=_0x471292[_0xd093c6][_0x2faca7(0xda)];continue;case'4':_0x48f3e1=_0x531648['YUiOZ'];continue;}break;}}_0x531648[_0x2faca7(0x1f0)](_0xd093c6,AWS)&&(logger[_0x2faca7(0x13f)](_0x531648[_0x2faca7(0x172)]),_0x531648[_0x2faca7(0xdc)](configureAWSIfNotConfigured));let _0x57b05d,_0x1c2404;if(_0x531648['OpJhf'](_0x2d994c,![])){_0x48f3e1=_0x2faca7(0x1a5)+_0x2e9b01+').';const _0x5ccf9c={};_0x5ccf9c[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x5ccf9c[_0x2faca7(0xf8)]=_0x48f3e1,webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x5ccf9c),logger['info'](_0x48f3e1);const _0x4f0e1a=await _0x531648[_0x2faca7(0x119)](isClusterPresent,_0xd093c6,_0x46ca4a);let _0x3cf686;if(_0x4f0e1a){const _0x4d1aca={};_0x4d1aca[_0x2faca7(0x120)]=WS_EVENTS['LOG'],_0x4d1aca['message']=_0x2faca7(0xdb)+_0x46ca4a+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils['sendEventToBackend'](_0x5c025a,_0x4d1aca,_0x531648[_0x2faca7(0xf0)]),logger[_0x2faca7(0x1ba)](_0x2faca7(0xdb)+_0x46ca4a+_0x2faca7(0x147)),_0x57b05d=await _0x531648['KFTjO'](getClusterInfo,_0x46ca4a),_0x2d994c=!![];}else{const _0x435704={};_0x435704[_0x2faca7(0x120)]=WS_EVENTS['LOG'],_0x435704[_0x2faca7(0xf8)]=_0x531648[_0x2faca7(0x102)],webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x435704),logger[_0x2faca7(0x11c)](_0x531648[_0x2faca7(0x102)]);const _0x115c36=_0x531648[_0x2faca7(0x1bc)](_0x89ce34,null)&&_0x531648[_0x2faca7(0x19a)](_0x89ce34,undefined),_0x580adc=_0x531648[_0x2faca7(0x125)](subnets,null)&&_0x531648[_0x2faca7(0x1db)](subnets,undefined);let _0x5c2019;if(_0x115c36){_0x531648['hSwqK'](_0x580adc,![])&&(_0x48f3e1=_0x531648[_0x2faca7(0x133)],await _0x531648['aCspA'](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes['ERROR'],_0x531648['cWAEw'],_0x531648['HjWDT'],_0x531648['koBhU']),logger['error'](_0x48f3e1),process[_0x2faca7(0x10f)](0x1));const _0x1c51c6=await _0x531648[_0x2faca7(0x12f)](isVPCPresent,_0x89ce34,_0x2e9b01);_0x531648[_0x2faca7(0x134)](_0x1c51c6,![])?(_0x48f3e1=_0x531648[_0x2faca7(0xe0)],await _0x531648[_0x2faca7(0x154)](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes['ERROR'],_0x531648[_0x2faca7(0xe6)],_0x531648['aUcZX'],_0x531648[_0x2faca7(0xf4)]),logger[_0x2faca7(0x1d9)](_0x48f3e1),process[_0x2faca7(0x10f)](0x1)):logger['info'](_0x2faca7(0x153)+_0x89ce34+'\x20');const _0xc067a8=await _0x531648[_0x2faca7(0x145)](isSubnetsValid,subnets,_0x89ce34,_0x2e9b01);_0x531648[_0x2faca7(0x16a)](_0xc067a8[0x0],![])?(_0x48f3e1=_0x2faca7(0x117)+_0xc067a8[0x1]+_0x2faca7(0x10d)+_0x89ce34+_0x2faca7(0x1df),await _0x531648[_0x2faca7(0x1a3)](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes[_0x2faca7(0x1c4)],_0x531648['cWAEw'],_0x531648[_0x2faca7(0x1dc)],_0x531648['koBhU']),logger[_0x2faca7(0x1d9)](_0x48f3e1),process[_0x2faca7(0x10f)](0x1)):logger[_0x2faca7(0x11c)]('Found\x20Subnets:\x20'+JSON[_0x2faca7(0x1c0)](subnets)+'\x20');const _0x4332f2=await _0x531648['rMCIw'](createClusterStack,_0x46ca4a,_0x89ce34,subnets);logger[_0x2faca7(0x11c)](_0x531648['MDsBt']),logger['info'](_0x2faca7(0x15a)+_0x4332f2['Stacks'][0x0]['Outputs'][0x3][_0x2faca7(0x1b3)]+'\x20'),logger[_0x2faca7(0x11c)](_0x2faca7(0x1e9)+_0x4332f2[_0x2faca7(0x128)][0x0][_0x2faca7(0x1ed)][0x1][_0x2faca7(0x1b3)]+'\x20'),logger[_0x2faca7(0x11c)](_0x2faca7(0x15f)+_0x4332f2[_0x2faca7(0x128)][0x0][_0x2faca7(0x1ed)][0x0]['OutputValue'][_0x2faca7(0x118)](',')+'\x20'),logger[_0x2faca7(0x11c)](_0x2faca7(0x1bb)+_0x4332f2[_0x2faca7(0x128)][0x0][_0x2faca7(0x1ed)][0x4][_0x2faca7(0x1b3)]+'\x20');}else{const _0x5a05fd={};_0x5a05fd['type']=WS_EVENTS['LOG'],_0x5a05fd[_0x2faca7(0xf8)]=_0x531648[_0x2faca7(0x190)],webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x5a05fd),logger[_0x2faca7(0x11c)](_0x531648['UCdAY']),_0x531648[_0x2faca7(0x1f8)](sendAWSInfoToHST,_0x5c025a);const _0x24ac88={};_0x24ac88[_0x2faca7(0x120)]=WS_EVENTS['LOG'],_0x24ac88['message']=_0x531648[_0x2faca7(0x114)],webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x24ac88),logger[_0x2faca7(0x11c)](_0x531648[_0x2faca7(0xf3)]);const _0x4d8baf=await _0x531648[_0x2faca7(0x1aa)](createClusterStack,_0x46ca4a),_0x525647=_0x4d8baf[_0x2faca7(0x128)][0x0][_0x2faca7(0x1ed)][0x0]['OutputValue'][_0x2faca7(0x118)](',');_0x5c2019=_0x4d8baf[_0x2faca7(0x128)][0x0][_0x2faca7(0x1ed)][0x1][_0x2faca7(0x1b3)];const _0x4f76e7=_0x4d8baf[_0x2faca7(0x128)][0x0][_0x2faca7(0x1ed)][0x2][_0x2faca7(0x1b3)],_0x11ac8f=_0x4d8baf[_0x2faca7(0x128)][0x0][_0x2faca7(0x1ed)][0x3]['OutputValue'];_0x3cf686=_0x4d8baf[_0x2faca7(0x128)][0x0]['Outputs'][0x4][_0x2faca7(0x1b3)];const _0x108ed3=_0x4d8baf[_0x2faca7(0x128)][0x0]['Outputs'][0x5][_0x2faca7(0x1b3)][_0x2faca7(0x118)](','),_0x3fb1a7={};_0x3fb1a7[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x3fb1a7[_0x2faca7(0xf8)]=_0x2faca7(0x12c)+_0x11ac8f+_0x2faca7(0x164)+_0x5c2019+',\x20VPC\x20=>\x20'+_0x4f76e7+_0x2faca7(0x1e1)+_0x108ed3+_0x2faca7(0xd9)+_0x525647+',\x20NodeRole\x20=>\x20'+_0x3cf686+'\x20',webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x3fb1a7),logger[_0x2faca7(0x11c)](_0x531648['MDsBt']),logger[_0x2faca7(0x11c)]('Cluster\x20=>\x20'+_0x11ac8f+'\x20'),logger['info'](_0x2faca7(0x1e9)+_0x5c2019+'\x20'),logger['info'](_0x2faca7(0x158)+_0x4f76e7+'\x20'),logger[_0x2faca7(0x11c)](_0x2faca7(0xfe)+_0x108ed3+'\x20'),logger[_0x2faca7(0x11c)](_0x2faca7(0x15f)+_0x525647+'\x20'),logger[_0x2faca7(0x11c)](_0x2faca7(0x1bb)+_0x3cf686+'\x20');const _0x522044={};_0x522044[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x522044[_0x2faca7(0xf8)]=_0x2faca7(0x1b4),webSocketUtils['sendEventToBackend'](_0x5c025a,_0x522044),logger['info'](_0x531648[_0x2faca7(0x16e)]);}}}_0x57b05d=await _0x531648['ZLZll'](getClusterInfo,_0x46ca4a);const [_0x4e094b,_0xa9904f,_0x51d049,_0x55906b]=await _0x531648[_0x2faca7(0xef)](createK8sClient,_0x57b05d['cluster']['name'],_0x57b05d[_0x2faca7(0xc4)][_0x2faca7(0x104)],_0x57b05d[_0x2faca7(0xc4)][_0x2faca7(0x1ce)][_0x2faca7(0x14a)],global_registry[_0x2faca7(0x162)]);if(_0x531648[_0x2faca7(0x171)](_0x2d994c,![])){const _0x3a14a5={};_0x3a14a5[_0x2faca7(0x120)]=WS_EVENTS['LOG'],_0x3a14a5[_0x2faca7(0xf8)]=_0x531648[_0x2faca7(0x1f3)],webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x3a14a5),logger[_0x2faca7(0x11c)](_0x531648[_0x2faca7(0x1f3)]);try{const _0x485f0e=await _0x531648['TsBMK'](createAutoscalerStack,_0x46ca4a);_0x1c2404=_0x485f0e[_0x2faca7(0x128)][0x0][_0x2faca7(0x1ed)][0x2][_0x2faca7(0x1b3)];const _0x5f175e={};_0x5f175e['type']=WS_EVENTS[_0x2faca7(0x10b)],_0x5f175e[_0x2faca7(0xf8)]=_0x2faca7(0xfc)+_0x1c2404+'\x20',webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x5f175e),logger[_0x2faca7(0x11c)](_0x2faca7(0xfc)+_0x1c2404+'\x20');}catch(_0x53c8f8){if(_0x531648[_0x2faca7(0x1db)](_0x53c8f8['message'][_0x2faca7(0x182)](/already exists/),null)||_0x531648[_0x2faca7(0xc7)](_0x53c8f8['message'][_0x2faca7(0x182)](/already exists/),undefined))_0x48f3e1='Skipping\x20Autoscaler\x20due\x20to:\x20'+_0x53c8f8[_0x2faca7(0xf8)],await _0x531648[_0x2faca7(0x154)](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes[_0x2faca7(0xed)],_0x531648[_0x2faca7(0xe6)],_0x531648['rfJNs'],_0x531648[_0x2faca7(0x146)]),logger[_0x2faca7(0x1ba)](_0x48f3e1);else{const _0xdee56e=_0x531648[_0x2faca7(0xc3)][_0x2faca7(0x118)]('|');let _0x140872=0x0;while(!![]){switch(_0xdee56e[_0x140872++]){case'0':await _0x531648[_0x2faca7(0x150)](deleteClusterStack,CLUSTER_DEP_STACK_NAME);continue;case'1':logger[_0x2faca7(0x1d9)](_0x48f3e1);continue;case'2':process[_0x2faca7(0x10f)](0x1);continue;case'3':await _0x531648[_0x2faca7(0xfa)](reportToGalactusAndSendToEDS,_0x1c764e,_0x5c025a,_0x48f3e1,messageTypes['ERROR'],_0x531648[_0x2faca7(0xe6)],_0x531648[_0x2faca7(0x142)],_0x531648[_0x2faca7(0xf4)]);continue;case'4':_0x48f3e1=_0x2faca7(0x144)+_0x53c8f8[_0x2faca7(0xf8)]+_0x2faca7(0x1fa);continue;}break;}}}let _0x36f2ff=await _0x531648[_0x2faca7(0xcd)](getNodeGroupInfo,_0x46ca4a,_0x46ca4a+_0x2faca7(0x178));nodeRole=_0x36f2ff['nodegroup'][_0x2faca7(0x12e)];const _0x1772ae=await _0x531648[_0x2faca7(0x109)](createAuthConfigMap,nodeRole);await _0x4e094b[_0x2faca7(0xfd)](_0x531648[_0x2faca7(0x14d)],_0x1772ae)[_0x2faca7(0x111)](_0x3be210=>{const _0x1dab38=_0x2faca7;logger[_0x1dab38(0x11c)](_0x531648[_0x1dab38(0x19c)]);});}try{_0x14f434=_0x531648[_0x2faca7(0xee)](kebabCase,_0x32e7ca),logger[_0x2faca7(0x11c)](_0x531648[_0x2faca7(0x17f)]);const _0x5c5f2e={};_0x5c5f2e[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x5c5f2e[_0x2faca7(0xf8)]=_0x531648[_0x2faca7(0x17f)],webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x5c5f2e);if(_0x531648[_0x2faca7(0x19a)](_0x14f434,_0x531648[_0x2faca7(0x160)])){const _0x2d2702={};_0x2d2702[_0x2faca7(0x151)]=_0x531648[_0x2faca7(0x14b)],_0x2d2702[_0x2faca7(0x1d5)]=_0x531648[_0x2faca7(0x14b)];const _0x4570e6={};_0x4570e6[_0x2faca7(0xdd)]=_0x14f434,_0x4570e6[_0x2faca7(0x18f)]=_0x2d2702;const _0x6b188e={};_0x6b188e[_0x2faca7(0x1f7)]=_0x4570e6;let _0x589105=_0x6b188e;await _0x4e094b[_0x2faca7(0x127)](_0x589105),logger[_0x2faca7(0x11c)](_0x531648[_0x2faca7(0x16f)]);}const _0x8dab57={};_0x8dab57[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x8dab57['message']=_0x531648['RMLbt'],webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x8dab57);const _0x43fde7={};_0x43fde7[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x43fde7[_0x2faca7(0xf8)]=_0x531648[_0x2faca7(0xd5)],webSocketUtils['sendEventToBackend'](_0x5c025a,_0x43fde7),logger[_0x2faca7(0x11c)](_0x531648['JyvHc']),await _0x531648[_0x2faca7(0x192)](addGridComponents,_0x4e094b,_0xa9904f,_0x51d049,_0x55906b,_0x14f434,_0x46ca4a,_0x1c2404),_0x48f3e1=_0x531648[_0x2faca7(0x1e6)],logger[_0x2faca7(0x11c)](_0x48f3e1);const _0x37b791={};_0x37b791[_0x2faca7(0x120)]=WS_EVENTS['LOG'],_0x37b791['message']=_0x48f3e1,webSocketUtils['sendEventToBackend'](_0x5c025a,_0x37b791),_0x48f3e1=_0x531648[_0x2faca7(0x1ca)],logger[_0x2faca7(0x11c)](_0x48f3e1);const _0x554e4d={};_0x554e4d[_0x2faca7(0x120)]=WS_EVENTS['LOG'],_0x554e4d[_0x2faca7(0xf8)]=_0x48f3e1,webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x554e4d),await webSocketUtils['delay'](0x1388);let _0x109749;await _0x4e094b['readNamespacedService'](_0x531648['yHrwy'],_0x14f434)[_0x2faca7(0x195)](_0x3fbdba=>{const _0x262a01=_0x2faca7,_0x23caa5=_0x531648[_0x262a01(0xec)][_0x262a01(0x118)]('|');let _0x5ac870=0x0;while(!![]){switch(_0x23caa5[_0x5ac870++]){case'0':const _0x5ba669={};_0x5ba669[_0x262a01(0x120)]=WS_EVENTS[_0x262a01(0x10b)],_0x5ba669[_0x262a01(0xf8)]=_0x48f3e1,webSocketUtils['sendEventToBackend'](_0x5c025a,_0x5ba669);continue;case'1':const _0x592b6a={};_0x592b6a['type']=WS_EVENTS[_0x262a01(0x168)],_0x592b6a[_0x262a01(0xf8)]=_0x262a01(0x189)+_0x109749,webSocketUtils[_0x262a01(0x12a)](_0x5c025a,_0x592b6a);continue;case'2':_0x48f3e1=_0x262a01(0x16c)+_0x109749+'\x20';continue;case'3':logger[_0x262a01(0x11c)](_0x48f3e1);continue;case'4':const _0x4b4870={};_0x4b4870['type']=WS_EVENTS[_0x262a01(0x10b)],_0x4b4870[_0x262a01(0xf8)]=_0x48f3e1,webSocketUtils[_0x262a01(0x12a)](_0x5c025a,_0x4b4870);continue;case'5':logger['info'](_0x48f3e1);continue;case'6':_0x48f3e1=_0x262a01(0x132)+_0x109749+':4444/wd/hub';continue;case'7':_0x109749=_0x3fbdba['body'][_0x262a01(0x175)][_0x262a01(0x143)][_0x262a01(0x1d0)][0x0][_0x262a01(0xc8)];continue;}break;}}),await webSocketUtils['delay'](0x1f4);}catch(_0x10c74d){if(_0x531648['hSwqK'](_0x2d994c,![]))try{logger[_0x2faca7(0x11c)](_0x2faca7(0x1bf)),await _0x531648['fMywL'](removeGridComponents,_0x4e094b,_0xa9904f,_0x51d049,_0x55906b,_0x14f434),await _0x531648[_0x2faca7(0x1aa)](deleteClusterAndDependencies,global_registry['clusterRegion']);}catch(_0x5b2db6){throw _0x5b2db6;}throw _0x10c74d;}}catch(_0x2de185){const _0x56f5bd=_0x2faca7(0x181)+_0x2de185+'\x20\x0a'+JSON[_0x2faca7(0x1c0)](_0x2de185)+'\x20';if(_0x5c025a){const _0x2ebaf0={};_0x2ebaf0[_0x2faca7(0x120)]=WS_EVENTS[_0x2faca7(0x10b)],_0x2ebaf0[_0x2faca7(0xf8)]=_0x56f5bd,webSocketUtils[_0x2faca7(0x12a)](_0x5c025a,_0x2ebaf0,_0x531648['koBhU'],!![]);}const _0x55f6c9={};_0x55f6c9[_0x2faca7(0x1d9)]=_0x56f5bd,await _0x531648[_0x2faca7(0x179)](sendInstrumentationEvent,_0x1c764e,_0x531648[_0x2faca7(0xe6)],messageTypes['ERROR'],_0x531648['qAama'],_0x55f6c9,_0x1c764e),logger[_0x2faca7(0x1d9)](_0x56f5bd);}process[_0x2faca7(0x10f)](0x0);};
@@ -1 +1 @@
1
- const a5_0x33e4db=a5_0x2333;(function(_0x4854a4,_0x5c55d2){const _0x416554=a5_0x2333,_0x1be04d=_0x4854a4();while(!![]){try{const _0x353a6d=-parseInt(_0x416554(0x108))/0x1+-parseInt(_0x416554(0x105))/0x2+-parseInt(_0x416554(0x106))/0x3+-parseInt(_0x416554(0xfe))/0x4*(parseInt(_0x416554(0x104))/0x5)+parseInt(_0x416554(0x109))/0x6+-parseInt(_0x416554(0x10a))/0x7*(parseInt(_0x416554(0xfd))/0x8)+parseInt(_0x416554(0xf9))/0x9;if(_0x353a6d===_0x5c55d2)break;else _0x1be04d['push'](_0x1be04d['shift']());}catch(_0x54be23){_0x1be04d['push'](_0x1be04d['shift']());}}}(a5_0x42cc,0x2d587));function a5_0x42cc(){const _0x25b44f=['../config/constants','strict','help','2951304bQTgCa','217456mQnkCF','recommendCommands','handler','FComL','delete','commandDir','5dsbRWy','406284WZfasA','671913cvgoYD','desc','92099WFCnaV','1494696vEJtIp','7cGjjxK','builder','List\x20Grid\x20resources.','JgJah','7911972uSNScq'];a5_0x42cc=function(){return _0x25b44f;};return a5_0x42cc();}function a5_0x2333(_0x14af81,_0x2ff650){const _0x42ccaf=a5_0x42cc();return a5_0x2333=function(_0x233391,_0x173c91){_0x233391=_0x233391-0xf6;let _0x16cfd7=_0x42ccaf[_0x233391];return _0x16cfd7;},a5_0x2333(_0x14af81,_0x2ff650);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a5_0x33e4db(0xfa));exports['command']=a5_0x33e4db(0x102),exports[a5_0x33e4db(0x107)]=a5_0x33e4db(0xf7),exports[a5_0x33e4db(0xf6)]=function(_0x1dd400){const _0x58219b=a5_0x33e4db,_0x4f230d={};_0x4f230d['JgJah']='delete_commands',_0x4f230d[_0x58219b(0x101)]=_0x58219b(0xfc);const _0xfe2bf8=_0x4f230d;return _0x1dd400['usage'](HELP_HEADER_MESSAGE[_0x58219b(0x102)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x58219b(0x103)](_0xfe2bf8[_0x58219b(0xf8)])['demandCommand']()[_0x58219b(0xff)]()[_0x58219b(0xfb)]()[_0x58219b(0xfc)](_0xfe2bf8[_0x58219b(0x101)]);},exports[a5_0x33e4db(0x100)]=function(_0x40fd20){};
1
+ const a5_0xee11f6=a5_0x9600;function a5_0x9600(_0x135331,_0x4a6377){const _0x224817=a5_0x2248();return a5_0x9600=function(_0x960097,_0x5b69f8){_0x960097=_0x960097-0xcf;let _0x1e7428=_0x224817[_0x960097];return _0x1e7428;},a5_0x9600(_0x135331,_0x4a6377);}(function(_0x1c7d24,_0x4d5269){const _0x4bf5fb=a5_0x9600,_0x3e8c54=_0x1c7d24();while(!![]){try{const _0x5458b7=parseInt(_0x4bf5fb(0xdc))/0x1+parseInt(_0x4bf5fb(0xe2))/0x2*(parseInt(_0x4bf5fb(0xe3))/0x3)+-parseInt(_0x4bf5fb(0xda))/0x4*(parseInt(_0x4bf5fb(0xd6))/0x5)+-parseInt(_0x4bf5fb(0xd2))/0x6*(parseInt(_0x4bf5fb(0xe1))/0x7)+-parseInt(_0x4bf5fb(0xde))/0x8+-parseInt(_0x4bf5fb(0xd7))/0x9+parseInt(_0x4bf5fb(0xd4))/0xa*(parseInt(_0x4bf5fb(0xd1))/0xb);if(_0x5458b7===_0x4d5269)break;else _0x3e8c54['push'](_0x3e8c54['shift']());}catch(_0x1ecdd9){_0x3e8c54['push'](_0x3e8c54['shift']());}}}(a5_0x2248,0xe398b));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a5_0xee11f6(0xdf));function a5_0x2248(){const _0x25339c=['3838235mqhcti','2694609SfbzFx','eLeiK','builder','4EQGdsM','desc','1393294oJtqmm','recommendCommands','14109504YWAcZk','../config/constants','List\x20Grid\x20resources.','588kfGYul','2088334VyRZem','3tRKsIH','demandCommand','strict','delete_commands','11BsZCSv','103698kZjpBK','XFMIj','27772820VIGYTd','help'];a5_0x2248=function(){return _0x25339c;};return a5_0x2248();}exports['command']='delete',exports[a5_0xee11f6(0xdb)]=a5_0xee11f6(0xe0),exports[a5_0xee11f6(0xd9)]=function(_0x53ab7d){const _0x106f5d=a5_0xee11f6,_0x50e925={};_0x50e925[_0x106f5d(0xd8)]=_0x106f5d(0xd0),_0x50e925[_0x106f5d(0xd3)]='help';const _0x5b3f4e=_0x50e925;return _0x53ab7d['usage'](HELP_HEADER_MESSAGE['delete'])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x5b3f4e[_0x106f5d(0xd8)])[_0x106f5d(0xe4)]()[_0x106f5d(0xdd)]()[_0x106f5d(0xcf)]()[_0x106f5d(0xd5)](_0x5b3f4e['XFMIj']);},exports['handler']=function(_0x253ad4){};
@@ -1 +1 @@
1
- const a6_0x1d6fab=a6_0x3226;function a6_0x198e(){const _0x155c09=['40483970zMOhQa','gbAGG','zpjNQ','ERROR','XCHGw','browserstack:managedBy','grid','toLowerCase','help','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','invalid-grid-id','password','YxBuM','4116136ZIABOC','string','../../config/constants','grid-id','cIeOw','\x22\x20with\x20ID\x20','method','aspGV','VJZBC','description','../../utils/instrumentationUtils','1025345BrMRvi','fAroH','PBARU','debug','WoThf','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','sIwDd','wOWyT','exit','epilogue','data','XVLJd','UrRhH','citvD','gsnNw','vCqbk','../../utils/AWSUtils','aZeuO','accessKey','username','https://','XoZWW','info','options','ySNsw','zYpLH','certificateAuthority','error','WEQMh','JcfXe','delete','aXGxk','OsfuJ','FJcMp','hlDrz','delete-grid-called','rhXdo','INFO','qmpmw','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','VtqVF','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Delete\x20an\x20Automation\x20grid.','stack','9ckEjVT','onlyGridInCluster','clusterId','../../config/logger','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','endpoint','readFileSync','PKYFx','usage','cloudProviderAccessKey','promisify','LmuGa','gridId','MAcuu','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','mKRxf','warn','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','cAdRR','existsSync','jjNbL','\x22\x20and\x20ID\x20','clusterSpawnedVia','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','FrSaZ','unauthorised','PHbaK','cloudProviderSecretKey','statusCode','name','666PnvRWj','../../utils/utilityMethods','writeFileSync','dgjrD','JcfZz','cloudProvider','url','/packages/cli/grid/','Browserstack','bfJKm','message','2326232BJzxMz','stringify','body','type','parse','Cluster:\x20','handler','DELETE','oKJQW','uDbAv','1525911OzXOAD','DWEqF','lJaWW','qsoFy','Pass\x20the\x20ID\x20of\x20the\x20Grid','clusterRegion','4leaBin','Succesfully\x20deleted\x20the\x20grid','tags','clusterName','Failed\x20to\x20delete\x20resources!\x20Error:\x20','zGCkG','xWlSk','invalid-input','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','3434421DlYONn','hWkdM','pohuI','uuid','server-error','JGnzE','gCSdv','hsbOn','command','../../utils/userInput','Smczn','LQqbU','IzzYz','uvqvr','23366ekdOQw','argv','XzmSk','region','sxKUu','iyTBG','init-not-called','JITwF','pfvuN','secret','SyiNs','util','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','BXSVb','desc','cluster'];a6_0x198e=function(){return _0x155c09;};return a6_0x198e();}function a6_0x3226(_0x5750a8,_0x22cc2a){const _0x198eda=a6_0x198e();return a6_0x3226=function(_0x3226b2,_0x14749a){_0x3226b2=_0x3226b2-0x1ae;let _0x32206a=_0x198eda[_0x3226b2];return _0x32206a;},a6_0x3226(_0x5750a8,_0x22cc2a);}(function(_0x31145b,_0x479601){const _0x58a38b=a6_0x3226,_0x411a9d=_0x31145b();while(!![]){try{const _0x3f01ae=parseInt(_0x58a38b(0x1ce))/0x1+parseInt(_0x58a38b(0x1c4))/0x2+parseInt(_0x58a38b(0x1dd))/0x3+-parseInt(_0x58a38b(0x1d4))/0x4*(-parseInt(_0x58a38b(0x213))/0x5)+parseInt(_0x58a38b(0x1b9))/0x6*(parseInt(_0x58a38b(0x1eb))/0x7)+-parseInt(_0x58a38b(0x208))/0x8*(-parseInt(_0x58a38b(0x23f))/0x9)+-parseInt(_0x58a38b(0x1fb))/0xa;if(_0x3f01ae===_0x479601)break;else _0x411a9d['push'](_0x411a9d['shift']());}catch(_0x162c35){_0x411a9d['push'](_0x411a9d['shift']());}}}(a6_0x198e,0xd5c15));const fs=require('fs'),util=require(a6_0x1d6fab(0x1f6)),request=require('request'),{v4:uuidv4}=require(a6_0x1d6fab(0x1e0)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL}=require(a6_0x1d6fab(0x20a)),{logger}=require(a6_0x1d6fab(0x242)),{getClusterInfo,configureAWSIfNotConfigured}=require(a6_0x1d6fab(0x223)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a6_0x1d6fab(0x212)),{inputConfirmation,closeInput}=require(a6_0x1d6fab(0x1e6)),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails}=require(a6_0x1d6fab(0x1ba)),promisifiedRequest=util[a6_0x1d6fab(0x249)](request);exports[a6_0x1d6fab(0x1e5)]=a6_0x1d6fab(0x201),exports[a6_0x1d6fab(0x1f9)]=a6_0x1d6fab(0x23d),exports['builder']=function(_0x3159d8){const _0x1e1cd3=a6_0x1d6fab,_0xb61b5a={};_0xb61b5a['citvD']=_0x1e1cd3(0x1d2),_0xb61b5a[_0x1e1cd3(0x234)]='string',_0xb61b5a[_0x1e1cd3(0x232)]=_0x1e1cd3(0x203);const _0x39e926=_0xb61b5a,_0x47f44e={};_0x47f44e[_0x1e1cd3(0x211)]=_0x39e926[_0x1e1cd3(0x220)],_0x47f44e[_0x1e1cd3(0x1c7)]=_0x39e926[_0x1e1cd3(0x234)];const _0xbce27c={};return _0xbce27c[_0x1e1cd3(0x20b)]=_0x47f44e,_0x3159d8['usage'](HELP_HEADER_MESSAGE[_0x1e1cd3(0x231)])[_0x1e1cd3(0x21c)](HELP_FOOTER_MESSAGE)['options'](_0xbce27c)[_0x1e1cd3(0x203)](_0x39e926[_0x1e1cd3(0x232)])[_0x1e1cd3(0x1ec)];},exports[a6_0x1d6fab(0x1ca)]=async function(_0x43388e){const _0x4bdb1e=a6_0x1d6fab,_0x20b932={'BXSVb':_0x4bdb1e(0x218),'Smczn':_0x4bdb1e(0x1d2),'AYkqy':_0x4bdb1e(0x209),'VJZBC':'help','uDbAv':_0x4bdb1e(0x23a),'OsfuJ':function(_0x5b8808){return _0x5b8808();},'jjNbL':function(_0x5f1ba7){return _0x5f1ba7();},'PBARU':function(_0x598f3c,_0x1ae835){return _0x598f3c===_0x1ae835;},'gsnNw':_0x4bdb1e(0x1da),'mKRxf':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','NJQZs':function(_0xf10e6a,_0x43a23b,_0x362dcf,_0x5cb318,_0x51d0b7,_0x2e925e,_0x60427f){return _0xf10e6a(_0x43a23b,_0x362dcf,_0x5cb318,_0x51d0b7,_0x2e925e,_0x60427f);},'sIwDd':_0x4bdb1e(0x236),'XoZWW':_0x4bdb1e(0x1f1),'SyiNs':function(_0x762b16,_0x3e5745,_0xf12b02,_0xe7f5ce,_0x1967bc,_0x19f655,_0x173602){return _0x762b16(_0x3e5745,_0xf12b02,_0xe7f5ce,_0x1967bc,_0x19f655,_0x173602);},'oEoDu':function(_0x42623b,_0x412b12){return _0x42623b!==_0x412b12;},'XVLJd':_0x4bdb1e(0x251),'LmuGa':function(_0x332545,_0xab4645,_0x560b92,_0xcd6dc0){return _0x332545(_0xab4645,_0x560b92,_0xcd6dc0);},'lJaWW':function(_0x499733,_0x3dbc88){return _0x499733===_0x3dbc88;},'HrHFj':_0x4bdb1e(0x1c1),'sxKUu':function(_0x12efab,_0x37657a){return _0x12efab!==_0x37657a;},'YxBuM':'qsxQh','zYpLH':_0x4bdb1e(0x1e9),'qsoFy':function(_0x44fccf,_0x153a70){return _0x44fccf(_0x153a70);},'bfJKm':function(_0x5abbd6,_0x499935){return _0x5abbd6===_0x499935;},'FSKrZ':function(_0x2e65fa,_0xb0fb93){return _0x2e65fa===_0xb0fb93;},'tscGm':_0x4bdb1e(0x1e2),'oKJQW':_0x4bdb1e(0x1de),'dyCQG':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','XCHGw':_0x4bdb1e(0x1db),'hsbOn':_0x4bdb1e(0x1b3),'qmpmw':function(_0x47731){return _0x47731();},'cIeOw':function(_0xe631bc,_0x4c836f){return _0xe631bc===_0x4c836f;},'MAcuu':function(_0x5586da,_0x52ab3f){return _0x5586da!==_0x52ab3f;},'JcfZz':_0x4bdb1e(0x224),'UrRhH':'AZFdU','VtqVF':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','iyTBG':function(_0x3fcbf0){return _0x3fcbf0();},'lEdTX':_0x4bdb1e(0x250),'gbAGG':function(_0x41560b,_0x2109d7){return _0x41560b!==_0x2109d7;},'rhXdo':_0x4bdb1e(0x22f),'JITwF':_0x4bdb1e(0x235),'bmSyV':function(_0x4eccb5){return _0x4eccb5();},'PeXJK':function(_0x59d24e,_0x348b63,_0x2ec3b2,_0x1f7260,_0xad8c35){return _0x59d24e(_0x348b63,_0x2ec3b2,_0x1f7260,_0xad8c35);},'VLBHN':function(_0x3c7eb9,_0x41764e,_0x287673,_0x4e5359,_0x509f10,_0x4c528c){return _0x3c7eb9(_0x41764e,_0x287673,_0x4e5359,_0x509f10,_0x4c528c);},'pfvuN':function(_0x40b76f,_0x3c931f){return _0x40b76f===_0x3c931f;},'WoThf':'mCvXX','XzmSk':_0x4bdb1e(0x1e8),'vCqbk':function(_0x586976,_0x40c6c2){return _0x586976===_0x40c6c2;},'pohuI':_0x4bdb1e(0x200),'JcfXe':'BrowserStack','zGCkG':function(_0x5f03ce,_0x52f06b){return _0x5f03ce(_0x52f06b);},'cDEAe':_0x4bdb1e(0x1cb),'ZoLhg':function(_0x2d754d,_0x2b000f){return _0x2d754d(_0x2b000f);},'fAroH':function(_0x2892a2,_0x6cfea){return _0x2892a2!==_0x6cfea;},'TRXAa':function(_0x4096ec,_0x1047b0,_0xb7d1de,_0x1ce664,_0x18c9f0,_0x44d9a1,_0x32f15b){return _0x4096ec(_0x1047b0,_0xb7d1de,_0x1ce664,_0x18c9f0,_0x44d9a1,_0x32f15b);},'zpjNQ':_0x4bdb1e(0x1e1),'uvqvr':function(_0x360762,_0x29ac07){return _0x360762===_0x29ac07;},'DWEqF':function(_0x132440,_0x1f8ac7,_0x5ebd11,_0x2f1a99,_0x107cd5,_0x387946,_0x3906ae){return _0x132440(_0x1f8ac7,_0x5ebd11,_0x2f1a99,_0x107cd5,_0x387946,_0x3906ae);},'dgjrD':_0x4bdb1e(0x1b4),'gCSdv':function(_0x145eb0,_0x365e6b){return _0x145eb0===_0x365e6b;},'ySNsw':function(_0x146de3,_0x319152,_0x5b7a82,_0x33a675,_0x3e9535,_0x5d076c,_0x7662b5){return _0x146de3(_0x319152,_0x5b7a82,_0x33a675,_0x3e9535,_0x5d076c,_0x7662b5);},'wOWyT':_0x4bdb1e(0x205),'PKYFx':function(_0x4b5e1f,_0x5f4c67,_0x4e8eb0,_0x112667,_0x2762f2,_0x36a27e,_0x723778){return _0x4b5e1f(_0x5f4c67,_0x4e8eb0,_0x112667,_0x2762f2,_0x36a27e,_0x723778);},'PHbaK':function(_0x168f40,_0x55af92,_0x4ea324,_0x2edff2,_0x107502,_0x168b44,_0x33efc6){return _0x168f40(_0x55af92,_0x4ea324,_0x2edff2,_0x107502,_0x168b44,_0x33efc6);},'aspGV':'unknown-error'};try{global_registry['requestId']=_0x20b932[_0x4bdb1e(0x233)](uuidv4);!fs[_0x4bdb1e(0x1ae)](_0x20b932[_0x4bdb1e(0x1af)](getCredentialsPath))&&(_0x20b932[_0x4bdb1e(0x215)](_0x20b932[_0x4bdb1e(0x221)],_0x20b932[_0x4bdb1e(0x221)])?(console[_0x4bdb1e(0x22e)](_0x20b932[_0x4bdb1e(0x24e)]),await _0x20b932['NJQZs'](sendInstrumentationEvent,_0x43388e,_0x20b932[_0x4bdb1e(0x219)],messageTypes[_0x4bdb1e(0x1fe)],_0x20b932[_0x4bdb1e(0x228)],null,_0x43388e),process[_0x4bdb1e(0x21b)](0x1)):_0x2d25a3['warn'](_0x4bdb1e(0x1c9)+_0x2c5ba3[_0x4bdb1e(0x1d7)]+_0x4bdb1e(0x1dc)));_0x20b932[_0x4bdb1e(0x1f5)](sendInstrumentationEvent,_0x43388e,_0x20b932[_0x4bdb1e(0x219)],messageTypes[_0x4bdb1e(0x238)],null,null,_0x43388e);!_0x43388e[_0x4bdb1e(0x24b)]&&(_0x20b932['oEoDu'](_0x20b932[_0x4bdb1e(0x21e)],_0x20b932[_0x4bdb1e(0x21e)])?_0x50af3b=_0x86ecf2[_0x4bdb1e(0x1fa)]['tags']:(console['error'](_0x20b932[_0x4bdb1e(0x1f8)]),process[_0x4bdb1e(0x21b)](0x1)));const _0x3442c8=JSON[_0x4bdb1e(0x1c8)](fs[_0x4bdb1e(0x245)](_0x20b932[_0x4bdb1e(0x233)](getCredentialsPath))),_0x2c12d3=await _0x20b932[_0x4bdb1e(0x24a)](getGridDetails,_0x3442c8['Browserstack'][_0x4bdb1e(0x226)],_0x3442c8['Browserstack']['password'],_0x43388e['gridId']);if(_0x2c12d3){const _0x48a47d=_0x2c12d3[_0x4bdb1e(0x229)];let _0x3b9448=_0x4bdb1e(0x1b2)+_0x48a47d[_0x4bdb1e(0x1b8)]+_0x4bdb1e(0x1b0)+_0x48a47d['id']+_0x4bdb1e(0x1f7),_0x27eee7;_0x2c12d3[_0x4bdb1e(0x240)]&&_0x20b932[_0x4bdb1e(0x1d0)](_0x2c12d3[_0x4bdb1e(0x1b1)],_0x20b932['HrHFj'])&&(_0x20b932[_0x4bdb1e(0x1ef)](_0x20b932[_0x4bdb1e(0x207)],_0x20b932[_0x4bdb1e(0x22c)])?_0x3b9448=_0x4bdb1e(0x1b2)+_0x48a47d[_0x4bdb1e(0x1b8)]+'\x22\x20and\x20ID\x20'+_0x48a47d['id']+_0x4bdb1e(0x24d)+_0x48a47d[_0x4bdb1e(0x1d7)]+_0x4bdb1e(0x20d)+_0x48a47d[_0x4bdb1e(0x241)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(_0x3c4e8e[_0x4bdb1e(0x22e)](_0x20b932['BXSVb']),_0x2a35aa[_0x4bdb1e(0x21b)](0x1)));_0x27eee7=await _0x20b932[_0x4bdb1e(0x1d1)](inputConfirmation,_0x3b9448);(_0x20b932[_0x4bdb1e(0x1d0)](_0x27eee7,undefined)||_0x20b932[_0x4bdb1e(0x215)](_0x27eee7,null)||!(_0x20b932['PBARU'](_0x27eee7[_0x4bdb1e(0x202)](),'y')||_0x20b932[_0x4bdb1e(0x1c2)](_0x27eee7[_0x4bdb1e(0x202)](),'n')))&&(_0x20b932['FSKrZ'](_0x20b932['tscGm'],_0x20b932[_0x4bdb1e(0x1cc)])?_0x32447d=_0x4bdb1e(0x1b2)+_0xa3c365[_0x4bdb1e(0x1b8)]+'\x22\x20and\x20ID\x20'+_0x257bb7['id']+_0x4bdb1e(0x24d)+_0x18c220[_0x4bdb1e(0x1d7)]+'\x22\x20with\x20ID\x20'+_0x1d9edb[_0x4bdb1e(0x241)]+_0x4bdb1e(0x1f7):(console['error'](_0x20b932['dyCQG']),await _0x20b932[_0x4bdb1e(0x1f5)](sendInstrumentationEvent,_0x43388e,_0x20b932['sIwDd'],messageTypes[_0x4bdb1e(0x1fe)],_0x20b932[_0x4bdb1e(0x1ff)],null,_0x43388e),process['exit'](0x1)));_0x20b932['PBARU'](_0x27eee7[_0x4bdb1e(0x202)](),'n')&&(_0x20b932[_0x4bdb1e(0x1d0)](_0x20b932[_0x4bdb1e(0x1e4)],_0x20b932[_0x4bdb1e(0x1e4)])?process[_0x4bdb1e(0x21b)](0x0):_0x2df40d['exit'](0x0));_0x20b932[_0x4bdb1e(0x239)](closeInput),global_registry[_0x4bdb1e(0x1d3)]=_0x48a47d['region'];const _0x450e69=_0x48a47d[_0x4bdb1e(0x1be)],_0x716875=_0x3442c8['cloudProvider']||{};if(_0x20b932[_0x4bdb1e(0x20c)](_0x716875[_0x450e69],undefined)){if(_0x20b932[_0x4bdb1e(0x24c)](_0x20b932[_0x4bdb1e(0x1bd)],_0x20b932[_0x4bdb1e(0x21f)])){logger[_0x4bdb1e(0x229)](_0x20b932[_0x4bdb1e(0x23b)]);const [_0x1aef8f,_0x59a73e]=await _0x20b932[_0x4bdb1e(0x1d1)](inputCloudProviderKeys,_0x450e69);_0x3442c8[_0x4bdb1e(0x1be)]={};const _0x2e646a={};_0x2e646a['accessKey']=_0x1aef8f,_0x2e646a[_0x4bdb1e(0x1f4)]=_0x59a73e,_0x3442c8['cloudProvider'][_0x450e69]=_0x2e646a,fs[_0x4bdb1e(0x1bb)](_0x20b932[_0x4bdb1e(0x1f0)](getCredentialsPath),JSON[_0x4bdb1e(0x1c5)](_0x3442c8)),logger[_0x4bdb1e(0x216)](_0x20b932['lEdTX']),global_registry[_0x4bdb1e(0x248)]=_0x1aef8f,global_registry[_0x4bdb1e(0x1b6)]=_0x59a73e;}else{const _0x14c0c9={};_0x14c0c9[_0x4bdb1e(0x211)]=_0x20b932[_0x4bdb1e(0x1e7)],_0x14c0c9['type']=_0x20b932['AYkqy'];const _0x354edd={};return _0x354edd[_0x4bdb1e(0x20b)]=_0x14c0c9,_0x581c25[_0x4bdb1e(0x247)](_0x2ef95f[_0x4bdb1e(0x231)])[_0x4bdb1e(0x21c)](_0x3e9f75)[_0x4bdb1e(0x22a)](_0x354edd)['help'](_0x20b932[_0x4bdb1e(0x210)])['argv'];}}else _0x20b932[_0x4bdb1e(0x1fc)](_0x20b932[_0x4bdb1e(0x237)],_0x20b932[_0x4bdb1e(0x1f2)])?(logger[_0x4bdb1e(0x229)](_0x20b932[_0x4bdb1e(0x1cd)]),global_registry[_0x4bdb1e(0x248)]=_0x716875[_0x450e69][_0x4bdb1e(0x225)],global_registry['cloudProviderSecretKey']=_0x716875[_0x450e69][_0x4bdb1e(0x1f4)]):(_0x3200dc['info'](_0x20b932[_0x4bdb1e(0x1cd)]),_0x3598c4['cloudProviderAccessKey']=_0x2d8e70[_0x4472c5][_0x4bdb1e(0x225)],_0x385deb[_0x4bdb1e(0x1b6)]=_0x34f4bd[_0x1a17cb][_0x4bdb1e(0x1f4)]);_0x20b932['bmSyV'](configureAWSIfNotConfigured);const _0x48388d=_0x20b932['qsoFy'](kebabCase,_0x48a47d[_0x4bdb1e(0x1b8)]),_0x11e444=await _0x20b932[_0x4bdb1e(0x1d1)](getClusterInfo,_0x48a47d[_0x4bdb1e(0x1d7)]),[_0x586f30,_0x2d654b,_0x19eb98,_0xa34b73]=await _0x20b932['PeXJK'](createK8sClient,_0x11e444['cluster'][_0x4bdb1e(0x1b8)],_0x11e444[_0x4bdb1e(0x1fa)][_0x4bdb1e(0x244)],_0x11e444[_0x4bdb1e(0x1fa)][_0x4bdb1e(0x22d)][_0x4bdb1e(0x21d)],_0x48a47d[_0x4bdb1e(0x1ee)]);await _0x20b932['VLBHN'](removeGridComponents,_0x586f30,_0x2d654b,_0x19eb98,_0xa34b73,_0x48388d);let _0x4a1228;_0x11e444[_0x4bdb1e(0x1fa)]&&(_0x20b932[_0x4bdb1e(0x1f3)](_0x20b932[_0x4bdb1e(0x217)],_0x20b932[_0x4bdb1e(0x1ed)])?(_0x4835b9[_0x4bdb1e(0x229)]('Succesfully\x20deleted\x20the\x20grid'),_0x24fc01['exit'](0x0)):_0x4a1228=_0x11e444[_0x4bdb1e(0x1fa)][_0x4bdb1e(0x1d6)]);_0x2c12d3[_0x4bdb1e(0x240)]&&(_0x4a1228&&_0x20b932[_0x4bdb1e(0x222)](_0x4a1228[_0x20b932[_0x4bdb1e(0x1df)]],_0x20b932[_0x4bdb1e(0x230)])?await _0x20b932[_0x4bdb1e(0x1d9)](deleteClusterAndDependencies,_0x48a47d[_0x4bdb1e(0x1ee)]):logger[_0x4bdb1e(0x24f)](_0x4bdb1e(0x1c9)+_0x48a47d[_0x4bdb1e(0x1d7)]+_0x4bdb1e(0x1dc)));const _0x54977c=_0x4bdb1e(0x227)+AG_API_URL+_0x4bdb1e(0x1c0)+_0x43388e[_0x4bdb1e(0x24b)],_0x12847e={};_0x12847e[_0x4bdb1e(0x226)]=_0x3442c8[_0x4bdb1e(0x1c1)][_0x4bdb1e(0x226)],_0x12847e[_0x4bdb1e(0x206)]=_0x3442c8['Browserstack']['password'];const _0xb1a12c={};_0xb1a12c[_0x4bdb1e(0x1bf)]=_0x54977c,_0xb1a12c[_0x4bdb1e(0x20e)]=_0x20b932['cDEAe'],_0xb1a12c['auth']=_0x12847e;const _0x5eea8c=_0xb1a12c,_0x522a70=await _0x20b932['ZoLhg'](promisifiedRequest,_0x5eea8c);_0x20b932[_0x4bdb1e(0x214)](_0x522a70,null)&&_0x20b932['sxKUu'](_0x522a70,undefined)&&_0x20b932['PBARU'](_0x522a70['statusCode'],0xc8)&&(logger[_0x4bdb1e(0x229)](_0x4bdb1e(0x1d5)),process[_0x4bdb1e(0x21b)](0x0)),logger[_0x4bdb1e(0x22e)](_0x4bdb1e(0x204)+JSON[_0x4bdb1e(0x1c5)](_0x522a70)),await _0x20b932['TRXAa'](sendInstrumentationEvent,_0x43388e,_0x20b932[_0x4bdb1e(0x219)],messageTypes[_0x4bdb1e(0x1fe)],_0x20b932[_0x4bdb1e(0x1fd)],res,_0x43388e),process[_0x4bdb1e(0x21b)](0x1);}_0x20b932[_0x4bdb1e(0x1ea)](res[_0x4bdb1e(0x1b7)],0x191)&&(logger[_0x4bdb1e(0x22e)](_0x4bdb1e(0x23c)),await _0x20b932[_0x4bdb1e(0x1cf)](sendInstrumentationEvent,_0x43388e,_0x20b932[_0x4bdb1e(0x219)],messageTypes['ERROR'],_0x20b932[_0x4bdb1e(0x1bc)],null,_0x43388e),process['exit'](0x1)),_0x20b932[_0x4bdb1e(0x1e3)](res[_0x4bdb1e(0x1b7)],0x190)&&(logger[_0x4bdb1e(0x22e)](JSON[_0x4bdb1e(0x1c8)](res[_0x4bdb1e(0x1c6)])[_0x4bdb1e(0x1c3)]),await _0x20b932[_0x4bdb1e(0x22b)](sendInstrumentationEvent,_0x43388e,_0x20b932[_0x4bdb1e(0x219)],messageTypes[_0x4bdb1e(0x1fe)],_0x20b932[_0x4bdb1e(0x21a)],null,_0x43388e),process[_0x4bdb1e(0x21b)](0x1)),logger[_0x4bdb1e(0x22e)](_0x4bdb1e(0x243)+JSON[_0x4bdb1e(0x1c5)](res)),await _0x20b932[_0x4bdb1e(0x246)](sendInstrumentationEvent,_0x43388e,_0x20b932[_0x4bdb1e(0x219)],messageTypes['ERROR'],_0x20b932[_0x4bdb1e(0x1fd)],res,_0x43388e),process['exit'](0x1);}catch(_0x3fdb7e){logger[_0x4bdb1e(0x22e)](_0x4bdb1e(0x1d8)+_0x3fdb7e[_0x4bdb1e(0x23e)]),await _0x20b932[_0x4bdb1e(0x1b5)](sendInstrumentationEvent,_0x43388e,_0x20b932[_0x4bdb1e(0x219)],messageTypes[_0x4bdb1e(0x1fe)],_0x20b932[_0x4bdb1e(0x20f)],_0x3fdb7e,_0x43388e),process['exit'](0x1);}};
1
+ const a6_0xea3818=a6_0x2989;(function(_0x14d83f,_0x5963a3){const _0x2d7ac4=a6_0x2989,_0x90419c=_0x14d83f();while(!![]){try{const _0x1e8cfc=parseInt(_0x2d7ac4(0x1c7))/0x1*(parseInt(_0x2d7ac4(0x169))/0x2)+parseInt(_0x2d7ac4(0x1b6))/0x3+parseInt(_0x2d7ac4(0x1a1))/0x4*(parseInt(_0x2d7ac4(0x1e9))/0x5)+parseInt(_0x2d7ac4(0x19d))/0x6+parseInt(_0x2d7ac4(0x166))/0x7*(parseInt(_0x2d7ac4(0x1e6))/0x8)+parseInt(_0x2d7ac4(0x18e))/0x9+-parseInt(_0x2d7ac4(0x1b8))/0xa;if(_0x1e8cfc===_0x5963a3)break;else _0x90419c['push'](_0x90419c['shift']());}catch(_0x376610){_0x90419c['push'](_0x90419c['shift']());}}}(a6_0x2a8f,0x6ebf4));const fs=require('fs'),util=require(a6_0xea3818(0x193)),request=require(a6_0xea3818(0x17c)),{v4:uuidv4}=require(a6_0xea3818(0x1be)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL}=require('../../config/constants'),{logger}=require(a6_0xea3818(0x18f)),{getClusterInfo,configureAWSIfNotConfigured}=require(a6_0xea3818(0x1ab)),{removeGridComponents,deleteClusterAndDependencies}=require(a6_0xea3818(0x170)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,closeInput}=require(a6_0xea3818(0x196)),{createK8sClient}=require(a6_0xea3818(0x195)),{kebabCase,getCredentialsPath,getGridDetails}=require(a6_0xea3818(0x16e)),promisifiedRequest=util[a6_0xea3818(0x1c1)](request);function a6_0x2989(_0x1afda6,_0x33f2b1){const _0x2a8f93=a6_0x2a8f();return a6_0x2989=function(_0x2989fa,_0x5e8d82){_0x2989fa=_0x2989fa-0x149;let _0x3043e3=_0x2a8f93[_0x2989fa];return _0x3043e3;},a6_0x2989(_0x1afda6,_0x33f2b1);}exports[a6_0xea3818(0x1dc)]=a6_0xea3818(0x191),exports[a6_0xea3818(0x176)]='Delete\x20an\x20Automation\x20grid.',exports['builder']=function(_0x3121fe){const _0x1ed850=a6_0xea3818,_0xeb3535={};_0xeb3535[_0x1ed850(0x151)]=_0x1ed850(0x188),_0xeb3535['FNoRs']=_0x1ed850(0x14c),_0xeb3535[_0x1ed850(0x190)]=_0x1ed850(0x16b);const _0x1c09de=_0xeb3535,_0x595a45={};_0x595a45['description']=_0x1c09de[_0x1ed850(0x151)],_0x595a45['type']=_0x1c09de['FNoRs'];const _0x273fd7={};return _0x273fd7[_0x1ed850(0x1c6)]=_0x595a45,_0x3121fe[_0x1ed850(0x167)](HELP_HEADER_MESSAGE[_0x1ed850(0x1d3)])[_0x1ed850(0x1cc)](HELP_FOOTER_MESSAGE)[_0x1ed850(0x1e7)](_0x273fd7)['help'](_0x1c09de[_0x1ed850(0x190)])[_0x1ed850(0x16a)];},exports[a6_0xea3818(0x16c)]=async function(_0x51f09e){const _0x315403=a6_0xea3818,_0x143f02={'IBLTP':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','rPDWQ':_0x315403(0x188),'kEUIQ':_0x315403(0x14c),'eGDkm':_0x315403(0x16b),'WxzoK':_0x315403(0x19f),'RIXUX':function(_0x3db186){return _0x3db186();},'Xwmsb':function(_0x4154f9){return _0x4154f9();},'kohXE':function(_0x5cd1ab,_0x45e357){return _0x5cd1ab!==_0x45e357;},'XbHQg':_0x315403(0x183),'PIHip':_0x315403(0x161),'ZICwZ':_0x315403(0x19c),'BIyiJ':function(_0x580499,_0x241605,_0x382e34,_0x222eaa,_0x4fa730,_0x4ba0bc,_0x367780){return _0x580499(_0x241605,_0x382e34,_0x222eaa,_0x4fa730,_0x4ba0bc,_0x367780);},'ogiTq':_0x315403(0x14d),'BZkkK':'init-not-called','LBqLZ':function(_0xefb5fa,_0x5d7a0c,_0x58f0f4,_0x4892bc,_0x1f4111,_0x323044,_0x59d7a6){return _0xefb5fa(_0x5d7a0c,_0x58f0f4,_0x4892bc,_0x1f4111,_0x323044,_0x59d7a6);},'Obgpn':function(_0x4db152,_0x17a9e0){return _0x4db152===_0x17a9e0;},'LMAFK':'IDtEA','ehcfr':'EJgsM','fAGjF':function(_0x1d0402){return _0x1d0402();},'zpSwR':function(_0x33c616,_0xee7113,_0x701b68,_0x24f7fb){return _0x33c616(_0xee7113,_0x701b68,_0x24f7fb);},'aWcDL':function(_0x2deebf,_0x53fd42){return _0x2deebf===_0x53fd42;},'cUOEA':'Browserstack','RXeTF':_0x315403(0x17b),'tWGhT':function(_0x534240,_0x28908e){return _0x534240(_0x28908e);},'QvAJR':function(_0x3b620a,_0x47d982){return _0x3b620a===_0x47d982;},'VQoyG':function(_0x42f73a,_0x25e87c){return _0x42f73a===_0x25e87c;},'ZWoUT':function(_0x3933e6,_0x263db6){return _0x3933e6===_0x263db6;},'DZeVH':function(_0x20f234,_0x20224b){return _0x20f234===_0x20224b;},'zIiVk':_0x315403(0x185),'YplaI':_0x315403(0x1a0),'MyuPi':_0x315403(0x160),'JsvkJ':'invalid-input','HesTo':function(_0x247e74,_0x5dca7d){return _0x247e74===_0x5dca7d;},'OMtDU':function(_0x161e7a,_0x3df970){return _0x161e7a!==_0x3df970;},'yfGVk':'ZcVGN','gkFpg':_0x315403(0x18c),'Uyvit':function(_0x3621d4,_0x22176a){return _0x3621d4===_0x22176a;},'jWrnW':_0x315403(0x16d),'CNhGV':_0x315403(0x1d9),'ardDw':function(_0xf23201){return _0xf23201();},'EKJnW':_0x315403(0x1d4),'WWrmi':function(_0x56bf00,_0x5b3f30){return _0x56bf00===_0x5b3f30;},'tzeho':'pDJEh','JAMpJ':_0x315403(0x1b5),'OyZNe':function(_0xa67cfd){return _0xa67cfd();},'oDkEY':function(_0x192faf,_0x4e6c5c){return _0x192faf(_0x4e6c5c);},'FqfWu':function(_0x2c2eb4,_0x4fc709,_0x261494,_0x1dd78a,_0x2e999f){return _0x2c2eb4(_0x4fc709,_0x261494,_0x1dd78a,_0x2e999f);},'dTzaG':function(_0x3ae82a,_0x8a4e83,_0x3fefbc,_0x4b498f,_0x430100,_0x4ec5a0){return _0x3ae82a(_0x8a4e83,_0x3fefbc,_0x4b498f,_0x430100,_0x4ec5a0);},'vTpyf':_0x315403(0x19e),'SHBuD':_0x315403(0x1a8),'OiyNL':function(_0x581031,_0x13763a){return _0x581031===_0x13763a;},'gLkvA':_0x315403(0x171),'xsakb':_0x315403(0x1d7),'yLGod':function(_0xa24c5d,_0x4b883b){return _0xa24c5d(_0x4b883b);},'STVWo':_0x315403(0x157),'BQJqB':function(_0x4bad4f,_0x52e8a7){return _0x4bad4f!==_0x52e8a7;},'XcddP':function(_0x43e25a,_0x54b0c8){return _0x43e25a===_0x54b0c8;},'xjBlY':function(_0x1814fa,_0x2e070e,_0x3e9906,_0x4f04ad,_0x1a091d,_0x5a5829,_0x2ff003){return _0x1814fa(_0x2e070e,_0x3e9906,_0x4f04ad,_0x1a091d,_0x5a5829,_0x2ff003);},'omaFJ':'server-error','oFGHi':function(_0x59a0fe,_0x369f0a,_0x11befc,_0x3ce499,_0x5f0bb7,_0x3aaf2d,_0x3d9f45){return _0x59a0fe(_0x369f0a,_0x11befc,_0x3ce499,_0x5f0bb7,_0x3aaf2d,_0x3d9f45);},'OGroQ':_0x315403(0x1dd),'vrxJI':function(_0x5ad374,_0x123e80){return _0x5ad374===_0x123e80;},'FWjYn':function(_0x1a8354,_0x4f438e,_0x5346dd,_0x179f16,_0xdaa448,_0x43c093,_0x4920c9){return _0x1a8354(_0x4f438e,_0x5346dd,_0x179f16,_0xdaa448,_0x43c093,_0x4920c9);},'CJTrQ':_0x315403(0x1ec),'IQNME':function(_0x42ea21,_0x19d921,_0x18c3e6,_0x71bb93,_0x4b7e4b,_0x40d911,_0x1cd872){return _0x42ea21(_0x19d921,_0x18c3e6,_0x71bb93,_0x4b7e4b,_0x40d911,_0x1cd872);},'lmfGU':_0x315403(0x1aa)};try{global_registry[_0x315403(0x181)]=_0x143f02[_0x315403(0x1c2)](uuidv4);!fs[_0x315403(0x1da)](_0x143f02[_0x315403(0x1e4)](getCredentialsPath))&&(_0x143f02['kohXE'](_0x143f02[_0x315403(0x15a)],_0x143f02['PIHip'])?(console[_0x315403(0x1a7)](_0x143f02[_0x315403(0x18d)]),await _0x143f02[_0x315403(0x15c)](sendInstrumentationEvent,_0x51f09e,_0x143f02[_0x315403(0x1c0)],messageTypes[_0x315403(0x198)],_0x143f02[_0x315403(0x1b9)],null,_0x51f09e),process['exit'](0x1)):_0x48cae9=_0x124a6f[_0x315403(0x1ba)][_0x315403(0x199)]);_0x143f02[_0x315403(0x17d)](sendInstrumentationEvent,_0x51f09e,_0x143f02['ogiTq'],messageTypes[_0x315403(0x1c3)],null,null,_0x51f09e);!_0x51f09e[_0x315403(0x15e)]&&(_0x143f02[_0x315403(0x1ee)](_0x143f02[_0x315403(0x172)],_0x143f02[_0x315403(0x1cd)])?(_0x36355f[_0x315403(0x1b2)](_0x315403(0x1eb)),_0x4f9462[_0x315403(0x19b)](0x0)):(console['error'](_0x143f02[_0x315403(0x1c9)]),process[_0x315403(0x19b)](0x1)));const _0x1acb04=JSON[_0x315403(0x159)](fs[_0x315403(0x1ed)](_0x143f02[_0x315403(0x156)](getCredentialsPath))),_0x3a8389=await _0x143f02[_0x315403(0x1bc)](getGridDetails,_0x1acb04['Browserstack'][_0x315403(0x1ca)],_0x1acb04[_0x315403(0x168)][_0x315403(0x1ea)],_0x51f09e[_0x315403(0x15e)]);if(_0x3a8389){const _0x4d2b12=_0x3a8389[_0x315403(0x1b2)];let _0x1e5745=_0x315403(0x189)+_0x4d2b12[_0x315403(0x1e1)]+_0x315403(0x174)+_0x4d2b12['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x2d13fc;_0x3a8389[_0x315403(0x1a5)]&&_0x143f02[_0x315403(0x1df)](_0x3a8389[_0x315403(0x178)],_0x143f02[_0x315403(0x1c5)])&&(_0x143f02['kohXE'](_0x143f02[_0x315403(0x1a3)],_0x143f02[_0x315403(0x1a3)])?(_0x54fe5a[_0x315403(0x1b2)](_0x143f02['IBLTP']),_0x1227da['cloudProviderAccessKey']=_0xa3fbd8[_0x57552c][_0x315403(0x15f)],_0x238fba['cloudProviderSecretKey']=_0x43fcb2[_0x299fe8]['secret']):_0x1e5745=_0x315403(0x189)+_0x4d2b12[_0x315403(0x1e1)]+'\x22\x20and\x20ID\x20'+_0x4d2b12['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x4d2b12['clusterName']+'\x22\x20with\x20ID\x20'+_0x4d2b12['clusterId']+_0x315403(0x175));_0x2d13fc=await _0x143f02['tWGhT'](inputConfirmation,_0x1e5745);if(_0x143f02[_0x315403(0x15b)](_0x2d13fc,undefined)||_0x143f02[_0x315403(0x1a4)](_0x2d13fc,null)||!(_0x143f02[_0x315403(0x1d2)](_0x2d13fc[_0x315403(0x1ad)](),'y')||_0x143f02['DZeVH'](_0x2d13fc[_0x315403(0x1ad)](),'n'))){if(_0x143f02[_0x315403(0x1a2)](_0x143f02[_0x315403(0x1de)],_0x143f02[_0x315403(0x1d0)]))console[_0x315403(0x1a7)](_0x143f02['MyuPi']),await _0x143f02['BIyiJ'](sendInstrumentationEvent,_0x51f09e,_0x143f02[_0x315403(0x1c0)],messageTypes[_0x315403(0x198)],_0x143f02[_0x315403(0x1d6)],null,_0x51f09e),process['exit'](0x1);else{const _0x274e95={};_0x274e95[_0x315403(0x192)]=_0x143f02[_0x315403(0x1b3)],_0x274e95['type']=_0x143f02[_0x315403(0x149)];const _0x3e4dd9={};return _0x3e4dd9[_0x315403(0x1c6)]=_0x274e95,_0x50d3ac[_0x315403(0x167)](_0x129a77[_0x315403(0x1d3)])[_0x315403(0x1cc)](_0x3696fe)['options'](_0x3e4dd9)[_0x315403(0x16b)](_0x143f02[_0x315403(0x1b0)])[_0x315403(0x16a)];}}_0x143f02['HesTo'](_0x2d13fc[_0x315403(0x1ad)](),'n')&&(_0x143f02['OMtDU'](_0x143f02[_0x315403(0x1d5)],_0x143f02[_0x315403(0x1a6)])?process[_0x315403(0x19b)](0x0):_0x1e20f5[_0x315403(0x180)](_0x315403(0x1bd)+_0x31c812[_0x315403(0x179)]+_0x315403(0x152)));_0x143f02[_0x315403(0x156)](closeInput),global_registry[_0x315403(0x14b)]=_0x4d2b12[_0x315403(0x163)];const _0x5c47cc=_0x4d2b12['cloudProvider'],_0x4317db=_0x1acb04[_0x315403(0x1ae)]||{};if(_0x143f02[_0x315403(0x1a4)](_0x4317db[_0x5c47cc],undefined)){if(_0x143f02[_0x315403(0x18a)](_0x143f02[_0x315403(0x17e)],_0x143f02['jWrnW'])){logger[_0x315403(0x1b2)](_0x143f02[_0x315403(0x154)]);const [_0x2bfc06,_0xb6c05b]=await _0x143f02['tWGhT'](inputCloudProviderKeys,_0x5c47cc);_0x1acb04[_0x315403(0x1ae)]={};const _0x16c357={};_0x16c357[_0x315403(0x15f)]=_0x2bfc06,_0x16c357['secret']=_0xb6c05b,_0x1acb04[_0x315403(0x1ae)][_0x5c47cc]=_0x16c357,fs[_0x315403(0x14f)](_0x143f02[_0x315403(0x1e2)](getCredentialsPath),JSON[_0x315403(0x1ac)](_0x1acb04)),logger[_0x315403(0x182)](_0x143f02[_0x315403(0x1af)]),global_registry[_0x315403(0x1e3)]=_0x2bfc06,global_registry[_0x315403(0x184)]=_0xb6c05b;}else _0x5c895e=_0x315403(0x189)+_0x132ac9[_0x315403(0x1e1)]+_0x315403(0x174)+_0x22f9cb['id']+_0x315403(0x14a)+_0x4b9cad[_0x315403(0x179)]+'\x22\x20with\x20ID\x20'+_0x44e4b8['clusterId']+_0x315403(0x175);}else _0x143f02[_0x315403(0x1bb)](_0x143f02[_0x315403(0x164)],_0x143f02[_0x315403(0x17a)])?(_0x3f1079['error'](_0x143f02[_0x315403(0x1c9)]),_0x1d9ede[_0x315403(0x19b)](0x1)):(logger['info'](_0x143f02[_0x315403(0x1ce)]),global_registry[_0x315403(0x1e3)]=_0x4317db[_0x5c47cc][_0x315403(0x15f)],global_registry[_0x315403(0x184)]=_0x4317db[_0x5c47cc][_0x315403(0x15d)]);_0x143f02[_0x315403(0x1d8)](configureAWSIfNotConfigured);const _0x539de9=_0x143f02[_0x315403(0x16f)](kebabCase,_0x4d2b12[_0x315403(0x1e1)]),_0x24ab73=await _0x143f02['oDkEY'](getClusterInfo,_0x4d2b12[_0x315403(0x179)]),[_0x58750b,_0x4b1072,_0x3cc141,_0x581924]=await _0x143f02[_0x315403(0x194)](createK8sClient,_0x24ab73[_0x315403(0x1ba)][_0x315403(0x1e1)],_0x24ab73[_0x315403(0x1ba)][_0x315403(0x162)],_0x24ab73[_0x315403(0x1ba)][_0x315403(0x1e8)][_0x315403(0x186)],_0x4d2b12[_0x315403(0x163)]);await _0x143f02['dTzaG'](removeGridComponents,_0x58750b,_0x4b1072,_0x3cc141,_0x581924,_0x539de9);let _0x258a4e;_0x24ab73[_0x315403(0x1ba)]&&(_0x143f02[_0x315403(0x19a)](_0x143f02[_0x315403(0x1e0)],_0x143f02['SHBuD'])?_0x258a4e=_0x24ab73[_0x315403(0x1ba)][_0x315403(0x199)]:_0x483592['exit'](0x0));_0x3a8389[_0x315403(0x1a5)]&&(_0x258a4e&&_0x143f02[_0x315403(0x1b4)](_0x258a4e[_0x143f02[_0x315403(0x177)]],_0x143f02[_0x315403(0x1c4)])?await _0x143f02['yLGod'](deleteClusterAndDependencies,_0x4d2b12[_0x315403(0x163)]):logger[_0x315403(0x180)](_0x315403(0x1bd)+_0x4d2b12[_0x315403(0x179)]+_0x315403(0x152)));const _0x5361e8=_0x315403(0x153)+AG_API_URL+_0x315403(0x187)+_0x51f09e[_0x315403(0x15e)],_0x3bf8ff={};_0x3bf8ff[_0x315403(0x1ca)]=_0x1acb04[_0x315403(0x168)][_0x315403(0x1ca)],_0x3bf8ff[_0x315403(0x1ea)]=_0x1acb04[_0x315403(0x168)][_0x315403(0x1ea)];const _0x1b1e91={};_0x1b1e91['url']=_0x5361e8,_0x1b1e91[_0x315403(0x1b7)]=_0x143f02[_0x315403(0x155)],_0x1b1e91[_0x315403(0x158)]=_0x3bf8ff;const _0xb5c76f=_0x1b1e91,_0x1af9e4=await _0x143f02[_0x315403(0x1b1)](promisifiedRequest,_0xb5c76f);_0x143f02[_0x315403(0x1a2)](_0x1af9e4,null)&&_0x143f02[_0x315403(0x165)](_0x1af9e4,undefined)&&_0x143f02['XcddP'](_0x1af9e4[_0x315403(0x1c8)],0xc8)&&(logger[_0x315403(0x1b2)](_0x315403(0x1eb)),process[_0x315403(0x19b)](0x0)),logger[_0x315403(0x1a7)](_0x315403(0x18b)+JSON[_0x315403(0x1ac)](_0x1af9e4)),await _0x143f02[_0x315403(0x1bf)](sendInstrumentationEvent,_0x51f09e,_0x143f02['ogiTq'],messageTypes[_0x315403(0x198)],_0x143f02['omaFJ'],res,_0x51f09e),process[_0x315403(0x19b)](0x1);}_0x143f02[_0x315403(0x1ee)](res[_0x315403(0x1c8)],0x191)&&(logger[_0x315403(0x1a7)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x143f02[_0x315403(0x150)](sendInstrumentationEvent,_0x51f09e,_0x143f02[_0x315403(0x1c0)],messageTypes[_0x315403(0x198)],_0x143f02[_0x315403(0x1d1)],null,_0x51f09e),process[_0x315403(0x19b)](0x1)),_0x143f02[_0x315403(0x173)](res[_0x315403(0x1c8)],0x190)&&(logger[_0x315403(0x1a7)](JSON['parse'](res[_0x315403(0x197)])[_0x315403(0x1db)]),await _0x143f02['FWjYn'](sendInstrumentationEvent,_0x51f09e,_0x143f02[_0x315403(0x1c0)],messageTypes['ERROR'],_0x143f02[_0x315403(0x1a9)],null,_0x51f09e),process[_0x315403(0x19b)](0x1)),logger[_0x315403(0x1a7)](_0x315403(0x14e)+JSON[_0x315403(0x1ac)](res)),await _0x143f02[_0x315403(0x1e5)](sendInstrumentationEvent,_0x51f09e,_0x143f02[_0x315403(0x1c0)],messageTypes[_0x315403(0x198)],_0x143f02[_0x315403(0x1cf)],res,_0x51f09e),process[_0x315403(0x19b)](0x1);}catch(_0x2f19cf){logger[_0x315403(0x1a7)](_0x315403(0x1cb)+_0x2f19cf[_0x315403(0x17f)]),await _0x143f02['xjBlY'](sendInstrumentationEvent,_0x51f09e,_0x143f02[_0x315403(0x1c0)],messageTypes[_0x315403(0x198)],_0x143f02['lmfGU'],_0x2f19cf,_0x51f09e),process[_0x315403(0x19b)](0x1);}};function a6_0x2a8f(){const _0x5b777f=['Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','WCaVi','3856WpfLVj','kohXE','RXeTF','VQoyG','onlyGridInCluster','gkFpg','error','vjskS','CJTrQ','unknown-error','../../utils/AWSUtils','stringify','toLowerCase','cloudProvider','EKJnW','eGDkm','yLGod','info','rPDWQ','OiyNL','dTAZh','336678bPvfRp','method','26574130CDXIEV','BZkkK','cluster','WWrmi','zpSwR','Cluster:\x20','uuid','xjBlY','ogiTq','promisify','RIXUX','INFO','xsakb','cUOEA','grid-id','25UoTTFt','statusCode','WxzoK','username','Failed\x20to\x20delete\x20resources!\x20Error:\x20','epilogue','ehcfr','IBLTP','omaFJ','YplaI','OGroQ','ZWoUT','delete','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','yfGVk','JsvkJ','BrowserStack','OyZNe','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','existsSync','message','command','unauthorised','zIiVk','aWcDL','vTpyf','name','ardDw','cloudProviderAccessKey','Xwmsb','IQNME','8yNuxlN','options','certificateAuthority','2885ijLWcq','password','Succesfully\x20deleted\x20the\x20grid','invalid-grid-id','readFileSync','Obgpn','kEUIQ','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','clusterRegion','string','delete-grid-called','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','writeFileSync','oFGHi','WSwfV','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','https://','CNhGV','STVWo','fAGjF','DELETE','auth','parse','XbHQg','QvAJR','BIyiJ','secret','gridId','accessKey','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','dASKW','endpoint','region','tzeho','BQJqB','2821553wfHPwQ','usage','Browserstack','64564CUVGnj','argv','help','handler','DaJDm','../../utils/utilityMethods','tWGhT','../../utils/gridComponents','browserstack:managedBy','LMAFK','vrxJI','\x22\x20and\x20ID\x20','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','desc','gLkvA','clusterSpawnedVia','clusterName','JAMpJ','apkpz','request','LBqLZ','jWrnW','stack','warn','requestId','debug','Lptfy','cloudProviderSecretKey','zDypK','data','/packages/cli/grid/','Pass\x20the\x20ID\x20of\x20the\x20Grid','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Uyvit','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','EsSfb','ZICwZ','5704299bcaiho','../../config/logger','mitxw','grid','description','util','FqfWu','../../utils/createk8sClient','../../utils/userInput','body','ERROR','tags','OMtDU','exit','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','3591834fQUXck','cvYJe'];a6_0x2a8f=function(){return _0x5b777f;};return a6_0x2a8f();}
@@ -1 +1 @@
1
- const a7_0x54340d=a7_0x16ae;function a7_0x16ae(_0x361848,_0x4e1116){const _0x258fd9=a7_0x258f();return a7_0x16ae=function(_0x16ae59,_0x273d4e){_0x16ae59=_0x16ae59-0x128;let _0x161da3=_0x258fd9[_0x16ae59];return _0x161da3;},a7_0x16ae(_0x361848,_0x4e1116);}(function(_0x4ec845,_0x1f2800){const _0x13d0c3=a7_0x16ae,_0x1163e4=_0x4ec845();while(!![]){try{const _0x423b14=-parseInt(_0x13d0c3(0x15a))/0x1+parseInt(_0x13d0c3(0x134))/0x2+-parseInt(_0x13d0c3(0x131))/0x3*(-parseInt(_0x13d0c3(0x167))/0x4)+-parseInt(_0x13d0c3(0x16c))/0x5*(parseInt(_0x13d0c3(0x14f))/0x6)+parseInt(_0x13d0c3(0x182))/0x7+parseInt(_0x13d0c3(0x165))/0x8*(-parseInt(_0x13d0c3(0x12e))/0x9)+parseInt(_0x13d0c3(0x14c))/0xa;if(_0x423b14===_0x1f2800)break;else _0x1163e4['push'](_0x1163e4['shift']());}catch(_0x2ac33d){_0x1163e4['push'](_0x1163e4['shift']());}}}(a7_0x258f,0xdc275));const fs=require('fs'),util=require(a7_0x54340d(0x15b)),request=require(a7_0x54340d(0x16f)),{v4:uuidv4}=require(a7_0x54340d(0x175)),{logger}=require(a7_0x54340d(0x14b)),{inputBstackKeys}=require(a7_0x54340d(0x15e)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath}=require(a7_0x54340d(0x141)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util[a7_0x54340d(0x162)](request);function a7_0x258f(){const _0x19eb30=['uuid','ZslgN','ZPRtE','KBUWj','exit','Pumxa','writeFileSync','EySxa','bstackUsername','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','unknown-error','Fiouc','fnkVW','4977616WlsGpk','XPdoa','/automate/plan.json','ERROR','RfKHJ','YltOn','parse','INFO','tVUfG','string','ZLkdD','uMSBT','pbKCq','wrong-creds','mkdirSync','bstack-username','rtCmk','DRHig','kLEFe','stringify','9KkciNe','vXpkf','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','2061069raCnga','BROWSERSTACK_ACCESS_KEY','lLciW','2208668LarguB','https://','KBrgN','qpjPw','BROWSERSTACK_USERNAME','type','init-called','YEKjr','xmZrn','wJcjM','bstackAccesskey','strict','CalGe','../utils/utilityMethods','lKxgj','GFGiy','options','error','description','fpyVa','jNvUm','YglrO','builder','../config/logger','19885420eAkBnF','method','existsSync','27042IjXPoY','username','fLvVu','wJiKK','cmSjk','JDlWQ','stack','command','SIgdS','kQmwc','jcEYH','935805hwqAuQ','util','init','desc','../utils/userInput','readFileSync','Ivvlu','argv','promisify','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','epilogue','13779544TQvsiR','bstack-accesskey','8xgwNpa','requestId','password','url','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','1795RFxbbV','fIZZx','usage','request','help','env','handler','GET','recommendCommands'];a7_0x258f=function(){return _0x19eb30;};return a7_0x258f();}exports[a7_0x54340d(0x156)]=a7_0x54340d(0x15c),exports[a7_0x54340d(0x15d)]='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a7_0x54340d(0x14a)]=function(_0x192b01){const _0x3815e8=a7_0x54340d,_0x2a943b={};_0x2a943b[_0x3815e8(0x153)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x2a943b['ZLkdD']=_0x3815e8(0x18b),_0x2a943b['Pumxa']=_0x3815e8(0x17e),_0x2a943b[_0x3815e8(0x136)]='help';const _0x1d55e7=_0x2a943b,_0x161f8e={};_0x161f8e['description']=_0x1d55e7[_0x3815e8(0x153)],_0x161f8e[_0x3815e8(0x139)]=_0x1d55e7[_0x3815e8(0x18c)];const _0x5d38f5={};_0x5d38f5['description']=_0x1d55e7[_0x3815e8(0x17a)],_0x5d38f5[_0x3815e8(0x139)]=_0x1d55e7['ZLkdD'];const _0x1d0b26={};return _0x1d0b26['bstack-username']=_0x161f8e,_0x1d0b26[_0x3815e8(0x166)]=_0x5d38f5,_0x192b01[_0x3815e8(0x16e)](HELP_HEADER_MESSAGE[_0x3815e8(0x15c)])[_0x3815e8(0x164)](HELP_FOOTER_MESSAGE)[_0x3815e8(0x144)](_0x1d0b26)[_0x3815e8(0x174)]()[_0x3815e8(0x13f)]()[_0x3815e8(0x170)](_0x1d55e7[_0x3815e8(0x136)])[_0x3815e8(0x161)];},exports[a7_0x54340d(0x172)]=async function(_0x377679){const _0x348773=a7_0x54340d,_0x40a7a6={'kQmwc':function(_0x1af62a){return _0x1af62a();},'jcEYH':'utf-8','YEKjr':_0x348773(0x163),'DRHig':_0x348773(0x18b),'xmZrn':_0x348773(0x17e),'fIZZx':_0x348773(0x170),'wJcjM':function(_0x508780,_0x274f36,_0x112e2e,_0x1b8e61,_0x5494a2,_0x8798c5,_0x5a21ba){return _0x508780(_0x274f36,_0x112e2e,_0x1b8e61,_0x5494a2,_0x8798c5,_0x5a21ba);},'KBUWj':_0x348773(0x13a),'kLEFe':function(_0x25bf31,_0xe034a8){return _0x25bf31!==_0xe034a8;},'HrcwB':'UKWpU','fnkVW':_0x348773(0x12f),'tVUfG':function(_0x256f4e,_0x2ea973){return _0x256f4e===_0x2ea973;},'ZslgN':_0x348773(0x18e),'jNvUm':function(_0x42f1fa,_0x238fa6){return _0x42f1fa===_0x238fa6;},'Fiouc':_0x348773(0x151),'CalGe':_0x348773(0x187),'JDlWQ':function(_0x3a37e0,_0x1cd96f){return _0x3a37e0!==_0x1cd96f;},'EySxa':'kjFZH','RVIbS':function(_0x1b7e82,_0xf4bb31){return _0x1b7e82===_0xf4bb31;},'YglrO':function(_0x4aa1d6,_0x5c2c75){return _0x4aa1d6===_0x5c2c75;},'rtCmk':function(_0x4804c8,_0x25d73c){return _0x4804c8!==_0x25d73c;},'LnfjY':_0x348773(0x18d),'dAYkE':'OSKkR','oJZSu':_0x348773(0x130),'CoDdi':_0x348773(0x173),'KsuCB':function(_0x2d7230,_0x1d6b6f){return _0x2d7230(_0x1d6b6f);},'RfKHJ':function(_0x1f4864,_0x59a6f9){return _0x1f4864!==_0x59a6f9;},'GFGiy':function(_0x91441f,_0xdc2f9a){return _0x91441f===_0xdc2f9a;},'SIgdS':'UaXPH','KnwQP':function(_0x20134c,_0x28429b){return _0x20134c!==_0x28429b;},'Ivvlu':_0x348773(0x177),'llEnS':'IvTuJ','uVeKg':function(_0x18312c){return _0x18312c();},'lKxgj':_0x348773(0x133),'qpjPw':_0x348773(0x147),'XPdoa':_0x348773(0x16b),'wJiKK':_0x348773(0x18f),'ynjGp':_0x348773(0x17f)};try{global_registry[_0x348773(0x168)]=_0x40a7a6['kQmwc'](uuidv4),_0x40a7a6[_0x348773(0x13d)](sendInstrumentationEvent,_0x377679,_0x40a7a6[_0x348773(0x178)],messageTypes[_0x348773(0x189)],null,null,_0x377679);const _0x1efa0d=_0x40a7a6[_0x348773(0x158)](getDirForConfig);if(!fs['existsSync'](_0x1efa0d)){if(_0x40a7a6[_0x348773(0x12c)](_0x40a7a6['HrcwB'],_0x40a7a6['HrcwB'])){let _0x148163={};const _0x3fbc33=_0x40a7a6[_0x348773(0x158)](_0xed7279);_0x47d640[_0x348773(0x14e)](_0x3fbc33)&&(_0x148163=_0x2163e8[_0x348773(0x188)](_0x5ac85d['readFileSync'](_0x3fbc33,_0x40a7a6[_0x348773(0x159)])));const _0x3757e0={};_0x3757e0[_0x348773(0x150)]=_0x5578b3,_0x3757e0['password']=_0x47629c,_0x148163['Browserstack']=_0x3757e0,_0x4ab35b['writeFileSync'](_0x3fbc33,_0x15574b[_0x348773(0x12d)](_0x148163)),_0x4954d9[_0x348773(0x179)](0x0);}else fs[_0x348773(0x128)](_0x1efa0d);}let _0x59ec92,_0x79020f;_0x377679[_0x348773(0x17d)]&&(_0x40a7a6[_0x348773(0x12c)](_0x40a7a6[_0x348773(0x181)],_0x40a7a6['fnkVW'])?_0x18b266=!![]:_0x59ec92=_0x377679[_0x348773(0x17d)]);process['env'][_0x348773(0x138)]&&(_0x40a7a6[_0x348773(0x18a)](_0x40a7a6[_0x348773(0x176)],_0x40a7a6[_0x348773(0x176)])?_0x59ec92=process['env']['BROWSERSTACK_USERNAME']:_0x1ec9e8=_0x2da5ad['parse'](_0x142d05['readFileSync'](_0x2f3505,_0x40a7a6[_0x348773(0x159)])));_0x377679[_0x348773(0x13e)]&&(_0x40a7a6[_0x348773(0x148)](_0x40a7a6[_0x348773(0x180)],_0x40a7a6[_0x348773(0x140)])?_0xbdd302=_0xc18f91['env'][_0x348773(0x132)]:_0x79020f=_0x377679[_0x348773(0x13e)]);process['env'][_0x348773(0x132)]&&(_0x40a7a6[_0x348773(0x154)](_0x40a7a6[_0x348773(0x17c)],_0x40a7a6['EySxa'])?_0x4ef88a=_0x4379c9[_0x348773(0x171)][_0x348773(0x138)]:_0x79020f=process[_0x348773(0x171)][_0x348773(0x132)]);if(_0x40a7a6['RVIbS'](_0x59ec92,undefined)||_0x40a7a6[_0x348773(0x149)](_0x79020f,undefined)){if(_0x40a7a6[_0x348773(0x12a)](_0x40a7a6['LnfjY'],_0x40a7a6['dAYkE'])){logger['debug'](_0x40a7a6['oJZSu']);const [_0x3f4d54,_0x41dcd7]=await _0x40a7a6[_0x348773(0x158)](inputBstackKeys);_0x59ec92=_0x3f4d54,_0x79020f=_0x41dcd7;}else _0x1b87a5=_0x39e8f2[_0x348773(0x17d)];}let _0x50c6b4=![];const _0x34cd3b={};_0x34cd3b[_0x348773(0x16a)]=_0x348773(0x135)+_0x59ec92+':'+_0x79020f+'@'+BS_API_URL+_0x348773(0x184),_0x34cd3b[_0x348773(0x14d)]=_0x40a7a6['CoDdi'];const _0x2e7096=_0x34cd3b,_0x3049e0=await _0x40a7a6['KsuCB'](promisifiedRequest,_0x2e7096);_0x40a7a6['rtCmk'](_0x3049e0,null)&&_0x40a7a6[_0x348773(0x186)](_0x3049e0,undefined)&&_0x40a7a6[_0x348773(0x143)](_0x3049e0['statusCode'],0xc8)&&(_0x40a7a6[_0x348773(0x12a)](_0x40a7a6[_0x348773(0x157)],_0x40a7a6[_0x348773(0x157)])?_0x1d5696[_0x348773(0x128)](_0x19cd2a):_0x50c6b4=!![]);if(_0x50c6b4){if(_0x40a7a6['KnwQP'](_0x40a7a6[_0x348773(0x160)],_0x40a7a6['llEnS'])){let _0x39362a={};const _0x6e8e79=_0x40a7a6['uVeKg'](getCredentialsPath);fs['existsSync'](_0x6e8e79)&&(_0x40a7a6[_0x348773(0x148)](_0x40a7a6[_0x348773(0x142)],_0x40a7a6[_0x348773(0x137)])?_0x477626=_0xdcddbb['bstackAccesskey']:_0x39362a=JSON[_0x348773(0x188)](fs[_0x348773(0x15f)](_0x6e8e79,_0x40a7a6[_0x348773(0x159)])));const _0x2ab142={};_0x2ab142[_0x348773(0x150)]=_0x59ec92,_0x2ab142[_0x348773(0x169)]=_0x79020f,_0x39362a['Browserstack']=_0x2ab142,fs[_0x348773(0x17b)](_0x6e8e79,JSON[_0x348773(0x12d)](_0x39362a)),process[_0x348773(0x179)](0x0);}else{const _0x44e679={};_0x44e679[_0x348773(0x146)]=_0x40a7a6[_0x348773(0x13b)],_0x44e679[_0x348773(0x139)]=_0x40a7a6[_0x348773(0x12b)];const _0x290dcd={};_0x290dcd[_0x348773(0x146)]=_0x40a7a6[_0x348773(0x13c)],_0x290dcd['type']=_0x40a7a6['DRHig'];const _0x2bf9f1={};return _0x2bf9f1[_0x348773(0x129)]=_0x44e679,_0x2bf9f1[_0x348773(0x166)]=_0x290dcd,_0x404b1e[_0x348773(0x16e)](_0x23685f[_0x348773(0x15c)])['epilogue'](_0x2d4466)['options'](_0x2bf9f1)[_0x348773(0x174)]()['strict']()[_0x348773(0x170)](_0x40a7a6[_0x348773(0x16d)])[_0x348773(0x161)];}}else logger[_0x348773(0x145)](_0x40a7a6[_0x348773(0x183)]),await _0x40a7a6[_0x348773(0x13d)](sendInstrumentationEvent,_0x377679,_0x40a7a6[_0x348773(0x178)],messageTypes['ERROR'],_0x40a7a6[_0x348773(0x152)],null,_0x377679),process['exit'](0x1);}catch(_0x3cfb4d){logger[_0x348773(0x145)](_0x3cfb4d[_0x348773(0x155)]),await _0x40a7a6['wJcjM'](sendInstrumentationEvent,_0x377679,_0x40a7a6[_0x348773(0x178)],messageTypes[_0x348773(0x185)],_0x40a7a6['ynjGp'],_0x3cfb4d,_0x377679),process[_0x348773(0x179)](0x1);}};
1
+ const a7_0x113b98=a7_0x30b2;function a7_0x30b2(_0x31e58c,_0x405440){const _0x588ff4=a7_0x588f();return a7_0x30b2=function(_0x30b293,_0x26e9d7){_0x30b293=_0x30b293-0xc2;let _0x3c48b8=_0x588ff4[_0x30b293];return _0x3c48b8;},a7_0x30b2(_0x31e58c,_0x405440);}(function(_0xe1b1c6,_0x36b2dd){const _0x22d6bd=a7_0x30b2,_0x37f796=_0xe1b1c6();while(!![]){try{const _0x59e82b=-parseInt(_0x22d6bd(0x117))/0x1*(parseInt(_0x22d6bd(0xe1))/0x2)+-parseInt(_0x22d6bd(0xe2))/0x3+parseInt(_0x22d6bd(0x10e))/0x4*(parseInt(_0x22d6bd(0x11c))/0x5)+-parseInt(_0x22d6bd(0xe8))/0x6*(parseInt(_0x22d6bd(0x12d))/0x7)+parseInt(_0x22d6bd(0xe5))/0x8+parseInt(_0x22d6bd(0xee))/0x9+parseInt(_0x22d6bd(0xd7))/0xa;if(_0x59e82b===_0x36b2dd)break;else _0x37f796['push'](_0x37f796['shift']());}catch(_0xd45f5a){_0x37f796['push'](_0x37f796['shift']());}}}(a7_0x588f,0x4a6ed));const fs=require('fs'),util=require('util'),request=require(a7_0x113b98(0xcf)),{v4:uuidv4}=require(a7_0x113b98(0x10b)),{logger}=require('../config/logger'),{inputBstackKeys}=require(a7_0x113b98(0x125)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a7_0x113b98(0x107)),{getDirForConfig,getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a7_0x113b98(0x127)),promisifiedRequest=util[a7_0x113b98(0xc8)](request);function a7_0x588f(){const _0x32095d=['epilogue','usage','WStyW','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','utf-8','3FGvXtv','REORO','nCzCv','BUOXW','tCUCe','25605yBcWVJ','ERROR','AUUSq','fZLRQ','https://','ntVYV','init','YPMNW','desc','../utils/userInput','LpMOh','../utils/instrumentationUtils','method','argv','bstack-accesskey','ItTrF','cbFcI','656852ICfpIb','BROWSERSTACK_ACCESS_KEY','builder','init-called','GET','handler','svmEx','promisify','/automate/plan.json','Browserstack','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','error','UmFuh','stringify','request','ashRk','requestId','qdCwO','writeFileSync','Yjlyu','bstack-username','statusCode','5986230veXEDI','IHlUE','GzERC','rloRU','jNKmg','kmxBk','url','description','fCbdI','tuxeL','399416yBLyGU','636633MtSbzI','RHNun','rjpYY','2488728pOBnEY','wrong-creds','celzV','18hlRLXm','YNoHG','existsSync','recommendCommands','readFileSync','NFbsw','4345965KdaCCS','GkENz','DwSUN','options','type','CBhBE','pjyWl','aOdGe','jWicA','XsQCK','icfch','Xnehg','ffOWr','parse','exit','HZaUq','INFO','stack','help','debug','kyFIc','WvrmX','env','bstackUsername','password','../config/constants','BROWSERSTACK_USERNAME','vPiYn','string','uuid','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','bstackAccesskey','4xaPdFq','username','IPzLH','aZFkH'];a7_0x588f=function(){return _0x32095d;};return a7_0x588f();}exports['command']=a7_0x113b98(0x122),exports[a7_0x113b98(0x124)]=a7_0x113b98(0x10c),exports[a7_0x113b98(0xc3)]=function(_0xf51acf){const _0xeb6e80=a7_0x113b98,_0x19c0ad={};_0x19c0ad[_0xeb6e80(0xd2)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x19c0ad['kmxBk']=_0xeb6e80(0x10a),_0x19c0ad[_0xeb6e80(0xf7)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x19c0ad[_0xeb6e80(0xfa)]=_0xeb6e80(0x100);const _0x1de68f=_0x19c0ad,_0x3aeb76={};_0x3aeb76['description']=_0x1de68f[_0xeb6e80(0xd2)],_0x3aeb76[_0xeb6e80(0xf2)]=_0x1de68f[_0xeb6e80(0xdc)];const _0x1835b4={};_0x1835b4['description']=_0x1de68f[_0xeb6e80(0xf7)],_0x1835b4[_0xeb6e80(0xf2)]=_0x1de68f[_0xeb6e80(0xdc)];const _0x47387d={};return _0x47387d[_0xeb6e80(0xd5)]=_0x3aeb76,_0x47387d[_0xeb6e80(0x12a)]=_0x1835b4,_0xf51acf['usage'](HELP_HEADER_MESSAGE[_0xeb6e80(0x122)])[_0xeb6e80(0x112)](HELP_FOOTER_MESSAGE)[_0xeb6e80(0xf1)](_0x47387d)[_0xeb6e80(0xeb)]()['strict']()[_0xeb6e80(0x100)](_0x1de68f['ffOWr'])[_0xeb6e80(0x129)];},exports[a7_0x113b98(0xc6)]=async function(_0x3146b8){const _0x2d78b8=a7_0x113b98,_0x2ef858={'ntVYV':_0x2d78b8(0x116),'CBhBE':function(_0x3f9383){return _0x3f9383();},'vPiYn':'Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','nCzCv':_0x2d78b8(0x10a),'AUUSq':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','WvrmX':_0x2d78b8(0x100),'WXVBQ':function(_0x460e67){return _0x460e67();},'Yjlyu':function(_0x5ac273,_0x7711b9,_0x7d2f12,_0x5e5af8,_0x436341,_0x1bcee5,_0x2696b8){return _0x5ac273(_0x7711b9,_0x7d2f12,_0x5e5af8,_0x436341,_0x1bcee5,_0x2696b8);},'tCUCe':_0x2d78b8(0xc4),'TkZpd':function(_0x3a2713){return _0x3a2713();},'icfch':function(_0x1b75ce,_0x1635da){return _0x1b75ce!==_0x1635da;},'jNKmg':_0x2d78b8(0x12b),'svmEx':_0x2d78b8(0x126),'xotgJ':_0x2d78b8(0xf5),'tuxeL':_0x2d78b8(0xef),'jWicA':function(_0x5c4002,_0x3b2a45){return _0x5c4002===_0x3b2a45;},'rloRU':'ySOxf','kyFIc':_0x2d78b8(0x12c),'ZltBd':_0x2d78b8(0xcd),'YJBWX':_0x2d78b8(0x123),'WStyW':function(_0x2a2606,_0x2bbdb4){return _0x2a2606===_0x2bbdb4;},'pjyWl':function(_0x5142ec,_0x3952d9){return _0x5142ec===_0x3952d9;},'REORO':'mQjbF','YNoHG':_0x2d78b8(0xcb),'fCbdI':function(_0x272fdd){return _0x272fdd();},'aZFkH':_0x2d78b8(0xc5),'GzERC':function(_0xaa48d5,_0x232b7f){return _0xaa48d5(_0x232b7f);},'krlLP':function(_0x459d7a,_0x32cf1e){return _0x459d7a===_0x32cf1e;},'NFbsw':function(_0x570630,_0xcebcdc){return _0x570630===_0xcebcdc;},'Xnehg':_0x2d78b8(0x11a),'Scyqb':_0x2d78b8(0x11f),'Rpyxk':function(_0x15c77a,_0x1672a5){return _0x15c77a===_0x1672a5;},'vWtXf':_0x2d78b8(0xfd),'IHlUE':_0x2d78b8(0xe7),'rjpYY':_0x2d78b8(0x110),'wwdoq':_0x2d78b8(0x115),'DwSUN':function(_0x15c82c,_0x54ddf3,_0x20c172,_0x1aa303,_0xd3fa28,_0x9d812c,_0x254ff4){return _0x15c82c(_0x54ddf3,_0x20c172,_0x1aa303,_0xd3fa28,_0x9d812c,_0x254ff4);},'RHNun':_0x2d78b8(0xe6),'ashRk':'unknown-error'};try{global_registry[_0x2d78b8(0xd1)]=_0x2ef858['WXVBQ'](uuidv4),_0x2ef858[_0x2d78b8(0xd4)](sendInstrumentationEvent,_0x3146b8,_0x2ef858[_0x2d78b8(0x11b)],messageTypes[_0x2d78b8(0xfe)],null,null,_0x3146b8);const _0x163720=_0x2ef858['TkZpd'](getDirForConfig);!fs[_0x2d78b8(0xea)](_0x163720)&&(_0x2ef858[_0x2d78b8(0xf8)](_0x2ef858[_0x2d78b8(0xdb)],_0x2ef858[_0x2d78b8(0xc7)])?fs['mkdirSync'](_0x163720):_0x2d95e0=!![]);let _0x82570,_0x28619;_0x3146b8[_0x2d78b8(0x105)]&&(_0x2ef858[_0x2d78b8(0xf8)](_0x2ef858['xotgJ'],_0x2ef858[_0x2d78b8(0xe0)])?_0x82570=_0x3146b8[_0x2d78b8(0x105)]:_0x41ba69=_0x30632e[_0x2d78b8(0x10d)]);process[_0x2d78b8(0x104)]['BROWSERSTACK_USERNAME']&&(_0x2ef858['jWicA'](_0x2ef858[_0x2d78b8(0xda)],_0x2ef858[_0x2d78b8(0xda)])?_0x82570=process[_0x2d78b8(0x104)][_0x2d78b8(0x108)]:_0x2662f7=_0x334437[_0x2d78b8(0xfb)](_0x5d3e37[_0x2d78b8(0xec)](_0x50d330,_0x2ef858['ntVYV'])));_0x3146b8[_0x2d78b8(0x10d)]&&(_0x2ef858[_0x2d78b8(0xf6)](_0x2ef858['kyFIc'],_0x2ef858[_0x2d78b8(0x102)])?_0x28619=_0x3146b8[_0x2d78b8(0x10d)]:_0x59a90b['mkdirSync'](_0x1d54e5));process['env'][_0x2d78b8(0xc2)]&&(_0x2ef858[_0x2d78b8(0xf8)](_0x2ef858['ZltBd'],_0x2ef858['YJBWX'])?_0x28619=process[_0x2d78b8(0x104)][_0x2d78b8(0xc2)]:_0x499c93=_0x4b04b7['env'][_0x2d78b8(0x108)]);if(_0x2ef858[_0x2d78b8(0x114)](_0x82570,undefined)||_0x2ef858[_0x2d78b8(0xf4)](_0x28619,undefined)){if(_0x2ef858[_0x2d78b8(0xf8)](_0x2ef858[_0x2d78b8(0x118)],_0x2ef858[_0x2d78b8(0x118)])){let _0x5b991f={};const _0x77ae39=_0x2ef858[_0x2d78b8(0xf3)](_0x12778a);_0x498165[_0x2d78b8(0xea)](_0x77ae39)&&(_0x5b991f=_0x576c68[_0x2d78b8(0xfb)](_0x4edf2b['readFileSync'](_0x77ae39,_0x2ef858[_0x2d78b8(0x121)])));const _0x24ba86={};_0x24ba86[_0x2d78b8(0x10f)]=_0xc1901e,_0x24ba86['password']=_0x1f237d,_0x5b991f['Browserstack']=_0x24ba86,_0xdc0074[_0x2d78b8(0xd3)](_0x77ae39,_0x146160[_0x2d78b8(0xce)](_0x5b991f)),_0x3588ed[_0x2d78b8(0xfc)](0x0);}else{logger[_0x2d78b8(0x101)](_0x2ef858[_0x2d78b8(0xe9)]);const [_0x56f1df,_0x26ba93]=await _0x2ef858[_0x2d78b8(0xdf)](inputBstackKeys);_0x82570=_0x56f1df,_0x28619=_0x26ba93;}}let _0x2582d6=![];const _0x5a04a5={};_0x5a04a5[_0x2d78b8(0xdd)]=_0x2d78b8(0x120)+_0x82570+':'+_0x28619+'@'+BS_API_URL+_0x2d78b8(0xc9),_0x5a04a5[_0x2d78b8(0x128)]=_0x2ef858[_0x2d78b8(0x111)];const _0x4ec34c=_0x5a04a5,_0x3d05b2=await _0x2ef858[_0x2d78b8(0xd9)](promisifiedRequest,_0x4ec34c);_0x2ef858[_0x2d78b8(0xf8)](_0x3d05b2,null)&&_0x2ef858['icfch'](_0x3d05b2,undefined)&&_0x2ef858['krlLP'](_0x3d05b2[_0x2d78b8(0xd6)],0xc8)&&(_0x2ef858[_0x2d78b8(0xed)](_0x2ef858[_0x2d78b8(0xf9)],_0x2ef858['Scyqb'])?_0x393715=_0xeef970['bstackUsername']:_0x2582d6=!![]);if(_0x2582d6){if(_0x2ef858['Rpyxk'](_0x2ef858['vWtXf'],_0x2ef858[_0x2d78b8(0xd8)])){const _0x39811a={};_0x39811a[_0x2d78b8(0xde)]=_0x2ef858[_0x2d78b8(0x109)],_0x39811a[_0x2d78b8(0xf2)]=_0x2ef858[_0x2d78b8(0x119)];const _0x454238={};_0x454238[_0x2d78b8(0xde)]=_0x2ef858[_0x2d78b8(0x11e)],_0x454238[_0x2d78b8(0xf2)]=_0x2ef858[_0x2d78b8(0x119)];const _0x3ba31a={};return _0x3ba31a[_0x2d78b8(0xd5)]=_0x39811a,_0x3ba31a[_0x2d78b8(0x12a)]=_0x454238,_0x28e4b9[_0x2d78b8(0x113)](_0x10fe3a[_0x2d78b8(0x122)])[_0x2d78b8(0x112)](_0x3cdcb0)[_0x2d78b8(0xf1)](_0x3ba31a)['recommendCommands']()['strict']()['help'](_0x2ef858[_0x2d78b8(0x103)])[_0x2d78b8(0x129)];}else{let _0x5675d8={};const _0x474f62=_0x2ef858[_0x2d78b8(0xf3)](getCredentialsPath);fs[_0x2d78b8(0xea)](_0x474f62)&&(_0x2ef858[_0x2d78b8(0xed)](_0x2ef858[_0x2d78b8(0xe4)],_0x2ef858[_0x2d78b8(0xe4)])?_0x5675d8=JSON[_0x2d78b8(0xfb)](fs[_0x2d78b8(0xec)](_0x474f62,_0x2ef858[_0x2d78b8(0x121)])):_0x5a1a9a=_0x356eb6[_0x2d78b8(0x104)][_0x2d78b8(0xc2)]);const _0x266303={};_0x266303[_0x2d78b8(0x10f)]=_0x82570,_0x266303[_0x2d78b8(0x106)]=_0x28619,_0x5675d8[_0x2d78b8(0xca)]=_0x266303,fs['writeFileSync'](_0x474f62,JSON['stringify'](_0x5675d8)),process['exit'](0x0);}}else logger['error'](_0x2ef858['wwdoq']),await _0x2ef858[_0x2d78b8(0xf0)](sendInstrumentationEvent,_0x3146b8,_0x2ef858[_0x2d78b8(0x11b)],messageTypes[_0x2d78b8(0x11d)],_0x2ef858[_0x2d78b8(0xe3)],null,_0x3146b8),process['exit'](0x1);}catch(_0x4bd2c3){logger[_0x2d78b8(0xcc)](_0x4bd2c3[_0x2d78b8(0xff)]),await _0x2ef858['Yjlyu'](sendInstrumentationEvent,_0x3146b8,_0x2ef858[_0x2d78b8(0x11b)],messageTypes[_0x2d78b8(0x11d)],_0x2ef858[_0x2d78b8(0xd0)],_0x4bd2c3,_0x3146b8),process[_0x2d78b8(0xfc)](0x1);}};