browserstack-node-sdk 1.34.22 → 1.34.23

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 (129) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/start.js +1 -1
  18. package/ats/src/commands/start_commands/grid.js +1 -1
  19. package/ats/src/commands/stop.js +1 -1
  20. package/ats/src/commands/stop_commands/grid.js +1 -1
  21. package/ats/src/config/constants.js +1 -1
  22. package/ats/src/config/logger.js +1 -1
  23. package/ats/src/index.js +1 -1
  24. package/ats/src/utils/AWSUtils.js +1 -1
  25. package/ats/src/utils/createAutoscalerStack.js +1 -1
  26. package/ats/src/utils/createClusterStack.js +1 -1
  27. package/ats/src/utils/createk8sClient.js +1 -1
  28. package/ats/src/utils/deleteStack.js +1 -1
  29. package/ats/src/utils/gridComponents.js +1 -1
  30. package/ats/src/utils/hstUtils.js +1 -1
  31. package/ats/src/utils/instrumentationUtils.js +1 -1
  32. package/ats/src/utils/userInput.js +1 -1
  33. package/ats/src/utils/utilityMethods.js +1 -1
  34. package/ats/src/utils/webSocketUtils.js +1 -1
  35. package/package.json +1 -1
  36. package/src/ai-sdk-node/bundle.js +1 -1
  37. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  38. package/src/bin/codeceptjs/command.js +1 -1
  39. package/src/bin/codeceptjs/helper.js +1 -1
  40. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  41. package/src/bin/cucumber-js/command.js +1 -1
  42. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  43. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  44. package/src/bin/cucumber-js/test-observability.js +1 -1
  45. package/src/bin/cucumber-js/test.setup.js +1 -1
  46. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  47. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  48. package/src/bin/integrations/command.js +1 -1
  49. package/src/bin/integrations/constants.js +1 -1
  50. package/src/bin/jest/command.js +1 -1
  51. package/src/bin/jest/customImplements/customCircus.js +1 -1
  52. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  53. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  54. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  55. package/src/bin/jest/jest.setup.js +1 -1
  56. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  57. package/src/bin/jest/test-observability/helper.js +1 -1
  58. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  59. package/src/bin/jest/test-observability/test-details.js +1 -1
  60. package/src/bin/jest/test_before.setup.js +1 -1
  61. package/src/bin/launcher/launcher.js +1 -1
  62. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  63. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  64. package/src/bin/mocha/command.js +1 -1
  65. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  66. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  67. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  68. package/src/bin/mocha/test.setup.js +1 -1
  69. package/src/bin/nightwatch/command.js +1 -1
  70. package/src/bin/playwright/accessibility-helper.js +1 -1
  71. package/src/bin/playwright/command.js +1 -1
  72. package/src/bin/playwright/globalSetup.js +1 -1
  73. package/src/bin/playwright/mock-process.js +1 -1
  74. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  75. package/src/bin/playwright/patches.js +1 -1
  76. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  77. package/src/bin/playwright/reporter/reporter.js +1 -1
  78. package/src/bin/playwright/reporter/test-details.js +1 -1
  79. package/src/bin/playwright/sessionDetails.js +1 -1
  80. package/src/bin/runner.js +1 -1
  81. package/src/bin/setup.js +1 -1
  82. package/src/bin/test-runner/index.js +1 -1
  83. package/src/bin/test-runner/runTest.js +1 -1
  84. package/src/bin/test-runner/testWorker.js +1 -1
  85. package/src/bin/utils/constants.js +1 -1
  86. package/src/bin/utils/log4jsAppender.js +1 -1
  87. package/src/bin/utils/logPatcher.js +1 -1
  88. package/src/bin/utils/logReportingAPI.js +1 -1
  89. package/src/bin/vanilla-js/command.js +1 -1
  90. package/src/browserStackSdk.js +1 -1
  91. package/src/helpers/BrowserStackSetup.js +1 -1
  92. package/src/helpers/accessibility-automation/constants.js +1 -1
  93. package/src/helpers/accessibility-automation/helper.js +1 -1
  94. package/src/helpers/accessibility-automation/scripts.js +1 -1
  95. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  96. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  97. package/src/helpers/ats/constants.js +1 -1
  98. package/src/helpers/ats/helper.js +1 -1
  99. package/src/helpers/capsMapping.js +1 -1
  100. package/src/helpers/central-scanner/constants.js +1 -0
  101. package/src/helpers/central-scanner/helpers.js +1 -0
  102. package/src/helpers/globals.js +1 -1
  103. package/src/helpers/helper.js +1 -1
  104. package/src/helpers/logger.js +1 -1
  105. package/src/helpers/patchHelper.js +1 -1
  106. package/src/helpers/patchHelpers.js +1 -1
  107. package/src/helpers/percy/Percy.js +1 -1
  108. package/src/helpers/percy/PercyBinary.js +1 -1
  109. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  110. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  111. package/src/helpers/percy/PercySDK.js +1 -1
  112. package/src/helpers/percy/index.js +1 -1
  113. package/src/helpers/percy/utils.js +1 -1
  114. package/src/helpers/performance-tester.js +1 -1
  115. package/src/helpers/request-spy.js +1 -1
  116. package/src/helpers/setKeepAlive.js +1 -1
  117. package/src/helpers/test-observability/constants.js +1 -1
  118. package/src/helpers/test-observability/error-handler.js +1 -1
  119. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  120. package/src/helpers/test-observability/sessionHandler.js +1 -1
  121. package/src/helpers/test-observability/utils.js +1 -1
  122. package/src/helpers/testhub/constants.js +1 -1
  123. package/src/helpers/testhub/testhubHandler.js +1 -1
  124. package/src/helpers/testhub/utils.js +1 -1
  125. package/src/helpers/timeoutPromise.js +1 -1
  126. package/src/helpers/utilities.js +1 -1
  127. package/src/helpers/w3cMapping.js +1 -1
  128. package/src/hubAllocationMethods.js +1 -1
  129. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x46b176=a9_0x4343;function a9_0x5993(){const _0x7f999=['ACmFf','OVnmh','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','qBdzU','VwDIZ','INFO','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','://','clusterRegion','XhdyJ','pgbED','privateGrid','uBdIs','\x20are\x20not\x20present\x20in\x20VPC:\x20','init-not-called','pAgsJ','mNOff','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','HIwZj','gridName','MEeEo','skipTlsCertVerify','jPVXC','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','GeWUc','Deleting\x20the\x20CloudFormation\x20Stacks','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','isNewAWSCluster','coLvU','annotations','24GlVfSi','NWHOQ','string','error','options','subnets','isSubnetsValid','setupNewCluster','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','AwNFa','fysTn','usage','Browserstack','qrCoy','VtOVx','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','cIzRZ','22iENjGh','browserVersion','eqrvh','hubVersion','WJEEq','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','FJXem','xELZy','private-grid','statusCode','length','4CdQPuA','yWglq','getResourceClientId','2|1|3|4|5|8|10|12|13|14|9|11|0|6|7','Skip\x20insecure\x20cert\x20verification.','default','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','alreadyPresent','Create\x20a\x20private/public\x20grid.','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Namespace\x20created','mNlnu','SxeEA','CLI\x20run\x20started','kRIyC','Grid\x20profile\x20fetched\x20from\x20backend','qYEDN','YjQtb','description','kuqAP','Spawning\x20the\x20grid\x20','ViuGq','create-grid-checks-null-response','zjerR','RBIFc','GET','grid-profile','ENuHR','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','DQSDl','clusterName','xoZLV','hoGZV','user','\x27\x20grid\x20profile','nUIRh','https','gridProfile','msnaA','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','stack','xrYWH','KwEom','mrJLh','readFileSync','Grid\x20can\x20be\x20accessed\x20at:\x20','jrROE','zrYJa','YvDEB','Cluster:\x20','defaultGridProfile','iviOP','https://','grid-name','get-grid-url-null-response','pGtuV','MiBye','kyBAY','eZfDC','rAkEi','deleteCluster','WgAUC','UFtVT','GSCBJ','Cluster\x20','nkfDE','KNLNw','bPZSB','yrbQP','YfdRT','parse','AlkrF','maxNodes','ZDaKM','IUALx','BbrVf','private-ingress-nginx-controller','jNdSJ','HWwcZ','tKZvF','LbBuo','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','tCnXV','get-grid-url-non-200','FqeBS','QKjHm','readNamespacedService','uOTyw','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','UMhbr','bxFBA','8|5|7|6|2|0|1|3|4','xaJDh','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','CSssk','Creating\x20namespace','uBNMV','DkumJ','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','cloudProvider','non-aws-azure-cluster','epilogue','connectionTimeout','JbVsb','dmDvB','argv','OHsQL','reconnecting-websocket','206802RgchCI','mYLqP','/wd/hub','updateClusterAlreadyPresent','TVknx','help','peSlt','bxTxy','CLI\x20run\x20finished:\x20','fXqzL','dXThF','managedBy','CLI_RUN_STARTED','YqBoF','aVogi','MvXjN','edKUo','desc','Kpdlf','IfEGn','exit','<UsernamePlaceholder>','uWsEr','lToLT','2490nSXKKf','create','concurrency','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','SwaOc','\x20using\x20\x27','gQKVN','/packages/cli/get-grid-url?gridIdentifier=','Create\x20a\x20new\x20Automation\x20grid.','toLowerCase','ccWSr','vpc','bstackUsername','GRFKZ','fZiZV','VSXol','1525834unuqVy','pre-spawned-invalid-subnets','replace','iusGY','yjxQq','KGrjc','sendEventToBackend','CLI_RUN_FINISHED','cluster-name','bstyD','sPZwm','instanceType','isPrivateGrid','Found\x20Subnets:\x20','ingress-nginx','ReMFp','xCfiS','Rsvwm','command','FqSKS','Grid\x20spawned\x20on\x20the\x20cluster','LOG','createOtherResources','rtTpK','SkUWq','got','bXROZ','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','Svtcw','uIGnC','xMRKJ','gPBEK','WebSocket','tUwTf','type','ptNQZ','xSgWo','wTenF','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','create-grid-checks-non-200','dXjmR','kqjlg','Subnets:\x20','stringify','bNTaf','VpCtz','\x20in\x20existing\x20cluster\x20\x27','bstackAccesskey','ORAbi','xVQjQ','tARWA','/packages/cli/create-grid-checks','ERROR','EsVOU','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','gugKy','IxgRX','XcrqA','prespawned-cluster-args-not-passed','isClusterPresent','fjHQv','setupAutoscaler','izYKj','JmgKJ','2703732wGdJIc','aneuG','ryvyJ','qXeZu','nJyAl','get-grid-url-auth-failed','minNodes','nacGf','split','pre-spawned-subnets-not-selected','dGuwY','SrxBH','delay','1iNmlAd','mbHdV','sYfIx','../../utils/instrumentationUtils','name','cIAGU','ncpNp','info','PmdaC','WrGJl','KbFSP','region','QVlZS','LTObL','DJzgL','namespace','cNFdx','message','body','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','route53','cBjOE','vqIyB','gridProfileId','RSMbh','yqZkr','boolean','../../config/constants','../../utils/webSocketUtils','sendResourceDataToHST','vyaws','../../utils/createk8sClient','984487nArlMR','oTIdc','password','UvIUc','1925385ooQFxr','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','username','14265OXMrBf','1172856wBEAFp','aQqMb','LgLqu','s3bucket','RoVmQ','skip-tls-cert-verify','newCluster'];a9_0x5993=function(){return _0x7f999;};return a9_0x5993();}(function(_0x37e84d,_0x5cb045){const _0x46de22=a9_0x4343,_0xe760fa=_0x37e84d();while(!![]){try{const _0x2f28b5=-parseInt(_0x46de22(0x147))/0x1*(parseInt(_0x46de22(0xfa))/0x2)+parseInt(_0x46de22(0xd1))/0x3*(parseInt(_0x46de22(0x1b0))/0x4)+parseInt(_0x46de22(0x16b))/0x5+-parseInt(_0x46de22(0x194))/0x6*(-parseInt(_0x46de22(0x167))/0x7)+parseInt(_0x46de22(0x16f))/0x8+parseInt(_0x46de22(0x16e))/0x9*(-parseInt(_0x46de22(0xe9))/0xa)+-parseInt(_0x46de22(0x1a5))/0xb*(-parseInt(_0x46de22(0x13a))/0xc);if(_0x2f28b5===_0x5cb045)break;else _0xe760fa['push'](_0xe760fa['shift']());}catch(_0x1c9d54){_0xe760fa['push'](_0xe760fa['shift']());}}}(a9_0x5993,0x6f61e));const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require(a9_0x46b176(0xd0)),got=require(a9_0x46b176(0x113)),{v4:uuidv4}=require('uuid'),webSocketUtils=require(a9_0x46b176(0x163)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x46b176(0x162)),{addGridComponents,removeGridComponents,getNamespaceUID}=require('../../utils/gridComponents'),{createK8sClient}=require(a9_0x46b176(0x166)),{sendInstrumentationEvent}=require(a9_0x46b176(0x14a));function a9_0x4343(_0x5d62d4,_0xd05cb9){const _0x599345=a9_0x5993();return a9_0x4343=function(_0x434381,_0x506ec5){_0x434381=_0x434381-0xaa;let _0x301d41=_0x599345[_0x434381];return _0x301d41;},a9_0x4343(_0x5d62d4,_0xd05cb9);}exports[a9_0x46b176(0x10c)]='grid',exports[a9_0x46b176(0xe2)]=a9_0x46b176(0xf2),exports['builder']=function(_0x433e4a){const _0xa9f93c=a9_0x46b176,_0x3b767d={};_0x3b767d[_0xa9f93c(0x1e9)]=_0xa9f93c(0x190),_0x3b767d['mbHdV']=_0xa9f93c(0x196),_0x3b767d[_0xa9f93c(0x1c7)]=_0xa9f93c(0x1b9),_0x3b767d[_0xa9f93c(0xf0)]='Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.',_0x3b767d[_0xa9f93c(0x149)]='Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3b767d[_0xa9f93c(0xdf)]=_0xa9f93c(0x18d),_0x3b767d[_0xa9f93c(0xd2)]=_0xa9f93c(0x1b8),_0x3b767d[_0xa9f93c(0x170)]=_0xa9f93c(0x1b4),_0x3b767d[_0xa9f93c(0x1ee)]='boolean',_0x3b767d['xELZy']=_0xa9f93c(0xd6);const _0x4ed0ed=_0x3b767d,_0x37a28e={};_0x37a28e[_0xa9f93c(0x1c2)]=_0x4ed0ed[_0xa9f93c(0x1e9)],_0x37a28e[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x14f7d8={};_0x14f7d8['description']=_0x4ed0ed[_0xa9f93c(0x1c7)],_0x14f7d8['type']=_0x4ed0ed[_0xa9f93c(0x148)];const _0x158ff4={};_0x158ff4[_0xa9f93c(0x1c2)]=_0x4ed0ed['gQKVN'],_0x158ff4[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x634d7a={};_0x634d7a[_0xa9f93c(0x1c2)]=_0x4ed0ed[_0xa9f93c(0x149)],_0x634d7a[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x592767={};_0x592767[_0xa9f93c(0x1c2)]=_0x4ed0ed[_0xa9f93c(0xdf)],_0x592767[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x3c575a={};_0x3c575a[_0xa9f93c(0x1c2)]=_0x4ed0ed[_0xa9f93c(0xd2)],_0x3c575a[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x148)];const _0x31c9e9={};_0x31c9e9[_0xa9f93c(0x1c2)]=_0x4ed0ed['aQqMb'],_0x31c9e9[_0xa9f93c(0x11c)]=_0x4ed0ed[_0xa9f93c(0x1ee)],_0x31c9e9[_0xa9f93c(0x1b5)]=![];const _0x12b946={};return _0x12b946[_0xa9f93c(0x1e6)]=_0x37a28e,_0x12b946[_0xa9f93c(0x1ca)]=_0x14f7d8,_0x12b946['cluster-name']=_0x158ff4,_0x12b946['cloud-provider']=_0x634d7a,_0x12b946[_0xa9f93c(0x152)]=_0x592767,_0x12b946[_0xa9f93c(0x1ad)]=_0x3c575a,_0x12b946[_0xa9f93c(0x174)]=_0x31c9e9,_0x433e4a[_0xa9f93c(0x19f)](HELP_HEADER_MESSAGE[_0xa9f93c(0xea)])[_0xa9f93c(0xca)](HELP_FOOTER_MESSAGE)[_0xa9f93c(0x198)](_0x12b946)[_0xa9f93c(0xd6)](_0x4ed0ed[_0xa9f93c(0x1ac)])[_0xa9f93c(0xce)];},exports['handler']=async function(_0x1e646d){const _0x1eb15a=a9_0x46b176,_0x4e9ab7={'izYKj':_0x1eb15a(0x197),'KNLNw':_0x1eb15a(0xc0),'XcrqA':_0x1eb15a(0x1bd),'xMRKJ':_0x1eb15a(0x1d4),'SxeEA':'warn','lToLT':function(_0x5cedd5,_0x1c034f){return _0x5cedd5===_0x1c034f;},'tCnXV':'http','XXnTA':_0x1eb15a(0x190),'CSssk':_0x1eb15a(0x196),'ptNQZ':_0x1eb15a(0x1b9),'qnVOn':_0x1eb15a(0x17c),'zFvCu':_0x1eb15a(0xed),'pJFXa':_0x1eb15a(0x18d),'TVknx':_0x1eb15a(0x1b8),'gugKy':_0x1eb15a(0x1b4),'PTqqi':_0x1eb15a(0x161),'dXjmR':_0x1eb15a(0xd6),'trSnM':_0x1eb15a(0x1b3),'ReMFp':function(_0x1f8c1c,_0x185f93){return _0x1f8c1c!==_0x185f93;},'ORAbi':function(_0x4bcdd3,_0x4986c3,_0x42b617,_0x2abaf2,_0x281793,_0x2cda48,_0x2f2a83,_0xb0c2db,_0x2c5fd0,_0x2a963d,_0x2c41b0,_0x2e8f5a){return _0x4bcdd3(_0x4986c3,_0x42b617,_0x2abaf2,_0x281793,_0x2cda48,_0x2f2a83,_0xb0c2db,_0x2c5fd0,_0x2a963d,_0x2c41b0,_0x2e8f5a);},'mNlnu':function(_0x2ce0dd){return _0x2ce0dd();},'qBdzU':function(_0x19d77b){return _0x19d77b();},'eZfDC':function(_0x37d901,_0x53ef35){return _0x37d901===_0x53ef35;},'xSgWo':_0x1eb15a(0xb0),'UnjVI':_0x1eb15a(0x16c),'pAgsJ':function(_0x322a72,_0x533e98,_0x168b4f,_0x230249,_0x3e423b,_0x119e54,_0x992db8){return _0x322a72(_0x533e98,_0x168b4f,_0x230249,_0x3e423b,_0x119e54,_0x992db8);},'UFtVT':'create-grid-called','EsVOU':_0x1eb15a(0x184),'NafWy':function(_0x44e546,_0x37ca19,_0x36d360,_0x15905e,_0x85e0dd,_0x4f2982,_0x160b1c){return _0x44e546(_0x37ca19,_0x36d360,_0x15905e,_0x85e0dd,_0x4f2982,_0x160b1c);},'vyaws':_0x1eb15a(0xe6),'mNOff':'<PasswordPlaceholder>','Dveph':'Adding\x20Websocket\x20listeners','YjQtb':'NpAnv','AwNFa':_0x1eb15a(0xbc),'tLDGV':_0x1eb15a(0x15a),'IfEGn':function(_0x5a0f5e,_0x1c7795,_0x32533b,_0x3a21ff,_0x988726,_0x52211f,_0xd93064,_0x4cc0da){return _0x5a0f5e(_0x1c7795,_0x32533b,_0x3a21ff,_0x988726,_0x52211f,_0xd93064,_0x4cc0da);},'sPZwm':_0x1eb15a(0x134),'ENuHR':function(_0x2d0c08,_0x2ff38b){return _0x2d0c08!==_0x2ff38b;},'cIAGU':_0x1eb15a(0x17f),'Kpdlf':'VNPMn','MPHat':_0x1eb15a(0x187),'KKAAR':_0x1eb15a(0xc9),'gPBEK':function(_0x424c8e,_0x325eff){return _0x424c8e===_0x325eff;},'hoGZV':'true','msnaA':_0x1eb15a(0x123),'NurFa':_0x1eb15a(0xb2),'KbFSP':function(_0x52268c,_0x18ce55,_0x31eee8,_0x19b6d1,_0x29189f,_0x53adfa,_0x4867ec){return _0x52268c(_0x18ce55,_0x31eee8,_0x19b6d1,_0x29189f,_0x53adfa,_0x4867ec);},'ryvyJ':_0x1eb15a(0x1a1),'ZDaKM':'kREUQ','jrROE':function(_0x4125a5,_0x2df749){return _0x4125a5!==_0x2df749;},'SrxBH':_0x1eb15a(0x111),'jPVXC':function(_0x24b213,_0x137628){return _0x24b213===_0x137628;},'VwDIZ':'FStst','HWwcZ':_0x1eb15a(0x157),'wTenF':_0x1eb15a(0x1c9),'bxFBA':function(_0x41c63c,_0x52b5c3,_0x799a54){return _0x41c63c(_0x52b5c3,_0x799a54);},'tARWA':_0x1eb15a(0xd7),'yWglq':_0x1eb15a(0x12b),'AlkrF':function(_0x48d9c0,_0xb306ed){return _0x48d9c0===_0xb306ed;},'KGrjc':function(_0x58259c,_0x4cce14){return _0x58259c===_0x4cce14;},'uWsEr':_0x1eb15a(0x116),'YfdRT':_0x1eb15a(0xaf),'ryqMU':_0x1eb15a(0xc2),'Vzevk':_0x1eb15a(0x1c6),'vqIyB':function(_0x23a8ce,_0x2f8cd7){return _0x23a8ce!==_0x2f8cd7;},'zbzfW':'EuIRv','dvwya':_0x1eb15a(0x1e8),'iusGY':_0x1eb15a(0x1d8),'FJXem':function(_0x2cd472,_0x4e903e,_0x1bb9d2,_0x1eccb7,_0x263ff7,_0x4d0291,_0x50d6aa,_0x2da04c){return _0x2cd472(_0x4e903e,_0x1bb9d2,_0x1eccb7,_0x263ff7,_0x4d0291,_0x50d6aa,_0x2da04c);},'Askyt':'create-grid-checks-auth-failed','DJzgL':function(_0x31f3bd,_0x4657ef){return _0x31f3bd!==_0x4657ef;},'xCfiS':_0x1eb15a(0xcf),'ccWSr':_0x1eb15a(0x114),'ViuGq':_0x1eb15a(0x121),'fZiZV':_0x1eb15a(0x1bf),'bNTaf':'EUoPx','ZFCzR':_0x1eb15a(0x150),'xrYWH':'create-grid-checks-grid-already-exists','fXqzL':function(_0x517267,_0x560d7f){return _0x517267===_0x560d7f;},'tUwTf':_0x1eb15a(0x13e),'EpKhD':_0x1eb15a(0x1db),'ACmFf':function(_0x51b6d6,_0x57b3e6){return _0x51b6d6===_0x57b3e6;},'yqZkr':function(_0x56c4b7,_0x48c8fc){return _0x56c4b7!==_0x48c8fc;},'xoZLV':_0x1eb15a(0x1c8),'JbVsb':function(_0x3ea28d,_0x56921c){return _0x3ea28d===_0x56921c;},'SkUWq':_0x1eb15a(0x1dc),'QVlZS':_0x1eb15a(0x1cc),'nacGf':function(_0x2bf68e,_0x17ddc7,_0x34086e,_0x50b77b,_0x2ea1b8,_0x5f43e9,_0x57c569,_0x5c1f82){return _0x2bf68e(_0x17ddc7,_0x34086e,_0x50b77b,_0x2ea1b8,_0x5f43e9,_0x57c569,_0x5c1f82);},'VSXol':'create-grid-checks-invalid-profile','fjHQv':function(_0x54f245,_0x32bb2f){return _0x54f245!==_0x32bb2f;},'uIGnC':'DCYCo','MvXjN':function(_0x1e2703,_0x46b7f7){return _0x1e2703===_0x46b7f7;},'edKUo':function(_0x5e9aed,_0xb64ace){return _0x5e9aed!==_0xb64ace;},'IkphZ':'WqdOU','DQSDl':_0x1eb15a(0x18a),'bPZSB':function(_0x50bf76,_0x138997){return _0x50bf76!==_0x138997;},'uBNMV':function(_0x10a000,_0x595b48){return _0x10a000!==_0x595b48;},'VtOVx':_0x1eb15a(0x18e),'dGuwY':function(_0x44a596,_0x3c8018){return _0x44a596===_0x3c8018;},'RSMbh':_0x1eb15a(0x19e),'uIEYT':_0x1eb15a(0x14d),'nUIRh':function(_0x1dbeb6,_0x51dd73){return _0x1dbeb6!==_0x51dd73;},'wWcnG':_0x1eb15a(0x10d),'OVnmh':function(_0x2b509,_0xe86290,_0xecc365,_0x221b67,_0x33e399,_0x3865d0,_0x4d5b7f,_0x266f26,_0x4d89b2,_0x361719,_0x1e51c6,_0x25a3ea){return _0x2b509(_0xe86290,_0xecc365,_0x221b67,_0x33e399,_0x3865d0,_0x4d5b7f,_0x266f26,_0x4d89b2,_0x361719,_0x1e51c6,_0x25a3ea);},'cBjOE':'axfPa','bLsIE':_0x1eb15a(0x188),'GaASA':'6|5|8|0|3|1|2|7|4','oTIdc':function(_0x306d28,_0x30bf8f,_0x53533e,_0x3c460b,_0x29a9ea,_0xb63c6a,_0x3db6fb){return _0x306d28(_0x30bf8f,_0x53533e,_0x3c460b,_0x29a9ea,_0xb63c6a,_0x3db6fb);},'yrbQP':function(_0x4ce4f0,_0x39883f){return _0x4ce4f0===_0x39883f;},'dXThF':_0x1eb15a(0x1d7),'FqeBS':function(_0x40fbe0,_0x286158){return _0x40fbe0!=_0x286158;},'qXeZu':function(_0x42208f,_0x4131ee){return _0x42208f!=_0x4131ee;},'wGCms':function(_0x55abd8,_0x5e8314){return _0x55abd8>_0x5e8314;},'LTObL':_0x1eb15a(0x115),'rAkEi':function(_0x3c0689,_0x41c78,_0x37c2b2,_0x32bc5c,_0x5c4c4f,_0x18ac92,_0x785f25,_0x4b29be){return _0x3c0689(_0x41c78,_0x37c2b2,_0x32bc5c,_0x5c4c4f,_0x18ac92,_0x785f25,_0x4b29be);},'pgbED':_0x1eb15a(0x143),'Rsvwm':function(_0x472fe3,_0x33ab69){return _0x472fe3===_0x33ab69;},'yjxQq':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','cZNav':function(_0x45a563,_0x255e34,_0x23487e,_0x1447b7,_0x984e8,_0x3cb17f,_0x5d0d97,_0x286401){return _0x45a563(_0x255e34,_0x23487e,_0x1447b7,_0x984e8,_0x3cb17f,_0x5d0d97,_0x286401);},'uBdIs':'pre-spawned-invalid-vpc','iviOP':function(_0x1e254a,_0x335b36){return _0x1e254a===_0x335b36;},'tKZvF':function(_0x4b96b3,_0x43be1f,_0x4ac4b5,_0x507298,_0xfb9ce4,_0x2085f7,_0x561ad4,_0x14a587){return _0x4b96b3(_0x43be1f,_0x4ac4b5,_0x507298,_0xfb9ce4,_0x2085f7,_0x561ad4,_0x14a587);},'kuqAP':_0x1eb15a(0xfb),'DkumJ':'3|2|1|0|4','JmgKJ':'Cluster\x20created\x20successfully','NWHOQ':'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.','cIzRZ':function(_0xdaeb6c,_0x3e04b7,_0x14ff55){return _0xdaeb6c(_0x3e04b7,_0x14ff55);},'UMhbr':function(_0x79aca,_0x42e9a5){return _0x79aca===_0x42e9a5;},'VpCtz':function(_0x16636c,_0xde38e6){return _0x16636c(_0xde38e6);},'RoVmQ':_0x1eb15a(0xc4),'xaJDh':function(_0x6aa91e,_0x2694cb){return _0x6aa91e!==_0x2694cb;},'GSCBJ':_0x1eb15a(0x1b5),'GRFKZ':_0x1eb15a(0x1a0),'UvIUc':'Namespace\x20Created','QKjHm':_0x1eb15a(0x1ba),'LbBuo':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','WJEEq':'Spawning\x20Grid\x20on\x20the\x20Cluster','eqrvh':function(_0x28bcdd,_0x48c217){return _0x28bcdd===_0x48c217;},'YqBoF':function(_0x47bb2c,_0x1e50d2,_0x33cd92,_0x477648,_0x5eef2b,_0x37f97c,_0xee304d,_0x34cdae,_0x486ffa,_0x575c80,_0x11b13a){return _0x47bb2c(_0x1e50d2,_0x33cd92,_0x477648,_0x5eef2b,_0x37f97c,_0xee304d,_0x34cdae,_0x486ffa,_0x575c80,_0x11b13a);},'bstyD':_0x1eb15a(0x10e),'IxgRX':_0x1eb15a(0xbd),'kRIyC':function(_0x1cf01d,_0x56cc12,_0x7f779e,_0x473325,_0x17c88e){return _0x1cf01d(_0x56cc12,_0x7f779e,_0x473325,_0x17c88e);},'zrYJa':_0x1eb15a(0xb1),'TPNEx':'ingress-nginx-controller','PmdaC':_0x1eb15a(0x108),'YvDEB':function(_0x5b5dce,_0x4c80e7){return _0x5b5dce===_0x4c80e7;},'EiApa':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','EXcCh':function(_0x23d03c,_0x55fe0e,_0x85444a,_0x580aed,_0x1ac88e,_0x557ea7,_0xe55cef,_0x408513){return _0x23d03c(_0x55fe0e,_0x85444a,_0x580aed,_0x1ac88e,_0x557ea7,_0xe55cef,_0x408513);},'bxTxy':_0x1eb15a(0x1e7),'qYEDN':_0x1eb15a(0x130),'coLvU':function(_0x3035c8,_0x4bc7a5,_0x46d677,_0x23274d,_0x54a151,_0x27baa4,_0x37bc9a,_0x52ab98){return _0x3035c8(_0x4bc7a5,_0x46d677,_0x23274d,_0x54a151,_0x27baa4,_0x37bc9a,_0x52ab98);},'aneuG':_0x1eb15a(0x13f),'kyBAY':function(_0x222f10,_0x4d5ced){return _0x222f10!==_0x4d5ced;},'dmDvB':_0x1eb15a(0xb8),'SwaOc':_0x1eb15a(0x18f),'LgLqu':function(_0x513ea9,_0x1ff089,_0x51c4ce,_0x9c3055,_0x5ba9a0,_0x27d1a0){return _0x513ea9(_0x1ff089,_0x51c4ce,_0x9c3055,_0x5ba9a0,_0x27d1a0);},'ISzzb':function(_0x499116,_0x480b67,_0x1f63e9,_0x18cb29,_0x4c8b49,_0x3d8e4c,_0x202e16){return _0x499116(_0x480b67,_0x1f63e9,_0x18cb29,_0x4c8b49,_0x3d8e4c,_0x202e16);},'nkfDE':'grid-spawning-failed'};let _0x38d54d=![],_0x30ca7b=![],_0x45da56,_0x1fbbfb,_0x4dd671,_0x386c66,_0x445eb4,_0x3b30c0,_0x3c7e12,_0xd6f39,_0x12d00d,_0x6e7eae,_0x3dea52,_0x502ccc,_0x3da2f5,_0xbef3c2,_0x5c251e=0x1,_0x4d9d6b=0xe;try{global_registry['requestId']=_0x4e9ab7[_0x1eb15a(0x1bb)](uuidv4),global_registry[_0x1eb15a(0x106)]=![];!fs['existsSync'](_0x4e9ab7[_0x1eb15a(0x179)](getCredentialsPath))&&(_0x4e9ab7['eZfDC'](_0x4e9ab7[_0x1eb15a(0x11e)],_0x4e9ab7[_0x1eb15a(0x11e)])?(console[_0x1eb15a(0x197)](_0x4e9ab7['UnjVI']),await _0x4e9ab7[_0x1eb15a(0x185)](sendInstrumentationEvent,_0x1e646d,_0x4e9ab7[_0x1eb15a(0x1ef)],messageTypes['ERROR'],_0x4e9ab7[_0x1eb15a(0x12f)],null,_0x1e646d),process['exit'](0x1)):_0x381634[_0x1eb15a(0x106)]=!![]);await _0x4e9ab7['NafWy'](sendInstrumentationEvent,_0x1e646d,_0x4e9ab7[_0x1eb15a(0x1ef)],messageTypes[_0x1eb15a(0x17b)],null,null,_0x1e646d);const _0x28cd26=JSON[_0x1eb15a(0xab)](fs[_0x1eb15a(0x1dd)](_0x4e9ab7[_0x1eb15a(0x1bb)](getCredentialsPath)));global_registry[_0x1eb15a(0xf6)]=_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x16d)],global_registry[_0x1eb15a(0x129)]=_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x169)];const _0x2609d9=WS_ENDPOINT[_0x1eb15a(0xfc)](_0x4e9ab7[_0x1eb15a(0x165)],_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x16d)])[_0x1eb15a(0xfc)](_0x4e9ab7[_0x1eb15a(0x186)],_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x169)]),_0x33c6a1={};_0x33c6a1[_0x1eb15a(0x11a)]=ws,_0x33c6a1[_0x1eb15a(0xcb)]=0x36ee80,_0x502ccc=new ReconnectingWebSocket(_0x2609d9,[],_0x33c6a1),logger['debug'](_0x4e9ab7['Dveph']),webSocketUtils['addListeners'](_0x502ccc,_0x1e646d[_0x1eb15a(0x1d1)],_0x1e646d[_0x1eb15a(0x169)]);const _0x421e22=_0x1e646d['gridName']||DEFAULT_GRID_NAME;if(_0x1e646d[_0x1eb15a(0x1ce)]||_0x1e646d[_0x1eb15a(0xc8)]||_0x1e646d['region']){if(_0x4e9ab7[_0x1eb15a(0x109)](_0x4e9ab7[_0x1eb15a(0x1c1)],_0x4e9ab7[_0x1eb15a(0x1c1)]))_0x213004[_0x1eb15a(0x14e)](_0x1eb15a(0x107)+_0x10da4b[_0x1eb15a(0x125)](_0x41c6b2)+'\x20');else{if(!(_0x1e646d[_0x1eb15a(0x1ce)]&&_0x1e646d[_0x1eb15a(0xc8)]&&_0x1e646d[_0x1eb15a(0x152)])){if(_0x4e9ab7[_0x1eb15a(0x1eb)](_0x4e9ab7[_0x1eb15a(0x19d)],_0x4e9ab7['AwNFa']))_0x45da56=_0x4e9ab7['tLDGV'],await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes['ERROR'],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x104)],_0x4e9ab7['izYKj']),logger[_0x1eb15a(0x197)](_0x45da56),process[_0x1eb15a(0xe5)](0x1);else throw new _0x237944(_0x1eb15a(0x1f1)+_0x47f49f+_0x1eb15a(0x120));}![AWS,AZURE,GCP]['includes'](_0x1e646d[_0x1eb15a(0xc8)]['toLowerCase']())&&(_0x4e9ab7[_0x1eb15a(0x1cb)](_0x4e9ab7[_0x1eb15a(0x14c)],_0x4e9ab7[_0x1eb15a(0xe3)])?(_0x45da56=_0x4e9ab7['MPHat'],await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7['UFtVT'],_0x4e9ab7['KKAAR'],_0x4e9ab7['izYKj']),logger[_0x1eb15a(0x197)](_0x45da56),process['exit'](0x1)):(_0x4d22c5[_0x1eb15a(0x14e)](_0x1eb15a(0x1e2)+_0x552a96[_0x1eb15a(0x1ce)]+'\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster'),_0x1c0f45=![],_0x201f26=!![]));_0x1e646d[_0x1eb15a(0x181)]&&_0x4e9ab7[_0x1eb15a(0x119)](_0x1e646d[_0x1eb15a(0x181)][_0x1eb15a(0xf3)](),_0x4e9ab7[_0x1eb15a(0x1d0)])&&(_0x4e9ab7[_0x1eb15a(0x109)](_0x4e9ab7[_0x1eb15a(0x1d6)],_0x4e9ab7['NurFa'])?global_registry[_0x1eb15a(0x106)]=!![]:_0x4282f0['isPrivateGrid']=!![]);global_registry[_0x1eb15a(0xc8)]=_0x1e646d['cloudProvider'],global_registry['clusterRegion']=_0x1e646d['region'],global_registry[_0x1eb15a(0x1ce)]=_0x1e646d[_0x1eb15a(0x1ce)];const _0x4f084a=await _0x4e9ab7[_0x1eb15a(0x151)](getCloudProviderObject,_0x1e646d[_0x1eb15a(0xc8)],_0x1e646d['clusterName'],_0x421e22,_0x502ccc,webSocketUtils,_0x1e646d),_0x65da63=await _0x4f084a[_0x1eb15a(0x135)]();if(!_0x65da63)_0x4e9ab7['ReMFp'](_0x4e9ab7[_0x1eb15a(0x13c)],_0x4e9ab7[_0x1eb15a(0xae)])?(logger[_0x1eb15a(0x14e)](_0x1eb15a(0x1e2)+_0x1e646d['clusterName']+_0x1eb15a(0x178)),_0x38d54d=![],_0x30ca7b=!![]):_0x19b043=_0x31604b[_0x22e799['gridProfile']];else{if(_0x4e9ab7[_0x1eb15a(0x1df)](_0x4e9ab7[_0x1eb15a(0x145)],_0x4e9ab7[_0x1eb15a(0x145)])){const _0x2e3670={};_0x2e3670[_0x1eb15a(0x11c)]=_0x4e0ac5[_0x1eb15a(0x10f)],_0x2e3670[_0x1eb15a(0x158)]=_0x49adc4,_0x456201['sendEventToBackend'](_0x13964a,_0x2e3670,_0x4e9ab7[_0x1eb15a(0x138)],!![]);}else _0x38d54d=!![];}_0x4dd671=_0x1e646d['clusterName'],_0x1fbbfb=_0x1e646d['cloudProvider'][_0x1eb15a(0xf3)](),_0x386c66=_0x1e646d[_0x1eb15a(0x152)];}}else _0x1e646d[_0x1eb15a(0x1d5)]&&(_0x4e9ab7[_0x1eb15a(0x18c)](_0x4e9ab7[_0x1eb15a(0x17a)],_0x4e9ab7[_0x1eb15a(0xb3)])?_0x4351d9=null:global_registry[_0x1eb15a(0x1d5)]=_0x1e646d[_0x1eb15a(0x1d5)]);global_registry[_0x1eb15a(0x189)]=_0x1e646d['gridName'];const _0x28b9b4={'method':_0x4e9ab7[_0x1eb15a(0x11f)],'headers':_0x4e9ab7[_0x1eb15a(0xbf)](getAuthHeader,_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x16d)],_0x28cd26[_0x1eb15a(0x1a0)][_0x1eb15a(0x169)]),'throwHttpErrors':![]},_0x2a9c10={};_0x2a9c10['gridName']=_0x421e22;const _0x59ff85=_0x2a9c10;if(_0x30ca7b){if(_0x4e9ab7[_0x1eb15a(0x119)](_0x4e9ab7[_0x1eb15a(0x12c)],_0x4e9ab7[_0x1eb15a(0x1b1)])){const _0x45babd=_0x4e9ab7[_0x1eb15a(0x1f3)]['split']('|');let _0x3ef62d=0x0;while(!![]){switch(_0x45babd[_0x3ef62d++]){case'0':_0x4e3828['clusterRegion']=_0x9f0458;continue;case'1':_0xd7088c[_0x1eb15a(0x1ce)]=_0x44f5ee;continue;case'2':_0x5efaf0[_0x1eb15a(0xc8)]=_0x4b9e57;continue;case'3':_0x59877f[_0x1eb15a(0x1a8)]=_0x20917d['hubVersion'];continue;case'4':_0x27a07e['browserVersion']=_0xdfa615['browserVersion'];continue;case'5':_0x4ad48b=_0x1eb15a(0x1c4)+_0x585e09+_0x1eb15a(0x128)+_0x5f413f+'\x27';continue;case'6':const _0x418aa4={};_0x418aa4[_0x1eb15a(0x11c)]=_0x4558a4[_0x1eb15a(0x10f)],_0x418aa4[_0x1eb15a(0x158)]=_0x18e42b,_0x3107ff['sendEventToBackend'](_0x41f2aa,_0x418aa4);continue;case'7':_0x52156c[_0x1eb15a(0x14e)](_0x4aec24);continue;case'8':const _0x12fec0={};_0x12fec0[_0x1eb15a(0x11c)]=_0x2b5905[_0x1eb15a(0xdd)],_0x12fec0[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x133)],_0x36a461[_0x1eb15a(0x100)](_0x194477,_0x12fec0);continue;}break;}}else _0x59ff85['region']=_0x386c66,_0x59ff85[_0x1eb15a(0xc8)]=_0x1fbbfb,_0x59ff85['newCluster']=!![];}const _0x6c45bd='https://'+AG_API_URL+_0x1eb15a(0x12d),_0x2cf8e4={'searchParams':_0x59ff85,'throwHttpErrors':![],..._0x28b9b4},_0x53e889=_0x2cf8e4,_0x260988=await _0x4e9ab7[_0x1eb15a(0xbf)](got,_0x6c45bd,_0x53e889);(_0x4e9ab7[_0x1eb15a(0xac)](_0x260988,null)||_0x4e9ab7[_0x1eb15a(0xff)](_0x260988,undefined))&&(_0x4e9ab7[_0x1eb15a(0x109)](_0x4e9ab7[_0x1eb15a(0xe7)],_0x4e9ab7[_0x1eb15a(0xaa)])?(_0x45da56=_0x4e9ab7['ryqMU'],await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7['Vzevk'],_0x4e9ab7[_0x1eb15a(0x138)]),logger[_0x1eb15a(0x197)](_0x45da56),process['exit'](0x1)):(_0x2bb132=_0x46d7ec[_0x1eb15a(0x15b)],_0x305e4a=_0x4e9ab7[_0x1eb15a(0x118)]));_0x4e9ab7[_0x1eb15a(0x1eb)](_0x260988[_0x1eb15a(0x1ae)],0x191)&&(_0x4e9ab7[_0x1eb15a(0x15d)](_0x4e9ab7['zbzfW'],_0x4e9ab7['dvwya'])?(_0x45da56=_0x4e9ab7[_0x1eb15a(0xfd)],await _0x4e9ab7[_0x1eb15a(0x1ab)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7['UFtVT'],_0x4e9ab7['Askyt'],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process['exit'](0x1)):_0x470165=null);if(_0x4e9ab7[_0x1eb15a(0x155)](_0x260988['statusCode'],0xc8)){if(_0x4e9ab7[_0x1eb15a(0x119)](_0x4e9ab7[_0x1eb15a(0x10a)],_0x4e9ab7[_0x1eb15a(0xf4)])){const _0x572a49={};_0x572a49[_0x1eb15a(0x11c)]=_0x92c68d[_0x1eb15a(0x10f)],_0x572a49['message']='Cluster\x20'+_0x8462bd+_0x1eb15a(0x1aa),_0x368ef6[_0x1eb15a(0x100)](_0x200059,_0x572a49,_0x4e9ab7[_0x1eb15a(0x1bc)]),_0x4cb63d[_0x1eb15a(0x14e)]('Cluster\x20'+_0x3ddf02+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0xa93c64=!![];if(_0x4e9ab7[_0x1eb15a(0xe8)](_0xdd030,!![]))throw new _0x3a16c5(_0x1eb15a(0x1f1)+_0x12d07a+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}else _0x45da56='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x1eb15a(0x125)](_0x260988[_0x1eb15a(0x159)]),await _0x4e9ab7[_0x1eb15a(0x1ab)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x1c5)],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process[_0x1eb15a(0xe5)](0x1);}const _0x5c6778=JSON[_0x1eb15a(0xab)](_0x260988[_0x1eb15a(0x159)]),_0x125bb5={};_0x125bb5[_0x1eb15a(0x11c)]=WS_EVENTS['CLI_RUN_STARTED'],_0x125bb5[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x133)],webSocketUtils['sendEventToBackend'](_0x502ccc,_0x125bb5);const _0xbc9e88={};_0xbc9e88[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0xbc9e88[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0xf8)],webSocketUtils['sendEventToBackend'](_0x502ccc,_0xbc9e88);_0x5c6778[_0x1eb15a(0x1b7)]&&(_0x4e9ab7['ENuHR'](_0x4e9ab7[_0x1eb15a(0x126)],_0x4e9ab7['ZFCzR'])?(_0x45da56='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x421e22+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes['ERROR'],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x1da)],_0x4e9ab7['izYKj']),logger[_0x1eb15a(0x197)](_0x45da56),process['exit'](0x1)):_0x469481=_0x4e9ab7['tCnXV']);const _0x2e3ed0=_0x5c6778['gridProfiles'];let _0x204fb5=_0x2e3ed0[_0x5c6778[_0x1eb15a(0x1e3)]];if(_0x1e646d[_0x1eb15a(0x1d5)]){if(_0x4e9ab7['fXqzL'](_0x4e9ab7[_0x1eb15a(0x11b)],_0x4e9ab7['EpKhD'])){const _0x3ce5fe={};_0x3ce5fe[_0x1eb15a(0x1c2)]=_0x4e9ab7['XXnTA'],_0x3ce5fe[_0x1eb15a(0x11c)]=_0x4e9ab7[_0x1eb15a(0xc3)];const _0x5f181b={};_0x5f181b[_0x1eb15a(0x1c2)]=_0x4e9ab7[_0x1eb15a(0x11d)],_0x5f181b[_0x1eb15a(0x11c)]=_0x4e9ab7['CSssk'];const _0x4a7915={};_0x4a7915[_0x1eb15a(0x1c2)]=_0x4e9ab7['qnVOn'],_0x4a7915[_0x1eb15a(0x11c)]=_0x4e9ab7[_0x1eb15a(0xc3)];const _0x176bbf={};_0x176bbf[_0x1eb15a(0x1c2)]=_0x4e9ab7['zFvCu'],_0x176bbf[_0x1eb15a(0x11c)]=_0x4e9ab7[_0x1eb15a(0xc3)];const _0x8c4f96={};_0x8c4f96['description']=_0x4e9ab7['pJFXa'],_0x8c4f96['type']=_0x4e9ab7['CSssk'];const _0x47df57={};_0x47df57[_0x1eb15a(0x1c2)]=_0x4e9ab7[_0x1eb15a(0xd5)],_0x47df57['type']=_0x4e9ab7[_0x1eb15a(0xc3)];const _0x2fc92c={};_0x2fc92c[_0x1eb15a(0x1c2)]=_0x4e9ab7[_0x1eb15a(0x131)],_0x2fc92c[_0x1eb15a(0x11c)]=_0x4e9ab7['PTqqi'],_0x2fc92c[_0x1eb15a(0x1b5)]=![];const _0x2d0b3a={};return _0x2d0b3a['grid-name']=_0x3ce5fe,_0x2d0b3a[_0x1eb15a(0x1ca)]=_0x5f181b,_0x2d0b3a[_0x1eb15a(0x102)]=_0x4a7915,_0x2d0b3a['cloud-provider']=_0x176bbf,_0x2d0b3a[_0x1eb15a(0x152)]=_0x8c4f96,_0x2d0b3a['private-grid']=_0x47df57,_0x2d0b3a[_0x1eb15a(0x174)]=_0x2fc92c,_0x2a5c80[_0x1eb15a(0x19f)](_0x4dbd8d[_0x1eb15a(0xea)])[_0x1eb15a(0xca)](_0x2a52d1)[_0x1eb15a(0x198)](_0x2d0b3a)[_0x1eb15a(0xd6)](_0x4e9ab7[_0x1eb15a(0x122)])[_0x1eb15a(0xce)];}else _0x204fb5=_0x2e3ed0[_0x1e646d['gridProfile']];}if(_0x4e9ab7[_0x1eb15a(0x1eb)](_0x38d54d,![])&&_0x4e9ab7[_0x1eb15a(0x176)](_0x30ca7b,![])){if(_0x4e9ab7[_0x1eb15a(0x160)](_0x4e9ab7[_0x1eb15a(0x1cf)],_0x4e9ab7['xoZLV']))_0x14952e[_0x1eb15a(0x152)]=_0x456bff,_0x46c45a['cloudProvider']=_0xbfed4f,_0x101cfb[_0x1eb15a(0x175)]=!![];else{_0x4e9ab7[_0x1eb15a(0xcc)](_0x204fb5,undefined)&&(_0x4e9ab7[_0x1eb15a(0x109)](_0x4e9ab7[_0x1eb15a(0x112)],_0x4e9ab7[_0x1eb15a(0x112)])?_0x566453[_0x1eb15a(0x106)]=!![]:(_0x45da56=_0x4e9ab7[_0x1eb15a(0x153)],await _0x4e9ab7[_0x1eb15a(0x141)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7['UFtVT'],_0x4e9ab7[_0x1eb15a(0xf9)],_0x4e9ab7[_0x1eb15a(0x138)]),logger[_0x1eb15a(0x197)](_0x45da56),process[_0x1eb15a(0xe5)](0x1)));global_registry[_0x1eb15a(0x15e)]=_0x204fb5['id'],_0x45da56='Will\x20be\x20spawning\x20the\x20grid\x20'+_0x421e22+_0x1eb15a(0xef)+_0x204fb5[_0x1eb15a(0x14b)]+_0x1eb15a(0x1d2),logger[_0x1eb15a(0x14e)](_0x45da56);const _0x12cd1c={};_0x12cd1c[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x12cd1c[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x12cd1c),_0x1fbbfb=_0x204fb5[_0x1eb15a(0xc8)],_0x4dd671=_0x204fb5[_0x1eb15a(0x1ce)],_0x386c66=_0x204fb5[_0x1eb15a(0x152)],_0x445eb4=_0x204fb5['concurrency'],_0x3b30c0=_0x204fb5[_0x1eb15a(0x105)],_0x3c7e12=_0x204fb5[_0x1eb15a(0xf5)],_0xd6f39=_0x204fb5['securityGroups'],_0x12d00d=_0x204fb5[_0x1eb15a(0x199)],_0x6e7eae=_0x204fb5['s3bucket'],_0x5c251e=_0x204fb5[_0x1eb15a(0x140)],_0x4d9d6b=_0x204fb5[_0x1eb15a(0xad)],_0x3da2f5=_0x5c6778[_0x1eb15a(0x1a8)],_0xbef3c2=_0x5c6778[_0x1eb15a(0x1a6)],_0x3c7e12&&_0x4e9ab7[_0x1eb15a(0xff)](_0x3c7e12[_0x1eb15a(0x1af)],0x0)&&(_0x4e9ab7[_0x1eb15a(0x136)](_0x4e9ab7['uIGnC'],_0x4e9ab7[_0x1eb15a(0x117)])?_0x545223['info']('Found\x20VPC:\x20'+_0x19abb6+'\x20'):_0x3c7e12=null),_0x12d00d&&_0x4e9ab7['MvXjN'](_0x12d00d['length'],0x0)&&(_0x4e9ab7[_0x1eb15a(0xe1)](_0x4e9ab7['IkphZ'],_0x4e9ab7[_0x1eb15a(0x1cd)])?_0x12d00d=null:_0x2abf26=!![]),_0x4e9ab7[_0x1eb15a(0x1f4)](_0x204fb5[_0x1eb15a(0x181)],undefined)&&_0x204fb5[_0x1eb15a(0x181)]&&(_0x4e9ab7[_0x1eb15a(0xc5)](_0x4e9ab7[_0x1eb15a(0x1a2)],_0x4e9ab7[_0x1eb15a(0x1a2)])?_0xe6d78d[_0x1eb15a(0x164)]():global_registry[_0x1eb15a(0x106)]=!![]),_0x4e9ab7[_0x1eb15a(0x12a)](updateGlobalRegistryWithConfig,_0x1fbbfb,_0x4dd671,_0x386c66,_0x445eb4,_0x3b30c0,_0x6e7eae,_0x204fb5,_0x3da2f5,_0xbef3c2,_0x5c251e,_0x4d9d6b);}}else{if(_0x4e9ab7[_0x1eb15a(0xff)](_0x30ca7b,!![])){if(_0x4e9ab7[_0x1eb15a(0x144)](_0x4e9ab7[_0x1eb15a(0x15f)],_0x4e9ab7['uIEYT']))_0x20832a['gridProfile']=_0x5a2a37[_0x1eb15a(0x1d5)];else{_0x45da56=_0x1eb15a(0xb6)+_0x421e22,logger['info'](_0x45da56);const _0x1455a3={};_0x1455a3['type']=WS_EVENTS[_0x1eb15a(0x10f)],_0x1455a3['message']=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x1455a3),_0x445eb4=_0x204fb5['concurrency'],_0x3b30c0=_0x204fb5[_0x1eb15a(0x105)],_0x3c7e12=null,_0xd6f39=null,_0x12d00d=null,_0x6e7eae=_0x204fb5[_0x1eb15a(0x172)],_0x5c251e=_0x204fb5[_0x1eb15a(0x140)],_0x4d9d6b=_0x204fb5[_0x1eb15a(0xad)],_0x3da2f5=_0x5c6778[_0x1eb15a(0x1a8)],_0xbef3c2=_0x5c6778[_0x1eb15a(0x1a6)],_0x4e9ab7[_0x1eb15a(0x136)](_0x204fb5[_0x1eb15a(0x181)],undefined)&&_0x204fb5[_0x1eb15a(0x181)]&&(_0x4e9ab7['nUIRh'](_0x4e9ab7['wWcnG'],_0x4e9ab7['wWcnG'])?_0x4d1bd1[_0x1eb15a(0x197)](_0x1eb15a(0x1a3)+_0x5e7ff9+'\x20\x0a'+_0x228bac['stringify'](_0x49043a[_0x1eb15a(0x1d9)])):global_registry[_0x1eb15a(0x106)]=!![]),_0x4e9ab7[_0x1eb15a(0x177)](updateGlobalRegistryWithConfig,_0x1fbbfb,_0x4dd671,_0x386c66,_0x445eb4,_0x3b30c0,_0x6e7eae,_0x204fb5,_0x3da2f5,_0xbef3c2,_0x5c251e,_0x4d9d6b);}}else{if(_0x4e9ab7[_0x1eb15a(0xe8)](_0x4e9ab7[_0x1eb15a(0x15c)],_0x4e9ab7['bLsIE'])){const _0xf3cab2=_0x4e9ab7['trSnM']['split']('|');let _0x11bf7b=0x0;while(!![]){switch(_0xf3cab2[_0x11bf7b++]){case'0':_0x1e4f5b=_0x169fb7[_0x1eb15a(0x1a6)];continue;case'1':_0x32c880['info'](_0x32e804);continue;case'2':_0x5f1a47=_0x1eb15a(0xb6)+_0x5a30d6;continue;case'3':const _0x4843cc={};_0x4843cc[_0x1eb15a(0x11c)]=_0x366e11[_0x1eb15a(0x10f)],_0x4843cc[_0x1eb15a(0x158)]=_0x335a08,_0x362884[_0x1eb15a(0x100)](_0x1b3a58,_0x4843cc);continue;case'4':_0x51a51e=_0x2d225e[_0x1eb15a(0xeb)];continue;case'5':_0x176dbf=_0x5bd08c[_0x1eb15a(0x105)];continue;case'6':_0x4e9ab7[_0x1eb15a(0x109)](_0xe37171[_0x1eb15a(0x181)],_0x18d905)&&_0x899bbc[_0x1eb15a(0x181)]&&(_0x20fc7a[_0x1eb15a(0x106)]=!![]);continue;case'7':_0x4e9ab7[_0x1eb15a(0x12a)](_0x4a333c,_0x3f7dae,_0x5cfd14,_0x2ab831,_0xb0717,_0x53a783,_0x6248de,_0x4adbcb,_0x510d52,_0x1886aa,_0xee38f3,_0x101592);continue;case'8':_0x281635=null;continue;case'9':_0xd4ede2=_0x4149f6[_0x1eb15a(0xad)];continue;case'10':_0x4b828c=null;continue;case'11':_0x2073c6=_0x2ecc3b[_0x1eb15a(0x1a8)];continue;case'12':_0x36e633=null;continue;case'13':_0x527bfe=_0x4518f5[_0x1eb15a(0x172)];continue;case'14':_0xb156a3=_0x1ac28c[_0x1eb15a(0x140)];continue;}break;}}else{const _0x5a9beb=_0x4e9ab7['GaASA'][_0x1eb15a(0x142)]('|');let _0x722407=0x0;while(!![]){switch(_0x5a9beb[_0x722407++]){case'0':const _0x621f92={};_0x621f92[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x621f92[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x621f92);continue;case'1':global_registry[_0x1eb15a(0x17e)]=_0x386c66;continue;case'2':global_registry[_0x1eb15a(0x1ce)]=_0x4dd671;continue;case'3':global_registry[_0x1eb15a(0xc8)]=_0x1fbbfb;continue;case'4':global_registry['browserVersion']=_0x5c6778['browserVersion'];continue;case'5':_0x45da56=_0x1eb15a(0x1c4)+_0x421e22+_0x1eb15a(0x128)+_0x4dd671+'\x27';continue;case'6':const _0x7df28={};_0x7df28[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0xdd)],_0x7df28[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x133)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x7df28);continue;case'7':global_registry[_0x1eb15a(0x1a8)]=_0x5c6778[_0x1eb15a(0x1a8)];continue;case'8':logger[_0x1eb15a(0x14e)](_0x45da56);continue;}break;}}}}const _0x136799=await _0x4e9ab7[_0x1eb15a(0x168)](getCloudProviderObject,_0x1fbbfb,_0x4dd671,_0x421e22,_0x502ccc,webSocketUtils,_0x1e646d);_0x4e9ab7[_0x1eb15a(0x1df)](_0x1fbbfb,AZURE)&&_0x136799[_0x1eb15a(0x164)]();let _0x4b92b;if(_0x4e9ab7[_0x1eb15a(0xda)](_0x38d54d,![])){_0x45da56=_0x1eb15a(0xc7)+_0x386c66+').';const _0xcfcbe9={};_0xcfcbe9[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0xcfcbe9[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils['sendEventToBackend'](_0x502ccc,_0xcfcbe9),logger[_0x1eb15a(0x14e)](_0x45da56);const _0x523fa6=await _0x136799[_0x1eb15a(0x135)]();if(_0x523fa6){const _0x1f41eb={};_0x1f41eb[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x1f41eb[_0x1eb15a(0x158)]='Cluster\x20'+_0x4dd671+_0x1eb15a(0x1aa),webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x1f41eb,_0x4e9ab7[_0x1eb15a(0x1bc)]),logger['info'](_0x1eb15a(0x1f1)+_0x4dd671+_0x1eb15a(0x1aa)),_0x38d54d=!![];if(_0x4e9ab7[_0x1eb15a(0x1f5)](_0x30ca7b,!![]))throw new Error('Cluster\x20'+_0x4dd671+_0x1eb15a(0x120));}else{const _0x3ba1b5={};_0x3ba1b5[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x3ba1b5['message']=_0x4e9ab7[_0x1eb15a(0xdb)],webSocketUtils['sendEventToBackend'](_0x502ccc,_0x3ba1b5),logger['info'](_0x4e9ab7['dXThF']);const _0xad6cd9=_0x4e9ab7[_0x1eb15a(0xb9)](_0x3c7e12,null)&&_0x4e9ab7['edKUo'](_0x3c7e12,undefined),_0x2b643e=_0x4e9ab7[_0x1eb15a(0x13d)](_0x12d00d,null)&&_0x4e9ab7[_0x1eb15a(0x1d3)](_0x12d00d,undefined)&&_0x4e9ab7['wGCms'](_0x12d00d[_0x1eb15a(0x1af)],0x0);if(_0xad6cd9){_0x4e9ab7[_0x1eb15a(0xac)](_0x2b643e,![])&&(_0x45da56=_0x4e9ab7[_0x1eb15a(0x154)],await _0x4e9ab7[_0x1eb15a(0x1ec)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7['UFtVT'],_0x4e9ab7[_0x1eb15a(0x180)],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process['exit'](0x1));const _0x458804=await _0x136799['isVPCPresent'](_0x3c7e12);_0x4e9ab7[_0x1eb15a(0x10b)](_0x458804,![])?(_0x45da56=_0x4e9ab7[_0x1eb15a(0xfe)],await _0x4e9ab7['cZNav'](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes['ERROR'],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x182)],_0x4e9ab7['izYKj']),logger[_0x1eb15a(0x197)](_0x45da56),process['exit'](0x1)):logger[_0x1eb15a(0x14e)]('Found\x20VPC:\x20'+_0x3c7e12+'\x20');const _0x5e3692=await _0x136799[_0x1eb15a(0x19a)](_0x12d00d,_0x3c7e12);_0x4e9ab7[_0x1eb15a(0x1e4)](_0x5e3692[0x0],![])?(_0x45da56=_0x1eb15a(0x124)+JSON['stringify'](_0x5e3692[0x1])+_0x1eb15a(0x183)+_0x3c7e12+_0x1eb15a(0x1b6),await _0x4e9ab7[_0x1eb15a(0xb4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x1c3)],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process[_0x1eb15a(0xe5)](0x1)):logger['info']('Found\x20Subnets:\x20'+JSON['stringify'](_0x12d00d)+'\x20'),await _0x136799[_0x1eb15a(0x19b)](_0x3c7e12,_0x12d00d);}else{const _0x69ecd3=_0x4e9ab7[_0x1eb15a(0xc6)][_0x1eb15a(0x142)]('|');let _0x517e35=0x0;while(!![]){switch(_0x69ecd3[_0x517e35++]){case'0':const _0x2832a7={};_0x2832a7[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x2832a7[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x139)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x2832a7);continue;case'1':await _0x136799[_0x1eb15a(0x19b)](_0x3c7e12,_0x12d00d);continue;case'2':logger[_0x1eb15a(0x14e)](_0x4e9ab7['NWHOQ']);continue;case'3':const _0x506f70={};_0x506f70[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x506f70[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x195)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x506f70);continue;case'4':logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0x139)]);continue;}break;}}}}_0x38d54d&&_0x4e9ab7[_0x1eb15a(0xe0)](_0x1fbbfb,AZURE)&&(await _0x136799[_0x1eb15a(0xd4)](),await _0x136799[_0x1eb15a(0x110)]());const [_0x51b6da,_0x24bead,_0x38b1ec,_0x4b7a6e,_0x39b946,_0x3abcea]=await _0x4e9ab7[_0x1eb15a(0x1a4)](createK8sClient,_0x136799,_0x1e646d[_0x1eb15a(0x18b)]);_0x4e9ab7[_0x1eb15a(0x119)](_0x38d54d,![])&&_0x4e9ab7[_0x1eb15a(0xbe)](_0x1fbbfb,AWS)&&(global_registry[_0x1eb15a(0x191)]=!![],_0x4b92b=await _0x136799[_0x1eb15a(0x137)](_0x51b6da,_0x1e646d));try{_0x3dea52=_0x4e9ab7[_0x1eb15a(0x127)](kebabCase,_0x421e22),logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0x173)]);const _0x4c074c={};_0x4c074c[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x4c074c[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0x173)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x4c074c);if(_0x4e9ab7[_0x1eb15a(0xc1)](_0x3dea52,_0x4e9ab7[_0x1eb15a(0x1f0)])){const _0x4add87={};_0x4add87['createdBy']=_0x4e9ab7[_0x1eb15a(0xf7)],_0x4add87[_0x1eb15a(0xdc)]=_0x4e9ab7[_0x1eb15a(0xf7)];const _0x564fc3={};_0x564fc3[_0x1eb15a(0x14b)]=_0x3dea52,_0x564fc3[_0x1eb15a(0x193)]=_0x4add87;const _0x3fb259={};_0x3fb259['metadata']=_0x564fc3;const _0x504909=_0x3fb259,_0xdfff54={};_0xdfff54[_0x1eb15a(0x159)]=_0x504909,await _0x51b6da['createNamespace'](_0xdfff54),logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0x16a)]);}const _0x2a648d={};_0x2a648d[_0x1eb15a(0x11c)]=WS_EVENTS['LOG'],_0x2a648d[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0xba)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x2a648d);const _0xf4c0ae={};_0xf4c0ae['type']=WS_EVENTS[_0x1eb15a(0x10f)],_0xf4c0ae[_0x1eb15a(0x158)]=_0x4e9ab7[_0x1eb15a(0xb5)],webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0xf4c0ae),logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0x1a9)]);let _0x42b287={};_0x4e9ab7[_0x1eb15a(0x1a7)](_0x1fbbfb,AZURE)&&(_0x42b287={'clientId':await _0x136799[_0x1eb15a(0x1b2)]('turboscale-managed-identity-'+_0x4dd671)});await _0x4e9ab7[_0x1eb15a(0xde)](addGridComponents,_0x51b6da,_0x24bead,_0x38b1ec,_0x4b7a6e,_0x3dea52,_0x4dd671,_0x4b92b,_0x39b946,_0x3abcea,_0x42b287),_0x45da56=_0x4e9ab7[_0x1eb15a(0x103)],logger['info'](_0x45da56);const _0x91c01b={};_0x91c01b[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x91c01b[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x91c01b),_0x45da56=_0x4e9ab7[_0x1eb15a(0x132)],logger[_0x1eb15a(0x14e)](_0x45da56);const _0x5027ef={};_0x5027ef[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x5027ef[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils['sendEventToBackend'](_0x502ccc,_0x5027ef),await _0x4e9ab7[_0x1eb15a(0x1be)](waitForDeployment,_0x24bead,_0x3dea52,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x2f22c0=await _0x4e9ab7[_0x1eb15a(0x1a4)](getNamespaceUID,_0x51b6da,_0x3dea52),_0x8c0045=global_registry[_0x1eb15a(0x106)]?_0x4e9ab7[_0x1eb15a(0x1e0)]:_0x4e9ab7['TPNEx'],_0xdc65f2={};_0xdc65f2[_0x1eb15a(0x14b)]=_0x8c0045,_0xdc65f2[_0x1eb15a(0x156)]=_0x4e9ab7[_0x1eb15a(0x14f)];const _0x1ab2e6=await _0x51b6da[_0x1eb15a(0xbb)](_0xdc65f2);let _0x413f09=_0x136799['getGridHostname'](_0x1ab2e6)+'/'+_0x3dea52,_0x3dc2d7=_0x4e9ab7[_0x1eb15a(0xb7)];try{const _0x19b0ae=_0x1eb15a(0x1e5)+AG_API_URL+_0x1eb15a(0xf1)+_0x2f22c0,_0x169df3=await _0x4e9ab7['bxFBA'](got,_0x19b0ae,_0x28b9b4);(_0x4e9ab7['YvDEB'](_0x169df3,null)||_0x4e9ab7[_0x1eb15a(0xff)](_0x169df3,undefined))&&(_0x45da56=_0x4e9ab7['EiApa'],await _0x4e9ab7['EXcCh'](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0xd8)],_0x4e9ab7[_0x1eb15a(0x138)]),logger[_0x1eb15a(0x197)](_0x45da56),process[_0x1eb15a(0xe5)](0x1));_0x4e9ab7[_0x1eb15a(0xe8)](_0x169df3[_0x1eb15a(0x1ae)],0x191)&&(_0x45da56=_0x4e9ab7[_0x1eb15a(0x1c0)],await _0x4e9ab7[_0x1eb15a(0x192)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0x13b)],_0x4e9ab7[_0x1eb15a(0x138)]),logger[_0x1eb15a(0x197)](_0x45da56),process[_0x1eb15a(0xe5)](0x1));_0x4e9ab7[_0x1eb15a(0x1ea)](_0x169df3['statusCode'],0xc8)&&(_0x45da56=_0x1eb15a(0x19c)+JSON[_0x1eb15a(0x125)](_0x169df3),await _0x4e9ab7[_0x1eb15a(0xe4)](reportToGalactusAndSendToEDS,_0x1e646d,_0x502ccc,_0x45da56,messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1ef)],_0x4e9ab7[_0x1eb15a(0xcd)],_0x4e9ab7[_0x1eb15a(0x138)]),logger['error'](_0x45da56),process[_0x1eb15a(0xe5)](0x1));const _0x38865a=JSON[_0x1eb15a(0xab)](_0x169df3[_0x1eb15a(0x159)]);_0x38865a[_0x1eb15a(0x15b)]&&(_0x413f09=_0x38865a[_0x1eb15a(0x15b)],_0x3dc2d7=_0x4e9ab7['xMRKJ']),global_registry['isPrivateGrid']&&(_0x3dc2d7=_0x4e9ab7['tCnXV']);}catch(_0x596067){}_0x45da56=_0x1eb15a(0x1de)+_0x413f09+'\x20',logger['info'](_0x45da56);const _0x39a864={};_0x39a864[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x39a864[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x39a864),_0x45da56='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x3dc2d7+_0x1eb15a(0x17d)+_0x413f09+_0x1eb15a(0xd3),logger[_0x1eb15a(0x14e)](_0x45da56);const _0xc1fe6c={};_0xc1fe6c[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0xc1fe6c[_0x1eb15a(0x158)]=_0x45da56,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0xc1fe6c);const _0x2f390f={};_0x2f390f[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x101)],_0x2f390f['message']=_0x1eb15a(0xd9)+_0x413f09,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x2f390f),await webSocketUtils[_0x1eb15a(0x146)](0x7d0);}catch(_0x2c28b5){logger[_0x1eb15a(0x197)](_0x1eb15a(0xec)+_0x2c28b5+'\x20\x0a'+JSON[_0x1eb15a(0x125)](_0x2c28b5[_0x1eb15a(0x1d9)]));if(_0x4e9ab7[_0x1eb15a(0x1e1)](_0x38d54d,![]))try{logger[_0x1eb15a(0x14e)](_0x4e9ab7[_0x1eb15a(0xee)]),await _0x4e9ab7[_0x1eb15a(0x171)](removeGridComponents,_0x51b6da,_0x24bead,_0x38b1ec,_0x4b7a6e,_0x3dea52),await _0x136799[_0x1eb15a(0x1ed)](_0x51b6da,global_registry[_0x1eb15a(0x17e)]);}catch(_0x45ef40){logger[_0x1eb15a(0x197)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x45ef40+'\x20\x0a'+JSON[_0x1eb15a(0x125)](_0x45ef40[_0x1eb15a(0x1d9)]));}throw _0x2c28b5;}}catch(_0x1bec1f){const _0xb905c6='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x1bec1f+'\x20\x0a'+JSON[_0x1eb15a(0x125)](_0x1bec1f['stack']);if(_0x502ccc){const _0x3a8454={};_0x3a8454[_0x1eb15a(0x11c)]=WS_EVENTS[_0x1eb15a(0x10f)],_0x3a8454[_0x1eb15a(0x158)]=_0xb905c6,webSocketUtils[_0x1eb15a(0x100)](_0x502ccc,_0x3a8454,_0x4e9ab7[_0x1eb15a(0x138)],!![]);}await webSocketUtils[_0x1eb15a(0x146)](0x7d0);const _0x2cf676={};_0x2cf676[_0x1eb15a(0x197)]=_0xb905c6,await _0x4e9ab7['ISzzb'](sendInstrumentationEvent,_0x1e646d,_0x4e9ab7[_0x1eb15a(0x1ef)],messageTypes[_0x1eb15a(0x12e)],_0x4e9ab7[_0x1eb15a(0x1f2)],_0x2cf676,_0x1e646d),logger['error'](_0xb905c6);}process[_0x1eb15a(0xe5)](0x0);};
1
+ const a9_0x46d1ad=a9_0x26ee;(function(_0x5610f5,_0xa5e664){const _0x2dea46=a9_0x26ee,_0x3a9543=_0x5610f5();while(!![]){try{const _0x388d94=-parseInt(_0x2dea46(0xfa))/0x1+-parseInt(_0x2dea46(0x12e))/0x2+parseInt(_0x2dea46(0x1fe))/0x3*(parseInt(_0x2dea46(0x1e4))/0x4)+parseInt(_0x2dea46(0x1b6))/0x5*(parseInt(_0x2dea46(0x147))/0x6)+parseInt(_0x2dea46(0x188))/0x7+parseInt(_0x2dea46(0x18a))/0x8+-parseInt(_0x2dea46(0x223))/0x9;if(_0x388d94===_0xa5e664)break;else _0x3a9543['push'](_0x3a9543['shift']());}catch(_0x1632d7){_0x3a9543['push'](_0x3a9543['shift']());}}}(a9_0x4e49,0x3b532));function a9_0x4e49(){const _0x3a55e7=['381308ZFvAvh','gridProfile','ACftm','yDmYi','Grid\x20profile\x20fetched\x20from\x20backend','get-grid-url-auth-failed','UBuKU','createNamespace','createOtherResources','VVyPd','WebSocket','yFyMs','JDFuL','message','WMWQG','VHNIY','Deleting\x20the\x20CloudFormation\x20Stacks','Creating\x20namespace','jtZhz','https','PbkrD','\x27\x20grid\x20profile','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','UcAGq','sendEventToBackend','738GHzVgJ','ddxON','ingress-nginx','OtQiw','rZhIs','fmGpr','zgOcZ','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','AxqMv','AbKGK','Create\x20a\x20private/public\x20grid.','VEzuZ','eSgrP','3|2|4|1|0','eslWa','qYUZI','ixEHu','uOMyd','cxNgs','bsRiA','RjnCa','XCwcP','MuoSW','getGridHostname','body','create-grid-checks-non-200','AhqrM','gridName','TOqvL','string','stack','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','handler','pre-spawned-subnets-not-selected','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','fxxlx','default','JlwiS','connectionTimeout','tRzXs','subnets','Grid\x20can\x20be\x20accessed\x20at:\x20','/packages/cli/get-grid-url?gridIdentifier=','ERROR','MVAFC','CGxZO','VYXWa','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','grid','cluster-name','instanceType','grid-name','JuDzy','sMoET','readNamespacedService','namespace','create-grid-called','UBmdU','EczER','MBuDy','paOcg','description','\x20are\x20not\x20present\x20in\x20VPC:\x20','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','minNodes','1805594xBCFVW','rPuXJ','1997216mGXCHi','kWWrH','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','RKwQP','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','cXqJp','ywhBg','WbmTu','UzHLw','gJiHd','managedBy','length','isVPCPresent','Browserstack','Namespace\x20created','Found\x20Subnets:\x20','PijzG','kwjRa','name','../../utils/webSocketUtils','APIeI','includes','../../utils/utilityMethods','parse','uuid','BElBd','QxKOF','s3bucket','alreadyPresent','ESIjx','\x20using\x20\x27','newCluster','Found\x20VPC:\x20','dLgzD','pbzTX','split','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','wPLgX','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','Cluster\x20','eexEX','true','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','pMLUI','14085VrKJXa','OaGej','JXFQj','KroDT','isNewAWSCluster','error','zEXoU','metadata','isPrivateGrid','ZVxmj','UlwDY','aKlIx','VjRku','info','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','<PasswordPlaceholder>','AWjMu','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','CXGFS','OjsPz','qSdck','EdgBB','mpRMU','bstackUsername','desc','clusterRegion','tKcxO','sendResourceDataToHST','create-grid-checks-null-response','cloud-provider','qJehA','esipw','QYmJL','nqxJB','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.','xdrEs','Subnets:\x20','Klwlg','bTJvz','wFiRD','zSOso','YhcHF','debug','annotations','stringify','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20','627604nfkFQO','QhACi','DlTpr','EELBu','type','CLI_RUN_FINISHED','epilogue','browserVersion','URDRV','private-grid','privateGrid','bblFF','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','Wwblf','route53','get-grid-url-null-response','gVyaC','zfXtX','NcJNB','get-grid-url-non-200','vpc','exit','Cluster:\x20','TpzFy','\x20in\x20existing\x20cluster\x20\x27','skip-tls-cert-verify','3OHJieF','delay','ajZZJ','cxqZt','jPGCg','argv','WZLlX','GKMiy','eVmIE','../../utils/instrumentationUtils','https://','cloudProvider','Skip\x20insecure\x20cert\x20verification.','private-ingress-nginx-controller','BIuGB','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','GqwiO','cPSyY','maxNodes','4|8|3|0|7|5|2|1|6','setupNewCluster','SPQcQ','cyOoe','ezJOv','CLI\x20run\x20started','gridProfiles','../../config/constants','lJgHj','AiuIt','gOehs','hBmJO','RlkSA','Hnjak','concurrency','2|10|1|5|0|14|7|9|3|6|12|4|8|11|13','../../utils/gridComponents','createdBy','3514212QVNMnm','eEJJE','awVDs','gijYN','statusCode','TEeHt','xpxmu','xconk','fPocS','RGEKU','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','tbnnW','GsLJj','juVyg','toLowerCase','ZlNIv','oYWxt','MUXXq','rPxLw','bstackAccesskey','pre-spawned-invalid-subnets','UVRmd','region','/wd/hub','EpTSF','jLxwM','cgUAb','VnYIQ','MSTFx','brQJa','grid-profile','QAxTl','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','iMQTG','186870mpSXNz','bVGQl','DdsUM','../../utils/createk8sClient','aPajm','lUgfd','ZjaMz','password','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','replace','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','sXyvh','HBhIM','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','INFO','ORdRS','Cluster\x20created\x20successfully','boolean','isClusterPresent','Spawning\x20the\x20grid\x20','username','Will\x20be\x20spawning\x20the\x20grid\x20','../../cloudproviders/utils','GbvMK','snZqG','HsmUJ','JRcvP','got','QTpld','IkJTm','xFtqo','options','help','YnLEa','create-grid-checks-invalid-profile','clusterName','addListeners','hubVersion','CLI_RUN_STARTED','rdMVD','Spawning\x20Grid\x20on\x20the\x20Cluster','CLI\x20run\x20finished:\x20','JRqlR','BJZso','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','create','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','LOG','uqRKU','RngUh','<UsernamePlaceholder>','aTOub'];a9_0x4e49=function(){return _0x3a55e7;};return a9_0x4e49();}const fs=require('fs'),ws=require('ws'),ReconnectingWebSocket=require('reconnecting-websocket'),got=require(a9_0x46d1ad(0x115)),{v4:uuidv4}=require(a9_0x46d1ad(0x1a2)),webSocketUtils=require(a9_0x46d1ad(0x19d)),{logger}=require('../../config/logger'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment}=require(a9_0x46d1ad(0x1a0)),{getCloudProviderObject}=require(a9_0x46d1ad(0x110)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x46d1ad(0x218)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a9_0x46d1ad(0x221)),{createK8sClient}=require(a9_0x46d1ad(0xfd)),{sendInstrumentationEvent}=require(a9_0x46d1ad(0x207));function a9_0x26ee(_0x5556c5,_0x26dba5){const _0x4e49c2=a9_0x4e49();return a9_0x26ee=function(_0x26eedf,_0x144b7c){_0x26eedf=_0x26eedf-0xde;let _0x1271ea=_0x4e49c2[_0x26eedf];return _0x1271ea;},a9_0x26ee(_0x5556c5,_0x26dba5);}exports['command']=a9_0x46d1ad(0x177),exports[a9_0x46d1ad(0x1ce)]='Create\x20a\x20new\x20Automation\x20grid.',exports['builder']=function(_0x59779f){const _0xb428ba=a9_0x46d1ad,_0x65d4c7={};_0x65d4c7[_0xb428ba(0x163)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x65d4c7['QxKOF']='string',_0x65d4c7[_0xb428ba(0x21b)]='Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.',_0x65d4c7[_0xb428ba(0x1c6)]=_0xb428ba(0x20d),_0x65d4c7[_0xb428ba(0xe2)]=_0xb428ba(0x1c4),_0x65d4c7['RGEKU']=_0xb428ba(0xf7),_0x65d4c7['lJgHj']='Create\x20a\x20private/public\x20grid.',_0x65d4c7['Klwlg']=_0xb428ba(0x20a),_0x65d4c7[_0xb428ba(0x1f4)]=_0xb428ba(0x10b),_0x65d4c7[_0xb428ba(0xf6)]=_0xb428ba(0x11a);const _0x271aa9=_0x65d4c7,_0x2ce00a={};_0x2ce00a[_0xb428ba(0x184)]=_0x271aa9[_0xb428ba(0x163)],_0x2ce00a[_0xb428ba(0x1e8)]=_0x271aa9['QxKOF'];const _0x515a32={};_0x515a32['description']=_0x271aa9['gOehs'],_0x515a32[_0xb428ba(0x1e8)]=_0x271aa9[_0xb428ba(0x1a4)];const _0x42393f={};_0x42393f[_0xb428ba(0x184)]=_0x271aa9['AWjMu'],_0x42393f[_0xb428ba(0x1e8)]=_0x271aa9[_0xb428ba(0x1a4)];const _0x198864={};_0x198864[_0xb428ba(0x184)]=_0x271aa9[_0xb428ba(0xe2)],_0x198864['type']=_0x271aa9['QxKOF'];const _0x142c22={};_0x142c22[_0xb428ba(0x184)]=_0x271aa9[_0xb428ba(0xe0)],_0x142c22['type']=_0x271aa9['QxKOF'];const _0x5893bb={};_0x5893bb['description']=_0x271aa9[_0xb428ba(0x219)],_0x5893bb[_0xb428ba(0x1e8)]=_0x271aa9[_0xb428ba(0x1a4)];const _0x2266b0={};_0x2266b0[_0xb428ba(0x184)]=_0x271aa9[_0xb428ba(0x1db)],_0x2266b0[_0xb428ba(0x1e8)]=_0x271aa9[_0xb428ba(0x1f4)],_0x2266b0[_0xb428ba(0x16b)]=![];const _0x1b452c={};return _0x1b452c[_0xb428ba(0x17a)]=_0x2ce00a,_0x1b452c[_0xb428ba(0xf5)]=_0x515a32,_0x1b452c[_0xb428ba(0x178)]=_0x42393f,_0x1b452c[_0xb428ba(0x1d3)]=_0x198864,_0x1b452c[_0xb428ba(0xed)]=_0x142c22,_0x1b452c[_0xb428ba(0x1ed)]=_0x5893bb,_0x1b452c['skip-tls-cert-verify']=_0x2266b0,_0x59779f['usage'](HELP_HEADER_MESSAGE[_0xb428ba(0x127)])[_0xb428ba(0x1ea)](HELP_FOOTER_MESSAGE)[_0xb428ba(0x119)](_0x1b452c)[_0xb428ba(0x11a)](_0x271aa9[_0xb428ba(0xf6)])[_0xb428ba(0x203)];},exports[a9_0x46d1ad(0x167)]=async function(_0x1c27c0){const _0x36c5bc=a9_0x46d1ad,_0x37c55c={'JRqlR':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','EpTSF':_0x36c5bc(0x164),'JieHf':_0x36c5bc(0x126),'cyOoe':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','CGxZO':_0x36c5bc(0x1c4),'DlTpr':_0x36c5bc(0xf7),'RGlDD':_0x36c5bc(0x151),'TpzFy':_0x36c5bc(0x20a),'JbMQn':_0x36c5bc(0x10b),'QTpld':_0x36c5bc(0x11a),'xpxmu':_0x36c5bc(0x1bb),'zgOcZ':_0x36c5bc(0x220),'gijYN':function(_0x3e22dd,_0x1c6a6a){return _0x3e22dd!==_0x1c6a6a;},'UBuKU':function(_0xc8f6e3,_0x427cea,_0x166de3,_0x2a85c8,_0x3d5c06,_0x53d400,_0x4a69e0,_0x57503e,_0x2ae519,_0x57a314,_0x50731c,_0x56b1e5){return _0xc8f6e3(_0x427cea,_0x166de3,_0x2a85c8,_0x3d5c06,_0x53d400,_0x4a69e0,_0x57503e,_0x2ae519,_0x57a314,_0x50731c,_0x56b1e5);},'juVyg':'http','VnYIQ':'1|4|6|2|5|8|0|7|3','bTJvz':_0x36c5bc(0x216),'brQJa':_0x36c5bc(0x141),'AxqMv':'warn','MSTFx':function(_0x2a3ad1,_0x3d43af){return _0x2a3ad1===_0x3d43af;},'rgisx':function(_0xbcf7e8){return _0xbcf7e8();},'iMQTG':function(_0x1e2891){return _0x1e2891();},'BJZso':'DUtKy','QJBJD':_0x36c5bc(0x1c9),'aTOub':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','JDFuL':function(_0x40b584,_0x5789d1,_0x6ce225,_0x257e97,_0x2f3d96,_0x3328b7,_0x57393f){return _0x40b584(_0x5789d1,_0x6ce225,_0x257e97,_0x2f3d96,_0x3328b7,_0x57393f);},'PijzG':_0x36c5bc(0x17f),'jPGCg':'init-not-called','sGkwf':function(_0x34d5fd,_0x325d50,_0x42451f,_0xf2f2da,_0x1cf64c,_0x3715e8,_0x29bb5e){return _0x34d5fd(_0x325d50,_0x42451f,_0xf2f2da,_0x1cf64c,_0x3715e8,_0x29bb5e);},'xFtqo':function(_0x1a8a25){return _0x1a8a25();},'ESIjx':_0x36c5bc(0x12c),'XCwcP':_0x36c5bc(0x1c5),'paOcg':'Adding\x20Websocket\x20listeners','jtZhz':_0x36c5bc(0x17b),'MUXXq':function(_0x2f56ad,_0xb11dcb){return _0x2f56ad!==_0xb11dcb;},'eexEX':_0x36c5bc(0x16c),'GKMiy':_0x36c5bc(0x14e),'JXFQj':function(_0x2b17a7,_0x116409,_0xe0d6ec,_0x1fbe6d,_0x19a6d2,_0xfdd8fa,_0x2e9a40,_0x50a8c1){return _0x2b17a7(_0x116409,_0xe0d6ec,_0x1fbe6d,_0x19a6d2,_0xfdd8fa,_0x2e9a40,_0x50a8c1);},'zfXtX':'prespawned-cluster-args-not-passed','CXGFS':function(_0x1dd7c4,_0x39cda1){return _0x1dd7c4===_0x39cda1;},'bsRiA':_0x36c5bc(0x109),'OaGej':_0x36c5bc(0x144),'sXyvh':'non-aws-azure-cluster','UcAGq':function(_0x21ea6e,_0x4e5abd){return _0x21ea6e===_0x4e5abd;},'IkJTm':_0x36c5bc(0x1b3),'EELBu':'dTxJQ','rPuXJ':_0x36c5bc(0x1bc),'AiuIt':_0x36c5bc(0xec),'YhcHF':'iRlPO','QYmJL':_0x36c5bc(0x1d0),'TEeHt':_0x36c5bc(0x112),'EBZAk':_0x36c5bc(0x1f6),'BIuGB':'GET','wwphd':function(_0x4cea86,_0x10e764,_0x2612f4){return _0x4cea86(_0x10e764,_0x2612f4);},'gJiHd':function(_0x52eeea,_0x4328fb){return _0x52eeea===_0x4328fb;},'OtQiw':'kbnbL','cxNgs':function(_0xe32c41,_0xf9c9bc){return _0xe32c41===_0xf9c9bc;},'YnLEa':function(_0x4dba36,_0x40247c){return _0x4dba36===_0x40247c;},'eEJJE':'tJLFS','cGDhd':_0x36c5bc(0x1e5),'cXzmc':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','HqckP':_0x36c5bc(0x1d2),'ACftm':function(_0xab0118,_0x446e69){return _0xab0118!==_0x446e69;},'URvRM':_0x36c5bc(0xdf),'UzHLw':'ebuhA','epWoa':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','SPQcQ':function(_0x4fd268,_0x5bdde6,_0x4d3f58,_0x54423f,_0x14a933,_0x4d091a,_0x1a3360,_0x34bbf2){return _0x4fd268(_0x5bdde6,_0x4d3f58,_0x54423f,_0x14a933,_0x4d091a,_0x1a3360,_0x34bbf2);},'rZhIs':'create-grid-checks-auth-failed','qYUZI':function(_0x3eb846,_0x18fc22){return _0x3eb846!==_0x18fc22;},'GsLJj':_0x36c5bc(0x17c),'hBmJO':_0x36c5bc(0x160),'WbmTu':_0x36c5bc(0x132),'KroDT':function(_0x2e2629,_0x1d5a62){return _0x2e2629===_0x1d5a62;},'mpRMU':_0x36c5bc(0x175),'UBmdU':function(_0x15ef5f,_0x1094a8,_0x48d5b3,_0xc12ffd,_0x55f2fd,_0x3b575d,_0x3be3a5,_0x4fd40f){return _0x15ef5f(_0x1094a8,_0x48d5b3,_0xc12ffd,_0x55f2fd,_0x3b575d,_0x3be3a5,_0x4fd40f);},'MVAFC':'create-grid-checks-grid-already-exists','ZVxmj':_0x36c5bc(0x1c2),'RngUh':'kHmJz','yFyMs':function(_0x1edf68,_0x3449ea){return _0x1edf68===_0x3449ea;},'GqwiO':_0x36c5bc(0x12a),'APIeI':_0x36c5bc(0xfc),'UlwDY':function(_0x3b3971,_0xbffde4){return _0x3b3971===_0xbffde4;},'ddxON':function(_0x2f49ea,_0x370b5f){return _0x2f49ea===_0x370b5f;},'cXqJp':'XLGKd','URDRV':'JPLsl','WZLlX':_0x36c5bc(0x169),'kwjRa':function(_0x1a49c9,_0x364c1f,_0x16814f,_0x42f2be,_0xa1b206,_0xb2d780,_0x15fe2c,_0x35e1f8){return _0x1a49c9(_0x364c1f,_0x16814f,_0x42f2be,_0xa1b206,_0xb2d780,_0x15fe2c,_0x35e1f8);},'bOQMI':_0x36c5bc(0x11c),'sDfyC':_0x36c5bc(0x13c),'BElBd':'nuTTG','MuoSW':function(_0x330c5b,_0x5bb250){return _0x330c5b!==_0x5bb250;},'EdgBB':_0x36c5bc(0x200),'ZjaMz':_0x36c5bc(0x131),'eSgrP':_0x36c5bc(0xe7),'xconk':_0x36c5bc(0x13d),'AbKGK':function(_0x2b4bff,_0x2f00c5){return _0x2b4bff!==_0x2f00c5;},'xdrEs':function(_0x4e1d0e,_0x4d94bf){return _0x4e1d0e!==_0x4d94bf;},'HsmUJ':'GGBxI','cxqZt':function(_0x4bd9c8,_0x304166){return _0x4bd9c8===_0x304166;},'JRcvP':_0x36c5bc(0x21e),'ZlNIv':_0x36c5bc(0x1d4),'aKlIx':_0x36c5bc(0x211),'rdMVD':function(_0x4fe422,_0x1fca6f){return _0x4fe422!==_0x1fca6f;},'tRzXs':function(_0x51bc83,_0x3c2356){return _0x51bc83===_0x3c2356;},'RjnCa':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','PbkrD':function(_0x24b9ba,_0xcb9c58){return _0x24b9ba!=_0xcb9c58;},'lDwsj':function(_0x3259eb,_0x2f6011){return _0x3259eb!=_0x2f6011;},'esipw':function(_0x178cd1,_0x58ffd5){return _0x178cd1!==_0x58ffd5;},'zSOso':function(_0x1e5bed,_0x4c5fd1){return _0x1e5bed>_0x4c5fd1;},'wPLgX':_0x36c5bc(0xe1),'GbvMK':function(_0x5eaf00,_0x2cd15e,_0x3ba5fc,_0x10170e,_0x1e61bb,_0xe79032,_0x546717,_0x316bb9){return _0x5eaf00(_0x2cd15e,_0x3ba5fc,_0x10170e,_0x1e61bb,_0xe79032,_0x546717,_0x316bb9);},'RKwQP':_0x36c5bc(0x168),'ixEHu':_0x36c5bc(0x18c),'nqxJB':'pre-spawned-invalid-vpc','kWWrH':_0x36c5bc(0xeb),'ozVtt':_0x36c5bc(0x154),'dLgzD':_0x36c5bc(0x10a),'cPSyY':_0x36c5bc(0x1d8),'bVGQl':function(_0x49429a,_0x332785){return _0x49429a===_0x332785;},'uOMyd':function(_0x1f1f2b,_0xf9a9cc,_0x41b504){return _0x1f1f2b(_0xf9a9cc,_0x41b504);},'aPajm':function(_0x5e951a,_0x411f7c){return _0x5e951a===_0x411f7c;},'pbzTX':function(_0x57bf07,_0xa6ee0e){return _0x57bf07(_0xa6ee0e);},'fxxlx':_0x36c5bc(0x13f),'eVmIE':function(_0x7c16f1,_0xbd2886){return _0x7c16f1!==_0xbd2886;},'SzZec':'default','lUgfd':_0x36c5bc(0x197),'ywhBg':'Namespace\x20Created','UsvII':_0x36c5bc(0x198),'MBuDy':'Spawning\x20grid\x20on\x20to\x20the\x20cluster','qSdck':_0x36c5bc(0x122),'bblFF':function(_0xfe0f0,_0x5313be,_0x317922,_0x46676f,_0xa01aa2,_0x506dd8,_0x52d753,_0xc681bd,_0x5baeb0,_0x2201e0,_0x544c66){return _0xfe0f0(_0x5313be,_0x317922,_0x46676f,_0xa01aa2,_0x506dd8,_0x52d753,_0xc681bd,_0x5baeb0,_0x2201e0,_0x544c66);},'cgUAb':'Grid\x20spawned\x20on\x20the\x20cluster','VEzuZ':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Wwblf':function(_0x43aac8,_0x33ac9d,_0x1bbb07,_0x3b4952,_0x4552f9){return _0x43aac8(_0x33ac9d,_0x1bbb07,_0x3b4952,_0x4552f9);},'fmGpr':_0x36c5bc(0x20b),'pMLUI':'ingress-nginx-controller','HBhIM':_0x36c5bc(0x149),'EczER':_0x36c5bc(0x18e),'RlkSA':function(_0x5a5d66,_0x2445d8,_0x5efb99,_0x49a37c,_0x4d5035,_0x1eda30,_0x11b5e2,_0xd00090){return _0x5a5d66(_0x2445d8,_0x5efb99,_0x49a37c,_0x4d5035,_0x1eda30,_0x11b5e2,_0xd00090);},'wFiRD':_0x36c5bc(0x1f3),'ezJOv':_0x36c5bc(0x1c7),'ySAED':_0x36c5bc(0x133),'awVDs':function(_0xb58467,_0x4f3f33){return _0xb58467!==_0x4f3f33;},'eslWa':_0x36c5bc(0x1f7),'jLxwM':_0x36c5bc(0x13e),'rPxLw':function(_0xf997db,_0x20182a,_0x4076e5,_0x4f0e78,_0x23513c,_0x35c15e){return _0xf997db(_0x20182a,_0x4076e5,_0x4f0e78,_0x23513c,_0x35c15e);},'VVyPd':function(_0xe393c3,_0x34c40e,_0xaa8155,_0x58ccbb,_0x36205a,_0xa0ec98,_0x5646f0){return _0xe393c3(_0x34c40e,_0xaa8155,_0x58ccbb,_0x36205a,_0xa0ec98,_0x5646f0);},'AhqrM':'grid-spawning-failed'};let _0x592cda=![],_0x23951c=![],_0x14a123,_0x1f5be3,_0xeb4943,_0x3dcbb9,_0x44e994,_0x3d00ac,_0x584d90,_0x27b907,_0x5a1461,_0x313009,_0x4baa9a,_0x363b83,_0x31bbec,_0x42cfcf,_0x99aedb=0x1,_0x48dac6=0xe;try{global_registry['requestId']=_0x37c55c['rgisx'](uuidv4),global_registry['isPrivateGrid']=![];if(!fs['existsSync'](_0x37c55c[_0x36c5bc(0xf9)](getCredentialsPath))){if(_0x37c55c[_0x36c5bc(0x226)](_0x37c55c[_0x36c5bc(0x125)],_0x37c55c['QJBJD']))console[_0x36c5bc(0x1bb)](_0x37c55c[_0x36c5bc(0x12d)]),await _0x37c55c[_0x36c5bc(0x13a)](sendInstrumentationEvent,_0x1c27c0,_0x37c55c[_0x36c5bc(0x19a)],messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x202)],null,_0x1c27c0),process[_0x36c5bc(0x1f9)](0x1);else{const _0x557fb0={};_0x557fb0['description']=_0x37c55c[_0x36c5bc(0x124)],_0x557fb0[_0x36c5bc(0x1e8)]=_0x37c55c[_0x36c5bc(0xef)];const _0x47b381={};_0x47b381['description']=_0x37c55c['JieHf'],_0x47b381[_0x36c5bc(0x1e8)]=_0x37c55c['EpTSF'];const _0x4278ad={};_0x4278ad[_0x36c5bc(0x184)]=_0x37c55c[_0x36c5bc(0x214)],_0x4278ad['type']=_0x37c55c[_0x36c5bc(0xef)];const _0x126195={};_0x126195[_0x36c5bc(0x184)]=_0x37c55c[_0x36c5bc(0x174)],_0x126195[_0x36c5bc(0x1e8)]=_0x37c55c[_0x36c5bc(0xef)];const _0x477845={};_0x477845[_0x36c5bc(0x184)]=_0x37c55c[_0x36c5bc(0x1e6)],_0x477845[_0x36c5bc(0x1e8)]=_0x37c55c[_0x36c5bc(0xef)];const _0x26eea2={};_0x26eea2[_0x36c5bc(0x184)]=_0x37c55c['RGlDD'],_0x26eea2[_0x36c5bc(0x1e8)]=_0x37c55c[_0x36c5bc(0xef)];const _0x5af0a6={};_0x5af0a6[_0x36c5bc(0x184)]=_0x37c55c[_0x36c5bc(0x1fb)],_0x5af0a6[_0x36c5bc(0x1e8)]=_0x37c55c['JbMQn'],_0x5af0a6[_0x36c5bc(0x16b)]=![];const _0x890000={};return _0x890000[_0x36c5bc(0x17a)]=_0x557fb0,_0x890000[_0x36c5bc(0xf5)]=_0x47b381,_0x890000[_0x36c5bc(0x178)]=_0x4278ad,_0x890000[_0x36c5bc(0x1d3)]=_0x126195,_0x890000[_0x36c5bc(0xed)]=_0x477845,_0x890000[_0x36c5bc(0x1ed)]=_0x26eea2,_0x890000[_0x36c5bc(0x1fd)]=_0x5af0a6,_0x3fb468['usage'](_0x28e3ed[_0x36c5bc(0x127)])[_0x36c5bc(0x1ea)](_0x471b67)[_0x36c5bc(0x119)](_0x890000)['help'](_0x37c55c[_0x36c5bc(0x116)])[_0x36c5bc(0x203)];}}await _0x37c55c['sGkwf'](sendInstrumentationEvent,_0x1c27c0,_0x37c55c[_0x36c5bc(0x19a)],messageTypes[_0x36c5bc(0x108)],null,null,_0x1c27c0);const _0x353408=JSON[_0x36c5bc(0x1a1)](fs['readFileSync'](_0x37c55c[_0x36c5bc(0x118)](getCredentialsPath)));global_registry[_0x36c5bc(0x1cd)]=_0x353408['Browserstack'][_0x36c5bc(0x10e)],global_registry[_0x36c5bc(0xea)]=_0x353408['Browserstack'][_0x36c5bc(0x101)];const _0x358303=WS_ENDPOINT[_0x36c5bc(0x103)](_0x37c55c[_0x36c5bc(0x1a7)],_0x353408['Browserstack']['username'])[_0x36c5bc(0x103)](_0x37c55c[_0x36c5bc(0x15c)],_0x353408['Browserstack']['password']),_0x3e7f5b={};_0x3e7f5b[_0x36c5bc(0x138)]=ws,_0x3e7f5b[_0x36c5bc(0x16d)]=0x36ee80,_0x363b83=new ReconnectingWebSocket(_0x358303,[],_0x3e7f5b),logger[_0x36c5bc(0x1e0)](_0x37c55c[_0x36c5bc(0x183)]),webSocketUtils[_0x36c5bc(0x11e)](_0x363b83,_0x1c27c0['user'],_0x1c27c0[_0x36c5bc(0x101)]);const _0x44810f=_0x1c27c0[_0x36c5bc(0x162)]||DEFAULT_GRID_NAME;if(_0x1c27c0['clusterName']||_0x1c27c0[_0x36c5bc(0x209)]||_0x1c27c0[_0x36c5bc(0xed)]){if(_0x37c55c[_0x36c5bc(0xf3)](_0x37c55c['jtZhz'],_0x37c55c[_0x36c5bc(0x140)])){!(_0x1c27c0['clusterName']&&_0x1c27c0[_0x36c5bc(0x209)]&&_0x1c27c0[_0x36c5bc(0xed)])&&(_0x37c55c[_0x36c5bc(0xe8)](_0x37c55c[_0x36c5bc(0x1b2)],_0x37c55c[_0x36c5bc(0x1b2)])?(_0x2a01ca[_0x36c5bc(0x1c3)]('Cluster:\x20'+_0x52cd6e[_0x36c5bc(0x11d)]+_0x36c5bc(0x1b0)),_0x4d7291=![],_0x9c719=!![]):(_0x14a123=_0x37c55c[_0x36c5bc(0x205)],await _0x37c55c['JXFQj'](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c['PijzG'],_0x37c55c[_0x36c5bc(0x1f5)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1)));if(![AWS,AZURE,GCP][_0x36c5bc(0x19f)](_0x1c27c0[_0x36c5bc(0x209)][_0x36c5bc(0xe5)]())){if(_0x37c55c[_0x36c5bc(0x1c8)](_0x37c55c[_0x36c5bc(0x15a)],_0x37c55c[_0x36c5bc(0x15a)]))_0x14a123=_0x37c55c[_0x36c5bc(0x1b7)],await _0x37c55c[_0x36c5bc(0x1b8)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x105)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1);else throw new _0x5061f9(_0x36c5bc(0x1b1)+_0xcf026a+_0x36c5bc(0x107));}_0x1c27c0[_0x36c5bc(0x1ee)]&&_0x37c55c[_0x36c5bc(0x145)](_0x1c27c0[_0x36c5bc(0x1ee)][_0x36c5bc(0xe5)](),_0x37c55c[_0x36c5bc(0x117)])&&(_0x37c55c[_0x36c5bc(0x226)](_0x37c55c[_0x36c5bc(0x1e7)],_0x37c55c[_0x36c5bc(0x1e7)])?_0x3a475f=null:global_registry[_0x36c5bc(0x1be)]=!![]);global_registry[_0x36c5bc(0x209)]=_0x1c27c0[_0x36c5bc(0x209)],global_registry[_0x36c5bc(0x1cf)]=_0x1c27c0[_0x36c5bc(0xed)],global_registry[_0x36c5bc(0x11d)]=_0x1c27c0[_0x36c5bc(0x11d)];const _0x472a70=await _0x37c55c['JDFuL'](getCloudProviderObject,_0x1c27c0['cloudProvider'],_0x1c27c0[_0x36c5bc(0x11d)],_0x44810f,_0x363b83,webSocketUtils,_0x1c27c0),_0x3352a8=await _0x472a70[_0x36c5bc(0x10c)]();if(!_0x3352a8)_0x37c55c['CXGFS'](_0x37c55c[_0x36c5bc(0x189)],_0x37c55c[_0x36c5bc(0x21a)])?_0x2ba702[_0x36c5bc(0x1bb)](_0x36c5bc(0x102)+_0x33739d+'\x20\x0a'+_0x255695[_0x36c5bc(0x1e2)](_0x2cff26[_0x36c5bc(0x165)])):(logger[_0x36c5bc(0x1c3)](_0x36c5bc(0x1fa)+_0x1c27c0[_0x36c5bc(0x11d)]+_0x36c5bc(0x1b0)),_0x592cda=![],_0x23951c=!![]);else{if(_0x37c55c[_0x36c5bc(0xe8)](_0x37c55c[_0x36c5bc(0x1df)],_0x37c55c[_0x36c5bc(0x1d6)]))_0x592cda=!![];else{const _0x5efff7={};_0x5efff7[_0x36c5bc(0x1e8)]=_0x2fa009[_0x36c5bc(0x129)],_0x5efff7[_0x36c5bc(0x13b)]=_0x4852aa,_0x3e1b8f['sendEventToBackend'](_0x3c0a21,_0x5efff7,_0x37c55c[_0x36c5bc(0x229)],!![]);}}_0xeb4943=_0x1c27c0[_0x36c5bc(0x11d)],_0x1f5be3=_0x1c27c0[_0x36c5bc(0x209)]['toLowerCase'](),_0x3dcbb9=_0x1c27c0[_0x36c5bc(0xed)];}else _0x32fd7f['region']=_0x4d11a3,_0x169276['cloudProvider']=_0x3acadf,_0x1babcb[_0x36c5bc(0x1a9)]=!![];}else _0x1c27c0['gridProfile']&&(_0x37c55c[_0x36c5bc(0xf3)](_0x37c55c[_0x36c5bc(0x228)],_0x37c55c['EBZAk'])?_0x539571['isPrivateGrid']=!![]:global_registry['gridProfile']=_0x1c27c0[_0x36c5bc(0x12f)]);global_registry[_0x36c5bc(0x162)]=_0x1c27c0[_0x36c5bc(0x162)];const _0x1c6bff={'method':_0x37c55c[_0x36c5bc(0x20c)],'headers':_0x37c55c['wwphd'](getAuthHeader,_0x353408[_0x36c5bc(0x197)][_0x36c5bc(0x10e)],_0x353408[_0x36c5bc(0x197)][_0x36c5bc(0x101)]),'throwHttpErrors':![]},_0x125a53={};_0x125a53[_0x36c5bc(0x162)]=_0x44810f;const _0x419206=_0x125a53;_0x23951c&&(_0x37c55c[_0x36c5bc(0x193)](_0x37c55c[_0x36c5bc(0x14a)],_0x37c55c[_0x36c5bc(0x14a)])?(_0x419206[_0x36c5bc(0xed)]=_0x3dcbb9,_0x419206[_0x36c5bc(0x209)]=_0x1f5be3,_0x419206['newCluster']=!![]):_0x339b83[_0x36c5bc(0x1be)]=!![]);const _0x558100=_0x36c5bc(0x208)+AG_API_URL+'/packages/cli/create-grid-checks',_0x374c9a={'searchParams':_0x419206,'throwHttpErrors':![],..._0x1c6bff},_0xab3f18=_0x374c9a,_0x20a06c=await _0x37c55c['wwphd'](got,_0x558100,_0xab3f18);(_0x37c55c[_0x36c5bc(0x159)](_0x20a06c,null)||_0x37c55c[_0x36c5bc(0x11b)](_0x20a06c,undefined))&&(_0x37c55c[_0x36c5bc(0xf3)](_0x37c55c[_0x36c5bc(0x224)],_0x37c55c['cGDhd'])?_0x4962d3=_0x14e3d5[_0x162cef[_0x36c5bc(0x12f)]]:(_0x14a123=_0x37c55c['cXzmc'],await _0x37c55c[_0x36c5bc(0x1b8)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c['HqckP'],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process['exit'](0x1)));_0x37c55c[_0x36c5bc(0x145)](_0x20a06c['statusCode'],0x191)&&(_0x37c55c[_0x36c5bc(0x130)](_0x37c55c['URvRM'],_0x37c55c[_0x36c5bc(0x192)])?(_0x14a123=_0x37c55c['epWoa'],await _0x37c55c[_0x36c5bc(0x213)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c['PijzG'],_0x37c55c[_0x36c5bc(0x14b)],_0x37c55c['xpxmu']),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1)):_0x2e6de0[_0x36c5bc(0x12f)]=_0x47881a['gridProfile']);_0x37c55c[_0x36c5bc(0x156)](_0x20a06c[_0x36c5bc(0x227)],0xc8)&&(_0x37c55c[_0x36c5bc(0x130)](_0x37c55c['GsLJj'],_0x37c55c[_0x36c5bc(0xe3)])?_0x5647e7=!![]:(_0x14a123='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON['stringify'](_0x20a06c[_0x36c5bc(0x15f)]),await _0x37c55c['SPQcQ'](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x21c)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1)));const _0xd596e=JSON[_0x36c5bc(0x1a1)](_0x20a06c['body']),_0x1f0dec={};_0x1f0dec[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x120)],_0x1f0dec[_0x36c5bc(0x13b)]=_0x37c55c['bTJvz'],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x1f0dec);const _0x44b10e={};_0x44b10e['type']=WS_EVENTS[_0x36c5bc(0x129)],_0x44b10e[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x191)],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x44b10e);if(_0xd596e[_0x36c5bc(0x1a6)]){if(_0x37c55c[_0x36c5bc(0x1b9)](_0x37c55c[_0x36c5bc(0x1cc)],_0x37c55c[_0x36c5bc(0x1cc)]))_0x14a123=_0x36c5bc(0x1e3)+_0x44810f+_0x36c5bc(0x1f0),await _0x37c55c[_0x36c5bc(0x180)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes['ERROR'],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x173)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1);else{const _0x34b779=_0x37c55c[_0x36c5bc(0x14d)][_0x36c5bc(0x1ad)]('|');let _0x1fb486=0x0;while(!![]){switch(_0x34b779[_0x1fb486++]){case'0':_0x78f1cb=_0x3fe463[_0x36c5bc(0x179)];continue;case'1':const _0x17944c={};_0x17944c['type']=_0x42dbe4[_0x36c5bc(0x129)],_0x17944c['message']=_0x4f2a2e,_0x158466[_0x36c5bc(0x146)](_0x2a97f4,_0x17944c);continue;case'2':_0x43cab8='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x4c1ed0;continue;case'3':_0x4f3c59=_0x186c4c[_0x36c5bc(0x1a5)];continue;case'4':_0x1176bd=_0x49a6e5[_0x36c5bc(0x11f)];continue;case'5':_0x3d7865=_0x1032c7[_0x36c5bc(0x21f)];continue;case'6':_0x56ebc2=_0x35b9a8[_0x36c5bc(0x187)];continue;case'7':_0x57092b=null;continue;case'8':_0xa4124e=_0x125df2[_0x36c5bc(0x1eb)];continue;case'9':_0x5d2f5d=null;continue;case'10':_0x2c6092[_0x36c5bc(0x1c3)](_0x131e17);continue;case'11':_0x37c55c['gijYN'](_0xba160['privateGrid'],_0x48ec56)&&_0x29b59e[_0x36c5bc(0x1ee)]&&(_0x43d4b6[_0x36c5bc(0x1be)]=!![]);continue;case'12':_0x18a62b=_0x41f6fa[_0x36c5bc(0x210)];continue;case'13':_0x37c55c[_0x36c5bc(0x134)](_0xe5503,_0x1aab40,_0x4c9a3c,_0x304a13,_0x45de18,_0x541630,_0x1cbd33,_0x15db32,_0x201fc4,_0x11702b,_0x2eb11c,_0x215a21);continue;case'14':_0x47a2b4=null;continue;}break;}}}const _0x369e3a=_0xd596e[_0x36c5bc(0x217)];let _0x4d76be=_0x369e3a[_0xd596e['defaultGridProfile']];_0x1c27c0[_0x36c5bc(0x12f)]&&(_0x37c55c[_0x36c5bc(0x130)](_0x37c55c[_0x36c5bc(0x1bf)],_0x37c55c[_0x36c5bc(0x12b)])?_0x4d76be=_0x369e3a[_0x1c27c0[_0x36c5bc(0x12f)]]:_0x4a6642[_0x36c5bc(0x1c3)](_0x36c5bc(0x1aa)+_0x2dd870+'\x20'));if(_0x37c55c[_0x36c5bc(0x1c8)](_0x592cda,![])&&_0x37c55c['MSTFx'](_0x23951c,![])){if(_0x37c55c[_0x36c5bc(0x139)](_0x37c55c[_0x36c5bc(0x20e)],_0x37c55c[_0x36c5bc(0x19e)]))_0x402ab8[_0x36c5bc(0x1d1)]();else{_0x37c55c[_0x36c5bc(0x1c0)](_0x4d76be,undefined)&&(_0x37c55c[_0x36c5bc(0x148)](_0x37c55c[_0x36c5bc(0x18f)],_0x37c55c[_0x36c5bc(0x1ec)])?_0x48b9f7=_0x37c55c[_0x36c5bc(0xe4)]:(_0x14a123=_0x37c55c[_0x36c5bc(0x204)],await _0x37c55c[_0x36c5bc(0x19b)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c['PijzG'],_0x37c55c['bOQMI'],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1)));global_registry['gridProfileId']=_0x4d76be['id'],_0x14a123=_0x36c5bc(0x10f)+_0x44810f+_0x36c5bc(0x1a8)+_0x4d76be[_0x36c5bc(0x19c)]+_0x36c5bc(0x143),logger[_0x36c5bc(0x1c3)](_0x14a123);const _0x2ec0dc={};_0x2ec0dc[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x2ec0dc[_0x36c5bc(0x13b)]=_0x14a123,webSocketUtils['sendEventToBackend'](_0x363b83,_0x2ec0dc),_0x1f5be3=_0x4d76be[_0x36c5bc(0x209)],_0xeb4943=_0x4d76be['clusterName'],_0x3dcbb9=_0x4d76be[_0x36c5bc(0xed)],_0x44e994=_0x4d76be[_0x36c5bc(0x21f)],_0x3d00ac=_0x4d76be[_0x36c5bc(0x179)],_0x584d90=_0x4d76be[_0x36c5bc(0x1f8)],_0x27b907=_0x4d76be['securityGroups'],_0x5a1461=_0x4d76be[_0x36c5bc(0x16f)],_0x313009=_0x4d76be[_0x36c5bc(0x1a5)],_0x99aedb=_0x4d76be[_0x36c5bc(0x187)],_0x48dac6=_0x4d76be[_0x36c5bc(0x210)],_0x31bbec=_0xd596e[_0x36c5bc(0x11f)],_0x42cfcf=_0xd596e[_0x36c5bc(0x1eb)];_0x584d90&&_0x37c55c[_0x36c5bc(0x139)](_0x584d90[_0x36c5bc(0x195)],0x0)&&(_0x37c55c[_0x36c5bc(0x156)](_0x37c55c['sDfyC'],_0x37c55c[_0x36c5bc(0x1a3)])?_0x584d90=null:_0x19924e[_0x36c5bc(0x1c3)](_0x36c5bc(0x199)+_0x7db34e[_0x36c5bc(0x1e2)](_0x40600b)+'\x20'));_0x5a1461&&_0x37c55c[_0x36c5bc(0x11b)](_0x5a1461[_0x36c5bc(0x195)],0x0)&&(_0x37c55c[_0x36c5bc(0x15d)](_0x37c55c[_0x36c5bc(0x1cb)],_0x37c55c['EdgBB'])?_0x231b72=null:_0x5a1461=null);if(_0x37c55c[_0x36c5bc(0x130)](_0x4d76be['privateGrid'],undefined)&&_0x4d76be[_0x36c5bc(0x1ee)]){if(_0x37c55c[_0x36c5bc(0x159)](_0x37c55c['ZjaMz'],_0x37c55c[_0x36c5bc(0x100)]))global_registry['isPrivateGrid']=!![];else{const _0x4f1053=_0x37c55c[_0x36c5bc(0xf2)][_0x36c5bc(0x1ad)]('|');let _0x518e80=0x0;while(!![]){switch(_0x4f1053[_0x518e80++]){case'0':_0x1fea57[_0x36c5bc(0x11d)]=_0x39f091;continue;case'1':const _0x2246b4={};_0x2246b4[_0x36c5bc(0x1e8)]=_0x9d7878[_0x36c5bc(0x120)],_0x2246b4[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x1dc)],_0x3d4b54['sendEventToBackend'](_0x2ced65,_0x2246b4);continue;case'2':const _0x133fc6={};_0x133fc6[_0x36c5bc(0x1e8)]=_0x5459f7[_0x36c5bc(0x129)],_0x133fc6[_0x36c5bc(0x13b)]=_0x535dff,_0x3eba50[_0x36c5bc(0x146)](_0x34be6b,_0x133fc6);continue;case'3':_0x123418[_0x36c5bc(0x1eb)]=_0x50a5f1['browserVersion'];continue;case'4':_0x55166f=_0x36c5bc(0x10d)+_0x48406c+_0x36c5bc(0x1fc)+_0x2d563e+'\x27';continue;case'5':_0x232488[_0x36c5bc(0x209)]=_0x308406;continue;case'6':_0x38d1a5[_0x36c5bc(0x1c3)](_0xbba055);continue;case'7':_0x4cfc6c['hubVersion']=_0x340ba9[_0x36c5bc(0x11f)];continue;case'8':_0x58b113['clusterRegion']=_0x28accf;continue;}break;}}}_0x37c55c[_0x36c5bc(0x134)](updateGlobalRegistryWithConfig,_0x1f5be3,_0xeb4943,_0x3dcbb9,_0x44e994,_0x3d00ac,_0x313009,_0x4d76be,_0x31bbec,_0x42cfcf,_0x99aedb,_0x48dac6);}}else{if(_0x37c55c[_0x36c5bc(0x139)](_0x23951c,!![])){if(_0x37c55c[_0x36c5bc(0x1c8)](_0x37c55c[_0x36c5bc(0x153)],_0x37c55c[_0x36c5bc(0xde)]))_0x4678fa[_0x36c5bc(0x1be)]=!![];else{_0x14a123=_0x36c5bc(0x166)+_0x44810f,logger[_0x36c5bc(0x1c3)](_0x14a123);const _0x445309={};_0x445309[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x445309[_0x36c5bc(0x13b)]=_0x14a123,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x445309),_0x44e994=_0x4d76be[_0x36c5bc(0x21f)],_0x3d00ac=_0x4d76be[_0x36c5bc(0x179)],_0x584d90=null,_0x27b907=null,_0x5a1461=null,_0x313009=_0x4d76be['s3bucket'],_0x99aedb=_0x4d76be[_0x36c5bc(0x187)],_0x48dac6=_0x4d76be[_0x36c5bc(0x210)],_0x31bbec=_0xd596e[_0x36c5bc(0x11f)],_0x42cfcf=_0xd596e[_0x36c5bc(0x1eb)],_0x37c55c[_0x36c5bc(0x150)](_0x4d76be[_0x36c5bc(0x1ee)],undefined)&&_0x4d76be[_0x36c5bc(0x1ee)]&&(_0x37c55c[_0x36c5bc(0x1d9)](_0x37c55c[_0x36c5bc(0x113)],_0x37c55c[_0x36c5bc(0x113)])?(_0x1ebc61=_0x352458['route53'],_0x105563=_0x37c55c[_0x36c5bc(0xf4)]):global_registry['isPrivateGrid']=!![]),_0x37c55c[_0x36c5bc(0x134)](updateGlobalRegistryWithConfig,_0x1f5be3,_0xeb4943,_0x3dcbb9,_0x44e994,_0x3d00ac,_0x313009,_0x4d76be,_0x31bbec,_0x42cfcf,_0x99aedb,_0x48dac6);}}else{if(_0x37c55c[_0x36c5bc(0x201)](_0x37c55c[_0x36c5bc(0x114)],_0x37c55c[_0x36c5bc(0xe6)])){const _0x2c7c93={};_0x2c7c93['type']=_0x17ce3c[_0x36c5bc(0x129)],_0x2c7c93[_0x36c5bc(0x13b)]=_0x36c5bc(0x1b1)+_0x1cf469+_0x36c5bc(0x186),_0x1e1e99[_0x36c5bc(0x146)](_0x42bc39,_0x2c7c93,_0x37c55c[_0x36c5bc(0x14f)]),_0x50c571['info'](_0x36c5bc(0x1b1)+_0x1e4de6+_0x36c5bc(0x186)),_0x53a844=!![];if(_0x37c55c[_0x36c5bc(0xf3)](_0x4a0a4f,!![]))throw new _0x53786f(_0x36c5bc(0x1b1)+_0x53c2df+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}else{const _0x27c87c=_0x37c55c[_0x36c5bc(0x1c1)][_0x36c5bc(0x1ad)]('|');let _0xeaf314=0x0;while(!![]){switch(_0x27c87c[_0xeaf314++]){case'0':const _0x107aae={};_0x107aae[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x107aae[_0x36c5bc(0x13b)]=_0x14a123,webSocketUtils['sendEventToBackend'](_0x363b83,_0x107aae);continue;case'1':global_registry[_0x36c5bc(0x11f)]=_0xd596e['hubVersion'];continue;case'2':global_registry[_0x36c5bc(0x11d)]=_0xeb4943;continue;case'3':logger['info'](_0x14a123);continue;case'4':const _0x9de30d={};_0x9de30d[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x120)],_0x9de30d[_0x36c5bc(0x13b)]=_0x37c55c['bTJvz'],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x9de30d);continue;case'5':global_registry[_0x36c5bc(0x1cf)]=_0x3dcbb9;continue;case'6':global_registry['browserVersion']=_0xd596e['browserVersion'];continue;case'7':global_registry['cloudProvider']=_0x1f5be3;continue;case'8':_0x14a123=_0x36c5bc(0x10d)+_0x44810f+_0x36c5bc(0x1fc)+_0xeb4943+'\x27';continue;}break;}}}}const _0x3e59f1=await _0x37c55c['sGkwf'](getCloudProviderObject,_0x1f5be3,_0xeb4943,_0x44810f,_0x363b83,webSocketUtils,_0x1c27c0);_0x37c55c[_0x36c5bc(0x121)](_0x1f5be3,AZURE)&&_0x3e59f1[_0x36c5bc(0x1d1)]();let _0x28c8fd;if(_0x37c55c[_0x36c5bc(0x16e)](_0x592cda,![])){_0x14a123=_0x36c5bc(0x176)+_0x3dcbb9+').';const _0x4df2ce={};_0x4df2ce[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x4df2ce[_0x36c5bc(0x13b)]=_0x14a123,webSocketUtils['sendEventToBackend'](_0x363b83,_0x4df2ce),logger[_0x36c5bc(0x1c3)](_0x14a123);const _0x363bd6=await _0x3e59f1[_0x36c5bc(0x10c)]();if(_0x363bd6){const _0x2e8767={};_0x2e8767[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x2e8767[_0x36c5bc(0x13b)]=_0x36c5bc(0x1b1)+_0xeb4943+_0x36c5bc(0x186),webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x2e8767,_0x37c55c[_0x36c5bc(0x14f)]),logger[_0x36c5bc(0x1c3)]('Cluster\x20'+_0xeb4943+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x592cda=!![];if(_0x37c55c[_0x36c5bc(0x139)](_0x23951c,!![]))throw new Error(_0x36c5bc(0x1b1)+_0xeb4943+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}else{const _0x1873a6={};_0x1873a6['type']=WS_EVENTS['LOG'],_0x1873a6[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x15b)],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x1873a6),logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0x15b)]);const _0x2b25de=_0x37c55c[_0x36c5bc(0x142)](_0x584d90,null)&&_0x37c55c[_0x36c5bc(0x156)](_0x584d90,undefined),_0x5be318=_0x37c55c['lDwsj'](_0x5a1461,null)&&_0x37c55c[_0x36c5bc(0x1d5)](_0x5a1461,undefined)&&_0x37c55c[_0x36c5bc(0x1de)](_0x5a1461['length'],0x0);if(_0x2b25de){_0x37c55c[_0x36c5bc(0x159)](_0x5be318,![])&&(_0x14a123=_0x37c55c[_0x36c5bc(0x1af)],await _0x37c55c[_0x36c5bc(0x111)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes['ERROR'],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x18d)],_0x37c55c[_0x36c5bc(0x229)]),logger['error'](_0x14a123),process[_0x36c5bc(0x1f9)](0x1));const _0x3281b8=await _0x3e59f1[_0x36c5bc(0x196)](_0x584d90);_0x37c55c[_0x36c5bc(0x11b)](_0x3281b8,![])?(_0x14a123=_0x37c55c[_0x36c5bc(0x157)],await _0x37c55c[_0x36c5bc(0x180)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes['ERROR'],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x1d7)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1)):logger['info'](_0x36c5bc(0x1aa)+_0x584d90+'\x20');const _0x2809c2=await _0x3e59f1['isSubnetsValid'](_0x5a1461,_0x584d90);_0x37c55c['cxNgs'](_0x2809c2[0x0],![])?(_0x14a123=_0x36c5bc(0x1da)+JSON[_0x36c5bc(0x1e2)](_0x2809c2[0x1])+_0x36c5bc(0x185)+_0x584d90+_0x36c5bc(0x104),await _0x37c55c[_0x36c5bc(0x1b8)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x18b)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process['exit'](0x1)):logger[_0x36c5bc(0x1c3)](_0x36c5bc(0x199)+JSON[_0x36c5bc(0x1e2)](_0x5a1461)+'\x20'),await _0x3e59f1['setupNewCluster'](_0x584d90,_0x5a1461);}else{const _0x4562e5=_0x37c55c['ozVtt'][_0x36c5bc(0x1ad)]('|');let _0x54933d=0x0;while(!![]){switch(_0x4562e5[_0x54933d++]){case'0':logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0x1ab)]);continue;case'1':const _0x16d39d={};_0x16d39d['type']=WS_EVENTS[_0x36c5bc(0x129)],_0x16d39d[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x1ab)],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x16d39d);continue;case'2':logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0x20f)]);continue;case'3':const _0x379c6d={};_0x379c6d[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x379c6d[_0x36c5bc(0x13b)]=_0x37c55c['cPSyY'],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x379c6d);continue;case'4':await _0x3e59f1[_0x36c5bc(0x212)](_0x584d90,_0x5a1461);continue;}break;}}}}_0x592cda&&_0x37c55c[_0x36c5bc(0xfb)](_0x1f5be3,AZURE)&&(await _0x3e59f1['updateClusterAlreadyPresent'](),await _0x3e59f1[_0x36c5bc(0x136)]());const [_0x4b62ac,_0x3388fa,_0x50b53b,_0x307452,_0x5aca63,_0x4ac675]=await _0x37c55c[_0x36c5bc(0x158)](createK8sClient,_0x3e59f1,_0x1c27c0['skipTlsCertVerify']);_0x37c55c[_0x36c5bc(0xfe)](_0x592cda,![])&&_0x37c55c['KroDT'](_0x1f5be3,AWS)&&(global_registry[_0x36c5bc(0x1ba)]=!![],_0x28c8fd=await _0x3e59f1['setupAutoscaler'](_0x4b62ac,_0x1c27c0));try{_0x4baa9a=_0x37c55c[_0x36c5bc(0x1ac)](kebabCase,_0x44810f),logger[_0x36c5bc(0x1c3)](_0x37c55c['fxxlx']);const _0x3ce639={};_0x3ce639[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x3ce639[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x16a)],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x3ce639);if(_0x37c55c[_0x36c5bc(0x206)](_0x4baa9a,_0x37c55c['SzZec'])){const _0x594f84={};_0x594f84[_0x36c5bc(0x222)]=_0x37c55c[_0x36c5bc(0xff)],_0x594f84[_0x36c5bc(0x194)]=_0x37c55c[_0x36c5bc(0xff)];const _0x404c9b={};_0x404c9b[_0x36c5bc(0x19c)]=_0x4baa9a,_0x404c9b[_0x36c5bc(0x1e1)]=_0x594f84;const _0x4cb42e={};_0x4cb42e[_0x36c5bc(0x1bd)]=_0x404c9b;const _0xbeac77=_0x4cb42e,_0x17d38a={};_0x17d38a[_0x36c5bc(0x15f)]=_0xbeac77,await _0x4b62ac[_0x36c5bc(0x135)](_0x17d38a),logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0x190)]);}const _0x3db11b={};_0x3db11b[_0x36c5bc(0x1e8)]=WS_EVENTS['LOG'],_0x3db11b[_0x36c5bc(0x13b)]=_0x37c55c['UsvII'],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x3db11b);const _0x56db50={};_0x56db50[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x56db50[_0x36c5bc(0x13b)]=_0x37c55c[_0x36c5bc(0x182)],webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x56db50),logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0x1ca)]);let _0x1fcee7={};_0x37c55c[_0x36c5bc(0x1c0)](_0x1f5be3,AZURE)&&(_0x1fcee7={'clientId':await _0x3e59f1['getResourceClientId']('turboscale-managed-identity-'+_0xeb4943)});await _0x37c55c[_0x36c5bc(0x1ef)](addGridComponents,_0x4b62ac,_0x3388fa,_0x50b53b,_0x307452,_0x4baa9a,_0xeb4943,_0x28c8fd,_0x5aca63,_0x4ac675,_0x1fcee7),_0x14a123=_0x37c55c[_0x36c5bc(0xf1)],logger['info'](_0x14a123);const _0x4faba2={};_0x4faba2[_0x36c5bc(0x1e8)]=WS_EVENTS[_0x36c5bc(0x129)],_0x4faba2['message']=_0x14a123,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x4faba2),_0x14a123=_0x37c55c[_0x36c5bc(0x152)],logger[_0x36c5bc(0x1c3)](_0x14a123);const _0x1df75d={};_0x1df75d['type']=WS_EVENTS['LOG'],_0x1df75d['message']=_0x14a123,webSocketUtils['sendEventToBackend'](_0x363b83,_0x1df75d),await _0x37c55c[_0x36c5bc(0x1f1)](waitForDeployment,_0x3388fa,_0x4baa9a,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x22517d=await _0x37c55c['wwphd'](getNamespaceUID,_0x4b62ac,_0x4baa9a),_0x3ed1b9=global_registry[_0x36c5bc(0x1be)]?_0x37c55c[_0x36c5bc(0x14c)]:_0x37c55c[_0x36c5bc(0x1b5)],_0x13050e={};_0x13050e[_0x36c5bc(0x19c)]=_0x3ed1b9,_0x13050e[_0x36c5bc(0x17e)]=_0x37c55c[_0x36c5bc(0x106)];const _0x3387f4=await _0x4b62ac[_0x36c5bc(0x17d)](_0x13050e);let _0x5b653f=_0x3e59f1[_0x36c5bc(0x15e)](_0x3387f4)+'/'+_0x4baa9a,_0x5b0e41=_0x37c55c[_0x36c5bc(0xe4)];try{const _0x4d43b1='https://'+AG_API_URL+_0x36c5bc(0x171)+_0x22517d,_0x6d31bc=await _0x37c55c[_0x36c5bc(0x158)](got,_0x4d43b1,_0x1c6bff);(_0x37c55c[_0x36c5bc(0x16e)](_0x6d31bc,null)||_0x37c55c[_0x36c5bc(0x16e)](_0x6d31bc,undefined))&&(_0x14a123=_0x37c55c[_0x36c5bc(0x181)],await _0x37c55c[_0x36c5bc(0x21d)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x1dd)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1));_0x37c55c[_0x36c5bc(0xfe)](_0x6d31bc['statusCode'],0x191)&&(_0x14a123=_0x37c55c[_0x36c5bc(0x215)],await _0x37c55c[_0x36c5bc(0x111)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes['ERROR'],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c['ySAED'],_0x37c55c['xpxmu']),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1));_0x37c55c[_0x36c5bc(0x225)](_0x6d31bc[_0x36c5bc(0x227)],0xc8)&&(_0x14a123=_0x36c5bc(0xf8)+JSON[_0x36c5bc(0x1e2)](_0x6d31bc),await _0x37c55c[_0x36c5bc(0x111)](reportToGalactusAndSendToEDS,_0x1c27c0,_0x363b83,_0x14a123,messageTypes['ERROR'],_0x37c55c[_0x36c5bc(0x19a)],_0x37c55c[_0x36c5bc(0x155)],_0x37c55c[_0x36c5bc(0x229)]),logger[_0x36c5bc(0x1bb)](_0x14a123),process[_0x36c5bc(0x1f9)](0x1));const _0x556ec2=JSON[_0x36c5bc(0x1a1)](_0x6d31bc[_0x36c5bc(0x15f)]);_0x556ec2[_0x36c5bc(0x1f2)]&&(_0x5b653f=_0x556ec2[_0x36c5bc(0x1f2)],_0x5b0e41=_0x37c55c[_0x36c5bc(0xf4)]),global_registry[_0x36c5bc(0x1be)]&&(_0x5b0e41=_0x37c55c[_0x36c5bc(0xe4)]);}catch(_0x1a2a8e){}_0x14a123=_0x36c5bc(0x170)+_0x5b653f+'\x20',logger[_0x36c5bc(0x1c3)](_0x14a123);const _0x316649={};_0x316649['type']=WS_EVENTS[_0x36c5bc(0x129)],_0x316649[_0x36c5bc(0x13b)]=_0x14a123,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x316649),_0x14a123=_0x36c5bc(0x1ae)+_0x5b0e41+'://'+_0x5b653f+_0x36c5bc(0xee),logger['info'](_0x14a123);const _0x33c2db={};_0x33c2db[_0x36c5bc(0x1e8)]=WS_EVENTS['LOG'],_0x33c2db['message']=_0x14a123,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x33c2db);const _0xd578ca={};_0xd578ca['type']=WS_EVENTS[_0x36c5bc(0x1e9)],_0xd578ca[_0x36c5bc(0x13b)]=_0x36c5bc(0x123)+_0x5b653f,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0xd578ca),await webSocketUtils[_0x36c5bc(0x1ff)](0x7d0);}catch(_0x18ee6d){logger[_0x36c5bc(0x1bb)](_0x36c5bc(0x1b4)+_0x18ee6d+'\x20\x0a'+JSON['stringify'](_0x18ee6d['stack']));if(_0x37c55c[_0x36c5bc(0x145)](_0x592cda,![]))try{logger[_0x36c5bc(0x1c3)](_0x37c55c[_0x36c5bc(0xf0)]),await _0x37c55c[_0x36c5bc(0xe9)](removeGridComponents,_0x4b62ac,_0x3388fa,_0x50b53b,_0x307452,_0x4baa9a),await _0x3e59f1['deleteCluster'](_0x4b62ac,global_registry['clusterRegion']);}catch(_0x2f157f){logger[_0x36c5bc(0x1bb)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x2f157f+'\x20\x0a'+JSON[_0x36c5bc(0x1e2)](_0x2f157f[_0x36c5bc(0x165)]));}throw _0x18ee6d;}}catch(_0x192f61){const _0x251ffc=_0x36c5bc(0x128)+_0x192f61+'\x20\x0a'+JSON[_0x36c5bc(0x1e2)](_0x192f61[_0x36c5bc(0x165)]);if(_0x363b83){const _0x2e8b6c={};_0x2e8b6c['type']=WS_EVENTS[_0x36c5bc(0x129)],_0x2e8b6c[_0x36c5bc(0x13b)]=_0x251ffc,webSocketUtils[_0x36c5bc(0x146)](_0x363b83,_0x2e8b6c,_0x37c55c[_0x36c5bc(0x229)],!![]);}await webSocketUtils['delay'](0x7d0);const _0xf90d72={};_0xf90d72[_0x36c5bc(0x1bb)]=_0x251ffc,await _0x37c55c[_0x36c5bc(0x137)](sendInstrumentationEvent,_0x1c27c0,_0x37c55c[_0x36c5bc(0x19a)],messageTypes[_0x36c5bc(0x172)],_0x37c55c[_0x36c5bc(0x161)],_0xf90d72,_0x1c27c0),logger[_0x36c5bc(0x1bb)](_0x251ffc);}process['exit'](0x0);};
@@ -1 +1 @@
1
- const a10_0x46bf7e=a10_0x50f6;function a10_0x50f6(_0x2132c2,_0x2e7797){const _0x44f24a=a10_0x44f2();return a10_0x50f6=function(_0x50f635,_0x62377f){_0x50f635=_0x50f635-0x105;let _0x1266b7=_0x44f24a[_0x50f635];return _0x1266b7;},a10_0x50f6(_0x2132c2,_0x2e7797);}(function(_0x2e452b,_0x4c8477){const _0x42f556=a10_0x50f6,_0x51d660=_0x2e452b();while(!![]){try{const _0x1d19a2=parseInt(_0x42f556(0x10f))/0x1*(-parseInt(_0x42f556(0x10a))/0x2)+parseInt(_0x42f556(0x107))/0x3*(-parseInt(_0x42f556(0x105))/0x4)+-parseInt(_0x42f556(0x10c))/0x5*(parseInt(_0x42f556(0x114))/0x6)+parseInt(_0x42f556(0x113))/0x7+-parseInt(_0x42f556(0x117))/0x8+-parseInt(_0x42f556(0x119))/0x9*(-parseInt(_0x42f556(0x106))/0xa)+parseInt(_0x42f556(0x10e))/0xb;if(_0x1d19a2===_0x4c8477)break;else _0x51d660['push'](_0x51d660['shift']());}catch(_0x3831f9){_0x51d660['push'](_0x51d660['shift']());}}}(a10_0x44f2,0x1a853));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x46bf7e(0x109));exports[a10_0x46bf7e(0x111)]=a10_0x46bf7e(0x10d),exports['desc']=a10_0x46bf7e(0x112),exports[a10_0x46bf7e(0x116)]=function(_0x40cb64){const _0x14aefc=a10_0x46bf7e,_0x2f860e={};_0x2f860e['wuver']=_0x14aefc(0x110),_0x2f860e[_0x14aefc(0x108)]=_0x14aefc(0x11a);const _0x4ba9d3=_0x2f860e;return _0x40cb64[_0x14aefc(0x118)](HELP_HEADER_MESSAGE[_0x14aefc(0x10d)])[_0x14aefc(0x11b)](HELP_FOOTER_MESSAGE)['commandDir'](_0x4ba9d3['wuver'])[_0x14aefc(0x10b)]()['recommendCommands']()[_0x14aefc(0x115)]()[_0x14aefc(0x11a)](_0x4ba9d3[_0x14aefc(0x108)]);},exports['handler']=function(_0xa816ce){};function a10_0x44f2(){const _0x557e4d=['List\x20Grid\x20resources.','170086pMVDBq','69672tBzkJj','strict','builder','466944bVnyeP','usage','45caPbIK','help','epilogue','4hQzyTs','271670NZSntW','337938fGqtUO','tRdwi','../config/constants','50452VEGXwS','demandCommand','20kmmeMH','delete','4045404BDbaPY','8kUOFRo','delete_commands','command'];a10_0x44f2=function(){return _0x557e4d;};return a10_0x44f2();}
1
+ const a10_0x515f6e=a10_0x3f64;(function(_0x579512,_0xd482b){const _0x4712e4=a10_0x3f64,_0x3d855d=_0x579512();while(!![]){try{const _0x55ddf6=-parseInt(_0x4712e4(0x1fe))/0x1*(-parseInt(_0x4712e4(0x1ef))/0x2)+parseInt(_0x4712e4(0x200))/0x3+parseInt(_0x4712e4(0x1f4))/0x4*(-parseInt(_0x4712e4(0x1ff))/0x5)+parseInt(_0x4712e4(0x1f7))/0x6*(-parseInt(_0x4712e4(0x1fd))/0x7)+-parseInt(_0x4712e4(0x1f3))/0x8+-parseInt(_0x4712e4(0x1f8))/0x9+parseInt(_0x4712e4(0x1fa))/0xa;if(_0x55ddf6===_0xd482b)break;else _0x3d855d['push'](_0x3d855d['shift']());}catch(_0xacb0bd){_0x3d855d['push'](_0x3d855d['shift']());}}}(a10_0xa9d6,0x9f454));function a10_0xa9d6(){const _0x4f1420=['delete','196637hLWumk','32468YqBoSn','5212255JXYEoD','2474373lgNntQ','KvkCf','demandCommand','handler','../config/constants','strict','64TVZZLF','recommendCommands','epilogue','command','5719288FckLvJ','4bhodmx','delete_commands','help','18stpwYZ','4882338ZIQSxU','ijxCj','11727220UDHQbm','usage'];a10_0xa9d6=function(){return _0x4f1420;};return a10_0xa9d6();}function a10_0x3f64(_0x4fc897,_0x1d5c55){const _0xa9d6f5=a10_0xa9d6();return a10_0x3f64=function(_0x3f648d,_0x1c2d24){_0x3f648d=_0x3f648d-0x1eb;let _0x2aef98=_0xa9d6f5[_0x3f648d];return _0x2aef98;},a10_0x3f64(_0x4fc897,_0x1d5c55);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x515f6e(0x1ed));exports[a10_0x515f6e(0x1f2)]=a10_0x515f6e(0x1fc),exports['desc']='List\x20Grid\x20resources.',exports['builder']=function(_0x5336e1){const _0x567f04=a10_0x515f6e,_0x12073a={};_0x12073a[_0x567f04(0x1f9)]=_0x567f04(0x1f5),_0x12073a[_0x567f04(0x201)]=_0x567f04(0x1f6);const _0x2a6b43=_0x12073a;return _0x5336e1[_0x567f04(0x1fb)](HELP_HEADER_MESSAGE[_0x567f04(0x1fc)])[_0x567f04(0x1f1)](HELP_FOOTER_MESSAGE)['commandDir'](_0x2a6b43[_0x567f04(0x1f9)])[_0x567f04(0x1eb)]()[_0x567f04(0x1f0)]()[_0x567f04(0x1ee)]()[_0x567f04(0x1f6)](_0x2a6b43['KvkCf']);},exports[a10_0x515f6e(0x1ec)]=function(_0x2e3730){};
@@ -1 +1 @@
1
- const a11_0x2d7847=a11_0x3d2f;(function(_0xe1a39c,_0x269e42){const _0x243e16=a11_0x3d2f,_0x462d06=_0xe1a39c();while(!![]){try{const _0x339ea8=parseInt(_0x243e16(0xf5))/0x1+-parseInt(_0x243e16(0xb9))/0x2+-parseInt(_0x243e16(0xcf))/0x3*(-parseInt(_0x243e16(0x10d))/0x4)+parseInt(_0x243e16(0x11c))/0x5+parseInt(_0x243e16(0xb5))/0x6*(-parseInt(_0x243e16(0xc8))/0x7)+-parseInt(_0x243e16(0xa6))/0x8*(-parseInt(_0x243e16(0xd2))/0x9)+parseInt(_0x243e16(0xb1))/0xa*(parseInt(_0x243e16(0xfd))/0xb);if(_0x339ea8===_0x269e42)break;else _0x462d06['push'](_0x462d06['shift']());}catch(_0x1a6796){_0x462d06['push'](_0x462d06['shift']());}}}(a11_0x2356,0xc87a1));function a11_0x3d2f(_0x1680fa,_0x4461f6){const _0x23569d=a11_0x2356();return a11_0x3d2f=function(_0x3d2ff8,_0x185772){_0x3d2ff8=_0x3d2ff8-0x87;let _0x42ad84=_0x23569d[_0x3d2ff8];return _0x42ad84;},a11_0x3d2f(_0x1680fa,_0x4461f6);}const fs=require('fs'),got=require(a11_0x2d7847(0x8b)),{v4:uuidv4}=require(a11_0x2d7847(0x9b)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x2d7847(0xec)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x2d7847(0xa8)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x2d7847(0xef)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),{inputConfirmation}=require(a11_0x2d7847(0x8f)),{createK8sClient}=require(a11_0x2d7847(0x106)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require(a11_0x2d7847(0x8d)),webSocketUtils=require(a11_0x2d7847(0xb4));exports[a11_0x2d7847(0xb8)]='grid',exports[a11_0x2d7847(0x107)]='Delete\x20an\x20Automation\x20grid.',exports['builder']=function(_0x303060){const _0x1f0c2d=a11_0x2d7847,_0x30f42f={};_0x30f42f[_0x1f0c2d(0xc6)]=_0x1f0c2d(0xff),_0x30f42f['eTdwW']=_0x1f0c2d(0xed),_0x30f42f[_0x1f0c2d(0xd8)]=_0x1f0c2d(0xea),_0x30f42f[_0x1f0c2d(0xc0)]=_0x1f0c2d(0x10b),_0x30f42f[_0x1f0c2d(0xcc)]=_0x1f0c2d(0x96);const _0x2bf72d=_0x30f42f,_0x5284ff={};_0x5284ff[_0x1f0c2d(0xd9)]=_0x2bf72d[_0x1f0c2d(0xc6)],_0x5284ff[_0x1f0c2d(0xa4)]=_0x2bf72d[_0x1f0c2d(0x113)];const _0x6b0872={};_0x6b0872[_0x1f0c2d(0xd9)]=_0x2bf72d[_0x1f0c2d(0xd8)],_0x6b0872[_0x1f0c2d(0xa4)]=_0x2bf72d['IQpMJ'],_0x6b0872[_0x1f0c2d(0xf8)]=![];const _0x374c4a={};return _0x374c4a[_0x1f0c2d(0xf9)]=_0x5284ff,_0x374c4a[_0x1f0c2d(0xbc)]=_0x6b0872,_0x303060[_0x1f0c2d(0xf0)](HELP_HEADER_MESSAGE[_0x1f0c2d(0xfc)])[_0x1f0c2d(0xfb)](HELP_FOOTER_MESSAGE)[_0x1f0c2d(0xb7)](_0x374c4a)[_0x1f0c2d(0x96)](_0x2bf72d['soRul'])[_0x1f0c2d(0xe5)];},exports[a11_0x2d7847(0xb2)]=async function(_0x11d0d2){const _0x5adc26=a11_0x2d7847,_0x81b355={'XMzie':'Pass\x20the\x20ID\x20of\x20the\x20Grid','lJJKN':_0x5adc26(0xed),'hmHbl':_0x5adc26(0xea),'htvHr':_0x5adc26(0x10b),'aGVis':_0x5adc26(0x96),'hYTQg':_0x5adc26(0x9a),'aiCDI':function(_0xfdb477,_0x18f141){return _0xfdb477!==_0x18f141;},'zrwmE':_0x5adc26(0x119),'mUlpu':_0x5adc26(0x98),'qFtYS':_0x5adc26(0xf1),'GLtEr':function(_0x24a618,_0x4f34fe){return _0x24a618!==_0x4f34fe;},'oCJYC':_0x5adc26(0xdc),'npkof':_0x5adc26(0xaa),'KEocd':_0x5adc26(0xfe),'Tiaam':function(_0x16089b){return _0x16089b();},'XheEZ':function(_0x4f51b5){return _0x4f51b5();},'TQgIl':function(_0x331d7e,_0x21bdd2){return _0x331d7e===_0x21bdd2;},'nuggI':_0x5adc26(0xe7),'FNsSS':_0x5adc26(0x121),'OPawG':function(_0x2c67af,_0x27e8da,_0x208818,_0x4c0387,_0xad909,_0x6c2d9,_0x278add){return _0x2c67af(_0x27e8da,_0x208818,_0x4c0387,_0xad909,_0x6c2d9,_0x278add);},'uFytz':'delete-grid-called','rVPkv':'init-not-called','AsbOv':_0x5adc26(0x125),'LLpAD':function(_0x33d5ff){return _0x33d5ff();},'UscVG':function(_0x30d8fc,_0x1d7555,_0x45e434,_0x373606){return _0x30d8fc(_0x1d7555,_0x45e434,_0x373606);},'xRWdm':'Browserstack','ozCQX':function(_0x7cd8f9,_0x5433da){return _0x7cd8f9!==_0x5433da;},'NDvFU':'VvDNK','WOQpK':_0x5adc26(0xba),'mKaHv':function(_0x28d86a,_0x334011){return _0x28d86a(_0x334011);},'iKgPf':function(_0x502da9,_0x422f09){return _0x502da9===_0x422f09;},'KWyxp':'JflJo','fxltw':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','TSLIM':_0x5adc26(0x10f),'UTLSH':function(_0xb94c1f,_0x572e4c){return _0xb94c1f===_0x572e4c;},'CjrNn':_0x5adc26(0x8c),'koWba':_0x5adc26(0x101),'PmVFo':_0x5adc26(0x112),'VcgYS':_0x5adc26(0xda),'notyg':function(_0xcfb2a5,_0x580454,_0x444e95){return _0xcfb2a5(_0x580454,_0x444e95);},'qIfOG':function(_0x3e135b,_0xbaeb39,_0x94ecd2,_0x1b2955,_0x5193b9,_0x50f1b1){return _0x3e135b(_0xbaeb39,_0x94ecd2,_0x1b2955,_0x5193b9,_0x50f1b1);},'sAWaQ':_0x5adc26(0x11b),'vTgYp':function(_0x81b01c,_0x5f34aa){return _0x81b01c!==_0x5f34aa;},'MGUOO':_0x5adc26(0xd5),'XpEQq':_0x5adc26(0x11e),'ywAUk':function(_0x50922f,_0x220f6d){return _0x50922f!==_0x220f6d;},'nIqRh':function(_0x4cf0fd,_0x4acae7){return _0x4cf0fd!==_0x4acae7;},'TdcbF':_0x5adc26(0xeb),'BGniu':function(_0x3ca293,_0x40cb1d){return _0x3ca293===_0x40cb1d;},'BMmIl':_0x5adc26(0xf3),'MmSvB':_0x5adc26(0xd1),'QDrat':function(_0x4fd584,_0x38d00f){return _0x4fd584===_0x38d00f;},'HSees':function(_0x44908c,_0xc3539c,_0x5f1561,_0x17d401,_0x3be069,_0x2c3f43,_0x7f6c8f){return _0x44908c(_0xc3539c,_0x5f1561,_0x17d401,_0x3be069,_0x2c3f43,_0x7f6c8f);},'bzUTQ':_0x5adc26(0x90),'jrHyj':function(_0x35a05f,_0x49da7b,_0x544cc3,_0x898ef0,_0x28fa3c,_0x419104,_0xa3bee5){return _0x35a05f(_0x49da7b,_0x544cc3,_0x898ef0,_0x28fa3c,_0x419104,_0xa3bee5);},'zETIA':function(_0x41691d,_0x238068,_0x405f5e,_0x9347db,_0x10bdf0,_0x2c1595,_0x1cda00){return _0x41691d(_0x238068,_0x405f5e,_0x9347db,_0x10bdf0,_0x2c1595,_0x1cda00);},'WeCuQ':_0x5adc26(0x8a)};try{global_registry[_0x5adc26(0xd4)]=_0x81b355[_0x5adc26(0xa3)](uuidv4);if(!fs[_0x5adc26(0xe8)](_0x81b355[_0x5adc26(0x92)](getCredentialsPath))){if(_0x81b355[_0x5adc26(0xde)](_0x81b355[_0x5adc26(0xc7)],_0x81b355[_0x5adc26(0xc7)]))console[_0x5adc26(0x95)](_0x81b355['FNsSS']),await _0x81b355[_0x5adc26(0xe0)](sendInstrumentationEvent,_0x11d0d2,_0x81b355['uFytz'],messageTypes[_0x5adc26(0xf2)],_0x81b355['rVPkv'],null,_0x11d0d2),process[_0x5adc26(0xad)](0x1);else{const _0x4b5f09={};_0x4b5f09['description']=_0x81b355[_0x5adc26(0xa2)],_0x4b5f09[_0x5adc26(0xa4)]=_0x81b355[_0x5adc26(0xca)];const _0x2c5feb={};_0x2c5feb[_0x5adc26(0xd9)]=_0x81b355['hmHbl'],_0x2c5feb['type']=_0x81b355[_0x5adc26(0x124)],_0x2c5feb[_0x5adc26(0xf8)]=![];const _0x120599={};return _0x120599[_0x5adc26(0xf9)]=_0x4b5f09,_0x120599[_0x5adc26(0xbc)]=_0x2c5feb,_0x236f24[_0x5adc26(0xf0)](_0x58bf81['delete'])[_0x5adc26(0xfb)](_0x3715f1)[_0x5adc26(0xb7)](_0x120599)[_0x5adc26(0x96)](_0x81b355[_0x5adc26(0x11d)])[_0x5adc26(0xe5)];}}_0x81b355[_0x5adc26(0xe0)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf6)],null,null,_0x11d0d2);!_0x11d0d2[_0x5adc26(0xdd)]&&(_0x81b355[_0x5adc26(0xde)](_0x81b355[_0x5adc26(0x105)],_0x81b355[_0x5adc26(0x105)])?(console[_0x5adc26(0x95)](_0x81b355[_0x5adc26(0xaf)]),process[_0x5adc26(0xad)](0x1)):_0x24d9d4[_0x5adc26(0xd0)](_0x81b355[_0x5adc26(0xfa)]));const _0x5ba8b4=JSON['parse'](fs[_0x5adc26(0x10a)](_0x81b355[_0x5adc26(0x10c)](getCredentialsPath))),[_0x1dc571,_0x271b41]=await _0x81b355['UscVG'](getGridDetails,_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xf4)],_0x5ba8b4['Browserstack'][_0x5adc26(0xb6)],_0x11d0d2[_0x5adc26(0xdd)]);if(_0x271b41){const _0x28630d=_0x271b41[_0x5adc26(0x100)];let _0xd1894b=_0x5adc26(0x97)+_0x28630d[_0x5adc26(0x11a)]+_0x5adc26(0xe4)+_0x28630d['id']+_0x5adc26(0x102);_0x271b41[_0x5adc26(0xc5)]&&_0x81b355[_0x5adc26(0xde)](_0x271b41[_0x5adc26(0x9e)],_0x81b355[_0x5adc26(0xbf)])&&(_0x81b355['ozCQX'](_0x81b355[_0x5adc26(0x93)],_0x81b355[_0x5adc26(0xc1)])?_0xd1894b=_0x5adc26(0x97)+_0x28630d['name']+'\x22\x20and\x20ID\x20'+_0x28630d['id']+_0x5adc26(0xee)+_0x28630d[_0x5adc26(0xab)]+_0x5adc26(0xae)+_0x28630d['clusterId']+_0x5adc26(0x102):_0x5e113a[_0x5adc26(0xd0)](_0x5adc26(0x10e)+_0x4a88e5[_0x5adc26(0xab)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));const _0x1ff89b=await _0x81b355[_0x5adc26(0xcd)](inputConfirmation,_0xd1894b);(_0x81b355['TQgIl'](_0x1ff89b,undefined)||_0x81b355[_0x5adc26(0x116)](_0x1ff89b,null)||!(_0x81b355[_0x5adc26(0x116)](_0x1ff89b[_0x5adc26(0xe2)](),'y')||_0x81b355['TQgIl'](_0x1ff89b[_0x5adc26(0xe2)](),'n')))&&(_0x81b355[_0x5adc26(0xde)](_0x81b355['KWyxp'],_0x81b355[_0x5adc26(0xc2)])?(console[_0x5adc26(0x95)](_0x81b355[_0x5adc26(0xf7)]),await _0x81b355[_0x5adc26(0xe0)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf2)],_0x81b355[_0x5adc26(0xcb)],null,_0x11d0d2),process[_0x5adc26(0xad)](0x1)):_0x328051[_0x5adc26(0xad)](0x0));_0x81b355['TQgIl'](_0x1ff89b[_0x5adc26(0xe2)](),'n')&&(_0x81b355['UTLSH'](_0x81b355['CjrNn'],_0x81b355[_0x5adc26(0xce)])?(_0x5344d3['warn'](_0x5adc26(0x108)+_0x2371ac+_0x5adc26(0xe9)),_0x3603fc=![]):process[_0x5adc26(0xad)](0x0));const _0x3d7d29=WS_ENDPOINT[_0x5adc26(0xa7)](_0x81b355[_0x5adc26(0x110)],_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xf4)])[_0x5adc26(0xa7)](_0x81b355[_0x5adc26(0x109)],_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xb6)]),_0x1df103={};_0x1df103[_0x5adc26(0xa9)]=ws,_0x1df103['connectionTimeout']=0x36ee80;const _0x906625=new ReconnectingWebSocket(_0x3d7d29,[],_0x1df103);global_registry[_0x5adc26(0xd7)]=_0x28630d['region'];const _0x4e771f=_0x28630d[_0x5adc26(0xb3)],_0x5ee590=await _0x81b355[_0x5adc26(0xe0)](getCloudProviderObject,_0x4e771f,_0x28630d[_0x5adc26(0xab)],_0x28630d[_0x5adc26(0x11a)],_0x906625,webSocketUtils,_0x11d0d2),_0x303769=await _0x5ee590[_0x5adc26(0x117)]();if(_0x303769){const _0xf15f05=_0x81b355[_0x5adc26(0xcd)](kebabCase,_0x28630d['name']),[_0x1cf5cc,_0x1095fc,_0x55065c,_0xe3da3,_0x640e08,_0x30025c]=await _0x81b355[_0x5adc26(0x115)](createK8sClient,_0x5ee590,_0x11d0d2[_0x5adc26(0x123)]);let _0x45cf96=!![];const _0x37c4aa={};_0x37c4aa[_0x5adc26(0x11a)]=_0xf15f05,await _0x1cf5cc[_0x5adc26(0x104)](_0x37c4aa)['then'](_0x1101ad=>{const _0x4c80be=_0x5adc26;_0x81b355[_0x4c80be(0x87)](_0x81b355[_0x4c80be(0x111)],_0x81b355[_0x4c80be(0x118)])?logger['info'](_0x4c80be(0x108)+_0xf15f05+_0x4c80be(0xd3)):_0x5631b0[_0x4c80be(0x100)](_0x4c80be(0x108)+_0xdd6ddc+_0x4c80be(0xd3));})['catch'](_0x49e44c=>{const _0xf47bae=_0x5adc26;_0x81b355[_0xf47bae(0xac)](_0x81b355[_0xf47bae(0x8e)],_0x81b355[_0xf47bae(0xc9)])?(logger[_0xf47bae(0xd0)](_0xf47bae(0x108)+_0xf15f05+_0xf47bae(0xe9)),_0x45cf96=![]):(_0x972b97['info'](_0x81b355[_0xf47bae(0x114)]),_0x46d6ae['exit'](0x0));});if(_0x45cf96){await _0x81b355[_0x5adc26(0x99)](removeGridComponents,_0x1cf5cc,_0x1095fc,_0x55065c,_0xe3da3,_0xf15f05);if(_0x271b41[_0x5adc26(0xc5)]){const _0x1552e3=await _0x5ee590[_0x5adc26(0x122)]();_0x1552e3?_0x81b355['iKgPf'](_0x81b355[_0x5adc26(0x126)],_0x81b355[_0x5adc26(0x126)])?await _0x5ee590['deleteCluster'](_0x1cf5cc,_0x28630d[_0x5adc26(0xb0)]):_0x21ea0c='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x4f7f90[_0x5adc26(0x11a)]+_0x5adc26(0xe4)+_0x5efcc9['id']+_0x5adc26(0xee)+_0x476f77[_0x5adc26(0xab)]+'\x22\x20with\x20ID\x20'+_0x23a80e[_0x5adc26(0xbd)]+_0x5adc26(0x102):_0x81b355[_0x5adc26(0xa0)](_0x81b355['MGUOO'],_0x81b355[_0x5adc26(0xa1)])?(_0x912dab[_0x5adc26(0x95)](_0x81b355[_0x5adc26(0xaf)]),_0xc2dac8[_0x5adc26(0xad)](0x1)):logger[_0x5adc26(0xd0)](_0x5adc26(0x10e)+_0x28630d[_0x5adc26(0xab)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster');}}}else logger['warn'](_0x81b355[_0x5adc26(0xfa)]);const _0x4b1900=_0x5adc26(0xd6)+AG_API_URL+'/packages/cli/grid/'+_0x11d0d2[_0x5adc26(0xdd)],_0x2b199a={'method':_0x81b355[_0x5adc26(0x9c)],'headers':_0x81b355[_0x5adc26(0x115)](getAuthHeader,_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xf4)],_0x5ba8b4[_0x5adc26(0xc3)][_0x5adc26(0xb6)]),'throwHttpErrors':![]},_0x442974=await _0x81b355['notyg'](got,_0x4b1900,_0x2b199a);_0x81b355['ywAUk'](_0x442974,null)&&_0x81b355[_0x5adc26(0xdb)](_0x442974,undefined)&&_0x81b355['TQgIl'](_0x442974[_0x5adc26(0xe3)],0xc8)&&(logger[_0x5adc26(0x100)](_0x81b355[_0x5adc26(0x114)]),process[_0x5adc26(0xad)](0x0)),logger[_0x5adc26(0x95)]('Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20'+_0x442974[_0x5adc26(0xe1)]),await _0x81b355[_0x5adc26(0xe0)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes['ERROR'],_0x81b355[_0x5adc26(0x89)],_0x1dc571,_0x11d0d2),process[_0x5adc26(0xad)](0x1);}_0x81b355[_0x5adc26(0x94)](_0x1dc571['statusCode'],0x191)&&(logger[_0x5adc26(0x95)](_0x81b355[_0x5adc26(0x103)]),await _0x81b355['OPawG'](sendInstrumentationEvent,_0x11d0d2,_0x81b355['uFytz'],messageTypes['ERROR'],_0x81b355[_0x5adc26(0x9d)],null,_0x11d0d2),process[_0x5adc26(0xad)](0x1)),_0x81b355[_0x5adc26(0xdf)](_0x1dc571[_0x5adc26(0xe3)],0x190)&&(logger[_0x5adc26(0x95)](JSON[_0x5adc26(0x120)](_0x1dc571[_0x5adc26(0xe1)])[_0x5adc26(0x9f)]),await _0x81b355[_0x5adc26(0x11f)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf2)],_0x81b355[_0x5adc26(0xe6)],null,_0x11d0d2),process[_0x5adc26(0xad)](0x1)),logger[_0x5adc26(0x95)](_0x5adc26(0xc4)+JSON['stringify'](_0x1dc571)),await _0x81b355[_0x5adc26(0xbe)](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf2)],_0x81b355[_0x5adc26(0x89)],_0x1dc571,_0x11d0d2),process[_0x5adc26(0xad)](0x1);}catch(_0x421b90){logger[_0x5adc26(0x95)](_0x5adc26(0xa5)+_0x421b90[_0x5adc26(0x91)]),await _0x81b355['zETIA'](sendInstrumentationEvent,_0x11d0d2,_0x81b355[_0x5adc26(0x88)],messageTypes[_0x5adc26(0xf2)],_0x81b355[_0x5adc26(0xbb)],_0x421b90,_0x11d0d2),process[_0x5adc26(0xad)](0x1);}};function a11_0x2356(){const _0x459165=['4018870RmfeAK','aGVis','DELETE','HSees','parse','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','isBrowserstackCluster','skipTlsCertVerify','htvHr','IsAGe','sAWaQ','aiCDI','uFytz','TdcbF','unknown-error','got','LpSqr','../../utils/utilityMethods','oCJYC','../../utils/userInput','invalid-grid-id','stack','XheEZ','NDvFU','BGniu','error','help','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','BZgTn','qIfOG','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','uuid','XpEQq','MmSvB','clusterSpawnedVia','message','vTgYp','MGUOO','XMzie','Tiaam','type','Failed\x20to\x20delete\x20resources!\x20Error:\x20','74744ETfFDB','replace','../../config/constants','WebSocket','KHJeu','clusterName','GLtEr','exit','\x22\x20with\x20ID\x20','KEocd','region','1270wXEVmQ','handler','cloudProvider','../../utils/webSocketUtils','6zfaJVh','password','options','command','2676138liPXvj','iuKGR','WeCuQ','skip-tls-cert-verify','clusterId','jrHyj','xRWdm','IQpMJ','WOQpK','KWyxp','Browserstack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','onlyGridInCluster','DEeCi','nuggI','4955321cledKv','npkof','lJJKN','TSLIM','soRul','mKaHv','koWba','1611UJdSik','warn','unauthorised','504nqgofF','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','requestId','EgQsl','https://','clusterRegion','LtyVT','description','<PasswordPlaceholder>','nIqRh','fvAjZ','gridId','TQgIl','QDrat','OPawG','body','toLowerCase','statusCode','\x22\x20and\x20ID\x20','argv','bzUTQ','aNeQM','existsSync','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','Skip\x20insecure\x20cert\x20verification.','server-error','reconnecting-websocket','string','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','../../cloudproviders/utils','usage','Successfully\x20deleted\x20the\x20grid','ERROR','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','username','545677IXfDtT','INFO','fxltw','default','grid-id','hYTQg','epilogue','delete','41437pgVHnU','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Pass\x20the\x20ID\x20of\x20the\x20Grid','info','HyizB','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','BMmIl','readNamespace','AsbOv','../../utils/createk8sClient','desc','Namespace:\x20','VcgYS','readFileSync','boolean','LLpAD','3844rEMJJu','Cluster:\x20','invalid-input','PmVFo','zrwmE','<UsernamePlaceholder>','eTdwW','qFtYS','notyg','iKgPf','isClusterPresent','mUlpu','ofPvJ','name','eUxgK'];a11_0x2356=function(){return _0x459165;};return a11_0x2356();}
1
+ function a11_0xc06f(_0x1640ba,_0x42cca9){const _0x2bfde2=a11_0x2bfd();return a11_0xc06f=function(_0xc06f36,_0x3c0e0b){_0xc06f36=_0xc06f36-0xf0;let _0x1570cb=_0x2bfde2[_0xc06f36];return _0x1570cb;},a11_0xc06f(_0x1640ba,_0x42cca9);}const a11_0x4b589d=a11_0xc06f;(function(_0x419b8d,_0x1ffac2){const _0x54d002=a11_0xc06f,_0x4dc529=_0x419b8d();while(!![]){try{const _0x281bc5=-parseInt(_0x54d002(0x102))/0x1*(-parseInt(_0x54d002(0x188))/0x2)+parseInt(_0x54d002(0x181))/0x3+-parseInt(_0x54d002(0x124))/0x4*(-parseInt(_0x54d002(0x129))/0x5)+-parseInt(_0x54d002(0x127))/0x6+-parseInt(_0x54d002(0x161))/0x7+-parseInt(_0x54d002(0x141))/0x8+parseInt(_0x54d002(0xfc))/0x9*(-parseInt(_0x54d002(0x16b))/0xa);if(_0x281bc5===_0x1ffac2)break;else _0x4dc529['push'](_0x4dc529['shift']());}catch(_0x105f2e){_0x4dc529['push'](_0x4dc529['shift']());}}}(a11_0x2bfd,0xc1388));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a11_0x4b589d(0x11b)),ws=require('ws'),ReconnectingWebSocket=require(a11_0x4b589d(0x132)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE,WS_ENDPOINT}=require(a11_0x4b589d(0xfa)),{logger}=require('../../config/logger'),{getCloudProviderObject}=require(a11_0x4b589d(0x159)),{removeGridComponents,deleteClusterAndDependencies}=require('../../utils/gridComponents'),{sendInstrumentationEvent}=require(a11_0x4b589d(0x12e)),{inputConfirmation}=require(a11_0x4b589d(0x165)),{createK8sClient}=require(a11_0x4b589d(0x187)),{kebabCase,getCredentialsPath,getGridDetails,getAuthHeader}=require('../../utils/utilityMethods'),webSocketUtils=require(a11_0x4b589d(0x142));function a11_0x2bfd(){const _0x110878=['clusterSpawnedVia','onlyGridInCluster','TCGAZ','GJeIx','unauthorised','4253703cxIMPp','https://','connectionTimeout','ezhpo','uSJIe','EHcxo','../../utils/createk8sClient','4xQOKSh','help','OveMb','nwtQg','string','qgzUd','kWnIx','dgeJN','replace','Cluster:\x20','default','stbIt','../../config/constants','RqWKy','351dxvwnD','clusterId','Delete\x20an\x20Automation\x20grid.','existsSync','yrFGm','TbgtC','30721AoNpAg','yejCk','CWctX','region','handler','name','Successfully\x20deleted\x20the\x20grid','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','invalid-input','OSnxh','password','azNth','wWVuR','OPaUh','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','delete-grid-called','JUHoH','RDMFL','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Skip\x20insecure\x20cert\x20verification.','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','shhjR','VeepP','vtNER','vvNrT','uuid','ERROR','\x22\x20and\x20ID\x20','ERnnB','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','Inpiv','<UsernamePlaceholder>','type','vxlEZ','12PKkvNn','warn','then','5852244fNpRtm','clusterRegion','2501095SJXrjU','cloudProvider','hQtbB','qfMjF','\x20found\x20in\x20the\x20cluster,\x20proceeding\x20with\x20the\x20deletion','../../utils/instrumentationUtils','cvppL','jyXVb','Browserstack','reconnecting-websocket','yDbwa','WebSocket','readFileSync','exit','UXVqB','usage','pHCca','ITgIX','argv','HQiJh','skip-tls-cert-verify','options','isClusterPresent','kdNjv','1900712utlpsm','../../utils/webSocketUtils','vnovi','gridId','bLlGm','epilogue','DcsGk','skipTlsCertVerify','stack','UKoff','uvvuh','info','clusterName','Cluster\x20is\x20not\x20present,\x20marking\x20the\x20grid\x20as\x20deleted','unknown-error','desc','eIpkH','mKykG','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','error','\x20does\x20not\x20exists,\x20marking\x20grid\x20as\x20deleted','boolean','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','PEHxd','../../cloudproviders/utils','toLowerCase','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','command','body','username','invalid-grid-id','deleteCluster','819413JRfSjQ','PDoLL','GjOst','description','../../utils/userInput','parse','jHDAg','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','bKEIA','delete','220140YqQdLk','BQnnx','XVOHg','requestId','cpshk','\x22\x20with\x20ID\x20','HHbcS','ucppt','/packages/cli/grid/','CLsYr','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','Namespace:\x20','xrFkd','yepNC','statusCode','JiZCE','init-not-called'];a11_0x2bfd=function(){return _0x110878;};return a11_0x2bfd();}exports[a11_0x4b589d(0x15c)]='grid',exports[a11_0x4b589d(0x150)]=a11_0x4b589d(0xfe),exports['builder']=function(_0x135dab){const _0x27f1ed=a11_0x4b589d,_0x2b8036={};_0x2b8036['OSnxh']='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x2b8036[_0x27f1ed(0xf9)]=_0x27f1ed(0xf2),_0x2b8036[_0x27f1ed(0x119)]='Skip\x20insecure\x20cert\x20verification.',_0x2b8036[_0x27f1ed(0x120)]=_0x27f1ed(0x156),_0x2b8036[_0x27f1ed(0xf0)]=_0x27f1ed(0x189);const _0x1bdc40=_0x2b8036,_0x287885={};_0x287885[_0x27f1ed(0x164)]=_0x1bdc40[_0x27f1ed(0x10b)],_0x287885[_0x27f1ed(0x122)]=_0x1bdc40[_0x27f1ed(0xf9)];const _0x37ff2d={};_0x37ff2d[_0x27f1ed(0x164)]=_0x1bdc40['vtNER'],_0x37ff2d['type']=_0x1bdc40[_0x27f1ed(0x120)],_0x37ff2d[_0x27f1ed(0xf8)]=![];const _0x5abbf6={};return _0x5abbf6['grid-id']=_0x287885,_0x5abbf6[_0x27f1ed(0x13d)]=_0x37ff2d,_0x135dab[_0x27f1ed(0x138)](HELP_HEADER_MESSAGE['delete'])[_0x27f1ed(0x146)](HELP_FOOTER_MESSAGE)['options'](_0x5abbf6)['help'](_0x1bdc40[_0x27f1ed(0xf0)])[_0x27f1ed(0x13b)];},exports[a11_0x4b589d(0x106)]=async function(_0x503469){const _0x1537fa=a11_0x4b589d,_0x469d82={'jHDAg':_0x1537fa(0x108),'CLsYr':_0x1537fa(0x114),'ezhpo':function(_0x46df98,_0x208a33){return _0x46df98!==_0x208a33;},'HQiJh':'gFLUf','jyXVb':'JOJdF','bKEIA':_0x1537fa(0xf3),'eIpkH':'Pass\x20the\x20ID\x20of\x20the\x20Grid','usGVR':'string','pRrNv':_0x1537fa(0x115),'nwtQg':_0x1537fa(0x156),'JUHoH':_0x1537fa(0x189),'bLlGm':_0x1537fa(0x14e),'UXVqB':function(_0x129870){return _0x129870();},'XVJEE':function(_0x50e664){return _0x50e664();},'BQnnx':function(_0x310af8,_0x2784ac){return _0x310af8===_0x2784ac;},'OPaUh':_0x1537fa(0x13a),'vvNrT':_0x1537fa(0x153),'uvvuh':function(_0x765cb8,_0x143982,_0x12e5c6,_0x111262,_0x1fff80,_0x5a7cc6,_0x43c5ce){return _0x765cb8(_0x143982,_0x12e5c6,_0x111262,_0x1fff80,_0x5a7cc6,_0x43c5ce);},'cvppL':_0x1537fa(0x111),'TbgtC':_0x1537fa(0x17b),'CWctX':function(_0x582c60,_0x542a22){return _0x582c60!==_0x542a22;},'vnovi':_0x1537fa(0x16d),'yejCk':function(_0x47b6ad){return _0x47b6ad();},'shhjR':function(_0x1c4748,_0x4491e3,_0x4b9236,_0x4f0db7){return _0x1c4748(_0x4491e3,_0x4b9236,_0x4f0db7);},'UKoff':_0x1537fa(0x131),'dgeJN':_0x1537fa(0x10e),'uSJIe':function(_0x159572,_0x2d8236){return _0x159572(_0x2d8236);},'DcsGk':_0x1537fa(0x100),'yepNC':_0x1537fa(0x186),'VeepP':_0x1537fa(0x11f),'xrFkd':_0x1537fa(0x10a),'kWnIx':_0x1537fa(0x133),'pHCca':_0x1537fa(0x121),'ZxbLc':'<PasswordPlaceholder>','ERnnB':function(_0xc49fbb,_0x40f9af,_0x1b8886,_0x29d860,_0x5394f3,_0xa962e1,_0x2139dd){return _0xc49fbb(_0x40f9af,_0x1b8886,_0x29d860,_0x5394f3,_0xa962e1,_0x2139dd);},'ucppt':function(_0x408746,_0x432b20,_0x1363c8){return _0x408746(_0x432b20,_0x1363c8);},'HBzJQ':function(_0x341bd4,_0x2da2c2,_0x11a057,_0x1d01fd,_0x283b60,_0x59531a){return _0x341bd4(_0x2da2c2,_0x11a057,_0x1d01fd,_0x283b60,_0x59531a);},'cpshk':function(_0x4529d7,_0x4adc67){return _0x4529d7===_0x4adc67;},'mKykG':_0x1537fa(0x162),'RDMFL':_0x1537fa(0x17e),'JiZCE':'DELETE','GjOst':function(_0x5ef728,_0x357eb7,_0x43684c){return _0x5ef728(_0x357eb7,_0x43684c);},'azNth':function(_0x3e1be7,_0x64e202){return _0x3e1be7!==_0x64e202;},'vxlEZ':function(_0x47d9d0,_0x5afaaf){return _0x47d9d0===_0x5afaaf;},'qfMjF':function(_0x41e692,_0x1a14d8,_0x1c15f4,_0x4cf792,_0x1c2960,_0x48e90d,_0x56e20f){return _0x41e692(_0x1a14d8,_0x1c15f4,_0x4cf792,_0x1c2960,_0x48e90d,_0x56e20f);},'HHbcS':'server-error','RqWKy':function(_0x1345d1,_0x2bdaf9){return _0x1345d1===_0x2bdaf9;},'zuxpc':_0x1537fa(0x110),'PEHxd':_0x1537fa(0x180),'hQtbB':function(_0x59c370,_0x4e6680,_0x428654,_0x3dd866,_0x178ad3,_0x108e70,_0x5a9167){return _0x59c370(_0x4e6680,_0x428654,_0x3dd866,_0x178ad3,_0x108e70,_0x5a9167);},'GJeIx':_0x1537fa(0x15f),'Ocdtd':function(_0x3161fe,_0x4b4eea,_0xda8a2e,_0x5d2b9a,_0x484f5d,_0x35ce35,_0x474449){return _0x3161fe(_0x4b4eea,_0xda8a2e,_0x5d2b9a,_0x484f5d,_0x35ce35,_0x474449);},'kdNjv':_0x1537fa(0x14f)};try{global_registry[_0x1537fa(0x16e)]=_0x469d82[_0x1537fa(0x137)](uuidv4);!fs[_0x1537fa(0xff)](_0x469d82['XVJEE'](getCredentialsPath))&&(_0x469d82[_0x1537fa(0x16c)](_0x469d82[_0x1537fa(0x10f)],_0x469d82[_0x1537fa(0x10f)])?(console[_0x1537fa(0x154)](_0x469d82[_0x1537fa(0x11a)]),await _0x469d82['uvvuh'](sendInstrumentationEvent,_0x503469,_0x469d82['cvppL'],messageTypes[_0x1537fa(0x11c)],_0x469d82[_0x1537fa(0x101)],null,_0x503469),process[_0x1537fa(0x136)](0x1)):_0x30d37a[_0x1537fa(0x125)](_0x1537fa(0xf7)+_0x5a4cf8['clusterName']+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));_0x469d82['uvvuh'](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes['INFO'],null,null,_0x503469);!_0x503469['gridId']&&(_0x469d82[_0x1537fa(0x104)](_0x469d82[_0x1537fa(0x143)],_0x469d82[_0x1537fa(0x143)])?_0x1c4df7=_0x1537fa(0x15b)+_0x5967ef[_0x1537fa(0x107)]+_0x1537fa(0x11d)+_0x12efb3['id']+_0x1537fa(0x168)+_0x13055c[_0x1537fa(0x14d)]+'\x22\x20with\x20ID\x20'+_0xa5587e['clusterId']+_0x1537fa(0x157):(console[_0x1537fa(0x154)](_0x469d82[_0x1537fa(0x174)]),process[_0x1537fa(0x136)](0x1)));const _0x23e592=JSON[_0x1537fa(0x166)](fs[_0x1537fa(0x135)](_0x469d82[_0x1537fa(0x103)](getCredentialsPath))),[_0x13da76,_0x28eb5f]=await _0x469d82[_0x1537fa(0x117)](getGridDetails,_0x23e592['Browserstack'][_0x1537fa(0x15e)],_0x23e592[_0x1537fa(0x131)][_0x1537fa(0x10c)],_0x503469[_0x1537fa(0x144)]);if(_0x28eb5f){const _0x132a32=_0x28eb5f[_0x1537fa(0x14c)];let _0x3eacc0=_0x1537fa(0x15b)+_0x132a32['name']+_0x1537fa(0x11d)+_0x132a32['id']+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)';_0x28eb5f[_0x1537fa(0x17d)]&&_0x469d82[_0x1537fa(0x16c)](_0x28eb5f[_0x1537fa(0x17c)],_0x469d82[_0x1537fa(0x14a)])&&(_0x469d82[_0x1537fa(0x16c)](_0x469d82[_0x1537fa(0xf5)],_0x469d82[_0x1537fa(0xf5)])?_0x3eacc0='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x132a32['name']+_0x1537fa(0x11d)+_0x132a32['id']+_0x1537fa(0x168)+_0x132a32[_0x1537fa(0x14d)]+_0x1537fa(0x170)+_0x132a32[_0x1537fa(0xfd)]+_0x1537fa(0x157):(_0x30bdd9[_0x1537fa(0x14c)](_0x469d82[_0x1537fa(0x167)]),_0x2e1d67[_0x1537fa(0x136)](0x0)));const _0x156fe4=await _0x469d82[_0x1537fa(0x185)](inputConfirmation,_0x3eacc0);(_0x469d82[_0x1537fa(0x16c)](_0x156fe4,undefined)||_0x469d82[_0x1537fa(0x16c)](_0x156fe4,null)||!(_0x469d82[_0x1537fa(0x16c)](_0x156fe4[_0x1537fa(0x15a)](),'y')||_0x469d82['BQnnx'](_0x156fe4['toLowerCase'](),'n')))&&(_0x469d82[_0x1537fa(0x104)](_0x469d82[_0x1537fa(0x147)],_0x469d82[_0x1537fa(0x178)])?(console[_0x1537fa(0x154)](_0x469d82[_0x1537fa(0x118)]),await _0x469d82[_0x1537fa(0x14b)](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes[_0x1537fa(0x11c)],_0x469d82[_0x1537fa(0x177)],null,_0x503469),process['exit'](0x1)):_0x547ffc[_0x1537fa(0x14c)](_0x1537fa(0x176)+_0x5ba362+_0x1537fa(0x12d)));_0x469d82[_0x1537fa(0x16c)](_0x156fe4[_0x1537fa(0x15a)](),'n')&&(_0x469d82['ezhpo'](_0x469d82[_0x1537fa(0xf4)],_0x469d82['kWnIx'])?(_0x21dc54[_0x1537fa(0x154)](_0x469d82[_0x1537fa(0x174)]),_0x1744b0['exit'](0x1)):process['exit'](0x0));const _0x21f6ec=WS_ENDPOINT[_0x1537fa(0xf6)](_0x469d82[_0x1537fa(0x139)],_0x23e592[_0x1537fa(0x131)]['username'])[_0x1537fa(0xf6)](_0x469d82['ZxbLc'],_0x23e592[_0x1537fa(0x131)][_0x1537fa(0x10c)]),_0x12da54={};_0x12da54[_0x1537fa(0x134)]=ws,_0x12da54[_0x1537fa(0x183)]=0x36ee80;const _0x1210dc=new ReconnectingWebSocket(_0x21f6ec,[],_0x12da54);global_registry[_0x1537fa(0x128)]=_0x132a32[_0x1537fa(0x105)];const _0x3e0d1c=_0x132a32[_0x1537fa(0x12a)],_0x5d072c=await _0x469d82['ERnnB'](getCloudProviderObject,_0x3e0d1c,_0x132a32[_0x1537fa(0x14d)],_0x132a32[_0x1537fa(0x107)],_0x1210dc,webSocketUtils,_0x503469),_0x5d31a0=await _0x5d072c[_0x1537fa(0x13f)]();if(_0x5d31a0){const _0x1b91e5=_0x469d82[_0x1537fa(0x185)](kebabCase,_0x132a32[_0x1537fa(0x107)]),[_0x3b0adc,_0x18fe5c,_0x1954ee,_0xae18d7,_0xd9e8fd,_0x1dd20d]=await _0x469d82[_0x1537fa(0x172)](createK8sClient,_0x5d072c,_0x503469[_0x1537fa(0x148)]);let _0x540032=!![];const _0x3f6f1a={};_0x3f6f1a[_0x1537fa(0x107)]=_0x1b91e5,await _0x3b0adc['readNamespace'](_0x3f6f1a)[_0x1537fa(0x126)](_0x2bb048=>{const _0x4ead59=_0x1537fa;_0x469d82[_0x4ead59(0x184)](_0x469d82[_0x4ead59(0x13c)],_0x469d82[_0x4ead59(0x13c)])?(_0x40c775['warn'](_0x4ead59(0x176)+_0x215a4b+_0x4ead59(0x155)),_0x580809=![]):logger[_0x4ead59(0x14c)](_0x4ead59(0x176)+_0x1b91e5+_0x4ead59(0x12d));})['catch'](_0x5c8836=>{const _0x2459ad=_0x1537fa;_0x469d82[_0x2459ad(0x184)](_0x469d82[_0x2459ad(0x130)],_0x469d82[_0x2459ad(0x169)])?(logger[_0x2459ad(0x125)](_0x2459ad(0x176)+_0x1b91e5+_0x2459ad(0x155)),_0x540032=![]):_0xf8ba8f[_0x2459ad(0x136)](0x0);});if(_0x540032){await _0x469d82['HBzJQ'](removeGridComponents,_0x3b0adc,_0x18fe5c,_0x1954ee,_0xae18d7,_0x1b91e5);if(_0x28eb5f[_0x1537fa(0x17d)]){const _0x49844a=await _0x5d072c['isBrowserstackCluster']();if(_0x49844a){if(_0x469d82[_0x1537fa(0x16f)](_0x469d82[_0x1537fa(0x152)],_0x469d82[_0x1537fa(0x152)]))await _0x5d072c[_0x1537fa(0x160)](_0x3b0adc,_0x132a32['region']);else{const _0x4484b8={};_0x4484b8[_0x1537fa(0x164)]=_0x469d82[_0x1537fa(0x151)],_0x4484b8['type']=_0x469d82['usGVR'];const _0xe02ec9={};_0xe02ec9[_0x1537fa(0x164)]=_0x469d82['pRrNv'],_0xe02ec9[_0x1537fa(0x122)]=_0x469d82[_0x1537fa(0xf1)],_0xe02ec9[_0x1537fa(0xf8)]=![];const _0x2e1155={};return _0x2e1155['grid-id']=_0x4484b8,_0x2e1155[_0x1537fa(0x13d)]=_0xe02ec9,_0x463b34[_0x1537fa(0x138)](_0x1a07c0[_0x1537fa(0x16a)])[_0x1537fa(0x146)](_0xabd589)[_0x1537fa(0x13e)](_0x2e1155)['help'](_0x469d82[_0x1537fa(0x112)])[_0x1537fa(0x13b)];}}else _0x469d82['CWctX'](_0x469d82[_0x1537fa(0x113)],_0x469d82[_0x1537fa(0x113)])?_0x260985[_0x1537fa(0x125)](_0x469d82[_0x1537fa(0x145)]):logger['warn'](_0x1537fa(0xf7)+_0x132a32['clusterName']+_0x1537fa(0x175));}}}else logger[_0x1537fa(0x125)](_0x469d82['bLlGm']);const _0x4a5eac=_0x1537fa(0x182)+AG_API_URL+_0x1537fa(0x173)+_0x503469[_0x1537fa(0x144)],_0x529008={'method':_0x469d82[_0x1537fa(0x17a)],'headers':_0x469d82['GjOst'](getAuthHeader,_0x23e592[_0x1537fa(0x131)][_0x1537fa(0x15e)],_0x23e592['Browserstack']['password']),'throwHttpErrors':![]},_0x20bff1=await _0x469d82[_0x1537fa(0x163)](got,_0x4a5eac,_0x529008);_0x469d82[_0x1537fa(0x10d)](_0x20bff1,null)&&_0x469d82[_0x1537fa(0x10d)](_0x20bff1,undefined)&&_0x469d82[_0x1537fa(0x123)](_0x20bff1[_0x1537fa(0x179)],0xc8)&&(logger[_0x1537fa(0x14c)](_0x469d82[_0x1537fa(0x167)]),process['exit'](0x0)),logger[_0x1537fa(0x154)](_0x1537fa(0x116)+_0x20bff1[_0x1537fa(0x15d)]),await _0x469d82[_0x1537fa(0x12c)](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes[_0x1537fa(0x11c)],_0x469d82[_0x1537fa(0x171)],_0x13da76,_0x503469),process['exit'](0x1);}_0x469d82[_0x1537fa(0xfb)](_0x13da76[_0x1537fa(0x179)],0x191)&&(logger['error'](_0x469d82['zuxpc']),await _0x469d82[_0x1537fa(0x11e)](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes[_0x1537fa(0x11c)],_0x469d82[_0x1537fa(0x158)],null,_0x503469),process['exit'](0x1)),_0x469d82[_0x1537fa(0x123)](_0x13da76[_0x1537fa(0x179)],0x190)&&(logger[_0x1537fa(0x154)](JSON['parse'](_0x13da76[_0x1537fa(0x15d)])['message']),await _0x469d82[_0x1537fa(0x12b)](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes['ERROR'],_0x469d82[_0x1537fa(0x17f)],null,_0x503469),process['exit'](0x1)),logger[_0x1537fa(0x154)](_0x1537fa(0x109)+JSON['stringify'](_0x13da76)),await _0x469d82['Ocdtd'](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes['ERROR'],_0x469d82[_0x1537fa(0x171)],_0x13da76,_0x503469),process[_0x1537fa(0x136)](0x1);}catch(_0x175c86){logger['error']('Failed\x20to\x20delete\x20resources!\x20Error:\x20'+_0x175c86[_0x1537fa(0x149)]),await _0x469d82[_0x1537fa(0x12c)](sendInstrumentationEvent,_0x503469,_0x469d82[_0x1537fa(0x12f)],messageTypes[_0x1537fa(0x11c)],_0x469d82[_0x1537fa(0x140)],_0x175c86,_0x503469),process[_0x1537fa(0x136)](0x1);}};
@@ -1 +1 @@
1
- function a12_0x21e0(){const _0x3542ae=['Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','tdFiF','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','xiQaW','debug','ERROR','75whpmuI','zGgtY','gMtSZ','help','../utils/userInput','command','AnViP','error','username','existsSync','strict','argv','rZaOy','../config/constants','qxNDu','utf-8','ROygq','bstackUsername','bstackAccesskey','DFvWf','OLHVX','/automate/plan.json','11864gENRVC','QNWWQ','NFLJf','TxluJ','YsWAs','string','uuid','builder','ILTUn','BROWSERSTACK_USERNAME','GET','handler','readFileSync','BROWSERSTACK_ACCESS_KEY','enjAb','Browserstack','mkdirSync','PADZA','ffUSi','EBnyr','168512BXAxDW','parse','GvIxH','bstack-accesskey','cItLB','266412buOULj','YOBIu','CXwHA','CzzfK','AWpUP','cGfPX','init','pdTCo','KrxRC','NwTBk','type','usage','40CCcURy','description','bstack-username','writeFileSync','Fjzxa','IrRdR','util','VkOEm','stringify','vnBCb','uDePm','524601lesGSm','requestId','exit','qRALm','options','299844JfFkpV','../config/logger','recommendCommands','nFgdE','JHdBu','desc','Dmiuy','129984YCsKoY','unknown-error','../utils/utilityMethods','env','903urGpOr','wrong-creds','epilogue','got','XvcYF','init-called','MAOJf','BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','password','1858455sLEhid','YZftM','statusCode','TiTXH','https://','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.'];a12_0x21e0=function(){return _0x3542ae;};return a12_0x21e0();}const a12_0x353539=a12_0x14fe;(function(_0x3cd4cc,_0x2dff28){const _0x3b3133=a12_0x14fe,_0x77fa4a=_0x3cd4cc();while(!![]){try{const _0x5d290c=parseInt(_0x3b3133(0x127))/0x1+-parseInt(_0x3b3133(0x10b))/0x2+-parseInt(_0x3b3133(0x12c))/0x3+-parseInt(_0x3b3133(0x133))/0x4+-parseInt(_0x3b3133(0x14d))/0x5*(-parseInt(_0x3b3133(0x110))/0x6)+-parseInt(_0x3b3133(0x137))/0x7*(-parseInt(_0x3b3133(0xf7))/0x8)+parseInt(_0x3b3133(0x141))/0x9*(-parseInt(_0x3b3133(0x11c))/0xa);if(_0x5d290c===_0x2dff28)break;else _0x77fa4a['push'](_0x77fa4a['shift']());}catch(_0x43e590){_0x77fa4a['push'](_0x77fa4a['shift']());}}}(a12_0x21e0,0x52d3a));function a12_0x14fe(_0x298925,_0x556c19){const _0x21e00e=a12_0x21e0();return a12_0x14fe=function(_0x14fef1,_0x3ca55e){_0x14fef1=_0x14fef1-0xeb;let _0x254003=_0x21e00e[_0x14fef1];return _0x254003;},a12_0x14fe(_0x298925,_0x556c19);}const fs=require('fs'),util=require(a12_0x353539(0x122)),got=require(a12_0x353539(0x13a)),{v4:uuidv4}=require(a12_0x353539(0xfd)),{logger}=require(a12_0x353539(0x12d)),{inputBstackKeys}=require(a12_0x353539(0x151)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x353539(0xee)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x353539(0x135)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils');exports[a12_0x353539(0x152)]=a12_0x353539(0x116),exports[a12_0x353539(0x131)]=a12_0x353539(0x147),exports[a12_0x353539(0xfe)]=function(_0x389cc8){const _0x5ca59e=a12_0x353539,_0x3edcfc={};_0x3edcfc['pdTCo']='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x3edcfc['AnViP']=_0x5ca59e(0xfc),_0x3edcfc[_0x5ca59e(0xfa)]='Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x3edcfc['cItLB']='help';const _0x40557c=_0x3edcfc,_0x2bec83={};_0x2bec83[_0x5ca59e(0x11d)]=_0x40557c[_0x5ca59e(0x117)],_0x2bec83[_0x5ca59e(0x11a)]=_0x40557c[_0x5ca59e(0x153)];const _0x3b0739={};_0x3b0739[_0x5ca59e(0x11d)]=_0x40557c[_0x5ca59e(0xfa)],_0x3b0739[_0x5ca59e(0x11a)]=_0x40557c[_0x5ca59e(0x153)];const _0x27f392={};return _0x27f392['bstack-username']=_0x2bec83,_0x27f392[_0x5ca59e(0x10e)]=_0x3b0739,_0x389cc8[_0x5ca59e(0x11b)](HELP_HEADER_MESSAGE[_0x5ca59e(0x116)])[_0x5ca59e(0x139)](HELP_FOOTER_MESSAGE)[_0x5ca59e(0x12b)](_0x27f392)[_0x5ca59e(0x12e)]()[_0x5ca59e(0xeb)]()['help'](_0x40557c[_0x5ca59e(0x10f)])[_0x5ca59e(0xec)];},exports[a12_0x353539(0x102)]=async function(_0x1447c3){const _0x246093=a12_0x353539,_0x1551cb={'xgIGf':_0x246093(0x149),'VkOEm':'string','YsWAs':_0x246093(0x146),'enjAb':_0x246093(0x150),'zGgtY':function(_0x5df156){return _0x5df156();},'QNWWQ':_0x246093(0xf0),'nFgdE':function(_0x4a4fa5,_0x2e189a,_0x45cb5a,_0x1bef06,_0x54b65c,_0x100837,_0x364a1f){return _0x4a4fa5(_0x2e189a,_0x45cb5a,_0x1bef06,_0x54b65c,_0x100837,_0x364a1f);},'KrxRC':_0x246093(0x13c),'ILTUn':function(_0x50c75a){return _0x50c75a();},'ROygq':function(_0x2c4662,_0x38e511){return _0x2c4662===_0x38e511;},'NwTBk':'HOMzC','tdFiF':_0x246093(0x126),'XvcYF':_0x246093(0x13d),'CXwHA':'DBtjc','nkKXB':function(_0x5b433b,_0x49504c){return _0x5b433b!==_0x49504c;},'qxNDu':_0x246093(0xf9),'YOBIu':function(_0x26f3f0,_0xf8837a){return _0x26f3f0!==_0xf8837a;},'Dmiuy':_0x246093(0x130),'gMtSZ':_0x246093(0x115),'IrRdR':function(_0x11fce9,_0x1b4404){return _0x11fce9!==_0x1b4404;},'lRvpY':'JpoEb','rZaOy':_0x246093(0x120),'AWpUP':_0x246093(0x13e),'lEUqF':function(_0xad546f){return _0xad546f();},'GqmGP':_0x246093(0x101),'JCXQX':function(_0x2822d2,_0x535dbd,_0x5911d9){return _0x2822d2(_0x535dbd,_0x5911d9);},'cLXgL':function(_0x2187a6,_0x3b2a72,_0x3cf1f1){return _0x2187a6(_0x3b2a72,_0x3cf1f1);},'ortFI':function(_0x8ee6da,_0x4348e4){return _0x8ee6da!==_0x4348e4;},'PADZA':function(_0xf5829,_0x477e83){return _0xf5829===_0x477e83;},'xiQaW':_0x246093(0x144),'vnBCb':_0x246093(0x10a),'GvIxH':_0x246093(0x142),'DFvWf':function(_0x2d061f){return _0x2d061f();},'pwIDw':_0x246093(0x113),'OQAud':_0x246093(0x13f),'ffUSi':function(_0x2e3a4a,_0x3035b1,_0x182fe1,_0x4649b8,_0x4840db,_0x1c6735,_0x21808c){return _0x2e3a4a(_0x3035b1,_0x182fe1,_0x4649b8,_0x4840db,_0x1c6735,_0x21808c);},'OLHVX':_0x246093(0x138),'qRALm':_0x246093(0x134)};try{global_registry[_0x246093(0x128)]=_0x1551cb[_0x246093(0x14e)](uuidv4),_0x1551cb[_0x246093(0x12f)](sendInstrumentationEvent,_0x1447c3,_0x1551cb[_0x246093(0x118)],messageTypes['INFO'],null,null,_0x1447c3);const _0xeab71a=_0x1551cb[_0x246093(0xff)](getDirForConfig);if(!fs['existsSync'](_0xeab71a)){if(_0x1551cb[_0x246093(0xf1)](_0x1551cb[_0x246093(0x119)],_0x1551cb[_0x246093(0x148)])){const _0x465f5b={};_0x465f5b[_0x246093(0x11d)]=_0x1551cb['xgIGf'],_0x465f5b[_0x246093(0x11a)]=_0x1551cb[_0x246093(0x123)];const _0x16b266={};_0x16b266[_0x246093(0x11d)]=_0x1551cb[_0x246093(0xfb)],_0x16b266[_0x246093(0x11a)]=_0x1551cb[_0x246093(0x123)];const _0x2b12f2={};return _0x2b12f2[_0x246093(0x11e)]=_0x465f5b,_0x2b12f2['bstack-accesskey']=_0x16b266,_0x12c8c5[_0x246093(0x11b)](_0x4f04e7[_0x246093(0x116)])[_0x246093(0x139)](_0x7d5716)[_0x246093(0x12b)](_0x2b12f2)['recommendCommands']()[_0x246093(0xeb)]()[_0x246093(0x150)](_0x1551cb[_0x246093(0x105)])[_0x246093(0xec)];}else fs[_0x246093(0x107)](_0xeab71a);}let _0x1f83d9,_0x112180;process[_0x246093(0x136)][_0x246093(0x100)]&&(_0x1551cb['ROygq'](_0x1551cb['XvcYF'],_0x1551cb[_0x246093(0x13b)])?_0x1f83d9=process[_0x246093(0x136)][_0x246093(0x100)]:_0x1aeb0e=!![]);process[_0x246093(0x136)][_0x246093(0x104)]&&(_0x1551cb['ROygq'](_0x1551cb[_0x246093(0x112)],_0x1551cb['CXwHA'])?_0x112180=process[_0x246093(0x136)]['BROWSERSTACK_ACCESS_KEY']:_0x52b151=_0x4471a4[_0x246093(0xf3)]);_0x1447c3[_0x246093(0xf2)]&&(_0x1551cb['nkKXB'](_0x1551cb[_0x246093(0xef)],_0x1551cb[_0x246093(0xef)])?_0x4e98b8=_0x3e189b[_0x246093(0xf2)]:_0x1f83d9=_0x1447c3['bstackUsername']);if(_0x1447c3[_0x246093(0xf3)]){if(_0x1551cb[_0x246093(0x111)](_0x1551cb[_0x246093(0x132)],_0x1551cb[_0x246093(0x14f)]))_0x112180=_0x1447c3[_0x246093(0xf3)];else{let _0x3f0cb9={};const _0x2be034=_0x1551cb['zGgtY'](_0x450ef8);_0x2cbca7[_0x246093(0x156)](_0x2be034)&&(_0x3f0cb9=_0x2959a6[_0x246093(0x10c)](_0x1510e9[_0x246093(0x103)](_0x2be034,_0x1551cb[_0x246093(0xf8)])));const _0x1c48f4={};_0x1c48f4[_0x246093(0x155)]=_0x4c83cf,_0x1c48f4[_0x246093(0x140)]=_0xf739fd,_0x3f0cb9[_0x246093(0x106)]=_0x1c48f4,_0x4e7c51['writeFileSync'](_0x2be034,_0x2deb6b[_0x246093(0x124)](_0x3f0cb9)),_0x3a9b87[_0x246093(0x129)](0x0);}}if(_0x1551cb[_0x246093(0xf1)](_0x1f83d9,undefined)||_0x1551cb[_0x246093(0xf1)](_0x112180,undefined)){if(_0x1551cb[_0x246093(0x121)](_0x1551cb['lRvpY'],_0x1551cb[_0x246093(0xed)])){logger[_0x246093(0x14b)](_0x1551cb[_0x246093(0x114)]);const [_0x3b7b8d,_0x596668]=await _0x1551cb['lEUqF'](inputBstackKeys);_0x1f83d9=_0x3b7b8d,_0x112180=_0x596668;}else _0x105601=_0x41db84[_0x246093(0x10c)](_0x230f98['readFileSync'](_0x3fecee,_0x1551cb[_0x246093(0xf8)]));}let _0x3753c8=![];const _0x4d315e=_0x246093(0x145)+_0x1f83d9+':'+_0x112180+'@'+BS_API_URL+_0x246093(0xf6),_0x55cc1d={'method':_0x1551cb['GqmGP'],'headers':_0x1551cb['JCXQX'](getAuthHeader,_0x1f83d9,_0x112180),'throwHttpErrors':![]},_0x2bd92e=await _0x1551cb['cLXgL'](got,_0x4d315e,_0x55cc1d);_0x1551cb['YOBIu'](_0x2bd92e,null)&&_0x1551cb['ortFI'](_0x2bd92e,undefined)&&_0x1551cb[_0x246093(0x108)](_0x2bd92e[_0x246093(0x143)],0xc8)&&(_0x1551cb[_0x246093(0xf1)](_0x1551cb[_0x246093(0x14a)],_0x1551cb['xiQaW'])?_0x3753c8=!![]:_0x54d0d2=_0x414695[_0x246093(0x136)][_0x246093(0x100)]);if(_0x3753c8){if(_0x1551cb['nkKXB'](_0x1551cb[_0x246093(0x125)],_0x1551cb[_0x246093(0x10d)])){let _0x4337c2={};const _0x428aa1=_0x1551cb[_0x246093(0xf4)](getCredentialsPath);fs['existsSync'](_0x428aa1)&&(_0x1551cb[_0x246093(0xf1)](_0x1551cb['pwIDw'],_0x1551cb['pwIDw'])?_0x4337c2=JSON[_0x246093(0x10c)](fs[_0x246093(0x103)](_0x428aa1,_0x1551cb[_0x246093(0xf8)])):_0x464a59[_0x246093(0x107)](_0x6dce7a));const _0x193125={};_0x193125[_0x246093(0x155)]=_0x1f83d9,_0x193125[_0x246093(0x140)]=_0x112180,_0x4337c2[_0x246093(0x106)]=_0x193125,fs[_0x246093(0x11f)](_0x428aa1,JSON[_0x246093(0x124)](_0x4337c2)),process[_0x246093(0x129)](0x0);}else _0x2d94c9=_0x554432[_0x246093(0x136)][_0x246093(0x104)];}else logger[_0x246093(0x154)](_0x1551cb['OQAud']),await _0x1551cb['ffUSi'](sendInstrumentationEvent,_0x1447c3,_0x1551cb[_0x246093(0x118)],messageTypes[_0x246093(0x14c)],_0x1551cb[_0x246093(0xf5)],null,_0x1447c3),process[_0x246093(0x129)](0x1);}catch(_0x48cb45){logger[_0x246093(0x154)](_0x48cb45['stack']),await _0x1551cb[_0x246093(0x109)](sendInstrumentationEvent,_0x1447c3,_0x1551cb[_0x246093(0x118)],messageTypes['ERROR'],_0x1551cb[_0x246093(0x12a)],_0x48cb45,_0x1447c3),process[_0x246093(0x129)](0x1);}};
1
+ function a12_0x2406(){const _0x48eb79=['JWDaG','../utils/utilityMethods','KnrIH','got','NIJjT','npimJ','argv','gbizA','239111Rdygin','xYopY','string','GihIR','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','SwLOo','POSIb','SZglL','Browserstack','bAhcv','bstackUsername','tWSvF','type','../utils/userInput','bstackAccesskey','bXmPj','password','kswOS','mjkkx','help','handler','builder','djSyi','jeZwL','BxiEp','bstack-username','strict','1739403IUntpz','702228RjWVZa','12DybnAZ','HTCTV','bstack-accesskey','writeFileSync','jirqs','readFileSync','NMluL','stpUm','env','https://','OJdKt','XFrxg','utf-8','LkMvS','30FiVurX','description','Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','rhgzx','eaMSF','../utils/instrumentationUtils','mkdirSync','BROWSERSTACK_USERNAME','PGdHe','yFoar','options','6252328nwDZhb','parse','ULAwI','vqxiZ','epilogue','YRMmj','exit','../config/constants','jUMaz','stack','init-called','stringify','WodSF','recommendCommands','username','fjfzL','nOCQg','MtagC','emLUm','1584114WcfUvU','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','YKywv','vNmFE','HxnMA','debug','ERROR','MgQJV','command','existsSync','vTWck','PtROi','20NtGfYz','error','462634DnWbSD','wrong-creds','jPprR','unknown-error','iAsGv','HIyrm','6334167GaDhYb','eeRMD','usage'];a12_0x2406=function(){return _0x48eb79;};return a12_0x2406();}const a12_0x5bd0c9=a12_0x31c4;(function(_0x4463f2,_0x4e704f){const _0x31ea1e=a12_0x31c4,_0x1eec1e=_0x4463f2();while(!![]){try{const _0x541310=-parseInt(_0x31ea1e(0x80))/0x1+-parseInt(_0x31ea1e(0x6f))/0x2*(-parseInt(_0x31ea1e(0x9d))/0x3)+-parseInt(_0x31ea1e(0x9c))/0x4+-parseInt(_0x31ea1e(0x6d))/0x5*(parseInt(_0x31ea1e(0xc9))/0x6)+parseInt(_0x31ea1e(0x75))/0x7+parseInt(_0x31ea1e(0xb6))/0x8+parseInt(_0x31ea1e(0x9b))/0x9*(-parseInt(_0x31ea1e(0xab))/0xa);if(_0x541310===_0x4e704f)break;else _0x1eec1e['push'](_0x1eec1e['shift']());}catch(_0x48f388){_0x1eec1e['push'](_0x1eec1e['shift']());}}}(a12_0x2406,0x88ff9));const fs=require('fs'),util=require('util'),got=require(a12_0x5bd0c9(0x7b)),{v4:uuidv4}=require('uuid'),{logger}=require('../config/logger'),{inputBstackKeys}=require(a12_0x5bd0c9(0x8d)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a12_0x5bd0c9(0xbd)),{getDirForConfig,getCredentialsPath,getAuthHeader}=require(a12_0x5bd0c9(0x79)),{sendInstrumentationEvent}=require(a12_0x5bd0c9(0xb0));function a12_0x31c4(_0x53b065,_0x1d5682){const _0x240663=a12_0x2406();return a12_0x31c4=function(_0x31c43a,_0x27eef2){_0x31c43a=_0x31c43a-0x6c;let _0x2e4199=_0x240663[_0x31c43a];return _0x2e4199;},a12_0x31c4(_0x53b065,_0x1d5682);}exports[a12_0x5bd0c9(0xd1)]='init',exports['desc']='Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.',exports[a12_0x5bd0c9(0x95)]=function(_0x26285f){const _0x2274f7=a12_0x5bd0c9,_0x28a5ac={};_0x28a5ac[_0x2274f7(0x92)]=_0x2274f7(0x84),_0x28a5ac[_0x2274f7(0xa1)]=_0x2274f7(0x82),_0x28a5ac['XFrxg']=_0x2274f7(0xca),_0x28a5ac[_0x2274f7(0x7f)]=_0x2274f7(0x93);const _0x4491b0=_0x28a5ac,_0x538426={};_0x538426[_0x2274f7(0xac)]=_0x4491b0[_0x2274f7(0x92)],_0x538426[_0x2274f7(0x8c)]=_0x4491b0[_0x2274f7(0xa1)];const _0x297400={};_0x297400[_0x2274f7(0xac)]=_0x4491b0[_0x2274f7(0xa8)],_0x297400['type']=_0x4491b0[_0x2274f7(0xa1)];const _0x5ef9f2={};return _0x5ef9f2[_0x2274f7(0x99)]=_0x538426,_0x5ef9f2[_0x2274f7(0x9f)]=_0x297400,_0x26285f['usage'](HELP_HEADER_MESSAGE['init'])['epilogue'](HELP_FOOTER_MESSAGE)[_0x2274f7(0xb5)](_0x5ef9f2)[_0x2274f7(0xc3)]()[_0x2274f7(0x9a)]()[_0x2274f7(0x93)](_0x4491b0[_0x2274f7(0x7f)])[_0x2274f7(0x7e)];},exports[a12_0x5bd0c9(0x94)]=async function(_0x18410a){const _0x4c6fd0=a12_0x5bd0c9,_0x5bccae={'jPprR':_0x4c6fd0(0xa9),'xYopY':function(_0x1c0b17){return _0x1c0b17();},'jeZwL':_0x4c6fd0(0x84),'rhgzx':_0x4c6fd0(0x82),'NIJjT':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','GihIR':_0x4c6fd0(0x93),'eaMSF':function(_0x320c52,_0x3cda1e,_0x412b6d,_0x2ff8b8,_0x51687a,_0x50d00d,_0x5242ae){return _0x320c52(_0x3cda1e,_0x412b6d,_0x2ff8b8,_0x51687a,_0x50d00d,_0x5242ae);},'npimJ':_0x4c6fd0(0xc0),'vNmFE':function(_0x4836a4,_0x523049){return _0x4836a4===_0x523049;},'DteLY':_0x4c6fd0(0xa4),'xsqhh':_0x4c6fd0(0x98),'SZglL':function(_0x4615f7,_0x4ed68c){return _0x4615f7!==_0x4ed68c;},'vqxiZ':_0x4c6fd0(0xc6),'PGdHe':function(_0x59111b,_0x429c43){return _0x59111b!==_0x429c43;},'bAhcv':_0x4c6fd0(0x76),'OJdKt':function(_0x1aef36,_0x2ca2e6){return _0x1aef36===_0x2ca2e6;},'IRNQt':_0x4c6fd0(0xc7),'HTCTV':_0x4c6fd0(0x96),'SwLOo':function(_0x237fdc,_0x5be26b){return _0x237fdc===_0x5be26b;},'JWDaG':_0x4c6fd0(0x8b),'jUMaz':function(_0x15d2c4,_0x32c390){return _0x15d2c4===_0x32c390;},'MgQJV':function(_0x25bb50,_0x4a2cc7){return _0x25bb50===_0x4a2cc7;},'HIyrm':_0x4c6fd0(0xd3),'iAsGv':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','WodSF':function(_0x1c59ea){return _0x1c59ea();},'HxnMA':'GET','emLUm':function(_0x26babf,_0x48ea2a,_0xbc0d76){return _0x26babf(_0x48ea2a,_0xbc0d76);},'ULAwI':function(_0x485ada,_0x3789e8,_0x560a25){return _0x485ada(_0x3789e8,_0x560a25);},'IRYCa':function(_0x584f53,_0x4bb81e){return _0x584f53===_0x4bb81e;},'kswOS':function(_0x5350e4,_0x776b1a){return _0x5350e4===_0x776b1a;},'iwScy':'WtZNH','aLCXA':_0x4c6fd0(0xb4),'YKywv':'NDWlU','fjfzL':_0x4c6fd0(0x8f),'LkMvS':function(_0x4e7606){return _0x4e7606();},'KnrIH':_0x4c6fd0(0x86),'JJBbv':_0x4c6fd0(0xa3),'YRMmj':_0x4c6fd0(0xad),'PtROi':_0x4c6fd0(0x70),'TddGj':_0x4c6fd0(0x72)};try{global_registry['requestId']=_0x5bccae['xYopY'](uuidv4),_0x5bccae[_0x4c6fd0(0xaf)](sendInstrumentationEvent,_0x18410a,_0x5bccae[_0x4c6fd0(0x7d)],messageTypes['INFO'],null,null,_0x18410a);const _0x337240=_0x5bccae[_0x4c6fd0(0x81)](getDirForConfig);!fs[_0x4c6fd0(0xd2)](_0x337240)&&(_0x5bccae['vNmFE'](_0x5bccae['DteLY'],_0x5bccae['xsqhh'])?_0x305e48=!![]:fs['mkdirSync'](_0x337240));let _0x347a68,_0x1b7ef4;process[_0x4c6fd0(0xa5)][_0x4c6fd0(0xb2)]&&(_0x5bccae[_0x4c6fd0(0x87)](_0x5bccae[_0x4c6fd0(0xb9)],_0x5bccae[_0x4c6fd0(0xb9)])?_0x469cc5=_0x171d31[_0x4c6fd0(0xa5)]['BROWSERSTACK_ACCESS_KEY']:_0x347a68=process[_0x4c6fd0(0xa5)][_0x4c6fd0(0xb2)]);process[_0x4c6fd0(0xa5)]['BROWSERSTACK_ACCESS_KEY']&&(_0x5bccae[_0x4c6fd0(0xb3)](_0x5bccae[_0x4c6fd0(0x89)],_0x5bccae[_0x4c6fd0(0x89)])?_0x5b57c5=_0x33edfb[_0x4c6fd0(0x8a)]:_0x1b7ef4=process['env']['BROWSERSTACK_ACCESS_KEY']);_0x18410a['bstackUsername']&&(_0x5bccae[_0x4c6fd0(0xa7)](_0x5bccae['IRNQt'],_0x5bccae[_0x4c6fd0(0x9e)])?_0x60b7b3=_0x72406f['env']['BROWSERSTACK_USERNAME']:_0x347a68=_0x18410a[_0x4c6fd0(0x8a)]);_0x18410a[_0x4c6fd0(0x8e)]&&(_0x5bccae[_0x4c6fd0(0x85)](_0x5bccae[_0x4c6fd0(0x78)],_0x5bccae[_0x4c6fd0(0x78)])?_0x1b7ef4=_0x18410a[_0x4c6fd0(0x8e)]:_0x4c9281=_0x5ca450[_0x4c6fd0(0xb7)](_0x218ff9[_0x4c6fd0(0xa2)](_0x539067,_0x5bccae[_0x4c6fd0(0x71)])));if(_0x5bccae[_0x4c6fd0(0xbe)](_0x347a68,undefined)||_0x5bccae[_0x4c6fd0(0xd0)](_0x1b7ef4,undefined)){if(_0x5bccae[_0x4c6fd0(0xcc)](_0x5bccae[_0x4c6fd0(0x74)],_0x5bccae[_0x4c6fd0(0x74)])){logger[_0x4c6fd0(0xce)](_0x5bccae[_0x4c6fd0(0x73)]);const [_0x2d0661,_0x490000]=await _0x5bccae[_0x4c6fd0(0xc2)](inputBstackKeys);_0x347a68=_0x2d0661,_0x1b7ef4=_0x490000;}else _0x38e967=_0x11aa08[_0x4c6fd0(0x8e)];}let _0x4f2972=![];const _0x4820bc=_0x4c6fd0(0xa6)+_0x347a68+':'+_0x1b7ef4+'@'+BS_API_URL+'/automate/plan.json',_0x4122c3={'method':_0x5bccae[_0x4c6fd0(0xcd)],'headers':_0x5bccae[_0x4c6fd0(0xc8)](getAuthHeader,_0x347a68,_0x1b7ef4),'throwHttpErrors':![]},_0x21dcdb=await _0x5bccae[_0x4c6fd0(0xb8)](got,_0x4820bc,_0x4122c3);_0x5bccae['SZglL'](_0x21dcdb,null)&&_0x5bccae[_0x4c6fd0(0xb3)](_0x21dcdb,undefined)&&_0x5bccae['IRYCa'](_0x21dcdb['statusCode'],0xc8)&&(_0x5bccae[_0x4c6fd0(0x91)](_0x5bccae['iwScy'],_0x5bccae['aLCXA'])?_0x5052a7[_0x4c6fd0(0xb1)](_0x3f0b3f):_0x4f2972=!![]);if(_0x4f2972){if(_0x5bccae[_0x4c6fd0(0xb3)](_0x5bccae[_0x4c6fd0(0xcb)],_0x5bccae[_0x4c6fd0(0xc5)])){let _0x557f9b={};const _0x46bb7b=_0x5bccae[_0x4c6fd0(0xaa)](getCredentialsPath);if(fs[_0x4c6fd0(0xd2)](_0x46bb7b)){if(_0x5bccae['SZglL'](_0x5bccae[_0x4c6fd0(0x7a)],_0x5bccae['JJBbv']))_0x557f9b=JSON[_0x4c6fd0(0xb7)](fs[_0x4c6fd0(0xa2)](_0x46bb7b,_0x5bccae[_0x4c6fd0(0x71)]));else{let _0x18bd6f={};const _0x201fa8=_0x5bccae['xYopY'](_0x4d5e96);_0x7dd3cf['existsSync'](_0x201fa8)&&(_0x18bd6f=_0x5262cf[_0x4c6fd0(0xb7)](_0x266303[_0x4c6fd0(0xa2)](_0x201fa8,_0x5bccae[_0x4c6fd0(0x71)])));const _0xc30d8={};_0xc30d8[_0x4c6fd0(0xc4)]=_0x9872f8,_0xc30d8[_0x4c6fd0(0x90)]=_0x5ad348,_0x18bd6f[_0x4c6fd0(0x88)]=_0xc30d8,_0xfdf0b9['writeFileSync'](_0x201fa8,_0x44c9e7[_0x4c6fd0(0xc1)](_0x18bd6f)),_0x2f1a03[_0x4c6fd0(0xbc)](0x0);}}const _0x374ffa={};_0x374ffa[_0x4c6fd0(0xc4)]=_0x347a68,_0x374ffa[_0x4c6fd0(0x90)]=_0x1b7ef4,_0x557f9b[_0x4c6fd0(0x88)]=_0x374ffa,fs[_0x4c6fd0(0xa0)](_0x46bb7b,JSON[_0x4c6fd0(0xc1)](_0x557f9b)),process[_0x4c6fd0(0xbc)](0x0);}else{const _0x1a63c8={};_0x1a63c8[_0x4c6fd0(0xac)]=_0x5bccae[_0x4c6fd0(0x97)],_0x1a63c8[_0x4c6fd0(0x8c)]=_0x5bccae[_0x4c6fd0(0xae)];const _0x38cdc6={};_0x38cdc6['description']=_0x5bccae[_0x4c6fd0(0x7c)],_0x38cdc6[_0x4c6fd0(0x8c)]=_0x5bccae[_0x4c6fd0(0xae)];const _0x474e71={};return _0x474e71[_0x4c6fd0(0x99)]=_0x1a63c8,_0x474e71[_0x4c6fd0(0x9f)]=_0x38cdc6,_0x3380f3[_0x4c6fd0(0x77)](_0x226888['init'])[_0x4c6fd0(0xba)](_0xf26654)[_0x4c6fd0(0xb5)](_0x474e71)[_0x4c6fd0(0xc3)]()[_0x4c6fd0(0x9a)]()[_0x4c6fd0(0x93)](_0x5bccae[_0x4c6fd0(0x83)])['argv'];}}else logger[_0x4c6fd0(0x6e)](_0x5bccae[_0x4c6fd0(0xbb)]),await _0x5bccae[_0x4c6fd0(0xaf)](sendInstrumentationEvent,_0x18410a,_0x5bccae['npimJ'],messageTypes[_0x4c6fd0(0xcf)],_0x5bccae[_0x4c6fd0(0x6c)],null,_0x18410a),process[_0x4c6fd0(0xbc)](0x1);}catch(_0x479781){logger[_0x4c6fd0(0x6e)](_0x479781[_0x4c6fd0(0xbf)]),await _0x5bccae[_0x4c6fd0(0xaf)](sendInstrumentationEvent,_0x18410a,_0x5bccae[_0x4c6fd0(0x7d)],messageTypes[_0x4c6fd0(0xcf)],_0x5bccae['TddGj'],_0x479781,_0x18410a),process[_0x4c6fd0(0xbc)](0x1);}};
@@ -1 +1 @@
1
- const a13_0x122030=a13_0x95b1;(function(_0x139cb9,_0x3fdd0a){const _0x2e21f2=a13_0x95b1,_0x3f78f2=_0x139cb9();while(!![]){try{const _0x449040=-parseInt(_0x2e21f2(0x12c))/0x1+parseInt(_0x2e21f2(0x11e))/0x2*(parseInt(_0x2e21f2(0x118))/0x3)+parseInt(_0x2e21f2(0x12b))/0x4*(-parseInt(_0x2e21f2(0x125))/0x5)+parseInt(_0x2e21f2(0x124))/0x6*(-parseInt(_0x2e21f2(0x116))/0x7)+parseInt(_0x2e21f2(0x122))/0x8+-parseInt(_0x2e21f2(0x123))/0x9*(parseInt(_0x2e21f2(0x11b))/0xa)+-parseInt(_0x2e21f2(0x117))/0xb*(-parseInt(_0x2e21f2(0x129))/0xc);if(_0x449040===_0x3fdd0a)break;else _0x3f78f2['push'](_0x3f78f2['shift']());}catch(_0x13b047){_0x3f78f2['push'](_0x3f78f2['shift']());}}}(a13_0x5760,0x5d575));function a13_0x95b1(_0x3de210,_0x357f1d){const _0x576069=a13_0x5760();return a13_0x95b1=function(_0x95b18f,_0x4c6689){_0x95b18f=_0x95b18f-0x113;let _0x492668=_0x576069[_0x95b18f];return _0x492668;},a13_0x95b1(_0x3de210,_0x357f1d);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x122030(0x127));exports['command']=a13_0x122030(0x12a),exports['desc']=a13_0x122030(0x126),exports[a13_0x122030(0x121)]=function(_0x3fe46a){const _0x22f0e7=a13_0x122030,_0x350e80={};_0x350e80[_0x22f0e7(0x11d)]=_0x22f0e7(0x11f),_0x350e80[_0x22f0e7(0x128)]=_0x22f0e7(0x114);const _0xec9e6=_0x350e80;return _0x3fe46a[_0x22f0e7(0x119)](_0xec9e6['fXEXH'])['demandCommand']()[_0x22f0e7(0x115)](HELP_HEADER_MESSAGE[_0x22f0e7(0x12a)][_0x22f0e7(0x11a)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x22f0e7(0x120)]()[_0x22f0e7(0x113)]()[_0x22f0e7(0x114)](_0xec9e6[_0x22f0e7(0x128)]);},exports[a13_0x122030(0x11c)]=function(_0x5ce29b){};function a13_0x5760(){const _0x18d31f=['builder','5214736YWhQlD','11043djZshL','2876730wftxyU','6490lSbLdi','List\x20down\x20the\x20Grid\x20resources.','../config/constants','zDDxi','468ewHcyR','list','1008PSrxfO','299547DPYwYj','strict','help','usage','7BvbrJc','378851QDqaYW','729237ohtfPC','commandDir','root','6110qJDprc','handler','fXEXH','2LhZxhg','list_commands','recommendCommands'];a13_0x5760=function(){return _0x18d31f;};return a13_0x5760();}
1
+ const a13_0x2cb9a9=a13_0x4435;(function(_0x486066,_0x3b5d8e){const _0x638e0c=a13_0x4435,_0x177cc1=_0x486066();while(!![]){try{const _0x503936=-parseInt(_0x638e0c(0xb7))/0x1*(parseInt(_0x638e0c(0xb4))/0x2)+parseInt(_0x638e0c(0xa6))/0x3*(parseInt(_0x638e0c(0xba))/0x4)+parseInt(_0x638e0c(0xb1))/0x5*(-parseInt(_0x638e0c(0xa5))/0x6)+-parseInt(_0x638e0c(0xa9))/0x7+parseInt(_0x638e0c(0xa8))/0x8*(parseInt(_0x638e0c(0xac))/0x9)+-parseInt(_0x638e0c(0xa2))/0xa*(parseInt(_0x638e0c(0xaf))/0xb)+parseInt(_0x638e0c(0xae))/0xc;if(_0x503936===_0x3b5d8e)break;else _0x177cc1['push'](_0x177cc1['shift']());}catch(_0xe58921){_0x177cc1['push'](_0x177cc1['shift']());}}}(a13_0x51ea,0xea56e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a13_0x2cb9a9(0xa3));function a13_0x4435(_0x5d9f1b,_0x392c21){const _0x51eaa6=a13_0x51ea();return a13_0x4435=function(_0x44359c,_0x42db3d){_0x44359c=_0x44359c-0xa2;let _0x13370a=_0x51eaa6[_0x44359c];return _0x13370a;},a13_0x4435(_0x5d9f1b,_0x392c21);}function a13_0x51ea(){const _0x4e3a33=['epilogue','7826835eoqAZC','command','root','278406eMHbCi','VqXyj','builder','10facjNC','desc','HEFfq','9124xBdHWe','20PDGAEb','../config/constants','help','6IUkUYM','1521ycHNAD','commandDir','14984mPxqql','6748133FmmLIA','List\x20down\x20the\x20Grid\x20resources.','list_commands','6138sXbkmb','demandCommand','43754196LhkulE','6593213tbnfXq'];a13_0x51ea=function(){return _0x4e3a33;};return a13_0x51ea();}exports[a13_0x2cb9a9(0xb2)]='list',exports[a13_0x2cb9a9(0xb8)]=a13_0x2cb9a9(0xaa),exports[a13_0x2cb9a9(0xb6)]=function(_0xd583cf){const _0x25de2f=a13_0x2cb9a9,_0x29c379={};_0x29c379[_0x25de2f(0xb9)]=_0x25de2f(0xab),_0x29c379[_0x25de2f(0xb5)]=_0x25de2f(0xa4);const _0x30cc9d=_0x29c379;return _0xd583cf[_0x25de2f(0xa7)](_0x30cc9d['HEFfq'])[_0x25de2f(0xad)]()['usage'](HELP_HEADER_MESSAGE['list'][_0x25de2f(0xb3)])[_0x25de2f(0xb0)](HELP_FOOTER_MESSAGE)['recommendCommands']()['strict']()[_0x25de2f(0xa4)](_0x30cc9d['VqXyj']);},exports['handler']=function(_0x49ed7d){};
@@ -1 +1 @@
1
- const a14_0x1589da=a14_0x4f3f;(function(_0x1a3285,_0x1f76f8){const _0x422f88=a14_0x4f3f,_0x1a45da=_0x1a3285();while(!![]){try{const _0x8aa782=parseInt(_0x422f88(0xd3))/0x1*(parseInt(_0x422f88(0x98))/0x2)+-parseInt(_0x422f88(0xbf))/0x3+parseInt(_0x422f88(0xb3))/0x4*(-parseInt(_0x422f88(0x9e))/0x5)+parseInt(_0x422f88(0x8a))/0x6+parseInt(_0x422f88(0xa8))/0x7+-parseInt(_0x422f88(0x89))/0x8*(parseInt(_0x422f88(0xa1))/0x9)+-parseInt(_0x422f88(0xac))/0xa*(parseInt(_0x422f88(0xa0))/0xb);if(_0x8aa782===_0x1f76f8)break;else _0x1a45da['push'](_0x1a45da['shift']());}catch(_0x35fc7c){_0x1a45da['push'](_0x1a45da['shift']());}}}(a14_0x3fc2,0x986df));function a14_0x4f3f(_0x3b0b18,_0x493485){const _0x3fc2b0=a14_0x3fc2();return a14_0x4f3f=function(_0x4f3f75,_0x2b61ed){_0x4f3f75=_0x4f3f75-0x89;let _0x5704fa=_0x3fc2b0[_0x4f3f75];return _0x5704fa;},a14_0x4f3f(_0x3b0b18,_0x493485);}const fs=require('fs'),got=require(a14_0x1589da(0xaf)),{table}=require(a14_0x1589da(0xbc)),{v4:uuidv4}=require(a14_0x1589da(0xb6)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x1589da(0xcf)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x1589da(0x9f));exports['command']='grid-profiles',exports[a14_0x1589da(0xad)]=a14_0x1589da(0xb1),exports['builder']=function(_0x5ae866){const _0x54ca8c=a14_0x1589da,_0x5652bc={};_0x5652bc['VflWx']=_0x54ca8c(0x94),_0x5652bc['HFPyW']=_0x54ca8c(0xb0),_0x5652bc['tVtaQ']=_0x54ca8c(0xae);const _0x13a7ca=_0x5652bc,_0x159881={};_0x159881[_0x54ca8c(0xb7)]=_0x13a7ca['VflWx'],_0x159881[_0x54ca8c(0xd9)]=_0x13a7ca[_0x54ca8c(0x97)];const _0x38cd26={};return _0x38cd26[_0x54ca8c(0xdb)]=_0x159881,_0x5ae866['usage'](HELP_HEADER_MESSAGE[_0x54ca8c(0xa6)]['gridProfile'])[_0x54ca8c(0xc1)](HELP_FOOTER_MESSAGE)[_0x54ca8c(0xcc)](_0x38cd26)[_0x54ca8c(0xae)](_0x13a7ca['tVtaQ'])[_0x54ca8c(0xc4)];},exports[a14_0x1589da(0xb2)]=async function(_0x18a414){const _0x421640=a14_0x1589da,_0x14fd44={'WzcED':function(_0x3cdbd3){return _0x3cdbd3();},'XdSud':function(_0x170817){return _0x170817();},'AJGJh':_0x421640(0xb4),'FlAgx':function(_0x5ec475,_0x45fd75,_0x4044b9,_0x1d02e9,_0x221187,_0x19d891,_0x189db2){return _0x5ec475(_0x45fd75,_0x4044b9,_0x1d02e9,_0x221187,_0x19d891,_0x189db2);},'OEesi':_0x421640(0xe0),'ZOmUY':_0x421640(0xdd),'HXtwe':function(_0x26b8b8){return _0x26b8b8();},'MZCXz':_0x421640(0xcb),'jXqSU':function(_0x2357e2,_0x3eb52c,_0x37f946){return _0x2357e2(_0x3eb52c,_0x37f946);},'MaTIS':function(_0x573180,_0xc899fa,_0x3e7171,_0x437a94,_0x2b2175,_0x28a36a,_0x13c387){return _0x573180(_0xc899fa,_0x3e7171,_0x437a94,_0x2b2175,_0x28a36a,_0x13c387);},'vjxef':function(_0x50a132,_0x188860,_0x313845){return _0x50a132(_0x188860,_0x313845);},'mPrze':function(_0x2312bd,_0x57e10d){return _0x2312bd!==_0x57e10d;},'QvAbT':function(_0xcaac7,_0x3fd9a5){return _0xcaac7!==_0x3fd9a5;},'BLTdI':function(_0x4021bb,_0x58343c){return _0x4021bb===_0x58343c;},'aNMMh':_0x421640(0xa5),'jsUem':_0x421640(0x99),'zqAdQ':_0x421640(0xbd),'dRZCZ':'region','Sncnt':_0x421640(0xa2),'qRUps':function(_0x1156aa,_0x889c73){return _0x1156aa(_0x889c73);},'arqKr':'Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','YhYtD':function(_0x1222e3,_0xe804fa,_0x415272,_0x429e4f,_0x1bb1f2,_0x142d32,_0x20da3d){return _0x1222e3(_0xe804fa,_0x415272,_0x429e4f,_0x1bb1f2,_0x142d32,_0x20da3d);},'TzCgc':_0x421640(0xdf),'OKLLv':function(_0x2da0ac,_0x2c7da4,_0x4def58,_0x1fb5ef,_0x201acf,_0x20a12d,_0x178438){return _0x2da0ac(_0x2c7da4,_0x4def58,_0x1fb5ef,_0x201acf,_0x20a12d,_0x178438);},'uAbyR':_0x421640(0xcd),'FAXNm':function(_0x4515b1,_0x4060d8,_0x2d9e3b,_0x3aaefe,_0x4cfb20,_0x542ed6,_0x1bd043){return _0x4515b1(_0x4060d8,_0x2d9e3b,_0x3aaefe,_0x4cfb20,_0x542ed6,_0x1bd043);},'tcOto':_0x421640(0xda)};try{global_registry[_0x421640(0x91)]=_0x14fd44[_0x421640(0xaa)](uuidv4);let _0x3028e6=_0x421640(0x9b)+AG_API_URL+_0x421640(0xd5);_0x18a414[_0x421640(0xc2)]&&(_0x3028e6=_0x421640(0x9b)+AG_API_URL+_0x421640(0xdc));!fs[_0x421640(0xc3)](_0x14fd44[_0x421640(0xb9)](getCredentialsPath))&&(console[_0x421640(0xd2)](_0x14fd44[_0x421640(0xc8)]),await _0x14fd44[_0x421640(0xce)](sendInstrumentationEvent,_0x18a414,_0x14fd44[_0x421640(0xbe)],messageTypes[_0x421640(0xc6)],_0x14fd44[_0x421640(0xde)],null,_0x18a414),process['exit'](0x1));const _0xd2f0a8=JSON[_0x421640(0x9a)](fs['readFileSync'](_0x14fd44[_0x421640(0x95)](getCredentialsPath))),_0x4e1f5b={'method':_0x14fd44[_0x421640(0x90)],'headers':_0x14fd44['jXqSU'](getAuthHeader,_0xd2f0a8['Browserstack'][_0x421640(0xe1)],_0xd2f0a8[_0x421640(0xa3)][_0x421640(0xba)]),'throwHttpErrors':![]};global_registry[_0x421640(0xa7)]=_0xd2f0a8['Browserstack'][_0x421640(0xe1)],global_registry['bstackAccesskey']=_0xd2f0a8['Browserstack']['password'],_0x14fd44[_0x421640(0xa4)](sendInstrumentationEvent,_0x18a414,_0x14fd44['OEesi'],messageTypes[_0x421640(0x8e)],null,null,_0x18a414);const _0x9ebff8=await _0x14fd44[_0x421640(0x8d)](got,_0x3028e6,_0x4e1f5b);if(_0x14fd44['mPrze'](_0x9ebff8,null)&&_0x14fd44[_0x421640(0xb8)](_0x9ebff8,undefined)&&_0x14fd44[_0x421640(0xab)](_0x9ebff8[_0x421640(0xc5)],0xc8)){const _0x5060a7=JSON['parse'](_0x9ebff8[_0x421640(0xc0)]);console[_0x421640(0x8f)](_0x14fd44[_0x421640(0xca)]);const _0x37766c=[];_0x37766c[_0x421640(0xd1)]([_0x14fd44[_0x421640(0xc9)],_0x14fd44[_0x421640(0x92)],_0x14fd44[_0x421640(0xd7)],_0x14fd44[_0x421640(0x9d)]]),_0x5060a7['forEach'](_0x2a89fb=>{const _0x5d89f3=_0x421640;_0x37766c[_0x5d89f3(0xd1)]([_0x2a89fb[_0x5d89f3(0xbb)],_0x2a89fb['cloudProvider'],_0x2a89fb[_0x5d89f3(0xb5)],_0x2a89fb['concurrency']]);}),console[_0x421640(0x8f)](_0x14fd44[_0x421640(0xd4)](table,_0x37766c)),process[_0x421640(0x93)](0x0);}_0x14fd44[_0x421640(0xab)](_0x9ebff8[_0x421640(0xc5)],0x191)&&(console[_0x421640(0xd2)](_0x14fd44[_0x421640(0x9c)]),await _0x14fd44[_0x421640(0xd6)](sendInstrumentationEvent,_0x18a414,_0x14fd44['OEesi'],messageTypes[_0x421640(0xc6)],_0x14fd44[_0x421640(0x8b)],null,_0x18a414),process[_0x421640(0x93)](0x1)),console[_0x421640(0xd2)](_0x421640(0x96)+JSON[_0x421640(0xd0)](_0x9ebff8)),await _0x14fd44[_0x421640(0xd8)](sendInstrumentationEvent,_0x18a414,_0x14fd44[_0x421640(0xbe)],messageTypes[_0x421640(0xc6)],_0x14fd44['uAbyR'],_0x9ebff8,_0x18a414),process[_0x421640(0x93)](0x1);}catch(_0x54db0a){console[_0x421640(0xd2)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x54db0a[_0x421640(0x8c)]),await _0x14fd44[_0x421640(0xc7)](sendInstrumentationEvent,_0x18a414,_0x14fd44[_0x421640(0xbe)],messageTypes[_0x421640(0xc6)],_0x14fd44[_0x421640(0xa9)],_0x54db0a,_0x18a414),process[_0x421640(0x93)](0x1);}};function a14_0x3fc2(){const _0x503197=['List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','handler','43964vsJhQq','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','region','uuid','description','QvAbT','XdSud','password','name','table','cloud-provider','OEesi','1845429cudEml','body','epilogue','allGridProfiles','existsSync','argv','statusCode','ERROR','FAXNm','AJGJh','jsUem','aNMMh','GET','options','server-error','FlAgx','../../config/constants','stringify','push','error','910943LTcoqO','qRUps','/packages/cli/get-grid-profiles','YhYtD','dRZCZ','OKLLv','type','unknown-error','all-grid-profiles','/packages/cli/get-all-grid-profiles','init-not-called','ZOmUY','unauthorised','list-grid-profiles-called','username','34192nuHQdQ','3901830QEQjCX','TzCgc','stack','vjxef','INFO','log','MZCXz','requestId','zqAdQ','exit','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','HXtwe','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','HFPyW','2zowrGN','grid-profile-name','parse','https://','arqKr','Sncnt','70KeTDAT','../../utils/instrumentationUtils','3904516bSuYJj','981SwNKgd','concurrency','Browserstack','MaTIS','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','list','bstackUsername','4570594Tdydec','tcOto','WzcED','BLTdI','10HCgEcm','desc','help','got','boolean'];a14_0x3fc2=function(){return _0x503197;};return a14_0x3fc2();}
1
+ const a14_0x2d2d28=a14_0x5ee6;function a14_0x2770(){const _0x3f9f4e=['xnIFX','concurrency','qNsno','existsSync','SGPQV','builder','options','/packages/cli/get-grid-profiles','117VfoFcD','../../config/constants','60pNWZwi','sfswy','wWJlv','unknown-error','help','dMkWl','zOhnP','region','password','grid-profile-name','requestId','gVdQt','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','allGridProfiles','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','XXSlI','8jYdpJE','ERROR','stack','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','desc','description','Failed\x20to\x20list\x20resources!\x20Error:\x20','xrPdc','439406NuIhIL','270LMrtlv','bstackAccesskey','3565AtDqsu','uuid','RNYbP','FBVPy','error','RbFgw','Aboyl','forEach','4xvopOb','unauthorised','pZNSg','body','bstackUsername','klNYs','DMDBs','../../utils/instrumentationUtils','Browserstack','318kWCJNY','hzWmB','argv','https://','grid-profiles','server-error','exit','push','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','list','list-grid-profiles-called','/packages/cli/get-all-grid-profiles','pkXSI','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','850XucfSX','INFO','miqKH','stringify','command','usage','got','handler','qihko','FYOBM','statusCode','cloud-provider','readFileSync','log','ahbOu','1793532KZiEOk','name','56860yBLkIG','type','init-not-called','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','454041zGPbty','GET','880818iJYwEi','QkWqH'];a14_0x2770=function(){return _0x3f9f4e;};return a14_0x2770();}(function(_0x1c772a,_0x113d7f){const _0x5bf839=a14_0x5ee6,_0x277d9f=_0x1c772a();while(!![]){try{const _0x3e0f20=-parseInt(_0x5bf839(0x1ce))/0x1*(-parseInt(_0x5bf839(0x1ad))/0x2)+-parseInt(_0x5bf839(0x1c4))/0x3*(-parseInt(_0x5bf839(0x1f3))/0x4)+parseInt(_0x5bf839(0x1eb))/0x5*(parseInt(_0x5bf839(0x19f))/0x6)+-parseInt(_0x5bf839(0x1c2))/0x7*(parseInt(_0x5bf839(0x1e0))/0x8)+parseInt(_0x5bf839(0x1e9))/0x9*(parseInt(_0x5bf839(0x1be))/0xa)+-parseInt(_0x5bf839(0x1e8))/0xb*(parseInt(_0x5bf839(0x1d0))/0xc)+-parseInt(_0x5bf839(0x1bc))/0xd;if(_0x3e0f20===_0x113d7f)break;else _0x277d9f['push'](_0x277d9f['shift']());}catch(_0x3ca7d9){_0x277d9f['push'](_0x277d9f['shift']());}}}(a14_0x2770,0x24697));function a14_0x5ee6(_0xccbd70,_0x381e72){const _0x2770a3=a14_0x2770();return a14_0x5ee6=function(_0x5ee65c,_0x236a1b){_0x5ee65c=_0x5ee65c-0x19d;let _0x4cb067=_0x2770a3[_0x5ee65c];return _0x4cb067;},a14_0x5ee6(_0xccbd70,_0x381e72);}const fs=require('fs'),got=require(a14_0x2d2d28(0x1b3)),{table}=require('table'),{v4:uuidv4}=require(a14_0x2d2d28(0x1ec)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a14_0x2d2d28(0x1cf)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a14_0x2d2d28(0x19d));exports[a14_0x2d2d28(0x1b1)]=a14_0x2d2d28(0x1a3),exports[a14_0x2d2d28(0x1e4)]=a14_0x2d2d28(0x1dc),exports[a14_0x2d2d28(0x1cb)]=function(_0x3e9209){const _0xae87e3=a14_0x2d2d28,_0x9000b0={};_0x9000b0[_0xae87e3(0x1db)]=_0xae87e3(0x1ac),_0x9000b0['wWJlv']='boolean',_0x9000b0['xrPdc']=_0xae87e3(0x1d4);const _0x53a1d7=_0x9000b0,_0x151bc3={};_0x151bc3[_0xae87e3(0x1e5)]=_0x53a1d7[_0xae87e3(0x1db)],_0x151bc3[_0xae87e3(0x1bf)]=_0x53a1d7[_0xae87e3(0x1d2)];const _0x864b60={};return _0x864b60['all-grid-profiles']=_0x151bc3,_0x3e9209[_0xae87e3(0x1b2)](HELP_HEADER_MESSAGE[_0xae87e3(0x1a8)]['gridProfile'])['epilogue'](HELP_FOOTER_MESSAGE)[_0xae87e3(0x1cc)](_0x864b60)[_0xae87e3(0x1d4)](_0x53a1d7[_0xae87e3(0x1e7)])[_0xae87e3(0x1a1)];},exports[a14_0x2d2d28(0x1b4)]=async function(_0x421277){const _0x572ce0=a14_0x2d2d28,_0x5d17ee={'Aboyl':function(_0x26903e){return _0x26903e();},'xnIFX':function(_0x464904){return _0x464904();},'hzWmB':_0x572ce0(0x1a7),'qihko':function(_0x185bb1,_0x31c714,_0x22ee12,_0x2c6e6c,_0x422eb2,_0x54cee4,_0x148864){return _0x185bb1(_0x31c714,_0x22ee12,_0x2c6e6c,_0x422eb2,_0x54cee4,_0x148864);},'klNYs':_0x572ce0(0x1a9),'XvchC':_0x572ce0(0x1c0),'XXSlI':_0x572ce0(0x1c3),'RbFgw':function(_0x47d5a5,_0x28277c,_0x21d63b){return _0x47d5a5(_0x28277c,_0x21d63b);},'zOhnP':function(_0x4c79e6,_0x10b9d0,_0x1620e7,_0x1bac36,_0x179e6c,_0x1d3b21,_0x2e0d56){return _0x4c79e6(_0x10b9d0,_0x1620e7,_0x1bac36,_0x179e6c,_0x1d3b21,_0x2e0d56);},'ahbOu':function(_0x2b8d40,_0xbe3391,_0x19f60d){return _0x2b8d40(_0xbe3391,_0x19f60d);},'sfswy':function(_0x385fdc,_0x51d62d){return _0x385fdc!==_0x51d62d;},'FBVPy':function(_0x36f99c,_0x5d1efa){return _0x36f99c===_0x5d1efa;},'QkWqH':_0x572ce0(0x1c1),'KQhvz':_0x572ce0(0x1d9),'qNsno':_0x572ce0(0x1b8),'DMDBs':'region','pkXSI':_0x572ce0(0x1c7),'pZNSg':function(_0x51a860,_0x22846c){return _0x51a860(_0x22846c);},'lJCTV':function(_0x592155,_0x44eed1){return _0x592155===_0x44eed1;},'FYOBM':_0x572ce0(0x1e3),'dMkWl':function(_0x398cbc,_0x23acf8,_0x4f8400,_0x5cc885,_0x3c48da,_0x9890c1,_0x254931){return _0x398cbc(_0x23acf8,_0x4f8400,_0x5cc885,_0x3c48da,_0x9890c1,_0x254931);},'RNYbP':_0x572ce0(0x1f4),'SGPQV':_0x572ce0(0x1a4),'miqKH':_0x572ce0(0x1d3)};try{global_registry[_0x572ce0(0x1da)]=_0x5d17ee[_0x572ce0(0x1f1)](uuidv4);let _0xb55e7=_0x572ce0(0x1a2)+AG_API_URL+_0x572ce0(0x1cd);_0x421277[_0x572ce0(0x1dd)]&&(_0xb55e7=_0x572ce0(0x1a2)+AG_API_URL+_0x572ce0(0x1aa));!fs[_0x572ce0(0x1c9)](_0x5d17ee[_0x572ce0(0x1c6)](getCredentialsPath))&&(console[_0x572ce0(0x1ef)](_0x5d17ee[_0x572ce0(0x1a0)]),await _0x5d17ee[_0x572ce0(0x1b5)](sendInstrumentationEvent,_0x421277,_0x5d17ee[_0x572ce0(0x1f8)],messageTypes[_0x572ce0(0x1e1)],_0x5d17ee['XvchC'],null,_0x421277),process[_0x572ce0(0x1a5)](0x1));const _0x955154=JSON['parse'](fs[_0x572ce0(0x1b9)](_0x5d17ee['Aboyl'](getCredentialsPath))),_0x8adaff={'method':_0x5d17ee[_0x572ce0(0x1df)],'headers':_0x5d17ee[_0x572ce0(0x1f0)](getAuthHeader,_0x955154[_0x572ce0(0x19e)]['username'],_0x955154['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x572ce0(0x1f7)]=_0x955154[_0x572ce0(0x19e)]['username'],global_registry[_0x572ce0(0x1ea)]=_0x955154['Browserstack'][_0x572ce0(0x1d8)],_0x5d17ee[_0x572ce0(0x1d6)](sendInstrumentationEvent,_0x421277,_0x5d17ee['klNYs'],messageTypes[_0x572ce0(0x1ae)],null,null,_0x421277);const _0x5495dc=await _0x5d17ee[_0x572ce0(0x1bb)](got,_0xb55e7,_0x8adaff);if(_0x5d17ee[_0x572ce0(0x1d1)](_0x5495dc,null)&&_0x5d17ee[_0x572ce0(0x1d1)](_0x5495dc,undefined)&&_0x5d17ee[_0x572ce0(0x1ee)](_0x5495dc[_0x572ce0(0x1b7)],0xc8)){const _0x55800c=JSON['parse'](_0x5495dc[_0x572ce0(0x1f6)]);console['log'](_0x5d17ee[_0x572ce0(0x1c5)]);const _0x1008dd=[];_0x1008dd[_0x572ce0(0x1a6)]([_0x5d17ee['KQhvz'],_0x5d17ee[_0x572ce0(0x1c8)],_0x5d17ee[_0x572ce0(0x1f9)],_0x5d17ee[_0x572ce0(0x1ab)]]),_0x55800c[_0x572ce0(0x1f2)](_0x32f5df=>{const _0x5e2c47=_0x572ce0;_0x1008dd[_0x5e2c47(0x1a6)]([_0x32f5df[_0x5e2c47(0x1bd)],_0x32f5df['cloudProvider'],_0x32f5df[_0x5e2c47(0x1d7)],_0x32f5df[_0x5e2c47(0x1c7)]]);}),console[_0x572ce0(0x1ba)](_0x5d17ee[_0x572ce0(0x1f5)](table,_0x1008dd)),process['exit'](0x0);}_0x5d17ee['lJCTV'](_0x5495dc[_0x572ce0(0x1b7)],0x191)&&(console[_0x572ce0(0x1ef)](_0x5d17ee[_0x572ce0(0x1b6)]),await _0x5d17ee[_0x572ce0(0x1d5)](sendInstrumentationEvent,_0x421277,_0x5d17ee[_0x572ce0(0x1f8)],messageTypes[_0x572ce0(0x1e1)],_0x5d17ee[_0x572ce0(0x1ed)],null,_0x421277),process['exit'](0x1)),console[_0x572ce0(0x1ef)](_0x572ce0(0x1de)+JSON[_0x572ce0(0x1b0)](_0x5495dc)),await _0x5d17ee['qihko'](sendInstrumentationEvent,_0x421277,_0x5d17ee[_0x572ce0(0x1f8)],messageTypes[_0x572ce0(0x1e1)],_0x5d17ee[_0x572ce0(0x1ca)],_0x5495dc,_0x421277),process[_0x572ce0(0x1a5)](0x1);}catch(_0x318b65){console[_0x572ce0(0x1ef)](_0x572ce0(0x1e6)+_0x318b65[_0x572ce0(0x1e2)]),await _0x5d17ee[_0x572ce0(0x1d5)](sendInstrumentationEvent,_0x421277,_0x5d17ee[_0x572ce0(0x1f8)],messageTypes['ERROR'],_0x5d17ee[_0x572ce0(0x1af)],_0x318b65,_0x421277),process[_0x572ce0(0x1a5)](0x1);}};
@@ -1 +1 @@
1
- const a15_0x31fd8c=a15_0x5379;function a15_0x2594(){const _0x13a0b1=['mRTws','init-not-called','status','rRmCy','builder','unknown-error','password','help','list','grid','../../utils/instrumentationUtils','grid-id','body','log','144uwbDZY','got','running','vKRRc','readFileSync','cluster-name','phPYZ','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','142MqXXpk','statusCode','10583DSucNT','INFO','grid-name','error','GET','Failed\x20to\x20list\x20resources!\x20Error:\x20','Browserstack','bstackAccesskey','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/get-grids','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','/packages/cli/get-all-grids','kUQRK','parse','queued','BoTJu','https://','handler','2374030MdTiHh','bstackUsername','ERROR','zrMCH','PlmrW','YSXRu','zcCQh','username','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','22460WvXeaK','EbfXS','clusterName','description','oMZWJ','arJar','1765731QRANpZ','8pRRmRO','222HyFLyx','type','boolean','WduKk','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','requestId','CwQLb','table','BUrch','unauthorised','all-grids','stack','sNyWl','5807000saQBAA','4491319bVSTPk','../../config/constants','6835338eiMhUi','epilogue','tdlzo','push','ZlWjy','name','WnTlY','6IGpIAW','options','desc','usage','command','JTAWQ','exit','list-grids-called'];a15_0x2594=function(){return _0x13a0b1;};return a15_0x2594();}function a15_0x5379(_0x1a097d,_0x5b47a5){const _0x259417=a15_0x2594();return a15_0x5379=function(_0x537958,_0x100767){_0x537958=_0x537958-0x19b;let _0xbfacb4=_0x259417[_0x537958];return _0xbfacb4;},a15_0x5379(_0x1a097d,_0x5b47a5);}(function(_0x496fb9,_0x3cc8d7){const _0xfc0d9d=a15_0x5379,_0x495951=_0x496fb9();while(!![]){try{const _0x5b6274=-parseInt(_0xfc0d9d(0x1eb))/0x1*(-parseInt(_0xfc0d9d(0x1e9))/0x2)+-parseInt(_0xfc0d9d(0x1b4))/0x3*(-parseInt(_0xfc0d9d(0x1ac))/0x4)+parseInt(_0xfc0d9d(0x1a3))/0x5*(parseInt(_0xfc0d9d(0x1cb))/0x6)+parseInt(_0xfc0d9d(0x1c2))/0x7*(-parseInt(_0xfc0d9d(0x1b3))/0x8)+parseInt(_0xfc0d9d(0x1c4))/0x9+parseInt(_0xfc0d9d(0x1c1))/0xa+-parseInt(_0xfc0d9d(0x1b2))/0xb*(parseInt(_0xfc0d9d(0x1e1))/0xc);if(_0x5b6274===_0x3cc8d7)break;else _0x495951['push'](_0x495951['shift']());}catch(_0x54b1bc){_0x495951['push'](_0x495951['shift']());}}}(a15_0x2594,0x65146));const fs=require('fs'),got=require(a15_0x31fd8c(0x1e2)),{table}=require(a15_0x31fd8c(0x1bb)),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x31fd8c(0x1c3)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x31fd8c(0x1dd));exports[a15_0x31fd8c(0x1cf)]='grids',exports[a15_0x31fd8c(0x1cd)]=a15_0x31fd8c(0x19b),exports[a15_0x31fd8c(0x1d7)]=function(_0x4802d6){const _0x5939c8=a15_0x31fd8c,_0x3aa879={};_0x3aa879[_0x5939c8(0x1a9)]=_0x5939c8(0x1ab),_0x3aa879[_0x5939c8(0x1c6)]=_0x5939c8(0x1b6),_0x3aa879[_0x5939c8(0x19d)]='help';const _0x1c9cab=_0x3aa879,_0x14bf23={};_0x14bf23[_0x5939c8(0x1af)]=_0x1c9cab[_0x5939c8(0x1a9)],_0x14bf23[_0x5939c8(0x1b5)]=_0x1c9cab['tdlzo'];const _0x10ea20={};return _0x10ea20[_0x5939c8(0x1be)]=_0x14bf23,_0x4802d6[_0x5939c8(0x1ce)](HELP_HEADER_MESSAGE[_0x5939c8(0x1db)][_0x5939c8(0x1dc)])[_0x5939c8(0x1c5)](HELP_FOOTER_MESSAGE)[_0x5939c8(0x1cc)](_0x10ea20)[_0x5939c8(0x1da)](_0x1c9cab[_0x5939c8(0x19d)])['argv'];},exports[a15_0x31fd8c(0x1a2)]=async function(_0x5707c4){const _0x4ad90c=a15_0x31fd8c,_0x2cf7b9={'BUrch':function(_0x4c99ed){return _0x4c99ed();},'zrMCH':_0x4ad90c(0x1e8),'phPYZ':function(_0x2785d2,_0x17f27a,_0x3b1527,_0x2c2757,_0x5cdaab,_0xd3710d,_0x2cd1d4){return _0x2785d2(_0x17f27a,_0x3b1527,_0x2c2757,_0x5cdaab,_0xd3710d,_0x2cd1d4);},'rRmCy':_0x4ad90c(0x1d2),'EbfXS':_0x4ad90c(0x1d4),'WnTlY':_0x4ad90c(0x1ef),'WduKk':function(_0x467416,_0x11d84f,_0x4d0b90){return _0x467416(_0x11d84f,_0x4d0b90);},'vKRRc':function(_0x4321e7,_0x29b0c2){return _0x4321e7!==_0x29b0c2;},'JTAWQ':function(_0x2dbc92,_0xd9cc36){return _0x2dbc92===_0xd9cc36;},'CwQLb':'\x0aFound\x20the\x20following\x20grids:\x0a','BoTJu':_0x4ad90c(0x1de),'Pkomq':_0x4ad90c(0x1ed),'PlmrW':_0x4ad90c(0x1d5),'YSXRu':_0x4ad90c(0x1e3),'oMZWJ':_0x4ad90c(0x19f),'HmuWm':_0x4ad90c(0x1e6),'ZlWjy':function(_0x53a5dc,_0x479622){return _0x53a5dc(_0x479622);},'mRTws':_0x4ad90c(0x1f3),'ooZRP':function(_0x54fbd4,_0x5c354d,_0x661fa5,_0x54814e,_0x4beae2,_0x1a4386,_0x4a4134){return _0x54fbd4(_0x5c354d,_0x661fa5,_0x54814e,_0x4beae2,_0x1a4386,_0x4a4134);},'sNyWl':_0x4ad90c(0x1bd),'arJar':'server-error','jOAzc':_0x4ad90c(0x1d8)};try{global_registry[_0x4ad90c(0x1b9)]=_0x2cf7b9['BUrch'](uuidv4);!fs['existsSync'](_0x2cf7b9[_0x4ad90c(0x1bc)](getCredentialsPath))&&(console['error'](_0x2cf7b9[_0x4ad90c(0x1a6)]),await _0x2cf7b9['phPYZ'](sendInstrumentationEvent,_0x5707c4,_0x2cf7b9[_0x4ad90c(0x1d6)],messageTypes[_0x4ad90c(0x1a5)],_0x2cf7b9[_0x4ad90c(0x1ad)],null,_0x5707c4),process['exit'](0x1));const _0x123ed5=JSON[_0x4ad90c(0x19e)](fs[_0x4ad90c(0x1e5)](_0x2cf7b9['BUrch'](getCredentialsPath)));let _0x25b9da=_0x4ad90c(0x1a1)+AG_API_URL+_0x4ad90c(0x1f4);_0x5707c4['allGrids']&&(_0x25b9da=_0x4ad90c(0x1a1)+AG_API_URL+_0x4ad90c(0x19c));const _0x57597e={'method':_0x2cf7b9[_0x4ad90c(0x1ca)],'headers':_0x2cf7b9[_0x4ad90c(0x1b7)](getAuthHeader,_0x123ed5[_0x4ad90c(0x1f1)]['username'],_0x123ed5[_0x4ad90c(0x1f1)][_0x4ad90c(0x1d9)]),'throwHttpErrors':![]};global_registry[_0x4ad90c(0x1a4)]=_0x123ed5[_0x4ad90c(0x1f1)][_0x4ad90c(0x1aa)],global_registry[_0x4ad90c(0x1f2)]=_0x123ed5[_0x4ad90c(0x1f1)][_0x4ad90c(0x1d9)],_0x2cf7b9['phPYZ'](sendInstrumentationEvent,_0x5707c4,_0x2cf7b9['rRmCy'],messageTypes[_0x4ad90c(0x1ec)],null,null,_0x5707c4);const _0x1250c9=await _0x2cf7b9[_0x4ad90c(0x1b7)](got,_0x25b9da,_0x57597e);if(_0x2cf7b9[_0x4ad90c(0x1e4)](_0x1250c9,null)&&_0x2cf7b9[_0x4ad90c(0x1e4)](_0x1250c9,undefined)&&_0x2cf7b9[_0x4ad90c(0x1d0)](_0x1250c9['statusCode'],0xc8)){const _0x520639=JSON[_0x4ad90c(0x19e)](_0x1250c9[_0x4ad90c(0x1df)]);console[_0x4ad90c(0x1e0)](_0x2cf7b9[_0x4ad90c(0x1ba)]);const _0x331f58=[];_0x331f58[_0x4ad90c(0x1c7)]([_0x2cf7b9[_0x4ad90c(0x1a0)],_0x2cf7b9['Pkomq'],_0x2cf7b9[_0x4ad90c(0x1a7)],_0x2cf7b9[_0x4ad90c(0x1a8)],_0x2cf7b9[_0x4ad90c(0x1b0)],_0x2cf7b9['HmuWm']]),_0x520639['forEach'](_0x1a4047=>{const _0x4543ea=_0x4ad90c;_0x331f58[_0x4543ea(0x1c7)]([_0x1a4047['id'],_0x1a4047[_0x4543ea(0x1c9)],_0x1a4047['status'],_0x1a4047[_0x4543ea(0x1e3)],_0x1a4047[_0x4543ea(0x19f)],_0x1a4047[_0x4543ea(0x1ae)]]);}),console[_0x4ad90c(0x1e0)](_0x2cf7b9[_0x4ad90c(0x1c8)](table,_0x331f58)),process[_0x4ad90c(0x1d1)](0x0);}_0x2cf7b9[_0x4ad90c(0x1d0)](_0x1250c9[_0x4ad90c(0x1ea)],0x191)&&(console[_0x4ad90c(0x1ee)](_0x2cf7b9[_0x4ad90c(0x1d3)]),await _0x2cf7b9['ooZRP'](sendInstrumentationEvent,_0x5707c4,_0x2cf7b9[_0x4ad90c(0x1d6)],messageTypes['ERROR'],_0x2cf7b9[_0x4ad90c(0x1c0)],null,_0x5707c4),process[_0x4ad90c(0x1d1)](0x1)),console[_0x4ad90c(0x1ee)](_0x4ad90c(0x1b8)+JSON['stringify'](_0x1250c9)),await _0x2cf7b9[_0x4ad90c(0x1e7)](sendInstrumentationEvent,_0x5707c4,_0x2cf7b9[_0x4ad90c(0x1d6)],messageTypes[_0x4ad90c(0x1a5)],_0x2cf7b9[_0x4ad90c(0x1b1)],_0x1250c9,_0x5707c4),process[_0x4ad90c(0x1d1)](0x1);}catch(_0xfb351e){console['error'](_0x4ad90c(0x1f0)+_0xfb351e[_0x4ad90c(0x1bf)]),await _0x2cf7b9['ooZRP'](sendInstrumentationEvent,_0x5707c4,_0x2cf7b9[_0x4ad90c(0x1d6)],messageTypes[_0x4ad90c(0x1a5)],_0x2cf7b9['jOAzc'],_0xfb351e,_0x5707c4),process['exit'](0x1);}};
1
+ function a15_0x55ca(){const _0x2d43f3=['argv','TCMRQ','715325cgNlzc','../../config/constants','running','allGrids','GLbhR','EuBje','all-grids','UcKpc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','HFShN','stringify','options','281524fOfJEX','diKcD','ERROR','push','Nqbnu','exit','unauthorised','server-error','HUGMN','Failed\x20to\x20list\x20resources!\x20Error:\x20','JVDrB','\x0aFound\x20the\x20following\x20grids:\x0a','https://','758IPOyvI','62082MxLHJf','8HsgftF','HCxSO','boolean','queued','mbQtS','username','QvITn','JixHG','Yepgf','../../utils/instrumentationUtils','cluster-name','parse','SFcNJ','bstackUsername','qkZBX','readFileSync','bstackAccesskey','name','description','NmSIH','statusCode','sEbQU','Browserstack','error','387702bDOSQP','INFO','11grSYYH','command','179qzAAbm','body','tCNPL','grid-id','1292949QkoFes','stack','UfPYO','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/get-all-grids','grid','grids','status','grid-name','got','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','UZvPm','log','3CYJjWT','desc','help','clusterName','JMmhl','usage','password','5385190pcMAmA','LFcuN'];a15_0x55ca=function(){return _0x2d43f3;};return a15_0x55ca();}const a15_0x397839=a15_0x13fe;(function(_0x352e3b,_0x17a01d){const _0x2e0883=a15_0x13fe,_0x3d592d=_0x352e3b();while(!![]){try{const _0x20c309=parseInt(_0x2e0883(0x1ed))/0x1*(-parseInt(_0x2e0883(0x1cf))/0x2)+-parseInt(_0x2e0883(0x1fe))/0x3*(parseInt(_0x2e0883(0x1c2))/0x4)+-parseInt(_0x2e0883(0x209))/0x5+parseInt(_0x2e0883(0x1e9))/0x6+-parseInt(_0x2e0883(0x1f1))/0x7+-parseInt(_0x2e0883(0x1d1))/0x8*(parseInt(_0x2e0883(0x1d0))/0x9)+parseInt(_0x2e0883(0x205))/0xa*(parseInt(_0x2e0883(0x1eb))/0xb);if(_0x20c309===_0x17a01d)break;else _0x3d592d['push'](_0x3d592d['shift']());}catch(_0x48bbfa){_0x3d592d['push'](_0x3d592d['shift']());}}}(a15_0x55ca,0x1fcc4));function a15_0x13fe(_0x1cf2ee,_0x554d66){const _0x55cafa=a15_0x55ca();return a15_0x13fe=function(_0x13fe20,_0x582482){_0x13fe20=_0x13fe20-0x1be;let _0x27dd48=_0x55cafa[_0x13fe20];return _0x27dd48;},a15_0x13fe(_0x1cf2ee,_0x554d66);}const fs=require('fs'),got=require(a15_0x397839(0x1fa)),{table}=require('table'),{v4:uuidv4}=require('uuid'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a15_0x397839(0x20a)),{getCredentialsPath,getAuthHeader}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require(a15_0x397839(0x1da));exports[a15_0x397839(0x1ec)]=a15_0x397839(0x1f7),exports[a15_0x397839(0x1ff)]='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports['builder']=function(_0x27dea3){const _0x209b2a=a15_0x397839,_0x3c56be={};_0x3c56be[_0x209b2a(0x1cc)]=_0x209b2a(0x1fb),_0x3c56be[_0x209b2a(0x210)]=_0x209b2a(0x1d3),_0x3c56be[_0x209b2a(0x1c3)]=_0x209b2a(0x200);const _0x4d5f9=_0x3c56be,_0x4c5d89={};_0x4c5d89[_0x209b2a(0x1e3)]=_0x4d5f9[_0x209b2a(0x1cc)],_0x4c5d89['type']=_0x4d5f9[_0x209b2a(0x210)];const _0x545f6d={};return _0x545f6d[_0x209b2a(0x20f)]=_0x4c5d89,_0x27dea3[_0x209b2a(0x203)](HELP_HEADER_MESSAGE['list'][_0x209b2a(0x1f6)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x209b2a(0x1c1)](_0x545f6d)[_0x209b2a(0x200)](_0x4d5f9[_0x209b2a(0x1c3)])[_0x209b2a(0x207)];},exports['handler']=async function(_0x322fcc){const _0x46b767=a15_0x397839,_0x42cf92={'QvITn':function(_0x175279){return _0x175279();},'tCNPL':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','GLbhR':function(_0x2356f7,_0xb2bc84,_0x183b58,_0x1cc8cb,_0x5f0a01,_0x367e7e,_0x5cd100){return _0x2356f7(_0xb2bc84,_0x183b58,_0x1cc8cb,_0x5f0a01,_0x367e7e,_0x5cd100);},'UfPYO':'list-grids-called','JMmhl':'init-not-called','HCxSO':'GET','HFShN':function(_0x2ad896,_0x3ec696,_0x449d2b){return _0x2ad896(_0x3ec696,_0x449d2b);},'EuBje':function(_0x523316,_0x2d270d,_0x5e3732,_0x2f055a,_0x1508a1,_0x435920,_0x453e1e){return _0x523316(_0x2d270d,_0x5e3732,_0x2f055a,_0x1508a1,_0x435920,_0x453e1e);},'LFcuN':function(_0x1fadf3,_0x414c87,_0xd17bd5){return _0x1fadf3(_0x414c87,_0xd17bd5);},'sEbQU':function(_0x15cf6f,_0x5a1479){return _0x15cf6f!==_0x5a1479;},'UZvPm':function(_0x212c7f,_0x39798e){return _0x212c7f===_0x39798e;},'jGEOl':_0x46b767(0x1cd),'TCMRQ':_0x46b767(0x1f0),'JixHG':_0x46b767(0x1f9),'RJqCU':'status','mbQtS':'running','SFcNJ':_0x46b767(0x1d4),'QrXQK':_0x46b767(0x1db),'qyVKM':function(_0x3ee05b,_0x13dbc7){return _0x3ee05b(_0x13dbc7);},'Yepgf':_0x46b767(0x1f4),'aqDrH':function(_0x3304ad,_0x2354c8,_0x339e45,_0x5ec50b,_0x10351b,_0x22bad0,_0x530167){return _0x3304ad(_0x2354c8,_0x339e45,_0x5ec50b,_0x10351b,_0x22bad0,_0x530167);},'Nqbnu':_0x46b767(0x1c8),'HUGMN':function(_0x3763e0,_0x2cd271,_0x37e4a1,_0x5d8c44,_0x54458e,_0xdef130,_0x9d1922){return _0x3763e0(_0x2cd271,_0x37e4a1,_0x5d8c44,_0x54458e,_0xdef130,_0x9d1922);},'NmSIH':_0x46b767(0x1c9),'qkZBX':'unknown-error'};try{global_registry['requestId']=_0x42cf92[_0x46b767(0x1d7)](uuidv4);!fs['existsSync'](_0x42cf92[_0x46b767(0x1d7)](getCredentialsPath))&&(console['error'](_0x42cf92[_0x46b767(0x1ef)]),await _0x42cf92[_0x46b767(0x20d)](sendInstrumentationEvent,_0x322fcc,_0x42cf92['UfPYO'],messageTypes[_0x46b767(0x1c4)],_0x42cf92[_0x46b767(0x202)],null,_0x322fcc),process[_0x46b767(0x1c7)](0x1));const _0x262234=JSON[_0x46b767(0x1dc)](fs[_0x46b767(0x1e0)](_0x42cf92[_0x46b767(0x1d7)](getCredentialsPath)));let _0x21c0a4=_0x46b767(0x1ce)+AG_API_URL+'/packages/cli/get-grids';_0x322fcc[_0x46b767(0x20c)]&&(_0x21c0a4=_0x46b767(0x1ce)+AG_API_URL+_0x46b767(0x1f5));const _0xb89e67={'method':_0x42cf92[_0x46b767(0x1d2)],'headers':_0x42cf92[_0x46b767(0x1bf)](getAuthHeader,_0x262234[_0x46b767(0x1e7)][_0x46b767(0x1d6)],_0x262234['Browserstack']['password']),'throwHttpErrors':![]};global_registry[_0x46b767(0x1de)]=_0x262234[_0x46b767(0x1e7)][_0x46b767(0x1d6)],global_registry[_0x46b767(0x1e1)]=_0x262234['Browserstack'][_0x46b767(0x204)],_0x42cf92[_0x46b767(0x20e)](sendInstrumentationEvent,_0x322fcc,_0x42cf92['UfPYO'],messageTypes[_0x46b767(0x1ea)],null,null,_0x322fcc);const _0x54f3f0=await _0x42cf92[_0x46b767(0x206)](got,_0x21c0a4,_0xb89e67);if(_0x42cf92[_0x46b767(0x1e6)](_0x54f3f0,null)&&_0x42cf92[_0x46b767(0x1e6)](_0x54f3f0,undefined)&&_0x42cf92['UZvPm'](_0x54f3f0[_0x46b767(0x1e5)],0xc8)){const _0x1d8aa2=JSON['parse'](_0x54f3f0[_0x46b767(0x1ee)]);console['log'](_0x42cf92['jGEOl']);const _0x4c15dc=[];_0x4c15dc[_0x46b767(0x1c5)]([_0x42cf92[_0x46b767(0x208)],_0x42cf92[_0x46b767(0x1d8)],_0x42cf92['RJqCU'],_0x42cf92[_0x46b767(0x1d5)],_0x42cf92[_0x46b767(0x1dd)],_0x42cf92['QrXQK']]),_0x1d8aa2['forEach'](_0x2d655d=>{const _0x5215b6=_0x46b767;_0x4c15dc[_0x5215b6(0x1c5)]([_0x2d655d['id'],_0x2d655d[_0x5215b6(0x1e2)],_0x2d655d[_0x5215b6(0x1f8)],_0x2d655d[_0x5215b6(0x20b)],_0x2d655d[_0x5215b6(0x1d4)],_0x2d655d[_0x5215b6(0x201)]]);}),console[_0x46b767(0x1fd)](_0x42cf92['qyVKM'](table,_0x4c15dc)),process['exit'](0x0);}_0x42cf92[_0x46b767(0x1fc)](_0x54f3f0[_0x46b767(0x1e5)],0x191)&&(console['error'](_0x42cf92[_0x46b767(0x1d9)]),await _0x42cf92['aqDrH'](sendInstrumentationEvent,_0x322fcc,_0x42cf92[_0x46b767(0x1f3)],messageTypes[_0x46b767(0x1c4)],_0x42cf92[_0x46b767(0x1c6)],null,_0x322fcc),process[_0x46b767(0x1c7)](0x1)),console['error'](_0x46b767(0x1be)+JSON[_0x46b767(0x1c0)](_0x54f3f0)),await _0x42cf92[_0x46b767(0x1ca)](sendInstrumentationEvent,_0x322fcc,_0x42cf92[_0x46b767(0x1f3)],messageTypes[_0x46b767(0x1c4)],_0x42cf92[_0x46b767(0x1e4)],_0x54f3f0,_0x322fcc),process[_0x46b767(0x1c7)](0x1);}catch(_0x28c45c){console[_0x46b767(0x1e8)](_0x46b767(0x1cb)+_0x28c45c[_0x46b767(0x1f2)]),await _0x42cf92[_0x46b767(0x20d)](sendInstrumentationEvent,_0x322fcc,_0x42cf92[_0x46b767(0x1f3)],messageTypes['ERROR'],_0x42cf92[_0x46b767(0x1df)],_0x28c45c,_0x322fcc),process[_0x46b767(0x1c7)](0x1);}};