browserstack-node-sdk 1.31.3 → 1.31.5

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 (104) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/config/constants.js +1 -1
  18. package/ats/src/config/logger.js +1 -1
  19. package/ats/src/index.js +1 -1
  20. package/ats/src/utils/AWSUtils.js +1 -1
  21. package/ats/src/utils/createAutoscalerStack.js +1 -1
  22. package/ats/src/utils/createClusterStack.js +1 -1
  23. package/ats/src/utils/createk8sClient.js +1 -1
  24. package/ats/src/utils/deleteStack.js +1 -1
  25. package/ats/src/utils/gridComponents.js +1 -1
  26. package/ats/src/utils/hstUtils.js +1 -1
  27. package/ats/src/utils/instrumentationUtils.js +1 -1
  28. package/ats/src/utils/userInput.js +1 -1
  29. package/ats/src/utils/utilityMethods.js +1 -1
  30. package/ats/src/utils/webSocketUtils.js +1 -1
  31. package/package.json +1 -1
  32. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  33. package/src/bin/codeceptjs/command.js +1 -1
  34. package/src/bin/cucumber-js/command.js +1 -1
  35. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  36. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  37. package/src/bin/cucumber-js/test.setup.js +1 -1
  38. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  39. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  40. package/src/bin/jest/command.js +1 -1
  41. package/src/bin/jest/customImplements/customCircus.js +1 -1
  42. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  43. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  44. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  45. package/src/bin/jest/jest.setup.js +1 -1
  46. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  47. package/src/bin/jest/test-observability/helper.js +1 -1
  48. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  49. package/src/bin/jest/test-observability/test-details.js +1 -1
  50. package/src/bin/jest/test_before.setup.js +1 -1
  51. package/src/bin/launcher/launcher.js +1 -1
  52. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  53. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  54. package/src/bin/mocha/command.js +1 -1
  55. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  56. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  57. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  58. package/src/bin/mocha/test.setup.js +1 -1
  59. package/src/bin/nightwatch/command.js +1 -1
  60. package/src/bin/playwright/accessibility-helper.js +1 -1
  61. package/src/bin/playwright/command.js +1 -1
  62. package/src/bin/playwright/globalSetup.js +1 -1
  63. package/src/bin/playwright/mock-process.js +1 -1
  64. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  65. package/src/bin/playwright/reporter/reporter.js +1 -1
  66. package/src/bin/playwright/reporter/test-details.js +1 -1
  67. package/src/bin/runner.js +1 -1
  68. package/src/bin/setup.js +1 -1
  69. package/src/bin/test-runner/index.js +1 -1
  70. package/src/bin/test-runner/runTest.js +1 -1
  71. package/src/bin/test-runner/testWorker.js +1 -1
  72. package/src/bin/utils/constants.js +1 -1
  73. package/src/bin/utils/log4jsAppender.js +1 -1
  74. package/src/bin/utils/logPatcher.js +1 -1
  75. package/src/bin/utils/logReportingAPI.js +1 -1
  76. package/src/bin/vanilla-js/command.js +1 -1
  77. package/src/browserstackSDKMethods.js +1 -1
  78. package/src/helpers/BrowserStackSetup.js +1 -1
  79. package/src/helpers/accessibility-automation/constants.js +1 -1
  80. package/src/helpers/accessibility-automation/helper.js +1 -1
  81. package/src/helpers/ats/constants.js +1 -1
  82. package/src/helpers/ats/helper.js +1 -1
  83. package/src/helpers/capsMapping.js +1 -1
  84. package/src/helpers/helper.js +1 -1
  85. package/src/helpers/logger.js +1 -1
  86. package/src/helpers/patchHelpers.js +1 -1
  87. package/src/helpers/percy/Percy.js +1 -1
  88. package/src/helpers/percy/PercyBinary.js +1 -1
  89. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  90. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  91. package/src/helpers/percy/PercySDK.js +1 -1
  92. package/src/helpers/percy/index.js +1 -1
  93. package/src/helpers/percy/utils.js +1 -1
  94. package/src/helpers/request-spy.js +1 -1
  95. package/src/helpers/setKeepAlive.js +1 -1
  96. package/src/helpers/test-observability/constants.js +1 -1
  97. package/src/helpers/test-observability/error-handler.js +1 -1
  98. package/src/helpers/test-observability/performance-tester.js +1 -1
  99. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  100. package/src/helpers/test-observability/sessionHandler.js +1 -1
  101. package/src/helpers/test-observability/utils.js +1 -1
  102. package/src/helpers/w3cMapping.js +1 -1
  103. package/src/hubAllocationMethods.js +1 -1
  104. package/src/index.js +1 -1
@@ -1 +1 @@
1
- function a8_0x1c62(){const _0x27d89d=['4105cQNaiU','builder','help','recommendCommands','strict','create_commands','447872MnzRzw','create','176qWKDWO','276HuPgJu','2005686muWnkE','977040aRVmDP','epilogue','YPDIM','usage','../config/constants','112637BpTgwW','Create\x20a\x20new\x20Automation\x20grid.','20ARgGkP','desc','1483425OIFeIU','demandCommand','command','275389GSkEnT'];a8_0x1c62=function(){return _0x27d89d;};return a8_0x1c62();}const a8_0xab77f=a8_0x14d9;(function(_0x1044b0,_0x542ebd){const _0x258630=a8_0x14d9,_0x3eda34=_0x1044b0();while(!![]){try{const _0x26841c=parseInt(_0x258630(0x111))/0x1+-parseInt(_0x258630(0x100))/0x2+parseInt(_0x258630(0x10e))/0x3+-parseInt(_0x258630(0x105))/0x4+parseInt(_0x258630(0x112))/0x5*(parseInt(_0x258630(0x103))/0x6)+parseInt(_0x258630(0x10a))/0x7*(parseInt(_0x258630(0x102))/0x8)+-parseInt(_0x258630(0x104))/0x9*(parseInt(_0x258630(0x10c))/0xa);if(_0x26841c===_0x542ebd)break;else _0x3eda34['push'](_0x3eda34['shift']());}catch(_0x2ca726){_0x3eda34['push'](_0x3eda34['shift']());}}}(a8_0x1c62,0x3c7b0));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0xab77f(0x109));function a8_0x14d9(_0x285917,_0x3c6dd2){const _0x1c62de=a8_0x1c62();return a8_0x14d9=function(_0x14d979,_0x15624d){_0x14d979=_0x14d979-0xfd;let _0x10deb3=_0x1c62de[_0x14d979];return _0x10deb3;},a8_0x14d9(_0x285917,_0x3c6dd2);}exports[a8_0xab77f(0x110)]=a8_0xab77f(0x101),exports[a8_0xab77f(0x10d)]=a8_0xab77f(0x10b),exports[a8_0xab77f(0x113)]=function(_0x4e3f18){const _0x22dea4=a8_0xab77f,_0x3247b4={};_0x3247b4['rdujX']=_0x22dea4(0xff),_0x3247b4['YPDIM']=_0x22dea4(0x114);const _0x6c10cc=_0x3247b4;return _0x4e3f18[_0x22dea4(0x108)](HELP_HEADER_MESSAGE[_0x22dea4(0x101)])[_0x22dea4(0x106)](HELP_FOOTER_MESSAGE)['commandDir'](_0x6c10cc['rdujX'])[_0x22dea4(0x10f)]()[_0x22dea4(0xfd)]()[_0x22dea4(0xfe)]()[_0x22dea4(0x114)](_0x6c10cc[_0x22dea4(0x107)]);},exports['handler']=function(_0x110f93){};
1
+ const a8_0x26a8fd=a8_0x19a8;function a8_0x19a8(_0x42219c,_0x5275c7){const _0x3c029f=a8_0x3c02();return a8_0x19a8=function(_0x19a877,_0x727b5b){_0x19a877=_0x19a877-0x111;let _0x356618=_0x3c029f[_0x19a877];return _0x356618;},a8_0x19a8(_0x42219c,_0x5275c7);}(function(_0x4316b5,_0x3a2000){const _0x1a1cc0=a8_0x19a8,_0x5b0868=_0x4316b5();while(!![]){try{const _0x4f998b=-parseInt(_0x1a1cc0(0x117))/0x1*(parseInt(_0x1a1cc0(0x112))/0x2)+-parseInt(_0x1a1cc0(0x119))/0x3*(-parseInt(_0x1a1cc0(0x11b))/0x4)+parseInt(_0x1a1cc0(0x120))/0x5+parseInt(_0x1a1cc0(0x113))/0x6*(-parseInt(_0x1a1cc0(0x123))/0x7)+parseInt(_0x1a1cc0(0x124))/0x8+-parseInt(_0x1a1cc0(0x121))/0x9*(-parseInt(_0x1a1cc0(0x118))/0xa)+-parseInt(_0x1a1cc0(0x111))/0xb;if(_0x4f998b===_0x3a2000)break;else _0x5b0868['push'](_0x5b0868['shift']());}catch(_0x2e127d){_0x5b0868['push'](_0x5b0868['shift']());}}}(a8_0x3c02,0xaf11e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a8_0x3c02(){const _0x5a39d5=['QVCcG','12ZEZOyU','usage','demandCommand','recommendCommands','help','3116000akqGRv','27ICWWHA','commandDir','483EzTFDz','9657056JuxehF','strict','desc','17795107zzBGcv','166834wsyKkP','39066KknCoL','jnuPi','handler','command','5leguiK','1121090NyWfzw','1034508cDswFc'];a8_0x3c02=function(){return _0x5a39d5;};return a8_0x3c02();}exports[a8_0x26a8fd(0x116)]='create',exports[a8_0x26a8fd(0x126)]='Create\x20a\x20new\x20Automation\x20grid.',exports['builder']=function(_0x363f2a){const _0x1d948e=a8_0x26a8fd,_0x15cdcd={};_0x15cdcd['jnuPi']='create_commands',_0x15cdcd['QVCcG']=_0x1d948e(0x11f);const _0x153bae=_0x15cdcd;return _0x363f2a[_0x1d948e(0x11c)](HELP_HEADER_MESSAGE['create'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1d948e(0x122)](_0x153bae[_0x1d948e(0x114)])[_0x1d948e(0x11d)]()[_0x1d948e(0x11e)]()[_0x1d948e(0x125)]()[_0x1d948e(0x11f)](_0x153bae[_0x1d948e(0x11a)]);},exports[a8_0x26a8fd(0x115)]=function(_0x4f41e5){};
@@ -1 +1 @@
1
- const a9_0x4d963e=a9_0x4de7;(function(_0x144430,_0x7957b0){const _0xa57e7e=a9_0x4de7,_0x49ceaa=_0x144430();while(!![]){try{const _0x44d873=parseInt(_0xa57e7e(0x11f))/0x1+parseInt(_0xa57e7e(0x122))/0x2+parseInt(_0xa57e7e(0x12f))/0x3*(-parseInt(_0xa57e7e(0x1b8))/0x4)+-parseInt(_0xa57e7e(0x192))/0x5*(-parseInt(_0xa57e7e(0x130))/0x6)+parseInt(_0xa57e7e(0x126))/0x7*(parseInt(_0xa57e7e(0x1d2))/0x8)+-parseInt(_0xa57e7e(0xaf))/0x9+-parseInt(_0xa57e7e(0x152))/0xa;if(_0x44d873===_0x7957b0)break;else _0x49ceaa['push'](_0x49ceaa['shift']());}catch(_0x1b529b){_0x49ceaa['push'](_0x49ceaa['shift']());}}}(a9_0x2d39,0xdc872));const fs=require('fs'),ws=require('ws'),util=require('util'),ReconnectingWebSocket=require('reconnecting-websocket'),request=require(a9_0x4d963e(0x120)),{v4:uuidv4}=require(a9_0x4d963e(0x12d)),webSocketUtils=require(a9_0x4d963e(0x18d)),{logger}=require(a9_0x4d963e(0x1a8)),{inputCloudProviderKeys}=require(a9_0x4d963e(0xb1)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a9_0x4d963e(0x125)),{getCloudProviderObject}=require(a9_0x4d963e(0x10a)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a9_0x4d963e(0x128)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x4d963e(0x16f)),{createK8sClient}=require(a9_0x4d963e(0x119)),{sendInstrumentationEvent}=require(a9_0x4d963e(0x115)),promisifiedRequest=util[a9_0x4d963e(0x1b3)](request);function a9_0x4de7(_0x14e6e9,_0x4cf617){const _0x2d394f=a9_0x2d39();return a9_0x4de7=function(_0x4de77b,_0x498b95){_0x4de77b=_0x4de77b-0xa9;let _0x5f1083=_0x2d394f[_0x4de77b];return _0x5f1083;},a9_0x4de7(_0x14e6e9,_0x4cf617);}exports['command']='grid',exports[a9_0x4d963e(0xcb)]=a9_0x4d963e(0x1a4),exports[a9_0x4d963e(0x1c7)]=function(_0x57a590){const _0x57b0d2=a9_0x4d963e,_0x2ca0b1={};_0x2ca0b1[_0x57b0d2(0x148)]=_0x57b0d2(0x12b),_0x2ca0b1['Fachw']='string',_0x2ca0b1[_0x57b0d2(0xc0)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x2ca0b1['IKCas']=_0x57b0d2(0x181),_0x2ca0b1[_0x57b0d2(0xd1)]=_0x57b0d2(0xe2),_0x2ca0b1[_0x57b0d2(0x1b4)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x2ca0b1[_0x57b0d2(0xac)]=_0x57b0d2(0x10e),_0x2ca0b1['NGYGi']=_0x57b0d2(0xf2);const _0x4dc6e4=_0x2ca0b1,_0x1b0447={};_0x1b0447['description']=_0x4dc6e4['bLSxG'],_0x1b0447[_0x57b0d2(0x19e)]=_0x4dc6e4['Fachw'];const _0x3b0588={};_0x3b0588[_0x57b0d2(0x1b0)]=_0x4dc6e4[_0x57b0d2(0xc0)],_0x3b0588['type']=_0x4dc6e4[_0x57b0d2(0x1a7)];const _0x129da8={};_0x129da8[_0x57b0d2(0x1b0)]=_0x4dc6e4[_0x57b0d2(0x1ac)],_0x129da8[_0x57b0d2(0x19e)]=_0x4dc6e4[_0x57b0d2(0x1a7)];const _0x59a60e={};_0x59a60e[_0x57b0d2(0x1b0)]=_0x4dc6e4[_0x57b0d2(0xd1)],_0x59a60e['type']=_0x4dc6e4[_0x57b0d2(0x1a7)];const _0x35a981={};_0x35a981[_0x57b0d2(0x1b0)]=_0x4dc6e4[_0x57b0d2(0x1b4)],_0x35a981['type']=_0x4dc6e4[_0x57b0d2(0x1a7)];const _0x5737be={};_0x5737be[_0x57b0d2(0x1b0)]=_0x4dc6e4[_0x57b0d2(0xac)],_0x5737be[_0x57b0d2(0x19e)]=_0x4dc6e4['Fachw'];const _0x13facd={};return _0x13facd['grid-name']=_0x1b0447,_0x13facd[_0x57b0d2(0x105)]=_0x3b0588,_0x13facd['cluster-name']=_0x129da8,_0x13facd[_0x57b0d2(0x19f)]=_0x59a60e,_0x13facd[_0x57b0d2(0xf8)]=_0x35a981,_0x13facd['private-grid']=_0x5737be,_0x57a590[_0x57b0d2(0xe6)](HELP_HEADER_MESSAGE[_0x57b0d2(0xe8)])[_0x57b0d2(0x124)](HELP_FOOTER_MESSAGE)[_0x57b0d2(0x111)](_0x13facd)[_0x57b0d2(0xf2)](_0x4dc6e4[_0x57b0d2(0xdd)])[_0x57b0d2(0x194)];},exports['handler']=async function(_0x4d6030){const _0x11a267=a9_0x4d963e,_0x3a3ce4={'Xogey':'error','GuRgc':_0x11a267(0x1c2),'dxNqQ':_0x11a267(0x176),'JMfDQ':_0x11a267(0x12b),'arUaZ':'string','WhgHo':_0x11a267(0x131),'MOOdE':_0x11a267(0x181),'ctNxn':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','zxdKR':_0x11a267(0xff),'iGyyb':_0x11a267(0x10e),'qeyTU':_0x11a267(0xf2),'anhoW':_0x11a267(0x168),'LUvWt':_0x11a267(0x188),'jAUWt':'Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','xROLH':function(_0x53c6bc){return _0x53c6bc();},'LJUEB':function(_0xafb16d,_0xcda06){return _0xafb16d!==_0xcda06;},'pGJix':_0x11a267(0x14e),'iywcJ':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','LrsKS':function(_0x35f9b1,_0x548130,_0x5d6349,_0x490ff6,_0x6215d5,_0x56e629,_0x47d528){return _0x35f9b1(_0x548130,_0x5d6349,_0x490ff6,_0x6215d5,_0x56e629,_0x47d528);},'isvwQ':_0x11a267(0xc1),'JrQXg':_0x11a267(0xda),'ccBoH':_0x11a267(0x163),'NJVAR':_0x11a267(0xea),'GLrHL':_0x11a267(0x1bf),'OToZK':function(_0x1556f1,_0x301b3c){return _0x1556f1===_0x301b3c;},'lgbqE':_0x11a267(0xd8),'auLME':'ptfsx','LDBpv':function(_0x59f741,_0x2ec0d1){return _0x59f741!==_0x2ec0d1;},'tTnyJ':'gDsci','zfYAo':_0x11a267(0xfd),'zACnP':function(_0x568c1a,_0x83d649,_0x4eb97e,_0x13561d,_0x113397,_0x27afef,_0x3eb6c0,_0x430160){return _0x568c1a(_0x83d649,_0x4eb97e,_0x13561d,_0x113397,_0x27afef,_0x3eb6c0,_0x430160);},'SdwUW':_0x11a267(0x175),'ZRkgR':_0x11a267(0x1a6),'hEUFf':_0x11a267(0x140),'vBnOd':_0x11a267(0x1cc),'zevvS':function(_0x237ccf,_0x370576){return _0x237ccf===_0x370576;},'spzub':_0x11a267(0x1a2),'UIhfA':_0x11a267(0x19a),'TvTOP':_0x11a267(0x11b),'EKWrI':'RxxNh','nMRAV':_0x11a267(0x118),'Hjdkn':function(_0x440b54,_0x11b864){return _0x440b54(_0x11b864);},'lTMVg':function(_0x50c73e,_0x263bbb){return _0x50c73e!==_0x263bbb;},'aGinf':_0x11a267(0x198),'BggkF':_0x11a267(0x113),'sFlro':function(_0x5ddf17,_0x5d5259,_0x2af2c6,_0x301a29,_0xef3a78,_0x21a724,_0x1c2f76,_0x510e00){return _0x5ddf17(_0x5d5259,_0x2af2c6,_0x301a29,_0xef3a78,_0x21a724,_0x1c2f76,_0x510e00);},'vIFJC':'create-grid-checks-null-response','fyvtl':function(_0x4bcaa5,_0x5b11d7){return _0x4bcaa5===_0x5b11d7;},'KGVJd':_0x11a267(0x18a),'BWOlE':_0x11a267(0x17e),'SBeih':_0x11a267(0x107),'mNsOz':function(_0x1e2e66,_0x41afed,_0x55e735,_0x2af11d,_0x355e5e,_0x3757ad,_0x184950,_0x30dfe8){return _0x1e2e66(_0x41afed,_0x55e735,_0x2af11d,_0x355e5e,_0x3757ad,_0x184950,_0x30dfe8);},'VUCYf':_0x11a267(0x173),'vTClC':function(_0x2b3de9,_0x2f4c32){return _0x2b3de9!==_0x2f4c32;},'qKhMa':'JojrP','dEZNt':_0x11a267(0x189),'frmgv':'Grid\x20profile\x20fetched\x20from\x20backend','jxGEi':function(_0x30834f,_0x56345a){return _0x30834f!==_0x56345a;},'IgcdD':_0x11a267(0xdb),'QTABV':_0x11a267(0xd6),'PhSJG':_0x11a267(0x1a5),'KkcAL':'create-grid-checks-grid-already-exists','Vzeoq':function(_0x1e5c6d,_0xb6a19f){return _0x1e5c6d!==_0xb6a19f;},'xQGzZ':_0x11a267(0xec),'RZlFv':function(_0x39bb59,_0x35a0d5){return _0x39bb59===_0x35a0d5;},'PbEtK':_0x11a267(0x10b),'vaLYG':function(_0x221fc2,_0x38a23b){return _0x221fc2===_0x38a23b;},'CnjIU':_0x11a267(0xfe),'GkJTq':_0x11a267(0x133),'iWZiz':_0x11a267(0x1b2),'yluSr':_0x11a267(0x141),'imXEI':function(_0x3e5c3b,_0x4801d4){return _0x3e5c3b===_0x4801d4;},'xNgkq':function(_0x3e89fb,_0x4ecbd6){return _0x3e89fb===_0x4ecbd6;},'kxuFF':function(_0x501c99,_0x2c6e9f){return _0x501c99===_0x2c6e9f;},'awFSA':_0x11a267(0xcc),'ulMOc':_0x11a267(0x14b),'tionc':function(_0x402c10,_0x258294){return _0x402c10===_0x258294;},'HORuX':_0x11a267(0x1b5),'xjUaZ':'iBLaA','hjwaJ':function(_0x40fdf3,_0x1c7667,_0x287100,_0x458baa,_0x483550,_0x3313e2,_0x1a7237,_0x44ab83,_0x26dd45,_0x5a7129,_0x2fd0c3,_0x36358b){return _0x40fdf3(_0x1c7667,_0x287100,_0x458baa,_0x483550,_0x3313e2,_0x1a7237,_0x44ab83,_0x26dd45,_0x5a7129,_0x2fd0c3,_0x36358b);},'oatXv':_0x11a267(0xb3),'CaeAn':function(_0x1cdb37,_0x367141,_0x350752,_0xadb06,_0xff5e18,_0xeeb0cf){return _0x1cdb37(_0x367141,_0x350752,_0xadb06,_0xff5e18,_0xeeb0cf);},'wAiUG':_0x11a267(0x1cb),'lPpGU':function(_0x10ace4,_0x4ff2b6){return _0x10ace4===_0x4ff2b6;},'XzzYv':function(_0x23ad53,_0x23fb68,_0x5555fd,_0x3dd1a3){return _0x23ad53(_0x23fb68,_0x5555fd,_0x3dd1a3);},'wMeoJ':function(_0x24a1fa){return _0x24a1fa();},'LSNuD':_0x11a267(0xd2),'TymTH':_0x11a267(0x10c),'FapUJ':function(_0x3e25cd,_0x5e557c){return _0x3e25cd===_0x5e557c;},'UUKbn':_0x11a267(0x145),'FrBSx':function(_0x5a481d,_0xcd83b3){return _0x5a481d!=_0xcd83b3;},'GMgak':function(_0x5b394c,_0x335402){return _0x5b394c!=_0x335402;},'GqenP':function(_0x4113cc,_0x43d331){return _0x4113cc>_0x43d331;},'XEQGC':function(_0x176832,_0x3d7001){return _0x176832===_0x3d7001;},'slLbS':_0x11a267(0x162),'mZwnU':_0x11a267(0x109),'PKlZo':_0x11a267(0x11a),'MBdsp':function(_0x30d8fe,_0x41b2a4,_0x4c2e87,_0x2f8912,_0x58be92,_0x17f898,_0x3a63b0,_0x11d49e){return _0x30d8fe(_0x41b2a4,_0x4c2e87,_0x2f8912,_0x58be92,_0x17f898,_0x3a63b0,_0x11d49e);},'bBHjv':_0x11a267(0x127),'LxaGM':function(_0x41d032,_0x631ef0){return _0x41d032===_0x631ef0;},'uVfdZ':function(_0xeb0a3f,_0x5efa87,_0x51a423,_0x29e2a6,_0x5e5081,_0x4f1960,_0x3f18b1,_0x1f06c3){return _0xeb0a3f(_0x5efa87,_0x51a423,_0x29e2a6,_0x5e5081,_0x4f1960,_0x3f18b1,_0x1f06c3);},'AnpcI':_0x11a267(0x161),'ipqQd':'2|1|4|3|0','kthDu':_0x11a267(0xe5),'armTC':_0x11a267(0x166),'VbbNN':function(_0x56d1e2,_0x27fc3c){return _0x56d1e2(_0x27fc3c);},'VkZLd':function(_0x13def3,_0xeae91b){return _0x13def3==_0xeae91b;},'MaMoO':function(_0x2b64b6,_0x55694a){return _0x2b64b6(_0x55694a);},'qvaUy':'Creating\x20namespace','wIFbL':'default','xzPne':'Browserstack','okMgj':'Namespace\x20Created','vCFaM':_0x11a267(0x146),'Echdk':_0x11a267(0x158),'GiaGv':_0x11a267(0xbf),'WPPxZ':function(_0x57fbde,_0x1b04f9,_0x4c2cea,_0x2ddb2a,_0x465a3c,_0x4d8955,_0x17e81f,_0x4d106b,_0x332730,_0x592361,_0x42630e){return _0x57fbde(_0x1b04f9,_0x4c2cea,_0x2ddb2a,_0x465a3c,_0x4d8955,_0x17e81f,_0x4d106b,_0x332730,_0x592361,_0x42630e);},'jeQtA':'Grid\x20spawned\x20on\x20the\x20cluster','zIKTB':_0x11a267(0x16e),'rQxFa':function(_0x25179a,_0x5e77b4,_0x340e12){return _0x25179a(_0x5e77b4,_0x340e12);},'pAArs':_0x11a267(0x135),'MjgCT':_0x11a267(0x156),'WvTAH':_0x11a267(0x1d5),'ESWNU':function(_0x4b1f00,_0x49071f){return _0x4b1f00==_0x49071f;},'vVLzG':function(_0x8db9c3,_0x172c75){return _0x8db9c3==_0x172c75;},'nGKJl':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','stnta':function(_0x5aa482,_0xa5d444,_0x473003,_0x18864c,_0x56e2de,_0x5e5cff,_0x476ec6,_0x5a1102){return _0x5aa482(_0xa5d444,_0x473003,_0x18864c,_0x56e2de,_0x5e5cff,_0x476ec6,_0x5a1102);},'UFoyO':_0x11a267(0x190),'HEpqs':function(_0xa063f7,_0x4f8a18){return _0xa063f7===_0x4f8a18;},'caNrR':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','MSMRj':function(_0x290e4d,_0x1e43c0,_0x28f5b2,_0x2c2083,_0x14fe31,_0x355f81,_0x13d410,_0x164ad){return _0x290e4d(_0x1e43c0,_0x28f5b2,_0x2c2083,_0x14fe31,_0x355f81,_0x13d410,_0x164ad);},'gFpGs':_0x11a267(0xc6),'eHUgv':function(_0xaded46,_0x40a75a){return _0xaded46!==_0x40a75a;},'DHCkt':function(_0x15ed4a,_0x4b4d6a,_0x5cc25e,_0x43d778,_0x5b48c7,_0xdba315,_0x453ebd,_0x3006a9){return _0x15ed4a(_0x4b4d6a,_0x5cc25e,_0x43d778,_0x5b48c7,_0xdba315,_0x453ebd,_0x3006a9);},'SeoAz':_0x11a267(0x1cf),'BAMoz':function(_0x4d98bc,_0x33d36c){return _0x4d98bc===_0x33d36c;},'fiSwL':function(_0x57e626,_0x389eea,_0x4a12a2,_0x354a5a,_0x450c4d,_0x1f5d33,_0x368ed0){return _0x57e626(_0x389eea,_0x4a12a2,_0x354a5a,_0x450c4d,_0x1f5d33,_0x368ed0);},'nKkim':'grid-spawning-failed'};let _0x154369=![],_0x4c6388,_0x3e80f3,_0x1db46b,_0x196ad2,_0x4ab34d,_0x2e8d0a,_0x4f55bc,_0x5bb483,_0x143875,_0x4e518c,_0x2d8c66,_0x54671b,_0x2808af=0x1,_0x140628=0xe;try{global_registry['requestId']=_0x3a3ce4['xROLH'](uuidv4),global_registry[_0x11a267(0x18e)]=![];!fs[_0x11a267(0x19d)](_0x3a3ce4[_0x11a267(0x1ad)](getCredentialsPath))&&(_0x3a3ce4['LJUEB'](_0x3a3ce4[_0x11a267(0xb8)],_0x3a3ce4[_0x11a267(0xb8)])?_0x520aea[_0x11a267(0xd9)](_0x11a267(0x139)+_0x1522c7+'\x20'):(console['error'](_0x3a3ce4[_0x11a267(0x104)]),await _0x3a3ce4['LrsKS'](sendInstrumentationEvent,_0x4d6030,_0x3a3ce4['isvwQ'],messageTypes['ERROR'],_0x3a3ce4[_0x11a267(0xeb)],null,_0x4d6030),process[_0x11a267(0x1b9)](0x1)));await _0x3a3ce4['LrsKS'](sendInstrumentationEvent,_0x4d6030,_0x3a3ce4[_0x11a267(0xb7)],messageTypes[_0x11a267(0x18b)],null,null,_0x4d6030);const _0x4f4a67=JSON['parse'](fs[_0x11a267(0x13a)](_0x3a3ce4['xROLH'](getCredentialsPath)));global_registry[_0x11a267(0xf4)]=_0x4f4a67[_0x11a267(0x121)]['username'],global_registry['bstackAccesskey']=_0x4f4a67['Browserstack'][_0x11a267(0xb5)];const _0x30d551=WS_ENDPOINT[_0x11a267(0xc3)](_0x3a3ce4[_0x11a267(0x1b1)],_0x4f4a67['Browserstack'][_0x11a267(0x143)])[_0x11a267(0xc3)](_0x3a3ce4[_0x11a267(0xe1)],_0x4f4a67['Browserstack'][_0x11a267(0xb5)]),_0x14f630={};_0x14f630[_0x11a267(0xc5)]=ws,_0x14f630[_0x11a267(0x11d)]=0x36ee80,_0x4e518c=new ReconnectingWebSocket(_0x30d551,[],_0x14f630),logger[_0x11a267(0x17a)](_0x3a3ce4[_0x11a267(0x1a9)]),webSocketUtils[_0x11a267(0x100)](_0x4e518c,_0x4d6030['user'],_0x4d6030[_0x11a267(0xb5)]);let _0xcd517a=DEFAULT_GRID_NAME;if(_0x4d6030[_0x11a267(0x110)]||_0x4d6030[_0x11a267(0x182)]||_0x4d6030['region']){if(_0x3a3ce4['OToZK'](_0x3a3ce4[_0x11a267(0x106)],_0x3a3ce4[_0x11a267(0xe0)]))_0xa87f4c[_0x11a267(0xd9)]('Found\x20Subnets:\x20'+_0x5ff540[_0x11a267(0xd3)](_0x43efb5)+'\x20');else{if(!(_0x4d6030[_0x11a267(0x110)]&&_0x4d6030[_0x11a267(0x182)]&&_0x4d6030[_0x11a267(0xf8)])){if(_0x3a3ce4[_0x11a267(0x147)](_0x3a3ce4[_0x11a267(0xf1)],_0x3a3ce4[_0x11a267(0xf1)])){const _0x1f6379={};_0x1f6379['type']=_0x2efc77[_0x11a267(0x134)],_0x1f6379[_0x11a267(0x1a3)]=_0x432750,_0x4006c9['sendEventToBackend'](_0x1ec01d,_0x1f6379,_0x3a3ce4[_0x11a267(0x1d8)],!![]);}else _0x4c6388=_0x3a3ce4[_0x11a267(0x13c)],await _0x3a3ce4['zACnP'](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4[_0x11a267(0x1d7)],_0x3a3ce4[_0x11a267(0x1d8)]),logger[_0x11a267(0xae)](_0x4c6388),process[_0x11a267(0x1b9)](0x1);}![AWS,AZURE,GCP][_0x11a267(0x136)](_0x4d6030['cloudProvider'][_0x11a267(0x16a)]())&&(_0x3a3ce4[_0x11a267(0x1c6)](_0x3a3ce4[_0x11a267(0xbb)],_0x3a3ce4['ZRkgR'])?(_0x4c6388=_0x3a3ce4[_0x11a267(0x129)],await _0x3a3ce4['zACnP'](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4[_0x11a267(0xc2)],_0x3a3ce4['Xogey']),logger[_0x11a267(0xae)](_0x4c6388),process[_0x11a267(0x1b9)](0x1)):_0x12291a['isPrivateGrid']=!![]);if(_0x4d6030[_0x11a267(0x167)]&&_0x3a3ce4['zevvS'](_0x4d6030['privateGrid']['toLowerCase'](),_0x3a3ce4[_0x11a267(0x172)])){if(_0x3a3ce4['LDBpv'](_0x3a3ce4[_0x11a267(0x16c)],_0x3a3ce4[_0x11a267(0x16c)])){const _0x22034e=_0x3a3ce4[_0x11a267(0x144)][_0x11a267(0x18f)]('|');let _0x15204b=0x0;while(!![]){switch(_0x22034e[_0x15204b++]){case'0':_0x40a605=_0x11a267(0x10f)+_0x395a02+_0x11a267(0xab)+_0x505a8a+'\x27';continue;case'1':_0x5d5e9c['hubVersion']=_0x278491[_0x11a267(0xce)];continue;case'2':_0x419060['clusterRegion']=_0xf48335;continue;case'3':const _0xccef6={};_0xccef6[_0x11a267(0x19e)]=_0x5bedc3['CLI_RUN_STARTED'],_0xccef6[_0x11a267(0x1a3)]=_0x11a267(0xe7),_0x167f28[_0x11a267(0x1ca)](_0xbc4a1a,_0xccef6);continue;case'4':_0x49ddc1[_0x11a267(0x16b)]=_0xb3dfa9['browserVersion'];continue;case'5':const _0x3c0328={};_0x3c0328['type']=_0x2953c8[_0x11a267(0x134)],_0x3c0328[_0x11a267(0x1a3)]=_0x3243fd,_0x5ccc4c[_0x11a267(0x1ca)](_0x26e664,_0x3c0328);continue;case'6':_0x587f66[_0x11a267(0x182)]=_0x8ac08c;continue;case'7':_0x436dac['clusterName']=_0x1a797c;continue;case'8':_0x42e335[_0x11a267(0xd9)](_0x4a147e);continue;}break;}}else global_registry[_0x11a267(0x18e)]=!![];}_0x154369=!![],_0x1db46b=_0x4d6030[_0x11a267(0x110)],_0x3e80f3=_0x4d6030['cloudProvider'][_0x11a267(0x16a)](),_0x196ad2=_0x4d6030['region'];}}if(_0x4d6030[_0x11a267(0xba)]){if(_0x3a3ce4[_0x11a267(0x196)](_0x3a3ce4[_0x11a267(0x19b)],_0x3a3ce4[_0x11a267(0xb9)]))throw _0x16ba1d;else _0xcd517a=_0x4d6030['gridName'];}global_registry[_0x11a267(0xba)]=_0xcd517a;const _0x3595e4={};_0x3595e4[_0x11a267(0x143)]=_0x4f4a67[_0x11a267(0x121)]['username'],_0x3595e4[_0x11a267(0xb5)]=_0x4f4a67['Browserstack'][_0x11a267(0xb5)];const _0x3333ec={};_0x3333ec[_0x11a267(0x17b)]=_0x3a3ce4['nMRAV'],_0x3333ec['auth']=_0x3595e4;const _0x360315=_0x3333ec,_0x2ecf29=_0x11a267(0xcd)+AG_API_URL+'/packages/cli/create-grid-checks',_0x3cbf42={};_0x3cbf42[_0x11a267(0xba)]=_0xcd517a;const _0x34e93b={'url':_0x2ecf29,'qs':_0x3cbf42,..._0x360315},_0x605e1e=_0x34e93b,_0x3c75cf=await _0x3a3ce4[_0x11a267(0x199)](promisifiedRequest,_0x605e1e);(_0x3a3ce4['zevvS'](_0x3c75cf,null)||_0x3a3ce4[_0x11a267(0x196)](_0x3c75cf,undefined))&&(_0x3a3ce4[_0x11a267(0x151)](_0x3a3ce4[_0x11a267(0x154)],_0x3a3ce4[_0x11a267(0x154)])?(_0x4be441=_0x316cb6[_0x11a267(0x186)],_0x43eb07=_0x3a3ce4['dxNqQ']):(_0x4c6388=_0x3a3ce4[_0x11a267(0x184)],await _0x3a3ce4[_0x11a267(0xbc)](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4[_0x11a267(0x12e)],_0x3a3ce4[_0x11a267(0x1d8)]),logger['error'](_0x4c6388),process[_0x11a267(0x1b9)](0x1)));_0x3a3ce4[_0x11a267(0x1c6)](_0x3c75cf[_0x11a267(0x1d1)],0x191)&&(_0x3a3ce4[_0x11a267(0x137)](_0x3a3ce4[_0x11a267(0x117)],_0x3a3ce4[_0x11a267(0x165)])?_0x5111ca[_0x11a267(0x18e)]=!![]:(_0x4c6388=_0x3a3ce4['SBeih'],await _0x3a3ce4[_0x11a267(0x177)](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4['VUCYf'],_0x3a3ce4[_0x11a267(0x1d8)]),logger[_0x11a267(0xae)](_0x4c6388),process['exit'](0x1)));_0x3a3ce4[_0x11a267(0x15d)](_0x3c75cf[_0x11a267(0x1d1)],0xc8)&&(_0x3a3ce4[_0x11a267(0x103)](_0x3a3ce4[_0x11a267(0x12a)],_0x3a3ce4['qKhMa'])?_0x32ed81=_0x50cc92['gridName']:(_0x4c6388=_0x11a267(0x174)+JSON[_0x11a267(0xd3)](_0x3c75cf),await _0x3a3ce4[_0x11a267(0xbc)](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4['dEZNt'],_0x3a3ce4[_0x11a267(0x1d8)]),logger['error'](_0x4c6388),process['exit'](0x1)));const _0x871f0f=JSON[_0x11a267(0x12c)](_0x3c75cf[_0x11a267(0x1c1)]),_0x557e8c={};_0x557e8c[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x1c0)],_0x557e8c[_0x11a267(0x1a3)]=_0x11a267(0xe7),webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x557e8c);const _0x12fba3={};_0x12fba3[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x12fba3[_0x11a267(0x1a3)]=_0x3a3ce4[_0x11a267(0x18c)],webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x12fba3);if(_0x871f0f['alreadyPresent']){if(_0x3a3ce4[_0x11a267(0x15c)](_0x3a3ce4[_0x11a267(0x15e)],_0x3a3ce4[_0x11a267(0x17c)]))_0x4c6388=_0x3a3ce4[_0x11a267(0xf6)],await _0x3a3ce4[_0x11a267(0x177)](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4['KkcAL'],_0x3a3ce4['Xogey']),logger[_0x11a267(0xae)](_0x4c6388),process[_0x11a267(0x1b9)](0x1);else{const _0x5e5e92={};_0x5e5e92[_0x11a267(0x1b0)]=_0x3a3ce4[_0x11a267(0x160)],_0x5e5e92[_0x11a267(0x19e)]=_0x3a3ce4[_0x11a267(0x1aa)];const _0x17b285={};_0x17b285[_0x11a267(0x1b0)]=_0x3a3ce4['WhgHo'],_0x17b285[_0x11a267(0x19e)]=_0x3a3ce4[_0x11a267(0x1aa)];const _0x163c4b={};_0x163c4b[_0x11a267(0x1b0)]=_0x3a3ce4['MOOdE'],_0x163c4b[_0x11a267(0x19e)]=_0x3a3ce4[_0x11a267(0x1aa)];const _0x1cdbf6={};_0x1cdbf6[_0x11a267(0x1b0)]=_0x3a3ce4[_0x11a267(0x1be)],_0x1cdbf6[_0x11a267(0x19e)]=_0x3a3ce4[_0x11a267(0x1aa)];const _0x47a2eb={};_0x47a2eb[_0x11a267(0x1b0)]=_0x3a3ce4[_0x11a267(0xe4)],_0x47a2eb['type']=_0x3a3ce4[_0x11a267(0x1aa)];const _0x500b86={};_0x500b86[_0x11a267(0x1b0)]=_0x3a3ce4['iGyyb'],_0x500b86['type']=_0x3a3ce4[_0x11a267(0x1aa)];const _0x56b025={};return _0x56b025[_0x11a267(0x1d0)]=_0x5e5e92,_0x56b025[_0x11a267(0x105)]=_0x17b285,_0x56b025[_0x11a267(0x185)]=_0x163c4b,_0x56b025[_0x11a267(0x19f)]=_0x1cdbf6,_0x56b025[_0x11a267(0xf8)]=_0x47a2eb,_0x56b025['private-grid']=_0x500b86,_0x243f7e[_0x11a267(0xe6)](_0x4b87c2[_0x11a267(0xe8)])[_0x11a267(0x124)](_0x10f4f7)[_0x11a267(0x111)](_0x56b025)[_0x11a267(0xf2)](_0x3a3ce4[_0x11a267(0x1a1)])[_0x11a267(0x194)];}}const _0x4fdf9f=_0x871f0f[_0x11a267(0x114)];let _0x2fdd3a=_0x4fdf9f[_0x871f0f[_0x11a267(0xd0)]];_0x4d6030[_0x11a267(0xcf)]&&(_0x3a3ce4['Vzeoq'](_0x3a3ce4['xQGzZ'],_0x3a3ce4[_0x11a267(0x1c9)])?_0xafa592=_0x3a3ce4[_0x11a267(0x1ae)]:_0x2fdd3a=_0x4fdf9f[_0x4d6030[_0x11a267(0xcf)]]);if(_0x3a3ce4['fyvtl'](_0x154369,![])){if(_0x3a3ce4[_0x11a267(0x1d6)](_0x3a3ce4[_0x11a267(0x108)],_0x3a3ce4[_0x11a267(0x108)])){if(_0x3a3ce4[_0x11a267(0x1c6)](_0x2fdd3a,undefined)){if(_0x3a3ce4[_0x11a267(0x179)](_0x3a3ce4[_0x11a267(0x1cd)],_0x3a3ce4[_0x11a267(0x1d4)])){const _0x392fc2={};_0x392fc2[_0x11a267(0x19e)]=_0x65a5c3[_0x11a267(0x134)],_0x392fc2[_0x11a267(0x1a3)]='Cluster\x20'+_0x125a0c+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x1415c4[_0x11a267(0x1ca)](_0x4d4173,_0x392fc2,_0x3a3ce4['LUvWt']),_0x545619[_0x11a267(0xd9)]('Cluster\x20'+_0x52134a+_0x11a267(0xde)),_0x20a260=!![];}else _0x4c6388=_0x3a3ce4[_0x11a267(0x1b7)],await _0x3a3ce4[_0x11a267(0x1ce)](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes['ERROR'],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4[_0x11a267(0xaa)],_0x3a3ce4['Xogey']),logger[_0x11a267(0xae)](_0x4c6388),process['exit'](0x1);}global_registry['gridProfileId']=_0x2fdd3a['id'];(_0x3a3ce4[_0x11a267(0x1bc)](_0x3e80f3,AZURE)||_0x3a3ce4[_0x11a267(0xb4)](_0x2fdd3a?.[_0x11a267(0x182)],AZURE))&&(_0x3a3ce4[_0x11a267(0xb0)](_0x3a3ce4[_0x11a267(0xc8)],_0x3a3ce4['ulMOc'])?_0x5ea728=_0x9912c1[_0xf71336[_0x11a267(0xcf)]]:(console[_0x11a267(0xae)](_0x3a3ce4[_0x11a267(0x14c)]),process[_0x11a267(0x1b9)](0x1)));_0x4c6388=_0x11a267(0xd4)+_0xcd517a+_0x11a267(0x16d)+_0x2fdd3a[_0x11a267(0x13d)]+_0x11a267(0x1c5),logger[_0x11a267(0xd9)](_0x4c6388);const _0x184a55={};_0x184a55[_0x11a267(0x19e)]=WS_EVENTS['LOG'],_0x184a55['message']=_0x4c6388,webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x184a55),_0x3e80f3=_0x2fdd3a[_0x11a267(0x182)],_0x1db46b=_0x2fdd3a[_0x11a267(0x110)],_0x196ad2=_0x2fdd3a[_0x11a267(0xf8)],_0x4ab34d=_0x2fdd3a[_0x11a267(0xfa)],_0x2e8d0a=_0x2fdd3a[_0x11a267(0xf9)],_0x4f55bc=_0x2fdd3a['vpc'],securityGroups=_0x2fdd3a['securityGroups'],subnets=_0x2fdd3a[_0x11a267(0x116)],_0x5bb483=_0x2fdd3a[_0x11a267(0x17f)],_0x2808af=_0x2fdd3a[_0x11a267(0x159)],_0x140628=_0x2fdd3a[_0x11a267(0xbd)],_0x2d8c66=_0x871f0f['hubVersion'],_0x54671b=_0x871f0f[_0x11a267(0x16b)],_0x3a3ce4[_0x11a267(0x147)](_0x2fdd3a['privateGrid'],undefined)&&_0x2fdd3a[_0x11a267(0x167)]&&(_0x3a3ce4[_0x11a267(0x1af)](_0x3a3ce4[_0x11a267(0x132)],_0x3a3ce4['xjUaZ'])?_0x502f20['cloudProvider']={}:global_registry['isPrivateGrid']=!![]),_0x3a3ce4['hjwaJ'](updateGlobalRegistryWithConfig,_0x3e80f3,_0x1db46b,_0x196ad2,_0x4ab34d,_0x2e8d0a,_0x5bb483,_0x2fdd3a,_0x2d8c66,_0x54671b,_0x2808af,_0x140628);}else _0x5c2af9[_0x11a267(0xae)](_0x3a3ce4['jAUWt']),_0x55d545['exit'](0x1);}else{const _0x48324e=_0x3a3ce4['oatXv'][_0x11a267(0x18f)]('|');let _0x13607f=0x0;while(!![]){switch(_0x48324e[_0x13607f++]){case'0':_0x4c6388='Spawning\x20the\x20grid\x20'+_0xcd517a+_0x11a267(0xab)+_0x1db46b+'\x27';continue;case'1':global_registry['browserVersion']=_0x871f0f[_0x11a267(0x16b)];continue;case'2':logger[_0x11a267(0xd9)](_0x4c6388);continue;case'3':global_registry[_0x11a267(0x182)]=_0x3e80f3;continue;case'4':global_registry['clusterRegion']=_0x196ad2;continue;case'5':global_registry[_0x11a267(0xce)]=_0x871f0f[_0x11a267(0xce)];continue;case'6':const _0x6b09c5={};_0x6b09c5[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x1c0)],_0x6b09c5[_0x11a267(0x1a3)]='CLI\x20run\x20started',webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x6b09c5);continue;case'7':const _0x787d22={};_0x787d22[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x787d22[_0x11a267(0x1a3)]=_0x4c6388,webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x787d22);continue;case'8':global_registry[_0x11a267(0x110)]=_0x1db46b;continue;}break;}}const _0x337e8b=_0x3a3ce4[_0x11a267(0x15a)](getCloudProviderObject,_0x3e80f3,_0x1db46b,_0xcd517a,_0x4e518c,webSocketUtils),_0x31366a=_0x4f4a67[_0x11a267(0x182)]||{};if(_0x3a3ce4['RZlFv'](_0x31366a[_0x3e80f3],undefined)){logger[_0x11a267(0xd9)](_0x3a3ce4[_0x11a267(0xfc)]);_0x3a3ce4['lPpGU'](_0x4f4a67[_0x11a267(0x182)],undefined)&&(_0x4f4a67['cloudProvider']={});_0x4f4a67[_0x11a267(0x182)][_0x3e80f3]={};const _0x50c91a=await _0x3a3ce4['XzzYv'](inputCloudProviderKeys,_0x3e80f3,_0x4f4a67,_0x337e8b);fs['writeFileSync'](_0x3a3ce4[_0x11a267(0x153)](getCredentialsPath),JSON[_0x11a267(0xd3)](_0x50c91a)),logger['debug'](_0x3a3ce4[_0x11a267(0x17d)]);}else{_0x4c6388=_0x3a3ce4[_0x11a267(0xdc)];const _0xf01655={};_0xf01655[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0xf01655['message']=_0x4c6388,webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0xf01655),logger[_0x11a267(0xd9)](_0x4c6388),await _0x337e8b[_0x11a267(0x13b)](_0x31366a);}_0x337e8b['configureIfNotConfigured']();let _0x138b7f;if(_0x3a3ce4[_0x11a267(0xef)](_0x154369,![])){_0x4c6388=_0x11a267(0x183)+_0x196ad2+').';const _0x578270={};_0x578270[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x578270['message']=_0x4c6388,webSocketUtils['sendEventToBackend'](_0x4e518c,_0x578270),logger[_0x11a267(0xd9)](_0x4c6388);const _0xa418b1=await _0x337e8b[_0x11a267(0x149)]();if(_0xa418b1){const _0x3b2d66={};_0x3b2d66[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x3b2d66[_0x11a267(0x1a3)]=_0x11a267(0xdf)+_0x1db46b+_0x11a267(0xde),webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x3b2d66,_0x3a3ce4[_0x11a267(0x1ba)]),logger[_0x11a267(0xd9)](_0x11a267(0xdf)+_0x1db46b+_0x11a267(0xde)),_0x154369=!![];}else{const _0x4a1e05={};_0x4a1e05[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x4a1e05[_0x11a267(0x1a3)]=_0x3a3ce4['UUKbn'],webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x4a1e05),logger[_0x11a267(0xd9)](_0x3a3ce4['UUKbn']);const _0x194c31=_0x3a3ce4['FrBSx'](_0x4f55bc,null)&&_0x3a3ce4['vTClC'](_0x4f55bc,undefined),_0x3a1da5=_0x3a3ce4[_0x11a267(0x15b)](subnets,null)&&_0x3a3ce4[_0x11a267(0x15d)](subnets,undefined)&&_0x3a3ce4[_0x11a267(0x1ab)](subnets['length'],0x0);if(_0x194c31){_0x3a3ce4[_0x11a267(0x102)](_0x3a1da5,![])&&(_0x4c6388=_0x3a3ce4[_0x11a267(0xe3)],await _0x3a3ce4['mNsOz'](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes['ERROR'],_0x3a3ce4['isvwQ'],_0x3a3ce4[_0x11a267(0x13f)],_0x3a3ce4['Xogey']),logger[_0x11a267(0xae)](_0x4c6388),process[_0x11a267(0x1b9)](0x1));const _0x31163c=await _0x337e8b[_0x11a267(0x1b6)](_0x4f55bc);_0x3a3ce4[_0x11a267(0x137)](_0x31163c,![])?(_0x4c6388=_0x3a3ce4[_0x11a267(0xd5)],await _0x3a3ce4[_0x11a267(0x1c8)](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes['ERROR'],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4[_0x11a267(0x169)],_0x3a3ce4[_0x11a267(0x1d8)]),logger['error'](_0x4c6388),process[_0x11a267(0x1b9)](0x1)):logger[_0x11a267(0xd9)]('Found\x20VPC:\x20'+_0x4f55bc+'\x20');const _0x3855a4=await _0x337e8b[_0x11a267(0xb2)](subnets,_0x4f55bc);_0x3a3ce4[_0x11a267(0xbe)](_0x3855a4[0x0],![])?(_0x4c6388=_0x11a267(0x197)+_0x3855a4[0x1]+_0x11a267(0x178)+_0x4f55bc+_0x11a267(0xf7),await _0x3a3ce4['uVfdZ'](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4[_0x11a267(0xb6)],_0x3a3ce4['Xogey']),logger['error'](_0x4c6388),process['exit'](0x1)):logger[_0x11a267(0xd9)](_0x11a267(0xe9)+JSON['stringify'](subnets)+'\x20'),await _0x337e8b[_0x11a267(0x142)](_0x4f55bc,subnets);}else{const _0x178100=_0x3a3ce4['ipqQd'][_0x11a267(0x18f)]('|');let _0x52a092=0x0;while(!![]){switch(_0x178100[_0x52a092++]){case'0':logger[_0x11a267(0xd9)](_0x3a3ce4['kthDu']);continue;case'1':logger[_0x11a267(0xd9)](_0x3a3ce4[_0x11a267(0x195)]);continue;case'2':const _0x1387bd={};_0x1387bd[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x1387bd[_0x11a267(0x1a3)]=_0x3a3ce4[_0x11a267(0x195)],webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x1387bd);continue;case'3':const _0x5c2eca={};_0x5c2eca[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x5c2eca[_0x11a267(0x1a3)]=_0x11a267(0xe5),webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x5c2eca);continue;case'4':await _0x337e8b['setupNewCluster']();continue;}break;}}}}_0x154369&&_0x3a3ce4['lPpGU'](_0x3e80f3,AZURE)&&(global_registry[_0x11a267(0x155)]=_0x871f0f[_0x11a267(0x1c3)],await _0x337e8b[_0x11a267(0x112)](),await _0x337e8b['createOtherResources']());const [_0x3ecbe0,_0x4673d5,_0x19c36a,_0x48d772,_0x2dcb5a,_0x4b2158]=await _0x3a3ce4[_0x11a267(0x15f)](createK8sClient,_0x337e8b);_0x3a3ce4[_0x11a267(0xb4)](_0x154369,![])&&_0x3a3ce4[_0x11a267(0xee)](_0x3e80f3,AWS)&&(_0x138b7f=await _0x337e8b[_0x11a267(0x1c4)](_0x3ecbe0,_0x4d6030));try{_0x143875=_0x3a3ce4[_0x11a267(0x14a)](kebabCase,_0xcd517a),logger[_0x11a267(0xd9)](_0x3a3ce4[_0x11a267(0x1bb)]);const _0x1044ab={};_0x1044ab['type']=WS_EVENTS[_0x11a267(0x134)],_0x1044ab[_0x11a267(0x1a3)]=_0x3a3ce4['qvaUy'],webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x1044ab);if(_0x3a3ce4[_0x11a267(0x103)](_0x143875,_0x3a3ce4[_0x11a267(0x101)])){const _0x145bcc={};_0x145bcc['createdBy']=_0x3a3ce4['xzPne'],_0x145bcc[_0x11a267(0xca)]=_0x3a3ce4[_0x11a267(0x150)];const _0x190b0f={};_0x190b0f[_0x11a267(0x13d)]=_0x143875,_0x190b0f[_0x11a267(0x14d)]=_0x145bcc;const _0x59585e={};_0x59585e[_0x11a267(0x13e)]=_0x190b0f;let _0x19815e=_0x59585e;await _0x3ecbe0['createNamespace'](_0x19815e),logger[_0x11a267(0xd9)](_0x3a3ce4[_0x11a267(0x123)]);}const _0x1f236e={};_0x1f236e[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x1f236e[_0x11a267(0x1a3)]=_0x3a3ce4['vCFaM'],webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x1f236e);const _0x243eef={};_0x243eef[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x243eef['message']=_0x3a3ce4[_0x11a267(0x170)],webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x243eef),logger[_0x11a267(0xd9)](_0x3a3ce4[_0x11a267(0x19c)]);let _0x4f5f0e={};_0x3a3ce4[_0x11a267(0x1af)](_0x3e80f3,AZURE)&&(_0x4f5f0e={'clientId':await _0x337e8b[_0x11a267(0x164)](_0x11a267(0xc4)+_0x1db46b)});await _0x3a3ce4[_0x11a267(0xad)](addGridComponents,_0x3ecbe0,_0x4673d5,_0x19c36a,_0x48d772,_0x143875,_0x1db46b,_0x138b7f,_0x2dcb5a,_0x4b2158,_0x4f5f0e),_0x4c6388=_0x3a3ce4['jeQtA'],logger['info'](_0x4c6388);const _0x2d2ea3={};_0x2d2ea3[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x2d2ea3[_0x11a267(0x1a3)]=_0x4c6388,webSocketUtils['sendEventToBackend'](_0x4e518c,_0x2d2ea3),_0x4c6388=_0x3a3ce4['zIKTB'],logger['info'](_0x4c6388);const _0x1377f1={};_0x1377f1[_0x11a267(0x19e)]=WS_EVENTS['LOG'],_0x1377f1['message']=_0x4c6388,webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x1377f1),await webSocketUtils[_0x11a267(0x193)](0xea60);const _0x2a8287=await _0x3a3ce4[_0x11a267(0xf0)](getNamespaceUID,_0x3ecbe0,_0x143875);let _0x22c8ab=global_registry[_0x11a267(0x18e)]?_0x3a3ce4['pAArs']:_0x3a3ce4[_0x11a267(0x191)],_0x204649=await _0x3ecbe0[_0x11a267(0xfb)](_0x22c8ab,_0x3a3ce4[_0x11a267(0xc9)]),_0x578488=_0x337e8b['getGridHostname'](_0x204649)+'/'+_0x143875,_0x200255=_0x3a3ce4[_0x11a267(0x1ae)];try{const _0x1f7521={'url':_0x11a267(0xcd)+AG_API_URL+_0x11a267(0xc7)+_0x2a8287,..._0x360315},_0x5234d0=_0x1f7521,_0x2719d2=await _0x3a3ce4[_0x11a267(0x14a)](promisifiedRequest,_0x5234d0);(_0x3a3ce4[_0x11a267(0x180)](_0x2719d2,null)||_0x3a3ce4['vVLzG'](_0x2719d2,undefined))&&(_0x4c6388=_0x3a3ce4[_0x11a267(0x171)],await _0x3a3ce4[_0x11a267(0x187)](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4['isvwQ'],_0x3a3ce4['UFoyO'],_0x3a3ce4[_0x11a267(0x1d8)]),logger['error'](_0x4c6388),process[_0x11a267(0x1b9)](0x1));_0x3a3ce4[_0x11a267(0x10d)](_0x2719d2[_0x11a267(0x1d1)],0x191)&&(_0x4c6388=_0x3a3ce4[_0x11a267(0x1bd)],await _0x3a3ce4['MSMRj'](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4[_0x11a267(0x14f)],_0x3a3ce4[_0x11a267(0x1d8)]),logger[_0x11a267(0xae)](_0x4c6388),process[_0x11a267(0x1b9)](0x1));_0x3a3ce4['eHUgv'](_0x2719d2[_0x11a267(0x1d1)],0xc8)&&(_0x4c6388='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x2719d2),await _0x3a3ce4[_0x11a267(0xf5)](reportToGalactusAndSendToEDS,_0x4d6030,_0x4e518c,_0x4c6388,messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xb7)],_0x3a3ce4[_0x11a267(0x157)],_0x3a3ce4[_0x11a267(0x1d8)]),logger[_0x11a267(0xae)](_0x4c6388),process[_0x11a267(0x1b9)](0x1));const _0x392e16=JSON[_0x11a267(0x12c)](_0x2719d2[_0x11a267(0x1c1)]);_0x392e16[_0x11a267(0x186)]&&(_0x578488=_0x392e16['route53'],_0x200255=_0x3a3ce4['dxNqQ']),global_registry[_0x11a267(0x18e)]&&(_0x200255=_0x3a3ce4[_0x11a267(0x1ae)]);}catch(_0x134c2f){}_0x4c6388='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x578488+'\x20',logger[_0x11a267(0xd9)](_0x4c6388);const _0xf7a1cc={};_0xf7a1cc[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0xf7a1cc['message']=_0x4c6388,webSocketUtils['sendEventToBackend'](_0x4e518c,_0xf7a1cc),_0x4c6388=_0x11a267(0x11e)+_0x200255+'://'+_0x578488+_0x11a267(0xd7),logger[_0x11a267(0xd9)](_0x4c6388);const _0x2a2320={};_0x2a2320[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x2a2320[_0x11a267(0x1a3)]=_0x4c6388,webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x2a2320);const _0x55f593={};_0x55f593['type']=WS_EVENTS['CLI_RUN_FINISHED'],_0x55f593[_0x11a267(0x1a3)]='CLI\x20run\x20finished:\x20'+_0x578488,webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x55f593),await webSocketUtils[_0x11a267(0x193)](0x7d0);}catch(_0x5b4239){if(_0x3a3ce4[_0x11a267(0x1d3)](_0x154369,![]))try{logger[_0x11a267(0xd9)](_0x11a267(0x1a0)),await _0x3a3ce4[_0x11a267(0x15a)](removeGridComponents,_0x3ecbe0,_0x4673d5,_0x19c36a,_0x48d772,_0x143875),await _0x337e8b['deleteCluster'](_0x3ecbe0,global_registry[_0x11a267(0xed)]);}catch(_0x340c1a){throw _0x340c1a;}throw _0x5b4239;}}catch(_0x4024d4){const _0x3a5a54=_0x11a267(0x138)+_0x4024d4+'\x20\x0a'+JSON[_0x11a267(0xd3)](_0x4024d4)+'\x20';if(_0x4e518c){const _0x55b36c={};_0x55b36c[_0x11a267(0x19e)]=WS_EVENTS[_0x11a267(0x134)],_0x55b36c[_0x11a267(0x1a3)]=_0x3a5a54,webSocketUtils[_0x11a267(0x1ca)](_0x4e518c,_0x55b36c,_0x3a3ce4[_0x11a267(0x1d8)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x9b15a5={};_0x9b15a5[_0x11a267(0xae)]=_0x3a5a54,await _0x3a3ce4[_0x11a267(0x11c)](sendInstrumentationEvent,_0x4d6030,_0x3a3ce4['isvwQ'],messageTypes[_0x11a267(0xf3)],_0x3a3ce4[_0x11a267(0xa9)],_0x9b15a5,_0x4d6030),logger[_0x11a267(0xae)](_0x3a5a54);}process[_0x11a267(0x1b9)](0x0);};function a9_0x2d39(){const _0x5c3dca=['CLI_RUN_STARTED','body','3|0|8|5|6|2|7|1|4','s3BucketName','setupAutoscaler','\x27\x20grid\x20profile','OToZK','builder','MBdsp','xQGzZ','sendEventToBackend','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','non-aws-azure-cluster','CnjIU','zACnP','get-grid-url-non-200','grid-name','statusCode','1458008WOCsjq','BAMoz','GkJTq','ingress-nginx','RZlFv','SdwUW','Xogey','nKkim','yluSr','\x20in\x20existing\x20cluster\x20\x27','BjTDp','WPPxZ','error','2346300FtzvxH','kxuFF','../../utils/userInput','isSubnetsValid','6|0|2|7|3|4|8|5|1','xNgkq','password','AnpcI','isvwQ','pGJix','EKWrI','gridName','ZRkgR','sFlro','maxNodes','LxaGM','Spawning\x20Grid\x20on\x20the\x20Cluster','vIlBM','create-grid-called','vBnOd','replace','turboscale-managed-identity-','WebSocket','get-grid-url-auth-failed','/packages/cli/get-grid-url?gridIdentifier=','awFSA','WvTAH','managedBy','desc','lUTBJ','https://','hubVersion','gridProfile','defaultGridProfile','LMCRI','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','stringify','Will\x20be\x20spawning\x20the\x20grid\x20','PKlZo','nhKgM','/wd/hub','MqsBd','info','init-not-called','SJVLI','TymTH','NGYGi','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','Cluster\x20','auLME','NJVAR','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','slLbS','zxdKR','Cluster\x20created\x20successfully','usage','CLI\x20run\x20started','create','Found\x20Subnets:\x20','<PasswordPlaceholder>','JrQXg','vftPk','clusterRegion','VkZLd','FapUJ','rQxFa','tTnyJ','help','ERROR','bstackUsername','DHCkt','PhSJG','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','region','instanceType','concurrency','readNamespacedService','wAiUG','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','cNBHO','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','addListeners','wIFbL','XEQGC','LJUEB','iywcJ','grid-profile','lgbqE','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','PbEtK','pre-spawned-subnets-not-selected','../../cloudproviders/utils','QclrJ','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','HEpqs','Create\x20a\x20private/public\x20grid.','Spawning\x20the\x20grid\x20','clusterName','options','updatePreSpawnedCluster','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','gridProfiles','../../utils/instrumentationUtils','subnets','KGVJd','GET','../../utils/createk8sClient','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','VxXxn','fiSwL','connectionTimeout','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','1761411lBDbFx','request','Browserstack','1225022rWwGcU','okMgj','epilogue','../../utils/utilityMethods','35AUVkKj','pre-spawned-invalid-vpc','../../config/constants','hEUFf','qKhMa','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','parse','uuid','vIFJC','15stgfXU','12FBaISd','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','HORuX','txHCX','LOG','private-ingress-nginx-controller','includes','fyvtl','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','Found\x20VPC:\x20','readFileSync','fetchLocalCreds','zfYAo','name','metadata','mZwnU','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','create-grid-checks-invalid-profile','setupNewCluster','username','GuRgc','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','Namespace\x20created','LDBpv','bLSxG','isClusterPresent','MaMoO','aGOZh','jAUWt','annotations','YcoPr','gFpGs','xzPne','lTMVg','6183140MVRysW','wMeoJ','aGinf','s3Bucket','ingress-nginx-controller','SeoAz','Spawning\x20grid\x20on\x20to\x20the\x20cluster','minNodes','CaeAn','GMgak','jxGEi','vTClC','IgcdD','VbbNN','JMfDQ','pre-spawned-invalid-subnets','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','<UsernamePlaceholder>','getResourceClientId','BWOlE','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.','privateGrid','http','bBHjv','toLowerCase','browserVersion','UIhfA','\x20using\x20\x27','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','../../utils/gridComponents','Echdk','nGKJl','spzub','create-grid-checks-auth-failed','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','prespawned-cluster-args-not-passed','https','mNsOz','\x20are\x20not\x20present\x20in\x20VPC:\x20','vaLYG','debug','method','QTABV','LSNuD','goVPY','s3bucket','ESWNU','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','cloudProvider','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','BggkF','cluster-name','route53','stnta','warn','create-grid-checks-non-200','NGxUG','INFO','frmgv','../../utils/webSocketUtils','isPrivateGrid','split','get-grid-url-null-response','MjgCT','413760AzKcSQ','delay','argv','armTC','zevvS','Subnets:\x20','jxzjl','Hjdkn','SOLXK','TvTOP','GiaGv','existsSync','type','cloud-provider','Deleting\x20the\x20CloudFormation\x20Stacks','qeyTU','true','message','Create\x20a\x20new\x20Automation\x20grid.','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','TBoab','Fachw','../../config/logger','GLrHL','arUaZ','GqenP','IKCas','xROLH','anhoW','tionc','description','ccBoH','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','promisify','hqrHu','EUuLq','isVPCPresent','iWZiz','1334708CWuhpD','exit','LUvWt','qvaUy','imXEI','caNrR','ctNxn','Adding\x20Websocket\x20listeners'];a9_0x2d39=function(){return _0x5c3dca;};return a9_0x2d39();}
1
+ const a9_0x3e9606=a9_0x1cc9;(function(_0x2d286b,_0x1af324){const _0x1d6402=a9_0x1cc9,_0x10d8e7=_0x2d286b();while(!![]){try{const _0x5d2c1=parseInt(_0x1d6402(0xaf))/0x1*(-parseInt(_0x1d6402(0x108))/0x2)+parseInt(_0x1d6402(0x11b))/0x3*(-parseInt(_0x1d6402(0x147))/0x4)+-parseInt(_0x1d6402(0xbe))/0x5+parseInt(_0x1d6402(0xdb))/0x6*(parseInt(_0x1d6402(0x16b))/0x7)+-parseInt(_0x1d6402(0x188))/0x8*(parseInt(_0x1d6402(0x187))/0x9)+-parseInt(_0x1d6402(0xed))/0xa*(parseInt(_0x1d6402(0x1bc))/0xb)+parseInt(_0x1d6402(0x109))/0xc;if(_0x5d2c1===_0x1af324)break;else _0x10d8e7['push'](_0x10d8e7['shift']());}catch(_0x56201c){_0x10d8e7['push'](_0x10d8e7['shift']());}}}(a9_0x490e,0x7457c));const fs=require('fs'),ws=require('ws'),util=require('util'),ReconnectingWebSocket=require('reconnecting-websocket'),request=require(a9_0x3e9606(0xae)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x3e9606(0xfc)),{logger}=require(a9_0x3e9606(0x136)),{inputCloudProviderKeys}=require(a9_0x3e9606(0x169)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x3e9606(0x1c2)),{createK8sClient}=require(a9_0x3e9606(0x19e)),{sendInstrumentationEvent}=require(a9_0x3e9606(0x1b9)),promisifiedRequest=util[a9_0x3e9606(0x191)](request);function a9_0x1cc9(_0x1a3e80,_0x401b5e){const _0x490e9d=a9_0x490e();return a9_0x1cc9=function(_0x1cc941,_0x18b5d1){_0x1cc941=_0x1cc941-0xa3;let _0xd3ddeb=_0x490e9d[_0x1cc941];return _0xd3ddeb;},a9_0x1cc9(_0x1a3e80,_0x401b5e);}function a9_0x490e(){const _0x183809=['setupNewCluster','vVBKl','toLowerCase','CLI\x20run\x20finished:\x20','BWXeM','QNTyg','LOG','kJzlJ','method','stringify','rAtcY','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cLnyj','OvLWf','sendEventToBackend','fezvM','../../config/logger','split','pre-spawned-invalid-vpc','Grid\x20profile\x20fetched\x20from\x20backend','Adding\x20Websocket\x20listeners','epilogue','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','type','warn','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','requestId','jKNsv','aNirZ','xOIXK','cloudProvider','qQIKc','parse','740312XqbCBB','create-grid-checks-auth-failed','s3Bucket','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','NKFUi','grid-profile','gYGjO','privateGrid','private-ingress-nginx-controller','wPvqO','XzbyJ','dscJh','CLI_RUN_FINISHED','readFileSync','mCskt','delay','bPPjr','description','vJHkA','get-grid-url-non-200','auth','annotations','gridProfiles','WebSocket','wKlyc','BXZmJ','metadata','dDetl','replace','tRvCk','Deleting\x20the\x20CloudFormation\x20Stacks','CLI\x20run\x20started','../../utils/userInput','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','9422CcwLFQ','maxNodes','turboscale-managed-identity-','CLI_RUN_STARTED','YBOCm','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','YIWWj','Cluster\x20','TWiby','yywDU','VmAJZ','true','Rpjaj','isPrivateGrid','4|3|1|0|2','PJsTb','fAmch','\x20in\x20existing\x20cluster\x20\x27','Grid\x20can\x20be\x20accessed\x20at:\x20','s3BucketName','https://','NWfkJ','statusCode','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','vZnXg','inEdx','hubVersion','/packages/cli/get-grid-url?gridIdentifier=','45aBDQlr','1447880FEzBHr','body','s3bucket','Lwmng','oSeSJ','clusterName','init-not-called','route53','concurrency','promisify','debug','connectionTimeout','lADqy','minNodes','username','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','QRXzU','help','GFcER','OmLGC','https','mBMBr','../../utils/createk8sClient','bstackUsername','eTcot','kttwR','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','aukXG','subnets','PtcwO','YrIlS','eETTQ','Create\x20a\x20private/public\x20grid.','create','vvafL','create-grid-checks-grid-already-exists','sPntj','Namespace\x20Created','INFO','mVQEq','GOFJR','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','EwBot','password','iFkjZ','Found\x20Subnets:\x20','createdBy','VwNNi','DRwNk','../../utils/instrumentationUtils','HKySw','AoIEe','1663266XTsIug','grid','grid-name','QOgMm','info','KCsxP','../../utils/gridComponents','HZpZs','BtRSp','exit','length','UhbQj','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','jstRi','hUZlk','ingress-nginx','Cluster\x20created\x20successfully','setupAutoscaler','XkXbY','EkcQC','foMZA','wyIWh','eLYFf','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','name','request','1aTAoaF','addListeners','fodtd','create-grid-checks-non-200','SPFWT','getGridHostname','HPAQl','managedBy','create-grid-checks-null-response','IOCqE','drGAL','ERROR','Found\x20VPC:\x20','default','Creating\x20namespace','4445660aSKkNS','TNkvG','JWzuY','qYgZN','/wd/hub','pLziG','pSpPC','GvWWP','Browserstack','KRkoB','alreadyPresent','SzDKr','HBKKy','securityGroups','PbfaJ','string','isVPCPresent','rBkOF','cluster-name','Create\x20a\x20new\x20Automation\x20grid.','get-grid-url-auth-failed','WGDJv','OVFUS','gridProfile','instanceType','browserVersion','JFrKk','argv','writeFileSync','1062MpawYc','region','3|7|8|6|5|1|4|0|2','lUsQA','OQvlN','HwLuS','crKPT','WIUYp','jLpGl','ePYGE','create-grid-called','getResourceClientId','iFgWm','GFvPb','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.','kxIeC','/packages/cli/create-grid-checks','XHtFu','20JmYkfj','\x20are\x20not\x20present\x20in\x20VPC:\x20','usage','Spawning\x20the\x20grid\x20','fetchLocalCreds','nHnzn','message','http','Subnets:\x20','PuQBl','FVsTI','command','GDWzG','DcYHE','handler','../../utils/webSocketUtils','PYmzp','error','EDAGK','tgBXg','private-grid','BdoLU','TcAAH','UOdxD','hwoPs','createNamespace','HpwOk','983338vUWbMV','45021912PRvfWG','builder','deleteCluster','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','zcISb','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','WzCoE','Will\x20be\x20spawning\x20the\x20grid\x20','clusterRegion','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','mGVDi','tzUop','updatePreSpawnedCluster','FJKJJ','rwpbc','bZYSM','isClusterPresent','15pVkeGa','MowIU','createOtherResources','TYMAZ','<PasswordPlaceholder>','ARFqp','gridName','dXkdz','pMlmj','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE'];a9_0x490e=function(){return _0x183809;};return a9_0x490e();}exports[a9_0x3e9606(0xf8)]=a9_0x3e9606(0x1bd),exports['desc']=a9_0x3e9606(0xd1),exports[a9_0x3e9606(0x10a)]=function(_0x3e9fb2){const _0x2f5b3a=a9_0x3e9606,_0x5ecc65={};_0x5ecc65[_0x2f5b3a(0x133)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x5ecc65[_0x2f5b3a(0xc9)]=_0x2f5b3a(0xcd),_0x5ecc65[_0x2f5b3a(0x100)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x5ecc65[_0x2f5b3a(0x10f)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x5ecc65[_0x2f5b3a(0x15b)]=_0x2f5b3a(0x1b1),_0x5ecc65['WIUYp']='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x5ecc65[_0x2f5b3a(0x11c)]=_0x2f5b3a(0x1a8),_0x5ecc65[_0x2f5b3a(0x132)]=_0x2f5b3a(0x199);const _0x1557a=_0x5ecc65,_0x5c9a0d={};_0x5c9a0d['description']=_0x1557a[_0x2f5b3a(0x133)],_0x5c9a0d[_0x2f5b3a(0x13d)]=_0x1557a['SzDKr'];const _0x48aeb6={};_0x48aeb6[_0x2f5b3a(0x15a)]=_0x1557a[_0x2f5b3a(0x100)],_0x48aeb6[_0x2f5b3a(0x13d)]=_0x1557a[_0x2f5b3a(0xc9)];const _0x211571={};_0x211571[_0x2f5b3a(0x15a)]=_0x1557a[_0x2f5b3a(0x10f)],_0x211571[_0x2f5b3a(0x13d)]=_0x1557a[_0x2f5b3a(0xc9)];const _0x5edf1b={};_0x5edf1b[_0x2f5b3a(0x15a)]=_0x1557a[_0x2f5b3a(0x15b)],_0x5edf1b[_0x2f5b3a(0x13d)]=_0x1557a[_0x2f5b3a(0xc9)];const _0x4e5ec5={};_0x4e5ec5[_0x2f5b3a(0x15a)]=_0x1557a[_0x2f5b3a(0xe2)],_0x4e5ec5[_0x2f5b3a(0x13d)]=_0x1557a[_0x2f5b3a(0xc9)];const _0x412bc3={};_0x412bc3['description']=_0x1557a[_0x2f5b3a(0x11c)],_0x412bc3[_0x2f5b3a(0x13d)]=_0x1557a[_0x2f5b3a(0xc9)];const _0x3bde92={};return _0x3bde92['grid-name']=_0x5c9a0d,_0x3bde92['grid-profile']=_0x48aeb6,_0x3bde92[_0x2f5b3a(0xd0)]=_0x211571,_0x3bde92['cloud-provider']=_0x5edf1b,_0x3bde92[_0x2f5b3a(0xdc)]=_0x4e5ec5,_0x3bde92[_0x2f5b3a(0x101)]=_0x412bc3,_0x3e9fb2[_0x2f5b3a(0xef)](HELP_HEADER_MESSAGE['create'])[_0x2f5b3a(0x13b)](HELP_FOOTER_MESSAGE)['options'](_0x3bde92)['help'](_0x1557a[_0x2f5b3a(0x132)])[_0x2f5b3a(0xd9)];},exports[a9_0x3e9606(0xfb)]=async function(_0xbb9e1b){const _0x530404=a9_0x3e9606,_0x25b31f={'jstRi':_0x530404(0x125),'BdoLU':_0x530404(0xf4),'NKFUi':_0x530404(0x13e),'lADqy':_0x530404(0x19c),'KRkoB':'2|5|7|4|6|3|1|8|0','BUTLH':_0x530404(0x197),'PYmzp':'string','XHtFu':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','dscJh':_0x530404(0x14b),'hwoPs':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','RhhPU':'Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','SPFWT':'Create\x20a\x20private/public\x20grid.','xOIXK':_0x530404(0x199),'mGVDi':_0x530404(0xfe),'BWXeM':function(_0x508733){return _0x508733();},'IGFEJ':function(_0x30c993){return _0x30c993();},'hUZlk':function(_0x5b6871,_0x51fdb5){return _0x5b6871!==_0x51fdb5;},'qYgZN':_0x530404(0xb1),'pMlmj':_0x530404(0x131),'pSpPC':function(_0x1ac3a9,_0x5665a9,_0x1f5976,_0x6c788f,_0x22d565,_0x52c89c,_0x4560f7){return _0x1ac3a9(_0x5665a9,_0x1f5976,_0x6c788f,_0x22d565,_0x52c89c,_0x4560f7);},'wPvqO':_0x530404(0xe5),'obUNi':_0x530404(0x18e),'ARFqp':function(_0x4f7967,_0x518d35,_0x8405c1,_0x9d9bd3,_0x490a0b,_0x1dbef4,_0x46a29c){return _0x4f7967(_0x518d35,_0x8405c1,_0x9d9bd3,_0x490a0b,_0x1dbef4,_0x46a29c);},'hDSpv':function(_0xea0c13){return _0xea0c13();},'JWzuY':'<UsernamePlaceholder>','tRvCk':_0x530404(0x11f),'GFcER':_0x530404(0x13a),'YIWWj':function(_0x571c60,_0x53c32e){return _0x571c60===_0x53c32e;},'eETTQ':'biHaX','XkXbY':function(_0x309f5a,_0x4d87c0){return _0x309f5a!==_0x4d87c0;},'FJKJJ':_0x530404(0xe0),'foMZA':_0x530404(0x1c8),'qQIKc':function(_0x5601be,_0x147c7a,_0x15ef06,_0x29186c,_0xcf9b77,_0x68ea76,_0x572724,_0x48ec19){return _0x5601be(_0x147c7a,_0x15ef06,_0x29186c,_0xcf9b77,_0x68ea76,_0x572724,_0x48ec19);},'jKNsv':'prespawned-cluster-args-not-passed','iFkjZ':_0x530404(0x173),'UOdxD':_0x530404(0xb5),'zvRcd':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','iFgWm':'non-aws-azure-cluster','PtcwO':function(_0x549b8e,_0x53a235){return _0x549b8e===_0x53a235;},'tpwNj':_0x530404(0x176),'rAtcY':function(_0x5468cf,_0x232975){return _0x5468cf!==_0x232975;},'YrIlS':_0x530404(0xf9),'etqSK':_0x530404(0x183),'RAIAh':'OcHtB','eLYFf':_0x530404(0xbf),'TcAAH':'GET','NWfkJ':function(_0x58a1b7,_0x4595d4){return _0x58a1b7(_0x4595d4);},'PrbSB':function(_0x123c54,_0x1203a6){return _0x123c54===_0x1203a6;},'inEdx':_0x530404(0x17a),'BtRSp':_0x530404(0x182),'HKySw':_0x530404(0xb7),'lUsQA':function(_0x2217ab,_0x32a94b){return _0x2217ab!==_0x32a94b;},'QNTyg':_0x530404(0xe4),'aukXG':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','aNirZ':_0x530404(0x148),'wKlyc':function(_0x155c60,_0x4eb399){return _0x155c60===_0x4eb399;},'QOgMm':_0x530404(0x1af),'dDetl':function(_0x5478de,_0x5dc0eb,_0x407b39,_0x4b4aef,_0x293312,_0x2380b8,_0x33971d,_0x40cc3c){return _0x5478de(_0x5dc0eb,_0x407b39,_0x4b4aef,_0x293312,_0x2380b8,_0x33971d,_0x40cc3c);},'pLziG':_0x530404(0xb2),'DcYHE':_0x530404(0x139),'YBOCm':function(_0x5a25a7,_0x7865ef){return _0x5a25a7===_0x7865ef;},'fezvM':'YuEPV','nHnzn':_0x530404(0x18b),'rwpbc':_0x530404(0x124),'KYlPk':_0x530404(0x1ab),'hEdHi':_0x530404(0x174),'QRXzU':_0x530404(0x12d),'EwBot':function(_0x680982,_0x3387b0){return _0x680982===_0x3387b0;},'crKPT':_0x530404(0xcc),'GOFJR':_0x530404(0x113),'fAmch':'create-grid-checks-invalid-profile','IOCqE':function(_0x2482db,_0x5edaf5){return _0x2482db===_0x5edaf5;},'GvWWP':function(_0x43a7f0,_0x2faf7f){return _0x43a7f0===_0x2faf7f;},'mCskt':function(_0x450da2,_0x497663){return _0x450da2===_0x497663;},'DRwNk':'qkusG','HpwOk':'OTtUS','DDpaZ':function(_0x58b11b,_0xdaf960){return _0x58b11b!==_0xdaf960;},'KCsxP':_0x530404(0x1a0),'EDAGK':'KKIWQ','wyIWh':function(_0x43f330,_0x2213d5,_0x47d88f,_0x9724c8,_0x2e1285,_0x5c8e64,_0x5ea000,_0x23d105,_0x2c9546,_0x5e82c9,_0x2b6e86,_0x4c03fc){return _0x43f330(_0x2213d5,_0x47d88f,_0x9724c8,_0x2e1285,_0x5c8e64,_0x5ea000,_0x23d105,_0x2c9546,_0x5e82c9,_0x2b6e86,_0x4c03fc);},'EfDlE':_0x530404(0xdd),'HBKKy':function(_0x7b5487,_0x3baae0,_0x5529fd,_0x4f259d,_0x263972,_0x3899a8){return _0x7b5487(_0x3baae0,_0x5529fd,_0x4f259d,_0x263972,_0x3899a8);},'jLpGl':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','XzbyJ':function(_0xb56d9e,_0x452165){return _0xb56d9e===_0x452165;},'jcJcQ':function(_0x21cce7,_0x9ca698,_0x147e1a,_0x3411dd){return _0x21cce7(_0x9ca698,_0x147e1a,_0x3411dd);},'VmAJZ':_0x530404(0x16a),'TYMAZ':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','kErmz':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','Rpjaj':function(_0x3f4f19,_0x37666f){return _0x3f4f19!=_0x37666f;},'vVBKl':function(_0x1f89c6,_0xfc0e7a){return _0x1f89c6>_0xfc0e7a;},'OVFUS':function(_0x3adfd7,_0x2e3e04){return _0x3adfd7===_0x2e3e04;},'AQHbK':_0x530404(0x10e),'kttwR':'pre-spawned-subnets-not-selected','dXkdz':function(_0x50d02b,_0x24452a){return _0x50d02b===_0x24452a;},'sPntj':_0x530404(0x13c),'vvafL':_0x530404(0x138),'AoIEe':function(_0x1adccd,_0x149cfd){return _0x1adccd===_0x149cfd;},'oSeSJ':'pre-spawned-invalid-subnets','gYGjO':_0x530404(0x179),'Izzld':_0x530404(0xa5),'bPPjr':_0x530404(0xe9),'XFxYL':function(_0x439fe3,_0x5a88d4){return _0x439fe3===_0x5a88d4;},'fQthd':function(_0x20c232,_0x1b0ab9){return _0x20c232===_0x1b0ab9;},'ljDCi':function(_0x4e538d,_0x4f7623){return _0x4e538d==_0x4f7623;},'drGAL':function(_0x59c922,_0x43c51e){return _0x59c922(_0x43c51e);},'VwNNi':_0x530404(0xbd),'OQvlN':_0x530404(0xbc),'zcISb':_0x530404(0xc6),'BXZmJ':_0x530404(0x1ad),'kxIeC':'Namespace\x20created','gCftz':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','XvdJy':'Spawning\x20Grid\x20on\x20the\x20Cluster','tzUop':function(_0x434649,_0x13ac0b,_0x36cd6d,_0x240f20,_0x38b542,_0x448866,_0xbb2ca6,_0x246848,_0x5b1490,_0x4cbfbb,_0x2289e8){return _0x434649(_0x13ac0b,_0x36cd6d,_0x240f20,_0x38b542,_0x448866,_0xbb2ca6,_0x246848,_0x5b1490,_0x4cbfbb,_0x2289e8);},'GFvPb':'Grid\x20spawned\x20on\x20the\x20cluster','JFrKk':_0x530404(0xac),'fyOFg':function(_0x555d4e,_0x5eea0a,_0x572fda){return _0x555d4e(_0x5eea0a,_0x572fda);},'IgIhF':_0x530404(0x151),'LlQyS':'ingress-nginx-controller','HZpZs':_0x530404(0xa4),'FVsTI':function(_0x950fee,_0x47e33e){return _0x950fee==_0x47e33e;},'mBMBr':_0x530404(0x170),'PuQBl':function(_0x5094e5,_0x374ba5,_0x59f88e,_0x5240ed,_0x28f2c1,_0x2ecf7a,_0x9fedc,_0x542c37){return _0x5094e5(_0x374ba5,_0x59f88e,_0x5240ed,_0x28f2c1,_0x2ecf7a,_0x9fedc,_0x542c37);},'bZYSM':'get-grid-url-null-response','UhbQj':function(_0x27fcf9,_0x57226c){return _0x27fcf9===_0x57226c;},'rBkOF':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','OmLGC':_0x530404(0xd2),'iDqVy':_0x530404(0x15c),'WGDJv':function(_0x22f2b4,_0x37c7ed,_0x2ea1de,_0x193482,_0xeaac88,_0xcc2e34){return _0x22f2b4(_0x37c7ed,_0x2ea1de,_0x193482,_0xeaac88,_0xcc2e34);},'EkcQC':function(_0x220742,_0x7bc815,_0x5dfdf1,_0x777a47,_0x341222,_0x57371a,_0x221892){return _0x220742(_0x7bc815,_0x5dfdf1,_0x777a47,_0x341222,_0x57371a,_0x221892);},'DGSZH':'grid-spawning-failed'};let _0x5b4384=![],_0x343aa,_0x1c4bd9,_0x221c04,_0x3b969d,_0x3e38a2,_0x5b209e,_0xa9e036,_0x93a2d4,_0x150f48,_0x3237ac,_0x594f5e,_0x54958f,_0x20ed2c=0x1,_0x2e3438=0xe;try{global_registry[_0x530404(0x140)]=_0x25b31f['BWXeM'](uuidv4),global_registry[_0x530404(0x178)]=![];!fs['existsSync'](_0x25b31f['IGFEJ'](getCredentialsPath))&&(_0x25b31f[_0x530404(0xa3)](_0x25b31f['qYgZN'],_0x25b31f[_0x530404(0xc1)])?(_0xf159d8['error'](_0x25b31f[_0x530404(0x1c9)]),_0x55a613[_0x530404(0x1c5)](0x1)):(console['error'](_0x25b31f[_0x530404(0x123)]),await _0x25b31f[_0x530404(0xc4)](sendInstrumentationEvent,_0xbb9e1b,_0x25b31f[_0x530404(0x152)],messageTypes[_0x530404(0xba)],_0x25b31f['obUNi'],null,_0xbb9e1b),process['exit'](0x1)));await _0x25b31f[_0x530404(0x120)](sendInstrumentationEvent,_0xbb9e1b,_0x25b31f[_0x530404(0x152)],messageTypes[_0x530404(0x1ae)],null,null,_0xbb9e1b);const _0x4a0db5=JSON[_0x530404(0x146)](fs[_0x530404(0x156)](_0x25b31f['hDSpv'](getCredentialsPath)));global_registry[_0x530404(0x19f)]=_0x4a0db5[_0x530404(0xc6)][_0x530404(0x196)],global_registry['bstackAccesskey']=_0x4a0db5[_0x530404(0xc6)][_0x530404(0x1b3)];const _0x21fe13=WS_ENDPOINT[_0x530404(0x165)](_0x25b31f[_0x530404(0xc0)],_0x4a0db5['Browserstack'][_0x530404(0x196)])[_0x530404(0x165)](_0x25b31f[_0x530404(0x166)],_0x4a0db5['Browserstack'][_0x530404(0x1b3)]),_0x3bf3f5={};_0x3bf3f5[_0x530404(0x160)]=ws,_0x3bf3f5[_0x530404(0x193)]=0x36ee80,_0x3237ac=new ReconnectingWebSocket(_0x21fe13,[],_0x3bf3f5),logger[_0x530404(0x192)](_0x25b31f[_0x530404(0x19a)]),webSocketUtils[_0x530404(0xb0)](_0x3237ac,_0xbb9e1b['user'],_0xbb9e1b['password']);let _0x4e6a79=DEFAULT_GRID_NAME;if(_0xbb9e1b['clusterName']||_0xbb9e1b['cloudProvider']||_0xbb9e1b[_0x530404(0xdc)]){if(_0x25b31f[_0x530404(0x171)](_0x25b31f[_0x530404(0x1a7)],_0x25b31f[_0x530404(0x1a7)])){!(_0xbb9e1b[_0x530404(0x18d)]&&_0xbb9e1b[_0x530404(0x144)]&&_0xbb9e1b[_0x530404(0xdc)])&&(_0x25b31f[_0x530404(0xa7)](_0x25b31f[_0x530404(0x117)],_0x25b31f[_0x530404(0x117)])?_0x2edb63=_0x1a0f8b[_0x59fc16['gridProfile']]:(_0x343aa=_0x25b31f[_0x530404(0xa9)],await _0x25b31f[_0x530404(0x145)](reportToGalactusAndSendToEDS,_0xbb9e1b,_0x3237ac,_0x343aa,messageTypes[_0x530404(0xba)],_0x25b31f[_0x530404(0x152)],_0x25b31f[_0x530404(0x141)],_0x25b31f['mGVDi']),logger[_0x530404(0xfe)](_0x343aa),process[_0x530404(0x1c5)](0x1)));![AWS,AZURE,GCP]['includes'](_0xbb9e1b[_0x530404(0x144)][_0x530404(0x128)]())&&(_0x25b31f[_0x530404(0xa3)](_0x25b31f[_0x530404(0x1b4)],_0x25b31f[_0x530404(0x104)])?(_0x343aa=_0x25b31f['zvRcd'],await _0x25b31f[_0x530404(0x145)](reportToGalactusAndSendToEDS,_0xbb9e1b,_0x3237ac,_0x343aa,messageTypes['ERROR'],_0x25b31f[_0x530404(0x152)],_0x25b31f[_0x530404(0xe7)],_0x25b31f['mGVDi']),logger[_0x530404(0xfe)](_0x343aa),process[_0x530404(0x1c5)](0x1)):_0x4b087a=_0x25b31f[_0x530404(0x102)]);if(_0xbb9e1b[_0x530404(0x150)]&&_0x25b31f[_0x530404(0x1a5)](_0xbb9e1b[_0x530404(0x150)][_0x530404(0x128)](),_0x25b31f['tpwNj'])){if(_0x25b31f[_0x530404(0x130)](_0x25b31f[_0x530404(0x1a6)],_0x25b31f['etqSK']))global_registry[_0x530404(0x178)]=!![];else{const _0x4b8515={};_0x4b8515[_0x530404(0x13d)]=_0x55f507[_0x530404(0x12c)],_0x4b8515['message']=_0x530404(0x172)+_0x1b4159+_0x530404(0x10c),_0x538d3b[_0x530404(0x134)](_0x5b8e98,_0x4b8515,_0x25b31f[_0x530404(0x14d)]),_0x4b302e[_0x530404(0x1c0)](_0x530404(0x172)+_0x3eaeae+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x3a161f=!![];}}_0x5b4384=!![],_0x221c04=_0xbb9e1b[_0x530404(0x18d)],_0x1c4bd9=_0xbb9e1b[_0x530404(0x144)][_0x530404(0x128)](),_0x3b969d=_0xbb9e1b[_0x530404(0xdc)];}else _0x17bf79=_0x1096f8['route53'],_0x59cb4e=_0x25b31f[_0x530404(0x194)];}if(_0xbb9e1b[_0x530404(0x121)]){if(_0x25b31f['XkXbY'](_0x25b31f['RAIAh'],_0x25b31f[_0x530404(0xab)]))_0x4e6a79=_0xbb9e1b[_0x530404(0x121)];else{const _0x3aef19=_0x25b31f[_0x530404(0xc7)][_0x530404(0x137)]('|');let _0x2bec44=0x0;while(!![]){switch(_0x3aef19[_0x2bec44++]){case'0':_0x5c517a[_0x530404(0xd7)]=_0x4ea1de[_0x530404(0xd7)];continue;case'1':_0x260531[_0x530404(0x18d)]=_0x5906b5;continue;case'2':const _0x2afdb2={};_0x2afdb2[_0x530404(0x13d)]=_0x598871['CLI_RUN_STARTED'],_0x2afdb2['message']='CLI\x20run\x20started',_0x21cf2b[_0x530404(0x134)](_0x477d54,_0x2afdb2);continue;case'3':_0x53aea[_0x530404(0x111)]=_0x4d338f;continue;case'4':const _0x4490ff={};_0x4490ff['type']=_0x489085[_0x530404(0x12c)],_0x4490ff[_0x530404(0xf3)]=_0x16dc7e,_0x1ac25a[_0x530404(0x134)](_0x3b46ec,_0x4490ff);continue;case'5':_0x520a5e=_0x530404(0xf0)+_0x45e51b+_0x530404(0x17c)+_0x422ff2+'\x27';continue;case'6':_0x4180c1[_0x530404(0x144)]=_0x43e1c8;continue;case'7':_0x3223d3[_0x530404(0x1c0)](_0x31a6e0);continue;case'8':_0x1eddc2[_0x530404(0x185)]=_0x218682[_0x530404(0x185)];continue;}break;}}}global_registry[_0x530404(0x121)]=_0x4e6a79;const _0x51e0cb={};_0x51e0cb[_0x530404(0x196)]=_0x4a0db5['Browserstack'][_0x530404(0x196)],_0x51e0cb[_0x530404(0x1b3)]=_0x4a0db5[_0x530404(0xc6)][_0x530404(0x1b3)];const _0x1ede5f={};_0x1ede5f[_0x530404(0x12e)]=_0x25b31f[_0x530404(0x103)],_0x1ede5f[_0x530404(0x15d)]=_0x51e0cb;const _0x17e0a7=_0x1ede5f,_0x4e3b9d=_0x530404(0x17f)+AG_API_URL+_0x530404(0xeb),_0x328c1e={};_0x328c1e[_0x530404(0x121)]=_0x4e6a79;const _0x51b951={'url':_0x4e3b9d,'qs':_0x328c1e,..._0x17e0a7},_0x5bfb0f=_0x51b951,_0x2df76b=await _0x25b31f[_0x530404(0x180)](promisifiedRequest,_0x5bfb0f);if(_0x25b31f[_0x530404(0x1a5)](_0x2df76b,null)||_0x25b31f['PrbSB'](_0x2df76b,undefined)){if(_0x25b31f['XkXbY'](_0x25b31f[_0x530404(0x184)],_0x25b31f[_0x530404(0x184)])){const _0x2cff94={};_0x2cff94[_0x530404(0x15a)]=_0x25b31f['BUTLH'],_0x2cff94[_0x530404(0x13d)]=_0x25b31f['PYmzp'];const _0xc64249={};_0xc64249[_0x530404(0x15a)]=_0x25b31f[_0x530404(0xec)],_0xc64249[_0x530404(0x13d)]=_0x25b31f['PYmzp'];const _0x2a714a={};_0x2a714a[_0x530404(0x15a)]=_0x25b31f[_0x530404(0x154)],_0x2a714a[_0x530404(0x13d)]=_0x25b31f[_0x530404(0xfd)];const _0x502534={};_0x502534['description']=_0x25b31f[_0x530404(0x105)],_0x502534[_0x530404(0x13d)]=_0x25b31f[_0x530404(0xfd)];const _0x166e3f={};_0x166e3f[_0x530404(0x15a)]=_0x25b31f['RhhPU'],_0x166e3f[_0x530404(0x13d)]=_0x25b31f[_0x530404(0xfd)];const _0x2d6e5e={};_0x2d6e5e[_0x530404(0x15a)]=_0x25b31f[_0x530404(0xb3)],_0x2d6e5e[_0x530404(0x13d)]=_0x25b31f[_0x530404(0xfd)];const _0x117937={};return _0x117937[_0x530404(0x1be)]=_0x2cff94,_0x117937[_0x530404(0x14e)]=_0xc64249,_0x117937['cluster-name']=_0x2a714a,_0x117937['cloud-provider']=_0x502534,_0x117937[_0x530404(0xdc)]=_0x166e3f,_0x117937[_0x530404(0x101)]=_0x2d6e5e,_0x313f3f[_0x530404(0xef)](_0x1ff821[_0x530404(0x1a9)])[_0x530404(0x13b)](_0xbecce6)['options'](_0x117937)[_0x530404(0x199)](_0x25b31f[_0x530404(0x143)])['argv'];}else _0x343aa=_0x25b31f[_0x530404(0x1c4)],await _0x25b31f['qQIKc'](reportToGalactusAndSendToEDS,_0xbb9e1b,_0x3237ac,_0x343aa,messageTypes[_0x530404(0xba)],_0x25b31f[_0x530404(0x152)],_0x25b31f[_0x530404(0x1ba)],_0x25b31f[_0x530404(0x114)]),logger[_0x530404(0xfe)](_0x343aa),process[_0x530404(0x1c5)](0x1);}_0x25b31f[_0x530404(0x1a5)](_0x2df76b[_0x530404(0x181)],0x191)&&(_0x25b31f[_0x530404(0xde)](_0x25b31f[_0x530404(0x12b)],_0x25b31f[_0x530404(0x12b)])?_0x15415c[_0x530404(0x144)]={}:(_0x343aa=_0x25b31f[_0x530404(0x1a3)],await _0x25b31f['qQIKc'](reportToGalactusAndSendToEDS,_0xbb9e1b,_0x3237ac,_0x343aa,messageTypes[_0x530404(0xba)],_0x25b31f[_0x530404(0x152)],_0x25b31f[_0x530404(0x142)],_0x25b31f[_0x530404(0x114)]),logger['error'](_0x343aa),process[_0x530404(0x1c5)](0x1)));_0x25b31f[_0x530404(0x130)](_0x2df76b['statusCode'],0xc8)&&(_0x25b31f[_0x530404(0x161)](_0x25b31f['QOgMm'],_0x25b31f[_0x530404(0x1bf)])?(_0x343aa=_0x530404(0x1a2)+JSON[_0x530404(0x12f)](_0x2df76b),await _0x25b31f[_0x530404(0x164)](reportToGalactusAndSendToEDS,_0xbb9e1b,_0x3237ac,_0x343aa,messageTypes[_0x530404(0xba)],_0x25b31f[_0x530404(0x152)],_0x25b31f[_0x530404(0xc3)],_0x25b31f[_0x530404(0x114)]),logger['error'](_0x343aa),process[_0x530404(0x1c5)](0x1)):_0x16f0d4=_0x1c50a4[_0x530404(0x121)]);const _0x37e911=JSON[_0x530404(0x146)](_0x2df76b[_0x530404(0x189)]),_0x38bf33={};_0x38bf33['type']=WS_EVENTS[_0x530404(0x16e)],_0x38bf33[_0x530404(0xf3)]='CLI\x20run\x20started',webSocketUtils[_0x530404(0x134)](_0x3237ac,_0x38bf33);const _0x376ad6={};_0x376ad6['type']=WS_EVENTS[_0x530404(0x12c)],_0x376ad6[_0x530404(0xf3)]=_0x25b31f[_0x530404(0xfa)],webSocketUtils[_0x530404(0x134)](_0x3237ac,_0x376ad6);if(_0x37e911[_0x530404(0xc8)]){if(_0x25b31f[_0x530404(0x16f)](_0x25b31f[_0x530404(0x135)],_0x25b31f[_0x530404(0xf2)]))throw _0x5487c1;else _0x343aa=_0x25b31f[_0x530404(0x118)],await _0x25b31f['dDetl'](reportToGalactusAndSendToEDS,_0xbb9e1b,_0x3237ac,_0x343aa,messageTypes[_0x530404(0xba)],_0x25b31f[_0x530404(0x152)],_0x25b31f['KYlPk'],_0x25b31f[_0x530404(0x114)]),logger[_0x530404(0xfe)](_0x343aa),process[_0x530404(0x1c5)](0x1);}const _0x465872=_0x37e911[_0x530404(0x15f)];let _0x4e8adc=_0x465872[_0x37e911['defaultGridProfile']];_0xbb9e1b[_0x530404(0xd5)]&&(_0x25b31f['rAtcY'](_0x25b31f['hEdHi'],_0x25b31f['hEdHi'])?_0x2c058f[_0x530404(0x178)]=!![]:_0x4e8adc=_0x465872[_0xbb9e1b[_0x530404(0xd5)]]);if(_0x25b31f[_0x530404(0x161)](_0x5b4384,![])){if(_0x25b31f[_0x530404(0xa7)](_0x25b31f['QRXzU'],_0x25b31f[_0x530404(0x198)]))_0x47b62a['info'](_0x530404(0x1b5)+_0x437368[_0x530404(0x12f)](_0x4a5692)+'\x20');else{_0x25b31f['EwBot'](_0x4e8adc,undefined)&&(_0x25b31f['lUsQA'](_0x25b31f[_0x530404(0xe1)],_0x25b31f[_0x530404(0xe1)])?_0x1a84b4[_0x530404(0x1c0)]('Found\x20VPC:\x20'+_0x52af06+'\x20'):(_0x343aa=_0x25b31f[_0x530404(0x1b0)],await _0x25b31f['dDetl'](reportToGalactusAndSendToEDS,_0xbb9e1b,_0x3237ac,_0x343aa,messageTypes['ERROR'],_0x25b31f[_0x530404(0x152)],_0x25b31f[_0x530404(0x17b)],_0x25b31f['mGVDi']),logger[_0x530404(0xfe)](_0x343aa),process[_0x530404(0x1c5)](0x1)));global_registry['gridProfileId']=_0x4e8adc['id'];if(_0x25b31f[_0x530404(0xb8)](_0x1c4bd9,AZURE)||_0x25b31f['GvWWP'](_0x4e8adc?.['cloudProvider'],AZURE)){if(_0x25b31f[_0x530404(0x157)](_0x25b31f[_0x530404(0x1b8)],_0x25b31f[_0x530404(0x107)])){const _0x4923d5={};_0x4923d5['type']=_0x213c47[_0x530404(0x12c)],_0x4923d5[_0x530404(0xf3)]=_0x131ea7,_0x5c2b74[_0x530404(0x134)](_0x396128,_0x4923d5,_0x25b31f[_0x530404(0x114)],!![]);}else console[_0x530404(0xfe)](_0x25b31f[_0x530404(0x1c9)]),process['exit'](0x1);}_0x343aa=_0x530404(0x110)+_0x4e6a79+'\x20using\x20\x27'+_0x4e8adc['name']+'\x27\x20grid\x20profile',logger[_0x530404(0x1c0)](_0x343aa);const _0x13cff9={};_0x13cff9[_0x530404(0x13d)]=WS_EVENTS['LOG'],_0x13cff9[_0x530404(0xf3)]=_0x343aa,webSocketUtils[_0x530404(0x134)](_0x3237ac,_0x13cff9),_0x1c4bd9=_0x4e8adc[_0x530404(0x144)],_0x221c04=_0x4e8adc['clusterName'],_0x3b969d=_0x4e8adc['region'],_0x3e38a2=_0x4e8adc[_0x530404(0x190)],_0x5b209e=_0x4e8adc[_0x530404(0xd6)],_0xa9e036=_0x4e8adc['vpc'],securityGroups=_0x4e8adc[_0x530404(0xcb)],subnets=_0x4e8adc[_0x530404(0x1a4)],_0x93a2d4=_0x4e8adc[_0x530404(0x18a)],_0x20ed2c=_0x4e8adc[_0x530404(0x195)],_0x2e3438=_0x4e8adc[_0x530404(0x16c)],_0x594f5e=_0x37e911[_0x530404(0x185)],_0x54958f=_0x37e911[_0x530404(0xd7)],_0x25b31f[_0x530404(0xde)](_0x4e8adc[_0x530404(0x150)],undefined)&&_0x4e8adc['privateGrid']&&(_0x25b31f['DDpaZ'](_0x25b31f[_0x530404(0x1c1)],_0x25b31f[_0x530404(0xff)])?global_registry[_0x530404(0x178)]=!![]:_0x21fd78[_0x530404(0x178)]=!![]),_0x25b31f[_0x530404(0xaa)](updateGlobalRegistryWithConfig,_0x1c4bd9,_0x221c04,_0x3b969d,_0x3e38a2,_0x5b209e,_0x93a2d4,_0x4e8adc,_0x594f5e,_0x54958f,_0x20ed2c,_0x2e3438);}}else{const _0x4c73b6=_0x25b31f['EfDlE'][_0x530404(0x137)]('|');let _0x37854b=0x0;while(!![]){switch(_0x4c73b6[_0x37854b++]){case'0':global_registry[_0x530404(0x185)]=_0x37e911[_0x530404(0x185)];continue;case'1':global_registry['clusterRegion']=_0x3b969d;continue;case'2':global_registry[_0x530404(0xd7)]=_0x37e911[_0x530404(0xd7)];continue;case'3':const _0x55e576={};_0x55e576[_0x530404(0x13d)]=WS_EVENTS[_0x530404(0x16e)],_0x55e576[_0x530404(0xf3)]=_0x530404(0x168),webSocketUtils['sendEventToBackend'](_0x3237ac,_0x55e576);continue;case'4':global_registry['clusterName']=_0x221c04;continue;case'5':global_registry['cloudProvider']=_0x1c4bd9;continue;case'6':const _0x2b5f5c={};_0x2b5f5c[_0x530404(0x13d)]=WS_EVENTS[_0x530404(0x12c)],_0x2b5f5c[_0x530404(0xf3)]=_0x343aa,webSocketUtils[_0x530404(0x134)](_0x3237ac,_0x2b5f5c);continue;case'7':_0x343aa=_0x530404(0xf0)+_0x4e6a79+_0x530404(0x17c)+_0x221c04+'\x27';continue;case'8':logger[_0x530404(0x1c0)](_0x343aa);continue;}break;}}const _0x3cb5a1=_0x25b31f[_0x530404(0xca)](getCloudProviderObject,_0x1c4bd9,_0x221c04,_0x4e6a79,_0x3237ac,webSocketUtils),_0x3c7b9b=_0x4a0db5[_0x530404(0x144)]||{};if(_0x25b31f['GvWWP'](_0x3c7b9b[_0x1c4bd9],undefined)){logger[_0x530404(0x1c0)](_0x25b31f[_0x530404(0xe3)]);_0x25b31f[_0x530404(0x153)](_0x4a0db5[_0x530404(0x144)],undefined)&&(_0x4a0db5[_0x530404(0x144)]={});_0x4a0db5[_0x530404(0x144)][_0x1c4bd9]={};const _0x3bb2ea=await _0x25b31f['jcJcQ'](inputCloudProviderKeys,_0x1c4bd9,_0x4a0db5,_0x3cb5a1);fs[_0x530404(0xda)](_0x25b31f[_0x530404(0x12a)](getCredentialsPath),JSON[_0x530404(0x12f)](_0x3bb2ea)),logger['debug'](_0x25b31f[_0x530404(0x175)]);}else{_0x343aa=_0x25b31f[_0x530404(0x11e)];const _0x313058={};_0x313058[_0x530404(0x13d)]=WS_EVENTS[_0x530404(0x12c)],_0x313058['message']=_0x343aa,webSocketUtils['sendEventToBackend'](_0x3237ac,_0x313058),logger['info'](_0x343aa),await _0x3cb5a1[_0x530404(0xf1)](_0x3c7b9b);}_0x3cb5a1['configureIfNotConfigured']();let _0x4b59f8;if(_0x25b31f[_0x530404(0x1b2)](_0x5b4384,![])){_0x343aa=_0x530404(0x112)+_0x3b969d+').';const _0x164e19={};_0x164e19['type']=WS_EVENTS['LOG'],_0x164e19['message']=_0x343aa,webSocketUtils[_0x530404(0x134)](_0x3237ac,_0x164e19),logger[_0x530404(0x1c0)](_0x343aa);const _0x3695db=await _0x3cb5a1[_0x530404(0x11a)]();if(_0x3695db){const _0x5c2f39={};_0x5c2f39[_0x530404(0x13d)]=WS_EVENTS['LOG'],_0x5c2f39[_0x530404(0xf3)]='Cluster\x20'+_0x221c04+_0x530404(0x10c),webSocketUtils[_0x530404(0x134)](_0x3237ac,_0x5c2f39,_0x25b31f['NKFUi']),logger[_0x530404(0x1c0)]('Cluster\x20'+_0x221c04+_0x530404(0x10c)),_0x5b4384=!![];}else{const _0x105831={};_0x105831[_0x530404(0x13d)]=WS_EVENTS[_0x530404(0x12c)],_0x105831[_0x530404(0xf3)]=_0x25b31f['kErmz'],webSocketUtils['sendEventToBackend'](_0x3237ac,_0x105831),logger[_0x530404(0x1c0)](_0x25b31f['kErmz']);const _0x2497cd=_0x25b31f[_0x530404(0x177)](_0xa9e036,null)&&_0x25b31f['DDpaZ'](_0xa9e036,undefined),_0x4ed2=_0x25b31f[_0x530404(0x177)](subnets,null)&&_0x25b31f[_0x530404(0xa3)](subnets,undefined)&&_0x25b31f[_0x530404(0x127)](subnets[_0x530404(0x1c6)],0x0);if(_0x2497cd){_0x25b31f[_0x530404(0xd4)](_0x4ed2,![])&&(_0x343aa=_0x25b31f['AQHbK'],await _0x25b31f[_0x530404(0x145)](reportToGalactusAndSendToEDS,_0xbb9e1b,_0x3237ac,_0x343aa,messageTypes[_0x530404(0xba)],_0x25b31f['wPvqO'],_0x25b31f[_0x530404(0x1a1)],_0x25b31f[_0x530404(0x114)]),logger['error'](_0x343aa),process[_0x530404(0x1c5)](0x1));const _0x47f7ea=await _0x3cb5a1[_0x530404(0xce)](_0xa9e036);_0x25b31f[_0x530404(0x122)](_0x47f7ea,![])?(_0x343aa=_0x25b31f[_0x530404(0x1ac)],await _0x25b31f[_0x530404(0x145)](reportToGalactusAndSendToEDS,_0xbb9e1b,_0x3237ac,_0x343aa,messageTypes[_0x530404(0xba)],_0x25b31f[_0x530404(0x152)],_0x25b31f[_0x530404(0x1aa)],_0x25b31f[_0x530404(0x114)]),logger[_0x530404(0xfe)](_0x343aa),process[_0x530404(0x1c5)](0x1)):logger[_0x530404(0x1c0)](_0x530404(0xbb)+_0xa9e036+'\x20');const _0x3217a1=await _0x3cb5a1['isSubnetsValid'](subnets,_0xa9e036);_0x25b31f[_0x530404(0x1bb)](_0x3217a1[0x0],![])?(_0x343aa=_0x530404(0xf5)+_0x3217a1[0x1]+_0x530404(0xee)+_0xa9e036+_0x530404(0x13f),await _0x25b31f[_0x530404(0x145)](reportToGalactusAndSendToEDS,_0xbb9e1b,_0x3237ac,_0x343aa,messageTypes[_0x530404(0xba)],_0x25b31f[_0x530404(0x152)],_0x25b31f[_0x530404(0x18c)],_0x25b31f[_0x530404(0x114)]),logger['error'](_0x343aa),process[_0x530404(0x1c5)](0x1)):logger['info'](_0x530404(0x1b5)+JSON[_0x530404(0x12f)](subnets)+'\x20'),await _0x3cb5a1[_0x530404(0x126)](_0xa9e036,subnets);}else{const _0x17837a=_0x25b31f[_0x530404(0x14f)][_0x530404(0x137)]('|');let _0xe46f5=0x0;while(!![]){switch(_0x17837a[_0xe46f5++]){case'0':const _0x12836b={};_0x12836b[_0x530404(0x13d)]=WS_EVENTS[_0x530404(0x12c)],_0x12836b['message']=_0x530404(0xa5),webSocketUtils['sendEventToBackend'](_0x3237ac,_0x12836b);continue;case'1':await _0x3cb5a1[_0x530404(0x126)]();continue;case'2':logger[_0x530404(0x1c0)](_0x25b31f['Izzld']);continue;case'3':logger[_0x530404(0x1c0)](_0x25b31f[_0x530404(0x159)]);continue;case'4':const _0x18f893={};_0x18f893[_0x530404(0x13d)]=WS_EVENTS['LOG'],_0x18f893[_0x530404(0xf3)]=_0x25b31f[_0x530404(0x159)],webSocketUtils['sendEventToBackend'](_0x3237ac,_0x18f893);continue;}break;}}}}_0x5b4384&&_0x25b31f['XFxYL'](_0x1c4bd9,AZURE)&&(global_registry[_0x530404(0x149)]=_0x37e911[_0x530404(0x17e)],await _0x3cb5a1[_0x530404(0x116)](),await _0x3cb5a1[_0x530404(0x11d)]());const [_0x54b2fd,_0x365d07,_0x165ad8,_0x1179e8,_0x2141f4,_0x25e2b9]=await _0x25b31f[_0x530404(0x180)](createK8sClient,_0x3cb5a1);_0x25b31f['fQthd'](_0x5b4384,![])&&_0x25b31f['ljDCi'](_0x1c4bd9,AWS)&&(_0x4b59f8=await _0x3cb5a1[_0x530404(0xa6)](_0x54b2fd,_0xbb9e1b));try{_0x150f48=_0x25b31f['drGAL'](kebabCase,_0x4e6a79),logger[_0x530404(0x1c0)](_0x25b31f[_0x530404(0x1b7)]);const _0x2b00f3={};_0x2b00f3[_0x530404(0x13d)]=WS_EVENTS[_0x530404(0x12c)],_0x2b00f3[_0x530404(0xf3)]=_0x25b31f[_0x530404(0x1b7)],webSocketUtils[_0x530404(0x134)](_0x3237ac,_0x2b00f3);if(_0x25b31f['XkXbY'](_0x150f48,_0x25b31f[_0x530404(0xdf)])){const _0x1eef5c={};_0x1eef5c[_0x530404(0x1b6)]=_0x25b31f['zcISb'],_0x1eef5c[_0x530404(0xb6)]=_0x25b31f[_0x530404(0x10d)];const _0x384847={};_0x384847[_0x530404(0xad)]=_0x150f48,_0x384847[_0x530404(0x15e)]=_0x1eef5c;const _0x3fda89={};_0x3fda89[_0x530404(0x163)]=_0x384847;let _0x3b1a51=_0x3fda89;await _0x54b2fd[_0x530404(0x106)](_0x3b1a51),logger[_0x530404(0x1c0)](_0x25b31f[_0x530404(0x162)]);}const _0x3760c7={};_0x3760c7[_0x530404(0x13d)]=WS_EVENTS['LOG'],_0x3760c7[_0x530404(0xf3)]=_0x25b31f[_0x530404(0xea)],webSocketUtils[_0x530404(0x134)](_0x3237ac,_0x3760c7);const _0x44c9fb={};_0x44c9fb[_0x530404(0x13d)]=WS_EVENTS['LOG'],_0x44c9fb[_0x530404(0xf3)]=_0x25b31f['gCftz'],webSocketUtils['sendEventToBackend'](_0x3237ac,_0x44c9fb),logger['info'](_0x25b31f['XvdJy']);let _0x370ae9={};_0x25b31f[_0x530404(0x157)](_0x1c4bd9,AZURE)&&(_0x370ae9={'clientId':await _0x3cb5a1[_0x530404(0xe6)](_0x530404(0x16d)+_0x221c04)});await _0x25b31f[_0x530404(0x115)](addGridComponents,_0x54b2fd,_0x365d07,_0x165ad8,_0x1179e8,_0x150f48,_0x221c04,_0x4b59f8,_0x2141f4,_0x25e2b9,_0x370ae9),_0x343aa=_0x25b31f[_0x530404(0xe8)],logger['info'](_0x343aa);const _0x16ca45={};_0x16ca45[_0x530404(0x13d)]=WS_EVENTS[_0x530404(0x12c)],_0x16ca45['message']=_0x343aa,webSocketUtils['sendEventToBackend'](_0x3237ac,_0x16ca45),_0x343aa=_0x25b31f[_0x530404(0xd8)],logger[_0x530404(0x1c0)](_0x343aa);const _0x8c1d2d={};_0x8c1d2d[_0x530404(0x13d)]=WS_EVENTS[_0x530404(0x12c)],_0x8c1d2d[_0x530404(0xf3)]=_0x343aa,webSocketUtils[_0x530404(0x134)](_0x3237ac,_0x8c1d2d),await webSocketUtils[_0x530404(0x158)](0xea60);const _0x23e744=await _0x25b31f['fyOFg'](getNamespaceUID,_0x54b2fd,_0x150f48);let _0x5593ac=global_registry[_0x530404(0x178)]?_0x25b31f['IgIhF']:_0x25b31f['LlQyS'],_0x5790ce=await _0x54b2fd['readNamespacedService'](_0x5593ac,_0x25b31f[_0x530404(0x1c3)]),_0x367c64=_0x3cb5a1[_0x530404(0xb4)](_0x5790ce)+'/'+_0x150f48,_0x5263f3=_0x25b31f[_0x530404(0x102)];try{const _0xe6dc93={'url':'https://'+AG_API_URL+_0x530404(0x186)+_0x23e744,..._0x17e0a7},_0x2a7a86=_0xe6dc93,_0x458899=await _0x25b31f[_0x530404(0xb9)](promisifiedRequest,_0x2a7a86);(_0x25b31f['ljDCi'](_0x458899,null)||_0x25b31f[_0x530404(0xf7)](_0x458899,undefined))&&(_0x343aa=_0x25b31f[_0x530404(0x19d)],await _0x25b31f[_0x530404(0xf6)](reportToGalactusAndSendToEDS,_0xbb9e1b,_0x3237ac,_0x343aa,messageTypes[_0x530404(0xba)],_0x25b31f[_0x530404(0x152)],_0x25b31f[_0x530404(0x119)],_0x25b31f[_0x530404(0x114)]),logger['error'](_0x343aa),process[_0x530404(0x1c5)](0x1));_0x25b31f[_0x530404(0x1c7)](_0x458899[_0x530404(0x181)],0x191)&&(_0x343aa=_0x25b31f[_0x530404(0xcf)],await _0x25b31f[_0x530404(0xf6)](reportToGalactusAndSendToEDS,_0xbb9e1b,_0x3237ac,_0x343aa,messageTypes[_0x530404(0xba)],_0x25b31f['wPvqO'],_0x25b31f[_0x530404(0x19b)],_0x25b31f['mGVDi']),logger['error'](_0x343aa),process[_0x530404(0x1c5)](0x1));_0x25b31f['hUZlk'](_0x458899[_0x530404(0x181)],0xc8)&&(_0x343aa='Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x530404(0x12f)](_0x458899),await _0x25b31f[_0x530404(0xf6)](reportToGalactusAndSendToEDS,_0xbb9e1b,_0x3237ac,_0x343aa,messageTypes[_0x530404(0xba)],_0x25b31f[_0x530404(0x152)],_0x25b31f['iDqVy'],_0x25b31f[_0x530404(0x114)]),logger[_0x530404(0xfe)](_0x343aa),process[_0x530404(0x1c5)](0x1));const _0xa3a1b2=JSON[_0x530404(0x146)](_0x458899[_0x530404(0x189)]);_0xa3a1b2[_0x530404(0x18f)]&&(_0x367c64=_0xa3a1b2[_0x530404(0x18f)],_0x5263f3=_0x25b31f[_0x530404(0x194)]),global_registry[_0x530404(0x178)]&&(_0x5263f3=_0x25b31f['BdoLU']);}catch(_0x41f7ab){}_0x343aa=_0x530404(0x17d)+_0x367c64+'\x20',logger['info'](_0x343aa);const _0x5c9e4f={};_0x5c9e4f[_0x530404(0x13d)]=WS_EVENTS['LOG'],_0x5c9e4f[_0x530404(0xf3)]=_0x343aa,webSocketUtils['sendEventToBackend'](_0x3237ac,_0x5c9e4f),_0x343aa=_0x530404(0x14c)+_0x5263f3+'://'+_0x367c64+_0x530404(0xc2),logger[_0x530404(0x1c0)](_0x343aa);const _0x488e30={};_0x488e30['type']=WS_EVENTS['LOG'],_0x488e30[_0x530404(0xf3)]=_0x343aa,webSocketUtils['sendEventToBackend'](_0x3237ac,_0x488e30);const _0x405348={};_0x405348[_0x530404(0x13d)]=WS_EVENTS[_0x530404(0x155)],_0x405348[_0x530404(0xf3)]=_0x530404(0x129)+_0x367c64,webSocketUtils[_0x530404(0x134)](_0x3237ac,_0x405348),await webSocketUtils[_0x530404(0x158)](0x7d0);}catch(_0x4cca02){if(_0x25b31f[_0x530404(0xc5)](_0x5b4384,![]))try{logger['info'](_0x530404(0x167)),await _0x25b31f[_0x530404(0xd3)](removeGridComponents,_0x54b2fd,_0x365d07,_0x165ad8,_0x1179e8,_0x150f48),await _0x3cb5a1[_0x530404(0x10b)](_0x54b2fd,global_registry[_0x530404(0x111)]);}catch(_0x1d9a4c){throw _0x1d9a4c;}throw _0x4cca02;}}catch(_0x3a4f47){const _0x1a9e3d=_0x530404(0x14a)+_0x3a4f47+'\x20\x0a'+JSON[_0x530404(0x12f)](_0x3a4f47)+'\x20';if(_0x3237ac){const _0x1aa862={};_0x1aa862[_0x530404(0x13d)]=WS_EVENTS['LOG'],_0x1aa862[_0x530404(0xf3)]=_0x1a9e3d,webSocketUtils['sendEventToBackend'](_0x3237ac,_0x1aa862,_0x25b31f['mGVDi'],!![]);}await webSocketUtils[_0x530404(0x158)](0x7d0);const _0x10de72={};_0x10de72[_0x530404(0xfe)]=_0x1a9e3d,await _0x25b31f[_0x530404(0xa8)](sendInstrumentationEvent,_0xbb9e1b,_0x25b31f[_0x530404(0x152)],messageTypes[_0x530404(0xba)],_0x25b31f['DGSZH'],_0x10de72,_0xbb9e1b),logger[_0x530404(0xfe)](_0x1a9e3d);}process[_0x530404(0x1c5)](0x0);};
@@ -1 +1 @@
1
- const a10_0xcb553c=a10_0x1f3d;(function(_0x27df8d,_0x5cc078){const _0x362d59=a10_0x1f3d,_0x572568=_0x27df8d();while(!![]){try{const _0x24f1fa=parseInt(_0x362d59(0x7d))/0x1+-parseInt(_0x362d59(0x75))/0x2+-parseInt(_0x362d59(0x73))/0x3+parseInt(_0x362d59(0x79))/0x4*(-parseInt(_0x362d59(0x78))/0x5)+parseInt(_0x362d59(0x6a))/0x6+parseInt(_0x362d59(0x7a))/0x7*(-parseInt(_0x362d59(0x7c))/0x8)+parseInt(_0x362d59(0x70))/0x9;if(_0x24f1fa===_0x5cc078)break;else _0x572568['push'](_0x572568['shift']());}catch(_0x591740){_0x572568['push'](_0x572568['shift']());}}}(a10_0x58b8,0x9545f));function a10_0x58b8(){const _0x4769c2=['help','recommendCommands','delete_commands','NMAFv','21933567UMtKzG','strict','command','2370714GaIfkT','builder','549792pGUfgL','demandCommand','HOmeC','205FtDkGh','62796ISRutp','161wvbcUB','delete','318376iusPIF','245168elDVRm','desc','3319896HgUGJv','usage'];a10_0x58b8=function(){return _0x4769c2;};return a10_0x58b8();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a10_0x1f3d(_0x5aba8c,_0x38d140){const _0x58b81d=a10_0x58b8();return a10_0x1f3d=function(_0x1f3d34,_0x57817c){_0x1f3d34=_0x1f3d34-0x69;let _0x38b8ad=_0x58b81d[_0x1f3d34];return _0x38b8ad;},a10_0x1f3d(_0x5aba8c,_0x38d140);}exports[a10_0xcb553c(0x72)]=a10_0xcb553c(0x7b),exports[a10_0xcb553c(0x69)]='List\x20Grid\x20resources.',exports[a10_0xcb553c(0x74)]=function(_0xa53a97){const _0x176c17=a10_0xcb553c,_0x5379f3={};_0x5379f3['NMAFv']=_0x176c17(0x6e),_0x5379f3[_0x176c17(0x77)]=_0x176c17(0x6c);const _0x48fdf6=_0x5379f3;return _0xa53a97[_0x176c17(0x6b)](HELP_HEADER_MESSAGE[_0x176c17(0x7b)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x48fdf6[_0x176c17(0x6f)])[_0x176c17(0x76)]()[_0x176c17(0x6d)]()[_0x176c17(0x71)]()[_0x176c17(0x6c)](_0x48fdf6['HOmeC']);},exports['handler']=function(_0x3e4e71){};
1
+ const a10_0x6074e4=a10_0x4bce;(function(_0x56f605,_0x314863){const _0x2c949d=a10_0x4bce,_0x181f8c=_0x56f605();while(!![]){try{const _0x2663ca=parseInt(_0x2c949d(0x1c4))/0x1+parseInt(_0x2c949d(0x1ce))/0x2+-parseInt(_0x2c949d(0x1c8))/0x3*(parseInt(_0x2c949d(0x1d7))/0x4)+parseInt(_0x2c949d(0x1d1))/0x5+parseInt(_0x2c949d(0x1da))/0x6*(parseInt(_0x2c949d(0x1c7))/0x7)+parseInt(_0x2c949d(0x1c9))/0x8+-parseInt(_0x2c949d(0x1d3))/0x9*(parseInt(_0x2c949d(0x1d9))/0xa);if(_0x2663ca===_0x314863)break;else _0x181f8c['push'](_0x181f8c['shift']());}catch(_0x45d2d1){_0x181f8c['push'](_0x181f8c['shift']());}}}(a10_0x560a,0x70fff));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a10_0x4bce(_0x54b030,_0x25db2e){const _0x560a54=a10_0x560a();return a10_0x4bce=function(_0x4bcef1,_0x12f21b){_0x4bcef1=_0x4bcef1-0x1c4;let _0xf43574=_0x560a54[_0x4bcef1];return _0xf43574;},a10_0x4bce(_0x54b030,_0x25db2e);}function a10_0x560a(){const _0x306af3=['31149HjNuql','2487824HLtLhh','oDCjo','recommendCommands','demandCommand','strict','214200RsRIfu','List\x20Grid\x20resources.','epilogue','3431745jWbnKv','commandDir','2061ruhkYG','help','command','NiOdd','32XNYsjM','delete_commands','55030maQKDJ','18bTJNzO','delete','builder','648772FdiCeA','handler','usage','123431KBmNEY'];a10_0x560a=function(){return _0x306af3;};return a10_0x560a();}exports[a10_0x6074e4(0x1d5)]=a10_0x6074e4(0x1db),exports['desc']=a10_0x6074e4(0x1cf),exports[a10_0x6074e4(0x1dc)]=function(_0x4c3d9b){const _0x185ef0=a10_0x6074e4,_0x46f377={};_0x46f377[_0x185ef0(0x1ca)]=_0x185ef0(0x1d8),_0x46f377['NiOdd']='help';const _0x21a252=_0x46f377;return _0x4c3d9b[_0x185ef0(0x1c6)](HELP_HEADER_MESSAGE['delete'])[_0x185ef0(0x1d0)](HELP_FOOTER_MESSAGE)[_0x185ef0(0x1d2)](_0x21a252[_0x185ef0(0x1ca)])[_0x185ef0(0x1cc)]()[_0x185ef0(0x1cb)]()[_0x185ef0(0x1cd)]()[_0x185ef0(0x1d4)](_0x21a252[_0x185ef0(0x1d6)]);},exports[a10_0x6074e4(0x1c5)]=function(_0x1ef388){};
@@ -1 +1 @@
1
- const a11_0x5337b9=a11_0x3950;(function(_0x432f27,_0x334d4f){const _0x8d27b3=a11_0x3950,_0x30dc53=_0x432f27();while(!![]){try{const _0x430991=-parseInt(_0x8d27b3(0x13c))/0x1+parseInt(_0x8d27b3(0xe0))/0x2+parseInt(_0x8d27b3(0xf9))/0x3+parseInt(_0x8d27b3(0xc0))/0x4*(parseInt(_0x8d27b3(0xe3))/0x5)+parseInt(_0x8d27b3(0xf7))/0x6*(-parseInt(_0x8d27b3(0x11b))/0x7)+-parseInt(_0x8d27b3(0x130))/0x8*(parseInt(_0x8d27b3(0x117))/0x9)+parseInt(_0x8d27b3(0x11d))/0xa;if(_0x430991===_0x334d4f)break;else _0x30dc53['push'](_0x30dc53['shift']());}catch(_0x1aebef){_0x30dc53['push'](_0x30dc53['shift']());}}}(a11_0xceac,0x222b9));function a11_0x3950(_0x4f9341,_0x37b56f){const _0xceacdf=a11_0xceac();return a11_0x3950=function(_0x395091,_0xb1c661){_0x395091=_0x395091-0xb7;let _0x795701=_0xceacdf[_0x395091];return _0x795701;},a11_0x3950(_0x4f9341,_0x37b56f);}const fs=require('fs'),util=require('util'),request=require('request'),{v4:uuidv4}=require(a11_0x5337b9(0x129)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x5337b9(0x109)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x5337b9(0x114)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x5337b9(0x135)),{createK8sClient}=require(a11_0x5337b9(0x144)),{kebabCase,getCredentialsPath,getGridDetails}=require(a11_0x5337b9(0x138)),promisifiedRequest=util[a11_0x5337b9(0xda)](request);function a11_0xceac(){const _0x12a995=['uVFgR','parse','navlO','VcSjP','KytRh','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Delete\x20an\x20Automation\x20grid.','IqCRB','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','clusterId','xxHwh','deleteCluster','body','mYpub','15558XkfMtJ','iKYSx','663633LXEqjK','debug','jwLGx','VnuHW','gDWDB','hpoCz','RVPYv','rXOWz','clusterRegion','bmVfy','init-not-called','moYdn','Browserstack','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','stringify','sVuje','../../config/constants','vtnCj','oHqbn','toLowerCase','jfGee','UtzPI','info','Pass\x20the\x20ID\x20of\x20the\x20Grid','\x22\x20with\x20ID\x20','options','dXzgQ','../../utils/gridComponents','usage','existsSync','9dOlrsY','argv','message','method','483NVrdOn','UacEt','2128170dbqZGX','password','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','cpZHi','onlyGridInCluster','nrBko','type','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','auth','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','invalid-input','CPEWn','uuid','UmqgI','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','statusCode','MfXjN','gKMWO','delete','1684888Ddnqfl','stack','Failed\x20to\x20delete\x20resources!\x20Error:\x20','isBrowserstackCluster','ZISdk','../../utils/userInput','/packages/cli/grid/','DELETE','../../utils/utilityMethods','error','handler','JNIGh','162864LIDxRX','lZvrv','string','wnsNP','sXKdg','grid','XKCRI','help','../../utils/createk8sClient','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','invalid-grid-id','XCHtA','xfphm','fGhMf','cloudProvider','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','UMOZf','writeFileSync','clusterName','JKUfo','rrprj','exit','7988Vobgbp','ZDRcl','warn','\x22\x20and\x20ID\x20','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','asmiH','dMyKa','ERROR','Cluster:\x20','epilogue','INFO','wviCa','unauthorised','description','delete-grid-called','region','ZAISq','EciXY','Succesfully\x20deleted\x20the\x20grid','https://','clusterSpawnedVia','server-error','configureIfNotConfigured','PiLDL','hffAI','readFileSync','promisify','RLUjj','jlYAQ','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','requestId','FNvOF','89292kOMLfF','fetchLocalCreds','wRtzg','535mijAjg','username','CUAAF','bLeQF','name','gridId'];a11_0xceac=function(){return _0x12a995;};return a11_0xceac();}exports['command']=a11_0x5337b9(0x141),exports['desc']=a11_0x5337b9(0xef),exports['builder']=function(_0x13e394){const _0x34fcc6=a11_0x5337b9,_0xbaedc7={};_0xbaedc7[_0x34fcc6(0x128)]=_0x34fcc6(0x110),_0xbaedc7[_0x34fcc6(0xe5)]=_0x34fcc6(0x13e),_0xbaedc7['RLUjj']=_0x34fcc6(0x143);const _0x360078=_0xbaedc7,_0x533424={};_0x533424[_0x34fcc6(0xcd)]=_0x360078[_0x34fcc6(0x128)],_0x533424[_0x34fcc6(0x123)]=_0x360078[_0x34fcc6(0xe5)];const _0x32a2f4={};return _0x32a2f4['grid-id']=_0x533424,_0x13e394[_0x34fcc6(0x115)](HELP_HEADER_MESSAGE[_0x34fcc6(0x12f)])[_0x34fcc6(0xc9)](HELP_FOOTER_MESSAGE)[_0x34fcc6(0x112)](_0x32a2f4)[_0x34fcc6(0x143)](_0x360078[_0x34fcc6(0xdb)])['argv'];},exports[a11_0x5337b9(0x13a)]=async function(_0x42912b){const _0x82b16a=a11_0x5337b9,_0x3e3c23={'ZISdk':_0x82b16a(0x12b),'KytRh':_0x82b16a(0x110),'dXzgQ':_0x82b16a(0x13e),'QYvxD':'help','XCHtA':function(_0x19f1bc){return _0x19f1bc();},'navlO':function(_0x3d9073){return _0x3d9073();},'huitR':function(_0x3c4d6c,_0x3a3c7d){return _0x3c4d6c!==_0x3a3c7d;},'wviCa':_0x82b16a(0x12a),'sVuje':_0x82b16a(0xb9),'asmiH':function(_0x20129f,_0x2dc9f7,_0x269995,_0x227927,_0x5784d2,_0x834b25,_0x36f2b6){return _0x20129f(_0x2dc9f7,_0x269995,_0x227927,_0x5784d2,_0x834b25,_0x36f2b6);},'UacEt':_0x82b16a(0xce),'ZDRcl':_0x82b16a(0x103),'bmVfy':function(_0x5490e3,_0x3e4d42,_0xd094b7,_0x16280f,_0x579d4c,_0x26747a,_0x1a1313){return _0x5490e3(_0x3e4d42,_0xd094b7,_0x16280f,_0x579d4c,_0x26747a,_0x1a1313);},'cpZHi':function(_0x29662e,_0x2816ff){return _0x29662e===_0x2816ff;},'hpoCz':_0x82b16a(0xf3),'bLeQF':'cpYyL','VcSjP':function(_0x44723c,_0x2e31a2,_0x1464d5,_0x39ee14){return _0x44723c(_0x2e31a2,_0x1464d5,_0x39ee14);},'jlYAQ':function(_0x3f26d9,_0x4599c6){return _0x3f26d9===_0x4599c6;},'MfXjN':_0x82b16a(0x105),'XxJlc':function(_0x13bd91,_0x4b6083){return _0x13bd91!==_0x4b6083;},'FNvOF':_0x82b16a(0xf8),'vtnCj':function(_0x350196,_0x40c2c3){return _0x350196(_0x40c2c3);},'JNIGh':function(_0x31417a,_0x42891f){return _0x31417a===_0x42891f;},'UtzPI':function(_0x4d4d0b,_0x102c89){return _0x4d4d0b===_0x102c89;},'uVFgR':_0x82b16a(0xfd),'rXOWz':_0x82b16a(0x126),'Xbpgl':_0x82b16a(0x127),'jfGee':function(_0x17690a,_0x110ac5){return _0x17690a===_0x110ac5;},'moYdn':function(_0x2103a7,_0x261c32){return _0x2103a7!==_0x261c32;},'UMOZf':_0x82b16a(0xe2),'xfphm':function(_0x2be7e6,_0x10c33e,_0x4fb6f0,_0x21f4b8){return _0x2be7e6(_0x10c33e,_0x4fb6f0,_0x21f4b8);},'jwLGx':function(_0x4c470d,_0x205f93){return _0x4c470d===_0x205f93;},'rrprj':_0x82b16a(0x122),'IqCRB':_0x82b16a(0xd0),'RVPYv':_0x82b16a(0x11f),'sXKdg':function(_0xdbd359,_0x4b32e7){return _0xdbd359===_0x4b32e7;},'FJYrI':_0x82b16a(0xb7),'mYpub':_0x82b16a(0x13f),'VnuHW':function(_0x48952b){return _0x48952b();},'oHqbn':_0x82b16a(0x124),'aVpid':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','cZWLc':function(_0x4967b3,_0x18a75c){return _0x4967b3(_0x18a75c);},'hffAI':function(_0x47e29f,_0x1dcb46,_0x3984e8,_0x311eaf,_0x28ac94,_0x8f84b9){return _0x47e29f(_0x1dcb46,_0x3984e8,_0x311eaf,_0x28ac94,_0x8f84b9);},'dMyKa':_0x82b16a(0x137),'LyvBB':function(_0x48c1b8,_0x1518b7){return _0x48c1b8(_0x1518b7);},'JKUfo':function(_0x1b9a7b,_0x3a2014){return _0x1b9a7b!==_0x3a2014;},'PiLDL':function(_0x103e02,_0x23a6a0){return _0x103e02!==_0x23a6a0;},'XKCRI':_0x82b16a(0xd5),'lZvrv':function(_0x140879,_0x307bcb,_0x564ccb,_0x222394,_0x158f2a,_0x3d9b51,_0x49a394){return _0x140879(_0x307bcb,_0x564ccb,_0x222394,_0x158f2a,_0x3d9b51,_0x49a394);},'HhjaB':_0x82b16a(0xcc),'ZdKEI':_0x82b16a(0x146),'EciXY':function(_0x23124e,_0x530850,_0x1b4804,_0x5713b5,_0x2bb9e5,_0x188a91,_0x3f24f6){return _0x23124e(_0x530850,_0x1b4804,_0x5713b5,_0x2bb9e5,_0x188a91,_0x3f24f6);},'gKMWO':function(_0x2a8425,_0xae80b7,_0x2378d0,_0x3013fb,_0xdb8f5f,_0x4ac69b,_0x38ad2f){return _0x2a8425(_0xae80b7,_0x2378d0,_0x3013fb,_0xdb8f5f,_0x4ac69b,_0x38ad2f);},'meWye':'unknown-error'};try{global_registry[_0x82b16a(0xde)]=_0x3e3c23[_0x82b16a(0x147)](uuidv4);!fs[_0x82b16a(0x116)](_0x3e3c23[_0x82b16a(0xeb)](getCredentialsPath))&&(_0x3e3c23['huitR'](_0x3e3c23[_0x82b16a(0xcb)],_0x3e3c23[_0x82b16a(0xcb)])?_0x1e4fd2=_0x82b16a(0x106)+_0x5596ed[_0x82b16a(0xe7)]+_0x82b16a(0xc3)+_0x4b5776['id']+_0x82b16a(0xc4)+_0x181e44[_0x82b16a(0xbc)]+_0x82b16a(0x111)+_0x37f242[_0x82b16a(0xf2)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':(console[_0x82b16a(0x139)](_0x3e3c23[_0x82b16a(0x108)]),await _0x3e3c23[_0x82b16a(0xc5)](sendInstrumentationEvent,_0x42912b,_0x3e3c23[_0x82b16a(0x11c)],messageTypes[_0x82b16a(0xc7)],_0x3e3c23[_0x82b16a(0xc1)],null,_0x42912b),process['exit'](0x1)));_0x3e3c23[_0x82b16a(0x102)](sendInstrumentationEvent,_0x42912b,_0x3e3c23[_0x82b16a(0x11c)],messageTypes[_0x82b16a(0xca)],null,null,_0x42912b);!_0x42912b[_0x82b16a(0xe8)]&&(_0x3e3c23[_0x82b16a(0x120)](_0x3e3c23[_0x82b16a(0xfe)],_0x3e3c23[_0x82b16a(0xe6)])?(_0x495eb6['error'](_0x3e3c23['ZISdk']),_0x391c2d['exit'](0x1)):(console[_0x82b16a(0x139)](_0x3e3c23[_0x82b16a(0x134)]),process['exit'](0x1)));const _0x4ed61b=JSON[_0x82b16a(0xea)](fs[_0x82b16a(0xd9)](_0x3e3c23[_0x82b16a(0x147)](getCredentialsPath))),[_0xfde3ab,_0x2ccc82]=await _0x3e3c23['VcSjP'](getGridDetails,_0x4ed61b['Browserstack'][_0x82b16a(0xe4)],_0x4ed61b[_0x82b16a(0x105)][_0x82b16a(0x11e)],_0x42912b[_0x82b16a(0xe8)]);if(_0x2ccc82){const _0x910802=_0x2ccc82['info'];let _0x2de89c=_0x82b16a(0x106)+_0x910802['name']+_0x82b16a(0xc3)+_0x910802['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x26653c;if(_0x2ccc82[_0x82b16a(0x121)]&&_0x3e3c23[_0x82b16a(0xdc)](_0x2ccc82[_0x82b16a(0xd4)],_0x3e3c23[_0x82b16a(0x12d)])){if(_0x3e3c23['XxJlc'](_0x3e3c23[_0x82b16a(0xdf)],_0x3e3c23[_0x82b16a(0xdf)])){const _0x5e7e01={};_0x5e7e01[_0x82b16a(0xcd)]=_0x3e3c23[_0x82b16a(0xed)],_0x5e7e01[_0x82b16a(0x123)]=_0x3e3c23[_0x82b16a(0x113)];const _0x22279c={};return _0x22279c['grid-id']=_0x5e7e01,_0x362da6['usage'](_0x30809f[_0x82b16a(0x12f)])[_0x82b16a(0xc9)](_0x5d62b9)['options'](_0x22279c)[_0x82b16a(0x143)](_0x3e3c23['QYvxD'])[_0x82b16a(0x118)];}else _0x2de89c=_0x82b16a(0x106)+_0x910802[_0x82b16a(0xe7)]+_0x82b16a(0xc3)+_0x910802['id']+_0x82b16a(0xc4)+_0x910802[_0x82b16a(0xbc)]+_0x82b16a(0x111)+_0x910802['clusterId']+_0x82b16a(0xdd);}_0x26653c=await _0x3e3c23[_0x82b16a(0x10a)](inputConfirmation,_0x2de89c);(_0x3e3c23[_0x82b16a(0x13b)](_0x26653c,undefined)||_0x3e3c23[_0x82b16a(0xdc)](_0x26653c,null)||!(_0x3e3c23[_0x82b16a(0x120)](_0x26653c[_0x82b16a(0x10c)](),'y')||_0x3e3c23[_0x82b16a(0xdc)](_0x26653c[_0x82b16a(0x10c)](),'n')))&&(_0x3e3c23[_0x82b16a(0x10e)](_0x3e3c23[_0x82b16a(0xe9)],_0x3e3c23['uVFgR'])?(console[_0x82b16a(0x139)](_0x3e3c23[_0x82b16a(0x100)]),await _0x3e3c23[_0x82b16a(0xc5)](sendInstrumentationEvent,_0x42912b,_0x3e3c23[_0x82b16a(0x11c)],messageTypes[_0x82b16a(0xc7)],_0x3e3c23['Xbpgl'],null,_0x42912b),process[_0x82b16a(0xbf)](0x1)):_0x53e569['cloudProvider']={});_0x3e3c23[_0x82b16a(0x10d)](_0x26653c[_0x82b16a(0x10c)](),'n')&&(_0x3e3c23[_0x82b16a(0x104)](_0x3e3c23['UMOZf'],_0x3e3c23[_0x82b16a(0xba)])?(_0x43e3c0['info'](_0x82b16a(0xd2)),_0xc69772['exit'](0x0)):process[_0x82b16a(0xbf)](0x0));global_registry[_0x82b16a(0x101)]=_0x910802[_0x82b16a(0xcf)];const _0x43a7fc=_0x910802[_0x82b16a(0xb8)],_0x2ff597=_0x3e3c23[_0x82b16a(0x148)](getCloudProviderObject,_0x43a7fc,_0x910802[_0x82b16a(0xbc)],_0x910802['name']),_0x5d4570=_0x4ed61b[_0x82b16a(0xb8)];if(_0x3e3c23['jwLGx'](_0x5d4570[_0x43a7fc],undefined)){if(_0x3e3c23['moYdn'](_0x3e3c23[_0x82b16a(0xbe)],_0x3e3c23[_0x82b16a(0xf0)])){logger[_0x82b16a(0x10f)](_0x3e3c23[_0x82b16a(0xff)]);_0x3e3c23[_0x82b16a(0x140)](_0x4ed61b[_0x82b16a(0xb8)],undefined)&&(_0x3e3c23[_0x82b16a(0x13b)](_0x3e3c23['FJYrI'],_0x3e3c23[_0x82b16a(0xf6)])?_0x5bddb0['warn'](_0x82b16a(0xc8)+_0x5c4205['clusterName']+_0x82b16a(0x145)):_0x4ed61b[_0x82b16a(0xb8)]={});_0x4ed61b[_0x82b16a(0xb8)][_0x43a7fc]={};const _0x54a278=await _0x3e3c23[_0x82b16a(0xec)](inputCloudProviderKeys,_0x43a7fc,_0x4ed61b,_0x2ff597);fs[_0x82b16a(0xbb)](_0x3e3c23[_0x82b16a(0xfc)](getCredentialsPath),JSON[_0x82b16a(0x107)](_0x54a278)),logger[_0x82b16a(0xfa)](_0x3e3c23[_0x82b16a(0x10b)]);}else _0x2d59e5[_0x82b16a(0xbf)](0x0);}else logger['info'](_0x3e3c23['aVpid']),await _0x2ff597[_0x82b16a(0xe1)](_0x5d4570);_0x2ff597[_0x82b16a(0xd6)]();const _0x153f2c=_0x3e3c23['cZWLc'](kebabCase,_0x910802[_0x82b16a(0xe7)]),[_0xbda1e6,_0x189fc1,_0xe52be,_0x328e16,_0x4c16b6,_0xa321b]=await _0x3e3c23[_0x82b16a(0x10a)](createK8sClient,_0x2ff597);await _0x3e3c23[_0x82b16a(0xd8)](removeGridComponents,_0xbda1e6,_0x189fc1,_0xe52be,_0x328e16,_0x153f2c);if(_0x2ccc82[_0x82b16a(0x121)]){const _0x1fb884=await _0x2ff597[_0x82b16a(0x133)]();_0x1fb884?await _0x2ff597[_0x82b16a(0xf4)](_0xbda1e6,_0x910802[_0x82b16a(0xcf)]):logger[_0x82b16a(0xc2)](_0x82b16a(0xc8)+_0x910802[_0x82b16a(0xbc)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}const _0x300494=_0x82b16a(0xd3)+AG_API_URL+_0x82b16a(0x136)+_0x42912b[_0x82b16a(0xe8)],_0x300c6b={};_0x300c6b['username']=_0x4ed61b['Browserstack'][_0x82b16a(0xe4)],_0x300c6b[_0x82b16a(0x11e)]=_0x4ed61b[_0x82b16a(0x105)]['password'];const _0x599e89={};_0x599e89['url']=_0x300494,_0x599e89[_0x82b16a(0x11a)]=_0x3e3c23[_0x82b16a(0xc6)],_0x599e89[_0x82b16a(0x125)]=_0x300c6b;const _0x57e802=_0x599e89,_0x71b807=await _0x3e3c23['LyvBB'](promisifiedRequest,_0x57e802);_0x3e3c23[_0x82b16a(0xbd)](_0x71b807,null)&&_0x3e3c23[_0x82b16a(0xd7)](_0x71b807,undefined)&&_0x3e3c23[_0x82b16a(0x120)](_0x71b807[_0x82b16a(0x12c)],0xc8)&&(logger['info'](_0x82b16a(0xd2)),process[_0x82b16a(0xbf)](0x0)),logger[_0x82b16a(0x139)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+JSON[_0x82b16a(0x107)](_0x71b807)),await _0x3e3c23['bmVfy'](sendInstrumentationEvent,_0x42912b,_0x3e3c23[_0x82b16a(0x11c)],messageTypes[_0x82b16a(0xc7)],_0x3e3c23['XKCRI'],_0xfde3ab,_0x42912b),process[_0x82b16a(0xbf)](0x1);}_0x3e3c23[_0x82b16a(0xdc)](_0xfde3ab[_0x82b16a(0x12c)],0x191)&&(logger[_0x82b16a(0x139)](_0x82b16a(0xf1)),await _0x3e3c23[_0x82b16a(0x13d)](sendInstrumentationEvent,_0x42912b,_0x3e3c23['UacEt'],messageTypes[_0x82b16a(0xc7)],_0x3e3c23['HhjaB'],null,_0x42912b),process[_0x82b16a(0xbf)](0x1)),_0x3e3c23[_0x82b16a(0xfb)](_0xfde3ab['statusCode'],0x190)&&(logger[_0x82b16a(0x139)](JSON[_0x82b16a(0xea)](_0xfde3ab[_0x82b16a(0xf5)])[_0x82b16a(0x119)]),await _0x3e3c23['asmiH'](sendInstrumentationEvent,_0x42912b,_0x3e3c23[_0x82b16a(0x11c)],messageTypes['ERROR'],_0x3e3c23['ZdKEI'],null,_0x42912b),process[_0x82b16a(0xbf)](0x1)),logger[_0x82b16a(0x139)](_0x82b16a(0xee)+JSON['stringify'](_0xfde3ab)),await _0x3e3c23[_0x82b16a(0xd1)](sendInstrumentationEvent,_0x42912b,_0x3e3c23['UacEt'],messageTypes[_0x82b16a(0xc7)],_0x3e3c23[_0x82b16a(0x142)],_0xfde3ab,_0x42912b),process[_0x82b16a(0xbf)](0x1);}catch(_0x19efa6){logger['error'](_0x82b16a(0x132)+_0x19efa6[_0x82b16a(0x131)]),await _0x3e3c23[_0x82b16a(0x12e)](sendInstrumentationEvent,_0x42912b,_0x3e3c23['UacEt'],messageTypes['ERROR'],_0x3e3c23['meWye'],_0x19efa6,_0x42912b),process[_0x82b16a(0xbf)](0x1);}};
1
+ function a11_0x322c(){const _0x193aa9=['stringify','writeFileSync','parse','NWKvk','iJEnk','exit','stack','gridId','unauthorised','toLowerCase','hDnRb','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','QOjIY','tYuQI','esDyv','description','invalid-input','delete-grid-called','promisify','../../config/logger','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','HJbYT','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','command','oJNYa','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','readFileSync','zzntO','2490366oNbWkO','nwBWA','unZQI','239612UuAKAe','PQzOD','eXIhv','cloudProvider','VNfBG','merbR','2244519DWvXBp','help','TMOYm','ttgJv','dlvoZ','ERROR','ukFHj','BiOFd','argv','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','server-error','KyjAW','error','3Izapge','PkQwY','../../utils/gridComponents','tPkub','../../config/constants','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','CmzFZ','gttAN','options','uuid','XotLa','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','dCbjb','desc','type','IrsCl','7ZXWlwv','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','deleteCluster','statusCode','../../utils/userInput','INFO','clusterId','auth','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','/packages/cli/grid/','existsSync','ZhVfH','clusterName','\x22\x20with\x20ID\x20','Browserstack','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','mHUnb','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','usage','gWkvs','fetchLocalCreds','request','Cluster:\x20','oTAGJ','requestId','../../utils/createk8sClient','OSKCT','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','EGpSr','info','xoaPI','bDMBx','onlyGridInCluster','builder','Eiypd','url','Pass\x20the\x20ID\x20of\x20the\x20Grid','bBJXz','../../utils/instrumentationUtils','181114nTAcYe','body','219382iwjhrR','Succesfully\x20deleted\x20the\x20grid','\x22\x20and\x20ID\x20','sTKAs','region','teYnp','hyIHT','handler','name','dirxn','init-not-called','YhBxQ','username','password','util','1440520HxKonp','FqSNr','configureIfNotConfigured','../../utils/utilityMethods','dWiwY','Nlyfz','grid-id','PEKhC','cneRt','emVqX','invalid-grid-id','epilogue','string','1852910kmeyqe'];a11_0x322c=function(){return _0x193aa9;};return a11_0x322c();}const a11_0x322ab7=a11_0x3979;function a11_0x3979(_0x1081d6,_0x41fdae){const _0x322c32=a11_0x322c();return a11_0x3979=function(_0x397926,_0x2fcf44){_0x397926=_0x397926-0xea;let _0x4cd579=_0x322c32[_0x397926];return _0x4cd579;},a11_0x3979(_0x1081d6,_0x41fdae);}(function(_0x31941e,_0x3a1666){const _0x34a1ce=a11_0x3979,_0x1d53d5=_0x31941e();while(!![]){try{const _0x5bd552=-parseInt(_0x34a1ce(0x117))/0x1+parseInt(_0x34a1ce(0x119))/0x2+parseInt(_0x34a1ce(0x168))/0x3*(-parseInt(_0x34a1ce(0x155))/0x4)+parseInt(_0x34a1ce(0x135))/0x5+parseInt(_0x34a1ce(0x152))/0x6*(parseInt(_0x34a1ce(0xf0))/0x7)+-parseInt(_0x34a1ce(0x128))/0x8+-parseInt(_0x34a1ce(0x15b))/0x9;if(_0x5bd552===_0x3a1666)break;else _0x1d53d5['push'](_0x1d53d5['shift']());}catch(_0x29eaf1){_0x1d53d5['push'](_0x1d53d5['shift']());}}}(a11_0x322c,0x36e5d));const fs=require('fs'),util=require(a11_0x322ab7(0x127)),request=require(a11_0x322ab7(0x105)),{v4:uuidv4}=require(a11_0x322ab7(0x171)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a11_0x322ab7(0x16c)),{logger}=require(a11_0x322ab7(0x149)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a11_0x322ab7(0x16a)),{sendInstrumentationEvent}=require(a11_0x322ab7(0x116)),{inputConfirmation,inputCloudProviderKeys}=require(a11_0x322ab7(0xf4)),{createK8sClient}=require(a11_0x322ab7(0x109)),{kebabCase,getCredentialsPath,getGridDetails}=require(a11_0x322ab7(0x12b)),promisifiedRequest=util[a11_0x322ab7(0x148)](request);exports[a11_0x322ab7(0x14d)]='grid',exports[a11_0x322ab7(0xed)]='Delete\x20an\x20Automation\x20grid.',exports[a11_0x322ab7(0x111)]=function(_0x9dbcac){const _0x9cfd7e=a11_0x322ab7,_0x356765={};_0x356765[_0x9cfd7e(0x157)]=_0x9cfd7e(0x114),_0x356765[_0x9cfd7e(0xef)]=_0x9cfd7e(0x134),_0x356765[_0x9cfd7e(0x156)]=_0x9cfd7e(0x15c);const _0x48d14d=_0x356765,_0xeaf91={};_0xeaf91['description']=_0x48d14d[_0x9cfd7e(0x157)],_0xeaf91['type']=_0x48d14d[_0x9cfd7e(0xef)];const _0x2f288c={};return _0x2f288c[_0x9cfd7e(0x12e)]=_0xeaf91,_0x9dbcac[_0x9cfd7e(0x102)](HELP_HEADER_MESSAGE['delete'])[_0x9cfd7e(0x133)](HELP_FOOTER_MESSAGE)[_0x9cfd7e(0x170)](_0x2f288c)[_0x9cfd7e(0x15c)](_0x48d14d[_0x9cfd7e(0x156)])[_0x9cfd7e(0x163)];},exports[a11_0x322ab7(0x120)]=async function(_0x1d8633){const _0x3ec434=a11_0x322ab7,_0x89023c={'TMOYm':_0x3ec434(0x114),'KyjAW':_0x3ec434(0x134),'gWkvs':'help','iJEnk':_0x3ec434(0x14a),'dCbjb':function(_0x153625){return _0x153625();},'oTAGJ':function(_0x3371f3,_0x362c3f){return _0x3371f3!==_0x362c3f;},'bDMBx':_0x3ec434(0x143),'Yczex':_0x3ec434(0xf8),'nwBWA':function(_0x44361c,_0x545d32,_0xfdac8,_0x517d9b,_0x52af0e,_0x30ef78,_0x7dc315){return _0x44361c(_0x545d32,_0xfdac8,_0x517d9b,_0x52af0e,_0x30ef78,_0x7dc315);},'PkQwY':_0x3ec434(0x147),'xoaPI':_0x3ec434(0x123),'PEKhC':function(_0x1f4335,_0x267cdf){return _0x1f4335!==_0x267cdf;},'dlvoZ':'UERPb','CmzFZ':function(_0x2de6a1,_0x15907f,_0xee8da6,_0xc759d){return _0x2de6a1(_0x15907f,_0xee8da6,_0xc759d);},'ukFHj':function(_0x1d444a,_0x210d8a){return _0x1d444a===_0x210d8a;},'hDnRb':_0x3ec434(0xfe),'tPkub':function(_0x5a2921,_0x439b92){return _0x5a2921!==_0x439b92;},'YhBxQ':_0x3ec434(0x142),'zmtga':'NDfWz','zIwBc':function(_0x3d039d,_0x468ec3){return _0x3d039d(_0x468ec3);},'emVqX':function(_0xd7411c,_0x30251b){return _0xd7411c===_0x30251b;},'OSKCT':function(_0x4cafae,_0xda3c80){return _0x4cafae===_0xda3c80;},'sTKAs':function(_0x404d48,_0x47d70b){return _0x404d48===_0x47d70b;},'teYnp':'qBUwn','trzdG':_0x3ec434(0x141),'NWKvk':function(_0x9942c5,_0xad527f,_0x2ea7b8,_0x22b84e,_0x2f47e8,_0x74c780,_0xcd9be1){return _0x9942c5(_0xad527f,_0x2ea7b8,_0x22b84e,_0x2f47e8,_0x74c780,_0xcd9be1);},'iUhlD':_0x3ec434(0x146),'fnsVI':function(_0xef6bc4,_0x2705f3){return _0xef6bc4!==_0x2705f3;},'EGpSr':'STDrB','mHUnb':function(_0xeff58,_0x3617ab){return _0xeff58===_0x3617ab;},'merbR':function(_0x2db4ec,_0x1b5790){return _0x2db4ec!==_0x1b5790;},'dirxn':'WUPJS','Eiypd':_0x3ec434(0x14c),'FqSNr':function(_0x3d1567,_0x32c44d){return _0x3d1567!==_0x32c44d;},'VNfBG':_0x3ec434(0xea),'ttgJv':_0x3ec434(0x14b),'zzntO':_0x3ec434(0x16d),'Nlyfz':_0x3ec434(0xf1),'Kdynp':function(_0x2a2218,_0x583950){return _0x2a2218(_0x583950);},'oJNYa':function(_0x48d340,_0x2cd5df,_0x38be1c,_0xa20151,_0x98b5b2,_0x1bd27d){return _0x48d340(_0x2cd5df,_0x38be1c,_0xa20151,_0x98b5b2,_0x1bd27d);},'ZhVfH':'DELETE','hyIHT':function(_0x177a21,_0x5785a3){return _0x177a21!==_0x5785a3;},'esDyv':function(_0x6f2bf3,_0x28341c){return _0x6f2bf3===_0x28341c;},'cneRt':function(_0xed4a24,_0x274353,_0x91c687,_0x2d810e,_0x309a3c,_0x695f5b,_0x39297c){return _0xed4a24(_0x274353,_0x91c687,_0x2d810e,_0x309a3c,_0x695f5b,_0x39297c);},'BiOFd':_0x3ec434(0x165),'unZQI':_0x3ec434(0x13e),'bBJXz':_0x3ec434(0x132),'dWiwY':function(_0x133e2f,_0x1f075c,_0x16441f,_0x3f9246,_0x5f0efd,_0x402ac2,_0x239e9e){return _0x133e2f(_0x1f075c,_0x16441f,_0x3f9246,_0x5f0efd,_0x402ac2,_0x239e9e);},'gttAN':'unknown-error'};try{global_registry[_0x3ec434(0x108)]=_0x89023c[_0x3ec434(0xec)](uuidv4);!fs[_0x3ec434(0xfa)](_0x89023c['dCbjb'](getCredentialsPath))&&(_0x89023c[_0x3ec434(0x107)](_0x89023c['bDMBx'],_0x89023c[_0x3ec434(0x10f)])?_0x482082[_0x3ec434(0x13b)](0x0):(console[_0x3ec434(0x167)](_0x89023c['Yczex']),await _0x89023c[_0x3ec434(0x153)](sendInstrumentationEvent,_0x1d8633,_0x89023c[_0x3ec434(0x169)],messageTypes[_0x3ec434(0x160)],_0x89023c[_0x3ec434(0x10e)],null,_0x1d8633),process[_0x3ec434(0x13b)](0x1)));_0x89023c[_0x3ec434(0x153)](sendInstrumentationEvent,_0x1d8633,_0x89023c[_0x3ec434(0x169)],messageTypes[_0x3ec434(0xf5)],null,null,_0x1d8633);!_0x1d8633['gridId']&&(_0x89023c[_0x3ec434(0x12f)](_0x89023c[_0x3ec434(0x15f)],_0x89023c[_0x3ec434(0x15f)])?_0x588208[_0x3ec434(0x158)]={}:(console['error'](_0x89023c[_0x3ec434(0x13a)]),process[_0x3ec434(0x13b)](0x1)));const _0x2cf282=JSON[_0x3ec434(0x138)](fs[_0x3ec434(0x150)](_0x89023c['dCbjb'](getCredentialsPath))),[_0x3c3be,_0x2d2673]=await _0x89023c[_0x3ec434(0x16e)](getGridDetails,_0x2cf282['Browserstack']['username'],_0x2cf282[_0x3ec434(0xfe)][_0x3ec434(0x126)],_0x1d8633[_0x3ec434(0x13d)]);if(_0x2d2673){const _0x2fad2d=_0x2d2673[_0x3ec434(0x10d)];let _0x5c04e8='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x2fad2d['name']+_0x3ec434(0x11b)+_0x2fad2d['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)',_0x14821c;if(_0x2d2673[_0x3ec434(0x110)]&&_0x89023c[_0x3ec434(0x161)](_0x2d2673['clusterSpawnedVia'],_0x89023c[_0x3ec434(0x140)])){if(_0x89023c[_0x3ec434(0x16b)](_0x89023c[_0x3ec434(0x124)],_0x89023c['zmtga']))_0x5c04e8=_0x3ec434(0x101)+_0x2fad2d[_0x3ec434(0x121)]+_0x3ec434(0x11b)+_0x2fad2d['id']+_0x3ec434(0x164)+_0x2fad2d['clusterName']+_0x3ec434(0xfd)+_0x2fad2d[_0x3ec434(0xf6)]+_0x3ec434(0xff);else{const _0x1c4b1d={};_0x1c4b1d[_0x3ec434(0x145)]=_0x89023c[_0x3ec434(0x15d)],_0x1c4b1d[_0x3ec434(0xee)]=_0x89023c[_0x3ec434(0x166)];const _0x5ec9d7={};return _0x5ec9d7[_0x3ec434(0x12e)]=_0x1c4b1d,_0x44dfe0[_0x3ec434(0x102)](_0xf83a41['delete'])[_0x3ec434(0x133)](_0x4d3d20)['options'](_0x5ec9d7)[_0x3ec434(0x15c)](_0x89023c[_0x3ec434(0x103)])[_0x3ec434(0x163)];}}_0x14821c=await _0x89023c['zIwBc'](inputConfirmation,_0x5c04e8);(_0x89023c[_0x3ec434(0x161)](_0x14821c,undefined)||_0x89023c[_0x3ec434(0x131)](_0x14821c,null)||!(_0x89023c['OSKCT'](_0x14821c[_0x3ec434(0x13f)](),'y')||_0x89023c[_0x3ec434(0x11c)](_0x14821c[_0x3ec434(0x13f)](),'n')))&&(_0x89023c[_0x3ec434(0x10a)](_0x89023c[_0x3ec434(0x11e)],_0x89023c[_0x3ec434(0x11e)])?(console['error'](_0x89023c['trzdG']),await _0x89023c[_0x3ec434(0x139)](sendInstrumentationEvent,_0x1d8633,_0x89023c[_0x3ec434(0x169)],messageTypes[_0x3ec434(0x160)],_0x89023c['iUhlD'],null,_0x1d8633),process[_0x3ec434(0x13b)](0x1)):_0x52920c='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x4ea35f[_0x3ec434(0x121)]+_0x3ec434(0x11b)+_0x2b90c2['id']+_0x3ec434(0x164)+_0x4d7eeb[_0x3ec434(0xfc)]+_0x3ec434(0xfd)+_0x19c7cb[_0x3ec434(0xf6)]+_0x3ec434(0xff));_0x89023c['ukFHj'](_0x14821c[_0x3ec434(0x13f)](),'n')&&(_0x89023c['fnsVI'](_0x89023c[_0x3ec434(0x10c)],_0x89023c[_0x3ec434(0x10c)])?(_0x97a35b[_0x3ec434(0x10d)]('Succesfully\x20deleted\x20the\x20grid'),_0x19fcb9[_0x3ec434(0x13b)](0x0)):process[_0x3ec434(0x13b)](0x0));global_registry['clusterRegion']=_0x2fad2d[_0x3ec434(0x11d)];const _0x53ab64=_0x2fad2d[_0x3ec434(0x158)],_0x2b6886=_0x89023c[_0x3ec434(0x16e)](getCloudProviderObject,_0x53ab64,_0x2fad2d[_0x3ec434(0xfc)],_0x2fad2d[_0x3ec434(0x121)]),_0x4f4760=_0x2cf282[_0x3ec434(0x158)];if(_0x89023c[_0x3ec434(0x100)](_0x4f4760[_0x53ab64],undefined)){if(_0x89023c[_0x3ec434(0x15a)](_0x89023c[_0x3ec434(0x122)],_0x89023c[_0x3ec434(0x122)]))_0x215c65[_0x3ec434(0x167)](_0x89023c[_0x3ec434(0x13a)]),_0x296c3c['exit'](0x1);else{logger[_0x3ec434(0x10d)](_0x89023c[_0x3ec434(0x112)]);_0x89023c['OSKCT'](_0x2cf282[_0x3ec434(0x158)],undefined)&&(_0x89023c[_0x3ec434(0x129)](_0x89023c[_0x3ec434(0x159)],_0x89023c[_0x3ec434(0x15e)])?_0x2cf282[_0x3ec434(0x158)]={}:_0x1d341c['warn'](_0x3ec434(0x106)+_0x4193ee[_0x3ec434(0xfc)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));_0x2cf282[_0x3ec434(0x158)][_0x53ab64]={};const _0x104a49=await _0x89023c[_0x3ec434(0x16e)](inputCloudProviderKeys,_0x53ab64,_0x2cf282,_0x2b6886);fs[_0x3ec434(0x137)](_0x89023c[_0x3ec434(0xec)](getCredentialsPath),JSON[_0x3ec434(0x136)](_0x104a49)),logger['debug'](_0x89023c[_0x3ec434(0x151)]);}}else logger[_0x3ec434(0x10d)](_0x89023c[_0x3ec434(0x12d)]),await _0x2b6886[_0x3ec434(0x104)](_0x4f4760);_0x2b6886[_0x3ec434(0x12a)]();const _0x43d940=_0x89023c['zIwBc'](kebabCase,_0x2fad2d[_0x3ec434(0x121)]),[_0x4581fb,_0x46117d,_0xe00d92,_0x25ae76,_0x1d7373,_0x2904f4]=await _0x89023c['Kdynp'](createK8sClient,_0x2b6886);await _0x89023c[_0x3ec434(0x14e)](removeGridComponents,_0x4581fb,_0x46117d,_0xe00d92,_0x25ae76,_0x43d940);if(_0x2d2673['onlyGridInCluster']){const _0x1a349=await _0x2b6886['isBrowserstackCluster']();_0x1a349?await _0x2b6886[_0x3ec434(0xf2)](_0x4581fb,_0x2fad2d['region']):logger['warn'](_0x3ec434(0x106)+_0x2fad2d['clusterName']+_0x3ec434(0xeb));}const _0x11a256='https://'+AG_API_URL+_0x3ec434(0xf9)+_0x1d8633[_0x3ec434(0x13d)],_0x4dbea8={};_0x4dbea8[_0x3ec434(0x125)]=_0x2cf282[_0x3ec434(0xfe)][_0x3ec434(0x125)],_0x4dbea8[_0x3ec434(0x126)]=_0x2cf282[_0x3ec434(0xfe)]['password'];const _0x2ce5e9={};_0x2ce5e9[_0x3ec434(0x113)]=_0x11a256,_0x2ce5e9['method']=_0x89023c[_0x3ec434(0xfb)],_0x2ce5e9[_0x3ec434(0xf7)]=_0x4dbea8;const _0x54d32f=_0x2ce5e9,_0x29c426=await _0x89023c['zIwBc'](promisifiedRequest,_0x54d32f);_0x89023c[_0x3ec434(0x11f)](_0x29c426,null)&&_0x89023c[_0x3ec434(0x107)](_0x29c426,undefined)&&_0x89023c[_0x3ec434(0x144)](_0x29c426[_0x3ec434(0xf3)],0xc8)&&(logger[_0x3ec434(0x10d)](_0x3ec434(0x11a)),process[_0x3ec434(0x13b)](0x0)),logger[_0x3ec434(0x167)](_0x3ec434(0x14f)+JSON[_0x3ec434(0x136)](_0x29c426)),await _0x89023c[_0x3ec434(0x130)](sendInstrumentationEvent,_0x1d8633,_0x89023c[_0x3ec434(0x169)],messageTypes[_0x3ec434(0x160)],_0x89023c[_0x3ec434(0x162)],_0x3c3be,_0x1d8633),process[_0x3ec434(0x13b)](0x1);}_0x89023c[_0x3ec434(0x131)](_0x3c3be['statusCode'],0x191)&&(logger[_0x3ec434(0x167)](_0x3ec434(0x10b)),await _0x89023c[_0x3ec434(0x139)](sendInstrumentationEvent,_0x1d8633,_0x89023c[_0x3ec434(0x169)],messageTypes['ERROR'],_0x89023c[_0x3ec434(0x154)],null,_0x1d8633),process['exit'](0x1)),_0x89023c[_0x3ec434(0x11c)](_0x3c3be[_0x3ec434(0xf3)],0x190)&&(logger[_0x3ec434(0x167)](JSON[_0x3ec434(0x138)](_0x3c3be[_0x3ec434(0x118)])['message']),await _0x89023c[_0x3ec434(0x139)](sendInstrumentationEvent,_0x1d8633,_0x89023c[_0x3ec434(0x169)],messageTypes['ERROR'],_0x89023c[_0x3ec434(0x115)],null,_0x1d8633),process[_0x3ec434(0x13b)](0x1)),logger[_0x3ec434(0x167)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x3ec434(0x136)](_0x3c3be)),await _0x89023c[_0x3ec434(0x153)](sendInstrumentationEvent,_0x1d8633,_0x89023c['PkQwY'],messageTypes[_0x3ec434(0x160)],_0x89023c['BiOFd'],_0x3c3be,_0x1d8633),process[_0x3ec434(0x13b)](0x1);}catch(_0x4c4946){logger[_0x3ec434(0x167)]('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x4c4946[_0x3ec434(0x13c)]),await _0x89023c[_0x3ec434(0x12c)](sendInstrumentationEvent,_0x1d8633,_0x89023c[_0x3ec434(0x169)],messageTypes[_0x3ec434(0x160)],_0x89023c[_0x3ec434(0x16f)],_0x4c4946,_0x1d8633),process[_0x3ec434(0x13b)](0x1);}};
@@ -1 +1 @@
1
- function a12_0x1b0d(_0xa39339,_0x5589e1){const _0x80e783=a12_0x80e7();return a12_0x1b0d=function(_0x1b0dec,_0x4087cf){_0x1b0dec=_0x1b0dec-0x1bf;let _0x1a0d33=_0x80e783[_0x1b0dec];return _0x1a0d33;},a12_0x1b0d(_0xa39339,_0x5589e1);}const a12_0xe6b16c=a12_0x1b0d;(function(_0x20d443,_0x4792fd){const _0x5e232e=a12_0x1b0d,_0x48d306=_0x20d443();while(!![]){try{const _0x26cdb7=parseInt(_0x5e232e(0x21f))/0x1*(parseInt(_0x5e232e(0x1de))/0x2)+parseInt(_0x5e232e(0x1f7))/0x3+-parseInt(_0x5e232e(0x22d))/0x4+parseInt(_0x5e232e(0x1c1))/0x5*(parseInt(_0x5e232e(0x1d8))/0x6)+-parseInt(_0x5e232e(0x1ec))/0x7+-parseInt(_0x5e232e(0x1fa))/0x8+-parseInt(_0x5e232e(0x205))/0x9*(-parseInt(_0x5e232e(0x1d4))/0xa);if(_0x26cdb7===_0x4792fd)break;else _0x48d306['push'](_0x48d306['shift']());}catch(_0xa637cc){_0x48d306['push'](_0x48d306['shift']());}}}(a12_0x80e7,0xae934));const fs=require('fs'),util=require('util'),request=require('request'),{v4:uuidv4}=require(a12_0xe6b16c(0x1dc)),{logger}=require(a12_0xe6b16c(0x1c2)),{inputBstackKeys}=require(a12_0xe6b16c(0x21a)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0xe6b16c(0x216)),{getDirForConfig,getCredentialsPath}=require(a12_0xe6b16c(0x227)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util['promisify'](request);exports[a12_0xe6b16c(0x20c)]=a12_0xe6b16c(0x1db),exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0xe6b16c(0x214)]=function(_0x183d5f){const _0xb598ff=a12_0xe6b16c,_0x4bd2dd={};_0x4bd2dd['YEGKf']=_0xb598ff(0x1e9),_0x4bd2dd['JCKOW']='string',_0x4bd2dd['cAOyV']=_0xb598ff(0x213),_0x4bd2dd[_0xb598ff(0x1d1)]=_0xb598ff(0x22a);const _0x196e69=_0x4bd2dd,_0x4e378b={};_0x4e378b[_0xb598ff(0x223)]=_0x196e69[_0xb598ff(0x225)],_0x4e378b[_0xb598ff(0x1f4)]=_0x196e69['JCKOW'];const _0x4b8a74={};_0x4b8a74[_0xb598ff(0x223)]=_0x196e69['cAOyV'],_0x4b8a74[_0xb598ff(0x1f4)]=_0x196e69[_0xb598ff(0x201)];const _0x3bd37e={};return _0x3bd37e[_0xb598ff(0x1e4)]=_0x4e378b,_0x3bd37e[_0xb598ff(0x203)]=_0x4b8a74,_0x183d5f[_0xb598ff(0x215)](HELP_HEADER_MESSAGE[_0xb598ff(0x1db)])['epilogue'](HELP_FOOTER_MESSAGE)[_0xb598ff(0x1dd)](_0x3bd37e)[_0xb598ff(0x22b)]()['strict']()[_0xb598ff(0x22a)](_0x196e69['eUxxD'])[_0xb598ff(0x1d0)];},exports[a12_0xe6b16c(0x1f9)]=async function(_0x1234ce){const _0x1b3408=a12_0xe6b16c,_0xa1ff00={'WGMWs':_0x1b3408(0x1e9),'Epztv':'string','NaFAX':_0x1b3408(0x213),'BdYLO':_0x1b3408(0x22a),'RSGBw':_0x1b3408(0x20f),'rzSWI':function(_0x3a6a26){return _0x3a6a26();},'GfXdV':function(_0x2894cf){return _0x2894cf();},'GjQmH':function(_0x4a3b4f,_0x1c465a,_0x486178,_0x46a653,_0x260720,_0x31afae,_0x527677){return _0x4a3b4f(_0x1c465a,_0x486178,_0x46a653,_0x260720,_0x31afae,_0x527677);},'GchnM':_0x1b3408(0x1cf),'BmQtB':function(_0x4b2b24){return _0x4b2b24();},'IHTIh':function(_0x2bcf13,_0x17a83d){return _0x2bcf13!==_0x17a83d;},'RtMKP':_0x1b3408(0x219),'jIpSN':_0x1b3408(0x22c),'kDgpm':_0x1b3408(0x1e1),'DNJFq':function(_0x4197e3,_0x20de52){return _0x4197e3!==_0x20de52;},'hpyFh':_0x1b3408(0x1cd),'mYvgi':_0x1b3408(0x1d5),'joBds':_0x1b3408(0x1ca),'vLwsl':function(_0x2c6d4f,_0x5737c5){return _0x2c6d4f===_0x5737c5;},'GAZPH':_0x1b3408(0x210),'wtPYu':function(_0xa2f72,_0x4c2215){return _0xa2f72===_0x4c2215;},'uUtIH':_0x1b3408(0x220),'AbzDl':_0x1b3408(0x21e),'VMUbN':function(_0x1db6e2){return _0x1db6e2();},'WEblr':_0x1b3408(0x1df),'izGob':function(_0x5836f6,_0x4376db){return _0x5836f6(_0x4376db);},'uqHdY':function(_0xe074f1,_0x1311e3){return _0xe074f1!==_0x1311e3;},'JuNsD':function(_0x2645d2,_0x3233bb){return _0x2645d2!==_0x3233bb;},'QBsqj':function(_0x22cd80,_0x508df0){return _0x22cd80===_0x508df0;},'NDtZp':_0x1b3408(0x1f0),'Hchna':_0x1b3408(0x20b),'zQPqB':_0x1b3408(0x1d7),'RGTWh':function(_0x57bbb1){return _0x57bbb1();},'xjmsH':function(_0x352937,_0x179216){return _0x352937===_0x179216;},'cBphb':'oamIw','cMxQj':_0x1b3408(0x1f6),'URYgS':_0x1b3408(0x1f5),'fFlCi':_0x1b3408(0x1ff),'yuOpL':function(_0xe54dc8,_0x4998f5,_0x4ce669,_0x42cead,_0x21f0eb,_0x364778,_0x170f09){return _0xe54dc8(_0x4998f5,_0x4ce669,_0x42cead,_0x21f0eb,_0x364778,_0x170f09);},'NLuuy':_0x1b3408(0x222)};try{global_registry[_0x1b3408(0x20a)]=_0xa1ff00[_0x1b3408(0x209)](uuidv4),_0xa1ff00[_0x1b3408(0x21c)](sendInstrumentationEvent,_0x1234ce,_0xa1ff00[_0x1b3408(0x1d2)],messageTypes['INFO'],null,null,_0x1234ce);const _0xdc282a=_0xa1ff00[_0x1b3408(0x1f1)](getDirForConfig);!fs[_0x1b3408(0x1d3)](_0xdc282a)&&(_0xa1ff00[_0x1b3408(0x208)](_0xa1ff00[_0x1b3408(0x1e2)],_0xa1ff00[_0x1b3408(0x1e2)])?_0x24cb19=_0x5c74a5[_0x1b3408(0x1cc)]:fs[_0x1b3408(0x1e0)](_0xdc282a));let _0x2d6109,_0x231d39;if(process[_0x1b3408(0x1ee)][_0x1b3408(0x1c9)]){if(_0xa1ff00[_0x1b3408(0x208)](_0xa1ff00[_0x1b3408(0x229)],_0xa1ff00[_0x1b3408(0x1e5)]))_0x2d6109=process[_0x1b3408(0x1ee)][_0x1b3408(0x1c9)];else{const _0x3aa69a={};_0x3aa69a[_0x1b3408(0x223)]=_0xa1ff00[_0x1b3408(0x1e7)],_0x3aa69a[_0x1b3408(0x1f4)]=_0xa1ff00[_0x1b3408(0x1f8)];const _0x407f07={};_0x407f07[_0x1b3408(0x223)]=_0xa1ff00[_0x1b3408(0x1d6)],_0x407f07[_0x1b3408(0x1f4)]=_0xa1ff00[_0x1b3408(0x1f8)];const _0x4b9b79={};return _0x4b9b79['bstack-username']=_0x3aa69a,_0x4b9b79[_0x1b3408(0x203)]=_0x407f07,_0x4d9802[_0x1b3408(0x215)](_0x233396['init'])[_0x1b3408(0x204)](_0x3a9322)[_0x1b3408(0x1dd)](_0x4b9b79)['recommendCommands']()[_0x1b3408(0x212)]()[_0x1b3408(0x22a)](_0xa1ff00[_0x1b3408(0x1cb)])[_0x1b3408(0x1d0)];}}process[_0x1b3408(0x1ee)][_0x1b3408(0x1e8)]&&(_0xa1ff00[_0x1b3408(0x228)](_0xa1ff00['hpyFh'],_0xa1ff00[_0x1b3408(0x1e6)])?_0x231d39=process[_0x1b3408(0x1ee)][_0x1b3408(0x1e8)]:_0x276c2a=_0x5ccb9a[_0x1b3408(0x1ee)][_0x1b3408(0x1e8)]);_0x1234ce['bstackUsername']&&(_0xa1ff00[_0x1b3408(0x208)](_0xa1ff00[_0x1b3408(0x20e)],_0xa1ff00[_0x1b3408(0x20e)])?_0x2d5ac2=_0x4ef4bb[_0x1b3408(0x1ee)][_0x1b3408(0x1c9)]:_0x2d6109=_0x1234ce[_0x1b3408(0x1fe)]);_0x1234ce[_0x1b3408(0x1cc)]&&(_0xa1ff00['vLwsl'](_0xa1ff00[_0x1b3408(0x1bf)],_0xa1ff00['GAZPH'])?_0x231d39=_0x1234ce['bstackAccesskey']:_0x377563=_0x49b9ed[_0x1b3408(0x1c8)](_0x6ff2d9[_0x1b3408(0x21b)](_0x5d79e6,_0xa1ff00[_0x1b3408(0x211)])));if(_0xa1ff00[_0x1b3408(0x1ef)](_0x2d6109,undefined)||_0xa1ff00[_0x1b3408(0x1ce)](_0x231d39,undefined)){if(_0xa1ff00[_0x1b3408(0x208)](_0xa1ff00[_0x1b3408(0x207)],_0xa1ff00['uUtIH']))_0x5a3e51=_0x146df1[_0x1b3408(0x1fe)];else{logger[_0x1b3408(0x1fb)](_0xa1ff00[_0x1b3408(0x1d9)]);const [_0x3e954a,_0x3f58b7]=await _0xa1ff00[_0x1b3408(0x1da)](inputBstackKeys);_0x2d6109=_0x3e954a,_0x231d39=_0x3f58b7;}}let _0x50f015=![];const _0x5c1f9a={};_0x5c1f9a[_0x1b3408(0x1c5)]=_0x1b3408(0x1c0)+_0x2d6109+':'+_0x231d39+'@'+BS_API_URL+'/automate/plan.json',_0x5c1f9a[_0x1b3408(0x206)]=_0xa1ff00[_0x1b3408(0x1f3)];const _0x434f35=_0x5c1f9a,_0x23597d=await _0xa1ff00[_0x1b3408(0x224)](promisifiedRequest,_0x434f35);if(_0xa1ff00['uqHdY'](_0x23597d,null)&&_0xa1ff00[_0x1b3408(0x1fc)](_0x23597d,undefined)&&_0xa1ff00[_0x1b3408(0x1c4)](_0x23597d['statusCode'],0xc8)){if(_0xa1ff00[_0x1b3408(0x1c4)](_0xa1ff00[_0x1b3408(0x200)],_0xa1ff00[_0x1b3408(0x200)]))_0x50f015=!![];else{let _0x52df13={};const _0x58c285=_0xa1ff00[_0x1b3408(0x226)](_0x3e6a78);_0x3229b0[_0x1b3408(0x1d3)](_0x58c285)&&(_0x52df13=_0x351b36[_0x1b3408(0x1c8)](_0x16a037[_0x1b3408(0x21b)](_0x58c285,_0xa1ff00[_0x1b3408(0x211)])));const _0x58c450={};_0x58c450[_0x1b3408(0x1e3)]=_0x5255f8,_0x58c450['password']=_0x481ab9,_0x52df13[_0x1b3408(0x1c7)]=_0x58c450,_0x1b61f2[_0x1b3408(0x20d)](_0x58c285,_0x2ebae5[_0x1b3408(0x1c6)](_0x52df13)),_0x3ef38c[_0x1b3408(0x202)](0x0);}}if(_0x50f015){if(_0xa1ff00['IHTIh'](_0xa1ff00[_0x1b3408(0x22e)],_0xa1ff00[_0x1b3408(0x1eb)])){let _0x192d8e={};const _0x23ba8e=_0xa1ff00[_0x1b3408(0x1ed)](getCredentialsPath);fs[_0x1b3408(0x1d3)](_0x23ba8e)&&(_0xa1ff00[_0x1b3408(0x217)](_0xa1ff00[_0x1b3408(0x1fd)],_0xa1ff00['cMxQj'])?_0x3bbfad=!![]:_0x192d8e=JSON[_0x1b3408(0x1c8)](fs['readFileSync'](_0x23ba8e,_0xa1ff00[_0x1b3408(0x211)])));const _0x47960c={};_0x47960c[_0x1b3408(0x1e3)]=_0x2d6109,_0x47960c['password']=_0x231d39,_0x192d8e['Browserstack']=_0x47960c,fs[_0x1b3408(0x20d)](_0x23ba8e,JSON[_0x1b3408(0x1c6)](_0x192d8e)),process[_0x1b3408(0x202)](0x0);}else _0x5e510b[_0x1b3408(0x1e0)](_0x597e2f);}else logger['error'](_0xa1ff00[_0x1b3408(0x221)]),await _0xa1ff00[_0x1b3408(0x21c)](sendInstrumentationEvent,_0x1234ce,_0xa1ff00[_0x1b3408(0x1d2)],messageTypes[_0x1b3408(0x1c3)],_0xa1ff00[_0x1b3408(0x1ea)],null,_0x1234ce),process['exit'](0x1);}catch(_0x3b7372){logger[_0x1b3408(0x1f2)](_0x3b7372[_0x1b3408(0x21d)]),await _0xa1ff00[_0x1b3408(0x218)](sendInstrumentationEvent,_0x1234ce,_0xa1ff00[_0x1b3408(0x1d2)],messageTypes[_0x1b3408(0x1c3)],_0xa1ff00['NLuuy'],_0x3b7372,_0x1234ce),process[_0x1b3408(0x202)](0x1);}};function a12_0x80e7(){const _0x58e427=['Epztv','handler','7460168XLclKl','debug','JuNsD','cBphb','bstackUsername','wrong-creds','NDtZp','JCKOW','exit','bstack-accesskey','epilogue','864QoJSGA','method','uUtIH','IHTIh','GfXdV','requestId','LPrqk','command','writeFileSync','joBds','utf-8','ESkAz','RSGBw','strict','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','builder','usage','../config/constants','xjmsH','yuOpL','LUOnX','../utils/userInput','readFileSync','GjQmH','stack','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','154792emBEgm','mgxXx','URYgS','unknown-error','description','izGob','YEGKf','rzSWI','../utils/utilityMethods','DNJFq','jIpSN','help','recommendCommands','CvvgJ','2063020JHjCNe','Hchna','GAZPH','https://','10FWfCJQ','../config/logger','ERROR','QBsqj','url','stringify','Browserstack','parse','BROWSERSTACK_USERNAME','DlPQp','BdYLO','bstackAccesskey','hebfR','vLwsl','init-called','argv','eUxxD','GchnM','existsSync','80890iVliFP','jCdQM','NaFAX','Ayzmz','2957916XbcBCy','AbzDl','VMUbN','init','uuid','options','14nVjvLV','GET','mkdirSync','ePHpa','RtMKP','username','bstack-username','kDgpm','mYvgi','WGMWs','BROWSERSTACK_ACCESS_KEY','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','fFlCi','zQPqB','9102786cusIXu','RGTWh','env','wtPYu','VXnOn','BmQtB','error','WEblr','type','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','CjPfq','1853022YoTeCE'];a12_0x80e7=function(){return _0x58e427;};return a12_0x80e7();}
1
+ const a12_0x1e5975=a12_0x4aa5;function a12_0x4aa5(_0x264c0b,_0x36cbc9){const _0x11ceb5=a12_0x11ce();return a12_0x4aa5=function(_0x4aa5da,_0x4014f0){_0x4aa5da=_0x4aa5da-0xcb;let _0x4e15af=_0x11ceb5[_0x4aa5da];return _0x4e15af;},a12_0x4aa5(_0x264c0b,_0x36cbc9);}(function(_0x5beea5,_0x4f5377){const _0x2e6fb3=a12_0x4aa5,_0x23f70f=_0x5beea5();while(!![]){try{const _0x47a193=parseInt(_0x2e6fb3(0x123))/0x1+-parseInt(_0x2e6fb3(0xce))/0x2+parseInt(_0x2e6fb3(0xf9))/0x3*(parseInt(_0x2e6fb3(0xcc))/0x4)+parseInt(_0x2e6fb3(0xcd))/0x5+-parseInt(_0x2e6fb3(0xd5))/0x6*(-parseInt(_0x2e6fb3(0x12b))/0x7)+-parseInt(_0x2e6fb3(0x113))/0x8+parseInt(_0x2e6fb3(0x107))/0x9*(-parseInt(_0x2e6fb3(0x109))/0xa);if(_0x47a193===_0x4f5377)break;else _0x23f70f['push'](_0x23f70f['shift']());}catch(_0x548110){_0x23f70f['push'](_0x23f70f['shift']());}}}(a12_0x11ce,0xeb75f));const fs=require('fs'),util=require(a12_0x1e5975(0xf6)),request=require('request'),{v4:uuidv4}=require('uuid'),{logger}=require(a12_0x1e5975(0x125)),{inputBstackKeys}=require(a12_0x1e5975(0x133)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath}=require(a12_0x1e5975(0xef)),{sendInstrumentationEvent}=require(a12_0x1e5975(0xe2)),promisifiedRequest=util[a12_0x1e5975(0x12c)](request);function a12_0x11ce(){const _0x509e38=['exit','kpjOE','usage','sjZKV','dAAzy','SDReV','5708180jiKaqz','8091120whWAdF','3354706mjhqvF','CjjIu','command','YFKAW','requestId','OElun','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','283218WZyVie','Browserstack','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','username','NqlCN','KwjtJ','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','epilogue','xiXmp','vIQVS','tKbHQ','bstack-accesskey','rdKQR','../utils/instrumentationUtils','stringify','TTzyB','wSIXT','tYVcS','strict','EKlPl','ElIUs','/automate/plan.json','FQWbh','options','xgqON','builder','../utils/utilityMethods','existsSync','PQPKV','handler','argv','GET','statusCode','util','JjmBf','mkdirSync','3uQvFTC','BxeMh','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','eyAAD','debug','wxfRD','adNTE','mffPG','liXbr','jJlzU','AySPd','wSuzj','description','bstackAccesskey','1935801oGSnUu','kSISW','60AewvOG','uwnwt','password','BROWSERSTACK_USERNAME','url','readFileSync','FXUiX','BROWSERSTACK_ACCESS_KEY','ooZOQ','BkMsQ','10534208ZwHRaq','OobVz','ZtKmr','parse','kvvzP','zEutx','bstack-username','YKxfp','recommendCommands','AWOzb','TsraX','string','env','GTANw','bstackUsername','gbhqX','1590202bpMIye','EtPuX','../config/logger','method','type','gzoJj','xGncZ','init-called','91XVWSBU','promisify','unknown-error','qoxMV','SxoFm','ZtshX','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','writeFileSync','../utils/userInput','help','init','QbXcX','QXHvE','ERROR','kJkKl'];a12_0x11ce=function(){return _0x509e38;};return a12_0x11ce();}exports[a12_0x1e5975(0xd0)]='init',exports['desc']=a12_0x1e5975(0x131),exports[a12_0x1e5975(0xee)]=function(_0x42b2ff){const _0x2b97e3=a12_0x1e5975,_0x509bf2={};_0x509bf2[_0x2b97e3(0x108)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x509bf2[_0x2b97e3(0x117)]='string',_0x509bf2['mffPG']=_0x2b97e3(0xd4),_0x509bf2[_0x2b97e3(0x137)]='help';const _0x445ed4=_0x509bf2,_0x595301={};_0x595301[_0x2b97e3(0x105)]=_0x445ed4[_0x2b97e3(0x108)],_0x595301[_0x2b97e3(0x127)]=_0x445ed4[_0x2b97e3(0x117)];const _0x1964d3={};_0x1964d3[_0x2b97e3(0x105)]=_0x445ed4[_0x2b97e3(0x100)],_0x1964d3[_0x2b97e3(0x127)]=_0x445ed4['kvvzP'];const _0x147f17={};return _0x147f17[_0x2b97e3(0x119)]=_0x595301,_0x147f17[_0x2b97e3(0xe0)]=_0x1964d3,_0x42b2ff[_0x2b97e3(0x13c)](HELP_HEADER_MESSAGE[_0x2b97e3(0x135)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2b97e3(0xec)](_0x147f17)[_0x2b97e3(0x11b)]()[_0x2b97e3(0xe7)]()[_0x2b97e3(0x134)](_0x445ed4[_0x2b97e3(0x137)])[_0x2b97e3(0xf3)];},exports[a12_0x1e5975(0xf2)]=async function(_0x466b5a){const _0xe604c7=a12_0x1e5975,_0x243a59={'BkMsQ':function(_0x29b377){return _0x29b377();},'gbhqX':'utf-8','yvnfb':_0xe604c7(0xfb),'wxfRD':_0xe604c7(0x11e),'OElun':_0xe604c7(0xd4),'GTANw':_0xe604c7(0x134),'nVAMM':function(_0x595015){return _0x595015();},'wSIXT':function(_0x33e646,_0x142e45,_0x2ae4f9,_0xb49d84,_0x4e837f,_0x4e69f6,_0x264c2f){return _0x33e646(_0x142e45,_0x2ae4f9,_0xb49d84,_0x4e837f,_0x4e69f6,_0x264c2f);},'wSuzj':_0xe604c7(0x12a),'sjZKV':function(_0x563b0a){return _0x563b0a();},'rdKQR':function(_0x471e4f,_0xa4f09e){return _0x471e4f===_0xa4f09e;},'FQWbh':_0xe604c7(0x13b),'xiXmp':function(_0x347134,_0xb3b6b7){return _0x347134===_0xb3b6b7;},'RpmzN':_0xe604c7(0xd1),'SDReV':_0xe604c7(0x10a),'AWOzb':function(_0x592f06,_0x4844f2){return _0x592f06===_0x4844f2;},'eyAAD':_0xe604c7(0xf1),'DTqyI':_0xe604c7(0x12f),'ElIUs':function(_0x39a222,_0x150876){return _0x39a222===_0x150876;},'zEutx':_0xe604c7(0x129),'mGfOp':_0xe604c7(0xe6),'adNTE':function(_0x535f80,_0xdd21e1){return _0x535f80!==_0xdd21e1;},'xgqON':'iRsaP','CjjIu':_0xe604c7(0x130),'qoxMV':function(_0x3898f3,_0x50ae76){return _0x3898f3===_0x50ae76;},'FXUiX':function(_0x4e1aa9,_0x44f5f1){return _0x4e1aa9===_0x44f5f1;},'liXbr':function(_0x4e6918,_0x768270){return _0x4e6918!==_0x768270;},'ooZOQ':_0xe604c7(0x124),'AySPd':_0xe604c7(0xde),'OobVz':_0xe604c7(0xdb),'dAAzy':function(_0x3c7c5a){return _0x3c7c5a();},'YKxfp':_0xe604c7(0xf4),'JjmBf':function(_0x3827ba,_0x5825ff){return _0x3827ba(_0x5825ff);},'jJlzU':function(_0x149727,_0x785b37){return _0x149727!==_0x785b37;},'kkRiP':function(_0x1fa656,_0x377d3e){return _0x1fa656===_0x377d3e;},'gzoJj':_0xe604c7(0xe4),'aTBcQ':'YEqjl','tKbHQ':_0xe604c7(0xd9),'BxeMh':_0xe604c7(0xe8),'QbXcX':'WXwDn','ZtKmr':_0xe604c7(0x11d),'KwjtJ':_0xe604c7(0xd7),'kJkKl':function(_0x51de3d,_0x3e35d2,_0x83209d,_0x1cc7dd,_0x485c99,_0x57e9c7,_0x345546){return _0x51de3d(_0x3e35d2,_0x83209d,_0x1cc7dd,_0x485c99,_0x57e9c7,_0x345546);},'tNuHS':'wrong-creds','rigZK':function(_0x54a2f2,_0x10a544,_0x5557a1,_0x1f9a16,_0x3a5283,_0x14b275,_0x3a0a29){return _0x54a2f2(_0x10a544,_0x5557a1,_0x1f9a16,_0x3a5283,_0x14b275,_0x3a0a29);},'BlhyR':_0xe604c7(0x12d)};try{global_registry[_0xe604c7(0xd2)]=_0x243a59['nVAMM'](uuidv4),_0x243a59[_0xe604c7(0xe5)](sendInstrumentationEvent,_0x466b5a,_0x243a59[_0xe604c7(0x104)],messageTypes['INFO'],null,null,_0x466b5a);const _0x22636e=_0x243a59[_0xe604c7(0x13d)](getDirForConfig);!fs[_0xe604c7(0xf0)](_0x22636e)&&(_0x243a59[_0xe604c7(0xe1)](_0x243a59[_0xe604c7(0xeb)],_0x243a59[_0xe604c7(0xeb)])?fs[_0xe604c7(0xf8)](_0x22636e):_0x9634d8=_0x469431['env'][_0xe604c7(0x10c)]);let _0x597b20,_0x5bb9fa;if(process[_0xe604c7(0x11f)][_0xe604c7(0x10c)]){if(_0x243a59[_0xe604c7(0xdd)](_0x243a59['RpmzN'],_0x243a59[_0xe604c7(0xcb)])){let _0x30f8d9={};const _0x27826b=_0x243a59[_0xe604c7(0x112)](_0x1d495f);_0x335cf3[_0xe604c7(0xf0)](_0x27826b)&&(_0x30f8d9=_0x1cab7a[_0xe604c7(0x116)](_0x73fae2[_0xe604c7(0x10e)](_0x27826b,_0x243a59[_0xe604c7(0x122)])));const _0x2b9f14={};_0x2b9f14[_0xe604c7(0xd8)]=_0x31d090,_0x2b9f14[_0xe604c7(0x10b)]=_0x2afde3,_0x30f8d9[_0xe604c7(0xd6)]=_0x2b9f14,_0x3c795b[_0xe604c7(0x132)](_0x27826b,_0x36b18b[_0xe604c7(0xe3)](_0x30f8d9)),_0x9ae8be[_0xe604c7(0x13a)](0x0);}else _0x597b20=process[_0xe604c7(0x11f)][_0xe604c7(0x10c)];}process[_0xe604c7(0x11f)][_0xe604c7(0x110)]&&(_0x243a59[_0xe604c7(0x11c)](_0x243a59[_0xe604c7(0xfc)],_0x243a59['DTqyI'])?_0x1e1b66[_0xe604c7(0xf8)](_0xe491ec):_0x5bb9fa=process[_0xe604c7(0x11f)][_0xe604c7(0x110)]);if(_0x466b5a[_0xe604c7(0x121)]){if(_0x243a59[_0xe604c7(0xe9)](_0x243a59[_0xe604c7(0x118)],_0x243a59['mGfOp'])){const _0x50de67={};_0x50de67[_0xe604c7(0x105)]=_0x243a59['yvnfb'],_0x50de67['type']=_0x243a59[_0xe604c7(0xfe)];const _0x59f816={};_0x59f816[_0xe604c7(0x105)]=_0x243a59[_0xe604c7(0xd3)],_0x59f816[_0xe604c7(0x127)]=_0x243a59[_0xe604c7(0xfe)];const _0x283487={};return _0x283487[_0xe604c7(0x119)]=_0x50de67,_0x283487[_0xe604c7(0xe0)]=_0x59f816,_0x1bc7d3['usage'](_0x132790['init'])[_0xe604c7(0xdc)](_0x39c1ba)[_0xe604c7(0xec)](_0x283487)[_0xe604c7(0x11b)]()['strict']()[_0xe604c7(0x134)](_0x243a59[_0xe604c7(0x120)])[_0xe604c7(0xf3)];}else _0x597b20=_0x466b5a[_0xe604c7(0x121)];}_0x466b5a[_0xe604c7(0x106)]&&(_0x243a59[_0xe604c7(0xff)](_0x243a59[_0xe604c7(0xed)],_0x243a59[_0xe604c7(0xcf)])?_0x5bb9fa=_0x466b5a[_0xe604c7(0x106)]:_0x5f3cda=_0x462b23[_0xe604c7(0x121)]);if(_0x243a59['qoxMV'](_0x597b20,undefined)||_0x243a59[_0xe604c7(0x10f)](_0x5bb9fa,undefined)){if(_0x243a59['liXbr'](_0x243a59[_0xe604c7(0x111)],_0x243a59[_0xe604c7(0x103)])){logger[_0xe604c7(0xfd)](_0x243a59[_0xe604c7(0x114)]);const [_0x4a2399,_0x35915e]=await _0x243a59[_0xe604c7(0x13e)](inputBstackKeys);_0x597b20=_0x4a2399,_0x5bb9fa=_0x35915e;}else _0x202074=_0x5ca061[_0xe604c7(0x116)](_0x32e805['readFileSync'](_0x57ea19,_0x243a59[_0xe604c7(0x122)]));}let _0x8a600f=![];const _0x5aa70a={};_0x5aa70a[_0xe604c7(0x10d)]='https://'+_0x597b20+':'+_0x5bb9fa+'@'+BS_API_URL+_0xe604c7(0xea),_0x5aa70a[_0xe604c7(0x126)]=_0x243a59[_0xe604c7(0x11a)];const _0x5418af=_0x5aa70a,_0x1be293=await _0x243a59[_0xe604c7(0xf7)](promisifiedRequest,_0x5418af);_0x243a59['adNTE'](_0x1be293,null)&&_0x243a59[_0xe604c7(0x102)](_0x1be293,undefined)&&_0x243a59['kkRiP'](_0x1be293[_0xe604c7(0xf5)],0xc8)&&(_0x243a59[_0xe604c7(0x102)](_0x243a59[_0xe604c7(0x128)],_0x243a59['aTBcQ'])?_0x8a600f=!![]:_0x4caac8=_0x429a57['env']['BROWSERSTACK_ACCESS_KEY']);if(_0x8a600f){if(_0x243a59[_0xe604c7(0x101)](_0x243a59[_0xe604c7(0xdf)],_0x243a59[_0xe604c7(0xfa)])){let _0x35f405={};const _0x14cf40=_0x243a59[_0xe604c7(0x112)](getCredentialsPath);fs['existsSync'](_0x14cf40)&&(_0x243a59[_0xe604c7(0x12e)](_0x243a59[_0xe604c7(0x136)],_0x243a59[_0xe604c7(0x115)])?_0xfb2b5f=_0x5a9632['bstackAccesskey']:_0x35f405=JSON[_0xe604c7(0x116)](fs[_0xe604c7(0x10e)](_0x14cf40,_0x243a59[_0xe604c7(0x122)])));const _0xfed209={};_0xfed209[_0xe604c7(0xd8)]=_0x597b20,_0xfed209['password']=_0x5bb9fa,_0x35f405[_0xe604c7(0xd6)]=_0xfed209,fs[_0xe604c7(0x132)](_0x14cf40,JSON[_0xe604c7(0xe3)](_0x35f405)),process['exit'](0x0);}else _0x9408b8=!![];}else logger['error'](_0x243a59[_0xe604c7(0xda)]),await _0x243a59[_0xe604c7(0x139)](sendInstrumentationEvent,_0x466b5a,_0x243a59[_0xe604c7(0x104)],messageTypes[_0xe604c7(0x138)],_0x243a59['tNuHS'],null,_0x466b5a),process[_0xe604c7(0x13a)](0x1);}catch(_0x50a11e){logger['error'](_0x50a11e['stack']),await _0x243a59['rigZK'](sendInstrumentationEvent,_0x466b5a,_0x243a59[_0xe604c7(0x104)],messageTypes[_0xe604c7(0x138)],_0x243a59['BlhyR'],_0x50a11e,_0x466b5a),process['exit'](0x1);}};
@@ -1 +1 @@
1
- const a13_0x594484=a13_0x1774;(function(_0x1593f7,_0x33bc04){const _0x50bfba=a13_0x1774,_0x522b=_0x1593f7();while(!![]){try{const _0x5b1368=-parseInt(_0x50bfba(0xba))/0x1*(parseInt(_0x50bfba(0xb6))/0x2)+-parseInt(_0x50bfba(0xae))/0x3*(-parseInt(_0x50bfba(0xbc))/0x4)+parseInt(_0x50bfba(0xbe))/0x5+parseInt(_0x50bfba(0xaa))/0x6*(-parseInt(_0x50bfba(0xb3))/0x7)+-parseInt(_0x50bfba(0xb1))/0x8*(-parseInt(_0x50bfba(0xb9))/0x9)+-parseInt(_0x50bfba(0xb4))/0xa*(parseInt(_0x50bfba(0xbb))/0xb)+parseInt(_0x50bfba(0xa8))/0xc;if(_0x5b1368===_0x33bc04)break;else _0x522b['push'](_0x522b['shift']());}catch(_0x43fe68){_0x522b['push'](_0x522b['shift']());}}}(a13_0x4389,0xbb77a));function a13_0x1774(_0x5ae41f,_0xb9ec63){const _0x438939=a13_0x4389();return a13_0x1774=function(_0x1774e5,_0x4222c6){_0x1774e5=_0x1774e5-0xa4;let _0x118a64=_0x438939[_0x1774e5];return _0x118a64;},a13_0x1774(_0x5ae41f,_0xb9ec63);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x594484(0xab));function a13_0x4389(){const _0x55bcd0=['handler','300870qxBhRn','15XHybpp','8558uiJxLZ','57756wAunuR','list_commands','4740625pDvCgr','builder','desc','commandDir','list','22803876zdLeIe','command','42LTbkNR','../config/constants','demandCommand','root','12bszOsQ','epilogue','LylIM','40vuljiE','strict','1316462zihOld','10270DaUiaX','yLbei','25336BcscTL','help'];a13_0x4389=function(){return _0x55bcd0;};return a13_0x4389();}exports[a13_0x594484(0xa9)]=a13_0x594484(0xa7),exports[a13_0x594484(0xa5)]='List\x20down\x20the\x20Grid\x20resources.',exports[a13_0x594484(0xa4)]=function(_0x313e77){const _0xff7ee5=a13_0x594484,_0x46272a={};_0x46272a[_0xff7ee5(0xb5)]=_0xff7ee5(0xbd),_0x46272a[_0xff7ee5(0xb0)]=_0xff7ee5(0xb7);const _0xf37200=_0x46272a;return _0x313e77[_0xff7ee5(0xa6)](_0xf37200[_0xff7ee5(0xb5)])[_0xff7ee5(0xac)]()['usage'](HELP_HEADER_MESSAGE['list'][_0xff7ee5(0xad)])[_0xff7ee5(0xaf)](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0xff7ee5(0xb2)]()[_0xff7ee5(0xb7)](_0xf37200[_0xff7ee5(0xb0)]);},exports[a13_0x594484(0xb8)]=function(_0x5e6c46){};
1
+ function a13_0x1376(_0x41faa8,_0x4ba6ab){const _0x3516bf=a13_0x3516();return a13_0x1376=function(_0x13766a,_0x3f2d45){_0x13766a=_0x13766a-0x1b7;let _0x3d59dc=_0x3516bf[_0x13766a];return _0x3d59dc;},a13_0x1376(_0x41faa8,_0x4ba6ab);}const a13_0x474214=a13_0x1376;(function(_0x4bf4a3,_0x206937){const _0x24ded7=a13_0x1376,_0x409339=_0x4bf4a3();while(!![]){try{const _0x74d1a9=-parseInt(_0x24ded7(0x1b9))/0x1+-parseInt(_0x24ded7(0x1bd))/0x2*(-parseInt(_0x24ded7(0x1b8))/0x3)+-parseInt(_0x24ded7(0x1c2))/0x4+parseInt(_0x24ded7(0x1b7))/0x5+parseInt(_0x24ded7(0x1c0))/0x6+parseInt(_0x24ded7(0x1c4))/0x7+-parseInt(_0x24ded7(0x1c9))/0x8;if(_0x74d1a9===_0x206937)break;else _0x409339['push'](_0x409339['shift']());}catch(_0x4eed90){_0x409339['push'](_0x409339['shift']());}}}(a13_0x3516,0x681c8));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a13_0x3516(){const _0xdd7a17=['usage','589975lJGSfw','212799TxzgiS','285820KkmIpl','help','list','jNYuR','18iikadb','desc','root','1806006DwWNdx','list_commands','1421388XMtCfi','builder','5654992wjGyfK','strict','epilogue','command','commandDir','6381136KaHgWz','NCnKo','demandCommand'];a13_0x3516=function(){return _0xdd7a17;};return a13_0x3516();}exports[a13_0x474214(0x1c7)]=a13_0x474214(0x1bb),exports[a13_0x474214(0x1be)]='List\x20down\x20the\x20Grid\x20resources.',exports[a13_0x474214(0x1c3)]=function(_0x3d491d){const _0x1460c2=a13_0x474214,_0x15ef6c={};_0x15ef6c[_0x1460c2(0x1ca)]=_0x1460c2(0x1c1),_0x15ef6c[_0x1460c2(0x1bc)]=_0x1460c2(0x1ba);const _0x264297=_0x15ef6c;return _0x3d491d[_0x1460c2(0x1c8)](_0x264297[_0x1460c2(0x1ca)])[_0x1460c2(0x1cb)]()[_0x1460c2(0x1cc)](HELP_HEADER_MESSAGE[_0x1460c2(0x1bb)][_0x1460c2(0x1bf)])[_0x1460c2(0x1c6)](HELP_FOOTER_MESSAGE)['recommendCommands']()[_0x1460c2(0x1c5)]()[_0x1460c2(0x1ba)](_0x264297[_0x1460c2(0x1bc)]);},exports['handler']=function(_0x117a72){};
@@ -1 +1 @@
1
- function a14_0x3058(){const _0x52d881=['grid-profile-name','https://','username','password','wqqIx','forEach','allGridProfiles','init-not-called','push','log','AvNiV','grid-profiles','rJKJZ','kmFeR','18520erjZHp','concurrency','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','util','6779312tWCyDL','sVezr','ERROR','usage','unknown-error','handler','desc','help','error','1736588SPYPQf','GET','promisify','cloud-provider','list','statusCode','exit','1810188WWshgq','kYuuT','body','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','region','stack','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','UuzSd','/packages/cli/get-all-grid-profiles','Browserstack','stringify','table','bsqVv','2199792vtCJea','gridProfile','description','bstackUsername','/packages/cli/get-grid-profiles','url','wZLXu','idkFn','PAPYh','../../utils/instrumentationUtils','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','426gRIgHr','server-error','Failed\x20to\x20list\x20resources!\x20Error:\x20','eQCaA','CyZHB','bstackAccesskey','pYcGg','request','parse','cloudProvider','boolean','GBkVZ','730628ptNlaM','2hDrGND','options','existsSync','uuid','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','unauthorised','pZesI','INFO','readFileSync','method','euznA','sREwD','requestId','builder','auth','ZXCZd','uCiKG','argv','451497aTBKUa','name'];a14_0x3058=function(){return _0x52d881;};return a14_0x3058();}const a14_0x5dfe3d=a14_0x3308;(function(_0x737a0f,_0x266c2d){const _0x45fe4e=a14_0x3308,_0x9c034=_0x737a0f();while(!![]){try{const _0x4b0971=-parseInt(_0x45fe4e(0xaf))/0x1*(-parseInt(_0x45fe4e(0xb0))/0x2)+-parseInt(_0x45fe4e(0xc2))/0x3+parseInt(_0x45fe4e(0xf3))/0x4+parseInt(_0x45fe4e(0xd2))/0x5*(parseInt(_0x45fe4e(0xa3))/0x6)+-parseInt(_0x45fe4e(0xdf))/0x7+-parseInt(_0x45fe4e(0xd6))/0x8+parseInt(_0x45fe4e(0xe6))/0x9;if(_0x4b0971===_0x266c2d)break;else _0x9c034['push'](_0x9c034['shift']());}catch(_0x137499){_0x9c034['push'](_0x9c034['shift']());}}}(a14_0x3058,0x79c07));const fs=require('fs'),util=require(a14_0x5dfe3d(0xd5)),request=require(a14_0x5dfe3d(0xaa)),{table}=require(a14_0x5dfe3d(0xf1)),{v4:uuidv4}=require(a14_0x5dfe3d(0xb3)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x5dfe3d(0xa1)),promisifiedRequest=util[a14_0x5dfe3d(0xe1)](request);function a14_0x3308(_0x19392f,_0x19f474){const _0x30584b=a14_0x3058();return a14_0x3308=function(_0x3308fe,_0x928f7){_0x3308fe=_0x3308fe-0x9f;let _0x575d8f=_0x30584b[_0x3308fe];return _0x575d8f;},a14_0x3308(_0x19392f,_0x19f474);}exports['command']=a14_0x5dfe3d(0xcf),exports[a14_0x5dfe3d(0xdc)]=a14_0x5dfe3d(0xd4),exports[a14_0x5dfe3d(0xbd)]=function(_0x18712a){const _0x53e791=a14_0x5dfe3d,_0x5a8045={};_0x5a8045[_0x53e791(0xae)]=_0x53e791(0xe9),_0x5a8045['idkFn']=_0x53e791(0xad),_0x5a8045[_0x53e791(0xc0)]=_0x53e791(0xdd);const _0x5f5202=_0x5a8045,_0x9f105b={};_0x9f105b[_0x53e791(0xf5)]=_0x5f5202[_0x53e791(0xae)],_0x9f105b['type']=_0x5f5202[_0x53e791(0x9f)];const _0x3453a8={};return _0x3453a8['all-grid-profiles']=_0x9f105b,_0x18712a[_0x53e791(0xd9)](HELP_HEADER_MESSAGE[_0x53e791(0xe3)][_0x53e791(0xf4)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x53e791(0xb1)](_0x3453a8)[_0x53e791(0xdd)](_0x5f5202['uCiKG'])[_0x53e791(0xc1)];},exports[a14_0x5dfe3d(0xdb)]=async function(_0x363c13){const _0x2e87af=a14_0x5dfe3d,_0x5e60d7={'ZXCZd':function(_0x1eb097){return _0x1eb097();},'pZesI':function(_0x280e21){return _0x280e21();},'AvNiV':_0x2e87af(0xec),'eQCaA':function(_0x16eece,_0xd5d84f,_0x39159d,_0x5bb133,_0x3ee9ae,_0x15c948,_0x552dd7){return _0x16eece(_0xd5d84f,_0x39159d,_0x5bb133,_0x3ee9ae,_0x15c948,_0x552dd7);},'CyZHB':'list-grid-profiles-called','kjdKy':_0x2e87af(0xcb),'zuHZm':function(_0x37ea91,_0x42a634,_0x520d7e,_0x6e69d9,_0x215b7c,_0x5be202,_0x1ce530){return _0x37ea91(_0x42a634,_0x520d7e,_0x6e69d9,_0x215b7c,_0x5be202,_0x1ce530);},'bsqVv':_0x2e87af(0xe0),'rJKJZ':function(_0x58a98f,_0x239997){return _0x58a98f(_0x239997);},'wqqIx':function(_0x53c8ec,_0x10d361){return _0x53c8ec!==_0x10d361;},'hqWcs':function(_0x271517,_0x1e2666){return _0x271517!==_0x1e2666;},'kmFeR':function(_0x194d32,_0x153ab9){return _0x194d32===_0x153ab9;},'sVezr':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','kAxoN':_0x2e87af(0xc4),'PxTSG':_0x2e87af(0xe2),'pYcGg':_0x2e87af(0xea),'euznA':'concurrency','sREwD':function(_0x46dd29,_0x3cc2b7){return _0x46dd29(_0x3cc2b7);},'AYCVB':function(_0x156b2c,_0x31a5cc){return _0x156b2c===_0x31a5cc;},'UuzSd':function(_0x3764e5,_0x3d34c6,_0x961d19,_0xf94ece,_0x48019f,_0x2f6655,_0x367400){return _0x3764e5(_0x3d34c6,_0x961d19,_0xf94ece,_0x48019f,_0x2f6655,_0x367400);},'wZLXu':_0x2e87af(0xb5),'kYuuT':function(_0x3c2826,_0x3292be,_0x10af17,_0x4fa161,_0x479664,_0x3b0ec8,_0x1cc06b){return _0x3c2826(_0x3292be,_0x10af17,_0x4fa161,_0x479664,_0x3b0ec8,_0x1cc06b);},'iFUAZ':_0x2e87af(0xa4),'eEbUr':function(_0x4b5513,_0x5661d7,_0xca1367,_0x3ff9e3,_0x2bd413,_0x240afb,_0x58d667){return _0x4b5513(_0x5661d7,_0xca1367,_0x3ff9e3,_0x2bd413,_0x240afb,_0x58d667);},'PAPYh':_0x2e87af(0xda)};try{global_registry[_0x2e87af(0xbc)]=_0x5e60d7[_0x2e87af(0xbf)](uuidv4);let _0x3fa72e=_0x2e87af(0xc5)+AG_API_URL+_0x2e87af(0xf7);_0x363c13[_0x2e87af(0xca)]&&(_0x3fa72e=_0x2e87af(0xc5)+AG_API_URL+_0x2e87af(0xee));!fs[_0x2e87af(0xb2)](_0x5e60d7[_0x2e87af(0xb6)](getCredentialsPath))&&(console[_0x2e87af(0xde)](_0x5e60d7[_0x2e87af(0xce)]),await _0x5e60d7[_0x2e87af(0xa6)](sendInstrumentationEvent,_0x363c13,_0x5e60d7[_0x2e87af(0xa7)],messageTypes[_0x2e87af(0xd8)],_0x5e60d7['kjdKy'],null,_0x363c13),process[_0x2e87af(0xe5)](0x1));_0x5e60d7['zuHZm'](sendInstrumentationEvent,_0x363c13,_0x5e60d7[_0x2e87af(0xa7)],messageTypes[_0x2e87af(0xb7)],null,null,_0x363c13);const _0x4e0510=JSON[_0x2e87af(0xab)](fs[_0x2e87af(0xb8)](_0x5e60d7[_0x2e87af(0xbf)](getCredentialsPath))),_0x5706d3={};_0x5706d3[_0x2e87af(0xc6)]=_0x4e0510[_0x2e87af(0xef)]['username'],_0x5706d3[_0x2e87af(0xc7)]=_0x4e0510[_0x2e87af(0xef)][_0x2e87af(0xc7)];const _0x49edd3={};_0x49edd3[_0x2e87af(0xf8)]=_0x3fa72e,_0x49edd3[_0x2e87af(0xb9)]=_0x5e60d7[_0x2e87af(0xf2)],_0x49edd3[_0x2e87af(0xbe)]=_0x5706d3;const _0x217b54=_0x49edd3;global_registry[_0x2e87af(0xf6)]=_0x4e0510[_0x2e87af(0xef)][_0x2e87af(0xc6)],global_registry[_0x2e87af(0xa8)]=_0x4e0510[_0x2e87af(0xef)][_0x2e87af(0xc7)];const _0xc54b34=await _0x5e60d7[_0x2e87af(0xd0)](promisifiedRequest,_0x217b54);if(_0x5e60d7[_0x2e87af(0xc8)](_0xc54b34,null)&&_0x5e60d7['hqWcs'](_0xc54b34,undefined)&&_0x5e60d7[_0x2e87af(0xd1)](_0xc54b34[_0x2e87af(0xe4)],0xc8)){const _0x3ec0d9=JSON[_0x2e87af(0xab)](_0xc54b34[_0x2e87af(0xe8)]);console[_0x2e87af(0xcd)](_0x5e60d7[_0x2e87af(0xd7)]);const _0x143151=[];_0x143151[_0x2e87af(0xcc)]([_0x5e60d7['kAxoN'],_0x5e60d7['PxTSG'],_0x5e60d7[_0x2e87af(0xa9)],_0x5e60d7[_0x2e87af(0xba)]]),_0x3ec0d9[_0x2e87af(0xc9)](_0x337514=>{const _0x6a2761=_0x2e87af;_0x143151[_0x6a2761(0xcc)]([_0x337514[_0x6a2761(0xc3)],_0x337514[_0x6a2761(0xac)],_0x337514[_0x6a2761(0xea)],_0x337514[_0x6a2761(0xd3)]]);}),console[_0x2e87af(0xcd)](_0x5e60d7[_0x2e87af(0xbb)](table,_0x143151)),process[_0x2e87af(0xe5)](0x0);}_0x5e60d7['AYCVB'](_0xc54b34[_0x2e87af(0xe4)],0x191)&&(console[_0x2e87af(0xde)](_0x2e87af(0xb4)),await _0x5e60d7[_0x2e87af(0xed)](sendInstrumentationEvent,_0x363c13,_0x5e60d7[_0x2e87af(0xa7)],messageTypes[_0x2e87af(0xd8)],_0x5e60d7[_0x2e87af(0xf9)],null,_0x363c13),process[_0x2e87af(0xe5)](0x1)),console['error'](_0x2e87af(0xa2)+JSON[_0x2e87af(0xf0)](_0xc54b34)),await _0x5e60d7[_0x2e87af(0xe7)](sendInstrumentationEvent,_0x363c13,_0x5e60d7[_0x2e87af(0xa7)],messageTypes[_0x2e87af(0xd8)],_0x5e60d7['iFUAZ'],_0xc54b34,_0x363c13),process['exit'](0x1);}catch(_0x161912){console[_0x2e87af(0xde)](_0x2e87af(0xa5)+_0x161912[_0x2e87af(0xeb)]),await _0x5e60d7['eEbUr'](sendInstrumentationEvent,_0x363c13,_0x5e60d7[_0x2e87af(0xa7)],messageTypes[_0x2e87af(0xd8)],_0x5e60d7[_0x2e87af(0xa0)],_0x161912,_0x363c13),process['exit'](0x1);}};
1
+ const a14_0x337666=a14_0x2468;function a14_0x3e37(){const _0xba0b57=['request','973304pOcHJx','308KSIdEh','SALxm','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','EGVTK','ayAfd','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','cloudProvider','concurrency','bstackUsername','auth','cloud-provider','allGridProfiles','server-error','rrjto','list','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','exit','log','command','SlKQp','options','730RiQFSk','2403192bkkpKr','nyWKw','name','../../config/constants','description','EOPiF','readFileSync','wbsMV','parse','password','722380hjRNyj','username','../../utils/utilityMethods','qeGsW','uuid','hGPjK','14MPEezr','bstackAccesskey','unauthorised','3011670qvfMTy','Ntilr','SmFLi','boolean','requestId','1234563qdOELP','statusCode','help','MZtyT','unknown-error','type','dWBCp','2996PErtAQ','grid-profiles','GET','init-not-called','region','/packages/cli/get-all-grid-profiles','push','argv','usage','jTGaV','util','bYsGO','ERROR','list-grid-profiles-called','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','Browserstack','all-grid-profiles','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','forEach','stack','error','SfZhD','desc','dIMpM','mUnEU','/packages/cli/get-grid-profiles','91017myjavP','handler','BtcCC'];a14_0x3e37=function(){return _0xba0b57;};return a14_0x3e37();}(function(_0x4c3016,_0x26ca5c){const _0x4aef2c=a14_0x2468,_0x1b9862=_0x4c3016();while(!![]){try{const _0x16f889=-parseInt(_0x4aef2c(0x83))/0x1*(-parseInt(_0x4aef2c(0xb8))/0x2)+parseInt(_0x4aef2c(0xb1))/0x3+parseInt(_0x4aef2c(0xa3))/0x4+-parseInt(_0x4aef2c(0xac))/0x5+parseInt(_0x4aef2c(0x99))/0x6+parseInt(_0x4aef2c(0xa9))/0x7*(parseInt(_0x4aef2c(0x82))/0x8)+-parseInt(_0x4aef2c(0x7e))/0x9*(parseInt(_0x4aef2c(0x98))/0xa);if(_0x16f889===_0x26ca5c)break;else _0x1b9862['push'](_0x1b9862['shift']());}catch(_0x4f3c15){_0x1b9862['push'](_0x1b9862['shift']());}}}(a14_0x3e37,0x571a7));function a14_0x2468(_0x4982b5,_0x291531){const _0x3e3718=a14_0x3e37();return a14_0x2468=function(_0x2468e4,_0x5e3717){_0x2468e4=_0x2468e4-0x7d;let _0x57a1c9=_0x3e3718[_0x2468e4];return _0x57a1c9;},a14_0x2468(_0x4982b5,_0x291531);}const fs=require('fs'),util=require(a14_0x337666(0xc2)),request=require(a14_0x337666(0x81)),{table}=require('table'),{v4:uuidv4}=require(a14_0x337666(0xa7)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x337666(0x9c)),{getCredentialsPath}=require(a14_0x337666(0xa5)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util['promisify'](request);exports[a14_0x337666(0x95)]=a14_0x337666(0xb9),exports[a14_0x337666(0xce)]=a14_0x337666(0xc9),exports['builder']=function(_0x3fc57a){const _0x22875a=a14_0x337666,_0x30d099={};_0x30d099[_0x22875a(0x80)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x30d099[_0x22875a(0xcd)]=_0x22875a(0xaf),_0x30d099['gplRP']=_0x22875a(0xb3);const _0x3d300f=_0x30d099,_0x3afd2b={};_0x3afd2b[_0x22875a(0x9d)]=_0x3d300f['BtcCC'],_0x3afd2b[_0x22875a(0xb6)]=_0x3d300f['SfZhD'];const _0x32fbd1={};return _0x32fbd1[_0x22875a(0xc8)]=_0x3afd2b,_0x3fc57a[_0x22875a(0xc0)](HELP_HEADER_MESSAGE[_0x22875a(0x91)]['gridProfile'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x22875a(0x97)](_0x32fbd1)[_0x22875a(0xb3)](_0x3d300f['gplRP'])[_0x22875a(0xbf)];},exports[a14_0x337666(0x7f)]=async function(_0x3965e9){const _0x2c9b17=a14_0x337666,_0x3bf8d1={'rxHjp':function(_0x509472){return _0x509472();},'SmFLi':function(_0x45bb89){return _0x45bb89();},'nyWKw':_0x2c9b17(0x88),'Ntilr':function(_0x13ddf7,_0x40adac,_0x22aba0,_0x25816,_0x13a745,_0x508750,_0x55009c){return _0x13ddf7(_0x40adac,_0x22aba0,_0x25816,_0x13a745,_0x508750,_0x55009c);},'wbsMV':_0x2c9b17(0xc5),'dWBCp':_0x2c9b17(0xbb),'bYsGO':function(_0x22feee,_0x507049,_0x535504,_0x371e33,_0x39335f,_0x1a6af1,_0x1af84b){return _0x22feee(_0x507049,_0x535504,_0x371e33,_0x39335f,_0x1a6af1,_0x1af84b);},'jTGaV':function(_0x250df3){return _0x250df3();},'SlKQp':_0x2c9b17(0xba),'mEupq':function(_0x39a4cc,_0x545822){return _0x39a4cc(_0x545822);},'ayAfd':function(_0x11f079,_0x182871){return _0x11f079!==_0x182871;},'rrjto':function(_0x1542ac,_0x16ad79){return _0x1542ac!==_0x16ad79;},'EOPiF':function(_0x265f3e,_0xf4f1dc){return _0x265f3e===_0xf4f1dc;},'hGPjK':_0x2c9b17(0xc6),'bXMSb':'grid-profile-name','MZtyT':_0x2c9b17(0x8d),'kYXwM':'region','qeGsW':_0x2c9b17(0x8a),'HeKJv':function(_0x287389,_0x21fbb0){return _0x287389(_0x21fbb0);},'mUnEU':function(_0x17ba62,_0x5b2e98){return _0x17ba62===_0x5b2e98;},'xVjMf':_0x2c9b17(0xab),'EGVTK':function(_0x247224,_0x5622e9,_0x632a59,_0x2ff92f,_0x46af7c,_0x201b4e,_0x136a79){return _0x247224(_0x5622e9,_0x632a59,_0x2ff92f,_0x46af7c,_0x201b4e,_0x136a79);},'SALxm':_0x2c9b17(0x8f),'dIMpM':_0x2c9b17(0xb5)};try{global_registry[_0x2c9b17(0xb0)]=_0x3bf8d1['rxHjp'](uuidv4);let _0x1a432a='https://'+AG_API_URL+_0x2c9b17(0x7d);_0x3965e9[_0x2c9b17(0x8e)]&&(_0x1a432a='https://'+AG_API_URL+_0x2c9b17(0xbd));!fs['existsSync'](_0x3bf8d1[_0x2c9b17(0xae)](getCredentialsPath))&&(console[_0x2c9b17(0xcc)](_0x3bf8d1[_0x2c9b17(0x9a)]),await _0x3bf8d1[_0x2c9b17(0xad)](sendInstrumentationEvent,_0x3965e9,_0x3bf8d1[_0x2c9b17(0xa0)],messageTypes[_0x2c9b17(0xc4)],_0x3bf8d1[_0x2c9b17(0xb7)],null,_0x3965e9),process['exit'](0x1));_0x3bf8d1[_0x2c9b17(0xc3)](sendInstrumentationEvent,_0x3965e9,_0x3bf8d1['wbsMV'],messageTypes['INFO'],null,null,_0x3965e9);const _0x10fd82=JSON['parse'](fs[_0x2c9b17(0x9f)](_0x3bf8d1[_0x2c9b17(0xc1)](getCredentialsPath))),_0x55b749={};_0x55b749[_0x2c9b17(0xa4)]=_0x10fd82[_0x2c9b17(0xc7)][_0x2c9b17(0xa4)],_0x55b749[_0x2c9b17(0xa2)]=_0x10fd82[_0x2c9b17(0xc7)][_0x2c9b17(0xa2)];const _0x100711={};_0x100711['url']=_0x1a432a,_0x100711['method']=_0x3bf8d1[_0x2c9b17(0x96)],_0x100711[_0x2c9b17(0x8c)]=_0x55b749;const _0x10933f=_0x100711;global_registry[_0x2c9b17(0x8b)]=_0x10fd82['Browserstack'][_0x2c9b17(0xa4)],global_registry[_0x2c9b17(0xaa)]=_0x10fd82[_0x2c9b17(0xc7)]['password'];const _0x5bf7fc=await _0x3bf8d1['mEupq'](promisifiedRequest,_0x10933f);if(_0x3bf8d1[_0x2c9b17(0x87)](_0x5bf7fc,null)&&_0x3bf8d1[_0x2c9b17(0x90)](_0x5bf7fc,undefined)&&_0x3bf8d1[_0x2c9b17(0x9e)](_0x5bf7fc[_0x2c9b17(0xb2)],0xc8)){const _0x5402ee=JSON[_0x2c9b17(0xa1)](_0x5bf7fc['body']);console[_0x2c9b17(0x94)](_0x3bf8d1[_0x2c9b17(0xa8)]);const _0x382984=[];_0x382984[_0x2c9b17(0xbe)]([_0x3bf8d1['bXMSb'],_0x3bf8d1[_0x2c9b17(0xb4)],_0x3bf8d1['kYXwM'],_0x3bf8d1[_0x2c9b17(0xa6)]]),_0x5402ee[_0x2c9b17(0xca)](_0x4dc11c=>{const _0x2a6ab7=_0x2c9b17;_0x382984['push']([_0x4dc11c[_0x2a6ab7(0x9b)],_0x4dc11c[_0x2a6ab7(0x89)],_0x4dc11c[_0x2a6ab7(0xbc)],_0x4dc11c[_0x2a6ab7(0x8a)]]);}),console[_0x2c9b17(0x94)](_0x3bf8d1['HeKJv'](table,_0x382984)),process[_0x2c9b17(0x93)](0x0);}_0x3bf8d1[_0x2c9b17(0xd0)](_0x5bf7fc[_0x2c9b17(0xb2)],0x191)&&(console[_0x2c9b17(0xcc)](_0x2c9b17(0x85)),await _0x3bf8d1[_0x2c9b17(0xad)](sendInstrumentationEvent,_0x3965e9,_0x3bf8d1['wbsMV'],messageTypes['ERROR'],_0x3bf8d1['xVjMf'],null,_0x3965e9),process[_0x2c9b17(0x93)](0x1)),console[_0x2c9b17(0xcc)](_0x2c9b17(0x92)+JSON['stringify'](_0x5bf7fc)),await _0x3bf8d1[_0x2c9b17(0x86)](sendInstrumentationEvent,_0x3965e9,_0x3bf8d1['wbsMV'],messageTypes[_0x2c9b17(0xc4)],_0x3bf8d1[_0x2c9b17(0x84)],_0x5bf7fc,_0x3965e9),process[_0x2c9b17(0x93)](0x1);}catch(_0x72b8ef){console[_0x2c9b17(0xcc)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x72b8ef[_0x2c9b17(0xcb)]),await _0x3bf8d1[_0x2c9b17(0xad)](sendInstrumentationEvent,_0x3965e9,_0x3bf8d1[_0x2c9b17(0xa0)],messageTypes[_0x2c9b17(0xc4)],_0x3bf8d1[_0x2c9b17(0xcf)],_0x72b8ef,_0x3965e9),process[_0x2c9b17(0x93)](0x1);}};
@@ -1 +1 @@
1
- const a15_0x498c00=a15_0xf69b;(function(_0x25b339,_0x4748da){const _0xdc9fe4=a15_0xf69b,_0x16bc51=_0x25b339();while(!![]){try{const _0x39e83d=parseInt(_0xdc9fe4(0xe3))/0x1*(-parseInt(_0xdc9fe4(0xc5))/0x2)+parseInt(_0xdc9fe4(0xe8))/0x3*(parseInt(_0xdc9fe4(0xba))/0x4)+-parseInt(_0xdc9fe4(0xcf))/0x5*(parseInt(_0xdc9fe4(0xe9))/0x6)+-parseInt(_0xdc9fe4(0xbc))/0x7+-parseInt(_0xdc9fe4(0xa0))/0x8*(parseInt(_0xdc9fe4(0xe7))/0x9)+parseInt(_0xdc9fe4(0xbb))/0xa+parseInt(_0xdc9fe4(0xc2))/0xb;if(_0x39e83d===_0x4748da)break;else _0x16bc51['push'](_0x16bc51['shift']());}catch(_0x5a22f3){_0x16bc51['push'](_0x16bc51['shift']());}}}(a15_0x20a7,0xba0bc));const fs=require('fs'),util=require(a15_0x498c00(0xd1)),request=require(a15_0x498c00(0xf3)),{table}=require(a15_0x498c00(0xeb)),{v4:uuidv4}=require(a15_0x498c00(0xb2)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x498c00(0xa9)),{getCredentialsPath}=require(a15_0x498c00(0xc6)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a15_0x498c00(0xcb)](request);function a15_0xf69b(_0x1f7300,_0x242787){const _0x20a777=a15_0x20a7();return a15_0xf69b=function(_0xf69b8e,_0xc4a662){_0xf69b8e=_0xf69b8e-0x99;let _0x11915b=_0x20a777[_0xf69b8e];return _0x11915b;},a15_0xf69b(_0x1f7300,_0x242787);}function a15_0x20a7(){const _0x2aab78=['statusCode','list-grids-called','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','password','waVlj','QAiHd','allGrids','request','type','RNSdN','running','desc','mOoYv','requestId','IvfmD','mOEiY','all-grids','56VCJWbe','push','argv','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/get-all-grids','readFileSync','tqfwZ','sIKPB','https://','../../config/constants','dAMqw','bstackUsername','builder','username','epilogue','cluster-name','INFO','options','uuid','url','name','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','status','exit','qQCwQ','vglFT','2040niwKdT','6026760HMWQCu','6615553nfkFur','nlhgb','handler','tDHZX','grid-name','BULwH','18969159EQUwfO','log','init-not-called','2968142CDqXpG','../../utils/utilityMethods','body','ERROR','Failed\x20to\x20list\x20resources!\x20Error:\x20','error','promisify','JvfGl','unknown-error','grid','55XXvQWK','unauthorised','util','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','command','grids','queued','forEach','xOxgt','eMTfW','help','FMHEo','Browserstack','stack','clusterName','/packages/cli/get-grids','server-error','grNOL','tqRyg','parse','1XSNYOZ','auth','GET','kKZNg','516546SvgQCm','8517BlQWOc','99318YgeMvG','YyiCp','table'];a15_0x20a7=function(){return _0x2aab78;};return a15_0x20a7();}exports[a15_0x498c00(0xd3)]=a15_0x498c00(0xd4),exports[a15_0x498c00(0x9a)]=a15_0x498c00(0xb5),exports[a15_0x498c00(0xac)]=function(_0x576909){const _0x1b8285=a15_0x498c00,_0x1c1084={};_0x1c1084[_0x1b8285(0x9d)]='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.',_0x1c1084['dAMqw']='boolean',_0x1c1084[_0x1b8285(0xf1)]='help';const _0x555477=_0x1c1084,_0x147605={};_0x147605['description']=_0x555477[_0x1b8285(0x9d)],_0x147605[_0x1b8285(0xf4)]=_0x555477[_0x1b8285(0xaa)];const _0x221170={};return _0x221170[_0x1b8285(0x9f)]=_0x147605,_0x576909['usage'](HELP_HEADER_MESSAGE['list'][_0x1b8285(0xce)])[_0x1b8285(0xae)](HELP_FOOTER_MESSAGE)[_0x1b8285(0xb1)](_0x221170)[_0x1b8285(0xd9)](_0x555477[_0x1b8285(0xf1)])[_0x1b8285(0xa2)];},exports[a15_0x498c00(0xbe)]=async function(_0x42f1f8){const _0x51f36b=a15_0x498c00,_0x5f3637={'YyiCp':function(_0x26786e){return _0x26786e();},'kKZNg':function(_0x56cd14){return _0x56cd14();},'BULwH':_0x51f36b(0xd2),'sIKPB':function(_0x7c9569,_0x3846cd,_0x295631,_0x275503,_0x4e067c,_0x2dbabf,_0x5a0ae0){return _0x7c9569(_0x3846cd,_0x295631,_0x275503,_0x4e067c,_0x2dbabf,_0x5a0ae0);},'vglFT':_0x51f36b(0xed),'FMHEo':_0x51f36b(0xc4),'tqRyg':_0x51f36b(0xe5),'tqfwZ':function(_0x312fc0,_0x1214d7,_0x20fb3c,_0x2febc1,_0x49337a,_0x8e8d5c,_0x16725f){return _0x312fc0(_0x1214d7,_0x20fb3c,_0x2febc1,_0x49337a,_0x8e8d5c,_0x16725f);},'xOxgt':function(_0x3923ce,_0x50c976){return _0x3923ce(_0x50c976);},'mOEiY':function(_0x4b4346,_0x687183){return _0x4b4346!==_0x687183;},'mOoYv':function(_0x44d708,_0x409dc8){return _0x44d708===_0x409dc8;},'grNOL':'\x0aFound\x20the\x20following\x20grids:\x0a','nlhgb':'grid-id','MOZka':_0x51f36b(0xc0),'eMTfW':_0x51f36b(0xb6),'zkDbp':_0x51f36b(0x99),'RNSdN':'queued','JvfGl':_0x51f36b(0xaf),'GIzbA':function(_0x213a01,_0x54d36c){return _0x213a01(_0x54d36c);},'qQCwQ':_0x51f36b(0xd0),'waVlj':_0x51f36b(0xdf),'tDHZX':_0x51f36b(0xcd)};try{global_registry[_0x51f36b(0x9c)]=_0x5f3637[_0x51f36b(0xea)](uuidv4);!fs['existsSync'](_0x5f3637[_0x51f36b(0xe6)](getCredentialsPath))&&(console[_0x51f36b(0xca)](_0x5f3637[_0x51f36b(0xc1)]),await _0x5f3637[_0x51f36b(0xa7)](sendInstrumentationEvent,_0x42f1f8,_0x5f3637[_0x51f36b(0xb9)],messageTypes[_0x51f36b(0xc8)],_0x5f3637[_0x51f36b(0xda)],null,_0x42f1f8),process[_0x51f36b(0xb7)](0x1));const _0x167f74=JSON[_0x51f36b(0xe2)](fs[_0x51f36b(0xa5)](_0x5f3637['YyiCp'](getCredentialsPath)));let _0x31826b=_0x51f36b(0xa8)+AG_API_URL+_0x51f36b(0xde);_0x42f1f8[_0x51f36b(0xf2)]&&(_0x31826b='https://'+AG_API_URL+_0x51f36b(0xa4));const _0x2dc3a0={};_0x2dc3a0[_0x51f36b(0xad)]=_0x167f74['Browserstack'][_0x51f36b(0xad)],_0x2dc3a0[_0x51f36b(0xef)]=_0x167f74['Browserstack'][_0x51f36b(0xef)];const _0x37a219={};_0x37a219[_0x51f36b(0xb3)]=_0x31826b,_0x37a219['method']=_0x5f3637[_0x51f36b(0xe1)],_0x37a219[_0x51f36b(0xe4)]=_0x2dc3a0;const _0x1d8f57=_0x37a219;global_registry[_0x51f36b(0xab)]=_0x167f74[_0x51f36b(0xdb)][_0x51f36b(0xad)],global_registry['bstackAccesskey']=_0x167f74[_0x51f36b(0xdb)][_0x51f36b(0xef)],_0x5f3637['tqfwZ'](sendInstrumentationEvent,_0x42f1f8,_0x5f3637[_0x51f36b(0xb9)],messageTypes[_0x51f36b(0xb0)],null,null,_0x42f1f8);const _0x46b8b1=await _0x5f3637[_0x51f36b(0xd7)](promisifiedRequest,_0x1d8f57);if(_0x5f3637[_0x51f36b(0x9e)](_0x46b8b1,null)&&_0x5f3637[_0x51f36b(0x9e)](_0x46b8b1,undefined)&&_0x5f3637['mOoYv'](_0x46b8b1[_0x51f36b(0xec)],0xc8)){const _0x2cbbf6=JSON[_0x51f36b(0xe2)](_0x46b8b1[_0x51f36b(0xc7)]);console[_0x51f36b(0xc3)](_0x5f3637[_0x51f36b(0xe0)]);const _0xe57158=[];_0xe57158[_0x51f36b(0xa1)]([_0x5f3637[_0x51f36b(0xbd)],_0x5f3637['MOZka'],_0x5f3637[_0x51f36b(0xd8)],_0x5f3637['zkDbp'],_0x5f3637[_0x51f36b(0xf5)],_0x5f3637[_0x51f36b(0xcc)]]),_0x2cbbf6[_0x51f36b(0xd6)](_0xc0d911=>{const _0x20471b=_0x51f36b;_0xe57158[_0x20471b(0xa1)]([_0xc0d911['id'],_0xc0d911[_0x20471b(0xb4)],_0xc0d911['status'],_0xc0d911[_0x20471b(0x99)],_0xc0d911[_0x20471b(0xd5)],_0xc0d911[_0x20471b(0xdd)]]);}),console[_0x51f36b(0xc3)](_0x5f3637['GIzbA'](table,_0xe57158)),process[_0x51f36b(0xb7)](0x0);}_0x5f3637[_0x51f36b(0x9b)](_0x46b8b1[_0x51f36b(0xec)],0x191)&&(console['error'](_0x51f36b(0xa3)),await _0x5f3637['tqfwZ'](sendInstrumentationEvent,_0x42f1f8,_0x5f3637[_0x51f36b(0xb9)],messageTypes[_0x51f36b(0xc8)],_0x5f3637[_0x51f36b(0xb8)],null,_0x42f1f8),process[_0x51f36b(0xb7)](0x1)),console[_0x51f36b(0xca)](_0x51f36b(0xee)+JSON['stringify'](_0x46b8b1)),await _0x5f3637[_0x51f36b(0xa7)](sendInstrumentationEvent,_0x42f1f8,_0x5f3637[_0x51f36b(0xb9)],messageTypes[_0x51f36b(0xc8)],_0x5f3637[_0x51f36b(0xf0)],_0x46b8b1,_0x42f1f8),process['exit'](0x1);}catch(_0x221953){console[_0x51f36b(0xca)](_0x51f36b(0xc9)+_0x221953[_0x51f36b(0xdc)]),await _0x5f3637[_0x51f36b(0xa6)](sendInstrumentationEvent,_0x42f1f8,_0x5f3637[_0x51f36b(0xb9)],messageTypes['ERROR'],_0x5f3637[_0x51f36b(0xbf)],_0x221953,_0x42f1f8),process[_0x51f36b(0xb7)](0x1);}};
1
+ function a15_0x564a(_0xd14740,_0x6ae87e){const _0x11091f=a15_0x1109();return a15_0x564a=function(_0x564ae2,_0x2f579b){_0x564ae2=_0x564ae2-0xb6;let _0x5c6c8d=_0x11091f[_0x564ae2];return _0x5c6c8d;},a15_0x564a(_0xd14740,_0x6ae87e);}const a15_0x5aac76=a15_0x564a;(function(_0x417fc0,_0x3b4735){const _0x111c29=a15_0x564a,_0x4f8c3a=_0x417fc0();while(!![]){try{const _0x47b379=-parseInt(_0x111c29(0xc3))/0x1+parseInt(_0x111c29(0xf2))/0x2*(-parseInt(_0x111c29(0xfc))/0x3)+parseInt(_0x111c29(0x102))/0x4+-parseInt(_0x111c29(0xd9))/0x5+parseInt(_0x111c29(0xbb))/0x6+-parseInt(_0x111c29(0xcf))/0x7*(-parseInt(_0x111c29(0xf0))/0x8)+-parseInt(_0x111c29(0xea))/0x9;if(_0x47b379===_0x3b4735)break;else _0x4f8c3a['push'](_0x4f8c3a['shift']());}catch(_0x2c1ff7){_0x4f8c3a['push'](_0x4f8c3a['shift']());}}}(a15_0x1109,0x8dcfd));function a15_0x1109(){const _0xa5ce76=['Sovcj','MXpnn','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','parse','bpzIf','bstackUsername','242155kliktT','ERROR','boolean','OYaWT','builder','WqxaT','Browserstack','yNUiD','BzweO','ydlgW','status','auth','7eUfsnd','https://','stack','push','unauthorised','stringify','uuid','command','MUFEJ','server-error','2911960LHbfJf','INFO','table','request','statusCode','pePUF','epilogue','username','qEVVg','log','queued','/packages/cli/get-grids','usage','running','options','list','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','6517179LAMYcN','grid-id','nqskc','VQTIE','TGfIS','sCYPB','9001840fdNfPW','/packages/cli/get-all-grids','4294DqLlYD','util','name','all-grids','list-grids-called','bstackAccesskey','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','../../utils/instrumentationUtils','readFileSync','261pooYYi','../../utils/utilityMethods','exit','../../config/constants','UFsix','cluster-name','4488236THFxEX','bBOGZ','GET','VsovX','bnezo','handler','grid','password','requestId','error','JwtZd','414234jxBNJf','grids'];a15_0x1109=function(){return _0xa5ce76;};return a15_0x1109();}const fs=require('fs'),util=require(a15_0x5aac76(0xf3)),request=require(a15_0x5aac76(0xdc)),{table}=require(a15_0x5aac76(0xdb)),{v4:uuidv4}=require(a15_0x5aac76(0xd5)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x5aac76(0xff)),{getCredentialsPath}=require(a15_0x5aac76(0xfd)),{sendInstrumentationEvent}=require(a15_0x5aac76(0xfa)),promisifiedRequest=util['promisify'](request);exports[a15_0x5aac76(0xd6)]=a15_0x5aac76(0xbc),exports['desc']=a15_0x5aac76(0xf8),exports[a15_0x5aac76(0xc7)]=function(_0x230053){const _0x3293e9=a15_0x5aac76,_0x5df080={};_0x5df080[_0x3293e9(0x106)]=_0x3293e9(0xe9),_0x5df080[_0x3293e9(0xd7)]=_0x3293e9(0xc5),_0x5df080[_0x3293e9(0xec)]='help';const _0x92e0c1=_0x5df080,_0x4161d7={};_0x4161d7['description']=_0x92e0c1['bnezo'],_0x4161d7['type']=_0x92e0c1[_0x3293e9(0xd7)];const _0x5b9cad={};return _0x5b9cad[_0x3293e9(0xf5)]=_0x4161d7,_0x230053[_0x3293e9(0xe5)](HELP_HEADER_MESSAGE[_0x3293e9(0xe8)][_0x3293e9(0xb6)])[_0x3293e9(0xdf)](HELP_FOOTER_MESSAGE)[_0x3293e9(0xe7)](_0x5b9cad)['help'](_0x92e0c1[_0x3293e9(0xec)])['argv'];},exports[a15_0x5aac76(0x107)]=async function(_0x5c833f){const _0x37d1a7=a15_0x5aac76,_0x2dd1df={'qEVVg':function(_0x1eb322){return _0x1eb322();},'yNUiD':function(_0x578e04){return _0x578e04();},'BzweO':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','MXpnn':function(_0x3d0df5,_0xe6db4c,_0x58af76,_0x2e77df,_0x200f31,_0x35193d,_0x1f55b2){return _0x3d0df5(_0xe6db4c,_0x58af76,_0x2e77df,_0x200f31,_0x35193d,_0x1f55b2);},'JwtZd':_0x37d1a7(0xf6),'PTmeQ':'init-not-called','aJxcu':_0x37d1a7(0x104),'VsovX':function(_0x3ea538,_0x3b37d8){return _0x3ea538(_0x3b37d8);},'bpzIf':function(_0x48bfc6,_0x142629){return _0x48bfc6!==_0x142629;},'OYaWT':function(_0x3c7688,_0x56e973){return _0x3c7688===_0x56e973;},'VQTIE':'\x0aFound\x20the\x20following\x20grids:\x0a','dgLxV':_0x37d1a7(0xeb),'WETWH':'grid-name','Sovcj':'status','WqxaT':_0x37d1a7(0xe6),'bBOGZ':_0x37d1a7(0xe3),'ydlgW':_0x37d1a7(0x101),'kAGDz':function(_0x8b3425,_0x3bfdf2){return _0x8b3425(_0x3bfdf2);},'pePUF':function(_0x54d568,_0x1f2bf2){return _0x54d568===_0x1f2bf2;},'sxMrl':_0x37d1a7(0xd3),'ewknb':function(_0x453bd5,_0xd7f7de,_0x33f8fb,_0xbcb456,_0xf123fe,_0x2e1594,_0x352396){return _0x453bd5(_0xd7f7de,_0x33f8fb,_0xbcb456,_0xf123fe,_0x2e1594,_0x352396);},'TGfIS':_0x37d1a7(0xd8),'UFsix':function(_0x27dc57,_0x4c16c3,_0xa9a3fa,_0x2643f2,_0x186755,_0x536950,_0x24e463){return _0x27dc57(_0x4c16c3,_0xa9a3fa,_0x2643f2,_0x186755,_0x536950,_0x24e463);},'sCYPB':'unknown-error'};try{global_registry[_0x37d1a7(0xb8)]=_0x2dd1df['qEVVg'](uuidv4);!fs['existsSync'](_0x2dd1df[_0x37d1a7(0xca)](getCredentialsPath))&&(console[_0x37d1a7(0xb9)](_0x2dd1df[_0x37d1a7(0xcb)]),await _0x2dd1df[_0x37d1a7(0xbe)](sendInstrumentationEvent,_0x5c833f,_0x2dd1df[_0x37d1a7(0xba)],messageTypes['ERROR'],_0x2dd1df['PTmeQ'],null,_0x5c833f),process['exit'](0x1));const _0x155c6a=JSON[_0x37d1a7(0xc0)](fs[_0x37d1a7(0xfb)](_0x2dd1df[_0x37d1a7(0xe1)](getCredentialsPath)));let _0x3aa6de=_0x37d1a7(0xd0)+AG_API_URL+_0x37d1a7(0xe4);_0x5c833f['allGrids']&&(_0x3aa6de=_0x37d1a7(0xd0)+AG_API_URL+_0x37d1a7(0xf1));const _0x460675={};_0x460675[_0x37d1a7(0xe0)]=_0x155c6a[_0x37d1a7(0xc9)]['username'],_0x460675['password']=_0x155c6a[_0x37d1a7(0xc9)][_0x37d1a7(0xb7)];const _0xc017a7={};_0xc017a7['url']=_0x3aa6de,_0xc017a7['method']=_0x2dd1df['aJxcu'],_0xc017a7[_0x37d1a7(0xce)]=_0x460675;const _0x363b8a=_0xc017a7;global_registry[_0x37d1a7(0xc2)]=_0x155c6a[_0x37d1a7(0xc9)]['username'],global_registry[_0x37d1a7(0xf7)]=_0x155c6a['Browserstack'][_0x37d1a7(0xb7)],_0x2dd1df[_0x37d1a7(0xbe)](sendInstrumentationEvent,_0x5c833f,_0x2dd1df[_0x37d1a7(0xba)],messageTypes[_0x37d1a7(0xda)],null,null,_0x5c833f);const _0x2a25fb=await _0x2dd1df[_0x37d1a7(0x105)](promisifiedRequest,_0x363b8a);if(_0x2dd1df[_0x37d1a7(0xc1)](_0x2a25fb,null)&&_0x2dd1df[_0x37d1a7(0xc1)](_0x2a25fb,undefined)&&_0x2dd1df[_0x37d1a7(0xc6)](_0x2a25fb[_0x37d1a7(0xdd)],0xc8)){const _0x386512=JSON[_0x37d1a7(0xc0)](_0x2a25fb['body']);console[_0x37d1a7(0xe2)](_0x2dd1df[_0x37d1a7(0xed)]);const _0xc26148=[];_0xc26148[_0x37d1a7(0xd2)]([_0x2dd1df['dgLxV'],_0x2dd1df['WETWH'],_0x2dd1df[_0x37d1a7(0xbd)],_0x2dd1df[_0x37d1a7(0xc8)],_0x2dd1df[_0x37d1a7(0x103)],_0x2dd1df[_0x37d1a7(0xcc)]]),_0x386512['forEach'](_0x1c5811=>{const _0x202bc7=_0x37d1a7;_0xc26148[_0x202bc7(0xd2)]([_0x1c5811['id'],_0x1c5811[_0x202bc7(0xf4)],_0x1c5811[_0x202bc7(0xcd)],_0x1c5811[_0x202bc7(0xe6)],_0x1c5811[_0x202bc7(0xe3)],_0x1c5811['clusterName']]);}),console[_0x37d1a7(0xe2)](_0x2dd1df['kAGDz'](table,_0xc26148)),process['exit'](0x0);}_0x2dd1df[_0x37d1a7(0xde)](_0x2a25fb[_0x37d1a7(0xdd)],0x191)&&(console[_0x37d1a7(0xb9)](_0x37d1a7(0xf9)),await _0x2dd1df[_0x37d1a7(0xbe)](sendInstrumentationEvent,_0x5c833f,_0x2dd1df[_0x37d1a7(0xba)],messageTypes[_0x37d1a7(0xc4)],_0x2dd1df['sxMrl'],null,_0x5c833f),process[_0x37d1a7(0xfe)](0x1)),console['error'](_0x37d1a7(0xbf)+JSON[_0x37d1a7(0xd4)](_0x2a25fb)),await _0x2dd1df['ewknb'](sendInstrumentationEvent,_0x5c833f,_0x2dd1df[_0x37d1a7(0xba)],messageTypes[_0x37d1a7(0xc4)],_0x2dd1df[_0x37d1a7(0xee)],_0x2a25fb,_0x5c833f),process[_0x37d1a7(0xfe)](0x1);}catch(_0xa9eeaf){console['error']('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0xa9eeaf[_0x37d1a7(0xd1)]),await _0x2dd1df[_0x37d1a7(0x100)](sendInstrumentationEvent,_0x5c833f,_0x2dd1df['JwtZd'],messageTypes[_0x37d1a7(0xc4)],_0x2dd1df[_0x37d1a7(0xef)],_0xa9eeaf,_0x5c833f),process[_0x37d1a7(0xfe)](0x1);}};