browserstack-node-sdk 1.35.10 → 1.36.0

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 (140) hide show
  1. package/ats/src/CFTemplates/aws-eks-cluster-dep.yaml +13 -1
  2. package/ats/src/cloudproviders/AWS.js +1 -1
  3. package/ats/src/cloudproviders/Azure.js +1 -1
  4. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/GoogleCloudProvider.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/commands/precheck.js +1 -1
  19. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  20. package/ats/src/commands/start.js +1 -1
  21. package/ats/src/commands/start_commands/grid.js +1 -1
  22. package/ats/src/commands/stop.js +1 -1
  23. package/ats/src/commands/stop_commands/grid.js +1 -1
  24. package/ats/src/config/constants.js +1 -1
  25. package/ats/src/config/logger.js +1 -1
  26. package/ats/src/index.js +1 -1
  27. package/ats/src/templates/azureresources/akscluster.json +9 -1
  28. package/ats/src/templates/gcpresources/gkecluster.json +6 -2
  29. package/ats/src/utils/AWSUtils.js +1 -1
  30. package/ats/src/utils/createAutoscalerStack.js +1 -1
  31. package/ats/src/utils/createClusterStack.js +1 -1
  32. package/ats/src/utils/createHubHaStack.js +1 -1
  33. package/ats/src/utils/createk8sClient.js +1 -1
  34. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  35. package/ats/src/utils/deleteStack.js +1 -1
  36. package/ats/src/utils/describeStack.js +1 -1
  37. package/ats/src/utils/gridComponents.js +1 -1
  38. package/ats/src/utils/hstUtils.js +1 -1
  39. package/ats/src/utils/instrumentationUtils.js +1 -1
  40. package/ats/src/utils/userInput.js +1 -1
  41. package/ats/src/utils/utilityMethods.js +1 -1
  42. package/ats/src/utils/webSocketUtils.js +1 -1
  43. package/package.json +1 -1
  44. package/src/ai-sdk-node/bundle.js +1 -1
  45. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  46. package/src/bin/codeceptjs/command.js +1 -1
  47. package/src/bin/codeceptjs/helper.js +1 -1
  48. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  49. package/src/bin/cucumber-js/command.js +1 -1
  50. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  51. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  52. package/src/bin/cucumber-js/test-observability.js +1 -1
  53. package/src/bin/cucumber-js/test.setup.js +1 -1
  54. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  55. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  56. package/src/bin/integrations/command.js +1 -1
  57. package/src/bin/integrations/constants.js +1 -1
  58. package/src/bin/jest/command.js +1 -1
  59. package/src/bin/jest/customImplements/customCircus.js +1 -1
  60. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  61. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test_before.setup.js +1 -1
  69. package/src/bin/launcher/launcher.js +1 -1
  70. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  71. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  72. package/src/bin/mocha/command.js +1 -1
  73. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  74. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  75. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  76. package/src/bin/mocha/test.setup.js +1 -1
  77. package/src/bin/nightwatch/command.js +1 -1
  78. package/src/bin/playwright/accessibility-helper.js +1 -1
  79. package/src/bin/playwright/command.js +1 -1
  80. package/src/bin/playwright/globalSetup.js +1 -1
  81. package/src/bin/playwright/mock-process.js +1 -1
  82. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  83. package/src/bin/playwright/patches.js +1 -1
  84. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  85. package/src/bin/playwright/reporter/reporter.js +1 -1
  86. package/src/bin/playwright/reporter/test-details.js +1 -1
  87. package/src/bin/playwright/sessionDetails.js +1 -1
  88. package/src/bin/runner.js +1 -1
  89. package/src/bin/setup.js +1 -1
  90. package/src/bin/test-runner/index.js +1 -1
  91. package/src/bin/test-runner/runTest.js +1 -1
  92. package/src/bin/test-runner/testWorker.js +1 -1
  93. package/src/bin/utils/constants.js +1 -1
  94. package/src/bin/utils/log4jsAppender.js +1 -1
  95. package/src/bin/utils/logPatcher.js +1 -1
  96. package/src/bin/utils/logReportingAPI.js +1 -1
  97. package/src/bin/vanilla-js/command.js +1 -1
  98. package/src/browserStackSdk.js +1 -1
  99. package/src/helpers/BrowserStackSetup.js +1 -1
  100. package/src/helpers/accessibility-automation/constants.js +1 -1
  101. package/src/helpers/accessibility-automation/helper.js +1 -1
  102. package/src/helpers/accessibility-automation/scripts.js +1 -1
  103. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  104. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  105. package/src/helpers/ats/constants.js +1 -1
  106. package/src/helpers/ats/helper.js +1 -1
  107. package/src/helpers/capsMapping.js +1 -1
  108. package/src/helpers/central-scanner/constants.js +1 -1
  109. package/src/helpers/central-scanner/helpers.js +1 -1
  110. package/src/helpers/globals.js +1 -1
  111. package/src/helpers/helper.js +1 -1
  112. package/src/helpers/logger.js +1 -1
  113. package/src/helpers/metadata.js +1 -1
  114. package/src/helpers/patchHelper.js +1 -1
  115. package/src/helpers/patchHelpers.js +1 -1
  116. package/src/helpers/percy/Percy.js +1 -1
  117. package/src/helpers/percy/PercyBinary.js +1 -1
  118. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  119. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  120. package/src/helpers/percy/PercySDK.js +1 -1
  121. package/src/helpers/percy/index.js +1 -1
  122. package/src/helpers/percy/utils.js +1 -1
  123. package/src/helpers/performance/constants.js +1 -1
  124. package/src/helpers/performance/performance-tester.js +1 -1
  125. package/src/helpers/processHelper.js +1 -1
  126. package/src/helpers/request-spy.js +1 -1
  127. package/src/helpers/setKeepAlive.js +1 -1
  128. package/src/helpers/test-observability/constants.js +1 -1
  129. package/src/helpers/test-observability/error-handler.js +1 -1
  130. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  131. package/src/helpers/test-observability/sessionHandler.js +1 -1
  132. package/src/helpers/test-observability/utils.js +1 -1
  133. package/src/helpers/testhub/constants.js +1 -1
  134. package/src/helpers/testhub/testhubHandler.js +1 -1
  135. package/src/helpers/testhub/utils.js +1 -1
  136. package/src/helpers/timeoutPromise.js +1 -1
  137. package/src/helpers/utilities.js +1 -1
  138. package/src/helpers/w3cMapping.js +1 -1
  139. package/src/hubAllocationMethods.js +1 -1
  140. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a4_0x3afa9d=a4_0x53dc;function a4_0xe32d(){const _0x317eb0=['18664SNGTzC','afomR','20wwawGT','./Azure','init','../utils/instrumentationUtils','stack','../utils/utilityMethods','YCUxo','HvJAI','exit','getCloudProviderObject','182128SRlaSM','1084563ruLHZx','error','create-grid-called','Unknown\x20cloud\x20provider\x20found\x20-\x20','./GoogleCloudProvider',',\x20stacktrace:\x20','dMbdQ','./AWS','247544AjIZGO','pFKKS','650454JsLRuo','37924TrUlOU','../config/constants','node','2286sphslR','\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.','1959629ugdAca','kaTRB','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20','grid-spawning-failed','Current\x20Node.js\x20version\x20','ERROR','getCloudProviderObjectWithOutInit','versions'];a4_0xe32d=function(){return _0x317eb0;};return a4_0xe32d();}function a4_0x53dc(_0x34426a,_0x4f172b){const _0xe32d44=a4_0xe32d();return a4_0x53dc=function(_0x53dc07,_0x3038c4){_0x53dc07=_0x53dc07-0x13f;let _0x521ee9=_0xe32d44[_0x53dc07];return _0x521ee9;},a4_0x53dc(_0x34426a,_0x4f172b);}(function(_0x55c843,_0x23ebe2){const _0xbfea8e=a4_0x53dc,_0x5480fe=_0x55c843();while(!![]){try{const _0x2940c4=-parseInt(_0xbfea8e(0x14e))/0x1+-parseInt(_0xbfea8e(0x157))/0x2+parseInt(_0xbfea8e(0x14f))/0x3+parseInt(_0xbfea8e(0x15a))/0x4*(-parseInt(_0xbfea8e(0x144))/0x5)+-parseInt(_0xbfea8e(0x159))/0x6+-parseInt(_0xbfea8e(0x15f))/0x7+parseInt(_0xbfea8e(0x142))/0x8*(parseInt(_0xbfea8e(0x15d))/0x9);if(_0x2940c4===_0x23ebe2)break;else _0x5480fe['push'](_0x5480fe['shift']());}catch(_0xa79b47){_0x5480fe['push'](_0x5480fe['shift']());}}}(a4_0xe32d,0x362e3));const {AWSCloudProvider}=require(a4_0x3afa9d(0x156)),{GoogleCloudProvider}=require(a4_0x3afa9d(0x153)),{installAzurePackages,IsNodeCompatibleWithAzure}=require(a4_0x3afa9d(0x149)),{AWS,AZURE,GCP,messageTypes}=require(a4_0x3afa9d(0x15b)),{sendInstrumentationEvent}=require(a4_0x3afa9d(0x147)),{logger}=require('../config/logger');exports[a4_0x3afa9d(0x14d)]=async(_0x3f5d0d,_0x542819,_0x1989a8,_0x422c88,_0x211278,_0x4f9840)=>{const _0x1461fd=a4_0x3afa9d,_0x3b5bf8={'kaTRB':function(_0xd1fde2){return _0xd1fde2();},'RoJFF':function(_0x1de319,_0x40f752){return _0x1de319(_0x40f752);},'dMbdQ':_0x1461fd(0x145),'pFKKS':function(_0x138d2b,_0x49ffc7,_0x4a1af8,_0x5b8d42,_0x499b51,_0x38b6e5,_0x5ec3f7){return _0x138d2b(_0x49ffc7,_0x4a1af8,_0x5b8d42,_0x499b51,_0x38b6e5,_0x5ec3f7);},'afomR':_0x1461fd(0x151),'HKGVM':_0x1461fd(0x162)};switch(_0x3f5d0d){case AWS:{const _0x3781f2=new AWSCloudProvider(_0x542819,_0x1989a8,_0x422c88,_0x211278);return await _0x3781f2[_0x1461fd(0x146)]();}case GCP:{const _0x2f4b6d=new GoogleCloudProvider(_0x542819,_0x1989a8,_0x422c88,_0x211278);return await _0x2f4b6d[_0x1461fd(0x146)]();}case AZURE:{try{await _0x3b5bf8[_0x1461fd(0x160)](installAzurePackages);const {AzureCloudProvider:_0x5f12dc}=_0x3b5bf8['RoJFF'](require,_0x3b5bf8[_0x1461fd(0x155)]),_0xbe754e=new _0x5f12dc(_0x542819,_0x1989a8,_0x422c88,_0x211278);return await _0xbe754e[_0x1461fd(0x146)]();}catch(_0x52bacd){const _0x25e236=_0x1461fd(0x163)+process['versions'][_0x1461fd(0x15c)]+_0x1461fd(0x161)+_0x52bacd['message']+_0x1461fd(0x154)+_0x52bacd[_0x1461fd(0x148)];logger[_0x1461fd(0x150)](_0x25e236);const _0x2ece72={};_0x2ece72[_0x1461fd(0x150)]=_0x25e236,await _0x3b5bf8[_0x1461fd(0x158)](sendInstrumentationEvent,_0x4f9840,_0x3b5bf8[_0x1461fd(0x143)],messageTypes[_0x1461fd(0x13f)],_0x3b5bf8['HKGVM'],_0x2ece72,_0x4f9840),process[_0x1461fd(0x14c)](0x1);}}default:logger['error'](_0x1461fd(0x152)+_0x3f5d0d),process[_0x1461fd(0x14c)](0x1);}},exports[a4_0x3afa9d(0x140)]=async(_0x36307e,_0x1ec0ab,_0x501ada,_0x5c8624,_0x391200,_0x98d39d)=>{const _0x20e99c=a4_0x3afa9d,_0x3a65d0={'YCUxo':function(_0xf071f1){return _0xf071f1();},'kIoSr':function(_0x206f0e,_0x45bd31){return _0x206f0e(_0x45bd31);},'HvJAI':'./Azure'};switch(_0x36307e){case AWS:return new AWSCloudProvider(_0x1ec0ab,_0x501ada,_0x5c8624,_0x391200);case GCP:return new GoogleCloudProvider(_0x1ec0ab,_0x501ada,_0x5c8624,_0x391200);case AZURE:{!_0x3a65d0[_0x20e99c(0x14a)](IsNodeCompatibleWithAzure)&&(logger[_0x20e99c(0x150)](_0x20e99c(0x163)+process[_0x20e99c(0x141)][_0x20e99c(0x15c)]+_0x20e99c(0x15e)),process['exit'](0x1));await _0x3a65d0[_0x20e99c(0x14a)](installAzurePackages);const {AzureCloudProvider:_0x1071e1}=_0x3a65d0['kIoSr'](require,_0x3a65d0[_0x20e99c(0x14b)]);return new _0x1071e1(_0x1ec0ab,_0x501ada,_0x5c8624,_0x391200);}default:logger[_0x20e99c(0x150)](_0x20e99c(0x152)+_0x36307e),process['exit'](0x1);}};
1
+ const a4_0x3820b6=a4_0x1f88;(function(_0x7efa62,_0x3f6ba4){const _0x18db4b=a4_0x1f88,_0x556639=_0x7efa62();while(!![]){try{const _0x38bde3=-parseInt(_0x18db4b(0x199))/0x1*(-parseInt(_0x18db4b(0x1a5))/0x2)+parseInt(_0x18db4b(0x1ac))/0x3+parseInt(_0x18db4b(0x1ad))/0x4+-parseInt(_0x18db4b(0x1a1))/0x5+-parseInt(_0x18db4b(0x19e))/0x6*(parseInt(_0x18db4b(0x1b2))/0x7)+parseInt(_0x18db4b(0x19f))/0x8+-parseInt(_0x18db4b(0x1b7))/0x9*(-parseInt(_0x18db4b(0x198))/0xa);if(_0x38bde3===_0x3f6ba4)break;else _0x556639['push'](_0x556639['shift']());}catch(_0xeca96c){_0x556639['push'](_0x556639['shift']());}}}(a4_0xab03,0xcc656));function a4_0x1f88(_0x11b9a1,_0x466a82){const _0xab03fa=a4_0xab03();return a4_0x1f88=function(_0x1f88b1,_0x3d353d){_0x1f88b1=_0x1f88b1-0x196;let _0x269f8e=_0xab03fa[_0x1f88b1];return _0x269f8e;},a4_0x1f88(_0x11b9a1,_0x466a82);}const {AWSCloudProvider}=require('./AWS'),{GoogleCloudProvider}=require('./GoogleCloudProvider'),{installAzurePackages,IsNodeCompatibleWithAzure}=require(a4_0x3820b6(0x1b0)),{AWS,AZURE,GCP,messageTypes}=require(a4_0x3820b6(0x19b)),{sendInstrumentationEvent}=require(a4_0x3820b6(0x1a2)),{logger}=require(a4_0x3820b6(0x1a7));function a4_0xab03(){const _0x13139=['../utils/utilityMethods','message','159908izPMQz','getCloudProviderObject','stack','PNkMz',',\x20stacktrace:\x20','54nyheoc','Unknown\x20cloud\x20provider\x20found\x20-\x20','exit','ERROR','942190qmUxJe','42530clkUGm','create-grid-called','../config/constants','fDidN','./Azure','390rsbkSd','1803696RizWGM','init','2229955EmNhkM','../utils/instrumentationUtils','\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.','KNckf','2rCpvhR','JtOOV','../config/logger','fkmWB','error','node','getCloudProviderObjectWithOutInit','2166291ntmXcT','4850616lWXnsw','\x20is\x20not\x20supported.\x20Please\x20use\x20Node.js\x20version\x2018\x20or\x20higher\x20to\x20setup\x20your\x20grid\x20in\x20Azure.\x20Error:\x20','Current\x20Node.js\x20version\x20'];a4_0xab03=function(){return _0x13139;};return a4_0xab03();}exports[a4_0x3820b6(0x1b3)]=async(_0x3d744b,_0x18096d,_0x270806,_0x203921,_0x9a464c,_0x46f439)=>{const _0x1c8c8d=a4_0x3820b6,_0xefe02d={'sirer':function(_0x419cd4){return _0x419cd4();},'rbhJC':function(_0x7a316f,_0x219be6){return _0x7a316f(_0x219be6);},'JtxFm':'./Azure','KNckf':function(_0x2eb150,_0x49731d,_0x26ce25,_0x5e73d9,_0x3490de,_0xba23f0,_0x3ef493){return _0x2eb150(_0x49731d,_0x26ce25,_0x5e73d9,_0x3490de,_0xba23f0,_0x3ef493);},'jyEHd':_0x1c8c8d(0x19a),'fDidN':'grid-spawning-failed'};switch(_0x3d744b){case AWS:{const _0x4368bd=new AWSCloudProvider(_0x18096d,_0x270806,_0x203921,_0x9a464c);return await _0x4368bd[_0x1c8c8d(0x1a0)]();}case GCP:{const _0x3cc93f=new GoogleCloudProvider(_0x18096d,_0x270806,_0x203921,_0x9a464c);return await _0x3cc93f[_0x1c8c8d(0x1a0)]();}case AZURE:{try{await _0xefe02d['sirer'](installAzurePackages);const {AzureCloudProvider:_0xcceb2}=_0xefe02d['rbhJC'](require,_0xefe02d['JtxFm']),_0x5ea7fc=new _0xcceb2(_0x18096d,_0x270806,_0x203921,_0x9a464c);return await _0x5ea7fc[_0x1c8c8d(0x1a0)]();}catch(_0x5516dd){const _0x124641=_0x1c8c8d(0x1af)+process['versions'][_0x1c8c8d(0x1aa)]+_0x1c8c8d(0x1ae)+_0x5516dd[_0x1c8c8d(0x1b1)]+_0x1c8c8d(0x1b6)+_0x5516dd[_0x1c8c8d(0x1b4)];logger[_0x1c8c8d(0x1a9)](_0x124641);const _0x18a481={};_0x18a481[_0x1c8c8d(0x1a9)]=_0x124641,await _0xefe02d[_0x1c8c8d(0x1a4)](sendInstrumentationEvent,_0x46f439,_0xefe02d['jyEHd'],messageTypes[_0x1c8c8d(0x197)],_0xefe02d[_0x1c8c8d(0x19c)],_0x18a481,_0x46f439),process[_0x1c8c8d(0x196)](0x1);}}default:logger[_0x1c8c8d(0x1a9)](_0x1c8c8d(0x1b8)+_0x3d744b),process['exit'](0x1);}},exports[a4_0x3820b6(0x1ab)]=async(_0x36c657,_0x1576bd,_0x2e5163,_0x389016,_0x1f610f,_0xe115a3)=>{const _0x235434=a4_0x3820b6,_0x27bf79={'JtOOV':function(_0x144dc7){return _0x144dc7();},'fkmWB':function(_0x405f85){return _0x405f85();},'PNkMz':function(_0x55b73f,_0x1383ab){return _0x55b73f(_0x1383ab);},'WdOdh':_0x235434(0x19d)};switch(_0x36c657){case AWS:return new AWSCloudProvider(_0x1576bd,_0x2e5163,_0x389016,_0x1f610f);case GCP:return new GoogleCloudProvider(_0x1576bd,_0x2e5163,_0x389016,_0x1f610f);case AZURE:{!_0x27bf79[_0x235434(0x1a6)](IsNodeCompatibleWithAzure)&&(logger['error']('Current\x20Node.js\x20version\x20'+process['versions'][_0x235434(0x1aa)]+_0x235434(0x1a3)),process['exit'](0x1));await _0x27bf79[_0x235434(0x1a8)](installAzurePackages);const {AzureCloudProvider:_0x199896}=_0x27bf79[_0x235434(0x1b5)](require,_0x27bf79['WdOdh']);return new _0x199896(_0x1576bd,_0x2e5163,_0x389016,_0x1f610f);}default:logger[_0x235434(0x1a9)](_0x235434(0x1b8)+_0x36c657),process[_0x235434(0x196)](0x1);}};
@@ -1 +1 @@
1
- function a5_0x1ae3(){const _0x8aaa66=['uPVnm','KfzDq','profileId','json','Failed\x20to\x20configure\x20resources!\x20Error:\x20','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','parse','ORVvs','got','OYYLe','unknown-error','FDGiw','NUuau','help','toLowerCase','strict','body','password','error','existsSync','epilogue','ERROR','QTEhB','hVlYt','../utils/instrumentationUtils','name','stringify','tuRxB','jMyEQ','nWrez','JpYre','init-not-called','ZSmsz','JDJKr','1241647iqsZUV','LZbQk','LqttP','MhZMT','https://','builder','Browserstack','Xbpdx','list','1614mAnnLy','MpYJO','../utils/utilityMethods','SuYzm','EHAcm','/packages/cli/configure','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','THkVJ','RTwTv','1259915skZlCD','usage','ZVCXD','exit','RKAOJ','log','LlDqo','5553936EKwEHU','355alIweh','requestId','argv','7BPFEGC','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','statusCode','YqAhW','RlSNg','mIGCd','290EOuZhT','GoMge','MUIEJ','invalid-selection','wjZnx','Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20','4374018kZixnt','FBOQm','Odnjr','gRuoz','\x20\x20username:\x20','nJcOp','username','invalid-input','DvFov','5873394bDfvEu','10552rBztCC','wwjag','configure-called','desc','command','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','633vUEIOH','efMBk','core:','recommendCommands','server-error','dzICP','length','configure','aZzsA','uuid','INFO','JPbhQ'];a5_0x1ae3=function(){return _0x8aaa66;};return a5_0x1ae3();}const a5_0x1d1f08=a5_0x35b7;(function(_0x24b69b,_0x31785c){const _0x3b300b=a5_0x35b7,_0x104b02=_0x24b69b();while(!![]){try{const _0x3826bc=-parseInt(_0x3b300b(0x13f))/0x1+-parseInt(_0x3b300b(0x136))/0x2*(-parseInt(_0x3b300b(0x167))/0x3)+parseInt(_0x3b300b(0x160))/0x4*(-parseInt(_0x3b300b(0x147))/0x5)+-parseInt(_0x3b300b(0x15f))/0x6*(parseInt(_0x3b300b(0x14a))/0x7)+-parseInt(_0x3b300b(0x146))/0x8+parseInt(_0x3b300b(0x156))/0x9+-parseInt(_0x3b300b(0x150))/0xa*(-parseInt(_0x3b300b(0x195))/0xb);if(_0x3826bc===_0x31785c)break;else _0x104b02['push'](_0x104b02['shift']());}catch(_0x3cbca2){_0x104b02['push'](_0x104b02['shift']());}}}(a5_0x1ae3,0xc598e));function a5_0x35b7(_0x2752cd,_0x3489f3){const _0x1ae34c=a5_0x1ae3();return a5_0x35b7=function(_0x35b718,_0x23f826){_0x35b718=_0x35b718-0x132;let _0x26c464=_0x1ae34c[_0x35b718];return _0x26c464;},a5_0x35b7(_0x2752cd,_0x3489f3);}const fs=require('fs'),got=require(a5_0x1d1f08(0x17b)),{v4:uuidv4}=require(a5_0x1d1f08(0x170)),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require('../config/constants'),{getCredentialsPath,getAuthHeader}=require(a5_0x1d1f08(0x138)),{sendInstrumentationEvent}=require(a5_0x1d1f08(0x18b));exports[a5_0x1d1f08(0x164)]=a5_0x1d1f08(0x16e),exports[a5_0x1d1f08(0x163)]='Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.',exports[a5_0x1d1f08(0x132)]=function(_0x2cf661){const _0x4e4893=a5_0x1d1f08,_0x5a4afe={};_0x5a4afe[_0x4e4893(0x161)]='help';const _0x346886=_0x5a4afe;return _0x2cf661[_0x4e4893(0x140)](HELP_HEADER_MESSAGE[_0x4e4893(0x16e)])[_0x4e4893(0x187)](HELP_FOOTER_MESSAGE)[_0x4e4893(0x180)](_0x346886[_0x4e4893(0x161)])[_0x4e4893(0x16a)]()[_0x4e4893(0x182)]()[_0x4e4893(0x149)];},exports['handler']=async function(_0x5cc084){const _0x338ebf=a5_0x1d1f08,_0x47bc59={'ZVCXD':function(_0x3bebb5){return _0x3bebb5();},'uPVnm':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','BZjwP':function(_0x5a50c9,_0x1f36a8,_0x51885d,_0x4e33e4,_0x32fbb7,_0x474185,_0x5182a8){return _0x5a50c9(_0x1f36a8,_0x51885d,_0x4e33e4,_0x32fbb7,_0x474185,_0x5182a8);},'KfzDq':_0x338ebf(0x162),'Odnjr':_0x338ebf(0x192),'nJcOp':function(_0xd3335e,_0x53fdae,_0x345271,_0xbc6559,_0x486284,_0x448085,_0x4120e4){return _0xd3335e(_0x53fdae,_0x345271,_0xbc6559,_0x486284,_0x448085,_0x4120e4);},'YqAhW':'GET','RTwTv':function(_0x2cb4ea,_0x1c1982,_0x3145d1){return _0x2cb4ea(_0x1c1982,_0x3145d1);},'ShdJb':function(_0x986446,_0x5234f3,_0x4bbbc2){return _0x986446(_0x5234f3,_0x4bbbc2);},'mIGCd':function(_0x171a54,_0x497129){return _0x171a54!==_0x497129;},'nWrez':function(_0x33a717,_0x3a3905){return _0x33a717!==_0x3a3905;},'SuYzm':function(_0x2644ab,_0x575da2){return _0x2644ab===_0x575da2;},'THkVJ':_0x338ebf(0x178),'JDJKr':_0x338ebf(0x169),'hVlYt':function(_0x538cca,_0x43e908){return _0x538cca(_0x43e908);},'RlSNg':_0x338ebf(0x165),'JPbhQ':function(_0x3f8bb8,_0x32c77d){return _0x3f8bb8===_0x32c77d;},'aZzsA':function(_0x332088,_0x25caf1){return _0x332088===_0x25caf1;},'LZbQk':'Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','GoMge':_0x338ebf(0x15d),'efMBk':function(_0x3a6abf,_0x2dc5d3){return _0x3a6abf===_0x2dc5d3;},'RKAOJ':'What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','NUuau':function(_0x51de4a,_0x1b1b08){return _0x51de4a<_0x1b1b08;},'Xbpdx':function(_0x4e6beb,_0x1199d4){return _0x4e6beb+_0x1199d4;},'jMyEQ':_0x338ebf(0x166),'ORVvs':function(_0xf724f0,_0x43948b){return _0xf724f0(_0x43948b);},'FDGiw':function(_0x3cbff8,_0x4920ac){return _0x3cbff8(_0x4920ac);},'wjZnx':function(_0x484032,_0x15b024){return _0x484032<=_0x15b024;},'LqttP':function(_0x1303c4,_0x53fe4d){return _0x1303c4>_0x53fe4d;},'MhZMT':_0x338ebf(0x153),'MUIEJ':function(_0x3916e9){return _0x3916e9();},'FBOQm':function(_0x4c9770,_0x5e826a){return _0x4c9770-_0x5e826a;},'EHAcm':'PUT','JpYre':function(_0x5b25da,_0xf0fbd6,_0x39b17c){return _0x5b25da(_0xf0fbd6,_0x39b17c);},'MpYJO':_0x338ebf(0x176),'nrWHw':function(_0x259bb1,_0x10eaf2,_0x4fe247){return _0x259bb1(_0x10eaf2,_0x4fe247);},'DvFov':function(_0x4253bf,_0x478490){return _0x4253bf!==_0x478490;},'OYYLe':'Updated\x20default\x20Grid\x20Profile\x20successfully','dzICP':_0x338ebf(0x14b),'tuRxB':'unauthorised','MkTGP':function(_0x49dbff,_0x3ea7cf,_0x2d887f,_0x29e3e2,_0x4002e6,_0xb0ce7b,_0x47385){return _0x49dbff(_0x3ea7cf,_0x2d887f,_0x29e3e2,_0x4002e6,_0xb0ce7b,_0x47385);},'ZSmsz':_0x338ebf(0x16b),'LlDqo':_0x338ebf(0x13c),'gRuoz':function(_0x5d10f9,_0x5b812c,_0x53c35f,_0x4977d7,_0x3fb5af,_0x45f498,_0x1bcb47){return _0x5d10f9(_0x5b812c,_0x53c35f,_0x4977d7,_0x3fb5af,_0x45f498,_0x1bcb47);},'QTEhB':_0x338ebf(0x17d)};try{global_registry[_0x338ebf(0x148)]=_0x47bc59[_0x338ebf(0x141)](uuidv4);const _0x44fe62=_0x338ebf(0x199)+AG_API_URL+_0x338ebf(0x13b);!fs[_0x338ebf(0x186)](_0x47bc59[_0x338ebf(0x141)](getCredentialsPath))&&(console[_0x338ebf(0x185)](_0x47bc59[_0x338ebf(0x173)]),await _0x47bc59['BZjwP'](sendInstrumentationEvent,_0x5cc084,_0x47bc59[_0x338ebf(0x174)],messageTypes[_0x338ebf(0x188)],_0x47bc59[_0x338ebf(0x158)],null,_0x5cc084),process['exit'](0x1));await _0x47bc59[_0x338ebf(0x15b)](sendInstrumentationEvent,_0x5cc084,_0x47bc59[_0x338ebf(0x174)],messageTypes[_0x338ebf(0x171)],null,null,_0x5cc084);const _0x306fc1=JSON['parse'](fs['readFileSync'](_0x47bc59['ZVCXD'](getCredentialsPath))),_0x1ec570={'method':_0x47bc59[_0x338ebf(0x14d)],'headers':_0x47bc59[_0x338ebf(0x13e)](getAuthHeader,_0x306fc1['Browserstack']['username'],_0x306fc1[_0x338ebf(0x133)][_0x338ebf(0x184)]),'throwHttpErrors':![]},_0xe4ebd5=await _0x47bc59['ShdJb'](got,_0x44fe62,_0x1ec570);if(_0x47bc59[_0x338ebf(0x14f)](_0xe4ebd5,null)&&_0x47bc59[_0x338ebf(0x190)](_0xe4ebd5,undefined)&&_0x47bc59[_0x338ebf(0x139)](_0xe4ebd5['statusCode'],0xc8)){const _0x2cbec4=JSON[_0x338ebf(0x179)](_0xe4ebd5[_0x338ebf(0x183)]);console[_0x338ebf(0x144)](_0x47bc59[_0x338ebf(0x13d)]),console[_0x338ebf(0x144)](_0x47bc59[_0x338ebf(0x194)]),console[_0x338ebf(0x144)](_0x338ebf(0x15a)+_0x306fc1[_0x338ebf(0x133)]['username']),console[_0x338ebf(0x144)]('\x20\x20grid-profile:\x20'+_0x2cbec4['active']['name']);const _0x4b1cb0=await _0x47bc59[_0x338ebf(0x18a)](inputConfirmation,_0x47bc59[_0x338ebf(0x14e)]);(_0x47bc59[_0x338ebf(0x172)](_0x4b1cb0,undefined)||_0x47bc59[_0x338ebf(0x172)](_0x4b1cb0,null)||!(_0x47bc59[_0x338ebf(0x172)](_0x4b1cb0['toLowerCase'](),'y')||_0x47bc59[_0x338ebf(0x16f)](_0x4b1cb0[_0x338ebf(0x181)](),'n')))&&(console[_0x338ebf(0x185)](_0x47bc59[_0x338ebf(0x196)]),await _0x47bc59[_0x338ebf(0x15b)](sendInstrumentationEvent,_0x5cc084,_0x47bc59[_0x338ebf(0x174)],messageTypes[_0x338ebf(0x188)],_0x47bc59[_0x338ebf(0x151)],null,_0x5cc084),process[_0x338ebf(0x142)](0x1));_0x47bc59[_0x338ebf(0x168)](_0x4b1cb0['toLowerCase'](),'n')&&process[_0x338ebf(0x142)](0x0);console[_0x338ebf(0x144)](_0x47bc59[_0x338ebf(0x143)]);const _0x1ec784=_0x2cbec4[_0x338ebf(0x135)][_0x338ebf(0x16d)];for(let _0x741cfc=0x0;_0x47bc59[_0x338ebf(0x17f)](_0x741cfc,_0x1ec784);_0x741cfc+=0x1){console['log']('['+_0x47bc59[_0x338ebf(0x134)](_0x741cfc,0x1)+']\x20'+_0x2cbec4[_0x338ebf(0x135)][_0x741cfc][_0x338ebf(0x18c)]);}const _0x8597ad=await _0x47bc59[_0x338ebf(0x18a)](inputConfirmation,_0x47bc59[_0x338ebf(0x18f)]),_0x8ae6b5=_0x47bc59[_0x338ebf(0x17a)](Number,_0x8597ad);(_0x47bc59[_0x338ebf(0x17e)](isNaN,_0x8ae6b5)||_0x47bc59[_0x338ebf(0x154)](_0x8ae6b5,0x0)||_0x47bc59[_0x338ebf(0x197)](_0x8ae6b5,_0x1ec784))&&(console[_0x338ebf(0x185)](_0x47bc59[_0x338ebf(0x196)]),await _0x47bc59['nJcOp'](sendInstrumentationEvent,_0x5cc084,_0x47bc59[_0x338ebf(0x174)],messageTypes[_0x338ebf(0x188)],_0x47bc59[_0x338ebf(0x198)],null,_0x5cc084),process[_0x338ebf(0x142)](0x1));_0x47bc59[_0x338ebf(0x152)](closeInput);const _0xf61309=_0x2cbec4['list'][_0x47bc59[_0x338ebf(0x157)](_0x8ae6b5,0x1)]['id'],_0x1da7c0={};_0x1da7c0[_0x338ebf(0x175)]=_0xf61309;const _0x3ee815={'method':_0x47bc59[_0x338ebf(0x13a)],'headers':_0x47bc59[_0x338ebf(0x191)](getAuthHeader,_0x306fc1[_0x338ebf(0x133)][_0x338ebf(0x15c)],_0x306fc1[_0x338ebf(0x133)][_0x338ebf(0x184)]),'json':_0x1da7c0,'responseType':_0x47bc59[_0x338ebf(0x137)],'throwHttpErrors':![]},_0x54925d=await _0x47bc59['nrWHw'](got,_0x44fe62,_0x3ee815);_0x47bc59[_0x338ebf(0x15e)](_0x54925d,null)&&_0x47bc59[_0x338ebf(0x15e)](_0x54925d,undefined)&&_0x47bc59[_0x338ebf(0x168)](_0x54925d[_0x338ebf(0x14c)],0xc8)&&(console[_0x338ebf(0x144)](_0x47bc59[_0x338ebf(0x17c)]),process[_0x338ebf(0x142)](0x0)),_0x47bc59[_0x338ebf(0x139)](_0x54925d[_0x338ebf(0x14c)],0x191)&&(console[_0x338ebf(0x185)](_0x47bc59[_0x338ebf(0x16c)]),await _0x47bc59[_0x338ebf(0x15b)](sendInstrumentationEvent,_0x5cc084,_0x47bc59['KfzDq'],messageTypes[_0x338ebf(0x188)],_0x47bc59['tuRxB'],null,_0x5cc084),process['exit'](0x1)),console[_0x338ebf(0x185)](_0x338ebf(0x155)+JSON[_0x338ebf(0x18d)](_0x54925d)),await _0x47bc59['MkTGP'](sendInstrumentationEvent,_0x5cc084,_0x47bc59[_0x338ebf(0x174)],messageTypes[_0x338ebf(0x188)],_0x47bc59[_0x338ebf(0x193)],_0x54925d,_0x5cc084),process['exit'](0x1);}_0x47bc59[_0x338ebf(0x168)](_0xe4ebd5[_0x338ebf(0x14c)],0x191)&&(console[_0x338ebf(0x185)](_0x47bc59[_0x338ebf(0x145)]),await _0x47bc59[_0x338ebf(0x159)](sendInstrumentationEvent,_0x5cc084,_0x47bc59[_0x338ebf(0x174)],messageTypes[_0x338ebf(0x188)],_0x47bc59[_0x338ebf(0x18e)],null,_0x5cc084),process['exit'](0x1)),console['error']('Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20'+JSON[_0x338ebf(0x18d)](_0xe4ebd5)),await _0x47bc59[_0x338ebf(0x15b)](sendInstrumentationEvent,_0x5cc084,_0x47bc59['KfzDq'],messageTypes[_0x338ebf(0x188)],_0x47bc59['ZSmsz'],_0xe4ebd5,_0x5cc084),process[_0x338ebf(0x142)](0x1);}catch(_0x58d7e1){console[_0x338ebf(0x185)](_0x338ebf(0x177)+_0x58d7e1['stack']),await _0x47bc59[_0x338ebf(0x159)](sendInstrumentationEvent,_0x5cc084,_0x47bc59['KfzDq'],messageTypes['ERROR'],_0x47bc59[_0x338ebf(0x189)],_0x58d7e1,_0x5cc084),process['exit'](0x1);}};
1
+ const a5_0x3421d2=a5_0x14db;function a5_0x14db(_0x19c7a0,_0x298767){const _0x1f0f1e=a5_0x1f0f();return a5_0x14db=function(_0x14dbfa,_0x1c84ee){_0x14dbfa=_0x14dbfa-0x194;let _0x4b2f17=_0x1f0f1e[_0x14dbfa];return _0x4b2f17;},a5_0x14db(_0x19c7a0,_0x298767);}function a5_0x1f0f(){const _0x29caca=['EKmyq','jWfoh','INFO','28YvLeWd','../utils/instrumentationUtils','yITsx','requestId','NqWWm','Configure\x20the\x20default\x20automation\x20grid\x20profiles\x20on\x20BrowserStack\x20CLI.','profileId','invalid-input','2160780HxeADq','epilogue','isyay','../config/constants','wLUkW','Browserstack','uuid','317350YHbiKN','6450190TLWyZA','Failed\x20to\x20configure\x20resources!\x20Error:\x20','builder','/packages/cli/configure','exit','password','bVKLP','GelFM','SeBwu','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','tliZj','Failed\x20to\x20update\x20grid\x20profile.\x20Unauthorized\x20request!','CXcdy','154938mCoTAQ','desc','hSdDN','oEjzq','statusCode','stringify','json','PvaGX','length','\x20\x20username:\x20','116McNKmQ','Please\x20enter\x20numeric\x20choice\x20(must\x20exactly\x20match\x20list\x20item)','zZchq','error','xSXRp','313687GGBTit','PUT','63LIxoRX','Kfcdi','argv','existsSync','server-error','handler','log','SjWQo','VrDuF','OlmrA','HdUvg','Do\x20you\x20want\x20to\x20change\x20the\x20default\x20grid-profile\x20(y/n)?','ecJAc','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Unauthorized\x20request!','toLowerCase','YiOCt','core:','hnoYK','invalid-selection','yPgZB','rfvOS','sbHEi','\x0aCurrent\x20configured\x20automation\x20grid\x20settings\x20are:','GET','520PYKvVv','../utils/utilityMethods','name','1718082JXVIYE','ERROR','jrPLg','parse','usage','hWHBv','active','htkdO','Failed\x20to\x20fetch\x20grid\x20profile\x20details\x20from\x20the\x20server.\x20Response\x20from\x20server:\x20','init-not-called','qbZJc','username','sGkYp','list','535112YFdfke','configure-called','LaLCD','cNpuv','configure','help','strict','unknown-error','jxvsW','Wrong\x20input!\x20Please\x20try\x20again\x20with\x20a\x20valid\x20input.','MKWmd','veesc'];a5_0x1f0f=function(){return _0x29caca;};return a5_0x1f0f();}(function(_0x68b831,_0x3b0ade){const _0x25896b=a5_0x14db,_0x715d60=_0x68b831();while(!![]){try{const _0x39da3c=-parseInt(_0x25896b(0x1ed))/0x1+parseInt(_0x25896b(0x1c1))/0x2+parseInt(_0x25896b(0x195))/0x3*(-parseInt(_0x25896b(0x19f))/0x4)+parseInt(_0x25896b(0x1ee))/0x5+parseInt(_0x25896b(0x1e6))/0x6*(-parseInt(_0x25896b(0x1de))/0x7)+-parseInt(_0x25896b(0x1cf))/0x8*(-parseInt(_0x25896b(0x1a6))/0x9)+-parseInt(_0x25896b(0x1be))/0xa*(-parseInt(_0x25896b(0x1a4))/0xb);if(_0x39da3c===_0x3b0ade)break;else _0x715d60['push'](_0x715d60['shift']());}catch(_0x2ba95d){_0x715d60['push'](_0x715d60['shift']());}}}(a5_0x1f0f,0xce326));const fs=require('fs'),got=require('got'),{v4:uuidv4}=require(a5_0x3421d2(0x1ec)),{inputConfirmation,closeInput}=require('../utils/userInput'),{AG_API_URL,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,global_registry,messageTypes}=require(a5_0x3421d2(0x1e9)),{getCredentialsPath,getAuthHeader}=require(a5_0x3421d2(0x1bf)),{sendInstrumentationEvent}=require(a5_0x3421d2(0x1df));exports['command']=a5_0x3421d2(0x1d3),exports[a5_0x3421d2(0x196)]=a5_0x3421d2(0x1e3),exports[a5_0x3421d2(0x1f0)]=function(_0x2e21e0){const _0xf47a47=a5_0x3421d2,_0x421370={};_0x421370[_0xf47a47(0x1b9)]=_0xf47a47(0x1d4);const _0x2d9c1a=_0x421370;return _0x2e21e0[_0xf47a47(0x1c5)](HELP_HEADER_MESSAGE[_0xf47a47(0x1d3)])[_0xf47a47(0x1e7)](HELP_FOOTER_MESSAGE)[_0xf47a47(0x1d4)](_0x2d9c1a['yPgZB'])['recommendCommands']()[_0xf47a47(0x1d5)]()[_0xf47a47(0x1a8)];},exports[a5_0x3421d2(0x1ab)]=async function(_0x219ac1){const _0x3272d6=a5_0x3421d2,_0xcbccd0={'zZchq':function(_0xe13afc){return _0xe13afc();},'tgkce':_0x3272d6(0x1f7),'HdUvg':function(_0x39f465,_0x5ea9a9,_0x5cd273,_0x3ae351,_0x23ae72,_0x62bf9,_0x45b306){return _0x39f465(_0x5ea9a9,_0x5cd273,_0x3ae351,_0x23ae72,_0x62bf9,_0x45b306);},'cNpuv':_0x3272d6(0x1d0),'dozKG':_0x3272d6(0x1ca),'bVKLP':_0x3272d6(0x1bd),'yITsx':function(_0x182b60,_0x12e417,_0xabd736){return _0x182b60(_0x12e417,_0xabd736);},'LaLCD':function(_0x3d3eb3,_0x4fa745){return _0x3d3eb3!==_0x4fa745;},'YiOCt':function(_0x50a4c0,_0x4ec28f){return _0x50a4c0!==_0x4ec28f;},'CXcdy':function(_0x158196,_0x4b72e9){return _0x158196===_0x4b72e9;},'SjWQo':_0x3272d6(0x1bc),'rfvOS':_0x3272d6(0x1b6),'jrPLg':function(_0x4ff3ef,_0x2a0fc5){return _0x4ff3ef(_0x2a0fc5);},'jxvsW':_0x3272d6(0x1b1),'GelFM':function(_0x999257,_0x3d92f0){return _0x999257===_0x3d92f0;},'Kfcdi':function(_0xb272d8,_0x32a15f){return _0xb272d8===_0x32a15f;},'sGkYp':_0x3272d6(0x1d8),'sbHEi':_0x3272d6(0x1e5),'oEjzq':function(_0x492890,_0x203565){return _0x492890===_0x203565;},'GfPfY':'What\x20Grid\x20profile\x20will\x20you\x20make\x20as\x20default?','EKmyq':function(_0x27c020,_0xaa965e){return _0x27c020<_0xaa965e;},'bahqn':function(_0x19d806,_0x481b3e){return _0x19d806+_0x481b3e;},'htkdO':function(_0x2267a6,_0x2267eb){return _0x2267a6(_0x2267eb);},'VrDuF':_0x3272d6(0x1a0),'jeYwX':function(_0x282ee7,_0x3b242b){return _0x282ee7(_0x3b242b);},'jWfoh':function(_0x14a545,_0x565af3){return _0x14a545<=_0x565af3;},'hSdDN':function(_0x511029,_0x4e2354){return _0x511029>_0x4e2354;},'veesc':function(_0x1c1946,_0x31a56b,_0x58eb8e,_0x660442,_0x4f04d9,_0x2e6cec,_0x18000e){return _0x1c1946(_0x31a56b,_0x58eb8e,_0x660442,_0x4f04d9,_0x2e6cec,_0x18000e);},'xSXRp':_0x3272d6(0x1b8),'MKWmd':function(_0x547898,_0x493dbc){return _0x547898-_0x493dbc;},'OlmrA':_0x3272d6(0x1a5),'PvaGX':_0x3272d6(0x19b),'CQyni':function(_0x5985d7,_0x55cbcf){return _0x5985d7!==_0x55cbcf;},'ecJAc':function(_0x37fadd,_0x4581bb){return _0x37fadd===_0x4581bb;},'wLUkW':'Updated\x20default\x20Grid\x20Profile\x20successfully','tliZj':function(_0x1e30d3,_0x377d3c){return _0x1e30d3===_0x377d3c;},'SeBwu':_0x3272d6(0x1f9),'qbZJc':'unauthorised','hnoYK':function(_0x1b3062,_0x3e71e7,_0x2290dc,_0xa0e273,_0x34e755,_0x292df6,_0x2752cd){return _0x1b3062(_0x3e71e7,_0x2290dc,_0xa0e273,_0x34e755,_0x292df6,_0x2752cd);},'Uumlp':_0x3272d6(0x1aa),'BLrCl':function(_0x2ea8ef,_0x2e9085){return _0x2ea8ef===_0x2e9085;},'isyay':_0x3272d6(0x1b3),'NqWWm':function(_0x4aaa6a,_0x30ef2e,_0x507a42,_0x34573b,_0x138f43,_0x565529,_0x35606d){return _0x4aaa6a(_0x30ef2e,_0x507a42,_0x34573b,_0x138f43,_0x565529,_0x35606d);},'hWHBv':_0x3272d6(0x1d6)};try{global_registry[_0x3272d6(0x1e1)]=_0xcbccd0['zZchq'](uuidv4);const _0x45e6a3='https://'+AG_API_URL+_0x3272d6(0x1f1);!fs[_0x3272d6(0x1a9)](_0xcbccd0[_0x3272d6(0x1a1)](getCredentialsPath))&&(console['error'](_0xcbccd0['tgkce']),await _0xcbccd0[_0x3272d6(0x1b0)](sendInstrumentationEvent,_0x219ac1,_0xcbccd0[_0x3272d6(0x1d2)],messageTypes[_0x3272d6(0x1c2)],_0xcbccd0['dozKG'],null,_0x219ac1),process[_0x3272d6(0x1f2)](0x1));await _0xcbccd0[_0x3272d6(0x1b0)](sendInstrumentationEvent,_0x219ac1,_0xcbccd0[_0x3272d6(0x1d2)],messageTypes[_0x3272d6(0x1dd)],null,null,_0x219ac1);const _0x2402ce=JSON[_0x3272d6(0x1c4)](fs['readFileSync'](_0xcbccd0[_0x3272d6(0x1a1)](getCredentialsPath))),_0x4bd275={'method':_0xcbccd0[_0x3272d6(0x1f4)],'headers':_0xcbccd0[_0x3272d6(0x1e0)](getAuthHeader,_0x2402ce['Browserstack'][_0x3272d6(0x1cc)],_0x2402ce['Browserstack'][_0x3272d6(0x1f3)]),'throwHttpErrors':![]},_0x20046f=await _0xcbccd0[_0x3272d6(0x1e0)](got,_0x45e6a3,_0x4bd275);if(_0xcbccd0[_0x3272d6(0x1d1)](_0x20046f,null)&&_0xcbccd0[_0x3272d6(0x1b5)](_0x20046f,undefined)&&_0xcbccd0[_0x3272d6(0x194)](_0x20046f[_0x3272d6(0x199)],0xc8)){const _0x46de27=JSON[_0x3272d6(0x1c4)](_0x20046f['body']);console[_0x3272d6(0x1ac)](_0xcbccd0[_0x3272d6(0x1ad)]),console['log'](_0xcbccd0[_0x3272d6(0x1ba)]),console['log'](_0x3272d6(0x19e)+_0x2402ce[_0x3272d6(0x1eb)]['username']),console['log']('\x20\x20grid-profile:\x20'+_0x46de27[_0x3272d6(0x1c7)]['name']);const _0x347f39=await _0xcbccd0[_0x3272d6(0x1c3)](inputConfirmation,_0xcbccd0[_0x3272d6(0x1d7)]);(_0xcbccd0[_0x3272d6(0x194)](_0x347f39,undefined)||_0xcbccd0[_0x3272d6(0x1f5)](_0x347f39,null)||!(_0xcbccd0[_0x3272d6(0x1a7)](_0x347f39['toLowerCase'](),'y')||_0xcbccd0['GelFM'](_0x347f39[_0x3272d6(0x1b4)](),'n')))&&(console['error'](_0xcbccd0['sGkYp']),await _0xcbccd0[_0x3272d6(0x1b0)](sendInstrumentationEvent,_0x219ac1,_0xcbccd0[_0x3272d6(0x1d2)],messageTypes['ERROR'],_0xcbccd0[_0x3272d6(0x1bb)],null,_0x219ac1),process[_0x3272d6(0x1f2)](0x1));_0xcbccd0[_0x3272d6(0x198)](_0x347f39[_0x3272d6(0x1b4)](),'n')&&process[_0x3272d6(0x1f2)](0x0);console[_0x3272d6(0x1ac)](_0xcbccd0['GfPfY']);const _0x660883=_0x46de27[_0x3272d6(0x1ce)][_0x3272d6(0x19d)];for(let _0x5b5dc7=0x0;_0xcbccd0[_0x3272d6(0x1db)](_0x5b5dc7,_0x660883);_0x5b5dc7+=0x1){console[_0x3272d6(0x1ac)]('['+_0xcbccd0['bahqn'](_0x5b5dc7,0x1)+']\x20'+_0x46de27['list'][_0x5b5dc7][_0x3272d6(0x1c0)]);}const _0xdbe8ab=await _0xcbccd0[_0x3272d6(0x1c8)](inputConfirmation,_0xcbccd0[_0x3272d6(0x1ae)]),_0x378e83=_0xcbccd0[_0x3272d6(0x1c8)](Number,_0xdbe8ab);(_0xcbccd0['jeYwX'](isNaN,_0x378e83)||_0xcbccd0[_0x3272d6(0x1dc)](_0x378e83,0x0)||_0xcbccd0[_0x3272d6(0x197)](_0x378e83,_0x660883))&&(console['error'](_0xcbccd0[_0x3272d6(0x1cd)]),await _0xcbccd0[_0x3272d6(0x1da)](sendInstrumentationEvent,_0x219ac1,_0xcbccd0[_0x3272d6(0x1d2)],messageTypes[_0x3272d6(0x1c2)],_0xcbccd0[_0x3272d6(0x1a3)],null,_0x219ac1),process[_0x3272d6(0x1f2)](0x1));_0xcbccd0[_0x3272d6(0x1a1)](closeInput);const _0x2e4327=_0x46de27[_0x3272d6(0x1ce)][_0xcbccd0[_0x3272d6(0x1d9)](_0x378e83,0x1)]['id'],_0xc224f3={};_0xc224f3[_0x3272d6(0x1e4)]=_0x2e4327;const _0x145d5d={'method':_0xcbccd0[_0x3272d6(0x1af)],'headers':_0xcbccd0[_0x3272d6(0x1e0)](getAuthHeader,_0x2402ce[_0x3272d6(0x1eb)][_0x3272d6(0x1cc)],_0x2402ce[_0x3272d6(0x1eb)]['password']),'json':_0xc224f3,'responseType':_0xcbccd0[_0x3272d6(0x19c)],'throwHttpErrors':![]},_0xc12a11=await _0xcbccd0[_0x3272d6(0x1e0)](got,_0x45e6a3,_0x145d5d);_0xcbccd0[_0x3272d6(0x1b5)](_0xc12a11,null)&&_0xcbccd0['CQyni'](_0xc12a11,undefined)&&_0xcbccd0[_0x3272d6(0x1b2)](_0xc12a11[_0x3272d6(0x199)],0xc8)&&(console[_0x3272d6(0x1ac)](_0xcbccd0[_0x3272d6(0x1ea)]),process[_0x3272d6(0x1f2)](0x0)),_0xcbccd0[_0x3272d6(0x1f8)](_0xc12a11[_0x3272d6(0x199)],0x191)&&(console[_0x3272d6(0x1a2)](_0xcbccd0[_0x3272d6(0x1f6)]),await _0xcbccd0[_0x3272d6(0x1b0)](sendInstrumentationEvent,_0x219ac1,_0xcbccd0['cNpuv'],messageTypes[_0x3272d6(0x1c2)],_0xcbccd0[_0x3272d6(0x1cb)],null,_0x219ac1),process[_0x3272d6(0x1f2)](0x1)),console['error']('Failed\x20to\x20update\x20grid\x20profile.\x20Response\x20from\x20server:\x20'+JSON[_0x3272d6(0x19a)](_0xc12a11)),await _0xcbccd0[_0x3272d6(0x1b7)](sendInstrumentationEvent,_0x219ac1,_0xcbccd0[_0x3272d6(0x1d2)],messageTypes[_0x3272d6(0x1c2)],_0xcbccd0['Uumlp'],_0xc12a11,_0x219ac1),process['exit'](0x1);}_0xcbccd0['BLrCl'](_0x20046f[_0x3272d6(0x199)],0x191)&&(console[_0x3272d6(0x1a2)](_0xcbccd0[_0x3272d6(0x1e8)]),await _0xcbccd0[_0x3272d6(0x1b0)](sendInstrumentationEvent,_0x219ac1,_0xcbccd0['cNpuv'],messageTypes[_0x3272d6(0x1c2)],_0xcbccd0[_0x3272d6(0x1cb)],null,_0x219ac1),process[_0x3272d6(0x1f2)](0x1)),console[_0x3272d6(0x1a2)](_0x3272d6(0x1c9)+JSON['stringify'](_0x20046f)),await _0xcbccd0[_0x3272d6(0x1da)](sendInstrumentationEvent,_0x219ac1,_0xcbccd0['cNpuv'],messageTypes[_0x3272d6(0x1c2)],_0xcbccd0['Uumlp'],_0x20046f,_0x219ac1),process['exit'](0x1);}catch(_0x5809e2){console[_0x3272d6(0x1a2)](_0x3272d6(0x1ef)+_0x5809e2['stack']),await _0xcbccd0[_0x3272d6(0x1e2)](sendInstrumentationEvent,_0x219ac1,_0xcbccd0[_0x3272d6(0x1d2)],messageTypes[_0x3272d6(0x1c2)],_0xcbccd0[_0x3272d6(0x1c6)],_0x5809e2,_0x219ac1),process[_0x3272d6(0x1f2)](0x1);}};
@@ -1 +1 @@
1
- const a6_0x4dc718=a6_0x5b52;function a6_0xead4(){const _0x13e2a6=['../config/constants','899426CmcmMI','39448ZsLvrr','connect','recommendCommands','3UYhtbK','commandDir','4024881EpPfRK','30DleCDL','68793TrPgxA','handler','6599096bXOxfc','109160plLuaH','command','9193716LVOWyL','connect_commands','WfNWs','help','demandCommand','epilogue','kTnfb'];a6_0xead4=function(){return _0x13e2a6;};return a6_0xead4();}(function(_0x20e7b7,_0x5b2adb){const _0x200c9a=a6_0x5b52,_0x25db4b=_0x20e7b7();while(!![]){try{const _0x4494b0=-parseInt(_0x200c9a(0x1e5))/0x1+parseInt(_0x200c9a(0x1f2))/0x2*(-parseInt(_0x200c9a(0x1f6))/0x3)+-parseInt(_0x200c9a(0x1f3))/0x4+-parseInt(_0x200c9a(0x1e8))/0x5*(parseInt(_0x200c9a(0x1e4))/0x6)+-parseInt(_0x200c9a(0x1f8))/0x7+parseInt(_0x200c9a(0x1e7))/0x8+parseInt(_0x200c9a(0x1ea))/0x9;if(_0x4494b0===_0x5b2adb)break;else _0x25db4b['push'](_0x25db4b['shift']());}catch(_0x2c73c2){_0x25db4b['push'](_0x25db4b['shift']());}}}(a6_0xead4,0x9ac2c));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x4dc718(0x1f1));function a6_0x5b52(_0x5c2527,_0x25d29c){const _0xead46e=a6_0xead4();return a6_0x5b52=function(_0x5b52c7,_0x8c0e31){_0x5b52c7=_0x5b52c7-0x1e4;let _0x241290=_0xead46e[_0x5b52c7];return _0x241290;},a6_0x5b52(_0x5c2527,_0x25d29c);}exports[a6_0x4dc718(0x1e9)]='connect',exports['desc']='Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment',exports['builder']=function(_0x40f3d9){const _0x298a65=a6_0x4dc718,_0x2ce42c={};_0x2ce42c[_0x298a65(0x1f0)]=_0x298a65(0x1eb),_0x2ce42c[_0x298a65(0x1ec)]=_0x298a65(0x1ed);const _0x508097=_0x2ce42c;return _0x40f3d9['usage'](HELP_HEADER_MESSAGE[_0x298a65(0x1f4)])[_0x298a65(0x1ef)](HELP_FOOTER_MESSAGE)[_0x298a65(0x1f7)](_0x508097[_0x298a65(0x1f0)])[_0x298a65(0x1ee)]()[_0x298a65(0x1f5)]()['strict']()[_0x298a65(0x1ed)](_0x508097[_0x298a65(0x1ec)]);},exports[a6_0x4dc718(0x1e6)]=function(_0x47c280){};
1
+ function a6_0x3b39(_0xbe6f44,_0x510b4f){const _0xb0d5b3=a6_0xb0d5();return a6_0x3b39=function(_0x3b39ed,_0x5caee4){_0x3b39ed=_0x3b39ed-0x6e;let _0x465abf=_0xb0d5b3[_0x3b39ed];return _0x465abf;},a6_0x3b39(_0xbe6f44,_0x510b4f);}const a6_0x22ea25=a6_0x3b39;function a6_0xb0d5(){const _0x5f277e=['../config/constants','4695670uuVlOa','918050JPeAjr','24225djCPea','2441584juxEmE','epilogue','9OayltV','connect','96235HoAnNq','dtqGw','builder','desc','command','ytDGc','handler','291182flOWiD','recommendCommands','connect_commands','demandCommand','986967gyEytv','318DTpGxC','4UIgBdV','help'];a6_0xb0d5=function(){return _0x5f277e;};return a6_0xb0d5();}(function(_0x461c34,_0x239a81){const _0x34525e=a6_0x3b39,_0x1954fc=_0x461c34();while(!![]){try{const _0x32692a=parseInt(_0x34525e(0x7d))/0x1+-parseInt(_0x34525e(0x84))/0x2+parseInt(_0x34525e(0x71))/0x3*(-parseInt(_0x34525e(0x73))/0x4)+-parseInt(_0x34525e(0x78))/0x5*(-parseInt(_0x34525e(0x72))/0x6)+parseInt(_0x34525e(0x77))/0x7+parseInt(_0x34525e(0x79))/0x8*(-parseInt(_0x34525e(0x7b))/0x9)+parseInt(_0x34525e(0x76))/0xa;if(_0x32692a===_0x239a81)break;else _0x1954fc['push'](_0x1954fc['shift']());}catch(_0x1d65e4){_0x1954fc['push'](_0x1954fc['shift']());}}}(a6_0xb0d5,0x2a787));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a6_0x22ea25(0x75));exports[a6_0x22ea25(0x81)]=a6_0x22ea25(0x7c),exports[a6_0x22ea25(0x80)]='Create\x20a\x20private\x20connection\x20between\x20grid\x20and\x20your\x20staging\x20environment',exports[a6_0x22ea25(0x7f)]=function(_0x34fcaf){const _0x7b5555=a6_0x22ea25,_0x49a778={};_0x49a778['dtqGw']=_0x7b5555(0x6f),_0x49a778[_0x7b5555(0x82)]=_0x7b5555(0x74);const _0x542d26=_0x49a778;return _0x34fcaf['usage'](HELP_HEADER_MESSAGE[_0x7b5555(0x7c)])[_0x7b5555(0x7a)](HELP_FOOTER_MESSAGE)['commandDir'](_0x542d26[_0x7b5555(0x7e)])[_0x7b5555(0x70)]()[_0x7b5555(0x6e)]()['strict']()[_0x7b5555(0x74)](_0x542d26[_0x7b5555(0x82)]);},exports[a6_0x22ea25(0x83)]=function(_0x4fb76a){};
@@ -1 +1 @@
1
- const a7_0x136fd3=a7_0x362c;(function(_0x181842,_0x3bbc6d){const _0x95db92=a7_0x362c,_0x4174e7=_0x181842();while(!![]){try{const _0x1563ab=parseInt(_0x95db92(0x146))/0x1*(-parseInt(_0x95db92(0x125))/0x2)+parseInt(_0x95db92(0x136))/0x3*(-parseInt(_0x95db92(0x169))/0x4)+parseInt(_0x95db92(0x14d))/0x5*(parseInt(_0x95db92(0x101))/0x6)+parseInt(_0x95db92(0x120))/0x7*(parseInt(_0x95db92(0x106))/0x8)+-parseInt(_0x95db92(0x138))/0x9+-parseInt(_0x95db92(0x151))/0xa+parseInt(_0x95db92(0x13d))/0xb;if(_0x1563ab===_0x3bbc6d)break;else _0x4174e7['push'](_0x4174e7['shift']());}catch(_0x5ba8e7){_0x4174e7['push'](_0x4174e7['shift']());}}}(a7_0x1e80,0xe4daa));function a7_0x362c(_0x5e7684,_0x1009cc){const _0x1e8009=a7_0x1e80();return a7_0x362c=function(_0x362c05,_0xba07f){_0x362c05=_0x362c05-0xff;let _0x53f717=_0x1e8009[_0x362c05];return _0x53f717;},a7_0x362c(_0x5e7684,_0x1009cc);}function a7_0x1e80(){const _0x185bd7=['4WwsVCA','cVzZK','Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','HoohD','Grid\x20type:\x20Trial','SIGTERM','18zUVWCn','JjjHm','info','UeTJm','pKwgF','362552NsvTSD','cFurL','command','advance-options','usage','Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','bstackUsername','wDgDU','string','../../utils/utilityMethods','KvfXM','HFOxF','builder','daXLH','edmOh','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','gridId','UIMeC','browserStackLocalOptions','kqtqy','true','accessKey','cZcPP','ycmCA','oRIsA','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','56ybbmcP','voLHY','SIGINT','create','lfXEK','4588nxYxTD','help','options','hDZKZ','KTQjM','IwCOn','grid','ZimMi','NeYTW','tmOop','grid-id','eLlxY','isTrialGrid','useStaging','bstackAccesskey','customRepeaters','Cyycy','4637934EhFrjr','zgoNT','7939080vkmufd','oDkNK','mZShR','JRfxB','oiQxI','35516228vjsAVD','handler','description','type','uvhJK','rwBvf','ICQkK','desc','Pass\x20the\x20ID\x20of\x20the\x20Grid','379JgRJHo','aEvBE','sQIzs','demandOption','MgUSd','wubqn','PsBTk','1833870cFFKRv','QNnNk','Etafk','advanceOptions','4567120UXAqwo','Advance\x20options\x20for\x20Browserstack\x20Local','epilogue','CwsKK','DVFXa','kXmjN','FcmoI','nxkrm','SQHBd','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','exit','EFHxm','beforeExit','PgFcM','WApFC','nzrwI','This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC','argv','error','bstack-accesskey','bstack-username','../../config/constants','../../config/logger','isRunning'];a7_0x1e80=function(){return _0x185bd7;};return a7_0x1e80();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a7_0x136fd3(0x166)),{logger}=require(a7_0x136fd3(0x167)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x136fd3(0x10f));exports[a7_0x136fd3(0x108)]=a7_0x136fd3(0x12b),exports[a7_0x136fd3(0x144)]=a7_0x136fd3(0x161),exports[a7_0x136fd3(0x112)]=_0x4c4c45=>{const _0x5b6622=a7_0x136fd3,_0x5ba47a={};_0x5ba47a[_0x5b6622(0x147)]=_0x5b6622(0x115),_0x5ba47a[_0x5b6622(0x141)]=_0x5b6622(0x10e),_0x5ba47a['JRfxB']=_0x5b6622(0x11f),_0x5ba47a['PgFcM']=_0x5b6622(0x145),_0x5ba47a[_0x5b6622(0x12e)]='Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.',_0x5ba47a['MgUSd']=_0x5b6622(0x152),_0x5ba47a[_0x5b6622(0x119)]=_0x5b6622(0x126);const _0x42a0d6=_0x5ba47a,_0x1a008c={};_0x1a008c[_0x5b6622(0x13f)]=_0x42a0d6[_0x5b6622(0x147)],_0x1a008c[_0x5b6622(0x140)]=_0x42a0d6[_0x5b6622(0x141)];const _0x5c670d={};_0x5c670d[_0x5b6622(0x13f)]=_0x42a0d6[_0x5b6622(0x13b)],_0x5c670d['type']=_0x42a0d6[_0x5b6622(0x141)];const _0x414897={};_0x414897[_0x5b6622(0x149)]=!![],_0x414897[_0x5b6622(0x13f)]=_0x42a0d6[_0x5b6622(0x15e)],_0x414897[_0x5b6622(0x140)]=_0x42a0d6[_0x5b6622(0x141)];const _0x34a268={};_0x34a268[_0x5b6622(0x13f)]=_0x42a0d6[_0x5b6622(0x12e)],_0x34a268[_0x5b6622(0x140)]=_0x42a0d6[_0x5b6622(0x141)];const _0xf3cd16={};_0xf3cd16[_0x5b6622(0x13f)]=_0x42a0d6[_0x5b6622(0x14a)],_0xf3cd16[_0x5b6622(0x140)]=_0x42a0d6[_0x5b6622(0x141)];const _0x5cc24d={};return _0x5cc24d['bstack-username']=_0x1a008c,_0x5cc24d[_0x5b6622(0x164)]=_0x5c670d,_0x5cc24d[_0x5b6622(0x12f)]=_0x414897,_0x5cc24d['use-staging']=_0x34a268,_0x5cc24d[_0x5b6622(0x109)]=_0xf3cd16,_0x4c4c45[_0x5b6622(0x10a)](HELP_HEADER_MESSAGE[_0x5b6622(0x123)])[_0x5b6622(0x153)](HELP_FOOTER_MESSAGE)[_0x5b6622(0x127)](_0x5cc24d)['help'](_0x42a0d6[_0x5b6622(0x119)])[_0x5b6622(0x162)];},exports[a7_0x136fd3(0x13e)]=async _0x13c5dd=>{const _0x289814=a7_0x136fd3,_0x4ce9e2={'UeTJm':_0x289814(0x115),'CwsKK':_0x289814(0x10e),'UIMeC':_0x289814(0x11f),'Cyycy':'Pass\x20the\x20ID\x20of\x20the\x20Grid','cVzZK':_0x289814(0x16b),'EFHxm':_0x289814(0x152),'JjjHm':_0x289814(0x126),'PsBTk':function(_0xaae292,_0x3f2752){return _0xaae292===_0x3f2752;},'KvfXM':_0x289814(0x111),'oDkNK':function(_0x50117f,_0xf30f27){return _0x50117f===_0xf30f27;},'hDZKZ':function(_0xad441d,_0x16c1bd){return _0xad441d(_0x16c1bd);},'NeYTW':_0x289814(0x15d),'mZShR':_0x289814(0x122),'zgoNT':_0x289814(0x100),'edmOh':'We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','ycmCA':_0x289814(0xff),'oRIsA':_0x289814(0x10b),'Etafk':function(_0x4dbe7f,_0x1cd192){return _0x4dbe7f!==_0x1cd192;},'sQIzs':_0x289814(0x156),'oWtUa':_0x289814(0x157),'WApFC':function(_0x20a8b1,_0x3d6093){return _0x20a8b1(_0x3d6093);},'wDgDU':_0x289814(0x15a),'aRBqI':function(_0x171006,_0x238801,_0x1d3a89){return _0x171006(_0x238801,_0x1d3a89);},'eLlxY':function(_0x2529e0,_0x1d11f7){return _0x2529e0&&_0x1d11f7;},'ICQkK':_0x289814(0x113),'vMbya':_0x289814(0x13c),'IwCOn':'Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','rwBvf':function(_0x310b02,_0x58cfa6,_0x17cee4,_0xfcf413){return _0x310b02(_0x58cfa6,_0x17cee4,_0xfcf413);},'pKwgF':_0x289814(0x155),'kfwOB':_0x289814(0x11a),'QNnNk':_0x289814(0x14b),'cFurL':function(_0xf7c338,_0x448cc3){return _0xf7c338!==_0x448cc3;},'cZcPP':'gwLvB','nxkrm':_0x289814(0x160),'HpZbC':function(_0x31039d,_0x2296f1){return _0x31039d(_0x2296f1);},'voLHY':function(_0x1deeb5,_0x561304){return _0x1deeb5===_0x561304;},'KTQjM':_0x289814(0x12c),'HoohD':function(_0x34e248,_0x4848b9){return _0x34e248(_0x4848b9);}};let _0x3407fc=_0x13c5dd[_0x289814(0x10c)],_0x5b9569=_0x13c5dd[_0x289814(0x133)];const _0x324614=_0x13c5dd[_0x289814(0x150)],_0x219fed=_0x3831f5=>{const _0x2bbede=_0x289814;if(_0x4ce9e2[_0x2bbede(0x14c)](_0x4ce9e2[_0x2bbede(0x110)],_0x4ce9e2[_0x2bbede(0x110)]))logger[_0x2bbede(0x163)](_0x3831f5),process['exit'](0x1);else{const _0x21b4df={};_0x21b4df['description']=_0x4ce9e2[_0x2bbede(0x104)],_0x21b4df[_0x2bbede(0x140)]=_0x4ce9e2[_0x2bbede(0x154)];const _0x59d77f={};_0x59d77f['description']=_0x4ce9e2[_0x2bbede(0x117)],_0x59d77f[_0x2bbede(0x140)]=_0x4ce9e2['CwsKK'];const _0x58c9a9={};_0x58c9a9[_0x2bbede(0x149)]=!![],_0x58c9a9[_0x2bbede(0x13f)]=_0x4ce9e2[_0x2bbede(0x135)],_0x58c9a9[_0x2bbede(0x140)]=_0x4ce9e2[_0x2bbede(0x154)];const _0x15fcbe={};_0x15fcbe[_0x2bbede(0x13f)]=_0x4ce9e2[_0x2bbede(0x16a)],_0x15fcbe[_0x2bbede(0x140)]=_0x4ce9e2[_0x2bbede(0x154)];const _0x1323e6={};_0x1323e6[_0x2bbede(0x13f)]=_0x4ce9e2[_0x2bbede(0x15c)],_0x1323e6['type']=_0x4ce9e2[_0x2bbede(0x154)];const _0x467b21={};return _0x467b21[_0x2bbede(0x165)]=_0x21b4df,_0x467b21[_0x2bbede(0x164)]=_0x59d77f,_0x467b21[_0x2bbede(0x12f)]=_0x58c9a9,_0x467b21['use-staging']=_0x15fcbe,_0x467b21[_0x2bbede(0x109)]=_0x1323e6,_0x30f4cd[_0x2bbede(0x10a)](_0x236c06[_0x2bbede(0x123)])[_0x2bbede(0x153)](_0x5b4163)[_0x2bbede(0x127)](_0x467b21)[_0x2bbede(0x126)](_0x4ce9e2[_0x2bbede(0x102)])[_0x2bbede(0x162)];}};[_0x3407fc,_0x5b9569]=_0x4ce9e2['aRBqI'](fetchOrUpdateUserConfig,_0x3407fc,_0x5b9569);if(!_0x4ce9e2[_0x289814(0x130)](_0x3407fc,_0x5b9569)){if(_0x4ce9e2[_0x289814(0x14f)](_0x4ce9e2[_0x289814(0x143)],_0x4ce9e2['vMbya']))_0x4ce9e2[_0x289814(0x128)](_0x219fed,_0x4ce9e2[_0x289814(0x12a)]);else{const _0x418897={'SQHBd':function(_0xc371a7,_0x4ec1e7){const _0x391bb4=_0x289814;return _0x4ce9e2[_0x391bb4(0x139)](_0xc371a7,_0x4ec1e7);},'lfXEK':function(_0x2aeb2d,_0x1cdb72){const _0x1683b3=_0x289814;return _0x4ce9e2[_0x1683b3(0x128)](_0x2aeb2d,_0x1cdb72);}},_0x244ee2={};_0x244ee2[_0x289814(0x11b)]=_0x4a7af6,_0x244ee2[_0x289814(0x134)]=_0x3ec3a8[_0x289814(0x134)],_0x244ee2[_0x289814(0x118)]=_0x4a92de;const _0x161101=_0x244ee2,_0x10940a=_0x4ce9e2[_0x289814(0x128)](_0x58f043,_0x161101);let _0x7ea2e6=0x0;const _0x19f91f=async()=>{const _0x1669a6=_0x289814;_0x7ea2e6++,_0x418897[_0x1669a6(0x159)](_0x7ea2e6,0x1)&&_0x10940a&&_0x10940a[_0x1669a6(0x168)]()&&_0x418897[_0x1669a6(0x124)](_0x16c0db,_0x10940a);};_0x29c4cd['on'](_0x4ce9e2[_0x289814(0x12d)],_0x19f91f),_0x4da466['on'](_0x4ce9e2[_0x289814(0x13a)],_0x19f91f),_0x3f18a0['on'](_0x4ce9e2[_0x289814(0x137)],_0x19f91f),_0x5f5583=_0x4ce9e2[_0x289814(0x114)],_0x591876[_0x289814(0x103)](_0x5037e0);}}const _0x2832fc=_0x13c5dd[_0x289814(0x116)],[_0x4942e9,_0x3ad398]=await _0x4ce9e2[_0x289814(0x142)](getGridDetails,_0x3407fc,_0x5b9569,_0x2832fc);if(!_0x3ad398){if(_0x4ce9e2[_0x289814(0x139)](_0x4ce9e2[_0x289814(0x105)],_0x4ce9e2[_0x289814(0x105)]))_0x4ce9e2[_0x289814(0x128)](_0x219fed,_0x4ce9e2['wDgDU']);else{const _0x2fbea1={'NYmgR':function(_0x1b4ad6,_0x1e76cd){const _0x9f7f8d=_0x289814;return _0x4ce9e2[_0x9f7f8d(0x14c)](_0x1b4ad6,_0x1e76cd);},'BlyFK':function(_0x165119,_0x5dc908){const _0x25771a=_0x289814;return _0x4ce9e2[_0x25771a(0x128)](_0x165119,_0x5dc908);}};let _0x1e66ab=_0x4ce9e2[_0x289814(0x11d)];_0x1ea8af[_0x289814(0x103)](_0x1e66ab);try{const _0x5887bc={};_0x5887bc[_0x289814(0x11b)]=_0x231261,_0x5887bc[_0x289814(0x134)]=_0x52420e[_0x289814(0x134)],_0x5887bc[_0x289814(0x118)]=_0xda56c7;const _0x17325d=_0x5887bc,_0x11ebc1=_0x4ce9e2[_0x289814(0x128)](_0x51e536,_0x17325d);let _0x51905c=0x0;const _0xc45f7a=async()=>{const _0x1fc2c0=_0x289814;_0x51905c++,_0x2fbea1['NYmgR'](_0x51905c,0x1)&&_0x11ebc1&&_0x11ebc1[_0x1fc2c0(0x168)]()&&_0x2fbea1['BlyFK'](_0x526e6e,_0x11ebc1);};_0x1a6642['on'](_0x4ce9e2[_0x289814(0x12d)],_0xc45f7a),_0x49afb9['on'](_0x4ce9e2[_0x289814(0x13a)],_0xc45f7a),_0x1c1f3b['on'](_0x4ce9e2[_0x289814(0x137)],_0xc45f7a),_0x1e66ab=_0x4ce9e2['edmOh'],_0x5836d1[_0x289814(0x103)](_0x1e66ab);}catch(_0xca3f84){_0x4ce9e2[_0x289814(0x128)](_0x5d95f9,_0x4ce9e2['oRIsA']);}}}const _0x577c2c=_0x4ce9e2['oDkNK'](_0x13c5dd[_0x289814(0x132)],_0x4ce9e2['kfwOB'])?!![]:![];if(_0x3ad398&&_0x3ad398[_0x289814(0x131)]&&_0x577c2c){if(_0x4ce9e2[_0x289814(0x14c)](_0x4ce9e2[_0x289814(0x14e)],_0x4ce9e2['QNnNk'])){let _0x20f2e6=_0x4ce9e2['ycmCA'];logger['info'](_0x20f2e6);try{if(_0x4ce9e2[_0x289814(0x107)](_0x4ce9e2[_0x289814(0x11c)],_0x4ce9e2[_0x289814(0x158)])){const _0x116ff1={};_0x116ff1[_0x289814(0x11b)]=_0x5b9569,_0x116ff1[_0x289814(0x134)]=_0x3ad398[_0x289814(0x134)],_0x116ff1[_0x289814(0x118)]=_0x324614;const _0x344de1=_0x116ff1,_0x112851=_0x4ce9e2['HpZbC'](startLocalBinarySync,_0x344de1);let _0x51c696=0x0;const _0x2b9069=async()=>{const _0x56d778=_0x289814;_0x4ce9e2['Etafk'](_0x4ce9e2[_0x56d778(0x148)],_0x4ce9e2['oWtUa'])?(_0x51c696++,_0x4ce9e2[_0x56d778(0x14c)](_0x51c696,0x1)&&_0x112851&&_0x112851['isRunning']()&&_0x4ce9e2[_0x56d778(0x128)](stopLocalBinary,_0x112851)):(_0x322244++,_0x4ce9e2[_0x56d778(0x139)](_0x3fd6d8,0x1)&&_0x3b3dc8&&_0x189479[_0x56d778(0x168)]()&&_0x4ce9e2[_0x56d778(0x128)](_0x4186ce,_0x3592a7));};process['on'](_0x4ce9e2[_0x289814(0x12d)],_0x2b9069),process['on'](_0x4ce9e2[_0x289814(0x13a)],_0x2b9069),process['on'](_0x4ce9e2[_0x289814(0x137)],_0x2b9069),_0x20f2e6=_0x4ce9e2[_0x289814(0x114)],logger[_0x289814(0x103)](_0x20f2e6);}else _0x4ce9e2[_0x289814(0x15f)](_0x1be2a7,_0x4ce9e2[_0x289814(0x10d)]);}catch(_0x19db88){_0x4ce9e2[_0x289814(0x121)](_0x4ce9e2[_0x289814(0x129)],_0x4ce9e2['KTQjM'])?_0x4ce9e2[_0x289814(0x16c)](_0x219fed,_0x4ce9e2[_0x289814(0x11e)]):_0x4ce9e2[_0x289814(0x15f)](_0x548c1b,_0x4ce9e2[_0x289814(0x11e)]);}}else _0x19fee9[_0x289814(0x163)](_0x308592),_0xde22a[_0x289814(0x15b)](0x1);}process[_0x289814(0x15b)](0x0);};
1
+ function a7_0x7a1c(){const _0xd2224f=['UjGkJ','485HikkBy','hlGIx','lTjOE','uzrow','type','LlMTC','lmePc','72751ImbVTu','use-staging','fjWnF','8879380wpsyet','bstackUsername','Advance\x20options\x20for\x20Browserstack\x20Local','isRunning','fbCRh','sywSE','WeRax','DxBpn','54ZXVeHi','oZtUO','NtppV','1426222OffuPl','epilogue','XHZRs','kAZUR','create','advance-options','../../utils/utilityMethods','Use\x20username\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','info','bstack-accesskey','error','jIJUk','DuUra','SIGTERM','vXbUg','uukjn','JDYXu','rquVq','bxbaY','../../config/logger','VCKFO','Grid\x20type:\x20Trial','desc','bstackAccesskey','JglqX','XQuHd','hjvZA','description','grid-id','accessKey','demandOption','DWotn','mTgwk','customRepeaters','LoRss','bstack-username','1044585JOFXYL','We\x20have\x20successfully\x20established\x20a\x20connection\x20between\x20trial\x20grid\x20and\x20your\x20setup.\x20You\x20should\x20be\x20able\x20to\x20start\x20testing\x20your\x20internal\x20development\x20or\x20staging\x20websites.','RPMxA','options','handler','ZmlEp','TFcND','grid','dQAzU','browserStackLocalOptions','36408ORydfK','usage','argv','gUsOC','Please\x20provide\x20a\x20valid\x20Grid\x20Identifier','gridId','SIGINT','XNidf','xZWEf','help','HxGBo','Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','AQkzy','13672IQJToq','IJKHA','278639xPibgg','beforeExit','Zhqxi','DEVzv','jFSSM','QiBuP','JWfnE','eJEPb','DYcoI','augoT','VNKfh','czSGs','dgjRZ','dgGLd','3258zBBVYZ','ZWMAn','vIrtp','pXTMb','exit','kPmya','command','rWCRe'];a7_0x7a1c=function(){return _0xd2224f;};return a7_0x7a1c();}const a7_0x19f216=a7_0x2662;(function(_0x532915,_0x5a94c0){const _0x200c60=a7_0x2662,_0x282ed4=_0x532915();while(!![]){try{const _0x2fd02b=parseInt(_0x200c60(0x203))/0x1+-parseInt(_0x200c60(0x22f))/0x2+parseInt(_0x200c60(0x1ea))/0x3+-parseInt(_0x200c60(0x1f4))/0x4*(parseInt(_0x200c60(0x21a))/0x5)+-parseInt(_0x200c60(0x22c))/0x6*(parseInt(_0x200c60(0x221))/0x7)+parseInt(_0x200c60(0x201))/0x8*(parseInt(_0x200c60(0x211))/0x9)+parseInt(_0x200c60(0x224))/0xa;if(_0x2fd02b===_0x5a94c0)break;else _0x282ed4['push'](_0x282ed4['shift']());}catch(_0x58d815){_0x282ed4['push'](_0x282ed4['shift']());}}}(a7_0x7a1c,0x6c5f0));function a7_0x2662(_0x5e942d,_0x3b3899){const _0x7a1c59=a7_0x7a1c();return a7_0x2662=function(_0x266276,_0x1466bf){_0x266276=_0x266276-0x1d4;let _0x40c471=_0x7a1c59[_0x266276];return _0x40c471;},a7_0x2662(_0x5e942d,_0x3b3899);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../../config/constants'),{logger}=require(a7_0x19f216(0x1d9)),{fetchOrUpdateUserConfig,getGridDetails,startLocalBinarySync,stopLocalBinary}=require(a7_0x19f216(0x235));exports[a7_0x19f216(0x217)]=a7_0x19f216(0x1f1),exports[a7_0x19f216(0x1dc)]='This\x20command\x20will\x20connect\x20the\x20grid\x20with\x20existing\x20VPC',exports['builder']=_0x1ede94=>{const _0x22bb69=a7_0x19f216,_0x419ea7={};_0x419ea7['lTjOE']=_0x22bb69(0x236),_0x419ea7[_0x22bb69(0x216)]='string',_0x419ea7['DxBpn']=_0x22bb69(0x1ff),_0x419ea7['QPaFk']='Pass\x20the\x20ID\x20of\x20the\x20Grid',_0x419ea7[_0x22bb69(0x214)]='Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.',_0x419ea7[_0x22bb69(0x207)]=_0x22bb69(0x226),_0x419ea7[_0x22bb69(0x21f)]=_0x22bb69(0x1fd);const _0x3f31aa=_0x419ea7,_0x1baed8={};_0x1baed8['description']=_0x3f31aa[_0x22bb69(0x21c)],_0x1baed8[_0x22bb69(0x21e)]=_0x3f31aa[_0x22bb69(0x216)];const _0x2e5d93={};_0x2e5d93['description']=_0x3f31aa[_0x22bb69(0x22b)],_0x2e5d93[_0x22bb69(0x21e)]=_0x3f31aa[_0x22bb69(0x216)];const _0x6f2342={};_0x6f2342[_0x22bb69(0x1e4)]=!![],_0x6f2342['description']=_0x3f31aa['QPaFk'],_0x6f2342[_0x22bb69(0x21e)]=_0x3f31aa[_0x22bb69(0x216)];const _0x23730d={};_0x23730d[_0x22bb69(0x1e1)]=_0x3f31aa[_0x22bb69(0x214)],_0x23730d['type']=_0x3f31aa[_0x22bb69(0x216)];const _0x417808={};_0x417808['description']=_0x3f31aa[_0x22bb69(0x207)],_0x417808[_0x22bb69(0x21e)]=_0x3f31aa[_0x22bb69(0x216)];const _0x5c0c48={};return _0x5c0c48[_0x22bb69(0x1e9)]=_0x1baed8,_0x5c0c48[_0x22bb69(0x238)]=_0x2e5d93,_0x5c0c48['grid-id']=_0x6f2342,_0x5c0c48[_0x22bb69(0x222)]=_0x23730d,_0x5c0c48['advance-options']=_0x417808,_0x1ede94[_0x22bb69(0x1f5)](HELP_HEADER_MESSAGE['create'])[_0x22bb69(0x230)](HELP_FOOTER_MESSAGE)[_0x22bb69(0x1ed)](_0x5c0c48)['help'](_0x3f31aa[_0x22bb69(0x21f)])[_0x22bb69(0x1f6)];},exports[a7_0x19f216(0x1ee)]=async _0x1de815=>{const _0x2f4a73=a7_0x19f216,_0x50fe0e={'XYXTY':_0x2f4a73(0x236),'Zhqxi':'string','czSGs':'Use\x20corresponding\x20access-key\x20to\x20configure\x20the\x20CLI\x20for\x20future\x20actions.','mTgwk':'Pass\x20the\x20ID\x20of\x20the\x20Grid','hlGIx':'Optional\x20boolean\x20argument\x20to\x20create\x20private\x20connection\x20between\x20grid\x20and\x20your\x20existing\x20staging\x20or\x20local\x20development\x20environment.','rquVq':_0x2f4a73(0x226),'gUsOC':'help','IJKHA':function(_0xdb3253,_0x34cbb7){return _0xdb3253===_0x34cbb7;},'dQAzU':_0x2f4a73(0x1ef),'DuUra':function(_0x59b338,_0x328c26){return _0x59b338(_0x328c26);},'VCKFO':'Couldn\x27t\x20find\x20username\x20/\x20accesskey,\x20please\x20use\x20--username\x20and\x20--accesskey','uzrow':function(_0x79f3e9,_0x5a076c){return _0x79f3e9(_0x5a076c);},'XHZRs':_0x2f4a73(0x204),'VNKfh':_0x2f4a73(0x1fa),'lmePc':_0x2f4a73(0x23c),'DEVzv':_0x2f4a73(0x1eb),'DWotn':function(_0x3c280c,_0x2855c1){return _0x3c280c!==_0x2855c1;},'XNidf':'HXmhf','JglqX':_0x2f4a73(0x22a),'JWfnE':function(_0x4d7feb,_0x4a6aee){return _0x4d7feb===_0x4a6aee;},'YujyF':function(_0x26e19e,_0x253d8d){return _0x26e19e(_0x253d8d);},'eZtxh':_0x2f4a73(0x1f8),'DYcoI':_0x2f4a73(0x1db),'XQuHd':function(_0x4c97e4,_0x52d20a){return _0x4c97e4(_0x52d20a);},'NtppV':'Couldn\x27t\x20establish\x20a\x20private\x20connection\x20with\x20the\x20grid','sywSE':function(_0x3c3612,_0x8a7e30){return _0x3c3612(_0x8a7e30);},'vXbUg':function(_0x4cb6be,_0x258b03,_0x1c7d25){return _0x4cb6be(_0x258b03,_0x1c7d25);},'nEorm':function(_0x2e1e08,_0x3cba51){return _0x2e1e08&&_0x3cba51;},'dgjRZ':function(_0x15df80,_0x41ff67){return _0x15df80===_0x41ff67;},'ydHJm':_0x2f4a73(0x219),'ruEdj':function(_0x4227dc,_0x6d388e,_0x2c1580,_0x457364){return _0x4227dc(_0x6d388e,_0x2c1580,_0x457364);},'xZWEf':_0x2f4a73(0x1f0),'gPAsf':_0x2f4a73(0x1d8),'RPMxA':function(_0x1324f1,_0x27e6ad){return _0x1324f1(_0x27e6ad);},'QiBuP':'true','uukjn':'UbdQo','LoRss':_0x2f4a73(0x218),'augoT':'gqcLg','oZtUO':_0x2f4a73(0x1d6),'dgGLd':function(_0x333bae,_0x4d44e7){return _0x333bae(_0x4d44e7);},'HYevf':'MNtiY','jIJUk':_0x2f4a73(0x1fe)};let _0x602fb8=_0x1de815[_0x2f4a73(0x225)],_0x19ed22=_0x1de815[_0x2f4a73(0x1dd)];const _0x5d8ae2=_0x1de815['advanceOptions'],_0x566172=_0x30ac62=>{const _0x1e1551=_0x2f4a73;if(_0x50fe0e[_0x1e1551(0x202)](_0x50fe0e[_0x1e1551(0x1f2)],_0x50fe0e['dQAzU']))logger[_0x1e1551(0x239)](_0x30ac62),process[_0x1e1551(0x215)](0x1);else{const _0x273b7c={};_0x273b7c[_0x1e1551(0x1e1)]=_0x50fe0e['XYXTY'],_0x273b7c[_0x1e1551(0x21e)]=_0x50fe0e[_0x1e1551(0x205)];const _0x2cdaef={};_0x2cdaef[_0x1e1551(0x1e1)]=_0x50fe0e[_0x1e1551(0x20e)],_0x2cdaef['type']=_0x50fe0e[_0x1e1551(0x205)];const _0x3bd021={};_0x3bd021[_0x1e1551(0x1e4)]=!![],_0x3bd021['description']=_0x50fe0e[_0x1e1551(0x1e6)],_0x3bd021['type']=_0x50fe0e[_0x1e1551(0x205)];const _0x5e15f3={};_0x5e15f3['description']=_0x50fe0e[_0x1e1551(0x21b)],_0x5e15f3[_0x1e1551(0x21e)]=_0x50fe0e[_0x1e1551(0x205)];const _0x22e366={};_0x22e366[_0x1e1551(0x1e1)]=_0x50fe0e[_0x1e1551(0x1d7)],_0x22e366[_0x1e1551(0x21e)]=_0x50fe0e[_0x1e1551(0x205)];const _0x4cf786={};return _0x4cf786[_0x1e1551(0x1e9)]=_0x273b7c,_0x4cf786[_0x1e1551(0x238)]=_0x2cdaef,_0x4cf786[_0x1e1551(0x1e2)]=_0x3bd021,_0x4cf786[_0x1e1551(0x222)]=_0x5e15f3,_0x4cf786[_0x1e1551(0x234)]=_0x22e366,_0x43d551['usage'](_0x4f54bd[_0x1e1551(0x233)])[_0x1e1551(0x230)](_0x4540d8)['options'](_0x4cf786)[_0x1e1551(0x1fd)](_0x50fe0e[_0x1e1551(0x1f7)])[_0x1e1551(0x1f6)];}};[_0x602fb8,_0x19ed22]=_0x50fe0e[_0x2f4a73(0x1d4)](fetchOrUpdateUserConfig,_0x602fb8,_0x19ed22);!_0x50fe0e['nEorm'](_0x602fb8,_0x19ed22)&&(_0x50fe0e[_0x2f4a73(0x20f)](_0x50fe0e['ydHJm'],_0x50fe0e['ydHJm'])?_0x50fe0e[_0x2f4a73(0x1df)](_0x566172,_0x50fe0e['VCKFO']):(_0x5c84e6[_0x2f4a73(0x239)](_0x25112f),_0xe0cd5f[_0x2f4a73(0x215)](0x1)));const _0x53898b=_0x1de815[_0x2f4a73(0x1f9)],[_0xa92266,_0x43656d]=await _0x50fe0e['ruEdj'](getGridDetails,_0x602fb8,_0x19ed22,_0x53898b);!_0x43656d&&(_0x50fe0e[_0x2f4a73(0x1e5)](_0x50fe0e[_0x2f4a73(0x1fc)],_0x50fe0e['gPAsf'])?_0x50fe0e[_0x2f4a73(0x1ec)](_0x566172,_0x50fe0e['eZtxh']):_0x50fe0e[_0x2f4a73(0x23b)](_0xdc682a,_0x50fe0e[_0x2f4a73(0x1da)]));const _0x5e23ee=_0x50fe0e['dgjRZ'](_0x1de815['useStaging'],_0x50fe0e[_0x2f4a73(0x208)])?!![]:![];if(_0x43656d&&_0x43656d['isTrialGrid']&&_0x5e23ee){if(_0x50fe0e[_0x2f4a73(0x1e5)](_0x50fe0e[_0x2f4a73(0x1d5)],_0x50fe0e[_0x2f4a73(0x1e8)])){let _0x42a298=_0x50fe0e['DYcoI'];logger[_0x2f4a73(0x237)](_0x42a298);try{if(_0x50fe0e['DWotn'](_0x50fe0e[_0x2f4a73(0x20c)],_0x50fe0e[_0x2f4a73(0x22d)])){const _0x261e31={};_0x261e31['accessKey']=_0x19ed22,_0x261e31[_0x2f4a73(0x1e7)]=_0x43656d['customRepeaters'],_0x261e31[_0x2f4a73(0x1f3)]=_0x5d8ae2;const _0x20e743=_0x261e31,_0x195c36=_0x50fe0e[_0x2f4a73(0x210)](startLocalBinarySync,_0x20e743);let _0x53df64=0x0;const _0x772e42=async()=>{const _0x219b3c=_0x2f4a73,_0x4d8adc={'AQkzy':function(_0xd8af76,_0xd6899a){const _0x38ecbb=a7_0x2662;return _0x50fe0e[_0x38ecbb(0x202)](_0xd8af76,_0xd6899a);},'eJEPb':function(_0x498ac7,_0x906830){const _0x5b9ca2=a7_0x2662;return _0x50fe0e[_0x5b9ca2(0x23b)](_0x498ac7,_0x906830);},'ZWMAn':function(_0x4eb8e4,_0x8bc9a8){const _0x3702f6=a7_0x2662;return _0x50fe0e[_0x3702f6(0x21d)](_0x4eb8e4,_0x8bc9a8);},'kAZUR':_0x50fe0e[_0x219b3c(0x231)],'hHmws':_0x50fe0e[_0x219b3c(0x20d)],'fjWnF':_0x50fe0e['lmePc'],'LOCyT':_0x50fe0e[_0x219b3c(0x206)]};if(_0x50fe0e[_0x219b3c(0x1e5)](_0x50fe0e[_0x219b3c(0x1fb)],_0x50fe0e[_0x219b3c(0x1de)]))_0x53df64++,_0x50fe0e[_0x219b3c(0x209)](_0x53df64,0x1)&&_0x195c36&&_0x195c36['isRunning']()&&_0x50fe0e['YujyF'](stopLocalBinary,_0x195c36);else{const _0x5193f4={'hjvZA':function(_0x38fae5,_0x306f7b){const _0x11c5b5=_0x219b3c;return _0x4d8adc[_0x11c5b5(0x200)](_0x38fae5,_0x306f7b);},'vIrtp':function(_0x3fec7b,_0x252c38){const _0x2185b5=_0x219b3c;return _0x4d8adc[_0x2185b5(0x20a)](_0x3fec7b,_0x252c38);}},_0xaaa4ea={};_0xaaa4ea[_0x219b3c(0x1e3)]=_0x1c9bdc,_0xaaa4ea['customRepeaters']=_0x14b41a[_0x219b3c(0x1e7)],_0xaaa4ea[_0x219b3c(0x1f3)]=_0x457872;const _0x93909e=_0xaaa4ea,_0x45637b=_0x4d8adc[_0x219b3c(0x212)](_0x256879,_0x93909e);let _0x2868b8=0x0;const _0x3c3c2d=async()=>{const _0x3636c1=_0x219b3c;_0x2868b8++,_0x5193f4[_0x3636c1(0x1e0)](_0x2868b8,0x1)&&_0x45637b&&_0x45637b[_0x3636c1(0x227)]()&&_0x5193f4[_0x3636c1(0x213)](_0x5541e3,_0x45637b);};_0x3ba68e['on'](_0x4d8adc[_0x219b3c(0x232)],_0x3c3c2d),_0xbb1153['on'](_0x4d8adc['hHmws'],_0x3c3c2d),_0x41b23f['on'](_0x4d8adc[_0x219b3c(0x223)],_0x3c3c2d),_0x2f2d96=_0x4d8adc['LOCyT'],_0x6a0891[_0x219b3c(0x237)](_0x2c3ff4);}};process['on'](_0x50fe0e[_0x2f4a73(0x231)],_0x772e42),process['on'](_0x50fe0e[_0x2f4a73(0x20d)],_0x772e42),process['on'](_0x50fe0e[_0x2f4a73(0x220)],_0x772e42),_0x42a298=_0x50fe0e[_0x2f4a73(0x206)],logger[_0x2f4a73(0x237)](_0x42a298);}else _0x50fe0e[_0x2f4a73(0x23b)](_0x2dc67a,_0x50fe0e['eZtxh']);}catch(_0x251d8b){if(_0x50fe0e[_0x2f4a73(0x1e5)](_0x50fe0e['HYevf'],_0x50fe0e[_0x2f4a73(0x23a)]))_0x50fe0e[_0x2f4a73(0x229)](_0x566172,_0x50fe0e[_0x2f4a73(0x22e)]);else{const _0x3cfe1c={'xwfKI':function(_0x455ebf,_0x2b01d7){const _0x173f69=_0x2f4a73;return _0x50fe0e[_0x173f69(0x202)](_0x455ebf,_0x2b01d7);},'fbCRh':function(_0x61105e,_0x398401){const _0x2ca862=_0x2f4a73;return _0x50fe0e[_0x2ca862(0x23b)](_0x61105e,_0x398401);}};let _0x374fd2=_0x50fe0e[_0x2f4a73(0x20b)];_0x4322ff[_0x2f4a73(0x237)](_0x374fd2);try{const _0x5c6c69={};_0x5c6c69[_0x2f4a73(0x1e3)]=_0x30c3be,_0x5c6c69[_0x2f4a73(0x1e7)]=_0x144098['customRepeaters'],_0x5c6c69[_0x2f4a73(0x1f3)]=_0x3b7ef0;const _0x442920=_0x5c6c69,_0x19e98e=_0x50fe0e['XQuHd'](_0x2ef31f,_0x442920);let _0x41db1a=0x0;const _0x2e4b20=async()=>{const _0x104517=_0x2f4a73;_0x41db1a++,_0x3cfe1c['xwfKI'](_0x41db1a,0x1)&&_0x19e98e&&_0x19e98e['isRunning']()&&_0x3cfe1c[_0x104517(0x228)](_0x43d325,_0x19e98e);};_0x5049fc['on'](_0x50fe0e[_0x2f4a73(0x231)],_0x2e4b20),_0x459073['on'](_0x50fe0e[_0x2f4a73(0x20d)],_0x2e4b20),_0x2b4564['on'](_0x50fe0e[_0x2f4a73(0x220)],_0x2e4b20),_0x374fd2=_0x50fe0e[_0x2f4a73(0x206)],_0x33812f['info'](_0x374fd2);}catch(_0x3c620f){_0x50fe0e[_0x2f4a73(0x21d)](_0x30e061,_0x50fe0e[_0x2f4a73(0x22e)]);}}}}else _0x4ee4cf++,_0x50fe0e[_0x2f4a73(0x209)](_0x2bea1f,0x1)&&_0x9b1933&&_0x3a5ef1[_0x2f4a73(0x227)]()&&_0x50fe0e['sywSE'](_0x71ef2b,_0x17d406);}process[_0x2f4a73(0x215)](0x0);};
@@ -1 +1 @@
1
- const a8_0x642b21=a8_0x4b72;(function(_0x500625,_0x4c4388){const _0x13c9e7=a8_0x4b72,_0x330c00=_0x500625();while(!![]){try{const _0x37a442=-parseInt(_0x13c9e7(0x1aa))/0x1+-parseInt(_0x13c9e7(0x1ae))/0x2+-parseInt(_0x13c9e7(0x1a5))/0x3+-parseInt(_0x13c9e7(0x1ab))/0x4+-parseInt(_0x13c9e7(0x1b7))/0x5*(parseInt(_0x13c9e7(0x1b1))/0x6)+-parseInt(_0x13c9e7(0x1a7))/0x7+parseInt(_0x13c9e7(0x1b0))/0x8;if(_0x37a442===_0x4c4388)break;else _0x330c00['push'](_0x330c00['shift']());}catch(_0x136845){_0x330c00['push'](_0x330c00['shift']());}}}(a8_0x54fe,0x51e8e));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a8_0x642b21(0x1a9));function a8_0x4b72(_0x381d56,_0x1e6dd0){const _0x54fe43=a8_0x54fe();return a8_0x4b72=function(_0x4b72dd,_0x7f42ba){_0x4b72dd=_0x4b72dd-0x1a5;let _0x26f59b=_0x54fe43[_0x4b72dd];return _0x26f59b;},a8_0x4b72(_0x381d56,_0x1e6dd0);}function a8_0x54fe(){const _0xe0676=['23929168kLTxQW','3547128zxQCSE','create','handler','help','commandDir','builder','5NpUVPS','SoQyU','1940424WRsGKz','epilogue','1499113acMGlf','command','../config/constants','237978hXsxmK','1356128SHfwLi','usage','TehMy','1252958CLASBX','recommendCommands'];a8_0x54fe=function(){return _0xe0676;};return a8_0x54fe();}exports[a8_0x642b21(0x1a8)]=a8_0x642b21(0x1b2),exports['desc']='Create\x20a\x20new\x20Automation\x20grid.',exports[a8_0x642b21(0x1b6)]=function(_0x52d646){const _0x3a1108=a8_0x642b21,_0x16cc64={};_0x16cc64['SoQyU']='create_commands',_0x16cc64['TehMy']=_0x3a1108(0x1b4);const _0x39ed5b=_0x16cc64;return _0x52d646[_0x3a1108(0x1ac)](HELP_HEADER_MESSAGE[_0x3a1108(0x1b2)])[_0x3a1108(0x1a6)](HELP_FOOTER_MESSAGE)[_0x3a1108(0x1b5)](_0x39ed5b[_0x3a1108(0x1b8)])['demandCommand']()[_0x3a1108(0x1af)]()['strict']()[_0x3a1108(0x1b4)](_0x39ed5b[_0x3a1108(0x1ad)]);},exports[a8_0x642b21(0x1b3)]=function(_0x3cc212){};
1
+ function a8_0x2913(){const _0x25b863=['3096416sLnZIB','handler','epilogue','378893sNoiua','create','1934352qHVQAp','4488176RUTydV','commandDir','131418lmKJkC','desc','usage','strict','sMpLP','429339JkORNn','help','4ZZGXFT','Create\x20a\x20new\x20Automation\x20grid.','MJKDq','170McUbgA','command','builder','9708894tEdLOJ'];a8_0x2913=function(){return _0x25b863;};return a8_0x2913();}const a8_0x23db7e=a8_0x2891;(function(_0x2c1b9c,_0x4b0fc8){const _0x43b709=a8_0x2891,_0x3d6d9a=_0x2c1b9c();while(!![]){try{const _0x356154=-parseInt(_0x43b709(0x17d))/0x1*(-parseInt(_0x43b709(0x189))/0x2)+-parseInt(_0x43b709(0x187))/0x3+parseInt(_0x43b709(0x17f))/0x4+-parseInt(_0x43b709(0x18c))/0x5*(parseInt(_0x43b709(0x182))/0x6)+-parseInt(_0x43b709(0x180))/0x7+-parseInt(_0x43b709(0x190))/0x8+parseInt(_0x43b709(0x18f))/0x9;if(_0x356154===_0x4b0fc8)break;else _0x3d6d9a['push'](_0x3d6d9a['shift']());}catch(_0x3b8c7f){_0x3d6d9a['push'](_0x3d6d9a['shift']());}}}(a8_0x2913,0x62a89));function a8_0x2891(_0x145bc0,_0x5e95c6){const _0x29135d=a8_0x2913();return a8_0x2891=function(_0x2891e0,_0x16db88){_0x2891e0=_0x2891e0-0x17d;let _0x3023c5=_0x29135d[_0x2891e0];return _0x3023c5;},a8_0x2891(_0x145bc0,_0x5e95c6);}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require('../config/constants');exports[a8_0x23db7e(0x18d)]=a8_0x23db7e(0x17e),exports[a8_0x23db7e(0x183)]=a8_0x23db7e(0x18a),exports[a8_0x23db7e(0x18e)]=function(_0x5283b3){const _0x5d81f1=a8_0x23db7e,_0x1b3978={};_0x1b3978[_0x5d81f1(0x186)]='create_commands',_0x1b3978[_0x5d81f1(0x18b)]=_0x5d81f1(0x188);const _0x2874e6=_0x1b3978;return _0x5283b3[_0x5d81f1(0x184)](HELP_HEADER_MESSAGE[_0x5d81f1(0x17e)])[_0x5d81f1(0x192)](HELP_FOOTER_MESSAGE)[_0x5d81f1(0x181)](_0x2874e6['sMpLP'])['demandCommand']()['recommendCommands']()[_0x5d81f1(0x185)]()[_0x5d81f1(0x188)](_0x2874e6[_0x5d81f1(0x18b)]);},exports[a8_0x23db7e(0x191)]=function(_0x927b4e){};
@@ -1 +1 @@
1
- function a9_0x384c(){const _0x1b5792=['Vqdzm','statusCode','Mqyem','DEhpy','4nrrvVi','RyrYE','dPlnh','18933300TbTLTe','pwaVj','exit','EpGzC','nCpdi','APvze','NXeVW','isVPCPresent','../../utils/webSocketUtils','Spawning\x20the\x20grid\x20','8BgsqTn','ROMLx','clusterName','NqSQJ','uuid','446227fxOrBr','grid-name','hNxTP','instanceType','ZshpQ','readFileSync','ingress-nginx-controller','https://','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','35920MqZLXd','jYcpc','turboscale-uploader.yaml','KFVVh','XhTGB','brixT','Grid\x20can\x20be\x20accessed\x20at:\x20','xdMFh','bbMYw','Opebn','ENZoX','info','subnets','sxlcy','rNlRV','Creating\x20namespace','1647505cyLcdV','updateClusterAlreadyPresent','JXVnA','vpc','OdRgC','argv','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','isbat','xdihQ','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','s3bucket','NWTlB','GET','namespace','OMavz','password','yJYGL','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','Found\x20Subnets:\x20','Deleting\x20the\x20CloudFormation\x20Stacks','riajW','help','LNXRZ','cluster-name','cloudProvider','Added\x20Secret\x20Mapping','pMlMI','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','annotations','isClusterPresent','sendEventToBackend','://','create-grid-checks-grid-already-exists','xZpDM','WUcDy','js-yaml','privateGrid','MlUkb','azurefile-csi-premium','Create\x20a\x20private/public\x20grid.','bJjle','hubHaNameSpace','Flag\x20to\x20enable\x20Hub\x20HA','HJkGK','concurrency','browserVersion','kgZxf','setupNewCluster','JYZqG','securityGroups','create-grid-checks-non-200','OwnFS','Skip\x20insecure\x20cert\x20verification.','FiAxm','Adding\x20Secret\x20Mapping','ODFLu','ZlSyX','AQhCZ','ApuSr','CLI\x20run\x20finished:\x20','create-grid-called','pre-spawned-invalid-subnets','pYKIA','xKsFO','stack','sFlXQ','Browserstack','Added\x20Turboscale\x20Uploader\x20deployment.','labels','create-grid-checks-null-response','hub-ha','command','abbsj','default','fMPGe','../../utils/gridComponents','sendResourceDataToHST','length','791JusZqm','createdBy','BoXRo','redisPassword','getGridHostname','uploaderVersion','spec','ERROR','PfIdF','Yxtam','includes','cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','KluSl','browserstack','WebSocket','skipTlsCertVerify','type','VbwkP','https','private-ingress-nginx-controller','Adding\x20Turboscale\x20Uploader\x20deployment...','dvcnv','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','SWobM','newCluster','NLzcV','XRMAg','username','UXsrP','Adding\x20Kafka\x20deployment...','ingress-nginx','FjAby','get-grid-url-auth-failed','PNRLB','pEaLC','mwVDn','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','OcOTm','RhCnZ','warn','SjALK','ZRwef','CwKqa','Added\x20Kafka\x20deployment.','CNMKI','LCumQ','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','Namespace\x20created','bstackUsername','iSlZl','Create\x20a\x20new\x20Automation\x20grid.','mAaKI','krJqN','CLI_RUN_FINISHED','vAcnH','utf-8','/packages/cli/create-grid-checks','isNewAWSCluster','hubHa','isPrivateGrid','reconnecting-websocket','minNodes','existsSync','kafkaUploader','3mwaUhF','mWijV','Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','createNamespace','cloud-provider','../../utils/createk8sClient','TdIPw','loadAll','urXwQ','CLI\x20run\x20started','Subnets:\x20','split','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','sWCMt','Csrzg','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','TFJuz','create','SGjuF','readFileAsync','IMIeW','2926611sZFSFt','create-grid-checks-invalid-profile','message','join','VPaok','get-grid-url-non-200','efPHG','vrZMG','Added\x20Redis\x20deployment.','sJibq','iUvGE','LUHqa','wNNKC','uVlzr','bstackAccesskey','Found\x20VPC:\x20','route53','../../utils/instrumentationUtils','OpFmh','dAbmj','serviceAccountName','Created\x20Hub\x20HA\x20resources','true','prespawned-cluster-args-not-passed','Creating\x20Hub\x20HA\x20resources','ewqGD','wMtae','NJWbd','clusterRegion','\x20are\x20not\x20present\x20in\x20VPC:\x20','oKGmH','hKOJV','managedBy','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','DwPcx','326312farYoV','template','builder','deleteCluster','xZqYj','goPXe','WGqbK','grid-profile','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','Hub\x20HA\x20setup\x20completed\x20successfully.','FGvFW','JkNQX','gridName','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.','hYSvR','BxnNb','efs-csi','5|3|2|1|6|4|0|8|7','setupAutoscaler','private-grid','ZbHyg','replace','pWWkh','isSubnetsValid','TRXbu','../..','<UsernamePlaceholder>','oHDMy','PRLkw','path','AmVTS','skip-tls-cert-verify','pYOVg','error','Epyd5nXbRK','pDqxA','get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','LOG','Lolhz','DAMBw','gyOkT','string','Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region(','7|0|4|3|5|6|8|2|1','DeaII','CJsOs','qhGjX','sHkaE','OmdtN','iohJU','vGJMy','YrYTK','ZlpLh','Odchi','gridProfileId','WhCFN','mgmjG','Cluster:\x20','wqwir','description','\x20using\x20\x27','fWbeS','addListeners','body','qgxBn','epilogue','toLowerCase','../../config/logger','delay','wwTdi','Derym','0|4|1|2|3','Adding\x20Redis\x20deployment...','Dvhgh','handler','kafkaPassword','parse','kopvM','qafie','VDTLO','stringify','Cluster\x20','hubVersion','tQHeH','uNeBw','\x27\x20grid\x20profile','WrLjk','<PasswordPlaceholder>','MkHZX','fcAUl','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','MFpnL','tRchk','yzPZW','SDjAJ','Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20','gLZco','vTxyw','4|0|2|3|1','kURyk','metadata','wdxjk','tSKVS','Grid\x20profile\x20fetched\x20from\x20backend','BxcfR','fVAEW','iSPuk','non-aws-azure-cluster','requestId','gridProfile','uploaderImageVersion','name','fOErZ','uHBro','TrtFG','dkCFP','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','DIDcm','\x20in\x20existing\x20cluster\x20\x27','CLsEc','enableHubHa','Spawning\x20grid\x20on\x20to\x20the\x20cluster','readNamespacedService','880RPrBfb','Will\x20be\x20spawning\x20the\x20grid\x20','fmUdq','Cluster\x20created\x20successfully','jnfLx','options','htzcj','OOOAX','IqFci','CLI_RUN_STARTED','SgHxc','FvVbm','wZywW','create-grid-checks-auth-failed','pre-spawned-invalid-vpc','ohlHY','eKjEX','Adding\x20Websocket\x20listeners','19494SxfVhe','usage','Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','alreadyPresent','YfbXD','YnvTv','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','maxNodes','gvfqP','get-grid-url-null-response','UkRNzNYCBU','../../cloudproviders/utils','BQtvN','luRhk','mwXqh','gNrZu','connectionTimeout','Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','fYiUD','boolean','FuNra','KfgLH','rYziT','ndCrg','http','Tsnxg','region','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','pDycV','RjsZj','kTnnS','WIyVi','hxjsN','uqLtG','kfXbz','rzjuU'];a9_0x384c=function(){return _0x1b5792;};return a9_0x384c();}const a9_0x1e5659=a9_0x3694;(function(_0x4abb6a,_0x4b9842){const _0x5dfd04=a9_0x3694,_0x15e169=_0x4abb6a();while(!![]){try{const _0x2f1a21=-parseInt(_0x5dfd04(0x23b))/0x1+parseInt(_0x5dfd04(0x173))/0x2*(-parseInt(_0x5dfd04(0x13b))/0x3)+-parseInt(_0x5dfd04(0x229))/0x4*(parseInt(_0x5dfd04(0xad))/0x5)+-parseInt(_0x5dfd04(0x201))/0x6*(parseInt(_0x5dfd04(0xfb))/0x7)+parseInt(_0x5dfd04(0x236))/0x8*(-parseInt(_0x5dfd04(0x150))/0x9)+-parseInt(_0x5dfd04(0x244))/0xa*(-parseInt(_0x5dfd04(0x1ef))/0xb)+parseInt(_0x5dfd04(0x22c))/0xc;if(_0x2f1a21===_0x4b9842)break;else _0x15e169['push'](_0x15e169['shift']());}catch(_0xe283ef){_0x15e169['push'](_0x15e169['shift']());}}}(a9_0x384c,0x391cf));function a9_0x3694(_0x42d5bf,_0x291d1e){const _0x384cb2=a9_0x384c();return a9_0x3694=function(_0x36945c,_0x461e8a){_0x36945c=_0x36945c-0xab;let _0x4b9ed8=_0x384cb2[_0x36945c];return _0x4b9ed8;},a9_0x3694(_0x42d5bf,_0x291d1e);}const fs=require('fs'),ws=require('ws'),path=require(a9_0x1e5659(0x190)),yaml=require(a9_0x1e5659(0xd0)),ReconnectingWebSocket=require(a9_0x1e5659(0x137)),got=require('got'),{v4:uuidv4}=require(a9_0x1e5659(0x23a)),webSocketUtils=require(a9_0x1e5659(0x234)),{logger}=require(a9_0x1e5659(0x1b7)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require('../../utils/utilityMethods'),{getCloudProviderObject}=require(a9_0x1e5659(0x20c)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require('../../config/constants'),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x1e5659(0xf8)),{createK8sClient}=require(a9_0x1e5659(0x140)),{sendInstrumentationEvent}=require(a9_0x1e5659(0x161));exports[a9_0x1e5659(0xf4)]='grid',exports['desc']=a9_0x1e5659(0x12d),exports[a9_0x1e5659(0x175)]=function(_0xcfe80b){const _0x5eb06b=a9_0x1e5659,_0x40129d={};_0x40129d['JYZqG']=_0x5eb06b(0x14a),_0x40129d[_0x5eb06b(0x177)]=_0x5eb06b(0x19d),_0x40129d['VPaok']=_0x5eb06b(0xbe),_0x40129d[_0x5eb06b(0x1d2)]=_0x5eb06b(0xb6),_0x40129d['xqqNI']=_0x5eb06b(0x111),_0x40129d[_0x5eb06b(0x22a)]=_0x5eb06b(0xc8),_0x40129d[_0x5eb06b(0x112)]=_0x5eb06b(0xd4),_0x40129d[_0x5eb06b(0x205)]=_0x5eb06b(0xe1),_0x40129d[_0x5eb06b(0x169)]=_0x5eb06b(0x214),_0x40129d[_0x5eb06b(0x23d)]=_0x5eb06b(0xd7),_0x40129d[_0x5eb06b(0x117)]=_0x5eb06b(0xc2);const _0x30e192=_0x40129d,_0x2e6904={};_0x2e6904[_0x5eb06b(0x1af)]=_0x30e192[_0x5eb06b(0xdd)],_0x2e6904['type']=_0x30e192[_0x5eb06b(0x177)];const _0x5979c0={};_0x5979c0['description']=_0x30e192[_0x5eb06b(0x154)],_0x5979c0[_0x5eb06b(0x10b)]=_0x30e192[_0x5eb06b(0x177)];const _0x293d8b={};_0x293d8b[_0x5eb06b(0x1af)]=_0x30e192['SDjAJ'],_0x293d8b[_0x5eb06b(0x10b)]=_0x30e192[_0x5eb06b(0x177)];const _0x2a9d4b={};_0x2a9d4b[_0x5eb06b(0x1af)]=_0x30e192['xqqNI'],_0x2a9d4b[_0x5eb06b(0x10b)]=_0x30e192[_0x5eb06b(0x177)];const _0x2a4195={};_0x2a4195[_0x5eb06b(0x1af)]=_0x30e192[_0x5eb06b(0x22a)],_0x2a4195['type']=_0x30e192[_0x5eb06b(0x177)];const _0x4cc4b5={};_0x4cc4b5[_0x5eb06b(0x1af)]=_0x30e192['SWobM'],_0x4cc4b5[_0x5eb06b(0x10b)]=_0x30e192[_0x5eb06b(0x177)];const _0x35799b={};_0x35799b['description']=_0x30e192[_0x5eb06b(0x205)],_0x35799b[_0x5eb06b(0x10b)]=_0x30e192[_0x5eb06b(0x169)],_0x35799b[_0x5eb06b(0xf6)]=![];const _0x54d670={};_0x54d670['description']=_0x30e192[_0x5eb06b(0x23d)],_0x54d670[_0x5eb06b(0x10b)]=_0x30e192[_0x5eb06b(0x169)],_0x54d670[_0x5eb06b(0xf6)]=![];const _0x2eacb4={};return _0x2eacb4['grid-name']=_0x2e6904,_0x2eacb4[_0x5eb06b(0x17a)]=_0x5979c0,_0x2eacb4[_0x5eb06b(0xc4)]=_0x293d8b,_0x2eacb4[_0x5eb06b(0x13f)]=_0x2a9d4b,_0x2eacb4[_0x5eb06b(0x21b)]=_0x2a4195,_0x2eacb4[_0x5eb06b(0x186)]=_0x4cc4b5,_0x2eacb4[_0x5eb06b(0x192)]=_0x35799b,_0x2eacb4[_0x5eb06b(0xf3)]=_0x54d670,_0xcfe80b[_0x5eb06b(0x202)](HELP_HEADER_MESSAGE['create'])[_0x5eb06b(0x1b5)](HELP_FOOTER_MESSAGE)[_0x5eb06b(0x1f4)](_0x2eacb4)[_0x5eb06b(0xc2)](_0x30e192[_0x5eb06b(0x117)])[_0x5eb06b(0xb2)];},exports[a9_0x1e5659(0x1be)]=async function(_0xde1728){const _0xdbebb8=a9_0x1e5659,_0x4d8841={'mAaKI':_0xdbebb8(0x194),'HJkGK':'13|4|7|5|1|2|15|12|0|14|11|6|8|9|3|10','KFVVh':function(_0x526bd5,_0x2aa2ac,_0x12728a,_0x56b9a4,_0xcb67cb,_0x3a0b20,_0x5026a4,_0x514cc4,_0x33f4a6,_0x40d658,_0xbca251,_0x57bd98){return _0x526bd5(_0x2aa2ac,_0x12728a,_0x56b9a4,_0xcb67cb,_0x3a0b20,_0x5026a4,_0x514cc4,_0x33f4a6,_0x40d658,_0xbca251,_0x57bd98);},'pWWkh':function(_0x43fcdb,_0x39cea6){return _0x43fcdb!==_0x39cea6;},'LCumQ':function(_0x5b7798,_0x3355db){return _0x5b7798(_0x3355db);},'oKGmH':_0xdbebb8(0x1d6),'xZpDM':_0xdbebb8(0x108),'kTnnS':_0xdbebb8(0x20b),'RhCnZ':_0xdbebb8(0x195),'hwMsW':'Enabling\x20Hub\x20HA\x20flow','wdxjk':_0xdbebb8(0xd3),'jYcpc':_0xdbebb8(0x219),'OOOAX':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','kURyk':_0xdbebb8(0x19d),'ndCrg':_0xdbebb8(0xbe),'FvVbm':_0xdbebb8(0xb6),'BxcfR':_0xdbebb8(0x111),'iVWeU':_0xdbebb8(0xc8),'yatLf':_0xdbebb8(0xd4),'dPlnh':_0xdbebb8(0xe1),'CwKqa':_0xdbebb8(0x214),'RoqhM':_0xdbebb8(0xd7),'Tsnxg':_0xdbebb8(0xc2),'ODFLu':_0xdbebb8(0x10d),'DwPcx':_0xdbebb8(0x166),'LUHqa':'default','vGJMy':function(_0x2e492b,_0xfe4332){return _0x2e492b(_0xfe4332);},'Yxtam':_0xdbebb8(0x122),'MkHZX':function(_0x42acba,_0x8cea3a){return _0x42acba===_0x8cea3a;},'htzcj':_0xdbebb8(0x19f),'Vqdzm':_0xdbebb8(0x144),'kopvM':'premium-rwo','HCTNO':function(_0x130e82){return _0x130e82();},'Derym':function(_0x255845){return _0x255845();},'FuNra':'GyfVy','mdHRQ':_0xdbebb8(0x212),'pEaLC':function(_0xa6764a,_0x3ee482,_0x5c49f3,_0xf05f22,_0x483358,_0x169e84,_0x345b39){return _0xa6764a(_0x3ee482,_0x5c49f3,_0xf05f22,_0x483358,_0x169e84,_0x345b39);},'TrtFG':_0xdbebb8(0xe9),'ROMLx':'init-not-called','gNrZu':function(_0x354278,_0x2ce7ea,_0x515769,_0x3fdf60,_0x258220,_0x1004e0,_0x2cf64c){return _0x354278(_0x2ce7ea,_0x515769,_0x3fdf60,_0x258220,_0x1004e0,_0x2cf64c);},'fMPGe':function(_0x753b0c){return _0x753b0c();},'FGvFW':_0xdbebb8(0x18d),'Ahdun':_0xdbebb8(0x1cb),'smISt':_0xdbebb8(0x200),'pDqxA':function(_0x2f4a8b,_0xfea98f){return _0x2f4a8b!==_0xfea98f;},'iAyGq':_0xdbebb8(0x115),'mwXqh':_0xdbebb8(0x23f),'wNNKC':function(_0x50fd7e,_0x21f49d){return _0x50fd7e!==_0x21f49d;},'efPHG':_0xdbebb8(0x149),'vAcnH':_0xdbebb8(0x106),'PNRLB':function(_0x54363d,_0xc53d3b,_0x5304f8,_0x13ec46,_0x42189f,_0x42c00e,_0x285f15,_0x585bca){return _0x54363d(_0xc53d3b,_0x5304f8,_0x13ec46,_0x42189f,_0x42c00e,_0x285f15,_0x585bca);},'MmApI':_0xdbebb8(0x167),'kfXbz':'Krlgi','jnfLx':_0xdbebb8(0x1a2),'sQGsw':_0xdbebb8(0x21c),'KluSl':_0xdbebb8(0x1df),'ENZoX':function(_0x43431e,_0x245f5f){return _0x43431e===_0x245f5f;},'fVAEW':_0xdbebb8(0x17e),'LNXRZ':function(_0x1076a4,_0x1c24ac){return _0x1076a4===_0x1c24ac;},'Lolhz':_0xdbebb8(0x21d),'fOErZ':'EvfVz','luRhk':_0xdbebb8(0x1ca),'hgJOq':_0xdbebb8(0x224),'tQHeH':function(_0x3d88e4,_0x111b43){return _0x3d88e4===_0x111b43;},'iohJU':_0xdbebb8(0x20d),'PZWYn':'aJNxm','Lepfm':_0xdbebb8(0xb9),'urXwQ':function(_0x565157,_0x3b2718,_0xc297ca){return _0x565157(_0x3b2718,_0xc297ca);},'abbsj':function(_0xedb641,_0x4424be){return _0xedb641!==_0x4424be;},'mgmjG':_0xdbebb8(0x1d4),'mwVDn':function(_0x849de1,_0x290eab,_0x2f8ea3){return _0x849de1(_0x290eab,_0x2f8ea3);},'YrYTK':function(_0x5c495d,_0x4dbe90){return _0x5c495d===_0x4dbe90;},'Dvhgh':function(_0x8122b,_0x17416c){return _0x8122b===_0x17416c;},'rNlRV':function(_0xd1ce89,_0x3aac30){return _0xd1ce89!==_0x3aac30;},'pYOVg':_0xdbebb8(0x127),'wZywW':_0xdbebb8(0x17b),'yAFhR':_0xdbebb8(0xf2),'xdihQ':'ZPzmM','vQBmo':_0xdbebb8(0x1c2),'PzFeV':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','pwaVj':_0xdbebb8(0x1fc),'SGjuF':function(_0x34da02,_0x2e30ef){return _0x34da02!==_0x2e30ef;},'WUcDy':_0xdbebb8(0x16b),'sWCMt':_0xdbebb8(0xdf),'MTgRE':_0xdbebb8(0x1db),'eKjEX':_0xdbebb8(0x181),'ZlSyX':_0xdbebb8(0x1a1),'sHkaE':_0xdbebb8(0xcd),'MlUkb':_0xdbebb8(0x217),'iUvGE':function(_0x5ca21d,_0x3b22eb){return _0x5ca21d===_0x3b22eb;},'xKsFO':_0xdbebb8(0x231),'FjAby':'1|3|0|2|4','IMIeW':function(_0x59d1fe,_0x4ea316){return _0x59d1fe===_0x4ea316;},'KfgLH':_0xdbebb8(0xe6),'wwTdi':_0xdbebb8(0xd5),'Azlwl':_0xdbebb8(0x243),'cGVEz':function(_0x58f609,_0x4759e5,_0x9f6dd0,_0x3b3b44,_0xfa7386,_0x3705f4,_0x38b529,_0x40f209){return _0x58f609(_0x4759e5,_0x9f6dd0,_0x3b3b44,_0xfa7386,_0x3705f4,_0x38b529,_0x40f209);},'ilgkE':_0xdbebb8(0x151),'TRXbu':function(_0x38a5ae,_0x19e79){return _0x38a5ae===_0x19e79;},'SjALK':_0xdbebb8(0x178),'gvfqP':'mqeTw','TdIPw':_0xdbebb8(0x1da),'DeaII':function(_0x59d8b1,_0x5014a0){return _0x59d8b1!==_0x5014a0;},'ZbHyg':_0xdbebb8(0x16a),'krJqN':function(_0x90d98c,_0xc401b5){return _0x90d98c!==_0xc401b5;},'yJYGL':_0xdbebb8(0x1a4),'IqFci':_0xdbebb8(0x12c),'kgZxf':_0xdbebb8(0x24d),'xshge':_0xdbebb8(0x14b),'ydDza':function(_0x3ab98a,_0x3d23b4){return _0x3ab98a!==_0x3d23b4;},'ZRwef':'fXRZT','brixT':function(_0x44d5b5,_0x5e88b6,_0x2550f3,_0xb7ad89,_0x407706,_0x45c9ae,_0x3722eb,_0x1ed95e,_0x549bef,_0x2ec78d,_0x4a12e5,_0x182897){return _0x44d5b5(_0x5e88b6,_0x2550f3,_0xb7ad89,_0x407706,_0x45c9ae,_0x3722eb,_0x1ed95e,_0x549bef,_0x2ec78d,_0x4a12e5,_0x182897);},'yzPZW':function(_0x5c324a,_0x1e4bd0){return _0x5c324a===_0x1e4bd0;},'OpFmh':_0xdbebb8(0x1a9),'YnvTv':_0xdbebb8(0x22f),'hKOJV':_0xdbebb8(0x184),'uqLtG':function(_0x3c5133,_0x4c2bb8){return _0x3c5133!==_0x4c2bb8;},'gyOkT':_0xdbebb8(0x19b),'NWTlB':_0xdbebb8(0x157),'WhCFN':function(_0x21710a,_0x2a02b2){return _0x21710a===_0x2a02b2;},'oHDMy':_0xdbebb8(0x1e7),'yPUdv':_0xdbebb8(0x1fe),'xdMFh':_0xdbebb8(0x228),'PRLkw':_0xdbebb8(0x13d),'WvtTa':function(_0x19f425,_0x4de0ef){return _0x19f425!=_0x4de0ef;},'rDvAK':function(_0x45631b,_0x356d2b){return _0x45631b!=_0x356d2b;},'NLzcV':function(_0x4c715b,_0x4bad47){return _0x4c715b!==_0x4bad47;},'KghWP':function(_0x73e724,_0x37b69e){return _0x73e724>_0x37b69e;},'OcOTm':'Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','ZlpLh':function(_0x1fcb75,_0x23af68,_0x2506be,_0x20b0a9,_0x2bddfe,_0x248074,_0x42bf04,_0x11a853){return _0x1fcb75(_0x23af68,_0x2506be,_0x20b0a9,_0x2bddfe,_0x248074,_0x42bf04,_0x11a853);},'hrBYC':'pre-spawned-subnets-not-selected','BoXRo':function(_0xdeb5b0,_0x555ca3){return _0xdeb5b0===_0x555ca3;},'KZDML':_0xdbebb8(0x1e8),'vKRbf':_0xdbebb8(0x1fd),'uNeBw':function(_0x53209c,_0x254b38,_0x5799c9,_0x1ea8df,_0x2eae15,_0x9d8943,_0x4755b3,_0x2cb123){return _0x53209c(_0x254b38,_0x5799c9,_0x1ea8df,_0x2eae15,_0x9d8943,_0x4755b3,_0x2cb123);},'JXVnA':_0xdbebb8(0xea),'nCpdi':'3|1|2|4|0','VDTLO':_0xdbebb8(0x1f2),'pMlMI':_0xdbebb8(0x180),'KsogQ':function(_0x249ba2,_0x4486a5,_0x1a180c){return _0x249ba2(_0x4486a5,_0x1a180c);},'gPwiH':function(_0x590e03,_0x1063c8){return _0x590e03===_0x1063c8;},'RjsZj':_0xdbebb8(0x168),'OdRgC':function(_0xe9f4af,_0x39fe04,_0x5a8d48){return _0xe9f4af(_0x39fe04,_0x5a8d48);},'LzTwa':_0xdbebb8(0xe3),'SgHxc':_0xdbebb8(0x18c),'riajW':'templates','fWbeS':'hubharesources','CLsEc':'browserstack-secret.yaml','XhTGB':_0xdbebb8(0x132),'VuybM':function(_0x2cde70,_0x4c1a28){return _0x2cde70(_0x4c1a28);},'OwtXS':function(_0x1a1ffb,_0xc39735){return _0x1a1ffb(_0xc39735);},'NXeVW':function(_0x49c7a4,_0x49661a){return _0x49c7a4(_0x49661a);},'FiAxm':function(_0xfa4084,_0x430d91){return _0xfa4084(_0x430d91);},'ovtpd':_0xdbebb8(0xc6),'iSPuk':_0xdbebb8(0x183),'qgxBn':_0xdbebb8(0x1bc),'PPUEN':'bitnami-redis.yaml','VbwkP':_0xdbebb8(0x158),'wqwir':_0xdbebb8(0x118),'Mqyem':'bitnami-kafka.yaml','OwnFS':_0xdbebb8(0x126),'OMavz':_0xdbebb8(0x10f),'ApuSr':_0xdbebb8(0x246),'DIDcm':function(_0xf4a5bc,_0x1c4513){return _0xf4a5bc===_0x1c4513;},'fmUdq':_0xdbebb8(0xf0),'uVlzr':_0xdbebb8(0x165),'sJibq':_0xdbebb8(0x17c),'Augqw':_0xdbebb8(0x1bb),'sxlcy':'hub-ha-deployments-failed','mWijV':function(_0x5163cd,_0x19b4a2){return _0x5163cd(_0x19b4a2);},'fcAUl':_0xdbebb8(0xac),'dAbmj':_0xdbebb8(0xef),'dvcnv':'Namespace\x20Created','AmVTS':_0xdbebb8(0x12a),'uHBro':_0xdbebb8(0x1ed),'MFpnL':'Spawning\x20Grid\x20on\x20the\x20Cluster','WQjWI':function(_0x436823,_0x3051fe,_0x216f18,_0x25bdad,_0x2938d2,_0x5f1d7e,_0x5e042b,_0x4eb74a,_0x3f449f,_0x502212,_0x3f8afa){return _0x436823(_0x3051fe,_0x216f18,_0x25bdad,_0x2938d2,_0x5f1d7e,_0x5e042b,_0x4eb74a,_0x3f449f,_0x502212,_0x3f8afa);},'WGqbK':'Grid\x20spawned\x20on\x20the\x20cluster','tRchk':_0xdbebb8(0x203),'sFlXQ':function(_0x2c7a77,_0x49c7cb,_0x2902d9,_0x4908c1,_0xb415a9){return _0x2c7a77(_0x49c7cb,_0x2902d9,_0x4908c1,_0xb415a9);},'bbMYw':function(_0x274a52,_0x4595eb,_0x3f7356){return _0x274a52(_0x4595eb,_0x3f7356);},'NqSQJ':_0xdbebb8(0x10e),'vTxyw':_0xdbebb8(0x241),'sVUKd':_0xdbebb8(0x119),'isbat':function(_0x516df5,_0x15cd65){return _0x516df5===_0x15cd65;},'lYBwl':function(_0x19821a,_0x2b16b4){return _0x19821a===_0x2b16b4;},'pYKIA':_0xdbebb8(0x197),'hxjsN':_0xdbebb8(0x20a),'HYAOf':function(_0x4db353,_0x356220){return _0x4db353===_0x356220;},'PfIdF':_0xdbebb8(0x129),'WIyVi':function(_0x17ff24,_0x4b58a3,_0xc1bfe4,_0x4989bb,_0x3f6e5d,_0x2eb977,_0x3f9a4b,_0x250922){return _0x17ff24(_0x4b58a3,_0xc1bfe4,_0x4989bb,_0x3f6e5d,_0x2eb977,_0x3f9a4b,_0x250922);},'MeDHC':_0xdbebb8(0x11b),'lddlP':_0xdbebb8(0x155),'adYFm':_0xdbebb8(0xc0),'BxnNb':function(_0x3d48d9,_0x48534f,_0x4606bd,_0x36710f,_0x1e35fb,_0x11d338){return _0x3d48d9(_0x48534f,_0x4606bd,_0x36710f,_0x1e35fb,_0x11d338);},'fYiUD':'grid-spawning-failed'};let _0x52e9aa=![],_0x2a7e0c=![],_0x5bb5ee,_0x1aebc3,_0x3369f8,_0x1dbd33,_0x31bae6,_0x495949,_0x1baf49,_0x52058f,_0x18be86,_0x5e3d60,_0xd2c5ef,_0x37d706,_0x2ed205,_0x384dd9,_0x557695=0x1,_0x18245d=0xe;try{global_registry[_0xdbebb8(0x1e0)]=_0x4d8841['HCTNO'](uuidv4),global_registry[_0xdbebb8(0x136)]=![];!fs[_0xdbebb8(0x139)](_0x4d8841[_0xdbebb8(0x1ba)](getCredentialsPath))&&(_0x4d8841['pWWkh'](_0x4d8841[_0xdbebb8(0x215)],_0x4d8841['FuNra'])?_0x132f97=_0x484d84[_0x1da5ad['gridProfile']]:(console[_0xdbebb8(0x194)](_0x4d8841['mdHRQ']),await _0x4d8841['pEaLC'](sendInstrumentationEvent,_0xde1728,_0x4d8841['TrtFG'],messageTypes['ERROR'],_0x4d8841[_0xdbebb8(0x237)],null,_0xde1728),process[_0xdbebb8(0x22e)](0x1)));await _0x4d8841[_0xdbebb8(0x210)](sendInstrumentationEvent,_0xde1728,_0x4d8841[_0xdbebb8(0x1e6)],messageTypes['INFO'],null,null,_0xde1728);const _0x3ee520=JSON[_0xdbebb8(0x1c0)](fs[_0xdbebb8(0x240)](_0x4d8841[_0xdbebb8(0xf7)](getCredentialsPath)));global_registry[_0xdbebb8(0x12b)]=_0x3ee520[_0xdbebb8(0xef)][_0xdbebb8(0x116)],global_registry[_0xdbebb8(0x15e)]=_0x3ee520[_0xdbebb8(0xef)][_0xdbebb8(0xbc)];const _0x53b0bc=WS_ENDPOINT[_0xdbebb8(0x188)](_0x4d8841[_0xdbebb8(0x17d)],_0x3ee520['Browserstack'][_0xdbebb8(0x116)])[_0xdbebb8(0x188)](_0x4d8841['Ahdun'],_0x3ee520['Browserstack'][_0xdbebb8(0xbc)]),_0x1a604b={};_0x1a604b[_0xdbebb8(0x109)]=ws,_0x1a604b[_0xdbebb8(0x211)]=0x36ee80,_0x37d706=new ReconnectingWebSocket(_0x53b0bc,[],_0x1a604b),logger['debug'](_0x4d8841['smISt']),webSocketUtils[_0xdbebb8(0x1b2)](_0x37d706,_0xde1728['user'],_0xde1728[_0xdbebb8(0xbc)]);const _0x3bcf43=_0xde1728[_0xdbebb8(0x17f)]||DEFAULT_GRID_NAME;if(_0xde1728[_0xdbebb8(0x238)]||_0xde1728[_0xdbebb8(0xc5)]||_0xde1728[_0xdbebb8(0x21b)]){if(_0x4d8841[_0xdbebb8(0x196)](_0x4d8841['iAyGq'],_0x4d8841[_0xdbebb8(0x20f)])){!(_0xde1728[_0xdbebb8(0x238)]&&_0xde1728['cloudProvider']&&_0xde1728['region'])&&(_0x4d8841[_0xdbebb8(0x15c)](_0x4d8841[_0xdbebb8(0x156)],_0x4d8841[_0xdbebb8(0x156)])?_0x50db40[_0xdbebb8(0x1e1)]=_0x2e24c1[_0xdbebb8(0x1e1)]:(_0x5bb5ee=_0x4d8841[_0xdbebb8(0x131)],await _0x4d8841[_0xdbebb8(0x11c)](reportToGalactusAndSendToEDS,_0xde1728,_0x37d706,_0x5bb5ee,messageTypes['ERROR'],_0x4d8841['TrtFG'],_0x4d8841['MmApI'],_0x4d8841[_0xdbebb8(0x12e)]),logger['error'](_0x5bb5ee),process[_0xdbebb8(0x22e)](0x1)));![AWS,AZURE,GCP][_0xdbebb8(0x105)](_0xde1728[_0xdbebb8(0xc5)][_0xdbebb8(0x1b6)]())&&(_0x4d8841[_0xdbebb8(0x1cc)](_0x4d8841[_0xdbebb8(0x223)],_0x4d8841[_0xdbebb8(0x1f3)])?_0xe30f90[_0xdbebb8(0x24f)]('Found\x20VPC:\x20'+_0x256f4f+'\x20'):(_0x5bb5ee=_0x4d8841['sQGsw'],await _0x4d8841[_0xdbebb8(0x11c)](reportToGalactusAndSendToEDS,_0xde1728,_0x37d706,_0x5bb5ee,messageTypes['ERROR'],_0x4d8841[_0xdbebb8(0x1e6)],_0x4d8841[_0xdbebb8(0x107)],_0x4d8841[_0xdbebb8(0x12e)]),logger[_0xdbebb8(0x194)](_0x5bb5ee),process[_0xdbebb8(0x22e)](0x1)));_0xde1728[_0xdbebb8(0xd1)]&&_0x4d8841['ENZoX'](_0xde1728[_0xdbebb8(0xd1)][_0xdbebb8(0x1b6)](),_0x4d8841[_0xdbebb8(0x172)])&&(_0x4d8841[_0xdbebb8(0x24e)](_0x4d8841[_0xdbebb8(0x1dd)],_0x4d8841[_0xdbebb8(0x1dd)])?global_registry[_0xdbebb8(0x136)]=!![]:_0x22c5c5[_0xdbebb8(0x136)]=!![]);global_registry[_0xdbebb8(0xc5)]=_0xde1728['cloudProvider'],global_registry['clusterRegion']=_0xde1728['region'],global_registry['clusterName']=_0xde1728['clusterName'];const _0x22180d=await _0x4d8841['pEaLC'](getCloudProviderObject,_0xde1728[_0xdbebb8(0xc5)],_0xde1728['clusterName'],_0x3bcf43,_0x37d706,webSocketUtils,_0xde1728),_0x4e1de9=await _0x22180d[_0xdbebb8(0xca)]();if(!_0x4e1de9)_0x4d8841['LNXRZ'](_0x4d8841[_0xdbebb8(0x19a)],_0x4d8841[_0xdbebb8(0x1e4)])?_0x35d4c0['error']('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x2be813+'\x20\x0a'+_0x327524[_0xdbebb8(0x1c4)](_0x5d9e28[_0xdbebb8(0xed)])):(logger[_0xdbebb8(0x24f)](_0xdbebb8(0x1ad)+_0xde1728[_0xdbebb8(0x238)]+_0xdbebb8(0x198)),_0x52e9aa=![],_0x2a7e0c=!![]);else{if(_0x4d8841['wNNKC'](_0x4d8841[_0xdbebb8(0x20e)],_0x4d8841['hgJOq']))_0x52e9aa=!![];else{const _0x388914={};_0x388914[_0xdbebb8(0x10b)]=_0x3f89cb[_0xdbebb8(0x199)],_0x388914[_0xdbebb8(0x152)]=_0x28a8c7,_0x2499dd[_0xdbebb8(0xcb)](_0x4472f3,_0x388914,_0x4d8841[_0xdbebb8(0x12e)],!![]);}}_0x3369f8=_0xde1728['clusterName'],_0x1aebc3=_0xde1728[_0xdbebb8(0xc5)]['toLowerCase'](),_0x1dbd33=_0xde1728[_0xdbebb8(0x21b)];}else{const _0x348486=_0x4d8841[_0xdbebb8(0xd8)][_0xdbebb8(0x146)]('|');let _0x1283cb=0x0;while(!![]){switch(_0x348486[_0x1283cb++]){case'0':_0x47b27e=_0x2c5bff[_0xdbebb8(0xb7)];continue;case'1':_0x1fe15b=_0x47a74a[_0xdbebb8(0x23e)];continue;case'2':_0x1dcbc0=null;continue;case'3':_0x4d8841[_0xdbebb8(0x247)](_0x27dbb9,_0x573a55,_0x14c250,_0x2dc2e1,_0x4e3024,_0xc2c7be,_0x5384d9,_0x4875b3,_0x34f713,_0x20c31a,_0x3861f6,_0x31ceed);continue;case'4':_0x179219['info'](_0x5808a5);continue;case'5':_0x480c83=_0x2db06e[_0xdbebb8(0xd9)];continue;case'6':_0x1ce81c=_0x3f44ad['hubVersion'];continue;case'7':const _0x4d9999={};_0x4d9999[_0xdbebb8(0x10b)]=_0x496c1b[_0xdbebb8(0x199)],_0x4d9999[_0xdbebb8(0x152)]=_0x43ee7b,_0x64a647[_0xdbebb8(0xcb)](_0x31af8a,_0x4d9999);continue;case'8':_0x43b1c8=_0x2abdbd[_0xdbebb8(0xda)];continue;case'9':_0x4d8841[_0xdbebb8(0x189)](_0x1e2444['privateGrid'],_0x2c299f)&&_0x2fa394[_0xdbebb8(0xd1)]&&(_0x169a15['isPrivateGrid']=!![]);continue;case'10':_0x36704b[_0xdbebb8(0x1ec)]&&_0x4d8841[_0xdbebb8(0x128)](_0x35b6a0,_0x1275da['kafkaUploader']);continue;case'11':_0x5dcb75=_0x174083[_0xdbebb8(0x208)];continue;case'12':_0x11baf5=null;continue;case'13':_0x45faf0=_0xdbebb8(0x147)+_0xd583b1;continue;case'14':_0x1a9cf8=_0x1324a7[_0xdbebb8(0x138)];continue;case'15':_0xb7e0d1=null;continue;}break;}}}else{if(_0xde1728['gridProfile']){if(_0x4d8841[_0xdbebb8(0x1c7)](_0x4d8841[_0xdbebb8(0x1a5)],_0x4d8841['PZWYn'])){const _0x51a9e1=_0x4d8841[_0xdbebb8(0x16e)][_0xdbebb8(0x146)]('|');let _0x2c30da=0x0;while(!![]){switch(_0x51a9e1[_0x2c30da++]){case'0':_0xb60579[_0xdbebb8(0xd6)]=_0x4d8841['xZpDM'];continue;case'1':_0x37032c[_0xdbebb8(0x1ec)]=!![];continue;case'2':_0x5eb02d[_0xdbebb8(0xfe)]=_0x4d8841['kTnnS'];continue;case'3':_0x9c3f44[_0xdbebb8(0x1bf)]=_0x4d8841[_0xdbebb8(0x121)];continue;case'4':_0x3d8f9b[_0xdbebb8(0x24f)](_0x4d8841['hwMsW']);continue;}break;}}else global_registry['gridProfile']=_0xde1728[_0xdbebb8(0x1e1)];}}global_registry['gridName']=_0xde1728[_0xdbebb8(0x17f)];const _0x3dcaae={'method':_0x4d8841['Lepfm'],'headers':_0x4d8841[_0xdbebb8(0x143)](getAuthHeader,_0x3ee520[_0xdbebb8(0xef)][_0xdbebb8(0x116)],_0x3ee520['Browserstack']['password']),'throwHttpErrors':![]},_0x2fd42a={};_0x2fd42a[_0xdbebb8(0x17f)]=_0x3bcf43;const _0x2e9ef8=_0x2fd42a;_0x2a7e0c&&(_0x4d8841[_0xdbebb8(0xf5)](_0x4d8841['mgmjG'],_0x4d8841[_0xdbebb8(0x1ac)])?_0x4d8841[_0xdbebb8(0x128)](_0xd833e8,_0x234f0c['uploaderVersion']):(_0x2e9ef8[_0xdbebb8(0x21b)]=_0x1dbd33,_0x2e9ef8[_0xdbebb8(0xc5)]=_0x1aebc3,_0x2e9ef8[_0xdbebb8(0x113)]=!![]));const _0x123010=_0xdbebb8(0x242)+AG_API_URL+_0xdbebb8(0x133),_0x2451ed={'searchParams':_0x2e9ef8,'throwHttpErrors':![],..._0x3dcaae},_0x14025c=_0x2451ed,_0x4b2564=await _0x4d8841[_0xdbebb8(0x11e)](got,_0x123010,_0x14025c);(_0x4d8841[_0xdbebb8(0x1a7)](_0x4b2564,null)||_0x4d8841[_0xdbebb8(0x1bd)](_0x4b2564,undefined))&&(_0x4d8841[_0xdbebb8(0xab)](_0x4d8841['pYOVg'],_0x4d8841[_0xdbebb8(0x193)])?_0x1de3d5=_0x4d8841[_0xdbebb8(0x1d9)]:(_0x5bb5ee=_0x4d8841[_0xdbebb8(0x1fb)],await _0x4d8841[_0xdbebb8(0x11c)](reportToGalactusAndSendToEDS,_0xde1728,_0x37d706,_0x5bb5ee,messageTypes['ERROR'],_0x4d8841[_0xdbebb8(0x1e6)],_0x4d8841['yAFhR'],_0x4d8841['mAaKI']),logger['error'](_0x5bb5ee),process[_0xdbebb8(0x22e)](0x1)));_0x4d8841[_0xdbebb8(0x1c7)](_0x4b2564[_0xdbebb8(0x226)],0x191)&&(_0x4d8841[_0xdbebb8(0x15c)](_0x4d8841[_0xdbebb8(0xb5)],_0x4d8841['vQBmo'])?(_0x5bb5ee=_0x4d8841['PzFeV'],await _0x4d8841['PNRLB'](reportToGalactusAndSendToEDS,_0xde1728,_0x37d706,_0x5bb5ee,messageTypes[_0xdbebb8(0x102)],_0x4d8841[_0xdbebb8(0x1e6)],_0x4d8841[_0xdbebb8(0x22d)],_0x4d8841[_0xdbebb8(0x12e)]),logger[_0xdbebb8(0x194)](_0x5bb5ee),process[_0xdbebb8(0x22e)](0x1)):_0x380b42=_0x4d8841[_0xdbebb8(0x245)]);_0x4d8841[_0xdbebb8(0xab)](_0x4b2564['statusCode'],0xc8)&&(_0x4d8841[_0xdbebb8(0x14d)](_0x4d8841[_0xdbebb8(0xcf)],_0x4d8841[_0xdbebb8(0xcf)])?_0x22c743['isPrivateGrid']=!![]:(_0x5bb5ee=_0xdbebb8(0x11f)+JSON[_0xdbebb8(0x1c4)](_0x4b2564[_0xdbebb8(0x1b3)]),await _0x4d8841[_0xdbebb8(0x11c)](reportToGalactusAndSendToEDS,_0xde1728,_0x37d706,_0x5bb5ee,messageTypes['ERROR'],_0x4d8841[_0xdbebb8(0x1e6)],_0x4d8841[_0xdbebb8(0x148)],_0x4d8841[_0xdbebb8(0x12e)]),logger[_0xdbebb8(0x194)](_0x5bb5ee),process[_0xdbebb8(0x22e)](0x1)));const _0x48f67b=JSON['parse'](_0x4b2564['body']),_0x374a46={};_0x374a46[_0xdbebb8(0x10b)]=WS_EVENTS[_0xdbebb8(0x1f8)],_0x374a46[_0xdbebb8(0x152)]=_0x4d8841['Vqdzm'],webSocketUtils['sendEventToBackend'](_0x37d706,_0x374a46);const _0x4c67e2={};_0x4c67e2['type']=WS_EVENTS[_0xdbebb8(0x199)],_0x4c67e2['message']=_0x4d8841['MTgRE'],webSocketUtils[_0xdbebb8(0xcb)](_0x37d706,_0x4c67e2);if(_0x48f67b[_0xdbebb8(0x204)]){if(_0x4d8841[_0xdbebb8(0xc3)](_0x4d8841[_0xdbebb8(0x1ff)],_0x4d8841[_0xdbebb8(0xe5)])){const _0x26ae2f={};_0x26ae2f['description']=_0x4d8841[_0xdbebb8(0x1f6)],_0x26ae2f[_0xdbebb8(0x10b)]=_0x4d8841[_0xdbebb8(0x1d7)];const _0x49ac19={};_0x49ac19[_0xdbebb8(0x1af)]=_0x4d8841[_0xdbebb8(0x218)],_0x49ac19[_0xdbebb8(0x10b)]=_0x4d8841['kURyk'];const _0x1a7c3f={};_0x1a7c3f['description']=_0x4d8841[_0xdbebb8(0x1fa)],_0x1a7c3f[_0xdbebb8(0x10b)]=_0x4d8841[_0xdbebb8(0x1d7)];const _0x53c66c={};_0x53c66c[_0xdbebb8(0x1af)]=_0x4d8841[_0xdbebb8(0x1dc)],_0x53c66c['type']=_0x4d8841[_0xdbebb8(0x1d7)];const _0x2317d9={};_0x2317d9['description']=_0x4d8841['iVWeU'],_0x2317d9[_0xdbebb8(0x10b)]=_0x4d8841[_0xdbebb8(0x1d7)];const _0x1c00c5={};_0x1c00c5['description']=_0x4d8841['yatLf'],_0x1c00c5['type']=_0x4d8841[_0xdbebb8(0x1d7)];const _0x1995fa={};_0x1995fa[_0xdbebb8(0x1af)]=_0x4d8841[_0xdbebb8(0x22b)],_0x1995fa[_0xdbebb8(0x10b)]=_0x4d8841[_0xdbebb8(0x125)],_0x1995fa[_0xdbebb8(0xf6)]=![];const _0x390cc2={};_0x390cc2[_0xdbebb8(0x1af)]=_0x4d8841['RoqhM'],_0x390cc2[_0xdbebb8(0x10b)]=_0x4d8841[_0xdbebb8(0x125)],_0x390cc2[_0xdbebb8(0xf6)]=![];const _0x106117={};return _0x106117[_0xdbebb8(0x23c)]=_0x26ae2f,_0x106117[_0xdbebb8(0x17a)]=_0x49ac19,_0x106117['cluster-name']=_0x1a7c3f,_0x106117[_0xdbebb8(0x13f)]=_0x53c66c,_0x106117['region']=_0x2317d9,_0x106117['private-grid']=_0x1c00c5,_0x106117[_0xdbebb8(0x192)]=_0x1995fa,_0x106117[_0xdbebb8(0xf3)]=_0x390cc2,_0x190c11['usage'](_0x575c3a[_0xdbebb8(0x14c)])[_0xdbebb8(0x1b5)](_0x273000)['options'](_0x106117)['help'](_0x4d8841[_0xdbebb8(0x21a)])['argv'];}else _0x5bb5ee='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x3bcf43+'.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name',await _0x4d8841[_0xdbebb8(0x11c)](reportToGalactusAndSendToEDS,_0xde1728,_0x37d706,_0x5bb5ee,messageTypes[_0xdbebb8(0x102)],_0x4d8841[_0xdbebb8(0x1e6)],_0x4d8841[_0xdbebb8(0x1a3)],_0x4d8841['mAaKI']),logger[_0xdbebb8(0x194)](_0x5bb5ee),process[_0xdbebb8(0x22e)](0x1);}const _0x1ae22d=_0x48f67b['gridProfiles'];let _0x3b6592=_0x1ae22d[_0x48f67b['defaultGridProfile']];_0xde1728[_0xdbebb8(0x1e1)]&&(_0x4d8841[_0xdbebb8(0xc3)](_0x4d8841[_0xdbebb8(0xd2)],_0x4d8841[_0xdbebb8(0xd2)])?_0x3b6592=_0x1ae22d[_0xde1728[_0xdbebb8(0x1e1)]]:_0x1860f9=!![]);global_registry['enableHubHa']=![];if(_0xde1728[_0xdbebb8(0x135)]){if(_0x4d8841[_0xdbebb8(0x15a)](_0x4d8841['xKsFO'],_0x4d8841[_0xdbebb8(0xec)])){const _0x719402=_0x4d8841[_0xdbebb8(0x11a)][_0xdbebb8(0x146)]('|');let _0x9fc083=0x0;while(!![]){switch(_0x719402[_0x9fc083++]){case'0':global_registry[_0xdbebb8(0xfe)]=_0x4d8841[_0xdbebb8(0x21f)];continue;case'1':logger[_0xdbebb8(0x24f)](_0x4d8841['hwMsW']);continue;case'2':global_registry[_0xdbebb8(0x1bf)]=_0x4d8841['RhCnZ'];continue;case'3':global_registry[_0xdbebb8(0xd6)]=_0x4d8841[_0xdbebb8(0xce)];continue;case'4':global_registry[_0xdbebb8(0x1ec)]=!![];continue;}break;}}else _0x213b40=null;}if(_0x4d8841[_0xdbebb8(0x15a)](_0x52e9aa,![])&&_0x4d8841[_0xdbebb8(0x14f)](_0x2a7e0c,![])){if(_0x4d8841[_0xdbebb8(0xab)](_0x4d8841[_0xdbebb8(0x216)],_0x4d8841[_0xdbebb8(0x216)]))_0x2919e4['region']=_0x4a1a0d,_0x112b09['cloudProvider']=_0x43f315,_0x2d5915[_0xdbebb8(0x113)]=!![];else{_0x4d8841['MkHZX'](_0x3b6592,undefined)&&(_0x4d8841[_0xdbebb8(0x15c)](_0x4d8841[_0xdbebb8(0x1b9)],_0x4d8841[_0xdbebb8(0x1b9)])?(_0x4644f9=_0x4e561b[_0xdbebb8(0x160)],_0xe25891=_0x4d8841[_0xdbebb8(0xe4)]):(_0x5bb5ee=_0x4d8841['Azlwl'],await _0x4d8841['cGVEz'](reportToGalactusAndSendToEDS,_0xde1728,_0x37d706,_0x5bb5ee,messageTypes[_0xdbebb8(0x102)],_0x4d8841[_0xdbebb8(0x1e6)],_0x4d8841['ilgkE'],_0x4d8841[_0xdbebb8(0x12e)]),logger['error'](_0x5bb5ee),process[_0xdbebb8(0x22e)](0x1)));global_registry[_0xdbebb8(0x1aa)]=_0x3b6592['id'],_0x5bb5ee=_0xdbebb8(0x1f0)+_0x3bcf43+_0xdbebb8(0x1b0)+_0x3b6592['name']+_0xdbebb8(0x1c9),logger[_0xdbebb8(0x24f)](_0x5bb5ee);const _0x1e4f1f={};_0x1e4f1f[_0xdbebb8(0x10b)]=WS_EVENTS['LOG'],_0x1e4f1f[_0xdbebb8(0x152)]=_0x5bb5ee,webSocketUtils['sendEventToBackend'](_0x37d706,_0x1e4f1f),_0x1aebc3=_0x3b6592['cloudProvider'],_0x3369f8=_0x3b6592[_0xdbebb8(0x238)],_0x1dbd33=_0x3b6592[_0xdbebb8(0x21b)],_0x31bae6=_0x3b6592[_0xdbebb8(0xd9)],_0x495949=_0x3b6592[_0xdbebb8(0x23e)],_0x1baf49=_0x3b6592[_0xdbebb8(0xb0)],_0x52058f=_0x3b6592[_0xdbebb8(0xde)],_0x18be86=_0x3b6592[_0xdbebb8(0x250)],_0x5e3d60=_0x3b6592['s3bucket'],_0x557695=_0x3b6592[_0xdbebb8(0x138)],_0x18245d=_0x3b6592['maxNodes'],_0x2ed205=_0x48f67b[_0xdbebb8(0x1c6)],_0x384dd9=_0x48f67b[_0xdbebb8(0xda)];if(_0x1baf49&&_0x4d8841[_0xdbebb8(0x18b)](_0x1baf49['length'],0x0)){if(_0x4d8841[_0xdbebb8(0x24e)](_0x4d8841[_0xdbebb8(0x123)],_0x4d8841[_0xdbebb8(0x123)]))_0x1baf49=null;else{const _0x138e5b={'azure.workload.identity/use':_0x4d8841['DwPcx'],..._0x42bd33[0x0][_0xdbebb8(0x101)][_0xdbebb8(0x174)][_0xdbebb8(0x1d8)]['labels']};_0x51b25a[0x0]['spec'][_0xdbebb8(0x174)][_0xdbebb8(0x1d8)]['labels']=_0x138e5b,_0x4bed9f[0x0][_0xdbebb8(0x101)][_0xdbebb8(0x174)][_0xdbebb8(0x101)][_0xdbebb8(0x164)]=_0x4d8841[_0xdbebb8(0x15b)];}}_0x18be86&&_0x4d8841['IMIeW'](_0x18be86[_0xdbebb8(0xfa)],0x0)&&(_0x4d8841['SGjuF'](_0x4d8841[_0xdbebb8(0x209)],_0x4d8841[_0xdbebb8(0x141)])?_0x18be86=null:(_0x37bd32[_0xdbebb8(0x24f)](_0xdbebb8(0x1ad)+_0x170112[_0xdbebb8(0x238)]+_0xdbebb8(0x198)),_0x4d2ea9=![],_0x3d6d00=!![])),_0x4d8841[_0xdbebb8(0x1a0)](_0x3b6592[_0xdbebb8(0xd1)],undefined)&&_0x3b6592['privateGrid']&&(_0x4d8841[_0xdbebb8(0x15a)](_0x4d8841[_0xdbebb8(0x187)],_0x4d8841[_0xdbebb8(0x187)])?global_registry[_0xdbebb8(0x136)]=!![]:_0x13b48b[_0xdbebb8(0x136)]=!![]),_0x4d8841['KFVVh'](updateGlobalRegistryWithConfig,_0x1aebc3,_0x3369f8,_0x1dbd33,_0x31bae6,_0x495949,_0x5e3d60,_0x3b6592,_0x2ed205,_0x384dd9,_0x557695,_0x18245d),global_registry['enableHubHa']&&(_0x4d8841['krJqN'](_0x4d8841[_0xdbebb8(0xbd)],_0x4d8841[_0xdbebb8(0x1f7)])?_0x4d8841[_0xdbebb8(0x128)](updateGlobalRegistryForHubHa,_0x48f67b[_0xdbebb8(0x100)]):_0x4d8841['vGJMy'](_0x19dae9,_0x2b1944[_0xdbebb8(0x13a)]));}}else{if(_0x4d8841[_0xdbebb8(0x14f)](_0x2a7e0c,!![])){if(_0x4d8841['abbsj'](_0x4d8841[_0xdbebb8(0xdb)],_0x4d8841['xshge'])){_0x5bb5ee='Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20'+_0x3bcf43,logger[_0xdbebb8(0x24f)](_0x5bb5ee);const _0x4cb38b={};_0x4cb38b[_0xdbebb8(0x10b)]=WS_EVENTS[_0xdbebb8(0x199)],_0x4cb38b['message']=_0x5bb5ee,webSocketUtils['sendEventToBackend'](_0x37d706,_0x4cb38b),_0x31bae6=_0x3b6592['concurrency'],_0x495949=_0x3b6592[_0xdbebb8(0x23e)],_0x1baf49=null,_0x52058f=null,_0x18be86=null,_0x5e3d60=_0x3b6592[_0xdbebb8(0xb7)],_0x557695=_0x3b6592['minNodes'],_0x18245d=_0x3b6592[_0xdbebb8(0x208)],_0x2ed205=_0x48f67b[_0xdbebb8(0x1c6)],_0x384dd9=_0x48f67b[_0xdbebb8(0xda)];if(_0x4d8841['ydDza'](_0x3b6592[_0xdbebb8(0xd1)],undefined)&&_0x3b6592['privateGrid']){if(_0x4d8841[_0xdbebb8(0x15a)](_0x4d8841[_0xdbebb8(0x124)],_0x4d8841[_0xdbebb8(0x124)]))global_registry[_0xdbebb8(0x136)]=!![];else throw new _0x28bd6f('Cluster\x20'+_0x21689f+_0xdbebb8(0x171));}_0x4d8841[_0xdbebb8(0x249)](updateGlobalRegistryWithConfig,_0x1aebc3,_0x3369f8,_0x1dbd33,_0x31bae6,_0x495949,_0x5e3d60,_0x3b6592,_0x2ed205,_0x384dd9,_0x557695,_0x18245d),global_registry[_0xdbebb8(0x1ec)]&&(_0x4d8841[_0xdbebb8(0x1d1)](_0x4d8841[_0xdbebb8(0x162)],_0x4d8841[_0xdbebb8(0x162)])?_0x4d8841[_0xdbebb8(0x1a6)](updateGlobalRegistryForHubHa,_0x48f67b[_0xdbebb8(0x13a)]):_0x5db36c[_0xdbebb8(0xf9)]());}else _0x4a4ff2=null;}else{if(_0x4d8841[_0xdbebb8(0x12f)](_0x4d8841[_0xdbebb8(0x206)],_0x4d8841[_0xdbebb8(0x206)])){const _0x319da7={};_0x319da7[_0xdbebb8(0x10b)]=_0x5f231a[_0xdbebb8(0x199)],_0x319da7[_0xdbebb8(0x152)]=_0xdbebb8(0x1c5)+_0x2a3042+_0xdbebb8(0xb3),_0x4a7c35[_0xdbebb8(0xcb)](_0x5afcf8,_0x319da7,_0x4d8841[_0xdbebb8(0x104)]),_0xced7a3[_0xdbebb8(0x24f)](_0xdbebb8(0x1c5)+_0x2080be+_0xdbebb8(0xb3)),_0x79dc3a=!![];if(_0x4d8841[_0xdbebb8(0x1cc)](_0x206435,!![]))throw new _0xf73175(_0xdbebb8(0x1c5)+_0x183892+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}else{const _0x103809=_0x4d8841[_0xdbebb8(0x16f)][_0xdbebb8(0x146)]('|');let _0x172d9c=0x0;while(!![]){switch(_0x103809[_0x172d9c++]){case'0':global_registry[_0xdbebb8(0x238)]=_0x3369f8;continue;case'1':const _0xc4008e={};_0xc4008e[_0xdbebb8(0x10b)]=WS_EVENTS[_0xdbebb8(0x199)],_0xc4008e[_0xdbebb8(0x152)]=_0x5bb5ee,webSocketUtils['sendEventToBackend'](_0x37d706,_0xc4008e);continue;case'2':logger[_0xdbebb8(0x24f)](_0x5bb5ee);continue;case'3':_0x5bb5ee=_0xdbebb8(0x235)+_0x3bcf43+_0xdbebb8(0x1ea)+_0x3369f8+'\x27';continue;case'4':global_registry[_0xdbebb8(0x16c)]=_0x1dbd33;continue;case'5':const _0xd234df={};_0xd234df[_0xdbebb8(0x10b)]=WS_EVENTS[_0xdbebb8(0x1f8)],_0xd234df[_0xdbebb8(0x152)]=_0x4d8841[_0xdbebb8(0x225)],webSocketUtils[_0xdbebb8(0xcb)](_0x37d706,_0xd234df);continue;case'6':global_registry[_0xdbebb8(0xc5)]=_0x1aebc3;continue;case'7':global_registry[_0xdbebb8(0xda)]=_0x48f67b['browserVersion'];continue;case'8':global_registry[_0xdbebb8(0x1c6)]=_0x48f67b[_0xdbebb8(0x1c6)];continue;}break;}}}}const _0x1c1e4d=await _0x4d8841[_0xdbebb8(0x210)](getCloudProviderObject,_0x1aebc3,_0x3369f8,_0x3bcf43,_0x37d706,webSocketUtils,_0xde1728);if(_0x4d8841[_0xdbebb8(0x189)](_0x1aebc3,AZURE)){if(_0x4d8841[_0xdbebb8(0x222)](_0x4d8841[_0xdbebb8(0x19c)],_0x4d8841[_0xdbebb8(0xb8)]))_0x1c1e4d[_0xdbebb8(0xf9)]();else{const _0x5b1398=_0x4d8841[_0xdbebb8(0x1f5)][_0xdbebb8(0x146)]('|');let _0x215476=0x0;while(!![]){switch(_0x5b1398[_0x215476++]){case'0':_0x8b757e=_0xdbebb8(0x235)+_0x447f5b+_0xdbebb8(0x1ea)+_0x31417e+'\x27';continue;case'1':_0x196ec0['browserVersion']=_0x2461e3[_0xdbebb8(0xda)];continue;case'2':_0x449e58['hubVersion']=_0x432280['hubVersion'];continue;case'3':const _0x112a16={};_0x112a16['type']=_0x47d5f2['LOG'],_0x112a16[_0xdbebb8(0x152)]=_0x52f350,_0x4a7e35[_0xdbebb8(0xcb)](_0x486653,_0x112a16);continue;case'4':_0x341726[_0xdbebb8(0x24f)](_0x21e2b1);continue;case'5':_0x4535b1['cloudProvider']=_0x54362c;continue;case'6':_0x5501d4[_0xdbebb8(0x16c)]=_0x22c262;continue;case'7':const _0x208fac={};_0x208fac[_0xdbebb8(0x10b)]=_0x3bc3ef[_0xdbebb8(0x1f8)],_0x208fac[_0xdbebb8(0x152)]=_0x4d8841['Vqdzm'],_0x21a70d[_0xdbebb8(0xcb)](_0x2d1d4f,_0x208fac);continue;case'8':_0x15c0bb[_0xdbebb8(0x238)]=_0x5e9165;continue;}break;}}}let _0x30ba65;if(_0x4d8841[_0xdbebb8(0x1ab)](_0x52e9aa,![])){_0x5bb5ee=_0xdbebb8(0x19e)+_0x1dbd33+').';const _0x27b17d={};_0x27b17d['type']=WS_EVENTS[_0xdbebb8(0x199)],_0x27b17d[_0xdbebb8(0x152)]=_0x5bb5ee,webSocketUtils[_0xdbebb8(0xcb)](_0x37d706,_0x27b17d),logger[_0xdbebb8(0x24f)](_0x5bb5ee);const _0x1d8132=await _0x1c1e4d[_0xdbebb8(0xca)]();if(_0x1d8132){if(_0x4d8841[_0xdbebb8(0x189)](_0x4d8841['oHDMy'],_0x4d8841[_0xdbebb8(0x18e)]))_0x98228e['info'](_0xdbebb8(0xbf)+_0x20e61d['stringify'](_0x442282)+'\x20');else{const _0x38046b={};_0x38046b[_0xdbebb8(0x10b)]=WS_EVENTS[_0xdbebb8(0x199)],_0x38046b['message']=_0xdbebb8(0x1c5)+_0x3369f8+_0xdbebb8(0xb3),webSocketUtils[_0xdbebb8(0xcb)](_0x37d706,_0x38046b,_0x4d8841[_0xdbebb8(0x104)]),logger['info'](_0xdbebb8(0x1c5)+_0x3369f8+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation'),_0x52e9aa=!![];if(_0x4d8841[_0xdbebb8(0x24e)](_0x2a7e0c,!![])){if(_0x4d8841['uqLtG'](_0x4d8841['yPUdv'],_0x4d8841[_0xdbebb8(0x24b)]))throw new Error(_0xdbebb8(0x1c5)+_0x3369f8+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');else _0x2d6de4=_0x4d8841['kopvM'];}}}else{const _0x4694d0={};_0x4694d0[_0xdbebb8(0x10b)]=WS_EVENTS[_0xdbebb8(0x199)],_0x4694d0['message']=_0x4d8841[_0xdbebb8(0x18f)],webSocketUtils[_0xdbebb8(0xcb)](_0x37d706,_0x4694d0),logger['info'](_0x4d8841['PRLkw']);const _0x3a1e84=_0x4d8841['WvtTa'](_0x1baf49,null)&&_0x4d8841['DeaII'](_0x1baf49,undefined),_0x3a673c=_0x4d8841['rDvAK'](_0x18be86,null)&&_0x4d8841[_0xdbebb8(0x114)](_0x18be86,undefined)&&_0x4d8841['KghWP'](_0x18be86[_0xdbebb8(0xfa)],0x0);if(_0x3a1e84){_0x4d8841[_0xdbebb8(0xc3)](_0x3a673c,![])&&(_0x5bb5ee=_0x4d8841[_0xdbebb8(0x120)],await _0x4d8841[_0xdbebb8(0x1a8)](reportToGalactusAndSendToEDS,_0xde1728,_0x37d706,_0x5bb5ee,messageTypes['ERROR'],_0x4d8841['TrtFG'],_0x4d8841['hrBYC'],_0x4d8841[_0xdbebb8(0x12e)]),logger[_0xdbebb8(0x194)](_0x5bb5ee),process[_0xdbebb8(0x22e)](0x1));const _0x3a2a1e=await _0x1c1e4d[_0xdbebb8(0x233)](_0x1baf49);_0x4d8841[_0xdbebb8(0xfd)](_0x3a2a1e,![])?(_0x5bb5ee=_0x4d8841['KZDML'],await _0x4d8841[_0xdbebb8(0x11c)](reportToGalactusAndSendToEDS,_0xde1728,_0x37d706,_0x5bb5ee,messageTypes[_0xdbebb8(0x102)],_0x4d8841[_0xdbebb8(0x1e6)],_0x4d8841['vKRbf'],_0x4d8841[_0xdbebb8(0x12e)]),logger[_0xdbebb8(0x194)](_0x5bb5ee),process[_0xdbebb8(0x22e)](0x1)):logger[_0xdbebb8(0x24f)](_0xdbebb8(0x15f)+_0x1baf49+'\x20');const _0x39c66c=await _0x1c1e4d[_0xdbebb8(0x18a)](_0x18be86,_0x1baf49);_0x4d8841[_0xdbebb8(0x1cc)](_0x39c66c[0x0],![])?(_0x5bb5ee=_0xdbebb8(0x145)+JSON['stringify'](_0x39c66c[0x1])+_0xdbebb8(0x16d)+_0x1baf49+_0xdbebb8(0x207),await _0x4d8841['uNeBw'](reportToGalactusAndSendToEDS,_0xde1728,_0x37d706,_0x5bb5ee,messageTypes[_0xdbebb8(0x102)],_0x4d8841['TrtFG'],_0x4d8841[_0xdbebb8(0xaf)],_0x4d8841[_0xdbebb8(0x12e)]),logger[_0xdbebb8(0x194)](_0x5bb5ee),process[_0xdbebb8(0x22e)](0x1)):logger[_0xdbebb8(0x24f)](_0xdbebb8(0xbf)+JSON[_0xdbebb8(0x1c4)](_0x18be86)+'\x20'),[_0x1baf49,_0x18be86]=await _0x1c1e4d[_0xdbebb8(0xdc)](_0x1baf49,_0x18be86);}else{const _0x911c37=_0x4d8841[_0xdbebb8(0x230)][_0xdbebb8(0x146)]('|');let _0x172508=0x0;while(!![]){switch(_0x911c37[_0x172508++]){case'0':logger[_0xdbebb8(0x24f)](_0x4d8841['VDTLO']);continue;case'1':logger['info'](_0x4d8841[_0xdbebb8(0xc7)]);continue;case'2':[_0x1baf49,_0x18be86]=await _0x1c1e4d[_0xdbebb8(0xdc)](_0x1baf49,_0x18be86);continue;case'3':const _0x562708={};_0x562708['type']=WS_EVENTS['LOG'],_0x562708['message']=_0x4d8841[_0xdbebb8(0xc7)],webSocketUtils['sendEventToBackend'](_0x37d706,_0x562708);continue;case'4':const _0x24bf68={};_0x24bf68['type']=WS_EVENTS[_0xdbebb8(0x199)],_0x24bf68[_0xdbebb8(0x152)]=_0x4d8841[_0xdbebb8(0x1c3)],webSocketUtils[_0xdbebb8(0xcb)](_0x37d706,_0x24bf68);continue;}break;}}}}_0x52e9aa&&_0x4d8841[_0xdbebb8(0x1c7)](_0x1aebc3,AZURE)&&(await _0x1c1e4d[_0xdbebb8(0xae)](),await _0x1c1e4d['createOtherResources']());const [_0x274ff9,_0x13ab64,_0x11d2c4,_0x530194,_0x54bbdc,_0x1f7801,_0x1a0d67]=await _0x4d8841['KsogQ'](createK8sClient,_0x1c1e4d,_0xde1728[_0xdbebb8(0x10a)]);_0x4d8841['gPwiH'](_0x52e9aa,![])&&_0x4d8841['BoXRo'](_0x1aebc3,AWS)&&(global_registry[_0xdbebb8(0x134)]=!![],_0x30ba65=await _0x1c1e4d[_0xdbebb8(0x185)](_0x274ff9,_0xde1728));if(_0x4d8841[_0xdbebb8(0x1ab)](_0x52e9aa,![])&&global_registry[_0xdbebb8(0x1ec)])try{await _0x1c1e4d['setupHubHa'](_0x1f7801,_0x1a0d67,_0xde1728,_0x1baf49,_0x18be86);const _0x45495e={};_0x45495e[_0xdbebb8(0x10b)]=WS_EVENTS[_0xdbebb8(0x199)],_0x45495e['message']=_0x4d8841[_0xdbebb8(0x21e)],webSocketUtils[_0xdbebb8(0xcb)](_0x37d706,_0x45495e);!await _0x4d8841['OdRgC'](namespaceExists,_0x274ff9,global_registry[_0xdbebb8(0xd6)])&&await _0x4d8841[_0xdbebb8(0xb1)](createNamespace,_0x274ff9,global_registry[_0xdbebb8(0xd6)]);logger[_0xdbebb8(0x24f)](_0x4d8841['LzTwa']);let _0x37e10b=await fs[_0xdbebb8(0x14e)](path[_0xdbebb8(0x153)](__dirname,_0x4d8841[_0xdbebb8(0x1f9)],_0x4d8841[_0xdbebb8(0xc1)],_0x4d8841[_0xdbebb8(0x1b1)],_0x4d8841[_0xdbebb8(0x1eb)]),_0x4d8841[_0xdbebb8(0x248)]);_0x37e10b=_0x37e10b['replace'](/<RedisClientPassword>/g,_0x4d8841['VuybM'](encodeBase64,global_registry[_0xdbebb8(0xfe)])),_0x37e10b=_0x37e10b[_0xdbebb8(0x188)](/<KafkaClientPassword>/g,_0x4d8841['OwtXS'](encodeBase64,global_registry['kafkaPassword'])),_0x37e10b=_0x37e10b[_0xdbebb8(0x188)](/<BstackUsername>/g,_0x4d8841[_0xdbebb8(0x232)](encodeBase64,global_registry[_0xdbebb8(0x12b)])),_0x37e10b=_0x37e10b[_0xdbebb8(0x188)](/<BstackAccessKey>/g,_0x4d8841[_0xdbebb8(0xe2)](encodeBase64,global_registry[_0xdbebb8(0x15e)]));const _0x30159d=yaml[_0xdbebb8(0x142)](_0x37e10b);await _0x4d8841[_0xdbebb8(0x143)](kubeApply,_0x30159d,_0x1a0d67),logger[_0xdbebb8(0x24f)](_0x4d8841['ovtpd']);let _0x5914be=_0x4d8841[_0xdbebb8(0x1de)];if(_0x4d8841[_0xdbebb8(0x1bd)](_0x1aebc3,AZURE))_0x5914be=_0x4d8841['wdxjk'];else _0x4d8841[_0xdbebb8(0x15a)](_0x1aebc3,GCP)&&(_0x5914be=_0x4d8841[_0xdbebb8(0x1c1)]);logger[_0xdbebb8(0x24f)](_0x4d8841[_0xdbebb8(0x1b4)]);let _0x5662dd=await fs[_0xdbebb8(0x14e)](path['join'](__dirname,_0x4d8841[_0xdbebb8(0x1f9)],_0x4d8841['riajW'],_0x4d8841[_0xdbebb8(0x1b1)],_0x4d8841['PPUEN']),_0x4d8841[_0xdbebb8(0x248)]);_0x5662dd=_0x5662dd[_0xdbebb8(0x188)](/<HubHaNameSpace>/g,global_registry[_0xdbebb8(0xd6)]),_0x5662dd=_0x5662dd['replace'](/<StorageClassName>/g,_0x5914be);const _0x21ed39=yaml[_0xdbebb8(0x142)](_0x5662dd);await _0x4d8841[_0xdbebb8(0x11e)](kubeApply,_0x21ed39,_0x1a0d67),logger['info'](_0x4d8841[_0xdbebb8(0x10c)]),logger[_0xdbebb8(0x24f)](_0x4d8841[_0xdbebb8(0x1ae)]);let _0x207617=await fs['readFileAsync'](path['join'](__dirname,_0x4d8841['SgHxc'],_0x4d8841[_0xdbebb8(0xc1)],_0x4d8841[_0xdbebb8(0x1b1)],_0x4d8841[_0xdbebb8(0x227)]),_0x4d8841[_0xdbebb8(0x248)]);_0x207617=_0x207617['replace'](/<HubHaNameSpace>/g,global_registry[_0xdbebb8(0xd6)]),_0x207617=_0x207617[_0xdbebb8(0x188)](/<StorageClassName>/g,_0x5914be);const _0x3bb8d8=yaml[_0xdbebb8(0x142)](_0x207617);await _0x4d8841[_0xdbebb8(0x11e)](kubeApply,_0x3bb8d8,_0x1a0d67),logger[_0xdbebb8(0x24f)](_0x4d8841[_0xdbebb8(0xe0)]),logger[_0xdbebb8(0x24f)](_0x4d8841[_0xdbebb8(0xbb)]);let _0xf71ca9=await fs[_0xdbebb8(0x14e)](path[_0xdbebb8(0x153)](__dirname,_0x4d8841[_0xdbebb8(0x1f9)],_0x4d8841[_0xdbebb8(0xc1)],_0x4d8841[_0xdbebb8(0x1b1)],_0x4d8841[_0xdbebb8(0xe7)]),_0x4d8841[_0xdbebb8(0x248)]);_0xf71ca9=_0xf71ca9[_0xdbebb8(0x188)](/<UploaderImageVersion>/g,global_registry[_0xdbebb8(0x1e2)]),_0xf71ca9=_0xf71ca9[_0xdbebb8(0x188)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']);const _0x2795bb=yaml['loadAll'](_0xf71ca9);_0x4d8841[_0xdbebb8(0x1e9)](global_registry[_0xdbebb8(0xc5)],AZURE)&&(_0x2795bb[0x0][_0xdbebb8(0x101)][_0xdbebb8(0x174)]['metadata'][_0xdbebb8(0xf1)]={'azure.workload.identity/use':_0x4d8841[_0xdbebb8(0x172)],..._0x2795bb[0x0]['spec']['template']['metadata']['labels']},_0x2795bb[0x0][_0xdbebb8(0x101)][_0xdbebb8(0x174)]['spec'][_0xdbebb8(0x164)]=_0x4d8841['LUHqa']);await _0x4d8841['urXwQ'](kubeApply,_0x2795bb,_0x1a0d67),logger['info'](_0x4d8841[_0xdbebb8(0x1f1)]);const _0x4e6cc4={};_0x4e6cc4[_0xdbebb8(0x10b)]=WS_EVENTS['LOG'],_0x4e6cc4[_0xdbebb8(0x152)]=_0x4d8841[_0xdbebb8(0x15d)],webSocketUtils[_0xdbebb8(0xcb)](_0x37d706,_0x4e6cc4),logger[_0xdbebb8(0x24f)](_0x4d8841[_0xdbebb8(0x159)]);}catch(_0x546904){const _0x155f2b=_0x4d8841['Augqw'][_0xdbebb8(0x146)]('|');let _0x184189=0x0;while(!![]){switch(_0x155f2b[_0x184189++]){case'0':_0x5bb5ee=_0xdbebb8(0x1d3)+_0x546904[_0xdbebb8(0x152)];continue;case'1':await _0x4d8841[_0xdbebb8(0x1a8)](reportToGalactusAndSendToEDS,_0xde1728,_0x37d706,_0x5bb5ee,messageTypes[_0xdbebb8(0x102)],_0x4d8841[_0xdbebb8(0x1e6)],_0x4d8841[_0xdbebb8(0x251)],_0x4d8841['mAaKI']);continue;case'2':await _0x1c1e4d['deleteCluster'](_0x274ff9,global_registry[_0xdbebb8(0x16c)]);continue;case'3':process['exit'](0x1);continue;case'4':logger[_0xdbebb8(0x194)](_0x5bb5ee);continue;}break;}}try{_0xd2c5ef=_0x4d8841[_0xdbebb8(0x13c)](kebabCase,_0x3bcf43),logger[_0xdbebb8(0x24f)](_0x4d8841[_0xdbebb8(0x1cd)]);const _0x10d3dc={};_0x10d3dc[_0xdbebb8(0x10b)]=WS_EVENTS['LOG'],_0x10d3dc[_0xdbebb8(0x152)]=_0x4d8841[_0xdbebb8(0x1cd)],webSocketUtils['sendEventToBackend'](_0x37d706,_0x10d3dc);if(_0x4d8841['abbsj'](_0xd2c5ef,_0x4d8841[_0xdbebb8(0x15b)])){const _0x17f5eb={};_0x17f5eb[_0xdbebb8(0xfc)]=_0x4d8841[_0xdbebb8(0x163)],_0x17f5eb[_0xdbebb8(0x170)]=_0x4d8841[_0xdbebb8(0x163)];const _0x44d660={};_0x44d660[_0xdbebb8(0x1e3)]=_0xd2c5ef,_0x44d660[_0xdbebb8(0xc9)]=_0x17f5eb;const _0x7d67={};_0x7d67[_0xdbebb8(0x1d8)]=_0x44d660;const _0x581f8f=_0x7d67,_0xeec8bb={};_0xeec8bb[_0xdbebb8(0x1b3)]=_0x581f8f,await _0x274ff9[_0xdbebb8(0x13e)](_0xeec8bb),logger[_0xdbebb8(0x24f)](_0x4d8841[_0xdbebb8(0x110)]);}const _0x53623b={};_0x53623b[_0xdbebb8(0x10b)]=WS_EVENTS[_0xdbebb8(0x199)],_0x53623b['message']=_0x4d8841[_0xdbebb8(0x191)],webSocketUtils[_0xdbebb8(0xcb)](_0x37d706,_0x53623b);const _0x5389d2={};_0x5389d2[_0xdbebb8(0x10b)]=WS_EVENTS[_0xdbebb8(0x199)],_0x5389d2['message']=_0x4d8841[_0xdbebb8(0x1e5)],webSocketUtils[_0xdbebb8(0xcb)](_0x37d706,_0x5389d2),logger[_0xdbebb8(0x24f)](_0x4d8841[_0xdbebb8(0x1cf)]);let _0x13a2ab={};_0x4d8841[_0xdbebb8(0x18b)](_0x1aebc3,AZURE)&&(_0x13a2ab={'clientId':await _0x1c1e4d['getResourceClientId']('turboscale-managed-identity-'+_0x3369f8)});await _0x4d8841['WQjWI'](addGridComponents,_0x274ff9,_0x13ab64,_0x11d2c4,_0x530194,_0xd2c5ef,_0x3369f8,_0x30ba65,_0x54bbdc,_0x1a0d67,_0x13a2ab),_0x5bb5ee=_0x4d8841[_0xdbebb8(0x179)],logger[_0xdbebb8(0x24f)](_0x5bb5ee);const _0x4fbab6={};_0x4fbab6[_0xdbebb8(0x10b)]=WS_EVENTS[_0xdbebb8(0x199)],_0x4fbab6[_0xdbebb8(0x152)]=_0x5bb5ee,webSocketUtils['sendEventToBackend'](_0x37d706,_0x4fbab6),_0x5bb5ee=_0x4d8841[_0xdbebb8(0x1d0)],logger['info'](_0x5bb5ee);const _0x353495={};_0x353495[_0xdbebb8(0x10b)]=WS_EVENTS[_0xdbebb8(0x199)],_0x353495['message']=_0x5bb5ee,webSocketUtils[_0xdbebb8(0xcb)](_0x37d706,_0x353495),await _0x4d8841[_0xdbebb8(0xee)](waitForDeployment,_0x13ab64,_0xd2c5ef,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x570188=await _0x4d8841[_0xdbebb8(0x24c)](getNamespaceUID,_0x274ff9,_0xd2c5ef),_0x108ac7=global_registry[_0xdbebb8(0x136)]?_0x4d8841[_0xdbebb8(0x239)]:_0x4d8841[_0xdbebb8(0x1d5)],_0x3d2509={};_0x3d2509[_0xdbebb8(0x1e3)]=_0x108ac7,_0x3d2509[_0xdbebb8(0xba)]=_0x4d8841['sVUKd'];const _0x7d49c=await _0x274ff9[_0xdbebb8(0x1ee)](_0x3d2509);let _0x517de6=_0x1c1e4d[_0xdbebb8(0xff)](_0x7d49c)+'/'+_0xd2c5ef,_0x4f5bd7=_0x4d8841[_0xdbebb8(0x245)];try{const _0x2a15f5=_0xdbebb8(0x242)+AG_API_URL+'/packages/cli/get-grid-url?gridIdentifier='+_0x570188,_0x2ba007=await _0x4d8841['urXwQ'](got,_0x2a15f5,_0x3dcaae);(_0x4d8841[_0xdbebb8(0xb4)](_0x2ba007,null)||_0x4d8841['lYBwl'](_0x2ba007,undefined))&&(_0x5bb5ee=_0x4d8841[_0xdbebb8(0xeb)],await _0x4d8841[_0xdbebb8(0x1c8)](reportToGalactusAndSendToEDS,_0xde1728,_0x37d706,_0x5bb5ee,messageTypes[_0xdbebb8(0x102)],_0x4d8841['TrtFG'],_0x4d8841[_0xdbebb8(0x221)],_0x4d8841[_0xdbebb8(0x12e)]),logger[_0xdbebb8(0x194)](_0x5bb5ee),process[_0xdbebb8(0x22e)](0x1));_0x4d8841['HYAOf'](_0x2ba007[_0xdbebb8(0x226)],0x191)&&(_0x5bb5ee=_0x4d8841[_0xdbebb8(0x103)],await _0x4d8841[_0xdbebb8(0x220)](reportToGalactusAndSendToEDS,_0xde1728,_0x37d706,_0x5bb5ee,messageTypes[_0xdbebb8(0x102)],_0x4d8841[_0xdbebb8(0x1e6)],_0x4d8841['MeDHC'],_0x4d8841['mAaKI']),logger[_0xdbebb8(0x194)](_0x5bb5ee),process[_0xdbebb8(0x22e)](0x1));_0x4d8841['DeaII'](_0x2ba007[_0xdbebb8(0x226)],0xc8)&&(_0x5bb5ee=_0xdbebb8(0x1ce)+JSON['stringify'](_0x2ba007),await _0x4d8841[_0xdbebb8(0x1c8)](reportToGalactusAndSendToEDS,_0xde1728,_0x37d706,_0x5bb5ee,messageTypes[_0xdbebb8(0x102)],_0x4d8841[_0xdbebb8(0x1e6)],_0x4d8841['lddlP'],_0x4d8841[_0xdbebb8(0x12e)]),logger[_0xdbebb8(0x194)](_0x5bb5ee),process['exit'](0x1));const _0x4e57d3=JSON[_0xdbebb8(0x1c0)](_0x2ba007[_0xdbebb8(0x1b3)]);_0x4e57d3[_0xdbebb8(0x160)]&&(_0x517de6=_0x4e57d3[_0xdbebb8(0x160)],_0x4f5bd7=_0x4d8841[_0xdbebb8(0xe4)]),global_registry[_0xdbebb8(0x136)]&&(_0x4f5bd7=_0x4d8841['jYcpc']);}catch(_0x722917){}_0x5bb5ee=_0xdbebb8(0x24a)+_0x517de6+'\x20',logger[_0xdbebb8(0x24f)](_0x5bb5ee);const _0x4d8740={};_0x4d8740['type']=WS_EVENTS[_0xdbebb8(0x199)],_0x4d8740['message']=_0x5bb5ee,webSocketUtils[_0xdbebb8(0xcb)](_0x37d706,_0x4d8740),_0x5bb5ee='Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20'+_0x4f5bd7+_0xdbebb8(0xcc)+_0x517de6+'/wd/hub',logger[_0xdbebb8(0x24f)](_0x5bb5ee);const _0x5a510b={};_0x5a510b[_0xdbebb8(0x10b)]=WS_EVENTS['LOG'],_0x5a510b[_0xdbebb8(0x152)]=_0x5bb5ee,webSocketUtils[_0xdbebb8(0xcb)](_0x37d706,_0x5a510b);const _0xce1108={};_0xce1108[_0xdbebb8(0x10b)]=WS_EVENTS[_0xdbebb8(0x130)],_0xce1108[_0xdbebb8(0x152)]=_0xdbebb8(0xe8)+_0x517de6,webSocketUtils[_0xdbebb8(0xcb)](_0x37d706,_0xce1108),await webSocketUtils[_0xdbebb8(0x1b8)](0x7d0);}catch(_0x17017a){logger[_0xdbebb8(0x194)]('Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20'+_0x17017a+'\x20\x0a'+JSON[_0xdbebb8(0x1c4)](_0x17017a['stack']));if(_0x4d8841[_0xdbebb8(0x14f)](_0x52e9aa,![]))try{logger[_0xdbebb8(0x24f)](_0x4d8841['adYFm']),await _0x4d8841[_0xdbebb8(0x182)](removeGridComponents,_0x274ff9,_0x13ab64,_0x11d2c4,_0x530194,_0xd2c5ef),await _0x1c1e4d[_0xdbebb8(0x176)](_0x274ff9,global_registry[_0xdbebb8(0x16c)]);}catch(_0x7002a9){logger[_0xdbebb8(0x194)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x7002a9+'\x20\x0a'+JSON[_0xdbebb8(0x1c4)](_0x7002a9[_0xdbebb8(0xed)]));}throw _0x17017a;}}catch(_0x4aa1c9){const _0x1f653d='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x4aa1c9+'\x20\x0a'+JSON[_0xdbebb8(0x1c4)](_0x4aa1c9[_0xdbebb8(0xed)]);if(_0x37d706){const _0x444464={};_0x444464['type']=WS_EVENTS[_0xdbebb8(0x199)],_0x444464[_0xdbebb8(0x152)]=_0x1f653d,webSocketUtils[_0xdbebb8(0xcb)](_0x37d706,_0x444464,_0x4d8841[_0xdbebb8(0x12e)],!![]);}await webSocketUtils['delay'](0x7d0);const _0x56b4da={};_0x56b4da[_0xdbebb8(0x194)]=_0x1f653d,await _0x4d8841[_0xdbebb8(0x11d)](sendInstrumentationEvent,_0xde1728,_0x4d8841['TrtFG'],messageTypes[_0xdbebb8(0x102)],_0x4d8841[_0xdbebb8(0x213)],_0x56b4da,_0xde1728),logger[_0xdbebb8(0x194)](_0x1f653d);}process[_0xdbebb8(0x22e)](0x0);};
1
+ const a9_0x259a5c=a9_0x1277;function a9_0x4245(){const _0x14b18a=['Ohivd','yPuhk','WebSocket','maxNodes','McodK','addListeners','hubHaNameSpace','utf-8','statusCode','DckNp','YruZW','tujKT','create-grid-checks-grid-already-exists','SLTbW','xPJUv','\x20doesn\x27t\x20exist.\x20Proceeding\x20with\x20creating\x20a\x20new\x20cluster','stringify','MOLBI','jCmVv','EZUpZ','kcxzq','QhqiV','pre-spawned-invalid-vpc','BQPKP','path','get-grid-url-auth-failed','user','length','loadAll','uLZsx','1|2|4|0|3','zuuUT','1226197dprmzi','xRogs','Grid\x20profile\x20fetched\x20from\x20backend','connectionTimeout','Subnets\x20not\x20selected.\x20Please\x20select\x20subnets\x20and\x20try\x20again','xnXeF','BFNBC','rxtYY','xfsCx','aYZiz','JycJp','https','Browserstack','../../utils/createk8sClient','bstackUsername','ZHOQi','OgGdM','gridProfiles','gCLlg','OpyMd','YENrO','grid-profile','otEQP','Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','reconnecting-websocket','skip-tls-cert-verify','7|3|6|1|14|9|15|5|11|2|4|8|12|0|13|10','fuerh','meEyA','ERROR','vpc','DTsKy','browserstack','../../utils/instrumentationUtils','isClusterPresent','yaBqu','TBnfu','FTIQK','hub-ha','body','DtNeB','MuKMO','error','setupHubHa','isVPCPresent','AMDGZ','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unauthorized\x20request!','hubVersion','BrFAI','kafkaPassword','updateClusterAlreadyPresent','privateGrid','fLGUs','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','create-grid-checks-non-200','hubharesources','instanceType','templates','redisPassword','Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.','IIcUk','iFAFs','init-not-called','username','requestId','WdiMq','minNodes','VPC\x20selected\x20does\x20not\x20exist.\x20Please\x20try\x20again','zzFBw','grid-spawning-failed','XLweu','BksFo','options','boolean','Create\x20a\x20grid\x20in\x20existing\x20Kubernetes\x20Cluster\x20on\x20AWS/Azure/GCP.','clusterName','eMwZw','hub-ha-deployments-failed','hjVee','EHnTF','gridProfile','cluster-name','CcqjD','ODxDB','prespawned-cluster-args-not-passed','serviceAccountName','zFnXE','Gpovf','JIYdw','lnnkn','DrBbs','teeNm','AnpwC','newCluster','CFMJQ','GET','ingress-nginx-controller','toLowerCase','ehQtv','includes','efs-csi','LVhUD','Hub\x20url\x20to\x20run\x20selenium\x20sessions:\x20','tNzpM','Invalid\x20Grid\x20Profile.Exiting\x20the\x20CLI.','xdvpt','.\x20Please\x20use\x20--grid-name\x20option\x20to\x20provide\x20another\x20grid\x20name','pdLdr','true','tShvd','Added\x20Kafka\x20deployment.','Subnets:\x20','XUPmJ','Spawning\x20the\x20grid\x20','managedBy','Oumbl','835JRYEpP','tpzEL','6971166hHMElz','uePvi','split','premium-rwo','NTlcn','jmMcs','isNewAWSCluster','region','grid','IOmSD','FDfAG','nuqyy','ilWXm','nmGUE','1323135AYLzWg','Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','ctsGm','Adding\x20Secret\x20Mapping','pre-spawned-subnets-not-selected','uuid','4|3|1|2|0','xMcMl','Spawning\x20grid\x20on\x20to\x20the\x20cluster','eQHrm','exit','BjMrM','oTHWA','xbCdo','hZhLu','gridProfileId','private-ingress-nginx-controller','delay','subnets','hubHa','command','Ghobm','pre-spawned-invalid-subnets','Epyd5nXbRK','ddmPa','FqZQg','xqhVm','Invalid\x20input.\x20Currently\x20Spawning\x20the\x20grid\x20in\x20AWS\x20and\x20Azure\x20cloud\x20provider\x20is\x20supported\x20using\x20CLI.','qXjzG','RwYXA','Flag\x20to\x20enable\x20cluster\x20auto-upgrade','RzKWy','GvgTN','\x20in\x20existing\x20cluster\x20\x27','wwoko','type','Nljxc','INFO','replace','EUFkX','Creating\x20namespace','KnwbZ','LOG','clusterAutoupgrade','LMgyE','CIOck','cBvkb','aOHHD','deleteCluster','cluster-autoupgrade','Namespace\x20created','muBuG','567702yMluEq','Failed\x20to\x20get\x20grid\x20url\x20from\x20the\x20server.\x20Unauthorized\x20request!','ingress-nginx','QLPov','Spawning\x20Grid\x20on\x20the\x20Cluster','aecqf','Cluster\x20','template','TtrAf','../../utils/gridComponents','Found\x20Subnets:\x20','BweuW','Adding\x20Websocket\x20listeners','grid-name','VGmmB','readFileSync','Faize','HBrqc','Adding\x20Redis\x20deployment...','azurefile-csi-premium','uYCKS','defaultGridProfile','CLI_RUN_STARTED','create-grid-checks-invalid-profile','password','SbSPV','LMvSI','LmHbS','Will\x20be\x20spawning\x20a\x20new\x20cluster\x20and\x20the\x20grid\x20','tAFWa','ztEqw','\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation','description','js-yaml','Vtcai','imEHJ','sendEventToBackend','https://','GTnDe','lgpBE','Cluster:\x20','parse','3600456hhVyPw','zqdRc','4|3|7|2|6|1|8|0|5','clusterAutoUpgrade','YEmzw','aKAFg','VBWwT','iQgDq','APzFx','rrxiy','.\x20Please\x20re\x20-\x20select\x20subnets\x20and\x20try\x20again','wTScK','HSonJ','bstackAccesskey','CaWuZ','../../cloudproviders/utils','cdUNO','RysAT','http','turboscale-managed-identity-','BdHUc','stack','JQbDk','QfiQU','hwauC','Added\x20Secret\x20Mapping','Use\x20an\x20existing\x20grid\x20profile\x20to\x20setup\x20the\x20Automation\x20Grid.\x20By\x20default,\x20configured\x20profile\x20is\x20used.','help','DSiQA','pCugs','asrxk','waRTA','CudaN','kafkaUploader','Adding\x20Kafka\x20deployment...','Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20','CwMEe','xAwkQ','annotations','epilogue','PHCrM','turboscale-uploader.yaml','info','gridName','VsFuO','setupNewCluster','EUtdc','NYnno','get-grid-url-null-response','Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Non\x20200\x20response\x20from\x20server!\x20','tzXOu','HcALt','isPrivateGrid','YLjwN','IAuNR','string','XZLcd','usage','IhPuY','lUPZy','buGCx','xJYzK','cloudProvider','Cluster\x20created\x20successfully','readNamespacedService','UnJIE','OHufO','bpMqn','labels','browserstack-secret.yaml','OWyZU','../../config/constants','AAtVE','://','fmmQh','843982AsaJRo','cxYZy','oLFOB','Creating\x20Hub\x20HA\x20resources','zyxyi','zOzGF','18TNuoLf','create','Deleting\x20the\x20CloudFormation\x20Stacks','uosDp','namespace','sWmwB','KQxXm','\x27\x20grid\x20profile','route53','rUlWU','builder','create-grid-called','\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster','sendResourceDataToHST','enableHubHa','uXdEw','message','Skip\x20insecure\x20cert\x20verification.','nyhCK','readFileAsync','getGridHostname','CLI\x20run\x20finished:\x20','TenaZ','uploaderVersion','default','/packages/cli/get-grid-url?gridIdentifier=','Hneye','spec','Error\x20in\x20Spawning\x20the\x20Grid!\x20Error:\x20','nXJMa','browserVersion','IZfGW','debug','dTEZl','rHWgz','create-grid-checks-auth-failed','concurrency','uSiDx','createOtherResources','oFgAx','10364jwHRiY','iTfzO','UkRNzNYCBU','laWMe','RFKeG','JEWan','join','isSubnetsValid','PqxrL','OrGCm','zwXFH','ixzTt','QAqls','LwJlj','Cluster\x20Auto\x20Upgrade\x20is\x20enabled','s3bucket','clusterRegion','../../config/logger','<PasswordPlaceholder>','HtVzL','Create\x20a\x20private/public\x20grid.','non-aws-azure-cluster','desc','handler','Found\x20VPC:\x20','frJXt','Flag\x20to\x20enable\x20Hub\x20HA','\x20using\x20\x27','Will\x20be\x20spawning\x20the\x20grid\x20','Zqvrw','aUAdp','metadata','name','JjOtO','JxXGi','HUatN','tlRXW','ePfzK','vmbjW','fRodh','../../utils/utilityMethods','vlKKO','YLyVu','existsSync','vNlRp','XUlNy','nPEoM','dcMsw','SIVYg','Created\x20Hub\x20HA\x20resources','0|4|2|3|1','kRNoz','UnbTK','private-grid','/packages/cli/create-grid-checks','cloud-provider'];a9_0x4245=function(){return _0x14b18a;};return a9_0x4245();}(function(_0x4e817d,_0x478261){const _0x5cb4a2=a9_0x1277,_0x39f01d=_0x4e817d();while(!![]){try{const _0xdf5e66=parseInt(_0x5cb4a2(0x1f2))/0x1+parseInt(_0x5cb4a2(0x267))/0x2+parseInt(_0x5cb4a2(0x1be))/0x3+-parseInt(_0x5cb4a2(0x295))/0x4*(parseInt(_0x5cb4a2(0x1ae))/0x5)+-parseInt(_0x5cb4a2(0x26d))/0x6*(-parseInt(_0x5cb4a2(0x13a))/0x7)+-parseInt(_0x5cb4a2(0x21c))/0x8+-parseInt(_0x5cb4a2(0x1b0))/0x9;if(_0xdf5e66===_0x478261)break;else _0x39f01d['push'](_0x39f01d['shift']());}catch(_0x2bae24){_0x39f01d['push'](_0x39f01d['shift']());}}}(a9_0x4245,0x48fab));const fs=require('fs'),ws=require('ws'),path=require(a9_0x259a5c(0x132)),yaml=require(a9_0x259a5c(0x213)),ReconnectingWebSocket=require(a9_0x259a5c(0x152)),got=require('got'),{v4:uuidv4}=require(a9_0x259a5c(0x1c3)),webSocketUtils=require('../../utils/webSocketUtils'),{logger}=require(a9_0x259a5c(0x2a6)),{getCredentialsPath,updateGlobalRegistryWithConfig,updateGlobalRegistryForHubHa,kebabCase,reportToGalactusAndSendToEDS,getAuthHeader,waitForDeployment,kubeApply,encodeBase64}=require(a9_0x259a5c(0x2bd)),{getCloudProviderObject}=require(a9_0x259a5c(0x22b)),{AWS,WS_EVENTS,global_registry,WS_ENDPOINT,DEFAULT_GRID_NAME,HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE,messageTypes,AG_API_URL,AZURE,GCP,TURBOSCALE_DEPLOYMENT}=require(a9_0x259a5c(0x263)),{addGridComponents,removeGridComponents,getNamespaceUID,namespaceExists,createNamespace}=require(a9_0x259a5c(0x1fb)),{createK8sClient}=require(a9_0x259a5c(0x147)),{sendInstrumentationEvent}=require(a9_0x259a5c(0x15b));function a9_0x1277(_0x37980c,_0x27796a){const _0x424537=a9_0x4245();return a9_0x1277=function(_0x127791,_0x2a681f){_0x127791=_0x127791-0x12a;let _0x4869dc=_0x424537[_0x127791];return _0x4869dc;},a9_0x1277(_0x37980c,_0x27796a);}exports[a9_0x259a5c(0x1d2)]=a9_0x259a5c(0x1b8),exports[a9_0x259a5c(0x2ab)]='Create\x20a\x20new\x20Automation\x20grid.',exports[a9_0x259a5c(0x277)]=function(_0x203cc6){const _0xe91f77=a9_0x259a5c,_0x3864cc={};_0x3864cc['FTIQK']=_0xe91f77(0x151),_0x3864cc['QAqls']=_0xe91f77(0x253),_0x3864cc['ztEqw']=_0xe91f77(0x236),_0x3864cc[_0xe91f77(0x1eb)]=_0xe91f77(0x184),_0x3864cc[_0xe91f77(0x1d7)]=_0xe91f77(0x1bf),_0x3864cc[_0xe91f77(0x25e)]='Pass\x20the\x20region\x20for\x20existing\x20Kubernetes\x20Cluster.',_0x3864cc[_0xe91f77(0x142)]=_0xe91f77(0x2a9),_0x3864cc[_0xe91f77(0x16a)]='Skip\x20insecure\x20cert\x20verification.',_0x3864cc[_0xe91f77(0x218)]=_0xe91f77(0x183),_0x3864cc[_0xe91f77(0x270)]=_0xe91f77(0x2af),_0x3864cc[_0xe91f77(0x12d)]=_0xe91f77(0x1dc),_0x3864cc[_0xe91f77(0x26b)]=_0xe91f77(0x237);const _0xe3ff5f=_0x3864cc,_0x1c7768={};_0x1c7768['description']=_0xe3ff5f[_0xe91f77(0x15f)],_0x1c7768['type']=_0xe3ff5f[_0xe91f77(0x2a1)];const _0x33173b={};_0x33173b['description']=_0xe3ff5f[_0xe91f77(0x210)],_0x33173b[_0xe91f77(0x1e1)]=_0xe3ff5f[_0xe91f77(0x2a1)];const _0x3222e3={};_0x3222e3[_0xe91f77(0x212)]=_0xe3ff5f[_0xe91f77(0x1eb)],_0x3222e3[_0xe91f77(0x1e1)]=_0xe3ff5f[_0xe91f77(0x2a1)];const _0x406a52={};_0x406a52[_0xe91f77(0x212)]=_0xe3ff5f[_0xe91f77(0x1d7)],_0x406a52[_0xe91f77(0x1e1)]=_0xe3ff5f['QAqls'];const _0x3b18a6={};_0x3b18a6[_0xe91f77(0x212)]=_0xe3ff5f[_0xe91f77(0x25e)],_0x3b18a6[_0xe91f77(0x1e1)]=_0xe3ff5f[_0xe91f77(0x2a1)];const _0xb5ebf={};_0xb5ebf[_0xe91f77(0x212)]=_0xe3ff5f[_0xe91f77(0x142)],_0xb5ebf['type']=_0xe3ff5f['QAqls'];const _0x2545e2={};_0x2545e2['description']=_0xe3ff5f['BrFAI'],_0x2545e2[_0xe91f77(0x1e1)]=_0xe3ff5f[_0xe91f77(0x218)],_0x2545e2['default']=![];const _0x385fcf={};_0x385fcf[_0xe91f77(0x212)]=_0xe3ff5f[_0xe91f77(0x270)],_0x385fcf[_0xe91f77(0x1e1)]=_0xe3ff5f[_0xe91f77(0x218)],_0x385fcf[_0xe91f77(0x285)]=![];const _0x41763a={};_0x41763a[_0xe91f77(0x212)]=_0xe3ff5f[_0xe91f77(0x12d)],_0x41763a['type']=_0xe3ff5f[_0xe91f77(0x218)],_0x41763a['default']=![];const _0x5ee775={};return _0x5ee775['grid-name']=_0x1c7768,_0x5ee775[_0xe91f77(0x14f)]=_0x33173b,_0x5ee775[_0xe91f77(0x18b)]=_0x3222e3,_0x5ee775['cloud-provider']=_0x406a52,_0x5ee775['region']=_0x3b18a6,_0x5ee775[_0xe91f77(0x2ca)]=_0xb5ebf,_0x5ee775[_0xe91f77(0x153)]=_0x2545e2,_0x5ee775[_0xe91f77(0x160)]=_0x385fcf,_0x5ee775[_0xe91f77(0x1ef)]=_0x41763a,_0x203cc6[_0xe91f77(0x255)](HELP_HEADER_MESSAGE[_0xe91f77(0x26e)])[_0xe91f77(0x243)](HELP_FOOTER_MESSAGE)[_0xe91f77(0x182)](_0x5ee775)[_0xe91f77(0x237)](_0xe3ff5f[_0xe91f77(0x26b)])['argv'];},exports[a9_0x259a5c(0x2ac)]=async function(_0x46df7a){const _0x170f27=a9_0x259a5c,_0x2af040={'OpyMd':_0x170f27(0x154),'Ghobm':function(_0x590dd2,_0x5d5e1b){return _0x590dd2!==_0x5d5e1b;},'eQHrm':function(_0x186ee0,_0x490689){return _0x186ee0(_0x490689);},'EUtdc':function(_0x1111c8,_0x5bdcae,_0x4c747a,_0xa66fbd,_0x5744a1,_0x288c09,_0x21b8e7,_0x4b996a,_0x2888c2,_0x1496c3,_0x2c41ac,_0x4bbbcc,_0x4b0f91){return _0x1111c8(_0x5bdcae,_0x4c747a,_0xa66fbd,_0x5744a1,_0x288c09,_0x21b8e7,_0x4b996a,_0x2888c2,_0x1496c3,_0x2c41ac,_0x4bbbcc,_0x4b0f91);},'HtVzL':_0x170f27(0x21e),'ddmPa':'CLI\x20run\x20started','mRRvI':_0x170f27(0x2c7),'uSiDx':'Enabling\x20Hub\x20HA\x20flow','nuqyy':_0x170f27(0x297),'PHCrM':_0x170f27(0x1d5),'MOLBI':_0x170f27(0x15a),'IhPuY':_0x170f27(0x22e),'yaBqu':_0x170f27(0x145),'NhBST':'Pass\x20the\x20name\x20to\x20setup\x20the\x20Automation\x20Grid\x20with\x20specific\x20name.\x20Name\x20this\x20grid\x20using\x20either\x20team\x27s\x20name,\x20pipeline\x20specific\x20or\x20generic.','SIVYg':_0x170f27(0x253),'aArie':_0x170f27(0x236),'XUPmJ':_0x170f27(0x184),'aboaH':'Pass\x20the\x20name\x20of\x20cloud\x20provider\x20for\x20existing\x20Kubernetes\x20Cluster.','PqxrL':_0x170f27(0x175),'SbSPV':_0x170f27(0x2a9),'ePfzK':_0x170f27(0x27e),'rHWgz':_0x170f27(0x183),'Zqvrw':_0x170f27(0x2af),'LmHbS':_0x170f27(0x1dc),'rUlWU':_0x170f27(0x237),'muBuG':_0x170f27(0x1b3),'GPWQP':_0x170f27(0x205),'HUatN':'error','kRNoz':_0x170f27(0x1a6),'lgpBE':_0x170f27(0x285),'CcqjD':_0x170f27(0x2a3),'VGmmB':'warn','JycJp':function(_0x44177a,_0x10d375){return _0x44177a===_0x10d375;},'YLjwN':function(_0x5e464d,_0x21f946){return _0x5e464d(_0x21f946);},'OrGCm':function(_0x3e2be9){return _0x3e2be9();},'iFAFs':_0x170f27(0x1af),'uYCKS':'Credentials\x20not\x20found!\x20Ensure\x20init\x20command\x20is\x20run\x20before\x20running\x20this\x20command.','ODxDB':function(_0x11e678,_0x51bfe5,_0x37b8ca,_0x23ca8a,_0x2459c0,_0x935c8,_0xcfc4bf){return _0x11e678(_0x51bfe5,_0x37b8ca,_0x23ca8a,_0x2459c0,_0x935c8,_0xcfc4bf);},'IIcUk':_0x170f27(0x278),'XGErQ':_0x170f27(0x178),'isvmZ':function(_0xdb0a9f,_0x190b54,_0x5a4290,_0xe538f6,_0x14a64d,_0x12f305,_0x37d407){return _0xdb0a9f(_0x190b54,_0x5a4290,_0xe538f6,_0x14a64d,_0x12f305,_0x37d407);},'HSonJ':function(_0x38ac5b){return _0x38ac5b();},'bpMqn':'<UsernamePlaceholder>','Gpovf':_0x170f27(0x2a7),'fLGUs':_0x170f27(0x1fe),'AAtVE':'biGjD','Oumbl':'hEHOp','YEmzw':'cluster-name,\x20cloud-provider\x20&&\x20region\x20should\x20be\x20provided\x20when\x20spawning\x20a\x20grid\x20in\x20existing\x20(Non-BrowserStack\x20created)\x20K8s\x20cluster','iTfzO':function(_0x57ae6a,_0x260d9b,_0x500717,_0x4b6ee7,_0x356217,_0x575c7c,_0x29b4c7,_0x1cde6a){return _0x57ae6a(_0x260d9b,_0x500717,_0x4b6ee7,_0x356217,_0x575c7c,_0x29b4c7,_0x1cde6a);},'tujKT':_0x170f27(0x18e),'dTEZl':'DvgJe','cBvkb':_0x170f27(0x224),'RysAT':_0x170f27(0x1d9),'McodK':function(_0x4e1710,_0x4d1d0a,_0x41acae,_0x502f7e,_0x143193,_0x301bab,_0x3a8ec4,_0x3dd6d0){return _0x4e1710(_0x4d1d0a,_0x41acae,_0x502f7e,_0x143193,_0x301bab,_0x3a8ec4,_0x3dd6d0);},'BFNBC':_0x170f27(0x2aa),'nCdev':_0x170f27(0x194),'xnXeF':'yhmhT','fRodh':function(_0x498132,_0x26a775){return _0x498132===_0x26a775;},'VBWwT':'lphLF','CudaN':function(_0x44721d,_0x23e41e){return _0x44721d===_0x23e41e;},'teeNm':'VKxps','zDBKI':_0x170f27(0x272),'aOHHD':_0x170f27(0x14c),'ZHOQi':_0x170f27(0x199),'XZLcd':function(_0x4124ce,_0x363c80,_0x452b79){return _0x4124ce(_0x363c80,_0x452b79);},'RzKWy':function(_0x3a215,_0x5283bc){return _0x3a215!==_0x5283bc;},'hDmLh':_0x170f27(0x1bd),'imEHJ':_0x170f27(0x22c),'uXdEw':function(_0x588397,_0x43849f){return _0x588397===_0x43849f;},'RwYXA':function(_0x1dffc3,_0x3fda3e){return _0x1dffc3!==_0x3fda3e;},'meEyA':'zaxFv','dcMsw':'Failed\x20to\x20validate\x20grid\x20checks\x20from\x20the\x20server.\x20Unknown\x20error!','pCugs':function(_0x5cf981,_0x25d6fd,_0x288063,_0x4b0062,_0x206a5d,_0x4e8e6b,_0x44c91c,_0x5de730){return _0x5cf981(_0x25d6fd,_0x288063,_0x4b0062,_0x206a5d,_0x4e8e6b,_0x44c91c,_0x5de730);},'IRfJm':'create-grid-checks-null-response','UnJIE':function(_0x4fd123,_0x43b06a){return _0x4fd123!==_0x43b06a;},'xdvpt':_0x170f27(0x159),'vNlRp':_0x170f27(0x168),'oLFOB':function(_0x103183,_0x2cc8a0,_0x56da1b,_0x1719f6,_0x3f59bc,_0x4c3ba3,_0x51d637,_0xc9f826){return _0x103183(_0x2cc8a0,_0x56da1b,_0x1719f6,_0x3f59bc,_0x4c3ba3,_0x51d637,_0xc9f826);},'DtNeB':_0x170f27(0x290),'xWLUI':_0x170f27(0x262),'zwXFH':'gVrQL','QfiQU':function(_0x2d36c4,_0xcd4551,_0x13e2ff,_0x13ad71,_0x36f6e2,_0x1ce492,_0x265aa6,_0x295113){return _0x2d36c4(_0xcd4551,_0x13e2ff,_0x13ad71,_0x36f6e2,_0x1ce492,_0x265aa6,_0x295113);},'DckNp':_0x170f27(0x170),'tlRXW':_0x170f27(0x13c),'frJXt':function(_0x59efcf,_0x33d974){return _0x59efcf===_0x33d974;},'AnpwC':'sLmBv','cOXxO':_0x170f27(0x1ea),'JEWan':_0x170f27(0x2d9),'dDbYj':_0x170f27(0x257),'aYZiz':_0x170f27(0x225),'YLyVu':function(_0x20b1bc,_0x32f3c2){return _0x20b1bc!==_0x32f3c2;},'TtrAf':'GjPfw','JxXGi':_0x170f27(0x232),'ixzTt':'0|4|1|2|3','waRTA':function(_0x2c7fef,_0x30ca89){return _0x2c7fef===_0x30ca89;},'SLTbW':function(_0x2226e4,_0x128f49){return _0x2226e4===_0x128f49;},'WwhWX':_0x170f27(0x268),'CFMJQ':_0x170f27(0x2bb),'Faize':'xkfJM','qXjzG':_0x170f27(0x2d7),'TBnfu':_0x170f27(0x1a2),'BjMrM':_0x170f27(0x209),'Hneye':function(_0x1ff2b6,_0x1a1513){return _0x1ff2b6===_0x1a1513;},'jmMcs':'zxiEL','xMcMl':function(_0xfba269,_0x5e0fdb){return _0xfba269===_0x5e0fdb;},'GvgTN':_0x170f27(0x137),'tAFWa':function(_0xdf17fb,_0x370ef2){return _0xdf17fb===_0x370ef2;},'YENrO':_0x170f27(0x266),'ARKIH':_0x170f27(0x1ca),'iHyNa':function(_0x5b92c1,_0x4255fd,_0x57fac8,_0x22d830,_0x5b91fd,_0x15ec58,_0x1e0431,_0x2467a7,_0x3dd065,_0x3ff416,_0x14b3fa,_0x354344,_0x6256a){return _0x5b92c1(_0x4255fd,_0x57fac8,_0x22d830,_0x5b91fd,_0x15ec58,_0x1e0431,_0x2467a7,_0x3dd065,_0x3ff416,_0x14b3fa,_0x354344,_0x6256a);},'YuLPW':function(_0x436723,_0xec0c78){return _0x436723!==_0xec0c78;},'IAuNR':_0x170f27(0x19f),'tShvd':function(_0x2f1ba4,_0x1afd29){return _0x2f1ba4!==_0x1afd29;},'BQPKP':_0x170f27(0x193),'iQgDq':_0x170f27(0x12e),'QhqiV':function(_0x27f3f5,_0x2191a1){return _0x27f3f5!==_0x2191a1;},'ctsGm':function(_0x55ba05,_0x3892ca){return _0x55ba05!==_0x3892ca;},'IOmSD':'dVmhc','BweuW':function(_0x3a8303,_0x444555,_0x1ed9d8,_0x4c521c,_0x3a9e99,_0x290f36,_0x581c8d,_0x60b972,_0x1d75e3,_0x46089a,_0x2573cb,_0x8ab766,_0x139953){return _0x3a8303(_0x444555,_0x1ed9d8,_0x4c521c,_0x3a9e99,_0x290f36,_0x581c8d,_0x60b972,_0x1d75e3,_0x46089a,_0x2573cb,_0x8ab766,_0x139953);},'asrxk':_0x170f27(0x230),'vlKKO':function(_0x1d5198,_0x131292){return _0x1d5198===_0x131292;},'aKAFg':'tDCLG','jWxhk':'1|8|3|7|5|4|0|6|2','EUFkX':function(_0x37420f,_0x89c51a){return _0x37420f!==_0x89c51a;},'EHnTF':_0x170f27(0x192),'wwoko':_0x170f27(0x248),'KnwbZ':function(_0x3af529,_0x55d09f){return _0x3af529===_0x55d09f;},'IZfGW':_0x170f27(0x2db),'MuKMO':_0x170f27(0x27f),'aUAdp':'Cluster\x20not\x20found.\x20Proceeding\x20with\x20creating\x20required\x20resources.','oFgAx':function(_0x5bbc4d,_0x2d19b4){return _0x5bbc4d!=_0x2d19b4;},'Ohivd':function(_0x5c7023,_0xd81e31){return _0x5c7023!=_0xd81e31;},'YjVvc':function(_0x5c574e,_0x35796e){return _0x5c574e>_0x35796e;},'jCmVv':function(_0x23d9e0,_0x42f441){return _0x23d9e0===_0x42f441;},'Nljxc':_0x170f27(0x13e),'UnbTK':function(_0xc5508c,_0x530226,_0x49db12,_0x18a3ff,_0x51745f,_0x5631a9,_0xd08e9b,_0x2fec6e){return _0xc5508c(_0x530226,_0x49db12,_0x18a3ff,_0x51745f,_0x5631a9,_0xd08e9b,_0x2fec6e);},'tNzpM':_0x170f27(0x1c2),'XLweu':function(_0x1266eb,_0xcd6dde){return _0x1266eb===_0xcd6dde;},'fuerh':_0x170f27(0x17d),'HcALt':function(_0x407ef4,_0x2141b2,_0x1ba8bb,_0x1b2b22,_0xea41a6,_0x3f0331,_0xe448af,_0x4f5817){return _0x407ef4(_0x2141b2,_0x1ba8bb,_0x1b2b22,_0xea41a6,_0x3f0331,_0xe448af,_0x4f5817);},'NTlcn':_0x170f27(0x130),'HBrqc':function(_0x25e3f3,_0x54d476){return _0x25e3f3===_0x54d476;},'zOzGF':_0x170f27(0x1d4),'uePvi':_0x170f27(0x1c4),'KQxXm':_0x170f27(0x25b),'AMDGZ':'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.','hjVee':function(_0x57901d,_0x2f5bf9){return _0x57901d===_0x2f5bf9;},'LMvSI':function(_0x3002a7,_0x4ae287){return _0x3002a7===_0x4ae287;},'nHDJG':_0x170f27(0x26a),'hwauC':function(_0x130449,_0x257881,_0x4592ac){return _0x130449(_0x257881,_0x4592ac);},'kZGJL':_0x170f27(0x1c1),'LwJlj':'../..','tzXOu':_0x170f27(0x173),'JjOtO':_0x170f27(0x171),'OoGXs':_0x170f27(0x261),'NYnno':_0x170f27(0x2d4),'zzFBw':function(_0x43cb20,_0x2e63cf){return _0x43cb20(_0x2e63cf);},'WdiMq':function(_0x539ce2,_0x401c70){return _0x539ce2(_0x401c70);},'CwMEe':function(_0x3fb83e,_0x1086c6,_0x18a1da){return _0x3fb83e(_0x1086c6,_0x18a1da);},'aUDbk':_0x170f27(0x235),'jxOAB':_0x170f27(0x19e),'uTdEY':_0x170f27(0x204),'nPEoM':'bitnami-redis.yaml','FDfAG':'Added\x20Redis\x20deployment.','TenaZ':_0x170f27(0x23e),'zFnXE':'bitnami-kafka.yaml','tssQm':function(_0x33b588,_0x3d1c0f,_0x5eb339){return _0x33b588(_0x3d1c0f,_0x5eb339);},'xqhVm':_0x170f27(0x1a8),'XUlNy':'Adding\x20Turboscale\x20Uploader\x20deployment...','DSiQA':_0x170f27(0x245),'RFKeG':function(_0x249b2c,_0x16b154,_0xd2abcf){return _0x249b2c(_0x16b154,_0xd2abcf);},'otEQP':'Added\x20Turboscale\x20Uploader\x20deployment.','pdLdr':_0x170f27(0x2c6),'nXJMa':'Hub\x20HA\x20setup\x20completed\x20successfully.','DizBG':_0x170f27(0x138),'xRogs':function(_0x5efcc2,_0x566c36,_0x587e12,_0x11053b,_0x32f564,_0x218443,_0x5e8bfe,_0x416992){return _0x5efcc2(_0x566c36,_0x587e12,_0x11053b,_0x32f564,_0x218443,_0x5e8bfe,_0x416992);},'OMppK':_0x170f27(0x187),'zuuUT':_0x170f27(0x1e6),'ehQtv':_0x170f27(0x146),'VcCrm':'Namespace\x20Created','aecqf':_0x170f27(0x1f0),'laWMe':_0x170f27(0x1c6),'eMwZw':_0x170f27(0x1f6),'ilWXm':function(_0x490a18,_0x5dd696,_0x4b7333,_0x4fa64e,_0x1c3c84,_0x1c7bca,_0x22def2,_0x2ec20a,_0x52f7b5,_0x59bf10,_0x49780f){return _0x490a18(_0x5dd696,_0x4b7333,_0x4fa64e,_0x1c3c84,_0x1c7bca,_0x22def2,_0x2ec20a,_0x52f7b5,_0x59bf10,_0x49780f);},'xAwkQ':'Grid\x20spawned\x20on\x20the\x20cluster','wTScK':'Fetching\x20url\x20for\x20running\x20tests\x20on\x20the\x20grid','Vtcai':function(_0x481944,_0x2eaa2e,_0x57d813,_0x4d44eb,_0x228ab9){return _0x481944(_0x2eaa2e,_0x57d813,_0x4d44eb,_0x228ab9);},'BksFo':_0x170f27(0x1ce),'byskp':_0x170f27(0x19a),'zqdRc':_0x170f27(0x1f4),'xbCdo':function(_0x3c66d5,_0x3c0fee,_0x557d6d){return _0x3c66d5(_0x3c0fee,_0x557d6d);},'xJYzK':function(_0x2e9a59,_0x1c264d){return _0x2e9a59===_0x1c264d;},'OgGdM':'get\x20grid\x20url\x20from\x20the\x20server.\x20Unknown\x20error!','QLPov':_0x170f27(0x24c),'CaWuZ':_0x170f27(0x1f3),'buGCx':_0x170f27(0x133),'yPuhk':'get-grid-url-non-200','rxtYY':_0x170f27(0x26f),'yzwQX':function(_0x53e04c,_0x813895,_0x2b27b7,_0x4c73c9,_0xcf0d8c,_0x19f0ab){return _0x53e04c(_0x813895,_0x2b27b7,_0x4c73c9,_0xcf0d8c,_0x19f0ab);},'hZhLu':_0x170f27(0x17f)};let _0x5afe1c=![],_0x4381c7=![],_0x52088f,_0x23689a,_0x50715f,_0x22b2b6,_0x5816e3,_0x3ad6ac,_0x407cc7,_0x180906,_0x2c2c3c,_0x31fc03,_0x54be75,_0x2c678f,_0x4ea799,_0x4eeee,_0x512a4e=0x1,_0x7970f3=0xe;try{global_registry[_0x170f27(0x17a)]=_0x2af040[_0x170f27(0x29e)](uuidv4),global_registry[_0x170f27(0x250)]=![];if(!fs[_0x170f27(0x2c0)](_0x2af040['OrGCm'](getCredentialsPath))){if(_0x2af040[_0x170f27(0x1d3)](_0x2af040[_0x170f27(0x177)],_0x2af040[_0x170f27(0x177)])){const _0x3f8727=_0x2af040[_0x170f27(0x14d)]['split']('|');let _0x4b303a=0x0;while(!![]){switch(_0x3f8727[_0x4b303a++]){case'0':_0x2af040[_0x170f27(0x1d3)](_0x2463d2[_0x170f27(0x16d)],_0xe99e1)&&_0x39d678[_0x170f27(0x16d)]&&(_0x563c50[_0x170f27(0x250)]=!![]);continue;case'1':_0x3304a0=_0x5724b5[_0x170f27(0x291)];continue;case'2':_0x294584=_0x3288d5[_0x170f27(0x17c)];continue;case'3':_0x90093[_0x170f27(0x246)](_0x3dc89b);continue;case'4':_0x5d4b12=_0x1c4031['maxNodes'];continue;case'5':_0x100cf5=null;continue;case'6':const _0x2ba11a={};_0x2ba11a[_0x170f27(0x1e1)]=_0x55fa8d['LOG'],_0x2ba11a[_0x170f27(0x27d)]=_0x510b16,_0x2b0dd5['sendEventToBackend'](_0x149014,_0x2ba11a);continue;case'7':_0x14ee5c=_0x170f27(0x20e)+_0x200b51;continue;case'8':_0x1e5425=_0x515b02[_0x170f27(0x169)];continue;case'9':_0x4e1dff=null;continue;case'10':_0x1b474a['enableHubHa']&&_0x2af040[_0x170f27(0x1c7)](_0x1070c1,_0x46d188[_0x170f27(0x23d)]);continue;case'11':_0x22cef9=_0x21b553[_0x170f27(0x2a4)];continue;case'12':_0x10451a=_0x3c34e9[_0x170f27(0x28b)];continue;case'13':_0x2af040[_0x170f27(0x24a)](_0x2664ab,_0x8a52e,_0x10b2a8,_0x4410e5,_0x5818d8,_0x39e518,_0x309f2f,_0x4c1080,_0x102016,_0x6dbd33,_0x3309f9,_0xb08b6e,_0x3f1838[_0x170f27(0x1e9)]);continue;case'14':_0x3cbd29=_0x284b4d['instanceType'];continue;case'15':_0x261682=null;continue;}break;}}else console[_0x170f27(0x164)](_0x2af040[_0x170f27(0x206)]),await _0x2af040[_0x170f27(0x18d)](sendInstrumentationEvent,_0x46df7a,_0x2af040[_0x170f27(0x176)],messageTypes[_0x170f27(0x157)],_0x2af040['XGErQ'],null,_0x46df7a),process['exit'](0x1);}await _0x2af040['isvmZ'](sendInstrumentationEvent,_0x46df7a,_0x2af040['IIcUk'],messageTypes[_0x170f27(0x1e3)],null,null,_0x46df7a);const _0x46cd6b=JSON[_0x170f27(0x21b)](fs[_0x170f27(0x201)](_0x2af040[_0x170f27(0x228)](getCredentialsPath)));global_registry[_0x170f27(0x148)]=_0x46cd6b[_0x170f27(0x146)][_0x170f27(0x179)],global_registry['bstackAccesskey']=_0x46cd6b['Browserstack'][_0x170f27(0x20a)];const _0x35231=WS_ENDPOINT[_0x170f27(0x1e4)](_0x2af040[_0x170f27(0x25f)],_0x46cd6b[_0x170f27(0x146)][_0x170f27(0x179)])[_0x170f27(0x1e4)](_0x2af040[_0x170f27(0x191)],_0x46cd6b[_0x170f27(0x146)][_0x170f27(0x20a)]),_0x2e1a2d={};_0x2e1a2d[_0x170f27(0x2cf)]=ws,_0x2e1a2d[_0x170f27(0x13d)]=0x36ee80,_0x2c678f=new ReconnectingWebSocket(_0x35231,[],_0x2e1a2d),logger[_0x170f27(0x28d)](_0x2af040[_0x170f27(0x16e)]),webSocketUtils[_0x170f27(0x2d2)](_0x2c678f,_0x46df7a[_0x170f27(0x134)],_0x46df7a[_0x170f27(0x20a)]);const _0x5bc66e=_0x46df7a[_0x170f27(0x247)]||DEFAULT_GRID_NAME;if(_0x46df7a['clusterName']||_0x46df7a[_0x170f27(0x25a)]||_0x46df7a[_0x170f27(0x1b7)]){if(_0x2af040[_0x170f27(0x1d3)](_0x2af040[_0x170f27(0x264)],_0x2af040['AAtVE'])){const _0x32ff33=_0x2af040[_0x170f27(0x2a8)][_0x170f27(0x1b2)]('|');let _0x533137=0x0;while(!![]){switch(_0x32ff33[_0x533137++]){case'0':_0x289889[_0x170f27(0x169)]=_0x218614[_0x170f27(0x169)];continue;case'1':_0x3ea2b9['clusterRegion']=_0x5ee14e;continue;case'2':const _0x16f476={};_0x16f476[_0x170f27(0x1e1)]=_0x366279[_0x170f27(0x1e8)],_0x16f476['message']=_0x31345a,_0x37f23f['sendEventToBackend'](_0x5cd171,_0x16f476);continue;case'3':_0x5a08f9='Spawning\x20the\x20grid\x20'+_0x398f63+_0x170f27(0x1df)+_0x6a6f9e+'\x27';continue;case'4':const _0x39bd09={};_0x39bd09[_0x170f27(0x1e1)]=_0x274502[_0x170f27(0x208)],_0x39bd09[_0x170f27(0x27d)]=_0x2af040['ddmPa'],_0xa9b4f2['sendEventToBackend'](_0x1e1369,_0x39bd09);continue;case'5':_0x29761f[_0x170f27(0x28b)]=_0x56e6a[_0x170f27(0x28b)];continue;case'6':_0x451319['cloudProvider']=_0x2b59d4;continue;case'7':_0xf770ce['info'](_0x3714ba);continue;case'8':_0xedf698[_0x170f27(0x185)]=_0x4e47e0;continue;}break;}}else{!(_0x46df7a[_0x170f27(0x185)]&&_0x46df7a['cloudProvider']&&_0x46df7a[_0x170f27(0x1b7)])&&(_0x2af040[_0x170f27(0x1d3)](_0x2af040[_0x170f27(0x1ad)],_0x2af040[_0x170f27(0x1ad)])?_0x548e90[_0x170f27(0x250)]=!![]:(_0x52088f=_0x2af040[_0x170f27(0x220)],await _0x2af040[_0x170f27(0x296)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes['ERROR'],_0x2af040[_0x170f27(0x176)],_0x2af040[_0x170f27(0x2d8)],_0x2af040['HUatN']),logger[_0x170f27(0x164)](_0x52088f),process['exit'](0x1)));![AWS,AZURE,GCP][_0x170f27(0x19d)](_0x46df7a[_0x170f27(0x25a)][_0x170f27(0x19b)]())&&(_0x2af040[_0x170f27(0x144)](_0x2af040[_0x170f27(0x28e)],_0x2af040[_0x170f27(0x1ec)])?(_0x1bdf57['info'](_0x170f27(0x21a)+_0x21ace2[_0x170f27(0x185)]+_0x170f27(0x2dc)),_0x5147fd=![],_0x5c4e7e=!![]):(_0x52088f=_0x2af040[_0x170f27(0x22d)],await _0x2af040[_0x170f27(0x2d1)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040[_0x170f27(0x176)],_0x2af040[_0x170f27(0x140)],_0x2af040[_0x170f27(0x2b8)]),logger[_0x170f27(0x164)](_0x52088f),process['exit'](0x1)));if(_0x46df7a[_0x170f27(0x16d)]&&_0x2af040['JycJp'](_0x46df7a[_0x170f27(0x16d)][_0x170f27(0x19b)](),_0x2af040[_0x170f27(0x2c8)])){if(_0x2af040['Ghobm'](_0x2af040['nCdev'],_0x2af040[_0x170f27(0x13f)]))global_registry[_0x170f27(0x250)]=!![];else{const _0x281273=_0x2af040['mRRvI'][_0x170f27(0x1b2)]('|');let _0xb469b5=0x0;while(!![]){switch(_0x281273[_0xb469b5++]){case'0':_0x117b8c[_0x170f27(0x246)](_0x2af040[_0x170f27(0x292)]);continue;case'1':_0x35b891[_0x170f27(0x27b)]=!![];continue;case'2':_0x156615[_0x170f27(0x174)]=_0x2af040[_0x170f27(0x1bb)];continue;case'3':_0x2ecb1c[_0x170f27(0x16b)]=_0x2af040['PHCrM'];continue;case'4':_0x51f084[_0x170f27(0x2d3)]=_0x2af040[_0x170f27(0x12b)];continue;}break;}}}global_registry[_0x170f27(0x25a)]=_0x46df7a[_0x170f27(0x25a)],global_registry[_0x170f27(0x2a5)]=_0x46df7a[_0x170f27(0x1b7)],global_registry[_0x170f27(0x185)]=_0x46df7a[_0x170f27(0x185)];const _0x3a19cd=await _0x2af040[_0x170f27(0x18d)](getCloudProviderObject,_0x46df7a[_0x170f27(0x25a)],_0x46df7a[_0x170f27(0x185)],_0x5bc66e,_0x2c678f,webSocketUtils,_0x46df7a),_0x280fe7=await _0x3a19cd[_0x170f27(0x15c)]();!_0x280fe7?_0x2af040[_0x170f27(0x2bc)](_0x2af040[_0x170f27(0x222)],_0x2af040[_0x170f27(0x222)])?(logger[_0x170f27(0x246)]('Cluster:\x20'+_0x46df7a[_0x170f27(0x185)]+_0x170f27(0x2dc)),_0x5afe1c=![],_0x4381c7=!![]):(_0x26c0cf[_0x170f27(0x1b7)]=_0x302dd1,_0x233009['cloudProvider']=_0x4de43c,_0x1f567b[_0x170f27(0x197)]=!![],_0x5e3e41['clusterAutoUpgrade']=_0x4c68cf['clusterAutoupgrade']):_0x2af040[_0x170f27(0x23c)](_0x2af040[_0x170f27(0x195)],_0x2af040['teeNm'])?_0x5afe1c=!![]:_0x526f4c=_0x2af040[_0x170f27(0x256)],_0x50715f=_0x46df7a[_0x170f27(0x185)],_0x23689a=_0x46df7a[_0x170f27(0x25a)][_0x170f27(0x19b)](),_0x22b2b6=_0x46df7a[_0x170f27(0x1b7)];}}else _0x46df7a[_0x170f27(0x18a)]&&(_0x2af040[_0x170f27(0x1d3)](_0x2af040['zDBKI'],_0x2af040[_0x170f27(0x1ed)])?global_registry[_0x170f27(0x18a)]=_0x46df7a['gridProfile']:_0x5a9516=null);global_registry[_0x170f27(0x247)]=_0x46df7a['gridName'];const _0x5cdc30={'method':_0x2af040[_0x170f27(0x149)],'headers':_0x2af040[_0x170f27(0x254)](getAuthHeader,_0x46cd6b[_0x170f27(0x146)][_0x170f27(0x179)],_0x46cd6b['Browserstack']['password']),'throwHttpErrors':![]},_0x4c7434={};_0x4c7434[_0x170f27(0x247)]=_0x5bc66e;const _0x4d7d8a=_0x4c7434;_0x4381c7&&(_0x2af040[_0x170f27(0x1dd)](_0x2af040['hDmLh'],_0x2af040['hDmLh'])?_0x294e22[_0x170f27(0x250)]=!![]:(_0x4d7d8a[_0x170f27(0x1b7)]=_0x22b2b6,_0x4d7d8a[_0x170f27(0x25a)]=_0x23689a,_0x4d7d8a[_0x170f27(0x197)]=!![],_0x4d7d8a[_0x170f27(0x21f)]=_0x46df7a[_0x170f27(0x1e9)]));_0x46df7a[_0x170f27(0x1e9)]&&(_0x2af040['RzKWy'](_0x2af040['imEHJ'],_0x2af040[_0x170f27(0x215)])?_0xb2bf3c[_0x170f27(0x250)]=!![]:logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x18c)]));const _0x41ed68=_0x170f27(0x217)+AG_API_URL+_0x170f27(0x2cb),_0x53556a={'searchParams':_0x4d7d8a,'throwHttpErrors':![],..._0x5cdc30},_0x19e409=_0x53556a,_0x169aa5=await _0x2af040[_0x170f27(0x254)](got,_0x41ed68,_0x19e409);(_0x2af040[_0x170f27(0x2bc)](_0x169aa5,null)||_0x2af040[_0x170f27(0x27c)](_0x169aa5,undefined))&&(_0x2af040[_0x170f27(0x1db)](_0x2af040[_0x170f27(0x156)],_0x2af040['meEyA'])?_0x33d3d5[_0x170f27(0x246)](_0x170f27(0x2ad)+_0x500be9+'\x20'):(_0x52088f=_0x2af040[_0x170f27(0x2c4)],await _0x2af040[_0x170f27(0x239)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040['IIcUk'],_0x2af040['IRfJm'],_0x2af040[_0x170f27(0x2b8)]),logger[_0x170f27(0x164)](_0x52088f),process[_0x170f27(0x1c8)](0x1)));_0x2af040[_0x170f27(0x23c)](_0x169aa5['statusCode'],0x191)&&(_0x2af040[_0x170f27(0x25d)](_0x2af040[_0x170f27(0x1a3)],_0x2af040[_0x170f27(0x1a3)])?(_0x19c5fc=_0x27f1dd[_0x170f27(0x275)],_0x1bfaed=_0x2af040[_0x170f27(0x15d)]):(_0x52088f=_0x2af040[_0x170f27(0x2c1)],await _0x2af040[_0x170f27(0x269)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040['IIcUk'],_0x2af040[_0x170f27(0x162)],_0x2af040[_0x170f27(0x2b8)]),logger[_0x170f27(0x164)](_0x52088f),process[_0x170f27(0x1c8)](0x1)));_0x2af040[_0x170f27(0x25d)](_0x169aa5[_0x170f27(0x2d5)],0xc8)&&(_0x2af040[_0x170f27(0x27c)](_0x2af040['xWLUI'],_0x2af040[_0x170f27(0x29f)])?_0xf71c92=!![]:(_0x52088f=_0x170f27(0x24d)+JSON[_0x170f27(0x12a)](_0x169aa5[_0x170f27(0x161)]),await _0x2af040[_0x170f27(0x233)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040[_0x170f27(0x176)],_0x2af040[_0x170f27(0x2d6)],_0x2af040[_0x170f27(0x2b8)]),logger[_0x170f27(0x164)](_0x52088f),process['exit'](0x1)));const _0xea6e3f=JSON[_0x170f27(0x21b)](_0x169aa5[_0x170f27(0x161)]),_0x1ffddf={};_0x1ffddf['type']=WS_EVENTS[_0x170f27(0x208)],_0x1ffddf['message']=_0x2af040[_0x170f27(0x1d6)],webSocketUtils['sendEventToBackend'](_0x2c678f,_0x1ffddf);const _0x483ff6={};_0x483ff6['type']=WS_EVENTS['LOG'],_0x483ff6['message']=_0x2af040[_0x170f27(0x2b9)],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x483ff6);_0xea6e3f['alreadyPresent']&&(_0x2af040[_0x170f27(0x2ae)](_0x2af040[_0x170f27(0x196)],_0x2af040['cOXxO'])?_0xb56fde=null:(_0x52088f='An\x20Automation\x20Grid\x20already\x20exists\x20with\x20grid\x20name\x20'+_0x5bc66e+_0x170f27(0x1a4),await _0x2af040['iTfzO'](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040[_0x170f27(0x176)],_0x2af040[_0x170f27(0x29a)],_0x2af040['HUatN']),logger['error'](_0x52088f),process[_0x170f27(0x1c8)](0x1)));const _0x56b830=_0xea6e3f[_0x170f27(0x14b)];let _0x1afb47=_0x56b830[_0xea6e3f[_0x170f27(0x207)]];_0x46df7a[_0x170f27(0x18a)]&&(_0x2af040[_0x170f27(0x1dd)](_0x2af040['dDbYj'],_0x2af040[_0x170f27(0x143)])?_0x1afb47=_0x56b830[_0x46df7a[_0x170f27(0x18a)]]:_0x59c753[_0x170f27(0x164)]('Failed\x20to\x20delete\x20the\x20CloudFormation\x20Stacks\x20and\x20other\x20spawned\x20components.\x20Error:\x20\x20'+_0x5e0f61+'\x20\x0a'+_0x3f33c9[_0x170f27(0x12a)](_0x37b429['stack'])));global_registry[_0x170f27(0x27b)]=![];if(_0x46df7a[_0x170f27(0x1d1)]){if(_0x2af040[_0x170f27(0x2bf)](_0x2af040[_0x170f27(0x1fa)],_0x2af040[_0x170f27(0x2b7)])){const _0x4835c3=_0x2af040[_0x170f27(0x2a0)][_0x170f27(0x1b2)]('|');let _0x1c5b2a=0x0;while(!![]){switch(_0x4835c3[_0x1c5b2a++]){case'0':logger['info'](_0x2af040[_0x170f27(0x292)]);continue;case'1':global_registry['redisPassword']=_0x2af040[_0x170f27(0x1bb)];continue;case'2':global_registry[_0x170f27(0x16b)]=_0x2af040[_0x170f27(0x244)];continue;case'3':global_registry[_0x170f27(0x27b)]=!![];continue;case'4':global_registry['hubHaNameSpace']=_0x2af040[_0x170f27(0x12b)];continue;}break;}}else{const _0x55e6a8={};_0x55e6a8[_0x170f27(0x212)]=_0x2af040['NhBST'],_0x55e6a8[_0x170f27(0x1e1)]=_0x2af040[_0x170f27(0x2c5)];const _0x31f00f={};_0x31f00f[_0x170f27(0x212)]=_0x2af040['aArie'],_0x31f00f[_0x170f27(0x1e1)]=_0x2af040[_0x170f27(0x2c5)];const _0x526eb5={};_0x526eb5[_0x170f27(0x212)]=_0x2af040[_0x170f27(0x1aa)],_0x526eb5[_0x170f27(0x1e1)]=_0x2af040[_0x170f27(0x2c5)];const _0x4bd90c={};_0x4bd90c[_0x170f27(0x212)]=_0x2af040['aboaH'],_0x4bd90c[_0x170f27(0x1e1)]=_0x2af040[_0x170f27(0x2c5)];const _0x26de6b={};_0x26de6b['description']=_0x2af040[_0x170f27(0x29d)],_0x26de6b[_0x170f27(0x1e1)]=_0x2af040[_0x170f27(0x2c5)];const _0x3138d1={};_0x3138d1[_0x170f27(0x212)]=_0x2af040[_0x170f27(0x20b)],_0x3138d1['type']=_0x2af040['SIVYg'];const _0x296354={};_0x296354[_0x170f27(0x212)]=_0x2af040[_0x170f27(0x2ba)],_0x296354[_0x170f27(0x1e1)]=_0x2af040['rHWgz'],_0x296354[_0x170f27(0x285)]=![];const _0x2d1624={};_0x2d1624[_0x170f27(0x212)]=_0x2af040[_0x170f27(0x2b2)],_0x2d1624[_0x170f27(0x1e1)]=_0x2af040[_0x170f27(0x28f)],_0x2d1624[_0x170f27(0x285)]=![];const _0x3d2ad2={};_0x3d2ad2['description']=_0x2af040[_0x170f27(0x20d)],_0x3d2ad2[_0x170f27(0x1e1)]=_0x2af040[_0x170f27(0x28f)],_0x3d2ad2[_0x170f27(0x285)]=![];const _0x29ba26={};return _0x29ba26[_0x170f27(0x1ff)]=_0x55e6a8,_0x29ba26[_0x170f27(0x14f)]=_0x31f00f,_0x29ba26[_0x170f27(0x18b)]=_0x526eb5,_0x29ba26[_0x170f27(0x2cc)]=_0x4bd90c,_0x29ba26[_0x170f27(0x1b7)]=_0x26de6b,_0x29ba26[_0x170f27(0x2ca)]=_0x3138d1,_0x29ba26['skip-tls-cert-verify']=_0x296354,_0x29ba26[_0x170f27(0x160)]=_0x2d1624,_0x29ba26[_0x170f27(0x1ef)]=_0x3d2ad2,_0x59bc6d[_0x170f27(0x255)](_0x545f1d[_0x170f27(0x26e)])[_0x170f27(0x243)](_0x391743)[_0x170f27(0x182)](_0x29ba26)[_0x170f27(0x237)](_0x2af040[_0x170f27(0x276)])['argv'];}}if(_0x2af040[_0x170f27(0x23c)](_0x5afe1c,![])&&_0x2af040[_0x170f27(0x23b)](_0x4381c7,![])){if(_0x2af040[_0x170f27(0x2da)](_0x2af040['WwhWX'],_0x2af040[_0x170f27(0x198)]))_0x19823d=_0x2af040[_0x170f27(0x1f1)];else{_0x2af040[_0x170f27(0x23c)](_0x1afb47,undefined)&&(_0x2af040[_0x170f27(0x23b)](_0x2af040[_0x170f27(0x202)],_0x2af040[_0x170f27(0x1da)])?_0x2af040[_0x170f27(0x1c7)](_0x397cc4,_0x11fe62['kafkaUploader']):(_0x52088f=_0x2af040[_0x170f27(0x15e)],await _0x2af040[_0x170f27(0x239)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040[_0x170f27(0x176)],_0x2af040[_0x170f27(0x1c9)],_0x2af040[_0x170f27(0x2b8)]),logger['error'](_0x52088f),process['exit'](0x1)));global_registry[_0x170f27(0x1cd)]=_0x1afb47['id'],_0x52088f=_0x170f27(0x2b1)+_0x5bc66e+_0x170f27(0x2b0)+_0x1afb47[_0x170f27(0x2b5)]+_0x170f27(0x274),logger['info'](_0x52088f);const _0x574aa4={};_0x574aa4['type']=WS_EVENTS['LOG'],_0x574aa4[_0x170f27(0x27d)]=_0x52088f,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x574aa4),_0x23689a=_0x1afb47[_0x170f27(0x25a)],_0x50715f=_0x1afb47[_0x170f27(0x185)],_0x22b2b6=_0x1afb47[_0x170f27(0x1b7)],_0x5816e3=_0x1afb47[_0x170f27(0x291)],_0x3ad6ac=_0x1afb47[_0x170f27(0x172)],_0x407cc7=_0x1afb47[_0x170f27(0x158)],_0x180906=_0x1afb47['securityGroups'],_0x2c2c3c=_0x1afb47[_0x170f27(0x1d0)],_0x31fc03=_0x1afb47[_0x170f27(0x2a4)],_0x512a4e=_0x1afb47['minNodes'],_0x7970f3=_0x1afb47[_0x170f27(0x2d0)],_0x4ea799=_0xea6e3f[_0x170f27(0x169)],_0x4eeee=_0xea6e3f[_0x170f27(0x28b)];_0x407cc7&&_0x2af040['fRodh'](_0x407cc7[_0x170f27(0x135)],0x0)&&(_0x2af040[_0x170f27(0x287)](_0x2af040[_0x170f27(0x1b5)],_0x2af040[_0x170f27(0x1b5)])?_0x407cc7=null:_0xb20c24=_0x2af040['GPWQP']);if(_0x2c2c3c&&_0x2af040[_0x170f27(0x2da)](_0x2c2c3c[_0x170f27(0x135)],0x0)){if(_0x2af040[_0x170f27(0x1c5)](_0x2af040[_0x170f27(0x1de)],_0x2af040[_0x170f27(0x1de)]))_0x2c2c3c=null;else throw new _0x529980(_0x170f27(0x1f8)+_0x24c7af+_0x170f27(0x279));}if(_0x2af040[_0x170f27(0x1d3)](_0x1afb47[_0x170f27(0x16d)],undefined)&&_0x1afb47[_0x170f27(0x16d)]){if(_0x2af040[_0x170f27(0x20f)](_0x2af040[_0x170f27(0x14e)],_0x2af040['ARKIH'])){const _0x442bb6={};_0x442bb6[_0x170f27(0x1e1)]=_0x1e1a6c[_0x170f27(0x1e8)],_0x442bb6[_0x170f27(0x27d)]=_0x56728b,_0x30455d[_0x170f27(0x216)](_0x4e03c1,_0x442bb6,_0x2af040[_0x170f27(0x2b8)],!![]);}else global_registry[_0x170f27(0x250)]=!![];}_0x2af040['iHyNa'](updateGlobalRegistryWithConfig,_0x23689a,_0x50715f,_0x22b2b6,_0x5816e3,_0x3ad6ac,_0x31fc03,_0x1afb47,_0x4ea799,_0x4eeee,_0x512a4e,_0x7970f3,_0x46df7a[_0x170f27(0x1e9)]),global_registry[_0x170f27(0x27b)]&&(_0x2af040['YuLPW'](_0x2af040['IAuNR'],_0x2af040[_0x170f27(0x252)])?_0xa0e885[_0x170f27(0x18a)]=_0x3e37f6[_0x170f27(0x18a)]:_0x2af040['eQHrm'](updateGlobalRegistryForHubHa,_0xea6e3f[_0x170f27(0x284)]));}}else{if(_0x2af040[_0x170f27(0x20f)](_0x4381c7,!![])){if(_0x2af040[_0x170f27(0x1a7)](_0x2af040[_0x170f27(0x131)],_0x2af040[_0x170f27(0x223)])){_0x52088f=_0x170f27(0x20e)+_0x5bc66e,logger['info'](_0x52088f);const _0x3ea8b9={};_0x3ea8b9[_0x170f27(0x1e1)]=WS_EVENTS['LOG'],_0x3ea8b9[_0x170f27(0x27d)]=_0x52088f,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x3ea8b9),_0x5816e3=_0x1afb47[_0x170f27(0x291)],_0x3ad6ac=_0x1afb47[_0x170f27(0x172)],_0x407cc7=null,_0x180906=null,_0x2c2c3c=null,_0x31fc03=_0x1afb47[_0x170f27(0x2a4)],_0x512a4e=_0x1afb47[_0x170f27(0x17c)],_0x7970f3=_0x1afb47[_0x170f27(0x2d0)],_0x4ea799=_0xea6e3f[_0x170f27(0x169)],_0x4eeee=_0xea6e3f[_0x170f27(0x28b)];if(_0x2af040['QhqiV'](_0x1afb47[_0x170f27(0x16d)],undefined)&&_0x1afb47[_0x170f27(0x16d)]){if(_0x2af040[_0x170f27(0x1c0)](_0x2af040[_0x170f27(0x1b9)],_0x2af040[_0x170f27(0x1b9)])){const _0x4df62d={'azure.workload.identity/use':_0x2af040['kRNoz'],..._0xdb76c8[0x0][_0x170f27(0x288)][_0x170f27(0x1f9)][_0x170f27(0x2b4)]['labels']};_0x5a1046[0x0]['spec']['template']['metadata'][_0x170f27(0x260)]=_0x4df62d,_0x854711[0x0][_0x170f27(0x288)][_0x170f27(0x1f9)]['spec'][_0x170f27(0x18f)]=_0x2af040[_0x170f27(0x219)];}else global_registry['isPrivateGrid']=!![];}_0x2af040[_0x170f27(0x1fd)](updateGlobalRegistryWithConfig,_0x23689a,_0x50715f,_0x22b2b6,_0x5816e3,_0x3ad6ac,_0x31fc03,_0x1afb47,_0x4ea799,_0x4eeee,_0x512a4e,_0x7970f3,_0x46df7a[_0x170f27(0x1e9)]),global_registry[_0x170f27(0x27b)]&&(_0x2af040[_0x170f27(0x12f)](_0x2af040[_0x170f27(0x23a)],_0x2af040[_0x170f27(0x23a)])?_0x5b8d02[_0x170f27(0x246)](_0x2af040[_0x170f27(0x18c)]):_0x2af040[_0x170f27(0x251)](updateGlobalRegistryForHubHa,_0xea6e3f[_0x170f27(0x23d)]));}else _0x491d36['sendResourceDataToHST']();}else{if(_0x2af040[_0x170f27(0x2be)](_0x2af040[_0x170f27(0x221)],_0x2af040[_0x170f27(0x221)])){const _0x3bea13=_0x2af040['jWxhk'][_0x170f27(0x1b2)]('|');let _0x9db490=0x0;while(!![]){switch(_0x3bea13[_0x9db490++]){case'0':global_registry[_0x170f27(0x185)]=_0x50715f;continue;case'1':const _0x59b4cc={};_0x59b4cc[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x208)],_0x59b4cc[_0x170f27(0x27d)]=_0x2af040['ddmPa'],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x59b4cc);continue;case'2':global_registry[_0x170f27(0x28b)]=_0xea6e3f[_0x170f27(0x28b)];continue;case'3':logger[_0x170f27(0x246)](_0x52088f);continue;case'4':global_registry[_0x170f27(0x2a5)]=_0x22b2b6;continue;case'5':global_registry[_0x170f27(0x25a)]=_0x23689a;continue;case'6':global_registry[_0x170f27(0x169)]=_0xea6e3f[_0x170f27(0x169)];continue;case'7':const _0x30d7a4={};_0x30d7a4[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x30d7a4[_0x170f27(0x27d)]=_0x52088f,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x30d7a4);continue;case'8':_0x52088f=_0x170f27(0x1ab)+_0x5bc66e+_0x170f27(0x1df)+_0x50715f+'\x27';continue;}break;}}else _0x58dc11[_0x170f27(0x246)](_0x170f27(0x1fc)+_0x5a9a9e[_0x170f27(0x12a)](_0x3efe78)+'\x20');}}const _0x51627e=await _0x2af040[_0x170f27(0x18d)](getCloudProviderObject,_0x23689a,_0x50715f,_0x5bc66e,_0x2c678f,webSocketUtils,_0x46df7a);if(_0x2af040[_0x170f27(0x1e5)](_0x23689a,AZURE)){if(_0x2af040[_0x170f27(0x144)](_0x2af040[_0x170f27(0x189)],_0x2af040[_0x170f27(0x189)]))_0x51627e[_0x170f27(0x27a)]();else{const _0x3a8a7d={};_0x3a8a7d[_0x170f27(0x1e1)]=_0x213baf[_0x170f27(0x1e8)],_0x3a8a7d[_0x170f27(0x27d)]=_0x170f27(0x1f8)+_0x4f419c+'\x20is\x20already\x20present.\x20Skipping\x20cluster\x20creation',_0x50da7d[_0x170f27(0x216)](_0x176989,_0x3a8a7d,_0x2af040[_0x170f27(0x200)]),_0x384cdf[_0x170f27(0x246)]('Cluster\x20'+_0x1bebc9+_0x170f27(0x211)),_0x34fba4=!![];if(_0x2af040[_0x170f27(0x144)](_0x5e8899,!![]))throw new _0x152e5d(_0x170f27(0x1f8)+_0x23b886+_0x170f27(0x279));}}let _0x1de9f6;if(_0x2af040['frJXt'](_0x5afe1c,![])){_0x52088f='Checking\x20if\x20cluster\x20is\x20already\x20present\x20in\x20selected\x20region('+_0x22b2b6+').';const _0x21c7eb={};_0x21c7eb[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x21c7eb[_0x170f27(0x27d)]=_0x52088f,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x21c7eb),logger[_0x170f27(0x246)](_0x52088f);const _0x10b38f=await _0x51627e['isClusterPresent']();if(_0x10b38f){if(_0x2af040[_0x170f27(0x2bc)](_0x2af040[_0x170f27(0x1e0)],_0x2af040[_0x170f27(0x1e0)])){const _0x54e627={};_0x54e627[_0x170f27(0x1e1)]=WS_EVENTS['LOG'],_0x54e627['message']=_0x170f27(0x1f8)+_0x50715f+_0x170f27(0x211),webSocketUtils['sendEventToBackend'](_0x2c678f,_0x54e627,_0x2af040[_0x170f27(0x200)]),logger[_0x170f27(0x246)]('Cluster\x20'+_0x50715f+_0x170f27(0x211)),_0x5afe1c=!![];if(_0x2af040[_0x170f27(0x1e7)](_0x4381c7,!![])){if(_0x2af040['waRTA'](_0x2af040[_0x170f27(0x28c)],_0x2af040[_0x170f27(0x163)]))_0x2b1556=_0x4a0da4[_0x5afb56[_0x170f27(0x18a)]];else throw new Error(_0x170f27(0x1f8)+_0x50715f+'\x20is\x20already\x20present.\x20Cannot\x20spawn\x20a\x20new\x20cluster');}}else _0x2af040[_0x170f27(0x251)](_0x17e2f3,_0x185d2c[_0x170f27(0x284)]);}else{const _0x166e67={};_0x166e67[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x166e67[_0x170f27(0x27d)]=_0x2af040[_0x170f27(0x2b3)],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x166e67),logger[_0x170f27(0x246)](_0x2af040['aUAdp']);const _0x52fc4d=_0x2af040[_0x170f27(0x294)](_0x407cc7,null)&&_0x2af040[_0x170f27(0x1a7)](_0x407cc7,undefined),_0x2bcd17=_0x2af040[_0x170f27(0x2cd)](_0x2c2c3c,null)&&_0x2af040[_0x170f27(0x1db)](_0x2c2c3c,undefined)&&_0x2af040['YjVvc'](_0x2c2c3c[_0x170f27(0x135)],0x0);if(_0x52fc4d){_0x2af040[_0x170f27(0x12c)](_0x2bcd17,![])&&(_0x52088f=_0x2af040[_0x170f27(0x1e2)],await _0x2af040[_0x170f27(0x2c9)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040['IIcUk'],_0x2af040[_0x170f27(0x1a1)],_0x2af040['HUatN']),logger[_0x170f27(0x164)](_0x52088f),process[_0x170f27(0x1c8)](0x1));const _0x17456b=await _0x51627e[_0x170f27(0x166)](_0x407cc7);_0x2af040[_0x170f27(0x180)](_0x17456b,![])?(_0x52088f=_0x2af040[_0x170f27(0x155)],await _0x2af040[_0x170f27(0x24f)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040['IIcUk'],_0x2af040[_0x170f27(0x1b4)],_0x2af040[_0x170f27(0x2b8)]),logger[_0x170f27(0x164)](_0x52088f),process['exit'](0x1)):logger[_0x170f27(0x246)](_0x170f27(0x2ad)+_0x407cc7+'\x20');const _0x3ae4cb=await _0x51627e[_0x170f27(0x29c)](_0x2c2c3c,_0x407cc7);_0x2af040[_0x170f27(0x203)](_0x3ae4cb[0x0],![])?(_0x52088f=_0x170f27(0x1a9)+JSON[_0x170f27(0x12a)](_0x3ae4cb[0x1])+'\x20are\x20not\x20present\x20in\x20VPC:\x20'+_0x407cc7+_0x170f27(0x226),await _0x2af040[_0x170f27(0x2c9)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040[_0x170f27(0x176)],_0x2af040[_0x170f27(0x26c)],_0x2af040[_0x170f27(0x2b8)]),logger[_0x170f27(0x164)](_0x52088f),process[_0x170f27(0x1c8)](0x1)):logger[_0x170f27(0x246)](_0x170f27(0x1fc)+JSON[_0x170f27(0x12a)](_0x2c2c3c)+'\x20'),[_0x407cc7,_0x2c2c3c]=await _0x51627e['setupNewCluster'](_0x407cc7,_0x2c2c3c);}else{const _0x13cd2d=_0x2af040[_0x170f27(0x1b1)]['split']('|');let _0x1debdb=0x0;while(!![]){switch(_0x13cd2d[_0x1debdb++]){case'0':logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x273)]);continue;case'1':[_0x407cc7,_0x2c2c3c]=await _0x51627e[_0x170f27(0x249)](_0x407cc7,_0x2c2c3c);continue;case'2':const _0x3155ed={};_0x3155ed[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x3155ed[_0x170f27(0x27d)]=_0x2af040[_0x170f27(0x273)],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x3155ed);continue;case'3':logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x167)]);continue;case'4':const _0x1da6a2={};_0x1da6a2[_0x170f27(0x1e1)]=WS_EVENTS['LOG'],_0x1da6a2['message']=_0x2af040[_0x170f27(0x167)],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x1da6a2);continue;}break;}}}}_0x5afe1c&&_0x2af040[_0x170f27(0x188)](_0x23689a,AZURE)&&(await _0x51627e[_0x170f27(0x16c)](),await _0x51627e[_0x170f27(0x293)]());const [_0x588717,_0x16ac74,_0x1192c5,_0x26d8fb,_0x2133af,_0x2717ae,_0x39def6]=await _0x2af040[_0x170f27(0x254)](createK8sClient,_0x51627e,_0x46df7a['skipTlsCertVerify']);_0x2af040[_0x170f27(0x20c)](_0x5afe1c,![])&&_0x2af040[_0x170f27(0x2bc)](_0x23689a,AWS)&&(global_registry[_0x170f27(0x1b6)]=!![],_0x1de9f6=await _0x51627e['setupAutoscaler'](_0x588717,_0x46df7a));if(_0x2af040[_0x170f27(0x2da)](_0x5afe1c,![])&&global_registry[_0x170f27(0x27b)])try{await _0x51627e[_0x170f27(0x165)](_0x2717ae,_0x39def6,_0x46df7a,_0x407cc7,_0x2c2c3c);const _0x23c8f1={};_0x23c8f1[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x23c8f1[_0x170f27(0x27d)]=_0x2af040['nHDJG'],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x23c8f1);!await _0x2af040[_0x170f27(0x254)](namespaceExists,_0x588717,global_registry[_0x170f27(0x2d3)])&&await _0x2af040[_0x170f27(0x234)](createNamespace,_0x588717,global_registry['hubHaNameSpace']);logger[_0x170f27(0x246)](_0x2af040['kZGJL']);let _0x1c0e8f=await fs['readFileAsync'](path[_0x170f27(0x29b)](__dirname,_0x2af040['LwJlj'],_0x2af040[_0x170f27(0x24e)],_0x2af040[_0x170f27(0x2b6)],_0x2af040['OoGXs']),_0x2af040[_0x170f27(0x24b)]);_0x1c0e8f=_0x1c0e8f[_0x170f27(0x1e4)](/<RedisClientPassword>/g,_0x2af040[_0x170f27(0x17e)](encodeBase64,global_registry[_0x170f27(0x174)])),_0x1c0e8f=_0x1c0e8f['replace'](/<KafkaClientPassword>/g,_0x2af040[_0x170f27(0x17e)](encodeBase64,global_registry[_0x170f27(0x16b)])),_0x1c0e8f=_0x1c0e8f[_0x170f27(0x1e4)](/<BstackUsername>/g,_0x2af040[_0x170f27(0x17e)](encodeBase64,global_registry[_0x170f27(0x148)])),_0x1c0e8f=_0x1c0e8f[_0x170f27(0x1e4)](/<BstackAccessKey>/g,_0x2af040[_0x170f27(0x17b)](encodeBase64,global_registry[_0x170f27(0x229)]));const _0x10e1cc=yaml[_0x170f27(0x136)](_0x1c0e8f);await _0x2af040[_0x170f27(0x240)](kubeApply,_0x10e1cc,_0x39def6),logger['info'](_0x2af040['aUDbk']);let _0x218194=_0x2af040['jxOAB'];if(_0x2af040[_0x170f27(0x188)](_0x23689a,AZURE))_0x218194=_0x2af040['GPWQP'];else _0x2af040[_0x170f27(0x20c)](_0x23689a,GCP)&&(_0x218194=_0x2af040[_0x170f27(0x1f1)]);logger['info'](_0x2af040['uTdEY']);let _0x1b2405=await fs[_0x170f27(0x280)](path['join'](__dirname,_0x2af040[_0x170f27(0x2a2)],_0x2af040['tzXOu'],_0x2af040['JjOtO'],_0x2af040[_0x170f27(0x2c3)]),_0x2af040[_0x170f27(0x24b)]);_0x1b2405=_0x1b2405[_0x170f27(0x1e4)](/<HubHaNameSpace>/g,global_registry['hubHaNameSpace']),_0x1b2405=_0x1b2405[_0x170f27(0x1e4)](/<StorageClassName>/g,_0x218194);const _0x54207a=yaml[_0x170f27(0x136)](_0x1b2405);await _0x2af040[_0x170f27(0x234)](kubeApply,_0x54207a,_0x39def6),logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x1ba)]),logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x283)]);let _0xcc5c69=await fs[_0x170f27(0x280)](path[_0x170f27(0x29b)](__dirname,_0x2af040[_0x170f27(0x2a2)],_0x2af040['tzXOu'],_0x2af040[_0x170f27(0x2b6)],_0x2af040[_0x170f27(0x190)]),_0x2af040[_0x170f27(0x24b)]);_0xcc5c69=_0xcc5c69['replace'](/<HubHaNameSpace>/g,global_registry[_0x170f27(0x2d3)]),_0xcc5c69=_0xcc5c69[_0x170f27(0x1e4)](/<StorageClassName>/g,_0x218194);const _0x26171d=yaml[_0x170f27(0x136)](_0xcc5c69);await _0x2af040['tssQm'](kubeApply,_0x26171d,_0x39def6),logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x1d8)]),logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x2c2)]);let _0x1d6349=await fs['readFileAsync'](path[_0x170f27(0x29b)](__dirname,_0x2af040[_0x170f27(0x2a2)],_0x2af040[_0x170f27(0x24e)],_0x2af040[_0x170f27(0x2b6)],_0x2af040[_0x170f27(0x238)]),_0x2af040['NYnno']);_0x1d6349=_0x1d6349[_0x170f27(0x1e4)](/<UploaderImageVersion>/g,global_registry['uploaderImageVersion']),_0x1d6349=_0x1d6349[_0x170f27(0x1e4)](/<HubHaNameSpace>/g,global_registry[_0x170f27(0x2d3)]);const _0x241ca7=yaml[_0x170f27(0x136)](_0x1d6349);_0x2af040['jCmVv'](global_registry[_0x170f27(0x25a)],AZURE)&&(_0x241ca7[0x0]['spec']['template']['metadata'][_0x170f27(0x260)]={'azure.workload.identity/use':_0x2af040[_0x170f27(0x2c8)],..._0x241ca7[0x0][_0x170f27(0x288)][_0x170f27(0x1f9)][_0x170f27(0x2b4)][_0x170f27(0x260)]},_0x241ca7[0x0][_0x170f27(0x288)][_0x170f27(0x1f9)]['spec']['serviceAccountName']=_0x2af040[_0x170f27(0x219)]);await _0x2af040[_0x170f27(0x299)](kubeApply,_0x241ca7,_0x39def6),logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x150)]);const _0x455ef6={};_0x455ef6['type']=WS_EVENTS[_0x170f27(0x1e8)],_0x455ef6['message']=_0x2af040[_0x170f27(0x1a5)],webSocketUtils['sendEventToBackend'](_0x2c678f,_0x455ef6),logger['info'](_0x2af040[_0x170f27(0x28a)]);}catch(_0x5d1d38){const _0x4b2dcc=_0x2af040['DizBG'][_0x170f27(0x1b2)]('|');let _0x512cf8=0x0;while(!![]){switch(_0x4b2dcc[_0x512cf8++]){case'0':await _0x51627e[_0x170f27(0x1ee)](_0x588717,global_registry[_0x170f27(0x2a5)]);continue;case'1':_0x52088f='Error\x20occurred\x20while\x20setting\x20up\x20Hub\x20HA\x20infra:\x20'+_0x5d1d38[_0x170f27(0x27d)];continue;case'2':logger[_0x170f27(0x164)](_0x52088f);continue;case'3':process['exit'](0x1);continue;case'4':await _0x2af040[_0x170f27(0x13b)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040[_0x170f27(0x176)],_0x2af040['OMppK'],_0x2af040[_0x170f27(0x2b8)]);continue;}break;}}try{_0x54be75=_0x2af040[_0x170f27(0x17b)](kebabCase,_0x5bc66e),logger['info'](_0x2af040[_0x170f27(0x139)]);const _0xc02f08={};_0xc02f08[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0xc02f08[_0x170f27(0x27d)]=_0x2af040[_0x170f27(0x139)],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0xc02f08);if(_0x2af040['EUFkX'](_0x54be75,_0x2af040[_0x170f27(0x219)])){const _0x577feb={};_0x577feb['createdBy']=_0x2af040[_0x170f27(0x19c)],_0x577feb[_0x170f27(0x1ac)]=_0x2af040[_0x170f27(0x19c)];const _0x31404d={};_0x31404d[_0x170f27(0x2b5)]=_0x54be75,_0x31404d[_0x170f27(0x242)]=_0x577feb;const _0x464b06={};_0x464b06[_0x170f27(0x2b4)]=_0x31404d;const _0x5bb5e4=_0x464b06,_0x3b5546={};_0x3b5546['body']=_0x5bb5e4,await _0x588717['createNamespace'](_0x3b5546),logger['info'](_0x2af040['VcCrm']);}const _0x58c049={};_0x58c049['type']=WS_EVENTS[_0x170f27(0x1e8)],_0x58c049['message']=_0x2af040[_0x170f27(0x1f7)],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x58c049);const _0xfa2acb={};_0xfa2acb['type']=WS_EVENTS[_0x170f27(0x1e8)],_0xfa2acb[_0x170f27(0x27d)]=_0x2af040[_0x170f27(0x298)],webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0xfa2acb),logger['info'](_0x2af040[_0x170f27(0x186)]);let _0x291988={};_0x2af040['fRodh'](_0x23689a,AZURE)&&(_0x291988={'clientId':await _0x51627e['getResourceClientId'](_0x170f27(0x22f)+_0x50715f)});await _0x2af040[_0x170f27(0x1bc)](addGridComponents,_0x588717,_0x16ac74,_0x1192c5,_0x26d8fb,_0x54be75,_0x50715f,_0x1de9f6,_0x2133af,_0x39def6,_0x291988),_0x52088f=_0x2af040[_0x170f27(0x241)],logger[_0x170f27(0x246)](_0x52088f);const _0x5c86f7={};_0x5c86f7[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x5c86f7[_0x170f27(0x27d)]=_0x52088f,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x5c86f7),_0x52088f=_0x2af040[_0x170f27(0x227)],logger['info'](_0x52088f);const _0x39c013={};_0x39c013[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x39c013[_0x170f27(0x27d)]=_0x52088f,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x39c013),await _0x2af040[_0x170f27(0x214)](waitForDeployment,_0x16ac74,_0x54be75,TURBOSCALE_DEPLOYMENT,0x1d4c0);const _0x24a348=await _0x2af040['XZLcd'](getNamespaceUID,_0x588717,_0x54be75),_0x106d62=global_registry[_0x170f27(0x250)]?_0x2af040[_0x170f27(0x181)]:_0x2af040['byskp'],_0x55cfcb={};_0x55cfcb[_0x170f27(0x2b5)]=_0x106d62,_0x55cfcb[_0x170f27(0x271)]=_0x2af040[_0x170f27(0x21d)];const _0x256801=await _0x588717[_0x170f27(0x25c)](_0x55cfcb);let _0x26a990=_0x51627e[_0x170f27(0x281)](_0x256801)+'/'+_0x54be75,_0x127b44=_0x2af040[_0x170f27(0x256)];try{const _0x5aaf06=_0x170f27(0x217)+AG_API_URL+_0x170f27(0x286)+_0x24a348,_0x20cea8=await _0x2af040[_0x170f27(0x1cb)](got,_0x5aaf06,_0x5cdc30);(_0x2af040['waRTA'](_0x20cea8,null)||_0x2af040[_0x170f27(0x259)](_0x20cea8,undefined))&&(_0x52088f=_0x2af040[_0x170f27(0x14a)],await _0x2af040[_0x170f27(0x24f)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040[_0x170f27(0x176)],_0x2af040[_0x170f27(0x1f5)],_0x2af040[_0x170f27(0x2b8)]),logger[_0x170f27(0x164)](_0x52088f),process[_0x170f27(0x1c8)](0x1));_0x2af040['SLTbW'](_0x20cea8[_0x170f27(0x2d5)],0x191)&&(_0x52088f=_0x2af040[_0x170f27(0x22a)],await _0x2af040[_0x170f27(0x239)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040['IIcUk'],_0x2af040[_0x170f27(0x258)],_0x2af040[_0x170f27(0x2b8)]),logger[_0x170f27(0x164)](_0x52088f),process['exit'](0x1));_0x2af040['EUFkX'](_0x20cea8[_0x170f27(0x2d5)],0xc8)&&(_0x52088f=_0x170f27(0x16f)+JSON[_0x170f27(0x12a)](_0x20cea8),await _0x2af040[_0x170f27(0x239)](reportToGalactusAndSendToEDS,_0x46df7a,_0x2c678f,_0x52088f,messageTypes[_0x170f27(0x157)],_0x2af040['IIcUk'],_0x2af040[_0x170f27(0x2ce)],_0x2af040['HUatN']),logger[_0x170f27(0x164)](_0x52088f),process[_0x170f27(0x1c8)](0x1));const _0x458caa=JSON['parse'](_0x20cea8[_0x170f27(0x161)]);_0x458caa[_0x170f27(0x275)]&&(_0x26a990=_0x458caa[_0x170f27(0x275)],_0x127b44=_0x2af040[_0x170f27(0x15d)]),global_registry[_0x170f27(0x250)]&&(_0x127b44=_0x2af040['IhPuY']);}catch(_0x3b5c26){}_0x52088f='Grid\x20can\x20be\x20accessed\x20at:\x20'+_0x26a990+'\x20',logger[_0x170f27(0x246)](_0x52088f);const _0x4aff0b={};_0x4aff0b[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x4aff0b[_0x170f27(0x27d)]=_0x52088f,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x4aff0b),_0x52088f=_0x170f27(0x1a0)+_0x127b44+_0x170f27(0x265)+_0x26a990+'/wd/hub',logger['info'](_0x52088f);const _0x14781c={};_0x14781c[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x14781c['message']=_0x52088f,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x14781c);const _0x389b03={};_0x389b03[_0x170f27(0x1e1)]=WS_EVENTS['CLI_RUN_FINISHED'],_0x389b03[_0x170f27(0x27d)]=_0x170f27(0x282)+_0x26a990,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x389b03),await webSocketUtils[_0x170f27(0x1cf)](0x7d0);}catch(_0x40e4c5){logger[_0x170f27(0x164)](_0x170f27(0x289)+_0x40e4c5+'\x20\x0a'+JSON['stringify'](_0x40e4c5[_0x170f27(0x231)]));if(_0x2af040[_0x170f27(0x203)](_0x5afe1c,![]))try{logger[_0x170f27(0x246)](_0x2af040[_0x170f27(0x141)]),await _0x2af040['yzwQX'](removeGridComponents,_0x588717,_0x16ac74,_0x1192c5,_0x26d8fb,_0x54be75),await _0x51627e[_0x170f27(0x1ee)](_0x588717,global_registry[_0x170f27(0x2a5)]);}catch(_0x50f1f7){logger[_0x170f27(0x164)](_0x170f27(0x23f)+_0x50f1f7+'\x20\x0a'+JSON[_0x170f27(0x12a)](_0x50f1f7[_0x170f27(0x231)]));}throw _0x40e4c5;}}catch(_0x717e81){const _0x4fdfe6='Unable\x20to\x20Spawn\x20the\x20Grid!\x20Error:\x20'+_0x717e81+'\x20\x0a'+JSON[_0x170f27(0x12a)](_0x717e81['stack']);if(_0x2c678f){const _0x3f9b98={};_0x3f9b98[_0x170f27(0x1e1)]=WS_EVENTS[_0x170f27(0x1e8)],_0x3f9b98[_0x170f27(0x27d)]=_0x4fdfe6,webSocketUtils[_0x170f27(0x216)](_0x2c678f,_0x3f9b98,_0x2af040[_0x170f27(0x2b8)],!![]);}await webSocketUtils[_0x170f27(0x1cf)](0x7d0);const _0x5cf80c={};_0x5cf80c['error']=_0x4fdfe6,await _0x2af040['isvmZ'](sendInstrumentationEvent,_0x46df7a,_0x2af040[_0x170f27(0x176)],messageTypes[_0x170f27(0x157)],_0x2af040[_0x170f27(0x1cc)],_0x5cf80c,_0x46df7a),logger[_0x170f27(0x164)](_0x4fdfe6);}process['exit'](0x0);};
@@ -1 +1 @@
1
- const a10_0x1335f2=a10_0x1358;function a10_0x1358(_0x2fff68,_0x276d96){const _0x54b237=a10_0x54b2();return a10_0x1358=function(_0x1358e3,_0x2c69a5){_0x1358e3=_0x1358e3-0x172;let _0x1187c5=_0x54b237[_0x1358e3];return _0x1187c5;},a10_0x1358(_0x2fff68,_0x276d96);}(function(_0x41a68d,_0x1acb6a){const _0x3ff60e=a10_0x1358,_0x2ed86b=_0x41a68d();while(!![]){try{const _0x52b781=parseInt(_0x3ff60e(0x172))/0x1*(parseInt(_0x3ff60e(0x177))/0x2)+-parseInt(_0x3ff60e(0x17b))/0x3+-parseInt(_0x3ff60e(0x189))/0x4+parseInt(_0x3ff60e(0x17c))/0x5*(parseInt(_0x3ff60e(0x176))/0x6)+-parseInt(_0x3ff60e(0x17a))/0x7*(-parseInt(_0x3ff60e(0x17d))/0x8)+-parseInt(_0x3ff60e(0x187))/0x9+parseInt(_0x3ff60e(0x185))/0xa;if(_0x52b781===_0x1acb6a)break;else _0x2ed86b['push'](_0x2ed86b['shift']());}catch(_0x18990a){_0x2ed86b['push'](_0x2ed86b['shift']());}}}(a10_0x54b2,0x85c3a));function a10_0x54b2(){const _0x402ceb=['866205wdcWLz','usage','1585612OGPFkw','24PvAsuW','demandCommand','builder','commandDir','1662YhbEgz','11952htCuGH','delete','recommendCommands','333095zbUDpN','111588WjpLQR','3790ENPtHf','8RbERyp','QlwSC','strict','desc','command','handler','yNvpJ','help','6767670enIrdE','../config/constants'];a10_0x54b2=function(){return _0x402ceb;};return a10_0x54b2();}const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x1335f2(0x186));exports[a10_0x1335f2(0x181)]=a10_0x1335f2(0x178),exports[a10_0x1335f2(0x180)]='List\x20Grid\x20resources.',exports[a10_0x1335f2(0x174)]=function(_0x19cd50){const _0x242b43=a10_0x1335f2,_0x3bb398={};_0x3bb398[_0x242b43(0x183)]='delete_commands',_0x3bb398[_0x242b43(0x17e)]=_0x242b43(0x184);const _0x333370=_0x3bb398;return _0x19cd50[_0x242b43(0x188)](HELP_HEADER_MESSAGE[_0x242b43(0x178)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x242b43(0x175)](_0x333370[_0x242b43(0x183)])[_0x242b43(0x173)]()[_0x242b43(0x179)]()[_0x242b43(0x17f)]()['help'](_0x333370['QlwSC']);},exports[a10_0x1335f2(0x182)]=function(_0x1239ac){};
1
+ function a10_0xa3a0(_0x6164c,_0x204140){const _0x3e6677=a10_0x3e66();return a10_0xa3a0=function(_0xa3a0a1,_0x1014ef){_0xa3a0a1=_0xa3a0a1-0x14d;let _0x187275=_0x3e6677[_0xa3a0a1];return _0x187275;},a10_0xa3a0(_0x6164c,_0x204140);}const a10_0x217263=a10_0xa3a0;(function(_0x36bba3,_0x29a78f){const _0x255151=a10_0xa3a0,_0x4f29d5=_0x36bba3();while(!![]){try{const _0x58c713=-parseInt(_0x255151(0x15a))/0x1*(parseInt(_0x255151(0x156))/0x2)+parseInt(_0x255151(0x163))/0x3+parseInt(_0x255151(0x153))/0x4*(parseInt(_0x255151(0x161))/0x5)+parseInt(_0x255151(0x15c))/0x6+-parseInt(_0x255151(0x14f))/0x7*(-parseInt(_0x255151(0x160))/0x8)+-parseInt(_0x255151(0x162))/0x9*(-parseInt(_0x255151(0x159))/0xa)+-parseInt(_0x255151(0x150))/0xb*(parseInt(_0x255151(0x155))/0xc);if(_0x58c713===_0x29a78f)break;else _0x4f29d5['push'](_0x4f29d5['shift']());}catch(_0x3a06ee){_0x4f29d5['push'](_0x4f29d5['shift']());}}}(a10_0x3e66,0x3af87));const {HELP_HEADER_MESSAGE,HELP_FOOTER_MESSAGE}=require(a10_0x217263(0x157));exports[a10_0x217263(0x158)]=a10_0x217263(0x14e),exports[a10_0x217263(0x15e)]='List\x20Grid\x20resources.',exports[a10_0x217263(0x15f)]=function(_0x48e851){const _0x202071=a10_0x217263,_0x6e0fff={};_0x6e0fff[_0x202071(0x151)]='delete_commands',_0x6e0fff[_0x202071(0x15b)]='help';const _0x485cb2=_0x6e0fff;return _0x48e851['usage'](HELP_HEADER_MESSAGE[_0x202071(0x14e)])['epilogue'](HELP_FOOTER_MESSAGE)[_0x202071(0x15d)](_0x485cb2[_0x202071(0x151)])[_0x202071(0x14d)]()[_0x202071(0x164)]()[_0x202071(0x154)]()[_0x202071(0x152)](_0x485cb2[_0x202071(0x15b)]);},exports['handler']=function(_0x1f591a){};function a10_0x3e66(){const _0x257fe0=['commandDir','desc','builder','8TRkqKW','500450ZPECLn','11637UXgbFR','445389YzrJAT','recommendCommands','demandCommand','delete','3191342RHKRyb','99ObXFdg','gYEyl','help','4ZbUbYj','strict','1013316elebgk','82xmKzdo','../config/constants','command','2020GmIifk','1094qjRQuu','cnmZY','484434atQbjd'];a10_0x3e66=function(){return _0x257fe0;};return a10_0x3e66();}