browserstack-node-sdk 1.55.3 → 1.55.4

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 (198) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  48. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  49. package/src/bin/cucumber-js/test-observability.js +1 -1
  50. package/src/bin/cucumber-js/test.setup.js +1 -1
  51. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  52. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  53. package/src/bin/integrations/command.js +1 -1
  54. package/src/bin/integrations/constants.js +1 -1
  55. package/src/bin/jest/command.js +1 -1
  56. package/src/bin/jest/customImplements/customCircus.js +1 -1
  57. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  58. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  59. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  60. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  61. package/src/bin/jest/jest.setup.js +1 -1
  62. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  63. package/src/bin/jest/test-observability/helper.js +1 -1
  64. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  65. package/src/bin/jest/test-observability/test-details.js +1 -1
  66. package/src/bin/jest/test.setup.js +1 -1
  67. package/src/bin/jest/test_before.setup.js +1 -1
  68. package/src/bin/launcher/launcher.js +1 -1
  69. package/src/bin/load/index.js +1 -1
  70. package/src/bin/load/loadUtils.js +1 -1
  71. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  72. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  73. package/src/bin/mocha/command.js +1 -1
  74. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  75. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  76. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  77. package/src/bin/mocha/test.setup.js +1 -1
  78. package/src/bin/newman/command.js +1 -1
  79. package/src/bin/newman/helper.js +1 -1
  80. package/src/bin/newman/reporter/index.js +1 -1
  81. package/src/bin/newman/scriptRunner.js +1 -1
  82. package/src/bin/nightwatch/command.js +1 -1
  83. package/src/bin/playwright/accessibility-helper.js +1 -1
  84. package/src/bin/playwright/command.js +1 -1
  85. package/src/bin/playwright/globalSetup.js +1 -1
  86. package/src/bin/playwright/mock-process.js +1 -1
  87. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  88. package/src/bin/playwright/patches.js +1 -1
  89. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  90. package/src/bin/playwright/reporter/reporter.js +1 -1
  91. package/src/bin/playwright/reporter/test-details.js +1 -1
  92. package/src/bin/playwright/sessionDetails.js +1 -1
  93. package/src/bin/puppeteer/patches.js +1 -1
  94. package/src/bin/puppeteer/sessionDetails.js +1 -1
  95. package/src/bin/puppeteer/test.setup.js +1 -1
  96. package/src/bin/runner.js +1 -1
  97. package/src/bin/setup.js +1 -1
  98. package/src/bin/test-runner/index.js +1 -1
  99. package/src/bin/test-runner/runTest.js +1 -1
  100. package/src/bin/test-runner/testWorker.js +1 -1
  101. package/src/bin/utils/apiUtilityMethods.js +1 -1
  102. package/src/bin/utils/clientTroubleshootingService.js +1 -1
  103. package/src/bin/utils/constants.js +1 -1
  104. package/src/bin/utils/log4jsAppender.js +1 -1
  105. package/src/bin/utils/logPatcher.js +1 -1
  106. package/src/bin/utils/logReportingAPI.js +1 -1
  107. package/src/bin/utils/playwright-patcher.js +1 -1
  108. package/src/bin/utils/puppeteer-patcher.js +1 -1
  109. package/src/bin/utils/sharedPlaywrightSessionDetails.js +1 -1
  110. package/src/bin/utils/sharedUtils.js +1 -1
  111. package/src/bin/v2/TestInfo.js +1 -1
  112. package/src/bin/v2/browserstackCLI.js +1 -1
  113. package/src/bin/v2/cliUtils.js +1 -1
  114. package/src/bin/v2/customTagManager.js +1 -1
  115. package/src/bin/v2/eventDispatcher.js +1 -1
  116. package/src/bin/v2/framework/automationFramework.js +1 -1
  117. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  118. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  119. package/src/bin/v2/framework/cucumberTestFramework.js +1 -1
  120. package/src/bin/v2/framework/jestTestFramework.js +1 -1
  121. package/src/bin/v2/framework/newmanTestFramework.js +1 -1
  122. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  123. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  124. package/src/bin/v2/framework/puppeteerAutomationFramework.js +1 -1
  125. package/src/bin/v2/framework/testFramework.js +1 -1
  126. package/src/bin/v2/grpcClient.js +1 -1
  127. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  128. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  129. package/src/bin/v2/instances/trackedContext.js +1 -1
  130. package/src/bin/v2/instances/trackedInstance.js +1 -1
  131. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  132. package/src/bin/v2/modules/baseModule.js +1 -1
  133. package/src/bin/v2/modules/loadTestModule.js +1 -1
  134. package/src/bin/v2/modules/observabilityModule.js +1 -1
  135. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  136. package/src/bin/v2/modules/puppeteerDriverModule.js +1 -1
  137. package/src/bin/v2/modules/testhubModule.js +1 -1
  138. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  139. package/src/bin/v2/state/hookState.js +1 -1
  140. package/src/bin/v2/state/testFrameworkState.js +1 -1
  141. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  142. package/src/bin/v2/utils/cucumber-utils.js +1 -1
  143. package/src/bin/v2/utils/jest-utils.js +1 -1
  144. package/src/bin/vanilla-js/command.js +1 -1
  145. package/src/browserStackSdk.js +1 -1
  146. package/src/helpers/BrowserStackSetup.js +1 -1
  147. package/src/helpers/accessibility-automation/accessibilityRetryHelper.js +1 -1
  148. package/src/helpers/accessibility-automation/constants.js +1 -1
  149. package/src/helpers/accessibility-automation/helper.js +1 -1
  150. package/src/helpers/accessibility-automation/scripts.js +1 -1
  151. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  152. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  153. package/src/helpers/ats/constants.js +1 -1
  154. package/src/helpers/ats/helper.js +1 -1
  155. package/src/helpers/capsMapping.js +1 -1
  156. package/src/helpers/central-scanner/constants.js +1 -1
  157. package/src/helpers/central-scanner/helpers.js +1 -1
  158. package/src/helpers/classLogger.js +1 -1
  159. package/src/helpers/globals.js +1 -1
  160. package/src/helpers/helper.js +1 -1
  161. package/src/helpers/logger.js +1 -1
  162. package/src/helpers/metadata.js +1 -1
  163. package/src/helpers/patchHelper.js +1 -1
  164. package/src/helpers/patchHelpers.js +1 -1
  165. package/src/helpers/percy/Percy.js +1 -1
  166. package/src/helpers/percy/PercyBinary.js +1 -1
  167. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  168. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  169. package/src/helpers/percy/PercySDK.js +1 -1
  170. package/src/helpers/percy/index.js +1 -1
  171. package/src/helpers/percy/utils.js +1 -1
  172. package/src/helpers/performance/constants.js +1 -1
  173. package/src/helpers/performance/performance-tester.js +1 -1
  174. package/src/helpers/playwright-helper.js +1 -1
  175. package/src/helpers/processHelper.js +1 -1
  176. package/src/helpers/puppeteer-helper.js +1 -1
  177. package/src/helpers/request-spy.js +1 -1
  178. package/src/helpers/setKeepAlive.js +1 -1
  179. package/src/helpers/test-observability/constants.js +1 -1
  180. package/src/helpers/test-observability/error-handler.js +1 -1
  181. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  182. package/src/helpers/test-observability/sessionHandler.js +1 -1
  183. package/src/helpers/test-observability/utils.js +1 -1
  184. package/src/helpers/test-orchestration/constants.js +1 -1
  185. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  186. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  187. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  188. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  189. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  190. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  191. package/src/helpers/testhub/constants.js +1 -1
  192. package/src/helpers/testhub/testhubHandler.js +1 -1
  193. package/src/helpers/testhub/utils.js +1 -1
  194. package/src/helpers/timeoutPromise.js +1 -1
  195. package/src/helpers/utilities.js +1 -1
  196. package/src/helpers/w3cMapping.js +1 -1
  197. package/src/hubAllocationMethods.js +1 -1
  198. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a53_0x5a2787=a53_0x2e5a;(function(_0x37179b,_0x46a599){const _0x50f3db=a53_0x2e5a,_0x518286=_0x37179b();while(!![]){try{const _0x3e4e05=-parseInt(_0x50f3db(0x1f9))/0x1+-parseInt(_0x50f3db(0x205))/0x2+parseInt(_0x50f3db(0x213))/0x3*(-parseInt(_0x50f3db(0x1ff))/0x4)+parseInt(_0x50f3db(0x1e5))/0x5+parseInt(_0x50f3db(0x201))/0x6*(-parseInt(_0x50f3db(0x217))/0x7)+parseInt(_0x50f3db(0x22d))/0x8+-parseInt(_0x50f3db(0x212))/0x9*(-parseInt(_0x50f3db(0x226))/0xa);if(_0x3e4e05===_0x46a599)break;else _0x518286['push'](_0x518286['shift']());}catch(_0x13abc4){_0x518286['push'](_0x518286['shift']());}}}(a53_0x583b,0xe7f67));const path=require(a53_0x5a2787(0x22a)),url=require('url'),util=require(a53_0x5a2787(0x1f7)),{nestedKeyValue,isFalse}=require(a53_0x5a2787(0x1ea)),{debug,getPlatformDetails}=require(a53_0x5a2787(0x202)),logger=require(a53_0x5a2787(0x22c))[a53_0x5a2787(0x214)],constants=require(a53_0x5a2787(0x20c)),BrowserstackCLI=require(a53_0x5a2787(0x1e3)),AutomationFrameworkState=require(a53_0x5a2787(0x1e4)),HookState=require(a53_0x5a2787(0x238)),getBrowserFromWSEndpoint=_0x52c952=>{const _0x3a1464=a53_0x5a2787,_0xdd3291={'tGUqx':_0x3a1464(0x231),'XDlcc':function(_0x790782,_0x1b1da9){return _0x790782(_0x1b1da9);}};try{const _0x54617d=url[_0x3a1464(0x1ed)](_0x52c952),_0x5da3cd=new URLSearchParams(_0x54617d['query']),_0x47e661=Object[_0x3a1464(0x21e)](_0x5da3cd[_0x3a1464(0x206)]()),_0x46d861=JSON[_0x3a1464(0x1ed)](_0x47e661[_0x3a1464(0x1f5)]);if(_0x46d861&&(_0x46d861[_0x3a1464(0x20d)]||_0x46d861['browserName']))return _0x46d861[_0x3a1464(0x20d)]||_0x46d861[_0x3a1464(0x1e7)];return _0xdd3291[_0x3a1464(0x1ef)];}catch(_0x3a3894){_0xdd3291[_0x3a1464(0x207)](debug,_0x3a1464(0x1ec)+_0x3a3894[_0x3a1464(0x22f)]());}},getCloudProviderFromWsEndpoint=_0x487a7b=>{const _0x2fbdac=a53_0x5a2787,_0x368bc7={};_0x368bc7[_0x2fbdac(0x237)]=_0x2fbdac(0x210),_0x368bc7['AbYZu']='unknown_grid';const _0xc2fd16=_0x368bc7;if(_0x487a7b[_0x2fbdac(0x21c)](constants[_0x2fbdac(0x1f0)])||_0x487a7b[_0x2fbdac(0x21c)](constants[_0x2fbdac(0x227)]))return _0xc2fd16[_0x2fbdac(0x237)];return _0xc2fd16[_0x2fbdac(0x22e)];},a53_0x9c0b19={};function a53_0x583b(){const _0x43935e=['message','xsmeD','ATS_WSS_URL_REGEX','_bstackPatched','ECQsQ','1758590bvaYwl','BSTACK_ATS_URL','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','path','cloudProvider','../../helpers/logger','12920808OzPikM','AbYZu','toString','zwFDI','chrome','browser_version','patchConnection','format','local_grid','automate','agyVB','../v2/state/hookState.js','product','result','oOvzv','OQUTC','getInstance','apply','sQFfI','connection','Invalid\x20constructor,\x20please\x20use\x20static\x20methods','../v2/browserstackCLI','../v2/state/automationFrameworkState.js','5509200uusXJU','Error\x20in\x20patchConnection:\x20','browserName','onmessage','POST','../../helpers/helper','function','Error\x20in\x20getting\x20browser\x20from\x20caps:\x20','parse','Setting\x20session\x20id\x20received\x20from\x20BS\x20','tGUqx','BSTACK_URL','capabilities','Hsnpx','bsParams','setupBrowserDetails','caps','JggMY','util','HVZlb','417292dsQnHN','XRXuL','trackEvent','platformVersion','params','version','2500ccrRFe','currentSessionDetails','6bRkeVZ','../../helpers/test-observability/utils','sessionError','platformDetails','436394gEadgY','entries','XDlcc','PLAYWRIGHT_DISPATCH','platform_version','getDetails','DJLcP','../utils/constants','browser','platformName','KDbOe','browserstack','stringify','63xboZqe','6285Npsvtq','winstonLogger','assign','bStackParams','7370797juEipm','platform','test','sessionId','turboscale','includes','JNKic','fromEntries','ArCky','bsSessionId'];a53_0x583b=function(){return _0x43935e;};return a53_0x583b();}function a53_0x2e5a(_0xe9b962,_0x3de6b8){const _0x583b9e=a53_0x583b();return a53_0x2e5a=function(_0x2e5af1,_0xff9046){_0x2e5af1=_0x2e5af1-0x1da;let _0x36f187=_0x583b9e[_0x2e5af1];return _0x36f187;},a53_0x2e5a(_0xe9b962,_0x3de6b8);}a53_0x9c0b19['cloudProvider']=undefined,a53_0x9c0b19['bsSessionId']=undefined,a53_0x9c0b19[a53_0x5a2787(0x20d)]=undefined,a53_0x9c0b19[a53_0x5a2787(0x232)]=undefined,a53_0x9c0b19[a53_0x5a2787(0x218)]=undefined,a53_0x9c0b19[a53_0x5a2787(0x209)]=undefined,a53_0x9c0b19[a53_0x5a2787(0x1da)]=undefined,a53_0x9c0b19[a53_0x5a2787(0x1f1)]={};class PuppeteerSessionDetails{static [a53_0x5a2787(0x200)]=a53_0x9c0b19;constructor(){const _0x4ff144=a53_0x5a2787,_0x36f7e4={};_0x36f7e4[_0x4ff144(0x20f)]=_0x4ff144(0x1e2);const _0x275d28=_0x36f7e4;throw new Error(_0x275d28[_0x4ff144(0x20f)]);}static [a53_0x5a2787(0x203)]=null;static async[a53_0x5a2787(0x1f4)](_0xe3794a,_0x2c1cd2){const _0x5448f7=a53_0x5a2787,_0x263e8d={'HVZlb':_0x5448f7(0x231),'TsDLH':function(_0x51753f,_0x342d65){return _0x51753f===_0x342d65;},'ioufK':_0x5448f7(0x1eb),'XRXuL':_0x5448f7(0x235),'DJLcP':function(_0x3cf227,_0x4b233b){return _0x3cf227(_0x4b233b);},'zwFDI':function(_0x44f853,_0xc59342){return _0x44f853===_0xc59342;},'ArCky':_0x5448f7(0x210),'MMagV':_0x5448f7(0x21b),'JNKic':_0x5448f7(0x236),'efGxI':function(_0x133a53,_0x51b09f){return _0x133a53(_0x51b09f);},'OQUTC':function(_0x5f19aa){return _0x5f19aa();},'JggMY':function(_0x1085cb){return _0x1085cb();}};try{let _0x280c2a=_0x263e8d[_0x5448f7(0x1f8)],_0x2c8b26=null;_0xe3794a&&_0x263e8d['TsDLH'](typeof _0xe3794a[_0x5448f7(0x1fe)],_0x263e8d['ioufK'])&&(_0x2c8b26=await _0xe3794a[_0x5448f7(0x1fe)]());let _0x1b8dcd=null,_0x34b869=null,_0x1dbc3e=null,_0x115a9e=_0x263e8d[_0x5448f7(0x1fa)];if(_0x2c1cd2){_0x115a9e=_0x263e8d[_0x5448f7(0x20b)](getCloudProviderFromWsEndpoint,_0x2c1cd2);if(_0x263e8d[_0x5448f7(0x230)](_0x115a9e,_0x263e8d[_0x5448f7(0x21f)]))_0x1dbc3e=constants[_0x5448f7(0x223)]?constants[_0x5448f7(0x223)][_0x5448f7(0x219)](_0x2c1cd2)?_0x263e8d['MMagV']:_0x263e8d[_0x5448f7(0x21d)]:_0x263e8d[_0x5448f7(0x21d)],_0x280c2a=_0x263e8d['efGxI'](getBrowserFromWSEndpoint,_0x2c1cd2)||_0x280c2a,_0x1b8dcd=this['currentSessionDetails'][_0x5448f7(0x218)],_0x34b869=this[_0x5448f7(0x200)][_0x5448f7(0x209)];else{const _0x3b2f93=await _0x263e8d[_0x5448f7(0x1dd)](getPlatformDetails);_0x1b8dcd=_0x3b2f93[_0x5448f7(0x20e)],_0x34b869=_0x3b2f93[_0x5448f7(0x1fc)];}}else{const _0x525156=await _0x263e8d[_0x5448f7(0x1f6)](getPlatformDetails);_0x1b8dcd=_0x525156[_0x5448f7(0x20e)],_0x34b869=_0x525156['platformVersion'];}const _0x5a4346={};_0x5a4346[_0x5448f7(0x20d)]=_0x280c2a,_0x5a4346[_0x5448f7(0x232)]=_0x2c8b26,_0x5a4346[_0x5448f7(0x1f1)]={},_0x5a4346['platform']=_0x1b8dcd,_0x5a4346[_0x5448f7(0x209)]=_0x34b869,_0x5a4346[_0x5448f7(0x1da)]=_0x1dbc3e;const _0x17406a=_0x5a4346,_0x1cf0af={};_0x1cf0af[_0x5448f7(0x22b)]=_0x115a9e,this[_0x5448f7(0x200)]=Object[_0x5448f7(0x215)]({},this[_0x5448f7(0x200)],_0x1cf0af,_0x17406a);}catch(_0xafdc15){_0x263e8d['efGxI'](debug,'Error\x20in\x20setupBrowserDetails:\x20'+util['format'](_0xafdc15)),this[_0x5448f7(0x203)]=_0xafdc15[_0x5448f7(0x22f)]();}}static[a53_0x5a2787(0x233)](_0x32cfe8){const _0x1eb59c=a53_0x5a2787,_0x1eb451={'Hsnpx':function(_0xdbc4af,_0x24ee01){return _0xdbc4af===_0x24ee01;},'xsmeD':'string','sQFfI':function(_0x56520a,_0x3e9a2c){return _0x56520a(_0x3e9a2c);},'ECQsQ':function(_0x1a8fd2,_0x15ee96){return _0x1a8fd2===_0x15ee96;},'LitCx':_0x1eb59c(0x228),'oOvzv':function(_0x4849bf,_0x10028a){return _0x4849bf(_0x10028a);}},_0x18bc81=this;try{const _0x16ae76=_0x32cfe8['_connection']||_0x32cfe8[_0x1eb59c(0x1e1)];if(!_0x16ae76||_0x16ae76[_0x1eb59c(0x224)])return;const _0x5b3ec0=_0x16ae76[_0x1eb59c(0x1e8)];_0x16ae76[_0x1eb59c(0x1e8)]=function(_0xee2048){const _0x2521bb=_0x1eb59c;try{const _0x1c3bc4=_0x1eb451[_0x2521bb(0x1f2)](typeof _0xee2048,_0x1eb451[_0x2521bb(0x222)])?JSON[_0x2521bb(0x1ed)](_0xee2048):_0xee2048,_0x4d240f=_0x1c3bc4?.[_0x2521bb(0x216)]||_0x1c3bc4?.[_0x2521bb(0x1f3)]||_0x1c3bc4?.['params']?.[_0x2521bb(0x1f3)]||_0x1c3bc4?.[_0x2521bb(0x1fd)]?.[_0x2521bb(0x216)]||_0x1c3bc4?.[_0x2521bb(0x1db)]?.[_0x2521bb(0x1f3)]||_0x1c3bc4?.[_0x2521bb(0x1db)]?.[_0x2521bb(0x216)];if(_0x4d240f){if(BrowserstackCLI[_0x2521bb(0x1de)]()['isRunning']()){const _0x3746a4={};_0x3746a4[_0x2521bb(0x221)]=_0x1c3bc4,BrowserstackCLI[_0x2521bb(0x1de)]()['getAutomationFramework']()[_0x2521bb(0x1fb)](AutomationFrameworkState[_0x2521bb(0x208)],HookState[_0x2521bb(0x1e9)],_0x3746a4);}else{const _0x3079af=_0x4d240f[_0x2521bb(0x21a)],_0xbf4040=_0x4d240f[_0x2521bb(0x204)];_0xbf4040&&(_0x1eb451[_0x2521bb(0x1e0)](debug,_0x2521bb(0x229)+JSON[_0x2521bb(0x211)](_0xbf4040)),_0x18bc81['currentSessionDetails'][_0x2521bb(0x218)]=_0xbf4040['platformName'],_0x18bc81[_0x2521bb(0x200)]['platform_version']=_0xbf4040[_0x2521bb(0x1fc)]),_0x3079af&&(_0x1eb451[_0x2521bb(0x1e0)](debug,_0x2521bb(0x1ee)+_0x3079af),_0x18bc81[_0x2521bb(0x200)][_0x2521bb(0x220)]=_0x3079af);}_0x1eb451[_0x2521bb(0x225)](typeof _0xee2048,_0x1eb451[_0x2521bb(0x222)])&&(delete _0x1c3bc4['bStackParams'],delete _0x1c3bc4[_0x2521bb(0x1f3)],_0x1c3bc4[_0x2521bb(0x1fd)]&&(delete _0x1c3bc4[_0x2521bb(0x1fd)][_0x2521bb(0x1f3)],delete _0x1c3bc4['params']['bStackParams']),_0x1c3bc4[_0x2521bb(0x1db)]&&(delete _0x1c3bc4[_0x2521bb(0x1db)][_0x2521bb(0x1f3)],delete _0x1c3bc4[_0x2521bb(0x1db)][_0x2521bb(0x216)]));}}catch(_0x4204ff){_0x1eb451['sQFfI'](debug,'Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20'+_0x4204ff[_0x2521bb(0x221)]);}return _0x5b3ec0?.[_0x2521bb(0x1df)](this,arguments);},_0x16ae76[_0x1eb59c(0x224)]=!![],logger['debug'](_0x1eb451['LitCx']);}catch(_0x47d04f){_0x1eb451[_0x1eb59c(0x1dc)](debug,_0x1eb59c(0x1e6)+util[_0x1eb59c(0x234)](_0x47d04f)),_0x18bc81['sessionError']=_0x47d04f[_0x1eb59c(0x22f)]();}}static[a53_0x5a2787(0x20a)](){const _0x22111c=a53_0x5a2787;return this[_0x22111c(0x200)];}}module['exports']=PuppeteerSessionDetails;
1
+ function a53_0x4a2c(){const _0x29c01e=['currentSessionDetails','[PuppeteerSessionDetails]\x20Connection\x20patched\x20for\x20session\x20capture','query','browserstack','../v2/state/hookState.js','unknown_grid','543624PCqzoo','toString','exports','1240420lvggRT','setupBrowserDetails','714EYeXnq','function','cloudProvider','fromEntries','dorty','_bstackPatched','../v2/browserstackCLI','../v2/state/automationFrameworkState.js','Setting\x20platform\x20details\x20received\x20from\x20BS:\x20','vXKap','includes','1203oEcgHo','nDMro','Error\x20in\x20setupBrowserDetails:\x20','fKDjO','result','../../helpers/logger','stringify','_connection','Hkmzq','lZljP','parse','QCFAI','test','platformName','5974032imGTSO','util','connection','IJgZk','patchConnection','QNDpn','isRunning','version','getDetails','message','winstonLogger','params','path','POST','string','apply','platform','platformVersion','browser','sessionError','../utils/constants','lalHY','mvWiN','../../helpers/test-observability/utils','product','onmessage','debug','bsSessionId','SNFDn','bStackParams','caps','BSTACK_URL','platform_version','ORcsm','PLAYWRIGHT_DISPATCH','chrome','tvzgW','1248149pWvVjW','bsParams','Error\x20extracting\x20bsParams\x20from\x20CDP\x20message:\x20','ATS_WSS_URL_REGEX','CRflF','getAutomationFramework','format','1034456vvJoRf','browser_version','175998xkZnXT','getInstance','trackEvent','DeblU','browserName','capabilities'];a53_0x4a2c=function(){return _0x29c01e;};return a53_0x4a2c();}const a53_0x2f79bb=a53_0x1cd5;(function(_0x6abe53,_0x25740a){const _0x12d584=a53_0x1cd5,_0x59a49c=_0x6abe53();while(!![]){try{const _0x205101=-parseInt(_0x12d584(0x74))/0x1+parseInt(_0x12d584(0x85))/0x2*(-parseInt(_0x12d584(0x90))/0x3)+-parseInt(_0x12d584(0x72))/0x4+-parseInt(_0x12d584(0x83))/0x5+parseInt(_0x12d584(0x80))/0x6+parseInt(_0x12d584(0xc3))/0x7+parseInt(_0x12d584(0x9e))/0x8;if(_0x205101===_0x25740a)break;else _0x59a49c['push'](_0x59a49c['shift']());}catch(_0x368781){_0x59a49c['push'](_0x59a49c['shift']());}}}(a53_0x4a2c,0x2e574));const path=require(a53_0x2f79bb(0xaa)),url=require('url'),util=require(a53_0x2f79bb(0x9f)),{nestedKeyValue,isFalse}=require('../../helpers/helper'),{debug,getPlatformDetails}=require(a53_0x2f79bb(0xb5)),logger=require(a53_0x2f79bb(0x95))[a53_0x2f79bb(0xa8)],constants=require(a53_0x2f79bb(0xb2)),BrowserstackCLI=require(a53_0x2f79bb(0x8b)),AutomationFrameworkState=require(a53_0x2f79bb(0x8c)),HookState=require(a53_0x2f79bb(0x7e)),getBrowserFromWSEndpoint=_0x30a803=>{const _0x340e7c=a53_0x2f79bb,_0x268404={'DeblU':_0x340e7c(0xc1),'vXKap':function(_0x256059,_0x40bf27){return _0x256059(_0x40bf27);}};try{const _0x3de785=url[_0x340e7c(0x9a)](_0x30a803),_0x4155ee=new URLSearchParams(_0x3de785[_0x340e7c(0x7c)]),_0x3cc1c6=Object[_0x340e7c(0x88)](_0x4155ee['entries']()),_0x5de23c=JSON['parse'](_0x3cc1c6[_0x340e7c(0xbc)]);if(_0x5de23c&&(_0x5de23c[_0x340e7c(0xb0)]||_0x5de23c[_0x340e7c(0x78)]))return _0x5de23c[_0x340e7c(0xb0)]||_0x5de23c['browserName'];return _0x268404[_0x340e7c(0x77)];}catch(_0x109a5e){_0x268404[_0x340e7c(0x8e)](debug,'Error\x20in\x20getting\x20browser\x20from\x20caps:\x20'+_0x109a5e[_0x340e7c(0x81)]());}},getCloudProviderFromWsEndpoint=_0x2f3074=>{const _0x1e6978=a53_0x2f79bb,_0x276db1={};_0x276db1[_0x1e6978(0xba)]=_0x1e6978(0x7d),_0x276db1[_0x1e6978(0xa3)]=_0x1e6978(0x7f);const _0x1203d2=_0x276db1;if(_0x2f3074['includes'](constants[_0x1e6978(0xbd)])||_0x2f3074[_0x1e6978(0x8f)](constants['BSTACK_ATS_URL']))return _0x1203d2[_0x1e6978(0xba)];return _0x1203d2[_0x1e6978(0xa3)];},a53_0x2be0d0={};function a53_0x1cd5(_0x25f469,_0x14138e){const _0x4a2cdf=a53_0x4a2c();return a53_0x1cd5=function(_0x1cd527,_0x5666bf){_0x1cd527=_0x1cd527-0x71;let _0x55f276=_0x4a2cdf[_0x1cd527];return _0x55f276;},a53_0x1cd5(_0x25f469,_0x14138e);}a53_0x2be0d0[a53_0x2f79bb(0x87)]=undefined,a53_0x2be0d0[a53_0x2f79bb(0xb9)]=undefined,a53_0x2be0d0[a53_0x2f79bb(0xb0)]=undefined,a53_0x2be0d0[a53_0x2f79bb(0x73)]=undefined,a53_0x2be0d0[a53_0x2f79bb(0xae)]=undefined,a53_0x2be0d0['platform_version']=undefined,a53_0x2be0d0[a53_0x2f79bb(0xb6)]=undefined,a53_0x2be0d0['capabilities']={};class PuppeteerSessionDetails{static [a53_0x2f79bb(0x7a)]=a53_0x2be0d0;constructor(){const _0x529e1d={};_0x529e1d['yspmY']='Invalid\x20constructor,\x20please\x20use\x20static\x20methods';const _0x1985cb=_0x529e1d;throw new Error(_0x1985cb['yspmY']);}static [a53_0x2f79bb(0xb1)]=null;static async[a53_0x2f79bb(0x84)](_0x44c8c6,_0x4933a8){const _0x455da6=a53_0x2f79bb,_0x222cb1={'QCFAI':'chrome','ORcsm':function(_0xef4853,_0x39957a){return _0xef4853===_0x39957a;},'fKDjO':_0x455da6(0x86),'dorty':'local_grid','nDMro':function(_0x3ed716,_0xd194b3){return _0x3ed716(_0xd194b3);},'IiEBO':'browserstack','RZjGF':'turboscale','tvzgW':'automate','lZljP':function(_0x26f074,_0x4027fb){return _0x26f074(_0x4027fb);},'IJgZk':function(_0x4eea5f){return _0x4eea5f();}};try{let _0x537695=_0x222cb1[_0x455da6(0x9b)],_0x366617=null;_0x44c8c6&&_0x222cb1[_0x455da6(0xbf)](typeof _0x44c8c6[_0x455da6(0xa5)],_0x222cb1[_0x455da6(0x93)])&&(_0x366617=await _0x44c8c6[_0x455da6(0xa5)]());let _0x19da1c=null,_0x57a5ae=null,_0x19e274=null,_0x5a0332=_0x222cb1[_0x455da6(0x89)];if(_0x4933a8){_0x5a0332=_0x222cb1[_0x455da6(0x91)](getCloudProviderFromWsEndpoint,_0x4933a8);if(_0x222cb1[_0x455da6(0xbf)](_0x5a0332,_0x222cb1['IiEBO']))_0x19e274=constants['ATS_WSS_URL_REGEX']?constants[_0x455da6(0xc6)][_0x455da6(0x9c)](_0x4933a8)?_0x222cb1['RZjGF']:_0x222cb1[_0x455da6(0xc2)]:_0x222cb1[_0x455da6(0xc2)],_0x537695=_0x222cb1[_0x455da6(0x99)](getBrowserFromWSEndpoint,_0x4933a8)||_0x537695,_0x19da1c=this[_0x455da6(0x7a)][_0x455da6(0xae)],_0x57a5ae=this['currentSessionDetails']['platform_version'];else{const _0x1f1b13=await _0x222cb1['IJgZk'](getPlatformDetails);_0x19da1c=_0x1f1b13['platformName'],_0x57a5ae=_0x1f1b13[_0x455da6(0xaf)];}}else{const _0x1f046e=await _0x222cb1[_0x455da6(0xa1)](getPlatformDetails);_0x19da1c=_0x1f046e[_0x455da6(0x9d)],_0x57a5ae=_0x1f046e[_0x455da6(0xaf)];}const _0x5002fd={};_0x5002fd[_0x455da6(0xb0)]=_0x537695,_0x5002fd['browser_version']=_0x366617,_0x5002fd[_0x455da6(0x79)]={},_0x5002fd['platform']=_0x19da1c,_0x5002fd[_0x455da6(0xbe)]=_0x57a5ae,_0x5002fd[_0x455da6(0xb6)]=_0x19e274;const _0x9e8e4f=_0x5002fd,_0xb4a754={};_0xb4a754['cloudProvider']=_0x5a0332,this['currentSessionDetails']=Object['assign']({},this[_0x455da6(0x7a)],_0xb4a754,_0x9e8e4f);}catch(_0x9c5d7b){_0x222cb1['lZljP'](debug,_0x455da6(0x92)+util[_0x455da6(0x71)](_0x9c5d7b)),this['sessionError']=_0x9c5d7b['toString']();}}static[a53_0x2f79bb(0xa2)](_0x495cbf){const _0x481d31=a53_0x2f79bb,_0x2a2755={'CRflF':function(_0x53789e,_0x546cb0){return _0x53789e===_0x546cb0;},'lalHY':_0x481d31(0xac),'mvWiN':function(_0x48e796,_0x39517a){return _0x48e796(_0x39517a);},'nDvpW':_0x481d31(0x7b),'Hkmzq':function(_0x108904,_0x25d46e){return _0x108904(_0x25d46e);}},_0x1d1939=this;try{const _0x345f94=_0x495cbf[_0x481d31(0x97)]||_0x495cbf[_0x481d31(0xa0)];if(!_0x345f94||_0x345f94[_0x481d31(0x8a)])return;const _0x67dbb8=_0x345f94['onmessage'];_0x345f94[_0x481d31(0xb7)]=function(_0x2afde9){const _0x4ec227=_0x481d31;try{const _0x4ade37=_0x2a2755[_0x4ec227(0xc7)](typeof _0x2afde9,_0x2a2755[_0x4ec227(0xb3)])?JSON[_0x4ec227(0x9a)](_0x2afde9):_0x2afde9,_0x3a7be5=_0x4ade37?.['bStackParams']||_0x4ade37?.['bsParams']||_0x4ade37?.[_0x4ec227(0xa9)]?.['bsParams']||_0x4ade37?.[_0x4ec227(0xa9)]?.[_0x4ec227(0xbb)]||_0x4ade37?.[_0x4ec227(0x94)]?.[_0x4ec227(0xc4)]||_0x4ade37?.[_0x4ec227(0x94)]?.[_0x4ec227(0xbb)];if(_0x3a7be5){if(BrowserstackCLI[_0x4ec227(0x75)]()[_0x4ec227(0xa4)]()){const _0x555621={};_0x555621['message']=_0x4ade37,BrowserstackCLI['getInstance']()[_0x4ec227(0xc8)]()[_0x4ec227(0x76)](AutomationFrameworkState[_0x4ec227(0xc0)],HookState[_0x4ec227(0xab)],_0x555621);}else{const _0x239aa4=_0x3a7be5['sessionId'],_0x3c57a3=_0x3a7be5['platformDetails'];_0x3c57a3&&(_0x2a2755[_0x4ec227(0xb4)](debug,_0x4ec227(0x8d)+JSON[_0x4ec227(0x96)](_0x3c57a3)),_0x1d1939['currentSessionDetails'][_0x4ec227(0xae)]=_0x3c57a3[_0x4ec227(0x9d)],_0x1d1939['currentSessionDetails'][_0x4ec227(0xbe)]=_0x3c57a3['platformVersion']),_0x239aa4&&(_0x2a2755[_0x4ec227(0xb4)](debug,'Setting\x20session\x20id\x20received\x20from\x20BS\x20'+_0x239aa4),_0x1d1939[_0x4ec227(0x7a)]['bsSessionId']=_0x239aa4);}_0x2a2755[_0x4ec227(0xc7)](typeof _0x2afde9,_0x2a2755['lalHY'])&&(delete _0x4ade37['bStackParams'],delete _0x4ade37[_0x4ec227(0xc4)],_0x4ade37[_0x4ec227(0xa9)]&&(delete _0x4ade37[_0x4ec227(0xa9)][_0x4ec227(0xc4)],delete _0x4ade37[_0x4ec227(0xa9)]['bStackParams']),_0x4ade37[_0x4ec227(0x94)]&&(delete _0x4ade37[_0x4ec227(0x94)][_0x4ec227(0xc4)],delete _0x4ade37[_0x4ec227(0x94)][_0x4ec227(0xbb)]));}}catch(_0x2227e1){_0x2a2755['mvWiN'](debug,_0x4ec227(0xc5)+_0x2227e1[_0x4ec227(0xa7)]);}return _0x67dbb8?.[_0x4ec227(0xad)](this,arguments);},_0x345f94[_0x481d31(0x8a)]=!![],logger[_0x481d31(0xb8)](_0x2a2755['nDvpW']);}catch(_0x1a3709){_0x2a2755[_0x481d31(0x98)](debug,'Error\x20in\x20patchConnection:\x20'+util[_0x481d31(0x71)](_0x1a3709)),_0x1d1939[_0x481d31(0xb1)]=_0x1a3709[_0x481d31(0x81)]();}}static[a53_0x2f79bb(0xa6)](){const _0x1b043e=a53_0x2f79bb;return this[_0x1b043e(0x7a)];}}module[a53_0x2f79bb(0x82)]=PuppeteerSessionDetails;
@@ -1 +1 @@
1
- const a54_0xcfe549=a54_0x3002;function a54_0x3002(_0x691b6,_0x4ebb06){const _0x54277d=a54_0x5427();return a54_0x3002=function(_0x30022d,_0x51ea8f){_0x30022d=_0x30022d-0x146;let _0x4cb176=_0x54277d[_0x30022d];return _0x4cb176;},a54_0x3002(_0x691b6,_0x4ebb06);}(function(_0x1c29e0,_0x65b452){const _0x3cdb9a=a54_0x3002,_0x23492b=_0x1c29e0();while(!![]){try{const _0x57b1fb=parseInt(_0x3cdb9a(0x176))/0x1+-parseInt(_0x3cdb9a(0x149))/0x2*(parseInt(_0x3cdb9a(0x155))/0x3)+-parseInt(_0x3cdb9a(0x147))/0x4*(parseInt(_0x3cdb9a(0x151))/0x5)+parseInt(_0x3cdb9a(0x163))/0x6*(parseInt(_0x3cdb9a(0x168))/0x7)+-parseInt(_0x3cdb9a(0x157))/0x8+parseInt(_0x3cdb9a(0x173))/0x9*(parseInt(_0x3cdb9a(0x148))/0xa)+parseInt(_0x3cdb9a(0x165))/0xb*(parseInt(_0x3cdb9a(0x14f))/0xc);if(_0x57b1fb===_0x65b452)break;else _0x23492b['push'](_0x23492b['shift']());}catch(_0x13b79d){_0x23492b['push'](_0x23492b['shift']());}}}(a54_0x5427,0xab230));const {isTrue,isBrowserstackInfra}=require(a54_0xcfe549(0x146)),setKeepAlive=require(a54_0xcfe549(0x16f)),util=require(a54_0xcfe549(0x174)),logger=require(a54_0xcfe549(0x14b))[a54_0xcfe549(0x170)],{shouldProcessEventForTesthub}=require(a54_0xcfe549(0x162)),{addRequestSpy}=require(a54_0xcfe549(0x156)),a54_0xc23d96={};a54_0xc23d96[a54_0xcfe549(0x15c)]=undefined,a54_0xc23d96[a54_0xcfe549(0x172)]={},a54_0xc23d96['o11ySyncDone']=![],a54_0xc23d96[a54_0xcfe549(0x15d)]=null,a54_0xc23d96[a54_0xcfe549(0x14e)]=![],a54_0xc23d96[a54_0xcfe549(0x172)]['id']=undefined,a54_0xc23d96[a54_0xcfe549(0x172)][a54_0xcfe549(0x15a)]=undefined;const workerDetails=a54_0xc23d96;global[a54_0xcfe549(0x153)]=workerDetails;let puppeteerPatcher=null;setKeepAlive();function a54_0x5427(){const _0x2922a7=['__workerDetails','../v2/cliUtils','76572xFdHxI','../../helpers/test-observability/utils','9093752DJZptW','debug','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','testInfo','isCliEnabled','workerInfo','pwPage','getPackageVersion','puppeteer-core','skipSessionName','BROWSERSTACK_PUPPETEER','../../helpers/testhub/utils','6QJFoZt','format','275RcuHNt','setFrameworkDetail','__skipSessionStatus','8693699OtJvFg','skipSessionStatus','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','../utils/puppeteer-patcher','jestConfig','JEST','[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20','../../helpers/setKeepAlive','winstonLogger','puppeteer','currentTest','9GzDhBM','util','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','1232261vdaRfW','../../helpers/helper','8956mAsyql','2834890TaaJqN','8jallkc','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','../../helpers/logger','initializePuppeteerPatching','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','isPageFixture','57708MpKXBG','getInstance','2095WKMIDx','__skipSessionName'];a54_0x5427=function(){return _0x2922a7;};return a54_0x5427();}if(global[a54_0xcfe549(0x16c)])try{isBrowserstackInfra()?(global[a54_0xcfe549(0x152)]=isTrue(global['jestConfig']?.[a54_0xcfe549(0x160)]),global['__skipSessionStatus']=isTrue(global[a54_0xcfe549(0x16c)]?.[a54_0xcfe549(0x169)])):(global['__skipSessionName']=!![],global[a54_0xcfe549(0x167)]=!![]);const helper=require(a54_0xcfe549(0x146)),puppeteerVersion=helper[a54_0xcfe549(0x15e)](a54_0xcfe549(0x171))||helper[a54_0xcfe549(0x15e)](a54_0xcfe549(0x15f));if(puppeteerVersion)try{logger['debug'](a54_0xcfe549(0x14d)),puppeteerPatcher=require(a54_0xcfe549(0x16b)),puppeteerPatcher[a54_0xcfe549(0x14c)](global['jestConfig']),logger['debug']('[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized');}catch(a54_0x37254a){logger[a54_0xcfe549(0x158)](a54_0xcfe549(0x159)+util['format'](a54_0x37254a));}if(puppeteerPatcher)try{const BrowserstackCLI=require('../v2/browserstackCLI'),CLIUtils=require(a54_0xcfe549(0x154)),{FRAMEWORKS}=require('../utils/constants');BrowserstackCLI[a54_0xcfe549(0x150)]()[a54_0xcfe549(0x15b)]()&&(logger[a54_0xcfe549(0x158)](a54_0xcfe549(0x14a)),process['env'][a54_0xcfe549(0x161)]='true',CLIUtils[a54_0xcfe549(0x166)](FRAMEWORKS[a54_0xcfe549(0x16d)],FRAMEWORKS['PUPPETEER']),BrowserstackCLI['getInstance']()['bootstrap']()['catch'](_0x468999=>{const _0x2cf31f=a54_0xcfe549;logger[_0x2cf31f(0x158)](_0x2cf31f(0x175)+util[_0x2cf31f(0x164)](_0x468999));}));}catch(a54_0x3ec56c){logger[a54_0xcfe549(0x158)]('[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20'+util[a54_0xcfe549(0x164)](a54_0x3ec56c));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a54_0x40d472){logger['debug'](a54_0xcfe549(0x16e)+util[a54_0xcfe549(0x164)](a54_0x40d472));}logger[a54_0xcfe549(0x158)](a54_0xcfe549(0x16a));
1
+ const a54_0x40e851=a54_0x2b5a;(function(_0x8d1fe0,_0x368e99){const _0x5e6980=a54_0x2b5a,_0x5dc3d1=_0x8d1fe0();while(!![]){try{const _0x48ea2d=-parseInt(_0x5e6980(0x212))/0x1*(-parseInt(_0x5e6980(0x1fb))/0x2)+parseInt(_0x5e6980(0x202))/0x3*(parseInt(_0x5e6980(0x1ed))/0x4)+-parseInt(_0x5e6980(0x216))/0x5*(-parseInt(_0x5e6980(0x211))/0x6)+parseInt(_0x5e6980(0x215))/0x7*(-parseInt(_0x5e6980(0x1e6))/0x8)+parseInt(_0x5e6980(0x1f3))/0x9*(-parseInt(_0x5e6980(0x1e2))/0xa)+parseInt(_0x5e6980(0x204))/0xb+-parseInt(_0x5e6980(0x1f0))/0xc*(parseInt(_0x5e6980(0x1f8))/0xd);if(_0x48ea2d===_0x368e99)break;else _0x5dc3d1['push'](_0x5dc3d1['shift']());}catch(_0x29ee1d){_0x5dc3d1['push'](_0x5dc3d1['shift']());}}}(a54_0xe841,0xcedb8));const {isTrue,isBrowserstackInfra}=require(a54_0x40e851(0x20d)),setKeepAlive=require(a54_0x40e851(0x1e8)),util=require(a54_0x40e851(0x1e3)),logger=require('../../helpers/logger')[a54_0x40e851(0x1fe)],{shouldProcessEventForTesthub}=require(a54_0x40e851(0x203)),{addRequestSpy}=require(a54_0x40e851(0x1ff)),a54_0x589f87={};a54_0x589f87[a54_0x40e851(0x1f6)]=undefined,a54_0x589f87[a54_0x40e851(0x1e9)]={},a54_0x589f87[a54_0x40e851(0x1e5)]=![],a54_0x589f87[a54_0x40e851(0x1f9)]=null,a54_0x589f87[a54_0x40e851(0x20b)]=![],a54_0x589f87[a54_0x40e851(0x1e9)]['id']=undefined,a54_0x589f87[a54_0x40e851(0x1e9)][a54_0x40e851(0x200)]=undefined;const workerDetails=a54_0x589f87;global['__workerDetails']=workerDetails;let puppeteerPatcher=null;function a54_0x2b5a(_0x117076,_0x3c9c70){const _0xe841ab=a54_0xe841();return a54_0x2b5a=function(_0x2b5ad7,_0x4bfd44){_0x2b5ad7=_0x2b5ad7-0x1e2;let _0x3c7ed4=_0xe841ab[_0x2b5ad7];return _0x3c7ed4;},a54_0x2b5a(_0x117076,_0x3c9c70);}function a54_0xe841(){const _0xdc0a90=['testInfo','../v2/browserstackCLI','3gDUTfg','../../helpers/testhub/utils','3550778IdGWVu','[PuppeteerTestSetup]\x20Patching\x20Puppeteer\x20for\x20Jest','JEST','jestConfig','PUPPETEER','getPackageVersion','[PuppeteerTestSetup]\x20Error\x20initializing\x20Puppeteer\x20patching:\x20','isPageFixture','initializePuppeteerPatching','../../helpers/helper','puppeteer','[PuppeteerTestSetup]\x20Error\x20bootstrapping\x20BrowserstackCLI:\x20','skipSessionName','7990848UMTIFW','68131gEhuTs','catch','../utils/constants','1561QmuEnf','5PppWkc','format','1330gFnggg','util','getInstance','o11ySyncDone','39608xevjHy','env','../../helpers/setKeepAlive','currentTest','__skipSessionStatus','../utils/puppeteer-patcher','debug','5333276FckWbs','skipSessionStatus','../v2/cliUtils','12YxpUUA','[PuppeteerTestSetup]\x20Bootstrapping\x20BrowserstackCLI\x20for\x20Jest\x20worker','true','75249KstoPs','[PuppeteerTestSetup]\x20Error\x20setting\x20up\x20BrowserstackCLI\x20bootstrap:\x20','[PuppeteerTestSetup]\x20Jest-Puppeteer\x20test\x20setup\x20completed','workerInfo','bootstrap','4333381QoltTD','pwPage','[PuppeteerTestSetup]\x20Puppeteer\x20patching\x20initialized','12MsoeCc','isCliEnabled','BROWSERSTACK_PUPPETEER','winstonLogger','../../helpers/test-observability/utils'];a54_0xe841=function(){return _0xdc0a90;};return a54_0xe841();}setKeepAlive();if(global[a54_0x40e851(0x207)])try{isBrowserstackInfra()?(global['__skipSessionName']=isTrue(global[a54_0x40e851(0x207)]?.[a54_0x40e851(0x210)]),global['__skipSessionStatus']=isTrue(global['jestConfig']?.[a54_0x40e851(0x1ee)])):(global['__skipSessionName']=!![],global[a54_0x40e851(0x1ea)]=!![]);const helper=require('../../helpers/helper'),puppeteerVersion=helper[a54_0x40e851(0x209)](a54_0x40e851(0x20e))||helper['getPackageVersion']('puppeteer-core');if(puppeteerVersion)try{logger[a54_0x40e851(0x1ec)](a54_0x40e851(0x205)),puppeteerPatcher=require(a54_0x40e851(0x1eb)),puppeteerPatcher[a54_0x40e851(0x20c)](global[a54_0x40e851(0x207)]),logger['debug'](a54_0x40e851(0x1fa));}catch(a54_0x2673f1){logger[a54_0x40e851(0x1ec)](a54_0x40e851(0x20a)+util['format'](a54_0x2673f1));}if(puppeteerPatcher)try{const BrowserstackCLI=require(a54_0x40e851(0x201)),CLIUtils=require(a54_0x40e851(0x1ef)),{FRAMEWORKS}=require(a54_0x40e851(0x214));BrowserstackCLI[a54_0x40e851(0x1e4)]()[a54_0x40e851(0x1fc)]()&&(logger[a54_0x40e851(0x1ec)](a54_0x40e851(0x1f1)),process[a54_0x40e851(0x1e7)][a54_0x40e851(0x1fd)]=a54_0x40e851(0x1f2),CLIUtils['setFrameworkDetail'](FRAMEWORKS[a54_0x40e851(0x206)],FRAMEWORKS[a54_0x40e851(0x208)]),BrowserstackCLI[a54_0x40e851(0x1e4)]()[a54_0x40e851(0x1f7)]()[a54_0x40e851(0x213)](_0x299f20=>{const _0x569738=a54_0x40e851;logger[_0x569738(0x1ec)](_0x569738(0x20f)+util[_0x569738(0x217)](_0x299f20));}));}catch(a54_0x5d52b9){logger[a54_0x40e851(0x1ec)](a54_0x40e851(0x1f4)+util[a54_0x40e851(0x217)](a54_0x5d52b9));}shouldProcessEventForTesthub()&&addRequestSpy(![]);}catch(a54_0x267d22){logger[a54_0x40e851(0x1ec)]('[PuppeteerTestSetup]\x20Error\x20reading\x20BrowserStack\x20config:\x20'+util[a54_0x40e851(0x217)](a54_0x267d22));}logger[a54_0x40e851(0x1ec)](a54_0x40e851(0x1f5));
package/src/bin/runner.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a55_0x589e26=a55_0xe95b;(function(_0x16b0be,_0x340bdd){const _0x25eb0d=a55_0xe95b,_0x447815=_0x16b0be();while(!![]){try{const _0x6fa32c=-parseInt(_0x25eb0d(0x9b))/0x1+parseInt(_0x25eb0d(0x101))/0x2+-parseInt(_0x25eb0d(0x93))/0x3+parseInt(_0x25eb0d(0x80))/0x4*(-parseInt(_0x25eb0d(0xca))/0x5)+-parseInt(_0x25eb0d(0x8a))/0x6*(-parseInt(_0x25eb0d(0xe3))/0x7)+parseInt(_0x25eb0d(0x9e))/0x8+parseInt(_0x25eb0d(0xd1))/0x9*(parseInt(_0x25eb0d(0xc8))/0xa);if(_0x6fa32c===_0x340bdd)break;else _0x447815['push'](_0x447815['shift']());}catch(_0x4d9ce4){_0x447815['push'](_0x447815['shift']());}}}(a55_0x27e3,0xee0bb));const fs=require('fs'),path=require(a55_0x589e26(0x103)),util=require(a55_0x589e26(0x10d)),spawn=require('child_process')[a55_0x589e26(0x8c)],{requireModule}=require(a55_0x589e26(0x108)),PerformanceTester=require('../helpers/performance/performance-tester'),PerformanceEvents=require(a55_0x589e26(0x95))[a55_0x589e26(0xba)],helper=require(a55_0x589e26(0x108)),utilities=require(a55_0x589e26(0x89)),{default:BrowserStackSetup}=require(a55_0x589e26(0x84)),{FRAMEWORKS}=require(a55_0x589e26(0xf5)),runIntegrations=require(a55_0x589e26(0xfc)),yargs=require('yargs'),Constants=require(a55_0x589e26(0xac)),BrowserstackCLI=require(a55_0x589e26(0x8f)),{isNewman}=require('./newman/helper'),logger=require(a55_0x589e26(0x94))[a55_0x589e26(0x98)],origArgs=Object[a55_0x589e26(0xe5)]([],process[a55_0x589e26(0x105)]),captureError=async(_0x4a159b,_0x2033ec,_0x1a4c73,_0x18aef5=null,_0x214c66=![])=>{const _0x3e879f=a55_0x589e26,_0x40afdf={'GXEuN':function(_0x1f06a7,_0x24b087,_0x41c846,_0x155af6){return _0x1f06a7(_0x24b087,_0x41c846,_0x155af6);},'UiEjo':'SDKTestSuccessful'};try{logger[_0x3e879f(0xdc)]('Running\x20SDK\x20with\x20args\x20'+origArgs['join']('\x20')),await _0x40afdf[_0x3e879f(0x88)](_0x4a159b,_0x2033ec,_0x18aef5,_0x1a4c73);}catch(_0x2c1976){process[_0x3e879f(0xf4)]=0x1,logger['error'](util[_0x3e879f(0xc9)](_0x2c1976));const _0x300afe={'globalException':util[_0x3e879f(0xc9)]('%j',_0x2c1976)};PerformanceTester[_0x3e879f(0xde)](PerformanceEvents[_0x3e879f(0x9c)],![],util['format'](_0x2c1976));if(helper['isUndefined'](global['config'])&&helper[_0x3e879f(0xef)](global[_0x3e879f(0x111)]))return;try{utilities['fireFunnelTestEvent'](_0x40afdf[_0x3e879f(0xf7)],_0x300afe,global[_0x3e879f(0xe8)],global[_0x3e879f(0x111)]);}catch(_0x5e518f){logger['debug'](_0x3e879f(0x7d)+_0x5e518f['stack']);}try{await helper['sendLogs'](global['config']);}catch(_0x19021f){logger[_0x3e879f(0xc1)]('Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20'+_0x19021f['stack']);}PerformanceTester['end'](PerformanceEvents[_0x3e879f(0x9c)],![],util['format'](_0x2c1976));}finally{!_0x214c66&&await BrowserstackCLI[_0x3e879f(0xcb)]()['stop'](),PerformanceTester[_0x3e879f(0xa7)](PerformanceEvents['SDK_CLEANUP']);}};function a55_0xe95b(_0x322fa6,_0x4e37d0){const _0x27e3db=a55_0x27e3();return a55_0xe95b=function(_0xe95bee,_0x229871){_0xe95bee=_0xe95bee-0x71;let _0x30311e=_0x27e3db[_0xe95bee];return _0x30311e;},a55_0xe95b(_0x322fa6,_0x4e37d0);}try{const browserstackFolderPath=path[a55_0x589e26(0xc3)](helper[a55_0x589e26(0xf6)](),'.browserstack');if(fs[a55_0x589e26(0x7c)](browserstackFolderPath)){const filePath=path[a55_0x589e26(0xc3)](browserstackFolderPath,a55_0x589e26(0xdf));fs[a55_0x589e26(0x7c)](filePath)&&fs[a55_0x589e26(0x78)](filePath);}}catch(a55_0x384782){logger[a55_0x589e26(0xc1)](a55_0x589e26(0xa0)+a55_0x384782[a55_0x589e26(0x77)]);}process['argv'][a55_0x589e26(0xa9)](a55_0x589e26(0x87))&&(!process['argv'][a55_0x589e26(0xa9)](a55_0x589e26(0xea))&&process['argv'][a55_0x589e26(0xdd)](a55_0x589e26(0xb3)),!process['argv']['find'](_0x1dcdbc=>_0x1dcdbc[a55_0x589e26(0xa9)](a55_0x589e26(0x91)))&&process['argv'][a55_0x589e26(0xdd)](a55_0x589e26(0x9d)),!process['argv'][a55_0x589e26(0xa9)](a55_0x589e26(0x10c))&&process[a55_0x589e26(0x105)][a55_0x589e26(0xdd)](a55_0x589e26(0xb5)),helper[a55_0x589e26(0x83)](process[a55_0x589e26(0x105)],a55_0x589e26(0xda),a55_0x589e26(0x75)));PerformanceTester[a55_0x589e26(0xa7)](PerformanceEvents[a55_0x589e26(0x9c)]);function a55_0x27e3(){const _0x5acb17=['node','env','./cucumber-js/command','sWxPP','mocha/lib/cli/commands.js','PLAYWRIGHT','start','error','includes','showHelpOnFail','BAHFA','./utils/constants','-pw:channel','integrations','-pw:*','INTEGRATIONS','help','wrap','--no-opts','QuBKU','--no-package','BROWSERSTACK_CONFIG_FILE_PATH','VERSION','DEBUG','DePwQ','EVENTS','parserConfiguration','nightwatch','cucumber-js','bWaSk','map','ats','debug','sDaaj','join','INFO','DEBUG_FILE','PZZXI','usage:\x20$0\x20<command>\x20[args]','22804770dGJszT','format','6126275GzviyJ','getInstance','VANILLA','aqrxl','YBbfu','IRMqj','filter','9TLalEu','setBrowserStackAutomationDisable','iXurM','YKHGZ','jDDKa','./playwright/command','trim','pw:channel\x20auto-capture\x20seed\x20failed:\x20','FzGXj','--require','dot-notation','info','push','end','.local-not-set.json','UDfKQ','slice','RFKNb','631001uMhwzD','describe','assign','playwright','getPwChannelLogPath','config','getConfigPath','--opts','sfKqg','newman','exitProcess','Parsing\x20command\x20line\x20arguments','isUndefined','KCzXg','MOCHA','version','some','exitCode','../helpers/test-observability/constants','homedir','UiEjo','run','disableAutoCaptureLogs','CUCUMBER','../../ats/src/index','./integrations/command','pw:*','CXxnQ','xlVPG','./load/index','2846066WAfHEM','PwQNK','path','Show\x20help','argv','gyXdh','mocha/lib/cli/run.js','../helpers/helper','Ycpot','ITzfz','mHOfm','--package','util','gnFdJ','strict','./codeceptjs/command','framework','otahg','alias','mocha/lib/cli/cli.js','./newman/command','pElAE','--mochaRequire','usage','message','unlinkSync','NcSsu','YswGA','NODwH','existsSync','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','jest','Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.','4tmvIMt','MJOZL','yLAgL','findAndReplace','../helpers/BrowserStackSetup','command','JEST','mocha','GXEuN','../helpers/utilities','6UFILFg','handler','spawn','ntDOI','codeceptjs','./v2/browserstackCLI','demandCommand','--config','boolean','2176323KDipol','../helpers/logger','../helpers/performance/constants','luYnZ','moIIv','winstonLogger','setTestObservabilityDisable','EmdpN','1799599kBKCtx','SDK_SETUP','--no-config','7453416tRYzzk','qjcrx','Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'];a55_0x27e3=function(){return _0x5acb17;};return a55_0x27e3();}const a55_0x416447={};a55_0x416447[a55_0x589e26(0xdb)]=![];const argv=yargs[a55_0x589e26(0xbb)](a55_0x416447)[a55_0x589e26(0x76)](a55_0x589e26(0xc7))['alias']('v',a55_0x589e26(0xf2))[a55_0x589e26(0xe4)]('v')[a55_0x589e26(0x71)]('h',a55_0x589e26(0xb1))[a55_0x589e26(0xb1)](a55_0x589e26(0xb1))[a55_0x589e26(0xaa)](!![],Constants[a55_0x589e26(0xb7)]['HELP'])[a55_0x589e26(0x85)](a55_0x589e26(0x7e),Constants[a55_0x589e26(0x86)][a55_0x589e26(0xc4)],function(_0x4d0dd6){const _0x351720=a55_0x589e26,_0x4e2f55={'hDYqI':_0x351720(0x7e),'PwQNK':function(_0x1d31c0,_0x4ab152,_0x3274d4,_0x3d9e93,_0x15185e,_0x5cc08d){return _0x1d31c0(_0x4ab152,_0x3274d4,_0x3d9e93,_0x15185e,_0x5cc08d);},'ITzfz':function(_0x502a92,_0x536bb6){return _0x502a92(_0x536bb6);},'DePwQ':'./jest/command'},_0x133c8d=process[_0x351720(0x105)][_0x351720(0xe1)](0x2);helper[_0x351720(0x99)](),helper['setBrowserStackAutomationDisable'](),_0x4d0dd6[_0x351720(0x10f)](![]);const _0x2e8d79=new BrowserStackSetup(_0x4d0dd6['argv'],_0x4e2f55['hDYqI']);return _0x4e2f55[_0x351720(0x102)](captureError,_0x4e2f55[_0x351720(0x10a)](require,_0x4e2f55[_0x351720(0xb9)]),_0x4d0dd6['argv'],_0x2e8d79,_0x133c8d,!![]);})[a55_0x589e26(0x85)](a55_0x589e26(0x87),Constants[a55_0x589e26(0xf1)][a55_0x589e26(0xc4)],_0x5df799=>{const _0x43517f=a55_0x589e26,_0x671158={'NcSsu':function(_0x4418a1,_0x42fedf,_0x5887b0,_0x33a53d){return _0x4418a1(_0x42fedf,_0x5887b0,_0x33a53d);},'gyXdh':function(_0x215481,_0x39603c){return _0x215481(_0x39603c);},'jJXxz':'./mocha/command','YswGA':_0x43517f(0x87),'YWEXN':_0x43517f(0xee),'sWxPP':function(_0x442667,_0x18fe5b,_0x296bd3){return _0x442667(_0x18fe5b,_0x296bd3);},'KCzXg':_0x43517f(0x107),'moIIv':_0x43517f(0xa5),'GzoOY':_0x43517f(0x72),'YBbfu':function(_0x3ee9fe){return _0x3ee9fe();}};process[_0x43517f(0x105)]=process['argv'][_0x43517f(0xe1)](0x1),helper['setTestObservabilityDisable'](),helper[_0x43517f(0xd2)]();const _0x4338a2=new BrowserStackSetup(_0x5df799['argv'],_0x671158[_0x43517f(0x7a)]);logger['debug'](_0x671158['YWEXN']);const _0x144fb0=_0x671158[_0x43517f(0xa4)](requireModule,_0x671158[_0x43517f(0xf0)],_0x671158['YswGA']),_0x3eaea9=_0x671158[_0x43517f(0xa4)](requireModule,_0x671158[_0x43517f(0x97)],_0x671158[_0x43517f(0x7a)]);delete _0x144fb0[_0x43517f(0x8b)],_0x144fb0[_0x43517f(0x8b)]=function(_0x208961){const _0x1b3d32=_0x43517f;return _0x671158[_0x1b3d32(0x79)](captureError,_0x671158[_0x1b3d32(0x106)](require,_0x671158['jJXxz']),_0x208961,_0x4338a2);},_0x3eaea9[_0x43517f(0xf8)]=_0x144fb0;const {main:_0x57e6dc}=_0x671158[_0x43517f(0xa4)](requireModule,_0x671158['GzoOY'],_0x671158['YswGA']);_0x671158[_0x43517f(0xce)](_0x57e6dc);})[a55_0x589e26(0x85)]('cucumber-js',Constants[a55_0x589e26(0xfa)][a55_0x589e26(0xc4)],function(_0x4f4530){const _0x483829=a55_0x589e26,_0x7c15b0={'bufLV':_0x483829(0xbd),'FzGXj':function(_0x462e92,_0x5402eb,_0x1ddb22,_0x3201cb,_0xc10905,_0x22d992){return _0x462e92(_0x5402eb,_0x1ddb22,_0x3201cb,_0xc10905,_0x22d992);},'otahg':function(_0xb516eb,_0x57e7b6){return _0xb516eb(_0x57e7b6);},'luYnZ':_0x483829(0xa3)},_0x4a46fa=process[_0x483829(0x105)][_0x483829(0xe1)](0x2),_0x4bf2ad=new BrowserStackSetup(_0x4f4530[_0x483829(0x105)],_0x7c15b0['bufLV']);return _0x7c15b0[_0x483829(0xd9)](captureError,_0x7c15b0[_0x483829(0x112)](require,_0x7c15b0[_0x483829(0x96)]),_0x4f4530[_0x483829(0x105)],_0x4bf2ad,_0x4a46fa,!![]);})['command'](a55_0x589e26(0xa1),Constants[a55_0x589e26(0xcc)][a55_0x589e26(0xc4)],function(_0x5225a3){const _0x574829=a55_0x589e26,_0x27317b={'Ycpot':'vanilla','iXurM':function(_0x2dfacb,_0x23a938){return _0x2dfacb(_0x23a938);},'IRMqj':_0x574829(0xec),'yLAgL':function(_0x398a8c,_0x184db0,_0x3ba54e,_0x371078,_0x36b0d1){return _0x398a8c(_0x184db0,_0x3ba54e,_0x371078,_0x36b0d1);},'QuBKU':'./newman/command','sfKqg':function(_0x22bda6,_0x20cabc,_0x57d067,_0x5d4604,_0x1b4e4a){return _0x22bda6(_0x20cabc,_0x57d067,_0x5d4604,_0x1b4e4a);},'oGgcX':function(_0x2bd385,_0x5bfde6){return _0x2bd385(_0x5bfde6);},'WGHSu':'./vanilla-js/command'},_0xa58f52=process[_0x574829(0x105)][_0x574829(0xe1)](0x2),_0x248f51=new BrowserStackSetup(_0x5225a3[_0x574829(0x105)],_0x27317b[_0x574829(0x109)]),_0x29acad=_0x248f51?_0x248f51[_0x574829(0xe8)]:null;if(_0x27317b[_0x574829(0xd3)](isNewman,_0x29acad))return _0x248f51[_0x574829(0x111)]=_0x27317b[_0x574829(0xcf)],global[_0x574829(0x111)]=_0x27317b[_0x574829(0xcf)],_0x27317b[_0x574829(0x82)](captureError,_0x27317b[_0x574829(0xd3)](require,_0x27317b[_0x574829(0xb4)]),_0x5225a3[_0x574829(0x105)],_0x248f51,_0xa58f52);return _0x27317b[_0x574829(0xeb)](captureError,_0x27317b['oGgcX'](require,_0x27317b['WGHSu']),_0x5225a3[_0x574829(0x105)],_0x248f51,_0xa58f52);})['command'](a55_0x589e26(0xbc),Constants['NIGHTWATCH'][a55_0x589e26(0xc4)],function(_0x23982e){const _0x2380aa=a55_0x589e26,_0x1c0e64={'sDaaj':function(_0x2d8cdd,_0x198aac,_0x4e9e61,_0x4bbefa,_0x5e9c73){return _0x2d8cdd(_0x198aac,_0x4e9e61,_0x4bbefa,_0x5e9c73);},'MJOZL':function(_0x5711f9,_0x33ee32){return _0x5711f9(_0x33ee32);},'TOHZu':'./nightwatch/command'},_0xf0428c=process[_0x2380aa(0x105)][_0x2380aa(0xe1)](0x2),_0x182331=new BrowserStackSetup(_0x23982e[_0x2380aa(0x105)]);return _0x1c0e64[_0x2380aa(0xc2)](captureError,_0x1c0e64[_0x2380aa(0x81)](require,_0x1c0e64['TOHZu']),_0x23982e[_0x2380aa(0x105)],_0x182331,_0xf0428c);})[a55_0x589e26(0x85)](a55_0x589e26(0x8e),Constants['CODECEPTJS'][a55_0x589e26(0xc4)],function(_0x4850f6){const _0x2a89a8=a55_0x589e26,_0x1640da={'miuBF':_0x2a89a8(0x8e),'jDDKa':function(_0x52b4a7,_0x248635,_0x506266,_0x47c030,_0x13bc25){return _0x52b4a7(_0x248635,_0x506266,_0x47c030,_0x13bc25);},'aqrxl':function(_0x4bd992,_0x1f956d){return _0x4bd992(_0x1f956d);},'EmdpN':_0x2a89a8(0x110)},_0x4f5ab1=process[_0x2a89a8(0x105)][_0x2a89a8(0xe1)](0x2),_0x57cb04=new BrowserStackSetup(_0x4850f6['argv'],_0x1640da['miuBF']);return _0x1640da[_0x2a89a8(0xd5)](captureError,_0x1640da[_0x2a89a8(0xcd)](require,_0x1640da[_0x2a89a8(0x9a)]),_0x4850f6['argv'],_0x57cb04,_0x4f5ab1);})[a55_0x589e26(0x85)](a55_0x589e26(0xc0),Constants['HST']['INFO'],function(_0x20f21e){const _0xd57a68=a55_0x589e26,_0xc963c7={'UqzlR':function(_0x57348c,_0x317414,_0x4bfe21){return _0x57348c(_0x317414,_0x4bfe21);},'gnFdJ':function(_0x34ffa4,_0x54ac3e){return _0x34ffa4(_0x54ac3e);},'PZZXI':_0xd57a68(0xfb)},_0x4fdf12=process[_0xd57a68(0x105)][_0xd57a68(0xe1)](0x2);return _0xc963c7['UqzlR'](captureError,_0xc963c7[_0xd57a68(0x10e)](require,_0xc963c7[_0xd57a68(0xc6)]),_0x20f21e);})[a55_0x589e26(0x85)](a55_0x589e26(0xae),Constants[a55_0x589e26(0xb0)][a55_0x589e26(0xc4)],function(_0x429b9a){const _0x242f82=a55_0x589e26,_0x26c7b4={'ntDOI':function(_0x277d02,_0x4417e0){return _0x277d02(_0x4417e0);}};return _0x26c7b4[_0x242f82(0x8d)](runIntegrations,_0x429b9a);})[a55_0x589e26(0x85)](a55_0x589e26(0xe6),Constants[a55_0x589e26(0xa6)]['INFO'],function(_0x1c1809){const _0x2e0527=a55_0x589e26,_0x41076c={'XJfpA':'pw:channel','NODwH':function(_0x42481d,_0x23cbb2){return _0x42481d&&_0x23cbb2;},'CXxnQ':function(_0x3da960,_0x53b5c6,_0x433f05,_0x1da360,_0x250303,_0x3f1109){return _0x3da960(_0x53b5c6,_0x433f05,_0x1da360,_0x250303,_0x3f1109);},'qoewR':function(_0x8de42b,_0x5d8eb4){return _0x8de42b(_0x5d8eb4);},'pElAE':_0x2e0527(0xd6)},_0x1f2b0e=process[_0x2e0527(0x105)][_0x2e0527(0xe1)](0x2);helper[_0x2e0527(0xe9)](process['argv'])&&(process[_0x2e0527(0xa2)][_0x2e0527(0xb6)]=helper[_0x2e0527(0xe9)](process[_0x2e0527(0x105)]));helper[_0x2e0527(0x99)](),helper['setBrowserStackAutomationDisable']();const _0x1ffd7c=new BrowserStackSetup(_0x1c1809[_0x2e0527(0x105)],FRAMEWORKS['PLAYWRIGHT']);try{if(!_0x1ffd7c[_0x2e0527(0xe8)]||!_0x1ffd7c[_0x2e0527(0xe8)][_0x2e0527(0xf9)]){const _0x2c35ed=_0x41076c['XJfpA'],_0xf69d0f=process['env'][_0x2e0527(0xb8)]||'',_0x3edeb9=_0xf69d0f['split'](',')[_0x2e0527(0xbf)](_0x59d837=>_0x59d837[_0x2e0527(0xd7)]())[_0x2e0527(0xd0)](Boolean),_0x11bd35=_0x3edeb9[_0x2e0527(0xf3)](_0x1b4056=>_0x1b4056===_0x2e0527(0xad)||_0x1b4056===_0x2e0527(0xaf)||_0x1b4056==='-*'),_0x59660f=_0x3edeb9[_0x2e0527(0xf3)](_0x18474a=>_0x18474a===_0x2c35ed||_0x18474a===_0x2e0527(0xfd)||_0x18474a==='*');if(_0x41076c[_0x2e0527(0x7b)](!_0x11bd35,!_0x59660f)){const _0x148de5=helper[_0x2e0527(0xe7)]();_0x148de5&&(process['env'][_0x2e0527(0xb8)]=_0xf69d0f?_0xf69d0f+','+_0x2c35ed:_0x2c35ed,!process[_0x2e0527(0xa2)][_0x2e0527(0xc5)]&&(process[_0x2e0527(0xa2)][_0x2e0527(0xc5)]=_0x148de5));}}}catch(_0x569504){logger['debug'](_0x2e0527(0xd8)+util[_0x2e0527(0xc9)](_0x569504));}return _0x41076c[_0x2e0527(0xfe)](captureError,_0x41076c['qoewR'](require,_0x41076c[_0x2e0527(0x74)]),_0x1c1809[_0x2e0527(0x105)],_0x1ffd7c,_0x1f2b0e,!![]);})['command']('load\x20[subcommand]','Runs\x20the\x20binary\x20with\x20load\x20command',function(_0x1a9156){const _0x307196=a55_0x589e26,_0x3f9903={};_0x3f9903[_0x307196(0xab)]='help',_0x3f9903[_0x307196(0xe2)]=_0x307196(0x92),_0x3f9903['UDfKQ']=_0x307196(0x104);const _0x5bf101=_0x3f9903;return _0x1a9156[_0x307196(0xb1)](![])['option'](_0x5bf101[_0x307196(0xab)],{'alias':'h','type':_0x5bf101['RFKNb'],'describe':_0x5bf101[_0x307196(0xe0)]})[_0x307196(0x10f)](![])[_0x307196(0xed)](![]);},function(_0x4f56cc){const _0x1d04b8=a55_0x589e26,_0x41f8f5={'mHOfm':function(_0x2ed0d3,_0x3d1f2a,_0x15d111){return _0x2ed0d3(_0x3d1f2a,_0x15d111);},'xMeCD':function(_0x2cc4f4,_0x2ae964){return _0x2cc4f4(_0x2ae964);},'qjcrx':_0x1d04b8(0x100)},_0x38513b={};return _0x38513b[_0x1d04b8(0x105)]=_0x4f56cc,_0x41f8f5[_0x1d04b8(0x10b)](captureError,_0x41f8f5['xMeCD'](require,_0x41f8f5[_0x1d04b8(0x9f)]),_0x38513b);})[a55_0x589e26(0x85)](a55_0x589e26(0xec),Constants['NEWMAN'][a55_0x589e26(0xc4)],function(_0x560834){const _0x27a7fd=a55_0x589e26,_0x16f01f={'YKHGZ':_0x27a7fd(0xec),'xlVPG':function(_0x1f095c,_0x5a8dc8,_0x1a8581,_0x9161b3,_0x591fce){return _0x1f095c(_0x5a8dc8,_0x1a8581,_0x9161b3,_0x591fce);},'LTRvf':function(_0x3fc3d7,_0x6ac448){return _0x3fc3d7(_0x6ac448);},'bWaSk':_0x27a7fd(0x73)},_0x8600e3=process[_0x27a7fd(0x105)][_0x27a7fd(0xe1)](0x2);helper[_0x27a7fd(0x99)](),helper['setBrowserStackAutomationDisable'](),_0x560834[_0x27a7fd(0x10f)](![]);const _0x2e1031=new BrowserStackSetup(_0x560834['argv'],_0x16f01f[_0x27a7fd(0xd4)]);return _0x16f01f[_0x27a7fd(0xff)](captureError,_0x16f01f['LTRvf'](require,_0x16f01f[_0x27a7fd(0xbe)]),_0x560834['argv'],_0x2e1031,_0x8600e3);})[a55_0x589e26(0x90)](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a55_0x589e26(0xb2)](null)[a55_0x589e26(0x105)];!helper[a55_0x589e26(0xef)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a55_0x589e26(0xc0)&&console[a55_0x589e26(0xa8)](a55_0x589e26(0x7f));
2
+ 'use strict';const a55_0x354a51=a55_0x47e0;(function(_0x1e4625,_0x38c52c){const _0x4fd893=a55_0x47e0,_0x1789f0=_0x1e4625();while(!![]){try{const _0x474309=-parseInt(_0x4fd893(0x1dc))/0x1+-parseInt(_0x4fd893(0x1a6))/0x2*(parseInt(_0x4fd893(0x1bb))/0x3)+-parseInt(_0x4fd893(0x1bf))/0x4*(parseInt(_0x4fd893(0x1d5))/0x5)+-parseInt(_0x4fd893(0x1c0))/0x6+parseInt(_0x4fd893(0x211))/0x7*(parseInt(_0x4fd893(0x1f5))/0x8)+-parseInt(_0x4fd893(0x1a4))/0x9*(-parseInt(_0x4fd893(0x206))/0xa)+parseInt(_0x4fd893(0x22a))/0xb;if(_0x474309===_0x38c52c)break;else _0x1789f0['push'](_0x1789f0['shift']());}catch(_0x36e66a){_0x1789f0['push'](_0x1789f0['shift']());}}}(a55_0x204f,0xbc7fc));const fs=require('fs'),path=require(a55_0x354a51(0x1f1)),util=require(a55_0x354a51(0x210)),spawn=require(a55_0x354a51(0x209))[a55_0x354a51(0x1ad)],{requireModule}=require(a55_0x354a51(0x20a)),PerformanceTester=require(a55_0x354a51(0x1d3)),PerformanceEvents=require(a55_0x354a51(0x1b2))['EVENTS'],helper=require(a55_0x354a51(0x20a)),utilities=require('../helpers/utilities'),{default:BrowserStackSetup}=require(a55_0x354a51(0x214)),{FRAMEWORKS}=require('../helpers/test-observability/constants'),runIntegrations=require(a55_0x354a51(0x1da)),yargs=require('yargs'),Constants=require(a55_0x354a51(0x213)),BrowserstackCLI=require(a55_0x354a51(0x1f2)),{isNewman}=require('./newman/helper'),logger=require('../helpers/logger')[a55_0x354a51(0x22c)],origArgs=Object[a55_0x354a51(0x1b6)]([],process['argv']),captureError=async(_0x4c3b69,_0x3114f3,_0x1f8480,_0xe02705=null,_0x5edf72=![])=>{const _0x5cec06=a55_0x354a51,_0x44ad8b={'gEgiv':function(_0x47a3ae,_0xc9bdda,_0x5d4580,_0x39abf2){return _0x47a3ae(_0xc9bdda,_0x5d4580,_0x39abf2);},'gYQsM':_0x5cec06(0x204)};try{logger[_0x5cec06(0x20d)]('Running\x20SDK\x20with\x20args\x20'+origArgs['join']('\x20')),await _0x44ad8b[_0x5cec06(0x1dd)](_0x4c3b69,_0x3114f3,_0xe02705,_0x1f8480);}catch(_0x2e4427){process['exitCode']=0x1,logger['error'](util[_0x5cec06(0x1e2)](_0x2e4427));const _0x3b0282={'globalException':util[_0x5cec06(0x1e2)]('%j',_0x2e4427)};PerformanceTester[_0x5cec06(0x1b0)](PerformanceEvents[_0x5cec06(0x19e)],![],util[_0x5cec06(0x1e2)](_0x2e4427));if(helper[_0x5cec06(0x21b)](global[_0x5cec06(0x1c3)])&&helper[_0x5cec06(0x21b)](global[_0x5cec06(0x1af)]))return;try{utilities['fireFunnelTestEvent'](_0x44ad8b['gYQsM'],_0x3b0282,global['config'],global[_0x5cec06(0x1af)]);}catch(_0x48132e){logger[_0x5cec06(0x1ff)](_0x5cec06(0x1c7)+_0x48132e[_0x5cec06(0x228)]);}try{await helper['sendLogs'](global['config']);}catch(_0x2eeedb){logger[_0x5cec06(0x1ff)](_0x5cec06(0x216)+_0x2eeedb[_0x5cec06(0x228)]);}PerformanceTester['end'](PerformanceEvents[_0x5cec06(0x19e)],![],util[_0x5cec06(0x1e2)](_0x2e4427));}finally{!_0x5edf72&&await BrowserstackCLI[_0x5cec06(0x227)]()[_0x5cec06(0x1e0)](),PerformanceTester[_0x5cec06(0x1ae)](PerformanceEvents['SDK_CLEANUP']);}};try{const browserstackFolderPath=path[a55_0x354a51(0x1c8)](helper[a55_0x354a51(0x1ab)](),a55_0x354a51(0x21f));if(fs[a55_0x354a51(0x1ac)](browserstackFolderPath)){const filePath=path[a55_0x354a51(0x1c8)](browserstackFolderPath,a55_0x354a51(0x1ec));fs[a55_0x354a51(0x1ac)](filePath)&&fs[a55_0x354a51(0x195)](filePath);}}catch(a55_0xf32661){logger[a55_0x354a51(0x1ff)]('Error\x20is\x20Deleting\x20temp\x20.local-not-set.json.\x20Error:\x20'+a55_0xf32661['message']);}function a55_0x204f(){const _0x382702=['child_process','../helpers/helper','slice','disableAutoCaptureLogs','info','--mochaRequire','./cucumber-js/command','util','1771ECkRfm','help','./utils/constants','../helpers/BrowserStackSetup','djNOf','Error\x20in\x20sending\x20logs.\x20Stacktrace:\x20','atUaC','CODECEPTJS','XpXso','jest','isUndefined','dEqdh','some','NYsLj','.browserstack','version','KoKOm','./nightwatch/command','option','alias','JEST','NIGHTWATCH','getInstance','stack','find','12077472rETkYP','tgffo','winstonLogger','showHelpOnFail','DEBUG','--package','cucumber-js','--opts','EZKpa','unlinkSync','pZkrr','ats','mocha','strict','INTEGRATIONS','IDuLr','xKntz','Runs\x20the\x20binary\x20with\x20load\x20command','SDK_SETUP','setTestObservabilityDisable','sVVDn','includes','bKZLX','oTvLw','2598741vZdHlD','INFO','960XRhFKo','BROWSERSTACK_CONFIG_FILE_PATH','./vanilla-js/command','jlUcR','nZKJS','homedir','existsSync','spawn','start','framework','end','map','../helpers/performance/constants','VANILLA','run','./newman/command','assign','Jayzc','./mocha/command','command','playwright','1812tOUJIh','nightwatch','JnAud','GQuqZ','576988wfJiIy','2305260VBIrLZ','--no-opts','alPUk','config','newman','handler','NMUZT','Error\x20in\x20Fire\x20SDKTestSuccessful.\x20Stacktrace:\x20','join','DEBUG_FILE','pw:*','dot-notation','load\x20[subcommand]','../../ats/src/index','env','CASiq','gOoMu','PXzEV','pw:channel','../helpers/performance/performance-tester','enPoD','35ctclxp','Lhzyq','findAndReplace','sauan','describe','./integrations/command','wrap','249639UEDTwE','gEgiv','argv','WYvmU','stop','PVrWQ','format','YmWwM','pw:channel\x20auto-capture\x20seed\x20failed:\x20','CUCUMBER','Show\x20help','ZHkIF','PLAYWRIGHT','duXOL','VSUTV','uRJVi','.local-not-set.json','setBrowserStackAutomationDisable','vanilla','split','maPOl','path','./v2/browserstackCLI','eTWrI','PBHsr','41704qyKIVP','filter','trim','getConfigPath','usage:\x20$0\x20<command>\x20[args]','./codeceptjs/command','VERSION','getPwChannelLogPath','fuuMO','HST','debug','parserConfiguration','mpsoD','--no-package','integrations','SDKTestSuccessful','push','10PTDzOG','OWwcE','EyPKg'];a55_0x204f=function(){return _0x382702;};return a55_0x204f();}process['argv'][a55_0x354a51(0x1a1)](a55_0x354a51(0x198))&&(!process['argv'][a55_0x354a51(0x1a1)](a55_0x354a51(0x193))&&process[a55_0x354a51(0x1de)]['push'](a55_0x354a51(0x1c1)),!process[a55_0x354a51(0x1de)][a55_0x354a51(0x229)](_0x1ba60c=>_0x1ba60c[a55_0x354a51(0x1a1)]('--config'))&&process[a55_0x354a51(0x1de)]['push']('--no-config'),!process[a55_0x354a51(0x1de)][a55_0x354a51(0x1a1)](a55_0x354a51(0x191))&&process[a55_0x354a51(0x1de)][a55_0x354a51(0x205)](a55_0x354a51(0x202)),helper[a55_0x354a51(0x1d7)](process[a55_0x354a51(0x1de)],'--require',a55_0x354a51(0x20e)));function a55_0x47e0(_0x486f53,_0x1e6ca1){const _0x204f0e=a55_0x204f();return a55_0x47e0=function(_0x47e0b3,_0x205bbe){_0x47e0b3=_0x47e0b3-0x190;let _0x22f02e=_0x204f0e[_0x47e0b3];return _0x22f02e;},a55_0x47e0(_0x486f53,_0x1e6ca1);}PerformanceTester[a55_0x354a51(0x1ae)](PerformanceEvents[a55_0x354a51(0x19e)]);const a55_0x3d4803={};a55_0x3d4803[a55_0x354a51(0x1cb)]=![];const argv=yargs[a55_0x354a51(0x200)](a55_0x3d4803)['usage'](a55_0x354a51(0x1f9))[a55_0x354a51(0x224)]('v',a55_0x354a51(0x220))[a55_0x354a51(0x1d9)]('v')[a55_0x354a51(0x224)]('h',a55_0x354a51(0x212))[a55_0x354a51(0x212)](a55_0x354a51(0x212))[a55_0x354a51(0x22d)](!![],Constants[a55_0x354a51(0x1fb)]['HELP'])[a55_0x354a51(0x1b9)]('jest',Constants[a55_0x354a51(0x225)]['INFO'],function(_0x1d6a73){const _0x36e093=a55_0x354a51,_0x2f8fce={'nAEwO':_0x36e093(0x21a),'oTvLw':function(_0x3f04d0,_0xb580e7,_0x4fc30a,_0x2a7c9b,_0x52ee69,_0x30cb22){return _0x3f04d0(_0xb580e7,_0x4fc30a,_0x2a7c9b,_0x52ee69,_0x30cb22);},'pfIbG':function(_0x367f92,_0x25ddb6){return _0x367f92(_0x25ddb6);},'PXzEV':'./jest/command'},_0x30da7d=process[_0x36e093(0x1de)]['slice'](0x2);helper[_0x36e093(0x19f)](),helper[_0x36e093(0x1ed)](),_0x1d6a73['strict'](![]);const _0x27139=new BrowserStackSetup(_0x1d6a73[_0x36e093(0x1de)],_0x2f8fce['nAEwO']);return _0x2f8fce[_0x36e093(0x1a3)](captureError,_0x2f8fce['pfIbG'](require,_0x2f8fce[_0x36e093(0x1d1)]),_0x1d6a73['argv'],_0x27139,_0x30da7d,!![]);})[a55_0x354a51(0x1b9)]('mocha',Constants['MOCHA']['INFO'],_0x4f59f5=>{const _0x1f4460=a55_0x354a51,_0x9f4e5c={'nZKJS':function(_0x44f06c,_0xecb49c,_0x31cbc2,_0x372731){return _0x44f06c(_0xecb49c,_0x31cbc2,_0x372731);},'AXmNn':function(_0x244bbd,_0x47488a){return _0x244bbd(_0x47488a);},'atUaC':_0x1f4460(0x1b8),'sauan':'mocha','Lhzyq':'Parsing\x20command\x20line\x20arguments','GQuqZ':function(_0xd496aa,_0x4f1ffe,_0x2183d7){return _0xd496aa(_0x4f1ffe,_0x2183d7);},'PBHsr':'mocha/lib/cli/run.js','CASiq':function(_0x1de4fd,_0x20c2b7,_0x26b411){return _0x1de4fd(_0x20c2b7,_0x26b411);},'EyPKg':'mocha/lib/cli/commands.js','NMUZT':'mocha/lib/cli/cli.js','VNfWf':function(_0x57538e){return _0x57538e();}};process[_0x1f4460(0x1de)]=process['argv'][_0x1f4460(0x20b)](0x1),helper[_0x1f4460(0x19f)](),helper[_0x1f4460(0x1ed)]();const _0x52794a=new BrowserStackSetup(_0x4f59f5['argv'],_0x9f4e5c['sauan']);logger['debug'](_0x9f4e5c[_0x1f4460(0x1d6)]);const _0x22dc14=_0x9f4e5c[_0x1f4460(0x1be)](requireModule,_0x9f4e5c[_0x1f4460(0x1f4)],_0x9f4e5c[_0x1f4460(0x1d8)]),_0x5a9992=_0x9f4e5c[_0x1f4460(0x1cf)](requireModule,_0x9f4e5c[_0x1f4460(0x208)],_0x9f4e5c['sauan']);delete _0x22dc14[_0x1f4460(0x1c5)],_0x22dc14[_0x1f4460(0x1c5)]=function(_0x2e3ffd){const _0x6b2a82=_0x1f4460;return _0x9f4e5c[_0x6b2a82(0x1aa)](captureError,_0x9f4e5c['AXmNn'](require,_0x9f4e5c[_0x6b2a82(0x217)]),_0x2e3ffd,_0x52794a);},_0x5a9992[_0x1f4460(0x1b4)]=_0x22dc14;const {main:_0x41b07c}=_0x9f4e5c[_0x1f4460(0x1cf)](requireModule,_0x9f4e5c[_0x1f4460(0x1c6)],_0x9f4e5c[_0x1f4460(0x1d8)]);_0x9f4e5c['VNfWf'](_0x41b07c);})[a55_0x354a51(0x1b9)](a55_0x354a51(0x192),Constants[a55_0x354a51(0x1e5)]['INFO'],function(_0x50e555){const _0x3c11cb=a55_0x354a51,_0x16dac9={'Jayzc':_0x3c11cb(0x192),'PVrWQ':function(_0x54260d,_0x6487d3,_0x2a9488,_0x138bf4,_0x57ffe8,_0x34db7b){return _0x54260d(_0x6487d3,_0x2a9488,_0x138bf4,_0x57ffe8,_0x34db7b);},'sVVDn':function(_0x34790a,_0x3d0d96){return _0x34790a(_0x3d0d96);},'jlUcR':_0x3c11cb(0x20f)},_0x3980a7=process[_0x3c11cb(0x1de)][_0x3c11cb(0x20b)](0x2),_0x119e55=new BrowserStackSetup(_0x50e555['argv'],_0x16dac9[_0x3c11cb(0x1b7)]);return _0x16dac9[_0x3c11cb(0x1e1)](captureError,_0x16dac9[_0x3c11cb(0x1a0)](require,_0x16dac9[_0x3c11cb(0x1a9)]),_0x50e555['argv'],_0x119e55,_0x3980a7,!![]);})[a55_0x354a51(0x1b9)]('node',Constants[a55_0x354a51(0x1b3)][a55_0x354a51(0x1a5)],function(_0x2313c9){const _0x49f076=a55_0x354a51,_0x4ecdbd={'pZkrr':_0x49f076(0x1ee),'YmWwM':function(_0x2ad694,_0x7c6f9a){return _0x2ad694(_0x7c6f9a);},'XpXso':_0x49f076(0x1c4),'WYvmU':function(_0x2976b5,_0x507325,_0x1c2d47,_0x54b974,_0x2d2e89){return _0x2976b5(_0x507325,_0x1c2d47,_0x54b974,_0x2d2e89);},'MpFwi':function(_0x2b2746,_0x186bfa){return _0x2b2746(_0x186bfa);},'ZHkIF':_0x49f076(0x1b5),'IDuLr':_0x49f076(0x1a8)},_0x73d064=process['argv'][_0x49f076(0x20b)](0x2),_0x51bba4=new BrowserStackSetup(_0x2313c9[_0x49f076(0x1de)],_0x4ecdbd[_0x49f076(0x196)]),_0x21527a=_0x51bba4?_0x51bba4[_0x49f076(0x1c3)]:null;if(_0x4ecdbd[_0x49f076(0x1e3)](isNewman,_0x21527a))return _0x51bba4[_0x49f076(0x1af)]=_0x4ecdbd[_0x49f076(0x219)],global[_0x49f076(0x1af)]=_0x4ecdbd[_0x49f076(0x219)],_0x4ecdbd['WYvmU'](captureError,_0x4ecdbd['MpFwi'](require,_0x4ecdbd[_0x49f076(0x1e7)]),_0x2313c9['argv'],_0x51bba4,_0x73d064);return _0x4ecdbd[_0x49f076(0x1df)](captureError,_0x4ecdbd['YmWwM'](require,_0x4ecdbd[_0x49f076(0x19b)]),_0x2313c9['argv'],_0x51bba4,_0x73d064);})['command'](a55_0x354a51(0x1bc),Constants[a55_0x354a51(0x226)][a55_0x354a51(0x1a5)],function(_0x2c1022){const _0x2c697f=a55_0x354a51,_0x341d66={'OesUA':function(_0x32e77e,_0x755527,_0x27f36a,_0x349fc0,_0x25bf1b){return _0x32e77e(_0x755527,_0x27f36a,_0x349fc0,_0x25bf1b);},'maPOl':function(_0x47f1a7,_0x433326){return _0x47f1a7(_0x433326);},'uRJVi':_0x2c697f(0x222)},_0x176754=process[_0x2c697f(0x1de)][_0x2c697f(0x20b)](0x2),_0x2f7677=new BrowserStackSetup(_0x2c1022[_0x2c697f(0x1de)]);return _0x341d66['OesUA'](captureError,_0x341d66[_0x2c697f(0x1f0)](require,_0x341d66[_0x2c697f(0x1eb)]),_0x2c1022[_0x2c697f(0x1de)],_0x2f7677,_0x176754);})[a55_0x354a51(0x1b9)]('codeceptjs',Constants[a55_0x354a51(0x218)][a55_0x354a51(0x1a5)],function(_0x179063){const _0x1241f4=a55_0x354a51,_0x299cf8={'NYsLj':'codeceptjs','bKZLX':function(_0xe57a5b,_0x3c6142,_0x4d9bec,_0x482bed,_0x3b9d5f){return _0xe57a5b(_0x3c6142,_0x4d9bec,_0x482bed,_0x3b9d5f);},'kpbJE':function(_0x5c6892,_0x1a61c0){return _0x5c6892(_0x1a61c0);},'fuuMO':_0x1241f4(0x1fa)},_0x338e8b=process[_0x1241f4(0x1de)][_0x1241f4(0x20b)](0x2),_0xa8933f=new BrowserStackSetup(_0x179063[_0x1241f4(0x1de)],_0x299cf8[_0x1241f4(0x21e)]);return _0x299cf8[_0x1241f4(0x1a2)](captureError,_0x299cf8['kpbJE'](require,_0x299cf8[_0x1241f4(0x1fd)]),_0x179063['argv'],_0xa8933f,_0x338e8b);})[a55_0x354a51(0x1b9)](a55_0x354a51(0x197),Constants[a55_0x354a51(0x1fe)][a55_0x354a51(0x1a5)],function(_0x1f5d58){const _0x4256a7=a55_0x354a51,_0x1d7583={'xKntz':function(_0x5a9a3e,_0xc3cbe0,_0x342e60){return _0x5a9a3e(_0xc3cbe0,_0x342e60);},'kRYne':function(_0x39ac1f,_0x318f36){return _0x39ac1f(_0x318f36);},'HVpoZ':_0x4256a7(0x1cd)},_0x22504d=process['argv'][_0x4256a7(0x20b)](0x2);return _0x1d7583[_0x4256a7(0x19c)](captureError,_0x1d7583['kRYne'](require,_0x1d7583['HVpoZ']),_0x1f5d58);})[a55_0x354a51(0x1b9)](a55_0x354a51(0x203),Constants[a55_0x354a51(0x19a)][a55_0x354a51(0x1a5)],function(_0x1f90d5){const _0x4fea2b=a55_0x354a51,_0x4168c7={'alPUk':function(_0x450255,_0x344f53){return _0x450255(_0x344f53);}};return _0x4168c7[_0x4fea2b(0x1c2)](runIntegrations,_0x1f90d5);})[a55_0x354a51(0x1b9)](a55_0x354a51(0x1ba),Constants[a55_0x354a51(0x1e8)][a55_0x354a51(0x1a5)],function(_0x44f180){const _0x361de3=a55_0x354a51,_0x4f37e9={'eTWrI':_0x361de3(0x1d2),'dEqdh':function(_0x3c8ce8,_0x17376b){return _0x3c8ce8&&_0x17376b;},'duXOL':function(_0x59f911,_0x5e959a,_0x31dcf2,_0x37a706,_0x44a74c,_0x33a6cd){return _0x59f911(_0x5e959a,_0x31dcf2,_0x37a706,_0x44a74c,_0x33a6cd);},'VSUTV':function(_0x58e493,_0x22ca95){return _0x58e493(_0x22ca95);},'enPoD':'./playwright/command'},_0x2c1cd8=process[_0x361de3(0x1de)][_0x361de3(0x20b)](0x2);helper[_0x361de3(0x1f8)](process[_0x361de3(0x1de)])&&(process[_0x361de3(0x1ce)][_0x361de3(0x1a7)]=helper[_0x361de3(0x1f8)](process[_0x361de3(0x1de)]));helper[_0x361de3(0x19f)](),helper[_0x361de3(0x1ed)]();const _0xc5c555=new BrowserStackSetup(_0x44f180['argv'],FRAMEWORKS[_0x361de3(0x1e8)]);try{if(!_0xc5c555[_0x361de3(0x1c3)]||!_0xc5c555[_0x361de3(0x1c3)][_0x361de3(0x20c)]){const _0x44fcfa=_0x4f37e9[_0x361de3(0x1f3)],_0x976a89=process[_0x361de3(0x1ce)][_0x361de3(0x190)]||'',_0x26d277=_0x976a89[_0x361de3(0x1ef)](',')[_0x361de3(0x1b1)](_0x3a0ce6=>_0x3a0ce6[_0x361de3(0x1f7)]())[_0x361de3(0x1f6)](Boolean),_0x484676=_0x26d277[_0x361de3(0x21d)](_0xa8260a=>_0xa8260a==='-pw:channel'||_0xa8260a==='-pw:*'||_0xa8260a==='-*'),_0x5c7f78=_0x26d277[_0x361de3(0x21d)](_0x37a702=>_0x37a702===_0x44fcfa||_0x37a702===_0x361de3(0x1ca)||_0x37a702==='*');if(_0x4f37e9[_0x361de3(0x21c)](!_0x484676,!_0x5c7f78)){const _0x33033e=helper[_0x361de3(0x1fc)]();_0x33033e&&(process[_0x361de3(0x1ce)][_0x361de3(0x190)]=_0x976a89?_0x976a89+','+_0x44fcfa:_0x44fcfa,!process[_0x361de3(0x1ce)][_0x361de3(0x1c9)]&&(process[_0x361de3(0x1ce)]['DEBUG_FILE']=_0x33033e));}}}catch(_0x57aba3){logger['debug'](_0x361de3(0x1e4)+util['format'](_0x57aba3));}return _0x4f37e9[_0x361de3(0x1e9)](captureError,_0x4f37e9[_0x361de3(0x1ea)](require,_0x4f37e9[_0x361de3(0x1d4)]),_0x44f180['argv'],_0xc5c555,_0x2c1cd8,!![]);})[a55_0x354a51(0x1b9)](a55_0x354a51(0x1cc),a55_0x354a51(0x19d),function(_0x56f1f7){const _0x48d774=a55_0x354a51,_0x49b4db={};_0x49b4db['uPpll']=_0x48d774(0x212),_0x49b4db[_0x48d774(0x1bd)]='boolean',_0x49b4db[_0x48d774(0x207)]=_0x48d774(0x1e6);const _0x5849b2=_0x49b4db;return _0x56f1f7[_0x48d774(0x212)](![])[_0x48d774(0x223)](_0x5849b2['uPpll'],{'alias':'h','type':_0x5849b2[_0x48d774(0x1bd)],'describe':_0x5849b2['OWwcE']})[_0x48d774(0x199)](![])['exitProcess'](![]);},function(_0xa01947){const _0x7fe402=a55_0x354a51,_0xf8e487={'tgffo':function(_0x136ab8,_0x4bf153,_0x5d346d){return _0x136ab8(_0x4bf153,_0x5d346d);},'gOoMu':function(_0x4f916a,_0x515b78){return _0x4f916a(_0x515b78);},'mpsoD':'./load/index'},_0x180756={};return _0x180756[_0x7fe402(0x1de)]=_0xa01947,_0xf8e487[_0x7fe402(0x22b)](captureError,_0xf8e487[_0x7fe402(0x1d0)](require,_0xf8e487[_0x7fe402(0x201)]),_0x180756);})['command'](a55_0x354a51(0x1c4),Constants['NEWMAN'][a55_0x354a51(0x1a5)],function(_0x487c34){const _0x2f91b2=a55_0x354a51,_0x192e11={'LgpuC':'newman','KoKOm':function(_0x28334e,_0xdf5351,_0x420cc3,_0x2d5c59,_0x15c235){return _0x28334e(_0xdf5351,_0x420cc3,_0x2d5c59,_0x15c235);},'djNOf':function(_0x171ba2,_0x1a5f53){return _0x171ba2(_0x1a5f53);},'EZKpa':_0x2f91b2(0x1b5)},_0xd8f330=process[_0x2f91b2(0x1de)]['slice'](0x2);helper[_0x2f91b2(0x19f)](),helper[_0x2f91b2(0x1ed)](),_0x487c34['strict'](![]);const _0x58e24e=new BrowserStackSetup(_0x487c34[_0x2f91b2(0x1de)],_0x192e11['LgpuC']);return _0x192e11[_0x2f91b2(0x221)](captureError,_0x192e11[_0x2f91b2(0x215)](require,_0x192e11[_0x2f91b2(0x194)]),_0x487c34[_0x2f91b2(0x1de)],_0x58e24e,_0xd8f330);})['demandCommand'](0x1,'You\x20need\x20at\x20least\x20one\x20command\x20before\x20moving\x20on.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.')[a55_0x354a51(0x1db)](null)[a55_0x354a51(0x1de)];!helper[a55_0x354a51(0x21b)](argv['_'])&&!argv['_'][0x1]&&argv['_'][0x0]!==a55_0x354a51(0x197)&&console['error']('Not\x20a\x20valid\x20command.\x20Check\x20help\x20and\x20provide\x20a\x20valid\x20command.');
package/src/bin/setup.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const a56_0x8ea6fe=a56_0x48c1;function a56_0x58c7(){const _0x2bfddd=['14339962DtJITw','../helpers/helper','czLMY','scripts','../helpers/utilities','node-setup','yargs','../helpers/logger','VprEJ','YOUR_ACCESS_KEY','/package.json','argv','error','js-yaml','push','entries','codeceptjs','rpUCi','stringify','cucumber-js','Unsqh','VRORk','2GtgExB','indexOf','1719SsLHlV','5bMRSIC','cwd','whRUb','postinstall','914868GIvgpJ','CgjWC','aIohH','debug','includes','utf8','kaTMA','browserstack-node-sdk','2585889WJHoqW','jest','bJdET','2739918HbPPLI','RABmz','-browserstack','zwpBV','10tZVGQP','55YcIKBh','length','Setup\x20completed','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','splice','2480xmPqAJ','bmxjz','Creating\x20configuration\x20file...','112LVHzlM','split','npm\x20update\x20browserstack-node-sdk','playwright','/../../browserstack.pw.yml.sample','parse','lXFwQ','Yodft','\x20&&\x20npm\x20update\x20browserstack-node-sdk','oAyuX','replace','readFileSync','info','YOUR_USERNAME','396918NTfTva','source','mocha','/browserstack.yml','zuQAU','/../../browserstack.yml.sample','key','writeFileSync','134141lmDpgT','14DCqmYf','SDKSetup','node'];a56_0x58c7=function(){return _0x2bfddd;};return a56_0x58c7();}(function(_0x3b9848,_0x22dc6d){const _0x4a5ed7=a56_0x48c1,_0x1c767a=_0x3b9848();while(!![]){try{const _0x45f39d=-parseInt(_0x4a5ed7(0xf4))/0x1*(parseInt(_0x4a5ed7(0xd2))/0x2)+parseInt(_0x4a5ed7(0xf6))/0x3*(parseInt(_0x4a5ed7(0xc1))/0x4)+-parseInt(_0x4a5ed7(0xf7))/0x5*(-parseInt(_0x4a5ed7(0x106))/0x6)+-parseInt(_0x4a5ed7(0xda))/0x7*(-parseInt(_0x4a5ed7(0xc4))/0x8)+-parseInt(_0x4a5ed7(0x103))/0x9*(-parseInt(_0x4a5ed7(0x10a))/0xa)+-parseInt(_0x4a5ed7(0x10b))/0xb*(-parseInt(_0x4a5ed7(0xfb))/0xc)+parseInt(_0x4a5ed7(0xde))/0xd*(-parseInt(_0x4a5ed7(0xdb))/0xe);if(_0x45f39d===_0x22dc6d)break;else _0x1c767a['push'](_0x1c767a['shift']());}catch(_0x156f51){_0x1c767a['push'](_0x1c767a['shift']());}}}(a56_0x58c7,0x3cb8f));function a56_0x48c1(_0x434715,_0x564ff0){const _0x58c751=a56_0x58c7();return a56_0x48c1=function(_0x48c16f,_0x28ebe9){_0x48c16f=_0x48c16f-0xbf;let _0x35d5d5=_0x58c751[_0x48c16f];return _0x35d5d5;},a56_0x48c1(_0x434715,_0x564ff0);}const fs=require('fs'),helper=require(a56_0x8ea6fe(0xdf)),utilities=require(a56_0x8ea6fe(0xe2)),yaml=require(a56_0x8ea6fe(0xeb)),yargs=require(a56_0x8ea6fe(0xe4)),logger=require(a56_0x8ea6fe(0xe5))['winstonLogger'],configFileTemplate=__dirname+a56_0x8ea6fe(0xd7),configFileTemplatePW=__dirname+a56_0x8ea6fe(0xc8),configFile=process[a56_0x8ea6fe(0xf8)]()+a56_0x8ea6fe(0xd5),packageFile=process[a56_0x8ea6fe(0xf8)]()+a56_0x8ea6fe(0xe8),frameworks=[a56_0x8ea6fe(0xd4),a56_0x8ea6fe(0x104),a56_0x8ea6fe(0xf1),a56_0x8ea6fe(0xdd),'nightwatch',a56_0x8ea6fe(0xee),a56_0x8ea6fe(0xc7)];let config;logger['info'](a56_0x8ea6fe(0xc3)),createConfigurationFile(yargs[a56_0x8ea6fe(0xe9)]['username'],yargs[a56_0x8ea6fe(0xe9)][a56_0x8ea6fe(0xd8)],yargs[a56_0x8ea6fe(0xe9)][a56_0x8ea6fe(0xc7)]);try{sdkSetup();}catch(a56_0x56e1ac){logger[a56_0x8ea6fe(0xfe)](a56_0x8ea6fe(0xbf)+a56_0x56e1ac);}addScriptInPackageJson();function createConfigurationFile(_0x266b87,_0x560a80,_0x5c9874=![]){const _0x3de8bc=a56_0x8ea6fe,_0x440e9d={};_0x440e9d[_0x3de8bc(0xcd)]='utf8',_0x440e9d[_0x3de8bc(0xfd)]=_0x3de8bc(0xd1),_0x440e9d[_0x3de8bc(0xc2)]=_0x3de8bc(0xe7);const _0x59040b=_0x440e9d;try{let _0x5ebf45=fs[_0x3de8bc(0xcf)](_0x5c9874?configFileTemplatePW:configFileTemplate,_0x59040b[_0x3de8bc(0xcd)]);_0x266b87&&(_0x5ebf45=_0x5ebf45[_0x3de8bc(0xce)](_0x59040b[_0x3de8bc(0xfd)],_0x266b87)),_0x560a80&&(_0x5ebf45=_0x5ebf45[_0x3de8bc(0xce)](_0x59040b[_0x3de8bc(0xc2)],_0x560a80)),config=yaml['load'](_0x5ebf45),fs[_0x3de8bc(0xd9)](configFile,_0x5ebf45,_0x59775e=>{const _0x59c139=_0x3de8bc;_0x59775e&&logger[_0x59c139(0xea)](_0x59775e);});}catch(_0x1b831f){logger[_0x3de8bc(0xea)](_0x1b831f);}}function addPostInstallScript(_0x3da76e,_0x13c3e0){const _0x5e7198=a56_0x8ea6fe,_0x2d9a82={};_0x2d9a82['Unsqh']=_0x5e7198(0xfa),_0x2d9a82[_0x5e7198(0xcb)]=_0x5e7198(0xc6),_0x2d9a82[_0x5e7198(0xf9)]=_0x5e7198(0xcc);const _0x2fde93=_0x2d9a82;let _0x440bdc=_0x3da76e[_0x2fde93[_0x5e7198(0xf2)]];if(_0x440bdc&&_0x440bdc[_0x5e7198(0xff)](_0x2fde93[_0x5e7198(0xcb)]))return;!_0x440bdc?_0x440bdc=_0x2fde93[_0x5e7198(0xcb)]:_0x440bdc+=_0x2fde93['whRUb'],_0x13c3e0['push']([_0x2fde93[_0x5e7198(0xf2)],_0x440bdc]);}function addScriptInPackageJson(){const _0x2fd7b7=a56_0x8ea6fe,_0x374f5d={'bJdET':_0x2fd7b7(0x100),'VRORk':function(_0x5c7932,_0x411098){return _0x5c7932<_0x411098;},'VprEJ':function(_0x2ae1a3,_0x5cafd5,_0x150c89){return _0x2ae1a3(_0x5cafd5,_0x150c89);},'edaAx':function(_0x25af4d,_0x123aa9){return _0x25af4d<_0x123aa9;},'EuSHx':function(_0x3d6028,_0x526d6e,_0x2d2655){return _0x3d6028(_0x526d6e,_0x2d2655);},'kaTMA':function(_0x398159,_0x2f2c58){return _0x398159<_0x2f2c58;},'ElCrL':function(_0x43d2d5,_0x1231a7){return _0x43d2d5!==_0x1231a7;},'VXZeB':'Adding\x20new\x20script(s)\x20in\x20package.json...'},_0x363772=JSON[_0x2fd7b7(0xc9)](fs['readFileSync'](packageFile,_0x374f5d[_0x2fd7b7(0x105)])),_0x1ac452=[];for(let _0xf35066=0x0;_0x374f5d[_0x2fd7b7(0xf3)](_0xf35066,frameworks[_0x2fd7b7(0x10c)]);_0xf35066+=0x1){const _0x2392aa=_0x374f5d[_0x2fd7b7(0xe6)](findScriptsWithFramework,_0x363772[_0x2fd7b7(0xe1)],frameworks[_0xf35066]);for(let _0x3e51ae=0x0;_0x374f5d['edaAx'](_0x3e51ae,_0x2392aa[_0x2fd7b7(0x10c)]);_0x3e51ae+=0x1){_0x1ac452[_0x2fd7b7(0xec)](_0x374f5d[_0x2fd7b7(0xe6)](getUpdatedCommand,_0x363772[_0x2fd7b7(0xe1)],_0x2392aa[_0x3e51ae]));}_0x374f5d['EuSHx'](addPostInstallScript,_0x363772[_0x2fd7b7(0xe1)],_0x1ac452);}const _0x437945={..._0x363772[_0x2fd7b7(0xe1)]},_0x1f54f3=_0x437945;for(let _0x42444a=0x0;_0x374f5d[_0x2fd7b7(0x101)](_0x42444a,_0x1ac452[_0x2fd7b7(0x10c)]);_0x42444a+=0x1){_0x1f54f3[_0x1ac452[_0x42444a][0x0]]=_0x1ac452[_0x42444a][0x1];}_0x374f5d['ElCrL'](JSON[_0x2fd7b7(0xf0)](_0x363772[_0x2fd7b7(0xe1)]),JSON[_0x2fd7b7(0xf0)](_0x1f54f3))&&(logger[_0x2fd7b7(0xd0)](_0x374f5d['VXZeB']),_0x363772['scripts']=_0x1f54f3,fs['writeFileSync'](packageFile,JSON[_0x2fd7b7(0xf0)](_0x363772,null,0x2),_0x249af3=>{const _0x1ee050=_0x2fd7b7;_0x249af3&&logger[_0x1ee050(0xea)](_0x249af3);}));};function findScriptsWithFramework(_0x287c15,_0x344505){const _0x30c34d=a56_0x8ea6fe,_0x5acf0={};_0x5acf0[_0x30c34d(0x109)]=function(_0x41931a,_0x52b399){return _0x41931a<_0x52b399;},_0x5acf0[_0x30c34d(0xd6)]=_0x30c34d(0x102);const _0x24f722=_0x5acf0,_0x460f15=[],_0x2dac05=Object[_0x30c34d(0xed)](_0x287c15);for(let _0x55a673=0x0;_0x24f722[_0x30c34d(0x109)](_0x55a673,_0x2dac05['length']);_0x55a673+=0x1){_0x2dac05[_0x55a673][0x1]['includes'](_0x344505)&&!_0x2dac05[_0x55a673][0x1][_0x30c34d(0xff)](_0x24f722[_0x30c34d(0xd6)])&&_0x460f15['push'](_0x2dac05[_0x55a673][0x0]);}return _0x460f15;}function getUpdatedCommand(_0x3f5b26,_0x480265){const _0x369f81=a56_0x8ea6fe,_0x119ba8={};_0x119ba8[_0x369f81(0xef)]=function(_0x5b3e03,_0xda9090){return _0x5b3e03!==_0xda9090;},_0x119ba8[_0x369f81(0xfc)]=_0x369f81(0x102),_0x119ba8[_0x369f81(0xca)]=function(_0x50f0bd,_0x2e44f6){return _0x50f0bd===_0x2e44f6;};const _0x4fea5=_0x119ba8,_0x49bb73=_0x480265+_0x369f81(0x108),_0x57d9fe=_0x3f5b26[_0x480265],_0x2ab6b6=_0x57d9fe[_0x369f81(0xc5)]('\x20');for(const _0x1edb17 of frameworks){if(_0x4fea5[_0x369f81(0xef)](_0x2ab6b6[_0x369f81(0xf5)](_0x1edb17),-0x1)){_0x2ab6b6[_0x369f81(0xc0)](_0x2ab6b6[_0x369f81(0xf5)](_0x1edb17),0x0,_0x4fea5[_0x369f81(0xfc)]);break;}}let _0x252694=_0x2ab6b6['join']('\x20');return _0x4fea5[_0x369f81(0xca)](_0x252694,_0x57d9fe)&&(_0x252694='browserstack-node-sdk\x20'+_0x57d9fe),[_0x49bb73,_0x252694];}function sdkSetup(){const _0x3a602d=a56_0x8ea6fe,_0x595307={};_0x595307[_0x3a602d(0x107)]=_0x3a602d(0xe3),_0x595307['czLMY']=_0x3a602d(0xdc);const _0x10974a=_0x595307;if(helper['isUndefined'](config))return;config[_0x3a602d(0xd3)]=_0x10974a['RABmz'];try{utilities['fireFunnelTestEvent'](_0x10974a[_0x3a602d(0xe0)],{},config,'');}catch(_0x2eb467){logger[_0x3a602d(0xfe)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+_0x2eb467);}}logger[a56_0x8ea6fe(0xd0)](a56_0x8ea6fe(0x10d));
3
+ const a56_0x48d828=a56_0x5b7a;(function(_0x3edfa1,_0x91e329){const _0x5d5021=a56_0x5b7a,_0xc5072a=_0x3edfa1();while(!![]){try{const _0x2566da=-parseInt(_0x5d5021(0x13a))/0x1*(-parseInt(_0x5d5021(0x16e))/0x2)+-parseInt(_0x5d5021(0x13d))/0x3+-parseInt(_0x5d5021(0x161))/0x4*(-parseInt(_0x5d5021(0x153))/0x5)+-parseInt(_0x5d5021(0x14d))/0x6+-parseInt(_0x5d5021(0x139))/0x7*(-parseInt(_0x5d5021(0x142))/0x8)+-parseInt(_0x5d5021(0x14a))/0x9+-parseInt(_0x5d5021(0x13f))/0xa*(-parseInt(_0x5d5021(0x147))/0xb);if(_0x2566da===_0x91e329)break;else _0xc5072a['push'](_0xc5072a['shift']());}catch(_0x57c558){_0xc5072a['push'](_0xc5072a['shift']());}}}(a56_0x1776,0x5b847));const fs=require('fs'),helper=require('../helpers/helper'),utilities=require(a56_0x48d828(0x12e)),yaml=require('js-yaml'),yargs=require(a56_0x48d828(0x155)),logger=require('../helpers/logger')[a56_0x48d828(0x136)],configFileTemplate=__dirname+a56_0x48d828(0x159),configFileTemplatePW=__dirname+a56_0x48d828(0x143),configFile=process[a56_0x48d828(0x166)]()+'/browserstack.yml',packageFile=process[a56_0x48d828(0x166)]()+a56_0x48d828(0x168),frameworks=['mocha',a56_0x48d828(0x144),a56_0x48d828(0x14c),a56_0x48d828(0x13b),'nightwatch',a56_0x48d828(0x141),'playwright'];let config;function a56_0x5b7a(_0x286fb4,_0x3545aa){const _0x17767b=a56_0x1776();return a56_0x5b7a=function(_0x5b7a9c,_0x4e53bf){_0x5b7a9c=_0x5b7a9c-0x127;let _0x2116eb=_0x17767b[_0x5b7a9c];return _0x2116eb;},a56_0x5b7a(_0x286fb4,_0x3545aa);}logger[a56_0x48d828(0x164)]('Creating\x20configuration\x20file...'),createConfigurationFile(yargs[a56_0x48d828(0x149)]['username'],yargs['argv'][a56_0x48d828(0x13e)],yargs[a56_0x48d828(0x149)][a56_0x48d828(0x163)]);try{sdkSetup();}catch(a56_0x4b9914){logger[a56_0x48d828(0x158)]('Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20'+a56_0x4b9914);}addScriptInPackageJson();function a56_0x1776(){const _0x439c4=['npm\x20update\x20browserstack-node-sdk','argv','665451FTJgCr','indexOf','cucumber-js','2769474FETPav','load','tuoKB','BqlqA','join','Error\x20in\x20Fire\x20SDKSetup.\x20Stacktrace:\x20','11675WwAJgh','Kqqnk','yargs','SDKSetup','Yuyxj','debug','/../../browserstack.yml.sample','splice','EQAxJ','cMaEm','length','node-setup','split','readFileSync','1192Dbqtuc','YOUR_USERNAME','playwright','info','writeFileSync','cwd','tnMtD','/package.json','scripts','OrJUu','source','stringify','VCwgL','2uPZesk','parse','Jjlav','utf8','OLmXI','includes','sNQdy','sNkgA','nTzqU','Bldvv','../helpers/utilities','push','postinstall','ZyKSU','error','fbWKI','entries','fireFunnelTestEvent','winstonLogger','etDfS','\x20&&\x20npm\x20update\x20browserstack-node-sdk','4305854PaXFHg','193113ctlpNH','node','UwvOI','2149245WjKvgg','key','1227230uodcMa','browserstack-node-sdk','codeceptjs','8Zwfsxb','/../../browserstack.pw.yml.sample','jest','-browserstack','YOUR_ACCESS_KEY','11xwuGhc'];a56_0x1776=function(){return _0x439c4;};return a56_0x1776();}function createConfigurationFile(_0x3f3838,_0x32e17d,_0x79ea20=![]){const _0x2ce52d=a56_0x48d828,_0x25fd3f={};_0x25fd3f['tnMtD']=_0x2ce52d(0x127),_0x25fd3f[_0x2ce52d(0x137)]=_0x2ce52d(0x162),_0x25fd3f[_0x2ce52d(0x16d)]=_0x2ce52d(0x146);const _0x5a69fc=_0x25fd3f;try{let _0x3e8edf=fs[_0x2ce52d(0x160)](_0x79ea20?configFileTemplatePW:configFileTemplate,_0x5a69fc[_0x2ce52d(0x167)]);_0x3f3838&&(_0x3e8edf=_0x3e8edf['replace'](_0x5a69fc['etDfS'],_0x3f3838)),_0x32e17d&&(_0x3e8edf=_0x3e8edf['replace'](_0x5a69fc[_0x2ce52d(0x16d)],_0x32e17d)),config=yaml[_0x2ce52d(0x14e)](_0x3e8edf),fs[_0x2ce52d(0x165)](configFile,_0x3e8edf,_0x1923ab=>{const _0xf2ebb4=_0x2ce52d;_0x1923ab&&logger[_0xf2ebb4(0x132)](_0x1923ab);});}catch(_0x4410c9){logger[_0x2ce52d(0x132)](_0x4410c9);}}function addPostInstallScript(_0x42010b,_0x58cbb4){const _0x55f0ad=a56_0x48d828,_0x2528cd={};_0x2528cd[_0x55f0ad(0x150)]=_0x55f0ad(0x130),_0x2528cd[_0x55f0ad(0x15b)]=_0x55f0ad(0x148),_0x2528cd[_0x55f0ad(0x170)]=_0x55f0ad(0x138);const _0x43e241=_0x2528cd;let _0x1aad47=_0x42010b[_0x43e241[_0x55f0ad(0x150)]];if(_0x1aad47&&_0x1aad47[_0x55f0ad(0x129)](_0x43e241[_0x55f0ad(0x15b)]))return;!_0x1aad47?_0x1aad47=_0x43e241['EQAxJ']:_0x1aad47+=_0x43e241['Jjlav'],_0x58cbb4[_0x55f0ad(0x12f)]([_0x43e241[_0x55f0ad(0x150)],_0x1aad47]);}function addScriptInPackageJson(){const _0x2c312e=a56_0x48d828,_0x27d2fe={'OrJUu':_0x2c312e(0x127),'nTzqU':function(_0xc4533a,_0x3a2ca7){return _0xc4533a<_0x3a2ca7;},'bNRJI':function(_0x187402,_0x282b30,_0x38417a){return _0x187402(_0x282b30,_0x38417a);},'Kqqnk':function(_0x461d80,_0x5144a5){return _0x461d80<_0x5144a5;},'Bldvv':function(_0x472de4,_0x2a50ff,_0x468341){return _0x472de4(_0x2a50ff,_0x468341);},'cMaEm':function(_0x177912,_0x3f2f3b,_0x4190ba){return _0x177912(_0x3f2f3b,_0x4190ba);},'UwvOI':function(_0x1ff468,_0x495f6c){return _0x1ff468!==_0x495f6c;},'fbWKI':'Adding\x20new\x20script(s)\x20in\x20package.json...'},_0x58ec64=JSON[_0x2c312e(0x16f)](fs[_0x2c312e(0x160)](packageFile,_0x27d2fe[_0x2c312e(0x16a)])),_0x1a42d7=[];for(let _0x34a190=0x0;_0x27d2fe[_0x2c312e(0x12c)](_0x34a190,frameworks[_0x2c312e(0x15d)]);_0x34a190+=0x1){const _0x3f19a9=_0x27d2fe['bNRJI'](findScriptsWithFramework,_0x58ec64['scripts'],frameworks[_0x34a190]);for(let _0x1574e8=0x0;_0x27d2fe[_0x2c312e(0x154)](_0x1574e8,_0x3f19a9[_0x2c312e(0x15d)]);_0x1574e8+=0x1){_0x1a42d7['push'](_0x27d2fe[_0x2c312e(0x12d)](getUpdatedCommand,_0x58ec64[_0x2c312e(0x169)],_0x3f19a9[_0x1574e8]));}_0x27d2fe[_0x2c312e(0x15c)](addPostInstallScript,_0x58ec64['scripts'],_0x1a42d7);}const _0x5167b6={..._0x58ec64[_0x2c312e(0x169)]},_0x517056=_0x5167b6;for(let _0x4e002e=0x0;_0x27d2fe[_0x2c312e(0x12c)](_0x4e002e,_0x1a42d7['length']);_0x4e002e+=0x1){_0x517056[_0x1a42d7[_0x4e002e][0x0]]=_0x1a42d7[_0x4e002e][0x1];}_0x27d2fe[_0x2c312e(0x13c)](JSON[_0x2c312e(0x16c)](_0x58ec64[_0x2c312e(0x169)]),JSON[_0x2c312e(0x16c)](_0x517056))&&(logger[_0x2c312e(0x164)](_0x27d2fe[_0x2c312e(0x133)]),_0x58ec64['scripts']=_0x517056,fs[_0x2c312e(0x165)](packageFile,JSON[_0x2c312e(0x16c)](_0x58ec64,null,0x2),_0x1babd4=>{const _0x292c78=_0x2c312e;_0x1babd4&&logger[_0x292c78(0x132)](_0x1babd4);}));};function findScriptsWithFramework(_0x31abe4,_0x1f9d44){const _0x51b3a5=a56_0x48d828,_0x1b7171={};_0x1b7171[_0x51b3a5(0x14f)]=function(_0x2dfa7b,_0x20c05f){return _0x2dfa7b<_0x20c05f;},_0x1b7171[_0x51b3a5(0x131)]=_0x51b3a5(0x140);const _0x33d91d=_0x1b7171,_0x2322e2=[],_0x1812cf=Object[_0x51b3a5(0x134)](_0x31abe4);for(let _0x50e518=0x0;_0x33d91d[_0x51b3a5(0x14f)](_0x50e518,_0x1812cf['length']);_0x50e518+=0x1){_0x1812cf[_0x50e518][0x1]['includes'](_0x1f9d44)&&!_0x1812cf[_0x50e518][0x1][_0x51b3a5(0x129)](_0x33d91d[_0x51b3a5(0x131)])&&_0x2322e2[_0x51b3a5(0x12f)](_0x1812cf[_0x50e518][0x0]);}return _0x2322e2;}function getUpdatedCommand(_0x410cb7,_0x5ed570){const _0x3e7210=a56_0x48d828,_0x42afe6={};_0x42afe6[_0x3e7210(0x12b)]=function(_0x3995e6,_0xff8f70){return _0x3995e6!==_0xff8f70;},_0x42afe6['UDVdv']=_0x3e7210(0x140),_0x42afe6[_0x3e7210(0x128)]=function(_0x5e4f49,_0x56f792){return _0x5e4f49===_0x56f792;};const _0x1884aa=_0x42afe6,_0xb18aba=_0x5ed570+_0x3e7210(0x145),_0x21287d=_0x410cb7[_0x5ed570],_0x18bd58=_0x21287d[_0x3e7210(0x15f)]('\x20');for(const _0x5d5a66 of frameworks){if(_0x1884aa['sNkgA'](_0x18bd58[_0x3e7210(0x14b)](_0x5d5a66),-0x1)){_0x18bd58[_0x3e7210(0x15a)](_0x18bd58[_0x3e7210(0x14b)](_0x5d5a66),0x0,_0x1884aa['UDVdv']);break;}}let _0x145729=_0x18bd58[_0x3e7210(0x151)]('\x20');return _0x1884aa['OLmXI'](_0x145729,_0x21287d)&&(_0x145729='browserstack-node-sdk\x20'+_0x21287d),[_0xb18aba,_0x145729];}function sdkSetup(){const _0x31d5fd=a56_0x48d828,_0x12d501={};_0x12d501[_0x31d5fd(0x12a)]=_0x31d5fd(0x15e),_0x12d501[_0x31d5fd(0x157)]=_0x31d5fd(0x156);const _0x20225b=_0x12d501;if(helper['isUndefined'](config))return;config[_0x31d5fd(0x16b)]=_0x20225b[_0x31d5fd(0x12a)];try{utilities[_0x31d5fd(0x135)](_0x20225b[_0x31d5fd(0x157)],{},config,'');}catch(_0x2936f9){logger[_0x31d5fd(0x158)](_0x31d5fd(0x152)+_0x2936f9);}}logger[a56_0x48d828(0x164)]('Setup\x20completed');
@@ -1 +1 @@
1
- const a57_0x1497ca=a57_0x1fe6;(function(_0xf60220,_0x2e6c7e){const _0x50b63d=a57_0x1fe6,_0x4e7168=_0xf60220();while(!![]){try{const _0x2e37eb=-parseInt(_0x50b63d(0x183))/0x1+parseInt(_0x50b63d(0x182))/0x2+parseInt(_0x50b63d(0x14d))/0x3+-parseInt(_0x50b63d(0x154))/0x4+parseInt(_0x50b63d(0x193))/0x5*(parseInt(_0x50b63d(0x180))/0x6)+parseInt(_0x50b63d(0x158))/0x7+parseInt(_0x50b63d(0x152))/0x8*(-parseInt(_0x50b63d(0x157))/0x9);if(_0x2e37eb===_0x2e6c7e)break;else _0x4e7168['push'](_0x4e7168['shift']());}catch(_0x1d461b){_0x4e7168['push'](_0x4e7168['shift']());}}}(a57_0x4e3f,0xe6063));const Worker=require('jest-worker')['Worker'],Emittery=require(a57_0x1497ca(0x17f)),pLimit=require(a57_0x1497ca(0x198)),{parentPort}=require('worker_threads'),util=require(a57_0x1497ca(0x161)),logger=require(a57_0x1497ca(0x146))[a57_0x1497ca(0x19b)],PerformanceTester=require(a57_0x1497ca(0x16b)),PerformanceEvents=require('../../helpers/performance/constants')['EVENTS'],{debug}=require('../../helpers/test-observability/utils'),TestHubHandler=require(a57_0x1497ca(0x184));exports[a57_0x1497ca(0x151)]=(_0x59fbdf,_0x4ff37d,_0xaa6276)=>new Promise(async _0x18b2fb=>{const _0x4771c0=a57_0x1497ca,_0xf70106={'brFkR':'failureCount','BJVeB':function(_0x4150ca,_0x570041){return _0x4150ca+_0x570041;},'xuAXU':_0x4771c0(0x15e),'yUBpf':'Workers\x20failed\x20to\x20exit\x20gracefully','sZBMR':function(_0x51f88b,_0x43b3c7){return _0x51f88b(_0x43b3c7);},'KnWqx':function(_0x38aee1,_0x47f8e6){return _0x38aee1(_0x47f8e6);},'IaGZb':'test-file-start','IBQFH':_0x4771c0(0x18b),'ekAeX':_0x4771c0(0x159),'pxiQm':_0x4771c0(0x18e),'OqSRq':_0x4771c0(0x188),'GrJzm':function(_0x28417b,_0xa572ab){return _0x28417b*_0xa572ab;},'ErLBt':_0x4771c0(0x187),'CLWQL':'test-file-failure','qBreX':function(_0x5c46a4,_0x32fd68){return _0x5c46a4*_0x32fd68;}},_0x388c9b=_0xaa6276[_0x4771c0(0x142)],_0x2880de={},_0x2e37e2=new Worker(require['resolve'](_0xf70106[_0x4771c0(0x147)]),{'exposedMethods':[_0xf70106['ekAeX']],'forkOptions':{'serialization':_0xf70106[_0x4771c0(0x16a)],'stdio':_0xf70106[_0x4771c0(0x174)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0xf70106[_0x4771c0(0x13c)](_0x4ff37d,0x1),'enableWorkerThreads':!![]}),_0x3ceb02=new Emittery();_0x3ceb02['on'](_0xf70106[_0x4771c0(0x15b)],_0x391d6d=>{const _0x1bd00f=_0x4771c0;_0x2880de[_0x391d6d[0x0]]?(_0x2880de[_0x391d6d[0x0]][_0xf70106[_0x1bd00f(0x185)]]=_0xf70106[_0x1bd00f(0x15f)](_0x2880de[_0x391d6d[0x0]][_0xf70106[_0x1bd00f(0x185)]],_0x391d6d[0x1][_0xf70106['brFkR']]),_0x2880de[_0x391d6d[0x0]][_0xf70106['xuAXU']]=[..._0x2880de[_0x391d6d[0x0]][_0xf70106[_0x1bd00f(0x160)]],..._0x391d6d[0x1][_0xf70106[_0x1bd00f(0x160)]]]):_0x2880de[_0x391d6d[0x0]]={'failureCount':_0x391d6d[0x1][_0xf70106[_0x1bd00f(0x185)]],'results':[..._0x391d6d[0x1][_0xf70106[_0x1bd00f(0x160)]]]};}),_0x3ceb02['on'](_0xf70106[_0x4771c0(0x18d)],_0x41ddfb=>console['log'](_0x41ddfb[0x1]));_0x2e37e2[_0x4771c0(0x149)]()&&_0x2e37e2[_0x4771c0(0x149)]()['pipe'](process[_0x4771c0(0x13b)]);_0x2e37e2['getStderr']()&&_0x2e37e2[_0x4771c0(0x14b)]()[_0x4771c0(0x188)](process[_0x4771c0(0x16e)]);const _0x47fd89=async()=>{const _0x3c79b0=_0x4771c0,{forceExited:_0x459c5b}=await _0x2e37e2[_0x3c79b0(0x15d)]();_0x459c5b&&console['error'](_0xf70106['yUBpf']);try{await TestHubHandler['stop']();}catch(_0x11b7d2){_0xf70106[_0x3c79b0(0x143)](debug,_0x3c79b0(0x170)+_0x11b7d2);}_0xf70106[_0x3c79b0(0x18a)](_0x18b2fb,_0x2880de);},_0x1cda95=_0xf70106[_0x4771c0(0x18a)](pLimit,_0xf70106['qBreX'](_0x4ff37d,0x1)),_0x59d0a3=_0x361f53=>_0x1cda95(async()=>{const _0x474aed=_0x4771c0;await _0x3ceb02['emit'](_0xf70106['IaGZb'],_0x361f53);const _0x208beb=_0x2e37e2[_0x474aed(0x159)](_0x361f53,_0x388c9b);try{parentPort&&_0x208beb[_0x474aed(0x141)](_0x3c93d8=>{const _0x313d98=_0x474aed;try{parentPort['postMessage'](_0x3c93d8);}catch(_0x446a1b){logger[_0x313d98(0x169)](_0x313d98(0x145)+util[_0x313d98(0x16d)](_0x446a1b));}});}catch(_0x22f047){logger[_0x474aed(0x169)]('Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'+util[_0x474aed(0x16d)](_0x22f047));}return _0x208beb;});PerformanceTester[_0x4771c0(0x15d)](PerformanceEvents['SDK_SETUP']),Promise[_0x4771c0(0x176)](_0x59fbdf[_0x4771c0(0x172)](_0x3cbbfa=>_0x59d0a3(_0x3cbbfa)[_0x4771c0(0x144)](_0x1f59e5=>_0x3ceb02['emit']('test-file-success',[_0x3cbbfa[_0x4771c0(0x13d)][_0x4771c0(0x140)],_0x1f59e5]),_0x21af19=>_0x3ceb02[_0x4771c0(0x196)]('test-file-failure',[_0x3cbbfa,_0x21af19]))))[_0x4771c0(0x144)](_0x47fd89,_0x47fd89);}),exports[a57_0x1497ca(0x197)]=(_0x239221,_0x288ea7,_0x542820,_0x27a500,_0x415e36)=>{const _0x3dc51f=a57_0x1497ca,_0x43e2db={'ANIOW':'platform-run-start','dUlvG':_0x3dc51f(0x190),'MKOXH':function(_0x13ac12,_0x59214a){return _0x13ac12(_0x59214a);},'spTFW':_0x3dc51f(0x18b),'KiLRA':'cucumberWorker','aAgLC':_0x3dc51f(0x18e),'OagBc':'pipe','EZMLa':'platform-run-success','hUuYF':_0x3dc51f(0x178),'BPSnE':function(_0x37675d,_0x51b65b){return _0x37675d(_0x51b65b);}};return new Promise(_0x3b3a1b=>{const _0x3e557e=_0x3dc51f,_0x2c7853={'fPhEN':_0x43e2db[_0x3e557e(0x153)],'qQQzT':function(_0x195d30,_0x1606dd){const _0xdd3ed=_0x3e557e;return _0x43e2db[_0xdd3ed(0x17e)](_0x195d30,_0x1606dd);}},_0x15f97a=[],_0x423227=new Worker(require[_0x3e557e(0x15a)](_0x43e2db[_0x3e557e(0x17b)]),{'exposedMethods':[_0x43e2db[_0x3e557e(0x17a)]],'forkOptions':{'serialization':_0x43e2db[_0x3e557e(0x156)],'stdio':_0x43e2db[_0x3e557e(0x150)]},'numWorkers':_0x239221['length']||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x5963f9=new Emittery();_0x5963f9['on'](_0x43e2db['EZMLa'],_0x21a616=>{const _0xa5c513=_0x3e557e;_0x15f97a[_0xa5c513(0x13f)]([_0x21a616[0x0],_0x21a616[0x1]]);}),_0x5963f9['on'](_0x43e2db[_0x3e557e(0x199)],_0x5a0c02=>console[_0x3e557e(0x18f)](_0x5a0c02[0x1]));_0x423227[_0x3e557e(0x149)]()&&_0x423227[_0x3e557e(0x149)]()[_0x3e557e(0x188)](process['stdout']);_0x423227['getStderr']()&&_0x423227[_0x3e557e(0x14b)]()[_0x3e557e(0x188)](process[_0x3e557e(0x16e)]);const _0x4375a0=async()=>{const _0x1aab6d=_0x3e557e,{forceExited:_0x552cc3}=await _0x423227['end']();_0x552cc3&&console[_0x1aab6d(0x175)](_0x2c7853[_0x1aab6d(0x14f)]),_0x2c7853['qQQzT'](_0x3b3a1b,_0x15f97a);},_0x4f3876=_0x43e2db[_0x3e557e(0x194)](pLimit,_0x239221[_0x3e557e(0x181)]||0x1),_0x766315=(_0x2607ed,_0x3857f6)=>_0x4f3876(async()=>{const _0x508818=_0x3e557e;return await _0x5963f9['emit'](_0x43e2db[_0x508818(0x16c)],_0x2607ed),_0x288ea7['platformCaps']=_0x542820['platforms'][_0x3857f6],_0x288ea7[_0x508818(0x164)]=_0x3857f6,_0x423227['cucumberWorker'](_0x2607ed,_0x288ea7,_0x542820,_0x27a500,_0x415e36);});Promise[_0x3e557e(0x176)](_0x239221[_0x3e557e(0x172)]((_0x368249,_0x5710be)=>_0x766315(_0x368249,_0x5710be)[_0x3e557e(0x144)](_0x582c75=>_0x5963f9[_0x3e557e(0x196)](_0x3e557e(0x192),[_0x368249,_0x582c75]),_0x697fac=>_0x5963f9[_0x3e557e(0x196)](_0x3e557e(0x178),[_0x368249,_0x697fac]))))[_0x3e557e(0x144)](_0x4375a0,_0x4375a0);});},exports[a57_0x1497ca(0x14e)]=(_0x5ae209,_0x15c8a1)=>new Promise(_0x519ecc=>{const _0x241097=a57_0x1497ca,_0x477a08={'lTjxz':function(_0x512cb0,_0x2bcb8e){return _0x512cb0===_0x2bcb8e;},'juduo':function(_0x16f876,_0x2598cc){return _0x16f876!==_0x2598cc;},'IXVnO':_0x241097(0x16f),'sPJTi':'Workers\x20failed\x20to\x20exit\x20gracefully','CRUMA':function(_0x35af32,_0x2829ee){return _0x35af32(_0x2829ee);},'GFxEj':_0x241097(0x18b),'LNUTg':_0x241097(0x13e),'HUKpU':_0x241097(0x18e),'bLsMz':_0x241097(0x188),'rdXCv':_0x241097(0x187),'TcJGw':_0x241097(0x166)},_0x156889={},_0x4f9e75=new Worker(require[_0x241097(0x15a)](_0x477a08[_0x241097(0x171)]),{'exposedMethods':[_0x477a08[_0x241097(0x163)]],'forkOptions':{'serialization':_0x477a08[_0x241097(0x18c)],'stdio':_0x477a08[_0x241097(0x14c)]},'numWorkers':_0x15c8a1,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x505de3=new Emittery();_0x505de3['on'](_0x477a08[_0x241097(0x195)],_0x6a9511=>{const _0x405b2f=_0x241097;_0x6a9511[0x0]&&logger[_0x405b2f(0x167)](_0x405b2f(0x14a)+_0x6a9511[0x1]+_0x405b2f(0x17d),_0x6a9511[0x0]);}),_0x505de3['on'](_0x477a08['TcJGw'],_0x9c8e1=>{const _0x295a4a=_0x241097;process[_0x295a4a(0x179)]=0x1;});_0x4f9e75[_0x241097(0x149)]()&&_0x4f9e75[_0x241097(0x149)]()[_0x241097(0x188)](process[_0x241097(0x13b)]);_0x4f9e75['getStderr']()&&_0x4f9e75[_0x241097(0x14b)]()[_0x241097(0x188)](process[_0x241097(0x16e)]);const _0x2f48af=async()=>{const _0x5a7645=_0x241097,_0x1d7743={'PeBRy':function(_0x3e2219,_0x458d58){const _0x119fee=a57_0x1fe6;return _0x477a08[_0x119fee(0x173)](_0x3e2219,_0x458d58);},'MHMWi':function(_0x375096,_0x4c75d3){const _0x2e9308=a57_0x1fe6;return _0x477a08[_0x2e9308(0x148)](_0x375096,_0x4c75d3);},'jcaGt':_0x477a08[_0x5a7645(0x155)]};let _0x1ec78f=0x0;const _0x1a1fd1=_0x4f9e75[_0x5a7645(0x15c)][_0x5a7645(0x162)](),_0x40e522=()=>{},_0x2539ce=_0x1a1fd1[_0x5a7645(0x172)](async _0xdea7ad=>{const _0x840f36=_0x5a7645,_0xbd0bcc={'gxvLz':function(_0x3d15fb,_0x48e778){const _0x1a8bb6=a57_0x1fe6;return _0x1d7743[_0x1a8bb6(0x17c)](_0x3d15fb,_0x48e778);},'dWqTY':function(_0xc899b5,_0x45c015){const _0x3052a5=a57_0x1fe6;return _0x1d7743[_0x3052a5(0x177)](_0xc899b5,_0x45c015);}};_0xdea7ad[_0x840f36(0x189)]([0x2,![]],_0x40e522,_0x40e522,_0x40e522),_0xdea7ad[_0x840f36(0x165)]['on'](_0x1d7743[_0x840f36(0x186)],_0x87a259=>{_0xbd0bcc['gxvLz'](_0x1ec78f,0x0)&&_0xbd0bcc['dWqTY'](_0x87a259,0x0)&&(_0x1ec78f=_0x87a259);}),await _0xdea7ad[_0x840f36(0x191)]();});await Promise['all'](_0x2539ce),process[_0x5a7645(0x179)]=_0x1ec78f;const {forceExited:_0x80071b}=await _0x4f9e75[_0x5a7645(0x15d)]();_0x80071b&&console[_0x5a7645(0x175)](_0x477a08['sPJTi']),_0x477a08[_0x5a7645(0x168)](_0x519ecc,_0x156889);},_0xd2c4c=_0x477a08['CRUMA'](pLimit,_0x15c8a1),_0x310337=_0x1b3f97=>_0xd2c4c(async()=>{const _0x2d418d=_0x241097;return _0x4f9e75[_0x2d418d(0x13e)](_0x1b3f97);});Promise[_0x241097(0x176)](_0x5ae209[_0x241097(0x172)](_0xe76ea9=>_0x310337(_0xe76ea9)['then'](_0x69652b=>_0x505de3['emit'](_0x241097(0x187),[_0xe76ea9[_0x241097(0x13d)][_0x241097(0x140)],_0xe76ea9[_0x241097(0x13d)][_0x241097(0x19a)]]),_0x4665cb=>_0x505de3[_0x241097(0x196)](_0x241097(0x166),[_0xe76ea9,_0x4665cb]))))[_0x241097(0x144)](_0x2f48af,_0x2f48af);});function a57_0x1fe6(_0x541894,_0x53e65e){const _0x4e3f1c=a57_0x4e3f();return a57_0x1fe6=function(_0x1fe6a3,_0x4453f8){_0x1fe6a3=_0x1fe6a3-0x13b;let _0xc4de2=_0x4e3f1c[_0x1fe6a3];return _0xc4de2;},a57_0x1fe6(_0x541894,_0x53e65e);}function a57_0x4e3f(){const _0x5d5477=['635382kfvpIa','length','3740798jTMmWr','733648YNVZXL','../../helpers/testhub/testhubHandler','brFkR','jcaGt','test-file-success','pipe','send','KnWqx','./testWorker.js','HUKpU','CLWQL','json','log','Workers\x20failed\x20to\x20exit\x20gracefully','waitForExit','platform-run-success','20rOpVLG','BPSnE','rdXCv','emit','parallelCucumberRun','p-limit','hUuYF','file','winstonLogger','stdout','GrJzm','configuration','vanillaWorker','push','platform','UNSTABLE_onCustomMessage','config','sZBMR','then','Exception\x20in\x20sending\x20worker\x20message\x20','../../helpers/logger','IBQFH','juduo','getStdout','Running\x20','getStderr','bLsMz','1563738ZQNuza','parallelVanillaRun','fPhEN','OagBc','parallelTestRun','8Nyyvcf','dUlvG','5013244TbgBfU','IXVnO','aAgLC','7322067DvpFfl','6492276XEogDk','worker','resolve','ErLBt','_workerPool','end','results','BJVeB','xuAXU','util','getWorkers','LNUTg','platformIndex','_child','test-file-failure','info','CRUMA','debug','pxiQm','../../helpers/performance/performance-tester','ANIOW','format','stderr','exit','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','GFxEj','map','lTjxz','OqSRq','error','all','MHMWi','platform-run-failure','exitCode','KiLRA','spTFW','PeBRy','\x20for','MKOXH','emittery'];a57_0x4e3f=function(){return _0x5d5477;};return a57_0x4e3f();}
1
+ function a57_0x45f8(){const _0x4e9115=['push','FBLMC','getStdout','jyEFa','GCAIW','10gntfpI','7tdKeWa','1057463EQDkhA','ohqOP','test-file-failure','_child','wnhWy','oAqeh','UNSTABLE_onCustomMessage','config','info','ozBsQ','./testWorker.js','266556JEhUbJ','JSdMC','ZPLWm','gqHwg','winstonLogger','emittery','apZaY','../../helpers/logger','../../helpers/test-observability/utils','failureCount','2277294zeqmvG','98891Kxixkv','ZLOHS','map','EVENTS','stdout','hUPNZ','then','cucumberWorker','Worker','util','exitCode','platform-run-success','json','JQoPX','platformCaps','14877gIivCO','LtkOG','sPUCT','xMbJF','pipe','stderr','bpshI','PQyiN','emit','test-file-success','getWorkers','Exception\x20in\x20stop\x20build\x20request\x20to\x20Testhub\x20:\x20','../../helpers/performance/constants','platform','KSmfY','IkvmY','stop','getStderr','DWbhu','results','parallelCucumberRun','debug','pPtQW','XiFmD','gOLUi','BAOOH','Exception\x20in\x20sending\x20worker\x20message\x20','kYMvM','Ryvcr','20GNXZzk','nKCIf','resolve','worker','file','p-limit','qDKih','140515DebqYQ','end','test-file-start','74302ivnNbP','exit','error','SDK_SETUP','Running\x20','../../helpers/testhub/testhubHandler','all','platform-run-failure','configuration','log','Workers\x20failed\x20to\x20exit\x20gracefully','olUrJ','1816ABJELs','waitForExit','Exception\x20in\x20adding\x20custom\x20message\x20channel\x20'];a57_0x45f8=function(){return _0x4e9115;};return a57_0x45f8();}const a57_0x354b45=a57_0x1b11;(function(_0x27c7b9,_0x3ab145){const _0x48506a=a57_0x1b11,_0x469d33=_0x27c7b9();while(!![]){try{const _0x49da13=-parseInt(_0x48506a(0x157))/0x1+parseInt(_0x48506a(0x12b))/0x2+parseInt(_0x48506a(0x14c))/0x3+parseInt(_0x48506a(0x183))/0x4*(parseInt(_0x48506a(0x18a))/0x5)+-parseInt(_0x48506a(0x156))/0x6*(parseInt(_0x48506a(0x140))/0x7)+-parseInt(_0x48506a(0x137))/0x8*(-parseInt(_0x48506a(0x166))/0x9)+-parseInt(_0x48506a(0x13f))/0xa*(-parseInt(_0x48506a(0x141))/0xb);if(_0x49da13===_0x3ab145)break;else _0x469d33['push'](_0x469d33['shift']());}catch(_0x1113c3){_0x469d33['push'](_0x469d33['shift']());}}}(a57_0x45f8,0x3f572));const Worker=require('jest-worker')[a57_0x354b45(0x15f)],Emittery=require(a57_0x354b45(0x151)),pLimit=require(a57_0x354b45(0x188)),{parentPort}=require('worker_threads'),util=require(a57_0x354b45(0x160)),logger=require(a57_0x354b45(0x153))[a57_0x354b45(0x150)],PerformanceTester=require('../../helpers/performance/performance-tester'),PerformanceEvents=require(a57_0x354b45(0x172))[a57_0x354b45(0x15a)],{debug}=require(a57_0x354b45(0x154)),TestHubHandler=require(a57_0x354b45(0x130));function a57_0x1b11(_0x380ddb,_0x470ceb){const _0x45f827=a57_0x45f8();return a57_0x1b11=function(_0x1b11b1,_0x25bd5c){_0x1b11b1=_0x1b11b1-0x12b;let _0x110320=_0x45f827[_0x1b11b1];return _0x110320;},a57_0x1b11(_0x380ddb,_0x470ceb);}exports['parallelTestRun']=(_0x34a2ae,_0x4cd48c,_0x1d40cb)=>new Promise(async _0x4c02a0=>{const _0x229db2=a57_0x354b45,_0xa7df08={'sPUCT':_0x229db2(0x155),'nKCIf':function(_0x52c77e,_0x128f14){return _0x52c77e+_0x128f14;},'KSmfY':_0x229db2(0x179),'ohqOP':_0x229db2(0x135),'mAmWX':function(_0x36b3cf,_0x4cdf7e){return _0x36b3cf(_0x4cdf7e);},'kYMvM':function(_0x548b4f,_0x535a40){return _0x548b4f(_0x535a40);},'olUrJ':_0x229db2(0x18c),'qDKih':'./testWorker.js','ozBsQ':_0x229db2(0x186),'jkbfN':_0x229db2(0x163),'Ryvcr':_0x229db2(0x16a),'hUPNZ':function(_0x5f06e7,_0x61e69a){return _0x5f06e7*_0x61e69a;},'jyEFa':_0x229db2(0x16f),'pPtQW':_0x229db2(0x143),'dsYdc':function(_0xabc7e4,_0x30cec3){return _0xabc7e4(_0x30cec3);},'lchDh':function(_0x154e0a,_0x55f7b2){return _0x154e0a*_0x55f7b2;}},_0x3f6c6e=_0x1d40cb[_0x229db2(0x148)],_0x3a0aea={},_0x51736d=new Worker(require['resolve'](_0xa7df08[_0x229db2(0x189)]),{'exposedMethods':[_0xa7df08[_0x229db2(0x14a)]],'forkOptions':{'serialization':_0xa7df08['jkbfN'],'stdio':_0xa7df08[_0x229db2(0x182)]},'idleMemoryLimit':undefined,'maxRetries':0x1,'numWorkers':_0xa7df08[_0x229db2(0x15c)](_0x4cd48c,0x1),'enableWorkerThreads':!![]}),_0x158771=new Emittery();_0x158771['on'](_0xa7df08[_0x229db2(0x13d)],_0x47bce4=>{const _0x155114=_0x229db2;_0x3a0aea[_0x47bce4[0x0]]?(_0x3a0aea[_0x47bce4[0x0]][_0xa7df08['sPUCT']]=_0xa7df08[_0x155114(0x184)](_0x3a0aea[_0x47bce4[0x0]][_0xa7df08['sPUCT']],_0x47bce4[0x1][_0xa7df08['sPUCT']]),_0x3a0aea[_0x47bce4[0x0]][_0xa7df08[_0x155114(0x174)]]=[..._0x3a0aea[_0x47bce4[0x0]][_0xa7df08[_0x155114(0x174)]],..._0x47bce4[0x1][_0xa7df08[_0x155114(0x174)]]]):_0x3a0aea[_0x47bce4[0x0]]={'failureCount':_0x47bce4[0x1][_0xa7df08[_0x155114(0x168)]],'results':[..._0x47bce4[0x1][_0xa7df08[_0x155114(0x174)]]]};}),_0x158771['on'](_0xa7df08[_0x229db2(0x17c)],_0x43ee0f=>console['log'](_0x43ee0f[0x1]));_0x51736d[_0x229db2(0x13c)]()&&_0x51736d[_0x229db2(0x13c)]()[_0x229db2(0x16a)](process['stdout']);_0x51736d[_0x229db2(0x177)]()&&_0x51736d['getStderr']()[_0x229db2(0x16a)](process[_0x229db2(0x16b)]);const _0x3e8458=async()=>{const _0x2152a0=_0x229db2,{forceExited:_0x4e6b50}=await _0x51736d[_0x2152a0(0x18b)]();_0x4e6b50&&console[_0x2152a0(0x12d)](_0xa7df08[_0x2152a0(0x142)]);try{await TestHubHandler[_0x2152a0(0x176)]();}catch(_0x131725){_0xa7df08['mAmWX'](debug,_0x2152a0(0x171)+_0x131725);}_0xa7df08[_0x2152a0(0x181)](_0x4c02a0,_0x3a0aea);},_0x5c94c0=_0xa7df08['dsYdc'](pLimit,_0xa7df08['lchDh'](_0x4cd48c,0x1)),_0x5f1f94=_0x26e8dc=>_0x5c94c0(async()=>{const _0x3bc508=_0x229db2;await _0x158771[_0x3bc508(0x16e)](_0xa7df08[_0x3bc508(0x136)],_0x26e8dc);const _0xd38727=_0x51736d['worker'](_0x26e8dc,_0x3f6c6e);try{parentPort&&_0xd38727[_0x3bc508(0x147)](_0x554491=>{const _0x4eb303=_0x3bc508;try{parentPort['postMessage'](_0x554491);}catch(_0x3d1f27){logger[_0x4eb303(0x17b)](_0x4eb303(0x180)+util['format'](_0x3d1f27));}});}catch(_0xef4f93){logger[_0x3bc508(0x17b)](_0x3bc508(0x139)+util['format'](_0xef4f93));}return _0xd38727;});PerformanceTester[_0x229db2(0x18b)](PerformanceEvents[_0x229db2(0x12e)]),Promise[_0x229db2(0x131)](_0x34a2ae['map'](_0x59b749=>_0x5f1f94(_0x59b749)['then'](_0x31d3e0=>_0x158771[_0x229db2(0x16e)](_0x229db2(0x16f),[_0x59b749[_0x229db2(0x133)][_0x229db2(0x173)],_0x31d3e0]),_0x288aa4=>_0x158771[_0x229db2(0x16e)](_0x229db2(0x143),[_0x59b749,_0x288aa4]))))['then'](_0x3e8458,_0x3e8458);}),exports[a57_0x354b45(0x17a)]=(_0x83203b,_0xac3829,_0x5d3ff2,_0x122fea,_0x2698cf)=>{const _0x3d45d3=a57_0x354b45,_0x3168d1={'oAqeh':_0x3d45d3(0x135),'gqHwg':function(_0x500305,_0x3c733e){return _0x500305(_0x3c733e);},'ZPLWm':'platform-run-start','PQyiN':_0x3d45d3(0x14b),'ZLOHS':_0x3d45d3(0x15e),'GCAIW':_0x3d45d3(0x163),'dHGqh':_0x3d45d3(0x16a),'IkvmY':_0x3d45d3(0x162),'DWbhu':'platform-run-failure'};return new Promise(_0x2c7e6d=>{const _0x26ef5e=_0x3d45d3,_0x3a7601={};_0x3a7601[_0x26ef5e(0x167)]=_0x3168d1[_0x26ef5e(0x14e)];const _0xe3fbaf=_0x3a7601,_0x3b0e6b=[],_0x23f3dd=new Worker(require[_0x26ef5e(0x185)](_0x3168d1[_0x26ef5e(0x16d)]),{'exposedMethods':[_0x3168d1[_0x26ef5e(0x158)]],'forkOptions':{'serialization':_0x3168d1[_0x26ef5e(0x13e)],'stdio':_0x3168d1['dHGqh']},'numWorkers':_0x83203b['length']||0x1,'enableWorkerThreads':!![],'idleMemoryLimit':undefined,'maxRetries':0x1}),_0x2378e1=new Emittery();_0x2378e1['on'](_0x3168d1[_0x26ef5e(0x175)],_0x4fe3ef=>{const _0x18c567=_0x26ef5e;_0x3b0e6b[_0x18c567(0x13a)]([_0x4fe3ef[0x0],_0x4fe3ef[0x1]]);}),_0x2378e1['on'](_0x3168d1[_0x26ef5e(0x178)],_0x1e730a=>console[_0x26ef5e(0x134)](_0x1e730a[0x1]));_0x23f3dd[_0x26ef5e(0x13c)]()&&_0x23f3dd[_0x26ef5e(0x13c)]()[_0x26ef5e(0x16a)](process[_0x26ef5e(0x15b)]);_0x23f3dd[_0x26ef5e(0x177)]()&&_0x23f3dd[_0x26ef5e(0x177)]()[_0x26ef5e(0x16a)](process['stderr']);const _0x58d0b8=async()=>{const _0x46d3a9=_0x26ef5e,{forceExited:_0x53b509}=await _0x23f3dd[_0x46d3a9(0x18b)]();_0x53b509&&console[_0x46d3a9(0x12d)](_0x3168d1[_0x46d3a9(0x146)]),_0x3168d1[_0x46d3a9(0x14f)](_0x2c7e6d,_0x3b0e6b);},_0x4d0d8e=_0x3168d1[_0x26ef5e(0x14f)](pLimit,_0x83203b['length']||0x1),_0x3fb3bc=(_0x20db04,_0x1b1844)=>_0x4d0d8e(async()=>{const _0x4cb626=_0x26ef5e;return await _0x2378e1[_0x4cb626(0x16e)](_0xe3fbaf[_0x4cb626(0x167)],_0x20db04),_0xac3829[_0x4cb626(0x165)]=_0x5d3ff2['platforms'][_0x1b1844],_0xac3829['platformIndex']=_0x1b1844,_0x23f3dd[_0x4cb626(0x15e)](_0x20db04,_0xac3829,_0x5d3ff2,_0x122fea,_0x2698cf);});Promise[_0x26ef5e(0x131)](_0x83203b[_0x26ef5e(0x159)]((_0x56a7a8,_0x50d9f3)=>_0x3fb3bc(_0x56a7a8,_0x50d9f3)[_0x26ef5e(0x15d)](_0x125e33=>_0x2378e1[_0x26ef5e(0x16e)]('platform-run-success',[_0x56a7a8,_0x125e33]),_0x533ce7=>_0x2378e1[_0x26ef5e(0x16e)](_0x26ef5e(0x132),[_0x56a7a8,_0x533ce7]))))[_0x26ef5e(0x15d)](_0x58d0b8,_0x58d0b8);});},exports['parallelVanillaRun']=(_0x36aed3,_0x20862b)=>new Promise(_0x2cd709=>{const _0xc423c1=a57_0x354b45,_0x18f8d8={'XiFmD':_0xc423c1(0x12c),'apZaY':function(_0x22225d,_0x199a5d){return _0x22225d===_0x199a5d;},'BAOOH':function(_0xdbb2a6,_0x1a4b4b){return _0xdbb2a6!==_0x1a4b4b;},'JSdMC':_0xc423c1(0x135),'FBLMC':function(_0x15f9d7,_0x204c8c){return _0x15f9d7(_0x204c8c);},'xMbJF':'./testWorker.js','SwHyF':'vanillaWorker','JQoPX':_0xc423c1(0x163),'Fxmez':_0xc423c1(0x16a),'bpshI':_0xc423c1(0x16f),'wnhWy':_0xc423c1(0x143)},_0x301d96={},_0x14f10a=new Worker(require[_0xc423c1(0x185)](_0x18f8d8[_0xc423c1(0x169)]),{'exposedMethods':[_0x18f8d8['SwHyF']],'forkOptions':{'serialization':_0x18f8d8[_0xc423c1(0x164)],'stdio':_0x18f8d8['Fxmez']},'numWorkers':_0x20862b,'enableWorkerThreads':![],'maxRetries':0x1,'idleMemoryLimit':undefined}),_0x687670=new Emittery();_0x687670['on'](_0x18f8d8[_0xc423c1(0x16c)],_0x1554e0=>{const _0x273e92=_0xc423c1;_0x1554e0[0x0]&&logger[_0x273e92(0x149)](_0x273e92(0x12f)+_0x1554e0[0x1]+'\x20for',_0x1554e0[0x0]);}),_0x687670['on'](_0x18f8d8[_0xc423c1(0x145)],_0x4e522e=>{process['exitCode']=0x1;});_0x14f10a['getStdout']()&&_0x14f10a[_0xc423c1(0x13c)]()[_0xc423c1(0x16a)](process[_0xc423c1(0x15b)]);_0x14f10a[_0xc423c1(0x177)]()&&_0x14f10a['getStderr']()[_0xc423c1(0x16a)](process[_0xc423c1(0x16b)]);const _0x46094e=async()=>{const _0x196c3e=_0xc423c1,_0x52bb40={'gOLUi':function(_0x1f0058,_0x565f2c){const _0xb025cf=a57_0x1b11;return _0x18f8d8[_0xb025cf(0x152)](_0x1f0058,_0x565f2c);},'ZSeZA':function(_0x1357da,_0x273793){const _0x30ff96=a57_0x1b11;return _0x18f8d8[_0x30ff96(0x17f)](_0x1357da,_0x273793);}};let _0x220267=0x0;const _0x6ed58c=_0x14f10a['_workerPool'][_0x196c3e(0x170)](),_0x55cbe9=()=>{},_0x53ae2d=_0x6ed58c[_0x196c3e(0x159)](async _0x4681a6=>{const _0x2dd013=_0x196c3e;_0x4681a6['send']([0x2,![]],_0x55cbe9,_0x55cbe9,_0x55cbe9),_0x4681a6[_0x2dd013(0x144)]['on'](_0x18f8d8[_0x2dd013(0x17d)],_0x56d3c7=>{const _0x5106b2=_0x2dd013;_0x52bb40[_0x5106b2(0x17e)](_0x220267,0x0)&&_0x52bb40['ZSeZA'](_0x56d3c7,0x0)&&(_0x220267=_0x56d3c7);}),await _0x4681a6[_0x2dd013(0x138)]();});await Promise['all'](_0x53ae2d),process[_0x196c3e(0x161)]=_0x220267;const {forceExited:_0x148102}=await _0x14f10a[_0x196c3e(0x18b)]();_0x148102&&console[_0x196c3e(0x12d)](_0x18f8d8[_0x196c3e(0x14d)]),_0x18f8d8[_0x196c3e(0x13b)](_0x2cd709,_0x301d96);},_0x14e631=_0x18f8d8['FBLMC'](pLimit,_0x20862b),_0x286a71=_0x24e1a7=>_0x14e631(async()=>{return _0x14f10a['vanillaWorker'](_0x24e1a7);});Promise['all'](_0x36aed3['map'](_0xac7159=>_0x286a71(_0xac7159)[_0xc423c1(0x15d)](_0x16f240=>_0x687670[_0xc423c1(0x16e)](_0xc423c1(0x16f),[_0xac7159[_0xc423c1(0x133)][_0xc423c1(0x173)],_0xac7159[_0xc423c1(0x133)][_0xc423c1(0x187)]]),_0x38094e=>_0x687670['emit'](_0xc423c1(0x143),[_0xac7159,_0x38094e]))))['then'](_0x46094e,_0x46094e);});
@@ -1 +1 @@
1
- const a58_0x5b331d=a58_0x597d;function a58_0x4a87(){const _0x2faeb7=['startMonitoring','end','../../helpers/performance/performance-tester','runVanillaTest','vanilla','runCucumberTest','lhmYv','615740VZjzdK','oJmmU','13238KZhoak','run','rKimm','EVENTS','319BasShP','200XAJZDD','5KHGrcR','211314QXSpxZ','32968824qWDHkA','SDK_POST_TEST','zVYtS','120850eBAYEr','DIKfO','configuration','../../helpers/performance/constants','111jtBkWV','cucumber-js','oPzSy','WEQVZ','formatter','stopMonitoring','309285zPFwmx','HSobU','mocha','../launcher/launcher','2783221reqBUF','12yLNRls'];a58_0x4a87=function(){return _0x2faeb7;};return a58_0x4a87();}function a58_0x597d(_0xdd5d55,_0x104646){const _0x4a87b2=a58_0x4a87();return a58_0x597d=function(_0x597d31,_0x58fe26){_0x597d31=_0x597d31-0xad;let _0x94b52=_0x4a87b2[_0x597d31];return _0x94b52;},a58_0x597d(_0xdd5d55,_0x104646);}(function(_0x5f0985,_0xdc9f62){const _0x4482e6=a58_0x597d,_0x10de3a=_0x5f0985();while(!![]){try{const _0x17c573=-parseInt(_0x4482e6(0xc9))/0x1+parseInt(_0x4482e6(0xc2))/0x2*(-parseInt(_0x4482e6(0xad))/0x3)+parseInt(_0x4482e6(0xc0))/0x4*(parseInt(_0x4482e6(0xc8))/0x5)+-parseInt(_0x4482e6(0xb8))/0x6*(parseInt(_0x4482e6(0xb7))/0x7)+-parseInt(_0x4482e6(0xc7))/0x8*(parseInt(_0x4482e6(0xb3))/0x9)+parseInt(_0x4482e6(0xcd))/0xa*(-parseInt(_0x4482e6(0xc6))/0xb)+parseInt(_0x4482e6(0xca))/0xc;if(_0x17c573===_0xdc9f62)break;else _0x10de3a['push'](_0x10de3a['shift']());}catch(_0x113dcd){_0x10de3a['push'](_0x10de3a['shift']());}}}(a58_0x4a87,0x6b804));const PerformanceEvents=require(a58_0x5b331d(0xd0))[a58_0x5b331d(0xc5)],PerformanceTester=require(a58_0x5b331d(0xbb)),{sleep}=require('../../helpers/test-observability/utils');exports['runTest']=async(_0x3379a7,_0xa896e9)=>{const _0x403b87=a58_0x5b331d,_0x1c3ab2={'rKimm':function(_0x10b529,_0x45de72){return _0x10b529(_0x45de72);},'DIKfO':_0x403b87(0xb6),'WEQVZ':_0x403b87(0xb5)};PerformanceTester[_0x403b87(0xb9)]();const _0x42d3bc=_0x1c3ab2[_0x403b87(0xc4)](require,_0x1c3ab2[_0x403b87(0xce)]),_0x4de21b=new _0x42d3bc(_0x1c3ab2[_0x403b87(0xb0)],_0x3379a7,_0xa896e9),_0x1364cd=await _0x4de21b[_0x403b87(0xc3)]();return PerformanceTester[_0x403b87(0xba)](PerformanceEvents[_0x403b87(0xcb)]),await _0x1c3ab2[_0x403b87(0xc4)](sleep,0x3e8),PerformanceTester[_0x403b87(0xb2)](),_0x1364cd;},exports[a58_0x5b331d(0xbe)]=async(_0x4a8d63,_0x425bea,_0x358c54,_0x2e89c0,_0x38866c)=>{const _0x3f2d60=a58_0x5b331d,_0x4bec29={'HSobU':function(_0x30fd63,_0x5b3357){return _0x30fd63(_0x5b3357);},'oPzSy':_0x3f2d60(0xb6),'oJmmU':_0x3f2d60(0xae)},_0x543625={'capability':_0x4a8d63,..._0x425bea},_0x55251e={};_0x55251e[_0x3f2d60(0xcf)]=_0x543625,_0x55251e[_0x3f2d60(0xb1)]=_0x38866c;const _0x216743=_0x55251e,_0x51743f=_0x4bec29[_0x3f2d60(0xb4)](require,_0x4bec29[_0x3f2d60(0xaf)]),_0x55bfcf=new _0x51743f(_0x4bec29[_0x3f2d60(0xc1)],_0x216743,_0x358c54,_0x2e89c0);return await _0x55bfcf[_0x3f2d60(0xc3)]();},exports[a58_0x5b331d(0xbc)]=async _0x4f90e7=>{const _0x65b4e2=a58_0x5b331d,_0x33adca={'lhmYv':function(_0x2f2390,_0x5cbf65){return _0x2f2390(_0x5cbf65);},'OxxUI':'../launcher/launcher','zVYtS':_0x65b4e2(0xbd)},_0x30e4eb=_0x33adca[_0x65b4e2(0xbf)](require,_0x33adca['OxxUI']),_0x216664=new _0x30e4eb(_0x33adca[_0x65b4e2(0xcc)],_0x4f90e7);return await _0x216664[_0x65b4e2(0xc3)]();};
1
+ const a58_0x309897=a58_0x3338;(function(_0x3aa3b9,_0x4eeae2){const _0x5ef1d5=a58_0x3338,_0x3b68a9=_0x3aa3b9();while(!![]){try{const _0x5852a5=-parseInt(_0x5ef1d5(0x1f2))/0x1*(-parseInt(_0x5ef1d5(0x1fa))/0x2)+parseInt(_0x5ef1d5(0x1f1))/0x3*(parseInt(_0x5ef1d5(0x204))/0x4)+-parseInt(_0x5ef1d5(0x200))/0x5*(parseInt(_0x5ef1d5(0x1ed))/0x6)+parseInt(_0x5ef1d5(0x205))/0x7+-parseInt(_0x5ef1d5(0x202))/0x8*(-parseInt(_0x5ef1d5(0x1f9))/0x9)+-parseInt(_0x5ef1d5(0x1ef))/0xa*(parseInt(_0x5ef1d5(0x1f0))/0xb)+-parseInt(_0x5ef1d5(0x1f5))/0xc;if(_0x5852a5===_0x4eeae2)break;else _0x3b68a9['push'](_0x3b68a9['shift']());}catch(_0x5e8700){_0x3b68a9['push'](_0x3b68a9['shift']());}}}(a58_0x3be1,0xe2f1d));const PerformanceEvents=require(a58_0x309897(0x1ff))['EVENTS'],PerformanceTester=require('../../helpers/performance/performance-tester'),{sleep}=require('../../helpers/test-observability/utils');exports[a58_0x309897(0x1f7)]=async(_0xd58fa,_0x463dc1)=>{const _0x4259de=a58_0x309897,_0x4eb10e={'SYnSt':function(_0x22f496,_0x2086fb){return _0x22f496(_0x2086fb);},'FqICK':_0x4259de(0x206),'MYkMM':_0x4259de(0x1fd)};PerformanceTester[_0x4259de(0x207)]();const _0x56be75=_0x4eb10e[_0x4259de(0x201)](require,_0x4eb10e[_0x4259de(0x1fb)]),_0x58ac33=new _0x56be75(_0x4eb10e[_0x4259de(0x1e9)],_0xd58fa,_0x463dc1),_0xc88c91=await _0x58ac33['run']();return PerformanceTester[_0x4259de(0x1ee)](PerformanceEvents[_0x4259de(0x1ec)]),await _0x4eb10e['SYnSt'](sleep,0x3e8),PerformanceTester['stopMonitoring'](),_0xc88c91;},exports[a58_0x309897(0x203)]=async(_0x5c2e51,_0x5dd594,_0x19b431,_0x31e08b,_0x2cd1a5)=>{const _0x10cdf5=a58_0x309897,_0x4cd813={'RWNqe':function(_0x1bf4b0,_0x117331){return _0x1bf4b0(_0x117331);},'XHbCr':_0x10cdf5(0x206),'Hslob':_0x10cdf5(0x1e6)},_0x47a882={'capability':_0x5c2e51,..._0x5dd594},_0x94829c={};_0x94829c[_0x10cdf5(0x1fe)]=_0x47a882,_0x94829c[_0x10cdf5(0x1ea)]=_0x2cd1a5;const _0x4cc673=_0x94829c,_0x36a3ee=_0x4cd813[_0x10cdf5(0x1eb)](require,_0x4cd813[_0x10cdf5(0x1f6)]),_0x4f6926=new _0x36a3ee(_0x4cd813[_0x10cdf5(0x1f8)],_0x4cc673,_0x19b431,_0x31e08b);return await _0x4f6926[_0x10cdf5(0x1e7)]();},exports[a58_0x309897(0x1f4)]=async _0x5dc894=>{const _0x10d9df=a58_0x309897,_0x487fa5={'Bvmvg':function(_0x594c89,_0x1fef1a){return _0x594c89(_0x1fef1a);},'TgKGq':_0x10d9df(0x206),'GmqbV':'vanilla'},_0x280868=_0x487fa5[_0x10d9df(0x1fc)](require,_0x487fa5[_0x10d9df(0x1e8)]),_0x429630=new _0x280868(_0x487fa5[_0x10d9df(0x1f3)],_0x5dc894);return await _0x429630[_0x10d9df(0x1e7)]();};function a58_0x3338(_0x3ddf13,_0x4f0305){const _0x3be1bd=a58_0x3be1();return a58_0x3338=function(_0x33384a,_0x59de6f){_0x33384a=_0x33384a-0x1e6;let _0x3d59e4=_0x3be1bd[_0x33384a];return _0x3d59e4;},a58_0x3338(_0x3ddf13,_0x4f0305);}function a58_0x3be1(){const _0x1515b2=['2496DlvTaC','416059oQFytM','../launcher/launcher','startMonitoring','cucumber-js','run','TgKGq','MYkMM','formatter','RWNqe','SDK_POST_TEST','163812oESlyT','end','6537180pVhQSy','11XawcnY','669dVCiwj','2GvWYvQ','GmqbV','runVanillaTest','10768716CkjeMj','XHbCr','runTest','Hslob','9YLNGmR','1609758rpfVga','FqICK','Bvmvg','mocha','configuration','../../helpers/performance/constants','60DCZIbU','SYnSt','7999624mwQhUi','runCucumberTest'];a58_0x3be1=function(){return _0x1515b2;};return a58_0x3be1();}
@@ -1 +1 @@
1
- const a59_0x626ee1=a59_0x1b6a;(function(_0x5d634b,_0x5436e5){const _0x829ba7=a59_0x1b6a,_0x5d916=_0x5d634b();while(!![]){try{const _0x1ae3d9=parseInt(_0x829ba7(0xbc))/0x1*(-parseInt(_0x829ba7(0xb9))/0x2)+-parseInt(_0x829ba7(0xc5))/0x3+-parseInt(_0x829ba7(0xc3))/0x4+-parseInt(_0x829ba7(0xc2))/0x5+parseInt(_0x829ba7(0xc1))/0x6+-parseInt(_0x829ba7(0xc6))/0x7*(parseInt(_0x829ba7(0xc0))/0x8)+parseInt(_0x829ba7(0xba))/0x9;if(_0x1ae3d9===_0x5436e5)break;else _0x5d916['push'](_0x5d916['shift']());}catch(_0x110d12){_0x5d916['push'](_0x5d916['shift']());}}}(a59_0x1726,0x7d0f5));const {runTest,runCucumberTest,runVanillaTest}=require(a59_0x626ee1(0xbb));function a59_0x1726(){const _0x2e3b24=['4856870FnVVPW','213708HGEUQg','worker','1128066XGWNtO','413zQVYkg','JyLTw','2fglyEm','24670008fJCQqq','./runTest','349981wNvfWz','vanillaWorker','mYMDb','IuFvp','89400OMWGEX','1087572sFxxjC'];a59_0x1726=function(){return _0x2e3b24;};return a59_0x1726();}function a59_0x1b6a(_0x20ff18,_0x3b945b){const _0x172619=a59_0x1726();return a59_0x1b6a=function(_0x1b6a7b,_0x5dce76){_0x1b6a7b=_0x1b6a7b-0xb9;let _0x242295=_0x172619[_0x1b6a7b];return _0x242295;},a59_0x1b6a(_0x20ff18,_0x3b945b);}exports[a59_0x626ee1(0xc4)]=async(_0x24efaa,_0x39b9b6)=>{const _0x5b68d7=a59_0x626ee1,_0x4151f0={'mYMDb':function(_0x1d2715,_0x190e79,_0x466b5b){return _0x1d2715(_0x190e79,_0x466b5b);}};return await _0x4151f0[_0x5b68d7(0xbe)](runTest,_0x24efaa,_0x39b9b6);},exports['cucumberWorker']=async(_0x29d885,_0x5d4f4a,_0x22a367,_0x2f3ca7,_0x3049b8)=>{const _0x36050b=a59_0x626ee1,_0x4da4d5={'IuFvp':function(_0x5db222,_0x11aaca,_0x3d7264,_0x2b7147,_0x2e7729,_0x45a497){return _0x5db222(_0x11aaca,_0x3d7264,_0x2b7147,_0x2e7729,_0x45a497);}};return await _0x4da4d5[_0x36050b(0xbf)](runCucumberTest,_0x29d885,_0x5d4f4a,_0x22a367,_0x2f3ca7,_0x3049b8);},exports[a59_0x626ee1(0xbd)]=async _0x24a401=>{const _0x53cff4=a59_0x626ee1,_0x327e3b={'JyLTw':function(_0x3aba92,_0x317c99){return _0x3aba92(_0x317c99);}};return await _0x327e3b[_0x53cff4(0xc7)](runVanillaTest,_0x24a401);};
1
+ function a59_0x6c71(){const _0x999a46=['2123640YbZNLf','2994894xzBnTR','ZwtlD','3980bOTMbM','worker','1431222RfKYad','3868925hFdjRY','1041rCBsmZ','259444KjRCqY','./runTest','4432152vJZcSH','gtNEQ','vanillaWorker','xuTss'];a59_0x6c71=function(){return _0x999a46;};return a59_0x6c71();}const a59_0xef5ca3=a59_0x5627;(function(_0x4bd697,_0x5a3b4e){const _0x4514a0=a59_0x5627,_0x250e13=_0x4bd697();while(!![]){try{const _0x572ee0=parseInt(_0x4514a0(0x8a))/0x1+-parseInt(_0x4514a0(0x93))/0x2*(-parseInt(_0x4514a0(0x97))/0x3)+-parseInt(_0x4514a0(0x90))/0x4+-parseInt(_0x4514a0(0x96))/0x5+-parseInt(_0x4514a0(0x95))/0x6+parseInt(_0x4514a0(0x91))/0x7+parseInt(_0x4514a0(0x8c))/0x8;if(_0x572ee0===_0x5a3b4e)break;else _0x250e13['push'](_0x250e13['shift']());}catch(_0x58ab7e){_0x250e13['push'](_0x250e13['shift']());}}}(a59_0x6c71,0x5edfb));const {runTest,runCucumberTest,runVanillaTest}=require(a59_0xef5ca3(0x8b));function a59_0x5627(_0xc359c4,_0x3627a1){const _0x6c714=a59_0x6c71();return a59_0x5627=function(_0x562755,_0x187b05){_0x562755=_0x562755-0x8a;let _0x55cd93=_0x6c714[_0x562755];return _0x55cd93;},a59_0x5627(_0xc359c4,_0x3627a1);}exports[a59_0xef5ca3(0x94)]=async(_0x58fe72,_0x4cb648)=>{const _0xd978b8=a59_0xef5ca3,_0x292923={'ZwtlD':function(_0x3471a7,_0x1718d2,_0x3c3c6f){return _0x3471a7(_0x1718d2,_0x3c3c6f);}};return await _0x292923[_0xd978b8(0x92)](runTest,_0x58fe72,_0x4cb648);},exports['cucumberWorker']=async(_0x20051c,_0x22fe96,_0x4fa789,_0x35bad6,_0x39884f)=>{const _0x44121e=a59_0xef5ca3,_0x5c133a={'gtNEQ':function(_0x1b34c4,_0x551f26,_0x5a9ef7,_0x19552c,_0x3bd445,_0x5c820f){return _0x1b34c4(_0x551f26,_0x5a9ef7,_0x19552c,_0x3bd445,_0x5c820f);}};return await _0x5c133a[_0x44121e(0x8d)](runCucumberTest,_0x20051c,_0x22fe96,_0x4fa789,_0x35bad6,_0x39884f);},exports[a59_0xef5ca3(0x8e)]=async _0x6629ec=>{const _0x143d81=a59_0xef5ca3,_0x327580={'xuTss':function(_0x5373db,_0x131151){return _0x5373db(_0x131151);}};return await _0x327580[_0x143d81(0x8f)](runVanillaTest,_0x6629ec);};
@@ -1 +1 @@
1
- const a60_0x559f41=a60_0x3ed3;(function(_0x4eefa8,_0x4ff3d0){const _0x163c56=a60_0x3ed3,_0x226a88=_0x4eefa8();while(!![]){try{const _0x3d7647=-parseInt(_0x163c56(0xfe))/0x1*(-parseInt(_0x163c56(0x100))/0x2)+parseInt(_0x163c56(0xf4))/0x3*(-parseInt(_0x163c56(0x129))/0x4)+-parseInt(_0x163c56(0x123))/0x5+parseInt(_0x163c56(0x141))/0x6+-parseInt(_0x163c56(0x142))/0x7+-parseInt(_0x163c56(0x10f))/0x8*(parseInt(_0x163c56(0xfd))/0x9)+parseInt(_0x163c56(0xee))/0xa;if(_0x3d7647===_0x4ff3d0)break;else _0x226a88['push'](_0x226a88['shift']());}catch(_0x59e03a){_0x226a88['push'](_0x226a88['shift']());}}}(a60_0x2dc0,0x22c23));function a60_0x2dc0(){const _0x5d75eb=['exports','4386PntlTz','1088045MjDGYO','fkrBF','LbmIq','DVcjX','getAutomateSessionNameAPIUrl','BclGT','toString','hTqOe','APP_UPLOAD_URL','api','ARrAN','VacRg','uzAfX','kMxws','GwGdU','getPlaywrightHubUrl','qoulR','OBSERVABILITY_UPLOAD_URL','TEFyI','Aplsg','3578050bDPiRg','getAutoCaptureLogsAPIUrl','Wwwyy','hjbDM','mIPnb','edsInstrumentation','125967VBTbTS','./sharedUtils','getAppAutomateSessionsListAPIUrl','zveit','qZpFB','BqNOX','getAutomateSessionsListAPIUrl','vrDjP','lURqR','916308oirILV','384chqPrt','VzMjC','844NpEGcz','KSLBL','getConfig','../v2/browserstackCLI','TWTPW','QFlxf','mJfYe','observability','EMYSw','ntIaw','RYeDV','zKLul','BROWSERSTACK_API_URL','HDLnI','qjUGS','8GSzRZZ','bIUNw','vMUWd','untKp','wnXlE','GyqzZ','Yqkgp','DMKpP','tdERf','XgKPf','getEdsInstrumentationAPIUrl','aIaoD','endsWith','QGWjE','VMlXg','getAutomateSessionStatusAPIUrl','FHbdH','lvkDR','iOUOs','Tydln','394885QIulVU','EHxdl','wss:','enhbe','YpMxO','IOVFm','4cNfuzp','cdp','XSARR','getInstance','replace','iZbxh','hfcoe','appAutomate','WITki','getAppAutomateSessionNameAPIUrl','apis','YZLOf','./constants','BeteH','upload','fZsgi','DGcNQ','automate','yVuce','zKejp','cseiO','getBStackAPIUrl','DPFen'];a60_0x2dc0=function(){return _0x5d75eb;};return a60_0x2dc0();}const constants=require(a60_0x559f41(0x135)),{nestedKeyValue}=require(a60_0x559f41(0xf5)),getBrowserstackCLI=()=>{const _0x3a521b=a60_0x559f41,_0xd75030={'QBImK':function(_0x5ab603,_0x266445){return _0x5ab603(_0x266445);},'qjUGS':_0x3a521b(0x103)};return _0xd75030['QBImK'](require,_0xd75030[_0x3a521b(0x10e)]);};class APIUtilityMethods{static[a60_0x559f41(0x13e)](_0x48e3b4){const _0x580ac1=a60_0x559f41,_0x46511e={'WITki':function(_0x4891de){return _0x4891de();},'wnXlE':function(_0x25df97,_0x2810b2,_0x464cd2){return _0x25df97(_0x2810b2,_0x464cd2);},'KSLBL':_0x580ac1(0x133),'vMUWd':_0x580ac1(0x13a),'yYynI':_0x580ac1(0x14b),'GwGdU':function(_0x451528,_0x2b45aa){return _0x451528===_0x2b45aa;},'DPFen':function(_0x20bd86,_0xf084bf){return _0x20bd86+_0xf084bf;}},_0x2e167e=_0x46511e[_0x580ac1(0x131)](getBrowserstackCLI),_0xc28a6d=_0x46511e[_0x580ac1(0x113)](nestedKeyValue,_0x2e167e[_0x580ac1(0x12c)]()[_0x580ac1(0x102)](),[_0x46511e[_0x580ac1(0x101)],_0x46511e[_0x580ac1(0x111)],_0x46511e['yYynI']])||constants[_0x580ac1(0x10c)];if(!_0x48e3b4||_0x46511e[_0x580ac1(0x150)](_0x48e3b4,''))return _0xc28a6d;const _0x41cf41=_0xc28a6d[_0x580ac1(0x11b)]('/')?_0xc28a6d:_0x46511e[_0x580ac1(0x13f)](_0xc28a6d,'/');return new URL(_0x48e3b4,_0x41cf41)[_0x580ac1(0x148)]();}static[a60_0x559f41(0x119)](_0x44e361){const _0x3120b2=a60_0x559f41,_0x25b336={'lURqR':function(_0x10141b){return _0x10141b();},'YpMxO':function(_0x407509,_0x4dd163,_0x14d191){return _0x407509(_0x4dd163,_0x14d191);},'UdRVe':'apis','XSARR':_0x3120b2(0xf3),'DGcNQ':_0x3120b2(0x14b),'XgKPf':function(_0x2e6d38,_0x32aacb){return _0x2e6d38===_0x32aacb;},'VMlXg':function(_0x5b92e0,_0x3ea3fa){return _0x5b92e0+_0x3ea3fa;}},_0x29cd42=_0x25b336[_0x3120b2(0xfc)](getBrowserstackCLI),_0x1d5d2e=_0x25b336[_0x3120b2(0x127)](nestedKeyValue,_0x29cd42['getInstance']()[_0x3120b2(0x102)](),[_0x25b336['UdRVe'],_0x25b336[_0x3120b2(0x12b)],_0x25b336[_0x3120b2(0x139)]])||constants['EDS_URL'];if(!_0x44e361||_0x25b336[_0x3120b2(0x118)](_0x44e361,''))return _0x1d5d2e;const _0x3b0436=_0x1d5d2e['endsWith']('/')?_0x1d5d2e:_0x25b336[_0x3120b2(0x11d)](_0x1d5d2e,'/');return new URL(_0x44e361,_0x3b0436)['toString']();}static[a60_0x559f41(0x11e)](_0x52f81e){const _0x9c71b7=a60_0x559f41,_0x28394b={'VzMjC':function(_0x12f060){return _0x12f060();},'zKLul':function(_0x10b51b,_0x27ae59,_0x404be7){return _0x10b51b(_0x27ae59,_0x404be7);},'BeteH':'apis','enhbe':_0x9c71b7(0x13a),'kMxws':_0x9c71b7(0x14b),'YZLOf':function(_0x46f08a,_0x3f2816){return _0x46f08a===_0x3f2816;},'GyqzZ':function(_0x9b8883,_0x562c29){return _0x9b8883+_0x562c29;}},_0x1010f7=_0x28394b[_0x9c71b7(0xff)](getBrowserstackCLI),_0x344493=_0x28394b[_0x9c71b7(0x10b)](nestedKeyValue,_0x1010f7[_0x9c71b7(0x12c)]()[_0x9c71b7(0x102)](),[_0x28394b[_0x9c71b7(0x136)],_0x28394b[_0x9c71b7(0x126)],_0x28394b[_0x9c71b7(0x14f)]])||constants['BROWSERSTACK_API_URL'];if(!_0x52f81e||_0x28394b[_0x9c71b7(0x134)](_0x52f81e,''))return _0x344493;const _0xc3ef62=_0x344493[_0x9c71b7(0x11b)]('/')?_0x344493:_0x28394b[_0x9c71b7(0x114)](_0x344493,'/');return new URL(_0x52f81e,_0xc3ef62)[_0x9c71b7(0x148)]();}static['getAppAutomateSessionStatusAPIUrl'](_0x252e4c){const _0x5ae47b=a60_0x559f41,_0xe50614={'iOUOs':function(_0x15186a){return _0x15186a();},'lvkDR':function(_0xcd862b,_0x337c93,_0x5e10bf){return _0xcd862b(_0x337c93,_0x5e10bf);},'BclGT':_0x5ae47b(0x133),'TWTPW':_0x5ae47b(0x130),'PMZzO':_0x5ae47b(0x14b),'yVuce':function(_0x1390a1,_0x185d46){return _0x1390a1===_0x185d46;},'XqrgF':function(_0x14bb55,_0x361949){return _0x14bb55+_0x361949;}},_0x1986b6=_0xe50614[_0x5ae47b(0x121)](getBrowserstackCLI),_0x4c1e8f=_0xe50614[_0x5ae47b(0x120)](nestedKeyValue,_0x1986b6[_0x5ae47b(0x12c)]()['getConfig'](),[_0xe50614[_0x5ae47b(0x147)],_0xe50614[_0x5ae47b(0x104)],_0xe50614['PMZzO']])||constants[_0x5ae47b(0x10c)];if(!_0x252e4c||_0xe50614[_0x5ae47b(0x13b)](_0x252e4c,''))return _0x4c1e8f;const _0xbfd562=_0x4c1e8f[_0x5ae47b(0x11b)]('/')?_0x4c1e8f:_0xe50614['XqrgF'](_0x4c1e8f,'/');return new URL(_0x252e4c,_0xbfd562)[_0x5ae47b(0x148)]();}static[a60_0x559f41(0x146)](_0x57ac3e){const _0x314e41=a60_0x559f41,_0x493b3c={'fZsgi':function(_0x2c7524){return _0x2c7524();},'uzAfX':function(_0x1c8c98,_0x45a792,_0x93ccf1){return _0x1c8c98(_0x45a792,_0x93ccf1);},'Yqkgp':_0x314e41(0x133),'ntIaw':_0x314e41(0x13a),'Wwwyy':_0x314e41(0x14b),'tdERf':function(_0x33803b,_0x1d53e2){return _0x33803b===_0x1d53e2;},'zveit':function(_0x34b73b,_0x2404ba){return _0x34b73b+_0x2404ba;}},_0x4da416=_0x493b3c[_0x314e41(0x138)](getBrowserstackCLI),_0x409c96=_0x493b3c[_0x314e41(0x14e)](nestedKeyValue,_0x4da416[_0x314e41(0x12c)]()[_0x314e41(0x102)](),[_0x493b3c[_0x314e41(0x115)],_0x493b3c[_0x314e41(0x109)],_0x493b3c[_0x314e41(0xf0)]])||constants[_0x314e41(0x10c)];if(!_0x57ac3e||_0x493b3c[_0x314e41(0x117)](_0x57ac3e,''))return _0x409c96;const _0x1d5a6f=_0x409c96['endsWith']('/')?_0x409c96:_0x493b3c[_0x314e41(0xf7)](_0x409c96,'/');return new URL(_0x57ac3e,_0x1d5a6f)[_0x314e41(0x148)]();}static[a60_0x559f41(0x132)](_0x11f41b){const _0x4d13bc=a60_0x559f41,_0x35a015={'EHxdl':function(_0x32375e){return _0x32375e();},'bIUNw':function(_0x41adde,_0x376e0b,_0x1ec004){return _0x41adde(_0x376e0b,_0x1ec004);},'YELKI':_0x4d13bc(0x133),'aIaoD':_0x4d13bc(0x130),'Aplsg':'api','FHbdH':function(_0x4eca22,_0x211d1e){return _0x4eca22===_0x211d1e;},'gQQRz':function(_0x3f2530,_0x4856a2){return _0x3f2530+_0x4856a2;}},_0x3eae35=_0x35a015[_0x4d13bc(0x124)](getBrowserstackCLI),_0x2711ad=_0x35a015[_0x4d13bc(0x110)](nestedKeyValue,_0x3eae35[_0x4d13bc(0x12c)]()[_0x4d13bc(0x102)](),[_0x35a015['YELKI'],_0x35a015[_0x4d13bc(0x11a)],_0x35a015[_0x4d13bc(0xed)]])||constants[_0x4d13bc(0x10c)];if(!_0x11f41b||_0x35a015[_0x4d13bc(0x11f)](_0x11f41b,''))return _0x2711ad;const _0x295da5=_0x2711ad[_0x4d13bc(0x11b)]('/')?_0x2711ad:_0x35a015['gQQRz'](_0x2711ad,'/');return new URL(_0x11f41b,_0x295da5)[_0x4d13bc(0x148)]();}static[a60_0x559f41(0xfa)](_0x59a87b){const _0x36f956=a60_0x559f41,_0x590e14={'LbmIq':function(_0x9e39c9){return _0x9e39c9();},'QGWjE':function(_0x2f7cb8,_0x2a2aab,_0x2de93b){return _0x2f7cb8(_0x2a2aab,_0x2de93b);},'fkrBF':'apis','HFDMJ':'automate','hDaNU':_0x36f956(0x14b),'eVgOA':function(_0x49de92,_0x116b1a){return _0x49de92===_0x116b1a;},'UNtPn':function(_0x526be4,_0x460b10){return _0x526be4+_0x460b10;}},_0x355c65=_0x590e14[_0x36f956(0x144)](getBrowserstackCLI),_0x128a30=_0x590e14[_0x36f956(0x11c)](nestedKeyValue,_0x355c65[_0x36f956(0x12c)]()[_0x36f956(0x102)](),[_0x590e14[_0x36f956(0x143)],_0x590e14['HFDMJ'],_0x590e14['hDaNU']])||constants[_0x36f956(0x10c)];if(!_0x59a87b||_0x590e14['eVgOA'](_0x59a87b,''))return _0x128a30;const _0xd1dae4=_0x128a30[_0x36f956(0x11b)]('/')?_0x128a30:_0x590e14['UNtPn'](_0x128a30,'/');return new URL(_0x59a87b,_0xd1dae4)[_0x36f956(0x148)]()[_0x36f956(0x12d)](/^https?:\/\//,'');}static[a60_0x559f41(0xf6)](_0x493170){const _0x37c5af=a60_0x559f41,_0x24ef15={'llacX':function(_0x56d97c){return _0x56d97c();},'hTqOe':function(_0xa3a800,_0x5f4994,_0x1fab1b){return _0xa3a800(_0x5f4994,_0x1fab1b);},'JIgHv':_0x37c5af(0x133),'DVcjX':_0x37c5af(0x130),'untKp':_0x37c5af(0x14b),'EMYSw':function(_0x7b4850,_0x44c1e6){return _0x7b4850===_0x44c1e6;},'iZbxh':function(_0x48784a,_0x2521dd){return _0x48784a+_0x2521dd;}},_0x13d326=_0x24ef15['llacX'](getBrowserstackCLI),_0x378e7e=_0x24ef15[_0x37c5af(0x149)](nestedKeyValue,_0x13d326[_0x37c5af(0x12c)]()['getConfig'](),[_0x24ef15['JIgHv'],_0x24ef15[_0x37c5af(0x145)],_0x24ef15[_0x37c5af(0x112)]])||constants[_0x37c5af(0x14a)];if(!_0x493170||_0x24ef15[_0x37c5af(0x108)](_0x493170,''))return _0x378e7e;const _0x55fb65=_0x378e7e['endsWith']('/')?_0x378e7e:_0x24ef15[_0x37c5af(0x12e)](_0x378e7e,'/');return new URL(_0x493170,_0x55fb65)['toString']()[_0x37c5af(0x12d)](/^https?:\/\//,'');}static[a60_0x559f41(0xef)](_0x27a829){const _0x293c1a=a60_0x559f41,_0xdc7882={'quzkF':function(_0x348ee8){return _0x348ee8();},'DyUGv':function(_0x4de0e5,_0x279b2b,_0x133b8e){return _0x4de0e5(_0x279b2b,_0x133b8e);},'Tydln':_0x293c1a(0x133),'qoulR':_0x293c1a(0x107),'HDLnI':_0x293c1a(0x137),'TEFyI':function(_0xcd1dfb,_0x1ba924){return _0xcd1dfb===_0x1ba924;},'Glhie':function(_0x19389b,_0x13dbab){return _0x19389b+_0x13dbab;}},_0x142e0f=_0xdc7882['quzkF'](getBrowserstackCLI),_0x181eab=_0xdc7882['DyUGv'](nestedKeyValue,_0x142e0f[_0x293c1a(0x12c)]()['getConfig'](),[_0xdc7882[_0x293c1a(0x122)],_0xdc7882[_0x293c1a(0x152)],_0xdc7882[_0x293c1a(0x10d)]])||constants[_0x293c1a(0xeb)];if(!_0x27a829||_0xdc7882[_0x293c1a(0xec)](_0x27a829,''))return _0x181eab;const _0x505942=_0x181eab['endsWith']('/')?_0x181eab:_0xdc7882['Glhie'](_0x181eab,'/');return new URL(_0x27a829,_0x505942)[_0x293c1a(0x148)]();}static[a60_0x559f41(0x151)](_0x48e72d){const _0x256f89=a60_0x559f41,_0x28daf4={'ZlNMr':function(_0xba8105){return _0xba8105();},'qZpFB':function(_0x5c498c,_0x1488f2,_0x226b20){return _0x5c498c(_0x1488f2,_0x226b20);},'cseiO':_0x256f89(0x133),'agqQw':'automate','RYeDV':_0x256f89(0x12a),'BqNOX':_0x256f89(0x125),'Vcois':function(_0xeca2b5,_0x54fb53){return _0xeca2b5===_0x54fb53;},'ARrAN':function(_0xd704d6,_0xa32c59){return _0xd704d6+_0xa32c59;},'mJfYe':'/playwright?caps='},_0x4d5076=_0x28daf4['ZlNMr'](getBrowserstackCLI),_0x4052b1=_0x28daf4[_0x256f89(0xf8)](nestedKeyValue,_0x4d5076[_0x256f89(0x12c)]()['getConfig'](),[_0x28daf4[_0x256f89(0x13d)],_0x28daf4['agqQw'],_0x28daf4[_0x256f89(0x10a)]]),_0x5a4c34=(_0x4052b1?_0x4052b1['replace'](/^https:/,_0x28daf4[_0x256f89(0xf9)]):null)||constants['PLAYWRIGHT_HUB_URL'];let _0x4188d7;if(!_0x48e72d||_0x28daf4['Vcois'](_0x48e72d,''))_0x4188d7=_0x5a4c34;else{const _0x40c3d5=_0x5a4c34[_0x256f89(0x11b)]('/')?_0x5a4c34:_0x28daf4[_0x256f89(0x14c)](_0x5a4c34,'/');_0x4188d7=new URL(_0x48e72d,_0x40c3d5)[_0x256f89(0x148)]();}return!_0x4188d7[_0x256f89(0x11b)](_0x28daf4[_0x256f89(0x106)])&&(_0x4188d7+=_0x28daf4['mJfYe']),_0x4188d7;}static['getPuppeteerHubUrl'](_0x41db60){const _0x38f936=a60_0x559f41,_0x8cb413={'hjbDM':function(_0x393258){return _0x393258();},'IOVFm':function(_0x22c00b,_0x3388fe,_0x3bee5b){return _0x22c00b(_0x3388fe,_0x3bee5b);},'zKejp':_0x38f936(0x133),'hfcoe':_0x38f936(0x13a),'mIPnb':'cdp','VacRg':_0x38f936(0x125),'vrDjP':function(_0x53d39c,_0x3681a6){return _0x53d39c===_0x3681a6;},'QFlxf':function(_0xab8ea7,_0x1cbd85){return _0xab8ea7+_0x1cbd85;},'DMKpP':'/puppeteer?caps='},_0x309a76=_0x8cb413[_0x38f936(0xf1)](getBrowserstackCLI),_0x4ca0d7=_0x8cb413[_0x38f936(0x128)](nestedKeyValue,_0x309a76[_0x38f936(0x12c)]()[_0x38f936(0x102)](),[_0x8cb413[_0x38f936(0x13c)],_0x8cb413[_0x38f936(0x12f)],_0x8cb413[_0x38f936(0xf2)]]),_0x4c6da5=(_0x4ca0d7?_0x4ca0d7[_0x38f936(0x12d)](/^https:/,_0x8cb413[_0x38f936(0x14d)]):null)||constants['PUPPETEER_HUB_URL'];let _0x5b4e89;if(!_0x41db60||_0x8cb413[_0x38f936(0xfb)](_0x41db60,''))_0x5b4e89=_0x4c6da5;else{const _0x44ca69=_0x4c6da5['endsWith']('/')?_0x4c6da5:_0x8cb413[_0x38f936(0x105)](_0x4c6da5,'/');_0x5b4e89=new URL(_0x41db60,_0x44ca69)[_0x38f936(0x148)]();}return!_0x5b4e89[_0x38f936(0x11b)](_0x8cb413[_0x38f936(0x116)])&&(_0x5b4e89+=_0x8cb413[_0x38f936(0x116)]),_0x5b4e89;}}function a60_0x3ed3(_0x415c58,_0x251b6f){const _0x2dc0ff=a60_0x2dc0();return a60_0x3ed3=function(_0x3ed322,_0xcbef0){_0x3ed322=_0x3ed322-0xeb;let _0x265fd8=_0x2dc0ff[_0x3ed322];return _0x265fd8;},a60_0x3ed3(_0x415c58,_0x251b6f);}module[a60_0x559f41(0x140)]=APIUtilityMethods;
1
+ function a60_0x6853(){const _0x57ffdf=['JvQPL','80DtiTIv','cdp','appAutomate','brciI','uYAAF','getConfig','mwUZV','UvkzR','ZPcHa','VmKlZ','pXRNq','upload','getAutomateSessionNameAPIUrl','UBXhZ','sYyfU','gOlKs','endsWith','OsPah','8198046aVNZUZ','getAppAutomateSessionStatusAPIUrl','3UQUzel','lmWkq','rHHAG','PUPPETEER_HUB_URL','nCjBu','/puppeteer?caps=','2957966cnBOyQ','srvsn','tdPVJ','xBRCS','automate','mTABw','EDS_URL','APP_UPLOAD_URL','BROWSERSTACK_API_URL','yriJo','4394190qDODFb','AEEyj','EMewH','replace','WodOF','../v2/browserstackCLI','IKeHH','getBStackAPIUrl','llCHf','wss:','getAutomateSessionsListAPIUrl','gMlxQ','edsInstrumentation','ZEffq','lNdPz','nhsFs','cPSzJ','nzbpv','AbJnA','Tghap','VmsgM','/playwright?caps=','mmSza','beBmW','GNBDl','apis','XNTYL','OBSERVABILITY_UPLOAD_URL','BAiGf','qceXa','1283457unFJpV','CDtTL','getEdsInstrumentationAPIUrl','OcRDZ','observability','wnuIh','kSYoL','getAutoCaptureLogsAPIUrl','18997660ZhtXBt','115440nbABkf','UjapG','rPeOD','api','getAutomateSessionStatusAPIUrl','UPJqZ','zcHpY','toString','FRCxW','OhlfA','1020911ysYAbU','LWuAp','getPuppeteerHubUrl','ekAyJ','VPIVO','212PKNOZq','CkNPr','AuFwJ','getInstance','ZKqEU','DmXlR'];a60_0x6853=function(){return _0x57ffdf;};return a60_0x6853();}const a60_0x196bfe=a60_0xc2b4;(function(_0xe2f235,_0x125092){const _0x561ace=a60_0xc2b4,_0x56eef8=_0xe2f235();while(!![]){try{const _0x1812fa=-parseInt(_0x561ace(0xc7))/0x1+parseInt(_0x561ace(0x8c))/0x2*(parseInt(_0x561ace(0x86))/0x3)+-parseInt(_0x561ace(0xcc))/0x4*(parseInt(_0x561ace(0xbd))/0x5)+parseInt(_0x561ace(0x96))/0x6+-parseInt(_0x561ace(0xb4))/0x7*(parseInt(_0x561ace(0xd3))/0x8)+parseInt(_0x561ace(0x84))/0x9+parseInt(_0x561ace(0xbc))/0xa;if(_0x1812fa===_0x125092)break;else _0x56eef8['push'](_0x56eef8['shift']());}catch(_0x4e3f28){_0x56eef8['push'](_0x56eef8['shift']());}}}(a60_0x6853,0xe6733));function a60_0xc2b4(_0x1b3c69,_0x5d3645){const _0x6853d3=a60_0x6853();return a60_0xc2b4=function(_0xc2b419,_0x3a6d14){_0xc2b419=_0xc2b419-0x75;let _0x12136f=_0x6853d3[_0xc2b419];return _0x12136f;},a60_0xc2b4(_0x1b3c69,_0x5d3645);}const constants=require('./constants'),{nestedKeyValue}=require('./sharedUtils'),getBrowserstackCLI=()=>{const _0x5146a9=a60_0xc2b4,_0x2b3b9c={'rHHAG':function(_0x4bd9f8,_0x2b7f86){return _0x4bd9f8(_0x2b7f86);},'nzbpv':_0x5146a9(0x9b)};return _0x2b3b9c[_0x5146a9(0x88)](require,_0x2b3b9c[_0x5146a9(0xa7)]);};class APIUtilityMethods{static[a60_0x196bfe(0x9d)](_0x530cf9){const _0x3e1b4f=a60_0x196bfe,_0x1f7922={'GNBDl':function(_0x11b44f){return _0x11b44f();},'hxvXU':function(_0x4d329,_0x110be,_0x9da1d0){return _0x4d329(_0x110be,_0x9da1d0);},'kSYoL':'apis','TnSqI':_0x3e1b4f(0x90),'gOlKs':_0x3e1b4f(0xc0),'YxVcR':function(_0x197276,_0x19a3c2){return _0x197276===_0x19a3c2;},'jEQjl':function(_0x37bbf2,_0x2680c3){return _0x37bbf2+_0x2680c3;}},_0x1273d7=_0x1f7922[_0x3e1b4f(0xae)](getBrowserstackCLI),_0x27bfb4=_0x1f7922['hxvXU'](nestedKeyValue,_0x1273d7[_0x3e1b4f(0xcf)]()[_0x3e1b4f(0x77)](),[_0x1f7922[_0x3e1b4f(0xba)],_0x1f7922['TnSqI'],_0x1f7922[_0x3e1b4f(0x81)]])||constants['BROWSERSTACK_API_URL'];if(!_0x530cf9||_0x1f7922['YxVcR'](_0x530cf9,''))return _0x27bfb4;const _0x1f2e91=_0x27bfb4['endsWith']('/')?_0x27bfb4:_0x1f7922['jEQjl'](_0x27bfb4,'/');return new URL(_0x530cf9,_0x1f2e91)['toString']();}static[a60_0x196bfe(0xb6)](_0x4ec614){const _0x36d38e=a60_0x196bfe,_0x474353={'lmWkq':function(_0xc9cd6b){return _0xc9cd6b();},'OcRDZ':function(_0x29a9ff,_0x19076e,_0x1f9b80){return _0x29a9ff(_0x19076e,_0x1f9b80);},'VmKlZ':_0x36d38e(0xaf),'FRCxW':_0x36d38e(0xa2),'llCHf':_0x36d38e(0xc0),'sCqHr':function(_0x60bc1,_0x328873){return _0x60bc1===_0x328873;},'CDtTL':function(_0x5b3943,_0x226642){return _0x5b3943+_0x226642;}},_0x50bca5=_0x474353[_0x36d38e(0x87)](getBrowserstackCLI),_0x33f0a4=_0x474353[_0x36d38e(0xb7)](nestedKeyValue,_0x50bca5[_0x36d38e(0xcf)]()[_0x36d38e(0x77)](),[_0x474353[_0x36d38e(0x7b)],_0x474353[_0x36d38e(0xc5)],_0x474353[_0x36d38e(0x9e)]])||constants[_0x36d38e(0x92)];if(!_0x4ec614||_0x474353['sCqHr'](_0x4ec614,''))return _0x33f0a4;const _0x28a0bc=_0x33f0a4[_0x36d38e(0x82)]('/')?_0x33f0a4:_0x474353[_0x36d38e(0xb5)](_0x33f0a4,'/');return new URL(_0x4ec614,_0x28a0bc)['toString']();}static[a60_0x196bfe(0xc1)](_0x456a33){const _0x4fec98=a60_0x196bfe,_0x3feef2={'XVpUb':function(_0x341265){return _0x341265();},'zcHpY':function(_0x105ff2,_0xd76307,_0xb6fed1){return _0x105ff2(_0xd76307,_0xb6fed1);},'sYyfU':_0x4fec98(0xaf),'mwUZV':_0x4fec98(0x90),'brciI':_0x4fec98(0xc0),'RuBiv':function(_0x3671a3,_0x1ca540){return _0x3671a3===_0x1ca540;},'AEEyj':function(_0x590039,_0x459e6e){return _0x590039+_0x459e6e;}},_0x866d99=_0x3feef2['XVpUb'](getBrowserstackCLI),_0x1bf100=_0x3feef2[_0x4fec98(0xc3)](nestedKeyValue,_0x866d99[_0x4fec98(0xcf)]()['getConfig'](),[_0x3feef2[_0x4fec98(0x80)],_0x3feef2[_0x4fec98(0x78)],_0x3feef2[_0x4fec98(0x75)]])||constants['BROWSERSTACK_API_URL'];if(!_0x456a33||_0x3feef2['RuBiv'](_0x456a33,''))return _0x1bf100;const _0x244d60=_0x1bf100[_0x4fec98(0x82)]('/')?_0x1bf100:_0x3feef2[_0x4fec98(0x97)](_0x1bf100,'/');return new URL(_0x456a33,_0x244d60)['toString']();}static[a60_0x196bfe(0x85)](_0x3726a3){const _0x4464b7=a60_0x196bfe,_0x230586={'UvkzR':function(_0x469d9e){return _0x469d9e();},'ZKqEU':function(_0x24e0e1,_0x592875,_0x5537eb){return _0x24e0e1(_0x592875,_0x5537eb);},'BAiGf':'apis','nCjBu':_0x4464b7(0xd5),'tdPVJ':_0x4464b7(0xc0),'VmsgM':function(_0x213543,_0x44b0ed){return _0x213543===_0x44b0ed;},'rPeOD':function(_0x40be82,_0x5d7316){return _0x40be82+_0x5d7316;}},_0x16db27=_0x230586[_0x4464b7(0x79)](getBrowserstackCLI),_0x4543ad=_0x230586[_0x4464b7(0xd0)](nestedKeyValue,_0x16db27[_0x4464b7(0xcf)]()[_0x4464b7(0x77)](),[_0x230586[_0x4464b7(0xb2)],_0x230586[_0x4464b7(0x8a)],_0x230586[_0x4464b7(0x8e)]])||constants['BROWSERSTACK_API_URL'];if(!_0x3726a3||_0x230586[_0x4464b7(0xaa)](_0x3726a3,''))return _0x4543ad;const _0x1aa8e5=_0x4543ad['endsWith']('/')?_0x4543ad:_0x230586[_0x4464b7(0xbf)](_0x4543ad,'/');return new URL(_0x3726a3,_0x1aa8e5)['toString']();}static[a60_0x196bfe(0x7e)](_0x2b4f2f){const _0x43b232=a60_0x196bfe,_0x38ff1e={'uYAAF':function(_0x2d5841){return _0x2d5841();},'cPSzJ':function(_0x1fd006,_0x668873,_0x55e66c){return _0x1fd006(_0x668873,_0x55e66c);},'HmauA':_0x43b232(0xaf),'yriJo':_0x43b232(0x90),'OhlfA':_0x43b232(0xc0),'XeGGe':function(_0x478362,_0x3b5522){return _0x478362===_0x3b5522;},'srvsn':function(_0x89fed8,_0x297144){return _0x89fed8+_0x297144;}},_0xb223c2=_0x38ff1e[_0x43b232(0x76)](getBrowserstackCLI),_0x19043f=_0x38ff1e[_0x43b232(0xa6)](nestedKeyValue,_0xb223c2[_0x43b232(0xcf)]()[_0x43b232(0x77)](),[_0x38ff1e['HmauA'],_0x38ff1e[_0x43b232(0x95)],_0x38ff1e[_0x43b232(0xc6)]])||constants[_0x43b232(0x94)];if(!_0x2b4f2f||_0x38ff1e['XeGGe'](_0x2b4f2f,''))return _0x19043f;const _0x74e0ac=_0x19043f[_0x43b232(0x82)]('/')?_0x19043f:_0x38ff1e[_0x43b232(0x8d)](_0x19043f,'/');return new URL(_0x2b4f2f,_0x74e0ac)[_0x43b232(0xc4)]();}static['getAppAutomateSessionNameAPIUrl'](_0x28885c){const _0x22b349=a60_0x196bfe,_0x3f53d0={'qceXa':function(_0x3ab71f){return _0x3ab71f();},'DIeum':function(_0x44a531,_0x338c72,_0x57e314){return _0x44a531(_0x338c72,_0x57e314);},'beBmW':_0x22b349(0xaf),'vgRjf':_0x22b349(0xd5),'NCtsK':'api','ekAyJ':function(_0x527846,_0x266b36){return _0x527846===_0x266b36;},'VPIVO':function(_0x1decc1,_0x1618a2){return _0x1decc1+_0x1618a2;}},_0x4ba734=_0x3f53d0[_0x22b349(0xb3)](getBrowserstackCLI),_0xb7f408=_0x3f53d0['DIeum'](nestedKeyValue,_0x4ba734[_0x22b349(0xcf)]()[_0x22b349(0x77)](),[_0x3f53d0[_0x22b349(0xad)],_0x3f53d0['vgRjf'],_0x3f53d0['NCtsK']])||constants['BROWSERSTACK_API_URL'];if(!_0x28885c||_0x3f53d0[_0x22b349(0xca)](_0x28885c,''))return _0xb7f408;const _0x461a6c=_0xb7f408['endsWith']('/')?_0xb7f408:_0x3f53d0[_0x22b349(0xcb)](_0xb7f408,'/');return new URL(_0x28885c,_0x461a6c)['toString']();}static[a60_0x196bfe(0xa0)](_0x3dc954){const _0x5fae6c=a60_0x196bfe,_0x51d546={'VQtaZ':function(_0x306884){return _0x306884();},'UjapG':function(_0x361775,_0x27440c,_0x3fad1c){return _0x361775(_0x27440c,_0x3fad1c);},'YSLvZ':_0x5fae6c(0xaf),'DYIWp':'automate','CkNPr':'api','ZPcHa':function(_0x4e31ff,_0x362c2f){return _0x4e31ff===_0x362c2f;},'Tghap':function(_0x4d95cb,_0xf4bc9c){return _0x4d95cb+_0xf4bc9c;}},_0x4149b2=_0x51d546['VQtaZ'](getBrowserstackCLI),_0x49e3dc=_0x51d546[_0x5fae6c(0xbe)](nestedKeyValue,_0x4149b2['getInstance']()[_0x5fae6c(0x77)](),[_0x51d546['YSLvZ'],_0x51d546['DYIWp'],_0x51d546[_0x5fae6c(0xcd)]])||constants[_0x5fae6c(0x94)];if(!_0x3dc954||_0x51d546[_0x5fae6c(0x7a)](_0x3dc954,''))return _0x49e3dc;const _0x79b692=_0x49e3dc['endsWith']('/')?_0x49e3dc:_0x51d546[_0x5fae6c(0xa9)](_0x49e3dc,'/');return new URL(_0x3dc954,_0x79b692)[_0x5fae6c(0xc4)]()['replace'](/^https?:\/\//,'');}static['getAppAutomateSessionsListAPIUrl'](_0x301eba){const _0x67834=a60_0x196bfe,_0x4e1533={'AbJnA':function(_0xa0bd80){return _0xa0bd80();},'lNdPz':function(_0x5f408d,_0x2baa7a,_0x7fd1dc){return _0x5f408d(_0x2baa7a,_0x7fd1dc);},'UPJqZ':'apis','cStAh':_0x67834(0xd5),'DmXlR':_0x67834(0xc0),'jwWFx':function(_0x575226,_0x2a64a8){return _0x575226===_0x2a64a8;},'nhsFs':function(_0x25041c,_0x229774){return _0x25041c+_0x229774;}},_0x33eced=_0x4e1533[_0x67834(0xa8)](getBrowserstackCLI),_0x23bbc7=_0x4e1533[_0x67834(0xa4)](nestedKeyValue,_0x33eced['getInstance']()[_0x67834(0x77)](),[_0x4e1533[_0x67834(0xc2)],_0x4e1533['cStAh'],_0x4e1533[_0x67834(0xd1)]])||constants[_0x67834(0x93)];if(!_0x301eba||_0x4e1533['jwWFx'](_0x301eba,''))return _0x23bbc7;const _0x214db9=_0x23bbc7[_0x67834(0x82)]('/')?_0x23bbc7:_0x4e1533[_0x67834(0xa5)](_0x23bbc7,'/');return new URL(_0x301eba,_0x214db9)['toString']()[_0x67834(0x99)](/^https?:\/\//,'');}static[a60_0x196bfe(0xbb)](_0x4ef93d){const _0x19b047=a60_0x196bfe,_0xe26e87={'IKeHH':function(_0x3c1f79){return _0x3c1f79();},'mTABw':function(_0xfc4cfd,_0x45be95,_0x363216){return _0xfc4cfd(_0x45be95,_0x363216);},'XNTYL':_0x19b047(0xaf),'manKT':_0x19b047(0xb8),'wnuIh':_0x19b047(0x7d),'BIivI':function(_0x5e9b81,_0x31112e){return _0x5e9b81===_0x31112e;},'RHBVa':function(_0x44dca6,_0x24b617){return _0x44dca6+_0x24b617;}},_0x306749=_0xe26e87[_0x19b047(0x9c)](getBrowserstackCLI),_0x43866f=_0xe26e87[_0x19b047(0x91)](nestedKeyValue,_0x306749[_0x19b047(0xcf)]()[_0x19b047(0x77)](),[_0xe26e87[_0x19b047(0xb0)],_0xe26e87['manKT'],_0xe26e87[_0x19b047(0xb9)]])||constants[_0x19b047(0xb1)];if(!_0x4ef93d||_0xe26e87['BIivI'](_0x4ef93d,''))return _0x43866f;const _0x2fea56=_0x43866f[_0x19b047(0x82)]('/')?_0x43866f:_0xe26e87['RHBVa'](_0x43866f,'/');return new URL(_0x4ef93d,_0x2fea56)[_0x19b047(0xc4)]();}static['getPlaywrightHubUrl'](_0x5d13c3){const _0x13b34f=a60_0x196bfe,_0x420c03={'rmCCV':function(_0x567868){return _0x567868();},'EnUrI':function(_0x3671ee,_0x2a61cd,_0x24e41b){return _0x3671ee(_0x2a61cd,_0x24e41b);},'JvQPL':_0x13b34f(0xaf),'ZEffq':_0x13b34f(0x90),'vpvSo':'cdp','OsPah':'wss:','EMewH':function(_0x3e0c7e,_0x48aa9f){return _0x3e0c7e===_0x48aa9f;},'LWuAp':function(_0x2a4482,_0x3f21c9){return _0x2a4482+_0x3f21c9;},'pXRNq':_0x13b34f(0xab)},_0x21a07f=_0x420c03['rmCCV'](getBrowserstackCLI),_0x589db6=_0x420c03['EnUrI'](nestedKeyValue,_0x21a07f[_0x13b34f(0xcf)]()[_0x13b34f(0x77)](),[_0x420c03[_0x13b34f(0xd2)],_0x420c03[_0x13b34f(0xa3)],_0x420c03['vpvSo']]),_0x13644e=(_0x589db6?_0x589db6['replace'](/^https:/,_0x420c03[_0x13b34f(0x83)]):null)||constants['PLAYWRIGHT_HUB_URL'];let _0x14ac59;if(!_0x5d13c3||_0x420c03[_0x13b34f(0x98)](_0x5d13c3,''))_0x14ac59=_0x13644e;else{const _0x4be946=_0x13644e[_0x13b34f(0x82)]('/')?_0x13644e:_0x420c03[_0x13b34f(0xc8)](_0x13644e,'/');_0x14ac59=new URL(_0x5d13c3,_0x4be946)['toString']();}return!_0x14ac59[_0x13b34f(0x82)](_0x420c03[_0x13b34f(0x7c)])&&(_0x14ac59+=_0x420c03[_0x13b34f(0x7c)]),_0x14ac59;}static[a60_0x196bfe(0xc9)](_0x7f864f){const _0xb5b50a=a60_0x196bfe,_0xe3397e={'gMlxQ':function(_0x46b23f){return _0x46b23f();},'uQoNt':function(_0x872a29,_0x5b6818,_0x359076){return _0x872a29(_0x5b6818,_0x359076);},'WodOF':_0xb5b50a(0xaf),'mjexJ':_0xb5b50a(0x90),'mmSza':_0xb5b50a(0xd4),'AuFwJ':_0xb5b50a(0x9f),'UBXhZ':function(_0xd31bf4,_0x4ca027){return _0xd31bf4===_0x4ca027;},'AkIJY':function(_0x1fb0d5,_0x380a72){return _0x1fb0d5+_0x380a72;},'xBRCS':_0xb5b50a(0x8b)},_0x1eb5fb=_0xe3397e[_0xb5b50a(0xa1)](getBrowserstackCLI),_0x4cdb05=_0xe3397e['uQoNt'](nestedKeyValue,_0x1eb5fb[_0xb5b50a(0xcf)]()[_0xb5b50a(0x77)](),[_0xe3397e[_0xb5b50a(0x9a)],_0xe3397e['mjexJ'],_0xe3397e[_0xb5b50a(0xac)]]),_0x37f499=(_0x4cdb05?_0x4cdb05[_0xb5b50a(0x99)](/^https:/,_0xe3397e[_0xb5b50a(0xce)]):null)||constants[_0xb5b50a(0x89)];let _0x3f442b;if(!_0x7f864f||_0xe3397e[_0xb5b50a(0x7f)](_0x7f864f,''))_0x3f442b=_0x37f499;else{const _0x53dc55=_0x37f499['endsWith']('/')?_0x37f499:_0xe3397e['AkIJY'](_0x37f499,'/');_0x3f442b=new URL(_0x7f864f,_0x53dc55)[_0xb5b50a(0xc4)]();}return!_0x3f442b[_0xb5b50a(0x82)](_0xe3397e['xBRCS'])&&(_0x3f442b+=_0xe3397e[_0xb5b50a(0x8f)]),_0x3f442b;}}module['exports']=APIUtilityMethods;
@@ -1 +1 @@
1
- const a61_0x3c560a=a61_0x2a17;function a61_0x2a17(_0x50b951,_0x5af713){const _0x32e1a4=a61_0x32e1();return a61_0x2a17=function(_0x2a175f,_0x4dfeb2){_0x2a175f=_0x2a175f-0xf3;let _0x461504=_0x32e1a4[_0x2a175f];return _0x461504;},a61_0x2a17(_0x50b951,_0x5af713);}(function(_0x1265a5,_0x36fdc1){const _0x40aec3=a61_0x2a17,_0x3aba84=_0x1265a5();while(!![]){try{const _0x461a3d=-parseInt(_0x40aec3(0x103))/0x1*(-parseInt(_0x40aec3(0xfd))/0x2)+parseInt(_0x40aec3(0x14b))/0x3+parseInt(_0x40aec3(0x126))/0x4+-parseInt(_0x40aec3(0x13d))/0x5+parseInt(_0x40aec3(0x14c))/0x6*(parseInt(_0x40aec3(0x131))/0x7)+parseInt(_0x40aec3(0xff))/0x8*(parseInt(_0x40aec3(0x150))/0x9)+-parseInt(_0x40aec3(0x13e))/0xa;if(_0x461a3d===_0x36fdc1)break;else _0x3aba84['push'](_0x3aba84['shift']());}catch(_0x24aaed){_0x3aba84['push'](_0x3aba84['shift']());}}}(a61_0x32e1,0x7b0af));const logger=require(a61_0x3c560a(0x122))[a61_0x3c560a(0x125)],BrowserstackCLI=require(a61_0x3c560a(0x120)),GrpcClient=require(a61_0x3c560a(0x10f)),constants=require('./constants');class ClientTroubleShootingService{static [a61_0x3c560a(0x140)]=null;static [a61_0x3c560a(0x11f)]=new Set();static async['getErrorDetails'](_0x5b3f98){const _0xb6101f=a61_0x3c560a,_0x4d40ae={};_0x4d40ae['IefKr']=function(_0x5a65c1,_0x4940ce){return _0x5a65c1!==_0x4940ce;};const _0x3b07cf=_0x4d40ae;try{if(BrowserstackCLI[_0xb6101f(0x141)]()[_0xb6101f(0x13b)]()){const _0x35803a=await GrpcClient[_0xb6101f(0x141)]()[_0xb6101f(0x12d)](_0x5b3f98);if(_0x3b07cf['IefKr'](_0x35803a,null)&&_0x35803a[_0xb6101f(0x12b)]())return{'errorCode':_0x35803a[_0xb6101f(0x13c)](),'errorMessage':_0x35803a[_0xb6101f(0x101)]()};return{};}return{};}catch(_0x2008d0){return this[_0xb6101f(0x10a)](_0xb6101f(0xf9)+_0x5b3f98+':',_0x2008d0),{};}}static async[a61_0x3c560a(0x154)](){const _0x1b6d8e=a61_0x3c560a,_0x5aa0bd={};_0x5aa0bd[_0x1b6d8e(0x10b)]=function(_0x1778a8,_0xc5ba42){return _0x1778a8!==_0xc5ba42;},_0x5aa0bd[_0x1b6d8e(0xf5)]=_0x1b6d8e(0x110),_0x5aa0bd[_0x1b6d8e(0x104)]=_0x1b6d8e(0x11b);const _0x2ac921=_0x5aa0bd;try{if(BrowserstackCLI[_0x1b6d8e(0x141)]()[_0x1b6d8e(0x13b)]()){const _0x21af3e=await GrpcClient['getInstance']()['getAggregatedClientTroubleshootingErrors']();if(_0x2ac921[_0x1b6d8e(0x10b)](_0x21af3e,null)&&_0x21af3e['getSuccess']()){const _0x12022e=Buffer[_0x1b6d8e(0x128)](_0x21af3e[_0x1b6d8e(0x12e)](),_0x2ac921[_0x1b6d8e(0xf5)])[_0x1b6d8e(0x111)](),_0x1ae1ce=_0x12022e?JSON[_0x1b6d8e(0x149)](_0x12022e):[],_0x4db8e3=_0x21af3e['getDocumentationLink'](),_0x5e1200=_0x21af3e['getFinalErrorMessage'](),_0x22c489=Buffer[_0x1b6d8e(0x128)](_0x21af3e['getErrorCodesOccurredInCli'](),_0x2ac921[_0x1b6d8e(0xf5)])['toString'](),_0x44950a=_0x22c489?JSON[_0x1b6d8e(0x149)](_0x22c489):[],_0x559027={};return _0x559027[_0x1b6d8e(0x139)]=_0x1ae1ce,_0x559027[_0x1b6d8e(0x145)]=_0x4db8e3,_0x559027[_0x1b6d8e(0x123)]=_0x5e1200,_0x559027[_0x1b6d8e(0x129)]=_0x44950a,_0x559027;}const _0x2eac35={};return _0x2eac35['errorCodes']=[],_0x2eac35[_0x1b6d8e(0x145)]='',_0x2eac35['finalErrorMessage']='',_0x2eac35['errorCodesOccurredInCLI']=[],_0x2eac35;}const _0x65cd40={};return _0x65cd40[_0x1b6d8e(0x139)]=[],_0x65cd40['documentationLink']='',_0x65cd40[_0x1b6d8e(0x123)]='',_0x65cd40[_0x1b6d8e(0x129)]=[],_0x65cd40;}catch(_0x5bef56){this[_0x1b6d8e(0x10a)](_0x2ac921[_0x1b6d8e(0x104)],_0x5bef56);const _0x31c09c={};return _0x31c09c[_0x1b6d8e(0x139)]=[],_0x31c09c[_0x1b6d8e(0x145)]='',_0x31c09c[_0x1b6d8e(0x123)]='',_0x31c09c['errorCodesOccurredInCLI']=[],_0x31c09c;}}static[a61_0x3c560a(0xfa)](_0x35ee9e,_0x5ae59c){logger['warn'](_0x35ee9e+':\x20'+_0x5ae59c);}static['checkForErrorsOccuredInCLI'](_0x2a9ff7){const _0x53f837=a61_0x3c560a,_0x4b8c0a={};_0x4b8c0a['liJru']=function(_0x3212d2,_0x232d36){return _0x3212d2!=_0x232d36;},_0x4b8c0a[_0x53f837(0x130)]=function(_0x26e0f1,_0x59879c){return _0x26e0f1>_0x59879c;},_0x4b8c0a[_0x53f837(0x115)]=function(_0x21b413,_0x451f1f){return _0x21b413!=_0x451f1f;};const _0x1e3a44=_0x4b8c0a,_0x371ca3=[];if(_0x1e3a44[_0x53f837(0x14f)](_0x2a9ff7,null)&&_0x1e3a44[_0x53f837(0x14f)](_0x2a9ff7['errorCodesOccurredInCLI'],null)&&_0x1e3a44[_0x53f837(0x130)](_0x2a9ff7[_0x53f837(0x129)][_0x53f837(0x14a)],0x0))for(const _0x1ddb91 of _0x2a9ff7[_0x53f837(0x129)]){_0x1e3a44[_0x53f837(0x14f)](_0x1ddb91['errorCode'],null)&&_0x1e3a44[_0x53f837(0x115)](_0x1ddb91[_0x53f837(0x133)],null)&&(_0x371ca3[_0x53f837(0x112)](_0x1ddb91[_0x53f837(0xf7)]),this['logSituation'](_0x1ddb91[_0x53f837(0xf7)],_0x1ddb91[_0x53f837(0x133)]));}return _0x371ca3;}static[a61_0x3c560a(0x12a)](){const _0x26d0fd=a61_0x3c560a;return this[_0x26d0fd(0x140)];}static['logError'](_0x33c9c7,_0x555cb8){const _0x40a49b=a61_0x3c560a,_0x59643b={};_0x59643b[_0x40a49b(0x107)]=function(_0xa7531a,_0xe56c15){return _0xa7531a===_0xe56c15;},_0x59643b[_0x40a49b(0x147)]=_0x40a49b(0x11e);const _0x1a5f1c=_0x59643b;if(_0x1a5f1c[_0x40a49b(0x107)](typeof _0x555cb8,_0x1a5f1c[_0x40a49b(0x147)]))try{logger[_0x40a49b(0x11c)](_0x40a49b(0x109)+_0x33c9c7+'\x20'+JSON['stringify'](_0x555cb8));}catch(_0x2d2772){logger[_0x40a49b(0x11c)](_0x40a49b(0x109)+_0x33c9c7+'\x20'+_0x555cb8);}else logger[_0x40a49b(0x11c)](_0x40a49b(0x109)+_0x33c9c7+'\x20'+_0x555cb8);}static async[a61_0x3c560a(0x12c)](_0x476b96){const _0x55ec24=a61_0x3c560a,_0x1042b2={};_0x1042b2[_0x55ec24(0x124)]=_0x55ec24(0x10e),_0x1042b2[_0x55ec24(0x137)]=function(_0x1597d3,_0xba800d){return _0x1597d3===_0xba800d;},_0x1042b2[_0x55ec24(0xfc)]=_0x55ec24(0x155),_0x1042b2[_0x55ec24(0x135)]=_0x55ec24(0x151);const _0xdefd4a=_0x1042b2,_0x525c53=await this[_0x55ec24(0x156)](_0xdefd4a['fUmxl']);if(!_0x525c53||_0xdefd4a[_0x55ec24(0x137)](Object[_0x55ec24(0x14e)](_0x525c53)[_0x55ec24(0x14a)],0x0)){this['logError'](_0xdefd4a[_0x55ec24(0xfc)],_0x525c53);return;}this[_0x55ec24(0xfa)](_0x525c53[_0x55ec24(0xf7)],_0x525c53[_0x55ec24(0x133)][_0x55ec24(0x142)](_0xdefd4a[_0x55ec24(0x135)],_0x476b96));}static async[a61_0x3c560a(0x118)](){const _0x4494f6=a61_0x3c560a,_0x4a15ae={};_0x4a15ae[_0x4494f6(0xfb)]=_0x4494f6(0xf8),_0x4a15ae[_0x4494f6(0x119)]=function(_0x185a41,_0x5500ee){return _0x185a41===_0x5500ee;},_0x4a15ae['oDMtz']=_0x4494f6(0x11a);const _0x12afec=_0x4a15ae,_0x5178d0=await this['getErrorDetails'](_0x12afec[_0x4494f6(0xfb)]);if(!_0x5178d0||_0x12afec[_0x4494f6(0x119)](Object['keys'](_0x5178d0)[_0x4494f6(0x14a)],0x0)){this[_0x4494f6(0x10a)](_0x12afec[_0x4494f6(0x14d)],_0x5178d0);return;}this[_0x4494f6(0xfa)](_0x5178d0[_0x4494f6(0xf7)],_0x5178d0[_0x4494f6(0x133)]);}static async[a61_0x3c560a(0x136)](){const _0x4dc1f2=a61_0x3c560a,_0x437d1a={};_0x437d1a['UXfst']='browserstack\x20cloud\x20not\x20reachable',_0x437d1a['kXWlA']=function(_0x282fee,_0x3113c){return _0x282fee===_0x3113c;},_0x437d1a['CgYoW']=_0x4dc1f2(0x11d);const _0x1ba95c=_0x437d1a,_0x498fbc=await this[_0x4dc1f2(0x156)](_0x1ba95c[_0x4dc1f2(0x138)]);if(!_0x498fbc||_0x1ba95c[_0x4dc1f2(0x13f)](Object[_0x4dc1f2(0x14e)](_0x498fbc)[_0x4dc1f2(0x14a)],0x0)){this[_0x4dc1f2(0x10a)](_0x1ba95c[_0x4dc1f2(0x102)],_0x498fbc);return;}this[_0x4dc1f2(0xfa)](_0x498fbc['errorCode'],_0x498fbc['errorMessage']);}static async[a61_0x3c560a(0x153)](){const _0x221f35=a61_0x3c560a,_0xa27060={};_0xa27060[_0x221f35(0x143)]=_0x221f35(0x106),_0xa27060[_0x221f35(0x108)]=function(_0x4da1f5,_0x3cf53e){return _0x4da1f5===_0x3cf53e;},_0xa27060[_0x221f35(0x152)]='SSL\x20Certificate\x20Issue\x20details\x20not\x20found.\x20To\x20pass\x20a\x20custom\x20CA\x20bundle,\x20set\x20NODE_EXTRA_CA_CERTS\x20or\x20BROWSERSTACK_EXTRA_CA_CERTS\x20env\x20var\x20to\x20the\x20certificate\x20file\x20path.';const _0x3c42e7=_0xa27060,_0x4e1f50=await this[_0x221f35(0x156)](_0x3c42e7[_0x221f35(0x143)]);if(!_0x4e1f50||_0x3c42e7['XXczz'](Object[_0x221f35(0x14e)](_0x4e1f50)['length'],0x0)){this[_0x221f35(0x10a)](_0x3c42e7[_0x221f35(0x152)],_0x4e1f50);return;}this[_0x221f35(0xfa)](_0x4e1f50[_0x221f35(0xf7)],_0x4e1f50[_0x221f35(0x133)]);}static['reportDotBrowserStackFolderNotAccessibleIssue'](){const _0x4ac6be=a61_0x3c560a,_0x312bed={};_0x312bed[_0x4ac6be(0x132)]=_0x4ac6be(0xfe),_0x312bed['HUkzJ']=function(_0x156e53,_0x42defd){return _0x156e53===_0x42defd;},_0x312bed['CagQJ']=_0x4ac6be(0xf6);const _0x3d3420=_0x312bed,_0x541f66=constants['CLIENT_TROUBLESHOOTING_HASH'][_0x3d3420[_0x4ac6be(0x132)]];if(!_0x541f66||_0x3d3420[_0x4ac6be(0x127)](Object[_0x4ac6be(0x14e)](_0x541f66)[_0x4ac6be(0x14a)],0x0)){this[_0x4ac6be(0x10a)](_0x3d3420['CagQJ'],_0x541f66);return;}this[_0x4ac6be(0x11f)][_0x4ac6be(0x121)](_0x541f66[0x0]),this[_0x4ac6be(0xfa)](_0x541f66[0x0],_0x541f66[0x1]);}static async['reportConflictingEnvVarIssue'](_0x1e69e2){const _0x4544c4=a61_0x3c560a,_0x558d4f={};_0x558d4f['oaaxT']=_0x4544c4(0xf4),_0x558d4f[_0x4544c4(0x10c)]=function(_0x150c35,_0xf875a3){return _0x150c35===_0xf875a3;},_0x558d4f[_0x4544c4(0x10d)]=_0x4544c4(0x134),_0x558d4f[_0x4544c4(0x12f)]=_0x4544c4(0x100);const _0x17fba7=_0x558d4f,_0x3a983e=await this[_0x4544c4(0x156)](_0x17fba7[_0x4544c4(0x113)]);if(!_0x3a983e||_0x17fba7[_0x4544c4(0x10c)](Object[_0x4544c4(0x14e)](_0x3a983e)[_0x4544c4(0x14a)],0x0)){this[_0x4544c4(0x10a)](_0x17fba7['cnCzo'],_0x3a983e);return;}const _0x430bc2=_0x3a983e[_0x4544c4(0x133)][_0x4544c4(0x142)](_0x17fba7[_0x4544c4(0x12f)],_0x1e69e2);this[_0x4544c4(0xfa)](_0x3a983e[_0x4544c4(0xf7)],_0x430bc2);}static async['reportFinalDetectionState'](){const _0x341502=a61_0x3c560a,_0xa8191b={};_0xa8191b['KZhjS']=function(_0x2f58e4,_0x4c4476){return _0x2f58e4>_0x4c4476;},_0xa8191b[_0x341502(0x144)]='{ERROR_CODES}',_0xa8191b[_0x341502(0x114)]='{CLIENT_TROUBLESHOOTING_DOCUMENTATION}';const _0x186bbd=_0xa8191b,_0x11692f=await this[_0x341502(0x154)](),_0x486000=this[_0x341502(0xf3)](_0x11692f),_0xae9b41=Array[_0x341502(0x116)](_0x11692f['errorCodes'])?_0x11692f[_0x341502(0x139)]:[],_0x118013=_0x186bbd[_0x341502(0x117)](this['errorCodesOccurredWhenCLINotRunning'][_0x341502(0x146)],0x0)?Array[_0x341502(0x128)](this[_0x341502(0x11f)]):[],_0x4132b1=new Set([..._0xae9b41,..._0x486000,..._0x118013]),_0x1d1059=Array[_0x341502(0x128)](_0x4132b1);if(_0x186bbd[_0x341502(0x117)](_0x1d1059[_0x341502(0x14a)],0x0)){const _0x52486=_0x11692f[_0x341502(0x123)]['replace'](_0x186bbd[_0x341502(0x144)],_0x1d1059[_0x341502(0x105)](',\x20'))['replace'](_0x186bbd['HRZMU'],_0x11692f[_0x341502(0x145)]);logger[_0x341502(0x13a)](_0x52486),this[_0x341502(0x140)]=_0x1d1059;}}}module[a61_0x3c560a(0x148)]=ClientTroubleShootingService;function a61_0x32e1(){const _0x1da65b=['SLSCY','Session\x20Linking\x20Issue\x20details\x20not\x20found','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','error','Connectivity\x20Issue\x20details\x20not\x20found','object','errorCodesOccurredWhenCLINotRunning','../v2/browserstackCLI','add','../../helpers/logger','finalErrorMessage','fUmxl','winstonLogger','3154032LKEKsD','HUkzJ','from','errorCodesOccurredInCLI','getCachedErrorCodes','getSuccess','reportProcessInterruptionSituation','reportClientTroubleshootingError','getErrorCodes','NKJPM','Bpiin','2072mGUZDH','yhOsH','errorMessage','Conflicting\x20Env\x20Var\x20details\x20not\x20found','yziAz','reportConnectivityIssue','jnVhI','UXfst','errorCodes','warn','isRunning','getErrorCode','2192840zBgXnW','30203620hNpDrp','kXWlA','cachedErrorCodes','getInstance','replace','JvDRC','AMlCE','documentationLink','size','enBTX','exports','parse','length','1034007AHlIFe','18576qOvHus','oDMtz','keys','liJru','183915jABEkt','{SIGNAL}','sWXQM','reportSSLCertIssue','getAggregatedErrorCodes','Process\x20Interruption\x20details\x20not\x20found:','getErrorDetails','checkForErrorsOccuredInCLI','conflicting\x20env\x20var\x20detected','ZCoBw','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','errorCode','Session\x20Linking\x20Issue','Error\x20in\x20getting\x20error\x20details\x20for\x20','logSituation','NDkwZ','uGYlv','54450QBnRrb','.browserstack\x20folder\x20not\x20accessible','376YzcEPU','{ENV_VAR}','getErrorMessage','CgYoW','35EGqynL','IHKOY','join','ssl\x20cert\x20issue','CloVy','XXczz','[ClientTroubleShootingService]\x20','logError','TmsJO','ClGrz','cnCzo','Process\x20Interruption','../v2/grpcClient','base64','toString','push','oaaxT','HRZMU','YDsWA','isArray','KZhjS','reportSessionLinkingIssue'];a61_0x32e1=function(){return _0x1da65b;};return a61_0x32e1();}
1
+ function a61_0x444e(){const _0x52cfd6=['Conflicting\x20Env\x20Var\x20details\x20not\x20found','getErrorMessage','Error\x20in\x20getting\x20error\x20details\x20for\x20','warn','tIOUp','SfloY','finalErrorMessage','{CLIENT_TROUBLESHOOTING_DOCUMENTATION}','errorCodes','.browserstack\x20folder\x20not\x20accessible','getCachedErrorCodes','5971qprEyS','lIKsQ','join','.browserstack\x20Folder\x20Not\x20Accessible\x20details\x20not\x20found','EyXXM','errorCodesOccurredWhenCLINotRunning','cachedErrorCodes','weowJ','Session\x20Linking\x20Issue\x20details\x20not\x20found','8474334YPinEL','../v2/grpcClient','winstonLogger','FmLJW','ssl\x20cert\x20issue','getErrorCodes','error','keys','Dmart','base64','Session\x20Linking\x20Issue','IAONk','4492nEXOJI','{ERROR_CODES}','MhgiO','getErrorCodesOccurredInCli','pyiov','pzAFS','ixRsD','replace','yWUMB','hoWqs','XibLD','Process\x20Interruption\x20details\x20not\x20found:','errorCode','1077794AJniEg','UcsDO','errorCodesOccurredInCLI','checkForErrorsOccuredInCLI','368siNXmh','logSituation','../../helpers/logger','from','../v2/browserstackCLI','efDau','nMrAC','reportConnectivityIssue','getErrorDetails','push','1124GlbezG','getAggregatedClientTroubleshootingErrors','sJgsb','10rJHquG','lEHBe','stringify','3279BAlEjY','10937592DiLkCl','[ClientTroubleShootingService]\x20','{ENV_VAR}','getFinalErrorMessage','reportConflictingEnvVarIssue','tUDNb','reportProcessInterruptionSituation','getInstance','length','logError','reportClientTroubleshootingError','isArray','uFDWq','ERnQC','rfkxi','browserstack\x20cloud\x20not\x20reachable','IxGPl','conflicting\x20env\x20var\x20detected','reportSessionLinkingIssue','getAggregatedErrorCodes','object','auJnR','parse','NIPIH','getSuccess','getErrorCode','4895xctxOf','tiTTs','CLIENT_TROUBLESHOOTING_HASH','dCcDR','toString','add','getDocumentationLink','./constants','VzVfw','IiEnk','documentationLink','errorMessage','Error\x20in\x20getting\x20aggregated\x20error\x20codes:','876XDsBWZ','23643bUZubT','isRunning','GTHOP','Connectivity\x20Issue\x20details\x20not\x20found','SSL\x20Certificate\x20Issue\x20details\x20not\x20found.\x20To\x20pass\x20a\x20custom\x20CA\x20bundle,\x20set\x20NODE_EXTRA_CA_CERTS\x20or\x20BROWSERSTACK_EXTRA_CA_CERTS\x20env\x20var\x20to\x20the\x20certificate\x20file\x20path.'];a61_0x444e=function(){return _0x52cfd6;};return a61_0x444e();}const a61_0x5be142=a61_0x3d30;(function(_0x3ab654,_0x3ecea1){const _0xf3c64d=a61_0x3d30,_0x2b47fa=_0x3ab654();while(!![]){try{const _0x4c3b1f=-parseInt(_0xf3c64d(0x187))/0x1+parseInt(_0xf3c64d(0x195))/0x2*(parseInt(_0xf3c64d(0x19b))/0x3)+-parseInt(_0xf3c64d(0x17a))/0x4*(-parseInt(_0xf3c64d(0x1b6))/0x5)+-parseInt(_0xf3c64d(0x154))/0x6*(-parseInt(_0xf3c64d(0x165))/0x7)+parseInt(_0xf3c64d(0x18b))/0x8*(-parseInt(_0xf3c64d(0x155))/0x9)+-parseInt(_0xf3c64d(0x198))/0xa*(parseInt(_0xf3c64d(0x16e))/0xb)+parseInt(_0xf3c64d(0x19c))/0xc;if(_0x4c3b1f===_0x3ecea1)break;else _0x2b47fa['push'](_0x2b47fa['shift']());}catch(_0x5da2fc){_0x2b47fa['push'](_0x2b47fa['shift']());}}}(a61_0x444e,0xbe971));function a61_0x3d30(_0x3be9ba,_0xccfb0e){const _0x444e38=a61_0x444e();return a61_0x3d30=function(_0x3d30c1,_0x55f76a){_0x3d30c1=_0x3d30c1-0x153;let _0x501630=_0x444e38[_0x3d30c1];return _0x501630;},a61_0x3d30(_0x3be9ba,_0xccfb0e);}const logger=require(a61_0x5be142(0x18d))[a61_0x5be142(0x170)],BrowserstackCLI=require(a61_0x5be142(0x18f)),GrpcClient=require(a61_0x5be142(0x16f)),constants=require(a61_0x5be142(0x1bd));class ClientTroubleShootingService{static [a61_0x5be142(0x16b)]=null;static [a61_0x5be142(0x16a)]=new Set();static async[a61_0x5be142(0x193)](_0x519b5e){const _0x29413b=a61_0x5be142,_0x4206ea={};_0x4206ea[_0x29413b(0x1ac)]=function(_0x1496a7,_0x1743b4){return _0x1496a7!==_0x1743b4;};const _0xf951e5=_0x4206ea;try{if(BrowserstackCLI[_0x29413b(0x1a3)]()[_0x29413b(0x156)]()){const _0x1fc0ef=await GrpcClient[_0x29413b(0x1a3)]()[_0x29413b(0x1a6)](_0x519b5e);if(_0xf951e5['IxGPl'](_0x1fc0ef,null)&&_0x1fc0ef[_0x29413b(0x1b4)]())return{'errorCode':_0x1fc0ef[_0x29413b(0x1b5)](),'errorMessage':_0x1fc0ef[_0x29413b(0x15b)]()};return{};}return{};}catch(_0x5c8feb){return this['logError'](_0x29413b(0x15c)+_0x519b5e+':',_0x5c8feb),{};}}static async['getAggregatedErrorCodes'](){const _0x3dd4c7=a61_0x5be142,_0x5a7354={};_0x5a7354['uFDWq']=function(_0x1b0cbb,_0x5d50f3){return _0x1b0cbb!==_0x5d50f3;},_0x5a7354['EyXXM']=_0x3dd4c7(0x177),_0x5a7354[_0x3dd4c7(0x17c)]=_0x3dd4c7(0x153);const _0x3a00e0=_0x5a7354;try{if(BrowserstackCLI['getInstance']()[_0x3dd4c7(0x156)]()){const _0x80243c=await GrpcClient['getInstance']()[_0x3dd4c7(0x196)]();if(_0x3a00e0[_0x3dd4c7(0x1a8)](_0x80243c,null)&&_0x80243c[_0x3dd4c7(0x1b4)]()){const _0x1f7477=Buffer[_0x3dd4c7(0x18e)](_0x80243c[_0x3dd4c7(0x173)](),_0x3a00e0[_0x3dd4c7(0x169)])[_0x3dd4c7(0x1ba)](),_0x4081fd=_0x1f7477?JSON[_0x3dd4c7(0x1b2)](_0x1f7477):[],_0x55f820=_0x80243c[_0x3dd4c7(0x1bc)](),_0x5da13e=_0x80243c[_0x3dd4c7(0x19f)](),_0x238278=Buffer[_0x3dd4c7(0x18e)](_0x80243c[_0x3dd4c7(0x17d)](),_0x3a00e0[_0x3dd4c7(0x169)])[_0x3dd4c7(0x1ba)](),_0xdf096c=_0x238278?JSON[_0x3dd4c7(0x1b2)](_0x238278):[],_0x303fd4={};return _0x303fd4['errorCodes']=_0x4081fd,_0x303fd4[_0x3dd4c7(0x1c0)]=_0x55f820,_0x303fd4['finalErrorMessage']=_0x5da13e,_0x303fd4[_0x3dd4c7(0x189)]=_0xdf096c,_0x303fd4;}const _0x322c24={};return _0x322c24[_0x3dd4c7(0x162)]=[],_0x322c24['documentationLink']='',_0x322c24[_0x3dd4c7(0x160)]='',_0x322c24['errorCodesOccurredInCLI']=[],_0x322c24;}const _0x5f33ad={};return _0x5f33ad[_0x3dd4c7(0x162)]=[],_0x5f33ad[_0x3dd4c7(0x1c0)]='',_0x5f33ad[_0x3dd4c7(0x160)]='',_0x5f33ad['errorCodesOccurredInCLI']=[],_0x5f33ad;}catch(_0x1bbd20){this['logError'](_0x3a00e0[_0x3dd4c7(0x17c)],_0x1bbd20);const _0x4cf301={};return _0x4cf301[_0x3dd4c7(0x162)]=[],_0x4cf301[_0x3dd4c7(0x1c0)]='',_0x4cf301[_0x3dd4c7(0x160)]='',_0x4cf301[_0x3dd4c7(0x189)]=[],_0x4cf301;}}static['logSituation'](_0x151abb,_0x528f45){const _0x319a59=a61_0x5be142;logger[_0x319a59(0x15d)](_0x151abb+':\x20'+_0x528f45);}static[a61_0x5be142(0x18a)](_0x248185){const _0x26e4b0=a61_0x5be142,_0x16398a={};_0x16398a[_0x26e4b0(0x199)]=function(_0x4110bd,_0x3f8d02){return _0x4110bd!=_0x3f8d02;},_0x16398a[_0x26e4b0(0x183)]=function(_0x26b3d3,_0x251c38){return _0x26b3d3!=_0x251c38;},_0x16398a['tUDNb']=function(_0x4e3f10,_0x249f2f){return _0x4e3f10>_0x249f2f;},_0x16398a[_0x26e4b0(0x1b9)]=function(_0x10b82b,_0x1adb69){return _0x10b82b!=_0x1adb69;};const _0x2a15e4=_0x16398a,_0x1d8864=[];if(_0x2a15e4[_0x26e4b0(0x199)](_0x248185,null)&&_0x2a15e4[_0x26e4b0(0x183)](_0x248185[_0x26e4b0(0x189)],null)&&_0x2a15e4[_0x26e4b0(0x1a1)](_0x248185['errorCodesOccurredInCLI'][_0x26e4b0(0x1a4)],0x0))for(const _0x53f345 of _0x248185[_0x26e4b0(0x189)]){_0x2a15e4['lEHBe'](_0x53f345['errorCode'],null)&&_0x2a15e4[_0x26e4b0(0x1b9)](_0x53f345[_0x26e4b0(0x1c1)],null)&&(_0x1d8864[_0x26e4b0(0x194)](_0x53f345['errorCode']),this[_0x26e4b0(0x18c)](_0x53f345[_0x26e4b0(0x186)],_0x53f345[_0x26e4b0(0x1c1)]));}return _0x1d8864;}static[a61_0x5be142(0x164)](){const _0xe99070=a61_0x5be142;return this[_0xe99070(0x16b)];}static['logError'](_0xae1794,_0x40cbbb){const _0x2193d4=a61_0x5be142,_0x2a05f9={};_0x2a05f9['Dmart']=function(_0x2c840d,_0x2bd736){return _0x2c840d===_0x2bd736;},_0x2a05f9[_0x2193d4(0x1be)]=_0x2193d4(0x1b0);const _0x421b86=_0x2a05f9;if(_0x421b86[_0x2193d4(0x176)](typeof _0x40cbbb,_0x421b86[_0x2193d4(0x1be)]))try{logger[_0x2193d4(0x174)]('[ClientTroubleShootingService]\x20'+_0xae1794+'\x20'+JSON[_0x2193d4(0x19a)](_0x40cbbb));}catch(_0xcadfbb){logger[_0x2193d4(0x174)](_0x2193d4(0x19d)+_0xae1794+'\x20'+_0x40cbbb);}else logger[_0x2193d4(0x174)](_0x2193d4(0x19d)+_0xae1794+'\x20'+_0x40cbbb);}static async[a61_0x5be142(0x1a2)](_0x5986a7){const _0x594513=a61_0x5be142,_0x534b83={};_0x534b83[_0x594513(0x15f)]='Process\x20Interruption',_0x534b83[_0x594513(0x179)]=function(_0x41c4e9,_0x114d7f){return _0x41c4e9===_0x114d7f;},_0x534b83[_0x594513(0x191)]=_0x594513(0x185),_0x534b83['ERnQC']='{SIGNAL}';const _0x24b093=_0x534b83,_0x1c1933=await this[_0x594513(0x193)](_0x24b093['SfloY']);if(!_0x1c1933||_0x24b093['IAONk'](Object[_0x594513(0x175)](_0x1c1933)[_0x594513(0x1a4)],0x0)){this[_0x594513(0x1a5)](_0x24b093[_0x594513(0x191)],_0x1c1933);return;}this[_0x594513(0x18c)](_0x1c1933[_0x594513(0x186)],_0x1c1933['errorMessage'][_0x594513(0x181)](_0x24b093[_0x594513(0x1a9)],_0x5986a7));}static async[a61_0x5be142(0x1ae)](){const _0xde9cf0=a61_0x5be142,_0x389c4d={};_0x389c4d[_0xde9cf0(0x1bf)]=_0xde9cf0(0x178),_0x389c4d[_0xde9cf0(0x1b1)]=function(_0x2f03af,_0x1e8ac7){return _0x2f03af===_0x1e8ac7;},_0x389c4d[_0xde9cf0(0x16c)]=_0xde9cf0(0x16d);const _0x239469=_0x389c4d,_0x57e984=await this[_0xde9cf0(0x193)](_0x239469[_0xde9cf0(0x1bf)]);if(!_0x57e984||_0x239469['auJnR'](Object['keys'](_0x57e984)[_0xde9cf0(0x1a4)],0x0)){this[_0xde9cf0(0x1a5)](_0x239469['weowJ'],_0x57e984);return;}this[_0xde9cf0(0x18c)](_0x57e984[_0xde9cf0(0x186)],_0x57e984[_0xde9cf0(0x1c1)]);}static async[a61_0x5be142(0x192)](){const _0x4de7b3=a61_0x5be142,_0x24e88a={};_0x24e88a[_0x4de7b3(0x17e)]=_0x4de7b3(0x1ab),_0x24e88a['lIKsQ']=function(_0xaa1fce,_0x3e79ba){return _0xaa1fce===_0x3e79ba;},_0x24e88a['ixRsD']=_0x4de7b3(0x158);const _0x63ad4e=_0x24e88a,_0x34bbac=await this[_0x4de7b3(0x193)](_0x63ad4e['pyiov']);if(!_0x34bbac||_0x63ad4e[_0x4de7b3(0x166)](Object['keys'](_0x34bbac)['length'],0x0)){this[_0x4de7b3(0x1a5)](_0x63ad4e[_0x4de7b3(0x180)],_0x34bbac);return;}this[_0x4de7b3(0x18c)](_0x34bbac[_0x4de7b3(0x186)],_0x34bbac[_0x4de7b3(0x1c1)]);}static async['reportSSLCertIssue'](){const _0x453aae=a61_0x5be142,_0x5d07fb={};_0x5d07fb[_0x453aae(0x197)]=_0x453aae(0x172),_0x5d07fb[_0x453aae(0x1aa)]=function(_0x4329f5,_0x27cb01){return _0x4329f5===_0x27cb01;},_0x5d07fb[_0x453aae(0x188)]=_0x453aae(0x159);const _0x34e635=_0x5d07fb,_0x500295=await this[_0x453aae(0x193)](_0x34e635['sJgsb']);if(!_0x500295||_0x34e635[_0x453aae(0x1aa)](Object[_0x453aae(0x175)](_0x500295)[_0x453aae(0x1a4)],0x0)){this[_0x453aae(0x1a5)](_0x34e635[_0x453aae(0x188)],_0x500295);return;}this[_0x453aae(0x18c)](_0x500295[_0x453aae(0x186)],_0x500295[_0x453aae(0x1c1)]);}static['reportDotBrowserStackFolderNotAccessibleIssue'](){const _0x5f3580=a61_0x5be142,_0x36f8cc={};_0x36f8cc[_0x5f3580(0x171)]=_0x5f3580(0x163),_0x36f8cc[_0x5f3580(0x182)]=function(_0x1089f6,_0x2ca5f4){return _0x1089f6===_0x2ca5f4;},_0x36f8cc['BPfbc']=_0x5f3580(0x168);const _0x25f6a6=_0x36f8cc,_0x53ceb6=constants[_0x5f3580(0x1b8)][_0x25f6a6['FmLJW']];if(!_0x53ceb6||_0x25f6a6['yWUMB'](Object['keys'](_0x53ceb6)[_0x5f3580(0x1a4)],0x0)){this[_0x5f3580(0x1a5)](_0x25f6a6['BPfbc'],_0x53ceb6);return;}this[_0x5f3580(0x16a)][_0x5f3580(0x1bb)](_0x53ceb6[0x0]),this[_0x5f3580(0x18c)](_0x53ceb6[0x0],_0x53ceb6[0x1]);}static async[a61_0x5be142(0x1a0)](_0x4be280){const _0x6d7a7f=a61_0x5be142,_0x18a902={};_0x18a902['tIOUp']=_0x6d7a7f(0x1ad),_0x18a902[_0x6d7a7f(0x190)]=function(_0x2c1c9b,_0x44e5bb){return _0x2c1c9b===_0x44e5bb;},_0x18a902['tiTTs']=_0x6d7a7f(0x15a),_0x18a902[_0x6d7a7f(0x157)]=_0x6d7a7f(0x19e);const _0x5dc413=_0x18a902,_0x2739b2=await this['getErrorDetails'](_0x5dc413[_0x6d7a7f(0x15e)]);if(!_0x2739b2||_0x5dc413['efDau'](Object['keys'](_0x2739b2)[_0x6d7a7f(0x1a4)],0x0)){this['logError'](_0x5dc413[_0x6d7a7f(0x1b7)],_0x2739b2);return;}const _0x2d9b01=_0x2739b2[_0x6d7a7f(0x1c1)][_0x6d7a7f(0x181)](_0x5dc413[_0x6d7a7f(0x157)],_0x4be280);this[_0x6d7a7f(0x18c)](_0x2739b2[_0x6d7a7f(0x186)],_0x2d9b01);}static async['reportFinalDetectionState'](){const _0xebfa64=a61_0x5be142,_0x21de97={};_0x21de97[_0xebfa64(0x17f)]=function(_0x238a14,_0x1a1783){return _0x238a14>_0x1a1783;},_0x21de97[_0xebfa64(0x1b3)]=function(_0x20e28d,_0x3754db){return _0x20e28d>_0x3754db;},_0x21de97[_0xebfa64(0x184)]=_0xebfa64(0x17b),_0x21de97['hKxhi']=_0xebfa64(0x161);const _0x626f00=_0x21de97,_0x490f7f=await this[_0xebfa64(0x1af)](),_0x1231bf=this[_0xebfa64(0x18a)](_0x490f7f),_0x1fb498=Array[_0xebfa64(0x1a7)](_0x490f7f[_0xebfa64(0x162)])?_0x490f7f[_0xebfa64(0x162)]:[],_0x3549ca=_0x626f00[_0xebfa64(0x17f)](this[_0xebfa64(0x16a)]['size'],0x0)?Array[_0xebfa64(0x18e)](this[_0xebfa64(0x16a)]):[],_0x5c7216=new Set([..._0x1fb498,..._0x1231bf,..._0x3549ca]),_0x43683d=Array[_0xebfa64(0x18e)](_0x5c7216);if(_0x626f00[_0xebfa64(0x1b3)](_0x43683d['length'],0x0)){const _0x3b6138=_0x490f7f[_0xebfa64(0x160)][_0xebfa64(0x181)](_0x626f00[_0xebfa64(0x184)],_0x43683d[_0xebfa64(0x167)](',\x20'))[_0xebfa64(0x181)](_0x626f00['hKxhi'],_0x490f7f['documentationLink']);logger[_0xebfa64(0x15d)](_0x3b6138),this['cachedErrorCodes']=_0x43683d;}}}module['exports']=ClientTroubleShootingService;