browserstack-node-sdk 1.28.0 → 1.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/gcs.js +1 -1
  6. package/ats/src/cloudproviders/utils.js +1 -1
  7. package/ats/src/commands/configure.js +1 -1
  8. package/ats/src/commands/connect.js +1 -1
  9. package/ats/src/commands/connect_commands/grid.js +1 -1
  10. package/ats/src/commands/create.js +1 -1
  11. package/ats/src/commands/create_commands/grid.js +1 -1
  12. package/ats/src/commands/delete.js +1 -1
  13. package/ats/src/commands/delete_commands/grid.js +1 -1
  14. package/ats/src/commands/init.js +1 -1
  15. package/ats/src/commands/list.js +1 -1
  16. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  17. package/ats/src/commands/list_commands/grids.js +1 -1
  18. package/ats/src/config/constants.js +1 -1
  19. package/ats/src/config/logger.js +1 -1
  20. package/ats/src/index.js +1 -1
  21. package/ats/src/utils/AWSUtils.js +1 -1
  22. package/ats/src/utils/createAutoscalerStack.js +1 -1
  23. package/ats/src/utils/createClusterStack.js +1 -1
  24. package/ats/src/utils/createk8sClient.js +1 -1
  25. package/ats/src/utils/deleteStack.js +1 -1
  26. package/ats/src/utils/gridComponents.js +1 -1
  27. package/ats/src/utils/hstUtils.js +1 -1
  28. package/ats/src/utils/instrumentationUtils.js +1 -1
  29. package/ats/src/utils/userInput.js +1 -1
  30. package/ats/src/utils/utilityMethods.js +1 -1
  31. package/ats/src/utils/webSocketUtils.js +1 -1
  32. package/package.json +1 -1
  33. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  34. package/src/bin/codeceptjs/command.js +1 -1
  35. package/src/bin/cucumber-js/command.js +1 -1
  36. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  37. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  38. package/src/bin/cucumber-js/test.setup.js +1 -1
  39. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  40. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  41. package/src/bin/jest/command.js +1 -1
  42. package/src/bin/jest/customEnvironment.js +1 -1
  43. package/src/bin/jest/customTestRunnerTemplate.js +1 -1
  44. package/src/bin/jest/jest.setup.js +1 -1
  45. package/src/bin/jest/test_before.setup.js +1 -1
  46. package/src/bin/launcher/launcher.js +1 -1
  47. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  48. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  49. package/src/bin/mocha/command.js +1 -1
  50. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  51. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  52. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  53. package/src/bin/mocha/test.setup.js +1 -1
  54. package/src/bin/nightwatch/command.js +1 -1
  55. package/src/bin/playwright/accessibility-helper.js +1 -1
  56. package/src/bin/playwright/command.js +1 -1
  57. package/src/bin/playwright/globalSetup.js +1 -1
  58. package/src/bin/playwright/mock-process.js +1 -1
  59. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  60. package/src/bin/playwright/reporter/reporter.js +1 -1
  61. package/src/bin/playwright/reporter/test-details.js +1 -1
  62. package/src/bin/runner.js +1 -1
  63. package/src/bin/setup.js +1 -1
  64. package/src/bin/test-runner/index.js +1 -1
  65. package/src/bin/test-runner/runTest.js +1 -1
  66. package/src/bin/test-runner/testWorker.js +1 -1
  67. package/src/bin/utils/constants.js +1 -1
  68. package/src/bin/utils/log4jsAppender.js +1 -1
  69. package/src/bin/utils/logPatcher.js +1 -1
  70. package/src/bin/utils/logReportingAPI.js +1 -1
  71. package/src/bin/vanilla-js/command.js +1 -1
  72. package/src/helpers/BrowserStackSetup.js +1 -1
  73. package/src/helpers/accessibility-automation/constants.js +1 -1
  74. package/src/helpers/accessibility-automation/helper.js +1 -1
  75. package/src/helpers/ats/constants.js +1 -1
  76. package/src/helpers/ats/helper.js +1 -1
  77. package/src/helpers/capsMapping.js +1 -1
  78. package/src/helpers/helper.js +1 -1
  79. package/src/helpers/logger.js +1 -1
  80. package/src/helpers/patchHelpers.js +1 -1
  81. package/src/helpers/percy/Percy.js +1 -0
  82. package/src/helpers/percy/PercyBinary.js +1 -0
  83. package/src/helpers/percy/PercyCaptureMap.js +1 -0
  84. package/src/helpers/percy/PercyCaptureModes.js +1 -0
  85. package/src/helpers/percy/PercySDK.js +1 -0
  86. package/src/helpers/percy/index.js +1 -0
  87. package/src/helpers/request-spy.js +1 -1
  88. package/src/helpers/setKeepAlive.js +1 -1
  89. package/src/helpers/test-observability/constants.js +1 -1
  90. package/src/helpers/test-observability/error-handler.js +1 -1
  91. package/src/helpers/test-observability/performance-tester.js +1 -1
  92. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  93. package/src/helpers/test-observability/sessionHandler.js +1 -1
  94. package/src/helpers/test-observability/utils.js +1 -1
  95. package/src/helpers/w3cMapping.js +1 -1
  96. package/src/hubAllocationMethods.js +1 -1
  97. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a9_0x2344f7=a9_0x361d;function a9_0x361d(_0x261ba3,_0x40d35a){const _0x284768=a9_0x2847();return a9_0x361d=function(_0x361d17,_0x261e2b){_0x361d17=_0x361d17-0x1a9;let _0x7c3a6=_0x284768[_0x361d17];return _0x7c3a6;},a9_0x361d(_0x261ba3,_0x40d35a);}function a9_0x2847(){const _0x567f0d=['93424xeEjAo','create_commands','usage','recommendCommands','5912520qzclQi','handler','1060416MArlWl','1302414lCdcZe','demandCommand','Create\x20a\x20new\x20Automation\x20grid.','542329JejlHl','create','help','commandDir','2490xsBCfZ','command','511hBEfQc','strict','desc','2iGTHgw','56718nFdQzb','epilogue','YMnyl','builder','3967700DCWHoh'];a9_0x2847=function(){return _0x567f0d;};return a9_0x2847();}(function(_0x769457,_0x25b4ca){const _0x21edb9=a9_0x361d,_0x3f2d79=_0x769457();while(!![]){try{const _0x3a9e67=-parseInt(_0x21edb9(0x1c0))/0x1+parseInt(_0x21edb9(0x1b0))/0x2*(parseInt(_0x21edb9(0x1bd))/0x3)+-parseInt(_0x21edb9(0x1bc))/0x4+parseInt(_0x21edb9(0x1b5))/0x5+parseInt(_0x21edb9(0x1ba))/0x6+parseInt(_0x21edb9(0x1ad))/0x7*(parseInt(_0x21edb9(0x1b6))/0x8)+parseInt(_0x21edb9(0x1b1))/0x9*(-parseInt(_0x21edb9(0x1ab))/0xa);if(_0x3a9e67===_0x25b4ca)break;else _0x3f2d79['push'](_0x3f2d79['shift']());}catch(_0x12b5c8){_0x3f2d79['push'](_0x3f2d79['shift']());}}}(a9_0x2847,0xa8341));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a9_0x2344f7(0x1ac)]=a9_0x2344f7(0x1c1),exports[a9_0x2344f7(0x1af)]=a9_0x2344f7(0x1bf),exports[a9_0x2344f7(0x1b4)]=function(_0x55a8a1){const _0x57b5b5=a9_0x2344f7,_0x284ccc={};_0x284ccc['WhTyu']=_0x57b5b5(0x1b7),_0x284ccc[_0x57b5b5(0x1b3)]=_0x57b5b5(0x1a9);const _0x8e2e15=_0x284ccc;return _0x55a8a1[_0x57b5b5(0x1b8)](HELP_HEADER_MESSAGE[_0x57b5b5(0x1c1)])[_0x57b5b5(0x1b2)](HELP_FOOTER_MESSAGE)[_0x57b5b5(0x1aa)](_0x8e2e15['WhTyu'])[_0x57b5b5(0x1be)]()[_0x57b5b5(0x1b9)]()[_0x57b5b5(0x1ae)]()[_0x57b5b5(0x1a9)](_0x8e2e15[_0x57b5b5(0x1b3)]);},exports[a9_0x2344f7(0x1bb)]=function(_0x3a0c21){};
1
+ const a9_0x300b5c=a9_0x4a7c;(function(_0x3af701,_0x33f5c5){const _0x1887ee=a9_0x4a7c,_0x3ea30f=_0x3af701();while(!![]){try{const _0x50739d=parseInt(_0x1887ee(0xdd))/0x1+-parseInt(_0x1887ee(0xc9))/0x2*(-parseInt(_0x1887ee(0xdb))/0x3)+-parseInt(_0x1887ee(0xd6))/0x4*(-parseInt(_0x1887ee(0xd9))/0x5)+parseInt(_0x1887ee(0xde))/0x6*(parseInt(_0x1887ee(0xdc))/0x7)+parseInt(_0x1887ee(0xd8))/0x8+parseInt(_0x1887ee(0xce))/0x9+-parseInt(_0x1887ee(0xd5))/0xa*(parseInt(_0x1887ee(0xd4))/0xb);if(_0x50739d===_0x33f5c5)break;else _0x3ea30f['push'](_0x3ea30f['shift']());}catch(_0x38e8fa){_0x3ea30f['push'](_0x3ea30f['shift']());}}}(a9_0x4cf7,0xd9212));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a9_0x300b5c(0xda));function a9_0x4a7c(_0x50a038,_0x328fad){const _0x4cf761=a9_0x4cf7();return a9_0x4a7c=function(_0x4a7c31,_0x4f301a){_0x4a7c31=_0x4a7c31-0xc5;let _0x22082a=_0x4cf761[_0x4a7c31];return _0x22082a;},a9_0x4a7c(_0x50a038,_0x328fad);}exports[a9_0x300b5c(0xd0)]='create',exports[a9_0x300b5c(0xc7)]=a9_0x300b5c(0xd1),exports[a9_0x300b5c(0xcf)]=function(_0x16309a){const _0x2f1434=a9_0x300b5c,_0x2bd6cb={};_0x2bd6cb[_0x2f1434(0xcd)]=_0x2f1434(0xcc),_0x2bd6cb[_0x2f1434(0xd3)]=_0x2f1434(0xc8);const _0x3f23c5=_0x2bd6cb;return _0x16309a[_0x2f1434(0xcb)](HELP_HEADER_MESSAGE[_0x2f1434(0xca)])[_0x2f1434(0xd7)](HELP_FOOTER_MESSAGE)['commandDir'](_0x3f23c5[_0x2f1434(0xcd)])[_0x2f1434(0xc6)]()[_0x2f1434(0xd2)]()[_0x2f1434(0xdf)]()[_0x2f1434(0xc8)](_0x3f23c5[_0x2f1434(0xd3)]);},exports[a9_0x300b5c(0xc5)]=function(_0x454c91){};function a9_0x4cf7(){const _0x37c3b3=['recommendCommands','YPuJU','440HjlltD','1191560HvqeBm','443568LzHhFE','epilogue','8463896NGJFGK','5XkyvRL','../config/constants','3YFPkfk','7HuTpqC','1005829UAxCkY','1403958Xgrndu','strict','handler','demandCommand','desc','help','3012322zXfcab','create','usage','create_commands','PXOnp','15666660pHNAws','builder','command','Create\x20a\x20new\x20Automation\x20grid.'];a9_0x4cf7=function(){return _0x37c3b3;};return a9_0x4cf7();}
@@ -1 +1 @@
1
- function a10_0x20c3(){const _0x475781=['usage','md5','uuid','ZdKDC','turboscale-managed-identity-','length','iRVTd','Lunbr','isClusterPresent','qXzFa','builder','2022qwbYdT','statusCode','username','create','../../cloudproviders/utils','Spawning\x20grid\x20on\x20to\x20the\x20cluster','hFymq','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','Creating\x20namespace','EZfky','AOJkJ','MNJsH','WebSocket','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','afOXT','wlJTh','true','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','createNamespace','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','3645927JZYaQb','lGHeo','QNvzo','CLI\x20run\x20finished:\x20','maxNodes','non-aws-azure-cluster','RoYKt','FgUDb','grid','Cluster\x20created\x20successfully','qJhLY','hubVersion','createdBy','deleteCluster','JYAdY','privateGrid','AfrnV','1|0|2|4|3','../../config/constants','ZvcgY','../../config/logger','bstackUsername','tWbaU','gridProfile','options','BkWLm','split','GKjBC','LxtsJ','request','nxxkw','xFYPL','RsZDR','njTED','private-grid','FVgxS','/packages/cli/get-grid-url?gridIdentifier=','create-grid-checks-null-response','MZYuM','OVvgt','metadata','gstad','riHAF','mRXci','../../utils/gridComponents','QTpec','Ulmvc','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','xtzTj','CLI_RUN_FINISHED','private-ingress-nginx-controller','Grid\x20spawned\x20on\x20the\x20cluster','soXEM','bfWoQ','message','vBiSV','help','includes','420ouwFUd','instanceType','gxtzg','ACxGk','nqPcj','uLpjH','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','qvudf','isPrivateGrid','4131408mRZEbS','KrVTx','clusterName','grid-spawning-failed','GET','yHltt','XFhVk','Nobnu','route53','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','4|8|6|3|7|0|5|2|1','vqnOs','browserVersion','kkGHH','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','region','NzVxq','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','7|0|4|2|6|3|8|5|1','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ZekzP','get-grid-url-null-response','oyJdH','iEjft','TUUPG','2iodWpN','password','toLowerCase','neaMc','HSlGl','../../utils/utilityMethods','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','description','DMAEh','pre-spawned-subnets-not-selected','XIfpV','warn','/packages/cli/create-grid-checks','https','\x20are\x20not\x20present\x20in\x20VPC:\x20','wYsJn','exit','fnAit','create-grid-checks-invalid-profile','vyQGx','user','CeZvA','pre-spawned-invalid-vpc','\x20using\x20\x27','Cluster\x20','grid-profile','KFoXo','Namespace\x20created','\x27\x20grid\x20profile','sxGpL','\x20in\x20existing\x20cluster\x20\x27','existsSync','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','gridName','TNcFM','Found\x20Subnets:\x20','evXEV','oVxxD','debug','VqQXC','getResourceClientId','vpc','QQsBD','kmvFB','writeFileSync','cIUrq','argv','replace','nkqkI','init-not-called','managedBy','YetgW','zAazK','util','requestId','dScso','://','unTqQ','197722EIOsrH','yHaaO','UEsTm','Grid\x20profile\x20fetched\x20from\x20backend','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','KNNsJ','create-grid-called','hiuzy','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','zTtZu','eDQJg','WgULW','string','setupAutoscaler','sZuWS','HhlXX','Found\x20VPC:\x20','UIQOz','Vkcim','pHtBa','type','234803HXjbfT','yXsqN','cloud-provider','rHGbV','s3Bucket','8216TCgGzm','8390KVAnWF','stringify','setupNewCluster','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','addListeners','concurrency','anEOb','pre-spawned-invalid-subnets','771MeTldF','EQkIl','LFKGa','Create\x20a\x20private/public\x20grid.','clusterRegion','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','aveav','CLI\x20run\x20started','uufJz','NnIMY','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','29216YiqUon','Spawning\x20the\x20grid\x20','ERROR','defaultGridProfile','<UsernamePlaceholder>','jlEuE','parse','XKdSR','Will\x20be\x20spawning\x20the\x20grid\x20','WCejF','RwrWY','DTVDl','NqXhC','CLI_RUN_STARTED','FvdVb','baMzQ','SbWoa','desc','body','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','command','ZDsOn','get-grid-url-non-200','delay','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','readFileSync','sWQdN','ZaMqo','rGqfM','gcxAi','IyRjl','cluster-name','annotations','msDkU','ingress-nginx','eVuDf','../../utils/instrumentationUtils','../../utils/webSocketUtils','sNsZi','XuNaR','cloudProvider','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','jheSt','Grid\x20can\x20be\x20accessed\x20at:\x20','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','sendEventToBackend','Deleting\x20the\x20CloudFormation\x20Stacks','grid-name','xBdnq','info','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','yAWzk','Adding\x20Websocket\x20listeners','IQbcC','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','Browserstack','LOG','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','gridProfileId','jztQM','AtpDr','dUqGP','16EEIrmU','subnets','jsEur','name','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','xhzbE','https://','YSBEX','error','Create\x20a\x20new\x20Automation\x20grid.'];a10_0x20c3=function(){return _0x475781;};return a10_0x20c3();}const a10_0x1b9232=a10_0x156d;(function(_0x309952,_0x2a571e){const _0x518f97=a10_0x156d,_0x487b3d=_0x309952();while(!![]){try{const _0x32d214=-parseInt(_0x518f97(0x135))/0x1*(-parseInt(_0x518f97(0x211))/0x2)+-parseInt(_0x518f97(0x143))/0x3*(-parseInt(_0x518f97(0x13a))/0x4)+-parseInt(_0x518f97(0x13b))/0x5*(parseInt(_0x518f97(0x1a1))/0x6)+parseInt(_0x518f97(0x24b))/0x7*(-parseInt(_0x518f97(0x18c))/0x8)+parseInt(_0x518f97(0x1b5))/0x9+parseInt(_0x518f97(0x1ef))/0xa*(parseInt(_0x518f97(0x14e))/0xb)+-parseInt(_0x518f97(0x1f8))/0xc;if(_0x32d214===_0x2a571e)break;else _0x487b3d['push'](_0x487b3d['shift']());}catch(_0x122843){_0x487b3d['push'](_0x487b3d['shift']());}}}(a10_0x20c3,0x4c6f2));function a10_0x156d(_0x5d5fc7,_0x173a43){const _0x20c3b2=a10_0x20c3();return a10_0x156d=function(_0x156d74,_0xbf8b90){_0x156d74=_0x156d74-0x129;let _0x27aa5d=_0x20c3b2[_0x156d74];return _0x27aa5d;},a10_0x156d(_0x5d5fc7,_0x173a43);}const fs=require('fs'),ws=require('ws'),util=require(a10_0x1b9232(0x246)),md5=require(a10_0x1b9232(0x197)),ReconnectingWebSocket=require('reconnecting-websocket'),request=require(a10_0x1b9232(0x1d2)),{v4:uuidv4}=require(a10_0x1b9232(0x198)),webSocketUtils=require(a10_0x1b9232(0x173)),{logger}=require(a10_0x1b9232(0x1c9)),{inputCloudProviderKeys}=require('../../utils/userInput'),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require(a10_0x1b9232(0x216)),{getCloudProviderObject}=require(a10_0x1b9232(0x1a5)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0x1b9232(0x1c7)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0x1b9232(0x1e1)),{createK8sClient}=require('../../utils/createk8sClient'),{sendInstrumentationEvent}=require(a10_0x1b9232(0x172)),promisifiedRequest=util['promisify'](request);exports[a10_0x1b9232(0x162)]=a10_0x1b9232(0x1bd),exports[a10_0x1b9232(0x15f)]=a10_0x1b9232(0x195),exports[a10_0x1b9232(0x1a0)]=function(_0x4e299a){const _0x1277a8=a10_0x1b9232,_0x3469fb={};_0x3469fb[_0x1277a8(0x174)]=_0x1277a8(0x1b2),_0x3469fb[_0x1277a8(0x205)]=_0x1277a8(0x12c),_0x3469fb[_0x1277a8(0x159)]=_0x1277a8(0x209),_0x3469fb[_0x1277a8(0x15e)]=_0x1277a8(0x17a),_0x3469fb[_0x1277a8(0x181)]=_0x1277a8(0x1a8),_0x3469fb[_0x1277a8(0x22b)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3469fb[_0x1277a8(0x244)]='Create\x20a\x20private/public\x20grid.',_0x3469fb[_0x1277a8(0x16b)]=_0x1277a8(0x1ed);const _0x2fd2ee=_0x3469fb,_0xf12827={};_0xf12827['description']=_0x2fd2ee[_0x1277a8(0x174)],_0xf12827[_0x1277a8(0x134)]=_0x2fd2ee['kkGHH'];const _0x21c3e9={};_0x21c3e9[_0x1277a8(0x218)]=_0x2fd2ee[_0x1277a8(0x159)],_0x21c3e9['type']=_0x2fd2ee[_0x1277a8(0x205)];const _0x39d5f8={};_0x39d5f8[_0x1277a8(0x218)]=_0x2fd2ee[_0x1277a8(0x15e)],_0x39d5f8[_0x1277a8(0x134)]=_0x2fd2ee[_0x1277a8(0x205)];const _0x54b8c0={};_0x54b8c0[_0x1277a8(0x218)]=_0x2fd2ee[_0x1277a8(0x181)],_0x54b8c0[_0x1277a8(0x134)]=_0x2fd2ee[_0x1277a8(0x205)];const _0x24e18d={};_0x24e18d['description']=_0x2fd2ee[_0x1277a8(0x22b)],_0x24e18d[_0x1277a8(0x134)]=_0x2fd2ee['kkGHH'];const _0x5ad39a={};_0x5ad39a[_0x1277a8(0x218)]=_0x2fd2ee[_0x1277a8(0x244)],_0x5ad39a['type']=_0x2fd2ee[_0x1277a8(0x205)];const _0xa1c07f={};return _0xa1c07f[_0x1277a8(0x17d)]=_0xf12827,_0xa1c07f['grid-profile']=_0x21c3e9,_0xa1c07f[_0x1277a8(0x16d)]=_0x39d5f8,_0xa1c07f[_0x1277a8(0x137)]=_0x54b8c0,_0xa1c07f['region']=_0x24e18d,_0xa1c07f['private-grid']=_0x5ad39a,_0x4e299a[_0x1277a8(0x196)](HELP_HEADER_MESSAGE[_0x1277a8(0x1a4)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x1277a8(0x1cd)](_0xa1c07f)[_0x1277a8(0x1ed)](_0x2fd2ee[_0x1277a8(0x16b)])[_0x1277a8(0x23f)];},exports['handler']=async function(_0x4f6bca){const _0x5ecbd0=a10_0x1b9232,_0x35cd80={'ulQGn':_0x5ecbd0(0x1b2),'nxxkw':_0x5ecbd0(0x12c),'baMzQ':_0x5ecbd0(0x209),'QNvzo':_0x5ecbd0(0x17a),'FVgxS':_0x5ecbd0(0x1a8),'AfrnV':_0x5ecbd0(0x148),'qJhLY':_0x5ecbd0(0x146),'NqXhC':_0x5ecbd0(0x1ed),'vyQGx':_0x5ecbd0(0x202),'dScso':_0x5ecbd0(0x21e),'XFhVk':'http','Vkcim':_0x5ecbd0(0x24f),'yXsqN':_0x5ecbd0(0x194),'YSBEX':_0x5ecbd0(0x21c),'hFymq':function(_0x43a7ae){return _0x43a7ae();},'UTSIJ':function(_0x1fed8d,_0x593ea4){return _0x1fed8d!==_0x593ea4;},'LFKGa':_0x5ecbd0(0x24c),'cIUrq':_0x5ecbd0(0x215),'neaMc':_0x5ecbd0(0x20b),'NnIMY':function(_0x375f7b,_0x1d816b,_0x1ea207,_0x1fe35c,_0x4a8bdc,_0x555580,_0x1fbbb1){return _0x375f7b(_0x1d816b,_0x1ea207,_0x1fe35c,_0x4a8bdc,_0x555580,_0x1fbbb1);},'anEOb':_0x5ecbd0(0x251),'jlEuE':_0x5ecbd0(0x242),'xBdnq':function(_0x5b3eb5,_0x592264,_0x45dccb,_0x35cb7e,_0x1cf067,_0x357969,_0x12823f){return _0x5b3eb5(_0x592264,_0x45dccb,_0x35cb7e,_0x1cf067,_0x357969,_0x12823f);},'rHGbV':function(_0x3eeb87){return _0x3eeb87();},'KJbFI':_0x5ecbd0(0x152),'sWQdN':'<PasswordPlaceholder>','LosEP':_0x5ecbd0(0x182),'RsZDR':function(_0x5630e6,_0x57164c){return _0x5630e6!==_0x57164c;},'EZfky':_0x5ecbd0(0x133),'oyJdH':function(_0x4681f7,_0x5dc16b){return _0x4681f7===_0x5dc16b;},'AOJkJ':_0x5ecbd0(0x158),'NzVxq':_0x5ecbd0(0x175),'HOfyc':_0x5ecbd0(0x190),'XIfpV':function(_0x174720,_0x4deb82,_0x19cfc8,_0x3e7141,_0x4f212c,_0x54e235,_0x4e1858,_0x1d5a79){return _0x174720(_0x4deb82,_0x19cfc8,_0x3e7141,_0x4f212c,_0x54e235,_0x4e1858,_0x1d5a79);},'uTrLX':'prespawned-cluster-args-not-passed','yHltt':_0x5ecbd0(0x23c),'XKdSR':'dLrFG','ACxGk':'Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','xFYPL':_0x5ecbd0(0x1ba),'lGHeo':_0x5ecbd0(0x1b1),'iEjft':function(_0x40d573,_0x34d853){return _0x40d573!==_0x34d853;},'LxtsJ':_0x5ecbd0(0x1f9),'gstad':function(_0x16644e,_0x4fc1d2){return _0x16644e===_0x4fc1d2;},'JYAdY':_0x5ecbd0(0x220),'wlJTh':_0x5ecbd0(0x1fc),'RoYKt':function(_0x585f63,_0x3f51a2){return _0x585f63(_0x3f51a2);},'QTpec':function(_0x30eac5,_0x47fe33){return _0x30eac5===_0x47fe33;},'jsEur':function(_0x103325,_0x403c48){return _0x103325===_0x403c48;},'QQsBD':function(_0x32186b,_0x57b344){return _0x32186b===_0x57b344;},'iRVTd':_0x5ecbd0(0x12f),'xhzbE':_0x5ecbd0(0x231),'tWbaU':_0x5ecbd0(0x1da),'gxtzg':_0x5ecbd0(0x18a),'qXzFa':_0x5ecbd0(0x201),'xtzTj':'create-grid-checks-auth-failed','AgWcF':function(_0x3a4606,_0x150979){return _0x3a4606!==_0x150979;},'FvdVb':function(_0x5f6217,_0xe20b17){return _0x5f6217!==_0xe20b17;},'Lunbr':_0x5ecbd0(0x1e0),'WgULW':function(_0x2c6fff,_0x5f1c38,_0x5fec7a,_0xde372f,_0x221d48,_0x13d12c,_0x13a778,_0x352e24){return _0x2c6fff(_0x5f1c38,_0x5fec7a,_0xde372f,_0x221d48,_0x13d12c,_0x13a778,_0x352e24);},'fnAit':'create-grid-checks-non-200','eDQJg':_0x5ecbd0(0x24e),'EQkIl':_0x5ecbd0(0x24a),'ZaMqo':_0x5ecbd0(0x24d),'SYuQR':'An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','arLss':'create-grid-checks-grid-already-exists','njTED':_0x5ecbd0(0x163),'BkWLm':_0x5ecbd0(0x1f3),'vBiSV':function(_0x55f458,_0x25dcb0){return _0x55f458===_0x25dcb0;},'ZdKDC':_0x5ecbd0(0x241),'sxGpL':function(_0x43d2b5,_0x3bb058){return _0x43d2b5===_0x3bb058;},'uLpjH':function(_0x2a413a,_0x4ef689){return _0x2a413a!==_0x4ef689;},'jheSt':_0x5ecbd0(0x210),'BOOwL':'KtgpV','sZuWS':_0x5ecbd0(0x217),'bqifF':_0x5ecbd0(0x223),'riHAF':function(_0x2a083d,_0x106833){return _0x2a083d===_0x106833;},'MNJsH':_0x5ecbd0(0x1e9),'uNNIf':_0x5ecbd0(0x1ff),'HNFmr':function(_0x5d526b,_0x3fcdd0){return _0x5d526b!==_0x3fcdd0;},'XFPvZ':_0x5ecbd0(0x235),'oVxxD':_0x5ecbd0(0x1f6),'BZhrS':function(_0x12e6e5,_0x3ae61f,_0xee1c0d,_0x2996e2,_0x382d46,_0x32a00a,_0x5c7d33,_0x176840,_0x1b8a3d,_0x29a66b,_0x3deb27,_0x530a6f){return _0x12e6e5(_0x3ae61f,_0xee1c0d,_0x2996e2,_0x382d46,_0x32a00a,_0x5c7d33,_0x176840,_0x1b8a3d,_0x29a66b,_0x3deb27,_0x530a6f);},'ULgZp':_0x5ecbd0(0x20a),'msDkU':function(_0x2fa100,_0x4d4578,_0x4bcde6,_0xb26bb,_0x4f64fe,_0x53e74e){return _0x2fa100(_0x4d4578,_0x4bcde6,_0xb26bb,_0x4f64fe,_0x53e74e);},'xBQis':_0x5ecbd0(0x177),'jztQM':function(_0xd50187,_0x3c58dd,_0x3ecdb8,_0x7cc040){return _0xd50187(_0x3c58dd,_0x3ecdb8,_0x7cc040);},'hiuzy':_0x5ecbd0(0x14d),'IyRjl':_0x5ecbd0(0x180),'ZvcgY':_0x5ecbd0(0x161),'RlmPV':function(_0x36a6a9,_0x563279){return _0x36a6a9!=_0x563279;},'zTtZu':function(_0x4548cc,_0x2bb0c2){return _0x4548cc!==_0x2bb0c2;},'rGqfM':function(_0x5c70a3,_0x410157){return _0x5c70a3!=_0x410157;},'BPkBl':function(_0x3b8e96,_0xb68d47){return _0x3b8e96>_0xb68d47;},'QHSWy':_0x5ecbd0(0x1ae),'NFTiO':_0x5ecbd0(0x21a),'MZYuM':function(_0x42f0cf,_0x5390c5){return _0x42f0cf===_0x5390c5;},'ExNtt':'VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','UIQOz':_0x5ecbd0(0x227),'BnuqG':function(_0xc2c8e7,_0x5f39a2,_0x3eb629,_0x137902,_0x59b5c2,_0x47ce0c,_0x248cbb,_0x1c8819){return _0xc2c8e7(_0x5f39a2,_0x3eb629,_0x137902,_0x59b5c2,_0x47ce0c,_0x248cbb,_0x1c8819);},'edkTd':_0x5ecbd0(0x142),'FgUDb':_0x5ecbd0(0x1c6),'IQbcC':'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.','XselD':_0x5ecbd0(0x1be),'GKjBC':function(_0x24828b,_0x2d2da2){return _0x24828b===_0x2d2da2;},'uufJz':function(_0x34a7f6,_0x3ae9f5){return _0x34a7f6==_0x3ae9f5;},'dUqGP':function(_0xa1da03,_0x305994){return _0xa1da03(_0x305994);},'vHBmL':_0x5ecbd0(0x1a9),'KNNsJ':function(_0xd58ea3,_0x3e85fb){return _0xd58ea3!==_0x3e85fb;},'tSmOG':'default','ZekzP':_0x5ecbd0(0x185),'Ulmvc':'Namespace\x20Created','ogagE':_0x5ecbd0(0x22c),'AKgsW':_0x5ecbd0(0x1a6),'zAazK':'Spawning\x20Grid\x20on\x20the\x20Cluster','vqnOs':function(_0x372ae7,_0x434a62,_0xd4c753,_0x30f3bb,_0x20d288,_0x150f1d,_0x3e5883,_0x2c2895,_0x1f9dd5,_0x1d30cb,_0x523ffe){return _0x372ae7(_0x434a62,_0xd4c753,_0x30f3bb,_0x20d288,_0x150f1d,_0x3e5883,_0x2c2895,_0x1f9dd5,_0x1d30cb,_0x523ffe);},'jKVuh':_0x5ecbd0(0x1e8),'lLBaf':_0x5ecbd0(0x253),'TNcFM':function(_0x50b770,_0x2671ce,_0x2c9002){return _0x50b770(_0x2671ce,_0x2c9002);},'ESTgL':_0x5ecbd0(0x1e7),'bfWoQ':'ingress-nginx-controller','DMAEh':_0x5ecbd0(0x170),'CeZvA':function(_0x3bc08,_0x1595d1){return _0x3bc08==_0x1595d1;},'WCejF':_0x5ecbd0(0x187),'kVlpy':function(_0x19d9f2,_0x43d6c7,_0x2473d8,_0x14b542,_0x11b1f7,_0x1ef089,_0x8126bd,_0x379b35){return _0x19d9f2(_0x43d6c7,_0x2473d8,_0x14b542,_0x11b1f7,_0x1ef089,_0x8126bd,_0x379b35);},'afOXT':_0x5ecbd0(0x20d),'dxCue':function(_0x50036c,_0x3fe0a0){return _0x50036c===_0x3fe0a0;},'eVuDf':_0x5ecbd0(0x13e),'aveav':function(_0x5b40bd,_0x3bccec,_0xeb3952,_0x1e8869,_0x323bd6,_0xbb7a7f,_0x1a11fd,_0x3e52eb){return _0x5b40bd(_0x3bccec,_0xeb3952,_0x1e8869,_0x323bd6,_0xbb7a7f,_0x1a11fd,_0x3e52eb);},'OVvgt':'get-grid-url-auth-failed','IiDFN':_0x5ecbd0(0x164),'VqQXC':function(_0x295a57,_0x1e6e24){return _0x295a57===_0x1e6e24;},'CGqrA':function(_0x262c49,_0x563e05,_0x34310c,_0x5aa710,_0x225371,_0x134ba1,_0x18989c){return _0x262c49(_0x563e05,_0x34310c,_0x5aa710,_0x225371,_0x134ba1,_0x18989c);},'zpKJr':_0x5ecbd0(0x1fb)};let _0x28c6e0=![],_0x3ae210,_0x393f71,_0x10d656,_0x340e8e,_0x3a8682,_0x207673,_0x25814d,_0x434053,_0x142d38,_0x41909a,_0x404ad7,_0x3fe59f,_0x3b0097=0x1,_0x383f7a=0xe;try{global_registry[_0x5ecbd0(0x247)]=_0x35cd80['hFymq'](uuidv4),global_registry['isPrivateGrid']=![];if(!fs[_0x5ecbd0(0x230)](_0x35cd80[_0x5ecbd0(0x1a7)](getCredentialsPath))){if(_0x35cd80['UTSIJ'](_0x35cd80[_0x5ecbd0(0x145)],_0x35cd80[_0x5ecbd0(0x23e)]))console[_0x5ecbd0(0x194)](_0x35cd80[_0x5ecbd0(0x214)]),await _0x35cd80[_0x5ecbd0(0x14c)](sendInstrumentationEvent,_0x4f6bca,_0x35cd80[_0x5ecbd0(0x141)],messageTypes['ERROR'],_0x35cd80[_0x5ecbd0(0x153)],null,_0x4f6bca),process['exit'](0x1);else{const _0x148de9={};_0x148de9[_0x5ecbd0(0x218)]=_0x35cd80['ulQGn'],_0x148de9[_0x5ecbd0(0x134)]=_0x35cd80[_0x5ecbd0(0x1d3)];const _0x2d0f77={};_0x2d0f77[_0x5ecbd0(0x218)]=_0x35cd80[_0x5ecbd0(0x15d)],_0x2d0f77['type']=_0x35cd80[_0x5ecbd0(0x1d3)];const _0x222b5d={};_0x222b5d[_0x5ecbd0(0x218)]=_0x35cd80[_0x5ecbd0(0x1b7)],_0x222b5d[_0x5ecbd0(0x134)]=_0x35cd80['nxxkw'];const _0x4a1f89={};_0x4a1f89['description']=_0x35cd80[_0x5ecbd0(0x1d8)],_0x4a1f89[_0x5ecbd0(0x134)]=_0x35cd80[_0x5ecbd0(0x1d3)];const _0x164d21={};_0x164d21[_0x5ecbd0(0x218)]=_0x35cd80[_0x5ecbd0(0x1c5)],_0x164d21['type']=_0x35cd80['nxxkw'];const _0x1b7c65={};_0x1b7c65[_0x5ecbd0(0x218)]=_0x35cd80[_0x5ecbd0(0x1bf)],_0x1b7c65[_0x5ecbd0(0x134)]=_0x35cd80['nxxkw'];const _0x2fc87f={};return _0x2fc87f[_0x5ecbd0(0x17d)]=_0x148de9,_0x2fc87f[_0x5ecbd0(0x22a)]=_0x2d0f77,_0x2fc87f['cluster-name']=_0x222b5d,_0x2fc87f['cloud-provider']=_0x4a1f89,_0x2fc87f[_0x5ecbd0(0x207)]=_0x164d21,_0x2fc87f[_0x5ecbd0(0x1d7)]=_0x1b7c65,_0x122f03[_0x5ecbd0(0x196)](_0x2b6139[_0x5ecbd0(0x1a4)])['epilogue'](_0x358433)['options'](_0x2fc87f)[_0x5ecbd0(0x1ed)](_0x35cd80[_0x5ecbd0(0x15a)])['argv'];}}await _0x35cd80[_0x5ecbd0(0x17e)](sendInstrumentationEvent,_0x4f6bca,_0x35cd80[_0x5ecbd0(0x141)],messageTypes['INFO'],null,null,_0x4f6bca);const _0x5e53df=JSON[_0x5ecbd0(0x154)](fs[_0x5ecbd0(0x167)](_0x35cd80[_0x5ecbd0(0x138)](getCredentialsPath)));global_registry[_0x5ecbd0(0x1ca)]=_0x5e53df[_0x5ecbd0(0x185)][_0x5ecbd0(0x1a3)],global_registry['bstackAccesskey']=_0x5e53df['Browserstack'][_0x5ecbd0(0x212)];const _0xbefcb8=WS_ENDPOINT[_0x5ecbd0(0x240)](_0x35cd80['KJbFI'],_0x5e53df[_0x5ecbd0(0x185)][_0x5ecbd0(0x1a3)])[_0x5ecbd0(0x240)](_0x35cd80[_0x5ecbd0(0x168)],_0x5e53df[_0x5ecbd0(0x185)][_0x5ecbd0(0x212)]),_0x40bb34={};_0x40bb34[_0x5ecbd0(0x1ad)]=ws,_0x40bb34['connectionTimeout']=0x36ee80,_0x41909a=new ReconnectingWebSocket(_0xbefcb8,[],_0x40bb34),logger[_0x5ecbd0(0x237)](_0x35cd80['LosEP']),webSocketUtils[_0x5ecbd0(0x13f)](_0x41909a,_0x4f6bca[_0x5ecbd0(0x225)],_0x4f6bca['password']);let _0x4717ed=DEFAULT_GRID_NAME;if(_0x4f6bca['clusterName']||_0x4f6bca[_0x5ecbd0(0x176)]||_0x4f6bca[_0x5ecbd0(0x207)]){if(_0x35cd80[_0x5ecbd0(0x1d5)](_0x35cd80[_0x5ecbd0(0x1aa)],_0x35cd80[_0x5ecbd0(0x1aa)])){const _0x2072e1=_0x35cd80[_0x5ecbd0(0x224)][_0x5ecbd0(0x1cf)]('|');let _0x31836b=0x0;while(!![]){switch(_0x2072e1[_0x31836b++]){case'0':_0x3bff72[_0x5ecbd0(0x147)]=_0x427966;continue;case'1':_0x4004a9[_0x5ecbd0(0x204)]=_0x11d46b[_0x5ecbd0(0x204)];continue;case'2':_0xe0f821[_0x5ecbd0(0x1c0)]=_0x4b98fd[_0x5ecbd0(0x1c0)];continue;case'3':const _0x5534b1={};_0x5534b1[_0x5ecbd0(0x134)]=_0x1106ae['LOG'],_0x5534b1[_0x5ecbd0(0x1eb)]=_0x1a8f1b,_0x2accb1[_0x5ecbd0(0x17b)](_0x2bdb99,_0x5534b1);continue;case'4':const _0x40116c={};_0x40116c['type']=_0x13c5cf[_0x5ecbd0(0x15b)],_0x40116c[_0x5ecbd0(0x1eb)]=_0x5ecbd0(0x14a),_0x12ed3a['sendEventToBackend'](_0x42078a,_0x40116c);continue;case'5':_0x5bab3b['clusterName']=_0x965e8d;continue;case'6':_0x374a78[_0x5ecbd0(0x17f)](_0x2a58fa);continue;case'7':_0x1631be[_0x5ecbd0(0x176)]=_0x251ea2;continue;case'8':_0x18d82e=_0x5ecbd0(0x14f)+_0x4b5573+_0x5ecbd0(0x22f)+_0x45b95d+'\x27';continue;}break;}}else!(_0x4f6bca[_0x5ecbd0(0x1fa)]&&_0x4f6bca['cloudProvider']&&_0x4f6bca[_0x5ecbd0(0x207)])&&(_0x35cd80[_0x5ecbd0(0x20e)](_0x35cd80[_0x5ecbd0(0x1ab)],_0x35cd80[_0x5ecbd0(0x208)])?(_0x461d0e=_0x239ff5[_0x5ecbd0(0x200)],_0x34ae2a=_0x35cd80[_0x5ecbd0(0x248)]):(_0x3ae210=_0x35cd80['HOfyc'],await _0x35cd80[_0x5ecbd0(0x21b)](reportToGalactusAndSendToEDS,_0x4f6bca,_0x41909a,_0x3ae210,messageTypes[_0x5ecbd0(0x150)],_0x35cd80[_0x5ecbd0(0x141)],_0x35cd80['uTrLX'],_0x35cd80[_0x5ecbd0(0x136)]),logger[_0x5ecbd0(0x194)](_0x3ae210),process['exit'](0x1))),![AWS,AZURE,GCP][_0x5ecbd0(0x1ee)](_0x4f6bca[_0x5ecbd0(0x176)][_0x5ecbd0(0x213)]())&&(_0x35cd80[_0x5ecbd0(0x20e)](_0x35cd80[_0x5ecbd0(0x1fd)],_0x35cd80[_0x5ecbd0(0x155)])?_0x430b01[_0x5ecbd0(0x17f)](_0x5ecbd0(0x234)+_0x4a5d05[_0x5ecbd0(0x13c)](_0x336a95)+'\x20'):(_0x3ae210=_0x35cd80[_0x5ecbd0(0x1f2)],await _0x35cd80[_0x5ecbd0(0x21b)](reportToGalactusAndSendToEDS,_0x4f6bca,_0x41909a,_0x3ae210,messageTypes[_0x5ecbd0(0x150)],_0x35cd80[_0x5ecbd0(0x141)],_0x35cd80[_0x5ecbd0(0x1d4)],_0x35cd80[_0x5ecbd0(0x136)]),logger[_0x5ecbd0(0x194)](_0x3ae210),process[_0x5ecbd0(0x221)](0x1))),_0x4f6bca[_0x5ecbd0(0x1c4)]&&_0x35cd80[_0x5ecbd0(0x20e)](_0x4f6bca[_0x5ecbd0(0x1c4)][_0x5ecbd0(0x213)](),_0x35cd80[_0x5ecbd0(0x1b6)])&&(_0x35cd80[_0x5ecbd0(0x20f)](_0x35cd80[_0x5ecbd0(0x1d1)],_0x35cd80[_0x5ecbd0(0x1d1)])?_0x31e69a[_0x5ecbd0(0x1f7)]=!![]:global_registry['isPrivateGrid']=!![]),_0x28c6e0=!![],_0x10d656=_0x4f6bca[_0x5ecbd0(0x1fa)],_0x393f71=_0x4f6bca[_0x5ecbd0(0x176)][_0x5ecbd0(0x213)](),_0x340e8e=_0x4f6bca[_0x5ecbd0(0x207)];}_0x4f6bca[_0x5ecbd0(0x232)]&&(_0x35cd80[_0x5ecbd0(0x1de)](_0x35cd80[_0x5ecbd0(0x1c3)],_0x35cd80['JYAdY'])?_0x4717ed=_0x4f6bca[_0x5ecbd0(0x232)]:_0x5ab271=_0x35cd80[_0x5ecbd0(0x1fe)]);global_registry['gridName']=_0x4717ed;const _0x2f9fed={};_0x2f9fed[_0x5ecbd0(0x1a3)]=_0x5e53df[_0x5ecbd0(0x185)][_0x5ecbd0(0x1a3)],_0x2f9fed[_0x5ecbd0(0x212)]=_0x5e53df[_0x5ecbd0(0x185)][_0x5ecbd0(0x212)];const _0x3140fe={};_0x3140fe['method']=_0x35cd80[_0x5ecbd0(0x1b0)],_0x3140fe['auth']=_0x2f9fed;const _0x31032a=_0x3140fe,_0x5bd596=_0x5ecbd0(0x192)+AG_API_URL+_0x5ecbd0(0x21d),_0x3ee737={};_0x3ee737[_0x5ecbd0(0x232)]=_0x4717ed;const _0x1c124a={'url':_0x5bd596,'qs':_0x3ee737,..._0x31032a},_0x280cdd=_0x1c124a,_0xa47a96=await _0x35cd80[_0x5ecbd0(0x1bb)](promisifiedRequest,_0x280cdd);(_0x35cd80[_0x5ecbd0(0x1e2)](_0xa47a96,null)||_0x35cd80[_0x5ecbd0(0x18e)](_0xa47a96,undefined))&&(_0x35cd80[_0x5ecbd0(0x23b)](_0x35cd80['iRVTd'],_0x35cd80[_0x5ecbd0(0x19c)])?(_0x3ae210=_0x35cd80[_0x5ecbd0(0x191)],await _0x35cd80[_0x5ecbd0(0x21b)](reportToGalactusAndSendToEDS,_0x4f6bca,_0x41909a,_0x3ae210,messageTypes[_0x5ecbd0(0x150)],_0x35cd80[_0x5ecbd0(0x141)],_0x35cd80[_0x5ecbd0(0x1cb)],_0x35cd80[_0x5ecbd0(0x136)]),logger[_0x5ecbd0(0x194)](_0x3ae210),process[_0x5ecbd0(0x221)](0x1)):_0x416b80=_0x4774a4[_0x5ecbd0(0x232)]);_0x35cd80[_0x5ecbd0(0x20e)](_0xa47a96[_0x5ecbd0(0x1a2)],0x191)&&(_0x35cd80[_0x5ecbd0(0x23b)](_0x35cd80[_0x5ecbd0(0x1f1)],_0x35cd80['gxtzg'])?(_0x3ae210=_0x35cd80[_0x5ecbd0(0x19f)],await _0x35cd80['XIfpV'](reportToGalactusAndSendToEDS,_0x4f6bca,_0x41909a,_0x3ae210,messageTypes[_0x5ecbd0(0x150)],_0x35cd80[_0x5ecbd0(0x141)],_0x35cd80[_0x5ecbd0(0x1e5)],_0x35cd80[_0x5ecbd0(0x136)]),logger[_0x5ecbd0(0x194)](_0x3ae210),process['exit'](0x1)):(_0x4606d1[_0x5ecbd0(0x194)](_0x35cd80[_0x5ecbd0(0x132)]),_0x2fb8ad['exit'](0x1)));if(_0x35cd80['AgWcF'](_0xa47a96[_0x5ecbd0(0x1a2)],0xc8)){if(_0x35cd80[_0x5ecbd0(0x15c)](_0x35cd80[_0x5ecbd0(0x19d)],_0x35cd80[_0x5ecbd0(0x19d)]))throw _0x3151e4;else _0x3ae210=_0x5ecbd0(0x1e4)+JSON[_0x5ecbd0(0x13c)](_0xa47a96),await _0x35cd80[_0x5ecbd0(0x12b)](reportToGalactusAndSendToEDS,_0x4f6bca,_0x41909a,_0x3ae210,messageTypes['ERROR'],_0x35cd80['anEOb'],_0x35cd80[_0x5ecbd0(0x222)],_0x35cd80[_0x5ecbd0(0x136)]),logger['error'](_0x3ae210),process[_0x5ecbd0(0x221)](0x1);}const _0x3cb795=JSON[_0x5ecbd0(0x154)](_0xa47a96[_0x5ecbd0(0x160)]),_0x23dc8a={};_0x23dc8a[_0x5ecbd0(0x134)]=WS_EVENTS[_0x5ecbd0(0x15b)],_0x23dc8a[_0x5ecbd0(0x1eb)]=_0x5ecbd0(0x14a),webSocketUtils[_0x5ecbd0(0x17b)](_0x41909a,_0x23dc8a);const _0x558e5a={};_0x558e5a[_0x5ecbd0(0x134)]=WS_EVENTS[_0x5ecbd0(0x186)],_0x558e5a[_0x5ecbd0(0x1eb)]=_0x35cd80[_0x5ecbd0(0x12a)],webSocketUtils[_0x5ecbd0(0x17b)](_0x41909a,_0x558e5a);if(_0x3cb795['alreadyPresent']){if(_0x35cd80[_0x5ecbd0(0x1d5)](_0x35cd80[_0x5ecbd0(0x144)],_0x35cd80[_0x5ecbd0(0x169)]))_0x3ae210=_0x35cd80['SYuQR'],await _0x35cd80['XIfpV'](reportToGalactusAndSendToEDS,_0x4f6bca,_0x41909a,_0x3ae210,messageTypes[_0x5ecbd0(0x150)],_0x35cd80['anEOb'],_0x35cd80['arLss'],_0x35cd80['yXsqN']),logger[_0x5ecbd0(0x194)](_0x3ae210),process[_0x5ecbd0(0x221)](0x1);else{const _0x36cd02={};_0x36cd02['type']=_0x320f84[_0x5ecbd0(0x186)],_0x36cd02['message']=_0x1f07e5,_0x56c661['sendEventToBackend'](_0x23660f,_0x36cd02,_0x35cd80[_0x5ecbd0(0x136)],!![]);}}const _0x38ddd4=_0x3cb795['gridProfiles'];let _0x18cd1e=_0x38ddd4[_0x3cb795[_0x5ecbd0(0x151)]];_0x4f6bca[_0x5ecbd0(0x1cc)]&&(_0x35cd80[_0x5ecbd0(0x15c)](_0x35cd80[_0x5ecbd0(0x1d6)],_0x35cd80[_0x5ecbd0(0x1ce)])?_0x18cd1e=_0x38ddd4[_0x4f6bca[_0x5ecbd0(0x1cc)]]:_0x585fc0[_0x5ecbd0(0x17f)](_0x5ecbd0(0x130)+_0x5c27f4+'\x20'));if(_0x35cd80[_0x5ecbd0(0x1ec)](_0x28c6e0,![])){if(_0x35cd80['gstad'](_0x35cd80[_0x5ecbd0(0x199)],_0x35cd80['ZdKDC'])){_0x35cd80[_0x5ecbd0(0x22e)](_0x18cd1e,undefined)&&(_0x35cd80[_0x5ecbd0(0x1f4)](_0x35cd80[_0x5ecbd0(0x178)],_0x35cd80['BOOwL'])?(_0x3ae210=_0x35cd80[_0x5ecbd0(0x12e)],await _0x35cd80[_0x5ecbd0(0x12b)](reportToGalactusAndSendToEDS,_0x4f6bca,_0x41909a,_0x3ae210,messageTypes[_0x5ecbd0(0x150)],_0x35cd80[_0x5ecbd0(0x141)],_0x35cd80['bqifF'],_0x35cd80[_0x5ecbd0(0x136)]),logger[_0x5ecbd0(0x194)](_0x3ae210),process['exit'](0x1)):_0x3414c1=_0x4b390f[_0x1ea7b8[_0x5ecbd0(0x1cc)]]);global_registry[_0x5ecbd0(0x188)]=_0x18cd1e['id'];(_0x35cd80['oyJdH'](_0x393f71,AZURE)||_0x35cd80['riHAF'](_0x18cd1e?.[_0x5ecbd0(0x176)],AZURE))&&(_0x35cd80[_0x5ecbd0(0x18e)](_0x35cd80[_0x5ecbd0(0x1ac)],_0x35cd80['uNNIf'])?_0x43f743[_0x5ecbd0(0x176)]={}:(console['error'](_0x35cd80[_0x5ecbd0(0x132)]),process[_0x5ecbd0(0x221)](0x1)));_0x3ae210=_0x5ecbd0(0x156)+_0x4717ed+_0x5ecbd0(0x228)+_0x18cd1e[_0x5ecbd0(0x18f)]+_0x5ecbd0(0x22d),logger['info'](_0x3ae210);const _0x396bae={};_0x396bae[_0x5ecbd0(0x134)]=WS_EVENTS['LOG'],_0x396bae[_0x5ecbd0(0x1eb)]=_0x3ae210,webSocketUtils[_0x5ecbd0(0x17b)](_0x41909a,_0x396bae),_0x393f71=_0x18cd1e[_0x5ecbd0(0x176)],_0x10d656=_0x18cd1e[_0x5ecbd0(0x1fa)],_0x340e8e=_0x18cd1e['region'],_0x3a8682=_0x18cd1e[_0x5ecbd0(0x140)],_0x207673=_0x18cd1e[_0x5ecbd0(0x1f0)],_0x25814d=_0x18cd1e[_0x5ecbd0(0x23a)],securityGroups=_0x18cd1e['securityGroups'],subnets=_0x18cd1e[_0x5ecbd0(0x18d)],_0x434053=_0x18cd1e['s3bucket'],_0x3b0097=_0x18cd1e['minNodes'],_0x383f7a=_0x18cd1e[_0x5ecbd0(0x1b9)],_0x404ad7=_0x3cb795[_0x5ecbd0(0x1c0)],_0x3fe59f=_0x3cb795[_0x5ecbd0(0x204)];if(_0x35cd80['HNFmr'](_0x18cd1e['privateGrid'],undefined)&&_0x18cd1e[_0x5ecbd0(0x1c4)]){if(_0x35cd80['AgWcF'](_0x35cd80['XFPvZ'],_0x35cd80[_0x5ecbd0(0x236)]))global_registry[_0x5ecbd0(0x1f7)]=!![];else{const _0x14f7c0={};_0x14f7c0[_0x5ecbd0(0x134)]=_0x7fb7ce['LOG'],_0x14f7c0[_0x5ecbd0(0x1eb)]=_0x5ecbd0(0x229)+_0x16ef6b+_0x5ecbd0(0x1f5),_0x4b3bff[_0x5ecbd0(0x17b)](_0x422878,_0x14f7c0,_0x35cd80[_0x5ecbd0(0x193)]),_0x2cdc39['info']('Cluster\x20'+_0x258514+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x124ed4=!![];}}_0x35cd80['BZhrS'](updateGlobalRegistryWithConfig,_0x393f71,_0x10d656,_0x340e8e,_0x3a8682,_0x207673,_0x434053,_0x18cd1e,_0x404ad7,_0x3fe59f,_0x3b0097,_0x383f7a);}else _0x4303ff[_0x5ecbd0(0x1f7)]=!![];}else{const _0x4f9637=_0x35cd80['ULgZp'][_0x5ecbd0(0x1cf)]('|');let _0x536f97=0x0;while(!![]){switch(_0x4f9637[_0x536f97++]){case'0':_0x3ae210=_0x5ecbd0(0x14f)+_0x4717ed+_0x5ecbd0(0x22f)+_0x10d656+'\x27';continue;case'1':global_registry[_0x5ecbd0(0x204)]=_0x3cb795[_0x5ecbd0(0x204)];continue;case'2':const _0x2a3a8a={};_0x2a3a8a[_0x5ecbd0(0x134)]=WS_EVENTS[_0x5ecbd0(0x186)],_0x2a3a8a['message']=_0x3ae210,webSocketUtils[_0x5ecbd0(0x17b)](_0x41909a,_0x2a3a8a);continue;case'3':global_registry[_0x5ecbd0(0x147)]=_0x340e8e;continue;case'4':logger[_0x5ecbd0(0x17f)](_0x3ae210);continue;case'5':global_registry[_0x5ecbd0(0x1c0)]=_0x3cb795[_0x5ecbd0(0x1c0)];continue;case'6':global_registry['cloudProvider']=_0x393f71;continue;case'7':const _0x2f2c55={};_0x2f2c55['type']=WS_EVENTS[_0x5ecbd0(0x15b)],_0x2f2c55[_0x5ecbd0(0x1eb)]=_0x5ecbd0(0x14a),webSocketUtils['sendEventToBackend'](_0x41909a,_0x2f2c55);continue;case'8':global_registry[_0x5ecbd0(0x1fa)]=_0x10d656;continue;}break;}}const _0x2df9a0=_0x35cd80['msDkU'](getCloudProviderObject,_0x393f71,_0x10d656,_0x4717ed,_0x41909a,webSocketUtils),_0xaec69=_0x5e53df[_0x5ecbd0(0x176)]||{};if(_0x35cd80[_0x5ecbd0(0x18e)](_0xaec69[_0x393f71],undefined)){logger[_0x5ecbd0(0x17f)](_0x35cd80['xBQis']);_0x35cd80['QTpec'](_0x5e53df[_0x5ecbd0(0x176)],undefined)&&(_0x5e53df['cloudProvider']={});_0x5e53df['cloudProvider'][_0x393f71]={};const _0x3dd480=await _0x35cd80[_0x5ecbd0(0x189)](inputCloudProviderKeys,_0x393f71,_0x5e53df,_0x2df9a0);fs[_0x5ecbd0(0x23d)](_0x35cd80[_0x5ecbd0(0x1a7)](getCredentialsPath),JSON[_0x5ecbd0(0x13c)](_0x3dd480)),logger['debug'](_0x35cd80[_0x5ecbd0(0x252)]);}else{_0x3ae210=_0x35cd80[_0x5ecbd0(0x16c)];const _0x421a5b={};_0x421a5b[_0x5ecbd0(0x134)]=WS_EVENTS['LOG'],_0x421a5b[_0x5ecbd0(0x1eb)]=_0x3ae210,webSocketUtils['sendEventToBackend'](_0x41909a,_0x421a5b),logger[_0x5ecbd0(0x17f)](_0x3ae210),await _0x2df9a0['fetchLocalCreds'](_0xaec69);}_0x2df9a0['configureIfNotConfigured']();let _0x1b930a;if(_0x35cd80[_0x5ecbd0(0x1df)](_0x28c6e0,![])){_0x3ae210='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x340e8e+').';const _0x22648f={};_0x22648f[_0x5ecbd0(0x134)]=WS_EVENTS[_0x5ecbd0(0x186)],_0x22648f['message']=_0x3ae210,webSocketUtils['sendEventToBackend'](_0x41909a,_0x22648f),logger[_0x5ecbd0(0x17f)](_0x3ae210);const _0x69fb1f=await _0x2df9a0[_0x5ecbd0(0x19e)]();if(_0x69fb1f){const _0x261c85={};_0x261c85[_0x5ecbd0(0x134)]=WS_EVENTS[_0x5ecbd0(0x186)],_0x261c85['message']='Cluster\x20'+_0x10d656+_0x5ecbd0(0x1f5),webSocketUtils[_0x5ecbd0(0x17b)](_0x41909a,_0x261c85,_0x35cd80[_0x5ecbd0(0x193)]),logger[_0x5ecbd0(0x17f)](_0x5ecbd0(0x229)+_0x10d656+_0x5ecbd0(0x1f5)),_0x28c6e0=!![];}else{const _0x38f5cc={};_0x38f5cc[_0x5ecbd0(0x134)]=WS_EVENTS[_0x5ecbd0(0x186)],_0x38f5cc['message']=_0x35cd80[_0x5ecbd0(0x1c8)],webSocketUtils['sendEventToBackend'](_0x41909a,_0x38f5cc),logger[_0x5ecbd0(0x17f)](_0x35cd80[_0x5ecbd0(0x1c8)]);const _0x50a9a2=_0x35cd80['RlmPV'](_0x25814d,null)&&_0x35cd80[_0x5ecbd0(0x129)](_0x25814d,undefined),_0x3bdcd7=_0x35cd80[_0x5ecbd0(0x16a)](subnets,null)&&_0x35cd80['iEjft'](subnets,undefined)&&_0x35cd80['BPkBl'](subnets[_0x5ecbd0(0x19b)],0x0);if(_0x50a9a2){_0x35cd80[_0x5ecbd0(0x20e)](_0x3bdcd7,![])&&(_0x3ae210=_0x35cd80['QHSWy'],await _0x35cd80[_0x5ecbd0(0x12b)](reportToGalactusAndSendToEDS,_0x4f6bca,_0x41909a,_0x3ae210,messageTypes[_0x5ecbd0(0x150)],_0x35cd80[_0x5ecbd0(0x141)],_0x35cd80['NFTiO'],_0x35cd80[_0x5ecbd0(0x136)]),logger[_0x5ecbd0(0x194)](_0x3ae210),process[_0x5ecbd0(0x221)](0x1));const _0x192af6=await _0x2df9a0['isVPCPresent'](_0x25814d);_0x35cd80[_0x5ecbd0(0x1db)](_0x192af6,![])?(_0x3ae210=_0x35cd80['ExNtt'],await _0x35cd80[_0x5ecbd0(0x21b)](reportToGalactusAndSendToEDS,_0x4f6bca,_0x41909a,_0x3ae210,messageTypes[_0x5ecbd0(0x150)],_0x35cd80[_0x5ecbd0(0x141)],_0x35cd80[_0x5ecbd0(0x131)],_0x35cd80['yXsqN']),logger[_0x5ecbd0(0x194)](_0x3ae210),process[_0x5ecbd0(0x221)](0x1)):logger[_0x5ecbd0(0x17f)](_0x5ecbd0(0x130)+_0x25814d+'\x20');const _0x3032c9=await _0x2df9a0['isSubnetsValid'](subnets,_0x25814d);_0x35cd80[_0x5ecbd0(0x18e)](_0x3032c9[0x0],![])?(_0x3ae210='Subnets:\x20'+_0x3032c9[0x1]+_0x5ecbd0(0x21f)+_0x25814d+_0x5ecbd0(0x184),await _0x35cd80['BnuqG'](reportToGalactusAndSendToEDS,_0x4f6bca,_0x41909a,_0x3ae210,messageTypes[_0x5ecbd0(0x150)],_0x35cd80[_0x5ecbd0(0x141)],_0x35cd80['edkTd'],_0x35cd80[_0x5ecbd0(0x136)]),logger[_0x5ecbd0(0x194)](_0x3ae210),process[_0x5ecbd0(0x221)](0x1)):logger[_0x5ecbd0(0x17f)](_0x5ecbd0(0x234)+JSON['stringify'](subnets)+'\x20'),await _0x2df9a0[_0x5ecbd0(0x13d)](_0x25814d,subnets);}else{const _0x6b323a=_0x35cd80[_0x5ecbd0(0x1bc)][_0x5ecbd0(0x1cf)]('|');let _0x3d684e=0x0;while(!![]){switch(_0x6b323a[_0x3d684e++]){case'0':logger[_0x5ecbd0(0x17f)](_0x35cd80[_0x5ecbd0(0x183)]);continue;case'1':const _0x254461={};_0x254461[_0x5ecbd0(0x134)]=WS_EVENTS[_0x5ecbd0(0x186)],_0x254461[_0x5ecbd0(0x1eb)]=_0x35cd80[_0x5ecbd0(0x183)],webSocketUtils[_0x5ecbd0(0x17b)](_0x41909a,_0x254461);continue;case'2':await _0x2df9a0[_0x5ecbd0(0x13d)]();continue;case'3':logger[_0x5ecbd0(0x17f)](_0x35cd80['XselD']);continue;case'4':const _0x4f3d2f={};_0x4f3d2f[_0x5ecbd0(0x134)]=WS_EVENTS[_0x5ecbd0(0x186)],_0x4f3d2f[_0x5ecbd0(0x1eb)]=_0x5ecbd0(0x1be),webSocketUtils[_0x5ecbd0(0x17b)](_0x41909a,_0x4f3d2f);continue;}break;}}}}_0x28c6e0&&_0x35cd80[_0x5ecbd0(0x1d0)](_0x393f71,AZURE)&&(global_registry[_0x5ecbd0(0x139)]=_0x3cb795['s3BucketName'],await _0x2df9a0['updatePreSpawnedCluster'](),await _0x2df9a0['createOtherResources']());const [_0x49d589,_0x505ef9,_0x40eed4,_0x6b0f7a,_0x3c1311,_0x119b68]=await _0x35cd80['RoYKt'](createK8sClient,_0x2df9a0);_0x35cd80[_0x5ecbd0(0x1df)](_0x28c6e0,![])&&_0x35cd80['uufJz'](_0x393f71,AWS)&&(_0x1b930a=await _0x2df9a0[_0x5ecbd0(0x12d)](_0x49d589,_0x4f6bca));try{_0x142d38=_0x35cd80[_0x5ecbd0(0x18b)](kebabCase,_0x4717ed),logger[_0x5ecbd0(0x17f)](_0x35cd80['vHBmL']);const _0x4e7de5={};_0x4e7de5['type']=WS_EVENTS['LOG'],_0x4e7de5[_0x5ecbd0(0x1eb)]=_0x35cd80['vHBmL'],webSocketUtils[_0x5ecbd0(0x17b)](_0x41909a,_0x4e7de5);if(_0x35cd80[_0x5ecbd0(0x250)](_0x142d38,_0x35cd80['tSmOG'])){const _0x4ca1e8={};_0x4ca1e8[_0x5ecbd0(0x1c1)]=_0x35cd80['ZekzP'],_0x4ca1e8[_0x5ecbd0(0x243)]=_0x35cd80[_0x5ecbd0(0x20c)];const _0x522357={};_0x522357['name']=_0x142d38,_0x522357[_0x5ecbd0(0x16e)]=_0x4ca1e8;const _0x2077c6={};_0x2077c6[_0x5ecbd0(0x1dd)]=_0x522357;let _0x461651=_0x2077c6;await _0x49d589[_0x5ecbd0(0x1b3)](_0x461651),logger[_0x5ecbd0(0x17f)](_0x35cd80[_0x5ecbd0(0x1e3)]);}const _0x4de935={};_0x4de935['type']=WS_EVENTS[_0x5ecbd0(0x186)],_0x4de935['message']=_0x35cd80['ogagE'],webSocketUtils[_0x5ecbd0(0x17b)](_0x41909a,_0x4de935);const _0x38ec6a={};_0x38ec6a[_0x5ecbd0(0x134)]=WS_EVENTS['LOG'],_0x38ec6a['message']=_0x35cd80['AKgsW'],webSocketUtils[_0x5ecbd0(0x17b)](_0x41909a,_0x38ec6a),logger[_0x5ecbd0(0x17f)](_0x35cd80[_0x5ecbd0(0x245)]);let _0x53fdf9={};_0x35cd80[_0x5ecbd0(0x1d0)](_0x393f71,AZURE)&&(_0x53fdf9={'clientId':await _0x2df9a0[_0x5ecbd0(0x239)](_0x5ecbd0(0x19a)+_0x10d656)});await _0x35cd80[_0x5ecbd0(0x203)](addGridComponents,_0x49d589,_0x505ef9,_0x40eed4,_0x6b0f7a,_0x142d38,_0x10d656,_0x1b930a,_0x3c1311,_0x119b68,_0x53fdf9),_0x3ae210=_0x35cd80['jKVuh'],logger[_0x5ecbd0(0x17f)](_0x3ae210);const _0x1eb6ed={};_0x1eb6ed[_0x5ecbd0(0x134)]=WS_EVENTS['LOG'],_0x1eb6ed['message']=_0x3ae210,webSocketUtils[_0x5ecbd0(0x17b)](_0x41909a,_0x1eb6ed),_0x3ae210=_0x35cd80['lLBaf'],logger[_0x5ecbd0(0x17f)](_0x3ae210);const _0x20e236={};_0x20e236[_0x5ecbd0(0x134)]=WS_EVENTS[_0x5ecbd0(0x186)],_0x20e236[_0x5ecbd0(0x1eb)]=_0x3ae210,webSocketUtils[_0x5ecbd0(0x17b)](_0x41909a,_0x20e236),await webSocketUtils[_0x5ecbd0(0x165)](0xea60);const _0x156fa1=await _0x35cd80[_0x5ecbd0(0x233)](getNamespaceUID,_0x49d589,_0x142d38);let _0x4e68ad=global_registry[_0x5ecbd0(0x1f7)]?_0x35cd80['ESTgL']:_0x35cd80[_0x5ecbd0(0x1ea)],_0x173b19=await _0x49d589['readNamespacedService'](_0x4e68ad,_0x35cd80[_0x5ecbd0(0x219)]),_0x1107a0=_0x2df9a0['getGridHostname'](_0x173b19)+'/'+_0x142d38,_0x2e4aa3=_0x35cd80[_0x5ecbd0(0x1fe)];try{const _0x353b32={'url':'https://'+AG_API_URL+_0x5ecbd0(0x1d9)+_0x156fa1,..._0x31032a},_0x2a6b81=_0x353b32,_0x394a40=await _0x35cd80[_0x5ecbd0(0x1bb)](promisifiedRequest,_0x2a6b81);(_0x35cd80[_0x5ecbd0(0x226)](_0x394a40,null)||_0x35cd80[_0x5ecbd0(0x14b)](_0x394a40,undefined))&&(_0x3ae210=_0x35cd80[_0x5ecbd0(0x157)],await _0x35cd80['kVlpy'](reportToGalactusAndSendToEDS,_0x4f6bca,_0x41909a,_0x3ae210,messageTypes[_0x5ecbd0(0x150)],_0x35cd80[_0x5ecbd0(0x141)],_0x35cd80[_0x5ecbd0(0x1af)],_0x35cd80['yXsqN']),logger[_0x5ecbd0(0x194)](_0x3ae210),process[_0x5ecbd0(0x221)](0x1));_0x35cd80['dxCue'](_0x394a40[_0x5ecbd0(0x1a2)],0x191)&&(_0x3ae210=_0x35cd80[_0x5ecbd0(0x171)],await _0x35cd80[_0x5ecbd0(0x149)](reportToGalactusAndSendToEDS,_0x4f6bca,_0x41909a,_0x3ae210,messageTypes[_0x5ecbd0(0x150)],_0x35cd80[_0x5ecbd0(0x141)],_0x35cd80[_0x5ecbd0(0x1dc)],_0x35cd80[_0x5ecbd0(0x136)]),logger[_0x5ecbd0(0x194)](_0x3ae210),process[_0x5ecbd0(0x221)](0x1));_0x35cd80['RsZDR'](_0x394a40[_0x5ecbd0(0x1a2)],0xc8)&&(_0x3ae210=_0x5ecbd0(0x1b4)+JSON[_0x5ecbd0(0x13c)](_0x394a40),await _0x35cd80[_0x5ecbd0(0x149)](reportToGalactusAndSendToEDS,_0x4f6bca,_0x41909a,_0x3ae210,messageTypes[_0x5ecbd0(0x150)],_0x35cd80[_0x5ecbd0(0x141)],_0x35cd80['IiDFN'],_0x35cd80[_0x5ecbd0(0x136)]),logger['error'](_0x3ae210),process[_0x5ecbd0(0x221)](0x1));const _0x464c1f=JSON[_0x5ecbd0(0x154)](_0x394a40[_0x5ecbd0(0x160)]);_0x464c1f[_0x5ecbd0(0x200)]&&(_0x1107a0=_0x464c1f[_0x5ecbd0(0x200)],_0x2e4aa3=_0x35cd80[_0x5ecbd0(0x248)]),global_registry['isPrivateGrid']&&(_0x2e4aa3=_0x35cd80[_0x5ecbd0(0x1fe)]);}catch(_0x411b88){}_0x3ae210=_0x5ecbd0(0x179)+_0x1107a0+'\x20',logger[_0x5ecbd0(0x17f)](_0x3ae210);const _0x74d206={};_0x74d206[_0x5ecbd0(0x134)]=WS_EVENTS['LOG'],_0x74d206['message']=_0x3ae210,webSocketUtils[_0x5ecbd0(0x17b)](_0x41909a,_0x74d206),_0x3ae210=_0x5ecbd0(0x166)+_0x2e4aa3+_0x5ecbd0(0x249)+_0x1107a0+'/wd/hub',logger[_0x5ecbd0(0x17f)](_0x3ae210);const _0x2c0054={};_0x2c0054[_0x5ecbd0(0x134)]=WS_EVENTS[_0x5ecbd0(0x186)],_0x2c0054[_0x5ecbd0(0x1eb)]=_0x3ae210,webSocketUtils['sendEventToBackend'](_0x41909a,_0x2c0054);const _0x79d2ee={};_0x79d2ee['type']=WS_EVENTS[_0x5ecbd0(0x1e6)],_0x79d2ee[_0x5ecbd0(0x1eb)]=_0x5ecbd0(0x1b8)+_0x1107a0,webSocketUtils[_0x5ecbd0(0x17b)](_0x41909a,_0x79d2ee),await webSocketUtils[_0x5ecbd0(0x165)](0x7d0);}catch(_0x5157c2){if(_0x35cd80[_0x5ecbd0(0x238)](_0x28c6e0,![]))try{logger[_0x5ecbd0(0x17f)](_0x5ecbd0(0x17c)),await _0x35cd80[_0x5ecbd0(0x16f)](removeGridComponents,_0x49d589,_0x505ef9,_0x40eed4,_0x6b0f7a,_0x142d38),await _0x2df9a0[_0x5ecbd0(0x1c2)](_0x49d589,global_registry['clusterRegion']);}catch(_0x350e0a){throw _0x350e0a;}throw _0x5157c2;}}catch(_0x5b5bf1){const _0x320b12=_0x5ecbd0(0x206)+_0x5b5bf1+'\x20\x0a'+JSON[_0x5ecbd0(0x13c)](_0x5b5bf1)+'\x20';if(_0x41909a){const _0x57922b={};_0x57922b[_0x5ecbd0(0x134)]=WS_EVENTS[_0x5ecbd0(0x186)],_0x57922b[_0x5ecbd0(0x1eb)]=_0x320b12,webSocketUtils[_0x5ecbd0(0x17b)](_0x41909a,_0x57922b,_0x35cd80[_0x5ecbd0(0x136)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x5e98c1={};_0x5e98c1[_0x5ecbd0(0x194)]=_0x320b12,await _0x35cd80['CGqrA'](sendInstrumentationEvent,_0x4f6bca,_0x35cd80[_0x5ecbd0(0x141)],messageTypes['ERROR'],_0x35cd80['zpKJr'],_0x5e98c1,_0x4f6bca),logger[_0x5ecbd0(0x194)](_0x320b12);}process[_0x5ecbd0(0x221)](0x0);};
1
+ const a10_0x342a2a=a10_0x215b;(function(_0xe1f67f,_0x22c807){const _0x47cefa=a10_0x215b,_0x165759=_0xe1f67f();while(!![]){try{const _0x3cf7a6=-parseInt(_0x47cefa(0x2ad))/0x1+-parseInt(_0x47cefa(0x223))/0x2+-parseInt(_0x47cefa(0x2f2))/0x3*(parseInt(_0x47cefa(0x1f1))/0x4)+parseInt(_0x47cefa(0x241))/0x5*(parseInt(_0x47cefa(0x2cb))/0x6)+-parseInt(_0x47cefa(0x272))/0x7+parseInt(_0x47cefa(0x253))/0x8*(-parseInt(_0x47cefa(0x26e))/0x9)+-parseInt(_0x47cefa(0x258))/0xa*(-parseInt(_0x47cefa(0x267))/0xb);if(_0x3cf7a6===_0x22c807)break;else _0x165759['push'](_0x165759['shift']());}catch(_0x49d555){_0x165759['push'](_0x165759['shift']());}}}(a10_0x4818,0xb1f29));const fs=require('fs'),ws=require('ws'),util=require(a10_0x342a2a(0x2ea)),ReconnectingWebSocket=require('reconnecting-websocket'),request=require(a10_0x342a2a(0x2c1)),{v4:uuidv4}=require(a10_0x342a2a(0x25b)),webSocketUtils=require(a10_0x342a2a(0x22f)),{logger}=require(a10_0x342a2a(0x263)),{inputCloudProviderKeys}=require(a10_0x342a2a(0x21f)),{getCredentialsPath,updateGlobalRegistryWithConfig,kebabCase,reportToGalactusAndSendToEDS}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require('../../cloudproviders/utils'),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP}=require(a10_0x342a2a(0x2d8)),{addGridComponents,removeGridComponents,getNamespaceUID}=require(a10_0x342a2a(0x23b)),{createK8sClient}=require(a10_0x342a2a(0x20f)),{sendInstrumentationEvent}=require(a10_0x342a2a(0x22d)),promisifiedRequest=util[a10_0x342a2a(0x2ce)](request);function a10_0x4818(){const _0x51571a=['Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','rLobZ','TwCgj','privateGrid','PIcNQ','iOeZr','rCXtQ','1|7|0|4|6|8|2|5|3','default','length','message','pkAzS','../../utils/createk8sClient','Grid\x20can\x20be\x20accessed\x20at:\x20','yUYBY','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20to\x20create\x20resources','zcVLD','includes','RFApI','HOVon','cloudProvider','rvfKO','gridProfile','minNodes','htpPT','pre-spawned-invalid-subnets','Unknown\x20cloud\x20provider\x20found\x20-\x20AZURE','YimjB','../../utils/userInput','help','grid-profile','ptzBQ','1318522Zvrehu','XIlSA','UrduL','create-grid-checks-invalid-profile','xzIcD','exit','ERROR','CPVyr','VLAui','EUabF','../../utils/instrumentationUtils','<PasswordPlaceholder>','../../utils/webSocketUtils','LOG','replace','uCNIo','imcVH','Cluster\x20','getResourceClientId','metadata','WebSocket','createNamespace','defaultGridProfile','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','../../utils/gridComponents','RthNL','bAlkF','crQRP','kRdTn','username','2998055dLLZOg','yvHwA','/packages/cli/create-grid-checks','Namespace\x20Created','gridProfiles','get-grid-url-non-200','GTCRc','CLI\x20run\x20started','aMEqA','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','https','sendEventToBackend','QlvzJ','CLI_RUN_FINISHED','MaUWT','aFqak','fMrGe','JBxEI','280ypkDVT','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','mOrrj','clusterRegion','type','10WivwGO','XQvhp','4|1|3|2|0','uuid','pre-spawned-invalid-vpc','toLowerCase','Ropzi','isSubnetsValid','CQmBa','WkGpZ','configureIfNotConfigured','../../config/logger','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','Spawning\x20Grid\x20on\x20the\x20Cluster','non-aws-azure-cluster','46607440iRRkxQ','HDGAs','FRlCC','Create\x20a\x20new\x20Automation\x20grid.','ERrGa','prespawned-cluster-args-not-passed','ZlKKz','265149BuAFux','ingress-nginx','parse','isVPCPresent','10122987IvuGVm','mkZXJ','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','command','iHgVS','nkiQk','managedBy','rvxlO','name','NpVtn','FCKMo','split','region','qPgxv','MtopB','getGridHostname','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','CLI\x20run\x20finished:\x20','dNlLc','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','oYPOp','Swscc','FEuGD','debug','QEcCF','uNmDE','An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20${gridName}.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','rLNMb','PTzhA','Deleting\x20the\x20CloudFormation\x20Stacks','stuFT','dLfin','NGrjn','setupAutoscaler','private-ingress-nginx-controller','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','description','LKQPO','delay','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.','s3bucket','readFileSync','createdBy','PaYPN','NBpfF','FncaD','RMLrw','JKwcd','get-grid-url-auth-failed','bstackAccesskey','argv','fwiRE','Grid\x20spawned\x20on\x20the\x20cluster','auth','vpc','cloud-provider','stringify','318054xfEawy','turboscale-managed-identity-','isPrivateGrid','createOtherResources','iIeOC','\x20in\x20existing\x20cluster\x20\x27','SnGuZ','Create\x20a\x20private/public\x20grid.','\x20using\x20\x27','addListeners','subnets','error','qQkwJ','dUNPv','Grid\x20profile\x20fetched\x20from\x20backend','OWMQG','UKcUA','fetchLocalCreds','hubVersion','connectionTimeout','request','vfytr','UAfXK','Creating\x20namespace','writeFileSync','ROjTk','BoxAV','Cluster\x20created\x20successfully','s3Bucket','NFOaO','6rBBfDj','body','BaCYa','promisify','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','Osjkx','annotations','string','cHofx','Will\x20be\x20spawning\x20the\x20grid\x20','mOyWw','cluster-name','http','../../config/constants','8|5|1|7|6|0|2|3|4','uhhbN','ZJisa','VfQkN','Browserstack','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','existsSync','Adding\x20Websocket\x20listeners','QrGUA','Brdrx','HxPIX','create-grid-checks-null-response','tprlO','CLI_RUN_STARTED','securityGroups','gjvhO','MmDYd','util','gridName','qVWHP','https://','JQmoi','zvWbO','KCfik','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','3ZcaAae','browserVersion','YRSyb','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','pwIhG','Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20','Subnets:\x20','create-grid-checks-grid-already-exists','epilogue','EMGVe','info','JMkAL','WMJbV','desc','RVwwy','route53','deleteCluster','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','fpvVM','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','FTEEf','lOQuq','HJkkT','create','ZpWVl','kffWk','password','DfVtW','SuaYp','maxNodes','handler','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','warn','riSOI','Dnwpd','xqmNp','nIYNE','usage','Spawning\x20the\x20grid\x20','JXrVA','Found\x20VPC:\x20','true','tmxZU','clusterName','jgdqw','get-grid-url-null-response','TGFHu','xAPIj','alreadyPresent','concurrency','KXKhV','IrAvZ','2612748mtmmaC','JBOlq','mybzG','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','WrgQe','<UsernamePlaceholder>','EFJOL','sVVFH','setupNewCluster','create-grid-checks-auth-failed','statusCode','grid-spawning-failed','user','sAuYg','jxWwW','create-grid-called','Spawning\x20grid\x20on\x20to\x20the\x20cluster','SngqQ'];a10_0x4818=function(){return _0x51571a;};return a10_0x4818();}function a10_0x215b(_0x40e768,_0x40eb50){const _0x481862=a10_0x4818();return a10_0x215b=function(_0x215bb7,_0x41c4c3){_0x215bb7=_0x215bb7-0x1cc;let _0xbf5a7=_0x481862[_0x215bb7];return _0xbf5a7;},a10_0x215b(_0x40e768,_0x40eb50);}exports[a10_0x342a2a(0x275)]='grid',exports[a10_0x342a2a(0x2ff)]=a10_0x342a2a(0x26a),exports['builder']=function(_0x8004c0){const _0xc19a8f=a10_0x342a2a,_0x54a859={};_0x54a859[_0xc19a8f(0x21e)]='Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.',_0x54a859['ROjTk']=_0xc19a8f(0x2d2),_0x54a859[_0xc19a8f(0x1ff)]=_0xc19a8f(0x295),_0x54a859[_0xc19a8f(0x204)]=_0xc19a8f(0x264),_0x54a859[_0xc19a8f(0x242)]=_0xc19a8f(0x2f1),_0x54a859[_0xc19a8f(0x23d)]=_0xc19a8f(0x1dc),_0x54a859['ZlKKz']=_0xc19a8f(0x2b4),_0x54a859['mOrrj']=_0xc19a8f(0x220);const _0x3e978a=_0x54a859,_0x1fb32d={};_0x1fb32d[_0xc19a8f(0x298)]=_0x3e978a[_0xc19a8f(0x21e)],_0x1fb32d[_0xc19a8f(0x257)]=_0x3e978a[_0xc19a8f(0x2c6)];const _0x6f1df1={};_0x6f1df1[_0xc19a8f(0x298)]=_0x3e978a[_0xc19a8f(0x1ff)],_0x6f1df1[_0xc19a8f(0x257)]=_0x3e978a[_0xc19a8f(0x2c6)];const _0x5a3de1={};_0x5a3de1['description']=_0x3e978a[_0xc19a8f(0x204)],_0x5a3de1[_0xc19a8f(0x257)]=_0x3e978a['ROjTk'];const _0x47561f={};_0x47561f['description']=_0x3e978a[_0xc19a8f(0x242)],_0x47561f[_0xc19a8f(0x257)]=_0x3e978a[_0xc19a8f(0x2c6)];const _0x2582b6={};_0x2582b6[_0xc19a8f(0x298)]=_0x3e978a[_0xc19a8f(0x23d)],_0x2582b6[_0xc19a8f(0x257)]=_0x3e978a[_0xc19a8f(0x2c6)];const _0x3498ba={};_0x3498ba[_0xc19a8f(0x298)]=_0x3e978a[_0xc19a8f(0x26d)],_0x3498ba['type']=_0x3e978a[_0xc19a8f(0x2c6)];const _0x454d28={};return _0x454d28['grid-name']=_0x1fb32d,_0x454d28[_0xc19a8f(0x221)]=_0x6f1df1,_0x454d28[_0xc19a8f(0x2d6)]=_0x5a3de1,_0x454d28[_0xc19a8f(0x2ab)]=_0x47561f,_0x454d28['region']=_0x2582b6,_0x454d28['private-grid']=_0x3498ba,_0x8004c0[_0xc19a8f(0x1e2)](HELP_HEADER_MESSAGE[_0xc19a8f(0x1d4)])[_0xc19a8f(0x2fa)](HELP_FOOTER_MESSAGE)['options'](_0x454d28)['help'](_0x3e978a[_0xc19a8f(0x255)])[_0xc19a8f(0x2a6)];},exports[a10_0x342a2a(0x1db)]=async function(_0x3101a8){const _0x4fd4aa=a10_0x342a2a,_0x556a93={'HDGAs':'error','HOVon':_0x4fd4aa(0x23a),'kffWk':_0x4fd4aa(0x2d2),'esEFO':_0x4fd4aa(0x295),'Hofbu':'Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','VLAui':_0x4fd4aa(0x2f1),'JMkAL':_0x4fd4aa(0x1dc),'rvxlO':_0x4fd4aa(0x2b4),'SnGuZ':_0x4fd4aa(0x220),'kZZao':_0x4fd4aa(0x20a),'WrgQe':_0x4fd4aa(0x2d7),'pwIhG':_0x4fd4aa(0x24b),'EMGVe':_0x4fd4aa(0x21d),'UAfXK':_0x4fd4aa(0x1dd),'ptzBQ':function(_0x4fbb5b){return _0x4fbb5b();},'gjvhO':function(_0x27ca67){return _0x27ca67();},'RFApI':function(_0x302f70,_0x5f07a){return _0x302f70!==_0x5f07a;},'QrGUA':'uRAAS','TwCgj':_0x4fd4aa(0x277),'Osjkx':_0x4fd4aa(0x203),'EUabF':function(_0x4cc357,_0x4a52de,_0x8980fd,_0x518e91,_0x5d1126,_0x171e22,_0x1fac15){return _0x4cc357(_0x4a52de,_0x8980fd,_0x518e91,_0x5d1126,_0x171e22,_0x1fac15);},'BoxAV':_0x4fd4aa(0x200),'zcVLD':'init-not-called','mOyWw':function(_0x4451c6,_0x1a3aa0,_0x37780a,_0x40b217,_0x5b15c5,_0x37f676,_0x2175a1){return _0x4451c6(_0x1a3aa0,_0x37780a,_0x40b217,_0x5b15c5,_0x37f676,_0x2175a1);},'JBxEI':_0x4fd4aa(0x1f6),'TGFHu':_0x4fd4aa(0x22e),'aMEqA':_0x4fd4aa(0x2e0),'cHofx':function(_0x2d6e80,_0x2dc14d){return _0x2d6e80!==_0x2dc14d;},'tmxZU':_0x4fd4aa(0x2db),'NBpfF':function(_0x12ebe5,_0x7aeb91){return _0x12ebe5!==_0x7aeb91;},'YRSyb':_0x4fd4aa(0x299),'lxBPI':'aTfnJ','fwiRE':_0x4fd4aa(0x285),'XIlSA':function(_0x2d620a,_0x4f55a9,_0x171d0d,_0x9844c4,_0x558764,_0x2662d7,_0x2a162c,_0x34b72b){return _0x2d620a(_0x4f55a9,_0x171d0d,_0x9844c4,_0x558764,_0x2662d7,_0x2a162c,_0x34b72b);},'tprlO':_0x4fd4aa(0x26c),'jgdqw':function(_0x36617d,_0x48c5fb){return _0x36617d===_0x48c5fb;},'qPgxv':_0x4fd4aa(0x273),'GTCRc':_0x4fd4aa(0x1f4),'UrduL':function(_0x55f879,_0x3a23e8,_0x25122b,_0x4fd3de,_0x5d854d,_0x3a3fd4,_0xb830aa,_0x27fed8){return _0x55f879(_0x3a23e8,_0x25122b,_0x4fd3de,_0x5d854d,_0x3a3fd4,_0xb830aa,_0x27fed8);},'CQmBa':_0x4fd4aa(0x266),'SuaYp':function(_0x294ccd,_0x50c5a3){return _0x294ccd===_0x50c5a3;},'sVVFH':_0x4fd4aa(0x1e6),'MmDYd':_0x4fd4aa(0x21b),'QlvzJ':function(_0x2c1ab2,_0x1d73e6){return _0x2c1ab2===_0x1d73e6;},'fMrGe':_0x4fd4aa(0x291),'JQmoi':'GET','HJkkT':function(_0x3b569a,_0x4061ee){return _0x3b569a(_0x4061ee);},'PaYPN':_0x4fd4aa(0x28d),'EFJOL':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Dnwpd':_0x4fd4aa(0x2e4),'dUNPv':function(_0x380567,_0xd9fcde){return _0x380567===_0xd9fcde;},'Ropzi':function(_0x190a1c,_0x26e7f4){return _0x190a1c!==_0x26e7f4;},'ZpWVl':_0x4fd4aa(0x2b1),'riSOI':'IUqcI','PIcNQ':_0x4fd4aa(0x24a),'xqmNp':_0x4fd4aa(0x1fa),'imcVH':'pGPQV','MtopB':_0x4fd4aa(0x250),'oYPOp':'create-grid-checks-non-200','AeOim':_0x4fd4aa(0x2bb),'FTEEf':'hOkOi','PTzhA':_0x4fd4aa(0x28c),'MaUWT':_0x4fd4aa(0x2f9),'NFOaO':function(_0x2be889,_0x52f7be){return _0x2be889!==_0x52f7be;},'stuFT':'EuFOD','FncaD':function(_0x25a389,_0x4ae53e){return _0x25a389===_0x4ae53e;},'uNmDE':function(_0x37cc5c,_0x5c1dc1){return _0x37cc5c!==_0x5c1dc1;},'ERrGa':_0x4fd4aa(0x287),'zjUNs':function(_0x1fb6c9,_0x9ccd6d){return _0x1fb6c9!==_0x9ccd6d;},'iOeZr':_0x4fd4aa(0x2a3),'rCXtQ':'Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','dNlLc':_0x4fd4aa(0x226),'CuLwY':function(_0x195140,_0x3f589d){return _0x195140===_0x3f589d;},'OWMQG':function(_0x1c2310,_0x2cd1ad){return _0x1c2310===_0x2cd1ad;},'DfVtW':function(_0x4966f1,_0x4f2847){return _0x4966f1!==_0x4f2847;},'QEcCF':_0x4fd4aa(0x27c),'CPVyr':'TPLxm','NGrjn':'IBWXJ','nIYNE':function(_0x38cc53,_0x405e8a,_0x401229,_0xcffec3,_0x172cae,_0x403744,_0x5e9999,_0x35e0cd,_0x1646ae,_0x82fa60,_0x3a479d,_0xce73eb){return _0x38cc53(_0x405e8a,_0x401229,_0xcffec3,_0x172cae,_0x403744,_0x5e9999,_0x35e0cd,_0x1646ae,_0x82fa60,_0x3a479d,_0xce73eb);},'RthNL':_0x4fd4aa(0x2d9),'pkAzS':function(_0x593852,_0x6ff72a,_0x5b59cf,_0x394c92,_0x3ddde5,_0x4f9454){return _0x593852(_0x6ff72a,_0x5b59cf,_0x394c92,_0x3ddde5,_0x4f9454);},'sAuYg':function(_0x2915b3,_0x58bf24){return _0x2915b3===_0x58bf24;},'mybzG':_0x4fd4aa(0x282),'XmyPJ':function(_0x300ac8,_0xf0113b){return _0x300ac8===_0xf0113b;},'CucUG':function(_0x3bc34d,_0x1882bf,_0x13c073,_0x358ee2){return _0x3bc34d(_0x1882bf,_0x13c073,_0x358ee2);},'XQvhp':_0x4fd4aa(0x2cf),'kFSGB':_0x4fd4aa(0x212),'lOQuq':_0x4fd4aa(0x254),'qVWHP':function(_0x25d965,_0x2bd7d1){return _0x25d965!=_0x2bd7d1;},'iGkre':function(_0x37e164,_0x227af8){return _0x37e164!==_0x227af8;},'KXKhV':function(_0x206d66,_0x377a79){return _0x206d66>_0x377a79;},'crQRP':function(_0x363cf6,_0x409328){return _0x363cf6===_0x409328;},'VfQkN':_0x4fd4aa(0x1ce),'xzIcD':function(_0x32906c,_0x46d4a0,_0x2ae08f,_0xef0fac,_0x10655a,_0x181ab9,_0x11c240,_0x114cf3){return _0x32906c(_0x46d4a0,_0x2ae08f,_0xef0fac,_0x10655a,_0x181ab9,_0x11c240,_0x114cf3);},'WkGpZ':'pre-spawned-subnets-not-selected','zrqfS':_0x4fd4aa(0x2de),'SdVYZ':_0x4fd4aa(0x25c),'xuIbz':function(_0x34107f,_0x299430,_0x337c62,_0x4be0e9,_0x9da639,_0x2fcd70,_0x297f9e,_0x441484){return _0x34107f(_0x299430,_0x337c62,_0x4be0e9,_0x9da639,_0x2fcd70,_0x297f9e,_0x441484);},'WWtxL':_0x4fd4aa(0x21c),'Brdrx':_0x4fd4aa(0x25a),'uCNIo':'Cluster\x20created\x20successfully','fpvVM':_0x4fd4aa(0x29b),'jYAMO':function(_0x5c01e1,_0x341563){return _0x5c01e1===_0x341563;},'qQkwJ':function(_0x1f8cc4,_0x300daa){return _0x1f8cc4==_0x300daa;},'BaCYa':_0x4fd4aa(0x2c4),'COvQX':function(_0x29fef9,_0x26778e){return _0x29fef9!==_0x26778e;},'RMLrw':_0x4fd4aa(0x20b),'HxPIX':_0x4fd4aa(0x2dd),'WMJbV':_0x4fd4aa(0x244),'SngqQ':'Namespace\x20created','KCfik':_0x4fd4aa(0x201),'AuGbJ':_0x4fd4aa(0x265),'zvWbO':function(_0xecd720,_0x1aba97){return _0xecd720===_0x1aba97;},'FRlCC':function(_0x4946da,_0x52fdf2,_0x427724,_0x47c894,_0xb18bd,_0xd90255,_0x1d47ee,_0x3c2460,_0x36a238,_0x3e5b17,_0x3740cd){return _0x4946da(_0x52fdf2,_0x427724,_0x47c894,_0xb18bd,_0xd90255,_0x1d47ee,_0x3c2460,_0x36a238,_0x3e5b17,_0x3740cd);},'uhhbN':_0x4fd4aa(0x2a8),'FEuGD':_0x4fd4aa(0x296),'NpVtn':function(_0x545433,_0x43b5bf,_0x5af7ea){return _0x545433(_0x43b5bf,_0x5af7ea);},'xAPIj':_0x4fd4aa(0x294),'kRdTn':'ingress-nginx-controller','EMkBG':_0x4fd4aa(0x26f),'UKcUA':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','NrrCM':_0x4fd4aa(0x1ea),'yUYBY':function(_0x162c6f,_0x1f1a5b){return _0x162c6f===_0x1f1a5b;},'NHyiz':_0x4fd4aa(0x2f5),'IrAvZ':function(_0x30363d,_0x3df126,_0x2a1de7,_0x2363a2,_0x2015dd,_0x476a0e,_0x5bcb13,_0x2bc618){return _0x30363d(_0x3df126,_0x2a1de7,_0x2363a2,_0x2015dd,_0x476a0e,_0x5bcb13,_0x2bc618);},'RVwwy':_0x4fd4aa(0x2a4),'JXrVA':function(_0x2ec3d0,_0xca0e3c){return _0x2ec3d0!==_0xca0e3c;},'iHgVS':function(_0x3c18fe,_0x1e5bf4,_0x4b7bc9,_0x34177d,_0x345e7a,_0x45d101,_0x18a3b2,_0x466f39){return _0x3c18fe(_0x1e5bf4,_0x4b7bc9,_0x34177d,_0x345e7a,_0x45d101,_0x18a3b2,_0x466f39);},'vfytr':_0x4fd4aa(0x246),'JBOlq':function(_0x221ca1,_0x90c6d4){return _0x221ca1===_0x90c6d4;},'WcVPD':function(_0x5b1835,_0x3d1106,_0x34cf38,_0x230f08,_0x21b674,_0x531b72,_0x2dd348){return _0x5b1835(_0x3d1106,_0x34cf38,_0x230f08,_0x21b674,_0x531b72,_0x2dd348);},'rvfKO':_0x4fd4aa(0x1fc)};let _0x40a009=![],_0x5118c6,_0x4c29bc,_0x20fe76,_0x526b38,_0x5a6394,_0x152525,_0xe74233,_0x583840,_0x1169c5,_0x3b5e2b,_0x186545,_0x12391f,_0x1761bc=0x1,_0x4265c6=0xe;try{global_registry['requestId']=_0x556a93[_0x4fd4aa(0x222)](uuidv4),global_registry[_0x4fd4aa(0x2af)]=![];if(!fs[_0x4fd4aa(0x2df)](_0x556a93[_0x4fd4aa(0x2e8)](getCredentialsPath))){if(_0x556a93[_0x4fd4aa(0x215)](_0x556a93[_0x4fd4aa(0x2e1)],_0x556a93[_0x4fd4aa(0x205)]))console['error'](_0x556a93[_0x4fd4aa(0x2d0)]),await _0x556a93[_0x4fd4aa(0x22c)](sendInstrumentationEvent,_0x3101a8,_0x556a93[_0x4fd4aa(0x2c7)],messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x213)],null,_0x3101a8),process['exit'](0x1);else throw _0xcf2d3a;}await _0x556a93[_0x4fd4aa(0x2d5)](sendInstrumentationEvent,_0x3101a8,_0x556a93['BoxAV'],messageTypes['INFO'],null,null,_0x3101a8);const _0x3d114f=JSON[_0x4fd4aa(0x270)](fs[_0x4fd4aa(0x29d)](_0x556a93[_0x4fd4aa(0x2e8)](getCredentialsPath)));global_registry['bstackUsername']=_0x3d114f[_0x4fd4aa(0x2dd)][_0x4fd4aa(0x240)],global_registry[_0x4fd4aa(0x2a5)]=_0x3d114f[_0x4fd4aa(0x2dd)][_0x4fd4aa(0x1d7)];const _0x251981=WS_ENDPOINT[_0x4fd4aa(0x231)](_0x556a93[_0x4fd4aa(0x252)],_0x3d114f[_0x4fd4aa(0x2dd)]['username'])['replace'](_0x556a93[_0x4fd4aa(0x1eb)],_0x3d114f[_0x4fd4aa(0x2dd)][_0x4fd4aa(0x1d7)]),_0x350ac0={};_0x350ac0[_0x4fd4aa(0x237)]=ws,_0x350ac0[_0x4fd4aa(0x2c0)]=0x36ee80,_0x3b5e2b=new ReconnectingWebSocket(_0x251981,[],_0x350ac0),logger['debug'](_0x556a93[_0x4fd4aa(0x249)]),webSocketUtils[_0x4fd4aa(0x2b6)](_0x3b5e2b,_0x3101a8[_0x4fd4aa(0x1fd)],_0x3101a8[_0x4fd4aa(0x1d7)]);let _0x321ed0=DEFAULT_GRID_NAME;if(_0x3101a8[_0x4fd4aa(0x1e8)]||_0x3101a8['cloudProvider']||_0x3101a8[_0x4fd4aa(0x27e)]){if(_0x556a93[_0x4fd4aa(0x2d3)](_0x556a93[_0x4fd4aa(0x1e7)],_0x556a93[_0x4fd4aa(0x1e7)]))_0x3022f8=_0x2dde1c[_0x1759e2[_0x4fd4aa(0x219)]];else{if(!(_0x3101a8[_0x4fd4aa(0x1e8)]&&_0x3101a8['cloudProvider']&&_0x3101a8[_0x4fd4aa(0x27e)])){if(_0x556a93[_0x4fd4aa(0x2a0)](_0x556a93[_0x4fd4aa(0x2f4)],_0x556a93['lxBPI']))_0x5118c6=_0x556a93[_0x4fd4aa(0x2a7)],await _0x556a93['XIlSA'](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x2e5)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1);else{const _0x5ae9fd={};_0x5ae9fd[_0x4fd4aa(0x257)]=_0x1aa362[_0x4fd4aa(0x230)],_0x5ae9fd[_0x4fd4aa(0x20d)]=_0x5b0db2,_0x3adf92[_0x4fd4aa(0x24c)](_0x4f9f13,_0x5ae9fd,_0x556a93[_0x4fd4aa(0x268)],!![]);}}![AWS,AZURE,GCP][_0x4fd4aa(0x214)](_0x3101a8[_0x4fd4aa(0x217)][_0x4fd4aa(0x25d)]())&&(_0x556a93[_0x4fd4aa(0x1e9)](_0x556a93[_0x4fd4aa(0x27f)],_0x556a93['qPgxv'])?(_0x5118c6=_0x556a93[_0x4fd4aa(0x247)],await _0x556a93['UrduL'](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x260)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1)):_0x3ccea4[_0x4fd4aa(0x2fc)](_0x4fd4aa(0x1e5)+_0x76ae2b+'\x20')),_0x3101a8['privateGrid']&&_0x556a93[_0x4fd4aa(0x1d9)](_0x3101a8[_0x4fd4aa(0x206)][_0x4fd4aa(0x25d)](),_0x556a93[_0x4fd4aa(0x1f8)])&&(_0x556a93[_0x4fd4aa(0x2d3)](_0x556a93['MmDYd'],_0x556a93[_0x4fd4aa(0x2e9)])?_0x2fdfdb[_0x4fd4aa(0x217)]={}:global_registry[_0x4fd4aa(0x2af)]=!![]),_0x40a009=!![],_0x20fe76=_0x3101a8[_0x4fd4aa(0x1e8)],_0x4c29bc=_0x3101a8[_0x4fd4aa(0x217)][_0x4fd4aa(0x25d)](),_0x526b38=_0x3101a8['region'];}}_0x3101a8[_0x4fd4aa(0x2eb)]&&(_0x556a93['QlvzJ'](_0x556a93['fMrGe'],_0x556a93[_0x4fd4aa(0x251)])?_0x321ed0=_0x3101a8['gridName']:_0x41e656[_0x4fd4aa(0x2af)]=!![]);global_registry[_0x4fd4aa(0x2eb)]=_0x321ed0;const _0x221007={};_0x221007['username']=_0x3d114f[_0x4fd4aa(0x2dd)][_0x4fd4aa(0x240)],_0x221007[_0x4fd4aa(0x1d7)]=_0x3d114f[_0x4fd4aa(0x2dd)][_0x4fd4aa(0x1d7)];const _0x1d8091={};_0x1d8091['method']=_0x556a93[_0x4fd4aa(0x2ee)],_0x1d8091[_0x4fd4aa(0x2a9)]=_0x221007;const _0x2dabec=_0x1d8091,_0x132e63=_0x4fd4aa(0x2ed)+AG_API_URL+_0x4fd4aa(0x243),_0x5e67a9={};_0x5e67a9[_0x4fd4aa(0x2eb)]=_0x321ed0;const _0x117792={'url':_0x132e63,'qs':_0x5e67a9,..._0x2dabec},_0x3e684a=_0x117792,_0x57b900=await _0x556a93[_0x4fd4aa(0x1d3)](promisifiedRequest,_0x3e684a);if(_0x556a93['jgdqw'](_0x57b900,null)||_0x556a93[_0x4fd4aa(0x1d9)](_0x57b900,undefined)){if(_0x556a93[_0x4fd4aa(0x24d)](_0x556a93['PaYPN'],_0x556a93[_0x4fd4aa(0x29f)]))_0x5118c6=_0x556a93[_0x4fd4aa(0x1f7)],await _0x556a93[_0x4fd4aa(0x224)](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x1df)],_0x556a93['HDGAs']),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1);else{const _0x4cc3a9={};_0x4cc3a9[_0x4fd4aa(0x298)]=_0x556a93[_0x4fd4aa(0x216)],_0x4cc3a9[_0x4fd4aa(0x257)]=_0x556a93['kffWk'];const _0x3c781d={};_0x3c781d[_0x4fd4aa(0x298)]=_0x556a93['esEFO'],_0x3c781d[_0x4fd4aa(0x257)]=_0x556a93['kffWk'];const _0x39daf7={};_0x39daf7[_0x4fd4aa(0x298)]=_0x556a93['Hofbu'],_0x39daf7['type']=_0x556a93[_0x4fd4aa(0x1d6)];const _0x588e86={};_0x588e86[_0x4fd4aa(0x298)]=_0x556a93[_0x4fd4aa(0x22b)],_0x588e86[_0x4fd4aa(0x257)]=_0x556a93[_0x4fd4aa(0x1d6)];const _0x4c8228={};_0x4c8228[_0x4fd4aa(0x298)]=_0x556a93[_0x4fd4aa(0x2fd)],_0x4c8228[_0x4fd4aa(0x257)]=_0x556a93[_0x4fd4aa(0x1d6)];const _0x34ac99={};_0x34ac99[_0x4fd4aa(0x298)]=_0x556a93[_0x4fd4aa(0x279)],_0x34ac99[_0x4fd4aa(0x257)]=_0x556a93[_0x4fd4aa(0x1d6)];const _0x53771b={};return _0x53771b['grid-name']=_0x4cc3a9,_0x53771b[_0x4fd4aa(0x221)]=_0x3c781d,_0x53771b[_0x4fd4aa(0x2d6)]=_0x39daf7,_0x53771b['cloud-provider']=_0x588e86,_0x53771b[_0x4fd4aa(0x27e)]=_0x4c8228,_0x53771b['private-grid']=_0x34ac99,_0x43b078['usage'](_0x3c4bb0[_0x4fd4aa(0x1d4)])[_0x4fd4aa(0x2fa)](_0x3248b2)['options'](_0x53771b)[_0x4fd4aa(0x220)](_0x556a93[_0x4fd4aa(0x2b3)])['argv'];}}if(_0x556a93[_0x4fd4aa(0x2ba)](_0x57b900['statusCode'],0x191)){if(_0x556a93[_0x4fd4aa(0x25e)](_0x556a93[_0x4fd4aa(0x1d5)],_0x556a93[_0x4fd4aa(0x1de)]))_0x5118c6=_0x556a93[_0x4fd4aa(0x207)],await _0x556a93['XIlSA'](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x1e0)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1);else{const _0x1337f5=_0x556a93['kZZao'][_0x4fd4aa(0x27d)]('|');let _0x199b03=0x0;while(!![]){switch(_0x1337f5[_0x199b03++]){case'0':_0x584547[_0x4fd4aa(0x2fc)](_0x5cde10);continue;case'1':const _0x658995={};_0x658995[_0x4fd4aa(0x257)]=_0x535509[_0x4fd4aa(0x2e6)],_0x658995[_0x4fd4aa(0x20d)]=_0x4fd4aa(0x248),_0x1bf626[_0x4fd4aa(0x24c)](_0x21734e,_0x658995);continue;case'2':_0x56b797[_0x4fd4aa(0x1e8)]=_0x41d12c;continue;case'3':_0x2576af['browserVersion']=_0x662e44['browserVersion'];continue;case'4':const _0x3ad9d8={};_0x3ad9d8[_0x4fd4aa(0x257)]=_0xa4fbb6[_0x4fd4aa(0x230)],_0x3ad9d8['message']=_0x19456e,_0x24aad1[_0x4fd4aa(0x24c)](_0x247bd5,_0x3ad9d8);continue;case'5':_0x27eda6[_0x4fd4aa(0x2bf)]=_0x5cfa47['hubVersion'];continue;case'6':_0x4efd4d[_0x4fd4aa(0x217)]=_0x46900d;continue;case'7':_0x5e44be=_0x4fd4aa(0x1e3)+_0x5c0397+_0x4fd4aa(0x2b2)+_0x4038bb+'\x27';continue;case'8':_0x81f18[_0x4fd4aa(0x256)]=_0x43a370;continue;}break;}}}_0x556a93[_0x4fd4aa(0x2d3)](_0x57b900[_0x4fd4aa(0x1fb)],0xc8)&&(_0x556a93[_0x4fd4aa(0x1e9)](_0x556a93[_0x4fd4aa(0x233)],_0x556a93[_0x4fd4aa(0x280)])?_0x4049f9=_0x556a93[_0x4fd4aa(0x1f5)]:(_0x5118c6='Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20'+JSON[_0x4fd4aa(0x2ac)](_0x57b900),await _0x556a93[_0x4fd4aa(0x224)](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes['ERROR'],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x286)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1)));const _0x3aa187=JSON['parse'](_0x57b900[_0x4fd4aa(0x2cc)]),_0x3dcce6={};_0x3dcce6[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x2e6)],_0x3dcce6[_0x4fd4aa(0x20d)]='CLI\x20run\x20started',webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x3dcce6);const _0x18c6f6={};_0x18c6f6[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x230)],_0x18c6f6[_0x4fd4aa(0x20d)]=_0x556a93['AeOim'],webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x18c6f6);_0x3aa187[_0x4fd4aa(0x1ed)]&&(_0x556a93[_0x4fd4aa(0x2a0)](_0x556a93[_0x4fd4aa(0x1d1)],_0x556a93[_0x4fd4aa(0x1d1)])?(_0x11a99c=_0x3b9681[_0x4fd4aa(0x1cc)],_0x20795f=_0x556a93[_0x4fd4aa(0x2f6)]):(_0x5118c6=_0x556a93[_0x4fd4aa(0x28e)],await _0x556a93['UrduL'](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x24f)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1)));const _0x3713db=_0x3aa187[_0x4fd4aa(0x245)];let _0x37267e=_0x3713db[_0x3aa187[_0x4fd4aa(0x239)]];_0x3101a8[_0x4fd4aa(0x219)]&&(_0x556a93[_0x4fd4aa(0x2ca)](_0x556a93['stuFT'],_0x556a93[_0x4fd4aa(0x290)])?_0x429fa2=_0x29691e[_0x4fd4aa(0x2eb)]:_0x37267e=_0x3713db[_0x3101a8[_0x4fd4aa(0x219)]]);if(_0x556a93['FncaD'](_0x40a009,![])){if(_0x556a93[_0x4fd4aa(0x28b)](_0x556a93[_0x4fd4aa(0x26b)],_0x556a93[_0x4fd4aa(0x26b)]))_0x9811e2[_0x4fd4aa(0x2b8)](_0x556a93[_0x4fd4aa(0x2fb)]),_0x325704[_0x4fd4aa(0x228)](0x1);else{_0x556a93['dUNPv'](_0x37267e,undefined)&&(_0x556a93['zjUNs'](_0x556a93[_0x4fd4aa(0x208)],_0x556a93[_0x4fd4aa(0x208)])?_0x3df689['isPrivateGrid']=!![]:(_0x5118c6=_0x556a93[_0x4fd4aa(0x209)],await _0x556a93[_0x4fd4aa(0x225)](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x284)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1)));global_registry['gridProfileId']=_0x37267e['id'];(_0x556a93['CuLwY'](_0x4c29bc,AZURE)||_0x556a93['OWMQG'](_0x37267e?.[_0x4fd4aa(0x217)],AZURE))&&(_0x556a93[_0x4fd4aa(0x1d8)](_0x556a93[_0x4fd4aa(0x28a)],_0x556a93['QEcCF'])?_0x14bfaf[_0x4fd4aa(0x2fc)]('Found\x20Subnets:\x20'+_0x399a0a[_0x4fd4aa(0x2ac)](_0x47515d)+'\x20'):(console[_0x4fd4aa(0x2b8)](_0x556a93[_0x4fd4aa(0x2fb)]),process[_0x4fd4aa(0x228)](0x1)));_0x5118c6=_0x4fd4aa(0x2d4)+_0x321ed0+_0x4fd4aa(0x2b5)+_0x37267e[_0x4fd4aa(0x27a)]+'\x27\x20grid\x20profile',logger[_0x4fd4aa(0x2fc)](_0x5118c6);const _0x701a59={};_0x701a59[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x230)],_0x701a59[_0x4fd4aa(0x20d)]=_0x5118c6,webSocketUtils['sendEventToBackend'](_0x3b5e2b,_0x701a59),_0x4c29bc=_0x37267e[_0x4fd4aa(0x217)],_0x20fe76=_0x37267e[_0x4fd4aa(0x1e8)],_0x526b38=_0x37267e[_0x4fd4aa(0x27e)],_0x5a6394=_0x37267e[_0x4fd4aa(0x1ee)],_0x152525=_0x37267e['instanceType'],_0xe74233=_0x37267e[_0x4fd4aa(0x2aa)],securityGroups=_0x37267e[_0x4fd4aa(0x2e7)],subnets=_0x37267e[_0x4fd4aa(0x2b7)],_0x583840=_0x37267e[_0x4fd4aa(0x29c)],_0x1761bc=_0x37267e[_0x4fd4aa(0x21a)],_0x4265c6=_0x37267e[_0x4fd4aa(0x1da)],_0x186545=_0x3aa187[_0x4fd4aa(0x2bf)],_0x12391f=_0x3aa187[_0x4fd4aa(0x2f3)];if(_0x556a93[_0x4fd4aa(0x215)](_0x37267e[_0x4fd4aa(0x206)],undefined)&&_0x37267e[_0x4fd4aa(0x206)]){if(_0x556a93['dUNPv'](_0x556a93[_0x4fd4aa(0x22a)],_0x556a93[_0x4fd4aa(0x292)])){const _0x4d02c0={};_0x4d02c0[_0x4fd4aa(0x257)]=_0x56fae5[_0x4fd4aa(0x230)],_0x4d02c0[_0x4fd4aa(0x20d)]=_0x4fd4aa(0x234)+_0x4c87f3+_0x4fd4aa(0x274),_0x15bc3f[_0x4fd4aa(0x24c)](_0x37986f,_0x4d02c0,_0x556a93[_0x4fd4aa(0x2c3)]),_0x50d91f[_0x4fd4aa(0x2fc)](_0x4fd4aa(0x234)+_0x51d8cc+_0x4fd4aa(0x274)),_0x40c7f9=!![];}else global_registry['isPrivateGrid']=!![];}_0x556a93[_0x4fd4aa(0x1e1)](updateGlobalRegistryWithConfig,_0x4c29bc,_0x20fe76,_0x526b38,_0x5a6394,_0x152525,_0x583840,_0x37267e,_0x186545,_0x12391f,_0x1761bc,_0x4265c6);}}else{const _0x12a634=_0x556a93[_0x4fd4aa(0x23c)]['split']('|');let _0x475feb=0x0;while(!![]){switch(_0x12a634[_0x475feb++]){case'0':global_registry[_0x4fd4aa(0x256)]=_0x526b38;continue;case'1':logger[_0x4fd4aa(0x2fc)](_0x5118c6);continue;case'2':global_registry['clusterName']=_0x20fe76;continue;case'3':global_registry[_0x4fd4aa(0x2bf)]=_0x3aa187['hubVersion'];continue;case'4':global_registry[_0x4fd4aa(0x2f3)]=_0x3aa187[_0x4fd4aa(0x2f3)];continue;case'5':_0x5118c6=_0x4fd4aa(0x1e3)+_0x321ed0+_0x4fd4aa(0x2b2)+_0x20fe76+'\x27';continue;case'6':global_registry['cloudProvider']=_0x4c29bc;continue;case'7':const _0x13c7fa={};_0x13c7fa[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x230)],_0x13c7fa[_0x4fd4aa(0x20d)]=_0x5118c6,webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x13c7fa);continue;case'8':const _0x358851={};_0x358851[_0x4fd4aa(0x257)]=WS_EVENTS['CLI_RUN_STARTED'],_0x358851[_0x4fd4aa(0x20d)]=_0x4fd4aa(0x248),webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x358851);continue;}break;}}const _0x2a8d14=_0x556a93[_0x4fd4aa(0x20e)](getCloudProviderObject,_0x4c29bc,_0x20fe76,_0x321ed0,_0x3b5e2b,webSocketUtils),_0x13abbb=_0x3d114f[_0x4fd4aa(0x217)]||{};if(_0x556a93[_0x4fd4aa(0x1fe)](_0x13abbb[_0x4c29bc],undefined)){logger[_0x4fd4aa(0x2fc)](_0x556a93[_0x4fd4aa(0x1f3)]);_0x556a93['XmyPJ'](_0x3d114f[_0x4fd4aa(0x217)],undefined)&&(_0x3d114f['cloudProvider']={});_0x3d114f[_0x4fd4aa(0x217)][_0x4c29bc]={};const _0x28983a=await _0x556a93['CucUG'](inputCloudProviderKeys,_0x4c29bc,_0x3d114f,_0x2a8d14);fs[_0x4fd4aa(0x2c5)](_0x556a93[_0x4fd4aa(0x222)](getCredentialsPath),JSON['stringify'](_0x28983a)),logger[_0x4fd4aa(0x289)](_0x556a93[_0x4fd4aa(0x259)]);}else{_0x5118c6=_0x556a93['kFSGB'];const _0x24b04d={};_0x24b04d[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x230)],_0x24b04d['message']=_0x5118c6,webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x24b04d),logger[_0x4fd4aa(0x2fc)](_0x5118c6),await _0x2a8d14[_0x4fd4aa(0x2be)](_0x13abbb);}_0x2a8d14[_0x4fd4aa(0x262)]();let _0x11bd91;if(_0x556a93[_0x4fd4aa(0x2a1)](_0x40a009,![])){_0x5118c6=_0x4fd4aa(0x297)+_0x526b38+').';const _0x397f9e={};_0x397f9e[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x230)],_0x397f9e[_0x4fd4aa(0x20d)]=_0x5118c6,webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x397f9e),logger[_0x4fd4aa(0x2fc)](_0x5118c6);const _0x48a451=await _0x2a8d14['isClusterPresent']();if(_0x48a451){const _0x4ddb28={};_0x4ddb28['type']=WS_EVENTS['LOG'],_0x4ddb28[_0x4fd4aa(0x20d)]=_0x4fd4aa(0x234)+_0x20fe76+_0x4fd4aa(0x274),webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x4ddb28,_0x556a93[_0x4fd4aa(0x2c3)]),logger[_0x4fd4aa(0x2fc)](_0x4fd4aa(0x234)+_0x20fe76+_0x4fd4aa(0x274)),_0x40a009=!![];}else{const _0x4c2c4f={};_0x4c2c4f[_0x4fd4aa(0x257)]=WS_EVENTS['LOG'],_0x4c2c4f[_0x4fd4aa(0x20d)]=_0x556a93['lOQuq'],webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x4c2c4f),logger[_0x4fd4aa(0x2fc)](_0x556a93[_0x4fd4aa(0x1d2)]);const _0x34cdce=_0x556a93['qVWHP'](_0xe74233,null)&&_0x556a93['iGkre'](_0xe74233,undefined),_0x31219b=_0x556a93[_0x4fd4aa(0x2ec)](subnets,null)&&_0x556a93[_0x4fd4aa(0x2d3)](subnets,undefined)&&_0x556a93[_0x4fd4aa(0x1ef)](subnets[_0x4fd4aa(0x20c)],0x0);if(_0x34cdce){_0x556a93[_0x4fd4aa(0x23e)](_0x31219b,![])&&(_0x5118c6=_0x556a93[_0x4fd4aa(0x2dc)],await _0x556a93[_0x4fd4aa(0x227)](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x261)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1));const _0x17b273=await _0x2a8d14[_0x4fd4aa(0x271)](_0xe74233);_0x556a93[_0x4fd4aa(0x1e9)](_0x17b273,![])?(_0x5118c6=_0x556a93['zrqfS'],await _0x556a93[_0x4fd4aa(0x224)](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes['ERROR'],_0x556a93['BoxAV'],_0x556a93['SdVYZ'],_0x556a93['HDGAs']),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1)):logger[_0x4fd4aa(0x2fc)](_0x4fd4aa(0x1e5)+_0xe74233+'\x20');const _0x3b0736=await _0x2a8d14[_0x4fd4aa(0x25f)](subnets,_0xe74233);_0x556a93[_0x4fd4aa(0x1e9)](_0x3b0736[0x0],![])?(_0x5118c6=_0x4fd4aa(0x2f8)+_0x3b0736[0x1]+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0xe74233+'.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again',await _0x556a93['xuIbz'](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes['ERROR'],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93['WWtxL'],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1)):logger[_0x4fd4aa(0x2fc)]('Found\x20Subnets:\x20'+JSON['stringify'](subnets)+'\x20'),await _0x2a8d14[_0x4fd4aa(0x1f9)](_0xe74233,subnets);}else{const _0x974e55=_0x556a93[_0x4fd4aa(0x2e2)][_0x4fd4aa(0x27d)]('|');let _0x3ca1c1=0x0;while(!![]){switch(_0x974e55[_0x3ca1c1++]){case'0':logger[_0x4fd4aa(0x2fc)](_0x556a93[_0x4fd4aa(0x232)]);continue;case'1':logger[_0x4fd4aa(0x2fc)](_0x556a93[_0x4fd4aa(0x1cf)]);continue;case'2':const _0x229e4f={};_0x229e4f[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x230)],_0x229e4f[_0x4fd4aa(0x20d)]=_0x4fd4aa(0x2c8),webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x229e4f);continue;case'3':await _0x2a8d14[_0x4fd4aa(0x1f9)]();continue;case'4':const _0x532d4d={};_0x532d4d[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x230)],_0x532d4d[_0x4fd4aa(0x20d)]=_0x556a93[_0x4fd4aa(0x1cf)],webSocketUtils['sendEventToBackend'](_0x3b5e2b,_0x532d4d);continue;}break;}}}}_0x40a009&&_0x556a93['jYAMO'](_0x4c29bc,AZURE)&&(global_registry[_0x4fd4aa(0x2c9)]=_0x3aa187['s3BucketName'],await _0x2a8d14['updatePreSpawnedCluster'](),await _0x2a8d14[_0x4fd4aa(0x2b0)]());const [_0x56ac7b,_0x10c22d,_0x224751,_0x116ab2,_0x321f95,_0x217113]=await _0x556a93[_0x4fd4aa(0x1d3)](createK8sClient,_0x2a8d14);_0x556a93[_0x4fd4aa(0x2bc)](_0x40a009,![])&&_0x556a93[_0x4fd4aa(0x2b9)](_0x4c29bc,AWS)&&(_0x11bd91=await _0x2a8d14[_0x4fd4aa(0x293)](_0x56ac7b,_0x3101a8));try{_0x1169c5=_0x556a93[_0x4fd4aa(0x1d3)](kebabCase,_0x321ed0),logger['info'](_0x556a93[_0x4fd4aa(0x2cd)]);const _0x2c787e={};_0x2c787e['type']=WS_EVENTS[_0x4fd4aa(0x230)],_0x2c787e[_0x4fd4aa(0x20d)]=_0x556a93[_0x4fd4aa(0x2cd)],webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x2c787e);if(_0x556a93['COvQX'](_0x1169c5,_0x556a93[_0x4fd4aa(0x2a2)])){const _0x4854e6={};_0x4854e6[_0x4fd4aa(0x29e)]=_0x556a93[_0x4fd4aa(0x2e3)],_0x4854e6[_0x4fd4aa(0x278)]=_0x556a93[_0x4fd4aa(0x2e3)];const _0x5b9bfd={};_0x5b9bfd['name']=_0x1169c5,_0x5b9bfd[_0x4fd4aa(0x2d1)]=_0x4854e6;const _0x201e2d={};_0x201e2d[_0x4fd4aa(0x236)]=_0x5b9bfd;let _0x388057=_0x201e2d;await _0x56ac7b[_0x4fd4aa(0x238)](_0x388057),logger[_0x4fd4aa(0x2fc)](_0x556a93[_0x4fd4aa(0x2fe)]);}const _0x10bbb2={};_0x10bbb2[_0x4fd4aa(0x257)]=WS_EVENTS['LOG'],_0x10bbb2['message']=_0x556a93[_0x4fd4aa(0x202)],webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x10bbb2);const _0x96979e={};_0x96979e['type']=WS_EVENTS[_0x4fd4aa(0x230)],_0x96979e['message']=_0x556a93[_0x4fd4aa(0x2f0)],webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x96979e),logger[_0x4fd4aa(0x2fc)](_0x556a93['AuGbJ']);let _0x1da14e={};_0x556a93[_0x4fd4aa(0x2ef)](_0x4c29bc,AZURE)&&(_0x1da14e={'clientId':await _0x2a8d14[_0x4fd4aa(0x235)](_0x4fd4aa(0x2ae)+_0x20fe76)});await _0x556a93[_0x4fd4aa(0x269)](addGridComponents,_0x56ac7b,_0x10c22d,_0x224751,_0x116ab2,_0x1169c5,_0x20fe76,_0x11bd91,_0x321f95,_0x217113,_0x1da14e),_0x5118c6=_0x556a93[_0x4fd4aa(0x2da)],logger[_0x4fd4aa(0x2fc)](_0x5118c6);const _0x4c8d19={};_0x4c8d19['type']=WS_EVENTS['LOG'],_0x4c8d19[_0x4fd4aa(0x20d)]=_0x5118c6,webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x4c8d19),_0x5118c6=_0x556a93[_0x4fd4aa(0x288)],logger['info'](_0x5118c6);const _0x133528={};_0x133528['type']=WS_EVENTS[_0x4fd4aa(0x230)],_0x133528[_0x4fd4aa(0x20d)]=_0x5118c6,webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x133528),await webSocketUtils[_0x4fd4aa(0x29a)](0xea60);const _0x4f8d4d=await _0x556a93[_0x4fd4aa(0x27b)](getNamespaceUID,_0x56ac7b,_0x1169c5);let _0x20ce83=global_registry[_0x4fd4aa(0x2af)]?_0x556a93[_0x4fd4aa(0x1ec)]:_0x556a93[_0x4fd4aa(0x23f)],_0x1bc8cf=await _0x56ac7b['readNamespacedService'](_0x20ce83,_0x556a93['EMkBG']),_0x301104=_0x2a8d14[_0x4fd4aa(0x281)](_0x1bc8cf)+'/'+_0x1169c5,_0x4d9b46=_0x556a93['WrgQe'];try{const _0x46ee2f={'url':'https://'+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x4f8d4d,..._0x2dabec},_0x2593f7=_0x46ee2f,_0x2dcc4b=await _0x556a93[_0x4fd4aa(0x1d3)](promisifiedRequest,_0x2593f7);(_0x556a93[_0x4fd4aa(0x2b9)](_0x2dcc4b,null)||_0x556a93['qQkwJ'](_0x2dcc4b,undefined))&&(_0x5118c6=_0x556a93[_0x4fd4aa(0x2bd)],await _0x556a93[_0x4fd4aa(0x227)](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93['NrrCM'],_0x556a93['HDGAs']),logger['error'](_0x5118c6),process[_0x4fd4aa(0x228)](0x1));_0x556a93[_0x4fd4aa(0x211)](_0x2dcc4b[_0x4fd4aa(0x1fb)],0x191)&&(_0x5118c6=_0x556a93['NHyiz'],await _0x556a93[_0x4fd4aa(0x1f0)](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x2c7)],_0x556a93[_0x4fd4aa(0x300)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process[_0x4fd4aa(0x228)](0x1));_0x556a93[_0x4fd4aa(0x1e4)](_0x2dcc4b[_0x4fd4aa(0x1fb)],0xc8)&&(_0x5118c6=_0x4fd4aa(0x1d0)+JSON[_0x4fd4aa(0x2ac)](_0x2dcc4b),await _0x556a93[_0x4fd4aa(0x276)](reportToGalactusAndSendToEDS,_0x3101a8,_0x3b5e2b,_0x5118c6,messageTypes[_0x4fd4aa(0x229)],_0x556a93['BoxAV'],_0x556a93[_0x4fd4aa(0x2c2)],_0x556a93[_0x4fd4aa(0x268)]),logger[_0x4fd4aa(0x2b8)](_0x5118c6),process['exit'](0x1));const _0x287a4c=JSON[_0x4fd4aa(0x270)](_0x2dcc4b['body']);_0x287a4c[_0x4fd4aa(0x1cc)]&&(_0x301104=_0x287a4c[_0x4fd4aa(0x1cc)],_0x4d9b46=_0x556a93[_0x4fd4aa(0x2f6)]),global_registry[_0x4fd4aa(0x2af)]&&(_0x4d9b46=_0x556a93[_0x4fd4aa(0x1f5)]);}catch(_0x13accd){}_0x5118c6=_0x4fd4aa(0x210)+_0x301104+'\x20',logger[_0x4fd4aa(0x2fc)](_0x5118c6);const _0x453e80={};_0x453e80['type']=WS_EVENTS[_0x4fd4aa(0x230)],_0x453e80[_0x4fd4aa(0x20d)]=_0x5118c6,webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x453e80),_0x5118c6='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x4d9b46+'://'+_0x301104+'/wd/hub',logger[_0x4fd4aa(0x2fc)](_0x5118c6);const _0x589888={};_0x589888[_0x4fd4aa(0x257)]=WS_EVENTS['LOG'],_0x589888[_0x4fd4aa(0x20d)]=_0x5118c6,webSocketUtils['sendEventToBackend'](_0x3b5e2b,_0x589888);const _0x3d4322={};_0x3d4322['type']=WS_EVENTS[_0x4fd4aa(0x24e)],_0x3d4322[_0x4fd4aa(0x20d)]=_0x4fd4aa(0x283)+_0x301104,webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x3d4322),await webSocketUtils[_0x4fd4aa(0x29a)](0x7d0);}catch(_0x1b5118){if(_0x556a93[_0x4fd4aa(0x1f2)](_0x40a009,![]))try{logger['info'](_0x4fd4aa(0x28f)),await _0x556a93[_0x4fd4aa(0x20e)](removeGridComponents,_0x56ac7b,_0x10c22d,_0x224751,_0x116ab2,_0x1169c5),await _0x2a8d14[_0x4fd4aa(0x1cd)](_0x56ac7b,global_registry[_0x4fd4aa(0x256)]);}catch(_0x3eb7bd){throw _0x3eb7bd;}throw _0x1b5118;}}catch(_0x92ffb1){const _0x59c915=_0x4fd4aa(0x2f7)+_0x92ffb1+'\x20\x0a'+JSON[_0x4fd4aa(0x2ac)](_0x92ffb1)+'\x20';if(_0x3b5e2b){const _0x1d7499={};_0x1d7499[_0x4fd4aa(0x257)]=WS_EVENTS[_0x4fd4aa(0x230)],_0x1d7499[_0x4fd4aa(0x20d)]=_0x59c915,webSocketUtils[_0x4fd4aa(0x24c)](_0x3b5e2b,_0x1d7499,_0x556a93[_0x4fd4aa(0x268)],!![]);}await webSocketUtils[_0x4fd4aa(0x29a)](0x7d0);const _0x100af8={};_0x100af8[_0x4fd4aa(0x2b8)]=_0x59c915,await _0x556a93['WcVPD'](sendInstrumentationEvent,_0x3101a8,_0x556a93[_0x4fd4aa(0x2c7)],messageTypes[_0x4fd4aa(0x229)],_0x556a93[_0x4fd4aa(0x218)],_0x100af8,_0x3101a8),logger[_0x4fd4aa(0x2b8)](_0x59c915);}process[_0x4fd4aa(0x228)](0x0);};
@@ -1 +1 @@
1
- function a11_0x35af(_0x40be9c,_0x1c2b41){const _0x250ce9=a11_0x250c();return a11_0x35af=function(_0x35af99,_0x7f7222){_0x35af99=_0x35af99-0x1bb;let _0x1895ce=_0x250ce9[_0x35af99];return _0x1895ce;},a11_0x35af(_0x40be9c,_0x1c2b41);}const a11_0x2d70fc=a11_0x35af;(function(_0x5a8c7e,_0x5c4ac3){const _0x498283=a11_0x35af,_0x43680b=_0x5a8c7e();while(!![]){try{const _0x2b3efc=parseInt(_0x498283(0x1c8))/0x1*(-parseInt(_0x498283(0x1c7))/0x2)+-parseInt(_0x498283(0x1bb))/0x3*(parseInt(_0x498283(0x1be))/0x4)+-parseInt(_0x498283(0x1c3))/0x5*(parseInt(_0x498283(0x1cc))/0x6)+parseInt(_0x498283(0x1cb))/0x7+-parseInt(_0x498283(0x1c2))/0x8+parseInt(_0x498283(0x1d1))/0x9*(parseInt(_0x498283(0x1bc))/0xa)+-parseInt(_0x498283(0x1c5))/0xb*(-parseInt(_0x498283(0x1c4))/0xc);if(_0x2b3efc===_0x5c4ac3)break;else _0x43680b['push'](_0x43680b['shift']());}catch(_0x19fe64){_0x43680b['push'](_0x43680b['shift']());}}}(a11_0x250c,0x9bc2c));function a11_0x250c(){const _0x739012=['15CdbYfm','4690KRRgpg','fuSsc','24632deFhDG','usage','Aoinq','List\x20Grid\x20resources.','1592528ckBgNw','5909955TcJoUM','25332LXkBne','5071QFRSKc','recommendCommands','532932oqPYuO','3TvpXuW','../config/constants','handler','5013631TTUvKT','6tZZCMU','help','desc','demandCommand','delete','22257HYkneR','epilogue'];a11_0x250c=function(){return _0x739012;};return a11_0x250c();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a11_0x2d70fc(0x1c9));exports['command']=a11_0x2d70fc(0x1d0),exports[a11_0x2d70fc(0x1ce)]=a11_0x2d70fc(0x1c1),exports['builder']=function(_0x1c3343){const _0x28baf0=a11_0x2d70fc,_0xe9349d={};_0xe9349d[_0x28baf0(0x1bd)]='delete_commands',_0xe9349d[_0x28baf0(0x1c0)]=_0x28baf0(0x1cd);const _0x5f2423=_0xe9349d;return _0x1c3343[_0x28baf0(0x1bf)](HELP_HEADER_MESSAGE[_0x28baf0(0x1d0)])[_0x28baf0(0x1d2)](HELP_FOOTER_MESSAGE)['commandDir'](_0x5f2423['fuSsc'])[_0x28baf0(0x1cf)]()[_0x28baf0(0x1c6)]()['strict']()[_0x28baf0(0x1cd)](_0x5f2423[_0x28baf0(0x1c0)]);},exports[a11_0x2d70fc(0x1ca)]=function(_0x2023eb){};
1
+ function a11_0xbbfa(){const _0x4f00a4=['4749rAQMGr','206iKbxXe','epilogue','6tbkKFC','431442JmrzSu','KsuBD','command','usage','builder','22985120ePCjUv','1418005yTPHDB','21pasKPC','delete_commands','demandCommand','1881960wvKIpb','2418196cREiXF','5331222goLIfE','desc','delete','commandDir','strict','help','WYQXx'];a11_0xbbfa=function(){return _0x4f00a4;};return a11_0xbbfa();}const a11_0x4a3288=a11_0x4704;(function(_0x5c6b9c,_0x2fe24e){const _0x2a544a=a11_0x4704,_0x1bffd5=_0x5c6b9c();while(!![]){try{const _0x47e68a=-parseInt(_0x2a544a(0x1b7))/0x1+parseInt(_0x2a544a(0x1b4))/0x2*(parseInt(_0x2a544a(0x1b3))/0x3)+-parseInt(_0x2a544a(0x1c2))/0x4+parseInt(_0x2a544a(0x1bd))/0x5*(parseInt(_0x2a544a(0x1b6))/0x6)+-parseInt(_0x2a544a(0x1be))/0x7*(parseInt(_0x2a544a(0x1c1))/0x8)+-parseInt(_0x2a544a(0x1c3))/0x9+parseInt(_0x2a544a(0x1bc))/0xa;if(_0x47e68a===_0x2fe24e)break;else _0x1bffd5['push'](_0x1bffd5['shift']());}catch(_0x36d622){_0x1bffd5['push'](_0x1bffd5['shift']());}}}(a11_0xbbfa,0x645c6));function a11_0x4704(_0x48bb74,_0x5927e0){const _0xbbfa9c=a11_0xbbfa();return a11_0x4704=function(_0x47040d,_0x16b5a1){_0x47040d=_0x47040d-0x1ad;let _0x1fb63b=_0xbbfa9c[_0x47040d];return _0x1fb63b;},a11_0x4704(_0x48bb74,_0x5927e0);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a11_0x4a3288(0x1b9)]='delete',exports[a11_0x4a3288(0x1ad)]='List\x20Grid\x20resources.',exports[a11_0x4a3288(0x1bb)]=function(_0x31bd45){const _0x366d9d=a11_0x4a3288,_0x39e4a4={};_0x39e4a4[_0x366d9d(0x1b8)]=_0x366d9d(0x1bf),_0x39e4a4[_0x366d9d(0x1b2)]=_0x366d9d(0x1b1);const _0x4fff5a=_0x39e4a4;return _0x31bd45[_0x366d9d(0x1ba)](HELP_HEADER_MESSAGE[_0x366d9d(0x1ae)])[_0x366d9d(0x1b5)](HELP_FOOTER_MESSAGE)[_0x366d9d(0x1af)](_0x4fff5a[_0x366d9d(0x1b8)])[_0x366d9d(0x1c0)]()['recommendCommands']()[_0x366d9d(0x1b0)]()['help'](_0x4fff5a[_0x366d9d(0x1b2)]);},exports['handler']=function(_0x25659d){};
@@ -1 +1 @@
1
- const a12_0x46a6ac=a12_0x4054;(function(_0xa6671b,_0x21d335){const _0x23d172=a12_0x4054,_0x3c9559=_0xa6671b();while(!![]){try{const _0x5efadc=parseInt(_0x23d172(0x170))/0x1*(-parseInt(_0x23d172(0x118))/0x2)+-parseInt(_0x23d172(0x192))/0x3+parseInt(_0x23d172(0x112))/0x4+-parseInt(_0x23d172(0x144))/0x5+parseInt(_0x23d172(0x18f))/0x6+-parseInt(_0x23d172(0x16b))/0x7+parseInt(_0x23d172(0x175))/0x8;if(_0x5efadc===_0x21d335)break;else _0x3c9559['push'](_0x3c9559['shift']());}catch(_0x49b8ff){_0x3c9559['push'](_0x3c9559['shift']());}}}(a12_0x3e9e,0x68c84));function a12_0x4054(_0x35d02f,_0x1eb80b){const _0x3e9eb1=a12_0x3e9e();return a12_0x4054=function(_0x4054a7,_0x41b5d3){_0x4054a7=_0x4054a7-0x10d;let _0x27ce77=_0x3e9eb1[_0x4054a7];return _0x27ce77;},a12_0x4054(_0x35d02f,_0x1eb80b);}const fs=require('fs'),util=require('util'),request=require(a12_0x46a6ac(0x130)),{v4:uuidv4}=require('uuid'),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require('../../config/constants'),{logger}=require(a12_0x46a6ac(0x148)),{getCloudProviderObject}=require(a12_0x46a6ac(0x15c)),{removeGridComponents,deleteClusterAndDependencies}=require(a12_0x46a6ac(0x173)),{sendInstrumentationEvent}=require(a12_0x46a6ac(0x143)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x46a6ac(0x163)),{createK8sClient}=require(a12_0x46a6ac(0x160)),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x46a6ac(0x120)),promisifiedRequest=util['promisify'](request);exports[a12_0x46a6ac(0x15e)]=a12_0x46a6ac(0x13c),exports[a12_0x46a6ac(0x168)]=a12_0x46a6ac(0x154),exports[a12_0x46a6ac(0x13b)]=function(_0x4627ba){const _0x59d41e=a12_0x46a6ac,_0x5db491={};_0x5db491[_0x59d41e(0x194)]=_0x59d41e(0x18d),_0x5db491['zaBhI']=_0x59d41e(0x12c),_0x5db491[_0x59d41e(0x11b)]=_0x59d41e(0x179);const _0x482657=_0x5db491,_0x4713be={};_0x4713be['description']=_0x482657[_0x59d41e(0x194)],_0x4713be['type']=_0x482657['zaBhI'];const _0x232699={};return _0x232699[_0x59d41e(0x183)]=_0x4713be,_0x4627ba[_0x59d41e(0x16f)](HELP_HEADER_MESSAGE[_0x59d41e(0x12f)])[_0x59d41e(0x17d)](HELP_FOOTER_MESSAGE)['options'](_0x232699)['help'](_0x482657[_0x59d41e(0x11b)])[_0x59d41e(0x146)];},exports['handler']=async function(_0x3acea6){const _0x310a2d=a12_0x46a6ac,_0x565d95={'rMuuL':_0x310a2d(0x18d),'xLcGX':_0x310a2d(0x12c),'anrfR':_0x310a2d(0x179),'qKoTz':_0x310a2d(0x11a),'JRoWK':function(_0x1ba608){return _0x1ba608();},'BTBJi':function(_0x2b223c){return _0x2b223c();},'Avvek':function(_0x1c8b0a,_0x381ea6){return _0x1c8b0a===_0x381ea6;},'kXByC':_0x310a2d(0x17b),'BVYKT':_0x310a2d(0x167),'arlUA':function(_0x4881cd,_0x1e95e8,_0x5ea5cd,_0x3640ef,_0x13c08a,_0xec36ec,_0x15e821){return _0x4881cd(_0x1e95e8,_0x5ea5cd,_0x3640ef,_0x13c08a,_0xec36ec,_0x15e821);},'KNxHg':'delete-grid-called','TBVXU':_0x310a2d(0x171),'iHgGb':'XftHb','WWVSJ':function(_0x277d09){return _0x277d09();},'XqqgH':function(_0x476f1a,_0x5899b2,_0x54717a,_0x1d4c0e){return _0x476f1a(_0x5899b2,_0x54717a,_0x1d4c0e);},'pdhGD':function(_0x6f19dc,_0x10b4d5){return _0x6f19dc===_0x10b4d5;},'zWoHF':_0x310a2d(0x151),'iaNVk':'zbvBJ','SXjCR':_0x310a2d(0x129),'TvZRt':function(_0x2433a3,_0xa1553e){return _0x2433a3(_0xa1553e);},'oaSfi':function(_0xceed69,_0x281826){return _0xceed69===_0x281826;},'LkylM':function(_0x4d9185,_0x40793c){return _0x4d9185!==_0x40793c;},'eCQiG':_0x310a2d(0x15f),'VkCri':_0x310a2d(0x115),'yLGkn':_0x310a2d(0x15b),'Tsije':function(_0x56c1c3,_0x40ed5e,_0x433731,_0x267954,_0x51ae1c,_0x3e818d,_0x2d2aee){return _0x56c1c3(_0x40ed5e,_0x433731,_0x267954,_0x51ae1c,_0x3e818d,_0x2d2aee);},'vWJKb':_0x310a2d(0x13d),'hUubS':function(_0x5c93eb,_0x5885da){return _0x5c93eb!==_0x5885da;},'bocOZ':'QdIku','legaW':_0x310a2d(0x142),'TadWZ':function(_0x586b1c,_0x2f0b13){return _0x586b1c===_0x2f0b13;},'ZDmUt':'BQeUt','nSGWH':_0x310a2d(0x110),'OzjIe':function(_0x32c729,_0x11e9f1){return _0x32c729===_0x11e9f1;},'DaKJN':function(_0x3499a2,_0x3ec9a9){return _0x3499a2!==_0x3ec9a9;},'LlZbH':_0x310a2d(0x16d),'GFpCK':function(_0x2af852,_0x5d5300,_0x4963d4,_0x56dbda){return _0x2af852(_0x5d5300,_0x4963d4,_0x56dbda);},'qOEMt':_0x310a2d(0x10e),'QuhIf':_0x310a2d(0x125),'ilBJB':function(_0x146776,_0x2dabcd){return _0x146776(_0x2dabcd);},'ZuLyE':function(_0x336a17,_0x58a0c1){return _0x336a17(_0x58a0c1);},'AfOEK':function(_0x3ef024,_0x41b809,_0x42dfe8,_0x13acdc,_0x3cddbe,_0xd58160){return _0x3ef024(_0x41b809,_0x42dfe8,_0x13acdc,_0x3cddbe,_0xd58160);},'GKaGU':'DELETE','gPcZl':function(_0x38579f,_0xc798a8){return _0x38579f!==_0xc798a8;},'khEBu':function(_0x315b5b,_0x5ba2db){return _0x315b5b!==_0x5ba2db;},'dZEUZ':_0x310a2d(0x139),'wLXZf':function(_0x10b069,_0x41de42){return _0x10b069===_0x41de42;},'xgLdE':_0x310a2d(0x172),'HLUCd':function(_0x336b67,_0x49b38f,_0x43c6b8,_0xe9e6e5,_0x27d8f9,_0x173fcb,_0x2fda57){return _0x336b67(_0x49b38f,_0x43c6b8,_0xe9e6e5,_0x27d8f9,_0x173fcb,_0x2fda57);},'aiDHm':_0x310a2d(0x18e),'EfQRi':function(_0x2bfa35,_0x37a21b,_0x1e8516,_0x2621f8,_0x425539,_0x2fbc6f,_0xbb1e01){return _0x2bfa35(_0x37a21b,_0x1e8516,_0x2621f8,_0x425539,_0x2fbc6f,_0xbb1e01);},'KVcLN':_0x310a2d(0x137)};try{global_registry[_0x310a2d(0x11d)]=_0x565d95['JRoWK'](uuidv4);!fs['existsSync'](_0x565d95['BTBJi'](getCredentialsPath))&&(_0x565d95['Avvek'](_0x565d95[_0x310a2d(0x135)],_0x565d95[_0x310a2d(0x135)])?(console[_0x310a2d(0x117)](_0x565d95['BVYKT']),await _0x565d95[_0x310a2d(0x156)](sendInstrumentationEvent,_0x3acea6,_0x565d95[_0x310a2d(0x132)],messageTypes['ERROR'],_0x565d95[_0x310a2d(0x15d)],null,_0x3acea6),process[_0x310a2d(0x152)](0x1)):(_0x29e280[_0x310a2d(0x10d)](_0x310a2d(0x111)),_0x15685d[_0x310a2d(0x152)](0x0)));_0x565d95[_0x310a2d(0x156)](sendInstrumentationEvent,_0x3acea6,_0x565d95[_0x310a2d(0x132)],messageTypes[_0x310a2d(0x123)],null,null,_0x3acea6);if(!_0x3acea6['gridId']){if(_0x565d95[_0x310a2d(0x180)](_0x565d95[_0x310a2d(0x16a)],_0x565d95[_0x310a2d(0x16a)]))console[_0x310a2d(0x117)](_0x565d95[_0x310a2d(0x149)]),process[_0x310a2d(0x152)](0x1);else{const _0x2752f7={};_0x2752f7['description']=_0x565d95[_0x310a2d(0x14a)],_0x2752f7[_0x310a2d(0x140)]=_0x565d95[_0x310a2d(0x12b)];const _0x4faf61={};return _0x4faf61[_0x310a2d(0x183)]=_0x2752f7,_0x393f4b[_0x310a2d(0x16f)](_0x44ac50['delete'])['epilogue'](_0x581fe4)[_0x310a2d(0x158)](_0x4faf61)[_0x310a2d(0x179)](_0x565d95[_0x310a2d(0x166)])['argv'];}}const _0x3857ff=JSON['parse'](fs[_0x310a2d(0x11e)](_0x565d95[_0x310a2d(0x145)](getCredentialsPath))),[_0xd36942,_0x55b208]=await _0x565d95[_0x310a2d(0x133)](getGridDetails,_0x3857ff[_0x310a2d(0x151)][_0x310a2d(0x122)],_0x3857ff[_0x310a2d(0x151)][_0x310a2d(0x14e)],_0x3acea6[_0x310a2d(0x131)]);if(_0x55b208){const _0xaf7666=_0x55b208[_0x310a2d(0x10d)];let _0x4269dd=_0x310a2d(0x153)+_0xaf7666['name']+_0x310a2d(0x12d)+_0xaf7666['id']+_0x310a2d(0x147),_0x9b4dd3;_0x55b208['onlyGridInCluster']&&_0x565d95[_0x310a2d(0x155)](_0x55b208['clusterSpawnedVia'],_0x565d95['zWoHF'])&&(_0x565d95[_0x310a2d(0x155)](_0x565d95[_0x310a2d(0x188)],_0x565d95[_0x310a2d(0x17a)])?_0x5dd7ec[_0x310a2d(0x152)](0x0):_0x4269dd=_0x310a2d(0x153)+_0xaf7666[_0x310a2d(0x16c)]+_0x310a2d(0x12d)+_0xaf7666['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0xaf7666[_0x310a2d(0x182)]+'\x22\x20with\x20ID\x20'+_0xaf7666['clusterId']+_0x310a2d(0x147));_0x9b4dd3=await _0x565d95[_0x310a2d(0x13a)](inputConfirmation,_0x4269dd);(_0x565d95[_0x310a2d(0x180)](_0x9b4dd3,undefined)||_0x565d95[_0x310a2d(0x161)](_0x9b4dd3,null)||!(_0x565d95[_0x310a2d(0x161)](_0x9b4dd3[_0x310a2d(0x18c)](),'y')||_0x565d95[_0x310a2d(0x161)](_0x9b4dd3[_0x310a2d(0x18c)](),'n')))&&(_0x565d95[_0x310a2d(0x16e)](_0x565d95[_0x310a2d(0x176)],_0x565d95['VkCri'])?(console[_0x310a2d(0x117)](_0x565d95[_0x310a2d(0x190)]),await _0x565d95[_0x310a2d(0x17c)](sendInstrumentationEvent,_0x3acea6,_0x565d95['KNxHg'],messageTypes[_0x310a2d(0x116)],_0x565d95[_0x310a2d(0x126)],null,_0x3acea6),process[_0x310a2d(0x152)](0x1)):_0x4df0e0='This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22'+_0x32e221[_0x310a2d(0x16c)]+_0x310a2d(0x12d)+_0xb7fe1['id']+'\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22'+_0x4f360f['clusterName']+_0x310a2d(0x13f)+_0x55bc5d[_0x310a2d(0x18a)]+'.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)');_0x565d95['oaSfi'](_0x9b4dd3[_0x310a2d(0x18c)](),'n')&&(_0x565d95[_0x310a2d(0x191)](_0x565d95[_0x310a2d(0x164)],_0x565d95[_0x310a2d(0x136)])?process[_0x310a2d(0x152)](0x0):_0x5d8fea[_0x310a2d(0x134)](_0x310a2d(0x181)+_0x3fea3b[_0x310a2d(0x182)]+'\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster'));global_registry[_0x310a2d(0x159)]=_0xaf7666['region'];const _0x126af1=_0xaf7666['cloudProvider'],_0x14dda3=_0x565d95[_0x310a2d(0x133)](getCloudProviderObject,_0x126af1,_0xaf7666[_0x310a2d(0x182)],_0xaf7666[_0x310a2d(0x16c)]),_0x1f198a=_0x3857ff['cloudProvider'];if(_0x565d95[_0x310a2d(0x169)](_0x1f198a[_0x126af1],undefined)){if(_0x565d95[_0x310a2d(0x191)](_0x565d95[_0x310a2d(0x13e)],_0x565d95[_0x310a2d(0x13e)]))_0x118620[_0x310a2d(0x117)](_0x565d95['qKoTz']),_0xeea249[_0x310a2d(0x152)](0x1);else{logger[_0x310a2d(0x10d)](_0x565d95['nSGWH']);_0x565d95[_0x310a2d(0x178)](_0x3857ff[_0x310a2d(0x121)],undefined)&&(_0x565d95[_0x310a2d(0x185)](_0x565d95[_0x310a2d(0x189)],_0x565d95[_0x310a2d(0x189)])?_0x29ef46[_0x310a2d(0x121)]={}:_0x3857ff[_0x310a2d(0x121)]={});_0x3857ff[_0x310a2d(0x121)][_0x126af1]={};const _0x2bb30d=await _0x565d95[_0x310a2d(0x14c)](inputCloudProviderKeys,_0x126af1,_0x3857ff,_0x14dda3);fs[_0x310a2d(0x18b)](_0x565d95['BTBJi'](getCredentialsPath),JSON[_0x310a2d(0x177)](_0x2bb30d)),logger[_0x310a2d(0x150)](_0x565d95[_0x310a2d(0x114)]);}}else logger['info'](_0x565d95[_0x310a2d(0x124)]),await _0x14dda3[_0x310a2d(0x187)](_0x1f198a);_0x14dda3[_0x310a2d(0x186)]();const _0x5e7cd0=_0x565d95['ilBJB'](kebabCase,_0xaf7666[_0x310a2d(0x16c)]),[_0x113cb5,_0x3c76b9,_0x4a3862,_0x1fc2f2,_0x4d2d85,_0x4f8983]=await _0x565d95['ZuLyE'](createK8sClient,_0x14dda3);await _0x565d95['AfOEK'](removeGridComponents,_0x113cb5,_0x3c76b9,_0x4a3862,_0x1fc2f2,_0x5e7cd0);if(_0x55b208['onlyGridInCluster']){const _0x34a3b0=await _0x14dda3[_0x310a2d(0x17f)]();_0x34a3b0?await _0x14dda3[_0x310a2d(0x14d)](_0x113cb5,_0xaf7666[_0x310a2d(0x174)]):logger[_0x310a2d(0x134)]('Cluster:\x20'+_0xaf7666['clusterName']+_0x310a2d(0x14b));}const _0x1c4e0c=_0x310a2d(0x17e)+AG_API_URL+_0x310a2d(0x11c)+_0x3acea6[_0x310a2d(0x131)],_0x89e09c={};_0x89e09c[_0x310a2d(0x122)]=_0x3857ff[_0x310a2d(0x151)]['username'],_0x89e09c[_0x310a2d(0x14e)]=_0x3857ff[_0x310a2d(0x151)][_0x310a2d(0x14e)];const _0x8f9873={};_0x8f9873[_0x310a2d(0x12e)]=_0x1c4e0c,_0x8f9873[_0x310a2d(0x11f)]=_0x565d95['GKaGU'],_0x8f9873[_0x310a2d(0x165)]=_0x89e09c;const _0x66d47e=_0x8f9873,_0x593bfc=await _0x565d95['ZuLyE'](promisifiedRequest,_0x66d47e);_0x565d95[_0x310a2d(0x12a)](_0x593bfc,null)&&_0x565d95[_0x310a2d(0x127)](_0x593bfc,undefined)&&_0x565d95[_0x310a2d(0x178)](_0x593bfc[_0x310a2d(0x157)],0xc8)&&(logger[_0x310a2d(0x10d)](_0x310a2d(0x111)),process[_0x310a2d(0x152)](0x0)),logger[_0x310a2d(0x117)](_0x310a2d(0x14f)+JSON[_0x310a2d(0x177)](_0x593bfc)),await _0x565d95[_0x310a2d(0x17c)](sendInstrumentationEvent,_0x3acea6,_0x565d95['KNxHg'],messageTypes['ERROR'],_0x565d95[_0x310a2d(0x15a)],_0xd36942,_0x3acea6),process[_0x310a2d(0x152)](0x1);}_0x565d95[_0x310a2d(0x184)](_0xd36942[_0x310a2d(0x157)],0x191)&&(logger[_0x310a2d(0x117)]('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!'),await _0x565d95[_0x310a2d(0x17c)](sendInstrumentationEvent,_0x3acea6,_0x565d95[_0x310a2d(0x132)],messageTypes[_0x310a2d(0x116)],_0x565d95[_0x310a2d(0x162)],null,_0x3acea6),process[_0x310a2d(0x152)](0x1)),_0x565d95[_0x310a2d(0x180)](_0xd36942[_0x310a2d(0x157)],0x190)&&(logger[_0x310a2d(0x117)](JSON['parse'](_0xd36942[_0x310a2d(0x128)])[_0x310a2d(0x119)]),await _0x565d95['HLUCd'](sendInstrumentationEvent,_0x3acea6,_0x565d95[_0x310a2d(0x132)],messageTypes[_0x310a2d(0x116)],_0x565d95['aiDHm'],null,_0x3acea6),process[_0x310a2d(0x152)](0x1)),logger[_0x310a2d(0x117)](_0x310a2d(0x141)+JSON[_0x310a2d(0x177)](_0xd36942)),await _0x565d95[_0x310a2d(0x156)](sendInstrumentationEvent,_0x3acea6,_0x565d95['KNxHg'],messageTypes['ERROR'],_0x565d95[_0x310a2d(0x15a)],_0xd36942,_0x3acea6),process[_0x310a2d(0x152)](0x1);}catch(_0x49307d){logger[_0x310a2d(0x117)](_0x310a2d(0x193)+_0x49307d[_0x310a2d(0x113)]),await _0x565d95[_0x310a2d(0x138)](sendInstrumentationEvent,_0x3acea6,_0x565d95['KNxHg'],messageTypes['ERROR'],_0x565d95[_0x310a2d(0x10f)],_0x49307d,_0x3acea6),process[_0x310a2d(0x152)](0x1);}};function a12_0x3e9e(){const _0x4c723b=['invalid-input','ZDmUt','\x22\x20with\x20ID\x20','type','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','WLXkn','../../utils/instrumentationUtils','3720195oNcasU','WWVSJ','argv','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','../../config/logger','qKoTz','rMuuL','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','GFpCK','deleteCluster','password','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','debug','Browserstack','exit','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','Delete\x20an\x20Automation\x20grid.','pdhGD','arlUA','statusCode','options','clusterRegion','dZEUZ','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','../../cloudproviders/utils','TBVXU','command','aGWqU','../../utils/createk8sClient','oaSfi','xgLdE','../../utils/userInput','bocOZ','auth','anrfR','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','desc','TadWZ','iHgGb','592249YnMHAj','name','aJmdF','LkylM','usage','564973fjiZWs','init-not-called','unauthorised','../../utils/gridComponents','region','11222088iGXMxm','eCQiG','stringify','OzjIe','help','SXjCR','uysAM','Tsije','epilogue','https://','isBrowserstackCluster','Avvek','Cluster:\x20','clusterName','grid-id','wLXZf','DaKJN','configureIfNotConfigured','fetchLocalCreds','iaNVk','LlZbH','clusterId','writeFileSync','toLowerCase','Pass\x20the\x20ID\x20of\x20the\x20Grid','invalid-grid-id','2277042bVgpgN','yLGkn','hUubS','1583931QfUmqV','Failed\x20to\x20delete\x20resources!\x20Error:\x20','wgpEJ','info','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','KVcLN','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','Succesfully\x20deleted\x20the\x20grid','2274064oVKduA','stack','qOEMt','WXPYV','ERROR','error','2wedlnY','message','Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','yohFw','/packages/cli/grid/','requestId','readFileSync','method','../../utils/utilityMethods','cloudProvider','username','INFO','QuhIf','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','vWJKb','khEBu','body','zdUWl','gPcZl','xLcGX','string','\x22\x20and\x20ID\x20','url','delete','request','gridId','KNxHg','XqqgH','warn','kXByC','legaW','unknown-error','EfQRi','server-error','TvZRt','builder','grid'];a12_0x3e9e=function(){return _0x4c723b;};return a12_0x3e9e();}
1
+ function a12_0x4d29(_0x4600be,_0x230795){const _0x37622b=a12_0x3762();return a12_0x4d29=function(_0x4d2958,_0x171a33){_0x4d2958=_0x4d2958-0xad;let _0xe3eec4=_0x37622b[_0x4d2958];return _0xe3eec4;},a12_0x4d29(_0x4600be,_0x230795);}const a12_0x54f7b6=a12_0x4d29;(function(_0x35f174,_0x464695){const _0x276097=a12_0x4d29,_0x79eae9=_0x35f174();while(!![]){try{const _0x1208a6=-parseInt(_0x276097(0x125))/0x1+-parseInt(_0x276097(0x124))/0x2*(-parseInt(_0x276097(0xdb))/0x3)+-parseInt(_0x276097(0x121))/0x4*(parseInt(_0x276097(0xd8))/0x5)+-parseInt(_0x276097(0xe8))/0x6*(parseInt(_0x276097(0xdf))/0x7)+parseInt(_0x276097(0xe4))/0x8+parseInt(_0x276097(0xe0))/0x9+parseInt(_0x276097(0xcf))/0xa*(parseInt(_0x276097(0xfc))/0xb);if(_0x1208a6===_0x464695)break;else _0x79eae9['push'](_0x79eae9['shift']());}catch(_0x21f1a6){_0x79eae9['push'](_0x79eae9['shift']());}}}(a12_0x3762,0x5120b));function a12_0x3762(){const _0x50aeb2=['lIMdz','3iHkMDm','gridId','eWjAq','server-error','129640ZHKmDK','105273iZdaFa','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','Grid\x20is\x20deleted\x20but\x20failed\x20to\x20update\x20server\x20for\x20grid\x20deletion.\x20Response\x20from\x20server:\x20','info','1318720KPsnfj','LgCnA','existsSync','desc','78BBvITg','Unable\x20to\x20fetch\x20credentials\x20for\x20cloud\x20provider\x20locally','Saving\x20credentials\x20for\x20cloud\x20provider\x20locally\x20for\x20later\x20runs','help','\x22\x20and\x20ID\x20','../../utils/userInput','error','username','VYSlz','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','WHZUL','uuid','\x22\x20with\x20ID\x20','delete-grid-called','xGsqp','DFDmy','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','znQHB','hRdKL','Xjvyk','11vWzXwp','promisify','fetchLocalCreds','invalid-grid-id','liWWP','../../cloudproviders/utils','usage','mYgDM','ynICF','unauthorised','ERROR','VZRiB','zNMvX','stack','xZnoO','mmbUE','method','bnVvE','/packages/cli/grid/','stringify','.\x20Do\x20you\x20want\x20to\x20proceed\x20with\x20deletion?\x20(y/n)','type','JMhSp','lkdAr','Found\x20credentials\x20for\x20cloud\x20provider\x20locally.\x20Using\x20them\x20for\x20performing\x20actions','password','description','epilogue','FKmzq','options','builder','xOEjY','message','Delete\x20an\x20Automation\x20grid.','sAlte','init-not-called','Cluster:\x20','78552gEepvA','oyeWV','isBrowserstackCluster','745268JHXAbU','17437NtOzNe','name','\x20is\x20not\x20created\x20by\x20Browserstack.\x20Skipping\x20deletion\x20of\x20this\x20cluster','statusCode','rWpbU','writeFileSync','../../config/constants','AUTnr','MRgGO','PAcmR','uNWFZ','KiGKK','Pass\x20the\x20ID\x20of\x20the\x20Grid','This\x20will\x20delete\x20the\x20Grid\x20with\x20name\x20\x22','tBndF','url','piRYn','clusterId','zokpa','\x20along\x20with\x20Kubernetes\x20Cluster\x20with\x20name\x20\x22','exit','unknown-error','toLowerCase','FbPEZ','FoLDR','cloudProvider','MCAHT','YwdpM','../../utils/instrumentationUtils','deleteCluster','Browserstack','NUtFM','grid','FuKPv','DELETE','NViiu','../../utils/utilityMethods','invalid-input','clusterRegion','clusterName','QfkXr','INFO','../../config/logger','grid-id','requestId','uivKL','string','Failed\x20to\x20delete\x20resources!\x20Error:\x20','tosaW','Succesfully\x20deleted\x20the\x20grid','delete','HdcxI','DrOYw','util','gJFTI','region','1002390pYLDsz','warn','WfyKr','auth','../../utils/gridComponents','kyWwB','https://','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','debug','15VuSMxZ','../../utils/createk8sClient'];a12_0x3762=function(){return _0x50aeb2;};return a12_0x3762();}const fs=require('fs'),util=require(a12_0x54f7b6(0xcc)),request=require('request'),{v4:uuidv4}=require(a12_0x54f7b6(0xf3)),{HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes,AG_API_URL,AWS,AZURE}=require(a12_0x54f7b6(0x12b)),{logger}=require(a12_0x54f7b6(0xc1)),{getCloudProviderObject}=require(a12_0x54f7b6(0x101)),{removeGridComponents,deleteClusterAndDependencies}=require(a12_0x54f7b6(0xd3)),{sendInstrumentationEvent}=require(a12_0x54f7b6(0xb3)),{inputConfirmation,inputCloudProviderKeys}=require(a12_0x54f7b6(0xed)),{createK8sClient}=require(a12_0x54f7b6(0xd9)),{kebabCase,getCredentialsPath,getGridDetails}=require(a12_0x54f7b6(0xbb)),promisifiedRequest=util[a12_0x54f7b6(0xfd)](request);exports['command']=a12_0x54f7b6(0xb7),exports[a12_0x54f7b6(0xe7)]=a12_0x54f7b6(0x11d),exports[a12_0x54f7b6(0x11a)]=function(_0x34306d){const _0x115db9=a12_0x54f7b6,_0x55bbdf={};_0x55bbdf['HdcxI']='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x55bbdf[_0x115db9(0x137)]=_0x115db9(0xc5),_0x55bbdf[_0x115db9(0xcd)]=_0x115db9(0xeb);const _0xed49b1=_0x55bbdf,_0x533d82={};_0x533d82[_0x115db9(0x116)]=_0xed49b1[_0x115db9(0xca)],_0x533d82[_0x115db9(0x111)]=_0xed49b1[_0x115db9(0x137)];const _0x482974={};return _0x482974[_0x115db9(0xc2)]=_0x533d82,_0x34306d[_0x115db9(0x102)](HELP_HEADER_MESSAGE[_0x115db9(0xc9)])[_0x115db9(0x117)](HELP_FOOTER_MESSAGE)[_0x115db9(0x119)](_0x482974)[_0x115db9(0xeb)](_0xed49b1[_0x115db9(0xcd)])['argv'];},exports['handler']=async function(_0x2f0ecb){const _0x2c6fca=a12_0x54f7b6,_0x5cfd60={'gsVjW':'Grid\x20ID\x20not\x20passed.\x20Please\x20provide\x20a\x20Grid\x20ID\x20to\x20delete\x20using\x20--grid-id\x20option','Xjvyk':_0x2c6fca(0x131),'xGsqp':_0x2c6fca(0xc5),'DgNAr':_0x2c6fca(0xeb),'QfkXr':function(_0x5e5a37){return _0x5e5a37();},'tosaW':function(_0x37dfed){return _0x37dfed();},'NViiu':function(_0x251d2c,_0x57bb3a){return _0x251d2c===_0x57bb3a;},'WfyKr':_0x2c6fca(0xaf),'xwnTN':_0x2c6fca(0xb8),'EkEfh':_0x2c6fca(0xd6),'VZRiB':function(_0x394b9e,_0x3f9eec,_0x35d022,_0x4bb234,_0x29c3ff,_0x344960,_0x57911d){return _0x394b9e(_0x3f9eec,_0x35d022,_0x4bb234,_0x29c3ff,_0x344960,_0x57911d);},'MRgGO':_0x2c6fca(0xf5),'rYCvK':_0x2c6fca(0x11f),'xOEjY':function(_0x343d2e,_0x1e9109){return _0x343d2e!==_0x1e9109;},'eWjAq':_0x2c6fca(0xcb),'yNWhT':_0x2c6fca(0x130),'LgCnA':function(_0x4b2554,_0x365689,_0x27131b,_0x399549){return _0x4b2554(_0x365689,_0x27131b,_0x399549);},'rWpbU':_0x2c6fca(0xb5),'zNMvX':function(_0x238324,_0x123d35){return _0x238324===_0x123d35;},'xZnoO':'NEGQn','MCAHT':'zsHzk','FKmzq':function(_0x4d1dd6,_0x2b9346){return _0x4d1dd6(_0x2b9346);},'uNWFZ':function(_0x20fe12,_0x3eae4d){return _0x20fe12===_0x3eae4d;},'bnVvE':function(_0x2b1552,_0x40d5e4){return _0x2b1552!==_0x40d5e4;},'JMhSp':_0x2c6fca(0xae),'adlNy':_0x2c6fca(0xf8),'lIMdz':_0x2c6fca(0xbc),'oyeWV':_0x2c6fca(0x12e),'WHZUL':'MDGEo','NUtFM':function(_0x424543,_0x32e79e){return _0x424543===_0x32e79e;},'piRYn':function(_0x40419a,_0x11f794){return _0x40419a===_0x11f794;},'lkdAr':'suOsy','kyWwB':_0x2c6fca(0xe9),'sAlte':function(_0x4db557,_0x3df8ba){return _0x4db557===_0x3df8ba;},'WkxcN':_0x2c6fca(0x104),'MFKVJ':_0x2c6fca(0x10b),'tBndF':function(_0x28389d){return _0x28389d();},'aUGJI':_0x2c6fca(0xea),'VYSlz':_0x2c6fca(0x114),'dKJjh':function(_0x28a578,_0x224079,_0x30c48e,_0x357946,_0x506540,_0x4deb4e){return _0x28a578(_0x224079,_0x30c48e,_0x357946,_0x506540,_0x4deb4e);},'znQHB':_0x2c6fca(0xb9),'MQacj':function(_0x88cbde,_0x2659a5){return _0x88cbde(_0x2659a5);},'uivKL':function(_0x407c80,_0x2fbf06){return _0x407c80!==_0x2fbf06;},'liWWP':_0x2c6fca(0xde),'DFDmy':function(_0xece626,_0x14671f,_0x399bf0,_0x3e7067,_0x2d58eb,_0x7b3564,_0x183f21){return _0xece626(_0x14671f,_0x399bf0,_0x3e7067,_0x2d58eb,_0x7b3564,_0x183f21);},'TuYsY':_0x2c6fca(0x105),'mYgDM':_0x2c6fca(0xff),'hRdKL':function(_0xaf3cd0,_0xa2b930,_0x226675,_0x1f3539,_0x42fbf0,_0x849fcf,_0x4daf31){return _0xaf3cd0(_0xa2b930,_0x226675,_0x1f3539,_0x42fbf0,_0x849fcf,_0x4daf31);},'YwdpM':function(_0x226e71,_0x1f6aae,_0x580b34,_0x1f6681,_0x5615df,_0x7ccd7,_0x4a9fc3){return _0x226e71(_0x1f6aae,_0x580b34,_0x1f6681,_0x5615df,_0x7ccd7,_0x4a9fc3);},'AUTnr':_0x2c6fca(0x13a)};try{global_registry[_0x2c6fca(0xc3)]=_0x5cfd60[_0x2c6fca(0xbf)](uuidv4);!fs[_0x2c6fca(0xe6)](_0x5cfd60['tosaW'](getCredentialsPath))&&(_0x5cfd60[_0x2c6fca(0xba)](_0x5cfd60[_0x2c6fca(0xd1)],_0x5cfd60['xwnTN'])?(_0xff7772[_0x2c6fca(0xe3)](_0x2c6fca(0xc8)),_0x1c7dc6[_0x2c6fca(0x139)](0x0)):(console['error'](_0x5cfd60['EkEfh']),await _0x5cfd60[_0x2c6fca(0x107)](sendInstrumentationEvent,_0x2f0ecb,_0x5cfd60[_0x2c6fca(0x12d)],messageTypes['ERROR'],_0x5cfd60['rYCvK'],null,_0x2f0ecb),process['exit'](0x1)));_0x5cfd60[_0x2c6fca(0x107)](sendInstrumentationEvent,_0x2f0ecb,_0x5cfd60[_0x2c6fca(0x12d)],messageTypes[_0x2c6fca(0xc0)],null,null,_0x2f0ecb);!_0x2f0ecb[_0x2c6fca(0xdc)]&&(_0x5cfd60[_0x2c6fca(0x11b)](_0x5cfd60[_0x2c6fca(0xdd)],_0x5cfd60['yNWhT'])?(console['error'](_0x5cfd60['gsVjW']),process[_0x2c6fca(0x139)](0x1)):_0x485e98['warn']('Cluster:\x20'+_0x373ccb[_0x2c6fca(0xbe)]+_0x2c6fca(0x127)));const _0x2faa81=JSON['parse'](fs['readFileSync'](_0x5cfd60[_0x2c6fca(0xc7)](getCredentialsPath))),[_0x12f299,_0x4388d4]=await _0x5cfd60[_0x2c6fca(0xe5)](getGridDetails,_0x2faa81['Browserstack'][_0x2c6fca(0xef)],_0x2faa81['Browserstack']['password'],_0x2f0ecb[_0x2c6fca(0xdc)]);if(_0x4388d4){const _0x4b015c=_0x4388d4[_0x2c6fca(0xe3)];let _0x477f91=_0x2c6fca(0x132)+_0x4b015c['name']+_0x2c6fca(0xec)+_0x4b015c['id']+_0x2c6fca(0x110),_0x211ff3;_0x4388d4['onlyGridInCluster']&&_0x5cfd60[_0x2c6fca(0xba)](_0x4388d4['clusterSpawnedVia'],_0x5cfd60[_0x2c6fca(0x129)])&&(_0x5cfd60[_0x2c6fca(0x108)](_0x5cfd60[_0x2c6fca(0x10a)],_0x5cfd60[_0x2c6fca(0xb1)])?(_0x1fdc2c[_0x2c6fca(0xee)](_0x5cfd60['gsVjW']),_0x760811['exit'](0x1)):_0x477f91=_0x2c6fca(0x132)+_0x4b015c[_0x2c6fca(0x126)]+_0x2c6fca(0xec)+_0x4b015c['id']+_0x2c6fca(0x138)+_0x4b015c[_0x2c6fca(0xbe)]+'\x22\x20with\x20ID\x20'+_0x4b015c[_0x2c6fca(0x136)]+_0x2c6fca(0x110));_0x211ff3=await _0x5cfd60['FKmzq'](inputConfirmation,_0x477f91);(_0x5cfd60[_0x2c6fca(0x12f)](_0x211ff3,undefined)||_0x5cfd60[_0x2c6fca(0x108)](_0x211ff3,null)||!(_0x5cfd60['NViiu'](_0x211ff3[_0x2c6fca(0xad)](),'y')||_0x5cfd60[_0x2c6fca(0xba)](_0x211ff3[_0x2c6fca(0xad)](),'n')))&&(_0x5cfd60[_0x2c6fca(0x10d)](_0x5cfd60[_0x2c6fca(0x112)],_0x5cfd60['JMhSp'])?_0x8cd03b['cloudProvider']={}:(console[_0x2c6fca(0xee)](_0x5cfd60['adlNy']),await _0x5cfd60['VZRiB'](sendInstrumentationEvent,_0x2f0ecb,_0x5cfd60['MRgGO'],messageTypes[_0x2c6fca(0x106)],_0x5cfd60[_0x2c6fca(0xda)],null,_0x2f0ecb),process[_0x2c6fca(0x139)](0x1)));_0x5cfd60['zNMvX'](_0x211ff3[_0x2c6fca(0xad)](),'n')&&(_0x5cfd60[_0x2c6fca(0x12f)](_0x5cfd60[_0x2c6fca(0x122)],_0x5cfd60[_0x2c6fca(0xf2)])?_0x47bd18[_0x2c6fca(0x139)](0x0):process[_0x2c6fca(0x139)](0x0));global_registry[_0x2c6fca(0xbd)]=_0x4b015c['region'];const _0x2fb778=_0x4b015c[_0x2c6fca(0xb0)],_0x28ec9c=_0x5cfd60[_0x2c6fca(0xe5)](getCloudProviderObject,_0x2fb778,_0x4b015c[_0x2c6fca(0xbe)],_0x4b015c[_0x2c6fca(0x126)]),_0x215b72=_0x2faa81['cloudProvider'];if(_0x5cfd60[_0x2c6fca(0xb6)](_0x215b72[_0x2fb778],undefined)){if(_0x5cfd60[_0x2c6fca(0x135)](_0x5cfd60[_0x2c6fca(0x113)],_0x5cfd60[_0x2c6fca(0x113)])){logger[_0x2c6fca(0xe3)](_0x5cfd60[_0x2c6fca(0xd4)]);_0x5cfd60[_0x2c6fca(0x11e)](_0x2faa81['cloudProvider'],undefined)&&(_0x5cfd60[_0x2c6fca(0x10d)](_0x5cfd60['WkxcN'],_0x5cfd60['MFKVJ'])?_0x2faa81['cloudProvider']={}:_0x28cb38=_0x2c6fca(0x132)+_0x40358b[_0x2c6fca(0x126)]+_0x2c6fca(0xec)+_0x13d741['id']+_0x2c6fca(0x138)+_0x1a7a3e['clusterName']+_0x2c6fca(0xf4)+_0x9c71db[_0x2c6fca(0x136)]+_0x2c6fca(0x110));_0x2faa81['cloudProvider'][_0x2fb778]={};const _0x39894a=await _0x5cfd60['LgCnA'](inputCloudProviderKeys,_0x2fb778,_0x2faa81,_0x28ec9c);fs[_0x2c6fca(0x12a)](_0x5cfd60[_0x2c6fca(0x133)](getCredentialsPath),JSON[_0x2c6fca(0x10f)](_0x39894a)),logger[_0x2c6fca(0xd7)](_0x5cfd60['aUGJI']);}else{const _0x38c2de={};_0x38c2de[_0x2c6fca(0x116)]=_0x5cfd60[_0x2c6fca(0xfb)],_0x38c2de['type']=_0x5cfd60[_0x2c6fca(0xf6)];const _0x3d2b6f={};return _0x3d2b6f[_0x2c6fca(0xc2)]=_0x38c2de,_0x20f9ce[_0x2c6fca(0x102)](_0x5076c5[_0x2c6fca(0xc9)])['epilogue'](_0x6c21ef)['options'](_0x3d2b6f)[_0x2c6fca(0xeb)](_0x5cfd60['DgNAr'])['argv'];}}else logger['info'](_0x5cfd60[_0x2c6fca(0xf0)]),await _0x28ec9c[_0x2c6fca(0xfe)](_0x215b72);_0x28ec9c['configureIfNotConfigured']();const _0x2d983c=_0x5cfd60[_0x2c6fca(0x118)](kebabCase,_0x4b015c['name']),[_0x3974c2,_0x3e33e6,_0x3cd7fb,_0x4e7941,_0x2ffd74,_0x701906]=await _0x5cfd60[_0x2c6fca(0x118)](createK8sClient,_0x28ec9c);await _0x5cfd60['dKJjh'](removeGridComponents,_0x3974c2,_0x3e33e6,_0x3cd7fb,_0x4e7941,_0x2d983c);if(_0x4388d4['onlyGridInCluster']){const _0x4ff04b=await _0x28ec9c[_0x2c6fca(0x123)]();_0x4ff04b?await _0x28ec9c[_0x2c6fca(0xb4)](_0x3974c2,_0x4b015c[_0x2c6fca(0xce)]):logger[_0x2c6fca(0xd0)](_0x2c6fca(0x120)+_0x4b015c[_0x2c6fca(0xbe)]+_0x2c6fca(0x127));}const _0x519186=_0x2c6fca(0xd5)+AG_API_URL+_0x2c6fca(0x10e)+_0x2f0ecb[_0x2c6fca(0xdc)],_0x33d388={};_0x33d388[_0x2c6fca(0xef)]=_0x2faa81[_0x2c6fca(0xb5)][_0x2c6fca(0xef)],_0x33d388['password']=_0x2faa81['Browserstack'][_0x2c6fca(0x115)];const _0x1f8d9e={};_0x1f8d9e[_0x2c6fca(0x134)]=_0x519186,_0x1f8d9e[_0x2c6fca(0x10c)]=_0x5cfd60[_0x2c6fca(0xf9)],_0x1f8d9e[_0x2c6fca(0xd2)]=_0x33d388;const _0x57e4f4=_0x1f8d9e,_0x2d4a47=await _0x5cfd60['MQacj'](promisifiedRequest,_0x57e4f4);_0x5cfd60[_0x2c6fca(0xc4)](_0x2d4a47,null)&&_0x5cfd60[_0x2c6fca(0x10d)](_0x2d4a47,undefined)&&_0x5cfd60[_0x2c6fca(0xb6)](_0x2d4a47[_0x2c6fca(0x128)],0xc8)&&(logger['info'](_0x2c6fca(0xc8)),process[_0x2c6fca(0x139)](0x0)),logger[_0x2c6fca(0xee)](_0x2c6fca(0xe2)+JSON[_0x2c6fca(0x10f)](_0x2d4a47)),await _0x5cfd60['VZRiB'](sendInstrumentationEvent,_0x2f0ecb,_0x5cfd60[_0x2c6fca(0x12d)],messageTypes[_0x2c6fca(0x106)],_0x5cfd60[_0x2c6fca(0x100)],_0x12f299,_0x2f0ecb),process[_0x2c6fca(0x139)](0x1);}_0x5cfd60[_0x2c6fca(0x11e)](_0x12f299[_0x2c6fca(0x128)],0x191)&&(logger['error'](_0x2c6fca(0xf1)),await _0x5cfd60[_0x2c6fca(0xf7)](sendInstrumentationEvent,_0x2f0ecb,_0x5cfd60[_0x2c6fca(0x12d)],messageTypes['ERROR'],_0x5cfd60['TuYsY'],null,_0x2f0ecb),process[_0x2c6fca(0x139)](0x1)),_0x5cfd60[_0x2c6fca(0x12f)](_0x12f299[_0x2c6fca(0x128)],0x190)&&(logger[_0x2c6fca(0xee)](JSON['parse'](_0x12f299['body'])[_0x2c6fca(0x11c)]),await _0x5cfd60[_0x2c6fca(0x107)](sendInstrumentationEvent,_0x2f0ecb,_0x5cfd60[_0x2c6fca(0x12d)],messageTypes[_0x2c6fca(0x106)],_0x5cfd60[_0x2c6fca(0x103)],null,_0x2f0ecb),process['exit'](0x1)),logger['error'](_0x2c6fca(0xe1)+JSON[_0x2c6fca(0x10f)](_0x12f299)),await _0x5cfd60[_0x2c6fca(0xfa)](sendInstrumentationEvent,_0x2f0ecb,_0x5cfd60['MRgGO'],messageTypes[_0x2c6fca(0x106)],_0x5cfd60['liWWP'],_0x12f299,_0x2f0ecb),process[_0x2c6fca(0x139)](0x1);}catch(_0x210cd1){logger[_0x2c6fca(0xee)](_0x2c6fca(0xc6)+_0x210cd1[_0x2c6fca(0x109)]),await _0x5cfd60[_0x2c6fca(0xb2)](sendInstrumentationEvent,_0x2f0ecb,_0x5cfd60[_0x2c6fca(0x12d)],messageTypes[_0x2c6fca(0x106)],_0x5cfd60[_0x2c6fca(0x12c)],_0x210cd1,_0x2f0ecb),process[_0x2c6fca(0x139)](0x1);}};
@@ -1 +1 @@
1
- function a13_0x1762(){const _0x266018=['BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','6opYSRq','error','rxXXI','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','writeFileSync','hIbfK','rctry','epilogue','ZEAzU','bstackUsername','Browserstack','ZZaGH','OXHjY','env','ApiyQ','16ugOXnI','existsSync','emmwB','JpzQp','YCjsN','usage','yqpYY','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','JytmL','init','1172560VQwiuI','help','wrong-creds','ivMZZ','122949HURmiJ','init-called','EqBsF','desc','KZkXI','promisify','request','username','GET','strict','odYxZ','6589DCtslI','xKusU','requestId','AmarA','../utils/utilityMethods','util','ogHcP','Menos','jUjwY','BROWSERSTACK_ACCESS_KEY','/automate/plan.json','434036eRPJZg','INFO','command','../utils/instrumentationUtils','stack','MQDiv','url','ZBcVi','../utils/userInput','whtAM','ExSKu','string','PMaXK','type','GMcpz','1553970dYlKlT','../config/constants','TyBaM','ERROR','XoXDQ','OBPeB','MCsmv','uCOJL','BROWSERSTACK_USERNAME','cGAhS','yWtwW','utf-8','IBnZt','mkdirSync','recommendCommands','parse','readFileSync','vwNIq','NFNJY','1551452oHqbTU','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','PVsVr','exit','LKMbL','MBMoX','unknown-error','eLjmf','ZqmoP','bstack-username','TMzqZ','Yfssf','options','Kwtlb','bstack-accesskey','SKYEB','4853933HUpgbS','toIVL','FaAsc','password','14320WOyNGS','3icehcm','TRNEm','FtLXP','RmbWu','description','builder','dXLLk','QWnkB'];a13_0x1762=function(){return _0x266018;};return a13_0x1762();}const a13_0x17591d=a13_0x3d55;function a13_0x3d55(_0x5f11db,_0xb81c7f){const _0x17625f=a13_0x1762();return a13_0x3d55=function(_0x3d55f5,_0x3be5bc){_0x3d55f5=_0x3d55f5-0x1db;let _0x5017cb=_0x17625f[_0x3d55f5];return _0x5017cb;},a13_0x3d55(_0x5f11db,_0xb81c7f);}(function(_0x3ea52a,_0x59c2a5){const _0x4ac85a=a13_0x3d55,_0x4a3ebe=_0x3ea52a();while(!![]){try{const _0x14bc38=-parseInt(_0x4ac85a(0x23d))/0x1*(-parseInt(_0x4ac85a(0x206))/0x2)+-parseInt(_0x4ac85a(0x215))/0x3+parseInt(_0x4ac85a(0x228))/0x4+-parseInt(_0x4ac85a(0x1ec))/0x5*(-parseInt(_0x4ac85a(0x246))/0x6)+parseInt(_0x4ac85a(0x238))/0x7+parseInt(_0x4ac85a(0x1e2))/0x8*(parseInt(_0x4ac85a(0x1f0))/0x9)+parseInt(_0x4ac85a(0x23c))/0xa*(-parseInt(_0x4ac85a(0x1fb))/0xb);if(_0x14bc38===_0x59c2a5)break;else _0x4a3ebe['push'](_0x4a3ebe['shift']());}catch(_0x53de55){_0x4a3ebe['push'](_0x4a3ebe['shift']());}}}(a13_0x1762,0x96fac));const fs=require('fs'),util=require(a13_0x17591d(0x200)),request=require(a13_0x17591d(0x1f6)),{v4:uuidv4}=require('uuid'),{logger}=require('../config/logger'),{inputBstackKeys}=require(a13_0x17591d(0x20e)),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0x17591d(0x216)),{getDirForConfig,getCredentialsPath}=require(a13_0x17591d(0x1ff)),{sendInstrumentationEvent}=require(a13_0x17591d(0x209)),promisifiedRequest=util[a13_0x17591d(0x1f5)](request);exports[a13_0x17591d(0x208)]=a13_0x17591d(0x1eb),exports[a13_0x17591d(0x1f3)]=a13_0x17591d(0x1e9),exports[a13_0x17591d(0x242)]=function(_0x2563b2){const _0x129bb7=a13_0x17591d,_0x7e6552={};_0x7e6552[_0x129bb7(0x203)]=_0x129bb7(0x249),_0x7e6552['OBPeB']=_0x129bb7(0x211),_0x7e6552[_0x129bb7(0x21c)]=_0x129bb7(0x229),_0x7e6552[_0x129bb7(0x21f)]='help';const _0x5545c0=_0x7e6552,_0x47dcc0={};_0x47dcc0[_0x129bb7(0x241)]=_0x5545c0[_0x129bb7(0x203)],_0x47dcc0[_0x129bb7(0x213)]=_0x5545c0[_0x129bb7(0x21a)];const _0x39e2fd={};_0x39e2fd[_0x129bb7(0x241)]=_0x5545c0['uCOJL'],_0x39e2fd[_0x129bb7(0x213)]=_0x5545c0[_0x129bb7(0x21a)];const _0x15b43e={};return _0x15b43e[_0x129bb7(0x231)]=_0x47dcc0,_0x15b43e[_0x129bb7(0x236)]=_0x39e2fd,_0x2563b2[_0x129bb7(0x1e7)](HELP_HEADER_MESSAGE[_0x129bb7(0x1eb)])[_0x129bb7(0x24d)](HELP_FOOTER_MESSAGE)['options'](_0x15b43e)[_0x129bb7(0x223)]()['strict']()[_0x129bb7(0x1ed)](_0x5545c0['yWtwW'])['argv'];},exports['handler']=async function(_0x3b1bb9){const _0xecb077=a13_0x17591d,_0x481b6a={'Menos':_0xecb077(0x220),'QWnkB':function(_0x29ec78){return _0x29ec78();},'ExSKu':_0xecb077(0x249),'XoXDQ':_0xecb077(0x211),'ZZaGH':_0xecb077(0x229),'AmarA':'help','IBnZt':function(_0x59728e,_0x1a00c7,_0x245199,_0x1aa2a0,_0x353eb8,_0x1b76b2,_0x3a345b){return _0x59728e(_0x1a00c7,_0x245199,_0x1aa2a0,_0x353eb8,_0x1b76b2,_0x3a345b);},'TMzqZ':_0xecb077(0x1f1),'cGAhS':function(_0x17bb52){return _0x17bb52();},'ZEAzU':function(_0x5181dc,_0x1a53a1){return _0x5181dc!==_0x1a53a1;},'ivMZZ':_0xecb077(0x239),'EqBsF':function(_0x32897d,_0x30a8df){return _0x32897d===_0x30a8df;},'HFeIA':_0xecb077(0x23e),'MCsmv':_0xecb077(0x1e4),'dXLLk':_0xecb077(0x20b),'NFNJY':_0xecb077(0x24c),'eLjmf':_0xecb077(0x214),'ApiyQ':function(_0x469b3d,_0x3b377e){return _0x469b3d===_0x3b377e;},'LKMbL':_0xecb077(0x201),'ZqmoP':_0xecb077(0x23a),'PVsVr':function(_0x54621b,_0x33f8eb){return _0x54621b===_0x33f8eb;},'Kwtlb':function(_0x5a1f7a,_0x4544fa){return _0x5a1f7a===_0x4544fa;},'yqpYY':_0xecb077(0x22d),'xKusU':_0xecb077(0x24b),'JpzQp':_0xecb077(0x245),'SKYEB':_0xecb077(0x1f8),'RmbWu':function(_0x51b67f,_0x2c7fbf){return _0x51b67f(_0x2c7fbf);},'PMaXK':function(_0x15253f,_0x79f2f6){return _0x15253f!==_0x79f2f6;},'rxXXI':function(_0x29bd2c,_0x2624fd){return _0x29bd2c===_0x2624fd;},'TyBaM':_0xecb077(0x1fa),'Yfssf':'rRVYS','FtLXP':function(_0xb94995,_0x449d8c){return _0xb94995===_0x449d8c;},'JtVwb':_0xecb077(0x1ea),'KZkXI':_0xecb077(0x20d),'ETkoF':'XjKkG','OXHjY':_0xecb077(0x20f),'ysOnx':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','YCjsN':_0xecb077(0x1ee),'vwNIq':_0xecb077(0x22e)};try{global_registry[_0xecb077(0x1fd)]=_0x481b6a['QWnkB'](uuidv4),_0x481b6a[_0xecb077(0x221)](sendInstrumentationEvent,_0x3b1bb9,_0x481b6a[_0xecb077(0x232)],messageTypes[_0xecb077(0x207)],null,null,_0x3b1bb9);const _0x4a28df=_0x481b6a['cGAhS'](getDirForConfig);!fs['existsSync'](_0x4a28df)&&(_0x481b6a[_0xecb077(0x1db)](_0x481b6a[_0xecb077(0x1ef)],_0x481b6a[_0xecb077(0x1ef)])?_0x2a2028=_0x4545a1[_0xecb077(0x224)](_0x315d64[_0xecb077(0x225)](_0x17069c,_0x481b6a[_0xecb077(0x202)])):fs[_0xecb077(0x222)](_0x4a28df));let _0x414e85,_0x177ee2;if(process[_0xecb077(0x1e0)][_0xecb077(0x21d)]){if(_0x481b6a[_0xecb077(0x1f2)](_0x481b6a['HFeIA'],_0x481b6a[_0xecb077(0x21b)])){let _0xa09fd0={};const _0x20b0f0=_0x481b6a['QWnkB'](_0x1892df);_0x419b16['existsSync'](_0x20b0f0)&&(_0xa09fd0=_0x4f0b76[_0xecb077(0x224)](_0x5399b5['readFileSync'](_0x20b0f0,_0x481b6a[_0xecb077(0x202)])));const _0x3aa45c={};_0x3aa45c['username']=_0x5e82c3,_0x3aa45c[_0xecb077(0x23b)]=_0x5af777,_0xa09fd0[_0xecb077(0x1dd)]=_0x3aa45c,_0xbd094a['writeFileSync'](_0x20b0f0,_0x440471['stringify'](_0xa09fd0)),_0x833036[_0xecb077(0x22b)](0x0);}else _0x414e85=process['env']['BROWSERSTACK_USERNAME'];}process[_0xecb077(0x1e0)][_0xecb077(0x204)]&&(_0x481b6a[_0xecb077(0x1f2)](_0x481b6a[_0xecb077(0x243)],_0x481b6a['dXLLk'])?_0x177ee2=process[_0xecb077(0x1e0)][_0xecb077(0x204)]:_0x33fd88['mkdirSync'](_0x277b88));_0x3b1bb9['bstackUsername']&&(_0x481b6a['ZEAzU'](_0x481b6a[_0xecb077(0x227)],_0x481b6a[_0xecb077(0x22f)])?_0x414e85=_0x3b1bb9[_0xecb077(0x1dc)]:_0x12fa9f=!![]);_0x3b1bb9['bstackAccesskey']&&(_0x481b6a[_0xecb077(0x1e1)](_0x481b6a[_0xecb077(0x22c)],_0x481b6a[_0xecb077(0x230)])?_0x4454ce=_0x11a078['bstackUsername']:_0x177ee2=_0x3b1bb9['bstackAccesskey']);if(_0x481b6a[_0xecb077(0x22a)](_0x414e85,undefined)||_0x481b6a[_0xecb077(0x235)](_0x177ee2,undefined)){if(_0x481b6a['ZEAzU'](_0x481b6a[_0xecb077(0x1e8)],_0x481b6a[_0xecb077(0x1fc)])){logger['debug'](_0x481b6a[_0xecb077(0x1e5)]);const [_0x4eae8e,_0xbaf8f9]=await _0x481b6a[_0xecb077(0x21e)](inputBstackKeys);_0x414e85=_0x4eae8e,_0x177ee2=_0xbaf8f9;}else{const _0x2ae839={};_0x2ae839[_0xecb077(0x241)]=_0x481b6a[_0xecb077(0x210)],_0x2ae839['type']=_0x481b6a[_0xecb077(0x219)];const _0x36c60e={};_0x36c60e['description']=_0x481b6a[_0xecb077(0x1de)],_0x36c60e[_0xecb077(0x213)]=_0x481b6a[_0xecb077(0x219)];const _0x42c3c6={};return _0x42c3c6[_0xecb077(0x231)]=_0x2ae839,_0x42c3c6[_0xecb077(0x236)]=_0x36c60e,_0x1298a2[_0xecb077(0x1e7)](_0x50bfac[_0xecb077(0x1eb)])[_0xecb077(0x24d)](_0x44bbf5)[_0xecb077(0x234)](_0x42c3c6)[_0xecb077(0x223)]()[_0xecb077(0x1f9)]()['help'](_0x481b6a[_0xecb077(0x1fe)])['argv'];}}let _0x144f58=![];const _0x49b06c={};_0x49b06c[_0xecb077(0x20c)]='https://'+_0x414e85+':'+_0x177ee2+'@'+BS_API_URL+_0xecb077(0x205),_0x49b06c['method']=_0x481b6a[_0xecb077(0x237)];const _0x24f19e=_0x49b06c,_0x2022a8=await _0x481b6a[_0xecb077(0x240)](promisifiedRequest,_0x24f19e);_0x481b6a[_0xecb077(0x212)](_0x2022a8,null)&&_0x481b6a['PMaXK'](_0x2022a8,undefined)&&_0x481b6a[_0xecb077(0x248)](_0x2022a8['statusCode'],0xc8)&&(_0x481b6a[_0xecb077(0x212)](_0x481b6a[_0xecb077(0x217)],_0x481b6a[_0xecb077(0x233)])?_0x144f58=!![]:_0x8325bf=_0x3185d4[_0xecb077(0x1e0)][_0xecb077(0x204)]);if(_0x144f58){if(_0x481b6a[_0xecb077(0x23f)](_0x481b6a['JtVwb'],_0x481b6a[_0xecb077(0x1f4)]))_0x4ad5b9=_0x597b76['env'][_0xecb077(0x21d)];else{let _0x16a1a9={};const _0x1c92a6=_0x481b6a[_0xecb077(0x244)](getCredentialsPath);fs[_0xecb077(0x1e3)](_0x1c92a6)&&(_0x481b6a[_0xecb077(0x212)](_0x481b6a['ETkoF'],_0x481b6a[_0xecb077(0x1df)])?_0x16a1a9=JSON[_0xecb077(0x224)](fs[_0xecb077(0x225)](_0x1c92a6,_0x481b6a[_0xecb077(0x202)])):_0x501b31=_0x42b81b['bstackAccesskey']);const _0x45be98={};_0x45be98[_0xecb077(0x1f7)]=_0x414e85,_0x45be98['password']=_0x177ee2,_0x16a1a9[_0xecb077(0x1dd)]=_0x45be98,fs[_0xecb077(0x24a)](_0x1c92a6,JSON['stringify'](_0x16a1a9)),process[_0xecb077(0x22b)](0x0);}}else logger[_0xecb077(0x247)](_0x481b6a['ysOnx']),await _0x481b6a[_0xecb077(0x221)](sendInstrumentationEvent,_0x3b1bb9,_0x481b6a[_0xecb077(0x232)],messageTypes['ERROR'],_0x481b6a[_0xecb077(0x1e6)],null,_0x3b1bb9),process['exit'](0x1);}catch(_0x5eff4b){logger[_0xecb077(0x247)](_0x5eff4b[_0xecb077(0x20a)]),await _0x481b6a[_0xecb077(0x221)](sendInstrumentationEvent,_0x3b1bb9,_0x481b6a['TMzqZ'],messageTypes[_0xecb077(0x218)],_0x481b6a[_0xecb077(0x226)],_0x5eff4b,_0x3b1bb9),process[_0xecb077(0x22b)](0x1);}};
1
+ function a13_0x2ea1(_0x1b8371,_0x304cf1){const _0x5097f0=a13_0x5097();return a13_0x2ea1=function(_0x2ea1f5,_0x14f5d5){_0x2ea1f5=_0x2ea1f5-0x11c;let _0x2b5c5c=_0x5097f0[_0x2ea1f5];return _0x2b5c5c;},a13_0x2ea1(_0x1b8371,_0x304cf1);}function a13_0x5097(){const _0x3ceb09=['../config/logger','error','BROWSERSTACK_ACCESS_KEY','unknown-error','cNAmk','readFileSync','bstack-username','KrSDY','parse','AmGzv','WSIbK','env','BROWSERSTACK_USERNAME','CGcQx','ICPSa','qqvNC','wdmHs','username','ocXxW','exit','help','strict','RzUZP','writeFileSync','iVIXs','uuid','mVxMO','stack','cNWKX','password','BxdYc','400iCYeGd','200WDberW','YXwgU','198624kBPMDC','dQUtb','ZSiAL','gdudi','builder','Bpgog','CQhZm','url','requestId','KjbjA','779647nciDPm','cxhvm','BiqeS','jXeDk','3879618FfYqMe','iqdlX','CKBGK','type','DPNuo','fshLk','jdHPb','ERROR','wISOT','desc','string','options','96971OMRFPb','command','DzaBu','qfcVl','wrong-creds','handler','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','Browserstack','bstackAccesskey','UQRiF','fuNTQ','debug','Zefmk','DMGTB','stringify','usage','OdXJg','existsSync','dqRzU','recommendCommands','method','xvEzi','xgpBj','353215McLUww','argv','dHbfE','xnnjY','KiNZU','RbAzd','488KiiyNH','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','../config/constants','Initialise\x20the\x20BrowserStack\x20CLI\x20with\x20appropriate\x20credentials.','2jSpYDN','init','VVdcn','IWSJs','../utils/utilityMethods','111055wAYGgz','526374oGQSJx','init-called','bstack-accesskey','description','utf-8','epilogue','qxtRt','NlKII','GET','DPYBX','mkdirSync','promisify','bstackUsername','tOCoL','crFQV','https://'];a13_0x5097=function(){return _0x3ceb09;};return a13_0x5097();}const a13_0x404a12=a13_0x2ea1;(function(_0x380422,_0x302ba0){const _0x22789f=a13_0x2ea1,_0x359556=_0x380422();while(!![]){try{const _0x2c7637=-parseInt(_0x22789f(0x154))/0x1*(-parseInt(_0x22789f(0x15e))/0x2)+parseInt(_0x22789f(0x123))/0x3+-parseInt(_0x22789f(0x121))/0x4*(parseInt(_0x22789f(0x163))/0x5)+-parseInt(_0x22789f(0x131))/0x6+-parseInt(_0x22789f(0x13d))/0x7*(parseInt(_0x22789f(0x15a))/0x8)+-parseInt(_0x22789f(0x164))/0x9+-parseInt(_0x22789f(0x120))/0xa*(-parseInt(_0x22789f(0x12d))/0xb);if(_0x2c7637===_0x302ba0)break;else _0x359556['push'](_0x359556['shift']());}catch(_0xe227d){_0x359556['push'](_0x359556['shift']());}}}(a13_0x5097,0x90fa7));const fs=require('fs'),util=require('util'),request=require('request'),{v4:uuidv4}=require(a13_0x404a12(0x18d)),{logger}=require(a13_0x404a12(0x174)),{inputBstackKeys}=require('../utils/userInput'),{BS_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a13_0x404a12(0x15c)),{getDirForConfig,getCredentialsPath}=require(a13_0x404a12(0x162)),{sendInstrumentationEvent}=require('../utils/instrumentationUtils'),promisifiedRequest=util[a13_0x404a12(0x16f)](request);exports[a13_0x404a12(0x13e)]=a13_0x404a12(0x15f),exports[a13_0x404a12(0x13a)]=a13_0x404a12(0x15d),exports[a13_0x404a12(0x127)]=function(_0x35ceb9){const _0x2b07e8=a13_0x404a12,_0x57ac23={};_0x57ac23[_0x2b07e8(0x12f)]='Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.',_0x57ac23[_0x2b07e8(0x140)]=_0x2b07e8(0x13b),_0x57ac23[_0x2b07e8(0x129)]=_0x2b07e8(0x15b),_0x57ac23[_0x2b07e8(0x172)]=_0x2b07e8(0x188);const _0x3b0c72=_0x57ac23,_0x56362f={};_0x56362f['description']=_0x3b0c72['BiqeS'],_0x56362f[_0x2b07e8(0x134)]=_0x3b0c72[_0x2b07e8(0x140)];const _0x312181={};_0x312181[_0x2b07e8(0x167)]=_0x3b0c72[_0x2b07e8(0x129)],_0x312181[_0x2b07e8(0x134)]=_0x3b0c72[_0x2b07e8(0x140)];const _0x5542dc={};return _0x5542dc[_0x2b07e8(0x17a)]=_0x56362f,_0x5542dc[_0x2b07e8(0x166)]=_0x312181,_0x35ceb9[_0x2b07e8(0x14c)](HELP_HEADER_MESSAGE[_0x2b07e8(0x15f)])[_0x2b07e8(0x169)](HELP_FOOTER_MESSAGE)[_0x2b07e8(0x13c)](_0x5542dc)['recommendCommands']()[_0x2b07e8(0x189)]()[_0x2b07e8(0x188)](_0x3b0c72[_0x2b07e8(0x172)])[_0x2b07e8(0x155)];},exports[a13_0x404a12(0x142)]=async function(_0x4bda57){const _0x49cfae=a13_0x404a12,_0x47d2c2={'VVdcn':_0x49cfae(0x143),'WSIbK':_0x49cfae(0x13b),'eeznL':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','ZSiAL':_0x49cfae(0x188),'qqvNC':_0x49cfae(0x168),'xnnjY':function(_0x7d822c){return _0x7d822c();},'CKBGK':function(_0x3b9ae8){return _0x3b9ae8();},'DMGTB':function(_0x3572fc,_0x2eafb8,_0x1ef02a,_0x218d65,_0x4c0375,_0x33bc35,_0xc7e1e9){return _0x3572fc(_0x2eafb8,_0x1ef02a,_0x218d65,_0x4c0375,_0x33bc35,_0xc7e1e9);},'OdXJg':_0x49cfae(0x165),'qxtRt':function(_0x21b54d){return _0x21b54d();},'jtWAA':function(_0x56b7a7,_0x5214ca){return _0x56b7a7===_0x5214ca;},'wISOT':_0x49cfae(0x152),'GCOwk':function(_0x49f11d,_0x126392){return _0x49f11d===_0x126392;},'iqdlX':_0x49cfae(0x16b),'KrSDY':_0x49cfae(0x156),'fuNTQ':function(_0x3729ff,_0xf4f7d0){return _0x3729ff===_0xf4f7d0;},'DPYBX':'nCpsG','fshLk':function(_0x195d76,_0x214fa2){return _0x195d76===_0x214fa2;},'RzUZP':_0x49cfae(0x12c),'cNAmk':_0x49cfae(0x137),'jXeDk':function(_0x47b31d,_0x75c8ac){return _0x47b31d!==_0x75c8ac;},'DzaBu':_0x49cfae(0x158),'QEbGf':_0x49cfae(0x161),'iVIXs':function(_0xfd1e0e,_0x59a8c8){return _0xfd1e0e===_0x59a8c8;},'BxdYc':_0x49cfae(0x135),'cxhvm':_0x49cfae(0x124),'mVxMO':'BrowserStack\x20username\x20and\x20password\x20neither\x20passed\x20in\x20command\x20line\x20arguments\x20nor\x20set\x20as\x20environment\x20variables.\x20Raising\x20a\x20prompt\x20to\x20get\x20the\x20details.','YXwgU':_0x49cfae(0x16c),'Wguno':function(_0x1f1fee,_0x2c7dfb){return _0x1f1fee(_0x2c7dfb);},'RbAzd':function(_0x3f180f,_0x31551a){return _0x3f180f!==_0x31551a;},'gdudi':function(_0xeb6a86,_0x5c466a){return _0xeb6a86!==_0x5c466a;},'LifZH':function(_0x4f1aca,_0x5cd2ee){return _0x4f1aca!==_0x5cd2ee;},'Bpgog':_0x49cfae(0x184),'cNWKX':_0x49cfae(0x181),'tOCoL':_0x49cfae(0x146),'ICPSa':function(_0x4ab560){return _0x4ab560();},'xgpBj':'lhJkN','ocXxW':'Wrong\x20credentials\x20passed.\x20Please\x20try\x20again\x20with\x20correct\x20credentials!','Zefmk':function(_0x314b45,_0x290055,_0x315c66,_0x23ff0f,_0x19bdc5,_0x4326a0,_0x3f637f){return _0x314b45(_0x290055,_0x315c66,_0x23ff0f,_0x19bdc5,_0x4326a0,_0x3f637f);},'UUran':_0x49cfae(0x141),'AmGzv':function(_0x50b61d,_0x532cf3,_0x53435c,_0x384593,_0x24262f,_0x2a8dcd,_0x3ea7ca){return _0x50b61d(_0x532cf3,_0x53435c,_0x384593,_0x24262f,_0x2a8dcd,_0x3ea7ca);},'dqRzU':_0x49cfae(0x177)};try{global_registry[_0x49cfae(0x12b)]=_0x47d2c2[_0x49cfae(0x133)](uuidv4),_0x47d2c2[_0x49cfae(0x14a)](sendInstrumentationEvent,_0x4bda57,_0x47d2c2[_0x49cfae(0x14d)],messageTypes['INFO'],null,null,_0x4bda57);const _0x1e4109=_0x47d2c2[_0x49cfae(0x16a)](getDirForConfig);!fs[_0x49cfae(0x14e)](_0x1e4109)&&(_0x47d2c2['jtWAA'](_0x47d2c2['wISOT'],_0x47d2c2[_0x49cfae(0x139)])?fs[_0x49cfae(0x16e)](_0x1e4109):_0x278587=_0x3f5d5a[_0x49cfae(0x145)]);let _0x293a90,_0x5c5c05;process[_0x49cfae(0x17f)][_0x49cfae(0x180)]&&(_0x47d2c2['GCOwk'](_0x47d2c2[_0x49cfae(0x132)],_0x47d2c2[_0x49cfae(0x17b)])?_0x518789=_0x54e891[_0x49cfae(0x17f)]['BROWSERSTACK_USERNAME']:_0x293a90=process['env'][_0x49cfae(0x180)]);if(process[_0x49cfae(0x17f)]['BROWSERSTACK_ACCESS_KEY']){if(_0x47d2c2[_0x49cfae(0x147)](_0x47d2c2[_0x49cfae(0x16d)],_0x47d2c2['DPYBX']))_0x5c5c05=process[_0x49cfae(0x17f)][_0x49cfae(0x176)];else{const _0x2a311c={};_0x2a311c[_0x49cfae(0x167)]=_0x47d2c2[_0x49cfae(0x160)],_0x2a311c[_0x49cfae(0x134)]=_0x47d2c2[_0x49cfae(0x17e)];const _0x4508f4={};_0x4508f4[_0x49cfae(0x167)]=_0x47d2c2['eeznL'],_0x4508f4[_0x49cfae(0x134)]=_0x47d2c2[_0x49cfae(0x17e)];const _0x1d886a={};return _0x1d886a['bstack-username']=_0x2a311c,_0x1d886a[_0x49cfae(0x166)]=_0x4508f4,_0x57a776['usage'](_0x497c43[_0x49cfae(0x15f)])['epilogue'](_0x283685)[_0x49cfae(0x13c)](_0x1d886a)[_0x49cfae(0x150)]()[_0x49cfae(0x189)]()[_0x49cfae(0x188)](_0x47d2c2[_0x49cfae(0x125)])[_0x49cfae(0x155)];}}_0x4bda57[_0x49cfae(0x170)]&&(_0x47d2c2[_0x49cfae(0x136)](_0x47d2c2[_0x49cfae(0x18a)],_0x47d2c2[_0x49cfae(0x178)])?_0x459640=_0x4f8bd8[_0x49cfae(0x170)]:_0x293a90=_0x4bda57['bstackUsername']);_0x4bda57[_0x49cfae(0x145)]&&(_0x47d2c2[_0x49cfae(0x130)](_0x47d2c2[_0x49cfae(0x13f)],_0x47d2c2['QEbGf'])?_0x5c5c05=_0x4bda57[_0x49cfae(0x145)]:_0x57c10a=!![]);if(_0x47d2c2['jtWAA'](_0x293a90,undefined)||_0x47d2c2['fshLk'](_0x5c5c05,undefined)){if(_0x47d2c2[_0x49cfae(0x18c)](_0x47d2c2[_0x49cfae(0x11f)],_0x47d2c2[_0x49cfae(0x12e)]))_0x51405d=_0x1a0081[_0x49cfae(0x17c)](_0x13f231[_0x49cfae(0x179)](_0x59fb18,_0x47d2c2['qqvNC']));else{logger[_0x49cfae(0x148)](_0x47d2c2[_0x49cfae(0x18e)]);const [_0x1e40d8,_0x29c087]=await _0x47d2c2['xnnjY'](inputBstackKeys);_0x293a90=_0x1e40d8,_0x5c5c05=_0x29c087;}}let _0x2221d6=![];const _0x1bfcf1={};_0x1bfcf1[_0x49cfae(0x12a)]=_0x49cfae(0x173)+_0x293a90+':'+_0x5c5c05+'@'+BS_API_URL+'/automate/plan.json',_0x1bfcf1[_0x49cfae(0x151)]=_0x47d2c2[_0x49cfae(0x122)];const _0xaec097=_0x1bfcf1,_0x14aecb=await _0x47d2c2['Wguno'](promisifiedRequest,_0xaec097);if(_0x47d2c2[_0x49cfae(0x159)](_0x14aecb,null)&&_0x47d2c2[_0x49cfae(0x126)](_0x14aecb,undefined)&&_0x47d2c2[_0x49cfae(0x18c)](_0x14aecb['statusCode'],0xc8)){if(_0x47d2c2['LifZH'](_0x47d2c2[_0x49cfae(0x128)],_0x47d2c2[_0x49cfae(0x128)])){let _0xe61731={};const _0x5592fc=_0x47d2c2[_0x49cfae(0x157)](_0x3ab169);_0x4d4bff['existsSync'](_0x5592fc)&&(_0xe61731=_0x83e529[_0x49cfae(0x17c)](_0x54eb4a[_0x49cfae(0x179)](_0x5592fc,_0x47d2c2[_0x49cfae(0x183)])));const _0xfe3a5={};_0xfe3a5[_0x49cfae(0x185)]=_0x212ab0,_0xfe3a5[_0x49cfae(0x11e)]=_0x368fac,_0xe61731[_0x49cfae(0x144)]=_0xfe3a5,_0x3a0f50[_0x49cfae(0x18b)](_0x5592fc,_0x21766e[_0x49cfae(0x14b)](_0xe61731)),_0x1066d0['exit'](0x0);}else _0x2221d6=!![];}if(_0x2221d6){if(_0x47d2c2['fshLk'](_0x47d2c2[_0x49cfae(0x11d)],_0x47d2c2[_0x49cfae(0x171)]))_0x5c7bfe['mkdirSync'](_0x345b60);else{let _0x532f77={};const _0x3801de=_0x47d2c2[_0x49cfae(0x182)](getCredentialsPath);fs[_0x49cfae(0x14e)](_0x3801de)&&(_0x47d2c2[_0x49cfae(0x147)](_0x47d2c2[_0x49cfae(0x153)],_0x47d2c2[_0x49cfae(0x153)])?_0x532f77=JSON[_0x49cfae(0x17c)](fs[_0x49cfae(0x179)](_0x3801de,_0x47d2c2[_0x49cfae(0x183)])):_0x580e90=_0xa33520[_0x49cfae(0x17f)][_0x49cfae(0x176)]);const _0xd55cf8={};_0xd55cf8[_0x49cfae(0x185)]=_0x293a90,_0xd55cf8['password']=_0x5c5c05,_0x532f77[_0x49cfae(0x144)]=_0xd55cf8,fs[_0x49cfae(0x18b)](_0x3801de,JSON[_0x49cfae(0x14b)](_0x532f77)),process[_0x49cfae(0x187)](0x0);}}else logger[_0x49cfae(0x175)](_0x47d2c2[_0x49cfae(0x186)]),await _0x47d2c2[_0x49cfae(0x149)](sendInstrumentationEvent,_0x4bda57,_0x47d2c2[_0x49cfae(0x14d)],messageTypes[_0x49cfae(0x138)],_0x47d2c2['UUran'],null,_0x4bda57),process[_0x49cfae(0x187)](0x1);}catch(_0x2daf5a){logger[_0x49cfae(0x175)](_0x2daf5a[_0x49cfae(0x11c)]),await _0x47d2c2[_0x49cfae(0x17d)](sendInstrumentationEvent,_0x4bda57,_0x47d2c2[_0x49cfae(0x14d)],messageTypes[_0x49cfae(0x138)],_0x47d2c2[_0x49cfae(0x14f)],_0x2daf5a,_0x4bda57),process[_0x49cfae(0x187)](0x1);}};
@@ -1 +1 @@
1
- const a14_0x43a3ce=a14_0x39b3;(function(_0x19a8f0,_0x18603b){const _0x141df0=a14_0x39b3,_0x53a43e=_0x19a8f0();while(!![]){try{const _0x22da3a=-parseInt(_0x141df0(0xe3))/0x1+parseInt(_0x141df0(0xd3))/0x2*(-parseInt(_0x141df0(0xe0))/0x3)+parseInt(_0x141df0(0xdf))/0x4+-parseInt(_0x141df0(0xd6))/0x5+-parseInt(_0x141df0(0xde))/0x6+parseInt(_0x141df0(0xd5))/0x7*(-parseInt(_0x141df0(0xd2))/0x8)+-parseInt(_0x141df0(0xdb))/0x9*(-parseInt(_0x141df0(0xd7))/0xa);if(_0x22da3a===_0x18603b)break;else _0x53a43e['push'](_0x53a43e['shift']());}catch(_0x37c79d){_0x53a43e['push'](_0x53a43e['shift']());}}}(a14_0x3719,0x6e7fa));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');function a14_0x39b3(_0x295b5f,_0x34ac1b){const _0x37195f=a14_0x3719();return a14_0x39b3=function(_0x39b313,_0x25178f){_0x39b313=_0x39b313-0xcf;let _0xa57d65=_0x37195f[_0x39b313];return _0xa57d65;},a14_0x39b3(_0x295b5f,_0x34ac1b);}function a14_0x3719(){const _0x1e1c05=['nVMCT','7432AbOEWl','17106vkgEoG','command','1589AmmRqv','2638350lNijGS','2440WawelL','root','desc','list','101853NTbASt','List\x20down\x20the\x20Grid\x20resources.','help','2389656xSGTrT','638104yoVqmz','201LtzscS','epilogue','list_commands','758392hVlEyH','demandCommand','strict','handler','ZPoVT','recommendCommands','commandDir'];a14_0x3719=function(){return _0x1e1c05;};return a14_0x3719();}exports[a14_0x43a3ce(0xd4)]=a14_0x43a3ce(0xda),exports[a14_0x43a3ce(0xd9)]=a14_0x43a3ce(0xdc),exports['builder']=function(_0x1e23c4){const _0x28bc63=a14_0x43a3ce,_0xa3157={};_0xa3157[_0x28bc63(0xd1)]=_0x28bc63(0xe2),_0xa3157['ZPoVT']=_0x28bc63(0xdd);const _0x107d34=_0xa3157;return _0x1e23c4[_0x28bc63(0xd0)](_0x107d34['nVMCT'])[_0x28bc63(0xe4)]()['usage'](HELP_HEADER_MESSAGE[_0x28bc63(0xda)][_0x28bc63(0xd8)])[_0x28bc63(0xe1)](HELP_FOOTER_MESSAGE)[_0x28bc63(0xcf)]()[_0x28bc63(0xe5)]()[_0x28bc63(0xdd)](_0x107d34[_0x28bc63(0xe7)]);},exports[a14_0x43a3ce(0xe6)]=function(_0x3c4529){};
1
+ const a14_0x52d47f=a14_0x3b7e;function a14_0x3b7e(_0x300361,_0x184794){const _0x87f5c=a14_0x87f5();return a14_0x3b7e=function(_0x3b7e03,_0x588c6e){_0x3b7e03=_0x3b7e03-0x10b;let _0x22a32c=_0x87f5c[_0x3b7e03];return _0x22a32c;},a14_0x3b7e(_0x300361,_0x184794);}(function(_0x3e5b77,_0x3dd21f){const _0x354c9d=a14_0x3b7e,_0xd21a1e=_0x3e5b77();while(!![]){try{const _0x2194e9=parseInt(_0x354c9d(0x122))/0x1+-parseInt(_0x354c9d(0x11d))/0x2*(-parseInt(_0x354c9d(0x120))/0x3)+parseInt(_0x354c9d(0x112))/0x4*(-parseInt(_0x354c9d(0x11b))/0x5)+parseInt(_0x354c9d(0x11e))/0x6*(parseInt(_0x354c9d(0x10f))/0x7)+parseInt(_0x354c9d(0x114))/0x8+parseInt(_0x354c9d(0x115))/0x9+-parseInt(_0x354c9d(0x121))/0xa;if(_0x2194e9===_0x3dd21f)break;else _0xd21a1e['push'](_0xd21a1e['shift']());}catch(_0x49a39f){_0xd21a1e['push'](_0xd21a1e['shift']());}}}(a14_0x87f5,0x2231d));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a14_0x52d47f(0x10d));function a14_0x87f5(){const _0x26aa56=['epilogue','95904gDlqNN','2082573ZvvSug','jRRkF','list_commands','list','desc','root','504495FySlqz','commandDir','4rrVqji','348xDQbkf','strict','52242nsfqmI','3556400nDEaxH','230923DHtzxo','usage','handler','help','recommendCommands','builder','../config/constants','demandCommand','10556YTgGAO','List\x20down\x20the\x20Grid\x20resources.','command','4eyxIWd'];a14_0x87f5=function(){return _0x26aa56;};return a14_0x87f5();}exports[a14_0x52d47f(0x111)]=a14_0x52d47f(0x118),exports[a14_0x52d47f(0x119)]=a14_0x52d47f(0x110),exports[a14_0x52d47f(0x10c)]=function(_0x4956f8){const _0x522eb0=a14_0x52d47f,_0x555bc5={};_0x555bc5[_0x522eb0(0x116)]=_0x522eb0(0x117),_0x555bc5['esQtP']=_0x522eb0(0x125);const _0x44d54c=_0x555bc5;return _0x4956f8[_0x522eb0(0x11c)](_0x44d54c[_0x522eb0(0x116)])[_0x522eb0(0x10e)]()[_0x522eb0(0x123)](HELP_HEADER_MESSAGE[_0x522eb0(0x118)][_0x522eb0(0x11a)])[_0x522eb0(0x113)](HELP_FOOTER_MESSAGE)[_0x522eb0(0x10b)]()[_0x522eb0(0x11f)]()[_0x522eb0(0x125)](_0x44d54c['esQtP']);},exports[a14_0x52d47f(0x124)]=function(_0x26ec98){};
@@ -1 +1 @@
1
- function a15_0x9831(){const _0x10ea41=['username','cloud-provider','1746780CLfbGX','boolean','name','exit','statusCode','https://','list-grid-profiles-called','../../config/constants','argv','grid-profile-name','pIUUb','gridProfile','description','List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user','table','stack','method','requestId','XQgYS','readFileSync','stringify','Uwjva','djJvr','bstackAccesskey','password','log','juNNl','auth','error','help','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','434850zihZmi','AWEVq','uuid','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','parse','INFO','3105214aMHjjL','1457036MlWdIK','unknown-error','qrXXW','existsSync','push','LjLCX','../../utils/utilityMethods','url','1312656qclvCz','ryREf','init-not-called','Browserstack','3444060aYfGcU','vklYl','sRXmt','AxCYc','../../utils/instrumentationUtils','bstackUsername','LPKPh','promisify','GXZkW','allGridProfiles','command','unauthorised','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','/packages/cli/get-grid-profiles','GET','builder','kqZKm','concurrency','region','538922hbcFec','lHHHC','eFnWg','list','NqsKn','ERROR'];a15_0x9831=function(){return _0x10ea41;};return a15_0x9831();}const a15_0x598a91=a15_0x104f;function a15_0x104f(_0x3f8267,_0x1c956c){const _0x98316c=a15_0x9831();return a15_0x104f=function(_0x104f82,_0xae032){_0x104f82=_0x104f82-0x1db;let _0x22ed46=_0x98316c[_0x104f82];return _0x22ed46;},a15_0x104f(_0x3f8267,_0x1c956c);}(function(_0x50c6ce,_0x1773c9){const _0x565243=a15_0x104f,_0x225d9b=_0x50c6ce();while(!![]){try{const _0x3d1743=parseInt(_0x565243(0x200))/0x1+-parseInt(_0x565243(0x1e1))/0x2+parseInt(_0x565243(0x227))/0x3+-parseInt(_0x565243(0x1e9))/0x4+parseInt(_0x565243(0x1ed))/0x5+-parseInt(_0x565243(0x208))/0x6+parseInt(_0x565243(0x1e0))/0x7;if(_0x3d1743===_0x1773c9)break;else _0x225d9b['push'](_0x225d9b['shift']());}catch(_0x291479){_0x225d9b['push'](_0x225d9b['shift']());}}}(a15_0x9831,0x725fa));const fs=require('fs'),util=require('util'),request=require('request'),{table}=require(a15_0x598a91(0x216)),{v4:uuidv4}=require(a15_0x598a91(0x1dc)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a15_0x598a91(0x20f)),{getCredentialsPath}=require(a15_0x598a91(0x1e7)),{sendInstrumentationEvent}=require(a15_0x598a91(0x1f1)),promisifiedRequest=util[a15_0x598a91(0x1f4)](request);exports[a15_0x598a91(0x1f7)]='grid-profiles',exports['desc']=a15_0x598a91(0x215),exports[a15_0x598a91(0x1fc)]=function(_0x3e00eb){const _0x5611be=a15_0x598a91,_0x29d9d3={};_0x29d9d3['wKKil']='Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.',_0x29d9d3[_0x5611be(0x21d)]=_0x5611be(0x209),_0x29d9d3[_0x5611be(0x204)]=_0x5611be(0x225);const _0x1fa35e=_0x29d9d3,_0x72ebba={};_0x72ebba[_0x5611be(0x214)]=_0x1fa35e['wKKil'],_0x72ebba['type']=_0x1fa35e[_0x5611be(0x21d)];const _0x34edd5={};return _0x34edd5['all-grid-profiles']=_0x72ebba,_0x3e00eb['usage'](HELP_HEADER_MESSAGE[_0x5611be(0x203)][_0x5611be(0x213)])['epilogue'](HELP_FOOTER_MESSAGE)['options'](_0x34edd5)[_0x5611be(0x225)](_0x1fa35e[_0x5611be(0x204)])[_0x5611be(0x210)];},exports['handler']=async function(_0x4b0d64){const _0x31e120=a15_0x598a91,_0x458992={'vklYl':function(_0x367c1b){return _0x367c1b();},'LPKPh':_0x31e120(0x226),'eFnWg':function(_0x10fa88,_0x2a6622,_0x2437ba,_0x38f881,_0x1611ff,_0xa63fc4,_0x2cf0f8){return _0x10fa88(_0x2a6622,_0x2437ba,_0x38f881,_0x1611ff,_0xa63fc4,_0x2cf0f8);},'kqZKm':_0x31e120(0x20e),'sRXmt':_0x31e120(0x1eb),'juNNl':function(_0x41c3a2,_0x804aed,_0x5cb0b0,_0x4bcd17,_0x6c3924,_0x2df7f0,_0x5c58cf){return _0x41c3a2(_0x804aed,_0x5cb0b0,_0x4bcd17,_0x6c3924,_0x2df7f0,_0x5c58cf);},'djJvr':function(_0x18a102){return _0x18a102();},'AWEVq':_0x31e120(0x1fb),'SpmBD':function(_0x274934,_0x2bfe8f){return _0x274934(_0x2bfe8f);},'LjLCX':function(_0x2dddbc,_0x3a604d){return _0x2dddbc!==_0x3a604d;},'ryREf':function(_0x39947b,_0x4bf7a7){return _0x39947b!==_0x4bf7a7;},'oOMDH':function(_0x4a0e79,_0xc8d9a6){return _0x4a0e79===_0xc8d9a6;},'tyMXh':'\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','qrXXW':_0x31e120(0x211),'pIUUb':_0x31e120(0x207),'GXZkW':_0x31e120(0x1ff),'AxCYc':_0x31e120(0x1fe),'XQgYS':function(_0x111875,_0x4a76c3){return _0x111875===_0x4a76c3;},'JtJqZ':_0x31e120(0x1f8),'AXCsX':'server-error','lHHHC':_0x31e120(0x1e2)};try{global_registry[_0x31e120(0x219)]=_0x458992[_0x31e120(0x1ee)](uuidv4);let _0x5cccef=_0x31e120(0x20d)+AG_API_URL+_0x31e120(0x1fa);_0x4b0d64[_0x31e120(0x1f6)]&&(_0x5cccef=_0x31e120(0x20d)+AG_API_URL+'/packages/cli/get-all-grid-profiles');!fs[_0x31e120(0x1e4)](_0x458992[_0x31e120(0x1ee)](getCredentialsPath))&&(console['error'](_0x458992[_0x31e120(0x1f3)]),await _0x458992[_0x31e120(0x202)](sendInstrumentationEvent,_0x4b0d64,_0x458992[_0x31e120(0x1fd)],messageTypes[_0x31e120(0x205)],_0x458992[_0x31e120(0x1ef)],null,_0x4b0d64),process[_0x31e120(0x20b)](0x1));_0x458992[_0x31e120(0x222)](sendInstrumentationEvent,_0x4b0d64,_0x458992[_0x31e120(0x1fd)],messageTypes[_0x31e120(0x1df)],null,null,_0x4b0d64);const _0x44d56c=JSON['parse'](fs[_0x31e120(0x21b)](_0x458992[_0x31e120(0x21e)](getCredentialsPath))),_0x776766={};_0x776766[_0x31e120(0x206)]=_0x44d56c[_0x31e120(0x1ec)]['username'],_0x776766[_0x31e120(0x220)]=_0x44d56c[_0x31e120(0x1ec)]['password'];const _0x16a3cf={};_0x16a3cf[_0x31e120(0x1e8)]=_0x5cccef,_0x16a3cf[_0x31e120(0x218)]=_0x458992[_0x31e120(0x1db)],_0x16a3cf[_0x31e120(0x223)]=_0x776766;const _0x16aa01=_0x16a3cf;global_registry[_0x31e120(0x1f2)]=_0x44d56c[_0x31e120(0x1ec)][_0x31e120(0x206)],global_registry[_0x31e120(0x21f)]=_0x44d56c[_0x31e120(0x1ec)][_0x31e120(0x220)];const _0x44b28b=await _0x458992['SpmBD'](promisifiedRequest,_0x16aa01);if(_0x458992[_0x31e120(0x1e6)](_0x44b28b,null)&&_0x458992[_0x31e120(0x1ea)](_0x44b28b,undefined)&&_0x458992['oOMDH'](_0x44b28b[_0x31e120(0x20c)],0xc8)){const _0x23080d=JSON[_0x31e120(0x1de)](_0x44b28b['body']);console[_0x31e120(0x221)](_0x458992['tyMXh']);const _0x3d8cd3=[];_0x3d8cd3[_0x31e120(0x1e5)]([_0x458992[_0x31e120(0x1e3)],_0x458992[_0x31e120(0x212)],_0x458992[_0x31e120(0x1f5)],_0x458992[_0x31e120(0x1f0)]]),_0x23080d['forEach'](_0x4a88c8=>{const _0x263cec=_0x31e120;_0x3d8cd3['push']([_0x4a88c8[_0x263cec(0x20a)],_0x4a88c8['cloudProvider'],_0x4a88c8[_0x263cec(0x1ff)],_0x4a88c8[_0x263cec(0x1fe)]]);}),console[_0x31e120(0x221)](_0x458992['SpmBD'](table,_0x3d8cd3)),process[_0x31e120(0x20b)](0x0);}_0x458992[_0x31e120(0x21a)](_0x44b28b[_0x31e120(0x20c)],0x191)&&(console[_0x31e120(0x224)](_0x31e120(0x1f9)),await _0x458992['juNNl'](sendInstrumentationEvent,_0x4b0d64,_0x458992[_0x31e120(0x1fd)],messageTypes['ERROR'],_0x458992['JtJqZ'],null,_0x4b0d64),process[_0x31e120(0x20b)](0x1)),console[_0x31e120(0x224)](_0x31e120(0x1dd)+JSON[_0x31e120(0x21c)](_0x44b28b)),await _0x458992[_0x31e120(0x222)](sendInstrumentationEvent,_0x4b0d64,_0x458992[_0x31e120(0x1fd)],messageTypes[_0x31e120(0x205)],_0x458992['AXCsX'],_0x44b28b,_0x4b0d64),process['exit'](0x1);}catch(_0x3782f6){console[_0x31e120(0x224)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x3782f6[_0x31e120(0x217)]),await _0x458992[_0x31e120(0x202)](sendInstrumentationEvent,_0x4b0d64,_0x458992[_0x31e120(0x1fd)],messageTypes[_0x31e120(0x205)],_0x458992[_0x31e120(0x201)],_0x3782f6,_0x4b0d64),process[_0x31e120(0x20b)](0x1);}};
1
+ const a15_0xee1a95=a15_0x5613;function a15_0x5613(_0x3911cd,_0x93f71){const _0x2804e5=a15_0x2804();return a15_0x5613=function(_0x561350,_0x446b75){_0x561350=_0x561350-0x144;let _0x2089a8=_0x2804e5[_0x561350];return _0x2089a8;},a15_0x5613(_0x3911cd,_0x93f71);}(function(_0x579c21,_0x414723){const _0x798267=a15_0x5613,_0x24b9f6=_0x579c21();while(!![]){try{const _0x249427=parseInt(_0x798267(0x193))/0x1+-parseInt(_0x798267(0x185))/0x2*(parseInt(_0x798267(0x165))/0x3)+-parseInt(_0x798267(0x14a))/0x4+parseInt(_0x798267(0x14e))/0x5*(parseInt(_0x798267(0x15b))/0x6)+-parseInt(_0x798267(0x17f))/0x7+parseInt(_0x798267(0x149))/0x8*(parseInt(_0x798267(0x14f))/0x9)+parseInt(_0x798267(0x191))/0xa*(parseInt(_0x798267(0x17a))/0xb);if(_0x249427===_0x414723)break;else _0x24b9f6['push'](_0x24b9f6['shift']());}catch(_0x3112bc){_0x24b9f6['push'](_0x24b9f6['shift']());}}}(a15_0x2804,0xedf0c));const fs=require('fs'),util=require(a15_0xee1a95(0x159)),request=require(a15_0xee1a95(0x19a)),{table}=require(a15_0xee1a95(0x17e)),{v4:uuidv4}=require(a15_0xee1a95(0x160)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../../config/constants'),{getCredentialsPath}=require(a15_0xee1a95(0x158)),{sendInstrumentationEvent}=require(a15_0xee1a95(0x145)),promisifiedRequest=util['promisify'](request);function a15_0x2804(){const _0x44ccf7=['builder','description','table','8627836kOTkdA','push','server-error','FBRcu','UYtIc','readFileSync','52786hjVfZf','log','aOVMd','exit','body','allGridProfiles','desc','grid-profiles','password','cloudProvider','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','pujMo','17307240oHQlRy','FTUYi','1103471DRfstl','jsWSC','mFhmX','boolean','ZeYGo','TNQLx','epilogue','request','aqvOI','../../utils/instrumentationUtils','NVxmJ','existsSync','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','4094176vYFJWx','5924920dmQpNW','/packages/cli/get-grid-profiles','init-not-called','options','4930jGIbPq','27epjUPe','GET','ERROR','JbUTe','FSXtz','unknown-error','/packages/cli/get-all-grid-profiles','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grid\x20profiles\x20for\x20your\x20group.','name','../../utils/utilityMethods','util','RwMNk','834nZMyAV','JwaTY','username','cloud-provider','all-grid-profiles','uuid','INFO','forEach','https://','help','93RkOUbD','bstackAccesskey','handler','xsbiR','auth','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','stack','stringify','list-grid-profiles-called','\x0aFound\x20the\x20following\x20Grid\x20Profiles:\x0a','error','method','parse','argv','region','grid-profile-name','requestId','Browserstack','bstackUsername','statusCode','type','11JyfcyI','url'];a15_0x2804=function(){return _0x44ccf7;};return a15_0x2804();}exports['command']=a15_0xee1a95(0x18c),exports[a15_0xee1a95(0x18b)]='List\x20down\x20grid-profiles\x20configured\x20by\x20a\x20particular\x20user',exports[a15_0xee1a95(0x17c)]=function(_0x3193f0){const _0x357052=a15_0xee1a95,_0x34aa03={};_0x34aa03['XWnTs']=_0x357052(0x156),_0x34aa03[_0x357052(0x153)]=_0x357052(0x196),_0x34aa03['FTUYi']=_0x357052(0x164);const _0x33ae61=_0x34aa03,_0x2cc9bd={};_0x2cc9bd[_0x357052(0x17d)]=_0x33ae61['XWnTs'],_0x2cc9bd[_0x357052(0x179)]=_0x33ae61[_0x357052(0x153)];const _0xe49284={};return _0xe49284[_0x357052(0x15f)]=_0x2cc9bd,_0x3193f0['usage'](HELP_HEADER_MESSAGE['list']['gridProfile'])[_0x357052(0x199)](HELP_FOOTER_MESSAGE)[_0x357052(0x14d)](_0xe49284)[_0x357052(0x164)](_0x33ae61[_0x357052(0x192)])[_0x357052(0x172)];},exports[a15_0xee1a95(0x167)]=async function(_0x2dea6b){const _0x4d1f46=a15_0xee1a95,_0x15039a={'pujMo':function(_0x5451d3){return _0x5451d3();},'TNQLx':function(_0x3e7d8e){return _0x3e7d8e();},'NVxmJ':_0x4d1f46(0x18f),'aqvOI':function(_0xed9bc5,_0x44feee,_0x402efb,_0xbfa940,_0x2a7fe7,_0x394a8f,_0x286e5c){return _0xed9bc5(_0x44feee,_0x402efb,_0xbfa940,_0x2a7fe7,_0x394a8f,_0x286e5c);},'RwMNk':_0x4d1f46(0x16d),'YXaOy':_0x4d1f46(0x14c),'jsWSC':function(_0x4fe43d,_0x1fca15,_0xecc23,_0x1db422,_0xc04427,_0x6830da,_0x1101af){return _0x4fe43d(_0x1fca15,_0xecc23,_0x1db422,_0xc04427,_0x6830da,_0x1101af);},'fkPBj':_0x4d1f46(0x150),'xsbiR':function(_0x1c8217,_0x36f1cf){return _0x1c8217(_0x36f1cf);},'ZeYGo':function(_0x85c07,_0x2eddcb){return _0x85c07!==_0x2eddcb;},'JbUTe':function(_0x3db20e,_0x55ec48){return _0x3db20e===_0x55ec48;},'UxICg':_0x4d1f46(0x16e),'ruFre':_0x4d1f46(0x174),'aOVMd':_0x4d1f46(0x15e),'mFhmX':_0x4d1f46(0x173),'JwaTY':'concurrency','LESsw':'unauthorised','UYtIc':_0x4d1f46(0x181),'FBRcu':_0x4d1f46(0x154)};try{global_registry[_0x4d1f46(0x175)]=_0x15039a[_0x4d1f46(0x190)](uuidv4);let _0x5497b0=_0x4d1f46(0x163)+AG_API_URL+_0x4d1f46(0x14b);_0x2dea6b[_0x4d1f46(0x18a)]&&(_0x5497b0=_0x4d1f46(0x163)+AG_API_URL+_0x4d1f46(0x155));!fs[_0x4d1f46(0x147)](_0x15039a[_0x4d1f46(0x198)](getCredentialsPath))&&(console[_0x4d1f46(0x16f)](_0x15039a[_0x4d1f46(0x146)]),await _0x15039a[_0x4d1f46(0x144)](sendInstrumentationEvent,_0x2dea6b,_0x15039a[_0x4d1f46(0x15a)],messageTypes['ERROR'],_0x15039a['YXaOy'],null,_0x2dea6b),process[_0x4d1f46(0x188)](0x1));_0x15039a[_0x4d1f46(0x194)](sendInstrumentationEvent,_0x2dea6b,_0x15039a[_0x4d1f46(0x15a)],messageTypes[_0x4d1f46(0x161)],null,null,_0x2dea6b);const _0x5363d8=JSON[_0x4d1f46(0x171)](fs[_0x4d1f46(0x184)](_0x15039a[_0x4d1f46(0x190)](getCredentialsPath))),_0x1c11ca={};_0x1c11ca[_0x4d1f46(0x15d)]=_0x5363d8['Browserstack']['username'],_0x1c11ca['password']=_0x5363d8[_0x4d1f46(0x176)][_0x4d1f46(0x18d)];const _0x3ce989={};_0x3ce989[_0x4d1f46(0x17b)]=_0x5497b0,_0x3ce989[_0x4d1f46(0x170)]=_0x15039a['fkPBj'],_0x3ce989[_0x4d1f46(0x169)]=_0x1c11ca;const _0x59b31d=_0x3ce989;global_registry[_0x4d1f46(0x177)]=_0x5363d8[_0x4d1f46(0x176)][_0x4d1f46(0x15d)],global_registry[_0x4d1f46(0x166)]=_0x5363d8[_0x4d1f46(0x176)][_0x4d1f46(0x18d)];const _0x521174=await _0x15039a[_0x4d1f46(0x168)](promisifiedRequest,_0x59b31d);if(_0x15039a[_0x4d1f46(0x197)](_0x521174,null)&&_0x15039a[_0x4d1f46(0x197)](_0x521174,undefined)&&_0x15039a[_0x4d1f46(0x152)](_0x521174[_0x4d1f46(0x178)],0xc8)){const _0x141d04=JSON['parse'](_0x521174[_0x4d1f46(0x189)]);console[_0x4d1f46(0x186)](_0x15039a['UxICg']);const _0x278a89=[];_0x278a89[_0x4d1f46(0x180)]([_0x15039a['ruFre'],_0x15039a[_0x4d1f46(0x187)],_0x15039a[_0x4d1f46(0x195)],_0x15039a[_0x4d1f46(0x15c)]]),_0x141d04[_0x4d1f46(0x162)](_0x109a10=>{const _0x239f85=_0x4d1f46;_0x278a89[_0x239f85(0x180)]([_0x109a10[_0x239f85(0x157)],_0x109a10[_0x239f85(0x18e)],_0x109a10['region'],_0x109a10['concurrency']]);}),console[_0x4d1f46(0x186)](_0x15039a[_0x4d1f46(0x168)](table,_0x278a89)),process['exit'](0x0);}_0x15039a[_0x4d1f46(0x152)](_0x521174['statusCode'],0x191)&&(console[_0x4d1f46(0x16f)](_0x4d1f46(0x148)),await _0x15039a[_0x4d1f46(0x144)](sendInstrumentationEvent,_0x2dea6b,_0x15039a[_0x4d1f46(0x15a)],messageTypes[_0x4d1f46(0x151)],_0x15039a['LESsw'],null,_0x2dea6b),process['exit'](0x1)),console[_0x4d1f46(0x16f)](_0x4d1f46(0x16a)+JSON[_0x4d1f46(0x16c)](_0x521174)),await _0x15039a[_0x4d1f46(0x144)](sendInstrumentationEvent,_0x2dea6b,_0x15039a['RwMNk'],messageTypes['ERROR'],_0x15039a[_0x4d1f46(0x183)],_0x521174,_0x2dea6b),process[_0x4d1f46(0x188)](0x1);}catch(_0x37eb32){console[_0x4d1f46(0x16f)]('Failed\x20to\x20list\x20resources!\x20Error:\x20'+_0x37eb32[_0x4d1f46(0x16b)]),await _0x15039a['aqvOI'](sendInstrumentationEvent,_0x2dea6b,_0x15039a[_0x4d1f46(0x15a)],messageTypes['ERROR'],_0x15039a[_0x4d1f46(0x182)],_0x37eb32,_0x2dea6b),process[_0x4d1f46(0x188)](0x1);}};
@@ -1 +1 @@
1
- const a16_0x2348b0=a16_0x1815;(function(_0x1f5d2c,_0x2a05cb){const _0x4456b9=a16_0x1815,_0x22f664=_0x1f5d2c();while(!![]){try{const _0x495801=-parseInt(_0x4456b9(0x198))/0x1*(-parseInt(_0x4456b9(0x159))/0x2)+-parseInt(_0x4456b9(0x155))/0x3+-parseInt(_0x4456b9(0x144))/0x4*(parseInt(_0x4456b9(0x16e))/0x5)+-parseInt(_0x4456b9(0x165))/0x6*(parseInt(_0x4456b9(0x143))/0x7)+-parseInt(_0x4456b9(0x175))/0x8+-parseInt(_0x4456b9(0x16d))/0x9+-parseInt(_0x4456b9(0x145))/0xa*(-parseInt(_0x4456b9(0x177))/0xb);if(_0x495801===_0x2a05cb)break;else _0x22f664['push'](_0x22f664['shift']());}catch(_0xc13d9f){_0x22f664['push'](_0x22f664['shift']());}}}(a16_0x1454,0x3108b));const fs=require('fs'),util=require('util'),request=require('request'),{table}=require(a16_0x2348b0(0x18a)),{v4:uuidv4}=require(a16_0x2348b0(0x15e)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require(a16_0x2348b0(0x166)),{getCredentialsPath}=require(a16_0x2348b0(0x180)),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a16_0x2348b0(0x14b)](request);function a16_0x1815(_0xbb67e0,_0x8ecdd2){const _0x1454cf=a16_0x1454();return a16_0x1815=function(_0x18159f,_0x539586){_0x18159f=_0x18159f-0x141;let _0x5d740b=_0x1454cf[_0x18159f];return _0x5d740b;},a16_0x1815(_0xbb67e0,_0x8ecdd2);}function a16_0x1454(){const _0x116e7b=['139349kavrPW','28XxTvct','939440hTHIGx','bstackUsername','qksIT','oFzBB','queued','exit','promisify','Failed\x20to\x20list\x20resources!\x20Error:\x20','log','grid-id','password','eDolx','KWInr','description','list-grids-called','RVPkt','84339HgXvaQ','unknown-error','allGrids','ERROR','2ILAxSK','bpaWf','gBEvR','mtwyr','FzWiw','uuid','qtPBV','xWYox','CoyPH','type','Bjtvi','/packages/cli/get-grids','108YGAIYa','../../config/constants','MmkWJ','https://','Browserstack','push','gqQfe','rjiNb','2268360rucVRW','87385heMGhp','command','handler','grid','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','existsSync','List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user','1024832WGsFTo','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','88MJWydQ','username','cluster-name','stack','\x0aFound\x20the\x20following\x20grids:\x0a','desc','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','boolean','zOlsZ','../../utils/utilityMethods','help','GET','CHNRX','stringify','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','ZdBQr','server-error','requestId','DFfuS','table','error','clusterName','xSAim','/packages/cli/get-all-grids','running','parse','INFO','options','qZCbW','grids','argv','readFileSync','usage','338213ZSmzCy','LQPoh','method'];a16_0x1454=function(){return _0x116e7b;};return a16_0x1454();}exports[a16_0x2348b0(0x16f)]=a16_0x2348b0(0x194),exports[a16_0x2348b0(0x17c)]=a16_0x2348b0(0x174),exports['builder']=function(_0x4f2755){const _0x584394=a16_0x2348b0,_0x140d92={};_0x140d92[_0x584394(0x154)]=_0x584394(0x176),_0x140d92[_0x584394(0x150)]=_0x584394(0x17e),_0x140d92[_0x584394(0x17f)]='help';const _0x42ef0f=_0x140d92,_0xb6cd3b={};_0xb6cd3b[_0x584394(0x152)]=_0x42ef0f[_0x584394(0x154)],_0xb6cd3b[_0x584394(0x162)]=_0x42ef0f[_0x584394(0x150)];const _0x42a0e1={};return _0x42a0e1['all-grids']=_0xb6cd3b,_0x4f2755[_0x584394(0x197)](HELP_HEADER_MESSAGE['list'][_0x584394(0x171)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x584394(0x192)](_0x42a0e1)[_0x584394(0x181)](_0x42ef0f['zOlsZ'])[_0x584394(0x195)];},exports[a16_0x2348b0(0x170)]=async function(_0x415e3b){const _0x49c056=a16_0x2348b0,_0x1797ce={'DFfuS':function(_0xd01021){return _0xd01021();},'DVDtj':_0x49c056(0x172),'Bjtvi':function(_0x40c5ff,_0x2810eb,_0x555c43,_0xada8df,_0x4b7d48,_0x44fc89,_0x3e0f8c){return _0x40c5ff(_0x2810eb,_0x555c43,_0xada8df,_0x4b7d48,_0x44fc89,_0x3e0f8c);},'gqQfe':_0x49c056(0x153),'IZGUu':'init-not-called','BLVpy':_0x49c056(0x182),'gBEvR':function(_0x53d0f3,_0x516078,_0x491dae,_0xcaf59f,_0x5b2a5e,_0x47402b,_0x5f0aa8){return _0x53d0f3(_0x516078,_0x491dae,_0xcaf59f,_0x5b2a5e,_0x47402b,_0x5f0aa8);},'oFzBB':function(_0xf0d53e,_0x150a04){return _0xf0d53e(_0x150a04);},'MmkWJ':function(_0x39e532,_0x217112){return _0x39e532!==_0x217112;},'rjiNb':function(_0x2137fb,_0x59ce4d){return _0x2137fb===_0x59ce4d;},'xSAim':_0x49c056(0x17b),'qtPBV':_0x49c056(0x14e),'LQPoh':'grid-name','CoyPH':'status','CHNRX':_0x49c056(0x18f),'KWInr':'queued','ZdBQr':_0x49c056(0x179),'qZCbW':function(_0x529c40,_0x139f18){return _0x529c40===_0x139f18;},'mtwyr':function(_0x19bf7a,_0x412c07,_0x5e6196,_0x16733b,_0x4dbeee,_0x393380,_0x24d617){return _0x19bf7a(_0x412c07,_0x5e6196,_0x16733b,_0x4dbeee,_0x393380,_0x24d617);},'qksIT':'unauthorised','xWYox':_0x49c056(0x187),'bpaWf':function(_0x6f1cbe,_0x2ead81,_0x3e13bc,_0x86bf6b,_0x29ab95,_0x2d9ccf,_0x506adb){return _0x6f1cbe(_0x2ead81,_0x3e13bc,_0x86bf6b,_0x29ab95,_0x2d9ccf,_0x506adb);},'FzWiw':_0x49c056(0x156)};try{global_registry[_0x49c056(0x188)]=_0x1797ce[_0x49c056(0x189)](uuidv4);!fs[_0x49c056(0x173)](_0x1797ce['DFfuS'](getCredentialsPath))&&(console[_0x49c056(0x18b)](_0x1797ce['DVDtj']),await _0x1797ce['Bjtvi'](sendInstrumentationEvent,_0x415e3b,_0x1797ce[_0x49c056(0x16b)],messageTypes[_0x49c056(0x158)],_0x1797ce['IZGUu'],null,_0x415e3b),process['exit'](0x1));const _0x2273c4=JSON[_0x49c056(0x190)](fs[_0x49c056(0x196)](_0x1797ce[_0x49c056(0x189)](getCredentialsPath)));let _0x4746b6=_0x49c056(0x168)+AG_API_URL+_0x49c056(0x164);_0x415e3b[_0x49c056(0x157)]&&(_0x4746b6=_0x49c056(0x168)+AG_API_URL+_0x49c056(0x18e));const _0x3b2c7c={};_0x3b2c7c[_0x49c056(0x178)]=_0x2273c4[_0x49c056(0x169)][_0x49c056(0x178)],_0x3b2c7c[_0x49c056(0x14f)]=_0x2273c4[_0x49c056(0x169)][_0x49c056(0x14f)];const _0xe60b6={};_0xe60b6['url']=_0x4746b6,_0xe60b6[_0x49c056(0x142)]=_0x1797ce['BLVpy'],_0xe60b6['auth']=_0x3b2c7c;const _0x173d98=_0xe60b6;global_registry[_0x49c056(0x146)]=_0x2273c4[_0x49c056(0x169)]['username'],global_registry['bstackAccesskey']=_0x2273c4[_0x49c056(0x169)][_0x49c056(0x14f)],_0x1797ce[_0x49c056(0x15b)](sendInstrumentationEvent,_0x415e3b,_0x1797ce['gqQfe'],messageTypes[_0x49c056(0x191)],null,null,_0x415e3b);const _0x167e31=await _0x1797ce['oFzBB'](promisifiedRequest,_0x173d98);if(_0x1797ce[_0x49c056(0x167)](_0x167e31,null)&&_0x1797ce[_0x49c056(0x167)](_0x167e31,undefined)&&_0x1797ce[_0x49c056(0x16c)](_0x167e31['statusCode'],0xc8)){const _0x28ab73=JSON[_0x49c056(0x190)](_0x167e31['body']);console['log'](_0x1797ce[_0x49c056(0x18d)]);const _0x6f0723=[];_0x6f0723[_0x49c056(0x16a)]([_0x1797ce[_0x49c056(0x15f)],_0x1797ce[_0x49c056(0x141)],_0x1797ce[_0x49c056(0x161)],_0x1797ce[_0x49c056(0x183)],_0x1797ce[_0x49c056(0x151)],_0x1797ce[_0x49c056(0x186)]]),_0x28ab73['forEach'](_0x304774=>{const _0x2da0a1=_0x49c056;_0x6f0723['push']([_0x304774['id'],_0x304774['name'],_0x304774['status'],_0x304774[_0x2da0a1(0x18f)],_0x304774[_0x2da0a1(0x149)],_0x304774[_0x2da0a1(0x18c)]]);}),console[_0x49c056(0x14d)](_0x1797ce[_0x49c056(0x148)](table,_0x6f0723)),process[_0x49c056(0x14a)](0x0);}_0x1797ce[_0x49c056(0x193)](_0x167e31['statusCode'],0x191)&&(console[_0x49c056(0x18b)](_0x49c056(0x185)),await _0x1797ce[_0x49c056(0x15c)](sendInstrumentationEvent,_0x415e3b,_0x1797ce[_0x49c056(0x16b)],messageTypes[_0x49c056(0x158)],_0x1797ce[_0x49c056(0x147)],null,_0x415e3b),process[_0x49c056(0x14a)](0x1)),console[_0x49c056(0x18b)](_0x49c056(0x17d)+JSON[_0x49c056(0x184)](_0x167e31)),await _0x1797ce[_0x49c056(0x163)](sendInstrumentationEvent,_0x415e3b,_0x1797ce[_0x49c056(0x16b)],messageTypes[_0x49c056(0x158)],_0x1797ce[_0x49c056(0x160)],_0x167e31,_0x415e3b),process['exit'](0x1);}catch(_0x46277e){console['error'](_0x49c056(0x14c)+_0x46277e[_0x49c056(0x17a)]),await _0x1797ce[_0x49c056(0x15a)](sendInstrumentationEvent,_0x415e3b,_0x1797ce[_0x49c056(0x16b)],messageTypes[_0x49c056(0x158)],_0x1797ce[_0x49c056(0x15d)],_0x46277e,_0x415e3b),process[_0x49c056(0x14a)](0x1);}};
1
+ const a16_0x311bb1=a16_0xe2b7;(function(_0x61f3ec,_0x4b0dc3){const _0xc5d105=a16_0xe2b7,_0xd11d3e=_0x61f3ec();while(!![]){try{const _0x7f4c62=-parseInt(_0xc5d105(0x178))/0x1+parseInt(_0xc5d105(0x18d))/0x2+parseInt(_0xc5d105(0x181))/0x3*(parseInt(_0xc5d105(0x1ad))/0x4)+parseInt(_0xc5d105(0x1af))/0x5+parseInt(_0xc5d105(0x1cb))/0x6+parseInt(_0xc5d105(0x193))/0x7+parseInt(_0xc5d105(0x1b3))/0x8*(-parseInt(_0xc5d105(0x18a))/0x9);if(_0x7f4c62===_0x4b0dc3)break;else _0xd11d3e['push'](_0xd11d3e['shift']());}catch(_0x2cecc0){_0xd11d3e['push'](_0xd11d3e['shift']());}}}(a16_0x5767,0xbf46f));function a16_0xe2b7(_0x49243b,_0x1dd916){const _0x576714=a16_0x5767();return a16_0xe2b7=function(_0xe2b73f,_0x44b801){_0xe2b73f=_0xe2b73f-0x177;let _0x35ddd4=_0x576714[_0xe2b73f];return _0x35ddd4;},a16_0xe2b7(_0x49243b,_0x1dd916);}const fs=require('fs'),util=require('util'),request=require('request'),{table}=require(a16_0x311bb1(0x1a1)),{v4:uuidv4}=require(a16_0x311bb1(0x19e)),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,global_registry}=require('../../config/constants'),{getCredentialsPath}=require('../../utils/utilityMethods'),{sendInstrumentationEvent}=require('../../utils/instrumentationUtils'),promisifiedRequest=util[a16_0x311bb1(0x1b0)](request);exports['command']=a16_0x311bb1(0x1a3),exports['desc']='List\x20down\x20grids\x20configured\x20by\x20a\x20particular\x20user',exports[a16_0x311bb1(0x192)]=function(_0x85549b){const _0x71a22a=a16_0x311bb1,_0x33a541={};_0x33a541[_0x71a22a(0x18f)]=_0x71a22a(0x1c0),_0x33a541['PRUkL']='boolean',_0x33a541['IMhcm']=_0x71a22a(0x17a);const _0x4c0df5=_0x33a541,_0x18e919={};_0x18e919[_0x71a22a(0x1bc)]=_0x4c0df5[_0x71a22a(0x18f)],_0x18e919[_0x71a22a(0x1b7)]=_0x4c0df5[_0x71a22a(0x1b1)];const _0x525378={};return _0x525378[_0x71a22a(0x180)]=_0x18e919,_0x85549b[_0x71a22a(0x197)](HELP_HEADER_MESSAGE[_0x71a22a(0x19b)][_0x71a22a(0x19c)])[_0x71a22a(0x1a9)](HELP_FOOTER_MESSAGE)[_0x71a22a(0x18b)](_0x525378)[_0x71a22a(0x17a)](_0x4c0df5[_0x71a22a(0x198)])['argv'];},exports[a16_0x311bb1(0x1cf)]=async function(_0x42a98b){const _0x433599=a16_0x311bb1,_0x422abd={'spOsk':function(_0x3594b2){return _0x3594b2();},'fsFKo':_0x433599(0x1a8),'QvcMW':function(_0x30ff0c,_0x243179,_0x5c8d47,_0x5c75f5,_0x2dfcbc,_0x5c5e01,_0x43aeab){return _0x30ff0c(_0x243179,_0x5c8d47,_0x5c75f5,_0x2dfcbc,_0x5c5e01,_0x43aeab);},'gGYWb':_0x433599(0x199),'qbFKC':_0x433599(0x17c),'NDvrm':_0x433599(0x1bb),'XBcXQ':function(_0xa627c9,_0xcc3793,_0x43a165,_0x24ce92,_0x4e4485,_0x409f01,_0x4819b1){return _0xa627c9(_0xcc3793,_0x43a165,_0x24ce92,_0x4e4485,_0x409f01,_0x4819b1);},'iYEwP':function(_0x5769c1,_0x5a783f){return _0x5769c1(_0x5a783f);},'PIPXA':function(_0xc38c2d,_0x2d8616){return _0xc38c2d!==_0x2d8616;},'uhKIC':function(_0x4c9c8a,_0x1f3482){return _0x4c9c8a!==_0x1f3482;},'CQdnf':function(_0x13a6f4,_0x2c6e0c){return _0x13a6f4===_0x2c6e0c;},'UYVvV':_0x433599(0x1be),'FnCrJ':_0x433599(0x17d),'aRDWT':_0x433599(0x1bf),'miXfd':_0x433599(0x184),'hHuZh':_0x433599(0x1b5),'pWQKg':_0x433599(0x1a6),'gSJvi':_0x433599(0x1cc),'KnnZh':function(_0xb41734,_0x36023c){return _0xb41734===_0x36023c;},'aDMNc':function(_0x250e85,_0x10628e,_0x11e6c4,_0x10a3c0,_0x31563e,_0x4e72d7,_0x11a5a0){return _0x250e85(_0x10628e,_0x11e6c4,_0x10a3c0,_0x31563e,_0x4e72d7,_0x11a5a0);},'tKqis':_0x433599(0x1b4),'pGVBz':function(_0x303a9c,_0x46dba4,_0xff254d,_0x2f47e8,_0x3e6630,_0x105a55,_0x988ac8){return _0x303a9c(_0x46dba4,_0xff254d,_0x2f47e8,_0x3e6630,_0x105a55,_0x988ac8);},'uochJ':_0x433599(0x1c2),'Akvel':function(_0x4be51d,_0x4f9e83,_0x19a505,_0x4b9758,_0x5fff6b,_0x4531c4,_0x4508d6){return _0x4be51d(_0x4f9e83,_0x19a505,_0x4b9758,_0x5fff6b,_0x4531c4,_0x4508d6);},'PqqdS':_0x433599(0x1bd)};try{global_registry[_0x433599(0x1ce)]=_0x422abd[_0x433599(0x18c)](uuidv4);!fs[_0x433599(0x1b9)](_0x422abd[_0x433599(0x18c)](getCredentialsPath))&&(console[_0x433599(0x1c3)](_0x422abd[_0x433599(0x1ca)]),await _0x422abd[_0x433599(0x183)](sendInstrumentationEvent,_0x42a98b,_0x422abd[_0x433599(0x182)],messageTypes[_0x433599(0x187)],_0x422abd['qbFKC'],null,_0x42a98b),process[_0x433599(0x195)](0x1));const _0x4774af=JSON['parse'](fs[_0x433599(0x179)](_0x422abd['spOsk'](getCredentialsPath)));let _0x536495=_0x433599(0x186)+AG_API_URL+'/packages/cli/get-grids';_0x42a98b[_0x433599(0x1c7)]&&(_0x536495=_0x433599(0x186)+AG_API_URL+_0x433599(0x1c4));const _0x9f56f7={};_0x9f56f7['username']=_0x4774af['Browserstack'][_0x433599(0x1c5)],_0x9f56f7['password']=_0x4774af[_0x433599(0x1b8)]['password'];const _0x377fe9={};_0x377fe9[_0x433599(0x1aa)]=_0x536495,_0x377fe9['method']=_0x422abd['NDvrm'],_0x377fe9['auth']=_0x9f56f7;const _0x4d640d=_0x377fe9;global_registry[_0x433599(0x194)]=_0x4774af[_0x433599(0x1b8)][_0x433599(0x1c5)],global_registry[_0x433599(0x1a2)]=_0x4774af[_0x433599(0x1b8)][_0x433599(0x19a)],_0x422abd[_0x433599(0x1ac)](sendInstrumentationEvent,_0x42a98b,_0x422abd[_0x433599(0x182)],messageTypes[_0x433599(0x1ba)],null,null,_0x42a98b);const _0x3a94e8=await _0x422abd['iYEwP'](promisifiedRequest,_0x4d640d);if(_0x422abd[_0x433599(0x1ae)](_0x3a94e8,null)&&_0x422abd[_0x433599(0x189)](_0x3a94e8,undefined)&&_0x422abd['CQdnf'](_0x3a94e8[_0x433599(0x1cd)],0xc8)){const _0x34cb84=JSON[_0x433599(0x1c6)](_0x3a94e8[_0x433599(0x18e)]);console['log'](_0x422abd[_0x433599(0x1b6)]);const _0x244563=[];_0x244563[_0x433599(0x17e)]([_0x422abd[_0x433599(0x17b)],_0x422abd[_0x433599(0x1c1)],_0x422abd['miXfd'],_0x422abd[_0x433599(0x1a7)],_0x422abd[_0x433599(0x196)],_0x422abd[_0x433599(0x17f)]]),_0x34cb84['forEach'](_0x3777a8=>{const _0x2e7d45=_0x433599;_0x244563['push']([_0x3777a8['id'],_0x3777a8[_0x2e7d45(0x177)],_0x3777a8[_0x2e7d45(0x184)],_0x3777a8[_0x2e7d45(0x1b5)],_0x3777a8[_0x2e7d45(0x1a6)],_0x3777a8[_0x2e7d45(0x191)]]);}),console[_0x433599(0x1a5)](_0x422abd[_0x433599(0x1ab)](table,_0x244563)),process[_0x433599(0x195)](0x0);}_0x422abd['KnnZh'](_0x3a94e8[_0x433599(0x1cd)],0x191)&&(console[_0x433599(0x1c3)](_0x433599(0x1c9)),await _0x422abd[_0x433599(0x19d)](sendInstrumentationEvent,_0x42a98b,_0x422abd[_0x433599(0x182)],messageTypes[_0x433599(0x187)],_0x422abd[_0x433599(0x1b2)],null,_0x42a98b),process[_0x433599(0x195)](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x433599(0x185)](_0x3a94e8)),await _0x422abd[_0x433599(0x190)](sendInstrumentationEvent,_0x42a98b,_0x422abd[_0x433599(0x182)],messageTypes['ERROR'],_0x422abd[_0x433599(0x1a0)],_0x3a94e8,_0x42a98b),process['exit'](0x1);}catch(_0x14672e){console['error'](_0x433599(0x1a4)+_0x14672e[_0x433599(0x1c8)]),await _0x422abd[_0x433599(0x188)](sendInstrumentationEvent,_0x42a98b,_0x422abd[_0x433599(0x182)],messageTypes[_0x433599(0x187)],_0x422abd[_0x433599(0x19f)],_0x14672e,_0x42a98b),process['exit'](0x1);}};function a16_0x5767(){const _0x2032d1=['unauthorised','running','UYVvV','type','Browserstack','existsSync','INFO','GET','description','unknown-error','\x0aFound\x20the\x20following\x20grids:\x0a','grid-name','Use\x20this\x20option\x20to\x20list\x20all\x20the\x20grids\x20for\x20your\x20group.','aRDWT','server-error','error','/packages/cli/get-all-grids','username','parse','allGrids','stack','Failed\x20to\x20fetch\x20grid\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','fsFKo','1645878GRwcyq','cluster-name','statusCode','requestId','handler','name','640656LYMDKU','readFileSync','help','FnCrJ','init-not-called','grid-id','push','gSJvi','all-grids','258FXoBZF','gGYWb','QvcMW','status','stringify','https://','ERROR','Akvel','uhKIC','12501YOMEMg','options','spOsk','1465844ppRFil','body','jiBzD','pGVBz','clusterName','builder','6328812iMMAxi','bstackUsername','exit','pWQKg','usage','IMhcm','list-grids-called','password','list','grid','aDMNc','uuid','PqqdS','uochJ','table','bstackAccesskey','grids','Failed\x20to\x20list\x20resources!\x20Error:\x20','log','queued','hHuZh','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','epilogue','url','iYEwP','XBcXQ','57388rDCPlv','PIPXA','4256810clCYJq','promisify','PRUkL','tKqis','14816liJrJP'];a16_0x5767=function(){return _0x2032d1;};return a16_0x5767();}