browserstack-node-sdk 1.28.5 → 1.28.6

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 (97) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/gcs.js +1 -1
  6. package/ats/src/cloudproviders/utils.js +1 -1
  7. package/ats/src/commands/configure.js +1 -1
  8. package/ats/src/commands/connect.js +1 -1
  9. package/ats/src/commands/connect_commands/grid.js +1 -1
  10. package/ats/src/commands/create.js +1 -1
  11. package/ats/src/commands/create_commands/grid.js +1 -1
  12. package/ats/src/commands/delete.js +1 -1
  13. package/ats/src/commands/delete_commands/grid.js +1 -1
  14. package/ats/src/commands/init.js +1 -1
  15. package/ats/src/commands/list.js +1 -1
  16. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  17. package/ats/src/commands/list_commands/grids.js +1 -1
  18. package/ats/src/config/constants.js +1 -1
  19. package/ats/src/config/logger.js +1 -1
  20. package/ats/src/index.js +1 -1
  21. package/ats/src/utils/AWSUtils.js +1 -1
  22. package/ats/src/utils/createAutoscalerStack.js +1 -1
  23. package/ats/src/utils/createClusterStack.js +1 -1
  24. package/ats/src/utils/createk8sClient.js +1 -1
  25. package/ats/src/utils/deleteStack.js +1 -1
  26. package/ats/src/utils/gridComponents.js +1 -1
  27. package/ats/src/utils/hstUtils.js +1 -1
  28. package/ats/src/utils/instrumentationUtils.js +1 -1
  29. package/ats/src/utils/userInput.js +1 -1
  30. package/ats/src/utils/utilityMethods.js +1 -1
  31. package/ats/src/utils/webSocketUtils.js +1 -1
  32. package/package.json +1 -1
  33. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  34. package/src/bin/codeceptjs/command.js +1 -1
  35. package/src/bin/cucumber-js/command.js +1 -1
  36. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  37. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  38. package/src/bin/cucumber-js/test.setup.js +1 -1
  39. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  40. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  41. package/src/bin/jest/command.js +1 -1
  42. package/src/bin/jest/customEnvironment.js +1 -1
  43. package/src/bin/jest/customTestRunnerTemplate.js +1 -1
  44. package/src/bin/jest/jest.setup.js +1 -1
  45. package/src/bin/jest/test_before.setup.js +1 -1
  46. package/src/bin/launcher/launcher.js +1 -1
  47. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  48. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  49. package/src/bin/mocha/command.js +1 -1
  50. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  51. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  52. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  53. package/src/bin/mocha/test.setup.js +1 -1
  54. package/src/bin/nightwatch/command.js +1 -1
  55. package/src/bin/playwright/accessibility-helper.js +1 -1
  56. package/src/bin/playwright/command.js +1 -1
  57. package/src/bin/playwright/globalSetup.js +1 -1
  58. package/src/bin/playwright/mock-process.js +1 -1
  59. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  60. package/src/bin/playwright/reporter/reporter.js +1 -1
  61. package/src/bin/playwright/reporter/test-details.js +1 -1
  62. package/src/bin/runner.js +1 -1
  63. package/src/bin/setup.js +1 -1
  64. package/src/bin/test-runner/index.js +1 -1
  65. package/src/bin/test-runner/runTest.js +1 -1
  66. package/src/bin/test-runner/testWorker.js +1 -1
  67. package/src/bin/utils/constants.js +1 -1
  68. package/src/bin/utils/log4jsAppender.js +1 -1
  69. package/src/bin/utils/logPatcher.js +1 -1
  70. package/src/bin/utils/logReportingAPI.js +1 -1
  71. package/src/bin/vanilla-js/command.js +1 -1
  72. package/src/helpers/BrowserStackSetup.js +1 -1
  73. package/src/helpers/accessibility-automation/constants.js +1 -1
  74. package/src/helpers/accessibility-automation/helper.js +1 -1
  75. package/src/helpers/ats/constants.js +1 -1
  76. package/src/helpers/ats/helper.js +1 -1
  77. package/src/helpers/capsMapping.js +1 -1
  78. package/src/helpers/helper.js +1 -1
  79. package/src/helpers/logger.js +1 -1
  80. package/src/helpers/patchHelpers.js +1 -1
  81. package/src/helpers/percy/Percy.js +1 -1
  82. package/src/helpers/percy/PercyBinary.js +1 -1
  83. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  84. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  85. package/src/helpers/percy/PercySDK.js +1 -1
  86. package/src/helpers/percy/index.js +1 -1
  87. package/src/helpers/request-spy.js +1 -1
  88. package/src/helpers/setKeepAlive.js +1 -1
  89. package/src/helpers/test-observability/constants.js +1 -1
  90. package/src/helpers/test-observability/error-handler.js +1 -1
  91. package/src/helpers/test-observability/performance-tester.js +1 -1
  92. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  93. package/src/helpers/test-observability/sessionHandler.js +1 -1
  94. package/src/helpers/test-observability/utils.js +1 -1
  95. package/src/helpers/w3cMapping.js +1 -1
  96. package/src/hubAllocationMethods.js +1 -1
  97. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x1e8797=a9_0x1d54;(function(_0x6ecc51,_0x272282){const _0x5ac297=a9_0x1d54,_0xdcf6dc=_0x6ecc51();while(!![]){try{const _0x1c2e02=parseInt(_0x5ac297(0x1f0))/0x1*(parseInt(_0x5ac297(0x1ee))/0x2)+-parseInt(_0x5ac297(0x1e5))/0x3*(parseInt(_0x5ac297(0x1eb))/0x4)+parseInt(_0x5ac297(0x1e4))/0x5*(-parseInt(_0x5ac297(0x1dd))/0x6)+-parseInt(_0x5ac297(0x1ef))/0x7*(parseInt(_0x5ac297(0x1e1))/0x8)+-parseInt(_0x5ac297(0x1de))/0x9+parseInt(_0x5ac297(0x1f1))/0xa+parseInt(_0x5ac297(0x1ec))/0xb;if(_0x1c2e02===_0x272282)break;else _0xdcf6dc['push'](_0xdcf6dc['shift']());}catch(_0x2884b4){_0xdcf6dc['push'](_0xdcf6dc['shift']());}}}(a9_0x5408,0x4b1b7));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x1e8797(0x1ed));function a9_0x1d54(_0x10d2a6,_0x4609b4){const _0x540875=a9_0x5408();return a9_0x1d54=function(_0x1d54ac,_0x3c3a22){_0x1d54ac=_0x1d54ac-0x1db;let _0x26700b=_0x540875[_0x1d54ac];return _0x26700b;},a9_0x1d54(_0x10d2a6,_0x4609b4);}function a9_0x5408(){const _0x46515d=['recommendCommands','4nxZRdv','9551982dkELmA','../config/constants','2wzZjio','944076dJzpxD','369790Hogssl','3772300PEQzxh','demandCommand','strict','45510bzjHZc','1944936RfCfvC','gHRsC','command','24mWUvme','builder','help','125tMvLzp','1492230KIkQgr','usage','fSZKO','create','create_commands'];a9_0x5408=function(){return _0x46515d;};return a9_0x5408();}exports[a9_0x1e8797(0x1e0)]=a9_0x1e8797(0x1e8),exports['desc']='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x1e8797(0x1e2)]=function(_0x218d00){const _0x56e40e=a9_0x1e8797,_0x4c0b82={};_0x4c0b82[_0x56e40e(0x1e7)]=_0x56e40e(0x1e9),_0x4c0b82['gHRsC']=_0x56e40e(0x1e3);const _0x5403da=_0x4c0b82;return _0x218d00[_0x56e40e(0x1e6)](HELP_HEADER_MESSAGE[_0x56e40e(0x1e8)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x5403da[_0x56e40e(0x1e7)])[_0x56e40e(0x1db)]()[_0x56e40e(0x1ea)]()[_0x56e40e(0x1dc)]()[_0x56e40e(0x1e3)](_0x5403da[_0x56e40e(0x1df)]);},exports['handler']=function(_0x2b986d){};
1
+ const a9_0x1ee792=a9_0x96be;(function(_0x2e4ba6,_0x2098f8){const _0xe339=a9_0x96be,_0xe73b7a=_0x2e4ba6();while(!![]){try{const _0x2d8c6f=parseInt(_0xe339(0x19b))/0x1*(-parseInt(_0xe339(0x199))/0x2)+-parseInt(_0xe339(0x196))/0x3+parseInt(_0xe339(0x18c))/0x4+parseInt(_0xe339(0x18f))/0x5*(-parseInt(_0xe339(0x195))/0x6)+-parseInt(_0xe339(0x18e))/0x7+-parseInt(_0xe339(0x198))/0x8*(-parseInt(_0xe339(0x19a))/0x9)+parseInt(_0xe339(0x191))/0xa;if(_0x2d8c6f===_0x2098f8)break;else _0xe73b7a['push'](_0xe73b7a['shift']());}catch(_0x3239dd){_0xe73b7a['push'](_0xe73b7a['shift']());}}}(a9_0x2d4a,0x5d311));function a9_0x2d4a(){const _0x175006=['1730508EaayXg','epilogue','144AqIOXn','46wzxDkD','103716jItAsu','16143yfpKFE','help','tUCtW','OooWB','create_commands','usage','strict','handler','2062488LKfDoV','create','4654496lMbMiT','1445usQGxa','builder','13361590emYCTC','recommendCommands','commandDir','../config/constants','1338LrLGze'];a9_0x2d4a=function(){return _0x175006;};return a9_0x2d4a();}function a9_0x96be(_0x4a101f,_0x9719f2){const _0x2d4a70=a9_0x2d4a();return a9_0x96be=function(_0x96be7e,_0x24312c){_0x96be7e=_0x96be7e-0x188;let _0x536d27=_0x2d4a70[_0x96be7e];return _0x536d27;},a9_0x96be(_0x4a101f,_0x9719f2);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x1ee792(0x194));exports['command']='create',exports['desc']='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x1ee792(0x190)]=function(_0x2497a4){const _0x49c7ad=a9_0x1ee792,_0x5848f0={};_0x5848f0[_0x49c7ad(0x19d)]=_0x49c7ad(0x188),_0x5848f0[_0x49c7ad(0x19e)]=_0x49c7ad(0x19c);const _0x4cf81b=_0x5848f0;return _0x2497a4[_0x49c7ad(0x189)](HELP_HEADER_MESSAGE[_0x49c7ad(0x18d)])[_0x49c7ad(0x197)](HELP_FOOTER_MESSAGE)[_0x49c7ad(0x193)](_0x4cf81b[_0x49c7ad(0x19d)])['demandCommand']()[_0x49c7ad(0x192)]()[_0x49c7ad(0x18a)]()[_0x49c7ad(0x19c)](_0x4cf81b[_0x49c7ad(0x19e)]);},exports[a9_0x1ee792(0x18b)]=function(_0x3eda3d){};
@@ -1 +1 @@
1
- function a10_0x2930(){const _0x2f1e38=['cjJAe','KpQck','Yxlhc','cujKv','alreadyPresent','bstackUsername','TpaHv','error','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Browserstack','SXzgE','region','\x20are\x20not\x20present\x20in\x20VPC:\x20','VYMik','createOtherResources','../../utils/webSocketUtils','HPRlz','Creating\x20namespace','viCgN','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.','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','dCvAi','instanceType','sendEventToBackend','xEBCl','warn','get-grid-url-auth-failed','EXEmB','1586ZumMWe','Create\x20a\x20new\x20Automation\x20grid.','uuid','length','TyIfc','21105WndAZQ','HYNcJ','name','ZIaKM','afFuy','isPrivateGrid','securityGroups','IQYIl','info','https://','BNadr','configureIfNotConfigured','zTDKN','540yzWRFg','rCoED','clusterName','JXBOO','ejnBh','GAZIX','body','ffTJz','Grid\x20can\x20be\x20accessed\x20at:\x20','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','create-grid-checks-null-response','aqZai','default','create-grid-checks-invalid-profile','kfpMj','QrKAN','Subnets:\x20','epilogue','\x20in\x20existing\x20cluster\x20\x27','/packages/cli/create-grid-checks','UyDwd','ingress-nginx','non-aws-azure-cluster','hFjcu','CLI\x20run\x20started','oTlgj','uPsEX','create-grid-checks-non-200','isSubnetsValid','WzlTM','650LTvefx','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','EohVb','Found\x20VPC:\x20','nZvLa','private-grid','create-grid-called','PIlCN','password','BkVJU','get-grid-url-null-response','pfyHp','CAGcu','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','writeFileSync','createdBy','HICvw','cpJtV','KeCpY','gridProfile','Mrvbs','pre-spawned-subnets-not-selected','/wd/hub','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','QYIuN','pEwfb','OyCmv','myodK','vpc','cloud-provider','reconnecting-websocket','TDCTh','AlnDV','Create\x20a\x20private/public\x20grid.','6536GiTyrP','subnets','wcDLz','replace','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','privateGrid','getGridHostname','548gKjFHx','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','://','TpjYv','Will\x20be\x20spawning\x20the\x20grid\x20','Cluster\x20','browserVersion','3|1|2|0|7|4|5|8|6','vUOJr','cluster-name','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','usage','cEYzy','pdzuq','Lucwe','hubVersion','BOpsX','split','toLowerCase','getResourceClientId','../../config/constants','http','minNodes','vzkQu','VJSyT','GET','MiPQA','IAQRy','annotations','s3BucketName','pre-spawned-invalid-subnets','message','eNjYQ','mMUCG','exit','jAWYR','desc','Cluster\x20created\x20successfully','apcKr','kRize','totdL','LFjSo','PoPkA','6|8|7|1|3|4|2|5|0','XXbJc','nQUBY','swGHz','CLI_RUN_STARTED','private-ingress-nginx-controller','Adding\x20Websocket\x20listeners','updatePreSpawnedCluster','MjyRv','KzMEC','grid-name','DroQD','tesPe','fMHbS','LOG','lnZRc','WdUNe','TKbRN','addListeners','../../config/logger','UPKQs','parse','https','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','XXFSv','XYswo','GOVvK','1352313EMCPTk','oGnjm','Lxnex','RVHjg','request','cIIfg','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','qNXNF','cQhfb','TSisq','isVPCPresent','Namespace\x20created','gqMgG','type','Spawning\x20the\x20grid\x20','bGvVj','wEcHP','command','ewcnK','turboscale-managed-identity-','clusterRegion','fetchLocalCreds','EwdSU','cloudProvider','route53','create','mydrh','hHMMg','SowEL','Grid\x20spawned\x20on\x20the\x20cluster','MphBa','../../utils/gridComponents','GxYOf','gridProfiles','string','create-grid-checks-grid-already-exists','rSGWR','../../utils/userInput','OKELn','ieeJQ','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','hRBtk','miVkA','ohxRr','168311hDAGZH','LdFnE','createNamespace','readNamespacedService','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','stringify','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','QwcFO','CDYTB','description','xhvRu','2130642vGxXxZ','xYRrp','isClusterPresent','CLI\x20run\x20finished:\x20','XGRon','../../cloudproviders/utils','yfQXD','SrHIg','help','delay','gridName','INFO','pre-spawned-invalid-vpc','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','true','2751UpXpQh','4095138BBZKfH','jqZUr','username','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','Spawning\x20grid\x20on\x20to\x20the\x20cluster','uldbH','grid-profile','llQAx','IWWEC','jKXCM','argv','ERROR','method','statusCode','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','debug','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','auth','QregD','ntcRJ','grid','get-grid-url-non-200','loWqD','Audip','user','LNeTY','fDkVN','WgLjT','dYdeE','gridProfileId','prespawned-cluster-args-not-passed','setupAutoscaler'];a10_0x2930=function(){return _0x2f1e38;};return a10_0x2930();}const a10_0x5f1b6f=a10_0xcad2;function a10_0xcad2(_0x3ac8ad,_0x165c38){const _0x2930dc=a10_0x2930();return a10_0xcad2=function(_0xcad2be,_0x2c4fd5){_0xcad2be=_0xcad2be-0x82;let _0x1c69ee=_0x2930dc[_0xcad2be];return _0x1c69ee;},a10_0xcad2(_0x3ac8ad,_0x165c38);}(function(_0x15f860,_0x9e4093){const _0x5e5e3c=a10_0xcad2,_0x3604a5=_0x15f860();while(!![]){try{const _0x4b277d=-parseInt(_0x5e5e3c(0x8d))/0x1*(parseInt(_0x5e5e3c(0x157))/0x2)+parseInt(_0x5e5e3c(0xd3))/0x3+parseInt(_0x5e5e3c(0x169))/0x4*(parseInt(_0x5e5e3c(0x15c))/0x5)+parseInt(_0x5e5e3c(0x11a))/0x6+-parseInt(_0x5e5e3c(0x119))/0x7*(-parseInt(_0x5e5e3c(0x86))/0x8)+-parseInt(_0x5e5e3c(0x10a))/0x9+parseInt(_0x5e5e3c(0x187))/0xa*(-parseInt(_0x5e5e3c(0xff))/0xb);if(_0x4b277d===_0x9e4093)break;else _0x3604a5['push'](_0x3604a5['shift']());}catch(_0x5906e0){_0x3604a5['push'](_0x3604a5['shift']());}}}(a10_0x2930,0x577c7));const fs=require('fs'),ws=require('ws'),util=require('util'),ReconnectingWebSocket=require(a10_0x5f1b6f(0x82)),request=require(a10_0x5f1b6f(0xd7)),{v4:uuidv4}=require(a10_0x5f1b6f(0x159)),webSocketUtils=require(a10_0x5f1b6f(0x149)),{logger}=require(a10_0x5f1b6f(0xcb)),{inputCloudProviderKeys}=require(a10_0x5f1b6f(0xf8)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a10_0x5f1b6f(0x10f)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0x5f1b6f(0xa1)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0x5f1b6f(0xf2)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util['promisify'](request);exports[a10_0x5f1b6f(0xe4)]=a10_0x5f1b6f(0x12e),exports[a10_0x5f1b6f(0xb1)]=a10_0x5f1b6f(0x158),exports['builder']=function(_0x59dfc9){const _0x26bacc=a10_0x5f1b6f,_0x718e6={};_0x718e6[_0x26bacc(0x10e)]=_0x26bacc(0x12a),_0x718e6[_0x26bacc(0x1a2)]='string',_0x718e6['cEYzy']='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x718e6['HimXA']=_0x26bacc(0x8e),_0x718e6[_0x26bacc(0xcc)]=_0x26bacc(0x105),_0x718e6[_0x26bacc(0x122)]=_0x26bacc(0x172),_0x718e6[_0x26bacc(0x95)]=_0x26bacc(0x85),_0x718e6[_0x26bacc(0x16c)]=_0x26bacc(0x112);const _0x52e61f=_0x718e6,_0x49ffe5={};_0x49ffe5[_0x26bacc(0x108)]=_0x52e61f[_0x26bacc(0x10e)],_0x49ffe5[_0x26bacc(0xe0)]=_0x52e61f[_0x26bacc(0x1a2)];const _0x183b0d={};_0x183b0d[_0x26bacc(0x108)]=_0x52e61f[_0x26bacc(0x99)],_0x183b0d[_0x26bacc(0xe0)]=_0x52e61f['myodK'];const _0x607359={};_0x607359[_0x26bacc(0x108)]=_0x52e61f['HimXA'],_0x607359[_0x26bacc(0xe0)]=_0x52e61f['myodK'];const _0x10491f={};_0x10491f[_0x26bacc(0x108)]=_0x52e61f[_0x26bacc(0xcc)],_0x10491f[_0x26bacc(0xe0)]=_0x52e61f[_0x26bacc(0x1a2)];const _0x114679={};_0x114679[_0x26bacc(0x108)]=_0x52e61f[_0x26bacc(0x122)],_0x114679[_0x26bacc(0xe0)]=_0x52e61f[_0x26bacc(0x1a2)];const _0x319661={};_0x319661[_0x26bacc(0x108)]=_0x52e61f[_0x26bacc(0x95)],_0x319661[_0x26bacc(0xe0)]=_0x52e61f['myodK'];const _0x211f74={};return _0x211f74[_0x26bacc(0xc2)]=_0x49ffe5,_0x211f74[_0x26bacc(0x120)]=_0x183b0d,_0x211f74[_0x26bacc(0x96)]=_0x607359,_0x211f74[_0x26bacc(0x1a4)]=_0x10491f,_0x211f74[_0x26bacc(0x145)]=_0x114679,_0x211f74['private-grid']=_0x319661,_0x59dfc9['usage'](HELP_HEADER_MESSAGE[_0x26bacc(0xec)])[_0x26bacc(0x17a)](HELP_FOOTER_MESSAGE)['options'](_0x211f74)[_0x26bacc(0x112)](_0x52e61f['JXBOO'])['argv'];},exports['handler']=async function(_0x7fb3b6){const _0x4f9049=a10_0x5f1b6f,_0x4d4013={'shcLQ':_0x4f9049(0xb8),'wEcHP':_0x4f9049(0x12a),'totdL':_0x4f9049(0xf5),'LdFnE':'Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','LFjSo':_0x4f9049(0x8e),'gWpJM':_0x4f9049(0x105),'LNeTY':_0x4f9049(0x172),'uldbH':_0x4f9049(0x85),'TKbRN':_0x4f9049(0x112),'xYRrp':_0x4f9049(0x141),'yfQXD':_0x4f9049(0xa2),'SowEL':_0x4f9049(0x154),'rCoED':_0x4f9049(0x97),'SrHIg':_0x4f9049(0xce),'EohVb':function(_0x21115f){return _0x21115f();},'loWqD':function(_0x53a1ed,_0x5f5c82){return _0x53a1ed===_0x5f5c82;},'oGnjm':_0x4f9049(0x18b),'MphBa':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','WdUNe':function(_0x194d5e,_0x3bc12b,_0x396238,_0x33b16f,_0x1c8d40,_0x2aa3e7,_0x160a7b){return _0x194d5e(_0x3bc12b,_0x396238,_0x33b16f,_0x1c8d40,_0x2aa3e7,_0x160a7b);},'zTDKN':_0x4f9049(0x18d),'DDQeT':'init-not-called','qNXNF':'<UsernamePlaceholder>','TDCTh':'<PasswordPlaceholder>','OKELn':_0x4f9049(0xbe),'TpjYv':function(_0x1a12b0,_0x42b963){return _0x1a12b0===_0x42b963;},'hRBtk':'BYNsX','WzlTM':function(_0x56226a,_0x52b1c5){return _0x56226a===_0x52b1c5;},'viPSA':_0x4f9049(0x136),'DroQD':_0x4f9049(0xe5),'HICvw':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','GAZIX':function(_0x4ecf9b,_0x196b54,_0x4fa55d,_0x9895f6,_0x2f6fa1,_0xfa5423,_0x5cf26d,_0x40f256){return _0x4ecf9b(_0x196b54,_0x4fa55d,_0x9895f6,_0x2f6fa1,_0xfa5423,_0x5cf26d,_0x40f256);},'MiPQA':_0x4f9049(0x138),'SXzgE':function(_0x20d4b2,_0x1e8339){return _0x20d4b2!==_0x1e8339;},'qcZHP':_0x4f9049(0xee),'svtTe':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','afFuy':_0x4f9049(0x17f),'tRbRJ':_0x4f9049(0x118),'mFRVs':_0x4f9049(0x170),'cpJtV':_0x4f9049(0x18e),'KpQck':function(_0x3a3245,_0x37e158){return _0x3a3245!==_0x37e158;},'oTlgj':_0x4f9049(0x11b),'VJSyT':_0x4f9049(0xba),'dCvAi':_0x4f9049(0xa6),'VYMik':function(_0x79509,_0x2af66f){return _0x79509(_0x2af66f);},'TSisq':function(_0x5f449e,_0x31e5e5){return _0x5f449e===_0x31e5e5;},'eoLVp':function(_0x5854a2,_0x5e9d9e){return _0x5854a2!==_0x5e9d9e;},'cujKv':_0x4f9049(0xfd),'xhvRu':_0x4f9049(0xb3),'Yxlhc':_0x4f9049(0x194),'swGHz':_0x4f9049(0x173),'LmccG':function(_0x12e537,_0x513085){return _0x12e537===_0x513085;},'QregD':function(_0xfd1b6d,_0x2f0172){return _0xfd1b6d!==_0x2f0172;},'EwdSU':_0x4f9049(0xad),'PoPkA':_0x4f9049(0xd9),'jTdRs':function(_0x29b619,_0x466edf,_0xd3df7b,_0x5fc6ae,_0x5e50f7,_0x41c259,_0x363a00,_0x3c0c3b){return _0x29b619(_0x466edf,_0xd3df7b,_0x5fc6ae,_0x5e50f7,_0x41c259,_0x363a00,_0x3c0c3b);},'TlXbM':'create-grid-checks-auth-failed','ieeJQ':function(_0x1b6d52,_0xb7aa22){return _0x1b6d52===_0xb7aa22;},'XXFSv':'wiNwx','VBRYI':_0x4f9049(0x190),'Lucwe':function(_0x2bd660,_0x3989f5,_0x2f5029,_0xaefc2,_0x2423a1,_0xd59833,_0x958c91,_0x3354fb){return _0x2bd660(_0x3989f5,_0x2f5029,_0xaefc2,_0x2423a1,_0xd59833,_0x958c91,_0x3354fb);},'Mrvbs':_0x4f9049(0x184),'aqZai':'Grid\x20profile\x20fetched\x20from\x20backend','mydrh':function(_0x10adbc,_0x26f170){return _0x10adbc===_0x26f170;},'kfpMj':_0x4f9049(0x153),'pEwfb':_0x4f9049(0x121),'nbMTp':_0x4f9049(0x128),'OckhT':_0x4f9049(0xf6),'OyCmv':function(_0x139a85,_0x2bac84){return _0x139a85!==_0x2bac84;},'pfyHp':_0x4f9049(0x106),'TpaHv':function(_0x41bf36,_0x2d86c4){return _0x41bf36===_0x2d86c4;},'aKpTL':_0x4f9049(0x178),'tTrTI':'dMpqg','kRize':_0x4f9049(0x14a),'cIIfg':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','SYePY':_0x4f9049(0x176),'wcDLz':_0x4f9049(0x14c),'ZbshN':function(_0x167c14,_0x5542d5){return _0x167c14!==_0x5542d5;},'jAWYR':_0x4f9049(0x9a),'fMHbS':_0x4f9049(0x135),'IAQRy':function(_0x4db993,_0x1831c9,_0x3fd084,_0x12dfdb,_0x49bf4c,_0x4e9238,_0x55f90f,_0x23e5e0,_0x3d610f,_0x2412d8,_0x3c39cc,_0x40188a){return _0x4db993(_0x1831c9,_0x3fd084,_0x12dfdb,_0x49bf4c,_0x4e9238,_0x55f90f,_0x23e5e0,_0x3d610f,_0x2412d8,_0x3c39cc,_0x40188a);},'oEVvZ':_0x4f9049(0x94),'GOVvK':function(_0x597fb6,_0x375f58,_0x13dba7,_0x388a03,_0x22ace2,_0xe42a93){return _0x597fb6(_0x375f58,_0x13dba7,_0x388a03,_0x22ace2,_0xe42a93);},'rSGWR':function(_0x47e190,_0x19296c){return _0x47e190===_0x19296c;},'vfKOX':_0x4f9049(0x19e),'ZIaKM':function(_0x42b277,_0x1ac13b,_0x4cdc9f,_0x41d515){return _0x42b277(_0x1ac13b,_0x4cdc9f,_0x41d515);},'itlcQ':_0x4f9049(0x188),'anbuY':_0x4f9049(0xfb),'KzMEC':_0x4f9049(0x103),'cjJAe':function(_0x56a011,_0x19ace6){return _0x56a011!=_0x19ace6;},'BOpsX':function(_0xfc3af7,_0x22634d){return _0xfc3af7!==_0x22634d;},'UphKl':function(_0x7e3d69,_0x3f3316){return _0x7e3d69!==_0x3f3316;},'CDYTB':function(_0x363051,_0x425e6e){return _0x363051>_0x425e6e;},'mMUCG':function(_0x23c81e,_0x43d4ed){return _0x23c81e===_0x43d4ed;},'WMIGk':_0x4f9049(0x142),'IQYIl':_0x4f9049(0x19c),'tesPe':_0x4f9049(0x14e),'UyDwd':function(_0x3236fe,_0x217d03,_0x367e49,_0x517cdb,_0x2a7c43,_0x182424,_0x15ff0e,_0x3f7d2a){return _0x3236fe(_0x217d03,_0x367e49,_0x517cdb,_0x2a7c43,_0x182424,_0x15ff0e,_0x3f7d2a);},'XYswo':_0x4f9049(0x116),'KeCpY':function(_0x5bf1b8,_0x3d7cea,_0x3a0c0f,_0x15cade,_0x3017ec,_0x51062a,_0xb2603f,_0x16ce81){return _0x5bf1b8(_0x3d7cea,_0x3a0c0f,_0x15cade,_0x3017ec,_0x51062a,_0xb2603f,_0x16ce81);},'nvQeY':_0x4f9049(0xab),'miogP':'4|3|0|1|2','hMlaT':_0x4f9049(0xb2),'TyIfc':_0x4f9049(0x14d),'bGvVj':function(_0x1a26ed,_0x18a858){return _0x1a26ed==_0x18a858;},'kdOXP':function(_0x41754b,_0x58affd){return _0x41754b(_0x58affd);},'hFjcu':_0x4f9049(0x14b),'fDkVN':function(_0x5a4eda,_0x27d723){return _0x5a4eda!==_0x27d723;},'esntu':_0x4f9049(0x175),'cQhfb':_0x4f9049(0x143),'Audip':'Namespace\x20Created','BNadr':_0x4f9049(0xde),'qwghn':_0x4f9049(0x11e),'HYNcJ':'Spawning\x20Grid\x20on\x20the\x20Cluster','AlnDV':function(_0xf59472,_0x506457){return _0xf59472===_0x506457;},'uuiME':function(_0x5434ce,_0x2de980,_0x5ba7c6,_0x45415f,_0x41fb88,_0x4d8432,_0x5d0940,_0x2aad8c,_0x11a0a9,_0x42e08f,_0x1aec1f){return _0x5434ce(_0x2de980,_0x5ba7c6,_0x45415f,_0x41fb88,_0x4d8432,_0x5d0940,_0x2aad8c,_0x11a0a9,_0x42e08f,_0x1aec1f);},'lnZRc':_0x4f9049(0xf0),'CAGcu':_0x4f9049(0xcf),'MjyRv':function(_0x17da7d,_0x2abc8c,_0x5bd851){return _0x17da7d(_0x2abc8c,_0x5bd851);},'uPsEX':_0x4f9049(0xbd),'Lxnex':'ingress-nginx-controller','jKXCM':_0x4f9049(0x17e),'ejnBh':function(_0x5457dc,_0x4fbf84){return _0x5457dc==_0x4fbf84;},'QYIuN':_0x4f9049(0x117),'ntcRJ':function(_0x10bc41,_0x404475,_0xeebcda,_0x4bb3e1,_0x438da4,_0x46c5cb,_0x27ca68,_0x230f8c){return _0x10bc41(_0x404475,_0xeebcda,_0x4bb3e1,_0x438da4,_0x46c5cb,_0x27ca68,_0x230f8c);},'RVHjg':_0x4f9049(0x191),'ohxRr':function(_0x5de542,_0x101edd){return _0x5de542===_0x101edd;},'vzkQu':'Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','ZAprF':function(_0xfe6dd9,_0x7aeb3f,_0x33f4ae,_0x32943a,_0x2710a8,_0x2f366c,_0x4e15f2,_0x3813f4){return _0xfe6dd9(_0x7aeb3f,_0x33f4ae,_0x32943a,_0x2710a8,_0x2f366c,_0x4e15f2,_0x3813f4);},'UEMKb':_0x4f9049(0x155),'XXbJc':function(_0x4a9c46,_0xe32dc0){return _0x4a9c46!==_0xe32dc0;},'GxYOf':_0x4f9049(0x12f),'knDqf':function(_0x422d80,_0x2dfb19){return _0x422d80===_0x2dfb19;},'gqMgG':function(_0x333f0c,_0x36ae3e,_0x498f47,_0x1c6caf,_0xc45d82,_0x28aadd){return _0x333f0c(_0x36ae3e,_0x498f47,_0x1c6caf,_0xc45d82,_0x28aadd);},'EXEmB':'grid-spawning-failed'};let _0x3108ee=![],_0x54194c,_0x21461b,_0x2de30b,_0x11807a,_0x572abb,_0x1c73fd,_0x27ee11,_0x1e428b,_0x5f320a,_0x25ebb3,_0x5cc038,_0x37e88a,_0x46bb9f=0x1,_0x5825f9=0xe;try{global_registry['requestId']=_0x4d4013[_0x4f9049(0x189)](uuidv4),global_registry[_0x4f9049(0x161)]=![];if(!fs['existsSync'](_0x4d4013[_0x4f9049(0x189)](getCredentialsPath))){if(_0x4d4013[_0x4f9049(0x130)](_0x4d4013[_0x4f9049(0xd4)],_0x4d4013[_0x4f9049(0xd4)]))console[_0x4f9049(0x141)](_0x4d4013[_0x4f9049(0xf1)]),await _0x4d4013[_0x4f9049(0xc8)](sendInstrumentationEvent,_0x7fb3b6,_0x4d4013[_0x4f9049(0x168)],messageTypes[_0x4f9049(0x125)],_0x4d4013['DDQeT'],null,_0x7fb3b6),process['exit'](0x1);else{const _0x182a69=_0x4d4013['shcLQ']['split']('|');let _0x234d58=0x0;while(!![]){switch(_0x182a69[_0x234d58++]){case'0':_0x5a1e04[_0x4f9049(0x93)]=_0x59314b['browserVersion'];continue;case'1':const _0x570438={};_0x570438[_0x4f9049(0xe0)]=_0xaeac26[_0x4f9049(0xc6)],_0x570438[_0x4f9049(0xac)]=_0x4536d7,_0x521d66[_0x4f9049(0x152)](_0x4b8eae,_0x570438);continue;case'2':_0x18c827[_0x4f9049(0x16b)]=_0x302126;continue;case'3':_0x731924[_0x4f9049(0xea)]=_0xf79e57;continue;case'4':_0x3650ff[_0x4f9049(0xe7)]=_0x2efadb;continue;case'5':_0x35073d[_0x4f9049(0x9c)]=_0x4d341c[_0x4f9049(0x9c)];continue;case'6':const _0x12fc35={};_0x12fc35[_0x4f9049(0xe0)]=_0x1367ad[_0x4f9049(0xbc)],_0x12fc35['message']='CLI\x20run\x20started',_0x34766e[_0x4f9049(0x152)](_0x4c269a,_0x12fc35);continue;case'7':_0x303035[_0x4f9049(0x164)](_0x18be3e);continue;case'8':_0x24aced='Spawning\x20the\x20grid\x20'+_0x1f1d92+_0x4f9049(0x17b)+_0x24c7f3+'\x27';continue;}break;}}}await _0x4d4013[_0x4f9049(0xc8)](sendInstrumentationEvent,_0x7fb3b6,_0x4d4013['zTDKN'],messageTypes[_0x4f9049(0x115)],null,null,_0x7fb3b6);const _0x54d08e=JSON['parse'](fs['readFileSync'](_0x4d4013[_0x4f9049(0x189)](getCredentialsPath)));global_registry[_0x4f9049(0x13f)]=_0x54d08e['Browserstack'][_0x4f9049(0x11c)],global_registry['bstackAccesskey']=_0x54d08e['Browserstack'][_0x4f9049(0x18f)];const _0xc1e188=WS_ENDPOINT[_0x4f9049(0x89)](_0x4d4013[_0x4f9049(0xda)],_0x54d08e['Browserstack']['username'])['replace'](_0x4d4013[_0x4f9049(0x83)],_0x54d08e[_0x4f9049(0x143)][_0x4f9049(0x18f)]),_0x28ab4c={};_0x28ab4c['WebSocket']=ws,_0x28ab4c['connectionTimeout']=0x36ee80,_0x25ebb3=new ReconnectingWebSocket(_0xc1e188,[],_0x28ab4c),logger['debug'](_0x4d4013[_0x4f9049(0xf9)]),webSocketUtils[_0x4f9049(0xca)](_0x25ebb3,_0x7fb3b6[_0x4f9049(0x132)],_0x7fb3b6[_0x4f9049(0x18f)]);let _0x2a468a=DEFAULT_GRID_NAME;if(_0x7fb3b6[_0x4f9049(0x16b)]||_0x7fb3b6[_0x4f9049(0xea)]||_0x7fb3b6[_0x4f9049(0x145)]){if(_0x4d4013['TpjYv'](_0x4d4013[_0x4f9049(0xfc)],_0x4d4013['hRBtk'])){!(_0x7fb3b6['clusterName']&&_0x7fb3b6[_0x4f9049(0xea)]&&_0x7fb3b6['region'])&&(_0x4d4013[_0x4f9049(0x186)](_0x4d4013['viPSA'],_0x4d4013[_0x4f9049(0xc3)])?_0x278ba8['isPrivateGrid']=!![]:(_0x54194c=_0x4d4013[_0x4f9049(0x197)],await _0x4d4013[_0x4f9049(0x16e)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes['ERROR'],_0x4d4013['zTDKN'],_0x4d4013[_0x4f9049(0xa7)],_0x4d4013['xYRrp']),logger[_0x4f9049(0x141)](_0x54194c),process[_0x4f9049(0xaf)](0x1)));![AWS,AZURE,GCP]['includes'](_0x7fb3b6['cloudProvider']['toLowerCase']())&&(_0x4d4013[_0x4f9049(0x144)](_0x4d4013['qcZHP'],_0x4d4013['qcZHP'])?_0x20733f[_0x4f9049(0x164)](_0x4f9049(0x18a)+_0x2a5a5b+'\x20'):(_0x54194c=_0x4d4013['svtTe'],await _0x4d4013[_0x4f9049(0x16e)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x168)],_0x4d4013[_0x4f9049(0x160)],_0x4d4013[_0x4f9049(0x10b)]),logger[_0x4f9049(0x141)](_0x54194c),process[_0x4f9049(0xaf)](0x1)));if(_0x7fb3b6[_0x4f9049(0x8b)]&&_0x4d4013[_0x4f9049(0x90)](_0x7fb3b6[_0x4f9049(0x8b)][_0x4f9049(0x9f)](),_0x4d4013['tRbRJ'])){if(_0x4d4013[_0x4f9049(0x144)](_0x4d4013['mFRVs'],_0x4d4013[_0x4f9049(0x198)]))global_registry['isPrivateGrid']=!![];else{const _0x5f4298={};_0x5f4298[_0x4f9049(0x108)]=_0x4d4013[_0x4f9049(0xe3)],_0x5f4298['type']=_0x4d4013['totdL'];const _0x1f26e3={};_0x1f26e3['description']=_0x4d4013[_0x4f9049(0x100)],_0x1f26e3[_0x4f9049(0xe0)]=_0x4d4013[_0x4f9049(0xb5)];const _0x4dac2a={};_0x4dac2a[_0x4f9049(0x108)]=_0x4d4013[_0x4f9049(0xb6)],_0x4dac2a[_0x4f9049(0xe0)]=_0x4d4013[_0x4f9049(0xb5)];const _0x35b86a={};_0x35b86a[_0x4f9049(0x108)]=_0x4d4013['gWpJM'],_0x35b86a['type']=_0x4d4013[_0x4f9049(0xb5)];const _0x26d359={};_0x26d359[_0x4f9049(0x108)]=_0x4d4013[_0x4f9049(0x133)],_0x26d359['type']=_0x4d4013[_0x4f9049(0xb5)];const _0x286dc8={};_0x286dc8[_0x4f9049(0x108)]=_0x4d4013[_0x4f9049(0x11f)],_0x286dc8[_0x4f9049(0xe0)]=_0x4d4013[_0x4f9049(0xb5)];const _0x435f7d={};return _0x435f7d[_0x4f9049(0xc2)]=_0x5f4298,_0x435f7d[_0x4f9049(0x120)]=_0x1f26e3,_0x435f7d[_0x4f9049(0x96)]=_0x4dac2a,_0x435f7d['cloud-provider']=_0x35b86a,_0x435f7d[_0x4f9049(0x145)]=_0x26d359,_0x435f7d[_0x4f9049(0x18c)]=_0x286dc8,_0x2ce140[_0x4f9049(0x98)](_0x480105['create'])['epilogue'](_0x10e6ff)['options'](_0x435f7d)['help'](_0x4d4013[_0x4f9049(0xc9)])[_0x4f9049(0x124)];}}_0x3108ee=!![],_0x2de30b=_0x7fb3b6[_0x4f9049(0x16b)],_0x21461b=_0x7fb3b6['cloudProvider'][_0x4f9049(0x9f)](),_0x11807a=_0x7fb3b6[_0x4f9049(0x145)];}else throw _0x3f4e61;}_0x7fb3b6[_0x4f9049(0x114)]&&(_0x4d4013[_0x4f9049(0x13b)](_0x4d4013[_0x4f9049(0x182)],_0x4d4013[_0x4f9049(0xa5)])?_0x2a468a=_0x7fb3b6[_0x4f9049(0x114)]:_0x5c1ed5[_0x4f9049(0xea)]={});global_registry[_0x4f9049(0x114)]=_0x2a468a;const _0x2b617e={};_0x2b617e[_0x4f9049(0x11c)]=_0x54d08e[_0x4f9049(0x143)][_0x4f9049(0x11c)],_0x2b617e[_0x4f9049(0x18f)]=_0x54d08e['Browserstack'][_0x4f9049(0x18f)];const _0x466c62={};_0x466c62[_0x4f9049(0x126)]=_0x4d4013[_0x4f9049(0x150)],_0x466c62[_0x4f9049(0x12b)]=_0x2b617e;const _0xc1c395=_0x466c62,_0x388512=_0x4f9049(0x165)+AG_API_URL+_0x4f9049(0x17c),_0x5a9e03={};_0x5a9e03[_0x4f9049(0x114)]=_0x2a468a;const _0x4e2550={'url':_0x388512,'qs':_0x5a9e03,..._0xc1c395},_0x416055=_0x4e2550,_0x5bcf55=await _0x4d4013['VYMik'](promisifiedRequest,_0x416055);if(_0x4d4013[_0x4f9049(0xdc)](_0x5bcf55,null)||_0x4d4013[_0x4f9049(0x90)](_0x5bcf55,undefined)){if(_0x4d4013['eoLVp'](_0x4d4013[_0x4f9049(0x13d)],_0x4d4013[_0x4f9049(0x109)]))_0x54194c=_0x4d4013[_0x4f9049(0x13c)],await _0x4d4013[_0x4f9049(0x16e)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x168)],_0x4d4013[_0x4f9049(0xbb)],_0x4d4013[_0x4f9049(0x10b)]),logger[_0x4f9049(0x141)](_0x54194c),process['exit'](0x1);else{const _0x169d61={};_0x169d61[_0x4f9049(0xe0)]=_0xd90336[_0x4f9049(0xc6)],_0x169d61[_0x4f9049(0xac)]=_0x22eba7,_0x4ac7e1['sendEventToBackend'](_0x4a1b70,_0x169d61,_0x4d4013['xYRrp'],!![]);}}_0x4d4013['LmccG'](_0x5bcf55[_0x4f9049(0x127)],0x191)&&(_0x4d4013[_0x4f9049(0x12c)](_0x4d4013[_0x4f9049(0xe9)],_0x4d4013[_0x4f9049(0xe9)])?_0x3a42d3=_0x4d4013[_0x4f9049(0x110)]:(_0x54194c=_0x4d4013[_0x4f9049(0xb7)],await _0x4d4013['jTdRs'](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013['zTDKN'],_0x4d4013['TlXbM'],_0x4d4013[_0x4f9049(0x10b)]),logger['error'](_0x54194c),process[_0x4f9049(0xaf)](0x1)));if(_0x4d4013[_0x4f9049(0x144)](_0x5bcf55[_0x4f9049(0x127)],0xc8)){if(_0x4d4013[_0x4f9049(0xfa)](_0x4d4013[_0x4f9049(0xd0)],_0x4d4013['VBRYI'])){const _0x446aab={};_0x446aab[_0x4f9049(0xe0)]=_0x1cb10e['LOG'],_0x446aab[_0x4f9049(0xac)]=_0x4f9049(0x92)+_0x309498+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x2d1948[_0x4f9049(0x152)](_0x5b772a,_0x446aab,_0x4d4013[_0x4f9049(0xef)]),_0xd4b9d4['info']('Cluster\x20'+_0x2cd006+_0x4f9049(0x14f)),_0x1b10be=!![];}else _0x54194c='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x4f9049(0x104)](_0x5bcf55),await _0x4d4013[_0x4f9049(0x9b)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes['ERROR'],_0x4d4013[_0x4f9049(0x168)],_0x4d4013[_0x4f9049(0x19b)],_0x4d4013[_0x4f9049(0x10b)]),logger[_0x4f9049(0x141)](_0x54194c),process['exit'](0x1);}const _0x2f960a=JSON['parse'](_0x5bcf55[_0x4f9049(0x16f)]),_0x2febef={};_0x2febef[_0x4f9049(0xe0)]=WS_EVENTS['CLI_RUN_STARTED'],_0x2febef[_0x4f9049(0xac)]=_0x4f9049(0x181),webSocketUtils['sendEventToBackend'](_0x25ebb3,_0x2febef);const _0xb9d702={};_0xb9d702[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0xb9d702['message']=_0x4d4013[_0x4f9049(0x174)],webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0xb9d702);_0x2f960a[_0x4f9049(0x13e)]&&(_0x4d4013[_0x4f9049(0xed)](_0x4d4013[_0x4f9049(0x177)],_0x4d4013[_0x4f9049(0x1a0)])?(_0x1350c2[_0x4f9049(0x141)](_0x4d4013[_0x4f9049(0x16a)]),_0x52962a['exit'](0x1)):(_0x54194c=_0x4d4013['nbMTp'],await _0x4d4013[_0x4f9049(0x16e)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x168)],_0x4d4013['OckhT'],_0x4d4013[_0x4f9049(0x10b)]),logger[_0x4f9049(0x141)](_0x54194c),process['exit'](0x1)));const _0x47010e=_0x2f960a[_0x4f9049(0xf4)];let _0x4f2629=_0x47010e[_0x2f960a['defaultGridProfile']];_0x7fb3b6[_0x4f9049(0x19a)]&&(_0x4d4013[_0x4f9049(0x1a1)](_0x4d4013[_0x4f9049(0x192)],_0x4d4013['pfyHp'])?_0x2b0305[_0x4f9049(0x164)]('Found\x20Subnets:\x20'+_0x36f8e1[_0x4f9049(0x104)](_0x4eaee3)+'\x20'):_0x4f2629=_0x47010e[_0x7fb3b6[_0x4f9049(0x19a)]]);if(_0x4d4013[_0x4f9049(0x90)](_0x3108ee,![])){if(_0x4d4013[_0x4f9049(0x140)](_0x4d4013['aKpTL'],_0x4d4013['tTrTI']))_0x32bbfa[_0x4f9049(0x161)]=!![];else{_0x4d4013[_0x4f9049(0x90)](_0x4f2629,undefined)&&(_0x4d4013[_0x4f9049(0x1a1)](_0x4d4013[_0x4f9049(0xb4)],_0x4d4013[_0x4f9049(0xb4)])?_0x2209dc=_0xedcf90[_0x294241[_0x4f9049(0x19a)]]:(_0x54194c=_0x4d4013[_0x4f9049(0xd8)],await _0x4d4013[_0x4f9049(0x9b)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x168)],_0x4d4013['SYePY'],_0x4d4013['xYRrp']),logger[_0x4f9049(0x141)](_0x54194c),process['exit'](0x1)));global_registry[_0x4f9049(0x137)]=_0x4f2629['id'];(_0x4d4013[_0x4f9049(0x90)](_0x21461b,AZURE)||_0x4d4013[_0x4f9049(0x186)](_0x4f2629?.[_0x4f9049(0xea)],AZURE))&&(_0x4d4013[_0x4f9049(0x1a1)](_0x4d4013[_0x4f9049(0x88)],_0x4d4013[_0x4f9049(0x88)])?_0x4ff9c0=_0x3c5bf1[_0x4f9049(0x114)]:(console['error'](_0x4d4013['rCoED']),process[_0x4f9049(0xaf)](0x1)));_0x54194c=_0x4f9049(0x91)+_0x2a468a+'\x20using\x20\x27'+_0x4f2629[_0x4f9049(0x15e)]+'\x27\x20grid\x20profile',logger[_0x4f9049(0x164)](_0x54194c);const _0x84e625={};_0x84e625['type']=WS_EVENTS[_0x4f9049(0xc6)],_0x84e625[_0x4f9049(0xac)]=_0x54194c,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x84e625),_0x21461b=_0x4f2629['cloudProvider'],_0x2de30b=_0x4f2629[_0x4f9049(0x16b)],_0x11807a=_0x4f2629[_0x4f9049(0x145)],_0x572abb=_0x4f2629['concurrency'],_0x1c73fd=_0x4f2629[_0x4f9049(0x151)],_0x27ee11=_0x4f2629[_0x4f9049(0x1a3)],securityGroups=_0x4f2629[_0x4f9049(0x162)],subnets=_0x4f2629[_0x4f9049(0x87)],_0x1e428b=_0x4f2629['s3bucket'],_0x46bb9f=_0x4f2629[_0x4f9049(0xa3)],_0x5825f9=_0x4f2629['maxNodes'],_0x5cc038=_0x2f960a[_0x4f9049(0x9c)],_0x37e88a=_0x2f960a[_0x4f9049(0x93)],_0x4d4013[_0x4f9049(0x144)](_0x4f2629['privateGrid'],undefined)&&_0x4f2629[_0x4f9049(0x8b)]&&(_0x4d4013['ZbshN'](_0x4d4013[_0x4f9049(0xb0)],_0x4d4013[_0x4f9049(0xc5)])?global_registry[_0x4f9049(0x161)]=!![]:(_0x2593f8=_0x42f3b9[_0x4f9049(0xeb)],_0x276c43=_0x4d4013[_0x4f9049(0x111)])),_0x4d4013[_0x4f9049(0xa8)](updateGlobalRegistryWithConfig,_0x21461b,_0x2de30b,_0x11807a,_0x572abb,_0x1c73fd,_0x1e428b,_0x4f2629,_0x5cc038,_0x37e88a,_0x46bb9f,_0x5825f9);}}else{const _0xa8ae40=_0x4d4013['oEVvZ'][_0x4f9049(0x9e)]('|');let _0x1c942a=0x0;while(!![]){switch(_0xa8ae40[_0x1c942a++]){case'0':const _0x414d08={};_0x414d08[_0x4f9049(0xe0)]=WS_EVENTS['LOG'],_0x414d08[_0x4f9049(0xac)]=_0x54194c,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x414d08);continue;case'1':_0x54194c=_0x4f9049(0xe1)+_0x2a468a+_0x4f9049(0x17b)+_0x2de30b+'\x27';continue;case'2':logger[_0x4f9049(0x164)](_0x54194c);continue;case'3':const _0x5557d9={};_0x5557d9[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xbc)],_0x5557d9[_0x4f9049(0xac)]=_0x4f9049(0x181),webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x5557d9);continue;case'4':global_registry[_0x4f9049(0xe7)]=_0x11807a;continue;case'5':global_registry[_0x4f9049(0x16b)]=_0x2de30b;continue;case'6':global_registry[_0x4f9049(0x93)]=_0x2f960a[_0x4f9049(0x93)];continue;case'7':global_registry[_0x4f9049(0xea)]=_0x21461b;continue;case'8':global_registry['hubVersion']=_0x2f960a['hubVersion'];continue;}break;}}const _0x504b67=_0x4d4013[_0x4f9049(0xd2)](getCloudProviderObject,_0x21461b,_0x2de30b,_0x2a468a,_0x25ebb3,webSocketUtils),_0x184d8d=_0x54d08e[_0x4f9049(0xea)]||{};if(_0x4d4013[_0x4f9049(0xf7)](_0x184d8d[_0x21461b],undefined)){logger[_0x4f9049(0x164)](_0x4d4013['vfKOX']);_0x4d4013[_0x4f9049(0xf7)](_0x54d08e[_0x4f9049(0xea)],undefined)&&(_0x54d08e[_0x4f9049(0xea)]={});_0x54d08e[_0x4f9049(0xea)][_0x21461b]={};const _0x48636d=await _0x4d4013[_0x4f9049(0x15f)](inputCloudProviderKeys,_0x21461b,_0x54d08e,_0x504b67);fs[_0x4f9049(0x195)](_0x4d4013['EohVb'](getCredentialsPath),JSON[_0x4f9049(0x104)](_0x48636d)),logger[_0x4f9049(0x129)](_0x4d4013['itlcQ']);}else{_0x54194c=_0x4d4013['anbuY'];const _0x5cb61f={};_0x5cb61f[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0x5cb61f[_0x4f9049(0xac)]=_0x54194c,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x5cb61f),logger[_0x4f9049(0x164)](_0x54194c),await _0x504b67[_0x4f9049(0xe8)](_0x184d8d);}_0x504b67[_0x4f9049(0x167)]();let _0x4a38a9;if(_0x4d4013[_0x4f9049(0xed)](_0x3108ee,![])){_0x54194c='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x11807a+').';const _0x25a6cf={};_0x25a6cf[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0x25a6cf[_0x4f9049(0xac)]=_0x54194c,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x25a6cf),logger[_0x4f9049(0x164)](_0x54194c);const _0xbd1135=await _0x504b67[_0x4f9049(0x10c)]();if(_0xbd1135){const _0x3adbd5={};_0x3adbd5['type']=WS_EVENTS[_0x4f9049(0xc6)],_0x3adbd5[_0x4f9049(0xac)]=_0x4f9049(0x92)+_0x2de30b+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x3adbd5,_0x4d4013[_0x4f9049(0xef)]),logger[_0x4f9049(0x164)]('Cluster\x20'+_0x2de30b+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x3108ee=!![];}else{const _0x242c10={};_0x242c10['type']=WS_EVENTS[_0x4f9049(0xc6)],_0x242c10[_0x4f9049(0xac)]=_0x4d4013[_0x4f9049(0xc1)],webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x242c10),logger[_0x4f9049(0x164)](_0x4d4013['KzMEC']);const _0x2267db=_0x4d4013[_0x4f9049(0x13a)](_0x27ee11,null)&&_0x4d4013[_0x4f9049(0x9d)](_0x27ee11,undefined),_0x4d4f85=_0x4d4013['cjJAe'](subnets,null)&&_0x4d4013['UphKl'](subnets,undefined)&&_0x4d4013[_0x4f9049(0x107)](subnets[_0x4f9049(0x15a)],0x0);if(_0x2267db){_0x4d4013[_0x4f9049(0xae)](_0x4d4f85,![])&&(_0x54194c=_0x4d4013['WMIGk'],await _0x4d4013[_0x4f9049(0x16e)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes['ERROR'],_0x4d4013[_0x4f9049(0x168)],_0x4d4013[_0x4f9049(0x163)],_0x4d4013[_0x4f9049(0x10b)]),logger['error'](_0x54194c),process['exit'](0x1));const _0x50571d=await _0x504b67[_0x4f9049(0xdd)](_0x27ee11);_0x4d4013['rSGWR'](_0x50571d,![])?(_0x54194c=_0x4d4013[_0x4f9049(0xc4)],await _0x4d4013[_0x4f9049(0x17d)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x168)],_0x4d4013[_0x4f9049(0xd1)],_0x4d4013[_0x4f9049(0x10b)]),logger[_0x4f9049(0x141)](_0x54194c),process[_0x4f9049(0xaf)](0x1)):logger[_0x4f9049(0x164)](_0x4f9049(0x18a)+_0x27ee11+'\x20');const _0x6bfb6=await _0x504b67[_0x4f9049(0x185)](subnets,_0x27ee11);_0x4d4013[_0x4f9049(0xdc)](_0x6bfb6[0x0],![])?(_0x54194c=_0x4f9049(0x179)+_0x6bfb6[0x1]+_0x4f9049(0x146)+_0x27ee11+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x4d4013[_0x4f9049(0x199)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x168)],_0x4d4013['nvQeY'],_0x4d4013[_0x4f9049(0x10b)]),logger[_0x4f9049(0x141)](_0x54194c),process[_0x4f9049(0xaf)](0x1)):logger['info']('Found\x20Subnets:\x20'+JSON['stringify'](subnets)+'\x20'),await _0x504b67['setupNewCluster'](_0x27ee11,subnets);}else{const _0x3351c9=_0x4d4013['miogP'][_0x4f9049(0x9e)]('|');let _0x4914e1=0x0;while(!![]){switch(_0x3351c9[_0x4914e1++]){case'0':await _0x504b67['setupNewCluster']();continue;case'1':const _0x54b4c4={};_0x54b4c4['type']=WS_EVENTS[_0x4f9049(0xc6)],_0x54b4c4[_0x4f9049(0xac)]='Cluster\x20created\x20successfully',webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x54b4c4);continue;case'2':logger[_0x4f9049(0x164)](_0x4d4013['hMlaT']);continue;case'3':logger[_0x4f9049(0x164)](_0x4d4013[_0x4f9049(0x15b)]);continue;case'4':const _0x59a5ae={};_0x59a5ae['type']=WS_EVENTS['LOG'],_0x59a5ae['message']=_0x4d4013[_0x4f9049(0x15b)],webSocketUtils['sendEventToBackend'](_0x25ebb3,_0x59a5ae);continue;}break;}}}}_0x3108ee&&_0x4d4013['mMUCG'](_0x21461b,AZURE)&&(global_registry['s3Bucket']=_0x2f960a[_0x4f9049(0xaa)],await _0x504b67[_0x4f9049(0xbf)](),await _0x504b67[_0x4f9049(0x148)]());const [_0xf1e5f6,_0x2fb424,_0x39d6ac,_0x43f779,_0x3f06d2,_0xaaa68]=await _0x4d4013['VYMik'](createK8sClient,_0x504b67);_0x4d4013[_0x4f9049(0xdc)](_0x3108ee,![])&&_0x4d4013[_0x4f9049(0xe2)](_0x21461b,AWS)&&(_0x4a38a9=await _0x504b67[_0x4f9049(0x139)](_0xf1e5f6,_0x7fb3b6));try{_0x5f320a=_0x4d4013['kdOXP'](kebabCase,_0x2a468a),logger[_0x4f9049(0x164)](_0x4d4013[_0x4f9049(0x180)]);const _0x290abc={};_0x290abc[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0x290abc[_0x4f9049(0xac)]=_0x4d4013[_0x4f9049(0x180)],webSocketUtils['sendEventToBackend'](_0x25ebb3,_0x290abc);if(_0x4d4013[_0x4f9049(0x134)](_0x5f320a,_0x4d4013['esntu'])){const _0x300544={};_0x300544[_0x4f9049(0x196)]=_0x4d4013[_0x4f9049(0xdb)],_0x300544['managedBy']=_0x4d4013['cQhfb'];const _0x41412c={};_0x41412c[_0x4f9049(0x15e)]=_0x5f320a,_0x41412c[_0x4f9049(0xa9)]=_0x300544;const _0xb26e2e={};_0xb26e2e['metadata']=_0x41412c;let _0x3df117=_0xb26e2e;await _0xf1e5f6[_0x4f9049(0x101)](_0x3df117),logger[_0x4f9049(0x164)](_0x4d4013[_0x4f9049(0x131)]);}const _0xd64170={};_0xd64170[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0xd64170[_0x4f9049(0xac)]=_0x4d4013[_0x4f9049(0x166)],webSocketUtils['sendEventToBackend'](_0x25ebb3,_0xd64170);const _0x2a561e={};_0x2a561e[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0x2a561e[_0x4f9049(0xac)]=_0x4d4013['qwghn'],webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x2a561e),logger[_0x4f9049(0x164)](_0x4d4013[_0x4f9049(0x15d)]);let _0x30410b={};_0x4d4013[_0x4f9049(0x84)](_0x21461b,AZURE)&&(_0x30410b={'clientId':await _0x504b67[_0x4f9049(0xa0)](_0x4f9049(0xe6)+_0x2de30b)});await _0x4d4013['uuiME'](addGridComponents,_0xf1e5f6,_0x2fb424,_0x39d6ac,_0x43f779,_0x5f320a,_0x2de30b,_0x4a38a9,_0x3f06d2,_0xaaa68,_0x30410b),_0x54194c=_0x4d4013[_0x4f9049(0xc7)],logger[_0x4f9049(0x164)](_0x54194c);const _0x849029={};_0x849029[_0x4f9049(0xe0)]=WS_EVENTS['LOG'],_0x849029[_0x4f9049(0xac)]=_0x54194c,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x849029),_0x54194c=_0x4d4013[_0x4f9049(0x193)],logger[_0x4f9049(0x164)](_0x54194c);const _0x14a1e8={};_0x14a1e8[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0x14a1e8[_0x4f9049(0xac)]=_0x54194c,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x14a1e8),await webSocketUtils[_0x4f9049(0x113)](0xea60);const _0x2b48da=await _0x4d4013[_0x4f9049(0xc0)](getNamespaceUID,_0xf1e5f6,_0x5f320a);let _0x63f687=global_registry[_0x4f9049(0x161)]?_0x4d4013[_0x4f9049(0x183)]:_0x4d4013[_0x4f9049(0xd5)],_0x2283b2=await _0xf1e5f6[_0x4f9049(0x102)](_0x63f687,_0x4d4013[_0x4f9049(0x123)]),_0x3de735=_0x504b67[_0x4f9049(0x8c)](_0x2283b2)+'/'+_0x5f320a,_0x41ce4e=_0x4d4013[_0x4f9049(0x110)];try{const _0x179b1f={'url':_0x4f9049(0x165)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x2b48da,..._0xc1c395},_0x98b43b=_0x179b1f,_0x5ed0d9=await _0x4d4013[_0x4f9049(0x147)](promisifiedRequest,_0x98b43b);(_0x4d4013[_0x4f9049(0x16d)](_0x5ed0d9,null)||_0x4d4013[_0x4f9049(0xe2)](_0x5ed0d9,undefined))&&(_0x54194c=_0x4d4013[_0x4f9049(0x19f)],await _0x4d4013[_0x4f9049(0x12d)](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x168)],_0x4d4013[_0x4f9049(0xd6)],_0x4d4013['xYRrp']),logger[_0x4f9049(0x141)](_0x54194c),process[_0x4f9049(0xaf)](0x1));_0x4d4013[_0x4f9049(0xfe)](_0x5ed0d9[_0x4f9049(0x127)],0x191)&&(_0x54194c=_0x4d4013[_0x4f9049(0xa4)],await _0x4d4013['ZAprF'](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x168)],_0x4d4013['UEMKb'],_0x4d4013[_0x4f9049(0x10b)]),logger[_0x4f9049(0x141)](_0x54194c),process[_0x4f9049(0xaf)](0x1));_0x4d4013[_0x4f9049(0xb9)](_0x5ed0d9['statusCode'],0xc8)&&(_0x54194c=_0x4f9049(0x11d)+JSON['stringify'](_0x5ed0d9),await _0x4d4013['GAZIX'](reportToGalactusAndSendToEDS,_0x7fb3b6,_0x25ebb3,_0x54194c,messageTypes['ERROR'],_0x4d4013[_0x4f9049(0x168)],_0x4d4013[_0x4f9049(0xf3)],_0x4d4013[_0x4f9049(0x10b)]),logger['error'](_0x54194c),process[_0x4f9049(0xaf)](0x1));const _0x439967=JSON[_0x4f9049(0xcd)](_0x5ed0d9[_0x4f9049(0x16f)]);_0x439967[_0x4f9049(0xeb)]&&(_0x3de735=_0x439967['route53'],_0x41ce4e=_0x4d4013[_0x4f9049(0x111)]),global_registry[_0x4f9049(0x161)]&&(_0x41ce4e=_0x4d4013[_0x4f9049(0x110)]);}catch(_0x16e749){}_0x54194c=_0x4f9049(0x171)+_0x3de735+'\x20',logger[_0x4f9049(0x164)](_0x54194c);const _0x52cf82={};_0x52cf82[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0x52cf82['message']=_0x54194c,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x52cf82),_0x54194c=_0x4f9049(0x8a)+_0x41ce4e+_0x4f9049(0x8f)+_0x3de735+_0x4f9049(0x19d),logger[_0x4f9049(0x164)](_0x54194c);const _0x8e5f3e={};_0x8e5f3e[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0x8e5f3e[_0x4f9049(0xac)]=_0x54194c,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x8e5f3e);const _0x237680={};_0x237680[_0x4f9049(0xe0)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x237680[_0x4f9049(0xac)]=_0x4f9049(0x10d)+_0x3de735,webSocketUtils[_0x4f9049(0x152)](_0x25ebb3,_0x237680),await webSocketUtils[_0x4f9049(0x113)](0x7d0);}catch(_0x5da3b5){if(_0x4d4013['knDqf'](_0x3108ee,![]))try{logger[_0x4f9049(0x164)]('Deleting\x20the\x20CloudFormation\x20Stacks'),await _0x4d4013[_0x4f9049(0xdf)](removeGridComponents,_0xf1e5f6,_0x2fb424,_0x39d6ac,_0x43f779,_0x5f320a),await _0x504b67['deleteCluster'](_0xf1e5f6,global_registry[_0x4f9049(0xe7)]);}catch(_0x3d0582){throw _0x3d0582;}throw _0x5da3b5;}}catch(_0x3c4c7f){const _0x466eac='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x3c4c7f+'\x20\x0a'+JSON[_0x4f9049(0x104)](_0x3c4c7f)+'\x20';if(_0x25ebb3){const _0x22e2a1={};_0x22e2a1[_0x4f9049(0xe0)]=WS_EVENTS[_0x4f9049(0xc6)],_0x22e2a1[_0x4f9049(0xac)]=_0x466eac,webSocketUtils['sendEventToBackend'](_0x25ebb3,_0x22e2a1,_0x4d4013[_0x4f9049(0x10b)],!![]);}await webSocketUtils[_0x4f9049(0x113)](0x7d0);const _0x3daa95={};_0x3daa95[_0x4f9049(0x141)]=_0x466eac,await _0x4d4013['WdUNe'](sendInstrumentationEvent,_0x7fb3b6,_0x4d4013[_0x4f9049(0x168)],messageTypes[_0x4f9049(0x125)],_0x4d4013[_0x4f9049(0x156)],_0x3daa95,_0x7fb3b6),logger['error'](_0x466eac);}process[_0x4f9049(0xaf)](0x0);};
1
+ function a10_0x23b8(_0x2f3b42,_0x3465c0){const _0x3e8167=a10_0x3e81();return a10_0x23b8=function(_0x23b81d,_0x3415ac){_0x23b81d=_0x23b81d-0x12c;let _0x2531f8=_0x3e8167[_0x23b81d];return _0x2531f8;},a10_0x23b8(_0x2f3b42,_0x3465c0);}const a10_0x3181e8=a10_0x23b8;(function(_0x2ed2a1,_0x397e19){const _0x42c85c=a10_0x23b8,_0x59774a=_0x2ed2a1();while(!![]){try{const _0x1d8773=parseInt(_0x42c85c(0x246))/0x1*(parseInt(_0x42c85c(0x163))/0x2)+-parseInt(_0x42c85c(0x1ea))/0x3*(parseInt(_0x42c85c(0x1c0))/0x4)+parseInt(_0x42c85c(0x1f6))/0x5+parseInt(_0x42c85c(0x13d))/0x6*(parseInt(_0x42c85c(0x23f))/0x7)+parseInt(_0x42c85c(0x219))/0x8+parseInt(_0x42c85c(0x18e))/0x9*(parseInt(_0x42c85c(0x133))/0xa)+-parseInt(_0x42c85c(0x177))/0xb*(parseInt(_0x42c85c(0x22a))/0xc);if(_0x1d8773===_0x397e19)break;else _0x59774a['push'](_0x59774a['shift']());}catch(_0x320416){_0x59774a['push'](_0x59774a['shift']());}}}(a10_0x3e81,0x43b1f));const fs=require('fs'),ws=require('ws'),util=require(a10_0x3181e8(0x203)),ReconnectingWebSocket=require(a10_0x3181e8(0x19d)),request=require(a10_0x3181e8(0x209)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a10_0x3181e8(0x144)),{logger}=require(a10_0x3181e8(0x14c)),{inputCloudProviderKeys}=require(a10_0x3181e8(0x13c)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a10_0x3181e8(0x1e8)),{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(a10_0x3181e8(0x19e)),{createK8sClient}=require(a10_0x3181e8(0x12f)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a10_0x3181e8(0x130)](request);function a10_0x3e81(){const _0x4051cf=['YdBTD','exit','existsSync','KEPMP','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','cloud-provider','clusterName','yXTjs','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Creating\x20namespace','replace','InLTb','IwiuC','Adding\x20Websocket\x20listeners','route53','ShqRz','init-not-called','jddcV','Grid\x20profile\x20fetched\x20from\x20backend','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','117474OnNnzp','command','BetjE','GET','pre-spawned-invalid-subnets','yWMOv','nDQfy','194596AGsaXM','ZztZp','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','fXOQM','parse','wExwJ','auth','gPOIR','UAaqh','psiYt','grid-spawning-failed','wLefA','KItMu','name','1|2|8|0|3|4|6|7|5','dOQix','s3BucketName','cloudProvider','create-grid-checks-null-response','1|7|0|2|5|4|8|3|6','iLMAu','../../utils/createk8sClient','promisify','createdBy','eQwrK','1010aSRwhb','yzbZF','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','Grid\x20spawned\x20on\x20the\x20cluster','/packages/cli/create-grid-checks','ERosp','cAJlS','\x27\x20grid\x20profile','debug','../../utils/userInput','102PpCgcx','smBoP','YlizW','XqJqe','toLowerCase','create-grid-checks-invalid-profile','password','../../utils/webSocketUtils','QMfHj','/packages/cli/get-grid-url?gridIdentifier=','JBMRO','beRaK','iqoBV','MWnTN','qmseE','../../config/logger','uuJUk','pncem','PLoVZ','Cluster\x20','Create\x20a\x20private/public\x20grid.','gHFQb','body','prespawned-cluster-args-not-passed','get-grid-url-null-response','setupNewCluster','managedBy','LKZEl','ymodp','yNlDF','oVJcu','maxNodes','dhqxb','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','bstackAccesskey','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','mBzKU','2gMvhZb','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','statusCode','gridProfileId','BHHTo','Zctwh','string','isClusterPresent','xZnoj','BnYeD','ZSUGz','username','rYzXq','ZQOuR','Namespace\x20Created','usage','isPrivateGrid','\x20using\x20\x27','true','DkCXO','11EPuvzc','UBymz','setupAutoscaler','VJTvx','AAGDQ','Found\x20Subnets:\x20','CCOOv','PMrcK','Kwege','jHouD','WQrWP','LuzuQ','Will\x20be\x20spawning\x20the\x20grid\x20','TOHQF','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','gridName','vSecd','lmgrs','delay','error','alreadyPresent','myzyG','CKJsp','16407csriXC','DNrZX','region','DuUDx','XDToW','desc','DwRKg','wrCMo','ztlyK','sendEventToBackend','VMfrK','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','ASSjQ','LyTap','hubVersion','reconnecting-websocket','../../utils/gridComponents','split','message','create','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','maPPy','wKzDI','stringify','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','minNodes','getResourceClientId','gnhUT','description','nahzr','AKNRV','configureIfNotConfigured','Spawning\x20grid\x20on\x20to\x20the\x20cluster','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','grid','RRcwc','GbneH','readNamespacedService','create-grid-checks-auth-failed','RIXOz','iBJEa','privateGrid','Spawning\x20the\x20grid\x20','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','XXeIO','pre-spawned-subnets-not-selected','defaultGridProfile','get-grid-url-auth-failed','OWdVN','JBCEt','4lXrxEw','Cluster\x20created\x20successfully','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','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.','ingress-nginx','YWJHg','pBmZb','CLI\x20run\x20started','QizPh','concurrency','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','ERROR','grid-name','annotations','handler','subnets','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','cnKTx','Mnntw','private-ingress-nginx-controller','OHxYQ','NiYgF','getGridHostname','non-aws-azure-cluster','isVPCPresent','FqfIb','pMyec','qAWKz','deleteCluster','sjOUA','qrpWv','Nqoib','fqQMl','bCRBI','includes','<PasswordPlaceholder>','get-grid-url-non-200','instanceType','INFO','../../cloudproviders/utils','createNamespace','1180422ztjXOt','clusterRegion','create-grid-checks-grid-already-exists','fetchLocalCreds','pre-spawned-invalid-vpc','type','caqRz','Grid\x20can\x20be\x20accessed\x20at:\x20','info','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','\x20in\x20existing\x20cluster\x20\x27','WebSocket','2553390hJpSoZ','MlMVb','s3Bucket','Subnets:\x20','AfBim','tCWxz','hDpOi','zscbE','https://','vxhgJ','mgvTe','EbClM','CLI_RUN_STARTED','util','/wd/hub','options','DCfYR','addListeners','fwQkW','request','FVNsw','Deleting\x20the\x20CloudFormation\x20Stacks','YmBvl','ODzbG','help','browserVersion','vpc','Found\x20VPC:\x20','thkPA','gridProfile','QoSeZ','fKPfE','iINAm','CLI_RUN_FINISHED','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','3638528JKCMlN','LwrPw','ODzJS','Jcrte','LOG','writeFileSync','jwKRL','kjcho','securityGroups','://','method','Browserstack','createOtherResources','FIcrX','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','metadata','epilogue','11505048YSufpo'];a10_0x3e81=function(){return _0x4051cf;};return a10_0x3e81();}exports[a10_0x3181e8(0x240)]=a10_0x3181e8(0x1b0),exports[a10_0x3181e8(0x193)]='Create\x20a\x20new\x20Automation\x20grid.',exports['builder']=function(_0x462996){const _0x2800b5=a10_0x3181e8,_0x155caa={};_0x155caa[_0x2800b5(0x1d5)]=_0x2800b5(0x1af),_0x155caa[_0x2800b5(0x158)]=_0x2800b5(0x169),_0x155caa[_0x2800b5(0x237)]=_0x2800b5(0x1a2),_0x155caa['aWkuP']=_0x2800b5(0x23e),_0x155caa[_0x2800b5(0x182)]=_0x2800b5(0x227),_0x155caa[_0x2800b5(0x15b)]=_0x2800b5(0x161),_0x155caa[_0x2800b5(0x216)]=_0x2800b5(0x151),_0x155caa[_0x2800b5(0x21b)]=_0x2800b5(0x20e);const _0x2d791a=_0x155caa,_0x35608b={};_0x35608b['description']=_0x2d791a[_0x2800b5(0x1d5)],_0x35608b[_0x2800b5(0x1ef)]=_0x2d791a[_0x2800b5(0x158)];const _0x3b70ff={};_0x3b70ff['description']=_0x2d791a[_0x2800b5(0x237)],_0x3b70ff[_0x2800b5(0x1ef)]=_0x2d791a[_0x2800b5(0x158)];const _0x3e480b={};_0x3e480b[_0x2800b5(0x1aa)]=_0x2d791a['aWkuP'],_0x3e480b['type']=_0x2d791a[_0x2800b5(0x158)];const _0x513b95={};_0x513b95[_0x2800b5(0x1aa)]=_0x2d791a[_0x2800b5(0x182)],_0x513b95[_0x2800b5(0x1ef)]=_0x2d791a['LKZEl'];const _0x12b914={};_0x12b914[_0x2800b5(0x1aa)]=_0x2d791a[_0x2800b5(0x15b)],_0x12b914[_0x2800b5(0x1ef)]=_0x2d791a[_0x2800b5(0x158)];const _0x2e3656={};_0x2e3656['description']=_0x2d791a['iINAm'],_0x2e3656['type']=_0x2d791a[_0x2800b5(0x158)];const _0x156e71={};return _0x156e71['grid-name']=_0x35608b,_0x156e71['grid-profile']=_0x3b70ff,_0x156e71['cluster-name']=_0x3e480b,_0x156e71[_0x2800b5(0x230)]=_0x513b95,_0x156e71['region']=_0x12b914,_0x156e71['private-grid']=_0x2e3656,_0x462996['usage'](HELP_HEADER_MESSAGE[_0x2800b5(0x1a1)])[_0x2800b5(0x229)](HELP_FOOTER_MESSAGE)['options'](_0x156e71)['help'](_0x2d791a['ODzJS'])['argv'];},exports[a10_0x3181e8(0x1cf)]=async function(_0x5425ac){const _0x42c379=a10_0x3181e8,_0x5a81e5={'bCRBI':_0x42c379(0x1af),'QoSeZ':'string','nDQfy':_0x42c379(0x1a2),'XXeIO':_0x42c379(0x23e),'vSecd':_0x42c379(0x227),'sjOUA':_0x42c379(0x161),'bLLDb':'Create\x20a\x20private/public\x20grid.','YlizW':_0x42c379(0x20e),'DwRKg':'https','KItMu':'http','AAGDQ':_0x42c379(0x254),'Kwege':_0x42c379(0x1a6),'qrpWv':'warn','AKNRV':_0x42c379(0x18a),'caqRz':function(_0x537f17){return _0x537f17();},'EbClM':function(_0x2ad71f,_0x20a670){return _0x2ad71f!==_0x20a670;},'ZztZp':'lAagY','fwQkW':_0x42c379(0x1c3),'gHFQb':function(_0x76b455,_0xc0002b,_0x1cbdc4,_0x139520,_0x4511bf,_0x44570b,_0x57c87b){return _0x76b455(_0xc0002b,_0x1cbdc4,_0x139520,_0x4511bf,_0x44570b,_0x57c87b);},'ymodp':'create-grid-called','qmseE':_0x42c379(0x23b),'yNlDF':'<UsernamePlaceholder>','UwCNl':_0x42c379(0x1e4),'mBzKU':_0x42c379(0x238),'pBmZb':function(_0x8945f9,_0x1ce789){return _0x8945f9!==_0x1ce789;},'cAJlS':_0x42c379(0x24b),'ODzbG':function(_0x26e159,_0x1a478d){return _0x26e159===_0x1a478d;},'fKPfE':_0x42c379(0x196),'JBCEt':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','KEPMP':function(_0x20780a,_0x43737e,_0x410417,_0x545664,_0x15660a,_0x46b0f2,_0x45f71b,_0x3f4fb4){return _0x20780a(_0x43737e,_0x410417,_0x545664,_0x15660a,_0x46b0f2,_0x45f71b,_0x3f4fb4);},'BHHTo':_0x42c379(0x154),'XqJqe':_0x42c379(0x23c),'cmMgb':_0x42c379(0x1c2),'QizPh':function(_0x72475b,_0x184689,_0x3d5196,_0x20486e,_0x3141ae,_0x62b93d,_0x241c58,_0x212b29){return _0x72475b(_0x184689,_0x3d5196,_0x20486e,_0x3141ae,_0x62b93d,_0x241c58,_0x212b29);},'ZSUGz':_0x42c379(0x1d8),'xZnoj':_0x42c379(0x175),'ERosp':function(_0x3205fa,_0x436530){return _0x3205fa===_0x436530;},'yXTjs':_0x42c379(0x1b1),'mgvTe':function(_0x211317,_0x679845){return _0x211317===_0x679845;},'FIcrX':_0x42c379(0x220),'eAkPP':_0x42c379(0x242),'BnYeD':function(_0xa184e3,_0x366fb7){return _0xa184e3(_0x366fb7);},'cnKTx':function(_0x14dd1d,_0x280493){return _0x14dd1d!==_0x280493;},'dhqxb':_0x42c379(0x192),'Mnntw':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','yzbZF':function(_0x376173,_0x30c955,_0x5cc72b,_0x3c43e2,_0xdc9be3,_0x1361fc,_0x4880ee,_0x32291f){return _0x376173(_0x30c955,_0x5cc72b,_0x3c43e2,_0xdc9be3,_0x1361fc,_0x4880ee,_0x32291f);},'iBJEa':_0x42c379(0x12c),'UBymz':function(_0x5d37bf,_0x2b9ca0){return _0x5d37bf===_0x2b9ca0;},'jwKRL':_0x42c379(0x1dc),'ASSjQ':_0x42c379(0x168),'JGBwP':_0x42c379(0x199),'tCWxz':function(_0x2f7a05,_0x310d0d,_0x153864,_0x2b5def,_0x478ac7,_0x3ab36e,_0x221796,_0x4dc493){return _0x2f7a05(_0x310d0d,_0x153864,_0x2b5def,_0x478ac7,_0x3ab36e,_0x221796,_0x4dc493);},'BetjE':_0x42c379(0x1b4),'DCfYR':function(_0x343e3b,_0x353d9d){return _0x343e3b===_0x353d9d;},'ShqRz':_0x42c379(0x14a),'VXwdR':function(_0x585e73,_0x25db83,_0x3d93c9,_0x52a646,_0x541a38,_0x3c3408,_0x466e42,_0xfaea85){return _0x585e73(_0x25db83,_0x3d93c9,_0x52a646,_0x541a38,_0x3c3408,_0x466e42,_0xfaea85);},'psiYt':'create-grid-checks-non-200','GbneH':_0x42c379(0x23d),'thkPA':_0x42c379(0x20c),'cgqpZ':_0x42c379(0x233),'lmgrs':_0x42c379(0x1ec),'QMfHj':function(_0x112841,_0x16545e){return _0x112841!==_0x16545e;},'yWMOv':_0x42c379(0x18c),'VObhV':function(_0x1eadeb,_0x3063b0){return _0x1eadeb!==_0x3063b0;},'moWyZ':_0x42c379(0x16f),'fqQMl':_0x42c379(0x18f),'smBoP':_0x42c379(0x17a),'uuJUk':_0x42c379(0x149),'vxhgJ':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','IEAst':function(_0x537f42,_0xb36857,_0x196731,_0x15839f,_0x111612,_0x47ac10,_0xc49466,_0x2114dd){return _0x537f42(_0xb36857,_0x196731,_0x15839f,_0x111612,_0x47ac10,_0xc49466,_0x2114dd);},'AfBim':_0x42c379(0x142),'InLTb':function(_0x8c3bd0,_0x5efc8b){return _0x8c3bd0===_0x5efc8b;},'bAxwU':function(_0x41c642,_0x251eab){return _0x41c642===_0x251eab;},'YdBTD':'wKWmy','gPOIR':'rLYzR','wKzDI':function(_0x452c3f,_0x370a52,_0x256d28,_0x3901b3,_0x4b8432,_0x4ab966,_0x28a0e1,_0x3aa741,_0xf950bc,_0x4674db,_0x46c796,_0x4dc1a4){return _0x452c3f(_0x370a52,_0x256d28,_0x3901b3,_0x4b8432,_0x4ab966,_0x28a0e1,_0x3aa741,_0xf950bc,_0x4674db,_0x46c796,_0x4dc1a4);},'pncem':_0x42c379(0x12d),'RIXOz':function(_0x59f186,_0x55f642,_0x3e1226,_0x5a019c,_0x45d372,_0xa9fd0a){return _0x59f186(_0x55f642,_0x3e1226,_0x5a019c,_0x45d372,_0xa9fd0a);},'FVNsw':'Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','WQrWP':function(_0x3ba406,_0x545362,_0x41d655,_0x1318c6){return _0x3ba406(_0x545362,_0x41d655,_0x1318c6);},'MlMVb':_0x42c379(0x1b9),'NiYgF':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','YWJHg':_0x42c379(0x1d1),'hLrkY':function(_0xda56f0,_0x5c34df){return _0xda56f0!=_0x5c34df;},'kuhmh':function(_0x3cfda6,_0x2ca48f){return _0x3cfda6!=_0x2ca48f;},'uoDRe':function(_0x5469c6,_0x49761e){return _0x5469c6!==_0x49761e;},'ZQdDv':function(_0x56aaf1,_0x372705){return _0x56aaf1>_0x372705;},'DkCXO':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','DuUDx':function(_0x2b4f5d,_0x122417,_0x6a5085,_0x46ba8a,_0x4cfae0,_0x33fd22,_0x584f12,_0x5a8bf0){return _0x2b4f5d(_0x122417,_0x6a5085,_0x46ba8a,_0x4cfae0,_0x33fd22,_0x584f12,_0x5a8bf0);},'dOQix':_0x42c379(0x1bb),'YwSTM':_0x42c379(0x1f3),'zfkxy':_0x42c379(0x1ee),'yIxXN':function(_0x12078c,_0x5455fd,_0x359239,_0x1c78dc,_0x1c2464,_0x5b2fe6,_0x43eee6,_0x295892){return _0x12078c(_0x5455fd,_0x359239,_0x1c78dc,_0x1c2464,_0x5b2fe6,_0x43eee6,_0x295892);},'ZQOuR':_0x42c379(0x243),'LyTap':'2|0|3|4|1','bJwNQ':_0x42c379(0x1c4),'wrCMo':_0x42c379(0x1c1),'fXOQM':function(_0x3ab4a0,_0xaa4a92){return _0x3ab4a0===_0xaa4a92;},'UAaqh':function(_0x4c6739,_0x3c328d){return _0x4c6739==_0x3c328d;},'nahzr':_0x42c379(0x234),'wLefA':function(_0x114321,_0x50ff3a){return _0x114321!==_0x50ff3a;},'GzUuY':'default','TOHQF':_0x42c379(0x224),'XGMdY':_0x42c379(0x171),'VMfrK':'Namespace\x20created','Jcrte':_0x42c379(0x1ae),'maPPy':'Spawning\x20Grid\x20on\x20the\x20Cluster','beRaK':function(_0x43b497,_0x37ecf3){return _0x43b497===_0x37ecf3;},'LwrPw':function(_0x2af0ad,_0x1ec634,_0x5a5747,_0x248da8,_0x1f3462,_0x1d5c5d,_0x5e4650,_0x4bdfb7,_0x440248,_0x5a1aab,_0x27fa3d){return _0x2af0ad(_0x1ec634,_0x5a5747,_0x248da8,_0x1f3462,_0x1d5c5d,_0x5e4650,_0x4bdfb7,_0x440248,_0x5a1aab,_0x27fa3d);},'OWdVN':_0x42c379(0x136),'gnhUT':_0x42c379(0x15e),'CCOOv':function(_0x5de71e,_0x1affef,_0x455fb9){return _0x5de71e(_0x1affef,_0x455fb9);},'iLMAu':_0x42c379(0x1d4),'zscbE':'ingress-nginx-controller','eQwrK':_0x42c379(0x1c5),'pMyec':function(_0x4f7cb9,_0x5281b6){return _0x4f7cb9(_0x5281b6);},'lvaMw':function(_0xa9eaa7,_0x3a3f4b){return _0xa9eaa7==_0x3a3f4b;},'JBMRO':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','PUcwV':function(_0x94b741,_0x988167,_0x48aacc,_0xb5bc93,_0x2e4ee4,_0x2f8caa,_0x254969,_0x5a47e7){return _0x94b741(_0x988167,_0x48aacc,_0xb5bc93,_0x2e4ee4,_0x2f8caa,_0x254969,_0x5a47e7);},'PMrcK':_0x42c379(0x155),'wEIsN':_0x42c379(0x218),'FqfIb':function(_0x487277,_0x3b9f0c,_0x2b2b7b,_0x3291b0,_0x2de12a,_0x3d2d11,_0x91b085,_0x58c622){return _0x487277(_0x3b9f0c,_0x2b2b7b,_0x3291b0,_0x2de12a,_0x3d2d11,_0x91b085,_0x58c622);},'hDpOi':_0x42c379(0x1bd),'jHouD':_0x42c379(0x1e5),'CKJsp':function(_0x4d5d5f,_0x3ef39d){return _0x4d5d5f===_0x3ef39d;},'PLoVZ':function(_0x226275,_0x45e230,_0x590d5f,_0x59487b,_0xa7b225,_0x297c0a){return _0x226275(_0x45e230,_0x590d5f,_0x59487b,_0xa7b225,_0x297c0a);},'Nqoib':function(_0x45c080,_0x5eb984,_0x301736,_0x357b0b,_0x2c3411,_0x2f4991,_0x4a491b){return _0x45c080(_0x5eb984,_0x301736,_0x357b0b,_0x2c3411,_0x2f4991,_0x4a491b);},'xhNJl':_0x42c379(0x250)};let _0x46bb05=![],_0x200c42,_0x5d9e1f,_0x1dc5d7,_0x12d14b,_0x3bc879,_0x1ed395,_0x2ec3b1,_0x4b6fc3,_0xdbeb4f,_0x59e6a6,_0x32e50c,_0xcaf749,_0xd93ee8=0x1,_0x5ed843=0xe;try{global_registry['requestId']=_0x5a81e5[_0x42c379(0x1f0)](uuidv4),global_registry[_0x42c379(0x173)]=![];if(!fs[_0x42c379(0x22d)](_0x5a81e5[_0x42c379(0x1f0)](getCredentialsPath))){if(_0x5a81e5[_0x42c379(0x201)](_0x5a81e5[_0x42c379(0x247)],_0x5a81e5[_0x42c379(0x247)])){const _0x1ac06f={};_0x1ac06f[_0x42c379(0x1aa)]=_0x5a81e5[_0x42c379(0x1e2)],_0x1ac06f['type']=_0x5a81e5['QoSeZ'];const _0x2c6d={};_0x2c6d[_0x42c379(0x1aa)]=_0x5a81e5[_0x42c379(0x245)],_0x2c6d[_0x42c379(0x1ef)]=_0x5a81e5['QoSeZ'];const _0x154cb9={};_0x154cb9[_0x42c379(0x1aa)]=_0x5a81e5[_0x42c379(0x1ba)],_0x154cb9[_0x42c379(0x1ef)]=_0x5a81e5[_0x42c379(0x214)];const _0x776628={};_0x776628[_0x42c379(0x1aa)]=_0x5a81e5[_0x42c379(0x187)],_0x776628[_0x42c379(0x1ef)]=_0x5a81e5[_0x42c379(0x214)];const _0x5afd51={};_0x5afd51[_0x42c379(0x1aa)]=_0x5a81e5[_0x42c379(0x1de)],_0x5afd51[_0x42c379(0x1ef)]=_0x5a81e5[_0x42c379(0x214)];const _0x53716f={};_0x53716f['description']=_0x5a81e5['bLLDb'],_0x53716f[_0x42c379(0x1ef)]=_0x5a81e5[_0x42c379(0x214)];const _0x18d8da={};return _0x18d8da[_0x42c379(0x1cd)]=_0x1ac06f,_0x18d8da['grid-profile']=_0x2c6d,_0x18d8da['cluster-name']=_0x154cb9,_0x18d8da[_0x42c379(0x230)]=_0x776628,_0x18d8da['region']=_0x5afd51,_0x18d8da['private-grid']=_0x53716f,_0x392780[_0x42c379(0x172)](_0x597114[_0x42c379(0x1a1)])[_0x42c379(0x229)](_0x56c8f7)[_0x42c379(0x205)](_0x18d8da)[_0x42c379(0x20e)](_0x5a81e5[_0x42c379(0x13f)])['argv'];}else console[_0x42c379(0x18a)](_0x5a81e5[_0x42c379(0x208)]),await _0x5a81e5[_0x42c379(0x152)](sendInstrumentationEvent,_0x5425ac,_0x5a81e5[_0x42c379(0x159)],messageTypes[_0x42c379(0x1cc)],_0x5a81e5[_0x42c379(0x14b)],null,_0x5425ac),process[_0x42c379(0x22c)](0x1);}await _0x5a81e5[_0x42c379(0x152)](sendInstrumentationEvent,_0x5425ac,_0x5a81e5[_0x42c379(0x159)],messageTypes[_0x42c379(0x1e7)],null,null,_0x5425ac);const _0x1ac1e3=JSON[_0x42c379(0x24a)](fs['readFileSync'](_0x5a81e5['caqRz'](getCredentialsPath)));global_registry['bstackUsername']=_0x1ac1e3[_0x42c379(0x224)][_0x42c379(0x16e)],global_registry[_0x42c379(0x160)]=_0x1ac1e3[_0x42c379(0x224)][_0x42c379(0x143)];const _0x2c233f=WS_ENDPOINT[_0x42c379(0x235)](_0x5a81e5[_0x42c379(0x15a)],_0x1ac1e3[_0x42c379(0x224)]['username'])['replace'](_0x5a81e5['UwCNl'],_0x1ac1e3[_0x42c379(0x224)]['password']),_0x368f33={};_0x368f33[_0x42c379(0x1f5)]=ws,_0x368f33['connectionTimeout']=0x36ee80,_0x59e6a6=new ReconnectingWebSocket(_0x2c233f,[],_0x368f33),logger[_0x42c379(0x13b)](_0x5a81e5[_0x42c379(0x162)]),webSocketUtils[_0x42c379(0x207)](_0x59e6a6,_0x5425ac['user'],_0x5425ac[_0x42c379(0x143)]);let _0x52af68=DEFAULT_GRID_NAME;(_0x5425ac[_0x42c379(0x231)]||_0x5425ac[_0x42c379(0x257)]||_0x5425ac[_0x42c379(0x190)])&&(_0x5a81e5['pBmZb'](_0x5a81e5[_0x42c379(0x139)],_0x5a81e5[_0x42c379(0x139)])?(_0xafd697=_0x41a1ef[_0x42c379(0x239)],_0x266872=_0x5a81e5[_0x42c379(0x194)]):(!(_0x5425ac[_0x42c379(0x231)]&&_0x5425ac[_0x42c379(0x257)]&&_0x5425ac[_0x42c379(0x190)])&&(_0x5a81e5[_0x42c379(0x20d)](_0x5a81e5[_0x42c379(0x215)],_0x5a81e5['fKPfE'])?(_0x200c42=_0x5a81e5[_0x42c379(0x1bf)],await _0x5a81e5[_0x42c379(0x22e)](reportToGalactusAndSendToEDS,_0x5425ac,_0x59e6a6,_0x200c42,messageTypes['ERROR'],_0x5a81e5[_0x42c379(0x159)],_0x5a81e5[_0x42c379(0x167)],_0x5a81e5[_0x42c379(0x1ac)]),logger[_0x42c379(0x18a)](_0x200c42),process[_0x42c379(0x22c)](0x1)):_0x3ae813=_0x39d324['gridName']),![AWS,AZURE,GCP][_0x42c379(0x1e3)](_0x5425ac[_0x42c379(0x257)]['toLowerCase']())&&(_0x5a81e5[_0x42c379(0x20d)](_0x5a81e5[_0x42c379(0x140)],_0x5a81e5['XqJqe'])?(_0x200c42=_0x5a81e5['cmMgb'],await _0x5a81e5[_0x42c379(0x1c9)](reportToGalactusAndSendToEDS,_0x5425ac,_0x59e6a6,_0x200c42,messageTypes[_0x42c379(0x1cc)],_0x5a81e5['ymodp'],_0x5a81e5[_0x42c379(0x16d)],_0x5a81e5[_0x42c379(0x1ac)]),logger[_0x42c379(0x18a)](_0x200c42),process[_0x42c379(0x22c)](0x1)):_0x3e7c58=_0x5a81e5[_0x42c379(0x252)]),_0x5425ac[_0x42c379(0x1b7)]&&_0x5a81e5[_0x42c379(0x20d)](_0x5425ac['privateGrid'][_0x42c379(0x141)](),_0x5a81e5[_0x42c379(0x16b)])&&(_0x5a81e5['ERosp'](_0x5a81e5[_0x42c379(0x232)],_0x5a81e5['yXTjs'])?global_registry['isPrivateGrid']=!![]:_0x58a719['isPrivateGrid']=!![]),_0x46bb05=!![],_0x1dc5d7=_0x5425ac[_0x42c379(0x231)],_0x5d9e1f=_0x5425ac[_0x42c379(0x257)]['toLowerCase'](),_0x12d14b=_0x5425ac[_0x42c379(0x190)]));_0x5425ac[_0x42c379(0x186)]&&(_0x5a81e5['mgvTe'](_0x5a81e5['FIcrX'],_0x5a81e5[_0x42c379(0x226)])?_0x52af68=_0x5425ac[_0x42c379(0x186)]:_0x2fcf37['info'](_0x42c379(0x17c)+_0xd466bf[_0x42c379(0x1a5)](_0xfbc32d)+'\x20'));global_registry[_0x42c379(0x186)]=_0x52af68;const _0x231c23={};_0x231c23[_0x42c379(0x16e)]=_0x1ac1e3[_0x42c379(0x224)][_0x42c379(0x16e)],_0x231c23[_0x42c379(0x143)]=_0x1ac1e3[_0x42c379(0x224)][_0x42c379(0x143)];const _0xc8e25f={};_0xc8e25f[_0x42c379(0x223)]=_0x5a81e5['eAkPP'],_0xc8e25f[_0x42c379(0x24c)]=_0x231c23;const _0x5af26a=_0xc8e25f,_0x23f1c9=_0x42c379(0x1fe)+AG_API_URL+_0x42c379(0x137),_0x5418a8={};_0x5418a8[_0x42c379(0x186)]=_0x52af68;const _0x4f4c34={'url':_0x23f1c9,'qs':_0x5418a8,..._0x5af26a},_0x516438=_0x4f4c34,_0x48e309=await _0x5a81e5[_0x42c379(0x16c)](promisifiedRequest,_0x516438);(_0x5a81e5[_0x42c379(0x138)](_0x48e309,null)||_0x5a81e5[_0x42c379(0x20d)](_0x48e309,undefined))&&(_0x5a81e5[_0x42c379(0x1d2)](_0x5a81e5[_0x42c379(0x15d)],_0x5a81e5[_0x42c379(0x15d)])?_0x1078db=_0x5c7d46[_0x44ea9c[_0x42c379(0x213)]]:(_0x200c42=_0x5a81e5[_0x42c379(0x1d3)],await _0x5a81e5[_0x42c379(0x134)](reportToGalactusAndSendToEDS,_0x5425ac,_0x59e6a6,_0x200c42,messageTypes[_0x42c379(0x1cc)],_0x5a81e5[_0x42c379(0x159)],_0x5a81e5[_0x42c379(0x1b6)],_0x5a81e5[_0x42c379(0x1ac)]),logger[_0x42c379(0x18a)](_0x200c42),process[_0x42c379(0x22c)](0x1)));_0x5a81e5[_0x42c379(0x178)](_0x48e309[_0x42c379(0x165)],0x191)&&(_0x5a81e5[_0x42c379(0x200)](_0x5a81e5[_0x42c379(0x21f)],_0x5a81e5[_0x42c379(0x19a)])?_0x18d6f4[_0x42c379(0x1f2)](_0x42c379(0x211)+_0x5bc9f7+'\x20'):(_0x200c42=_0x5a81e5['JGBwP'],await _0x5a81e5[_0x42c379(0x1fb)](reportToGalactusAndSendToEDS,_0x5425ac,_0x59e6a6,_0x200c42,messageTypes[_0x42c379(0x1cc)],_0x5a81e5[_0x42c379(0x159)],_0x5a81e5[_0x42c379(0x241)],_0x5a81e5[_0x42c379(0x1ac)]),logger[_0x42c379(0x18a)](_0x200c42),process[_0x42c379(0x22c)](0x1)));if(_0x5a81e5[_0x42c379(0x1d2)](_0x48e309[_0x42c379(0x165)],0xc8)){if(_0x5a81e5[_0x42c379(0x206)](_0x5a81e5[_0x42c379(0x23a)],_0x5a81e5[_0x42c379(0x23a)]))_0x200c42=_0x42c379(0x15f)+JSON[_0x42c379(0x1a5)](_0x48e309),await _0x5a81e5['VXwdR'](reportToGalactusAndSendToEDS,_0x5425ac,_0x59e6a6,_0x200c42,messageTypes[_0x42c379(0x1cc)],_0x5a81e5[_0x42c379(0x159)],_0x5a81e5[_0x42c379(0x24f)],_0x5a81e5[_0x42c379(0x1ac)]),logger[_0x42c379(0x18a)](_0x200c42),process[_0x42c379(0x22c)](0x1);else{const _0x83aeac=_0x5a81e5[_0x42c379(0x17b)][_0x42c379(0x19f)]('|');let _0x26eaa1=0x0;while(!![]){switch(_0x83aeac[_0x26eaa1++]){case'0':const _0x572e8b={};_0x572e8b['type']=_0x1b206d[_0x42c379(0x21d)],_0x572e8b[_0x42c379(0x1a0)]=_0x693eb5,_0x1618f2[_0x42c379(0x197)](_0x4229ff,_0x572e8b);continue;case'1':const _0x1724d9={};_0x1724d9[_0x42c379(0x1ef)]=_0x535c65[_0x42c379(0x202)],_0x1724d9[_0x42c379(0x1a0)]=_0x42c379(0x1c8),_0x342385['sendEventToBackend'](_0x557494,_0x1724d9);continue;case'2':_0x51c087=_0x42c379(0x1b8)+_0x5dccee+_0x42c379(0x1f4)+_0xa5c494+'\x27';continue;case'3':_0x42c43f[_0x42c379(0x257)]=_0x402e81;continue;case'4':_0x4f4202['clusterRegion']=_0x3d7279;continue;case'5':_0x1357cd[_0x42c379(0x20f)]=_0xdd790[_0x42c379(0x20f)];continue;case'6':_0x200865['clusterName']=_0x2e850;continue;case'7':_0x5c3f51[_0x42c379(0x19c)]=_0x45ead4['hubVersion'];continue;case'8':_0x14736b['info'](_0x1cf6c2);continue;}break;}}}const _0x587d79=JSON['parse'](_0x48e309['body']),_0x32e5fc={};_0x32e5fc[_0x42c379(0x1ef)]=WS_EVENTS[_0x42c379(0x202)],_0x32e5fc[_0x42c379(0x1a0)]=_0x42c379(0x1c8),webSocketUtils[_0x42c379(0x197)](_0x59e6a6,_0x32e5fc);const _0x55cc3e={};_0x55cc3e[_0x42c379(0x1ef)]=WS_EVENTS[_0x42c379(0x21d)],_0x55cc3e[_0x42c379(0x1a0)]=_0x5a81e5[_0x42c379(0x1b2)],webSocketUtils[_0x42c379(0x197)](_0x59e6a6,_0x55cc3e);if(_0x587d79[_0x42c379(0x18b)]){if(_0x5a81e5[_0x42c379(0x200)](_0x5a81e5[_0x42c379(0x212)],_0x5a81e5[_0x42c379(0x212)]))_0x200c42=_0x5a81e5['cgqpZ'],await _0x5a81e5[_0x42c379(0x134)](reportToGalactusAndSendToEDS,_0x5425ac,_0x59e6a6,_0x200c42,messageTypes[_0x42c379(0x1cc)],_0x5a81e5[_0x42c379(0x159)],_0x5a81e5[_0x42c379(0x188)],_0x5a81e5[_0x42c379(0x1ac)]),logger['error'](_0x200c42),process[_0x42c379(0x22c)](0x1);else throw _0x3992b0;}const _0x3f0516=_0x587d79['gridProfiles'];let _0x511170=_0x3f0516[_0x587d79[_0x42c379(0x1bc)]];_0x5425ac[_0x42c379(0x213)]&&(_0x5a81e5['QMfHj'](_0x5a81e5[_0x42c379(0x244)],_0x5a81e5[_0x42c379(0x244)])?(_0x5b5b38[_0x42c379(0x18a)](_0x5a81e5[_0x42c379(0x17f)]),_0x287fc2[_0x42c379(0x22c)](0x1)):_0x511170=_0x3f0516[_0x5425ac[_0x42c379(0x213)]]);if(_0x5a81e5['DCfYR'](_0x46bb05,![])){if(_0x5a81e5['VObhV'](_0x5a81e5['moWyZ'],_0x5a81e5[_0x42c379(0x1e1)])){_0x5a81e5[_0x42c379(0x20d)](_0x511170,undefined)&&(_0x5a81e5[_0x42c379(0x1d2)](_0x5a81e5[_0x42c379(0x13e)],_0x5a81e5[_0x42c379(0x14d)])?(_0x200c42=_0x5a81e5[_0x42c379(0x1ff)],await _0x5a81e5['IEAst'](reportToGalactusAndSendToEDS,_0x5425ac,_0x59e6a6,_0x200c42,messageTypes['ERROR'],_0x5a81e5[_0x42c379(0x159)],_0x5a81e5[_0x42c379(0x1fa)],_0x5a81e5[_0x42c379(0x1ac)]),logger['error'](_0x200c42),process[_0x42c379(0x22c)](0x1)):_0x10463e[_0x42c379(0x173)]=!![]);global_registry[_0x42c379(0x166)]=_0x511170['id'];(_0x5a81e5[_0x42c379(0x20d)](_0x5d9e1f,AZURE)||_0x5a81e5[_0x42c379(0x236)](_0x511170?.['cloudProvider'],AZURE))&&(_0x5a81e5['bAxwU'](_0x5a81e5[_0x42c379(0x22b)],_0x5a81e5[_0x42c379(0x22b)])?(console['error'](_0x5a81e5[_0x42c379(0x17f)]),process[_0x42c379(0x22c)](0x1)):_0x31b632[_0x42c379(0x257)]={});_0x200c42=_0x42c379(0x183)+_0x52af68+_0x42c379(0x174)+_0x511170[_0x42c379(0x253)]+_0x42c379(0x13a),logger[_0x42c379(0x1f2)](_0x200c42);const _0xf93559={};_0xf93559[_0x42c379(0x1ef)]=WS_EVENTS[_0x42c379(0x21d)],_0xf93559[_0x42c379(0x1a0)]=_0x200c42,webSocketUtils[_0x42c379(0x197)](_0x59e6a6,_0xf93559),_0x5d9e1f=_0x511170[_0x42c379(0x257)],_0x1dc5d7=_0x511170[_0x42c379(0x231)],_0x12d14b=_0x511170['region'],_0x3bc879=_0x511170[_0x42c379(0x1ca)],_0x1ed395=_0x511170[_0x42c379(0x1e6)],_0x2ec3b1=_0x511170[_0x42c379(0x210)],securityGroups=_0x511170[_0x42c379(0x221)],subnets=_0x511170[_0x42c379(0x1d0)],_0x4b6fc3=_0x511170['s3bucket'],_0xd93ee8=_0x511170[_0x42c379(0x1a7)],_0x5ed843=_0x511170[_0x42c379(0x15c)],_0x32e50c=_0x587d79['hubVersion'],_0xcaf749=_0x587d79[_0x42c379(0x20f)];if(_0x5a81e5[_0x42c379(0x145)](_0x511170[_0x42c379(0x1b7)],undefined)&&_0x511170[_0x42c379(0x1b7)]){if(_0x5a81e5[_0x42c379(0x1d2)](_0x5a81e5[_0x42c379(0x24d)],_0x5a81e5['gPOIR'])){const _0xa581c4={};_0xa581c4[_0x42c379(0x1ef)]=_0x18de07[_0x42c379(0x21d)],_0xa581c4[_0x42c379(0x1a0)]=_0x42c379(0x150)+_0x36d745+_0x42c379(0x22f),_0x98608b[_0x42c379(0x197)](_0x1fd42a,_0xa581c4,_0x5a81e5[_0x42c379(0x1df)]),_0x28dde6[_0x42c379(0x1f2)](_0x42c379(0x150)+_0x48d2c1+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x23f150=!![];}else global_registry['isPrivateGrid']=!![];}_0x5a81e5[_0x42c379(0x1a4)](updateGlobalRegistryWithConfig,_0x5d9e1f,_0x1dc5d7,_0x12d14b,_0x3bc879,_0x1ed395,_0x4b6fc3,_0x511170,_0x32e50c,_0xcaf749,_0xd93ee8,_0x5ed843);}else{const _0x56eafb={};_0x56eafb[_0x42c379(0x1ef)]=_0x3f7a31[_0x42c379(0x21d)],_0x56eafb[_0x42c379(0x1a0)]=_0x15d4bc,_0x38eb16[_0x42c379(0x197)](_0x24ebe9,_0x56eafb,_0x5a81e5[_0x42c379(0x1ac)],!![]);}}else{const _0x5d20b3=_0x5a81e5[_0x42c379(0x14e)][_0x42c379(0x19f)]('|');let _0x93b1e0=0x0;while(!![]){switch(_0x5d20b3[_0x93b1e0++]){case'0':logger[_0x42c379(0x1f2)](_0x200c42);continue;case'1':const _0x5a8d9f={};_0x5a8d9f['type']=WS_EVENTS[_0x42c379(0x202)],_0x5a8d9f[_0x42c379(0x1a0)]=_0x42c379(0x1c8),webSocketUtils['sendEventToBackend'](_0x59e6a6,_0x5a8d9f);continue;case'2':const _0x13b158={};_0x13b158[_0x42c379(0x1ef)]=WS_EVENTS[_0x42c379(0x21d)],_0x13b158['message']=_0x200c42,webSocketUtils[_0x42c379(0x197)](_0x59e6a6,_0x13b158);continue;case'3':global_registry[_0x42c379(0x19c)]=_0x587d79[_0x42c379(0x19c)];continue;case'4':global_registry[_0x42c379(0x1eb)]=_0x12d14b;continue;case'5':global_registry[_0x42c379(0x257)]=_0x5d9e1f;continue;case'6':global_registry[_0x42c379(0x20f)]=_0x587d79[_0x42c379(0x20f)];continue;case'7':_0x200c42=_0x42c379(0x1b8)+_0x52af68+'\x20in\x20existing\x20cluster\x20\x27'+_0x1dc5d7+'\x27';continue;case'8':global_registry[_0x42c379(0x231)]=_0x1dc5d7;continue;}break;}}const _0x2d5ab6=_0x5a81e5[_0x42c379(0x1b5)](getCloudProviderObject,_0x5d9e1f,_0x1dc5d7,_0x52af68,_0x59e6a6,webSocketUtils),_0x9d61ba=_0x1ac1e3['cloudProvider']||{};if(_0x5a81e5[_0x42c379(0x138)](_0x9d61ba[_0x5d9e1f],undefined)){logger[_0x42c379(0x1f2)](_0x5a81e5[_0x42c379(0x20a)]);_0x5a81e5[_0x42c379(0x200)](_0x1ac1e3[_0x42c379(0x257)],undefined)&&(_0x1ac1e3[_0x42c379(0x257)]={});_0x1ac1e3['cloudProvider'][_0x5d9e1f]={};const _0x25725f=await _0x5a81e5[_0x42c379(0x181)](inputCloudProviderKeys,_0x5d9e1f,_0x1ac1e3,_0x2d5ab6);fs[_0x42c379(0x21e)](_0x5a81e5['caqRz'](getCredentialsPath),JSON['stringify'](_0x25725f)),logger['debug'](_0x5a81e5[_0x42c379(0x1f7)]);}else{_0x200c42=_0x5a81e5[_0x42c379(0x1d6)];const _0x46eba6={};_0x46eba6[_0x42c379(0x1ef)]=WS_EVENTS[_0x42c379(0x21d)],_0x46eba6[_0x42c379(0x1a0)]=_0x200c42,webSocketUtils[_0x42c379(0x197)](_0x59e6a6,_0x46eba6),logger[_0x42c379(0x1f2)](_0x200c42),await _0x2d5ab6[_0x42c379(0x1ed)](_0x9d61ba);}_0x2d5ab6[_0x42c379(0x1ad)]();let _0x260779;if(_0x5a81e5[_0x42c379(0x206)](_0x46bb05,![])){_0x200c42=_0x42c379(0x1cb)+_0x12d14b+').';const _0x462769={};_0x462769[_0x42c379(0x1ef)]=WS_EVENTS[_0x42c379(0x21d)],_0x462769[_0x42c379(0x1a0)]=_0x200c42,webSocketUtils[_0x42c379(0x197)](_0x59e6a6,_0x462769),logger[_0x42c379(0x1f2)](_0x200c42);const _0x589529=await _0x2d5ab6[_0x42c379(0x16a)]();if(_0x589529){const _0x5d32ac={};_0x5d32ac[_0x42c379(0x1ef)]=WS_EVENTS[_0x42c379(0x21d)],_0x5d32ac[_0x42c379(0x1a0)]=_0x42c379(0x150)+_0x1dc5d7+_0x42c379(0x22f),webSocketUtils['sendEventToBackend'](_0x59e6a6,_0x5d32ac,_0x5a81e5['qrpWv']),logger[_0x42c379(0x1f2)]('Cluster\x20'+_0x1dc5d7+_0x42c379(0x22f)),_0x46bb05=!![];}else{const _0x1adecc={};_0x1adecc[_0x42c379(0x1ef)]=WS_EVENTS[_0x42c379(0x21d)],_0x1adecc[_0x42c379(0x1a0)]=_0x5a81e5['YWJHg'],webSocketUtils[_0x42c379(0x197)](_0x59e6a6,_0x1adecc),logger[_0x42c379(0x1f2)](_0x5a81e5[_0x42c379(0x1c6)]);const _0x515ee3=_0x5a81e5['hLrkY'](_0x2ec3b1,null)&&_0x5a81e5[_0x42c379(0x1d2)](_0x2ec3b1,undefined),_0x3cb712=_0x5a81e5['kuhmh'](subnets,null)&&_0x5a81e5['uoDRe'](subnets,undefined)&&_0x5a81e5['ZQdDv'](subnets['length'],0x0);if(_0x515ee3){_0x5a81e5['bAxwU'](_0x3cb712,![])&&(_0x200c42=_0x5a81e5[_0x42c379(0x176)],await _0x5a81e5[_0x42c379(0x191)](reportToGalactusAndSendToEDS,_0x5425ac,_0x59e6a6,_0x200c42,messageTypes[_0x42c379(0x1cc)],_0x5a81e5['ymodp'],_0x5a81e5[_0x42c379(0x255)],_0x5a81e5['AKNRV']),logger[_0x42c379(0x18a)](_0x200c42),process['exit'](0x1));const _0x53c033=await _0x2d5ab6[_0x42c379(0x1d9)](_0x2ec3b1);_0x5a81e5[_0x42c379(0x200)](_0x53c033,![])?(_0x200c42=_0x5a81e5['YwSTM'],await _0x5a81e5[_0x42c379(0x22e)](reportToGalactusAndSendToEDS,_0x5425ac,_0x59e6a6,_0x200c42,messageTypes[_0x42c379(0x1cc)],_0x5a81e5[_0x42c379(0x159)],_0x5a81e5['zfkxy'],_0x5a81e5[_0x42c379(0x1ac)]),logger[_0x42c379(0x18a)](_0x200c42),process[_0x42c379(0x22c)](0x1)):logger[_0x42c379(0x1f2)](_0x42c379(0x211)+_0x2ec3b1+'\x20');const _0x1d802c=await _0x2d5ab6['isSubnetsValid'](subnets,_0x2ec3b1);_0x5a81e5[_0x42c379(0x206)](_0x1d802c[0x0],![])?(_0x200c42=_0x42c379(0x1f9)+_0x1d802c[0x1]+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x2ec3b1+_0x42c379(0x185),await _0x5a81e5['yIxXN'](reportToGalactusAndSendToEDS,_0x5425ac,_0x59e6a6,_0x200c42,messageTypes[_0x42c379(0x1cc)],_0x5a81e5[_0x42c379(0x159)],_0x5a81e5[_0x42c379(0x170)],_0x5a81e5[_0x42c379(0x1ac)]),logger[_0x42c379(0x18a)](_0x200c42),process[_0x42c379(0x22c)](0x1)):logger[_0x42c379(0x1f2)](_0x42c379(0x17c)+JSON[_0x42c379(0x1a5)](subnets)+'\x20'),await _0x2d5ab6[_0x42c379(0x156)](_0x2ec3b1,subnets);}else{const _0x45629e=_0x5a81e5[_0x42c379(0x19b)][_0x42c379(0x19f)]('|');let _0x3c35c6=0x0;while(!![]){switch(_0x45629e[_0x3c35c6++]){case'0':logger['info'](_0x5a81e5['bJwNQ']);continue;case'1':logger[_0x42c379(0x1f2)](_0x5a81e5[_0x42c379(0x195)]);continue;case'2':const _0x5aca63={};_0x5aca63[_0x42c379(0x1ef)]=WS_EVENTS[_0x42c379(0x21d)],_0x5aca63[_0x42c379(0x1a0)]=_0x5a81e5['bJwNQ'],webSocketUtils[_0x42c379(0x197)](_0x59e6a6,_0x5aca63);continue;case'3':await _0x2d5ab6['setupNewCluster']();continue;case'4':const _0x17028a={};_0x17028a[_0x42c379(0x1ef)]=WS_EVENTS[_0x42c379(0x21d)],_0x17028a[_0x42c379(0x1a0)]='Cluster\x20created\x20successfully',webSocketUtils[_0x42c379(0x197)](_0x59e6a6,_0x17028a);continue;}break;}}}}_0x46bb05&&_0x5a81e5[_0x42c379(0x249)](_0x5d9e1f,AZURE)&&(global_registry[_0x42c379(0x1f8)]=_0x587d79[_0x42c379(0x256)],await _0x2d5ab6['updatePreSpawnedCluster'](),await _0x2d5ab6[_0x42c379(0x225)]());const [_0x1b6e17,_0x41d79f,_0x3d07bd,_0x30c816,_0x5c2967,_0xc5db7d]=await _0x5a81e5[_0x42c379(0x16c)](createK8sClient,_0x2d5ab6);_0x5a81e5[_0x42c379(0x178)](_0x46bb05,![])&&_0x5a81e5[_0x42c379(0x24e)](_0x5d9e1f,AWS)&&(_0x260779=await _0x2d5ab6[_0x42c379(0x179)](_0x1b6e17,_0x5425ac));try{_0xdbeb4f=_0x5a81e5[_0x42c379(0x16c)](kebabCase,_0x52af68),logger[_0x42c379(0x1f2)](_0x5a81e5[_0x42c379(0x1ab)]);const _0x4e735e={};_0x4e735e[_0x42c379(0x1ef)]=WS_EVENTS[_0x42c379(0x21d)],_0x4e735e['message']=_0x5a81e5[_0x42c379(0x1ab)],webSocketUtils[_0x42c379(0x197)](_0x59e6a6,_0x4e735e);if(_0x5a81e5[_0x42c379(0x251)](_0xdbeb4f,_0x5a81e5['GzUuY'])){const _0x343c66={};_0x343c66[_0x42c379(0x131)]=_0x5a81e5['TOHQF'],_0x343c66[_0x42c379(0x157)]=_0x5a81e5[_0x42c379(0x184)];const _0x585b54={};_0x585b54[_0x42c379(0x253)]=_0xdbeb4f,_0x585b54[_0x42c379(0x1ce)]=_0x343c66;const _0x4df5eb={};_0x4df5eb[_0x42c379(0x228)]=_0x585b54;let _0x1fe53c=_0x4df5eb;await _0x1b6e17[_0x42c379(0x1e9)](_0x1fe53c),logger[_0x42c379(0x1f2)](_0x5a81e5['XGMdY']);}const _0x1b0d03={};_0x1b0d03[_0x42c379(0x1ef)]=WS_EVENTS[_0x42c379(0x21d)],_0x1b0d03[_0x42c379(0x1a0)]=_0x5a81e5[_0x42c379(0x198)],webSocketUtils[_0x42c379(0x197)](_0x59e6a6,_0x1b0d03);const _0x19ba4c={};_0x19ba4c['type']=WS_EVENTS[_0x42c379(0x21d)],_0x19ba4c[_0x42c379(0x1a0)]=_0x5a81e5[_0x42c379(0x21c)],webSocketUtils['sendEventToBackend'](_0x59e6a6,_0x19ba4c),logger[_0x42c379(0x1f2)](_0x5a81e5[_0x42c379(0x1a3)]);let _0x52dce5={};_0x5a81e5[_0x42c379(0x148)](_0x5d9e1f,AZURE)&&(_0x52dce5={'clientId':await _0x2d5ab6[_0x42c379(0x1a8)]('turboscale-managed-identity-'+_0x1dc5d7)});await _0x5a81e5[_0x42c379(0x21a)](addGridComponents,_0x1b6e17,_0x41d79f,_0x3d07bd,_0x30c816,_0xdbeb4f,_0x1dc5d7,_0x260779,_0x5c2967,_0xc5db7d,_0x52dce5),_0x200c42=_0x5a81e5[_0x42c379(0x1be)],logger[_0x42c379(0x1f2)](_0x200c42);const _0x86fe41={};_0x86fe41['type']=WS_EVENTS[_0x42c379(0x21d)],_0x86fe41[_0x42c379(0x1a0)]=_0x200c42,webSocketUtils['sendEventToBackend'](_0x59e6a6,_0x86fe41),_0x200c42=_0x5a81e5[_0x42c379(0x1a9)],logger[_0x42c379(0x1f2)](_0x200c42);const _0x52299c={};_0x52299c[_0x42c379(0x1ef)]=WS_EVENTS['LOG'],_0x52299c[_0x42c379(0x1a0)]=_0x200c42,webSocketUtils['sendEventToBackend'](_0x59e6a6,_0x52299c),await webSocketUtils['delay'](0xea60);const _0x17d01e=await _0x5a81e5[_0x42c379(0x17d)](getNamespaceUID,_0x1b6e17,_0xdbeb4f);let _0xea2cec=global_registry['isPrivateGrid']?_0x5a81e5[_0x42c379(0x12e)]:_0x5a81e5[_0x42c379(0x1fd)],_0x4825c5=await _0x1b6e17[_0x42c379(0x1b3)](_0xea2cec,_0x5a81e5[_0x42c379(0x132)]),_0x5f4970=_0x2d5ab6[_0x42c379(0x1d7)](_0x4825c5)+'/'+_0xdbeb4f,_0x407c8a=_0x5a81e5[_0x42c379(0x252)];try{const _0xdf0276={'url':'https://'+AG_API_URL+_0x42c379(0x146)+_0x17d01e,..._0x5af26a},_0x16a703=_0xdf0276,_0x141309=await _0x5a81e5[_0x42c379(0x1db)](promisifiedRequest,_0x16a703);(_0x5a81e5[_0x42c379(0x24e)](_0x141309,null)||_0x5a81e5['lvaMw'](_0x141309,undefined))&&(_0x200c42=_0x5a81e5[_0x42c379(0x147)],await _0x5a81e5['PUcwV'](reportToGalactusAndSendToEDS,_0x5425ac,_0x59e6a6,_0x200c42,messageTypes[_0x42c379(0x1cc)],_0x5a81e5['ymodp'],_0x5a81e5[_0x42c379(0x17e)],_0x5a81e5[_0x42c379(0x1ac)]),logger[_0x42c379(0x18a)](_0x200c42),process[_0x42c379(0x22c)](0x1));_0x5a81e5['DCfYR'](_0x141309['statusCode'],0x191)&&(_0x200c42=_0x5a81e5['wEIsN'],await _0x5a81e5[_0x42c379(0x1da)](reportToGalactusAndSendToEDS,_0x5425ac,_0x59e6a6,_0x200c42,messageTypes[_0x42c379(0x1cc)],_0x5a81e5[_0x42c379(0x159)],_0x5a81e5[_0x42c379(0x1fc)],_0x5a81e5[_0x42c379(0x1ac)]),logger[_0x42c379(0x18a)](_0x200c42),process[_0x42c379(0x22c)](0x1));_0x5a81e5[_0x42c379(0x1c7)](_0x141309[_0x42c379(0x165)],0xc8)&&(_0x200c42=_0x42c379(0x248)+JSON['stringify'](_0x141309),await _0x5a81e5[_0x42c379(0x1fb)](reportToGalactusAndSendToEDS,_0x5425ac,_0x59e6a6,_0x200c42,messageTypes[_0x42c379(0x1cc)],_0x5a81e5[_0x42c379(0x159)],_0x5a81e5[_0x42c379(0x180)],_0x5a81e5[_0x42c379(0x1ac)]),logger['error'](_0x200c42),process[_0x42c379(0x22c)](0x1));const _0x439528=JSON[_0x42c379(0x24a)](_0x141309[_0x42c379(0x153)]);_0x439528['route53']&&(_0x5f4970=_0x439528[_0x42c379(0x239)],_0x407c8a=_0x5a81e5['DwRKg']),global_registry[_0x42c379(0x173)]&&(_0x407c8a=_0x5a81e5[_0x42c379(0x252)]);}catch(_0xbe256f){}_0x200c42=_0x42c379(0x1f1)+_0x5f4970+'\x20',logger[_0x42c379(0x1f2)](_0x200c42);const _0x3cc1c0={};_0x3cc1c0[_0x42c379(0x1ef)]=WS_EVENTS['LOG'],_0x3cc1c0[_0x42c379(0x1a0)]=_0x200c42,webSocketUtils[_0x42c379(0x197)](_0x59e6a6,_0x3cc1c0),_0x200c42=_0x42c379(0x164)+_0x407c8a+_0x42c379(0x222)+_0x5f4970+_0x42c379(0x204),logger['info'](_0x200c42);const _0xa4ce97={};_0xa4ce97['type']=WS_EVENTS[_0x42c379(0x21d)],_0xa4ce97[_0x42c379(0x1a0)]=_0x200c42,webSocketUtils['sendEventToBackend'](_0x59e6a6,_0xa4ce97);const _0x3b2bff={};_0x3b2bff[_0x42c379(0x1ef)]=WS_EVENTS[_0x42c379(0x217)],_0x3b2bff[_0x42c379(0x1a0)]='CLI\x20run\x20finished:\x20'+_0x5f4970,webSocketUtils[_0x42c379(0x197)](_0x59e6a6,_0x3b2bff),await webSocketUtils['delay'](0x7d0);}catch(_0x26f814){if(_0x5a81e5[_0x42c379(0x18d)](_0x46bb05,![]))try{logger[_0x42c379(0x1f2)](_0x42c379(0x20b)),await _0x5a81e5[_0x42c379(0x14f)](removeGridComponents,_0x1b6e17,_0x41d79f,_0x3d07bd,_0x30c816,_0xdbeb4f),await _0x2d5ab6[_0x42c379(0x1dd)](_0x1b6e17,global_registry[_0x42c379(0x1eb)]);}catch(_0x48bf92){throw _0x48bf92;}throw _0x26f814;}}catch(_0x4508ec){const _0x1e729b=_0x42c379(0x135)+_0x4508ec+'\x20\x0a'+JSON[_0x42c379(0x1a5)](_0x4508ec)+'\x20';if(_0x59e6a6){const _0x1918cd={};_0x1918cd['type']=WS_EVENTS[_0x42c379(0x21d)],_0x1918cd[_0x42c379(0x1a0)]=_0x1e729b,webSocketUtils[_0x42c379(0x197)](_0x59e6a6,_0x1918cd,_0x5a81e5[_0x42c379(0x1ac)],!![]);}await webSocketUtils[_0x42c379(0x189)](0x7d0);const _0x561814={};_0x561814[_0x42c379(0x18a)]=_0x1e729b,await _0x5a81e5[_0x42c379(0x1e0)](sendInstrumentationEvent,_0x5425ac,_0x5a81e5[_0x42c379(0x159)],messageTypes[_0x42c379(0x1cc)],_0x5a81e5['xhNJl'],_0x561814,_0x5425ac),logger['error'](_0x1e729b);}process[_0x42c379(0x22c)](0x0);};
@@ -1 +1 @@
1
- const a11_0x19b30c=a11_0x4771;function a11_0x4771(_0x42bf86,_0x3aef59){const _0x257c87=a11_0x257c();return a11_0x4771=function(_0x477150,_0x148085){_0x477150=_0x477150-0x18e;let _0x2aea0a=_0x257c87[_0x477150];return _0x2aea0a;},a11_0x4771(_0x42bf86,_0x3aef59);}(function(_0x13a567,_0x23d576){const _0x196288=a11_0x4771,_0x53c1d5=_0x13a567();while(!![]){try{const _0x2878af=-parseInt(_0x196288(0x193))/0x1*(-parseInt(_0x196288(0x194))/0x2)+-parseInt(_0x196288(0x19d))/0x3+-parseInt(_0x196288(0x198))/0x4+parseInt(_0x196288(0x199))/0x5*(-parseInt(_0x196288(0x1a6))/0x6)+-parseInt(_0x196288(0x19a))/0x7*(parseInt(_0x196288(0x19f))/0x8)+-parseInt(_0x196288(0x195))/0x9+parseInt(_0x196288(0x18e))/0xa;if(_0x2878af===_0x23d576)break;else _0x53c1d5['push'](_0x53c1d5['shift']());}catch(_0x22c758){_0x53c1d5['push'](_0x53c1d5['shift']());}}}(a11_0x257c,0x6b6ec));function a11_0x257c(){const _0x9d727a=['iOmru','recommendCommands','51270FyQgZy','8HRCGwp','2341908kUSVKX','usage','command','1074960AWYTdn','35qUmyed','77wtMdHh','delete','strict','982983uNspDw','commandDir','446680vpLjbl','demandCommand','builder','../config/constants','epilogue','desc','TtxJa','43116LciUZM','17560640aWBHPo','List\x20Grid\x20resources.','help'];a11_0x257c=function(){return _0x9d727a;};return a11_0x257c();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a11_0x19b30c(0x1a2));exports[a11_0x19b30c(0x197)]=a11_0x19b30c(0x19b),exports[a11_0x19b30c(0x1a4)]=a11_0x19b30c(0x18f),exports[a11_0x19b30c(0x1a1)]=function(_0x1f91b8){const _0x24a458=a11_0x19b30c,_0x4647c0={};_0x4647c0[_0x24a458(0x191)]='delete_commands',_0x4647c0[_0x24a458(0x1a5)]=_0x24a458(0x190);const _0x1e1062=_0x4647c0;return _0x1f91b8[_0x24a458(0x196)](HELP_HEADER_MESSAGE[_0x24a458(0x19b)])[_0x24a458(0x1a3)](HELP_FOOTER_MESSAGE)[_0x24a458(0x19e)](_0x1e1062[_0x24a458(0x191)])[_0x24a458(0x1a0)]()[_0x24a458(0x192)]()[_0x24a458(0x19c)]()[_0x24a458(0x190)](_0x1e1062[_0x24a458(0x1a5)]);},exports['handler']=function(_0x5a9a23){};
1
+ function a11_0x5edf(_0x3476dd,_0x22b5eb){const _0x3c97cd=a11_0x3c97();return a11_0x5edf=function(_0x5edffa,_0x867569){_0x5edffa=_0x5edffa-0x1b6;let _0x52ee63=_0x3c97cd[_0x5edffa];return _0x52ee63;},a11_0x5edf(_0x3476dd,_0x22b5eb);}const a11_0x270562=a11_0x5edf;(function(_0x10f319,_0x21893e){const _0x4544ba=a11_0x5edf,_0x4d9462=_0x10f319();while(!![]){try{const _0x174e82=-parseInt(_0x4544ba(0x1bc))/0x1*(-parseInt(_0x4544ba(0x1c1))/0x2)+-parseInt(_0x4544ba(0x1be))/0x3*(-parseInt(_0x4544ba(0x1bf))/0x4)+parseInt(_0x4544ba(0x1bb))/0x5+-parseInt(_0x4544ba(0x1b9))/0x6+-parseInt(_0x4544ba(0x1b6))/0x7*(-parseInt(_0x4544ba(0x1c0))/0x8)+-parseInt(_0x4544ba(0x1bd))/0x9+-parseInt(_0x4544ba(0x1c6))/0xa;if(_0x174e82===_0x21893e)break;else _0x4d9462['push'](_0x4d9462['shift']());}catch(_0x4721f3){_0x4d9462['push'](_0x4d9462['shift']());}}}(a11_0x3c97,0x5b1f0));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a11_0x270562(0x1c8));function a11_0x3c97(){const _0x5f0ac8=['strict','752970EeIUfY','desc','2506835svNEJA','1dqlTkO','1930185tfhbpB','6HiVNGv','224332wcXoTV','55224nuArJk','524274BoRWGk','delete','KcxMK','builder','handler','3902770dLkTTb','command','../config/constants','List\x20Grid\x20resources.','231sFwRvI','help'];a11_0x3c97=function(){return _0x5f0ac8;};return a11_0x3c97();}exports[a11_0x270562(0x1c7)]='delete',exports[a11_0x270562(0x1ba)]=a11_0x270562(0x1c9),exports[a11_0x270562(0x1c4)]=function(_0x22ba51){const _0x15cd0e=a11_0x270562,_0x32f532={};_0x32f532[_0x15cd0e(0x1c3)]='delete_commands',_0x32f532['sVqpZ']=_0x15cd0e(0x1b7);const _0x5c49ac=_0x32f532;return _0x22ba51['usage'](HELP_HEADER_MESSAGE[_0x15cd0e(0x1c2)])['epilogue'](HELP_FOOTER_MESSAGE)['commandDir'](_0x5c49ac[_0x15cd0e(0x1c3)])['demandCommand']()['recommendCommands']()[_0x15cd0e(0x1b8)]()[_0x15cd0e(0x1b7)](_0x5c49ac['sVqpZ']);},exports[a11_0x270562(0x1c5)]=function(_0x2e9470){};
@@ -1 +1 @@
1
- const a12_0x347c79=a12_0x5378;function a12_0x5378(_0x3a75e4,_0x1a9aa6){const _0x25ca96=a12_0x25ca();return a12_0x5378=function(_0x5378f1,_0x2fbbc1){_0x5378f1=_0x5378f1-0x177;let _0xe45085=_0x25ca96[_0x5378f1];return _0xe45085;},a12_0x5378(_0x3a75e4,_0x1a9aa6);}function a12_0x25ca(){const _0x25f266=['pKRaW','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','YLXbf','lcaLi','zxqdj','configureIfNotConfigured','name','YkGlp','QVlzv','unauthorised','DMTbY','iYuWJ','statusCode','clusterId','hHcFL','OaESU','xrfCQ','78470JnNoTr','DELETE','server-error','dcZnK','3vKCPKD','rfqJZ','rweci','SJHdq','\x22\x20and\x20ID\x20','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','gridId','mBsAz','grid','36494yiSxOY','/packages/cli/grid/','SOAXb','NWZVB','../../utils/utilityMethods','127384McpzAz','username','clusterName','ATsFh','XNabJ','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ZXlqe','EUBuL','help','epilogue','zRRqU','toLowerCase','EqUxl','invalid-input','../../utils/userInput','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','KDpbk','djOfJ','readFileSync','lAwhV','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','retOi','30jSdjgj','description','uuid','1048201WoMmKC','../../utils/instrumentationUtils','NofrS','fetchLocalCreds','ypofp','2373810zQkpRD','../../config/logger','JBEwm','IYRKS','../../config/constants','36ElFAaf','zJoUJ','NIiQw','type','dejwz','stringify','SQxVh','dewTD','ERROR','rBTqW','Cluster:\x20','wXTwN','LSfsX','ivQgB','fmMKA','onlyGridInCluster','RQYvA','kyvlJ','IsGLN','INFO','info','NHErq','existsSync','builder','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','argv','https://','delete','Succesfully\x20deleted\x20the\x20grid','bDxlL','HXSXx','cloudProvider','password','hVmFs','Pass\x20the\x20ID\x20of\x20the\x20Grid','../../utils/createk8sClient','exit','writeFileSync','requestId','UIcOl','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','error','deleteCluster','Delete\x20an\x20Automation\x20grid.','method','VOxPo','ditas','EzJLM','oWvzk','command','clusterSpawnedVia','warn','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','JWIxn','576qfpNUe','grid-id','Failed\x20to\x20delete\x20resources!\x20Error:\x20','Nhfsd','RIniU','../../utils/gridComponents','promisify','string','SLtKH','auth','Browserstack','delete-grid-called','region','unknown-error','\x22\x20with\x20ID\x20','jewMS','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','110484DmVwft','439764myIGnP','21mwelUe'];a12_0x25ca=function(){return _0x25f266;};return a12_0x25ca();}(function(_0x392538,_0x5c6a0d){const _0x130f7a=a12_0x5378,_0x3ee655=_0x392538();while(!![]){try{const _0x2c2d3b=parseInt(_0x130f7a(0x1c2))/0x1*(-parseInt(_0x130f7a(0x1cc))/0x2)+-parseInt(_0x130f7a(0x1e8))/0x3*(parseInt(_0x130f7a(0x1ab))/0x4)+parseInt(_0x130f7a(0x1f0))/0x5+-parseInt(_0x130f7a(0x1aa))/0x6*(-parseInt(_0x130f7a(0x1ac))/0x7)+-parseInt(_0x130f7a(0x1d1))/0x8*(-parseInt(_0x130f7a(0x199))/0x9)+-parseInt(_0x130f7a(0x1be))/0xa+-parseInt(_0x130f7a(0x1eb))/0xb*(-parseInt(_0x130f7a(0x1f5))/0xc);if(_0x2c2d3b===_0x5c6a0d)break;else _0x3ee655['push'](_0x3ee655['shift']());}catch(_0x3399d9){_0x3ee655['push'](_0x3ee655['shift']());}}}(a12_0x25ca,0xa44b7));const fs=require('fs'),util=require('util'),request=require('request'),{v4:uuidv4}=require(a12_0x347c79(0x1ea)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a12_0x347c79(0x1f4)),{logger}=require(a12_0x347c79(0x1f1)),{getCloudProviderObject}=require('../../cloudproviders/utils'),{removeGridComponents,deleteClusterAndDependencies}=require(a12_0x347c79(0x19e)),{sendInstrumentationEvent}=require(a12_0x347c79(0x1ec)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x347c79(0x1e0)),{createK8sClient}=require(a12_0x347c79(0x186)),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x347c79(0x1d0)),promisifiedRequest=util[a12_0x347c79(0x19f)](request);exports[a12_0x347c79(0x194)]=a12_0x347c79(0x1cb),exports['desc']=a12_0x347c79(0x18e),exports[a12_0x347c79(0x17a)]=function(_0x351282){const _0x13dd04=a12_0x347c79,_0xf52efc={};_0xf52efc[_0x13dd04(0x1dc)]='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0xf52efc[_0x13dd04(0x1b0)]=_0x13dd04(0x1a0),_0xf52efc['JWIxn']=_0x13dd04(0x1da);const _0x36f8b2=_0xf52efc,_0x446abb={};_0x446abb[_0x13dd04(0x1e9)]=_0x36f8b2['zRRqU'],_0x446abb[_0x13dd04(0x1f8)]=_0x36f8b2[_0x13dd04(0x1b0)];const _0x3d5154={};return _0x3d5154[_0x13dd04(0x19a)]=_0x446abb,_0x351282['usage'](HELP_HEADER_MESSAGE[_0x13dd04(0x17e)])[_0x13dd04(0x1db)](HELP_FOOTER_MESSAGE)['options'](_0x3d5154)[_0x13dd04(0x1da)](_0x36f8b2[_0x13dd04(0x198)])[_0x13dd04(0x17c)];},exports['handler']=async function(_0x2dd644){const _0x59f91f=a12_0x347c79,_0x4f851f={'rBTqW':_0x59f91f(0x18b),'SOAXb':_0x59f91f(0x185),'IYRKS':_0x59f91f(0x1a0),'HNqqC':_0x59f91f(0x1da),'Nhfsd':function(_0x30fa95){return _0x30fa95();},'LSfsX':function(_0x4f927f){return _0x4f927f();},'EqUxl':function(_0x94995d,_0x3c873e){return _0x94995d!==_0x3c873e;},'ZXlqe':'MEupS','hHcFL':'ThzZP','rweci':_0x59f91f(0x1ae),'XNabJ':function(_0x46f4a0,_0x44ed18,_0x1c65f5,_0x55af7b,_0x8a722e,_0x27c891,_0x13aa51){return _0x46f4a0(_0x44ed18,_0x1c65f5,_0x55af7b,_0x8a722e,_0x27c891,_0x13aa51);},'xrfCQ':_0x59f91f(0x1a4),'dQzOE':'init-not-called','EUBuL':function(_0x485264,_0x2e186b,_0x24b6b7,_0x490311,_0x5e1521,_0x2d8ce1,_0x37b768){return _0x485264(_0x2e186b,_0x24b6b7,_0x490311,_0x5e1521,_0x2d8ce1,_0x37b768);},'ivQgB':function(_0x3be24e,_0x26f989){return _0x3be24e===_0x26f989;},'zJoUJ':_0x59f91f(0x178),'SJHdq':_0x59f91f(0x181),'cpXHq':function(_0x1522be,_0x4f375e,_0x581f4c,_0x241ad2){return _0x1522be(_0x4f375e,_0x581f4c,_0x241ad2);},'lAwhV':function(_0x51978f,_0x169d43){return _0x51978f===_0x169d43;},'fmMKA':_0x59f91f(0x1a3),'KDpbk':_0x59f91f(0x1a1),'QVlzv':_0x59f91f(0x180),'SQxVh':function(_0x51aec8,_0x1287e7){return _0x51aec8(_0x1287e7);},'ATsFh':function(_0x5e5e9b,_0x3c388a){return _0x5e5e9b===_0x3c388a;},'ypofp':_0x59f91f(0x206),'hVmFs':_0x59f91f(0x1b4),'NofrS':_0x59f91f(0x197),'dejwz':function(_0x30b72d,_0x3ed294,_0x3bcd78,_0x2ea2a2,_0x57e309,_0x40d782,_0x43b43a){return _0x30b72d(_0x3ed294,_0x3bcd78,_0x2ea2a2,_0x57e309,_0x40d782,_0x43b43a);},'IsGLN':_0x59f91f(0x1df),'DMTbY':function(_0x2fbf8f,_0x463643){return _0x2fbf8f===_0x463643;},'zxqdj':function(_0x51534f,_0x370a40){return _0x51534f===_0x370a40;},'pKRaW':_0x59f91f(0x192),'jewMS':_0x59f91f(0x1af),'rfqJZ':function(_0xe7e4a4,_0x2cf1f6,_0x29ab39,_0x39faf3){return _0xe7e4a4(_0x2cf1f6,_0x29ab39,_0x39faf3);},'oWvzk':_0x59f91f(0x1fc),'retOi':'cWfyh','mBsAz':_0x59f91f(0x1e6),'NIiQw':function(_0x1d1799,_0x139200){return _0x1d1799!==_0x139200;},'RIniU':_0x59f91f(0x1f2),'QKGnu':'Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','dcZnK':'Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','OaESU':function(_0x4c67eb,_0x370c4f,_0x5254ec,_0x20b921,_0x1cd788,_0x4a941c){return _0x4c67eb(_0x370c4f,_0x5254ec,_0x20b921,_0x1cd788,_0x4a941c);},'YucZI':_0x59f91f(0x1bf),'djOfJ':function(_0xd493d,_0x20f694){return _0xd493d!==_0x20f694;},'ditas':function(_0x10d5ce,_0x4d94ac,_0x43e2e1,_0x2cee76,_0x9073e6,_0x58ba09,_0x5497dc){return _0x10d5ce(_0x4d94ac,_0x43e2e1,_0x2cee76,_0x9073e6,_0x58ba09,_0x5497dc);},'NWZVB':_0x59f91f(0x1c0),'wXTwN':function(_0x4b522c,_0x31bdda){return _0x4b522c===_0x31bdda;},'UIcOl':function(_0xd559,_0x175612,_0xe19f68,_0x39279c,_0x2b3b1d,_0x437e3f,_0x537999){return _0xd559(_0x175612,_0xe19f68,_0x39279c,_0x2b3b1d,_0x437e3f,_0x537999);},'dGFQq':_0x59f91f(0x1b6),'VOxPo':function(_0x2ec421,_0x493c07,_0x209af5,_0x4981d2,_0x5044df,_0x2f2814,_0x37d8ab){return _0x2ec421(_0x493c07,_0x209af5,_0x4981d2,_0x5044df,_0x2f2814,_0x37d8ab);},'fQNrb':'invalid-grid-id','iYuWJ':function(_0x55ae08,_0x113ee2,_0x8b1eeb,_0x76768d,_0x103b1b,_0x1800da,_0x25bd7c){return _0x55ae08(_0x113ee2,_0x8b1eeb,_0x76768d,_0x103b1b,_0x1800da,_0x25bd7c);},'RwGxv':function(_0x225a88,_0x1390f9,_0x32df99,_0x3aaf7f,_0x36d830,_0x35fc6e,_0xf4c937){return _0x225a88(_0x1390f9,_0x32df99,_0x3aaf7f,_0x36d830,_0x35fc6e,_0xf4c937);},'RQYvA':_0x59f91f(0x1a6)};try{global_registry[_0x59f91f(0x189)]=_0x4f851f['Nhfsd'](uuidv4);!fs[_0x59f91f(0x179)](_0x4f851f[_0x59f91f(0x201)](getCredentialsPath))&&(_0x4f851f[_0x59f91f(0x1de)](_0x4f851f[_0x59f91f(0x1d8)],_0x4f851f[_0x59f91f(0x1bb)])?(console[_0x59f91f(0x18c)](_0x4f851f[_0x59f91f(0x1c4)]),await _0x4f851f[_0x59f91f(0x1d5)](sendInstrumentationEvent,_0x2dd644,_0x4f851f[_0x59f91f(0x1bd)],messageTypes['ERROR'],_0x4f851f['dQzOE'],null,_0x2dd644),process[_0x59f91f(0x187)](0x1)):(_0x2f6be2[_0x59f91f(0x18c)](_0x4f851f[_0x59f91f(0x1fe)]),_0x505995[_0x59f91f(0x187)](0x1)));_0x4f851f[_0x59f91f(0x1d9)](sendInstrumentationEvent,_0x2dd644,_0x4f851f['xrfCQ'],messageTypes[_0x59f91f(0x208)],null,null,_0x2dd644);!_0x2dd644[_0x59f91f(0x1c9)]&&(_0x4f851f[_0x59f91f(0x202)](_0x4f851f[_0x59f91f(0x1f6)],_0x4f851f[_0x59f91f(0x1c5)])?(_0x479ced[_0x59f91f(0x177)](_0x59f91f(0x17f)),_0xf26e48['exit'](0x0)):(console[_0x59f91f(0x18c)](_0x4f851f[_0x59f91f(0x1fe)]),process['exit'](0x1)));const _0x48ea29=JSON['parse'](fs[_0x59f91f(0x1e4)](_0x4f851f[_0x59f91f(0x201)](getCredentialsPath))),[_0x1d2a1a,_0x190286]=await _0x4f851f['cpXHq'](getGridDetails,_0x48ea29[_0x59f91f(0x1a3)]['username'],_0x48ea29['Browserstack'][_0x59f91f(0x183)],_0x2dd644[_0x59f91f(0x1c9)]);if(_0x190286){const _0x12a01f=_0x190286[_0x59f91f(0x177)];let _0x4a005d=_0x59f91f(0x1d6)+_0x12a01f[_0x59f91f(0x1b3)]+_0x59f91f(0x1c6)+_0x12a01f['id']+_0x59f91f(0x1c7),_0x2cb6e3;_0x190286['onlyGridInCluster']&&_0x4f851f[_0x59f91f(0x1e5)](_0x190286[_0x59f91f(0x195)],_0x4f851f[_0x59f91f(0x203)])&&(_0x4f851f[_0x59f91f(0x1de)](_0x4f851f[_0x59f91f(0x1e2)],_0x4f851f[_0x59f91f(0x1b5)])?_0x4a005d=_0x59f91f(0x1d6)+_0x12a01f[_0x59f91f(0x1b3)]+'\x22\x20and\x20ID\x20'+_0x12a01f['id']+_0x59f91f(0x17b)+_0x12a01f[_0x59f91f(0x1d3)]+_0x59f91f(0x1a7)+_0x12a01f[_0x59f91f(0x1ba)]+_0x59f91f(0x1c7):_0x38bacd[_0x59f91f(0x196)](_0x59f91f(0x1ff)+_0x2b9a89['clusterName']+_0x59f91f(0x1c8)));_0x2cb6e3=await _0x4f851f['SQxVh'](inputConfirmation,_0x4a005d);if(_0x4f851f[_0x59f91f(0x202)](_0x2cb6e3,undefined)||_0x4f851f[_0x59f91f(0x1e5)](_0x2cb6e3,null)||!(_0x4f851f[_0x59f91f(0x202)](_0x2cb6e3[_0x59f91f(0x1dd)](),'y')||_0x4f851f[_0x59f91f(0x202)](_0x2cb6e3['toLowerCase'](),'n'))){if(_0x4f851f['ATsFh'](_0x4f851f[_0x59f91f(0x1ef)],_0x4f851f[_0x59f91f(0x184)])){const _0x23d2ab={};_0x23d2ab[_0x59f91f(0x1e9)]=_0x4f851f[_0x59f91f(0x1ce)],_0x23d2ab[_0x59f91f(0x1f8)]=_0x4f851f[_0x59f91f(0x1f3)];const _0x3200ba={};return _0x3200ba[_0x59f91f(0x19a)]=_0x23d2ab,_0x2f5e0e['usage'](_0x106d2d[_0x59f91f(0x17e)])[_0x59f91f(0x1db)](_0x36abdf)['options'](_0x3200ba)[_0x59f91f(0x1da)](_0x4f851f['HNqqC'])['argv'];}else console[_0x59f91f(0x18c)](_0x4f851f[_0x59f91f(0x1ed)]),await _0x4f851f[_0x59f91f(0x1f9)](sendInstrumentationEvent,_0x2dd644,_0x4f851f[_0x59f91f(0x1bd)],messageTypes[_0x59f91f(0x1fd)],_0x4f851f[_0x59f91f(0x207)],null,_0x2dd644),process[_0x59f91f(0x187)](0x1);}_0x4f851f[_0x59f91f(0x1b7)](_0x2cb6e3[_0x59f91f(0x1dd)](),'n')&&(_0x4f851f[_0x59f91f(0x1b1)](_0x4f851f[_0x59f91f(0x1ad)],_0x4f851f[_0x59f91f(0x1a8)])?_0x117e9f=_0x59f91f(0x1d6)+_0x259008['name']+_0x59f91f(0x1c6)+_0x5bea6d['id']+_0x59f91f(0x17b)+_0x11d2b8['clusterName']+_0x59f91f(0x1a7)+_0x12a561['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)':process[_0x59f91f(0x187)](0x0));global_registry['clusterRegion']=_0x12a01f[_0x59f91f(0x1a5)];const _0x1d13db=_0x12a01f[_0x59f91f(0x182)],_0x3b18bd=_0x4f851f[_0x59f91f(0x1c3)](getCloudProviderObject,_0x1d13db,_0x12a01f[_0x59f91f(0x1d3)],_0x12a01f[_0x59f91f(0x1b3)]),_0x1cb292=_0x48ea29[_0x59f91f(0x182)];if(_0x4f851f[_0x59f91f(0x1b1)](_0x1cb292[_0x1d13db],undefined)){if(_0x4f851f['ATsFh'](_0x4f851f[_0x59f91f(0x193)],_0x4f851f[_0x59f91f(0x1e7)]))_0x3f6ae1[_0x59f91f(0x187)](0x0);else{logger[_0x59f91f(0x177)](_0x4f851f[_0x59f91f(0x1ca)]);_0x4f851f[_0x59f91f(0x1d4)](_0x48ea29['cloudProvider'],undefined)&&(_0x4f851f[_0x59f91f(0x1f7)](_0x4f851f['RIniU'],_0x4f851f[_0x59f91f(0x19d)])?_0x5876bd[_0x59f91f(0x182)]={}:_0x48ea29['cloudProvider']={});_0x48ea29['cloudProvider'][_0x1d13db]={};const _0xb877c0=await _0x4f851f['rfqJZ'](inputCloudProviderKeys,_0x1d13db,_0x48ea29,_0x3b18bd);fs[_0x59f91f(0x188)](_0x4f851f[_0x59f91f(0x19c)](getCredentialsPath),JSON[_0x59f91f(0x1fa)](_0xb877c0)),logger['debug'](_0x4f851f['QKGnu']);}}else logger[_0x59f91f(0x177)](_0x4f851f[_0x59f91f(0x1c1)]),await _0x3b18bd[_0x59f91f(0x1ee)](_0x1cb292);_0x3b18bd[_0x59f91f(0x1b2)]();const _0x4294f2=_0x4f851f[_0x59f91f(0x1fb)](kebabCase,_0x12a01f[_0x59f91f(0x1b3)]),[_0xa6b06,_0x546e4b,_0x2e910e,_0x13dbea,_0x4ef479,_0x4ca83e]=await _0x4f851f[_0x59f91f(0x1fb)](createK8sClient,_0x3b18bd);await _0x4f851f[_0x59f91f(0x1bc)](removeGridComponents,_0xa6b06,_0x546e4b,_0x2e910e,_0x13dbea,_0x4294f2);if(_0x190286[_0x59f91f(0x204)]){const _0x5a71b5=await _0x3b18bd['isBrowserstackCluster']();_0x5a71b5?await _0x3b18bd[_0x59f91f(0x18d)](_0xa6b06,_0x12a01f[_0x59f91f(0x1a5)]):logger[_0x59f91f(0x196)]('Cluster:\x20'+_0x12a01f[_0x59f91f(0x1d3)]+_0x59f91f(0x1c8));}const _0x5b5641=_0x59f91f(0x17d)+AG_API_URL+_0x59f91f(0x1cd)+_0x2dd644[_0x59f91f(0x1c9)],_0x1dabb4={};_0x1dabb4[_0x59f91f(0x1d2)]=_0x48ea29['Browserstack'][_0x59f91f(0x1d2)],_0x1dabb4[_0x59f91f(0x183)]=_0x48ea29[_0x59f91f(0x1a3)][_0x59f91f(0x183)];const _0x5b73e5={};_0x5b73e5['url']=_0x5b5641,_0x5b73e5[_0x59f91f(0x18f)]=_0x4f851f['YucZI'],_0x5b73e5[_0x59f91f(0x1a2)]=_0x1dabb4;const _0x5ac617=_0x5b73e5,_0x5e2183=await _0x4f851f[_0x59f91f(0x1fb)](promisifiedRequest,_0x5ac617);_0x4f851f[_0x59f91f(0x1e3)](_0x5e2183,null)&&_0x4f851f[_0x59f91f(0x1e3)](_0x5e2183,undefined)&&_0x4f851f[_0x59f91f(0x1e5)](_0x5e2183[_0x59f91f(0x1b9)],0xc8)&&(logger['info'](_0x59f91f(0x17f)),process[_0x59f91f(0x187)](0x0)),logger[_0x59f91f(0x18c)](_0x59f91f(0x1a9)+JSON[_0x59f91f(0x1fa)](_0x5e2183)),await _0x4f851f[_0x59f91f(0x191)](sendInstrumentationEvent,_0x2dd644,_0x4f851f[_0x59f91f(0x1bd)],messageTypes[_0x59f91f(0x1fd)],_0x4f851f[_0x59f91f(0x1cf)],_0x1d2a1a,_0x2dd644),process[_0x59f91f(0x187)](0x1);}_0x4f851f[_0x59f91f(0x200)](_0x1d2a1a['statusCode'],0x191)&&(logger[_0x59f91f(0x18c)](_0x59f91f(0x1d7)),await _0x4f851f[_0x59f91f(0x18a)](sendInstrumentationEvent,_0x2dd644,_0x4f851f[_0x59f91f(0x1bd)],messageTypes[_0x59f91f(0x1fd)],_0x4f851f['dGFQq'],null,_0x2dd644),process['exit'](0x1)),_0x4f851f[_0x59f91f(0x1b7)](_0x1d2a1a[_0x59f91f(0x1b9)],0x190)&&(logger['error'](JSON['parse'](_0x1d2a1a['body'])['message']),await _0x4f851f[_0x59f91f(0x190)](sendInstrumentationEvent,_0x2dd644,_0x4f851f[_0x59f91f(0x1bd)],messageTypes[_0x59f91f(0x1fd)],_0x4f851f['fQNrb'],null,_0x2dd644),process[_0x59f91f(0x187)](0x1)),logger[_0x59f91f(0x18c)](_0x59f91f(0x1e1)+JSON[_0x59f91f(0x1fa)](_0x1d2a1a)),await _0x4f851f[_0x59f91f(0x1b8)](sendInstrumentationEvent,_0x2dd644,_0x4f851f[_0x59f91f(0x1bd)],messageTypes['ERROR'],_0x4f851f[_0x59f91f(0x1cf)],_0x1d2a1a,_0x2dd644),process['exit'](0x1);}catch(_0x52244a){logger[_0x59f91f(0x18c)](_0x59f91f(0x19b)+_0x52244a['stack']),await _0x4f851f['RwGxv'](sendInstrumentationEvent,_0x2dd644,_0x4f851f['xrfCQ'],messageTypes['ERROR'],_0x4f851f[_0x59f91f(0x205)],_0x52244a,_0x2dd644),process[_0x59f91f(0x187)](0x1);}};
1
+ const a12_0x31fb85=a12_0x497e;function a12_0x4192(){const _0x5d75bf=['grid','2023020fdftlI','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','6440764ZEJsgV','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','127437TdWFKX','request','region','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','rHIso','description','BxeDJ','YxnWL','../../config/logger','Delete\x20an\x20Automation\x20grid.','12weKjUM','FmKgv','debug','amkHC','JLoBt','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','fbYfZ','type','dgnsZ','init-not-called','85944WoSdIA','https://','../../utils/instrumentationUtils','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','grid-id','WanWD','Browserstack','hdScg','statusCode','clusterRegion','deleteCluster','INFO','TaLvS','fetchLocalCreds','warn','xoqqn','info','writeFileSync','Failed\x20to\x20delete\x20resources!\x20Error:\x20','string','CzLpN','promisify','cWYaT','aJYcZ','cloudProvider','gbPxn','tguYs','/packages/cli/grid/','epilogue','../../config/constants','lkocD','679joKgwQ','toLowerCase','qfiqZ','22419PspdMO','sQWXM','command','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','ZHKTt','vgeDB','delete','../../utils/gridComponents','ToMWp','wTIZj','1128uwPnRa','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','parse','hweKd','Zxldu','unauthorised','help','vbCrl','FpxjN','stringify','nvVeM','lPuKi','KulHo','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','HffSu','method','configureIfNotConfigured','Pass\x20the\x20ID\x20of\x20the\x20Grid','8eOHZrH','argv','oecHH','1078812scVuyT','usage','bKuoy','AqDRk','XVzfN','username','Cluster:\x20','readFileSync','QGLdL','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','url','\x22\x20and\x20ID\x20','loISX','7479140XykWPM','\x22\x20with\x20ID\x20','XinNl','Succesfully\x20deleted\x20the\x20grid','stack','uHHPF','14dcIRJA','KVlaW','fbWGr','clusterSpawnedVia','cKShu','gridId','BZiMc','exit','name','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','vhotz','message','isBrowserstackCluster','FlfVa','tAQKZ','jhtPp','EBVTL','../../cloudproviders/utils','password','TfwZk','ERROR','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','cHUuz','requestId','error','XjTGG','WhtgT','handler','cMxvG','clusterName'];a12_0x4192=function(){return _0x5d75bf;};return a12_0x4192();}function a12_0x497e(_0x5ea582,_0x2de373){const _0x4192ce=a12_0x4192();return a12_0x497e=function(_0x497ed9,_0x768f5b){_0x497ed9=_0x497ed9-0xfc;let _0x260105=_0x4192ce[_0x497ed9];return _0x260105;},a12_0x497e(_0x5ea582,_0x2de373);}(function(_0x4284e6,_0x148965){const _0x28aba7=a12_0x497e,_0x4251fb=_0x4284e6();while(!![]){try{const _0x29a88b=parseInt(_0x28aba7(0x13a))/0x1*(parseInt(_0x28aba7(0x117))/0x2)+-parseInt(_0x28aba7(0x104))/0x3+parseInt(_0x28aba7(0x101))/0x4*(parseInt(_0x28aba7(0x136))/0x5)+-parseInt(_0x28aba7(0x14e))/0x6*(parseInt(_0x28aba7(0x16d))/0x7)+parseInt(_0x28aba7(0x17a))/0x8*(-parseInt(_0x28aba7(0x170))/0x9)+parseInt(_0x28aba7(0x111))/0xa+-parseInt(_0x28aba7(0x138))/0xb*(-parseInt(_0x28aba7(0x144))/0xc);if(_0x29a88b===_0x148965)break;else _0x4251fb['push'](_0x4251fb['shift']());}catch(_0x12fdfe){_0x4251fb['push'](_0x4251fb['shift']());}}}(a12_0x4192,0xe422a));const fs=require('fs'),util=require('util'),request=require(a12_0x31fb85(0x13b)),{v4:uuidv4}=require('uuid'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a12_0x31fb85(0x16b)),{logger}=require(a12_0x31fb85(0x142)),{getCloudProviderObject}=require(a12_0x31fb85(0x128)),{removeGridComponents,deleteClusterAndDependencies}=require(a12_0x31fb85(0x177)),{sendInstrumentationEvent}=require(a12_0x31fb85(0x150)),{inputConfirmation,inputCloudProviderKeys}=require('../../utils/userInput'),{createK8sClient}=require('../../utils/createk8sClient'),{kebabCase,getCredentialsPath,getGridDetails}=require('../../utils/utilityMethods'),promisifiedRequest=util[a12_0x31fb85(0x163)](request);exports[a12_0x31fb85(0x172)]=a12_0x31fb85(0x135),exports['desc']=a12_0x31fb85(0x143),exports['builder']=function(_0x3244b3){const _0x19753f=a12_0x31fb85,_0x48f3c2={};_0x48f3c2[_0x19753f(0xfd)]=_0x19753f(0x100),_0x48f3c2[_0x19753f(0x110)]=_0x19753f(0x161),_0x48f3c2[_0x19753f(0x125)]='help';const _0xd40d98=_0x48f3c2,_0x328151={};_0x328151[_0x19753f(0x13f)]=_0xd40d98[_0x19753f(0xfd)],_0x328151[_0x19753f(0x14b)]=_0xd40d98[_0x19753f(0x110)];const _0x18ba64={};return _0x18ba64['grid-id']=_0x328151,_0x3244b3['usage'](HELP_HEADER_MESSAGE[_0x19753f(0x176)])[_0x19753f(0x16a)](HELP_FOOTER_MESSAGE)['options'](_0x18ba64)[_0x19753f(0x180)](_0xd40d98[_0x19753f(0x125)])[_0x19753f(0x102)];},exports[a12_0x31fb85(0x132)]=async function(_0x210a08){const _0x1fb9e8=a12_0x31fb85,_0x37527e={'fbWGr':_0x1fb9e8(0x100),'FpxjN':_0x1fb9e8(0x161),'TRGpw':_0x1fb9e8(0x180),'ZHKTt':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','aJYcZ':function(_0x4bb9fe){return _0x4bb9fe();},'wTIZj':function(_0x486b6c,_0x1f2f3a){return _0x486b6c===_0x1f2f3a;},'qfiqZ':'CQWeX','gbPxn':_0x1fb9e8(0x141),'jhtPp':_0x1fb9e8(0x137),'oecHH':function(_0x57aad5,_0x314f42,_0x161d0d,_0x17d9ab,_0x142449,_0x19960a,_0x25a020){return _0x57aad5(_0x314f42,_0x161d0d,_0x17d9ab,_0x142449,_0x19960a,_0x25a020);},'XinNl':'delete-grid-called','dgnsZ':_0x1fb9e8(0x14d),'lPuKi':function(_0x311900,_0x423dae){return _0x311900!==_0x423dae;},'amkHC':_0x1fb9e8(0x155),'JLoBt':_0x1fb9e8(0x171),'vhotz':function(_0x2f5b9f){return _0x2f5b9f();},'rHIso':function(_0x6dd81c,_0x2d7639,_0x42eb8b,_0x4705c0){return _0x6dd81c(_0x2d7639,_0x42eb8b,_0x4705c0);},'vgeDB':_0x1fb9e8(0x154),'WhtgT':function(_0x473330,_0x7f3a43){return _0x473330!==_0x7f3a43;},'fbYfZ':_0x1fb9e8(0x153),'cKShu':_0x1fb9e8(0x17e),'tguYs':function(_0x182b0f,_0x583160){return _0x182b0f(_0x583160);},'EBVTL':function(_0x1af859,_0x444801){return _0x1af859===_0x444801;},'cHUuz':function(_0x4b88b6,_0x35f4a7){return _0x4b88b6===_0x35f4a7;},'AqDRk':function(_0x51b665,_0xabdfde){return _0x51b665===_0xabdfde;},'XVzfN':'WPlsH','nvVeM':_0x1fb9e8(0x151),'QGLdL':function(_0x48e7c6,_0x18323d,_0x323a60,_0x428b32,_0x2f3d65,_0x412f01,_0x87909c){return _0x48e7c6(_0x18323d,_0x323a60,_0x428b32,_0x2f3d65,_0x412f01,_0x87909c);},'uHHPF':'invalid-input','ZGoNt':function(_0xe23fb5,_0x4ad749){return _0xe23fb5!==_0x4ad749;},'hweKd':'dtRgs','xoqqn':function(_0x14ea0b,_0x2844de,_0x516188,_0x329f87){return _0x14ea0b(_0x2844de,_0x516188,_0x329f87);},'FlfVa':function(_0x770893,_0x1a68f3){return _0x770893!==_0x1a68f3;},'TaLvS':_0x1fb9e8(0x140),'eZrMz':_0x1fb9e8(0x139),'ToMWp':function(_0x7f15d9,_0x597694){return _0x7f15d9===_0x597694;},'vbCrl':_0x1fb9e8(0x164),'XjTGG':_0x1fb9e8(0x133),'UCfZL':function(_0x10daba){return _0x10daba();},'KulHo':_0x1fb9e8(0x17b),'FmKgv':_0x1fb9e8(0x12c),'BaAnF':function(_0x141243,_0x3bdf54){return _0x141243(_0x3bdf54);},'lkocD':function(_0x26f709,_0x560321,_0x31e684,_0xdf52c6,_0x581772,_0x338492){return _0x26f709(_0x560321,_0x31e684,_0xdf52c6,_0x581772,_0x338492);},'bKuoy':'DELETE','TfwZk':'server-error','BZiMc':_0x1fb9e8(0x17f),'CzLpN':function(_0x1fa8d4,_0x26ec89){return _0x1fa8d4===_0x26ec89;},'dPQnd':'invalid-grid-id','KVlaW':function(_0xb0f34e,_0x19aa83,_0x55839b,_0x1ec899,_0x1b41dc,_0x4cd862,_0x96a418){return _0xb0f34e(_0x19aa83,_0x55839b,_0x1ec899,_0x1b41dc,_0x4cd862,_0x96a418);},'OOrky':'unknown-error'};try{global_registry[_0x1fb9e8(0x12e)]=_0x37527e['aJYcZ'](uuidv4);!fs['existsSync'](_0x37527e[_0x1fb9e8(0x165)](getCredentialsPath))&&(_0x37527e['wTIZj'](_0x37527e[_0x1fb9e8(0x16f)],_0x37527e[_0x1fb9e8(0x167)])?_0x20a92e[_0x1fb9e8(0x166)]={}:(console[_0x1fb9e8(0x12f)](_0x37527e[_0x1fb9e8(0x126)]),await _0x37527e[_0x1fb9e8(0x103)](sendInstrumentationEvent,_0x210a08,_0x37527e[_0x1fb9e8(0x113)],messageTypes['ERROR'],_0x37527e[_0x1fb9e8(0x14c)],null,_0x210a08),process[_0x1fb9e8(0x11e)](0x1)));_0x37527e[_0x1fb9e8(0x103)](sendInstrumentationEvent,_0x210a08,_0x37527e[_0x1fb9e8(0x113)],messageTypes[_0x1fb9e8(0x159)],null,null,_0x210a08);!_0x210a08[_0x1fb9e8(0x11c)]&&(_0x37527e[_0x1fb9e8(0x185)](_0x37527e[_0x1fb9e8(0x147)],_0x37527e[_0x1fb9e8(0x148)])?(console[_0x1fb9e8(0x12f)](_0x37527e[_0x1fb9e8(0x174)]),process[_0x1fb9e8(0x11e)](0x1)):_0x27b49e='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x1bc449['name']+_0x1fb9e8(0x10f)+_0x3d6df5['id']+_0x1fb9e8(0x149)+_0x844054[_0x1fb9e8(0x134)]+_0x1fb9e8(0x112)+_0x428e8c['clusterId']+_0x1fb9e8(0x13d));const _0x3546f3=JSON[_0x1fb9e8(0x17c)](fs[_0x1fb9e8(0x10b)](_0x37527e[_0x1fb9e8(0x121)](getCredentialsPath))),[_0x43e22e,_0x1864ba]=await _0x37527e[_0x1fb9e8(0x13e)](getGridDetails,_0x3546f3[_0x1fb9e8(0x154)]['username'],_0x3546f3[_0x1fb9e8(0x154)]['password'],_0x210a08[_0x1fb9e8(0x11c)]);if(_0x1864ba){const _0x33f0c1=_0x1864ba[_0x1fb9e8(0x15e)];let _0x3e8e5c=_0x1fb9e8(0x120)+_0x33f0c1[_0x1fb9e8(0x11f)]+_0x1fb9e8(0x10f)+_0x33f0c1['id']+_0x1fb9e8(0x13d),_0x137a8e;if(_0x1864ba['onlyGridInCluster']&&_0x37527e['wTIZj'](_0x1864ba[_0x1fb9e8(0x11a)],_0x37527e[_0x1fb9e8(0x175)])){if(_0x37527e[_0x1fb9e8(0x131)](_0x37527e[_0x1fb9e8(0x14a)],_0x37527e[_0x1fb9e8(0x11b)]))_0x3e8e5c=_0x1fb9e8(0x120)+_0x33f0c1['name']+_0x1fb9e8(0x10f)+_0x33f0c1['id']+_0x1fb9e8(0x149)+_0x33f0c1['clusterName']+_0x1fb9e8(0x112)+_0x33f0c1['clusterId']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';else{const _0x1520ea={};_0x1520ea[_0x1fb9e8(0x13f)]=_0x37527e[_0x1fb9e8(0x119)],_0x1520ea[_0x1fb9e8(0x14b)]=_0x37527e[_0x1fb9e8(0x182)];const _0x5d4180={};return _0x5d4180[_0x1fb9e8(0x152)]=_0x1520ea,_0x296551[_0x1fb9e8(0x105)](_0x1a00d8[_0x1fb9e8(0x176)])[_0x1fb9e8(0x16a)](_0xcf6d35)['options'](_0x5d4180)[_0x1fb9e8(0x180)](_0x37527e['TRGpw'])['argv'];}}_0x137a8e=await _0x37527e['tguYs'](inputConfirmation,_0x3e8e5c);(_0x37527e['EBVTL'](_0x137a8e,undefined)||_0x37527e['EBVTL'](_0x137a8e,null)||!(_0x37527e[_0x1fb9e8(0x12d)](_0x137a8e[_0x1fb9e8(0x16e)](),'y')||_0x37527e[_0x1fb9e8(0x127)](_0x137a8e[_0x1fb9e8(0x16e)](),'n')))&&(_0x37527e[_0x1fb9e8(0x107)](_0x37527e['XVzfN'],_0x37527e[_0x1fb9e8(0x108)])?(console[_0x1fb9e8(0x12f)](_0x37527e[_0x1fb9e8(0x184)]),await _0x37527e[_0x1fb9e8(0x10c)](sendInstrumentationEvent,_0x210a08,_0x37527e[_0x1fb9e8(0x113)],messageTypes[_0x1fb9e8(0x12b)],_0x37527e[_0x1fb9e8(0x116)],null,_0x210a08),process[_0x1fb9e8(0x11e)](0x1)):(_0xe900e['info'](_0x1fb9e8(0x114)),_0x18eb17[_0x1fb9e8(0x11e)](0x0)));_0x37527e['cHUuz'](_0x137a8e[_0x1fb9e8(0x16e)](),'n')&&(_0x37527e['ZGoNt'](_0x37527e[_0x1fb9e8(0x17d)],_0x37527e[_0x1fb9e8(0x17d)])?_0xc476fe[_0x1fb9e8(0x15c)](_0x1fb9e8(0x10a)+_0x320014[_0x1fb9e8(0x134)]+_0x1fb9e8(0x173)):process[_0x1fb9e8(0x11e)](0x0));global_registry[_0x1fb9e8(0x157)]=_0x33f0c1['region'];const _0x3036b0=_0x33f0c1[_0x1fb9e8(0x166)],_0x2d01e5=_0x37527e[_0x1fb9e8(0x15d)](getCloudProviderObject,_0x3036b0,_0x33f0c1[_0x1fb9e8(0x134)],_0x33f0c1[_0x1fb9e8(0x11f)]),_0x54452e=_0x3546f3['cloudProvider'];if(_0x37527e['AqDRk'](_0x54452e[_0x3036b0],undefined)){if(_0x37527e[_0x1fb9e8(0x124)](_0x37527e['TaLvS'],_0x37527e[_0x1fb9e8(0x15a)]))_0x51866e[_0x1fb9e8(0x12f)](_0x37527e[_0x1fb9e8(0x174)]),_0x1958df[_0x1fb9e8(0x11e)](0x1);else{logger[_0x1fb9e8(0x15e)](_0x37527e['eZrMz']);_0x37527e['ToMWp'](_0x3546f3[_0x1fb9e8(0x166)],undefined)&&(_0x37527e[_0x1fb9e8(0x124)](_0x37527e[_0x1fb9e8(0x181)],_0x37527e[_0x1fb9e8(0x130)])?_0x3546f3[_0x1fb9e8(0x166)]={}:_0x5a8a53['exit'](0x0));_0x3546f3[_0x1fb9e8(0x166)][_0x3036b0]={};const _0x557edd=await _0x37527e[_0x1fb9e8(0x15d)](inputCloudProviderKeys,_0x3036b0,_0x3546f3,_0x2d01e5);fs[_0x1fb9e8(0x15f)](_0x37527e['UCfZL'](getCredentialsPath),JSON[_0x1fb9e8(0x183)](_0x557edd)),logger[_0x1fb9e8(0x146)](_0x37527e[_0x1fb9e8(0x186)]);}}else logger[_0x1fb9e8(0x15e)](_0x37527e[_0x1fb9e8(0x145)]),await _0x2d01e5[_0x1fb9e8(0x15b)](_0x54452e);_0x2d01e5[_0x1fb9e8(0xff)]();const _0x50f212=_0x37527e[_0x1fb9e8(0x168)](kebabCase,_0x33f0c1[_0x1fb9e8(0x11f)]),[_0x25ea35,_0x2eee9c,_0x3c47b1,_0x1757af,_0xfaa72e,_0xc143fb]=await _0x37527e['BaAnF'](createK8sClient,_0x2d01e5);await _0x37527e[_0x1fb9e8(0x16c)](removeGridComponents,_0x25ea35,_0x2eee9c,_0x3c47b1,_0x1757af,_0x50f212);if(_0x1864ba['onlyGridInCluster']){const _0x36bb2a=await _0x2d01e5[_0x1fb9e8(0x123)]();_0x36bb2a?await _0x2d01e5[_0x1fb9e8(0x158)](_0x25ea35,_0x33f0c1[_0x1fb9e8(0x13c)]):logger['warn'](_0x1fb9e8(0x10a)+_0x33f0c1[_0x1fb9e8(0x134)]+_0x1fb9e8(0x173));}const _0x150018=_0x1fb9e8(0x14f)+AG_API_URL+_0x1fb9e8(0x169)+_0x210a08[_0x1fb9e8(0x11c)],_0x28a5c5={};_0x28a5c5[_0x1fb9e8(0x109)]=_0x3546f3[_0x1fb9e8(0x154)]['username'],_0x28a5c5[_0x1fb9e8(0x129)]=_0x3546f3[_0x1fb9e8(0x154)][_0x1fb9e8(0x129)];const _0x425d4f={};_0x425d4f[_0x1fb9e8(0x10e)]=_0x150018,_0x425d4f[_0x1fb9e8(0xfe)]=_0x37527e[_0x1fb9e8(0x106)],_0x425d4f['auth']=_0x28a5c5;const _0x29bcfa=_0x425d4f,_0x316d81=await _0x37527e['tguYs'](promisifiedRequest,_0x29bcfa);_0x37527e[_0x1fb9e8(0x131)](_0x316d81,null)&&_0x37527e[_0x1fb9e8(0x124)](_0x316d81,undefined)&&_0x37527e[_0x1fb9e8(0x179)](_0x316d81[_0x1fb9e8(0x156)],0xc8)&&(logger[_0x1fb9e8(0x15e)](_0x1fb9e8(0x114)),process[_0x1fb9e8(0x11e)](0x0)),logger[_0x1fb9e8(0x12f)](_0x1fb9e8(0x10d)+JSON[_0x1fb9e8(0x183)](_0x316d81)),await _0x37527e[_0x1fb9e8(0x103)](sendInstrumentationEvent,_0x210a08,_0x37527e['XinNl'],messageTypes['ERROR'],_0x37527e[_0x1fb9e8(0x12a)],_0x43e22e,_0x210a08),process[_0x1fb9e8(0x11e)](0x1);}_0x37527e[_0x1fb9e8(0x178)](_0x43e22e[_0x1fb9e8(0x156)],0x191)&&(logger['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x37527e[_0x1fb9e8(0x103)](sendInstrumentationEvent,_0x210a08,_0x37527e[_0x1fb9e8(0x113)],messageTypes[_0x1fb9e8(0x12b)],_0x37527e[_0x1fb9e8(0x11d)],null,_0x210a08),process[_0x1fb9e8(0x11e)](0x1)),_0x37527e[_0x1fb9e8(0x162)](_0x43e22e[_0x1fb9e8(0x156)],0x190)&&(logger[_0x1fb9e8(0x12f)](JSON[_0x1fb9e8(0x17c)](_0x43e22e['body'])[_0x1fb9e8(0x122)]),await _0x37527e['QGLdL'](sendInstrumentationEvent,_0x210a08,_0x37527e[_0x1fb9e8(0x113)],messageTypes[_0x1fb9e8(0x12b)],_0x37527e['dPQnd'],null,_0x210a08),process['exit'](0x1)),logger[_0x1fb9e8(0x12f)](_0x1fb9e8(0xfc)+JSON[_0x1fb9e8(0x183)](_0x43e22e)),await _0x37527e[_0x1fb9e8(0x118)](sendInstrumentationEvent,_0x210a08,_0x37527e['XinNl'],messageTypes[_0x1fb9e8(0x12b)],_0x37527e[_0x1fb9e8(0x12a)],_0x43e22e,_0x210a08),process[_0x1fb9e8(0x11e)](0x1);}catch(_0xc37ee4){logger[_0x1fb9e8(0x12f)](_0x1fb9e8(0x160)+_0xc37ee4[_0x1fb9e8(0x115)]),await _0x37527e[_0x1fb9e8(0x103)](sendInstrumentationEvent,_0x210a08,_0x37527e[_0x1fb9e8(0x113)],messageTypes[_0x1fb9e8(0x12b)],_0x37527e['OOrky'],_0xc37ee4,_0x210a08),process[_0x1fb9e8(0x11e)](0x1);}};
@@ -1 +1 @@
1
- const a13_0x5aa068=a13_0x4b25;function a13_0x4b25(_0x142123,_0x1bbf3c){const _0x53882c=a13_0x5388();return a13_0x4b25=function(_0x4b2545,_0x5dad7e){_0x4b2545=_0x4b2545-0x15f;let _0x25e87e=_0x53882c[_0x4b2545];return _0x25e87e;},a13_0x4b25(_0x142123,_0x1bbf3c);}function a13_0x5388(){const _0xa947c7=['SSWZR','yyiUq','INFO','FnLfY','password','handler','wrong-creds','existsSync','FCXEu','esnxd','help','YpJNM','pAPpX','utf-8','FBPSI','slRhQ','string','error','otPvz','2199533wYInCn','mrSRJ','tvUEb','ifaJd','bstack-accesskey','BROWSERSTACK_ACCESS_KEY','ZcbyV','unknown-error','promisify','BLmvx','method','https://','exit','cjftW','NrjJZ','kTvjS','PKkNJ','3846339YefJHG','1570892gTHxPf','GBsir','stringify','bstack-username','Browserstack','usage','oZzju','exgfy','NCkeL','ERROR','parse','1lmMBne','32nyDtXM','bstackAccesskey','init-called','username','11Tnuzwu','WmukH','sryAp','bMvzw','1714608bZXUks','../config/constants','4735290BmClyr','dUuMw','debug','850911KjAlNi','AuYVN','request','19346590DAmePH','OLRFc','ZYsTV','description','command','kPxEW','JKUHR','uzXZV','WTpAQ','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','tMVJC','../config/logger','init','hDdIS','Ohxzy','QmxtJ','BROWSERSTACK_USERNAME','readFileSync','OQZMT','iJDDx','GET','4AusTrr','bstackUsername','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','writeFileSync','/automate/plan.json','type','requestId','LZJvH','aRoeE','epilogue','env','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ssfeA','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','recommendCommands','mkdirSync','strict','SbYNf','../utils/instrumentationUtils'];a13_0x5388=function(){return _0xa947c7;};return a13_0x5388();}(function(_0x278947,_0x1c1bb3){const _0x2cb8ed=a13_0x4b25,_0x42a7c1=_0x278947();while(!![]){try{const _0x4275bb=-parseInt(_0x2cb8ed(0x197))/0x1*(-parseInt(_0x2cb8ed(0x18c))/0x2)+parseInt(_0x2cb8ed(0x1a5))/0x3*(parseInt(_0x2cb8ed(0x1bd))/0x4)+-parseInt(_0x2cb8ed(0x1a2))/0x5+parseInt(_0x2cb8ed(0x1a0))/0x6+-parseInt(_0x2cb8ed(0x17a))/0x7*(parseInt(_0x2cb8ed(0x198))/0x8)+-parseInt(_0x2cb8ed(0x18b))/0x9+-parseInt(_0x2cb8ed(0x1a8))/0xa*(-parseInt(_0x2cb8ed(0x19c))/0xb);if(_0x4275bb===_0x1c1bb3)break;else _0x42a7c1['push'](_0x42a7c1['shift']());}catch(_0x5ecb0b){_0x42a7c1['push'](_0x42a7c1['shift']());}}}(a13_0x5388,0xa0b1d));const fs=require('fs'),util=require('util'),request=require(a13_0x5aa068(0x1a7)),{v4:uuidv4}=require('uuid'),{logger}=require(a13_0x5aa068(0x1b3)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0x5aa068(0x1a1)),{getDirForConfig,getCredentialsPath}=require('../utils/utilityMethods'),{sendInstrumentationEvent}=require(a13_0x5aa068(0x166)),promisifiedRequest=util[a13_0x5aa068(0x182)](request);exports[a13_0x5aa068(0x1ac)]=a13_0x5aa068(0x1b4),exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports['builder']=function(_0x4baf23){const _0x12d5d5=a13_0x5aa068,_0x57b09e={};_0x57b09e['mefTG']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x57b09e[_0x12d5d5(0x1c4)]=_0x12d5d5(0x177),_0x57b09e[_0x12d5d5(0x1af)]=_0x12d5d5(0x15f),_0x57b09e['JKUHR']=_0x12d5d5(0x171);const _0x1ad353=_0x57b09e,_0x47ff13={};_0x47ff13[_0x12d5d5(0x1ab)]=_0x1ad353['mefTG'],_0x47ff13[_0x12d5d5(0x1c2)]=_0x1ad353[_0x12d5d5(0x1c4)];const _0x2f1049={};_0x2f1049[_0x12d5d5(0x1ab)]=_0x1ad353['uzXZV'],_0x2f1049[_0x12d5d5(0x1c2)]=_0x1ad353[_0x12d5d5(0x1c4)];const _0x4be426={};return _0x4be426[_0x12d5d5(0x18f)]=_0x47ff13,_0x4be426['bstack-accesskey']=_0x2f1049,_0x4baf23['usage'](HELP_HEADER_MESSAGE[_0x12d5d5(0x1b4)])[_0x12d5d5(0x1c6)](HELP_FOOTER_MESSAGE)['options'](_0x4be426)[_0x12d5d5(0x162)]()[_0x12d5d5(0x164)]()[_0x12d5d5(0x171)](_0x1ad353[_0x12d5d5(0x1ae)])['argv'];},exports[a13_0x5aa068(0x16c)]=async function(_0x44f299){const _0x1391bf=a13_0x5aa068,_0x4435f1={'slRhQ':_0x1391bf(0x174),'oZzju':function(_0x4a7abe){return _0x4a7abe();},'QAfJu':_0x1391bf(0x161),'cjftW':'string','ifaJd':_0x1391bf(0x15f),'exgfy':_0x1391bf(0x171),'FnLfY':function(_0x2d11e1,_0x5df03b,_0x4a74b5,_0x20ce14,_0x18c199,_0x5761cd,_0x4d72ae){return _0x2d11e1(_0x5df03b,_0x4a74b5,_0x20ce14,_0x18c199,_0x5761cd,_0x4d72ae);},'iJDDx':_0x1391bf(0x19a),'WTpAQ':function(_0xf0d750){return _0xf0d750();},'yyiUq':function(_0x35ae78,_0x51b5c0){return _0x35ae78!==_0x51b5c0;},'AuYVN':_0x1391bf(0x18a),'VpUrT':function(_0x4da908,_0x3d6543){return _0x4da908===_0x3d6543;},'mrSRJ':_0x1391bf(0x167),'BLmvx':function(_0x58f45e,_0x40c355){return _0x58f45e===_0x40c355;},'kPxEW':_0x1391bf(0x172),'ssfeA':function(_0x367023,_0x2e2c15){return _0x367023===_0x2e2c15;},'FCXEu':_0x1391bf(0x1a3),'aRoeE':_0x1391bf(0x17c),'NrjJZ':'nuxEf','sryAp':function(_0x4197b2,_0x2e3392){return _0x4197b2===_0x2e3392;},'QmxtJ':function(_0x1d407e,_0x4d027e){return _0x1d407e!==_0x4d027e;},'kTvjS':_0x1391bf(0x1b6),'ZcbyV':_0x1391bf(0x1b1),'esnxd':_0x1391bf(0x1bc),'GBsir':function(_0x24b5f2,_0x1468a5){return _0x24b5f2(_0x1468a5);},'NCkeL':function(_0x1adaa2,_0x2f4add){return _0x1adaa2!==_0x2f4add;},'UbPBx':function(_0x5aabe7,_0xfb6939){return _0x5aabe7===_0xfb6939;},'WmukH':_0x1391bf(0x1b5),'SbYNf':'LgKLp','SJsnE':_0x1391bf(0x1a9),'FBPSI':function(_0xfe2753,_0x56a430){return _0xfe2753!==_0x56a430;},'tMVJC':'xOVTd','bMvzw':'ULbzO','pAPpX':_0x1391bf(0x1bf),'otPvz':_0x1391bf(0x16d),'OQZMT':function(_0x423c7e,_0x4edc2d,_0x1867d3,_0x44b4c0,_0x46f84a,_0x21fe74,_0x3761a0){return _0x423c7e(_0x4edc2d,_0x1867d3,_0x44b4c0,_0x46f84a,_0x21fe74,_0x3761a0);},'ZYsTV':_0x1391bf(0x181)};try{global_registry[_0x1391bf(0x1c3)]=_0x4435f1[_0x1391bf(0x192)](uuidv4),_0x4435f1['FnLfY'](sendInstrumentationEvent,_0x44f299,_0x4435f1[_0x1391bf(0x1bb)],messageTypes[_0x1391bf(0x169)],null,null,_0x44f299);const _0x3a959c=_0x4435f1[_0x1391bf(0x1b0)](getDirForConfig);!fs[_0x1391bf(0x16e)](_0x3a959c)&&(_0x4435f1[_0x1391bf(0x168)](_0x4435f1['AuYVN'],_0x4435f1[_0x1391bf(0x1a6)])?_0x36c77b=_0x19f1f5[_0x1391bf(0x1be)]:fs[_0x1391bf(0x163)](_0x3a959c));let _0x56bfdc,_0x392a57;process[_0x1391bf(0x1c7)][_0x1391bf(0x1b8)]&&(_0x4435f1['VpUrT'](_0x4435f1['mrSRJ'],_0x4435f1[_0x1391bf(0x17b)])?_0x56bfdc=process[_0x1391bf(0x1c7)][_0x1391bf(0x1b8)]:_0x542486=!![]);process[_0x1391bf(0x1c7)][_0x1391bf(0x17f)]&&(_0x4435f1[_0x1391bf(0x183)](_0x4435f1[_0x1391bf(0x1ad)],_0x4435f1['kPxEW'])?_0x392a57=process[_0x1391bf(0x1c7)][_0x1391bf(0x17f)]:_0x352297=_0x595d6e[_0x1391bf(0x1c7)][_0x1391bf(0x1b8)]);_0x44f299[_0x1391bf(0x1be)]&&(_0x4435f1[_0x1391bf(0x160)](_0x4435f1[_0x1391bf(0x16f)],_0x4435f1[_0x1391bf(0x16f)])?_0x56bfdc=_0x44f299['bstackUsername']:_0x4a31fe=_0x414309[_0x1391bf(0x1c7)][_0x1391bf(0x17f)]);_0x44f299['bstackAccesskey']&&(_0x4435f1[_0x1391bf(0x168)](_0x4435f1[_0x1391bf(0x1c5)],_0x4435f1[_0x1391bf(0x188)])?_0x392a57=_0x44f299[_0x1391bf(0x199)]:_0xd1e5a6=_0x329bab[_0x1391bf(0x196)](_0x20a426[_0x1391bf(0x1b9)](_0x4f0d1e,_0x4435f1[_0x1391bf(0x176)])));if(_0x4435f1['BLmvx'](_0x56bfdc,undefined)||_0x4435f1[_0x1391bf(0x19e)](_0x392a57,undefined)){if(_0x4435f1[_0x1391bf(0x1b7)](_0x4435f1['kTvjS'],_0x4435f1[_0x1391bf(0x189)]))_0x5c637f=_0xfa14cd['bstackAccesskey'];else{logger[_0x1391bf(0x1a4)](_0x4435f1[_0x1391bf(0x180)]);const [_0x5176b8,_0x30fa3a]=await _0x4435f1[_0x1391bf(0x1b0)](inputBstackKeys);_0x56bfdc=_0x5176b8,_0x392a57=_0x30fa3a;}}let _0x4ff1cd=![];const _0x57d2ca={};_0x57d2ca['url']=_0x1391bf(0x185)+_0x56bfdc+':'+_0x392a57+'@'+BS_API_URL+_0x1391bf(0x1c1),_0x57d2ca[_0x1391bf(0x184)]=_0x4435f1[_0x1391bf(0x170)];const _0x5d20d5=_0x57d2ca,_0x31128d=await _0x4435f1[_0x1391bf(0x18d)](promisifiedRequest,_0x5d20d5);if(_0x4435f1['QmxtJ'](_0x31128d,null)&&_0x4435f1[_0x1391bf(0x194)](_0x31128d,undefined)&&_0x4435f1['UbPBx'](_0x31128d['statusCode'],0xc8)){if(_0x4435f1[_0x1391bf(0x160)](_0x4435f1[_0x1391bf(0x19d)],_0x4435f1[_0x1391bf(0x19d)]))_0x4ff1cd=!![];else{let _0x5b2768={};const _0x39af32=_0x4435f1[_0x1391bf(0x192)](_0x514fd4);_0x459bf1['existsSync'](_0x39af32)&&(_0x5b2768=_0x522649[_0x1391bf(0x196)](_0x2a4dc9[_0x1391bf(0x1b9)](_0x39af32,_0x4435f1['slRhQ'])));const _0x306f1c={};_0x306f1c[_0x1391bf(0x19b)]=_0x390af0,_0x306f1c[_0x1391bf(0x16b)]=_0x3c3fc1,_0x5b2768[_0x1391bf(0x190)]=_0x306f1c,_0x33017c[_0x1391bf(0x1c0)](_0x39af32,_0x2f197e[_0x1391bf(0x18e)](_0x5b2768)),_0x14810c[_0x1391bf(0x186)](0x0);}}if(_0x4ff1cd){if(_0x4435f1[_0x1391bf(0x160)](_0x4435f1[_0x1391bf(0x165)],_0x4435f1['SJsnE']))_0xab91e8['mkdirSync'](_0x76f381);else{let _0x5e715f={};const _0x2bceea=_0x4435f1[_0x1391bf(0x1b0)](getCredentialsPath);if(fs[_0x1391bf(0x16e)](_0x2bceea)){if(_0x4435f1[_0x1391bf(0x175)](_0x4435f1[_0x1391bf(0x1b2)],_0x4435f1[_0x1391bf(0x19f)]))_0x5e715f=JSON[_0x1391bf(0x196)](fs['readFileSync'](_0x2bceea,_0x4435f1['slRhQ']));else{const _0x57fc2d={};_0x57fc2d[_0x1391bf(0x1ab)]=_0x4435f1['QAfJu'],_0x57fc2d['type']=_0x4435f1[_0x1391bf(0x187)];const _0x35695c={};_0x35695c[_0x1391bf(0x1ab)]=_0x4435f1[_0x1391bf(0x17d)],_0x35695c[_0x1391bf(0x1c2)]=_0x4435f1['cjftW'];const _0x2f2320={};return _0x2f2320[_0x1391bf(0x18f)]=_0x57fc2d,_0x2f2320[_0x1391bf(0x17e)]=_0x35695c,_0x5dcb47[_0x1391bf(0x191)](_0x29ca9c['init'])[_0x1391bf(0x1c6)](_0x181377)['options'](_0x2f2320)['recommendCommands']()[_0x1391bf(0x164)]()[_0x1391bf(0x171)](_0x4435f1[_0x1391bf(0x193)])['argv'];}}const _0x492345={};_0x492345['username']=_0x56bfdc,_0x492345[_0x1391bf(0x16b)]=_0x392a57,_0x5e715f['Browserstack']=_0x492345,fs[_0x1391bf(0x1c0)](_0x2bceea,JSON[_0x1391bf(0x18e)](_0x5e715f)),process[_0x1391bf(0x186)](0x0);}}else logger[_0x1391bf(0x178)](_0x4435f1[_0x1391bf(0x173)]),await _0x4435f1[_0x1391bf(0x16a)](sendInstrumentationEvent,_0x44f299,_0x4435f1[_0x1391bf(0x1bb)],messageTypes[_0x1391bf(0x195)],_0x4435f1[_0x1391bf(0x179)],null,_0x44f299),process[_0x1391bf(0x186)](0x1);}catch(_0x32c1ec){logger[_0x1391bf(0x178)](_0x32c1ec['stack']),await _0x4435f1[_0x1391bf(0x1ba)](sendInstrumentationEvent,_0x44f299,_0x4435f1['iJDDx'],messageTypes[_0x1391bf(0x195)],_0x4435f1[_0x1391bf(0x1aa)],_0x32c1ec,_0x44f299),process[_0x1391bf(0x186)](0x1);}};
1
+ function a13_0x28e4(_0x3fd049,_0x54ac7a){const _0x397530=a13_0x3975();return a13_0x28e4=function(_0x28e439,_0x4242a0){_0x28e439=_0x28e439-0x18f;let _0x333390=_0x397530[_0x28e439];return _0x333390;},a13_0x28e4(_0x3fd049,_0x54ac7a);}const a13_0x372048=a13_0x28e4;function a13_0x3975(){const _0x40e585=['strict','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','GtCJC','14SGjzzy','61GjCZHj','../utils/utilityMethods','writeFileSync','OxiJC','epilogue','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','32084mGxpJR','string','YwNqa','hwplK','usage','LVCCD','stIYs','BSoJS','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','DWZhS','15594491OLMHzl','stringify','ogcZF','exit','handler','98290YdSVWy','utf-8','mmAMx','izuJV','IsQvi','EDgdy','SsScL','init','hKlju','PKdAm','qqnkR','type','ouCvS','unknown-error','debug','uuid','yxnuW','init-called','readFileSync','WQIPl','hjQJD','eSSMR','options','bstackAccesskey','gIlnb','iyckF','promisify','bstackUsername','util','IwNYv','BROWSERSTACK_USERNAME','DDrYg','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','cJiKY','4215920JjxmWT','OBonq','bstack-username','inKgs','Browserstack','mkdirSync','parse','pylMH','DcBzP','ERROR','369lIRHCE','3966HprZMx','AtrDN','GET','lwQLL','username','TZMLj','https://','help','RzgGd','recommendCommands','INFO','Nrrqs','1095xmVWQH','CdGaI','DcaKr','bstack-accesskey','BROWSERSTACK_ACCESS_KEY','password','LhNdv','icIQg','uNXmi','PhUwD','NdgJW','ySVeH','description','qrnZW','/automate/plan.json','2238441NMZYmd','wrong-creds','existsSync','../utils/instrumentationUtils','655576yENmyf','RGvIa','PSAEX','../config/logger','error','qzpMF','env','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','JQnvv'];a13_0x3975=function(){return _0x40e585;};return a13_0x3975();}(function(_0x59a661,_0x504b86){const _0x545fdb=a13_0x28e4,_0x2882a6=_0x59a661();while(!![]){try{const _0xe1ec00=parseInt(_0x545fdb(0x1f4))/0x1*(-parseInt(_0x545fdb(0x1fa))/0x2)+-parseInt(_0x545fdb(0x1e3))/0x3+parseInt(_0x545fdb(0x1bd))/0x4+parseInt(_0x545fdb(0x1d4))/0x5*(parseInt(_0x545fdb(0x1c8))/0x6)+parseInt(_0x545fdb(0x1f3))/0x7*(parseInt(_0x545fdb(0x1e7))/0x8)+parseInt(_0x545fdb(0x1c7))/0x9*(-parseInt(_0x545fdb(0x19b))/0xa)+parseInt(_0x545fdb(0x196))/0xb;if(_0xe1ec00===_0x504b86)break;else _0x2882a6['push'](_0x2882a6['shift']());}catch(_0x245bc3){_0x2882a6['push'](_0x2882a6['shift']());}}}(a13_0x3975,0x9f548));const fs=require('fs'),util=require(a13_0x372048(0x1b7)),request=require('request'),{v4:uuidv4}=require(a13_0x372048(0x1aa)),{logger}=require(a13_0x372048(0x1ea)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getDirForConfig,getCredentialsPath}=require(a13_0x372048(0x1f5)),{sendInstrumentationEvent}=require(a13_0x372048(0x1e6)),promisifiedRequest=util[a13_0x372048(0x1b5)](request);exports['command']=a13_0x372048(0x1a2),exports['desc']=a13_0x372048(0x1ee),exports['builder']=function(_0x21ec15){const _0x313566=a13_0x372048,_0x1ab227={};_0x1ab227[_0x313566(0x1d5)]=_0x313566(0x1f1),_0x1ab227[_0x313566(0x1cd)]='string',_0x1ab227[_0x313566(0x192)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x1ab227[_0x313566(0x1d3)]=_0x313566(0x1cf);const _0x3358d5=_0x1ab227,_0x4c3ef4={};_0x4c3ef4[_0x313566(0x1e0)]=_0x3358d5['CdGaI'],_0x4c3ef4['type']=_0x3358d5['TZMLj'];const _0x1bc447={};_0x1bc447[_0x313566(0x1e0)]=_0x3358d5[_0x313566(0x192)],_0x1bc447[_0x313566(0x1a6)]=_0x3358d5[_0x313566(0x1cd)];const _0x2ee731={};return _0x2ee731[_0x313566(0x1bf)]=_0x4c3ef4,_0x2ee731[_0x313566(0x1d7)]=_0x1bc447,_0x21ec15[_0x313566(0x190)](HELP_HEADER_MESSAGE[_0x313566(0x1a2)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x313566(0x1b1)](_0x2ee731)[_0x313566(0x1d1)]()[_0x313566(0x1f0)]()[_0x313566(0x1cf)](_0x3358d5[_0x313566(0x1d3)])['argv'];},exports[a13_0x372048(0x19a)]=async function(_0x57c9b8){const _0x1e6d9c=a13_0x372048,_0x2b0cdb={'yxnuW':_0x1e6d9c(0x19c),'ouCvS':_0x1e6d9c(0x1f1),'LhNdv':_0x1e6d9c(0x1fb),'DcaKr':_0x1e6d9c(0x194),'SsScL':_0x1e6d9c(0x1cf),'hjQJD':function(_0x254dfc){return _0x254dfc();},'IwNYv':function(_0x49365c,_0x1c096f,_0x1a95d8,_0x4b1fd0,_0x527c5a,_0x4f0d25,_0x477429){return _0x49365c(_0x1c096f,_0x1a95d8,_0x4b1fd0,_0x527c5a,_0x4f0d25,_0x477429);},'mmAMx':_0x1e6d9c(0x1ac),'DcBzP':function(_0x2bbda6,_0xeb245c){return _0x2bbda6!==_0xeb245c;},'lwQLL':'GJfvO','PhUwD':function(_0x3381d5,_0x51f910){return _0x3381d5===_0x51f910;},'AtrDN':_0x1e6d9c(0x1df),'RGvIa':function(_0x1a9ece,_0x5429c9){return _0x1a9ece===_0x5429c9;},'DWZhS':_0x1e6d9c(0x1db),'WqlLE':_0x1e6d9c(0x1a0),'gIlnb':function(_0x378438,_0x34e745){return _0x378438===_0x34e745;},'WQIPl':_0x1e6d9c(0x1a5),'izuJV':_0x1e6d9c(0x19f),'PSAEX':_0x1e6d9c(0x1ef),'JmaCz':_0x1e6d9c(0x1f2),'qzpMF':function(_0x48178a,_0x4730ce){return _0x48178a===_0x4730ce;},'DDrYg':function(_0x4405e9,_0x1e237d){return _0x4405e9===_0x1e237d;},'PKdAm':'DkHIl','RzgGd':_0x1e6d9c(0x191),'YKdOQ':_0x1e6d9c(0x1f9),'hKlju':_0x1e6d9c(0x1ca),'YwNqa':function(_0x4d7c22,_0x554b3a){return _0x4d7c22(_0x554b3a);},'BSoJS':function(_0x45524c,_0x5def1d){return _0x45524c!==_0x5def1d;},'NdgJW':function(_0x7013f4,_0x35ad22){return _0x7013f4!==_0x35ad22;},'uNXmi':_0x1e6d9c(0x1b4),'OBonq':_0x1e6d9c(0x198),'cJiKY':function(_0x12766e){return _0x12766e();},'VuykV':function(_0x14f945,_0x549bcf){return _0x14f945!==_0x549bcf;},'pylMH':'wZkeP','inKgs':_0x1e6d9c(0x1f7),'hwplK':_0x1e6d9c(0x1bb),'eSSMR':_0x1e6d9c(0x1e4),'qrnZW':_0x1e6d9c(0x1a8)};try{global_registry['requestId']=_0x2b0cdb[_0x1e6d9c(0x1af)](uuidv4),_0x2b0cdb[_0x1e6d9c(0x1b8)](sendInstrumentationEvent,_0x57c9b8,_0x2b0cdb[_0x1e6d9c(0x19d)],messageTypes[_0x1e6d9c(0x1d2)],null,null,_0x57c9b8);const _0x26e304=_0x2b0cdb[_0x1e6d9c(0x1af)](getDirForConfig);!fs[_0x1e6d9c(0x1e5)](_0x26e304)&&(_0x2b0cdb[_0x1e6d9c(0x1c5)](_0x2b0cdb[_0x1e6d9c(0x1cb)],_0x2b0cdb[_0x1e6d9c(0x1cb)])?_0x33af58[_0x1e6d9c(0x1c2)](_0x430ef0):fs[_0x1e6d9c(0x1c2)](_0x26e304));let _0x2b2777,_0x1ce685;process[_0x1e6d9c(0x1ed)][_0x1e6d9c(0x1b9)]&&(_0x2b0cdb[_0x1e6d9c(0x1dd)](_0x2b0cdb[_0x1e6d9c(0x1c9)],_0x2b0cdb['AtrDN'])?_0x2b2777=process[_0x1e6d9c(0x1ed)][_0x1e6d9c(0x1b9)]:_0x25a367=_0x29c749[_0x1e6d9c(0x1c3)](_0x9b8562[_0x1e6d9c(0x1ad)](_0x1a62d9,_0x2b0cdb[_0x1e6d9c(0x1ab)])));process['env'][_0x1e6d9c(0x1d8)]&&(_0x2b0cdb[_0x1e6d9c(0x1e8)](_0x2b0cdb[_0x1e6d9c(0x195)],_0x2b0cdb['WqlLE'])?_0x48d691=_0x30f7c0[_0x1e6d9c(0x1ed)][_0x1e6d9c(0x1b9)]:_0x1ce685=process[_0x1e6d9c(0x1ed)][_0x1e6d9c(0x1d8)]);if(_0x57c9b8['bstackUsername']){if(_0x2b0cdb[_0x1e6d9c(0x1b3)](_0x2b0cdb[_0x1e6d9c(0x1ae)],_0x2b0cdb[_0x1e6d9c(0x19e)])){const _0x187a76={};_0x187a76[_0x1e6d9c(0x1e0)]=_0x2b0cdb[_0x1e6d9c(0x1a7)],_0x187a76[_0x1e6d9c(0x1a6)]=_0x2b0cdb[_0x1e6d9c(0x1da)];const _0x224fc8={};_0x224fc8[_0x1e6d9c(0x1e0)]=_0x2b0cdb[_0x1e6d9c(0x1d6)],_0x224fc8[_0x1e6d9c(0x1a6)]=_0x2b0cdb[_0x1e6d9c(0x1da)];const _0x5d486a={};return _0x5d486a[_0x1e6d9c(0x1bf)]=_0x187a76,_0x5d486a['bstack-accesskey']=_0x224fc8,_0x1aad47['usage'](_0x6cce7[_0x1e6d9c(0x1a2)])[_0x1e6d9c(0x1f8)](_0x5e99eb)[_0x1e6d9c(0x1b1)](_0x5d486a)['recommendCommands']()[_0x1e6d9c(0x1f0)]()['help'](_0x2b0cdb[_0x1e6d9c(0x1a1)])['argv'];}else _0x2b2777=_0x57c9b8[_0x1e6d9c(0x1b6)];}_0x57c9b8['bstackAccesskey']&&(_0x2b0cdb[_0x1e6d9c(0x1dd)](_0x2b0cdb[_0x1e6d9c(0x1e9)],_0x2b0cdb['JmaCz'])?_0x129c87=_0x426c06[_0x1e6d9c(0x1b6)]:_0x1ce685=_0x57c9b8[_0x1e6d9c(0x1b2)]);if(_0x2b0cdb[_0x1e6d9c(0x1ec)](_0x2b2777,undefined)||_0x2b0cdb[_0x1e6d9c(0x1e8)](_0x1ce685,undefined)){if(_0x2b0cdb['DDrYg'](_0x2b0cdb[_0x1e6d9c(0x1a4)],_0x2b0cdb[_0x1e6d9c(0x1d0)]))_0x2d7c40=!![];else{logger[_0x1e6d9c(0x1a9)](_0x2b0cdb['YKdOQ']);const [_0x2cb6b9,_0x56ef3c]=await _0x2b0cdb['hjQJD'](inputBstackKeys);_0x2b2777=_0x2cb6b9,_0x1ce685=_0x56ef3c;}}let _0x162152=![];const _0x55304e={};_0x55304e['url']=_0x1e6d9c(0x1ce)+_0x2b2777+':'+_0x1ce685+'@'+BS_API_URL+_0x1e6d9c(0x1e2),_0x55304e['method']=_0x2b0cdb[_0x1e6d9c(0x1a3)];const _0x4b8903=_0x55304e,_0x56561e=await _0x2b0cdb[_0x1e6d9c(0x1fc)](promisifiedRequest,_0x4b8903);if(_0x2b0cdb[_0x1e6d9c(0x193)](_0x56561e,null)&&_0x2b0cdb[_0x1e6d9c(0x193)](_0x56561e,undefined)&&_0x2b0cdb[_0x1e6d9c(0x1ba)](_0x56561e['statusCode'],0xc8)){if(_0x2b0cdb[_0x1e6d9c(0x1de)](_0x2b0cdb[_0x1e6d9c(0x1dc)],_0x2b0cdb[_0x1e6d9c(0x1dc)])){let _0x41b340={};const _0x32a416=_0x2b0cdb[_0x1e6d9c(0x1af)](_0x1604b6);_0x12b4a9[_0x1e6d9c(0x1e5)](_0x32a416)&&(_0x41b340=_0x236642[_0x1e6d9c(0x1c3)](_0x5851b1[_0x1e6d9c(0x1ad)](_0x32a416,_0x2b0cdb[_0x1e6d9c(0x1ab)])));const _0x30219a={};_0x30219a[_0x1e6d9c(0x1cc)]=_0x53cc28,_0x30219a[_0x1e6d9c(0x1d9)]=_0x566239,_0x41b340[_0x1e6d9c(0x1c1)]=_0x30219a,_0x5c6834['writeFileSync'](_0x32a416,_0x303e56[_0x1e6d9c(0x197)](_0x41b340)),_0x2522d5[_0x1e6d9c(0x199)](0x0);}else _0x162152=!![];}if(_0x162152){if(_0x2b0cdb[_0x1e6d9c(0x1ba)](_0x2b0cdb['OBonq'],_0x2b0cdb[_0x1e6d9c(0x1be)])){let _0x4da38b={};const _0x457761=_0x2b0cdb[_0x1e6d9c(0x1bc)](getCredentialsPath);fs[_0x1e6d9c(0x1e5)](_0x457761)&&(_0x2b0cdb['VuykV'](_0x2b0cdb[_0x1e6d9c(0x1c4)],_0x2b0cdb[_0x1e6d9c(0x1c0)])?_0x4da38b=JSON['parse'](fs['readFileSync'](_0x457761,_0x2b0cdb[_0x1e6d9c(0x1ab)])):_0x209be2=_0x5657f8['env']['BROWSERSTACK_ACCESS_KEY']);const _0x3dd4f8={};_0x3dd4f8[_0x1e6d9c(0x1cc)]=_0x2b2777,_0x3dd4f8[_0x1e6d9c(0x1d9)]=_0x1ce685,_0x4da38b['Browserstack']=_0x3dd4f8,fs[_0x1e6d9c(0x1f6)](_0x457761,JSON['stringify'](_0x4da38b)),process[_0x1e6d9c(0x199)](0x0);}else _0x7b28fe=_0x2bbb45['bstackAccesskey'];}else logger[_0x1e6d9c(0x1eb)](_0x2b0cdb[_0x1e6d9c(0x18f)]),await _0x2b0cdb[_0x1e6d9c(0x1b8)](sendInstrumentationEvent,_0x57c9b8,_0x2b0cdb[_0x1e6d9c(0x19d)],messageTypes[_0x1e6d9c(0x1c6)],_0x2b0cdb[_0x1e6d9c(0x1b0)],null,_0x57c9b8),process['exit'](0x1);}catch(_0x36c99b){logger['error'](_0x36c99b['stack']),await _0x2b0cdb[_0x1e6d9c(0x1b8)](sendInstrumentationEvent,_0x57c9b8,_0x2b0cdb[_0x1e6d9c(0x19d)],messageTypes[_0x1e6d9c(0x1c6)],_0x2b0cdb[_0x1e6d9c(0x1e1)],_0x36c99b,_0x57c9b8),process[_0x1e6d9c(0x199)](0x1);}};
@@ -1 +1 @@
1
- function a14_0x3b65(_0x1dff4c,_0x28f53d){const _0x1161e4=a14_0x1161();return a14_0x3b65=function(_0x3b653f,_0xf11ac4){_0x3b653f=_0x3b653f-0x1b6;let _0x3371ca=_0x1161e4[_0x3b653f];return _0x3371ca;},a14_0x3b65(_0x1dff4c,_0x28f53d);}const a14_0x1897e6=a14_0x3b65;function a14_0x1161(){const _0x446b4b=['3414906ZaCWUO','demandCommand','2074638axJluf','list_commands','commandDir','handler','4QmJvrh','builder','PJHVP','help','epilogue','command','7356881tZNkaR','strict','list','List\x20down\x20the\x20Grid\x20resources.','4551000YvjgeM','2942008kiMWux','6988565wYVOxe','../config/constants','yRCCj','583040eRuVww','usage','recommendCommands'];a14_0x1161=function(){return _0x446b4b;};return a14_0x1161();}(function(_0x19c1be,_0x3849f9){const _0x5f2263=a14_0x3b65,_0x2f8322=_0x19c1be();while(!![]){try{const _0x30f988=-parseInt(_0x5f2263(0x1cd))/0x1+-parseInt(_0x5f2263(0x1be))/0x2*(-parseInt(_0x5f2263(0x1ba))/0x3)+parseInt(_0x5f2263(0x1c9))/0x4+parseInt(_0x5f2263(0x1ca))/0x5+-parseInt(_0x5f2263(0x1b8))/0x6+-parseInt(_0x5f2263(0x1c4))/0x7+-parseInt(_0x5f2263(0x1c8))/0x8;if(_0x30f988===_0x3849f9)break;else _0x2f8322['push'](_0x2f8322['shift']());}catch(_0x266441){_0x2f8322['push'](_0x2f8322['shift']());}}}(a14_0x1161,0xb5b42));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x1897e6(0x1cb));exports[a14_0x1897e6(0x1c3)]=a14_0x1897e6(0x1c6),exports['desc']=a14_0x1897e6(0x1c7),exports[a14_0x1897e6(0x1bf)]=function(_0x1ea5a1){const _0x3b79b6=a14_0x1897e6,_0x41ee48={};_0x41ee48['PJHVP']=_0x3b79b6(0x1bb),_0x41ee48[_0x3b79b6(0x1cc)]=_0x3b79b6(0x1c1);const _0x414982=_0x41ee48;return _0x1ea5a1[_0x3b79b6(0x1bc)](_0x414982[_0x3b79b6(0x1c0)])[_0x3b79b6(0x1b9)]()[_0x3b79b6(0x1b6)](HELP_HEADER_MESSAGE[_0x3b79b6(0x1c6)]['root'])[_0x3b79b6(0x1c2)](HELP_FOOTER_MESSAGE)[_0x3b79b6(0x1b7)]()[_0x3b79b6(0x1c5)]()[_0x3b79b6(0x1c1)](_0x414982[_0x3b79b6(0x1cc)]);},exports[a14_0x1897e6(0x1bd)]=function(_0x1a02fc){};
1
+ function a14_0x3d8a(){const _0x23c49d=['builder','2749985qffvff','../config/constants','epilogue','List\x20down\x20the\x20Grid\x20resources.','2684376TyCyhc','763896lKIocS','demandCommand','2033310dcclJP','handler','list','help','list_commands','952560bFQdFw','root','12690902sThcxv','commandDir','264670gFiwTR','usage','desc','icTCr','Ovjjn'];a14_0x3d8a=function(){return _0x23c49d;};return a14_0x3d8a();}const a14_0x470afb=a14_0x512d;(function(_0x2fcd24,_0x3690ab){const _0x493640=a14_0x512d,_0x2206b9=_0x2fcd24();while(!![]){try{const _0x25f151=-parseInt(_0x493640(0x137))/0x1+parseInt(_0x493640(0x142))/0x2+-parseInt(_0x493640(0x139))/0x3+parseInt(_0x493640(0x136))/0x4+-parseInt(_0x493640(0x132))/0x5+-parseInt(_0x493640(0x13e))/0x6+parseInt(_0x493640(0x140))/0x7;if(_0x25f151===_0x3690ab)break;else _0x2206b9['push'](_0x2206b9['shift']());}catch(_0x4a507d){_0x2206b9['push'](_0x2206b9['shift']());}}}(a14_0x3d8a,0x71c48));function a14_0x512d(_0x43f9f6,_0x1d5c20){const _0x3d8a1b=a14_0x3d8a();return a14_0x512d=function(_0x512df9,_0x2ad331){_0x512df9=_0x512df9-0x12f;let _0x1b795d=_0x3d8a1b[_0x512df9];return _0x1b795d;},a14_0x512d(_0x43f9f6,_0x1d5c20);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x470afb(0x133));exports['command']=a14_0x470afb(0x13b),exports[a14_0x470afb(0x144)]=a14_0x470afb(0x135),exports[a14_0x470afb(0x131)]=function(_0x100803){const _0xb6618e=a14_0x470afb,_0x4bddbc={};_0x4bddbc[_0xb6618e(0x12f)]=_0xb6618e(0x13d),_0x4bddbc[_0xb6618e(0x130)]='help';const _0x5c8ea8=_0x4bddbc;return _0x100803[_0xb6618e(0x141)](_0x5c8ea8['icTCr'])[_0xb6618e(0x138)]()[_0xb6618e(0x143)](HELP_HEADER_MESSAGE[_0xb6618e(0x13b)][_0xb6618e(0x13f)])[_0xb6618e(0x134)](HELP_FOOTER_MESSAGE)['recommendCommands']()['strict']()[_0xb6618e(0x13c)](_0x5c8ea8[_0xb6618e(0x130)]);},exports[a14_0x470afb(0x13a)]=function(_0x345510){};
@@ -1 +1 @@
1
- const a15_0x117603=a15_0x4f7d;function a15_0x4f7d(_0x1b51fd,_0x267efa){const _0x22677e=a15_0x2267();return a15_0x4f7d=function(_0x4f7de2,_0x3fd83a){_0x4f7de2=_0x4f7de2-0x128;let _0x55191b=_0x22677e[_0x4f7de2];return _0x55191b;},a15_0x4f7d(_0x1b51fd,_0x267efa);}(function(_0x3914eb,_0x501d54){const _0x21bda0=a15_0x4f7d,_0xea55d6=_0x3914eb();while(!![]){try{const _0x1540cc=parseInt(_0x21bda0(0x160))/0x1+-parseInt(_0x21bda0(0x16a))/0x2*(parseInt(_0x21bda0(0x147))/0x3)+parseInt(_0x21bda0(0x12a))/0x4+parseInt(_0x21bda0(0x175))/0x5+-parseInt(_0x21bda0(0x16b))/0x6+-parseInt(_0x21bda0(0x130))/0x7+parseInt(_0x21bda0(0x14f))/0x8;if(_0x1540cc===_0x501d54)break;else _0xea55d6['push'](_0xea55d6['shift']());}catch(_0x4588d1){_0xea55d6['push'](_0xea55d6['shift']());}}}(a15_0x2267,0xaf4c8));const fs=require('fs'),util=require(a15_0x117603(0x170)),request=require('request'),{table}=require(a15_0x117603(0x15e)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0x117603(0x13d)),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x117603(0x16e)),promisifiedRequest=util[a15_0x117603(0x16d)](request);function a15_0x2267(){const _0x2f30d1=['List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','region','Wjrsf','stringify','boolean','9279408UFYhOs','allGridProfiles','parse','options','desc','bstackUsername','builder','KEQdq','help','requestId','gridProfile','push','BaWtv','bstackAccesskey','all-grid-profiles','table','command','457167xGMFNx','ZlkiF','ERROR','auth','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','LbUGY','cloudProvider','ijMZU','https://','statusCode','66922QPxlhI','908388osQHTR','log','promisify','../../utils/instrumentationUtils','SDQMg','util','username','concurrency','unknown-error','usage','3815065SqxzRH','nMpCb','UtbYo','3676884rmlBBO','whhpe','wKBZR','bFbxq','body','cloud-provider','9748298KSdvmN','init-not-called','Niwnl','description','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Browserstack','list-grid-profiles-called','rLWFd','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','aMPrT','uxfyD','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','grid-profile-name','../../config/constants','server-error','forEach','rtWnP','SyfaR','unauthorised','IwbeD','exit','method','error','93eveYCl','EjjnR','kjjsF'];a15_0x2267=function(){return _0x2f30d1;};return a15_0x2267();}exports[a15_0x117603(0x15f)]='grid-profiles',exports[a15_0x117603(0x153)]=a15_0x117603(0x14a),exports[a15_0x117603(0x155)]=function(_0x89f125){const _0x4882cc=a15_0x117603,_0x25635c={};_0x25635c[_0x4882cc(0x129)]=_0x4882cc(0x164),_0x25635c[_0x4882cc(0x148)]=_0x4882cc(0x14e),_0x25635c[_0x4882cc(0x14c)]=_0x4882cc(0x157);const _0x506651=_0x25635c,_0x718c72={};_0x718c72[_0x4882cc(0x133)]=_0x506651[_0x4882cc(0x129)],_0x718c72['type']=_0x506651['EjjnR'];const _0x78010e={};return _0x78010e[_0x4882cc(0x15d)]=_0x718c72,_0x89f125[_0x4882cc(0x174)](HELP_HEADER_MESSAGE['list'][_0x4882cc(0x159)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x4882cc(0x152)](_0x78010e)[_0x4882cc(0x157)](_0x506651[_0x4882cc(0x14c)])['argv'];},exports['handler']=async function(_0x461824){const _0x13cee6=a15_0x117603,_0x2c3074={'uxfyD':function(_0x5ceede){return _0x5ceede();},'KEQdq':function(_0x7d2c02){return _0x7d2c02();},'whhpe':_0x13cee6(0x13b),'bFbxq':function(_0x29865f,_0x257dc2,_0x25d10b,_0x2e0cd7,_0xd42c2f,_0x31ce0a,_0xf85405){return _0x29865f(_0x257dc2,_0x25d10b,_0x2e0cd7,_0xd42c2f,_0x31ce0a,_0xf85405);},'ijMZU':_0x13cee6(0x136),'Niwnl':_0x13cee6(0x131),'kjjsF':function(_0xdb0cce){return _0xdb0cce();},'aMPrT':'GET','ZlkiF':function(_0x28d8f1,_0x34064a){return _0x28d8f1(_0x34064a);},'LbUGY':function(_0xf6f87c,_0x133444){return _0xf6f87c!==_0x133444;},'rLWFd':function(_0x3d0b35,_0x162b2c){return _0x3d0b35===_0x162b2c;},'IwbeD':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','nMpCb':_0x13cee6(0x13c),'SyfaR':_0x13cee6(0x12f),'rtWnP':_0x13cee6(0x14b),'xjuqp':_0x13cee6(0x172),'bvWqA':function(_0x38a742,_0x928266){return _0x38a742===_0x928266;},'SDQMg':_0x13cee6(0x142),'BaWtv':_0x13cee6(0x13e),'wKBZR':function(_0x435d4a,_0x5c00ab,_0x3dcd69,_0xdff85e,_0x3e7b63,_0x1e69fd,_0x170321){return _0x435d4a(_0x5c00ab,_0x3dcd69,_0xdff85e,_0x3e7b63,_0x1e69fd,_0x170321);},'jqkSG':_0x13cee6(0x173)};try{global_registry[_0x13cee6(0x158)]=_0x2c3074[_0x13cee6(0x13a)](uuidv4);let _0x354a06=_0x13cee6(0x168)+AG_API_URL+'/packages/cli/get-grid-profiles';_0x461824[_0x13cee6(0x150)]&&(_0x354a06=_0x13cee6(0x168)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs['existsSync'](_0x2c3074[_0x13cee6(0x156)](getCredentialsPath))&&(console[_0x13cee6(0x146)](_0x2c3074[_0x13cee6(0x12b)]),await _0x2c3074[_0x13cee6(0x12d)](sendInstrumentationEvent,_0x461824,_0x2c3074[_0x13cee6(0x167)],messageTypes[_0x13cee6(0x162)],_0x2c3074[_0x13cee6(0x132)],null,_0x461824),process[_0x13cee6(0x144)](0x1));_0x2c3074[_0x13cee6(0x12d)](sendInstrumentationEvent,_0x461824,_0x2c3074[_0x13cee6(0x167)],messageTypes['INFO'],null,null,_0x461824);const _0x3d1861=JSON['parse'](fs['readFileSync'](_0x2c3074[_0x13cee6(0x149)](getCredentialsPath))),_0x14fa6a={};_0x14fa6a[_0x13cee6(0x171)]=_0x3d1861[_0x13cee6(0x135)][_0x13cee6(0x171)],_0x14fa6a['password']=_0x3d1861[_0x13cee6(0x135)]['password'];const _0x1211ed={};_0x1211ed['url']=_0x354a06,_0x1211ed[_0x13cee6(0x145)]=_0x2c3074[_0x13cee6(0x139)],_0x1211ed[_0x13cee6(0x163)]=_0x14fa6a;const _0x10795a=_0x1211ed;global_registry[_0x13cee6(0x154)]=_0x3d1861[_0x13cee6(0x135)]['username'],global_registry[_0x13cee6(0x15c)]=_0x3d1861[_0x13cee6(0x135)]['password'];const _0x521fa8=await _0x2c3074[_0x13cee6(0x161)](promisifiedRequest,_0x10795a);if(_0x2c3074[_0x13cee6(0x165)](_0x521fa8,null)&&_0x2c3074[_0x13cee6(0x165)](_0x521fa8,undefined)&&_0x2c3074[_0x13cee6(0x137)](_0x521fa8[_0x13cee6(0x169)],0xc8)){const _0x553612=JSON[_0x13cee6(0x151)](_0x521fa8[_0x13cee6(0x12e)]);console['log'](_0x2c3074[_0x13cee6(0x143)]);const _0x5d158c=[];_0x5d158c[_0x13cee6(0x15a)]([_0x2c3074[_0x13cee6(0x128)],_0x2c3074[_0x13cee6(0x141)],_0x2c3074[_0x13cee6(0x140)],_0x2c3074['xjuqp']]),_0x553612[_0x13cee6(0x13f)](_0x2728b6=>{const _0x2faf1e=_0x13cee6;_0x5d158c['push']([_0x2728b6['name'],_0x2728b6[_0x2faf1e(0x166)],_0x2728b6[_0x2faf1e(0x14b)],_0x2728b6[_0x2faf1e(0x172)]]);}),console[_0x13cee6(0x16c)](_0x2c3074[_0x13cee6(0x161)](table,_0x5d158c)),process[_0x13cee6(0x144)](0x0);}_0x2c3074['bvWqA'](_0x521fa8[_0x13cee6(0x169)],0x191)&&(console['error'](_0x13cee6(0x134)),await _0x2c3074[_0x13cee6(0x12d)](sendInstrumentationEvent,_0x461824,_0x2c3074[_0x13cee6(0x167)],messageTypes[_0x13cee6(0x162)],_0x2c3074[_0x13cee6(0x16f)],null,_0x461824),process[_0x13cee6(0x144)](0x1)),console['error'](_0x13cee6(0x138)+JSON[_0x13cee6(0x14d)](_0x521fa8)),await _0x2c3074[_0x13cee6(0x12d)](sendInstrumentationEvent,_0x461824,_0x2c3074[_0x13cee6(0x167)],messageTypes[_0x13cee6(0x162)],_0x2c3074[_0x13cee6(0x15b)],_0x521fa8,_0x461824),process[_0x13cee6(0x144)](0x1);}catch(_0x938c97){console[_0x13cee6(0x146)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x938c97['stack']),await _0x2c3074[_0x13cee6(0x12c)](sendInstrumentationEvent,_0x461824,_0x2c3074[_0x13cee6(0x167)],messageTypes['ERROR'],_0x2c3074['jqkSG'],_0x938c97,_0x461824),process['exit'](0x1);}};
1
+ const a15_0x35d97e=a15_0x5df5;(function(_0x44c055,_0x1b6a30){const _0x5c85be=a15_0x5df5,_0x46c521=_0x44c055();while(!![]){try{const _0x371e45=parseInt(_0x5c85be(0x1db))/0x1*(parseInt(_0x5c85be(0x1ad))/0x2)+parseInt(_0x5c85be(0x1d2))/0x3*(parseInt(_0x5c85be(0x1c8))/0x4)+-parseInt(_0x5c85be(0x1f4))/0x5*(-parseInt(_0x5c85be(0x1c9))/0x6)+-parseInt(_0x5c85be(0x1e4))/0x7+parseInt(_0x5c85be(0x1cb))/0x8*(parseInt(_0x5c85be(0x1bb))/0x9)+parseInt(_0x5c85be(0x1ca))/0xa*(-parseInt(_0x5c85be(0x1e6))/0xb)+-parseInt(_0x5c85be(0x1ac))/0xc*(parseInt(_0x5c85be(0x1ec))/0xd);if(_0x371e45===_0x1b6a30)break;else _0x46c521['push'](_0x46c521['shift']());}catch(_0x674d83){_0x46c521['push'](_0x46c521['shift']());}}}(a15_0x133d,0xcbdc8));function a15_0x5df5(_0x1956ef,_0x4666f3){const _0x133de9=a15_0x133d();return a15_0x5df5=function(_0x5df56c,_0x546520){_0x5df56c=_0x5df56c-0x1a8;let _0x3185f9=_0x133de9[_0x5df56c];return _0x3185f9;},a15_0x5df5(_0x1956ef,_0x4666f3);}function a15_0x133d(){const _0x3a96e=['allGridProfiles','371426zzICuc','bqJAQ','UBYak','username','argv','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','13DwJOUO','body','KoXJw','gUeTC','bstackAccesskey','request','options','usage','35rwLBUd','forEach','../../utils/utilityMethods','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','grid-profile-name','LqSQj','lmZeB','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','../../utils/instrumentationUtils','sgBuv','description','4952424DeAjxJ','1042316MZwRjP','UWevD','tpANX','iZZQq','Browserstack','url','https://','statusCode','error','desc','command','../../config/constants','iZEPy','epilogue','18cbSaJg','log','help','server-error','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','password','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','GET','all-grid-profiles','list-grid-profiles-called','ToXLO','Failed\x20to\x20list\x20resources!\x20Error:\x20','GOHsn','4674564oVjzKY','1426458QNtVaw','490gaeCEQ','2279720WjvGVP','HOSOi','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','requestId','parse','init-not-called','ojJOV','3nqzuqP','ahPvg','util','cloud-provider','ERROR','boolean','existsSync','stringify','unauthorised','1JQitbq','handler','push','exit','region','unknown-error','cloudProvider','/packages/cli/get-grid-profiles','giaNE','7151746kWFhCK'];a15_0x133d=function(){return _0x3a96e;};return a15_0x133d();}const fs=require('fs'),util=require(a15_0x35d97e(0x1d4)),request=require(a15_0x35d97e(0x1f1)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0x35d97e(0x1b8)),{getCredentialsPath}=require(a15_0x35d97e(0x1f6)),{sendInstrumentationEvent}=require(a15_0x35d97e(0x1a9)),promisifiedRequest=util['promisify'](request);exports[a15_0x35d97e(0x1b7)]='grid-profiles',exports[a15_0x35d97e(0x1b6)]=a15_0x35d97e(0x1a8),exports['builder']=function(_0xb9048d){const _0x44b31b=a15_0x35d97e,_0x536c26={};_0x536c26[_0x44b31b(0x1b9)]=_0x44b31b(0x1bf),_0x536c26[_0x44b31b(0x1ef)]=_0x44b31b(0x1d7),_0x536c26[_0x44b31b(0x1e3)]='help';const _0x25ce84=_0x536c26,_0x186716={};_0x186716[_0x44b31b(0x1ab)]=_0x25ce84['iZEPy'],_0x186716['type']=_0x25ce84[_0x44b31b(0x1ef)];const _0x5c7ea9={};return _0x5c7ea9[_0x44b31b(0x1c3)]=_0x186716,_0xb9048d[_0x44b31b(0x1f3)](HELP_HEADER_MESSAGE['list']['gridProfile'])[_0x44b31b(0x1ba)](HELP_FOOTER_MESSAGE)[_0x44b31b(0x1f2)](_0x5c7ea9)[_0x44b31b(0x1bd)](_0x25ce84['giaNE'])[_0x44b31b(0x1ea)];},exports[a15_0x35d97e(0x1dc)]=async function(_0xc374d7){const _0x4dfde7=a15_0x35d97e,_0x160f7d={'GOHsn':function(_0x266a18){return _0x266a18();},'uMSvs':_0x4dfde7(0x1c1),'iZZQq':function(_0xc626f0,_0x2c25a9,_0x104c7f,_0x39a694,_0x3d6193,_0x45ee8b,_0x5e81da){return _0xc626f0(_0x2c25a9,_0x104c7f,_0x39a694,_0x3d6193,_0x45ee8b,_0x5e81da);},'UBYak':_0x4dfde7(0x1c4),'ojJOV':_0x4dfde7(0x1d0),'MSBoj':_0x4dfde7(0x1c2),'ToXLO':function(_0x161a02,_0x3a84c3){return _0x161a02(_0x3a84c3);},'UWevD':function(_0x5c7e09,_0x3de540){return _0x5c7e09!==_0x3de540;},'rUrIV':function(_0x5d7c1e,_0x4df3b9){return _0x5d7c1e===_0x4df3b9;},'kkZhH':_0x4dfde7(0x1cd),'LqSQj':_0x4dfde7(0x1f8),'SUgKw':_0x4dfde7(0x1d5),'sgBuv':'region','KoXJw':'concurrency','tpANX':function(_0x24aa8b,_0x33eca6){return _0x24aa8b===_0x33eca6;},'bqJAQ':function(_0xea829e,_0x1eb8b0,_0x10ea2c,_0x6704c5,_0x28eb03,_0x8fdb1d,_0x2caf01){return _0xea829e(_0x1eb8b0,_0x10ea2c,_0x6704c5,_0x28eb03,_0x8fdb1d,_0x2caf01);},'ahPvg':_0x4dfde7(0x1da),'HOSOi':function(_0x3d730c,_0x52ead2,_0x2144a0,_0x23e046,_0x33bfe6,_0x468612,_0xe165f4){return _0x3d730c(_0x52ead2,_0x2144a0,_0x23e046,_0x33bfe6,_0x468612,_0xe165f4);},'dtUYJ':_0x4dfde7(0x1be),'lmZeB':function(_0x1a37e0,_0x45da49,_0x2aaa06,_0x13a939,_0x5c31d3,_0x170009,_0x79756d){return _0x1a37e0(_0x45da49,_0x2aaa06,_0x13a939,_0x5c31d3,_0x170009,_0x79756d);},'hRFuk':_0x4dfde7(0x1e0)};try{global_registry[_0x4dfde7(0x1ce)]=_0x160f7d[_0x4dfde7(0x1c7)](uuidv4);let _0x1e890e=_0x4dfde7(0x1b3)+AG_API_URL+_0x4dfde7(0x1e2);_0xc374d7[_0x4dfde7(0x1e5)]&&(_0x1e890e=_0x4dfde7(0x1b3)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs[_0x4dfde7(0x1d8)](_0x160f7d[_0x4dfde7(0x1c7)](getCredentialsPath))&&(console[_0x4dfde7(0x1b5)](_0x160f7d['uMSvs']),await _0x160f7d[_0x4dfde7(0x1b0)](sendInstrumentationEvent,_0xc374d7,_0x160f7d[_0x4dfde7(0x1e8)],messageTypes['ERROR'],_0x160f7d[_0x4dfde7(0x1d1)],null,_0xc374d7),process[_0x4dfde7(0x1de)](0x1));_0x160f7d[_0x4dfde7(0x1b0)](sendInstrumentationEvent,_0xc374d7,_0x160f7d[_0x4dfde7(0x1e8)],messageTypes['INFO'],null,null,_0xc374d7);const _0x46532f=JSON[_0x4dfde7(0x1cf)](fs['readFileSync'](_0x160f7d[_0x4dfde7(0x1c7)](getCredentialsPath))),_0x2366f7={};_0x2366f7['username']=_0x46532f[_0x4dfde7(0x1b1)]['username'],_0x2366f7[_0x4dfde7(0x1c0)]=_0x46532f['Browserstack'][_0x4dfde7(0x1c0)];const _0x5935c5={};_0x5935c5[_0x4dfde7(0x1b2)]=_0x1e890e,_0x5935c5['method']=_0x160f7d['MSBoj'],_0x5935c5['auth']=_0x2366f7;const _0x1faf5e=_0x5935c5;global_registry['bstackUsername']=_0x46532f[_0x4dfde7(0x1b1)][_0x4dfde7(0x1e9)],global_registry[_0x4dfde7(0x1f0)]=_0x46532f['Browserstack'][_0x4dfde7(0x1c0)];const _0x5b46e5=await _0x160f7d[_0x4dfde7(0x1c5)](promisifiedRequest,_0x1faf5e);if(_0x160f7d[_0x4dfde7(0x1ae)](_0x5b46e5,null)&&_0x160f7d[_0x4dfde7(0x1ae)](_0x5b46e5,undefined)&&_0x160f7d['rUrIV'](_0x5b46e5[_0x4dfde7(0x1b4)],0xc8)){const _0x4d91e4=JSON[_0x4dfde7(0x1cf)](_0x5b46e5[_0x4dfde7(0x1ed)]);console[_0x4dfde7(0x1bc)](_0x160f7d['kkZhH']);const _0x555fa8=[];_0x555fa8[_0x4dfde7(0x1dd)]([_0x160f7d[_0x4dfde7(0x1f9)],_0x160f7d['SUgKw'],_0x160f7d[_0x4dfde7(0x1aa)],_0x160f7d[_0x4dfde7(0x1ee)]]),_0x4d91e4[_0x4dfde7(0x1f5)](_0x585509=>{const _0x41a55a=_0x4dfde7;_0x555fa8[_0x41a55a(0x1dd)]([_0x585509['name'],_0x585509[_0x41a55a(0x1e1)],_0x585509[_0x41a55a(0x1df)],_0x585509['concurrency']]);}),console[_0x4dfde7(0x1bc)](_0x160f7d[_0x4dfde7(0x1c5)](table,_0x555fa8)),process[_0x4dfde7(0x1de)](0x0);}_0x160f7d[_0x4dfde7(0x1af)](_0x5b46e5[_0x4dfde7(0x1b4)],0x191)&&(console[_0x4dfde7(0x1b5)](_0x4dfde7(0x1eb)),await _0x160f7d[_0x4dfde7(0x1e7)](sendInstrumentationEvent,_0xc374d7,_0x160f7d[_0x4dfde7(0x1e8)],messageTypes['ERROR'],_0x160f7d[_0x4dfde7(0x1d3)],null,_0xc374d7),process[_0x4dfde7(0x1de)](0x1)),console[_0x4dfde7(0x1b5)](_0x4dfde7(0x1f7)+JSON[_0x4dfde7(0x1d9)](_0x5b46e5)),await _0x160f7d[_0x4dfde7(0x1cc)](sendInstrumentationEvent,_0xc374d7,_0x160f7d[_0x4dfde7(0x1e8)],messageTypes['ERROR'],_0x160f7d['dtUYJ'],_0x5b46e5,_0xc374d7),process[_0x4dfde7(0x1de)](0x1);}catch(_0x1b554f){console[_0x4dfde7(0x1b5)](_0x4dfde7(0x1c6)+_0x1b554f['stack']),await _0x160f7d[_0x4dfde7(0x1fa)](sendInstrumentationEvent,_0xc374d7,_0x160f7d['UBYak'],messageTypes[_0x4dfde7(0x1d6)],_0x160f7d['hRFuk'],_0x1b554f,_0xc374d7),process[_0x4dfde7(0x1de)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x1d25e1=a16_0x53ba;(function(_0x88dc74,_0x4fea7d){const _0x28e12d=a16_0x53ba,_0x4c7372=_0x88dc74();while(!![]){try{const _0x2ff7a9=parseInt(_0x28e12d(0xe4))/0x1+parseInt(_0x28e12d(0x115))/0x2*(-parseInt(_0x28e12d(0x132))/0x3)+parseInt(_0x28e12d(0xf0))/0x4+-parseInt(_0x28e12d(0x11d))/0x5*(parseInt(_0x28e12d(0x10d))/0x6)+-parseInt(_0x28e12d(0xef))/0x7*(-parseInt(_0x28e12d(0x12e))/0x8)+parseInt(_0x28e12d(0x108))/0x9*(-parseInt(_0x28e12d(0x10b))/0xa)+parseInt(_0x28e12d(0x107))/0xb*(parseInt(_0x28e12d(0x10a))/0xc);if(_0x2ff7a9===_0x4fea7d)break;else _0x4c7372['push'](_0x4c7372['shift']());}catch(_0x1aa359){_0x4c7372['push'](_0x4c7372['shift']());}}}(a16_0x227e,0x5ddc2));const fs=require('fs'),util=require('util'),request=require(a16_0x1d25e1(0xfe)),{table}=require(a16_0x1d25e1(0xe2)),{v4:uuidv4}=require(a16_0x1d25e1(0xf9)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath}=require(a16_0x1d25e1(0xe0)),{sendInstrumentationEvent}=require(a16_0x1d25e1(0xf7)),promisifiedRequest=util[a16_0x1d25e1(0x109)](request);function a16_0x53ba(_0x56ab6f,_0x556d2c){const _0x227e4d=a16_0x227e();return a16_0x53ba=function(_0x53bafe,_0x594b67){_0x53bafe=_0x53bafe-0xe0;let _0x466d4e=_0x227e4d[_0x53bafe];return _0x466d4e;},a16_0x53ba(_0x56ab6f,_0x556d2c);}function a16_0x227e(){const _0x224f5d=['uuid','YyJqG','auth','/packages/cli/get-all-grids','unauthorised','request','help','bstackUsername','tXCTE','unknown-error','rPtgO','ZBIWe','forEach','existsSync','1746481tVkGZy','9HbMuxJ','promisify','48sstQKE','6243950EpMweV','clusterName','3000732AdubFg','requestId','JHFPA','name','GdAhS','stringify','url','exit','245282hGZVVc','ERROR','running','readFileSync','VJlDN','hTgbI','Docla','parse','5tHQRMw','Ogphh','bstackAccesskey','statusCode','queued','NyKle','DWLuh','grid-id','grids','handler','error','log','Failed\x20to\x20list\x20resources!\x20Error:\x20','usage','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','list','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','167592hyGZgh','cNDVN','grid','jEpqb','9PKCVpr','VexFh','grid-name','type','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','Browserstack','builder','stack','../../utils/utilityMethods','options','table','init-not-called','210056SxJNGH','server-error','JXfpr','GET','password','username','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','all-grids','oiocB','body','push','217zuoFbc','1529324YwpZDW','QbmeX','status','xOYRR','list-grids-called','YqAjW','https://','../../utils/instrumentationUtils','\x0aFound\x20the\x20following\x20grids:\x0a'];a16_0x227e=function(){return _0x224f5d;};return a16_0x227e();}exports['command']=a16_0x1d25e1(0x125),exports['desc']='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a16_0x1d25e1(0x138)]=function(_0x20703d){const _0x75ff07=a16_0x1d25e1,_0x2b0e59={};_0x2b0e59['WIRYe']=_0x75ff07(0x12d),_0x2b0e59['JXfpr']='boolean',_0x2b0e59['VJlDN']=_0x75ff07(0xff);const _0x256119=_0x2b0e59,_0x36d485={};_0x36d485['description']=_0x256119['WIRYe'],_0x36d485[_0x75ff07(0x135)]=_0x256119[_0x75ff07(0xe6)];const _0x46efe5={};return _0x46efe5[_0x75ff07(0xeb)]=_0x36d485,_0x20703d[_0x75ff07(0x12a)](HELP_HEADER_MESSAGE[_0x75ff07(0x12c)][_0x75ff07(0x130)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x75ff07(0xe1)](_0x46efe5)[_0x75ff07(0xff)](_0x256119[_0x75ff07(0x119)])['argv'];},exports[a16_0x1d25e1(0x126)]=async function(_0x228e6d){const _0x396f7d=a16_0x1d25e1,_0x9eee20={'Ogphh':function(_0x1dba97){return _0x1dba97();},'xOYRR':_0x396f7d(0x12b),'YyJqG':function(_0xa2dc58,_0x5595ca,_0x127f5e,_0x33c06f,_0x143a3e,_0x189b97,_0x2dd1c6){return _0xa2dc58(_0x5595ca,_0x127f5e,_0x33c06f,_0x143a3e,_0x189b97,_0x2dd1c6);},'cNDVN':_0x396f7d(0xf4),'meQWy':_0x396f7d(0xe3),'NyKle':function(_0x127adc){return _0x127adc();},'rkJwd':_0x396f7d(0xe7),'ZBIWe':function(_0x37c72d,_0x180992){return _0x37c72d(_0x180992);},'DWLuh':function(_0x25e2fb,_0x1c600c){return _0x25e2fb!==_0x1c600c;},'QbmeX':function(_0x45322e,_0x244a34){return _0x45322e!==_0x244a34;},'jEpqb':function(_0x4bce9b,_0x494ba1){return _0x4bce9b===_0x494ba1;},'hTgbI':_0x396f7d(0xf8),'FgXTV':_0x396f7d(0x124),'YqAjW':_0x396f7d(0x134),'dfdNQ':_0x396f7d(0xf2),'VexFh':_0x396f7d(0x117),'GdAhS':_0x396f7d(0x121),'rPtgO':'cluster-name','Docla':function(_0x1186d1,_0x10754b){return _0x1186d1===_0x10754b;},'JHFPA':_0x396f7d(0xfd),'kezTf':function(_0x4b3303,_0x35f00e,_0x22facc,_0x20b6a7,_0x1cb2f8,_0x166098,_0x154536){return _0x4b3303(_0x35f00e,_0x22facc,_0x20b6a7,_0x1cb2f8,_0x166098,_0x154536);},'tXCTE':_0x396f7d(0xe5),'uWrZO':function(_0x3cb77e,_0x466e5b,_0x4e1fbb,_0x476115,_0x2b335e,_0x3a83f5,_0x415017){return _0x3cb77e(_0x466e5b,_0x4e1fbb,_0x476115,_0x2b335e,_0x3a83f5,_0x415017);},'oiocB':_0x396f7d(0x102)};try{global_registry[_0x396f7d(0x10e)]=_0x9eee20['Ogphh'](uuidv4);!fs[_0x396f7d(0x106)](_0x9eee20[_0x396f7d(0x11e)](getCredentialsPath))&&(console[_0x396f7d(0x127)](_0x9eee20[_0x396f7d(0xf3)]),await _0x9eee20[_0x396f7d(0xfa)](sendInstrumentationEvent,_0x228e6d,_0x9eee20[_0x396f7d(0x12f)],messageTypes['ERROR'],_0x9eee20['meQWy'],null,_0x228e6d),process[_0x396f7d(0x114)](0x1));const _0x5ac609=JSON[_0x396f7d(0x11c)](fs[_0x396f7d(0x118)](_0x9eee20[_0x396f7d(0x122)](getCredentialsPath)));let _0x5be39e=_0x396f7d(0xf6)+AG_API_URL+'/packages/cli/get-grids';_0x228e6d['allGrids']&&(_0x5be39e=_0x396f7d(0xf6)+AG_API_URL+_0x396f7d(0xfc));const _0x1e6342={};_0x1e6342[_0x396f7d(0xe9)]=_0x5ac609[_0x396f7d(0x137)][_0x396f7d(0xe9)],_0x1e6342[_0x396f7d(0xe8)]=_0x5ac609['Browserstack'][_0x396f7d(0xe8)];const _0x2e6da0={};_0x2e6da0[_0x396f7d(0x113)]=_0x5be39e,_0x2e6da0['method']=_0x9eee20['rkJwd'],_0x2e6da0[_0x396f7d(0xfb)]=_0x1e6342;const _0x367eac=_0x2e6da0;global_registry[_0x396f7d(0x100)]=_0x5ac609['Browserstack'][_0x396f7d(0xe9)],global_registry[_0x396f7d(0x11f)]=_0x5ac609[_0x396f7d(0x137)][_0x396f7d(0xe8)],_0x9eee20['YyJqG'](sendInstrumentationEvent,_0x228e6d,_0x9eee20[_0x396f7d(0x12f)],messageTypes['INFO'],null,null,_0x228e6d);const _0x35fc7f=await _0x9eee20[_0x396f7d(0x104)](promisifiedRequest,_0x367eac);if(_0x9eee20[_0x396f7d(0x123)](_0x35fc7f,null)&&_0x9eee20[_0x396f7d(0xf1)](_0x35fc7f,undefined)&&_0x9eee20[_0x396f7d(0x131)](_0x35fc7f[_0x396f7d(0x120)],0xc8)){const _0x3b5df9=JSON[_0x396f7d(0x11c)](_0x35fc7f[_0x396f7d(0xed)]);console[_0x396f7d(0x128)](_0x9eee20[_0x396f7d(0x11a)]);const _0x144575=[];_0x144575[_0x396f7d(0xee)]([_0x9eee20['FgXTV'],_0x9eee20[_0x396f7d(0xf5)],_0x9eee20['dfdNQ'],_0x9eee20[_0x396f7d(0x133)],_0x9eee20[_0x396f7d(0x111)],_0x9eee20[_0x396f7d(0x103)]]),_0x3b5df9[_0x396f7d(0x105)](_0x3b9f1b=>{const _0x138651=_0x396f7d;_0x144575['push']([_0x3b9f1b['id'],_0x3b9f1b[_0x138651(0x110)],_0x3b9f1b[_0x138651(0xf2)],_0x3b9f1b['running'],_0x3b9f1b[_0x138651(0x121)],_0x3b9f1b[_0x138651(0x10c)]]);}),console[_0x396f7d(0x128)](_0x9eee20['ZBIWe'](table,_0x144575)),process['exit'](0x0);}_0x9eee20[_0x396f7d(0x11b)](_0x35fc7f[_0x396f7d(0x120)],0x191)&&(console[_0x396f7d(0x127)](_0x396f7d(0x136)),await _0x9eee20['YyJqG'](sendInstrumentationEvent,_0x228e6d,_0x9eee20[_0x396f7d(0x12f)],messageTypes[_0x396f7d(0x116)],_0x9eee20[_0x396f7d(0x10f)],null,_0x228e6d),process['exit'](0x1)),console['error'](_0x396f7d(0xea)+JSON[_0x396f7d(0x112)](_0x35fc7f)),await _0x9eee20['kezTf'](sendInstrumentationEvent,_0x228e6d,_0x9eee20['cNDVN'],messageTypes[_0x396f7d(0x116)],_0x9eee20[_0x396f7d(0x101)],_0x35fc7f,_0x228e6d),process[_0x396f7d(0x114)](0x1);}catch(_0x26dff4){console[_0x396f7d(0x127)](_0x396f7d(0x129)+_0x26dff4[_0x396f7d(0x139)]),await _0x9eee20['uWrZO'](sendInstrumentationEvent,_0x228e6d,_0x9eee20[_0x396f7d(0x12f)],messageTypes['ERROR'],_0x9eee20[_0x396f7d(0xec)],_0x26dff4,_0x228e6d),process[_0x396f7d(0x114)](0x1);}};
1
+ const a16_0x1b0471=a16_0x1b01;function a16_0x4323(){const _0x463697=['BjDEV','promisify','forEach','413vmiVNm','Browserstack','exit','existsSync','kGMYf','mtxQc','ERROR','gPXWV','password','grids','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','12280572awLKft','list','table','username','clusterName','list-grids-called','EyuBW','method','cbLCa','bstackUsername','Failed\x20to\x20list\x20resources!\x20Error:\x20','ynMjJ','zXVVR','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','usage','init-not-called','cluster-name','description','../../config/constants','IiGCa','stringify','queued','GET','anNGY','6268990dElBkF','url','running','xNJvy','1413156LIOHhG','options','statusCode','allGrids','push','qvawo','grid','https://','error','../../utils/instrumentationUtils','UIhrF','258736AgPxRz','2PBbsst','auth','body','5EkfViv','unknown-error','iILno','../../utils/utilityMethods','UKSDV','WVhsP','3072252DfNaGc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','pxddF','EhJRe','zxXOt','PXwGx','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','3hdMYfl','/packages/cli/get-all-grids','builder','log','desc','uuid','NEgXI','39466834YlenCK','grid-name','NxBbj','zTHSp','sAydE','request','179127hzmuRm','DuMmi','help','ZgEAe','name'];a16_0x4323=function(){return _0x463697;};return a16_0x4323();}(function(_0x56a6aa,_0x45e5f1){const _0x2d206f=a16_0x1b01,_0x4f2a9f=_0x56a6aa();while(!![]){try{const _0x599b4a=parseInt(_0x2d206f(0x18a))/0x1*(-parseInt(_0x2d206f(0x16d))/0x2)+parseInt(_0x2d206f(0x17d))/0x3*(parseInt(_0x2d206f(0x1b9))/0x4)+parseInt(_0x2d206f(0x170))/0x5*(parseInt(_0x2d206f(0x176))/0x6)+parseInt(_0x2d206f(0x192))/0x7*(parseInt(_0x2d206f(0x16c))/0x8)+parseInt(_0x2d206f(0x19d))/0x9+parseInt(_0x2d206f(0x1b5))/0xa+-parseInt(_0x2d206f(0x184))/0xb;if(_0x599b4a===_0x45e5f1)break;else _0x4f2a9f['push'](_0x4f2a9f['shift']());}catch(_0x1c5d80){_0x4f2a9f['push'](_0x4f2a9f['shift']());}}}(a16_0x4323,0xf3a07));function a16_0x1b01(_0x7ed411,_0x5e33dd){const _0x43230e=a16_0x4323();return a16_0x1b01=function(_0x1b0128,_0x36272e){_0x1b0128=_0x1b0128-0x162;let _0x248ee6=_0x43230e[_0x1b0128];return _0x248ee6;},a16_0x1b01(_0x7ed411,_0x5e33dd);}const fs=require('fs'),util=require('util'),request=require(a16_0x1b0471(0x189)),{table}=require(a16_0x1b0471(0x19f)),{v4:uuidv4}=require(a16_0x1b0471(0x182)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a16_0x1b0471(0x1af)),{getCredentialsPath}=require(a16_0x1b0471(0x173)),{sendInstrumentationEvent}=require(a16_0x1b0471(0x16a)),promisifiedRequest=util[a16_0x1b0471(0x190)](request);exports['command']=a16_0x1b0471(0x19b),exports[a16_0x1b0471(0x181)]=a16_0x1b0471(0x19c),exports[a16_0x1b0471(0x17f)]=function(_0x4e7913){const _0x41c836=a16_0x1b0471,_0x99795a={};_0x99795a[_0x41c836(0x18d)]=_0x41c836(0x1aa),_0x99795a[_0x41c836(0x1b4)]='boolean',_0x99795a[_0x41c836(0x18f)]='help';const _0x29c552=_0x99795a,_0xe7c515={};_0xe7c515[_0x41c836(0x1ae)]=_0x29c552[_0x41c836(0x18d)],_0xe7c515['type']=_0x29c552[_0x41c836(0x1b4)];const _0x3a737a={};return _0x3a737a['all-grids']=_0xe7c515,_0x4e7913[_0x41c836(0x1ab)](HELP_HEADER_MESSAGE[_0x41c836(0x19e)][_0x41c836(0x167)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x41c836(0x162)](_0x3a737a)[_0x41c836(0x18c)](_0x29c552[_0x41c836(0x18f)])['argv'];},exports['handler']=async function(_0x57703b){const _0x3a8af3=a16_0x1b0471,_0x2e5e35={'NEgXI':function(_0xc91e13){return _0xc91e13();},'zTHSp':_0x3a8af3(0x17c),'pxddF':function(_0x1abdad,_0x41e04c,_0x4dfc09,_0xcf9273,_0x35e81a,_0x482e8d,_0xf5bef4){return _0x1abdad(_0x41e04c,_0x4dfc09,_0xcf9273,_0x35e81a,_0x482e8d,_0xf5bef4);},'NxBbj':_0x3a8af3(0x1a2),'iILno':_0x3a8af3(0x1ac),'UKSDV':function(_0x274928){return _0x274928();},'zXVVR':_0x3a8af3(0x1b3),'UIhrF':function(_0x1e29b5,_0x5acd6b){return _0x1e29b5(_0x5acd6b);},'PXwGx':function(_0xc55317,_0x518a0d){return _0xc55317!==_0x518a0d;},'DuMmi':function(_0x3a6941,_0x153f72){return _0x3a6941!==_0x153f72;},'ynMjJ':function(_0x2166ec,_0x288221){return _0x2166ec===_0x288221;},'qvawo':'\x0aFound\x20the\x20following\x20grids:\x0a','sAydE':'grid-id','zxXOt':_0x3a8af3(0x185),'mtxQc':'status','xNJvy':'running','IiGCa':_0x3a8af3(0x1b2),'WVhsP':_0x3a8af3(0x1ad),'gPXWV':function(_0x4a68b0,_0x429038){return _0x4a68b0(_0x429038);},'EyuBW':function(_0x53a480,_0x3386d6){return _0x53a480===_0x3386d6;},'YkPdB':'unauthorised','EhJRe':function(_0x30ff20,_0x764a1,_0x3c9e5f,_0x1b0a66,_0x2f8f5e,_0x2ac0ce,_0x114c74){return _0x30ff20(_0x764a1,_0x3c9e5f,_0x1b0a66,_0x2f8f5e,_0x2ac0ce,_0x114c74);},'kGMYf':'server-error','cbLCa':_0x3a8af3(0x171)};try{global_registry['requestId']=_0x2e5e35['NEgXI'](uuidv4);!fs[_0x3a8af3(0x195)](_0x2e5e35[_0x3a8af3(0x183)](getCredentialsPath))&&(console[_0x3a8af3(0x169)](_0x2e5e35[_0x3a8af3(0x187)]),await _0x2e5e35[_0x3a8af3(0x178)](sendInstrumentationEvent,_0x57703b,_0x2e5e35[_0x3a8af3(0x186)],messageTypes[_0x3a8af3(0x198)],_0x2e5e35[_0x3a8af3(0x172)],null,_0x57703b),process[_0x3a8af3(0x194)](0x1));const _0x13d610=JSON['parse'](fs['readFileSync'](_0x2e5e35[_0x3a8af3(0x174)](getCredentialsPath)));let _0x403549='https://'+AG_API_URL+'/packages/cli/get-grids';_0x57703b[_0x3a8af3(0x164)]&&(_0x403549=_0x3a8af3(0x168)+AG_API_URL+_0x3a8af3(0x17e));const _0x562f45={};_0x562f45['username']=_0x13d610['Browserstack'][_0x3a8af3(0x1a0)],_0x562f45[_0x3a8af3(0x19a)]=_0x13d610[_0x3a8af3(0x193)][_0x3a8af3(0x19a)];const _0x149f53={};_0x149f53[_0x3a8af3(0x1b6)]=_0x403549,_0x149f53[_0x3a8af3(0x1a4)]=_0x2e5e35[_0x3a8af3(0x1a9)],_0x149f53[_0x3a8af3(0x16e)]=_0x562f45;const _0x281a04=_0x149f53;global_registry[_0x3a8af3(0x1a6)]=_0x13d610[_0x3a8af3(0x193)][_0x3a8af3(0x1a0)],global_registry['bstackAccesskey']=_0x13d610[_0x3a8af3(0x193)][_0x3a8af3(0x19a)],_0x2e5e35[_0x3a8af3(0x178)](sendInstrumentationEvent,_0x57703b,_0x2e5e35[_0x3a8af3(0x186)],messageTypes['INFO'],null,null,_0x57703b);const _0x3f0d85=await _0x2e5e35[_0x3a8af3(0x16b)](promisifiedRequest,_0x281a04);if(_0x2e5e35[_0x3a8af3(0x17b)](_0x3f0d85,null)&&_0x2e5e35[_0x3a8af3(0x18b)](_0x3f0d85,undefined)&&_0x2e5e35[_0x3a8af3(0x1a8)](_0x3f0d85[_0x3a8af3(0x163)],0xc8)){const _0x4add5b=JSON['parse'](_0x3f0d85[_0x3a8af3(0x16f)]);console['log'](_0x2e5e35[_0x3a8af3(0x166)]);const _0x4ed507=[];_0x4ed507[_0x3a8af3(0x165)]([_0x2e5e35[_0x3a8af3(0x188)],_0x2e5e35[_0x3a8af3(0x17a)],_0x2e5e35[_0x3a8af3(0x197)],_0x2e5e35[_0x3a8af3(0x1b8)],_0x2e5e35[_0x3a8af3(0x1b0)],_0x2e5e35[_0x3a8af3(0x175)]]),_0x4add5b[_0x3a8af3(0x191)](_0x5c9f65=>{const _0x488e1a=_0x3a8af3;_0x4ed507[_0x488e1a(0x165)]([_0x5c9f65['id'],_0x5c9f65[_0x488e1a(0x18e)],_0x5c9f65['status'],_0x5c9f65[_0x488e1a(0x1b7)],_0x5c9f65[_0x488e1a(0x1b2)],_0x5c9f65[_0x488e1a(0x1a1)]]);}),console[_0x3a8af3(0x180)](_0x2e5e35[_0x3a8af3(0x199)](table,_0x4ed507)),process[_0x3a8af3(0x194)](0x0);}_0x2e5e35[_0x3a8af3(0x1a3)](_0x3f0d85['statusCode'],0x191)&&(console['error'](_0x3a8af3(0x177)),await _0x2e5e35[_0x3a8af3(0x178)](sendInstrumentationEvent,_0x57703b,_0x2e5e35[_0x3a8af3(0x186)],messageTypes['ERROR'],_0x2e5e35['YkPdB'],null,_0x57703b),process['exit'](0x1)),console[_0x3a8af3(0x169)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x3a8af3(0x1b1)](_0x3f0d85)),await _0x2e5e35[_0x3a8af3(0x179)](sendInstrumentationEvent,_0x57703b,_0x2e5e35[_0x3a8af3(0x186)],messageTypes[_0x3a8af3(0x198)],_0x2e5e35[_0x3a8af3(0x196)],_0x3f0d85,_0x57703b),process[_0x3a8af3(0x194)](0x1);}catch(_0x2ac429){console[_0x3a8af3(0x169)](_0x3a8af3(0x1a7)+_0x2ac429['stack']),await _0x2e5e35[_0x3a8af3(0x178)](sendInstrumentationEvent,_0x57703b,_0x2e5e35['NxBbj'],messageTypes['ERROR'],_0x2e5e35[_0x3a8af3(0x1a5)],_0x2ac429,_0x57703b),process[_0x3a8af3(0x194)](0x1);}};